From 01374acfa08a21ef571e7c1d317bccf39541f817 Mon Sep 17 00:00:00 2001 From: shwetharadhakrishna Date: Thu, 14 Jan 2021 21:20:21 -0700 Subject: [PATCH 01/20] Initializing with auto generated files --- .gitignore | 1 + rest/accounts/v1/.openapi-generator-ignore | 23 + rest/accounts/v1/.openapi-generator/VERSION | 1 + rest/accounts/v1/README.md | 86 + rest/accounts/v1/api_default.go | 464 + .../v1/docs/AccountsV1AuthTokenPromotion.md | 15 + .../docs/AccountsV1CredentialCredentialAws.md | 16 + ...tsV1CredentialCredentialAwsReadResponse.md | 12 + ...CredentialCredentialAwsReadResponseMeta.md | 17 + ...AccountsV1CredentialCredentialPublicKey.md | 16 + ...edentialCredentialPublicKeyReadResponse.md | 12 + .../v1/docs/AccountsV1SecondaryAuthToken.md | 15 + .../v1/docs/CreateCredentialAwsRequest.md | 13 + .../docs/CreateCredentialPublicKeyRequest.md | 13 + rest/accounts/v1/docs/DefaultApi.md | 513 + .../v1/docs/UpdateCredentialAwsRequest.md | 11 + .../docs/UpdateCredentialPublicKeyRequest.md | 11 + .../model_accounts_v1_auth_token_promotion.go | 22 + ...l_accounts_v1_credential_credential_aws.go | 23 + ...credential_credential_aws_read_response.go | 16 + ...ntial_credential_aws_read_response_meta.go | 21 + ...nts_v1_credential_credential_public_key.go | 23 + ...ial_credential_public_key_read_response.go | 16 + .../model_accounts_v1_secondary_auth_token.go | 22 + .../v1/model_create_credential_aws_request.go | 20 + ...el_create_credential_public_key_request.go | 20 + .../v1/model_update_credential_aws_request.go | 16 + ...el_update_credential_public_key_request.go | 16 + rest/accounts/v1/response.go | 47 + rest/api/v2010/.openapi-generator-ignore | 23 + rest/api/v2010/.openapi-generator/VERSION | 1 + rest/api/v2010/README.md | 443 + rest/api/v2010/api_default.go | 9894 +++++++++++++++++ rest/api/v2010/docs/ApiV2010Account.md | 20 + rest/api/v2010/docs/ApiV2010AccountAddress.md | 25 + ...V2010AccountAddressDependentPhoneNumber.md | 36 + ...AddressDependentPhoneNumberReadResponse.md | 19 + .../ApiV2010AccountAddressReadResponse.md | 19 + .../v2010/docs/ApiV2010AccountApplication.md | 30 + .../ApiV2010AccountApplicationReadResponse.md | 19 + .../ApiV2010AccountAuthorizedConnectApp.md | 20 + ...AccountAuthorizedConnectAppReadResponse.md | 19 + ...V2010AccountAvailablePhoneNumberCountry.md | 15 + ...eNumberCountryAvailablePhoneNumberLocal.md | 23 + ...ryAvailablePhoneNumberLocalReadResponse.md | 19 + ...tryAvailablePhoneNumberMachineToMachine.md | 23 + ...PhoneNumberMachineToMachineReadResponse.md | 19 + ...NumberCountryAvailablePhoneNumberMobile.md | 23 + ...yAvailablePhoneNumberMobileReadResponse.md | 19 + ...mberCountryAvailablePhoneNumberNational.md | 23 + ...vailablePhoneNumberNationalReadResponse.md | 19 + ...erCountryAvailablePhoneNumberSharedCost.md | 23 + ...ilablePhoneNumberSharedCostReadResponse.md | 19 + ...mberCountryAvailablePhoneNumberTollFree.md | 23 + ...vailablePhoneNumberTollFreeReadResponse.md | 19 + ...neNumberCountryAvailablePhoneNumberVoip.md | 23 + ...tryAvailablePhoneNumberVoipReadResponse.md | 19 + ...AvailablePhoneNumberCountryReadResponse.md | 19 + rest/api/v2010/docs/ApiV2010AccountBalance.md | 13 + rest/api/v2010/docs/ApiV2010AccountCall.md | 37 + .../docs/ApiV2010AccountCallCallEvent.md | 12 + ...piV2010AccountCallCallEventReadResponse.md | 19 + .../docs/ApiV2010AccountCallCallFeedback.md | 16 + .../ApiV2010AccountCallCallFeedbackSummary.md | 24 + .../ApiV2010AccountCallCallNotification.md | 24 + ...2010AccountCallCallNotificationInstance.md | 27 + ...AccountCallCallNotificationReadResponse.md | 19 + .../docs/ApiV2010AccountCallCallRecording.md | 28 + ...010AccountCallCallRecordingReadResponse.md | 19 + .../v2010/docs/ApiV2010AccountCallPayments.md | 16 + .../docs/ApiV2010AccountCallReadResponse.md | 19 + .../v2010/docs/ApiV2010AccountConference.md | 22 + ...010AccountConferenceConferenceRecording.md | 27 + ...nferenceConferenceRecordingReadResponse.md | 19 + .../ApiV2010AccountConferenceParticipant.md | 24 + ...ccountConferenceParticipantReadResponse.md | 19 + .../ApiV2010AccountConferenceReadResponse.md | 19 + .../v2010/docs/ApiV2010AccountConnectApp.md | 21 + .../ApiV2010AccountConnectAppReadResponse.md | 19 + .../ApiV2010AccountIncomingPhoneNumber.md | 43 + ...eNumberIncomingPhoneNumberAssignedAddOn.md | 21 + ...comingPhoneNumberAssignedAddOnExtension.md | 19 + ...umberAssignedAddOnExtensionReadResponse.md | 19 + ...ingPhoneNumberAssignedAddOnReadResponse.md | 19 + ...mingPhoneNumberIncomingPhoneNumberLocal.md | 43 + ...berIncomingPhoneNumberLocalReadResponse.md | 19 + ...ingPhoneNumberIncomingPhoneNumberMobile.md | 43 + ...erIncomingPhoneNumberMobileReadResponse.md | 19 + ...gPhoneNumberIncomingPhoneNumberTollFree.md | 43 + ...IncomingPhoneNumberTollFreeReadResponse.md | 19 + ...0AccountIncomingPhoneNumberReadResponse.md | 19 + rest/api/v2010/docs/ApiV2010AccountKey.md | 14 + .../docs/ApiV2010AccountKeyReadResponse.md | 19 + rest/api/v2010/docs/ApiV2010AccountMessage.md | 30 + .../v2010/docs/ApiV2010AccountMessageMedia.md | 17 + ...ApiV2010AccountMessageMediaReadResponse.md | 19 + .../ApiV2010AccountMessageMessageFeedback.md | 16 + .../ApiV2010AccountMessageReadResponse.md | 19 + rest/api/v2010/docs/ApiV2010AccountNewKey.md | 15 + .../docs/ApiV2010AccountNewSigningKey.md | 15 + .../v2010/docs/ApiV2010AccountNotification.md | 24 + .../ApiV2010AccountNotificationInstance.md | 27 + ...ApiV2010AccountNotificationReadResponse.md | 19 + .../docs/ApiV2010AccountOutgoingCallerId.md | 17 + ...2010AccountOutgoingCallerIdReadResponse.md | 19 + rest/api/v2010/docs/ApiV2010AccountQueue.md | 19 + .../v2010/docs/ApiV2010AccountQueueMember.md | 16 + .../ApiV2010AccountQueueMemberReadResponse.md | 19 + .../docs/ApiV2010AccountQueueReadResponse.md | 19 + .../v2010/docs/ApiV2010AccountReadResponse.md | 19 + .../v2010/docs/ApiV2010AccountRecording.md | 28 + .../ApiV2010AccountRecordingReadResponse.md | 19 + ...010AccountRecordingRecordingAddOnResult.md | 20 + ...cordingRecordingAddOnResultReadResponse.md | 19 + ...gAddOnResultRecordingAddOnResultPayload.md | 21 + ...RecordingAddOnResultPayloadReadResponse.md | 19 + ...0AccountRecordingRecordingTranscription.md | 23 + ...rdingRecordingTranscriptionReadResponse.md | 19 + .../v2010/docs/ApiV2010AccountShortCode.md | 22 + .../ApiV2010AccountShortCodeReadResponse.md | 19 + .../v2010/docs/ApiV2010AccountSigningKey.md | 14 + .../ApiV2010AccountSigningKeyReadResponse.md | 19 + .../ApiV2010AccountSipSipCredentialList.md | 17 + ...AccountSipSipCredentialListReadResponse.md | 19 + ...ccountSipSipCredentialListSipCredential.md | 17 + ...CredentialListSipCredentialReadResponse.md | 19 + .../v2010/docs/ApiV2010AccountSipSipDomain.md | 31 + ...ApiV2010AccountSipSipDomainReadResponse.md | 19 + ...hCallsSipAuthCallsCredentialListMapping.md | 15 + ...hCallsCredentialListMappingReadResponse.md | 19 + ...sSipAuthCallsIpAccessControlListMapping.md | 15 + ...sIpAccessControlListMappingReadResponse.md | 19 + ...pAuthRegistrationsCredentialListMapping.md | 15 + ...ationsCredentialListMappingReadResponse.md | 19 + ...untSipSipDomainSipCredentialListMapping.md | 17 + ...ainSipCredentialListMappingReadResponse.md | 19 + ...pSipDomainSipIpAccessControlListMapping.md | 17 + ...pIpAccessControlListMappingReadResponse.md | 19 + ...piV2010AccountSipSipIpAccessControlList.md | 17 + ...ntSipSipIpAccessControlListReadResponse.md | 19 + ...ntSipSipIpAccessControlListSipIpAddress.md | 19 + ...cessControlListSipIpAddressReadResponse.md | 19 + rest/api/v2010/docs/ApiV2010AccountToken.md | 17 + .../docs/ApiV2010AccountTranscription.md | 23 + ...piV2010AccountTranscriptionReadResponse.md | 19 + .../docs/ApiV2010AccountUsageUsageRecord.md | 25 + ...2010AccountUsageUsageRecordReadResponse.md | 19 + ...countUsageUsageRecordUsageRecordAllTime.md | 25 + ...ageRecordUsageRecordAllTimeReadResponse.md | 19 + ...AccountUsageUsageRecordUsageRecordDaily.md | 25 + ...UsageRecordUsageRecordDailyReadResponse.md | 19 + ...untUsageUsageRecordUsageRecordLastMonth.md | 25 + ...eRecordUsageRecordLastMonthReadResponse.md | 19 + ...countUsageUsageRecordUsageRecordMonthly.md | 25 + ...ageRecordUsageRecordMonthlyReadResponse.md | 19 + ...untUsageUsageRecordUsageRecordThisMonth.md | 25 + ...eRecordUsageRecordThisMonthReadResponse.md | 19 + ...AccountUsageUsageRecordUsageRecordToday.md | 25 + ...UsageRecordUsageRecordTodayReadResponse.md | 19 + ...ccountUsageUsageRecordUsageRecordYearly.md | 25 + ...sageRecordUsageRecordYearlyReadResponse.md | 19 + ...untUsageUsageRecordUsageRecordYesterday.md | 25 + ...eRecordUsageRecordYesterdayReadResponse.md | 19 + .../docs/ApiV2010AccountUsageUsageTrigger.md | 26 + ...010AccountUsageUsageTriggerReadResponse.md | 19 + .../docs/ApiV2010AccountValidationRequest.md | 15 + rest/api/v2010/docs/CreateAccountRequest.md | 11 + rest/api/v2010/docs/CreateAddressRequest.md | 19 + .../v2010/docs/CreateApplicationRequest.md | 25 + .../docs/CreateCallFeedbackSummaryRequest.md | 15 + .../v2010/docs/CreateCallRecordingRequest.md | 16 + rest/api/v2010/docs/CreateCallRequest.md | 43 + ...IncomingPhoneNumberAssignedAddOnRequest.md | 11 + .../CreateIncomingPhoneNumberLocalRequest.md | 33 + .../CreateIncomingPhoneNumberMobileRequest.md | 33 + .../docs/CreateIncomingPhoneNumberRequest.md | 34 + ...reateIncomingPhoneNumberTollFreeRequest.md | 33 + .../docs/CreateMessageFeedbackRequest.md | 11 + rest/api/v2010/docs/CreateMessageRequest.md | 26 + rest/api/v2010/docs/CreateNewKeyRequest.md | 11 + .../v2010/docs/CreateNewSigningKeyRequest.md | 11 + .../v2010/docs/CreateParticipantRequest.md | 48 + rest/api/v2010/docs/CreatePaymentsRequest.md | 26 + rest/api/v2010/docs/CreateQueueRequest.md | 12 + ...ipAuthCallsCredentialListMappingRequest.md | 11 + ...hCallsIpAccessControlListMappingRequest.md | 11 + ...gistrationsCredentialListMappingRequest.md | 11 + .../CreateSipCredentialListMappingRequest.md | 11 + .../docs/CreateSipCredentialListRequest.md | 11 + .../v2010/docs/CreateSipCredentialRequest.md | 12 + rest/api/v2010/docs/CreateSipDomainRequest.md | 23 + ...ateSipIpAccessControlListMappingRequest.md | 11 + .../CreateSipIpAccessControlListRequest.md | 11 + .../v2010/docs/CreateSipIpAddressRequest.md | 13 + rest/api/v2010/docs/CreateTokenRequest.md | 11 + .../v2010/docs/CreateUsageTriggerRequest.md | 17 + .../docs/CreateValidationRequestRequest.md | 16 + rest/api/v2010/docs/DefaultApi.md | 8753 +++++++++++++++ rest/api/v2010/docs/UpdateAccountRequest.md | 12 + rest/api/v2010/docs/UpdateAddressRequest.md | 18 + .../v2010/docs/UpdateApplicationRequest.md | 25 + .../v2010/docs/UpdateCallFeedbackRequest.md | 12 + .../v2010/docs/UpdateCallRecordingRequest.md | 12 + rest/api/v2010/docs/UpdateCallRequest.md | 18 + .../docs/UpdateConferenceRecordingRequest.md | 12 + .../api/v2010/docs/UpdateConferenceRequest.md | 13 + .../api/v2010/docs/UpdateConnectAppRequest.md | 18 + .../docs/UpdateIncomingPhoneNumberRequest.md | 33 + rest/api/v2010/docs/UpdateKeyRequest.md | 11 + rest/api/v2010/docs/UpdateMemberRequest.md | 12 + rest/api/v2010/docs/UpdateMessageRequest.md | 11 + .../docs/UpdateOutgoingCallerIdRequest.md | 11 + .../v2010/docs/UpdateParticipantRequest.md | 22 + rest/api/v2010/docs/UpdatePaymentsRequest.md | 14 + rest/api/v2010/docs/UpdateQueueRequest.md | 12 + rest/api/v2010/docs/UpdateShortCodeRequest.md | 16 + .../api/v2010/docs/UpdateSigningKeyRequest.md | 11 + .../docs/UpdateSipCredentialListRequest.md | 11 + .../v2010/docs/UpdateSipCredentialRequest.md | 11 + rest/api/v2010/docs/UpdateSipDomainRequest.md | 23 + .../UpdateSipIpAccessControlListRequest.md | 11 + .../v2010/docs/UpdateSipIpAddressRequest.md | 13 + .../v2010/docs/UpdateUsageTriggerRequest.md | 13 + rest/api/v2010/model_api_v2010_account.go | 24 + .../v2010/model_api_v2010_account_address.go | 29 + ..._account_address_dependent_phone_number.go | 40 + ...ss_dependent_phone_number_read_response.go | 23 + ...api_v2010_account_address_read_response.go | 23 + .../model_api_v2010_account_application.go | 34 + ...v2010_account_application_read_response.go | 23 + ...pi_v2010_account_authorized_connect_app.go | 24 + ...nt_authorized_connect_app_read_response.go | 23 + ..._account_available_phone_number_country.go | 19 + ...er_country_available_phone_number_local.go | 27 + ...ilable_phone_number_local_read_response.go | 23 + ...ailable_phone_number_machine_to_machine.go | 27 + ...number_machine_to_machine_read_response.go | 23 + ...r_country_available_phone_number_mobile.go | 27 + ...lable_phone_number_mobile_read_response.go | 23 + ...country_available_phone_number_national.go | 27 + ...ble_phone_number_national_read_response.go | 23 + ...ntry_available_phone_number_shared_cost.go | 27 + ..._phone_number_shared_cost_read_response.go | 23 + ...ountry_available_phone_number_toll_free.go | 27 + ...le_phone_number_toll_free_read_response.go | 23 + ...ber_country_available_phone_number_voip.go | 27 + ...ailable_phone_number_voip_read_response.go | 23 + ...able_phone_number_country_read_response.go | 23 + .../v2010/model_api_v2010_account_balance.go | 17 + .../api/v2010/model_api_v2010_account_call.go | 41 + ...model_api_v2010_account_call_call_event.go | 16 + ...0_account_call_call_event_read_response.go | 23 + ...el_api_v2010_account_call_call_feedback.go | 20 + ...2010_account_call_call_feedback_summary.go | 31 + ...pi_v2010_account_call_call_notification.go | 28 + ...account_call_call_notification_instance.go | 31 + ...nt_call_call_notification_read_response.go | 23 + ...l_api_v2010_account_call_call_recording.go | 32 + ...count_call_call_recording_read_response.go | 23 + .../model_api_v2010_account_call_payments.go | 20 + ...el_api_v2010_account_call_read_response.go | 23 + .../model_api_v2010_account_conference.go | 26 + ...account_conference_conference_recording.go | 31 + ...ence_conference_recording_read_response.go | 23 + ...pi_v2010_account_conference_participant.go | 28 + ...nt_conference_participant_read_response.go | 23 + ..._v2010_account_conference_read_response.go | 23 + .../model_api_v2010_account_connect_app.go | 25 + ...v2010_account_connect_app_read_response.go | 23 + ...api_v2010_account_incoming_phone_number.go | 47 + ...r_incoming_phone_number_assigned_add_on.go | 25 + ..._phone_number_assigned_add_on_extension.go | 23 + ...assigned_add_on_extension_read_response.go | 23 + ...ne_number_assigned_add_on_read_response.go | 23 + ...hone_number_incoming_phone_number_local.go | 47 + ...coming_phone_number_local_read_response.go | 23 + ...one_number_incoming_phone_number_mobile.go | 47 + ...oming_phone_number_mobile_read_response.go | 23 + ..._number_incoming_phone_number_toll_free.go | 47 + ...ng_phone_number_toll_free_read_response.go | 23 + ...unt_incoming_phone_number_read_response.go | 23 + rest/api/v2010/model_api_v2010_account_key.go | 18 + ...del_api_v2010_account_key_read_response.go | 23 + .../v2010/model_api_v2010_account_message.go | 34 + .../model_api_v2010_account_message_media.go | 21 + ...010_account_message_media_read_response.go | 23 + ..._v2010_account_message_message_feedback.go | 20 + ...api_v2010_account_message_read_response.go | 23 + .../v2010/model_api_v2010_account_new_key.go | 19 + ...model_api_v2010_account_new_signing_key.go | 19 + .../model_api_v2010_account_notification.go | 28 + ...api_v2010_account_notification_instance.go | 31 + ...2010_account_notification_read_response.go | 23 + ...el_api_v2010_account_outgoing_caller_id.go | 21 + ...ccount_outgoing_caller_id_read_response.go | 23 + .../v2010/model_api_v2010_account_queue.go | 23 + .../model_api_v2010_account_queue_member.go | 20 + ...2010_account_queue_member_read_response.go | 23 + ...l_api_v2010_account_queue_read_response.go | 23 + .../model_api_v2010_account_read_response.go | 23 + .../model_api_v2010_account_recording.go | 32 + ...i_v2010_account_recording_read_response.go | 23 + ...count_recording_recording_add_on_result.go | 24 + ...g_recording_add_on_result_read_response.go | 23 + ..._result_recording_add_on_result_payload.go | 25 + ...ing_add_on_result_payload_read_response.go | 23 + ...count_recording_recording_transcription.go | 27 + ...g_recording_transcription_read_response.go | 23 + .../model_api_v2010_account_short_code.go | 26 + ..._v2010_account_short_code_read_response.go | 23 + .../model_api_v2010_account_signing_key.go | 18 + ...v2010_account_signing_key_read_response.go | 23 + ...i_v2010_account_sip_sip_credential_list.go | 21 + ...t_sip_sip_credential_list_read_response.go | 23 + ..._sip_sip_credential_list_sip_credential.go | 21 + ...ntial_list_sip_credential_read_response.go | 23 + .../model_api_v2010_account_sip_sip_domain.go | 35 + ...10_account_sip_sip_domain_read_response.go | 23 + ..._sip_auth_calls_credential_list_mapping.go | 19 + ...s_credential_list_mapping_read_response.go | 23 + ...th_calls_ip_access_control_list_mapping.go | 19 + ...cess_control_list_mapping_read_response.go | 23 + ...h_registrations_credential_list_mapping.go | 19 + ...s_credential_list_mapping_read_response.go | 23 + ..._sip_domain_sip_credential_list_mapping.go | 21 + ...p_credential_list_mapping_read_response.go | 23 + ...main_sip_ip_access_control_list_mapping.go | 21 + ...cess_control_list_mapping_read_response.go | 23 + ..._account_sip_sip_ip_access_control_list.go | 21 + ...ip_ip_access_control_list_read_response.go | 23 + ...p_ip_access_control_list_sip_ip_address.go | 23 + ...ntrol_list_sip_ip_address_read_response.go | 23 + .../v2010/model_api_v2010_account_token.go | 21 + .../model_api_v2010_account_transcription.go | 27 + ...010_account_transcription_read_response.go | 23 + ...el_api_v2010_account_usage_usage_record.go | 32 + ...ccount_usage_usage_record_read_response.go | 23 + ...sage_usage_record_usage_record_all_time.go | 32 + ...ord_usage_record_all_time_read_response.go | 23 + ...t_usage_usage_record_usage_record_daily.go | 32 + ...record_usage_record_daily_read_response.go | 23 + ...ge_usage_record_usage_record_last_month.go | 32 + ...d_usage_record_last_month_read_response.go | 23 + ...usage_usage_record_usage_record_monthly.go | 32 + ...cord_usage_record_monthly_read_response.go | 23 + ...ge_usage_record_usage_record_this_month.go | 32 + ...d_usage_record_this_month_read_response.go | 23 + ...t_usage_usage_record_usage_record_today.go | 32 + ...record_usage_record_today_read_response.go | 23 + ..._usage_usage_record_usage_record_yearly.go | 32 + ...ecord_usage_record_yearly_read_response.go | 23 + ...age_usage_record_usage_record_yesterday.go | 32 + ...rd_usage_record_yesterday_read_response.go | 23 + ...l_api_v2010_account_usage_usage_trigger.go | 30 + ...count_usage_usage_trigger_read_response.go | 23 + ...el_api_v2010_account_validation_request.go | 19 + .../api/v2010/model_create_account_request.go | 16 + .../api/v2010/model_create_address_request.go | 32 + .../v2010/model_create_application_request.go | 44 + ...el_create_call_feedback_summary_request.go | 27 + .../model_create_call_recording_request.go | 26 + rest/api/v2010/model_create_call_request.go | 80 + ...ng_phone_number_assigned_add_on_request.go | 16 + ...ate_incoming_phone_number_local_request.go | 60 + ...te_incoming_phone_number_mobile_request.go | 60 + ...el_create_incoming_phone_number_request.go | 62 + ...incoming_phone_number_toll_free_request.go | 60 + .../model_create_message_feedback_request.go | 16 + .../api/v2010/model_create_message_request.go | 46 + .../api/v2010/model_create_new_key_request.go | 16 + .../model_create_new_signing_key_request.go | 16 + .../v2010/model_create_participant_request.go | 90 + .../v2010/model_create_payments_request.go | 46 + rest/api/v2010/model_create_queue_request.go | 18 + ...h_calls_credential_list_mapping_request.go | 16 + ..._ip_access_control_list_mapping_request.go | 16 + ...rations_credential_list_mapping_request.go | 16 + ...ate_sip_credential_list_mapping_request.go | 16 + ...odel_create_sip_credential_list_request.go | 16 + .../model_create_sip_credential_request.go | 18 + .../v2010/model_create_sip_domain_request.go | 40 + ..._ip_access_control_list_mapping_request.go | 16 + ...eate_sip_ip_access_control_list_request.go | 16 + .../model_create_sip_ip_address_request.go | 20 + rest/api/v2010/model_create_token_request.go | 16 + .../model_create_usage_trigger_request.go | 28 + ...model_create_validation_request_request.go | 26 + .../api/v2010/model_update_account_request.go | 18 + .../api/v2010/model_update_address_request.go | 30 + .../v2010/model_update_application_request.go | 44 + .../model_update_call_feedback_request.go | 18 + .../model_update_call_recording_request.go | 18 + rest/api/v2010/model_update_call_request.go | 30 + ...del_update_conference_recording_request.go | 18 + .../v2010/model_update_conference_request.go | 20 + .../v2010/model_update_connect_app_request.go | 30 + ...el_update_incoming_phone_number_request.go | 60 + rest/api/v2010/model_update_key_request.go | 16 + rest/api/v2010/model_update_member_request.go | 18 + .../api/v2010/model_update_message_request.go | 16 + ...model_update_outgoing_caller_id_request.go | 16 + .../v2010/model_update_participant_request.go | 38 + .../v2010/model_update_payments_request.go | 22 + rest/api/v2010/model_update_queue_request.go | 18 + .../v2010/model_update_short_code_request.go | 26 + .../v2010/model_update_signing_key_request.go | 15 + ...odel_update_sip_credential_list_request.go | 16 + .../model_update_sip_credential_request.go | 16 + .../v2010/model_update_sip_domain_request.go | 40 + ...date_sip_ip_access_control_list_request.go | 16 + .../model_update_sip_ip_address_request.go | 20 + .../model_update_usage_trigger_request.go | 20 + rest/api/v2010/response.go | 47 + rest/autopilot/v1/.openapi-generator-ignore | 23 + rest/autopilot/v1/.openapi-generator/VERSION | 1 + rest/autopilot/v1/README.md | 159 + rest/autopilot/v1/api_default.go | 2102 ++++ .../autopilot/v1/docs/AutopilotV1Assistant.md | 24 + .../v1/docs/AutopilotV1AssistantDefaults.md | 14 + .../v1/docs/AutopilotV1AssistantDialogue.md | 15 + .../v1/docs/AutopilotV1AssistantFieldType.md | 19 + ...AutopilotV1AssistantFieldTypeFieldValue.md | 20 + ...ssistantFieldTypeFieldValueReadResponse.md | 12 + ...topilotV1AssistantFieldTypeReadResponse.md | 12 + .../v1/docs/AutopilotV1AssistantModelBuild.md | 20 + ...opilotV1AssistantModelBuildReadResponse.md | 12 + .../v1/docs/AutopilotV1AssistantQuery.md | 24 + .../AutopilotV1AssistantQueryReadResponse.md | 12 + .../docs/AutopilotV1AssistantReadResponse.md | 12 + .../AutopilotV1AssistantReadResponseMeta.md | 17 + .../v1/docs/AutopilotV1AssistantStyleSheet.md | 14 + .../v1/docs/AutopilotV1AssistantTask.md | 20 + .../v1/docs/AutopilotV1AssistantTaskField.md | 19 + ...topilotV1AssistantTaskFieldReadResponse.md | 12 + .../AutopilotV1AssistantTaskReadResponse.md | 12 + .../v1/docs/AutopilotV1AssistantTaskSample.md | 20 + ...opilotV1AssistantTaskSampleReadResponse.md | 12 + .../AutopilotV1AssistantTaskTaskActions.md | 15 + .../AutopilotV1AssistantTaskTaskStatistics.md | 16 + .../v1/docs/AutopilotV1AssistantWebhook.md | 20 + ...AutopilotV1AssistantWebhookReadResponse.md | 12 + .../v1/docs/AutopilotV1RestoreAssistant.md | 22 + .../v1/docs/CreateAssistantRequest.md | 17 + rest/autopilot/v1/docs/CreateFieldRequest.md | 12 + .../v1/docs/CreateFieldTypeRequest.md | 12 + .../v1/docs/CreateFieldValueRequest.md | 13 + .../v1/docs/CreateModelBuildRequest.md | 12 + rest/autopilot/v1/docs/CreateQueryRequest.md | 14 + rest/autopilot/v1/docs/CreateSampleRequest.md | 13 + rest/autopilot/v1/docs/CreateTaskRequest.md | 14 + .../autopilot/v1/docs/CreateWebhookRequest.md | 14 + rest/autopilot/v1/docs/DefaultApi.md | 2143 ++++ .../v1/docs/UpdateAssistantRequest.md | 18 + .../v1/docs/UpdateDefaultsRequest.md | 11 + .../v1/docs/UpdateFieldTypeRequest.md | 12 + .../v1/docs/UpdateModelBuildRequest.md | 11 + rest/autopilot/v1/docs/UpdateQueryRequest.md | 12 + .../v1/docs/UpdateRestoreAssistantRequest.md | 11 + rest/autopilot/v1/docs/UpdateSampleRequest.md | 13 + .../v1/docs/UpdateStyleSheetRequest.md | 11 + .../v1/docs/UpdateTaskActionsRequest.md | 11 + rest/autopilot/v1/docs/UpdateTaskRequest.md | 14 + .../autopilot/v1/docs/UpdateWebhookRequest.md | 14 + .../v1/model_autopilot_v1_assistant.go | 31 + .../model_autopilot_v1_assistant_defaults.go | 18 + .../model_autopilot_v1_assistant_dialogue.go | 19 + ...model_autopilot_v1_assistant_field_type.go | 26 + ...lot_v1_assistant_field_type_field_value.go | 27 + ...nt_field_type_field_value_read_response.go | 16 + ...t_v1_assistant_field_type_read_response.go | 16 + ...odel_autopilot_v1_assistant_model_build.go | 27 + ..._v1_assistant_model_build_read_response.go | 16 + .../v1/model_autopilot_v1_assistant_query.go | 31 + ...opilot_v1_assistant_query_read_response.go | 16 + ...el_autopilot_v1_assistant_read_response.go | 16 + ...topilot_v1_assistant_read_response_meta.go | 21 + ...odel_autopilot_v1_assistant_style_sheet.go | 18 + .../v1/model_autopilot_v1_assistant_task.go | 27 + ...model_autopilot_v1_assistant_task_field.go | 26 + ...t_v1_assistant_task_field_read_response.go | 16 + ...topilot_v1_assistant_task_read_response.go | 16 + ...odel_autopilot_v1_assistant_task_sample.go | 27 + ..._v1_assistant_task_sample_read_response.go | 16 + ...utopilot_v1_assistant_task_task_actions.go | 19 + ...pilot_v1_assistant_task_task_statistics.go | 20 + .../model_autopilot_v1_assistant_webhook.go | 27 + ...ilot_v1_assistant_webhook_read_response.go | 16 + .../model_autopilot_v1_restore_assistant.go | 29 + .../v1/model_create_assistant_request.go | 28 + .../v1/model_create_field_request.go | 18 + .../v1/model_create_field_type_request.go | 18 + .../v1/model_create_field_value_request.go | 20 + .../v1/model_create_model_build_request.go | 18 + .../v1/model_create_query_request.go | 22 + .../v1/model_create_sample_request.go | 20 + .../autopilot/v1/model_create_task_request.go | 22 + .../v1/model_create_webhook_request.go | 22 + .../v1/model_update_assistant_request.go | 30 + .../v1/model_update_defaults_request.go | 16 + .../v1/model_update_field_type_request.go | 18 + .../v1/model_update_model_build_request.go | 16 + .../v1/model_update_query_request.go | 18 + .../model_update_restore_assistant_request.go | 16 + .../v1/model_update_sample_request.go | 20 + .../v1/model_update_style_sheet_request.go | 16 + .../v1/model_update_task_actions_request.go | 16 + .../autopilot/v1/model_update_task_request.go | 22 + .../v1/model_update_webhook_request.go | 22 + rest/autopilot/v1/response.go | 47 + rest/bulkexports/v1/.openapi-generator-ignore | 23 + .../bulkexports/v1/.openapi-generator/VERSION | 1 + rest/bulkexports/v1/README.md | 82 + rest/bulkexports/v1/api_default.go | 359 + .../v1/docs/BulkexportsV1Export.md | 13 + .../docs/BulkexportsV1ExportConfiguration.md | 15 + .../v1/docs/BulkexportsV1ExportDay.md | 15 + .../v1/docs/BulkexportsV1ExportDayInstance.md | 11 + .../BulkexportsV1ExportDayReadResponse.md | 12 + .../BulkexportsV1ExportDayReadResponseMeta.md | 17 + .../BulkexportsV1ExportExportCustomJob.md | 19 + ...ortsV1ExportExportCustomJobReadResponse.md | 12 + .../v1/docs/BulkexportsV1ExportJob.md | 20 + .../v1/docs/CreateExportCustomJobRequest.md | 16 + rest/bulkexports/v1/docs/DefaultApi.md | 367 + .../docs/UpdateExportConfigurationRequest.md | 13 + .../v1/model_bulkexports_v1_export.go | 17 + ...del_bulkexports_v1_export_configuration.go | 19 + .../v1/model_bulkexports_v1_export_day.go | 19 + ...odel_bulkexports_v1_export_day_instance.go | 15 + ...bulkexports_v1_export_day_read_response.go | 16 + ...xports_v1_export_day_read_response_meta.go | 21 + ...bulkexports_v1_export_export_custom_job.go | 23 + ..._export_export_custom_job_read_response.go | 16 + .../v1/model_bulkexports_v1_export_job.go | 24 + .../model_create_export_custom_job_request.go | 26 + ...del_update_export_configuration_request.go | 20 + rest/bulkexports/v1/response.go | 47 + rest/chat/v1/.openapi-generator-ignore | 23 + rest/chat/v1/.openapi-generator/VERSION | 1 + rest/chat/v1/README.md | 136 + rest/chat/v1/api_default.go | 1848 +++ rest/chat/v1/docs/ChatV1Credential.md | 18 + .../v1/docs/ChatV1CredentialReadResponse.md | 12 + .../docs/ChatV1CredentialReadResponseMeta.md | 17 + rest/chat/v1/docs/ChatV1Service.md | 31 + rest/chat/v1/docs/ChatV1ServiceChannel.md | 24 + .../v1/docs/ChatV1ServiceChannelInvite.md | 20 + .../ChatV1ServiceChannelInviteReadResponse.md | 12 + .../v1/docs/ChatV1ServiceChannelMember.md | 21 + .../ChatV1ServiceChannelMemberReadResponse.md | 12 + .../v1/docs/ChatV1ServiceChannelMessage.md | 23 + ...ChatV1ServiceChannelMessageReadResponse.md | 12 + .../docs/ChatV1ServiceChannelReadResponse.md | 12 + .../chat/v1/docs/ChatV1ServiceReadResponse.md | 12 + rest/chat/v1/docs/ChatV1ServiceRole.md | 19 + .../v1/docs/ChatV1ServiceRoleReadResponse.md | 12 + rest/chat/v1/docs/ChatV1ServiceUser.md | 24 + .../v1/docs/ChatV1ServiceUserReadResponse.md | 12 + .../v1/docs/ChatV1ServiceUserUserChannel.md | 18 + ...hatV1ServiceUserUserChannelReadResponse.md | 12 + rest/chat/v1/docs/CreateChannelRequest.md | 14 + rest/chat/v1/docs/CreateCredentialRequest.md | 17 + rest/chat/v1/docs/CreateInviteRequest.md | 12 + rest/chat/v1/docs/CreateMemberRequest.md | 12 + rest/chat/v1/docs/CreateMessageRequest.md | 13 + rest/chat/v1/docs/CreateRoleRequest.md | 13 + rest/chat/v1/docs/CreateServiceRequest.md | 11 + rest/chat/v1/docs/CreateUserRequest.md | 14 + rest/chat/v1/docs/DefaultApi.md | 1718 +++ rest/chat/v1/docs/UpdateChannelRequest.md | 13 + rest/chat/v1/docs/UpdateCredentialRequest.md | 16 + rest/chat/v1/docs/UpdateMemberRequest.md | 12 + rest/chat/v1/docs/UpdateMessageRequest.md | 12 + rest/chat/v1/docs/UpdateRoleRequest.md | 11 + rest/chat/v1/docs/UpdateServiceRequest.md | 64 + rest/chat/v1/docs/UpdateUserRequest.md | 13 + rest/chat/v1/model_chat_v1_credential.go | 25 + .../model_chat_v1_credential_read_response.go | 16 + ...l_chat_v1_credential_read_response_meta.go | 21 + rest/chat/v1/model_chat_v1_service.go | 38 + rest/chat/v1/model_chat_v1_service_channel.go | 31 + .../model_chat_v1_service_channel_invite.go | 27 + ...v1_service_channel_invite_read_response.go | 16 + .../model_chat_v1_service_channel_member.go | 28 + ...v1_service_channel_member_read_response.go | 16 + .../model_chat_v1_service_channel_message.go | 30 + ...1_service_channel_message_read_response.go | 16 + ...l_chat_v1_service_channel_read_response.go | 16 + .../v1/model_chat_v1_service_read_response.go | 16 + rest/chat/v1/model_chat_v1_service_role.go | 26 + ...odel_chat_v1_service_role_read_response.go | 16 + rest/chat/v1/model_chat_v1_service_user.go | 31 + ...odel_chat_v1_service_user_read_response.go | 16 + ...model_chat_v1_service_user_user_channel.go | 22 + ...service_user_user_channel_read_response.go | 16 + rest/chat/v1/model_create_channel_request.go | 22 + .../v1/model_create_credential_request.go | 28 + rest/chat/v1/model_create_invite_request.go | 18 + rest/chat/v1/model_create_member_request.go | 18 + rest/chat/v1/model_create_message_request.go | 20 + rest/chat/v1/model_create_role_request.go | 20 + rest/chat/v1/model_create_service_request.go | 16 + rest/chat/v1/model_create_user_request.go | 22 + rest/chat/v1/model_update_channel_request.go | 20 + .../v1/model_update_credential_request.go | 26 + rest/chat/v1/model_update_member_request.go | 18 + rest/chat/v1/model_update_message_request.go | 18 + rest/chat/v1/model_update_role_request.go | 16 + rest/chat/v1/model_update_service_request.go | 122 + rest/chat/v1/model_update_user_request.go | 20 + rest/chat/v1/response.go | 47 + rest/chat/v2/.openapi-generator-ignore | 23 + rest/chat/v2/.openapi-generator/VERSION | 1 + rest/chat/v2/README.md | 159 + rest/chat/v2/api_default.go | 2474 +++++ rest/chat/v2/docs/ChatV2Credential.md | 18 + .../v2/docs/ChatV2CredentialReadResponse.md | 12 + .../docs/ChatV2CredentialReadResponseMeta.md | 17 + rest/chat/v2/docs/ChatV2Service.md | 33 + rest/chat/v2/docs/ChatV2ServiceBinding.md | 22 + .../docs/ChatV2ServiceBindingReadResponse.md | 12 + rest/chat/v2/docs/ChatV2ServiceChannel.md | 24 + .../ChatV2ServiceChannelChannelWebhook.md | 19 + ...erviceChannelChannelWebhookReadResponse.md | 12 + .../v2/docs/ChatV2ServiceChannelInvite.md | 20 + .../ChatV2ServiceChannelInviteReadResponse.md | 12 + .../v2/docs/ChatV2ServiceChannelMember.md | 22 + .../ChatV2ServiceChannelMemberReadResponse.md | 12 + .../v2/docs/ChatV2ServiceChannelMessage.md | 26 + ...ChatV2ServiceChannelMessageReadResponse.md | 12 + .../docs/ChatV2ServiceChannelReadResponse.md | 12 + .../chat/v2/docs/ChatV2ServiceReadResponse.md | 12 + rest/chat/v2/docs/ChatV2ServiceRole.md | 19 + .../v2/docs/ChatV2ServiceRoleReadResponse.md | 12 + rest/chat/v2/docs/ChatV2ServiceUser.md | 24 + .../v2/docs/ChatV2ServiceUserReadResponse.md | 12 + .../v2/docs/ChatV2ServiceUserUserBinding.md | 22 + ...hatV2ServiceUserUserBindingReadResponse.md | 12 + .../v2/docs/ChatV2ServiceUserUserChannel.md | 21 + ...hatV2ServiceUserUserChannelReadResponse.md | 12 + rest/chat/v2/docs/CreateChannelRequest.md | 17 + .../v2/docs/CreateChannelWebhookRequest.md | 17 + rest/chat/v2/docs/CreateCredentialRequest.md | 17 + rest/chat/v2/docs/CreateInviteRequest.md | 12 + rest/chat/v2/docs/CreateMemberRequest.md | 17 + rest/chat/v2/docs/CreateMessageRequest.md | 17 + rest/chat/v2/docs/CreateRoleRequest.md | 13 + rest/chat/v2/docs/CreateServiceRequest.md | 11 + rest/chat/v2/docs/CreateUserRequest.md | 14 + rest/chat/v2/docs/DefaultApi.md | 2338 ++++ rest/chat/v2/docs/UpdateChannelRequest.md | 16 + .../v2/docs/UpdateChannelWebhookRequest.md | 16 + rest/chat/v2/docs/UpdateCredentialRequest.md | 16 + rest/chat/v2/docs/UpdateMemberRequest.md | 16 + rest/chat/v2/docs/UpdateMessageRequest.md | 16 + rest/chat/v2/docs/UpdateRoleRequest.md | 11 + rest/chat/v2/docs/UpdateServiceRequest.md | 41 + rest/chat/v2/docs/UpdateUserChannelRequest.md | 13 + rest/chat/v2/docs/UpdateUserRequest.md | 13 + rest/chat/v2/model_chat_v2_credential.go | 25 + .../model_chat_v2_credential_read_response.go | 16 + ...l_chat_v2_credential_read_response_meta.go | 21 + rest/chat/v2/model_chat_v2_service.go | 40 + rest/chat/v2/model_chat_v2_service_binding.go | 29 + ...l_chat_v2_service_binding_read_response.go | 16 + rest/chat/v2/model_chat_v2_service_channel.go | 31 + ...chat_v2_service_channel_channel_webhook.go | 26 + ...e_channel_channel_webhook_read_response.go | 16 + .../model_chat_v2_service_channel_invite.go | 27 + ...v2_service_channel_invite_read_response.go | 16 + .../model_chat_v2_service_channel_member.go | 29 + ...v2_service_channel_member_read_response.go | 16 + .../model_chat_v2_service_channel_message.go | 33 + ...2_service_channel_message_read_response.go | 16 + ...l_chat_v2_service_channel_read_response.go | 16 + .../v2/model_chat_v2_service_read_response.go | 16 + rest/chat/v2/model_chat_v2_service_role.go | 26 + ...odel_chat_v2_service_role_read_response.go | 16 + rest/chat/v2/model_chat_v2_service_user.go | 31 + ...odel_chat_v2_service_user_read_response.go | 16 + ...model_chat_v2_service_user_user_binding.go | 29 + ...service_user_user_binding_read_response.go | 16 + ...model_chat_v2_service_user_user_channel.go | 25 + ...service_user_user_channel_read_response.go | 16 + rest/chat/v2/model_create_channel_request.go | 31 + .../model_create_channel_webhook_request.go | 28 + .../v2/model_create_credential_request.go | 28 + rest/chat/v2/model_create_invite_request.go | 18 + rest/chat/v2/model_create_member_request.go | 31 + rest/chat/v2/model_create_message_request.go | 31 + rest/chat/v2/model_create_role_request.go | 20 + rest/chat/v2/model_create_service_request.go | 16 + rest/chat/v2/model_create_user_request.go | 22 + rest/chat/v2/model_update_channel_request.go | 29 + .../model_update_channel_webhook_request.go | 26 + .../v2/model_update_credential_request.go | 26 + rest/chat/v2/model_update_member_request.go | 29 + rest/chat/v2/model_update_message_request.go | 29 + rest/chat/v2/model_update_role_request.go | 16 + rest/chat/v2/model_update_service_request.go | 76 + .../v2/model_update_user_channel_request.go | 23 + rest/chat/v2/model_update_user_request.go | 20 + rest/chat/v2/response.go | 47 + .../v1/.openapi-generator-ignore | 23 + .../v1/.openapi-generator/VERSION | 1 + rest/conversations/v1/README.md | 216 + rest/conversations/v1/api_default.go | 3861 +++++++ .../v1/docs/ConversationsV1Configuration.md | 17 + ...ionsV1ConfigurationConfigurationWebhook.md | 17 + .../v1/docs/ConversationsV1Conversation.md | 23 + ...ationsV1ConversationConversationMessage.md | 24 + ...sationMessageConversationMessageReceipt.md | 21 + ...eConversationMessageReceiptReadResponse.md | 12 + ...ersationConversationMessageReadResponse.md | 12 + ...nsV1ConversationConversationParticipant.md | 22 + ...tionConversationParticipantReadResponse.md | 12 + ...V1ConversationConversationScopedWebhook.md | 18 + ...onConversationScopedWebhookReadResponse.md | 12 + ...ConversationsV1ConversationReadResponse.md | 12 + ...ersationsV1ConversationReadResponseMeta.md | 17 + .../v1/docs/ConversationsV1Credential.md | 18 + .../ConversationsV1CredentialReadResponse.md | 12 + .../v1/docs/ConversationsV1Role.md | 19 + .../docs/ConversationsV1RoleReadResponse.md | 12 + .../v1/docs/ConversationsV1Service.md | 17 + .../ConversationsV1ServiceReadResponse.md | 12 + .../ConversationsV1ServiceServiceBinding.md | 21 + ...ionsV1ServiceServiceBindingReadResponse.md | 12 + ...versationsV1ServiceServiceConfiguration.md | 17 + ...ServiceConfigurationServiceNotification.md | 17 + ...nversationsV1ServiceServiceConversation.md | 23 + ...1ServiceServiceConversationReadResponse.md | 12 + ...eConversationServiceConversationMessage.md | 25 + ...nServiceConversationMessageReadResponse.md | 12 + ...essageServiceConversationMessageReceipt.md | 22 + ...eConversationMessageReceiptReadResponse.md | 12 + ...versationServiceConversationParticipant.md | 23 + ...viceConversationParticipantReadResponse.md | 12 + ...rsationServiceConversationScopedWebhook.md | 19 + ...ceConversationScopedWebhookReadResponse.md | 12 + .../docs/ConversationsV1ServiceServiceRole.md | 19 + ...sationsV1ServiceServiceRoleReadResponse.md | 12 + .../docs/ConversationsV1ServiceServiceUser.md | 22 + ...sationsV1ServiceServiceUserReadResponse.md | 12 + .../v1/docs/ConversationsV1User.md | 22 + .../docs/ConversationsV1UserReadResponse.md | 12 + .../docs/CreateConversationMessageRequest.md | 16 + .../CreateConversationParticipantRequest.md | 18 + .../v1/docs/CreateConversationRequest.md | 19 + .../CreateConversationScopedWebhookRequest.md | 17 + .../v1/docs/CreateCredentialRequest.md | 17 + .../v1/docs/CreateRoleRequest.md | 13 + ...CreateServiceConversationMessageRequest.md | 16 + ...teServiceConversationParticipantRequest.md | 18 + .../docs/CreateServiceConversationRequest.md | 19 + ...ServiceConversationScopedWebhookRequest.md | 17 + .../v1/docs/CreateServiceRequest.md | 11 + .../v1/docs/CreateServiceRoleRequest.md | 13 + .../v1/docs/CreateServiceUserRequest.md | 14 + .../v1/docs/CreateUserRequest.md | 14 + rest/conversations/v1/docs/DefaultApi.md | 3773 +++++++ .../v1/docs/UpdateConfigurationRequest.md | 14 + .../docs/UpdateConfigurationWebhookRequest.md | 15 + .../docs/UpdateConversationMessageRequest.md | 15 + .../UpdateConversationParticipantRequest.md | 19 + .../v1/docs/UpdateConversationRequest.md | 19 + .../UpdateConversationScopedWebhookRequest.md | 15 + .../v1/docs/UpdateCredentialRequest.md | 17 + .../v1/docs/UpdateRoleRequest.md | 11 + .../docs/UpdateServiceConfigurationRequest.md | 14 + ...UpdateServiceConversationMessageRequest.md | 15 + ...teServiceConversationParticipantRequest.md | 19 + .../docs/UpdateServiceConversationRequest.md | 19 + ...ServiceConversationScopedWebhookRequest.md | 15 + .../docs/UpdateServiceNotificationRequest.md | 21 + .../v1/docs/UpdateServiceRoleRequest.md | 11 + .../v1/docs/UpdateServiceUserRequest.md | 13 + .../v1/docs/UpdateUserRequest.md | 13 + .../model_conversations_v1_configuration.go | 21 + ..._v1_configuration_configuration_webhook.go | 21 + .../v1/model_conversations_v1_conversation.go | 30 + ...ns_v1_conversation_conversation_message.go | 31 + ...on_message_conversation_message_receipt.go | 28 + ...versation_message_receipt_read_response.go | 16 + ...tion_conversation_message_read_response.go | 16 + ...1_conversation_conversation_participant.go | 29 + ..._conversation_participant_read_response.go | 16 + ...onversation_conversation_scoped_webhook.go | 25 + ...nversation_scoped_webhook_read_response.go | 16 + ...ersations_v1_conversation_read_response.go | 16 + ...ions_v1_conversation_read_response_meta.go | 21 + .../v1/model_conversations_v1_credential.go | 25 + ...nversations_v1_credential_read_response.go | 16 + .../v1/model_conversations_v1_role.go | 26 + ...del_conversations_v1_role_read_response.go | 16 + .../v1/model_conversations_v1_service.go | 24 + ..._conversations_v1_service_read_response.go | 16 + ...onversations_v1_service_service_binding.go | 28 + ...1_service_service_binding_read_response.go | 16 + ...ations_v1_service_service_configuration.go | 21 + ...vice_configuration_service_notification.go | 21 + ...sations_v1_service_service_conversation.go | 30 + ...vice_service_conversation_read_response.go | 16 + ...nversation_service_conversation_message.go | 32 + ...vice_conversation_message_read_response.go | 16 + ...ge_service_conversation_message_receipt.go | 29 + ...versation_message_receipt_read_response.go | 16 + ...sation_service_conversation_participant.go | 30 + ..._conversation_participant_read_response.go | 16 + ...ion_service_conversation_scoped_webhook.go | 26 + ...nversation_scoped_webhook_read_response.go | 16 + ...l_conversations_v1_service_service_role.go | 26 + ...s_v1_service_service_role_read_response.go | 16 + ...l_conversations_v1_service_service_user.go | 29 + ...s_v1_service_service_user_read_response.go | 16 + .../v1/model_conversations_v1_user.go | 29 + ...del_conversations_v1_user_read_response.go | 16 + ...del_create_conversation_message_request.go | 29 + ...create_conversation_participant_request.go | 33 + .../v1/model_create_conversation_request.go | 35 + ...ate_conversation_scoped_webhook_request.go | 28 + .../v1/model_create_credential_request.go | 28 + .../v1/model_create_role_request.go | 20 + ...te_service_conversation_message_request.go | 29 + ...ervice_conversation_participant_request.go | 33 + ...del_create_service_conversation_request.go | 35 + ...ice_conversation_scoped_webhook_request.go | 28 + .../v1/model_create_service_request.go | 16 + .../v1/model_create_service_role_request.go | 20 + .../v1/model_create_service_user_request.go | 22 + .../v1/model_create_user_request.go | 22 + .../v1/model_update_configuration_request.go | 22 + ...el_update_configuration_webhook_request.go | 24 + ...del_update_conversation_message_request.go | 27 + ...update_conversation_participant_request.go | 35 + .../v1/model_update_conversation_request.go | 35 + ...ate_conversation_scoped_webhook_request.go | 24 + .../v1/model_update_credential_request.go | 28 + .../v1/model_update_role_request.go | 16 + ...el_update_service_configuration_request.go | 22 + ...te_service_conversation_message_request.go | 27 + ...ervice_conversation_participant_request.go | 35 + ...del_update_service_conversation_request.go | 35 + ...ice_conversation_scoped_webhook_request.go | 24 + ...del_update_service_notification_request.go | 36 + .../v1/model_update_service_role_request.go | 16 + .../v1/model_update_service_user_request.go | 20 + .../v1/model_update_user_request.go | 20 + rest/conversations/v1/response.go | 47 + rest/events/v1/.openapi-generator-ignore | 23 + rest/events/v1/.openapi-generator/VERSION | 1 + rest/events/v1/README.md | 97 + rest/events/v1/api_default.go | 645 ++ rest/events/v1/docs/CreateSinkRequest.md | 13 + .../v1/docs/CreateSinkValidateRequest.md | 11 + .../v1/docs/CreateSubscriptionRequest.md | 13 + rest/events/v1/docs/DefaultApi.md | 699 ++ rest/events/v1/docs/EventsV1EventType.md | 17 + .../v1/docs/EventsV1EventTypeReadResponse.md | 12 + rest/events/v1/docs/EventsV1Schema.md | 15 + rest/events/v1/docs/EventsV1SchemaVersion.md | 15 + .../docs/EventsV1SchemaVersionReadResponse.md | 12 + .../EventsV1SchemaVersionReadResponseMeta.md | 17 + rest/events/v1/docs/EventsV1Sink.md | 19 + .../v1/docs/EventsV1SinkReadResponse.md | 12 + rest/events/v1/docs/EventsV1SinkSinkTest.md | 11 + .../v1/docs/EventsV1SinkSinkValidate.md | 11 + rest/events/v1/docs/EventsV1Subscription.md | 18 + .../docs/EventsV1SubscriptionReadResponse.md | 12 + .../EventsV1SubscriptionSubscribedEvent.md | 15 + ...SubscriptionSubscribedEventReadResponse.md | 12 + .../v1/docs/UpdateSubscriptionRequest.md | 12 + rest/events/v1/model_create_sink_request.go | 20 + .../v1/model_create_sink_validate_request.go | 16 + .../v1/model_create_subscription_request.go | 20 + rest/events/v1/model_events_v1_event_type.go | 24 + ...odel_events_v1_event_type_read_response.go | 16 + rest/events/v1/model_events_v1_schema.go | 22 + .../v1/model_events_v1_schema_version.go | 22 + ..._events_v1_schema_version_read_response.go | 16 + ...ts_v1_schema_version_read_response_meta.go | 21 + rest/events/v1/model_events_v1_sink.go | 26 + .../v1/model_events_v1_sink_read_response.go | 16 + .../v1/model_events_v1_sink_sink_test_.go | 15 + .../v1/model_events_v1_sink_sink_validate.go | 15 + .../events/v1/model_events_v1_subscription.go | 25 + ...el_events_v1_subscription_read_response.go | 16 + ...events_v1_subscription_subscribed_event.go | 19 + ...cription_subscribed_event_read_response.go | 16 + .../v1/model_update_subscription_request.go | 18 + rest/events/v1/response.go | 47 + rest/fax/v1/.openapi-generator-ignore | 23 + rest/fax/v1/.openapi-generator/VERSION | 1 + rest/fax/v1/README.md | 77 + rest/fax/v1/api_default.go | 356 + rest/fax/v1/docs/CreateFaxRequest.md | 19 + rest/fax/v1/docs/DefaultApi.md | 342 + rest/fax/v1/docs/FaxV1Fax.md | 28 + rest/fax/v1/docs/FaxV1FaxFaxMedia.md | 17 + .../v1/docs/FaxV1FaxFaxMediaReadResponse.md | 12 + rest/fax/v1/docs/FaxV1FaxReadResponse.md | 12 + rest/fax/v1/docs/FaxV1FaxReadResponseMeta.md | 17 + rest/fax/v1/docs/UpdateFaxRequest.md | 11 + rest/fax/v1/model_create_fax_request.go | 32 + rest/fax/v1/model_fax_v1_fax.go | 35 + rest/fax/v1/model_fax_v1_fax_fax_media.go | 24 + ...odel_fax_v1_fax_fax_media_read_response.go | 16 + rest/fax/v1/model_fax_v1_fax_read_response.go | 16 + .../v1/model_fax_v1_fax_read_response_meta.go | 21 + rest/fax/v1/model_update_fax_request.go | 16 + rest/fax/v1/response.go | 47 + rest/flex/v1/.openapi-generator-ignore | 23 + rest/flex/v1/.openapi-generator/VERSION | 1 + rest/flex/v1/README.md | 91 + rest/flex/v1/api_default.go | 783 ++ rest/flex/v1/docs/CreateChannelRequest.md | 20 + rest/flex/v1/docs/CreateFlexFlowRequest.md | 27 + rest/flex/v1/docs/CreateWebChannelRequest.md | 16 + rest/flex/v1/docs/DefaultApi.md | 665 ++ rest/flex/v1/docs/FlexV1Channel.md | 18 + .../flex/v1/docs/FlexV1ChannelReadResponse.md | 12 + .../v1/docs/FlexV1ChannelReadResponseMeta.md | 17 + rest/flex/v1/docs/FlexV1Configuration.md | 47 + rest/flex/v1/docs/FlexV1FlexFlow.md | 24 + .../v1/docs/FlexV1FlexFlowReadResponse.md | 12 + rest/flex/v1/docs/FlexV1WebChannel.md | 16 + .../v1/docs/FlexV1WebChannelReadResponse.md | 12 + rest/flex/v1/docs/UpdateFlexFlowRequest.md | 27 + rest/flex/v1/docs/UpdateWebChannelRequest.md | 12 + rest/flex/v1/model_create_channel_request.go | 34 + .../flex/v1/model_create_flex_flow_request.go | 48 + .../v1/model_create_web_channel_request.go | 26 + rest/flex/v1/model_flex_v1_channel.go | 25 + .../v1/model_flex_v1_channel_read_response.go | 16 + ...odel_flex_v1_channel_read_response_meta.go | 21 + rest/flex/v1/model_flex_v1_configuration.go | 54 + rest/flex/v1/model_flex_v1_flex_flow.go | 31 + .../model_flex_v1_flex_flow_read_response.go | 16 + rest/flex/v1/model_flex_v1_web_channel.go | 23 + ...model_flex_v1_web_channel_read_response.go | 16 + .../flex/v1/model_update_flex_flow_request.go | 48 + .../v1/model_update_web_channel_request.go | 18 + rest/flex/v1/response.go | 47 + rest/insights/v1/.openapi-generator-ignore | 23 + rest/insights/v1/.openapi-generator/VERSION | 1 + rest/insights/v1/README.md | 81 + rest/insights/v1/api_call_tag.go | 60 + rest/insights/v1/api_events_tag.go | 75 + rest/insights/v1/api_metrics_tag.go | 80 + rest/insights/v1/api_summary_tag.go | 70 + .../v1/api_video_participant_summary_tag.go | 101 + .../insights/v1/api_video_room_summary_tag.go | 123 + rest/insights/v1/docs/CallTagApi.md | 41 + rest/insights/v1/docs/EventsTagApi.md | 53 + rest/insights/v1/docs/InsightsV1Call.md | 13 + rest/insights/v1/docs/InsightsV1CallEvent.md | 21 + .../docs/InsightsV1CallEventReadResponse.md | 12 + rest/insights/v1/docs/InsightsV1CallMetric.md | 19 + .../docs/InsightsV1CallMetricReadResponse.md | 12 + .../insights/v1/docs/InsightsV1CallSummary.md | 30 + .../v1/docs/InsightsV1VideoRoomSummary.md | 36 + .../InsightsV1VideoRoomSummaryReadResponse.md | 12 + ...ightsV1VideoRoomSummaryReadResponseMeta.md | 17 + ...VideoRoomSummaryVideoParticipantSummary.md | 27 + ...maryVideoParticipantSummaryReadResponse.md | 12 + rest/insights/v1/docs/MetricsTagApi.md | 54 + rest/insights/v1/docs/SummaryTagApi.md | 52 + .../v1/docs/VideoParticipantSummaryTagApi.md | 86 + .../v1/docs/VideoRoomSummaryTagApi.md | 88 + rest/insights/v1/model_insights_v1_call.go | 17 + .../v1/model_insights_v1_call_event.go | 25 + ...el_insights_v1_call_event_read_response.go | 16 + .../v1/model_insights_v1_call_metric.go | 23 + ...l_insights_v1_call_metric_read_response.go | 16 + .../v1/model_insights_v1_call_summary.go | 37 + .../model_insights_v1_video_room_summary.go | 43 + ...hts_v1_video_room_summary_read_response.go | 16 + ...1_video_room_summary_read_response_meta.go | 21 + ..._room_summary_video_participant_summary.go | 34 + ...video_participant_summary_read_response.go | 16 + rest/insights/v1/response.go | 47 + rest/ip/messaging/.openapi-generator-ignore | 23 + rest/ip/messaging/.openapi-generator/VERSION | 1 + rest/ip/messaging/README.md | 159 + rest/ip/messaging/api_default.go | 2472 ++++ .../ip/messaging/docs/CreateChannelRequest.md | 17 + .../docs/CreateChannelWebhookRequest.md | 17 + .../messaging/docs/CreateCredentialRequest.md | 17 + rest/ip/messaging/docs/CreateInviteRequest.md | 12 + rest/ip/messaging/docs/CreateMemberRequest.md | 17 + .../ip/messaging/docs/CreateMessageRequest.md | 17 + rest/ip/messaging/docs/CreateRoleRequest.md | 13 + .../ip/messaging/docs/CreateServiceRequest.md | 11 + rest/ip/messaging/docs/CreateUserRequest.md | 14 + rest/ip/messaging/docs/DefaultApi.md | 2334 ++++ .../messaging/docs/IpMessagingV1Credential.md | 18 + .../IpMessagingV1CredentialReadResponse.md | 12 + ...IpMessagingV1CredentialReadResponseMeta.md | 17 + .../ip/messaging/docs/IpMessagingV1Service.md | 31 + .../docs/IpMessagingV1ServiceChannel.md | 24 + .../docs/IpMessagingV1ServiceChannelInvite.md | 20 + ...agingV1ServiceChannelInviteReadResponse.md | 12 + .../docs/IpMessagingV1ServiceChannelMember.md | 21 + ...agingV1ServiceChannelMemberReadResponse.md | 12 + .../IpMessagingV1ServiceChannelMessage.md | 23 + ...gingV1ServiceChannelMessageReadResponse.md | 12 + ...IpMessagingV1ServiceChannelReadResponse.md | 12 + .../docs/IpMessagingV1ServiceReadResponse.md | 12 + .../docs/IpMessagingV1ServiceRole.md | 19 + .../IpMessagingV1ServiceRoleReadResponse.md | 12 + .../docs/IpMessagingV1ServiceUser.md | 24 + .../IpMessagingV1ServiceUserReadResponse.md | 12 + .../IpMessagingV1ServiceUserUserChannel.md | 18 + ...ingV1ServiceUserUserChannelReadResponse.md | 12 + .../messaging/docs/IpMessagingV2Credential.md | 18 + .../IpMessagingV2CredentialReadResponse.md | 12 + ...IpMessagingV2CredentialReadResponseMeta.md | 17 + .../ip/messaging/docs/IpMessagingV2Service.md | 33 + .../docs/IpMessagingV2ServiceBinding.md | 22 + ...IpMessagingV2ServiceBindingReadResponse.md | 12 + .../docs/IpMessagingV2ServiceChannel.md | 24 + ...MessagingV2ServiceChannelChannelWebhook.md | 19 + ...erviceChannelChannelWebhookReadResponse.md | 12 + .../docs/IpMessagingV2ServiceChannelInvite.md | 20 + ...agingV2ServiceChannelInviteReadResponse.md | 12 + .../docs/IpMessagingV2ServiceChannelMember.md | 22 + ...agingV2ServiceChannelMemberReadResponse.md | 12 + .../IpMessagingV2ServiceChannelMessage.md | 26 + ...gingV2ServiceChannelMessageReadResponse.md | 12 + ...IpMessagingV2ServiceChannelReadResponse.md | 12 + .../docs/IpMessagingV2ServiceReadResponse.md | 12 + .../docs/IpMessagingV2ServiceRole.md | 19 + .../IpMessagingV2ServiceRoleReadResponse.md | 12 + .../docs/IpMessagingV2ServiceUser.md | 24 + .../IpMessagingV2ServiceUserReadResponse.md | 12 + .../IpMessagingV2ServiceUserUserBinding.md | 22 + ...ingV2ServiceUserUserBindingReadResponse.md | 12 + .../IpMessagingV2ServiceUserUserChannel.md | 21 + ...ingV2ServiceUserUserChannelReadResponse.md | 12 + .../ip/messaging/docs/UpdateChannelRequest.md | 16 + .../docs/UpdateChannelWebhookRequest.md | 16 + .../messaging/docs/UpdateCredentialRequest.md | 16 + rest/ip/messaging/docs/UpdateMemberRequest.md | 16 + .../ip/messaging/docs/UpdateMessageRequest.md | 16 + rest/ip/messaging/docs/UpdateRoleRequest.md | 11 + .../ip/messaging/docs/UpdateServiceRequest.md | 41 + .../docs/UpdateUserChannelRequest.md | 13 + rest/ip/messaging/docs/UpdateUserRequest.md | 13 + .../messaging/model_create_channel_request.go | 24 + .../model_create_channel_webhook_request.go | 21 + .../model_create_credential_request.go | 21 + .../messaging/model_create_invite_request.go | 16 + .../messaging/model_create_member_request.go | 24 + .../messaging/model_create_message_request.go | 24 + .../ip/messaging/model_create_role_request.go | 17 + .../messaging/model_create_service_request.go | 15 + .../ip/messaging/model_create_user_request.go | 18 + .../model_ip_messaging_v1_credential.go | 25 + ...p_messaging_v1_credential_read_response.go | 16 + ...saging_v1_credential_read_response_meta.go | 21 + .../model_ip_messaging_v1_service.go | 38 + .../model_ip_messaging_v1_service_channel.go | 31 + ..._ip_messaging_v1_service_channel_invite.go | 27 + ...v1_service_channel_invite_read_response.go | 16 + ..._ip_messaging_v1_service_channel_member.go | 28 + ...v1_service_channel_member_read_response.go | 16 + ...ip_messaging_v1_service_channel_message.go | 30 + ...1_service_channel_message_read_response.go | 16 + ...saging_v1_service_channel_read_response.go | 16 + ...l_ip_messaging_v1_service_read_response.go | 16 + .../model_ip_messaging_v1_service_role.go | 26 + ...messaging_v1_service_role_read_response.go | 16 + .../model_ip_messaging_v1_service_user.go | 31 + ...messaging_v1_service_user_read_response.go | 16 + ..._messaging_v1_service_user_user_channel.go | 22 + ...service_user_user_channel_read_response.go | 16 + .../model_ip_messaging_v2_credential.go | 25 + ...p_messaging_v2_credential_read_response.go | 16 + ...saging_v2_credential_read_response_meta.go | 21 + .../model_ip_messaging_v2_service.go | 40 + .../model_ip_messaging_v2_service_binding.go | 29 + ...saging_v2_service_binding_read_response.go | 16 + .../model_ip_messaging_v2_service_channel.go | 31 + ...ging_v2_service_channel_channel_webhook.go | 26 + ...e_channel_channel_webhook_read_response.go | 16 + ..._ip_messaging_v2_service_channel_invite.go | 27 + ...v2_service_channel_invite_read_response.go | 16 + ..._ip_messaging_v2_service_channel_member.go | 29 + ...v2_service_channel_member_read_response.go | 16 + ...ip_messaging_v2_service_channel_message.go | 33 + ...2_service_channel_message_read_response.go | 16 + ...saging_v2_service_channel_read_response.go | 16 + ...l_ip_messaging_v2_service_read_response.go | 16 + .../model_ip_messaging_v2_service_role.go | 26 + ...messaging_v2_service_role_read_response.go | 16 + .../model_ip_messaging_v2_service_user.go | 31 + ...messaging_v2_service_user_read_response.go | 16 + ..._messaging_v2_service_user_user_binding.go | 29 + ...service_user_user_binding_read_response.go | 16 + ..._messaging_v2_service_user_user_channel.go | 25 + ...service_user_user_channel_read_response.go | 16 + .../messaging/model_update_channel_request.go | 23 + .../model_update_channel_webhook_request.go | 20 + .../model_update_credential_request.go | 20 + .../messaging/model_update_member_request.go | 23 + .../messaging/model_update_message_request.go | 23 + .../ip/messaging/model_update_role_request.go | 15 + .../messaging/model_update_service_request.go | 45 + .../model_update_user_channel_request.go | 20 + .../ip/messaging/model_update_user_request.go | 17 + rest/ip/messaging/response.go | 47 + rest/lookups/v1/.openapi-generator-ignore | 23 + rest/lookups/v1/.openapi-generator/VERSION | 1 + rest/lookups/v1/README.md | 64 + rest/lookups/v1/api_default.go | 92 + rest/lookups/v1/docs/DefaultApi.md | 55 + rest/lookups/v1/docs/LookupsV1PhoneNumber.md | 17 + .../v1/model_lookups_v1_phone_number.go | 21 + rest/lookups/v1/response.go | 47 + rest/messaging/v1/.openapi-generator-ignore | 23 + rest/messaging/v1/.openapi-generator/VERSION | 1 + rest/messaging/v1/README.md | 95 + rest/messaging/v1/api_default.go | 751 ++ .../v1/docs/CreateAlphaSenderRequest.md | 11 + .../v1/docs/CreatePhoneNumberRequest.md | 11 + .../messaging/v1/docs/CreateServiceRequest.md | 24 + .../v1/docs/CreateShortCodeRequest.md | 11 + rest/messaging/v1/docs/DefaultApi.md | 740 ++ .../v1/docs/MessagingV1Deactivation.md | 11 + rest/messaging/v1/docs/MessagingV1Service.md | 30 + .../v1/docs/MessagingV1ServiceAlphaSender.md | 18 + ...ssagingV1ServiceAlphaSenderReadResponse.md | 12 + .../v1/docs/MessagingV1ServicePhoneNumber.md | 19 + ...ssagingV1ServicePhoneNumberReadResponse.md | 12 + .../v1/docs/MessagingV1ServiceReadResponse.md | 12 + .../MessagingV1ServiceReadResponseMeta.md | 17 + .../v1/docs/MessagingV1ServiceShortCode.md | 19 + ...MessagingV1ServiceShortCodeReadResponse.md | 12 + .../messaging/v1/docs/UpdateServiceRequest.md | 24 + .../v1/model_create_alpha_sender_request.go | 16 + .../v1/model_create_phone_number_request.go | 16 + .../v1/model_create_service_request.go | 42 + .../v1/model_create_short_code_request.go | 16 + .../v1/model_messaging_v1_deactivation.go | 15 + .../v1/model_messaging_v1_service.go | 37 + ...model_messaging_v1_service_alpha_sender.go | 25 + ...g_v1_service_alpha_sender_read_response.go | 16 + ...model_messaging_v1_service_phone_number.go | 26 + ...g_v1_service_phone_number_read_response.go | 16 + ...odel_messaging_v1_service_read_response.go | 16 + ...messaging_v1_service_read_response_meta.go | 21 + .../model_messaging_v1_service_short_code.go | 26 + ...ing_v1_service_short_code_read_response.go | 16 + .../v1/model_update_service_request.go | 42 + rest/messaging/v1/response.go | 47 + rest/monitor/v1/.openapi-generator-ignore | 23 + rest/monitor/v1/.openapi-generator/VERSION | 1 + rest/monitor/v1/README.md | 72 + rest/monitor/v1/api_default.go | 208 + rest/monitor/v1/docs/DefaultApi.md | 169 + rest/monitor/v1/docs/MonitorV1Alert.md | 25 + .../monitor/v1/docs/MonitorV1AlertInstance.md | 29 + .../v1/docs/MonitorV1AlertReadResponse.md | 12 + .../v1/docs/MonitorV1AlertReadResponseMeta.md | 17 + rest/monitor/v1/docs/MonitorV1Event.md | 24 + .../v1/docs/MonitorV1EventReadResponse.md | 12 + rest/monitor/v1/model_monitor_v1_alert.go | 32 + .../v1/model_monitor_v1_alert_instance.go | 36 + .../model_monitor_v1_alert_read_response.go | 16 + ...del_monitor_v1_alert_read_response_meta.go | 21 + rest/monitor/v1/model_monitor_v1_event.go | 31 + .../model_monitor_v1_event_read_response.go | 16 + rest/monitor/v1/response.go | 47 + rest/notify/v1/.openapi-generator-ignore | 23 + rest/notify/v1/.openapi-generator/VERSION | 1 + rest/notify/v1/README.md | 91 + rest/notify/v1/api_default.go | 894 ++ rest/notify/v1/docs/CreateBindingRequest.md | 17 + .../notify/v1/docs/CreateCredentialRequest.md | 17 + .../v1/docs/CreateNotificationRequest.md | 28 + rest/notify/v1/docs/CreateServiceRequest.md | 24 + rest/notify/v1/docs/DefaultApi.md | 661 ++ rest/notify/v1/docs/NotifyV1Credential.md | 18 + .../v1/docs/NotifyV1CredentialReadResponse.md | 12 + .../NotifyV1CredentialReadResponseMeta.md | 17 + rest/notify/v1/docs/NotifyV1Service.md | 30 + rest/notify/v1/docs/NotifyV1ServiceBinding.md | 24 + .../NotifyV1ServiceBindingReadResponse.md | 12 + .../v1/docs/NotifyV1ServiceNotification.md | 30 + .../v1/docs/NotifyV1ServiceReadResponse.md | 12 + .../notify/v1/docs/UpdateCredentialRequest.md | 16 + rest/notify/v1/docs/UpdateServiceRequest.md | 24 + .../notify/v1/model_create_binding_request.go | 28 + .../v1/model_create_credential_request.go | 28 + .../v1/model_create_notification_request.go | 50 + .../notify/v1/model_create_service_request.go | 42 + rest/notify/v1/model_notify_v1_credential.go | 25 + ...odel_notify_v1_credential_read_response.go | 16 + ...notify_v1_credential_read_response_meta.go | 21 + rest/notify/v1/model_notify_v1_service.go | 37 + .../v1/model_notify_v1_service_binding.go | 31 + ...notify_v1_service_binding_read_response.go | 16 + .../model_notify_v1_service_notification.go | 37 + .../model_notify_v1_service_read_response.go | 16 + .../v1/model_update_credential_request.go | 26 + .../notify/v1/model_update_service_request.go | 42 + rest/notify/v1/response.go | 47 + rest/numbers/v2/.openapi-generator-ignore | 23 + rest/numbers/v2/.openapi-generator/VERSION | 1 + rest/numbers/v2/README.md | 114 + rest/numbers/v2/api_default.go | 1109 ++ rest/numbers/v2/docs/CreateBundleRequest.md | 17 + rest/numbers/v2/docs/CreateEndUserRequest.md | 13 + .../v2/docs/CreateItemAssignmentRequest.md | 11 + .../docs/CreateSupportingDocumentRequest.md | 13 + rest/numbers/v2/docs/DefaultApi.md | 1159 ++ .../NumbersV2RegulatoryComplianceBundle.md | 22 + ...sV2RegulatoryComplianceBundleEvaluation.md | 18 + ...yComplianceBundleEvaluationReadResponse.md | 12 + ...egulatoryComplianceBundleItemAssignment.md | 16 + ...plianceBundleItemAssignmentReadResponse.md | 12 + ...2RegulatoryComplianceBundleReadResponse.md | 12 + ...ulatoryComplianceBundleReadResponseMeta.md | 17 + .../NumbersV2RegulatoryComplianceEndUser.md | 18 + ...RegulatoryComplianceEndUserReadResponse.md | 12 + ...umbersV2RegulatoryComplianceEndUserType.md | 15 + ...latoryComplianceEndUserTypeReadResponse.md | 12 + ...NumbersV2RegulatoryComplianceRegulation.md | 17 + ...ulatoryComplianceRegulationReadResponse.md | 12 + ...2RegulatoryComplianceSupportingDocument.md | 20 + ...omplianceSupportingDocumentReadResponse.md | 12 + ...ulatoryComplianceSupportingDocumentType.md | 15 + ...ianceSupportingDocumentTypeReadResponse.md | 12 + rest/numbers/v2/docs/UpdateBundleRequest.md | 14 + rest/numbers/v2/docs/UpdateEndUserRequest.md | 12 + .../docs/UpdateSupportingDocumentRequest.md | 12 + .../numbers/v2/model_create_bundle_request.go | 28 + .../v2/model_create_end_user_request.go | 20 + .../model_create_item_assignment_request.go | 16 + ...odel_create_supporting_document_request.go | 20 + ...numbers_v2_regulatory_compliance_bundle.go | 29 + ...regulatory_compliance_bundle_evaluation.go | 25 + ...pliance_bundle_evaluation_read_response.go | 16 + ...atory_compliance_bundle_item_assignment.go | 23 + ...ce_bundle_item_assignment_read_response.go | 16 + ...ulatory_compliance_bundle_read_response.go | 16 + ...ry_compliance_bundle_read_response_meta.go | 21 + ...mbers_v2_regulatory_compliance_end_user.go | 25 + ...atory_compliance_end_user_read_response.go | 16 + ..._v2_regulatory_compliance_end_user_type.go | 19 + ..._compliance_end_user_type_read_response.go | 16 + ...ers_v2_regulatory_compliance_regulation.go | 21 + ...ory_compliance_regulation_read_response.go | 16 + ...gulatory_compliance_supporting_document.go | 27 + ...iance_supporting_document_read_response.go | 16 + ...ory_compliance_supporting_document_type.go | 19 + ..._supporting_document_type_read_response.go | 16 + .../numbers/v2/model_update_bundle_request.go | 22 + .../v2/model_update_end_user_request.go | 18 + ...odel_update_supporting_document_request.go | 18 + rest/numbers/v2/response.go | 47 + rest/preview/.openapi-generator-ignore | 23 + rest/preview/.openapi-generator/VERSION | 1 + rest/preview/README.md | 363 + rest/preview/api_default.go | 6656 +++++++++++ rest/preview/docs/CreateAssistantRequest.md | 18 + .../CreateAuthorizationDocumentRequest.md | 16 + rest/preview/docs/CreateCertificateRequest.md | 13 + rest/preview/docs/CreateChannelRequest.md | 11 + rest/preview/docs/CreateCommandRequest.md | 17 + rest/preview/docs/CreateDeploymentRequest.md | 12 + rest/preview/docs/CreateDeviceRequest.md | 15 + rest/preview/docs/CreateDocumentRequest.md | 12 + .../docs/CreateExportCustomJobRequest.md | 16 + rest/preview/docs/CreateFieldRequest.md | 12 + rest/preview/docs/CreateFieldTypeRequest.md | 12 + rest/preview/docs/CreateFieldValueRequest.md | 13 + rest/preview/docs/CreateFleetRequest.md | 11 + .../docs/CreateHostedNumberOrderRequest.md | 27 + .../docs/CreateInstalledAddOnRequest.md | 14 + rest/preview/docs/CreateKeyRequest.md | 12 + rest/preview/docs/CreateModelBuildRequest.md | 12 + rest/preview/docs/CreateQueryRequest.md | 15 + rest/preview/docs/CreateRatePlanRequest.md | 20 + rest/preview/docs/CreateSampleRequest.md | 13 + rest/preview/docs/CreateServiceRequest.md | 14 + .../preview/docs/CreateSyncListItemRequest.md | 11 + rest/preview/docs/CreateSyncListRequest.md | 11 + rest/preview/docs/CreateSyncMapItemRequest.md | 12 + rest/preview/docs/CreateSyncMapRequest.md | 11 + rest/preview/docs/CreateTaskRequest.md | 14 + rest/preview/docs/DefaultApi.md | 6800 +++++++++++ rest/preview/docs/PreviewBulkExportsExport.md | 13 + .../PreviewBulkExportsExportConfiguration.md | 15 + .../docs/PreviewBulkExportsExportDay.md | 15 + .../PreviewBulkExportsExportDayInstance.md | 11 + ...PreviewBulkExportsExportDayReadResponse.md | 12 + ...iewBulkExportsExportDayReadResponseMeta.md | 17 + ...PreviewBulkExportsExportExportCustomJob.md | 19 + ...xportsExportExportCustomJobReadResponse.md | 12 + .../docs/PreviewBulkExportsExportJob.md | 20 + .../docs/PreviewDeployedDevicesFleet.md | 19 + .../PreviewDeployedDevicesFleetCertificate.md | 19 + ...oyedDevicesFleetCertificateReadResponse.md | 12 + .../PreviewDeployedDevicesFleetDeployment.md | 18 + ...loyedDevicesFleetDeploymentReadResponse.md | 12 + .../docs/PreviewDeployedDevicesFleetDevice.md | 22 + ...wDeployedDevicesFleetDeviceReadResponse.md | 12 + .../docs/PreviewDeployedDevicesFleetKey.md | 19 + ...viewDeployedDevicesFleetKeyReadResponse.md | 12 + ...PreviewDeployedDevicesFleetReadResponse.md | 12 + ...eviewHostedNumbersAuthorizationDocument.md | 19 + ...ationDocumentDependentHostedNumberOrder.md | 32 + ...tDependentHostedNumberOrderReadResponse.md | 12 + ...umbersAuthorizationDocumentReadResponse.md | 12 + .../PreviewHostedNumbersHostedNumberOrder.md | 33 + ...tedNumbersHostedNumberOrderReadResponse.md | 12 + .../docs/PreviewMarketplaceAvailableAddOn.md | 17 + ...ceAvailableAddOnAvailableAddOnExtension.md | 16 + ...ddOnAvailableAddOnExtensionReadResponse.md | 12 + ...ewMarketplaceAvailableAddOnReadResponse.md | 12 + .../docs/PreviewMarketplaceInstalledAddOn.md | 20 + ...ceInstalledAddOnInstalledAddOnExtension.md | 17 + ...ddOnInstalledAddOnExtensionReadResponse.md | 12 + ...ewMarketplaceInstalledAddOnReadResponse.md | 12 + rest/preview/docs/PreviewSyncService.md | 20 + .../docs/PreviewSyncServiceDocument.md | 21 + ...ewSyncServiceDocumentDocumentPermission.md | 18 + ...eDocumentDocumentPermissionReadResponse.md | 12 + .../PreviewSyncServiceDocumentReadResponse.md | 12 + .../docs/PreviewSyncServiceReadResponse.md | 12 + .../docs/PreviewSyncServiceSyncList.md | 20 + .../PreviewSyncServiceSyncListReadResponse.md | 12 + .../PreviewSyncServiceSyncListSyncListItem.md | 20 + ...ServiceSyncListSyncListItemReadResponse.md | 12 + ...ewSyncServiceSyncListSyncListPermission.md | 18 + ...eSyncListSyncListPermissionReadResponse.md | 12 + .../preview/docs/PreviewSyncServiceSyncMap.md | 20 + .../PreviewSyncServiceSyncMapReadResponse.md | 12 + .../PreviewSyncServiceSyncMapSyncMapItem.md | 20 + ...ncServiceSyncMapSyncMapItemReadResponse.md | 12 + ...viewSyncServiceSyncMapSyncMapPermission.md | 18 + ...iceSyncMapSyncMapPermissionReadResponse.md | 12 + .../docs/PreviewTrustedCommsBrandedChannel.md | 16 + ...reviewTrustedCommsBrandedChannelChannel.md | 17 + .../PreviewTrustedCommsBrandsInformation.md | 14 + rest/preview/docs/PreviewTrustedCommsCps.md | 13 + .../docs/PreviewTrustedCommsCurrentCall.md | 24 + .../docs/PreviewUnderstandAssistant.md | 22 + ...rstandAssistantAssistantFallbackActions.md | 14 + ...tandAssistantAssistantInitiationActions.md | 14 + .../PreviewUnderstandAssistantDialogue.md | 15 + .../PreviewUnderstandAssistantFieldType.md | 19 + ...wUnderstandAssistantFieldTypeFieldValue.md | 20 + ...ssistantFieldTypeFieldValueReadResponse.md | 12 + ...nderstandAssistantFieldTypeReadResponse.md | 12 + .../PreviewUnderstandAssistantModelBuild.md | 20 + ...derstandAssistantModelBuildReadResponse.md | 12 + .../docs/PreviewUnderstandAssistantQuery.md | 23 + ...iewUnderstandAssistantQueryReadResponse.md | 12 + .../PreviewUnderstandAssistantReadResponse.md | 12 + .../PreviewUnderstandAssistantStyleSheet.md | 14 + .../docs/PreviewUnderstandAssistantTask.md | 20 + .../PreviewUnderstandAssistantTaskField.md | 19 + ...nderstandAssistantTaskFieldReadResponse.md | 12 + ...viewUnderstandAssistantTaskReadResponse.md | 12 + .../PreviewUnderstandAssistantTaskSample.md | 20 + ...derstandAssistantTaskSampleReadResponse.md | 12 + ...eviewUnderstandAssistantTaskTaskActions.md | 15 + ...ewUnderstandAssistantTaskTaskStatistics.md | 16 + rest/preview/docs/PreviewWirelessCommand.md | 21 + .../PreviewWirelessCommandReadResponse.md | 12 + rest/preview/docs/PreviewWirelessRatePlan.md | 24 + .../PreviewWirelessRatePlanReadResponse.md | 12 + rest/preview/docs/PreviewWirelessSim.md | 32 + .../docs/PreviewWirelessSimReadResponse.md | 12 + rest/preview/docs/PreviewWirelessSimUsage.md | 19 + .../UpdateAssistantFallbackActionsRequest.md | 11 + ...UpdateAssistantInitiationActionsRequest.md | 11 + rest/preview/docs/UpdateAssistantRequest.md | 18 + .../UpdateAuthorizationDocumentRequest.md | 17 + rest/preview/docs/UpdateCertificateRequest.md | 12 + rest/preview/docs/UpdateDeploymentRequest.md | 12 + rest/preview/docs/UpdateDeviceRequest.md | 14 + .../docs/UpdateDocumentPermissionRequest.md | 13 + rest/preview/docs/UpdateDocumentRequest.md | 11 + .../docs/UpdateExportConfigurationRequest.md | 13 + rest/preview/docs/UpdateFieldTypeRequest.md | 12 + rest/preview/docs/UpdateFleetRequest.md | 12 + .../docs/UpdateHostedNumberOrderRequest.md | 20 + .../UpdateInstalledAddOnExtensionRequest.md | 11 + .../docs/UpdateInstalledAddOnRequest.md | 12 + rest/preview/docs/UpdateKeyRequest.md | 12 + rest/preview/docs/UpdateModelBuildRequest.md | 11 + rest/preview/docs/UpdateQueryRequest.md | 12 + rest/preview/docs/UpdateRatePlanRequest.md | 12 + rest/preview/docs/UpdateSampleRequest.md | 13 + rest/preview/docs/UpdateServiceRequest.md | 14 + rest/preview/docs/UpdateSimRequest.md | 26 + rest/preview/docs/UpdateStyleSheetRequest.md | 11 + .../preview/docs/UpdateSyncListItemRequest.md | 11 + .../docs/UpdateSyncListPermissionRequest.md | 13 + rest/preview/docs/UpdateSyncMapItemRequest.md | 11 + .../docs/UpdateSyncMapPermissionRequest.md | 13 + rest/preview/docs/UpdateTaskActionsRequest.md | 11 + rest/preview/docs/UpdateTaskRequest.md | 14 + .../preview/model_create_assistant_request.go | 30 + ...l_create_authorization_document_request.go | 26 + .../model_create_certificate_request.go | 20 + rest/preview/model_create_channel_request.go | 16 + rest/preview/model_create_command_request.go | 21 + .../model_create_deployment_request.go | 18 + rest/preview/model_create_device_request.go | 23 + rest/preview/model_create_document_request.go | 16 + .../model_create_export_custom_job_request.go | 26 + rest/preview/model_create_field_request.go | 18 + .../model_create_field_type_request.go | 18 + .../model_create_field_value_request.go | 20 + rest/preview/model_create_fleet_request.go | 16 + ...odel_create_hosted_number_order_request.go | 48 + .../model_create_installed_add_on_request.go | 22 + rest/preview/model_create_key_request.go | 18 + .../model_create_model_build_request.go | 17 + rest/preview/model_create_query_request.go | 24 + .../preview/model_create_rate_plan_request.go | 24 + rest/preview/model_create_sample_request.go | 20 + rest/preview/model_create_service_request.go | 18 + .../model_create_sync_list_item_request.go | 15 + .../preview/model_create_sync_list_request.go | 15 + .../model_create_sync_map_item_request.go | 16 + rest/preview/model_create_sync_map_request.go | 15 + rest/preview/model_create_task_request.go | 22 + .../model_preview_bulk_exports_export.go | 17 + ...eview_bulk_exports_export_configuration.go | 19 + .../model_preview_bulk_exports_export_day.go | 19 + ...review_bulk_exports_export_day_instance.go | 15 + ...w_bulk_exports_export_day_read_response.go | 16 + ...k_exports_export_day_read_response_meta.go | 21 + ...w_bulk_exports_export_export_custom_job.go | 23 + ..._export_export_custom_job_read_response.go | 16 + .../model_preview_bulk_exports_export_job.go | 24 + .../model_preview_deployed_devices_fleet.go | 26 + ...view_deployed_devices_fleet_certificate.go | 26 + ...devices_fleet_certificate_read_response.go | 16 + ...eview_deployed_devices_fleet_deployment.go | 25 + ..._devices_fleet_deployment_read_response.go | 16 + ...l_preview_deployed_devices_fleet_device.go | 29 + ...oyed_devices_fleet_device_read_response.go | 16 + ...odel_preview_deployed_devices_fleet_key.go | 26 + ...eployed_devices_fleet_key_read_response.go | 16 + ...ew_deployed_devices_fleet_read_response.go | 16 + ...w_hosted_numbers_authorization_document.go | 26 + ..._document_dependent_hosted_number_order.go | 39 + ...ndent_hosted_number_order_read_response.go | 16 + ...rs_authorization_document_read_response.go | 16 + ...view_hosted_numbers_hosted_number_order.go | 40 + ...mbers_hosted_number_order_read_response.go | 16 + ...el_preview_marketplace_available_add_on.go | 21 + ...lable_add_on_available_add_on_extension.go | 20 + ...vailable_add_on_extension_read_response.go | 16 + ...ketplace_available_add_on_read_response.go | 16 + ...el_preview_marketplace_installed_add_on.go | 27 + ...alled_add_on_installed_add_on_extension.go | 21 + ...nstalled_add_on_extension_read_response.go | 16 + ...ketplace_installed_add_on_read_response.go | 16 + rest/preview/model_preview_sync_service.go | 27 + .../model_preview_sync_service_document.go | 28 + ...nc_service_document_document_permission.go | 22 + ...ument_document_permission_read_response.go | 16 + ...iew_sync_service_document_read_response.go | 16 + ...odel_preview_sync_service_read_response.go | 16 + .../model_preview_sync_service_sync_list.go | 27 + ...ew_sync_service_sync_list_read_response.go | 16 + ...w_sync_service_sync_list_sync_list_item.go | 27 + ..._sync_list_sync_list_item_read_response.go | 16 + ..._service_sync_list_sync_list_permission.go | 22 + ...list_sync_list_permission_read_response.go | 16 + .../model_preview_sync_service_sync_map.go | 27 + ...iew_sync_service_sync_map_read_response.go | 16 + ...iew_sync_service_sync_map_sync_map_item.go | 27 + ...ce_sync_map_sync_map_item_read_response.go | 16 + ...nc_service_sync_map_sync_map_permission.go | 22 + ...c_map_sync_map_permission_read_response.go | 16 + ...l_preview_trusted_comms_branded_channel.go | 20 + ...w_trusted_comms_branded_channel_channel.go | 21 + ...review_trusted_comms_brands_information.go | 21 + .../model_preview_trusted_comms_cps.go | 17 + ...odel_preview_trusted_comms_current_call.go | 31 + .../model_preview_understand_assistant.go | 29 + ...nd_assistant_assistant_fallback_actions.go | 18 + ..._assistant_assistant_initiation_actions.go | 18 + ...l_preview_understand_assistant_dialogue.go | 19 + ...preview_understand_assistant_field_type.go | 26 + ...rstand_assistant_field_type_field_value.go | 27 + ...nt_field_type_field_value_read_response.go | 16 + ...tand_assistant_field_type_read_response.go | 16 + ...review_understand_assistant_model_build.go | 27 + ...and_assistant_model_build_read_response.go | 16 + ...odel_preview_understand_assistant_query.go | 30 + ...nderstand_assistant_query_read_response.go | 16 + ...view_understand_assistant_read_response.go | 16 + ...review_understand_assistant_style_sheet.go | 18 + ...model_preview_understand_assistant_task.go | 27 + ...preview_understand_assistant_task_field.go | 26 + ...tand_assistant_task_field_read_response.go | 16 + ...understand_assistant_task_read_response.go | 16 + ...review_understand_assistant_task_sample.go | 27 + ...and_assistant_task_sample_read_response.go | 16 + ..._understand_assistant_task_task_actions.go | 19 + ...derstand_assistant_task_task_statistics.go | 20 + .../preview/model_preview_wireless_command.go | 28 + ..._preview_wireless_command_read_response.go | 16 + .../model_preview_wireless_rate_plan.go | 31 + ...review_wireless_rate_plan_read_response.go | 16 + rest/preview/model_preview_wireless_sim.go | 39 + ...odel_preview_wireless_sim_read_response.go | 16 + .../model_preview_wireless_sim_usage.go | 23 + ...date_assistant_fallback_actions_request.go | 15 + ...te_assistant_initiation_actions_request.go | 15 + .../preview/model_update_assistant_request.go | 30 + ...l_update_authorization_document_request.go | 28 + .../model_update_certificate_request.go | 18 + .../model_update_deployment_request.go | 18 + rest/preview/model_update_device_request.go | 21 + ...odel_update_document_permission_request.go | 20 + rest/preview/model_update_document_request.go | 15 + ...del_update_export_configuration_request.go | 20 + .../model_update_field_type_request.go | 18 + rest/preview/model_update_fleet_request.go | 18 + ...odel_update_hosted_number_order_request.go | 34 + ...date_installed_add_on_extension_request.go | 16 + .../model_update_installed_add_on_request.go | 18 + rest/preview/model_update_key_request.go | 18 + .../model_update_model_build_request.go | 16 + rest/preview/model_update_query_request.go | 18 + .../preview/model_update_rate_plan_request.go | 16 + rest/preview/model_update_sample_request.go | 20 + rest/preview/model_update_service_request.go | 18 + rest/preview/model_update_sim_request.go | 30 + .../model_update_style_sheet_request.go | 16 + .../model_update_sync_list_item_request.go | 15 + ...del_update_sync_list_permission_request.go | 20 + .../model_update_sync_map_item_request.go | 15 + ...odel_update_sync_map_permission_request.go | 20 + .../model_update_task_actions_request.go | 16 + rest/preview/model_update_task_request.go | 22 + rest/preview/response.go | 47 + rest/pricing/v1/.openapi-generator-ignore | 23 + rest/pricing/v1/.openapi-generator/VERSION | 1 + rest/pricing/v1/README.md | 87 + rest/pricing/v1/api_default.go | 256 + rest/pricing/v1/docs/DefaultApi.md | 266 + rest/pricing/v1/docs/PricingV1Messaging.md | 13 + .../PricingV1MessagingMessagingCountry.md | 13 + ...cingV1MessagingMessagingCountryInstance.md | 16 + ...essagingCountryInstanceInboundSmsPrices.md | 13 + ...ssagingCountryInstanceOutboundSmsPrices.md | 14 + ...V1MessagingMessagingCountryReadResponse.md | 12 + ...ssagingMessagingCountryReadResponseMeta.md | 17 + rest/pricing/v1/docs/PricingV1PhoneNumber.md | 13 + .../PricingV1PhoneNumberPhoneNumberCountry.md | 13 + ...V1PhoneNumberPhoneNumberCountryInstance.md | 15 + ...oneNumberPhoneNumberCountryReadResponse.md | 12 + rest/pricing/v1/docs/PricingV1Voice.md | 13 + .../v1/docs/PricingV1VoiceVoiceCountry.md | 13 + .../PricingV1VoiceVoiceCountryInstance.md | 16 + ...oiceCountryInstanceOutboundPrefixPrices.md | 14 + .../PricingV1VoiceVoiceCountryReadResponse.md | 12 + .../v1/docs/PricingV1VoiceVoiceNumber.md | 17 + ...cingV1VoiceVoiceNumberOutboundCallPrice.md | 12 + rest/pricing/v1/model_pricing_v1_messaging.go | 17 + ..._pricing_v1_messaging_messaging_country.go | 17 + ...v1_messaging_messaging_country_instance.go | 20 + ...ing_country_instance_inbound_sms_prices.go | 17 + ...ng_country_instance_outbound_sms_prices.go | 18 + ...ssaging_messaging_country_read_response.go | 16 + ...ng_messaging_country_read_response_meta.go | 21 + .../v1/model_pricing_v1_phone_number.go | 17 + ...ng_v1_phone_number_phone_number_country.go | 17 + ...ne_number_phone_number_country_instance.go | 19 + ...mber_phone_number_country_read_response.go | 16 + rest/pricing/v1/model_pricing_v1_voice.go | 17 + .../model_pricing_v1_voice_voice_country.go | 17 + ...pricing_v1_voice_voice_country_instance.go | 20 + ...country_instance_outbound_prefix_prices.go | 18 + ...ng_v1_voice_voice_country_read_response.go | 16 + .../v1/model_pricing_v1_voice_voice_number.go | 21 + ..._voice_voice_number_outbound_call_price.go | 16 + rest/pricing/v1/response.go | 47 + rest/pricing/v2/.openapi-generator-ignore | 23 + rest/pricing/v2/.openapi-generator/VERSION | 1 + rest/pricing/v2/README.md | 74 + rest/pricing/v2/api_default.go | 137 + rest/pricing/v2/docs/DefaultApi.md | 131 + rest/pricing/v2/docs/PricingV2Voice.md | 13 + .../v2/docs/PricingV2VoiceVoiceCountry.md | 13 + .../PricingV2VoiceVoiceCountryInstance.md | 16 + ...ceVoiceCountryInstanceInboundCallPrices.md | 13 + ...oiceCountryInstanceOutboundPrefixPrices.md | 15 + .../PricingV2VoiceVoiceCountryReadResponse.md | 12 + ...cingV2VoiceVoiceCountryReadResponseMeta.md | 17 + .../v2/docs/PricingV2VoiceVoiceNumber.md | 18 + ...ingV2VoiceVoiceNumberOutboundCallPrices.md | 13 + rest/pricing/v2/model_pricing_v2_voice.go | 17 + .../model_pricing_v2_voice_voice_country.go | 17 + ...pricing_v2_voice_voice_country_instance.go | 20 + ...ce_country_instance_inbound_call_prices.go | 17 + ...country_instance_outbound_prefix_prices.go | 19 + ...ng_v2_voice_voice_country_read_response.go | 16 + ..._voice_voice_country_read_response_meta.go | 21 + .../v2/model_pricing_v2_voice_voice_number.go | 22 + ...voice_voice_number_outbound_call_prices.go | 17 + rest/pricing/v2/response.go | 47 + rest/proxy/v1/.openapi-generator-ignore | 23 + rest/proxy/v1/.openapi-generator/VERSION | 1 + rest/proxy/v1/README.md | 117 + rest/proxy/v1/api_default.go | 1253 +++ .../docs/CreateMessageInteractionRequest.md | 12 + .../proxy/v1/docs/CreateParticipantRequest.md | 15 + .../proxy/v1/docs/CreatePhoneNumberRequest.md | 13 + rest/proxy/v1/docs/CreateServiceRequest.md | 18 + rest/proxy/v1/docs/CreateSessionRequest.md | 17 + rest/proxy/v1/docs/CreateShortCodeRequest.md | 11 + rest/proxy/v1/docs/DefaultApi.md | 1304 +++ rest/proxy/v1/docs/ProxyV1Service.md | 24 + .../v1/docs/ProxyV1ServicePhoneNumber.md | 22 + .../ProxyV1ServicePhoneNumberReadResponse.md | 12 + .../v1/docs/ProxyV1ServiceReadResponse.md | 12 + .../v1/docs/ProxyV1ServiceReadResponseMeta.md | 17 + rest/proxy/v1/docs/ProxyV1ServiceSession.md | 26 + .../docs/ProxyV1ServiceSessionInteraction.md | 29 + ...V1ServiceSessionInteractionReadResponse.md | 12 + .../docs/ProxyV1ServiceSessionParticipant.md | 23 + ...iceSessionParticipantMessageInteraction.md | 30 + ...rticipantMessageInteractionReadResponse.md | 12 + ...V1ServiceSessionParticipantReadResponse.md | 12 + .../docs/ProxyV1ServiceSessionReadResponse.md | 12 + rest/proxy/v1/docs/ProxyV1ServiceShortCode.md | 20 + .../ProxyV1ServiceShortCodeReadResponse.md | 12 + .../proxy/v1/docs/UpdatePhoneNumberRequest.md | 11 + rest/proxy/v1/docs/UpdateServiceRequest.md | 18 + rest/proxy/v1/docs/UpdateSessionRequest.md | 14 + rest/proxy/v1/docs/UpdateShortCodeRequest.md | 11 + ...odel_create_message_interaction_request.go | 18 + .../v1/model_create_participant_request.go | 24 + .../v1/model_create_phone_number_request.go | 20 + rest/proxy/v1/model_create_service_request.go | 30 + rest/proxy/v1/model_create_session_request.go | 31 + .../v1/model_create_short_code_request.go | 16 + rest/proxy/v1/model_proxy_v1_service.go | 31 + .../v1/model_proxy_v1_service_phone_number.go | 29 + ...y_v1_service_phone_number_read_response.go | 16 + .../model_proxy_v1_service_read_response.go | 16 + ...del_proxy_v1_service_read_response_meta.go | 21 + .../v1/model_proxy_v1_service_session.go | 33 + ...el_proxy_v1_service_session_interaction.go | 36 + ...rvice_session_interaction_read_response.go | 16 + ...el_proxy_v1_service_session_participant.go | 30 + ...session_participant_message_interaction.go | 37 + ...ipant_message_interaction_read_response.go | 16 + ...rvice_session_participant_read_response.go | 16 + ..._proxy_v1_service_session_read_response.go | 16 + .../v1/model_proxy_v1_service_short_code.go | 27 + ...oxy_v1_service_short_code_read_response.go | 16 + .../v1/model_update_phone_number_request.go | 16 + rest/proxy/v1/model_update_service_request.go | 30 + rest/proxy/v1/model_update_session_request.go | 25 + .../v1/model_update_short_code_request.go | 16 + rest/proxy/v1/response.go | 47 + rest/serverless/v1/.openapi-generator-ignore | 23 + rest/serverless/v1/.openapi-generator/VERSION | 1 + rest/serverless/v1/README.md | 135 + rest/serverless/v1/api_default.go | 1484 +++ rest/serverless/v1/docs/CreateAssetRequest.md | 11 + rest/serverless/v1/docs/CreateBuildRequest.md | 13 + .../v1/docs/CreateDeploymentRequest.md | 11 + .../v1/docs/CreateEnvironmentRequest.md | 12 + .../v1/docs/CreateFunctionRequest.md | 11 + .../v1/docs/CreateServiceRequest.md | 14 + .../v1/docs/CreateVariableRequest.md | 12 + rest/serverless/v1/docs/DefaultApi.md | 1658 +++ .../serverless/v1/docs/ServerlessV1Service.md | 20 + .../v1/docs/ServerlessV1ServiceAsset.md | 18 + .../ServerlessV1ServiceAssetAssetVersion.md | 18 + ...sV1ServiceAssetAssetVersionReadResponse.md | 12 + .../ServerlessV1ServiceAssetReadResponse.md | 12 + .../v1/docs/ServerlessV1ServiceBuild.md | 21 + .../ServerlessV1ServiceBuildBuildStatus.md | 15 + .../ServerlessV1ServiceBuildReadResponse.md | 12 + .../v1/docs/ServerlessV1ServiceEnvironment.md | 21 + ...erverlessV1ServiceEnvironmentDeployment.md | 18 + ...erviceEnvironmentDeploymentReadResponse.md | 12 + .../docs/ServerlessV1ServiceEnvironmentLog.md | 22 + ...lessV1ServiceEnvironmentLogReadResponse.md | 12 + ...verlessV1ServiceEnvironmentReadResponse.md | 12 + .../ServerlessV1ServiceEnvironmentVariable.md | 19 + ...1ServiceEnvironmentVariableReadResponse.md | 12 + .../v1/docs/ServerlessV1ServiceFunction.md | 18 + ...verlessV1ServiceFunctionFunctionVersion.md | 19 + ...onFunctionVersionFunctionVersionContent.md | 16 + ...viceFunctionFunctionVersionReadResponse.md | 12 + ...ServerlessV1ServiceFunctionReadResponse.md | 12 + .../docs/ServerlessV1ServiceReadResponse.md | 12 + .../ServerlessV1ServiceReadResponseMeta.md | 17 + rest/serverless/v1/docs/UpdateAssetRequest.md | 11 + .../v1/docs/UpdateFunctionRequest.md | 11 + .../v1/docs/UpdateServiceRequest.md | 13 + .../v1/docs/UpdateVariableRequest.md | 12 + .../v1/model_create_asset_request.go | 16 + .../v1/model_create_build_request.go | 20 + .../v1/model_create_deployment_request.go | 16 + .../v1/model_create_environment_request.go | 18 + .../v1/model_create_function_request.go | 16 + .../v1/model_create_service_request.go | 22 + .../v1/model_create_variable_request.go | 18 + .../v1/model_serverless_v1_service.go | 27 + .../v1/model_serverless_v1_service_asset.go | 25 + ...rverless_v1_service_asset_asset_version.go | 25 + ...rvice_asset_asset_version_read_response.go | 16 + ...rverless_v1_service_asset_read_response.go | 16 + .../v1/model_serverless_v1_service_build.go | 28 + ...erverless_v1_service_build_build_status.go | 19 + ...rverless_v1_service_build_read_response.go | 16 + ...model_serverless_v1_service_environment.go | 28 + ...rless_v1_service_environment_deployment.go | 25 + ...ce_environment_deployment_read_response.go | 16 + ...l_serverless_v1_service_environment_log.go | 29 + ...1_service_environment_log_read_response.go | 16 + ...ss_v1_service_environment_read_response.go | 16 + ...verless_v1_service_environment_variable.go | 26 + ...vice_environment_variable_read_response.go | 16 + .../model_serverless_v1_service_function.go | 25 + ...ss_v1_service_function_function_version.go | 26 + ...nction_version_function_version_content.go | 20 + ...function_function_version_read_response.go | 16 + ...rless_v1_service_function_read_response.go | 16 + ...del_serverless_v1_service_read_response.go | 16 + ...erverless_v1_service_read_response_meta.go | 21 + .../v1/model_update_asset_request.go | 16 + .../v1/model_update_function_request.go | 16 + .../v1/model_update_service_request.go | 20 + .../v1/model_update_variable_request.go | 18 + rest/serverless/v1/response.go | 47 + rest/studio/v1/.openapi-generator-ignore | 23 + rest/studio/v1/.openapi-generator/VERSION | 1 + rest/studio/v1/README.md | 100 + rest/studio/v1/api_default.go | 760 ++ .../studio/v1/docs/CreateEngagementRequest.md | 13 + rest/studio/v1/docs/CreateExecutionRequest.md | 13 + rest/studio/v1/docs/DefaultApi.md | 820 ++ rest/studio/v1/docs/StudioV1Flow.md | 19 + rest/studio/v1/docs/StudioV1FlowEngagement.md | 21 + ...StudioV1FlowEngagementEngagementContext.md | 15 + .../StudioV1FlowEngagementReadResponse.md | 12 + .../v1/docs/StudioV1FlowEngagementStep.md | 22 + .../StudioV1FlowEngagementStepReadResponse.md | 12 + .../StudioV1FlowEngagementStepStepContext.md | 16 + rest/studio/v1/docs/StudioV1FlowExecution.md | 21 + .../StudioV1FlowExecutionExecutionContext.md | 15 + .../StudioV1FlowExecutionExecutionStep.md | 22 + ...cutionExecutionStepExecutionStepContext.md | 16 + ...1FlowExecutionExecutionStepReadResponse.md | 12 + .../docs/StudioV1FlowExecutionReadResponse.md | 12 + .../v1/docs/StudioV1FlowReadResponse.md | 12 + .../v1/docs/StudioV1FlowReadResponseMeta.md | 17 + rest/studio/v1/docs/UpdateExecutionRequest.md | 11 + .../v1/model_create_engagement_request.go | 20 + .../v1/model_create_execution_request.go | 20 + rest/studio/v1/model_studio_v1_flow.go | 26 + .../v1/model_studio_v1_flow_engagement.go | 28 + ...o_v1_flow_engagement_engagement_context.go | 19 + ...studio_v1_flow_engagement_read_response.go | 16 + .../model_studio_v1_flow_engagement_step.go | 29 + ...o_v1_flow_engagement_step_read_response.go | 16 + ...io_v1_flow_engagement_step_step_context.go | 20 + .../v1/model_studio_v1_flow_execution.go | 28 + ...dio_v1_flow_execution_execution_context.go | 19 + ...studio_v1_flow_execution_execution_step.go | 29 + ...n_execution_step_execution_step_context.go | 20 + ..._execution_execution_step_read_response.go | 16 + ..._studio_v1_flow_execution_read_response.go | 16 + .../v1/model_studio_v1_flow_read_response.go | 16 + ...model_studio_v1_flow_read_response_meta.go | 21 + .../v1/model_update_execution_request.go | 16 + rest/studio/v1/response.go | 47 + rest/studio/v2/.openapi-generator-ignore | 23 + rest/studio/v2/.openapi-generator/VERSION | 1 + rest/studio/v2/README.md | 100 + rest/studio/v2/api_default.go | 780 ++ rest/studio/v2/docs/CreateExecutionRequest.md | 13 + rest/studio/v2/docs/CreateFlowRequest.md | 14 + rest/studio/v2/docs/DefaultApi.md | 796 ++ rest/studio/v2/docs/StudioV2Flow.md | 25 + rest/studio/v2/docs/StudioV2FlowExecution.md | 20 + .../StudioV2FlowExecutionExecutionContext.md | 15 + .../StudioV2FlowExecutionExecutionStep.md | 22 + ...cutionExecutionStepExecutionStepContext.md | 16 + ...2FlowExecutionExecutionStepReadResponse.md | 12 + .../docs/StudioV2FlowExecutionReadResponse.md | 12 + .../v2/docs/StudioV2FlowFlowRevision.md | 22 + .../StudioV2FlowFlowRevisionReadResponse.md | 12 + .../v2/docs/StudioV2FlowReadResponse.md | 12 + .../v2/docs/StudioV2FlowReadResponseMeta.md | 17 + rest/studio/v2/docs/StudioV2FlowTestUser.md | 13 + rest/studio/v2/docs/StudioV2FlowValidate.md | 11 + rest/studio/v2/docs/UpdateExecutionRequest.md | 11 + rest/studio/v2/docs/UpdateFlowRequest.md | 14 + .../v2/docs/UpdateFlowValidateRequest.md | 14 + rest/studio/v2/docs/UpdateTestUserRequest.md | 11 + .../v2/model_create_execution_request.go | 20 + rest/studio/v2/model_create_flow_request.go | 22 + rest/studio/v2/model_studio_v2_flow.go | 32 + .../v2/model_studio_v2_flow_execution.go | 27 + ...dio_v2_flow_execution_execution_context.go | 19 + ...studio_v2_flow_execution_execution_step.go | 29 + ...n_execution_step_execution_step_context.go | 20 + ..._execution_execution_step_read_response.go | 16 + ..._studio_v2_flow_execution_read_response.go | 16 + .../v2/model_studio_v2_flow_flow_revision.go | 29 + ...dio_v2_flow_flow_revision_read_response.go | 16 + .../v2/model_studio_v2_flow_read_response.go | 16 + ...model_studio_v2_flow_read_response_meta.go | 21 + .../v2/model_studio_v2_flow_test_user.go | 17 + .../v2/model_studio_v2_flow_validate.go | 15 + .../v2/model_update_execution_request.go | 16 + rest/studio/v2/model_update_flow_request.go | 22 + .../v2/model_update_flow_validate_request.go | 18 + .../v2/model_update_test_user_request.go | 15 + rest/studio/v2/response.go | 47 + rest/supersim/v1/.openapi-generator-ignore | 23 + rest/supersim/v1/.openapi-generator/VERSION | 1 + rest/supersim/v1/README.md | 105 + rest/supersim/v1/api_default.go | 938 ++ rest/supersim/v1/docs/CreateCommandRequest.md | 14 + rest/supersim/v1/docs/CreateFleetRequest.md | 17 + ...reateNetworkAccessProfileNetworkRequest.md | 11 + .../docs/CreateNetworkAccessProfileRequest.md | 12 + rest/supersim/v1/docs/DefaultApi.md | 915 ++ rest/supersim/v1/docs/SupersimV1Command.md | 19 + .../v1/docs/SupersimV1CommandReadResponse.md | 12 + .../docs/SupersimV1CommandReadResponseMeta.md | 17 + rest/supersim/v1/docs/SupersimV1Fleet.md | 23 + .../v1/docs/SupersimV1FleetReadResponse.md | 12 + rest/supersim/v1/docs/SupersimV1Network.md | 15 + .../v1/docs/SupersimV1NetworkAccessProfile.md | 17 + ...ccessProfileNetworkAccessProfileNetwork.md | 16 + ...NetworkAccessProfileNetworkReadResponse.md | 12 + ...ersimV1NetworkAccessProfileReadResponse.md | 12 + .../v1/docs/SupersimV1NetworkReadResponse.md | 12 + rest/supersim/v1/docs/SupersimV1Sim.md | 19 + .../v1/docs/SupersimV1SimReadResponse.md | 12 + .../supersim/v1/docs/SupersimV1UsageRecord.md | 19 + .../docs/SupersimV1UsageRecordReadResponse.md | 12 + rest/supersim/v1/docs/UpdateFleetRequest.md | 12 + .../docs/UpdateNetworkAccessProfileRequest.md | 11 + rest/supersim/v1/docs/UpdateSimRequest.md | 16 + .../v1/model_create_command_request.go | 22 + .../supersim/v1/model_create_fleet_request.go | 28 + ..._network_access_profile_network_request.go | 16 + ...l_create_network_access_profile_request.go | 18 + rest/supersim/v1/model_supersim_v1_command.go | 26 + ...model_supersim_v1_command_read_response.go | 16 + ..._supersim_v1_command_read_response_meta.go | 21 + rest/supersim/v1/model_supersim_v1_fleet.go | 30 + .../model_supersim_v1_fleet_read_response.go | 16 + rest/supersim/v1/model_supersim_v1_network.go | 19 + ...odel_supersim_v1_network_access_profile.go | 24 + ..._profile_network_access_profile_network.go | 20 + ...rk_access_profile_network_read_response.go | 16 + ...v1_network_access_profile_read_response.go | 16 + ...model_supersim_v1_network_read_response.go | 16 + rest/supersim/v1/model_supersim_v1_sim.go | 26 + .../v1/model_supersim_v1_sim_read_response.go | 16 + .../v1/model_supersim_v1_usage_record.go | 23 + ..._supersim_v1_usage_record_read_response.go | 16 + .../supersim/v1/model_update_fleet_request.go | 18 + ...l_update_network_access_profile_request.go | 16 + rest/supersim/v1/model_update_sim_request.go | 26 + rest/supersim/v1/response.go | 47 + rest/sync/v1/.openapi-generator-ignore | 23 + rest/sync/v1/.openapi-generator/VERSION | 1 + rest/sync/v1/README.md | 150 + rest/sync/v1/api_default.go | 2079 ++++ rest/sync/v1/docs/CreateDocumentRequest.md | 13 + rest/sync/v1/docs/CreateServiceRequest.md | 17 + .../v1/docs/CreateStreamMessageRequest.md | 11 + .../sync/v1/docs/CreateSyncListItemRequest.md | 14 + rest/sync/v1/docs/CreateSyncListRequest.md | 13 + rest/sync/v1/docs/CreateSyncMapItemRequest.md | 15 + rest/sync/v1/docs/CreateSyncMapRequest.md | 13 + rest/sync/v1/docs/CreateSyncStreamRequest.md | 12 + rest/sync/v1/docs/DefaultApi.md | 2098 ++++ rest/sync/v1/docs/SyncV1Service.md | 24 + rest/sync/v1/docs/SyncV1ServiceDocument.md | 22 + ...SyncV1ServiceDocumentDocumentPermission.md | 18 + ...eDocumentDocumentPermissionReadResponse.md | 12 + .../docs/SyncV1ServiceDocumentReadResponse.md | 12 + .../sync/v1/docs/SyncV1ServiceReadResponse.md | 12 + .../v1/docs/SyncV1ServiceReadResponseMeta.md | 17 + rest/sync/v1/docs/SyncV1ServiceSyncList.md | 21 + .../docs/SyncV1ServiceSyncListReadResponse.md | 12 + .../docs/SyncV1ServiceSyncListSyncListItem.md | 21 + ...ServiceSyncListSyncListItemReadResponse.md | 12 + ...SyncV1ServiceSyncListSyncListPermission.md | 18 + ...eSyncListSyncListPermissionReadResponse.md | 12 + rest/sync/v1/docs/SyncV1ServiceSyncMap.md | 21 + .../docs/SyncV1ServiceSyncMapReadResponse.md | 12 + .../docs/SyncV1ServiceSyncMapSyncMapItem.md | 21 + ...V1ServiceSyncMapSyncMapItemReadResponse.md | 12 + .../SyncV1ServiceSyncMapSyncMapPermission.md | 18 + ...iceSyncMapSyncMapPermissionReadResponse.md | 12 + rest/sync/v1/docs/SyncV1ServiceSyncStream.md | 20 + .../SyncV1ServiceSyncStreamReadResponse.md | 12 + .../SyncV1ServiceSyncStreamStreamMessage.md | 12 + .../docs/UpdateDocumentPermissionRequest.md | 13 + rest/sync/v1/docs/UpdateDocumentRequest.md | 12 + rest/sync/v1/docs/UpdateServiceRequest.md | 17 + .../sync/v1/docs/UpdateSyncListItemRequest.md | 14 + .../docs/UpdateSyncListPermissionRequest.md | 13 + rest/sync/v1/docs/UpdateSyncListRequest.md | 12 + rest/sync/v1/docs/UpdateSyncMapItemRequest.md | 14 + .../v1/docs/UpdateSyncMapPermissionRequest.md | 13 + rest/sync/v1/docs/UpdateSyncMapRequest.md | 12 + rest/sync/v1/docs/UpdateSyncStreamRequest.md | 11 + rest/sync/v1/model_create_document_request.go | 20 + rest/sync/v1/model_create_service_request.go | 28 + .../v1/model_create_stream_message_request.go | 16 + .../v1/model_create_sync_list_item_request.go | 22 + .../sync/v1/model_create_sync_list_request.go | 20 + .../v1/model_create_sync_map_item_request.go | 24 + rest/sync/v1/model_create_sync_map_request.go | 20 + .../v1/model_create_sync_stream_request.go | 18 + rest/sync/v1/model_sync_v1_service.go | 31 + .../sync/v1/model_sync_v1_service_document.go | 29 + ...v1_service_document_document_permission.go | 22 + ...ument_document_permission_read_response.go | 16 + ..._sync_v1_service_document_read_response.go | 16 + .../v1/model_sync_v1_service_read_response.go | 16 + ...odel_sync_v1_service_read_response_meta.go | 21 + .../v1/model_sync_v1_service_sync_list.go | 28 + ...sync_v1_service_sync_list_read_response.go | 16 + ...ync_v1_service_sync_list_sync_list_item.go | 28 + ..._sync_list_sync_list_item_read_response.go | 16 + ..._service_sync_list_sync_list_permission.go | 22 + ...list_sync_list_permission_read_response.go | 16 + .../sync/v1/model_sync_v1_service_sync_map.go | 28 + ..._sync_v1_service_sync_map_read_response.go | 16 + ..._sync_v1_service_sync_map_sync_map_item.go | 28 + ...ce_sync_map_sync_map_item_read_response.go | 16 + ...v1_service_sync_map_sync_map_permission.go | 22 + ...c_map_sync_map_permission_read_response.go | 16 + .../v1/model_sync_v1_service_sync_stream.go | 27 + ...nc_v1_service_sync_stream_read_response.go | 16 + ...c_v1_service_sync_stream_stream_message.go | 16 + ...odel_update_document_permission_request.go | 20 + rest/sync/v1/model_update_document_request.go | 18 + rest/sync/v1/model_update_service_request.go | 28 + .../v1/model_update_sync_list_item_request.go | 22 + ...del_update_sync_list_permission_request.go | 20 + .../sync/v1/model_update_sync_list_request.go | 18 + .../v1/model_update_sync_map_item_request.go | 22 + ...odel_update_sync_map_permission_request.go | 20 + rest/sync/v1/model_update_sync_map_request.go | 18 + .../v1/model_update_sync_stream_request.go | 16 + rest/sync/v1/response.go | 47 + rest/taskrouter/v1/.openapi-generator-ignore | 23 + rest/taskrouter/v1/.openapi-generator/VERSION | 1 + rest/taskrouter/v1/README.md | 177 + rest/taskrouter/v1/api_default.go | 3327 ++++++ .../v1/docs/CreateActivityRequest.md | 12 + .../v1/docs/CreateTaskChannelRequest.md | 13 + .../v1/docs/CreateTaskQueueRequest.md | 16 + rest/taskrouter/v1/docs/CreateTaskRequest.md | 15 + .../taskrouter/v1/docs/CreateWorkerRequest.md | 13 + .../v1/docs/CreateWorkflowRequest.md | 15 + .../v1/docs/CreateWorkspaceRequest.md | 16 + rest/taskrouter/v1/docs/DefaultApi.md | 2737 +++++ .../v1/docs/TaskrouterV1Workspace.md | 25 + .../v1/docs/TaskrouterV1WorkspaceActivity.md | 18 + ...skrouterV1WorkspaceActivityReadResponse.md | 12 + .../v1/docs/TaskrouterV1WorkspaceEvent.md | 27 + .../TaskrouterV1WorkspaceEventReadResponse.md | 12 + .../docs/TaskrouterV1WorkspaceReadResponse.md | 12 + .../TaskrouterV1WorkspaceReadResponseMeta.md | 17 + .../v1/docs/TaskrouterV1WorkspaceTask.md | 31 + .../docs/TaskrouterV1WorkspaceTaskChannel.md | 20 + ...outerV1WorkspaceTaskChannelReadResponse.md | 12 + .../v1/docs/TaskrouterV1WorkspaceTaskQueue.md | 25 + ...krouterV1WorkspaceTaskQueueReadResponse.md | 12 + ...eTaskQueueTaskQueueCumulativeStatistics.md | 32 + ...aceTaskQueueTaskQueueRealTimeStatistics.md | 24 + ...V1WorkspaceTaskQueueTaskQueueStatistics.md | 16 + ...1WorkspaceTaskQueueTaskQueuesStatistics.md | 15 + ...skQueueTaskQueuesStatisticsReadResponse.md | 12 + .../TaskrouterV1WorkspaceTaskReadResponse.md | 12 + ...askrouterV1WorkspaceTaskTaskReservation.md | 21 + ...orkspaceTaskTaskReservationReadResponse.md | 12 + .../v1/docs/TaskrouterV1WorkspaceWorker.md | 23 + ...TaskrouterV1WorkspaceWorkerReadResponse.md | 12 + ...askrouterV1WorkspaceWorkerWorkerChannel.md | 23 + ...orkspaceWorkerWorkerChannelReadResponse.md | 12 + ...WorkspaceWorkerWorkerInstanceStatistics.md | 15 + ...outerV1WorkspaceWorkerWorkerReservation.md | 21 + ...paceWorkerWorkerReservationReadResponse.md | 12 + ...routerV1WorkspaceWorkerWorkerStatistics.md | 15 + ...kspaceWorkerWorkersCumulativeStatistics.md | 22 + ...orkspaceWorkerWorkersRealTimeStatistics.md | 15 + .../v1/docs/TaskrouterV1WorkspaceWorkflow.md | 23 + ...skrouterV1WorkspaceWorkflowReadResponse.md | 12 + ...aceWorkflowWorkflowCumulativeStatistics.md | 32 + ...spaceWorkflowWorkflowRealTimeStatistics.md | 19 + ...erV1WorkspaceWorkflowWorkflowStatistics.md | 16 + ...1WorkspaceWorkspaceCumulativeStatistics.md | 31 + ...rV1WorkspaceWorkspaceRealTimeStatistics.md | 20 + ...askrouterV1WorkspaceWorkspaceStatistics.md | 15 + .../v1/docs/UpdateActivityRequest.md | 11 + .../v1/docs/UpdateTaskChannelRequest.md | 12 + .../v1/docs/UpdateTaskQueueRequest.md | 16 + rest/taskrouter/v1/docs/UpdateTaskRequest.md | 15 + .../v1/docs/UpdateTaskReservationRequest.md | 63 + .../v1/docs/UpdateWorkerChannelRequest.md | 12 + .../taskrouter/v1/docs/UpdateWorkerRequest.md | 14 + .../v1/docs/UpdateWorkerReservationRequest.md | 61 + .../v1/docs/UpdateWorkflowRequest.md | 16 + .../v1/docs/UpdateWorkspaceRequest.md | 17 + .../v1/model_create_activity_request.go | 18 + .../v1/model_create_task_channel_request.go | 20 + .../v1/model_create_task_queue_request.go | 26 + .../v1/model_create_task_request.go | 24 + .../v1/model_create_worker_request.go | 20 + .../v1/model_create_workflow_request.go | 24 + .../v1/model_create_workspace_request.go | 26 + .../v1/model_taskrouter_v1_workspace.go | 32 + .../model_taskrouter_v1_workspace_activity.go | 25 + ...ter_v1_workspace_activity_read_response.go | 16 + .../v1/model_taskrouter_v1_workspace_event.go | 34 + ...router_v1_workspace_event_read_response.go | 16 + ...l_taskrouter_v1_workspace_read_response.go | 16 + ...krouter_v1_workspace_read_response_meta.go | 21 + .../v1/model_taskrouter_v1_workspace_task.go | 38 + ...el_taskrouter_v1_workspace_task_channel.go | 27 + ...v1_workspace_task_channel_read_response.go | 16 + ...odel_taskrouter_v1_workspace_task_queue.go | 32 + ...r_v1_workspace_task_queue_read_response.go | 16 + ..._queue_task_queue_cumulative_statistics.go | 39 + ...k_queue_task_queue_real_time_statistics.go | 28 + ...kspace_task_queue_task_queue_statistics.go | 20 + ...space_task_queue_task_queues_statistics.go | 19 + ...ue_task_queues_statistics_read_response.go | 16 + ...krouter_v1_workspace_task_read_response.go | 16 + ...uter_v1_workspace_task_task_reservation.go | 28 + ...ace_task_task_reservation_read_response.go | 16 + .../model_taskrouter_v1_workspace_worker.go | 30 + ...outer_v1_workspace_worker_read_response.go | 16 + ...uter_v1_workspace_worker_worker_channel.go | 30 + ...ace_worker_worker_channel_read_response.go | 16 + ...space_worker_worker_instance_statistics.go | 19 + ..._v1_workspace_worker_worker_reservation.go | 28 + ...worker_worker_reservation_read_response.go | 16 + ...r_v1_workspace_worker_worker_statistics.go | 19 + ...ce_worker_workers_cumulative_statistics.go | 29 + ...ace_worker_workers_real_time_statistics.go | 19 + .../model_taskrouter_v1_workspace_workflow.go | 30 + ...ter_v1_workspace_workflow_read_response.go | 16 + ...workflow_workflow_cumulative_statistics.go | 39 + ..._workflow_workflow_real_time_statistics.go | 23 + ..._workspace_workflow_workflow_statistics.go | 20 + ...rkspace_workspace_cumulative_statistics.go | 38 + ...orkspace_workspace_real_time_statistics.go | 24 + ...outer_v1_workspace_workspace_statistics.go | 19 + .../v1/model_update_activity_request.go | 16 + .../v1/model_update_task_channel_request.go | 18 + .../v1/model_update_task_queue_request.go | 26 + .../v1/model_update_task_request.go | 24 + .../model_update_task_reservation_request.go | 120 + .../v1/model_update_worker_channel_request.go | 18 + .../v1/model_update_worker_request.go | 22 + ...model_update_worker_reservation_request.go | 116 + .../v1/model_update_workflow_request.go | 26 + .../v1/model_update_workspace_request.go | 28 + rest/taskrouter/v1/response.go | 47 + rest/trunking/v1/.openapi-generator-ignore | 23 + rest/trunking/v1/.openapi-generator/VERSION | 1 + rest/trunking/v1/README.md | 106 + rest/trunking/v1/api_default.go | 937 ++ .../v1/docs/CreateCredentialListRequest.md | 11 + .../docs/CreateIpAccessControlListRequest.md | 11 + .../v1/docs/CreateOriginationUrlRequest.md | 15 + .../v1/docs/CreatePhoneNumberRequest.md | 11 + rest/trunking/v1/docs/CreateTrunkRequest.md | 17 + rest/trunking/v1/docs/DefaultApi.md | 976 ++ rest/trunking/v1/docs/TrunkingV1Trunk.md | 26 + .../v1/docs/TrunkingV1TrunkCredentialList.md | 17 + ...unkingV1TrunkCredentialListReadResponse.md | 12 + .../TrunkingV1TrunkIpAccessControlList.md | 17 + ...gV1TrunkIpAccessControlListReadResponse.md | 12 + .../v1/docs/TrunkingV1TrunkOriginationUrl.md | 21 + ...unkingV1TrunkOriginationUrlReadResponse.md | 12 + .../v1/docs/TrunkingV1TrunkPhoneNumber.md | 36 + .../TrunkingV1TrunkPhoneNumberReadResponse.md | 12 + .../v1/docs/TrunkingV1TrunkReadResponse.md | 12 + .../docs/TrunkingV1TrunkReadResponseMeta.md | 17 + .../v1/docs/TrunkingV1TrunkRecording.md | 12 + .../v1/docs/UpdateOriginationUrlRequest.md | 15 + .../v1/docs/UpdateRecordingRequest.md | 12 + rest/trunking/v1/docs/UpdateTrunkRequest.md | 17 + .../model_create_credential_list_request.go | 16 + ...l_create_ip_access_control_list_request.go | 16 + .../model_create_origination_url_request.go | 24 + .../v1/model_create_phone_number_request.go | 16 + .../trunking/v1/model_create_trunk_request.go | 28 + rest/trunking/v1/model_trunking_v1_trunk.go | 33 + ...model_trunking_v1_trunk_credential_list.go | 24 + ..._v1_trunk_credential_list_read_response.go | 16 + ...runking_v1_trunk_ip_access_control_list.go | 24 + ...nk_ip_access_control_list_read_response.go | 16 + ...model_trunking_v1_trunk_origination_url.go | 28 + ..._v1_trunk_origination_url_read_response.go | 16 + .../model_trunking_v1_trunk_phone_number.go | 43 + ...ing_v1_trunk_phone_number_read_response.go | 16 + .../model_trunking_v1_trunk_read_response.go | 16 + ...el_trunking_v1_trunk_read_response_meta.go | 21 + .../v1/model_trunking_v1_trunk_recording.go | 16 + .../model_update_origination_url_request.go | 24 + .../v1/model_update_recording_request.go | 18 + .../trunking/v1/model_update_trunk_request.go | 28 + rest/trunking/v1/response.go | 47 + rest/verify/v2/.openapi-generator-ignore | 23 + rest/verify/v2/.openapi-generator/VERSION | 1 + rest/verify/v2/README.md | 146 + rest/verify/v2/api_default.go | 1962 ++++ .../v2/docs/CreateAccessTokenRequest.md | 12 + rest/verify/v2/docs/CreateBucketRequest.md | 12 + rest/verify/v2/docs/CreateChallengeRequest.md | 15 + rest/verify/v2/docs/CreateEntityRequest.md | 11 + rest/verify/v2/docs/CreateFactorRequest.md | 18 + .../CreateMessagingConfigurationRequest.md | 12 + rest/verify/v2/docs/CreateRateLimitRequest.md | 12 + rest/verify/v2/docs/CreateServiceRequest.md | 22 + .../v2/docs/CreateVerificationCheckRequest.md | 15 + .../v2/docs/CreateVerificationRequest.md | 22 + rest/verify/v2/docs/CreateWebhookRequest.md | 14 + rest/verify/v2/docs/DefaultApi.md | 1954 ++++ rest/verify/v2/docs/UpdateBucketRequest.md | 12 + rest/verify/v2/docs/UpdateChallengeRequest.md | 11 + rest/verify/v2/docs/UpdateFactorRequest.md | 14 + .../UpdateMessagingConfigurationRequest.md | 11 + rest/verify/v2/docs/UpdateRateLimitRequest.md | 11 + rest/verify/v2/docs/UpdateServiceRequest.md | 22 + .../v2/docs/UpdateVerificationRequest.md | 11 + rest/verify/v2/docs/UpdateWebhookRequest.md | 14 + rest/verify/v2/docs/VerifyV2Form.md | 14 + rest/verify/v2/docs/VerifyV2Service.md | 26 + .../v2/docs/VerifyV2ServiceAccessToken.md | 11 + rest/verify/v2/docs/VerifyV2ServiceEntity.md | 18 + .../v2/docs/VerifyV2ServiceEntityChallenge.md | 26 + ...ifyV2ServiceEntityChallengeReadResponse.md | 12 + .../v2/docs/VerifyV2ServiceEntityFactor.md | 22 + ...VerifyV2ServiceEntityFactorReadResponse.md | 12 + .../docs/VerifyV2ServiceEntityReadResponse.md | 12 + .../VerifyV2ServiceMessagingConfiguration.md | 17 + ...rviceMessagingConfigurationReadResponse.md | 12 + .../v2/docs/VerifyV2ServiceRateLimit.md | 19 + .../v2/docs/VerifyV2ServiceRateLimitBucket.md | 19 + ...ifyV2ServiceRateLimitBucketReadResponse.md | 12 + .../VerifyV2ServiceRateLimitReadResponse.md | 12 + .../v2/docs/VerifyV2ServiceReadResponse.md | 12 + .../docs/VerifyV2ServiceReadResponseMeta.md | 17 + .../v2/docs/VerifyV2ServiceVerification.md | 24 + .../docs/VerifyV2ServiceVerificationCheck.md | 21 + rest/verify/v2/docs/VerifyV2ServiceWebhook.md | 21 + .../VerifyV2ServiceWebhookReadResponse.md | 12 + .../v2/model_create_access_token_request.go | 18 + rest/verify/v2/model_create_bucket_request.go | 18 + .../v2/model_create_challenge_request.go | 27 + rest/verify/v2/model_create_entity_request.go | 16 + rest/verify/v2/model_create_factor_request.go | 30 + ..._create_messaging_configuration_request.go | 18 + .../v2/model_create_rate_limit_request.go | 18 + .../verify/v2/model_create_service_request.go | 38 + ...model_create_verification_check_request.go | 24 + .../v2/model_create_verification_request.go | 38 + .../verify/v2/model_create_webhook_request.go | 22 + rest/verify/v2/model_update_bucket_request.go | 18 + .../v2/model_update_challenge_request.go | 16 + rest/verify/v2/model_update_factor_request.go | 22 + ..._update_messaging_configuration_request.go | 16 + .../v2/model_update_rate_limit_request.go | 16 + .../verify/v2/model_update_service_request.go | 38 + .../v2/model_update_verification_request.go | 16 + .../verify/v2/model_update_webhook_request.go | 22 + rest/verify/v2/model_verify_v2_form.go | 18 + rest/verify/v2/model_verify_v2_service.go | 33 + .../model_verify_v2_service_access_token.go | 15 + .../v2/model_verify_v2_service_entity.go | 25 + ...odel_verify_v2_service_entity_challenge.go | 33 + ..._service_entity_challenge_read_response.go | 16 + .../model_verify_v2_service_entity_factor.go | 29 + ..._v2_service_entity_factor_read_response.go | 16 + ..._verify_v2_service_entity_read_response.go | 16 + ...rify_v2_service_messaging_configuration.go | 24 + ...e_messaging_configuration_read_response.go | 16 + .../v2/model_verify_v2_service_rate_limit.go | 26 + ...del_verify_v2_service_rate_limit_bucket.go | 26 + ...service_rate_limit_bucket_read_response.go | 16 + ...ify_v2_service_rate_limit_read_response.go | 16 + .../model_verify_v2_service_read_response.go | 16 + ...el_verify_v2_service_read_response_meta.go | 21 + .../model_verify_v2_service_verification.go | 31 + ...el_verify_v2_service_verification_check.go | 28 + .../v2/model_verify_v2_service_webhook.go | 28 + ...verify_v2_service_webhook_read_response.go | 16 + rest/verify/v2/response.go | 47 + rest/video/v1/.openapi-generator-ignore | 23 + rest/video/v1/.openapi-generator/VERSION | 1 + rest/video/v1/README.md | 127 + rest/video/v1/api_default.go | 1556 +++ .../v1/docs/CreateCompositionHookRequest.md | 20 + .../video/v1/docs/CreateCompositionRequest.md | 19 + .../docs/CreateCompositionSettingsRequest.md | 16 + .../v1/docs/CreateRecordingSettingsRequest.md | 16 + rest/video/v1/docs/CreateRoomRequest.md | 19 + rest/video/v1/docs/DefaultApi.md | 1422 +++ .../v1/docs/UpdateCompositionHookRequest.md | 20 + .../v1/docs/UpdateRoomParticipantRequest.md | 11 + ...dateRoomParticipantSubscribeRuleRequest.md | 11 + .../v1/docs/UpdateRoomRecordingRuleRequest.md | 11 + rest/video/v1/docs/UpdateRoomRequest.md | 11 + rest/video/v1/docs/VideoV1Composition.md | 28 + rest/video/v1/docs/VideoV1CompositionHook.md | 25 + .../VideoV1CompositionHookReadResponse.md | 12 + .../VideoV1CompositionHookReadResponseMeta.md | 17 + .../v1/docs/VideoV1CompositionReadResponse.md | 12 + .../v1/docs/VideoV1CompositionSettings.md | 18 + rest/video/v1/docs/VideoV1Recording.md | 25 + .../v1/docs/VideoV1RecordingReadResponse.md | 12 + .../video/v1/docs/VideoV1RecordingSettings.md | 18 + rest/video/v1/docs/VideoV1Room.md | 28 + rest/video/v1/docs/VideoV1RoomReadResponse.md | 12 + .../v1/docs/VideoV1RoomRoomParticipant.md | 22 + .../VideoV1RoomRoomParticipantReadResponse.md | 12 + ...articipantRoomParticipantPublishedTrack.md | 19 + ...omParticipantPublishedTrackReadResponse.md | 12 + ...ParticipantRoomParticipantSubscribeRule.md | 15 + ...rticipantRoomParticipantSubscribedTrack.md | 20 + ...mParticipantSubscribedTrackReadResponse.md | 12 + .../video/v1/docs/VideoV1RoomRoomRecording.md | 26 + .../VideoV1RoomRoomRecordingReadResponse.md | 12 + .../v1/docs/VideoV1RoomRoomRecordingRule.md | 14 + .../model_create_composition_hook_request.go | 34 + .../v1/model_create_composition_request.go | 32 + ...del_create_composition_settings_request.go | 26 + ...model_create_recording_settings_request.go | 26 + rest/video/v1/model_create_room_request.go | 32 + .../model_update_composition_hook_request.go | 34 + .../model_update_room_participant_request.go | 16 + ...room_participant_subscribe_rule_request.go | 16 + ...odel_update_room_recording_rule_request.go | 16 + rest/video/v1/model_update_room_request.go | 16 + rest/video/v1/model_video_v1_composition.go | 35 + .../v1/model_video_v1_composition_hook.go | 32 + ...video_v1_composition_hook_read_response.go | 16 + ..._v1_composition_hook_read_response_meta.go | 21 + ...odel_video_v1_composition_read_response.go | 16 + .../v1/model_video_v1_composition_settings.go | 22 + rest/video/v1/model_video_v1_recording.go | 32 + .../model_video_v1_recording_read_response.go | 16 + .../v1/model_video_v1_recording_settings.go | 22 + rest/video/v1/model_video_v1_room.go | 35 + .../v1/model_video_v1_room_read_response.go | 16 + .../model_video_v1_room_room_participant.go | 29 + ..._v1_room_room_participant_read_response.go | 16 + ...cipant_room_participant_published_track.go | 26 + ...rticipant_published_track_read_response.go | 16 + ...icipant_room_participant_subscribe_rule.go | 22 + ...ipant_room_participant_subscribed_track.go | 27 + ...ticipant_subscribed_track_read_response.go | 16 + .../v1/model_video_v1_room_room_recording.go | 33 + ...eo_v1_room_room_recording_read_response.go | 16 + ...model_video_v1_room_room_recording_rule.go | 21 + rest/video/v1/response.go | 47 + rest/voice/v1/.openapi-generator-ignore | 23 + rest/voice/v1/.openapi-generator/VERSION | 1 + rest/voice/v1/README.md | 123 + rest/voice/v1/api_default.go | 1235 ++ rest/voice/v1/docs/CreateByocTrunkRequest.md | 20 + .../v1/docs/CreateConnectionPolicyRequest.md | 11 + .../CreateConnectionPolicyTargetRequest.md | 15 + ...lingPermissionsCountryBulkUpdateRequest.md | 11 + rest/voice/v1/docs/CreateIpRecordRequest.md | 13 + .../v1/docs/CreateSourceIpMappingRequest.md | 12 + rest/voice/v1/docs/DefaultApi.md | 1265 +++ rest/voice/v1/docs/UpdateByocTrunkRequest.md | 20 + .../v1/docs/UpdateConnectionPolicyRequest.md | 11 + .../UpdateConnectionPolicyTargetRequest.md | 15 + ...UpdateDialingPermissionsSettingsRequest.md | 11 + rest/voice/v1/docs/UpdateIpRecordRequest.md | 11 + .../v1/docs/UpdateSourceIpMappingRequest.md | 11 + rest/voice/v1/docs/VoiceV1ByocTrunk.md | 25 + .../v1/docs/VoiceV1ByocTrunkReadResponse.md | 12 + .../docs/VoiceV1ByocTrunkReadResponseMeta.md | 17 + rest/voice/v1/docs/VoiceV1ConnectionPolicy.md | 17 + ...1ConnectionPolicyConnectionPolicyTarget.md | 21 + ...olicyConnectionPolicyTargetReadResponse.md | 12 + .../VoiceV1ConnectionPolicyReadResponse.md | 12 + ...ingPermissionsDialingPermissionsCountry.md | 19 + ...ionsDialingPermissionsCountryBulkUpdate.md | 12 + ...onsCountryDialingPermissionsHrsPrefixes.md | 11 + ...alingPermissionsHrsPrefixesReadResponse.md | 12 + ...ssionsDialingPermissionsCountryInstance.md | 19 + ...nsDialingPermissionsCountryReadResponse.md | 12 + ...ngPermissionsDialingPermissionsSettings.md | 12 + rest/voice/v1/docs/VoiceV1IpRecord.md | 18 + .../v1/docs/VoiceV1IpRecordReadResponse.md | 12 + rest/voice/v1/docs/VoiceV1SourceIpMapping.md | 16 + .../VoiceV1SourceIpMappingReadResponse.md | 12 + .../v1/model_create_byoc_trunk_request.go | 34 + .../model_create_connection_policy_request.go | 16 + ...create_connection_policy_target_request.go | 24 + ...permissions_country_bulk_update_request.go | 16 + .../v1/model_create_ip_record_request.go | 20 + .../model_create_source_ip_mapping_request.go | 18 + .../v1/model_update_byoc_trunk_request.go | 34 + .../model_update_connection_policy_request.go | 16 + ...update_connection_policy_target_request.go | 24 + ...te_dialing_permissions_settings_request.go | 16 + .../v1/model_update_ip_record_request.go | 16 + .../model_update_source_ip_mapping_request.go | 16 + rest/voice/v1/model_voice_v1_byoc_trunk.go | 32 + ...model_voice_v1_byoc_trunk_read_response.go | 16 + ..._voice_v1_byoc_trunk_read_response_meta.go | 21 + .../v1/model_voice_v1_connection_policy.go | 24 + ...nection_policy_connection_policy_target.go | 28 + ..._connection_policy_target_read_response.go | 16 + ...oice_v1_connection_policy_read_response.go | 16 + ...permissions_dialing_permissions_country.go | 23 + ...dialing_permissions_country_bulk_update.go | 16 + ...ountry_dialing_permissions_hrs_prefixes.go | 15 + ..._permissions_hrs_prefixes_read_response.go | 16 + ...ns_dialing_permissions_country_instance.go | 23 + ...aling_permissions_country_read_response.go | 16 + ...ermissions_dialing_permissions_settings.go | 16 + rest/voice/v1/model_voice_v1_ip_record.go | 25 + .../model_voice_v1_ip_record_read_response.go | 16 + .../v1/model_voice_v1_source_ip_mapping.go | 23 + ...oice_v1_source_ip_mapping_read_response.go | 16 + rest/voice/v1/response.go | 47 + rest/wireless/v1/.openapi-generator-ignore | 23 + rest/wireless/v1/.openapi-generator/VERSION | 1 + rest/wireless/v1/README.md | 95 + rest/wireless/v1/api_default.go | 809 ++ rest/wireless/v1/docs/CreateCommandRequest.md | 17 + .../wireless/v1/docs/CreateRatePlanRequest.md | 21 + rest/wireless/v1/docs/DefaultApi.md | 699 ++ .../wireless/v1/docs/UpdateRatePlanRequest.md | 12 + rest/wireless/v1/docs/UpdateSimRequest.md | 28 + .../v1/docs/WirelessV1AccountUsageRecord.md | 14 + ...irelessV1AccountUsageRecordReadResponse.md | 12 + rest/wireless/v1/docs/WirelessV1Command.md | 22 + .../v1/docs/WirelessV1CommandReadResponse.md | 12 + .../docs/WirelessV1CommandReadResponseMeta.md | 17 + rest/wireless/v1/docs/WirelessV1RatePlan.md | 26 + .../v1/docs/WirelessV1RatePlanReadResponse.md | 12 + rest/wireless/v1/docs/WirelessV1Sim.md | 34 + .../v1/docs/WirelessV1SimDataSession.md | 26 + .../WirelessV1SimDataSessionReadResponse.md | 12 + .../v1/docs/WirelessV1SimReadResponse.md | 12 + .../v1/docs/WirelessV1SimUsageRecord.md | 15 + .../WirelessV1SimUsageRecordReadResponse.md | 12 + .../v1/model_create_command_request.go | 28 + .../v1/model_create_rate_plan_request.go | 36 + .../v1/model_update_rate_plan_request.go | 18 + rest/wireless/v1/model_update_sim_request.go | 50 + .../model_wireless_v1_account_usage_record.go | 18 + ...s_v1_account_usage_record_read_response.go | 16 + rest/wireless/v1/model_wireless_v1_command.go | 29 + ...model_wireless_v1_command_read_response.go | 16 + ..._wireless_v1_command_read_response_meta.go | 21 + .../v1/model_wireless_v1_rate_plan.go | 33 + ...del_wireless_v1_rate_plan_read_response.go | 16 + rest/wireless/v1/model_wireless_v1_sim.go | 41 + .../v1/model_wireless_v1_sim_data_session.go | 33 + ...eless_v1_sim_data_session_read_response.go | 16 + .../v1/model_wireless_v1_sim_read_response.go | 16 + .../v1/model_wireless_v1_sim_usage_record.go | 19 + ...eless_v1_sim_usage_record_read_response.go | 16 + rest/wireless/v1/response.go | 47 + 2387 files changed, 153384 insertions(+) create mode 100644 rest/accounts/v1/.openapi-generator-ignore create mode 100644 rest/accounts/v1/.openapi-generator/VERSION create mode 100644 rest/accounts/v1/README.md create mode 100644 rest/accounts/v1/api_default.go create mode 100644 rest/accounts/v1/docs/AccountsV1AuthTokenPromotion.md create mode 100644 rest/accounts/v1/docs/AccountsV1CredentialCredentialAws.md create mode 100644 rest/accounts/v1/docs/AccountsV1CredentialCredentialAwsReadResponse.md create mode 100644 rest/accounts/v1/docs/AccountsV1CredentialCredentialAwsReadResponseMeta.md create mode 100644 rest/accounts/v1/docs/AccountsV1CredentialCredentialPublicKey.md create mode 100644 rest/accounts/v1/docs/AccountsV1CredentialCredentialPublicKeyReadResponse.md create mode 100644 rest/accounts/v1/docs/AccountsV1SecondaryAuthToken.md create mode 100644 rest/accounts/v1/docs/CreateCredentialAwsRequest.md create mode 100644 rest/accounts/v1/docs/CreateCredentialPublicKeyRequest.md create mode 100644 rest/accounts/v1/docs/DefaultApi.md create mode 100644 rest/accounts/v1/docs/UpdateCredentialAwsRequest.md create mode 100644 rest/accounts/v1/docs/UpdateCredentialPublicKeyRequest.md create mode 100644 rest/accounts/v1/model_accounts_v1_auth_token_promotion.go create mode 100644 rest/accounts/v1/model_accounts_v1_credential_credential_aws.go create mode 100644 rest/accounts/v1/model_accounts_v1_credential_credential_aws_read_response.go create mode 100644 rest/accounts/v1/model_accounts_v1_credential_credential_aws_read_response_meta.go create mode 100644 rest/accounts/v1/model_accounts_v1_credential_credential_public_key.go create mode 100644 rest/accounts/v1/model_accounts_v1_credential_credential_public_key_read_response.go create mode 100644 rest/accounts/v1/model_accounts_v1_secondary_auth_token.go create mode 100644 rest/accounts/v1/model_create_credential_aws_request.go create mode 100644 rest/accounts/v1/model_create_credential_public_key_request.go create mode 100644 rest/accounts/v1/model_update_credential_aws_request.go create mode 100644 rest/accounts/v1/model_update_credential_public_key_request.go create mode 100644 rest/accounts/v1/response.go create mode 100644 rest/api/v2010/.openapi-generator-ignore create mode 100644 rest/api/v2010/.openapi-generator/VERSION create mode 100644 rest/api/v2010/README.md create mode 100644 rest/api/v2010/api_default.go create mode 100644 rest/api/v2010/docs/ApiV2010Account.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountAddress.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountAddressDependentPhoneNumber.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountAddressDependentPhoneNumberReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountAddressReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountApplication.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountApplicationReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountAuthorizedConnectApp.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountAuthorizedConnectAppReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountry.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocal.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachine.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobile.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNational.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCost.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFree.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoip.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountBalance.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountCall.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountCallCallEvent.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountCallCallEventReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountCallCallFeedback.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountCallCallFeedbackSummary.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountCallCallNotification.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountCallCallNotificationInstance.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountCallCallNotificationReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountCallCallRecording.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountCallCallRecordingReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountCallPayments.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountCallReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountConference.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountConferenceConferenceRecording.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountConferenceConferenceRecordingReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountConferenceParticipant.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountConferenceParticipantReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountConferenceReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountConnectApp.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountConnectAppReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumber.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocal.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobile.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFree.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountKey.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountKeyReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountMessage.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountMessageMedia.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountMessageMediaReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountMessageMessageFeedback.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountMessageReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountNewKey.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountNewSigningKey.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountNotification.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountNotificationInstance.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountNotificationReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountOutgoingCallerId.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountOutgoingCallerIdReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountQueue.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountQueueMember.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountQueueMemberReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountQueueReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountRecording.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountRecordingReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountRecordingRecordingAddOnResult.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountRecordingRecordingAddOnResultReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayload.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountRecordingRecordingTranscription.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountRecordingRecordingTranscriptionReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountShortCode.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountShortCodeReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountSigningKey.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountSigningKeyReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountSipSipCredentialList.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountSipSipCredentialListReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountSipSipCredentialListSipCredential.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountSipSipCredentialListSipCredentialReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountSipSipDomain.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountSipSipDomainReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipCredentialListMapping.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipIpAccessControlListMapping.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountSipSipIpAccessControlList.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountSipSipIpAccessControlListReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountSipSipIpAccessControlListSipIpAddress.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountToken.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountTranscription.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountTranscriptionReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountUsageUsageRecord.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordAllTime.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordDaily.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordLastMonth.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordMonthly.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordThisMonth.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordToday.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordYearly.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordYesterday.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountUsageUsageTrigger.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountUsageUsageTriggerReadResponse.md create mode 100644 rest/api/v2010/docs/ApiV2010AccountValidationRequest.md create mode 100644 rest/api/v2010/docs/CreateAccountRequest.md create mode 100644 rest/api/v2010/docs/CreateAddressRequest.md create mode 100644 rest/api/v2010/docs/CreateApplicationRequest.md create mode 100644 rest/api/v2010/docs/CreateCallFeedbackSummaryRequest.md create mode 100644 rest/api/v2010/docs/CreateCallRecordingRequest.md create mode 100644 rest/api/v2010/docs/CreateCallRequest.md create mode 100644 rest/api/v2010/docs/CreateIncomingPhoneNumberAssignedAddOnRequest.md create mode 100644 rest/api/v2010/docs/CreateIncomingPhoneNumberLocalRequest.md create mode 100644 rest/api/v2010/docs/CreateIncomingPhoneNumberMobileRequest.md create mode 100644 rest/api/v2010/docs/CreateIncomingPhoneNumberRequest.md create mode 100644 rest/api/v2010/docs/CreateIncomingPhoneNumberTollFreeRequest.md create mode 100644 rest/api/v2010/docs/CreateMessageFeedbackRequest.md create mode 100644 rest/api/v2010/docs/CreateMessageRequest.md create mode 100644 rest/api/v2010/docs/CreateNewKeyRequest.md create mode 100644 rest/api/v2010/docs/CreateNewSigningKeyRequest.md create mode 100644 rest/api/v2010/docs/CreateParticipantRequest.md create mode 100644 rest/api/v2010/docs/CreatePaymentsRequest.md create mode 100644 rest/api/v2010/docs/CreateQueueRequest.md create mode 100644 rest/api/v2010/docs/CreateSipAuthCallsCredentialListMappingRequest.md create mode 100644 rest/api/v2010/docs/CreateSipAuthCallsIpAccessControlListMappingRequest.md create mode 100644 rest/api/v2010/docs/CreateSipAuthRegistrationsCredentialListMappingRequest.md create mode 100644 rest/api/v2010/docs/CreateSipCredentialListMappingRequest.md create mode 100644 rest/api/v2010/docs/CreateSipCredentialListRequest.md create mode 100644 rest/api/v2010/docs/CreateSipCredentialRequest.md create mode 100644 rest/api/v2010/docs/CreateSipDomainRequest.md create mode 100644 rest/api/v2010/docs/CreateSipIpAccessControlListMappingRequest.md create mode 100644 rest/api/v2010/docs/CreateSipIpAccessControlListRequest.md create mode 100644 rest/api/v2010/docs/CreateSipIpAddressRequest.md create mode 100644 rest/api/v2010/docs/CreateTokenRequest.md create mode 100644 rest/api/v2010/docs/CreateUsageTriggerRequest.md create mode 100644 rest/api/v2010/docs/CreateValidationRequestRequest.md create mode 100644 rest/api/v2010/docs/DefaultApi.md create mode 100644 rest/api/v2010/docs/UpdateAccountRequest.md create mode 100644 rest/api/v2010/docs/UpdateAddressRequest.md create mode 100644 rest/api/v2010/docs/UpdateApplicationRequest.md create mode 100644 rest/api/v2010/docs/UpdateCallFeedbackRequest.md create mode 100644 rest/api/v2010/docs/UpdateCallRecordingRequest.md create mode 100644 rest/api/v2010/docs/UpdateCallRequest.md create mode 100644 rest/api/v2010/docs/UpdateConferenceRecordingRequest.md create mode 100644 rest/api/v2010/docs/UpdateConferenceRequest.md create mode 100644 rest/api/v2010/docs/UpdateConnectAppRequest.md create mode 100644 rest/api/v2010/docs/UpdateIncomingPhoneNumberRequest.md create mode 100644 rest/api/v2010/docs/UpdateKeyRequest.md create mode 100644 rest/api/v2010/docs/UpdateMemberRequest.md create mode 100644 rest/api/v2010/docs/UpdateMessageRequest.md create mode 100644 rest/api/v2010/docs/UpdateOutgoingCallerIdRequest.md create mode 100644 rest/api/v2010/docs/UpdateParticipantRequest.md create mode 100644 rest/api/v2010/docs/UpdatePaymentsRequest.md create mode 100644 rest/api/v2010/docs/UpdateQueueRequest.md create mode 100644 rest/api/v2010/docs/UpdateShortCodeRequest.md create mode 100644 rest/api/v2010/docs/UpdateSigningKeyRequest.md create mode 100644 rest/api/v2010/docs/UpdateSipCredentialListRequest.md create mode 100644 rest/api/v2010/docs/UpdateSipCredentialRequest.md create mode 100644 rest/api/v2010/docs/UpdateSipDomainRequest.md create mode 100644 rest/api/v2010/docs/UpdateSipIpAccessControlListRequest.md create mode 100644 rest/api/v2010/docs/UpdateSipIpAddressRequest.md create mode 100644 rest/api/v2010/docs/UpdateUsageTriggerRequest.md create mode 100644 rest/api/v2010/model_api_v2010_account.go create mode 100644 rest/api/v2010/model_api_v2010_account_address.go create mode 100644 rest/api/v2010/model_api_v2010_account_address_dependent_phone_number.go create mode 100644 rest/api/v2010/model_api_v2010_account_address_dependent_phone_number_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_address_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_application.go create mode 100644 rest/api/v2010/model_api_v2010_account_application_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_authorized_connect_app.go create mode 100644 rest/api/v2010/model_api_v2010_account_authorized_connect_app_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_available_phone_number_country.go create mode 100644 rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_local.go create mode 100644 rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_local_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_machine_to_machine.go create mode 100644 rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_machine_to_machine_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_mobile.go create mode 100644 rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_mobile_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_national.go create mode 100644 rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_national_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_shared_cost.go create mode 100644 rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_shared_cost_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_toll_free.go create mode 100644 rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_toll_free_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_voip.go create mode 100644 rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_voip_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_available_phone_number_country_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_balance.go create mode 100644 rest/api/v2010/model_api_v2010_account_call.go create mode 100644 rest/api/v2010/model_api_v2010_account_call_call_event.go create mode 100644 rest/api/v2010/model_api_v2010_account_call_call_event_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_call_call_feedback.go create mode 100644 rest/api/v2010/model_api_v2010_account_call_call_feedback_summary.go create mode 100644 rest/api/v2010/model_api_v2010_account_call_call_notification.go create mode 100644 rest/api/v2010/model_api_v2010_account_call_call_notification_instance.go create mode 100644 rest/api/v2010/model_api_v2010_account_call_call_notification_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_call_call_recording.go create mode 100644 rest/api/v2010/model_api_v2010_account_call_call_recording_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_call_payments.go create mode 100644 rest/api/v2010/model_api_v2010_account_call_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_conference.go create mode 100644 rest/api/v2010/model_api_v2010_account_conference_conference_recording.go create mode 100644 rest/api/v2010/model_api_v2010_account_conference_conference_recording_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_conference_participant.go create mode 100644 rest/api/v2010/model_api_v2010_account_conference_participant_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_conference_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_connect_app.go create mode 100644 rest/api/v2010/model_api_v2010_account_connect_app_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_incoming_phone_number.go create mode 100644 rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on.go create mode 100644 rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_incoming_phone_number_assigned_add_on_extension.go create mode 100644 rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_incoming_phone_number_assigned_add_on_extension_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_local.go create mode 100644 rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_local_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_mobile.go create mode 100644 rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_mobile_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_toll_free.go create mode 100644 rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_toll_free_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_incoming_phone_number_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_key.go create mode 100644 rest/api/v2010/model_api_v2010_account_key_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_message.go create mode 100644 rest/api/v2010/model_api_v2010_account_message_media.go create mode 100644 rest/api/v2010/model_api_v2010_account_message_media_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_message_message_feedback.go create mode 100644 rest/api/v2010/model_api_v2010_account_message_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_new_key.go create mode 100644 rest/api/v2010/model_api_v2010_account_new_signing_key.go create mode 100644 rest/api/v2010/model_api_v2010_account_notification.go create mode 100644 rest/api/v2010/model_api_v2010_account_notification_instance.go create mode 100644 rest/api/v2010/model_api_v2010_account_notification_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_outgoing_caller_id.go create mode 100644 rest/api/v2010/model_api_v2010_account_outgoing_caller_id_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_queue.go create mode 100644 rest/api/v2010/model_api_v2010_account_queue_member.go create mode 100644 rest/api/v2010/model_api_v2010_account_queue_member_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_queue_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_recording.go create mode 100644 rest/api/v2010/model_api_v2010_account_recording_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result.go create mode 100644 rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result_recording_add_on_result_payload.go create mode 100644 rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result_recording_add_on_result_payload_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_recording_recording_transcription.go create mode 100644 rest/api/v2010/model_api_v2010_account_recording_recording_transcription_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_short_code.go create mode 100644 rest/api/v2010/model_api_v2010_account_short_code_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_signing_key.go create mode 100644 rest/api/v2010/model_api_v2010_account_signing_key_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_sip_sip_credential_list.go create mode 100644 rest/api/v2010/model_api_v2010_account_sip_sip_credential_list_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_sip_sip_credential_list_sip_credential.go create mode 100644 rest/api/v2010/model_api_v2010_account_sip_sip_credential_list_sip_credential_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_sip_sip_domain.go create mode 100644 rest/api/v2010/model_api_v2010_account_sip_sip_domain_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_credential_list_mapping.go create mode 100644 rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_credential_list_mapping_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_ip_access_control_list_mapping.go create mode 100644 rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_ip_access_control_list_mapping_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_registrations_sip_auth_registrations_credential_list_mapping.go create mode 100644 rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_registrations_sip_auth_registrations_credential_list_mapping_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_credential_list_mapping.go create mode 100644 rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_credential_list_mapping_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_ip_access_control_list_mapping.go create mode 100644 rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_ip_access_control_list_mapping_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list.go create mode 100644 rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list_sip_ip_address.go create mode 100644 rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list_sip_ip_address_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_token.go create mode 100644 rest/api/v2010/model_api_v2010_account_transcription.go create mode 100644 rest/api/v2010/model_api_v2010_account_transcription_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_usage_usage_record.go create mode 100644 rest/api/v2010/model_api_v2010_account_usage_usage_record_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_all_time.go create mode 100644 rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_all_time_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_daily.go create mode 100644 rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_daily_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_last_month.go create mode 100644 rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_last_month_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_monthly.go create mode 100644 rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_monthly_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_this_month.go create mode 100644 rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_this_month_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_today.go create mode 100644 rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_today_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yearly.go create mode 100644 rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yearly_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yesterday.go create mode 100644 rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yesterday_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_usage_usage_trigger.go create mode 100644 rest/api/v2010/model_api_v2010_account_usage_usage_trigger_read_response.go create mode 100644 rest/api/v2010/model_api_v2010_account_validation_request.go create mode 100644 rest/api/v2010/model_create_account_request.go create mode 100644 rest/api/v2010/model_create_address_request.go create mode 100644 rest/api/v2010/model_create_application_request.go create mode 100644 rest/api/v2010/model_create_call_feedback_summary_request.go create mode 100644 rest/api/v2010/model_create_call_recording_request.go create mode 100644 rest/api/v2010/model_create_call_request.go create mode 100644 rest/api/v2010/model_create_incoming_phone_number_assigned_add_on_request.go create mode 100644 rest/api/v2010/model_create_incoming_phone_number_local_request.go create mode 100644 rest/api/v2010/model_create_incoming_phone_number_mobile_request.go create mode 100644 rest/api/v2010/model_create_incoming_phone_number_request.go create mode 100644 rest/api/v2010/model_create_incoming_phone_number_toll_free_request.go create mode 100644 rest/api/v2010/model_create_message_feedback_request.go create mode 100644 rest/api/v2010/model_create_message_request.go create mode 100644 rest/api/v2010/model_create_new_key_request.go create mode 100644 rest/api/v2010/model_create_new_signing_key_request.go create mode 100644 rest/api/v2010/model_create_participant_request.go create mode 100644 rest/api/v2010/model_create_payments_request.go create mode 100644 rest/api/v2010/model_create_queue_request.go create mode 100644 rest/api/v2010/model_create_sip_auth_calls_credential_list_mapping_request.go create mode 100644 rest/api/v2010/model_create_sip_auth_calls_ip_access_control_list_mapping_request.go create mode 100644 rest/api/v2010/model_create_sip_auth_registrations_credential_list_mapping_request.go create mode 100644 rest/api/v2010/model_create_sip_credential_list_mapping_request.go create mode 100644 rest/api/v2010/model_create_sip_credential_list_request.go create mode 100644 rest/api/v2010/model_create_sip_credential_request.go create mode 100644 rest/api/v2010/model_create_sip_domain_request.go create mode 100644 rest/api/v2010/model_create_sip_ip_access_control_list_mapping_request.go create mode 100644 rest/api/v2010/model_create_sip_ip_access_control_list_request.go create mode 100644 rest/api/v2010/model_create_sip_ip_address_request.go create mode 100644 rest/api/v2010/model_create_token_request.go create mode 100644 rest/api/v2010/model_create_usage_trigger_request.go create mode 100644 rest/api/v2010/model_create_validation_request_request.go create mode 100644 rest/api/v2010/model_update_account_request.go create mode 100644 rest/api/v2010/model_update_address_request.go create mode 100644 rest/api/v2010/model_update_application_request.go create mode 100644 rest/api/v2010/model_update_call_feedback_request.go create mode 100644 rest/api/v2010/model_update_call_recording_request.go create mode 100644 rest/api/v2010/model_update_call_request.go create mode 100644 rest/api/v2010/model_update_conference_recording_request.go create mode 100644 rest/api/v2010/model_update_conference_request.go create mode 100644 rest/api/v2010/model_update_connect_app_request.go create mode 100644 rest/api/v2010/model_update_incoming_phone_number_request.go create mode 100644 rest/api/v2010/model_update_key_request.go create mode 100644 rest/api/v2010/model_update_member_request.go create mode 100644 rest/api/v2010/model_update_message_request.go create mode 100644 rest/api/v2010/model_update_outgoing_caller_id_request.go create mode 100644 rest/api/v2010/model_update_participant_request.go create mode 100644 rest/api/v2010/model_update_payments_request.go create mode 100644 rest/api/v2010/model_update_queue_request.go create mode 100644 rest/api/v2010/model_update_short_code_request.go create mode 100644 rest/api/v2010/model_update_signing_key_request.go create mode 100644 rest/api/v2010/model_update_sip_credential_list_request.go create mode 100644 rest/api/v2010/model_update_sip_credential_request.go create mode 100644 rest/api/v2010/model_update_sip_domain_request.go create mode 100644 rest/api/v2010/model_update_sip_ip_access_control_list_request.go create mode 100644 rest/api/v2010/model_update_sip_ip_address_request.go create mode 100644 rest/api/v2010/model_update_usage_trigger_request.go create mode 100644 rest/api/v2010/response.go create mode 100644 rest/autopilot/v1/.openapi-generator-ignore create mode 100644 rest/autopilot/v1/.openapi-generator/VERSION create mode 100644 rest/autopilot/v1/README.md create mode 100644 rest/autopilot/v1/api_default.go create mode 100644 rest/autopilot/v1/docs/AutopilotV1Assistant.md create mode 100644 rest/autopilot/v1/docs/AutopilotV1AssistantDefaults.md create mode 100644 rest/autopilot/v1/docs/AutopilotV1AssistantDialogue.md create mode 100644 rest/autopilot/v1/docs/AutopilotV1AssistantFieldType.md create mode 100644 rest/autopilot/v1/docs/AutopilotV1AssistantFieldTypeFieldValue.md create mode 100644 rest/autopilot/v1/docs/AutopilotV1AssistantFieldTypeFieldValueReadResponse.md create mode 100644 rest/autopilot/v1/docs/AutopilotV1AssistantFieldTypeReadResponse.md create mode 100644 rest/autopilot/v1/docs/AutopilotV1AssistantModelBuild.md create mode 100644 rest/autopilot/v1/docs/AutopilotV1AssistantModelBuildReadResponse.md create mode 100644 rest/autopilot/v1/docs/AutopilotV1AssistantQuery.md create mode 100644 rest/autopilot/v1/docs/AutopilotV1AssistantQueryReadResponse.md create mode 100644 rest/autopilot/v1/docs/AutopilotV1AssistantReadResponse.md create mode 100644 rest/autopilot/v1/docs/AutopilotV1AssistantReadResponseMeta.md create mode 100644 rest/autopilot/v1/docs/AutopilotV1AssistantStyleSheet.md create mode 100644 rest/autopilot/v1/docs/AutopilotV1AssistantTask.md create mode 100644 rest/autopilot/v1/docs/AutopilotV1AssistantTaskField.md create mode 100644 rest/autopilot/v1/docs/AutopilotV1AssistantTaskFieldReadResponse.md create mode 100644 rest/autopilot/v1/docs/AutopilotV1AssistantTaskReadResponse.md create mode 100644 rest/autopilot/v1/docs/AutopilotV1AssistantTaskSample.md create mode 100644 rest/autopilot/v1/docs/AutopilotV1AssistantTaskSampleReadResponse.md create mode 100644 rest/autopilot/v1/docs/AutopilotV1AssistantTaskTaskActions.md create mode 100644 rest/autopilot/v1/docs/AutopilotV1AssistantTaskTaskStatistics.md create mode 100644 rest/autopilot/v1/docs/AutopilotV1AssistantWebhook.md create mode 100644 rest/autopilot/v1/docs/AutopilotV1AssistantWebhookReadResponse.md create mode 100644 rest/autopilot/v1/docs/AutopilotV1RestoreAssistant.md create mode 100644 rest/autopilot/v1/docs/CreateAssistantRequest.md create mode 100644 rest/autopilot/v1/docs/CreateFieldRequest.md create mode 100644 rest/autopilot/v1/docs/CreateFieldTypeRequest.md create mode 100644 rest/autopilot/v1/docs/CreateFieldValueRequest.md create mode 100644 rest/autopilot/v1/docs/CreateModelBuildRequest.md create mode 100644 rest/autopilot/v1/docs/CreateQueryRequest.md create mode 100644 rest/autopilot/v1/docs/CreateSampleRequest.md create mode 100644 rest/autopilot/v1/docs/CreateTaskRequest.md create mode 100644 rest/autopilot/v1/docs/CreateWebhookRequest.md create mode 100644 rest/autopilot/v1/docs/DefaultApi.md create mode 100644 rest/autopilot/v1/docs/UpdateAssistantRequest.md create mode 100644 rest/autopilot/v1/docs/UpdateDefaultsRequest.md create mode 100644 rest/autopilot/v1/docs/UpdateFieldTypeRequest.md create mode 100644 rest/autopilot/v1/docs/UpdateModelBuildRequest.md create mode 100644 rest/autopilot/v1/docs/UpdateQueryRequest.md create mode 100644 rest/autopilot/v1/docs/UpdateRestoreAssistantRequest.md create mode 100644 rest/autopilot/v1/docs/UpdateSampleRequest.md create mode 100644 rest/autopilot/v1/docs/UpdateStyleSheetRequest.md create mode 100644 rest/autopilot/v1/docs/UpdateTaskActionsRequest.md create mode 100644 rest/autopilot/v1/docs/UpdateTaskRequest.md create mode 100644 rest/autopilot/v1/docs/UpdateWebhookRequest.md create mode 100644 rest/autopilot/v1/model_autopilot_v1_assistant.go create mode 100644 rest/autopilot/v1/model_autopilot_v1_assistant_defaults.go create mode 100644 rest/autopilot/v1/model_autopilot_v1_assistant_dialogue.go create mode 100644 rest/autopilot/v1/model_autopilot_v1_assistant_field_type.go create mode 100644 rest/autopilot/v1/model_autopilot_v1_assistant_field_type_field_value.go create mode 100644 rest/autopilot/v1/model_autopilot_v1_assistant_field_type_field_value_read_response.go create mode 100644 rest/autopilot/v1/model_autopilot_v1_assistant_field_type_read_response.go create mode 100644 rest/autopilot/v1/model_autopilot_v1_assistant_model_build.go create mode 100644 rest/autopilot/v1/model_autopilot_v1_assistant_model_build_read_response.go create mode 100644 rest/autopilot/v1/model_autopilot_v1_assistant_query.go create mode 100644 rest/autopilot/v1/model_autopilot_v1_assistant_query_read_response.go create mode 100644 rest/autopilot/v1/model_autopilot_v1_assistant_read_response.go create mode 100644 rest/autopilot/v1/model_autopilot_v1_assistant_read_response_meta.go create mode 100644 rest/autopilot/v1/model_autopilot_v1_assistant_style_sheet.go create mode 100644 rest/autopilot/v1/model_autopilot_v1_assistant_task.go create mode 100644 rest/autopilot/v1/model_autopilot_v1_assistant_task_field.go create mode 100644 rest/autopilot/v1/model_autopilot_v1_assistant_task_field_read_response.go create mode 100644 rest/autopilot/v1/model_autopilot_v1_assistant_task_read_response.go create mode 100644 rest/autopilot/v1/model_autopilot_v1_assistant_task_sample.go create mode 100644 rest/autopilot/v1/model_autopilot_v1_assistant_task_sample_read_response.go create mode 100644 rest/autopilot/v1/model_autopilot_v1_assistant_task_task_actions.go create mode 100644 rest/autopilot/v1/model_autopilot_v1_assistant_task_task_statistics.go create mode 100644 rest/autopilot/v1/model_autopilot_v1_assistant_webhook.go create mode 100644 rest/autopilot/v1/model_autopilot_v1_assistant_webhook_read_response.go create mode 100644 rest/autopilot/v1/model_autopilot_v1_restore_assistant.go create mode 100644 rest/autopilot/v1/model_create_assistant_request.go create mode 100644 rest/autopilot/v1/model_create_field_request.go create mode 100644 rest/autopilot/v1/model_create_field_type_request.go create mode 100644 rest/autopilot/v1/model_create_field_value_request.go create mode 100644 rest/autopilot/v1/model_create_model_build_request.go create mode 100644 rest/autopilot/v1/model_create_query_request.go create mode 100644 rest/autopilot/v1/model_create_sample_request.go create mode 100644 rest/autopilot/v1/model_create_task_request.go create mode 100644 rest/autopilot/v1/model_create_webhook_request.go create mode 100644 rest/autopilot/v1/model_update_assistant_request.go create mode 100644 rest/autopilot/v1/model_update_defaults_request.go create mode 100644 rest/autopilot/v1/model_update_field_type_request.go create mode 100644 rest/autopilot/v1/model_update_model_build_request.go create mode 100644 rest/autopilot/v1/model_update_query_request.go create mode 100644 rest/autopilot/v1/model_update_restore_assistant_request.go create mode 100644 rest/autopilot/v1/model_update_sample_request.go create mode 100644 rest/autopilot/v1/model_update_style_sheet_request.go create mode 100644 rest/autopilot/v1/model_update_task_actions_request.go create mode 100644 rest/autopilot/v1/model_update_task_request.go create mode 100644 rest/autopilot/v1/model_update_webhook_request.go create mode 100644 rest/autopilot/v1/response.go create mode 100644 rest/bulkexports/v1/.openapi-generator-ignore create mode 100644 rest/bulkexports/v1/.openapi-generator/VERSION create mode 100644 rest/bulkexports/v1/README.md create mode 100644 rest/bulkexports/v1/api_default.go create mode 100644 rest/bulkexports/v1/docs/BulkexportsV1Export.md create mode 100644 rest/bulkexports/v1/docs/BulkexportsV1ExportConfiguration.md create mode 100644 rest/bulkexports/v1/docs/BulkexportsV1ExportDay.md create mode 100644 rest/bulkexports/v1/docs/BulkexportsV1ExportDayInstance.md create mode 100644 rest/bulkexports/v1/docs/BulkexportsV1ExportDayReadResponse.md create mode 100644 rest/bulkexports/v1/docs/BulkexportsV1ExportDayReadResponseMeta.md create mode 100644 rest/bulkexports/v1/docs/BulkexportsV1ExportExportCustomJob.md create mode 100644 rest/bulkexports/v1/docs/BulkexportsV1ExportExportCustomJobReadResponse.md create mode 100644 rest/bulkexports/v1/docs/BulkexportsV1ExportJob.md create mode 100644 rest/bulkexports/v1/docs/CreateExportCustomJobRequest.md create mode 100644 rest/bulkexports/v1/docs/DefaultApi.md create mode 100644 rest/bulkexports/v1/docs/UpdateExportConfigurationRequest.md create mode 100644 rest/bulkexports/v1/model_bulkexports_v1_export.go create mode 100644 rest/bulkexports/v1/model_bulkexports_v1_export_configuration.go create mode 100644 rest/bulkexports/v1/model_bulkexports_v1_export_day.go create mode 100644 rest/bulkexports/v1/model_bulkexports_v1_export_day_instance.go create mode 100644 rest/bulkexports/v1/model_bulkexports_v1_export_day_read_response.go create mode 100644 rest/bulkexports/v1/model_bulkexports_v1_export_day_read_response_meta.go create mode 100644 rest/bulkexports/v1/model_bulkexports_v1_export_export_custom_job.go create mode 100644 rest/bulkexports/v1/model_bulkexports_v1_export_export_custom_job_read_response.go create mode 100644 rest/bulkexports/v1/model_bulkexports_v1_export_job.go create mode 100644 rest/bulkexports/v1/model_create_export_custom_job_request.go create mode 100644 rest/bulkexports/v1/model_update_export_configuration_request.go create mode 100644 rest/bulkexports/v1/response.go create mode 100644 rest/chat/v1/.openapi-generator-ignore create mode 100644 rest/chat/v1/.openapi-generator/VERSION create mode 100644 rest/chat/v1/README.md create mode 100644 rest/chat/v1/api_default.go create mode 100644 rest/chat/v1/docs/ChatV1Credential.md create mode 100644 rest/chat/v1/docs/ChatV1CredentialReadResponse.md create mode 100644 rest/chat/v1/docs/ChatV1CredentialReadResponseMeta.md create mode 100644 rest/chat/v1/docs/ChatV1Service.md create mode 100644 rest/chat/v1/docs/ChatV1ServiceChannel.md create mode 100644 rest/chat/v1/docs/ChatV1ServiceChannelInvite.md create mode 100644 rest/chat/v1/docs/ChatV1ServiceChannelInviteReadResponse.md create mode 100644 rest/chat/v1/docs/ChatV1ServiceChannelMember.md create mode 100644 rest/chat/v1/docs/ChatV1ServiceChannelMemberReadResponse.md create mode 100644 rest/chat/v1/docs/ChatV1ServiceChannelMessage.md create mode 100644 rest/chat/v1/docs/ChatV1ServiceChannelMessageReadResponse.md create mode 100644 rest/chat/v1/docs/ChatV1ServiceChannelReadResponse.md create mode 100644 rest/chat/v1/docs/ChatV1ServiceReadResponse.md create mode 100644 rest/chat/v1/docs/ChatV1ServiceRole.md create mode 100644 rest/chat/v1/docs/ChatV1ServiceRoleReadResponse.md create mode 100644 rest/chat/v1/docs/ChatV1ServiceUser.md create mode 100644 rest/chat/v1/docs/ChatV1ServiceUserReadResponse.md create mode 100644 rest/chat/v1/docs/ChatV1ServiceUserUserChannel.md create mode 100644 rest/chat/v1/docs/ChatV1ServiceUserUserChannelReadResponse.md create mode 100644 rest/chat/v1/docs/CreateChannelRequest.md create mode 100644 rest/chat/v1/docs/CreateCredentialRequest.md create mode 100644 rest/chat/v1/docs/CreateInviteRequest.md create mode 100644 rest/chat/v1/docs/CreateMemberRequest.md create mode 100644 rest/chat/v1/docs/CreateMessageRequest.md create mode 100644 rest/chat/v1/docs/CreateRoleRequest.md create mode 100644 rest/chat/v1/docs/CreateServiceRequest.md create mode 100644 rest/chat/v1/docs/CreateUserRequest.md create mode 100644 rest/chat/v1/docs/DefaultApi.md create mode 100644 rest/chat/v1/docs/UpdateChannelRequest.md create mode 100644 rest/chat/v1/docs/UpdateCredentialRequest.md create mode 100644 rest/chat/v1/docs/UpdateMemberRequest.md create mode 100644 rest/chat/v1/docs/UpdateMessageRequest.md create mode 100644 rest/chat/v1/docs/UpdateRoleRequest.md create mode 100644 rest/chat/v1/docs/UpdateServiceRequest.md create mode 100644 rest/chat/v1/docs/UpdateUserRequest.md create mode 100644 rest/chat/v1/model_chat_v1_credential.go create mode 100644 rest/chat/v1/model_chat_v1_credential_read_response.go create mode 100644 rest/chat/v1/model_chat_v1_credential_read_response_meta.go create mode 100644 rest/chat/v1/model_chat_v1_service.go create mode 100644 rest/chat/v1/model_chat_v1_service_channel.go create mode 100644 rest/chat/v1/model_chat_v1_service_channel_invite.go create mode 100644 rest/chat/v1/model_chat_v1_service_channel_invite_read_response.go create mode 100644 rest/chat/v1/model_chat_v1_service_channel_member.go create mode 100644 rest/chat/v1/model_chat_v1_service_channel_member_read_response.go create mode 100644 rest/chat/v1/model_chat_v1_service_channel_message.go create mode 100644 rest/chat/v1/model_chat_v1_service_channel_message_read_response.go create mode 100644 rest/chat/v1/model_chat_v1_service_channel_read_response.go create mode 100644 rest/chat/v1/model_chat_v1_service_read_response.go create mode 100644 rest/chat/v1/model_chat_v1_service_role.go create mode 100644 rest/chat/v1/model_chat_v1_service_role_read_response.go create mode 100644 rest/chat/v1/model_chat_v1_service_user.go create mode 100644 rest/chat/v1/model_chat_v1_service_user_read_response.go create mode 100644 rest/chat/v1/model_chat_v1_service_user_user_channel.go create mode 100644 rest/chat/v1/model_chat_v1_service_user_user_channel_read_response.go create mode 100644 rest/chat/v1/model_create_channel_request.go create mode 100644 rest/chat/v1/model_create_credential_request.go create mode 100644 rest/chat/v1/model_create_invite_request.go create mode 100644 rest/chat/v1/model_create_member_request.go create mode 100644 rest/chat/v1/model_create_message_request.go create mode 100644 rest/chat/v1/model_create_role_request.go create mode 100644 rest/chat/v1/model_create_service_request.go create mode 100644 rest/chat/v1/model_create_user_request.go create mode 100644 rest/chat/v1/model_update_channel_request.go create mode 100644 rest/chat/v1/model_update_credential_request.go create mode 100644 rest/chat/v1/model_update_member_request.go create mode 100644 rest/chat/v1/model_update_message_request.go create mode 100644 rest/chat/v1/model_update_role_request.go create mode 100644 rest/chat/v1/model_update_service_request.go create mode 100644 rest/chat/v1/model_update_user_request.go create mode 100644 rest/chat/v1/response.go create mode 100644 rest/chat/v2/.openapi-generator-ignore create mode 100644 rest/chat/v2/.openapi-generator/VERSION create mode 100644 rest/chat/v2/README.md create mode 100644 rest/chat/v2/api_default.go create mode 100644 rest/chat/v2/docs/ChatV2Credential.md create mode 100644 rest/chat/v2/docs/ChatV2CredentialReadResponse.md create mode 100644 rest/chat/v2/docs/ChatV2CredentialReadResponseMeta.md create mode 100644 rest/chat/v2/docs/ChatV2Service.md create mode 100644 rest/chat/v2/docs/ChatV2ServiceBinding.md create mode 100644 rest/chat/v2/docs/ChatV2ServiceBindingReadResponse.md create mode 100644 rest/chat/v2/docs/ChatV2ServiceChannel.md create mode 100644 rest/chat/v2/docs/ChatV2ServiceChannelChannelWebhook.md create mode 100644 rest/chat/v2/docs/ChatV2ServiceChannelChannelWebhookReadResponse.md create mode 100644 rest/chat/v2/docs/ChatV2ServiceChannelInvite.md create mode 100644 rest/chat/v2/docs/ChatV2ServiceChannelInviteReadResponse.md create mode 100644 rest/chat/v2/docs/ChatV2ServiceChannelMember.md create mode 100644 rest/chat/v2/docs/ChatV2ServiceChannelMemberReadResponse.md create mode 100644 rest/chat/v2/docs/ChatV2ServiceChannelMessage.md create mode 100644 rest/chat/v2/docs/ChatV2ServiceChannelMessageReadResponse.md create mode 100644 rest/chat/v2/docs/ChatV2ServiceChannelReadResponse.md create mode 100644 rest/chat/v2/docs/ChatV2ServiceReadResponse.md create mode 100644 rest/chat/v2/docs/ChatV2ServiceRole.md create mode 100644 rest/chat/v2/docs/ChatV2ServiceRoleReadResponse.md create mode 100644 rest/chat/v2/docs/ChatV2ServiceUser.md create mode 100644 rest/chat/v2/docs/ChatV2ServiceUserReadResponse.md create mode 100644 rest/chat/v2/docs/ChatV2ServiceUserUserBinding.md create mode 100644 rest/chat/v2/docs/ChatV2ServiceUserUserBindingReadResponse.md create mode 100644 rest/chat/v2/docs/ChatV2ServiceUserUserChannel.md create mode 100644 rest/chat/v2/docs/ChatV2ServiceUserUserChannelReadResponse.md create mode 100644 rest/chat/v2/docs/CreateChannelRequest.md create mode 100644 rest/chat/v2/docs/CreateChannelWebhookRequest.md create mode 100644 rest/chat/v2/docs/CreateCredentialRequest.md create mode 100644 rest/chat/v2/docs/CreateInviteRequest.md create mode 100644 rest/chat/v2/docs/CreateMemberRequest.md create mode 100644 rest/chat/v2/docs/CreateMessageRequest.md create mode 100644 rest/chat/v2/docs/CreateRoleRequest.md create mode 100644 rest/chat/v2/docs/CreateServiceRequest.md create mode 100644 rest/chat/v2/docs/CreateUserRequest.md create mode 100644 rest/chat/v2/docs/DefaultApi.md create mode 100644 rest/chat/v2/docs/UpdateChannelRequest.md create mode 100644 rest/chat/v2/docs/UpdateChannelWebhookRequest.md create mode 100644 rest/chat/v2/docs/UpdateCredentialRequest.md create mode 100644 rest/chat/v2/docs/UpdateMemberRequest.md create mode 100644 rest/chat/v2/docs/UpdateMessageRequest.md create mode 100644 rest/chat/v2/docs/UpdateRoleRequest.md create mode 100644 rest/chat/v2/docs/UpdateServiceRequest.md create mode 100644 rest/chat/v2/docs/UpdateUserChannelRequest.md create mode 100644 rest/chat/v2/docs/UpdateUserRequest.md create mode 100644 rest/chat/v2/model_chat_v2_credential.go create mode 100644 rest/chat/v2/model_chat_v2_credential_read_response.go create mode 100644 rest/chat/v2/model_chat_v2_credential_read_response_meta.go create mode 100644 rest/chat/v2/model_chat_v2_service.go create mode 100644 rest/chat/v2/model_chat_v2_service_binding.go create mode 100644 rest/chat/v2/model_chat_v2_service_binding_read_response.go create mode 100644 rest/chat/v2/model_chat_v2_service_channel.go create mode 100644 rest/chat/v2/model_chat_v2_service_channel_channel_webhook.go create mode 100644 rest/chat/v2/model_chat_v2_service_channel_channel_webhook_read_response.go create mode 100644 rest/chat/v2/model_chat_v2_service_channel_invite.go create mode 100644 rest/chat/v2/model_chat_v2_service_channel_invite_read_response.go create mode 100644 rest/chat/v2/model_chat_v2_service_channel_member.go create mode 100644 rest/chat/v2/model_chat_v2_service_channel_member_read_response.go create mode 100644 rest/chat/v2/model_chat_v2_service_channel_message.go create mode 100644 rest/chat/v2/model_chat_v2_service_channel_message_read_response.go create mode 100644 rest/chat/v2/model_chat_v2_service_channel_read_response.go create mode 100644 rest/chat/v2/model_chat_v2_service_read_response.go create mode 100644 rest/chat/v2/model_chat_v2_service_role.go create mode 100644 rest/chat/v2/model_chat_v2_service_role_read_response.go create mode 100644 rest/chat/v2/model_chat_v2_service_user.go create mode 100644 rest/chat/v2/model_chat_v2_service_user_read_response.go create mode 100644 rest/chat/v2/model_chat_v2_service_user_user_binding.go create mode 100644 rest/chat/v2/model_chat_v2_service_user_user_binding_read_response.go create mode 100644 rest/chat/v2/model_chat_v2_service_user_user_channel.go create mode 100644 rest/chat/v2/model_chat_v2_service_user_user_channel_read_response.go create mode 100644 rest/chat/v2/model_create_channel_request.go create mode 100644 rest/chat/v2/model_create_channel_webhook_request.go create mode 100644 rest/chat/v2/model_create_credential_request.go create mode 100644 rest/chat/v2/model_create_invite_request.go create mode 100644 rest/chat/v2/model_create_member_request.go create mode 100644 rest/chat/v2/model_create_message_request.go create mode 100644 rest/chat/v2/model_create_role_request.go create mode 100644 rest/chat/v2/model_create_service_request.go create mode 100644 rest/chat/v2/model_create_user_request.go create mode 100644 rest/chat/v2/model_update_channel_request.go create mode 100644 rest/chat/v2/model_update_channel_webhook_request.go create mode 100644 rest/chat/v2/model_update_credential_request.go create mode 100644 rest/chat/v2/model_update_member_request.go create mode 100644 rest/chat/v2/model_update_message_request.go create mode 100644 rest/chat/v2/model_update_role_request.go create mode 100644 rest/chat/v2/model_update_service_request.go create mode 100644 rest/chat/v2/model_update_user_channel_request.go create mode 100644 rest/chat/v2/model_update_user_request.go create mode 100644 rest/chat/v2/response.go create mode 100644 rest/conversations/v1/.openapi-generator-ignore create mode 100644 rest/conversations/v1/.openapi-generator/VERSION create mode 100644 rest/conversations/v1/README.md create mode 100644 rest/conversations/v1/api_default.go create mode 100644 rest/conversations/v1/docs/ConversationsV1Configuration.md create mode 100644 rest/conversations/v1/docs/ConversationsV1ConfigurationConfigurationWebhook.md create mode 100644 rest/conversations/v1/docs/ConversationsV1Conversation.md create mode 100644 rest/conversations/v1/docs/ConversationsV1ConversationConversationMessage.md create mode 100644 rest/conversations/v1/docs/ConversationsV1ConversationConversationMessageConversationMessageReceipt.md create mode 100644 rest/conversations/v1/docs/ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse.md create mode 100644 rest/conversations/v1/docs/ConversationsV1ConversationConversationMessageReadResponse.md create mode 100644 rest/conversations/v1/docs/ConversationsV1ConversationConversationParticipant.md create mode 100644 rest/conversations/v1/docs/ConversationsV1ConversationConversationParticipantReadResponse.md create mode 100644 rest/conversations/v1/docs/ConversationsV1ConversationConversationScopedWebhook.md create mode 100644 rest/conversations/v1/docs/ConversationsV1ConversationConversationScopedWebhookReadResponse.md create mode 100644 rest/conversations/v1/docs/ConversationsV1ConversationReadResponse.md create mode 100644 rest/conversations/v1/docs/ConversationsV1ConversationReadResponseMeta.md create mode 100644 rest/conversations/v1/docs/ConversationsV1Credential.md create mode 100644 rest/conversations/v1/docs/ConversationsV1CredentialReadResponse.md create mode 100644 rest/conversations/v1/docs/ConversationsV1Role.md create mode 100644 rest/conversations/v1/docs/ConversationsV1RoleReadResponse.md create mode 100644 rest/conversations/v1/docs/ConversationsV1Service.md create mode 100644 rest/conversations/v1/docs/ConversationsV1ServiceReadResponse.md create mode 100644 rest/conversations/v1/docs/ConversationsV1ServiceServiceBinding.md create mode 100644 rest/conversations/v1/docs/ConversationsV1ServiceServiceBindingReadResponse.md create mode 100644 rest/conversations/v1/docs/ConversationsV1ServiceServiceConfiguration.md create mode 100644 rest/conversations/v1/docs/ConversationsV1ServiceServiceConfigurationServiceNotification.md create mode 100644 rest/conversations/v1/docs/ConversationsV1ServiceServiceConversation.md create mode 100644 rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationReadResponse.md create mode 100644 rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationMessage.md create mode 100644 rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse.md create mode 100644 rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt.md create mode 100644 rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse.md create mode 100644 rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationParticipant.md create mode 100644 rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse.md create mode 100644 rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook.md create mode 100644 rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse.md create mode 100644 rest/conversations/v1/docs/ConversationsV1ServiceServiceRole.md create mode 100644 rest/conversations/v1/docs/ConversationsV1ServiceServiceRoleReadResponse.md create mode 100644 rest/conversations/v1/docs/ConversationsV1ServiceServiceUser.md create mode 100644 rest/conversations/v1/docs/ConversationsV1ServiceServiceUserReadResponse.md create mode 100644 rest/conversations/v1/docs/ConversationsV1User.md create mode 100644 rest/conversations/v1/docs/ConversationsV1UserReadResponse.md create mode 100644 rest/conversations/v1/docs/CreateConversationMessageRequest.md create mode 100644 rest/conversations/v1/docs/CreateConversationParticipantRequest.md create mode 100644 rest/conversations/v1/docs/CreateConversationRequest.md create mode 100644 rest/conversations/v1/docs/CreateConversationScopedWebhookRequest.md create mode 100644 rest/conversations/v1/docs/CreateCredentialRequest.md create mode 100644 rest/conversations/v1/docs/CreateRoleRequest.md create mode 100644 rest/conversations/v1/docs/CreateServiceConversationMessageRequest.md create mode 100644 rest/conversations/v1/docs/CreateServiceConversationParticipantRequest.md create mode 100644 rest/conversations/v1/docs/CreateServiceConversationRequest.md create mode 100644 rest/conversations/v1/docs/CreateServiceConversationScopedWebhookRequest.md create mode 100644 rest/conversations/v1/docs/CreateServiceRequest.md create mode 100644 rest/conversations/v1/docs/CreateServiceRoleRequest.md create mode 100644 rest/conversations/v1/docs/CreateServiceUserRequest.md create mode 100644 rest/conversations/v1/docs/CreateUserRequest.md create mode 100644 rest/conversations/v1/docs/DefaultApi.md create mode 100644 rest/conversations/v1/docs/UpdateConfigurationRequest.md create mode 100644 rest/conversations/v1/docs/UpdateConfigurationWebhookRequest.md create mode 100644 rest/conversations/v1/docs/UpdateConversationMessageRequest.md create mode 100644 rest/conversations/v1/docs/UpdateConversationParticipantRequest.md create mode 100644 rest/conversations/v1/docs/UpdateConversationRequest.md create mode 100644 rest/conversations/v1/docs/UpdateConversationScopedWebhookRequest.md create mode 100644 rest/conversations/v1/docs/UpdateCredentialRequest.md create mode 100644 rest/conversations/v1/docs/UpdateRoleRequest.md create mode 100644 rest/conversations/v1/docs/UpdateServiceConfigurationRequest.md create mode 100644 rest/conversations/v1/docs/UpdateServiceConversationMessageRequest.md create mode 100644 rest/conversations/v1/docs/UpdateServiceConversationParticipantRequest.md create mode 100644 rest/conversations/v1/docs/UpdateServiceConversationRequest.md create mode 100644 rest/conversations/v1/docs/UpdateServiceConversationScopedWebhookRequest.md create mode 100644 rest/conversations/v1/docs/UpdateServiceNotificationRequest.md create mode 100644 rest/conversations/v1/docs/UpdateServiceRoleRequest.md create mode 100644 rest/conversations/v1/docs/UpdateServiceUserRequest.md create mode 100644 rest/conversations/v1/docs/UpdateUserRequest.md create mode 100644 rest/conversations/v1/model_conversations_v1_configuration.go create mode 100644 rest/conversations/v1/model_conversations_v1_configuration_configuration_webhook.go create mode 100644 rest/conversations/v1/model_conversations_v1_conversation.go create mode 100644 rest/conversations/v1/model_conversations_v1_conversation_conversation_message.go create mode 100644 rest/conversations/v1/model_conversations_v1_conversation_conversation_message_conversation_message_receipt.go create mode 100644 rest/conversations/v1/model_conversations_v1_conversation_conversation_message_conversation_message_receipt_read_response.go create mode 100644 rest/conversations/v1/model_conversations_v1_conversation_conversation_message_read_response.go create mode 100644 rest/conversations/v1/model_conversations_v1_conversation_conversation_participant.go create mode 100644 rest/conversations/v1/model_conversations_v1_conversation_conversation_participant_read_response.go create mode 100644 rest/conversations/v1/model_conversations_v1_conversation_conversation_scoped_webhook.go create mode 100644 rest/conversations/v1/model_conversations_v1_conversation_conversation_scoped_webhook_read_response.go create mode 100644 rest/conversations/v1/model_conversations_v1_conversation_read_response.go create mode 100644 rest/conversations/v1/model_conversations_v1_conversation_read_response_meta.go create mode 100644 rest/conversations/v1/model_conversations_v1_credential.go create mode 100644 rest/conversations/v1/model_conversations_v1_credential_read_response.go create mode 100644 rest/conversations/v1/model_conversations_v1_role.go create mode 100644 rest/conversations/v1/model_conversations_v1_role_read_response.go create mode 100644 rest/conversations/v1/model_conversations_v1_service.go create mode 100644 rest/conversations/v1/model_conversations_v1_service_read_response.go create mode 100644 rest/conversations/v1/model_conversations_v1_service_service_binding.go create mode 100644 rest/conversations/v1/model_conversations_v1_service_service_binding_read_response.go create mode 100644 rest/conversations/v1/model_conversations_v1_service_service_configuration.go create mode 100644 rest/conversations/v1/model_conversations_v1_service_service_configuration_service_notification.go create mode 100644 rest/conversations/v1/model_conversations_v1_service_service_conversation.go create mode 100644 rest/conversations/v1/model_conversations_v1_service_service_conversation_read_response.go create mode 100644 rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message.go create mode 100644 rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message_read_response.go create mode 100644 rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message_service_conversation_message_receipt.go create mode 100644 rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message_service_conversation_message_receipt_read_response.go create mode 100644 rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_participant.go create mode 100644 rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_participant_read_response.go create mode 100644 rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_scoped_webhook.go create mode 100644 rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_scoped_webhook_read_response.go create mode 100644 rest/conversations/v1/model_conversations_v1_service_service_role.go create mode 100644 rest/conversations/v1/model_conversations_v1_service_service_role_read_response.go create mode 100644 rest/conversations/v1/model_conversations_v1_service_service_user.go create mode 100644 rest/conversations/v1/model_conversations_v1_service_service_user_read_response.go create mode 100644 rest/conversations/v1/model_conversations_v1_user.go create mode 100644 rest/conversations/v1/model_conversations_v1_user_read_response.go create mode 100644 rest/conversations/v1/model_create_conversation_message_request.go create mode 100644 rest/conversations/v1/model_create_conversation_participant_request.go create mode 100644 rest/conversations/v1/model_create_conversation_request.go create mode 100644 rest/conversations/v1/model_create_conversation_scoped_webhook_request.go create mode 100644 rest/conversations/v1/model_create_credential_request.go create mode 100644 rest/conversations/v1/model_create_role_request.go create mode 100644 rest/conversations/v1/model_create_service_conversation_message_request.go create mode 100644 rest/conversations/v1/model_create_service_conversation_participant_request.go create mode 100644 rest/conversations/v1/model_create_service_conversation_request.go create mode 100644 rest/conversations/v1/model_create_service_conversation_scoped_webhook_request.go create mode 100644 rest/conversations/v1/model_create_service_request.go create mode 100644 rest/conversations/v1/model_create_service_role_request.go create mode 100644 rest/conversations/v1/model_create_service_user_request.go create mode 100644 rest/conversations/v1/model_create_user_request.go create mode 100644 rest/conversations/v1/model_update_configuration_request.go create mode 100644 rest/conversations/v1/model_update_configuration_webhook_request.go create mode 100644 rest/conversations/v1/model_update_conversation_message_request.go create mode 100644 rest/conversations/v1/model_update_conversation_participant_request.go create mode 100644 rest/conversations/v1/model_update_conversation_request.go create mode 100644 rest/conversations/v1/model_update_conversation_scoped_webhook_request.go create mode 100644 rest/conversations/v1/model_update_credential_request.go create mode 100644 rest/conversations/v1/model_update_role_request.go create mode 100644 rest/conversations/v1/model_update_service_configuration_request.go create mode 100644 rest/conversations/v1/model_update_service_conversation_message_request.go create mode 100644 rest/conversations/v1/model_update_service_conversation_participant_request.go create mode 100644 rest/conversations/v1/model_update_service_conversation_request.go create mode 100644 rest/conversations/v1/model_update_service_conversation_scoped_webhook_request.go create mode 100644 rest/conversations/v1/model_update_service_notification_request.go create mode 100644 rest/conversations/v1/model_update_service_role_request.go create mode 100644 rest/conversations/v1/model_update_service_user_request.go create mode 100644 rest/conversations/v1/model_update_user_request.go create mode 100644 rest/conversations/v1/response.go create mode 100644 rest/events/v1/.openapi-generator-ignore create mode 100644 rest/events/v1/.openapi-generator/VERSION create mode 100644 rest/events/v1/README.md create mode 100644 rest/events/v1/api_default.go create mode 100644 rest/events/v1/docs/CreateSinkRequest.md create mode 100644 rest/events/v1/docs/CreateSinkValidateRequest.md create mode 100644 rest/events/v1/docs/CreateSubscriptionRequest.md create mode 100644 rest/events/v1/docs/DefaultApi.md create mode 100644 rest/events/v1/docs/EventsV1EventType.md create mode 100644 rest/events/v1/docs/EventsV1EventTypeReadResponse.md create mode 100644 rest/events/v1/docs/EventsV1Schema.md create mode 100644 rest/events/v1/docs/EventsV1SchemaVersion.md create mode 100644 rest/events/v1/docs/EventsV1SchemaVersionReadResponse.md create mode 100644 rest/events/v1/docs/EventsV1SchemaVersionReadResponseMeta.md create mode 100644 rest/events/v1/docs/EventsV1Sink.md create mode 100644 rest/events/v1/docs/EventsV1SinkReadResponse.md create mode 100644 rest/events/v1/docs/EventsV1SinkSinkTest.md create mode 100644 rest/events/v1/docs/EventsV1SinkSinkValidate.md create mode 100644 rest/events/v1/docs/EventsV1Subscription.md create mode 100644 rest/events/v1/docs/EventsV1SubscriptionReadResponse.md create mode 100644 rest/events/v1/docs/EventsV1SubscriptionSubscribedEvent.md create mode 100644 rest/events/v1/docs/EventsV1SubscriptionSubscribedEventReadResponse.md create mode 100644 rest/events/v1/docs/UpdateSubscriptionRequest.md create mode 100644 rest/events/v1/model_create_sink_request.go create mode 100644 rest/events/v1/model_create_sink_validate_request.go create mode 100644 rest/events/v1/model_create_subscription_request.go create mode 100644 rest/events/v1/model_events_v1_event_type.go create mode 100644 rest/events/v1/model_events_v1_event_type_read_response.go create mode 100644 rest/events/v1/model_events_v1_schema.go create mode 100644 rest/events/v1/model_events_v1_schema_version.go create mode 100644 rest/events/v1/model_events_v1_schema_version_read_response.go create mode 100644 rest/events/v1/model_events_v1_schema_version_read_response_meta.go create mode 100644 rest/events/v1/model_events_v1_sink.go create mode 100644 rest/events/v1/model_events_v1_sink_read_response.go create mode 100644 rest/events/v1/model_events_v1_sink_sink_test_.go create mode 100644 rest/events/v1/model_events_v1_sink_sink_validate.go create mode 100644 rest/events/v1/model_events_v1_subscription.go create mode 100644 rest/events/v1/model_events_v1_subscription_read_response.go create mode 100644 rest/events/v1/model_events_v1_subscription_subscribed_event.go create mode 100644 rest/events/v1/model_events_v1_subscription_subscribed_event_read_response.go create mode 100644 rest/events/v1/model_update_subscription_request.go create mode 100644 rest/events/v1/response.go create mode 100644 rest/fax/v1/.openapi-generator-ignore create mode 100644 rest/fax/v1/.openapi-generator/VERSION create mode 100644 rest/fax/v1/README.md create mode 100644 rest/fax/v1/api_default.go create mode 100644 rest/fax/v1/docs/CreateFaxRequest.md create mode 100644 rest/fax/v1/docs/DefaultApi.md create mode 100644 rest/fax/v1/docs/FaxV1Fax.md create mode 100644 rest/fax/v1/docs/FaxV1FaxFaxMedia.md create mode 100644 rest/fax/v1/docs/FaxV1FaxFaxMediaReadResponse.md create mode 100644 rest/fax/v1/docs/FaxV1FaxReadResponse.md create mode 100644 rest/fax/v1/docs/FaxV1FaxReadResponseMeta.md create mode 100644 rest/fax/v1/docs/UpdateFaxRequest.md create mode 100644 rest/fax/v1/model_create_fax_request.go create mode 100644 rest/fax/v1/model_fax_v1_fax.go create mode 100644 rest/fax/v1/model_fax_v1_fax_fax_media.go create mode 100644 rest/fax/v1/model_fax_v1_fax_fax_media_read_response.go create mode 100644 rest/fax/v1/model_fax_v1_fax_read_response.go create mode 100644 rest/fax/v1/model_fax_v1_fax_read_response_meta.go create mode 100644 rest/fax/v1/model_update_fax_request.go create mode 100644 rest/fax/v1/response.go create mode 100644 rest/flex/v1/.openapi-generator-ignore create mode 100644 rest/flex/v1/.openapi-generator/VERSION create mode 100644 rest/flex/v1/README.md create mode 100644 rest/flex/v1/api_default.go create mode 100644 rest/flex/v1/docs/CreateChannelRequest.md create mode 100644 rest/flex/v1/docs/CreateFlexFlowRequest.md create mode 100644 rest/flex/v1/docs/CreateWebChannelRequest.md create mode 100644 rest/flex/v1/docs/DefaultApi.md create mode 100644 rest/flex/v1/docs/FlexV1Channel.md create mode 100644 rest/flex/v1/docs/FlexV1ChannelReadResponse.md create mode 100644 rest/flex/v1/docs/FlexV1ChannelReadResponseMeta.md create mode 100644 rest/flex/v1/docs/FlexV1Configuration.md create mode 100644 rest/flex/v1/docs/FlexV1FlexFlow.md create mode 100644 rest/flex/v1/docs/FlexV1FlexFlowReadResponse.md create mode 100644 rest/flex/v1/docs/FlexV1WebChannel.md create mode 100644 rest/flex/v1/docs/FlexV1WebChannelReadResponse.md create mode 100644 rest/flex/v1/docs/UpdateFlexFlowRequest.md create mode 100644 rest/flex/v1/docs/UpdateWebChannelRequest.md create mode 100644 rest/flex/v1/model_create_channel_request.go create mode 100644 rest/flex/v1/model_create_flex_flow_request.go create mode 100644 rest/flex/v1/model_create_web_channel_request.go create mode 100644 rest/flex/v1/model_flex_v1_channel.go create mode 100644 rest/flex/v1/model_flex_v1_channel_read_response.go create mode 100644 rest/flex/v1/model_flex_v1_channel_read_response_meta.go create mode 100644 rest/flex/v1/model_flex_v1_configuration.go create mode 100644 rest/flex/v1/model_flex_v1_flex_flow.go create mode 100644 rest/flex/v1/model_flex_v1_flex_flow_read_response.go create mode 100644 rest/flex/v1/model_flex_v1_web_channel.go create mode 100644 rest/flex/v1/model_flex_v1_web_channel_read_response.go create mode 100644 rest/flex/v1/model_update_flex_flow_request.go create mode 100644 rest/flex/v1/model_update_web_channel_request.go create mode 100644 rest/flex/v1/response.go create mode 100644 rest/insights/v1/.openapi-generator-ignore create mode 100644 rest/insights/v1/.openapi-generator/VERSION create mode 100644 rest/insights/v1/README.md create mode 100644 rest/insights/v1/api_call_tag.go create mode 100644 rest/insights/v1/api_events_tag.go create mode 100644 rest/insights/v1/api_metrics_tag.go create mode 100644 rest/insights/v1/api_summary_tag.go create mode 100644 rest/insights/v1/api_video_participant_summary_tag.go create mode 100644 rest/insights/v1/api_video_room_summary_tag.go create mode 100644 rest/insights/v1/docs/CallTagApi.md create mode 100644 rest/insights/v1/docs/EventsTagApi.md create mode 100644 rest/insights/v1/docs/InsightsV1Call.md create mode 100644 rest/insights/v1/docs/InsightsV1CallEvent.md create mode 100644 rest/insights/v1/docs/InsightsV1CallEventReadResponse.md create mode 100644 rest/insights/v1/docs/InsightsV1CallMetric.md create mode 100644 rest/insights/v1/docs/InsightsV1CallMetricReadResponse.md create mode 100644 rest/insights/v1/docs/InsightsV1CallSummary.md create mode 100644 rest/insights/v1/docs/InsightsV1VideoRoomSummary.md create mode 100644 rest/insights/v1/docs/InsightsV1VideoRoomSummaryReadResponse.md create mode 100644 rest/insights/v1/docs/InsightsV1VideoRoomSummaryReadResponseMeta.md create mode 100644 rest/insights/v1/docs/InsightsV1VideoRoomSummaryVideoParticipantSummary.md create mode 100644 rest/insights/v1/docs/InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse.md create mode 100644 rest/insights/v1/docs/MetricsTagApi.md create mode 100644 rest/insights/v1/docs/SummaryTagApi.md create mode 100644 rest/insights/v1/docs/VideoParticipantSummaryTagApi.md create mode 100644 rest/insights/v1/docs/VideoRoomSummaryTagApi.md create mode 100644 rest/insights/v1/model_insights_v1_call.go create mode 100644 rest/insights/v1/model_insights_v1_call_event.go create mode 100644 rest/insights/v1/model_insights_v1_call_event_read_response.go create mode 100644 rest/insights/v1/model_insights_v1_call_metric.go create mode 100644 rest/insights/v1/model_insights_v1_call_metric_read_response.go create mode 100644 rest/insights/v1/model_insights_v1_call_summary.go create mode 100644 rest/insights/v1/model_insights_v1_video_room_summary.go create mode 100644 rest/insights/v1/model_insights_v1_video_room_summary_read_response.go create mode 100644 rest/insights/v1/model_insights_v1_video_room_summary_read_response_meta.go create mode 100644 rest/insights/v1/model_insights_v1_video_room_summary_video_participant_summary.go create mode 100644 rest/insights/v1/model_insights_v1_video_room_summary_video_participant_summary_read_response.go create mode 100644 rest/insights/v1/response.go create mode 100644 rest/ip/messaging/.openapi-generator-ignore create mode 100644 rest/ip/messaging/.openapi-generator/VERSION create mode 100644 rest/ip/messaging/README.md create mode 100644 rest/ip/messaging/api_default.go create mode 100644 rest/ip/messaging/docs/CreateChannelRequest.md create mode 100644 rest/ip/messaging/docs/CreateChannelWebhookRequest.md create mode 100644 rest/ip/messaging/docs/CreateCredentialRequest.md create mode 100644 rest/ip/messaging/docs/CreateInviteRequest.md create mode 100644 rest/ip/messaging/docs/CreateMemberRequest.md create mode 100644 rest/ip/messaging/docs/CreateMessageRequest.md create mode 100644 rest/ip/messaging/docs/CreateRoleRequest.md create mode 100644 rest/ip/messaging/docs/CreateServiceRequest.md create mode 100644 rest/ip/messaging/docs/CreateUserRequest.md create mode 100644 rest/ip/messaging/docs/DefaultApi.md create mode 100644 rest/ip/messaging/docs/IpMessagingV1Credential.md create mode 100644 rest/ip/messaging/docs/IpMessagingV1CredentialReadResponse.md create mode 100644 rest/ip/messaging/docs/IpMessagingV1CredentialReadResponseMeta.md create mode 100644 rest/ip/messaging/docs/IpMessagingV1Service.md create mode 100644 rest/ip/messaging/docs/IpMessagingV1ServiceChannel.md create mode 100644 rest/ip/messaging/docs/IpMessagingV1ServiceChannelInvite.md create mode 100644 rest/ip/messaging/docs/IpMessagingV1ServiceChannelInviteReadResponse.md create mode 100644 rest/ip/messaging/docs/IpMessagingV1ServiceChannelMember.md create mode 100644 rest/ip/messaging/docs/IpMessagingV1ServiceChannelMemberReadResponse.md create mode 100644 rest/ip/messaging/docs/IpMessagingV1ServiceChannelMessage.md create mode 100644 rest/ip/messaging/docs/IpMessagingV1ServiceChannelMessageReadResponse.md create mode 100644 rest/ip/messaging/docs/IpMessagingV1ServiceChannelReadResponse.md create mode 100644 rest/ip/messaging/docs/IpMessagingV1ServiceReadResponse.md create mode 100644 rest/ip/messaging/docs/IpMessagingV1ServiceRole.md create mode 100644 rest/ip/messaging/docs/IpMessagingV1ServiceRoleReadResponse.md create mode 100644 rest/ip/messaging/docs/IpMessagingV1ServiceUser.md create mode 100644 rest/ip/messaging/docs/IpMessagingV1ServiceUserReadResponse.md create mode 100644 rest/ip/messaging/docs/IpMessagingV1ServiceUserUserChannel.md create mode 100644 rest/ip/messaging/docs/IpMessagingV1ServiceUserUserChannelReadResponse.md create mode 100644 rest/ip/messaging/docs/IpMessagingV2Credential.md create mode 100644 rest/ip/messaging/docs/IpMessagingV2CredentialReadResponse.md create mode 100644 rest/ip/messaging/docs/IpMessagingV2CredentialReadResponseMeta.md create mode 100644 rest/ip/messaging/docs/IpMessagingV2Service.md create mode 100644 rest/ip/messaging/docs/IpMessagingV2ServiceBinding.md create mode 100644 rest/ip/messaging/docs/IpMessagingV2ServiceBindingReadResponse.md create mode 100644 rest/ip/messaging/docs/IpMessagingV2ServiceChannel.md create mode 100644 rest/ip/messaging/docs/IpMessagingV2ServiceChannelChannelWebhook.md create mode 100644 rest/ip/messaging/docs/IpMessagingV2ServiceChannelChannelWebhookReadResponse.md create mode 100644 rest/ip/messaging/docs/IpMessagingV2ServiceChannelInvite.md create mode 100644 rest/ip/messaging/docs/IpMessagingV2ServiceChannelInviteReadResponse.md create mode 100644 rest/ip/messaging/docs/IpMessagingV2ServiceChannelMember.md create mode 100644 rest/ip/messaging/docs/IpMessagingV2ServiceChannelMemberReadResponse.md create mode 100644 rest/ip/messaging/docs/IpMessagingV2ServiceChannelMessage.md create mode 100644 rest/ip/messaging/docs/IpMessagingV2ServiceChannelMessageReadResponse.md create mode 100644 rest/ip/messaging/docs/IpMessagingV2ServiceChannelReadResponse.md create mode 100644 rest/ip/messaging/docs/IpMessagingV2ServiceReadResponse.md create mode 100644 rest/ip/messaging/docs/IpMessagingV2ServiceRole.md create mode 100644 rest/ip/messaging/docs/IpMessagingV2ServiceRoleReadResponse.md create mode 100644 rest/ip/messaging/docs/IpMessagingV2ServiceUser.md create mode 100644 rest/ip/messaging/docs/IpMessagingV2ServiceUserReadResponse.md create mode 100644 rest/ip/messaging/docs/IpMessagingV2ServiceUserUserBinding.md create mode 100644 rest/ip/messaging/docs/IpMessagingV2ServiceUserUserBindingReadResponse.md create mode 100644 rest/ip/messaging/docs/IpMessagingV2ServiceUserUserChannel.md create mode 100644 rest/ip/messaging/docs/IpMessagingV2ServiceUserUserChannelReadResponse.md create mode 100644 rest/ip/messaging/docs/UpdateChannelRequest.md create mode 100644 rest/ip/messaging/docs/UpdateChannelWebhookRequest.md create mode 100644 rest/ip/messaging/docs/UpdateCredentialRequest.md create mode 100644 rest/ip/messaging/docs/UpdateMemberRequest.md create mode 100644 rest/ip/messaging/docs/UpdateMessageRequest.md create mode 100644 rest/ip/messaging/docs/UpdateRoleRequest.md create mode 100644 rest/ip/messaging/docs/UpdateServiceRequest.md create mode 100644 rest/ip/messaging/docs/UpdateUserChannelRequest.md create mode 100644 rest/ip/messaging/docs/UpdateUserRequest.md create mode 100644 rest/ip/messaging/model_create_channel_request.go create mode 100644 rest/ip/messaging/model_create_channel_webhook_request.go create mode 100644 rest/ip/messaging/model_create_credential_request.go create mode 100644 rest/ip/messaging/model_create_invite_request.go create mode 100644 rest/ip/messaging/model_create_member_request.go create mode 100644 rest/ip/messaging/model_create_message_request.go create mode 100644 rest/ip/messaging/model_create_role_request.go create mode 100644 rest/ip/messaging/model_create_service_request.go create mode 100644 rest/ip/messaging/model_create_user_request.go create mode 100644 rest/ip/messaging/model_ip_messaging_v1_credential.go create mode 100644 rest/ip/messaging/model_ip_messaging_v1_credential_read_response.go create mode 100644 rest/ip/messaging/model_ip_messaging_v1_credential_read_response_meta.go create mode 100644 rest/ip/messaging/model_ip_messaging_v1_service.go create mode 100644 rest/ip/messaging/model_ip_messaging_v1_service_channel.go create mode 100644 rest/ip/messaging/model_ip_messaging_v1_service_channel_invite.go create mode 100644 rest/ip/messaging/model_ip_messaging_v1_service_channel_invite_read_response.go create mode 100644 rest/ip/messaging/model_ip_messaging_v1_service_channel_member.go create mode 100644 rest/ip/messaging/model_ip_messaging_v1_service_channel_member_read_response.go create mode 100644 rest/ip/messaging/model_ip_messaging_v1_service_channel_message.go create mode 100644 rest/ip/messaging/model_ip_messaging_v1_service_channel_message_read_response.go create mode 100644 rest/ip/messaging/model_ip_messaging_v1_service_channel_read_response.go create mode 100644 rest/ip/messaging/model_ip_messaging_v1_service_read_response.go create mode 100644 rest/ip/messaging/model_ip_messaging_v1_service_role.go create mode 100644 rest/ip/messaging/model_ip_messaging_v1_service_role_read_response.go create mode 100644 rest/ip/messaging/model_ip_messaging_v1_service_user.go create mode 100644 rest/ip/messaging/model_ip_messaging_v1_service_user_read_response.go create mode 100644 rest/ip/messaging/model_ip_messaging_v1_service_user_user_channel.go create mode 100644 rest/ip/messaging/model_ip_messaging_v1_service_user_user_channel_read_response.go create mode 100644 rest/ip/messaging/model_ip_messaging_v2_credential.go create mode 100644 rest/ip/messaging/model_ip_messaging_v2_credential_read_response.go create mode 100644 rest/ip/messaging/model_ip_messaging_v2_credential_read_response_meta.go create mode 100644 rest/ip/messaging/model_ip_messaging_v2_service.go create mode 100644 rest/ip/messaging/model_ip_messaging_v2_service_binding.go create mode 100644 rest/ip/messaging/model_ip_messaging_v2_service_binding_read_response.go create mode 100644 rest/ip/messaging/model_ip_messaging_v2_service_channel.go create mode 100644 rest/ip/messaging/model_ip_messaging_v2_service_channel_channel_webhook.go create mode 100644 rest/ip/messaging/model_ip_messaging_v2_service_channel_channel_webhook_read_response.go create mode 100644 rest/ip/messaging/model_ip_messaging_v2_service_channel_invite.go create mode 100644 rest/ip/messaging/model_ip_messaging_v2_service_channel_invite_read_response.go create mode 100644 rest/ip/messaging/model_ip_messaging_v2_service_channel_member.go create mode 100644 rest/ip/messaging/model_ip_messaging_v2_service_channel_member_read_response.go create mode 100644 rest/ip/messaging/model_ip_messaging_v2_service_channel_message.go create mode 100644 rest/ip/messaging/model_ip_messaging_v2_service_channel_message_read_response.go create mode 100644 rest/ip/messaging/model_ip_messaging_v2_service_channel_read_response.go create mode 100644 rest/ip/messaging/model_ip_messaging_v2_service_read_response.go create mode 100644 rest/ip/messaging/model_ip_messaging_v2_service_role.go create mode 100644 rest/ip/messaging/model_ip_messaging_v2_service_role_read_response.go create mode 100644 rest/ip/messaging/model_ip_messaging_v2_service_user.go create mode 100644 rest/ip/messaging/model_ip_messaging_v2_service_user_read_response.go create mode 100644 rest/ip/messaging/model_ip_messaging_v2_service_user_user_binding.go create mode 100644 rest/ip/messaging/model_ip_messaging_v2_service_user_user_binding_read_response.go create mode 100644 rest/ip/messaging/model_ip_messaging_v2_service_user_user_channel.go create mode 100644 rest/ip/messaging/model_ip_messaging_v2_service_user_user_channel_read_response.go create mode 100644 rest/ip/messaging/model_update_channel_request.go create mode 100644 rest/ip/messaging/model_update_channel_webhook_request.go create mode 100644 rest/ip/messaging/model_update_credential_request.go create mode 100644 rest/ip/messaging/model_update_member_request.go create mode 100644 rest/ip/messaging/model_update_message_request.go create mode 100644 rest/ip/messaging/model_update_role_request.go create mode 100644 rest/ip/messaging/model_update_service_request.go create mode 100644 rest/ip/messaging/model_update_user_channel_request.go create mode 100644 rest/ip/messaging/model_update_user_request.go create mode 100644 rest/ip/messaging/response.go create mode 100644 rest/lookups/v1/.openapi-generator-ignore create mode 100644 rest/lookups/v1/.openapi-generator/VERSION create mode 100644 rest/lookups/v1/README.md create mode 100644 rest/lookups/v1/api_default.go create mode 100644 rest/lookups/v1/docs/DefaultApi.md create mode 100644 rest/lookups/v1/docs/LookupsV1PhoneNumber.md create mode 100644 rest/lookups/v1/model_lookups_v1_phone_number.go create mode 100644 rest/lookups/v1/response.go create mode 100644 rest/messaging/v1/.openapi-generator-ignore create mode 100644 rest/messaging/v1/.openapi-generator/VERSION create mode 100644 rest/messaging/v1/README.md create mode 100644 rest/messaging/v1/api_default.go create mode 100644 rest/messaging/v1/docs/CreateAlphaSenderRequest.md create mode 100644 rest/messaging/v1/docs/CreatePhoneNumberRequest.md create mode 100644 rest/messaging/v1/docs/CreateServiceRequest.md create mode 100644 rest/messaging/v1/docs/CreateShortCodeRequest.md create mode 100644 rest/messaging/v1/docs/DefaultApi.md create mode 100644 rest/messaging/v1/docs/MessagingV1Deactivation.md create mode 100644 rest/messaging/v1/docs/MessagingV1Service.md create mode 100644 rest/messaging/v1/docs/MessagingV1ServiceAlphaSender.md create mode 100644 rest/messaging/v1/docs/MessagingV1ServiceAlphaSenderReadResponse.md create mode 100644 rest/messaging/v1/docs/MessagingV1ServicePhoneNumber.md create mode 100644 rest/messaging/v1/docs/MessagingV1ServicePhoneNumberReadResponse.md create mode 100644 rest/messaging/v1/docs/MessagingV1ServiceReadResponse.md create mode 100644 rest/messaging/v1/docs/MessagingV1ServiceReadResponseMeta.md create mode 100644 rest/messaging/v1/docs/MessagingV1ServiceShortCode.md create mode 100644 rest/messaging/v1/docs/MessagingV1ServiceShortCodeReadResponse.md create mode 100644 rest/messaging/v1/docs/UpdateServiceRequest.md create mode 100644 rest/messaging/v1/model_create_alpha_sender_request.go create mode 100644 rest/messaging/v1/model_create_phone_number_request.go create mode 100644 rest/messaging/v1/model_create_service_request.go create mode 100644 rest/messaging/v1/model_create_short_code_request.go create mode 100644 rest/messaging/v1/model_messaging_v1_deactivation.go create mode 100644 rest/messaging/v1/model_messaging_v1_service.go create mode 100644 rest/messaging/v1/model_messaging_v1_service_alpha_sender.go create mode 100644 rest/messaging/v1/model_messaging_v1_service_alpha_sender_read_response.go create mode 100644 rest/messaging/v1/model_messaging_v1_service_phone_number.go create mode 100644 rest/messaging/v1/model_messaging_v1_service_phone_number_read_response.go create mode 100644 rest/messaging/v1/model_messaging_v1_service_read_response.go create mode 100644 rest/messaging/v1/model_messaging_v1_service_read_response_meta.go create mode 100644 rest/messaging/v1/model_messaging_v1_service_short_code.go create mode 100644 rest/messaging/v1/model_messaging_v1_service_short_code_read_response.go create mode 100644 rest/messaging/v1/model_update_service_request.go create mode 100644 rest/messaging/v1/response.go create mode 100644 rest/monitor/v1/.openapi-generator-ignore create mode 100644 rest/monitor/v1/.openapi-generator/VERSION create mode 100644 rest/monitor/v1/README.md create mode 100644 rest/monitor/v1/api_default.go create mode 100644 rest/monitor/v1/docs/DefaultApi.md create mode 100644 rest/monitor/v1/docs/MonitorV1Alert.md create mode 100644 rest/monitor/v1/docs/MonitorV1AlertInstance.md create mode 100644 rest/monitor/v1/docs/MonitorV1AlertReadResponse.md create mode 100644 rest/monitor/v1/docs/MonitorV1AlertReadResponseMeta.md create mode 100644 rest/monitor/v1/docs/MonitorV1Event.md create mode 100644 rest/monitor/v1/docs/MonitorV1EventReadResponse.md create mode 100644 rest/monitor/v1/model_monitor_v1_alert.go create mode 100644 rest/monitor/v1/model_monitor_v1_alert_instance.go create mode 100644 rest/monitor/v1/model_monitor_v1_alert_read_response.go create mode 100644 rest/monitor/v1/model_monitor_v1_alert_read_response_meta.go create mode 100644 rest/monitor/v1/model_monitor_v1_event.go create mode 100644 rest/monitor/v1/model_monitor_v1_event_read_response.go create mode 100644 rest/monitor/v1/response.go create mode 100644 rest/notify/v1/.openapi-generator-ignore create mode 100644 rest/notify/v1/.openapi-generator/VERSION create mode 100644 rest/notify/v1/README.md create mode 100644 rest/notify/v1/api_default.go create mode 100644 rest/notify/v1/docs/CreateBindingRequest.md create mode 100644 rest/notify/v1/docs/CreateCredentialRequest.md create mode 100644 rest/notify/v1/docs/CreateNotificationRequest.md create mode 100644 rest/notify/v1/docs/CreateServiceRequest.md create mode 100644 rest/notify/v1/docs/DefaultApi.md create mode 100644 rest/notify/v1/docs/NotifyV1Credential.md create mode 100644 rest/notify/v1/docs/NotifyV1CredentialReadResponse.md create mode 100644 rest/notify/v1/docs/NotifyV1CredentialReadResponseMeta.md create mode 100644 rest/notify/v1/docs/NotifyV1Service.md create mode 100644 rest/notify/v1/docs/NotifyV1ServiceBinding.md create mode 100644 rest/notify/v1/docs/NotifyV1ServiceBindingReadResponse.md create mode 100644 rest/notify/v1/docs/NotifyV1ServiceNotification.md create mode 100644 rest/notify/v1/docs/NotifyV1ServiceReadResponse.md create mode 100644 rest/notify/v1/docs/UpdateCredentialRequest.md create mode 100644 rest/notify/v1/docs/UpdateServiceRequest.md create mode 100644 rest/notify/v1/model_create_binding_request.go create mode 100644 rest/notify/v1/model_create_credential_request.go create mode 100644 rest/notify/v1/model_create_notification_request.go create mode 100644 rest/notify/v1/model_create_service_request.go create mode 100644 rest/notify/v1/model_notify_v1_credential.go create mode 100644 rest/notify/v1/model_notify_v1_credential_read_response.go create mode 100644 rest/notify/v1/model_notify_v1_credential_read_response_meta.go create mode 100644 rest/notify/v1/model_notify_v1_service.go create mode 100644 rest/notify/v1/model_notify_v1_service_binding.go create mode 100644 rest/notify/v1/model_notify_v1_service_binding_read_response.go create mode 100644 rest/notify/v1/model_notify_v1_service_notification.go create mode 100644 rest/notify/v1/model_notify_v1_service_read_response.go create mode 100644 rest/notify/v1/model_update_credential_request.go create mode 100644 rest/notify/v1/model_update_service_request.go create mode 100644 rest/notify/v1/response.go create mode 100644 rest/numbers/v2/.openapi-generator-ignore create mode 100644 rest/numbers/v2/.openapi-generator/VERSION create mode 100644 rest/numbers/v2/README.md create mode 100644 rest/numbers/v2/api_default.go create mode 100644 rest/numbers/v2/docs/CreateBundleRequest.md create mode 100644 rest/numbers/v2/docs/CreateEndUserRequest.md create mode 100644 rest/numbers/v2/docs/CreateItemAssignmentRequest.md create mode 100644 rest/numbers/v2/docs/CreateSupportingDocumentRequest.md create mode 100644 rest/numbers/v2/docs/DefaultApi.md create mode 100644 rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundle.md create mode 100644 rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleEvaluation.md create mode 100644 rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleEvaluationReadResponse.md create mode 100644 rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleItemAssignment.md create mode 100644 rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse.md create mode 100644 rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleReadResponse.md create mode 100644 rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleReadResponseMeta.md create mode 100644 rest/numbers/v2/docs/NumbersV2RegulatoryComplianceEndUser.md create mode 100644 rest/numbers/v2/docs/NumbersV2RegulatoryComplianceEndUserReadResponse.md create mode 100644 rest/numbers/v2/docs/NumbersV2RegulatoryComplianceEndUserType.md create mode 100644 rest/numbers/v2/docs/NumbersV2RegulatoryComplianceEndUserTypeReadResponse.md create mode 100644 rest/numbers/v2/docs/NumbersV2RegulatoryComplianceRegulation.md create mode 100644 rest/numbers/v2/docs/NumbersV2RegulatoryComplianceRegulationReadResponse.md create mode 100644 rest/numbers/v2/docs/NumbersV2RegulatoryComplianceSupportingDocument.md create mode 100644 rest/numbers/v2/docs/NumbersV2RegulatoryComplianceSupportingDocumentReadResponse.md create mode 100644 rest/numbers/v2/docs/NumbersV2RegulatoryComplianceSupportingDocumentType.md create mode 100644 rest/numbers/v2/docs/NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse.md create mode 100644 rest/numbers/v2/docs/UpdateBundleRequest.md create mode 100644 rest/numbers/v2/docs/UpdateEndUserRequest.md create mode 100644 rest/numbers/v2/docs/UpdateSupportingDocumentRequest.md create mode 100644 rest/numbers/v2/model_create_bundle_request.go create mode 100644 rest/numbers/v2/model_create_end_user_request.go create mode 100644 rest/numbers/v2/model_create_item_assignment_request.go create mode 100644 rest/numbers/v2/model_create_supporting_document_request.go create mode 100644 rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle.go create mode 100644 rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_evaluation.go create mode 100644 rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_evaluation_read_response.go create mode 100644 rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_item_assignment.go create mode 100644 rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_item_assignment_read_response.go create mode 100644 rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_read_response.go create mode 100644 rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_read_response_meta.go create mode 100644 rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user.go create mode 100644 rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user_read_response.go create mode 100644 rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user_type.go create mode 100644 rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user_type_read_response.go create mode 100644 rest/numbers/v2/model_numbers_v2_regulatory_compliance_regulation.go create mode 100644 rest/numbers/v2/model_numbers_v2_regulatory_compliance_regulation_read_response.go create mode 100644 rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document.go create mode 100644 rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document_read_response.go create mode 100644 rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document_type.go create mode 100644 rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document_type_read_response.go create mode 100644 rest/numbers/v2/model_update_bundle_request.go create mode 100644 rest/numbers/v2/model_update_end_user_request.go create mode 100644 rest/numbers/v2/model_update_supporting_document_request.go create mode 100644 rest/numbers/v2/response.go create mode 100644 rest/preview/.openapi-generator-ignore create mode 100644 rest/preview/.openapi-generator/VERSION create mode 100644 rest/preview/README.md create mode 100644 rest/preview/api_default.go create mode 100644 rest/preview/docs/CreateAssistantRequest.md create mode 100644 rest/preview/docs/CreateAuthorizationDocumentRequest.md create mode 100644 rest/preview/docs/CreateCertificateRequest.md create mode 100644 rest/preview/docs/CreateChannelRequest.md create mode 100644 rest/preview/docs/CreateCommandRequest.md create mode 100644 rest/preview/docs/CreateDeploymentRequest.md create mode 100644 rest/preview/docs/CreateDeviceRequest.md create mode 100644 rest/preview/docs/CreateDocumentRequest.md create mode 100644 rest/preview/docs/CreateExportCustomJobRequest.md create mode 100644 rest/preview/docs/CreateFieldRequest.md create mode 100644 rest/preview/docs/CreateFieldTypeRequest.md create mode 100644 rest/preview/docs/CreateFieldValueRequest.md create mode 100644 rest/preview/docs/CreateFleetRequest.md create mode 100644 rest/preview/docs/CreateHostedNumberOrderRequest.md create mode 100644 rest/preview/docs/CreateInstalledAddOnRequest.md create mode 100644 rest/preview/docs/CreateKeyRequest.md create mode 100644 rest/preview/docs/CreateModelBuildRequest.md create mode 100644 rest/preview/docs/CreateQueryRequest.md create mode 100644 rest/preview/docs/CreateRatePlanRequest.md create mode 100644 rest/preview/docs/CreateSampleRequest.md create mode 100644 rest/preview/docs/CreateServiceRequest.md create mode 100644 rest/preview/docs/CreateSyncListItemRequest.md create mode 100644 rest/preview/docs/CreateSyncListRequest.md create mode 100644 rest/preview/docs/CreateSyncMapItemRequest.md create mode 100644 rest/preview/docs/CreateSyncMapRequest.md create mode 100644 rest/preview/docs/CreateTaskRequest.md create mode 100644 rest/preview/docs/DefaultApi.md create mode 100644 rest/preview/docs/PreviewBulkExportsExport.md create mode 100644 rest/preview/docs/PreviewBulkExportsExportConfiguration.md create mode 100644 rest/preview/docs/PreviewBulkExportsExportDay.md create mode 100644 rest/preview/docs/PreviewBulkExportsExportDayInstance.md create mode 100644 rest/preview/docs/PreviewBulkExportsExportDayReadResponse.md create mode 100644 rest/preview/docs/PreviewBulkExportsExportDayReadResponseMeta.md create mode 100644 rest/preview/docs/PreviewBulkExportsExportExportCustomJob.md create mode 100644 rest/preview/docs/PreviewBulkExportsExportExportCustomJobReadResponse.md create mode 100644 rest/preview/docs/PreviewBulkExportsExportJob.md create mode 100644 rest/preview/docs/PreviewDeployedDevicesFleet.md create mode 100644 rest/preview/docs/PreviewDeployedDevicesFleetCertificate.md create mode 100644 rest/preview/docs/PreviewDeployedDevicesFleetCertificateReadResponse.md create mode 100644 rest/preview/docs/PreviewDeployedDevicesFleetDeployment.md create mode 100644 rest/preview/docs/PreviewDeployedDevicesFleetDeploymentReadResponse.md create mode 100644 rest/preview/docs/PreviewDeployedDevicesFleetDevice.md create mode 100644 rest/preview/docs/PreviewDeployedDevicesFleetDeviceReadResponse.md create mode 100644 rest/preview/docs/PreviewDeployedDevicesFleetKey.md create mode 100644 rest/preview/docs/PreviewDeployedDevicesFleetKeyReadResponse.md create mode 100644 rest/preview/docs/PreviewDeployedDevicesFleetReadResponse.md create mode 100644 rest/preview/docs/PreviewHostedNumbersAuthorizationDocument.md create mode 100644 rest/preview/docs/PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrder.md create mode 100644 rest/preview/docs/PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse.md create mode 100644 rest/preview/docs/PreviewHostedNumbersAuthorizationDocumentReadResponse.md create mode 100644 rest/preview/docs/PreviewHostedNumbersHostedNumberOrder.md create mode 100644 rest/preview/docs/PreviewHostedNumbersHostedNumberOrderReadResponse.md create mode 100644 rest/preview/docs/PreviewMarketplaceAvailableAddOn.md create mode 100644 rest/preview/docs/PreviewMarketplaceAvailableAddOnAvailableAddOnExtension.md create mode 100644 rest/preview/docs/PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse.md create mode 100644 rest/preview/docs/PreviewMarketplaceAvailableAddOnReadResponse.md create mode 100644 rest/preview/docs/PreviewMarketplaceInstalledAddOn.md create mode 100644 rest/preview/docs/PreviewMarketplaceInstalledAddOnInstalledAddOnExtension.md create mode 100644 rest/preview/docs/PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse.md create mode 100644 rest/preview/docs/PreviewMarketplaceInstalledAddOnReadResponse.md create mode 100644 rest/preview/docs/PreviewSyncService.md create mode 100644 rest/preview/docs/PreviewSyncServiceDocument.md create mode 100644 rest/preview/docs/PreviewSyncServiceDocumentDocumentPermission.md create mode 100644 rest/preview/docs/PreviewSyncServiceDocumentDocumentPermissionReadResponse.md create mode 100644 rest/preview/docs/PreviewSyncServiceDocumentReadResponse.md create mode 100644 rest/preview/docs/PreviewSyncServiceReadResponse.md create mode 100644 rest/preview/docs/PreviewSyncServiceSyncList.md create mode 100644 rest/preview/docs/PreviewSyncServiceSyncListReadResponse.md create mode 100644 rest/preview/docs/PreviewSyncServiceSyncListSyncListItem.md create mode 100644 rest/preview/docs/PreviewSyncServiceSyncListSyncListItemReadResponse.md create mode 100644 rest/preview/docs/PreviewSyncServiceSyncListSyncListPermission.md create mode 100644 rest/preview/docs/PreviewSyncServiceSyncListSyncListPermissionReadResponse.md create mode 100644 rest/preview/docs/PreviewSyncServiceSyncMap.md create mode 100644 rest/preview/docs/PreviewSyncServiceSyncMapReadResponse.md create mode 100644 rest/preview/docs/PreviewSyncServiceSyncMapSyncMapItem.md create mode 100644 rest/preview/docs/PreviewSyncServiceSyncMapSyncMapItemReadResponse.md create mode 100644 rest/preview/docs/PreviewSyncServiceSyncMapSyncMapPermission.md create mode 100644 rest/preview/docs/PreviewSyncServiceSyncMapSyncMapPermissionReadResponse.md create mode 100644 rest/preview/docs/PreviewTrustedCommsBrandedChannel.md create mode 100644 rest/preview/docs/PreviewTrustedCommsBrandedChannelChannel.md create mode 100644 rest/preview/docs/PreviewTrustedCommsBrandsInformation.md create mode 100644 rest/preview/docs/PreviewTrustedCommsCps.md create mode 100644 rest/preview/docs/PreviewTrustedCommsCurrentCall.md create mode 100644 rest/preview/docs/PreviewUnderstandAssistant.md create mode 100644 rest/preview/docs/PreviewUnderstandAssistantAssistantFallbackActions.md create mode 100644 rest/preview/docs/PreviewUnderstandAssistantAssistantInitiationActions.md create mode 100644 rest/preview/docs/PreviewUnderstandAssistantDialogue.md create mode 100644 rest/preview/docs/PreviewUnderstandAssistantFieldType.md create mode 100644 rest/preview/docs/PreviewUnderstandAssistantFieldTypeFieldValue.md create mode 100644 rest/preview/docs/PreviewUnderstandAssistantFieldTypeFieldValueReadResponse.md create mode 100644 rest/preview/docs/PreviewUnderstandAssistantFieldTypeReadResponse.md create mode 100644 rest/preview/docs/PreviewUnderstandAssistantModelBuild.md create mode 100644 rest/preview/docs/PreviewUnderstandAssistantModelBuildReadResponse.md create mode 100644 rest/preview/docs/PreviewUnderstandAssistantQuery.md create mode 100644 rest/preview/docs/PreviewUnderstandAssistantQueryReadResponse.md create mode 100644 rest/preview/docs/PreviewUnderstandAssistantReadResponse.md create mode 100644 rest/preview/docs/PreviewUnderstandAssistantStyleSheet.md create mode 100644 rest/preview/docs/PreviewUnderstandAssistantTask.md create mode 100644 rest/preview/docs/PreviewUnderstandAssistantTaskField.md create mode 100644 rest/preview/docs/PreviewUnderstandAssistantTaskFieldReadResponse.md create mode 100644 rest/preview/docs/PreviewUnderstandAssistantTaskReadResponse.md create mode 100644 rest/preview/docs/PreviewUnderstandAssistantTaskSample.md create mode 100644 rest/preview/docs/PreviewUnderstandAssistantTaskSampleReadResponse.md create mode 100644 rest/preview/docs/PreviewUnderstandAssistantTaskTaskActions.md create mode 100644 rest/preview/docs/PreviewUnderstandAssistantTaskTaskStatistics.md create mode 100644 rest/preview/docs/PreviewWirelessCommand.md create mode 100644 rest/preview/docs/PreviewWirelessCommandReadResponse.md create mode 100644 rest/preview/docs/PreviewWirelessRatePlan.md create mode 100644 rest/preview/docs/PreviewWirelessRatePlanReadResponse.md create mode 100644 rest/preview/docs/PreviewWirelessSim.md create mode 100644 rest/preview/docs/PreviewWirelessSimReadResponse.md create mode 100644 rest/preview/docs/PreviewWirelessSimUsage.md create mode 100644 rest/preview/docs/UpdateAssistantFallbackActionsRequest.md create mode 100644 rest/preview/docs/UpdateAssistantInitiationActionsRequest.md create mode 100644 rest/preview/docs/UpdateAssistantRequest.md create mode 100644 rest/preview/docs/UpdateAuthorizationDocumentRequest.md create mode 100644 rest/preview/docs/UpdateCertificateRequest.md create mode 100644 rest/preview/docs/UpdateDeploymentRequest.md create mode 100644 rest/preview/docs/UpdateDeviceRequest.md create mode 100644 rest/preview/docs/UpdateDocumentPermissionRequest.md create mode 100644 rest/preview/docs/UpdateDocumentRequest.md create mode 100644 rest/preview/docs/UpdateExportConfigurationRequest.md create mode 100644 rest/preview/docs/UpdateFieldTypeRequest.md create mode 100644 rest/preview/docs/UpdateFleetRequest.md create mode 100644 rest/preview/docs/UpdateHostedNumberOrderRequest.md create mode 100644 rest/preview/docs/UpdateInstalledAddOnExtensionRequest.md create mode 100644 rest/preview/docs/UpdateInstalledAddOnRequest.md create mode 100644 rest/preview/docs/UpdateKeyRequest.md create mode 100644 rest/preview/docs/UpdateModelBuildRequest.md create mode 100644 rest/preview/docs/UpdateQueryRequest.md create mode 100644 rest/preview/docs/UpdateRatePlanRequest.md create mode 100644 rest/preview/docs/UpdateSampleRequest.md create mode 100644 rest/preview/docs/UpdateServiceRequest.md create mode 100644 rest/preview/docs/UpdateSimRequest.md create mode 100644 rest/preview/docs/UpdateStyleSheetRequest.md create mode 100644 rest/preview/docs/UpdateSyncListItemRequest.md create mode 100644 rest/preview/docs/UpdateSyncListPermissionRequest.md create mode 100644 rest/preview/docs/UpdateSyncMapItemRequest.md create mode 100644 rest/preview/docs/UpdateSyncMapPermissionRequest.md create mode 100644 rest/preview/docs/UpdateTaskActionsRequest.md create mode 100644 rest/preview/docs/UpdateTaskRequest.md create mode 100644 rest/preview/model_create_assistant_request.go create mode 100644 rest/preview/model_create_authorization_document_request.go create mode 100644 rest/preview/model_create_certificate_request.go create mode 100644 rest/preview/model_create_channel_request.go create mode 100644 rest/preview/model_create_command_request.go create mode 100644 rest/preview/model_create_deployment_request.go create mode 100644 rest/preview/model_create_device_request.go create mode 100644 rest/preview/model_create_document_request.go create mode 100644 rest/preview/model_create_export_custom_job_request.go create mode 100644 rest/preview/model_create_field_request.go create mode 100644 rest/preview/model_create_field_type_request.go create mode 100644 rest/preview/model_create_field_value_request.go create mode 100644 rest/preview/model_create_fleet_request.go create mode 100644 rest/preview/model_create_hosted_number_order_request.go create mode 100644 rest/preview/model_create_installed_add_on_request.go create mode 100644 rest/preview/model_create_key_request.go create mode 100644 rest/preview/model_create_model_build_request.go create mode 100644 rest/preview/model_create_query_request.go create mode 100644 rest/preview/model_create_rate_plan_request.go create mode 100644 rest/preview/model_create_sample_request.go create mode 100644 rest/preview/model_create_service_request.go create mode 100644 rest/preview/model_create_sync_list_item_request.go create mode 100644 rest/preview/model_create_sync_list_request.go create mode 100644 rest/preview/model_create_sync_map_item_request.go create mode 100644 rest/preview/model_create_sync_map_request.go create mode 100644 rest/preview/model_create_task_request.go create mode 100644 rest/preview/model_preview_bulk_exports_export.go create mode 100644 rest/preview/model_preview_bulk_exports_export_configuration.go create mode 100644 rest/preview/model_preview_bulk_exports_export_day.go create mode 100644 rest/preview/model_preview_bulk_exports_export_day_instance.go create mode 100644 rest/preview/model_preview_bulk_exports_export_day_read_response.go create mode 100644 rest/preview/model_preview_bulk_exports_export_day_read_response_meta.go create mode 100644 rest/preview/model_preview_bulk_exports_export_export_custom_job.go create mode 100644 rest/preview/model_preview_bulk_exports_export_export_custom_job_read_response.go create mode 100644 rest/preview/model_preview_bulk_exports_export_job.go create mode 100644 rest/preview/model_preview_deployed_devices_fleet.go create mode 100644 rest/preview/model_preview_deployed_devices_fleet_certificate.go create mode 100644 rest/preview/model_preview_deployed_devices_fleet_certificate_read_response.go create mode 100644 rest/preview/model_preview_deployed_devices_fleet_deployment.go create mode 100644 rest/preview/model_preview_deployed_devices_fleet_deployment_read_response.go create mode 100644 rest/preview/model_preview_deployed_devices_fleet_device.go create mode 100644 rest/preview/model_preview_deployed_devices_fleet_device_read_response.go create mode 100644 rest/preview/model_preview_deployed_devices_fleet_key.go create mode 100644 rest/preview/model_preview_deployed_devices_fleet_key_read_response.go create mode 100644 rest/preview/model_preview_deployed_devices_fleet_read_response.go create mode 100644 rest/preview/model_preview_hosted_numbers_authorization_document.go create mode 100644 rest/preview/model_preview_hosted_numbers_authorization_document_dependent_hosted_number_order.go create mode 100644 rest/preview/model_preview_hosted_numbers_authorization_document_dependent_hosted_number_order_read_response.go create mode 100644 rest/preview/model_preview_hosted_numbers_authorization_document_read_response.go create mode 100644 rest/preview/model_preview_hosted_numbers_hosted_number_order.go create mode 100644 rest/preview/model_preview_hosted_numbers_hosted_number_order_read_response.go create mode 100644 rest/preview/model_preview_marketplace_available_add_on.go create mode 100644 rest/preview/model_preview_marketplace_available_add_on_available_add_on_extension.go create mode 100644 rest/preview/model_preview_marketplace_available_add_on_available_add_on_extension_read_response.go create mode 100644 rest/preview/model_preview_marketplace_available_add_on_read_response.go create mode 100644 rest/preview/model_preview_marketplace_installed_add_on.go create mode 100644 rest/preview/model_preview_marketplace_installed_add_on_installed_add_on_extension.go create mode 100644 rest/preview/model_preview_marketplace_installed_add_on_installed_add_on_extension_read_response.go create mode 100644 rest/preview/model_preview_marketplace_installed_add_on_read_response.go create mode 100644 rest/preview/model_preview_sync_service.go create mode 100644 rest/preview/model_preview_sync_service_document.go create mode 100644 rest/preview/model_preview_sync_service_document_document_permission.go create mode 100644 rest/preview/model_preview_sync_service_document_document_permission_read_response.go create mode 100644 rest/preview/model_preview_sync_service_document_read_response.go create mode 100644 rest/preview/model_preview_sync_service_read_response.go create mode 100644 rest/preview/model_preview_sync_service_sync_list.go create mode 100644 rest/preview/model_preview_sync_service_sync_list_read_response.go create mode 100644 rest/preview/model_preview_sync_service_sync_list_sync_list_item.go create mode 100644 rest/preview/model_preview_sync_service_sync_list_sync_list_item_read_response.go create mode 100644 rest/preview/model_preview_sync_service_sync_list_sync_list_permission.go create mode 100644 rest/preview/model_preview_sync_service_sync_list_sync_list_permission_read_response.go create mode 100644 rest/preview/model_preview_sync_service_sync_map.go create mode 100644 rest/preview/model_preview_sync_service_sync_map_read_response.go create mode 100644 rest/preview/model_preview_sync_service_sync_map_sync_map_item.go create mode 100644 rest/preview/model_preview_sync_service_sync_map_sync_map_item_read_response.go create mode 100644 rest/preview/model_preview_sync_service_sync_map_sync_map_permission.go create mode 100644 rest/preview/model_preview_sync_service_sync_map_sync_map_permission_read_response.go create mode 100644 rest/preview/model_preview_trusted_comms_branded_channel.go create mode 100644 rest/preview/model_preview_trusted_comms_branded_channel_channel.go create mode 100644 rest/preview/model_preview_trusted_comms_brands_information.go create mode 100644 rest/preview/model_preview_trusted_comms_cps.go create mode 100644 rest/preview/model_preview_trusted_comms_current_call.go create mode 100644 rest/preview/model_preview_understand_assistant.go create mode 100644 rest/preview/model_preview_understand_assistant_assistant_fallback_actions.go create mode 100644 rest/preview/model_preview_understand_assistant_assistant_initiation_actions.go create mode 100644 rest/preview/model_preview_understand_assistant_dialogue.go create mode 100644 rest/preview/model_preview_understand_assistant_field_type.go create mode 100644 rest/preview/model_preview_understand_assistant_field_type_field_value.go create mode 100644 rest/preview/model_preview_understand_assistant_field_type_field_value_read_response.go create mode 100644 rest/preview/model_preview_understand_assistant_field_type_read_response.go create mode 100644 rest/preview/model_preview_understand_assistant_model_build.go create mode 100644 rest/preview/model_preview_understand_assistant_model_build_read_response.go create mode 100644 rest/preview/model_preview_understand_assistant_query.go create mode 100644 rest/preview/model_preview_understand_assistant_query_read_response.go create mode 100644 rest/preview/model_preview_understand_assistant_read_response.go create mode 100644 rest/preview/model_preview_understand_assistant_style_sheet.go create mode 100644 rest/preview/model_preview_understand_assistant_task.go create mode 100644 rest/preview/model_preview_understand_assistant_task_field.go create mode 100644 rest/preview/model_preview_understand_assistant_task_field_read_response.go create mode 100644 rest/preview/model_preview_understand_assistant_task_read_response.go create mode 100644 rest/preview/model_preview_understand_assistant_task_sample.go create mode 100644 rest/preview/model_preview_understand_assistant_task_sample_read_response.go create mode 100644 rest/preview/model_preview_understand_assistant_task_task_actions.go create mode 100644 rest/preview/model_preview_understand_assistant_task_task_statistics.go create mode 100644 rest/preview/model_preview_wireless_command.go create mode 100644 rest/preview/model_preview_wireless_command_read_response.go create mode 100644 rest/preview/model_preview_wireless_rate_plan.go create mode 100644 rest/preview/model_preview_wireless_rate_plan_read_response.go create mode 100644 rest/preview/model_preview_wireless_sim.go create mode 100644 rest/preview/model_preview_wireless_sim_read_response.go create mode 100644 rest/preview/model_preview_wireless_sim_usage.go create mode 100644 rest/preview/model_update_assistant_fallback_actions_request.go create mode 100644 rest/preview/model_update_assistant_initiation_actions_request.go create mode 100644 rest/preview/model_update_assistant_request.go create mode 100644 rest/preview/model_update_authorization_document_request.go create mode 100644 rest/preview/model_update_certificate_request.go create mode 100644 rest/preview/model_update_deployment_request.go create mode 100644 rest/preview/model_update_device_request.go create mode 100644 rest/preview/model_update_document_permission_request.go create mode 100644 rest/preview/model_update_document_request.go create mode 100644 rest/preview/model_update_export_configuration_request.go create mode 100644 rest/preview/model_update_field_type_request.go create mode 100644 rest/preview/model_update_fleet_request.go create mode 100644 rest/preview/model_update_hosted_number_order_request.go create mode 100644 rest/preview/model_update_installed_add_on_extension_request.go create mode 100644 rest/preview/model_update_installed_add_on_request.go create mode 100644 rest/preview/model_update_key_request.go create mode 100644 rest/preview/model_update_model_build_request.go create mode 100644 rest/preview/model_update_query_request.go create mode 100644 rest/preview/model_update_rate_plan_request.go create mode 100644 rest/preview/model_update_sample_request.go create mode 100644 rest/preview/model_update_service_request.go create mode 100644 rest/preview/model_update_sim_request.go create mode 100644 rest/preview/model_update_style_sheet_request.go create mode 100644 rest/preview/model_update_sync_list_item_request.go create mode 100644 rest/preview/model_update_sync_list_permission_request.go create mode 100644 rest/preview/model_update_sync_map_item_request.go create mode 100644 rest/preview/model_update_sync_map_permission_request.go create mode 100644 rest/preview/model_update_task_actions_request.go create mode 100644 rest/preview/model_update_task_request.go create mode 100644 rest/preview/response.go create mode 100644 rest/pricing/v1/.openapi-generator-ignore create mode 100644 rest/pricing/v1/.openapi-generator/VERSION create mode 100644 rest/pricing/v1/README.md create mode 100644 rest/pricing/v1/api_default.go create mode 100644 rest/pricing/v1/docs/DefaultApi.md create mode 100644 rest/pricing/v1/docs/PricingV1Messaging.md create mode 100644 rest/pricing/v1/docs/PricingV1MessagingMessagingCountry.md create mode 100644 rest/pricing/v1/docs/PricingV1MessagingMessagingCountryInstance.md create mode 100644 rest/pricing/v1/docs/PricingV1MessagingMessagingCountryInstanceInboundSmsPrices.md create mode 100644 rest/pricing/v1/docs/PricingV1MessagingMessagingCountryInstanceOutboundSmsPrices.md create mode 100644 rest/pricing/v1/docs/PricingV1MessagingMessagingCountryReadResponse.md create mode 100644 rest/pricing/v1/docs/PricingV1MessagingMessagingCountryReadResponseMeta.md create mode 100644 rest/pricing/v1/docs/PricingV1PhoneNumber.md create mode 100644 rest/pricing/v1/docs/PricingV1PhoneNumberPhoneNumberCountry.md create mode 100644 rest/pricing/v1/docs/PricingV1PhoneNumberPhoneNumberCountryInstance.md create mode 100644 rest/pricing/v1/docs/PricingV1PhoneNumberPhoneNumberCountryReadResponse.md create mode 100644 rest/pricing/v1/docs/PricingV1Voice.md create mode 100644 rest/pricing/v1/docs/PricingV1VoiceVoiceCountry.md create mode 100644 rest/pricing/v1/docs/PricingV1VoiceVoiceCountryInstance.md create mode 100644 rest/pricing/v1/docs/PricingV1VoiceVoiceCountryInstanceOutboundPrefixPrices.md create mode 100644 rest/pricing/v1/docs/PricingV1VoiceVoiceCountryReadResponse.md create mode 100644 rest/pricing/v1/docs/PricingV1VoiceVoiceNumber.md create mode 100644 rest/pricing/v1/docs/PricingV1VoiceVoiceNumberOutboundCallPrice.md create mode 100644 rest/pricing/v1/model_pricing_v1_messaging.go create mode 100644 rest/pricing/v1/model_pricing_v1_messaging_messaging_country.go create mode 100644 rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance.go create mode 100644 rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance_inbound_sms_prices.go create mode 100644 rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance_outbound_sms_prices.go create mode 100644 rest/pricing/v1/model_pricing_v1_messaging_messaging_country_read_response.go create mode 100644 rest/pricing/v1/model_pricing_v1_messaging_messaging_country_read_response_meta.go create mode 100644 rest/pricing/v1/model_pricing_v1_phone_number.go create mode 100644 rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country.go create mode 100644 rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country_instance.go create mode 100644 rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country_read_response.go create mode 100644 rest/pricing/v1/model_pricing_v1_voice.go create mode 100644 rest/pricing/v1/model_pricing_v1_voice_voice_country.go create mode 100644 rest/pricing/v1/model_pricing_v1_voice_voice_country_instance.go create mode 100644 rest/pricing/v1/model_pricing_v1_voice_voice_country_instance_outbound_prefix_prices.go create mode 100644 rest/pricing/v1/model_pricing_v1_voice_voice_country_read_response.go create mode 100644 rest/pricing/v1/model_pricing_v1_voice_voice_number.go create mode 100644 rest/pricing/v1/model_pricing_v1_voice_voice_number_outbound_call_price.go create mode 100644 rest/pricing/v1/response.go create mode 100644 rest/pricing/v2/.openapi-generator-ignore create mode 100644 rest/pricing/v2/.openapi-generator/VERSION create mode 100644 rest/pricing/v2/README.md create mode 100644 rest/pricing/v2/api_default.go create mode 100644 rest/pricing/v2/docs/DefaultApi.md create mode 100644 rest/pricing/v2/docs/PricingV2Voice.md create mode 100644 rest/pricing/v2/docs/PricingV2VoiceVoiceCountry.md create mode 100644 rest/pricing/v2/docs/PricingV2VoiceVoiceCountryInstance.md create mode 100644 rest/pricing/v2/docs/PricingV2VoiceVoiceCountryInstanceInboundCallPrices.md create mode 100644 rest/pricing/v2/docs/PricingV2VoiceVoiceCountryInstanceOutboundPrefixPrices.md create mode 100644 rest/pricing/v2/docs/PricingV2VoiceVoiceCountryReadResponse.md create mode 100644 rest/pricing/v2/docs/PricingV2VoiceVoiceCountryReadResponseMeta.md create mode 100644 rest/pricing/v2/docs/PricingV2VoiceVoiceNumber.md create mode 100644 rest/pricing/v2/docs/PricingV2VoiceVoiceNumberOutboundCallPrices.md create mode 100644 rest/pricing/v2/model_pricing_v2_voice.go create mode 100644 rest/pricing/v2/model_pricing_v2_voice_voice_country.go create mode 100644 rest/pricing/v2/model_pricing_v2_voice_voice_country_instance.go create mode 100644 rest/pricing/v2/model_pricing_v2_voice_voice_country_instance_inbound_call_prices.go create mode 100644 rest/pricing/v2/model_pricing_v2_voice_voice_country_instance_outbound_prefix_prices.go create mode 100644 rest/pricing/v2/model_pricing_v2_voice_voice_country_read_response.go create mode 100644 rest/pricing/v2/model_pricing_v2_voice_voice_country_read_response_meta.go create mode 100644 rest/pricing/v2/model_pricing_v2_voice_voice_number.go create mode 100644 rest/pricing/v2/model_pricing_v2_voice_voice_number_outbound_call_prices.go create mode 100644 rest/pricing/v2/response.go create mode 100644 rest/proxy/v1/.openapi-generator-ignore create mode 100644 rest/proxy/v1/.openapi-generator/VERSION create mode 100644 rest/proxy/v1/README.md create mode 100644 rest/proxy/v1/api_default.go create mode 100644 rest/proxy/v1/docs/CreateMessageInteractionRequest.md create mode 100644 rest/proxy/v1/docs/CreateParticipantRequest.md create mode 100644 rest/proxy/v1/docs/CreatePhoneNumberRequest.md create mode 100644 rest/proxy/v1/docs/CreateServiceRequest.md create mode 100644 rest/proxy/v1/docs/CreateSessionRequest.md create mode 100644 rest/proxy/v1/docs/CreateShortCodeRequest.md create mode 100644 rest/proxy/v1/docs/DefaultApi.md create mode 100644 rest/proxy/v1/docs/ProxyV1Service.md create mode 100644 rest/proxy/v1/docs/ProxyV1ServicePhoneNumber.md create mode 100644 rest/proxy/v1/docs/ProxyV1ServicePhoneNumberReadResponse.md create mode 100644 rest/proxy/v1/docs/ProxyV1ServiceReadResponse.md create mode 100644 rest/proxy/v1/docs/ProxyV1ServiceReadResponseMeta.md create mode 100644 rest/proxy/v1/docs/ProxyV1ServiceSession.md create mode 100644 rest/proxy/v1/docs/ProxyV1ServiceSessionInteraction.md create mode 100644 rest/proxy/v1/docs/ProxyV1ServiceSessionInteractionReadResponse.md create mode 100644 rest/proxy/v1/docs/ProxyV1ServiceSessionParticipant.md create mode 100644 rest/proxy/v1/docs/ProxyV1ServiceSessionParticipantMessageInteraction.md create mode 100644 rest/proxy/v1/docs/ProxyV1ServiceSessionParticipantMessageInteractionReadResponse.md create mode 100644 rest/proxy/v1/docs/ProxyV1ServiceSessionParticipantReadResponse.md create mode 100644 rest/proxy/v1/docs/ProxyV1ServiceSessionReadResponse.md create mode 100644 rest/proxy/v1/docs/ProxyV1ServiceShortCode.md create mode 100644 rest/proxy/v1/docs/ProxyV1ServiceShortCodeReadResponse.md create mode 100644 rest/proxy/v1/docs/UpdatePhoneNumberRequest.md create mode 100644 rest/proxy/v1/docs/UpdateServiceRequest.md create mode 100644 rest/proxy/v1/docs/UpdateSessionRequest.md create mode 100644 rest/proxy/v1/docs/UpdateShortCodeRequest.md create mode 100644 rest/proxy/v1/model_create_message_interaction_request.go create mode 100644 rest/proxy/v1/model_create_participant_request.go create mode 100644 rest/proxy/v1/model_create_phone_number_request.go create mode 100644 rest/proxy/v1/model_create_service_request.go create mode 100644 rest/proxy/v1/model_create_session_request.go create mode 100644 rest/proxy/v1/model_create_short_code_request.go create mode 100644 rest/proxy/v1/model_proxy_v1_service.go create mode 100644 rest/proxy/v1/model_proxy_v1_service_phone_number.go create mode 100644 rest/proxy/v1/model_proxy_v1_service_phone_number_read_response.go create mode 100644 rest/proxy/v1/model_proxy_v1_service_read_response.go create mode 100644 rest/proxy/v1/model_proxy_v1_service_read_response_meta.go create mode 100644 rest/proxy/v1/model_proxy_v1_service_session.go create mode 100644 rest/proxy/v1/model_proxy_v1_service_session_interaction.go create mode 100644 rest/proxy/v1/model_proxy_v1_service_session_interaction_read_response.go create mode 100644 rest/proxy/v1/model_proxy_v1_service_session_participant.go create mode 100644 rest/proxy/v1/model_proxy_v1_service_session_participant_message_interaction.go create mode 100644 rest/proxy/v1/model_proxy_v1_service_session_participant_message_interaction_read_response.go create mode 100644 rest/proxy/v1/model_proxy_v1_service_session_participant_read_response.go create mode 100644 rest/proxy/v1/model_proxy_v1_service_session_read_response.go create mode 100644 rest/proxy/v1/model_proxy_v1_service_short_code.go create mode 100644 rest/proxy/v1/model_proxy_v1_service_short_code_read_response.go create mode 100644 rest/proxy/v1/model_update_phone_number_request.go create mode 100644 rest/proxy/v1/model_update_service_request.go create mode 100644 rest/proxy/v1/model_update_session_request.go create mode 100644 rest/proxy/v1/model_update_short_code_request.go create mode 100644 rest/proxy/v1/response.go create mode 100644 rest/serverless/v1/.openapi-generator-ignore create mode 100644 rest/serverless/v1/.openapi-generator/VERSION create mode 100644 rest/serverless/v1/README.md create mode 100644 rest/serverless/v1/api_default.go create mode 100644 rest/serverless/v1/docs/CreateAssetRequest.md create mode 100644 rest/serverless/v1/docs/CreateBuildRequest.md create mode 100644 rest/serverless/v1/docs/CreateDeploymentRequest.md create mode 100644 rest/serverless/v1/docs/CreateEnvironmentRequest.md create mode 100644 rest/serverless/v1/docs/CreateFunctionRequest.md create mode 100644 rest/serverless/v1/docs/CreateServiceRequest.md create mode 100644 rest/serverless/v1/docs/CreateVariableRequest.md create mode 100644 rest/serverless/v1/docs/DefaultApi.md create mode 100644 rest/serverless/v1/docs/ServerlessV1Service.md create mode 100644 rest/serverless/v1/docs/ServerlessV1ServiceAsset.md create mode 100644 rest/serverless/v1/docs/ServerlessV1ServiceAssetAssetVersion.md create mode 100644 rest/serverless/v1/docs/ServerlessV1ServiceAssetAssetVersionReadResponse.md create mode 100644 rest/serverless/v1/docs/ServerlessV1ServiceAssetReadResponse.md create mode 100644 rest/serverless/v1/docs/ServerlessV1ServiceBuild.md create mode 100644 rest/serverless/v1/docs/ServerlessV1ServiceBuildBuildStatus.md create mode 100644 rest/serverless/v1/docs/ServerlessV1ServiceBuildReadResponse.md create mode 100644 rest/serverless/v1/docs/ServerlessV1ServiceEnvironment.md create mode 100644 rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentDeployment.md create mode 100644 rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentDeploymentReadResponse.md create mode 100644 rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentLog.md create mode 100644 rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentLogReadResponse.md create mode 100644 rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentReadResponse.md create mode 100644 rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentVariable.md create mode 100644 rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentVariableReadResponse.md create mode 100644 rest/serverless/v1/docs/ServerlessV1ServiceFunction.md create mode 100644 rest/serverless/v1/docs/ServerlessV1ServiceFunctionFunctionVersion.md create mode 100644 rest/serverless/v1/docs/ServerlessV1ServiceFunctionFunctionVersionFunctionVersionContent.md create mode 100644 rest/serverless/v1/docs/ServerlessV1ServiceFunctionFunctionVersionReadResponse.md create mode 100644 rest/serverless/v1/docs/ServerlessV1ServiceFunctionReadResponse.md create mode 100644 rest/serverless/v1/docs/ServerlessV1ServiceReadResponse.md create mode 100644 rest/serverless/v1/docs/ServerlessV1ServiceReadResponseMeta.md create mode 100644 rest/serverless/v1/docs/UpdateAssetRequest.md create mode 100644 rest/serverless/v1/docs/UpdateFunctionRequest.md create mode 100644 rest/serverless/v1/docs/UpdateServiceRequest.md create mode 100644 rest/serverless/v1/docs/UpdateVariableRequest.md create mode 100644 rest/serverless/v1/model_create_asset_request.go create mode 100644 rest/serverless/v1/model_create_build_request.go create mode 100644 rest/serverless/v1/model_create_deployment_request.go create mode 100644 rest/serverless/v1/model_create_environment_request.go create mode 100644 rest/serverless/v1/model_create_function_request.go create mode 100644 rest/serverless/v1/model_create_service_request.go create mode 100644 rest/serverless/v1/model_create_variable_request.go create mode 100644 rest/serverless/v1/model_serverless_v1_service.go create mode 100644 rest/serverless/v1/model_serverless_v1_service_asset.go create mode 100644 rest/serverless/v1/model_serverless_v1_service_asset_asset_version.go create mode 100644 rest/serverless/v1/model_serverless_v1_service_asset_asset_version_read_response.go create mode 100644 rest/serverless/v1/model_serverless_v1_service_asset_read_response.go create mode 100644 rest/serverless/v1/model_serverless_v1_service_build.go create mode 100644 rest/serverless/v1/model_serverless_v1_service_build_build_status.go create mode 100644 rest/serverless/v1/model_serverless_v1_service_build_read_response.go create mode 100644 rest/serverless/v1/model_serverless_v1_service_environment.go create mode 100644 rest/serverless/v1/model_serverless_v1_service_environment_deployment.go create mode 100644 rest/serverless/v1/model_serverless_v1_service_environment_deployment_read_response.go create mode 100644 rest/serverless/v1/model_serverless_v1_service_environment_log.go create mode 100644 rest/serverless/v1/model_serverless_v1_service_environment_log_read_response.go create mode 100644 rest/serverless/v1/model_serverless_v1_service_environment_read_response.go create mode 100644 rest/serverless/v1/model_serverless_v1_service_environment_variable.go create mode 100644 rest/serverless/v1/model_serverless_v1_service_environment_variable_read_response.go create mode 100644 rest/serverless/v1/model_serverless_v1_service_function.go create mode 100644 rest/serverless/v1/model_serverless_v1_service_function_function_version.go create mode 100644 rest/serverless/v1/model_serverless_v1_service_function_function_version_function_version_content.go create mode 100644 rest/serverless/v1/model_serverless_v1_service_function_function_version_read_response.go create mode 100644 rest/serverless/v1/model_serverless_v1_service_function_read_response.go create mode 100644 rest/serverless/v1/model_serverless_v1_service_read_response.go create mode 100644 rest/serverless/v1/model_serverless_v1_service_read_response_meta.go create mode 100644 rest/serverless/v1/model_update_asset_request.go create mode 100644 rest/serverless/v1/model_update_function_request.go create mode 100644 rest/serverless/v1/model_update_service_request.go create mode 100644 rest/serverless/v1/model_update_variable_request.go create mode 100644 rest/serverless/v1/response.go create mode 100644 rest/studio/v1/.openapi-generator-ignore create mode 100644 rest/studio/v1/.openapi-generator/VERSION create mode 100644 rest/studio/v1/README.md create mode 100644 rest/studio/v1/api_default.go create mode 100644 rest/studio/v1/docs/CreateEngagementRequest.md create mode 100644 rest/studio/v1/docs/CreateExecutionRequest.md create mode 100644 rest/studio/v1/docs/DefaultApi.md create mode 100644 rest/studio/v1/docs/StudioV1Flow.md create mode 100644 rest/studio/v1/docs/StudioV1FlowEngagement.md create mode 100644 rest/studio/v1/docs/StudioV1FlowEngagementEngagementContext.md create mode 100644 rest/studio/v1/docs/StudioV1FlowEngagementReadResponse.md create mode 100644 rest/studio/v1/docs/StudioV1FlowEngagementStep.md create mode 100644 rest/studio/v1/docs/StudioV1FlowEngagementStepReadResponse.md create mode 100644 rest/studio/v1/docs/StudioV1FlowEngagementStepStepContext.md create mode 100644 rest/studio/v1/docs/StudioV1FlowExecution.md create mode 100644 rest/studio/v1/docs/StudioV1FlowExecutionExecutionContext.md create mode 100644 rest/studio/v1/docs/StudioV1FlowExecutionExecutionStep.md create mode 100644 rest/studio/v1/docs/StudioV1FlowExecutionExecutionStepExecutionStepContext.md create mode 100644 rest/studio/v1/docs/StudioV1FlowExecutionExecutionStepReadResponse.md create mode 100644 rest/studio/v1/docs/StudioV1FlowExecutionReadResponse.md create mode 100644 rest/studio/v1/docs/StudioV1FlowReadResponse.md create mode 100644 rest/studio/v1/docs/StudioV1FlowReadResponseMeta.md create mode 100644 rest/studio/v1/docs/UpdateExecutionRequest.md create mode 100644 rest/studio/v1/model_create_engagement_request.go create mode 100644 rest/studio/v1/model_create_execution_request.go create mode 100644 rest/studio/v1/model_studio_v1_flow.go create mode 100644 rest/studio/v1/model_studio_v1_flow_engagement.go create mode 100644 rest/studio/v1/model_studio_v1_flow_engagement_engagement_context.go create mode 100644 rest/studio/v1/model_studio_v1_flow_engagement_read_response.go create mode 100644 rest/studio/v1/model_studio_v1_flow_engagement_step.go create mode 100644 rest/studio/v1/model_studio_v1_flow_engagement_step_read_response.go create mode 100644 rest/studio/v1/model_studio_v1_flow_engagement_step_step_context.go create mode 100644 rest/studio/v1/model_studio_v1_flow_execution.go create mode 100644 rest/studio/v1/model_studio_v1_flow_execution_execution_context.go create mode 100644 rest/studio/v1/model_studio_v1_flow_execution_execution_step.go create mode 100644 rest/studio/v1/model_studio_v1_flow_execution_execution_step_execution_step_context.go create mode 100644 rest/studio/v1/model_studio_v1_flow_execution_execution_step_read_response.go create mode 100644 rest/studio/v1/model_studio_v1_flow_execution_read_response.go create mode 100644 rest/studio/v1/model_studio_v1_flow_read_response.go create mode 100644 rest/studio/v1/model_studio_v1_flow_read_response_meta.go create mode 100644 rest/studio/v1/model_update_execution_request.go create mode 100644 rest/studio/v1/response.go create mode 100644 rest/studio/v2/.openapi-generator-ignore create mode 100644 rest/studio/v2/.openapi-generator/VERSION create mode 100644 rest/studio/v2/README.md create mode 100644 rest/studio/v2/api_default.go create mode 100644 rest/studio/v2/docs/CreateExecutionRequest.md create mode 100644 rest/studio/v2/docs/CreateFlowRequest.md create mode 100644 rest/studio/v2/docs/DefaultApi.md create mode 100644 rest/studio/v2/docs/StudioV2Flow.md create mode 100644 rest/studio/v2/docs/StudioV2FlowExecution.md create mode 100644 rest/studio/v2/docs/StudioV2FlowExecutionExecutionContext.md create mode 100644 rest/studio/v2/docs/StudioV2FlowExecutionExecutionStep.md create mode 100644 rest/studio/v2/docs/StudioV2FlowExecutionExecutionStepExecutionStepContext.md create mode 100644 rest/studio/v2/docs/StudioV2FlowExecutionExecutionStepReadResponse.md create mode 100644 rest/studio/v2/docs/StudioV2FlowExecutionReadResponse.md create mode 100644 rest/studio/v2/docs/StudioV2FlowFlowRevision.md create mode 100644 rest/studio/v2/docs/StudioV2FlowFlowRevisionReadResponse.md create mode 100644 rest/studio/v2/docs/StudioV2FlowReadResponse.md create mode 100644 rest/studio/v2/docs/StudioV2FlowReadResponseMeta.md create mode 100644 rest/studio/v2/docs/StudioV2FlowTestUser.md create mode 100644 rest/studio/v2/docs/StudioV2FlowValidate.md create mode 100644 rest/studio/v2/docs/UpdateExecutionRequest.md create mode 100644 rest/studio/v2/docs/UpdateFlowRequest.md create mode 100644 rest/studio/v2/docs/UpdateFlowValidateRequest.md create mode 100644 rest/studio/v2/docs/UpdateTestUserRequest.md create mode 100644 rest/studio/v2/model_create_execution_request.go create mode 100644 rest/studio/v2/model_create_flow_request.go create mode 100644 rest/studio/v2/model_studio_v2_flow.go create mode 100644 rest/studio/v2/model_studio_v2_flow_execution.go create mode 100644 rest/studio/v2/model_studio_v2_flow_execution_execution_context.go create mode 100644 rest/studio/v2/model_studio_v2_flow_execution_execution_step.go create mode 100644 rest/studio/v2/model_studio_v2_flow_execution_execution_step_execution_step_context.go create mode 100644 rest/studio/v2/model_studio_v2_flow_execution_execution_step_read_response.go create mode 100644 rest/studio/v2/model_studio_v2_flow_execution_read_response.go create mode 100644 rest/studio/v2/model_studio_v2_flow_flow_revision.go create mode 100644 rest/studio/v2/model_studio_v2_flow_flow_revision_read_response.go create mode 100644 rest/studio/v2/model_studio_v2_flow_read_response.go create mode 100644 rest/studio/v2/model_studio_v2_flow_read_response_meta.go create mode 100644 rest/studio/v2/model_studio_v2_flow_test_user.go create mode 100644 rest/studio/v2/model_studio_v2_flow_validate.go create mode 100644 rest/studio/v2/model_update_execution_request.go create mode 100644 rest/studio/v2/model_update_flow_request.go create mode 100644 rest/studio/v2/model_update_flow_validate_request.go create mode 100644 rest/studio/v2/model_update_test_user_request.go create mode 100644 rest/studio/v2/response.go create mode 100644 rest/supersim/v1/.openapi-generator-ignore create mode 100644 rest/supersim/v1/.openapi-generator/VERSION create mode 100644 rest/supersim/v1/README.md create mode 100644 rest/supersim/v1/api_default.go create mode 100644 rest/supersim/v1/docs/CreateCommandRequest.md create mode 100644 rest/supersim/v1/docs/CreateFleetRequest.md create mode 100644 rest/supersim/v1/docs/CreateNetworkAccessProfileNetworkRequest.md create mode 100644 rest/supersim/v1/docs/CreateNetworkAccessProfileRequest.md create mode 100644 rest/supersim/v1/docs/DefaultApi.md create mode 100644 rest/supersim/v1/docs/SupersimV1Command.md create mode 100644 rest/supersim/v1/docs/SupersimV1CommandReadResponse.md create mode 100644 rest/supersim/v1/docs/SupersimV1CommandReadResponseMeta.md create mode 100644 rest/supersim/v1/docs/SupersimV1Fleet.md create mode 100644 rest/supersim/v1/docs/SupersimV1FleetReadResponse.md create mode 100644 rest/supersim/v1/docs/SupersimV1Network.md create mode 100644 rest/supersim/v1/docs/SupersimV1NetworkAccessProfile.md create mode 100644 rest/supersim/v1/docs/SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork.md create mode 100644 rest/supersim/v1/docs/SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse.md create mode 100644 rest/supersim/v1/docs/SupersimV1NetworkAccessProfileReadResponse.md create mode 100644 rest/supersim/v1/docs/SupersimV1NetworkReadResponse.md create mode 100644 rest/supersim/v1/docs/SupersimV1Sim.md create mode 100644 rest/supersim/v1/docs/SupersimV1SimReadResponse.md create mode 100644 rest/supersim/v1/docs/SupersimV1UsageRecord.md create mode 100644 rest/supersim/v1/docs/SupersimV1UsageRecordReadResponse.md create mode 100644 rest/supersim/v1/docs/UpdateFleetRequest.md create mode 100644 rest/supersim/v1/docs/UpdateNetworkAccessProfileRequest.md create mode 100644 rest/supersim/v1/docs/UpdateSimRequest.md create mode 100644 rest/supersim/v1/model_create_command_request.go create mode 100644 rest/supersim/v1/model_create_fleet_request.go create mode 100644 rest/supersim/v1/model_create_network_access_profile_network_request.go create mode 100644 rest/supersim/v1/model_create_network_access_profile_request.go create mode 100644 rest/supersim/v1/model_supersim_v1_command.go create mode 100644 rest/supersim/v1/model_supersim_v1_command_read_response.go create mode 100644 rest/supersim/v1/model_supersim_v1_command_read_response_meta.go create mode 100644 rest/supersim/v1/model_supersim_v1_fleet.go create mode 100644 rest/supersim/v1/model_supersim_v1_fleet_read_response.go create mode 100644 rest/supersim/v1/model_supersim_v1_network.go create mode 100644 rest/supersim/v1/model_supersim_v1_network_access_profile.go create mode 100644 rest/supersim/v1/model_supersim_v1_network_access_profile_network_access_profile_network.go create mode 100644 rest/supersim/v1/model_supersim_v1_network_access_profile_network_access_profile_network_read_response.go create mode 100644 rest/supersim/v1/model_supersim_v1_network_access_profile_read_response.go create mode 100644 rest/supersim/v1/model_supersim_v1_network_read_response.go create mode 100644 rest/supersim/v1/model_supersim_v1_sim.go create mode 100644 rest/supersim/v1/model_supersim_v1_sim_read_response.go create mode 100644 rest/supersim/v1/model_supersim_v1_usage_record.go create mode 100644 rest/supersim/v1/model_supersim_v1_usage_record_read_response.go create mode 100644 rest/supersim/v1/model_update_fleet_request.go create mode 100644 rest/supersim/v1/model_update_network_access_profile_request.go create mode 100644 rest/supersim/v1/model_update_sim_request.go create mode 100644 rest/supersim/v1/response.go create mode 100644 rest/sync/v1/.openapi-generator-ignore create mode 100644 rest/sync/v1/.openapi-generator/VERSION create mode 100644 rest/sync/v1/README.md create mode 100644 rest/sync/v1/api_default.go create mode 100644 rest/sync/v1/docs/CreateDocumentRequest.md create mode 100644 rest/sync/v1/docs/CreateServiceRequest.md create mode 100644 rest/sync/v1/docs/CreateStreamMessageRequest.md create mode 100644 rest/sync/v1/docs/CreateSyncListItemRequest.md create mode 100644 rest/sync/v1/docs/CreateSyncListRequest.md create mode 100644 rest/sync/v1/docs/CreateSyncMapItemRequest.md create mode 100644 rest/sync/v1/docs/CreateSyncMapRequest.md create mode 100644 rest/sync/v1/docs/CreateSyncStreamRequest.md create mode 100644 rest/sync/v1/docs/DefaultApi.md create mode 100644 rest/sync/v1/docs/SyncV1Service.md create mode 100644 rest/sync/v1/docs/SyncV1ServiceDocument.md create mode 100644 rest/sync/v1/docs/SyncV1ServiceDocumentDocumentPermission.md create mode 100644 rest/sync/v1/docs/SyncV1ServiceDocumentDocumentPermissionReadResponse.md create mode 100644 rest/sync/v1/docs/SyncV1ServiceDocumentReadResponse.md create mode 100644 rest/sync/v1/docs/SyncV1ServiceReadResponse.md create mode 100644 rest/sync/v1/docs/SyncV1ServiceReadResponseMeta.md create mode 100644 rest/sync/v1/docs/SyncV1ServiceSyncList.md create mode 100644 rest/sync/v1/docs/SyncV1ServiceSyncListReadResponse.md create mode 100644 rest/sync/v1/docs/SyncV1ServiceSyncListSyncListItem.md create mode 100644 rest/sync/v1/docs/SyncV1ServiceSyncListSyncListItemReadResponse.md create mode 100644 rest/sync/v1/docs/SyncV1ServiceSyncListSyncListPermission.md create mode 100644 rest/sync/v1/docs/SyncV1ServiceSyncListSyncListPermissionReadResponse.md create mode 100644 rest/sync/v1/docs/SyncV1ServiceSyncMap.md create mode 100644 rest/sync/v1/docs/SyncV1ServiceSyncMapReadResponse.md create mode 100644 rest/sync/v1/docs/SyncV1ServiceSyncMapSyncMapItem.md create mode 100644 rest/sync/v1/docs/SyncV1ServiceSyncMapSyncMapItemReadResponse.md create mode 100644 rest/sync/v1/docs/SyncV1ServiceSyncMapSyncMapPermission.md create mode 100644 rest/sync/v1/docs/SyncV1ServiceSyncMapSyncMapPermissionReadResponse.md create mode 100644 rest/sync/v1/docs/SyncV1ServiceSyncStream.md create mode 100644 rest/sync/v1/docs/SyncV1ServiceSyncStreamReadResponse.md create mode 100644 rest/sync/v1/docs/SyncV1ServiceSyncStreamStreamMessage.md create mode 100644 rest/sync/v1/docs/UpdateDocumentPermissionRequest.md create mode 100644 rest/sync/v1/docs/UpdateDocumentRequest.md create mode 100644 rest/sync/v1/docs/UpdateServiceRequest.md create mode 100644 rest/sync/v1/docs/UpdateSyncListItemRequest.md create mode 100644 rest/sync/v1/docs/UpdateSyncListPermissionRequest.md create mode 100644 rest/sync/v1/docs/UpdateSyncListRequest.md create mode 100644 rest/sync/v1/docs/UpdateSyncMapItemRequest.md create mode 100644 rest/sync/v1/docs/UpdateSyncMapPermissionRequest.md create mode 100644 rest/sync/v1/docs/UpdateSyncMapRequest.md create mode 100644 rest/sync/v1/docs/UpdateSyncStreamRequest.md create mode 100644 rest/sync/v1/model_create_document_request.go create mode 100644 rest/sync/v1/model_create_service_request.go create mode 100644 rest/sync/v1/model_create_stream_message_request.go create mode 100644 rest/sync/v1/model_create_sync_list_item_request.go create mode 100644 rest/sync/v1/model_create_sync_list_request.go create mode 100644 rest/sync/v1/model_create_sync_map_item_request.go create mode 100644 rest/sync/v1/model_create_sync_map_request.go create mode 100644 rest/sync/v1/model_create_sync_stream_request.go create mode 100644 rest/sync/v1/model_sync_v1_service.go create mode 100644 rest/sync/v1/model_sync_v1_service_document.go create mode 100644 rest/sync/v1/model_sync_v1_service_document_document_permission.go create mode 100644 rest/sync/v1/model_sync_v1_service_document_document_permission_read_response.go create mode 100644 rest/sync/v1/model_sync_v1_service_document_read_response.go create mode 100644 rest/sync/v1/model_sync_v1_service_read_response.go create mode 100644 rest/sync/v1/model_sync_v1_service_read_response_meta.go create mode 100644 rest/sync/v1/model_sync_v1_service_sync_list.go create mode 100644 rest/sync/v1/model_sync_v1_service_sync_list_read_response.go create mode 100644 rest/sync/v1/model_sync_v1_service_sync_list_sync_list_item.go create mode 100644 rest/sync/v1/model_sync_v1_service_sync_list_sync_list_item_read_response.go create mode 100644 rest/sync/v1/model_sync_v1_service_sync_list_sync_list_permission.go create mode 100644 rest/sync/v1/model_sync_v1_service_sync_list_sync_list_permission_read_response.go create mode 100644 rest/sync/v1/model_sync_v1_service_sync_map.go create mode 100644 rest/sync/v1/model_sync_v1_service_sync_map_read_response.go create mode 100644 rest/sync/v1/model_sync_v1_service_sync_map_sync_map_item.go create mode 100644 rest/sync/v1/model_sync_v1_service_sync_map_sync_map_item_read_response.go create mode 100644 rest/sync/v1/model_sync_v1_service_sync_map_sync_map_permission.go create mode 100644 rest/sync/v1/model_sync_v1_service_sync_map_sync_map_permission_read_response.go create mode 100644 rest/sync/v1/model_sync_v1_service_sync_stream.go create mode 100644 rest/sync/v1/model_sync_v1_service_sync_stream_read_response.go create mode 100644 rest/sync/v1/model_sync_v1_service_sync_stream_stream_message.go create mode 100644 rest/sync/v1/model_update_document_permission_request.go create mode 100644 rest/sync/v1/model_update_document_request.go create mode 100644 rest/sync/v1/model_update_service_request.go create mode 100644 rest/sync/v1/model_update_sync_list_item_request.go create mode 100644 rest/sync/v1/model_update_sync_list_permission_request.go create mode 100644 rest/sync/v1/model_update_sync_list_request.go create mode 100644 rest/sync/v1/model_update_sync_map_item_request.go create mode 100644 rest/sync/v1/model_update_sync_map_permission_request.go create mode 100644 rest/sync/v1/model_update_sync_map_request.go create mode 100644 rest/sync/v1/model_update_sync_stream_request.go create mode 100644 rest/sync/v1/response.go create mode 100644 rest/taskrouter/v1/.openapi-generator-ignore create mode 100644 rest/taskrouter/v1/.openapi-generator/VERSION create mode 100644 rest/taskrouter/v1/README.md create mode 100644 rest/taskrouter/v1/api_default.go create mode 100644 rest/taskrouter/v1/docs/CreateActivityRequest.md create mode 100644 rest/taskrouter/v1/docs/CreateTaskChannelRequest.md create mode 100644 rest/taskrouter/v1/docs/CreateTaskQueueRequest.md create mode 100644 rest/taskrouter/v1/docs/CreateTaskRequest.md create mode 100644 rest/taskrouter/v1/docs/CreateWorkerRequest.md create mode 100644 rest/taskrouter/v1/docs/CreateWorkflowRequest.md create mode 100644 rest/taskrouter/v1/docs/CreateWorkspaceRequest.md create mode 100644 rest/taskrouter/v1/docs/DefaultApi.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1Workspace.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceActivity.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceActivityReadResponse.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceEvent.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceEventReadResponse.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceReadResponse.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceReadResponseMeta.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTask.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskChannel.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskChannelReadResponse.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskQueue.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskQueueReadResponse.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskQueueTaskQueueCumulativeStatistics.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskQueueTaskQueueRealTimeStatistics.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskQueueTaskQueueStatistics.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskQueueTaskQueuesStatistics.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskReadResponse.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskTaskReservation.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskTaskReservationReadResponse.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorker.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerReadResponse.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkerChannel.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkerInstanceStatistics.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkerReservation.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkerStatistics.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkersCumulativeStatistics.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkersRealTimeStatistics.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkflow.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkflowReadResponse.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkflowWorkflowCumulativeStatistics.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkflowWorkflowRealTimeStatistics.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkflowWorkflowStatistics.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkspaceCumulativeStatistics.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkspaceRealTimeStatistics.md create mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkspaceStatistics.md create mode 100644 rest/taskrouter/v1/docs/UpdateActivityRequest.md create mode 100644 rest/taskrouter/v1/docs/UpdateTaskChannelRequest.md create mode 100644 rest/taskrouter/v1/docs/UpdateTaskQueueRequest.md create mode 100644 rest/taskrouter/v1/docs/UpdateTaskRequest.md create mode 100644 rest/taskrouter/v1/docs/UpdateTaskReservationRequest.md create mode 100644 rest/taskrouter/v1/docs/UpdateWorkerChannelRequest.md create mode 100644 rest/taskrouter/v1/docs/UpdateWorkerRequest.md create mode 100644 rest/taskrouter/v1/docs/UpdateWorkerReservationRequest.md create mode 100644 rest/taskrouter/v1/docs/UpdateWorkflowRequest.md create mode 100644 rest/taskrouter/v1/docs/UpdateWorkspaceRequest.md create mode 100644 rest/taskrouter/v1/model_create_activity_request.go create mode 100644 rest/taskrouter/v1/model_create_task_channel_request.go create mode 100644 rest/taskrouter/v1/model_create_task_queue_request.go create mode 100644 rest/taskrouter/v1/model_create_task_request.go create mode 100644 rest/taskrouter/v1/model_create_worker_request.go create mode 100644 rest/taskrouter/v1/model_create_workflow_request.go create mode 100644 rest/taskrouter/v1/model_create_workspace_request.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_activity.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_activity_read_response.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_event.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_event_read_response.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_read_response.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_read_response_meta.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_task.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_task_channel.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_task_channel_read_response.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_read_response.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queue_cumulative_statistics.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queue_real_time_statistics.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queue_statistics.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queues_statistics.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queues_statistics_read_response.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_task_read_response.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_task_task_reservation.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_task_task_reservation_read_response.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_worker.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_read_response.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_channel.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_channel_read_response.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_instance_statistics.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_reservation.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_reservation_read_response.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_statistics.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_workers_cumulative_statistics.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_workers_real_time_statistics.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_read_response.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_workflow_cumulative_statistics.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_workflow_real_time_statistics.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_workflow_statistics.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_workspace_cumulative_statistics.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_workspace_real_time_statistics.go create mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_workspace_statistics.go create mode 100644 rest/taskrouter/v1/model_update_activity_request.go create mode 100644 rest/taskrouter/v1/model_update_task_channel_request.go create mode 100644 rest/taskrouter/v1/model_update_task_queue_request.go create mode 100644 rest/taskrouter/v1/model_update_task_request.go create mode 100644 rest/taskrouter/v1/model_update_task_reservation_request.go create mode 100644 rest/taskrouter/v1/model_update_worker_channel_request.go create mode 100644 rest/taskrouter/v1/model_update_worker_request.go create mode 100644 rest/taskrouter/v1/model_update_worker_reservation_request.go create mode 100644 rest/taskrouter/v1/model_update_workflow_request.go create mode 100644 rest/taskrouter/v1/model_update_workspace_request.go create mode 100644 rest/taskrouter/v1/response.go create mode 100644 rest/trunking/v1/.openapi-generator-ignore create mode 100644 rest/trunking/v1/.openapi-generator/VERSION create mode 100644 rest/trunking/v1/README.md create mode 100644 rest/trunking/v1/api_default.go create mode 100644 rest/trunking/v1/docs/CreateCredentialListRequest.md create mode 100644 rest/trunking/v1/docs/CreateIpAccessControlListRequest.md create mode 100644 rest/trunking/v1/docs/CreateOriginationUrlRequest.md create mode 100644 rest/trunking/v1/docs/CreatePhoneNumberRequest.md create mode 100644 rest/trunking/v1/docs/CreateTrunkRequest.md create mode 100644 rest/trunking/v1/docs/DefaultApi.md create mode 100644 rest/trunking/v1/docs/TrunkingV1Trunk.md create mode 100644 rest/trunking/v1/docs/TrunkingV1TrunkCredentialList.md create mode 100644 rest/trunking/v1/docs/TrunkingV1TrunkCredentialListReadResponse.md create mode 100644 rest/trunking/v1/docs/TrunkingV1TrunkIpAccessControlList.md create mode 100644 rest/trunking/v1/docs/TrunkingV1TrunkIpAccessControlListReadResponse.md create mode 100644 rest/trunking/v1/docs/TrunkingV1TrunkOriginationUrl.md create mode 100644 rest/trunking/v1/docs/TrunkingV1TrunkOriginationUrlReadResponse.md create mode 100644 rest/trunking/v1/docs/TrunkingV1TrunkPhoneNumber.md create mode 100644 rest/trunking/v1/docs/TrunkingV1TrunkPhoneNumberReadResponse.md create mode 100644 rest/trunking/v1/docs/TrunkingV1TrunkReadResponse.md create mode 100644 rest/trunking/v1/docs/TrunkingV1TrunkReadResponseMeta.md create mode 100644 rest/trunking/v1/docs/TrunkingV1TrunkRecording.md create mode 100644 rest/trunking/v1/docs/UpdateOriginationUrlRequest.md create mode 100644 rest/trunking/v1/docs/UpdateRecordingRequest.md create mode 100644 rest/trunking/v1/docs/UpdateTrunkRequest.md create mode 100644 rest/trunking/v1/model_create_credential_list_request.go create mode 100644 rest/trunking/v1/model_create_ip_access_control_list_request.go create mode 100644 rest/trunking/v1/model_create_origination_url_request.go create mode 100644 rest/trunking/v1/model_create_phone_number_request.go create mode 100644 rest/trunking/v1/model_create_trunk_request.go create mode 100644 rest/trunking/v1/model_trunking_v1_trunk.go create mode 100644 rest/trunking/v1/model_trunking_v1_trunk_credential_list.go create mode 100644 rest/trunking/v1/model_trunking_v1_trunk_credential_list_read_response.go create mode 100644 rest/trunking/v1/model_trunking_v1_trunk_ip_access_control_list.go create mode 100644 rest/trunking/v1/model_trunking_v1_trunk_ip_access_control_list_read_response.go create mode 100644 rest/trunking/v1/model_trunking_v1_trunk_origination_url.go create mode 100644 rest/trunking/v1/model_trunking_v1_trunk_origination_url_read_response.go create mode 100644 rest/trunking/v1/model_trunking_v1_trunk_phone_number.go create mode 100644 rest/trunking/v1/model_trunking_v1_trunk_phone_number_read_response.go create mode 100644 rest/trunking/v1/model_trunking_v1_trunk_read_response.go create mode 100644 rest/trunking/v1/model_trunking_v1_trunk_read_response_meta.go create mode 100644 rest/trunking/v1/model_trunking_v1_trunk_recording.go create mode 100644 rest/trunking/v1/model_update_origination_url_request.go create mode 100644 rest/trunking/v1/model_update_recording_request.go create mode 100644 rest/trunking/v1/model_update_trunk_request.go create mode 100644 rest/trunking/v1/response.go create mode 100644 rest/verify/v2/.openapi-generator-ignore create mode 100644 rest/verify/v2/.openapi-generator/VERSION create mode 100644 rest/verify/v2/README.md create mode 100644 rest/verify/v2/api_default.go create mode 100644 rest/verify/v2/docs/CreateAccessTokenRequest.md create mode 100644 rest/verify/v2/docs/CreateBucketRequest.md create mode 100644 rest/verify/v2/docs/CreateChallengeRequest.md create mode 100644 rest/verify/v2/docs/CreateEntityRequest.md create mode 100644 rest/verify/v2/docs/CreateFactorRequest.md create mode 100644 rest/verify/v2/docs/CreateMessagingConfigurationRequest.md create mode 100644 rest/verify/v2/docs/CreateRateLimitRequest.md create mode 100644 rest/verify/v2/docs/CreateServiceRequest.md create mode 100644 rest/verify/v2/docs/CreateVerificationCheckRequest.md create mode 100644 rest/verify/v2/docs/CreateVerificationRequest.md create mode 100644 rest/verify/v2/docs/CreateWebhookRequest.md create mode 100644 rest/verify/v2/docs/DefaultApi.md create mode 100644 rest/verify/v2/docs/UpdateBucketRequest.md create mode 100644 rest/verify/v2/docs/UpdateChallengeRequest.md create mode 100644 rest/verify/v2/docs/UpdateFactorRequest.md create mode 100644 rest/verify/v2/docs/UpdateMessagingConfigurationRequest.md create mode 100644 rest/verify/v2/docs/UpdateRateLimitRequest.md create mode 100644 rest/verify/v2/docs/UpdateServiceRequest.md create mode 100644 rest/verify/v2/docs/UpdateVerificationRequest.md create mode 100644 rest/verify/v2/docs/UpdateWebhookRequest.md create mode 100644 rest/verify/v2/docs/VerifyV2Form.md create mode 100644 rest/verify/v2/docs/VerifyV2Service.md create mode 100644 rest/verify/v2/docs/VerifyV2ServiceAccessToken.md create mode 100644 rest/verify/v2/docs/VerifyV2ServiceEntity.md create mode 100644 rest/verify/v2/docs/VerifyV2ServiceEntityChallenge.md create mode 100644 rest/verify/v2/docs/VerifyV2ServiceEntityChallengeReadResponse.md create mode 100644 rest/verify/v2/docs/VerifyV2ServiceEntityFactor.md create mode 100644 rest/verify/v2/docs/VerifyV2ServiceEntityFactorReadResponse.md create mode 100644 rest/verify/v2/docs/VerifyV2ServiceEntityReadResponse.md create mode 100644 rest/verify/v2/docs/VerifyV2ServiceMessagingConfiguration.md create mode 100644 rest/verify/v2/docs/VerifyV2ServiceMessagingConfigurationReadResponse.md create mode 100644 rest/verify/v2/docs/VerifyV2ServiceRateLimit.md create mode 100644 rest/verify/v2/docs/VerifyV2ServiceRateLimitBucket.md create mode 100644 rest/verify/v2/docs/VerifyV2ServiceRateLimitBucketReadResponse.md create mode 100644 rest/verify/v2/docs/VerifyV2ServiceRateLimitReadResponse.md create mode 100644 rest/verify/v2/docs/VerifyV2ServiceReadResponse.md create mode 100644 rest/verify/v2/docs/VerifyV2ServiceReadResponseMeta.md create mode 100644 rest/verify/v2/docs/VerifyV2ServiceVerification.md create mode 100644 rest/verify/v2/docs/VerifyV2ServiceVerificationCheck.md create mode 100644 rest/verify/v2/docs/VerifyV2ServiceWebhook.md create mode 100644 rest/verify/v2/docs/VerifyV2ServiceWebhookReadResponse.md create mode 100644 rest/verify/v2/model_create_access_token_request.go create mode 100644 rest/verify/v2/model_create_bucket_request.go create mode 100644 rest/verify/v2/model_create_challenge_request.go create mode 100644 rest/verify/v2/model_create_entity_request.go create mode 100644 rest/verify/v2/model_create_factor_request.go create mode 100644 rest/verify/v2/model_create_messaging_configuration_request.go create mode 100644 rest/verify/v2/model_create_rate_limit_request.go create mode 100644 rest/verify/v2/model_create_service_request.go create mode 100644 rest/verify/v2/model_create_verification_check_request.go create mode 100644 rest/verify/v2/model_create_verification_request.go create mode 100644 rest/verify/v2/model_create_webhook_request.go create mode 100644 rest/verify/v2/model_update_bucket_request.go create mode 100644 rest/verify/v2/model_update_challenge_request.go create mode 100644 rest/verify/v2/model_update_factor_request.go create mode 100644 rest/verify/v2/model_update_messaging_configuration_request.go create mode 100644 rest/verify/v2/model_update_rate_limit_request.go create mode 100644 rest/verify/v2/model_update_service_request.go create mode 100644 rest/verify/v2/model_update_verification_request.go create mode 100644 rest/verify/v2/model_update_webhook_request.go create mode 100644 rest/verify/v2/model_verify_v2_form.go create mode 100644 rest/verify/v2/model_verify_v2_service.go create mode 100644 rest/verify/v2/model_verify_v2_service_access_token.go create mode 100644 rest/verify/v2/model_verify_v2_service_entity.go create mode 100644 rest/verify/v2/model_verify_v2_service_entity_challenge.go create mode 100644 rest/verify/v2/model_verify_v2_service_entity_challenge_read_response.go create mode 100644 rest/verify/v2/model_verify_v2_service_entity_factor.go create mode 100644 rest/verify/v2/model_verify_v2_service_entity_factor_read_response.go create mode 100644 rest/verify/v2/model_verify_v2_service_entity_read_response.go create mode 100644 rest/verify/v2/model_verify_v2_service_messaging_configuration.go create mode 100644 rest/verify/v2/model_verify_v2_service_messaging_configuration_read_response.go create mode 100644 rest/verify/v2/model_verify_v2_service_rate_limit.go create mode 100644 rest/verify/v2/model_verify_v2_service_rate_limit_bucket.go create mode 100644 rest/verify/v2/model_verify_v2_service_rate_limit_bucket_read_response.go create mode 100644 rest/verify/v2/model_verify_v2_service_rate_limit_read_response.go create mode 100644 rest/verify/v2/model_verify_v2_service_read_response.go create mode 100644 rest/verify/v2/model_verify_v2_service_read_response_meta.go create mode 100644 rest/verify/v2/model_verify_v2_service_verification.go create mode 100644 rest/verify/v2/model_verify_v2_service_verification_check.go create mode 100644 rest/verify/v2/model_verify_v2_service_webhook.go create mode 100644 rest/verify/v2/model_verify_v2_service_webhook_read_response.go create mode 100644 rest/verify/v2/response.go create mode 100644 rest/video/v1/.openapi-generator-ignore create mode 100644 rest/video/v1/.openapi-generator/VERSION create mode 100644 rest/video/v1/README.md create mode 100644 rest/video/v1/api_default.go create mode 100644 rest/video/v1/docs/CreateCompositionHookRequest.md create mode 100644 rest/video/v1/docs/CreateCompositionRequest.md create mode 100644 rest/video/v1/docs/CreateCompositionSettingsRequest.md create mode 100644 rest/video/v1/docs/CreateRecordingSettingsRequest.md create mode 100644 rest/video/v1/docs/CreateRoomRequest.md create mode 100644 rest/video/v1/docs/DefaultApi.md create mode 100644 rest/video/v1/docs/UpdateCompositionHookRequest.md create mode 100644 rest/video/v1/docs/UpdateRoomParticipantRequest.md create mode 100644 rest/video/v1/docs/UpdateRoomParticipantSubscribeRuleRequest.md create mode 100644 rest/video/v1/docs/UpdateRoomRecordingRuleRequest.md create mode 100644 rest/video/v1/docs/UpdateRoomRequest.md create mode 100644 rest/video/v1/docs/VideoV1Composition.md create mode 100644 rest/video/v1/docs/VideoV1CompositionHook.md create mode 100644 rest/video/v1/docs/VideoV1CompositionHookReadResponse.md create mode 100644 rest/video/v1/docs/VideoV1CompositionHookReadResponseMeta.md create mode 100644 rest/video/v1/docs/VideoV1CompositionReadResponse.md create mode 100644 rest/video/v1/docs/VideoV1CompositionSettings.md create mode 100644 rest/video/v1/docs/VideoV1Recording.md create mode 100644 rest/video/v1/docs/VideoV1RecordingReadResponse.md create mode 100644 rest/video/v1/docs/VideoV1RecordingSettings.md create mode 100644 rest/video/v1/docs/VideoV1Room.md create mode 100644 rest/video/v1/docs/VideoV1RoomReadResponse.md create mode 100644 rest/video/v1/docs/VideoV1RoomRoomParticipant.md create mode 100644 rest/video/v1/docs/VideoV1RoomRoomParticipantReadResponse.md create mode 100644 rest/video/v1/docs/VideoV1RoomRoomParticipantRoomParticipantPublishedTrack.md create mode 100644 rest/video/v1/docs/VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse.md create mode 100644 rest/video/v1/docs/VideoV1RoomRoomParticipantRoomParticipantSubscribeRule.md create mode 100644 rest/video/v1/docs/VideoV1RoomRoomParticipantRoomParticipantSubscribedTrack.md create mode 100644 rest/video/v1/docs/VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse.md create mode 100644 rest/video/v1/docs/VideoV1RoomRoomRecording.md create mode 100644 rest/video/v1/docs/VideoV1RoomRoomRecordingReadResponse.md create mode 100644 rest/video/v1/docs/VideoV1RoomRoomRecordingRule.md create mode 100644 rest/video/v1/model_create_composition_hook_request.go create mode 100644 rest/video/v1/model_create_composition_request.go create mode 100644 rest/video/v1/model_create_composition_settings_request.go create mode 100644 rest/video/v1/model_create_recording_settings_request.go create mode 100644 rest/video/v1/model_create_room_request.go create mode 100644 rest/video/v1/model_update_composition_hook_request.go create mode 100644 rest/video/v1/model_update_room_participant_request.go create mode 100644 rest/video/v1/model_update_room_participant_subscribe_rule_request.go create mode 100644 rest/video/v1/model_update_room_recording_rule_request.go create mode 100644 rest/video/v1/model_update_room_request.go create mode 100644 rest/video/v1/model_video_v1_composition.go create mode 100644 rest/video/v1/model_video_v1_composition_hook.go create mode 100644 rest/video/v1/model_video_v1_composition_hook_read_response.go create mode 100644 rest/video/v1/model_video_v1_composition_hook_read_response_meta.go create mode 100644 rest/video/v1/model_video_v1_composition_read_response.go create mode 100644 rest/video/v1/model_video_v1_composition_settings.go create mode 100644 rest/video/v1/model_video_v1_recording.go create mode 100644 rest/video/v1/model_video_v1_recording_read_response.go create mode 100644 rest/video/v1/model_video_v1_recording_settings.go create mode 100644 rest/video/v1/model_video_v1_room.go create mode 100644 rest/video/v1/model_video_v1_room_read_response.go create mode 100644 rest/video/v1/model_video_v1_room_room_participant.go create mode 100644 rest/video/v1/model_video_v1_room_room_participant_read_response.go create mode 100644 rest/video/v1/model_video_v1_room_room_participant_room_participant_published_track.go create mode 100644 rest/video/v1/model_video_v1_room_room_participant_room_participant_published_track_read_response.go create mode 100644 rest/video/v1/model_video_v1_room_room_participant_room_participant_subscribe_rule.go create mode 100644 rest/video/v1/model_video_v1_room_room_participant_room_participant_subscribed_track.go create mode 100644 rest/video/v1/model_video_v1_room_room_participant_room_participant_subscribed_track_read_response.go create mode 100644 rest/video/v1/model_video_v1_room_room_recording.go create mode 100644 rest/video/v1/model_video_v1_room_room_recording_read_response.go create mode 100644 rest/video/v1/model_video_v1_room_room_recording_rule.go create mode 100644 rest/video/v1/response.go create mode 100644 rest/voice/v1/.openapi-generator-ignore create mode 100644 rest/voice/v1/.openapi-generator/VERSION create mode 100644 rest/voice/v1/README.md create mode 100644 rest/voice/v1/api_default.go create mode 100644 rest/voice/v1/docs/CreateByocTrunkRequest.md create mode 100644 rest/voice/v1/docs/CreateConnectionPolicyRequest.md create mode 100644 rest/voice/v1/docs/CreateConnectionPolicyTargetRequest.md create mode 100644 rest/voice/v1/docs/CreateDialingPermissionsCountryBulkUpdateRequest.md create mode 100644 rest/voice/v1/docs/CreateIpRecordRequest.md create mode 100644 rest/voice/v1/docs/CreateSourceIpMappingRequest.md create mode 100644 rest/voice/v1/docs/DefaultApi.md create mode 100644 rest/voice/v1/docs/UpdateByocTrunkRequest.md create mode 100644 rest/voice/v1/docs/UpdateConnectionPolicyRequest.md create mode 100644 rest/voice/v1/docs/UpdateConnectionPolicyTargetRequest.md create mode 100644 rest/voice/v1/docs/UpdateDialingPermissionsSettingsRequest.md create mode 100644 rest/voice/v1/docs/UpdateIpRecordRequest.md create mode 100644 rest/voice/v1/docs/UpdateSourceIpMappingRequest.md create mode 100644 rest/voice/v1/docs/VoiceV1ByocTrunk.md create mode 100644 rest/voice/v1/docs/VoiceV1ByocTrunkReadResponse.md create mode 100644 rest/voice/v1/docs/VoiceV1ByocTrunkReadResponseMeta.md create mode 100644 rest/voice/v1/docs/VoiceV1ConnectionPolicy.md create mode 100644 rest/voice/v1/docs/VoiceV1ConnectionPolicyConnectionPolicyTarget.md create mode 100644 rest/voice/v1/docs/VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse.md create mode 100644 rest/voice/v1/docs/VoiceV1ConnectionPolicyReadResponse.md create mode 100644 rest/voice/v1/docs/VoiceV1DialingPermissionsDialingPermissionsCountry.md create mode 100644 rest/voice/v1/docs/VoiceV1DialingPermissionsDialingPermissionsCountryBulkUpdate.md create mode 100644 rest/voice/v1/docs/VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixes.md create mode 100644 rest/voice/v1/docs/VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse.md create mode 100644 rest/voice/v1/docs/VoiceV1DialingPermissionsDialingPermissionsCountryInstance.md create mode 100644 rest/voice/v1/docs/VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse.md create mode 100644 rest/voice/v1/docs/VoiceV1DialingPermissionsDialingPermissionsSettings.md create mode 100644 rest/voice/v1/docs/VoiceV1IpRecord.md create mode 100644 rest/voice/v1/docs/VoiceV1IpRecordReadResponse.md create mode 100644 rest/voice/v1/docs/VoiceV1SourceIpMapping.md create mode 100644 rest/voice/v1/docs/VoiceV1SourceIpMappingReadResponse.md create mode 100644 rest/voice/v1/model_create_byoc_trunk_request.go create mode 100644 rest/voice/v1/model_create_connection_policy_request.go create mode 100644 rest/voice/v1/model_create_connection_policy_target_request.go create mode 100644 rest/voice/v1/model_create_dialing_permissions_country_bulk_update_request.go create mode 100644 rest/voice/v1/model_create_ip_record_request.go create mode 100644 rest/voice/v1/model_create_source_ip_mapping_request.go create mode 100644 rest/voice/v1/model_update_byoc_trunk_request.go create mode 100644 rest/voice/v1/model_update_connection_policy_request.go create mode 100644 rest/voice/v1/model_update_connection_policy_target_request.go create mode 100644 rest/voice/v1/model_update_dialing_permissions_settings_request.go create mode 100644 rest/voice/v1/model_update_ip_record_request.go create mode 100644 rest/voice/v1/model_update_source_ip_mapping_request.go create mode 100644 rest/voice/v1/model_voice_v1_byoc_trunk.go create mode 100644 rest/voice/v1/model_voice_v1_byoc_trunk_read_response.go create mode 100644 rest/voice/v1/model_voice_v1_byoc_trunk_read_response_meta.go create mode 100644 rest/voice/v1/model_voice_v1_connection_policy.go create mode 100644 rest/voice/v1/model_voice_v1_connection_policy_connection_policy_target.go create mode 100644 rest/voice/v1/model_voice_v1_connection_policy_connection_policy_target_read_response.go create mode 100644 rest/voice/v1/model_voice_v1_connection_policy_read_response.go create mode 100644 rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country.go create mode 100644 rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_bulk_update.go create mode 100644 rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_dialing_permissions_hrs_prefixes.go create mode 100644 rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_dialing_permissions_hrs_prefixes_read_response.go create mode 100644 rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_instance.go create mode 100644 rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_read_response.go create mode 100644 rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_settings.go create mode 100644 rest/voice/v1/model_voice_v1_ip_record.go create mode 100644 rest/voice/v1/model_voice_v1_ip_record_read_response.go create mode 100644 rest/voice/v1/model_voice_v1_source_ip_mapping.go create mode 100644 rest/voice/v1/model_voice_v1_source_ip_mapping_read_response.go create mode 100644 rest/voice/v1/response.go create mode 100644 rest/wireless/v1/.openapi-generator-ignore create mode 100644 rest/wireless/v1/.openapi-generator/VERSION create mode 100644 rest/wireless/v1/README.md create mode 100644 rest/wireless/v1/api_default.go create mode 100644 rest/wireless/v1/docs/CreateCommandRequest.md create mode 100644 rest/wireless/v1/docs/CreateRatePlanRequest.md create mode 100644 rest/wireless/v1/docs/DefaultApi.md create mode 100644 rest/wireless/v1/docs/UpdateRatePlanRequest.md create mode 100644 rest/wireless/v1/docs/UpdateSimRequest.md create mode 100644 rest/wireless/v1/docs/WirelessV1AccountUsageRecord.md create mode 100644 rest/wireless/v1/docs/WirelessV1AccountUsageRecordReadResponse.md create mode 100644 rest/wireless/v1/docs/WirelessV1Command.md create mode 100644 rest/wireless/v1/docs/WirelessV1CommandReadResponse.md create mode 100644 rest/wireless/v1/docs/WirelessV1CommandReadResponseMeta.md create mode 100644 rest/wireless/v1/docs/WirelessV1RatePlan.md create mode 100644 rest/wireless/v1/docs/WirelessV1RatePlanReadResponse.md create mode 100644 rest/wireless/v1/docs/WirelessV1Sim.md create mode 100644 rest/wireless/v1/docs/WirelessV1SimDataSession.md create mode 100644 rest/wireless/v1/docs/WirelessV1SimDataSessionReadResponse.md create mode 100644 rest/wireless/v1/docs/WirelessV1SimReadResponse.md create mode 100644 rest/wireless/v1/docs/WirelessV1SimUsageRecord.md create mode 100644 rest/wireless/v1/docs/WirelessV1SimUsageRecordReadResponse.md create mode 100644 rest/wireless/v1/model_create_command_request.go create mode 100644 rest/wireless/v1/model_create_rate_plan_request.go create mode 100644 rest/wireless/v1/model_update_rate_plan_request.go create mode 100644 rest/wireless/v1/model_update_sim_request.go create mode 100644 rest/wireless/v1/model_wireless_v1_account_usage_record.go create mode 100644 rest/wireless/v1/model_wireless_v1_account_usage_record_read_response.go create mode 100644 rest/wireless/v1/model_wireless_v1_command.go create mode 100644 rest/wireless/v1/model_wireless_v1_command_read_response.go create mode 100644 rest/wireless/v1/model_wireless_v1_command_read_response_meta.go create mode 100644 rest/wireless/v1/model_wireless_v1_rate_plan.go create mode 100644 rest/wireless/v1/model_wireless_v1_rate_plan_read_response.go create mode 100644 rest/wireless/v1/model_wireless_v1_sim.go create mode 100644 rest/wireless/v1/model_wireless_v1_sim_data_session.go create mode 100644 rest/wireless/v1/model_wireless_v1_sim_data_session_read_response.go create mode 100644 rest/wireless/v1/model_wireless_v1_sim_read_response.go create mode 100644 rest/wireless/v1/model_wireless_v1_sim_usage_record.go create mode 100644 rest/wireless/v1/model_wireless_v1_sim_usage_record_read_response.go create mode 100644 rest/wireless/v1/response.go diff --git a/.gitignore b/.gitignore index e8323249a..9acd6677f 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ *.dll *.so *.dylib +.idea # Test binary, built with `go test -c` *.test diff --git a/rest/accounts/v1/.openapi-generator-ignore b/rest/accounts/v1/.openapi-generator-ignore new file mode 100644 index 000000000..7484ee590 --- /dev/null +++ b/rest/accounts/v1/.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/rest/accounts/v1/.openapi-generator/VERSION b/rest/accounts/v1/.openapi-generator/VERSION new file mode 100644 index 000000000..ecedc98d1 --- /dev/null +++ b/rest/accounts/v1/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.3.1 \ No newline at end of file diff --git a/rest/accounts/v1/README.md b/rest/accounts/v1/README.md new file mode 100644 index 000000000..125c7580c --- /dev/null +++ b/rest/accounts/v1/README.md @@ -0,0 +1,86 @@ +# Go API client for openapi + +This is the public Twilio REST API. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 5.15.0 +- Package version: 1.0.0 +- Build package: com.twilio.oai.TwilioGoGenerator +For more information, please visit [https://support.twilio.com](https://support.twilio.com) + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import "./openapi" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**CreateCredentialAws**](docs/DefaultApi.md#createcredentialaws) | **Post** /v1/Credentials/AWS | +*DefaultApi* | [**CreateCredentialPublicKey**](docs/DefaultApi.md#createcredentialpublickey) | **Post** /v1/Credentials/PublicKeys | +*DefaultApi* | [**CreateSecondaryAuthToken**](docs/DefaultApi.md#createsecondaryauthtoken) | **Post** /v1/AuthTokens/Secondary | +*DefaultApi* | [**DeleteCredentialAws**](docs/DefaultApi.md#deletecredentialaws) | **Delete** /v1/Credentials/AWS/{Sid} | +*DefaultApi* | [**DeleteCredentialPublicKey**](docs/DefaultApi.md#deletecredentialpublickey) | **Delete** /v1/Credentials/PublicKeys/{Sid} | +*DefaultApi* | [**DeleteSecondaryAuthToken**](docs/DefaultApi.md#deletesecondaryauthtoken) | **Delete** /v1/AuthTokens/Secondary | +*DefaultApi* | [**FetchCredentialAws**](docs/DefaultApi.md#fetchcredentialaws) | **Get** /v1/Credentials/AWS/{Sid} | +*DefaultApi* | [**FetchCredentialPublicKey**](docs/DefaultApi.md#fetchcredentialpublickey) | **Get** /v1/Credentials/PublicKeys/{Sid} | +*DefaultApi* | [**ListCredentialAws**](docs/DefaultApi.md#listcredentialaws) | **Get** /v1/Credentials/AWS | +*DefaultApi* | [**ListCredentialPublicKey**](docs/DefaultApi.md#listcredentialpublickey) | **Get** /v1/Credentials/PublicKeys | +*DefaultApi* | [**UpdateAuthTokenPromotion**](docs/DefaultApi.md#updateauthtokenpromotion) | **Post** /v1/AuthTokens/Promote | +*DefaultApi* | [**UpdateCredentialAws**](docs/DefaultApi.md#updatecredentialaws) | **Post** /v1/Credentials/AWS/{Sid} | +*DefaultApi* | [**UpdateCredentialPublicKey**](docs/DefaultApi.md#updatecredentialpublickey) | **Post** /v1/Credentials/PublicKeys/{Sid} | + + +## Documentation For Models + + - [AccountsV1AuthTokenPromotion](docs/AccountsV1AuthTokenPromotion.md) + - [AccountsV1CredentialCredentialAws](docs/AccountsV1CredentialCredentialAws.md) + - [AccountsV1CredentialCredentialAwsReadResponse](docs/AccountsV1CredentialCredentialAwsReadResponse.md) + - [AccountsV1CredentialCredentialAwsReadResponseMeta](docs/AccountsV1CredentialCredentialAwsReadResponseMeta.md) + - [AccountsV1CredentialCredentialPublicKey](docs/AccountsV1CredentialCredentialPublicKey.md) + - [AccountsV1CredentialCredentialPublicKeyReadResponse](docs/AccountsV1CredentialCredentialPublicKeyReadResponse.md) + - [AccountsV1SecondaryAuthToken](docs/AccountsV1SecondaryAuthToken.md) + - [CreateCredentialAwsRequest](docs/CreateCredentialAwsRequest.md) + - [CreateCredentialPublicKeyRequest](docs/CreateCredentialPublicKeyRequest.md) + - [UpdateCredentialAwsRequest](docs/UpdateCredentialAwsRequest.md) + - [UpdateCredentialPublicKeyRequest](docs/UpdateCredentialPublicKeyRequest.md) + + +## Documentation For Authorization + + + +## accountSid_authToken + +- **Type**: HTTP basic authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ + UserName: "username", + Password: "password", +}) +r, err := client.Service.Operation(auth, args) +``` + + +## Author + +support@twilio.com + diff --git a/rest/accounts/v1/api_default.go b/rest/accounts/v1/api_default.go new file mode 100644 index 000000000..d98af6680 --- /dev/null +++ b/rest/accounts/v1/api_default.go @@ -0,0 +1,464 @@ +/* + * Twilio - Accounts + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "" +) + +type DefaultApiService struct { + baseURL string + client *twilio.Client +} + +func NewDefaultApiService(client *twilio.Client) *DefaultApiService { + return &DefaultApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} +// CreateCredentialAwsParams Optional parameters for the method 'CreateCredentialAws' +type CreateCredentialAwsParams struct { + AccountSid *string `json:"AccountSid,omitempty"` + Credentials *string `json:"Credentials,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +CreateCredentialAws Method for CreateCredentialAws +Create a new AWS Credential + * @param optional nil or *CreateCredentialAwsOpts - Optional Parameters: + * @param "AccountSid" (string) - The SID of the Subaccount that this Credential should be associated with. Must be a valid Subaccount of the account issuing the request. + * @param "Credentials" (string) - A string that contains the AWS access credentials in the format `:`. For example, `AKIAIOSFODNN7EXAMPLE:wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY` + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. +@return AccountsV1CredentialCredentialAws +*/ +func (c *DefaultApiService) CreateCredentialAws(params *CreateCredentialAwsParams) (*AccountsV1CredentialCredentialAws, error) { + path := "/v1/Credentials/AWS" + + data := url.Values{} + headers := 0 + + if params != nil && params.AccountSid != nil { + data.Set("AccountSid", *params.AccountSid) + } + if params != nil && params.Credentials != nil { + data.Set("Credentials", *params.Credentials) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AccountsV1CredentialCredentialAws{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateCredentialPublicKeyParams Optional parameters for the method 'CreateCredentialPublicKey' +type CreateCredentialPublicKeyParams struct { + AccountSid *string `json:"AccountSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PublicKey *string `json:"PublicKey,omitempty"` +} + +/* +CreateCredentialPublicKey Method for CreateCredentialPublicKey +Create a new Public Key Credential + * @param optional nil or *CreateCredentialPublicKeyOpts - Optional Parameters: + * @param "AccountSid" (string) - The SID of the Subaccount that this Credential should be associated with. Must be a valid Subaccount of the account issuing the request + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. + * @param "PublicKey" (string) - A URL encoded representation of the public key. For example, `-----BEGIN PUBLIC KEY-----MIIBIjANB.pa9xQIDAQAB-----END PUBLIC KEY-----` +@return AccountsV1CredentialCredentialPublicKey +*/ +func (c *DefaultApiService) CreateCredentialPublicKey(params *CreateCredentialPublicKeyParams) (*AccountsV1CredentialCredentialPublicKey, error) { + path := "/v1/Credentials/PublicKeys" + + data := url.Values{} + headers := 0 + + if params != nil && params.AccountSid != nil { + data.Set("AccountSid", *params.AccountSid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PublicKey != nil { + data.Set("PublicKey", *params.PublicKey) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AccountsV1CredentialCredentialPublicKey{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +CreateSecondaryAuthToken Method for CreateSecondaryAuthToken +Create a new secondary Auth Token +@return AccountsV1SecondaryAuthToken +*/ +func (c *DefaultApiService) CreateSecondaryAuthToken() (*AccountsV1SecondaryAuthToken, error) { + path := "/v1/AuthTokens/Secondary" + + data := 0 + headers := 0 + + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AccountsV1SecondaryAuthToken{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +DeleteCredentialAws Method for DeleteCredentialAws +Delete a Credential from your account + * @param sid The Twilio-provided string that uniquely identifies the AWS resource to delete. +*/ +func (c *DefaultApiService) DeleteCredentialAws(sid string) (error) { + path := "/v1/Credentials/AWS/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteCredentialPublicKey Method for DeleteCredentialPublicKey +Delete a Credential from your account + * @param sid The Twilio-provided string that uniquely identifies the PublicKey resource to delete. +*/ +func (c *DefaultApiService) DeleteCredentialPublicKey(sid string) (error) { + path := "/v1/Credentials/PublicKeys/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteSecondaryAuthToken Method for DeleteSecondaryAuthToken +Delete the secondary Auth Token from your account +*/ +func (c *DefaultApiService) DeleteSecondaryAuthToken() (error) { + path := "/v1/AuthTokens/Secondary" + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +FetchCredentialAws Method for FetchCredentialAws +Fetch the AWS credentials specified by the provided Credential Sid + * @param sid The Twilio-provided string that uniquely identifies the AWS resource to fetch. +@return AccountsV1CredentialCredentialAws +*/ +func (c *DefaultApiService) FetchCredentialAws(sid string) (*AccountsV1CredentialCredentialAws, error) { + path := "/v1/Credentials/AWS/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AccountsV1CredentialCredentialAws{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchCredentialPublicKey Method for FetchCredentialPublicKey +Fetch the public key specified by the provided Credential Sid + * @param sid The Twilio-provided string that uniquely identifies the PublicKey resource to fetch. +@return AccountsV1CredentialCredentialPublicKey +*/ +func (c *DefaultApiService) FetchCredentialPublicKey(sid string) (*AccountsV1CredentialCredentialPublicKey, error) { + path := "/v1/Credentials/PublicKeys/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AccountsV1CredentialCredentialPublicKey{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListCredentialAwsParams Optional parameters for the method 'ListCredentialAws' +type ListCredentialAwsParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListCredentialAws Method for ListCredentialAws +Retrieves a collection of AWS Credentials belonging to the account used to make the request + * @param optional nil or *ListCredentialAwsOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return AccountsV1CredentialCredentialAwsReadResponse +*/ +func (c *DefaultApiService) ListCredentialAws(params *ListCredentialAwsParams) (*AccountsV1CredentialCredentialAwsReadResponse, error) { + path := "/v1/Credentials/AWS" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AccountsV1CredentialCredentialAwsReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListCredentialPublicKeyParams Optional parameters for the method 'ListCredentialPublicKey' +type ListCredentialPublicKeyParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListCredentialPublicKey Method for ListCredentialPublicKey +Retrieves a collection of Public Key Credentials belonging to the account used to make the request + * @param optional nil or *ListCredentialPublicKeyOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return AccountsV1CredentialCredentialPublicKeyReadResponse +*/ +func (c *DefaultApiService) ListCredentialPublicKey(params *ListCredentialPublicKeyParams) (*AccountsV1CredentialCredentialPublicKeyReadResponse, error) { + path := "/v1/Credentials/PublicKeys" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AccountsV1CredentialCredentialPublicKeyReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +UpdateAuthTokenPromotion Method for UpdateAuthTokenPromotion +Promote the secondary Auth Token to primary. After promoting the new token, all requests to Twilio using your old primary Auth Token will result in an error. +@return AccountsV1AuthTokenPromotion +*/ +func (c *DefaultApiService) UpdateAuthTokenPromotion() (*AccountsV1AuthTokenPromotion, error) { + path := "/v1/AuthTokens/Promote" + + data := 0 + headers := 0 + + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AccountsV1AuthTokenPromotion{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateCredentialAwsParams Optional parameters for the method 'UpdateCredentialAws' +type UpdateCredentialAwsParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +UpdateCredentialAws Method for UpdateCredentialAws +Modify the properties of a given Account + * @param sid The Twilio-provided string that uniquely identifies the AWS resource to update. + * @param optional nil or *UpdateCredentialAwsOpts - Optional Parameters: + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. +@return AccountsV1CredentialCredentialAws +*/ +func (c *DefaultApiService) UpdateCredentialAws(sid string, params *UpdateCredentialAwsParams) (*AccountsV1CredentialCredentialAws, error) { + path := "/v1/Credentials/AWS/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AccountsV1CredentialCredentialAws{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateCredentialPublicKeyParams Optional parameters for the method 'UpdateCredentialPublicKey' +type UpdateCredentialPublicKeyParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +UpdateCredentialPublicKey Method for UpdateCredentialPublicKey +Modify the properties of a given Account + * @param sid The Twilio-provided string that uniquely identifies the PublicKey resource to update. + * @param optional nil or *UpdateCredentialPublicKeyOpts - Optional Parameters: + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. +@return AccountsV1CredentialCredentialPublicKey +*/ +func (c *DefaultApiService) UpdateCredentialPublicKey(sid string, params *UpdateCredentialPublicKeyParams) (*AccountsV1CredentialCredentialPublicKey, error) { + path := "/v1/Credentials/PublicKeys/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AccountsV1CredentialCredentialPublicKey{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/accounts/v1/docs/AccountsV1AuthTokenPromotion.md b/rest/accounts/v1/docs/AccountsV1AuthTokenPromotion.md new file mode 100644 index 000000000..e96444fa6 --- /dev/null +++ b/rest/accounts/v1/docs/AccountsV1AuthTokenPromotion.md @@ -0,0 +1,15 @@ +# AccountsV1AuthTokenPromotion + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AuthToken** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Url** | **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/rest/accounts/v1/docs/AccountsV1CredentialCredentialAws.md b/rest/accounts/v1/docs/AccountsV1CredentialCredentialAws.md new file mode 100644 index 000000000..bfe69bfcf --- /dev/null +++ b/rest/accounts/v1/docs/AccountsV1CredentialCredentialAws.md @@ -0,0 +1,16 @@ +# AccountsV1CredentialCredentialAws + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/accounts/v1/docs/AccountsV1CredentialCredentialAwsReadResponse.md b/rest/accounts/v1/docs/AccountsV1CredentialCredentialAwsReadResponse.md new file mode 100644 index 000000000..240b3c53d --- /dev/null +++ b/rest/accounts/v1/docs/AccountsV1CredentialCredentialAwsReadResponse.md @@ -0,0 +1,12 @@ +# AccountsV1CredentialCredentialAwsReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Credentials** | [**[]AccountsV1CredentialCredentialAws**](accounts.v1.credential.credential_aws.md) | | [optional] +**Meta** | [**AccountsV1CredentialCredentialAwsReadResponseMeta**](accounts_v1_credential_credential_awsReadResponse_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/rest/accounts/v1/docs/AccountsV1CredentialCredentialAwsReadResponseMeta.md b/rest/accounts/v1/docs/AccountsV1CredentialCredentialAwsReadResponseMeta.md new file mode 100644 index 000000000..b15a48172 --- /dev/null +++ b/rest/accounts/v1/docs/AccountsV1CredentialCredentialAwsReadResponseMeta.md @@ -0,0 +1,17 @@ +# AccountsV1CredentialCredentialAwsReadResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/accounts/v1/docs/AccountsV1CredentialCredentialPublicKey.md b/rest/accounts/v1/docs/AccountsV1CredentialCredentialPublicKey.md new file mode 100644 index 000000000..6a8764e6c --- /dev/null +++ b/rest/accounts/v1/docs/AccountsV1CredentialCredentialPublicKey.md @@ -0,0 +1,16 @@ +# AccountsV1CredentialCredentialPublicKey + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/accounts/v1/docs/AccountsV1CredentialCredentialPublicKeyReadResponse.md b/rest/accounts/v1/docs/AccountsV1CredentialCredentialPublicKeyReadResponse.md new file mode 100644 index 000000000..f56326d85 --- /dev/null +++ b/rest/accounts/v1/docs/AccountsV1CredentialCredentialPublicKeyReadResponse.md @@ -0,0 +1,12 @@ +# AccountsV1CredentialCredentialPublicKeyReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Credentials** | [**[]AccountsV1CredentialCredentialPublicKey**](accounts.v1.credential.credential_public_key.md) | | [optional] +**Meta** | [**AccountsV1CredentialCredentialAwsReadResponseMeta**](accounts_v1_credential_credential_awsReadResponse_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/rest/accounts/v1/docs/AccountsV1SecondaryAuthToken.md b/rest/accounts/v1/docs/AccountsV1SecondaryAuthToken.md new file mode 100644 index 000000000..7635dfb7b --- /dev/null +++ b/rest/accounts/v1/docs/AccountsV1SecondaryAuthToken.md @@ -0,0 +1,15 @@ +# AccountsV1SecondaryAuthToken + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**SecondaryAuthToken** | **string** | | [optional] +**Url** | **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/rest/accounts/v1/docs/CreateCredentialAwsRequest.md b/rest/accounts/v1/docs/CreateCredentialAwsRequest.md new file mode 100644 index 000000000..6882cc2ee --- /dev/null +++ b/rest/accounts/v1/docs/CreateCredentialAwsRequest.md @@ -0,0 +1,13 @@ +# CreateCredentialAwsRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | The SID of the Subaccount that this Credential should be associated with. Must be a valid Subaccount of the account issuing the request. | [optional] +**Credentials** | **string** | A string that contains the AWS access credentials in the format `<AWS_ACCESS_KEY_ID>:<AWS_SECRET_ACCESS_KEY>`. For example, `AKIAIOSFODNN7EXAMPLE:wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY` | +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | [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/rest/accounts/v1/docs/CreateCredentialPublicKeyRequest.md b/rest/accounts/v1/docs/CreateCredentialPublicKeyRequest.md new file mode 100644 index 000000000..ee1b1c6a6 --- /dev/null +++ b/rest/accounts/v1/docs/CreateCredentialPublicKeyRequest.md @@ -0,0 +1,13 @@ +# CreateCredentialPublicKeyRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | The SID of the Subaccount that this Credential should be associated with. Must be a valid Subaccount of the account issuing the request | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | [optional] +**PublicKey** | **string** | A URL encoded representation of the public key. For example, `-----BEGIN PUBLIC KEY-----MIIBIjANB.pa9xQIDAQAB-----END PUBLIC KEY-----` | + +[[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/rest/accounts/v1/docs/DefaultApi.md b/rest/accounts/v1/docs/DefaultApi.md new file mode 100644 index 000000000..b10eea993 --- /dev/null +++ b/rest/accounts/v1/docs/DefaultApi.md @@ -0,0 +1,513 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateCredentialAws**](DefaultApi.md#CreateCredentialAws) | **Post** /v1/Credentials/AWS | +[**CreateCredentialPublicKey**](DefaultApi.md#CreateCredentialPublicKey) | **Post** /v1/Credentials/PublicKeys | +[**CreateSecondaryAuthToken**](DefaultApi.md#CreateSecondaryAuthToken) | **Post** /v1/AuthTokens/Secondary | +[**DeleteCredentialAws**](DefaultApi.md#DeleteCredentialAws) | **Delete** /v1/Credentials/AWS/{Sid} | +[**DeleteCredentialPublicKey**](DefaultApi.md#DeleteCredentialPublicKey) | **Delete** /v1/Credentials/PublicKeys/{Sid} | +[**DeleteSecondaryAuthToken**](DefaultApi.md#DeleteSecondaryAuthToken) | **Delete** /v1/AuthTokens/Secondary | +[**FetchCredentialAws**](DefaultApi.md#FetchCredentialAws) | **Get** /v1/Credentials/AWS/{Sid} | +[**FetchCredentialPublicKey**](DefaultApi.md#FetchCredentialPublicKey) | **Get** /v1/Credentials/PublicKeys/{Sid} | +[**ListCredentialAws**](DefaultApi.md#ListCredentialAws) | **Get** /v1/Credentials/AWS | +[**ListCredentialPublicKey**](DefaultApi.md#ListCredentialPublicKey) | **Get** /v1/Credentials/PublicKeys | +[**UpdateAuthTokenPromotion**](DefaultApi.md#UpdateAuthTokenPromotion) | **Post** /v1/AuthTokens/Promote | +[**UpdateCredentialAws**](DefaultApi.md#UpdateCredentialAws) | **Post** /v1/Credentials/AWS/{Sid} | +[**UpdateCredentialPublicKey**](DefaultApi.md#UpdateCredentialPublicKey) | **Post** /v1/Credentials/PublicKeys/{Sid} | + + + +## CreateCredentialAws + +> AccountsV1CredentialCredentialAws CreateCredentialAws(ctx, optional) + + + +Create a new AWS Credential + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateCredentialAwsOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateCredentialAwsOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accountSid** | **optional.String**| The SID of the Subaccount that this Credential should be associated with. Must be a valid Subaccount of the account issuing the request. | + **credentials** | **optional.String**| A string that contains the AWS access credentials in the format `<AWS_ACCESS_KEY_ID>:<AWS_SECRET_ACCESS_KEY>`. For example, `AKIAIOSFODNN7EXAMPLE:wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY` | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + +### Return type + +[**AccountsV1CredentialCredentialAws**](accounts.v1.credential.credential_aws.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) + + +## CreateCredentialPublicKey + +> AccountsV1CredentialCredentialPublicKey CreateCredentialPublicKey(ctx, optional) + + + +Create a new Public Key Credential + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateCredentialPublicKeyOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateCredentialPublicKeyOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accountSid** | **optional.String**| The SID of the Subaccount that this Credential should be associated with. Must be a valid Subaccount of the account issuing the request | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **publicKey** | **optional.String**| A URL encoded representation of the public key. For example, `-----BEGIN PUBLIC KEY-----MIIBIjANB.pa9xQIDAQAB-----END PUBLIC KEY-----` | + +### Return type + +[**AccountsV1CredentialCredentialPublicKey**](accounts.v1.credential.credential_public_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) + + +## CreateSecondaryAuthToken + +> AccountsV1SecondaryAuthToken CreateSecondaryAuthToken(ctx, ) + + + +Create a new secondary Auth Token + +### Required Parameters + +This endpoint does not need any parameter. + +### Return type + +[**AccountsV1SecondaryAuthToken**](accounts.v1.secondary_auth_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) + + +## DeleteCredentialAws + +> DeleteCredentialAws(ctx, sid) + + + +Delete a Credential from your account + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the AWS resource to delete. | + +### 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) + + +## DeleteCredentialPublicKey + +> DeleteCredentialPublicKey(ctx, sid) + + + +Delete a Credential from your account + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the PublicKey resource to delete. | + +### 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) + + +## DeleteSecondaryAuthToken + +> DeleteSecondaryAuthToken(ctx, ) + + + +Delete the secondary Auth Token from your account + +### Required Parameters + +This endpoint does not need any parameter. + +### 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) + + +## FetchCredentialAws + +> AccountsV1CredentialCredentialAws FetchCredentialAws(ctx, sid) + + + +Fetch the AWS credentials specified by the provided Credential Sid + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the AWS resource to fetch. | + +### Return type + +[**AccountsV1CredentialCredentialAws**](accounts.v1.credential.credential_aws.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) + + +## FetchCredentialPublicKey + +> AccountsV1CredentialCredentialPublicKey FetchCredentialPublicKey(ctx, sid) + + + +Fetch the public key specified by the provided Credential Sid + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the PublicKey resource to fetch. | + +### Return type + +[**AccountsV1CredentialCredentialPublicKey**](accounts.v1.credential.credential_public_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) + + +## ListCredentialAws + +> AccountsV1CredentialCredentialAwsReadResponse ListCredentialAws(ctx, optional) + + + +Retrieves a collection of AWS Credentials belonging to the account used to make the request + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListCredentialAwsOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListCredentialAwsOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**AccountsV1CredentialCredentialAwsReadResponse**](accounts_v1_credential_credential_awsReadResponse.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) + + +## ListCredentialPublicKey + +> AccountsV1CredentialCredentialPublicKeyReadResponse ListCredentialPublicKey(ctx, optional) + + + +Retrieves a collection of Public Key Credentials belonging to the account used to make the request + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListCredentialPublicKeyOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListCredentialPublicKeyOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**AccountsV1CredentialCredentialPublicKeyReadResponse**](accounts_v1_credential_credential_public_keyReadResponse.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) + + +## UpdateAuthTokenPromotion + +> AccountsV1AuthTokenPromotion UpdateAuthTokenPromotion(ctx, ) + + + +Promote the secondary Auth Token to primary. After promoting the new token, all requests to Twilio using your old primary Auth Token will result in an error. + +### Required Parameters + +This endpoint does not need any parameter. + +### Return type + +[**AccountsV1AuthTokenPromotion**](accounts.v1.auth_token_promotion.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) + + +## UpdateCredentialAws + +> AccountsV1CredentialCredentialAws UpdateCredentialAws(ctx, sid, optional) + + + +Modify the properties of a given Account + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the AWS resource to update. | + **optional** | ***UpdateCredentialAwsOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateCredentialAwsOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + +### Return type + +[**AccountsV1CredentialCredentialAws**](accounts.v1.credential.credential_aws.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) + + +## UpdateCredentialPublicKey + +> AccountsV1CredentialCredentialPublicKey UpdateCredentialPublicKey(ctx, sid, optional) + + + +Modify the properties of a given Account + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the PublicKey resource to update. | + **optional** | ***UpdateCredentialPublicKeyOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateCredentialPublicKeyOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + +### Return type + +[**AccountsV1CredentialCredentialPublicKey**](accounts.v1.credential.credential_public_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) + diff --git a/rest/accounts/v1/docs/UpdateCredentialAwsRequest.md b/rest/accounts/v1/docs/UpdateCredentialAwsRequest.md new file mode 100644 index 000000000..32af6a672 --- /dev/null +++ b/rest/accounts/v1/docs/UpdateCredentialAwsRequest.md @@ -0,0 +1,11 @@ +# UpdateCredentialAwsRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | [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/rest/accounts/v1/docs/UpdateCredentialPublicKeyRequest.md b/rest/accounts/v1/docs/UpdateCredentialPublicKeyRequest.md new file mode 100644 index 000000000..824ec47ea --- /dev/null +++ b/rest/accounts/v1/docs/UpdateCredentialPublicKeyRequest.md @@ -0,0 +1,11 @@ +# UpdateCredentialPublicKeyRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | [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/rest/accounts/v1/model_accounts_v1_auth_token_promotion.go b/rest/accounts/v1/model_accounts_v1_auth_token_promotion.go new file mode 100644 index 000000000..d04452419 --- /dev/null +++ b/rest/accounts/v1/model_accounts_v1_auth_token_promotion.go @@ -0,0 +1,22 @@ +/* + * Twilio - Accounts + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// AccountsV1AuthTokenPromotion struct for AccountsV1AuthTokenPromotion +type AccountsV1AuthTokenPromotion struct { + AccountSid string `json:"account_sid,omitempty"` + AuthToken string `json:"auth_token,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/accounts/v1/model_accounts_v1_credential_credential_aws.go b/rest/accounts/v1/model_accounts_v1_credential_credential_aws.go new file mode 100644 index 000000000..b96e2c145 --- /dev/null +++ b/rest/accounts/v1/model_accounts_v1_credential_credential_aws.go @@ -0,0 +1,23 @@ +/* + * Twilio - Accounts + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// AccountsV1CredentialCredentialAws struct for AccountsV1CredentialCredentialAws +type AccountsV1CredentialCredentialAws struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/accounts/v1/model_accounts_v1_credential_credential_aws_read_response.go b/rest/accounts/v1/model_accounts_v1_credential_credential_aws_read_response.go new file mode 100644 index 000000000..ac41a02ed --- /dev/null +++ b/rest/accounts/v1/model_accounts_v1_credential_credential_aws_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Accounts + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// AccountsV1CredentialCredentialAwsReadResponse struct for AccountsV1CredentialCredentialAwsReadResponse +type AccountsV1CredentialCredentialAwsReadResponse struct { + Credentials []AccountsV1CredentialCredentialAws `json:"credentials,omitempty"` + Meta AccountsV1CredentialCredentialAwsReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/accounts/v1/model_accounts_v1_credential_credential_aws_read_response_meta.go b/rest/accounts/v1/model_accounts_v1_credential_credential_aws_read_response_meta.go new file mode 100644 index 000000000..8b779051d --- /dev/null +++ b/rest/accounts/v1/model_accounts_v1_credential_credential_aws_read_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Accounts + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// AccountsV1CredentialCredentialAwsReadResponseMeta struct for AccountsV1CredentialCredentialAwsReadResponseMeta +type AccountsV1CredentialCredentialAwsReadResponseMeta struct { + FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` + NextPageUrl string `json:"next_page_url,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUrl string `json:"previous_page_url,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/accounts/v1/model_accounts_v1_credential_credential_public_key.go b/rest/accounts/v1/model_accounts_v1_credential_credential_public_key.go new file mode 100644 index 000000000..1a00e381f --- /dev/null +++ b/rest/accounts/v1/model_accounts_v1_credential_credential_public_key.go @@ -0,0 +1,23 @@ +/* + * Twilio - Accounts + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// AccountsV1CredentialCredentialPublicKey struct for AccountsV1CredentialCredentialPublicKey +type AccountsV1CredentialCredentialPublicKey struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/accounts/v1/model_accounts_v1_credential_credential_public_key_read_response.go b/rest/accounts/v1/model_accounts_v1_credential_credential_public_key_read_response.go new file mode 100644 index 000000000..cf42da46b --- /dev/null +++ b/rest/accounts/v1/model_accounts_v1_credential_credential_public_key_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Accounts + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// AccountsV1CredentialCredentialPublicKeyReadResponse struct for AccountsV1CredentialCredentialPublicKeyReadResponse +type AccountsV1CredentialCredentialPublicKeyReadResponse struct { + Credentials []AccountsV1CredentialCredentialPublicKey `json:"credentials,omitempty"` + Meta AccountsV1CredentialCredentialAwsReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/accounts/v1/model_accounts_v1_secondary_auth_token.go b/rest/accounts/v1/model_accounts_v1_secondary_auth_token.go new file mode 100644 index 000000000..4bdcf4a3d --- /dev/null +++ b/rest/accounts/v1/model_accounts_v1_secondary_auth_token.go @@ -0,0 +1,22 @@ +/* + * Twilio - Accounts + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// AccountsV1SecondaryAuthToken struct for AccountsV1SecondaryAuthToken +type AccountsV1SecondaryAuthToken struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + SecondaryAuthToken string `json:"secondary_auth_token,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/accounts/v1/model_create_credential_aws_request.go b/rest/accounts/v1/model_create_credential_aws_request.go new file mode 100644 index 000000000..f2a6ee6ef --- /dev/null +++ b/rest/accounts/v1/model_create_credential_aws_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Accounts + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateCredentialAwsRequest struct for CreateCredentialAwsRequest +type CreateCredentialAwsRequest struct { + // The SID of the Subaccount that this Credential should be associated with. Must be a valid Subaccount of the account issuing the request. + AccountSid string `json:"AccountSid,omitempty"` + // A string that contains the AWS access credentials in the format `:`. For example, `AKIAIOSFODNN7EXAMPLE:wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY` + Credentials string `json:"Credentials"` + // A descriptive string that you create to describe the resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` +} diff --git a/rest/accounts/v1/model_create_credential_public_key_request.go b/rest/accounts/v1/model_create_credential_public_key_request.go new file mode 100644 index 000000000..9d0c685e4 --- /dev/null +++ b/rest/accounts/v1/model_create_credential_public_key_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Accounts + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateCredentialPublicKeyRequest struct for CreateCredentialPublicKeyRequest +type CreateCredentialPublicKeyRequest struct { + // The SID of the Subaccount that this Credential should be associated with. Must be a valid Subaccount of the account issuing the request + AccountSid string `json:"AccountSid,omitempty"` + // A descriptive string that you create to describe the resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // A URL encoded representation of the public key. For example, `-----BEGIN PUBLIC KEY-----MIIBIjANB.pa9xQIDAQAB-----END PUBLIC KEY-----` + PublicKey string `json:"PublicKey"` +} diff --git a/rest/accounts/v1/model_update_credential_aws_request.go b/rest/accounts/v1/model_update_credential_aws_request.go new file mode 100644 index 000000000..0e1f70bde --- /dev/null +++ b/rest/accounts/v1/model_update_credential_aws_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Accounts + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateCredentialAwsRequest struct for UpdateCredentialAwsRequest +type UpdateCredentialAwsRequest struct { + // A descriptive string that you create to describe the resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` +} diff --git a/rest/accounts/v1/model_update_credential_public_key_request.go b/rest/accounts/v1/model_update_credential_public_key_request.go new file mode 100644 index 000000000..699ad6e0e --- /dev/null +++ b/rest/accounts/v1/model_update_credential_public_key_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Accounts + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateCredentialPublicKeyRequest struct for UpdateCredentialPublicKeyRequest +type UpdateCredentialPublicKeyRequest struct { + // A descriptive string that you create to describe the resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` +} diff --git a/rest/accounts/v1/response.go b/rest/accounts/v1/response.go new file mode 100644 index 000000000..50b89c663 --- /dev/null +++ b/rest/accounts/v1/response.go @@ -0,0 +1,47 @@ +/* + * Twilio - Accounts + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// Response returns a new APIResponse object. +func Response(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// ResponseWithError returns a new APIResponse object with the provided error message. +func ResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/rest/api/v2010/.openapi-generator-ignore b/rest/api/v2010/.openapi-generator-ignore new file mode 100644 index 000000000..7484ee590 --- /dev/null +++ b/rest/api/v2010/.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/rest/api/v2010/.openapi-generator/VERSION b/rest/api/v2010/.openapi-generator/VERSION new file mode 100644 index 000000000..ecedc98d1 --- /dev/null +++ b/rest/api/v2010/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.3.1 \ No newline at end of file diff --git a/rest/api/v2010/README.md b/rest/api/v2010/README.md new file mode 100644 index 000000000..b6bdbf7cf --- /dev/null +++ b/rest/api/v2010/README.md @@ -0,0 +1,443 @@ +# Go API client for openapi + +This is the public Twilio REST API. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 5.15.0 +- Package version: 1.0.0 +- Build package: com.twilio.oai.TwilioGoGenerator +For more information, please visit [https://support.twilio.com](https://support.twilio.com) + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import "./openapi" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**CreateAccount**](docs/DefaultApi.md#createaccount) | **Post** /2010-04-01/Accounts.json | +*DefaultApi* | [**CreateAddress**](docs/DefaultApi.md#createaddress) | **Post** /2010-04-01/Accounts/{AccountSid}/Addresses.json | +*DefaultApi* | [**CreateApplication**](docs/DefaultApi.md#createapplication) | **Post** /2010-04-01/Accounts/{AccountSid}/Applications.json | +*DefaultApi* | [**CreateCall**](docs/DefaultApi.md#createcall) | **Post** /2010-04-01/Accounts/{AccountSid}/Calls.json | +*DefaultApi* | [**CreateCallFeedbackSummary**](docs/DefaultApi.md#createcallfeedbacksummary) | **Post** /2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary.json | +*DefaultApi* | [**CreateCallRecording**](docs/DefaultApi.md#createcallrecording) | **Post** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json | +*DefaultApi* | [**CreateIncomingPhoneNumber**](docs/DefaultApi.md#createincomingphonenumber) | **Post** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json | +*DefaultApi* | [**CreateIncomingPhoneNumberAssignedAddOn**](docs/DefaultApi.md#createincomingphonenumberassignedaddon) | **Post** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json | +*DefaultApi* | [**CreateIncomingPhoneNumberLocal**](docs/DefaultApi.md#createincomingphonenumberlocal) | **Post** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json | +*DefaultApi* | [**CreateIncomingPhoneNumberMobile**](docs/DefaultApi.md#createincomingphonenumbermobile) | **Post** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json | +*DefaultApi* | [**CreateIncomingPhoneNumberTollFree**](docs/DefaultApi.md#createincomingphonenumbertollfree) | **Post** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json | +*DefaultApi* | [**CreateMessage**](docs/DefaultApi.md#createmessage) | **Post** /2010-04-01/Accounts/{AccountSid}/Messages.json | +*DefaultApi* | [**CreateMessageFeedback**](docs/DefaultApi.md#createmessagefeedback) | **Post** /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Feedback.json | +*DefaultApi* | [**CreateNewKey**](docs/DefaultApi.md#createnewkey) | **Post** /2010-04-01/Accounts/{AccountSid}/Keys.json | +*DefaultApi* | [**CreateNewSigningKey**](docs/DefaultApi.md#createnewsigningkey) | **Post** /2010-04-01/Accounts/{AccountSid}/SigningKeys.json | +*DefaultApi* | [**CreateParticipant**](docs/DefaultApi.md#createparticipant) | **Post** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json | +*DefaultApi* | [**CreatePayments**](docs/DefaultApi.md#createpayments) | **Post** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments.json | +*DefaultApi* | [**CreateQueue**](docs/DefaultApi.md#createqueue) | **Post** /2010-04-01/Accounts/{AccountSid}/Queues.json | +*DefaultApi* | [**CreateSipAuthCallsCredentialListMapping**](docs/DefaultApi.md#createsipauthcallscredentiallistmapping) | **Post** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings.json | +*DefaultApi* | [**CreateSipAuthCallsIpAccessControlListMapping**](docs/DefaultApi.md#createsipauthcallsipaccesscontrollistmapping) | **Post** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings.json | +*DefaultApi* | [**CreateSipAuthRegistrationsCredentialListMapping**](docs/DefaultApi.md#createsipauthregistrationscredentiallistmapping) | **Post** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings.json | +*DefaultApi* | [**CreateSipCredential**](docs/DefaultApi.md#createsipcredential) | **Post** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json | +*DefaultApi* | [**CreateSipCredentialList**](docs/DefaultApi.md#createsipcredentiallist) | **Post** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists.json | +*DefaultApi* | [**CreateSipCredentialListMapping**](docs/DefaultApi.md#createsipcredentiallistmapping) | **Post** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings.json | +*DefaultApi* | [**CreateSipDomain**](docs/DefaultApi.md#createsipdomain) | **Post** /2010-04-01/Accounts/{AccountSid}/SIP/Domains.json | +*DefaultApi* | [**CreateSipIpAccessControlList**](docs/DefaultApi.md#createsipipaccesscontrollist) | **Post** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists.json | +*DefaultApi* | [**CreateSipIpAccessControlListMapping**](docs/DefaultApi.md#createsipipaccesscontrollistmapping) | **Post** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings.json | +*DefaultApi* | [**CreateSipIpAddress**](docs/DefaultApi.md#createsipipaddress) | **Post** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses.json | +*DefaultApi* | [**CreateToken**](docs/DefaultApi.md#createtoken) | **Post** /2010-04-01/Accounts/{AccountSid}/Tokens.json | +*DefaultApi* | [**CreateUsageTrigger**](docs/DefaultApi.md#createusagetrigger) | **Post** /2010-04-01/Accounts/{AccountSid}/Usage/Triggers.json | +*DefaultApi* | [**CreateValidationRequest**](docs/DefaultApi.md#createvalidationrequest) | **Post** /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json | +*DefaultApi* | [**DeleteAddress**](docs/DefaultApi.md#deleteaddress) | **Delete** /2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json | +*DefaultApi* | [**DeleteApplication**](docs/DefaultApi.md#deleteapplication) | **Delete** /2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json | +*DefaultApi* | [**DeleteCall**](docs/DefaultApi.md#deletecall) | **Delete** /2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json | +*DefaultApi* | [**DeleteCallFeedbackSummary**](docs/DefaultApi.md#deletecallfeedbacksummary) | **Delete** /2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary/{Sid}.json | +*DefaultApi* | [**DeleteCallRecording**](docs/DefaultApi.md#deletecallrecording) | **Delete** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json | +*DefaultApi* | [**DeleteConferenceRecording**](docs/DefaultApi.md#deleteconferencerecording) | **Delete** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json | +*DefaultApi* | [**DeleteConnectApp**](docs/DefaultApi.md#deleteconnectapp) | **Delete** /2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json | +*DefaultApi* | [**DeleteIncomingPhoneNumber**](docs/DefaultApi.md#deleteincomingphonenumber) | **Delete** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json | +*DefaultApi* | [**DeleteIncomingPhoneNumberAssignedAddOn**](docs/DefaultApi.md#deleteincomingphonenumberassignedaddon) | **Delete** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{Sid}.json | +*DefaultApi* | [**DeleteKey**](docs/DefaultApi.md#deletekey) | **Delete** /2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json | +*DefaultApi* | [**DeleteMedia**](docs/DefaultApi.md#deletemedia) | **Delete** /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json | +*DefaultApi* | [**DeleteMessage**](docs/DefaultApi.md#deletemessage) | **Delete** /2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json | +*DefaultApi* | [**DeleteOutgoingCallerId**](docs/DefaultApi.md#deleteoutgoingcallerid) | **Delete** /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json | +*DefaultApi* | [**DeleteParticipant**](docs/DefaultApi.md#deleteparticipant) | **Delete** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json | +*DefaultApi* | [**DeleteQueue**](docs/DefaultApi.md#deletequeue) | **Delete** /2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json | +*DefaultApi* | [**DeleteRecording**](docs/DefaultApi.md#deleterecording) | **Delete** /2010-04-01/Accounts/{AccountSid}/Recordings/{Sid}.json | +*DefaultApi* | [**DeleteRecordingAddOnResult**](docs/DefaultApi.md#deleterecordingaddonresult) | **Delete** /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{Sid}.json | +*DefaultApi* | [**DeleteRecordingAddOnResultPayload**](docs/DefaultApi.md#deleterecordingaddonresultpayload) | **Delete** /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{Sid}.json | +*DefaultApi* | [**DeleteRecordingTranscription**](docs/DefaultApi.md#deleterecordingtranscription) | **Delete** /2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json | +*DefaultApi* | [**DeleteSigningKey**](docs/DefaultApi.md#deletesigningkey) | **Delete** /2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json | +*DefaultApi* | [**DeleteSipAuthCallsCredentialListMapping**](docs/DefaultApi.md#deletesipauthcallscredentiallistmapping) | **Delete** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings/{Sid}.json | +*DefaultApi* | [**DeleteSipAuthCallsIpAccessControlListMapping**](docs/DefaultApi.md#deletesipauthcallsipaccesscontrollistmapping) | **Delete** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings/{Sid}.json | +*DefaultApi* | [**DeleteSipAuthRegistrationsCredentialListMapping**](docs/DefaultApi.md#deletesipauthregistrationscredentiallistmapping) | **Delete** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings/{Sid}.json | +*DefaultApi* | [**DeleteSipCredential**](docs/DefaultApi.md#deletesipcredential) | **Delete** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json | +*DefaultApi* | [**DeleteSipCredentialList**](docs/DefaultApi.md#deletesipcredentiallist) | **Delete** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json | +*DefaultApi* | [**DeleteSipCredentialListMapping**](docs/DefaultApi.md#deletesipcredentiallistmapping) | **Delete** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings/{Sid}.json | +*DefaultApi* | [**DeleteSipDomain**](docs/DefaultApi.md#deletesipdomain) | **Delete** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json | +*DefaultApi* | [**DeleteSipIpAccessControlList**](docs/DefaultApi.md#deletesipipaccesscontrollist) | **Delete** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json | +*DefaultApi* | [**DeleteSipIpAccessControlListMapping**](docs/DefaultApi.md#deletesipipaccesscontrollistmapping) | **Delete** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings/{Sid}.json | +*DefaultApi* | [**DeleteSipIpAddress**](docs/DefaultApi.md#deletesipipaddress) | **Delete** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json | +*DefaultApi* | [**DeleteTranscription**](docs/DefaultApi.md#deletetranscription) | **Delete** /2010-04-01/Accounts/{AccountSid}/Transcriptions/{Sid}.json | +*DefaultApi* | [**DeleteUsageTrigger**](docs/DefaultApi.md#deleteusagetrigger) | **Delete** /2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json | +*DefaultApi* | [**FetchAccount**](docs/DefaultApi.md#fetchaccount) | **Get** /2010-04-01/Accounts/{Sid}.json | +*DefaultApi* | [**FetchAddress**](docs/DefaultApi.md#fetchaddress) | **Get** /2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json | +*DefaultApi* | [**FetchApplication**](docs/DefaultApi.md#fetchapplication) | **Get** /2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json | +*DefaultApi* | [**FetchAuthorizedConnectApp**](docs/DefaultApi.md#fetchauthorizedconnectapp) | **Get** /2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps/{ConnectAppSid}.json | +*DefaultApi* | [**FetchAvailablePhoneNumberCountry**](docs/DefaultApi.md#fetchavailablephonenumbercountry) | **Get** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}.json | +*DefaultApi* | [**FetchBalance**](docs/DefaultApi.md#fetchbalance) | **Get** /2010-04-01/Accounts/{AccountSid}/Balance.json | +*DefaultApi* | [**FetchCall**](docs/DefaultApi.md#fetchcall) | **Get** /2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json | +*DefaultApi* | [**FetchCallFeedback**](docs/DefaultApi.md#fetchcallfeedback) | **Get** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Feedback.json | +*DefaultApi* | [**FetchCallFeedbackSummary**](docs/DefaultApi.md#fetchcallfeedbacksummary) | **Get** /2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary/{Sid}.json | +*DefaultApi* | [**FetchCallNotification**](docs/DefaultApi.md#fetchcallnotification) | **Get** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications/{Sid}.json | +*DefaultApi* | [**FetchCallRecording**](docs/DefaultApi.md#fetchcallrecording) | **Get** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json | +*DefaultApi* | [**FetchConference**](docs/DefaultApi.md#fetchconference) | **Get** /2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json | +*DefaultApi* | [**FetchConferenceRecording**](docs/DefaultApi.md#fetchconferencerecording) | **Get** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json | +*DefaultApi* | [**FetchConnectApp**](docs/DefaultApi.md#fetchconnectapp) | **Get** /2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json | +*DefaultApi* | [**FetchIncomingPhoneNumber**](docs/DefaultApi.md#fetchincomingphonenumber) | **Get** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json | +*DefaultApi* | [**FetchIncomingPhoneNumberAssignedAddOn**](docs/DefaultApi.md#fetchincomingphonenumberassignedaddon) | **Get** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{Sid}.json | +*DefaultApi* | [**FetchIncomingPhoneNumberAssignedAddOnExtension**](docs/DefaultApi.md#fetchincomingphonenumberassignedaddonextension) | **Get** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions/{Sid}.json | +*DefaultApi* | [**FetchKey**](docs/DefaultApi.md#fetchkey) | **Get** /2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json | +*DefaultApi* | [**FetchMedia**](docs/DefaultApi.md#fetchmedia) | **Get** /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json | +*DefaultApi* | [**FetchMember**](docs/DefaultApi.md#fetchmember) | **Get** /2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json | +*DefaultApi* | [**FetchMessage**](docs/DefaultApi.md#fetchmessage) | **Get** /2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json | +*DefaultApi* | [**FetchNotification**](docs/DefaultApi.md#fetchnotification) | **Get** /2010-04-01/Accounts/{AccountSid}/Notifications/{Sid}.json | +*DefaultApi* | [**FetchOutgoingCallerId**](docs/DefaultApi.md#fetchoutgoingcallerid) | **Get** /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json | +*DefaultApi* | [**FetchParticipant**](docs/DefaultApi.md#fetchparticipant) | **Get** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json | +*DefaultApi* | [**FetchQueue**](docs/DefaultApi.md#fetchqueue) | **Get** /2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json | +*DefaultApi* | [**FetchRecording**](docs/DefaultApi.md#fetchrecording) | **Get** /2010-04-01/Accounts/{AccountSid}/Recordings/{Sid}.json | +*DefaultApi* | [**FetchRecordingAddOnResult**](docs/DefaultApi.md#fetchrecordingaddonresult) | **Get** /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{Sid}.json | +*DefaultApi* | [**FetchRecordingAddOnResultPayload**](docs/DefaultApi.md#fetchrecordingaddonresultpayload) | **Get** /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{Sid}.json | +*DefaultApi* | [**FetchRecordingTranscription**](docs/DefaultApi.md#fetchrecordingtranscription) | **Get** /2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json | +*DefaultApi* | [**FetchShortCode**](docs/DefaultApi.md#fetchshortcode) | **Get** /2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes/{Sid}.json | +*DefaultApi* | [**FetchSigningKey**](docs/DefaultApi.md#fetchsigningkey) | **Get** /2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json | +*DefaultApi* | [**FetchSipAuthCallsCredentialListMapping**](docs/DefaultApi.md#fetchsipauthcallscredentiallistmapping) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings/{Sid}.json | +*DefaultApi* | [**FetchSipAuthCallsIpAccessControlListMapping**](docs/DefaultApi.md#fetchsipauthcallsipaccesscontrollistmapping) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings/{Sid}.json | +*DefaultApi* | [**FetchSipAuthRegistrationsCredentialListMapping**](docs/DefaultApi.md#fetchsipauthregistrationscredentiallistmapping) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings/{Sid}.json | +*DefaultApi* | [**FetchSipCredential**](docs/DefaultApi.md#fetchsipcredential) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json | +*DefaultApi* | [**FetchSipCredentialList**](docs/DefaultApi.md#fetchsipcredentiallist) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json | +*DefaultApi* | [**FetchSipCredentialListMapping**](docs/DefaultApi.md#fetchsipcredentiallistmapping) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings/{Sid}.json | +*DefaultApi* | [**FetchSipDomain**](docs/DefaultApi.md#fetchsipdomain) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json | +*DefaultApi* | [**FetchSipIpAccessControlList**](docs/DefaultApi.md#fetchsipipaccesscontrollist) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json | +*DefaultApi* | [**FetchSipIpAccessControlListMapping**](docs/DefaultApi.md#fetchsipipaccesscontrollistmapping) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings/{Sid}.json | +*DefaultApi* | [**FetchSipIpAddress**](docs/DefaultApi.md#fetchsipipaddress) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json | +*DefaultApi* | [**FetchTranscription**](docs/DefaultApi.md#fetchtranscription) | **Get** /2010-04-01/Accounts/{AccountSid}/Transcriptions/{Sid}.json | +*DefaultApi* | [**FetchUsageTrigger**](docs/DefaultApi.md#fetchusagetrigger) | **Get** /2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json | +*DefaultApi* | [**ListAccount**](docs/DefaultApi.md#listaccount) | **Get** /2010-04-01/Accounts.json | +*DefaultApi* | [**ListAddress**](docs/DefaultApi.md#listaddress) | **Get** /2010-04-01/Accounts/{AccountSid}/Addresses.json | +*DefaultApi* | [**ListApplication**](docs/DefaultApi.md#listapplication) | **Get** /2010-04-01/Accounts/{AccountSid}/Applications.json | +*DefaultApi* | [**ListAuthorizedConnectApp**](docs/DefaultApi.md#listauthorizedconnectapp) | **Get** /2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps.json | +*DefaultApi* | [**ListAvailablePhoneNumberCountry**](docs/DefaultApi.md#listavailablephonenumbercountry) | **Get** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers.json | +*DefaultApi* | [**ListAvailablePhoneNumberLocal**](docs/DefaultApi.md#listavailablephonenumberlocal) | **Get** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Local.json | +*DefaultApi* | [**ListAvailablePhoneNumberMachineToMachine**](docs/DefaultApi.md#listavailablephonenumbermachinetomachine) | **Get** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/MachineToMachine.json | +*DefaultApi* | [**ListAvailablePhoneNumberMobile**](docs/DefaultApi.md#listavailablephonenumbermobile) | **Get** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Mobile.json | +*DefaultApi* | [**ListAvailablePhoneNumberNational**](docs/DefaultApi.md#listavailablephonenumbernational) | **Get** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/National.json | +*DefaultApi* | [**ListAvailablePhoneNumberSharedCost**](docs/DefaultApi.md#listavailablephonenumbersharedcost) | **Get** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/SharedCost.json | +*DefaultApi* | [**ListAvailablePhoneNumberTollFree**](docs/DefaultApi.md#listavailablephonenumbertollfree) | **Get** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/TollFree.json | +*DefaultApi* | [**ListAvailablePhoneNumberVoip**](docs/DefaultApi.md#listavailablephonenumbervoip) | **Get** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Voip.json | +*DefaultApi* | [**ListCall**](docs/DefaultApi.md#listcall) | **Get** /2010-04-01/Accounts/{AccountSid}/Calls.json | +*DefaultApi* | [**ListCallEvent**](docs/DefaultApi.md#listcallevent) | **Get** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Events.json | +*DefaultApi* | [**ListCallNotification**](docs/DefaultApi.md#listcallnotification) | **Get** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications.json | +*DefaultApi* | [**ListCallRecording**](docs/DefaultApi.md#listcallrecording) | **Get** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json | +*DefaultApi* | [**ListConference**](docs/DefaultApi.md#listconference) | **Get** /2010-04-01/Accounts/{AccountSid}/Conferences.json | +*DefaultApi* | [**ListConferenceRecording**](docs/DefaultApi.md#listconferencerecording) | **Get** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings.json | +*DefaultApi* | [**ListConnectApp**](docs/DefaultApi.md#listconnectapp) | **Get** /2010-04-01/Accounts/{AccountSid}/ConnectApps.json | +*DefaultApi* | [**ListDependentPhoneNumber**](docs/DefaultApi.md#listdependentphonenumber) | **Get** /2010-04-01/Accounts/{AccountSid}/Addresses/{AddressSid}/DependentPhoneNumbers.json | +*DefaultApi* | [**ListIncomingPhoneNumber**](docs/DefaultApi.md#listincomingphonenumber) | **Get** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json | +*DefaultApi* | [**ListIncomingPhoneNumberAssignedAddOn**](docs/DefaultApi.md#listincomingphonenumberassignedaddon) | **Get** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json | +*DefaultApi* | [**ListIncomingPhoneNumberAssignedAddOnExtension**](docs/DefaultApi.md#listincomingphonenumberassignedaddonextension) | **Get** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions.json | +*DefaultApi* | [**ListIncomingPhoneNumberLocal**](docs/DefaultApi.md#listincomingphonenumberlocal) | **Get** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json | +*DefaultApi* | [**ListIncomingPhoneNumberMobile**](docs/DefaultApi.md#listincomingphonenumbermobile) | **Get** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json | +*DefaultApi* | [**ListIncomingPhoneNumberTollFree**](docs/DefaultApi.md#listincomingphonenumbertollfree) | **Get** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json | +*DefaultApi* | [**ListKey**](docs/DefaultApi.md#listkey) | **Get** /2010-04-01/Accounts/{AccountSid}/Keys.json | +*DefaultApi* | [**ListMedia**](docs/DefaultApi.md#listmedia) | **Get** /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media.json | +*DefaultApi* | [**ListMember**](docs/DefaultApi.md#listmember) | **Get** /2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members.json | +*DefaultApi* | [**ListMessage**](docs/DefaultApi.md#listmessage) | **Get** /2010-04-01/Accounts/{AccountSid}/Messages.json | +*DefaultApi* | [**ListNotification**](docs/DefaultApi.md#listnotification) | **Get** /2010-04-01/Accounts/{AccountSid}/Notifications.json | +*DefaultApi* | [**ListOutgoingCallerId**](docs/DefaultApi.md#listoutgoingcallerid) | **Get** /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json | +*DefaultApi* | [**ListParticipant**](docs/DefaultApi.md#listparticipant) | **Get** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json | +*DefaultApi* | [**ListQueue**](docs/DefaultApi.md#listqueue) | **Get** /2010-04-01/Accounts/{AccountSid}/Queues.json | +*DefaultApi* | [**ListRecording**](docs/DefaultApi.md#listrecording) | **Get** /2010-04-01/Accounts/{AccountSid}/Recordings.json | +*DefaultApi* | [**ListRecordingAddOnResult**](docs/DefaultApi.md#listrecordingaddonresult) | **Get** /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults.json | +*DefaultApi* | [**ListRecordingAddOnResultPayload**](docs/DefaultApi.md#listrecordingaddonresultpayload) | **Get** /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads.json | +*DefaultApi* | [**ListRecordingTranscription**](docs/DefaultApi.md#listrecordingtranscription) | **Get** /2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions.json | +*DefaultApi* | [**ListShortCode**](docs/DefaultApi.md#listshortcode) | **Get** /2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes.json | +*DefaultApi* | [**ListSigningKey**](docs/DefaultApi.md#listsigningkey) | **Get** /2010-04-01/Accounts/{AccountSid}/SigningKeys.json | +*DefaultApi* | [**ListSipAuthCallsCredentialListMapping**](docs/DefaultApi.md#listsipauthcallscredentiallistmapping) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings.json | +*DefaultApi* | [**ListSipAuthCallsIpAccessControlListMapping**](docs/DefaultApi.md#listsipauthcallsipaccesscontrollistmapping) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings.json | +*DefaultApi* | [**ListSipAuthRegistrationsCredentialListMapping**](docs/DefaultApi.md#listsipauthregistrationscredentiallistmapping) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings.json | +*DefaultApi* | [**ListSipCredential**](docs/DefaultApi.md#listsipcredential) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json | +*DefaultApi* | [**ListSipCredentialList**](docs/DefaultApi.md#listsipcredentiallist) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists.json | +*DefaultApi* | [**ListSipCredentialListMapping**](docs/DefaultApi.md#listsipcredentiallistmapping) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings.json | +*DefaultApi* | [**ListSipDomain**](docs/DefaultApi.md#listsipdomain) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/Domains.json | +*DefaultApi* | [**ListSipIpAccessControlList**](docs/DefaultApi.md#listsipipaccesscontrollist) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists.json | +*DefaultApi* | [**ListSipIpAccessControlListMapping**](docs/DefaultApi.md#listsipipaccesscontrollistmapping) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings.json | +*DefaultApi* | [**ListSipIpAddress**](docs/DefaultApi.md#listsipipaddress) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses.json | +*DefaultApi* | [**ListTranscription**](docs/DefaultApi.md#listtranscription) | **Get** /2010-04-01/Accounts/{AccountSid}/Transcriptions.json | +*DefaultApi* | [**ListUsageRecord**](docs/DefaultApi.md#listusagerecord) | **Get** /2010-04-01/Accounts/{AccountSid}/Usage/Records.json | +*DefaultApi* | [**ListUsageRecordAllTime**](docs/DefaultApi.md#listusagerecordalltime) | **Get** /2010-04-01/Accounts/{AccountSid}/Usage/Records/AllTime.json | +*DefaultApi* | [**ListUsageRecordDaily**](docs/DefaultApi.md#listusagerecorddaily) | **Get** /2010-04-01/Accounts/{AccountSid}/Usage/Records/Daily.json | +*DefaultApi* | [**ListUsageRecordLastMonth**](docs/DefaultApi.md#listusagerecordlastmonth) | **Get** /2010-04-01/Accounts/{AccountSid}/Usage/Records/LastMonth.json | +*DefaultApi* | [**ListUsageRecordMonthly**](docs/DefaultApi.md#listusagerecordmonthly) | **Get** /2010-04-01/Accounts/{AccountSid}/Usage/Records/Monthly.json | +*DefaultApi* | [**ListUsageRecordThisMonth**](docs/DefaultApi.md#listusagerecordthismonth) | **Get** /2010-04-01/Accounts/{AccountSid}/Usage/Records/ThisMonth.json | +*DefaultApi* | [**ListUsageRecordToday**](docs/DefaultApi.md#listusagerecordtoday) | **Get** /2010-04-01/Accounts/{AccountSid}/Usage/Records/Today.json | +*DefaultApi* | [**ListUsageRecordYearly**](docs/DefaultApi.md#listusagerecordyearly) | **Get** /2010-04-01/Accounts/{AccountSid}/Usage/Records/Yearly.json | +*DefaultApi* | [**ListUsageRecordYesterday**](docs/DefaultApi.md#listusagerecordyesterday) | **Get** /2010-04-01/Accounts/{AccountSid}/Usage/Records/Yesterday.json | +*DefaultApi* | [**ListUsageTrigger**](docs/DefaultApi.md#listusagetrigger) | **Get** /2010-04-01/Accounts/{AccountSid}/Usage/Triggers.json | +*DefaultApi* | [**UpdateAccount**](docs/DefaultApi.md#updateaccount) | **Post** /2010-04-01/Accounts/{Sid}.json | +*DefaultApi* | [**UpdateAddress**](docs/DefaultApi.md#updateaddress) | **Post** /2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json | +*DefaultApi* | [**UpdateApplication**](docs/DefaultApi.md#updateapplication) | **Post** /2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json | +*DefaultApi* | [**UpdateCall**](docs/DefaultApi.md#updatecall) | **Post** /2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json | +*DefaultApi* | [**UpdateCallFeedback**](docs/DefaultApi.md#updatecallfeedback) | **Post** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Feedback.json | +*DefaultApi* | [**UpdateCallRecording**](docs/DefaultApi.md#updatecallrecording) | **Post** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json | +*DefaultApi* | [**UpdateConference**](docs/DefaultApi.md#updateconference) | **Post** /2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json | +*DefaultApi* | [**UpdateConferenceRecording**](docs/DefaultApi.md#updateconferencerecording) | **Post** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json | +*DefaultApi* | [**UpdateConnectApp**](docs/DefaultApi.md#updateconnectapp) | **Post** /2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json | +*DefaultApi* | [**UpdateIncomingPhoneNumber**](docs/DefaultApi.md#updateincomingphonenumber) | **Post** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json | +*DefaultApi* | [**UpdateKey**](docs/DefaultApi.md#updatekey) | **Post** /2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json | +*DefaultApi* | [**UpdateMember**](docs/DefaultApi.md#updatemember) | **Post** /2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json | +*DefaultApi* | [**UpdateMessage**](docs/DefaultApi.md#updatemessage) | **Post** /2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json | +*DefaultApi* | [**UpdateOutgoingCallerId**](docs/DefaultApi.md#updateoutgoingcallerid) | **Post** /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json | +*DefaultApi* | [**UpdateParticipant**](docs/DefaultApi.md#updateparticipant) | **Post** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json | +*DefaultApi* | [**UpdatePayments**](docs/DefaultApi.md#updatepayments) | **Post** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments/{Sid}.json | +*DefaultApi* | [**UpdateQueue**](docs/DefaultApi.md#updatequeue) | **Post** /2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json | +*DefaultApi* | [**UpdateShortCode**](docs/DefaultApi.md#updateshortcode) | **Post** /2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes/{Sid}.json | +*DefaultApi* | [**UpdateSigningKey**](docs/DefaultApi.md#updatesigningkey) | **Post** /2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json | +*DefaultApi* | [**UpdateSipCredential**](docs/DefaultApi.md#updatesipcredential) | **Post** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json | +*DefaultApi* | [**UpdateSipCredentialList**](docs/DefaultApi.md#updatesipcredentiallist) | **Post** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json | +*DefaultApi* | [**UpdateSipDomain**](docs/DefaultApi.md#updatesipdomain) | **Post** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json | +*DefaultApi* | [**UpdateSipIpAccessControlList**](docs/DefaultApi.md#updatesipipaccesscontrollist) | **Post** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json | +*DefaultApi* | [**UpdateSipIpAddress**](docs/DefaultApi.md#updatesipipaddress) | **Post** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json | +*DefaultApi* | [**UpdateUsageTrigger**](docs/DefaultApi.md#updateusagetrigger) | **Post** /2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json | + + +## Documentation For Models + + - [ApiV2010Account](docs/ApiV2010Account.md) + - [ApiV2010AccountAddress](docs/ApiV2010AccountAddress.md) + - [ApiV2010AccountAddressDependentPhoneNumber](docs/ApiV2010AccountAddressDependentPhoneNumber.md) + - [ApiV2010AccountAddressDependentPhoneNumberReadResponse](docs/ApiV2010AccountAddressDependentPhoneNumberReadResponse.md) + - [ApiV2010AccountAddressReadResponse](docs/ApiV2010AccountAddressReadResponse.md) + - [ApiV2010AccountApplication](docs/ApiV2010AccountApplication.md) + - [ApiV2010AccountApplicationReadResponse](docs/ApiV2010AccountApplicationReadResponse.md) + - [ApiV2010AccountAuthorizedConnectApp](docs/ApiV2010AccountAuthorizedConnectApp.md) + - [ApiV2010AccountAuthorizedConnectAppReadResponse](docs/ApiV2010AccountAuthorizedConnectAppReadResponse.md) + - [ApiV2010AccountAvailablePhoneNumberCountry](docs/ApiV2010AccountAvailablePhoneNumberCountry.md) + - [ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocal](docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocal.md) + - [ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse](docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse.md) + - [ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachine](docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachine.md) + - [ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse](docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse.md) + - [ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobile](docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobile.md) + - [ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse](docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse.md) + - [ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNational](docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNational.md) + - [ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse](docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse.md) + - [ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCost](docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCost.md) + - [ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse](docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse.md) + - [ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFree](docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFree.md) + - [ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse](docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse.md) + - [ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoip](docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoip.md) + - [ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse](docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse.md) + - [ApiV2010AccountAvailablePhoneNumberCountryReadResponse](docs/ApiV2010AccountAvailablePhoneNumberCountryReadResponse.md) + - [ApiV2010AccountBalance](docs/ApiV2010AccountBalance.md) + - [ApiV2010AccountCall](docs/ApiV2010AccountCall.md) + - [ApiV2010AccountCallCallEvent](docs/ApiV2010AccountCallCallEvent.md) + - [ApiV2010AccountCallCallEventReadResponse](docs/ApiV2010AccountCallCallEventReadResponse.md) + - [ApiV2010AccountCallCallFeedback](docs/ApiV2010AccountCallCallFeedback.md) + - [ApiV2010AccountCallCallFeedbackSummary](docs/ApiV2010AccountCallCallFeedbackSummary.md) + - [ApiV2010AccountCallCallNotification](docs/ApiV2010AccountCallCallNotification.md) + - [ApiV2010AccountCallCallNotificationInstance](docs/ApiV2010AccountCallCallNotificationInstance.md) + - [ApiV2010AccountCallCallNotificationReadResponse](docs/ApiV2010AccountCallCallNotificationReadResponse.md) + - [ApiV2010AccountCallCallRecording](docs/ApiV2010AccountCallCallRecording.md) + - [ApiV2010AccountCallCallRecordingReadResponse](docs/ApiV2010AccountCallCallRecordingReadResponse.md) + - [ApiV2010AccountCallPayments](docs/ApiV2010AccountCallPayments.md) + - [ApiV2010AccountCallReadResponse](docs/ApiV2010AccountCallReadResponse.md) + - [ApiV2010AccountConference](docs/ApiV2010AccountConference.md) + - [ApiV2010AccountConferenceConferenceRecording](docs/ApiV2010AccountConferenceConferenceRecording.md) + - [ApiV2010AccountConferenceConferenceRecordingReadResponse](docs/ApiV2010AccountConferenceConferenceRecordingReadResponse.md) + - [ApiV2010AccountConferenceParticipant](docs/ApiV2010AccountConferenceParticipant.md) + - [ApiV2010AccountConferenceParticipantReadResponse](docs/ApiV2010AccountConferenceParticipantReadResponse.md) + - [ApiV2010AccountConferenceReadResponse](docs/ApiV2010AccountConferenceReadResponse.md) + - [ApiV2010AccountConnectApp](docs/ApiV2010AccountConnectApp.md) + - [ApiV2010AccountConnectAppReadResponse](docs/ApiV2010AccountConnectAppReadResponse.md) + - [ApiV2010AccountIncomingPhoneNumber](docs/ApiV2010AccountIncomingPhoneNumber.md) + - [ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn](docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn.md) + - [ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension](docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension.md) + - [ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse](docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse.md) + - [ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse](docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse.md) + - [ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocal](docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocal.md) + - [ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse](docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse.md) + - [ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobile](docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobile.md) + - [ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse](docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse.md) + - [ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFree](docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFree.md) + - [ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse](docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse.md) + - [ApiV2010AccountIncomingPhoneNumberReadResponse](docs/ApiV2010AccountIncomingPhoneNumberReadResponse.md) + - [ApiV2010AccountKey](docs/ApiV2010AccountKey.md) + - [ApiV2010AccountKeyReadResponse](docs/ApiV2010AccountKeyReadResponse.md) + - [ApiV2010AccountMessage](docs/ApiV2010AccountMessage.md) + - [ApiV2010AccountMessageMedia](docs/ApiV2010AccountMessageMedia.md) + - [ApiV2010AccountMessageMediaReadResponse](docs/ApiV2010AccountMessageMediaReadResponse.md) + - [ApiV2010AccountMessageMessageFeedback](docs/ApiV2010AccountMessageMessageFeedback.md) + - [ApiV2010AccountMessageReadResponse](docs/ApiV2010AccountMessageReadResponse.md) + - [ApiV2010AccountNewKey](docs/ApiV2010AccountNewKey.md) + - [ApiV2010AccountNewSigningKey](docs/ApiV2010AccountNewSigningKey.md) + - [ApiV2010AccountNotification](docs/ApiV2010AccountNotification.md) + - [ApiV2010AccountNotificationInstance](docs/ApiV2010AccountNotificationInstance.md) + - [ApiV2010AccountNotificationReadResponse](docs/ApiV2010AccountNotificationReadResponse.md) + - [ApiV2010AccountOutgoingCallerId](docs/ApiV2010AccountOutgoingCallerId.md) + - [ApiV2010AccountOutgoingCallerIdReadResponse](docs/ApiV2010AccountOutgoingCallerIdReadResponse.md) + - [ApiV2010AccountQueue](docs/ApiV2010AccountQueue.md) + - [ApiV2010AccountQueueMember](docs/ApiV2010AccountQueueMember.md) + - [ApiV2010AccountQueueMemberReadResponse](docs/ApiV2010AccountQueueMemberReadResponse.md) + - [ApiV2010AccountQueueReadResponse](docs/ApiV2010AccountQueueReadResponse.md) + - [ApiV2010AccountReadResponse](docs/ApiV2010AccountReadResponse.md) + - [ApiV2010AccountRecording](docs/ApiV2010AccountRecording.md) + - [ApiV2010AccountRecordingReadResponse](docs/ApiV2010AccountRecordingReadResponse.md) + - [ApiV2010AccountRecordingRecordingAddOnResult](docs/ApiV2010AccountRecordingRecordingAddOnResult.md) + - [ApiV2010AccountRecordingRecordingAddOnResultReadResponse](docs/ApiV2010AccountRecordingRecordingAddOnResultReadResponse.md) + - [ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayload](docs/ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayload.md) + - [ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse](docs/ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse.md) + - [ApiV2010AccountRecordingRecordingTranscription](docs/ApiV2010AccountRecordingRecordingTranscription.md) + - [ApiV2010AccountRecordingRecordingTranscriptionReadResponse](docs/ApiV2010AccountRecordingRecordingTranscriptionReadResponse.md) + - [ApiV2010AccountShortCode](docs/ApiV2010AccountShortCode.md) + - [ApiV2010AccountShortCodeReadResponse](docs/ApiV2010AccountShortCodeReadResponse.md) + - [ApiV2010AccountSigningKey](docs/ApiV2010AccountSigningKey.md) + - [ApiV2010AccountSigningKeyReadResponse](docs/ApiV2010AccountSigningKeyReadResponse.md) + - [ApiV2010AccountSipSipCredentialList](docs/ApiV2010AccountSipSipCredentialList.md) + - [ApiV2010AccountSipSipCredentialListReadResponse](docs/ApiV2010AccountSipSipCredentialListReadResponse.md) + - [ApiV2010AccountSipSipCredentialListSipCredential](docs/ApiV2010AccountSipSipCredentialListSipCredential.md) + - [ApiV2010AccountSipSipCredentialListSipCredentialReadResponse](docs/ApiV2010AccountSipSipCredentialListSipCredentialReadResponse.md) + - [ApiV2010AccountSipSipDomain](docs/ApiV2010AccountSipSipDomain.md) + - [ApiV2010AccountSipSipDomainReadResponse](docs/ApiV2010AccountSipSipDomainReadResponse.md) + - [ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping](docs/ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping.md) + - [ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse](docs/ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse.md) + - [ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping](docs/ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping.md) + - [ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse](docs/ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse.md) + - [ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping](docs/ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping.md) + - [ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse](docs/ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse.md) + - [ApiV2010AccountSipSipDomainSipCredentialListMapping](docs/ApiV2010AccountSipSipDomainSipCredentialListMapping.md) + - [ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse](docs/ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse.md) + - [ApiV2010AccountSipSipDomainSipIpAccessControlListMapping](docs/ApiV2010AccountSipSipDomainSipIpAccessControlListMapping.md) + - [ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse](docs/ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse.md) + - [ApiV2010AccountSipSipIpAccessControlList](docs/ApiV2010AccountSipSipIpAccessControlList.md) + - [ApiV2010AccountSipSipIpAccessControlListReadResponse](docs/ApiV2010AccountSipSipIpAccessControlListReadResponse.md) + - [ApiV2010AccountSipSipIpAccessControlListSipIpAddress](docs/ApiV2010AccountSipSipIpAccessControlListSipIpAddress.md) + - [ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse](docs/ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse.md) + - [ApiV2010AccountToken](docs/ApiV2010AccountToken.md) + - [ApiV2010AccountTranscription](docs/ApiV2010AccountTranscription.md) + - [ApiV2010AccountTranscriptionReadResponse](docs/ApiV2010AccountTranscriptionReadResponse.md) + - [ApiV2010AccountUsageUsageRecord](docs/ApiV2010AccountUsageUsageRecord.md) + - [ApiV2010AccountUsageUsageRecordReadResponse](docs/ApiV2010AccountUsageUsageRecordReadResponse.md) + - [ApiV2010AccountUsageUsageRecordUsageRecordAllTime](docs/ApiV2010AccountUsageUsageRecordUsageRecordAllTime.md) + - [ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse](docs/ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse.md) + - [ApiV2010AccountUsageUsageRecordUsageRecordDaily](docs/ApiV2010AccountUsageUsageRecordUsageRecordDaily.md) + - [ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse](docs/ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse.md) + - [ApiV2010AccountUsageUsageRecordUsageRecordLastMonth](docs/ApiV2010AccountUsageUsageRecordUsageRecordLastMonth.md) + - [ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse](docs/ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse.md) + - [ApiV2010AccountUsageUsageRecordUsageRecordMonthly](docs/ApiV2010AccountUsageUsageRecordUsageRecordMonthly.md) + - [ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse](docs/ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse.md) + - [ApiV2010AccountUsageUsageRecordUsageRecordThisMonth](docs/ApiV2010AccountUsageUsageRecordUsageRecordThisMonth.md) + - [ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse](docs/ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse.md) + - [ApiV2010AccountUsageUsageRecordUsageRecordToday](docs/ApiV2010AccountUsageUsageRecordUsageRecordToday.md) + - [ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse](docs/ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse.md) + - [ApiV2010AccountUsageUsageRecordUsageRecordYearly](docs/ApiV2010AccountUsageUsageRecordUsageRecordYearly.md) + - [ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse](docs/ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse.md) + - [ApiV2010AccountUsageUsageRecordUsageRecordYesterday](docs/ApiV2010AccountUsageUsageRecordUsageRecordYesterday.md) + - [ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse](docs/ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse.md) + - [ApiV2010AccountUsageUsageTrigger](docs/ApiV2010AccountUsageUsageTrigger.md) + - [ApiV2010AccountUsageUsageTriggerReadResponse](docs/ApiV2010AccountUsageUsageTriggerReadResponse.md) + - [ApiV2010AccountValidationRequest](docs/ApiV2010AccountValidationRequest.md) + - [CreateAccountRequest](docs/CreateAccountRequest.md) + - [CreateAddressRequest](docs/CreateAddressRequest.md) + - [CreateApplicationRequest](docs/CreateApplicationRequest.md) + - [CreateCallFeedbackSummaryRequest](docs/CreateCallFeedbackSummaryRequest.md) + - [CreateCallRecordingRequest](docs/CreateCallRecordingRequest.md) + - [CreateCallRequest](docs/CreateCallRequest.md) + - [CreateIncomingPhoneNumberAssignedAddOnRequest](docs/CreateIncomingPhoneNumberAssignedAddOnRequest.md) + - [CreateIncomingPhoneNumberLocalRequest](docs/CreateIncomingPhoneNumberLocalRequest.md) + - [CreateIncomingPhoneNumberMobileRequest](docs/CreateIncomingPhoneNumberMobileRequest.md) + - [CreateIncomingPhoneNumberRequest](docs/CreateIncomingPhoneNumberRequest.md) + - [CreateIncomingPhoneNumberTollFreeRequest](docs/CreateIncomingPhoneNumberTollFreeRequest.md) + - [CreateMessageFeedbackRequest](docs/CreateMessageFeedbackRequest.md) + - [CreateMessageRequest](docs/CreateMessageRequest.md) + - [CreateNewKeyRequest](docs/CreateNewKeyRequest.md) + - [CreateNewSigningKeyRequest](docs/CreateNewSigningKeyRequest.md) + - [CreateParticipantRequest](docs/CreateParticipantRequest.md) + - [CreatePaymentsRequest](docs/CreatePaymentsRequest.md) + - [CreateQueueRequest](docs/CreateQueueRequest.md) + - [CreateSipAuthCallsCredentialListMappingRequest](docs/CreateSipAuthCallsCredentialListMappingRequest.md) + - [CreateSipAuthCallsIpAccessControlListMappingRequest](docs/CreateSipAuthCallsIpAccessControlListMappingRequest.md) + - [CreateSipAuthRegistrationsCredentialListMappingRequest](docs/CreateSipAuthRegistrationsCredentialListMappingRequest.md) + - [CreateSipCredentialListMappingRequest](docs/CreateSipCredentialListMappingRequest.md) + - [CreateSipCredentialListRequest](docs/CreateSipCredentialListRequest.md) + - [CreateSipCredentialRequest](docs/CreateSipCredentialRequest.md) + - [CreateSipDomainRequest](docs/CreateSipDomainRequest.md) + - [CreateSipIpAccessControlListMappingRequest](docs/CreateSipIpAccessControlListMappingRequest.md) + - [CreateSipIpAccessControlListRequest](docs/CreateSipIpAccessControlListRequest.md) + - [CreateSipIpAddressRequest](docs/CreateSipIpAddressRequest.md) + - [CreateTokenRequest](docs/CreateTokenRequest.md) + - [CreateUsageTriggerRequest](docs/CreateUsageTriggerRequest.md) + - [CreateValidationRequestRequest](docs/CreateValidationRequestRequest.md) + - [UpdateAccountRequest](docs/UpdateAccountRequest.md) + - [UpdateAddressRequest](docs/UpdateAddressRequest.md) + - [UpdateApplicationRequest](docs/UpdateApplicationRequest.md) + - [UpdateCallFeedbackRequest](docs/UpdateCallFeedbackRequest.md) + - [UpdateCallRecordingRequest](docs/UpdateCallRecordingRequest.md) + - [UpdateCallRequest](docs/UpdateCallRequest.md) + - [UpdateConferenceRecordingRequest](docs/UpdateConferenceRecordingRequest.md) + - [UpdateConferenceRequest](docs/UpdateConferenceRequest.md) + - [UpdateConnectAppRequest](docs/UpdateConnectAppRequest.md) + - [UpdateIncomingPhoneNumberRequest](docs/UpdateIncomingPhoneNumberRequest.md) + - [UpdateKeyRequest](docs/UpdateKeyRequest.md) + - [UpdateMemberRequest](docs/UpdateMemberRequest.md) + - [UpdateMessageRequest](docs/UpdateMessageRequest.md) + - [UpdateOutgoingCallerIdRequest](docs/UpdateOutgoingCallerIdRequest.md) + - [UpdateParticipantRequest](docs/UpdateParticipantRequest.md) + - [UpdatePaymentsRequest](docs/UpdatePaymentsRequest.md) + - [UpdateQueueRequest](docs/UpdateQueueRequest.md) + - [UpdateShortCodeRequest](docs/UpdateShortCodeRequest.md) + - [UpdateSigningKeyRequest](docs/UpdateSigningKeyRequest.md) + - [UpdateSipCredentialListRequest](docs/UpdateSipCredentialListRequest.md) + - [UpdateSipCredentialRequest](docs/UpdateSipCredentialRequest.md) + - [UpdateSipDomainRequest](docs/UpdateSipDomainRequest.md) + - [UpdateSipIpAccessControlListRequest](docs/UpdateSipIpAccessControlListRequest.md) + - [UpdateSipIpAddressRequest](docs/UpdateSipIpAddressRequest.md) + - [UpdateUsageTriggerRequest](docs/UpdateUsageTriggerRequest.md) + + +## Documentation For Authorization + + + +## accountSid_authToken + +- **Type**: HTTP basic authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ + UserName: "username", + Password: "password", +}) +r, err := client.Service.Operation(auth, args) +``` + + +## Author + +support@twilio.com + diff --git a/rest/api/v2010/api_default.go b/rest/api/v2010/api_default.go new file mode 100644 index 000000000..8d7f9f492 --- /dev/null +++ b/rest/api/v2010/api_default.go @@ -0,0 +1,9894 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "" +) + +type DefaultApiService struct { + baseURL string + client *twilio.Client +} + +func NewDefaultApiService(client *twilio.Client) *DefaultApiService { + return &DefaultApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} +// CreateAccountParams Optional parameters for the method 'CreateAccount' +type CreateAccountParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +CreateAccount Method for CreateAccount +Create a new Twilio Subaccount from the account making the request + * @param optional nil or *CreateAccountOpts - Optional Parameters: + * @param "FriendlyName" (string) - A human readable description of the account to create, defaults to `SubAccount Created at {YYYY-MM-DD HH:MM meridian}` +@return ApiV2010Account +*/ +func (c *DefaultApiService) CreateAccount(params *CreateAccountParams) (*ApiV2010Account, error) { + path := "/2010-04-01/Accounts.json" + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010Account{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateAddressParams Optional parameters for the method 'CreateAddress' +type CreateAddressParams struct { + AutoCorrectAddress *bool `json:"AutoCorrectAddress,omitempty"` + City *string `json:"City,omitempty"` + CustomerName *string `json:"CustomerName,omitempty"` + EmergencyEnabled *bool `json:"EmergencyEnabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IsoCountry *string `json:"IsoCountry,omitempty"` + PostalCode *string `json:"PostalCode,omitempty"` + Region *string `json:"Region,omitempty"` + Street *string `json:"Street,omitempty"` +} + +/* +CreateAddress Method for CreateAddress + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will be responsible for the new Address resource. + * @param optional nil or *CreateAddressOpts - Optional Parameters: + * @param "AutoCorrectAddress" (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. + * @param "City" (string) - The city of the new address. + * @param "CustomerName" (string) - The name to associate with the new address. + * @param "EmergencyEnabled" (bool) - Whether to enable emergency calling on the new address. Can be: `true` or `false`. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the new address. It can be up to 64 characters long. + * @param "IsoCountry" (string) - The ISO country code of the new address. + * @param "PostalCode" (string) - The postal code of the new address. + * @param "Region" (string) - The state or region of the new address. + * @param "Street" (string) - The number and street address of the new address. +@return ApiV2010AccountAddress +*/ +func (c *DefaultApiService) CreateAddress(accountSid string, params *CreateAddressParams) (*ApiV2010AccountAddress, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Addresses.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AutoCorrectAddress != nil { + data.Set("AutoCorrectAddress", string(*params.AutoCorrectAddress)) + } + if params != nil && params.City != nil { + data.Set("City", *params.City) + } + if params != nil && params.CustomerName != nil { + data.Set("CustomerName", *params.CustomerName) + } + if params != nil && params.EmergencyEnabled != nil { + data.Set("EmergencyEnabled", string(*params.EmergencyEnabled)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.IsoCountry != nil { + data.Set("IsoCountry", *params.IsoCountry) + } + if params != nil && params.PostalCode != nil { + data.Set("PostalCode", *params.PostalCode) + } + if params != nil && params.Region != nil { + data.Set("Region", *params.Region) + } + if params != nil && params.Street != nil { + data.Set("Street", *params.Street) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountAddress{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateApplicationParams Optional parameters for the method 'CreateApplication' +type CreateApplicationParams struct { + ApiVersion *string `json:"ApiVersion,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + MessageStatusCallback *string `json:"MessageStatusCallback,omitempty"` + SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` + SmsMethod *string `json:"SmsMethod,omitempty"` + SmsStatusCallback *string `json:"SmsStatusCallback,omitempty"` + SmsUrl *string `json:"SmsUrl,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + VoiceCallerIdLookup *bool `json:"VoiceCallerIdLookup,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` +} + +/* +CreateApplication Method for CreateApplication +Create a new application within your account + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param optional nil or *CreateApplicationOpts - Optional Parameters: + * @param "ApiVersion" (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. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the new application. It can be up to 64 characters long. + * @param "MessageStatusCallback" (string) - The URL we should call using a POST method to send message status information to your application. + * @param "SmsFallbackMethod" (string) - The HTTP method we should use to call `sms_fallback_url`. Can be: `GET` or `POST`. + * @param "SmsFallbackUrl" (string) - The URL that we should call when an error occurs while retrieving or executing the TwiML from `sms_url`. + * @param "SmsMethod" (string) - The HTTP method we should use to call `sms_url`. Can be: `GET` or `POST`. + * @param "SmsStatusCallback" (string) - The URL we should call using a POST method to send status information about SMS messages sent by the application. + * @param "SmsUrl" (string) - The URL we should call when the phone number receives an incoming SMS message. + * @param "StatusCallback" (string) - The URL we should call using the `status_callback_method` to send status information to your application. + * @param "StatusCallbackMethod" (string) - The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST`. + * @param "VoiceCallerIdLookup" (bool) - Whether we should look up the caller's caller-ID name from the CNAM database (additional charges apply). Can be: `true` or `false`. + * @param "VoiceFallbackMethod" (string) - The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. + * @param "VoiceFallbackUrl" (string) - The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. + * @param "VoiceMethod" (string) - The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`. + * @param "VoiceUrl" (string) - The URL we should call when the phone number assigned to this application receives a call. +@return ApiV2010AccountApplication +*/ +func (c *DefaultApiService) CreateApplication(accountSid string, params *CreateApplicationParams) (*ApiV2010AccountApplication, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Applications.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ApiVersion != nil { + data.Set("ApiVersion", *params.ApiVersion) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.MessageStatusCallback != nil { + data.Set("MessageStatusCallback", *params.MessageStatusCallback) + } + if params != nil && params.SmsFallbackMethod != nil { + data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) + } + if params != nil && params.SmsFallbackUrl != nil { + data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) + } + if params != nil && params.SmsMethod != nil { + data.Set("SmsMethod", *params.SmsMethod) + } + if params != nil && params.SmsStatusCallback != nil { + data.Set("SmsStatusCallback", *params.SmsStatusCallback) + } + if params != nil && params.SmsUrl != nil { + data.Set("SmsUrl", *params.SmsUrl) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.VoiceCallerIdLookup != nil { + data.Set("VoiceCallerIdLookup", string(*params.VoiceCallerIdLookup)) + } + if params != nil && params.VoiceFallbackMethod != nil { + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + } + if params != nil && params.VoiceFallbackUrl != nil { + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + } + if params != nil && params.VoiceMethod != nil { + data.Set("VoiceMethod", *params.VoiceMethod) + } + if params != nil && params.VoiceUrl != nil { + data.Set("VoiceUrl", *params.VoiceUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountApplication{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateCallParams Optional parameters for the method 'CreateCall' +type CreateCallParams struct { + ApplicationSid *string `json:"ApplicationSid,omitempty"` + AsyncAmd *string `json:"AsyncAmd,omitempty"` + AsyncAmdStatusCallback *string `json:"AsyncAmdStatusCallback,omitempty"` + AsyncAmdStatusCallbackMethod *string `json:"AsyncAmdStatusCallbackMethod,omitempty"` + Byoc *string `json:"Byoc,omitempty"` + CallReason *string `json:"CallReason,omitempty"` + CallerId *string `json:"CallerId,omitempty"` + FallbackMethod *string `json:"FallbackMethod,omitempty"` + FallbackUrl *string `json:"FallbackUrl,omitempty"` + From *string `json:"From,omitempty"` + MachineDetection *string `json:"MachineDetection,omitempty"` + MachineDetectionSilenceTimeout *int32 `json:"MachineDetectionSilenceTimeout,omitempty"` + MachineDetectionSpeechEndThreshold *int32 `json:"MachineDetectionSpeechEndThreshold,omitempty"` + MachineDetectionSpeechThreshold *int32 `json:"MachineDetectionSpeechThreshold,omitempty"` + MachineDetectionTimeout *int32 `json:"MachineDetectionTimeout,omitempty"` + Method *string `json:"Method,omitempty"` + Record *bool `json:"Record,omitempty"` + RecordingChannels *string `json:"RecordingChannels,omitempty"` + RecordingStatusCallback *string `json:"RecordingStatusCallback,omitempty"` + RecordingStatusCallbackEvent *[]string `json:"RecordingStatusCallbackEvent,omitempty"` + RecordingStatusCallbackMethod *string `json:"RecordingStatusCallbackMethod,omitempty"` + RecordingTrack *string `json:"RecordingTrack,omitempty"` + SendDigits *string `json:"SendDigits,omitempty"` + SipAuthPassword *string `json:"SipAuthPassword,omitempty"` + SipAuthUsername *string `json:"SipAuthUsername,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackEvent *[]string `json:"StatusCallbackEvent,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + Timeout *int32 `json:"Timeout,omitempty"` + To *string `json:"To,omitempty"` + Trim *string `json:"Trim,omitempty"` + Twiml *string `json:"Twiml,omitempty"` + Url *string `json:"Url,omitempty"` +} + +/* +CreateCall Method for CreateCall +Create a new outgoing call to phones, SIP-enabled endpoints or Twilio Client connections + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param optional nil or *CreateCallOpts - Optional Parameters: + * @param "ApplicationSid" (string) - The SID of the Application resource that will handle the call, if the call will be handled by an application. + * @param "AsyncAmd" (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`. + * @param "AsyncAmdStatusCallback" (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. + * @param "AsyncAmdStatusCallbackMethod" (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`. + * @param "Byoc" (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) + * @param "CallReason" (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) + * @param "CallerId" (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`. + * @param "FallbackMethod" (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. + * @param "FallbackUrl" (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. + * @param "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. + * @param "MachineDetection" (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). + * @param "MachineDetectionSilenceTimeout" (int32) - The number of milliseconds of initial silence after which an `unknown` AnsweredBy result will be returned. Possible Values: 2000-10000. Default: 5000. + * @param "MachineDetectionSpeechEndThreshold" (int32) - The number of milliseconds of silence after speech activity at which point the speech activity is considered complete. Possible Values: 500-5000. Default: 1200. + * @param "MachineDetectionSpeechThreshold" (int32) - 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. + * @param "MachineDetectionTimeout" (int32) - 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. + * @param "Method" (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. + * @param "Record" (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. + * @param "RecordingChannels" (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. + * @param "RecordingStatusCallback" (string) - The URL that we call when the recording is available to be accessed. + * @param "RecordingStatusCallbackEvent" ([]string) - 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. + * @param "RecordingStatusCallbackMethod" (string) - The HTTP method we should use when calling the `recording_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. + * @param "RecordingTrack" (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. + * @param "SendDigits" (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. + * @param "SipAuthPassword" (string) - The password required to authenticate the user account specified in `sip_auth_username`. + * @param "SipAuthUsername" (string) - The username used to authenticate the caller making a SIP call. + * @param "StatusCallback" (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). + * @param "StatusCallbackEvent" ([]string) - 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. + * @param "StatusCallbackMethod" (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. + * @param "Timeout" (int32) - 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. + * @param "To" (string) - The phone number, SIP address, or client identifier to call. + * @param "Trim" (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`. + * @param "Twiml" (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. + * @param "Url" (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). +@return ApiV2010AccountCall +*/ +func (c *DefaultApiService) CreateCall(accountSid string, params *CreateCallParams) (*ApiV2010AccountCall, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Calls.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ApplicationSid != nil { + data.Set("ApplicationSid", *params.ApplicationSid) + } + if params != nil && params.AsyncAmd != nil { + data.Set("AsyncAmd", *params.AsyncAmd) + } + if params != nil && params.AsyncAmdStatusCallback != nil { + data.Set("AsyncAmdStatusCallback", *params.AsyncAmdStatusCallback) + } + if params != nil && params.AsyncAmdStatusCallbackMethod != nil { + data.Set("AsyncAmdStatusCallbackMethod", *params.AsyncAmdStatusCallbackMethod) + } + if params != nil && params.Byoc != nil { + data.Set("Byoc", *params.Byoc) + } + if params != nil && params.CallReason != nil { + data.Set("CallReason", *params.CallReason) + } + if params != nil && params.CallerId != nil { + data.Set("CallerId", *params.CallerId) + } + if params != nil && params.FallbackMethod != nil { + data.Set("FallbackMethod", *params.FallbackMethod) + } + if params != nil && params.FallbackUrl != nil { + data.Set("FallbackUrl", *params.FallbackUrl) + } + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.MachineDetection != nil { + data.Set("MachineDetection", *params.MachineDetection) + } + if params != nil && params.MachineDetectionSilenceTimeout != nil { + data.Set("MachineDetectionSilenceTimeout", string(*params.MachineDetectionSilenceTimeout)) + } + if params != nil && params.MachineDetectionSpeechEndThreshold != nil { + data.Set("MachineDetectionSpeechEndThreshold", string(*params.MachineDetectionSpeechEndThreshold)) + } + if params != nil && params.MachineDetectionSpeechThreshold != nil { + data.Set("MachineDetectionSpeechThreshold", string(*params.MachineDetectionSpeechThreshold)) + } + if params != nil && params.MachineDetectionTimeout != nil { + data.Set("MachineDetectionTimeout", string(*params.MachineDetectionTimeout)) + } + if params != nil && params.Method != nil { + data.Set("Method", *params.Method) + } + if params != nil && params.Record != nil { + data.Set("Record", string(*params.Record)) + } + if params != nil && params.RecordingChannels != nil { + data.Set("RecordingChannels", *params.RecordingChannels) + } + if params != nil && params.RecordingStatusCallback != nil { + data.Set("RecordingStatusCallback", *params.RecordingStatusCallback) + } + if params != nil && params.RecordingStatusCallbackEvent != nil { + data.Set("RecordingStatusCallbackEvent", *params.RecordingStatusCallbackEvent) + } + if params != nil && params.RecordingStatusCallbackMethod != nil { + data.Set("RecordingStatusCallbackMethod", *params.RecordingStatusCallbackMethod) + } + if params != nil && params.RecordingTrack != nil { + data.Set("RecordingTrack", *params.RecordingTrack) + } + if params != nil && params.SendDigits != nil { + data.Set("SendDigits", *params.SendDigits) + } + if params != nil && params.SipAuthPassword != nil { + data.Set("SipAuthPassword", *params.SipAuthPassword) + } + if params != nil && params.SipAuthUsername != nil { + data.Set("SipAuthUsername", *params.SipAuthUsername) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StatusCallbackEvent != nil { + data.Set("StatusCallbackEvent", *params.StatusCallbackEvent) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.Timeout != nil { + data.Set("Timeout", string(*params.Timeout)) + } + if params != nil && params.To != nil { + data.Set("To", *params.To) + } + if params != nil && params.Trim != nil { + data.Set("Trim", *params.Trim) + } + if params != nil && params.Twiml != nil { + data.Set("Twiml", *params.Twiml) + } + if params != nil && params.Url != nil { + data.Set("Url", *params.Url) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountCall{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateCallFeedbackSummaryParams Optional parameters for the method 'CreateCallFeedbackSummary' +type CreateCallFeedbackSummaryParams struct { + EndDate *time.Time `json:"EndDate,omitempty"` + IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` +} + +/* +CreateCallFeedbackSummary Method for CreateCallFeedbackSummary +Create a FeedbackSummary resource for a call + * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param optional nil or *CreateCallFeedbackSummaryOpts - Optional Parameters: + * @param "EndDate" (time.Time) - Only include feedback given on or before this date. Format is `YYYY-MM-DD` and specified in UTC. + * @param "IncludeSubaccounts" (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. + * @param "StartDate" (time.Time) - Only include feedback given on or after this date. Format is `YYYY-MM-DD` and specified in UTC. + * @param "StatusCallback" (string) - The URL that we will request when the feedback summary is complete. + * @param "StatusCallbackMethod" (string) - The HTTP method (`GET` or `POST`) we use to make the request to the `StatusCallback` URL. +@return ApiV2010AccountCallCallFeedbackSummary +*/ +func (c *DefaultApiService) CreateCallFeedbackSummary(accountSid string, params *CreateCallFeedbackSummaryParams) (*ApiV2010AccountCallCallFeedbackSummary, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.IncludeSubaccounts != nil { + data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountCallCallFeedbackSummary{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateCallRecordingParams Optional parameters for the method 'CreateCallRecording' +type CreateCallRecordingParams struct { + RecordingChannels *string `json:"RecordingChannels,omitempty"` + RecordingStatusCallback *string `json:"RecordingStatusCallback,omitempty"` + RecordingStatusCallbackEvent *[]string `json:"RecordingStatusCallbackEvent,omitempty"` + RecordingStatusCallbackMethod *string `json:"RecordingStatusCallbackMethod,omitempty"` + RecordingTrack *string `json:"RecordingTrack,omitempty"` + Trim *string `json:"Trim,omitempty"` +} + +/* +CreateCallRecording Method for CreateCallRecording +Create a recording for the call + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param callSid The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) to associate the resource with. + * @param optional nil or *CreateCallRecordingOpts - Optional Parameters: + * @param "RecordingChannels" (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. + * @param "RecordingStatusCallback" (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). + * @param "RecordingStatusCallbackEvent" ([]string) - 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. + * @param "RecordingStatusCallbackMethod" (string) - The HTTP method we should use to call `recording_status_callback`. Can be: `GET` or `POST` and the default is `POST`. + * @param "RecordingTrack" (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. + * @param "Trim" (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. +@return ApiV2010AccountCallCallRecording +*/ +func (c *DefaultApiService) CreateCallRecording(accountSid string, callSid string, params *CreateCallRecordingParams) (*ApiV2010AccountCallCallRecording, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.RecordingChannels != nil { + data.Set("RecordingChannels", *params.RecordingChannels) + } + if params != nil && params.RecordingStatusCallback != nil { + data.Set("RecordingStatusCallback", *params.RecordingStatusCallback) + } + if params != nil && params.RecordingStatusCallbackEvent != nil { + data.Set("RecordingStatusCallbackEvent", *params.RecordingStatusCallbackEvent) + } + if params != nil && params.RecordingStatusCallbackMethod != nil { + data.Set("RecordingStatusCallbackMethod", *params.RecordingStatusCallbackMethod) + } + if params != nil && params.RecordingTrack != nil { + data.Set("RecordingTrack", *params.RecordingTrack) + } + if params != nil && params.Trim != nil { + data.Set("Trim", *params.Trim) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountCallCallRecording{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateIncomingPhoneNumberParams Optional parameters for the method 'CreateIncomingPhoneNumber' +type CreateIncomingPhoneNumberParams struct { + AddressSid *string `json:"AddressSid,omitempty"` + ApiVersion *string `json:"ApiVersion,omitempty"` + AreaCode *string `json:"AreaCode,omitempty"` + BundleSid *string `json:"BundleSid,omitempty"` + EmergencyAddressSid *string `json:"EmergencyAddressSid,omitempty"` + EmergencyStatus *string `json:"EmergencyStatus,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IdentitySid *string `json:"IdentitySid,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + SmsApplicationSid *string `json:"SmsApplicationSid,omitempty"` + SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` + SmsMethod *string `json:"SmsMethod,omitempty"` + SmsUrl *string `json:"SmsUrl,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + TrunkSid *string `json:"TrunkSid,omitempty"` + VoiceApplicationSid *string `json:"VoiceApplicationSid,omitempty"` + VoiceCallerIdLookup *bool `json:"VoiceCallerIdLookup,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceReceiveMode *string `json:"VoiceReceiveMode,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` +} + +/* +CreateIncomingPhoneNumber Method for CreateIncomingPhoneNumber +Purchase a phone-number for the account. + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param optional nil or *CreateIncomingPhoneNumberOpts - Optional Parameters: + * @param "AddressSid" (string) - The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. + * @param "ApiVersion" (string) - The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. + * @param "AreaCode" (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). + * @param "BundleSid" (string) - The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. + * @param "EmergencyAddressSid" (string) - The SID of the emergency address configuration to use for emergency calling from the new phone number. + * @param "EmergencyStatus" (string) - The configuration status parameter that determines whether the new phone number is enabled for emergency calling. + * @param "FriendlyName" (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. + * @param "IdentitySid" (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. + * @param "PhoneNumber" (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. + * @param "SmsApplicationSid" (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. + * @param "SmsFallbackMethod" (string) - The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. + * @param "SmsFallbackUrl" (string) - The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. + * @param "SmsMethod" (string) - The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. + * @param "SmsUrl" (string) - The URL we should call when the new phone number receives an incoming SMS message. + * @param "StatusCallback" (string) - The URL we should call using the `status_callback_method` to send status information to your application. + * @param "StatusCallbackMethod" (string) - The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. + * @param "TrunkSid" (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. + * @param "VoiceApplicationSid" (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. + * @param "VoiceCallerIdLookup" (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`. + * @param "VoiceFallbackMethod" (string) - The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. + * @param "VoiceFallbackUrl" (string) - The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. + * @param "VoiceMethod" (string) - The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. + * @param "VoiceReceiveMode" (string) - The configuration parameter for the new phone number to receive incoming voice calls or faxes. Can be: `fax` or `voice` and defaults to `voice`. + * @param "VoiceUrl" (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. +@return ApiV2010AccountIncomingPhoneNumber +*/ +func (c *DefaultApiService) CreateIncomingPhoneNumber(accountSid string, params *CreateIncomingPhoneNumberParams) (*ApiV2010AccountIncomingPhoneNumber, error) { + path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AddressSid != nil { + data.Set("AddressSid", *params.AddressSid) + } + if params != nil && params.ApiVersion != nil { + data.Set("ApiVersion", *params.ApiVersion) + } + if params != nil && params.AreaCode != nil { + data.Set("AreaCode", *params.AreaCode) + } + if params != nil && params.BundleSid != nil { + data.Set("BundleSid", *params.BundleSid) + } + if params != nil && params.EmergencyAddressSid != nil { + data.Set("EmergencyAddressSid", *params.EmergencyAddressSid) + } + if params != nil && params.EmergencyStatus != nil { + data.Set("EmergencyStatus", *params.EmergencyStatus) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.IdentitySid != nil { + data.Set("IdentitySid", *params.IdentitySid) + } + if params != nil && params.PhoneNumber != nil { + data.Set("PhoneNumber", *params.PhoneNumber) + } + if params != nil && params.SmsApplicationSid != nil { + data.Set("SmsApplicationSid", *params.SmsApplicationSid) + } + if params != nil && params.SmsFallbackMethod != nil { + data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) + } + if params != nil && params.SmsFallbackUrl != nil { + data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) + } + if params != nil && params.SmsMethod != nil { + data.Set("SmsMethod", *params.SmsMethod) + } + if params != nil && params.SmsUrl != nil { + data.Set("SmsUrl", *params.SmsUrl) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.TrunkSid != nil { + data.Set("TrunkSid", *params.TrunkSid) + } + if params != nil && params.VoiceApplicationSid != nil { + data.Set("VoiceApplicationSid", *params.VoiceApplicationSid) + } + if params != nil && params.VoiceCallerIdLookup != nil { + data.Set("VoiceCallerIdLookup", string(*params.VoiceCallerIdLookup)) + } + if params != nil && params.VoiceFallbackMethod != nil { + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + } + if params != nil && params.VoiceFallbackUrl != nil { + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + } + if params != nil && params.VoiceMethod != nil { + data.Set("VoiceMethod", *params.VoiceMethod) + } + if params != nil && params.VoiceReceiveMode != nil { + data.Set("VoiceReceiveMode", *params.VoiceReceiveMode) + } + if params != nil && params.VoiceUrl != nil { + data.Set("VoiceUrl", *params.VoiceUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountIncomingPhoneNumber{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateIncomingPhoneNumberAssignedAddOnParams Optional parameters for the method 'CreateIncomingPhoneNumberAssignedAddOn' +type CreateIncomingPhoneNumberAssignedAddOnParams struct { + InstalledAddOnSid *string `json:"InstalledAddOnSid,omitempty"` +} + +/* +CreateIncomingPhoneNumberAssignedAddOn Method for CreateIncomingPhoneNumberAssignedAddOn +Assign an Add-on installation to the Number specified. + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param resourceSid The SID of the Phone Number to assign the Add-on. + * @param optional nil or *CreateIncomingPhoneNumberAssignedAddOnOpts - Optional Parameters: + * @param "InstalledAddOnSid" (string) - The SID that identifies the Add-on installation. +@return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn +*/ +func (c *DefaultApiService) CreateIncomingPhoneNumberAssignedAddOn(accountSid string, resourceSid string, params *CreateIncomingPhoneNumberAssignedAddOnParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn, error) { + path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ResourceSid"+"}", resourceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.InstalledAddOnSid != nil { + data.Set("InstalledAddOnSid", *params.InstalledAddOnSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateIncomingPhoneNumberLocalParams Optional parameters for the method 'CreateIncomingPhoneNumberLocal' +type CreateIncomingPhoneNumberLocalParams struct { + AddressSid *string `json:"AddressSid,omitempty"` + ApiVersion *string `json:"ApiVersion,omitempty"` + BundleSid *string `json:"BundleSid,omitempty"` + EmergencyAddressSid *string `json:"EmergencyAddressSid,omitempty"` + EmergencyStatus *string `json:"EmergencyStatus,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IdentitySid *string `json:"IdentitySid,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + SmsApplicationSid *string `json:"SmsApplicationSid,omitempty"` + SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` + SmsMethod *string `json:"SmsMethod,omitempty"` + SmsUrl *string `json:"SmsUrl,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + TrunkSid *string `json:"TrunkSid,omitempty"` + VoiceApplicationSid *string `json:"VoiceApplicationSid,omitempty"` + VoiceCallerIdLookup *bool `json:"VoiceCallerIdLookup,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceReceiveMode *string `json:"VoiceReceiveMode,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` +} + +/* +CreateIncomingPhoneNumberLocal Method for CreateIncomingPhoneNumberLocal + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param optional nil or *CreateIncomingPhoneNumberLocalOpts - Optional Parameters: + * @param "AddressSid" (string) - The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. + * @param "ApiVersion" (string) - The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. + * @param "BundleSid" (string) - The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. + * @param "EmergencyAddressSid" (string) - The SID of the emergency address configuration to use for emergency calling from the new phone number. + * @param "EmergencyStatus" (string) - The configuration status parameter that determines whether the new phone number is enabled for emergency calling. + * @param "FriendlyName" (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. + * @param "IdentitySid" (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. + * @param "PhoneNumber" (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. + * @param "SmsApplicationSid" (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. + * @param "SmsFallbackMethod" (string) - The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. + * @param "SmsFallbackUrl" (string) - The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. + * @param "SmsMethod" (string) - The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. + * @param "SmsUrl" (string) - The URL we should call when the new phone number receives an incoming SMS message. + * @param "StatusCallback" (string) - The URL we should call using the `status_callback_method` to send status information to your application. + * @param "StatusCallbackMethod" (string) - The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. + * @param "TrunkSid" (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. + * @param "VoiceApplicationSid" (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. + * @param "VoiceCallerIdLookup" (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`. + * @param "VoiceFallbackMethod" (string) - The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. + * @param "VoiceFallbackUrl" (string) - The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. + * @param "VoiceMethod" (string) - The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. + * @param "VoiceReceiveMode" (string) - The configuration parameter for the new phone number to receive incoming voice calls or faxes. Can be: `fax` or `voice` and defaults to `voice`. + * @param "VoiceUrl" (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. +@return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocal +*/ +func (c *DefaultApiService) CreateIncomingPhoneNumberLocal(accountSid string, params *CreateIncomingPhoneNumberLocalParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocal, error) { + path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AddressSid != nil { + data.Set("AddressSid", *params.AddressSid) + } + if params != nil && params.ApiVersion != nil { + data.Set("ApiVersion", *params.ApiVersion) + } + if params != nil && params.BundleSid != nil { + data.Set("BundleSid", *params.BundleSid) + } + if params != nil && params.EmergencyAddressSid != nil { + data.Set("EmergencyAddressSid", *params.EmergencyAddressSid) + } + if params != nil && params.EmergencyStatus != nil { + data.Set("EmergencyStatus", *params.EmergencyStatus) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.IdentitySid != nil { + data.Set("IdentitySid", *params.IdentitySid) + } + if params != nil && params.PhoneNumber != nil { + data.Set("PhoneNumber", *params.PhoneNumber) + } + if params != nil && params.SmsApplicationSid != nil { + data.Set("SmsApplicationSid", *params.SmsApplicationSid) + } + if params != nil && params.SmsFallbackMethod != nil { + data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) + } + if params != nil && params.SmsFallbackUrl != nil { + data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) + } + if params != nil && params.SmsMethod != nil { + data.Set("SmsMethod", *params.SmsMethod) + } + if params != nil && params.SmsUrl != nil { + data.Set("SmsUrl", *params.SmsUrl) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.TrunkSid != nil { + data.Set("TrunkSid", *params.TrunkSid) + } + if params != nil && params.VoiceApplicationSid != nil { + data.Set("VoiceApplicationSid", *params.VoiceApplicationSid) + } + if params != nil && params.VoiceCallerIdLookup != nil { + data.Set("VoiceCallerIdLookup", string(*params.VoiceCallerIdLookup)) + } + if params != nil && params.VoiceFallbackMethod != nil { + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + } + if params != nil && params.VoiceFallbackUrl != nil { + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + } + if params != nil && params.VoiceMethod != nil { + data.Set("VoiceMethod", *params.VoiceMethod) + } + if params != nil && params.VoiceReceiveMode != nil { + data.Set("VoiceReceiveMode", *params.VoiceReceiveMode) + } + if params != nil && params.VoiceUrl != nil { + data.Set("VoiceUrl", *params.VoiceUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocal{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateIncomingPhoneNumberMobileParams Optional parameters for the method 'CreateIncomingPhoneNumberMobile' +type CreateIncomingPhoneNumberMobileParams struct { + AddressSid *string `json:"AddressSid,omitempty"` + ApiVersion *string `json:"ApiVersion,omitempty"` + BundleSid *string `json:"BundleSid,omitempty"` + EmergencyAddressSid *string `json:"EmergencyAddressSid,omitempty"` + EmergencyStatus *string `json:"EmergencyStatus,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IdentitySid *string `json:"IdentitySid,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + SmsApplicationSid *string `json:"SmsApplicationSid,omitempty"` + SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` + SmsMethod *string `json:"SmsMethod,omitempty"` + SmsUrl *string `json:"SmsUrl,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + TrunkSid *string `json:"TrunkSid,omitempty"` + VoiceApplicationSid *string `json:"VoiceApplicationSid,omitempty"` + VoiceCallerIdLookup *bool `json:"VoiceCallerIdLookup,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceReceiveMode *string `json:"VoiceReceiveMode,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` +} + +/* +CreateIncomingPhoneNumberMobile Method for CreateIncomingPhoneNumberMobile + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param optional nil or *CreateIncomingPhoneNumberMobileOpts - Optional Parameters: + * @param "AddressSid" (string) - The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. + * @param "ApiVersion" (string) - The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. + * @param "BundleSid" (string) - The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. + * @param "EmergencyAddressSid" (string) - The SID of the emergency address configuration to use for emergency calling from the new phone number. + * @param "EmergencyStatus" (string) - The configuration status parameter that determines whether the new phone number is enabled for emergency calling. + * @param "FriendlyName" (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. + * @param "IdentitySid" (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. + * @param "PhoneNumber" (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. + * @param "SmsApplicationSid" (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. + * @param "SmsFallbackMethod" (string) - The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. + * @param "SmsFallbackUrl" (string) - The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. + * @param "SmsMethod" (string) - The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. + * @param "SmsUrl" (string) - The URL we should call when the new phone number receives an incoming SMS message. + * @param "StatusCallback" (string) - The URL we should call using the `status_callback_method` to send status information to your application. + * @param "StatusCallbackMethod" (string) - The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. + * @param "TrunkSid" (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. + * @param "VoiceApplicationSid" (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. + * @param "VoiceCallerIdLookup" (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`. + * @param "VoiceFallbackMethod" (string) - The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. + * @param "VoiceFallbackUrl" (string) - The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. + * @param "VoiceMethod" (string) - The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. + * @param "VoiceReceiveMode" (string) - The configuration parameter for the new phone number to receive incoming voice calls or faxes. Can be: `fax` or `voice` and defaults to `voice`. + * @param "VoiceUrl" (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. +@return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobile +*/ +func (c *DefaultApiService) CreateIncomingPhoneNumberMobile(accountSid string, params *CreateIncomingPhoneNumberMobileParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobile, error) { + path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AddressSid != nil { + data.Set("AddressSid", *params.AddressSid) + } + if params != nil && params.ApiVersion != nil { + data.Set("ApiVersion", *params.ApiVersion) + } + if params != nil && params.BundleSid != nil { + data.Set("BundleSid", *params.BundleSid) + } + if params != nil && params.EmergencyAddressSid != nil { + data.Set("EmergencyAddressSid", *params.EmergencyAddressSid) + } + if params != nil && params.EmergencyStatus != nil { + data.Set("EmergencyStatus", *params.EmergencyStatus) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.IdentitySid != nil { + data.Set("IdentitySid", *params.IdentitySid) + } + if params != nil && params.PhoneNumber != nil { + data.Set("PhoneNumber", *params.PhoneNumber) + } + if params != nil && params.SmsApplicationSid != nil { + data.Set("SmsApplicationSid", *params.SmsApplicationSid) + } + if params != nil && params.SmsFallbackMethod != nil { + data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) + } + if params != nil && params.SmsFallbackUrl != nil { + data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) + } + if params != nil && params.SmsMethod != nil { + data.Set("SmsMethod", *params.SmsMethod) + } + if params != nil && params.SmsUrl != nil { + data.Set("SmsUrl", *params.SmsUrl) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.TrunkSid != nil { + data.Set("TrunkSid", *params.TrunkSid) + } + if params != nil && params.VoiceApplicationSid != nil { + data.Set("VoiceApplicationSid", *params.VoiceApplicationSid) + } + if params != nil && params.VoiceCallerIdLookup != nil { + data.Set("VoiceCallerIdLookup", string(*params.VoiceCallerIdLookup)) + } + if params != nil && params.VoiceFallbackMethod != nil { + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + } + if params != nil && params.VoiceFallbackUrl != nil { + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + } + if params != nil && params.VoiceMethod != nil { + data.Set("VoiceMethod", *params.VoiceMethod) + } + if params != nil && params.VoiceReceiveMode != nil { + data.Set("VoiceReceiveMode", *params.VoiceReceiveMode) + } + if params != nil && params.VoiceUrl != nil { + data.Set("VoiceUrl", *params.VoiceUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobile{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateIncomingPhoneNumberTollFreeParams Optional parameters for the method 'CreateIncomingPhoneNumberTollFree' +type CreateIncomingPhoneNumberTollFreeParams struct { + AddressSid *string `json:"AddressSid,omitempty"` + ApiVersion *string `json:"ApiVersion,omitempty"` + BundleSid *string `json:"BundleSid,omitempty"` + EmergencyAddressSid *string `json:"EmergencyAddressSid,omitempty"` + EmergencyStatus *string `json:"EmergencyStatus,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IdentitySid *string `json:"IdentitySid,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + SmsApplicationSid *string `json:"SmsApplicationSid,omitempty"` + SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` + SmsMethod *string `json:"SmsMethod,omitempty"` + SmsUrl *string `json:"SmsUrl,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + TrunkSid *string `json:"TrunkSid,omitempty"` + VoiceApplicationSid *string `json:"VoiceApplicationSid,omitempty"` + VoiceCallerIdLookup *bool `json:"VoiceCallerIdLookup,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceReceiveMode *string `json:"VoiceReceiveMode,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` +} + +/* +CreateIncomingPhoneNumberTollFree Method for CreateIncomingPhoneNumberTollFree + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param optional nil or *CreateIncomingPhoneNumberTollFreeOpts - Optional Parameters: + * @param "AddressSid" (string) - The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. + * @param "ApiVersion" (string) - The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. + * @param "BundleSid" (string) - The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. + * @param "EmergencyAddressSid" (string) - The SID of the emergency address configuration to use for emergency calling from the new phone number. + * @param "EmergencyStatus" (string) - The configuration status parameter that determines whether the new phone number is enabled for emergency calling. + * @param "FriendlyName" (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. + * @param "IdentitySid" (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. + * @param "PhoneNumber" (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. + * @param "SmsApplicationSid" (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. + * @param "SmsFallbackMethod" (string) - The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. + * @param "SmsFallbackUrl" (string) - The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. + * @param "SmsMethod" (string) - The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. + * @param "SmsUrl" (string) - The URL we should call when the new phone number receives an incoming SMS message. + * @param "StatusCallback" (string) - The URL we should call using the `status_callback_method` to send status information to your application. + * @param "StatusCallbackMethod" (string) - The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. + * @param "TrunkSid" (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. + * @param "VoiceApplicationSid" (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. + * @param "VoiceCallerIdLookup" (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`. + * @param "VoiceFallbackMethod" (string) - The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. + * @param "VoiceFallbackUrl" (string) - The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. + * @param "VoiceMethod" (string) - The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. + * @param "VoiceReceiveMode" (string) - The configuration parameter for the new phone number to receive incoming voice calls or faxes. Can be: `fax` or `voice` and defaults to `voice`. + * @param "VoiceUrl" (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. +@return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFree +*/ +func (c *DefaultApiService) CreateIncomingPhoneNumberTollFree(accountSid string, params *CreateIncomingPhoneNumberTollFreeParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFree, error) { + path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AddressSid != nil { + data.Set("AddressSid", *params.AddressSid) + } + if params != nil && params.ApiVersion != nil { + data.Set("ApiVersion", *params.ApiVersion) + } + if params != nil && params.BundleSid != nil { + data.Set("BundleSid", *params.BundleSid) + } + if params != nil && params.EmergencyAddressSid != nil { + data.Set("EmergencyAddressSid", *params.EmergencyAddressSid) + } + if params != nil && params.EmergencyStatus != nil { + data.Set("EmergencyStatus", *params.EmergencyStatus) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.IdentitySid != nil { + data.Set("IdentitySid", *params.IdentitySid) + } + if params != nil && params.PhoneNumber != nil { + data.Set("PhoneNumber", *params.PhoneNumber) + } + if params != nil && params.SmsApplicationSid != nil { + data.Set("SmsApplicationSid", *params.SmsApplicationSid) + } + if params != nil && params.SmsFallbackMethod != nil { + data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) + } + if params != nil && params.SmsFallbackUrl != nil { + data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) + } + if params != nil && params.SmsMethod != nil { + data.Set("SmsMethod", *params.SmsMethod) + } + if params != nil && params.SmsUrl != nil { + data.Set("SmsUrl", *params.SmsUrl) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.TrunkSid != nil { + data.Set("TrunkSid", *params.TrunkSid) + } + if params != nil && params.VoiceApplicationSid != nil { + data.Set("VoiceApplicationSid", *params.VoiceApplicationSid) + } + if params != nil && params.VoiceCallerIdLookup != nil { + data.Set("VoiceCallerIdLookup", string(*params.VoiceCallerIdLookup)) + } + if params != nil && params.VoiceFallbackMethod != nil { + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + } + if params != nil && params.VoiceFallbackUrl != nil { + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + } + if params != nil && params.VoiceMethod != nil { + data.Set("VoiceMethod", *params.VoiceMethod) + } + if params != nil && params.VoiceReceiveMode != nil { + data.Set("VoiceReceiveMode", *params.VoiceReceiveMode) + } + if params != nil && params.VoiceUrl != nil { + data.Set("VoiceUrl", *params.VoiceUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFree{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateMessageParams Optional parameters for the method 'CreateMessage' +type CreateMessageParams struct { + AddressRetention *string `json:"AddressRetention,omitempty"` + ApplicationSid *string `json:"ApplicationSid,omitempty"` + Attempt *int32 `json:"Attempt,omitempty"` + Body *string `json:"Body,omitempty"` + ContentRetention *string `json:"ContentRetention,omitempty"` + ForceDelivery *bool `json:"ForceDelivery,omitempty"` + From *string `json:"From,omitempty"` + MaxPrice *float32 `json:"MaxPrice,omitempty"` + MediaUrl *[]string `json:"MediaUrl,omitempty"` + MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` + PersistentAction *[]string `json:"PersistentAction,omitempty"` + ProvideFeedback *bool `json:"ProvideFeedback,omitempty"` + SmartEncoded *bool `json:"SmartEncoded,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + To *string `json:"To,omitempty"` + ValidityPeriod *int32 `json:"ValidityPeriod,omitempty"` +} + +/* +CreateMessage Method for CreateMessage +Send a message from the account used to make the request + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param optional nil or *CreateMessageOpts - Optional Parameters: + * @param "AddressRetention" (string) - Determines if the address can be stored or obfuscated based on privacy settings + * @param "ApplicationSid" (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. + * @param "Attempt" (int32) - Total number of attempts made ( including this ) to send out the message regardless of the provider used + * @param "Body" (string) - The text of the message you want to send. Can be up to 1,600 characters in length. + * @param "ContentRetention" (string) - Determines if the message content can be stored or redacted based on privacy settings + * @param "ForceDelivery" (bool) - Reserved + * @param "From" (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. + * @param "MaxPrice" (float32) - 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. + * @param "MediaUrl" ([]string) - 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. + * @param "MessagingServiceSid" (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. + * @param "PersistentAction" ([]string) - Rich actions for Channels Messages. + * @param "ProvideFeedback" (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. + * @param "SmartEncoded" (bool) - Whether to detect Unicode characters that have a similar GSM-7 character and replace them. Can be: `true` or `false`. + * @param "StatusCallback" (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. + * @param "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. + * @param "ValidityPeriod" (int32) - 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. +@return ApiV2010AccountMessage +*/ +func (c *DefaultApiService) CreateMessage(accountSid string, params *CreateMessageParams) (*ApiV2010AccountMessage, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Messages.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AddressRetention != nil { + data.Set("AddressRetention", *params.AddressRetention) + } + if params != nil && params.ApplicationSid != nil { + data.Set("ApplicationSid", *params.ApplicationSid) + } + if params != nil && params.Attempt != nil { + data.Set("Attempt", string(*params.Attempt)) + } + if params != nil && params.Body != nil { + data.Set("Body", *params.Body) + } + if params != nil && params.ContentRetention != nil { + data.Set("ContentRetention", *params.ContentRetention) + } + if params != nil && params.ForceDelivery != nil { + data.Set("ForceDelivery", string(*params.ForceDelivery)) + } + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.MaxPrice != nil { + data.Set("MaxPrice", string(*params.MaxPrice)) + } + if params != nil && params.MediaUrl != nil { + data.Set("MediaUrl", *params.MediaUrl) + } + if params != nil && params.MessagingServiceSid != nil { + data.Set("MessagingServiceSid", *params.MessagingServiceSid) + } + if params != nil && params.PersistentAction != nil { + data.Set("PersistentAction", *params.PersistentAction) + } + if params != nil && params.ProvideFeedback != nil { + data.Set("ProvideFeedback", string(*params.ProvideFeedback)) + } + if params != nil && params.SmartEncoded != nil { + data.Set("SmartEncoded", string(*params.SmartEncoded)) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.To != nil { + data.Set("To", *params.To) + } + if params != nil && params.ValidityPeriod != nil { + data.Set("ValidityPeriod", string(*params.ValidityPeriod)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateMessageFeedbackParams Optional parameters for the method 'CreateMessageFeedback' +type CreateMessageFeedbackParams struct { + Outcome *string `json:"Outcome,omitempty"` +} + +/* +CreateMessageFeedback Method for CreateMessageFeedback + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param messageSid The SID of the Message resource for which the feedback was provided. + * @param optional nil or *CreateMessageFeedbackOpts - Optional Parameters: + * @param "Outcome" (string) - Whether the feedback has arrived. Can be: `unconfirmed` or `confirmed`. If `provide_feedback`=`true` in [the initial HTTP POST](https://www.twilio.com/docs/sms/api/message-resource#create-a-message-resource), the initial value of this property is `unconfirmed`. After the message arrives, update the value to `confirmed`. +@return ApiV2010AccountMessageMessageFeedback +*/ +func (c *DefaultApiService) CreateMessageFeedback(accountSid string, messageSid string, params *CreateMessageFeedbackParams) (*ApiV2010AccountMessageMessageFeedback, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Feedback.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"MessageSid"+"}", messageSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Outcome != nil { + data.Set("Outcome", *params.Outcome) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountMessageMessageFeedback{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateNewKeyParams Optional parameters for the method 'CreateNewKey' +type CreateNewKeyParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +CreateNewKey Method for CreateNewKey + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will be responsible for the new Key resource. + * @param optional nil or *CreateNewKeyOpts - Optional Parameters: + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. +@return ApiV2010AccountNewKey +*/ +func (c *DefaultApiService) CreateNewKey(accountSid string, params *CreateNewKeyParams) (*ApiV2010AccountNewKey, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Keys.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountNewKey{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateNewSigningKeyParams Optional parameters for the method 'CreateNewSigningKey' +type CreateNewSigningKeyParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +CreateNewSigningKey Method for CreateNewSigningKey +Create a new Signing Key for the account making the request. + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will be responsible for the new Key resource. + * @param optional nil or *CreateNewSigningKeyOpts - Optional Parameters: + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. +@return ApiV2010AccountNewSigningKey +*/ +func (c *DefaultApiService) CreateNewSigningKey(accountSid string, params *CreateNewSigningKeyParams) (*ApiV2010AccountNewSigningKey, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SigningKeys.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountNewSigningKey{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateParticipantParams Optional parameters for the method 'CreateParticipant' +type CreateParticipantParams struct { + Beep *string `json:"Beep,omitempty"` + Byoc *string `json:"Byoc,omitempty"` + CallReason *string `json:"CallReason,omitempty"` + CallSidToCoach *string `json:"CallSidToCoach,omitempty"` + CallerId *string `json:"CallerId,omitempty"` + Coaching *bool `json:"Coaching,omitempty"` + ConferenceRecord *string `json:"ConferenceRecord,omitempty"` + ConferenceRecordingStatusCallback *string `json:"ConferenceRecordingStatusCallback,omitempty"` + ConferenceRecordingStatusCallbackEvent *[]string `json:"ConferenceRecordingStatusCallbackEvent,omitempty"` + ConferenceRecordingStatusCallbackMethod *string `json:"ConferenceRecordingStatusCallbackMethod,omitempty"` + ConferenceStatusCallback *string `json:"ConferenceStatusCallback,omitempty"` + ConferenceStatusCallbackEvent *[]string `json:"ConferenceStatusCallbackEvent,omitempty"` + ConferenceStatusCallbackMethod *string `json:"ConferenceStatusCallbackMethod,omitempty"` + ConferenceTrim *string `json:"ConferenceTrim,omitempty"` + EarlyMedia *bool `json:"EarlyMedia,omitempty"` + EndConferenceOnExit *bool `json:"EndConferenceOnExit,omitempty"` + From *string `json:"From,omitempty"` + JitterBufferSize *string `json:"JitterBufferSize,omitempty"` + Label *string `json:"Label,omitempty"` + MaxParticipants *int32 `json:"MaxParticipants,omitempty"` + Muted *bool `json:"Muted,omitempty"` + Record *bool `json:"Record,omitempty"` + RecordingChannels *string `json:"RecordingChannels,omitempty"` + RecordingStatusCallback *string `json:"RecordingStatusCallback,omitempty"` + RecordingStatusCallbackEvent *[]string `json:"RecordingStatusCallbackEvent,omitempty"` + RecordingStatusCallbackMethod *string `json:"RecordingStatusCallbackMethod,omitempty"` + RecordingTrack *string `json:"RecordingTrack,omitempty"` + Region *string `json:"Region,omitempty"` + SipAuthPassword *string `json:"SipAuthPassword,omitempty"` + SipAuthUsername *string `json:"SipAuthUsername,omitempty"` + StartConferenceOnEnter *bool `json:"StartConferenceOnEnter,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackEvent *[]string `json:"StatusCallbackEvent,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + Timeout *int32 `json:"Timeout,omitempty"` + To *string `json:"To,omitempty"` + WaitMethod *string `json:"WaitMethod,omitempty"` + WaitUrl *string `json:"WaitUrl,omitempty"` +} + +/* +CreateParticipant Method for CreateParticipant + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param conferenceSid The SID of the participant's conference. + * @param optional nil or *CreateParticipantOpts - Optional Parameters: + * @param "Beep" (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`. + * @param "Byoc" (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) + * @param "CallReason" (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) + * @param "CallSidToCoach" (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`. + * @param "CallerId" (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. + * @param "Coaching" (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. + * @param "ConferenceRecord" (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`. + * @param "ConferenceRecordingStatusCallback" (string) - The URL we should call using the `conference_recording_status_callback_method` when the conference recording is available. + * @param "ConferenceRecordingStatusCallbackEvent" ([]string) - The conference recording state changes that generate a call to `conference_recording_status_callback`. Can be: `in-progress`, `completed`, and `failed`. Separate multiple values with a space. The default value is `in-progress completed failed`. + * @param "ConferenceRecordingStatusCallbackMethod" (string) - The HTTP method we should use to call `conference_recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. + * @param "ConferenceStatusCallback" (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. + * @param "ConferenceStatusCallbackEvent" ([]string) - The conference state changes that should generate a call to `conference_status_callback`. Can be: `start`, `end`, `join`, `leave`, `mute`, `hold`, and `speaker`. Separate multiple values with a space. Defaults to `start end`. + * @param "ConferenceStatusCallbackMethod" (string) - The HTTP method we should use to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. + * @param "ConferenceTrim" (string) - Whether to trim leading and trailing silence from your recorded conference audio files. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. + * @param "EarlyMedia" (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`. + * @param "EndConferenceOnExit" (bool) - Whether to end the conference when the participant leaves. Can be: `true` or `false` and defaults to `false`. + * @param "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. + * @param "JitterBufferSize" (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`. + * @param "Label" (string) - A label for this participant. If one is supplied, it may subsequently be used to fetch, update or delete the participant. + * @param "MaxParticipants" (int32) - The maximum number of participants in the conference. Can be a positive integer from `2` to `250`. The default value is `250`. + * @param "Muted" (bool) - Whether the agent is muted in the conference. Can be `true` or `false` and the default is `false`. + * @param "Record" (bool) - Whether to record the participant and their conferences, including the time between conferences. Can be `true` or `false` and the default is `false`. + * @param "RecordingChannels" (string) - The recording channels for the final recording. Can be: `mono` or `dual` and the default is `mono`. + * @param "RecordingStatusCallback" (string) - The URL that we should call using the `recording_status_callback_method` when the recording status changes. + * @param "RecordingStatusCallbackEvent" ([]string) - The recording state changes that should generate a call to `recording_status_callback`. Can be: `in-progress`, `completed`, and `failed`. Separate multiple values with a space. The default value is `in-progress completed failed`. + * @param "RecordingStatusCallbackMethod" (string) - The HTTP method we should use when we call `recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. + * @param "RecordingTrack" (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. + * @param "Region" (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`. + * @param "SipAuthPassword" (string) - The SIP password for authentication. + * @param "SipAuthUsername" (string) - The SIP username used for authentication. + * @param "StartConferenceOnEnter" (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. + * @param "StatusCallback" (string) - The URL we should call using the `status_callback_method` to send status information to your application. + * @param "StatusCallbackEvent" ([]string) - 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`. + * @param "StatusCallbackMethod" (string) - The HTTP method we should use to call `status_callback`. Can be: `GET` and `POST` and defaults to `POST`. + * @param "Timeout" (int32) - 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. + * @param "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. + * @param "WaitMethod" (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. + * @param "WaitUrl" (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). +@return ApiV2010AccountConferenceParticipant +*/ +func (c *DefaultApiService) CreateParticipant(accountSid string, conferenceSid string, params *CreateParticipantParams) (*ApiV2010AccountConferenceParticipant, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ConferenceSid"+"}", conferenceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Beep != nil { + data.Set("Beep", *params.Beep) + } + if params != nil && params.Byoc != nil { + data.Set("Byoc", *params.Byoc) + } + if params != nil && params.CallReason != nil { + data.Set("CallReason", *params.CallReason) + } + if params != nil && params.CallSidToCoach != nil { + data.Set("CallSidToCoach", *params.CallSidToCoach) + } + if params != nil && params.CallerId != nil { + data.Set("CallerId", *params.CallerId) + } + if params != nil && params.Coaching != nil { + data.Set("Coaching", string(*params.Coaching)) + } + if params != nil && params.ConferenceRecord != nil { + data.Set("ConferenceRecord", *params.ConferenceRecord) + } + if params != nil && params.ConferenceRecordingStatusCallback != nil { + data.Set("ConferenceRecordingStatusCallback", *params.ConferenceRecordingStatusCallback) + } + if params != nil && params.ConferenceRecordingStatusCallbackEvent != nil { + data.Set("ConferenceRecordingStatusCallbackEvent", *params.ConferenceRecordingStatusCallbackEvent) + } + if params != nil && params.ConferenceRecordingStatusCallbackMethod != nil { + data.Set("ConferenceRecordingStatusCallbackMethod", *params.ConferenceRecordingStatusCallbackMethod) + } + if params != nil && params.ConferenceStatusCallback != nil { + data.Set("ConferenceStatusCallback", *params.ConferenceStatusCallback) + } + if params != nil && params.ConferenceStatusCallbackEvent != nil { + data.Set("ConferenceStatusCallbackEvent", *params.ConferenceStatusCallbackEvent) + } + if params != nil && params.ConferenceStatusCallbackMethod != nil { + data.Set("ConferenceStatusCallbackMethod", *params.ConferenceStatusCallbackMethod) + } + if params != nil && params.ConferenceTrim != nil { + data.Set("ConferenceTrim", *params.ConferenceTrim) + } + if params != nil && params.EarlyMedia != nil { + data.Set("EarlyMedia", string(*params.EarlyMedia)) + } + if params != nil && params.EndConferenceOnExit != nil { + data.Set("EndConferenceOnExit", string(*params.EndConferenceOnExit)) + } + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.JitterBufferSize != nil { + data.Set("JitterBufferSize", *params.JitterBufferSize) + } + if params != nil && params.Label != nil { + data.Set("Label", *params.Label) + } + if params != nil && params.MaxParticipants != nil { + data.Set("MaxParticipants", string(*params.MaxParticipants)) + } + if params != nil && params.Muted != nil { + data.Set("Muted", string(*params.Muted)) + } + if params != nil && params.Record != nil { + data.Set("Record", string(*params.Record)) + } + if params != nil && params.RecordingChannels != nil { + data.Set("RecordingChannels", *params.RecordingChannels) + } + if params != nil && params.RecordingStatusCallback != nil { + data.Set("RecordingStatusCallback", *params.RecordingStatusCallback) + } + if params != nil && params.RecordingStatusCallbackEvent != nil { + data.Set("RecordingStatusCallbackEvent", *params.RecordingStatusCallbackEvent) + } + if params != nil && params.RecordingStatusCallbackMethod != nil { + data.Set("RecordingStatusCallbackMethod", *params.RecordingStatusCallbackMethod) + } + if params != nil && params.RecordingTrack != nil { + data.Set("RecordingTrack", *params.RecordingTrack) + } + if params != nil && params.Region != nil { + data.Set("Region", *params.Region) + } + if params != nil && params.SipAuthPassword != nil { + data.Set("SipAuthPassword", *params.SipAuthPassword) + } + if params != nil && params.SipAuthUsername != nil { + data.Set("SipAuthUsername", *params.SipAuthUsername) + } + if params != nil && params.StartConferenceOnEnter != nil { + data.Set("StartConferenceOnEnter", string(*params.StartConferenceOnEnter)) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StatusCallbackEvent != nil { + data.Set("StatusCallbackEvent", *params.StatusCallbackEvent) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.Timeout != nil { + data.Set("Timeout", string(*params.Timeout)) + } + if params != nil && params.To != nil { + data.Set("To", *params.To) + } + if params != nil && params.WaitMethod != nil { + data.Set("WaitMethod", *params.WaitMethod) + } + if params != nil && params.WaitUrl != nil { + data.Set("WaitUrl", *params.WaitUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountConferenceParticipant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreatePaymentsParams Optional parameters for the method 'CreatePayments' +type CreatePaymentsParams struct { + BankAccountType *string `json:"BankAccountType,omitempty"` + ChargeAmount *float32 `json:"ChargeAmount,omitempty"` + Currency *string `json:"Currency,omitempty"` + Description *string `json:"Description,omitempty"` + IdempotencyKey *string `json:"IdempotencyKey,omitempty"` + Input *string `json:"Input,omitempty"` + MinPostalCodeLength *int32 `json:"MinPostalCodeLength,omitempty"` + Parameter *map[string]interface{} `json:"Parameter,omitempty"` + PaymentConnector *string `json:"PaymentConnector,omitempty"` + PaymentMethod *string `json:"PaymentMethod,omitempty"` + PostalCode *bool `json:"PostalCode,omitempty"` + SecurityCode *bool `json:"SecurityCode,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + Timeout *int32 `json:"Timeout,omitempty"` + TokenType *string `json:"TokenType,omitempty"` + ValidCardTypes *string `json:"ValidCardTypes,omitempty"` +} + +/* +CreatePayments Method for CreatePayments +create an instance of payments. This will start a new payments session + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param callSid The SID of the call that will create the resource. Call leg associated with this sid is expected to provide payment information thru DTMF. + * @param optional nil or *CreatePaymentsOpts - Optional Parameters: + * @param "BankAccountType" (string) - Type of bank account if payment source is ACH. One of `consumer-checking`, `consumer-savings`, or `commercial-checking`. The default value is `consumer-checking`. + * @param "ChargeAmount" (float32) - 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. + * @param "Currency" (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 Connector are accepted. + * @param "Description" (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. + * @param "IdempotencyKey" (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. + * @param "Input" (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. + * @param "MinPostalCodeLength" (int32) - A positive integer that is used to validate the length of the `PostalCode` inputted by the user. User must enter this many digits. + * @param "Parameter" (map[string]interface{}) - A single level JSON string that is required when accepting certain information specific only to ACH payments. The information that has to be included here depends on the Connector. [Read more](https://www.twilio.com/console/voice/pay-connectors). + * @param "PaymentConnector" (string) - This is the unique name corresponding to the Payment Gateway Connector installed in the Twilio Add-ons. Learn more about [ Connectors](https://www.twilio.com/console/voice/pay-connectors). The default value is `Default`. + * @param "PaymentMethod" (string) - Type of payment being captured. One of `credit-card` or `ach-debit`. The default value is `credit-card`. + * @param "PostalCode" (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`. + * @param "SecurityCode" (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`. + * @param "StatusCallback" (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) + * @param "Timeout" (int32) - 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`. + * @param "TokenType" (string) - Indicates whether the payment method should be tokenized as a `one-time` or `reusable` token. The default value is `reusable`. Do not enter a charge amount when tokenizing. If a charge amount is entered, the payment method will be charged and not tokenized. + * @param "ValidCardTypes" (string) - Credit card types separated by space that Pay should accept. The default value is `visa mastercard amex` +@return ApiV2010AccountCallPayments +*/ +func (c *DefaultApiService) CreatePayments(accountSid string, callSid string, params *CreatePaymentsParams) (*ApiV2010AccountCallPayments, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.BankAccountType != nil { + data.Set("BankAccountType", *params.BankAccountType) + } + if params != nil && params.ChargeAmount != nil { + data.Set("ChargeAmount", string(*params.ChargeAmount)) + } + if params != nil && params.Currency != nil { + data.Set("Currency", *params.Currency) + } + if params != nil && params.Description != nil { + data.Set("Description", *params.Description) + } + if params != nil && params.IdempotencyKey != nil { + data.Set("IdempotencyKey", *params.IdempotencyKey) + } + if params != nil && params.Input != nil { + data.Set("Input", *params.Input) + } + if params != nil && params.MinPostalCodeLength != nil { + data.Set("MinPostalCodeLength", string(*params.MinPostalCodeLength)) + } + if params != nil && params.Parameter != nil { + v, err := json.Marshal(params.Parameter) + + if err != nil { + return nil, err + } + + data.Set("Parameter", string(v)) + } + if params != nil && params.PaymentConnector != nil { + data.Set("PaymentConnector", *params.PaymentConnector) + } + if params != nil && params.PaymentMethod != nil { + data.Set("PaymentMethod", *params.PaymentMethod) + } + if params != nil && params.PostalCode != nil { + data.Set("PostalCode", string(*params.PostalCode)) + } + if params != nil && params.SecurityCode != nil { + data.Set("SecurityCode", string(*params.SecurityCode)) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.Timeout != nil { + data.Set("Timeout", string(*params.Timeout)) + } + if params != nil && params.TokenType != nil { + data.Set("TokenType", *params.TokenType) + } + if params != nil && params.ValidCardTypes != nil { + data.Set("ValidCardTypes", *params.ValidCardTypes) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountCallPayments{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateQueueParams Optional parameters for the method 'CreateQueue' +type CreateQueueParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` + MaxSize *int32 `json:"MaxSize,omitempty"` +} + +/* +CreateQueue Method for CreateQueue +Create a queue + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param optional nil or *CreateQueueOpts - Optional Parameters: + * @param "FriendlyName" (string) - A descriptive string that you created to describe this resource. It can be up to 64 characters long. + * @param "MaxSize" (int32) - The maximum number of calls allowed to be in the queue. The default is 100. The maximum is 5000. +@return ApiV2010AccountQueue +*/ +func (c *DefaultApiService) CreateQueue(accountSid string, params *CreateQueueParams) (*ApiV2010AccountQueue, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Queues.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.MaxSize != nil { + data.Set("MaxSize", string(*params.MaxSize)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountQueue{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateSipAuthCallsCredentialListMappingParams Optional parameters for the method 'CreateSipAuthCallsCredentialListMapping' +type CreateSipAuthCallsCredentialListMappingParams struct { + CredentialListSid *string `json:"CredentialListSid,omitempty"` +} + +/* +CreateSipAuthCallsCredentialListMapping Method for CreateSipAuthCallsCredentialListMapping +Create a new credential list mapping resource + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param domainSid The SID of the SIP domain that will contain the new resource. + * @param optional nil or *CreateSipAuthCallsCredentialListMappingOpts - Optional Parameters: + * @param "CredentialListSid" (string) - The SID of the CredentialList resource to map to the SIP domain. +@return ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping +*/ +func (c *DefaultApiService) CreateSipAuthCallsCredentialListMapping(accountSid string, domainSid string, params *CreateSipAuthCallsCredentialListMappingParams) (*ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CredentialListSid != nil { + data.Set("CredentialListSid", *params.CredentialListSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateSipAuthCallsIpAccessControlListMappingParams Optional parameters for the method 'CreateSipAuthCallsIpAccessControlListMapping' +type CreateSipAuthCallsIpAccessControlListMappingParams struct { + IpAccessControlListSid *string `json:"IpAccessControlListSid,omitempty"` +} + +/* +CreateSipAuthCallsIpAccessControlListMapping Method for CreateSipAuthCallsIpAccessControlListMapping +Create a new IP Access Control List mapping + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param domainSid The SID of the SIP domain that will contain the new resource. + * @param optional nil or *CreateSipAuthCallsIpAccessControlListMappingOpts - Optional Parameters: + * @param "IpAccessControlListSid" (string) - The SID of the IpAccessControlList resource to map to the SIP domain. +@return ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping +*/ +func (c *DefaultApiService) CreateSipAuthCallsIpAccessControlListMapping(accountSid string, domainSid string, params *CreateSipAuthCallsIpAccessControlListMappingParams) (*ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.IpAccessControlListSid != nil { + data.Set("IpAccessControlListSid", *params.IpAccessControlListSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateSipAuthRegistrationsCredentialListMappingParams Optional parameters for the method 'CreateSipAuthRegistrationsCredentialListMapping' +type CreateSipAuthRegistrationsCredentialListMappingParams struct { + CredentialListSid *string `json:"CredentialListSid,omitempty"` +} + +/* +CreateSipAuthRegistrationsCredentialListMapping Method for CreateSipAuthRegistrationsCredentialListMapping +Create a new credential list mapping resource + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param domainSid The SID of the SIP domain that will contain the new resource. + * @param optional nil or *CreateSipAuthRegistrationsCredentialListMappingOpts - Optional Parameters: + * @param "CredentialListSid" (string) - The SID of the CredentialList resource to map to the SIP domain. +@return ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping +*/ +func (c *DefaultApiService) CreateSipAuthRegistrationsCredentialListMapping(accountSid string, domainSid string, params *CreateSipAuthRegistrationsCredentialListMappingParams) (*ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CredentialListSid != nil { + data.Set("CredentialListSid", *params.CredentialListSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateSipCredentialParams Optional parameters for the method 'CreateSipCredential' +type CreateSipCredentialParams struct { + Password *string `json:"Password,omitempty"` + Username *string `json:"Username,omitempty"` +} + +/* +CreateSipCredential Method for CreateSipCredential +Create a new credential resource. + * @param accountSid The unique id of the Account that is responsible for this resource. + * @param credentialListSid The unique id that identifies the credential list to include the created credential. + * @param optional nil or *CreateSipCredentialOpts - Optional Parameters: + * @param "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`) + * @param "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. +@return ApiV2010AccountSipSipCredentialListSipCredential +*/ +func (c *DefaultApiService) CreateSipCredential(accountSid string, credentialListSid string, params *CreateSipCredentialParams) (*ApiV2010AccountSipSipCredentialListSipCredential, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CredentialListSid"+"}", credentialListSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Password != nil { + data.Set("Password", *params.Password) + } + if params != nil && params.Username != nil { + data.Set("Username", *params.Username) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipCredentialListSipCredential{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateSipCredentialListParams Optional parameters for the method 'CreateSipCredentialList' +type CreateSipCredentialListParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +CreateSipCredentialList Method for CreateSipCredentialList +Create a Credential List + * @param accountSid The unique id of the Account that is responsible for this resource. + * @param optional nil or *CreateSipCredentialListOpts - Optional Parameters: + * @param "FriendlyName" (string) - A human readable descriptive text that describes the CredentialList, up to 64 characters long. +@return ApiV2010AccountSipSipCredentialList +*/ +func (c *DefaultApiService) CreateSipCredentialList(accountSid string, params *CreateSipCredentialListParams) (*ApiV2010AccountSipSipCredentialList, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipCredentialList{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateSipCredentialListMappingParams Optional parameters for the method 'CreateSipCredentialListMapping' +type CreateSipCredentialListMappingParams struct { + CredentialListSid *string `json:"CredentialListSid,omitempty"` +} + +/* +CreateSipCredentialListMapping Method for CreateSipCredentialListMapping +Create a CredentialListMapping resource for an account. + * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param domainSid A 34 character string that uniquely identifies the SIP Domain for which the CredentialList resource will be mapped. + * @param optional nil or *CreateSipCredentialListMappingOpts - Optional Parameters: + * @param "CredentialListSid" (string) - A 34 character string that uniquely identifies the CredentialList resource to map to the SIP domain. +@return ApiV2010AccountSipSipDomainSipCredentialListMapping +*/ +func (c *DefaultApiService) CreateSipCredentialListMapping(accountSid string, domainSid string, params *CreateSipCredentialListMappingParams) (*ApiV2010AccountSipSipDomainSipCredentialListMapping, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CredentialListSid != nil { + data.Set("CredentialListSid", *params.CredentialListSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipDomainSipCredentialListMapping{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateSipDomainParams Optional parameters for the method 'CreateSipDomain' +type CreateSipDomainParams struct { + ByocTrunkSid *string `json:"ByocTrunkSid,omitempty"` + DomainName *string `json:"DomainName,omitempty"` + EmergencyCallerSid *string `json:"EmergencyCallerSid,omitempty"` + EmergencyCallingEnabled *bool `json:"EmergencyCallingEnabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Secure *bool `json:"Secure,omitempty"` + SipRegistration *bool `json:"SipRegistration,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceStatusCallbackMethod *string `json:"VoiceStatusCallbackMethod,omitempty"` + VoiceStatusCallbackUrl *string `json:"VoiceStatusCallbackUrl,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` +} + +/* +CreateSipDomain Method for CreateSipDomain +Create a new Domain + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param optional nil or *CreateSipDomainOpts - Optional Parameters: + * @param "ByocTrunkSid" (string) - The SID of the BYOC Trunk(Bring Your Own Carrier) resource that the Sip Domain will be associated with. + * @param "DomainName" (string) - The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and \\\"-\\\". + * @param "EmergencyCallerSid" (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. + * @param "EmergencyCallingEnabled" (bool) - Whether emergency calling is enabled for the domain. If enabled, allows emergency calls on the domain from phone numbers with validated addresses. + * @param "FriendlyName" (string) - A descriptive string that you created to describe the resource. It can be up to 64 characters long. + * @param "Secure" (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. + * @param "SipRegistration" (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. + * @param "VoiceFallbackMethod" (string) - The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. + * @param "VoiceFallbackUrl" (string) - The URL that we should call when an error occurs while retrieving or executing the TwiML from `voice_url`. + * @param "VoiceMethod" (string) - The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`. + * @param "VoiceStatusCallbackMethod" (string) - The HTTP method we should use to call `voice_status_callback_url`. Can be: `GET` or `POST`. + * @param "VoiceStatusCallbackUrl" (string) - The URL that we should call to pass status parameters (such as call ended) to your application. + * @param "VoiceUrl" (string) - The URL we should when the domain receives a call. +@return ApiV2010AccountSipSipDomain +*/ +func (c *DefaultApiService) CreateSipDomain(accountSid string, params *CreateSipDomainParams) (*ApiV2010AccountSipSipDomain, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ByocTrunkSid != nil { + data.Set("ByocTrunkSid", *params.ByocTrunkSid) + } + if params != nil && params.DomainName != nil { + data.Set("DomainName", *params.DomainName) + } + if params != nil && params.EmergencyCallerSid != nil { + data.Set("EmergencyCallerSid", *params.EmergencyCallerSid) + } + if params != nil && params.EmergencyCallingEnabled != nil { + data.Set("EmergencyCallingEnabled", string(*params.EmergencyCallingEnabled)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Secure != nil { + data.Set("Secure", string(*params.Secure)) + } + if params != nil && params.SipRegistration != nil { + data.Set("SipRegistration", string(*params.SipRegistration)) + } + if params != nil && params.VoiceFallbackMethod != nil { + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + } + if params != nil && params.VoiceFallbackUrl != nil { + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + } + if params != nil && params.VoiceMethod != nil { + data.Set("VoiceMethod", *params.VoiceMethod) + } + if params != nil && params.VoiceStatusCallbackMethod != nil { + data.Set("VoiceStatusCallbackMethod", *params.VoiceStatusCallbackMethod) + } + if params != nil && params.VoiceStatusCallbackUrl != nil { + data.Set("VoiceStatusCallbackUrl", *params.VoiceStatusCallbackUrl) + } + if params != nil && params.VoiceUrl != nil { + data.Set("VoiceUrl", *params.VoiceUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipDomain{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateSipIpAccessControlListParams Optional parameters for the method 'CreateSipIpAccessControlList' +type CreateSipIpAccessControlListParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +CreateSipIpAccessControlList Method for CreateSipIpAccessControlList +Create a new IpAccessControlList resource + * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param optional nil or *CreateSipIpAccessControlListOpts - Optional Parameters: + * @param "FriendlyName" (string) - A human readable descriptive text that describes the IpAccessControlList, up to 64 characters long. +@return ApiV2010AccountSipSipIpAccessControlList +*/ +func (c *DefaultApiService) CreateSipIpAccessControlList(accountSid string, params *CreateSipIpAccessControlListParams) (*ApiV2010AccountSipSipIpAccessControlList, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipIpAccessControlList{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateSipIpAccessControlListMappingParams Optional parameters for the method 'CreateSipIpAccessControlListMapping' +type CreateSipIpAccessControlListMappingParams struct { + IpAccessControlListSid *string `json:"IpAccessControlListSid,omitempty"` +} + +/* +CreateSipIpAccessControlListMapping Method for CreateSipIpAccessControlListMapping +Create a new IpAccessControlListMapping resource. + * @param accountSid The unique id of the Account that is responsible for this resource. + * @param domainSid A 34 character string that uniquely identifies the SIP domain. + * @param optional nil or *CreateSipIpAccessControlListMappingOpts - Optional Parameters: + * @param "IpAccessControlListSid" (string) - The unique id of the IP access control list to map to the SIP domain. +@return ApiV2010AccountSipSipDomainSipIpAccessControlListMapping +*/ +func (c *DefaultApiService) CreateSipIpAccessControlListMapping(accountSid string, domainSid string, params *CreateSipIpAccessControlListMappingParams) (*ApiV2010AccountSipSipDomainSipIpAccessControlListMapping, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.IpAccessControlListSid != nil { + data.Set("IpAccessControlListSid", *params.IpAccessControlListSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipDomainSipIpAccessControlListMapping{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateSipIpAddressParams Optional parameters for the method 'CreateSipIpAddress' +type CreateSipIpAddressParams struct { + CidrPrefixLength *int32 `json:"CidrPrefixLength,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IpAddress *string `json:"IpAddress,omitempty"` +} + +/* +CreateSipIpAddress Method for CreateSipIpAddress +Create a new IpAddress resource. + * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param ipAccessControlListSid The IpAccessControlList Sid with which to associate the created IpAddress resource. + * @param optional nil or *CreateSipIpAddressOpts - Optional Parameters: + * @param "CidrPrefixLength" (int32) - 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. + * @param "FriendlyName" (string) - A human readable descriptive text for this resource, up to 64 characters long. + * @param "IpAddress" (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. +@return ApiV2010AccountSipSipIpAccessControlListSipIpAddress +*/ +func (c *DefaultApiService) CreateSipIpAddress(accountSid string, ipAccessControlListSid string, params *CreateSipIpAddressParams) (*ApiV2010AccountSipSipIpAccessControlListSipIpAddress, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"IpAccessControlListSid"+"}", ipAccessControlListSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CidrPrefixLength != nil { + data.Set("CidrPrefixLength", string(*params.CidrPrefixLength)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.IpAddress != nil { + data.Set("IpAddress", *params.IpAddress) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipIpAccessControlListSipIpAddress{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateTokenParams Optional parameters for the method 'CreateToken' +type CreateTokenParams struct { + Ttl *int32 `json:"Ttl,omitempty"` +} + +/* +CreateToken Method for CreateToken +Create a new token for ICE servers + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param optional nil or *CreateTokenOpts - Optional Parameters: + * @param "Ttl" (int32) - The duration in seconds for which the generated credentials are valid. The default value is 86400 (24 hours). +@return ApiV2010AccountToken +*/ +func (c *DefaultApiService) CreateToken(accountSid string, params *CreateTokenParams) (*ApiV2010AccountToken, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Tokens.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Ttl != nil { + data.Set("Ttl", string(*params.Ttl)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountToken{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateUsageTriggerParams Optional parameters for the method 'CreateUsageTrigger' +type CreateUsageTriggerParams struct { + CallbackMethod *string `json:"CallbackMethod,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Recurring *string `json:"Recurring,omitempty"` + TriggerBy *string `json:"TriggerBy,omitempty"` + TriggerValue *string `json:"TriggerValue,omitempty"` + UsageCategory *string `json:"UsageCategory,omitempty"` +} + +/* +CreateUsageTrigger Method for CreateUsageTrigger +Create a new UsageTrigger + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param optional nil or *CreateUsageTriggerOpts - Optional Parameters: + * @param "CallbackMethod" (string) - The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is `POST`. + * @param "CallbackUrl" (string) - The URL we should call using `callback_method` when the trigger fires. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. + * @param "Recurring" (string) - The frequency of a recurring UsageTrigger. Can be: `daily`, `monthly`, or `yearly` for recurring triggers or empty for non-recurring triggers. A trigger will only fire once during each period. Recurring times are in GMT. + * @param "TriggerBy" (string) - The field in the [UsageRecord](https://www.twilio.com/docs/usage/api/usage-record) resource that should fire the trigger. Can be: `count`, `usage`, or `price` as described in the [UsageRecords documentation](https://www.twilio.com/docs/usage/api/usage-record#usage-count-price). The default is `usage`. + * @param "TriggerValue" (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`. + * @param "UsageCategory" (string) - The usage category that the trigger should watch. Use one of the supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) for this value. +@return ApiV2010AccountUsageUsageTrigger +*/ +func (c *DefaultApiService) CreateUsageTrigger(accountSid string, params *CreateUsageTriggerParams) (*ApiV2010AccountUsageUsageTrigger, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Usage/Triggers.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CallbackMethod != nil { + data.Set("CallbackMethod", *params.CallbackMethod) + } + if params != nil && params.CallbackUrl != nil { + data.Set("CallbackUrl", *params.CallbackUrl) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Recurring != nil { + data.Set("Recurring", *params.Recurring) + } + if params != nil && params.TriggerBy != nil { + data.Set("TriggerBy", *params.TriggerBy) + } + if params != nil && params.TriggerValue != nil { + data.Set("TriggerValue", *params.TriggerValue) + } + if params != nil && params.UsageCategory != nil { + data.Set("UsageCategory", *params.UsageCategory) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountUsageUsageTrigger{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateValidationRequestParams Optional parameters for the method 'CreateValidationRequest' +type CreateValidationRequestParams struct { + CallDelay *int32 `json:"CallDelay,omitempty"` + Extension *string `json:"Extension,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` +} + +/* +CreateValidationRequest Method for CreateValidationRequest + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for the new caller ID resource. + * @param optional nil or *CreateValidationRequestOpts - Optional Parameters: + * @param "CallDelay" (int32) - The number of seconds to delay before initiating the verification call. Can be an integer between `0` and `60`, inclusive. The default is `0`. + * @param "Extension" (string) - The digits to dial after connecting the verification call. + * @param "FriendlyName" (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. + * @param "PhoneNumber" (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. + * @param "StatusCallback" (string) - The URL we should call using the `status_callback_method` to send status information about the verification process to your application. + * @param "StatusCallbackMethod" (string) - The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST`, and the default is `POST`. +@return ApiV2010AccountValidationRequest +*/ +func (c *DefaultApiService) CreateValidationRequest(accountSid string, params *CreateValidationRequestParams) (*ApiV2010AccountValidationRequest, error) { + path := "/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CallDelay != nil { + data.Set("CallDelay", string(*params.CallDelay)) + } + if params != nil && params.Extension != nil { + data.Set("Extension", *params.Extension) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PhoneNumber != nil { + data.Set("PhoneNumber", *params.PhoneNumber) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountValidationRequest{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +DeleteAddress Method for DeleteAddress + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to delete. + * @param sid The Twilio-provided string that uniquely identifies the Address resource to delete. +*/ +func (c *DefaultApiService) DeleteAddress(accountSid string, sid string) (error) { + path := "/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteApplication Method for DeleteApplication +Delete the application by the specified application sid + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resources to delete. + * @param sid The Twilio-provided string that uniquely identifies the Application resource to delete. +*/ +func (c *DefaultApiService) DeleteApplication(accountSid string, sid string) (error) { + path := "/2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteCall Method for DeleteCall +Delete a Call record from your account. Once the record is deleted, it will no longer appear in the API and Account Portal logs. + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to delete. + * @param sid The Twilio-provided Call SID that uniquely identifies the Call resource to delete +*/ +func (c *DefaultApiService) DeleteCall(accountSid string, sid string) (error) { + path := "/2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteCallFeedbackSummary Method for DeleteCallFeedbackSummary +Delete a FeedbackSummary resource from a call + * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param sid A 34 character string that uniquely identifies this resource. +*/ +func (c *DefaultApiService) DeleteCallFeedbackSummary(accountSid string, sid string) (error) { + path := "/2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteCallRecording Method for DeleteCallRecording +Delete a recording from your account + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to delete. + * @param callSid The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resources to delete. + * @param sid The Twilio-provided string that uniquely identifies the Recording resource to delete. +*/ +func (c *DefaultApiService) DeleteCallRecording(accountSid string, callSid string, sid string) (error) { + path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteConferenceRecording Method for DeleteConferenceRecording +Delete a recording from your account + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resources to delete. + * @param conferenceSid The Conference SID that identifies the conference associated with the recording to delete. + * @param sid The Twilio-provided string that uniquely identifies the Conference Recording resource to delete. +*/ +func (c *DefaultApiService) DeleteConferenceRecording(accountSid string, conferenceSid string, sid string) (error) { + path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ConferenceSid"+"}", conferenceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteConnectApp Method for DeleteConnectApp +Delete an instance of a connect-app + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resource to fetch. + * @param sid The Twilio-provided string that uniquely identifies the ConnectApp resource to fetch. +*/ +func (c *DefaultApiService) DeleteConnectApp(accountSid string, sid string) (error) { + path := "/2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteIncomingPhoneNumber Method for DeleteIncomingPhoneNumber +Delete a phone-numbers belonging to the account used to make the request. + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IncomingPhoneNumber resources to delete. + * @param sid The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to delete. +*/ +func (c *DefaultApiService) DeleteIncomingPhoneNumber(accountSid string, sid string) (error) { + path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteIncomingPhoneNumberAssignedAddOn Method for DeleteIncomingPhoneNumberAssignedAddOn +Remove the assignment of an Add-on installation from the Number specified. + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to delete. + * @param resourceSid The SID of the Phone Number to which the Add-on is assigned. + * @param sid The Twilio-provided string that uniquely identifies the resource to delete. +*/ +func (c *DefaultApiService) DeleteIncomingPhoneNumberAssignedAddOn(accountSid string, resourceSid string, sid string) (error) { + path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ResourceSid"+"}", resourceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteKey Method for DeleteKey + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resources to delete. + * @param sid The Twilio-provided string that uniquely identifies the Key resource to delete. +*/ +func (c *DefaultApiService) DeleteKey(accountSid string, sid string) (error) { + path := "/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteMedia Method for DeleteMedia +Delete media from your account. Once delete, you will no longer be billed + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Media resource(s) to delete. + * @param messageSid The SID of the Message resource that this Media resource belongs to. + * @param sid The Twilio-provided string that uniquely identifies the Media resource to delete +*/ +func (c *DefaultApiService) DeleteMedia(accountSid string, messageSid string, sid string) (error) { + path := "/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"MessageSid"+"}", messageSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteMessage Method for DeleteMessage +Deletes a message record from your account + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Message resources to delete. + * @param sid The Twilio-provided string that uniquely identifies the Message resource to delete. +*/ +func (c *DefaultApiService) DeleteMessage(accountSid string, sid string) (error) { + path := "/2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteOutgoingCallerId Method for DeleteOutgoingCallerId +Delete the caller-id specified from the account + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resources to delete. + * @param sid The Twilio-provided string that uniquely identifies the OutgoingCallerId resource to delete. +*/ +func (c *DefaultApiService) DeleteOutgoingCallerId(accountSid string, sid string) (error) { + path := "/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteParticipant Method for DeleteParticipant +Kick a participant from a given conference + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resources to delete. + * @param conferenceSid The SID of the conference with the participants to delete. + * @param callSid 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. +*/ +func (c *DefaultApiService) DeleteParticipant(accountSid string, conferenceSid string, callSid string) (error) { + path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ConferenceSid"+"}", conferenceSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteQueue Method for DeleteQueue +Remove an empty queue + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resource to delete. + * @param sid The Twilio-provided string that uniquely identifies the Queue resource to delete +*/ +func (c *DefaultApiService) DeleteQueue(accountSid string, sid string) (error) { + path := "/2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteRecording Method for DeleteRecording +Delete a recording from your account + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to delete. + * @param sid The Twilio-provided string that uniquely identifies the Recording resource to delete. +*/ +func (c *DefaultApiService) DeleteRecording(accountSid string, sid string) (error) { + path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteRecordingAddOnResult Method for DeleteRecordingAddOnResult +Delete a result and purge all associated Payloads + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult resources to delete. + * @param referenceSid The SID of the recording to which the result to delete belongs. + * @param sid The Twilio-provided string that uniquely identifies the Recording AddOnResult resource to delete. +*/ +func (c *DefaultApiService) DeleteRecordingAddOnResult(accountSid string, referenceSid string, sid string) (error) { + path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ReferenceSid"+"}", referenceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteRecordingAddOnResultPayload Method for DeleteRecordingAddOnResultPayload +Delete a payload from the result along with all associated Data + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resources to delete. + * @param referenceSid The SID of the recording to which the AddOnResult resource that contains the payloads to delete belongs. + * @param addOnResultSid The SID of the AddOnResult to which the payloads to delete belongs. + * @param sid The Twilio-provided string that uniquely identifies the Recording AddOnResult Payload resource to delete. +*/ +func (c *DefaultApiService) DeleteRecordingAddOnResultPayload(accountSid string, referenceSid string, addOnResultSid string, sid string) (error) { + path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ReferenceSid"+"}", referenceSid, -1) + path = strings.Replace(path, "{"+"AddOnResultSid"+"}", addOnResultSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteRecordingTranscription Method for DeleteRecordingTranscription + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to delete. + * @param recordingSid The SID of the [Recording](https://www.twilio.com/docs/voice/api/recording) that created the transcription to delete. + * @param sid The Twilio-provided string that uniquely identifies the Transcription resource to delete. +*/ +func (c *DefaultApiService) DeleteRecordingTranscription(accountSid string, recordingSid string, sid string) (error) { + path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"RecordingSid"+"}", recordingSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteSigningKey Method for DeleteSigningKey + * @param accountSid + * @param sid +*/ +func (c *DefaultApiService) DeleteSigningKey(accountSid string, sid string) (error) { + path := "/2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteSipAuthCallsCredentialListMapping Method for DeleteSipAuthCallsCredentialListMapping +Delete a credential list mapping from the requested domain + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to delete. + * @param domainSid The SID of the SIP domain that contains the resource to delete. + * @param sid The Twilio-provided string that uniquely identifies the CredentialListMapping resource to delete. +*/ +func (c *DefaultApiService) DeleteSipAuthCallsCredentialListMapping(accountSid string, domainSid string, sid string) (error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteSipAuthCallsIpAccessControlListMapping Method for DeleteSipAuthCallsIpAccessControlListMapping +Delete an IP Access Control List mapping from the requested domain + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IpAccessControlListMapping resources to delete. + * @param domainSid The SID of the SIP domain that contains the resources to delete. + * @param sid The Twilio-provided string that uniquely identifies the IpAccessControlListMapping resource to delete. +*/ +func (c *DefaultApiService) DeleteSipAuthCallsIpAccessControlListMapping(accountSid string, domainSid string, sid string) (error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteSipAuthRegistrationsCredentialListMapping Method for DeleteSipAuthRegistrationsCredentialListMapping +Delete a credential list mapping from the requested domain + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to delete. + * @param domainSid The SID of the SIP domain that contains the resources to delete. + * @param sid The Twilio-provided string that uniquely identifies the CredentialListMapping resource to delete. +*/ +func (c *DefaultApiService) DeleteSipAuthRegistrationsCredentialListMapping(accountSid string, domainSid string, sid string) (error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteSipCredential Method for DeleteSipCredential +Delete a credential resource. + * @param accountSid The unique id of the Account that is responsible for this resource. + * @param credentialListSid The unique id that identifies the credential list that contains the desired credentials. + * @param sid The unique id that identifies the resource to delete. +*/ +func (c *DefaultApiService) DeleteSipCredential(accountSid string, credentialListSid string, sid string) (error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CredentialListSid"+"}", credentialListSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteSipCredentialList Method for DeleteSipCredentialList +Delete a Credential List + * @param accountSid The unique id of the Account that is responsible for this resource. + * @param sid The credential list Sid that uniquely identifies this resource +*/ +func (c *DefaultApiService) DeleteSipCredentialList(accountSid string, sid string) (error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteSipCredentialListMapping Method for DeleteSipCredentialListMapping +Delete a CredentialListMapping resource from an account. + * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param domainSid A 34 character string that uniquely identifies the SIP Domain that includes the resource to delete. + * @param sid A 34 character string that uniquely identifies the resource to delete. +*/ +func (c *DefaultApiService) DeleteSipCredentialListMapping(accountSid string, domainSid string, sid string) (error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteSipDomain Method for DeleteSipDomain +Delete an instance of a Domain + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resources to delete. + * @param sid The Twilio-provided string that uniquely identifies the SipDomain resource to delete. +*/ +func (c *DefaultApiService) DeleteSipDomain(accountSid string, sid string) (error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteSipIpAccessControlList Method for DeleteSipIpAccessControlList +Delete an IpAccessControlList from the requested account + * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param sid A 34 character string that uniquely identifies the resource to delete. +*/ +func (c *DefaultApiService) DeleteSipIpAccessControlList(accountSid string, sid string) (error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteSipIpAccessControlListMapping Method for DeleteSipIpAccessControlListMapping +Delete an IpAccessControlListMapping resource. + * @param accountSid The unique id of the Account that is responsible for this resource. + * @param domainSid A 34 character string that uniquely identifies the SIP domain. + * @param sid A 34 character string that uniquely identifies the resource to delete. +*/ +func (c *DefaultApiService) DeleteSipIpAccessControlListMapping(accountSid string, domainSid string, sid string) (error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteSipIpAddress Method for DeleteSipIpAddress +Delete an IpAddress resource. + * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param ipAccessControlListSid The IpAccessControlList Sid that identifies the IpAddress resources to delete. + * @param sid A 34 character string that uniquely identifies the resource to delete. +*/ +func (c *DefaultApiService) DeleteSipIpAddress(accountSid string, ipAccessControlListSid string, sid string) (error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"IpAccessControlListSid"+"}", ipAccessControlListSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteTranscription Method for DeleteTranscription +Delete a transcription from the account used to make the request + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to delete. + * @param sid The Twilio-provided string that uniquely identifies the Transcription resource to delete. +*/ +func (c *DefaultApiService) DeleteTranscription(accountSid string, sid string) (error) { + path := "/2010-04-01/Accounts/{AccountSid}/Transcriptions/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteUsageTrigger Method for DeleteUsageTrigger + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resources to delete. + * @param sid The Twilio-provided string that uniquely identifies the UsageTrigger resource to delete. +*/ +func (c *DefaultApiService) DeleteUsageTrigger(accountSid string, sid string) (error) { + path := "/2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +FetchAccount Method for FetchAccount +Fetch the account specified by the provided Account Sid + * @param sid The Account Sid that uniquely identifies the account to fetch +@return ApiV2010Account +*/ +func (c *DefaultApiService) FetchAccount(sid string) (*ApiV2010Account, error) { + path := "/2010-04-01/Accounts/{Sid}.json" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010Account{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchAddress Method for FetchAddress + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to fetch. + * @param sid The Twilio-provided string that uniquely identifies the Address resource to fetch. +@return ApiV2010AccountAddress +*/ +func (c *DefaultApiService) FetchAddress(accountSid string, sid string) (*ApiV2010AccountAddress, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountAddress{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchApplication Method for FetchApplication +Fetch the application specified by the provided sid + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resource to fetch. + * @param sid The Twilio-provided string that uniquely identifies the Application resource to fetch. +@return ApiV2010AccountApplication +*/ +func (c *DefaultApiService) FetchApplication(accountSid string, sid string) (*ApiV2010AccountApplication, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountApplication{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchAuthorizedConnectApp Method for FetchAuthorizedConnectApp +Fetch an instance of an authorized-connect-app + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the AuthorizedConnectApp resource to fetch. + * @param connectAppSid The SID of the Connect App to fetch. +@return ApiV2010AccountAuthorizedConnectApp +*/ +func (c *DefaultApiService) FetchAuthorizedConnectApp(accountSid string, connectAppSid string) (*ApiV2010AccountAuthorizedConnectApp, error) { + path := "/2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps/{ConnectAppSid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ConnectAppSid"+"}", connectAppSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountAuthorizedConnectApp{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchAvailablePhoneNumberCountry Method for FetchAvailablePhoneNumberCountry + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the available phone number Country resource. + * @param countryCode 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. +@return ApiV2010AccountAvailablePhoneNumberCountry +*/ +func (c *DefaultApiService) FetchAvailablePhoneNumberCountry(accountSid string, countryCode string) (*ApiV2010AccountAvailablePhoneNumberCountry, error) { + path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CountryCode"+"}", countryCode, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountAvailablePhoneNumberCountry{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchBalance Method for FetchBalance +Fetch the balance for an Account based on Account Sid. Balance changes may not be reflected immediately. Child accounts do not contain balance information + * @param accountSid The unique SID identifier of the Account. +@return ApiV2010AccountBalance +*/ +func (c *DefaultApiService) FetchBalance(accountSid string) (*ApiV2010AccountBalance, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Balance.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountBalance{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchCall Method for FetchCall +Fetch the call specified by the provided Call SID + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to fetch. + * @param sid The SID of the Call resource to fetch. +@return ApiV2010AccountCall +*/ +func (c *DefaultApiService) FetchCall(accountSid string, sid string) (*ApiV2010AccountCall, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountCall{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchCallFeedback Method for FetchCallFeedback +Fetch a Feedback resource from a call + * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param callSid The call sid that uniquely identifies the call +@return ApiV2010AccountCallCallFeedback +*/ +func (c *DefaultApiService) FetchCallFeedback(accountSid string, callSid string) (*ApiV2010AccountCallCallFeedback, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Feedback.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountCallCallFeedback{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchCallFeedbackSummary Method for FetchCallFeedbackSummary +Fetch a FeedbackSummary resource from a call + * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param sid A 34 character string that uniquely identifies this resource. +@return ApiV2010AccountCallCallFeedbackSummary +*/ +func (c *DefaultApiService) FetchCallFeedbackSummary(accountSid string, sid string) (*ApiV2010AccountCallCallFeedbackSummary, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountCallCallFeedbackSummary{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchCallNotification Method for FetchCallNotification + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call Notification resource to fetch. + * @param callSid The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the Call Notification resource to fetch. + * @param sid The Twilio-provided string that uniquely identifies the Call Notification resource to fetch. +@return ApiV2010AccountCallCallNotificationInstance +*/ +func (c *DefaultApiService) FetchCallNotification(accountSid string, callSid string, sid string) (*ApiV2010AccountCallCallNotificationInstance, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountCallCallNotificationInstance{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchCallRecording Method for FetchCallRecording +Fetch an instance of a recording for a call + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource to fetch. + * @param callSid The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource to fetch. + * @param sid The Twilio-provided string that uniquely identifies the Recording resource to fetch. +@return ApiV2010AccountCallCallRecording +*/ +func (c *DefaultApiService) FetchCallRecording(accountSid string, callSid string, sid string) (*ApiV2010AccountCallCallRecording, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountCallCallRecording{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchConference Method for FetchConference +Fetch an instance of a conference + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference resource(s) to fetch. + * @param sid The Twilio-provided string that uniquely identifies the Conference resource to fetch +@return ApiV2010AccountConference +*/ +func (c *DefaultApiService) FetchConference(accountSid string, sid string) (*ApiV2010AccountConference, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountConference{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchConferenceRecording Method for FetchConferenceRecording +Fetch an instance of a recording for a call + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resource to fetch. + * @param conferenceSid The Conference SID that identifies the conference associated with the recording to fetch. + * @param sid The Twilio-provided string that uniquely identifies the Conference Recording resource to fetch. +@return ApiV2010AccountConferenceConferenceRecording +*/ +func (c *DefaultApiService) FetchConferenceRecording(accountSid string, conferenceSid string, sid string) (*ApiV2010AccountConferenceConferenceRecording, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ConferenceSid"+"}", conferenceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountConferenceConferenceRecording{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchConnectApp Method for FetchConnectApp +Fetch an instance of a connect-app + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resource to fetch. + * @param sid The Twilio-provided string that uniquely identifies the ConnectApp resource to fetch. +@return ApiV2010AccountConnectApp +*/ +func (c *DefaultApiService) FetchConnectApp(accountSid string, sid string) (*ApiV2010AccountConnectApp, error) { + path := "/2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountConnectApp{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchIncomingPhoneNumber Method for FetchIncomingPhoneNumber +Fetch an incoming-phone-number belonging to the account used to make the request. + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IncomingPhoneNumber resource to fetch. + * @param sid The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to fetch. +@return ApiV2010AccountIncomingPhoneNumber +*/ +func (c *DefaultApiService) FetchIncomingPhoneNumber(accountSid string, sid string) (*ApiV2010AccountIncomingPhoneNumber, error) { + path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountIncomingPhoneNumber{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchIncomingPhoneNumberAssignedAddOn Method for FetchIncomingPhoneNumberAssignedAddOn +Fetch an instance of an Add-on installation currently assigned to this Number. + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource to fetch. + * @param resourceSid The SID of the Phone Number to which the Add-on is assigned. + * @param sid The Twilio-provided string that uniquely identifies the resource to fetch. +@return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn +*/ +func (c *DefaultApiService) FetchIncomingPhoneNumberAssignedAddOn(accountSid string, resourceSid string, sid string) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn, error) { + path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ResourceSid"+"}", resourceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchIncomingPhoneNumberAssignedAddOnExtension Method for FetchIncomingPhoneNumberAssignedAddOnExtension +Fetch an instance of an Extension for the Assigned Add-on. + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource to fetch. + * @param resourceSid The SID of the Phone Number to which the Add-on is assigned. + * @param assignedAddOnSid The SID that uniquely identifies the assigned Add-on installation. + * @param sid The Twilio-provided string that uniquely identifies the resource to fetch. +@return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension +*/ +func (c *DefaultApiService) FetchIncomingPhoneNumberAssignedAddOnExtension(accountSid string, resourceSid string, assignedAddOnSid string, sid string) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension, error) { + path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ResourceSid"+"}", resourceSid, -1) + path = strings.Replace(path, "{"+"AssignedAddOnSid"+"}", assignedAddOnSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchKey Method for FetchKey + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resource to fetch. + * @param sid The Twilio-provided string that uniquely identifies the Key resource to fetch. +@return ApiV2010AccountKey +*/ +func (c *DefaultApiService) FetchKey(accountSid string, sid string) (*ApiV2010AccountKey, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountKey{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchMedia Method for FetchMedia +Fetch a single media instance belonging to the account used to make the request + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Media resource(s) to fetch. + * @param messageSid The SID of the Message resource that this Media resource belongs to. + * @param sid The Twilio-provided string that uniquely identifies the Media resource to fetch +@return ApiV2010AccountMessageMedia +*/ +func (c *DefaultApiService) FetchMedia(accountSid string, messageSid string, sid string) (*ApiV2010AccountMessageMedia, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"MessageSid"+"}", messageSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountMessageMedia{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchMember Method for FetchMember +Fetch a specific member from the queue + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Member resource(s) to fetch. + * @param queueSid The SID of the Queue in which to find the members to fetch. + * @param callSid The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource(s) to fetch. +@return ApiV2010AccountQueueMember +*/ +func (c *DefaultApiService) FetchMember(accountSid string, queueSid string, callSid string) (*ApiV2010AccountQueueMember, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"QueueSid"+"}", queueSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountQueueMember{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchMessage Method for FetchMessage +Fetch a message belonging to the account used to make the request + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Message resource to fetch. + * @param sid The Twilio-provided string that uniquely identifies the Message resource to fetch. +@return ApiV2010AccountMessage +*/ +func (c *DefaultApiService) FetchMessage(accountSid string, sid string) (*ApiV2010AccountMessage, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchNotification Method for FetchNotification +Fetch a notification belonging to the account used to make the request + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Notification resource to fetch. + * @param sid The Twilio-provided string that uniquely identifies the Notification resource to fetch. +@return ApiV2010AccountNotificationInstance +*/ +func (c *DefaultApiService) FetchNotification(accountSid string, sid string) (*ApiV2010AccountNotificationInstance, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Notifications/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountNotificationInstance{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchOutgoingCallerId Method for FetchOutgoingCallerId +Fetch an outgoing-caller-id belonging to the account used to make the request + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resource to fetch. + * @param sid The Twilio-provided string that uniquely identifies the OutgoingCallerId resource to fetch. +@return ApiV2010AccountOutgoingCallerId +*/ +func (c *DefaultApiService) FetchOutgoingCallerId(accountSid string, sid string) (*ApiV2010AccountOutgoingCallerId, error) { + path := "/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountOutgoingCallerId{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchParticipant Method for FetchParticipant +Fetch an instance of a participant + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resource to fetch. + * @param conferenceSid The SID of the conference with the participant to fetch. + * @param callSid 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. +@return ApiV2010AccountConferenceParticipant +*/ +func (c *DefaultApiService) FetchParticipant(accountSid string, conferenceSid string, callSid string) (*ApiV2010AccountConferenceParticipant, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ConferenceSid"+"}", conferenceSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountConferenceParticipant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchQueue Method for FetchQueue +Fetch an instance of a queue identified by the QueueSid + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resource to fetch. + * @param sid The Twilio-provided string that uniquely identifies the Queue resource to fetch +@return ApiV2010AccountQueue +*/ +func (c *DefaultApiService) FetchQueue(accountSid string, sid string) (*ApiV2010AccountQueue, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountQueue{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchRecording Method for FetchRecording +Fetch an instance of a recording + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource to fetch. + * @param sid The Twilio-provided string that uniquely identifies the Recording resource to fetch. +@return ApiV2010AccountRecording +*/ +func (c *DefaultApiService) FetchRecording(accountSid string, sid string) (*ApiV2010AccountRecording, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountRecording{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchRecordingAddOnResult Method for FetchRecordingAddOnResult +Fetch an instance of an AddOnResult + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult resource to fetch. + * @param referenceSid The SID of the recording to which the result to fetch belongs. + * @param sid The Twilio-provided string that uniquely identifies the Recording AddOnResult resource to fetch. +@return ApiV2010AccountRecordingRecordingAddOnResult +*/ +func (c *DefaultApiService) FetchRecordingAddOnResult(accountSid string, referenceSid string, sid string) (*ApiV2010AccountRecordingRecordingAddOnResult, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ReferenceSid"+"}", referenceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountRecordingRecordingAddOnResult{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchRecordingAddOnResultPayload Method for FetchRecordingAddOnResultPayload +Fetch an instance of a result payload + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resource to fetch. + * @param referenceSid The SID of the recording to which the AddOnResult resource that contains the payload to fetch belongs. + * @param addOnResultSid The SID of the AddOnResult to which the payload to fetch belongs. + * @param sid The Twilio-provided string that uniquely identifies the Recording AddOnResult Payload resource to fetch. +@return ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayload +*/ +func (c *DefaultApiService) FetchRecordingAddOnResultPayload(accountSid string, referenceSid string, addOnResultSid string, sid string) (*ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayload, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ReferenceSid"+"}", referenceSid, -1) + path = strings.Replace(path, "{"+"AddOnResultSid"+"}", addOnResultSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayload{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchRecordingTranscription Method for FetchRecordingTranscription + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resource to fetch. + * @param recordingSid The SID of the [Recording](https://www.twilio.com/docs/voice/api/recording) that created the transcription to fetch. + * @param sid The Twilio-provided string that uniquely identifies the Transcription resource to fetch. +@return ApiV2010AccountRecordingRecordingTranscription +*/ +func (c *DefaultApiService) FetchRecordingTranscription(accountSid string, recordingSid string, sid string) (*ApiV2010AccountRecordingRecordingTranscription, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"RecordingSid"+"}", recordingSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountRecordingRecordingTranscription{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchShortCode Method for FetchShortCode +Fetch an instance of a short code + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ShortCode resource(s) to fetch. + * @param sid The Twilio-provided string that uniquely identifies the ShortCode resource to fetch +@return ApiV2010AccountShortCode +*/ +func (c *DefaultApiService) FetchShortCode(accountSid string, sid string) (*ApiV2010AccountShortCode, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountShortCode{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchSigningKey Method for FetchSigningKey + * @param accountSid + * @param sid +@return ApiV2010AccountSigningKey +*/ +func (c *DefaultApiService) FetchSigningKey(accountSid string, sid string) (*ApiV2010AccountSigningKey, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSigningKey{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchSipAuthCallsCredentialListMapping Method for FetchSipAuthCallsCredentialListMapping +Fetch a specific instance of a credential list mapping + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resource to fetch. + * @param domainSid The SID of the SIP domain that contains the resource to fetch. + * @param sid The Twilio-provided string that uniquely identifies the CredentialListMapping resource to fetch. +@return ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping +*/ +func (c *DefaultApiService) FetchSipAuthCallsCredentialListMapping(accountSid string, domainSid string, sid string) (*ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchSipAuthCallsIpAccessControlListMapping Method for FetchSipAuthCallsIpAccessControlListMapping +Fetch a specific instance of an IP Access Control List mapping + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IpAccessControlListMapping resource to fetch. + * @param domainSid The SID of the SIP domain that contains the resource to fetch. + * @param sid The Twilio-provided string that uniquely identifies the IpAccessControlListMapping resource to fetch. +@return ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping +*/ +func (c *DefaultApiService) FetchSipAuthCallsIpAccessControlListMapping(accountSid string, domainSid string, sid string) (*ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchSipAuthRegistrationsCredentialListMapping Method for FetchSipAuthRegistrationsCredentialListMapping +Fetch a specific instance of a credential list mapping + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resource to fetch. + * @param domainSid The SID of the SIP domain that contains the resource to fetch. + * @param sid The Twilio-provided string that uniquely identifies the CredentialListMapping resource to fetch. +@return ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping +*/ +func (c *DefaultApiService) FetchSipAuthRegistrationsCredentialListMapping(accountSid string, domainSid string, sid string) (*ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchSipCredential Method for FetchSipCredential +Fetch a single credential. + * @param accountSid The unique id of the Account that is responsible for this resource. + * @param credentialListSid The unique id that identifies the credential list that contains the desired credential. + * @param sid The unique id that identifies the resource to fetch. +@return ApiV2010AccountSipSipCredentialListSipCredential +*/ +func (c *DefaultApiService) FetchSipCredential(accountSid string, credentialListSid string, sid string) (*ApiV2010AccountSipSipCredentialListSipCredential, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CredentialListSid"+"}", credentialListSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipCredentialListSipCredential{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchSipCredentialList Method for FetchSipCredentialList +Get a Credential List + * @param accountSid The unique id of the Account that is responsible for this resource. + * @param sid The credential list Sid that uniquely identifies this resource +@return ApiV2010AccountSipSipCredentialList +*/ +func (c *DefaultApiService) FetchSipCredentialList(accountSid string, sid string) (*ApiV2010AccountSipSipCredentialList, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipCredentialList{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchSipCredentialListMapping Method for FetchSipCredentialListMapping +Fetch a single CredentialListMapping resource from an account. + * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param domainSid A 34 character string that uniquely identifies the SIP Domain that includes the resource to fetch. + * @param sid A 34 character string that uniquely identifies the resource to fetch. +@return ApiV2010AccountSipSipDomainSipCredentialListMapping +*/ +func (c *DefaultApiService) FetchSipCredentialListMapping(accountSid string, domainSid string, sid string) (*ApiV2010AccountSipSipDomainSipCredentialListMapping, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipDomainSipCredentialListMapping{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchSipDomain Method for FetchSipDomain +Fetch an instance of a Domain + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resource to fetch. + * @param sid The Twilio-provided string that uniquely identifies the SipDomain resource to fetch. +@return ApiV2010AccountSipSipDomain +*/ +func (c *DefaultApiService) FetchSipDomain(accountSid string, sid string) (*ApiV2010AccountSipSipDomain, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipDomain{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchSipIpAccessControlList Method for FetchSipIpAccessControlList +Fetch a specific instance of an IpAccessControlList + * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param sid A 34 character string that uniquely identifies the resource to fetch. +@return ApiV2010AccountSipSipIpAccessControlList +*/ +func (c *DefaultApiService) FetchSipIpAccessControlList(accountSid string, sid string) (*ApiV2010AccountSipSipIpAccessControlList, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipIpAccessControlList{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchSipIpAccessControlListMapping Method for FetchSipIpAccessControlListMapping +Fetch an IpAccessControlListMapping resource. + * @param accountSid The unique id of the Account that is responsible for this resource. + * @param domainSid A 34 character string that uniquely identifies the SIP domain. + * @param sid A 34 character string that uniquely identifies the resource to fetch. +@return ApiV2010AccountSipSipDomainSipIpAccessControlListMapping +*/ +func (c *DefaultApiService) FetchSipIpAccessControlListMapping(accountSid string, domainSid string, sid string) (*ApiV2010AccountSipSipDomainSipIpAccessControlListMapping, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipDomainSipIpAccessControlListMapping{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchSipIpAddress Method for FetchSipIpAddress +Read one IpAddress resource. + * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param ipAccessControlListSid The IpAccessControlList Sid that identifies the IpAddress resources to fetch. + * @param sid A 34 character string that uniquely identifies the IpAddress resource to fetch. +@return ApiV2010AccountSipSipIpAccessControlListSipIpAddress +*/ +func (c *DefaultApiService) FetchSipIpAddress(accountSid string, ipAccessControlListSid string, sid string) (*ApiV2010AccountSipSipIpAccessControlListSipIpAddress, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"IpAccessControlListSid"+"}", ipAccessControlListSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipIpAccessControlListSipIpAddress{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchTranscription Method for FetchTranscription +Fetch an instance of a Transcription + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resource to fetch. + * @param sid The Twilio-provided string that uniquely identifies the Transcription resource to fetch. +@return ApiV2010AccountTranscription +*/ +func (c *DefaultApiService) FetchTranscription(accountSid string, sid string) (*ApiV2010AccountTranscription, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Transcriptions/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountTranscription{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchUsageTrigger Method for FetchUsageTrigger +Fetch and instance of a usage-trigger + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resource to fetch. + * @param sid The Twilio-provided string that uniquely identifies the UsageTrigger resource to fetch. +@return ApiV2010AccountUsageUsageTrigger +*/ +func (c *DefaultApiService) FetchUsageTrigger(accountSid string, sid string) (*ApiV2010AccountUsageUsageTrigger, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountUsageUsageTrigger{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListAccountParams Optional parameters for the method 'ListAccount' +type ListAccountParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` + Status *string `json:"Status,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListAccount Method for ListAccount +Retrieves a collection of Accounts belonging to the account used to make the request + * @param optional nil or *ListAccountOpts - Optional Parameters: + * @param "FriendlyName" (string) - Only return the Account resources with friendly names that exactly match this name. + * @param "Status" (string) - Only return Account resources with the given status. Can be `closed`, `suspended` or `active`. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountReadResponse +*/ +func (c *DefaultApiService) ListAccount(params *ListAccountParams) (*ApiV2010AccountReadResponse, error) { + path := "/2010-04-01/Accounts.json" + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListAddressParams Optional parameters for the method 'ListAddress' +type ListAddressParams struct { + CustomerName *string `json:"CustomerName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IsoCountry *string `json:"IsoCountry,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListAddress Method for ListAddress + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to read. + * @param optional nil or *ListAddressOpts - Optional Parameters: + * @param "CustomerName" (string) - The `customer_name` of the Address resources to read. + * @param "FriendlyName" (string) - The string that identifies the Address resources to read. + * @param "IsoCountry" (string) - The ISO country code of the Address resources to read. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountAddressReadResponse +*/ +func (c *DefaultApiService) ListAddress(accountSid string, params *ListAddressParams) (*ApiV2010AccountAddressReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Addresses.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CustomerName != nil { + data.Set("CustomerName", *params.CustomerName) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.IsoCountry != nil { + data.Set("IsoCountry", *params.IsoCountry) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountAddressReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListApplicationParams Optional parameters for the method 'ListApplication' +type ListApplicationParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListApplication Method for ListApplication +Retrieve a list of applications representing an application within the requesting account + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resources to read. + * @param optional nil or *ListApplicationOpts - Optional Parameters: + * @param "FriendlyName" (string) - The string that identifies the Application resources to read. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountApplicationReadResponse +*/ +func (c *DefaultApiService) ListApplication(accountSid string, params *ListApplicationParams) (*ApiV2010AccountApplicationReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Applications.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountApplicationReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListAuthorizedConnectAppParams Optional parameters for the method 'ListAuthorizedConnectApp' +type ListAuthorizedConnectAppParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListAuthorizedConnectApp Method for ListAuthorizedConnectApp +Retrieve a list of authorized-connect-apps belonging to the account used to make the request + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the AuthorizedConnectApp resources to read. + * @param optional nil or *ListAuthorizedConnectAppOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountAuthorizedConnectAppReadResponse +*/ +func (c *DefaultApiService) ListAuthorizedConnectApp(accountSid string, params *ListAuthorizedConnectAppParams) (*ApiV2010AccountAuthorizedConnectAppReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountAuthorizedConnectAppReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListAvailablePhoneNumberCountryParams Optional parameters for the method 'ListAvailablePhoneNumberCountry' +type ListAvailablePhoneNumberCountryParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListAvailablePhoneNumberCountry Method for ListAvailablePhoneNumberCountry + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the available phone number Country resources. + * @param optional nil or *ListAvailablePhoneNumberCountryOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountAvailablePhoneNumberCountryReadResponse +*/ +func (c *DefaultApiService) ListAvailablePhoneNumberCountry(accountSid string, params *ListAvailablePhoneNumberCountryParams) (*ApiV2010AccountAvailablePhoneNumberCountryReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountAvailablePhoneNumberCountryReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListAvailablePhoneNumberLocalParams Optional parameters for the method 'ListAvailablePhoneNumberLocal' +type ListAvailablePhoneNumberLocalParams struct { + AreaCode *int32 `json:"AreaCode,omitempty"` + Contains *string `json:"Contains,omitempty"` + SmsEnabled *bool `json:"SmsEnabled,omitempty"` + MmsEnabled *bool `json:"MmsEnabled,omitempty"` + VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` + ExcludeAllAddressRequired *bool `json:"ExcludeAllAddressRequired,omitempty"` + ExcludeLocalAddressRequired *bool `json:"ExcludeLocalAddressRequired,omitempty"` + ExcludeForeignAddressRequired *bool `json:"ExcludeForeignAddressRequired,omitempty"` + Beta *bool `json:"Beta,omitempty"` + NearNumber *string `json:"NearNumber,omitempty"` + NearLatLong *string `json:"NearLatLong,omitempty"` + Distance *int32 `json:"Distance,omitempty"` + InPostalCode *string `json:"InPostalCode,omitempty"` + InRegion *string `json:"InRegion,omitempty"` + InRateCenter *string `json:"InRateCenter,omitempty"` + InLata *string `json:"InLata,omitempty"` + InLocality *string `json:"InLocality,omitempty"` + FaxEnabled *bool `json:"FaxEnabled,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListAvailablePhoneNumberLocal Method for ListAvailablePhoneNumberLocal + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. + * @param countryCode 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. + * @param optional nil or *ListAvailablePhoneNumberLocalOpts - Optional Parameters: + * @param "AreaCode" (int32) - The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. + * @param "Contains" (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. + * @param "SmsEnabled" (bool) - Whether the phone numbers can receive text messages. Can be: `true` or `false`. + * @param "MmsEnabled" (bool) - Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. + * @param "VoiceEnabled" (bool) - Whether the phone numbers can receive calls. Can be: `true` or `false`. + * @param "ExcludeAllAddressRequired" (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`. + * @param "ExcludeLocalAddressRequired" (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`. + * @param "ExcludeForeignAddressRequired" (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`. + * @param "Beta" (bool) - Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. + * @param "NearNumber" (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. + * @param "NearLatLong" (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. + * @param "Distance" (int32) - 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. + * @param "InPostalCode" (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. + * @param "InRegion" (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. + * @param "InRateCenter" (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. + * @param "InLata" (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. + * @param "InLocality" (string) - Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. + * @param "FaxEnabled" (bool) - Whether the phone numbers can receive faxes. Can be: `true` or `false`. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse +*/ +func (c *DefaultApiService) ListAvailablePhoneNumberLocal(accountSid string, countryCode string, params *ListAvailablePhoneNumberLocalParams) (*ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Local.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CountryCode"+"}", countryCode, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AreaCode != nil { + data.Set("AreaCode", string(*params.AreaCode)) + } + if params != nil && params.Contains != nil { + data.Set("Contains", *params.Contains) + } + if params != nil && params.SmsEnabled != nil { + data.Set("SmsEnabled", string(*params.SmsEnabled)) + } + if params != nil && params.MmsEnabled != nil { + data.Set("MmsEnabled", string(*params.MmsEnabled)) + } + if params != nil && params.VoiceEnabled != nil { + data.Set("VoiceEnabled", string(*params.VoiceEnabled)) + } + if params != nil && params.ExcludeAllAddressRequired != nil { + data.Set("ExcludeAllAddressRequired", string(*params.ExcludeAllAddressRequired)) + } + if params != nil && params.ExcludeLocalAddressRequired != nil { + data.Set("ExcludeLocalAddressRequired", string(*params.ExcludeLocalAddressRequired)) + } + if params != nil && params.ExcludeForeignAddressRequired != nil { + data.Set("ExcludeForeignAddressRequired", string(*params.ExcludeForeignAddressRequired)) + } + if params != nil && params.Beta != nil { + data.Set("Beta", string(*params.Beta)) + } + if params != nil && params.NearNumber != nil { + data.Set("NearNumber", *params.NearNumber) + } + if params != nil && params.NearLatLong != nil { + data.Set("NearLatLong", *params.NearLatLong) + } + if params != nil && params.Distance != nil { + data.Set("Distance", string(*params.Distance)) + } + if params != nil && params.InPostalCode != nil { + data.Set("InPostalCode", *params.InPostalCode) + } + if params != nil && params.InRegion != nil { + data.Set("InRegion", *params.InRegion) + } + if params != nil && params.InRateCenter != nil { + data.Set("InRateCenter", *params.InRateCenter) + } + if params != nil && params.InLata != nil { + data.Set("InLata", *params.InLata) + } + if params != nil && params.InLocality != nil { + data.Set("InLocality", *params.InLocality) + } + if params != nil && params.FaxEnabled != nil { + data.Set("FaxEnabled", string(*params.FaxEnabled)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListAvailablePhoneNumberMachineToMachineParams Optional parameters for the method 'ListAvailablePhoneNumberMachineToMachine' +type ListAvailablePhoneNumberMachineToMachineParams struct { + AreaCode *int32 `json:"AreaCode,omitempty"` + Contains *string `json:"Contains,omitempty"` + SmsEnabled *bool `json:"SmsEnabled,omitempty"` + MmsEnabled *bool `json:"MmsEnabled,omitempty"` + VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` + ExcludeAllAddressRequired *bool `json:"ExcludeAllAddressRequired,omitempty"` + ExcludeLocalAddressRequired *bool `json:"ExcludeLocalAddressRequired,omitempty"` + ExcludeForeignAddressRequired *bool `json:"ExcludeForeignAddressRequired,omitempty"` + Beta *bool `json:"Beta,omitempty"` + NearNumber *string `json:"NearNumber,omitempty"` + NearLatLong *string `json:"NearLatLong,omitempty"` + Distance *int32 `json:"Distance,omitempty"` + InPostalCode *string `json:"InPostalCode,omitempty"` + InRegion *string `json:"InRegion,omitempty"` + InRateCenter *string `json:"InRateCenter,omitempty"` + InLata *string `json:"InLata,omitempty"` + InLocality *string `json:"InLocality,omitempty"` + FaxEnabled *bool `json:"FaxEnabled,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListAvailablePhoneNumberMachineToMachine Method for ListAvailablePhoneNumberMachineToMachine + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. + * @param countryCode 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. + * @param optional nil or *ListAvailablePhoneNumberMachineToMachineOpts - Optional Parameters: + * @param "AreaCode" (int32) - The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. + * @param "Contains" (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. + * @param "SmsEnabled" (bool) - Whether the phone numbers can receive text messages. Can be: `true` or `false`. + * @param "MmsEnabled" (bool) - Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. + * @param "VoiceEnabled" (bool) - Whether the phone numbers can receive calls. Can be: `true` or `false`. + * @param "ExcludeAllAddressRequired" (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`. + * @param "ExcludeLocalAddressRequired" (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`. + * @param "ExcludeForeignAddressRequired" (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`. + * @param "Beta" (bool) - Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. + * @param "NearNumber" (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. + * @param "NearLatLong" (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. + * @param "Distance" (int32) - 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. + * @param "InPostalCode" (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. + * @param "InRegion" (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. + * @param "InRateCenter" (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. + * @param "InLata" (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. + * @param "InLocality" (string) - Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. + * @param "FaxEnabled" (bool) - Whether the phone numbers can receive faxes. Can be: `true` or `false`. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse +*/ +func (c *DefaultApiService) ListAvailablePhoneNumberMachineToMachine(accountSid string, countryCode string, params *ListAvailablePhoneNumberMachineToMachineParams) (*ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/MachineToMachine.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CountryCode"+"}", countryCode, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AreaCode != nil { + data.Set("AreaCode", string(*params.AreaCode)) + } + if params != nil && params.Contains != nil { + data.Set("Contains", *params.Contains) + } + if params != nil && params.SmsEnabled != nil { + data.Set("SmsEnabled", string(*params.SmsEnabled)) + } + if params != nil && params.MmsEnabled != nil { + data.Set("MmsEnabled", string(*params.MmsEnabled)) + } + if params != nil && params.VoiceEnabled != nil { + data.Set("VoiceEnabled", string(*params.VoiceEnabled)) + } + if params != nil && params.ExcludeAllAddressRequired != nil { + data.Set("ExcludeAllAddressRequired", string(*params.ExcludeAllAddressRequired)) + } + if params != nil && params.ExcludeLocalAddressRequired != nil { + data.Set("ExcludeLocalAddressRequired", string(*params.ExcludeLocalAddressRequired)) + } + if params != nil && params.ExcludeForeignAddressRequired != nil { + data.Set("ExcludeForeignAddressRequired", string(*params.ExcludeForeignAddressRequired)) + } + if params != nil && params.Beta != nil { + data.Set("Beta", string(*params.Beta)) + } + if params != nil && params.NearNumber != nil { + data.Set("NearNumber", *params.NearNumber) + } + if params != nil && params.NearLatLong != nil { + data.Set("NearLatLong", *params.NearLatLong) + } + if params != nil && params.Distance != nil { + data.Set("Distance", string(*params.Distance)) + } + if params != nil && params.InPostalCode != nil { + data.Set("InPostalCode", *params.InPostalCode) + } + if params != nil && params.InRegion != nil { + data.Set("InRegion", *params.InRegion) + } + if params != nil && params.InRateCenter != nil { + data.Set("InRateCenter", *params.InRateCenter) + } + if params != nil && params.InLata != nil { + data.Set("InLata", *params.InLata) + } + if params != nil && params.InLocality != nil { + data.Set("InLocality", *params.InLocality) + } + if params != nil && params.FaxEnabled != nil { + data.Set("FaxEnabled", string(*params.FaxEnabled)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListAvailablePhoneNumberMobileParams Optional parameters for the method 'ListAvailablePhoneNumberMobile' +type ListAvailablePhoneNumberMobileParams struct { + AreaCode *int32 `json:"AreaCode,omitempty"` + Contains *string `json:"Contains,omitempty"` + SmsEnabled *bool `json:"SmsEnabled,omitempty"` + MmsEnabled *bool `json:"MmsEnabled,omitempty"` + VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` + ExcludeAllAddressRequired *bool `json:"ExcludeAllAddressRequired,omitempty"` + ExcludeLocalAddressRequired *bool `json:"ExcludeLocalAddressRequired,omitempty"` + ExcludeForeignAddressRequired *bool `json:"ExcludeForeignAddressRequired,omitempty"` + Beta *bool `json:"Beta,omitempty"` + NearNumber *string `json:"NearNumber,omitempty"` + NearLatLong *string `json:"NearLatLong,omitempty"` + Distance *int32 `json:"Distance,omitempty"` + InPostalCode *string `json:"InPostalCode,omitempty"` + InRegion *string `json:"InRegion,omitempty"` + InRateCenter *string `json:"InRateCenter,omitempty"` + InLata *string `json:"InLata,omitempty"` + InLocality *string `json:"InLocality,omitempty"` + FaxEnabled *bool `json:"FaxEnabled,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListAvailablePhoneNumberMobile Method for ListAvailablePhoneNumberMobile + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. + * @param countryCode 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. + * @param optional nil or *ListAvailablePhoneNumberMobileOpts - Optional Parameters: + * @param "AreaCode" (int32) - The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. + * @param "Contains" (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. + * @param "SmsEnabled" (bool) - Whether the phone numbers can receive text messages. Can be: `true` or `false`. + * @param "MmsEnabled" (bool) - Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. + * @param "VoiceEnabled" (bool) - Whether the phone numbers can receive calls. Can be: `true` or `false`. + * @param "ExcludeAllAddressRequired" (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`. + * @param "ExcludeLocalAddressRequired" (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`. + * @param "ExcludeForeignAddressRequired" (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`. + * @param "Beta" (bool) - Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. + * @param "NearNumber" (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. + * @param "NearLatLong" (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. + * @param "Distance" (int32) - 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. + * @param "InPostalCode" (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. + * @param "InRegion" (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. + * @param "InRateCenter" (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. + * @param "InLata" (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. + * @param "InLocality" (string) - Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. + * @param "FaxEnabled" (bool) - Whether the phone numbers can receive faxes. Can be: `true` or `false`. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse +*/ +func (c *DefaultApiService) ListAvailablePhoneNumberMobile(accountSid string, countryCode string, params *ListAvailablePhoneNumberMobileParams) (*ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Mobile.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CountryCode"+"}", countryCode, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AreaCode != nil { + data.Set("AreaCode", string(*params.AreaCode)) + } + if params != nil && params.Contains != nil { + data.Set("Contains", *params.Contains) + } + if params != nil && params.SmsEnabled != nil { + data.Set("SmsEnabled", string(*params.SmsEnabled)) + } + if params != nil && params.MmsEnabled != nil { + data.Set("MmsEnabled", string(*params.MmsEnabled)) + } + if params != nil && params.VoiceEnabled != nil { + data.Set("VoiceEnabled", string(*params.VoiceEnabled)) + } + if params != nil && params.ExcludeAllAddressRequired != nil { + data.Set("ExcludeAllAddressRequired", string(*params.ExcludeAllAddressRequired)) + } + if params != nil && params.ExcludeLocalAddressRequired != nil { + data.Set("ExcludeLocalAddressRequired", string(*params.ExcludeLocalAddressRequired)) + } + if params != nil && params.ExcludeForeignAddressRequired != nil { + data.Set("ExcludeForeignAddressRequired", string(*params.ExcludeForeignAddressRequired)) + } + if params != nil && params.Beta != nil { + data.Set("Beta", string(*params.Beta)) + } + if params != nil && params.NearNumber != nil { + data.Set("NearNumber", *params.NearNumber) + } + if params != nil && params.NearLatLong != nil { + data.Set("NearLatLong", *params.NearLatLong) + } + if params != nil && params.Distance != nil { + data.Set("Distance", string(*params.Distance)) + } + if params != nil && params.InPostalCode != nil { + data.Set("InPostalCode", *params.InPostalCode) + } + if params != nil && params.InRegion != nil { + data.Set("InRegion", *params.InRegion) + } + if params != nil && params.InRateCenter != nil { + data.Set("InRateCenter", *params.InRateCenter) + } + if params != nil && params.InLata != nil { + data.Set("InLata", *params.InLata) + } + if params != nil && params.InLocality != nil { + data.Set("InLocality", *params.InLocality) + } + if params != nil && params.FaxEnabled != nil { + data.Set("FaxEnabled", string(*params.FaxEnabled)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListAvailablePhoneNumberNationalParams Optional parameters for the method 'ListAvailablePhoneNumberNational' +type ListAvailablePhoneNumberNationalParams struct { + AreaCode *int32 `json:"AreaCode,omitempty"` + Contains *string `json:"Contains,omitempty"` + SmsEnabled *bool `json:"SmsEnabled,omitempty"` + MmsEnabled *bool `json:"MmsEnabled,omitempty"` + VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` + ExcludeAllAddressRequired *bool `json:"ExcludeAllAddressRequired,omitempty"` + ExcludeLocalAddressRequired *bool `json:"ExcludeLocalAddressRequired,omitempty"` + ExcludeForeignAddressRequired *bool `json:"ExcludeForeignAddressRequired,omitempty"` + Beta *bool `json:"Beta,omitempty"` + NearNumber *string `json:"NearNumber,omitempty"` + NearLatLong *string `json:"NearLatLong,omitempty"` + Distance *int32 `json:"Distance,omitempty"` + InPostalCode *string `json:"InPostalCode,omitempty"` + InRegion *string `json:"InRegion,omitempty"` + InRateCenter *string `json:"InRateCenter,omitempty"` + InLata *string `json:"InLata,omitempty"` + InLocality *string `json:"InLocality,omitempty"` + FaxEnabled *bool `json:"FaxEnabled,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListAvailablePhoneNumberNational Method for ListAvailablePhoneNumberNational + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. + * @param countryCode 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. + * @param optional nil or *ListAvailablePhoneNumberNationalOpts - Optional Parameters: + * @param "AreaCode" (int32) - The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. + * @param "Contains" (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. + * @param "SmsEnabled" (bool) - Whether the phone numbers can receive text messages. Can be: `true` or `false`. + * @param "MmsEnabled" (bool) - Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. + * @param "VoiceEnabled" (bool) - Whether the phone numbers can receive calls. Can be: `true` or `false`. + * @param "ExcludeAllAddressRequired" (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`. + * @param "ExcludeLocalAddressRequired" (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`. + * @param "ExcludeForeignAddressRequired" (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`. + * @param "Beta" (bool) - Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. + * @param "NearNumber" (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. + * @param "NearLatLong" (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. + * @param "Distance" (int32) - 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. + * @param "InPostalCode" (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. + * @param "InRegion" (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. + * @param "InRateCenter" (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. + * @param "InLata" (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. + * @param "InLocality" (string) - Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. + * @param "FaxEnabled" (bool) - Whether the phone numbers can receive faxes. Can be: `true` or `false`. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse +*/ +func (c *DefaultApiService) ListAvailablePhoneNumberNational(accountSid string, countryCode string, params *ListAvailablePhoneNumberNationalParams) (*ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/National.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CountryCode"+"}", countryCode, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AreaCode != nil { + data.Set("AreaCode", string(*params.AreaCode)) + } + if params != nil && params.Contains != nil { + data.Set("Contains", *params.Contains) + } + if params != nil && params.SmsEnabled != nil { + data.Set("SmsEnabled", string(*params.SmsEnabled)) + } + if params != nil && params.MmsEnabled != nil { + data.Set("MmsEnabled", string(*params.MmsEnabled)) + } + if params != nil && params.VoiceEnabled != nil { + data.Set("VoiceEnabled", string(*params.VoiceEnabled)) + } + if params != nil && params.ExcludeAllAddressRequired != nil { + data.Set("ExcludeAllAddressRequired", string(*params.ExcludeAllAddressRequired)) + } + if params != nil && params.ExcludeLocalAddressRequired != nil { + data.Set("ExcludeLocalAddressRequired", string(*params.ExcludeLocalAddressRequired)) + } + if params != nil && params.ExcludeForeignAddressRequired != nil { + data.Set("ExcludeForeignAddressRequired", string(*params.ExcludeForeignAddressRequired)) + } + if params != nil && params.Beta != nil { + data.Set("Beta", string(*params.Beta)) + } + if params != nil && params.NearNumber != nil { + data.Set("NearNumber", *params.NearNumber) + } + if params != nil && params.NearLatLong != nil { + data.Set("NearLatLong", *params.NearLatLong) + } + if params != nil && params.Distance != nil { + data.Set("Distance", string(*params.Distance)) + } + if params != nil && params.InPostalCode != nil { + data.Set("InPostalCode", *params.InPostalCode) + } + if params != nil && params.InRegion != nil { + data.Set("InRegion", *params.InRegion) + } + if params != nil && params.InRateCenter != nil { + data.Set("InRateCenter", *params.InRateCenter) + } + if params != nil && params.InLata != nil { + data.Set("InLata", *params.InLata) + } + if params != nil && params.InLocality != nil { + data.Set("InLocality", *params.InLocality) + } + if params != nil && params.FaxEnabled != nil { + data.Set("FaxEnabled", string(*params.FaxEnabled)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListAvailablePhoneNumberSharedCostParams Optional parameters for the method 'ListAvailablePhoneNumberSharedCost' +type ListAvailablePhoneNumberSharedCostParams struct { + AreaCode *int32 `json:"AreaCode,omitempty"` + Contains *string `json:"Contains,omitempty"` + SmsEnabled *bool `json:"SmsEnabled,omitempty"` + MmsEnabled *bool `json:"MmsEnabled,omitempty"` + VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` + ExcludeAllAddressRequired *bool `json:"ExcludeAllAddressRequired,omitempty"` + ExcludeLocalAddressRequired *bool `json:"ExcludeLocalAddressRequired,omitempty"` + ExcludeForeignAddressRequired *bool `json:"ExcludeForeignAddressRequired,omitempty"` + Beta *bool `json:"Beta,omitempty"` + NearNumber *string `json:"NearNumber,omitempty"` + NearLatLong *string `json:"NearLatLong,omitempty"` + Distance *int32 `json:"Distance,omitempty"` + InPostalCode *string `json:"InPostalCode,omitempty"` + InRegion *string `json:"InRegion,omitempty"` + InRateCenter *string `json:"InRateCenter,omitempty"` + InLata *string `json:"InLata,omitempty"` + InLocality *string `json:"InLocality,omitempty"` + FaxEnabled *bool `json:"FaxEnabled,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListAvailablePhoneNumberSharedCost Method for ListAvailablePhoneNumberSharedCost + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. + * @param countryCode 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. + * @param optional nil or *ListAvailablePhoneNumberSharedCostOpts - Optional Parameters: + * @param "AreaCode" (int32) - The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. + * @param "Contains" (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. + * @param "SmsEnabled" (bool) - Whether the phone numbers can receive text messages. Can be: `true` or `false`. + * @param "MmsEnabled" (bool) - Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. + * @param "VoiceEnabled" (bool) - Whether the phone numbers can receive calls. Can be: `true` or `false`. + * @param "ExcludeAllAddressRequired" (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`. + * @param "ExcludeLocalAddressRequired" (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`. + * @param "ExcludeForeignAddressRequired" (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`. + * @param "Beta" (bool) - Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. + * @param "NearNumber" (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. + * @param "NearLatLong" (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. + * @param "Distance" (int32) - 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. + * @param "InPostalCode" (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. + * @param "InRegion" (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. + * @param "InRateCenter" (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. + * @param "InLata" (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. + * @param "InLocality" (string) - Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. + * @param "FaxEnabled" (bool) - Whether the phone numbers can receive faxes. Can be: `true` or `false`. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse +*/ +func (c *DefaultApiService) ListAvailablePhoneNumberSharedCost(accountSid string, countryCode string, params *ListAvailablePhoneNumberSharedCostParams) (*ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/SharedCost.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CountryCode"+"}", countryCode, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AreaCode != nil { + data.Set("AreaCode", string(*params.AreaCode)) + } + if params != nil && params.Contains != nil { + data.Set("Contains", *params.Contains) + } + if params != nil && params.SmsEnabled != nil { + data.Set("SmsEnabled", string(*params.SmsEnabled)) + } + if params != nil && params.MmsEnabled != nil { + data.Set("MmsEnabled", string(*params.MmsEnabled)) + } + if params != nil && params.VoiceEnabled != nil { + data.Set("VoiceEnabled", string(*params.VoiceEnabled)) + } + if params != nil && params.ExcludeAllAddressRequired != nil { + data.Set("ExcludeAllAddressRequired", string(*params.ExcludeAllAddressRequired)) + } + if params != nil && params.ExcludeLocalAddressRequired != nil { + data.Set("ExcludeLocalAddressRequired", string(*params.ExcludeLocalAddressRequired)) + } + if params != nil && params.ExcludeForeignAddressRequired != nil { + data.Set("ExcludeForeignAddressRequired", string(*params.ExcludeForeignAddressRequired)) + } + if params != nil && params.Beta != nil { + data.Set("Beta", string(*params.Beta)) + } + if params != nil && params.NearNumber != nil { + data.Set("NearNumber", *params.NearNumber) + } + if params != nil && params.NearLatLong != nil { + data.Set("NearLatLong", *params.NearLatLong) + } + if params != nil && params.Distance != nil { + data.Set("Distance", string(*params.Distance)) + } + if params != nil && params.InPostalCode != nil { + data.Set("InPostalCode", *params.InPostalCode) + } + if params != nil && params.InRegion != nil { + data.Set("InRegion", *params.InRegion) + } + if params != nil && params.InRateCenter != nil { + data.Set("InRateCenter", *params.InRateCenter) + } + if params != nil && params.InLata != nil { + data.Set("InLata", *params.InLata) + } + if params != nil && params.InLocality != nil { + data.Set("InLocality", *params.InLocality) + } + if params != nil && params.FaxEnabled != nil { + data.Set("FaxEnabled", string(*params.FaxEnabled)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListAvailablePhoneNumberTollFreeParams Optional parameters for the method 'ListAvailablePhoneNumberTollFree' +type ListAvailablePhoneNumberTollFreeParams struct { + AreaCode *int32 `json:"AreaCode,omitempty"` + Contains *string `json:"Contains,omitempty"` + SmsEnabled *bool `json:"SmsEnabled,omitempty"` + MmsEnabled *bool `json:"MmsEnabled,omitempty"` + VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` + ExcludeAllAddressRequired *bool `json:"ExcludeAllAddressRequired,omitempty"` + ExcludeLocalAddressRequired *bool `json:"ExcludeLocalAddressRequired,omitempty"` + ExcludeForeignAddressRequired *bool `json:"ExcludeForeignAddressRequired,omitempty"` + Beta *bool `json:"Beta,omitempty"` + NearNumber *string `json:"NearNumber,omitempty"` + NearLatLong *string `json:"NearLatLong,omitempty"` + Distance *int32 `json:"Distance,omitempty"` + InPostalCode *string `json:"InPostalCode,omitempty"` + InRegion *string `json:"InRegion,omitempty"` + InRateCenter *string `json:"InRateCenter,omitempty"` + InLata *string `json:"InLata,omitempty"` + InLocality *string `json:"InLocality,omitempty"` + FaxEnabled *bool `json:"FaxEnabled,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListAvailablePhoneNumberTollFree Method for ListAvailablePhoneNumberTollFree + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. + * @param countryCode 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. + * @param optional nil or *ListAvailablePhoneNumberTollFreeOpts - Optional Parameters: + * @param "AreaCode" (int32) - The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. + * @param "Contains" (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. + * @param "SmsEnabled" (bool) - Whether the phone numbers can receive text messages. Can be: `true` or `false`. + * @param "MmsEnabled" (bool) - Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. + * @param "VoiceEnabled" (bool) - Whether the phone numbers can receive calls. Can be: `true` or `false`. + * @param "ExcludeAllAddressRequired" (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`. + * @param "ExcludeLocalAddressRequired" (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`. + * @param "ExcludeForeignAddressRequired" (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`. + * @param "Beta" (bool) - Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. + * @param "NearNumber" (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. + * @param "NearLatLong" (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. + * @param "Distance" (int32) - 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. + * @param "InPostalCode" (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. + * @param "InRegion" (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. + * @param "InRateCenter" (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. + * @param "InLata" (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. + * @param "InLocality" (string) - Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. + * @param "FaxEnabled" (bool) - Whether the phone numbers can receive faxes. Can be: `true` or `false`. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse +*/ +func (c *DefaultApiService) ListAvailablePhoneNumberTollFree(accountSid string, countryCode string, params *ListAvailablePhoneNumberTollFreeParams) (*ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/TollFree.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CountryCode"+"}", countryCode, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AreaCode != nil { + data.Set("AreaCode", string(*params.AreaCode)) + } + if params != nil && params.Contains != nil { + data.Set("Contains", *params.Contains) + } + if params != nil && params.SmsEnabled != nil { + data.Set("SmsEnabled", string(*params.SmsEnabled)) + } + if params != nil && params.MmsEnabled != nil { + data.Set("MmsEnabled", string(*params.MmsEnabled)) + } + if params != nil && params.VoiceEnabled != nil { + data.Set("VoiceEnabled", string(*params.VoiceEnabled)) + } + if params != nil && params.ExcludeAllAddressRequired != nil { + data.Set("ExcludeAllAddressRequired", string(*params.ExcludeAllAddressRequired)) + } + if params != nil && params.ExcludeLocalAddressRequired != nil { + data.Set("ExcludeLocalAddressRequired", string(*params.ExcludeLocalAddressRequired)) + } + if params != nil && params.ExcludeForeignAddressRequired != nil { + data.Set("ExcludeForeignAddressRequired", string(*params.ExcludeForeignAddressRequired)) + } + if params != nil && params.Beta != nil { + data.Set("Beta", string(*params.Beta)) + } + if params != nil && params.NearNumber != nil { + data.Set("NearNumber", *params.NearNumber) + } + if params != nil && params.NearLatLong != nil { + data.Set("NearLatLong", *params.NearLatLong) + } + if params != nil && params.Distance != nil { + data.Set("Distance", string(*params.Distance)) + } + if params != nil && params.InPostalCode != nil { + data.Set("InPostalCode", *params.InPostalCode) + } + if params != nil && params.InRegion != nil { + data.Set("InRegion", *params.InRegion) + } + if params != nil && params.InRateCenter != nil { + data.Set("InRateCenter", *params.InRateCenter) + } + if params != nil && params.InLata != nil { + data.Set("InLata", *params.InLata) + } + if params != nil && params.InLocality != nil { + data.Set("InLocality", *params.InLocality) + } + if params != nil && params.FaxEnabled != nil { + data.Set("FaxEnabled", string(*params.FaxEnabled)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListAvailablePhoneNumberVoipParams Optional parameters for the method 'ListAvailablePhoneNumberVoip' +type ListAvailablePhoneNumberVoipParams struct { + AreaCode *int32 `json:"AreaCode,omitempty"` + Contains *string `json:"Contains,omitempty"` + SmsEnabled *bool `json:"SmsEnabled,omitempty"` + MmsEnabled *bool `json:"MmsEnabled,omitempty"` + VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` + ExcludeAllAddressRequired *bool `json:"ExcludeAllAddressRequired,omitempty"` + ExcludeLocalAddressRequired *bool `json:"ExcludeLocalAddressRequired,omitempty"` + ExcludeForeignAddressRequired *bool `json:"ExcludeForeignAddressRequired,omitempty"` + Beta *bool `json:"Beta,omitempty"` + NearNumber *string `json:"NearNumber,omitempty"` + NearLatLong *string `json:"NearLatLong,omitempty"` + Distance *int32 `json:"Distance,omitempty"` + InPostalCode *string `json:"InPostalCode,omitempty"` + InRegion *string `json:"InRegion,omitempty"` + InRateCenter *string `json:"InRateCenter,omitempty"` + InLata *string `json:"InLata,omitempty"` + InLocality *string `json:"InLocality,omitempty"` + FaxEnabled *bool `json:"FaxEnabled,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListAvailablePhoneNumberVoip Method for ListAvailablePhoneNumberVoip + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. + * @param countryCode 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. + * @param optional nil or *ListAvailablePhoneNumberVoipOpts - Optional Parameters: + * @param "AreaCode" (int32) - The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. + * @param "Contains" (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. + * @param "SmsEnabled" (bool) - Whether the phone numbers can receive text messages. Can be: `true` or `false`. + * @param "MmsEnabled" (bool) - Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. + * @param "VoiceEnabled" (bool) - Whether the phone numbers can receive calls. Can be: `true` or `false`. + * @param "ExcludeAllAddressRequired" (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`. + * @param "ExcludeLocalAddressRequired" (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`. + * @param "ExcludeForeignAddressRequired" (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`. + * @param "Beta" (bool) - Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. + * @param "NearNumber" (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. + * @param "NearLatLong" (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. + * @param "Distance" (int32) - 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. + * @param "InPostalCode" (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. + * @param "InRegion" (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. + * @param "InRateCenter" (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. + * @param "InLata" (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. + * @param "InLocality" (string) - Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. + * @param "FaxEnabled" (bool) - Whether the phone numbers can receive faxes. Can be: `true` or `false`. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse +*/ +func (c *DefaultApiService) ListAvailablePhoneNumberVoip(accountSid string, countryCode string, params *ListAvailablePhoneNumberVoipParams) (*ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Voip.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CountryCode"+"}", countryCode, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AreaCode != nil { + data.Set("AreaCode", string(*params.AreaCode)) + } + if params != nil && params.Contains != nil { + data.Set("Contains", *params.Contains) + } + if params != nil && params.SmsEnabled != nil { + data.Set("SmsEnabled", string(*params.SmsEnabled)) + } + if params != nil && params.MmsEnabled != nil { + data.Set("MmsEnabled", string(*params.MmsEnabled)) + } + if params != nil && params.VoiceEnabled != nil { + data.Set("VoiceEnabled", string(*params.VoiceEnabled)) + } + if params != nil && params.ExcludeAllAddressRequired != nil { + data.Set("ExcludeAllAddressRequired", string(*params.ExcludeAllAddressRequired)) + } + if params != nil && params.ExcludeLocalAddressRequired != nil { + data.Set("ExcludeLocalAddressRequired", string(*params.ExcludeLocalAddressRequired)) + } + if params != nil && params.ExcludeForeignAddressRequired != nil { + data.Set("ExcludeForeignAddressRequired", string(*params.ExcludeForeignAddressRequired)) + } + if params != nil && params.Beta != nil { + data.Set("Beta", string(*params.Beta)) + } + if params != nil && params.NearNumber != nil { + data.Set("NearNumber", *params.NearNumber) + } + if params != nil && params.NearLatLong != nil { + data.Set("NearLatLong", *params.NearLatLong) + } + if params != nil && params.Distance != nil { + data.Set("Distance", string(*params.Distance)) + } + if params != nil && params.InPostalCode != nil { + data.Set("InPostalCode", *params.InPostalCode) + } + if params != nil && params.InRegion != nil { + data.Set("InRegion", *params.InRegion) + } + if params != nil && params.InRateCenter != nil { + data.Set("InRateCenter", *params.InRateCenter) + } + if params != nil && params.InLata != nil { + data.Set("InLata", *params.InLata) + } + if params != nil && params.InLocality != nil { + data.Set("InLocality", *params.InLocality) + } + if params != nil && params.FaxEnabled != nil { + data.Set("FaxEnabled", string(*params.FaxEnabled)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListCallParams Optional parameters for the method 'ListCall' +type ListCallParams struct { + To *string `json:"To,omitempty"` + From *string `json:"From,omitempty"` + ParentCallSid *string `json:"ParentCallSid,omitempty"` + Status *string `json:"Status,omitempty"` + StartTime *time.Time `json:"StartTime,omitempty"` + StartTime< *time.Time `json:"StartTime<,omitempty"` + StartTime> *time.Time `json:"StartTime>,omitempty"` + EndTime *time.Time `json:"EndTime,omitempty"` + EndTime< *time.Time `json:"EndTime<,omitempty"` + EndTime> *time.Time `json:"EndTime>,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListCall Method for ListCall +Retrieves a collection of calls made to and from your account + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to read. + * @param optional nil or *ListCallOpts - Optional Parameters: + * @param "To" (string) - Only show calls made to this phone number, SIP address, Client identifier or SIM SID. + * @param "From" (string) - Only include calls from this phone number, SIP address, Client identifier or SIM SID. + * @param "ParentCallSid" (string) - Only include calls spawned by calls with this SID. + * @param "Status" (string) - The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`. + * @param "StartTime" (time.Time) - 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. + * @param "StartTime<" (time.Time) - 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. + * @param "StartTime>" (time.Time) - 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. + * @param "EndTime" (time.Time) - 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. + * @param "EndTime<" (time.Time) - 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. + * @param "EndTime>" (time.Time) - 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. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountCallReadResponse +*/ +func (c *DefaultApiService) ListCall(accountSid string, params *ListCallParams) (*ApiV2010AccountCallReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Calls.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.To != nil { + data.Set("To", *params.To) + } + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.ParentCallSid != nil { + data.Set("ParentCallSid", *params.ParentCallSid) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.StartTime != nil { + data.Set("StartTime", string(*params.StartTime)) + } + if params != nil && params.StartTime< != nil { + data.Set("StartTime<", string(*params.StartTime<)) + } + if params != nil && params.StartTime> != nil { + data.Set("StartTime>", string(*params.StartTime>)) + } + if params != nil && params.EndTime != nil { + data.Set("EndTime", string(*params.EndTime)) + } + if params != nil && params.EndTime< != nil { + data.Set("EndTime<", string(*params.EndTime<)) + } + if params != nil && params.EndTime> != nil { + data.Set("EndTime>", string(*params.EndTime>)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountCallReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListCallEventParams Optional parameters for the method 'ListCallEvent' +type ListCallEventParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListCallEvent Method for ListCallEvent +Retrieve a list of all events for a call. + * @param accountSid The unique SID identifier of the Account. + * @param callSid The unique SID identifier of the Call. + * @param optional nil or *ListCallEventOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountCallCallEventReadResponse +*/ +func (c *DefaultApiService) ListCallEvent(accountSid string, callSid string, params *ListCallEventParams) (*ApiV2010AccountCallCallEventReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Events.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountCallCallEventReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListCallNotificationParams Optional parameters for the method 'ListCallNotification' +type ListCallNotificationParams struct { + Log *int32 `json:"Log,omitempty"` + MessageDate *time.Time `json:"MessageDate,omitempty"` + MessageDate< *time.Time `json:"MessageDate<,omitempty"` + MessageDate> *time.Time `json:"MessageDate>,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListCallNotification Method for ListCallNotification + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call Notification resources to read. + * @param callSid The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the Call Notification resources to read. + * @param optional nil or *ListCallNotificationOpts - Optional Parameters: + * @param "Log" (int32) - 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. + * @param "MessageDate" (time.Time) - 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. + * @param "MessageDate<" (time.Time) - 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. + * @param "MessageDate>" (time.Time) - 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. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountCallCallNotificationReadResponse +*/ +func (c *DefaultApiService) ListCallNotification(accountSid string, callSid string, params *ListCallNotificationParams) (*ApiV2010AccountCallCallNotificationReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Log != nil { + data.Set("Log", string(*params.Log)) + } + if params != nil && params.MessageDate != nil { + data.Set("MessageDate", string(*params.MessageDate)) + } + if params != nil && params.MessageDate< != nil { + data.Set("MessageDate<", string(*params.MessageDate<)) + } + if params != nil && params.MessageDate> != nil { + data.Set("MessageDate>", string(*params.MessageDate>)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountCallCallNotificationReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListCallRecordingParams Optional parameters for the method 'ListCallRecording' +type ListCallRecordingParams struct { + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateCreated< *time.Time `json:"DateCreated<,omitempty"` + DateCreated> *time.Time `json:"DateCreated>,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListCallRecording Method for ListCallRecording +Retrieve a list of recordings belonging to the call used to make the request + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to read. + * @param callSid The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resources to read. + * @param optional nil or *ListCallRecordingOpts - Optional Parameters: + * @param "DateCreated" (time.Time) - 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. + * @param "DateCreated<" (time.Time) - 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. + * @param "DateCreated>" (time.Time) - 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. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountCallCallRecordingReadResponse +*/ +func (c *DefaultApiService) ListCallRecording(accountSid string, callSid string, params *ListCallRecordingParams) (*ApiV2010AccountCallCallRecordingReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateCreated< != nil { + data.Set("DateCreated<", string(*params.DateCreated<)) + } + if params != nil && params.DateCreated> != nil { + data.Set("DateCreated>", string(*params.DateCreated>)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountCallCallRecordingReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListConferenceParams Optional parameters for the method 'ListConference' +type ListConferenceParams struct { + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateCreated< *time.Time `json:"DateCreated<,omitempty"` + DateCreated> *time.Time `json:"DateCreated>,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + DateUpdated< *time.Time `json:"DateUpdated<,omitempty"` + DateUpdated> *time.Time `json:"DateUpdated>,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Status *string `json:"Status,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListConference Method for ListConference +Retrieve a list of conferences belonging to the account used to make the request + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference resource(s) to read. + * @param optional nil or *ListConferenceOpts - Optional Parameters: + * @param "DateCreated" (time.Time) - 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`. + * @param "DateCreated<" (time.Time) - 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`. + * @param "DateCreated>" (time.Time) - 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`. + * @param "DateUpdated" (time.Time) - 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`. + * @param "DateUpdated<" (time.Time) - 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`. + * @param "DateUpdated>" (time.Time) - 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`. + * @param "FriendlyName" (string) - The string that identifies the Conference resources to read. + * @param "Status" (string) - The status of the resources to read. Can be: `init`, `in-progress`, or `completed`. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountConferenceReadResponse +*/ +func (c *DefaultApiService) ListConference(accountSid string, params *ListConferenceParams) (*ApiV2010AccountConferenceReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Conferences.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateCreated< != nil { + data.Set("DateCreated<", string(*params.DateCreated<)) + } + if params != nil && params.DateCreated> != nil { + data.Set("DateCreated>", string(*params.DateCreated>)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.DateUpdated< != nil { + data.Set("DateUpdated<", string(*params.DateUpdated<)) + } + if params != nil && params.DateUpdated> != nil { + data.Set("DateUpdated>", string(*params.DateUpdated>)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountConferenceReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListConferenceRecordingParams Optional parameters for the method 'ListConferenceRecording' +type ListConferenceRecordingParams struct { + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateCreated< *time.Time `json:"DateCreated<,omitempty"` + DateCreated> *time.Time `json:"DateCreated>,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListConferenceRecording Method for ListConferenceRecording +Retrieve a list of recordings belonging to the call used to make the request + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resources to read. + * @param conferenceSid The Conference SID that identifies the conference associated with the recording to read. + * @param optional nil or *ListConferenceRecordingOpts - Optional Parameters: + * @param "DateCreated" (time.Time) - 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. + * @param "DateCreated<" (time.Time) - 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. + * @param "DateCreated>" (time.Time) - 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. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountConferenceConferenceRecordingReadResponse +*/ +func (c *DefaultApiService) ListConferenceRecording(accountSid string, conferenceSid string, params *ListConferenceRecordingParams) (*ApiV2010AccountConferenceConferenceRecordingReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ConferenceSid"+"}", conferenceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateCreated< != nil { + data.Set("DateCreated<", string(*params.DateCreated<)) + } + if params != nil && params.DateCreated> != nil { + data.Set("DateCreated>", string(*params.DateCreated>)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountConferenceConferenceRecordingReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListConnectAppParams Optional parameters for the method 'ListConnectApp' +type ListConnectAppParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListConnectApp Method for ListConnectApp +Retrieve a list of connect-apps belonging to the account used to make the request + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resources to read. + * @param optional nil or *ListConnectAppOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountConnectAppReadResponse +*/ +func (c *DefaultApiService) ListConnectApp(accountSid string, params *ListConnectAppParams) (*ApiV2010AccountConnectAppReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/ConnectApps.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountConnectAppReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListDependentPhoneNumberParams Optional parameters for the method 'ListDependentPhoneNumber' +type ListDependentPhoneNumberParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListDependentPhoneNumber Method for ListDependentPhoneNumber + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the DependentPhoneNumber resources to read. + * @param addressSid The SID of the Address resource associated with the phone number. + * @param optional nil or *ListDependentPhoneNumberOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountAddressDependentPhoneNumberReadResponse +*/ +func (c *DefaultApiService) ListDependentPhoneNumber(accountSid string, addressSid string, params *ListDependentPhoneNumberParams) (*ApiV2010AccountAddressDependentPhoneNumberReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Addresses/{AddressSid}/DependentPhoneNumbers.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AddressSid"+"}", addressSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountAddressDependentPhoneNumberReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListIncomingPhoneNumberParams Optional parameters for the method 'ListIncomingPhoneNumber' +type ListIncomingPhoneNumberParams struct { + Beta *bool `json:"Beta,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + Origin *string `json:"Origin,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListIncomingPhoneNumber Method for ListIncomingPhoneNumber +Retrieve a list of incoming-phone-numbers belonging to the account used to make the request. + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IncomingPhoneNumber resources to read. + * @param optional nil or *ListIncomingPhoneNumberOpts - Optional Parameters: + * @param "Beta" (bool) - Whether to include phone numbers new to the Twilio platform. Can be: `true` or `false` and the default is `true`. + * @param "FriendlyName" (string) - A string that identifies the IncomingPhoneNumber resources to read. + * @param "PhoneNumber" (string) - The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. + * @param "Origin" (string) - Whether to include phone numbers based on their origin. Can be: `twilio` or `hosted`. By default, phone numbers of all origin are included. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountIncomingPhoneNumberReadResponse +*/ +func (c *DefaultApiService) ListIncomingPhoneNumber(accountSid string, params *ListIncomingPhoneNumberParams) (*ApiV2010AccountIncomingPhoneNumberReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Beta != nil { + data.Set("Beta", string(*params.Beta)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PhoneNumber != nil { + data.Set("PhoneNumber", *params.PhoneNumber) + } + if params != nil && params.Origin != nil { + data.Set("Origin", *params.Origin) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountIncomingPhoneNumberReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListIncomingPhoneNumberAssignedAddOnParams Optional parameters for the method 'ListIncomingPhoneNumberAssignedAddOn' +type ListIncomingPhoneNumberAssignedAddOnParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListIncomingPhoneNumberAssignedAddOn Method for ListIncomingPhoneNumberAssignedAddOn +Retrieve a list of Add-on installations currently assigned to this Number. + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. + * @param resourceSid The SID of the Phone Number to which the Add-on is assigned. + * @param optional nil or *ListIncomingPhoneNumberAssignedAddOnOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse +*/ +func (c *DefaultApiService) ListIncomingPhoneNumberAssignedAddOn(accountSid string, resourceSid string, params *ListIncomingPhoneNumberAssignedAddOnParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ResourceSid"+"}", resourceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListIncomingPhoneNumberAssignedAddOnExtensionParams Optional parameters for the method 'ListIncomingPhoneNumberAssignedAddOnExtension' +type ListIncomingPhoneNumberAssignedAddOnExtensionParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListIncomingPhoneNumberAssignedAddOnExtension Method for ListIncomingPhoneNumberAssignedAddOnExtension +Retrieve a list of Extensions for the Assigned Add-on. + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. + * @param resourceSid The SID of the Phone Number to which the Add-on is assigned. + * @param assignedAddOnSid The SID that uniquely identifies the assigned Add-on installation. + * @param optional nil or *ListIncomingPhoneNumberAssignedAddOnExtensionOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse +*/ +func (c *DefaultApiService) ListIncomingPhoneNumberAssignedAddOnExtension(accountSid string, resourceSid string, assignedAddOnSid string, params *ListIncomingPhoneNumberAssignedAddOnExtensionParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ResourceSid"+"}", resourceSid, -1) + path = strings.Replace(path, "{"+"AssignedAddOnSid"+"}", assignedAddOnSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListIncomingPhoneNumberLocalParams Optional parameters for the method 'ListIncomingPhoneNumberLocal' +type ListIncomingPhoneNumberLocalParams struct { + Beta *bool `json:"Beta,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + Origin *string `json:"Origin,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListIncomingPhoneNumberLocal Method for ListIncomingPhoneNumberLocal + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. + * @param optional nil or *ListIncomingPhoneNumberLocalOpts - Optional Parameters: + * @param "Beta" (bool) - Whether to include phone numbers new to the Twilio platform. Can be: `true` or `false` and the default is `true`. + * @param "FriendlyName" (string) - A string that identifies the resources to read. + * @param "PhoneNumber" (string) - The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. + * @param "Origin" (string) - Whether to include phone numbers based on their origin. Can be: `twilio` or `hosted`. By default, phone numbers of all origin are included. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse +*/ +func (c *DefaultApiService) ListIncomingPhoneNumberLocal(accountSid string, params *ListIncomingPhoneNumberLocalParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Beta != nil { + data.Set("Beta", string(*params.Beta)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PhoneNumber != nil { + data.Set("PhoneNumber", *params.PhoneNumber) + } + if params != nil && params.Origin != nil { + data.Set("Origin", *params.Origin) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListIncomingPhoneNumberMobileParams Optional parameters for the method 'ListIncomingPhoneNumberMobile' +type ListIncomingPhoneNumberMobileParams struct { + Beta *bool `json:"Beta,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + Origin *string `json:"Origin,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListIncomingPhoneNumberMobile Method for ListIncomingPhoneNumberMobile + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. + * @param optional nil or *ListIncomingPhoneNumberMobileOpts - Optional Parameters: + * @param "Beta" (bool) - Whether to include phone numbers new to the Twilio platform. Can be: `true` or `false` and the default is `true`. + * @param "FriendlyName" (string) - A string that identifies the resources to read. + * @param "PhoneNumber" (string) - The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. + * @param "Origin" (string) - Whether to include phone numbers based on their origin. Can be: `twilio` or `hosted`. By default, phone numbers of all origin are included. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse +*/ +func (c *DefaultApiService) ListIncomingPhoneNumberMobile(accountSid string, params *ListIncomingPhoneNumberMobileParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Beta != nil { + data.Set("Beta", string(*params.Beta)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PhoneNumber != nil { + data.Set("PhoneNumber", *params.PhoneNumber) + } + if params != nil && params.Origin != nil { + data.Set("Origin", *params.Origin) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListIncomingPhoneNumberTollFreeParams Optional parameters for the method 'ListIncomingPhoneNumberTollFree' +type ListIncomingPhoneNumberTollFreeParams struct { + Beta *bool `json:"Beta,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + Origin *string `json:"Origin,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListIncomingPhoneNumberTollFree Method for ListIncomingPhoneNumberTollFree + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. + * @param optional nil or *ListIncomingPhoneNumberTollFreeOpts - Optional Parameters: + * @param "Beta" (bool) - Whether to include phone numbers new to the Twilio platform. Can be: `true` or `false` and the default is `true`. + * @param "FriendlyName" (string) - A string that identifies the resources to read. + * @param "PhoneNumber" (string) - The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. + * @param "Origin" (string) - Whether to include phone numbers based on their origin. Can be: `twilio` or `hosted`. By default, phone numbers of all origin are included. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse +*/ +func (c *DefaultApiService) ListIncomingPhoneNumberTollFree(accountSid string, params *ListIncomingPhoneNumberTollFreeParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Beta != nil { + data.Set("Beta", string(*params.Beta)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PhoneNumber != nil { + data.Set("PhoneNumber", *params.PhoneNumber) + } + if params != nil && params.Origin != nil { + data.Set("Origin", *params.Origin) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListKeyParams Optional parameters for the method 'ListKey' +type ListKeyParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListKey Method for ListKey + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resources to read. + * @param optional nil or *ListKeyOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountKeyReadResponse +*/ +func (c *DefaultApiService) ListKey(accountSid string, params *ListKeyParams) (*ApiV2010AccountKeyReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Keys.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountKeyReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListMediaParams Optional parameters for the method 'ListMedia' +type ListMediaParams struct { + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateCreated< *time.Time `json:"DateCreated<,omitempty"` + DateCreated> *time.Time `json:"DateCreated>,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListMedia Method for ListMedia +Retrieve a list of Media resources belonging to the account used to make the request + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Media resource(s) to read. + * @param messageSid The SID of the Message resource that this Media resource belongs to. + * @param optional nil or *ListMediaOpts - Optional Parameters: + * @param "DateCreated" (time.Time) - 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. + * @param "DateCreated<" (time.Time) - 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. + * @param "DateCreated>" (time.Time) - 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. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountMessageMediaReadResponse +*/ +func (c *DefaultApiService) ListMedia(accountSid string, messageSid string, params *ListMediaParams) (*ApiV2010AccountMessageMediaReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"MessageSid"+"}", messageSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateCreated< != nil { + data.Set("DateCreated<", string(*params.DateCreated<)) + } + if params != nil && params.DateCreated> != nil { + data.Set("DateCreated>", string(*params.DateCreated>)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountMessageMediaReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListMemberParams Optional parameters for the method 'ListMember' +type ListMemberParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListMember Method for ListMember +Retrieve the members of the queue + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Member resource(s) to read. + * @param queueSid The SID of the Queue in which to find the members + * @param optional nil or *ListMemberOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountQueueMemberReadResponse +*/ +func (c *DefaultApiService) ListMember(accountSid string, queueSid string, params *ListMemberParams) (*ApiV2010AccountQueueMemberReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"QueueSid"+"}", queueSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountQueueMemberReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListMessageParams Optional parameters for the method 'ListMessage' +type ListMessageParams struct { + To *string `json:"To,omitempty"` + From *string `json:"From,omitempty"` + DateSent *time.Time `json:"DateSent,omitempty"` + DateSent< *time.Time `json:"DateSent<,omitempty"` + DateSent> *time.Time `json:"DateSent>,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListMessage Method for ListMessage +Retrieve a list of messages belonging to the account used to make the request + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Message resources to read. + * @param optional nil or *ListMessageOpts - Optional Parameters: + * @param "To" (string) - Read messages sent to only this phone number. + * @param "From" (string) - Read messages sent from only this phone number or alphanumeric sender ID. + * @param "DateSent" (time.Time) - 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. + * @param "DateSent<" (time.Time) - 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. + * @param "DateSent>" (time.Time) - 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. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountMessageReadResponse +*/ +func (c *DefaultApiService) ListMessage(accountSid string, params *ListMessageParams) (*ApiV2010AccountMessageReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Messages.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.To != nil { + data.Set("To", *params.To) + } + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.DateSent != nil { + data.Set("DateSent", string(*params.DateSent)) + } + if params != nil && params.DateSent< != nil { + data.Set("DateSent<", string(*params.DateSent<)) + } + if params != nil && params.DateSent> != nil { + data.Set("DateSent>", string(*params.DateSent>)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountMessageReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListNotificationParams Optional parameters for the method 'ListNotification' +type ListNotificationParams struct { + Log *int32 `json:"Log,omitempty"` + MessageDate *time.Time `json:"MessageDate,omitempty"` + MessageDate< *time.Time `json:"MessageDate<,omitempty"` + MessageDate> *time.Time `json:"MessageDate>,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListNotification Method for ListNotification +Retrieve a list of notifications belonging to the account used to make the request + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Notification resources to read. + * @param optional nil or *ListNotificationOpts - Optional Parameters: + * @param "Log" (int32) - 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. + * @param "MessageDate" (time.Time) - 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. + * @param "MessageDate<" (time.Time) - 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. + * @param "MessageDate>" (time.Time) - 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. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountNotificationReadResponse +*/ +func (c *DefaultApiService) ListNotification(accountSid string, params *ListNotificationParams) (*ApiV2010AccountNotificationReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Notifications.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Log != nil { + data.Set("Log", string(*params.Log)) + } + if params != nil && params.MessageDate != nil { + data.Set("MessageDate", string(*params.MessageDate)) + } + if params != nil && params.MessageDate< != nil { + data.Set("MessageDate<", string(*params.MessageDate<)) + } + if params != nil && params.MessageDate> != nil { + data.Set("MessageDate>", string(*params.MessageDate>)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountNotificationReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListOutgoingCallerIdParams Optional parameters for the method 'ListOutgoingCallerId' +type ListOutgoingCallerIdParams struct { + PhoneNumber *string `json:"PhoneNumber,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListOutgoingCallerId Method for ListOutgoingCallerId +Retrieve a list of outgoing-caller-ids belonging to the account used to make the request + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resources to read. + * @param optional nil or *ListOutgoingCallerIdOpts - Optional Parameters: + * @param "PhoneNumber" (string) - The phone number of the OutgoingCallerId resources to read. + * @param "FriendlyName" (string) - The string that identifies the OutgoingCallerId resources to read. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountOutgoingCallerIdReadResponse +*/ +func (c *DefaultApiService) ListOutgoingCallerId(accountSid string, params *ListOutgoingCallerIdParams) (*ApiV2010AccountOutgoingCallerIdReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PhoneNumber != nil { + data.Set("PhoneNumber", *params.PhoneNumber) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountOutgoingCallerIdReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListParticipantParams Optional parameters for the method 'ListParticipant' +type ListParticipantParams struct { + Muted *bool `json:"Muted,omitempty"` + Hold *bool `json:"Hold,omitempty"` + Coaching *bool `json:"Coaching,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListParticipant Method for ListParticipant +Retrieve a list of participants belonging to the account used to make the request + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resources to read. + * @param conferenceSid The SID of the conference with the participants to read. + * @param optional nil or *ListParticipantOpts - Optional Parameters: + * @param "Muted" (bool) - Whether to return only participants that are muted. Can be: `true` or `false`. + * @param "Hold" (bool) - Whether to return only participants that are on hold. Can be: `true` or `false`. + * @param "Coaching" (bool) - Whether to return only participants who are coaching another call. Can be: `true` or `false`. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountConferenceParticipantReadResponse +*/ +func (c *DefaultApiService) ListParticipant(accountSid string, conferenceSid string, params *ListParticipantParams) (*ApiV2010AccountConferenceParticipantReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ConferenceSid"+"}", conferenceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Muted != nil { + data.Set("Muted", string(*params.Muted)) + } + if params != nil && params.Hold != nil { + data.Set("Hold", string(*params.Hold)) + } + if params != nil && params.Coaching != nil { + data.Set("Coaching", string(*params.Coaching)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountConferenceParticipantReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListQueueParams Optional parameters for the method 'ListQueue' +type ListQueueParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListQueue Method for ListQueue +Retrieve a list of queues belonging to the account used to make the request + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resources to read. + * @param optional nil or *ListQueueOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountQueueReadResponse +*/ +func (c *DefaultApiService) ListQueue(accountSid string, params *ListQueueParams) (*ApiV2010AccountQueueReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Queues.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountQueueReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListRecordingParams Optional parameters for the method 'ListRecording' +type ListRecordingParams struct { + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateCreated< *time.Time `json:"DateCreated<,omitempty"` + DateCreated> *time.Time `json:"DateCreated>,omitempty"` + CallSid *string `json:"CallSid,omitempty"` + ConferenceSid *string `json:"ConferenceSid,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListRecording Method for ListRecording +Retrieve a list of recordings belonging to the account used to make the request + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to read. + * @param optional nil or *ListRecordingOpts - Optional Parameters: + * @param "DateCreated" (time.Time) - 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. + * @param "DateCreated<" (time.Time) - 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. + * @param "DateCreated>" (time.Time) - 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. + * @param "CallSid" (string) - The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resources to read. + * @param "ConferenceSid" (string) - The Conference SID that identifies the conference associated with the recording to read. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountRecordingReadResponse +*/ +func (c *DefaultApiService) ListRecording(accountSid string, params *ListRecordingParams) (*ApiV2010AccountRecordingReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Recordings.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateCreated< != nil { + data.Set("DateCreated<", string(*params.DateCreated<)) + } + if params != nil && params.DateCreated> != nil { + data.Set("DateCreated>", string(*params.DateCreated>)) + } + if params != nil && params.CallSid != nil { + data.Set("CallSid", *params.CallSid) + } + if params != nil && params.ConferenceSid != nil { + data.Set("ConferenceSid", *params.ConferenceSid) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountRecordingReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListRecordingAddOnResultParams Optional parameters for the method 'ListRecordingAddOnResult' +type ListRecordingAddOnResultParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListRecordingAddOnResult Method for ListRecordingAddOnResult +Retrieve a list of results belonging to the recording + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult resources to read. + * @param referenceSid The SID of the recording to which the result to read belongs. + * @param optional nil or *ListRecordingAddOnResultOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountRecordingRecordingAddOnResultReadResponse +*/ +func (c *DefaultApiService) ListRecordingAddOnResult(accountSid string, referenceSid string, params *ListRecordingAddOnResultParams) (*ApiV2010AccountRecordingRecordingAddOnResultReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ReferenceSid"+"}", referenceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountRecordingRecordingAddOnResultReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListRecordingAddOnResultPayloadParams Optional parameters for the method 'ListRecordingAddOnResultPayload' +type ListRecordingAddOnResultPayloadParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListRecordingAddOnResultPayload Method for ListRecordingAddOnResultPayload +Retrieve a list of payloads belonging to the AddOnResult + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resources to read. + * @param referenceSid The SID of the recording to which the AddOnResult resource that contains the payloads to read belongs. + * @param addOnResultSid The SID of the AddOnResult to which the payloads to read belongs. + * @param optional nil or *ListRecordingAddOnResultPayloadOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse +*/ +func (c *DefaultApiService) ListRecordingAddOnResultPayload(accountSid string, referenceSid string, addOnResultSid string, params *ListRecordingAddOnResultPayloadParams) (*ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ReferenceSid"+"}", referenceSid, -1) + path = strings.Replace(path, "{"+"AddOnResultSid"+"}", addOnResultSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListRecordingTranscriptionParams Optional parameters for the method 'ListRecordingTranscription' +type ListRecordingTranscriptionParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListRecordingTranscription Method for ListRecordingTranscription + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to read. + * @param recordingSid The SID of the [Recording](https://www.twilio.com/docs/voice/api/recording) that created the transcriptions to read. + * @param optional nil or *ListRecordingTranscriptionOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountRecordingRecordingTranscriptionReadResponse +*/ +func (c *DefaultApiService) ListRecordingTranscription(accountSid string, recordingSid string, params *ListRecordingTranscriptionParams) (*ApiV2010AccountRecordingRecordingTranscriptionReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"RecordingSid"+"}", recordingSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountRecordingRecordingTranscriptionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListShortCodeParams Optional parameters for the method 'ListShortCode' +type ListShortCodeParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` + ShortCode *string `json:"ShortCode,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListShortCode Method for ListShortCode +Retrieve a list of short-codes belonging to the account used to make the request + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ShortCode resource(s) to read. + * @param optional nil or *ListShortCodeOpts - Optional Parameters: + * @param "FriendlyName" (string) - The string that identifies the ShortCode resources to read. + * @param "ShortCode" (string) - Only show the ShortCode resources that match this pattern. You can specify partial numbers and use '*' as a wildcard for any digit. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountShortCodeReadResponse +*/ +func (c *DefaultApiService) ListShortCode(accountSid string, params *ListShortCodeParams) (*ApiV2010AccountShortCodeReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.ShortCode != nil { + data.Set("ShortCode", *params.ShortCode) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountShortCodeReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListSigningKeyParams Optional parameters for the method 'ListSigningKey' +type ListSigningKeyParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListSigningKey Method for ListSigningKey + * @param accountSid + * @param optional nil or *ListSigningKeyOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountSigningKeyReadResponse +*/ +func (c *DefaultApiService) ListSigningKey(accountSid string, params *ListSigningKeyParams) (*ApiV2010AccountSigningKeyReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SigningKeys.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSigningKeyReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListSipAuthCallsCredentialListMappingParams Optional parameters for the method 'ListSipAuthCallsCredentialListMapping' +type ListSipAuthCallsCredentialListMappingParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListSipAuthCallsCredentialListMapping Method for ListSipAuthCallsCredentialListMapping +Retrieve a list of credential list mappings belonging to the domain used in the request + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to read. + * @param domainSid The SID of the SIP domain that contains the resources to read. + * @param optional nil or *ListSipAuthCallsCredentialListMappingOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse +*/ +func (c *DefaultApiService) ListSipAuthCallsCredentialListMapping(accountSid string, domainSid string, params *ListSipAuthCallsCredentialListMappingParams) (*ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListSipAuthCallsIpAccessControlListMappingParams Optional parameters for the method 'ListSipAuthCallsIpAccessControlListMapping' +type ListSipAuthCallsIpAccessControlListMappingParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListSipAuthCallsIpAccessControlListMapping Method for ListSipAuthCallsIpAccessControlListMapping +Retrieve a list of IP Access Control List mappings belonging to the domain used in the request + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IpAccessControlListMapping resources to read. + * @param domainSid The SID of the SIP domain that contains the resources to read. + * @param optional nil or *ListSipAuthCallsIpAccessControlListMappingOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse +*/ +func (c *DefaultApiService) ListSipAuthCallsIpAccessControlListMapping(accountSid string, domainSid string, params *ListSipAuthCallsIpAccessControlListMappingParams) (*ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListSipAuthRegistrationsCredentialListMappingParams Optional parameters for the method 'ListSipAuthRegistrationsCredentialListMapping' +type ListSipAuthRegistrationsCredentialListMappingParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListSipAuthRegistrationsCredentialListMapping Method for ListSipAuthRegistrationsCredentialListMapping +Retrieve a list of credential list mappings belonging to the domain used in the request + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to read. + * @param domainSid The SID of the SIP domain that contains the resources to read. + * @param optional nil or *ListSipAuthRegistrationsCredentialListMappingOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse +*/ +func (c *DefaultApiService) ListSipAuthRegistrationsCredentialListMapping(accountSid string, domainSid string, params *ListSipAuthRegistrationsCredentialListMappingParams) (*ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListSipCredentialParams Optional parameters for the method 'ListSipCredential' +type ListSipCredentialParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListSipCredential Method for ListSipCredential +Retrieve a list of credentials. + * @param accountSid The unique id of the Account that is responsible for this resource. + * @param credentialListSid The unique id that identifies the credential list that contains the desired credentials. + * @param optional nil or *ListSipCredentialOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountSipSipCredentialListSipCredentialReadResponse +*/ +func (c *DefaultApiService) ListSipCredential(accountSid string, credentialListSid string, params *ListSipCredentialParams) (*ApiV2010AccountSipSipCredentialListSipCredentialReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CredentialListSid"+"}", credentialListSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipCredentialListSipCredentialReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListSipCredentialListParams Optional parameters for the method 'ListSipCredentialList' +type ListSipCredentialListParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListSipCredentialList Method for ListSipCredentialList +Get All Credential Lists + * @param accountSid The unique id of the Account that is responsible for this resource. + * @param optional nil or *ListSipCredentialListOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountSipSipCredentialListReadResponse +*/ +func (c *DefaultApiService) ListSipCredentialList(accountSid string, params *ListSipCredentialListParams) (*ApiV2010AccountSipSipCredentialListReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipCredentialListReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListSipCredentialListMappingParams Optional parameters for the method 'ListSipCredentialListMapping' +type ListSipCredentialListMappingParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListSipCredentialListMapping Method for ListSipCredentialListMapping +Read multiple CredentialListMapping resources from an account. + * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param domainSid A 34 character string that uniquely identifies the SIP Domain that includes the resource to read. + * @param optional nil or *ListSipCredentialListMappingOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse +*/ +func (c *DefaultApiService) ListSipCredentialListMapping(accountSid string, domainSid string, params *ListSipCredentialListMappingParams) (*ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListSipDomainParams Optional parameters for the method 'ListSipDomain' +type ListSipDomainParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListSipDomain Method for ListSipDomain +Retrieve a list of domains belonging to the account used to make the request + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resources to read. + * @param optional nil or *ListSipDomainOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountSipSipDomainReadResponse +*/ +func (c *DefaultApiService) ListSipDomain(accountSid string, params *ListSipDomainParams) (*ApiV2010AccountSipSipDomainReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipDomainReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListSipIpAccessControlListParams Optional parameters for the method 'ListSipIpAccessControlList' +type ListSipIpAccessControlListParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListSipIpAccessControlList Method for ListSipIpAccessControlList +Retrieve a list of IpAccessControlLists that belong to the account used to make the request + * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param optional nil or *ListSipIpAccessControlListOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountSipSipIpAccessControlListReadResponse +*/ +func (c *DefaultApiService) ListSipIpAccessControlList(accountSid string, params *ListSipIpAccessControlListParams) (*ApiV2010AccountSipSipIpAccessControlListReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipIpAccessControlListReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListSipIpAccessControlListMappingParams Optional parameters for the method 'ListSipIpAccessControlListMapping' +type ListSipIpAccessControlListMappingParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListSipIpAccessControlListMapping Method for ListSipIpAccessControlListMapping +Retrieve a list of IpAccessControlListMapping resources. + * @param accountSid The unique id of the Account that is responsible for this resource. + * @param domainSid A 34 character string that uniquely identifies the SIP domain. + * @param optional nil or *ListSipIpAccessControlListMappingOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse +*/ +func (c *DefaultApiService) ListSipIpAccessControlListMapping(accountSid string, domainSid string, params *ListSipIpAccessControlListMappingParams) (*ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListSipIpAddressParams Optional parameters for the method 'ListSipIpAddress' +type ListSipIpAddressParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListSipIpAddress Method for ListSipIpAddress +Read multiple IpAddress resources. + * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param ipAccessControlListSid The IpAccessControlList Sid that identifies the IpAddress resources to read. + * @param optional nil or *ListSipIpAddressOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse +*/ +func (c *DefaultApiService) ListSipIpAddress(accountSid string, ipAccessControlListSid string, params *ListSipIpAddressParams) (*ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"IpAccessControlListSid"+"}", ipAccessControlListSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListTranscriptionParams Optional parameters for the method 'ListTranscription' +type ListTranscriptionParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListTranscription Method for ListTranscription +Retrieve a list of transcriptions belonging to the account used to make the request + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to read. + * @param optional nil or *ListTranscriptionOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountTranscriptionReadResponse +*/ +func (c *DefaultApiService) ListTranscription(accountSid string, params *ListTranscriptionParams) (*ApiV2010AccountTranscriptionReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Transcriptions.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountTranscriptionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListUsageRecordParams Optional parameters for the method 'ListUsageRecord' +type ListUsageRecordParams struct { + Category *string `json:"Category,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListUsageRecord Method for ListUsageRecord +Retrieve a list of usage-records belonging to the account used to make the request + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. + * @param optional nil or *ListUsageRecordOpts - Optional Parameters: + * @param "Category" (string) - 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. + * @param "StartDate" (time.Time) - 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. + * @param "EndDate" (time.Time) - 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. + * @param "IncludeSubaccounts" (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. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountUsageUsageRecordReadResponse +*/ +func (c *DefaultApiService) ListUsageRecord(accountSid string, params *ListUsageRecordParams) (*ApiV2010AccountUsageUsageRecordReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Category != nil { + data.Set("Category", *params.Category) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.IncludeSubaccounts != nil { + data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountUsageUsageRecordReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListUsageRecordAllTimeParams Optional parameters for the method 'ListUsageRecordAllTime' +type ListUsageRecordAllTimeParams struct { + Category *string `json:"Category,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListUsageRecordAllTime Method for ListUsageRecordAllTime + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. + * @param optional nil or *ListUsageRecordAllTimeOpts - Optional Parameters: + * @param "Category" (string) - 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. + * @param "StartDate" (time.Time) - 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. + * @param "EndDate" (time.Time) - 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. + * @param "IncludeSubaccounts" (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. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse +*/ +func (c *DefaultApiService) ListUsageRecordAllTime(accountSid string, params *ListUsageRecordAllTimeParams) (*ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/AllTime.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Category != nil { + data.Set("Category", *params.Category) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.IncludeSubaccounts != nil { + data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListUsageRecordDailyParams Optional parameters for the method 'ListUsageRecordDaily' +type ListUsageRecordDailyParams struct { + Category *string `json:"Category,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListUsageRecordDaily Method for ListUsageRecordDaily + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. + * @param optional nil or *ListUsageRecordDailyOpts - Optional Parameters: + * @param "Category" (string) - 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. + * @param "StartDate" (time.Time) - 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. + * @param "EndDate" (time.Time) - 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. + * @param "IncludeSubaccounts" (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. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse +*/ +func (c *DefaultApiService) ListUsageRecordDaily(accountSid string, params *ListUsageRecordDailyParams) (*ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/Daily.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Category != nil { + data.Set("Category", *params.Category) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.IncludeSubaccounts != nil { + data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListUsageRecordLastMonthParams Optional parameters for the method 'ListUsageRecordLastMonth' +type ListUsageRecordLastMonthParams struct { + Category *string `json:"Category,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListUsageRecordLastMonth Method for ListUsageRecordLastMonth + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. + * @param optional nil or *ListUsageRecordLastMonthOpts - Optional Parameters: + * @param "Category" (string) - 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. + * @param "StartDate" (time.Time) - 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. + * @param "EndDate" (time.Time) - 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. + * @param "IncludeSubaccounts" (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. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse +*/ +func (c *DefaultApiService) ListUsageRecordLastMonth(accountSid string, params *ListUsageRecordLastMonthParams) (*ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/LastMonth.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Category != nil { + data.Set("Category", *params.Category) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.IncludeSubaccounts != nil { + data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListUsageRecordMonthlyParams Optional parameters for the method 'ListUsageRecordMonthly' +type ListUsageRecordMonthlyParams struct { + Category *string `json:"Category,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListUsageRecordMonthly Method for ListUsageRecordMonthly + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. + * @param optional nil or *ListUsageRecordMonthlyOpts - Optional Parameters: + * @param "Category" (string) - 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. + * @param "StartDate" (time.Time) - 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. + * @param "EndDate" (time.Time) - 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. + * @param "IncludeSubaccounts" (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. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse +*/ +func (c *DefaultApiService) ListUsageRecordMonthly(accountSid string, params *ListUsageRecordMonthlyParams) (*ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/Monthly.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Category != nil { + data.Set("Category", *params.Category) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.IncludeSubaccounts != nil { + data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListUsageRecordThisMonthParams Optional parameters for the method 'ListUsageRecordThisMonth' +type ListUsageRecordThisMonthParams struct { + Category *string `json:"Category,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListUsageRecordThisMonth Method for ListUsageRecordThisMonth + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. + * @param optional nil or *ListUsageRecordThisMonthOpts - Optional Parameters: + * @param "Category" (string) - 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. + * @param "StartDate" (time.Time) - 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. + * @param "EndDate" (time.Time) - 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. + * @param "IncludeSubaccounts" (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. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse +*/ +func (c *DefaultApiService) ListUsageRecordThisMonth(accountSid string, params *ListUsageRecordThisMonthParams) (*ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/ThisMonth.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Category != nil { + data.Set("Category", *params.Category) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.IncludeSubaccounts != nil { + data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListUsageRecordTodayParams Optional parameters for the method 'ListUsageRecordToday' +type ListUsageRecordTodayParams struct { + Category *string `json:"Category,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListUsageRecordToday Method for ListUsageRecordToday + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. + * @param optional nil or *ListUsageRecordTodayOpts - Optional Parameters: + * @param "Category" (string) - 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. + * @param "StartDate" (time.Time) - 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. + * @param "EndDate" (time.Time) - 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. + * @param "IncludeSubaccounts" (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. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse +*/ +func (c *DefaultApiService) ListUsageRecordToday(accountSid string, params *ListUsageRecordTodayParams) (*ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/Today.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Category != nil { + data.Set("Category", *params.Category) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.IncludeSubaccounts != nil { + data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListUsageRecordYearlyParams Optional parameters for the method 'ListUsageRecordYearly' +type ListUsageRecordYearlyParams struct { + Category *string `json:"Category,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListUsageRecordYearly Method for ListUsageRecordYearly + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. + * @param optional nil or *ListUsageRecordYearlyOpts - Optional Parameters: + * @param "Category" (string) - 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. + * @param "StartDate" (time.Time) - 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. + * @param "EndDate" (time.Time) - 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. + * @param "IncludeSubaccounts" (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. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse +*/ +func (c *DefaultApiService) ListUsageRecordYearly(accountSid string, params *ListUsageRecordYearlyParams) (*ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/Yearly.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Category != nil { + data.Set("Category", *params.Category) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.IncludeSubaccounts != nil { + data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListUsageRecordYesterdayParams Optional parameters for the method 'ListUsageRecordYesterday' +type ListUsageRecordYesterdayParams struct { + Category *string `json:"Category,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListUsageRecordYesterday Method for ListUsageRecordYesterday + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. + * @param optional nil or *ListUsageRecordYesterdayOpts - Optional Parameters: + * @param "Category" (string) - 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. + * @param "StartDate" (time.Time) - 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. + * @param "EndDate" (time.Time) - 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. + * @param "IncludeSubaccounts" (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. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse +*/ +func (c *DefaultApiService) ListUsageRecordYesterday(accountSid string, params *ListUsageRecordYesterdayParams) (*ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/Yesterday.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Category != nil { + data.Set("Category", *params.Category) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.IncludeSubaccounts != nil { + data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListUsageTriggerParams Optional parameters for the method 'ListUsageTrigger' +type ListUsageTriggerParams struct { + Recurring *string `json:"Recurring,omitempty"` + TriggerBy *string `json:"TriggerBy,omitempty"` + UsageCategory *string `json:"UsageCategory,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListUsageTrigger Method for ListUsageTrigger +Retrieve a list of usage-triggers belonging to the account used to make the request + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resources to read. + * @param optional nil or *ListUsageTriggerOpts - Optional Parameters: + * @param "Recurring" (string) - 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. + * @param "TriggerBy" (string) - 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). + * @param "UsageCategory" (string) - 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). + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ApiV2010AccountUsageUsageTriggerReadResponse +*/ +func (c *DefaultApiService) ListUsageTrigger(accountSid string, params *ListUsageTriggerParams) (*ApiV2010AccountUsageUsageTriggerReadResponse, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Usage/Triggers.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Recurring != nil { + data.Set("Recurring", *params.Recurring) + } + if params != nil && params.TriggerBy != nil { + data.Set("TriggerBy", *params.TriggerBy) + } + if params != nil && params.UsageCategory != nil { + data.Set("UsageCategory", *params.UsageCategory) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountUsageUsageTriggerReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateAccountParams Optional parameters for the method 'UpdateAccount' +type UpdateAccountParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` + Status *string `json:"Status,omitempty"` +} + +/* +UpdateAccount Method for UpdateAccount +Modify the properties of a given Account + * @param sid The Account Sid that uniquely identifies the account to update + * @param optional nil or *UpdateAccountOpts - Optional Parameters: + * @param "FriendlyName" (string) - Update the human-readable description of this Account + * @param "Status" (string) - Alter the status of this account: use `closed` to irreversibly close this account, `suspended` to temporarily suspend it, or `active` to reactivate it. +@return ApiV2010Account +*/ +func (c *DefaultApiService) UpdateAccount(sid string, params *UpdateAccountParams) (*ApiV2010Account, error) { + path := "/2010-04-01/Accounts/{Sid}.json" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010Account{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateAddressParams Optional parameters for the method 'UpdateAddress' +type UpdateAddressParams struct { + AutoCorrectAddress *bool `json:"AutoCorrectAddress,omitempty"` + City *string `json:"City,omitempty"` + CustomerName *string `json:"CustomerName,omitempty"` + EmergencyEnabled *bool `json:"EmergencyEnabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PostalCode *string `json:"PostalCode,omitempty"` + Region *string `json:"Region,omitempty"` + Street *string `json:"Street,omitempty"` +} + +/* +UpdateAddress Method for UpdateAddress + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to update. + * @param sid The Twilio-provided string that uniquely identifies the Address resource to update. + * @param optional nil or *UpdateAddressOpts - Optional Parameters: + * @param "AutoCorrectAddress" (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. + * @param "City" (string) - The city of the address. + * @param "CustomerName" (string) - The name to associate with the address. + * @param "EmergencyEnabled" (bool) - Whether to enable emergency calling on the address. Can be: `true` or `false`. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the address. It can be up to 64 characters long. + * @param "PostalCode" (string) - The postal code of the address. + * @param "Region" (string) - The state or region of the address. + * @param "Street" (string) - The number and street address of the address. +@return ApiV2010AccountAddress +*/ +func (c *DefaultApiService) UpdateAddress(accountSid string, sid string, params *UpdateAddressParams) (*ApiV2010AccountAddress, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AutoCorrectAddress != nil { + data.Set("AutoCorrectAddress", string(*params.AutoCorrectAddress)) + } + if params != nil && params.City != nil { + data.Set("City", *params.City) + } + if params != nil && params.CustomerName != nil { + data.Set("CustomerName", *params.CustomerName) + } + if params != nil && params.EmergencyEnabled != nil { + data.Set("EmergencyEnabled", string(*params.EmergencyEnabled)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PostalCode != nil { + data.Set("PostalCode", *params.PostalCode) + } + if params != nil && params.Region != nil { + data.Set("Region", *params.Region) + } + if params != nil && params.Street != nil { + data.Set("Street", *params.Street) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountAddress{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateApplicationParams Optional parameters for the method 'UpdateApplication' +type UpdateApplicationParams struct { + ApiVersion *string `json:"ApiVersion,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + MessageStatusCallback *string `json:"MessageStatusCallback,omitempty"` + SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` + SmsMethod *string `json:"SmsMethod,omitempty"` + SmsStatusCallback *string `json:"SmsStatusCallback,omitempty"` + SmsUrl *string `json:"SmsUrl,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + VoiceCallerIdLookup *bool `json:"VoiceCallerIdLookup,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` +} + +/* +UpdateApplication Method for UpdateApplication +Updates the application's properties + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resources to update. + * @param sid The Twilio-provided string that uniquely identifies the Application resource to update. + * @param optional nil or *UpdateApplicationOpts - Optional Parameters: + * @param "ApiVersion" (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. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. + * @param "MessageStatusCallback" (string) - The URL we should call using a POST method to send message status information to your application. + * @param "SmsFallbackMethod" (string) - The HTTP method we should use to call `sms_fallback_url`. Can be: `GET` or `POST`. + * @param "SmsFallbackUrl" (string) - The URL that we should call when an error occurs while retrieving or executing the TwiML from `sms_url`. + * @param "SmsMethod" (string) - The HTTP method we should use to call `sms_url`. Can be: `GET` or `POST`. + * @param "SmsStatusCallback" (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. + * @param "SmsUrl" (string) - The URL we should call when the phone number receives an incoming SMS message. + * @param "StatusCallback" (string) - The URL we should call using the `status_callback_method` to send status information to your application. + * @param "StatusCallbackMethod" (string) - The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST`. + * @param "VoiceCallerIdLookup" (bool) - Whether we should look up the caller's caller-ID name from the CNAM database (additional charges apply). Can be: `true` or `false`. + * @param "VoiceFallbackMethod" (string) - The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. + * @param "VoiceFallbackUrl" (string) - The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. + * @param "VoiceMethod" (string) - The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`. + * @param "VoiceUrl" (string) - The URL we should call when the phone number assigned to this application receives a call. +@return ApiV2010AccountApplication +*/ +func (c *DefaultApiService) UpdateApplication(accountSid string, sid string, params *UpdateApplicationParams) (*ApiV2010AccountApplication, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ApiVersion != nil { + data.Set("ApiVersion", *params.ApiVersion) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.MessageStatusCallback != nil { + data.Set("MessageStatusCallback", *params.MessageStatusCallback) + } + if params != nil && params.SmsFallbackMethod != nil { + data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) + } + if params != nil && params.SmsFallbackUrl != nil { + data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) + } + if params != nil && params.SmsMethod != nil { + data.Set("SmsMethod", *params.SmsMethod) + } + if params != nil && params.SmsStatusCallback != nil { + data.Set("SmsStatusCallback", *params.SmsStatusCallback) + } + if params != nil && params.SmsUrl != nil { + data.Set("SmsUrl", *params.SmsUrl) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.VoiceCallerIdLookup != nil { + data.Set("VoiceCallerIdLookup", string(*params.VoiceCallerIdLookup)) + } + if params != nil && params.VoiceFallbackMethod != nil { + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + } + if params != nil && params.VoiceFallbackUrl != nil { + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + } + if params != nil && params.VoiceMethod != nil { + data.Set("VoiceMethod", *params.VoiceMethod) + } + if params != nil && params.VoiceUrl != nil { + data.Set("VoiceUrl", *params.VoiceUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountApplication{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateCallParams Optional parameters for the method 'UpdateCall' +type UpdateCallParams struct { + FallbackMethod *string `json:"FallbackMethod,omitempty"` + FallbackUrl *string `json:"FallbackUrl,omitempty"` + Method *string `json:"Method,omitempty"` + Status *string `json:"Status,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + Twiml *string `json:"Twiml,omitempty"` + Url *string `json:"Url,omitempty"` +} + +/* +UpdateCall Method for UpdateCall +Initiates a call redirect or terminates a call + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to update. + * @param sid The Twilio-provided string that uniquely identifies the Call resource to update + * @param optional nil or *UpdateCallOpts - Optional Parameters: + * @param "FallbackMethod" (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. + * @param "FallbackUrl" (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. + * @param "Method" (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. + * @param "Status" (string) - The new status of the resource. Can be: `canceled` or `completed`. Specifying `canceled` will attempt to hang up calls that are queued or ringing; however, it will not affect calls already in progress. Specifying `completed` will attempt to hang up a call even if it's already in progress. + * @param "StatusCallback" (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). + * @param "StatusCallbackMethod" (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. + * @param "Twiml" (string) - TwiML instructions for the call Twilio will use without fetching Twiml from url. Twiml and url parameters are mutually exclusive + * @param "Url" (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). +@return ApiV2010AccountCall +*/ +func (c *DefaultApiService) UpdateCall(accountSid string, sid string, params *UpdateCallParams) (*ApiV2010AccountCall, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FallbackMethod != nil { + data.Set("FallbackMethod", *params.FallbackMethod) + } + if params != nil && params.FallbackUrl != nil { + data.Set("FallbackUrl", *params.FallbackUrl) + } + if params != nil && params.Method != nil { + data.Set("Method", *params.Method) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.Twiml != nil { + data.Set("Twiml", *params.Twiml) + } + if params != nil && params.Url != nil { + data.Set("Url", *params.Url) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountCall{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateCallFeedbackParams Optional parameters for the method 'UpdateCallFeedback' +type UpdateCallFeedbackParams struct { + Issue *[]string `json:"Issue,omitempty"` + QualityScore *int32 `json:"QualityScore,omitempty"` +} + +/* +UpdateCallFeedback Method for UpdateCallFeedback +Update a Feedback resource for a call + * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param callSid The call sid that uniquely identifies the call + * @param optional nil or *UpdateCallFeedbackOpts - Optional Parameters: + * @param "Issue" ([]string) - 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`. + * @param "QualityScore" (int32) - The call quality expressed as an integer from `1` to `5` where `1` represents very poor call quality and `5` represents a perfect call. +@return ApiV2010AccountCallCallFeedback +*/ +func (c *DefaultApiService) UpdateCallFeedback(accountSid string, callSid string, params *UpdateCallFeedbackParams) (*ApiV2010AccountCallCallFeedback, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Feedback.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Issue != nil { + data.Set("Issue", *params.Issue) + } + if params != nil && params.QualityScore != nil { + data.Set("QualityScore", string(*params.QualityScore)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountCallCallFeedback{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateCallRecordingParams Optional parameters for the method 'UpdateCallRecording' +type UpdateCallRecordingParams struct { + PauseBehavior *string `json:"PauseBehavior,omitempty"` + Status *string `json:"Status,omitempty"` +} + +/* +UpdateCallRecording Method for UpdateCallRecording +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. + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource to update. + * @param callSid The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource to update. + * @param sid The Twilio-provided string that uniquely identifies the Recording resource to update. + * @param optional nil or *UpdateCallRecordingOpts - Optional Parameters: + * @param "PauseBehavior" (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`. + * @param "Status" (string) - The new status of the recording. Can be: `stopped`, `paused`, `in-progress`. +@return ApiV2010AccountCallCallRecording +*/ +func (c *DefaultApiService) UpdateCallRecording(accountSid string, callSid string, sid string, params *UpdateCallRecordingParams) (*ApiV2010AccountCallCallRecording, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PauseBehavior != nil { + data.Set("PauseBehavior", *params.PauseBehavior) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountCallCallRecording{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateConferenceParams Optional parameters for the method 'UpdateConference' +type UpdateConferenceParams struct { + AnnounceMethod *string `json:"AnnounceMethod,omitempty"` + AnnounceUrl *string `json:"AnnounceUrl,omitempty"` + Status *string `json:"Status,omitempty"` +} + +/* +UpdateConference Method for UpdateConference + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference resource(s) to update. + * @param sid The Twilio-provided string that uniquely identifies the Conference resource to update + * @param optional nil or *UpdateConferenceOpts - Optional Parameters: + * @param "AnnounceMethod" (string) - The HTTP method used to call `announce_url`. Can be: `GET` or `POST` and the default is `POST` + * @param "AnnounceUrl" (string) - The URL we should call to announce something into the conference. The URL can return an MP3, a WAV, or a TwiML document with `` or ``. + * @param "Status" (string) - The new status of the resource. Can be: Can be: `init`, `in-progress`, or `completed`. Specifying `completed` will end the conference and hang up all participants +@return ApiV2010AccountConference +*/ +func (c *DefaultApiService) UpdateConference(accountSid string, sid string, params *UpdateConferenceParams) (*ApiV2010AccountConference, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AnnounceMethod != nil { + data.Set("AnnounceMethod", *params.AnnounceMethod) + } + if params != nil && params.AnnounceUrl != nil { + data.Set("AnnounceUrl", *params.AnnounceUrl) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountConference{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateConferenceRecordingParams Optional parameters for the method 'UpdateConferenceRecording' +type UpdateConferenceRecordingParams struct { + PauseBehavior *string `json:"PauseBehavior,omitempty"` + Status *string `json:"Status,omitempty"` +} + +/* +UpdateConferenceRecording Method for UpdateConferenceRecording +Changes the status of the recording to paused, stopped, or in-progress. Note: To use `Twilio.CURRENT`, pass it as recording sid. + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resource to update. + * @param conferenceSid The Conference SID that identifies the conference associated with the recording to update. + * @param sid The Twilio-provided string that uniquely identifies the Conference Recording resource to update. Use `Twilio.CURRENT` to reference the current active recording. + * @param optional nil or *UpdateConferenceRecordingOpts - Optional Parameters: + * @param "PauseBehavior" (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`. + * @param "Status" (string) - The new status of the recording. Can be: `stopped`, `paused`, `in-progress`. +@return ApiV2010AccountConferenceConferenceRecording +*/ +func (c *DefaultApiService) UpdateConferenceRecording(accountSid string, conferenceSid string, sid string, params *UpdateConferenceRecordingParams) (*ApiV2010AccountConferenceConferenceRecording, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ConferenceSid"+"}", conferenceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PauseBehavior != nil { + data.Set("PauseBehavior", *params.PauseBehavior) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountConferenceConferenceRecording{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateConnectAppParams Optional parameters for the method 'UpdateConnectApp' +type UpdateConnectAppParams struct { + AuthorizeRedirectUrl *string `json:"AuthorizeRedirectUrl,omitempty"` + CompanyName *string `json:"CompanyName,omitempty"` + DeauthorizeCallbackMethod *string `json:"DeauthorizeCallbackMethod,omitempty"` + DeauthorizeCallbackUrl *string `json:"DeauthorizeCallbackUrl,omitempty"` + Description *string `json:"Description,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + HomepageUrl *string `json:"HomepageUrl,omitempty"` + Permissions *[]string `json:"Permissions,omitempty"` +} + +/* +UpdateConnectApp Method for UpdateConnectApp +Update a connect-app with the specified parameters + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resources to update. + * @param sid The Twilio-provided string that uniquely identifies the ConnectApp resource to update. + * @param optional nil or *UpdateConnectAppOpts - Optional Parameters: + * @param "AuthorizeRedirectUrl" (string) - The URL to redirect the user to after we authenticate the user and obtain authorization to access the Connect App. + * @param "CompanyName" (string) - The company name to set for the Connect App. + * @param "DeauthorizeCallbackMethod" (string) - The HTTP method to use when calling `deauthorize_callback_url`. + * @param "DeauthorizeCallbackUrl" (string) - The URL to call using the `deauthorize_callback_method` to de-authorize the Connect App. + * @param "Description" (string) - A description of the Connect App. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. + * @param "HomepageUrl" (string) - A public URL where users can obtain more information about this Connect App. + * @param "Permissions" ([]string) - A comma-separated list of the permissions you will request from the users of this ConnectApp. Can include: `get-all` and `post-all`. +@return ApiV2010AccountConnectApp +*/ +func (c *DefaultApiService) UpdateConnectApp(accountSid string, sid string, params *UpdateConnectAppParams) (*ApiV2010AccountConnectApp, error) { + path := "/2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AuthorizeRedirectUrl != nil { + data.Set("AuthorizeRedirectUrl", *params.AuthorizeRedirectUrl) + } + if params != nil && params.CompanyName != nil { + data.Set("CompanyName", *params.CompanyName) + } + if params != nil && params.DeauthorizeCallbackMethod != nil { + data.Set("DeauthorizeCallbackMethod", *params.DeauthorizeCallbackMethod) + } + if params != nil && params.DeauthorizeCallbackUrl != nil { + data.Set("DeauthorizeCallbackUrl", *params.DeauthorizeCallbackUrl) + } + if params != nil && params.Description != nil { + data.Set("Description", *params.Description) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.HomepageUrl != nil { + data.Set("HomepageUrl", *params.HomepageUrl) + } + if params != nil && params.Permissions != nil { + data.Set("Permissions", *params.Permissions) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountConnectApp{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateIncomingPhoneNumberParams Optional parameters for the method 'UpdateIncomingPhoneNumber' +type UpdateIncomingPhoneNumberParams struct { + AccountSid *string `json:"AccountSid,omitempty"` + AddressSid *string `json:"AddressSid,omitempty"` + ApiVersion *string `json:"ApiVersion,omitempty"` + BundleSid *string `json:"BundleSid,omitempty"` + EmergencyAddressSid *string `json:"EmergencyAddressSid,omitempty"` + EmergencyStatus *string `json:"EmergencyStatus,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IdentitySid *string `json:"IdentitySid,omitempty"` + SmsApplicationSid *string `json:"SmsApplicationSid,omitempty"` + SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` + SmsMethod *string `json:"SmsMethod,omitempty"` + SmsUrl *string `json:"SmsUrl,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + TrunkSid *string `json:"TrunkSid,omitempty"` + VoiceApplicationSid *string `json:"VoiceApplicationSid,omitempty"` + VoiceCallerIdLookup *bool `json:"VoiceCallerIdLookup,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceReceiveMode *string `json:"VoiceReceiveMode,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` +} + +/* +UpdateIncomingPhoneNumber Method for UpdateIncomingPhoneNumber +Update an incoming-phone-number instance. + * @param accountSid 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). + * @param sid The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to update. + * @param optional nil or *UpdateIncomingPhoneNumberOpts - Optional Parameters: + * @param "AccountSid" (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). + * @param "AddressSid" (string) - The SID of the Address resource we should associate with the phone number. Some regions require addresses to meet local regulations. + * @param "ApiVersion" (string) - The API version to use for incoming calls made to the phone number. The default is `2010-04-01`. + * @param "BundleSid" (string) - The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. + * @param "EmergencyAddressSid" (string) - The SID of the emergency address configuration to use for emergency calling from this phone number. + * @param "EmergencyStatus" (string) - The configuration status parameter that determines whether the phone number is enabled for emergency calling. + * @param "FriendlyName" (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. + * @param "IdentitySid" (string) - The SID of the Identity resource that we should associate with the phone number. Some regions require an identity to meet local regulations. + * @param "SmsApplicationSid" (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. + * @param "SmsFallbackMethod" (string) - The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. + * @param "SmsFallbackUrl" (string) - The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. + * @param "SmsMethod" (string) - The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. + * @param "SmsUrl" (string) - The URL we should call when the phone number receives an incoming SMS message. + * @param "StatusCallback" (string) - The URL we should call using the `status_callback_method` to send status information to your application. + * @param "StatusCallbackMethod" (string) - The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. + * @param "TrunkSid" (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. + * @param "VoiceApplicationSid" (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. + * @param "VoiceCallerIdLookup" (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`. + * @param "VoiceFallbackMethod" (string) - The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. + * @param "VoiceFallbackUrl" (string) - The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. + * @param "VoiceMethod" (string) - The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. + * @param "VoiceReceiveMode" (string) - The configuration parameter for the phone number to receive incoming voice calls or faxes. Can be: `fax` or `voice` and defaults to `voice`. + * @param "VoiceUrl" (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. +@return ApiV2010AccountIncomingPhoneNumber +*/ +func (c *DefaultApiService) UpdateIncomingPhoneNumber(accountSid string, sid string, params *UpdateIncomingPhoneNumberParams) (*ApiV2010AccountIncomingPhoneNumber, error) { + path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AccountSid != nil { + data.Set("AccountSid", *params.AccountSid) + } + if params != nil && params.AddressSid != nil { + data.Set("AddressSid", *params.AddressSid) + } + if params != nil && params.ApiVersion != nil { + data.Set("ApiVersion", *params.ApiVersion) + } + if params != nil && params.BundleSid != nil { + data.Set("BundleSid", *params.BundleSid) + } + if params != nil && params.EmergencyAddressSid != nil { + data.Set("EmergencyAddressSid", *params.EmergencyAddressSid) + } + if params != nil && params.EmergencyStatus != nil { + data.Set("EmergencyStatus", *params.EmergencyStatus) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.IdentitySid != nil { + data.Set("IdentitySid", *params.IdentitySid) + } + if params != nil && params.SmsApplicationSid != nil { + data.Set("SmsApplicationSid", *params.SmsApplicationSid) + } + if params != nil && params.SmsFallbackMethod != nil { + data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) + } + if params != nil && params.SmsFallbackUrl != nil { + data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) + } + if params != nil && params.SmsMethod != nil { + data.Set("SmsMethod", *params.SmsMethod) + } + if params != nil && params.SmsUrl != nil { + data.Set("SmsUrl", *params.SmsUrl) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.TrunkSid != nil { + data.Set("TrunkSid", *params.TrunkSid) + } + if params != nil && params.VoiceApplicationSid != nil { + data.Set("VoiceApplicationSid", *params.VoiceApplicationSid) + } + if params != nil && params.VoiceCallerIdLookup != nil { + data.Set("VoiceCallerIdLookup", string(*params.VoiceCallerIdLookup)) + } + if params != nil && params.VoiceFallbackMethod != nil { + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + } + if params != nil && params.VoiceFallbackUrl != nil { + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + } + if params != nil && params.VoiceMethod != nil { + data.Set("VoiceMethod", *params.VoiceMethod) + } + if params != nil && params.VoiceReceiveMode != nil { + data.Set("VoiceReceiveMode", *params.VoiceReceiveMode) + } + if params != nil && params.VoiceUrl != nil { + data.Set("VoiceUrl", *params.VoiceUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountIncomingPhoneNumber{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateKeyParams Optional parameters for the method 'UpdateKey' +type UpdateKeyParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +UpdateKey Method for UpdateKey + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resources to update. + * @param sid The Twilio-provided string that uniquely identifies the Key resource to update. + * @param optional nil or *UpdateKeyOpts - Optional Parameters: + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. +@return ApiV2010AccountKey +*/ +func (c *DefaultApiService) UpdateKey(accountSid string, sid string, params *UpdateKeyParams) (*ApiV2010AccountKey, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountKey{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateMemberParams Optional parameters for the method 'UpdateMember' +type UpdateMemberParams struct { + Method *string `json:"Method,omitempty"` + Url *string `json:"Url,omitempty"` +} + +/* +UpdateMember Method for UpdateMember +Dequeue a member from a queue and have the member's call begin executing the TwiML document at that URL + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Member resource(s) to update. + * @param queueSid The SID of the Queue in which to find the members to update. + * @param callSid The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource(s) to update. + * @param optional nil or *UpdateMemberOpts - Optional Parameters: + * @param "Method" (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. + * @param "Url" (string) - The absolute URL of the Queue resource. +@return ApiV2010AccountQueueMember +*/ +func (c *DefaultApiService) UpdateMember(accountSid string, queueSid string, callSid string, params *UpdateMemberParams) (*ApiV2010AccountQueueMember, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"QueueSid"+"}", queueSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Method != nil { + data.Set("Method", *params.Method) + } + if params != nil && params.Url != nil { + data.Set("Url", *params.Url) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountQueueMember{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateMessageParams Optional parameters for the method 'UpdateMessage' +type UpdateMessageParams struct { + Body *string `json:"Body,omitempty"` +} + +/* +UpdateMessage Method for UpdateMessage +To redact a message-body from a post-flight message record, post to the message instance resource with an empty body + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Message resources to update. + * @param sid The Twilio-provided string that uniquely identifies the Message resource to update. + * @param optional nil or *UpdateMessageOpts - Optional Parameters: + * @param "Body" (string) - The text of the message you want to send. Can be up to 1,600 characters long. +@return ApiV2010AccountMessage +*/ +func (c *DefaultApiService) UpdateMessage(accountSid string, sid string, params *UpdateMessageParams) (*ApiV2010AccountMessage, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Body != nil { + data.Set("Body", *params.Body) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateOutgoingCallerIdParams Optional parameters for the method 'UpdateOutgoingCallerId' +type UpdateOutgoingCallerIdParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +UpdateOutgoingCallerId Method for UpdateOutgoingCallerId +Updates the caller-id + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resources to update. + * @param sid The Twilio-provided string that uniquely identifies the OutgoingCallerId resource to update. + * @param optional nil or *UpdateOutgoingCallerIdOpts - Optional Parameters: + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. +@return ApiV2010AccountOutgoingCallerId +*/ +func (c *DefaultApiService) UpdateOutgoingCallerId(accountSid string, sid string, params *UpdateOutgoingCallerIdParams) (*ApiV2010AccountOutgoingCallerId, error) { + path := "/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountOutgoingCallerId{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateParticipantParams Optional parameters for the method 'UpdateParticipant' +type UpdateParticipantParams struct { + AnnounceMethod *string `json:"AnnounceMethod,omitempty"` + AnnounceUrl *string `json:"AnnounceUrl,omitempty"` + BeepOnExit *bool `json:"BeepOnExit,omitempty"` + CallSidToCoach *string `json:"CallSidToCoach,omitempty"` + Coaching *bool `json:"Coaching,omitempty"` + EndConferenceOnExit *bool `json:"EndConferenceOnExit,omitempty"` + Hold *bool `json:"Hold,omitempty"` + HoldMethod *string `json:"HoldMethod,omitempty"` + HoldUrl *string `json:"HoldUrl,omitempty"` + Muted *bool `json:"Muted,omitempty"` + WaitMethod *string `json:"WaitMethod,omitempty"` + WaitUrl *string `json:"WaitUrl,omitempty"` +} + +/* +UpdateParticipant Method for UpdateParticipant +Update the properties of the participant + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resources to update. + * @param conferenceSid The SID of the conference with the participant to update. + * @param callSid 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. + * @param optional nil or *UpdateParticipantOpts - Optional Parameters: + * @param "AnnounceMethod" (string) - The HTTP method we should use to call `announce_url`. Can be: `GET` or `POST` and defaults to `POST`. + * @param "AnnounceUrl" (string) - The URL we call using the `announce_method` for an announcement to the participant. The URL must return an MP3 file, a WAV file, or a TwiML document that contains `` or `` commands. + * @param "BeepOnExit" (bool) - Whether to play a notification beep to the conference when the participant exits. Can be: `true` or `false`. + * @param "CallSidToCoach" (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`. + * @param "Coaching" (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. + * @param "EndConferenceOnExit" (bool) - Whether to end the conference when the participant leaves. Can be: `true` or `false` and defaults to `false`. + * @param "Hold" (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. + * @param "HoldMethod" (string) - The HTTP method we should use to call `hold_url`. Can be: `GET` or `POST` and the default is `GET`. + * @param "HoldUrl" (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 the ``, `` or `` commands. + * @param "Muted" (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`. + * @param "WaitMethod" (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. + * @param "WaitUrl" (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). +@return ApiV2010AccountConferenceParticipant +*/ +func (c *DefaultApiService) UpdateParticipant(accountSid string, conferenceSid string, callSid string, params *UpdateParticipantParams) (*ApiV2010AccountConferenceParticipant, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ConferenceSid"+"}", conferenceSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AnnounceMethod != nil { + data.Set("AnnounceMethod", *params.AnnounceMethod) + } + if params != nil && params.AnnounceUrl != nil { + data.Set("AnnounceUrl", *params.AnnounceUrl) + } + if params != nil && params.BeepOnExit != nil { + data.Set("BeepOnExit", string(*params.BeepOnExit)) + } + if params != nil && params.CallSidToCoach != nil { + data.Set("CallSidToCoach", *params.CallSidToCoach) + } + if params != nil && params.Coaching != nil { + data.Set("Coaching", string(*params.Coaching)) + } + if params != nil && params.EndConferenceOnExit != nil { + data.Set("EndConferenceOnExit", string(*params.EndConferenceOnExit)) + } + if params != nil && params.Hold != nil { + data.Set("Hold", string(*params.Hold)) + } + if params != nil && params.HoldMethod != nil { + data.Set("HoldMethod", *params.HoldMethod) + } + if params != nil && params.HoldUrl != nil { + data.Set("HoldUrl", *params.HoldUrl) + } + if params != nil && params.Muted != nil { + data.Set("Muted", string(*params.Muted)) + } + if params != nil && params.WaitMethod != nil { + data.Set("WaitMethod", *params.WaitMethod) + } + if params != nil && params.WaitUrl != nil { + data.Set("WaitUrl", *params.WaitUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountConferenceParticipant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdatePaymentsParams Optional parameters for the method 'UpdatePayments' +type UpdatePaymentsParams struct { + Capture *string `json:"Capture,omitempty"` + IdempotencyKey *string `json:"IdempotencyKey,omitempty"` + Status *string `json:"Status,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` +} + +/* +UpdatePayments Method for UpdatePayments +update an instance of payments with different phases of payment flows. + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will update the resource. + * @param callSid The SID of the call that will update the resource. This should be the same call sid that was used to create payments resource. + * @param sid The SID of Payments session that needs to be updated. + * @param optional nil or *UpdatePaymentsOpts - Optional Parameters: + * @param "Capture" (string) - The piece of payment information that you wish the caller to enter. Must be one of `payment-card-number`, `expiration-date`, `security-code`, `postal-code`, `bank-routing-number`, or `bank-account-number`. + * @param "IdempotencyKey" (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. + * @param "Status" (string) - Indicates whether the current payment session should be cancelled or completed. When `cancel` the payment session is cancelled. When `complete`, Twilio sends the payment information to the selected connector for processing. + * @param "StatusCallback" (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. +@return ApiV2010AccountCallPayments +*/ +func (c *DefaultApiService) UpdatePayments(accountSid string, callSid string, sid string, params *UpdatePaymentsParams) (*ApiV2010AccountCallPayments, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Capture != nil { + data.Set("Capture", *params.Capture) + } + if params != nil && params.IdempotencyKey != nil { + data.Set("IdempotencyKey", *params.IdempotencyKey) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountCallPayments{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateQueueParams Optional parameters for the method 'UpdateQueue' +type UpdateQueueParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` + MaxSize *int32 `json:"MaxSize,omitempty"` +} + +/* +UpdateQueue Method for UpdateQueue +Update the queue with the new parameters + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resource to update. + * @param sid The Twilio-provided string that uniquely identifies the Queue resource to update + * @param optional nil or *UpdateQueueOpts - Optional Parameters: + * @param "FriendlyName" (string) - A descriptive string that you created to describe this resource. It can be up to 64 characters long. + * @param "MaxSize" (int32) - The maximum number of calls allowed to be in the queue. The default is 100. The maximum is 5000. +@return ApiV2010AccountQueue +*/ +func (c *DefaultApiService) UpdateQueue(accountSid string, sid string, params *UpdateQueueParams) (*ApiV2010AccountQueue, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.MaxSize != nil { + data.Set("MaxSize", string(*params.MaxSize)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountQueue{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateShortCodeParams Optional parameters for the method 'UpdateShortCode' +type UpdateShortCodeParams struct { + ApiVersion *string `json:"ApiVersion,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` + SmsMethod *string `json:"SmsMethod,omitempty"` + SmsUrl *string `json:"SmsUrl,omitempty"` +} + +/* +UpdateShortCode Method for UpdateShortCode +Update a short code with the following parameters + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ShortCode resource(s) to update. + * @param sid The Twilio-provided string that uniquely identifies the ShortCode resource to update + * @param optional nil or *UpdateShortCodeOpts - Optional Parameters: + * @param "ApiVersion" (string) - The API version to use to start a new TwiML session. Can be: `2010-04-01` or `2008-08-01`. + * @param "FriendlyName" (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. + * @param "SmsFallbackMethod" (string) - The HTTP method that we should use to call the `sms_fallback_url`. Can be: `GET` or `POST`. + * @param "SmsFallbackUrl" (string) - The URL that we should call if an error occurs while retrieving or executing the TwiML from `sms_url`. + * @param "SmsMethod" (string) - The HTTP method we should use when calling the `sms_url`. Can be: `GET` or `POST`. + * @param "SmsUrl" (string) - The URL we should call when receiving an incoming SMS message to this short code. +@return ApiV2010AccountShortCode +*/ +func (c *DefaultApiService) UpdateShortCode(accountSid string, sid string, params *UpdateShortCodeParams) (*ApiV2010AccountShortCode, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ApiVersion != nil { + data.Set("ApiVersion", *params.ApiVersion) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.SmsFallbackMethod != nil { + data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) + } + if params != nil && params.SmsFallbackUrl != nil { + data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) + } + if params != nil && params.SmsMethod != nil { + data.Set("SmsMethod", *params.SmsMethod) + } + if params != nil && params.SmsUrl != nil { + data.Set("SmsUrl", *params.SmsUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountShortCode{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateSigningKeyParams Optional parameters for the method 'UpdateSigningKey' +type UpdateSigningKeyParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +UpdateSigningKey Method for UpdateSigningKey + * @param accountSid + * @param sid + * @param optional nil or *UpdateSigningKeyOpts - Optional Parameters: + * @param "FriendlyName" (string) - +@return ApiV2010AccountSigningKey +*/ +func (c *DefaultApiService) UpdateSigningKey(accountSid string, sid string, params *UpdateSigningKeyParams) (*ApiV2010AccountSigningKey, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSigningKey{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateSipCredentialParams Optional parameters for the method 'UpdateSipCredential' +type UpdateSipCredentialParams struct { + Password *string `json:"Password,omitempty"` +} + +/* +UpdateSipCredential Method for UpdateSipCredential +Update a credential resource. + * @param accountSid The unique id of the Account that is responsible for this resource. + * @param credentialListSid The unique id that identifies the credential list that includes this credential. + * @param sid The unique id that identifies the resource to update. + * @param optional nil or *UpdateSipCredentialOpts - Optional Parameters: + * @param "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`) +@return ApiV2010AccountSipSipCredentialListSipCredential +*/ +func (c *DefaultApiService) UpdateSipCredential(accountSid string, credentialListSid string, sid string, params *UpdateSipCredentialParams) (*ApiV2010AccountSipSipCredentialListSipCredential, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CredentialListSid"+"}", credentialListSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Password != nil { + data.Set("Password", *params.Password) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipCredentialListSipCredential{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateSipCredentialListParams Optional parameters for the method 'UpdateSipCredentialList' +type UpdateSipCredentialListParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +UpdateSipCredentialList Method for UpdateSipCredentialList +Update a Credential List + * @param accountSid The unique id of the Account that is responsible for this resource. + * @param sid The credential list Sid that uniquely identifies this resource + * @param optional nil or *UpdateSipCredentialListOpts - Optional Parameters: + * @param "FriendlyName" (string) - A human readable descriptive text for a CredentialList, up to 64 characters long. +@return ApiV2010AccountSipSipCredentialList +*/ +func (c *DefaultApiService) UpdateSipCredentialList(accountSid string, sid string, params *UpdateSipCredentialListParams) (*ApiV2010AccountSipSipCredentialList, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipCredentialList{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateSipDomainParams Optional parameters for the method 'UpdateSipDomain' +type UpdateSipDomainParams struct { + ByocTrunkSid *string `json:"ByocTrunkSid,omitempty"` + DomainName *string `json:"DomainName,omitempty"` + EmergencyCallerSid *string `json:"EmergencyCallerSid,omitempty"` + EmergencyCallingEnabled *bool `json:"EmergencyCallingEnabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Secure *bool `json:"Secure,omitempty"` + SipRegistration *bool `json:"SipRegistration,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceStatusCallbackMethod *string `json:"VoiceStatusCallbackMethod,omitempty"` + VoiceStatusCallbackUrl *string `json:"VoiceStatusCallbackUrl,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` +} + +/* +UpdateSipDomain Method for UpdateSipDomain +Update the attributes of a domain + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resource to update. + * @param sid The Twilio-provided string that uniquely identifies the SipDomain resource to update. + * @param optional nil or *UpdateSipDomainOpts - Optional Parameters: + * @param "ByocTrunkSid" (string) - The SID of the BYOC Trunk(Bring Your Own Carrier) resource that the Sip Domain will be associated with. + * @param "DomainName" (string) - The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and \\\"-\\\". + * @param "EmergencyCallerSid" (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. + * @param "EmergencyCallingEnabled" (bool) - Whether emergency calling is enabled for the domain. If enabled, allows emergency calls on the domain from phone numbers with validated addresses. + * @param "FriendlyName" (string) - A descriptive string that you created to describe the resource. It can be up to 64 characters long. + * @param "Secure" (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. + * @param "SipRegistration" (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. + * @param "VoiceFallbackMethod" (string) - The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. + * @param "VoiceFallbackUrl" (string) - The URL that we should call when an error occurs while retrieving or executing the TwiML requested by `voice_url`. + * @param "VoiceMethod" (string) - The HTTP method we should use to call `voice_url` + * @param "VoiceStatusCallbackMethod" (string) - The HTTP method we should use to call `voice_status_callback_url`. Can be: `GET` or `POST`. + * @param "VoiceStatusCallbackUrl" (string) - The URL that we should call to pass status parameters (such as call ended) to your application. + * @param "VoiceUrl" (string) - The URL we should call when the domain receives a call. +@return ApiV2010AccountSipSipDomain +*/ +func (c *DefaultApiService) UpdateSipDomain(accountSid string, sid string, params *UpdateSipDomainParams) (*ApiV2010AccountSipSipDomain, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ByocTrunkSid != nil { + data.Set("ByocTrunkSid", *params.ByocTrunkSid) + } + if params != nil && params.DomainName != nil { + data.Set("DomainName", *params.DomainName) + } + if params != nil && params.EmergencyCallerSid != nil { + data.Set("EmergencyCallerSid", *params.EmergencyCallerSid) + } + if params != nil && params.EmergencyCallingEnabled != nil { + data.Set("EmergencyCallingEnabled", string(*params.EmergencyCallingEnabled)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Secure != nil { + data.Set("Secure", string(*params.Secure)) + } + if params != nil && params.SipRegistration != nil { + data.Set("SipRegistration", string(*params.SipRegistration)) + } + if params != nil && params.VoiceFallbackMethod != nil { + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + } + if params != nil && params.VoiceFallbackUrl != nil { + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + } + if params != nil && params.VoiceMethod != nil { + data.Set("VoiceMethod", *params.VoiceMethod) + } + if params != nil && params.VoiceStatusCallbackMethod != nil { + data.Set("VoiceStatusCallbackMethod", *params.VoiceStatusCallbackMethod) + } + if params != nil && params.VoiceStatusCallbackUrl != nil { + data.Set("VoiceStatusCallbackUrl", *params.VoiceStatusCallbackUrl) + } + if params != nil && params.VoiceUrl != nil { + data.Set("VoiceUrl", *params.VoiceUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipDomain{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateSipIpAccessControlListParams Optional parameters for the method 'UpdateSipIpAccessControlList' +type UpdateSipIpAccessControlListParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +UpdateSipIpAccessControlList Method for UpdateSipIpAccessControlList +Rename an IpAccessControlList + * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param sid A 34 character string that uniquely identifies the resource to udpate. + * @param optional nil or *UpdateSipIpAccessControlListOpts - Optional Parameters: + * @param "FriendlyName" (string) - A human readable descriptive text, up to 64 characters long. +@return ApiV2010AccountSipSipIpAccessControlList +*/ +func (c *DefaultApiService) UpdateSipIpAccessControlList(accountSid string, sid string, params *UpdateSipIpAccessControlListParams) (*ApiV2010AccountSipSipIpAccessControlList, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipIpAccessControlList{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateSipIpAddressParams Optional parameters for the method 'UpdateSipIpAddress' +type UpdateSipIpAddressParams struct { + CidrPrefixLength *int32 `json:"CidrPrefixLength,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IpAddress *string `json:"IpAddress,omitempty"` +} + +/* +UpdateSipIpAddress Method for UpdateSipIpAddress +Update an IpAddress resource. + * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param ipAccessControlListSid The IpAccessControlList Sid that identifies the IpAddress resources to update. + * @param sid A 34 character string that identifies the IpAddress resource to update. + * @param optional nil or *UpdateSipIpAddressOpts - Optional Parameters: + * @param "CidrPrefixLength" (int32) - 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. + * @param "FriendlyName" (string) - A human readable descriptive text for this resource, up to 64 characters long. + * @param "IpAddress" (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. +@return ApiV2010AccountSipSipIpAccessControlListSipIpAddress +*/ +func (c *DefaultApiService) UpdateSipIpAddress(accountSid string, ipAccessControlListSid string, sid string, params *UpdateSipIpAddressParams) (*ApiV2010AccountSipSipIpAccessControlListSipIpAddress, error) { + path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"IpAccessControlListSid"+"}", ipAccessControlListSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CidrPrefixLength != nil { + data.Set("CidrPrefixLength", string(*params.CidrPrefixLength)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.IpAddress != nil { + data.Set("IpAddress", *params.IpAddress) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipIpAccessControlListSipIpAddress{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateUsageTriggerParams Optional parameters for the method 'UpdateUsageTrigger' +type UpdateUsageTriggerParams struct { + CallbackMethod *string `json:"CallbackMethod,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +UpdateUsageTrigger Method for UpdateUsageTrigger +Update an instance of a usage trigger + * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resources to update. + * @param sid The Twilio-provided string that uniquely identifies the UsageTrigger resource to update. + * @param optional nil or *UpdateUsageTriggerOpts - Optional Parameters: + * @param "CallbackMethod" (string) - The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is `POST`. + * @param "CallbackUrl" (string) - The URL we should call using `callback_method` when the trigger fires. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. +@return ApiV2010AccountUsageUsageTrigger +*/ +func (c *DefaultApiService) UpdateUsageTrigger(accountSid string, sid string, params *UpdateUsageTriggerParams) (*ApiV2010AccountUsageUsageTrigger, error) { + path := "/2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CallbackMethod != nil { + data.Set("CallbackMethod", *params.CallbackMethod) + } + if params != nil && params.CallbackUrl != nil { + data.Set("CallbackUrl", *params.CallbackUrl) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountUsageUsageTrigger{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/api/v2010/docs/ApiV2010Account.md b/rest/api/v2010/docs/ApiV2010Account.md new file mode 100644 index 000000000..f5b3f89d2 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010Account.md @@ -0,0 +1,20 @@ +# ApiV2010Account + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AuthToken** | **string** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**OwnerAccountSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Status** | **string** | | [optional] +**SubresourceUris** | [**map[string]interface{}**](.md) | | [optional] +**Type** | **string** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountAddress.md b/rest/api/v2010/docs/ApiV2010AccountAddress.md new file mode 100644 index 000000000..f70a38ac3 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountAddress.md @@ -0,0 +1,25 @@ +# ApiV2010AccountAddress + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**City** | **string** | | [optional] +**CustomerName** | **string** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**EmergencyEnabled** | **bool** | | [optional] +**FriendlyName** | **string** | | [optional] +**IsoCountry** | **string** | | [optional] +**PostalCode** | **string** | | [optional] +**Region** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Street** | **string** | | [optional] +**Uri** | **string** | | [optional] +**Validated** | **bool** | | [optional] +**Verified** | **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/rest/api/v2010/docs/ApiV2010AccountAddressDependentPhoneNumber.md b/rest/api/v2010/docs/ApiV2010AccountAddressDependentPhoneNumber.md new file mode 100644 index 000000000..74de3a569 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountAddressDependentPhoneNumber.md @@ -0,0 +1,36 @@ +# ApiV2010AccountAddressDependentPhoneNumber + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AddressRequirements** | **string** | | [optional] +**ApiVersion** | **string** | | [optional] +**Capabilities** | [**map[string]interface{}**](.md) | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**EmergencyAddressSid** | **string** | | [optional] +**EmergencyStatus** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**PhoneNumber** | **string** | | [optional] +**Sid** | **string** | | [optional] +**SmsApplicationSid** | **string** | | [optional] +**SmsFallbackMethod** | **string** | | [optional] +**SmsFallbackUrl** | **string** | | [optional] +**SmsMethod** | **string** | | [optional] +**SmsUrl** | **string** | | [optional] +**StatusCallback** | **string** | | [optional] +**StatusCallbackMethod** | **string** | | [optional] +**TrunkSid** | **string** | | [optional] +**Uri** | **string** | | [optional] +**VoiceApplicationSid** | **string** | | [optional] +**VoiceCallerIdLookup** | **bool** | | [optional] +**VoiceFallbackMethod** | **string** | | [optional] +**VoiceFallbackUrl** | **string** | | [optional] +**VoiceMethod** | **string** | | [optional] +**VoiceUrl** | **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/rest/api/v2010/docs/ApiV2010AccountAddressDependentPhoneNumberReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountAddressDependentPhoneNumberReadResponse.md new file mode 100644 index 000000000..771fe37f6 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountAddressDependentPhoneNumberReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountAddressDependentPhoneNumberReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DependentPhoneNumbers** | [**[]ApiV2010AccountAddressDependentPhoneNumber**](api.v2010.account.address.dependent_phone_number.md) | | [optional] +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountAddressReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountAddressReadResponse.md new file mode 100644 index 000000000..e5d7cd3c4 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountAddressReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountAddressReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Addresses** | [**[]ApiV2010AccountAddress**](api.v2010.account.address.md) | | [optional] +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountApplication.md b/rest/api/v2010/docs/ApiV2010AccountApplication.md new file mode 100644 index 000000000..c600c6848 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountApplication.md @@ -0,0 +1,30 @@ +# ApiV2010AccountApplication + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ApiVersion** | **string** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**MessageStatusCallback** | **string** | | [optional] +**Sid** | **string** | | [optional] +**SmsFallbackMethod** | **string** | | [optional] +**SmsFallbackUrl** | **string** | | [optional] +**SmsMethod** | **string** | | [optional] +**SmsStatusCallback** | **string** | | [optional] +**SmsUrl** | **string** | | [optional] +**StatusCallback** | **string** | | [optional] +**StatusCallbackMethod** | **string** | | [optional] +**Uri** | **string** | | [optional] +**VoiceCallerIdLookup** | **bool** | | [optional] +**VoiceFallbackMethod** | **string** | | [optional] +**VoiceFallbackUrl** | **string** | | [optional] +**VoiceMethod** | **string** | | [optional] +**VoiceUrl** | **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/rest/api/v2010/docs/ApiV2010AccountApplicationReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountApplicationReadResponse.md new file mode 100644 index 000000000..45aa413f8 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountApplicationReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountApplicationReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Applications** | [**[]ApiV2010AccountApplication**](api.v2010.account.application.md) | | [optional] +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountAuthorizedConnectApp.md b/rest/api/v2010/docs/ApiV2010AccountAuthorizedConnectApp.md new file mode 100644 index 000000000..062e34ff8 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountAuthorizedConnectApp.md @@ -0,0 +1,20 @@ +# ApiV2010AccountAuthorizedConnectApp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ConnectAppCompanyName** | **string** | | [optional] +**ConnectAppDescription** | **string** | | [optional] +**ConnectAppFriendlyName** | **string** | | [optional] +**ConnectAppHomepageUrl** | **string** | | [optional] +**ConnectAppSid** | **string** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**Permissions** | **[]string** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountAuthorizedConnectAppReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountAuthorizedConnectAppReadResponse.md new file mode 100644 index 000000000..96c69264a --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountAuthorizedConnectAppReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountAuthorizedConnectAppReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AuthorizedConnectApps** | [**[]ApiV2010AccountAuthorizedConnectApp**](api.v2010.account.authorized_connect_app.md) | | [optional] +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountry.md b/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountry.md new file mode 100644 index 000000000..ef523dd69 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountry.md @@ -0,0 +1,15 @@ +# ApiV2010AccountAvailablePhoneNumberCountry + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Beta** | **bool** | | [optional] +**Country** | **string** | | [optional] +**CountryCode** | **string** | | [optional] +**SubresourceUris** | [**map[string]interface{}**](.md) | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocal.md b/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocal.md new file mode 100644 index 000000000..453d7e7df --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocal.md @@ -0,0 +1,23 @@ +# ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocal + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AddressRequirements** | **string** | | [optional] +**Beta** | **bool** | | [optional] +**Capabilities** | [**map[string]interface{}**](.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**IsoCountry** | **string** | | [optional] +**Lata** | **string** | | [optional] +**Latitude** | **float32** | | [optional] +**Locality** | **string** | | [optional] +**Longitude** | **float32** | | [optional] +**PhoneNumber** | **string** | | [optional] +**PostalCode** | **string** | | [optional] +**RateCenter** | **string** | | [optional] +**Region** | **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/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse.md new file mode 100644 index 000000000..58a4dba17 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AvailablePhoneNumbers** | [**[]ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocal**](api.v2010.account.available_phone_number_country.available_phone_number_local.md) | | [optional] +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachine.md b/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachine.md new file mode 100644 index 000000000..d172c69c8 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachine.md @@ -0,0 +1,23 @@ +# ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachine + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AddressRequirements** | **string** | | [optional] +**Beta** | **bool** | | [optional] +**Capabilities** | [**map[string]interface{}**](.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**IsoCountry** | **string** | | [optional] +**Lata** | **string** | | [optional] +**Latitude** | **float32** | | [optional] +**Locality** | **string** | | [optional] +**Longitude** | **float32** | | [optional] +**PhoneNumber** | **string** | | [optional] +**PostalCode** | **string** | | [optional] +**RateCenter** | **string** | | [optional] +**Region** | **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/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse.md new file mode 100644 index 000000000..fa30bede3 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AvailablePhoneNumbers** | [**[]ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachine**](api.v2010.account.available_phone_number_country.available_phone_number_machine_to_machine.md) | | [optional] +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobile.md b/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobile.md new file mode 100644 index 000000000..a278bdab1 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobile.md @@ -0,0 +1,23 @@ +# ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobile + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AddressRequirements** | **string** | | [optional] +**Beta** | **bool** | | [optional] +**Capabilities** | [**map[string]interface{}**](.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**IsoCountry** | **string** | | [optional] +**Lata** | **string** | | [optional] +**Latitude** | **float32** | | [optional] +**Locality** | **string** | | [optional] +**Longitude** | **float32** | | [optional] +**PhoneNumber** | **string** | | [optional] +**PostalCode** | **string** | | [optional] +**RateCenter** | **string** | | [optional] +**Region** | **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/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse.md new file mode 100644 index 000000000..f1cf3ec85 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AvailablePhoneNumbers** | [**[]ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobile**](api.v2010.account.available_phone_number_country.available_phone_number_mobile.md) | | [optional] +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNational.md b/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNational.md new file mode 100644 index 000000000..a04f7582c --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNational.md @@ -0,0 +1,23 @@ +# ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNational + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AddressRequirements** | **string** | | [optional] +**Beta** | **bool** | | [optional] +**Capabilities** | [**map[string]interface{}**](.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**IsoCountry** | **string** | | [optional] +**Lata** | **string** | | [optional] +**Latitude** | **float32** | | [optional] +**Locality** | **string** | | [optional] +**Longitude** | **float32** | | [optional] +**PhoneNumber** | **string** | | [optional] +**PostalCode** | **string** | | [optional] +**RateCenter** | **string** | | [optional] +**Region** | **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/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse.md new file mode 100644 index 000000000..e9067229c --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AvailablePhoneNumbers** | [**[]ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNational**](api.v2010.account.available_phone_number_country.available_phone_number_national.md) | | [optional] +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCost.md b/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCost.md new file mode 100644 index 000000000..2ba28bacd --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCost.md @@ -0,0 +1,23 @@ +# ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCost + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AddressRequirements** | **string** | | [optional] +**Beta** | **bool** | | [optional] +**Capabilities** | [**map[string]interface{}**](.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**IsoCountry** | **string** | | [optional] +**Lata** | **string** | | [optional] +**Latitude** | **float32** | | [optional] +**Locality** | **string** | | [optional] +**Longitude** | **float32** | | [optional] +**PhoneNumber** | **string** | | [optional] +**PostalCode** | **string** | | [optional] +**RateCenter** | **string** | | [optional] +**Region** | **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/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse.md new file mode 100644 index 000000000..10f0ad5a9 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AvailablePhoneNumbers** | [**[]ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCost**](api.v2010.account.available_phone_number_country.available_phone_number_shared_cost.md) | | [optional] +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFree.md b/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFree.md new file mode 100644 index 000000000..e2e134548 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFree.md @@ -0,0 +1,23 @@ +# ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFree + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AddressRequirements** | **string** | | [optional] +**Beta** | **bool** | | [optional] +**Capabilities** | [**map[string]interface{}**](.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**IsoCountry** | **string** | | [optional] +**Lata** | **string** | | [optional] +**Latitude** | **float32** | | [optional] +**Locality** | **string** | | [optional] +**Longitude** | **float32** | | [optional] +**PhoneNumber** | **string** | | [optional] +**PostalCode** | **string** | | [optional] +**RateCenter** | **string** | | [optional] +**Region** | **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/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse.md new file mode 100644 index 000000000..d84624bcb --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AvailablePhoneNumbers** | [**[]ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFree**](api.v2010.account.available_phone_number_country.available_phone_number_toll_free.md) | | [optional] +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoip.md b/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoip.md new file mode 100644 index 000000000..0f6ca78b4 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoip.md @@ -0,0 +1,23 @@ +# ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoip + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AddressRequirements** | **string** | | [optional] +**Beta** | **bool** | | [optional] +**Capabilities** | [**map[string]interface{}**](.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**IsoCountry** | **string** | | [optional] +**Lata** | **string** | | [optional] +**Latitude** | **float32** | | [optional] +**Locality** | **string** | | [optional] +**Longitude** | **float32** | | [optional] +**PhoneNumber** | **string** | | [optional] +**PostalCode** | **string** | | [optional] +**RateCenter** | **string** | | [optional] +**Region** | **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/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse.md new file mode 100644 index 000000000..d85905730 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AvailablePhoneNumbers** | [**[]ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoip**](api.v2010.account.available_phone_number_country.available_phone_number_voip.md) | | [optional] +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryReadResponse.md new file mode 100644 index 000000000..8706b92b5 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountAvailablePhoneNumberCountryReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Countries** | [**[]ApiV2010AccountAvailablePhoneNumberCountry**](api.v2010.account.available_phone_number_country.md) | | [optional] +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountBalance.md b/rest/api/v2010/docs/ApiV2010AccountBalance.md new file mode 100644 index 000000000..b74d6aec0 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountBalance.md @@ -0,0 +1,13 @@ +# ApiV2010AccountBalance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Balance** | **string** | | [optional] +**Currency** | **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/rest/api/v2010/docs/ApiV2010AccountCall.md b/rest/api/v2010/docs/ApiV2010AccountCall.md new file mode 100644 index 000000000..feda736b9 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountCall.md @@ -0,0 +1,37 @@ +# ApiV2010AccountCall + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Annotation** | **string** | | [optional] +**AnsweredBy** | **string** | | [optional] +**ApiVersion** | **string** | | [optional] +**CallerName** | **string** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**Direction** | Pointer to **string** | | [optional] +**Duration** | **string** | | [optional] +**EndTime** | **string** | | [optional] +**ForwardedFrom** | **string** | | [optional] +**From** | **string** | | [optional] +**FromFormatted** | **string** | | [optional] +**GroupSid** | **string** | | [optional] +**ParentCallSid** | **string** | | [optional] +**PhoneNumberSid** | **string** | | [optional] +**Price** | Pointer to **string** | | [optional] +**PriceUnit** | **string** | | [optional] +**QueueTime** | **string** | | [optional] +**Sid** | **string** | | [optional] +**StartTime** | **string** | | [optional] +**Status** | **string** | | [optional] +**SubresourceUris** | [**map[string]interface{}**](.md) | | [optional] +**To** | **string** | | [optional] +**ToFormatted** | **string** | | [optional] +**TrunkSid** | **string** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountCallCallEvent.md b/rest/api/v2010/docs/ApiV2010AccountCallCallEvent.md new file mode 100644 index 000000000..26eeeee99 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountCallCallEvent.md @@ -0,0 +1,12 @@ +# ApiV2010AccountCallCallEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Request** | [**map[string]interface{}**](.md) | | [optional] +**Response** | [**map[string]interface{}**](.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/rest/api/v2010/docs/ApiV2010AccountCallCallEventReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountCallCallEventReadResponse.md new file mode 100644 index 000000000..91b2aa253 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountCallCallEventReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountCallCallEventReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **int32** | | [optional] +**Events** | [**[]ApiV2010AccountCallCallEvent**](api.v2010.account.call.call_event.md) | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountCallCallFeedback.md b/rest/api/v2010/docs/ApiV2010AccountCallCallFeedback.md new file mode 100644 index 000000000..a4520a620 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountCallCallFeedback.md @@ -0,0 +1,16 @@ +# ApiV2010AccountCallCallFeedback + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**Issues** | **[]string** | | [optional] +**QualityScore** | **int32** | | [optional] +**Sid** | **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/rest/api/v2010/docs/ApiV2010AccountCallCallFeedbackSummary.md b/rest/api/v2010/docs/ApiV2010AccountCallCallFeedbackSummary.md new file mode 100644 index 000000000..88332a56f --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountCallCallFeedbackSummary.md @@ -0,0 +1,24 @@ +# ApiV2010AccountCallCallFeedbackSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**CallCount** | **int32** | | [optional] +**CallFeedbackCount** | **int32** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**EndDate** | [**time.Time**](time.Time.md) | | [optional] +**IncludeSubaccounts** | **bool** | | [optional] +**Issues** | **[]map[string]interface{}** | | [optional] +**QualityScoreAverage** | **float32** | | [optional] +**QualityScoreMedian** | **float32** | | [optional] +**QualityScoreStandardDeviation** | **float32** | | [optional] +**Sid** | **string** | | [optional] +**StartDate** | [**time.Time**](time.Time.md) | | [optional] +**Status** | **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/rest/api/v2010/docs/ApiV2010AccountCallCallNotification.md b/rest/api/v2010/docs/ApiV2010AccountCallCallNotification.md new file mode 100644 index 000000000..05a01da37 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountCallCallNotification.md @@ -0,0 +1,24 @@ +# ApiV2010AccountCallCallNotification + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ApiVersion** | **string** | | [optional] +**CallSid** | **string** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**ErrorCode** | **string** | | [optional] +**Log** | **string** | | [optional] +**MessageDate** | **string** | | [optional] +**MessageText** | **string** | | [optional] +**MoreInfo** | **string** | | [optional] +**RequestMethod** | **string** | | [optional] +**RequestUrl** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountCallCallNotificationInstance.md b/rest/api/v2010/docs/ApiV2010AccountCallCallNotificationInstance.md new file mode 100644 index 000000000..0371e06d3 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountCallCallNotificationInstance.md @@ -0,0 +1,27 @@ +# ApiV2010AccountCallCallNotificationInstance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ApiVersion** | **string** | | [optional] +**CallSid** | **string** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**ErrorCode** | **string** | | [optional] +**Log** | **string** | | [optional] +**MessageDate** | **string** | | [optional] +**MessageText** | **string** | | [optional] +**MoreInfo** | **string** | | [optional] +**RequestMethod** | **string** | | [optional] +**RequestUrl** | **string** | | [optional] +**RequestVariables** | **string** | | [optional] +**ResponseBody** | **string** | | [optional] +**ResponseHeaders** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountCallCallNotificationReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountCallCallNotificationReadResponse.md new file mode 100644 index 000000000..f410b5aba --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountCallCallNotificationReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountCallCallNotificationReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Notifications** | [**[]ApiV2010AccountCallCallNotification**](api.v2010.account.call.call_notification.md) | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountCallCallRecording.md b/rest/api/v2010/docs/ApiV2010AccountCallCallRecording.md new file mode 100644 index 000000000..810db8fe8 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountCallCallRecording.md @@ -0,0 +1,28 @@ +# ApiV2010AccountCallCallRecording + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ApiVersion** | **string** | | [optional] +**CallSid** | **string** | | [optional] +**Channels** | **int32** | | [optional] +**ConferenceSid** | **string** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**Duration** | **string** | | [optional] +**EncryptionDetails** | [**map[string]interface{}**](.md) | | [optional] +**ErrorCode** | Pointer to **int32** | | [optional] +**Price** | **float32** | | [optional] +**PriceUnit** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Source** | **string** | | [optional] +**StartTime** | **string** | | [optional] +**Status** | **string** | | [optional] +**Track** | **string** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountCallCallRecordingReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountCallCallRecordingReadResponse.md new file mode 100644 index 000000000..f1d3d1945 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountCallCallRecordingReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountCallCallRecordingReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Recordings** | [**[]ApiV2010AccountCallCallRecording**](api.v2010.account.call.call_recording.md) | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountCallPayments.md b/rest/api/v2010/docs/ApiV2010AccountCallPayments.md new file mode 100644 index 000000000..56ffe0674 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountCallPayments.md @@ -0,0 +1,16 @@ +# ApiV2010AccountCallPayments + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**CallSid** | **string** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountCallReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountCallReadResponse.md new file mode 100644 index 000000000..45d076701 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountCallReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountCallReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Calls** | [**[]ApiV2010AccountCall**](api.v2010.account.call.md) | | [optional] +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountConference.md b/rest/api/v2010/docs/ApiV2010AccountConference.md new file mode 100644 index 000000000..ee9b500c2 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountConference.md @@ -0,0 +1,22 @@ +# ApiV2010AccountConference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ApiVersion** | **string** | | [optional] +**CallSidEndingConference** | **string** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**ReasonConferenceEnded** | **string** | | [optional] +**Region** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Status** | **string** | | [optional] +**SubresourceUris** | [**map[string]interface{}**](.md) | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountConferenceConferenceRecording.md b/rest/api/v2010/docs/ApiV2010AccountConferenceConferenceRecording.md new file mode 100644 index 000000000..8f12288f0 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountConferenceConferenceRecording.md @@ -0,0 +1,27 @@ +# ApiV2010AccountConferenceConferenceRecording + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ApiVersion** | **string** | | [optional] +**CallSid** | **string** | | [optional] +**Channels** | **int32** | | [optional] +**ConferenceSid** | **string** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**Duration** | **string** | | [optional] +**EncryptionDetails** | [**map[string]interface{}**](.md) | | [optional] +**ErrorCode** | Pointer to **int32** | | [optional] +**Price** | **float32** | | [optional] +**PriceUnit** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Source** | **string** | | [optional] +**StartTime** | **string** | | [optional] +**Status** | **string** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountConferenceConferenceRecordingReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountConferenceConferenceRecordingReadResponse.md new file mode 100644 index 000000000..5b114c191 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountConferenceConferenceRecordingReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountConferenceConferenceRecordingReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Recordings** | [**[]ApiV2010AccountConferenceConferenceRecording**](api.v2010.account.conference.conference_recording.md) | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountConferenceParticipant.md b/rest/api/v2010/docs/ApiV2010AccountConferenceParticipant.md new file mode 100644 index 000000000..586ded048 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountConferenceParticipant.md @@ -0,0 +1,24 @@ +# ApiV2010AccountConferenceParticipant + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**CallSid** | **string** | | [optional] +**CallSidToCoach** | **string** | | [optional] +**Coaching** | **bool** | | [optional] +**ConferenceSid** | **string** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**EndConferenceOnExit** | **bool** | | [optional] +**Hold** | **bool** | | [optional] +**Label** | **string** | | [optional] +**Muted** | **bool** | | [optional] +**StartConferenceOnEnter** | **bool** | | [optional] +**Status** | **string** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountConferenceParticipantReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountConferenceParticipantReadResponse.md new file mode 100644 index 000000000..30fdab183 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountConferenceParticipantReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountConferenceParticipantReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**Participants** | [**[]ApiV2010AccountConferenceParticipant**](api.v2010.account.conference.participant.md) | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountConferenceReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountConferenceReadResponse.md new file mode 100644 index 000000000..2363ea64d --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountConferenceReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountConferenceReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Conferences** | [**[]ApiV2010AccountConference**](api.v2010.account.conference.md) | | [optional] +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountConnectApp.md b/rest/api/v2010/docs/ApiV2010AccountConnectApp.md new file mode 100644 index 000000000..94dc00d1f --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountConnectApp.md @@ -0,0 +1,21 @@ +# ApiV2010AccountConnectApp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AuthorizeRedirectUrl** | **string** | | [optional] +**CompanyName** | **string** | | [optional] +**DeauthorizeCallbackMethod** | **string** | | [optional] +**DeauthorizeCallbackUrl** | **string** | | [optional] +**Description** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**HomepageUrl** | **string** | | [optional] +**Permissions** | **[]string** | | [optional] +**Sid** | **string** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountConnectAppReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountConnectAppReadResponse.md new file mode 100644 index 000000000..6a1dd10f7 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountConnectAppReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountConnectAppReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConnectApps** | [**[]ApiV2010AccountConnectApp**](api.v2010.account.connect_app.md) | | [optional] +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumber.md b/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumber.md new file mode 100644 index 000000000..6a0705cd9 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumber.md @@ -0,0 +1,43 @@ +# ApiV2010AccountIncomingPhoneNumber + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AddressRequirements** | **string** | | [optional] +**AddressSid** | **string** | | [optional] +**ApiVersion** | **string** | | [optional] +**Beta** | **bool** | | [optional] +**BundleSid** | **string** | | [optional] +**Capabilities** | [**map[string]interface{}**](.md) | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**EmergencyAddressSid** | **string** | | [optional] +**EmergencyStatus** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**IdentitySid** | **string** | | [optional] +**Origin** | **string** | | [optional] +**PhoneNumber** | **string** | | [optional] +**Sid** | **string** | | [optional] +**SmsApplicationSid** | **string** | | [optional] +**SmsFallbackMethod** | **string** | | [optional] +**SmsFallbackUrl** | **string** | | [optional] +**SmsMethod** | **string** | | [optional] +**SmsUrl** | **string** | | [optional] +**Status** | **string** | | [optional] +**StatusCallback** | **string** | | [optional] +**StatusCallbackMethod** | **string** | | [optional] +**TrunkSid** | **string** | | [optional] +**Uri** | **string** | | [optional] +**VoiceApplicationSid** | **string** | | [optional] +**VoiceCallerIdLookup** | **bool** | | [optional] +**VoiceFallbackMethod** | **string** | | [optional] +**VoiceFallbackUrl** | **string** | | [optional] +**VoiceMethod** | **string** | | [optional] +**VoiceReceiveMode** | **string** | | [optional] +**VoiceUrl** | **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/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn.md b/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn.md new file mode 100644 index 000000000..219af304a --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn.md @@ -0,0 +1,21 @@ +# ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Configuration** | [**map[string]interface{}**](.md) | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**Description** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**ResourceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**SubresourceUris** | [**map[string]interface{}**](.md) | | [optional] +**UniqueName** | **string** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension.md b/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension.md new file mode 100644 index 000000000..a741b31b6 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension.md @@ -0,0 +1,19 @@ +# ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AssignedAddOnSid** | **string** | | [optional] +**Enabled** | **bool** | | [optional] +**FriendlyName** | **string** | | [optional] +**ProductName** | **string** | | [optional] +**ResourceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse.md new file mode 100644 index 000000000..19454410d --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **int32** | | [optional] +**Extensions** | [**[]ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension**](api.v2010.account.incoming_phone_number.incoming_phone_number_assigned_add_on.incoming_phone_number_assigned_add_on_extension.md) | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse.md new file mode 100644 index 000000000..e1a0e2018 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AssignedAddOns** | [**[]ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn**](api.v2010.account.incoming_phone_number.incoming_phone_number_assigned_add_on.md) | | [optional] +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocal.md b/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocal.md new file mode 100644 index 000000000..c26cb1526 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocal.md @@ -0,0 +1,43 @@ +# ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocal + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AddressRequirements** | **string** | | [optional] +**AddressSid** | **string** | | [optional] +**ApiVersion** | **string** | | [optional] +**Beta** | **bool** | | [optional] +**BundleSid** | **string** | | [optional] +**Capabilities** | [**map[string]interface{}**](.md) | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**EmergencyAddressSid** | **string** | | [optional] +**EmergencyStatus** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**IdentitySid** | **string** | | [optional] +**Origin** | **string** | | [optional] +**PhoneNumber** | **string** | | [optional] +**Sid** | **string** | | [optional] +**SmsApplicationSid** | **string** | | [optional] +**SmsFallbackMethod** | **string** | | [optional] +**SmsFallbackUrl** | **string** | | [optional] +**SmsMethod** | **string** | | [optional] +**SmsUrl** | **string** | | [optional] +**Status** | **string** | | [optional] +**StatusCallback** | **string** | | [optional] +**StatusCallbackMethod** | **string** | | [optional] +**TrunkSid** | **string** | | [optional] +**Uri** | **string** | | [optional] +**VoiceApplicationSid** | **string** | | [optional] +**VoiceCallerIdLookup** | **bool** | | [optional] +**VoiceFallbackMethod** | **string** | | [optional] +**VoiceFallbackUrl** | **string** | | [optional] +**VoiceMethod** | **string** | | [optional] +**VoiceReceiveMode** | **string** | | [optional] +**VoiceUrl** | **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/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse.md new file mode 100644 index 000000000..36cb33af6 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**IncomingPhoneNumbers** | [**[]ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocal**](api.v2010.account.incoming_phone_number.incoming_phone_number_local.md) | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobile.md b/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobile.md new file mode 100644 index 000000000..59bc63773 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobile.md @@ -0,0 +1,43 @@ +# ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobile + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AddressRequirements** | **string** | | [optional] +**AddressSid** | **string** | | [optional] +**ApiVersion** | **string** | | [optional] +**Beta** | **bool** | | [optional] +**BundleSid** | **string** | | [optional] +**Capabilities** | [**map[string]interface{}**](.md) | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**EmergencyAddressSid** | **string** | | [optional] +**EmergencyStatus** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**IdentitySid** | **string** | | [optional] +**Origin** | **string** | | [optional] +**PhoneNumber** | **string** | | [optional] +**Sid** | **string** | | [optional] +**SmsApplicationSid** | **string** | | [optional] +**SmsFallbackMethod** | **string** | | [optional] +**SmsFallbackUrl** | **string** | | [optional] +**SmsMethod** | **string** | | [optional] +**SmsUrl** | **string** | | [optional] +**Status** | **string** | | [optional] +**StatusCallback** | **string** | | [optional] +**StatusCallbackMethod** | **string** | | [optional] +**TrunkSid** | **string** | | [optional] +**Uri** | **string** | | [optional] +**VoiceApplicationSid** | **string** | | [optional] +**VoiceCallerIdLookup** | **bool** | | [optional] +**VoiceFallbackMethod** | **string** | | [optional] +**VoiceFallbackUrl** | **string** | | [optional] +**VoiceMethod** | **string** | | [optional] +**VoiceReceiveMode** | **string** | | [optional] +**VoiceUrl** | **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/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse.md new file mode 100644 index 000000000..1ca84e7db --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**IncomingPhoneNumbers** | [**[]ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobile**](api.v2010.account.incoming_phone_number.incoming_phone_number_mobile.md) | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFree.md b/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFree.md new file mode 100644 index 000000000..1b67c97d7 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFree.md @@ -0,0 +1,43 @@ +# ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFree + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AddressRequirements** | **string** | | [optional] +**AddressSid** | **string** | | [optional] +**ApiVersion** | **string** | | [optional] +**Beta** | **bool** | | [optional] +**BundleSid** | **string** | | [optional] +**Capabilities** | [**map[string]interface{}**](.md) | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**EmergencyAddressSid** | **string** | | [optional] +**EmergencyStatus** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**IdentitySid** | **string** | | [optional] +**Origin** | **string** | | [optional] +**PhoneNumber** | **string** | | [optional] +**Sid** | **string** | | [optional] +**SmsApplicationSid** | **string** | | [optional] +**SmsFallbackMethod** | **string** | | [optional] +**SmsFallbackUrl** | **string** | | [optional] +**SmsMethod** | **string** | | [optional] +**SmsUrl** | **string** | | [optional] +**Status** | **string** | | [optional] +**StatusCallback** | **string** | | [optional] +**StatusCallbackMethod** | **string** | | [optional] +**TrunkSid** | **string** | | [optional] +**Uri** | **string** | | [optional] +**VoiceApplicationSid** | **string** | | [optional] +**VoiceCallerIdLookup** | **bool** | | [optional] +**VoiceFallbackMethod** | **string** | | [optional] +**VoiceFallbackUrl** | **string** | | [optional] +**VoiceMethod** | **string** | | [optional] +**VoiceReceiveMode** | **string** | | [optional] +**VoiceUrl** | **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/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse.md new file mode 100644 index 000000000..55bd8b955 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**IncomingPhoneNumbers** | [**[]ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFree**](api.v2010.account.incoming_phone_number.incoming_phone_number_toll_free.md) | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberReadResponse.md new file mode 100644 index 000000000..9fdc45857 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountIncomingPhoneNumberReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**IncomingPhoneNumbers** | [**[]ApiV2010AccountIncomingPhoneNumber**](api.v2010.account.incoming_phone_number.md) | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountKey.md b/rest/api/v2010/docs/ApiV2010AccountKey.md new file mode 100644 index 000000000..a2bd187d9 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountKey.md @@ -0,0 +1,14 @@ +# ApiV2010AccountKey + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**Sid** | **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/rest/api/v2010/docs/ApiV2010AccountKeyReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountKeyReadResponse.md new file mode 100644 index 000000000..b312f02a5 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountKeyReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountKeyReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**Keys** | [**[]ApiV2010AccountKey**](api.v2010.account.key.md) | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountMessage.md b/rest/api/v2010/docs/ApiV2010AccountMessage.md new file mode 100644 index 000000000..51866688d --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountMessage.md @@ -0,0 +1,30 @@ +# ApiV2010AccountMessage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ApiVersion** | **string** | | [optional] +**Body** | **string** | | [optional] +**DateCreated** | **string** | | [optional] +**DateSent** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**Direction** | **string** | | [optional] +**ErrorCode** | Pointer to **int32** | | [optional] +**ErrorMessage** | **string** | | [optional] +**From** | **string** | | [optional] +**MessagingServiceSid** | **string** | | [optional] +**NumMedia** | **string** | | [optional] +**NumSegments** | **string** | | [optional] +**Price** | **string** | | [optional] +**PriceUnit** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Status** | **string** | | [optional] +**SubresourceUris** | [**map[string]interface{}**](.md) | | [optional] +**To** | **string** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountMessageMedia.md b/rest/api/v2010/docs/ApiV2010AccountMessageMedia.md new file mode 100644 index 000000000..a93a729ea --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountMessageMedia.md @@ -0,0 +1,17 @@ +# ApiV2010AccountMessageMedia + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ContentType** | **string** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**ParentSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountMessageMediaReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountMessageMediaReadResponse.md new file mode 100644 index 000000000..6270377d7 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountMessageMediaReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountMessageMediaReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**MediaList** | [**[]ApiV2010AccountMessageMedia**](api.v2010.account.message.media.md) | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountMessageMessageFeedback.md b/rest/api/v2010/docs/ApiV2010AccountMessageMessageFeedback.md new file mode 100644 index 000000000..f1a4cddbc --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountMessageMessageFeedback.md @@ -0,0 +1,16 @@ +# ApiV2010AccountMessageMessageFeedback + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**MessageSid** | **string** | | [optional] +**Outcome** | **string** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountMessageReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountMessageReadResponse.md new file mode 100644 index 000000000..469edb2af --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountMessageReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountMessageReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**Messages** | [**[]ApiV2010AccountMessage**](api.v2010.account.message.md) | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountNewKey.md b/rest/api/v2010/docs/ApiV2010AccountNewKey.md new file mode 100644 index 000000000..50f227c15 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountNewKey.md @@ -0,0 +1,15 @@ +# ApiV2010AccountNewKey + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**Secret** | **string** | | [optional] +**Sid** | **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/rest/api/v2010/docs/ApiV2010AccountNewSigningKey.md b/rest/api/v2010/docs/ApiV2010AccountNewSigningKey.md new file mode 100644 index 000000000..ee8d57125 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountNewSigningKey.md @@ -0,0 +1,15 @@ +# ApiV2010AccountNewSigningKey + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**Secret** | **string** | | [optional] +**Sid** | **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/rest/api/v2010/docs/ApiV2010AccountNotification.md b/rest/api/v2010/docs/ApiV2010AccountNotification.md new file mode 100644 index 000000000..39f4e3fab --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountNotification.md @@ -0,0 +1,24 @@ +# ApiV2010AccountNotification + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ApiVersion** | **string** | | [optional] +**CallSid** | **string** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**ErrorCode** | **string** | | [optional] +**Log** | **string** | | [optional] +**MessageDate** | **string** | | [optional] +**MessageText** | **string** | | [optional] +**MoreInfo** | **string** | | [optional] +**RequestMethod** | **string** | | [optional] +**RequestUrl** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountNotificationInstance.md b/rest/api/v2010/docs/ApiV2010AccountNotificationInstance.md new file mode 100644 index 000000000..5448310a7 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountNotificationInstance.md @@ -0,0 +1,27 @@ +# ApiV2010AccountNotificationInstance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ApiVersion** | **string** | | [optional] +**CallSid** | **string** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**ErrorCode** | **string** | | [optional] +**Log** | **string** | | [optional] +**MessageDate** | **string** | | [optional] +**MessageText** | **string** | | [optional] +**MoreInfo** | **string** | | [optional] +**RequestMethod** | **string** | | [optional] +**RequestUrl** | **string** | | [optional] +**RequestVariables** | **string** | | [optional] +**ResponseBody** | **string** | | [optional] +**ResponseHeaders** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountNotificationReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountNotificationReadResponse.md new file mode 100644 index 000000000..604a35ce5 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountNotificationReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountNotificationReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Notifications** | [**[]ApiV2010AccountNotification**](api.v2010.account.notification.md) | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountOutgoingCallerId.md b/rest/api/v2010/docs/ApiV2010AccountOutgoingCallerId.md new file mode 100644 index 000000000..272b890ce --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountOutgoingCallerId.md @@ -0,0 +1,17 @@ +# ApiV2010AccountOutgoingCallerId + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**PhoneNumber** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountOutgoingCallerIdReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountOutgoingCallerIdReadResponse.md new file mode 100644 index 000000000..361575329 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountOutgoingCallerIdReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountOutgoingCallerIdReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**OutgoingCallerIds** | [**[]ApiV2010AccountOutgoingCallerId**](api.v2010.account.outgoing_caller_id.md) | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountQueue.md b/rest/api/v2010/docs/ApiV2010AccountQueue.md new file mode 100644 index 000000000..737f6aa66 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountQueue.md @@ -0,0 +1,19 @@ +# ApiV2010AccountQueue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AverageWaitTime** | **int32** | | [optional] +**CurrentSize** | **int32** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**MaxSize** | **int32** | | [optional] +**Sid** | **string** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountQueueMember.md b/rest/api/v2010/docs/ApiV2010AccountQueueMember.md new file mode 100644 index 000000000..7ba0c62c9 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountQueueMember.md @@ -0,0 +1,16 @@ +# ApiV2010AccountQueueMember + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CallSid** | **string** | | [optional] +**DateEnqueued** | **string** | | [optional] +**Position** | **int32** | | [optional] +**QueueSid** | **string** | | [optional] +**Uri** | **string** | | [optional] +**WaitTime** | **int32** | | [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/rest/api/v2010/docs/ApiV2010AccountQueueMemberReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountQueueMemberReadResponse.md new file mode 100644 index 000000000..5a4bbcdf8 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountQueueMemberReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountQueueMemberReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**QueueMembers** | [**[]ApiV2010AccountQueueMember**](api.v2010.account.queue.member.md) | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountQueueReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountQueueReadResponse.md new file mode 100644 index 000000000..568a02915 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountQueueReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountQueueReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Queues** | [**[]ApiV2010AccountQueue**](api.v2010.account.queue.md) | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountReadResponse.md new file mode 100644 index 000000000..819907439 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Accounts** | [**[]ApiV2010Account**](api.v2010.account.md) | | [optional] +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountRecording.md b/rest/api/v2010/docs/ApiV2010AccountRecording.md new file mode 100644 index 000000000..98acffa86 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountRecording.md @@ -0,0 +1,28 @@ +# ApiV2010AccountRecording + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ApiVersion** | **string** | | [optional] +**CallSid** | **string** | | [optional] +**Channels** | **int32** | | [optional] +**ConferenceSid** | **string** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**Duration** | **string** | | [optional] +**EncryptionDetails** | [**map[string]interface{}**](.md) | | [optional] +**ErrorCode** | Pointer to **int32** | | [optional] +**Price** | **string** | | [optional] +**PriceUnit** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Source** | **string** | | [optional] +**StartTime** | **string** | | [optional] +**Status** | **string** | | [optional] +**SubresourceUris** | [**map[string]interface{}**](.md) | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountRecordingReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountRecordingReadResponse.md new file mode 100644 index 000000000..30d873c92 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountRecordingReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountRecordingReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Recordings** | [**[]ApiV2010AccountRecording**](api.v2010.account.recording.md) | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountRecordingRecordingAddOnResult.md b/rest/api/v2010/docs/ApiV2010AccountRecordingRecordingAddOnResult.md new file mode 100644 index 000000000..795066a96 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountRecordingRecordingAddOnResult.md @@ -0,0 +1,20 @@ +# ApiV2010AccountRecordingRecordingAddOnResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AddOnConfigurationSid** | **string** | | [optional] +**AddOnSid** | **string** | | [optional] +**DateCompleted** | **string** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**ReferenceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Status** | **string** | | [optional] +**SubresourceUris** | [**map[string]interface{}**](.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/rest/api/v2010/docs/ApiV2010AccountRecordingRecordingAddOnResultReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountRecordingRecordingAddOnResultReadResponse.md new file mode 100644 index 000000000..f17bc9b65 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountRecordingRecordingAddOnResultReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountRecordingRecordingAddOnResultReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AddOnResults** | [**[]ApiV2010AccountRecordingRecordingAddOnResult**](api.v2010.account.recording.recording_add_on_result.md) | | [optional] +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayload.md b/rest/api/v2010/docs/ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayload.md new file mode 100644 index 000000000..5e0c7002d --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayload.md @@ -0,0 +1,21 @@ +# ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AddOnConfigurationSid** | **string** | | [optional] +**AddOnResultSid** | **string** | | [optional] +**AddOnSid** | **string** | | [optional] +**ContentType** | **string** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**Label** | **string** | | [optional] +**ReferenceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**SubresourceUris** | [**map[string]interface{}**](.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/rest/api/v2010/docs/ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse.md new file mode 100644 index 000000000..593f2466c --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**Payloads** | [**[]ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayload**](api.v2010.account.recording.recording_add_on_result.recording_add_on_result_payload.md) | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountRecordingRecordingTranscription.md b/rest/api/v2010/docs/ApiV2010AccountRecordingRecordingTranscription.md new file mode 100644 index 000000000..80ad22beb --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountRecordingRecordingTranscription.md @@ -0,0 +1,23 @@ +# ApiV2010AccountRecordingRecordingTranscription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ApiVersion** | **string** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**Duration** | **string** | | [optional] +**Price** | **float32** | | [optional] +**PriceUnit** | **string** | | [optional] +**RecordingSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Status** | **string** | | [optional] +**TranscriptionText** | **string** | | [optional] +**Type** | **string** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountRecordingRecordingTranscriptionReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountRecordingRecordingTranscriptionReadResponse.md new file mode 100644 index 000000000..fa7950a68 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountRecordingRecordingTranscriptionReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountRecordingRecordingTranscriptionReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Transcriptions** | [**[]ApiV2010AccountRecordingRecordingTranscription**](api.v2010.account.recording.recording_transcription.md) | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountShortCode.md b/rest/api/v2010/docs/ApiV2010AccountShortCode.md new file mode 100644 index 000000000..f324a2594 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountShortCode.md @@ -0,0 +1,22 @@ +# ApiV2010AccountShortCode + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ApiVersion** | **string** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**ShortCode** | **string** | | [optional] +**Sid** | **string** | | [optional] +**SmsFallbackMethod** | **string** | | [optional] +**SmsFallbackUrl** | **string** | | [optional] +**SmsMethod** | **string** | | [optional] +**SmsUrl** | **string** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountShortCodeReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountShortCodeReadResponse.md new file mode 100644 index 000000000..b0825a85d --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountShortCodeReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountShortCodeReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**ShortCodes** | [**[]ApiV2010AccountShortCode**](api.v2010.account.short_code.md) | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountSigningKey.md b/rest/api/v2010/docs/ApiV2010AccountSigningKey.md new file mode 100644 index 000000000..8345082bc --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountSigningKey.md @@ -0,0 +1,14 @@ +# ApiV2010AccountSigningKey + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**Sid** | **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/rest/api/v2010/docs/ApiV2010AccountSigningKeyReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountSigningKeyReadResponse.md new file mode 100644 index 000000000..2c7d510a2 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountSigningKeyReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountSigningKeyReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**SigningKeys** | [**[]ApiV2010AccountSigningKey**](api.v2010.account.signing_key.md) | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountSipSipCredentialList.md b/rest/api/v2010/docs/ApiV2010AccountSipSipCredentialList.md new file mode 100644 index 000000000..685cfb7ae --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountSipSipCredentialList.md @@ -0,0 +1,17 @@ +# ApiV2010AccountSipSipCredentialList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**Sid** | **string** | | [optional] +**SubresourceUris** | [**map[string]interface{}**](.md) | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountSipSipCredentialListReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountSipSipCredentialListReadResponse.md new file mode 100644 index 000000000..d1f6f9f0d --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountSipSipCredentialListReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountSipSipCredentialListReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CredentialLists** | [**[]ApiV2010AccountSipSipCredentialList**](api.v2010.account.sip.sip_credential_list.md) | | [optional] +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountSipSipCredentialListSipCredential.md b/rest/api/v2010/docs/ApiV2010AccountSipSipCredentialListSipCredential.md new file mode 100644 index 000000000..ad213a634 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountSipSipCredentialListSipCredential.md @@ -0,0 +1,17 @@ +# ApiV2010AccountSipSipCredentialListSipCredential + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**CredentialListSid** | **string** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Uri** | **string** | | [optional] +**Username** | **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/rest/api/v2010/docs/ApiV2010AccountSipSipCredentialListSipCredentialReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountSipSipCredentialListSipCredentialReadResponse.md new file mode 100644 index 000000000..1ea161d16 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountSipSipCredentialListSipCredentialReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountSipSipCredentialListSipCredentialReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Credentials** | [**[]ApiV2010AccountSipSipCredentialListSipCredential**](api.v2010.account.sip.sip_credential_list.sip_credential.md) | | [optional] +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountSipSipDomain.md b/rest/api/v2010/docs/ApiV2010AccountSipSipDomain.md new file mode 100644 index 000000000..d3b7cf8fa --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountSipSipDomain.md @@ -0,0 +1,31 @@ +# ApiV2010AccountSipSipDomain + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ApiVersion** | **string** | | [optional] +**AuthType** | **string** | | [optional] +**ByocTrunkSid** | **string** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**DomainName** | **string** | | [optional] +**EmergencyCallerSid** | **string** | | [optional] +**EmergencyCallingEnabled** | **bool** | | [optional] +**FriendlyName** | **string** | | [optional] +**Secure** | **bool** | | [optional] +**Sid** | **string** | | [optional] +**SipRegistration** | **bool** | | [optional] +**SubresourceUris** | [**map[string]interface{}**](.md) | | [optional] +**Uri** | **string** | | [optional] +**VoiceFallbackMethod** | **string** | | [optional] +**VoiceFallbackUrl** | **string** | | [optional] +**VoiceMethod** | **string** | | [optional] +**VoiceStatusCallbackMethod** | **string** | | [optional] +**VoiceStatusCallbackUrl** | **string** | | [optional] +**VoiceUrl** | **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/rest/api/v2010/docs/ApiV2010AccountSipSipDomainReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountSipSipDomainReadResponse.md new file mode 100644 index 000000000..782ffd5fd --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountSipSipDomainReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountSipSipDomainReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Domains** | [**[]ApiV2010AccountSipSipDomain**](api.v2010.account.sip.sip_domain.md) | | [optional] +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping.md b/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping.md new file mode 100644 index 000000000..5ccab7c02 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping.md @@ -0,0 +1,15 @@ +# ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**Sid** | **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/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse.md new file mode 100644 index 000000000..e9272af56 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Contents** | [**[]ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping**](api.v2010.account.sip.sip_domain.sip_auth.sip_auth_calls.sip_auth_calls_credential_list_mapping.md) | | [optional] +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping.md b/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping.md new file mode 100644 index 000000000..e6a14fe67 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping.md @@ -0,0 +1,15 @@ +# ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**Sid** | **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/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse.md new file mode 100644 index 000000000..425d12a37 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Contents** | [**[]ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping**](api.v2010.account.sip.sip_domain.sip_auth.sip_auth_calls.sip_auth_calls_ip_access_control_list_mapping.md) | | [optional] +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping.md b/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping.md new file mode 100644 index 000000000..7b10a4095 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping.md @@ -0,0 +1,15 @@ +# ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**Sid** | **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/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse.md new file mode 100644 index 000000000..982d88483 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Contents** | [**[]ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping**](api.v2010.account.sip.sip_domain.sip_auth.sip_auth_registrations.sip_auth_registrations_credential_list_mapping.md) | | [optional] +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipCredentialListMapping.md b/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipCredentialListMapping.md new file mode 100644 index 000000000..e0ebf862f --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipCredentialListMapping.md @@ -0,0 +1,17 @@ +# ApiV2010AccountSipSipDomainSipCredentialListMapping + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**Sid** | **string** | | [optional] +**SubresourceUris** | [**map[string]interface{}**](.md) | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse.md new file mode 100644 index 000000000..24ea8efd0 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CredentialListMappings** | [**[]ApiV2010AccountSipSipDomainSipCredentialListMapping**](api.v2010.account.sip.sip_domain.sip_credential_list_mapping.md) | | [optional] +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipIpAccessControlListMapping.md b/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipIpAccessControlListMapping.md new file mode 100644 index 000000000..f65fe9472 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipIpAccessControlListMapping.md @@ -0,0 +1,17 @@ +# ApiV2010AccountSipSipDomainSipIpAccessControlListMapping + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**Sid** | **string** | | [optional] +**SubresourceUris** | [**map[string]interface{}**](.md) | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse.md new file mode 100644 index 000000000..a0d326c1a --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**IpAccessControlListMappings** | [**[]ApiV2010AccountSipSipDomainSipIpAccessControlListMapping**](api.v2010.account.sip.sip_domain.sip_ip_access_control_list_mapping.md) | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountSipSipIpAccessControlList.md b/rest/api/v2010/docs/ApiV2010AccountSipSipIpAccessControlList.md new file mode 100644 index 000000000..35afce8fe --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountSipSipIpAccessControlList.md @@ -0,0 +1,17 @@ +# ApiV2010AccountSipSipIpAccessControlList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**Sid** | **string** | | [optional] +**SubresourceUris** | [**map[string]interface{}**](.md) | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountSipSipIpAccessControlListReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountSipSipIpAccessControlListReadResponse.md new file mode 100644 index 000000000..77bf0b45c --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountSipSipIpAccessControlListReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountSipSipIpAccessControlListReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**IpAccessControlLists** | [**[]ApiV2010AccountSipSipIpAccessControlList**](api.v2010.account.sip.sip_ip_access_control_list.md) | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountSipSipIpAccessControlListSipIpAddress.md b/rest/api/v2010/docs/ApiV2010AccountSipSipIpAccessControlListSipIpAddress.md new file mode 100644 index 000000000..64a56b0a9 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountSipSipIpAccessControlListSipIpAddress.md @@ -0,0 +1,19 @@ +# ApiV2010AccountSipSipIpAccessControlListSipIpAddress + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**CidrPrefixLength** | **int32** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**IpAccessControlListSid** | **string** | | [optional] +**IpAddress** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse.md new file mode 100644 index 000000000..415d63db0 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**IpAddresses** | [**[]ApiV2010AccountSipSipIpAccessControlListSipIpAddress**](api.v2010.account.sip.sip_ip_access_control_list.sip_ip_address.md) | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountToken.md b/rest/api/v2010/docs/ApiV2010AccountToken.md new file mode 100644 index 000000000..d1e04ff70 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountToken.md @@ -0,0 +1,17 @@ +# ApiV2010AccountToken + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**IceServers** | **[]map[string]interface{}** | | [optional] +**Password** | **string** | | [optional] +**Ttl** | **string** | | [optional] +**Username** | **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/rest/api/v2010/docs/ApiV2010AccountTranscription.md b/rest/api/v2010/docs/ApiV2010AccountTranscription.md new file mode 100644 index 000000000..497333a89 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountTranscription.md @@ -0,0 +1,23 @@ +# ApiV2010AccountTranscription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ApiVersion** | **string** | | [optional] +**DateCreated** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**Duration** | **string** | | [optional] +**Price** | **float32** | | [optional] +**PriceUnit** | **string** | | [optional] +**RecordingSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Status** | **string** | | [optional] +**TranscriptionText** | **string** | | [optional] +**Type** | **string** | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountTranscriptionReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountTranscriptionReadResponse.md new file mode 100644 index 000000000..1c58918f9 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountTranscriptionReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountTranscriptionReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Transcriptions** | [**[]ApiV2010AccountTranscription**](api.v2010.account.transcription.md) | | [optional] +**Uri** | **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/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecord.md b/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecord.md new file mode 100644 index 000000000..2005fa431 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecord.md @@ -0,0 +1,25 @@ +# ApiV2010AccountUsageUsageRecord + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ApiVersion** | **string** | | [optional] +**AsOf** | **string** | | [optional] +**Category** | **string** | | [optional] +**Count** | **string** | | [optional] +**CountUnit** | **string** | | [optional] +**Description** | **string** | | [optional] +**EndDate** | [**time.Time**](time.Time.md) | | [optional] +**Price** | **float32** | | [optional] +**PriceUnit** | **string** | | [optional] +**StartDate** | [**time.Time**](time.Time.md) | | [optional] +**SubresourceUris** | [**map[string]interface{}**](.md) | | [optional] +**Uri** | **string** | | [optional] +**Usage** | **string** | | [optional] +**UsageUnit** | **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/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordReadResponse.md new file mode 100644 index 000000000..fd2eeb391 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountUsageUsageRecordReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **string** | | [optional] +**UsageRecords** | [**[]ApiV2010AccountUsageUsageRecord**](api.v2010.account.usage.usage_record.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/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordAllTime.md b/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordAllTime.md new file mode 100644 index 000000000..37b7e3db3 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordAllTime.md @@ -0,0 +1,25 @@ +# ApiV2010AccountUsageUsageRecordUsageRecordAllTime + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ApiVersion** | **string** | | [optional] +**AsOf** | **string** | | [optional] +**Category** | **string** | | [optional] +**Count** | **string** | | [optional] +**CountUnit** | **string** | | [optional] +**Description** | **string** | | [optional] +**EndDate** | [**time.Time**](time.Time.md) | | [optional] +**Price** | **float32** | | [optional] +**PriceUnit** | **string** | | [optional] +**StartDate** | [**time.Time**](time.Time.md) | | [optional] +**SubresourceUris** | [**map[string]interface{}**](.md) | | [optional] +**Uri** | **string** | | [optional] +**Usage** | **string** | | [optional] +**UsageUnit** | **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/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse.md new file mode 100644 index 000000000..d2248ee26 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **string** | | [optional] +**UsageRecords** | [**[]ApiV2010AccountUsageUsageRecordUsageRecordAllTime**](api.v2010.account.usage.usage_record.usage_record_all_time.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/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordDaily.md b/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordDaily.md new file mode 100644 index 000000000..7847289ec --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordDaily.md @@ -0,0 +1,25 @@ +# ApiV2010AccountUsageUsageRecordUsageRecordDaily + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ApiVersion** | **string** | | [optional] +**AsOf** | **string** | | [optional] +**Category** | **string** | | [optional] +**Count** | **string** | | [optional] +**CountUnit** | **string** | | [optional] +**Description** | **string** | | [optional] +**EndDate** | [**time.Time**](time.Time.md) | | [optional] +**Price** | **float32** | | [optional] +**PriceUnit** | **string** | | [optional] +**StartDate** | [**time.Time**](time.Time.md) | | [optional] +**SubresourceUris** | [**map[string]interface{}**](.md) | | [optional] +**Uri** | **string** | | [optional] +**Usage** | **string** | | [optional] +**UsageUnit** | **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/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse.md new file mode 100644 index 000000000..daee53966 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **string** | | [optional] +**UsageRecords** | [**[]ApiV2010AccountUsageUsageRecordUsageRecordDaily**](api.v2010.account.usage.usage_record.usage_record_daily.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/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordLastMonth.md b/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordLastMonth.md new file mode 100644 index 000000000..58528939b --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordLastMonth.md @@ -0,0 +1,25 @@ +# ApiV2010AccountUsageUsageRecordUsageRecordLastMonth + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ApiVersion** | **string** | | [optional] +**AsOf** | **string** | | [optional] +**Category** | **string** | | [optional] +**Count** | **string** | | [optional] +**CountUnit** | **string** | | [optional] +**Description** | **string** | | [optional] +**EndDate** | [**time.Time**](time.Time.md) | | [optional] +**Price** | **float32** | | [optional] +**PriceUnit** | **string** | | [optional] +**StartDate** | [**time.Time**](time.Time.md) | | [optional] +**SubresourceUris** | [**map[string]interface{}**](.md) | | [optional] +**Uri** | **string** | | [optional] +**Usage** | **string** | | [optional] +**UsageUnit** | **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/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse.md new file mode 100644 index 000000000..7e646fe91 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **string** | | [optional] +**UsageRecords** | [**[]ApiV2010AccountUsageUsageRecordUsageRecordLastMonth**](api.v2010.account.usage.usage_record.usage_record_last_month.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/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordMonthly.md b/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordMonthly.md new file mode 100644 index 000000000..d7ed37530 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordMonthly.md @@ -0,0 +1,25 @@ +# ApiV2010AccountUsageUsageRecordUsageRecordMonthly + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ApiVersion** | **string** | | [optional] +**AsOf** | **string** | | [optional] +**Category** | **string** | | [optional] +**Count** | **string** | | [optional] +**CountUnit** | **string** | | [optional] +**Description** | **string** | | [optional] +**EndDate** | [**time.Time**](time.Time.md) | | [optional] +**Price** | **float32** | | [optional] +**PriceUnit** | **string** | | [optional] +**StartDate** | [**time.Time**](time.Time.md) | | [optional] +**SubresourceUris** | [**map[string]interface{}**](.md) | | [optional] +**Uri** | **string** | | [optional] +**Usage** | **string** | | [optional] +**UsageUnit** | **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/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse.md new file mode 100644 index 000000000..b0da189a6 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **string** | | [optional] +**UsageRecords** | [**[]ApiV2010AccountUsageUsageRecordUsageRecordMonthly**](api.v2010.account.usage.usage_record.usage_record_monthly.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/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordThisMonth.md b/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordThisMonth.md new file mode 100644 index 000000000..9714e6caf --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordThisMonth.md @@ -0,0 +1,25 @@ +# ApiV2010AccountUsageUsageRecordUsageRecordThisMonth + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ApiVersion** | **string** | | [optional] +**AsOf** | **string** | | [optional] +**Category** | **string** | | [optional] +**Count** | **string** | | [optional] +**CountUnit** | **string** | | [optional] +**Description** | **string** | | [optional] +**EndDate** | [**time.Time**](time.Time.md) | | [optional] +**Price** | **float32** | | [optional] +**PriceUnit** | **string** | | [optional] +**StartDate** | [**time.Time**](time.Time.md) | | [optional] +**SubresourceUris** | [**map[string]interface{}**](.md) | | [optional] +**Uri** | **string** | | [optional] +**Usage** | **string** | | [optional] +**UsageUnit** | **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/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse.md new file mode 100644 index 000000000..974ffc0c8 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **string** | | [optional] +**UsageRecords** | [**[]ApiV2010AccountUsageUsageRecordUsageRecordThisMonth**](api.v2010.account.usage.usage_record.usage_record_this_month.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/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordToday.md b/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordToday.md new file mode 100644 index 000000000..1aa5600a9 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordToday.md @@ -0,0 +1,25 @@ +# ApiV2010AccountUsageUsageRecordUsageRecordToday + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ApiVersion** | **string** | | [optional] +**AsOf** | **string** | | [optional] +**Category** | **string** | | [optional] +**Count** | **string** | | [optional] +**CountUnit** | **string** | | [optional] +**Description** | **string** | | [optional] +**EndDate** | [**time.Time**](time.Time.md) | | [optional] +**Price** | **float32** | | [optional] +**PriceUnit** | **string** | | [optional] +**StartDate** | [**time.Time**](time.Time.md) | | [optional] +**SubresourceUris** | [**map[string]interface{}**](.md) | | [optional] +**Uri** | **string** | | [optional] +**Usage** | **string** | | [optional] +**UsageUnit** | **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/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse.md new file mode 100644 index 000000000..2be41ec21 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **string** | | [optional] +**UsageRecords** | [**[]ApiV2010AccountUsageUsageRecordUsageRecordToday**](api.v2010.account.usage.usage_record.usage_record_today.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/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordYearly.md b/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordYearly.md new file mode 100644 index 000000000..78f4d9e83 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordYearly.md @@ -0,0 +1,25 @@ +# ApiV2010AccountUsageUsageRecordUsageRecordYearly + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ApiVersion** | **string** | | [optional] +**AsOf** | **string** | | [optional] +**Category** | **string** | | [optional] +**Count** | **string** | | [optional] +**CountUnit** | **string** | | [optional] +**Description** | **string** | | [optional] +**EndDate** | [**time.Time**](time.Time.md) | | [optional] +**Price** | **float32** | | [optional] +**PriceUnit** | **string** | | [optional] +**StartDate** | [**time.Time**](time.Time.md) | | [optional] +**SubresourceUris** | [**map[string]interface{}**](.md) | | [optional] +**Uri** | **string** | | [optional] +**Usage** | **string** | | [optional] +**UsageUnit** | **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/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse.md new file mode 100644 index 000000000..a952a69a0 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **string** | | [optional] +**UsageRecords** | [**[]ApiV2010AccountUsageUsageRecordUsageRecordYearly**](api.v2010.account.usage.usage_record.usage_record_yearly.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/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordYesterday.md b/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordYesterday.md new file mode 100644 index 000000000..66db46238 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordYesterday.md @@ -0,0 +1,25 @@ +# ApiV2010AccountUsageUsageRecordUsageRecordYesterday + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ApiVersion** | **string** | | [optional] +**AsOf** | **string** | | [optional] +**Category** | **string** | | [optional] +**Count** | **string** | | [optional] +**CountUnit** | **string** | | [optional] +**Description** | **string** | | [optional] +**EndDate** | [**time.Time**](time.Time.md) | | [optional] +**Price** | **float32** | | [optional] +**PriceUnit** | **string** | | [optional] +**StartDate** | [**time.Time**](time.Time.md) | | [optional] +**SubresourceUris** | [**map[string]interface{}**](.md) | | [optional] +**Uri** | **string** | | [optional] +**Usage** | **string** | | [optional] +**UsageUnit** | **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/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse.md new file mode 100644 index 000000000..8dd295ae2 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **string** | | [optional] +**UsageRecords** | [**[]ApiV2010AccountUsageUsageRecordUsageRecordYesterday**](api.v2010.account.usage.usage_record.usage_record_yesterday.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/rest/api/v2010/docs/ApiV2010AccountUsageUsageTrigger.md b/rest/api/v2010/docs/ApiV2010AccountUsageUsageTrigger.md new file mode 100644 index 000000000..39250d45a --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountUsageUsageTrigger.md @@ -0,0 +1,26 @@ +# ApiV2010AccountUsageUsageTrigger + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ApiVersion** | **string** | | [optional] +**CallbackMethod** | **string** | | [optional] +**CallbackUrl** | **string** | | [optional] +**CurrentValue** | **string** | | [optional] +**DateCreated** | **string** | | [optional] +**DateFired** | **string** | | [optional] +**DateUpdated** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**Recurring** | **string** | | [optional] +**Sid** | **string** | | [optional] +**TriggerBy** | **string** | | [optional] +**TriggerValue** | **string** | | [optional] +**Uri** | **string** | | [optional] +**UsageCategory** | **string** | | [optional] +**UsageRecordUri** | **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/rest/api/v2010/docs/ApiV2010AccountUsageUsageTriggerReadResponse.md b/rest/api/v2010/docs/ApiV2010AccountUsageUsageTriggerReadResponse.md new file mode 100644 index 000000000..426e47248 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountUsageUsageTriggerReadResponse.md @@ -0,0 +1,19 @@ +# ApiV2010AccountUsageUsageTriggerReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**End** | **int32** | | [optional] +**FirstPageUri** | **string** | | [optional] +**NextPageUri** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUri** | **string** | | [optional] +**Start** | **int32** | | [optional] +**Uri** | **string** | | [optional] +**UsageTriggers** | [**[]ApiV2010AccountUsageUsageTrigger**](api.v2010.account.usage.usage_trigger.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/rest/api/v2010/docs/ApiV2010AccountValidationRequest.md b/rest/api/v2010/docs/ApiV2010AccountValidationRequest.md new file mode 100644 index 000000000..15edc4a52 --- /dev/null +++ b/rest/api/v2010/docs/ApiV2010AccountValidationRequest.md @@ -0,0 +1,15 @@ +# ApiV2010AccountValidationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**CallSid** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**PhoneNumber** | **string** | | [optional] +**ValidationCode** | **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/rest/api/v2010/docs/CreateAccountRequest.md b/rest/api/v2010/docs/CreateAccountRequest.md new file mode 100644 index 000000000..6c7789c47 --- /dev/null +++ b/rest/api/v2010/docs/CreateAccountRequest.md @@ -0,0 +1,11 @@ +# CreateAccountRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | A human readable description of the account to create, defaults to `SubAccount Created at {YYYY-MM-DD HH:MM meridian}` | [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/rest/api/v2010/docs/CreateAddressRequest.md b/rest/api/v2010/docs/CreateAddressRequest.md new file mode 100644 index 000000000..964221245 --- /dev/null +++ b/rest/api/v2010/docs/CreateAddressRequest.md @@ -0,0 +1,19 @@ +# CreateAddressRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AutoCorrectAddress** | **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. | [optional] +**City** | **string** | The city of the new address. | +**CustomerName** | **string** | The name to associate with the new address. | +**EmergencyEnabled** | **bool** | Whether to enable emergency calling on the new address. Can be: `true` or `false`. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the new address. It can be up to 64 characters long. | [optional] +**IsoCountry** | **string** | The ISO country code of the new address. | +**PostalCode** | **string** | The postal code of the new address. | +**Region** | **string** | The state or region of the new address. | +**Street** | **string** | The number and street address of the new address. | + +[[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/rest/api/v2010/docs/CreateApplicationRequest.md b/rest/api/v2010/docs/CreateApplicationRequest.md new file mode 100644 index 000000000..7ec3cfa09 --- /dev/null +++ b/rest/api/v2010/docs/CreateApplicationRequest.md @@ -0,0 +1,25 @@ +# CreateApplicationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | **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. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the new application. It can be up to 64 characters long. | [optional] +**MessageStatusCallback** | **string** | The URL we should call using a POST method to send message status information to your application. | [optional] +**SmsFallbackMethod** | **string** | The HTTP method we should use to call `sms_fallback_url`. Can be: `GET` or `POST`. | [optional] +**SmsFallbackUrl** | **string** | The URL that we should call when an error occurs while retrieving or executing the TwiML from `sms_url`. | [optional] +**SmsMethod** | **string** | The HTTP method we should use to call `sms_url`. Can be: `GET` or `POST`. | [optional] +**SmsStatusCallback** | **string** | The URL we should call using a POST method to send status information about SMS messages sent by the application. | [optional] +**SmsUrl** | **string** | The URL we should call when the phone number receives an incoming SMS message. | [optional] +**StatusCallback** | **string** | The URL we should call using the `status_callback_method` to send status information to your application. | [optional] +**StatusCallbackMethod** | **string** | The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST`. | [optional] +**VoiceCallerIdLookup** | **bool** | Whether we should look up the caller's caller-ID name from the CNAM database (additional charges apply). Can be: `true` or `false`. | [optional] +**VoiceFallbackMethod** | **string** | The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. | [optional] +**VoiceFallbackUrl** | **string** | The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | [optional] +**VoiceMethod** | **string** | The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`. | [optional] +**VoiceUrl** | **string** | The URL we should call when the phone number assigned to this application receives a 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/rest/api/v2010/docs/CreateCallFeedbackSummaryRequest.md b/rest/api/v2010/docs/CreateCallFeedbackSummaryRequest.md new file mode 100644 index 000000000..d6f76dd87 --- /dev/null +++ b/rest/api/v2010/docs/CreateCallFeedbackSummaryRequest.md @@ -0,0 +1,15 @@ +# CreateCallFeedbackSummaryRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EndDate** | [**time.Time**](time.Time.md) | Only include feedback given on or before this date. Format is `YYYY-MM-DD` and specified in UTC. | +**IncludeSubaccounts** | **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. | [optional] +**StartDate** | [**time.Time**](time.Time.md) | Only include feedback given on or after this date. Format is `YYYY-MM-DD` and specified in UTC. | +**StatusCallback** | **string** | The URL that we will request when the feedback summary is complete. | [optional] +**StatusCallbackMethod** | **string** | The HTTP method (`GET` or `POST`) we use to make the request to the `StatusCallback` URL. | [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/rest/api/v2010/docs/CreateCallRecordingRequest.md b/rest/api/v2010/docs/CreateCallRecordingRequest.md new file mode 100644 index 000000000..853eaa862 --- /dev/null +++ b/rest/api/v2010/docs/CreateCallRecordingRequest.md @@ -0,0 +1,16 @@ +# CreateCallRecordingRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RecordingChannels** | **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. | [optional] +**RecordingStatusCallback** | **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). | [optional] +**RecordingStatusCallbackEvent** | **[]string** | 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. | [optional] +**RecordingStatusCallbackMethod** | **string** | The HTTP method we should use to call `recording_status_callback`. Can be: `GET` or `POST` and the default is `POST`. | [optional] +**RecordingTrack** | **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. | [optional] +**Trim** | **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. | [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/rest/api/v2010/docs/CreateCallRequest.md b/rest/api/v2010/docs/CreateCallRequest.md new file mode 100644 index 000000000..737dfe55e --- /dev/null +++ b/rest/api/v2010/docs/CreateCallRequest.md @@ -0,0 +1,43 @@ +# CreateCallRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApplicationSid** | **string** | The SID of the Application resource that will handle the call, if the call will be handled by an application. | [optional] +**AsyncAmd** | **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`. | [optional] +**AsyncAmdStatusCallback** | **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. | [optional] +**AsyncAmdStatusCallbackMethod** | **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`. | [optional] +**Byoc** | **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) | [optional] +**CallReason** | **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) | [optional] +**CallerId** | **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`. | [optional] +**FallbackMethod** | **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. | [optional] +**FallbackUrl** | **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. | [optional] +**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. | +**MachineDetection** | **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). | [optional] +**MachineDetectionSilenceTimeout** | **int32** | The number of milliseconds of initial silence after which an `unknown` AnsweredBy result will be returned. Possible Values: 2000-10000. Default: 5000. | [optional] +**MachineDetectionSpeechEndThreshold** | **int32** | The number of milliseconds of silence after speech activity at which point the speech activity is considered complete. Possible Values: 500-5000. Default: 1200. | [optional] +**MachineDetectionSpeechThreshold** | **int32** | 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. | [optional] +**MachineDetectionTimeout** | **int32** | 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. | [optional] +**Method** | **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. | [optional] +**Record** | **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. | [optional] +**RecordingChannels** | **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. | [optional] +**RecordingStatusCallback** | **string** | The URL that we call when the recording is available to be accessed. | [optional] +**RecordingStatusCallbackEvent** | **[]string** | 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. | [optional] +**RecordingStatusCallbackMethod** | **string** | The HTTP method we should use when calling the `recording_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. | [optional] +**RecordingTrack** | **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. | [optional] +**SendDigits** | **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. | [optional] +**SipAuthPassword** | **string** | The password required to authenticate the user account specified in `sip_auth_username`. | [optional] +**SipAuthUsername** | **string** | The username used to authenticate the caller making a SIP call. | [optional] +**StatusCallback** | **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). | [optional] +**StatusCallbackEvent** | **[]string** | 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. | [optional] +**StatusCallbackMethod** | **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. | [optional] +**Timeout** | **int32** | 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. | [optional] +**To** | **string** | The phone number, SIP address, or client identifier to call. | +**Trim** | **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`. | [optional] +**Twiml** | **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. | [optional] +**Url** | **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). | [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/rest/api/v2010/docs/CreateIncomingPhoneNumberAssignedAddOnRequest.md b/rest/api/v2010/docs/CreateIncomingPhoneNumberAssignedAddOnRequest.md new file mode 100644 index 000000000..19a9327de --- /dev/null +++ b/rest/api/v2010/docs/CreateIncomingPhoneNumberAssignedAddOnRequest.md @@ -0,0 +1,11 @@ +# CreateIncomingPhoneNumberAssignedAddOnRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InstalledAddOnSid** | **string** | The SID that identifies the Add-on installation. | + +[[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/rest/api/v2010/docs/CreateIncomingPhoneNumberLocalRequest.md b/rest/api/v2010/docs/CreateIncomingPhoneNumberLocalRequest.md new file mode 100644 index 000000000..c0233df73 --- /dev/null +++ b/rest/api/v2010/docs/CreateIncomingPhoneNumberLocalRequest.md @@ -0,0 +1,33 @@ +# CreateIncomingPhoneNumberLocalRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AddressSid** | **string** | The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. | [optional] +**ApiVersion** | **string** | The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. | [optional] +**BundleSid** | **string** | The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | [optional] +**EmergencyAddressSid** | **string** | The SID of the emergency address configuration to use for emergency calling from the new phone number. | [optional] +**EmergencyStatus** | **string** | The configuration status parameter that determines whether the new phone number is enabled for emergency calling. | [optional] +**FriendlyName** | **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. | [optional] +**IdentitySid** | **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. | [optional] +**PhoneNumber** | **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. | +**SmsApplicationSid** | **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. | [optional] +**SmsFallbackMethod** | **string** | The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | [optional] +**SmsFallbackUrl** | **string** | The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. | [optional] +**SmsMethod** | **string** | The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. | [optional] +**SmsUrl** | **string** | The URL we should call when the new phone number receives an incoming SMS message. | [optional] +**StatusCallback** | **string** | The URL we should call using the `status_callback_method` to send status information to your application. | [optional] +**StatusCallbackMethod** | **string** | The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | [optional] +**TrunkSid** | **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. | [optional] +**VoiceApplicationSid** | **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. | [optional] +**VoiceCallerIdLookup** | **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`. | [optional] +**VoiceFallbackMethod** | **string** | The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | [optional] +**VoiceFallbackUrl** | **string** | The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | [optional] +**VoiceMethod** | **string** | The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. | [optional] +**VoiceReceiveMode** | **string** | The configuration parameter for the new phone number to receive incoming voice calls or faxes. Can be: `fax` or `voice` and defaults to `voice`. | [optional] +**VoiceUrl** | **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. | [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/rest/api/v2010/docs/CreateIncomingPhoneNumberMobileRequest.md b/rest/api/v2010/docs/CreateIncomingPhoneNumberMobileRequest.md new file mode 100644 index 000000000..c12b33dde --- /dev/null +++ b/rest/api/v2010/docs/CreateIncomingPhoneNumberMobileRequest.md @@ -0,0 +1,33 @@ +# CreateIncomingPhoneNumberMobileRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AddressSid** | **string** | The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. | [optional] +**ApiVersion** | **string** | The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. | [optional] +**BundleSid** | **string** | The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | [optional] +**EmergencyAddressSid** | **string** | The SID of the emergency address configuration to use for emergency calling from the new phone number. | [optional] +**EmergencyStatus** | **string** | The configuration status parameter that determines whether the new phone number is enabled for emergency calling. | [optional] +**FriendlyName** | **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. | [optional] +**IdentitySid** | **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. | [optional] +**PhoneNumber** | **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. | +**SmsApplicationSid** | **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. | [optional] +**SmsFallbackMethod** | **string** | The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | [optional] +**SmsFallbackUrl** | **string** | The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. | [optional] +**SmsMethod** | **string** | The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. | [optional] +**SmsUrl** | **string** | The URL we should call when the new phone number receives an incoming SMS message. | [optional] +**StatusCallback** | **string** | The URL we should call using the `status_callback_method` to send status information to your application. | [optional] +**StatusCallbackMethod** | **string** | The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | [optional] +**TrunkSid** | **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. | [optional] +**VoiceApplicationSid** | **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. | [optional] +**VoiceCallerIdLookup** | **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`. | [optional] +**VoiceFallbackMethod** | **string** | The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | [optional] +**VoiceFallbackUrl** | **string** | The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | [optional] +**VoiceMethod** | **string** | The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. | [optional] +**VoiceReceiveMode** | **string** | The configuration parameter for the new phone number to receive incoming voice calls or faxes. Can be: `fax` or `voice` and defaults to `voice`. | [optional] +**VoiceUrl** | **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. | [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/rest/api/v2010/docs/CreateIncomingPhoneNumberRequest.md b/rest/api/v2010/docs/CreateIncomingPhoneNumberRequest.md new file mode 100644 index 000000000..c35367394 --- /dev/null +++ b/rest/api/v2010/docs/CreateIncomingPhoneNumberRequest.md @@ -0,0 +1,34 @@ +# CreateIncomingPhoneNumberRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AddressSid** | **string** | The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. | [optional] +**ApiVersion** | **string** | The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. | [optional] +**AreaCode** | **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). | [optional] +**BundleSid** | **string** | The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | [optional] +**EmergencyAddressSid** | **string** | The SID of the emergency address configuration to use for emergency calling from the new phone number. | [optional] +**EmergencyStatus** | **string** | The configuration status parameter that determines whether the new phone number is enabled for emergency calling. | [optional] +**FriendlyName** | **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. | [optional] +**IdentitySid** | **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. | [optional] +**PhoneNumber** | **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. | [optional] +**SmsApplicationSid** | **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. | [optional] +**SmsFallbackMethod** | **string** | The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | [optional] +**SmsFallbackUrl** | **string** | The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. | [optional] +**SmsMethod** | **string** | The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. | [optional] +**SmsUrl** | **string** | The URL we should call when the new phone number receives an incoming SMS message. | [optional] +**StatusCallback** | **string** | The URL we should call using the `status_callback_method` to send status information to your application. | [optional] +**StatusCallbackMethod** | **string** | The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | [optional] +**TrunkSid** | **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. | [optional] +**VoiceApplicationSid** | **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. | [optional] +**VoiceCallerIdLookup** | **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`. | [optional] +**VoiceFallbackMethod** | **string** | The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | [optional] +**VoiceFallbackUrl** | **string** | The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | [optional] +**VoiceMethod** | **string** | The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. | [optional] +**VoiceReceiveMode** | **string** | The configuration parameter for the new phone number to receive incoming voice calls or faxes. Can be: `fax` or `voice` and defaults to `voice`. | [optional] +**VoiceUrl** | **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. | [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/rest/api/v2010/docs/CreateIncomingPhoneNumberTollFreeRequest.md b/rest/api/v2010/docs/CreateIncomingPhoneNumberTollFreeRequest.md new file mode 100644 index 000000000..ceeb5905d --- /dev/null +++ b/rest/api/v2010/docs/CreateIncomingPhoneNumberTollFreeRequest.md @@ -0,0 +1,33 @@ +# CreateIncomingPhoneNumberTollFreeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AddressSid** | **string** | The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. | [optional] +**ApiVersion** | **string** | The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. | [optional] +**BundleSid** | **string** | The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | [optional] +**EmergencyAddressSid** | **string** | The SID of the emergency address configuration to use for emergency calling from the new phone number. | [optional] +**EmergencyStatus** | **string** | The configuration status parameter that determines whether the new phone number is enabled for emergency calling. | [optional] +**FriendlyName** | **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. | [optional] +**IdentitySid** | **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. | [optional] +**PhoneNumber** | **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. | +**SmsApplicationSid** | **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. | [optional] +**SmsFallbackMethod** | **string** | The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | [optional] +**SmsFallbackUrl** | **string** | The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. | [optional] +**SmsMethod** | **string** | The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. | [optional] +**SmsUrl** | **string** | The URL we should call when the new phone number receives an incoming SMS message. | [optional] +**StatusCallback** | **string** | The URL we should call using the `status_callback_method` to send status information to your application. | [optional] +**StatusCallbackMethod** | **string** | The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | [optional] +**TrunkSid** | **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. | [optional] +**VoiceApplicationSid** | **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. | [optional] +**VoiceCallerIdLookup** | **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`. | [optional] +**VoiceFallbackMethod** | **string** | The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | [optional] +**VoiceFallbackUrl** | **string** | The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | [optional] +**VoiceMethod** | **string** | The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. | [optional] +**VoiceReceiveMode** | **string** | The configuration parameter for the new phone number to receive incoming voice calls or faxes. Can be: `fax` or `voice` and defaults to `voice`. | [optional] +**VoiceUrl** | **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. | [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/rest/api/v2010/docs/CreateMessageFeedbackRequest.md b/rest/api/v2010/docs/CreateMessageFeedbackRequest.md new file mode 100644 index 000000000..70825ffaa --- /dev/null +++ b/rest/api/v2010/docs/CreateMessageFeedbackRequest.md @@ -0,0 +1,11 @@ +# CreateMessageFeedbackRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Outcome** | **string** | Whether the feedback has arrived. Can be: `unconfirmed` or `confirmed`. If `provide_feedback`=`true` in [the initial HTTP POST](https://www.twilio.com/docs/sms/api/message-resource#create-a-message-resource), the initial value of this property is `unconfirmed`. After the message arrives, update the value to `confirmed`. | [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/rest/api/v2010/docs/CreateMessageRequest.md b/rest/api/v2010/docs/CreateMessageRequest.md new file mode 100644 index 000000000..bb4772538 --- /dev/null +++ b/rest/api/v2010/docs/CreateMessageRequest.md @@ -0,0 +1,26 @@ +# CreateMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AddressRetention** | **string** | Determines if the address can be stored or obfuscated based on privacy settings | [optional] +**ApplicationSid** | **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. | [optional] +**Attempt** | **int32** | Total number of attempts made ( including this ) to send out the message regardless of the provider used | [optional] +**Body** | **string** | The text of the message you want to send. Can be up to 1,600 characters in length. | [optional] +**ContentRetention** | **string** | Determines if the message content can be stored or redacted based on privacy settings | [optional] +**ForceDelivery** | **bool** | Reserved | [optional] +**From** | **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. | [optional] +**MaxPrice** | **float32** | 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. | [optional] +**MediaUrl** | **[]string** | 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. | [optional] +**MessagingServiceSid** | **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. | [optional] +**PersistentAction** | **[]string** | Rich actions for Channels Messages. | [optional] +**ProvideFeedback** | **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. | [optional] +**SmartEncoded** | **bool** | Whether to detect Unicode characters that have a similar GSM-7 character and replace them. Can be: `true` or `false`. | [optional] +**StatusCallback** | **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. | [optional] +**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. | +**ValidityPeriod** | **int32** | 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. | [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/rest/api/v2010/docs/CreateNewKeyRequest.md b/rest/api/v2010/docs/CreateNewKeyRequest.md new file mode 100644 index 000000000..9d5e97866 --- /dev/null +++ b/rest/api/v2010/docs/CreateNewKeyRequest.md @@ -0,0 +1,11 @@ +# CreateNewKeyRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | [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/rest/api/v2010/docs/CreateNewSigningKeyRequest.md b/rest/api/v2010/docs/CreateNewSigningKeyRequest.md new file mode 100644 index 000000000..65dfebf62 --- /dev/null +++ b/rest/api/v2010/docs/CreateNewSigningKeyRequest.md @@ -0,0 +1,11 @@ +# CreateNewSigningKeyRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | [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/rest/api/v2010/docs/CreateParticipantRequest.md b/rest/api/v2010/docs/CreateParticipantRequest.md new file mode 100644 index 000000000..7366171ac --- /dev/null +++ b/rest/api/v2010/docs/CreateParticipantRequest.md @@ -0,0 +1,48 @@ +# CreateParticipantRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Beep** | **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`. | [optional] +**Byoc** | **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) | [optional] +**CallReason** | **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) | [optional] +**CallSidToCoach** | **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] +**CallerId** | **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. | [optional] +**Coaching** | **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] +**ConferenceRecord** | **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`. | [optional] +**ConferenceRecordingStatusCallback** | **string** | The URL we should call using the `conference_recording_status_callback_method` when the conference recording is available. | [optional] +**ConferenceRecordingStatusCallbackEvent** | **[]string** | The conference recording state changes that generate a call to `conference_recording_status_callback`. Can be: `in-progress`, `completed`, and `failed`. Separate multiple values with a space. The default value is `in-progress completed failed`. | [optional] +**ConferenceRecordingStatusCallbackMethod** | **string** | The HTTP method we should use to call `conference_recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | [optional] +**ConferenceStatusCallback** | **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. | [optional] +**ConferenceStatusCallbackEvent** | **[]string** | The conference state changes that should generate a call to `conference_status_callback`. Can be: `start`, `end`, `join`, `leave`, `mute`, `hold`, and `speaker`. Separate multiple values with a space. Defaults to `start end`. | [optional] +**ConferenceStatusCallbackMethod** | **string** | The HTTP method we should use to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | [optional] +**ConferenceTrim** | **string** | Whether to trim leading and trailing silence from your recorded conference audio files. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. | [optional] +**EarlyMedia** | **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`. | [optional] +**EndConferenceOnExit** | **bool** | Whether to end the conference when the participant leaves. Can be: `true` or `false` and defaults to `false`. | [optional] +**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. | +**JitterBufferSize** | **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`. | [optional] +**Label** | **string** | A label for this participant. If one is supplied, it may subsequently be used to fetch, update or delete the participant. | [optional] +**MaxParticipants** | **int32** | The maximum number of participants in the conference. Can be a positive integer from `2` to `250`. The default value is `250`. | [optional] +**Muted** | **bool** | Whether the agent is muted in the conference. Can be `true` or `false` and the default is `false`. | [optional] +**Record** | **bool** | Whether to record the participant and their conferences, including the time between conferences. Can be `true` or `false` and the default is `false`. | [optional] +**RecordingChannels** | **string** | The recording channels for the final recording. Can be: `mono` or `dual` and the default is `mono`. | [optional] +**RecordingStatusCallback** | **string** | The URL that we should call using the `recording_status_callback_method` when the recording status changes. | [optional] +**RecordingStatusCallbackEvent** | **[]string** | The recording state changes that should generate a call to `recording_status_callback`. Can be: `in-progress`, `completed`, and `failed`. Separate multiple values with a space. The default value is `in-progress completed failed`. | [optional] +**RecordingStatusCallbackMethod** | **string** | The HTTP method we should use when we call `recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | [optional] +**RecordingTrack** | **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. | [optional] +**Region** | **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`. | [optional] +**SipAuthPassword** | **string** | The SIP password for authentication. | [optional] +**SipAuthUsername** | **string** | The SIP username used for authentication. | [optional] +**StartConferenceOnEnter** | **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. | [optional] +**StatusCallback** | **string** | The URL we should call using the `status_callback_method` to send status information to your application. | [optional] +**StatusCallbackEvent** | **[]string** | 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`. | [optional] +**StatusCallbackMethod** | **string** | The HTTP method we should use to call `status_callback`. Can be: `GET` and `POST` and defaults to `POST`. | [optional] +**Timeout** | **int32** | 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. | [optional] +**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. | +**WaitMethod** | **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. | [optional] +**WaitUrl** | **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). | [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/rest/api/v2010/docs/CreatePaymentsRequest.md b/rest/api/v2010/docs/CreatePaymentsRequest.md new file mode 100644 index 000000000..1dd6e009f --- /dev/null +++ b/rest/api/v2010/docs/CreatePaymentsRequest.md @@ -0,0 +1,26 @@ +# CreatePaymentsRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BankAccountType** | **string** | Type of bank account if payment source is ACH. One of `consumer-checking`, `consumer-savings`, or `commercial-checking`. The default value is `consumer-checking`. | [optional] +**ChargeAmount** | **float32** | 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. | [optional] +**Currency** | **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. | [optional] +**Description** | **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. | [optional] +**IdempotencyKey** | **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. | +**Input** | **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. | [optional] +**MinPostalCodeLength** | **int32** | A positive integer that is used to validate the length of the `PostalCode` inputted by the user. User must enter this many digits. | [optional] +**Parameter** | [**map[string]interface{}**](.md) | A single level JSON string that is required when accepting certain information specific only to ACH payments. The information that has to be included here depends on the <Pay> Connector. [Read more](https://www.twilio.com/console/voice/pay-connectors). | [optional] +**PaymentConnector** | **string** | This is the unique name corresponding to the Payment Gateway Connector installed in the Twilio Add-ons. Learn more about [<Pay> Connectors](https://www.twilio.com/console/voice/pay-connectors). The default value is `Default`. | [optional] +**PaymentMethod** | **string** | Type of payment being captured. One of `credit-card` or `ach-debit`. The default value is `credit-card`. | [optional] +**PostalCode** | **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`. | [optional] +**SecurityCode** | **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`. | [optional] +**StatusCallback** | **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) | +**Timeout** | **int32** | The number of seconds that <Pay> 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`. | [optional] +**TokenType** | **string** | Indicates whether the payment method should be tokenized as a `one-time` or `reusable` token. The default value is `reusable`. Do not enter a charge amount when tokenizing. If a charge amount is entered, the payment method will be charged and not tokenized. | [optional] +**ValidCardTypes** | **string** | Credit card types separated by space that Pay should accept. The default value is `visa mastercard amex` | [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/rest/api/v2010/docs/CreateQueueRequest.md b/rest/api/v2010/docs/CreateQueueRequest.md new file mode 100644 index 000000000..6b0a47065 --- /dev/null +++ b/rest/api/v2010/docs/CreateQueueRequest.md @@ -0,0 +1,12 @@ +# CreateQueueRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | A descriptive string that you created to describe this resource. It can be up to 64 characters long. | +**MaxSize** | **int32** | The maximum number of calls allowed to be in the queue. The default is 100. 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/rest/api/v2010/docs/CreateSipAuthCallsCredentialListMappingRequest.md b/rest/api/v2010/docs/CreateSipAuthCallsCredentialListMappingRequest.md new file mode 100644 index 000000000..7cb84f64c --- /dev/null +++ b/rest/api/v2010/docs/CreateSipAuthCallsCredentialListMappingRequest.md @@ -0,0 +1,11 @@ +# CreateSipAuthCallsCredentialListMappingRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CredentialListSid** | **string** | The SID of the CredentialList resource to map to the SIP domain. | + +[[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/rest/api/v2010/docs/CreateSipAuthCallsIpAccessControlListMappingRequest.md b/rest/api/v2010/docs/CreateSipAuthCallsIpAccessControlListMappingRequest.md new file mode 100644 index 000000000..dfc94368c --- /dev/null +++ b/rest/api/v2010/docs/CreateSipAuthCallsIpAccessControlListMappingRequest.md @@ -0,0 +1,11 @@ +# CreateSipAuthCallsIpAccessControlListMappingRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IpAccessControlListSid** | **string** | The SID of the IpAccessControlList resource to map to the SIP domain. | + +[[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/rest/api/v2010/docs/CreateSipAuthRegistrationsCredentialListMappingRequest.md b/rest/api/v2010/docs/CreateSipAuthRegistrationsCredentialListMappingRequest.md new file mode 100644 index 000000000..d1ab89db9 --- /dev/null +++ b/rest/api/v2010/docs/CreateSipAuthRegistrationsCredentialListMappingRequest.md @@ -0,0 +1,11 @@ +# CreateSipAuthRegistrationsCredentialListMappingRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CredentialListSid** | **string** | The SID of the CredentialList resource to map to the SIP domain. | + +[[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/rest/api/v2010/docs/CreateSipCredentialListMappingRequest.md b/rest/api/v2010/docs/CreateSipCredentialListMappingRequest.md new file mode 100644 index 000000000..7f6c5c229 --- /dev/null +++ b/rest/api/v2010/docs/CreateSipCredentialListMappingRequest.md @@ -0,0 +1,11 @@ +# CreateSipCredentialListMappingRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CredentialListSid** | **string** | A 34 character string that uniquely identifies the CredentialList resource to map to the SIP domain. | + +[[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/rest/api/v2010/docs/CreateSipCredentialListRequest.md b/rest/api/v2010/docs/CreateSipCredentialListRequest.md new file mode 100644 index 000000000..46d5d85a3 --- /dev/null +++ b/rest/api/v2010/docs/CreateSipCredentialListRequest.md @@ -0,0 +1,11 @@ +# CreateSipCredentialListRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | A human readable descriptive text that describes the CredentialList, up to 64 characters long. | + +[[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/rest/api/v2010/docs/CreateSipCredentialRequest.md b/rest/api/v2010/docs/CreateSipCredentialRequest.md new file mode 100644 index 000000000..f8f6d9688 --- /dev/null +++ b/rest/api/v2010/docs/CreateSipCredentialRequest.md @@ -0,0 +1,12 @@ +# CreateSipCredentialRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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`) | +**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. | + +[[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/rest/api/v2010/docs/CreateSipDomainRequest.md b/rest/api/v2010/docs/CreateSipDomainRequest.md new file mode 100644 index 000000000..5a244c83d --- /dev/null +++ b/rest/api/v2010/docs/CreateSipDomainRequest.md @@ -0,0 +1,23 @@ +# CreateSipDomainRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ByocTrunkSid** | **string** | The SID of the BYOC Trunk(Bring Your Own Carrier) resource that the Sip Domain will be associated with. | [optional] +**DomainName** | **string** | The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and \"-\". | +**EmergencyCallerSid** | **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] +**EmergencyCallingEnabled** | **bool** | Whether emergency calling is enabled for the domain. If enabled, allows emergency calls on the domain from phone numbers with validated addresses. | [optional] +**FriendlyName** | **string** | A descriptive string that you created to describe the resource. It can be up to 64 characters long. | [optional] +**Secure** | **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] +**SipRegistration** | **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. | [optional] +**VoiceFallbackMethod** | **string** | The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. | [optional] +**VoiceFallbackUrl** | **string** | The URL that we should call when an error occurs while retrieving or executing the TwiML from `voice_url`. | [optional] +**VoiceMethod** | **string** | The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`. | [optional] +**VoiceStatusCallbackMethod** | **string** | The HTTP method we should use to call `voice_status_callback_url`. Can be: `GET` or `POST`. | [optional] +**VoiceStatusCallbackUrl** | **string** | The URL that we should call to pass status parameters (such as call ended) to your application. | [optional] +**VoiceUrl** | **string** | The URL we should when the domain receives a 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/rest/api/v2010/docs/CreateSipIpAccessControlListMappingRequest.md b/rest/api/v2010/docs/CreateSipIpAccessControlListMappingRequest.md new file mode 100644 index 000000000..c5b1bf32a --- /dev/null +++ b/rest/api/v2010/docs/CreateSipIpAccessControlListMappingRequest.md @@ -0,0 +1,11 @@ +# CreateSipIpAccessControlListMappingRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IpAccessControlListSid** | **string** | The unique id of the IP access control list to map to the SIP domain. | + +[[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/rest/api/v2010/docs/CreateSipIpAccessControlListRequest.md b/rest/api/v2010/docs/CreateSipIpAccessControlListRequest.md new file mode 100644 index 000000000..90f318df1 --- /dev/null +++ b/rest/api/v2010/docs/CreateSipIpAccessControlListRequest.md @@ -0,0 +1,11 @@ +# CreateSipIpAccessControlListRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | A human readable descriptive text that describes the IpAccessControlList, up to 64 characters long. | + +[[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/rest/api/v2010/docs/CreateSipIpAddressRequest.md b/rest/api/v2010/docs/CreateSipIpAddressRequest.md new file mode 100644 index 000000000..e8de7eb95 --- /dev/null +++ b/rest/api/v2010/docs/CreateSipIpAddressRequest.md @@ -0,0 +1,13 @@ +# CreateSipIpAddressRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CidrPrefixLength** | **int32** | 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] +**FriendlyName** | **string** | A human readable descriptive text for this resource, up to 64 characters long. | +**IpAddress** | **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. | + +[[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/rest/api/v2010/docs/CreateTokenRequest.md b/rest/api/v2010/docs/CreateTokenRequest.md new file mode 100644 index 000000000..a66b033f5 --- /dev/null +++ b/rest/api/v2010/docs/CreateTokenRequest.md @@ -0,0 +1,11 @@ +# CreateTokenRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Ttl** | **int32** | The duration in seconds for which the generated credentials are valid. The default value is 86400 (24 hours). | [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/rest/api/v2010/docs/CreateUsageTriggerRequest.md b/rest/api/v2010/docs/CreateUsageTriggerRequest.md new file mode 100644 index 000000000..8381557e3 --- /dev/null +++ b/rest/api/v2010/docs/CreateUsageTriggerRequest.md @@ -0,0 +1,17 @@ +# CreateUsageTriggerRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CallbackMethod** | **string** | The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is `POST`. | [optional] +**CallbackUrl** | **string** | The URL we should call using `callback_method` when the trigger fires. | +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | [optional] +**Recurring** | **string** | The frequency of a recurring UsageTrigger. Can be: `daily`, `monthly`, or `yearly` for recurring triggers or empty for non-recurring triggers. A trigger will only fire once during each period. Recurring times are in GMT. | [optional] +**TriggerBy** | **string** | The field in the [UsageRecord](https://www.twilio.com/docs/usage/api/usage-record) resource that should fire the trigger. Can be: `count`, `usage`, or `price` as described in the [UsageRecords documentation](https://www.twilio.com/docs/usage/api/usage-record#usage-count-price). The default is `usage`. | [optional] +**TriggerValue** | **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`. | +**UsageCategory** | **string** | The usage category that the trigger should watch. Use one of the supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) for this value. | + +[[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/rest/api/v2010/docs/CreateValidationRequestRequest.md b/rest/api/v2010/docs/CreateValidationRequestRequest.md new file mode 100644 index 000000000..7b7144fa6 --- /dev/null +++ b/rest/api/v2010/docs/CreateValidationRequestRequest.md @@ -0,0 +1,16 @@ +# CreateValidationRequestRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CallDelay** | **int32** | The number of seconds to delay before initiating the verification call. Can be an integer between `0` and `60`, inclusive. The default is `0`. | [optional] +**Extension** | **string** | The digits to dial after connecting the verification call. | [optional] +**FriendlyName** | **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. | [optional] +**PhoneNumber** | **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. | +**StatusCallback** | **string** | The URL we should call using the `status_callback_method` to send status information about the verification process to your application. | [optional] +**StatusCallbackMethod** | **string** | The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST`, and the default is `POST`. | [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/rest/api/v2010/docs/DefaultApi.md b/rest/api/v2010/docs/DefaultApi.md new file mode 100644 index 000000000..bdf139264 --- /dev/null +++ b/rest/api/v2010/docs/DefaultApi.md @@ -0,0 +1,8753 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateAccount**](DefaultApi.md#CreateAccount) | **Post** /2010-04-01/Accounts.json | +[**CreateAddress**](DefaultApi.md#CreateAddress) | **Post** /2010-04-01/Accounts/{AccountSid}/Addresses.json | +[**CreateApplication**](DefaultApi.md#CreateApplication) | **Post** /2010-04-01/Accounts/{AccountSid}/Applications.json | +[**CreateCall**](DefaultApi.md#CreateCall) | **Post** /2010-04-01/Accounts/{AccountSid}/Calls.json | +[**CreateCallFeedbackSummary**](DefaultApi.md#CreateCallFeedbackSummary) | **Post** /2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary.json | +[**CreateCallRecording**](DefaultApi.md#CreateCallRecording) | **Post** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json | +[**CreateIncomingPhoneNumber**](DefaultApi.md#CreateIncomingPhoneNumber) | **Post** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json | +[**CreateIncomingPhoneNumberAssignedAddOn**](DefaultApi.md#CreateIncomingPhoneNumberAssignedAddOn) | **Post** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json | +[**CreateIncomingPhoneNumberLocal**](DefaultApi.md#CreateIncomingPhoneNumberLocal) | **Post** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json | +[**CreateIncomingPhoneNumberMobile**](DefaultApi.md#CreateIncomingPhoneNumberMobile) | **Post** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json | +[**CreateIncomingPhoneNumberTollFree**](DefaultApi.md#CreateIncomingPhoneNumberTollFree) | **Post** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json | +[**CreateMessage**](DefaultApi.md#CreateMessage) | **Post** /2010-04-01/Accounts/{AccountSid}/Messages.json | +[**CreateMessageFeedback**](DefaultApi.md#CreateMessageFeedback) | **Post** /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Feedback.json | +[**CreateNewKey**](DefaultApi.md#CreateNewKey) | **Post** /2010-04-01/Accounts/{AccountSid}/Keys.json | +[**CreateNewSigningKey**](DefaultApi.md#CreateNewSigningKey) | **Post** /2010-04-01/Accounts/{AccountSid}/SigningKeys.json | +[**CreateParticipant**](DefaultApi.md#CreateParticipant) | **Post** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json | +[**CreatePayments**](DefaultApi.md#CreatePayments) | **Post** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments.json | +[**CreateQueue**](DefaultApi.md#CreateQueue) | **Post** /2010-04-01/Accounts/{AccountSid}/Queues.json | +[**CreateSipAuthCallsCredentialListMapping**](DefaultApi.md#CreateSipAuthCallsCredentialListMapping) | **Post** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings.json | +[**CreateSipAuthCallsIpAccessControlListMapping**](DefaultApi.md#CreateSipAuthCallsIpAccessControlListMapping) | **Post** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings.json | +[**CreateSipAuthRegistrationsCredentialListMapping**](DefaultApi.md#CreateSipAuthRegistrationsCredentialListMapping) | **Post** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings.json | +[**CreateSipCredential**](DefaultApi.md#CreateSipCredential) | **Post** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json | +[**CreateSipCredentialList**](DefaultApi.md#CreateSipCredentialList) | **Post** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists.json | +[**CreateSipCredentialListMapping**](DefaultApi.md#CreateSipCredentialListMapping) | **Post** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings.json | +[**CreateSipDomain**](DefaultApi.md#CreateSipDomain) | **Post** /2010-04-01/Accounts/{AccountSid}/SIP/Domains.json | +[**CreateSipIpAccessControlList**](DefaultApi.md#CreateSipIpAccessControlList) | **Post** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists.json | +[**CreateSipIpAccessControlListMapping**](DefaultApi.md#CreateSipIpAccessControlListMapping) | **Post** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings.json | +[**CreateSipIpAddress**](DefaultApi.md#CreateSipIpAddress) | **Post** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses.json | +[**CreateToken**](DefaultApi.md#CreateToken) | **Post** /2010-04-01/Accounts/{AccountSid}/Tokens.json | +[**CreateUsageTrigger**](DefaultApi.md#CreateUsageTrigger) | **Post** /2010-04-01/Accounts/{AccountSid}/Usage/Triggers.json | +[**CreateValidationRequest**](DefaultApi.md#CreateValidationRequest) | **Post** /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json | +[**DeleteAddress**](DefaultApi.md#DeleteAddress) | **Delete** /2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json | +[**DeleteApplication**](DefaultApi.md#DeleteApplication) | **Delete** /2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json | +[**DeleteCall**](DefaultApi.md#DeleteCall) | **Delete** /2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json | +[**DeleteCallFeedbackSummary**](DefaultApi.md#DeleteCallFeedbackSummary) | **Delete** /2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary/{Sid}.json | +[**DeleteCallRecording**](DefaultApi.md#DeleteCallRecording) | **Delete** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json | +[**DeleteConferenceRecording**](DefaultApi.md#DeleteConferenceRecording) | **Delete** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json | +[**DeleteConnectApp**](DefaultApi.md#DeleteConnectApp) | **Delete** /2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json | +[**DeleteIncomingPhoneNumber**](DefaultApi.md#DeleteIncomingPhoneNumber) | **Delete** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json | +[**DeleteIncomingPhoneNumberAssignedAddOn**](DefaultApi.md#DeleteIncomingPhoneNumberAssignedAddOn) | **Delete** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{Sid}.json | +[**DeleteKey**](DefaultApi.md#DeleteKey) | **Delete** /2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json | +[**DeleteMedia**](DefaultApi.md#DeleteMedia) | **Delete** /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json | +[**DeleteMessage**](DefaultApi.md#DeleteMessage) | **Delete** /2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json | +[**DeleteOutgoingCallerId**](DefaultApi.md#DeleteOutgoingCallerId) | **Delete** /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json | +[**DeleteParticipant**](DefaultApi.md#DeleteParticipant) | **Delete** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json | +[**DeleteQueue**](DefaultApi.md#DeleteQueue) | **Delete** /2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json | +[**DeleteRecording**](DefaultApi.md#DeleteRecording) | **Delete** /2010-04-01/Accounts/{AccountSid}/Recordings/{Sid}.json | +[**DeleteRecordingAddOnResult**](DefaultApi.md#DeleteRecordingAddOnResult) | **Delete** /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{Sid}.json | +[**DeleteRecordingAddOnResultPayload**](DefaultApi.md#DeleteRecordingAddOnResultPayload) | **Delete** /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{Sid}.json | +[**DeleteRecordingTranscription**](DefaultApi.md#DeleteRecordingTranscription) | **Delete** /2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json | +[**DeleteSigningKey**](DefaultApi.md#DeleteSigningKey) | **Delete** /2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json | +[**DeleteSipAuthCallsCredentialListMapping**](DefaultApi.md#DeleteSipAuthCallsCredentialListMapping) | **Delete** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings/{Sid}.json | +[**DeleteSipAuthCallsIpAccessControlListMapping**](DefaultApi.md#DeleteSipAuthCallsIpAccessControlListMapping) | **Delete** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings/{Sid}.json | +[**DeleteSipAuthRegistrationsCredentialListMapping**](DefaultApi.md#DeleteSipAuthRegistrationsCredentialListMapping) | **Delete** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings/{Sid}.json | +[**DeleteSipCredential**](DefaultApi.md#DeleteSipCredential) | **Delete** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json | +[**DeleteSipCredentialList**](DefaultApi.md#DeleteSipCredentialList) | **Delete** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json | +[**DeleteSipCredentialListMapping**](DefaultApi.md#DeleteSipCredentialListMapping) | **Delete** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings/{Sid}.json | +[**DeleteSipDomain**](DefaultApi.md#DeleteSipDomain) | **Delete** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json | +[**DeleteSipIpAccessControlList**](DefaultApi.md#DeleteSipIpAccessControlList) | **Delete** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json | +[**DeleteSipIpAccessControlListMapping**](DefaultApi.md#DeleteSipIpAccessControlListMapping) | **Delete** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings/{Sid}.json | +[**DeleteSipIpAddress**](DefaultApi.md#DeleteSipIpAddress) | **Delete** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json | +[**DeleteTranscription**](DefaultApi.md#DeleteTranscription) | **Delete** /2010-04-01/Accounts/{AccountSid}/Transcriptions/{Sid}.json | +[**DeleteUsageTrigger**](DefaultApi.md#DeleteUsageTrigger) | **Delete** /2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json | +[**FetchAccount**](DefaultApi.md#FetchAccount) | **Get** /2010-04-01/Accounts/{Sid}.json | +[**FetchAddress**](DefaultApi.md#FetchAddress) | **Get** /2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json | +[**FetchApplication**](DefaultApi.md#FetchApplication) | **Get** /2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json | +[**FetchAuthorizedConnectApp**](DefaultApi.md#FetchAuthorizedConnectApp) | **Get** /2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps/{ConnectAppSid}.json | +[**FetchAvailablePhoneNumberCountry**](DefaultApi.md#FetchAvailablePhoneNumberCountry) | **Get** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}.json | +[**FetchBalance**](DefaultApi.md#FetchBalance) | **Get** /2010-04-01/Accounts/{AccountSid}/Balance.json | +[**FetchCall**](DefaultApi.md#FetchCall) | **Get** /2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json | +[**FetchCallFeedback**](DefaultApi.md#FetchCallFeedback) | **Get** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Feedback.json | +[**FetchCallFeedbackSummary**](DefaultApi.md#FetchCallFeedbackSummary) | **Get** /2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary/{Sid}.json | +[**FetchCallNotification**](DefaultApi.md#FetchCallNotification) | **Get** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications/{Sid}.json | +[**FetchCallRecording**](DefaultApi.md#FetchCallRecording) | **Get** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json | +[**FetchConference**](DefaultApi.md#FetchConference) | **Get** /2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json | +[**FetchConferenceRecording**](DefaultApi.md#FetchConferenceRecording) | **Get** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json | +[**FetchConnectApp**](DefaultApi.md#FetchConnectApp) | **Get** /2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json | +[**FetchIncomingPhoneNumber**](DefaultApi.md#FetchIncomingPhoneNumber) | **Get** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json | +[**FetchIncomingPhoneNumberAssignedAddOn**](DefaultApi.md#FetchIncomingPhoneNumberAssignedAddOn) | **Get** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{Sid}.json | +[**FetchIncomingPhoneNumberAssignedAddOnExtension**](DefaultApi.md#FetchIncomingPhoneNumberAssignedAddOnExtension) | **Get** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions/{Sid}.json | +[**FetchKey**](DefaultApi.md#FetchKey) | **Get** /2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json | +[**FetchMedia**](DefaultApi.md#FetchMedia) | **Get** /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json | +[**FetchMember**](DefaultApi.md#FetchMember) | **Get** /2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json | +[**FetchMessage**](DefaultApi.md#FetchMessage) | **Get** /2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json | +[**FetchNotification**](DefaultApi.md#FetchNotification) | **Get** /2010-04-01/Accounts/{AccountSid}/Notifications/{Sid}.json | +[**FetchOutgoingCallerId**](DefaultApi.md#FetchOutgoingCallerId) | **Get** /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json | +[**FetchParticipant**](DefaultApi.md#FetchParticipant) | **Get** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json | +[**FetchQueue**](DefaultApi.md#FetchQueue) | **Get** /2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json | +[**FetchRecording**](DefaultApi.md#FetchRecording) | **Get** /2010-04-01/Accounts/{AccountSid}/Recordings/{Sid}.json | +[**FetchRecordingAddOnResult**](DefaultApi.md#FetchRecordingAddOnResult) | **Get** /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{Sid}.json | +[**FetchRecordingAddOnResultPayload**](DefaultApi.md#FetchRecordingAddOnResultPayload) | **Get** /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{Sid}.json | +[**FetchRecordingTranscription**](DefaultApi.md#FetchRecordingTranscription) | **Get** /2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json | +[**FetchShortCode**](DefaultApi.md#FetchShortCode) | **Get** /2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes/{Sid}.json | +[**FetchSigningKey**](DefaultApi.md#FetchSigningKey) | **Get** /2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json | +[**FetchSipAuthCallsCredentialListMapping**](DefaultApi.md#FetchSipAuthCallsCredentialListMapping) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings/{Sid}.json | +[**FetchSipAuthCallsIpAccessControlListMapping**](DefaultApi.md#FetchSipAuthCallsIpAccessControlListMapping) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings/{Sid}.json | +[**FetchSipAuthRegistrationsCredentialListMapping**](DefaultApi.md#FetchSipAuthRegistrationsCredentialListMapping) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings/{Sid}.json | +[**FetchSipCredential**](DefaultApi.md#FetchSipCredential) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json | +[**FetchSipCredentialList**](DefaultApi.md#FetchSipCredentialList) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json | +[**FetchSipCredentialListMapping**](DefaultApi.md#FetchSipCredentialListMapping) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings/{Sid}.json | +[**FetchSipDomain**](DefaultApi.md#FetchSipDomain) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json | +[**FetchSipIpAccessControlList**](DefaultApi.md#FetchSipIpAccessControlList) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json | +[**FetchSipIpAccessControlListMapping**](DefaultApi.md#FetchSipIpAccessControlListMapping) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings/{Sid}.json | +[**FetchSipIpAddress**](DefaultApi.md#FetchSipIpAddress) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json | +[**FetchTranscription**](DefaultApi.md#FetchTranscription) | **Get** /2010-04-01/Accounts/{AccountSid}/Transcriptions/{Sid}.json | +[**FetchUsageTrigger**](DefaultApi.md#FetchUsageTrigger) | **Get** /2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json | +[**ListAccount**](DefaultApi.md#ListAccount) | **Get** /2010-04-01/Accounts.json | +[**ListAddress**](DefaultApi.md#ListAddress) | **Get** /2010-04-01/Accounts/{AccountSid}/Addresses.json | +[**ListApplication**](DefaultApi.md#ListApplication) | **Get** /2010-04-01/Accounts/{AccountSid}/Applications.json | +[**ListAuthorizedConnectApp**](DefaultApi.md#ListAuthorizedConnectApp) | **Get** /2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps.json | +[**ListAvailablePhoneNumberCountry**](DefaultApi.md#ListAvailablePhoneNumberCountry) | **Get** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers.json | +[**ListAvailablePhoneNumberLocal**](DefaultApi.md#ListAvailablePhoneNumberLocal) | **Get** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Local.json | +[**ListAvailablePhoneNumberMachineToMachine**](DefaultApi.md#ListAvailablePhoneNumberMachineToMachine) | **Get** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/MachineToMachine.json | +[**ListAvailablePhoneNumberMobile**](DefaultApi.md#ListAvailablePhoneNumberMobile) | **Get** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Mobile.json | +[**ListAvailablePhoneNumberNational**](DefaultApi.md#ListAvailablePhoneNumberNational) | **Get** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/National.json | +[**ListAvailablePhoneNumberSharedCost**](DefaultApi.md#ListAvailablePhoneNumberSharedCost) | **Get** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/SharedCost.json | +[**ListAvailablePhoneNumberTollFree**](DefaultApi.md#ListAvailablePhoneNumberTollFree) | **Get** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/TollFree.json | +[**ListAvailablePhoneNumberVoip**](DefaultApi.md#ListAvailablePhoneNumberVoip) | **Get** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Voip.json | +[**ListCall**](DefaultApi.md#ListCall) | **Get** /2010-04-01/Accounts/{AccountSid}/Calls.json | +[**ListCallEvent**](DefaultApi.md#ListCallEvent) | **Get** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Events.json | +[**ListCallNotification**](DefaultApi.md#ListCallNotification) | **Get** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications.json | +[**ListCallRecording**](DefaultApi.md#ListCallRecording) | **Get** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json | +[**ListConference**](DefaultApi.md#ListConference) | **Get** /2010-04-01/Accounts/{AccountSid}/Conferences.json | +[**ListConferenceRecording**](DefaultApi.md#ListConferenceRecording) | **Get** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings.json | +[**ListConnectApp**](DefaultApi.md#ListConnectApp) | **Get** /2010-04-01/Accounts/{AccountSid}/ConnectApps.json | +[**ListDependentPhoneNumber**](DefaultApi.md#ListDependentPhoneNumber) | **Get** /2010-04-01/Accounts/{AccountSid}/Addresses/{AddressSid}/DependentPhoneNumbers.json | +[**ListIncomingPhoneNumber**](DefaultApi.md#ListIncomingPhoneNumber) | **Get** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json | +[**ListIncomingPhoneNumberAssignedAddOn**](DefaultApi.md#ListIncomingPhoneNumberAssignedAddOn) | **Get** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json | +[**ListIncomingPhoneNumberAssignedAddOnExtension**](DefaultApi.md#ListIncomingPhoneNumberAssignedAddOnExtension) | **Get** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions.json | +[**ListIncomingPhoneNumberLocal**](DefaultApi.md#ListIncomingPhoneNumberLocal) | **Get** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json | +[**ListIncomingPhoneNumberMobile**](DefaultApi.md#ListIncomingPhoneNumberMobile) | **Get** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json | +[**ListIncomingPhoneNumberTollFree**](DefaultApi.md#ListIncomingPhoneNumberTollFree) | **Get** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json | +[**ListKey**](DefaultApi.md#ListKey) | **Get** /2010-04-01/Accounts/{AccountSid}/Keys.json | +[**ListMedia**](DefaultApi.md#ListMedia) | **Get** /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media.json | +[**ListMember**](DefaultApi.md#ListMember) | **Get** /2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members.json | +[**ListMessage**](DefaultApi.md#ListMessage) | **Get** /2010-04-01/Accounts/{AccountSid}/Messages.json | +[**ListNotification**](DefaultApi.md#ListNotification) | **Get** /2010-04-01/Accounts/{AccountSid}/Notifications.json | +[**ListOutgoingCallerId**](DefaultApi.md#ListOutgoingCallerId) | **Get** /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json | +[**ListParticipant**](DefaultApi.md#ListParticipant) | **Get** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json | +[**ListQueue**](DefaultApi.md#ListQueue) | **Get** /2010-04-01/Accounts/{AccountSid}/Queues.json | +[**ListRecording**](DefaultApi.md#ListRecording) | **Get** /2010-04-01/Accounts/{AccountSid}/Recordings.json | +[**ListRecordingAddOnResult**](DefaultApi.md#ListRecordingAddOnResult) | **Get** /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults.json | +[**ListRecordingAddOnResultPayload**](DefaultApi.md#ListRecordingAddOnResultPayload) | **Get** /2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads.json | +[**ListRecordingTranscription**](DefaultApi.md#ListRecordingTranscription) | **Get** /2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions.json | +[**ListShortCode**](DefaultApi.md#ListShortCode) | **Get** /2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes.json | +[**ListSigningKey**](DefaultApi.md#ListSigningKey) | **Get** /2010-04-01/Accounts/{AccountSid}/SigningKeys.json | +[**ListSipAuthCallsCredentialListMapping**](DefaultApi.md#ListSipAuthCallsCredentialListMapping) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings.json | +[**ListSipAuthCallsIpAccessControlListMapping**](DefaultApi.md#ListSipAuthCallsIpAccessControlListMapping) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings.json | +[**ListSipAuthRegistrationsCredentialListMapping**](DefaultApi.md#ListSipAuthRegistrationsCredentialListMapping) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings.json | +[**ListSipCredential**](DefaultApi.md#ListSipCredential) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json | +[**ListSipCredentialList**](DefaultApi.md#ListSipCredentialList) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists.json | +[**ListSipCredentialListMapping**](DefaultApi.md#ListSipCredentialListMapping) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings.json | +[**ListSipDomain**](DefaultApi.md#ListSipDomain) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/Domains.json | +[**ListSipIpAccessControlList**](DefaultApi.md#ListSipIpAccessControlList) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists.json | +[**ListSipIpAccessControlListMapping**](DefaultApi.md#ListSipIpAccessControlListMapping) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings.json | +[**ListSipIpAddress**](DefaultApi.md#ListSipIpAddress) | **Get** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses.json | +[**ListTranscription**](DefaultApi.md#ListTranscription) | **Get** /2010-04-01/Accounts/{AccountSid}/Transcriptions.json | +[**ListUsageRecord**](DefaultApi.md#ListUsageRecord) | **Get** /2010-04-01/Accounts/{AccountSid}/Usage/Records.json | +[**ListUsageRecordAllTime**](DefaultApi.md#ListUsageRecordAllTime) | **Get** /2010-04-01/Accounts/{AccountSid}/Usage/Records/AllTime.json | +[**ListUsageRecordDaily**](DefaultApi.md#ListUsageRecordDaily) | **Get** /2010-04-01/Accounts/{AccountSid}/Usage/Records/Daily.json | +[**ListUsageRecordLastMonth**](DefaultApi.md#ListUsageRecordLastMonth) | **Get** /2010-04-01/Accounts/{AccountSid}/Usage/Records/LastMonth.json | +[**ListUsageRecordMonthly**](DefaultApi.md#ListUsageRecordMonthly) | **Get** /2010-04-01/Accounts/{AccountSid}/Usage/Records/Monthly.json | +[**ListUsageRecordThisMonth**](DefaultApi.md#ListUsageRecordThisMonth) | **Get** /2010-04-01/Accounts/{AccountSid}/Usage/Records/ThisMonth.json | +[**ListUsageRecordToday**](DefaultApi.md#ListUsageRecordToday) | **Get** /2010-04-01/Accounts/{AccountSid}/Usage/Records/Today.json | +[**ListUsageRecordYearly**](DefaultApi.md#ListUsageRecordYearly) | **Get** /2010-04-01/Accounts/{AccountSid}/Usage/Records/Yearly.json | +[**ListUsageRecordYesterday**](DefaultApi.md#ListUsageRecordYesterday) | **Get** /2010-04-01/Accounts/{AccountSid}/Usage/Records/Yesterday.json | +[**ListUsageTrigger**](DefaultApi.md#ListUsageTrigger) | **Get** /2010-04-01/Accounts/{AccountSid}/Usage/Triggers.json | +[**UpdateAccount**](DefaultApi.md#UpdateAccount) | **Post** /2010-04-01/Accounts/{Sid}.json | +[**UpdateAddress**](DefaultApi.md#UpdateAddress) | **Post** /2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json | +[**UpdateApplication**](DefaultApi.md#UpdateApplication) | **Post** /2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json | +[**UpdateCall**](DefaultApi.md#UpdateCall) | **Post** /2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json | +[**UpdateCallFeedback**](DefaultApi.md#UpdateCallFeedback) | **Post** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Feedback.json | +[**UpdateCallRecording**](DefaultApi.md#UpdateCallRecording) | **Post** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json | +[**UpdateConference**](DefaultApi.md#UpdateConference) | **Post** /2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json | +[**UpdateConferenceRecording**](DefaultApi.md#UpdateConferenceRecording) | **Post** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json | +[**UpdateConnectApp**](DefaultApi.md#UpdateConnectApp) | **Post** /2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json | +[**UpdateIncomingPhoneNumber**](DefaultApi.md#UpdateIncomingPhoneNumber) | **Post** /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json | +[**UpdateKey**](DefaultApi.md#UpdateKey) | **Post** /2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json | +[**UpdateMember**](DefaultApi.md#UpdateMember) | **Post** /2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json | +[**UpdateMessage**](DefaultApi.md#UpdateMessage) | **Post** /2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json | +[**UpdateOutgoingCallerId**](DefaultApi.md#UpdateOutgoingCallerId) | **Post** /2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json | +[**UpdateParticipant**](DefaultApi.md#UpdateParticipant) | **Post** /2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json | +[**UpdatePayments**](DefaultApi.md#UpdatePayments) | **Post** /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments/{Sid}.json | +[**UpdateQueue**](DefaultApi.md#UpdateQueue) | **Post** /2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json | +[**UpdateShortCode**](DefaultApi.md#UpdateShortCode) | **Post** /2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes/{Sid}.json | +[**UpdateSigningKey**](DefaultApi.md#UpdateSigningKey) | **Post** /2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json | +[**UpdateSipCredential**](DefaultApi.md#UpdateSipCredential) | **Post** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json | +[**UpdateSipCredentialList**](DefaultApi.md#UpdateSipCredentialList) | **Post** /2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json | +[**UpdateSipDomain**](DefaultApi.md#UpdateSipDomain) | **Post** /2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json | +[**UpdateSipIpAccessControlList**](DefaultApi.md#UpdateSipIpAccessControlList) | **Post** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json | +[**UpdateSipIpAddress**](DefaultApi.md#UpdateSipIpAddress) | **Post** /2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json | +[**UpdateUsageTrigger**](DefaultApi.md#UpdateUsageTrigger) | **Post** /2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json | + + + +## CreateAccount + +> ApiV2010Account CreateAccount(ctx, optional) + + + +Create a new Twilio Subaccount from the account making the request + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateAccountOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateAccountOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **friendlyName** | **optional.String**| A human readable description of the account to create, defaults to `SubAccount Created at {YYYY-MM-DD HH:MM meridian}` | + +### Return type + +[**ApiV2010Account**](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) + + +## CreateAddress + +> ApiV2010AccountAddress CreateAddress(ctx, accountSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will be responsible for the new Address resource. | + **optional** | ***CreateAddressOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateAddressOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **autoCorrectAddress** | **optional.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. | + **city** | **optional.String**| The city of the new address. | + **customerName** | **optional.String**| The name to associate with the new address. | + **emergencyEnabled** | **optional.Bool**| Whether to enable emergency calling on the new address. Can be: `true` or `false`. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the new address. It can be up to 64 characters long. | + **isoCountry** | **optional.String**| The ISO country code of the new address. | + **postalCode** | **optional.String**| The postal code of the new address. | + **region** | **optional.String**| The state or region of the new address. | + **street** | **optional.String**| The number and street address of the new address. | + +### Return type + +[**ApiV2010AccountAddress**](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) + + +## CreateApplication + +> ApiV2010AccountApplication CreateApplication(ctx, accountSid, optional) + + + +Create a new application within your account + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | + **optional** | ***CreateApplicationOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateApplicationOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **apiVersion** | **optional.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. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the new application. It can be up to 64 characters long. | + **messageStatusCallback** | **optional.String**| The URL we should call using a POST method to send message status information to your application. | + **smsFallbackMethod** | **optional.String**| The HTTP method we should use to call `sms_fallback_url`. Can be: `GET` or `POST`. | + **smsFallbackUrl** | **optional.String**| The URL that we should call when an error occurs while retrieving or executing the TwiML from `sms_url`. | + **smsMethod** | **optional.String**| The HTTP method we should use to call `sms_url`. Can be: `GET` or `POST`. | + **smsStatusCallback** | **optional.String**| The URL we should call using a POST method to send status information about SMS messages sent by the application. | + **smsUrl** | **optional.String**| The URL we should call when the phone number receives an incoming SMS message. | + **statusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application. | + **statusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST`. | + **voiceCallerIdLookup** | **optional.Bool**| Whether we should look up the caller's caller-ID name from the CNAM database (additional charges apply). Can be: `true` or `false`. | + **voiceFallbackMethod** | **optional.String**| The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. | + **voiceFallbackUrl** | **optional.String**| The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | + **voiceMethod** | **optional.String**| The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`. | + **voiceUrl** | **optional.String**| The URL we should call when the phone number assigned to this application receives a call. | + +### Return type + +[**ApiV2010AccountApplication**](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) + + +## CreateCall + +> ApiV2010AccountCall CreateCall(ctx, accountSid, optional) + + + +Create a new outgoing call to phones, SIP-enabled endpoints or Twilio Client connections + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | + **optional** | ***CreateCallOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateCallOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **applicationSid** | **optional.String**| The SID of the Application resource that will handle the call, if the call will be handled by an application. | + **asyncAmd** | **optional.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`. | + **asyncAmdStatusCallback** | **optional.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. | + **asyncAmdStatusCallbackMethod** | **optional.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** | **optional.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) | + **callReason** | **optional.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) | + **callerId** | **optional.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`. | + **fallbackMethod** | **optional.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. | + **fallbackUrl** | **optional.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. | + **from** | **optional.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. | + **machineDetection** | **optional.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). | + **machineDetectionSilenceTimeout** | **optional.Int32**| The number of milliseconds of initial silence after which an `unknown` AnsweredBy result will be returned. Possible Values: 2000-10000. Default: 5000. | + **machineDetectionSpeechEndThreshold** | **optional.Int32**| The number of milliseconds of silence after speech activity at which point the speech activity is considered complete. Possible Values: 500-5000. Default: 1200. | + **machineDetectionSpeechThreshold** | **optional.Int32**| 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. | + **machineDetectionTimeout** | **optional.Int32**| 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. | + **method** | **optional.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. | + **record** | **optional.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. | + **recordingChannels** | **optional.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. | + **recordingStatusCallback** | **optional.String**| The URL that we call when the recording is available to be accessed. | + **recordingStatusCallbackEvent** | [**optional.Interface of []string**](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. | + **recordingStatusCallbackMethod** | **optional.String**| The HTTP method we should use when calling the `recording_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. | + **recordingTrack** | **optional.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. | + **sendDigits** | **optional.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. | + **sipAuthPassword** | **optional.String**| The password required to authenticate the user account specified in `sip_auth_username`. | + **sipAuthUsername** | **optional.String**| The username used to authenticate the caller making a SIP call. | + **statusCallback** | **optional.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). | + **statusCallbackEvent** | [**optional.Interface of []string**](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. | + **statusCallbackMethod** | **optional.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. | + **timeout** | **optional.Int32**| 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. | + **to** | **optional.String**| The phone number, SIP address, or client identifier to call. | + **trim** | **optional.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`. | + **twiml** | **optional.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. | + **url** | **optional.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). | + +### Return type + +[**ApiV2010AccountCall**](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) + + +## CreateCallFeedbackSummary + +> ApiV2010AccountCallCallFeedbackSummary CreateCallFeedbackSummary(ctx, accountSid, optional) + + + +Create a FeedbackSummary resource for a call + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | + **optional** | ***CreateCallFeedbackSummaryOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateCallFeedbackSummaryOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **endDate** | **optional.Time**| Only include feedback given on or before this date. Format is `YYYY-MM-DD` and specified in UTC. | + **includeSubaccounts** | **optional.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. | + **startDate** | **optional.Time**| Only include feedback given on or after this date. Format is `YYYY-MM-DD` and specified in UTC. | + **statusCallback** | **optional.String**| The URL that we will request when the feedback summary is complete. | + **statusCallbackMethod** | **optional.String**| The HTTP method (`GET` or `POST`) we use to make the request to the `StatusCallback` URL. | + +### Return type + +[**ApiV2010AccountCallCallFeedbackSummary**](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) + + +## CreateCallRecording + +> ApiV2010AccountCallCallRecording CreateCallRecording(ctx, accountSid, callSid, optional) + + + +Create a recording for the call + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | +**callSid** | **string**| The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) to associate the resource with. | + **optional** | ***CreateCallRecordingOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateCallRecordingOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **recordingChannels** | **optional.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. | + **recordingStatusCallback** | **optional.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). | + **recordingStatusCallbackEvent** | [**optional.Interface of []string**](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. | + **recordingStatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `recording_status_callback`. Can be: `GET` or `POST` and the default is `POST`. | + **recordingTrack** | **optional.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. | + **trim** | **optional.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. | + +### Return type + +[**ApiV2010AccountCallCallRecording**](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) + + +## CreateIncomingPhoneNumber + +> ApiV2010AccountIncomingPhoneNumber CreateIncomingPhoneNumber(ctx, accountSid, optional) + + + +Purchase a phone-number for the account. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | + **optional** | ***CreateIncomingPhoneNumberOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateIncomingPhoneNumberOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **addressSid** | **optional.String**| The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. | + **apiVersion** | **optional.String**| The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. | + **areaCode** | **optional.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). | + **bundleSid** | **optional.String**| The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | + **emergencyAddressSid** | **optional.String**| The SID of the emergency address configuration to use for emergency calling from the new phone number. | + **emergencyStatus** | **optional.String**| The configuration status parameter that determines whether the new phone number is enabled for emergency calling. | + **friendlyName** | **optional.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. | + **identitySid** | **optional.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. | + **phoneNumber** | **optional.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. | + **smsApplicationSid** | **optional.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. | + **smsFallbackMethod** | **optional.String**| The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **smsFallbackUrl** | **optional.String**| The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. | + **smsMethod** | **optional.String**| The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **smsUrl** | **optional.String**| The URL we should call when the new phone number receives an incoming SMS message. | + **statusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application. | + **statusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | + **trunkSid** | **optional.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. | + **voiceApplicationSid** | **optional.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. | + **voiceCallerIdLookup** | **optional.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`. | + **voiceFallbackMethod** | **optional.String**| The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **voiceFallbackUrl** | **optional.String**| The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | + **voiceMethod** | **optional.String**| The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **voiceReceiveMode** | **optional.String**| The configuration parameter for the new phone number to receive incoming voice calls or faxes. Can be: `fax` or `voice` and defaults to `voice`. | + **voiceUrl** | **optional.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. | + +### Return type + +[**ApiV2010AccountIncomingPhoneNumber**](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) + + +## CreateIncomingPhoneNumberAssignedAddOn + +> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn CreateIncomingPhoneNumberAssignedAddOn(ctx, accountSid, resourceSid, optional) + + + +Assign an Add-on installation to the Number specified. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | +**resourceSid** | **string**| The SID of the Phone Number to assign the Add-on. | + **optional** | ***CreateIncomingPhoneNumberAssignedAddOnOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateIncomingPhoneNumberAssignedAddOnOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **installedAddOnSid** | **optional.String**| The SID that identifies the Add-on installation. | + +### Return type + +[**ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn**](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) + + +## CreateIncomingPhoneNumberLocal + +> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocal CreateIncomingPhoneNumberLocal(ctx, accountSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | + **optional** | ***CreateIncomingPhoneNumberLocalOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateIncomingPhoneNumberLocalOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **addressSid** | **optional.String**| The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. | + **apiVersion** | **optional.String**| The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. | + **bundleSid** | **optional.String**| The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | + **emergencyAddressSid** | **optional.String**| The SID of the emergency address configuration to use for emergency calling from the new phone number. | + **emergencyStatus** | **optional.String**| The configuration status parameter that determines whether the new phone number is enabled for emergency calling. | + **friendlyName** | **optional.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. | + **identitySid** | **optional.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. | + **phoneNumber** | **optional.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. | + **smsApplicationSid** | **optional.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. | + **smsFallbackMethod** | **optional.String**| The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **smsFallbackUrl** | **optional.String**| The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. | + **smsMethod** | **optional.String**| The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **smsUrl** | **optional.String**| The URL we should call when the new phone number receives an incoming SMS message. | + **statusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application. | + **statusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | + **trunkSid** | **optional.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. | + **voiceApplicationSid** | **optional.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. | + **voiceCallerIdLookup** | **optional.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`. | + **voiceFallbackMethod** | **optional.String**| The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **voiceFallbackUrl** | **optional.String**| The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | + **voiceMethod** | **optional.String**| The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **voiceReceiveMode** | **optional.String**| The configuration parameter for the new phone number to receive incoming voice calls or faxes. Can be: `fax` or `voice` and defaults to `voice`. | + **voiceUrl** | **optional.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. | + +### Return type + +[**ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocal**](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) + + +## CreateIncomingPhoneNumberMobile + +> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobile CreateIncomingPhoneNumberMobile(ctx, accountSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | + **optional** | ***CreateIncomingPhoneNumberMobileOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateIncomingPhoneNumberMobileOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **addressSid** | **optional.String**| The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. | + **apiVersion** | **optional.String**| The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. | + **bundleSid** | **optional.String**| The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | + **emergencyAddressSid** | **optional.String**| The SID of the emergency address configuration to use for emergency calling from the new phone number. | + **emergencyStatus** | **optional.String**| The configuration status parameter that determines whether the new phone number is enabled for emergency calling. | + **friendlyName** | **optional.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. | + **identitySid** | **optional.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. | + **phoneNumber** | **optional.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. | + **smsApplicationSid** | **optional.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. | + **smsFallbackMethod** | **optional.String**| The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **smsFallbackUrl** | **optional.String**| The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. | + **smsMethod** | **optional.String**| The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **smsUrl** | **optional.String**| The URL we should call when the new phone number receives an incoming SMS message. | + **statusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application. | + **statusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | + **trunkSid** | **optional.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. | + **voiceApplicationSid** | **optional.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. | + **voiceCallerIdLookup** | **optional.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`. | + **voiceFallbackMethod** | **optional.String**| The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **voiceFallbackUrl** | **optional.String**| The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | + **voiceMethod** | **optional.String**| The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **voiceReceiveMode** | **optional.String**| The configuration parameter for the new phone number to receive incoming voice calls or faxes. Can be: `fax` or `voice` and defaults to `voice`. | + **voiceUrl** | **optional.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. | + +### Return type + +[**ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobile**](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) + + +## CreateIncomingPhoneNumberTollFree + +> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFree CreateIncomingPhoneNumberTollFree(ctx, accountSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | + **optional** | ***CreateIncomingPhoneNumberTollFreeOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateIncomingPhoneNumberTollFreeOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **addressSid** | **optional.String**| The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. | + **apiVersion** | **optional.String**| The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. | + **bundleSid** | **optional.String**| The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | + **emergencyAddressSid** | **optional.String**| The SID of the emergency address configuration to use for emergency calling from the new phone number. | + **emergencyStatus** | **optional.String**| The configuration status parameter that determines whether the new phone number is enabled for emergency calling. | + **friendlyName** | **optional.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. | + **identitySid** | **optional.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. | + **phoneNumber** | **optional.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. | + **smsApplicationSid** | **optional.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. | + **smsFallbackMethod** | **optional.String**| The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **smsFallbackUrl** | **optional.String**| The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. | + **smsMethod** | **optional.String**| The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **smsUrl** | **optional.String**| The URL we should call when the new phone number receives an incoming SMS message. | + **statusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application. | + **statusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | + **trunkSid** | **optional.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. | + **voiceApplicationSid** | **optional.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. | + **voiceCallerIdLookup** | **optional.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`. | + **voiceFallbackMethod** | **optional.String**| The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **voiceFallbackUrl** | **optional.String**| The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | + **voiceMethod** | **optional.String**| The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **voiceReceiveMode** | **optional.String**| The configuration parameter for the new phone number to receive incoming voice calls or faxes. Can be: `fax` or `voice` and defaults to `voice`. | + **voiceUrl** | **optional.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. | + +### Return type + +[**ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFree**](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) + + +## CreateMessage + +> ApiV2010AccountMessage CreateMessage(ctx, accountSid, optional) + + + +Send a message from the account used to make the request + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | + **optional** | ***CreateMessageOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateMessageOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **addressRetention** | **optional.String**| Determines if the address can be stored or obfuscated based on privacy settings | + **applicationSid** | **optional.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. | + **attempt** | **optional.Int32**| Total number of attempts made ( including this ) to send out the message regardless of the provider used | + **body** | **optional.String**| The text of the message you want to send. Can be up to 1,600 characters in length. | + **contentRetention** | **optional.String**| Determines if the message content can be stored or redacted based on privacy settings | + **forceDelivery** | **optional.Bool**| Reserved | + **from** | **optional.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. | + **maxPrice** | **optional.Float32**| 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. | + **mediaUrl** | [**optional.Interface of []string**](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. | + **messagingServiceSid** | **optional.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. | + **persistentAction** | [**optional.Interface of []string**](string.md)| Rich actions for Channels Messages. | + **provideFeedback** | **optional.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. | + **smartEncoded** | **optional.Bool**| Whether to detect Unicode characters that have a similar GSM-7 character and replace them. Can be: `true` or `false`. | + **statusCallback** | **optional.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. | + **to** | **optional.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. | + **validityPeriod** | **optional.Int32**| 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. | + +### Return type + +[**ApiV2010AccountMessage**](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) + + +## CreateMessageFeedback + +> ApiV2010AccountMessageMessageFeedback CreateMessageFeedback(ctx, accountSid, messageSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | +**messageSid** | **string**| The SID of the Message resource for which the feedback was provided. | + **optional** | ***CreateMessageFeedbackOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateMessageFeedbackOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **outcome** | **optional.String**| Whether the feedback has arrived. Can be: `unconfirmed` or `confirmed`. If `provide_feedback`=`true` in [the initial HTTP POST](https://www.twilio.com/docs/sms/api/message-resource#create-a-message-resource), the initial value of this property is `unconfirmed`. After the message arrives, update the value to `confirmed`. | + +### Return type + +[**ApiV2010AccountMessageMessageFeedback**](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) + + +## CreateNewKey + +> ApiV2010AccountNewKey CreateNewKey(ctx, accountSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will be responsible for the new Key resource. | + **optional** | ***CreateNewKeyOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateNewKeyOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + +### Return type + +[**ApiV2010AccountNewKey**](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) + + +## CreateNewSigningKey + +> ApiV2010AccountNewSigningKey CreateNewSigningKey(ctx, accountSid, optional) + + + +Create a new Signing Key for the account making the request. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will be responsible for the new Key resource. | + **optional** | ***CreateNewSigningKeyOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateNewSigningKeyOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + +### Return type + +[**ApiV2010AccountNewSigningKey**](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) + + +## CreateParticipant + +> ApiV2010AccountConferenceParticipant CreateParticipant(ctx, accountSid, conferenceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | +**conferenceSid** | **string**| The SID of the participant's conference. | + **optional** | ***CreateParticipantOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateParticipantOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **beep** | **optional.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`. | + **byoc** | **optional.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) | + **callReason** | **optional.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) | + **callSidToCoach** | **optional.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`. | + **callerId** | **optional.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. | + **coaching** | **optional.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. | + **conferenceRecord** | **optional.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`. | + **conferenceRecordingStatusCallback** | **optional.String**| The URL we should call using the `conference_recording_status_callback_method` when the conference recording is available. | + **conferenceRecordingStatusCallbackEvent** | [**optional.Interface of []string**](string.md)| The conference recording state changes that generate a call to `conference_recording_status_callback`. Can be: `in-progress`, `completed`, and `failed`. Separate multiple values with a space. The default value is `in-progress completed failed`. | + **conferenceRecordingStatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `conference_recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | + **conferenceStatusCallback** | **optional.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. | + **conferenceStatusCallbackEvent** | [**optional.Interface of []string**](string.md)| The conference state changes that should generate a call to `conference_status_callback`. Can be: `start`, `end`, `join`, `leave`, `mute`, `hold`, and `speaker`. Separate multiple values with a space. Defaults to `start end`. | + **conferenceStatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | + **conferenceTrim** | **optional.String**| Whether to trim leading and trailing silence from your recorded conference audio files. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. | + **earlyMedia** | **optional.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`. | + **endConferenceOnExit** | **optional.Bool**| Whether to end the conference when the participant leaves. Can be: `true` or `false` and defaults to `false`. | + **from** | **optional.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. | + **jitterBufferSize** | **optional.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`. | + **label** | **optional.String**| A label for this participant. If one is supplied, it may subsequently be used to fetch, update or delete the participant. | + **maxParticipants** | **optional.Int32**| The maximum number of participants in the conference. Can be a positive integer from `2` to `250`. The default value is `250`. | + **muted** | **optional.Bool**| Whether the agent is muted in the conference. Can be `true` or `false` and the default is `false`. | + **record** | **optional.Bool**| Whether to record the participant and their conferences, including the time between conferences. Can be `true` or `false` and the default is `false`. | + **recordingChannels** | **optional.String**| The recording channels for the final recording. Can be: `mono` or `dual` and the default is `mono`. | + **recordingStatusCallback** | **optional.String**| The URL that we should call using the `recording_status_callback_method` when the recording status changes. | + **recordingStatusCallbackEvent** | [**optional.Interface of []string**](string.md)| The recording state changes that should generate a call to `recording_status_callback`. Can be: `in-progress`, `completed`, and `failed`. Separate multiple values with a space. The default value is `in-progress completed failed`. | + **recordingStatusCallbackMethod** | **optional.String**| The HTTP method we should use when we call `recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | + **recordingTrack** | **optional.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. | + **region** | **optional.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`. | + **sipAuthPassword** | **optional.String**| The SIP password for authentication. | + **sipAuthUsername** | **optional.String**| The SIP username used for authentication. | + **startConferenceOnEnter** | **optional.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. | + **statusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application. | + **statusCallbackEvent** | [**optional.Interface of []string**](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`. | + **statusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `GET` and `POST` and defaults to `POST`. | + **timeout** | **optional.Int32**| 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. | + **to** | **optional.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. | + **waitMethod** | **optional.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. | + **waitUrl** | **optional.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). | + +### Return type + +[**ApiV2010AccountConferenceParticipant**](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) + + +## CreatePayments + +> ApiV2010AccountCallPayments CreatePayments(ctx, accountSid, callSid, optional) + + + +create an instance of payments. This will start a new payments session + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | +**callSid** | **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. | + **optional** | ***CreatePaymentsOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreatePaymentsOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **bankAccountType** | **optional.String**| Type of bank account if payment source is ACH. One of `consumer-checking`, `consumer-savings`, or `commercial-checking`. The default value is `consumer-checking`. | + **chargeAmount** | **optional.Float32**| 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** | **optional.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** | **optional.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. | + **idempotencyKey** | **optional.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. | + **input** | **optional.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. | + **minPostalCodeLength** | **optional.Int32**| A positive integer that is used to validate the length of the `PostalCode` inputted by the user. User must enter this many digits. | + **parameter** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A single level JSON string that is required when accepting certain information specific only to ACH payments. The information that has to be included here depends on the <Pay> Connector. [Read more](https://www.twilio.com/console/voice/pay-connectors). | + **paymentConnector** | **optional.String**| This is the unique name corresponding to the Payment Gateway Connector installed in the Twilio Add-ons. Learn more about [<Pay> Connectors](https://www.twilio.com/console/voice/pay-connectors). The default value is `Default`. | + **paymentMethod** | **optional.String**| Type of payment being captured. One of `credit-card` or `ach-debit`. The default value is `credit-card`. | + **postalCode** | **optional.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`. | + **securityCode** | **optional.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`. | + **statusCallback** | **optional.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) | + **timeout** | **optional.Int32**| The number of seconds that <Pay> 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`. | + **tokenType** | **optional.String**| Indicates whether the payment method should be tokenized as a `one-time` or `reusable` token. The default value is `reusable`. Do not enter a charge amount when tokenizing. If a charge amount is entered, the payment method will be charged and not tokenized. | + **validCardTypes** | **optional.String**| Credit card types separated by space that Pay should accept. The default value is `visa mastercard amex` | + +### Return type + +[**ApiV2010AccountCallPayments**](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) + + +## CreateQueue + +> ApiV2010AccountQueue CreateQueue(ctx, accountSid, optional) + + + +Create a queue + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | + **optional** | ***CreateQueueOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateQueueOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **friendlyName** | **optional.String**| A descriptive string that you created to describe this resource. It can be up to 64 characters long. | + **maxSize** | **optional.Int32**| The maximum number of calls allowed to be in the queue. The default is 100. The maximum is 5000. | + +### Return type + +[**ApiV2010AccountQueue**](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) + + +## CreateSipAuthCallsCredentialListMapping + +> ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping CreateSipAuthCallsCredentialListMapping(ctx, accountSid, domainSid, optional) + + + +Create a new credential list mapping resource + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | +**domainSid** | **string**| The SID of the SIP domain that will contain the new resource. | + **optional** | ***CreateSipAuthCallsCredentialListMappingOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateSipAuthCallsCredentialListMappingOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **credentialListSid** | **optional.String**| The SID of the CredentialList resource to map to the SIP domain. | + +### Return type + +[**ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping**](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) + + +## CreateSipAuthCallsIpAccessControlListMapping + +> ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping CreateSipAuthCallsIpAccessControlListMapping(ctx, accountSid, domainSid, optional) + + + +Create a new IP Access Control List mapping + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | +**domainSid** | **string**| The SID of the SIP domain that will contain the new resource. | + **optional** | ***CreateSipAuthCallsIpAccessControlListMappingOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateSipAuthCallsIpAccessControlListMappingOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **ipAccessControlListSid** | **optional.String**| The SID of the IpAccessControlList resource to map to the SIP domain. | + +### Return type + +[**ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping**](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) + + +## CreateSipAuthRegistrationsCredentialListMapping + +> ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping CreateSipAuthRegistrationsCredentialListMapping(ctx, accountSid, domainSid, optional) + + + +Create a new credential list mapping resource + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | +**domainSid** | **string**| The SID of the SIP domain that will contain the new resource. | + **optional** | ***CreateSipAuthRegistrationsCredentialListMappingOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateSipAuthRegistrationsCredentialListMappingOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **credentialListSid** | **optional.String**| The SID of the CredentialList resource to map to the SIP domain. | + +### Return type + +[**ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping**](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) + + +## CreateSipCredential + +> ApiV2010AccountSipSipCredentialListSipCredential CreateSipCredential(ctx, accountSid, credentialListSid, optional) + + + +Create a new credential resource. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The unique id of the Account that is responsible for this resource. | +**credentialListSid** | **string**| The unique id that identifies the credential list to include the created credential. | + **optional** | ***CreateSipCredentialOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateSipCredentialOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **password** | **optional.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`) | + **username** | **optional.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. | + +### Return type + +[**ApiV2010AccountSipSipCredentialListSipCredential**](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) + + +## CreateSipCredentialList + +> ApiV2010AccountSipSipCredentialList CreateSipCredentialList(ctx, accountSid, optional) + + + +Create a Credential List + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The unique id of the Account that is responsible for this resource. | + **optional** | ***CreateSipCredentialListOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateSipCredentialListOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **friendlyName** | **optional.String**| A human readable descriptive text that describes the CredentialList, up to 64 characters long. | + +### Return type + +[**ApiV2010AccountSipSipCredentialList**](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) + + +## CreateSipCredentialListMapping + +> ApiV2010AccountSipSipDomainSipCredentialListMapping CreateSipCredentialListMapping(ctx, accountSid, domainSid, optional) + + + +Create a CredentialListMapping resource for an account. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | +**domainSid** | **string**| A 34 character string that uniquely identifies the SIP Domain for which the CredentialList resource will be mapped. | + **optional** | ***CreateSipCredentialListMappingOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateSipCredentialListMappingOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **credentialListSid** | **optional.String**| A 34 character string that uniquely identifies the CredentialList resource to map to the SIP domain. | + +### Return type + +[**ApiV2010AccountSipSipDomainSipCredentialListMapping**](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) + + +## CreateSipDomain + +> ApiV2010AccountSipSipDomain CreateSipDomain(ctx, accountSid, optional) + + + +Create a new Domain + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | + **optional** | ***CreateSipDomainOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateSipDomainOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **byocTrunkSid** | **optional.String**| The SID of the BYOC Trunk(Bring Your Own Carrier) resource that the Sip Domain will be associated with. | + **domainName** | **optional.String**| The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and \\\"-\\\". | + **emergencyCallerSid** | **optional.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. | + **emergencyCallingEnabled** | **optional.Bool**| Whether emergency calling is enabled for the domain. If enabled, allows emergency calls on the domain from phone numbers with validated addresses. | + **friendlyName** | **optional.String**| A descriptive string that you created to describe the resource. It can be up to 64 characters long. | + **secure** | **optional.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. | + **sipRegistration** | **optional.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. | + **voiceFallbackMethod** | **optional.String**| The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. | + **voiceFallbackUrl** | **optional.String**| The URL that we should call when an error occurs while retrieving or executing the TwiML from `voice_url`. | + **voiceMethod** | **optional.String**| The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`. | + **voiceStatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `voice_status_callback_url`. Can be: `GET` or `POST`. | + **voiceStatusCallbackUrl** | **optional.String**| The URL that we should call to pass status parameters (such as call ended) to your application. | + **voiceUrl** | **optional.String**| The URL we should when the domain receives a call. | + +### Return type + +[**ApiV2010AccountSipSipDomain**](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) + + +## CreateSipIpAccessControlList + +> ApiV2010AccountSipSipIpAccessControlList CreateSipIpAccessControlList(ctx, accountSid, optional) + + + +Create a new IpAccessControlList resource + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | + **optional** | ***CreateSipIpAccessControlListOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateSipIpAccessControlListOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **friendlyName** | **optional.String**| A human readable descriptive text that describes the IpAccessControlList, up to 64 characters long. | + +### Return type + +[**ApiV2010AccountSipSipIpAccessControlList**](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) + + +## CreateSipIpAccessControlListMapping + +> ApiV2010AccountSipSipDomainSipIpAccessControlListMapping CreateSipIpAccessControlListMapping(ctx, accountSid, domainSid, optional) + + + +Create a new IpAccessControlListMapping resource. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The unique id of the Account that is responsible for this resource. | +**domainSid** | **string**| A 34 character string that uniquely identifies the SIP domain. | + **optional** | ***CreateSipIpAccessControlListMappingOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateSipIpAccessControlListMappingOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **ipAccessControlListSid** | **optional.String**| The unique id of the IP access control list to map to the SIP domain. | + +### Return type + +[**ApiV2010AccountSipSipDomainSipIpAccessControlListMapping**](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) + + +## CreateSipIpAddress + +> ApiV2010AccountSipSipIpAccessControlListSipIpAddress CreateSipIpAddress(ctx, accountSid, ipAccessControlListSid, optional) + + + +Create a new IpAddress resource. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | +**ipAccessControlListSid** | **string**| The IpAccessControlList Sid with which to associate the created IpAddress resource. | + **optional** | ***CreateSipIpAddressOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateSipIpAddressOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **cidrPrefixLength** | **optional.Int32**| 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. | + **friendlyName** | **optional.String**| A human readable descriptive text for this resource, up to 64 characters long. | + **ipAddress** | **optional.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. | + +### Return type + +[**ApiV2010AccountSipSipIpAccessControlListSipIpAddress**](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) + + +## CreateToken + +> ApiV2010AccountToken CreateToken(ctx, accountSid, optional) + + + +Create a new token for ICE servers + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | + **optional** | ***CreateTokenOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateTokenOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **ttl** | **optional.Int32**| The duration in seconds for which the generated credentials are valid. The default value is 86400 (24 hours). | + +### Return type + +[**ApiV2010AccountToken**](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) + + +## CreateUsageTrigger + +> ApiV2010AccountUsageUsageTrigger CreateUsageTrigger(ctx, accountSid, optional) + + + +Create a new UsageTrigger + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | + **optional** | ***CreateUsageTriggerOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateUsageTriggerOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **callbackMethod** | **optional.String**| The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is `POST`. | + **callbackUrl** | **optional.String**| The URL we should call using `callback_method` when the trigger fires. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **recurring** | **optional.String**| The frequency of a recurring UsageTrigger. Can be: `daily`, `monthly`, or `yearly` for recurring triggers or empty for non-recurring triggers. A trigger will only fire once during each period. Recurring times are in GMT. | + **triggerBy** | **optional.String**| The field in the [UsageRecord](https://www.twilio.com/docs/usage/api/usage-record) resource that should fire the trigger. Can be: `count`, `usage`, or `price` as described in the [UsageRecords documentation](https://www.twilio.com/docs/usage/api/usage-record#usage-count-price). The default is `usage`. | + **triggerValue** | **optional.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`. | + **usageCategory** | **optional.String**| The usage category that the trigger should watch. Use one of the supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) for this value. | + +### Return type + +[**ApiV2010AccountUsageUsageTrigger**](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) + + +## CreateValidationRequest + +> ApiV2010AccountValidationRequest CreateValidationRequest(ctx, accountSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for the new caller ID resource. | + **optional** | ***CreateValidationRequestOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateValidationRequestOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **callDelay** | **optional.Int32**| 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** | **optional.String**| The digits to dial after connecting the verification call. | + **friendlyName** | **optional.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. | + **phoneNumber** | **optional.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. | + **statusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information about the verification process to your application. | + **statusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST`, and the default is `POST`. | + +### Return type + +[**ApiV2010AccountValidationRequest**](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) + + +## DeleteAddress + +> DeleteAddress(ctx, accountSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to delete. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Address resource to delete. | + +### 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) + + +## DeleteApplication + +> DeleteApplication(ctx, accountSid, sid) + + + +Delete the application by the specified application sid + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resources to delete. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Application resource to delete. | + +### 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) + + +## DeleteCall + +> DeleteCall(ctx, accountSid, 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. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to delete. | +**sid** | **string**| The Twilio-provided Call SID that uniquely identifies the Call resource to delete | + +### 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) + + +## DeleteCallFeedbackSummary + +> DeleteCallFeedbackSummary(ctx, accountSid, sid) + + + +Delete a FeedbackSummary resource from a call + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + +### 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) + + +## DeleteCallRecording + +> DeleteCallRecording(ctx, accountSid, callSid, sid) + + + +Delete a recording from your account + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to delete. | +**callSid** | **string**| The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resources to delete. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Recording resource to delete. | + +### 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) + + +## DeleteConferenceRecording + +> DeleteConferenceRecording(ctx, accountSid, conferenceSid, sid) + + + +Delete a recording from your account + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resources to delete. | +**conferenceSid** | **string**| The Conference SID that identifies the conference associated with the recording to delete. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Conference Recording resource to delete. | + +### 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) + + +## DeleteConnectApp + +> DeleteConnectApp(ctx, accountSid, sid) + + + +Delete an instance of a connect-app + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resource to fetch. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the ConnectApp resource to fetch. | + +### 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) + + +## DeleteIncomingPhoneNumber + +> DeleteIncomingPhoneNumber(ctx, accountSid, sid) + + + +Delete a phone-numbers belonging to the account used to make the request. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IncomingPhoneNumber resources to delete. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to delete. | + +### 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) + + +## DeleteIncomingPhoneNumberAssignedAddOn + +> DeleteIncomingPhoneNumberAssignedAddOn(ctx, accountSid, resourceSid, sid) + + + +Remove the assignment of an Add-on installation from the Number specified. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to delete. | +**resourceSid** | **string**| The SID of the Phone Number to which the Add-on is assigned. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the resource to delete. | + +### 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) + + +## DeleteKey + +> DeleteKey(ctx, accountSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resources to delete. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Key resource to delete. | + +### 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) + + +## DeleteMedia + +> DeleteMedia(ctx, accountSid, messageSid, sid) + + + +Delete media from your account. Once delete, you will no longer be billed + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Media resource(s) to delete. | +**messageSid** | **string**| The SID of the Message resource that this Media resource belongs to. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Media resource to delete | + +### 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) + + +## DeleteMessage + +> DeleteMessage(ctx, accountSid, sid) + + + +Deletes a message record from your account + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Message resources to delete. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Message resource to delete. | + +### 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) + + +## DeleteOutgoingCallerId + +> DeleteOutgoingCallerId(ctx, accountSid, sid) + + + +Delete the caller-id specified from the account + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resources to delete. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the OutgoingCallerId resource to delete. | + +### 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) + + +## DeleteParticipant + +> DeleteParticipant(ctx, accountSid, conferenceSid, callSid) + + + +Kick a participant from a given conference + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resources to delete. | +**conferenceSid** | **string**| The SID of the conference with the participants to delete. | +**callSid** | **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. | + +### 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) + + +## DeleteQueue + +> DeleteQueue(ctx, accountSid, sid) + + + +Remove an empty queue + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resource to delete. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Queue resource to delete | + +### 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) + + +## DeleteRecording + +> DeleteRecording(ctx, accountSid, sid) + + + +Delete a recording from your account + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to delete. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Recording resource to delete. | + +### 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) + + +## DeleteRecordingAddOnResult + +> DeleteRecordingAddOnResult(ctx, accountSid, referenceSid, sid) + + + +Delete a result and purge all associated Payloads + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult resources to delete. | +**referenceSid** | **string**| The SID of the recording to which the result to delete belongs. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Recording AddOnResult resource to delete. | + +### 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) + + +## DeleteRecordingAddOnResultPayload + +> DeleteRecordingAddOnResultPayload(ctx, accountSid, referenceSid, addOnResultSid, sid) + + + +Delete a payload from the result along with all associated Data + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resources to delete. | +**referenceSid** | **string**| The SID of the recording to which the AddOnResult resource that contains the payloads to delete belongs. | +**addOnResultSid** | **string**| The SID of the AddOnResult to which the payloads to delete belongs. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Recording AddOnResult Payload resource to delete. | + +### 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) + + +## DeleteRecordingTranscription + +> DeleteRecordingTranscription(ctx, accountSid, recordingSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to delete. | +**recordingSid** | **string**| The SID of the [Recording](https://www.twilio.com/docs/voice/api/recording) that created the transcription to delete. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Transcription resource to delete. | + +### 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) + + +## DeleteSigningKey + +> DeleteSigningKey(ctx, accountSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| | +**sid** | **string**| | + +### 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) + + +## DeleteSipAuthCallsCredentialListMapping + +> DeleteSipAuthCallsCredentialListMapping(ctx, accountSid, domainSid, sid) + + + +Delete a credential list mapping from the requested domain + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to delete. | +**domainSid** | **string**| The SID of the SIP domain that contains the resource to delete. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the CredentialListMapping resource to delete. | + +### 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) + + +## DeleteSipAuthCallsIpAccessControlListMapping + +> DeleteSipAuthCallsIpAccessControlListMapping(ctx, accountSid, domainSid, sid) + + + +Delete an IP Access Control List mapping from the requested domain + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IpAccessControlListMapping resources to delete. | +**domainSid** | **string**| The SID of the SIP domain that contains the resources to delete. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the IpAccessControlListMapping resource to delete. | + +### 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) + + +## DeleteSipAuthRegistrationsCredentialListMapping + +> DeleteSipAuthRegistrationsCredentialListMapping(ctx, accountSid, domainSid, sid) + + + +Delete a credential list mapping from the requested domain + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to delete. | +**domainSid** | **string**| The SID of the SIP domain that contains the resources to delete. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the CredentialListMapping resource to delete. | + +### 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) + + +## DeleteSipCredential + +> DeleteSipCredential(ctx, accountSid, credentialListSid, sid) + + + +Delete a credential resource. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The unique id of the Account that is responsible for this resource. | +**credentialListSid** | **string**| The unique id that identifies the credential list that contains the desired credentials. | +**sid** | **string**| The unique id that identifies the resource to delete. | + +### 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) + + +## DeleteSipCredentialList + +> DeleteSipCredentialList(ctx, accountSid, sid) + + + +Delete a Credential List + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The unique id of the Account that is responsible for this resource. | +**sid** | **string**| The credential list Sid that uniquely identifies this resource | + +### 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) + + +## DeleteSipCredentialListMapping + +> DeleteSipCredentialListMapping(ctx, accountSid, domainSid, sid) + + + +Delete a CredentialListMapping resource from an account. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | +**domainSid** | **string**| A 34 character string that uniquely identifies the SIP Domain that includes the resource to delete. | +**sid** | **string**| A 34 character string that uniquely identifies the resource to delete. | + +### 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) + + +## DeleteSipDomain + +> DeleteSipDomain(ctx, accountSid, sid) + + + +Delete an instance of a Domain + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resources to delete. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the SipDomain resource to delete. | + +### 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) + + +## DeleteSipIpAccessControlList + +> DeleteSipIpAccessControlList(ctx, accountSid, sid) + + + +Delete an IpAccessControlList from the requested account + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | +**sid** | **string**| A 34 character string that uniquely identifies the resource to delete. | + +### 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) + + +## DeleteSipIpAccessControlListMapping + +> DeleteSipIpAccessControlListMapping(ctx, accountSid, domainSid, sid) + + + +Delete an IpAccessControlListMapping resource. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The unique id of the Account that is responsible for this resource. | +**domainSid** | **string**| A 34 character string that uniquely identifies the SIP domain. | +**sid** | **string**| A 34 character string that uniquely identifies the resource to delete. | + +### 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) + + +## DeleteSipIpAddress + +> DeleteSipIpAddress(ctx, accountSid, ipAccessControlListSid, sid) + + + +Delete an IpAddress resource. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | +**ipAccessControlListSid** | **string**| The IpAccessControlList Sid that identifies the IpAddress resources to delete. | +**sid** | **string**| A 34 character string that uniquely identifies the resource to delete. | + +### 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) + + +## DeleteTranscription + +> DeleteTranscription(ctx, accountSid, sid) + + + +Delete a transcription from the account used to make the request + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to delete. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Transcription resource to delete. | + +### 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) + + +## DeleteUsageTrigger + +> DeleteUsageTrigger(ctx, accountSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resources to delete. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the UsageTrigger resource to delete. | + +### 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) + + +## FetchAccount + +> ApiV2010Account FetchAccount(ctx, sid) + + + +Fetch the account specified by the provided Account Sid + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Account Sid that uniquely identifies the account to fetch | + +### Return type + +[**ApiV2010Account**](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) + + +## FetchAddress + +> ApiV2010AccountAddress FetchAddress(ctx, accountSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to fetch. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Address resource to fetch. | + +### Return type + +[**ApiV2010AccountAddress**](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) + + +## FetchApplication + +> ApiV2010AccountApplication FetchApplication(ctx, accountSid, sid) + + + +Fetch the application specified by the provided sid + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resource to fetch. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Application resource to fetch. | + +### Return type + +[**ApiV2010AccountApplication**](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) + + +## FetchAuthorizedConnectApp + +> ApiV2010AccountAuthorizedConnectApp FetchAuthorizedConnectApp(ctx, accountSid, connectAppSid) + + + +Fetch an instance of an authorized-connect-app + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the AuthorizedConnectApp resource to fetch. | +**connectAppSid** | **string**| The SID of the Connect App to fetch. | + +### Return type + +[**ApiV2010AccountAuthorizedConnectApp**](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) + + +## FetchAvailablePhoneNumberCountry + +> ApiV2010AccountAvailablePhoneNumberCountry FetchAvailablePhoneNumberCountry(ctx, accountSid, countryCode) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the available phone number Country resource. | +**countryCode** | **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. | + +### Return type + +[**ApiV2010AccountAvailablePhoneNumberCountry**](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) + + +## FetchBalance + +> ApiV2010AccountBalance FetchBalance(ctx, accountSid) + + + +Fetch the balance for an Account based on Account Sid. Balance changes may not be reflected immediately. Child accounts do not contain balance information + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The unique SID identifier of the Account. | + +### Return type + +[**ApiV2010AccountBalance**](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) + + +## FetchCall + +> ApiV2010AccountCall FetchCall(ctx, accountSid, sid) + + + +Fetch the call specified by the provided Call SID + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to fetch. | +**sid** | **string**| The SID of the Call resource to fetch. | + +### Return type + +[**ApiV2010AccountCall**](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) + + +## FetchCallFeedback + +> ApiV2010AccountCallCallFeedback FetchCallFeedback(ctx, accountSid, callSid) + + + +Fetch a Feedback resource from a call + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | +**callSid** | **string**| The call sid that uniquely identifies the call | + +### Return type + +[**ApiV2010AccountCallCallFeedback**](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) + + +## FetchCallFeedbackSummary + +> ApiV2010AccountCallCallFeedbackSummary FetchCallFeedbackSummary(ctx, accountSid, sid) + + + +Fetch a FeedbackSummary resource from a call + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + +### Return type + +[**ApiV2010AccountCallCallFeedbackSummary**](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) + + +## FetchCallNotification + +> ApiV2010AccountCallCallNotificationInstance FetchCallNotification(ctx, accountSid, callSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call Notification resource to fetch. | +**callSid** | **string**| The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the Call Notification resource to fetch. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Call Notification resource to fetch. | + +### Return type + +[**ApiV2010AccountCallCallNotificationInstance**](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) + + +## FetchCallRecording + +> ApiV2010AccountCallCallRecording FetchCallRecording(ctx, accountSid, callSid, sid) + + + +Fetch an instance of a recording for a call + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource to fetch. | +**callSid** | **string**| The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource to fetch. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Recording resource to fetch. | + +### Return type + +[**ApiV2010AccountCallCallRecording**](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) + + +## FetchConference + +> ApiV2010AccountConference FetchConference(ctx, accountSid, sid) + + + +Fetch an instance of a conference + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference resource(s) to fetch. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Conference resource to fetch | + +### Return type + +[**ApiV2010AccountConference**](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) + + +## FetchConferenceRecording + +> ApiV2010AccountConferenceConferenceRecording FetchConferenceRecording(ctx, accountSid, conferenceSid, sid) + + + +Fetch an instance of a recording for a call + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resource to fetch. | +**conferenceSid** | **string**| The Conference SID that identifies the conference associated with the recording to fetch. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Conference Recording resource to fetch. | + +### Return type + +[**ApiV2010AccountConferenceConferenceRecording**](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) + + +## FetchConnectApp + +> ApiV2010AccountConnectApp FetchConnectApp(ctx, accountSid, sid) + + + +Fetch an instance of a connect-app + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resource to fetch. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the ConnectApp resource to fetch. | + +### Return type + +[**ApiV2010AccountConnectApp**](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) + + +## FetchIncomingPhoneNumber + +> ApiV2010AccountIncomingPhoneNumber FetchIncomingPhoneNumber(ctx, accountSid, sid) + + + +Fetch an incoming-phone-number belonging to the account used to make the request. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IncomingPhoneNumber resource to fetch. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to fetch. | + +### Return type + +[**ApiV2010AccountIncomingPhoneNumber**](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) + + +## FetchIncomingPhoneNumberAssignedAddOn + +> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn FetchIncomingPhoneNumberAssignedAddOn(ctx, accountSid, resourceSid, sid) + + + +Fetch an instance of an Add-on installation currently assigned to this Number. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource to fetch. | +**resourceSid** | **string**| The SID of the Phone Number to which the Add-on is assigned. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the resource to fetch. | + +### Return type + +[**ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn**](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) + + +## FetchIncomingPhoneNumberAssignedAddOnExtension + +> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension FetchIncomingPhoneNumberAssignedAddOnExtension(ctx, accountSid, resourceSid, assignedAddOnSid, sid) + + + +Fetch an instance of an Extension for the Assigned Add-on. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource to fetch. | +**resourceSid** | **string**| The SID of the Phone Number to which the Add-on is assigned. | +**assignedAddOnSid** | **string**| The SID that uniquely identifies the assigned Add-on installation. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the resource to fetch. | + +### Return type + +[**ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension**](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) + + +## FetchKey + +> ApiV2010AccountKey FetchKey(ctx, accountSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resource to fetch. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Key resource to fetch. | + +### Return type + +[**ApiV2010AccountKey**](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) + + +## FetchMedia + +> ApiV2010AccountMessageMedia FetchMedia(ctx, accountSid, messageSid, sid) + + + +Fetch a single media instance belonging to the account used to make the request + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Media resource(s) to fetch. | +**messageSid** | **string**| The SID of the Message resource that this Media resource belongs to. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Media resource to fetch | + +### Return type + +[**ApiV2010AccountMessageMedia**](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) + + +## FetchMember + +> ApiV2010AccountQueueMember FetchMember(ctx, accountSid, queueSid, callSid) + + + +Fetch a specific member from the queue + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Member resource(s) to fetch. | +**queueSid** | **string**| The SID of the Queue in which to find the members to fetch. | +**callSid** | **string**| The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource(s) to fetch. | + +### Return type + +[**ApiV2010AccountQueueMember**](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) + + +## FetchMessage + +> ApiV2010AccountMessage FetchMessage(ctx, accountSid, sid) + + + +Fetch a message belonging to the account used to make the request + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Message resource to fetch. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Message resource to fetch. | + +### Return type + +[**ApiV2010AccountMessage**](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) + + +## FetchNotification + +> ApiV2010AccountNotificationInstance FetchNotification(ctx, accountSid, sid) + + + +Fetch a notification belonging to the account used to make the request + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Notification resource to fetch. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Notification resource to fetch. | + +### Return type + +[**ApiV2010AccountNotificationInstance**](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) + + +## FetchOutgoingCallerId + +> ApiV2010AccountOutgoingCallerId FetchOutgoingCallerId(ctx, accountSid, sid) + + + +Fetch an outgoing-caller-id belonging to the account used to make the request + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resource to fetch. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the OutgoingCallerId resource to fetch. | + +### Return type + +[**ApiV2010AccountOutgoingCallerId**](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) + + +## FetchParticipant + +> ApiV2010AccountConferenceParticipant FetchParticipant(ctx, accountSid, conferenceSid, callSid) + + + +Fetch an instance of a participant + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resource to fetch. | +**conferenceSid** | **string**| The SID of the conference with the participant to fetch. | +**callSid** | **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. | + +### Return type + +[**ApiV2010AccountConferenceParticipant**](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) + + +## FetchQueue + +> ApiV2010AccountQueue FetchQueue(ctx, accountSid, sid) + + + +Fetch an instance of a queue identified by the QueueSid + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resource to fetch. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Queue resource to fetch | + +### Return type + +[**ApiV2010AccountQueue**](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) + + +## FetchRecording + +> ApiV2010AccountRecording FetchRecording(ctx, accountSid, sid) + + + +Fetch an instance of a recording + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource to fetch. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Recording resource to fetch. | + +### Return type + +[**ApiV2010AccountRecording**](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) + + +## FetchRecordingAddOnResult + +> ApiV2010AccountRecordingRecordingAddOnResult FetchRecordingAddOnResult(ctx, accountSid, referenceSid, sid) + + + +Fetch an instance of an AddOnResult + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult resource to fetch. | +**referenceSid** | **string**| The SID of the recording to which the result to fetch belongs. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Recording AddOnResult resource to fetch. | + +### Return type + +[**ApiV2010AccountRecordingRecordingAddOnResult**](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) + + +## FetchRecordingAddOnResultPayload + +> ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayload FetchRecordingAddOnResultPayload(ctx, accountSid, referenceSid, addOnResultSid, sid) + + + +Fetch an instance of a result payload + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resource to fetch. | +**referenceSid** | **string**| The SID of the recording to which the AddOnResult resource that contains the payload to fetch belongs. | +**addOnResultSid** | **string**| The SID of the AddOnResult to which the payload to fetch belongs. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Recording AddOnResult Payload resource to fetch. | + +### Return type + +[**ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayload**](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) + + +## FetchRecordingTranscription + +> ApiV2010AccountRecordingRecordingTranscription FetchRecordingTranscription(ctx, accountSid, recordingSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resource to fetch. | +**recordingSid** | **string**| The SID of the [Recording](https://www.twilio.com/docs/voice/api/recording) that created the transcription to fetch. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Transcription resource to fetch. | + +### Return type + +[**ApiV2010AccountRecordingRecordingTranscription**](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) + + +## FetchShortCode + +> ApiV2010AccountShortCode FetchShortCode(ctx, accountSid, sid) + + + +Fetch an instance of a short code + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ShortCode resource(s) to fetch. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the ShortCode resource to fetch | + +### Return type + +[**ApiV2010AccountShortCode**](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) + + +## FetchSigningKey + +> ApiV2010AccountSigningKey FetchSigningKey(ctx, accountSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| | +**sid** | **string**| | + +### Return type + +[**ApiV2010AccountSigningKey**](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) + + +## FetchSipAuthCallsCredentialListMapping + +> ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping FetchSipAuthCallsCredentialListMapping(ctx, accountSid, domainSid, sid) + + + +Fetch a specific instance of a credential list mapping + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resource to fetch. | +**domainSid** | **string**| The SID of the SIP domain that contains the resource to fetch. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the CredentialListMapping resource to fetch. | + +### Return type + +[**ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping**](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) + + +## FetchSipAuthCallsIpAccessControlListMapping + +> ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping FetchSipAuthCallsIpAccessControlListMapping(ctx, accountSid, domainSid, sid) + + + +Fetch a specific instance of an IP Access Control List mapping + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IpAccessControlListMapping resource to fetch. | +**domainSid** | **string**| The SID of the SIP domain that contains the resource to fetch. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the IpAccessControlListMapping resource to fetch. | + +### Return type + +[**ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping**](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) + + +## FetchSipAuthRegistrationsCredentialListMapping + +> ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping FetchSipAuthRegistrationsCredentialListMapping(ctx, accountSid, domainSid, sid) + + + +Fetch a specific instance of a credential list mapping + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resource to fetch. | +**domainSid** | **string**| The SID of the SIP domain that contains the resource to fetch. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the CredentialListMapping resource to fetch. | + +### Return type + +[**ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping**](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) + + +## FetchSipCredential + +> ApiV2010AccountSipSipCredentialListSipCredential FetchSipCredential(ctx, accountSid, credentialListSid, sid) + + + +Fetch a single credential. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The unique id of the Account that is responsible for this resource. | +**credentialListSid** | **string**| The unique id that identifies the credential list that contains the desired credential. | +**sid** | **string**| The unique id that identifies the resource to fetch. | + +### Return type + +[**ApiV2010AccountSipSipCredentialListSipCredential**](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) + + +## FetchSipCredentialList + +> ApiV2010AccountSipSipCredentialList FetchSipCredentialList(ctx, accountSid, sid) + + + +Get a Credential List + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The unique id of the Account that is responsible for this resource. | +**sid** | **string**| The credential list Sid that uniquely identifies this resource | + +### Return type + +[**ApiV2010AccountSipSipCredentialList**](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) + + +## FetchSipCredentialListMapping + +> ApiV2010AccountSipSipDomainSipCredentialListMapping FetchSipCredentialListMapping(ctx, accountSid, domainSid, sid) + + + +Fetch a single CredentialListMapping resource from an account. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | +**domainSid** | **string**| A 34 character string that uniquely identifies the SIP Domain that includes the resource to fetch. | +**sid** | **string**| A 34 character string that uniquely identifies the resource to fetch. | + +### Return type + +[**ApiV2010AccountSipSipDomainSipCredentialListMapping**](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) + + +## FetchSipDomain + +> ApiV2010AccountSipSipDomain FetchSipDomain(ctx, accountSid, sid) + + + +Fetch an instance of a Domain + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resource to fetch. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the SipDomain resource to fetch. | + +### Return type + +[**ApiV2010AccountSipSipDomain**](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) + + +## FetchSipIpAccessControlList + +> ApiV2010AccountSipSipIpAccessControlList FetchSipIpAccessControlList(ctx, accountSid, sid) + + + +Fetch a specific instance of an IpAccessControlList + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | +**sid** | **string**| A 34 character string that uniquely identifies the resource to fetch. | + +### Return type + +[**ApiV2010AccountSipSipIpAccessControlList**](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) + + +## FetchSipIpAccessControlListMapping + +> ApiV2010AccountSipSipDomainSipIpAccessControlListMapping FetchSipIpAccessControlListMapping(ctx, accountSid, domainSid, sid) + + + +Fetch an IpAccessControlListMapping resource. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The unique id of the Account that is responsible for this resource. | +**domainSid** | **string**| A 34 character string that uniquely identifies the SIP domain. | +**sid** | **string**| A 34 character string that uniquely identifies the resource to fetch. | + +### Return type + +[**ApiV2010AccountSipSipDomainSipIpAccessControlListMapping**](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) + + +## FetchSipIpAddress + +> ApiV2010AccountSipSipIpAccessControlListSipIpAddress FetchSipIpAddress(ctx, accountSid, ipAccessControlListSid, sid) + + + +Read one IpAddress resource. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | +**ipAccessControlListSid** | **string**| The IpAccessControlList Sid that identifies the IpAddress resources to fetch. | +**sid** | **string**| A 34 character string that uniquely identifies the IpAddress resource to fetch. | + +### Return type + +[**ApiV2010AccountSipSipIpAccessControlListSipIpAddress**](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) + + +## FetchTranscription + +> ApiV2010AccountTranscription FetchTranscription(ctx, accountSid, sid) + + + +Fetch an instance of a Transcription + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resource to fetch. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Transcription resource to fetch. | + +### Return type + +[**ApiV2010AccountTranscription**](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) + + +## FetchUsageTrigger + +> ApiV2010AccountUsageUsageTrigger FetchUsageTrigger(ctx, accountSid, sid) + + + +Fetch and instance of a usage-trigger + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resource to fetch. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the UsageTrigger resource to fetch. | + +### Return type + +[**ApiV2010AccountUsageUsageTrigger**](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) + + +## ListAccount + +> ApiV2010AccountReadResponse ListAccount(ctx, optional) + + + +Retrieves a collection of Accounts belonging to the account used to make the request + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListAccountOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListAccountOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **friendlyName** | **optional.String**| Only return the Account resources with friendly names that exactly match this name. | + **status** | **optional.String**| Only return Account resources with the given status. Can be `closed`, `suspended` or `active`. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountReadResponse**](api_v2010_accountReadResponse.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) + + +## ListAddress + +> ApiV2010AccountAddressReadResponse ListAddress(ctx, accountSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to read. | + **optional** | ***ListAddressOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListAddressOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **customerName** | **optional.String**| The `customer_name` of the Address resources to read. | + **friendlyName** | **optional.String**| The string that identifies the Address resources to read. | + **isoCountry** | **optional.String**| The ISO country code of the Address resources to read. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountAddressReadResponse**](api_v2010_account_addressReadResponse.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) + + +## ListApplication + +> ApiV2010AccountApplicationReadResponse ListApplication(ctx, accountSid, optional) + + + +Retrieve a list of applications representing an application within the requesting account + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resources to read. | + **optional** | ***ListApplicationOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListApplicationOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **friendlyName** | **optional.String**| The string that identifies the Application resources to read. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountApplicationReadResponse**](api_v2010_account_applicationReadResponse.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) + + +## ListAuthorizedConnectApp + +> ApiV2010AccountAuthorizedConnectAppReadResponse ListAuthorizedConnectApp(ctx, accountSid, optional) + + + +Retrieve a list of authorized-connect-apps belonging to the account used to make the request + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the AuthorizedConnectApp resources to read. | + **optional** | ***ListAuthorizedConnectAppOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListAuthorizedConnectAppOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountAuthorizedConnectAppReadResponse**](api_v2010_account_authorized_connect_appReadResponse.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) + + +## ListAvailablePhoneNumberCountry + +> ApiV2010AccountAvailablePhoneNumberCountryReadResponse ListAvailablePhoneNumberCountry(ctx, accountSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the available phone number Country resources. | + **optional** | ***ListAvailablePhoneNumberCountryOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListAvailablePhoneNumberCountryOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountAvailablePhoneNumberCountryReadResponse**](api_v2010_account_available_phone_number_countryReadResponse.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) + + +## ListAvailablePhoneNumberLocal + +> ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse ListAvailablePhoneNumberLocal(ctx, accountSid, countryCode, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. | +**countryCode** | **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. | + **optional** | ***ListAvailablePhoneNumberLocalOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListAvailablePhoneNumberLocalOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **areaCode** | **optional.Int32**| The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. | + **contains** | **optional.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. | + **smsEnabled** | **optional.Bool**| Whether the phone numbers can receive text messages. Can be: `true` or `false`. | + **mmsEnabled** | **optional.Bool**| Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. | + **voiceEnabled** | **optional.Bool**| Whether the phone numbers can receive calls. Can be: `true` or `false`. | + **excludeAllAddressRequired** | **optional.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`. | + **excludeLocalAddressRequired** | **optional.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`. | + **excludeForeignAddressRequired** | **optional.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** | **optional.Bool**| Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | + **nearNumber** | **optional.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. | + **nearLatLong** | **optional.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** | **optional.Int32**| 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. | + **inPostalCode** | **optional.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. | + **inRegion** | **optional.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. | + **inRateCenter** | **optional.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. | + **inLata** | **optional.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. | + **inLocality** | **optional.String**| Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. | + **faxEnabled** | **optional.Bool**| Whether the phone numbers can receive faxes. Can be: `true` or `false`. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse**](api_v2010_account_available_phone_number_country_available_phone_number_localReadResponse.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) + + +## ListAvailablePhoneNumberMachineToMachine + +> ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse ListAvailablePhoneNumberMachineToMachine(ctx, accountSid, countryCode, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. | +**countryCode** | **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. | + **optional** | ***ListAvailablePhoneNumberMachineToMachineOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListAvailablePhoneNumberMachineToMachineOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **areaCode** | **optional.Int32**| The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. | + **contains** | **optional.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. | + **smsEnabled** | **optional.Bool**| Whether the phone numbers can receive text messages. Can be: `true` or `false`. | + **mmsEnabled** | **optional.Bool**| Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. | + **voiceEnabled** | **optional.Bool**| Whether the phone numbers can receive calls. Can be: `true` or `false`. | + **excludeAllAddressRequired** | **optional.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`. | + **excludeLocalAddressRequired** | **optional.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`. | + **excludeForeignAddressRequired** | **optional.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** | **optional.Bool**| Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | + **nearNumber** | **optional.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. | + **nearLatLong** | **optional.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** | **optional.Int32**| 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. | + **inPostalCode** | **optional.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. | + **inRegion** | **optional.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. | + **inRateCenter** | **optional.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. | + **inLata** | **optional.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. | + **inLocality** | **optional.String**| Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. | + **faxEnabled** | **optional.Bool**| Whether the phone numbers can receive faxes. Can be: `true` or `false`. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse**](api_v2010_account_available_phone_number_country_available_phone_number_machine_to_machineReadResponse.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) + + +## ListAvailablePhoneNumberMobile + +> ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse ListAvailablePhoneNumberMobile(ctx, accountSid, countryCode, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. | +**countryCode** | **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. | + **optional** | ***ListAvailablePhoneNumberMobileOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListAvailablePhoneNumberMobileOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **areaCode** | **optional.Int32**| The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. | + **contains** | **optional.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. | + **smsEnabled** | **optional.Bool**| Whether the phone numbers can receive text messages. Can be: `true` or `false`. | + **mmsEnabled** | **optional.Bool**| Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. | + **voiceEnabled** | **optional.Bool**| Whether the phone numbers can receive calls. Can be: `true` or `false`. | + **excludeAllAddressRequired** | **optional.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`. | + **excludeLocalAddressRequired** | **optional.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`. | + **excludeForeignAddressRequired** | **optional.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** | **optional.Bool**| Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | + **nearNumber** | **optional.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. | + **nearLatLong** | **optional.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** | **optional.Int32**| 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. | + **inPostalCode** | **optional.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. | + **inRegion** | **optional.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. | + **inRateCenter** | **optional.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. | + **inLata** | **optional.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. | + **inLocality** | **optional.String**| Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. | + **faxEnabled** | **optional.Bool**| Whether the phone numbers can receive faxes. Can be: `true` or `false`. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse**](api_v2010_account_available_phone_number_country_available_phone_number_mobileReadResponse.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) + + +## ListAvailablePhoneNumberNational + +> ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse ListAvailablePhoneNumberNational(ctx, accountSid, countryCode, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. | +**countryCode** | **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. | + **optional** | ***ListAvailablePhoneNumberNationalOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListAvailablePhoneNumberNationalOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **areaCode** | **optional.Int32**| The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. | + **contains** | **optional.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. | + **smsEnabled** | **optional.Bool**| Whether the phone numbers can receive text messages. Can be: `true` or `false`. | + **mmsEnabled** | **optional.Bool**| Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. | + **voiceEnabled** | **optional.Bool**| Whether the phone numbers can receive calls. Can be: `true` or `false`. | + **excludeAllAddressRequired** | **optional.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`. | + **excludeLocalAddressRequired** | **optional.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`. | + **excludeForeignAddressRequired** | **optional.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** | **optional.Bool**| Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | + **nearNumber** | **optional.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. | + **nearLatLong** | **optional.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** | **optional.Int32**| 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. | + **inPostalCode** | **optional.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. | + **inRegion** | **optional.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. | + **inRateCenter** | **optional.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. | + **inLata** | **optional.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. | + **inLocality** | **optional.String**| Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. | + **faxEnabled** | **optional.Bool**| Whether the phone numbers can receive faxes. Can be: `true` or `false`. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse**](api_v2010_account_available_phone_number_country_available_phone_number_nationalReadResponse.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) + + +## ListAvailablePhoneNumberSharedCost + +> ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse ListAvailablePhoneNumberSharedCost(ctx, accountSid, countryCode, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. | +**countryCode** | **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. | + **optional** | ***ListAvailablePhoneNumberSharedCostOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListAvailablePhoneNumberSharedCostOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **areaCode** | **optional.Int32**| The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. | + **contains** | **optional.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. | + **smsEnabled** | **optional.Bool**| Whether the phone numbers can receive text messages. Can be: `true` or `false`. | + **mmsEnabled** | **optional.Bool**| Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. | + **voiceEnabled** | **optional.Bool**| Whether the phone numbers can receive calls. Can be: `true` or `false`. | + **excludeAllAddressRequired** | **optional.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`. | + **excludeLocalAddressRequired** | **optional.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`. | + **excludeForeignAddressRequired** | **optional.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** | **optional.Bool**| Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | + **nearNumber** | **optional.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. | + **nearLatLong** | **optional.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** | **optional.Int32**| 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. | + **inPostalCode** | **optional.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. | + **inRegion** | **optional.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. | + **inRateCenter** | **optional.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. | + **inLata** | **optional.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. | + **inLocality** | **optional.String**| Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. | + **faxEnabled** | **optional.Bool**| Whether the phone numbers can receive faxes. Can be: `true` or `false`. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse**](api_v2010_account_available_phone_number_country_available_phone_number_shared_costReadResponse.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) + + +## ListAvailablePhoneNumberTollFree + +> ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse ListAvailablePhoneNumberTollFree(ctx, accountSid, countryCode, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. | +**countryCode** | **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. | + **optional** | ***ListAvailablePhoneNumberTollFreeOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListAvailablePhoneNumberTollFreeOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **areaCode** | **optional.Int32**| The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. | + **contains** | **optional.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. | + **smsEnabled** | **optional.Bool**| Whether the phone numbers can receive text messages. Can be: `true` or `false`. | + **mmsEnabled** | **optional.Bool**| Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. | + **voiceEnabled** | **optional.Bool**| Whether the phone numbers can receive calls. Can be: `true` or `false`. | + **excludeAllAddressRequired** | **optional.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`. | + **excludeLocalAddressRequired** | **optional.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`. | + **excludeForeignAddressRequired** | **optional.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** | **optional.Bool**| Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | + **nearNumber** | **optional.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. | + **nearLatLong** | **optional.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** | **optional.Int32**| 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. | + **inPostalCode** | **optional.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. | + **inRegion** | **optional.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. | + **inRateCenter** | **optional.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. | + **inLata** | **optional.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. | + **inLocality** | **optional.String**| Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. | + **faxEnabled** | **optional.Bool**| Whether the phone numbers can receive faxes. Can be: `true` or `false`. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse**](api_v2010_account_available_phone_number_country_available_phone_number_toll_freeReadResponse.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) + + +## ListAvailablePhoneNumberVoip + +> ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse ListAvailablePhoneNumberVoip(ctx, accountSid, countryCode, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. | +**countryCode** | **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. | + **optional** | ***ListAvailablePhoneNumberVoipOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListAvailablePhoneNumberVoipOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **areaCode** | **optional.Int32**| The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. | + **contains** | **optional.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. | + **smsEnabled** | **optional.Bool**| Whether the phone numbers can receive text messages. Can be: `true` or `false`. | + **mmsEnabled** | **optional.Bool**| Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. | + **voiceEnabled** | **optional.Bool**| Whether the phone numbers can receive calls. Can be: `true` or `false`. | + **excludeAllAddressRequired** | **optional.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`. | + **excludeLocalAddressRequired** | **optional.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`. | + **excludeForeignAddressRequired** | **optional.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** | **optional.Bool**| Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | + **nearNumber** | **optional.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. | + **nearLatLong** | **optional.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** | **optional.Int32**| 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. | + **inPostalCode** | **optional.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. | + **inRegion** | **optional.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. | + **inRateCenter** | **optional.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. | + **inLata** | **optional.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. | + **inLocality** | **optional.String**| Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. | + **faxEnabled** | **optional.Bool**| Whether the phone numbers can receive faxes. Can be: `true` or `false`. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse**](api_v2010_account_available_phone_number_country_available_phone_number_voipReadResponse.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) + + +## ListCall + +> ApiV2010AccountCallReadResponse ListCall(ctx, accountSid, optional) + + + +Retrieves a collection of calls made to and from your account + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to read. | + **optional** | ***ListCallOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListCallOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **to** | **optional.String**| Only show calls made to this phone number, SIP address, Client identifier or SIM SID. | + **from** | **optional.String**| Only include calls from this phone number, SIP address, Client identifier or SIM SID. | + **parentCallSid** | **optional.String**| Only include calls spawned by calls with this SID. | + **status** | **optional.String**| The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`. | + **startTime** | **optional.Time**| 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. | + **startTime2** | **optional.Time**| 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. | + **startTime2** | **optional.Time**| 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. | + **endTime** | **optional.Time**| 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. | + **endTime2** | **optional.Time**| 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. | + **endTime2** | **optional.Time**| 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. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountCallReadResponse**](api_v2010_account_callReadResponse.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) + + +## ListCallEvent + +> ApiV2010AccountCallCallEventReadResponse ListCallEvent(ctx, accountSid, callSid, optional) + + + +Retrieve a list of all events for a call. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The unique SID identifier of the Account. | +**callSid** | **string**| The unique SID identifier of the Call. | + **optional** | ***ListCallEventOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListCallEventOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountCallCallEventReadResponse**](api_v2010_account_call_call_eventReadResponse.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) + + +## ListCallNotification + +> ApiV2010AccountCallCallNotificationReadResponse ListCallNotification(ctx, accountSid, callSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call Notification resources to read. | +**callSid** | **string**| The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the Call Notification resources to read. | + **optional** | ***ListCallNotificationOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListCallNotificationOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **log** | **optional.Int32**| 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. | + **messageDate** | **optional.Time**| 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. | + **messageDate2** | **optional.Time**| 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. | + **messageDate2** | **optional.Time**| 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. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountCallCallNotificationReadResponse**](api_v2010_account_call_call_notificationReadResponse.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) + + +## ListCallRecording + +> ApiV2010AccountCallCallRecordingReadResponse ListCallRecording(ctx, accountSid, callSid, optional) + + + +Retrieve a list of recordings belonging to the call used to make the request + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to read. | +**callSid** | **string**| The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resources to read. | + **optional** | ***ListCallRecordingOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListCallRecordingOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **dateCreated** | **optional.Time**| 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. | + **dateCreated2** | **optional.Time**| 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. | + **dateCreated2** | **optional.Time**| 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. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountCallCallRecordingReadResponse**](api_v2010_account_call_call_recordingReadResponse.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) + + +## ListConference + +> ApiV2010AccountConferenceReadResponse ListConference(ctx, accountSid, optional) + + + +Retrieve a list of conferences belonging to the account used to make the request + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference resource(s) to read. | + **optional** | ***ListConferenceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListConferenceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **dateCreated** | **optional.Time**| 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`. | + **dateCreated2** | **optional.Time**| 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`. | + **dateCreated2** | **optional.Time**| 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`. | + **dateUpdated** | **optional.Time**| 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`. | + **dateUpdated2** | **optional.Time**| 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`. | + **dateUpdated2** | **optional.Time**| 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`. | + **friendlyName** | **optional.String**| The string that identifies the Conference resources to read. | + **status** | **optional.String**| The status of the resources to read. Can be: `init`, `in-progress`, or `completed`. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountConferenceReadResponse**](api_v2010_account_conferenceReadResponse.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) + + +## ListConferenceRecording + +> ApiV2010AccountConferenceConferenceRecordingReadResponse ListConferenceRecording(ctx, accountSid, conferenceSid, optional) + + + +Retrieve a list of recordings belonging to the call used to make the request + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resources to read. | +**conferenceSid** | **string**| The Conference SID that identifies the conference associated with the recording to read. | + **optional** | ***ListConferenceRecordingOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListConferenceRecordingOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **dateCreated** | **optional.Time**| 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. | + **dateCreated2** | **optional.Time**| 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. | + **dateCreated2** | **optional.Time**| 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. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountConferenceConferenceRecordingReadResponse**](api_v2010_account_conference_conference_recordingReadResponse.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) + + +## ListConnectApp + +> ApiV2010AccountConnectAppReadResponse ListConnectApp(ctx, accountSid, optional) + + + +Retrieve a list of connect-apps belonging to the account used to make the request + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resources to read. | + **optional** | ***ListConnectAppOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListConnectAppOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountConnectAppReadResponse**](api_v2010_account_connect_appReadResponse.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) + + +## ListDependentPhoneNumber + +> ApiV2010AccountAddressDependentPhoneNumberReadResponse ListDependentPhoneNumber(ctx, accountSid, addressSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the DependentPhoneNumber resources to read. | +**addressSid** | **string**| The SID of the Address resource associated with the phone number. | + **optional** | ***ListDependentPhoneNumberOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListDependentPhoneNumberOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountAddressDependentPhoneNumberReadResponse**](api_v2010_account_address_dependent_phone_numberReadResponse.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) + + +## ListIncomingPhoneNumber + +> ApiV2010AccountIncomingPhoneNumberReadResponse ListIncomingPhoneNumber(ctx, accountSid, optional) + + + +Retrieve a list of incoming-phone-numbers belonging to the account used to make the request. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IncomingPhoneNumber resources to read. | + **optional** | ***ListIncomingPhoneNumberOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListIncomingPhoneNumberOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **beta** | **optional.Bool**| Whether to include phone numbers new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | + **friendlyName** | **optional.String**| A string that identifies the IncomingPhoneNumber resources to read. | + **phoneNumber** | **optional.String**| The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. | + **origin** | **optional.String**| Whether to include phone numbers based on their origin. Can be: `twilio` or `hosted`. By default, phone numbers of all origin are included. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountIncomingPhoneNumberReadResponse**](api_v2010_account_incoming_phone_numberReadResponse.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) + + +## ListIncomingPhoneNumberAssignedAddOn + +> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse ListIncomingPhoneNumberAssignedAddOn(ctx, accountSid, resourceSid, optional) + + + +Retrieve a list of Add-on installations currently assigned to this Number. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. | +**resourceSid** | **string**| The SID of the Phone Number to which the Add-on is assigned. | + **optional** | ***ListIncomingPhoneNumberAssignedAddOnOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListIncomingPhoneNumberAssignedAddOnOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse**](api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_onReadResponse.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) + + +## ListIncomingPhoneNumberAssignedAddOnExtension + +> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse ListIncomingPhoneNumberAssignedAddOnExtension(ctx, accountSid, resourceSid, assignedAddOnSid, optional) + + + +Retrieve a list of Extensions for the Assigned Add-on. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. | +**resourceSid** | **string**| The SID of the Phone Number to which the Add-on is assigned. | +**assignedAddOnSid** | **string**| The SID that uniquely identifies the assigned Add-on installation. | + **optional** | ***ListIncomingPhoneNumberAssignedAddOnExtensionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListIncomingPhoneNumberAssignedAddOnExtensionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse**](api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_incoming_phone_number_assigned_add_on_extensionReadResponse.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) + + +## ListIncomingPhoneNumberLocal + +> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse ListIncomingPhoneNumberLocal(ctx, accountSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. | + **optional** | ***ListIncomingPhoneNumberLocalOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListIncomingPhoneNumberLocalOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **beta** | **optional.Bool**| Whether to include phone numbers new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | + **friendlyName** | **optional.String**| A string that identifies the resources to read. | + **phoneNumber** | **optional.String**| The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. | + **origin** | **optional.String**| Whether to include phone numbers based on their origin. Can be: `twilio` or `hosted`. By default, phone numbers of all origin are included. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse**](api_v2010_account_incoming_phone_number_incoming_phone_number_localReadResponse.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) + + +## ListIncomingPhoneNumberMobile + +> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse ListIncomingPhoneNumberMobile(ctx, accountSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. | + **optional** | ***ListIncomingPhoneNumberMobileOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListIncomingPhoneNumberMobileOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **beta** | **optional.Bool**| Whether to include phone numbers new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | + **friendlyName** | **optional.String**| A string that identifies the resources to read. | + **phoneNumber** | **optional.String**| The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. | + **origin** | **optional.String**| Whether to include phone numbers based on their origin. Can be: `twilio` or `hosted`. By default, phone numbers of all origin are included. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse**](api_v2010_account_incoming_phone_number_incoming_phone_number_mobileReadResponse.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) + + +## ListIncomingPhoneNumberTollFree + +> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse ListIncomingPhoneNumberTollFree(ctx, accountSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. | + **optional** | ***ListIncomingPhoneNumberTollFreeOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListIncomingPhoneNumberTollFreeOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **beta** | **optional.Bool**| Whether to include phone numbers new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | + **friendlyName** | **optional.String**| A string that identifies the resources to read. | + **phoneNumber** | **optional.String**| The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. | + **origin** | **optional.String**| Whether to include phone numbers based on their origin. Can be: `twilio` or `hosted`. By default, phone numbers of all origin are included. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse**](api_v2010_account_incoming_phone_number_incoming_phone_number_toll_freeReadResponse.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) + + +## ListKey + +> ApiV2010AccountKeyReadResponse ListKey(ctx, accountSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resources to read. | + **optional** | ***ListKeyOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListKeyOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountKeyReadResponse**](api_v2010_account_keyReadResponse.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) + + +## ListMedia + +> ApiV2010AccountMessageMediaReadResponse ListMedia(ctx, accountSid, messageSid, optional) + + + +Retrieve a list of Media resources belonging to the account used to make the request + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Media resource(s) to read. | +**messageSid** | **string**| The SID of the Message resource that this Media resource belongs to. | + **optional** | ***ListMediaOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListMediaOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **dateCreated** | **optional.Time**| 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. | + **dateCreated2** | **optional.Time**| 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. | + **dateCreated2** | **optional.Time**| 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. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountMessageMediaReadResponse**](api_v2010_account_message_mediaReadResponse.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) + + +## ListMember + +> ApiV2010AccountQueueMemberReadResponse ListMember(ctx, accountSid, queueSid, optional) + + + +Retrieve the members of the queue + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Member resource(s) to read. | +**queueSid** | **string**| The SID of the Queue in which to find the members | + **optional** | ***ListMemberOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListMemberOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountQueueMemberReadResponse**](api_v2010_account_queue_memberReadResponse.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) + + +## ListMessage + +> ApiV2010AccountMessageReadResponse ListMessage(ctx, accountSid, optional) + + + +Retrieve a list of messages belonging to the account used to make the request + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Message resources to read. | + **optional** | ***ListMessageOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListMessageOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **to** | **optional.String**| Read messages sent to only this phone number. | + **from** | **optional.String**| Read messages sent from only this phone number or alphanumeric sender ID. | + **dateSent** | **optional.Time**| 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. | + **dateSent2** | **optional.Time**| 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. | + **dateSent2** | **optional.Time**| 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. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountMessageReadResponse**](api_v2010_account_messageReadResponse.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) + + +## ListNotification + +> ApiV2010AccountNotificationReadResponse ListNotification(ctx, accountSid, optional) + + + +Retrieve a list of notifications belonging to the account used to make the request + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Notification resources to read. | + **optional** | ***ListNotificationOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListNotificationOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **log** | **optional.Int32**| 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. | + **messageDate** | **optional.Time**| 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. | + **messageDate2** | **optional.Time**| 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. | + **messageDate2** | **optional.Time**| 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. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountNotificationReadResponse**](api_v2010_account_notificationReadResponse.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) + + +## ListOutgoingCallerId + +> ApiV2010AccountOutgoingCallerIdReadResponse ListOutgoingCallerId(ctx, accountSid, optional) + + + +Retrieve a list of outgoing-caller-ids belonging to the account used to make the request + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resources to read. | + **optional** | ***ListOutgoingCallerIdOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListOutgoingCallerIdOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **phoneNumber** | **optional.String**| The phone number of the OutgoingCallerId resources to read. | + **friendlyName** | **optional.String**| The string that identifies the OutgoingCallerId resources to read. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountOutgoingCallerIdReadResponse**](api_v2010_account_outgoing_caller_idReadResponse.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) + + +## ListParticipant + +> ApiV2010AccountConferenceParticipantReadResponse ListParticipant(ctx, accountSid, conferenceSid, optional) + + + +Retrieve a list of participants belonging to the account used to make the request + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resources to read. | +**conferenceSid** | **string**| The SID of the conference with the participants to read. | + **optional** | ***ListParticipantOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListParticipantOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **muted** | **optional.Bool**| Whether to return only participants that are muted. Can be: `true` or `false`. | + **hold** | **optional.Bool**| Whether to return only participants that are on hold. Can be: `true` or `false`. | + **coaching** | **optional.Bool**| Whether to return only participants who are coaching another call. Can be: `true` or `false`. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountConferenceParticipantReadResponse**](api_v2010_account_conference_participantReadResponse.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) + + +## ListQueue + +> ApiV2010AccountQueueReadResponse ListQueue(ctx, accountSid, optional) + + + +Retrieve a list of queues belonging to the account used to make the request + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resources to read. | + **optional** | ***ListQueueOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListQueueOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountQueueReadResponse**](api_v2010_account_queueReadResponse.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) + + +## ListRecording + +> ApiV2010AccountRecordingReadResponse ListRecording(ctx, accountSid, optional) + + + +Retrieve a list of recordings belonging to the account used to make the request + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to read. | + **optional** | ***ListRecordingOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListRecordingOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **dateCreated** | **optional.Time**| 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. | + **dateCreated2** | **optional.Time**| 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. | + **dateCreated2** | **optional.Time**| 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. | + **callSid** | **optional.String**| The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resources to read. | + **conferenceSid** | **optional.String**| The Conference SID that identifies the conference associated with the recording to read. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountRecordingReadResponse**](api_v2010_account_recordingReadResponse.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) + + +## ListRecordingAddOnResult + +> ApiV2010AccountRecordingRecordingAddOnResultReadResponse ListRecordingAddOnResult(ctx, accountSid, referenceSid, optional) + + + +Retrieve a list of results belonging to the recording + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult resources to read. | +**referenceSid** | **string**| The SID of the recording to which the result to read belongs. | + **optional** | ***ListRecordingAddOnResultOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListRecordingAddOnResultOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountRecordingRecordingAddOnResultReadResponse**](api_v2010_account_recording_recording_add_on_resultReadResponse.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) + + +## ListRecordingAddOnResultPayload + +> ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse ListRecordingAddOnResultPayload(ctx, accountSid, referenceSid, addOnResultSid, optional) + + + +Retrieve a list of payloads belonging to the AddOnResult + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resources to read. | +**referenceSid** | **string**| The SID of the recording to which the AddOnResult resource that contains the payloads to read belongs. | +**addOnResultSid** | **string**| The SID of the AddOnResult to which the payloads to read belongs. | + **optional** | ***ListRecordingAddOnResultPayloadOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListRecordingAddOnResultPayloadOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse**](api_v2010_account_recording_recording_add_on_result_recording_add_on_result_payloadReadResponse.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) + + +## ListRecordingTranscription + +> ApiV2010AccountRecordingRecordingTranscriptionReadResponse ListRecordingTranscription(ctx, accountSid, recordingSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to read. | +**recordingSid** | **string**| The SID of the [Recording](https://www.twilio.com/docs/voice/api/recording) that created the transcriptions to read. | + **optional** | ***ListRecordingTranscriptionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListRecordingTranscriptionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountRecordingRecordingTranscriptionReadResponse**](api_v2010_account_recording_recording_transcriptionReadResponse.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) + + +## ListShortCode + +> ApiV2010AccountShortCodeReadResponse ListShortCode(ctx, accountSid, optional) + + + +Retrieve a list of short-codes belonging to the account used to make the request + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ShortCode resource(s) to read. | + **optional** | ***ListShortCodeOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListShortCodeOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **friendlyName** | **optional.String**| The string that identifies the ShortCode resources to read. | + **shortCode** | **optional.String**| Only show the ShortCode resources that match this pattern. You can specify partial numbers and use '*' as a wildcard for any digit. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountShortCodeReadResponse**](api_v2010_account_short_codeReadResponse.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) + + +## ListSigningKey + +> ApiV2010AccountSigningKeyReadResponse ListSigningKey(ctx, accountSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| | + **optional** | ***ListSigningKeyOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListSigningKeyOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountSigningKeyReadResponse**](api_v2010_account_signing_keyReadResponse.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) + + +## ListSipAuthCallsCredentialListMapping + +> ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse ListSipAuthCallsCredentialListMapping(ctx, accountSid, domainSid, optional) + + + +Retrieve a list of credential list mappings belonging to the domain used in the request + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to read. | +**domainSid** | **string**| The SID of the SIP domain that contains the resources to read. | + **optional** | ***ListSipAuthCallsCredentialListMappingOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListSipAuthCallsCredentialListMappingOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse**](api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_credential_list_mappingReadResponse.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) + + +## ListSipAuthCallsIpAccessControlListMapping + +> ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse ListSipAuthCallsIpAccessControlListMapping(ctx, accountSid, domainSid, optional) + + + +Retrieve a list of IP Access Control List mappings belonging to the domain used in the request + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IpAccessControlListMapping resources to read. | +**domainSid** | **string**| The SID of the SIP domain that contains the resources to read. | + **optional** | ***ListSipAuthCallsIpAccessControlListMappingOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListSipAuthCallsIpAccessControlListMappingOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse**](api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_ip_access_control_list_mappingReadResponse.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) + + +## ListSipAuthRegistrationsCredentialListMapping + +> ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse ListSipAuthRegistrationsCredentialListMapping(ctx, accountSid, domainSid, optional) + + + +Retrieve a list of credential list mappings belonging to the domain used in the request + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to read. | +**domainSid** | **string**| The SID of the SIP domain that contains the resources to read. | + **optional** | ***ListSipAuthRegistrationsCredentialListMappingOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListSipAuthRegistrationsCredentialListMappingOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse**](api_v2010_account_sip_sip_domain_sip_auth_sip_auth_registrations_sip_auth_registrations_credential_list_mappingReadResponse.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) + + +## ListSipCredential + +> ApiV2010AccountSipSipCredentialListSipCredentialReadResponse ListSipCredential(ctx, accountSid, credentialListSid, optional) + + + +Retrieve a list of credentials. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The unique id of the Account that is responsible for this resource. | +**credentialListSid** | **string**| The unique id that identifies the credential list that contains the desired credentials. | + **optional** | ***ListSipCredentialOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListSipCredentialOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountSipSipCredentialListSipCredentialReadResponse**](api_v2010_account_sip_sip_credential_list_sip_credentialReadResponse.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) + + +## ListSipCredentialList + +> ApiV2010AccountSipSipCredentialListReadResponse ListSipCredentialList(ctx, accountSid, optional) + + + +Get All Credential Lists + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The unique id of the Account that is responsible for this resource. | + **optional** | ***ListSipCredentialListOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListSipCredentialListOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountSipSipCredentialListReadResponse**](api_v2010_account_sip_sip_credential_listReadResponse.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) + + +## ListSipCredentialListMapping + +> ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse ListSipCredentialListMapping(ctx, accountSid, domainSid, optional) + + + +Read multiple CredentialListMapping resources from an account. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | +**domainSid** | **string**| A 34 character string that uniquely identifies the SIP Domain that includes the resource to read. | + **optional** | ***ListSipCredentialListMappingOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListSipCredentialListMappingOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse**](api_v2010_account_sip_sip_domain_sip_credential_list_mappingReadResponse.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) + + +## ListSipDomain + +> ApiV2010AccountSipSipDomainReadResponse ListSipDomain(ctx, accountSid, optional) + + + +Retrieve a list of domains belonging to the account used to make the request + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resources to read. | + **optional** | ***ListSipDomainOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListSipDomainOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountSipSipDomainReadResponse**](api_v2010_account_sip_sip_domainReadResponse.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) + + +## ListSipIpAccessControlList + +> ApiV2010AccountSipSipIpAccessControlListReadResponse ListSipIpAccessControlList(ctx, accountSid, optional) + + + +Retrieve a list of IpAccessControlLists that belong to the account used to make the request + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | + **optional** | ***ListSipIpAccessControlListOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListSipIpAccessControlListOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountSipSipIpAccessControlListReadResponse**](api_v2010_account_sip_sip_ip_access_control_listReadResponse.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) + + +## ListSipIpAccessControlListMapping + +> ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse ListSipIpAccessControlListMapping(ctx, accountSid, domainSid, optional) + + + +Retrieve a list of IpAccessControlListMapping resources. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The unique id of the Account that is responsible for this resource. | +**domainSid** | **string**| A 34 character string that uniquely identifies the SIP domain. | + **optional** | ***ListSipIpAccessControlListMappingOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListSipIpAccessControlListMappingOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse**](api_v2010_account_sip_sip_domain_sip_ip_access_control_list_mappingReadResponse.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) + + +## ListSipIpAddress + +> ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse ListSipIpAddress(ctx, accountSid, ipAccessControlListSid, optional) + + + +Read multiple IpAddress resources. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | +**ipAccessControlListSid** | **string**| The IpAccessControlList Sid that identifies the IpAddress resources to read. | + **optional** | ***ListSipIpAddressOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListSipIpAddressOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse**](api_v2010_account_sip_sip_ip_access_control_list_sip_ip_addressReadResponse.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) + + +## ListTranscription + +> ApiV2010AccountTranscriptionReadResponse ListTranscription(ctx, accountSid, optional) + + + +Retrieve a list of transcriptions belonging to the account used to make the request + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to read. | + **optional** | ***ListTranscriptionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListTranscriptionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountTranscriptionReadResponse**](api_v2010_account_transcriptionReadResponse.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) + + +## ListUsageRecord + +> ApiV2010AccountUsageUsageRecordReadResponse ListUsageRecord(ctx, accountSid, optional) + + + +Retrieve a list of usage-records belonging to the account used to make the request + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | + **optional** | ***ListUsageRecordOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListUsageRecordOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **category** | **optional.String**| 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. | + **startDate** | **optional.Time**| 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. | + **endDate** | **optional.Time**| 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. | + **includeSubaccounts** | **optional.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. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountUsageUsageRecordReadResponse**](api_v2010_account_usage_usage_recordReadResponse.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) + + +## ListUsageRecordAllTime + +> ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse ListUsageRecordAllTime(ctx, accountSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | + **optional** | ***ListUsageRecordAllTimeOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListUsageRecordAllTimeOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **category** | **optional.String**| 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. | + **startDate** | **optional.Time**| 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. | + **endDate** | **optional.Time**| 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. | + **includeSubaccounts** | **optional.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. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse**](api_v2010_account_usage_usage_record_usage_record_all_timeReadResponse.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) + + +## ListUsageRecordDaily + +> ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse ListUsageRecordDaily(ctx, accountSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | + **optional** | ***ListUsageRecordDailyOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListUsageRecordDailyOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **category** | **optional.String**| 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. | + **startDate** | **optional.Time**| 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. | + **endDate** | **optional.Time**| 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. | + **includeSubaccounts** | **optional.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. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse**](api_v2010_account_usage_usage_record_usage_record_dailyReadResponse.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) + + +## ListUsageRecordLastMonth + +> ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse ListUsageRecordLastMonth(ctx, accountSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | + **optional** | ***ListUsageRecordLastMonthOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListUsageRecordLastMonthOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **category** | **optional.String**| 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. | + **startDate** | **optional.Time**| 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. | + **endDate** | **optional.Time**| 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. | + **includeSubaccounts** | **optional.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. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse**](api_v2010_account_usage_usage_record_usage_record_last_monthReadResponse.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) + + +## ListUsageRecordMonthly + +> ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse ListUsageRecordMonthly(ctx, accountSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | + **optional** | ***ListUsageRecordMonthlyOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListUsageRecordMonthlyOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **category** | **optional.String**| 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. | + **startDate** | **optional.Time**| 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. | + **endDate** | **optional.Time**| 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. | + **includeSubaccounts** | **optional.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. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse**](api_v2010_account_usage_usage_record_usage_record_monthlyReadResponse.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) + + +## ListUsageRecordThisMonth + +> ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse ListUsageRecordThisMonth(ctx, accountSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | + **optional** | ***ListUsageRecordThisMonthOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListUsageRecordThisMonthOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **category** | **optional.String**| 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. | + **startDate** | **optional.Time**| 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. | + **endDate** | **optional.Time**| 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. | + **includeSubaccounts** | **optional.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. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse**](api_v2010_account_usage_usage_record_usage_record_this_monthReadResponse.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) + + +## ListUsageRecordToday + +> ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse ListUsageRecordToday(ctx, accountSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | + **optional** | ***ListUsageRecordTodayOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListUsageRecordTodayOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **category** | **optional.String**| 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. | + **startDate** | **optional.Time**| 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. | + **endDate** | **optional.Time**| 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. | + **includeSubaccounts** | **optional.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. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse**](api_v2010_account_usage_usage_record_usage_record_todayReadResponse.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) + + +## ListUsageRecordYearly + +> ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse ListUsageRecordYearly(ctx, accountSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | + **optional** | ***ListUsageRecordYearlyOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListUsageRecordYearlyOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **category** | **optional.String**| 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. | + **startDate** | **optional.Time**| 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. | + **endDate** | **optional.Time**| 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. | + **includeSubaccounts** | **optional.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. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse**](api_v2010_account_usage_usage_record_usage_record_yearlyReadResponse.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) + + +## ListUsageRecordYesterday + +> ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse ListUsageRecordYesterday(ctx, accountSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | + **optional** | ***ListUsageRecordYesterdayOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListUsageRecordYesterdayOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **category** | **optional.String**| 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. | + **startDate** | **optional.Time**| 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. | + **endDate** | **optional.Time**| 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. | + **includeSubaccounts** | **optional.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. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse**](api_v2010_account_usage_usage_record_usage_record_yesterdayReadResponse.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) + + +## ListUsageTrigger + +> ApiV2010AccountUsageUsageTriggerReadResponse ListUsageTrigger(ctx, accountSid, optional) + + + +Retrieve a list of usage-triggers belonging to the account used to make the request + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resources to read. | + **optional** | ***ListUsageTriggerOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListUsageTriggerOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **recurring** | **optional.String**| 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. | + **triggerBy** | **optional.String**| 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). | + **usageCategory** | **optional.String**| 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). | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ApiV2010AccountUsageUsageTriggerReadResponse**](api_v2010_account_usage_usage_triggerReadResponse.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) + + +## UpdateAccount + +> ApiV2010Account UpdateAccount(ctx, sid, optional) + + + +Modify the properties of a given Account + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Account Sid that uniquely identifies the account to update | + **optional** | ***UpdateAccountOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateAccountOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **friendlyName** | **optional.String**| Update the human-readable description of this Account | + **status** | **optional.String**| Alter the status of this account: use `closed` to irreversibly close this account, `suspended` to temporarily suspend it, or `active` to reactivate it. | + +### Return type + +[**ApiV2010Account**](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) + + +## UpdateAddress + +> ApiV2010AccountAddress UpdateAddress(ctx, accountSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to update. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Address resource to update. | + **optional** | ***UpdateAddressOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateAddressOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **autoCorrectAddress** | **optional.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. | + **city** | **optional.String**| The city of the address. | + **customerName** | **optional.String**| The name to associate with the address. | + **emergencyEnabled** | **optional.Bool**| Whether to enable emergency calling on the address. Can be: `true` or `false`. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the address. It can be up to 64 characters long. | + **postalCode** | **optional.String**| The postal code of the address. | + **region** | **optional.String**| The state or region of the address. | + **street** | **optional.String**| The number and street address of the address. | + +### Return type + +[**ApiV2010AccountAddress**](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) + + +## UpdateApplication + +> ApiV2010AccountApplication UpdateApplication(ctx, accountSid, sid, optional) + + + +Updates the application's properties + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resources to update. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Application resource to update. | + **optional** | ***UpdateApplicationOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateApplicationOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **apiVersion** | **optional.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. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **messageStatusCallback** | **optional.String**| The URL we should call using a POST method to send message status information to your application. | + **smsFallbackMethod** | **optional.String**| The HTTP method we should use to call `sms_fallback_url`. Can be: `GET` or `POST`. | + **smsFallbackUrl** | **optional.String**| The URL that we should call when an error occurs while retrieving or executing the TwiML from `sms_url`. | + **smsMethod** | **optional.String**| The HTTP method we should use to call `sms_url`. Can be: `GET` or `POST`. | + **smsStatusCallback** | **optional.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. | + **smsUrl** | **optional.String**| The URL we should call when the phone number receives an incoming SMS message. | + **statusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application. | + **statusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST`. | + **voiceCallerIdLookup** | **optional.Bool**| Whether we should look up the caller's caller-ID name from the CNAM database (additional charges apply). Can be: `true` or `false`. | + **voiceFallbackMethod** | **optional.String**| The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. | + **voiceFallbackUrl** | **optional.String**| The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | + **voiceMethod** | **optional.String**| The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`. | + **voiceUrl** | **optional.String**| The URL we should call when the phone number assigned to this application receives a call. | + +### Return type + +[**ApiV2010AccountApplication**](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) + + +## UpdateCall + +> ApiV2010AccountCall UpdateCall(ctx, accountSid, sid, optional) + + + +Initiates a call redirect or terminates a call + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to update. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Call resource to update | + **optional** | ***UpdateCallOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateCallOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **fallbackMethod** | **optional.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. | + **fallbackUrl** | **optional.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. | + **method** | **optional.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** | **optional.String**| The new status of the resource. Can be: `canceled` or `completed`. Specifying `canceled` will attempt to hang up calls that are queued or ringing; however, it will not affect calls already in progress. Specifying `completed` will attempt to hang up a call even if it's already in progress. | + **statusCallback** | **optional.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). | + **statusCallbackMethod** | **optional.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** | **optional.String**| TwiML instructions for the call Twilio will use without fetching Twiml from url. Twiml and url parameters are mutually exclusive | + **url** | **optional.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). | + +### Return type + +[**ApiV2010AccountCall**](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) + + +## UpdateCallFeedback + +> ApiV2010AccountCallCallFeedback UpdateCallFeedback(ctx, accountSid, callSid, optional) + + + +Update a Feedback resource for a call + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | +**callSid** | **string**| The call sid that uniquely identifies the call | + **optional** | ***UpdateCallFeedbackOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateCallFeedbackOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **issue** | [**optional.Interface of []string**](string.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`. | + **qualityScore** | **optional.Int32**| The call quality expressed as an integer from `1` to `5` where `1` represents very poor call quality and `5` represents a perfect call. | + +### Return type + +[**ApiV2010AccountCallCallFeedback**](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) + + +## UpdateCallRecording + +> ApiV2010AccountCallCallRecording UpdateCallRecording(ctx, accountSid, callSid, sid, optional) + + + +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. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource to update. | +**callSid** | **string**| The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource to update. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Recording resource to update. | + **optional** | ***UpdateCallRecordingOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateCallRecordingOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **pauseBehavior** | **optional.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`. | + **status** | **optional.String**| The new status of the recording. Can be: `stopped`, `paused`, `in-progress`. | + +### Return type + +[**ApiV2010AccountCallCallRecording**](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) + + +## UpdateConference + +> ApiV2010AccountConference UpdateConference(ctx, accountSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference resource(s) to update. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Conference resource to update | + **optional** | ***UpdateConferenceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateConferenceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **announceMethod** | **optional.String**| The HTTP method used to call `announce_url`. Can be: `GET` or `POST` and the default is `POST` | + **announceUrl** | **optional.String**| The URL we should call to announce something into the conference. The URL can return an MP3, a WAV, or a TwiML document with `<Play>` or `<Say>`. | + **status** | **optional.String**| The new status of the resource. Can be: Can be: `init`, `in-progress`, or `completed`. Specifying `completed` will end the conference and hang up all participants | + +### Return type + +[**ApiV2010AccountConference**](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) + + +## UpdateConferenceRecording + +> ApiV2010AccountConferenceConferenceRecording UpdateConferenceRecording(ctx, accountSid, conferenceSid, sid, optional) + + + +Changes the status of the recording to paused, stopped, or in-progress. Note: To use `Twilio.CURRENT`, pass it as recording sid. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resource to update. | +**conferenceSid** | **string**| The Conference SID that identifies the conference associated with the recording to update. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Conference Recording resource to update. Use `Twilio.CURRENT` to reference the current active recording. | + **optional** | ***UpdateConferenceRecordingOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateConferenceRecordingOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **pauseBehavior** | **optional.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`. | + **status** | **optional.String**| The new status of the recording. Can be: `stopped`, `paused`, `in-progress`. | + +### Return type + +[**ApiV2010AccountConferenceConferenceRecording**](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) + + +## UpdateConnectApp + +> ApiV2010AccountConnectApp UpdateConnectApp(ctx, accountSid, sid, optional) + + + +Update a connect-app with the specified parameters + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resources to update. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the ConnectApp resource to update. | + **optional** | ***UpdateConnectAppOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateConnectAppOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **authorizeRedirectUrl** | **optional.String**| The URL to redirect the user to after we authenticate the user and obtain authorization to access the Connect App. | + **companyName** | **optional.String**| The company name to set for the Connect App. | + **deauthorizeCallbackMethod** | **optional.String**| The HTTP method to use when calling `deauthorize_callback_url`. | + **deauthorizeCallbackUrl** | **optional.String**| The URL to call using the `deauthorize_callback_method` to de-authorize the Connect App. | + **description** | **optional.String**| A description of the Connect App. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **homepageUrl** | **optional.String**| A public URL where users can obtain more information about this Connect App. | + **permissions** | [**optional.Interface of []string**](string.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 + +[**ApiV2010AccountConnectApp**](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) + + +## UpdateIncomingPhoneNumber + +> ApiV2010AccountIncomingPhoneNumber UpdateIncomingPhoneNumber(ctx, accountSid, sid, optional) + + + +Update an incoming-phone-number instance. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **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). | +**sid** | **string**| The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to update. | + **optional** | ***UpdateIncomingPhoneNumberOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateIncomingPhoneNumberOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **accountSid** | **optional.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). | + **addressSid** | **optional.String**| The SID of the Address resource we should associate with the phone number. Some regions require addresses to meet local regulations. | + **apiVersion** | **optional.String**| The API version to use for incoming calls made to the phone number. The default is `2010-04-01`. | + **bundleSid** | **optional.String**| The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | + **emergencyAddressSid** | **optional.String**| The SID of the emergency address configuration to use for emergency calling from this phone number. | + **emergencyStatus** | **optional.String**| The configuration status parameter that determines whether the phone number is enabled for emergency calling. | + **friendlyName** | **optional.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. | + **identitySid** | **optional.String**| The SID of the Identity resource that we should associate with the phone number. Some regions require an identity to meet local regulations. | + **smsApplicationSid** | **optional.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. | + **smsFallbackMethod** | **optional.String**| The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **smsFallbackUrl** | **optional.String**| The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. | + **smsMethod** | **optional.String**| The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **smsUrl** | **optional.String**| The URL we should call when the phone number receives an incoming SMS message. | + **statusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application. | + **statusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | + **trunkSid** | **optional.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. | + **voiceApplicationSid** | **optional.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. | + **voiceCallerIdLookup** | **optional.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`. | + **voiceFallbackMethod** | **optional.String**| The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **voiceFallbackUrl** | **optional.String**| The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | + **voiceMethod** | **optional.String**| The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **voiceReceiveMode** | **optional.String**| The configuration parameter for the phone number to receive incoming voice calls or faxes. Can be: `fax` or `voice` and defaults to `voice`. | + **voiceUrl** | **optional.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. | + +### Return type + +[**ApiV2010AccountIncomingPhoneNumber**](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) + + +## UpdateKey + +> ApiV2010AccountKey UpdateKey(ctx, accountSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resources to update. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Key resource to update. | + **optional** | ***UpdateKeyOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateKeyOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + +### Return type + +[**ApiV2010AccountKey**](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) + + +## UpdateMember + +> ApiV2010AccountQueueMember UpdateMember(ctx, accountSid, queueSid, callSid, optional) + + + +Dequeue a member from a queue and have the member's call begin executing the TwiML document at that URL + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Member resource(s) to update. | +**queueSid** | **string**| The SID of the Queue in which to find the members to update. | +**callSid** | **string**| The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource(s) to update. | + **optional** | ***UpdateMemberOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateMemberOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **method** | **optional.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. | + **url** | **optional.String**| The absolute URL of the Queue resource. | + +### Return type + +[**ApiV2010AccountQueueMember**](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) + + +## UpdateMessage + +> ApiV2010AccountMessage UpdateMessage(ctx, accountSid, sid, optional) + + + +To redact a message-body from a post-flight message record, post to the message instance resource with an empty body + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Message resources to update. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Message resource to update. | + **optional** | ***UpdateMessageOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateMessageOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **body** | **optional.String**| The text of the message you want to send. Can be up to 1,600 characters long. | + +### Return type + +[**ApiV2010AccountMessage**](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) + + +## UpdateOutgoingCallerId + +> ApiV2010AccountOutgoingCallerId UpdateOutgoingCallerId(ctx, accountSid, sid, optional) + + + +Updates the caller-id + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resources to update. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the OutgoingCallerId resource to update. | + **optional** | ***UpdateOutgoingCallerIdOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateOutgoingCallerIdOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + +### Return type + +[**ApiV2010AccountOutgoingCallerId**](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) + + +## UpdateParticipant + +> ApiV2010AccountConferenceParticipant UpdateParticipant(ctx, accountSid, conferenceSid, callSid, optional) + + + +Update the properties of the participant + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resources to update. | +**conferenceSid** | **string**| The SID of the conference with the participant to update. | +**callSid** | **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. | + **optional** | ***UpdateParticipantOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateParticipantOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **announceMethod** | **optional.String**| The HTTP method we should use to call `announce_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **announceUrl** | **optional.String**| The URL we call using the `announce_method` for an announcement to the participant. The URL must return an MP3 file, a WAV file, or a TwiML document that contains `<Play>` or `<Say>` commands. | + **beepOnExit** | **optional.Bool**| Whether to play a notification beep to the conference when the participant exits. Can be: `true` or `false`. | + **callSidToCoach** | **optional.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`. | + **coaching** | **optional.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. | + **endConferenceOnExit** | **optional.Bool**| Whether to end the conference when the participant leaves. Can be: `true` or `false` and defaults to `false`. | + **hold** | **optional.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. | + **holdMethod** | **optional.String**| The HTTP method we should use to call `hold_url`. Can be: `GET` or `POST` and the default is `GET`. | + **holdUrl** | **optional.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 the `<Play>`, `<Say>` or `<Redirect>` commands. | + **muted** | **optional.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`. | + **waitMethod** | **optional.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. | + **waitUrl** | **optional.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). | + +### Return type + +[**ApiV2010AccountConferenceParticipant**](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) + + +## UpdatePayments + +> ApiV2010AccountCallPayments UpdatePayments(ctx, accountSid, callSid, sid, optional) + + + +update an instance of payments with different phases of payment flows. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will update the resource. | +**callSid** | **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. | +**sid** | **string**| The SID of Payments session that needs to be updated. | + **optional** | ***UpdatePaymentsOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdatePaymentsOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **capture** | **optional.String**| The piece of payment information that you wish the caller to enter. Must be one of `payment-card-number`, `expiration-date`, `security-code`, `postal-code`, `bank-routing-number`, or `bank-account-number`. | + **idempotencyKey** | **optional.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. | + **status** | **optional.String**| Indicates whether the current payment session should be cancelled or completed. When `cancel` the payment session is cancelled. When `complete`, Twilio sends the payment information to the selected <Pay> connector for processing. | + **statusCallback** | **optional.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. | + +### Return type + +[**ApiV2010AccountCallPayments**](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) + + +## UpdateQueue + +> ApiV2010AccountQueue UpdateQueue(ctx, accountSid, sid, optional) + + + +Update the queue with the new parameters + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resource to update. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Queue resource to update | + **optional** | ***UpdateQueueOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateQueueOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **friendlyName** | **optional.String**| A descriptive string that you created to describe this resource. It can be up to 64 characters long. | + **maxSize** | **optional.Int32**| The maximum number of calls allowed to be in the queue. The default is 100. The maximum is 5000. | + +### Return type + +[**ApiV2010AccountQueue**](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) + + +## UpdateShortCode + +> ApiV2010AccountShortCode UpdateShortCode(ctx, accountSid, sid, optional) + + + +Update a short code with the following parameters + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ShortCode resource(s) to update. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the ShortCode resource to update | + **optional** | ***UpdateShortCodeOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateShortCodeOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **apiVersion** | **optional.String**| The API version to use to start a new TwiML session. Can be: `2010-04-01` or `2008-08-01`. | + **friendlyName** | **optional.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. | + **smsFallbackMethod** | **optional.String**| The HTTP method that we should use to call the `sms_fallback_url`. Can be: `GET` or `POST`. | + **smsFallbackUrl** | **optional.String**| The URL that we should call if an error occurs while retrieving or executing the TwiML from `sms_url`. | + **smsMethod** | **optional.String**| The HTTP method we should use when calling the `sms_url`. Can be: `GET` or `POST`. | + **smsUrl** | **optional.String**| The URL we should call when receiving an incoming SMS message to this short code. | + +### Return type + +[**ApiV2010AccountShortCode**](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) + + +## UpdateSigningKey + +> ApiV2010AccountSigningKey UpdateSigningKey(ctx, accountSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| | +**sid** | **string**| | + **optional** | ***UpdateSigningKeyOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateSigningKeyOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **friendlyName** | **optional.String**| | + +### Return type + +[**ApiV2010AccountSigningKey**](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) + + +## UpdateSipCredential + +> ApiV2010AccountSipSipCredentialListSipCredential UpdateSipCredential(ctx, accountSid, credentialListSid, sid, optional) + + + +Update a credential resource. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The unique id of the Account that is responsible for this resource. | +**credentialListSid** | **string**| The unique id that identifies the credential list that includes this credential. | +**sid** | **string**| The unique id that identifies the resource to update. | + **optional** | ***UpdateSipCredentialOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateSipCredentialOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **password** | **optional.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 + +[**ApiV2010AccountSipSipCredentialListSipCredential**](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) + + +## UpdateSipCredentialList + +> ApiV2010AccountSipSipCredentialList UpdateSipCredentialList(ctx, accountSid, sid, optional) + + + +Update a Credential List + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The unique id of the Account that is responsible for this resource. | +**sid** | **string**| The credential list Sid that uniquely identifies this resource | + **optional** | ***UpdateSipCredentialListOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateSipCredentialListOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **friendlyName** | **optional.String**| A human readable descriptive text for a CredentialList, up to 64 characters long. | + +### Return type + +[**ApiV2010AccountSipSipCredentialList**](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) + + +## UpdateSipDomain + +> ApiV2010AccountSipSipDomain UpdateSipDomain(ctx, accountSid, sid, optional) + + + +Update the attributes of a domain + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resource to update. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the SipDomain resource to update. | + **optional** | ***UpdateSipDomainOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateSipDomainOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **byocTrunkSid** | **optional.String**| The SID of the BYOC Trunk(Bring Your Own Carrier) resource that the Sip Domain will be associated with. | + **domainName** | **optional.String**| The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and \\\"-\\\". | + **emergencyCallerSid** | **optional.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. | + **emergencyCallingEnabled** | **optional.Bool**| Whether emergency calling is enabled for the domain. If enabled, allows emergency calls on the domain from phone numbers with validated addresses. | + **friendlyName** | **optional.String**| A descriptive string that you created to describe the resource. It can be up to 64 characters long. | + **secure** | **optional.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. | + **sipRegistration** | **optional.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. | + **voiceFallbackMethod** | **optional.String**| The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. | + **voiceFallbackUrl** | **optional.String**| The URL that we should call when an error occurs while retrieving or executing the TwiML requested by `voice_url`. | + **voiceMethod** | **optional.String**| The HTTP method we should use to call `voice_url` | + **voiceStatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `voice_status_callback_url`. Can be: `GET` or `POST`. | + **voiceStatusCallbackUrl** | **optional.String**| The URL that we should call to pass status parameters (such as call ended) to your application. | + **voiceUrl** | **optional.String**| The URL we should call when the domain receives a call. | + +### Return type + +[**ApiV2010AccountSipSipDomain**](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) + + +## UpdateSipIpAccessControlList + +> ApiV2010AccountSipSipIpAccessControlList UpdateSipIpAccessControlList(ctx, accountSid, sid, optional) + + + +Rename an IpAccessControlList + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | +**sid** | **string**| A 34 character string that uniquely identifies the resource to udpate. | + **optional** | ***UpdateSipIpAccessControlListOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateSipIpAccessControlListOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **friendlyName** | **optional.String**| A human readable descriptive text, up to 64 characters long. | + +### Return type + +[**ApiV2010AccountSipSipIpAccessControlList**](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) + + +## UpdateSipIpAddress + +> ApiV2010AccountSipSipIpAccessControlListSipIpAddress UpdateSipIpAddress(ctx, accountSid, ipAccessControlListSid, sid, optional) + + + +Update an IpAddress resource. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | +**ipAccessControlListSid** | **string**| The IpAccessControlList Sid that identifies the IpAddress resources to update. | +**sid** | **string**| A 34 character string that identifies the IpAddress resource to update. | + **optional** | ***UpdateSipIpAddressOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateSipIpAddressOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **cidrPrefixLength** | **optional.Int32**| 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. | + **friendlyName** | **optional.String**| A human readable descriptive text for this resource, up to 64 characters long. | + **ipAddress** | **optional.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. | + +### Return type + +[**ApiV2010AccountSipSipIpAccessControlListSipIpAddress**](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) + + +## UpdateUsageTrigger + +> ApiV2010AccountUsageUsageTrigger UpdateUsageTrigger(ctx, accountSid, sid, optional) + + + +Update an instance of a usage trigger + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resources to update. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the UsageTrigger resource to update. | + **optional** | ***UpdateUsageTriggerOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateUsageTriggerOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **callbackMethod** | **optional.String**| The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is `POST`. | + **callbackUrl** | **optional.String**| The URL we should call using `callback_method` when the trigger fires. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + +### Return type + +[**ApiV2010AccountUsageUsageTrigger**](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/rest/api/v2010/docs/UpdateAccountRequest.md b/rest/api/v2010/docs/UpdateAccountRequest.md new file mode 100644 index 000000000..17f07790b --- /dev/null +++ b/rest/api/v2010/docs/UpdateAccountRequest.md @@ -0,0 +1,12 @@ +# UpdateAccountRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | Update the human-readable description of this Account | [optional] +**Status** | **string** | Alter the status of this account: use `closed` to irreversibly close this account, `suspended` to temporarily suspend it, or `active` to reactivate it. | [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/rest/api/v2010/docs/UpdateAddressRequest.md b/rest/api/v2010/docs/UpdateAddressRequest.md new file mode 100644 index 000000000..90b9edeba --- /dev/null +++ b/rest/api/v2010/docs/UpdateAddressRequest.md @@ -0,0 +1,18 @@ +# UpdateAddressRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AutoCorrectAddress** | **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. | [optional] +**City** | **string** | The city of the address. | [optional] +**CustomerName** | **string** | The name to associate with the address. | [optional] +**EmergencyEnabled** | **bool** | Whether to enable emergency calling on the address. Can be: `true` or `false`. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the address. It can be up to 64 characters long. | [optional] +**PostalCode** | **string** | The postal code of the address. | [optional] +**Region** | **string** | The state or region of the address. | [optional] +**Street** | **string** | The 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/rest/api/v2010/docs/UpdateApplicationRequest.md b/rest/api/v2010/docs/UpdateApplicationRequest.md new file mode 100644 index 000000000..d1e973ed0 --- /dev/null +++ b/rest/api/v2010/docs/UpdateApplicationRequest.md @@ -0,0 +1,25 @@ +# UpdateApplicationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | **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. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | [optional] +**MessageStatusCallback** | **string** | The URL we should call using a POST method to send message status information to your application. | [optional] +**SmsFallbackMethod** | **string** | The HTTP method we should use to call `sms_fallback_url`. Can be: `GET` or `POST`. | [optional] +**SmsFallbackUrl** | **string** | The URL that we should call when an error occurs while retrieving or executing the TwiML from `sms_url`. | [optional] +**SmsMethod** | **string** | The HTTP method we should use to call `sms_url`. Can be: `GET` or `POST`. | [optional] +**SmsStatusCallback** | **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. | [optional] +**SmsUrl** | **string** | The URL we should call when the phone number receives an incoming SMS message. | [optional] +**StatusCallback** | **string** | The URL we should call using the `status_callback_method` to send status information to your application. | [optional] +**StatusCallbackMethod** | **string** | The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST`. | [optional] +**VoiceCallerIdLookup** | **bool** | Whether we should look up the caller's caller-ID name from the CNAM database (additional charges apply). Can be: `true` or `false`. | [optional] +**VoiceFallbackMethod** | **string** | The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. | [optional] +**VoiceFallbackUrl** | **string** | The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | [optional] +**VoiceMethod** | **string** | The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`. | [optional] +**VoiceUrl** | **string** | The URL we should call when the phone number assigned to this application receives a 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/rest/api/v2010/docs/UpdateCallFeedbackRequest.md b/rest/api/v2010/docs/UpdateCallFeedbackRequest.md new file mode 100644 index 000000000..cb9749cb1 --- /dev/null +++ b/rest/api/v2010/docs/UpdateCallFeedbackRequest.md @@ -0,0 +1,12 @@ +# UpdateCallFeedbackRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Issue** | **[]string** | 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`. | [optional] +**QualityScore** | **int32** | The call quality expressed as an integer from `1` to `5` where `1` represents very poor call quality and `5` represents a perfect call. | + +[[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/rest/api/v2010/docs/UpdateCallRecordingRequest.md b/rest/api/v2010/docs/UpdateCallRecordingRequest.md new file mode 100644 index 000000000..a3a179074 --- /dev/null +++ b/rest/api/v2010/docs/UpdateCallRecordingRequest.md @@ -0,0 +1,12 @@ +# UpdateCallRecordingRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PauseBehavior** | **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`. | [optional] +**Status** | **string** | The new status of the recording. Can be: `stopped`, `paused`, `in-progress`. | + +[[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/rest/api/v2010/docs/UpdateCallRequest.md b/rest/api/v2010/docs/UpdateCallRequest.md new file mode 100644 index 000000000..f5e9156ec --- /dev/null +++ b/rest/api/v2010/docs/UpdateCallRequest.md @@ -0,0 +1,18 @@ +# UpdateCallRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FallbackMethod** | **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. | [optional] +**FallbackUrl** | **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. | [optional] +**Method** | **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. | [optional] +**Status** | **string** | The new status of the resource. Can be: `canceled` or `completed`. Specifying `canceled` will attempt to hang up calls that are queued or ringing; however, it will not affect calls already in progress. Specifying `completed` will attempt to hang up a call even if it's already in progress. | [optional] +**StatusCallback** | **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). | [optional] +**StatusCallbackMethod** | **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. | [optional] +**Twiml** | **string** | TwiML instructions for the call Twilio will use without fetching Twiml from url. Twiml and url parameters are mutually exclusive | [optional] +**Url** | **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). | [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/rest/api/v2010/docs/UpdateConferenceRecordingRequest.md b/rest/api/v2010/docs/UpdateConferenceRecordingRequest.md new file mode 100644 index 000000000..5775f2976 --- /dev/null +++ b/rest/api/v2010/docs/UpdateConferenceRecordingRequest.md @@ -0,0 +1,12 @@ +# UpdateConferenceRecordingRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PauseBehavior** | **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`. | [optional] +**Status** | **string** | The new status of the recording. Can be: `stopped`, `paused`, `in-progress`. | + +[[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/rest/api/v2010/docs/UpdateConferenceRequest.md b/rest/api/v2010/docs/UpdateConferenceRequest.md new file mode 100644 index 000000000..02f75b1f4 --- /dev/null +++ b/rest/api/v2010/docs/UpdateConferenceRequest.md @@ -0,0 +1,13 @@ +# UpdateConferenceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AnnounceMethod** | **string** | The HTTP method used to call `announce_url`. Can be: `GET` or `POST` and the default is `POST` | [optional] +**AnnounceUrl** | **string** | The URL we should call to announce something into the conference. The URL can return an MP3, a WAV, or a TwiML document with `<Play>` or `<Say>`. | [optional] +**Status** | **string** | The new status of the resource. Can be: Can be: `init`, `in-progress`, or `completed`. Specifying `completed` will end the conference and hang up all participants | [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/rest/api/v2010/docs/UpdateConnectAppRequest.md b/rest/api/v2010/docs/UpdateConnectAppRequest.md new file mode 100644 index 000000000..74bc22f41 --- /dev/null +++ b/rest/api/v2010/docs/UpdateConnectAppRequest.md @@ -0,0 +1,18 @@ +# UpdateConnectAppRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AuthorizeRedirectUrl** | **string** | The URL to redirect the user to after we authenticate the user and obtain authorization to access the Connect App. | [optional] +**CompanyName** | **string** | The company name to set for the Connect App. | [optional] +**DeauthorizeCallbackMethod** | **string** | The HTTP method to use when calling `deauthorize_callback_url`. | [optional] +**DeauthorizeCallbackUrl** | **string** | The URL to call using the `deauthorize_callback_method` to de-authorize the Connect App. | [optional] +**Description** | **string** | A description of the Connect App. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | [optional] +**HomepageUrl** | **string** | A public URL where users can obtain more information about this Connect App. | [optional] +**Permissions** | **[]string** | A comma-separated list of the permissions you will request from the users of this ConnectApp. Can include: `get-all` and `post-all`. | [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/rest/api/v2010/docs/UpdateIncomingPhoneNumberRequest.md b/rest/api/v2010/docs/UpdateIncomingPhoneNumberRequest.md new file mode 100644 index 000000000..e5d5c5cf9 --- /dev/null +++ b/rest/api/v2010/docs/UpdateIncomingPhoneNumberRequest.md @@ -0,0 +1,33 @@ +# UpdateIncomingPhoneNumberRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **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). | [optional] +**AddressSid** | **string** | The SID of the Address resource we should associate with the phone number. Some regions require addresses to meet local regulations. | [optional] +**ApiVersion** | **string** | The API version to use for incoming calls made to the phone number. The default is `2010-04-01`. | [optional] +**BundleSid** | **string** | The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | [optional] +**EmergencyAddressSid** | **string** | The SID of the emergency address configuration to use for emergency calling from this phone number. | [optional] +**EmergencyStatus** | **string** | The configuration status parameter that determines whether the phone number is enabled for emergency calling. | [optional] +**FriendlyName** | **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. | [optional] +**IdentitySid** | **string** | The SID of the Identity resource that we should associate with the phone number. Some regions require an identity to meet local regulations. | [optional] +**SmsApplicationSid** | **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. | [optional] +**SmsFallbackMethod** | **string** | The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | [optional] +**SmsFallbackUrl** | **string** | The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. | [optional] +**SmsMethod** | **string** | The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. | [optional] +**SmsUrl** | **string** | The URL we should call when the phone number receives an incoming SMS message. | [optional] +**StatusCallback** | **string** | The URL we should call using the `status_callback_method` to send status information to your application. | [optional] +**StatusCallbackMethod** | **string** | The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | [optional] +**TrunkSid** | **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. | [optional] +**VoiceApplicationSid** | **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. | [optional] +**VoiceCallerIdLookup** | **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`. | [optional] +**VoiceFallbackMethod** | **string** | The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | [optional] +**VoiceFallbackUrl** | **string** | The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | [optional] +**VoiceMethod** | **string** | The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. | [optional] +**VoiceReceiveMode** | **string** | The configuration parameter for the phone number to receive incoming voice calls or faxes. Can be: `fax` or `voice` and defaults to `voice`. | [optional] +**VoiceUrl** | **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. | [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/rest/api/v2010/docs/UpdateKeyRequest.md b/rest/api/v2010/docs/UpdateKeyRequest.md new file mode 100644 index 000000000..d1d7f3713 --- /dev/null +++ b/rest/api/v2010/docs/UpdateKeyRequest.md @@ -0,0 +1,11 @@ +# UpdateKeyRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | [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/rest/api/v2010/docs/UpdateMemberRequest.md b/rest/api/v2010/docs/UpdateMemberRequest.md new file mode 100644 index 000000000..3b0e1d818 --- /dev/null +++ b/rest/api/v2010/docs/UpdateMemberRequest.md @@ -0,0 +1,12 @@ +# UpdateMemberRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Method** | **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. | [optional] +**Url** | **string** | The absolute URL of the Queue resource. | + +[[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/rest/api/v2010/docs/UpdateMessageRequest.md b/rest/api/v2010/docs/UpdateMessageRequest.md new file mode 100644 index 000000000..6bf17c714 --- /dev/null +++ b/rest/api/v2010/docs/UpdateMessageRequest.md @@ -0,0 +1,11 @@ +# UpdateMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Body** | **string** | The text of the message you want to send. Can be up to 1,600 characters long. | + +[[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/rest/api/v2010/docs/UpdateOutgoingCallerIdRequest.md b/rest/api/v2010/docs/UpdateOutgoingCallerIdRequest.md new file mode 100644 index 000000000..ffb3dc5c2 --- /dev/null +++ b/rest/api/v2010/docs/UpdateOutgoingCallerIdRequest.md @@ -0,0 +1,11 @@ +# UpdateOutgoingCallerIdRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | [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/rest/api/v2010/docs/UpdateParticipantRequest.md b/rest/api/v2010/docs/UpdateParticipantRequest.md new file mode 100644 index 000000000..09437fd09 --- /dev/null +++ b/rest/api/v2010/docs/UpdateParticipantRequest.md @@ -0,0 +1,22 @@ +# UpdateParticipantRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AnnounceMethod** | **string** | The HTTP method we should use to call `announce_url`. Can be: `GET` or `POST` and defaults to `POST`. | [optional] +**AnnounceUrl** | **string** | The URL we call using the `announce_method` for an announcement to the participant. The URL must return an MP3 file, a WAV file, or a TwiML document that contains `<Play>` or `<Say>` commands. | [optional] +**BeepOnExit** | **bool** | Whether to play a notification beep to the conference when the participant exits. Can be: `true` or `false`. | [optional] +**CallSidToCoach** | **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** | **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] +**EndConferenceOnExit** | **bool** | Whether to end the conference when the participant leaves. Can be: `true` or `false` and defaults to `false`. | [optional] +**Hold** | **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. | [optional] +**HoldMethod** | **string** | The HTTP method we should use to call `hold_url`. Can be: `GET` or `POST` and the default is `GET`. | [optional] +**HoldUrl** | **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 the `<Play>`, `<Say>` or `<Redirect>` commands. | [optional] +**Muted** | **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`. | [optional] +**WaitMethod** | **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. | [optional] +**WaitUrl** | **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). | [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/rest/api/v2010/docs/UpdatePaymentsRequest.md b/rest/api/v2010/docs/UpdatePaymentsRequest.md new file mode 100644 index 000000000..15045c2d9 --- /dev/null +++ b/rest/api/v2010/docs/UpdatePaymentsRequest.md @@ -0,0 +1,14 @@ +# UpdatePaymentsRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Capture** | **string** | The piece of payment information that you wish the caller to enter. Must be one of `payment-card-number`, `expiration-date`, `security-code`, `postal-code`, `bank-routing-number`, or `bank-account-number`. | [optional] +**IdempotencyKey** | **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. | +**Status** | **string** | Indicates whether the current payment session should be cancelled or completed. When `cancel` the payment session is cancelled. When `complete`, Twilio sends the payment information to the selected <Pay> connector for processing. | [optional] +**StatusCallback** | **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. | + +[[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/rest/api/v2010/docs/UpdateQueueRequest.md b/rest/api/v2010/docs/UpdateQueueRequest.md new file mode 100644 index 000000000..f99fd271a --- /dev/null +++ b/rest/api/v2010/docs/UpdateQueueRequest.md @@ -0,0 +1,12 @@ +# UpdateQueueRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | A descriptive string that you created to describe this resource. It can be up to 64 characters long. | [optional] +**MaxSize** | **int32** | The maximum number of calls allowed to be in the queue. The default is 100. 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/rest/api/v2010/docs/UpdateShortCodeRequest.md b/rest/api/v2010/docs/UpdateShortCodeRequest.md new file mode 100644 index 000000000..a54284107 --- /dev/null +++ b/rest/api/v2010/docs/UpdateShortCodeRequest.md @@ -0,0 +1,16 @@ +# UpdateShortCodeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiVersion** | **string** | The API version to use to start a new TwiML session. Can be: `2010-04-01` or `2008-08-01`. | [optional] +**FriendlyName** | **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. | [optional] +**SmsFallbackMethod** | **string** | The HTTP method that we should use to call the `sms_fallback_url`. Can be: `GET` or `POST`. | [optional] +**SmsFallbackUrl** | **string** | The URL that we should call if an error occurs while retrieving or executing the TwiML from `sms_url`. | [optional] +**SmsMethod** | **string** | The HTTP method we should use when calling the `sms_url`. Can be: `GET` or `POST`. | [optional] +**SmsUrl** | **string** | The URL we should call when receiving an incoming SMS message to this short code. | [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/rest/api/v2010/docs/UpdateSigningKeyRequest.md b/rest/api/v2010/docs/UpdateSigningKeyRequest.md new file mode 100644 index 000000000..35c58ef9d --- /dev/null +++ b/rest/api/v2010/docs/UpdateSigningKeyRequest.md @@ -0,0 +1,11 @@ +# UpdateSigningKeyRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **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/rest/api/v2010/docs/UpdateSipCredentialListRequest.md b/rest/api/v2010/docs/UpdateSipCredentialListRequest.md new file mode 100644 index 000000000..c3d94e562 --- /dev/null +++ b/rest/api/v2010/docs/UpdateSipCredentialListRequest.md @@ -0,0 +1,11 @@ +# UpdateSipCredentialListRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | A human readable descriptive text for a CredentialList, up to 64 characters long. | + +[[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/rest/api/v2010/docs/UpdateSipCredentialRequest.md b/rest/api/v2010/docs/UpdateSipCredentialRequest.md new file mode 100644 index 000000000..0557ea061 --- /dev/null +++ b/rest/api/v2010/docs/UpdateSipCredentialRequest.md @@ -0,0 +1,11 @@ +# UpdateSipCredentialRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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`) | [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/rest/api/v2010/docs/UpdateSipDomainRequest.md b/rest/api/v2010/docs/UpdateSipDomainRequest.md new file mode 100644 index 000000000..614556c43 --- /dev/null +++ b/rest/api/v2010/docs/UpdateSipDomainRequest.md @@ -0,0 +1,23 @@ +# UpdateSipDomainRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ByocTrunkSid** | **string** | The SID of the BYOC Trunk(Bring Your Own Carrier) resource that the Sip Domain will be associated with. | [optional] +**DomainName** | **string** | The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and \"-\". | [optional] +**EmergencyCallerSid** | **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] +**EmergencyCallingEnabled** | **bool** | Whether emergency calling is enabled for the domain. If enabled, allows emergency calls on the domain from phone numbers with validated addresses. | [optional] +**FriendlyName** | **string** | A descriptive string that you created to describe the resource. It can be up to 64 characters long. | [optional] +**Secure** | **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] +**SipRegistration** | **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. | [optional] +**VoiceFallbackMethod** | **string** | The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. | [optional] +**VoiceFallbackUrl** | **string** | The URL that we should call when an error occurs while retrieving or executing the TwiML requested by `voice_url`. | [optional] +**VoiceMethod** | **string** | The HTTP method we should use to call `voice_url` | [optional] +**VoiceStatusCallbackMethod** | **string** | The HTTP method we should use to call `voice_status_callback_url`. Can be: `GET` or `POST`. | [optional] +**VoiceStatusCallbackUrl** | **string** | The URL that we should call to pass status parameters (such as call ended) to your application. | [optional] +**VoiceUrl** | **string** | The URL we should call when the domain receives a 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/rest/api/v2010/docs/UpdateSipIpAccessControlListRequest.md b/rest/api/v2010/docs/UpdateSipIpAccessControlListRequest.md new file mode 100644 index 000000000..846b74465 --- /dev/null +++ b/rest/api/v2010/docs/UpdateSipIpAccessControlListRequest.md @@ -0,0 +1,11 @@ +# UpdateSipIpAccessControlListRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | A human readable descriptive text, up to 64 characters long. | + +[[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/rest/api/v2010/docs/UpdateSipIpAddressRequest.md b/rest/api/v2010/docs/UpdateSipIpAddressRequest.md new file mode 100644 index 000000000..35496c908 --- /dev/null +++ b/rest/api/v2010/docs/UpdateSipIpAddressRequest.md @@ -0,0 +1,13 @@ +# UpdateSipIpAddressRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CidrPrefixLength** | **int32** | 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] +**FriendlyName** | **string** | A human readable descriptive text for this resource, up to 64 characters long. | [optional] +**IpAddress** | **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] + +[[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/rest/api/v2010/docs/UpdateUsageTriggerRequest.md b/rest/api/v2010/docs/UpdateUsageTriggerRequest.md new file mode 100644 index 000000000..1e10b6eda --- /dev/null +++ b/rest/api/v2010/docs/UpdateUsageTriggerRequest.md @@ -0,0 +1,13 @@ +# UpdateUsageTriggerRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CallbackMethod** | **string** | The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is `POST`. | [optional] +**CallbackUrl** | **string** | The URL we should call using `callback_method` when the trigger fires. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | [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/rest/api/v2010/model_api_v2010_account.go b/rest/api/v2010/model_api_v2010_account.go new file mode 100644 index 000000000..dc709e9c3 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account.go @@ -0,0 +1,24 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010Account struct for ApiV2010Account +type ApiV2010Account struct { + AuthToken string `json:"auth_token,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + OwnerAccountSid string `json:"owner_account_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Status string `json:"status,omitempty"` + SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` + Type string `json:"type,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_address.go b/rest/api/v2010/model_api_v2010_account_address.go new file mode 100644 index 000000000..607dc0199 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_address.go @@ -0,0 +1,29 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountAddress struct for ApiV2010AccountAddress +type ApiV2010AccountAddress struct { + AccountSid string `json:"account_sid,omitempty"` + City string `json:"city,omitempty"` + CustomerName string `json:"customer_name,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + EmergencyEnabled bool `json:"emergency_enabled,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + IsoCountry string `json:"iso_country,omitempty"` + PostalCode string `json:"postal_code,omitempty"` + Region string `json:"region,omitempty"` + Sid string `json:"sid,omitempty"` + Street string `json:"street,omitempty"` + Uri string `json:"uri,omitempty"` + Validated bool `json:"validated,omitempty"` + Verified bool `json:"verified,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_address_dependent_phone_number.go b/rest/api/v2010/model_api_v2010_account_address_dependent_phone_number.go new file mode 100644 index 000000000..ad436f1f1 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_address_dependent_phone_number.go @@ -0,0 +1,40 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountAddressDependentPhoneNumber struct for ApiV2010AccountAddressDependentPhoneNumber +type ApiV2010AccountAddressDependentPhoneNumber struct { + AccountSid string `json:"account_sid,omitempty"` + AddressRequirements string `json:"address_requirements,omitempty"` + ApiVersion string `json:"api_version,omitempty"` + Capabilities map[string]interface{} `json:"capabilities,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + EmergencyAddressSid string `json:"emergency_address_sid,omitempty"` + EmergencyStatus string `json:"emergency_status,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + PhoneNumber string `json:"phone_number,omitempty"` + Sid string `json:"sid,omitempty"` + SmsApplicationSid string `json:"sms_application_sid,omitempty"` + SmsFallbackMethod string `json:"sms_fallback_method,omitempty"` + SmsFallbackUrl string `json:"sms_fallback_url,omitempty"` + SmsMethod string `json:"sms_method,omitempty"` + SmsUrl string `json:"sms_url,omitempty"` + StatusCallback string `json:"status_callback,omitempty"` + StatusCallbackMethod string `json:"status_callback_method,omitempty"` + TrunkSid string `json:"trunk_sid,omitempty"` + Uri string `json:"uri,omitempty"` + VoiceApplicationSid string `json:"voice_application_sid,omitempty"` + VoiceCallerIdLookup bool `json:"voice_caller_id_lookup,omitempty"` + VoiceFallbackMethod string `json:"voice_fallback_method,omitempty"` + VoiceFallbackUrl string `json:"voice_fallback_url,omitempty"` + VoiceMethod string `json:"voice_method,omitempty"` + VoiceUrl string `json:"voice_url,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_address_dependent_phone_number_read_response.go b/rest/api/v2010/model_api_v2010_account_address_dependent_phone_number_read_response.go new file mode 100644 index 000000000..5573cb6f8 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_address_dependent_phone_number_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountAddressDependentPhoneNumberReadResponse struct for ApiV2010AccountAddressDependentPhoneNumberReadResponse +type ApiV2010AccountAddressDependentPhoneNumberReadResponse struct { + DependentPhoneNumbers []ApiV2010AccountAddressDependentPhoneNumber `json:"dependent_phone_numbers,omitempty"` + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_address_read_response.go b/rest/api/v2010/model_api_v2010_account_address_read_response.go new file mode 100644 index 000000000..b4ace4b1c --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_address_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountAddressReadResponse struct for ApiV2010AccountAddressReadResponse +type ApiV2010AccountAddressReadResponse struct { + Addresses []ApiV2010AccountAddress `json:"addresses,omitempty"` + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_application.go b/rest/api/v2010/model_api_v2010_account_application.go new file mode 100644 index 000000000..79cf5efad --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_application.go @@ -0,0 +1,34 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountApplication struct for ApiV2010AccountApplication +type ApiV2010AccountApplication struct { + AccountSid string `json:"account_sid,omitempty"` + ApiVersion string `json:"api_version,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + MessageStatusCallback string `json:"message_status_callback,omitempty"` + Sid string `json:"sid,omitempty"` + SmsFallbackMethod string `json:"sms_fallback_method,omitempty"` + SmsFallbackUrl string `json:"sms_fallback_url,omitempty"` + SmsMethod string `json:"sms_method,omitempty"` + SmsStatusCallback string `json:"sms_status_callback,omitempty"` + SmsUrl string `json:"sms_url,omitempty"` + StatusCallback string `json:"status_callback,omitempty"` + StatusCallbackMethod string `json:"status_callback_method,omitempty"` + Uri string `json:"uri,omitempty"` + VoiceCallerIdLookup bool `json:"voice_caller_id_lookup,omitempty"` + VoiceFallbackMethod string `json:"voice_fallback_method,omitempty"` + VoiceFallbackUrl string `json:"voice_fallback_url,omitempty"` + VoiceMethod string `json:"voice_method,omitempty"` + VoiceUrl string `json:"voice_url,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_application_read_response.go b/rest/api/v2010/model_api_v2010_account_application_read_response.go new file mode 100644 index 000000000..8da786e8a --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_application_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountApplicationReadResponse struct for ApiV2010AccountApplicationReadResponse +type ApiV2010AccountApplicationReadResponse struct { + Applications []ApiV2010AccountApplication `json:"applications,omitempty"` + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_authorized_connect_app.go b/rest/api/v2010/model_api_v2010_account_authorized_connect_app.go new file mode 100644 index 000000000..88e2592b2 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_authorized_connect_app.go @@ -0,0 +1,24 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountAuthorizedConnectApp struct for ApiV2010AccountAuthorizedConnectApp +type ApiV2010AccountAuthorizedConnectApp struct { + AccountSid string `json:"account_sid,omitempty"` + ConnectAppCompanyName string `json:"connect_app_company_name,omitempty"` + ConnectAppDescription string `json:"connect_app_description,omitempty"` + ConnectAppFriendlyName string `json:"connect_app_friendly_name,omitempty"` + ConnectAppHomepageUrl string `json:"connect_app_homepage_url,omitempty"` + ConnectAppSid string `json:"connect_app_sid,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + Permissions []string `json:"permissions,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_authorized_connect_app_read_response.go b/rest/api/v2010/model_api_v2010_account_authorized_connect_app_read_response.go new file mode 100644 index 000000000..c1172d9fa --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_authorized_connect_app_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountAuthorizedConnectAppReadResponse struct for ApiV2010AccountAuthorizedConnectAppReadResponse +type ApiV2010AccountAuthorizedConnectAppReadResponse struct { + AuthorizedConnectApps []ApiV2010AccountAuthorizedConnectApp `json:"authorized_connect_apps,omitempty"` + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country.go new file mode 100644 index 000000000..09b0d7d71 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country.go @@ -0,0 +1,19 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountAvailablePhoneNumberCountry struct for ApiV2010AccountAvailablePhoneNumberCountry +type ApiV2010AccountAvailablePhoneNumberCountry struct { + Beta bool `json:"beta,omitempty"` + Country string `json:"country,omitempty"` + CountryCode string `json:"country_code,omitempty"` + SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_local.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_local.go new file mode 100644 index 000000000..b35e7c874 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_local.go @@ -0,0 +1,27 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocal struct for ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocal +type ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocal struct { + AddressRequirements string `json:"address_requirements,omitempty"` + Beta bool `json:"beta,omitempty"` + Capabilities map[string]interface{} `json:"capabilities,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + IsoCountry string `json:"iso_country,omitempty"` + Lata string `json:"lata,omitempty"` + Latitude float32 `json:"latitude,omitempty"` + Locality string `json:"locality,omitempty"` + Longitude float32 `json:"longitude,omitempty"` + PhoneNumber string `json:"phone_number,omitempty"` + PostalCode string `json:"postal_code,omitempty"` + RateCenter string `json:"rate_center,omitempty"` + Region string `json:"region,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_local_read_response.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_local_read_response.go new file mode 100644 index 000000000..c6426d51c --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_local_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse struct for ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse +type ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse struct { + AvailablePhoneNumbers []ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocal `json:"available_phone_numbers,omitempty"` + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_machine_to_machine.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_machine_to_machine.go new file mode 100644 index 000000000..e478362e5 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_machine_to_machine.go @@ -0,0 +1,27 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachine struct for ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachine +type ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachine struct { + AddressRequirements string `json:"address_requirements,omitempty"` + Beta bool `json:"beta,omitempty"` + Capabilities map[string]interface{} `json:"capabilities,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + IsoCountry string `json:"iso_country,omitempty"` + Lata string `json:"lata,omitempty"` + Latitude float32 `json:"latitude,omitempty"` + Locality string `json:"locality,omitempty"` + Longitude float32 `json:"longitude,omitempty"` + PhoneNumber string `json:"phone_number,omitempty"` + PostalCode string `json:"postal_code,omitempty"` + RateCenter string `json:"rate_center,omitempty"` + Region string `json:"region,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_machine_to_machine_read_response.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_machine_to_machine_read_response.go new file mode 100644 index 000000000..4df08a68d --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_machine_to_machine_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse struct for ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse +type ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse struct { + AvailablePhoneNumbers []ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachine `json:"available_phone_numbers,omitempty"` + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_mobile.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_mobile.go new file mode 100644 index 000000000..a42894fe1 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_mobile.go @@ -0,0 +1,27 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobile struct for ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobile +type ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobile struct { + AddressRequirements string `json:"address_requirements,omitempty"` + Beta bool `json:"beta,omitempty"` + Capabilities map[string]interface{} `json:"capabilities,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + IsoCountry string `json:"iso_country,omitempty"` + Lata string `json:"lata,omitempty"` + Latitude float32 `json:"latitude,omitempty"` + Locality string `json:"locality,omitempty"` + Longitude float32 `json:"longitude,omitempty"` + PhoneNumber string `json:"phone_number,omitempty"` + PostalCode string `json:"postal_code,omitempty"` + RateCenter string `json:"rate_center,omitempty"` + Region string `json:"region,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_mobile_read_response.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_mobile_read_response.go new file mode 100644 index 000000000..192c4fb06 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_mobile_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse struct for ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse +type ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse struct { + AvailablePhoneNumbers []ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobile `json:"available_phone_numbers,omitempty"` + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_national.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_national.go new file mode 100644 index 000000000..a4152549c --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_national.go @@ -0,0 +1,27 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNational struct for ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNational +type ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNational struct { + AddressRequirements string `json:"address_requirements,omitempty"` + Beta bool `json:"beta,omitempty"` + Capabilities map[string]interface{} `json:"capabilities,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + IsoCountry string `json:"iso_country,omitempty"` + Lata string `json:"lata,omitempty"` + Latitude float32 `json:"latitude,omitempty"` + Locality string `json:"locality,omitempty"` + Longitude float32 `json:"longitude,omitempty"` + PhoneNumber string `json:"phone_number,omitempty"` + PostalCode string `json:"postal_code,omitempty"` + RateCenter string `json:"rate_center,omitempty"` + Region string `json:"region,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_national_read_response.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_national_read_response.go new file mode 100644 index 000000000..9a51ccf45 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_national_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse struct for ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse +type ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse struct { + AvailablePhoneNumbers []ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNational `json:"available_phone_numbers,omitempty"` + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_shared_cost.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_shared_cost.go new file mode 100644 index 000000000..c088bc9bc --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_shared_cost.go @@ -0,0 +1,27 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCost struct for ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCost +type ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCost struct { + AddressRequirements string `json:"address_requirements,omitempty"` + Beta bool `json:"beta,omitempty"` + Capabilities map[string]interface{} `json:"capabilities,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + IsoCountry string `json:"iso_country,omitempty"` + Lata string `json:"lata,omitempty"` + Latitude float32 `json:"latitude,omitempty"` + Locality string `json:"locality,omitempty"` + Longitude float32 `json:"longitude,omitempty"` + PhoneNumber string `json:"phone_number,omitempty"` + PostalCode string `json:"postal_code,omitempty"` + RateCenter string `json:"rate_center,omitempty"` + Region string `json:"region,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_shared_cost_read_response.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_shared_cost_read_response.go new file mode 100644 index 000000000..806b29422 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_shared_cost_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse struct for ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse +type ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse struct { + AvailablePhoneNumbers []ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCost `json:"available_phone_numbers,omitempty"` + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_toll_free.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_toll_free.go new file mode 100644 index 000000000..977b3e716 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_toll_free.go @@ -0,0 +1,27 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFree struct for ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFree +type ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFree struct { + AddressRequirements string `json:"address_requirements,omitempty"` + Beta bool `json:"beta,omitempty"` + Capabilities map[string]interface{} `json:"capabilities,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + IsoCountry string `json:"iso_country,omitempty"` + Lata string `json:"lata,omitempty"` + Latitude float32 `json:"latitude,omitempty"` + Locality string `json:"locality,omitempty"` + Longitude float32 `json:"longitude,omitempty"` + PhoneNumber string `json:"phone_number,omitempty"` + PostalCode string `json:"postal_code,omitempty"` + RateCenter string `json:"rate_center,omitempty"` + Region string `json:"region,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_toll_free_read_response.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_toll_free_read_response.go new file mode 100644 index 000000000..fa35aa81e --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_toll_free_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse struct for ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse +type ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse struct { + AvailablePhoneNumbers []ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFree `json:"available_phone_numbers,omitempty"` + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_voip.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_voip.go new file mode 100644 index 000000000..7313eecaa --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_voip.go @@ -0,0 +1,27 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoip struct for ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoip +type ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoip struct { + AddressRequirements string `json:"address_requirements,omitempty"` + Beta bool `json:"beta,omitempty"` + Capabilities map[string]interface{} `json:"capabilities,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + IsoCountry string `json:"iso_country,omitempty"` + Lata string `json:"lata,omitempty"` + Latitude float32 `json:"latitude,omitempty"` + Locality string `json:"locality,omitempty"` + Longitude float32 `json:"longitude,omitempty"` + PhoneNumber string `json:"phone_number,omitempty"` + PostalCode string `json:"postal_code,omitempty"` + RateCenter string `json:"rate_center,omitempty"` + Region string `json:"region,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_voip_read_response.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_voip_read_response.go new file mode 100644 index 000000000..03022c7a1 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_voip_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse struct for ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse +type ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse struct { + AvailablePhoneNumbers []ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoip `json:"available_phone_numbers,omitempty"` + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_read_response.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_read_response.go new file mode 100644 index 000000000..898d31016 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountAvailablePhoneNumberCountryReadResponse struct for ApiV2010AccountAvailablePhoneNumberCountryReadResponse +type ApiV2010AccountAvailablePhoneNumberCountryReadResponse struct { + Countries []ApiV2010AccountAvailablePhoneNumberCountry `json:"countries,omitempty"` + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_balance.go b/rest/api/v2010/model_api_v2010_account_balance.go new file mode 100644 index 000000000..ca02baf68 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_balance.go @@ -0,0 +1,17 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountBalance struct for ApiV2010AccountBalance +type ApiV2010AccountBalance struct { + AccountSid string `json:"account_sid,omitempty"` + Balance string `json:"balance,omitempty"` + Currency string `json:"currency,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_call.go b/rest/api/v2010/model_api_v2010_account_call.go new file mode 100644 index 000000000..d2601daaa --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_call.go @@ -0,0 +1,41 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountCall struct for ApiV2010AccountCall +type ApiV2010AccountCall struct { + AccountSid string `json:"account_sid,omitempty"` + Annotation string `json:"annotation,omitempty"` + AnsweredBy string `json:"answered_by,omitempty"` + ApiVersion string `json:"api_version,omitempty"` + CallerName string `json:"caller_name,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + Direction *string `json:"direction,omitempty"` + Duration string `json:"duration,omitempty"` + EndTime string `json:"end_time,omitempty"` + ForwardedFrom string `json:"forwarded_from,omitempty"` + From string `json:"from,omitempty"` + FromFormatted string `json:"from_formatted,omitempty"` + GroupSid string `json:"group_sid,omitempty"` + ParentCallSid string `json:"parent_call_sid,omitempty"` + PhoneNumberSid string `json:"phone_number_sid,omitempty"` + Price *string `json:"price,omitempty"` + PriceUnit string `json:"price_unit,omitempty"` + QueueTime string `json:"queue_time,omitempty"` + Sid string `json:"sid,omitempty"` + StartTime string `json:"start_time,omitempty"` + Status string `json:"status,omitempty"` + SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` + To string `json:"to,omitempty"` + ToFormatted string `json:"to_formatted,omitempty"` + TrunkSid string `json:"trunk_sid,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_call_call_event.go b/rest/api/v2010/model_api_v2010_account_call_call_event.go new file mode 100644 index 000000000..0ec3a3b91 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_call_call_event.go @@ -0,0 +1,16 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountCallCallEvent struct for ApiV2010AccountCallCallEvent +type ApiV2010AccountCallCallEvent struct { + Request map[string]interface{} `json:"request,omitempty"` + Response map[string]interface{} `json:"response,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_call_call_event_read_response.go b/rest/api/v2010/model_api_v2010_account_call_call_event_read_response.go new file mode 100644 index 000000000..25a47be30 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_call_call_event_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountCallCallEventReadResponse struct for ApiV2010AccountCallCallEventReadResponse +type ApiV2010AccountCallCallEventReadResponse struct { + End int32 `json:"end,omitempty"` + Events []ApiV2010AccountCallCallEvent `json:"events,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_call_call_feedback.go b/rest/api/v2010/model_api_v2010_account_call_call_feedback.go new file mode 100644 index 000000000..c5aae43e7 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_call_call_feedback.go @@ -0,0 +1,20 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountCallCallFeedback struct for ApiV2010AccountCallCallFeedback +type ApiV2010AccountCallCallFeedback struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + Issues []string `json:"issues,omitempty"` + QualityScore int32 `json:"quality_score,omitempty"` + Sid string `json:"sid,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_call_call_feedback_summary.go b/rest/api/v2010/model_api_v2010_account_call_call_feedback_summary.go new file mode 100644 index 000000000..7be0fb833 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_call_call_feedback_summary.go @@ -0,0 +1,31 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ApiV2010AccountCallCallFeedbackSummary struct for ApiV2010AccountCallCallFeedbackSummary +type ApiV2010AccountCallCallFeedbackSummary struct { + AccountSid string `json:"account_sid,omitempty"` + CallCount int32 `json:"call_count,omitempty"` + CallFeedbackCount int32 `json:"call_feedback_count,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + EndDate time.Time `json:"end_date,omitempty"` + IncludeSubaccounts bool `json:"include_subaccounts,omitempty"` + Issues []map[string]interface{} `json:"issues,omitempty"` + QualityScoreAverage float32 `json:"quality_score_average,omitempty"` + QualityScoreMedian float32 `json:"quality_score_median,omitempty"` + QualityScoreStandardDeviation float32 `json:"quality_score_standard_deviation,omitempty"` + Sid string `json:"sid,omitempty"` + StartDate time.Time `json:"start_date,omitempty"` + Status string `json:"status,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_call_call_notification.go b/rest/api/v2010/model_api_v2010_account_call_call_notification.go new file mode 100644 index 000000000..dbbdc30bb --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_call_call_notification.go @@ -0,0 +1,28 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountCallCallNotification struct for ApiV2010AccountCallCallNotification +type ApiV2010AccountCallCallNotification struct { + AccountSid string `json:"account_sid,omitempty"` + ApiVersion string `json:"api_version,omitempty"` + CallSid string `json:"call_sid,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + ErrorCode string `json:"error_code,omitempty"` + Log string `json:"log,omitempty"` + MessageDate string `json:"message_date,omitempty"` + MessageText string `json:"message_text,omitempty"` + MoreInfo string `json:"more_info,omitempty"` + RequestMethod string `json:"request_method,omitempty"` + RequestUrl string `json:"request_url,omitempty"` + Sid string `json:"sid,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_call_call_notification_instance.go b/rest/api/v2010/model_api_v2010_account_call_call_notification_instance.go new file mode 100644 index 000000000..b78d8fa12 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_call_call_notification_instance.go @@ -0,0 +1,31 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountCallCallNotificationInstance struct for ApiV2010AccountCallCallNotificationInstance +type ApiV2010AccountCallCallNotificationInstance struct { + AccountSid string `json:"account_sid,omitempty"` + ApiVersion string `json:"api_version,omitempty"` + CallSid string `json:"call_sid,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + ErrorCode string `json:"error_code,omitempty"` + Log string `json:"log,omitempty"` + MessageDate string `json:"message_date,omitempty"` + MessageText string `json:"message_text,omitempty"` + MoreInfo string `json:"more_info,omitempty"` + RequestMethod string `json:"request_method,omitempty"` + RequestUrl string `json:"request_url,omitempty"` + RequestVariables string `json:"request_variables,omitempty"` + ResponseBody string `json:"response_body,omitempty"` + ResponseHeaders string `json:"response_headers,omitempty"` + Sid string `json:"sid,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_call_call_notification_read_response.go b/rest/api/v2010/model_api_v2010_account_call_call_notification_read_response.go new file mode 100644 index 000000000..4e1a57918 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_call_call_notification_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountCallCallNotificationReadResponse struct for ApiV2010AccountCallCallNotificationReadResponse +type ApiV2010AccountCallCallNotificationReadResponse struct { + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Notifications []ApiV2010AccountCallCallNotification `json:"notifications,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_call_call_recording.go b/rest/api/v2010/model_api_v2010_account_call_call_recording.go new file mode 100644 index 000000000..0ceeda43b --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_call_call_recording.go @@ -0,0 +1,32 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountCallCallRecording struct for ApiV2010AccountCallCallRecording +type ApiV2010AccountCallCallRecording struct { + AccountSid string `json:"account_sid,omitempty"` + ApiVersion string `json:"api_version,omitempty"` + CallSid string `json:"call_sid,omitempty"` + Channels int32 `json:"channels,omitempty"` + ConferenceSid string `json:"conference_sid,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + Duration string `json:"duration,omitempty"` + EncryptionDetails map[string]interface{} `json:"encryption_details,omitempty"` + ErrorCode *int32 `json:"error_code,omitempty"` + Price float32 `json:"price,omitempty"` + PriceUnit string `json:"price_unit,omitempty"` + Sid string `json:"sid,omitempty"` + Source string `json:"source,omitempty"` + StartTime string `json:"start_time,omitempty"` + Status string `json:"status,omitempty"` + Track string `json:"track,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_call_call_recording_read_response.go b/rest/api/v2010/model_api_v2010_account_call_call_recording_read_response.go new file mode 100644 index 000000000..8bbfbc19b --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_call_call_recording_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountCallCallRecordingReadResponse struct for ApiV2010AccountCallCallRecordingReadResponse +type ApiV2010AccountCallCallRecordingReadResponse struct { + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Recordings []ApiV2010AccountCallCallRecording `json:"recordings,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_call_payments.go b/rest/api/v2010/model_api_v2010_account_call_payments.go new file mode 100644 index 000000000..8085ef7ce --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_call_payments.go @@ -0,0 +1,20 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountCallPayments struct for ApiV2010AccountCallPayments +type ApiV2010AccountCallPayments struct { + AccountSid string `json:"account_sid,omitempty"` + CallSid string `json:"call_sid,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + Sid string `json:"sid,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_call_read_response.go b/rest/api/v2010/model_api_v2010_account_call_read_response.go new file mode 100644 index 000000000..f9aa85428 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_call_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountCallReadResponse struct for ApiV2010AccountCallReadResponse +type ApiV2010AccountCallReadResponse struct { + Calls []ApiV2010AccountCall `json:"calls,omitempty"` + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_conference.go b/rest/api/v2010/model_api_v2010_account_conference.go new file mode 100644 index 000000000..a1bb9febc --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_conference.go @@ -0,0 +1,26 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountConference struct for ApiV2010AccountConference +type ApiV2010AccountConference struct { + AccountSid string `json:"account_sid,omitempty"` + ApiVersion string `json:"api_version,omitempty"` + CallSidEndingConference string `json:"call_sid_ending_conference,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + ReasonConferenceEnded string `json:"reason_conference_ended,omitempty"` + Region string `json:"region,omitempty"` + Sid string `json:"sid,omitempty"` + Status string `json:"status,omitempty"` + SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_conference_conference_recording.go b/rest/api/v2010/model_api_v2010_account_conference_conference_recording.go new file mode 100644 index 000000000..1a3b988d5 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_conference_conference_recording.go @@ -0,0 +1,31 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountConferenceConferenceRecording struct for ApiV2010AccountConferenceConferenceRecording +type ApiV2010AccountConferenceConferenceRecording struct { + AccountSid string `json:"account_sid,omitempty"` + ApiVersion string `json:"api_version,omitempty"` + CallSid string `json:"call_sid,omitempty"` + Channels int32 `json:"channels,omitempty"` + ConferenceSid string `json:"conference_sid,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + Duration string `json:"duration,omitempty"` + EncryptionDetails map[string]interface{} `json:"encryption_details,omitempty"` + ErrorCode *int32 `json:"error_code,omitempty"` + Price float32 `json:"price,omitempty"` + PriceUnit string `json:"price_unit,omitempty"` + Sid string `json:"sid,omitempty"` + Source string `json:"source,omitempty"` + StartTime string `json:"start_time,omitempty"` + Status string `json:"status,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_conference_conference_recording_read_response.go b/rest/api/v2010/model_api_v2010_account_conference_conference_recording_read_response.go new file mode 100644 index 000000000..405079169 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_conference_conference_recording_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountConferenceConferenceRecordingReadResponse struct for ApiV2010AccountConferenceConferenceRecordingReadResponse +type ApiV2010AccountConferenceConferenceRecordingReadResponse struct { + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Recordings []ApiV2010AccountConferenceConferenceRecording `json:"recordings,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_conference_participant.go b/rest/api/v2010/model_api_v2010_account_conference_participant.go new file mode 100644 index 000000000..5ee0f8202 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_conference_participant.go @@ -0,0 +1,28 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountConferenceParticipant struct for ApiV2010AccountConferenceParticipant +type ApiV2010AccountConferenceParticipant struct { + AccountSid string `json:"account_sid,omitempty"` + CallSid string `json:"call_sid,omitempty"` + CallSidToCoach string `json:"call_sid_to_coach,omitempty"` + Coaching bool `json:"coaching,omitempty"` + ConferenceSid string `json:"conference_sid,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + EndConferenceOnExit bool `json:"end_conference_on_exit,omitempty"` + Hold bool `json:"hold,omitempty"` + Label string `json:"label,omitempty"` + Muted bool `json:"muted,omitempty"` + StartConferenceOnEnter bool `json:"start_conference_on_enter,omitempty"` + Status string `json:"status,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_conference_participant_read_response.go b/rest/api/v2010/model_api_v2010_account_conference_participant_read_response.go new file mode 100644 index 000000000..5ab827879 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_conference_participant_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountConferenceParticipantReadResponse struct for ApiV2010AccountConferenceParticipantReadResponse +type ApiV2010AccountConferenceParticipantReadResponse struct { + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + Participants []ApiV2010AccountConferenceParticipant `json:"participants,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_conference_read_response.go b/rest/api/v2010/model_api_v2010_account_conference_read_response.go new file mode 100644 index 000000000..aa7c8d724 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_conference_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountConferenceReadResponse struct for ApiV2010AccountConferenceReadResponse +type ApiV2010AccountConferenceReadResponse struct { + Conferences []ApiV2010AccountConference `json:"conferences,omitempty"` + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_connect_app.go b/rest/api/v2010/model_api_v2010_account_connect_app.go new file mode 100644 index 000000000..f1d98e670 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_connect_app.go @@ -0,0 +1,25 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountConnectApp struct for ApiV2010AccountConnectApp +type ApiV2010AccountConnectApp struct { + AccountSid string `json:"account_sid,omitempty"` + AuthorizeRedirectUrl string `json:"authorize_redirect_url,omitempty"` + CompanyName string `json:"company_name,omitempty"` + DeauthorizeCallbackMethod string `json:"deauthorize_callback_method,omitempty"` + DeauthorizeCallbackUrl string `json:"deauthorize_callback_url,omitempty"` + Description string `json:"description,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + HomepageUrl string `json:"homepage_url,omitempty"` + Permissions []string `json:"permissions,omitempty"` + Sid string `json:"sid,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_connect_app_read_response.go b/rest/api/v2010/model_api_v2010_account_connect_app_read_response.go new file mode 100644 index 000000000..db241d50d --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_connect_app_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountConnectAppReadResponse struct for ApiV2010AccountConnectAppReadResponse +type ApiV2010AccountConnectAppReadResponse struct { + ConnectApps []ApiV2010AccountConnectApp `json:"connect_apps,omitempty"` + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_incoming_phone_number.go b/rest/api/v2010/model_api_v2010_account_incoming_phone_number.go new file mode 100644 index 000000000..9a2623a93 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_incoming_phone_number.go @@ -0,0 +1,47 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountIncomingPhoneNumber struct for ApiV2010AccountIncomingPhoneNumber +type ApiV2010AccountIncomingPhoneNumber struct { + AccountSid string `json:"account_sid,omitempty"` + AddressRequirements string `json:"address_requirements,omitempty"` + AddressSid string `json:"address_sid,omitempty"` + ApiVersion string `json:"api_version,omitempty"` + Beta bool `json:"beta,omitempty"` + BundleSid string `json:"bundle_sid,omitempty"` + Capabilities map[string]interface{} `json:"capabilities,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + EmergencyAddressSid string `json:"emergency_address_sid,omitempty"` + EmergencyStatus string `json:"emergency_status,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + IdentitySid string `json:"identity_sid,omitempty"` + Origin string `json:"origin,omitempty"` + PhoneNumber string `json:"phone_number,omitempty"` + Sid string `json:"sid,omitempty"` + SmsApplicationSid string `json:"sms_application_sid,omitempty"` + SmsFallbackMethod string `json:"sms_fallback_method,omitempty"` + SmsFallbackUrl string `json:"sms_fallback_url,omitempty"` + SmsMethod string `json:"sms_method,omitempty"` + SmsUrl string `json:"sms_url,omitempty"` + Status string `json:"status,omitempty"` + StatusCallback string `json:"status_callback,omitempty"` + StatusCallbackMethod string `json:"status_callback_method,omitempty"` + TrunkSid string `json:"trunk_sid,omitempty"` + Uri string `json:"uri,omitempty"` + VoiceApplicationSid string `json:"voice_application_sid,omitempty"` + VoiceCallerIdLookup bool `json:"voice_caller_id_lookup,omitempty"` + VoiceFallbackMethod string `json:"voice_fallback_method,omitempty"` + VoiceFallbackUrl string `json:"voice_fallback_url,omitempty"` + VoiceMethod string `json:"voice_method,omitempty"` + VoiceReceiveMode string `json:"voice_receive_mode,omitempty"` + VoiceUrl string `json:"voice_url,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on.go b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on.go new file mode 100644 index 000000000..727f57241 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on.go @@ -0,0 +1,25 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn struct for ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn +type ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn struct { + AccountSid string `json:"account_sid,omitempty"` + Configuration map[string]interface{} `json:"configuration,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + Description string `json:"description,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + ResourceSid string `json:"resource_sid,omitempty"` + Sid string `json:"sid,omitempty"` + SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_incoming_phone_number_assigned_add_on_extension.go b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_incoming_phone_number_assigned_add_on_extension.go new file mode 100644 index 000000000..3044727f3 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_incoming_phone_number_assigned_add_on_extension.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension struct for ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension +type ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension struct { + AccountSid string `json:"account_sid,omitempty"` + AssignedAddOnSid string `json:"assigned_add_on_sid,omitempty"` + Enabled bool `json:"enabled,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + ProductName string `json:"product_name,omitempty"` + ResourceSid string `json:"resource_sid,omitempty"` + Sid string `json:"sid,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_incoming_phone_number_assigned_add_on_extension_read_response.go b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_incoming_phone_number_assigned_add_on_extension_read_response.go new file mode 100644 index 000000000..3c72f2d95 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_incoming_phone_number_assigned_add_on_extension_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse struct for ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse +type ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse struct { + End int32 `json:"end,omitempty"` + Extensions []ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension `json:"extensions,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_read_response.go b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_read_response.go new file mode 100644 index 000000000..cecc11f05 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse struct for ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse +type ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse struct { + AssignedAddOns []ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn `json:"assigned_add_ons,omitempty"` + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_local.go b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_local.go new file mode 100644 index 000000000..6d8346731 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_local.go @@ -0,0 +1,47 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocal struct for ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocal +type ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocal struct { + AccountSid string `json:"account_sid,omitempty"` + AddressRequirements string `json:"address_requirements,omitempty"` + AddressSid string `json:"address_sid,omitempty"` + ApiVersion string `json:"api_version,omitempty"` + Beta bool `json:"beta,omitempty"` + BundleSid string `json:"bundle_sid,omitempty"` + Capabilities map[string]interface{} `json:"capabilities,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + EmergencyAddressSid string `json:"emergency_address_sid,omitempty"` + EmergencyStatus string `json:"emergency_status,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + IdentitySid string `json:"identity_sid,omitempty"` + Origin string `json:"origin,omitempty"` + PhoneNumber string `json:"phone_number,omitempty"` + Sid string `json:"sid,omitempty"` + SmsApplicationSid string `json:"sms_application_sid,omitempty"` + SmsFallbackMethod string `json:"sms_fallback_method,omitempty"` + SmsFallbackUrl string `json:"sms_fallback_url,omitempty"` + SmsMethod string `json:"sms_method,omitempty"` + SmsUrl string `json:"sms_url,omitempty"` + Status string `json:"status,omitempty"` + StatusCallback string `json:"status_callback,omitempty"` + StatusCallbackMethod string `json:"status_callback_method,omitempty"` + TrunkSid string `json:"trunk_sid,omitempty"` + Uri string `json:"uri,omitempty"` + VoiceApplicationSid string `json:"voice_application_sid,omitempty"` + VoiceCallerIdLookup bool `json:"voice_caller_id_lookup,omitempty"` + VoiceFallbackMethod string `json:"voice_fallback_method,omitempty"` + VoiceFallbackUrl string `json:"voice_fallback_url,omitempty"` + VoiceMethod string `json:"voice_method,omitempty"` + VoiceReceiveMode string `json:"voice_receive_mode,omitempty"` + VoiceUrl string `json:"voice_url,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_local_read_response.go b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_local_read_response.go new file mode 100644 index 000000000..2a34860b2 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_local_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse struct for ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse +type ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse struct { + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + IncomingPhoneNumbers []ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocal `json:"incoming_phone_numbers,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_mobile.go b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_mobile.go new file mode 100644 index 000000000..4a0584a8d --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_mobile.go @@ -0,0 +1,47 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobile struct for ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobile +type ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobile struct { + AccountSid string `json:"account_sid,omitempty"` + AddressRequirements string `json:"address_requirements,omitempty"` + AddressSid string `json:"address_sid,omitempty"` + ApiVersion string `json:"api_version,omitempty"` + Beta bool `json:"beta,omitempty"` + BundleSid string `json:"bundle_sid,omitempty"` + Capabilities map[string]interface{} `json:"capabilities,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + EmergencyAddressSid string `json:"emergency_address_sid,omitempty"` + EmergencyStatus string `json:"emergency_status,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + IdentitySid string `json:"identity_sid,omitempty"` + Origin string `json:"origin,omitempty"` + PhoneNumber string `json:"phone_number,omitempty"` + Sid string `json:"sid,omitempty"` + SmsApplicationSid string `json:"sms_application_sid,omitempty"` + SmsFallbackMethod string `json:"sms_fallback_method,omitempty"` + SmsFallbackUrl string `json:"sms_fallback_url,omitempty"` + SmsMethod string `json:"sms_method,omitempty"` + SmsUrl string `json:"sms_url,omitempty"` + Status string `json:"status,omitempty"` + StatusCallback string `json:"status_callback,omitempty"` + StatusCallbackMethod string `json:"status_callback_method,omitempty"` + TrunkSid string `json:"trunk_sid,omitempty"` + Uri string `json:"uri,omitempty"` + VoiceApplicationSid string `json:"voice_application_sid,omitempty"` + VoiceCallerIdLookup bool `json:"voice_caller_id_lookup,omitempty"` + VoiceFallbackMethod string `json:"voice_fallback_method,omitempty"` + VoiceFallbackUrl string `json:"voice_fallback_url,omitempty"` + VoiceMethod string `json:"voice_method,omitempty"` + VoiceReceiveMode string `json:"voice_receive_mode,omitempty"` + VoiceUrl string `json:"voice_url,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_mobile_read_response.go b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_mobile_read_response.go new file mode 100644 index 000000000..e5e8fe081 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_mobile_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse struct for ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse +type ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse struct { + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + IncomingPhoneNumbers []ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobile `json:"incoming_phone_numbers,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_toll_free.go b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_toll_free.go new file mode 100644 index 000000000..89cdf97e2 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_toll_free.go @@ -0,0 +1,47 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFree struct for ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFree +type ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFree struct { + AccountSid string `json:"account_sid,omitempty"` + AddressRequirements string `json:"address_requirements,omitempty"` + AddressSid string `json:"address_sid,omitempty"` + ApiVersion string `json:"api_version,omitempty"` + Beta bool `json:"beta,omitempty"` + BundleSid string `json:"bundle_sid,omitempty"` + Capabilities map[string]interface{} `json:"capabilities,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + EmergencyAddressSid string `json:"emergency_address_sid,omitempty"` + EmergencyStatus string `json:"emergency_status,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + IdentitySid string `json:"identity_sid,omitempty"` + Origin string `json:"origin,omitempty"` + PhoneNumber string `json:"phone_number,omitempty"` + Sid string `json:"sid,omitempty"` + SmsApplicationSid string `json:"sms_application_sid,omitempty"` + SmsFallbackMethod string `json:"sms_fallback_method,omitempty"` + SmsFallbackUrl string `json:"sms_fallback_url,omitempty"` + SmsMethod string `json:"sms_method,omitempty"` + SmsUrl string `json:"sms_url,omitempty"` + Status string `json:"status,omitempty"` + StatusCallback string `json:"status_callback,omitempty"` + StatusCallbackMethod string `json:"status_callback_method,omitempty"` + TrunkSid string `json:"trunk_sid,omitempty"` + Uri string `json:"uri,omitempty"` + VoiceApplicationSid string `json:"voice_application_sid,omitempty"` + VoiceCallerIdLookup bool `json:"voice_caller_id_lookup,omitempty"` + VoiceFallbackMethod string `json:"voice_fallback_method,omitempty"` + VoiceFallbackUrl string `json:"voice_fallback_url,omitempty"` + VoiceMethod string `json:"voice_method,omitempty"` + VoiceReceiveMode string `json:"voice_receive_mode,omitempty"` + VoiceUrl string `json:"voice_url,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_toll_free_read_response.go b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_toll_free_read_response.go new file mode 100644 index 000000000..374af79b8 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_toll_free_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse struct for ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse +type ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse struct { + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + IncomingPhoneNumbers []ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFree `json:"incoming_phone_numbers,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_read_response.go b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_read_response.go new file mode 100644 index 000000000..103b92a0e --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountIncomingPhoneNumberReadResponse struct for ApiV2010AccountIncomingPhoneNumberReadResponse +type ApiV2010AccountIncomingPhoneNumberReadResponse struct { + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + IncomingPhoneNumbers []ApiV2010AccountIncomingPhoneNumber `json:"incoming_phone_numbers,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_key.go b/rest/api/v2010/model_api_v2010_account_key.go new file mode 100644 index 000000000..85c23e163 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_key.go @@ -0,0 +1,18 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountKey struct for ApiV2010AccountKey +type ApiV2010AccountKey struct { + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Sid string `json:"sid,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_key_read_response.go b/rest/api/v2010/model_api_v2010_account_key_read_response.go new file mode 100644 index 000000000..9c007f902 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_key_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountKeyReadResponse struct for ApiV2010AccountKeyReadResponse +type ApiV2010AccountKeyReadResponse struct { + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + Keys []ApiV2010AccountKey `json:"keys,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_message.go b/rest/api/v2010/model_api_v2010_account_message.go new file mode 100644 index 000000000..03068b95d --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_message.go @@ -0,0 +1,34 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountMessage struct for ApiV2010AccountMessage +type ApiV2010AccountMessage struct { + AccountSid string `json:"account_sid,omitempty"` + ApiVersion string `json:"api_version,omitempty"` + Body string `json:"body,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateSent string `json:"date_sent,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + Direction string `json:"direction,omitempty"` + ErrorCode *int32 `json:"error_code,omitempty"` + ErrorMessage string `json:"error_message,omitempty"` + From string `json:"from,omitempty"` + MessagingServiceSid string `json:"messaging_service_sid,omitempty"` + NumMedia string `json:"num_media,omitempty"` + NumSegments string `json:"num_segments,omitempty"` + Price string `json:"price,omitempty"` + PriceUnit string `json:"price_unit,omitempty"` + Sid string `json:"sid,omitempty"` + Status string `json:"status,omitempty"` + SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` + To string `json:"to,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_message_media.go b/rest/api/v2010/model_api_v2010_account_message_media.go new file mode 100644 index 000000000..4429e4fe2 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_message_media.go @@ -0,0 +1,21 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountMessageMedia struct for ApiV2010AccountMessageMedia +type ApiV2010AccountMessageMedia struct { + AccountSid string `json:"account_sid,omitempty"` + ContentType string `json:"content_type,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + ParentSid string `json:"parent_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_message_media_read_response.go b/rest/api/v2010/model_api_v2010_account_message_media_read_response.go new file mode 100644 index 000000000..186a03203 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_message_media_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountMessageMediaReadResponse struct for ApiV2010AccountMessageMediaReadResponse +type ApiV2010AccountMessageMediaReadResponse struct { + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + MediaList []ApiV2010AccountMessageMedia `json:"media_list,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_message_message_feedback.go b/rest/api/v2010/model_api_v2010_account_message_message_feedback.go new file mode 100644 index 000000000..43d666ca5 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_message_message_feedback.go @@ -0,0 +1,20 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountMessageMessageFeedback struct for ApiV2010AccountMessageMessageFeedback +type ApiV2010AccountMessageMessageFeedback struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + MessageSid string `json:"message_sid,omitempty"` + Outcome string `json:"outcome,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_message_read_response.go b/rest/api/v2010/model_api_v2010_account_message_read_response.go new file mode 100644 index 000000000..5024ba48e --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_message_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountMessageReadResponse struct for ApiV2010AccountMessageReadResponse +type ApiV2010AccountMessageReadResponse struct { + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + Messages []ApiV2010AccountMessage `json:"messages,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_new_key.go b/rest/api/v2010/model_api_v2010_account_new_key.go new file mode 100644 index 000000000..e816fb367 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_new_key.go @@ -0,0 +1,19 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountNewKey struct for ApiV2010AccountNewKey +type ApiV2010AccountNewKey struct { + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Secret string `json:"secret,omitempty"` + Sid string `json:"sid,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_new_signing_key.go b/rest/api/v2010/model_api_v2010_account_new_signing_key.go new file mode 100644 index 000000000..2983cef27 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_new_signing_key.go @@ -0,0 +1,19 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountNewSigningKey struct for ApiV2010AccountNewSigningKey +type ApiV2010AccountNewSigningKey struct { + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Secret string `json:"secret,omitempty"` + Sid string `json:"sid,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_notification.go b/rest/api/v2010/model_api_v2010_account_notification.go new file mode 100644 index 000000000..7992faf71 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_notification.go @@ -0,0 +1,28 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountNotification struct for ApiV2010AccountNotification +type ApiV2010AccountNotification struct { + AccountSid string `json:"account_sid,omitempty"` + ApiVersion string `json:"api_version,omitempty"` + CallSid string `json:"call_sid,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + ErrorCode string `json:"error_code,omitempty"` + Log string `json:"log,omitempty"` + MessageDate string `json:"message_date,omitempty"` + MessageText string `json:"message_text,omitempty"` + MoreInfo string `json:"more_info,omitempty"` + RequestMethod string `json:"request_method,omitempty"` + RequestUrl string `json:"request_url,omitempty"` + Sid string `json:"sid,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_notification_instance.go b/rest/api/v2010/model_api_v2010_account_notification_instance.go new file mode 100644 index 000000000..cfc558c63 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_notification_instance.go @@ -0,0 +1,31 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountNotificationInstance struct for ApiV2010AccountNotificationInstance +type ApiV2010AccountNotificationInstance struct { + AccountSid string `json:"account_sid,omitempty"` + ApiVersion string `json:"api_version,omitempty"` + CallSid string `json:"call_sid,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + ErrorCode string `json:"error_code,omitempty"` + Log string `json:"log,omitempty"` + MessageDate string `json:"message_date,omitempty"` + MessageText string `json:"message_text,omitempty"` + MoreInfo string `json:"more_info,omitempty"` + RequestMethod string `json:"request_method,omitempty"` + RequestUrl string `json:"request_url,omitempty"` + RequestVariables string `json:"request_variables,omitempty"` + ResponseBody string `json:"response_body,omitempty"` + ResponseHeaders string `json:"response_headers,omitempty"` + Sid string `json:"sid,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_notification_read_response.go b/rest/api/v2010/model_api_v2010_account_notification_read_response.go new file mode 100644 index 000000000..115ff2b00 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_notification_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountNotificationReadResponse struct for ApiV2010AccountNotificationReadResponse +type ApiV2010AccountNotificationReadResponse struct { + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Notifications []ApiV2010AccountNotification `json:"notifications,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_outgoing_caller_id.go b/rest/api/v2010/model_api_v2010_account_outgoing_caller_id.go new file mode 100644 index 000000000..fc922f35b --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_outgoing_caller_id.go @@ -0,0 +1,21 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountOutgoingCallerId struct for ApiV2010AccountOutgoingCallerId +type ApiV2010AccountOutgoingCallerId struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + PhoneNumber string `json:"phone_number,omitempty"` + Sid string `json:"sid,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_outgoing_caller_id_read_response.go b/rest/api/v2010/model_api_v2010_account_outgoing_caller_id_read_response.go new file mode 100644 index 000000000..ea2c2ac33 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_outgoing_caller_id_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountOutgoingCallerIdReadResponse struct for ApiV2010AccountOutgoingCallerIdReadResponse +type ApiV2010AccountOutgoingCallerIdReadResponse struct { + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + OutgoingCallerIds []ApiV2010AccountOutgoingCallerId `json:"outgoing_caller_ids,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_queue.go b/rest/api/v2010/model_api_v2010_account_queue.go new file mode 100644 index 000000000..f7a90c8e8 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_queue.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountQueue struct for ApiV2010AccountQueue +type ApiV2010AccountQueue struct { + AccountSid string `json:"account_sid,omitempty"` + AverageWaitTime int32 `json:"average_wait_time,omitempty"` + CurrentSize int32 `json:"current_size,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + MaxSize int32 `json:"max_size,omitempty"` + Sid string `json:"sid,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_queue_member.go b/rest/api/v2010/model_api_v2010_account_queue_member.go new file mode 100644 index 000000000..06d2f68d0 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_queue_member.go @@ -0,0 +1,20 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountQueueMember struct for ApiV2010AccountQueueMember +type ApiV2010AccountQueueMember struct { + CallSid string `json:"call_sid,omitempty"` + DateEnqueued string `json:"date_enqueued,omitempty"` + Position int32 `json:"position,omitempty"` + QueueSid string `json:"queue_sid,omitempty"` + Uri string `json:"uri,omitempty"` + WaitTime int32 `json:"wait_time,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_queue_member_read_response.go b/rest/api/v2010/model_api_v2010_account_queue_member_read_response.go new file mode 100644 index 000000000..d24b12bf7 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_queue_member_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountQueueMemberReadResponse struct for ApiV2010AccountQueueMemberReadResponse +type ApiV2010AccountQueueMemberReadResponse struct { + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + QueueMembers []ApiV2010AccountQueueMember `json:"queue_members,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_queue_read_response.go b/rest/api/v2010/model_api_v2010_account_queue_read_response.go new file mode 100644 index 000000000..11850d0e2 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_queue_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountQueueReadResponse struct for ApiV2010AccountQueueReadResponse +type ApiV2010AccountQueueReadResponse struct { + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Queues []ApiV2010AccountQueue `json:"queues,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_read_response.go b/rest/api/v2010/model_api_v2010_account_read_response.go new file mode 100644 index 000000000..611a0a306 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountReadResponse struct for ApiV2010AccountReadResponse +type ApiV2010AccountReadResponse struct { + Accounts []ApiV2010Account `json:"accounts,omitempty"` + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_recording.go b/rest/api/v2010/model_api_v2010_account_recording.go new file mode 100644 index 000000000..ffb6ecfd5 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_recording.go @@ -0,0 +1,32 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountRecording struct for ApiV2010AccountRecording +type ApiV2010AccountRecording struct { + AccountSid string `json:"account_sid,omitempty"` + ApiVersion string `json:"api_version,omitempty"` + CallSid string `json:"call_sid,omitempty"` + Channels int32 `json:"channels,omitempty"` + ConferenceSid string `json:"conference_sid,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + Duration string `json:"duration,omitempty"` + EncryptionDetails map[string]interface{} `json:"encryption_details,omitempty"` + ErrorCode *int32 `json:"error_code,omitempty"` + Price string `json:"price,omitempty"` + PriceUnit string `json:"price_unit,omitempty"` + Sid string `json:"sid,omitempty"` + Source string `json:"source,omitempty"` + StartTime string `json:"start_time,omitempty"` + Status string `json:"status,omitempty"` + SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_recording_read_response.go b/rest/api/v2010/model_api_v2010_account_recording_read_response.go new file mode 100644 index 000000000..89fddb1e7 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_recording_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountRecordingReadResponse struct for ApiV2010AccountRecordingReadResponse +type ApiV2010AccountRecordingReadResponse struct { + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Recordings []ApiV2010AccountRecording `json:"recordings,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result.go b/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result.go new file mode 100644 index 000000000..63630f35e --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result.go @@ -0,0 +1,24 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountRecordingRecordingAddOnResult struct for ApiV2010AccountRecordingRecordingAddOnResult +type ApiV2010AccountRecordingRecordingAddOnResult struct { + AccountSid string `json:"account_sid,omitempty"` + AddOnConfigurationSid string `json:"add_on_configuration_sid,omitempty"` + AddOnSid string `json:"add_on_sid,omitempty"` + DateCompleted string `json:"date_completed,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + ReferenceSid string `json:"reference_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Status string `json:"status,omitempty"` + SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result_read_response.go b/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result_read_response.go new file mode 100644 index 000000000..84f7c3e31 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountRecordingRecordingAddOnResultReadResponse struct for ApiV2010AccountRecordingRecordingAddOnResultReadResponse +type ApiV2010AccountRecordingRecordingAddOnResultReadResponse struct { + AddOnResults []ApiV2010AccountRecordingRecordingAddOnResult `json:"add_on_results,omitempty"` + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result_recording_add_on_result_payload.go b/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result_recording_add_on_result_payload.go new file mode 100644 index 000000000..94f553fb3 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result_recording_add_on_result_payload.go @@ -0,0 +1,25 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayload struct for ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayload +type ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayload struct { + AccountSid string `json:"account_sid,omitempty"` + AddOnConfigurationSid string `json:"add_on_configuration_sid,omitempty"` + AddOnResultSid string `json:"add_on_result_sid,omitempty"` + AddOnSid string `json:"add_on_sid,omitempty"` + ContentType string `json:"content_type,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + Label string `json:"label,omitempty"` + ReferenceSid string `json:"reference_sid,omitempty"` + Sid string `json:"sid,omitempty"` + SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result_recording_add_on_result_payload_read_response.go b/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result_recording_add_on_result_payload_read_response.go new file mode 100644 index 000000000..9b6046524 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result_recording_add_on_result_payload_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse struct for ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse +type ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse struct { + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + Payloads []ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayload `json:"payloads,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_recording_recording_transcription.go b/rest/api/v2010/model_api_v2010_account_recording_recording_transcription.go new file mode 100644 index 000000000..b0faaf75f --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_recording_recording_transcription.go @@ -0,0 +1,27 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountRecordingRecordingTranscription struct for ApiV2010AccountRecordingRecordingTranscription +type ApiV2010AccountRecordingRecordingTranscription struct { + AccountSid string `json:"account_sid,omitempty"` + ApiVersion string `json:"api_version,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + Duration string `json:"duration,omitempty"` + Price float32 `json:"price,omitempty"` + PriceUnit string `json:"price_unit,omitempty"` + RecordingSid string `json:"recording_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Status string `json:"status,omitempty"` + TranscriptionText string `json:"transcription_text,omitempty"` + Type string `json:"type,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_recording_recording_transcription_read_response.go b/rest/api/v2010/model_api_v2010_account_recording_recording_transcription_read_response.go new file mode 100644 index 000000000..cb0e69df8 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_recording_recording_transcription_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountRecordingRecordingTranscriptionReadResponse struct for ApiV2010AccountRecordingRecordingTranscriptionReadResponse +type ApiV2010AccountRecordingRecordingTranscriptionReadResponse struct { + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Transcriptions []ApiV2010AccountRecordingRecordingTranscription `json:"transcriptions,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_short_code.go b/rest/api/v2010/model_api_v2010_account_short_code.go new file mode 100644 index 000000000..c43ec74dd --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_short_code.go @@ -0,0 +1,26 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountShortCode struct for ApiV2010AccountShortCode +type ApiV2010AccountShortCode struct { + AccountSid string `json:"account_sid,omitempty"` + ApiVersion string `json:"api_version,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + ShortCode string `json:"short_code,omitempty"` + Sid string `json:"sid,omitempty"` + SmsFallbackMethod string `json:"sms_fallback_method,omitempty"` + SmsFallbackUrl string `json:"sms_fallback_url,omitempty"` + SmsMethod string `json:"sms_method,omitempty"` + SmsUrl string `json:"sms_url,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_short_code_read_response.go b/rest/api/v2010/model_api_v2010_account_short_code_read_response.go new file mode 100644 index 000000000..7150eac0a --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_short_code_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountShortCodeReadResponse struct for ApiV2010AccountShortCodeReadResponse +type ApiV2010AccountShortCodeReadResponse struct { + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + ShortCodes []ApiV2010AccountShortCode `json:"short_codes,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_signing_key.go b/rest/api/v2010/model_api_v2010_account_signing_key.go new file mode 100644 index 000000000..16883ed95 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_signing_key.go @@ -0,0 +1,18 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountSigningKey struct for ApiV2010AccountSigningKey +type ApiV2010AccountSigningKey struct { + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Sid string `json:"sid,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_signing_key_read_response.go b/rest/api/v2010/model_api_v2010_account_signing_key_read_response.go new file mode 100644 index 000000000..bdca3df78 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_signing_key_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountSigningKeyReadResponse struct for ApiV2010AccountSigningKeyReadResponse +type ApiV2010AccountSigningKeyReadResponse struct { + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + SigningKeys []ApiV2010AccountSigningKey `json:"signing_keys,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list.go b/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list.go new file mode 100644 index 000000000..9171fbb73 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list.go @@ -0,0 +1,21 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountSipSipCredentialList struct for ApiV2010AccountSipSipCredentialList +type ApiV2010AccountSipSipCredentialList struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Sid string `json:"sid,omitempty"` + SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list_read_response.go b/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list_read_response.go new file mode 100644 index 000000000..663af6e10 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountSipSipCredentialListReadResponse struct for ApiV2010AccountSipSipCredentialListReadResponse +type ApiV2010AccountSipSipCredentialListReadResponse struct { + CredentialLists []ApiV2010AccountSipSipCredentialList `json:"credential_lists,omitempty"` + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list_sip_credential.go b/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list_sip_credential.go new file mode 100644 index 000000000..83159b5af --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list_sip_credential.go @@ -0,0 +1,21 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountSipSipCredentialListSipCredential struct for ApiV2010AccountSipSipCredentialListSipCredential +type ApiV2010AccountSipSipCredentialListSipCredential struct { + AccountSid string `json:"account_sid,omitempty"` + CredentialListSid string `json:"credential_list_sid,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + Sid string `json:"sid,omitempty"` + Uri string `json:"uri,omitempty"` + Username string `json:"username,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list_sip_credential_read_response.go b/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list_sip_credential_read_response.go new file mode 100644 index 000000000..f6cfb1f37 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list_sip_credential_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountSipSipCredentialListSipCredentialReadResponse struct for ApiV2010AccountSipSipCredentialListSipCredentialReadResponse +type ApiV2010AccountSipSipCredentialListSipCredentialReadResponse struct { + Credentials []ApiV2010AccountSipSipCredentialListSipCredential `json:"credentials,omitempty"` + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_domain.go b/rest/api/v2010/model_api_v2010_account_sip_sip_domain.go new file mode 100644 index 000000000..40faf7499 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_domain.go @@ -0,0 +1,35 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountSipSipDomain struct for ApiV2010AccountSipSipDomain +type ApiV2010AccountSipSipDomain struct { + AccountSid string `json:"account_sid,omitempty"` + ApiVersion string `json:"api_version,omitempty"` + AuthType string `json:"auth_type,omitempty"` + ByocTrunkSid string `json:"byoc_trunk_sid,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + DomainName string `json:"domain_name,omitempty"` + EmergencyCallerSid string `json:"emergency_caller_sid,omitempty"` + EmergencyCallingEnabled bool `json:"emergency_calling_enabled,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Secure bool `json:"secure,omitempty"` + Sid string `json:"sid,omitempty"` + SipRegistration bool `json:"sip_registration,omitempty"` + SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` + Uri string `json:"uri,omitempty"` + VoiceFallbackMethod string `json:"voice_fallback_method,omitempty"` + VoiceFallbackUrl string `json:"voice_fallback_url,omitempty"` + VoiceMethod string `json:"voice_method,omitempty"` + VoiceStatusCallbackMethod string `json:"voice_status_callback_method,omitempty"` + VoiceStatusCallbackUrl string `json:"voice_status_callback_url,omitempty"` + VoiceUrl string `json:"voice_url,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_read_response.go b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_read_response.go new file mode 100644 index 000000000..4f07cd654 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountSipSipDomainReadResponse struct for ApiV2010AccountSipSipDomainReadResponse +type ApiV2010AccountSipSipDomainReadResponse struct { + Domains []ApiV2010AccountSipSipDomain `json:"domains,omitempty"` + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_credential_list_mapping.go b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_credential_list_mapping.go new file mode 100644 index 000000000..23ecb3e5c --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_credential_list_mapping.go @@ -0,0 +1,19 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping struct for ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping +type ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Sid string `json:"sid,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_credential_list_mapping_read_response.go b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_credential_list_mapping_read_response.go new file mode 100644 index 000000000..c70536afb --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_credential_list_mapping_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse struct for ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse +type ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse struct { + Contents []ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping `json:"contents,omitempty"` + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_ip_access_control_list_mapping.go b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_ip_access_control_list_mapping.go new file mode 100644 index 000000000..74589e96b --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_ip_access_control_list_mapping.go @@ -0,0 +1,19 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping struct for ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping +type ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Sid string `json:"sid,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_ip_access_control_list_mapping_read_response.go b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_ip_access_control_list_mapping_read_response.go new file mode 100644 index 000000000..cdf792ba3 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_ip_access_control_list_mapping_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse struct for ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse +type ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse struct { + Contents []ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping `json:"contents,omitempty"` + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_registrations_sip_auth_registrations_credential_list_mapping.go b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_registrations_sip_auth_registrations_credential_list_mapping.go new file mode 100644 index 000000000..89ad8f0f5 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_registrations_sip_auth_registrations_credential_list_mapping.go @@ -0,0 +1,19 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping struct for ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping +type ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Sid string `json:"sid,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_registrations_sip_auth_registrations_credential_list_mapping_read_response.go b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_registrations_sip_auth_registrations_credential_list_mapping_read_response.go new file mode 100644 index 000000000..c7eccf109 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_registrations_sip_auth_registrations_credential_list_mapping_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse struct for ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse +type ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse struct { + Contents []ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping `json:"contents,omitempty"` + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_credential_list_mapping.go b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_credential_list_mapping.go new file mode 100644 index 000000000..5428b320d --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_credential_list_mapping.go @@ -0,0 +1,21 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountSipSipDomainSipCredentialListMapping struct for ApiV2010AccountSipSipDomainSipCredentialListMapping +type ApiV2010AccountSipSipDomainSipCredentialListMapping struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Sid string `json:"sid,omitempty"` + SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_credential_list_mapping_read_response.go b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_credential_list_mapping_read_response.go new file mode 100644 index 000000000..bf419ab9e --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_credential_list_mapping_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse struct for ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse +type ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse struct { + CredentialListMappings []ApiV2010AccountSipSipDomainSipCredentialListMapping `json:"credential_list_mappings,omitempty"` + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_ip_access_control_list_mapping.go b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_ip_access_control_list_mapping.go new file mode 100644 index 000000000..4634f41fc --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_ip_access_control_list_mapping.go @@ -0,0 +1,21 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountSipSipDomainSipIpAccessControlListMapping struct for ApiV2010AccountSipSipDomainSipIpAccessControlListMapping +type ApiV2010AccountSipSipDomainSipIpAccessControlListMapping struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Sid string `json:"sid,omitempty"` + SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_ip_access_control_list_mapping_read_response.go b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_ip_access_control_list_mapping_read_response.go new file mode 100644 index 000000000..12dcaa209 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_ip_access_control_list_mapping_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse struct for ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse +type ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse struct { + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + IpAccessControlListMappings []ApiV2010AccountSipSipDomainSipIpAccessControlListMapping `json:"ip_access_control_list_mappings,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list.go b/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list.go new file mode 100644 index 000000000..f142b837a --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list.go @@ -0,0 +1,21 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountSipSipIpAccessControlList struct for ApiV2010AccountSipSipIpAccessControlList +type ApiV2010AccountSipSipIpAccessControlList struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Sid string `json:"sid,omitempty"` + SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list_read_response.go b/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list_read_response.go new file mode 100644 index 000000000..a3b454aa3 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountSipSipIpAccessControlListReadResponse struct for ApiV2010AccountSipSipIpAccessControlListReadResponse +type ApiV2010AccountSipSipIpAccessControlListReadResponse struct { + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + IpAccessControlLists []ApiV2010AccountSipSipIpAccessControlList `json:"ip_access_control_lists,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list_sip_ip_address.go b/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list_sip_ip_address.go new file mode 100644 index 000000000..cdff3f2d5 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list_sip_ip_address.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountSipSipIpAccessControlListSipIpAddress struct for ApiV2010AccountSipSipIpAccessControlListSipIpAddress +type ApiV2010AccountSipSipIpAccessControlListSipIpAddress struct { + AccountSid string `json:"account_sid,omitempty"` + CidrPrefixLength int32 `json:"cidr_prefix_length,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + IpAccessControlListSid string `json:"ip_access_control_list_sid,omitempty"` + IpAddress string `json:"ip_address,omitempty"` + Sid string `json:"sid,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list_sip_ip_address_read_response.go b/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list_sip_ip_address_read_response.go new file mode 100644 index 000000000..2da052569 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list_sip_ip_address_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse struct for ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse +type ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse struct { + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + IpAddresses []ApiV2010AccountSipSipIpAccessControlListSipIpAddress `json:"ip_addresses,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_token.go b/rest/api/v2010/model_api_v2010_account_token.go new file mode 100644 index 000000000..5047a004b --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_token.go @@ -0,0 +1,21 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountToken struct for ApiV2010AccountToken +type ApiV2010AccountToken struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + IceServers []map[string]interface{} `json:"ice_servers,omitempty"` + Password string `json:"password,omitempty"` + Ttl string `json:"ttl,omitempty"` + Username string `json:"username,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_transcription.go b/rest/api/v2010/model_api_v2010_account_transcription.go new file mode 100644 index 000000000..1bb22e5be --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_transcription.go @@ -0,0 +1,27 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountTranscription struct for ApiV2010AccountTranscription +type ApiV2010AccountTranscription struct { + AccountSid string `json:"account_sid,omitempty"` + ApiVersion string `json:"api_version,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + Duration string `json:"duration,omitempty"` + Price float32 `json:"price,omitempty"` + PriceUnit string `json:"price_unit,omitempty"` + RecordingSid string `json:"recording_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Status string `json:"status,omitempty"` + TranscriptionText string `json:"transcription_text,omitempty"` + Type string `json:"type,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_transcription_read_response.go b/rest/api/v2010/model_api_v2010_account_transcription_read_response.go new file mode 100644 index 000000000..810ce538c --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_transcription_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountTranscriptionReadResponse struct for ApiV2010AccountTranscriptionReadResponse +type ApiV2010AccountTranscriptionReadResponse struct { + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Transcriptions []ApiV2010AccountTranscription `json:"transcriptions,omitempty"` + Uri string `json:"uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record.go new file mode 100644 index 000000000..1c08a9726 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record.go @@ -0,0 +1,32 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ApiV2010AccountUsageUsageRecord struct for ApiV2010AccountUsageUsageRecord +type ApiV2010AccountUsageUsageRecord struct { + AccountSid string `json:"account_sid,omitempty"` + ApiVersion string `json:"api_version,omitempty"` + AsOf string `json:"as_of,omitempty"` + Category string `json:"category,omitempty"` + Count string `json:"count,omitempty"` + CountUnit string `json:"count_unit,omitempty"` + Description string `json:"description,omitempty"` + EndDate time.Time `json:"end_date,omitempty"` + Price float32 `json:"price,omitempty"` + PriceUnit string `json:"price_unit,omitempty"` + StartDate time.Time `json:"start_date,omitempty"` + SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` + Uri string `json:"uri,omitempty"` + Usage string `json:"usage,omitempty"` + UsageUnit string `json:"usage_unit,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_read_response.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_read_response.go new file mode 100644 index 000000000..2bbec9d1d --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountUsageUsageRecordReadResponse struct for ApiV2010AccountUsageUsageRecordReadResponse +type ApiV2010AccountUsageUsageRecordReadResponse struct { + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + UsageRecords []ApiV2010AccountUsageUsageRecord `json:"usage_records,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_all_time.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_all_time.go new file mode 100644 index 000000000..0daec31c1 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_all_time.go @@ -0,0 +1,32 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ApiV2010AccountUsageUsageRecordUsageRecordAllTime struct for ApiV2010AccountUsageUsageRecordUsageRecordAllTime +type ApiV2010AccountUsageUsageRecordUsageRecordAllTime struct { + AccountSid string `json:"account_sid,omitempty"` + ApiVersion string `json:"api_version,omitempty"` + AsOf string `json:"as_of,omitempty"` + Category string `json:"category,omitempty"` + Count string `json:"count,omitempty"` + CountUnit string `json:"count_unit,omitempty"` + Description string `json:"description,omitempty"` + EndDate time.Time `json:"end_date,omitempty"` + Price float32 `json:"price,omitempty"` + PriceUnit string `json:"price_unit,omitempty"` + StartDate time.Time `json:"start_date,omitempty"` + SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` + Uri string `json:"uri,omitempty"` + Usage string `json:"usage,omitempty"` + UsageUnit string `json:"usage_unit,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_all_time_read_response.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_all_time_read_response.go new file mode 100644 index 000000000..56877432a --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_all_time_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse struct for ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse +type ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse struct { + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + UsageRecords []ApiV2010AccountUsageUsageRecordUsageRecordAllTime `json:"usage_records,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_daily.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_daily.go new file mode 100644 index 000000000..ac036e86d --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_daily.go @@ -0,0 +1,32 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ApiV2010AccountUsageUsageRecordUsageRecordDaily struct for ApiV2010AccountUsageUsageRecordUsageRecordDaily +type ApiV2010AccountUsageUsageRecordUsageRecordDaily struct { + AccountSid string `json:"account_sid,omitempty"` + ApiVersion string `json:"api_version,omitempty"` + AsOf string `json:"as_of,omitempty"` + Category string `json:"category,omitempty"` + Count string `json:"count,omitempty"` + CountUnit string `json:"count_unit,omitempty"` + Description string `json:"description,omitempty"` + EndDate time.Time `json:"end_date,omitempty"` + Price float32 `json:"price,omitempty"` + PriceUnit string `json:"price_unit,omitempty"` + StartDate time.Time `json:"start_date,omitempty"` + SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` + Uri string `json:"uri,omitempty"` + Usage string `json:"usage,omitempty"` + UsageUnit string `json:"usage_unit,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_daily_read_response.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_daily_read_response.go new file mode 100644 index 000000000..baedf62cc --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_daily_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse struct for ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse +type ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse struct { + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + UsageRecords []ApiV2010AccountUsageUsageRecordUsageRecordDaily `json:"usage_records,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_last_month.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_last_month.go new file mode 100644 index 000000000..c8307b438 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_last_month.go @@ -0,0 +1,32 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ApiV2010AccountUsageUsageRecordUsageRecordLastMonth struct for ApiV2010AccountUsageUsageRecordUsageRecordLastMonth +type ApiV2010AccountUsageUsageRecordUsageRecordLastMonth struct { + AccountSid string `json:"account_sid,omitempty"` + ApiVersion string `json:"api_version,omitempty"` + AsOf string `json:"as_of,omitempty"` + Category string `json:"category,omitempty"` + Count string `json:"count,omitempty"` + CountUnit string `json:"count_unit,omitempty"` + Description string `json:"description,omitempty"` + EndDate time.Time `json:"end_date,omitempty"` + Price float32 `json:"price,omitempty"` + PriceUnit string `json:"price_unit,omitempty"` + StartDate time.Time `json:"start_date,omitempty"` + SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` + Uri string `json:"uri,omitempty"` + Usage string `json:"usage,omitempty"` + UsageUnit string `json:"usage_unit,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_last_month_read_response.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_last_month_read_response.go new file mode 100644 index 000000000..ef4768cd5 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_last_month_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse struct for ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse +type ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse struct { + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + UsageRecords []ApiV2010AccountUsageUsageRecordUsageRecordLastMonth `json:"usage_records,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_monthly.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_monthly.go new file mode 100644 index 000000000..2fd9404d3 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_monthly.go @@ -0,0 +1,32 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ApiV2010AccountUsageUsageRecordUsageRecordMonthly struct for ApiV2010AccountUsageUsageRecordUsageRecordMonthly +type ApiV2010AccountUsageUsageRecordUsageRecordMonthly struct { + AccountSid string `json:"account_sid,omitempty"` + ApiVersion string `json:"api_version,omitempty"` + AsOf string `json:"as_of,omitempty"` + Category string `json:"category,omitempty"` + Count string `json:"count,omitempty"` + CountUnit string `json:"count_unit,omitempty"` + Description string `json:"description,omitempty"` + EndDate time.Time `json:"end_date,omitempty"` + Price float32 `json:"price,omitempty"` + PriceUnit string `json:"price_unit,omitempty"` + StartDate time.Time `json:"start_date,omitempty"` + SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` + Uri string `json:"uri,omitempty"` + Usage string `json:"usage,omitempty"` + UsageUnit string `json:"usage_unit,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_monthly_read_response.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_monthly_read_response.go new file mode 100644 index 000000000..a712c125c --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_monthly_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse struct for ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse +type ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse struct { + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + UsageRecords []ApiV2010AccountUsageUsageRecordUsageRecordMonthly `json:"usage_records,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_this_month.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_this_month.go new file mode 100644 index 000000000..1e3bcc967 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_this_month.go @@ -0,0 +1,32 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ApiV2010AccountUsageUsageRecordUsageRecordThisMonth struct for ApiV2010AccountUsageUsageRecordUsageRecordThisMonth +type ApiV2010AccountUsageUsageRecordUsageRecordThisMonth struct { + AccountSid string `json:"account_sid,omitempty"` + ApiVersion string `json:"api_version,omitempty"` + AsOf string `json:"as_of,omitempty"` + Category string `json:"category,omitempty"` + Count string `json:"count,omitempty"` + CountUnit string `json:"count_unit,omitempty"` + Description string `json:"description,omitempty"` + EndDate time.Time `json:"end_date,omitempty"` + Price float32 `json:"price,omitempty"` + PriceUnit string `json:"price_unit,omitempty"` + StartDate time.Time `json:"start_date,omitempty"` + SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` + Uri string `json:"uri,omitempty"` + Usage string `json:"usage,omitempty"` + UsageUnit string `json:"usage_unit,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_this_month_read_response.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_this_month_read_response.go new file mode 100644 index 000000000..902b2764a --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_this_month_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse struct for ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse +type ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse struct { + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + UsageRecords []ApiV2010AccountUsageUsageRecordUsageRecordThisMonth `json:"usage_records,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_today.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_today.go new file mode 100644 index 000000000..de12deb57 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_today.go @@ -0,0 +1,32 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ApiV2010AccountUsageUsageRecordUsageRecordToday struct for ApiV2010AccountUsageUsageRecordUsageRecordToday +type ApiV2010AccountUsageUsageRecordUsageRecordToday struct { + AccountSid string `json:"account_sid,omitempty"` + ApiVersion string `json:"api_version,omitempty"` + AsOf string `json:"as_of,omitempty"` + Category string `json:"category,omitempty"` + Count string `json:"count,omitempty"` + CountUnit string `json:"count_unit,omitempty"` + Description string `json:"description,omitempty"` + EndDate time.Time `json:"end_date,omitempty"` + Price float32 `json:"price,omitempty"` + PriceUnit string `json:"price_unit,omitempty"` + StartDate time.Time `json:"start_date,omitempty"` + SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` + Uri string `json:"uri,omitempty"` + Usage string `json:"usage,omitempty"` + UsageUnit string `json:"usage_unit,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_today_read_response.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_today_read_response.go new file mode 100644 index 000000000..d0e299185 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_today_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse struct for ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse +type ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse struct { + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + UsageRecords []ApiV2010AccountUsageUsageRecordUsageRecordToday `json:"usage_records,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yearly.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yearly.go new file mode 100644 index 000000000..74a76960a --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yearly.go @@ -0,0 +1,32 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ApiV2010AccountUsageUsageRecordUsageRecordYearly struct for ApiV2010AccountUsageUsageRecordUsageRecordYearly +type ApiV2010AccountUsageUsageRecordUsageRecordYearly struct { + AccountSid string `json:"account_sid,omitempty"` + ApiVersion string `json:"api_version,omitempty"` + AsOf string `json:"as_of,omitempty"` + Category string `json:"category,omitempty"` + Count string `json:"count,omitempty"` + CountUnit string `json:"count_unit,omitempty"` + Description string `json:"description,omitempty"` + EndDate time.Time `json:"end_date,omitempty"` + Price float32 `json:"price,omitempty"` + PriceUnit string `json:"price_unit,omitempty"` + StartDate time.Time `json:"start_date,omitempty"` + SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` + Uri string `json:"uri,omitempty"` + Usage string `json:"usage,omitempty"` + UsageUnit string `json:"usage_unit,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yearly_read_response.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yearly_read_response.go new file mode 100644 index 000000000..9099b3456 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yearly_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse struct for ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse +type ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse struct { + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + UsageRecords []ApiV2010AccountUsageUsageRecordUsageRecordYearly `json:"usage_records,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yesterday.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yesterday.go new file mode 100644 index 000000000..6b5fdf732 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yesterday.go @@ -0,0 +1,32 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ApiV2010AccountUsageUsageRecordUsageRecordYesterday struct for ApiV2010AccountUsageUsageRecordUsageRecordYesterday +type ApiV2010AccountUsageUsageRecordUsageRecordYesterday struct { + AccountSid string `json:"account_sid,omitempty"` + ApiVersion string `json:"api_version,omitempty"` + AsOf string `json:"as_of,omitempty"` + Category string `json:"category,omitempty"` + Count string `json:"count,omitempty"` + CountUnit string `json:"count_unit,omitempty"` + Description string `json:"description,omitempty"` + EndDate time.Time `json:"end_date,omitempty"` + Price float32 `json:"price,omitempty"` + PriceUnit string `json:"price_unit,omitempty"` + StartDate time.Time `json:"start_date,omitempty"` + SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` + Uri string `json:"uri,omitempty"` + Usage string `json:"usage,omitempty"` + UsageUnit string `json:"usage_unit,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yesterday_read_response.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yesterday_read_response.go new file mode 100644 index 000000000..4ca881c88 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yesterday_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse struct for ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse +type ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse struct { + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + UsageRecords []ApiV2010AccountUsageUsageRecordUsageRecordYesterday `json:"usage_records,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_trigger.go b/rest/api/v2010/model_api_v2010_account_usage_usage_trigger.go new file mode 100644 index 000000000..8fe0ce854 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_trigger.go @@ -0,0 +1,30 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountUsageUsageTrigger struct for ApiV2010AccountUsageUsageTrigger +type ApiV2010AccountUsageUsageTrigger struct { + AccountSid string `json:"account_sid,omitempty"` + ApiVersion string `json:"api_version,omitempty"` + CallbackMethod string `json:"callback_method,omitempty"` + CallbackUrl string `json:"callback_url,omitempty"` + CurrentValue string `json:"current_value,omitempty"` + DateCreated string `json:"date_created,omitempty"` + DateFired string `json:"date_fired,omitempty"` + DateUpdated string `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Recurring string `json:"recurring,omitempty"` + Sid string `json:"sid,omitempty"` + TriggerBy string `json:"trigger_by,omitempty"` + TriggerValue string `json:"trigger_value,omitempty"` + Uri string `json:"uri,omitempty"` + UsageCategory string `json:"usage_category,omitempty"` + UsageRecordUri string `json:"usage_record_uri,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_trigger_read_response.go b/rest/api/v2010/model_api_v2010_account_usage_usage_trigger_read_response.go new file mode 100644 index 000000000..267f44dd4 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_trigger_read_response.go @@ -0,0 +1,23 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountUsageUsageTriggerReadResponse struct for ApiV2010AccountUsageUsageTriggerReadResponse +type ApiV2010AccountUsageUsageTriggerReadResponse struct { + End int32 `json:"end,omitempty"` + FirstPageUri string `json:"first_page_uri,omitempty"` + NextPageUri string `json:"next_page_uri,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUri string `json:"previous_page_uri,omitempty"` + Start int32 `json:"start,omitempty"` + Uri string `json:"uri,omitempty"` + UsageTriggers []ApiV2010AccountUsageUsageTrigger `json:"usage_triggers,omitempty"` +} diff --git a/rest/api/v2010/model_api_v2010_account_validation_request.go b/rest/api/v2010/model_api_v2010_account_validation_request.go new file mode 100644 index 000000000..700be2c14 --- /dev/null +++ b/rest/api/v2010/model_api_v2010_account_validation_request.go @@ -0,0 +1,19 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ApiV2010AccountValidationRequest struct for ApiV2010AccountValidationRequest +type ApiV2010AccountValidationRequest struct { + AccountSid string `json:"account_sid,omitempty"` + CallSid string `json:"call_sid,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + PhoneNumber string `json:"phone_number,omitempty"` + ValidationCode string `json:"validation_code,omitempty"` +} diff --git a/rest/api/v2010/model_create_account_request.go b/rest/api/v2010/model_create_account_request.go new file mode 100644 index 000000000..8eb8a78c0 --- /dev/null +++ b/rest/api/v2010/model_create_account_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateAccountRequest struct for CreateAccountRequest +type CreateAccountRequest struct { + // A human readable description of the account to create, defaults to `SubAccount Created at {YYYY-MM-DD HH:MM meridian}` + FriendlyName string `json:"FriendlyName,omitempty"` +} diff --git a/rest/api/v2010/model_create_address_request.go b/rest/api/v2010/model_create_address_request.go new file mode 100644 index 000000000..715c29a03 --- /dev/null +++ b/rest/api/v2010/model_create_address_request.go @@ -0,0 +1,32 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateAddressRequest struct for CreateAddressRequest +type CreateAddressRequest struct { + // 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. + AutoCorrectAddress bool `json:"AutoCorrectAddress,omitempty"` + // The city of the new address. + City string `json:"City"` + // The name to associate with the new address. + CustomerName string `json:"CustomerName"` + // Whether to enable emergency calling on the new address. Can be: `true` or `false`. + EmergencyEnabled bool `json:"EmergencyEnabled,omitempty"` + // A descriptive string that you create to describe the new address. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // The ISO country code of the new address. + IsoCountry string `json:"IsoCountry"` + // The postal code of the new address. + PostalCode string `json:"PostalCode"` + // The state or region of the new address. + Region string `json:"Region"` + // The number and street address of the new address. + Street string `json:"Street"` +} diff --git a/rest/api/v2010/model_create_application_request.go b/rest/api/v2010/model_create_application_request.go new file mode 100644 index 000000000..b8251dc62 --- /dev/null +++ b/rest/api/v2010/model_create_application_request.go @@ -0,0 +1,44 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateApplicationRequest struct for CreateApplicationRequest +type CreateApplicationRequest struct { + // 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. + ApiVersion string `json:"ApiVersion,omitempty"` + // A descriptive string that you create to describe the new application. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // The URL we should call using a POST method to send message status information to your application. + MessageStatusCallback string `json:"MessageStatusCallback,omitempty"` + // The HTTP method we should use to call `sms_fallback_url`. Can be: `GET` or `POST`. + SmsFallbackMethod string `json:"SmsFallbackMethod,omitempty"` + // The URL that we should call when an error occurs while retrieving or executing the TwiML from `sms_url`. + SmsFallbackUrl string `json:"SmsFallbackUrl,omitempty"` + // The HTTP method we should use to call `sms_url`. Can be: `GET` or `POST`. + SmsMethod string `json:"SmsMethod,omitempty"` + // The URL we should call using a POST method to send status information about SMS messages sent by the application. + SmsStatusCallback string `json:"SmsStatusCallback,omitempty"` + // The URL we should call when the phone number receives an incoming SMS message. + SmsUrl string `json:"SmsUrl,omitempty"` + // The URL we should call using the `status_callback_method` to send status information to your application. + StatusCallback string `json:"StatusCallback,omitempty"` + // The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST`. + StatusCallbackMethod string `json:"StatusCallbackMethod,omitempty"` + // Whether we should look up the caller's caller-ID name from the CNAM database (additional charges apply). Can be: `true` or `false`. + VoiceCallerIdLookup bool `json:"VoiceCallerIdLookup,omitempty"` + // The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. + VoiceFallbackMethod string `json:"VoiceFallbackMethod,omitempty"` + // The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. + VoiceFallbackUrl string `json:"VoiceFallbackUrl,omitempty"` + // The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`. + VoiceMethod string `json:"VoiceMethod,omitempty"` + // The URL we should call when the phone number assigned to this application receives a call. + VoiceUrl string `json:"VoiceUrl,omitempty"` +} diff --git a/rest/api/v2010/model_create_call_feedback_summary_request.go b/rest/api/v2010/model_create_call_feedback_summary_request.go new file mode 100644 index 000000000..bc8526665 --- /dev/null +++ b/rest/api/v2010/model_create_call_feedback_summary_request.go @@ -0,0 +1,27 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// CreateCallFeedbackSummaryRequest struct for CreateCallFeedbackSummaryRequest +type CreateCallFeedbackSummaryRequest struct { + // Only include feedback given on or before this date. Format is `YYYY-MM-DD` and specified in UTC. + EndDate time.Time `json:"EndDate"` + // 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. + IncludeSubaccounts bool `json:"IncludeSubaccounts,omitempty"` + // Only include feedback given on or after this date. Format is `YYYY-MM-DD` and specified in UTC. + StartDate time.Time `json:"StartDate"` + // The URL that we will request when the feedback summary is complete. + StatusCallback string `json:"StatusCallback,omitempty"` + // The HTTP method (`GET` or `POST`) we use to make the request to the `StatusCallback` URL. + StatusCallbackMethod string `json:"StatusCallbackMethod,omitempty"` +} diff --git a/rest/api/v2010/model_create_call_recording_request.go b/rest/api/v2010/model_create_call_recording_request.go new file mode 100644 index 000000000..afc2fdeb2 --- /dev/null +++ b/rest/api/v2010/model_create_call_recording_request.go @@ -0,0 +1,26 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateCallRecordingRequest struct for CreateCallRecordingRequest +type CreateCallRecordingRequest struct { + // 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. + RecordingChannels string `json:"RecordingChannels,omitempty"` + // 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). + RecordingStatusCallback string `json:"RecordingStatusCallback,omitempty"` + // 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. + RecordingStatusCallbackEvent []string `json:"RecordingStatusCallbackEvent,omitempty"` + // The HTTP method we should use to call `recording_status_callback`. Can be: `GET` or `POST` and the default is `POST`. + RecordingStatusCallbackMethod string `json:"RecordingStatusCallbackMethod,omitempty"` + // 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. + RecordingTrack string `json:"RecordingTrack,omitempty"` + // 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. + Trim string `json:"Trim,omitempty"` +} diff --git a/rest/api/v2010/model_create_call_request.go b/rest/api/v2010/model_create_call_request.go new file mode 100644 index 000000000..fbe538285 --- /dev/null +++ b/rest/api/v2010/model_create_call_request.go @@ -0,0 +1,80 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateCallRequest struct for CreateCallRequest +type CreateCallRequest struct { + // The SID of the Application resource that will handle the call, if the call will be handled by an application. + ApplicationSid string `json:"ApplicationSid,omitempty"` + // 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`. + AsyncAmd string `json:"AsyncAmd,omitempty"` + // 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. + AsyncAmdStatusCallback string `json:"AsyncAmdStatusCallback,omitempty"` + // The HTTP method we should use when calling the `async_amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. + AsyncAmdStatusCallbackMethod string `json:"AsyncAmdStatusCallbackMethod,omitempty"` + // 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) + Byoc string `json:"Byoc,omitempty"` + // 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) + CallReason string `json:"CallReason,omitempty"` + // 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`. + CallerId string `json:"CallerId,omitempty"` + // 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. + FallbackMethod string `json:"FallbackMethod,omitempty"` + // 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. + FallbackUrl string `json:"FallbackUrl,omitempty"` + // 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. + From string `json:"From"` + // 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). + MachineDetection string `json:"MachineDetection,omitempty"` + // The number of milliseconds of initial silence after which an `unknown` AnsweredBy result will be returned. Possible Values: 2000-10000. Default: 5000. + MachineDetectionSilenceTimeout int32 `json:"MachineDetectionSilenceTimeout,omitempty"` + // The number of milliseconds of silence after speech activity at which point the speech activity is considered complete. Possible Values: 500-5000. Default: 1200. + MachineDetectionSpeechEndThreshold int32 `json:"MachineDetectionSpeechEndThreshold,omitempty"` + // 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. + MachineDetectionSpeechThreshold int32 `json:"MachineDetectionSpeechThreshold,omitempty"` + // 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. + MachineDetectionTimeout int32 `json:"MachineDetectionTimeout,omitempty"` + // 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. + Method string `json:"Method,omitempty"` + // 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. + Record bool `json:"Record,omitempty"` + // 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. + RecordingChannels string `json:"RecordingChannels,omitempty"` + // The URL that we call when the recording is available to be accessed. + RecordingStatusCallback string `json:"RecordingStatusCallback,omitempty"` + // 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. + RecordingStatusCallbackEvent []string `json:"RecordingStatusCallbackEvent,omitempty"` + // The HTTP method we should use when calling the `recording_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. + RecordingStatusCallbackMethod string `json:"RecordingStatusCallbackMethod,omitempty"` + // 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. + RecordingTrack string `json:"RecordingTrack,omitempty"` + // 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. + SendDigits string `json:"SendDigits,omitempty"` + // The password required to authenticate the user account specified in `sip_auth_username`. + SipAuthPassword string `json:"SipAuthPassword,omitempty"` + // The username used to authenticate the caller making a SIP call. + SipAuthUsername string `json:"SipAuthUsername,omitempty"` + // 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). + StatusCallback string `json:"StatusCallback,omitempty"` + // 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. + StatusCallbackEvent []string `json:"StatusCallbackEvent,omitempty"` + // 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. + StatusCallbackMethod string `json:"StatusCallbackMethod,omitempty"` + // 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. + Timeout int32 `json:"Timeout,omitempty"` + // The phone number, SIP address, or client identifier to call. + To string `json:"To"` + // 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`. + Trim string `json:"Trim,omitempty"` + // 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. + Twiml string `json:"Twiml,omitempty"` + // 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). + Url string `json:"Url,omitempty"` +} diff --git a/rest/api/v2010/model_create_incoming_phone_number_assigned_add_on_request.go b/rest/api/v2010/model_create_incoming_phone_number_assigned_add_on_request.go new file mode 100644 index 000000000..378966cde --- /dev/null +++ b/rest/api/v2010/model_create_incoming_phone_number_assigned_add_on_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateIncomingPhoneNumberAssignedAddOnRequest struct for CreateIncomingPhoneNumberAssignedAddOnRequest +type CreateIncomingPhoneNumberAssignedAddOnRequest struct { + // The SID that identifies the Add-on installation. + InstalledAddOnSid string `json:"InstalledAddOnSid"` +} diff --git a/rest/api/v2010/model_create_incoming_phone_number_local_request.go b/rest/api/v2010/model_create_incoming_phone_number_local_request.go new file mode 100644 index 000000000..da357d3bd --- /dev/null +++ b/rest/api/v2010/model_create_incoming_phone_number_local_request.go @@ -0,0 +1,60 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateIncomingPhoneNumberLocalRequest struct for CreateIncomingPhoneNumberLocalRequest +type CreateIncomingPhoneNumberLocalRequest struct { + // The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. + AddressSid string `json:"AddressSid,omitempty"` + // The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. + ApiVersion string `json:"ApiVersion,omitempty"` + // The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. + BundleSid string `json:"BundleSid,omitempty"` + // The SID of the emergency address configuration to use for emergency calling from the new phone number. + EmergencyAddressSid string `json:"EmergencyAddressSid,omitempty"` + // The configuration status parameter that determines whether the new phone number is enabled for emergency calling. + EmergencyStatus string `json:"EmergencyStatus,omitempty"` + // 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. + FriendlyName string `json:"FriendlyName,omitempty"` + // The SID of the Identity resource that we should associate with the new phone number. Some regions require an identity to meet local regulations. + IdentitySid string `json:"IdentitySid,omitempty"` + // 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. + PhoneNumber string `json:"PhoneNumber"` + // 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. + SmsApplicationSid string `json:"SmsApplicationSid,omitempty"` + // The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. + SmsFallbackMethod string `json:"SmsFallbackMethod,omitempty"` + // The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. + SmsFallbackUrl string `json:"SmsFallbackUrl,omitempty"` + // The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. + SmsMethod string `json:"SmsMethod,omitempty"` + // The URL we should call when the new phone number receives an incoming SMS message. + SmsUrl string `json:"SmsUrl,omitempty"` + // The URL we should call using the `status_callback_method` to send status information to your application. + StatusCallback string `json:"StatusCallback,omitempty"` + // The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. + StatusCallbackMethod string `json:"StatusCallbackMethod,omitempty"` + // 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. + TrunkSid string `json:"TrunkSid,omitempty"` + // 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. + VoiceApplicationSid string `json:"VoiceApplicationSid,omitempty"` + // 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`. + VoiceCallerIdLookup bool `json:"VoiceCallerIdLookup,omitempty"` + // The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. + VoiceFallbackMethod string `json:"VoiceFallbackMethod,omitempty"` + // The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. + VoiceFallbackUrl string `json:"VoiceFallbackUrl,omitempty"` + // The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. + VoiceMethod string `json:"VoiceMethod,omitempty"` + // The configuration parameter for the new phone number to receive incoming voice calls or faxes. Can be: `fax` or `voice` and defaults to `voice`. + VoiceReceiveMode string `json:"VoiceReceiveMode,omitempty"` + // 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. + VoiceUrl string `json:"VoiceUrl,omitempty"` +} diff --git a/rest/api/v2010/model_create_incoming_phone_number_mobile_request.go b/rest/api/v2010/model_create_incoming_phone_number_mobile_request.go new file mode 100644 index 000000000..831b1f886 --- /dev/null +++ b/rest/api/v2010/model_create_incoming_phone_number_mobile_request.go @@ -0,0 +1,60 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateIncomingPhoneNumberMobileRequest struct for CreateIncomingPhoneNumberMobileRequest +type CreateIncomingPhoneNumberMobileRequest struct { + // The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. + AddressSid string `json:"AddressSid,omitempty"` + // The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. + ApiVersion string `json:"ApiVersion,omitempty"` + // The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. + BundleSid string `json:"BundleSid,omitempty"` + // The SID of the emergency address configuration to use for emergency calling from the new phone number. + EmergencyAddressSid string `json:"EmergencyAddressSid,omitempty"` + // The configuration status parameter that determines whether the new phone number is enabled for emergency calling. + EmergencyStatus string `json:"EmergencyStatus,omitempty"` + // 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. + FriendlyName string `json:"FriendlyName,omitempty"` + // The SID of the Identity resource that we should associate with the new phone number. Some regions require an identity to meet local regulations. + IdentitySid string `json:"IdentitySid,omitempty"` + // 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. + PhoneNumber string `json:"PhoneNumber"` + // 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. + SmsApplicationSid string `json:"SmsApplicationSid,omitempty"` + // The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. + SmsFallbackMethod string `json:"SmsFallbackMethod,omitempty"` + // The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. + SmsFallbackUrl string `json:"SmsFallbackUrl,omitempty"` + // The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. + SmsMethod string `json:"SmsMethod,omitempty"` + // The URL we should call when the new phone number receives an incoming SMS message. + SmsUrl string `json:"SmsUrl,omitempty"` + // The URL we should call using the `status_callback_method` to send status information to your application. + StatusCallback string `json:"StatusCallback,omitempty"` + // The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. + StatusCallbackMethod string `json:"StatusCallbackMethod,omitempty"` + // 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. + TrunkSid string `json:"TrunkSid,omitempty"` + // 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. + VoiceApplicationSid string `json:"VoiceApplicationSid,omitempty"` + // 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`. + VoiceCallerIdLookup bool `json:"VoiceCallerIdLookup,omitempty"` + // The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. + VoiceFallbackMethod string `json:"VoiceFallbackMethod,omitempty"` + // The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. + VoiceFallbackUrl string `json:"VoiceFallbackUrl,omitempty"` + // The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. + VoiceMethod string `json:"VoiceMethod,omitempty"` + // The configuration parameter for the new phone number to receive incoming voice calls or faxes. Can be: `fax` or `voice` and defaults to `voice`. + VoiceReceiveMode string `json:"VoiceReceiveMode,omitempty"` + // 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. + VoiceUrl string `json:"VoiceUrl,omitempty"` +} diff --git a/rest/api/v2010/model_create_incoming_phone_number_request.go b/rest/api/v2010/model_create_incoming_phone_number_request.go new file mode 100644 index 000000000..cc33f1106 --- /dev/null +++ b/rest/api/v2010/model_create_incoming_phone_number_request.go @@ -0,0 +1,62 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateIncomingPhoneNumberRequest struct for CreateIncomingPhoneNumberRequest +type CreateIncomingPhoneNumberRequest struct { + // The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. + AddressSid string `json:"AddressSid,omitempty"` + // The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. + ApiVersion string `json:"ApiVersion,omitempty"` + // 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). + AreaCode string `json:"AreaCode,omitempty"` + // The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. + BundleSid string `json:"BundleSid,omitempty"` + // The SID of the emergency address configuration to use for emergency calling from the new phone number. + EmergencyAddressSid string `json:"EmergencyAddressSid,omitempty"` + // The configuration status parameter that determines whether the new phone number is enabled for emergency calling. + EmergencyStatus string `json:"EmergencyStatus,omitempty"` + // 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. + FriendlyName string `json:"FriendlyName,omitempty"` + // The SID of the Identity resource that we should associate with the new phone number. Some regions require an identity to meet local regulations. + IdentitySid string `json:"IdentitySid,omitempty"` + // 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. + PhoneNumber string `json:"PhoneNumber,omitempty"` + // 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. + SmsApplicationSid string `json:"SmsApplicationSid,omitempty"` + // The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. + SmsFallbackMethod string `json:"SmsFallbackMethod,omitempty"` + // The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. + SmsFallbackUrl string `json:"SmsFallbackUrl,omitempty"` + // The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. + SmsMethod string `json:"SmsMethod,omitempty"` + // The URL we should call when the new phone number receives an incoming SMS message. + SmsUrl string `json:"SmsUrl,omitempty"` + // The URL we should call using the `status_callback_method` to send status information to your application. + StatusCallback string `json:"StatusCallback,omitempty"` + // The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. + StatusCallbackMethod string `json:"StatusCallbackMethod,omitempty"` + // 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. + TrunkSid string `json:"TrunkSid,omitempty"` + // 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. + VoiceApplicationSid string `json:"VoiceApplicationSid,omitempty"` + // 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`. + VoiceCallerIdLookup bool `json:"VoiceCallerIdLookup,omitempty"` + // The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. + VoiceFallbackMethod string `json:"VoiceFallbackMethod,omitempty"` + // The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. + VoiceFallbackUrl string `json:"VoiceFallbackUrl,omitempty"` + // The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. + VoiceMethod string `json:"VoiceMethod,omitempty"` + // The configuration parameter for the new phone number to receive incoming voice calls or faxes. Can be: `fax` or `voice` and defaults to `voice`. + VoiceReceiveMode string `json:"VoiceReceiveMode,omitempty"` + // 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. + VoiceUrl string `json:"VoiceUrl,omitempty"` +} diff --git a/rest/api/v2010/model_create_incoming_phone_number_toll_free_request.go b/rest/api/v2010/model_create_incoming_phone_number_toll_free_request.go new file mode 100644 index 000000000..f02b28849 --- /dev/null +++ b/rest/api/v2010/model_create_incoming_phone_number_toll_free_request.go @@ -0,0 +1,60 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateIncomingPhoneNumberTollFreeRequest struct for CreateIncomingPhoneNumberTollFreeRequest +type CreateIncomingPhoneNumberTollFreeRequest struct { + // The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. + AddressSid string `json:"AddressSid,omitempty"` + // The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. + ApiVersion string `json:"ApiVersion,omitempty"` + // The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. + BundleSid string `json:"BundleSid,omitempty"` + // The SID of the emergency address configuration to use for emergency calling from the new phone number. + EmergencyAddressSid string `json:"EmergencyAddressSid,omitempty"` + // The configuration status parameter that determines whether the new phone number is enabled for emergency calling. + EmergencyStatus string `json:"EmergencyStatus,omitempty"` + // 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. + FriendlyName string `json:"FriendlyName,omitempty"` + // The SID of the Identity resource that we should associate with the new phone number. Some regions require an Identity to meet local regulations. + IdentitySid string `json:"IdentitySid,omitempty"` + // 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. + PhoneNumber string `json:"PhoneNumber"` + // 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. + SmsApplicationSid string `json:"SmsApplicationSid,omitempty"` + // The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. + SmsFallbackMethod string `json:"SmsFallbackMethod,omitempty"` + // The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. + SmsFallbackUrl string `json:"SmsFallbackUrl,omitempty"` + // The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. + SmsMethod string `json:"SmsMethod,omitempty"` + // The URL we should call when the new phone number receives an incoming SMS message. + SmsUrl string `json:"SmsUrl,omitempty"` + // The URL we should call using the `status_callback_method` to send status information to your application. + StatusCallback string `json:"StatusCallback,omitempty"` + // The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. + StatusCallbackMethod string `json:"StatusCallbackMethod,omitempty"` + // 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. + TrunkSid string `json:"TrunkSid,omitempty"` + // 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. + VoiceApplicationSid string `json:"VoiceApplicationSid,omitempty"` + // 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`. + VoiceCallerIdLookup bool `json:"VoiceCallerIdLookup,omitempty"` + // The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. + VoiceFallbackMethod string `json:"VoiceFallbackMethod,omitempty"` + // The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. + VoiceFallbackUrl string `json:"VoiceFallbackUrl,omitempty"` + // The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. + VoiceMethod string `json:"VoiceMethod,omitempty"` + // The configuration parameter for the new phone number to receive incoming voice calls or faxes. Can be: `fax` or `voice` and defaults to `voice`. + VoiceReceiveMode string `json:"VoiceReceiveMode,omitempty"` + // 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. + VoiceUrl string `json:"VoiceUrl,omitempty"` +} diff --git a/rest/api/v2010/model_create_message_feedback_request.go b/rest/api/v2010/model_create_message_feedback_request.go new file mode 100644 index 000000000..0bda38e84 --- /dev/null +++ b/rest/api/v2010/model_create_message_feedback_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateMessageFeedbackRequest struct for CreateMessageFeedbackRequest +type CreateMessageFeedbackRequest struct { + // Whether the feedback has arrived. Can be: `unconfirmed` or `confirmed`. If `provide_feedback`=`true` in [the initial HTTP POST](https://www.twilio.com/docs/sms/api/message-resource#create-a-message-resource), the initial value of this property is `unconfirmed`. After the message arrives, update the value to `confirmed`. + Outcome string `json:"Outcome,omitempty"` +} diff --git a/rest/api/v2010/model_create_message_request.go b/rest/api/v2010/model_create_message_request.go new file mode 100644 index 000000000..3aef1dd5b --- /dev/null +++ b/rest/api/v2010/model_create_message_request.go @@ -0,0 +1,46 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateMessageRequest struct for CreateMessageRequest +type CreateMessageRequest struct { + // Determines if the address can be stored or obfuscated based on privacy settings + AddressRetention string `json:"AddressRetention,omitempty"` + // 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. + ApplicationSid string `json:"ApplicationSid,omitempty"` + // Total number of attempts made ( including this ) to send out the message regardless of the provider used + Attempt int32 `json:"Attempt,omitempty"` + // The text of the message you want to send. Can be up to 1,600 characters in length. + Body string `json:"Body,omitempty"` + // Determines if the message content can be stored or redacted based on privacy settings + ContentRetention string `json:"ContentRetention,omitempty"` + // Reserved + ForceDelivery bool `json:"ForceDelivery,omitempty"` + // 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. + From string `json:"From,omitempty"` + // 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. + MaxPrice float32 `json:"MaxPrice,omitempty"` + // 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. + MediaUrl []string `json:"MediaUrl,omitempty"` + // 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. + MessagingServiceSid string `json:"MessagingServiceSid,omitempty"` + // Rich actions for Channels Messages. + PersistentAction []string `json:"PersistentAction,omitempty"` + // 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. + ProvideFeedback bool `json:"ProvideFeedback,omitempty"` + // Whether to detect Unicode characters that have a similar GSM-7 character and replace them. Can be: `true` or `false`. + SmartEncoded bool `json:"SmartEncoded,omitempty"` + // 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. + StatusCallback string `json:"StatusCallback,omitempty"` + // 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. + To string `json:"To"` + // 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. + ValidityPeriod int32 `json:"ValidityPeriod,omitempty"` +} diff --git a/rest/api/v2010/model_create_new_key_request.go b/rest/api/v2010/model_create_new_key_request.go new file mode 100644 index 000000000..ed65637bb --- /dev/null +++ b/rest/api/v2010/model_create_new_key_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateNewKeyRequest struct for CreateNewKeyRequest +type CreateNewKeyRequest struct { + // A descriptive string that you create to describe the resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` +} diff --git a/rest/api/v2010/model_create_new_signing_key_request.go b/rest/api/v2010/model_create_new_signing_key_request.go new file mode 100644 index 000000000..47bd0786c --- /dev/null +++ b/rest/api/v2010/model_create_new_signing_key_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateNewSigningKeyRequest struct for CreateNewSigningKeyRequest +type CreateNewSigningKeyRequest struct { + // A descriptive string that you create to describe the resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` +} diff --git a/rest/api/v2010/model_create_participant_request.go b/rest/api/v2010/model_create_participant_request.go new file mode 100644 index 000000000..0ea1731ff --- /dev/null +++ b/rest/api/v2010/model_create_participant_request.go @@ -0,0 +1,90 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateParticipantRequest struct for CreateParticipantRequest +type CreateParticipantRequest struct { + // 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`. + Beep string `json:"Beep,omitempty"` + // 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) + Byoc string `json:"Byoc,omitempty"` + // 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) + CallReason string `json:"CallReason,omitempty"` + // 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`. + CallSidToCoach string `json:"CallSidToCoach,omitempty"` + // 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. + CallerId string `json:"CallerId,omitempty"` + // 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. + Coaching bool `json:"Coaching,omitempty"` + // 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`. + ConferenceRecord string `json:"ConferenceRecord,omitempty"` + // The URL we should call using the `conference_recording_status_callback_method` when the conference recording is available. + ConferenceRecordingStatusCallback string `json:"ConferenceRecordingStatusCallback,omitempty"` + // The conference recording state changes that generate a call to `conference_recording_status_callback`. Can be: `in-progress`, `completed`, and `failed`. Separate multiple values with a space. The default value is `in-progress completed failed`. + ConferenceRecordingStatusCallbackEvent []string `json:"ConferenceRecordingStatusCallbackEvent,omitempty"` + // The HTTP method we should use to call `conference_recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. + ConferenceRecordingStatusCallbackMethod string `json:"ConferenceRecordingStatusCallbackMethod,omitempty"` + // 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. + ConferenceStatusCallback string `json:"ConferenceStatusCallback,omitempty"` + // The conference state changes that should generate a call to `conference_status_callback`. Can be: `start`, `end`, `join`, `leave`, `mute`, `hold`, and `speaker`. Separate multiple values with a space. Defaults to `start end`. + ConferenceStatusCallbackEvent []string `json:"ConferenceStatusCallbackEvent,omitempty"` + // The HTTP method we should use to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. + ConferenceStatusCallbackMethod string `json:"ConferenceStatusCallbackMethod,omitempty"` + // Whether to trim leading and trailing silence from your recorded conference audio files. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. + ConferenceTrim string `json:"ConferenceTrim,omitempty"` + // 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`. + EarlyMedia bool `json:"EarlyMedia,omitempty"` + // Whether to end the conference when the participant leaves. Can be: `true` or `false` and defaults to `false`. + EndConferenceOnExit bool `json:"EndConferenceOnExit,omitempty"` + // 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. + From string `json:"From"` + // 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`. + JitterBufferSize string `json:"JitterBufferSize,omitempty"` + // A label for this participant. If one is supplied, it may subsequently be used to fetch, update or delete the participant. + Label string `json:"Label,omitempty"` + // The maximum number of participants in the conference. Can be a positive integer from `2` to `250`. The default value is `250`. + MaxParticipants int32 `json:"MaxParticipants,omitempty"` + // Whether the agent is muted in the conference. Can be `true` or `false` and the default is `false`. + Muted bool `json:"Muted,omitempty"` + // Whether to record the participant and their conferences, including the time between conferences. Can be `true` or `false` and the default is `false`. + Record bool `json:"Record,omitempty"` + // The recording channels for the final recording. Can be: `mono` or `dual` and the default is `mono`. + RecordingChannels string `json:"RecordingChannels,omitempty"` + // The URL that we should call using the `recording_status_callback_method` when the recording status changes. + RecordingStatusCallback string `json:"RecordingStatusCallback,omitempty"` + // The recording state changes that should generate a call to `recording_status_callback`. Can be: `in-progress`, `completed`, and `failed`. Separate multiple values with a space. The default value is `in-progress completed failed`. + RecordingStatusCallbackEvent []string `json:"RecordingStatusCallbackEvent,omitempty"` + // The HTTP method we should use when we call `recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. + RecordingStatusCallbackMethod string `json:"RecordingStatusCallbackMethod,omitempty"` + // 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. + RecordingTrack string `json:"RecordingTrack,omitempty"` + // 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`. + Region string `json:"Region,omitempty"` + // The SIP password for authentication. + SipAuthPassword string `json:"SipAuthPassword,omitempty"` + // The SIP username used for authentication. + SipAuthUsername string `json:"SipAuthUsername,omitempty"` + // 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. + StartConferenceOnEnter bool `json:"StartConferenceOnEnter,omitempty"` + // The URL we should call using the `status_callback_method` to send status information to your application. + StatusCallback string `json:"StatusCallback,omitempty"` + // 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`. + StatusCallbackEvent []string `json:"StatusCallbackEvent,omitempty"` + // The HTTP method we should use to call `status_callback`. Can be: `GET` and `POST` and defaults to `POST`. + StatusCallbackMethod string `json:"StatusCallbackMethod,omitempty"` + // 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. + Timeout int32 `json:"Timeout,omitempty"` + // 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. + To string `json:"To"` + // 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. + WaitMethod string `json:"WaitMethod,omitempty"` + // 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). + WaitUrl string `json:"WaitUrl,omitempty"` +} diff --git a/rest/api/v2010/model_create_payments_request.go b/rest/api/v2010/model_create_payments_request.go new file mode 100644 index 000000000..17bad142a --- /dev/null +++ b/rest/api/v2010/model_create_payments_request.go @@ -0,0 +1,46 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreatePaymentsRequest struct for CreatePaymentsRequest +type CreatePaymentsRequest struct { + // Type of bank account if payment source is ACH. One of `consumer-checking`, `consumer-savings`, or `commercial-checking`. The default value is `consumer-checking`. + BankAccountType string `json:"BankAccountType,omitempty"` + // 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. + ChargeAmount float32 `json:"ChargeAmount,omitempty"` + // 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 Connector are accepted. + Currency string `json:"Currency,omitempty"` + // 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. + Description string `json:"Description,omitempty"` + // 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. + IdempotencyKey string `json:"IdempotencyKey"` + // 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. + Input string `json:"Input,omitempty"` + // A positive integer that is used to validate the length of the `PostalCode` inputted by the user. User must enter this many digits. + MinPostalCodeLength int32 `json:"MinPostalCodeLength,omitempty"` + // A single level JSON string that is required when accepting certain information specific only to ACH payments. The information that has to be included here depends on the Connector. [Read more](https://www.twilio.com/console/voice/pay-connectors). + Parameter map[string]interface{} `json:"Parameter,omitempty"` + // This is the unique name corresponding to the Payment Gateway Connector installed in the Twilio Add-ons. Learn more about [ Connectors](https://www.twilio.com/console/voice/pay-connectors). The default value is `Default`. + PaymentConnector string `json:"PaymentConnector,omitempty"` + // Type of payment being captured. One of `credit-card` or `ach-debit`. The default value is `credit-card`. + PaymentMethod string `json:"PaymentMethod,omitempty"` + // 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`. + PostalCode bool `json:"PostalCode,omitempty"` + // 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`. + SecurityCode bool `json:"SecurityCode,omitempty"` + // 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) + StatusCallback string `json:"StatusCallback"` + // 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`. + Timeout int32 `json:"Timeout,omitempty"` + // Indicates whether the payment method should be tokenized as a `one-time` or `reusable` token. The default value is `reusable`. Do not enter a charge amount when tokenizing. If a charge amount is entered, the payment method will be charged and not tokenized. + TokenType string `json:"TokenType,omitempty"` + // Credit card types separated by space that Pay should accept. The default value is `visa mastercard amex` + ValidCardTypes string `json:"ValidCardTypes,omitempty"` +} diff --git a/rest/api/v2010/model_create_queue_request.go b/rest/api/v2010/model_create_queue_request.go new file mode 100644 index 000000000..56bd864b9 --- /dev/null +++ b/rest/api/v2010/model_create_queue_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateQueueRequest struct for CreateQueueRequest +type CreateQueueRequest struct { + // A descriptive string that you created to describe this resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName"` + // The maximum number of calls allowed to be in the queue. The default is 100. The maximum is 5000. + MaxSize int32 `json:"MaxSize,omitempty"` +} diff --git a/rest/api/v2010/model_create_sip_auth_calls_credential_list_mapping_request.go b/rest/api/v2010/model_create_sip_auth_calls_credential_list_mapping_request.go new file mode 100644 index 000000000..7db451349 --- /dev/null +++ b/rest/api/v2010/model_create_sip_auth_calls_credential_list_mapping_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateSipAuthCallsCredentialListMappingRequest struct for CreateSipAuthCallsCredentialListMappingRequest +type CreateSipAuthCallsCredentialListMappingRequest struct { + // The SID of the CredentialList resource to map to the SIP domain. + CredentialListSid string `json:"CredentialListSid"` +} diff --git a/rest/api/v2010/model_create_sip_auth_calls_ip_access_control_list_mapping_request.go b/rest/api/v2010/model_create_sip_auth_calls_ip_access_control_list_mapping_request.go new file mode 100644 index 000000000..2043bc008 --- /dev/null +++ b/rest/api/v2010/model_create_sip_auth_calls_ip_access_control_list_mapping_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateSipAuthCallsIpAccessControlListMappingRequest struct for CreateSipAuthCallsIpAccessControlListMappingRequest +type CreateSipAuthCallsIpAccessControlListMappingRequest struct { + // The SID of the IpAccessControlList resource to map to the SIP domain. + IpAccessControlListSid string `json:"IpAccessControlListSid"` +} diff --git a/rest/api/v2010/model_create_sip_auth_registrations_credential_list_mapping_request.go b/rest/api/v2010/model_create_sip_auth_registrations_credential_list_mapping_request.go new file mode 100644 index 000000000..ac2a1e077 --- /dev/null +++ b/rest/api/v2010/model_create_sip_auth_registrations_credential_list_mapping_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateSipAuthRegistrationsCredentialListMappingRequest struct for CreateSipAuthRegistrationsCredentialListMappingRequest +type CreateSipAuthRegistrationsCredentialListMappingRequest struct { + // The SID of the CredentialList resource to map to the SIP domain. + CredentialListSid string `json:"CredentialListSid"` +} diff --git a/rest/api/v2010/model_create_sip_credential_list_mapping_request.go b/rest/api/v2010/model_create_sip_credential_list_mapping_request.go new file mode 100644 index 000000000..6e4d6b0f1 --- /dev/null +++ b/rest/api/v2010/model_create_sip_credential_list_mapping_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateSipCredentialListMappingRequest struct for CreateSipCredentialListMappingRequest +type CreateSipCredentialListMappingRequest struct { + // A 34 character string that uniquely identifies the CredentialList resource to map to the SIP domain. + CredentialListSid string `json:"CredentialListSid"` +} diff --git a/rest/api/v2010/model_create_sip_credential_list_request.go b/rest/api/v2010/model_create_sip_credential_list_request.go new file mode 100644 index 000000000..7a35b2281 --- /dev/null +++ b/rest/api/v2010/model_create_sip_credential_list_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateSipCredentialListRequest struct for CreateSipCredentialListRequest +type CreateSipCredentialListRequest struct { + // A human readable descriptive text that describes the CredentialList, up to 64 characters long. + FriendlyName string `json:"FriendlyName"` +} diff --git a/rest/api/v2010/model_create_sip_credential_request.go b/rest/api/v2010/model_create_sip_credential_request.go new file mode 100644 index 000000000..170f7a4f2 --- /dev/null +++ b/rest/api/v2010/model_create_sip_credential_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateSipCredentialRequest struct for CreateSipCredentialRequest +type CreateSipCredentialRequest struct { + // 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`) + Password string `json:"Password"` + // 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. + Username string `json:"Username"` +} diff --git a/rest/api/v2010/model_create_sip_domain_request.go b/rest/api/v2010/model_create_sip_domain_request.go new file mode 100644 index 000000000..5a9f2c291 --- /dev/null +++ b/rest/api/v2010/model_create_sip_domain_request.go @@ -0,0 +1,40 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateSipDomainRequest struct for CreateSipDomainRequest +type CreateSipDomainRequest struct { + // The SID of the BYOC Trunk(Bring Your Own Carrier) resource that the Sip Domain will be associated with. + ByocTrunkSid string `json:"ByocTrunkSid,omitempty"` + // The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and \"-\". + DomainName string `json:"DomainName"` + // 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. + EmergencyCallerSid string `json:"EmergencyCallerSid,omitempty"` + // Whether emergency calling is enabled for the domain. If enabled, allows emergency calls on the domain from phone numbers with validated addresses. + EmergencyCallingEnabled bool `json:"EmergencyCallingEnabled,omitempty"` + // A descriptive string that you created to describe the resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // 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. + Secure bool `json:"Secure,omitempty"` + // 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. + SipRegistration bool `json:"SipRegistration,omitempty"` + // The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. + VoiceFallbackMethod string `json:"VoiceFallbackMethod,omitempty"` + // The URL that we should call when an error occurs while retrieving or executing the TwiML from `voice_url`. + VoiceFallbackUrl string `json:"VoiceFallbackUrl,omitempty"` + // The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`. + VoiceMethod string `json:"VoiceMethod,omitempty"` + // The HTTP method we should use to call `voice_status_callback_url`. Can be: `GET` or `POST`. + VoiceStatusCallbackMethod string `json:"VoiceStatusCallbackMethod,omitempty"` + // The URL that we should call to pass status parameters (such as call ended) to your application. + VoiceStatusCallbackUrl string `json:"VoiceStatusCallbackUrl,omitempty"` + // The URL we should when the domain receives a call. + VoiceUrl string `json:"VoiceUrl,omitempty"` +} diff --git a/rest/api/v2010/model_create_sip_ip_access_control_list_mapping_request.go b/rest/api/v2010/model_create_sip_ip_access_control_list_mapping_request.go new file mode 100644 index 000000000..29034b02c --- /dev/null +++ b/rest/api/v2010/model_create_sip_ip_access_control_list_mapping_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateSipIpAccessControlListMappingRequest struct for CreateSipIpAccessControlListMappingRequest +type CreateSipIpAccessControlListMappingRequest struct { + // The unique id of the IP access control list to map to the SIP domain. + IpAccessControlListSid string `json:"IpAccessControlListSid"` +} diff --git a/rest/api/v2010/model_create_sip_ip_access_control_list_request.go b/rest/api/v2010/model_create_sip_ip_access_control_list_request.go new file mode 100644 index 000000000..3cd0abed9 --- /dev/null +++ b/rest/api/v2010/model_create_sip_ip_access_control_list_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateSipIpAccessControlListRequest struct for CreateSipIpAccessControlListRequest +type CreateSipIpAccessControlListRequest struct { + // A human readable descriptive text that describes the IpAccessControlList, up to 64 characters long. + FriendlyName string `json:"FriendlyName"` +} diff --git a/rest/api/v2010/model_create_sip_ip_address_request.go b/rest/api/v2010/model_create_sip_ip_address_request.go new file mode 100644 index 000000000..6c7c8f910 --- /dev/null +++ b/rest/api/v2010/model_create_sip_ip_address_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateSipIpAddressRequest struct for CreateSipIpAddressRequest +type CreateSipIpAddressRequest struct { + // 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. + CidrPrefixLength int32 `json:"CidrPrefixLength,omitempty"` + // A human readable descriptive text for this resource, up to 64 characters long. + FriendlyName string `json:"FriendlyName"` + // 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. + IpAddress string `json:"IpAddress"` +} diff --git a/rest/api/v2010/model_create_token_request.go b/rest/api/v2010/model_create_token_request.go new file mode 100644 index 000000000..a757b0bdf --- /dev/null +++ b/rest/api/v2010/model_create_token_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateTokenRequest struct for CreateTokenRequest +type CreateTokenRequest struct { + // The duration in seconds for which the generated credentials are valid. The default value is 86400 (24 hours). + Ttl int32 `json:"Ttl,omitempty"` +} diff --git a/rest/api/v2010/model_create_usage_trigger_request.go b/rest/api/v2010/model_create_usage_trigger_request.go new file mode 100644 index 000000000..a0e579f63 --- /dev/null +++ b/rest/api/v2010/model_create_usage_trigger_request.go @@ -0,0 +1,28 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateUsageTriggerRequest struct for CreateUsageTriggerRequest +type CreateUsageTriggerRequest struct { + // The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is `POST`. + CallbackMethod string `json:"CallbackMethod,omitempty"` + // The URL we should call using `callback_method` when the trigger fires. + CallbackUrl string `json:"CallbackUrl"` + // A descriptive string that you create to describe the resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // The frequency of a recurring UsageTrigger. Can be: `daily`, `monthly`, or `yearly` for recurring triggers or empty for non-recurring triggers. A trigger will only fire once during each period. Recurring times are in GMT. + Recurring string `json:"Recurring,omitempty"` + // The field in the [UsageRecord](https://www.twilio.com/docs/usage/api/usage-record) resource that should fire the trigger. Can be: `count`, `usage`, or `price` as described in the [UsageRecords documentation](https://www.twilio.com/docs/usage/api/usage-record#usage-count-price). The default is `usage`. + TriggerBy string `json:"TriggerBy,omitempty"` + // 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`. + TriggerValue string `json:"TriggerValue"` + // The usage category that the trigger should watch. Use one of the supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) for this value. + UsageCategory string `json:"UsageCategory"` +} diff --git a/rest/api/v2010/model_create_validation_request_request.go b/rest/api/v2010/model_create_validation_request_request.go new file mode 100644 index 000000000..ce426f8c2 --- /dev/null +++ b/rest/api/v2010/model_create_validation_request_request.go @@ -0,0 +1,26 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateValidationRequestRequest struct for CreateValidationRequestRequest +type CreateValidationRequestRequest struct { + // The number of seconds to delay before initiating the verification call. Can be an integer between `0` and `60`, inclusive. The default is `0`. + CallDelay int32 `json:"CallDelay,omitempty"` + // The digits to dial after connecting the verification call. + Extension string `json:"Extension,omitempty"` + // 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. + FriendlyName string `json:"FriendlyName,omitempty"` + // 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. + PhoneNumber string `json:"PhoneNumber"` + // The URL we should call using the `status_callback_method` to send status information about the verification process to your application. + StatusCallback string `json:"StatusCallback,omitempty"` + // The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST`, and the default is `POST`. + StatusCallbackMethod string `json:"StatusCallbackMethod,omitempty"` +} diff --git a/rest/api/v2010/model_update_account_request.go b/rest/api/v2010/model_update_account_request.go new file mode 100644 index 000000000..b10130431 --- /dev/null +++ b/rest/api/v2010/model_update_account_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateAccountRequest struct for UpdateAccountRequest +type UpdateAccountRequest struct { + // Update the human-readable description of this Account + FriendlyName string `json:"FriendlyName,omitempty"` + // Alter the status of this account: use `closed` to irreversibly close this account, `suspended` to temporarily suspend it, or `active` to reactivate it. + Status string `json:"Status,omitempty"` +} diff --git a/rest/api/v2010/model_update_address_request.go b/rest/api/v2010/model_update_address_request.go new file mode 100644 index 000000000..017b7f172 --- /dev/null +++ b/rest/api/v2010/model_update_address_request.go @@ -0,0 +1,30 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateAddressRequest struct for UpdateAddressRequest +type UpdateAddressRequest struct { + // 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. + AutoCorrectAddress bool `json:"AutoCorrectAddress,omitempty"` + // The city of the address. + City string `json:"City,omitempty"` + // The name to associate with the address. + CustomerName string `json:"CustomerName,omitempty"` + // Whether to enable emergency calling on the address. Can be: `true` or `false`. + EmergencyEnabled bool `json:"EmergencyEnabled,omitempty"` + // A descriptive string that you create to describe the address. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // The postal code of the address. + PostalCode string `json:"PostalCode,omitempty"` + // The state or region of the address. + Region string `json:"Region,omitempty"` + // The number and street address of the address. + Street string `json:"Street,omitempty"` +} diff --git a/rest/api/v2010/model_update_application_request.go b/rest/api/v2010/model_update_application_request.go new file mode 100644 index 000000000..ef2acd46d --- /dev/null +++ b/rest/api/v2010/model_update_application_request.go @@ -0,0 +1,44 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateApplicationRequest struct for UpdateApplicationRequest +type UpdateApplicationRequest struct { + // 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. + ApiVersion string `json:"ApiVersion,omitempty"` + // A descriptive string that you create to describe the resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // The URL we should call using a POST method to send message status information to your application. + MessageStatusCallback string `json:"MessageStatusCallback,omitempty"` + // The HTTP method we should use to call `sms_fallback_url`. Can be: `GET` or `POST`. + SmsFallbackMethod string `json:"SmsFallbackMethod,omitempty"` + // The URL that we should call when an error occurs while retrieving or executing the TwiML from `sms_url`. + SmsFallbackUrl string `json:"SmsFallbackUrl,omitempty"` + // The HTTP method we should use to call `sms_url`. Can be: `GET` or `POST`. + SmsMethod string `json:"SmsMethod,omitempty"` + // 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. + SmsStatusCallback string `json:"SmsStatusCallback,omitempty"` + // The URL we should call when the phone number receives an incoming SMS message. + SmsUrl string `json:"SmsUrl,omitempty"` + // The URL we should call using the `status_callback_method` to send status information to your application. + StatusCallback string `json:"StatusCallback,omitempty"` + // The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST`. + StatusCallbackMethod string `json:"StatusCallbackMethod,omitempty"` + // Whether we should look up the caller's caller-ID name from the CNAM database (additional charges apply). Can be: `true` or `false`. + VoiceCallerIdLookup bool `json:"VoiceCallerIdLookup,omitempty"` + // The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. + VoiceFallbackMethod string `json:"VoiceFallbackMethod,omitempty"` + // The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. + VoiceFallbackUrl string `json:"VoiceFallbackUrl,omitempty"` + // The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`. + VoiceMethod string `json:"VoiceMethod,omitempty"` + // The URL we should call when the phone number assigned to this application receives a call. + VoiceUrl string `json:"VoiceUrl,omitempty"` +} diff --git a/rest/api/v2010/model_update_call_feedback_request.go b/rest/api/v2010/model_update_call_feedback_request.go new file mode 100644 index 000000000..c6ba0ca81 --- /dev/null +++ b/rest/api/v2010/model_update_call_feedback_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateCallFeedbackRequest struct for UpdateCallFeedbackRequest +type UpdateCallFeedbackRequest struct { + // 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`. + Issue []string `json:"Issue,omitempty"` + // The call quality expressed as an integer from `1` to `5` where `1` represents very poor call quality and `5` represents a perfect call. + QualityScore int32 `json:"QualityScore"` +} diff --git a/rest/api/v2010/model_update_call_recording_request.go b/rest/api/v2010/model_update_call_recording_request.go new file mode 100644 index 000000000..f04da6784 --- /dev/null +++ b/rest/api/v2010/model_update_call_recording_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateCallRecordingRequest struct for UpdateCallRecordingRequest +type UpdateCallRecordingRequest struct { + // 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`. + PauseBehavior string `json:"PauseBehavior,omitempty"` + // The new status of the recording. Can be: `stopped`, `paused`, `in-progress`. + Status string `json:"Status"` +} diff --git a/rest/api/v2010/model_update_call_request.go b/rest/api/v2010/model_update_call_request.go new file mode 100644 index 000000000..caab8d06d --- /dev/null +++ b/rest/api/v2010/model_update_call_request.go @@ -0,0 +1,30 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateCallRequest struct for UpdateCallRequest +type UpdateCallRequest struct { + // 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. + FallbackMethod string `json:"FallbackMethod,omitempty"` + // 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. + FallbackUrl string `json:"FallbackUrl,omitempty"` + // 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. + Method string `json:"Method,omitempty"` + // The new status of the resource. Can be: `canceled` or `completed`. Specifying `canceled` will attempt to hang up calls that are queued or ringing; however, it will not affect calls already in progress. Specifying `completed` will attempt to hang up a call even if it's already in progress. + Status string `json:"Status,omitempty"` + // 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). + StatusCallback string `json:"StatusCallback,omitempty"` + // 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. + StatusCallbackMethod string `json:"StatusCallbackMethod,omitempty"` + // TwiML instructions for the call Twilio will use without fetching Twiml from url. Twiml and url parameters are mutually exclusive + Twiml string `json:"Twiml,omitempty"` + // 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). + Url string `json:"Url,omitempty"` +} diff --git a/rest/api/v2010/model_update_conference_recording_request.go b/rest/api/v2010/model_update_conference_recording_request.go new file mode 100644 index 000000000..4e81b92fa --- /dev/null +++ b/rest/api/v2010/model_update_conference_recording_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateConferenceRecordingRequest struct for UpdateConferenceRecordingRequest +type UpdateConferenceRecordingRequest struct { + // 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`. + PauseBehavior string `json:"PauseBehavior,omitempty"` + // The new status of the recording. Can be: `stopped`, `paused`, `in-progress`. + Status string `json:"Status"` +} diff --git a/rest/api/v2010/model_update_conference_request.go b/rest/api/v2010/model_update_conference_request.go new file mode 100644 index 000000000..4032b7e55 --- /dev/null +++ b/rest/api/v2010/model_update_conference_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateConferenceRequest struct for UpdateConferenceRequest +type UpdateConferenceRequest struct { + // The HTTP method used to call `announce_url`. Can be: `GET` or `POST` and the default is `POST` + AnnounceMethod string `json:"AnnounceMethod,omitempty"` + // The URL we should call to announce something into the conference. The URL can return an MP3, a WAV, or a TwiML document with `` or ``. + AnnounceUrl string `json:"AnnounceUrl,omitempty"` + // The new status of the resource. Can be: Can be: `init`, `in-progress`, or `completed`. Specifying `completed` will end the conference and hang up all participants + Status string `json:"Status,omitempty"` +} diff --git a/rest/api/v2010/model_update_connect_app_request.go b/rest/api/v2010/model_update_connect_app_request.go new file mode 100644 index 000000000..be222b90c --- /dev/null +++ b/rest/api/v2010/model_update_connect_app_request.go @@ -0,0 +1,30 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateConnectAppRequest struct for UpdateConnectAppRequest +type UpdateConnectAppRequest struct { + // The URL to redirect the user to after we authenticate the user and obtain authorization to access the Connect App. + AuthorizeRedirectUrl string `json:"AuthorizeRedirectUrl,omitempty"` + // The company name to set for the Connect App. + CompanyName string `json:"CompanyName,omitempty"` + // The HTTP method to use when calling `deauthorize_callback_url`. + DeauthorizeCallbackMethod string `json:"DeauthorizeCallbackMethod,omitempty"` + // The URL to call using the `deauthorize_callback_method` to de-authorize the Connect App. + DeauthorizeCallbackUrl string `json:"DeauthorizeCallbackUrl,omitempty"` + // A description of the Connect App. + Description string `json:"Description,omitempty"` + // A descriptive string that you create to describe the resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // A public URL where users can obtain more information about this Connect App. + HomepageUrl string `json:"HomepageUrl,omitempty"` + // A comma-separated list of the permissions you will request from the users of this ConnectApp. Can include: `get-all` and `post-all`. + Permissions []string `json:"Permissions,omitempty"` +} diff --git a/rest/api/v2010/model_update_incoming_phone_number_request.go b/rest/api/v2010/model_update_incoming_phone_number_request.go new file mode 100644 index 000000000..9e32fc863 --- /dev/null +++ b/rest/api/v2010/model_update_incoming_phone_number_request.go @@ -0,0 +1,60 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateIncomingPhoneNumberRequest struct for UpdateIncomingPhoneNumberRequest +type UpdateIncomingPhoneNumberRequest struct { + // 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). + AccountSid string `json:"AccountSid,omitempty"` + // The SID of the Address resource we should associate with the phone number. Some regions require addresses to meet local regulations. + AddressSid string `json:"AddressSid,omitempty"` + // The API version to use for incoming calls made to the phone number. The default is `2010-04-01`. + ApiVersion string `json:"ApiVersion,omitempty"` + // The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. + BundleSid string `json:"BundleSid,omitempty"` + // The SID of the emergency address configuration to use for emergency calling from this phone number. + EmergencyAddressSid string `json:"EmergencyAddressSid,omitempty"` + // The configuration status parameter that determines whether the phone number is enabled for emergency calling. + EmergencyStatus string `json:"EmergencyStatus,omitempty"` + // 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. + FriendlyName string `json:"FriendlyName,omitempty"` + // The SID of the Identity resource that we should associate with the phone number. Some regions require an identity to meet local regulations. + IdentitySid string `json:"IdentitySid,omitempty"` + // 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. + SmsApplicationSid string `json:"SmsApplicationSid,omitempty"` + // The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. + SmsFallbackMethod string `json:"SmsFallbackMethod,omitempty"` + // The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. + SmsFallbackUrl string `json:"SmsFallbackUrl,omitempty"` + // The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. + SmsMethod string `json:"SmsMethod,omitempty"` + // The URL we should call when the phone number receives an incoming SMS message. + SmsUrl string `json:"SmsUrl,omitempty"` + // The URL we should call using the `status_callback_method` to send status information to your application. + StatusCallback string `json:"StatusCallback,omitempty"` + // The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. + StatusCallbackMethod string `json:"StatusCallbackMethod,omitempty"` + // 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. + TrunkSid string `json:"TrunkSid,omitempty"` + // 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. + VoiceApplicationSid string `json:"VoiceApplicationSid,omitempty"` + // 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`. + VoiceCallerIdLookup bool `json:"VoiceCallerIdLookup,omitempty"` + // The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. + VoiceFallbackMethod string `json:"VoiceFallbackMethod,omitempty"` + // The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. + VoiceFallbackUrl string `json:"VoiceFallbackUrl,omitempty"` + // The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. + VoiceMethod string `json:"VoiceMethod,omitempty"` + // The configuration parameter for the phone number to receive incoming voice calls or faxes. Can be: `fax` or `voice` and defaults to `voice`. + VoiceReceiveMode string `json:"VoiceReceiveMode,omitempty"` + // 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. + VoiceUrl string `json:"VoiceUrl,omitempty"` +} diff --git a/rest/api/v2010/model_update_key_request.go b/rest/api/v2010/model_update_key_request.go new file mode 100644 index 000000000..eed27376e --- /dev/null +++ b/rest/api/v2010/model_update_key_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateKeyRequest struct for UpdateKeyRequest +type UpdateKeyRequest struct { + // A descriptive string that you create to describe the resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` +} diff --git a/rest/api/v2010/model_update_member_request.go b/rest/api/v2010/model_update_member_request.go new file mode 100644 index 000000000..3312f2895 --- /dev/null +++ b/rest/api/v2010/model_update_member_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateMemberRequest struct for UpdateMemberRequest +type UpdateMemberRequest struct { + // 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. + Method string `json:"Method,omitempty"` + // The absolute URL of the Queue resource. + Url string `json:"Url"` +} diff --git a/rest/api/v2010/model_update_message_request.go b/rest/api/v2010/model_update_message_request.go new file mode 100644 index 000000000..1fac45d4a --- /dev/null +++ b/rest/api/v2010/model_update_message_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateMessageRequest struct for UpdateMessageRequest +type UpdateMessageRequest struct { + // The text of the message you want to send. Can be up to 1,600 characters long. + Body string `json:"Body"` +} diff --git a/rest/api/v2010/model_update_outgoing_caller_id_request.go b/rest/api/v2010/model_update_outgoing_caller_id_request.go new file mode 100644 index 000000000..8cd9595ec --- /dev/null +++ b/rest/api/v2010/model_update_outgoing_caller_id_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateOutgoingCallerIdRequest struct for UpdateOutgoingCallerIdRequest +type UpdateOutgoingCallerIdRequest struct { + // A descriptive string that you create to describe the resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` +} diff --git a/rest/api/v2010/model_update_participant_request.go b/rest/api/v2010/model_update_participant_request.go new file mode 100644 index 000000000..4fd5f39e5 --- /dev/null +++ b/rest/api/v2010/model_update_participant_request.go @@ -0,0 +1,38 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateParticipantRequest struct for UpdateParticipantRequest +type UpdateParticipantRequest struct { + // The HTTP method we should use to call `announce_url`. Can be: `GET` or `POST` and defaults to `POST`. + AnnounceMethod string `json:"AnnounceMethod,omitempty"` + // The URL we call using the `announce_method` for an announcement to the participant. The URL must return an MP3 file, a WAV file, or a TwiML document that contains `` or `` commands. + AnnounceUrl string `json:"AnnounceUrl,omitempty"` + // Whether to play a notification beep to the conference when the participant exits. Can be: `true` or `false`. + BeepOnExit bool `json:"BeepOnExit,omitempty"` + // 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`. + CallSidToCoach string `json:"CallSidToCoach,omitempty"` + // 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. + Coaching bool `json:"Coaching,omitempty"` + // Whether to end the conference when the participant leaves. Can be: `true` or `false` and defaults to `false`. + EndConferenceOnExit bool `json:"EndConferenceOnExit,omitempty"` + // 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 bool `json:"Hold,omitempty"` + // The HTTP method we should use to call `hold_url`. Can be: `GET` or `POST` and the default is `GET`. + HoldMethod string `json:"HoldMethod,omitempty"` + // 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 the ``, `` or `` commands. + HoldUrl string `json:"HoldUrl,omitempty"` + // 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`. + Muted bool `json:"Muted,omitempty"` + // 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. + WaitMethod string `json:"WaitMethod,omitempty"` + // 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). + WaitUrl string `json:"WaitUrl,omitempty"` +} diff --git a/rest/api/v2010/model_update_payments_request.go b/rest/api/v2010/model_update_payments_request.go new file mode 100644 index 000000000..70c72e40f --- /dev/null +++ b/rest/api/v2010/model_update_payments_request.go @@ -0,0 +1,22 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdatePaymentsRequest struct for UpdatePaymentsRequest +type UpdatePaymentsRequest struct { + // The piece of payment information that you wish the caller to enter. Must be one of `payment-card-number`, `expiration-date`, `security-code`, `postal-code`, `bank-routing-number`, or `bank-account-number`. + Capture string `json:"Capture,omitempty"` + // 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. + IdempotencyKey string `json:"IdempotencyKey"` + // Indicates whether the current payment session should be cancelled or completed. When `cancel` the payment session is cancelled. When `complete`, Twilio sends the payment information to the selected connector for processing. + Status string `json:"Status,omitempty"` + // 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. + StatusCallback string `json:"StatusCallback"` +} diff --git a/rest/api/v2010/model_update_queue_request.go b/rest/api/v2010/model_update_queue_request.go new file mode 100644 index 000000000..5a1d013d4 --- /dev/null +++ b/rest/api/v2010/model_update_queue_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateQueueRequest struct for UpdateQueueRequest +type UpdateQueueRequest struct { + // A descriptive string that you created to describe this resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // The maximum number of calls allowed to be in the queue. The default is 100. The maximum is 5000. + MaxSize int32 `json:"MaxSize,omitempty"` +} diff --git a/rest/api/v2010/model_update_short_code_request.go b/rest/api/v2010/model_update_short_code_request.go new file mode 100644 index 000000000..2830eb397 --- /dev/null +++ b/rest/api/v2010/model_update_short_code_request.go @@ -0,0 +1,26 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateShortCodeRequest struct for UpdateShortCodeRequest +type UpdateShortCodeRequest struct { + // The API version to use to start a new TwiML session. Can be: `2010-04-01` or `2008-08-01`. + ApiVersion string `json:"ApiVersion,omitempty"` + // 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. + FriendlyName string `json:"FriendlyName,omitempty"` + // The HTTP method that we should use to call the `sms_fallback_url`. Can be: `GET` or `POST`. + SmsFallbackMethod string `json:"SmsFallbackMethod,omitempty"` + // The URL that we should call if an error occurs while retrieving or executing the TwiML from `sms_url`. + SmsFallbackUrl string `json:"SmsFallbackUrl,omitempty"` + // The HTTP method we should use when calling the `sms_url`. Can be: `GET` or `POST`. + SmsMethod string `json:"SmsMethod,omitempty"` + // The URL we should call when receiving an incoming SMS message to this short code. + SmsUrl string `json:"SmsUrl,omitempty"` +} diff --git a/rest/api/v2010/model_update_signing_key_request.go b/rest/api/v2010/model_update_signing_key_request.go new file mode 100644 index 000000000..c01e7ccd8 --- /dev/null +++ b/rest/api/v2010/model_update_signing_key_request.go @@ -0,0 +1,15 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateSigningKeyRequest struct for UpdateSigningKeyRequest +type UpdateSigningKeyRequest struct { + FriendlyName string `json:"FriendlyName,omitempty"` +} diff --git a/rest/api/v2010/model_update_sip_credential_list_request.go b/rest/api/v2010/model_update_sip_credential_list_request.go new file mode 100644 index 000000000..175a79836 --- /dev/null +++ b/rest/api/v2010/model_update_sip_credential_list_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateSipCredentialListRequest struct for UpdateSipCredentialListRequest +type UpdateSipCredentialListRequest struct { + // A human readable descriptive text for a CredentialList, up to 64 characters long. + FriendlyName string `json:"FriendlyName"` +} diff --git a/rest/api/v2010/model_update_sip_credential_request.go b/rest/api/v2010/model_update_sip_credential_request.go new file mode 100644 index 000000000..9826eca52 --- /dev/null +++ b/rest/api/v2010/model_update_sip_credential_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateSipCredentialRequest struct for UpdateSipCredentialRequest +type UpdateSipCredentialRequest struct { + // 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`) + Password string `json:"Password,omitempty"` +} diff --git a/rest/api/v2010/model_update_sip_domain_request.go b/rest/api/v2010/model_update_sip_domain_request.go new file mode 100644 index 000000000..5f5e07b32 --- /dev/null +++ b/rest/api/v2010/model_update_sip_domain_request.go @@ -0,0 +1,40 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateSipDomainRequest struct for UpdateSipDomainRequest +type UpdateSipDomainRequest struct { + // The SID of the BYOC Trunk(Bring Your Own Carrier) resource that the Sip Domain will be associated with. + ByocTrunkSid string `json:"ByocTrunkSid,omitempty"` + // The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and \"-\". + DomainName string `json:"DomainName,omitempty"` + // 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. + EmergencyCallerSid string `json:"EmergencyCallerSid,omitempty"` + // Whether emergency calling is enabled for the domain. If enabled, allows emergency calls on the domain from phone numbers with validated addresses. + EmergencyCallingEnabled bool `json:"EmergencyCallingEnabled,omitempty"` + // A descriptive string that you created to describe the resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // 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. + Secure bool `json:"Secure,omitempty"` + // 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. + SipRegistration bool `json:"SipRegistration,omitempty"` + // The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. + VoiceFallbackMethod string `json:"VoiceFallbackMethod,omitempty"` + // The URL that we should call when an error occurs while retrieving or executing the TwiML requested by `voice_url`. + VoiceFallbackUrl string `json:"VoiceFallbackUrl,omitempty"` + // The HTTP method we should use to call `voice_url` + VoiceMethod string `json:"VoiceMethod,omitempty"` + // The HTTP method we should use to call `voice_status_callback_url`. Can be: `GET` or `POST`. + VoiceStatusCallbackMethod string `json:"VoiceStatusCallbackMethod,omitempty"` + // The URL that we should call to pass status parameters (such as call ended) to your application. + VoiceStatusCallbackUrl string `json:"VoiceStatusCallbackUrl,omitempty"` + // The URL we should call when the domain receives a call. + VoiceUrl string `json:"VoiceUrl,omitempty"` +} diff --git a/rest/api/v2010/model_update_sip_ip_access_control_list_request.go b/rest/api/v2010/model_update_sip_ip_access_control_list_request.go new file mode 100644 index 000000000..32b31c3b4 --- /dev/null +++ b/rest/api/v2010/model_update_sip_ip_access_control_list_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateSipIpAccessControlListRequest struct for UpdateSipIpAccessControlListRequest +type UpdateSipIpAccessControlListRequest struct { + // A human readable descriptive text, up to 64 characters long. + FriendlyName string `json:"FriendlyName"` +} diff --git a/rest/api/v2010/model_update_sip_ip_address_request.go b/rest/api/v2010/model_update_sip_ip_address_request.go new file mode 100644 index 000000000..46d0909b1 --- /dev/null +++ b/rest/api/v2010/model_update_sip_ip_address_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateSipIpAddressRequest struct for UpdateSipIpAddressRequest +type UpdateSipIpAddressRequest struct { + // 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. + CidrPrefixLength int32 `json:"CidrPrefixLength,omitempty"` + // A human readable descriptive text for this resource, up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // 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. + IpAddress string `json:"IpAddress,omitempty"` +} diff --git a/rest/api/v2010/model_update_usage_trigger_request.go b/rest/api/v2010/model_update_usage_trigger_request.go new file mode 100644 index 000000000..e1fe7eebd --- /dev/null +++ b/rest/api/v2010/model_update_usage_trigger_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateUsageTriggerRequest struct for UpdateUsageTriggerRequest +type UpdateUsageTriggerRequest struct { + // The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is `POST`. + CallbackMethod string `json:"CallbackMethod,omitempty"` + // The URL we should call using `callback_method` when the trigger fires. + CallbackUrl string `json:"CallbackUrl,omitempty"` + // A descriptive string that you create to describe the resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` +} diff --git a/rest/api/v2010/response.go b/rest/api/v2010/response.go new file mode 100644 index 000000000..15c56f9d3 --- /dev/null +++ b/rest/api/v2010/response.go @@ -0,0 +1,47 @@ +/* + * Twilio - Api + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// Response returns a new APIResponse object. +func Response(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// ResponseWithError returns a new APIResponse object with the provided error message. +func ResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/rest/autopilot/v1/.openapi-generator-ignore b/rest/autopilot/v1/.openapi-generator-ignore new file mode 100644 index 000000000..7484ee590 --- /dev/null +++ b/rest/autopilot/v1/.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/rest/autopilot/v1/.openapi-generator/VERSION b/rest/autopilot/v1/.openapi-generator/VERSION new file mode 100644 index 000000000..ecedc98d1 --- /dev/null +++ b/rest/autopilot/v1/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.3.1 \ No newline at end of file diff --git a/rest/autopilot/v1/README.md b/rest/autopilot/v1/README.md new file mode 100644 index 000000000..b7206cd94 --- /dev/null +++ b/rest/autopilot/v1/README.md @@ -0,0 +1,159 @@ +# Go API client for openapi + +This is the public Twilio REST API. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 5.15.0 +- Package version: 1.0.0 +- Build package: com.twilio.oai.TwilioGoGenerator +For more information, please visit [https://support.twilio.com](https://support.twilio.com) + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import "./openapi" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**CreateAssistant**](docs/DefaultApi.md#createassistant) | **Post** /v1/Assistants | +*DefaultApi* | [**CreateField**](docs/DefaultApi.md#createfield) | **Post** /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields | +*DefaultApi* | [**CreateFieldType**](docs/DefaultApi.md#createfieldtype) | **Post** /v1/Assistants/{AssistantSid}/FieldTypes | +*DefaultApi* | [**CreateFieldValue**](docs/DefaultApi.md#createfieldvalue) | **Post** /v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues | +*DefaultApi* | [**CreateModelBuild**](docs/DefaultApi.md#createmodelbuild) | **Post** /v1/Assistants/{AssistantSid}/ModelBuilds | +*DefaultApi* | [**CreateQuery**](docs/DefaultApi.md#createquery) | **Post** /v1/Assistants/{AssistantSid}/Queries | +*DefaultApi* | [**CreateSample**](docs/DefaultApi.md#createsample) | **Post** /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples | +*DefaultApi* | [**CreateTask**](docs/DefaultApi.md#createtask) | **Post** /v1/Assistants/{AssistantSid}/Tasks | +*DefaultApi* | [**CreateWebhook**](docs/DefaultApi.md#createwebhook) | **Post** /v1/Assistants/{AssistantSid}/Webhooks | +*DefaultApi* | [**DeleteAssistant**](docs/DefaultApi.md#deleteassistant) | **Delete** /v1/Assistants/{Sid} | +*DefaultApi* | [**DeleteField**](docs/DefaultApi.md#deletefield) | **Delete** /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields/{Sid} | +*DefaultApi* | [**DeleteFieldType**](docs/DefaultApi.md#deletefieldtype) | **Delete** /v1/Assistants/{AssistantSid}/FieldTypes/{Sid} | +*DefaultApi* | [**DeleteFieldValue**](docs/DefaultApi.md#deletefieldvalue) | **Delete** /v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues/{Sid} | +*DefaultApi* | [**DeleteModelBuild**](docs/DefaultApi.md#deletemodelbuild) | **Delete** /v1/Assistants/{AssistantSid}/ModelBuilds/{Sid} | +*DefaultApi* | [**DeleteQuery**](docs/DefaultApi.md#deletequery) | **Delete** /v1/Assistants/{AssistantSid}/Queries/{Sid} | +*DefaultApi* | [**DeleteSample**](docs/DefaultApi.md#deletesample) | **Delete** /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid} | +*DefaultApi* | [**DeleteTask**](docs/DefaultApi.md#deletetask) | **Delete** /v1/Assistants/{AssistantSid}/Tasks/{Sid} | +*DefaultApi* | [**DeleteWebhook**](docs/DefaultApi.md#deletewebhook) | **Delete** /v1/Assistants/{AssistantSid}/Webhooks/{Sid} | +*DefaultApi* | [**FetchAssistant**](docs/DefaultApi.md#fetchassistant) | **Get** /v1/Assistants/{Sid} | +*DefaultApi* | [**FetchDefaults**](docs/DefaultApi.md#fetchdefaults) | **Get** /v1/Assistants/{AssistantSid}/Defaults | +*DefaultApi* | [**FetchDialogue**](docs/DefaultApi.md#fetchdialogue) | **Get** /v1/Assistants/{AssistantSid}/Dialogues/{Sid} | +*DefaultApi* | [**FetchField**](docs/DefaultApi.md#fetchfield) | **Get** /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields/{Sid} | +*DefaultApi* | [**FetchFieldType**](docs/DefaultApi.md#fetchfieldtype) | **Get** /v1/Assistants/{AssistantSid}/FieldTypes/{Sid} | +*DefaultApi* | [**FetchFieldValue**](docs/DefaultApi.md#fetchfieldvalue) | **Get** /v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues/{Sid} | +*DefaultApi* | [**FetchModelBuild**](docs/DefaultApi.md#fetchmodelbuild) | **Get** /v1/Assistants/{AssistantSid}/ModelBuilds/{Sid} | +*DefaultApi* | [**FetchQuery**](docs/DefaultApi.md#fetchquery) | **Get** /v1/Assistants/{AssistantSid}/Queries/{Sid} | +*DefaultApi* | [**FetchSample**](docs/DefaultApi.md#fetchsample) | **Get** /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid} | +*DefaultApi* | [**FetchStyleSheet**](docs/DefaultApi.md#fetchstylesheet) | **Get** /v1/Assistants/{AssistantSid}/StyleSheet | +*DefaultApi* | [**FetchTask**](docs/DefaultApi.md#fetchtask) | **Get** /v1/Assistants/{AssistantSid}/Tasks/{Sid} | +*DefaultApi* | [**FetchTaskActions**](docs/DefaultApi.md#fetchtaskactions) | **Get** /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Actions | +*DefaultApi* | [**FetchTaskStatistics**](docs/DefaultApi.md#fetchtaskstatistics) | **Get** /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Statistics | +*DefaultApi* | [**FetchWebhook**](docs/DefaultApi.md#fetchwebhook) | **Get** /v1/Assistants/{AssistantSid}/Webhooks/{Sid} | +*DefaultApi* | [**ListAssistant**](docs/DefaultApi.md#listassistant) | **Get** /v1/Assistants | +*DefaultApi* | [**ListField**](docs/DefaultApi.md#listfield) | **Get** /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields | +*DefaultApi* | [**ListFieldType**](docs/DefaultApi.md#listfieldtype) | **Get** /v1/Assistants/{AssistantSid}/FieldTypes | +*DefaultApi* | [**ListFieldValue**](docs/DefaultApi.md#listfieldvalue) | **Get** /v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues | +*DefaultApi* | [**ListModelBuild**](docs/DefaultApi.md#listmodelbuild) | **Get** /v1/Assistants/{AssistantSid}/ModelBuilds | +*DefaultApi* | [**ListQuery**](docs/DefaultApi.md#listquery) | **Get** /v1/Assistants/{AssistantSid}/Queries | +*DefaultApi* | [**ListSample**](docs/DefaultApi.md#listsample) | **Get** /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples | +*DefaultApi* | [**ListTask**](docs/DefaultApi.md#listtask) | **Get** /v1/Assistants/{AssistantSid}/Tasks | +*DefaultApi* | [**ListWebhook**](docs/DefaultApi.md#listwebhook) | **Get** /v1/Assistants/{AssistantSid}/Webhooks | +*DefaultApi* | [**UpdateAssistant**](docs/DefaultApi.md#updateassistant) | **Post** /v1/Assistants/{Sid} | +*DefaultApi* | [**UpdateDefaults**](docs/DefaultApi.md#updatedefaults) | **Post** /v1/Assistants/{AssistantSid}/Defaults | +*DefaultApi* | [**UpdateFieldType**](docs/DefaultApi.md#updatefieldtype) | **Post** /v1/Assistants/{AssistantSid}/FieldTypes/{Sid} | +*DefaultApi* | [**UpdateModelBuild**](docs/DefaultApi.md#updatemodelbuild) | **Post** /v1/Assistants/{AssistantSid}/ModelBuilds/{Sid} | +*DefaultApi* | [**UpdateQuery**](docs/DefaultApi.md#updatequery) | **Post** /v1/Assistants/{AssistantSid}/Queries/{Sid} | +*DefaultApi* | [**UpdateRestoreAssistant**](docs/DefaultApi.md#updaterestoreassistant) | **Post** /v1/Assistants/Restore | +*DefaultApi* | [**UpdateSample**](docs/DefaultApi.md#updatesample) | **Post** /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid} | +*DefaultApi* | [**UpdateStyleSheet**](docs/DefaultApi.md#updatestylesheet) | **Post** /v1/Assistants/{AssistantSid}/StyleSheet | +*DefaultApi* | [**UpdateTask**](docs/DefaultApi.md#updatetask) | **Post** /v1/Assistants/{AssistantSid}/Tasks/{Sid} | +*DefaultApi* | [**UpdateTaskActions**](docs/DefaultApi.md#updatetaskactions) | **Post** /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Actions | +*DefaultApi* | [**UpdateWebhook**](docs/DefaultApi.md#updatewebhook) | **Post** /v1/Assistants/{AssistantSid}/Webhooks/{Sid} | + + +## Documentation For Models + + - [AutopilotV1Assistant](docs/AutopilotV1Assistant.md) + - [AutopilotV1AssistantDefaults](docs/AutopilotV1AssistantDefaults.md) + - [AutopilotV1AssistantDialogue](docs/AutopilotV1AssistantDialogue.md) + - [AutopilotV1AssistantFieldType](docs/AutopilotV1AssistantFieldType.md) + - [AutopilotV1AssistantFieldTypeFieldValue](docs/AutopilotV1AssistantFieldTypeFieldValue.md) + - [AutopilotV1AssistantFieldTypeFieldValueReadResponse](docs/AutopilotV1AssistantFieldTypeFieldValueReadResponse.md) + - [AutopilotV1AssistantFieldTypeReadResponse](docs/AutopilotV1AssistantFieldTypeReadResponse.md) + - [AutopilotV1AssistantModelBuild](docs/AutopilotV1AssistantModelBuild.md) + - [AutopilotV1AssistantModelBuildReadResponse](docs/AutopilotV1AssistantModelBuildReadResponse.md) + - [AutopilotV1AssistantQuery](docs/AutopilotV1AssistantQuery.md) + - [AutopilotV1AssistantQueryReadResponse](docs/AutopilotV1AssistantQueryReadResponse.md) + - [AutopilotV1AssistantReadResponse](docs/AutopilotV1AssistantReadResponse.md) + - [AutopilotV1AssistantReadResponseMeta](docs/AutopilotV1AssistantReadResponseMeta.md) + - [AutopilotV1AssistantStyleSheet](docs/AutopilotV1AssistantStyleSheet.md) + - [AutopilotV1AssistantTask](docs/AutopilotV1AssistantTask.md) + - [AutopilotV1AssistantTaskField](docs/AutopilotV1AssistantTaskField.md) + - [AutopilotV1AssistantTaskFieldReadResponse](docs/AutopilotV1AssistantTaskFieldReadResponse.md) + - [AutopilotV1AssistantTaskReadResponse](docs/AutopilotV1AssistantTaskReadResponse.md) + - [AutopilotV1AssistantTaskSample](docs/AutopilotV1AssistantTaskSample.md) + - [AutopilotV1AssistantTaskSampleReadResponse](docs/AutopilotV1AssistantTaskSampleReadResponse.md) + - [AutopilotV1AssistantTaskTaskActions](docs/AutopilotV1AssistantTaskTaskActions.md) + - [AutopilotV1AssistantTaskTaskStatistics](docs/AutopilotV1AssistantTaskTaskStatistics.md) + - [AutopilotV1AssistantWebhook](docs/AutopilotV1AssistantWebhook.md) + - [AutopilotV1AssistantWebhookReadResponse](docs/AutopilotV1AssistantWebhookReadResponse.md) + - [AutopilotV1RestoreAssistant](docs/AutopilotV1RestoreAssistant.md) + - [CreateAssistantRequest](docs/CreateAssistantRequest.md) + - [CreateFieldRequest](docs/CreateFieldRequest.md) + - [CreateFieldTypeRequest](docs/CreateFieldTypeRequest.md) + - [CreateFieldValueRequest](docs/CreateFieldValueRequest.md) + - [CreateModelBuildRequest](docs/CreateModelBuildRequest.md) + - [CreateQueryRequest](docs/CreateQueryRequest.md) + - [CreateSampleRequest](docs/CreateSampleRequest.md) + - [CreateTaskRequest](docs/CreateTaskRequest.md) + - [CreateWebhookRequest](docs/CreateWebhookRequest.md) + - [UpdateAssistantRequest](docs/UpdateAssistantRequest.md) + - [UpdateDefaultsRequest](docs/UpdateDefaultsRequest.md) + - [UpdateFieldTypeRequest](docs/UpdateFieldTypeRequest.md) + - [UpdateModelBuildRequest](docs/UpdateModelBuildRequest.md) + - [UpdateQueryRequest](docs/UpdateQueryRequest.md) + - [UpdateRestoreAssistantRequest](docs/UpdateRestoreAssistantRequest.md) + - [UpdateSampleRequest](docs/UpdateSampleRequest.md) + - [UpdateStyleSheetRequest](docs/UpdateStyleSheetRequest.md) + - [UpdateTaskActionsRequest](docs/UpdateTaskActionsRequest.md) + - [UpdateTaskRequest](docs/UpdateTaskRequest.md) + - [UpdateWebhookRequest](docs/UpdateWebhookRequest.md) + + +## Documentation For Authorization + + + +## accountSid_authToken + +- **Type**: HTTP basic authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ + UserName: "username", + Password: "password", +}) +r, err := client.Service.Operation(auth, args) +``` + + +## Author + +support@twilio.com + diff --git a/rest/autopilot/v1/api_default.go b/rest/autopilot/v1/api_default.go new file mode 100644 index 000000000..d595e9afe --- /dev/null +++ b/rest/autopilot/v1/api_default.go @@ -0,0 +1,2102 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "" +) + +type DefaultApiService struct { + baseURL string + client *twilio.Client +} + +func NewDefaultApiService(client *twilio.Client) *DefaultApiService { + return &DefaultApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} +// CreateAssistantParams Optional parameters for the method 'CreateAssistant' +type CreateAssistantParams struct { + CallbackEvents *string `json:"CallbackEvents,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + Defaults *map[string]interface{} `json:"Defaults,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + LogQueries *bool `json:"LogQueries,omitempty"` + StyleSheet *map[string]interface{} `json:"StyleSheet,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +CreateAssistant Method for CreateAssistant + * @param optional nil or *CreateAssistantOpts - Optional Parameters: + * @param "CallbackEvents" (string) - Reserved. + * @param "CallbackUrl" (string) - Reserved. + * @param "Defaults" (map[string]interface{}) - A JSON object that defines the Assistant's [default tasks](https://www.twilio.com/docs/autopilot/api/assistant/defaults) for various scenarios, including initiation actions and fallback tasks. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the new resource. It is not unique and can be up to 255 characters long. + * @param "LogQueries" (bool) - Whether queries should be logged and kept after training. Can be: `true` or `false` and defaults to `true`. If `true`, queries are stored for 30 days, and then deleted. If `false`, no queries are stored. + * @param "StyleSheet" (map[string]interface{}) - The JSON string that defines the Assistant's [style sheet](https://www.twilio.com/docs/autopilot/api/assistant/stylesheet) + * @param "UniqueName" (string) - An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. The first 64 characters must be unique. +@return AutopilotV1Assistant +*/ +func (c *DefaultApiService) CreateAssistant(params *CreateAssistantParams) (*AutopilotV1Assistant, error) { + path := "/v1/Assistants" + + data := url.Values{} + headers := 0 + + if params != nil && params.CallbackEvents != nil { + data.Set("CallbackEvents", *params.CallbackEvents) + } + if params != nil && params.CallbackUrl != nil { + data.Set("CallbackUrl", *params.CallbackUrl) + } + if params != nil && params.Defaults != nil { + v, err := json.Marshal(params.Defaults) + + if err != nil { + return nil, err + } + + data.Set("Defaults", string(v)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.LogQueries != nil { + data.Set("LogQueries", string(*params.LogQueries)) + } + if params != nil && params.StyleSheet != nil { + v, err := json.Marshal(params.StyleSheet) + + if err != nil { + return nil, err + } + + data.Set("StyleSheet", string(v)) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1Assistant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateFieldParams Optional parameters for the method 'CreateField' +type CreateFieldParams struct { + FieldType *string `json:"FieldType,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +CreateField Method for CreateField + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the new resource. + * @param taskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) resource associated with the new Field resource. + * @param optional nil or *CreateFieldOpts - Optional Parameters: + * @param "FieldType" (string) - The Field Type of the new field. Can be: a [Built-in Field Type](https://www.twilio.com/docs/autopilot/built-in-field-types), the `unique_name`, or the `sid` of a custom Field Type. + * @param "UniqueName" (string) - An application-defined string that uniquely identifies the new resource. This value must be a unique string of no more than 64 characters. It can be used as an alternative to the `sid` in the URL path to address the resource. +@return AutopilotV1AssistantTaskField +*/ +func (c *DefaultApiService) CreateField(assistantSid string, taskSid string, params *CreateFieldParams) (*AutopilotV1AssistantTaskField, error) { + path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FieldType != nil { + data.Set("FieldType", *params.FieldType) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantTaskField{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateFieldTypeParams Optional parameters for the method 'CreateFieldType' +type CreateFieldTypeParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +CreateFieldType Method for CreateFieldType + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the new resource. + * @param optional nil or *CreateFieldTypeOpts - Optional Parameters: + * @param "FriendlyName" (string) - A descriptive string that you create to describe the new resource. It is not unique and can be up to 255 characters long. + * @param "UniqueName" (string) - An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. The first 64 characters must be unique. +@return AutopilotV1AssistantFieldType +*/ +func (c *DefaultApiService) CreateFieldType(assistantSid string, params *CreateFieldTypeParams) (*AutopilotV1AssistantFieldType, error) { + path := "/v1/Assistants/{AssistantSid}/FieldTypes" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantFieldType{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateFieldValueParams Optional parameters for the method 'CreateFieldValue' +type CreateFieldValueParams struct { + Language *string `json:"Language,omitempty"` + SynonymOf *string `json:"SynonymOf,omitempty"` + Value *string `json:"Value,omitempty"` +} + +/* +CreateFieldValue Method for CreateFieldValue + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the FieldType associated with the new resource. + * @param fieldTypeSid The SID of the Field Type associated with the Field Value. + * @param optional nil or *CreateFieldValueOpts - Optional Parameters: + * @param "Language" (string) - The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) tag that specifies the language of the value. Currently supported tags: `en-US` + * @param "SynonymOf" (string) - The string value that indicates which word the field value is a synonym of. + * @param "Value" (string) - The Field Value data. +@return AutopilotV1AssistantFieldTypeFieldValue +*/ +func (c *DefaultApiService) CreateFieldValue(assistantSid string, fieldTypeSid string, params *CreateFieldValueParams) (*AutopilotV1AssistantFieldTypeFieldValue, error) { + path := "/v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"FieldTypeSid"+"}", fieldTypeSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Language != nil { + data.Set("Language", *params.Language) + } + if params != nil && params.SynonymOf != nil { + data.Set("SynonymOf", *params.SynonymOf) + } + if params != nil && params.Value != nil { + data.Set("Value", *params.Value) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantFieldTypeFieldValue{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateModelBuildParams Optional parameters for the method 'CreateModelBuild' +type CreateModelBuildParams struct { + StatusCallback *string `json:"StatusCallback,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +CreateModelBuild Method for CreateModelBuild + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the new resource. + * @param optional nil or *CreateModelBuildOpts - Optional Parameters: + * @param "StatusCallback" (string) - The URL we should call using a POST method to send status information to your application. + * @param "UniqueName" (string) - An application-defined string that uniquely identifies the new resource. This value must be a unique string of no more than 64 characters. It can be used as an alternative to the `sid` in the URL path to address the resource. +@return AutopilotV1AssistantModelBuild +*/ +func (c *DefaultApiService) CreateModelBuild(assistantSid string, params *CreateModelBuildParams) (*AutopilotV1AssistantModelBuild, error) { + path := "/v1/Assistants/{AssistantSid}/ModelBuilds" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantModelBuild{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateQueryParams Optional parameters for the method 'CreateQuery' +type CreateQueryParams struct { + Language *string `json:"Language,omitempty"` + ModelBuild *string `json:"ModelBuild,omitempty"` + Query *string `json:"Query,omitempty"` + Tasks *string `json:"Tasks,omitempty"` +} + +/* +CreateQuery Method for CreateQuery + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the new resource. + * @param optional nil or *CreateQueryOpts - Optional Parameters: + * @param "Language" (string) - The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the new query. For example: `en-US`. + * @param "ModelBuild" (string) - The SID or unique name of the [Model Build](https://www.twilio.com/docs/autopilot/api/model-build) to be queried. + * @param "Query" (string) - The end-user's natural language input. It can be up to 2048 characters long. + * @param "Tasks" (string) - The list of tasks to limit the new query to. Tasks are expressed as a comma-separated list of task `unique_name` values. For example, `task-unique_name-1, task-unique_name-2`. Listing specific tasks is useful to constrain the paths that a user can take. +@return AutopilotV1AssistantQuery +*/ +func (c *DefaultApiService) CreateQuery(assistantSid string, params *CreateQueryParams) (*AutopilotV1AssistantQuery, error) { + path := "/v1/Assistants/{AssistantSid}/Queries" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Language != nil { + data.Set("Language", *params.Language) + } + if params != nil && params.ModelBuild != nil { + data.Set("ModelBuild", *params.ModelBuild) + } + if params != nil && params.Query != nil { + data.Set("Query", *params.Query) + } + if params != nil && params.Tasks != nil { + data.Set("Tasks", *params.Tasks) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantQuery{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateSampleParams Optional parameters for the method 'CreateSample' +type CreateSampleParams struct { + Language *string `json:"Language,omitempty"` + SourceChannel *string `json:"SourceChannel,omitempty"` + TaggedText *string `json:"TaggedText,omitempty"` +} + +/* +CreateSample Method for CreateSample + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the new resource. + * @param taskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the Sample resource to create. + * @param optional nil or *CreateSampleOpts - Optional Parameters: + * @param "Language" (string) - The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the new sample. For example: `en-US`. + * @param "SourceChannel" (string) - The communication channel from which the new sample was captured. Can be: `voice`, `sms`, `chat`, `alexa`, `google-assistant`, `slack`, or null if not included. + * @param "TaggedText" (string) - The text example of how end users might express the task. The sample can contain [Field tag blocks](https://www.twilio.com/docs/autopilot/api/task-sample#field-tagging). +@return AutopilotV1AssistantTaskSample +*/ +func (c *DefaultApiService) CreateSample(assistantSid string, taskSid string, params *CreateSampleParams) (*AutopilotV1AssistantTaskSample, error) { + path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Language != nil { + data.Set("Language", *params.Language) + } + if params != nil && params.SourceChannel != nil { + data.Set("SourceChannel", *params.SourceChannel) + } + if params != nil && params.TaggedText != nil { + data.Set("TaggedText", *params.TaggedText) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantTaskSample{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateTaskParams Optional parameters for the method 'CreateTask' +type CreateTaskParams struct { + Actions *map[string]interface{} `json:"Actions,omitempty"` + ActionsUrl *string `json:"ActionsUrl,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +CreateTask Method for CreateTask + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the new resource. + * @param optional nil or *CreateTaskOpts - Optional Parameters: + * @param "Actions" (map[string]interface{}) - The JSON string that specifies the [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the Assistant on how to perform the task. It is optional and not unique. + * @param "ActionsUrl" (string) - The URL from which the Assistant can fetch actions. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the new resource. It is not unique and can be up to 255 characters long. + * @param "UniqueName" (string) - An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. This value must be unique and 64 characters or less in length. +@return AutopilotV1AssistantTask +*/ +func (c *DefaultApiService) CreateTask(assistantSid string, params *CreateTaskParams) (*AutopilotV1AssistantTask, error) { + path := "/v1/Assistants/{AssistantSid}/Tasks" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Actions != nil { + v, err := json.Marshal(params.Actions) + + if err != nil { + return nil, err + } + + data.Set("Actions", string(v)) + } + if params != nil && params.ActionsUrl != nil { + data.Set("ActionsUrl", *params.ActionsUrl) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantTask{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateWebhookParams Optional parameters for the method 'CreateWebhook' +type CreateWebhookParams struct { + Events *string `json:"Events,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + WebhookMethod *string `json:"WebhookMethod,omitempty"` + WebhookUrl *string `json:"WebhookUrl,omitempty"` +} + +/* +CreateWebhook Method for CreateWebhook + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the new resource. + * @param optional nil or *CreateWebhookOpts - Optional Parameters: + * @param "Events" (string) - The list of space-separated events that this Webhook will subscribe to. + * @param "UniqueName" (string) - An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. This value must be unique and 64 characters or less in length. + * @param "WebhookMethod" (string) - The method to be used when calling the webhook's URL. + * @param "WebhookUrl" (string) - The URL associated with this Webhook. +@return AutopilotV1AssistantWebhook +*/ +func (c *DefaultApiService) CreateWebhook(assistantSid string, params *CreateWebhookParams) (*AutopilotV1AssistantWebhook, error) { + path := "/v1/Assistants/{AssistantSid}/Webhooks" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Events != nil { + data.Set("Events", *params.Events) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + if params != nil && params.WebhookMethod != nil { + data.Set("WebhookMethod", *params.WebhookMethod) + } + if params != nil && params.WebhookUrl != nil { + data.Set("WebhookUrl", *params.WebhookUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +DeleteAssistant Method for DeleteAssistant + * @param sid The Twilio-provided string that uniquely identifies the Assistant resource to delete. +*/ +func (c *DefaultApiService) DeleteAssistant(sid string) (error) { + path := "/v1/Assistants/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteField Method for DeleteField + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resources to delete. + * @param taskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) resource associated with the Field resource to delete. + * @param sid The Twilio-provided string that uniquely identifies the Field resource to delete. +*/ +func (c *DefaultApiService) DeleteField(assistantSid string, taskSid string, sid string) (error) { + path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteFieldType Method for DeleteFieldType + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to delete. + * @param sid The Twilio-provided string that uniquely identifies the FieldType resource to delete. +*/ +func (c *DefaultApiService) DeleteFieldType(assistantSid string, sid string) (error) { + path := "/v1/Assistants/{AssistantSid}/FieldTypes/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteFieldValue Method for DeleteFieldValue + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the FieldType associated with the resources to delete. + * @param fieldTypeSid The SID of the Field Type associated with the Field Value to delete. + * @param sid The Twilio-provided string that uniquely identifies the FieldValue resource to delete. +*/ +func (c *DefaultApiService) DeleteFieldValue(assistantSid string, fieldTypeSid string, sid string) (error) { + path := "/v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"FieldTypeSid"+"}", fieldTypeSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteModelBuild Method for DeleteModelBuild + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to delete. + * @param sid The Twilio-provided string that uniquely identifies the ModelBuild resource to delete. +*/ +func (c *DefaultApiService) DeleteModelBuild(assistantSid string, sid string) (error) { + path := "/v1/Assistants/{AssistantSid}/ModelBuilds/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteQuery Method for DeleteQuery + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to delete. + * @param sid The Twilio-provided string that uniquely identifies the Query resource to delete. +*/ +func (c *DefaultApiService) DeleteQuery(assistantSid string, sid string) (error) { + path := "/v1/Assistants/{AssistantSid}/Queries/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteSample Method for DeleteSample + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resources to delete. + * @param taskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the Sample resource to delete. + * @param sid The Twilio-provided string that uniquely identifies the Sample resource to delete. +*/ +func (c *DefaultApiService) DeleteSample(assistantSid string, taskSid string, sid string) (error) { + path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteTask Method for DeleteTask + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to delete. + * @param sid The Twilio-provided string that uniquely identifies the Task resource to delete. +*/ +func (c *DefaultApiService) DeleteTask(assistantSid string, sid string) (error) { + path := "/v1/Assistants/{AssistantSid}/Tasks/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteWebhook Method for DeleteWebhook + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to delete. + * @param sid The Twilio-provided string that uniquely identifies the Webhook resource to delete. +*/ +func (c *DefaultApiService) DeleteWebhook(assistantSid string, sid string) (error) { + path := "/v1/Assistants/{AssistantSid}/Webhooks/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +FetchAssistant Method for FetchAssistant + * @param sid The Twilio-provided string that uniquely identifies the Assistant resource to fetch. +@return AutopilotV1Assistant +*/ +func (c *DefaultApiService) FetchAssistant(sid string) (*AutopilotV1Assistant, error) { + path := "/v1/Assistants/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1Assistant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchDefaults Method for FetchDefaults + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. +@return AutopilotV1AssistantDefaults +*/ +func (c *DefaultApiService) FetchDefaults(assistantSid string) (*AutopilotV1AssistantDefaults, error) { + path := "/v1/Assistants/{AssistantSid}/Defaults" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantDefaults{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchDialogue Method for FetchDialogue + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. + * @param sid The Twilio-provided string that uniquely identifies the Dialogue resource to fetch. +@return AutopilotV1AssistantDialogue +*/ +func (c *DefaultApiService) FetchDialogue(assistantSid string, sid string) (*AutopilotV1AssistantDialogue, error) { + path := "/v1/Assistants/{AssistantSid}/Dialogues/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantDialogue{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchField Method for FetchField + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resource to fetch. + * @param taskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) resource associated with the Field resource to fetch. + * @param sid The Twilio-provided string that uniquely identifies the Field resource to fetch. +@return AutopilotV1AssistantTaskField +*/ +func (c *DefaultApiService) FetchField(assistantSid string, taskSid string, sid string) (*AutopilotV1AssistantTaskField, error) { + path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantTaskField{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchFieldType Method for FetchFieldType + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. + * @param sid The Twilio-provided string that uniquely identifies the FieldType resource to fetch. +@return AutopilotV1AssistantFieldType +*/ +func (c *DefaultApiService) FetchFieldType(assistantSid string, sid string) (*AutopilotV1AssistantFieldType, error) { + path := "/v1/Assistants/{AssistantSid}/FieldTypes/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantFieldType{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchFieldValue Method for FetchFieldValue + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the FieldType associated with the resource to fetch. + * @param fieldTypeSid The SID of the Field Type associated with the Field Value to fetch. + * @param sid The Twilio-provided string that uniquely identifies the FieldValue resource to fetch. +@return AutopilotV1AssistantFieldTypeFieldValue +*/ +func (c *DefaultApiService) FetchFieldValue(assistantSid string, fieldTypeSid string, sid string) (*AutopilotV1AssistantFieldTypeFieldValue, error) { + path := "/v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"FieldTypeSid"+"}", fieldTypeSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantFieldTypeFieldValue{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchModelBuild Method for FetchModelBuild + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. + * @param sid The Twilio-provided string that uniquely identifies the ModelBuild resource to fetch. +@return AutopilotV1AssistantModelBuild +*/ +func (c *DefaultApiService) FetchModelBuild(assistantSid string, sid string) (*AutopilotV1AssistantModelBuild, error) { + path := "/v1/Assistants/{AssistantSid}/ModelBuilds/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantModelBuild{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchQuery Method for FetchQuery + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. + * @param sid The Twilio-provided string that uniquely identifies the Query resource to fetch. +@return AutopilotV1AssistantQuery +*/ +func (c *DefaultApiService) FetchQuery(assistantSid string, sid string) (*AutopilotV1AssistantQuery, error) { + path := "/v1/Assistants/{AssistantSid}/Queries/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantQuery{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchSample Method for FetchSample + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resource to fetch. + * @param taskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the Sample resource to create. + * @param sid The Twilio-provided string that uniquely identifies the Sample resource to fetch. +@return AutopilotV1AssistantTaskSample +*/ +func (c *DefaultApiService) FetchSample(assistantSid string, taskSid string, sid string) (*AutopilotV1AssistantTaskSample, error) { + path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantTaskSample{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchStyleSheet Method for FetchStyleSheet +Returns Style sheet JSON object for the Assistant + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. +@return AutopilotV1AssistantStyleSheet +*/ +func (c *DefaultApiService) FetchStyleSheet(assistantSid string) (*AutopilotV1AssistantStyleSheet, error) { + path := "/v1/Assistants/{AssistantSid}/StyleSheet" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantStyleSheet{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchTask Method for FetchTask + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. + * @param sid The Twilio-provided string that uniquely identifies the Task resource to fetch. +@return AutopilotV1AssistantTask +*/ +func (c *DefaultApiService) FetchTask(assistantSid string, sid string) (*AutopilotV1AssistantTask, error) { + path := "/v1/Assistants/{AssistantSid}/Tasks/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantTask{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchTaskActions Method for FetchTaskActions +Returns JSON actions for the Task. + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task for which the task actions to fetch were defined. + * @param taskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) for which the task actions to fetch were defined. +@return AutopilotV1AssistantTaskTaskActions +*/ +func (c *DefaultApiService) FetchTaskActions(assistantSid string, taskSid string) (*AutopilotV1AssistantTaskTaskActions, error) { + path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Actions" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantTaskTaskActions{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchTaskStatistics Method for FetchTaskStatistics + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. + * @param taskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) that is associated with the resource to fetch. +@return AutopilotV1AssistantTaskTaskStatistics +*/ +func (c *DefaultApiService) FetchTaskStatistics(assistantSid string, taskSid string) (*AutopilotV1AssistantTaskTaskStatistics, error) { + path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Statistics" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantTaskTaskStatistics{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchWebhook Method for FetchWebhook + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. + * @param sid The Twilio-provided string that uniquely identifies the Webhook resource to fetch. +@return AutopilotV1AssistantWebhook +*/ +func (c *DefaultApiService) FetchWebhook(assistantSid string, sid string) (*AutopilotV1AssistantWebhook, error) { + path := "/v1/Assistants/{AssistantSid}/Webhooks/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListAssistantParams Optional parameters for the method 'ListAssistant' +type ListAssistantParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListAssistant Method for ListAssistant + * @param optional nil or *ListAssistantOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return AutopilotV1AssistantReadResponse +*/ +func (c *DefaultApiService) ListAssistant(params *ListAssistantParams) (*AutopilotV1AssistantReadResponse, error) { + path := "/v1/Assistants" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListFieldParams Optional parameters for the method 'ListField' +type ListFieldParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListField Method for ListField + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resources to read. + * @param taskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) resource associated with the Field resources to read. + * @param optional nil or *ListFieldOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return AutopilotV1AssistantTaskFieldReadResponse +*/ +func (c *DefaultApiService) ListField(assistantSid string, taskSid string, params *ListFieldParams) (*AutopilotV1AssistantTaskFieldReadResponse, error) { + path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantTaskFieldReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListFieldTypeParams Optional parameters for the method 'ListFieldType' +type ListFieldTypeParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListFieldType Method for ListFieldType + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to read. + * @param optional nil or *ListFieldTypeOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return AutopilotV1AssistantFieldTypeReadResponse +*/ +func (c *DefaultApiService) ListFieldType(assistantSid string, params *ListFieldTypeParams) (*AutopilotV1AssistantFieldTypeReadResponse, error) { + path := "/v1/Assistants/{AssistantSid}/FieldTypes" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantFieldTypeReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListFieldValueParams Optional parameters for the method 'ListFieldValue' +type ListFieldValueParams struct { + Language *string `json:"Language,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListFieldValue Method for ListFieldValue + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the FieldType associated with the resources to read. + * @param fieldTypeSid The SID of the Field Type associated with the Field Value to read. + * @param optional nil or *ListFieldValueOpts - Optional Parameters: + * @param "Language" (string) - The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) tag that specifies the language of the value. Currently supported tags: `en-US` + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return AutopilotV1AssistantFieldTypeFieldValueReadResponse +*/ +func (c *DefaultApiService) ListFieldValue(assistantSid string, fieldTypeSid string, params *ListFieldValueParams) (*AutopilotV1AssistantFieldTypeFieldValueReadResponse, error) { + path := "/v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"FieldTypeSid"+"}", fieldTypeSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Language != nil { + data.Set("Language", *params.Language) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantFieldTypeFieldValueReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListModelBuildParams Optional parameters for the method 'ListModelBuild' +type ListModelBuildParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListModelBuild Method for ListModelBuild + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to read. + * @param optional nil or *ListModelBuildOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return AutopilotV1AssistantModelBuildReadResponse +*/ +func (c *DefaultApiService) ListModelBuild(assistantSid string, params *ListModelBuildParams) (*AutopilotV1AssistantModelBuildReadResponse, error) { + path := "/v1/Assistants/{AssistantSid}/ModelBuilds" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantModelBuildReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListQueryParams Optional parameters for the method 'ListQuery' +type ListQueryParams struct { + Language *string `json:"Language,omitempty"` + ModelBuild *string `json:"ModelBuild,omitempty"` + Status *string `json:"Status,omitempty"` + DialogueSid *string `json:"DialogueSid,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListQuery Method for ListQuery + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to read. + * @param optional nil or *ListQueryOpts - Optional Parameters: + * @param "Language" (string) - The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used by the Query resources to read. For example: `en-US`. + * @param "ModelBuild" (string) - The SID or unique name of the [Model Build](https://www.twilio.com/docs/autopilot/api/model-build) to be queried. + * @param "Status" (string) - The status of the resources to read. Can be: `pending-review`, `reviewed`, or `discarded` + * @param "DialogueSid" (string) - The SID of the [Dialogue](https://www.twilio.com/docs/autopilot/api/dialogue). + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return AutopilotV1AssistantQueryReadResponse +*/ +func (c *DefaultApiService) ListQuery(assistantSid string, params *ListQueryParams) (*AutopilotV1AssistantQueryReadResponse, error) { + path := "/v1/Assistants/{AssistantSid}/Queries" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Language != nil { + data.Set("Language", *params.Language) + } + if params != nil && params.ModelBuild != nil { + data.Set("ModelBuild", *params.ModelBuild) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.DialogueSid != nil { + data.Set("DialogueSid", *params.DialogueSid) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantQueryReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListSampleParams Optional parameters for the method 'ListSample' +type ListSampleParams struct { + Language *string `json:"Language,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListSample Method for ListSample + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resources to read. + * @param taskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the Sample resources to read. + * @param optional nil or *ListSampleOpts - Optional Parameters: + * @param "Language" (string) - The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the sample. For example: `en-US`. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return AutopilotV1AssistantTaskSampleReadResponse +*/ +func (c *DefaultApiService) ListSample(assistantSid string, taskSid string, params *ListSampleParams) (*AutopilotV1AssistantTaskSampleReadResponse, error) { + path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Language != nil { + data.Set("Language", *params.Language) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantTaskSampleReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListTaskParams Optional parameters for the method 'ListTask' +type ListTaskParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListTask Method for ListTask + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to read. + * @param optional nil or *ListTaskOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return AutopilotV1AssistantTaskReadResponse +*/ +func (c *DefaultApiService) ListTask(assistantSid string, params *ListTaskParams) (*AutopilotV1AssistantTaskReadResponse, error) { + path := "/v1/Assistants/{AssistantSid}/Tasks" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantTaskReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListWebhookParams Optional parameters for the method 'ListWebhook' +type ListWebhookParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListWebhook Method for ListWebhook + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to read. + * @param optional nil or *ListWebhookOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return AutopilotV1AssistantWebhookReadResponse +*/ +func (c *DefaultApiService) ListWebhook(assistantSid string, params *ListWebhookParams) (*AutopilotV1AssistantWebhookReadResponse, error) { + path := "/v1/Assistants/{AssistantSid}/Webhooks" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantWebhookReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateAssistantParams Optional parameters for the method 'UpdateAssistant' +type UpdateAssistantParams struct { + CallbackEvents *string `json:"CallbackEvents,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + Defaults *map[string]interface{} `json:"Defaults,omitempty"` + DevelopmentStage *string `json:"DevelopmentStage,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + LogQueries *bool `json:"LogQueries,omitempty"` + StyleSheet *map[string]interface{} `json:"StyleSheet,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +UpdateAssistant Method for UpdateAssistant + * @param sid The Twilio-provided string that uniquely identifies the Assistant resource to update. + * @param optional nil or *UpdateAssistantOpts - Optional Parameters: + * @param "CallbackEvents" (string) - Reserved. + * @param "CallbackUrl" (string) - Reserved. + * @param "Defaults" (map[string]interface{}) - A JSON object that defines the Assistant's [default tasks](https://www.twilio.com/docs/autopilot/api/assistant/defaults) for various scenarios, including initiation actions and fallback tasks. + * @param "DevelopmentStage" (string) - A string describing the state of the assistant. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. + * @param "LogQueries" (bool) - Whether queries should be logged and kept after training. Can be: `true` or `false` and defaults to `true`. If `true`, queries are stored for 30 days, and then deleted. If `false`, no queries are stored. + * @param "StyleSheet" (map[string]interface{}) - The JSON string that defines the Assistant's [style sheet](https://www.twilio.com/docs/autopilot/api/assistant/stylesheet) + * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. It can be used as an alternative to the `sid` in the URL path to address the resource. The first 64 characters must be unique. +@return AutopilotV1Assistant +*/ +func (c *DefaultApiService) UpdateAssistant(sid string, params *UpdateAssistantParams) (*AutopilotV1Assistant, error) { + path := "/v1/Assistants/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CallbackEvents != nil { + data.Set("CallbackEvents", *params.CallbackEvents) + } + if params != nil && params.CallbackUrl != nil { + data.Set("CallbackUrl", *params.CallbackUrl) + } + if params != nil && params.Defaults != nil { + v, err := json.Marshal(params.Defaults) + + if err != nil { + return nil, err + } + + data.Set("Defaults", string(v)) + } + if params != nil && params.DevelopmentStage != nil { + data.Set("DevelopmentStage", *params.DevelopmentStage) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.LogQueries != nil { + data.Set("LogQueries", string(*params.LogQueries)) + } + if params != nil && params.StyleSheet != nil { + v, err := json.Marshal(params.StyleSheet) + + if err != nil { + return nil, err + } + + data.Set("StyleSheet", string(v)) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1Assistant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateDefaultsParams Optional parameters for the method 'UpdateDefaults' +type UpdateDefaultsParams struct { + Defaults *map[string]interface{} `json:"Defaults,omitempty"` +} + +/* +UpdateDefaults Method for UpdateDefaults + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update. + * @param optional nil or *UpdateDefaultsOpts - Optional Parameters: + * @param "Defaults" (map[string]interface{}) - A JSON string that describes the default task links for the `assistant_initiation`, `collect`, and `fallback` situations. +@return AutopilotV1AssistantDefaults +*/ +func (c *DefaultApiService) UpdateDefaults(assistantSid string, params *UpdateDefaultsParams) (*AutopilotV1AssistantDefaults, error) { + path := "/v1/Assistants/{AssistantSid}/Defaults" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Defaults != nil { + v, err := json.Marshal(params.Defaults) + + if err != nil { + return nil, err + } + + data.Set("Defaults", string(v)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantDefaults{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateFieldTypeParams Optional parameters for the method 'UpdateFieldType' +type UpdateFieldTypeParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +UpdateFieldType Method for UpdateFieldType + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the to update. + * @param sid The Twilio-provided string that uniquely identifies the FieldType resource to update. + * @param optional nil or *UpdateFieldTypeOpts - Optional Parameters: + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. + * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. It can be used as an alternative to the `sid` in the URL path to address the resource. The first 64 characters must be unique. +@return AutopilotV1AssistantFieldType +*/ +func (c *DefaultApiService) UpdateFieldType(assistantSid string, sid string, params *UpdateFieldTypeParams) (*AutopilotV1AssistantFieldType, error) { + path := "/v1/Assistants/{AssistantSid}/FieldTypes/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantFieldType{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateModelBuildParams Optional parameters for the method 'UpdateModelBuild' +type UpdateModelBuildParams struct { + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +UpdateModelBuild Method for UpdateModelBuild + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update. + * @param sid The Twilio-provided string that uniquely identifies the ModelBuild resource to update. + * @param optional nil or *UpdateModelBuildOpts - Optional Parameters: + * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. This value must be a unique string of no more than 64 characters. It can be used as an alternative to the `sid` in the URL path to address the resource. +@return AutopilotV1AssistantModelBuild +*/ +func (c *DefaultApiService) UpdateModelBuild(assistantSid string, sid string, params *UpdateModelBuildParams) (*AutopilotV1AssistantModelBuild, error) { + path := "/v1/Assistants/{AssistantSid}/ModelBuilds/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantModelBuild{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateQueryParams Optional parameters for the method 'UpdateQuery' +type UpdateQueryParams struct { + SampleSid *string `json:"SampleSid,omitempty"` + Status *string `json:"Status,omitempty"` +} + +/* +UpdateQuery Method for UpdateQuery + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update. + * @param sid The Twilio-provided string that uniquely identifies the Query resource to update. + * @param optional nil or *UpdateQueryOpts - Optional Parameters: + * @param "SampleSid" (string) - The SID of an optional reference to the [Sample](https://www.twilio.com/docs/autopilot/api/task-sample) created from the query. + * @param "Status" (string) - The new status of the resource. Can be: `pending-review`, `reviewed`, or `discarded` +@return AutopilotV1AssistantQuery +*/ +func (c *DefaultApiService) UpdateQuery(assistantSid string, sid string, params *UpdateQueryParams) (*AutopilotV1AssistantQuery, error) { + path := "/v1/Assistants/{AssistantSid}/Queries/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.SampleSid != nil { + data.Set("SampleSid", *params.SampleSid) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantQuery{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateRestoreAssistantParams Optional parameters for the method 'UpdateRestoreAssistant' +type UpdateRestoreAssistantParams struct { + Assistant *string `json:"Assistant,omitempty"` +} + +/* +UpdateRestoreAssistant Method for UpdateRestoreAssistant + * @param optional nil or *UpdateRestoreAssistantOpts - Optional Parameters: + * @param "Assistant" (string) - The Twilio-provided string that uniquely identifies the Assistant resource to restore. +@return AutopilotV1RestoreAssistant +*/ +func (c *DefaultApiService) UpdateRestoreAssistant(params *UpdateRestoreAssistantParams) (*AutopilotV1RestoreAssistant, error) { + path := "/v1/Assistants/Restore" + + data := url.Values{} + headers := 0 + + if params != nil && params.Assistant != nil { + data.Set("Assistant", *params.Assistant) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1RestoreAssistant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateSampleParams Optional parameters for the method 'UpdateSample' +type UpdateSampleParams struct { + Language *string `json:"Language,omitempty"` + SourceChannel *string `json:"SourceChannel,omitempty"` + TaggedText *string `json:"TaggedText,omitempty"` +} + +/* +UpdateSample Method for UpdateSample + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resource to update. + * @param taskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the Sample resource to update. + * @param sid The Twilio-provided string that uniquely identifies the Sample resource to update. + * @param optional nil or *UpdateSampleOpts - Optional Parameters: + * @param "Language" (string) - The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the sample. For example: `en-US`. + * @param "SourceChannel" (string) - The communication channel from which the sample was captured. Can be: `voice`, `sms`, `chat`, `alexa`, `google-assistant`, `slack`, or null if not included. + * @param "TaggedText" (string) - The text example of how end users might express the task. The sample can contain [Field tag blocks](https://www.twilio.com/docs/autopilot/api/task-sample#field-tagging). +@return AutopilotV1AssistantTaskSample +*/ +func (c *DefaultApiService) UpdateSample(assistantSid string, taskSid string, sid string, params *UpdateSampleParams) (*AutopilotV1AssistantTaskSample, error) { + path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Language != nil { + data.Set("Language", *params.Language) + } + if params != nil && params.SourceChannel != nil { + data.Set("SourceChannel", *params.SourceChannel) + } + if params != nil && params.TaggedText != nil { + data.Set("TaggedText", *params.TaggedText) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantTaskSample{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateStyleSheetParams Optional parameters for the method 'UpdateStyleSheet' +type UpdateStyleSheetParams struct { + StyleSheet *map[string]interface{} `json:"StyleSheet,omitempty"` +} + +/* +UpdateStyleSheet Method for UpdateStyleSheet +Updates the style sheet for an Assistant identified by `assistant_sid`. + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update. + * @param optional nil or *UpdateStyleSheetOpts - Optional Parameters: + * @param "StyleSheet" (map[string]interface{}) - The JSON string that describes the style sheet object. +@return AutopilotV1AssistantStyleSheet +*/ +func (c *DefaultApiService) UpdateStyleSheet(assistantSid string, params *UpdateStyleSheetParams) (*AutopilotV1AssistantStyleSheet, error) { + path := "/v1/Assistants/{AssistantSid}/StyleSheet" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.StyleSheet != nil { + v, err := json.Marshal(params.StyleSheet) + + if err != nil { + return nil, err + } + + data.Set("StyleSheet", string(v)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantStyleSheet{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateTaskParams Optional parameters for the method 'UpdateTask' +type UpdateTaskParams struct { + Actions *map[string]interface{} `json:"Actions,omitempty"` + ActionsUrl *string `json:"ActionsUrl,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +UpdateTask Method for UpdateTask + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update. + * @param sid The Twilio-provided string that uniquely identifies the Task resource to update. + * @param optional nil or *UpdateTaskOpts - Optional Parameters: + * @param "Actions" (map[string]interface{}) - The JSON string that specifies the [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the Assistant on how to perform the task. + * @param "ActionsUrl" (string) - The URL from which the Assistant can fetch actions. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. + * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. This value must be 64 characters or less in length and be unique. It can be used as an alternative to the `sid` in the URL path to address the resource. +@return AutopilotV1AssistantTask +*/ +func (c *DefaultApiService) UpdateTask(assistantSid string, sid string, params *UpdateTaskParams) (*AutopilotV1AssistantTask, error) { + path := "/v1/Assistants/{AssistantSid}/Tasks/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Actions != nil { + v, err := json.Marshal(params.Actions) + + if err != nil { + return nil, err + } + + data.Set("Actions", string(v)) + } + if params != nil && params.ActionsUrl != nil { + data.Set("ActionsUrl", *params.ActionsUrl) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantTask{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateTaskActionsParams Optional parameters for the method 'UpdateTaskActions' +type UpdateTaskActionsParams struct { + Actions *map[string]interface{} `json:"Actions,omitempty"` +} + +/* +UpdateTaskActions Method for UpdateTaskActions +Updates the actions of an Task identified by {TaskSid} or {TaskUniqueName}. + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task for which the task actions to update were defined. + * @param taskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) for which the task actions to update were defined. + * @param optional nil or *UpdateTaskActionsOpts - Optional Parameters: + * @param "Actions" (map[string]interface{}) - The JSON string that specifies the [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the Assistant on how to perform the task. +@return AutopilotV1AssistantTaskTaskActions +*/ +func (c *DefaultApiService) UpdateTaskActions(assistantSid string, taskSid string, params *UpdateTaskActionsParams) (*AutopilotV1AssistantTaskTaskActions, error) { + path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Actions" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Actions != nil { + v, err := json.Marshal(params.Actions) + + if err != nil { + return nil, err + } + + data.Set("Actions", string(v)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantTaskTaskActions{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateWebhookParams Optional parameters for the method 'UpdateWebhook' +type UpdateWebhookParams struct { + Events *string `json:"Events,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + WebhookMethod *string `json:"WebhookMethod,omitempty"` + WebhookUrl *string `json:"WebhookUrl,omitempty"` +} + +/* +UpdateWebhook Method for UpdateWebhook + * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update. + * @param sid The Twilio-provided string that uniquely identifies the Webhook resource to update. + * @param optional nil or *UpdateWebhookOpts - Optional Parameters: + * @param "Events" (string) - The list of space-separated events that this Webhook will subscribe to. + * @param "UniqueName" (string) - An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. This value must be unique and 64 characters or less in length. + * @param "WebhookMethod" (string) - The method to be used when calling the webhook's URL. + * @param "WebhookUrl" (string) - The URL associated with this Webhook. +@return AutopilotV1AssistantWebhook +*/ +func (c *DefaultApiService) UpdateWebhook(assistantSid string, sid string, params *UpdateWebhookParams) (*AutopilotV1AssistantWebhook, error) { + path := "/v1/Assistants/{AssistantSid}/Webhooks/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Events != nil { + data.Set("Events", *params.Events) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + if params != nil && params.WebhookMethod != nil { + data.Set("WebhookMethod", *params.WebhookMethod) + } + if params != nil && params.WebhookUrl != nil { + data.Set("WebhookUrl", *params.WebhookUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/autopilot/v1/docs/AutopilotV1Assistant.md b/rest/autopilot/v1/docs/AutopilotV1Assistant.md new file mode 100644 index 000000000..f9a6bfca8 --- /dev/null +++ b/rest/autopilot/v1/docs/AutopilotV1Assistant.md @@ -0,0 +1,24 @@ +# AutopilotV1Assistant + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**CallbackEvents** | **string** | | [optional] +**CallbackUrl** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**DevelopmentStage** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**LatestModelBuildSid** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**LogQueries** | **bool** | | [optional] +**NeedsModelBuild** | **bool** | | [optional] +**Sid** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **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/rest/autopilot/v1/docs/AutopilotV1AssistantDefaults.md b/rest/autopilot/v1/docs/AutopilotV1AssistantDefaults.md new file mode 100644 index 000000000..274a4b77c --- /dev/null +++ b/rest/autopilot/v1/docs/AutopilotV1AssistantDefaults.md @@ -0,0 +1,14 @@ +# AutopilotV1AssistantDefaults + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AssistantSid** | **string** | | [optional] +**Data** | [**map[string]interface{}**](.md) | | [optional] +**Url** | **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/rest/autopilot/v1/docs/AutopilotV1AssistantDialogue.md b/rest/autopilot/v1/docs/AutopilotV1AssistantDialogue.md new file mode 100644 index 000000000..24b776a2a --- /dev/null +++ b/rest/autopilot/v1/docs/AutopilotV1AssistantDialogue.md @@ -0,0 +1,15 @@ +# AutopilotV1AssistantDialogue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AssistantSid** | **string** | | [optional] +**Data** | [**map[string]interface{}**](.md) | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/autopilot/v1/docs/AutopilotV1AssistantFieldType.md b/rest/autopilot/v1/docs/AutopilotV1AssistantFieldType.md new file mode 100644 index 000000000..cb1894a37 --- /dev/null +++ b/rest/autopilot/v1/docs/AutopilotV1AssistantFieldType.md @@ -0,0 +1,19 @@ +# AutopilotV1AssistantFieldType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AssistantSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Sid** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **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/rest/autopilot/v1/docs/AutopilotV1AssistantFieldTypeFieldValue.md b/rest/autopilot/v1/docs/AutopilotV1AssistantFieldTypeFieldValue.md new file mode 100644 index 000000000..67104258d --- /dev/null +++ b/rest/autopilot/v1/docs/AutopilotV1AssistantFieldTypeFieldValue.md @@ -0,0 +1,20 @@ +# AutopilotV1AssistantFieldTypeFieldValue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AssistantSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FieldTypeSid** | **string** | | [optional] +**Language** | **string** | | [optional] +**Sid** | **string** | | [optional] +**SynonymOf** | **string** | | [optional] +**Url** | **string** | | [optional] +**Value** | **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/rest/autopilot/v1/docs/AutopilotV1AssistantFieldTypeFieldValueReadResponse.md b/rest/autopilot/v1/docs/AutopilotV1AssistantFieldTypeFieldValueReadResponse.md new file mode 100644 index 000000000..ecb3ea5c8 --- /dev/null +++ b/rest/autopilot/v1/docs/AutopilotV1AssistantFieldTypeFieldValueReadResponse.md @@ -0,0 +1,12 @@ +# AutopilotV1AssistantFieldTypeFieldValueReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FieldValues** | [**[]AutopilotV1AssistantFieldTypeFieldValue**](autopilot.v1.assistant.field_type.field_value.md) | | [optional] +**Meta** | [**AutopilotV1AssistantReadResponseMeta**](autopilot_v1_assistantReadResponse_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/rest/autopilot/v1/docs/AutopilotV1AssistantFieldTypeReadResponse.md b/rest/autopilot/v1/docs/AutopilotV1AssistantFieldTypeReadResponse.md new file mode 100644 index 000000000..547a240cb --- /dev/null +++ b/rest/autopilot/v1/docs/AutopilotV1AssistantFieldTypeReadResponse.md @@ -0,0 +1,12 @@ +# AutopilotV1AssistantFieldTypeReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FieldTypes** | [**[]AutopilotV1AssistantFieldType**](autopilot.v1.assistant.field_type.md) | | [optional] +**Meta** | [**AutopilotV1AssistantReadResponseMeta**](autopilot_v1_assistantReadResponse_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/rest/autopilot/v1/docs/AutopilotV1AssistantModelBuild.md b/rest/autopilot/v1/docs/AutopilotV1AssistantModelBuild.md new file mode 100644 index 000000000..adc76a028 --- /dev/null +++ b/rest/autopilot/v1/docs/AutopilotV1AssistantModelBuild.md @@ -0,0 +1,20 @@ +# AutopilotV1AssistantModelBuild + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AssistantSid** | **string** | | [optional] +**BuildDuration** | Pointer to **int32** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**ErrorCode** | Pointer to **int32** | | [optional] +**Sid** | **string** | | [optional] +**Status** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **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/rest/autopilot/v1/docs/AutopilotV1AssistantModelBuildReadResponse.md b/rest/autopilot/v1/docs/AutopilotV1AssistantModelBuildReadResponse.md new file mode 100644 index 000000000..b9d63a30d --- /dev/null +++ b/rest/autopilot/v1/docs/AutopilotV1AssistantModelBuildReadResponse.md @@ -0,0 +1,12 @@ +# AutopilotV1AssistantModelBuildReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**AutopilotV1AssistantReadResponseMeta**](autopilot_v1_assistantReadResponse_meta.md) | | [optional] +**ModelBuilds** | [**[]AutopilotV1AssistantModelBuild**](autopilot.v1.assistant.model_build.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/rest/autopilot/v1/docs/AutopilotV1AssistantQuery.md b/rest/autopilot/v1/docs/AutopilotV1AssistantQuery.md new file mode 100644 index 000000000..7a85ec749 --- /dev/null +++ b/rest/autopilot/v1/docs/AutopilotV1AssistantQuery.md @@ -0,0 +1,24 @@ +# AutopilotV1AssistantQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AssistantSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**DialogueSid** | **string** | | [optional] +**Language** | **string** | | [optional] +**ModelBuildSid** | **string** | | [optional] +**Query** | **string** | | [optional] +**Results** | [**map[string]interface{}**](.md) | | [optional] +**SampleSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**SourceChannel** | **string** | | [optional] +**Status** | **string** | | [optional] +**Url** | **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/rest/autopilot/v1/docs/AutopilotV1AssistantQueryReadResponse.md b/rest/autopilot/v1/docs/AutopilotV1AssistantQueryReadResponse.md new file mode 100644 index 000000000..d5a688971 --- /dev/null +++ b/rest/autopilot/v1/docs/AutopilotV1AssistantQueryReadResponse.md @@ -0,0 +1,12 @@ +# AutopilotV1AssistantQueryReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**AutopilotV1AssistantReadResponseMeta**](autopilot_v1_assistantReadResponse_meta.md) | | [optional] +**Queries** | [**[]AutopilotV1AssistantQuery**](autopilot.v1.assistant.query.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/rest/autopilot/v1/docs/AutopilotV1AssistantReadResponse.md b/rest/autopilot/v1/docs/AutopilotV1AssistantReadResponse.md new file mode 100644 index 000000000..94e048bca --- /dev/null +++ b/rest/autopilot/v1/docs/AutopilotV1AssistantReadResponse.md @@ -0,0 +1,12 @@ +# AutopilotV1AssistantReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Assistants** | [**[]AutopilotV1Assistant**](autopilot.v1.assistant.md) | | [optional] +**Meta** | [**AutopilotV1AssistantReadResponseMeta**](autopilot_v1_assistantReadResponse_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/rest/autopilot/v1/docs/AutopilotV1AssistantReadResponseMeta.md b/rest/autopilot/v1/docs/AutopilotV1AssistantReadResponseMeta.md new file mode 100644 index 000000000..91a4fbc58 --- /dev/null +++ b/rest/autopilot/v1/docs/AutopilotV1AssistantReadResponseMeta.md @@ -0,0 +1,17 @@ +# AutopilotV1AssistantReadResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/autopilot/v1/docs/AutopilotV1AssistantStyleSheet.md b/rest/autopilot/v1/docs/AutopilotV1AssistantStyleSheet.md new file mode 100644 index 000000000..5f93a2297 --- /dev/null +++ b/rest/autopilot/v1/docs/AutopilotV1AssistantStyleSheet.md @@ -0,0 +1,14 @@ +# AutopilotV1AssistantStyleSheet + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AssistantSid** | **string** | | [optional] +**Data** | [**map[string]interface{}**](.md) | | [optional] +**Url** | **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/rest/autopilot/v1/docs/AutopilotV1AssistantTask.md b/rest/autopilot/v1/docs/AutopilotV1AssistantTask.md new file mode 100644 index 000000000..9b377f3ec --- /dev/null +++ b/rest/autopilot/v1/docs/AutopilotV1AssistantTask.md @@ -0,0 +1,20 @@ +# AutopilotV1AssistantTask + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ActionsUrl** | **string** | | [optional] +**AssistantSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Sid** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **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/rest/autopilot/v1/docs/AutopilotV1AssistantTaskField.md b/rest/autopilot/v1/docs/AutopilotV1AssistantTaskField.md new file mode 100644 index 000000000..d3ea74e06 --- /dev/null +++ b/rest/autopilot/v1/docs/AutopilotV1AssistantTaskField.md @@ -0,0 +1,19 @@ +# AutopilotV1AssistantTaskField + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AssistantSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FieldType** | **string** | | [optional] +**Sid** | **string** | | [optional] +**TaskSid** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **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/rest/autopilot/v1/docs/AutopilotV1AssistantTaskFieldReadResponse.md b/rest/autopilot/v1/docs/AutopilotV1AssistantTaskFieldReadResponse.md new file mode 100644 index 000000000..956868eb7 --- /dev/null +++ b/rest/autopilot/v1/docs/AutopilotV1AssistantTaskFieldReadResponse.md @@ -0,0 +1,12 @@ +# AutopilotV1AssistantTaskFieldReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Fields** | [**[]AutopilotV1AssistantTaskField**](autopilot.v1.assistant.task.field.md) | | [optional] +**Meta** | [**AutopilotV1AssistantReadResponseMeta**](autopilot_v1_assistantReadResponse_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/rest/autopilot/v1/docs/AutopilotV1AssistantTaskReadResponse.md b/rest/autopilot/v1/docs/AutopilotV1AssistantTaskReadResponse.md new file mode 100644 index 000000000..4505a80de --- /dev/null +++ b/rest/autopilot/v1/docs/AutopilotV1AssistantTaskReadResponse.md @@ -0,0 +1,12 @@ +# AutopilotV1AssistantTaskReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**AutopilotV1AssistantReadResponseMeta**](autopilot_v1_assistantReadResponse_meta.md) | | [optional] +**Tasks** | [**[]AutopilotV1AssistantTask**](autopilot.v1.assistant.task.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/rest/autopilot/v1/docs/AutopilotV1AssistantTaskSample.md b/rest/autopilot/v1/docs/AutopilotV1AssistantTaskSample.md new file mode 100644 index 000000000..b87a526d1 --- /dev/null +++ b/rest/autopilot/v1/docs/AutopilotV1AssistantTaskSample.md @@ -0,0 +1,20 @@ +# AutopilotV1AssistantTaskSample + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AssistantSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Language** | **string** | | [optional] +**Sid** | **string** | | [optional] +**SourceChannel** | **string** | | [optional] +**TaggedText** | **string** | | [optional] +**TaskSid** | **string** | | [optional] +**Url** | **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/rest/autopilot/v1/docs/AutopilotV1AssistantTaskSampleReadResponse.md b/rest/autopilot/v1/docs/AutopilotV1AssistantTaskSampleReadResponse.md new file mode 100644 index 000000000..5bbad3154 --- /dev/null +++ b/rest/autopilot/v1/docs/AutopilotV1AssistantTaskSampleReadResponse.md @@ -0,0 +1,12 @@ +# AutopilotV1AssistantTaskSampleReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**AutopilotV1AssistantReadResponseMeta**](autopilot_v1_assistantReadResponse_meta.md) | | [optional] +**Samples** | [**[]AutopilotV1AssistantTaskSample**](autopilot.v1.assistant.task.sample.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/rest/autopilot/v1/docs/AutopilotV1AssistantTaskTaskActions.md b/rest/autopilot/v1/docs/AutopilotV1AssistantTaskTaskActions.md new file mode 100644 index 000000000..e19ba15e9 --- /dev/null +++ b/rest/autopilot/v1/docs/AutopilotV1AssistantTaskTaskActions.md @@ -0,0 +1,15 @@ +# AutopilotV1AssistantTaskTaskActions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AssistantSid** | **string** | | [optional] +**Data** | [**map[string]interface{}**](.md) | | [optional] +**TaskSid** | **string** | | [optional] +**Url** | **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/rest/autopilot/v1/docs/AutopilotV1AssistantTaskTaskStatistics.md b/rest/autopilot/v1/docs/AutopilotV1AssistantTaskTaskStatistics.md new file mode 100644 index 000000000..fca5319c9 --- /dev/null +++ b/rest/autopilot/v1/docs/AutopilotV1AssistantTaskTaskStatistics.md @@ -0,0 +1,16 @@ +# AutopilotV1AssistantTaskTaskStatistics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AssistantSid** | **string** | | [optional] +**FieldsCount** | **int32** | | [optional] +**SamplesCount** | **int32** | | [optional] +**TaskSid** | **string** | | [optional] +**Url** | **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/rest/autopilot/v1/docs/AutopilotV1AssistantWebhook.md b/rest/autopilot/v1/docs/AutopilotV1AssistantWebhook.md new file mode 100644 index 000000000..fcdb3f3ae --- /dev/null +++ b/rest/autopilot/v1/docs/AutopilotV1AssistantWebhook.md @@ -0,0 +1,20 @@ +# AutopilotV1AssistantWebhook + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AssistantSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Events** | **string** | | [optional] +**Sid** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **string** | | [optional] +**WebhookMethod** | **string** | | [optional] +**WebhookUrl** | **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/rest/autopilot/v1/docs/AutopilotV1AssistantWebhookReadResponse.md b/rest/autopilot/v1/docs/AutopilotV1AssistantWebhookReadResponse.md new file mode 100644 index 000000000..6e4133e4b --- /dev/null +++ b/rest/autopilot/v1/docs/AutopilotV1AssistantWebhookReadResponse.md @@ -0,0 +1,12 @@ +# AutopilotV1AssistantWebhookReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**AutopilotV1AssistantReadResponseMeta**](autopilot_v1_assistantReadResponse_meta.md) | | [optional] +**Webhooks** | [**[]AutopilotV1AssistantWebhook**](autopilot.v1.assistant.webhook.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/rest/autopilot/v1/docs/AutopilotV1RestoreAssistant.md b/rest/autopilot/v1/docs/AutopilotV1RestoreAssistant.md new file mode 100644 index 000000000..aa6c56fc0 --- /dev/null +++ b/rest/autopilot/v1/docs/AutopilotV1RestoreAssistant.md @@ -0,0 +1,22 @@ +# AutopilotV1RestoreAssistant + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**CallbackEvents** | **string** | | [optional] +**CallbackUrl** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**DevelopmentStage** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**LatestModelBuildSid** | **string** | | [optional] +**LogQueries** | **bool** | | [optional] +**NeedsModelBuild** | **bool** | | [optional] +**Sid** | **string** | | [optional] +**UniqueName** | **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/rest/autopilot/v1/docs/CreateAssistantRequest.md b/rest/autopilot/v1/docs/CreateAssistantRequest.md new file mode 100644 index 000000000..813583940 --- /dev/null +++ b/rest/autopilot/v1/docs/CreateAssistantRequest.md @@ -0,0 +1,17 @@ +# CreateAssistantRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CallbackEvents** | **string** | Reserved. | [optional] +**CallbackUrl** | **string** | Reserved. | [optional] +**Defaults** | [**map[string]interface{}**](.md) | A JSON object that defines the Assistant's [default tasks](https://www.twilio.com/docs/autopilot/api/assistant/defaults) for various scenarios, including initiation actions and fallback tasks. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the new resource. It is not unique and can be up to 255 characters long. | [optional] +**LogQueries** | **bool** | Whether queries should be logged and kept after training. Can be: `true` or `false` and defaults to `true`. If `true`, queries are stored for 30 days, and then deleted. If `false`, no queries are stored. | [optional] +**StyleSheet** | [**map[string]interface{}**](.md) | The JSON string that defines the Assistant's [style sheet](https://www.twilio.com/docs/autopilot/api/assistant/stylesheet) | [optional] +**UniqueName** | **string** | An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. The first 64 characters must be unique. | [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/rest/autopilot/v1/docs/CreateFieldRequest.md b/rest/autopilot/v1/docs/CreateFieldRequest.md new file mode 100644 index 000000000..f37a33c21 --- /dev/null +++ b/rest/autopilot/v1/docs/CreateFieldRequest.md @@ -0,0 +1,12 @@ +# CreateFieldRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FieldType** | **string** | The Field Type of the new field. Can be: a [Built-in Field Type](https://www.twilio.com/docs/autopilot/built-in-field-types), the `unique_name`, or the `sid` of a custom Field Type. | +**UniqueName** | **string** | An application-defined string that uniquely identifies the new resource. This value must be a unique string of no more than 64 characters. It can be used as an alternative to the `sid` in the URL path to address the resource. | + +[[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/rest/autopilot/v1/docs/CreateFieldTypeRequest.md b/rest/autopilot/v1/docs/CreateFieldTypeRequest.md new file mode 100644 index 000000000..6b83c0679 --- /dev/null +++ b/rest/autopilot/v1/docs/CreateFieldTypeRequest.md @@ -0,0 +1,12 @@ +# CreateFieldTypeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | A descriptive string that you create to describe the new resource. It is not unique and can be up to 255 characters long. | [optional] +**UniqueName** | **string** | An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. The first 64 characters must be unique. | + +[[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/rest/autopilot/v1/docs/CreateFieldValueRequest.md b/rest/autopilot/v1/docs/CreateFieldValueRequest.md new file mode 100644 index 000000000..d3f2344cf --- /dev/null +++ b/rest/autopilot/v1/docs/CreateFieldValueRequest.md @@ -0,0 +1,13 @@ +# CreateFieldValueRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Language** | **string** | The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) tag that specifies the language of the value. Currently supported tags: `en-US` | +**SynonymOf** | **string** | The string value that indicates which word the field value is a synonym of. | [optional] +**Value** | **string** | The Field Value data. | + +[[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/rest/autopilot/v1/docs/CreateModelBuildRequest.md b/rest/autopilot/v1/docs/CreateModelBuildRequest.md new file mode 100644 index 000000000..570231f1b --- /dev/null +++ b/rest/autopilot/v1/docs/CreateModelBuildRequest.md @@ -0,0 +1,12 @@ +# CreateModelBuildRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StatusCallback** | **string** | The URL we should call using a POST method to send status information to your application. | [optional] +**UniqueName** | **string** | An application-defined string that uniquely identifies the new resource. This value must be a unique string of no more than 64 characters. It can be used as an alternative to the `sid` in the URL path to address the 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/rest/autopilot/v1/docs/CreateQueryRequest.md b/rest/autopilot/v1/docs/CreateQueryRequest.md new file mode 100644 index 000000000..828b119af --- /dev/null +++ b/rest/autopilot/v1/docs/CreateQueryRequest.md @@ -0,0 +1,14 @@ +# CreateQueryRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Language** | **string** | The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the new query. For example: `en-US`. | +**ModelBuild** | **string** | The SID or unique name of the [Model Build](https://www.twilio.com/docs/autopilot/api/model-build) to be queried. | [optional] +**Query** | **string** | The end-user's natural language input. It can be up to 2048 characters long. | +**Tasks** | **string** | The list of tasks to limit the new query to. Tasks are expressed as a comma-separated list of task `unique_name` values. For example, `task-unique_name-1, task-unique_name-2`. Listing specific tasks is useful to constrain the paths that a user can take. | [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/rest/autopilot/v1/docs/CreateSampleRequest.md b/rest/autopilot/v1/docs/CreateSampleRequest.md new file mode 100644 index 000000000..b958ac344 --- /dev/null +++ b/rest/autopilot/v1/docs/CreateSampleRequest.md @@ -0,0 +1,13 @@ +# CreateSampleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Language** | **string** | The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the new sample. For example: `en-US`. | +**SourceChannel** | **string** | The communication channel from which the new sample was captured. Can be: `voice`, `sms`, `chat`, `alexa`, `google-assistant`, `slack`, or null if not included. | [optional] +**TaggedText** | **string** | The text example of how end users might express the task. The sample can contain [Field tag blocks](https://www.twilio.com/docs/autopilot/api/task-sample#field-tagging). | + +[[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/rest/autopilot/v1/docs/CreateTaskRequest.md b/rest/autopilot/v1/docs/CreateTaskRequest.md new file mode 100644 index 000000000..48381b088 --- /dev/null +++ b/rest/autopilot/v1/docs/CreateTaskRequest.md @@ -0,0 +1,14 @@ +# CreateTaskRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Actions** | [**map[string]interface{}**](.md) | The JSON string that specifies the [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the Assistant on how to perform the task. It is optional and not unique. | [optional] +**ActionsUrl** | **string** | The URL from which the Assistant can fetch actions. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the new resource. It is not unique and can be up to 255 characters long. | [optional] +**UniqueName** | **string** | An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. This value must be unique and 64 characters or less in length. | + +[[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/rest/autopilot/v1/docs/CreateWebhookRequest.md b/rest/autopilot/v1/docs/CreateWebhookRequest.md new file mode 100644 index 000000000..2c3861d04 --- /dev/null +++ b/rest/autopilot/v1/docs/CreateWebhookRequest.md @@ -0,0 +1,14 @@ +# CreateWebhookRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Events** | **string** | The list of space-separated events that this Webhook will subscribe to. | +**UniqueName** | **string** | An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. This value must be unique and 64 characters or less in length. | +**WebhookMethod** | **string** | The method to be used when calling the webhook's URL. | [optional] +**WebhookUrl** | **string** | The URL associated with this Webhook. | + +[[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/rest/autopilot/v1/docs/DefaultApi.md b/rest/autopilot/v1/docs/DefaultApi.md new file mode 100644 index 000000000..b8af24bfb --- /dev/null +++ b/rest/autopilot/v1/docs/DefaultApi.md @@ -0,0 +1,2143 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateAssistant**](DefaultApi.md#CreateAssistant) | **Post** /v1/Assistants | +[**CreateField**](DefaultApi.md#CreateField) | **Post** /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields | +[**CreateFieldType**](DefaultApi.md#CreateFieldType) | **Post** /v1/Assistants/{AssistantSid}/FieldTypes | +[**CreateFieldValue**](DefaultApi.md#CreateFieldValue) | **Post** /v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues | +[**CreateModelBuild**](DefaultApi.md#CreateModelBuild) | **Post** /v1/Assistants/{AssistantSid}/ModelBuilds | +[**CreateQuery**](DefaultApi.md#CreateQuery) | **Post** /v1/Assistants/{AssistantSid}/Queries | +[**CreateSample**](DefaultApi.md#CreateSample) | **Post** /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples | +[**CreateTask**](DefaultApi.md#CreateTask) | **Post** /v1/Assistants/{AssistantSid}/Tasks | +[**CreateWebhook**](DefaultApi.md#CreateWebhook) | **Post** /v1/Assistants/{AssistantSid}/Webhooks | +[**DeleteAssistant**](DefaultApi.md#DeleteAssistant) | **Delete** /v1/Assistants/{Sid} | +[**DeleteField**](DefaultApi.md#DeleteField) | **Delete** /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields/{Sid} | +[**DeleteFieldType**](DefaultApi.md#DeleteFieldType) | **Delete** /v1/Assistants/{AssistantSid}/FieldTypes/{Sid} | +[**DeleteFieldValue**](DefaultApi.md#DeleteFieldValue) | **Delete** /v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues/{Sid} | +[**DeleteModelBuild**](DefaultApi.md#DeleteModelBuild) | **Delete** /v1/Assistants/{AssistantSid}/ModelBuilds/{Sid} | +[**DeleteQuery**](DefaultApi.md#DeleteQuery) | **Delete** /v1/Assistants/{AssistantSid}/Queries/{Sid} | +[**DeleteSample**](DefaultApi.md#DeleteSample) | **Delete** /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid} | +[**DeleteTask**](DefaultApi.md#DeleteTask) | **Delete** /v1/Assistants/{AssistantSid}/Tasks/{Sid} | +[**DeleteWebhook**](DefaultApi.md#DeleteWebhook) | **Delete** /v1/Assistants/{AssistantSid}/Webhooks/{Sid} | +[**FetchAssistant**](DefaultApi.md#FetchAssistant) | **Get** /v1/Assistants/{Sid} | +[**FetchDefaults**](DefaultApi.md#FetchDefaults) | **Get** /v1/Assistants/{AssistantSid}/Defaults | +[**FetchDialogue**](DefaultApi.md#FetchDialogue) | **Get** /v1/Assistants/{AssistantSid}/Dialogues/{Sid} | +[**FetchField**](DefaultApi.md#FetchField) | **Get** /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields/{Sid} | +[**FetchFieldType**](DefaultApi.md#FetchFieldType) | **Get** /v1/Assistants/{AssistantSid}/FieldTypes/{Sid} | +[**FetchFieldValue**](DefaultApi.md#FetchFieldValue) | **Get** /v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues/{Sid} | +[**FetchModelBuild**](DefaultApi.md#FetchModelBuild) | **Get** /v1/Assistants/{AssistantSid}/ModelBuilds/{Sid} | +[**FetchQuery**](DefaultApi.md#FetchQuery) | **Get** /v1/Assistants/{AssistantSid}/Queries/{Sid} | +[**FetchSample**](DefaultApi.md#FetchSample) | **Get** /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid} | +[**FetchStyleSheet**](DefaultApi.md#FetchStyleSheet) | **Get** /v1/Assistants/{AssistantSid}/StyleSheet | +[**FetchTask**](DefaultApi.md#FetchTask) | **Get** /v1/Assistants/{AssistantSid}/Tasks/{Sid} | +[**FetchTaskActions**](DefaultApi.md#FetchTaskActions) | **Get** /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Actions | +[**FetchTaskStatistics**](DefaultApi.md#FetchTaskStatistics) | **Get** /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Statistics | +[**FetchWebhook**](DefaultApi.md#FetchWebhook) | **Get** /v1/Assistants/{AssistantSid}/Webhooks/{Sid} | +[**ListAssistant**](DefaultApi.md#ListAssistant) | **Get** /v1/Assistants | +[**ListField**](DefaultApi.md#ListField) | **Get** /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields | +[**ListFieldType**](DefaultApi.md#ListFieldType) | **Get** /v1/Assistants/{AssistantSid}/FieldTypes | +[**ListFieldValue**](DefaultApi.md#ListFieldValue) | **Get** /v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues | +[**ListModelBuild**](DefaultApi.md#ListModelBuild) | **Get** /v1/Assistants/{AssistantSid}/ModelBuilds | +[**ListQuery**](DefaultApi.md#ListQuery) | **Get** /v1/Assistants/{AssistantSid}/Queries | +[**ListSample**](DefaultApi.md#ListSample) | **Get** /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples | +[**ListTask**](DefaultApi.md#ListTask) | **Get** /v1/Assistants/{AssistantSid}/Tasks | +[**ListWebhook**](DefaultApi.md#ListWebhook) | **Get** /v1/Assistants/{AssistantSid}/Webhooks | +[**UpdateAssistant**](DefaultApi.md#UpdateAssistant) | **Post** /v1/Assistants/{Sid} | +[**UpdateDefaults**](DefaultApi.md#UpdateDefaults) | **Post** /v1/Assistants/{AssistantSid}/Defaults | +[**UpdateFieldType**](DefaultApi.md#UpdateFieldType) | **Post** /v1/Assistants/{AssistantSid}/FieldTypes/{Sid} | +[**UpdateModelBuild**](DefaultApi.md#UpdateModelBuild) | **Post** /v1/Assistants/{AssistantSid}/ModelBuilds/{Sid} | +[**UpdateQuery**](DefaultApi.md#UpdateQuery) | **Post** /v1/Assistants/{AssistantSid}/Queries/{Sid} | +[**UpdateRestoreAssistant**](DefaultApi.md#UpdateRestoreAssistant) | **Post** /v1/Assistants/Restore | +[**UpdateSample**](DefaultApi.md#UpdateSample) | **Post** /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid} | +[**UpdateStyleSheet**](DefaultApi.md#UpdateStyleSheet) | **Post** /v1/Assistants/{AssistantSid}/StyleSheet | +[**UpdateTask**](DefaultApi.md#UpdateTask) | **Post** /v1/Assistants/{AssistantSid}/Tasks/{Sid} | +[**UpdateTaskActions**](DefaultApi.md#UpdateTaskActions) | **Post** /v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Actions | +[**UpdateWebhook**](DefaultApi.md#UpdateWebhook) | **Post** /v1/Assistants/{AssistantSid}/Webhooks/{Sid} | + + + +## CreateAssistant + +> AutopilotV1Assistant CreateAssistant(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateAssistantOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateAssistantOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **callbackEvents** | **optional.String**| Reserved. | + **callbackUrl** | **optional.String**| Reserved. | + **defaults** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON object that defines the Assistant's [default tasks](https://www.twilio.com/docs/autopilot/api/assistant/defaults) for various scenarios, including initiation actions and fallback tasks. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It is not unique and can be up to 255 characters long. | + **logQueries** | **optional.Bool**| Whether queries should be logged and kept after training. Can be: `true` or `false` and defaults to `true`. If `true`, queries are stored for 30 days, and then deleted. If `false`, no queries are stored. | + **styleSheet** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON string that defines the Assistant's [style sheet](https://www.twilio.com/docs/autopilot/api/assistant/stylesheet) | + **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. The first 64 characters must be unique. | + +### Return type + +[**AutopilotV1Assistant**](autopilot.v1.assistant.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) + + +## CreateField + +> AutopilotV1AssistantTaskField CreateField(ctx, assistantSid, taskSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the new resource. | +**taskSid** | **string**| The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) resource associated with the new Field resource. | + **optional** | ***CreateFieldOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateFieldOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **fieldType** | **optional.String**| The Field Type of the new field. Can be: a [Built-in Field Type](https://www.twilio.com/docs/autopilot/built-in-field-types), the `unique_name`, or the `sid` of a custom Field Type. | + **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the new resource. This value must be a unique string of no more than 64 characters. It can be used as an alternative to the `sid` in the URL path to address the resource. | + +### Return type + +[**AutopilotV1AssistantTaskField**](autopilot.v1.assistant.task.field.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) + + +## CreateFieldType + +> AutopilotV1AssistantFieldType CreateFieldType(ctx, assistantSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the new resource. | + **optional** | ***CreateFieldTypeOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateFieldTypeOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **friendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It is not unique and can be up to 255 characters long. | + **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. The first 64 characters must be unique. | + +### Return type + +[**AutopilotV1AssistantFieldType**](autopilot.v1.assistant.field_type.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) + + +## CreateFieldValue + +> AutopilotV1AssistantFieldTypeFieldValue CreateFieldValue(ctx, assistantSid, fieldTypeSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the FieldType associated with the new resource. | +**fieldTypeSid** | **string**| The SID of the Field Type associated with the Field Value. | + **optional** | ***CreateFieldValueOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateFieldValueOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **language** | **optional.String**| The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) tag that specifies the language of the value. Currently supported tags: `en-US` | + **synonymOf** | **optional.String**| The string value that indicates which word the field value is a synonym of. | + **value** | **optional.String**| The Field Value data. | + +### Return type + +[**AutopilotV1AssistantFieldTypeFieldValue**](autopilot.v1.assistant.field_type.field_value.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) + + +## CreateModelBuild + +> AutopilotV1AssistantModelBuild CreateModelBuild(ctx, assistantSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the new resource. | + **optional** | ***CreateModelBuildOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateModelBuildOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **statusCallback** | **optional.String**| The URL we should call using a POST method to send status information to your application. | + **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the new resource. This value must be a unique string of no more than 64 characters. It can be used as an alternative to the `sid` in the URL path to address the resource. | + +### Return type + +[**AutopilotV1AssistantModelBuild**](autopilot.v1.assistant.model_build.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) + + +## CreateQuery + +> AutopilotV1AssistantQuery CreateQuery(ctx, assistantSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the new resource. | + **optional** | ***CreateQueryOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateQueryOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **language** | **optional.String**| The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the new query. For example: `en-US`. | + **modelBuild** | **optional.String**| The SID or unique name of the [Model Build](https://www.twilio.com/docs/autopilot/api/model-build) to be queried. | + **query** | **optional.String**| The end-user's natural language input. It can be up to 2048 characters long. | + **tasks** | **optional.String**| The list of tasks to limit the new query to. Tasks are expressed as a comma-separated list of task `unique_name` values. For example, `task-unique_name-1, task-unique_name-2`. Listing specific tasks is useful to constrain the paths that a user can take. | + +### Return type + +[**AutopilotV1AssistantQuery**](autopilot.v1.assistant.query.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) + + +## CreateSample + +> AutopilotV1AssistantTaskSample CreateSample(ctx, assistantSid, taskSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the new resource. | +**taskSid** | **string**| The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the Sample resource to create. | + **optional** | ***CreateSampleOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateSampleOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **language** | **optional.String**| The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the new sample. For example: `en-US`. | + **sourceChannel** | **optional.String**| The communication channel from which the new sample was captured. Can be: `voice`, `sms`, `chat`, `alexa`, `google-assistant`, `slack`, or null if not included. | + **taggedText** | **optional.String**| The text example of how end users might express the task. The sample can contain [Field tag blocks](https://www.twilio.com/docs/autopilot/api/task-sample#field-tagging). | + +### Return type + +[**AutopilotV1AssistantTaskSample**](autopilot.v1.assistant.task.sample.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) + + +## CreateTask + +> AutopilotV1AssistantTask CreateTask(ctx, assistantSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the new resource. | + **optional** | ***CreateTaskOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateTaskOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **actions** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON string that specifies the [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the Assistant on how to perform the task. It is optional and not unique. | + **actionsUrl** | **optional.String**| The URL from which the Assistant can fetch actions. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It is not unique and can be up to 255 characters long. | + **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. This value must be unique and 64 characters or less in length. | + +### Return type + +[**AutopilotV1AssistantTask**](autopilot.v1.assistant.task.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) + + +## CreateWebhook + +> AutopilotV1AssistantWebhook CreateWebhook(ctx, assistantSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the new resource. | + **optional** | ***CreateWebhookOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateWebhookOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **events** | **optional.String**| The list of space-separated events that this Webhook will subscribe to. | + **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. This value must be unique and 64 characters or less in length. | + **webhookMethod** | **optional.String**| The method to be used when calling the webhook's URL. | + **webhookUrl** | **optional.String**| The URL associated with this Webhook. | + +### Return type + +[**AutopilotV1AssistantWebhook**](autopilot.v1.assistant.webhook.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) + + +## DeleteAssistant + +> DeleteAssistant(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the Assistant resource to delete. | + +### 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) + + +## DeleteField + +> DeleteField(ctx, assistantSid, taskSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resources to delete. | +**taskSid** | **string**| The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) resource associated with the Field resource to delete. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Field resource to delete. | + +### 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) + + +## DeleteFieldType + +> DeleteFieldType(ctx, assistantSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to delete. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the FieldType resource to delete. | + +### 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) + + +## DeleteFieldValue + +> DeleteFieldValue(ctx, assistantSid, fieldTypeSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the FieldType associated with the resources to delete. | +**fieldTypeSid** | **string**| The SID of the Field Type associated with the Field Value to delete. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the FieldValue resource to delete. | + +### 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) + + +## DeleteModelBuild + +> DeleteModelBuild(ctx, assistantSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to delete. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the ModelBuild resource to delete. | + +### 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) + + +## DeleteQuery + +> DeleteQuery(ctx, assistantSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to delete. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Query resource to delete. | + +### 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) + + +## DeleteSample + +> DeleteSample(ctx, assistantSid, taskSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resources to delete. | +**taskSid** | **string**| The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the Sample resource to delete. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Sample resource to delete. | + +### 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) + + +## DeleteTask + +> DeleteTask(ctx, assistantSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to delete. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Task resource to delete. | + +### 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) + + +## DeleteWebhook + +> DeleteWebhook(ctx, assistantSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to delete. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Webhook resource to delete. | + +### 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) + + +## FetchAssistant + +> AutopilotV1Assistant FetchAssistant(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the Assistant resource to fetch. | + +### Return type + +[**AutopilotV1Assistant**](autopilot.v1.assistant.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) + + +## FetchDefaults + +> AutopilotV1AssistantDefaults FetchDefaults(ctx, assistantSid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. | + +### Return type + +[**AutopilotV1AssistantDefaults**](autopilot.v1.assistant.defaults.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) + + +## FetchDialogue + +> AutopilotV1AssistantDialogue FetchDialogue(ctx, assistantSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Dialogue resource to fetch. | + +### Return type + +[**AutopilotV1AssistantDialogue**](autopilot.v1.assistant.dialogue.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) + + +## FetchField + +> AutopilotV1AssistantTaskField FetchField(ctx, assistantSid, taskSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resource to fetch. | +**taskSid** | **string**| The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) resource associated with the Field resource to fetch. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Field resource to fetch. | + +### Return type + +[**AutopilotV1AssistantTaskField**](autopilot.v1.assistant.task.field.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) + + +## FetchFieldType + +> AutopilotV1AssistantFieldType FetchFieldType(ctx, assistantSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the FieldType resource to fetch. | + +### Return type + +[**AutopilotV1AssistantFieldType**](autopilot.v1.assistant.field_type.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) + + +## FetchFieldValue + +> AutopilotV1AssistantFieldTypeFieldValue FetchFieldValue(ctx, assistantSid, fieldTypeSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the FieldType associated with the resource to fetch. | +**fieldTypeSid** | **string**| The SID of the Field Type associated with the Field Value to fetch. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the FieldValue resource to fetch. | + +### Return type + +[**AutopilotV1AssistantFieldTypeFieldValue**](autopilot.v1.assistant.field_type.field_value.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) + + +## FetchModelBuild + +> AutopilotV1AssistantModelBuild FetchModelBuild(ctx, assistantSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the ModelBuild resource to fetch. | + +### Return type + +[**AutopilotV1AssistantModelBuild**](autopilot.v1.assistant.model_build.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) + + +## FetchQuery + +> AutopilotV1AssistantQuery FetchQuery(ctx, assistantSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Query resource to fetch. | + +### Return type + +[**AutopilotV1AssistantQuery**](autopilot.v1.assistant.query.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) + + +## FetchSample + +> AutopilotV1AssistantTaskSample FetchSample(ctx, assistantSid, taskSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resource to fetch. | +**taskSid** | **string**| The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the Sample resource to create. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Sample resource to fetch. | + +### Return type + +[**AutopilotV1AssistantTaskSample**](autopilot.v1.assistant.task.sample.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) + + +## FetchStyleSheet + +> AutopilotV1AssistantStyleSheet FetchStyleSheet(ctx, assistantSid) + + + +Returns Style sheet JSON object for the Assistant + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. | + +### Return type + +[**AutopilotV1AssistantStyleSheet**](autopilot.v1.assistant.style_sheet.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) + + +## FetchTask + +> AutopilotV1AssistantTask FetchTask(ctx, assistantSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Task resource to fetch. | + +### Return type + +[**AutopilotV1AssistantTask**](autopilot.v1.assistant.task.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) + + +## FetchTaskActions + +> AutopilotV1AssistantTaskTaskActions FetchTaskActions(ctx, assistantSid, taskSid) + + + +Returns JSON actions for the Task. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task for which the task actions to fetch were defined. | +**taskSid** | **string**| The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) for which the task actions to fetch were defined. | + +### Return type + +[**AutopilotV1AssistantTaskTaskActions**](autopilot.v1.assistant.task.task_actions.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) + + +## FetchTaskStatistics + +> AutopilotV1AssistantTaskTaskStatistics FetchTaskStatistics(ctx, assistantSid, taskSid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. | +**taskSid** | **string**| The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) that is associated with the resource to fetch. | + +### Return type + +[**AutopilotV1AssistantTaskTaskStatistics**](autopilot.v1.assistant.task.task_statistics.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) + + +## FetchWebhook + +> AutopilotV1AssistantWebhook FetchWebhook(ctx, assistantSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Webhook resource to fetch. | + +### Return type + +[**AutopilotV1AssistantWebhook**](autopilot.v1.assistant.webhook.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) + + +## ListAssistant + +> AutopilotV1AssistantReadResponse ListAssistant(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListAssistantOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListAssistantOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**AutopilotV1AssistantReadResponse**](autopilot_v1_assistantReadResponse.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) + + +## ListField + +> AutopilotV1AssistantTaskFieldReadResponse ListField(ctx, assistantSid, taskSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resources to read. | +**taskSid** | **string**| The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) resource associated with the Field resources to read. | + **optional** | ***ListFieldOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListFieldOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**AutopilotV1AssistantTaskFieldReadResponse**](autopilot_v1_assistant_task_fieldReadResponse.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) + + +## ListFieldType + +> AutopilotV1AssistantFieldTypeReadResponse ListFieldType(ctx, assistantSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to read. | + **optional** | ***ListFieldTypeOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListFieldTypeOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**AutopilotV1AssistantFieldTypeReadResponse**](autopilot_v1_assistant_field_typeReadResponse.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) + + +## ListFieldValue + +> AutopilotV1AssistantFieldTypeFieldValueReadResponse ListFieldValue(ctx, assistantSid, fieldTypeSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the FieldType associated with the resources to read. | +**fieldTypeSid** | **string**| The SID of the Field Type associated with the Field Value to read. | + **optional** | ***ListFieldValueOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListFieldValueOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **language** | **optional.String**| The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) tag that specifies the language of the value. Currently supported tags: `en-US` | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**AutopilotV1AssistantFieldTypeFieldValueReadResponse**](autopilot_v1_assistant_field_type_field_valueReadResponse.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) + + +## ListModelBuild + +> AutopilotV1AssistantModelBuildReadResponse ListModelBuild(ctx, assistantSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to read. | + **optional** | ***ListModelBuildOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListModelBuildOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**AutopilotV1AssistantModelBuildReadResponse**](autopilot_v1_assistant_model_buildReadResponse.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) + + +## ListQuery + +> AutopilotV1AssistantQueryReadResponse ListQuery(ctx, assistantSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to read. | + **optional** | ***ListQueryOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListQueryOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **language** | **optional.String**| The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used by the Query resources to read. For example: `en-US`. | + **modelBuild** | **optional.String**| The SID or unique name of the [Model Build](https://www.twilio.com/docs/autopilot/api/model-build) to be queried. | + **status** | **optional.String**| The status of the resources to read. Can be: `pending-review`, `reviewed`, or `discarded` | + **dialogueSid** | **optional.String**| The SID of the [Dialogue](https://www.twilio.com/docs/autopilot/api/dialogue). | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**AutopilotV1AssistantQueryReadResponse**](autopilot_v1_assistant_queryReadResponse.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) + + +## ListSample + +> AutopilotV1AssistantTaskSampleReadResponse ListSample(ctx, assistantSid, taskSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resources to read. | +**taskSid** | **string**| The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the Sample resources to read. | + **optional** | ***ListSampleOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListSampleOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **language** | **optional.String**| The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the sample. For example: `en-US`. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**AutopilotV1AssistantTaskSampleReadResponse**](autopilot_v1_assistant_task_sampleReadResponse.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) + + +## ListTask + +> AutopilotV1AssistantTaskReadResponse ListTask(ctx, assistantSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to read. | + **optional** | ***ListTaskOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListTaskOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**AutopilotV1AssistantTaskReadResponse**](autopilot_v1_assistant_taskReadResponse.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) + + +## ListWebhook + +> AutopilotV1AssistantWebhookReadResponse ListWebhook(ctx, assistantSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to read. | + **optional** | ***ListWebhookOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListWebhookOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**AutopilotV1AssistantWebhookReadResponse**](autopilot_v1_assistant_webhookReadResponse.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) + + +## UpdateAssistant + +> AutopilotV1Assistant UpdateAssistant(ctx, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the Assistant resource to update. | + **optional** | ***UpdateAssistantOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateAssistantOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **callbackEvents** | **optional.String**| Reserved. | + **callbackUrl** | **optional.String**| Reserved. | + **defaults** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON object that defines the Assistant's [default tasks](https://www.twilio.com/docs/autopilot/api/assistant/defaults) for various scenarios, including initiation actions and fallback tasks. | + **developmentStage** | **optional.String**| A string describing the state of the assistant. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | + **logQueries** | **optional.Bool**| Whether queries should be logged and kept after training. Can be: `true` or `false` and defaults to `true`. If `true`, queries are stored for 30 days, and then deleted. If `false`, no queries are stored. | + **styleSheet** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON string that defines the Assistant's [style sheet](https://www.twilio.com/docs/autopilot/api/assistant/stylesheet) | + **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used as an alternative to the `sid` in the URL path to address the resource. The first 64 characters must be unique. | + +### Return type + +[**AutopilotV1Assistant**](autopilot.v1.assistant.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) + + +## UpdateDefaults + +> AutopilotV1AssistantDefaults UpdateDefaults(ctx, assistantSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update. | + **optional** | ***UpdateDefaultsOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateDefaultsOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **defaults** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that describes the default task links for the `assistant_initiation`, `collect`, and `fallback` situations. | + +### Return type + +[**AutopilotV1AssistantDefaults**](autopilot.v1.assistant.defaults.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) + + +## UpdateFieldType + +> AutopilotV1AssistantFieldType UpdateFieldType(ctx, assistantSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the to update. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the FieldType resource to update. | + **optional** | ***UpdateFieldTypeOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateFieldTypeOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | + **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used as an alternative to the `sid` in the URL path to address the resource. The first 64 characters must be unique. | + +### Return type + +[**AutopilotV1AssistantFieldType**](autopilot.v1.assistant.field_type.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) + + +## UpdateModelBuild + +> AutopilotV1AssistantModelBuild UpdateModelBuild(ctx, assistantSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the ModelBuild resource to update. | + **optional** | ***UpdateModelBuildOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateModelBuildOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. This value must be a unique string of no more than 64 characters. It can be used as an alternative to the `sid` in the URL path to address the resource. | + +### Return type + +[**AutopilotV1AssistantModelBuild**](autopilot.v1.assistant.model_build.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) + + +## UpdateQuery + +> AutopilotV1AssistantQuery UpdateQuery(ctx, assistantSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Query resource to update. | + **optional** | ***UpdateQueryOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateQueryOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **sampleSid** | **optional.String**| The SID of an optional reference to the [Sample](https://www.twilio.com/docs/autopilot/api/task-sample) created from the query. | + **status** | **optional.String**| The new status of the resource. Can be: `pending-review`, `reviewed`, or `discarded` | + +### Return type + +[**AutopilotV1AssistantQuery**](autopilot.v1.assistant.query.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) + + +## UpdateRestoreAssistant + +> AutopilotV1RestoreAssistant UpdateRestoreAssistant(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***UpdateRestoreAssistantOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateRestoreAssistantOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **assistant** | **optional.String**| The Twilio-provided string that uniquely identifies the Assistant resource to restore. | + +### Return type + +[**AutopilotV1RestoreAssistant**](autopilot.v1.restore_assistant.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) + + +## UpdateSample + +> AutopilotV1AssistantTaskSample UpdateSample(ctx, assistantSid, taskSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resource to update. | +**taskSid** | **string**| The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the Sample resource to update. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Sample resource to update. | + **optional** | ***UpdateSampleOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateSampleOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **language** | **optional.String**| The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the sample. For example: `en-US`. | + **sourceChannel** | **optional.String**| The communication channel from which the sample was captured. Can be: `voice`, `sms`, `chat`, `alexa`, `google-assistant`, `slack`, or null if not included. | + **taggedText** | **optional.String**| The text example of how end users might express the task. The sample can contain [Field tag blocks](https://www.twilio.com/docs/autopilot/api/task-sample#field-tagging). | + +### Return type + +[**AutopilotV1AssistantTaskSample**](autopilot.v1.assistant.task.sample.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) + + +## UpdateStyleSheet + +> AutopilotV1AssistantStyleSheet UpdateStyleSheet(ctx, assistantSid, optional) + + + +Updates the style sheet for an Assistant identified by `assistant_sid`. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update. | + **optional** | ***UpdateStyleSheetOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateStyleSheetOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **styleSheet** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON string that describes the style sheet object. | + +### Return type + +[**AutopilotV1AssistantStyleSheet**](autopilot.v1.assistant.style_sheet.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) + + +## UpdateTask + +> AutopilotV1AssistantTask UpdateTask(ctx, assistantSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Task resource to update. | + **optional** | ***UpdateTaskOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateTaskOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **actions** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON string that specifies the [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the Assistant on how to perform the task. | + **actionsUrl** | **optional.String**| The URL from which the Assistant can fetch actions. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | + **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. This value must be 64 characters or less in length and be unique. It can be used as an alternative to the `sid` in the URL path to address the resource. | + +### Return type + +[**AutopilotV1AssistantTask**](autopilot.v1.assistant.task.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) + + +## UpdateTaskActions + +> AutopilotV1AssistantTaskTaskActions UpdateTaskActions(ctx, assistantSid, taskSid, optional) + + + +Updates the actions of an Task identified by {TaskSid} or {TaskUniqueName}. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task for which the task actions to update were defined. | +**taskSid** | **string**| The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) for which the task actions to update were defined. | + **optional** | ***UpdateTaskActionsOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateTaskActionsOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **actions** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON string that specifies the [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the Assistant on how to perform the task. | + +### Return type + +[**AutopilotV1AssistantTaskTaskActions**](autopilot.v1.assistant.task.task_actions.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) + + +## UpdateWebhook + +> AutopilotV1AssistantWebhook UpdateWebhook(ctx, assistantSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Webhook resource to update. | + **optional** | ***UpdateWebhookOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateWebhookOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **events** | **optional.String**| The list of space-separated events that this Webhook will subscribe to. | + **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. This value must be unique and 64 characters or less in length. | + **webhookMethod** | **optional.String**| The method to be used when calling the webhook's URL. | + **webhookUrl** | **optional.String**| The URL associated with this Webhook. | + +### Return type + +[**AutopilotV1AssistantWebhook**](autopilot.v1.assistant.webhook.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/rest/autopilot/v1/docs/UpdateAssistantRequest.md b/rest/autopilot/v1/docs/UpdateAssistantRequest.md new file mode 100644 index 000000000..233b37c77 --- /dev/null +++ b/rest/autopilot/v1/docs/UpdateAssistantRequest.md @@ -0,0 +1,18 @@ +# UpdateAssistantRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CallbackEvents** | **string** | Reserved. | [optional] +**CallbackUrl** | **string** | Reserved. | [optional] +**Defaults** | [**map[string]interface{}**](.md) | A JSON object that defines the Assistant's [default tasks](https://www.twilio.com/docs/autopilot/api/assistant/defaults) for various scenarios, including initiation actions and fallback tasks. | [optional] +**DevelopmentStage** | **string** | A string describing the state of the assistant. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | [optional] +**LogQueries** | **bool** | Whether queries should be logged and kept after training. Can be: `true` or `false` and defaults to `true`. If `true`, queries are stored for 30 days, and then deleted. If `false`, no queries are stored. | [optional] +**StyleSheet** | [**map[string]interface{}**](.md) | The JSON string that defines the Assistant's [style sheet](https://www.twilio.com/docs/autopilot/api/assistant/stylesheet) | [optional] +**UniqueName** | **string** | An application-defined string that uniquely identifies the resource. It can be used as an alternative to the `sid` in the URL path to address the resource. The first 64 characters must be unique. | [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/rest/autopilot/v1/docs/UpdateDefaultsRequest.md b/rest/autopilot/v1/docs/UpdateDefaultsRequest.md new file mode 100644 index 000000000..ce7fd1888 --- /dev/null +++ b/rest/autopilot/v1/docs/UpdateDefaultsRequest.md @@ -0,0 +1,11 @@ +# UpdateDefaultsRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Defaults** | [**map[string]interface{}**](.md) | A JSON string that describes the default task links for the `assistant_initiation`, `collect`, and `fallback` situations. | [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/rest/autopilot/v1/docs/UpdateFieldTypeRequest.md b/rest/autopilot/v1/docs/UpdateFieldTypeRequest.md new file mode 100644 index 000000000..be95ff9e8 --- /dev/null +++ b/rest/autopilot/v1/docs/UpdateFieldTypeRequest.md @@ -0,0 +1,12 @@ +# UpdateFieldTypeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | [optional] +**UniqueName** | **string** | An application-defined string that uniquely identifies the resource. It can be used as an alternative to the `sid` in the URL path to address the resource. The first 64 characters must be unique. | [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/rest/autopilot/v1/docs/UpdateModelBuildRequest.md b/rest/autopilot/v1/docs/UpdateModelBuildRequest.md new file mode 100644 index 000000000..13d8777b5 --- /dev/null +++ b/rest/autopilot/v1/docs/UpdateModelBuildRequest.md @@ -0,0 +1,11 @@ +# UpdateModelBuildRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UniqueName** | **string** | An application-defined string that uniquely identifies the resource. This value must be a unique string of no more than 64 characters. It can be used as an alternative to the `sid` in the URL path to address the 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/rest/autopilot/v1/docs/UpdateQueryRequest.md b/rest/autopilot/v1/docs/UpdateQueryRequest.md new file mode 100644 index 000000000..3670b52cf --- /dev/null +++ b/rest/autopilot/v1/docs/UpdateQueryRequest.md @@ -0,0 +1,12 @@ +# UpdateQueryRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SampleSid** | **string** | The SID of an optional reference to the [Sample](https://www.twilio.com/docs/autopilot/api/task-sample) created from the query. | [optional] +**Status** | **string** | The new status of the resource. Can be: `pending-review`, `reviewed`, or `discarded` | [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/rest/autopilot/v1/docs/UpdateRestoreAssistantRequest.md b/rest/autopilot/v1/docs/UpdateRestoreAssistantRequest.md new file mode 100644 index 000000000..a01dd56b6 --- /dev/null +++ b/rest/autopilot/v1/docs/UpdateRestoreAssistantRequest.md @@ -0,0 +1,11 @@ +# UpdateRestoreAssistantRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Assistant** | **string** | The Twilio-provided string that uniquely identifies the Assistant resource to restore. | + +[[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/rest/autopilot/v1/docs/UpdateSampleRequest.md b/rest/autopilot/v1/docs/UpdateSampleRequest.md new file mode 100644 index 000000000..c84a48fa5 --- /dev/null +++ b/rest/autopilot/v1/docs/UpdateSampleRequest.md @@ -0,0 +1,13 @@ +# UpdateSampleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Language** | **string** | The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the sample. For example: `en-US`. | [optional] +**SourceChannel** | **string** | The communication channel from which the sample was captured. Can be: `voice`, `sms`, `chat`, `alexa`, `google-assistant`, `slack`, or null if not included. | [optional] +**TaggedText** | **string** | The text example of how end users might express the task. The sample can contain [Field tag blocks](https://www.twilio.com/docs/autopilot/api/task-sample#field-tagging). | [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/rest/autopilot/v1/docs/UpdateStyleSheetRequest.md b/rest/autopilot/v1/docs/UpdateStyleSheetRequest.md new file mode 100644 index 000000000..e30a6f646 --- /dev/null +++ b/rest/autopilot/v1/docs/UpdateStyleSheetRequest.md @@ -0,0 +1,11 @@ +# UpdateStyleSheetRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StyleSheet** | [**map[string]interface{}**](.md) | The JSON string that describes the style sheet object. | [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/rest/autopilot/v1/docs/UpdateTaskActionsRequest.md b/rest/autopilot/v1/docs/UpdateTaskActionsRequest.md new file mode 100644 index 000000000..1eb5946fb --- /dev/null +++ b/rest/autopilot/v1/docs/UpdateTaskActionsRequest.md @@ -0,0 +1,11 @@ +# UpdateTaskActionsRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Actions** | [**map[string]interface{}**](.md) | The JSON string that specifies the [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the Assistant on how to perform the task. | [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/rest/autopilot/v1/docs/UpdateTaskRequest.md b/rest/autopilot/v1/docs/UpdateTaskRequest.md new file mode 100644 index 000000000..24b7ecba7 --- /dev/null +++ b/rest/autopilot/v1/docs/UpdateTaskRequest.md @@ -0,0 +1,14 @@ +# UpdateTaskRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Actions** | [**map[string]interface{}**](.md) | The JSON string that specifies the [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the Assistant on how to perform the task. | [optional] +**ActionsUrl** | **string** | The URL from which the Assistant can fetch actions. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | [optional] +**UniqueName** | **string** | An application-defined string that uniquely identifies the resource. This value must be 64 characters or less in length and be unique. It can be used as an alternative to the `sid` in the URL path to address the 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/rest/autopilot/v1/docs/UpdateWebhookRequest.md b/rest/autopilot/v1/docs/UpdateWebhookRequest.md new file mode 100644 index 000000000..ff9c93965 --- /dev/null +++ b/rest/autopilot/v1/docs/UpdateWebhookRequest.md @@ -0,0 +1,14 @@ +# UpdateWebhookRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Events** | **string** | The list of space-separated events that this Webhook will subscribe to. | [optional] +**UniqueName** | **string** | An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. This value must be unique and 64 characters or less in length. | [optional] +**WebhookMethod** | **string** | The method to be used when calling the webhook's URL. | [optional] +**WebhookUrl** | **string** | The URL associated with this Webhook. | [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/rest/autopilot/v1/model_autopilot_v1_assistant.go b/rest/autopilot/v1/model_autopilot_v1_assistant.go new file mode 100644 index 000000000..0cdaf2049 --- /dev/null +++ b/rest/autopilot/v1/model_autopilot_v1_assistant.go @@ -0,0 +1,31 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// AutopilotV1Assistant struct for AutopilotV1Assistant +type AutopilotV1Assistant struct { + AccountSid string `json:"account_sid,omitempty"` + CallbackEvents string `json:"callback_events,omitempty"` + CallbackUrl string `json:"callback_url,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + DevelopmentStage string `json:"development_stage,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + LatestModelBuildSid string `json:"latest_model_build_sid,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + LogQueries bool `json:"log_queries,omitempty"` + NeedsModelBuild bool `json:"needs_model_build,omitempty"` + Sid string `json:"sid,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_defaults.go b/rest/autopilot/v1/model_autopilot_v1_assistant_defaults.go new file mode 100644 index 000000000..6c90d6fe5 --- /dev/null +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_defaults.go @@ -0,0 +1,18 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// AutopilotV1AssistantDefaults struct for AutopilotV1AssistantDefaults +type AutopilotV1AssistantDefaults struct { + AccountSid string `json:"account_sid,omitempty"` + AssistantSid string `json:"assistant_sid,omitempty"` + Data map[string]interface{} `json:"data,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_dialogue.go b/rest/autopilot/v1/model_autopilot_v1_assistant_dialogue.go new file mode 100644 index 000000000..587d0dec1 --- /dev/null +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_dialogue.go @@ -0,0 +1,19 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// AutopilotV1AssistantDialogue struct for AutopilotV1AssistantDialogue +type AutopilotV1AssistantDialogue struct { + AccountSid string `json:"account_sid,omitempty"` + AssistantSid string `json:"assistant_sid,omitempty"` + Data map[string]interface{} `json:"data,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_field_type.go b/rest/autopilot/v1/model_autopilot_v1_assistant_field_type.go new file mode 100644 index 000000000..c5cf9ba98 --- /dev/null +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_field_type.go @@ -0,0 +1,26 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// AutopilotV1AssistantFieldType struct for AutopilotV1AssistantFieldType +type AutopilotV1AssistantFieldType struct { + AccountSid string `json:"account_sid,omitempty"` + AssistantSid string `json:"assistant_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Sid string `json:"sid,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_field_type_field_value.go b/rest/autopilot/v1/model_autopilot_v1_assistant_field_type_field_value.go new file mode 100644 index 000000000..20f0a5582 --- /dev/null +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_field_type_field_value.go @@ -0,0 +1,27 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// AutopilotV1AssistantFieldTypeFieldValue struct for AutopilotV1AssistantFieldTypeFieldValue +type AutopilotV1AssistantFieldTypeFieldValue struct { + AccountSid string `json:"account_sid,omitempty"` + AssistantSid string `json:"assistant_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FieldTypeSid string `json:"field_type_sid,omitempty"` + Language string `json:"language,omitempty"` + Sid string `json:"sid,omitempty"` + SynonymOf string `json:"synonym_of,omitempty"` + Url string `json:"url,omitempty"` + Value string `json:"value,omitempty"` +} diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_field_type_field_value_read_response.go b/rest/autopilot/v1/model_autopilot_v1_assistant_field_type_field_value_read_response.go new file mode 100644 index 000000000..59af8ff31 --- /dev/null +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_field_type_field_value_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// AutopilotV1AssistantFieldTypeFieldValueReadResponse struct for AutopilotV1AssistantFieldTypeFieldValueReadResponse +type AutopilotV1AssistantFieldTypeFieldValueReadResponse struct { + FieldValues []AutopilotV1AssistantFieldTypeFieldValue `json:"field_values,omitempty"` + Meta AutopilotV1AssistantReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_field_type_read_response.go b/rest/autopilot/v1/model_autopilot_v1_assistant_field_type_read_response.go new file mode 100644 index 000000000..2039c72ab --- /dev/null +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_field_type_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// AutopilotV1AssistantFieldTypeReadResponse struct for AutopilotV1AssistantFieldTypeReadResponse +type AutopilotV1AssistantFieldTypeReadResponse struct { + FieldTypes []AutopilotV1AssistantFieldType `json:"field_types,omitempty"` + Meta AutopilotV1AssistantReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_model_build.go b/rest/autopilot/v1/model_autopilot_v1_assistant_model_build.go new file mode 100644 index 000000000..e3dd7e630 --- /dev/null +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_model_build.go @@ -0,0 +1,27 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// AutopilotV1AssistantModelBuild struct for AutopilotV1AssistantModelBuild +type AutopilotV1AssistantModelBuild struct { + AccountSid string `json:"account_sid,omitempty"` + AssistantSid string `json:"assistant_sid,omitempty"` + BuildDuration *int32 `json:"build_duration,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + ErrorCode *int32 `json:"error_code,omitempty"` + Sid string `json:"sid,omitempty"` + Status string `json:"status,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_model_build_read_response.go b/rest/autopilot/v1/model_autopilot_v1_assistant_model_build_read_response.go new file mode 100644 index 000000000..a2cd52258 --- /dev/null +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_model_build_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// AutopilotV1AssistantModelBuildReadResponse struct for AutopilotV1AssistantModelBuildReadResponse +type AutopilotV1AssistantModelBuildReadResponse struct { + Meta AutopilotV1AssistantReadResponseMeta `json:"meta,omitempty"` + ModelBuilds []AutopilotV1AssistantModelBuild `json:"model_builds,omitempty"` +} diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_query.go b/rest/autopilot/v1/model_autopilot_v1_assistant_query.go new file mode 100644 index 000000000..f8f145a7f --- /dev/null +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_query.go @@ -0,0 +1,31 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// AutopilotV1AssistantQuery struct for AutopilotV1AssistantQuery +type AutopilotV1AssistantQuery struct { + AccountSid string `json:"account_sid,omitempty"` + AssistantSid string `json:"assistant_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + DialogueSid string `json:"dialogue_sid,omitempty"` + Language string `json:"language,omitempty"` + ModelBuildSid string `json:"model_build_sid,omitempty"` + Query string `json:"query,omitempty"` + Results map[string]interface{} `json:"results,omitempty"` + SampleSid string `json:"sample_sid,omitempty"` + Sid string `json:"sid,omitempty"` + SourceChannel string `json:"source_channel,omitempty"` + Status string `json:"status,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_query_read_response.go b/rest/autopilot/v1/model_autopilot_v1_assistant_query_read_response.go new file mode 100644 index 000000000..60736063a --- /dev/null +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_query_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// AutopilotV1AssistantQueryReadResponse struct for AutopilotV1AssistantQueryReadResponse +type AutopilotV1AssistantQueryReadResponse struct { + Meta AutopilotV1AssistantReadResponseMeta `json:"meta,omitempty"` + Queries []AutopilotV1AssistantQuery `json:"queries,omitempty"` +} diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_read_response.go b/rest/autopilot/v1/model_autopilot_v1_assistant_read_response.go new file mode 100644 index 000000000..0c86431e8 --- /dev/null +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// AutopilotV1AssistantReadResponse struct for AutopilotV1AssistantReadResponse +type AutopilotV1AssistantReadResponse struct { + Assistants []AutopilotV1Assistant `json:"assistants,omitempty"` + Meta AutopilotV1AssistantReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_read_response_meta.go b/rest/autopilot/v1/model_autopilot_v1_assistant_read_response_meta.go new file mode 100644 index 000000000..297985c3b --- /dev/null +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_read_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// AutopilotV1AssistantReadResponseMeta struct for AutopilotV1AssistantReadResponseMeta +type AutopilotV1AssistantReadResponseMeta struct { + FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` + NextPageUrl string `json:"next_page_url,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUrl string `json:"previous_page_url,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_style_sheet.go b/rest/autopilot/v1/model_autopilot_v1_assistant_style_sheet.go new file mode 100644 index 000000000..4e4a4021c --- /dev/null +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_style_sheet.go @@ -0,0 +1,18 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// AutopilotV1AssistantStyleSheet struct for AutopilotV1AssistantStyleSheet +type AutopilotV1AssistantStyleSheet struct { + AccountSid string `json:"account_sid,omitempty"` + AssistantSid string `json:"assistant_sid,omitempty"` + Data map[string]interface{} `json:"data,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_task.go b/rest/autopilot/v1/model_autopilot_v1_assistant_task.go new file mode 100644 index 000000000..6ef8e9cdd --- /dev/null +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_task.go @@ -0,0 +1,27 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// AutopilotV1AssistantTask struct for AutopilotV1AssistantTask +type AutopilotV1AssistantTask struct { + AccountSid string `json:"account_sid,omitempty"` + ActionsUrl string `json:"actions_url,omitempty"` + AssistantSid string `json:"assistant_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Sid string `json:"sid,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_task_field.go b/rest/autopilot/v1/model_autopilot_v1_assistant_task_field.go new file mode 100644 index 000000000..61247df36 --- /dev/null +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_task_field.go @@ -0,0 +1,26 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// AutopilotV1AssistantTaskField struct for AutopilotV1AssistantTaskField +type AutopilotV1AssistantTaskField struct { + AccountSid string `json:"account_sid,omitempty"` + AssistantSid string `json:"assistant_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FieldType string `json:"field_type,omitempty"` + Sid string `json:"sid,omitempty"` + TaskSid string `json:"task_sid,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_task_field_read_response.go b/rest/autopilot/v1/model_autopilot_v1_assistant_task_field_read_response.go new file mode 100644 index 000000000..4c59efc93 --- /dev/null +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_task_field_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// AutopilotV1AssistantTaskFieldReadResponse struct for AutopilotV1AssistantTaskFieldReadResponse +type AutopilotV1AssistantTaskFieldReadResponse struct { + Fields []AutopilotV1AssistantTaskField `json:"fields,omitempty"` + Meta AutopilotV1AssistantReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_task_read_response.go b/rest/autopilot/v1/model_autopilot_v1_assistant_task_read_response.go new file mode 100644 index 000000000..b9ce79047 --- /dev/null +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_task_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// AutopilotV1AssistantTaskReadResponse struct for AutopilotV1AssistantTaskReadResponse +type AutopilotV1AssistantTaskReadResponse struct { + Meta AutopilotV1AssistantReadResponseMeta `json:"meta,omitempty"` + Tasks []AutopilotV1AssistantTask `json:"tasks,omitempty"` +} diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_task_sample.go b/rest/autopilot/v1/model_autopilot_v1_assistant_task_sample.go new file mode 100644 index 000000000..87650f28a --- /dev/null +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_task_sample.go @@ -0,0 +1,27 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// AutopilotV1AssistantTaskSample struct for AutopilotV1AssistantTaskSample +type AutopilotV1AssistantTaskSample struct { + AccountSid string `json:"account_sid,omitempty"` + AssistantSid string `json:"assistant_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Language string `json:"language,omitempty"` + Sid string `json:"sid,omitempty"` + SourceChannel string `json:"source_channel,omitempty"` + TaggedText string `json:"tagged_text,omitempty"` + TaskSid string `json:"task_sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_task_sample_read_response.go b/rest/autopilot/v1/model_autopilot_v1_assistant_task_sample_read_response.go new file mode 100644 index 000000000..69558c673 --- /dev/null +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_task_sample_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// AutopilotV1AssistantTaskSampleReadResponse struct for AutopilotV1AssistantTaskSampleReadResponse +type AutopilotV1AssistantTaskSampleReadResponse struct { + Meta AutopilotV1AssistantReadResponseMeta `json:"meta,omitempty"` + Samples []AutopilotV1AssistantTaskSample `json:"samples,omitempty"` +} diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_task_task_actions.go b/rest/autopilot/v1/model_autopilot_v1_assistant_task_task_actions.go new file mode 100644 index 000000000..aecddfb85 --- /dev/null +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_task_task_actions.go @@ -0,0 +1,19 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// AutopilotV1AssistantTaskTaskActions struct for AutopilotV1AssistantTaskTaskActions +type AutopilotV1AssistantTaskTaskActions struct { + AccountSid string `json:"account_sid,omitempty"` + AssistantSid string `json:"assistant_sid,omitempty"` + Data map[string]interface{} `json:"data,omitempty"` + TaskSid string `json:"task_sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_task_task_statistics.go b/rest/autopilot/v1/model_autopilot_v1_assistant_task_task_statistics.go new file mode 100644 index 000000000..f371b65f4 --- /dev/null +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_task_task_statistics.go @@ -0,0 +1,20 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// AutopilotV1AssistantTaskTaskStatistics struct for AutopilotV1AssistantTaskTaskStatistics +type AutopilotV1AssistantTaskTaskStatistics struct { + AccountSid string `json:"account_sid,omitempty"` + AssistantSid string `json:"assistant_sid,omitempty"` + FieldsCount int32 `json:"fields_count,omitempty"` + SamplesCount int32 `json:"samples_count,omitempty"` + TaskSid string `json:"task_sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_webhook.go b/rest/autopilot/v1/model_autopilot_v1_assistant_webhook.go new file mode 100644 index 000000000..afa8625fd --- /dev/null +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_webhook.go @@ -0,0 +1,27 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// AutopilotV1AssistantWebhook struct for AutopilotV1AssistantWebhook +type AutopilotV1AssistantWebhook struct { + AccountSid string `json:"account_sid,omitempty"` + AssistantSid string `json:"assistant_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Events string `json:"events,omitempty"` + Sid string `json:"sid,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` + WebhookMethod string `json:"webhook_method,omitempty"` + WebhookUrl string `json:"webhook_url,omitempty"` +} diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_webhook_read_response.go b/rest/autopilot/v1/model_autopilot_v1_assistant_webhook_read_response.go new file mode 100644 index 000000000..29a703144 --- /dev/null +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_webhook_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// AutopilotV1AssistantWebhookReadResponse struct for AutopilotV1AssistantWebhookReadResponse +type AutopilotV1AssistantWebhookReadResponse struct { + Meta AutopilotV1AssistantReadResponseMeta `json:"meta,omitempty"` + Webhooks []AutopilotV1AssistantWebhook `json:"webhooks,omitempty"` +} diff --git a/rest/autopilot/v1/model_autopilot_v1_restore_assistant.go b/rest/autopilot/v1/model_autopilot_v1_restore_assistant.go new file mode 100644 index 000000000..7fbc43a7a --- /dev/null +++ b/rest/autopilot/v1/model_autopilot_v1_restore_assistant.go @@ -0,0 +1,29 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// AutopilotV1RestoreAssistant struct for AutopilotV1RestoreAssistant +type AutopilotV1RestoreAssistant struct { + AccountSid string `json:"account_sid,omitempty"` + CallbackEvents string `json:"callback_events,omitempty"` + CallbackUrl string `json:"callback_url,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + DevelopmentStage string `json:"development_stage,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + LatestModelBuildSid string `json:"latest_model_build_sid,omitempty"` + LogQueries bool `json:"log_queries,omitempty"` + NeedsModelBuild bool `json:"needs_model_build,omitempty"` + Sid string `json:"sid,omitempty"` + UniqueName string `json:"unique_name,omitempty"` +} diff --git a/rest/autopilot/v1/model_create_assistant_request.go b/rest/autopilot/v1/model_create_assistant_request.go new file mode 100644 index 000000000..bc676b6e0 --- /dev/null +++ b/rest/autopilot/v1/model_create_assistant_request.go @@ -0,0 +1,28 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateAssistantRequest struct for CreateAssistantRequest +type CreateAssistantRequest struct { + // Reserved. + CallbackEvents string `json:"CallbackEvents,omitempty"` + // Reserved. + CallbackUrl string `json:"CallbackUrl,omitempty"` + // A JSON object that defines the Assistant's [default tasks](https://www.twilio.com/docs/autopilot/api/assistant/defaults) for various scenarios, including initiation actions and fallback tasks. + Defaults map[string]interface{} `json:"Defaults,omitempty"` + // A descriptive string that you create to describe the new resource. It is not unique and can be up to 255 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // Whether queries should be logged and kept after training. Can be: `true` or `false` and defaults to `true`. If `true`, queries are stored for 30 days, and then deleted. If `false`, no queries are stored. + LogQueries bool `json:"LogQueries,omitempty"` + // The JSON string that defines the Assistant's [style sheet](https://www.twilio.com/docs/autopilot/api/assistant/stylesheet) + StyleSheet map[string]interface{} `json:"StyleSheet,omitempty"` + // An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. The first 64 characters must be unique. + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/autopilot/v1/model_create_field_request.go b/rest/autopilot/v1/model_create_field_request.go new file mode 100644 index 000000000..93b1994de --- /dev/null +++ b/rest/autopilot/v1/model_create_field_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateFieldRequest struct for CreateFieldRequest +type CreateFieldRequest struct { + // The Field Type of the new field. Can be: a [Built-in Field Type](https://www.twilio.com/docs/autopilot/built-in-field-types), the `unique_name`, or the `sid` of a custom Field Type. + FieldType string `json:"FieldType"` + // An application-defined string that uniquely identifies the new resource. This value must be a unique string of no more than 64 characters. It can be used as an alternative to the `sid` in the URL path to address the resource. + UniqueName string `json:"UniqueName"` +} diff --git a/rest/autopilot/v1/model_create_field_type_request.go b/rest/autopilot/v1/model_create_field_type_request.go new file mode 100644 index 000000000..ce0c6715f --- /dev/null +++ b/rest/autopilot/v1/model_create_field_type_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateFieldTypeRequest struct for CreateFieldTypeRequest +type CreateFieldTypeRequest struct { + // A descriptive string that you create to describe the new resource. It is not unique and can be up to 255 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. The first 64 characters must be unique. + UniqueName string `json:"UniqueName"` +} diff --git a/rest/autopilot/v1/model_create_field_value_request.go b/rest/autopilot/v1/model_create_field_value_request.go new file mode 100644 index 000000000..3be12afb1 --- /dev/null +++ b/rest/autopilot/v1/model_create_field_value_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateFieldValueRequest struct for CreateFieldValueRequest +type CreateFieldValueRequest struct { + // The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) tag that specifies the language of the value. Currently supported tags: `en-US` + Language string `json:"Language"` + // The string value that indicates which word the field value is a synonym of. + SynonymOf string `json:"SynonymOf,omitempty"` + // The Field Value data. + Value string `json:"Value"` +} diff --git a/rest/autopilot/v1/model_create_model_build_request.go b/rest/autopilot/v1/model_create_model_build_request.go new file mode 100644 index 000000000..aa41c573a --- /dev/null +++ b/rest/autopilot/v1/model_create_model_build_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateModelBuildRequest struct for CreateModelBuildRequest +type CreateModelBuildRequest struct { + // The URL we should call using a POST method to send status information to your application. + StatusCallback string `json:"StatusCallback,omitempty"` + // An application-defined string that uniquely identifies the new resource. This value must be a unique string of no more than 64 characters. It can be used as an alternative to the `sid` in the URL path to address the resource. + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/autopilot/v1/model_create_query_request.go b/rest/autopilot/v1/model_create_query_request.go new file mode 100644 index 000000000..dcb8a6488 --- /dev/null +++ b/rest/autopilot/v1/model_create_query_request.go @@ -0,0 +1,22 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateQueryRequest struct for CreateQueryRequest +type CreateQueryRequest struct { + // The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the new query. For example: `en-US`. + Language string `json:"Language"` + // The SID or unique name of the [Model Build](https://www.twilio.com/docs/autopilot/api/model-build) to be queried. + ModelBuild string `json:"ModelBuild,omitempty"` + // The end-user's natural language input. It can be up to 2048 characters long. + Query string `json:"Query"` + // The list of tasks to limit the new query to. Tasks are expressed as a comma-separated list of task `unique_name` values. For example, `task-unique_name-1, task-unique_name-2`. Listing specific tasks is useful to constrain the paths that a user can take. + Tasks string `json:"Tasks,omitempty"` +} diff --git a/rest/autopilot/v1/model_create_sample_request.go b/rest/autopilot/v1/model_create_sample_request.go new file mode 100644 index 000000000..5f0668b7b --- /dev/null +++ b/rest/autopilot/v1/model_create_sample_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateSampleRequest struct for CreateSampleRequest +type CreateSampleRequest struct { + // The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the new sample. For example: `en-US`. + Language string `json:"Language"` + // The communication channel from which the new sample was captured. Can be: `voice`, `sms`, `chat`, `alexa`, `google-assistant`, `slack`, or null if not included. + SourceChannel string `json:"SourceChannel,omitempty"` + // The text example of how end users might express the task. The sample can contain [Field tag blocks](https://www.twilio.com/docs/autopilot/api/task-sample#field-tagging). + TaggedText string `json:"TaggedText"` +} diff --git a/rest/autopilot/v1/model_create_task_request.go b/rest/autopilot/v1/model_create_task_request.go new file mode 100644 index 000000000..bb30e7979 --- /dev/null +++ b/rest/autopilot/v1/model_create_task_request.go @@ -0,0 +1,22 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateTaskRequest struct for CreateTaskRequest +type CreateTaskRequest struct { + // The JSON string that specifies the [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the Assistant on how to perform the task. It is optional and not unique. + Actions map[string]interface{} `json:"Actions,omitempty"` + // The URL from which the Assistant can fetch actions. + ActionsUrl string `json:"ActionsUrl,omitempty"` + // A descriptive string that you create to describe the new resource. It is not unique and can be up to 255 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. This value must be unique and 64 characters or less in length. + UniqueName string `json:"UniqueName"` +} diff --git a/rest/autopilot/v1/model_create_webhook_request.go b/rest/autopilot/v1/model_create_webhook_request.go new file mode 100644 index 000000000..c653c5d34 --- /dev/null +++ b/rest/autopilot/v1/model_create_webhook_request.go @@ -0,0 +1,22 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateWebhookRequest struct for CreateWebhookRequest +type CreateWebhookRequest struct { + // The list of space-separated events that this Webhook will subscribe to. + Events string `json:"Events"` + // An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. This value must be unique and 64 characters or less in length. + UniqueName string `json:"UniqueName"` + // The method to be used when calling the webhook's URL. + WebhookMethod string `json:"WebhookMethod,omitempty"` + // The URL associated with this Webhook. + WebhookUrl string `json:"WebhookUrl"` +} diff --git a/rest/autopilot/v1/model_update_assistant_request.go b/rest/autopilot/v1/model_update_assistant_request.go new file mode 100644 index 000000000..4d718644d --- /dev/null +++ b/rest/autopilot/v1/model_update_assistant_request.go @@ -0,0 +1,30 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateAssistantRequest struct for UpdateAssistantRequest +type UpdateAssistantRequest struct { + // Reserved. + CallbackEvents string `json:"CallbackEvents,omitempty"` + // Reserved. + CallbackUrl string `json:"CallbackUrl,omitempty"` + // A JSON object that defines the Assistant's [default tasks](https://www.twilio.com/docs/autopilot/api/assistant/defaults) for various scenarios, including initiation actions and fallback tasks. + Defaults map[string]interface{} `json:"Defaults,omitempty"` + // A string describing the state of the assistant. + DevelopmentStage string `json:"DevelopmentStage,omitempty"` + // A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // Whether queries should be logged and kept after training. Can be: `true` or `false` and defaults to `true`. If `true`, queries are stored for 30 days, and then deleted. If `false`, no queries are stored. + LogQueries bool `json:"LogQueries,omitempty"` + // The JSON string that defines the Assistant's [style sheet](https://www.twilio.com/docs/autopilot/api/assistant/stylesheet) + StyleSheet map[string]interface{} `json:"StyleSheet,omitempty"` + // An application-defined string that uniquely identifies the resource. It can be used as an alternative to the `sid` in the URL path to address the resource. The first 64 characters must be unique. + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/autopilot/v1/model_update_defaults_request.go b/rest/autopilot/v1/model_update_defaults_request.go new file mode 100644 index 000000000..302ca25c8 --- /dev/null +++ b/rest/autopilot/v1/model_update_defaults_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateDefaultsRequest struct for UpdateDefaultsRequest +type UpdateDefaultsRequest struct { + // A JSON string that describes the default task links for the `assistant_initiation`, `collect`, and `fallback` situations. + Defaults map[string]interface{} `json:"Defaults,omitempty"` +} diff --git a/rest/autopilot/v1/model_update_field_type_request.go b/rest/autopilot/v1/model_update_field_type_request.go new file mode 100644 index 000000000..59bc3c04b --- /dev/null +++ b/rest/autopilot/v1/model_update_field_type_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateFieldTypeRequest struct for UpdateFieldTypeRequest +type UpdateFieldTypeRequest struct { + // A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // An application-defined string that uniquely identifies the resource. It can be used as an alternative to the `sid` in the URL path to address the resource. The first 64 characters must be unique. + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/autopilot/v1/model_update_model_build_request.go b/rest/autopilot/v1/model_update_model_build_request.go new file mode 100644 index 000000000..47ea5d57d --- /dev/null +++ b/rest/autopilot/v1/model_update_model_build_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateModelBuildRequest struct for UpdateModelBuildRequest +type UpdateModelBuildRequest struct { + // An application-defined string that uniquely identifies the resource. This value must be a unique string of no more than 64 characters. It can be used as an alternative to the `sid` in the URL path to address the resource. + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/autopilot/v1/model_update_query_request.go b/rest/autopilot/v1/model_update_query_request.go new file mode 100644 index 000000000..efb19a828 --- /dev/null +++ b/rest/autopilot/v1/model_update_query_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateQueryRequest struct for UpdateQueryRequest +type UpdateQueryRequest struct { + // The SID of an optional reference to the [Sample](https://www.twilio.com/docs/autopilot/api/task-sample) created from the query. + SampleSid string `json:"SampleSid,omitempty"` + // The new status of the resource. Can be: `pending-review`, `reviewed`, or `discarded` + Status string `json:"Status,omitempty"` +} diff --git a/rest/autopilot/v1/model_update_restore_assistant_request.go b/rest/autopilot/v1/model_update_restore_assistant_request.go new file mode 100644 index 000000000..3fd6dbba3 --- /dev/null +++ b/rest/autopilot/v1/model_update_restore_assistant_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateRestoreAssistantRequest struct for UpdateRestoreAssistantRequest +type UpdateRestoreAssistantRequest struct { + // The Twilio-provided string that uniquely identifies the Assistant resource to restore. + Assistant string `json:"Assistant"` +} diff --git a/rest/autopilot/v1/model_update_sample_request.go b/rest/autopilot/v1/model_update_sample_request.go new file mode 100644 index 000000000..e0694f8b7 --- /dev/null +++ b/rest/autopilot/v1/model_update_sample_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateSampleRequest struct for UpdateSampleRequest +type UpdateSampleRequest struct { + // The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the sample. For example: `en-US`. + Language string `json:"Language,omitempty"` + // The communication channel from which the sample was captured. Can be: `voice`, `sms`, `chat`, `alexa`, `google-assistant`, `slack`, or null if not included. + SourceChannel string `json:"SourceChannel,omitempty"` + // The text example of how end users might express the task. The sample can contain [Field tag blocks](https://www.twilio.com/docs/autopilot/api/task-sample#field-tagging). + TaggedText string `json:"TaggedText,omitempty"` +} diff --git a/rest/autopilot/v1/model_update_style_sheet_request.go b/rest/autopilot/v1/model_update_style_sheet_request.go new file mode 100644 index 000000000..1b70e7bcc --- /dev/null +++ b/rest/autopilot/v1/model_update_style_sheet_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateStyleSheetRequest struct for UpdateStyleSheetRequest +type UpdateStyleSheetRequest struct { + // The JSON string that describes the style sheet object. + StyleSheet map[string]interface{} `json:"StyleSheet,omitempty"` +} diff --git a/rest/autopilot/v1/model_update_task_actions_request.go b/rest/autopilot/v1/model_update_task_actions_request.go new file mode 100644 index 000000000..a60f65f06 --- /dev/null +++ b/rest/autopilot/v1/model_update_task_actions_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateTaskActionsRequest struct for UpdateTaskActionsRequest +type UpdateTaskActionsRequest struct { + // The JSON string that specifies the [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the Assistant on how to perform the task. + Actions map[string]interface{} `json:"Actions,omitempty"` +} diff --git a/rest/autopilot/v1/model_update_task_request.go b/rest/autopilot/v1/model_update_task_request.go new file mode 100644 index 000000000..5e15f001e --- /dev/null +++ b/rest/autopilot/v1/model_update_task_request.go @@ -0,0 +1,22 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateTaskRequest struct for UpdateTaskRequest +type UpdateTaskRequest struct { + // The JSON string that specifies the [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the Assistant on how to perform the task. + Actions map[string]interface{} `json:"Actions,omitempty"` + // The URL from which the Assistant can fetch actions. + ActionsUrl string `json:"ActionsUrl,omitempty"` + // A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // An application-defined string that uniquely identifies the resource. This value must be 64 characters or less in length and be unique. It can be used as an alternative to the `sid` in the URL path to address the resource. + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/autopilot/v1/model_update_webhook_request.go b/rest/autopilot/v1/model_update_webhook_request.go new file mode 100644 index 000000000..3bb1f8b90 --- /dev/null +++ b/rest/autopilot/v1/model_update_webhook_request.go @@ -0,0 +1,22 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateWebhookRequest struct for UpdateWebhookRequest +type UpdateWebhookRequest struct { + // The list of space-separated events that this Webhook will subscribe to. + Events string `json:"Events,omitempty"` + // An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. This value must be unique and 64 characters or less in length. + UniqueName string `json:"UniqueName,omitempty"` + // The method to be used when calling the webhook's URL. + WebhookMethod string `json:"WebhookMethod,omitempty"` + // The URL associated with this Webhook. + WebhookUrl string `json:"WebhookUrl,omitempty"` +} diff --git a/rest/autopilot/v1/response.go b/rest/autopilot/v1/response.go new file mode 100644 index 000000000..52a3382eb --- /dev/null +++ b/rest/autopilot/v1/response.go @@ -0,0 +1,47 @@ +/* + * Twilio - Autopilot + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// Response returns a new APIResponse object. +func Response(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// ResponseWithError returns a new APIResponse object with the provided error message. +func ResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/rest/bulkexports/v1/.openapi-generator-ignore b/rest/bulkexports/v1/.openapi-generator-ignore new file mode 100644 index 000000000..7484ee590 --- /dev/null +++ b/rest/bulkexports/v1/.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/rest/bulkexports/v1/.openapi-generator/VERSION b/rest/bulkexports/v1/.openapi-generator/VERSION new file mode 100644 index 000000000..ecedc98d1 --- /dev/null +++ b/rest/bulkexports/v1/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.3.1 \ No newline at end of file diff --git a/rest/bulkexports/v1/README.md b/rest/bulkexports/v1/README.md new file mode 100644 index 000000000..81d9096e2 --- /dev/null +++ b/rest/bulkexports/v1/README.md @@ -0,0 +1,82 @@ +# Go API client for openapi + +This is the public Twilio REST API. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 5.15.0 +- Package version: 1.0.0 +- Build package: com.twilio.oai.TwilioGoGenerator +For more information, please visit [https://support.twilio.com](https://support.twilio.com) + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import "./openapi" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**CreateExportCustomJob**](docs/DefaultApi.md#createexportcustomjob) | **Post** /v1/Exports/{ResourceType}/Jobs | +*DefaultApi* | [**DeleteJob**](docs/DefaultApi.md#deletejob) | **Delete** /v1/Exports/Jobs/{JobSid} | +*DefaultApi* | [**FetchDay**](docs/DefaultApi.md#fetchday) | **Get** /v1/Exports/{ResourceType}/Days/{Day} | +*DefaultApi* | [**FetchExport**](docs/DefaultApi.md#fetchexport) | **Get** /v1/Exports/{ResourceType} | +*DefaultApi* | [**FetchExportConfiguration**](docs/DefaultApi.md#fetchexportconfiguration) | **Get** /v1/Exports/{ResourceType}/Configuration | +*DefaultApi* | [**FetchJob**](docs/DefaultApi.md#fetchjob) | **Get** /v1/Exports/Jobs/{JobSid} | +*DefaultApi* | [**ListDay**](docs/DefaultApi.md#listday) | **Get** /v1/Exports/{ResourceType}/Days | +*DefaultApi* | [**ListExportCustomJob**](docs/DefaultApi.md#listexportcustomjob) | **Get** /v1/Exports/{ResourceType}/Jobs | +*DefaultApi* | [**UpdateExportConfiguration**](docs/DefaultApi.md#updateexportconfiguration) | **Post** /v1/Exports/{ResourceType}/Configuration | + + +## Documentation For Models + + - [BulkexportsV1Export](docs/BulkexportsV1Export.md) + - [BulkexportsV1ExportConfiguration](docs/BulkexportsV1ExportConfiguration.md) + - [BulkexportsV1ExportDay](docs/BulkexportsV1ExportDay.md) + - [BulkexportsV1ExportDayInstance](docs/BulkexportsV1ExportDayInstance.md) + - [BulkexportsV1ExportDayReadResponse](docs/BulkexportsV1ExportDayReadResponse.md) + - [BulkexportsV1ExportDayReadResponseMeta](docs/BulkexportsV1ExportDayReadResponseMeta.md) + - [BulkexportsV1ExportExportCustomJob](docs/BulkexportsV1ExportExportCustomJob.md) + - [BulkexportsV1ExportExportCustomJobReadResponse](docs/BulkexportsV1ExportExportCustomJobReadResponse.md) + - [BulkexportsV1ExportJob](docs/BulkexportsV1ExportJob.md) + - [CreateExportCustomJobRequest](docs/CreateExportCustomJobRequest.md) + - [UpdateExportConfigurationRequest](docs/UpdateExportConfigurationRequest.md) + + +## Documentation For Authorization + + + +## accountSid_authToken + +- **Type**: HTTP basic authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ + UserName: "username", + Password: "password", +}) +r, err := client.Service.Operation(auth, args) +``` + + +## Author + +support@twilio.com + diff --git a/rest/bulkexports/v1/api_default.go b/rest/bulkexports/v1/api_default.go new file mode 100644 index 000000000..2aad13366 --- /dev/null +++ b/rest/bulkexports/v1/api_default.go @@ -0,0 +1,359 @@ +/* + * Twilio - Bulkexports + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "" +) + +type DefaultApiService struct { + baseURL string + client *twilio.Client +} + +func NewDefaultApiService(client *twilio.Client) *DefaultApiService { + return &DefaultApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} +// CreateExportCustomJobParams Optional parameters for the method 'CreateExportCustomJob' +type CreateExportCustomJobParams struct { + Email *string `json:"Email,omitempty"` + EndDay *string `json:"EndDay,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + StartDay *string `json:"StartDay,omitempty"` + WebhookMethod *string `json:"WebhookMethod,omitempty"` + WebhookUrl *string `json:"WebhookUrl,omitempty"` +} + +/* +CreateExportCustomJob Method for CreateExportCustomJob + * @param resourceType The type of communication – Messages or Calls + * @param optional nil or *CreateExportCustomJobOpts - Optional Parameters: + * @param "Email" (string) - The optional email to send the completion notification to. You can set both webhook, and email, or one or the other. If you set neither, the job will run but you will have to query to determine your job's status. + * @param "EndDay" (string) - The end day for the custom export specified as a string in the format of yyyy-mm-dd. End day is inclusive and must be 2 days earlier than the current UTC day. + * @param "FriendlyName" (string) - The friendly name specified when creating the job + * @param "StartDay" (string) - The start day for the custom export specified as a string in the format of yyyy-mm-dd + * @param "WebhookMethod" (string) - This is the method used to call the webhook on completion of the job. If this is supplied, `WebhookUrl` must also be supplied. + * @param "WebhookUrl" (string) - The optional webhook url called on completion of the job. If this is supplied, `WebhookMethod` must also be supplied. If you set neither webhook nor email, you will have to check your job's status manually. +@return BulkexportsV1ExportExportCustomJob +*/ +func (c *DefaultApiService) CreateExportCustomJob(resourceType string, params *CreateExportCustomJobParams) (*BulkexportsV1ExportExportCustomJob, error) { + path := "/v1/Exports/{ResourceType}/Jobs" + path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Email != nil { + data.Set("Email", *params.Email) + } + if params != nil && params.EndDay != nil { + data.Set("EndDay", *params.EndDay) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.StartDay != nil { + data.Set("StartDay", *params.StartDay) + } + if params != nil && params.WebhookMethod != nil { + data.Set("WebhookMethod", *params.WebhookMethod) + } + if params != nil && params.WebhookUrl != nil { + data.Set("WebhookUrl", *params.WebhookUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &BulkexportsV1ExportExportCustomJob{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +DeleteJob Method for DeleteJob + * @param jobSid The unique string that that we created to identify the Bulk Export job +*/ +func (c *DefaultApiService) DeleteJob(jobSid string) (error) { + path := "/v1/Exports/Jobs/{JobSid}" + path = strings.Replace(path, "{"+"JobSid"+"}", jobSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +FetchDay Method for FetchDay +Fetch a specific Day. + * @param resourceType The type of communication – Messages, Calls + * @param day The ISO 8601 format date of the resources in the file, for a UTC day +*/ +func (c *DefaultApiService) FetchDay(resourceType string, day string) (error) { + path := "/v1/Exports/{ResourceType}/Days/{Day}" + path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + path = strings.Replace(path, "{"+"Day"+"}", day, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +FetchExport Method for FetchExport +Fetch a specific Export. + * @param resourceType The type of communication – Messages, Calls +@return BulkexportsV1Export +*/ +func (c *DefaultApiService) FetchExport(resourceType string) (*BulkexportsV1Export, error) { + path := "/v1/Exports/{ResourceType}" + path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &BulkexportsV1Export{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchExportConfiguration Method for FetchExportConfiguration +Fetch a specific Export Configuration. + * @param resourceType The type of communication – Messages, Calls +@return BulkexportsV1ExportConfiguration +*/ +func (c *DefaultApiService) FetchExportConfiguration(resourceType string) (*BulkexportsV1ExportConfiguration, error) { + path := "/v1/Exports/{ResourceType}/Configuration" + path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &BulkexportsV1ExportConfiguration{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchJob Method for FetchJob + * @param jobSid +@return BulkexportsV1ExportJob +*/ +func (c *DefaultApiService) FetchJob(jobSid string) (*BulkexportsV1ExportJob, error) { + path := "/v1/Exports/Jobs/{JobSid}" + path = strings.Replace(path, "{"+"JobSid"+"}", jobSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &BulkexportsV1ExportJob{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListDayParams Optional parameters for the method 'ListDay' +type ListDayParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListDay Method for ListDay +Retrieve a list of all Days for a resource. + * @param resourceType The type of communication – Messages, Calls + * @param optional nil or *ListDayOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return BulkexportsV1ExportDayReadResponse +*/ +func (c *DefaultApiService) ListDay(resourceType string, params *ListDayParams) (*BulkexportsV1ExportDayReadResponse, error) { + path := "/v1/Exports/{ResourceType}/Days" + path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &BulkexportsV1ExportDayReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListExportCustomJobParams Optional parameters for the method 'ListExportCustomJob' +type ListExportCustomJobParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListExportCustomJob Method for ListExportCustomJob + * @param resourceType The type of communication – Messages, Calls + * @param optional nil or *ListExportCustomJobOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return BulkexportsV1ExportExportCustomJobReadResponse +*/ +func (c *DefaultApiService) ListExportCustomJob(resourceType string, params *ListExportCustomJobParams) (*BulkexportsV1ExportExportCustomJobReadResponse, error) { + path := "/v1/Exports/{ResourceType}/Jobs" + path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &BulkexportsV1ExportExportCustomJobReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateExportConfigurationParams Optional parameters for the method 'UpdateExportConfiguration' +type UpdateExportConfigurationParams struct { + Enabled *bool `json:"Enabled,omitempty"` + WebhookMethod *string `json:"WebhookMethod,omitempty"` + WebhookUrl *string `json:"WebhookUrl,omitempty"` +} + +/* +UpdateExportConfiguration Method for UpdateExportConfiguration +Update a specific Export Configuration. + * @param resourceType The type of communication – Messages, Calls + * @param optional nil or *UpdateExportConfigurationOpts - Optional Parameters: + * @param "Enabled" (bool) - If true, Twilio will automatically generate every day's file when the day is over. + * @param "WebhookMethod" (string) - Sets whether Twilio should call a webhook URL when the automatic generation is complete, using GET or POST. The actual destination is set in the webhook_url + * @param "WebhookUrl" (string) - Stores the URL destination for the method specified in webhook_method. +@return BulkexportsV1ExportConfiguration +*/ +func (c *DefaultApiService) UpdateExportConfiguration(resourceType string, params *UpdateExportConfigurationParams) (*BulkexportsV1ExportConfiguration, error) { + path := "/v1/Exports/{ResourceType}/Configuration" + path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Enabled != nil { + data.Set("Enabled", string(*params.Enabled)) + } + if params != nil && params.WebhookMethod != nil { + data.Set("WebhookMethod", *params.WebhookMethod) + } + if params != nil && params.WebhookUrl != nil { + data.Set("WebhookUrl", *params.WebhookUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &BulkexportsV1ExportConfiguration{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/bulkexports/v1/docs/BulkexportsV1Export.md b/rest/bulkexports/v1/docs/BulkexportsV1Export.md new file mode 100644 index 000000000..35325ce75 --- /dev/null +++ b/rest/bulkexports/v1/docs/BulkexportsV1Export.md @@ -0,0 +1,13 @@ +# BulkexportsV1Export + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | [**map[string]interface{}**](.md) | | [optional] +**ResourceType** | **string** | | [optional] +**Url** | **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/rest/bulkexports/v1/docs/BulkexportsV1ExportConfiguration.md b/rest/bulkexports/v1/docs/BulkexportsV1ExportConfiguration.md new file mode 100644 index 000000000..c0d96275e --- /dev/null +++ b/rest/bulkexports/v1/docs/BulkexportsV1ExportConfiguration.md @@ -0,0 +1,15 @@ +# BulkexportsV1ExportConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Enabled** | **bool** | | [optional] +**ResourceType** | **string** | | [optional] +**Url** | **string** | | [optional] +**WebhookMethod** | **string** | | [optional] +**WebhookUrl** | **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/rest/bulkexports/v1/docs/BulkexportsV1ExportDay.md b/rest/bulkexports/v1/docs/BulkexportsV1ExportDay.md new file mode 100644 index 000000000..3ff99eee0 --- /dev/null +++ b/rest/bulkexports/v1/docs/BulkexportsV1ExportDay.md @@ -0,0 +1,15 @@ +# BulkexportsV1ExportDay + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreateDate** | **string** | | [optional] +**Day** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**ResourceType** | **string** | | [optional] +**Size** | **int32** | | [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/rest/bulkexports/v1/docs/BulkexportsV1ExportDayInstance.md b/rest/bulkexports/v1/docs/BulkexportsV1ExportDayInstance.md new file mode 100644 index 000000000..4de8e0874 --- /dev/null +++ b/rest/bulkexports/v1/docs/BulkexportsV1ExportDayInstance.md @@ -0,0 +1,11 @@ +# BulkexportsV1ExportDayInstance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RedirectTo** | **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/rest/bulkexports/v1/docs/BulkexportsV1ExportDayReadResponse.md b/rest/bulkexports/v1/docs/BulkexportsV1ExportDayReadResponse.md new file mode 100644 index 000000000..7ef19f977 --- /dev/null +++ b/rest/bulkexports/v1/docs/BulkexportsV1ExportDayReadResponse.md @@ -0,0 +1,12 @@ +# BulkexportsV1ExportDayReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Days** | [**[]BulkexportsV1ExportDay**](bulkexports.v1.export.day.md) | | [optional] +**Meta** | [**BulkexportsV1ExportDayReadResponseMeta**](bulkexports_v1_export_dayReadResponse_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/rest/bulkexports/v1/docs/BulkexportsV1ExportDayReadResponseMeta.md b/rest/bulkexports/v1/docs/BulkexportsV1ExportDayReadResponseMeta.md new file mode 100644 index 000000000..2cdd4d81b --- /dev/null +++ b/rest/bulkexports/v1/docs/BulkexportsV1ExportDayReadResponseMeta.md @@ -0,0 +1,17 @@ +# BulkexportsV1ExportDayReadResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/bulkexports/v1/docs/BulkexportsV1ExportExportCustomJob.md b/rest/bulkexports/v1/docs/BulkexportsV1ExportExportCustomJob.md new file mode 100644 index 000000000..62e92bfe1 --- /dev/null +++ b/rest/bulkexports/v1/docs/BulkexportsV1ExportExportCustomJob.md @@ -0,0 +1,19 @@ +# BulkexportsV1ExportExportCustomJob + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Details** | [**map[string]interface{}**](.md) | | [optional] +**Email** | **string** | | [optional] +**EndDay** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**JobSid** | **string** | | [optional] +**ResourceType** | **string** | | [optional] +**StartDay** | **string** | | [optional] +**WebhookMethod** | **string** | | [optional] +**WebhookUrl** | **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/rest/bulkexports/v1/docs/BulkexportsV1ExportExportCustomJobReadResponse.md b/rest/bulkexports/v1/docs/BulkexportsV1ExportExportCustomJobReadResponse.md new file mode 100644 index 000000000..a0a4a6968 --- /dev/null +++ b/rest/bulkexports/v1/docs/BulkexportsV1ExportExportCustomJobReadResponse.md @@ -0,0 +1,12 @@ +# BulkexportsV1ExportExportCustomJobReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Jobs** | [**[]BulkexportsV1ExportExportCustomJob**](bulkexports.v1.export.export_custom_job.md) | | [optional] +**Meta** | [**BulkexportsV1ExportDayReadResponseMeta**](bulkexports_v1_export_dayReadResponse_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/rest/bulkexports/v1/docs/BulkexportsV1ExportJob.md b/rest/bulkexports/v1/docs/BulkexportsV1ExportJob.md new file mode 100644 index 000000000..22368a1d9 --- /dev/null +++ b/rest/bulkexports/v1/docs/BulkexportsV1ExportJob.md @@ -0,0 +1,20 @@ +# BulkexportsV1ExportJob + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Details** | [**map[string]interface{}**](.md) | | [optional] +**Email** | **string** | | [optional] +**EndDay** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**JobSid** | **string** | | [optional] +**ResourceType** | **string** | | [optional] +**StartDay** | **string** | | [optional] +**Url** | **string** | | [optional] +**WebhookMethod** | **string** | | [optional] +**WebhookUrl** | **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/rest/bulkexports/v1/docs/CreateExportCustomJobRequest.md b/rest/bulkexports/v1/docs/CreateExportCustomJobRequest.md new file mode 100644 index 000000000..836aabe72 --- /dev/null +++ b/rest/bulkexports/v1/docs/CreateExportCustomJobRequest.md @@ -0,0 +1,16 @@ +# CreateExportCustomJobRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | **string** | The optional email to send the completion notification to. You can set both webhook, and email, or one or the other. If you set neither, the job will run but you will have to query to determine your job's status. | [optional] +**EndDay** | **string** | The end day for the custom export specified as a string in the format of yyyy-mm-dd. End day is inclusive and must be 2 days earlier than the current UTC day. | +**FriendlyName** | **string** | The friendly name specified when creating the job | +**StartDay** | **string** | The start day for the custom export specified as a string in the format of yyyy-mm-dd | +**WebhookMethod** | **string** | This is the method used to call the webhook on completion of the job. If this is supplied, `WebhookUrl` must also be supplied. | [optional] +**WebhookUrl** | **string** | The optional webhook url called on completion of the job. If this is supplied, `WebhookMethod` must also be supplied. If you set neither webhook nor email, you will have to check your job's status manually. | [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/rest/bulkexports/v1/docs/DefaultApi.md b/rest/bulkexports/v1/docs/DefaultApi.md new file mode 100644 index 000000000..b634cf469 --- /dev/null +++ b/rest/bulkexports/v1/docs/DefaultApi.md @@ -0,0 +1,367 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateExportCustomJob**](DefaultApi.md#CreateExportCustomJob) | **Post** /v1/Exports/{ResourceType}/Jobs | +[**DeleteJob**](DefaultApi.md#DeleteJob) | **Delete** /v1/Exports/Jobs/{JobSid} | +[**FetchDay**](DefaultApi.md#FetchDay) | **Get** /v1/Exports/{ResourceType}/Days/{Day} | +[**FetchExport**](DefaultApi.md#FetchExport) | **Get** /v1/Exports/{ResourceType} | +[**FetchExportConfiguration**](DefaultApi.md#FetchExportConfiguration) | **Get** /v1/Exports/{ResourceType}/Configuration | +[**FetchJob**](DefaultApi.md#FetchJob) | **Get** /v1/Exports/Jobs/{JobSid} | +[**ListDay**](DefaultApi.md#ListDay) | **Get** /v1/Exports/{ResourceType}/Days | +[**ListExportCustomJob**](DefaultApi.md#ListExportCustomJob) | **Get** /v1/Exports/{ResourceType}/Jobs | +[**UpdateExportConfiguration**](DefaultApi.md#UpdateExportConfiguration) | **Post** /v1/Exports/{ResourceType}/Configuration | + + + +## CreateExportCustomJob + +> BulkexportsV1ExportExportCustomJob CreateExportCustomJob(ctx, resourceType, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**resourceType** | **string**| The type of communication – Messages or Calls | + **optional** | ***CreateExportCustomJobOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateExportCustomJobOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **email** | **optional.String**| The optional email to send the completion notification to. You can set both webhook, and email, or one or the other. If you set neither, the job will run but you will have to query to determine your job's status. | + **endDay** | **optional.String**| The end day for the custom export specified as a string in the format of yyyy-mm-dd. End day is inclusive and must be 2 days earlier than the current UTC day. | + **friendlyName** | **optional.String**| The friendly name specified when creating the job | + **startDay** | **optional.String**| The start day for the custom export specified as a string in the format of yyyy-mm-dd | + **webhookMethod** | **optional.String**| This is the method used to call the webhook on completion of the job. If this is supplied, `WebhookUrl` must also be supplied. | + **webhookUrl** | **optional.String**| The optional webhook url called on completion of the job. If this is supplied, `WebhookMethod` must also be supplied. If you set neither webhook nor email, you will have to check your job's status manually. | + +### Return type + +[**BulkexportsV1ExportExportCustomJob**](bulkexports.v1.export.export_custom_job.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) + + +## DeleteJob + +> DeleteJob(ctx, jobSid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**jobSid** | **string**| The unique string that that we created to identify the Bulk Export job | + +### 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) + + +## FetchDay + +> FetchDay(ctx, resourceType, day) + + + +Fetch a specific Day. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**resourceType** | **string**| The type of communication – Messages, Calls | +**day** | **string**| The ISO 8601 format date of the resources in the file, for a UTC day | + +### Return type + + (empty response body) + +### 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) + + +## FetchExport + +> BulkexportsV1Export FetchExport(ctx, resourceType) + + + +Fetch a specific Export. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**resourceType** | **string**| The type of communication – Messages, Calls | + +### Return type + +[**BulkexportsV1Export**](bulkexports.v1.export.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) + + +## FetchExportConfiguration + +> BulkexportsV1ExportConfiguration FetchExportConfiguration(ctx, resourceType) + + + +Fetch a specific Export Configuration. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**resourceType** | **string**| The type of communication – Messages, Calls | + +### Return type + +[**BulkexportsV1ExportConfiguration**](bulkexports.v1.export_configuration.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) + + +## FetchJob + +> BulkexportsV1ExportJob FetchJob(ctx, jobSid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**jobSid** | **string**| | + +### Return type + +[**BulkexportsV1ExportJob**](bulkexports.v1.export.job.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) + + +## ListDay + +> BulkexportsV1ExportDayReadResponse ListDay(ctx, resourceType, optional) + + + +Retrieve a list of all Days for a resource. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**resourceType** | **string**| The type of communication – Messages, Calls | + **optional** | ***ListDayOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListDayOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**BulkexportsV1ExportDayReadResponse**](bulkexports_v1_export_dayReadResponse.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) + + +## ListExportCustomJob + +> BulkexportsV1ExportExportCustomJobReadResponse ListExportCustomJob(ctx, resourceType, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**resourceType** | **string**| The type of communication – Messages, Calls | + **optional** | ***ListExportCustomJobOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListExportCustomJobOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**BulkexportsV1ExportExportCustomJobReadResponse**](bulkexports_v1_export_export_custom_jobReadResponse.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) + + +## UpdateExportConfiguration + +> BulkexportsV1ExportConfiguration UpdateExportConfiguration(ctx, resourceType, optional) + + + +Update a specific Export Configuration. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**resourceType** | **string**| The type of communication – Messages, Calls | + **optional** | ***UpdateExportConfigurationOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateExportConfigurationOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **enabled** | **optional.Bool**| If true, Twilio will automatically generate every day's file when the day is over. | + **webhookMethod** | **optional.String**| Sets whether Twilio should call a webhook URL when the automatic generation is complete, using GET or POST. The actual destination is set in the webhook_url | + **webhookUrl** | **optional.String**| Stores the URL destination for the method specified in webhook_method. | + +### Return type + +[**BulkexportsV1ExportConfiguration**](bulkexports.v1.export_configuration.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/rest/bulkexports/v1/docs/UpdateExportConfigurationRequest.md b/rest/bulkexports/v1/docs/UpdateExportConfigurationRequest.md new file mode 100644 index 000000000..78f48b5f5 --- /dev/null +++ b/rest/bulkexports/v1/docs/UpdateExportConfigurationRequest.md @@ -0,0 +1,13 @@ +# UpdateExportConfigurationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Enabled** | **bool** | If true, Twilio will automatically generate every day's file when the day is over. | [optional] +**WebhookMethod** | **string** | Sets whether Twilio should call a webhook URL when the automatic generation is complete, using GET or POST. The actual destination is set in the webhook_url | [optional] +**WebhookUrl** | **string** | Stores the URL destination for the method specified in webhook_method. | [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/rest/bulkexports/v1/model_bulkexports_v1_export.go b/rest/bulkexports/v1/model_bulkexports_v1_export.go new file mode 100644 index 000000000..a02cc8fc9 --- /dev/null +++ b/rest/bulkexports/v1/model_bulkexports_v1_export.go @@ -0,0 +1,17 @@ +/* + * Twilio - Bulkexports + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// BulkexportsV1Export struct for BulkexportsV1Export +type BulkexportsV1Export struct { + Links map[string]interface{} `json:"links,omitempty"` + ResourceType string `json:"resource_type,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/bulkexports/v1/model_bulkexports_v1_export_configuration.go b/rest/bulkexports/v1/model_bulkexports_v1_export_configuration.go new file mode 100644 index 000000000..e58accbcf --- /dev/null +++ b/rest/bulkexports/v1/model_bulkexports_v1_export_configuration.go @@ -0,0 +1,19 @@ +/* + * Twilio - Bulkexports + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// BulkexportsV1ExportConfiguration struct for BulkexportsV1ExportConfiguration +type BulkexportsV1ExportConfiguration struct { + Enabled bool `json:"enabled,omitempty"` + ResourceType string `json:"resource_type,omitempty"` + Url string `json:"url,omitempty"` + WebhookMethod string `json:"webhook_method,omitempty"` + WebhookUrl string `json:"webhook_url,omitempty"` +} diff --git a/rest/bulkexports/v1/model_bulkexports_v1_export_day.go b/rest/bulkexports/v1/model_bulkexports_v1_export_day.go new file mode 100644 index 000000000..ef9ec7b3a --- /dev/null +++ b/rest/bulkexports/v1/model_bulkexports_v1_export_day.go @@ -0,0 +1,19 @@ +/* + * Twilio - Bulkexports + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// BulkexportsV1ExportDay struct for BulkexportsV1ExportDay +type BulkexportsV1ExportDay struct { + CreateDate string `json:"create_date,omitempty"` + Day string `json:"day,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + ResourceType string `json:"resource_type,omitempty"` + Size int32 `json:"size,omitempty"` +} diff --git a/rest/bulkexports/v1/model_bulkexports_v1_export_day_instance.go b/rest/bulkexports/v1/model_bulkexports_v1_export_day_instance.go new file mode 100644 index 000000000..99e225191 --- /dev/null +++ b/rest/bulkexports/v1/model_bulkexports_v1_export_day_instance.go @@ -0,0 +1,15 @@ +/* + * Twilio - Bulkexports + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// BulkexportsV1ExportDayInstance struct for BulkexportsV1ExportDayInstance +type BulkexportsV1ExportDayInstance struct { + RedirectTo string `json:"redirect_to,omitempty"` +} diff --git a/rest/bulkexports/v1/model_bulkexports_v1_export_day_read_response.go b/rest/bulkexports/v1/model_bulkexports_v1_export_day_read_response.go new file mode 100644 index 000000000..b7711708e --- /dev/null +++ b/rest/bulkexports/v1/model_bulkexports_v1_export_day_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Bulkexports + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// BulkexportsV1ExportDayReadResponse struct for BulkexportsV1ExportDayReadResponse +type BulkexportsV1ExportDayReadResponse struct { + Days []BulkexportsV1ExportDay `json:"days,omitempty"` + Meta BulkexportsV1ExportDayReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/bulkexports/v1/model_bulkexports_v1_export_day_read_response_meta.go b/rest/bulkexports/v1/model_bulkexports_v1_export_day_read_response_meta.go new file mode 100644 index 000000000..6be51a9be --- /dev/null +++ b/rest/bulkexports/v1/model_bulkexports_v1_export_day_read_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Bulkexports + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// BulkexportsV1ExportDayReadResponseMeta struct for BulkexportsV1ExportDayReadResponseMeta +type BulkexportsV1ExportDayReadResponseMeta struct { + FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` + NextPageUrl string `json:"next_page_url,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUrl string `json:"previous_page_url,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/bulkexports/v1/model_bulkexports_v1_export_export_custom_job.go b/rest/bulkexports/v1/model_bulkexports_v1_export_export_custom_job.go new file mode 100644 index 000000000..93b770913 --- /dev/null +++ b/rest/bulkexports/v1/model_bulkexports_v1_export_export_custom_job.go @@ -0,0 +1,23 @@ +/* + * Twilio - Bulkexports + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// BulkexportsV1ExportExportCustomJob struct for BulkexportsV1ExportExportCustomJob +type BulkexportsV1ExportExportCustomJob struct { + Details map[string]interface{} `json:"details,omitempty"` + Email string `json:"email,omitempty"` + EndDay string `json:"end_day,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + JobSid string `json:"job_sid,omitempty"` + ResourceType string `json:"resource_type,omitempty"` + StartDay string `json:"start_day,omitempty"` + WebhookMethod string `json:"webhook_method,omitempty"` + WebhookUrl string `json:"webhook_url,omitempty"` +} diff --git a/rest/bulkexports/v1/model_bulkexports_v1_export_export_custom_job_read_response.go b/rest/bulkexports/v1/model_bulkexports_v1_export_export_custom_job_read_response.go new file mode 100644 index 000000000..bdaa6f6b9 --- /dev/null +++ b/rest/bulkexports/v1/model_bulkexports_v1_export_export_custom_job_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Bulkexports + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// BulkexportsV1ExportExportCustomJobReadResponse struct for BulkexportsV1ExportExportCustomJobReadResponse +type BulkexportsV1ExportExportCustomJobReadResponse struct { + Jobs []BulkexportsV1ExportExportCustomJob `json:"jobs,omitempty"` + Meta BulkexportsV1ExportDayReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/bulkexports/v1/model_bulkexports_v1_export_job.go b/rest/bulkexports/v1/model_bulkexports_v1_export_job.go new file mode 100644 index 000000000..26c46b6ac --- /dev/null +++ b/rest/bulkexports/v1/model_bulkexports_v1_export_job.go @@ -0,0 +1,24 @@ +/* + * Twilio - Bulkexports + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// BulkexportsV1ExportJob struct for BulkexportsV1ExportJob +type BulkexportsV1ExportJob struct { + Details map[string]interface{} `json:"details,omitempty"` + Email string `json:"email,omitempty"` + EndDay string `json:"end_day,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + JobSid string `json:"job_sid,omitempty"` + ResourceType string `json:"resource_type,omitempty"` + StartDay string `json:"start_day,omitempty"` + Url string `json:"url,omitempty"` + WebhookMethod string `json:"webhook_method,omitempty"` + WebhookUrl string `json:"webhook_url,omitempty"` +} diff --git a/rest/bulkexports/v1/model_create_export_custom_job_request.go b/rest/bulkexports/v1/model_create_export_custom_job_request.go new file mode 100644 index 000000000..c1ddfee18 --- /dev/null +++ b/rest/bulkexports/v1/model_create_export_custom_job_request.go @@ -0,0 +1,26 @@ +/* + * Twilio - Bulkexports + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateExportCustomJobRequest struct for CreateExportCustomJobRequest +type CreateExportCustomJobRequest struct { + // The optional email to send the completion notification to. You can set both webhook, and email, or one or the other. If you set neither, the job will run but you will have to query to determine your job's status. + Email string `json:"Email,omitempty"` + // The end day for the custom export specified as a string in the format of yyyy-mm-dd. End day is inclusive and must be 2 days earlier than the current UTC day. + EndDay string `json:"EndDay"` + // The friendly name specified when creating the job + FriendlyName string `json:"FriendlyName"` + // The start day for the custom export specified as a string in the format of yyyy-mm-dd + StartDay string `json:"StartDay"` + // This is the method used to call the webhook on completion of the job. If this is supplied, `WebhookUrl` must also be supplied. + WebhookMethod string `json:"WebhookMethod,omitempty"` + // The optional webhook url called on completion of the job. If this is supplied, `WebhookMethod` must also be supplied. If you set neither webhook nor email, you will have to check your job's status manually. + WebhookUrl string `json:"WebhookUrl,omitempty"` +} diff --git a/rest/bulkexports/v1/model_update_export_configuration_request.go b/rest/bulkexports/v1/model_update_export_configuration_request.go new file mode 100644 index 000000000..5bebe9075 --- /dev/null +++ b/rest/bulkexports/v1/model_update_export_configuration_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Bulkexports + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateExportConfigurationRequest struct for UpdateExportConfigurationRequest +type UpdateExportConfigurationRequest struct { + // If true, Twilio will automatically generate every day's file when the day is over. + Enabled bool `json:"Enabled,omitempty"` + // Sets whether Twilio should call a webhook URL when the automatic generation is complete, using GET or POST. The actual destination is set in the webhook_url + WebhookMethod string `json:"WebhookMethod,omitempty"` + // Stores the URL destination for the method specified in webhook_method. + WebhookUrl string `json:"WebhookUrl,omitempty"` +} diff --git a/rest/bulkexports/v1/response.go b/rest/bulkexports/v1/response.go new file mode 100644 index 000000000..161d32a9a --- /dev/null +++ b/rest/bulkexports/v1/response.go @@ -0,0 +1,47 @@ +/* + * Twilio - Bulkexports + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// Response returns a new APIResponse object. +func Response(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// ResponseWithError returns a new APIResponse object with the provided error message. +func ResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/rest/chat/v1/.openapi-generator-ignore b/rest/chat/v1/.openapi-generator-ignore new file mode 100644 index 000000000..7484ee590 --- /dev/null +++ b/rest/chat/v1/.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/rest/chat/v1/.openapi-generator/VERSION b/rest/chat/v1/.openapi-generator/VERSION new file mode 100644 index 000000000..ecedc98d1 --- /dev/null +++ b/rest/chat/v1/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.3.1 \ No newline at end of file diff --git a/rest/chat/v1/README.md b/rest/chat/v1/README.md new file mode 100644 index 000000000..6c36d1df5 --- /dev/null +++ b/rest/chat/v1/README.md @@ -0,0 +1,136 @@ +# Go API client for openapi + +This is the public Twilio REST API. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 5.15.0 +- Package version: 1.0.0 +- Build package: com.twilio.oai.TwilioGoGenerator +For more information, please visit [https://support.twilio.com](https://support.twilio.com) + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import "./openapi" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**CreateChannel**](docs/DefaultApi.md#createchannel) | **Post** /v1/Services/{ServiceSid}/Channels | +*DefaultApi* | [**CreateCredential**](docs/DefaultApi.md#createcredential) | **Post** /v1/Credentials | +*DefaultApi* | [**CreateInvite**](docs/DefaultApi.md#createinvite) | **Post** /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites | +*DefaultApi* | [**CreateMember**](docs/DefaultApi.md#createmember) | **Post** /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members | +*DefaultApi* | [**CreateMessage**](docs/DefaultApi.md#createmessage) | **Post** /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages | +*DefaultApi* | [**CreateRole**](docs/DefaultApi.md#createrole) | **Post** /v1/Services/{ServiceSid}/Roles | +*DefaultApi* | [**CreateService**](docs/DefaultApi.md#createservice) | **Post** /v1/Services | +*DefaultApi* | [**CreateUser**](docs/DefaultApi.md#createuser) | **Post** /v1/Services/{ServiceSid}/Users | +*DefaultApi* | [**DeleteChannel**](docs/DefaultApi.md#deletechannel) | **Delete** /v1/Services/{ServiceSid}/Channels/{Sid} | +*DefaultApi* | [**DeleteCredential**](docs/DefaultApi.md#deletecredential) | **Delete** /v1/Credentials/{Sid} | +*DefaultApi* | [**DeleteInvite**](docs/DefaultApi.md#deleteinvite) | **Delete** /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid} | +*DefaultApi* | [**DeleteMember**](docs/DefaultApi.md#deletemember) | **Delete** /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid} | +*DefaultApi* | [**DeleteMessage**](docs/DefaultApi.md#deletemessage) | **Delete** /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid} | +*DefaultApi* | [**DeleteRole**](docs/DefaultApi.md#deleterole) | **Delete** /v1/Services/{ServiceSid}/Roles/{Sid} | +*DefaultApi* | [**DeleteService**](docs/DefaultApi.md#deleteservice) | **Delete** /v1/Services/{Sid} | +*DefaultApi* | [**DeleteUser**](docs/DefaultApi.md#deleteuser) | **Delete** /v1/Services/{ServiceSid}/Users/{Sid} | +*DefaultApi* | [**FetchChannel**](docs/DefaultApi.md#fetchchannel) | **Get** /v1/Services/{ServiceSid}/Channels/{Sid} | +*DefaultApi* | [**FetchCredential**](docs/DefaultApi.md#fetchcredential) | **Get** /v1/Credentials/{Sid} | +*DefaultApi* | [**FetchInvite**](docs/DefaultApi.md#fetchinvite) | **Get** /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid} | +*DefaultApi* | [**FetchMember**](docs/DefaultApi.md#fetchmember) | **Get** /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid} | +*DefaultApi* | [**FetchMessage**](docs/DefaultApi.md#fetchmessage) | **Get** /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid} | +*DefaultApi* | [**FetchRole**](docs/DefaultApi.md#fetchrole) | **Get** /v1/Services/{ServiceSid}/Roles/{Sid} | +*DefaultApi* | [**FetchService**](docs/DefaultApi.md#fetchservice) | **Get** /v1/Services/{Sid} | +*DefaultApi* | [**FetchUser**](docs/DefaultApi.md#fetchuser) | **Get** /v1/Services/{ServiceSid}/Users/{Sid} | +*DefaultApi* | [**ListChannel**](docs/DefaultApi.md#listchannel) | **Get** /v1/Services/{ServiceSid}/Channels | +*DefaultApi* | [**ListCredential**](docs/DefaultApi.md#listcredential) | **Get** /v1/Credentials | +*DefaultApi* | [**ListInvite**](docs/DefaultApi.md#listinvite) | **Get** /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites | +*DefaultApi* | [**ListMember**](docs/DefaultApi.md#listmember) | **Get** /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members | +*DefaultApi* | [**ListMessage**](docs/DefaultApi.md#listmessage) | **Get** /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages | +*DefaultApi* | [**ListRole**](docs/DefaultApi.md#listrole) | **Get** /v1/Services/{ServiceSid}/Roles | +*DefaultApi* | [**ListService**](docs/DefaultApi.md#listservice) | **Get** /v1/Services | +*DefaultApi* | [**ListUser**](docs/DefaultApi.md#listuser) | **Get** /v1/Services/{ServiceSid}/Users | +*DefaultApi* | [**ListUserChannel**](docs/DefaultApi.md#listuserchannel) | **Get** /v1/Services/{ServiceSid}/Users/{UserSid}/Channels | +*DefaultApi* | [**UpdateChannel**](docs/DefaultApi.md#updatechannel) | **Post** /v1/Services/{ServiceSid}/Channels/{Sid} | +*DefaultApi* | [**UpdateCredential**](docs/DefaultApi.md#updatecredential) | **Post** /v1/Credentials/{Sid} | +*DefaultApi* | [**UpdateMember**](docs/DefaultApi.md#updatemember) | **Post** /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid} | +*DefaultApi* | [**UpdateMessage**](docs/DefaultApi.md#updatemessage) | **Post** /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid} | +*DefaultApi* | [**UpdateRole**](docs/DefaultApi.md#updaterole) | **Post** /v1/Services/{ServiceSid}/Roles/{Sid} | +*DefaultApi* | [**UpdateService**](docs/DefaultApi.md#updateservice) | **Post** /v1/Services/{Sid} | +*DefaultApi* | [**UpdateUser**](docs/DefaultApi.md#updateuser) | **Post** /v1/Services/{ServiceSid}/Users/{Sid} | + + +## Documentation For Models + + - [ChatV1Credential](docs/ChatV1Credential.md) + - [ChatV1CredentialReadResponse](docs/ChatV1CredentialReadResponse.md) + - [ChatV1CredentialReadResponseMeta](docs/ChatV1CredentialReadResponseMeta.md) + - [ChatV1Service](docs/ChatV1Service.md) + - [ChatV1ServiceChannel](docs/ChatV1ServiceChannel.md) + - [ChatV1ServiceChannelInvite](docs/ChatV1ServiceChannelInvite.md) + - [ChatV1ServiceChannelInviteReadResponse](docs/ChatV1ServiceChannelInviteReadResponse.md) + - [ChatV1ServiceChannelMember](docs/ChatV1ServiceChannelMember.md) + - [ChatV1ServiceChannelMemberReadResponse](docs/ChatV1ServiceChannelMemberReadResponse.md) + - [ChatV1ServiceChannelMessage](docs/ChatV1ServiceChannelMessage.md) + - [ChatV1ServiceChannelMessageReadResponse](docs/ChatV1ServiceChannelMessageReadResponse.md) + - [ChatV1ServiceChannelReadResponse](docs/ChatV1ServiceChannelReadResponse.md) + - [ChatV1ServiceReadResponse](docs/ChatV1ServiceReadResponse.md) + - [ChatV1ServiceRole](docs/ChatV1ServiceRole.md) + - [ChatV1ServiceRoleReadResponse](docs/ChatV1ServiceRoleReadResponse.md) + - [ChatV1ServiceUser](docs/ChatV1ServiceUser.md) + - [ChatV1ServiceUserReadResponse](docs/ChatV1ServiceUserReadResponse.md) + - [ChatV1ServiceUserUserChannel](docs/ChatV1ServiceUserUserChannel.md) + - [ChatV1ServiceUserUserChannelReadResponse](docs/ChatV1ServiceUserUserChannelReadResponse.md) + - [CreateChannelRequest](docs/CreateChannelRequest.md) + - [CreateCredentialRequest](docs/CreateCredentialRequest.md) + - [CreateInviteRequest](docs/CreateInviteRequest.md) + - [CreateMemberRequest](docs/CreateMemberRequest.md) + - [CreateMessageRequest](docs/CreateMessageRequest.md) + - [CreateRoleRequest](docs/CreateRoleRequest.md) + - [CreateServiceRequest](docs/CreateServiceRequest.md) + - [CreateUserRequest](docs/CreateUserRequest.md) + - [UpdateChannelRequest](docs/UpdateChannelRequest.md) + - [UpdateCredentialRequest](docs/UpdateCredentialRequest.md) + - [UpdateMemberRequest](docs/UpdateMemberRequest.md) + - [UpdateMessageRequest](docs/UpdateMessageRequest.md) + - [UpdateRoleRequest](docs/UpdateRoleRequest.md) + - [UpdateServiceRequest](docs/UpdateServiceRequest.md) + - [UpdateUserRequest](docs/UpdateUserRequest.md) + + +## Documentation For Authorization + + + +## accountSid_authToken + +- **Type**: HTTP basic authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ + UserName: "username", + Password: "password", +}) +r, err := client.Service.Operation(auth, args) +``` + + +## Author + +support@twilio.com + diff --git a/rest/chat/v1/api_default.go b/rest/chat/v1/api_default.go new file mode 100644 index 000000000..2fe7e7598 --- /dev/null +++ b/rest/chat/v1/api_default.go @@ -0,0 +1,1848 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "" + "reflect" +) + +type DefaultApiService struct { + baseURL string + client *twilio.Client +} + +func NewDefaultApiService(client *twilio.Client) *DefaultApiService { + return &DefaultApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} +// CreateChannelParams Optional parameters for the method 'CreateChannel' +type CreateChannelParams struct { + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Type *string `json:"Type,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +CreateChannel Method for CreateChannel + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under. + * @param optional nil or *CreateChannelOpts - Optional Parameters: + * @param "Attributes" (string) - A valid JSON string that contains application-specific data. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the new resource. It can be up to 64 characters long. + * @param "Type" (string) - The visibility of the channel. Can be: `public` or `private` and defaults to `public`. + * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. This value must be 64 characters or less in length and be unique within the Service. +@return ChatV1ServiceChannel +*/ +func (c *DefaultApiService) CreateChannel(serviceSid string, params *CreateChannelParams) (*ChatV1ServiceChannel, error) { + path := "/v1/Services/{ServiceSid}/Channels" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV1ServiceChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateCredentialParams Optional parameters for the method 'CreateCredential' +type CreateCredentialParams struct { + ApiKey *string `json:"ApiKey,omitempty"` + Certificate *string `json:"Certificate,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PrivateKey *string `json:"PrivateKey,omitempty"` + Sandbox *bool `json:"Sandbox,omitempty"` + Secret *string `json:"Secret,omitempty"` + Type *string `json:"Type,omitempty"` +} + +/* +CreateCredential Method for CreateCredential + * @param optional nil or *CreateCredentialOpts - Optional Parameters: + * @param "ApiKey" (string) - [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. + * @param "Certificate" (string) - [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A== -----END CERTIFICATE-----` + * @param "FriendlyName" (string) - A descriptive string that you create to describe the new resource. It can be up to 64 characters long. + * @param "PrivateKey" (string) - [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR. -----END RSA PRIVATE KEY-----` + * @param "Sandbox" (bool) - [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. + * @param "Secret" (string) - [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. + * @param "Type" (string) - The type of push-notification service the credential is for. Can be: `gcm`, `fcm`, or `apn`. +@return ChatV1Credential +*/ +func (c *DefaultApiService) CreateCredential(params *CreateCredentialParams) (*ChatV1Credential, error) { + path := "/v1/Credentials" + + data := url.Values{} + headers := 0 + + if params != nil && params.ApiKey != nil { + data.Set("ApiKey", *params.ApiKey) + } + if params != nil && params.Certificate != nil { + data.Set("Certificate", *params.Certificate) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PrivateKey != nil { + data.Set("PrivateKey", *params.PrivateKey) + } + if params != nil && params.Sandbox != nil { + data.Set("Sandbox", string(*params.Sandbox)) + } + if params != nil && params.Secret != nil { + data.Set("Secret", *params.Secret) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV1Credential{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateInviteParams Optional parameters for the method 'CreateInvite' +type CreateInviteParams struct { + Identity *string `json:"Identity,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` +} + +/* +CreateInvite Method for CreateInvite + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under. + * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the new resource belongs to. + * @param optional nil or *CreateInviteOpts - Optional Parameters: + * @param "Identity" (string) - The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/api/chat/rest/v1/user) within the [Service](https://www.twilio.com/docs/api/chat/rest/v1/service). See [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) for more info. + * @param "RoleSid" (string) - The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) assigned to the new member. +@return ChatV1ServiceChannelInvite +*/ +func (c *DefaultApiService) CreateInvite(serviceSid string, channelSid string, params *CreateInviteParams) (*ChatV1ServiceChannelInvite, error) { + path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV1ServiceChannelInvite{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateMemberParams Optional parameters for the method 'CreateMember' +type CreateMemberParams struct { + Identity *string `json:"Identity,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` +} + +/* +CreateMember Method for CreateMember + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under. + * @param channelSid The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the new member belongs to. Can be the Channel resource's `sid` or `unique_name`. + * @param optional nil or *CreateMemberOpts - Optional Parameters: + * @param "Identity" (string) - The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/api/chat/rest/v1/user) within the [Service](https://www.twilio.com/docs/api/chat/rest/services). See [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) for more details. + * @param "RoleSid" (string) - The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/api/services). +@return ChatV1ServiceChannelMember +*/ +func (c *DefaultApiService) CreateMember(serviceSid string, channelSid string, params *CreateMemberParams) (*ChatV1ServiceChannelMember, error) { + path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV1ServiceChannelMember{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateMessageParams Optional parameters for the method 'CreateMessage' +type CreateMessageParams struct { + Attributes *string `json:"Attributes,omitempty"` + Body *string `json:"Body,omitempty"` + From *string `json:"From,omitempty"` +} + +/* +CreateMessage Method for CreateMessage + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under. + * @param channelSid The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the new resource belongs to. Can be the Channel resource's `sid` or `unique_name`. + * @param optional nil or *CreateMessageOpts - Optional Parameters: + * @param "Attributes" (string) - A valid JSON string that contains application-specific data. + * @param "Body" (string) - The message to send to the channel. Can also be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string. + * @param "From" (string) - The [identity](https://www.twilio.com/docs/api/chat/guides/identity) of the new message's author. The default value is `system`. +@return ChatV1ServiceChannelMessage +*/ +func (c *DefaultApiService) CreateMessage(serviceSid string, channelSid string, params *CreateMessageParams) (*ChatV1ServiceChannelMessage, error) { + path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.Body != nil { + data.Set("Body", *params.Body) + } + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV1ServiceChannelMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateRoleParams Optional parameters for the method 'CreateRole' +type CreateRoleParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` + Permission *[]string `json:"Permission,omitempty"` + Type *string `json:"Type,omitempty"` +} + +/* +CreateRole Method for CreateRole + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under. + * @param optional nil or *CreateRoleOpts - Optional Parameters: + * @param "FriendlyName" (string) - A descriptive string that you create to describe the new resource. It can be up to 64 characters long. + * @param "Permission" ([]string) - A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type` and are described in the documentation. + * @param "Type" (string) - The type of role. Can be: `channel` for [Channel](https://www.twilio.com/docs/chat/api/channels) roles or `deployment` for [Service](https://www.twilio.com/docs/chat/api/services) roles. +@return ChatV1ServiceRole +*/ +func (c *DefaultApiService) CreateRole(serviceSid string, params *CreateRoleParams) (*ChatV1ServiceRole, error) { + path := "/v1/Services/{ServiceSid}/Roles" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Permission != nil { + data.Set("Permission", *params.Permission) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV1ServiceRole{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateServiceParams Optional parameters for the method 'CreateService' +type CreateServiceParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +CreateService Method for CreateService + * @param optional nil or *CreateServiceOpts - Optional Parameters: + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. +@return ChatV1Service +*/ +func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*ChatV1Service, error) { + path := "/v1/Services" + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateUserParams Optional parameters for the method 'CreateUser' +type CreateUserParams struct { + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Identity *string `json:"Identity,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` +} + +/* +CreateUser Method for CreateUser + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under. + * @param optional nil or *CreateUserOpts - Optional Parameters: + * @param "Attributes" (string) - A valid JSON string that contains application-specific data. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the new resource. This value is often used for display purposes. + * @param "Identity" (string) - The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/api/chat/rest/v1/user) within the [Service](https://www.twilio.com/docs/api/chat/rest/v1/service). This value is often a username or email address. See the Identity documentation for more details. + * @param "RoleSid" (string) - The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) assigned to the new User. +@return ChatV1ServiceUser +*/ +func (c *DefaultApiService) CreateUser(serviceSid string, params *CreateUserParams) (*ChatV1ServiceUser, error) { + path := "/v1/Services/{ServiceSid}/Users" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV1ServiceUser{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +DeleteChannel Method for DeleteChannel + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from. + * @param sid The Twilio-provided string that uniquely identifies the Channel resource to delete. +*/ +func (c *DefaultApiService) DeleteChannel(serviceSid string, sid string) (error) { + path := "/v1/Services/{ServiceSid}/Channels/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteCredential Method for DeleteCredential + * @param sid The Twilio-provided string that uniquely identifies the Credential resource to delete. +*/ +func (c *DefaultApiService) DeleteCredential(sid string) (error) { + path := "/v1/Credentials/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteInvite Method for DeleteInvite + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from. + * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the resource to delete belongs to. + * @param sid The Twilio-provided string that uniquely identifies the Invite resource to delete. +*/ +func (c *DefaultApiService) DeleteInvite(serviceSid string, channelSid string, sid string) (error) { + path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteMember Method for DeleteMember + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from. + * @param channelSid The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message belongs to. Can be the Channel's `sid` or `unique_name`. + * @param sid The Twilio-provided string that uniquely identifies the Member resource to delete. +*/ +func (c *DefaultApiService) DeleteMember(serviceSid string, channelSid string, sid string) (error) { + path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteMessage Method for DeleteMessage + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from. + * @param channelSid The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message to delete belongs to. Can be the Channel resource's `sid` or `unique_name`. + * @param sid The Twilio-provided string that uniquely identifies the Message resource to delete. +*/ +func (c *DefaultApiService) DeleteMessage(serviceSid string, channelSid string, sid string) (error) { + path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteRole Method for DeleteRole + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from. + * @param sid The Twilio-provided string that uniquely identifies the Role resource to delete. +*/ +func (c *DefaultApiService) DeleteRole(serviceSid string, sid string) (error) { + path := "/v1/Services/{ServiceSid}/Roles/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteService Method for DeleteService + * @param sid The Twilio-provided string that uniquely identifies the Service resource to delete. +*/ +func (c *DefaultApiService) DeleteService(sid string) (error) { + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteUser Method for DeleteUser + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from. + * @param sid The Twilio-provided string that uniquely identifies the User resource to delete. +*/ +func (c *DefaultApiService) DeleteUser(serviceSid string, sid string) (error) { + path := "/v1/Services/{ServiceSid}/Users/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +FetchChannel Method for FetchChannel + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from. + * @param sid The Twilio-provided string that uniquely identifies the Channel resource to fetch. +@return ChatV1ServiceChannel +*/ +func (c *DefaultApiService) FetchChannel(serviceSid string, sid string) (*ChatV1ServiceChannel, error) { + path := "/v1/Services/{ServiceSid}/Channels/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV1ServiceChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchCredential Method for FetchCredential + * @param sid The Twilio-provided string that uniquely identifies the Credential resource to fetch. +@return ChatV1Credential +*/ +func (c *DefaultApiService) FetchCredential(sid string) (*ChatV1Credential, error) { + path := "/v1/Credentials/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV1Credential{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchInvite Method for FetchInvite + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from. + * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the resource to fetch belongs to. + * @param sid The Twilio-provided string that uniquely identifies the Invite resource to fetch. +@return ChatV1ServiceChannelInvite +*/ +func (c *DefaultApiService) FetchInvite(serviceSid string, channelSid string, sid string) (*ChatV1ServiceChannelInvite, error) { + path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV1ServiceChannelInvite{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchMember Method for FetchMember + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from. + * @param channelSid The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the member to fetch belongs to. Can be the Channel resource's `sid` or `unique_name` value. + * @param sid The Twilio-provided string that uniquely identifies the Member resource to fetch. +@return ChatV1ServiceChannelMember +*/ +func (c *DefaultApiService) FetchMember(serviceSid string, channelSid string, sid string) (*ChatV1ServiceChannelMember, error) { + path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV1ServiceChannelMember{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchMessage Method for FetchMessage + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from. + * @param channelSid The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message to fetch belongs to. Can be the Channel's `sid` or `unique_name`. + * @param sid The Twilio-provided string that uniquely identifies the Message resource to fetch. +@return ChatV1ServiceChannelMessage +*/ +func (c *DefaultApiService) FetchMessage(serviceSid string, channelSid string, sid string) (*ChatV1ServiceChannelMessage, error) { + path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV1ServiceChannelMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchRole Method for FetchRole + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from. + * @param sid The Twilio-provided string that uniquely identifies the Role resource to fetch. +@return ChatV1ServiceRole +*/ +func (c *DefaultApiService) FetchRole(serviceSid string, sid string) (*ChatV1ServiceRole, error) { + path := "/v1/Services/{ServiceSid}/Roles/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV1ServiceRole{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchService Method for FetchService + * @param sid The Twilio-provided string that uniquely identifies the Service resource to fetch. +@return ChatV1Service +*/ +func (c *DefaultApiService) FetchService(sid string) (*ChatV1Service, error) { + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchUser Method for FetchUser + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from. + * @param sid The Twilio-provided string that uniquely identifies the User resource to fetch. +@return ChatV1ServiceUser +*/ +func (c *DefaultApiService) FetchUser(serviceSid string, sid string) (*ChatV1ServiceUser, error) { + path := "/v1/Services/{ServiceSid}/Users/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV1ServiceUser{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListChannelParams Optional parameters for the method 'ListChannel' +type ListChannelParams struct { + Type *[]string `json:"Type,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListChannel Method for ListChannel + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. + * @param optional nil or *ListChannelOpts - Optional Parameters: + * @param "Type" ([]string) - The visibility of the Channels to read. Can be: `public` or `private` and defaults to `public`. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ChatV1ServiceChannelReadResponse +*/ +func (c *DefaultApiService) ListChannel(serviceSid string, params *ListChannelParams) (*ChatV1ServiceChannelReadResponse, error) { + path := "/v1/Services/{ServiceSid}/Channels" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Type != nil { + data.Set("Type", string(*params.Type)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV1ServiceChannelReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListCredentialParams Optional parameters for the method 'ListCredential' +type ListCredentialParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListCredential Method for ListCredential + * @param optional nil or *ListCredentialOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ChatV1CredentialReadResponse +*/ +func (c *DefaultApiService) ListCredential(params *ListCredentialParams) (*ChatV1CredentialReadResponse, error) { + path := "/v1/Credentials" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV1CredentialReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListInviteParams Optional parameters for the method 'ListInvite' +type ListInviteParams struct { + Identity *[]string `json:"Identity,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListInvite Method for ListInvite + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. + * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the resources to read belong to. + * @param optional nil or *ListInviteOpts - Optional Parameters: + * @param "Identity" ([]string) - The [User](https://www.twilio.com/docs/api/chat/rest/v1/user)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) for more details. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ChatV1ServiceChannelInviteReadResponse +*/ +func (c *DefaultApiService) ListInvite(serviceSid string, channelSid string, params *ListInviteParams) (*ChatV1ServiceChannelInviteReadResponse, error) { + path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Identity != nil { + data.Set("Identity", string(*params.Identity)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV1ServiceChannelInviteReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListMemberParams Optional parameters for the method 'ListMember' +type ListMemberParams struct { + Identity *[]string `json:"Identity,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListMember Method for ListMember + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. + * @param channelSid The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the members to read belong to. Can be the Channel resource's `sid` or `unique_name` value. + * @param optional nil or *ListMemberOpts - Optional Parameters: + * @param "Identity" ([]string) - The [User](https://www.twilio.com/docs/api/chat/rest/v1/user)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) for more details. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ChatV1ServiceChannelMemberReadResponse +*/ +func (c *DefaultApiService) ListMember(serviceSid string, channelSid string, params *ListMemberParams) (*ChatV1ServiceChannelMemberReadResponse, error) { + path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Identity != nil { + data.Set("Identity", string(*params.Identity)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV1ServiceChannelMemberReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListMessageParams Optional parameters for the method 'ListMessage' +type ListMessageParams struct { + Order *string `json:"Order,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListMessage Method for ListMessage + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. + * @param channelSid The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message to read belongs to. Can be the Channel's `sid` or `unique_name`. + * @param optional nil or *ListMessageOpts - Optional Parameters: + * @param "Order" (string) - The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending) with `asc` as the default. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ChatV1ServiceChannelMessageReadResponse +*/ +func (c *DefaultApiService) ListMessage(serviceSid string, channelSid string, params *ListMessageParams) (*ChatV1ServiceChannelMessageReadResponse, error) { + path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Order != nil { + data.Set("Order", *params.Order) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV1ServiceChannelMessageReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListRoleParams Optional parameters for the method 'ListRole' +type ListRoleParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListRole Method for ListRole + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. + * @param optional nil or *ListRoleOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ChatV1ServiceRoleReadResponse +*/ +func (c *DefaultApiService) ListRole(serviceSid string, params *ListRoleParams) (*ChatV1ServiceRoleReadResponse, error) { + path := "/v1/Services/{ServiceSid}/Roles" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV1ServiceRoleReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListServiceParams Optional parameters for the method 'ListService' +type ListServiceParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListService Method for ListService + * @param optional nil or *ListServiceOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ChatV1ServiceReadResponse +*/ +func (c *DefaultApiService) ListService(params *ListServiceParams) (*ChatV1ServiceReadResponse, error) { + path := "/v1/Services" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV1ServiceReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListUserParams Optional parameters for the method 'ListUser' +type ListUserParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListUser Method for ListUser + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. + * @param optional nil or *ListUserOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ChatV1ServiceUserReadResponse +*/ +func (c *DefaultApiService) ListUser(serviceSid string, params *ListUserParams) (*ChatV1ServiceUserReadResponse, error) { + path := "/v1/Services/{ServiceSid}/Users" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV1ServiceUserReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListUserChannelParams Optional parameters for the method 'ListUserChannel' +type ListUserChannelParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListUserChannel Method for ListUserChannel +List all Channels for a given User. + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. + * @param userSid The SID of the [User](https://www.twilio.com/docs/api/chat/rest/users) to read the User Channel resources from. + * @param optional nil or *ListUserChannelOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ChatV1ServiceUserUserChannelReadResponse +*/ +func (c *DefaultApiService) ListUserChannel(serviceSid string, userSid string, params *ListUserChannelParams) (*ChatV1ServiceUserUserChannelReadResponse, error) { + path := "/v1/Services/{ServiceSid}/Users/{UserSid}/Channels" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV1ServiceUserUserChannelReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateChannelParams Optional parameters for the method 'UpdateChannel' +type UpdateChannelParams struct { + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +UpdateChannel Method for UpdateChannel + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to update the resource from. + * @param sid The Twilio-provided string that uniquely identifies the Channel resource to update. + * @param optional nil or *UpdateChannelOpts - Optional Parameters: + * @param "Attributes" (string) - A valid JSON string that contains application-specific data. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. + * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. This value must be 64 characters or less in length and be unique within the Service. +@return ChatV1ServiceChannel +*/ +func (c *DefaultApiService) UpdateChannel(serviceSid string, sid string, params *UpdateChannelParams) (*ChatV1ServiceChannel, error) { + path := "/v1/Services/{ServiceSid}/Channels/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV1ServiceChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateCredentialParams Optional parameters for the method 'UpdateCredential' +type UpdateCredentialParams struct { + ApiKey *string `json:"ApiKey,omitempty"` + Certificate *string `json:"Certificate,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PrivateKey *string `json:"PrivateKey,omitempty"` + Sandbox *bool `json:"Sandbox,omitempty"` + Secret *string `json:"Secret,omitempty"` +} + +/* +UpdateCredential Method for UpdateCredential + * @param sid The Twilio-provided string that uniquely identifies the Credential resource to update. + * @param optional nil or *UpdateCredentialOpts - Optional Parameters: + * @param "ApiKey" (string) - [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. + * @param "Certificate" (string) - [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A== -----END CERTIFICATE-----` + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. + * @param "PrivateKey" (string) - [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR. -----END RSA PRIVATE KEY-----` + * @param "Sandbox" (bool) - [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. + * @param "Secret" (string) - [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. +@return ChatV1Credential +*/ +func (c *DefaultApiService) UpdateCredential(sid string, params *UpdateCredentialParams) (*ChatV1Credential, error) { + path := "/v1/Credentials/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ApiKey != nil { + data.Set("ApiKey", *params.ApiKey) + } + if params != nil && params.Certificate != nil { + data.Set("Certificate", *params.Certificate) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PrivateKey != nil { + data.Set("PrivateKey", *params.PrivateKey) + } + if params != nil && params.Sandbox != nil { + data.Set("Sandbox", string(*params.Sandbox)) + } + if params != nil && params.Secret != nil { + data.Set("Secret", *params.Secret) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV1Credential{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateMemberParams Optional parameters for the method 'UpdateMember' +type UpdateMemberParams struct { + LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` +} + +/* +UpdateMember Method for UpdateMember + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to update the resource from. + * @param channelSid The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the member to update belongs to. Can be the Channel resource's `sid` or `unique_name`. + * @param sid The Twilio-provided string that uniquely identifies the Member resource to update. + * @param optional nil or *UpdateMemberOpts - Optional Parameters: + * @param "LastConsumedMessageIndex" (*int32) - The index of the last [Message](https://www.twilio.com/docs/api/chat/rest/messages) that the Member has read within the [Channel](https://www.twilio.com/docs/api/chat/rest/channels). + * @param "RoleSid" (string) - The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/api/services). +@return ChatV1ServiceChannelMember +*/ +func (c *DefaultApiService) UpdateMember(serviceSid string, channelSid string, sid string, params *UpdateMemberParams) (*ChatV1ServiceChannelMember, error) { + path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.LastConsumedMessageIndex != nil { + data.Set("LastConsumedMessageIndex", string(*params.LastConsumedMessageIndex)) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV1ServiceChannelMember{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateMessageParams Optional parameters for the method 'UpdateMessage' +type UpdateMessageParams struct { + Attributes *string `json:"Attributes,omitempty"` + Body *string `json:"Body,omitempty"` +} + +/* +UpdateMessage Method for UpdateMessage + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to update the resource from. + * @param channelSid The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message belongs to. Can be the Channel's `sid` or `unique_name`. + * @param sid The Twilio-provided string that uniquely identifies the Message resource to update. + * @param optional nil or *UpdateMessageOpts - Optional Parameters: + * @param "Attributes" (string) - A valid JSON string that contains application-specific data. + * @param "Body" (string) - The message to send to the channel. Can also be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string. +@return ChatV1ServiceChannelMessage +*/ +func (c *DefaultApiService) UpdateMessage(serviceSid string, channelSid string, sid string, params *UpdateMessageParams) (*ChatV1ServiceChannelMessage, error) { + path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.Body != nil { + data.Set("Body", *params.Body) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV1ServiceChannelMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateRoleParams Optional parameters for the method 'UpdateRole' +type UpdateRoleParams struct { + Permission *[]string `json:"Permission,omitempty"` +} + +/* +UpdateRole Method for UpdateRole + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to update the resource from. + * @param sid The Twilio-provided string that uniquely identifies the Role resource to update. + * @param optional nil or *UpdateRoleOpts - Optional Parameters: + * @param "Permission" ([]string) - A permission that you grant to the role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type` and are described in the documentation. +@return ChatV1ServiceRole +*/ +func (c *DefaultApiService) UpdateRole(serviceSid string, sid string, params *UpdateRoleParams) (*ChatV1ServiceRole, error) { + path := "/v1/Services/{ServiceSid}/Roles/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Permission != nil { + data.Set("Permission", *params.Permission) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV1ServiceRole{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateServiceParams Optional parameters for the method 'UpdateService' +type UpdateServiceParams struct { + ConsumptionReportInterval *int32 `json:"ConsumptionReportInterval,omitempty"` + DefaultChannelCreatorRoleSid *string `json:"DefaultChannelCreatorRoleSid,omitempty"` + DefaultChannelRoleSid *string `json:"DefaultChannelRoleSid,omitempty"` + DefaultServiceRoleSid *string `json:"DefaultServiceRoleSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Limits.ChannelMembers *int32 `json:"Limits.ChannelMembers,omitempty"` + Limits.UserChannels *int32 `json:"Limits.UserChannels,omitempty"` + Notifications.AddedToChannel.Enabled *bool `json:"Notifications.AddedToChannel.Enabled,omitempty"` + Notifications.AddedToChannel.Template *string `json:"Notifications.AddedToChannel.Template,omitempty"` + Notifications.InvitedToChannel.Enabled *bool `json:"Notifications.InvitedToChannel.Enabled,omitempty"` + Notifications.InvitedToChannel.Template *string `json:"Notifications.InvitedToChannel.Template,omitempty"` + Notifications.NewMessage.Enabled *bool `json:"Notifications.NewMessage.Enabled,omitempty"` + Notifications.NewMessage.Template *string `json:"Notifications.NewMessage.Template,omitempty"` + Notifications.RemovedFromChannel.Enabled *bool `json:"Notifications.RemovedFromChannel.Enabled,omitempty"` + Notifications.RemovedFromChannel.Template *string `json:"Notifications.RemovedFromChannel.Template,omitempty"` + PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"` + PreWebhookUrl *string `json:"PreWebhookUrl,omitempty"` + ReachabilityEnabled *bool `json:"ReachabilityEnabled,omitempty"` + ReadStatusEnabled *bool `json:"ReadStatusEnabled,omitempty"` + TypingIndicatorTimeout *int32 `json:"TypingIndicatorTimeout,omitempty"` + WebhookFilters *[]string `json:"WebhookFilters,omitempty"` + WebhookMethod *string `json:"WebhookMethod,omitempty"` + Webhooks.OnChannelAdd.Method *string `json:"Webhooks.OnChannelAdd.Method,omitempty"` + Webhooks.OnChannelAdd.Url *string `json:"Webhooks.OnChannelAdd.Url,omitempty"` + Webhooks.OnChannelAdded.Method *string `json:"Webhooks.OnChannelAdded.Method,omitempty"` + Webhooks.OnChannelAdded.Url *string `json:"Webhooks.OnChannelAdded.Url,omitempty"` + Webhooks.OnChannelDestroy.Method *string `json:"Webhooks.OnChannelDestroy.Method,omitempty"` + Webhooks.OnChannelDestroy.Url *string `json:"Webhooks.OnChannelDestroy.Url,omitempty"` + Webhooks.OnChannelDestroyed.Method *string `json:"Webhooks.OnChannelDestroyed.Method,omitempty"` + Webhooks.OnChannelDestroyed.Url *string `json:"Webhooks.OnChannelDestroyed.Url,omitempty"` + Webhooks.OnChannelUpdate.Method *string `json:"Webhooks.OnChannelUpdate.Method,omitempty"` + Webhooks.OnChannelUpdate.Url *string `json:"Webhooks.OnChannelUpdate.Url,omitempty"` + Webhooks.OnChannelUpdated.Method *string `json:"Webhooks.OnChannelUpdated.Method,omitempty"` + Webhooks.OnChannelUpdated.Url *string `json:"Webhooks.OnChannelUpdated.Url,omitempty"` + Webhooks.OnMemberAdd.Method *string `json:"Webhooks.OnMemberAdd.Method,omitempty"` + Webhooks.OnMemberAdd.Url *string `json:"Webhooks.OnMemberAdd.Url,omitempty"` + Webhooks.OnMemberAdded.Method *string `json:"Webhooks.OnMemberAdded.Method,omitempty"` + Webhooks.OnMemberAdded.Url *string `json:"Webhooks.OnMemberAdded.Url,omitempty"` + Webhooks.OnMemberRemove.Method *string `json:"Webhooks.OnMemberRemove.Method,omitempty"` + Webhooks.OnMemberRemove.Url *string `json:"Webhooks.OnMemberRemove.Url,omitempty"` + Webhooks.OnMemberRemoved.Method *string `json:"Webhooks.OnMemberRemoved.Method,omitempty"` + Webhooks.OnMemberRemoved.Url *string `json:"Webhooks.OnMemberRemoved.Url,omitempty"` + Webhooks.OnMessageRemove.Method *string `json:"Webhooks.OnMessageRemove.Method,omitempty"` + Webhooks.OnMessageRemove.Url *string `json:"Webhooks.OnMessageRemove.Url,omitempty"` + Webhooks.OnMessageRemoved.Method *string `json:"Webhooks.OnMessageRemoved.Method,omitempty"` + Webhooks.OnMessageRemoved.Url *string `json:"Webhooks.OnMessageRemoved.Url,omitempty"` + Webhooks.OnMessageSend.Method *string `json:"Webhooks.OnMessageSend.Method,omitempty"` + Webhooks.OnMessageSend.Url *string `json:"Webhooks.OnMessageSend.Url,omitempty"` + Webhooks.OnMessageSent.Method *string `json:"Webhooks.OnMessageSent.Method,omitempty"` + Webhooks.OnMessageSent.Url *string `json:"Webhooks.OnMessageSent.Url,omitempty"` + Webhooks.OnMessageUpdate.Method *string `json:"Webhooks.OnMessageUpdate.Method,omitempty"` + Webhooks.OnMessageUpdate.Url *string `json:"Webhooks.OnMessageUpdate.Url,omitempty"` + Webhooks.OnMessageUpdated.Method *string `json:"Webhooks.OnMessageUpdated.Method,omitempty"` + Webhooks.OnMessageUpdated.Url *string `json:"Webhooks.OnMessageUpdated.Url,omitempty"` +} + +/* +UpdateService Method for UpdateService + * @param sid The Twilio-provided string that uniquely identifies the Service resource to update. + * @param optional nil or *UpdateServiceOpts - Optional Parameters: + * @param "ConsumptionReportInterval" (int32) - DEPRECATED. The interval in seconds between consumption reports submission batches from client endpoints. + * @param "DefaultChannelCreatorRoleSid" (string) - The channel role assigned to a channel creator when they join a new channel. See the [Roles endpoint](https://www.twilio.com/docs/chat/api/roles) for more details. + * @param "DefaultChannelRoleSid" (string) - The channel role assigned to users when they are added to a channel. See the [Roles endpoint](https://www.twilio.com/docs/chat/api/roles) for more details. + * @param "DefaultServiceRoleSid" (string) - The service role assigned to users when they are added to the service. See the [Roles endpoint](https://www.twilio.com/docs/chat/api/roles) for more details. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. + * @param "Limits.ChannelMembers" (int32) - The maximum number of Members that can be added to Channels within this Service. Can be up to 1,000. + * @param "Limits.UserChannels" (int32) - The maximum number of Channels Users can be a Member of within this Service. Can be up to 1,000. + * @param "Notifications.AddedToChannel.Enabled" (bool) - Whether to send a notification when a member is added to a channel. Can be: `true` or `false` and the default is `false`. + * @param "Notifications.AddedToChannel.Template" (string) - The template to use to create the notification text displayed when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. + * @param "Notifications.InvitedToChannel.Enabled" (bool) - Whether to send a notification when a user is invited to a channel. Can be: `true` or `false` and the default is `false`. + * @param "Notifications.InvitedToChannel.Template" (string) - The template to use to create the notification text displayed when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. + * @param "Notifications.NewMessage.Enabled" (bool) - Whether to send a notification when a new message is added to a channel. Can be: `true` or `false` and the default is `false`. + * @param "Notifications.NewMessage.Template" (string) - The template to use to create the notification text displayed when a new message is added to a channel and `notifications.new_message.enabled` is `true`. + * @param "Notifications.RemovedFromChannel.Enabled" (bool) - Whether to send a notification to a user when they are removed from a channel. Can be: `true` or `false` and the default is `false`. + * @param "Notifications.RemovedFromChannel.Template" (string) - The template to use to create the notification text displayed to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. + * @param "PostWebhookUrl" (string) - The URL for post-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more details. + * @param "PreWebhookUrl" (string) - The URL for pre-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more details. + * @param "ReachabilityEnabled" (bool) - Whether to enable the [Reachability Indicator](https://www.twilio.com/docs/chat/reachability-indicator) for this Service instance. The default is `false`. + * @param "ReadStatusEnabled" (bool) - Whether to enable the [Message Consumption Horizon](https://www.twilio.com/docs/chat/consumption-horizon) feature. The default is `true`. + * @param "TypingIndicatorTimeout" (int32) - How long in seconds after a `started typing` event until clients should assume that user is no longer typing, even if no `ended typing` message was received. The default is 5 seconds. + * @param "WebhookFilters" ([]string) - The list of WebHook events that are enabled for this Service instance. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. + * @param "WebhookMethod" (string) - The HTTP method to use for calls to the `pre_webhook_url` and `post_webhook_url` webhooks. Can be: `POST` or `GET` and the default is `POST`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. + * @param "Webhooks.OnChannelAdd.Method" (string) - The HTTP method to use when calling the `webhooks.on_channel_add.url`. + * @param "Webhooks.OnChannelAdd.Url" (string) - The URL of the webhook to call in response to the `on_channel_add` event using the `webhooks.on_channel_add.method` HTTP method. + * @param "Webhooks.OnChannelAdded.Method" (string) - The URL of the webhook to call in response to the `on_channel_added` event`. + * @param "Webhooks.OnChannelAdded.Url" (string) - The URL of the webhook to call in response to the `on_channel_added` event using the `webhooks.on_channel_added.method` HTTP method. + * @param "Webhooks.OnChannelDestroy.Method" (string) - The HTTP method to use when calling the `webhooks.on_channel_destroy.url`. + * @param "Webhooks.OnChannelDestroy.Url" (string) - The URL of the webhook to call in response to the `on_channel_destroy` event using the `webhooks.on_channel_destroy.method` HTTP method. + * @param "Webhooks.OnChannelDestroyed.Method" (string) - The HTTP method to use when calling the `webhooks.on_channel_destroyed.url`. + * @param "Webhooks.OnChannelDestroyed.Url" (string) - The URL of the webhook to call in response to the `on_channel_added` event using the `webhooks.on_channel_destroyed.method` HTTP method. + * @param "Webhooks.OnChannelUpdate.Method" (string) - The HTTP method to use when calling the `webhooks.on_channel_update.url`. + * @param "Webhooks.OnChannelUpdate.Url" (string) - The URL of the webhook to call in response to the `on_channel_update` event using the `webhooks.on_channel_update.method` HTTP method. + * @param "Webhooks.OnChannelUpdated.Method" (string) - The HTTP method to use when calling the `webhooks.on_channel_updated.url`. + * @param "Webhooks.OnChannelUpdated.Url" (string) - The URL of the webhook to call in response to the `on_channel_updated` event using the `webhooks.on_channel_updated.method` HTTP method. + * @param "Webhooks.OnMemberAdd.Method" (string) - The HTTP method to use when calling the `webhooks.on_member_add.url`. + * @param "Webhooks.OnMemberAdd.Url" (string) - The URL of the webhook to call in response to the `on_member_add` event using the `webhooks.on_member_add.method` HTTP method. + * @param "Webhooks.OnMemberAdded.Method" (string) - The HTTP method to use when calling the `webhooks.on_channel_updated.url`. + * @param "Webhooks.OnMemberAdded.Url" (string) - The URL of the webhook to call in response to the `on_channel_updated` event using the `webhooks.on_channel_updated.method` HTTP method. + * @param "Webhooks.OnMemberRemove.Method" (string) - The HTTP method to use when calling the `webhooks.on_member_remove.url`. + * @param "Webhooks.OnMemberRemove.Url" (string) - The URL of the webhook to call in response to the `on_member_remove` event using the `webhooks.on_member_remove.method` HTTP method. + * @param "Webhooks.OnMemberRemoved.Method" (string) - The HTTP method to use when calling the `webhooks.on_member_removed.url`. + * @param "Webhooks.OnMemberRemoved.Url" (string) - The URL of the webhook to call in response to the `on_member_removed` event using the `webhooks.on_member_removed.method` HTTP method. + * @param "Webhooks.OnMessageRemove.Method" (string) - The HTTP method to use when calling the `webhooks.on_message_remove.url`. + * @param "Webhooks.OnMessageRemove.Url" (string) - The URL of the webhook to call in response to the `on_message_remove` event using the `webhooks.on_message_remove.method` HTTP method. + * @param "Webhooks.OnMessageRemoved.Method" (string) - The HTTP method to use when calling the `webhooks.on_message_removed.url`. + * @param "Webhooks.OnMessageRemoved.Url" (string) - The URL of the webhook to call in response to the `on_message_removed` event using the `webhooks.on_message_removed.method` HTTP method. + * @param "Webhooks.OnMessageSend.Method" (string) - The HTTP method to use when calling the `webhooks.on_message_send.url`. + * @param "Webhooks.OnMessageSend.Url" (string) - The URL of the webhook to call in response to the `on_message_send` event using the `webhooks.on_message_send.method` HTTP method. + * @param "Webhooks.OnMessageSent.Method" (string) - The URL of the webhook to call in response to the `on_message_sent` event`. + * @param "Webhooks.OnMessageSent.Url" (string) - The URL of the webhook to call in response to the `on_message_sent` event using the `webhooks.on_message_sent.method` HTTP method. + * @param "Webhooks.OnMessageUpdate.Method" (string) - The HTTP method to use when calling the `webhooks.on_message_update.url`. + * @param "Webhooks.OnMessageUpdate.Url" (string) - The URL of the webhook to call in response to the `on_message_update` event using the `webhooks.on_message_update.method` HTTP method. + * @param "Webhooks.OnMessageUpdated.Method" (string) - The HTTP method to use when calling the `webhooks.on_message_updated.url`. + * @param "Webhooks.OnMessageUpdated.Url" (string) - The URL of the webhook to call in response to the `on_message_updated` event using the `webhooks.on_message_updated.method` HTTP method. +@return ChatV1Service +*/ +func (c *DefaultApiService) UpdateService(sid string, params *UpdateServiceParams) (*ChatV1Service, error) { + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ConsumptionReportInterval != nil { + data.Set("ConsumptionReportInterval", string(*params.ConsumptionReportInterval)) + } + if params != nil && params.DefaultChannelCreatorRoleSid != nil { + data.Set("DefaultChannelCreatorRoleSid", *params.DefaultChannelCreatorRoleSid) + } + if params != nil && params.DefaultChannelRoleSid != nil { + data.Set("DefaultChannelRoleSid", *params.DefaultChannelRoleSid) + } + if params != nil && params.DefaultServiceRoleSid != nil { + data.Set("DefaultServiceRoleSid", *params.DefaultServiceRoleSid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Limits.ChannelMembers != nil { + data.Set("Limits.ChannelMembers", string(*params.Limits.ChannelMembers)) + } + if params != nil && params.Limits.UserChannels != nil { + data.Set("Limits.UserChannels", string(*params.Limits.UserChannels)) + } + if params != nil && params.Notifications.AddedToChannel.Enabled != nil { + data.Set("Notifications.AddedToChannel.Enabled", string(*params.Notifications.AddedToChannel.Enabled)) + } + if params != nil && params.Notifications.AddedToChannel.Template != nil { + data.Set("Notifications.AddedToChannel.Template", *params.Notifications.AddedToChannel.Template) + } + if params != nil && params.Notifications.InvitedToChannel.Enabled != nil { + data.Set("Notifications.InvitedToChannel.Enabled", string(*params.Notifications.InvitedToChannel.Enabled)) + } + if params != nil && params.Notifications.InvitedToChannel.Template != nil { + data.Set("Notifications.InvitedToChannel.Template", *params.Notifications.InvitedToChannel.Template) + } + if params != nil && params.Notifications.NewMessage.Enabled != nil { + data.Set("Notifications.NewMessage.Enabled", string(*params.Notifications.NewMessage.Enabled)) + } + if params != nil && params.Notifications.NewMessage.Template != nil { + data.Set("Notifications.NewMessage.Template", *params.Notifications.NewMessage.Template) + } + if params != nil && params.Notifications.RemovedFromChannel.Enabled != nil { + data.Set("Notifications.RemovedFromChannel.Enabled", string(*params.Notifications.RemovedFromChannel.Enabled)) + } + if params != nil && params.Notifications.RemovedFromChannel.Template != nil { + data.Set("Notifications.RemovedFromChannel.Template", *params.Notifications.RemovedFromChannel.Template) + } + if params != nil && params.PostWebhookUrl != nil { + data.Set("PostWebhookUrl", *params.PostWebhookUrl) + } + if params != nil && params.PreWebhookUrl != nil { + data.Set("PreWebhookUrl", *params.PreWebhookUrl) + } + if params != nil && params.ReachabilityEnabled != nil { + data.Set("ReachabilityEnabled", string(*params.ReachabilityEnabled)) + } + if params != nil && params.ReadStatusEnabled != nil { + data.Set("ReadStatusEnabled", string(*params.ReadStatusEnabled)) + } + if params != nil && params.TypingIndicatorTimeout != nil { + data.Set("TypingIndicatorTimeout", string(*params.TypingIndicatorTimeout)) + } + if params != nil && params.WebhookFilters != nil { + data.Set("WebhookFilters", *params.WebhookFilters) + } + if params != nil && params.WebhookMethod != nil { + data.Set("WebhookMethod", *params.WebhookMethod) + } + if params != nil && params.Webhooks.OnChannelAdd.Method != nil { + data.Set("Webhooks.OnChannelAdd.Method", *params.Webhooks.OnChannelAdd.Method) + } + if params != nil && params.Webhooks.OnChannelAdd.Url != nil { + data.Set("Webhooks.OnChannelAdd.Url", *params.Webhooks.OnChannelAdd.Url) + } + if params != nil && params.Webhooks.OnChannelAdded.Method != nil { + data.Set("Webhooks.OnChannelAdded.Method", *params.Webhooks.OnChannelAdded.Method) + } + if params != nil && params.Webhooks.OnChannelAdded.Url != nil { + data.Set("Webhooks.OnChannelAdded.Url", *params.Webhooks.OnChannelAdded.Url) + } + if params != nil && params.Webhooks.OnChannelDestroy.Method != nil { + data.Set("Webhooks.OnChannelDestroy.Method", *params.Webhooks.OnChannelDestroy.Method) + } + if params != nil && params.Webhooks.OnChannelDestroy.Url != nil { + data.Set("Webhooks.OnChannelDestroy.Url", *params.Webhooks.OnChannelDestroy.Url) + } + if params != nil && params.Webhooks.OnChannelDestroyed.Method != nil { + data.Set("Webhooks.OnChannelDestroyed.Method", *params.Webhooks.OnChannelDestroyed.Method) + } + if params != nil && params.Webhooks.OnChannelDestroyed.Url != nil { + data.Set("Webhooks.OnChannelDestroyed.Url", *params.Webhooks.OnChannelDestroyed.Url) + } + if params != nil && params.Webhooks.OnChannelUpdate.Method != nil { + data.Set("Webhooks.OnChannelUpdate.Method", *params.Webhooks.OnChannelUpdate.Method) + } + if params != nil && params.Webhooks.OnChannelUpdate.Url != nil { + data.Set("Webhooks.OnChannelUpdate.Url", *params.Webhooks.OnChannelUpdate.Url) + } + if params != nil && params.Webhooks.OnChannelUpdated.Method != nil { + data.Set("Webhooks.OnChannelUpdated.Method", *params.Webhooks.OnChannelUpdated.Method) + } + if params != nil && params.Webhooks.OnChannelUpdated.Url != nil { + data.Set("Webhooks.OnChannelUpdated.Url", *params.Webhooks.OnChannelUpdated.Url) + } + if params != nil && params.Webhooks.OnMemberAdd.Method != nil { + data.Set("Webhooks.OnMemberAdd.Method", *params.Webhooks.OnMemberAdd.Method) + } + if params != nil && params.Webhooks.OnMemberAdd.Url != nil { + data.Set("Webhooks.OnMemberAdd.Url", *params.Webhooks.OnMemberAdd.Url) + } + if params != nil && params.Webhooks.OnMemberAdded.Method != nil { + data.Set("Webhooks.OnMemberAdded.Method", *params.Webhooks.OnMemberAdded.Method) + } + if params != nil && params.Webhooks.OnMemberAdded.Url != nil { + data.Set("Webhooks.OnMemberAdded.Url", *params.Webhooks.OnMemberAdded.Url) + } + if params != nil && params.Webhooks.OnMemberRemove.Method != nil { + data.Set("Webhooks.OnMemberRemove.Method", *params.Webhooks.OnMemberRemove.Method) + } + if params != nil && params.Webhooks.OnMemberRemove.Url != nil { + data.Set("Webhooks.OnMemberRemove.Url", *params.Webhooks.OnMemberRemove.Url) + } + if params != nil && params.Webhooks.OnMemberRemoved.Method != nil { + data.Set("Webhooks.OnMemberRemoved.Method", *params.Webhooks.OnMemberRemoved.Method) + } + if params != nil && params.Webhooks.OnMemberRemoved.Url != nil { + data.Set("Webhooks.OnMemberRemoved.Url", *params.Webhooks.OnMemberRemoved.Url) + } + if params != nil && params.Webhooks.OnMessageRemove.Method != nil { + data.Set("Webhooks.OnMessageRemove.Method", *params.Webhooks.OnMessageRemove.Method) + } + if params != nil && params.Webhooks.OnMessageRemove.Url != nil { + data.Set("Webhooks.OnMessageRemove.Url", *params.Webhooks.OnMessageRemove.Url) + } + if params != nil && params.Webhooks.OnMessageRemoved.Method != nil { + data.Set("Webhooks.OnMessageRemoved.Method", *params.Webhooks.OnMessageRemoved.Method) + } + if params != nil && params.Webhooks.OnMessageRemoved.Url != nil { + data.Set("Webhooks.OnMessageRemoved.Url", *params.Webhooks.OnMessageRemoved.Url) + } + if params != nil && params.Webhooks.OnMessageSend.Method != nil { + data.Set("Webhooks.OnMessageSend.Method", *params.Webhooks.OnMessageSend.Method) + } + if params != nil && params.Webhooks.OnMessageSend.Url != nil { + data.Set("Webhooks.OnMessageSend.Url", *params.Webhooks.OnMessageSend.Url) + } + if params != nil && params.Webhooks.OnMessageSent.Method != nil { + data.Set("Webhooks.OnMessageSent.Method", *params.Webhooks.OnMessageSent.Method) + } + if params != nil && params.Webhooks.OnMessageSent.Url != nil { + data.Set("Webhooks.OnMessageSent.Url", *params.Webhooks.OnMessageSent.Url) + } + if params != nil && params.Webhooks.OnMessageUpdate.Method != nil { + data.Set("Webhooks.OnMessageUpdate.Method", *params.Webhooks.OnMessageUpdate.Method) + } + if params != nil && params.Webhooks.OnMessageUpdate.Url != nil { + data.Set("Webhooks.OnMessageUpdate.Url", *params.Webhooks.OnMessageUpdate.Url) + } + if params != nil && params.Webhooks.OnMessageUpdated.Method != nil { + data.Set("Webhooks.OnMessageUpdated.Method", *params.Webhooks.OnMessageUpdated.Method) + } + if params != nil && params.Webhooks.OnMessageUpdated.Url != nil { + data.Set("Webhooks.OnMessageUpdated.Url", *params.Webhooks.OnMessageUpdated.Url) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateUserParams Optional parameters for the method 'UpdateUser' +type UpdateUserParams struct { + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` +} + +/* +UpdateUser Method for UpdateUser + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to update the resource from. + * @param sid The Twilio-provided string that uniquely identifies the User resource to update. + * @param optional nil or *UpdateUserOpts - Optional Parameters: + * @param "Attributes" (string) - A valid JSON string that contains application-specific data. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It is often used for display purposes. + * @param "RoleSid" (string) - The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) assigned to this user. +@return ChatV1ServiceUser +*/ +func (c *DefaultApiService) UpdateUser(serviceSid string, sid string, params *UpdateUserParams) (*ChatV1ServiceUser, error) { + path := "/v1/Services/{ServiceSid}/Users/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV1ServiceUser{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/chat/v1/docs/ChatV1Credential.md b/rest/chat/v1/docs/ChatV1Credential.md new file mode 100644 index 000000000..1dc156e3e --- /dev/null +++ b/rest/chat/v1/docs/ChatV1Credential.md @@ -0,0 +1,18 @@ +# ChatV1Credential + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Sandbox** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Type** | **string** | | [optional] +**Url** | **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/rest/chat/v1/docs/ChatV1CredentialReadResponse.md b/rest/chat/v1/docs/ChatV1CredentialReadResponse.md new file mode 100644 index 000000000..095ed2a68 --- /dev/null +++ b/rest/chat/v1/docs/ChatV1CredentialReadResponse.md @@ -0,0 +1,12 @@ +# ChatV1CredentialReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Credentials** | [**[]ChatV1Credential**](chat.v1.credential.md) | | [optional] +**Meta** | [**ChatV1CredentialReadResponseMeta**](chat_v1_credentialReadResponse_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/rest/chat/v1/docs/ChatV1CredentialReadResponseMeta.md b/rest/chat/v1/docs/ChatV1CredentialReadResponseMeta.md new file mode 100644 index 000000000..4b381d339 --- /dev/null +++ b/rest/chat/v1/docs/ChatV1CredentialReadResponseMeta.md @@ -0,0 +1,17 @@ +# ChatV1CredentialReadResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/chat/v1/docs/ChatV1Service.md b/rest/chat/v1/docs/ChatV1Service.md new file mode 100644 index 000000000..bf5a91635 --- /dev/null +++ b/rest/chat/v1/docs/ChatV1Service.md @@ -0,0 +1,31 @@ +# ChatV1Service + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ConsumptionReportInterval** | **int32** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**DefaultChannelCreatorRoleSid** | **string** | | [optional] +**DefaultChannelRoleSid** | **string** | | [optional] +**DefaultServiceRoleSid** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**Limits** | [**map[string]interface{}**](.md) | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Notifications** | [**map[string]interface{}**](.md) | | [optional] +**PostWebhookUrl** | **string** | | [optional] +**PreWebhookUrl** | **string** | | [optional] +**ReachabilityEnabled** | **bool** | | [optional] +**ReadStatusEnabled** | **bool** | | [optional] +**Sid** | **string** | | [optional] +**TypingIndicatorTimeout** | **int32** | | [optional] +**Url** | **string** | | [optional] +**WebhookFilters** | **[]string** | | [optional] +**WebhookMethod** | **string** | | [optional] +**Webhooks** | [**map[string]interface{}**](.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/rest/chat/v1/docs/ChatV1ServiceChannel.md b/rest/chat/v1/docs/ChatV1ServiceChannel.md new file mode 100644 index 000000000..13e1e4dbd --- /dev/null +++ b/rest/chat/v1/docs/ChatV1ServiceChannel.md @@ -0,0 +1,24 @@ +# ChatV1ServiceChannel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Attributes** | **string** | | [optional] +**CreatedBy** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**MembersCount** | **int32** | | [optional] +**MessagesCount** | **int32** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Type** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **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/rest/chat/v1/docs/ChatV1ServiceChannelInvite.md b/rest/chat/v1/docs/ChatV1ServiceChannelInvite.md new file mode 100644 index 000000000..889eaf51f --- /dev/null +++ b/rest/chat/v1/docs/ChatV1ServiceChannelInvite.md @@ -0,0 +1,20 @@ +# ChatV1ServiceChannelInvite + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ChannelSid** | **string** | | [optional] +**CreatedBy** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Identity** | **string** | | [optional] +**RoleSid** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/chat/v1/docs/ChatV1ServiceChannelInviteReadResponse.md b/rest/chat/v1/docs/ChatV1ServiceChannelInviteReadResponse.md new file mode 100644 index 000000000..3cfd94a9d --- /dev/null +++ b/rest/chat/v1/docs/ChatV1ServiceChannelInviteReadResponse.md @@ -0,0 +1,12 @@ +# ChatV1ServiceChannelInviteReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Invites** | [**[]ChatV1ServiceChannelInvite**](chat.v1.service.channel.invite.md) | | [optional] +**Meta** | [**ChatV1CredentialReadResponseMeta**](chat_v1_credentialReadResponse_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/rest/chat/v1/docs/ChatV1ServiceChannelMember.md b/rest/chat/v1/docs/ChatV1ServiceChannelMember.md new file mode 100644 index 000000000..d95356011 --- /dev/null +++ b/rest/chat/v1/docs/ChatV1ServiceChannelMember.md @@ -0,0 +1,21 @@ +# ChatV1ServiceChannelMember + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ChannelSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Identity** | **string** | | [optional] +**LastConsumedMessageIndex** | Pointer to **int32** | | [optional] +**LastConsumptionTimestamp** | [**time.Time**](time.Time.md) | | [optional] +**RoleSid** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/chat/v1/docs/ChatV1ServiceChannelMemberReadResponse.md b/rest/chat/v1/docs/ChatV1ServiceChannelMemberReadResponse.md new file mode 100644 index 000000000..1bd18e1e2 --- /dev/null +++ b/rest/chat/v1/docs/ChatV1ServiceChannelMemberReadResponse.md @@ -0,0 +1,12 @@ +# ChatV1ServiceChannelMemberReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Members** | [**[]ChatV1ServiceChannelMember**](chat.v1.service.channel.member.md) | | [optional] +**Meta** | [**ChatV1CredentialReadResponseMeta**](chat_v1_credentialReadResponse_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/rest/chat/v1/docs/ChatV1ServiceChannelMessage.md b/rest/chat/v1/docs/ChatV1ServiceChannelMessage.md new file mode 100644 index 000000000..34244bb02 --- /dev/null +++ b/rest/chat/v1/docs/ChatV1ServiceChannelMessage.md @@ -0,0 +1,23 @@ +# ChatV1ServiceChannelMessage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Attributes** | **string** | | [optional] +**Body** | **string** | | [optional] +**ChannelSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**From** | **string** | | [optional] +**Index** | **int32** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**To** | **string** | | [optional] +**Url** | **string** | | [optional] +**WasEdited** | **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/rest/chat/v1/docs/ChatV1ServiceChannelMessageReadResponse.md b/rest/chat/v1/docs/ChatV1ServiceChannelMessageReadResponse.md new file mode 100644 index 000000000..579f051d8 --- /dev/null +++ b/rest/chat/v1/docs/ChatV1ServiceChannelMessageReadResponse.md @@ -0,0 +1,12 @@ +# ChatV1ServiceChannelMessageReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Messages** | [**[]ChatV1ServiceChannelMessage**](chat.v1.service.channel.message.md) | | [optional] +**Meta** | [**ChatV1CredentialReadResponseMeta**](chat_v1_credentialReadResponse_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/rest/chat/v1/docs/ChatV1ServiceChannelReadResponse.md b/rest/chat/v1/docs/ChatV1ServiceChannelReadResponse.md new file mode 100644 index 000000000..f3c7a578c --- /dev/null +++ b/rest/chat/v1/docs/ChatV1ServiceChannelReadResponse.md @@ -0,0 +1,12 @@ +# ChatV1ServiceChannelReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Channels** | [**[]ChatV1ServiceChannel**](chat.v1.service.channel.md) | | [optional] +**Meta** | [**ChatV1CredentialReadResponseMeta**](chat_v1_credentialReadResponse_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/rest/chat/v1/docs/ChatV1ServiceReadResponse.md b/rest/chat/v1/docs/ChatV1ServiceReadResponse.md new file mode 100644 index 000000000..a75af5c3b --- /dev/null +++ b/rest/chat/v1/docs/ChatV1ServiceReadResponse.md @@ -0,0 +1,12 @@ +# ChatV1ServiceReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**ChatV1CredentialReadResponseMeta**](chat_v1_credentialReadResponse_meta.md) | | [optional] +**Services** | [**[]ChatV1Service**](chat.v1.service.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/rest/chat/v1/docs/ChatV1ServiceRole.md b/rest/chat/v1/docs/ChatV1ServiceRole.md new file mode 100644 index 000000000..fbbf2b844 --- /dev/null +++ b/rest/chat/v1/docs/ChatV1ServiceRole.md @@ -0,0 +1,19 @@ +# ChatV1ServiceRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Permissions** | **[]string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Type** | **string** | | [optional] +**Url** | **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/rest/chat/v1/docs/ChatV1ServiceRoleReadResponse.md b/rest/chat/v1/docs/ChatV1ServiceRoleReadResponse.md new file mode 100644 index 000000000..7a4f6b786 --- /dev/null +++ b/rest/chat/v1/docs/ChatV1ServiceRoleReadResponse.md @@ -0,0 +1,12 @@ +# ChatV1ServiceRoleReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**ChatV1CredentialReadResponseMeta**](chat_v1_credentialReadResponse_meta.md) | | [optional] +**Roles** | [**[]ChatV1ServiceRole**](chat.v1.service.role.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/rest/chat/v1/docs/ChatV1ServiceUser.md b/rest/chat/v1/docs/ChatV1ServiceUser.md new file mode 100644 index 000000000..8291ff7e5 --- /dev/null +++ b/rest/chat/v1/docs/ChatV1ServiceUser.md @@ -0,0 +1,24 @@ +# ChatV1ServiceUser + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Attributes** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Identity** | **string** | | [optional] +**IsNotifiable** | **bool** | | [optional] +**IsOnline** | **bool** | | [optional] +**JoinedChannelsCount** | **int32** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**RoleSid** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/chat/v1/docs/ChatV1ServiceUserReadResponse.md b/rest/chat/v1/docs/ChatV1ServiceUserReadResponse.md new file mode 100644 index 000000000..e5e27a97e --- /dev/null +++ b/rest/chat/v1/docs/ChatV1ServiceUserReadResponse.md @@ -0,0 +1,12 @@ +# ChatV1ServiceUserReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**ChatV1CredentialReadResponseMeta**](chat_v1_credentialReadResponse_meta.md) | | [optional] +**Users** | [**[]ChatV1ServiceUser**](chat.v1.service.user.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/rest/chat/v1/docs/ChatV1ServiceUserUserChannel.md b/rest/chat/v1/docs/ChatV1ServiceUserUserChannel.md new file mode 100644 index 000000000..3edbd6b18 --- /dev/null +++ b/rest/chat/v1/docs/ChatV1ServiceUserUserChannel.md @@ -0,0 +1,18 @@ +# ChatV1ServiceUserUserChannel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ChannelSid** | **string** | | [optional] +**LastConsumedMessageIndex** | Pointer to **int32** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**MemberSid** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Status** | **string** | | [optional] +**UnreadMessagesCount** | Pointer to **int32** | | [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/rest/chat/v1/docs/ChatV1ServiceUserUserChannelReadResponse.md b/rest/chat/v1/docs/ChatV1ServiceUserUserChannelReadResponse.md new file mode 100644 index 000000000..3d999da51 --- /dev/null +++ b/rest/chat/v1/docs/ChatV1ServiceUserUserChannelReadResponse.md @@ -0,0 +1,12 @@ +# ChatV1ServiceUserUserChannelReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Channels** | [**[]ChatV1ServiceUserUserChannel**](chat.v1.service.user.user_channel.md) | | [optional] +**Meta** | [**ChatV1CredentialReadResponseMeta**](chat_v1_credentialReadResponse_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/rest/chat/v1/docs/CreateChannelRequest.md b/rest/chat/v1/docs/CreateChannelRequest.md new file mode 100644 index 000000000..8fe7904db --- /dev/null +++ b/rest/chat/v1/docs/CreateChannelRequest.md @@ -0,0 +1,14 @@ +# CreateChannelRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | A valid JSON string that contains application-specific data. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | [optional] +**Type** | **string** | The visibility of the channel. Can be: `public` or `private` and defaults to `public`. | [optional] +**UniqueName** | **string** | An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. This value must be 64 characters or less in length and be unique within the Service. | [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/rest/chat/v1/docs/CreateCredentialRequest.md b/rest/chat/v1/docs/CreateCredentialRequest.md new file mode 100644 index 000000000..9c9bacf6b --- /dev/null +++ b/rest/chat/v1/docs/CreateCredentialRequest.md @@ -0,0 +1,17 @@ +# CreateCredentialRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiKey** | **string** | [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. | [optional] +**Certificate** | **string** | [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A== -----END CERTIFICATE-----` | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | [optional] +**PrivateKey** | **string** | [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR. -----END RSA PRIVATE KEY-----` | [optional] +**Sandbox** | **bool** | [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. | [optional] +**Secret** | **string** | [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. | [optional] +**Type** | **string** | The type of push-notification service the credential is for. Can be: `gcm`, `fcm`, or `apn`. | + +[[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/rest/chat/v1/docs/CreateInviteRequest.md b/rest/chat/v1/docs/CreateInviteRequest.md new file mode 100644 index 000000000..cef41d7b6 --- /dev/null +++ b/rest/chat/v1/docs/CreateInviteRequest.md @@ -0,0 +1,12 @@ +# CreateInviteRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Identity** | **string** | The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/api/chat/rest/v1/user) within the [Service](https://www.twilio.com/docs/api/chat/rest/v1/service). See [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) for more info. | +**RoleSid** | **string** | The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) assigned to the new member. | [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/rest/chat/v1/docs/CreateMemberRequest.md b/rest/chat/v1/docs/CreateMemberRequest.md new file mode 100644 index 000000000..ae36a63d1 --- /dev/null +++ b/rest/chat/v1/docs/CreateMemberRequest.md @@ -0,0 +1,12 @@ +# CreateMemberRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Identity** | **string** | The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/api/chat/rest/v1/user) within the [Service](https://www.twilio.com/docs/api/chat/rest/services). See [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) for more details. | +**RoleSid** | **string** | The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/api/services). | [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/rest/chat/v1/docs/CreateMessageRequest.md b/rest/chat/v1/docs/CreateMessageRequest.md new file mode 100644 index 000000000..6128ba871 --- /dev/null +++ b/rest/chat/v1/docs/CreateMessageRequest.md @@ -0,0 +1,13 @@ +# CreateMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | A valid JSON string that contains application-specific data. | [optional] +**Body** | **string** | The message to send to the channel. Can also be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string. | +**From** | **string** | The [identity](https://www.twilio.com/docs/api/chat/guides/identity) of the new message's author. The default value is `system`. | [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/rest/chat/v1/docs/CreateRoleRequest.md b/rest/chat/v1/docs/CreateRoleRequest.md new file mode 100644 index 000000000..b6064eca3 --- /dev/null +++ b/rest/chat/v1/docs/CreateRoleRequest.md @@ -0,0 +1,13 @@ +# CreateRoleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | +**Permission** | **[]string** | A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type` and are described in the documentation. | +**Type** | **string** | The type of role. Can be: `channel` for [Channel](https://www.twilio.com/docs/chat/api/channels) roles or `deployment` for [Service](https://www.twilio.com/docs/chat/api/services) roles. | + +[[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/rest/chat/v1/docs/CreateServiceRequest.md b/rest/chat/v1/docs/CreateServiceRequest.md new file mode 100644 index 000000000..ba64fed64 --- /dev/null +++ b/rest/chat/v1/docs/CreateServiceRequest.md @@ -0,0 +1,11 @@ +# CreateServiceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + +[[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/rest/chat/v1/docs/CreateUserRequest.md b/rest/chat/v1/docs/CreateUserRequest.md new file mode 100644 index 000000000..b995c5b96 --- /dev/null +++ b/rest/chat/v1/docs/CreateUserRequest.md @@ -0,0 +1,14 @@ +# CreateUserRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | A valid JSON string that contains application-specific data. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the new resource. This value is often used for display purposes. | [optional] +**Identity** | **string** | The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/api/chat/rest/v1/user) within the [Service](https://www.twilio.com/docs/api/chat/rest/v1/service). This value is often a username or email address. See the Identity documentation for more details. | +**RoleSid** | **string** | The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) assigned to the new User. | [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/rest/chat/v1/docs/DefaultApi.md b/rest/chat/v1/docs/DefaultApi.md new file mode 100644 index 000000000..ae991a359 --- /dev/null +++ b/rest/chat/v1/docs/DefaultApi.md @@ -0,0 +1,1718 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateChannel**](DefaultApi.md#CreateChannel) | **Post** /v1/Services/{ServiceSid}/Channels | +[**CreateCredential**](DefaultApi.md#CreateCredential) | **Post** /v1/Credentials | +[**CreateInvite**](DefaultApi.md#CreateInvite) | **Post** /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites | +[**CreateMember**](DefaultApi.md#CreateMember) | **Post** /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members | +[**CreateMessage**](DefaultApi.md#CreateMessage) | **Post** /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages | +[**CreateRole**](DefaultApi.md#CreateRole) | **Post** /v1/Services/{ServiceSid}/Roles | +[**CreateService**](DefaultApi.md#CreateService) | **Post** /v1/Services | +[**CreateUser**](DefaultApi.md#CreateUser) | **Post** /v1/Services/{ServiceSid}/Users | +[**DeleteChannel**](DefaultApi.md#DeleteChannel) | **Delete** /v1/Services/{ServiceSid}/Channels/{Sid} | +[**DeleteCredential**](DefaultApi.md#DeleteCredential) | **Delete** /v1/Credentials/{Sid} | +[**DeleteInvite**](DefaultApi.md#DeleteInvite) | **Delete** /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid} | +[**DeleteMember**](DefaultApi.md#DeleteMember) | **Delete** /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid} | +[**DeleteMessage**](DefaultApi.md#DeleteMessage) | **Delete** /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid} | +[**DeleteRole**](DefaultApi.md#DeleteRole) | **Delete** /v1/Services/{ServiceSid}/Roles/{Sid} | +[**DeleteService**](DefaultApi.md#DeleteService) | **Delete** /v1/Services/{Sid} | +[**DeleteUser**](DefaultApi.md#DeleteUser) | **Delete** /v1/Services/{ServiceSid}/Users/{Sid} | +[**FetchChannel**](DefaultApi.md#FetchChannel) | **Get** /v1/Services/{ServiceSid}/Channels/{Sid} | +[**FetchCredential**](DefaultApi.md#FetchCredential) | **Get** /v1/Credentials/{Sid} | +[**FetchInvite**](DefaultApi.md#FetchInvite) | **Get** /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid} | +[**FetchMember**](DefaultApi.md#FetchMember) | **Get** /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid} | +[**FetchMessage**](DefaultApi.md#FetchMessage) | **Get** /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid} | +[**FetchRole**](DefaultApi.md#FetchRole) | **Get** /v1/Services/{ServiceSid}/Roles/{Sid} | +[**FetchService**](DefaultApi.md#FetchService) | **Get** /v1/Services/{Sid} | +[**FetchUser**](DefaultApi.md#FetchUser) | **Get** /v1/Services/{ServiceSid}/Users/{Sid} | +[**ListChannel**](DefaultApi.md#ListChannel) | **Get** /v1/Services/{ServiceSid}/Channels | +[**ListCredential**](DefaultApi.md#ListCredential) | **Get** /v1/Credentials | +[**ListInvite**](DefaultApi.md#ListInvite) | **Get** /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites | +[**ListMember**](DefaultApi.md#ListMember) | **Get** /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members | +[**ListMessage**](DefaultApi.md#ListMessage) | **Get** /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages | +[**ListRole**](DefaultApi.md#ListRole) | **Get** /v1/Services/{ServiceSid}/Roles | +[**ListService**](DefaultApi.md#ListService) | **Get** /v1/Services | +[**ListUser**](DefaultApi.md#ListUser) | **Get** /v1/Services/{ServiceSid}/Users | +[**ListUserChannel**](DefaultApi.md#ListUserChannel) | **Get** /v1/Services/{ServiceSid}/Users/{UserSid}/Channels | +[**UpdateChannel**](DefaultApi.md#UpdateChannel) | **Post** /v1/Services/{ServiceSid}/Channels/{Sid} | +[**UpdateCredential**](DefaultApi.md#UpdateCredential) | **Post** /v1/Credentials/{Sid} | +[**UpdateMember**](DefaultApi.md#UpdateMember) | **Post** /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid} | +[**UpdateMessage**](DefaultApi.md#UpdateMessage) | **Post** /v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid} | +[**UpdateRole**](DefaultApi.md#UpdateRole) | **Post** /v1/Services/{ServiceSid}/Roles/{Sid} | +[**UpdateService**](DefaultApi.md#UpdateService) | **Post** /v1/Services/{Sid} | +[**UpdateUser**](DefaultApi.md#UpdateUser) | **Post** /v1/Services/{ServiceSid}/Users/{Sid} | + + + +## CreateChannel + +> ChatV1ServiceChannel CreateChannel(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under. | + **optional** | ***CreateChannelOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateChannelOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **attributes** | **optional.String**| A valid JSON string that contains application-specific data. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | + **type_** | **optional.String**| The visibility of the channel. Can be: `public` or `private` and defaults to `public`. | + **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. This value must be 64 characters or less in length and be unique within the Service. | + +### Return type + +[**ChatV1ServiceChannel**](chat.v1.service.channel.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) + + +## CreateCredential + +> ChatV1Credential CreateCredential(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateCredentialOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateCredentialOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **apiKey** | **optional.String**| [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. | + **certificate** | **optional.String**| [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A== -----END CERTIFICATE-----` | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | + **privateKey** | **optional.String**| [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR. -----END RSA PRIVATE KEY-----` | + **sandbox** | **optional.Bool**| [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. | + **secret** | **optional.String**| [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. | + **type_** | **optional.String**| The type of push-notification service the credential is for. Can be: `gcm`, `fcm`, or `apn`. | + +### Return type + +[**ChatV1Credential**](chat.v1.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) + + +## CreateInvite + +> ChatV1ServiceChannelInvite CreateInvite(ctx, serviceSid, channelSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under. | +**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the new resource belongs to. | + **optional** | ***CreateInviteOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateInviteOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **identity** | **optional.String**| The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/api/chat/rest/v1/user) within the [Service](https://www.twilio.com/docs/api/chat/rest/v1/service). See [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) for more info. | + **roleSid** | **optional.String**| The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) assigned to the new member. | + +### Return type + +[**ChatV1ServiceChannelInvite**](chat.v1.service.channel.invite.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) + + +## CreateMember + +> ChatV1ServiceChannelMember CreateMember(ctx, serviceSid, channelSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under. | +**channelSid** | **string**| The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the new member belongs to. Can be the Channel resource's `sid` or `unique_name`. | + **optional** | ***CreateMemberOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateMemberOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **identity** | **optional.String**| The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/api/chat/rest/v1/user) within the [Service](https://www.twilio.com/docs/api/chat/rest/services). See [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) for more details. | + **roleSid** | **optional.String**| The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/api/services). | + +### Return type + +[**ChatV1ServiceChannelMember**](chat.v1.service.channel.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) + + +## CreateMessage + +> ChatV1ServiceChannelMessage CreateMessage(ctx, serviceSid, channelSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under. | +**channelSid** | **string**| The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the new resource belongs to. Can be the Channel resource's `sid` or `unique_name`. | + **optional** | ***CreateMessageOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateMessageOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **attributes** | **optional.String**| A valid JSON string that contains application-specific data. | + **body** | **optional.String**| The message to send to the channel. Can also be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string. | + **from** | **optional.String**| The [identity](https://www.twilio.com/docs/api/chat/guides/identity) of the new message's author. The default value is `system`. | + +### Return type + +[**ChatV1ServiceChannelMessage**](chat.v1.service.channel.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) + + +## CreateRole + +> ChatV1ServiceRole CreateRole(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under. | + **optional** | ***CreateRoleOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateRoleOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **friendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | + **permission** | [**optional.Interface of []string**](string.md)| A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type` and are described in the documentation. | + **type_** | **optional.String**| The type of role. Can be: `channel` for [Channel](https://www.twilio.com/docs/chat/api/channels) roles or `deployment` for [Service](https://www.twilio.com/docs/chat/api/services) roles. | + +### Return type + +[**ChatV1ServiceRole**](chat.v1.service.role.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) + + +## CreateService + +> ChatV1Service CreateService(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateServiceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateServiceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + +### Return type + +[**ChatV1Service**](chat.v1.service.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) + + +## CreateUser + +> ChatV1ServiceUser CreateUser(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under. | + **optional** | ***CreateUserOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateUserOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **attributes** | **optional.String**| A valid JSON string that contains application-specific data. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. This value is often used for display purposes. | + **identity** | **optional.String**| The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/api/chat/rest/v1/user) within the [Service](https://www.twilio.com/docs/api/chat/rest/v1/service). This value is often a username or email address. See the Identity documentation for more details. | + **roleSid** | **optional.String**| The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) assigned to the new User. | + +### Return type + +[**ChatV1ServiceUser**](chat.v1.service.user.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) + + +## DeleteChannel + +> DeleteChannel(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Channel resource to delete. | + +### 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) + + +## DeleteCredential + +> DeleteCredential(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the Credential resource to delete. | + +### 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) + + +## DeleteInvite + +> DeleteInvite(ctx, serviceSid, channelSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from. | +**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the resource to delete belongs to. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Invite resource to delete. | + +### 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) + + +## DeleteMember + +> DeleteMember(ctx, serviceSid, channelSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from. | +**channelSid** | **string**| The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message belongs to. Can be the Channel's `sid` or `unique_name`. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Member resource to delete. | + +### 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) + + +## DeleteMessage + +> DeleteMessage(ctx, serviceSid, channelSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from. | +**channelSid** | **string**| The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message to delete belongs to. Can be the Channel resource's `sid` or `unique_name`. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Message resource to delete. | + +### 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) + + +## DeleteRole + +> DeleteRole(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Role resource to delete. | + +### 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) + + +## DeleteService + +> DeleteService(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the Service resource to delete. | + +### 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) + + +## DeleteUser + +> DeleteUser(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the User resource to delete. | + +### 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) + + +## FetchChannel + +> ChatV1ServiceChannel FetchChannel(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Channel resource to fetch. | + +### Return type + +[**ChatV1ServiceChannel**](chat.v1.service.channel.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) + + +## FetchCredential + +> ChatV1Credential FetchCredential(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the Credential resource to fetch. | + +### Return type + +[**ChatV1Credential**](chat.v1.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) + + +## FetchInvite + +> ChatV1ServiceChannelInvite FetchInvite(ctx, serviceSid, channelSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from. | +**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the resource to fetch belongs to. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Invite resource to fetch. | + +### Return type + +[**ChatV1ServiceChannelInvite**](chat.v1.service.channel.invite.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) + + +## FetchMember + +> ChatV1ServiceChannelMember FetchMember(ctx, serviceSid, channelSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from. | +**channelSid** | **string**| The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the member to fetch belongs to. Can be the Channel resource's `sid` or `unique_name` value. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Member resource to fetch. | + +### Return type + +[**ChatV1ServiceChannelMember**](chat.v1.service.channel.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) + + +## FetchMessage + +> ChatV1ServiceChannelMessage FetchMessage(ctx, serviceSid, channelSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from. | +**channelSid** | **string**| The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message to fetch belongs to. Can be the Channel's `sid` or `unique_name`. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Message resource to fetch. | + +### Return type + +[**ChatV1ServiceChannelMessage**](chat.v1.service.channel.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) + + +## FetchRole + +> ChatV1ServiceRole FetchRole(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Role resource to fetch. | + +### Return type + +[**ChatV1ServiceRole**](chat.v1.service.role.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) + + +## FetchService + +> ChatV1Service FetchService(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the Service resource to fetch. | + +### Return type + +[**ChatV1Service**](chat.v1.service.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) + + +## FetchUser + +> ChatV1ServiceUser FetchUser(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the User resource to fetch. | + +### Return type + +[**ChatV1ServiceUser**](chat.v1.service.user.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) + + +## ListChannel + +> ChatV1ServiceChannelReadResponse ListChannel(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. | + **optional** | ***ListChannelOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListChannelOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **type_** | [**optional.Interface of []string**](string.md)| The visibility of the Channels to read. Can be: `public` or `private` and defaults to `public`. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ChatV1ServiceChannelReadResponse**](chat_v1_service_channelReadResponse.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) + + +## ListCredential + +> ChatV1CredentialReadResponse ListCredential(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListCredentialOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListCredentialOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ChatV1CredentialReadResponse**](chat_v1_credentialReadResponse.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) + + +## ListInvite + +> ChatV1ServiceChannelInviteReadResponse ListInvite(ctx, serviceSid, channelSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. | +**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the resources to read belong to. | + **optional** | ***ListInviteOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListInviteOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **identity** | [**optional.Interface of []string**](string.md)| The [User](https://www.twilio.com/docs/api/chat/rest/v1/user)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) for more details. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ChatV1ServiceChannelInviteReadResponse**](chat_v1_service_channel_inviteReadResponse.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) + + +## ListMember + +> ChatV1ServiceChannelMemberReadResponse ListMember(ctx, serviceSid, channelSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. | +**channelSid** | **string**| The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the members to read belong to. Can be the Channel resource's `sid` or `unique_name` value. | + **optional** | ***ListMemberOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListMemberOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **identity** | [**optional.Interface of []string**](string.md)| The [User](https://www.twilio.com/docs/api/chat/rest/v1/user)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) for more details. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ChatV1ServiceChannelMemberReadResponse**](chat_v1_service_channel_memberReadResponse.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) + + +## ListMessage + +> ChatV1ServiceChannelMessageReadResponse ListMessage(ctx, serviceSid, channelSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. | +**channelSid** | **string**| The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message to read belongs to. Can be the Channel's `sid` or `unique_name`. | + **optional** | ***ListMessageOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListMessageOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **order** | **optional.String**| The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending) with `asc` as the default. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ChatV1ServiceChannelMessageReadResponse**](chat_v1_service_channel_messageReadResponse.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) + + +## ListRole + +> ChatV1ServiceRoleReadResponse ListRole(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. | + **optional** | ***ListRoleOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListRoleOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ChatV1ServiceRoleReadResponse**](chat_v1_service_roleReadResponse.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) + + +## ListService + +> ChatV1ServiceReadResponse ListService(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListServiceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListServiceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ChatV1ServiceReadResponse**](chat_v1_serviceReadResponse.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) + + +## ListUser + +> ChatV1ServiceUserReadResponse ListUser(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. | + **optional** | ***ListUserOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListUserOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ChatV1ServiceUserReadResponse**](chat_v1_service_userReadResponse.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) + + +## ListUserChannel + +> ChatV1ServiceUserUserChannelReadResponse ListUserChannel(ctx, serviceSid, userSid, optional) + + + +List all Channels for a given User. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. | +**userSid** | **string**| The SID of the [User](https://www.twilio.com/docs/api/chat/rest/users) to read the User Channel resources from. | + **optional** | ***ListUserChannelOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListUserChannelOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ChatV1ServiceUserUserChannelReadResponse**](chat_v1_service_user_user_channelReadResponse.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) + + +## UpdateChannel + +> ChatV1ServiceChannel UpdateChannel(ctx, serviceSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to update the resource from. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Channel resource to update. | + **optional** | ***UpdateChannelOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateChannelOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **attributes** | **optional.String**| A valid JSON string that contains application-specific data. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. This value must be 64 characters or less in length and be unique within the Service. | + +### Return type + +[**ChatV1ServiceChannel**](chat.v1.service.channel.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) + + +## UpdateCredential + +> ChatV1Credential UpdateCredential(ctx, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the Credential resource to update. | + **optional** | ***UpdateCredentialOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateCredentialOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **apiKey** | **optional.String**| [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. | + **certificate** | **optional.String**| [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A== -----END CERTIFICATE-----` | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **privateKey** | **optional.String**| [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR. -----END RSA PRIVATE KEY-----` | + **sandbox** | **optional.Bool**| [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. | + **secret** | **optional.String**| [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. | + +### Return type + +[**ChatV1Credential**](chat.v1.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) + + +## UpdateMember + +> ChatV1ServiceChannelMember UpdateMember(ctx, serviceSid, channelSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to update the resource from. | +**channelSid** | **string**| The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the member to update belongs to. Can be the Channel resource's `sid` or `unique_name`. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Member resource to update. | + **optional** | ***UpdateMemberOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateMemberOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **lastConsumedMessageIndex** | **optional.Int32**| The index of the last [Message](https://www.twilio.com/docs/api/chat/rest/messages) that the Member has read within the [Channel](https://www.twilio.com/docs/api/chat/rest/channels). | + **roleSid** | **optional.String**| The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/api/services). | + +### Return type + +[**ChatV1ServiceChannelMember**](chat.v1.service.channel.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) + + +## UpdateMessage + +> ChatV1ServiceChannelMessage UpdateMessage(ctx, serviceSid, channelSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to update the resource from. | +**channelSid** | **string**| The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message belongs to. Can be the Channel's `sid` or `unique_name`. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Message resource to update. | + **optional** | ***UpdateMessageOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateMessageOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **attributes** | **optional.String**| A valid JSON string that contains application-specific data. | + **body** | **optional.String**| The message to send to the channel. Can also be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string. | + +### Return type + +[**ChatV1ServiceChannelMessage**](chat.v1.service.channel.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) + + +## UpdateRole + +> ChatV1ServiceRole UpdateRole(ctx, serviceSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to update the resource from. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Role resource to update. | + **optional** | ***UpdateRoleOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateRoleOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **permission** | [**optional.Interface of []string**](string.md)| A permission that you grant to the role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type` and are described in the documentation. | + +### Return type + +[**ChatV1ServiceRole**](chat.v1.service.role.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) + + +## UpdateService + +> ChatV1Service UpdateService(ctx, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the Service resource to update. | + **optional** | ***UpdateServiceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateServiceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **consumptionReportInterval** | **optional.Int32**| DEPRECATED. The interval in seconds between consumption reports submission batches from client endpoints. | + **defaultChannelCreatorRoleSid** | **optional.String**| The channel role assigned to a channel creator when they join a new channel. See the [Roles endpoint](https://www.twilio.com/docs/chat/api/roles) for more details. | + **defaultChannelRoleSid** | **optional.String**| The channel role assigned to users when they are added to a channel. See the [Roles endpoint](https://www.twilio.com/docs/chat/api/roles) for more details. | + **defaultServiceRoleSid** | **optional.String**| The service role assigned to users when they are added to the service. See the [Roles endpoint](https://www.twilio.com/docs/chat/api/roles) for more details. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **limitsChannelMembers** | **optional.Int32**| The maximum number of Members that can be added to Channels within this Service. Can be up to 1,000. | + **limitsUserChannels** | **optional.Int32**| The maximum number of Channels Users can be a Member of within this Service. Can be up to 1,000. | + **notificationsAddedToChannelEnabled** | **optional.Bool**| Whether to send a notification when a member is added to a channel. Can be: `true` or `false` and the default is `false`. | + **notificationsAddedToChannelTemplate** | **optional.String**| The template to use to create the notification text displayed when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. | + **notificationsInvitedToChannelEnabled** | **optional.Bool**| Whether to send a notification when a user is invited to a channel. Can be: `true` or `false` and the default is `false`. | + **notificationsInvitedToChannelTemplate** | **optional.String**| The template to use to create the notification text displayed when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. | + **notificationsNewMessageEnabled** | **optional.Bool**| Whether to send a notification when a new message is added to a channel. Can be: `true` or `false` and the default is `false`. | + **notificationsNewMessageTemplate** | **optional.String**| The template to use to create the notification text displayed when a new message is added to a channel and `notifications.new_message.enabled` is `true`. | + **notificationsRemovedFromChannelEnabled** | **optional.Bool**| Whether to send a notification to a user when they are removed from a channel. Can be: `true` or `false` and the default is `false`. | + **notificationsRemovedFromChannelTemplate** | **optional.String**| The template to use to create the notification text displayed to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. | + **postWebhookUrl** | **optional.String**| The URL for post-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more details. | + **preWebhookUrl** | **optional.String**| The URL for pre-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more details. | + **reachabilityEnabled** | **optional.Bool**| Whether to enable the [Reachability Indicator](https://www.twilio.com/docs/chat/reachability-indicator) for this Service instance. The default is `false`. | + **readStatusEnabled** | **optional.Bool**| Whether to enable the [Message Consumption Horizon](https://www.twilio.com/docs/chat/consumption-horizon) feature. The default is `true`. | + **typingIndicatorTimeout** | **optional.Int32**| How long in seconds after a `started typing` event until clients should assume that user is no longer typing, even if no `ended typing` message was received. The default is 5 seconds. | + **webhookFilters** | [**optional.Interface of []string**](string.md)| The list of WebHook events that are enabled for this Service instance. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. | + **webhookMethod** | **optional.String**| The HTTP method to use for calls to the `pre_webhook_url` and `post_webhook_url` webhooks. Can be: `POST` or `GET` and the default is `POST`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. | + **webhooksOnChannelAddMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_channel_add.url`. | + **webhooksOnChannelAddUrl** | **optional.String**| The URL of the webhook to call in response to the `on_channel_add` event using the `webhooks.on_channel_add.method` HTTP method. | + **webhooksOnChannelAddedMethod** | **optional.String**| The URL of the webhook to call in response to the `on_channel_added` event`. | + **webhooksOnChannelAddedUrl** | **optional.String**| The URL of the webhook to call in response to the `on_channel_added` event using the `webhooks.on_channel_added.method` HTTP method. | + **webhooksOnChannelDestroyMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_channel_destroy.url`. | + **webhooksOnChannelDestroyUrl** | **optional.String**| The URL of the webhook to call in response to the `on_channel_destroy` event using the `webhooks.on_channel_destroy.method` HTTP method. | + **webhooksOnChannelDestroyedMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_channel_destroyed.url`. | + **webhooksOnChannelDestroyedUrl** | **optional.String**| The URL of the webhook to call in response to the `on_channel_added` event using the `webhooks.on_channel_destroyed.method` HTTP method. | + **webhooksOnChannelUpdateMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_channel_update.url`. | + **webhooksOnChannelUpdateUrl** | **optional.String**| The URL of the webhook to call in response to the `on_channel_update` event using the `webhooks.on_channel_update.method` HTTP method. | + **webhooksOnChannelUpdatedMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_channel_updated.url`. | + **webhooksOnChannelUpdatedUrl** | **optional.String**| The URL of the webhook to call in response to the `on_channel_updated` event using the `webhooks.on_channel_updated.method` HTTP method. | + **webhooksOnMemberAddMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_member_add.url`. | + **webhooksOnMemberAddUrl** | **optional.String**| The URL of the webhook to call in response to the `on_member_add` event using the `webhooks.on_member_add.method` HTTP method. | + **webhooksOnMemberAddedMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_channel_updated.url`. | + **webhooksOnMemberAddedUrl** | **optional.String**| The URL of the webhook to call in response to the `on_channel_updated` event using the `webhooks.on_channel_updated.method` HTTP method. | + **webhooksOnMemberRemoveMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_member_remove.url`. | + **webhooksOnMemberRemoveUrl** | **optional.String**| The URL of the webhook to call in response to the `on_member_remove` event using the `webhooks.on_member_remove.method` HTTP method. | + **webhooksOnMemberRemovedMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_member_removed.url`. | + **webhooksOnMemberRemovedUrl** | **optional.String**| The URL of the webhook to call in response to the `on_member_removed` event using the `webhooks.on_member_removed.method` HTTP method. | + **webhooksOnMessageRemoveMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_message_remove.url`. | + **webhooksOnMessageRemoveUrl** | **optional.String**| The URL of the webhook to call in response to the `on_message_remove` event using the `webhooks.on_message_remove.method` HTTP method. | + **webhooksOnMessageRemovedMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_message_removed.url`. | + **webhooksOnMessageRemovedUrl** | **optional.String**| The URL of the webhook to call in response to the `on_message_removed` event using the `webhooks.on_message_removed.method` HTTP method. | + **webhooksOnMessageSendMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_message_send.url`. | + **webhooksOnMessageSendUrl** | **optional.String**| The URL of the webhook to call in response to the `on_message_send` event using the `webhooks.on_message_send.method` HTTP method. | + **webhooksOnMessageSentMethod** | **optional.String**| The URL of the webhook to call in response to the `on_message_sent` event`. | + **webhooksOnMessageSentUrl** | **optional.String**| The URL of the webhook to call in response to the `on_message_sent` event using the `webhooks.on_message_sent.method` HTTP method. | + **webhooksOnMessageUpdateMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_message_update.url`. | + **webhooksOnMessageUpdateUrl** | **optional.String**| The URL of the webhook to call in response to the `on_message_update` event using the `webhooks.on_message_update.method` HTTP method. | + **webhooksOnMessageUpdatedMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_message_updated.url`. | + **webhooksOnMessageUpdatedUrl** | **optional.String**| The URL of the webhook to call in response to the `on_message_updated` event using the `webhooks.on_message_updated.method` HTTP method. | + +### Return type + +[**ChatV1Service**](chat.v1.service.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) + + +## UpdateUser + +> ChatV1ServiceUser UpdateUser(ctx, serviceSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to update the resource from. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the User resource to update. | + **optional** | ***UpdateUserOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateUserOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **attributes** | **optional.String**| A valid JSON string that contains application-specific data. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is often used for display purposes. | + **roleSid** | **optional.String**| The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) assigned to this user. | + +### Return type + +[**ChatV1ServiceUser**](chat.v1.service.user.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/rest/chat/v1/docs/UpdateChannelRequest.md b/rest/chat/v1/docs/UpdateChannelRequest.md new file mode 100644 index 000000000..ee0a44795 --- /dev/null +++ b/rest/chat/v1/docs/UpdateChannelRequest.md @@ -0,0 +1,13 @@ +# UpdateChannelRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | A valid JSON string that contains application-specific data. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | [optional] +**UniqueName** | **string** | An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. This value must be 64 characters or less in length and be unique within the Service. | [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/rest/chat/v1/docs/UpdateCredentialRequest.md b/rest/chat/v1/docs/UpdateCredentialRequest.md new file mode 100644 index 000000000..f9366b7e9 --- /dev/null +++ b/rest/chat/v1/docs/UpdateCredentialRequest.md @@ -0,0 +1,16 @@ +# UpdateCredentialRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiKey** | **string** | [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. | [optional] +**Certificate** | **string** | [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A== -----END CERTIFICATE-----` | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | [optional] +**PrivateKey** | **string** | [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR. -----END RSA PRIVATE KEY-----` | [optional] +**Sandbox** | **bool** | [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. | [optional] +**Secret** | **string** | [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. | [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/rest/chat/v1/docs/UpdateMemberRequest.md b/rest/chat/v1/docs/UpdateMemberRequest.md new file mode 100644 index 000000000..d78247494 --- /dev/null +++ b/rest/chat/v1/docs/UpdateMemberRequest.md @@ -0,0 +1,12 @@ +# UpdateMemberRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LastConsumedMessageIndex** | Pointer to **int32** | The index of the last [Message](https://www.twilio.com/docs/api/chat/rest/messages) that the Member has read within the [Channel](https://www.twilio.com/docs/api/chat/rest/channels). | [optional] +**RoleSid** | **string** | The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/api/services). | [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/rest/chat/v1/docs/UpdateMessageRequest.md b/rest/chat/v1/docs/UpdateMessageRequest.md new file mode 100644 index 000000000..1d10e9759 --- /dev/null +++ b/rest/chat/v1/docs/UpdateMessageRequest.md @@ -0,0 +1,12 @@ +# UpdateMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | A valid JSON string that contains application-specific data. | [optional] +**Body** | **string** | The message to send to the channel. Can also be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a 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/rest/chat/v1/docs/UpdateRoleRequest.md b/rest/chat/v1/docs/UpdateRoleRequest.md new file mode 100644 index 000000000..43c54ff12 --- /dev/null +++ b/rest/chat/v1/docs/UpdateRoleRequest.md @@ -0,0 +1,11 @@ +# UpdateRoleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Permission** | **[]string** | A permission that you grant to the role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type` and are described in the documentation. | + +[[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/rest/chat/v1/docs/UpdateServiceRequest.md b/rest/chat/v1/docs/UpdateServiceRequest.md new file mode 100644 index 000000000..ffbb9705e --- /dev/null +++ b/rest/chat/v1/docs/UpdateServiceRequest.md @@ -0,0 +1,64 @@ +# UpdateServiceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConsumptionReportInterval** | **int32** | DEPRECATED. The interval in seconds between consumption reports submission batches from client endpoints. | [optional] +**DefaultChannelCreatorRoleSid** | **string** | The channel role assigned to a channel creator when they join a new channel. See the [Roles endpoint](https://www.twilio.com/docs/chat/api/roles) for more details. | [optional] +**DefaultChannelRoleSid** | **string** | The channel role assigned to users when they are added to a channel. See the [Roles endpoint](https://www.twilio.com/docs/chat/api/roles) for more details. | [optional] +**DefaultServiceRoleSid** | **string** | The service role assigned to users when they are added to the service. See the [Roles endpoint](https://www.twilio.com/docs/chat/api/roles) for more details. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | [optional] +**LimitsChannelMembers** | **int32** | The maximum number of Members that can be added to Channels within this Service. Can be up to 1,000. | [optional] +**LimitsUserChannels** | **int32** | The maximum number of Channels Users can be a Member of within this Service. Can be up to 1,000. | [optional] +**NotificationsAddedToChannelEnabled** | **bool** | Whether to send a notification when a member is added to a channel. Can be: `true` or `false` and the default is `false`. | [optional] +**NotificationsAddedToChannelTemplate** | **string** | The template to use to create the notification text displayed when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. | [optional] +**NotificationsInvitedToChannelEnabled** | **bool** | Whether to send a notification when a user is invited to a channel. Can be: `true` or `false` and the default is `false`. | [optional] +**NotificationsInvitedToChannelTemplate** | **string** | The template to use to create the notification text displayed when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. | [optional] +**NotificationsNewMessageEnabled** | **bool** | Whether to send a notification when a new message is added to a channel. Can be: `true` or `false` and the default is `false`. | [optional] +**NotificationsNewMessageTemplate** | **string** | The template to use to create the notification text displayed when a new message is added to a channel and `notifications.new_message.enabled` is `true`. | [optional] +**NotificationsRemovedFromChannelEnabled** | **bool** | Whether to send a notification to a user when they are removed from a channel. Can be: `true` or `false` and the default is `false`. | [optional] +**NotificationsRemovedFromChannelTemplate** | **string** | The template to use to create the notification text displayed to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. | [optional] +**PostWebhookUrl** | **string** | The URL for post-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more details. | [optional] +**PreWebhookUrl** | **string** | The URL for pre-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more details. | [optional] +**ReachabilityEnabled** | **bool** | Whether to enable the [Reachability Indicator](https://www.twilio.com/docs/chat/reachability-indicator) for this Service instance. The default is `false`. | [optional] +**ReadStatusEnabled** | **bool** | Whether to enable the [Message Consumption Horizon](https://www.twilio.com/docs/chat/consumption-horizon) feature. The default is `true`. | [optional] +**TypingIndicatorTimeout** | **int32** | How long in seconds after a `started typing` event until clients should assume that user is no longer typing, even if no `ended typing` message was received. The default is 5 seconds. | [optional] +**WebhookFilters** | **[]string** | The list of WebHook events that are enabled for this Service instance. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. | [optional] +**WebhookMethod** | **string** | The HTTP method to use for calls to the `pre_webhook_url` and `post_webhook_url` webhooks. Can be: `POST` or `GET` and the default is `POST`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. | [optional] +**WebhooksOnChannelAddMethod** | **string** | The HTTP method to use when calling the `webhooks.on_channel_add.url`. | [optional] +**WebhooksOnChannelAddUrl** | **string** | The URL of the webhook to call in response to the `on_channel_add` event using the `webhooks.on_channel_add.method` HTTP method. | [optional] +**WebhooksOnChannelAddedMethod** | **string** | The URL of the webhook to call in response to the `on_channel_added` event`. | [optional] +**WebhooksOnChannelAddedUrl** | **string** | The URL of the webhook to call in response to the `on_channel_added` event using the `webhooks.on_channel_added.method` HTTP method. | [optional] +**WebhooksOnChannelDestroyMethod** | **string** | The HTTP method to use when calling the `webhooks.on_channel_destroy.url`. | [optional] +**WebhooksOnChannelDestroyUrl** | **string** | The URL of the webhook to call in response to the `on_channel_destroy` event using the `webhooks.on_channel_destroy.method` HTTP method. | [optional] +**WebhooksOnChannelDestroyedMethod** | **string** | The HTTP method to use when calling the `webhooks.on_channel_destroyed.url`. | [optional] +**WebhooksOnChannelDestroyedUrl** | **string** | The URL of the webhook to call in response to the `on_channel_added` event using the `webhooks.on_channel_destroyed.method` HTTP method. | [optional] +**WebhooksOnChannelUpdateMethod** | **string** | The HTTP method to use when calling the `webhooks.on_channel_update.url`. | [optional] +**WebhooksOnChannelUpdateUrl** | **string** | The URL of the webhook to call in response to the `on_channel_update` event using the `webhooks.on_channel_update.method` HTTP method. | [optional] +**WebhooksOnChannelUpdatedMethod** | **string** | The HTTP method to use when calling the `webhooks.on_channel_updated.url`. | [optional] +**WebhooksOnChannelUpdatedUrl** | **string** | The URL of the webhook to call in response to the `on_channel_updated` event using the `webhooks.on_channel_updated.method` HTTP method. | [optional] +**WebhooksOnMemberAddMethod** | **string** | The HTTP method to use when calling the `webhooks.on_member_add.url`. | [optional] +**WebhooksOnMemberAddUrl** | **string** | The URL of the webhook to call in response to the `on_member_add` event using the `webhooks.on_member_add.method` HTTP method. | [optional] +**WebhooksOnMemberAddedMethod** | **string** | The HTTP method to use when calling the `webhooks.on_channel_updated.url`. | [optional] +**WebhooksOnMemberAddedUrl** | **string** | The URL of the webhook to call in response to the `on_channel_updated` event using the `webhooks.on_channel_updated.method` HTTP method. | [optional] +**WebhooksOnMemberRemoveMethod** | **string** | The HTTP method to use when calling the `webhooks.on_member_remove.url`. | [optional] +**WebhooksOnMemberRemoveUrl** | **string** | The URL of the webhook to call in response to the `on_member_remove` event using the `webhooks.on_member_remove.method` HTTP method. | [optional] +**WebhooksOnMemberRemovedMethod** | **string** | The HTTP method to use when calling the `webhooks.on_member_removed.url`. | [optional] +**WebhooksOnMemberRemovedUrl** | **string** | The URL of the webhook to call in response to the `on_member_removed` event using the `webhooks.on_member_removed.method` HTTP method. | [optional] +**WebhooksOnMessageRemoveMethod** | **string** | The HTTP method to use when calling the `webhooks.on_message_remove.url`. | [optional] +**WebhooksOnMessageRemoveUrl** | **string** | The URL of the webhook to call in response to the `on_message_remove` event using the `webhooks.on_message_remove.method` HTTP method. | [optional] +**WebhooksOnMessageRemovedMethod** | **string** | The HTTP method to use when calling the `webhooks.on_message_removed.url`. | [optional] +**WebhooksOnMessageRemovedUrl** | **string** | The URL of the webhook to call in response to the `on_message_removed` event using the `webhooks.on_message_removed.method` HTTP method. | [optional] +**WebhooksOnMessageSendMethod** | **string** | The HTTP method to use when calling the `webhooks.on_message_send.url`. | [optional] +**WebhooksOnMessageSendUrl** | **string** | The URL of the webhook to call in response to the `on_message_send` event using the `webhooks.on_message_send.method` HTTP method. | [optional] +**WebhooksOnMessageSentMethod** | **string** | The URL of the webhook to call in response to the `on_message_sent` event`. | [optional] +**WebhooksOnMessageSentUrl** | **string** | The URL of the webhook to call in response to the `on_message_sent` event using the `webhooks.on_message_sent.method` HTTP method. | [optional] +**WebhooksOnMessageUpdateMethod** | **string** | The HTTP method to use when calling the `webhooks.on_message_update.url`. | [optional] +**WebhooksOnMessageUpdateUrl** | **string** | The URL of the webhook to call in response to the `on_message_update` event using the `webhooks.on_message_update.method` HTTP method. | [optional] +**WebhooksOnMessageUpdatedMethod** | **string** | The HTTP method to use when calling the `webhooks.on_message_updated.url`. | [optional] +**WebhooksOnMessageUpdatedUrl** | **string** | The URL of the webhook to call in response to the `on_message_updated` event using the `webhooks.on_message_updated.method` HTTP method. | [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/rest/chat/v1/docs/UpdateUserRequest.md b/rest/chat/v1/docs/UpdateUserRequest.md new file mode 100644 index 000000000..f77ae0017 --- /dev/null +++ b/rest/chat/v1/docs/UpdateUserRequest.md @@ -0,0 +1,13 @@ +# UpdateUserRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | A valid JSON string that contains application-specific data. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It is often used for display purposes. | [optional] +**RoleSid** | **string** | The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) assigned to this user. | [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/rest/chat/v1/model_chat_v1_credential.go b/rest/chat/v1/model_chat_v1_credential.go new file mode 100644 index 000000000..85e9b6608 --- /dev/null +++ b/rest/chat/v1/model_chat_v1_credential.go @@ -0,0 +1,25 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ChatV1Credential struct for ChatV1Credential +type ChatV1Credential struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Sandbox string `json:"sandbox,omitempty"` + Sid string `json:"sid,omitempty"` + Type string `json:"type,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/chat/v1/model_chat_v1_credential_read_response.go b/rest/chat/v1/model_chat_v1_credential_read_response.go new file mode 100644 index 000000000..6dba2c2a7 --- /dev/null +++ b/rest/chat/v1/model_chat_v1_credential_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ChatV1CredentialReadResponse struct for ChatV1CredentialReadResponse +type ChatV1CredentialReadResponse struct { + Credentials []ChatV1Credential `json:"credentials,omitempty"` + Meta ChatV1CredentialReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/chat/v1/model_chat_v1_credential_read_response_meta.go b/rest/chat/v1/model_chat_v1_credential_read_response_meta.go new file mode 100644 index 000000000..7978110cd --- /dev/null +++ b/rest/chat/v1/model_chat_v1_credential_read_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ChatV1CredentialReadResponseMeta struct for ChatV1CredentialReadResponseMeta +type ChatV1CredentialReadResponseMeta struct { + FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` + NextPageUrl string `json:"next_page_url,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUrl string `json:"previous_page_url,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/chat/v1/model_chat_v1_service.go b/rest/chat/v1/model_chat_v1_service.go new file mode 100644 index 000000000..97c5aa338 --- /dev/null +++ b/rest/chat/v1/model_chat_v1_service.go @@ -0,0 +1,38 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ChatV1Service struct for ChatV1Service +type ChatV1Service struct { + AccountSid string `json:"account_sid,omitempty"` + ConsumptionReportInterval int32 `json:"consumption_report_interval,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + DefaultChannelCreatorRoleSid string `json:"default_channel_creator_role_sid,omitempty"` + DefaultChannelRoleSid string `json:"default_channel_role_sid,omitempty"` + DefaultServiceRoleSid string `json:"default_service_role_sid,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Limits map[string]interface{} `json:"limits,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Notifications map[string]interface{} `json:"notifications,omitempty"` + PostWebhookUrl string `json:"post_webhook_url,omitempty"` + PreWebhookUrl string `json:"pre_webhook_url,omitempty"` + ReachabilityEnabled bool `json:"reachability_enabled,omitempty"` + ReadStatusEnabled bool `json:"read_status_enabled,omitempty"` + Sid string `json:"sid,omitempty"` + TypingIndicatorTimeout int32 `json:"typing_indicator_timeout,omitempty"` + Url string `json:"url,omitempty"` + WebhookFilters []string `json:"webhook_filters,omitempty"` + WebhookMethod string `json:"webhook_method,omitempty"` + Webhooks map[string]interface{} `json:"webhooks,omitempty"` +} diff --git a/rest/chat/v1/model_chat_v1_service_channel.go b/rest/chat/v1/model_chat_v1_service_channel.go new file mode 100644 index 000000000..7fbdb4921 --- /dev/null +++ b/rest/chat/v1/model_chat_v1_service_channel.go @@ -0,0 +1,31 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ChatV1ServiceChannel struct for ChatV1ServiceChannel +type ChatV1ServiceChannel struct { + AccountSid string `json:"account_sid,omitempty"` + Attributes string `json:"attributes,omitempty"` + CreatedBy string `json:"created_by,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + MembersCount int32 `json:"members_count,omitempty"` + MessagesCount int32 `json:"messages_count,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Type string `json:"type,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/chat/v1/model_chat_v1_service_channel_invite.go b/rest/chat/v1/model_chat_v1_service_channel_invite.go new file mode 100644 index 000000000..110775174 --- /dev/null +++ b/rest/chat/v1/model_chat_v1_service_channel_invite.go @@ -0,0 +1,27 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ChatV1ServiceChannelInvite struct for ChatV1ServiceChannelInvite +type ChatV1ServiceChannelInvite struct { + AccountSid string `json:"account_sid,omitempty"` + ChannelSid string `json:"channel_sid,omitempty"` + CreatedBy string `json:"created_by,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Identity string `json:"identity,omitempty"` + RoleSid string `json:"role_sid,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/chat/v1/model_chat_v1_service_channel_invite_read_response.go b/rest/chat/v1/model_chat_v1_service_channel_invite_read_response.go new file mode 100644 index 000000000..6cccc8275 --- /dev/null +++ b/rest/chat/v1/model_chat_v1_service_channel_invite_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ChatV1ServiceChannelInviteReadResponse struct for ChatV1ServiceChannelInviteReadResponse +type ChatV1ServiceChannelInviteReadResponse struct { + Invites []ChatV1ServiceChannelInvite `json:"invites,omitempty"` + Meta ChatV1CredentialReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/chat/v1/model_chat_v1_service_channel_member.go b/rest/chat/v1/model_chat_v1_service_channel_member.go new file mode 100644 index 000000000..173f6c04d --- /dev/null +++ b/rest/chat/v1/model_chat_v1_service_channel_member.go @@ -0,0 +1,28 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ChatV1ServiceChannelMember struct for ChatV1ServiceChannelMember +type ChatV1ServiceChannelMember struct { + AccountSid string `json:"account_sid,omitempty"` + ChannelSid string `json:"channel_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Identity string `json:"identity,omitempty"` + LastConsumedMessageIndex *int32 `json:"last_consumed_message_index,omitempty"` + LastConsumptionTimestamp time.Time `json:"last_consumption_timestamp,omitempty"` + RoleSid string `json:"role_sid,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/chat/v1/model_chat_v1_service_channel_member_read_response.go b/rest/chat/v1/model_chat_v1_service_channel_member_read_response.go new file mode 100644 index 000000000..e1a94ece8 --- /dev/null +++ b/rest/chat/v1/model_chat_v1_service_channel_member_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ChatV1ServiceChannelMemberReadResponse struct for ChatV1ServiceChannelMemberReadResponse +type ChatV1ServiceChannelMemberReadResponse struct { + Members []ChatV1ServiceChannelMember `json:"members,omitempty"` + Meta ChatV1CredentialReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/chat/v1/model_chat_v1_service_channel_message.go b/rest/chat/v1/model_chat_v1_service_channel_message.go new file mode 100644 index 000000000..98b323d68 --- /dev/null +++ b/rest/chat/v1/model_chat_v1_service_channel_message.go @@ -0,0 +1,30 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ChatV1ServiceChannelMessage struct for ChatV1ServiceChannelMessage +type ChatV1ServiceChannelMessage struct { + AccountSid string `json:"account_sid,omitempty"` + Attributes string `json:"attributes,omitempty"` + Body string `json:"body,omitempty"` + ChannelSid string `json:"channel_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + From string `json:"from,omitempty"` + Index int32 `json:"index,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + To string `json:"to,omitempty"` + Url string `json:"url,omitempty"` + WasEdited bool `json:"was_edited,omitempty"` +} diff --git a/rest/chat/v1/model_chat_v1_service_channel_message_read_response.go b/rest/chat/v1/model_chat_v1_service_channel_message_read_response.go new file mode 100644 index 000000000..b39670fe3 --- /dev/null +++ b/rest/chat/v1/model_chat_v1_service_channel_message_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ChatV1ServiceChannelMessageReadResponse struct for ChatV1ServiceChannelMessageReadResponse +type ChatV1ServiceChannelMessageReadResponse struct { + Messages []ChatV1ServiceChannelMessage `json:"messages,omitempty"` + Meta ChatV1CredentialReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/chat/v1/model_chat_v1_service_channel_read_response.go b/rest/chat/v1/model_chat_v1_service_channel_read_response.go new file mode 100644 index 000000000..f975eaeb1 --- /dev/null +++ b/rest/chat/v1/model_chat_v1_service_channel_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ChatV1ServiceChannelReadResponse struct for ChatV1ServiceChannelReadResponse +type ChatV1ServiceChannelReadResponse struct { + Channels []ChatV1ServiceChannel `json:"channels,omitempty"` + Meta ChatV1CredentialReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/chat/v1/model_chat_v1_service_read_response.go b/rest/chat/v1/model_chat_v1_service_read_response.go new file mode 100644 index 000000000..4142019b8 --- /dev/null +++ b/rest/chat/v1/model_chat_v1_service_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ChatV1ServiceReadResponse struct for ChatV1ServiceReadResponse +type ChatV1ServiceReadResponse struct { + Meta ChatV1CredentialReadResponseMeta `json:"meta,omitempty"` + Services []ChatV1Service `json:"services,omitempty"` +} diff --git a/rest/chat/v1/model_chat_v1_service_role.go b/rest/chat/v1/model_chat_v1_service_role.go new file mode 100644 index 000000000..fb23834ea --- /dev/null +++ b/rest/chat/v1/model_chat_v1_service_role.go @@ -0,0 +1,26 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ChatV1ServiceRole struct for ChatV1ServiceRole +type ChatV1ServiceRole struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Permissions []string `json:"permissions,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Type string `json:"type,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/chat/v1/model_chat_v1_service_role_read_response.go b/rest/chat/v1/model_chat_v1_service_role_read_response.go new file mode 100644 index 000000000..159fcc3b1 --- /dev/null +++ b/rest/chat/v1/model_chat_v1_service_role_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ChatV1ServiceRoleReadResponse struct for ChatV1ServiceRoleReadResponse +type ChatV1ServiceRoleReadResponse struct { + Meta ChatV1CredentialReadResponseMeta `json:"meta,omitempty"` + Roles []ChatV1ServiceRole `json:"roles,omitempty"` +} diff --git a/rest/chat/v1/model_chat_v1_service_user.go b/rest/chat/v1/model_chat_v1_service_user.go new file mode 100644 index 000000000..719b4651d --- /dev/null +++ b/rest/chat/v1/model_chat_v1_service_user.go @@ -0,0 +1,31 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ChatV1ServiceUser struct for ChatV1ServiceUser +type ChatV1ServiceUser struct { + AccountSid string `json:"account_sid,omitempty"` + Attributes string `json:"attributes,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Identity string `json:"identity,omitempty"` + IsNotifiable bool `json:"is_notifiable,omitempty"` + IsOnline bool `json:"is_online,omitempty"` + JoinedChannelsCount int32 `json:"joined_channels_count,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + RoleSid string `json:"role_sid,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/chat/v1/model_chat_v1_service_user_read_response.go b/rest/chat/v1/model_chat_v1_service_user_read_response.go new file mode 100644 index 000000000..cb175619b --- /dev/null +++ b/rest/chat/v1/model_chat_v1_service_user_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ChatV1ServiceUserReadResponse struct for ChatV1ServiceUserReadResponse +type ChatV1ServiceUserReadResponse struct { + Meta ChatV1CredentialReadResponseMeta `json:"meta,omitempty"` + Users []ChatV1ServiceUser `json:"users,omitempty"` +} diff --git a/rest/chat/v1/model_chat_v1_service_user_user_channel.go b/rest/chat/v1/model_chat_v1_service_user_user_channel.go new file mode 100644 index 000000000..c103e3f26 --- /dev/null +++ b/rest/chat/v1/model_chat_v1_service_user_user_channel.go @@ -0,0 +1,22 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ChatV1ServiceUserUserChannel struct for ChatV1ServiceUserUserChannel +type ChatV1ServiceUserUserChannel struct { + AccountSid string `json:"account_sid,omitempty"` + ChannelSid string `json:"channel_sid,omitempty"` + LastConsumedMessageIndex *int32 `json:"last_consumed_message_index,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + MemberSid string `json:"member_sid,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Status string `json:"status,omitempty"` + UnreadMessagesCount *int32 `json:"unread_messages_count,omitempty"` +} diff --git a/rest/chat/v1/model_chat_v1_service_user_user_channel_read_response.go b/rest/chat/v1/model_chat_v1_service_user_user_channel_read_response.go new file mode 100644 index 000000000..690c57660 --- /dev/null +++ b/rest/chat/v1/model_chat_v1_service_user_user_channel_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ChatV1ServiceUserUserChannelReadResponse struct for ChatV1ServiceUserUserChannelReadResponse +type ChatV1ServiceUserUserChannelReadResponse struct { + Channels []ChatV1ServiceUserUserChannel `json:"channels,omitempty"` + Meta ChatV1CredentialReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/chat/v1/model_create_channel_request.go b/rest/chat/v1/model_create_channel_request.go new file mode 100644 index 000000000..58e5c8a58 --- /dev/null +++ b/rest/chat/v1/model_create_channel_request.go @@ -0,0 +1,22 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateChannelRequest struct for CreateChannelRequest +type CreateChannelRequest struct { + // A valid JSON string that contains application-specific data. + Attributes string `json:"Attributes,omitempty"` + // A descriptive string that you create to describe the new resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // The visibility of the channel. Can be: `public` or `private` and defaults to `public`. + Type string `json:"Type,omitempty"` + // An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. This value must be 64 characters or less in length and be unique within the Service. + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/chat/v1/model_create_credential_request.go b/rest/chat/v1/model_create_credential_request.go new file mode 100644 index 000000000..66b8e3417 --- /dev/null +++ b/rest/chat/v1/model_create_credential_request.go @@ -0,0 +1,28 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateCredentialRequest struct for CreateCredentialRequest +type CreateCredentialRequest struct { + // [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. + ApiKey string `json:"ApiKey,omitempty"` + // [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A== -----END CERTIFICATE-----` + Certificate string `json:"Certificate,omitempty"` + // A descriptive string that you create to describe the new resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR. -----END RSA PRIVATE KEY-----` + PrivateKey string `json:"PrivateKey,omitempty"` + // [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. + Sandbox bool `json:"Sandbox,omitempty"` + // [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. + Secret string `json:"Secret,omitempty"` + // The type of push-notification service the credential is for. Can be: `gcm`, `fcm`, or `apn`. + Type string `json:"Type"` +} diff --git a/rest/chat/v1/model_create_invite_request.go b/rest/chat/v1/model_create_invite_request.go new file mode 100644 index 000000000..b66204a99 --- /dev/null +++ b/rest/chat/v1/model_create_invite_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateInviteRequest struct for CreateInviteRequest +type CreateInviteRequest struct { + // The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/api/chat/rest/v1/user) within the [Service](https://www.twilio.com/docs/api/chat/rest/v1/service). See [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) for more info. + Identity string `json:"Identity"` + // The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) assigned to the new member. + RoleSid string `json:"RoleSid,omitempty"` +} diff --git a/rest/chat/v1/model_create_member_request.go b/rest/chat/v1/model_create_member_request.go new file mode 100644 index 000000000..66ef862e4 --- /dev/null +++ b/rest/chat/v1/model_create_member_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateMemberRequest struct for CreateMemberRequest +type CreateMemberRequest struct { + // The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/api/chat/rest/v1/user) within the [Service](https://www.twilio.com/docs/api/chat/rest/services). See [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) for more details. + Identity string `json:"Identity"` + // The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/api/services). + RoleSid string `json:"RoleSid,omitempty"` +} diff --git a/rest/chat/v1/model_create_message_request.go b/rest/chat/v1/model_create_message_request.go new file mode 100644 index 000000000..ca343d469 --- /dev/null +++ b/rest/chat/v1/model_create_message_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateMessageRequest struct for CreateMessageRequest +type CreateMessageRequest struct { + // A valid JSON string that contains application-specific data. + Attributes string `json:"Attributes,omitempty"` + // The message to send to the channel. Can also be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string. + Body string `json:"Body"` + // The [identity](https://www.twilio.com/docs/api/chat/guides/identity) of the new message's author. The default value is `system`. + From string `json:"From,omitempty"` +} diff --git a/rest/chat/v1/model_create_role_request.go b/rest/chat/v1/model_create_role_request.go new file mode 100644 index 000000000..11be3c58d --- /dev/null +++ b/rest/chat/v1/model_create_role_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateRoleRequest struct for CreateRoleRequest +type CreateRoleRequest struct { + // A descriptive string that you create to describe the new resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName"` + // A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type` and are described in the documentation. + Permission []string `json:"Permission"` + // The type of role. Can be: `channel` for [Channel](https://www.twilio.com/docs/chat/api/channels) roles or `deployment` for [Service](https://www.twilio.com/docs/chat/api/services) roles. + Type string `json:"Type"` +} diff --git a/rest/chat/v1/model_create_service_request.go b/rest/chat/v1/model_create_service_request.go new file mode 100644 index 000000000..f24518846 --- /dev/null +++ b/rest/chat/v1/model_create_service_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateServiceRequest struct for CreateServiceRequest +type CreateServiceRequest struct { + // A descriptive string that you create to describe the resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName"` +} diff --git a/rest/chat/v1/model_create_user_request.go b/rest/chat/v1/model_create_user_request.go new file mode 100644 index 000000000..61bacc26e --- /dev/null +++ b/rest/chat/v1/model_create_user_request.go @@ -0,0 +1,22 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateUserRequest struct for CreateUserRequest +type CreateUserRequest struct { + // A valid JSON string that contains application-specific data. + Attributes string `json:"Attributes,omitempty"` + // A descriptive string that you create to describe the new resource. This value is often used for display purposes. + FriendlyName string `json:"FriendlyName,omitempty"` + // The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/api/chat/rest/v1/user) within the [Service](https://www.twilio.com/docs/api/chat/rest/v1/service). This value is often a username or email address. See the Identity documentation for more details. + Identity string `json:"Identity"` + // The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) assigned to the new User. + RoleSid string `json:"RoleSid,omitempty"` +} diff --git a/rest/chat/v1/model_update_channel_request.go b/rest/chat/v1/model_update_channel_request.go new file mode 100644 index 000000000..64324afe5 --- /dev/null +++ b/rest/chat/v1/model_update_channel_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateChannelRequest struct for UpdateChannelRequest +type UpdateChannelRequest struct { + // A valid JSON string that contains application-specific data. + Attributes string `json:"Attributes,omitempty"` + // A descriptive string that you create to describe the resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. This value must be 64 characters or less in length and be unique within the Service. + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/chat/v1/model_update_credential_request.go b/rest/chat/v1/model_update_credential_request.go new file mode 100644 index 000000000..89f104e8d --- /dev/null +++ b/rest/chat/v1/model_update_credential_request.go @@ -0,0 +1,26 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateCredentialRequest struct for UpdateCredentialRequest +type UpdateCredentialRequest struct { + // [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. + ApiKey string `json:"ApiKey,omitempty"` + // [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A== -----END CERTIFICATE-----` + Certificate string `json:"Certificate,omitempty"` + // A descriptive string that you create to describe the resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR. -----END RSA PRIVATE KEY-----` + PrivateKey string `json:"PrivateKey,omitempty"` + // [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. + Sandbox bool `json:"Sandbox,omitempty"` + // [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. + Secret string `json:"Secret,omitempty"` +} diff --git a/rest/chat/v1/model_update_member_request.go b/rest/chat/v1/model_update_member_request.go new file mode 100644 index 000000000..58ba4e53a --- /dev/null +++ b/rest/chat/v1/model_update_member_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateMemberRequest struct for UpdateMemberRequest +type UpdateMemberRequest struct { + // The index of the last [Message](https://www.twilio.com/docs/api/chat/rest/messages) that the Member has read within the [Channel](https://www.twilio.com/docs/api/chat/rest/channels). + LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` + // The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/api/services). + RoleSid string `json:"RoleSid,omitempty"` +} diff --git a/rest/chat/v1/model_update_message_request.go b/rest/chat/v1/model_update_message_request.go new file mode 100644 index 000000000..22618bbf6 --- /dev/null +++ b/rest/chat/v1/model_update_message_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateMessageRequest struct for UpdateMessageRequest +type UpdateMessageRequest struct { + // A valid JSON string that contains application-specific data. + Attributes string `json:"Attributes,omitempty"` + // The message to send to the channel. Can also be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string. + Body string `json:"Body,omitempty"` +} diff --git a/rest/chat/v1/model_update_role_request.go b/rest/chat/v1/model_update_role_request.go new file mode 100644 index 000000000..f13f19377 --- /dev/null +++ b/rest/chat/v1/model_update_role_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateRoleRequest struct for UpdateRoleRequest +type UpdateRoleRequest struct { + // A permission that you grant to the role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type` and are described in the documentation. + Permission []string `json:"Permission"` +} diff --git a/rest/chat/v1/model_update_service_request.go b/rest/chat/v1/model_update_service_request.go new file mode 100644 index 000000000..408d1abbd --- /dev/null +++ b/rest/chat/v1/model_update_service_request.go @@ -0,0 +1,122 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateServiceRequest struct for UpdateServiceRequest +type UpdateServiceRequest struct { + // DEPRECATED. The interval in seconds between consumption reports submission batches from client endpoints. + ConsumptionReportInterval int32 `json:"ConsumptionReportInterval,omitempty"` + // The channel role assigned to a channel creator when they join a new channel. See the [Roles endpoint](https://www.twilio.com/docs/chat/api/roles) for more details. + DefaultChannelCreatorRoleSid string `json:"DefaultChannelCreatorRoleSid,omitempty"` + // The channel role assigned to users when they are added to a channel. See the [Roles endpoint](https://www.twilio.com/docs/chat/api/roles) for more details. + DefaultChannelRoleSid string `json:"DefaultChannelRoleSid,omitempty"` + // The service role assigned to users when they are added to the service. See the [Roles endpoint](https://www.twilio.com/docs/chat/api/roles) for more details. + DefaultServiceRoleSid string `json:"DefaultServiceRoleSid,omitempty"` + // A descriptive string that you create to describe the resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // The maximum number of Members that can be added to Channels within this Service. Can be up to 1,000. + LimitsChannelMembers int32 `json:"Limits.ChannelMembers,omitempty"` + // The maximum number of Channels Users can be a Member of within this Service. Can be up to 1,000. + LimitsUserChannels int32 `json:"Limits.UserChannels,omitempty"` + // Whether to send a notification when a member is added to a channel. Can be: `true` or `false` and the default is `false`. + NotificationsAddedToChannelEnabled bool `json:"Notifications.AddedToChannel.Enabled,omitempty"` + // The template to use to create the notification text displayed when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. + NotificationsAddedToChannelTemplate string `json:"Notifications.AddedToChannel.Template,omitempty"` + // Whether to send a notification when a user is invited to a channel. Can be: `true` or `false` and the default is `false`. + NotificationsInvitedToChannelEnabled bool `json:"Notifications.InvitedToChannel.Enabled,omitempty"` + // The template to use to create the notification text displayed when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. + NotificationsInvitedToChannelTemplate string `json:"Notifications.InvitedToChannel.Template,omitempty"` + // Whether to send a notification when a new message is added to a channel. Can be: `true` or `false` and the default is `false`. + NotificationsNewMessageEnabled bool `json:"Notifications.NewMessage.Enabled,omitempty"` + // The template to use to create the notification text displayed when a new message is added to a channel and `notifications.new_message.enabled` is `true`. + NotificationsNewMessageTemplate string `json:"Notifications.NewMessage.Template,omitempty"` + // Whether to send a notification to a user when they are removed from a channel. Can be: `true` or `false` and the default is `false`. + NotificationsRemovedFromChannelEnabled bool `json:"Notifications.RemovedFromChannel.Enabled,omitempty"` + // The template to use to create the notification text displayed to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. + NotificationsRemovedFromChannelTemplate string `json:"Notifications.RemovedFromChannel.Template,omitempty"` + // The URL for post-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more details. + PostWebhookUrl string `json:"PostWebhookUrl,omitempty"` + // The URL for pre-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more details. + PreWebhookUrl string `json:"PreWebhookUrl,omitempty"` + // Whether to enable the [Reachability Indicator](https://www.twilio.com/docs/chat/reachability-indicator) for this Service instance. The default is `false`. + ReachabilityEnabled bool `json:"ReachabilityEnabled,omitempty"` + // Whether to enable the [Message Consumption Horizon](https://www.twilio.com/docs/chat/consumption-horizon) feature. The default is `true`. + ReadStatusEnabled bool `json:"ReadStatusEnabled,omitempty"` + // How long in seconds after a `started typing` event until clients should assume that user is no longer typing, even if no `ended typing` message was received. The default is 5 seconds. + TypingIndicatorTimeout int32 `json:"TypingIndicatorTimeout,omitempty"` + // The list of WebHook events that are enabled for this Service instance. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. + WebhookFilters []string `json:"WebhookFilters,omitempty"` + // The HTTP method to use for calls to the `pre_webhook_url` and `post_webhook_url` webhooks. Can be: `POST` or `GET` and the default is `POST`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. + WebhookMethod string `json:"WebhookMethod,omitempty"` + // The HTTP method to use when calling the `webhooks.on_channel_add.url`. + WebhooksOnChannelAddMethod string `json:"Webhooks.OnChannelAdd.Method,omitempty"` + // The URL of the webhook to call in response to the `on_channel_add` event using the `webhooks.on_channel_add.method` HTTP method. + WebhooksOnChannelAddUrl string `json:"Webhooks.OnChannelAdd.Url,omitempty"` + // The URL of the webhook to call in response to the `on_channel_added` event`. + WebhooksOnChannelAddedMethod string `json:"Webhooks.OnChannelAdded.Method,omitempty"` + // The URL of the webhook to call in response to the `on_channel_added` event using the `webhooks.on_channel_added.method` HTTP method. + WebhooksOnChannelAddedUrl string `json:"Webhooks.OnChannelAdded.Url,omitempty"` + // The HTTP method to use when calling the `webhooks.on_channel_destroy.url`. + WebhooksOnChannelDestroyMethod string `json:"Webhooks.OnChannelDestroy.Method,omitempty"` + // The URL of the webhook to call in response to the `on_channel_destroy` event using the `webhooks.on_channel_destroy.method` HTTP method. + WebhooksOnChannelDestroyUrl string `json:"Webhooks.OnChannelDestroy.Url,omitempty"` + // The HTTP method to use when calling the `webhooks.on_channel_destroyed.url`. + WebhooksOnChannelDestroyedMethod string `json:"Webhooks.OnChannelDestroyed.Method,omitempty"` + // The URL of the webhook to call in response to the `on_channel_added` event using the `webhooks.on_channel_destroyed.method` HTTP method. + WebhooksOnChannelDestroyedUrl string `json:"Webhooks.OnChannelDestroyed.Url,omitempty"` + // The HTTP method to use when calling the `webhooks.on_channel_update.url`. + WebhooksOnChannelUpdateMethod string `json:"Webhooks.OnChannelUpdate.Method,omitempty"` + // The URL of the webhook to call in response to the `on_channel_update` event using the `webhooks.on_channel_update.method` HTTP method. + WebhooksOnChannelUpdateUrl string `json:"Webhooks.OnChannelUpdate.Url,omitempty"` + // The HTTP method to use when calling the `webhooks.on_channel_updated.url`. + WebhooksOnChannelUpdatedMethod string `json:"Webhooks.OnChannelUpdated.Method,omitempty"` + // The URL of the webhook to call in response to the `on_channel_updated` event using the `webhooks.on_channel_updated.method` HTTP method. + WebhooksOnChannelUpdatedUrl string `json:"Webhooks.OnChannelUpdated.Url,omitempty"` + // The HTTP method to use when calling the `webhooks.on_member_add.url`. + WebhooksOnMemberAddMethod string `json:"Webhooks.OnMemberAdd.Method,omitempty"` + // The URL of the webhook to call in response to the `on_member_add` event using the `webhooks.on_member_add.method` HTTP method. + WebhooksOnMemberAddUrl string `json:"Webhooks.OnMemberAdd.Url,omitempty"` + // The HTTP method to use when calling the `webhooks.on_channel_updated.url`. + WebhooksOnMemberAddedMethod string `json:"Webhooks.OnMemberAdded.Method,omitempty"` + // The URL of the webhook to call in response to the `on_channel_updated` event using the `webhooks.on_channel_updated.method` HTTP method. + WebhooksOnMemberAddedUrl string `json:"Webhooks.OnMemberAdded.Url,omitempty"` + // The HTTP method to use when calling the `webhooks.on_member_remove.url`. + WebhooksOnMemberRemoveMethod string `json:"Webhooks.OnMemberRemove.Method,omitempty"` + // The URL of the webhook to call in response to the `on_member_remove` event using the `webhooks.on_member_remove.method` HTTP method. + WebhooksOnMemberRemoveUrl string `json:"Webhooks.OnMemberRemove.Url,omitempty"` + // The HTTP method to use when calling the `webhooks.on_member_removed.url`. + WebhooksOnMemberRemovedMethod string `json:"Webhooks.OnMemberRemoved.Method,omitempty"` + // The URL of the webhook to call in response to the `on_member_removed` event using the `webhooks.on_member_removed.method` HTTP method. + WebhooksOnMemberRemovedUrl string `json:"Webhooks.OnMemberRemoved.Url,omitempty"` + // The HTTP method to use when calling the `webhooks.on_message_remove.url`. + WebhooksOnMessageRemoveMethod string `json:"Webhooks.OnMessageRemove.Method,omitempty"` + // The URL of the webhook to call in response to the `on_message_remove` event using the `webhooks.on_message_remove.method` HTTP method. + WebhooksOnMessageRemoveUrl string `json:"Webhooks.OnMessageRemove.Url,omitempty"` + // The HTTP method to use when calling the `webhooks.on_message_removed.url`. + WebhooksOnMessageRemovedMethod string `json:"Webhooks.OnMessageRemoved.Method,omitempty"` + // The URL of the webhook to call in response to the `on_message_removed` event using the `webhooks.on_message_removed.method` HTTP method. + WebhooksOnMessageRemovedUrl string `json:"Webhooks.OnMessageRemoved.Url,omitempty"` + // The HTTP method to use when calling the `webhooks.on_message_send.url`. + WebhooksOnMessageSendMethod string `json:"Webhooks.OnMessageSend.Method,omitempty"` + // The URL of the webhook to call in response to the `on_message_send` event using the `webhooks.on_message_send.method` HTTP method. + WebhooksOnMessageSendUrl string `json:"Webhooks.OnMessageSend.Url,omitempty"` + // The URL of the webhook to call in response to the `on_message_sent` event`. + WebhooksOnMessageSentMethod string `json:"Webhooks.OnMessageSent.Method,omitempty"` + // The URL of the webhook to call in response to the `on_message_sent` event using the `webhooks.on_message_sent.method` HTTP method. + WebhooksOnMessageSentUrl string `json:"Webhooks.OnMessageSent.Url,omitempty"` + // The HTTP method to use when calling the `webhooks.on_message_update.url`. + WebhooksOnMessageUpdateMethod string `json:"Webhooks.OnMessageUpdate.Method,omitempty"` + // The URL of the webhook to call in response to the `on_message_update` event using the `webhooks.on_message_update.method` HTTP method. + WebhooksOnMessageUpdateUrl string `json:"Webhooks.OnMessageUpdate.Url,omitempty"` + // The HTTP method to use when calling the `webhooks.on_message_updated.url`. + WebhooksOnMessageUpdatedMethod string `json:"Webhooks.OnMessageUpdated.Method,omitempty"` + // The URL of the webhook to call in response to the `on_message_updated` event using the `webhooks.on_message_updated.method` HTTP method. + WebhooksOnMessageUpdatedUrl string `json:"Webhooks.OnMessageUpdated.Url,omitempty"` +} diff --git a/rest/chat/v1/model_update_user_request.go b/rest/chat/v1/model_update_user_request.go new file mode 100644 index 000000000..6a7367e7f --- /dev/null +++ b/rest/chat/v1/model_update_user_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateUserRequest struct for UpdateUserRequest +type UpdateUserRequest struct { + // A valid JSON string that contains application-specific data. + Attributes string `json:"Attributes,omitempty"` + // A descriptive string that you create to describe the resource. It is often used for display purposes. + FriendlyName string `json:"FriendlyName,omitempty"` + // The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) assigned to this user. + RoleSid string `json:"RoleSid,omitempty"` +} diff --git a/rest/chat/v1/response.go b/rest/chat/v1/response.go new file mode 100644 index 000000000..e186e61a0 --- /dev/null +++ b/rest/chat/v1/response.go @@ -0,0 +1,47 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// Response returns a new APIResponse object. +func Response(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// ResponseWithError returns a new APIResponse object with the provided error message. +func ResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/rest/chat/v2/.openapi-generator-ignore b/rest/chat/v2/.openapi-generator-ignore new file mode 100644 index 000000000..7484ee590 --- /dev/null +++ b/rest/chat/v2/.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/rest/chat/v2/.openapi-generator/VERSION b/rest/chat/v2/.openapi-generator/VERSION new file mode 100644 index 000000000..ecedc98d1 --- /dev/null +++ b/rest/chat/v2/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.3.1 \ No newline at end of file diff --git a/rest/chat/v2/README.md b/rest/chat/v2/README.md new file mode 100644 index 000000000..7c155920a --- /dev/null +++ b/rest/chat/v2/README.md @@ -0,0 +1,159 @@ +# Go API client for openapi + +This is the public Twilio REST API. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 5.15.0 +- Package version: 1.0.0 +- Build package: com.twilio.oai.TwilioGoGenerator +For more information, please visit [https://support.twilio.com](https://support.twilio.com) + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import "./openapi" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**CreateChannel**](docs/DefaultApi.md#createchannel) | **Post** /v2/Services/{ServiceSid}/Channels | +*DefaultApi* | [**CreateChannelWebhook**](docs/DefaultApi.md#createchannelwebhook) | **Post** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks | +*DefaultApi* | [**CreateCredential**](docs/DefaultApi.md#createcredential) | **Post** /v2/Credentials | +*DefaultApi* | [**CreateInvite**](docs/DefaultApi.md#createinvite) | **Post** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites | +*DefaultApi* | [**CreateMember**](docs/DefaultApi.md#createmember) | **Post** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members | +*DefaultApi* | [**CreateMessage**](docs/DefaultApi.md#createmessage) | **Post** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages | +*DefaultApi* | [**CreateRole**](docs/DefaultApi.md#createrole) | **Post** /v2/Services/{ServiceSid}/Roles | +*DefaultApi* | [**CreateService**](docs/DefaultApi.md#createservice) | **Post** /v2/Services | +*DefaultApi* | [**CreateUser**](docs/DefaultApi.md#createuser) | **Post** /v2/Services/{ServiceSid}/Users | +*DefaultApi* | [**DeleteBinding**](docs/DefaultApi.md#deletebinding) | **Delete** /v2/Services/{ServiceSid}/Bindings/{Sid} | +*DefaultApi* | [**DeleteChannel**](docs/DefaultApi.md#deletechannel) | **Delete** /v2/Services/{ServiceSid}/Channels/{Sid} | +*DefaultApi* | [**DeleteChannelWebhook**](docs/DefaultApi.md#deletechannelwebhook) | **Delete** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid} | +*DefaultApi* | [**DeleteCredential**](docs/DefaultApi.md#deletecredential) | **Delete** /v2/Credentials/{Sid} | +*DefaultApi* | [**DeleteInvite**](docs/DefaultApi.md#deleteinvite) | **Delete** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid} | +*DefaultApi* | [**DeleteMember**](docs/DefaultApi.md#deletemember) | **Delete** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid} | +*DefaultApi* | [**DeleteMessage**](docs/DefaultApi.md#deletemessage) | **Delete** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid} | +*DefaultApi* | [**DeleteRole**](docs/DefaultApi.md#deleterole) | **Delete** /v2/Services/{ServiceSid}/Roles/{Sid} | +*DefaultApi* | [**DeleteService**](docs/DefaultApi.md#deleteservice) | **Delete** /v2/Services/{Sid} | +*DefaultApi* | [**DeleteUser**](docs/DefaultApi.md#deleteuser) | **Delete** /v2/Services/{ServiceSid}/Users/{Sid} | +*DefaultApi* | [**DeleteUserBinding**](docs/DefaultApi.md#deleteuserbinding) | **Delete** /v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid} | +*DefaultApi* | [**DeleteUserChannel**](docs/DefaultApi.md#deleteuserchannel) | **Delete** /v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid} | +*DefaultApi* | [**FetchBinding**](docs/DefaultApi.md#fetchbinding) | **Get** /v2/Services/{ServiceSid}/Bindings/{Sid} | +*DefaultApi* | [**FetchChannel**](docs/DefaultApi.md#fetchchannel) | **Get** /v2/Services/{ServiceSid}/Channels/{Sid} | +*DefaultApi* | [**FetchChannelWebhook**](docs/DefaultApi.md#fetchchannelwebhook) | **Get** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid} | +*DefaultApi* | [**FetchCredential**](docs/DefaultApi.md#fetchcredential) | **Get** /v2/Credentials/{Sid} | +*DefaultApi* | [**FetchInvite**](docs/DefaultApi.md#fetchinvite) | **Get** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid} | +*DefaultApi* | [**FetchMember**](docs/DefaultApi.md#fetchmember) | **Get** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid} | +*DefaultApi* | [**FetchMessage**](docs/DefaultApi.md#fetchmessage) | **Get** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid} | +*DefaultApi* | [**FetchRole**](docs/DefaultApi.md#fetchrole) | **Get** /v2/Services/{ServiceSid}/Roles/{Sid} | +*DefaultApi* | [**FetchService**](docs/DefaultApi.md#fetchservice) | **Get** /v2/Services/{Sid} | +*DefaultApi* | [**FetchUser**](docs/DefaultApi.md#fetchuser) | **Get** /v2/Services/{ServiceSid}/Users/{Sid} | +*DefaultApi* | [**FetchUserBinding**](docs/DefaultApi.md#fetchuserbinding) | **Get** /v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid} | +*DefaultApi* | [**FetchUserChannel**](docs/DefaultApi.md#fetchuserchannel) | **Get** /v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid} | +*DefaultApi* | [**ListBinding**](docs/DefaultApi.md#listbinding) | **Get** /v2/Services/{ServiceSid}/Bindings | +*DefaultApi* | [**ListChannel**](docs/DefaultApi.md#listchannel) | **Get** /v2/Services/{ServiceSid}/Channels | +*DefaultApi* | [**ListChannelWebhook**](docs/DefaultApi.md#listchannelwebhook) | **Get** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks | +*DefaultApi* | [**ListCredential**](docs/DefaultApi.md#listcredential) | **Get** /v2/Credentials | +*DefaultApi* | [**ListInvite**](docs/DefaultApi.md#listinvite) | **Get** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites | +*DefaultApi* | [**ListMember**](docs/DefaultApi.md#listmember) | **Get** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members | +*DefaultApi* | [**ListMessage**](docs/DefaultApi.md#listmessage) | **Get** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages | +*DefaultApi* | [**ListRole**](docs/DefaultApi.md#listrole) | **Get** /v2/Services/{ServiceSid}/Roles | +*DefaultApi* | [**ListService**](docs/DefaultApi.md#listservice) | **Get** /v2/Services | +*DefaultApi* | [**ListUser**](docs/DefaultApi.md#listuser) | **Get** /v2/Services/{ServiceSid}/Users | +*DefaultApi* | [**ListUserBinding**](docs/DefaultApi.md#listuserbinding) | **Get** /v2/Services/{ServiceSid}/Users/{UserSid}/Bindings | +*DefaultApi* | [**ListUserChannel**](docs/DefaultApi.md#listuserchannel) | **Get** /v2/Services/{ServiceSid}/Users/{UserSid}/Channels | +*DefaultApi* | [**UpdateChannel**](docs/DefaultApi.md#updatechannel) | **Post** /v2/Services/{ServiceSid}/Channels/{Sid} | +*DefaultApi* | [**UpdateChannelWebhook**](docs/DefaultApi.md#updatechannelwebhook) | **Post** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid} | +*DefaultApi* | [**UpdateCredential**](docs/DefaultApi.md#updatecredential) | **Post** /v2/Credentials/{Sid} | +*DefaultApi* | [**UpdateMember**](docs/DefaultApi.md#updatemember) | **Post** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid} | +*DefaultApi* | [**UpdateMessage**](docs/DefaultApi.md#updatemessage) | **Post** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid} | +*DefaultApi* | [**UpdateRole**](docs/DefaultApi.md#updaterole) | **Post** /v2/Services/{ServiceSid}/Roles/{Sid} | +*DefaultApi* | [**UpdateService**](docs/DefaultApi.md#updateservice) | **Post** /v2/Services/{Sid} | +*DefaultApi* | [**UpdateUser**](docs/DefaultApi.md#updateuser) | **Post** /v2/Services/{ServiceSid}/Users/{Sid} | +*DefaultApi* | [**UpdateUserChannel**](docs/DefaultApi.md#updateuserchannel) | **Post** /v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid} | + + +## Documentation For Models + + - [ChatV2Credential](docs/ChatV2Credential.md) + - [ChatV2CredentialReadResponse](docs/ChatV2CredentialReadResponse.md) + - [ChatV2CredentialReadResponseMeta](docs/ChatV2CredentialReadResponseMeta.md) + - [ChatV2Service](docs/ChatV2Service.md) + - [ChatV2ServiceBinding](docs/ChatV2ServiceBinding.md) + - [ChatV2ServiceBindingReadResponse](docs/ChatV2ServiceBindingReadResponse.md) + - [ChatV2ServiceChannel](docs/ChatV2ServiceChannel.md) + - [ChatV2ServiceChannelChannelWebhook](docs/ChatV2ServiceChannelChannelWebhook.md) + - [ChatV2ServiceChannelChannelWebhookReadResponse](docs/ChatV2ServiceChannelChannelWebhookReadResponse.md) + - [ChatV2ServiceChannelInvite](docs/ChatV2ServiceChannelInvite.md) + - [ChatV2ServiceChannelInviteReadResponse](docs/ChatV2ServiceChannelInviteReadResponse.md) + - [ChatV2ServiceChannelMember](docs/ChatV2ServiceChannelMember.md) + - [ChatV2ServiceChannelMemberReadResponse](docs/ChatV2ServiceChannelMemberReadResponse.md) + - [ChatV2ServiceChannelMessage](docs/ChatV2ServiceChannelMessage.md) + - [ChatV2ServiceChannelMessageReadResponse](docs/ChatV2ServiceChannelMessageReadResponse.md) + - [ChatV2ServiceChannelReadResponse](docs/ChatV2ServiceChannelReadResponse.md) + - [ChatV2ServiceReadResponse](docs/ChatV2ServiceReadResponse.md) + - [ChatV2ServiceRole](docs/ChatV2ServiceRole.md) + - [ChatV2ServiceRoleReadResponse](docs/ChatV2ServiceRoleReadResponse.md) + - [ChatV2ServiceUser](docs/ChatV2ServiceUser.md) + - [ChatV2ServiceUserReadResponse](docs/ChatV2ServiceUserReadResponse.md) + - [ChatV2ServiceUserUserBinding](docs/ChatV2ServiceUserUserBinding.md) + - [ChatV2ServiceUserUserBindingReadResponse](docs/ChatV2ServiceUserUserBindingReadResponse.md) + - [ChatV2ServiceUserUserChannel](docs/ChatV2ServiceUserUserChannel.md) + - [ChatV2ServiceUserUserChannelReadResponse](docs/ChatV2ServiceUserUserChannelReadResponse.md) + - [CreateChannelRequest](docs/CreateChannelRequest.md) + - [CreateChannelWebhookRequest](docs/CreateChannelWebhookRequest.md) + - [CreateCredentialRequest](docs/CreateCredentialRequest.md) + - [CreateInviteRequest](docs/CreateInviteRequest.md) + - [CreateMemberRequest](docs/CreateMemberRequest.md) + - [CreateMessageRequest](docs/CreateMessageRequest.md) + - [CreateRoleRequest](docs/CreateRoleRequest.md) + - [CreateServiceRequest](docs/CreateServiceRequest.md) + - [CreateUserRequest](docs/CreateUserRequest.md) + - [UpdateChannelRequest](docs/UpdateChannelRequest.md) + - [UpdateChannelWebhookRequest](docs/UpdateChannelWebhookRequest.md) + - [UpdateCredentialRequest](docs/UpdateCredentialRequest.md) + - [UpdateMemberRequest](docs/UpdateMemberRequest.md) + - [UpdateMessageRequest](docs/UpdateMessageRequest.md) + - [UpdateRoleRequest](docs/UpdateRoleRequest.md) + - [UpdateServiceRequest](docs/UpdateServiceRequest.md) + - [UpdateUserChannelRequest](docs/UpdateUserChannelRequest.md) + - [UpdateUserRequest](docs/UpdateUserRequest.md) + + +## Documentation For Authorization + + + +## accountSid_authToken + +- **Type**: HTTP basic authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ + UserName: "username", + Password: "password", +}) +r, err := client.Service.Operation(auth, args) +``` + + +## Author + +support@twilio.com + diff --git a/rest/chat/v2/api_default.go b/rest/chat/v2/api_default.go new file mode 100644 index 000000000..3cc91e07e --- /dev/null +++ b/rest/chat/v2/api_default.go @@ -0,0 +1,2474 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "" + "reflect" +) + +type DefaultApiService struct { + baseURL string + client *twilio.Client +} + +func NewDefaultApiService(client *twilio.Client) *DefaultApiService { + return &DefaultApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} +// CreateChannelParams Optional parameters for the method 'CreateChannel' +type CreateChannelParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + CreatedBy *string `json:"CreatedBy,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Type *string `json:"Type,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +CreateChannel Method for CreateChannel + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Channel resource under. + * @param optional nil or *CreateChannelOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "Attributes" (string) - A valid JSON string that contains application-specific data. + * @param "CreatedBy" (string) - The `identity` of the User that created the channel. Default is: `system`. + * @param "DateCreated" (time.Time) - The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. Note that this should only be used in cases where a Channel is being recreated from a backup/separate source. + * @param "DateUpdated" (time.Time) - The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. The default value is `null`. Note that this parameter should only be used in cases where a Channel is being recreated from a backup/separate source and where a Message was previously updated. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the new resource. It can be up to 64 characters long. + * @param "Type" (string) - The visibility of the channel. Can be: `public` or `private` and defaults to `public`. + * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the Channel resource's `sid` in the URL. This value must be 64 characters or less in length and be unique within the Service. +@return ChatV2ServiceChannel +*/ +func (c *DefaultApiService) CreateChannel(serviceSid string, params *CreateChannelParams) (*ChatV2ServiceChannel, error) { + path := "/v2/Services/{ServiceSid}/Channels" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.CreatedBy != nil { + data.Set("CreatedBy", *params.CreatedBy) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateChannelWebhookParams Optional parameters for the method 'CreateChannelWebhook' +type CreateChannelWebhookParams struct { + Configuration.Filters *[]string `json:"Configuration.Filters,omitempty"` + Configuration.FlowSid *string `json:"Configuration.FlowSid,omitempty"` + Configuration.Method *string `json:"Configuration.Method,omitempty"` + Configuration.RetryCount *int32 `json:"Configuration.RetryCount,omitempty"` + Configuration.Triggers *[]string `json:"Configuration.Triggers,omitempty"` + Configuration.Url *string `json:"Configuration.Url,omitempty"` + Type *string `json:"Type,omitempty"` +} + +/* +CreateChannelWebhook Method for CreateChannelWebhook + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel to create the Webhook resource under. + * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the new Channel Webhook resource belongs to. This value can be the Channel resource's `sid` or `unique_name`. + * @param optional nil or *CreateChannelWebhookOpts - Optional Parameters: + * @param "Configuration.Filters" ([]string) - The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger). + * @param "Configuration.FlowSid" (string) - The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` is `studio`. + * @param "Configuration.Method" (string) - The HTTP method used to call `configuration.url`. Can be: `GET` or `POST` and the default is `POST`. + * @param "Configuration.RetryCount" (int32) - The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0. + * @param "Configuration.Triggers" ([]string) - A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`. + * @param "Configuration.Url" (string) - The URL of the webhook to call using the `configuration.method`. + * @param "Type" (string) - The type of webhook. Can be: `webhook`, `studio`, or `trigger`. +@return ChatV2ServiceChannelChannelWebhook +*/ +func (c *DefaultApiService) CreateChannelWebhook(serviceSid string, channelSid string, params *CreateChannelWebhookParams) (*ChatV2ServiceChannelChannelWebhook, error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Configuration.Filters != nil { + data.Set("Configuration.Filters", *params.Configuration.Filters) + } + if params != nil && params.Configuration.FlowSid != nil { + data.Set("Configuration.FlowSid", *params.Configuration.FlowSid) + } + if params != nil && params.Configuration.Method != nil { + data.Set("Configuration.Method", *params.Configuration.Method) + } + if params != nil && params.Configuration.RetryCount != nil { + data.Set("Configuration.RetryCount", string(*params.Configuration.RetryCount)) + } + if params != nil && params.Configuration.Triggers != nil { + data.Set("Configuration.Triggers", *params.Configuration.Triggers) + } + if params != nil && params.Configuration.Url != nil { + data.Set("Configuration.Url", *params.Configuration.Url) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceChannelChannelWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateCredentialParams Optional parameters for the method 'CreateCredential' +type CreateCredentialParams struct { + ApiKey *string `json:"ApiKey,omitempty"` + Certificate *string `json:"Certificate,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PrivateKey *string `json:"PrivateKey,omitempty"` + Sandbox *bool `json:"Sandbox,omitempty"` + Secret *string `json:"Secret,omitempty"` + Type *string `json:"Type,omitempty"` +} + +/* +CreateCredential Method for CreateCredential + * @param optional nil or *CreateCredentialOpts - Optional Parameters: + * @param "ApiKey" (string) - [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. + * @param "Certificate" (string) - [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== -----END CERTIFICATE-----` + * @param "FriendlyName" (string) - A descriptive string that you create to describe the new resource. It can be up to 64 characters long. + * @param "PrivateKey" (string) - [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fG... -----END RSA PRIVATE KEY-----` + * @param "Sandbox" (bool) - [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. + * @param "Secret" (string) - [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. + * @param "Type" (string) - The type of push-notification service the credential is for. Can be: `gcm`, `fcm`, or `apn`. +@return ChatV2Credential +*/ +func (c *DefaultApiService) CreateCredential(params *CreateCredentialParams) (*ChatV2Credential, error) { + path := "/v2/Credentials" + + data := url.Values{} + headers := 0 + + if params != nil && params.ApiKey != nil { + data.Set("ApiKey", *params.ApiKey) + } + if params != nil && params.Certificate != nil { + data.Set("Certificate", *params.Certificate) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PrivateKey != nil { + data.Set("PrivateKey", *params.PrivateKey) + } + if params != nil && params.Sandbox != nil { + data.Set("Sandbox", string(*params.Sandbox)) + } + if params != nil && params.Secret != nil { + data.Set("Secret", *params.Secret) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2Credential{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateInviteParams Optional parameters for the method 'CreateInvite' +type CreateInviteParams struct { + Identity *string `json:"Identity,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` +} + +/* +CreateInvite Method for CreateInvite + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Invite resource under. + * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the new Invite resource belongs to. This value can be the Channel resource's `sid` or `unique_name`. + * @param optional nil or *CreateInviteOpts - Optional Parameters: + * @param "Identity" (string) - The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/chat/rest/service-resource). See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more info. + * @param "RoleSid" (string) - The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) assigned to the new member. +@return ChatV2ServiceChannelInvite +*/ +func (c *DefaultApiService) CreateInvite(serviceSid string, channelSid string, params *CreateInviteParams) (*ChatV2ServiceChannelInvite, error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceChannelInvite{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateMemberParams Optional parameters for the method 'CreateMember' +type CreateMemberParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + Identity *string `json:"Identity,omitempty"` + LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` + LastConsumptionTimestamp *time.Time `json:"LastConsumptionTimestamp,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` +} + +/* +CreateMember Method for CreateMember + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Member resource under. + * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the new Member resource belongs to. This value can be the Channel resource's `sid` or `unique_name`. + * @param optional nil or *CreateMemberOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "Attributes" (string) - A valid JSON string that contains application-specific data. + * @param "DateCreated" (time.Time) - The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. Note that this parameter should only be used when a Member is being recreated from a backup/separate source. + * @param "DateUpdated" (time.Time) - The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. The default value is `null`. Note that this parameter should only be used when a Member is being recreated from a backup/separate source and where a Member was previously updated. + * @param "Identity" (string) - The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/chat/rest/service-resource). See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more info. + * @param "LastConsumedMessageIndex" (*int32) - The index of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) in the [Channel](https://www.twilio.com/docs/chat/channels) that the Member has read. This parameter should only be used when recreating a Member from a backup/separate source. + * @param "LastConsumptionTimestamp" (time.Time) - The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) read event for the Member within the [Channel](https://www.twilio.com/docs/chat/channels). + * @param "RoleSid" (string) - The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/rest/service-resource). +@return ChatV2ServiceChannelMember +*/ +func (c *DefaultApiService) CreateMember(serviceSid string, channelSid string, params *CreateMemberParams) (*ChatV2ServiceChannelMember, error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.LastConsumedMessageIndex != nil { + data.Set("LastConsumedMessageIndex", string(*params.LastConsumedMessageIndex)) + } + if params != nil && params.LastConsumptionTimestamp != nil { + data.Set("LastConsumptionTimestamp", string(*params.LastConsumptionTimestamp)) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceChannelMember{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateMessageParams Optional parameters for the method 'CreateMessage' +type CreateMessageParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + Body *string `json:"Body,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + From *string `json:"From,omitempty"` + LastUpdatedBy *string `json:"LastUpdatedBy,omitempty"` + MediaSid *string `json:"MediaSid,omitempty"` +} + +/* +CreateMessage Method for CreateMessage + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Message resource under. + * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the new Message resource belongs to. This value can be the Channel resource's `sid` or `unique_name`. + * @param optional nil or *CreateMessageOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "Attributes" (string) - A valid JSON string that contains application-specific data. + * @param "Body" (string) - The message to send to the channel. Can be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string. + * @param "DateCreated" (time.Time) - The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. This parameter should only be used when a Chat's history is being recreated from a backup/separate source. + * @param "DateUpdated" (time.Time) - The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. + * @param "From" (string) - The [Identity](https://www.twilio.com/docs/chat/identity) of the new message's author. The default value is `system`. + * @param "LastUpdatedBy" (string) - The [Identity](https://www.twilio.com/docs/chat/identity) of the User who last updated the Message, if applicable. + * @param "MediaSid" (string) - The SID of the [Media](https://www.twilio.com/docs/chat/rest/media) to attach to the new Message. +@return ChatV2ServiceChannelMessage +*/ +func (c *DefaultApiService) CreateMessage(serviceSid string, channelSid string, params *CreateMessageParams) (*ChatV2ServiceChannelMessage, error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.Body != nil { + data.Set("Body", *params.Body) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.LastUpdatedBy != nil { + data.Set("LastUpdatedBy", *params.LastUpdatedBy) + } + if params != nil && params.MediaSid != nil { + data.Set("MediaSid", *params.MediaSid) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceChannelMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateRoleParams Optional parameters for the method 'CreateRole' +type CreateRoleParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` + Permission *[]string `json:"Permission,omitempty"` + Type *string `json:"Type,omitempty"` +} + +/* +CreateRole Method for CreateRole + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Role resource under. + * @param optional nil or *CreateRoleOpts - Optional Parameters: + * @param "FriendlyName" (string) - A descriptive string that you create to describe the new resource. It can be up to 64 characters long. + * @param "Permission" ([]string) - A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type`. + * @param "Type" (string) - The type of role. Can be: `channel` for [Channel](https://www.twilio.com/docs/chat/channels) roles or `deployment` for [Service](https://www.twilio.com/docs/chat/rest/service-resource) roles. +@return ChatV2ServiceRole +*/ +func (c *DefaultApiService) CreateRole(serviceSid string, params *CreateRoleParams) (*ChatV2ServiceRole, error) { + path := "/v2/Services/{ServiceSid}/Roles" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Permission != nil { + data.Set("Permission", *params.Permission) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceRole{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateServiceParams Optional parameters for the method 'CreateService' +type CreateServiceParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +CreateService Method for CreateService + * @param optional nil or *CreateServiceOpts - Optional Parameters: + * @param "FriendlyName" (string) - A descriptive string that you create to describe the new resource. +@return ChatV2Service +*/ +func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*ChatV2Service, error) { + path := "/v2/Services" + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateUserParams Optional parameters for the method 'CreateUser' +type CreateUserParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Identity *string `json:"Identity,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` +} + +/* +CreateUser Method for CreateUser + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the User resource under. + * @param optional nil or *CreateUserOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "Attributes" (string) - A valid JSON string that contains application-specific data. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the new resource. This value is often used for display purposes. + * @param "Identity" (string) - The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/chat/rest/service-resource). This value is often a username or email address. See the Identity documentation for more info. + * @param "RoleSid" (string) - The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the new User. +@return ChatV2ServiceUser +*/ +func (c *DefaultApiService) CreateUser(serviceSid string, params *CreateUserParams) (*ChatV2ServiceUser, error) { + path := "/v2/Services/{ServiceSid}/Users" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceUser{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +DeleteBinding Method for DeleteBinding + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the Binding resource from. + * @param sid The SID of the Binding resource to delete. +*/ +func (c *DefaultApiService) DeleteBinding(serviceSid string, sid string) (error) { + path := "/v2/Services/{ServiceSid}/Bindings/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} +// DeleteChannelParams Optional parameters for the method 'DeleteChannel' +type DeleteChannelParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` +} + +/* +DeleteChannel Method for DeleteChannel + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the resource from. + * @param sid The SID of the Channel resource to delete. This value can be either the `sid` or the `unique_name` of the Channel resource to delete. + * @param optional nil or *DeleteChannelOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header +*/ +func (c *DefaultApiService) DeleteChannel(serviceSid string, sid string, params *DeleteChannelParams) (error) { + path := "/v2/Services/{ServiceSid}/Channels/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteChannelWebhook Method for DeleteChannelWebhook + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel to delete the Webhook resource from. + * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook resource to delete belongs to. This value can be the Channel resource's `sid` or `unique_name`. + * @param sid The SID of the Channel Webhook resource to delete. +*/ +func (c *DefaultApiService) DeleteChannelWebhook(serviceSid string, channelSid string, sid string) (error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteCredential Method for DeleteCredential + * @param sid The SID of the Credential resource to delete. +*/ +func (c *DefaultApiService) DeleteCredential(sid string) (error) { + path := "/v2/Credentials/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteInvite Method for DeleteInvite + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the Invite resource from. + * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Invite resource to delete belongs to. This value can be the Channel resource's `sid` or `unique_name`. + * @param sid The SID of the Invite resource to delete. +*/ +func (c *DefaultApiService) DeleteInvite(serviceSid string, channelSid string, sid string) (error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} +// DeleteMemberParams Optional parameters for the method 'DeleteMember' +type DeleteMemberParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` +} + +/* +DeleteMember Method for DeleteMember + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the Member resource from. + * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Member resource to delete belongs to. This value can be the Channel resource's `sid` or `unique_name`. + * @param sid The SID of the Member resource to delete. This value can be either the Member's `sid` or its `identity` value. + * @param optional nil or *DeleteMemberOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header +*/ +func (c *DefaultApiService) DeleteMember(serviceSid string, channelSid string, sid string, params *DeleteMemberParams) (error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} +// DeleteMessageParams Optional parameters for the method 'DeleteMessage' +type DeleteMessageParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` +} + +/* +DeleteMessage Method for DeleteMessage + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the Message resource from. + * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Message resource to delete belongs to. This value can be the Channel resource's `sid` or `unique_name`. + * @param sid The SID of the Message resource to delete. + * @param optional nil or *DeleteMessageOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header +*/ +func (c *DefaultApiService) DeleteMessage(serviceSid string, channelSid string, sid string, params *DeleteMessageParams) (error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteRole Method for DeleteRole + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the Role resource from. + * @param sid The SID of the Role resource to delete. +*/ +func (c *DefaultApiService) DeleteRole(serviceSid string, sid string) (error) { + path := "/v2/Services/{ServiceSid}/Roles/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteService Method for DeleteService + * @param sid The SID of the Service resource to delete. +*/ +func (c *DefaultApiService) DeleteService(sid string) (error) { + path := "/v2/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteUser Method for DeleteUser + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the User resource from. + * @param sid The SID of the User resource to delete. This value can be either the `sid` or the `identity` of the User resource to delete. +*/ +func (c *DefaultApiService) DeleteUser(serviceSid string, sid string) (error) { + path := "/v2/Services/{ServiceSid}/Users/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteUserBinding Method for DeleteUserBinding + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the User Binding resource from. + * @param userSid The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) with the User Binding resources to delete. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. + * @param sid The SID of the User Binding resource to delete. +*/ +func (c *DefaultApiService) DeleteUserBinding(serviceSid string, userSid string, sid string) (error) { + path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteUserChannel Method for DeleteUserChannel +Removes User from selected Channel. + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. + * @param userSid The SID of the [User](https://www.twilio.com/docs/api/chat/rest/users) to read the User Channel resources from. + * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the resource belongs to. +*/ +func (c *DefaultApiService) DeleteUserChannel(serviceSid string, userSid string, channelSid string) (error) { + path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +FetchBinding Method for FetchBinding + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Binding resource from. + * @param sid The SID of the Binding resource to fetch. +@return ChatV2ServiceBinding +*/ +func (c *DefaultApiService) FetchBinding(serviceSid string, sid string) (*ChatV2ServiceBinding, error) { + path := "/v2/Services/{ServiceSid}/Bindings/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceBinding{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchChannel Method for FetchChannel + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Channel resource from. + * @param sid The SID of the Channel resource to fetch. This value can be either the `sid` or the `unique_name` of the Channel resource to fetch. +@return ChatV2ServiceChannel +*/ +func (c *DefaultApiService) FetchChannel(serviceSid string, sid string) (*ChatV2ServiceChannel, error) { + path := "/v2/Services/{ServiceSid}/Channels/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchChannelWebhook Method for FetchChannelWebhook + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel to fetch the Webhook resource from. + * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook resource to fetch belongs to. This value can be the Channel resource's `sid` or `unique_name`. + * @param sid The SID of the Channel Webhook resource to fetch. +@return ChatV2ServiceChannelChannelWebhook +*/ +func (c *DefaultApiService) FetchChannelWebhook(serviceSid string, channelSid string, sid string) (*ChatV2ServiceChannelChannelWebhook, error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceChannelChannelWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchCredential Method for FetchCredential + * @param sid The SID of the Credential resource to fetch. +@return ChatV2Credential +*/ +func (c *DefaultApiService) FetchCredential(sid string) (*ChatV2Credential, error) { + path := "/v2/Credentials/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2Credential{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchInvite Method for FetchInvite + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Invite resource from. + * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Invite resource to fetch belongs to. This value can be the Channel resource's `sid` or `unique_name`. + * @param sid The SID of the Invite resource to fetch. +@return ChatV2ServiceChannelInvite +*/ +func (c *DefaultApiService) FetchInvite(serviceSid string, channelSid string, sid string) (*ChatV2ServiceChannelInvite, error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceChannelInvite{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchMember Method for FetchMember + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Member resource from. + * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Member resource to fetch belongs to. This value can be the Channel resource's `sid` or `unique_name`. + * @param sid The SID of the Member resource to fetch. This value can be either the Member's `sid` or its `identity` value. +@return ChatV2ServiceChannelMember +*/ +func (c *DefaultApiService) FetchMember(serviceSid string, channelSid string, sid string) (*ChatV2ServiceChannelMember, error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceChannelMember{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchMessage Method for FetchMessage + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Message resource from. + * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Message resource to fetch belongs to. This value can be the Channel resource's `sid` or `unique_name`. + * @param sid The SID of the Message resource to fetch. +@return ChatV2ServiceChannelMessage +*/ +func (c *DefaultApiService) FetchMessage(serviceSid string, channelSid string, sid string) (*ChatV2ServiceChannelMessage, error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceChannelMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchRole Method for FetchRole + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Role resource from. + * @param sid The SID of the Role resource to fetch. +@return ChatV2ServiceRole +*/ +func (c *DefaultApiService) FetchRole(serviceSid string, sid string) (*ChatV2ServiceRole, error) { + path := "/v2/Services/{ServiceSid}/Roles/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceRole{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchService Method for FetchService + * @param sid The SID of the Service resource to fetch. +@return ChatV2Service +*/ +func (c *DefaultApiService) FetchService(sid string) (*ChatV2Service, error) { + path := "/v2/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchUser Method for FetchUser + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the User resource from. + * @param sid The SID of the User resource to fetch. This value can be either the `sid` or the `identity` of the User resource to fetch. +@return ChatV2ServiceUser +*/ +func (c *DefaultApiService) FetchUser(serviceSid string, sid string) (*ChatV2ServiceUser, error) { + path := "/v2/Services/{ServiceSid}/Users/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceUser{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchUserBinding Method for FetchUserBinding + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the User Binding resource from. + * @param userSid The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) with the User Binding resource to fetch. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. + * @param sid The SID of the User Binding resource to fetch. +@return ChatV2ServiceUserUserBinding +*/ +func (c *DefaultApiService) FetchUserBinding(serviceSid string, userSid string, sid string) (*ChatV2ServiceUserUserBinding, error) { + path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceUserUserBinding{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchUserChannel Method for FetchUserChannel + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the User Channel resource from. + * @param userSid The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) to fetch the User Channel resource from. This value can be either the `sid` or the `identity` of the User resource. + * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) that has the User Channel to fetch. This value can be either the `sid` or the `unique_name` of the Channel to fetch. +@return ChatV2ServiceUserUserChannel +*/ +func (c *DefaultApiService) FetchUserChannel(serviceSid string, userSid string, channelSid string) (*ChatV2ServiceUserUserChannel, error) { + path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceUserUserChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListBindingParams Optional parameters for the method 'ListBinding' +type ListBindingParams struct { + BindingType *[]string `json:"BindingType,omitempty"` + Identity *[]string `json:"Identity,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListBinding Method for ListBinding + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Binding resources from. + * @param optional nil or *ListBindingOpts - Optional Parameters: + * @param "BindingType" ([]string) - The push technology used by the Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. + * @param "Identity" ([]string) - The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ChatV2ServiceBindingReadResponse +*/ +func (c *DefaultApiService) ListBinding(serviceSid string, params *ListBindingParams) (*ChatV2ServiceBindingReadResponse, error) { + path := "/v2/Services/{ServiceSid}/Bindings" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.BindingType != nil { + data.Set("BindingType", string(*params.BindingType)) + } + if params != nil && params.Identity != nil { + data.Set("Identity", string(*params.Identity)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceBindingReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListChannelParams Optional parameters for the method 'ListChannel' +type ListChannelParams struct { + Type *[]string `json:"Type,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListChannel Method for ListChannel + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Channel resources from. + * @param optional nil or *ListChannelOpts - Optional Parameters: + * @param "Type" ([]string) - The visibility of the Channels to read. Can be: `public` or `private` and defaults to `public`. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ChatV2ServiceChannelReadResponse +*/ +func (c *DefaultApiService) ListChannel(serviceSid string, params *ListChannelParams) (*ChatV2ServiceChannelReadResponse, error) { + path := "/v2/Services/{ServiceSid}/Channels" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Type != nil { + data.Set("Type", string(*params.Type)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceChannelReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListChannelWebhookParams Optional parameters for the method 'ListChannelWebhook' +type ListChannelWebhookParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListChannelWebhook Method for ListChannelWebhook + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel to read the resources from. + * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook resources to read belong to. This value can be the Channel resource's `sid` or `unique_name`. + * @param optional nil or *ListChannelWebhookOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ChatV2ServiceChannelChannelWebhookReadResponse +*/ +func (c *DefaultApiService) ListChannelWebhook(serviceSid string, channelSid string, params *ListChannelWebhookParams) (*ChatV2ServiceChannelChannelWebhookReadResponse, error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceChannelChannelWebhookReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListCredentialParams Optional parameters for the method 'ListCredential' +type ListCredentialParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListCredential Method for ListCredential + * @param optional nil or *ListCredentialOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ChatV2CredentialReadResponse +*/ +func (c *DefaultApiService) ListCredential(params *ListCredentialParams) (*ChatV2CredentialReadResponse, error) { + path := "/v2/Credentials" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2CredentialReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListInviteParams Optional parameters for the method 'ListInvite' +type ListInviteParams struct { + Identity *[]string `json:"Identity,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListInvite Method for ListInvite + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Invite resources from. + * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Invite resources to read belong to. This value can be the Channel resource's `sid` or `unique_name`. + * @param optional nil or *ListInviteOpts - Optional Parameters: + * @param "Identity" ([]string) - The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ChatV2ServiceChannelInviteReadResponse +*/ +func (c *DefaultApiService) ListInvite(serviceSid string, channelSid string, params *ListInviteParams) (*ChatV2ServiceChannelInviteReadResponse, error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Identity != nil { + data.Set("Identity", string(*params.Identity)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceChannelInviteReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListMemberParams Optional parameters for the method 'ListMember' +type ListMemberParams struct { + Identity *[]string `json:"Identity,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListMember Method for ListMember + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Member resources from. + * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Member resources to read belong to. This value can be the Channel resource's `sid` or `unique_name`. + * @param optional nil or *ListMemberOpts - Optional Parameters: + * @param "Identity" ([]string) - The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the Member resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ChatV2ServiceChannelMemberReadResponse +*/ +func (c *DefaultApiService) ListMember(serviceSid string, channelSid string, params *ListMemberParams) (*ChatV2ServiceChannelMemberReadResponse, error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Identity != nil { + data.Set("Identity", string(*params.Identity)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceChannelMemberReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListMessageParams Optional parameters for the method 'ListMessage' +type ListMessageParams struct { + Order *string `json:"Order,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListMessage Method for ListMessage + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Message resources from. + * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Message resource to read belongs to. This value can be the Channel resource's `sid` or `unique_name`. + * @param optional nil or *ListMessageOpts - Optional Parameters: + * @param "Order" (string) - The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending) with `asc` as the default. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ChatV2ServiceChannelMessageReadResponse +*/ +func (c *DefaultApiService) ListMessage(serviceSid string, channelSid string, params *ListMessageParams) (*ChatV2ServiceChannelMessageReadResponse, error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Order != nil { + data.Set("Order", *params.Order) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceChannelMessageReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListRoleParams Optional parameters for the method 'ListRole' +type ListRoleParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListRole Method for ListRole + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Role resources from. + * @param optional nil or *ListRoleOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ChatV2ServiceRoleReadResponse +*/ +func (c *DefaultApiService) ListRole(serviceSid string, params *ListRoleParams) (*ChatV2ServiceRoleReadResponse, error) { + path := "/v2/Services/{ServiceSid}/Roles" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceRoleReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListServiceParams Optional parameters for the method 'ListService' +type ListServiceParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListService Method for ListService + * @param optional nil or *ListServiceOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ChatV2ServiceReadResponse +*/ +func (c *DefaultApiService) ListService(params *ListServiceParams) (*ChatV2ServiceReadResponse, error) { + path := "/v2/Services" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListUserParams Optional parameters for the method 'ListUser' +type ListUserParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListUser Method for ListUser + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the User resources from. + * @param optional nil or *ListUserOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ChatV2ServiceUserReadResponse +*/ +func (c *DefaultApiService) ListUser(serviceSid string, params *ListUserParams) (*ChatV2ServiceUserReadResponse, error) { + path := "/v2/Services/{ServiceSid}/Users" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceUserReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListUserBindingParams Optional parameters for the method 'ListUserBinding' +type ListUserBindingParams struct { + BindingType *[]string `json:"BindingType,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListUserBinding Method for ListUserBinding + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the User Binding resources from. + * @param userSid The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) with the User Binding resources to read. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. + * @param optional nil or *ListUserBindingOpts - Optional Parameters: + * @param "BindingType" ([]string) - The push technology used by the User Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ChatV2ServiceUserUserBindingReadResponse +*/ +func (c *DefaultApiService) ListUserBinding(serviceSid string, userSid string, params *ListUserBindingParams) (*ChatV2ServiceUserUserBindingReadResponse, error) { + path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.BindingType != nil { + data.Set("BindingType", string(*params.BindingType)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceUserUserBindingReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListUserChannelParams Optional parameters for the method 'ListUserChannel' +type ListUserChannelParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListUserChannel Method for ListUserChannel +List all Channels for a given User. + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the User Channel resources from. + * @param userSid The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) to read the User Channel resources from. This value can be either the `sid` or the `identity` of the User resource. + * @param optional nil or *ListUserChannelOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ChatV2ServiceUserUserChannelReadResponse +*/ +func (c *DefaultApiService) ListUserChannel(serviceSid string, userSid string, params *ListUserChannelParams) (*ChatV2ServiceUserUserChannelReadResponse, error) { + path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceUserUserChannelReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateChannelParams Optional parameters for the method 'UpdateChannel' +type UpdateChannelParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + CreatedBy *string `json:"CreatedBy,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +UpdateChannel Method for UpdateChannel + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the Channel resource in. + * @param sid The SID of the Channel resource to update. This value can be either the `sid` or the `unique_name` of the Channel resource to update. + * @param optional nil or *UpdateChannelOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "Attributes" (string) - A valid JSON string that contains application-specific data. + * @param "CreatedBy" (string) - The `identity` of the User that created the channel. Default is: `system`. + * @param "DateCreated" (time.Time) - The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. Note that this should only be used in cases where a Channel is being recreated from a backup/separate source. + * @param "DateUpdated" (time.Time) - The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 256 characters long. + * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. This value must be 256 characters or less in length and unique within the Service. +@return ChatV2ServiceChannel +*/ +func (c *DefaultApiService) UpdateChannel(serviceSid string, sid string, params *UpdateChannelParams) (*ChatV2ServiceChannel, error) { + path := "/v2/Services/{ServiceSid}/Channels/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.CreatedBy != nil { + data.Set("CreatedBy", *params.CreatedBy) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateChannelWebhookParams Optional parameters for the method 'UpdateChannelWebhook' +type UpdateChannelWebhookParams struct { + Configuration.Filters *[]string `json:"Configuration.Filters,omitempty"` + Configuration.FlowSid *string `json:"Configuration.FlowSid,omitempty"` + Configuration.Method *string `json:"Configuration.Method,omitempty"` + Configuration.RetryCount *int32 `json:"Configuration.RetryCount,omitempty"` + Configuration.Triggers *[]string `json:"Configuration.Triggers,omitempty"` + Configuration.Url *string `json:"Configuration.Url,omitempty"` +} + +/* +UpdateChannelWebhook Method for UpdateChannelWebhook + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel that has the Webhook resource to update. + * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook resource to update belongs to. This value can be the Channel resource's `sid` or `unique_name`. + * @param sid The SID of the Channel Webhook resource to update. + * @param optional nil or *UpdateChannelWebhookOpts - Optional Parameters: + * @param "Configuration.Filters" ([]string) - The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger). + * @param "Configuration.FlowSid" (string) - The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` = `studio`. + * @param "Configuration.Method" (string) - The HTTP method used to call `configuration.url`. Can be: `GET` or `POST` and the default is `POST`. + * @param "Configuration.RetryCount" (int32) - The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0. + * @param "Configuration.Triggers" ([]string) - A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`. + * @param "Configuration.Url" (string) - The URL of the webhook to call using the `configuration.method`. +@return ChatV2ServiceChannelChannelWebhook +*/ +func (c *DefaultApiService) UpdateChannelWebhook(serviceSid string, channelSid string, sid string, params *UpdateChannelWebhookParams) (*ChatV2ServiceChannelChannelWebhook, error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Configuration.Filters != nil { + data.Set("Configuration.Filters", *params.Configuration.Filters) + } + if params != nil && params.Configuration.FlowSid != nil { + data.Set("Configuration.FlowSid", *params.Configuration.FlowSid) + } + if params != nil && params.Configuration.Method != nil { + data.Set("Configuration.Method", *params.Configuration.Method) + } + if params != nil && params.Configuration.RetryCount != nil { + data.Set("Configuration.RetryCount", string(*params.Configuration.RetryCount)) + } + if params != nil && params.Configuration.Triggers != nil { + data.Set("Configuration.Triggers", *params.Configuration.Triggers) + } + if params != nil && params.Configuration.Url != nil { + data.Set("Configuration.Url", *params.Configuration.Url) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceChannelChannelWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateCredentialParams Optional parameters for the method 'UpdateCredential' +type UpdateCredentialParams struct { + ApiKey *string `json:"ApiKey,omitempty"` + Certificate *string `json:"Certificate,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PrivateKey *string `json:"PrivateKey,omitempty"` + Sandbox *bool `json:"Sandbox,omitempty"` + Secret *string `json:"Secret,omitempty"` +} + +/* +UpdateCredential Method for UpdateCredential + * @param sid The SID of the Credential resource to update. + * @param optional nil or *UpdateCredentialOpts - Optional Parameters: + * @param "ApiKey" (string) - [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. + * @param "Certificate" (string) - [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== -----END CERTIFICATE-----` + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. + * @param "PrivateKey" (string) - [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fG... -----END RSA PRIVATE KEY-----` + * @param "Sandbox" (bool) - [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. + * @param "Secret" (string) - [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. +@return ChatV2Credential +*/ +func (c *DefaultApiService) UpdateCredential(sid string, params *UpdateCredentialParams) (*ChatV2Credential, error) { + path := "/v2/Credentials/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ApiKey != nil { + data.Set("ApiKey", *params.ApiKey) + } + if params != nil && params.Certificate != nil { + data.Set("Certificate", *params.Certificate) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PrivateKey != nil { + data.Set("PrivateKey", *params.PrivateKey) + } + if params != nil && params.Sandbox != nil { + data.Set("Sandbox", string(*params.Sandbox)) + } + if params != nil && params.Secret != nil { + data.Set("Secret", *params.Secret) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2Credential{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateMemberParams Optional parameters for the method 'UpdateMember' +type UpdateMemberParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` + LastConsumptionTimestamp *time.Time `json:"LastConsumptionTimestamp,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` +} + +/* +UpdateMember Method for UpdateMember + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the Member resource in. + * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Member resource to update belongs to. This value can be the Channel resource's `sid` or `unique_name`. + * @param sid The SID of the Member resource to update. This value can be either the Member's `sid` or its `identity` value. + * @param optional nil or *UpdateMemberOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "Attributes" (string) - A valid JSON string that contains application-specific data. + * @param "DateCreated" (time.Time) - The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. Note that this parameter should only be used when a Member is being recreated from a backup/separate source. + * @param "DateUpdated" (time.Time) - The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. + * @param "LastConsumedMessageIndex" (*int32) - The index of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) that the Member has read within the [Channel](https://www.twilio.com/docs/chat/channels). + * @param "LastConsumptionTimestamp" (time.Time) - The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) read event for the Member within the [Channel](https://www.twilio.com/docs/chat/channels). + * @param "RoleSid" (string) - The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/rest/service-resource). +@return ChatV2ServiceChannelMember +*/ +func (c *DefaultApiService) UpdateMember(serviceSid string, channelSid string, sid string, params *UpdateMemberParams) (*ChatV2ServiceChannelMember, error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.LastConsumedMessageIndex != nil { + data.Set("LastConsumedMessageIndex", string(*params.LastConsumedMessageIndex)) + } + if params != nil && params.LastConsumptionTimestamp != nil { + data.Set("LastConsumptionTimestamp", string(*params.LastConsumptionTimestamp)) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceChannelMember{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateMessageParams Optional parameters for the method 'UpdateMessage' +type UpdateMessageParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + Body *string `json:"Body,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + From *string `json:"From,omitempty"` + LastUpdatedBy *string `json:"LastUpdatedBy,omitempty"` +} + +/* +UpdateMessage Method for UpdateMessage + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the Message resource in. + * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Message resource to update belongs to. This value can be the Channel resource's `sid` or `unique_name`. + * @param sid The SID of the Message resource to update. + * @param optional nil or *UpdateMessageOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "Attributes" (string) - A valid JSON string that contains application-specific data. + * @param "Body" (string) - The message to send to the channel. Can be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string. + * @param "DateCreated" (time.Time) - The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. This parameter should only be used when a Chat's history is being recreated from a backup/separate source. + * @param "DateUpdated" (time.Time) - The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. + * @param "From" (string) - The [Identity](https://www.twilio.com/docs/chat/identity) of the message's author. + * @param "LastUpdatedBy" (string) - The [Identity](https://www.twilio.com/docs/chat/identity) of the User who last updated the Message, if applicable. +@return ChatV2ServiceChannelMessage +*/ +func (c *DefaultApiService) UpdateMessage(serviceSid string, channelSid string, sid string, params *UpdateMessageParams) (*ChatV2ServiceChannelMessage, error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.Body != nil { + data.Set("Body", *params.Body) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.LastUpdatedBy != nil { + data.Set("LastUpdatedBy", *params.LastUpdatedBy) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceChannelMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateRoleParams Optional parameters for the method 'UpdateRole' +type UpdateRoleParams struct { + Permission *[]string `json:"Permission,omitempty"` +} + +/* +UpdateRole Method for UpdateRole + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the Role resource in. + * @param sid The SID of the Role resource to update. + * @param optional nil or *UpdateRoleOpts - Optional Parameters: + * @param "Permission" ([]string) - A permission that you grant to the role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. Note that the update action replaces all previously assigned permissions with those defined in the update action. To remove a permission, do not include it in the subsequent update action. The values for this parameter depend on the role's `type`. +@return ChatV2ServiceRole +*/ +func (c *DefaultApiService) UpdateRole(serviceSid string, sid string, params *UpdateRoleParams) (*ChatV2ServiceRole, error) { + path := "/v2/Services/{ServiceSid}/Roles/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Permission != nil { + data.Set("Permission", *params.Permission) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceRole{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateServiceParams Optional parameters for the method 'UpdateService' +type UpdateServiceParams struct { + ConsumptionReportInterval *int32 `json:"ConsumptionReportInterval,omitempty"` + DefaultChannelCreatorRoleSid *string `json:"DefaultChannelCreatorRoleSid,omitempty"` + DefaultChannelRoleSid *string `json:"DefaultChannelRoleSid,omitempty"` + DefaultServiceRoleSid *string `json:"DefaultServiceRoleSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Limits.ChannelMembers *int32 `json:"Limits.ChannelMembers,omitempty"` + Limits.UserChannels *int32 `json:"Limits.UserChannels,omitempty"` + Media.CompatibilityMessage *string `json:"Media.CompatibilityMessage,omitempty"` + Notifications.AddedToChannel.Enabled *bool `json:"Notifications.AddedToChannel.Enabled,omitempty"` + Notifications.AddedToChannel.Sound *string `json:"Notifications.AddedToChannel.Sound,omitempty"` + Notifications.AddedToChannel.Template *string `json:"Notifications.AddedToChannel.Template,omitempty"` + Notifications.InvitedToChannel.Enabled *bool `json:"Notifications.InvitedToChannel.Enabled,omitempty"` + Notifications.InvitedToChannel.Sound *string `json:"Notifications.InvitedToChannel.Sound,omitempty"` + Notifications.InvitedToChannel.Template *string `json:"Notifications.InvitedToChannel.Template,omitempty"` + Notifications.LogEnabled *bool `json:"Notifications.LogEnabled,omitempty"` + Notifications.NewMessage.BadgeCountEnabled *bool `json:"Notifications.NewMessage.BadgeCountEnabled,omitempty"` + Notifications.NewMessage.Enabled *bool `json:"Notifications.NewMessage.Enabled,omitempty"` + Notifications.NewMessage.Sound *string `json:"Notifications.NewMessage.Sound,omitempty"` + Notifications.NewMessage.Template *string `json:"Notifications.NewMessage.Template,omitempty"` + Notifications.RemovedFromChannel.Enabled *bool `json:"Notifications.RemovedFromChannel.Enabled,omitempty"` + Notifications.RemovedFromChannel.Sound *string `json:"Notifications.RemovedFromChannel.Sound,omitempty"` + Notifications.RemovedFromChannel.Template *string `json:"Notifications.RemovedFromChannel.Template,omitempty"` + PostWebhookRetryCount *int32 `json:"PostWebhookRetryCount,omitempty"` + PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"` + PreWebhookRetryCount *int32 `json:"PreWebhookRetryCount,omitempty"` + PreWebhookUrl *string `json:"PreWebhookUrl,omitempty"` + ReachabilityEnabled *bool `json:"ReachabilityEnabled,omitempty"` + ReadStatusEnabled *bool `json:"ReadStatusEnabled,omitempty"` + TypingIndicatorTimeout *int32 `json:"TypingIndicatorTimeout,omitempty"` + WebhookFilters *[]string `json:"WebhookFilters,omitempty"` + WebhookMethod *string `json:"WebhookMethod,omitempty"` +} + +/* +UpdateService Method for UpdateService + * @param sid The SID of the Service resource to update. + * @param optional nil or *UpdateServiceOpts - Optional Parameters: + * @param "ConsumptionReportInterval" (int32) - DEPRECATED. The interval in seconds between consumption reports submission batches from client endpoints. + * @param "DefaultChannelCreatorRoleSid" (string) - The channel role assigned to a channel creator when they join a new channel. See the [Role resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info about roles. + * @param "DefaultChannelRoleSid" (string) - The channel role assigned to users when they are added to a channel. See the [Role resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info about roles. + * @param "DefaultServiceRoleSid" (string) - The service role assigned to users when they are added to the service. See the [Role resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info about roles. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. + * @param "Limits.ChannelMembers" (int32) - The maximum number of Members that can be added to Channels within this Service. Can be up to 1,000. + * @param "Limits.UserChannels" (int32) - The maximum number of Channels Users can be a Member of within this Service. Can be up to 1,000. + * @param "Media.CompatibilityMessage" (string) - The message to send when a media message has no text. Can be used as placeholder message. + * @param "Notifications.AddedToChannel.Enabled" (bool) - Whether to send a notification when a member is added to a channel. The default is `false`. + * @param "Notifications.AddedToChannel.Sound" (string) - The name of the sound to play when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. + * @param "Notifications.AddedToChannel.Template" (string) - The template to use to create the notification text displayed when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. + * @param "Notifications.InvitedToChannel.Enabled" (bool) - Whether to send a notification when a user is invited to a channel. The default is `false`. + * @param "Notifications.InvitedToChannel.Sound" (string) - The name of the sound to play when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. + * @param "Notifications.InvitedToChannel.Template" (string) - The template to use to create the notification text displayed when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. + * @param "Notifications.LogEnabled" (bool) - Whether to log notifications. The default is `false`. + * @param "Notifications.NewMessage.BadgeCountEnabled" (bool) - Whether the new message badge is enabled. The default is `false`. + * @param "Notifications.NewMessage.Enabled" (bool) - Whether to send a notification when a new message is added to a channel. The default is `false`. + * @param "Notifications.NewMessage.Sound" (string) - The name of the sound to play when a new message is added to a channel and `notifications.new_message.enabled` is `true`. + * @param "Notifications.NewMessage.Template" (string) - The template to use to create the notification text displayed when a new message is added to a channel and `notifications.new_message.enabled` is `true`. + * @param "Notifications.RemovedFromChannel.Enabled" (bool) - Whether to send a notification to a user when they are removed from a channel. The default is `false`. + * @param "Notifications.RemovedFromChannel.Sound" (string) - The name of the sound to play to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. + * @param "Notifications.RemovedFromChannel.Template" (string) - The template to use to create the notification text displayed to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. + * @param "PostWebhookRetryCount" (int32) - The number of times to retry a call to the `post_webhook_url` if the request times out (after 5 seconds) or it receives a 429, 503, or 504 HTTP response. The default is 0, which means the call won't be retried. + * @param "PostWebhookUrl" (string) - The URL for post-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. + * @param "PreWebhookRetryCount" (int32) - The number of times to retry a call to the `pre_webhook_url` if the request times out (after 5 seconds) or it receives a 429, 503, or 504 HTTP response. Default retry count is 0 times, which means the call won't be retried. + * @param "PreWebhookUrl" (string) - The URL for pre-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. + * @param "ReachabilityEnabled" (bool) - Whether to enable the [Reachability Indicator](https://www.twilio.com/docs/chat/reachability-indicator) for this Service instance. The default is `false`. + * @param "ReadStatusEnabled" (bool) - Whether to enable the [Message Consumption Horizon](https://www.twilio.com/docs/chat/consumption-horizon) feature. The default is `true`. + * @param "TypingIndicatorTimeout" (int32) - How long in seconds after a `started typing` event until clients should assume that user is no longer typing, even if no `ended typing` message was received. The default is 5 seconds. + * @param "WebhookFilters" ([]string) - The list of webhook events that are enabled for this Service instance. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. + * @param "WebhookMethod" (string) - The HTTP method to use for calls to the `pre_webhook_url` and `post_webhook_url` webhooks. Can be: `POST` or `GET` and the default is `POST`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. +@return ChatV2Service +*/ +func (c *DefaultApiService) UpdateService(sid string, params *UpdateServiceParams) (*ChatV2Service, error) { + path := "/v2/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ConsumptionReportInterval != nil { + data.Set("ConsumptionReportInterval", string(*params.ConsumptionReportInterval)) + } + if params != nil && params.DefaultChannelCreatorRoleSid != nil { + data.Set("DefaultChannelCreatorRoleSid", *params.DefaultChannelCreatorRoleSid) + } + if params != nil && params.DefaultChannelRoleSid != nil { + data.Set("DefaultChannelRoleSid", *params.DefaultChannelRoleSid) + } + if params != nil && params.DefaultServiceRoleSid != nil { + data.Set("DefaultServiceRoleSid", *params.DefaultServiceRoleSid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Limits.ChannelMembers != nil { + data.Set("Limits.ChannelMembers", string(*params.Limits.ChannelMembers)) + } + if params != nil && params.Limits.UserChannels != nil { + data.Set("Limits.UserChannels", string(*params.Limits.UserChannels)) + } + if params != nil && params.Media.CompatibilityMessage != nil { + data.Set("Media.CompatibilityMessage", *params.Media.CompatibilityMessage) + } + if params != nil && params.Notifications.AddedToChannel.Enabled != nil { + data.Set("Notifications.AddedToChannel.Enabled", string(*params.Notifications.AddedToChannel.Enabled)) + } + if params != nil && params.Notifications.AddedToChannel.Sound != nil { + data.Set("Notifications.AddedToChannel.Sound", *params.Notifications.AddedToChannel.Sound) + } + if params != nil && params.Notifications.AddedToChannel.Template != nil { + data.Set("Notifications.AddedToChannel.Template", *params.Notifications.AddedToChannel.Template) + } + if params != nil && params.Notifications.InvitedToChannel.Enabled != nil { + data.Set("Notifications.InvitedToChannel.Enabled", string(*params.Notifications.InvitedToChannel.Enabled)) + } + if params != nil && params.Notifications.InvitedToChannel.Sound != nil { + data.Set("Notifications.InvitedToChannel.Sound", *params.Notifications.InvitedToChannel.Sound) + } + if params != nil && params.Notifications.InvitedToChannel.Template != nil { + data.Set("Notifications.InvitedToChannel.Template", *params.Notifications.InvitedToChannel.Template) + } + if params != nil && params.Notifications.LogEnabled != nil { + data.Set("Notifications.LogEnabled", string(*params.Notifications.LogEnabled)) + } + if params != nil && params.Notifications.NewMessage.BadgeCountEnabled != nil { + data.Set("Notifications.NewMessage.BadgeCountEnabled", string(*params.Notifications.NewMessage.BadgeCountEnabled)) + } + if params != nil && params.Notifications.NewMessage.Enabled != nil { + data.Set("Notifications.NewMessage.Enabled", string(*params.Notifications.NewMessage.Enabled)) + } + if params != nil && params.Notifications.NewMessage.Sound != nil { + data.Set("Notifications.NewMessage.Sound", *params.Notifications.NewMessage.Sound) + } + if params != nil && params.Notifications.NewMessage.Template != nil { + data.Set("Notifications.NewMessage.Template", *params.Notifications.NewMessage.Template) + } + if params != nil && params.Notifications.RemovedFromChannel.Enabled != nil { + data.Set("Notifications.RemovedFromChannel.Enabled", string(*params.Notifications.RemovedFromChannel.Enabled)) + } + if params != nil && params.Notifications.RemovedFromChannel.Sound != nil { + data.Set("Notifications.RemovedFromChannel.Sound", *params.Notifications.RemovedFromChannel.Sound) + } + if params != nil && params.Notifications.RemovedFromChannel.Template != nil { + data.Set("Notifications.RemovedFromChannel.Template", *params.Notifications.RemovedFromChannel.Template) + } + if params != nil && params.PostWebhookRetryCount != nil { + data.Set("PostWebhookRetryCount", string(*params.PostWebhookRetryCount)) + } + if params != nil && params.PostWebhookUrl != nil { + data.Set("PostWebhookUrl", *params.PostWebhookUrl) + } + if params != nil && params.PreWebhookRetryCount != nil { + data.Set("PreWebhookRetryCount", string(*params.PreWebhookRetryCount)) + } + if params != nil && params.PreWebhookUrl != nil { + data.Set("PreWebhookUrl", *params.PreWebhookUrl) + } + if params != nil && params.ReachabilityEnabled != nil { + data.Set("ReachabilityEnabled", string(*params.ReachabilityEnabled)) + } + if params != nil && params.ReadStatusEnabled != nil { + data.Set("ReadStatusEnabled", string(*params.ReadStatusEnabled)) + } + if params != nil && params.TypingIndicatorTimeout != nil { + data.Set("TypingIndicatorTimeout", string(*params.TypingIndicatorTimeout)) + } + if params != nil && params.WebhookFilters != nil { + data.Set("WebhookFilters", *params.WebhookFilters) + } + if params != nil && params.WebhookMethod != nil { + data.Set("WebhookMethod", *params.WebhookMethod) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateUserParams Optional parameters for the method 'UpdateUser' +type UpdateUserParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` +} + +/* +UpdateUser Method for UpdateUser + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the User resource in. + * @param sid The SID of the User resource to update. This value can be either the `sid` or the `identity` of the User resource to update. + * @param optional nil or *UpdateUserOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "Attributes" (string) - A valid JSON string that contains application-specific data. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It is often used for display purposes. + * @param "RoleSid" (string) - The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the User. +@return ChatV2ServiceUser +*/ +func (c *DefaultApiService) UpdateUser(serviceSid string, sid string, params *UpdateUserParams) (*ChatV2ServiceUser, error) { + path := "/v2/Services/{ServiceSid}/Users/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceUser{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateUserChannelParams Optional parameters for the method 'UpdateUserChannel' +type UpdateUserChannelParams struct { + LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` + LastConsumptionTimestamp *time.Time `json:"LastConsumptionTimestamp,omitempty"` + NotificationLevel *string `json:"NotificationLevel,omitempty"` +} + +/* +UpdateUserChannel Method for UpdateUserChannel + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the User Channel resource in. + * @param userSid The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) to update the User Channel resource from. This value can be either the `sid` or the `identity` of the User resource. + * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) with the User Channel resource to update. This value can be the Channel resource's `sid` or `unique_name`. + * @param optional nil or *UpdateUserChannelOpts - Optional Parameters: + * @param "LastConsumedMessageIndex" (*int32) - The index of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) in the [Channel](https://www.twilio.com/docs/chat/channels) that the Member has read. + * @param "LastConsumptionTimestamp" (time.Time) - The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) read event for the Member within the [Channel](https://www.twilio.com/docs/chat/channels). + * @param "NotificationLevel" (string) - The push notification level to assign to the User Channel. Can be: `default` or `muted`. +@return ChatV2ServiceUserUserChannel +*/ +func (c *DefaultApiService) UpdateUserChannel(serviceSid string, userSid string, channelSid string, params *UpdateUserChannelParams) (*ChatV2ServiceUserUserChannel, error) { + path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.LastConsumedMessageIndex != nil { + data.Set("LastConsumedMessageIndex", string(*params.LastConsumedMessageIndex)) + } + if params != nil && params.LastConsumptionTimestamp != nil { + data.Set("LastConsumptionTimestamp", string(*params.LastConsumptionTimestamp)) + } + if params != nil && params.NotificationLevel != nil { + data.Set("NotificationLevel", *params.NotificationLevel) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceUserUserChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/chat/v2/docs/ChatV2Credential.md b/rest/chat/v2/docs/ChatV2Credential.md new file mode 100644 index 000000000..813087455 --- /dev/null +++ b/rest/chat/v2/docs/ChatV2Credential.md @@ -0,0 +1,18 @@ +# ChatV2Credential + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Sandbox** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Type** | **string** | | [optional] +**Url** | **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/rest/chat/v2/docs/ChatV2CredentialReadResponse.md b/rest/chat/v2/docs/ChatV2CredentialReadResponse.md new file mode 100644 index 000000000..a53426d26 --- /dev/null +++ b/rest/chat/v2/docs/ChatV2CredentialReadResponse.md @@ -0,0 +1,12 @@ +# ChatV2CredentialReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Credentials** | [**[]ChatV2Credential**](chat.v2.credential.md) | | [optional] +**Meta** | [**ChatV2CredentialReadResponseMeta**](chat_v2_credentialReadResponse_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/rest/chat/v2/docs/ChatV2CredentialReadResponseMeta.md b/rest/chat/v2/docs/ChatV2CredentialReadResponseMeta.md new file mode 100644 index 000000000..bf6945ea5 --- /dev/null +++ b/rest/chat/v2/docs/ChatV2CredentialReadResponseMeta.md @@ -0,0 +1,17 @@ +# ChatV2CredentialReadResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/chat/v2/docs/ChatV2Service.md b/rest/chat/v2/docs/ChatV2Service.md new file mode 100644 index 000000000..1b8cb15bc --- /dev/null +++ b/rest/chat/v2/docs/ChatV2Service.md @@ -0,0 +1,33 @@ +# ChatV2Service + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ConsumptionReportInterval** | **int32** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**DefaultChannelCreatorRoleSid** | **string** | | [optional] +**DefaultChannelRoleSid** | **string** | | [optional] +**DefaultServiceRoleSid** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**Limits** | [**map[string]interface{}**](.md) | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Media** | [**map[string]interface{}**](.md) | | [optional] +**Notifications** | [**map[string]interface{}**](.md) | | [optional] +**PostWebhookRetryCount** | **int32** | | [optional] +**PostWebhookUrl** | **string** | | [optional] +**PreWebhookRetryCount** | **int32** | | [optional] +**PreWebhookUrl** | **string** | | [optional] +**ReachabilityEnabled** | **bool** | | [optional] +**ReadStatusEnabled** | **bool** | | [optional] +**Sid** | **string** | | [optional] +**TypingIndicatorTimeout** | **int32** | | [optional] +**Url** | **string** | | [optional] +**WebhookFilters** | **[]string** | | [optional] +**WebhookMethod** | **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/rest/chat/v2/docs/ChatV2ServiceBinding.md b/rest/chat/v2/docs/ChatV2ServiceBinding.md new file mode 100644 index 000000000..d32fb7618 --- /dev/null +++ b/rest/chat/v2/docs/ChatV2ServiceBinding.md @@ -0,0 +1,22 @@ +# ChatV2ServiceBinding + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**BindingType** | **string** | | [optional] +**CredentialSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Endpoint** | **string** | | [optional] +**Identity** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**MessageTypes** | **[]string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/chat/v2/docs/ChatV2ServiceBindingReadResponse.md b/rest/chat/v2/docs/ChatV2ServiceBindingReadResponse.md new file mode 100644 index 000000000..48ee001ea --- /dev/null +++ b/rest/chat/v2/docs/ChatV2ServiceBindingReadResponse.md @@ -0,0 +1,12 @@ +# ChatV2ServiceBindingReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Bindings** | [**[]ChatV2ServiceBinding**](chat.v2.service.binding.md) | | [optional] +**Meta** | [**ChatV2CredentialReadResponseMeta**](chat_v2_credentialReadResponse_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/rest/chat/v2/docs/ChatV2ServiceChannel.md b/rest/chat/v2/docs/ChatV2ServiceChannel.md new file mode 100644 index 000000000..78c36a6d9 --- /dev/null +++ b/rest/chat/v2/docs/ChatV2ServiceChannel.md @@ -0,0 +1,24 @@ +# ChatV2ServiceChannel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Attributes** | **string** | | [optional] +**CreatedBy** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**MembersCount** | **int32** | | [optional] +**MessagesCount** | **int32** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Type** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **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/rest/chat/v2/docs/ChatV2ServiceChannelChannelWebhook.md b/rest/chat/v2/docs/ChatV2ServiceChannelChannelWebhook.md new file mode 100644 index 000000000..c1763bf6f --- /dev/null +++ b/rest/chat/v2/docs/ChatV2ServiceChannelChannelWebhook.md @@ -0,0 +1,19 @@ +# ChatV2ServiceChannelChannelWebhook + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ChannelSid** | **string** | | [optional] +**Configuration** | [**map[string]interface{}**](.md) | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Type** | **string** | | [optional] +**Url** | **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/rest/chat/v2/docs/ChatV2ServiceChannelChannelWebhookReadResponse.md b/rest/chat/v2/docs/ChatV2ServiceChannelChannelWebhookReadResponse.md new file mode 100644 index 000000000..2fb2fe055 --- /dev/null +++ b/rest/chat/v2/docs/ChatV2ServiceChannelChannelWebhookReadResponse.md @@ -0,0 +1,12 @@ +# ChatV2ServiceChannelChannelWebhookReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**ChatV2CredentialReadResponseMeta**](chat_v2_credentialReadResponse_meta.md) | | [optional] +**Webhooks** | [**[]ChatV2ServiceChannelChannelWebhook**](chat.v2.service.channel.channel_webhook.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/rest/chat/v2/docs/ChatV2ServiceChannelInvite.md b/rest/chat/v2/docs/ChatV2ServiceChannelInvite.md new file mode 100644 index 000000000..862787912 --- /dev/null +++ b/rest/chat/v2/docs/ChatV2ServiceChannelInvite.md @@ -0,0 +1,20 @@ +# ChatV2ServiceChannelInvite + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ChannelSid** | **string** | | [optional] +**CreatedBy** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Identity** | **string** | | [optional] +**RoleSid** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/chat/v2/docs/ChatV2ServiceChannelInviteReadResponse.md b/rest/chat/v2/docs/ChatV2ServiceChannelInviteReadResponse.md new file mode 100644 index 000000000..44241399f --- /dev/null +++ b/rest/chat/v2/docs/ChatV2ServiceChannelInviteReadResponse.md @@ -0,0 +1,12 @@ +# ChatV2ServiceChannelInviteReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Invites** | [**[]ChatV2ServiceChannelInvite**](chat.v2.service.channel.invite.md) | | [optional] +**Meta** | [**ChatV2CredentialReadResponseMeta**](chat_v2_credentialReadResponse_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/rest/chat/v2/docs/ChatV2ServiceChannelMember.md b/rest/chat/v2/docs/ChatV2ServiceChannelMember.md new file mode 100644 index 000000000..d0a4220bd --- /dev/null +++ b/rest/chat/v2/docs/ChatV2ServiceChannelMember.md @@ -0,0 +1,22 @@ +# ChatV2ServiceChannelMember + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Attributes** | **string** | | [optional] +**ChannelSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Identity** | **string** | | [optional] +**LastConsumedMessageIndex** | Pointer to **int32** | | [optional] +**LastConsumptionTimestamp** | [**time.Time**](time.Time.md) | | [optional] +**RoleSid** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/chat/v2/docs/ChatV2ServiceChannelMemberReadResponse.md b/rest/chat/v2/docs/ChatV2ServiceChannelMemberReadResponse.md new file mode 100644 index 000000000..bc4bb7333 --- /dev/null +++ b/rest/chat/v2/docs/ChatV2ServiceChannelMemberReadResponse.md @@ -0,0 +1,12 @@ +# ChatV2ServiceChannelMemberReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Members** | [**[]ChatV2ServiceChannelMember**](chat.v2.service.channel.member.md) | | [optional] +**Meta** | [**ChatV2CredentialReadResponseMeta**](chat_v2_credentialReadResponse_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/rest/chat/v2/docs/ChatV2ServiceChannelMessage.md b/rest/chat/v2/docs/ChatV2ServiceChannelMessage.md new file mode 100644 index 000000000..379201d65 --- /dev/null +++ b/rest/chat/v2/docs/ChatV2ServiceChannelMessage.md @@ -0,0 +1,26 @@ +# ChatV2ServiceChannelMessage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Attributes** | **string** | | [optional] +**Body** | **string** | | [optional] +**ChannelSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**From** | **string** | | [optional] +**Index** | **int32** | | [optional] +**LastUpdatedBy** | **string** | | [optional] +**Media** | [**map[string]interface{}**](.md) | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**To** | **string** | | [optional] +**Type** | **string** | | [optional] +**Url** | **string** | | [optional] +**WasEdited** | **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/rest/chat/v2/docs/ChatV2ServiceChannelMessageReadResponse.md b/rest/chat/v2/docs/ChatV2ServiceChannelMessageReadResponse.md new file mode 100644 index 000000000..6000dcf21 --- /dev/null +++ b/rest/chat/v2/docs/ChatV2ServiceChannelMessageReadResponse.md @@ -0,0 +1,12 @@ +# ChatV2ServiceChannelMessageReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Messages** | [**[]ChatV2ServiceChannelMessage**](chat.v2.service.channel.message.md) | | [optional] +**Meta** | [**ChatV2CredentialReadResponseMeta**](chat_v2_credentialReadResponse_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/rest/chat/v2/docs/ChatV2ServiceChannelReadResponse.md b/rest/chat/v2/docs/ChatV2ServiceChannelReadResponse.md new file mode 100644 index 000000000..db868acdf --- /dev/null +++ b/rest/chat/v2/docs/ChatV2ServiceChannelReadResponse.md @@ -0,0 +1,12 @@ +# ChatV2ServiceChannelReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Channels** | [**[]ChatV2ServiceChannel**](chat.v2.service.channel.md) | | [optional] +**Meta** | [**ChatV2CredentialReadResponseMeta**](chat_v2_credentialReadResponse_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/rest/chat/v2/docs/ChatV2ServiceReadResponse.md b/rest/chat/v2/docs/ChatV2ServiceReadResponse.md new file mode 100644 index 000000000..2daefa1cb --- /dev/null +++ b/rest/chat/v2/docs/ChatV2ServiceReadResponse.md @@ -0,0 +1,12 @@ +# ChatV2ServiceReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**ChatV2CredentialReadResponseMeta**](chat_v2_credentialReadResponse_meta.md) | | [optional] +**Services** | [**[]ChatV2Service**](chat.v2.service.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/rest/chat/v2/docs/ChatV2ServiceRole.md b/rest/chat/v2/docs/ChatV2ServiceRole.md new file mode 100644 index 000000000..a1c284259 --- /dev/null +++ b/rest/chat/v2/docs/ChatV2ServiceRole.md @@ -0,0 +1,19 @@ +# ChatV2ServiceRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Permissions** | **[]string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Type** | **string** | | [optional] +**Url** | **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/rest/chat/v2/docs/ChatV2ServiceRoleReadResponse.md b/rest/chat/v2/docs/ChatV2ServiceRoleReadResponse.md new file mode 100644 index 000000000..c80f533bf --- /dev/null +++ b/rest/chat/v2/docs/ChatV2ServiceRoleReadResponse.md @@ -0,0 +1,12 @@ +# ChatV2ServiceRoleReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**ChatV2CredentialReadResponseMeta**](chat_v2_credentialReadResponse_meta.md) | | [optional] +**Roles** | [**[]ChatV2ServiceRole**](chat.v2.service.role.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/rest/chat/v2/docs/ChatV2ServiceUser.md b/rest/chat/v2/docs/ChatV2ServiceUser.md new file mode 100644 index 000000000..b67e81a72 --- /dev/null +++ b/rest/chat/v2/docs/ChatV2ServiceUser.md @@ -0,0 +1,24 @@ +# ChatV2ServiceUser + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Attributes** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Identity** | **string** | | [optional] +**IsNotifiable** | **bool** | | [optional] +**IsOnline** | **bool** | | [optional] +**JoinedChannelsCount** | **int32** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**RoleSid** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/chat/v2/docs/ChatV2ServiceUserReadResponse.md b/rest/chat/v2/docs/ChatV2ServiceUserReadResponse.md new file mode 100644 index 000000000..01a389c7b --- /dev/null +++ b/rest/chat/v2/docs/ChatV2ServiceUserReadResponse.md @@ -0,0 +1,12 @@ +# ChatV2ServiceUserReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**ChatV2CredentialReadResponseMeta**](chat_v2_credentialReadResponse_meta.md) | | [optional] +**Users** | [**[]ChatV2ServiceUser**](chat.v2.service.user.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/rest/chat/v2/docs/ChatV2ServiceUserUserBinding.md b/rest/chat/v2/docs/ChatV2ServiceUserUserBinding.md new file mode 100644 index 000000000..7f60f6612 --- /dev/null +++ b/rest/chat/v2/docs/ChatV2ServiceUserUserBinding.md @@ -0,0 +1,22 @@ +# ChatV2ServiceUserUserBinding + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**BindingType** | **string** | | [optional] +**CredentialSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Endpoint** | **string** | | [optional] +**Identity** | **string** | | [optional] +**MessageTypes** | **[]string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **string** | | [optional] +**UserSid** | **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/rest/chat/v2/docs/ChatV2ServiceUserUserBindingReadResponse.md b/rest/chat/v2/docs/ChatV2ServiceUserUserBindingReadResponse.md new file mode 100644 index 000000000..d019e8aad --- /dev/null +++ b/rest/chat/v2/docs/ChatV2ServiceUserUserBindingReadResponse.md @@ -0,0 +1,12 @@ +# ChatV2ServiceUserUserBindingReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Bindings** | [**[]ChatV2ServiceUserUserBinding**](chat.v2.service.user.user_binding.md) | | [optional] +**Meta** | [**ChatV2CredentialReadResponseMeta**](chat_v2_credentialReadResponse_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/rest/chat/v2/docs/ChatV2ServiceUserUserChannel.md b/rest/chat/v2/docs/ChatV2ServiceUserUserChannel.md new file mode 100644 index 000000000..029746239 --- /dev/null +++ b/rest/chat/v2/docs/ChatV2ServiceUserUserChannel.md @@ -0,0 +1,21 @@ +# ChatV2ServiceUserUserChannel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ChannelSid** | **string** | | [optional] +**LastConsumedMessageIndex** | Pointer to **int32** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**MemberSid** | **string** | | [optional] +**NotificationLevel** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Status** | **string** | | [optional] +**UnreadMessagesCount** | Pointer to **int32** | | [optional] +**Url** | **string** | | [optional] +**UserSid** | **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/rest/chat/v2/docs/ChatV2ServiceUserUserChannelReadResponse.md b/rest/chat/v2/docs/ChatV2ServiceUserUserChannelReadResponse.md new file mode 100644 index 000000000..7f6b4f1e9 --- /dev/null +++ b/rest/chat/v2/docs/ChatV2ServiceUserUserChannelReadResponse.md @@ -0,0 +1,12 @@ +# ChatV2ServiceUserUserChannelReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Channels** | [**[]ChatV2ServiceUserUserChannel**](chat.v2.service.user.user_channel.md) | | [optional] +**Meta** | [**ChatV2CredentialReadResponseMeta**](chat_v2_credentialReadResponse_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/rest/chat/v2/docs/CreateChannelRequest.md b/rest/chat/v2/docs/CreateChannelRequest.md new file mode 100644 index 000000000..b5c849560 --- /dev/null +++ b/rest/chat/v2/docs/CreateChannelRequest.md @@ -0,0 +1,17 @@ +# CreateChannelRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | A valid JSON string that contains application-specific data. | [optional] +**CreatedBy** | **string** | The `identity` of the User that created the channel. Default is: `system`. | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. Note that this should only be used in cases where a Channel is being recreated from a backup/separate source. | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. The default value is `null`. Note that this parameter should only be used in cases where a Channel is being recreated from a backup/separate source and where a Message was previously updated. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | [optional] +**Type** | **string** | The visibility of the channel. Can be: `public` or `private` and defaults to `public`. | [optional] +**UniqueName** | **string** | An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the Channel resource's `sid` in the URL. This value must be 64 characters or less in length and be unique within the Service. | [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/rest/chat/v2/docs/CreateChannelWebhookRequest.md b/rest/chat/v2/docs/CreateChannelWebhookRequest.md new file mode 100644 index 000000000..a29394a0f --- /dev/null +++ b/rest/chat/v2/docs/CreateChannelWebhookRequest.md @@ -0,0 +1,17 @@ +# CreateChannelWebhookRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConfigurationFilters** | **[]string** | The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger). | [optional] +**ConfigurationFlowSid** | **string** | The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` is `studio`. | [optional] +**ConfigurationMethod** | **string** | The HTTP method used to call `configuration.url`. Can be: `GET` or `POST` and the default is `POST`. | [optional] +**ConfigurationRetryCount** | **int32** | The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0. | [optional] +**ConfigurationTriggers** | **[]string** | A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`. | [optional] +**ConfigurationUrl** | **string** | The URL of the webhook to call using the `configuration.method`. | [optional] +**Type** | **string** | The type of webhook. Can be: `webhook`, `studio`, or `trigger`. | + +[[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/rest/chat/v2/docs/CreateCredentialRequest.md b/rest/chat/v2/docs/CreateCredentialRequest.md new file mode 100644 index 000000000..a8d00dd96 --- /dev/null +++ b/rest/chat/v2/docs/CreateCredentialRequest.md @@ -0,0 +1,17 @@ +# CreateCredentialRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiKey** | **string** | [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. | [optional] +**Certificate** | **string** | [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== -----END CERTIFICATE-----` | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | [optional] +**PrivateKey** | **string** | [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fG... -----END RSA PRIVATE KEY-----` | [optional] +**Sandbox** | **bool** | [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. | [optional] +**Secret** | **string** | [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. | [optional] +**Type** | **string** | The type of push-notification service the credential is for. Can be: `gcm`, `fcm`, or `apn`. | + +[[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/rest/chat/v2/docs/CreateInviteRequest.md b/rest/chat/v2/docs/CreateInviteRequest.md new file mode 100644 index 000000000..095a45a16 --- /dev/null +++ b/rest/chat/v2/docs/CreateInviteRequest.md @@ -0,0 +1,12 @@ +# CreateInviteRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Identity** | **string** | The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/chat/rest/service-resource). See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more info. | +**RoleSid** | **string** | The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) assigned to the new member. | [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/rest/chat/v2/docs/CreateMemberRequest.md b/rest/chat/v2/docs/CreateMemberRequest.md new file mode 100644 index 000000000..d6a0d986a --- /dev/null +++ b/rest/chat/v2/docs/CreateMemberRequest.md @@ -0,0 +1,17 @@ +# CreateMemberRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | A valid JSON string that contains application-specific data. | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. Note that this parameter should only be used when a Member is being recreated from a backup/separate source. | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. The default value is `null`. Note that this parameter should only be used when a Member is being recreated from a backup/separate source and where a Member was previously updated. | [optional] +**Identity** | **string** | The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/chat/rest/service-resource). See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more info. | +**LastConsumedMessageIndex** | Pointer to **int32** | The index of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) in the [Channel](https://www.twilio.com/docs/chat/channels) that the Member has read. This parameter should only be used when recreating a Member from a backup/separate source. | [optional] +**LastConsumptionTimestamp** | [**time.Time**](time.Time.md) | The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) read event for the Member within the [Channel](https://www.twilio.com/docs/chat/channels). | [optional] +**RoleSid** | **string** | The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/rest/service-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/rest/chat/v2/docs/CreateMessageRequest.md b/rest/chat/v2/docs/CreateMessageRequest.md new file mode 100644 index 000000000..5ad6d02f2 --- /dev/null +++ b/rest/chat/v2/docs/CreateMessageRequest.md @@ -0,0 +1,17 @@ +# CreateMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | A valid JSON string that contains application-specific data. | [optional] +**Body** | **string** | The message to send to the channel. Can be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string. | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. This parameter should only be used when a Chat's history is being recreated from a backup/separate source. | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. | [optional] +**From** | **string** | The [Identity](https://www.twilio.com/docs/chat/identity) of the new message's author. The default value is `system`. | [optional] +**LastUpdatedBy** | **string** | The [Identity](https://www.twilio.com/docs/chat/identity) of the User who last updated the Message, if applicable. | [optional] +**MediaSid** | **string** | The SID of the [Media](https://www.twilio.com/docs/chat/rest/media) to attach to the new Message. | [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/rest/chat/v2/docs/CreateRoleRequest.md b/rest/chat/v2/docs/CreateRoleRequest.md new file mode 100644 index 000000000..aae8155a1 --- /dev/null +++ b/rest/chat/v2/docs/CreateRoleRequest.md @@ -0,0 +1,13 @@ +# CreateRoleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | +**Permission** | **[]string** | A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type`. | +**Type** | **string** | The type of role. Can be: `channel` for [Channel](https://www.twilio.com/docs/chat/channels) roles or `deployment` for [Service](https://www.twilio.com/docs/chat/rest/service-resource) roles. | + +[[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/rest/chat/v2/docs/CreateServiceRequest.md b/rest/chat/v2/docs/CreateServiceRequest.md new file mode 100644 index 000000000..f65684f21 --- /dev/null +++ b/rest/chat/v2/docs/CreateServiceRequest.md @@ -0,0 +1,11 @@ +# CreateServiceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | A descriptive string that you create to describe the new resource. | + +[[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/rest/chat/v2/docs/CreateUserRequest.md b/rest/chat/v2/docs/CreateUserRequest.md new file mode 100644 index 000000000..57641d90b --- /dev/null +++ b/rest/chat/v2/docs/CreateUserRequest.md @@ -0,0 +1,14 @@ +# CreateUserRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | A valid JSON string that contains application-specific data. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the new resource. This value is often used for display purposes. | [optional] +**Identity** | **string** | The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/chat/rest/service-resource). This value is often a username or email address. See the Identity documentation for more info. | +**RoleSid** | **string** | The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the new User. | [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/rest/chat/v2/docs/DefaultApi.md b/rest/chat/v2/docs/DefaultApi.md new file mode 100644 index 000000000..90307affd --- /dev/null +++ b/rest/chat/v2/docs/DefaultApi.md @@ -0,0 +1,2338 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateChannel**](DefaultApi.md#CreateChannel) | **Post** /v2/Services/{ServiceSid}/Channels | +[**CreateChannelWebhook**](DefaultApi.md#CreateChannelWebhook) | **Post** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks | +[**CreateCredential**](DefaultApi.md#CreateCredential) | **Post** /v2/Credentials | +[**CreateInvite**](DefaultApi.md#CreateInvite) | **Post** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites | +[**CreateMember**](DefaultApi.md#CreateMember) | **Post** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members | +[**CreateMessage**](DefaultApi.md#CreateMessage) | **Post** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages | +[**CreateRole**](DefaultApi.md#CreateRole) | **Post** /v2/Services/{ServiceSid}/Roles | +[**CreateService**](DefaultApi.md#CreateService) | **Post** /v2/Services | +[**CreateUser**](DefaultApi.md#CreateUser) | **Post** /v2/Services/{ServiceSid}/Users | +[**DeleteBinding**](DefaultApi.md#DeleteBinding) | **Delete** /v2/Services/{ServiceSid}/Bindings/{Sid} | +[**DeleteChannel**](DefaultApi.md#DeleteChannel) | **Delete** /v2/Services/{ServiceSid}/Channels/{Sid} | +[**DeleteChannelWebhook**](DefaultApi.md#DeleteChannelWebhook) | **Delete** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid} | +[**DeleteCredential**](DefaultApi.md#DeleteCredential) | **Delete** /v2/Credentials/{Sid} | +[**DeleteInvite**](DefaultApi.md#DeleteInvite) | **Delete** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid} | +[**DeleteMember**](DefaultApi.md#DeleteMember) | **Delete** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid} | +[**DeleteMessage**](DefaultApi.md#DeleteMessage) | **Delete** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid} | +[**DeleteRole**](DefaultApi.md#DeleteRole) | **Delete** /v2/Services/{ServiceSid}/Roles/{Sid} | +[**DeleteService**](DefaultApi.md#DeleteService) | **Delete** /v2/Services/{Sid} | +[**DeleteUser**](DefaultApi.md#DeleteUser) | **Delete** /v2/Services/{ServiceSid}/Users/{Sid} | +[**DeleteUserBinding**](DefaultApi.md#DeleteUserBinding) | **Delete** /v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid} | +[**DeleteUserChannel**](DefaultApi.md#DeleteUserChannel) | **Delete** /v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid} | +[**FetchBinding**](DefaultApi.md#FetchBinding) | **Get** /v2/Services/{ServiceSid}/Bindings/{Sid} | +[**FetchChannel**](DefaultApi.md#FetchChannel) | **Get** /v2/Services/{ServiceSid}/Channels/{Sid} | +[**FetchChannelWebhook**](DefaultApi.md#FetchChannelWebhook) | **Get** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid} | +[**FetchCredential**](DefaultApi.md#FetchCredential) | **Get** /v2/Credentials/{Sid} | +[**FetchInvite**](DefaultApi.md#FetchInvite) | **Get** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid} | +[**FetchMember**](DefaultApi.md#FetchMember) | **Get** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid} | +[**FetchMessage**](DefaultApi.md#FetchMessage) | **Get** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid} | +[**FetchRole**](DefaultApi.md#FetchRole) | **Get** /v2/Services/{ServiceSid}/Roles/{Sid} | +[**FetchService**](DefaultApi.md#FetchService) | **Get** /v2/Services/{Sid} | +[**FetchUser**](DefaultApi.md#FetchUser) | **Get** /v2/Services/{ServiceSid}/Users/{Sid} | +[**FetchUserBinding**](DefaultApi.md#FetchUserBinding) | **Get** /v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid} | +[**FetchUserChannel**](DefaultApi.md#FetchUserChannel) | **Get** /v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid} | +[**ListBinding**](DefaultApi.md#ListBinding) | **Get** /v2/Services/{ServiceSid}/Bindings | +[**ListChannel**](DefaultApi.md#ListChannel) | **Get** /v2/Services/{ServiceSid}/Channels | +[**ListChannelWebhook**](DefaultApi.md#ListChannelWebhook) | **Get** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks | +[**ListCredential**](DefaultApi.md#ListCredential) | **Get** /v2/Credentials | +[**ListInvite**](DefaultApi.md#ListInvite) | **Get** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites | +[**ListMember**](DefaultApi.md#ListMember) | **Get** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members | +[**ListMessage**](DefaultApi.md#ListMessage) | **Get** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages | +[**ListRole**](DefaultApi.md#ListRole) | **Get** /v2/Services/{ServiceSid}/Roles | +[**ListService**](DefaultApi.md#ListService) | **Get** /v2/Services | +[**ListUser**](DefaultApi.md#ListUser) | **Get** /v2/Services/{ServiceSid}/Users | +[**ListUserBinding**](DefaultApi.md#ListUserBinding) | **Get** /v2/Services/{ServiceSid}/Users/{UserSid}/Bindings | +[**ListUserChannel**](DefaultApi.md#ListUserChannel) | **Get** /v2/Services/{ServiceSid}/Users/{UserSid}/Channels | +[**UpdateChannel**](DefaultApi.md#UpdateChannel) | **Post** /v2/Services/{ServiceSid}/Channels/{Sid} | +[**UpdateChannelWebhook**](DefaultApi.md#UpdateChannelWebhook) | **Post** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid} | +[**UpdateCredential**](DefaultApi.md#UpdateCredential) | **Post** /v2/Credentials/{Sid} | +[**UpdateMember**](DefaultApi.md#UpdateMember) | **Post** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid} | +[**UpdateMessage**](DefaultApi.md#UpdateMessage) | **Post** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid} | +[**UpdateRole**](DefaultApi.md#UpdateRole) | **Post** /v2/Services/{ServiceSid}/Roles/{Sid} | +[**UpdateService**](DefaultApi.md#UpdateService) | **Post** /v2/Services/{Sid} | +[**UpdateUser**](DefaultApi.md#UpdateUser) | **Post** /v2/Services/{ServiceSid}/Users/{Sid} | +[**UpdateUserChannel**](DefaultApi.md#UpdateUserChannel) | **Post** /v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid} | + + + +## CreateChannel + +> ChatV2ServiceChannel CreateChannel(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Channel resource under. | + **optional** | ***CreateChannelOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateChannelOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **attributes** | **optional.String**| A valid JSON string that contains application-specific data. | + **createdBy** | **optional.String**| The `identity` of the User that created the channel. Default is: `system`. | + **dateCreated** | **optional.Time**| The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. Note that this should only be used in cases where a Channel is being recreated from a backup/separate source. | + **dateUpdated** | **optional.Time**| The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. The default value is `null`. Note that this parameter should only be used in cases where a Channel is being recreated from a backup/separate source and where a Message was previously updated. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | + **type_** | **optional.String**| The visibility of the channel. Can be: `public` or `private` and defaults to `public`. | + **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the Channel resource's `sid` in the URL. This value must be 64 characters or less in length and be unique within the Service. | + +### Return type + +[**ChatV2ServiceChannel**](chat.v2.service.channel.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) + + +## CreateChannelWebhook + +> ChatV2ServiceChannelChannelWebhook CreateChannelWebhook(ctx, serviceSid, channelSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel to create the Webhook resource under. | +**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the new Channel Webhook resource belongs to. This value can be the Channel resource's `sid` or `unique_name`. | + **optional** | ***CreateChannelWebhookOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateChannelWebhookOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **configurationFilters** | [**optional.Interface of []string**](string.md)| The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger). | + **configurationFlowSid** | **optional.String**| The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` is `studio`. | + **configurationMethod** | **optional.String**| The HTTP method used to call `configuration.url`. Can be: `GET` or `POST` and the default is `POST`. | + **configurationRetryCount** | **optional.Int32**| The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0. | + **configurationTriggers** | [**optional.Interface of []string**](string.md)| A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`. | + **configurationUrl** | **optional.String**| The URL of the webhook to call using the `configuration.method`. | + **type_** | **optional.String**| The type of webhook. Can be: `webhook`, `studio`, or `trigger`. | + +### Return type + +[**ChatV2ServiceChannelChannelWebhook**](chat.v2.service.channel.channel_webhook.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) + + +## CreateCredential + +> ChatV2Credential CreateCredential(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateCredentialOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateCredentialOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **apiKey** | **optional.String**| [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. | + **certificate** | **optional.String**| [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== -----END CERTIFICATE-----` | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | + **privateKey** | **optional.String**| [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fG... -----END RSA PRIVATE KEY-----` | + **sandbox** | **optional.Bool**| [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. | + **secret** | **optional.String**| [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. | + **type_** | **optional.String**| The type of push-notification service the credential is for. Can be: `gcm`, `fcm`, or `apn`. | + +### Return type + +[**ChatV2Credential**](chat.v2.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) + + +## CreateInvite + +> ChatV2ServiceChannelInvite CreateInvite(ctx, serviceSid, channelSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Invite resource under. | +**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the new Invite resource belongs to. This value can be the Channel resource's `sid` or `unique_name`. | + **optional** | ***CreateInviteOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateInviteOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **identity** | **optional.String**| The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/chat/rest/service-resource). See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more info. | + **roleSid** | **optional.String**| The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) assigned to the new member. | + +### Return type + +[**ChatV2ServiceChannelInvite**](chat.v2.service.channel.invite.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) + + +## CreateMember + +> ChatV2ServiceChannelMember CreateMember(ctx, serviceSid, channelSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Member resource under. | +**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the new Member resource belongs to. This value can be the Channel resource's `sid` or `unique_name`. | + **optional** | ***CreateMemberOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateMemberOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **attributes** | **optional.String**| A valid JSON string that contains application-specific data. | + **dateCreated** | **optional.Time**| The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. Note that this parameter should only be used when a Member is being recreated from a backup/separate source. | + **dateUpdated** | **optional.Time**| The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. The default value is `null`. Note that this parameter should only be used when a Member is being recreated from a backup/separate source and where a Member was previously updated. | + **identity** | **optional.String**| The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/chat/rest/service-resource). See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more info. | + **lastConsumedMessageIndex** | **optional.Int32**| The index of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) in the [Channel](https://www.twilio.com/docs/chat/channels) that the Member has read. This parameter should only be used when recreating a Member from a backup/separate source. | + **lastConsumptionTimestamp** | **optional.Time**| The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) read event for the Member within the [Channel](https://www.twilio.com/docs/chat/channels). | + **roleSid** | **optional.String**| The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/rest/service-resource). | + +### Return type + +[**ChatV2ServiceChannelMember**](chat.v2.service.channel.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) + + +## CreateMessage + +> ChatV2ServiceChannelMessage CreateMessage(ctx, serviceSid, channelSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Message resource under. | +**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the new Message resource belongs to. This value can be the Channel resource's `sid` or `unique_name`. | + **optional** | ***CreateMessageOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateMessageOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **attributes** | **optional.String**| A valid JSON string that contains application-specific data. | + **body** | **optional.String**| The message to send to the channel. Can be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string. | + **dateCreated** | **optional.Time**| The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. This parameter should only be used when a Chat's history is being recreated from a backup/separate source. | + **dateUpdated** | **optional.Time**| The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. | + **from** | **optional.String**| The [Identity](https://www.twilio.com/docs/chat/identity) of the new message's author. The default value is `system`. | + **lastUpdatedBy** | **optional.String**| The [Identity](https://www.twilio.com/docs/chat/identity) of the User who last updated the Message, if applicable. | + **mediaSid** | **optional.String**| The SID of the [Media](https://www.twilio.com/docs/chat/rest/media) to attach to the new Message. | + +### Return type + +[**ChatV2ServiceChannelMessage**](chat.v2.service.channel.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) + + +## CreateRole + +> ChatV2ServiceRole CreateRole(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Role resource under. | + **optional** | ***CreateRoleOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateRoleOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **friendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | + **permission** | [**optional.Interface of []string**](string.md)| A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type`. | + **type_** | **optional.String**| The type of role. Can be: `channel` for [Channel](https://www.twilio.com/docs/chat/channels) roles or `deployment` for [Service](https://www.twilio.com/docs/chat/rest/service-resource) roles. | + +### Return type + +[**ChatV2ServiceRole**](chat.v2.service.role.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) + + +## CreateService + +> ChatV2Service CreateService(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateServiceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateServiceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **friendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. | + +### Return type + +[**ChatV2Service**](chat.v2.service.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) + + +## CreateUser + +> ChatV2ServiceUser CreateUser(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the User resource under. | + **optional** | ***CreateUserOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateUserOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **attributes** | **optional.String**| A valid JSON string that contains application-specific data. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. This value is often used for display purposes. | + **identity** | **optional.String**| The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/chat/rest/service-resource). This value is often a username or email address. See the Identity documentation for more info. | + **roleSid** | **optional.String**| The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the new User. | + +### Return type + +[**ChatV2ServiceUser**](chat.v2.service.user.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) + + +## DeleteBinding + +> DeleteBinding(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the Binding resource from. | +**sid** | **string**| The SID of the Binding resource to delete. | + +### 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) + + +## DeleteChannel + +> DeleteChannel(ctx, serviceSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the resource from. | +**sid** | **string**| The SID of the Channel resource to delete. This value can be either the `sid` or the `unique_name` of the Channel resource to delete. | + **optional** | ***DeleteChannelOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a DeleteChannelOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + +### 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) + + +## DeleteChannelWebhook + +> DeleteChannelWebhook(ctx, serviceSid, channelSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel to delete the Webhook resource from. | +**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook resource to delete belongs to. This value can be the Channel resource's `sid` or `unique_name`. | +**sid** | **string**| The SID of the Channel Webhook resource to delete. | + +### 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) + + +## DeleteCredential + +> DeleteCredential(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Credential resource to delete. | + +### 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) + + +## DeleteInvite + +> DeleteInvite(ctx, serviceSid, channelSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the Invite resource from. | +**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Invite resource to delete belongs to. This value can be the Channel resource's `sid` or `unique_name`. | +**sid** | **string**| The SID of the Invite resource to delete. | + +### 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) + + +## DeleteMember + +> DeleteMember(ctx, serviceSid, channelSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the Member resource from. | +**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Member resource to delete belongs to. This value can be the Channel resource's `sid` or `unique_name`. | +**sid** | **string**| The SID of the Member resource to delete. This value can be either the Member's `sid` or its `identity` value. | + **optional** | ***DeleteMemberOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a DeleteMemberOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + +### 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) + + +## DeleteMessage + +> DeleteMessage(ctx, serviceSid, channelSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the Message resource from. | +**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Message resource to delete belongs to. This value can be the Channel resource's `sid` or `unique_name`. | +**sid** | **string**| The SID of the Message resource to delete. | + **optional** | ***DeleteMessageOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a DeleteMessageOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + +### 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) + + +## DeleteRole + +> DeleteRole(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the Role resource from. | +**sid** | **string**| The SID of the Role resource to delete. | + +### 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) + + +## DeleteService + +> DeleteService(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Service resource to delete. | + +### 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) + + +## DeleteUser + +> DeleteUser(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the User resource from. | +**sid** | **string**| The SID of the User resource to delete. This value can be either the `sid` or the `identity` of the User resource to delete. | + +### 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) + + +## DeleteUserBinding + +> DeleteUserBinding(ctx, serviceSid, userSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the User Binding resource from. | +**userSid** | **string**| The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) with the User Binding resources to delete. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. | +**sid** | **string**| The SID of the User Binding resource to delete. | + +### 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) + + +## DeleteUserChannel + +> DeleteUserChannel(ctx, serviceSid, userSid, channelSid) + + + +Removes User from selected Channel. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. | +**userSid** | **string**| The SID of the [User](https://www.twilio.com/docs/api/chat/rest/users) to read the User Channel resources from. | +**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the resource belongs to. | + +### 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) + + +## FetchBinding + +> ChatV2ServiceBinding FetchBinding(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Binding resource from. | +**sid** | **string**| The SID of the Binding resource to fetch. | + +### Return type + +[**ChatV2ServiceBinding**](chat.v2.service.binding.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) + + +## FetchChannel + +> ChatV2ServiceChannel FetchChannel(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Channel resource from. | +**sid** | **string**| The SID of the Channel resource to fetch. This value can be either the `sid` or the `unique_name` of the Channel resource to fetch. | + +### Return type + +[**ChatV2ServiceChannel**](chat.v2.service.channel.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) + + +## FetchChannelWebhook + +> ChatV2ServiceChannelChannelWebhook FetchChannelWebhook(ctx, serviceSid, channelSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel to fetch the Webhook resource from. | +**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook resource to fetch belongs to. This value can be the Channel resource's `sid` or `unique_name`. | +**sid** | **string**| The SID of the Channel Webhook resource to fetch. | + +### Return type + +[**ChatV2ServiceChannelChannelWebhook**](chat.v2.service.channel.channel_webhook.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) + + +## FetchCredential + +> ChatV2Credential FetchCredential(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Credential resource to fetch. | + +### Return type + +[**ChatV2Credential**](chat.v2.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) + + +## FetchInvite + +> ChatV2ServiceChannelInvite FetchInvite(ctx, serviceSid, channelSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Invite resource from. | +**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Invite resource to fetch belongs to. This value can be the Channel resource's `sid` or `unique_name`. | +**sid** | **string**| The SID of the Invite resource to fetch. | + +### Return type + +[**ChatV2ServiceChannelInvite**](chat.v2.service.channel.invite.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) + + +## FetchMember + +> ChatV2ServiceChannelMember FetchMember(ctx, serviceSid, channelSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Member resource from. | +**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Member resource to fetch belongs to. This value can be the Channel resource's `sid` or `unique_name`. | +**sid** | **string**| The SID of the Member resource to fetch. This value can be either the Member's `sid` or its `identity` value. | + +### Return type + +[**ChatV2ServiceChannelMember**](chat.v2.service.channel.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) + + +## FetchMessage + +> ChatV2ServiceChannelMessage FetchMessage(ctx, serviceSid, channelSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Message resource from. | +**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Message resource to fetch belongs to. This value can be the Channel resource's `sid` or `unique_name`. | +**sid** | **string**| The SID of the Message resource to fetch. | + +### Return type + +[**ChatV2ServiceChannelMessage**](chat.v2.service.channel.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) + + +## FetchRole + +> ChatV2ServiceRole FetchRole(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Role resource from. | +**sid** | **string**| The SID of the Role resource to fetch. | + +### Return type + +[**ChatV2ServiceRole**](chat.v2.service.role.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) + + +## FetchService + +> ChatV2Service FetchService(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Service resource to fetch. | + +### Return type + +[**ChatV2Service**](chat.v2.service.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) + + +## FetchUser + +> ChatV2ServiceUser FetchUser(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the User resource from. | +**sid** | **string**| The SID of the User resource to fetch. This value can be either the `sid` or the `identity` of the User resource to fetch. | + +### Return type + +[**ChatV2ServiceUser**](chat.v2.service.user.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) + + +## FetchUserBinding + +> ChatV2ServiceUserUserBinding FetchUserBinding(ctx, serviceSid, userSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the User Binding resource from. | +**userSid** | **string**| The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) with the User Binding resource to fetch. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. | +**sid** | **string**| The SID of the User Binding resource to fetch. | + +### Return type + +[**ChatV2ServiceUserUserBinding**](chat.v2.service.user.user_binding.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) + + +## FetchUserChannel + +> ChatV2ServiceUserUserChannel FetchUserChannel(ctx, serviceSid, userSid, channelSid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the User Channel resource from. | +**userSid** | **string**| The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) to fetch the User Channel resource from. This value can be either the `sid` or the `identity` of the User resource. | +**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) that has the User Channel to fetch. This value can be either the `sid` or the `unique_name` of the Channel to fetch. | + +### Return type + +[**ChatV2ServiceUserUserChannel**](chat.v2.service.user.user_channel.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) + + +## ListBinding + +> ChatV2ServiceBindingReadResponse ListBinding(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Binding resources from. | + **optional** | ***ListBindingOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListBindingOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **bindingType** | [**optional.Interface of []string**](string.md)| The push technology used by the Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. | + **identity** | [**optional.Interface of []string**](string.md)| The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ChatV2ServiceBindingReadResponse**](chat_v2_service_bindingReadResponse.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) + + +## ListChannel + +> ChatV2ServiceChannelReadResponse ListChannel(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Channel resources from. | + **optional** | ***ListChannelOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListChannelOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **type_** | [**optional.Interface of []string**](string.md)| The visibility of the Channels to read. Can be: `public` or `private` and defaults to `public`. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ChatV2ServiceChannelReadResponse**](chat_v2_service_channelReadResponse.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) + + +## ListChannelWebhook + +> ChatV2ServiceChannelChannelWebhookReadResponse ListChannelWebhook(ctx, serviceSid, channelSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel to read the resources from. | +**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook resources to read belong to. This value can be the Channel resource's `sid` or `unique_name`. | + **optional** | ***ListChannelWebhookOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListChannelWebhookOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ChatV2ServiceChannelChannelWebhookReadResponse**](chat_v2_service_channel_channel_webhookReadResponse.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) + + +## ListCredential + +> ChatV2CredentialReadResponse ListCredential(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListCredentialOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListCredentialOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ChatV2CredentialReadResponse**](chat_v2_credentialReadResponse.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) + + +## ListInvite + +> ChatV2ServiceChannelInviteReadResponse ListInvite(ctx, serviceSid, channelSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Invite resources from. | +**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Invite resources to read belong to. This value can be the Channel resource's `sid` or `unique_name`. | + **optional** | ***ListInviteOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListInviteOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **identity** | [**optional.Interface of []string**](string.md)| The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ChatV2ServiceChannelInviteReadResponse**](chat_v2_service_channel_inviteReadResponse.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) + + +## ListMember + +> ChatV2ServiceChannelMemberReadResponse ListMember(ctx, serviceSid, channelSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Member resources from. | +**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Member resources to read belong to. This value can be the Channel resource's `sid` or `unique_name`. | + **optional** | ***ListMemberOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListMemberOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **identity** | [**optional.Interface of []string**](string.md)| The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the Member resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ChatV2ServiceChannelMemberReadResponse**](chat_v2_service_channel_memberReadResponse.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) + + +## ListMessage + +> ChatV2ServiceChannelMessageReadResponse ListMessage(ctx, serviceSid, channelSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Message resources from. | +**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Message resource to read belongs to. This value can be the Channel resource's `sid` or `unique_name`. | + **optional** | ***ListMessageOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListMessageOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **order** | **optional.String**| The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending) with `asc` as the default. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ChatV2ServiceChannelMessageReadResponse**](chat_v2_service_channel_messageReadResponse.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) + + +## ListRole + +> ChatV2ServiceRoleReadResponse ListRole(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Role resources from. | + **optional** | ***ListRoleOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListRoleOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ChatV2ServiceRoleReadResponse**](chat_v2_service_roleReadResponse.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) + + +## ListService + +> ChatV2ServiceReadResponse ListService(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListServiceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListServiceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ChatV2ServiceReadResponse**](chat_v2_serviceReadResponse.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) + + +## ListUser + +> ChatV2ServiceUserReadResponse ListUser(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the User resources from. | + **optional** | ***ListUserOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListUserOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ChatV2ServiceUserReadResponse**](chat_v2_service_userReadResponse.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) + + +## ListUserBinding + +> ChatV2ServiceUserUserBindingReadResponse ListUserBinding(ctx, serviceSid, userSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the User Binding resources from. | +**userSid** | **string**| The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) with the User Binding resources to read. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. | + **optional** | ***ListUserBindingOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListUserBindingOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **bindingType** | [**optional.Interface of []string**](string.md)| The push technology used by the User Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ChatV2ServiceUserUserBindingReadResponse**](chat_v2_service_user_user_bindingReadResponse.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) + + +## ListUserChannel + +> ChatV2ServiceUserUserChannelReadResponse ListUserChannel(ctx, serviceSid, userSid, optional) + + + +List all Channels for a given User. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the User Channel resources from. | +**userSid** | **string**| The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) to read the User Channel resources from. This value can be either the `sid` or the `identity` of the User resource. | + **optional** | ***ListUserChannelOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListUserChannelOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ChatV2ServiceUserUserChannelReadResponse**](chat_v2_service_user_user_channelReadResponse.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) + + +## UpdateChannel + +> ChatV2ServiceChannel UpdateChannel(ctx, serviceSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the Channel resource in. | +**sid** | **string**| The SID of the Channel resource to update. This value can be either the `sid` or the `unique_name` of the Channel resource to update. | + **optional** | ***UpdateChannelOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateChannelOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **attributes** | **optional.String**| A valid JSON string that contains application-specific data. | + **createdBy** | **optional.String**| The `identity` of the User that created the channel. Default is: `system`. | + **dateCreated** | **optional.Time**| The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. Note that this should only be used in cases where a Channel is being recreated from a backup/separate source. | + **dateUpdated** | **optional.Time**| The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 256 characters long. | + **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. This value must be 256 characters or less in length and unique within the Service. | + +### Return type + +[**ChatV2ServiceChannel**](chat.v2.service.channel.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) + + +## UpdateChannelWebhook + +> ChatV2ServiceChannelChannelWebhook UpdateChannelWebhook(ctx, serviceSid, channelSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel that has the Webhook resource to update. | +**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook resource to update belongs to. This value can be the Channel resource's `sid` or `unique_name`. | +**sid** | **string**| The SID of the Channel Webhook resource to update. | + **optional** | ***UpdateChannelWebhookOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateChannelWebhookOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **configurationFilters** | [**optional.Interface of []string**](string.md)| The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger). | + **configurationFlowSid** | **optional.String**| The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` = `studio`. | + **configurationMethod** | **optional.String**| The HTTP method used to call `configuration.url`. Can be: `GET` or `POST` and the default is `POST`. | + **configurationRetryCount** | **optional.Int32**| The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0. | + **configurationTriggers** | [**optional.Interface of []string**](string.md)| A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`. | + **configurationUrl** | **optional.String**| The URL of the webhook to call using the `configuration.method`. | + +### Return type + +[**ChatV2ServiceChannelChannelWebhook**](chat.v2.service.channel.channel_webhook.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) + + +## UpdateCredential + +> ChatV2Credential UpdateCredential(ctx, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Credential resource to update. | + **optional** | ***UpdateCredentialOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateCredentialOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **apiKey** | **optional.String**| [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. | + **certificate** | **optional.String**| [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== -----END CERTIFICATE-----` | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **privateKey** | **optional.String**| [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fG... -----END RSA PRIVATE KEY-----` | + **sandbox** | **optional.Bool**| [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. | + **secret** | **optional.String**| [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. | + +### Return type + +[**ChatV2Credential**](chat.v2.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) + + +## UpdateMember + +> ChatV2ServiceChannelMember UpdateMember(ctx, serviceSid, channelSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the Member resource in. | +**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Member resource to update belongs to. This value can be the Channel resource's `sid` or `unique_name`. | +**sid** | **string**| The SID of the Member resource to update. This value can be either the Member's `sid` or its `identity` value. | + **optional** | ***UpdateMemberOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateMemberOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **attributes** | **optional.String**| A valid JSON string that contains application-specific data. | + **dateCreated** | **optional.Time**| The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. Note that this parameter should only be used when a Member is being recreated from a backup/separate source. | + **dateUpdated** | **optional.Time**| The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. | + **lastConsumedMessageIndex** | **optional.Int32**| The index of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) that the Member has read within the [Channel](https://www.twilio.com/docs/chat/channels). | + **lastConsumptionTimestamp** | **optional.Time**| The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) read event for the Member within the [Channel](https://www.twilio.com/docs/chat/channels). | + **roleSid** | **optional.String**| The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/rest/service-resource). | + +### Return type + +[**ChatV2ServiceChannelMember**](chat.v2.service.channel.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) + + +## UpdateMessage + +> ChatV2ServiceChannelMessage UpdateMessage(ctx, serviceSid, channelSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the Message resource in. | +**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Message resource to update belongs to. This value can be the Channel resource's `sid` or `unique_name`. | +**sid** | **string**| The SID of the Message resource to update. | + **optional** | ***UpdateMessageOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateMessageOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **attributes** | **optional.String**| A valid JSON string that contains application-specific data. | + **body** | **optional.String**| The message to send to the channel. Can be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string. | + **dateCreated** | **optional.Time**| The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. This parameter should only be used when a Chat's history is being recreated from a backup/separate source. | + **dateUpdated** | **optional.Time**| The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. | + **from** | **optional.String**| The [Identity](https://www.twilio.com/docs/chat/identity) of the message's author. | + **lastUpdatedBy** | **optional.String**| The [Identity](https://www.twilio.com/docs/chat/identity) of the User who last updated the Message, if applicable. | + +### Return type + +[**ChatV2ServiceChannelMessage**](chat.v2.service.channel.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) + + +## UpdateRole + +> ChatV2ServiceRole UpdateRole(ctx, serviceSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the Role resource in. | +**sid** | **string**| The SID of the Role resource to update. | + **optional** | ***UpdateRoleOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateRoleOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **permission** | [**optional.Interface of []string**](string.md)| A permission that you grant to the role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. Note that the update action replaces all previously assigned permissions with those defined in the update action. To remove a permission, do not include it in the subsequent update action. The values for this parameter depend on the role's `type`. | + +### Return type + +[**ChatV2ServiceRole**](chat.v2.service.role.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) + + +## UpdateService + +> ChatV2Service UpdateService(ctx, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Service resource to update. | + **optional** | ***UpdateServiceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateServiceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **consumptionReportInterval** | **optional.Int32**| DEPRECATED. The interval in seconds between consumption reports submission batches from client endpoints. | + **defaultChannelCreatorRoleSid** | **optional.String**| The channel role assigned to a channel creator when they join a new channel. See the [Role resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info about roles. | + **defaultChannelRoleSid** | **optional.String**| The channel role assigned to users when they are added to a channel. See the [Role resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info about roles. | + **defaultServiceRoleSid** | **optional.String**| The service role assigned to users when they are added to the service. See the [Role resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info about roles. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. | + **limitsChannelMembers** | **optional.Int32**| The maximum number of Members that can be added to Channels within this Service. Can be up to 1,000. | + **limitsUserChannels** | **optional.Int32**| The maximum number of Channels Users can be a Member of within this Service. Can be up to 1,000. | + **mediaCompatibilityMessage** | **optional.String**| The message to send when a media message has no text. Can be used as placeholder message. | + **notificationsAddedToChannelEnabled** | **optional.Bool**| Whether to send a notification when a member is added to a channel. The default is `false`. | + **notificationsAddedToChannelSound** | **optional.String**| The name of the sound to play when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. | + **notificationsAddedToChannelTemplate** | **optional.String**| The template to use to create the notification text displayed when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. | + **notificationsInvitedToChannelEnabled** | **optional.Bool**| Whether to send a notification when a user is invited to a channel. The default is `false`. | + **notificationsInvitedToChannelSound** | **optional.String**| The name of the sound to play when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. | + **notificationsInvitedToChannelTemplate** | **optional.String**| The template to use to create the notification text displayed when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. | + **notificationsLogEnabled** | **optional.Bool**| Whether to log notifications. The default is `false`. | + **notificationsNewMessageBadgeCountEnabled** | **optional.Bool**| Whether the new message badge is enabled. The default is `false`. | + **notificationsNewMessageEnabled** | **optional.Bool**| Whether to send a notification when a new message is added to a channel. The default is `false`. | + **notificationsNewMessageSound** | **optional.String**| The name of the sound to play when a new message is added to a channel and `notifications.new_message.enabled` is `true`. | + **notificationsNewMessageTemplate** | **optional.String**| The template to use to create the notification text displayed when a new message is added to a channel and `notifications.new_message.enabled` is `true`. | + **notificationsRemovedFromChannelEnabled** | **optional.Bool**| Whether to send a notification to a user when they are removed from a channel. The default is `false`. | + **notificationsRemovedFromChannelSound** | **optional.String**| The name of the sound to play to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. | + **notificationsRemovedFromChannelTemplate** | **optional.String**| The template to use to create the notification text displayed to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. | + **postWebhookRetryCount** | **optional.Int32**| The number of times to retry a call to the `post_webhook_url` if the request times out (after 5 seconds) or it receives a 429, 503, or 504 HTTP response. The default is 0, which means the call won't be retried. | + **postWebhookUrl** | **optional.String**| The URL for post-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. | + **preWebhookRetryCount** | **optional.Int32**| The number of times to retry a call to the `pre_webhook_url` if the request times out (after 5 seconds) or it receives a 429, 503, or 504 HTTP response. Default retry count is 0 times, which means the call won't be retried. | + **preWebhookUrl** | **optional.String**| The URL for pre-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. | + **reachabilityEnabled** | **optional.Bool**| Whether to enable the [Reachability Indicator](https://www.twilio.com/docs/chat/reachability-indicator) for this Service instance. The default is `false`. | + **readStatusEnabled** | **optional.Bool**| Whether to enable the [Message Consumption Horizon](https://www.twilio.com/docs/chat/consumption-horizon) feature. The default is `true`. | + **typingIndicatorTimeout** | **optional.Int32**| How long in seconds after a `started typing` event until clients should assume that user is no longer typing, even if no `ended typing` message was received. The default is 5 seconds. | + **webhookFilters** | [**optional.Interface of []string**](string.md)| The list of webhook events that are enabled for this Service instance. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. | + **webhookMethod** | **optional.String**| The HTTP method to use for calls to the `pre_webhook_url` and `post_webhook_url` webhooks. Can be: `POST` or `GET` and the default is `POST`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. | + +### Return type + +[**ChatV2Service**](chat.v2.service.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) + + +## UpdateUser + +> ChatV2ServiceUser UpdateUser(ctx, serviceSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the User resource in. | +**sid** | **string**| The SID of the User resource to update. This value can be either the `sid` or the `identity` of the User resource to update. | + **optional** | ***UpdateUserOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateUserOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **attributes** | **optional.String**| A valid JSON string that contains application-specific data. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is often used for display purposes. | + **roleSid** | **optional.String**| The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the User. | + +### Return type + +[**ChatV2ServiceUser**](chat.v2.service.user.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) + + +## UpdateUserChannel + +> ChatV2ServiceUserUserChannel UpdateUserChannel(ctx, serviceSid, userSid, channelSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the User Channel resource in. | +**userSid** | **string**| The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) to update the User Channel resource from. This value can be either the `sid` or the `identity` of the User resource. | +**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) with the User Channel resource to update. This value can be the Channel resource's `sid` or `unique_name`. | + **optional** | ***UpdateUserChannelOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateUserChannelOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **lastConsumedMessageIndex** | **optional.Int32**| The index of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) in the [Channel](https://www.twilio.com/docs/chat/channels) that the Member has read. | + **lastConsumptionTimestamp** | **optional.Time**| The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) read event for the Member within the [Channel](https://www.twilio.com/docs/chat/channels). | + **notificationLevel** | **optional.String**| The push notification level to assign to the User Channel. Can be: `default` or `muted`. | + +### Return type + +[**ChatV2ServiceUserUserChannel**](chat.v2.service.user.user_channel.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/rest/chat/v2/docs/UpdateChannelRequest.md b/rest/chat/v2/docs/UpdateChannelRequest.md new file mode 100644 index 000000000..24ab633e8 --- /dev/null +++ b/rest/chat/v2/docs/UpdateChannelRequest.md @@ -0,0 +1,16 @@ +# UpdateChannelRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | A valid JSON string that contains application-specific data. | [optional] +**CreatedBy** | **string** | The `identity` of the User that created the channel. Default is: `system`. | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. Note that this should only be used in cases where a Channel is being recreated from a backup/separate source. | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It can be up to 256 characters long. | [optional] +**UniqueName** | **string** | An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. This value must be 256 characters or less in length and unique within the Service. | [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/rest/chat/v2/docs/UpdateChannelWebhookRequest.md b/rest/chat/v2/docs/UpdateChannelWebhookRequest.md new file mode 100644 index 000000000..a70fc987f --- /dev/null +++ b/rest/chat/v2/docs/UpdateChannelWebhookRequest.md @@ -0,0 +1,16 @@ +# UpdateChannelWebhookRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConfigurationFilters** | **[]string** | The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger). | [optional] +**ConfigurationFlowSid** | **string** | The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` = `studio`. | [optional] +**ConfigurationMethod** | **string** | The HTTP method used to call `configuration.url`. Can be: `GET` or `POST` and the default is `POST`. | [optional] +**ConfigurationRetryCount** | **int32** | The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0. | [optional] +**ConfigurationTriggers** | **[]string** | A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`. | [optional] +**ConfigurationUrl** | **string** | The URL of the webhook to call using the `configuration.method`. | [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/rest/chat/v2/docs/UpdateCredentialRequest.md b/rest/chat/v2/docs/UpdateCredentialRequest.md new file mode 100644 index 000000000..10b2dc102 --- /dev/null +++ b/rest/chat/v2/docs/UpdateCredentialRequest.md @@ -0,0 +1,16 @@ +# UpdateCredentialRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiKey** | **string** | [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. | [optional] +**Certificate** | **string** | [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== -----END CERTIFICATE-----` | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | [optional] +**PrivateKey** | **string** | [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fG... -----END RSA PRIVATE KEY-----` | [optional] +**Sandbox** | **bool** | [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. | [optional] +**Secret** | **string** | [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. | [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/rest/chat/v2/docs/UpdateMemberRequest.md b/rest/chat/v2/docs/UpdateMemberRequest.md new file mode 100644 index 000000000..bc1839faa --- /dev/null +++ b/rest/chat/v2/docs/UpdateMemberRequest.md @@ -0,0 +1,16 @@ +# UpdateMemberRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | A valid JSON string that contains application-specific data. | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. Note that this parameter should only be used when a Member is being recreated from a backup/separate source. | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. | [optional] +**LastConsumedMessageIndex** | Pointer to **int32** | The index of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) that the Member has read within the [Channel](https://www.twilio.com/docs/chat/channels). | [optional] +**LastConsumptionTimestamp** | [**time.Time**](time.Time.md) | The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) read event for the Member within the [Channel](https://www.twilio.com/docs/chat/channels). | [optional] +**RoleSid** | **string** | The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/rest/service-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/rest/chat/v2/docs/UpdateMessageRequest.md b/rest/chat/v2/docs/UpdateMessageRequest.md new file mode 100644 index 000000000..7e6485918 --- /dev/null +++ b/rest/chat/v2/docs/UpdateMessageRequest.md @@ -0,0 +1,16 @@ +# UpdateMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | A valid JSON string that contains application-specific data. | [optional] +**Body** | **string** | The message to send to the channel. Can be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string. | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. This parameter should only be used when a Chat's history is being recreated from a backup/separate source. | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. | [optional] +**From** | **string** | The [Identity](https://www.twilio.com/docs/chat/identity) of the message's author. | [optional] +**LastUpdatedBy** | **string** | The [Identity](https://www.twilio.com/docs/chat/identity) of the User who last updated the Message, if applicable. | [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/rest/chat/v2/docs/UpdateRoleRequest.md b/rest/chat/v2/docs/UpdateRoleRequest.md new file mode 100644 index 000000000..6482ab20c --- /dev/null +++ b/rest/chat/v2/docs/UpdateRoleRequest.md @@ -0,0 +1,11 @@ +# UpdateRoleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Permission** | **[]string** | A permission that you grant to the role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. Note that the update action replaces all previously assigned permissions with those defined in the update action. To remove a permission, do not include it in the subsequent update action. The values for this parameter depend on the role's `type`. | + +[[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/rest/chat/v2/docs/UpdateServiceRequest.md b/rest/chat/v2/docs/UpdateServiceRequest.md new file mode 100644 index 000000000..9886b12ce --- /dev/null +++ b/rest/chat/v2/docs/UpdateServiceRequest.md @@ -0,0 +1,41 @@ +# UpdateServiceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConsumptionReportInterval** | **int32** | DEPRECATED. The interval in seconds between consumption reports submission batches from client endpoints. | [optional] +**DefaultChannelCreatorRoleSid** | **string** | The channel role assigned to a channel creator when they join a new channel. See the [Role resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info about roles. | [optional] +**DefaultChannelRoleSid** | **string** | The channel role assigned to users when they are added to a channel. See the [Role resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info about roles. | [optional] +**DefaultServiceRoleSid** | **string** | The service role assigned to users when they are added to the service. See the [Role resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info about roles. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. | [optional] +**LimitsChannelMembers** | **int32** | The maximum number of Members that can be added to Channels within this Service. Can be up to 1,000. | [optional] +**LimitsUserChannels** | **int32** | The maximum number of Channels Users can be a Member of within this Service. Can be up to 1,000. | [optional] +**MediaCompatibilityMessage** | **string** | The message to send when a media message has no text. Can be used as placeholder message. | [optional] +**NotificationsAddedToChannelEnabled** | **bool** | Whether to send a notification when a member is added to a channel. The default is `false`. | [optional] +**NotificationsAddedToChannelSound** | **string** | The name of the sound to play when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. | [optional] +**NotificationsAddedToChannelTemplate** | **string** | The template to use to create the notification text displayed when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. | [optional] +**NotificationsInvitedToChannelEnabled** | **bool** | Whether to send a notification when a user is invited to a channel. The default is `false`. | [optional] +**NotificationsInvitedToChannelSound** | **string** | The name of the sound to play when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. | [optional] +**NotificationsInvitedToChannelTemplate** | **string** | The template to use to create the notification text displayed when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. | [optional] +**NotificationsLogEnabled** | **bool** | Whether to log notifications. The default is `false`. | [optional] +**NotificationsNewMessageBadgeCountEnabled** | **bool** | Whether the new message badge is enabled. The default is `false`. | [optional] +**NotificationsNewMessageEnabled** | **bool** | Whether to send a notification when a new message is added to a channel. The default is `false`. | [optional] +**NotificationsNewMessageSound** | **string** | The name of the sound to play when a new message is added to a channel and `notifications.new_message.enabled` is `true`. | [optional] +**NotificationsNewMessageTemplate** | **string** | The template to use to create the notification text displayed when a new message is added to a channel and `notifications.new_message.enabled` is `true`. | [optional] +**NotificationsRemovedFromChannelEnabled** | **bool** | Whether to send a notification to a user when they are removed from a channel. The default is `false`. | [optional] +**NotificationsRemovedFromChannelSound** | **string** | The name of the sound to play to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. | [optional] +**NotificationsRemovedFromChannelTemplate** | **string** | The template to use to create the notification text displayed to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. | [optional] +**PostWebhookRetryCount** | **int32** | The number of times to retry a call to the `post_webhook_url` if the request times out (after 5 seconds) or it receives a 429, 503, or 504 HTTP response. The default is 0, which means the call won't be retried. | [optional] +**PostWebhookUrl** | **string** | The URL for post-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. | [optional] +**PreWebhookRetryCount** | **int32** | The number of times to retry a call to the `pre_webhook_url` if the request times out (after 5 seconds) or it receives a 429, 503, or 504 HTTP response. Default retry count is 0 times, which means the call won't be retried. | [optional] +**PreWebhookUrl** | **string** | The URL for pre-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. | [optional] +**ReachabilityEnabled** | **bool** | Whether to enable the [Reachability Indicator](https://www.twilio.com/docs/chat/reachability-indicator) for this Service instance. The default is `false`. | [optional] +**ReadStatusEnabled** | **bool** | Whether to enable the [Message Consumption Horizon](https://www.twilio.com/docs/chat/consumption-horizon) feature. The default is `true`. | [optional] +**TypingIndicatorTimeout** | **int32** | How long in seconds after a `started typing` event until clients should assume that user is no longer typing, even if no `ended typing` message was received. The default is 5 seconds. | [optional] +**WebhookFilters** | **[]string** | The list of webhook events that are enabled for this Service instance. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. | [optional] +**WebhookMethod** | **string** | The HTTP method to use for calls to the `pre_webhook_url` and `post_webhook_url` webhooks. Can be: `POST` or `GET` and the default is `POST`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. | [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/rest/chat/v2/docs/UpdateUserChannelRequest.md b/rest/chat/v2/docs/UpdateUserChannelRequest.md new file mode 100644 index 000000000..eb8e46cdc --- /dev/null +++ b/rest/chat/v2/docs/UpdateUserChannelRequest.md @@ -0,0 +1,13 @@ +# UpdateUserChannelRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LastConsumedMessageIndex** | Pointer to **int32** | The index of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) in the [Channel](https://www.twilio.com/docs/chat/channels) that the Member has read. | [optional] +**LastConsumptionTimestamp** | [**time.Time**](time.Time.md) | The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) read event for the Member within the [Channel](https://www.twilio.com/docs/chat/channels). | [optional] +**NotificationLevel** | **string** | The push notification level to assign to the User Channel. Can be: `default` or `muted`. | [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/rest/chat/v2/docs/UpdateUserRequest.md b/rest/chat/v2/docs/UpdateUserRequest.md new file mode 100644 index 000000000..1c2fefc2a --- /dev/null +++ b/rest/chat/v2/docs/UpdateUserRequest.md @@ -0,0 +1,13 @@ +# UpdateUserRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | A valid JSON string that contains application-specific data. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It is often used for display purposes. | [optional] +**RoleSid** | **string** | The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the User. | [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/rest/chat/v2/model_chat_v2_credential.go b/rest/chat/v2/model_chat_v2_credential.go new file mode 100644 index 000000000..e6221b960 --- /dev/null +++ b/rest/chat/v2/model_chat_v2_credential.go @@ -0,0 +1,25 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ChatV2Credential struct for ChatV2Credential +type ChatV2Credential struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Sandbox string `json:"sandbox,omitempty"` + Sid string `json:"sid,omitempty"` + Type string `json:"type,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/chat/v2/model_chat_v2_credential_read_response.go b/rest/chat/v2/model_chat_v2_credential_read_response.go new file mode 100644 index 000000000..e11a0e477 --- /dev/null +++ b/rest/chat/v2/model_chat_v2_credential_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ChatV2CredentialReadResponse struct for ChatV2CredentialReadResponse +type ChatV2CredentialReadResponse struct { + Credentials []ChatV2Credential `json:"credentials,omitempty"` + Meta ChatV2CredentialReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/chat/v2/model_chat_v2_credential_read_response_meta.go b/rest/chat/v2/model_chat_v2_credential_read_response_meta.go new file mode 100644 index 000000000..56c923fa1 --- /dev/null +++ b/rest/chat/v2/model_chat_v2_credential_read_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ChatV2CredentialReadResponseMeta struct for ChatV2CredentialReadResponseMeta +type ChatV2CredentialReadResponseMeta struct { + FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` + NextPageUrl string `json:"next_page_url,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUrl string `json:"previous_page_url,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/chat/v2/model_chat_v2_service.go b/rest/chat/v2/model_chat_v2_service.go new file mode 100644 index 000000000..522de53b6 --- /dev/null +++ b/rest/chat/v2/model_chat_v2_service.go @@ -0,0 +1,40 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ChatV2Service struct for ChatV2Service +type ChatV2Service struct { + AccountSid string `json:"account_sid,omitempty"` + ConsumptionReportInterval int32 `json:"consumption_report_interval,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + DefaultChannelCreatorRoleSid string `json:"default_channel_creator_role_sid,omitempty"` + DefaultChannelRoleSid string `json:"default_channel_role_sid,omitempty"` + DefaultServiceRoleSid string `json:"default_service_role_sid,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Limits map[string]interface{} `json:"limits,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Media map[string]interface{} `json:"media,omitempty"` + Notifications map[string]interface{} `json:"notifications,omitempty"` + PostWebhookRetryCount int32 `json:"post_webhook_retry_count,omitempty"` + PostWebhookUrl string `json:"post_webhook_url,omitempty"` + PreWebhookRetryCount int32 `json:"pre_webhook_retry_count,omitempty"` + PreWebhookUrl string `json:"pre_webhook_url,omitempty"` + ReachabilityEnabled bool `json:"reachability_enabled,omitempty"` + ReadStatusEnabled bool `json:"read_status_enabled,omitempty"` + Sid string `json:"sid,omitempty"` + TypingIndicatorTimeout int32 `json:"typing_indicator_timeout,omitempty"` + Url string `json:"url,omitempty"` + WebhookFilters []string `json:"webhook_filters,omitempty"` + WebhookMethod string `json:"webhook_method,omitempty"` +} diff --git a/rest/chat/v2/model_chat_v2_service_binding.go b/rest/chat/v2/model_chat_v2_service_binding.go new file mode 100644 index 000000000..cdae7e25f --- /dev/null +++ b/rest/chat/v2/model_chat_v2_service_binding.go @@ -0,0 +1,29 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ChatV2ServiceBinding struct for ChatV2ServiceBinding +type ChatV2ServiceBinding struct { + AccountSid string `json:"account_sid,omitempty"` + BindingType string `json:"binding_type,omitempty"` + CredentialSid string `json:"credential_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Endpoint string `json:"endpoint,omitempty"` + Identity string `json:"identity,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + MessageTypes []string `json:"message_types,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/chat/v2/model_chat_v2_service_binding_read_response.go b/rest/chat/v2/model_chat_v2_service_binding_read_response.go new file mode 100644 index 000000000..9f8e5e637 --- /dev/null +++ b/rest/chat/v2/model_chat_v2_service_binding_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ChatV2ServiceBindingReadResponse struct for ChatV2ServiceBindingReadResponse +type ChatV2ServiceBindingReadResponse struct { + Bindings []ChatV2ServiceBinding `json:"bindings,omitempty"` + Meta ChatV2CredentialReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/chat/v2/model_chat_v2_service_channel.go b/rest/chat/v2/model_chat_v2_service_channel.go new file mode 100644 index 000000000..4dd7e75c5 --- /dev/null +++ b/rest/chat/v2/model_chat_v2_service_channel.go @@ -0,0 +1,31 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ChatV2ServiceChannel struct for ChatV2ServiceChannel +type ChatV2ServiceChannel struct { + AccountSid string `json:"account_sid,omitempty"` + Attributes string `json:"attributes,omitempty"` + CreatedBy string `json:"created_by,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + MembersCount int32 `json:"members_count,omitempty"` + MessagesCount int32 `json:"messages_count,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Type string `json:"type,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/chat/v2/model_chat_v2_service_channel_channel_webhook.go b/rest/chat/v2/model_chat_v2_service_channel_channel_webhook.go new file mode 100644 index 000000000..87c593e5b --- /dev/null +++ b/rest/chat/v2/model_chat_v2_service_channel_channel_webhook.go @@ -0,0 +1,26 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ChatV2ServiceChannelChannelWebhook struct for ChatV2ServiceChannelChannelWebhook +type ChatV2ServiceChannelChannelWebhook struct { + AccountSid string `json:"account_sid,omitempty"` + ChannelSid string `json:"channel_sid,omitempty"` + Configuration map[string]interface{} `json:"configuration,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Type string `json:"type,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/chat/v2/model_chat_v2_service_channel_channel_webhook_read_response.go b/rest/chat/v2/model_chat_v2_service_channel_channel_webhook_read_response.go new file mode 100644 index 000000000..b27151944 --- /dev/null +++ b/rest/chat/v2/model_chat_v2_service_channel_channel_webhook_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ChatV2ServiceChannelChannelWebhookReadResponse struct for ChatV2ServiceChannelChannelWebhookReadResponse +type ChatV2ServiceChannelChannelWebhookReadResponse struct { + Meta ChatV2CredentialReadResponseMeta `json:"meta,omitempty"` + Webhooks []ChatV2ServiceChannelChannelWebhook `json:"webhooks,omitempty"` +} diff --git a/rest/chat/v2/model_chat_v2_service_channel_invite.go b/rest/chat/v2/model_chat_v2_service_channel_invite.go new file mode 100644 index 000000000..d280b3e5c --- /dev/null +++ b/rest/chat/v2/model_chat_v2_service_channel_invite.go @@ -0,0 +1,27 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ChatV2ServiceChannelInvite struct for ChatV2ServiceChannelInvite +type ChatV2ServiceChannelInvite struct { + AccountSid string `json:"account_sid,omitempty"` + ChannelSid string `json:"channel_sid,omitempty"` + CreatedBy string `json:"created_by,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Identity string `json:"identity,omitempty"` + RoleSid string `json:"role_sid,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/chat/v2/model_chat_v2_service_channel_invite_read_response.go b/rest/chat/v2/model_chat_v2_service_channel_invite_read_response.go new file mode 100644 index 000000000..f5eae68df --- /dev/null +++ b/rest/chat/v2/model_chat_v2_service_channel_invite_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ChatV2ServiceChannelInviteReadResponse struct for ChatV2ServiceChannelInviteReadResponse +type ChatV2ServiceChannelInviteReadResponse struct { + Invites []ChatV2ServiceChannelInvite `json:"invites,omitempty"` + Meta ChatV2CredentialReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/chat/v2/model_chat_v2_service_channel_member.go b/rest/chat/v2/model_chat_v2_service_channel_member.go new file mode 100644 index 000000000..952ed554b --- /dev/null +++ b/rest/chat/v2/model_chat_v2_service_channel_member.go @@ -0,0 +1,29 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ChatV2ServiceChannelMember struct for ChatV2ServiceChannelMember +type ChatV2ServiceChannelMember struct { + AccountSid string `json:"account_sid,omitempty"` + Attributes string `json:"attributes,omitempty"` + ChannelSid string `json:"channel_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Identity string `json:"identity,omitempty"` + LastConsumedMessageIndex *int32 `json:"last_consumed_message_index,omitempty"` + LastConsumptionTimestamp time.Time `json:"last_consumption_timestamp,omitempty"` + RoleSid string `json:"role_sid,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/chat/v2/model_chat_v2_service_channel_member_read_response.go b/rest/chat/v2/model_chat_v2_service_channel_member_read_response.go new file mode 100644 index 000000000..4675eb796 --- /dev/null +++ b/rest/chat/v2/model_chat_v2_service_channel_member_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ChatV2ServiceChannelMemberReadResponse struct for ChatV2ServiceChannelMemberReadResponse +type ChatV2ServiceChannelMemberReadResponse struct { + Members []ChatV2ServiceChannelMember `json:"members,omitempty"` + Meta ChatV2CredentialReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/chat/v2/model_chat_v2_service_channel_message.go b/rest/chat/v2/model_chat_v2_service_channel_message.go new file mode 100644 index 000000000..7dbb3bc65 --- /dev/null +++ b/rest/chat/v2/model_chat_v2_service_channel_message.go @@ -0,0 +1,33 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ChatV2ServiceChannelMessage struct for ChatV2ServiceChannelMessage +type ChatV2ServiceChannelMessage struct { + AccountSid string `json:"account_sid,omitempty"` + Attributes string `json:"attributes,omitempty"` + Body string `json:"body,omitempty"` + ChannelSid string `json:"channel_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + From string `json:"from,omitempty"` + Index int32 `json:"index,omitempty"` + LastUpdatedBy string `json:"last_updated_by,omitempty"` + Media map[string]interface{} `json:"media,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + To string `json:"to,omitempty"` + Type string `json:"type,omitempty"` + Url string `json:"url,omitempty"` + WasEdited bool `json:"was_edited,omitempty"` +} diff --git a/rest/chat/v2/model_chat_v2_service_channel_message_read_response.go b/rest/chat/v2/model_chat_v2_service_channel_message_read_response.go new file mode 100644 index 000000000..567211b84 --- /dev/null +++ b/rest/chat/v2/model_chat_v2_service_channel_message_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ChatV2ServiceChannelMessageReadResponse struct for ChatV2ServiceChannelMessageReadResponse +type ChatV2ServiceChannelMessageReadResponse struct { + Messages []ChatV2ServiceChannelMessage `json:"messages,omitempty"` + Meta ChatV2CredentialReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/chat/v2/model_chat_v2_service_channel_read_response.go b/rest/chat/v2/model_chat_v2_service_channel_read_response.go new file mode 100644 index 000000000..f70f62abe --- /dev/null +++ b/rest/chat/v2/model_chat_v2_service_channel_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ChatV2ServiceChannelReadResponse struct for ChatV2ServiceChannelReadResponse +type ChatV2ServiceChannelReadResponse struct { + Channels []ChatV2ServiceChannel `json:"channels,omitempty"` + Meta ChatV2CredentialReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/chat/v2/model_chat_v2_service_read_response.go b/rest/chat/v2/model_chat_v2_service_read_response.go new file mode 100644 index 000000000..9b4fe980b --- /dev/null +++ b/rest/chat/v2/model_chat_v2_service_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ChatV2ServiceReadResponse struct for ChatV2ServiceReadResponse +type ChatV2ServiceReadResponse struct { + Meta ChatV2CredentialReadResponseMeta `json:"meta,omitempty"` + Services []ChatV2Service `json:"services,omitempty"` +} diff --git a/rest/chat/v2/model_chat_v2_service_role.go b/rest/chat/v2/model_chat_v2_service_role.go new file mode 100644 index 000000000..584881943 --- /dev/null +++ b/rest/chat/v2/model_chat_v2_service_role.go @@ -0,0 +1,26 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ChatV2ServiceRole struct for ChatV2ServiceRole +type ChatV2ServiceRole struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Permissions []string `json:"permissions,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Type string `json:"type,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/chat/v2/model_chat_v2_service_role_read_response.go b/rest/chat/v2/model_chat_v2_service_role_read_response.go new file mode 100644 index 000000000..5f2953a55 --- /dev/null +++ b/rest/chat/v2/model_chat_v2_service_role_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ChatV2ServiceRoleReadResponse struct for ChatV2ServiceRoleReadResponse +type ChatV2ServiceRoleReadResponse struct { + Meta ChatV2CredentialReadResponseMeta `json:"meta,omitempty"` + Roles []ChatV2ServiceRole `json:"roles,omitempty"` +} diff --git a/rest/chat/v2/model_chat_v2_service_user.go b/rest/chat/v2/model_chat_v2_service_user.go new file mode 100644 index 000000000..79f460ef3 --- /dev/null +++ b/rest/chat/v2/model_chat_v2_service_user.go @@ -0,0 +1,31 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ChatV2ServiceUser struct for ChatV2ServiceUser +type ChatV2ServiceUser struct { + AccountSid string `json:"account_sid,omitempty"` + Attributes string `json:"attributes,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Identity string `json:"identity,omitempty"` + IsNotifiable bool `json:"is_notifiable,omitempty"` + IsOnline bool `json:"is_online,omitempty"` + JoinedChannelsCount int32 `json:"joined_channels_count,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + RoleSid string `json:"role_sid,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/chat/v2/model_chat_v2_service_user_read_response.go b/rest/chat/v2/model_chat_v2_service_user_read_response.go new file mode 100644 index 000000000..0e45b9f12 --- /dev/null +++ b/rest/chat/v2/model_chat_v2_service_user_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ChatV2ServiceUserReadResponse struct for ChatV2ServiceUserReadResponse +type ChatV2ServiceUserReadResponse struct { + Meta ChatV2CredentialReadResponseMeta `json:"meta,omitempty"` + Users []ChatV2ServiceUser `json:"users,omitempty"` +} diff --git a/rest/chat/v2/model_chat_v2_service_user_user_binding.go b/rest/chat/v2/model_chat_v2_service_user_user_binding.go new file mode 100644 index 000000000..3758a29a2 --- /dev/null +++ b/rest/chat/v2/model_chat_v2_service_user_user_binding.go @@ -0,0 +1,29 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ChatV2ServiceUserUserBinding struct for ChatV2ServiceUserUserBinding +type ChatV2ServiceUserUserBinding struct { + AccountSid string `json:"account_sid,omitempty"` + BindingType string `json:"binding_type,omitempty"` + CredentialSid string `json:"credential_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Endpoint string `json:"endpoint,omitempty"` + Identity string `json:"identity,omitempty"` + MessageTypes []string `json:"message_types,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` + UserSid string `json:"user_sid,omitempty"` +} diff --git a/rest/chat/v2/model_chat_v2_service_user_user_binding_read_response.go b/rest/chat/v2/model_chat_v2_service_user_user_binding_read_response.go new file mode 100644 index 000000000..65bd02a3f --- /dev/null +++ b/rest/chat/v2/model_chat_v2_service_user_user_binding_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ChatV2ServiceUserUserBindingReadResponse struct for ChatV2ServiceUserUserBindingReadResponse +type ChatV2ServiceUserUserBindingReadResponse struct { + Bindings []ChatV2ServiceUserUserBinding `json:"bindings,omitempty"` + Meta ChatV2CredentialReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/chat/v2/model_chat_v2_service_user_user_channel.go b/rest/chat/v2/model_chat_v2_service_user_user_channel.go new file mode 100644 index 000000000..5432dfe20 --- /dev/null +++ b/rest/chat/v2/model_chat_v2_service_user_user_channel.go @@ -0,0 +1,25 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ChatV2ServiceUserUserChannel struct for ChatV2ServiceUserUserChannel +type ChatV2ServiceUserUserChannel struct { + AccountSid string `json:"account_sid,omitempty"` + ChannelSid string `json:"channel_sid,omitempty"` + LastConsumedMessageIndex *int32 `json:"last_consumed_message_index,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + MemberSid string `json:"member_sid,omitempty"` + NotificationLevel string `json:"notification_level,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Status string `json:"status,omitempty"` + UnreadMessagesCount *int32 `json:"unread_messages_count,omitempty"` + Url string `json:"url,omitempty"` + UserSid string `json:"user_sid,omitempty"` +} diff --git a/rest/chat/v2/model_chat_v2_service_user_user_channel_read_response.go b/rest/chat/v2/model_chat_v2_service_user_user_channel_read_response.go new file mode 100644 index 000000000..405c45937 --- /dev/null +++ b/rest/chat/v2/model_chat_v2_service_user_user_channel_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ChatV2ServiceUserUserChannelReadResponse struct for ChatV2ServiceUserUserChannelReadResponse +type ChatV2ServiceUserUserChannelReadResponse struct { + Channels []ChatV2ServiceUserUserChannel `json:"channels,omitempty"` + Meta ChatV2CredentialReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/chat/v2/model_create_channel_request.go b/rest/chat/v2/model_create_channel_request.go new file mode 100644 index 000000000..661e94efd --- /dev/null +++ b/rest/chat/v2/model_create_channel_request.go @@ -0,0 +1,31 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// CreateChannelRequest struct for CreateChannelRequest +type CreateChannelRequest struct { + // A valid JSON string that contains application-specific data. + Attributes string `json:"Attributes,omitempty"` + // The `identity` of the User that created the channel. Default is: `system`. + CreatedBy string `json:"CreatedBy,omitempty"` + // The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. Note that this should only be used in cases where a Channel is being recreated from a backup/separate source. + DateCreated time.Time `json:"DateCreated,omitempty"` + // The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. The default value is `null`. Note that this parameter should only be used in cases where a Channel is being recreated from a backup/separate source and where a Message was previously updated. + DateUpdated time.Time `json:"DateUpdated,omitempty"` + // A descriptive string that you create to describe the new resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // The visibility of the channel. Can be: `public` or `private` and defaults to `public`. + Type string `json:"Type,omitempty"` + // An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the Channel resource's `sid` in the URL. This value must be 64 characters or less in length and be unique within the Service. + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/chat/v2/model_create_channel_webhook_request.go b/rest/chat/v2/model_create_channel_webhook_request.go new file mode 100644 index 000000000..8abff84e7 --- /dev/null +++ b/rest/chat/v2/model_create_channel_webhook_request.go @@ -0,0 +1,28 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateChannelWebhookRequest struct for CreateChannelWebhookRequest +type CreateChannelWebhookRequest struct { + // The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger). + ConfigurationFilters []string `json:"Configuration.Filters,omitempty"` + // The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` is `studio`. + ConfigurationFlowSid string `json:"Configuration.FlowSid,omitempty"` + // The HTTP method used to call `configuration.url`. Can be: `GET` or `POST` and the default is `POST`. + ConfigurationMethod string `json:"Configuration.Method,omitempty"` + // The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0. + ConfigurationRetryCount int32 `json:"Configuration.RetryCount,omitempty"` + // A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`. + ConfigurationTriggers []string `json:"Configuration.Triggers,omitempty"` + // The URL of the webhook to call using the `configuration.method`. + ConfigurationUrl string `json:"Configuration.Url,omitempty"` + // The type of webhook. Can be: `webhook`, `studio`, or `trigger`. + Type string `json:"Type"` +} diff --git a/rest/chat/v2/model_create_credential_request.go b/rest/chat/v2/model_create_credential_request.go new file mode 100644 index 000000000..469f3a297 --- /dev/null +++ b/rest/chat/v2/model_create_credential_request.go @@ -0,0 +1,28 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateCredentialRequest struct for CreateCredentialRequest +type CreateCredentialRequest struct { + // [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. + ApiKey string `json:"ApiKey,omitempty"` + // [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== -----END CERTIFICATE-----` + Certificate string `json:"Certificate,omitempty"` + // A descriptive string that you create to describe the new resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fG... -----END RSA PRIVATE KEY-----` + PrivateKey string `json:"PrivateKey,omitempty"` + // [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. + Sandbox bool `json:"Sandbox,omitempty"` + // [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. + Secret string `json:"Secret,omitempty"` + // The type of push-notification service the credential is for. Can be: `gcm`, `fcm`, or `apn`. + Type string `json:"Type"` +} diff --git a/rest/chat/v2/model_create_invite_request.go b/rest/chat/v2/model_create_invite_request.go new file mode 100644 index 000000000..7a138406e --- /dev/null +++ b/rest/chat/v2/model_create_invite_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateInviteRequest struct for CreateInviteRequest +type CreateInviteRequest struct { + // The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/chat/rest/service-resource). See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more info. + Identity string `json:"Identity"` + // The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) assigned to the new member. + RoleSid string `json:"RoleSid,omitempty"` +} diff --git a/rest/chat/v2/model_create_member_request.go b/rest/chat/v2/model_create_member_request.go new file mode 100644 index 000000000..d1ee6ebd7 --- /dev/null +++ b/rest/chat/v2/model_create_member_request.go @@ -0,0 +1,31 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// CreateMemberRequest struct for CreateMemberRequest +type CreateMemberRequest struct { + // A valid JSON string that contains application-specific data. + Attributes string `json:"Attributes,omitempty"` + // The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. Note that this parameter should only be used when a Member is being recreated from a backup/separate source. + DateCreated time.Time `json:"DateCreated,omitempty"` + // The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. The default value is `null`. Note that this parameter should only be used when a Member is being recreated from a backup/separate source and where a Member was previously updated. + DateUpdated time.Time `json:"DateUpdated,omitempty"` + // The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/chat/rest/service-resource). See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more info. + Identity string `json:"Identity"` + // The index of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) in the [Channel](https://www.twilio.com/docs/chat/channels) that the Member has read. This parameter should only be used when recreating a Member from a backup/separate source. + LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` + // The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) read event for the Member within the [Channel](https://www.twilio.com/docs/chat/channels). + LastConsumptionTimestamp time.Time `json:"LastConsumptionTimestamp,omitempty"` + // The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/rest/service-resource). + RoleSid string `json:"RoleSid,omitempty"` +} diff --git a/rest/chat/v2/model_create_message_request.go b/rest/chat/v2/model_create_message_request.go new file mode 100644 index 000000000..a00c63b4a --- /dev/null +++ b/rest/chat/v2/model_create_message_request.go @@ -0,0 +1,31 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// CreateMessageRequest struct for CreateMessageRequest +type CreateMessageRequest struct { + // A valid JSON string that contains application-specific data. + Attributes string `json:"Attributes,omitempty"` + // The message to send to the channel. Can be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string. + Body string `json:"Body,omitempty"` + // The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. This parameter should only be used when a Chat's history is being recreated from a backup/separate source. + DateCreated time.Time `json:"DateCreated,omitempty"` + // The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. + DateUpdated time.Time `json:"DateUpdated,omitempty"` + // The [Identity](https://www.twilio.com/docs/chat/identity) of the new message's author. The default value is `system`. + From string `json:"From,omitempty"` + // The [Identity](https://www.twilio.com/docs/chat/identity) of the User who last updated the Message, if applicable. + LastUpdatedBy string `json:"LastUpdatedBy,omitempty"` + // The SID of the [Media](https://www.twilio.com/docs/chat/rest/media) to attach to the new Message. + MediaSid string `json:"MediaSid,omitempty"` +} diff --git a/rest/chat/v2/model_create_role_request.go b/rest/chat/v2/model_create_role_request.go new file mode 100644 index 000000000..d37a84894 --- /dev/null +++ b/rest/chat/v2/model_create_role_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateRoleRequest struct for CreateRoleRequest +type CreateRoleRequest struct { + // A descriptive string that you create to describe the new resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName"` + // A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type`. + Permission []string `json:"Permission"` + // The type of role. Can be: `channel` for [Channel](https://www.twilio.com/docs/chat/channels) roles or `deployment` for [Service](https://www.twilio.com/docs/chat/rest/service-resource) roles. + Type string `json:"Type"` +} diff --git a/rest/chat/v2/model_create_service_request.go b/rest/chat/v2/model_create_service_request.go new file mode 100644 index 000000000..a12d8a7cb --- /dev/null +++ b/rest/chat/v2/model_create_service_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateServiceRequest struct for CreateServiceRequest +type CreateServiceRequest struct { + // A descriptive string that you create to describe the new resource. + FriendlyName string `json:"FriendlyName"` +} diff --git a/rest/chat/v2/model_create_user_request.go b/rest/chat/v2/model_create_user_request.go new file mode 100644 index 000000000..4c5ef886f --- /dev/null +++ b/rest/chat/v2/model_create_user_request.go @@ -0,0 +1,22 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateUserRequest struct for CreateUserRequest +type CreateUserRequest struct { + // A valid JSON string that contains application-specific data. + Attributes string `json:"Attributes,omitempty"` + // A descriptive string that you create to describe the new resource. This value is often used for display purposes. + FriendlyName string `json:"FriendlyName,omitempty"` + // The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/chat/rest/service-resource). This value is often a username or email address. See the Identity documentation for more info. + Identity string `json:"Identity"` + // The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the new User. + RoleSid string `json:"RoleSid,omitempty"` +} diff --git a/rest/chat/v2/model_update_channel_request.go b/rest/chat/v2/model_update_channel_request.go new file mode 100644 index 000000000..798177f82 --- /dev/null +++ b/rest/chat/v2/model_update_channel_request.go @@ -0,0 +1,29 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// UpdateChannelRequest struct for UpdateChannelRequest +type UpdateChannelRequest struct { + // A valid JSON string that contains application-specific data. + Attributes string `json:"Attributes,omitempty"` + // The `identity` of the User that created the channel. Default is: `system`. + CreatedBy string `json:"CreatedBy,omitempty"` + // The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. Note that this should only be used in cases where a Channel is being recreated from a backup/separate source. + DateCreated time.Time `json:"DateCreated,omitempty"` + // The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. + DateUpdated time.Time `json:"DateUpdated,omitempty"` + // A descriptive string that you create to describe the resource. It can be up to 256 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. This value must be 256 characters or less in length and unique within the Service. + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/chat/v2/model_update_channel_webhook_request.go b/rest/chat/v2/model_update_channel_webhook_request.go new file mode 100644 index 000000000..bce8ba0e1 --- /dev/null +++ b/rest/chat/v2/model_update_channel_webhook_request.go @@ -0,0 +1,26 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateChannelWebhookRequest struct for UpdateChannelWebhookRequest +type UpdateChannelWebhookRequest struct { + // The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger). + ConfigurationFilters []string `json:"Configuration.Filters,omitempty"` + // The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` = `studio`. + ConfigurationFlowSid string `json:"Configuration.FlowSid,omitempty"` + // The HTTP method used to call `configuration.url`. Can be: `GET` or `POST` and the default is `POST`. + ConfigurationMethod string `json:"Configuration.Method,omitempty"` + // The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0. + ConfigurationRetryCount int32 `json:"Configuration.RetryCount,omitempty"` + // A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`. + ConfigurationTriggers []string `json:"Configuration.Triggers,omitempty"` + // The URL of the webhook to call using the `configuration.method`. + ConfigurationUrl string `json:"Configuration.Url,omitempty"` +} diff --git a/rest/chat/v2/model_update_credential_request.go b/rest/chat/v2/model_update_credential_request.go new file mode 100644 index 000000000..bd7e60d2f --- /dev/null +++ b/rest/chat/v2/model_update_credential_request.go @@ -0,0 +1,26 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateCredentialRequest struct for UpdateCredentialRequest +type UpdateCredentialRequest struct { + // [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. + ApiKey string `json:"ApiKey,omitempty"` + // [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== -----END CERTIFICATE-----` + Certificate string `json:"Certificate,omitempty"` + // A descriptive string that you create to describe the resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fG... -----END RSA PRIVATE KEY-----` + PrivateKey string `json:"PrivateKey,omitempty"` + // [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. + Sandbox bool `json:"Sandbox,omitempty"` + // [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. + Secret string `json:"Secret,omitempty"` +} diff --git a/rest/chat/v2/model_update_member_request.go b/rest/chat/v2/model_update_member_request.go new file mode 100644 index 000000000..d090fa1b3 --- /dev/null +++ b/rest/chat/v2/model_update_member_request.go @@ -0,0 +1,29 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// UpdateMemberRequest struct for UpdateMemberRequest +type UpdateMemberRequest struct { + // A valid JSON string that contains application-specific data. + Attributes string `json:"Attributes,omitempty"` + // The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. Note that this parameter should only be used when a Member is being recreated from a backup/separate source. + DateCreated time.Time `json:"DateCreated,omitempty"` + // The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. + DateUpdated time.Time `json:"DateUpdated,omitempty"` + // The index of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) that the Member has read within the [Channel](https://www.twilio.com/docs/chat/channels). + LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` + // The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) read event for the Member within the [Channel](https://www.twilio.com/docs/chat/channels). + LastConsumptionTimestamp time.Time `json:"LastConsumptionTimestamp,omitempty"` + // The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/rest/service-resource). + RoleSid string `json:"RoleSid,omitempty"` +} diff --git a/rest/chat/v2/model_update_message_request.go b/rest/chat/v2/model_update_message_request.go new file mode 100644 index 000000000..6a6fed72b --- /dev/null +++ b/rest/chat/v2/model_update_message_request.go @@ -0,0 +1,29 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// UpdateMessageRequest struct for UpdateMessageRequest +type UpdateMessageRequest struct { + // A valid JSON string that contains application-specific data. + Attributes string `json:"Attributes,omitempty"` + // The message to send to the channel. Can be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string. + Body string `json:"Body,omitempty"` + // The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. This parameter should only be used when a Chat's history is being recreated from a backup/separate source. + DateCreated time.Time `json:"DateCreated,omitempty"` + // The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. + DateUpdated time.Time `json:"DateUpdated,omitempty"` + // The [Identity](https://www.twilio.com/docs/chat/identity) of the message's author. + From string `json:"From,omitempty"` + // The [Identity](https://www.twilio.com/docs/chat/identity) of the User who last updated the Message, if applicable. + LastUpdatedBy string `json:"LastUpdatedBy,omitempty"` +} diff --git a/rest/chat/v2/model_update_role_request.go b/rest/chat/v2/model_update_role_request.go new file mode 100644 index 000000000..e5ee5dc1c --- /dev/null +++ b/rest/chat/v2/model_update_role_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateRoleRequest struct for UpdateRoleRequest +type UpdateRoleRequest struct { + // A permission that you grant to the role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. Note that the update action replaces all previously assigned permissions with those defined in the update action. To remove a permission, do not include it in the subsequent update action. The values for this parameter depend on the role's `type`. + Permission []string `json:"Permission"` +} diff --git a/rest/chat/v2/model_update_service_request.go b/rest/chat/v2/model_update_service_request.go new file mode 100644 index 000000000..6e3c4b46a --- /dev/null +++ b/rest/chat/v2/model_update_service_request.go @@ -0,0 +1,76 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateServiceRequest struct for UpdateServiceRequest +type UpdateServiceRequest struct { + // DEPRECATED. The interval in seconds between consumption reports submission batches from client endpoints. + ConsumptionReportInterval int32 `json:"ConsumptionReportInterval,omitempty"` + // The channel role assigned to a channel creator when they join a new channel. See the [Role resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info about roles. + DefaultChannelCreatorRoleSid string `json:"DefaultChannelCreatorRoleSid,omitempty"` + // The channel role assigned to users when they are added to a channel. See the [Role resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info about roles. + DefaultChannelRoleSid string `json:"DefaultChannelRoleSid,omitempty"` + // The service role assigned to users when they are added to the service. See the [Role resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info about roles. + DefaultServiceRoleSid string `json:"DefaultServiceRoleSid,omitempty"` + // A descriptive string that you create to describe the resource. + FriendlyName string `json:"FriendlyName,omitempty"` + // The maximum number of Members that can be added to Channels within this Service. Can be up to 1,000. + LimitsChannelMembers int32 `json:"Limits.ChannelMembers,omitempty"` + // The maximum number of Channels Users can be a Member of within this Service. Can be up to 1,000. + LimitsUserChannels int32 `json:"Limits.UserChannels,omitempty"` + // The message to send when a media message has no text. Can be used as placeholder message. + MediaCompatibilityMessage string `json:"Media.CompatibilityMessage,omitempty"` + // Whether to send a notification when a member is added to a channel. The default is `false`. + NotificationsAddedToChannelEnabled bool `json:"Notifications.AddedToChannel.Enabled,omitempty"` + // The name of the sound to play when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. + NotificationsAddedToChannelSound string `json:"Notifications.AddedToChannel.Sound,omitempty"` + // The template to use to create the notification text displayed when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. + NotificationsAddedToChannelTemplate string `json:"Notifications.AddedToChannel.Template,omitempty"` + // Whether to send a notification when a user is invited to a channel. The default is `false`. + NotificationsInvitedToChannelEnabled bool `json:"Notifications.InvitedToChannel.Enabled,omitempty"` + // The name of the sound to play when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. + NotificationsInvitedToChannelSound string `json:"Notifications.InvitedToChannel.Sound,omitempty"` + // The template to use to create the notification text displayed when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. + NotificationsInvitedToChannelTemplate string `json:"Notifications.InvitedToChannel.Template,omitempty"` + // Whether to log notifications. The default is `false`. + NotificationsLogEnabled bool `json:"Notifications.LogEnabled,omitempty"` + // Whether the new message badge is enabled. The default is `false`. + NotificationsNewMessageBadgeCountEnabled bool `json:"Notifications.NewMessage.BadgeCountEnabled,omitempty"` + // Whether to send a notification when a new message is added to a channel. The default is `false`. + NotificationsNewMessageEnabled bool `json:"Notifications.NewMessage.Enabled,omitempty"` + // The name of the sound to play when a new message is added to a channel and `notifications.new_message.enabled` is `true`. + NotificationsNewMessageSound string `json:"Notifications.NewMessage.Sound,omitempty"` + // The template to use to create the notification text displayed when a new message is added to a channel and `notifications.new_message.enabled` is `true`. + NotificationsNewMessageTemplate string `json:"Notifications.NewMessage.Template,omitempty"` + // Whether to send a notification to a user when they are removed from a channel. The default is `false`. + NotificationsRemovedFromChannelEnabled bool `json:"Notifications.RemovedFromChannel.Enabled,omitempty"` + // The name of the sound to play to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. + NotificationsRemovedFromChannelSound string `json:"Notifications.RemovedFromChannel.Sound,omitempty"` + // The template to use to create the notification text displayed to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. + NotificationsRemovedFromChannelTemplate string `json:"Notifications.RemovedFromChannel.Template,omitempty"` + // The number of times to retry a call to the `post_webhook_url` if the request times out (after 5 seconds) or it receives a 429, 503, or 504 HTTP response. The default is 0, which means the call won't be retried. + PostWebhookRetryCount int32 `json:"PostWebhookRetryCount,omitempty"` + // The URL for post-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. + PostWebhookUrl string `json:"PostWebhookUrl,omitempty"` + // The number of times to retry a call to the `pre_webhook_url` if the request times out (after 5 seconds) or it receives a 429, 503, or 504 HTTP response. Default retry count is 0 times, which means the call won't be retried. + PreWebhookRetryCount int32 `json:"PreWebhookRetryCount,omitempty"` + // The URL for pre-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. + PreWebhookUrl string `json:"PreWebhookUrl,omitempty"` + // Whether to enable the [Reachability Indicator](https://www.twilio.com/docs/chat/reachability-indicator) for this Service instance. The default is `false`. + ReachabilityEnabled bool `json:"ReachabilityEnabled,omitempty"` + // Whether to enable the [Message Consumption Horizon](https://www.twilio.com/docs/chat/consumption-horizon) feature. The default is `true`. + ReadStatusEnabled bool `json:"ReadStatusEnabled,omitempty"` + // How long in seconds after a `started typing` event until clients should assume that user is no longer typing, even if no `ended typing` message was received. The default is 5 seconds. + TypingIndicatorTimeout int32 `json:"TypingIndicatorTimeout,omitempty"` + // The list of webhook events that are enabled for this Service instance. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. + WebhookFilters []string `json:"WebhookFilters,omitempty"` + // The HTTP method to use for calls to the `pre_webhook_url` and `post_webhook_url` webhooks. Can be: `POST` or `GET` and the default is `POST`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. + WebhookMethod string `json:"WebhookMethod,omitempty"` +} diff --git a/rest/chat/v2/model_update_user_channel_request.go b/rest/chat/v2/model_update_user_channel_request.go new file mode 100644 index 000000000..6248307f6 --- /dev/null +++ b/rest/chat/v2/model_update_user_channel_request.go @@ -0,0 +1,23 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// UpdateUserChannelRequest struct for UpdateUserChannelRequest +type UpdateUserChannelRequest struct { + // The index of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) in the [Channel](https://www.twilio.com/docs/chat/channels) that the Member has read. + LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` + // The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) read event for the Member within the [Channel](https://www.twilio.com/docs/chat/channels). + LastConsumptionTimestamp time.Time `json:"LastConsumptionTimestamp,omitempty"` + // The push notification level to assign to the User Channel. Can be: `default` or `muted`. + NotificationLevel string `json:"NotificationLevel,omitempty"` +} diff --git a/rest/chat/v2/model_update_user_request.go b/rest/chat/v2/model_update_user_request.go new file mode 100644 index 000000000..5d428cd08 --- /dev/null +++ b/rest/chat/v2/model_update_user_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateUserRequest struct for UpdateUserRequest +type UpdateUserRequest struct { + // A valid JSON string that contains application-specific data. + Attributes string `json:"Attributes,omitempty"` + // A descriptive string that you create to describe the resource. It is often used for display purposes. + FriendlyName string `json:"FriendlyName,omitempty"` + // The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the User. + RoleSid string `json:"RoleSid,omitempty"` +} diff --git a/rest/chat/v2/response.go b/rest/chat/v2/response.go new file mode 100644 index 000000000..e186e61a0 --- /dev/null +++ b/rest/chat/v2/response.go @@ -0,0 +1,47 @@ +/* + * Twilio - Chat + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// Response returns a new APIResponse object. +func Response(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// ResponseWithError returns a new APIResponse object with the provided error message. +func ResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/rest/conversations/v1/.openapi-generator-ignore b/rest/conversations/v1/.openapi-generator-ignore new file mode 100644 index 000000000..7484ee590 --- /dev/null +++ b/rest/conversations/v1/.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/rest/conversations/v1/.openapi-generator/VERSION b/rest/conversations/v1/.openapi-generator/VERSION new file mode 100644 index 000000000..ecedc98d1 --- /dev/null +++ b/rest/conversations/v1/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.3.1 \ No newline at end of file diff --git a/rest/conversations/v1/README.md b/rest/conversations/v1/README.md new file mode 100644 index 000000000..6e6385b0d --- /dev/null +++ b/rest/conversations/v1/README.md @@ -0,0 +1,216 @@ +# Go API client for openapi + +This is the public Twilio REST API. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 5.15.0 +- Package version: 1.0.0 +- Build package: com.twilio.oai.TwilioGoGenerator +For more information, please visit [https://support.twilio.com](https://support.twilio.com) + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import "./openapi" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**CreateConversation**](docs/DefaultApi.md#createconversation) | **Post** /v1/Conversations | +*DefaultApi* | [**CreateConversationMessage**](docs/DefaultApi.md#createconversationmessage) | **Post** /v1/Conversations/{ConversationSid}/Messages | +*DefaultApi* | [**CreateConversationParticipant**](docs/DefaultApi.md#createconversationparticipant) | **Post** /v1/Conversations/{ConversationSid}/Participants | +*DefaultApi* | [**CreateConversationScopedWebhook**](docs/DefaultApi.md#createconversationscopedwebhook) | **Post** /v1/Conversations/{ConversationSid}/Webhooks | +*DefaultApi* | [**CreateCredential**](docs/DefaultApi.md#createcredential) | **Post** /v1/Credentials | +*DefaultApi* | [**CreateRole**](docs/DefaultApi.md#createrole) | **Post** /v1/Roles | +*DefaultApi* | [**CreateService**](docs/DefaultApi.md#createservice) | **Post** /v1/Services | +*DefaultApi* | [**CreateServiceConversation**](docs/DefaultApi.md#createserviceconversation) | **Post** /v1/Services/{ChatServiceSid}/Conversations | +*DefaultApi* | [**CreateServiceConversationMessage**](docs/DefaultApi.md#createserviceconversationmessage) | **Post** /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages | +*DefaultApi* | [**CreateServiceConversationParticipant**](docs/DefaultApi.md#createserviceconversationparticipant) | **Post** /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants | +*DefaultApi* | [**CreateServiceConversationScopedWebhook**](docs/DefaultApi.md#createserviceconversationscopedwebhook) | **Post** /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks | +*DefaultApi* | [**CreateServiceRole**](docs/DefaultApi.md#createservicerole) | **Post** /v1/Services/{ChatServiceSid}/Roles | +*DefaultApi* | [**CreateServiceUser**](docs/DefaultApi.md#createserviceuser) | **Post** /v1/Services/{ChatServiceSid}/Users | +*DefaultApi* | [**CreateUser**](docs/DefaultApi.md#createuser) | **Post** /v1/Users | +*DefaultApi* | [**DeleteConversation**](docs/DefaultApi.md#deleteconversation) | **Delete** /v1/Conversations/{Sid} | +*DefaultApi* | [**DeleteConversationMessage**](docs/DefaultApi.md#deleteconversationmessage) | **Delete** /v1/Conversations/{ConversationSid}/Messages/{Sid} | +*DefaultApi* | [**DeleteConversationParticipant**](docs/DefaultApi.md#deleteconversationparticipant) | **Delete** /v1/Conversations/{ConversationSid}/Participants/{Sid} | +*DefaultApi* | [**DeleteConversationScopedWebhook**](docs/DefaultApi.md#deleteconversationscopedwebhook) | **Delete** /v1/Conversations/{ConversationSid}/Webhooks/{Sid} | +*DefaultApi* | [**DeleteCredential**](docs/DefaultApi.md#deletecredential) | **Delete** /v1/Credentials/{Sid} | +*DefaultApi* | [**DeleteRole**](docs/DefaultApi.md#deleterole) | **Delete** /v1/Roles/{Sid} | +*DefaultApi* | [**DeleteService**](docs/DefaultApi.md#deleteservice) | **Delete** /v1/Services/{Sid} | +*DefaultApi* | [**DeleteServiceBinding**](docs/DefaultApi.md#deleteservicebinding) | **Delete** /v1/Services/{ChatServiceSid}/Bindings/{Sid} | +*DefaultApi* | [**DeleteServiceConversation**](docs/DefaultApi.md#deleteserviceconversation) | **Delete** /v1/Services/{ChatServiceSid}/Conversations/{Sid} | +*DefaultApi* | [**DeleteServiceConversationMessage**](docs/DefaultApi.md#deleteserviceconversationmessage) | **Delete** /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{Sid} | +*DefaultApi* | [**DeleteServiceConversationParticipant**](docs/DefaultApi.md#deleteserviceconversationparticipant) | **Delete** /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants/{Sid} | +*DefaultApi* | [**DeleteServiceConversationScopedWebhook**](docs/DefaultApi.md#deleteserviceconversationscopedwebhook) | **Delete** /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks/{Sid} | +*DefaultApi* | [**DeleteServiceRole**](docs/DefaultApi.md#deleteservicerole) | **Delete** /v1/Services/{ChatServiceSid}/Roles/{Sid} | +*DefaultApi* | [**DeleteServiceUser**](docs/DefaultApi.md#deleteserviceuser) | **Delete** /v1/Services/{ChatServiceSid}/Users/{Sid} | +*DefaultApi* | [**DeleteUser**](docs/DefaultApi.md#deleteuser) | **Delete** /v1/Users/{Sid} | +*DefaultApi* | [**FetchConfiguration**](docs/DefaultApi.md#fetchconfiguration) | **Get** /v1/Configuration | +*DefaultApi* | [**FetchConfigurationWebhook**](docs/DefaultApi.md#fetchconfigurationwebhook) | **Get** /v1/Configuration/Webhooks | +*DefaultApi* | [**FetchConversation**](docs/DefaultApi.md#fetchconversation) | **Get** /v1/Conversations/{Sid} | +*DefaultApi* | [**FetchConversationMessage**](docs/DefaultApi.md#fetchconversationmessage) | **Get** /v1/Conversations/{ConversationSid}/Messages/{Sid} | +*DefaultApi* | [**FetchConversationMessageReceipt**](docs/DefaultApi.md#fetchconversationmessagereceipt) | **Get** /v1/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts/{Sid} | +*DefaultApi* | [**FetchConversationParticipant**](docs/DefaultApi.md#fetchconversationparticipant) | **Get** /v1/Conversations/{ConversationSid}/Participants/{Sid} | +*DefaultApi* | [**FetchConversationScopedWebhook**](docs/DefaultApi.md#fetchconversationscopedwebhook) | **Get** /v1/Conversations/{ConversationSid}/Webhooks/{Sid} | +*DefaultApi* | [**FetchCredential**](docs/DefaultApi.md#fetchcredential) | **Get** /v1/Credentials/{Sid} | +*DefaultApi* | [**FetchRole**](docs/DefaultApi.md#fetchrole) | **Get** /v1/Roles/{Sid} | +*DefaultApi* | [**FetchService**](docs/DefaultApi.md#fetchservice) | **Get** /v1/Services/{Sid} | +*DefaultApi* | [**FetchServiceBinding**](docs/DefaultApi.md#fetchservicebinding) | **Get** /v1/Services/{ChatServiceSid}/Bindings/{Sid} | +*DefaultApi* | [**FetchServiceConfiguration**](docs/DefaultApi.md#fetchserviceconfiguration) | **Get** /v1/Services/{ChatServiceSid}/Configuration | +*DefaultApi* | [**FetchServiceConversation**](docs/DefaultApi.md#fetchserviceconversation) | **Get** /v1/Services/{ChatServiceSid}/Conversations/{Sid} | +*DefaultApi* | [**FetchServiceConversationMessage**](docs/DefaultApi.md#fetchserviceconversationmessage) | **Get** /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{Sid} | +*DefaultApi* | [**FetchServiceConversationMessageReceipt**](docs/DefaultApi.md#fetchserviceconversationmessagereceipt) | **Get** /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts/{Sid} | +*DefaultApi* | [**FetchServiceConversationParticipant**](docs/DefaultApi.md#fetchserviceconversationparticipant) | **Get** /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants/{Sid} | +*DefaultApi* | [**FetchServiceConversationScopedWebhook**](docs/DefaultApi.md#fetchserviceconversationscopedwebhook) | **Get** /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks/{Sid} | +*DefaultApi* | [**FetchServiceNotification**](docs/DefaultApi.md#fetchservicenotification) | **Get** /v1/Services/{ChatServiceSid}/Configuration/Notifications | +*DefaultApi* | [**FetchServiceRole**](docs/DefaultApi.md#fetchservicerole) | **Get** /v1/Services/{ChatServiceSid}/Roles/{Sid} | +*DefaultApi* | [**FetchServiceUser**](docs/DefaultApi.md#fetchserviceuser) | **Get** /v1/Services/{ChatServiceSid}/Users/{Sid} | +*DefaultApi* | [**FetchUser**](docs/DefaultApi.md#fetchuser) | **Get** /v1/Users/{Sid} | +*DefaultApi* | [**ListConversation**](docs/DefaultApi.md#listconversation) | **Get** /v1/Conversations | +*DefaultApi* | [**ListConversationMessage**](docs/DefaultApi.md#listconversationmessage) | **Get** /v1/Conversations/{ConversationSid}/Messages | +*DefaultApi* | [**ListConversationMessageReceipt**](docs/DefaultApi.md#listconversationmessagereceipt) | **Get** /v1/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts | +*DefaultApi* | [**ListConversationParticipant**](docs/DefaultApi.md#listconversationparticipant) | **Get** /v1/Conversations/{ConversationSid}/Participants | +*DefaultApi* | [**ListConversationScopedWebhook**](docs/DefaultApi.md#listconversationscopedwebhook) | **Get** /v1/Conversations/{ConversationSid}/Webhooks | +*DefaultApi* | [**ListCredential**](docs/DefaultApi.md#listcredential) | **Get** /v1/Credentials | +*DefaultApi* | [**ListRole**](docs/DefaultApi.md#listrole) | **Get** /v1/Roles | +*DefaultApi* | [**ListService**](docs/DefaultApi.md#listservice) | **Get** /v1/Services | +*DefaultApi* | [**ListServiceBinding**](docs/DefaultApi.md#listservicebinding) | **Get** /v1/Services/{ChatServiceSid}/Bindings | +*DefaultApi* | [**ListServiceConversation**](docs/DefaultApi.md#listserviceconversation) | **Get** /v1/Services/{ChatServiceSid}/Conversations | +*DefaultApi* | [**ListServiceConversationMessage**](docs/DefaultApi.md#listserviceconversationmessage) | **Get** /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages | +*DefaultApi* | [**ListServiceConversationMessageReceipt**](docs/DefaultApi.md#listserviceconversationmessagereceipt) | **Get** /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts | +*DefaultApi* | [**ListServiceConversationParticipant**](docs/DefaultApi.md#listserviceconversationparticipant) | **Get** /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants | +*DefaultApi* | [**ListServiceConversationScopedWebhook**](docs/DefaultApi.md#listserviceconversationscopedwebhook) | **Get** /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks | +*DefaultApi* | [**ListServiceRole**](docs/DefaultApi.md#listservicerole) | **Get** /v1/Services/{ChatServiceSid}/Roles | +*DefaultApi* | [**ListServiceUser**](docs/DefaultApi.md#listserviceuser) | **Get** /v1/Services/{ChatServiceSid}/Users | +*DefaultApi* | [**ListUser**](docs/DefaultApi.md#listuser) | **Get** /v1/Users | +*DefaultApi* | [**UpdateConfiguration**](docs/DefaultApi.md#updateconfiguration) | **Post** /v1/Configuration | +*DefaultApi* | [**UpdateConfigurationWebhook**](docs/DefaultApi.md#updateconfigurationwebhook) | **Post** /v1/Configuration/Webhooks | +*DefaultApi* | [**UpdateConversation**](docs/DefaultApi.md#updateconversation) | **Post** /v1/Conversations/{Sid} | +*DefaultApi* | [**UpdateConversationMessage**](docs/DefaultApi.md#updateconversationmessage) | **Post** /v1/Conversations/{ConversationSid}/Messages/{Sid} | +*DefaultApi* | [**UpdateConversationParticipant**](docs/DefaultApi.md#updateconversationparticipant) | **Post** /v1/Conversations/{ConversationSid}/Participants/{Sid} | +*DefaultApi* | [**UpdateConversationScopedWebhook**](docs/DefaultApi.md#updateconversationscopedwebhook) | **Post** /v1/Conversations/{ConversationSid}/Webhooks/{Sid} | +*DefaultApi* | [**UpdateCredential**](docs/DefaultApi.md#updatecredential) | **Post** /v1/Credentials/{Sid} | +*DefaultApi* | [**UpdateRole**](docs/DefaultApi.md#updaterole) | **Post** /v1/Roles/{Sid} | +*DefaultApi* | [**UpdateServiceConfiguration**](docs/DefaultApi.md#updateserviceconfiguration) | **Post** /v1/Services/{ChatServiceSid}/Configuration | +*DefaultApi* | [**UpdateServiceConversation**](docs/DefaultApi.md#updateserviceconversation) | **Post** /v1/Services/{ChatServiceSid}/Conversations/{Sid} | +*DefaultApi* | [**UpdateServiceConversationMessage**](docs/DefaultApi.md#updateserviceconversationmessage) | **Post** /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{Sid} | +*DefaultApi* | [**UpdateServiceConversationParticipant**](docs/DefaultApi.md#updateserviceconversationparticipant) | **Post** /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants/{Sid} | +*DefaultApi* | [**UpdateServiceConversationScopedWebhook**](docs/DefaultApi.md#updateserviceconversationscopedwebhook) | **Post** /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks/{Sid} | +*DefaultApi* | [**UpdateServiceNotification**](docs/DefaultApi.md#updateservicenotification) | **Post** /v1/Services/{ChatServiceSid}/Configuration/Notifications | +*DefaultApi* | [**UpdateServiceRole**](docs/DefaultApi.md#updateservicerole) | **Post** /v1/Services/{ChatServiceSid}/Roles/{Sid} | +*DefaultApi* | [**UpdateServiceUser**](docs/DefaultApi.md#updateserviceuser) | **Post** /v1/Services/{ChatServiceSid}/Users/{Sid} | +*DefaultApi* | [**UpdateUser**](docs/DefaultApi.md#updateuser) | **Post** /v1/Users/{Sid} | + + +## Documentation For Models + + - [ConversationsV1Configuration](docs/ConversationsV1Configuration.md) + - [ConversationsV1ConfigurationConfigurationWebhook](docs/ConversationsV1ConfigurationConfigurationWebhook.md) + - [ConversationsV1Conversation](docs/ConversationsV1Conversation.md) + - [ConversationsV1ConversationConversationMessage](docs/ConversationsV1ConversationConversationMessage.md) + - [ConversationsV1ConversationConversationMessageConversationMessageReceipt](docs/ConversationsV1ConversationConversationMessageConversationMessageReceipt.md) + - [ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse](docs/ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse.md) + - [ConversationsV1ConversationConversationMessageReadResponse](docs/ConversationsV1ConversationConversationMessageReadResponse.md) + - [ConversationsV1ConversationConversationParticipant](docs/ConversationsV1ConversationConversationParticipant.md) + - [ConversationsV1ConversationConversationParticipantReadResponse](docs/ConversationsV1ConversationConversationParticipantReadResponse.md) + - [ConversationsV1ConversationConversationScopedWebhook](docs/ConversationsV1ConversationConversationScopedWebhook.md) + - [ConversationsV1ConversationConversationScopedWebhookReadResponse](docs/ConversationsV1ConversationConversationScopedWebhookReadResponse.md) + - [ConversationsV1ConversationReadResponse](docs/ConversationsV1ConversationReadResponse.md) + - [ConversationsV1ConversationReadResponseMeta](docs/ConversationsV1ConversationReadResponseMeta.md) + - [ConversationsV1Credential](docs/ConversationsV1Credential.md) + - [ConversationsV1CredentialReadResponse](docs/ConversationsV1CredentialReadResponse.md) + - [ConversationsV1Role](docs/ConversationsV1Role.md) + - [ConversationsV1RoleReadResponse](docs/ConversationsV1RoleReadResponse.md) + - [ConversationsV1Service](docs/ConversationsV1Service.md) + - [ConversationsV1ServiceReadResponse](docs/ConversationsV1ServiceReadResponse.md) + - [ConversationsV1ServiceServiceBinding](docs/ConversationsV1ServiceServiceBinding.md) + - [ConversationsV1ServiceServiceBindingReadResponse](docs/ConversationsV1ServiceServiceBindingReadResponse.md) + - [ConversationsV1ServiceServiceConfiguration](docs/ConversationsV1ServiceServiceConfiguration.md) + - [ConversationsV1ServiceServiceConfigurationServiceNotification](docs/ConversationsV1ServiceServiceConfigurationServiceNotification.md) + - [ConversationsV1ServiceServiceConversation](docs/ConversationsV1ServiceServiceConversation.md) + - [ConversationsV1ServiceServiceConversationReadResponse](docs/ConversationsV1ServiceServiceConversationReadResponse.md) + - [ConversationsV1ServiceServiceConversationServiceConversationMessage](docs/ConversationsV1ServiceServiceConversationServiceConversationMessage.md) + - [ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse](docs/ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse.md) + - [ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt](docs/ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt.md) + - [ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse](docs/ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse.md) + - [ConversationsV1ServiceServiceConversationServiceConversationParticipant](docs/ConversationsV1ServiceServiceConversationServiceConversationParticipant.md) + - [ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse](docs/ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse.md) + - [ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook](docs/ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook.md) + - [ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse](docs/ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse.md) + - [ConversationsV1ServiceServiceRole](docs/ConversationsV1ServiceServiceRole.md) + - [ConversationsV1ServiceServiceRoleReadResponse](docs/ConversationsV1ServiceServiceRoleReadResponse.md) + - [ConversationsV1ServiceServiceUser](docs/ConversationsV1ServiceServiceUser.md) + - [ConversationsV1ServiceServiceUserReadResponse](docs/ConversationsV1ServiceServiceUserReadResponse.md) + - [ConversationsV1User](docs/ConversationsV1User.md) + - [ConversationsV1UserReadResponse](docs/ConversationsV1UserReadResponse.md) + - [CreateConversationMessageRequest](docs/CreateConversationMessageRequest.md) + - [CreateConversationParticipantRequest](docs/CreateConversationParticipantRequest.md) + - [CreateConversationRequest](docs/CreateConversationRequest.md) + - [CreateConversationScopedWebhookRequest](docs/CreateConversationScopedWebhookRequest.md) + - [CreateCredentialRequest](docs/CreateCredentialRequest.md) + - [CreateRoleRequest](docs/CreateRoleRequest.md) + - [CreateServiceConversationMessageRequest](docs/CreateServiceConversationMessageRequest.md) + - [CreateServiceConversationParticipantRequest](docs/CreateServiceConversationParticipantRequest.md) + - [CreateServiceConversationRequest](docs/CreateServiceConversationRequest.md) + - [CreateServiceConversationScopedWebhookRequest](docs/CreateServiceConversationScopedWebhookRequest.md) + - [CreateServiceRequest](docs/CreateServiceRequest.md) + - [CreateServiceRoleRequest](docs/CreateServiceRoleRequest.md) + - [CreateServiceUserRequest](docs/CreateServiceUserRequest.md) + - [CreateUserRequest](docs/CreateUserRequest.md) + - [UpdateConfigurationRequest](docs/UpdateConfigurationRequest.md) + - [UpdateConfigurationWebhookRequest](docs/UpdateConfigurationWebhookRequest.md) + - [UpdateConversationMessageRequest](docs/UpdateConversationMessageRequest.md) + - [UpdateConversationParticipantRequest](docs/UpdateConversationParticipantRequest.md) + - [UpdateConversationRequest](docs/UpdateConversationRequest.md) + - [UpdateConversationScopedWebhookRequest](docs/UpdateConversationScopedWebhookRequest.md) + - [UpdateCredentialRequest](docs/UpdateCredentialRequest.md) + - [UpdateRoleRequest](docs/UpdateRoleRequest.md) + - [UpdateServiceConfigurationRequest](docs/UpdateServiceConfigurationRequest.md) + - [UpdateServiceConversationMessageRequest](docs/UpdateServiceConversationMessageRequest.md) + - [UpdateServiceConversationParticipantRequest](docs/UpdateServiceConversationParticipantRequest.md) + - [UpdateServiceConversationRequest](docs/UpdateServiceConversationRequest.md) + - [UpdateServiceConversationScopedWebhookRequest](docs/UpdateServiceConversationScopedWebhookRequest.md) + - [UpdateServiceNotificationRequest](docs/UpdateServiceNotificationRequest.md) + - [UpdateServiceRoleRequest](docs/UpdateServiceRoleRequest.md) + - [UpdateServiceUserRequest](docs/UpdateServiceUserRequest.md) + - [UpdateUserRequest](docs/UpdateUserRequest.md) + + +## Documentation For Authorization + + + +## accountSid_authToken + +- **Type**: HTTP basic authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ + UserName: "username", + Password: "password", +}) +r, err := client.Service.Operation(auth, args) +``` + + +## Author + +support@twilio.com + diff --git a/rest/conversations/v1/api_default.go b/rest/conversations/v1/api_default.go new file mode 100644 index 000000000..31b235752 --- /dev/null +++ b/rest/conversations/v1/api_default.go @@ -0,0 +1,3861 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "" + "reflect" +) + +type DefaultApiService struct { + baseURL string + client *twilio.Client +} + +func NewDefaultApiService(client *twilio.Client) *DefaultApiService { + return &DefaultApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} +// CreateConversationParams Optional parameters for the method 'CreateConversation' +type CreateConversationParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` + State *string `json:"State,omitempty"` + Timers.Closed *string `json:"Timers.Closed,omitempty"` + Timers.Inactive *string `json:"Timers.Inactive,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +CreateConversation Method for CreateConversation +Create a new conversation in your account's default service + * @param optional nil or *CreateConversationOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "Attributes" (string) - An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. + * @param "DateCreated" (time.Time) - The date that this resource was created. + * @param "DateUpdated" (time.Time) - The date that this resource was last updated. + * @param "FriendlyName" (string) - The human-readable name of this conversation, limited to 256 characters. Optional. + * @param "MessagingServiceSid" (string) - The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. + * @param "State" (string) - Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` + * @param "Timers.Closed" (string) - ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. + * @param "Timers.Inactive" (string) - ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. + * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. +@return ConversationsV1Conversation +*/ +func (c *DefaultApiService) CreateConversation(params *CreateConversationParams) (*ConversationsV1Conversation, error) { + path := "/v1/Conversations" + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.MessagingServiceSid != nil { + data.Set("MessagingServiceSid", *params.MessagingServiceSid) + } + if params != nil && params.State != nil { + data.Set("State", *params.State) + } + if params != nil && params.Timers.Closed != nil { + data.Set("Timers.Closed", *params.Timers.Closed) + } + if params != nil && params.Timers.Inactive != nil { + data.Set("Timers.Inactive", *params.Timers.Inactive) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1Conversation{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateConversationMessageParams Optional parameters for the method 'CreateConversationMessage' +type CreateConversationMessageParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + Author *string `json:"Author,omitempty"` + Body *string `json:"Body,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + MediaSid *string `json:"MediaSid,omitempty"` +} + +/* +CreateConversationMessage Method for CreateConversationMessage +Add a new message to the conversation + * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. + * @param optional nil or *CreateConversationMessageOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "Attributes" (string) - A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. + * @param "Author" (string) - The channel specific identifier of the message's author. Defaults to `system`. + * @param "Body" (string) - The content of the message, can be up to 1,600 characters long. + * @param "DateCreated" (time.Time) - The date that this resource was created. + * @param "DateUpdated" (time.Time) - The date that this resource was last updated. `null` if the message has not been edited. + * @param "MediaSid" (string) - The Media SID to be attached to the new Message. +@return ConversationsV1ConversationConversationMessage +*/ +func (c *DefaultApiService) CreateConversationMessage(conversationSid string, params *CreateConversationMessageParams) (*ConversationsV1ConversationConversationMessage, error) { + path := "/v1/Conversations/{ConversationSid}/Messages" + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.Author != nil { + data.Set("Author", *params.Author) + } + if params != nil && params.Body != nil { + data.Set("Body", *params.Body) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.MediaSid != nil { + data.Set("MediaSid", *params.MediaSid) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ConversationConversationMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateConversationParticipantParams Optional parameters for the method 'CreateConversationParticipant' +type CreateConversationParticipantParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + Identity *string `json:"Identity,omitempty"` + MessagingBinding.Address *string `json:"MessagingBinding.Address,omitempty"` + MessagingBinding.ProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` + MessagingBinding.ProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` +} + +/* +CreateConversationParticipant Method for CreateConversationParticipant +Add a new participant to the conversation + * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. + * @param optional nil or *CreateConversationParticipantOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "Attributes" (string) - An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. + * @param "DateCreated" (time.Time) - The date that this resource was created. + * @param "DateUpdated" (time.Time) - The date that this resource was last updated. + * @param "Identity" (string) - A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters. + * @param "MessagingBinding.Address" (string) - The address of the participant's device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). + * @param "MessagingBinding.ProjectedAddress" (string) - The address of the Twilio phone number that is used in Group MMS. Communication mask for the Conversation participant with Identity. + * @param "MessagingBinding.ProxyAddress" (string) - The address of the Twilio phone number (or WhatsApp number) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). + * @param "RoleSid" (string) - The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. +@return ConversationsV1ConversationConversationParticipant +*/ +func (c *DefaultApiService) CreateConversationParticipant(conversationSid string, params *CreateConversationParticipantParams) (*ConversationsV1ConversationConversationParticipant, error) { + path := "/v1/Conversations/{ConversationSid}/Participants" + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.MessagingBinding.Address != nil { + data.Set("MessagingBinding.Address", *params.MessagingBinding.Address) + } + if params != nil && params.MessagingBinding.ProjectedAddress != nil { + data.Set("MessagingBinding.ProjectedAddress", *params.MessagingBinding.ProjectedAddress) + } + if params != nil && params.MessagingBinding.ProxyAddress != nil { + data.Set("MessagingBinding.ProxyAddress", *params.MessagingBinding.ProxyAddress) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ConversationConversationParticipant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateConversationScopedWebhookParams Optional parameters for the method 'CreateConversationScopedWebhook' +type CreateConversationScopedWebhookParams struct { + Configuration.Filters *[]string `json:"Configuration.Filters,omitempty"` + Configuration.FlowSid *string `json:"Configuration.FlowSid,omitempty"` + Configuration.Method *string `json:"Configuration.Method,omitempty"` + Configuration.ReplayAfter *int32 `json:"Configuration.ReplayAfter,omitempty"` + Configuration.Triggers *[]string `json:"Configuration.Triggers,omitempty"` + Configuration.Url *string `json:"Configuration.Url,omitempty"` + Target *string `json:"Target,omitempty"` +} + +/* +CreateConversationScopedWebhook Method for CreateConversationScopedWebhook +Create a new webhook scoped to the conversation + * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. + * @param optional nil or *CreateConversationScopedWebhookOpts - Optional Parameters: + * @param "Configuration.Filters" ([]string) - The list of events, firing webhook event for this Conversation. + * @param "Configuration.FlowSid" (string) - The studio flow SID, where the webhook should be sent to. + * @param "Configuration.Method" (string) - The HTTP method to be used when sending a webhook request. + * @param "Configuration.ReplayAfter" (int32) - The message index for which and it's successors the webhook will be replayed. Not set by default + * @param "Configuration.Triggers" ([]string) - The list of keywords, firing webhook event for this Conversation. + * @param "Configuration.Url" (string) - The absolute url the webhook request should be sent to. + * @param "Target" (string) - The target of this webhook: `webhook`, `studio`, `trigger` +@return ConversationsV1ConversationConversationScopedWebhook +*/ +func (c *DefaultApiService) CreateConversationScopedWebhook(conversationSid string, params *CreateConversationScopedWebhookParams) (*ConversationsV1ConversationConversationScopedWebhook, error) { + path := "/v1/Conversations/{ConversationSid}/Webhooks" + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Configuration.Filters != nil { + data.Set("Configuration.Filters", *params.Configuration.Filters) + } + if params != nil && params.Configuration.FlowSid != nil { + data.Set("Configuration.FlowSid", *params.Configuration.FlowSid) + } + if params != nil && params.Configuration.Method != nil { + data.Set("Configuration.Method", *params.Configuration.Method) + } + if params != nil && params.Configuration.ReplayAfter != nil { + data.Set("Configuration.ReplayAfter", string(*params.Configuration.ReplayAfter)) + } + if params != nil && params.Configuration.Triggers != nil { + data.Set("Configuration.Triggers", *params.Configuration.Triggers) + } + if params != nil && params.Configuration.Url != nil { + data.Set("Configuration.Url", *params.Configuration.Url) + } + if params != nil && params.Target != nil { + data.Set("Target", *params.Target) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ConversationConversationScopedWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateCredentialParams Optional parameters for the method 'CreateCredential' +type CreateCredentialParams struct { + ApiKey *string `json:"ApiKey,omitempty"` + Certificate *string `json:"Certificate,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PrivateKey *string `json:"PrivateKey,omitempty"` + Sandbox *bool `json:"Sandbox,omitempty"` + Secret *string `json:"Secret,omitempty"` + Type *string `json:"Type,omitempty"` +} + +/* +CreateCredential Method for CreateCredential +Add a new push notification credential to your account + * @param optional nil or *CreateCredentialOpts - Optional Parameters: + * @param "ApiKey" (string) - [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. + * @param "Certificate" (string) - [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== -----END CERTIFICATE-----`. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the new resource. It can be up to 64 characters long. + * @param "PrivateKey" (string) - [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fG... -----END RSA PRIVATE KEY-----`. + * @param "Sandbox" (bool) - [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. + * @param "Secret" (string) - [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. + * @param "Type" (string) - The type of push-notification service the credential is for. Can be: `fcm`, `gcm`, or `apn`. +@return ConversationsV1Credential +*/ +func (c *DefaultApiService) CreateCredential(params *CreateCredentialParams) (*ConversationsV1Credential, error) { + path := "/v1/Credentials" + + data := url.Values{} + headers := 0 + + if params != nil && params.ApiKey != nil { + data.Set("ApiKey", *params.ApiKey) + } + if params != nil && params.Certificate != nil { + data.Set("Certificate", *params.Certificate) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PrivateKey != nil { + data.Set("PrivateKey", *params.PrivateKey) + } + if params != nil && params.Sandbox != nil { + data.Set("Sandbox", string(*params.Sandbox)) + } + if params != nil && params.Secret != nil { + data.Set("Secret", *params.Secret) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1Credential{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateRoleParams Optional parameters for the method 'CreateRole' +type CreateRoleParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` + Permission *[]string `json:"Permission,omitempty"` + Type *string `json:"Type,omitempty"` +} + +/* +CreateRole Method for CreateRole +Create a new user role in your account's default service + * @param optional nil or *CreateRoleOpts - Optional Parameters: + * @param "FriendlyName" (string) - A descriptive string that you create to describe the new resource. It can be up to 64 characters long. + * @param "Permission" ([]string) - A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type`. + * @param "Type" (string) - The type of role. Can be: `conversation` for [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) roles or `service` for [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) roles. +@return ConversationsV1Role +*/ +func (c *DefaultApiService) CreateRole(params *CreateRoleParams) (*ConversationsV1Role, error) { + path := "/v1/Roles" + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Permission != nil { + data.Set("Permission", *params.Permission) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1Role{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateServiceParams Optional parameters for the method 'CreateService' +type CreateServiceParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +CreateService Method for CreateService +Create a new conversation service on your account + * @param optional nil or *CreateServiceOpts - Optional Parameters: + * @param "FriendlyName" (string) - The human-readable name of this service, limited to 256 characters. Optional. +@return ConversationsV1Service +*/ +func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*ConversationsV1Service, error) { + path := "/v1/Services" + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateServiceConversationParams Optional parameters for the method 'CreateServiceConversation' +type CreateServiceConversationParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` + State *string `json:"State,omitempty"` + Timers.Closed *string `json:"Timers.Closed,omitempty"` + Timers.Inactive *string `json:"Timers.Inactive,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +CreateServiceConversation Method for CreateServiceConversation +Create a new conversation in your service + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. + * @param optional nil or *CreateServiceConversationOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "Attributes" (string) - An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. + * @param "DateCreated" (time.Time) - The date that this resource was created. + * @param "DateUpdated" (time.Time) - The date that this resource was last updated. + * @param "FriendlyName" (string) - The human-readable name of this conversation, limited to 256 characters. Optional. + * @param "MessagingServiceSid" (string) - The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. + * @param "State" (string) - Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` + * @param "Timers.Closed" (string) - ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. + * @param "Timers.Inactive" (string) - ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. + * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. +@return ConversationsV1ServiceServiceConversation +*/ +func (c *DefaultApiService) CreateServiceConversation(chatServiceSid string, params *CreateServiceConversationParams) (*ConversationsV1ServiceServiceConversation, error) { + path := "/v1/Services/{ChatServiceSid}/Conversations" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.MessagingServiceSid != nil { + data.Set("MessagingServiceSid", *params.MessagingServiceSid) + } + if params != nil && params.State != nil { + data.Set("State", *params.State) + } + if params != nil && params.Timers.Closed != nil { + data.Set("Timers.Closed", *params.Timers.Closed) + } + if params != nil && params.Timers.Inactive != nil { + data.Set("Timers.Inactive", *params.Timers.Inactive) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceConversation{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateServiceConversationMessageParams Optional parameters for the method 'CreateServiceConversationMessage' +type CreateServiceConversationMessageParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + Author *string `json:"Author,omitempty"` + Body *string `json:"Body,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + MediaSid *string `json:"MediaSid,omitempty"` +} + +/* +CreateServiceConversationMessage Method for CreateServiceConversationMessage +Add a new message to the conversation in a specific service + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. + * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. + * @param optional nil or *CreateServiceConversationMessageOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "Attributes" (string) - A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. + * @param "Author" (string) - The channel specific identifier of the message's author. Defaults to `system`. + * @param "Body" (string) - The content of the message, can be up to 1,600 characters long. + * @param "DateCreated" (time.Time) - The date that this resource was created. + * @param "DateUpdated" (time.Time) - The date that this resource was last updated. `null` if the message has not been edited. + * @param "MediaSid" (string) - The Media SID to be attached to the new Message. +@return ConversationsV1ServiceServiceConversationServiceConversationMessage +*/ +func (c *DefaultApiService) CreateServiceConversationMessage(chatServiceSid string, conversationSid string, params *CreateServiceConversationMessageParams) (*ConversationsV1ServiceServiceConversationServiceConversationMessage, error) { + path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.Author != nil { + data.Set("Author", *params.Author) + } + if params != nil && params.Body != nil { + data.Set("Body", *params.Body) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.MediaSid != nil { + data.Set("MediaSid", *params.MediaSid) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceConversationServiceConversationMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateServiceConversationParticipantParams Optional parameters for the method 'CreateServiceConversationParticipant' +type CreateServiceConversationParticipantParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + Identity *string `json:"Identity,omitempty"` + MessagingBinding.Address *string `json:"MessagingBinding.Address,omitempty"` + MessagingBinding.ProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` + MessagingBinding.ProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` +} + +/* +CreateServiceConversationParticipant Method for CreateServiceConversationParticipant +Add a new participant to the conversation in a specific service + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. + * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. + * @param optional nil or *CreateServiceConversationParticipantOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "Attributes" (string) - An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. + * @param "DateCreated" (time.Time) - The date that this resource was created. + * @param "DateUpdated" (time.Time) - The date that this resource was last updated. + * @param "Identity" (string) - A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversation SDK to communicate. Limited to 256 characters. + * @param "MessagingBinding.Address" (string) - The address of the participant's device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). + * @param "MessagingBinding.ProjectedAddress" (string) - The address of the Twilio phone number that is used in Group MMS. Communication mask for the Conversation participant with Identity. + * @param "MessagingBinding.ProxyAddress" (string) - The address of the Twilio phone number (or WhatsApp number) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). + * @param "RoleSid" (string) - The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. +@return ConversationsV1ServiceServiceConversationServiceConversationParticipant +*/ +func (c *DefaultApiService) CreateServiceConversationParticipant(chatServiceSid string, conversationSid string, params *CreateServiceConversationParticipantParams) (*ConversationsV1ServiceServiceConversationServiceConversationParticipant, error) { + path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.MessagingBinding.Address != nil { + data.Set("MessagingBinding.Address", *params.MessagingBinding.Address) + } + if params != nil && params.MessagingBinding.ProjectedAddress != nil { + data.Set("MessagingBinding.ProjectedAddress", *params.MessagingBinding.ProjectedAddress) + } + if params != nil && params.MessagingBinding.ProxyAddress != nil { + data.Set("MessagingBinding.ProxyAddress", *params.MessagingBinding.ProxyAddress) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceConversationServiceConversationParticipant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateServiceConversationScopedWebhookParams Optional parameters for the method 'CreateServiceConversationScopedWebhook' +type CreateServiceConversationScopedWebhookParams struct { + Configuration.Filters *[]string `json:"Configuration.Filters,omitempty"` + Configuration.FlowSid *string `json:"Configuration.FlowSid,omitempty"` + Configuration.Method *string `json:"Configuration.Method,omitempty"` + Configuration.ReplayAfter *int32 `json:"Configuration.ReplayAfter,omitempty"` + Configuration.Triggers *[]string `json:"Configuration.Triggers,omitempty"` + Configuration.Url *string `json:"Configuration.Url,omitempty"` + Target *string `json:"Target,omitempty"` +} + +/* +CreateServiceConversationScopedWebhook Method for CreateServiceConversationScopedWebhook +Create a new webhook scoped to the conversation in a specific service + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. + * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. + * @param optional nil or *CreateServiceConversationScopedWebhookOpts - Optional Parameters: + * @param "Configuration.Filters" ([]string) - The list of events, firing webhook event for this Conversation. + * @param "Configuration.FlowSid" (string) - The studio flow SID, where the webhook should be sent to. + * @param "Configuration.Method" (string) - The HTTP method to be used when sending a webhook request. + * @param "Configuration.ReplayAfter" (int32) - The message index for which and it's successors the webhook will be replayed. Not set by default + * @param "Configuration.Triggers" ([]string) - The list of keywords, firing webhook event for this Conversation. + * @param "Configuration.Url" (string) - The absolute url the webhook request should be sent to. + * @param "Target" (string) - The target of this webhook: `webhook`, `studio`, `trigger` +@return ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook +*/ +func (c *DefaultApiService) CreateServiceConversationScopedWebhook(chatServiceSid string, conversationSid string, params *CreateServiceConversationScopedWebhookParams) (*ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook, error) { + path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Configuration.Filters != nil { + data.Set("Configuration.Filters", *params.Configuration.Filters) + } + if params != nil && params.Configuration.FlowSid != nil { + data.Set("Configuration.FlowSid", *params.Configuration.FlowSid) + } + if params != nil && params.Configuration.Method != nil { + data.Set("Configuration.Method", *params.Configuration.Method) + } + if params != nil && params.Configuration.ReplayAfter != nil { + data.Set("Configuration.ReplayAfter", string(*params.Configuration.ReplayAfter)) + } + if params != nil && params.Configuration.Triggers != nil { + data.Set("Configuration.Triggers", *params.Configuration.Triggers) + } + if params != nil && params.Configuration.Url != nil { + data.Set("Configuration.Url", *params.Configuration.Url) + } + if params != nil && params.Target != nil { + data.Set("Target", *params.Target) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateServiceRoleParams Optional parameters for the method 'CreateServiceRole' +type CreateServiceRoleParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` + Permission *[]string `json:"Permission,omitempty"` + Type *string `json:"Type,omitempty"` +} + +/* +CreateServiceRole Method for CreateServiceRole +Create a new user role in your service + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to create the Role resource under. + * @param optional nil or *CreateServiceRoleOpts - Optional Parameters: + * @param "FriendlyName" (string) - A descriptive string that you create to describe the new resource. It can be up to 64 characters long. + * @param "Permission" ([]string) - A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type`. + * @param "Type" (string) - The type of role. Can be: `conversation` for [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) roles or `service` for [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) roles. +@return ConversationsV1ServiceServiceRole +*/ +func (c *DefaultApiService) CreateServiceRole(chatServiceSid string, params *CreateServiceRoleParams) (*ConversationsV1ServiceServiceRole, error) { + path := "/v1/Services/{ChatServiceSid}/Roles" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Permission != nil { + data.Set("Permission", *params.Permission) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceRole{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateServiceUserParams Optional parameters for the method 'CreateServiceUser' +type CreateServiceUserParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Identity *string `json:"Identity,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` +} + +/* +CreateServiceUser Method for CreateServiceUser +Add a new conversation user to your service + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the User resource is associated with. + * @param optional nil or *CreateServiceUserOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "Attributes" (string) - The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned. + * @param "FriendlyName" (string) - The string that you assigned to describe the resource. + * @param "Identity" (string) - The application-defined string that uniquely identifies the resource's User within the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource). This value is often a username or an email address, and is case-sensitive. + * @param "RoleSid" (string) - The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user. +@return ConversationsV1ServiceServiceUser +*/ +func (c *DefaultApiService) CreateServiceUser(chatServiceSid string, params *CreateServiceUserParams) (*ConversationsV1ServiceServiceUser, error) { + path := "/v1/Services/{ChatServiceSid}/Users" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceUser{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateUserParams Optional parameters for the method 'CreateUser' +type CreateUserParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Identity *string `json:"Identity,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` +} + +/* +CreateUser Method for CreateUser +Add a new conversation user to your account's default service + * @param optional nil or *CreateUserOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "Attributes" (string) - The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned. + * @param "FriendlyName" (string) - The string that you assigned to describe the resource. + * @param "Identity" (string) - The application-defined string that uniquely identifies the resource's User within the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource). This value is often a username or an email address, and is case-sensitive. + * @param "RoleSid" (string) - The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user. +@return ConversationsV1User +*/ +func (c *DefaultApiService) CreateUser(params *CreateUserParams) (*ConversationsV1User, error) { + path := "/v1/Users" + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1User{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// DeleteConversationParams Optional parameters for the method 'DeleteConversation' +type DeleteConversationParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` +} + +/* +DeleteConversation Method for DeleteConversation +Remove a conversation from your account's default service + * @param sid A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. + * @param optional nil or *DeleteConversationOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header +*/ +func (c *DefaultApiService) DeleteConversation(sid string, params *DeleteConversationParams) (error) { + path := "/v1/Conversations/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} +// DeleteConversationMessageParams Optional parameters for the method 'DeleteConversationMessage' +type DeleteConversationMessageParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` +} + +/* +DeleteConversationMessage Method for DeleteConversationMessage +Remove a message from the conversation + * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. + * @param sid A 34 character string that uniquely identifies this resource. + * @param optional nil or *DeleteConversationMessageOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header +*/ +func (c *DefaultApiService) DeleteConversationMessage(conversationSid string, sid string, params *DeleteConversationMessageParams) (error) { + path := "/v1/Conversations/{ConversationSid}/Messages/{Sid}" + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} +// DeleteConversationParticipantParams Optional parameters for the method 'DeleteConversationParticipant' +type DeleteConversationParticipantParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` +} + +/* +DeleteConversationParticipant Method for DeleteConversationParticipant +Remove a participant from the conversation + * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. + * @param sid A 34 character string that uniquely identifies this resource. + * @param optional nil or *DeleteConversationParticipantOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header +*/ +func (c *DefaultApiService) DeleteConversationParticipant(conversationSid string, sid string, params *DeleteConversationParticipantParams) (error) { + path := "/v1/Conversations/{ConversationSid}/Participants/{Sid}" + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteConversationScopedWebhook Method for DeleteConversationScopedWebhook +Remove an existing webhook scoped to the conversation + * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. + * @param sid A 34 character string that uniquely identifies this resource. +*/ +func (c *DefaultApiService) DeleteConversationScopedWebhook(conversationSid string, sid string) (error) { + path := "/v1/Conversations/{ConversationSid}/Webhooks/{Sid}" + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteCredential Method for DeleteCredential +Remove a push notification credential from your account + * @param sid A 34 character string that uniquely identifies this resource. +*/ +func (c *DefaultApiService) DeleteCredential(sid string) (error) { + path := "/v1/Credentials/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteRole Method for DeleteRole +Remove a user role from your account's default service + * @param sid The SID of the Role resource to delete. +*/ +func (c *DefaultApiService) DeleteRole(sid string) (error) { + path := "/v1/Roles/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteService Method for DeleteService +Remove a conversation service with all its nested resources from your account + * @param sid A 34 character string that uniquely identifies this resource. +*/ +func (c *DefaultApiService) DeleteService(sid string) (error) { + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteServiceBinding Method for DeleteServiceBinding +Remove a push notification binding from the conversation service + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to delete the Binding resource from. + * @param sid The SID of the Binding resource to delete. +*/ +func (c *DefaultApiService) DeleteServiceBinding(chatServiceSid string, sid string) (error) { + path := "/v1/Services/{ChatServiceSid}/Bindings/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} +// DeleteServiceConversationParams Optional parameters for the method 'DeleteServiceConversation' +type DeleteServiceConversationParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` +} + +/* +DeleteServiceConversation Method for DeleteServiceConversation +Remove a conversation from your service + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. + * @param sid A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. + * @param optional nil or *DeleteServiceConversationOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header +*/ +func (c *DefaultApiService) DeleteServiceConversation(chatServiceSid string, sid string, params *DeleteServiceConversationParams) (error) { + path := "/v1/Services/{ChatServiceSid}/Conversations/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} +// DeleteServiceConversationMessageParams Optional parameters for the method 'DeleteServiceConversationMessage' +type DeleteServiceConversationMessageParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` +} + +/* +DeleteServiceConversationMessage Method for DeleteServiceConversationMessage +Remove a message from the conversation + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. + * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. + * @param sid A 34 character string that uniquely identifies this resource. + * @param optional nil or *DeleteServiceConversationMessageOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header +*/ +func (c *DefaultApiService) DeleteServiceConversationMessage(chatServiceSid string, conversationSid string, sid string, params *DeleteServiceConversationMessageParams) (error) { + path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} +// DeleteServiceConversationParticipantParams Optional parameters for the method 'DeleteServiceConversationParticipant' +type DeleteServiceConversationParticipantParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` +} + +/* +DeleteServiceConversationParticipant Method for DeleteServiceConversationParticipant +Remove a participant from the conversation + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. + * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. + * @param sid A 34 character string that uniquely identifies this resource. + * @param optional nil or *DeleteServiceConversationParticipantOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header +*/ +func (c *DefaultApiService) DeleteServiceConversationParticipant(chatServiceSid string, conversationSid string, sid string, params *DeleteServiceConversationParticipantParams) (error) { + path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteServiceConversationScopedWebhook Method for DeleteServiceConversationScopedWebhook +Remove an existing webhook scoped to the conversation + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. + * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. + * @param sid A 34 character string that uniquely identifies this resource. +*/ +func (c *DefaultApiService) DeleteServiceConversationScopedWebhook(chatServiceSid string, conversationSid string, sid string) (error) { + path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteServiceRole Method for DeleteServiceRole +Remove a user role from your service + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to delete the Role resource from. + * @param sid The SID of the Role resource to delete. +*/ +func (c *DefaultApiService) DeleteServiceRole(chatServiceSid string, sid string) (error) { + path := "/v1/Services/{ChatServiceSid}/Roles/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} +// DeleteServiceUserParams Optional parameters for the method 'DeleteServiceUser' +type DeleteServiceUserParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` +} + +/* +DeleteServiceUser Method for DeleteServiceUser +Remove a conversation user from your service + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to delete the User resource from. + * @param sid The SID of the User resource to delete. This value can be either the `sid` or the `identity` of the User resource to delete. + * @param optional nil or *DeleteServiceUserOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header +*/ +func (c *DefaultApiService) DeleteServiceUser(chatServiceSid string, sid string, params *DeleteServiceUserParams) (error) { + path := "/v1/Services/{ChatServiceSid}/Users/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} +// DeleteUserParams Optional parameters for the method 'DeleteUser' +type DeleteUserParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` +} + +/* +DeleteUser Method for DeleteUser +Remove a conversation user from your account's default service + * @param sid The SID of the User resource to delete. This value can be either the `sid` or the `identity` of the User resource to delete. + * @param optional nil or *DeleteUserOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header +*/ +func (c *DefaultApiService) DeleteUser(sid string, params *DeleteUserParams) (error) { + path := "/v1/Users/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +FetchConfiguration Method for FetchConfiguration +Fetch the global configuration of conversations on your account +@return ConversationsV1Configuration +*/ +func (c *DefaultApiService) FetchConfiguration() (*ConversationsV1Configuration, error) { + path := "/v1/Configuration" + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1Configuration{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchConfigurationWebhook Method for FetchConfigurationWebhook +@return ConversationsV1ConfigurationConfigurationWebhook +*/ +func (c *DefaultApiService) FetchConfigurationWebhook() (*ConversationsV1ConfigurationConfigurationWebhook, error) { + path := "/v1/Configuration/Webhooks" + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ConfigurationConfigurationWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchConversation Method for FetchConversation +Fetch a conversation from your account's default service + * @param sid A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. +@return ConversationsV1Conversation +*/ +func (c *DefaultApiService) FetchConversation(sid string) (*ConversationsV1Conversation, error) { + path := "/v1/Conversations/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1Conversation{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchConversationMessage Method for FetchConversationMessage +Fetch a message from the conversation + * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. + * @param sid A 34 character string that uniquely identifies this resource. +@return ConversationsV1ConversationConversationMessage +*/ +func (c *DefaultApiService) FetchConversationMessage(conversationSid string, sid string) (*ConversationsV1ConversationConversationMessage, error) { + path := "/v1/Conversations/{ConversationSid}/Messages/{Sid}" + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ConversationConversationMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchConversationMessageReceipt Method for FetchConversationMessageReceipt +Fetch the delivery and read receipts of the conversation message + * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. + * @param messageSid The SID of the message within a [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) the delivery receipt belongs to. + * @param sid A 34 character string that uniquely identifies this resource. +@return ConversationsV1ConversationConversationMessageConversationMessageReceipt +*/ +func (c *DefaultApiService) FetchConversationMessageReceipt(conversationSid string, messageSid string, sid string) (*ConversationsV1ConversationConversationMessageConversationMessageReceipt, error) { + path := "/v1/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts/{Sid}" + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"MessageSid"+"}", messageSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ConversationConversationMessageConversationMessageReceipt{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchConversationParticipant Method for FetchConversationParticipant +Fetch a participant of the conversation + * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. + * @param sid A 34 character string that uniquely identifies this resource. +@return ConversationsV1ConversationConversationParticipant +*/ +func (c *DefaultApiService) FetchConversationParticipant(conversationSid string, sid string) (*ConversationsV1ConversationConversationParticipant, error) { + path := "/v1/Conversations/{ConversationSid}/Participants/{Sid}" + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ConversationConversationParticipant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchConversationScopedWebhook Method for FetchConversationScopedWebhook +Fetch the configuration of a conversation-scoped webhook + * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. + * @param sid A 34 character string that uniquely identifies this resource. +@return ConversationsV1ConversationConversationScopedWebhook +*/ +func (c *DefaultApiService) FetchConversationScopedWebhook(conversationSid string, sid string) (*ConversationsV1ConversationConversationScopedWebhook, error) { + path := "/v1/Conversations/{ConversationSid}/Webhooks/{Sid}" + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ConversationConversationScopedWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchCredential Method for FetchCredential +Fetch a push notification credential from your account + * @param sid A 34 character string that uniquely identifies this resource. +@return ConversationsV1Credential +*/ +func (c *DefaultApiService) FetchCredential(sid string) (*ConversationsV1Credential, error) { + path := "/v1/Credentials/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1Credential{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchRole Method for FetchRole +Fetch a user role from your account's default service + * @param sid The SID of the Role resource to fetch. +@return ConversationsV1Role +*/ +func (c *DefaultApiService) FetchRole(sid string) (*ConversationsV1Role, error) { + path := "/v1/Roles/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1Role{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchService Method for FetchService +Fetch a conversation service from your account + * @param sid A 34 character string that uniquely identifies this resource. +@return ConversationsV1Service +*/ +func (c *DefaultApiService) FetchService(sid string) (*ConversationsV1Service, error) { + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchServiceBinding Method for FetchServiceBinding +Fetch a push notification binding from the conversation service + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Binding resource is associated with. + * @param sid A 34 character string that uniquely identifies this resource. +@return ConversationsV1ServiceServiceBinding +*/ +func (c *DefaultApiService) FetchServiceBinding(chatServiceSid string, sid string) (*ConversationsV1ServiceServiceBinding, error) { + path := "/v1/Services/{ChatServiceSid}/Bindings/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceBinding{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchServiceConfiguration Method for FetchServiceConfiguration +Fetch the configuration of a conversation service + * @param chatServiceSid The SID of the Service configuration resource to fetch. +@return ConversationsV1ServiceServiceConfiguration +*/ +func (c *DefaultApiService) FetchServiceConfiguration(chatServiceSid string) (*ConversationsV1ServiceServiceConfiguration, error) { + path := "/v1/Services/{ChatServiceSid}/Configuration" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceConfiguration{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchServiceConversation Method for FetchServiceConversation +Fetch a conversation from your service + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. + * @param sid A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. +@return ConversationsV1ServiceServiceConversation +*/ +func (c *DefaultApiService) FetchServiceConversation(chatServiceSid string, sid string) (*ConversationsV1ServiceServiceConversation, error) { + path := "/v1/Services/{ChatServiceSid}/Conversations/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceConversation{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchServiceConversationMessage Method for FetchServiceConversationMessage +Fetch a message from the conversation + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. + * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. + * @param sid A 34 character string that uniquely identifies this resource. +@return ConversationsV1ServiceServiceConversationServiceConversationMessage +*/ +func (c *DefaultApiService) FetchServiceConversationMessage(chatServiceSid string, conversationSid string, sid string) (*ConversationsV1ServiceServiceConversationServiceConversationMessage, error) { + path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceConversationServiceConversationMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchServiceConversationMessageReceipt Method for FetchServiceConversationMessageReceipt +Fetch the delivery and read receipts of the conversation message + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Message resource is associated with. + * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. + * @param messageSid The SID of the message within a [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) the delivery receipt belongs to. + * @param sid A 34 character string that uniquely identifies this resource. +@return ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt +*/ +func (c *DefaultApiService) FetchServiceConversationMessageReceipt(chatServiceSid string, conversationSid string, messageSid string, sid string) (*ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt, error) { + path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"MessageSid"+"}", messageSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchServiceConversationParticipant Method for FetchServiceConversationParticipant +Fetch a participant of the conversation + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. + * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. + * @param sid A 34 character string that uniquely identifies this resource. +@return ConversationsV1ServiceServiceConversationServiceConversationParticipant +*/ +func (c *DefaultApiService) FetchServiceConversationParticipant(chatServiceSid string, conversationSid string, sid string) (*ConversationsV1ServiceServiceConversationServiceConversationParticipant, error) { + path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceConversationServiceConversationParticipant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchServiceConversationScopedWebhook Method for FetchServiceConversationScopedWebhook +Fetch the configuration of a conversation-scoped webhook + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. + * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. + * @param sid A 34 character string that uniquely identifies this resource. +@return ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook +*/ +func (c *DefaultApiService) FetchServiceConversationScopedWebhook(chatServiceSid string, conversationSid string, sid string) (*ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook, error) { + path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchServiceNotification Method for FetchServiceNotification +Fetch push notification service settings + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Configuration applies to. +@return ConversationsV1ServiceServiceConfigurationServiceNotification +*/ +func (c *DefaultApiService) FetchServiceNotification(chatServiceSid string) (*ConversationsV1ServiceServiceConfigurationServiceNotification, error) { + path := "/v1/Services/{ChatServiceSid}/Configuration/Notifications" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceConfigurationServiceNotification{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchServiceRole Method for FetchServiceRole +Fetch a user role from your service + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to fetch the Role resource from. + * @param sid The SID of the Role resource to fetch. +@return ConversationsV1ServiceServiceRole +*/ +func (c *DefaultApiService) FetchServiceRole(chatServiceSid string, sid string) (*ConversationsV1ServiceServiceRole, error) { + path := "/v1/Services/{ChatServiceSid}/Roles/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceRole{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchServiceUser Method for FetchServiceUser +Fetch a conversation user from your service + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to fetch the User resource from. + * @param sid The SID of the User resource to fetch. This value can be either the `sid` or the `identity` of the User resource to fetch. +@return ConversationsV1ServiceServiceUser +*/ +func (c *DefaultApiService) FetchServiceUser(chatServiceSid string, sid string) (*ConversationsV1ServiceServiceUser, error) { + path := "/v1/Services/{ChatServiceSid}/Users/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceUser{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchUser Method for FetchUser +Fetch a conversation user from your account's default service + * @param sid The SID of the User resource to fetch. This value can be either the `sid` or the `identity` of the User resource to fetch. +@return ConversationsV1User +*/ +func (c *DefaultApiService) FetchUser(sid string) (*ConversationsV1User, error) { + path := "/v1/Users/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1User{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListConversationParams Optional parameters for the method 'ListConversation' +type ListConversationParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListConversation Method for ListConversation +Retrieve a list of conversations in your account's default service + * @param optional nil or *ListConversationOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ConversationsV1ConversationReadResponse +*/ +func (c *DefaultApiService) ListConversation(params *ListConversationParams) (*ConversationsV1ConversationReadResponse, error) { + path := "/v1/Conversations" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ConversationReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListConversationMessageParams Optional parameters for the method 'ListConversationMessage' +type ListConversationMessageParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListConversationMessage Method for ListConversationMessage +Retrieve a list of all messages in the conversation + * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for messages. + * @param optional nil or *ListConversationMessageOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ConversationsV1ConversationConversationMessageReadResponse +*/ +func (c *DefaultApiService) ListConversationMessage(conversationSid string, params *ListConversationMessageParams) (*ConversationsV1ConversationConversationMessageReadResponse, error) { + path := "/v1/Conversations/{ConversationSid}/Messages" + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ConversationConversationMessageReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListConversationMessageReceiptParams Optional parameters for the method 'ListConversationMessageReceipt' +type ListConversationMessageReceiptParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListConversationMessageReceipt Method for ListConversationMessageReceipt +Retrieve a list of all delivery and read receipts of the conversation message + * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. + * @param messageSid The SID of the message within a [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) the delivery receipt belongs to. + * @param optional nil or *ListConversationMessageReceiptOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse +*/ +func (c *DefaultApiService) ListConversationMessageReceipt(conversationSid string, messageSid string, params *ListConversationMessageReceiptParams) (*ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse, error) { + path := "/v1/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts" + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"MessageSid"+"}", messageSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListConversationParticipantParams Optional parameters for the method 'ListConversationParticipant' +type ListConversationParticipantParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListConversationParticipant Method for ListConversationParticipant +Retrieve a list of all participants of the conversation + * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for participants. + * @param optional nil or *ListConversationParticipantOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ConversationsV1ConversationConversationParticipantReadResponse +*/ +func (c *DefaultApiService) ListConversationParticipant(conversationSid string, params *ListConversationParticipantParams) (*ConversationsV1ConversationConversationParticipantReadResponse, error) { + path := "/v1/Conversations/{ConversationSid}/Participants" + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ConversationConversationParticipantReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListConversationScopedWebhookParams Optional parameters for the method 'ListConversationScopedWebhook' +type ListConversationScopedWebhookParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListConversationScopedWebhook Method for ListConversationScopedWebhook +Retrieve a list of all webhooks scoped to the conversation + * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. + * @param optional nil or *ListConversationScopedWebhookOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ConversationsV1ConversationConversationScopedWebhookReadResponse +*/ +func (c *DefaultApiService) ListConversationScopedWebhook(conversationSid string, params *ListConversationScopedWebhookParams) (*ConversationsV1ConversationConversationScopedWebhookReadResponse, error) { + path := "/v1/Conversations/{ConversationSid}/Webhooks" + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ConversationConversationScopedWebhookReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListCredentialParams Optional parameters for the method 'ListCredential' +type ListCredentialParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListCredential Method for ListCredential +Retrieve a list of all push notification credentials on your account + * @param optional nil or *ListCredentialOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ConversationsV1CredentialReadResponse +*/ +func (c *DefaultApiService) ListCredential(params *ListCredentialParams) (*ConversationsV1CredentialReadResponse, error) { + path := "/v1/Credentials" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1CredentialReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListRoleParams Optional parameters for the method 'ListRole' +type ListRoleParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListRole Method for ListRole +Retrieve a list of all user roles in your account's default service + * @param optional nil or *ListRoleOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ConversationsV1RoleReadResponse +*/ +func (c *DefaultApiService) ListRole(params *ListRoleParams) (*ConversationsV1RoleReadResponse, error) { + path := "/v1/Roles" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1RoleReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListServiceParams Optional parameters for the method 'ListService' +type ListServiceParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListService Method for ListService +Retrieve a list of all conversation services on your account + * @param optional nil or *ListServiceOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ConversationsV1ServiceReadResponse +*/ +func (c *DefaultApiService) ListService(params *ListServiceParams) (*ConversationsV1ServiceReadResponse, error) { + path := "/v1/Services" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListServiceBindingParams Optional parameters for the method 'ListServiceBinding' +type ListServiceBindingParams struct { + BindingType *[]string `json:"BindingType,omitempty"` + Identity *[]string `json:"Identity,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListServiceBinding Method for ListServiceBinding +Retrieve a list of all push notification bindings in the conversation service + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Binding resource is associated with. + * @param optional nil or *ListServiceBindingOpts - Optional Parameters: + * @param "BindingType" ([]string) - The push technology used by the Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. + * @param "Identity" ([]string) - The identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more details. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ConversationsV1ServiceServiceBindingReadResponse +*/ +func (c *DefaultApiService) ListServiceBinding(chatServiceSid string, params *ListServiceBindingParams) (*ConversationsV1ServiceServiceBindingReadResponse, error) { + path := "/v1/Services/{ChatServiceSid}/Bindings" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.BindingType != nil { + data.Set("BindingType", string(*params.BindingType)) + } + if params != nil && params.Identity != nil { + data.Set("Identity", string(*params.Identity)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceBindingReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListServiceConversationParams Optional parameters for the method 'ListServiceConversation' +type ListServiceConversationParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListServiceConversation Method for ListServiceConversation +Retrieve a list of conversations in your service + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. + * @param optional nil or *ListServiceConversationOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ConversationsV1ServiceServiceConversationReadResponse +*/ +func (c *DefaultApiService) ListServiceConversation(chatServiceSid string, params *ListServiceConversationParams) (*ConversationsV1ServiceServiceConversationReadResponse, error) { + path := "/v1/Services/{ChatServiceSid}/Conversations" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceConversationReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListServiceConversationMessageParams Optional parameters for the method 'ListServiceConversationMessage' +type ListServiceConversationMessageParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListServiceConversationMessage Method for ListServiceConversationMessage +Retrieve a list of all messages in the conversation + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. + * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for messages. + * @param optional nil or *ListServiceConversationMessageOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse +*/ +func (c *DefaultApiService) ListServiceConversationMessage(chatServiceSid string, conversationSid string, params *ListServiceConversationMessageParams) (*ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse, error) { + path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListServiceConversationMessageReceiptParams Optional parameters for the method 'ListServiceConversationMessageReceipt' +type ListServiceConversationMessageReceiptParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListServiceConversationMessageReceipt Method for ListServiceConversationMessageReceipt +Retrieve a list of all delivery and read receipts of the conversation message + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Message resource is associated with. + * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. + * @param messageSid The SID of the message within a [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) the delivery receipt belongs to. + * @param optional nil or *ListServiceConversationMessageReceiptOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse +*/ +func (c *DefaultApiService) ListServiceConversationMessageReceipt(chatServiceSid string, conversationSid string, messageSid string, params *ListServiceConversationMessageReceiptParams) (*ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse, error) { + path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"MessageSid"+"}", messageSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListServiceConversationParticipantParams Optional parameters for the method 'ListServiceConversationParticipant' +type ListServiceConversationParticipantParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListServiceConversationParticipant Method for ListServiceConversationParticipant +Retrieve a list of all participants of the conversation + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. + * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for participants. + * @param optional nil or *ListServiceConversationParticipantOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse +*/ +func (c *DefaultApiService) ListServiceConversationParticipant(chatServiceSid string, conversationSid string, params *ListServiceConversationParticipantParams) (*ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse, error) { + path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListServiceConversationScopedWebhookParams Optional parameters for the method 'ListServiceConversationScopedWebhook' +type ListServiceConversationScopedWebhookParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListServiceConversationScopedWebhook Method for ListServiceConversationScopedWebhook +Retrieve a list of all webhooks scoped to the conversation + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. + * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. + * @param optional nil or *ListServiceConversationScopedWebhookOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse +*/ +func (c *DefaultApiService) ListServiceConversationScopedWebhook(chatServiceSid string, conversationSid string, params *ListServiceConversationScopedWebhookParams) (*ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse, error) { + path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListServiceRoleParams Optional parameters for the method 'ListServiceRole' +type ListServiceRoleParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListServiceRole Method for ListServiceRole +Retrieve a list of all user roles in your service + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to read the Role resources from. + * @param optional nil or *ListServiceRoleOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ConversationsV1ServiceServiceRoleReadResponse +*/ +func (c *DefaultApiService) ListServiceRole(chatServiceSid string, params *ListServiceRoleParams) (*ConversationsV1ServiceServiceRoleReadResponse, error) { + path := "/v1/Services/{ChatServiceSid}/Roles" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceRoleReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListServiceUserParams Optional parameters for the method 'ListServiceUser' +type ListServiceUserParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListServiceUser Method for ListServiceUser +Retrieve a list of all conversation users in your service + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to read the User resources from. + * @param optional nil or *ListServiceUserOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ConversationsV1ServiceServiceUserReadResponse +*/ +func (c *DefaultApiService) ListServiceUser(chatServiceSid string, params *ListServiceUserParams) (*ConversationsV1ServiceServiceUserReadResponse, error) { + path := "/v1/Services/{ChatServiceSid}/Users" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceUserReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListUserParams Optional parameters for the method 'ListUser' +type ListUserParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListUser Method for ListUser +Retrieve a list of all conversation users in your account's default service + * @param optional nil or *ListUserOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ConversationsV1UserReadResponse +*/ +func (c *DefaultApiService) ListUser(params *ListUserParams) (*ConversationsV1UserReadResponse, error) { + path := "/v1/Users" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1UserReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateConfigurationParams Optional parameters for the method 'UpdateConfiguration' +type UpdateConfigurationParams struct { + DefaultChatServiceSid *string `json:"DefaultChatServiceSid,omitempty"` + DefaultClosedTimer *string `json:"DefaultClosedTimer,omitempty"` + DefaultInactiveTimer *string `json:"DefaultInactiveTimer,omitempty"` + DefaultMessagingServiceSid *string `json:"DefaultMessagingServiceSid,omitempty"` +} + +/* +UpdateConfiguration Method for UpdateConfiguration +Update the global configuration of conversations on your account + * @param optional nil or *UpdateConfigurationOpts - Optional Parameters: + * @param "DefaultChatServiceSid" (string) - The SID of the default [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to use when creating a conversation. + * @param "DefaultClosedTimer" (string) - Default ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. + * @param "DefaultInactiveTimer" (string) - Default ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. + * @param "DefaultMessagingServiceSid" (string) - The SID of the default [Messaging Service](https://www.twilio.com/docs/sms/services/api) to use when creating a conversation. +@return ConversationsV1Configuration +*/ +func (c *DefaultApiService) UpdateConfiguration(params *UpdateConfigurationParams) (*ConversationsV1Configuration, error) { + path := "/v1/Configuration" + + data := url.Values{} + headers := 0 + + if params != nil && params.DefaultChatServiceSid != nil { + data.Set("DefaultChatServiceSid", *params.DefaultChatServiceSid) + } + if params != nil && params.DefaultClosedTimer != nil { + data.Set("DefaultClosedTimer", *params.DefaultClosedTimer) + } + if params != nil && params.DefaultInactiveTimer != nil { + data.Set("DefaultInactiveTimer", *params.DefaultInactiveTimer) + } + if params != nil && params.DefaultMessagingServiceSid != nil { + data.Set("DefaultMessagingServiceSid", *params.DefaultMessagingServiceSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1Configuration{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateConfigurationWebhookParams Optional parameters for the method 'UpdateConfigurationWebhook' +type UpdateConfigurationWebhookParams struct { + Filters *[]string `json:"Filters,omitempty"` + Method *string `json:"Method,omitempty"` + PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"` + PreWebhookUrl *string `json:"PreWebhookUrl,omitempty"` + Target *string `json:"Target,omitempty"` +} + +/* +UpdateConfigurationWebhook Method for UpdateConfigurationWebhook + * @param optional nil or *UpdateConfigurationWebhookOpts - Optional Parameters: + * @param "Filters" ([]string) - The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved` + * @param "Method" (string) - The HTTP method to be used when sending a webhook request. + * @param "PostWebhookUrl" (string) - The absolute url the post-event webhook request should be sent to. + * @param "PreWebhookUrl" (string) - The absolute url the pre-event webhook request should be sent to. + * @param "Target" (string) - The routing target of the webhook. +@return ConversationsV1ConfigurationConfigurationWebhook +*/ +func (c *DefaultApiService) UpdateConfigurationWebhook(params *UpdateConfigurationWebhookParams) (*ConversationsV1ConfigurationConfigurationWebhook, error) { + path := "/v1/Configuration/Webhooks" + + data := url.Values{} + headers := 0 + + if params != nil && params.Filters != nil { + data.Set("Filters", *params.Filters) + } + if params != nil && params.Method != nil { + data.Set("Method", *params.Method) + } + if params != nil && params.PostWebhookUrl != nil { + data.Set("PostWebhookUrl", *params.PostWebhookUrl) + } + if params != nil && params.PreWebhookUrl != nil { + data.Set("PreWebhookUrl", *params.PreWebhookUrl) + } + if params != nil && params.Target != nil { + data.Set("Target", *params.Target) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ConfigurationConfigurationWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateConversationParams Optional parameters for the method 'UpdateConversation' +type UpdateConversationParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` + State *string `json:"State,omitempty"` + Timers.Closed *string `json:"Timers.Closed,omitempty"` + Timers.Inactive *string `json:"Timers.Inactive,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +UpdateConversation Method for UpdateConversation +Update an existing conversation in your account's default service + * @param sid A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. + * @param optional nil or *UpdateConversationOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "Attributes" (string) - An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. + * @param "DateCreated" (time.Time) - The date that this resource was created. + * @param "DateUpdated" (time.Time) - The date that this resource was last updated. + * @param "FriendlyName" (string) - The human-readable name of this conversation, limited to 256 characters. Optional. + * @param "MessagingServiceSid" (string) - The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. + * @param "State" (string) - Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` + * @param "Timers.Closed" (string) - ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. + * @param "Timers.Inactive" (string) - ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. + * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. +@return ConversationsV1Conversation +*/ +func (c *DefaultApiService) UpdateConversation(sid string, params *UpdateConversationParams) (*ConversationsV1Conversation, error) { + path := "/v1/Conversations/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.MessagingServiceSid != nil { + data.Set("MessagingServiceSid", *params.MessagingServiceSid) + } + if params != nil && params.State != nil { + data.Set("State", *params.State) + } + if params != nil && params.Timers.Closed != nil { + data.Set("Timers.Closed", *params.Timers.Closed) + } + if params != nil && params.Timers.Inactive != nil { + data.Set("Timers.Inactive", *params.Timers.Inactive) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1Conversation{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateConversationMessageParams Optional parameters for the method 'UpdateConversationMessage' +type UpdateConversationMessageParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + Author *string `json:"Author,omitempty"` + Body *string `json:"Body,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` +} + +/* +UpdateConversationMessage Method for UpdateConversationMessage +Update an existing message in the conversation + * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. + * @param sid A 34 character string that uniquely identifies this resource. + * @param optional nil or *UpdateConversationMessageOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "Attributes" (string) - A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. + * @param "Author" (string) - The channel specific identifier of the message's author. Defaults to `system`. + * @param "Body" (string) - The content of the message, can be up to 1,600 characters long. + * @param "DateCreated" (time.Time) - The date that this resource was created. + * @param "DateUpdated" (time.Time) - The date that this resource was last updated. `null` if the message has not been edited. +@return ConversationsV1ConversationConversationMessage +*/ +func (c *DefaultApiService) UpdateConversationMessage(conversationSid string, sid string, params *UpdateConversationMessageParams) (*ConversationsV1ConversationConversationMessage, error) { + path := "/v1/Conversations/{ConversationSid}/Messages/{Sid}" + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.Author != nil { + data.Set("Author", *params.Author) + } + if params != nil && params.Body != nil { + data.Set("Body", *params.Body) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ConversationConversationMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateConversationParticipantParams Optional parameters for the method 'UpdateConversationParticipant' +type UpdateConversationParticipantParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + Identity *string `json:"Identity,omitempty"` + LastReadMessageIndex *int32 `json:"LastReadMessageIndex,omitempty"` + LastReadTimestamp *string `json:"LastReadTimestamp,omitempty"` + MessagingBinding.ProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` + MessagingBinding.ProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` +} + +/* +UpdateConversationParticipant Method for UpdateConversationParticipant +Update an existing participant in the conversation + * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. + * @param sid A 34 character string that uniquely identifies this resource. + * @param optional nil or *UpdateConversationParticipantOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "Attributes" (string) - An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. + * @param "DateCreated" (time.Time) - The date that this resource was created. + * @param "DateUpdated" (time.Time) - The date that this resource was last updated. + * @param "Identity" (string) - A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters. + * @param "LastReadMessageIndex" (*int32) - Index of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. + * @param "LastReadTimestamp" (string) - Timestamp of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. + * @param "MessagingBinding.ProjectedAddress" (string) - The address of the Twilio phone number that is used in Group MMS. 'null' value will remove it. + * @param "MessagingBinding.ProxyAddress" (string) - The address of the Twilio phone number that the participant is in contact with. 'null' value will remove it. + * @param "RoleSid" (string) - The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. +@return ConversationsV1ConversationConversationParticipant +*/ +func (c *DefaultApiService) UpdateConversationParticipant(conversationSid string, sid string, params *UpdateConversationParticipantParams) (*ConversationsV1ConversationConversationParticipant, error) { + path := "/v1/Conversations/{ConversationSid}/Participants/{Sid}" + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.LastReadMessageIndex != nil { + data.Set("LastReadMessageIndex", string(*params.LastReadMessageIndex)) + } + if params != nil && params.LastReadTimestamp != nil { + data.Set("LastReadTimestamp", *params.LastReadTimestamp) + } + if params != nil && params.MessagingBinding.ProjectedAddress != nil { + data.Set("MessagingBinding.ProjectedAddress", *params.MessagingBinding.ProjectedAddress) + } + if params != nil && params.MessagingBinding.ProxyAddress != nil { + data.Set("MessagingBinding.ProxyAddress", *params.MessagingBinding.ProxyAddress) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ConversationConversationParticipant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateConversationScopedWebhookParams Optional parameters for the method 'UpdateConversationScopedWebhook' +type UpdateConversationScopedWebhookParams struct { + Configuration.Filters *[]string `json:"Configuration.Filters,omitempty"` + Configuration.FlowSid *string `json:"Configuration.FlowSid,omitempty"` + Configuration.Method *string `json:"Configuration.Method,omitempty"` + Configuration.Triggers *[]string `json:"Configuration.Triggers,omitempty"` + Configuration.Url *string `json:"Configuration.Url,omitempty"` +} + +/* +UpdateConversationScopedWebhook Method for UpdateConversationScopedWebhook +Update an existing conversation-scoped webhook + * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. + * @param sid A 34 character string that uniquely identifies this resource. + * @param optional nil or *UpdateConversationScopedWebhookOpts - Optional Parameters: + * @param "Configuration.Filters" ([]string) - The list of events, firing webhook event for this Conversation. + * @param "Configuration.FlowSid" (string) - The studio flow SID, where the webhook should be sent to. + * @param "Configuration.Method" (string) - The HTTP method to be used when sending a webhook request. + * @param "Configuration.Triggers" ([]string) - The list of keywords, firing webhook event for this Conversation. + * @param "Configuration.Url" (string) - The absolute url the webhook request should be sent to. +@return ConversationsV1ConversationConversationScopedWebhook +*/ +func (c *DefaultApiService) UpdateConversationScopedWebhook(conversationSid string, sid string, params *UpdateConversationScopedWebhookParams) (*ConversationsV1ConversationConversationScopedWebhook, error) { + path := "/v1/Conversations/{ConversationSid}/Webhooks/{Sid}" + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Configuration.Filters != nil { + data.Set("Configuration.Filters", *params.Configuration.Filters) + } + if params != nil && params.Configuration.FlowSid != nil { + data.Set("Configuration.FlowSid", *params.Configuration.FlowSid) + } + if params != nil && params.Configuration.Method != nil { + data.Set("Configuration.Method", *params.Configuration.Method) + } + if params != nil && params.Configuration.Triggers != nil { + data.Set("Configuration.Triggers", *params.Configuration.Triggers) + } + if params != nil && params.Configuration.Url != nil { + data.Set("Configuration.Url", *params.Configuration.Url) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ConversationConversationScopedWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateCredentialParams Optional parameters for the method 'UpdateCredential' +type UpdateCredentialParams struct { + ApiKey *string `json:"ApiKey,omitempty"` + Certificate *string `json:"Certificate,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PrivateKey *string `json:"PrivateKey,omitempty"` + Sandbox *bool `json:"Sandbox,omitempty"` + Secret *string `json:"Secret,omitempty"` + Type *string `json:"Type,omitempty"` +} + +/* +UpdateCredential Method for UpdateCredential +Update an existing push notification credential on your account + * @param sid A 34 character string that uniquely identifies this resource. + * @param optional nil or *UpdateCredentialOpts - Optional Parameters: + * @param "ApiKey" (string) - [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. + * @param "Certificate" (string) - [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== -----END CERTIFICATE-----`. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the new resource. It can be up to 64 characters long. + * @param "PrivateKey" (string) - [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fG... -----END RSA PRIVATE KEY-----`. + * @param "Sandbox" (bool) - [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. + * @param "Secret" (string) - [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. + * @param "Type" (string) - The type of push-notification service the credential is for. Can be: `fcm`, `gcm`, or `apn`. +@return ConversationsV1Credential +*/ +func (c *DefaultApiService) UpdateCredential(sid string, params *UpdateCredentialParams) (*ConversationsV1Credential, error) { + path := "/v1/Credentials/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ApiKey != nil { + data.Set("ApiKey", *params.ApiKey) + } + if params != nil && params.Certificate != nil { + data.Set("Certificate", *params.Certificate) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PrivateKey != nil { + data.Set("PrivateKey", *params.PrivateKey) + } + if params != nil && params.Sandbox != nil { + data.Set("Sandbox", string(*params.Sandbox)) + } + if params != nil && params.Secret != nil { + data.Set("Secret", *params.Secret) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1Credential{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateRoleParams Optional parameters for the method 'UpdateRole' +type UpdateRoleParams struct { + Permission *[]string `json:"Permission,omitempty"` +} + +/* +UpdateRole Method for UpdateRole +Update an existing user role in your account's default service + * @param sid The SID of the Role resource to update. + * @param optional nil or *UpdateRoleOpts - Optional Parameters: + * @param "Permission" ([]string) - A permission that you grant to the role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. Note that the update action replaces all previously assigned permissions with those defined in the update action. To remove a permission, do not include it in the subsequent update action. The values for this parameter depend on the role's `type`. +@return ConversationsV1Role +*/ +func (c *DefaultApiService) UpdateRole(sid string, params *UpdateRoleParams) (*ConversationsV1Role, error) { + path := "/v1/Roles/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Permission != nil { + data.Set("Permission", *params.Permission) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1Role{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateServiceConfigurationParams Optional parameters for the method 'UpdateServiceConfiguration' +type UpdateServiceConfigurationParams struct { + DefaultChatServiceRoleSid *string `json:"DefaultChatServiceRoleSid,omitempty"` + DefaultConversationCreatorRoleSid *string `json:"DefaultConversationCreatorRoleSid,omitempty"` + DefaultConversationRoleSid *string `json:"DefaultConversationRoleSid,omitempty"` + ReachabilityEnabled *bool `json:"ReachabilityEnabled,omitempty"` +} + +/* +UpdateServiceConfiguration Method for UpdateServiceConfiguration +Update configuration settings of a conversation service + * @param chatServiceSid The SID of the Service configuration resource to update. + * @param optional nil or *UpdateServiceConfigurationOpts - Optional Parameters: + * @param "DefaultChatServiceRoleSid" (string) - The service-level role assigned to users when they are added to the service. See the [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles. + * @param "DefaultConversationCreatorRoleSid" (string) - The conversation-level role assigned to a conversation creator when they join a new conversation. See the [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles. + * @param "DefaultConversationRoleSid" (string) - The conversation-level role assigned to users when they are added to a conversation. See the [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles. + * @param "ReachabilityEnabled" (bool) - Whether the [Reachability Indicator](https://www.twilio.com/docs/chat/reachability-indicator) is enabled for this Conversations Service. The default is `false`. +@return ConversationsV1ServiceServiceConfiguration +*/ +func (c *DefaultApiService) UpdateServiceConfiguration(chatServiceSid string, params *UpdateServiceConfigurationParams) (*ConversationsV1ServiceServiceConfiguration, error) { + path := "/v1/Services/{ChatServiceSid}/Configuration" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.DefaultChatServiceRoleSid != nil { + data.Set("DefaultChatServiceRoleSid", *params.DefaultChatServiceRoleSid) + } + if params != nil && params.DefaultConversationCreatorRoleSid != nil { + data.Set("DefaultConversationCreatorRoleSid", *params.DefaultConversationCreatorRoleSid) + } + if params != nil && params.DefaultConversationRoleSid != nil { + data.Set("DefaultConversationRoleSid", *params.DefaultConversationRoleSid) + } + if params != nil && params.ReachabilityEnabled != nil { + data.Set("ReachabilityEnabled", string(*params.ReachabilityEnabled)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceConfiguration{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateServiceConversationParams Optional parameters for the method 'UpdateServiceConversation' +type UpdateServiceConversationParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` + State *string `json:"State,omitempty"` + Timers.Closed *string `json:"Timers.Closed,omitempty"` + Timers.Inactive *string `json:"Timers.Inactive,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +UpdateServiceConversation Method for UpdateServiceConversation +Update an existing conversation in your service + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. + * @param sid A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. + * @param optional nil or *UpdateServiceConversationOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "Attributes" (string) - An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. + * @param "DateCreated" (time.Time) - The date that this resource was created. + * @param "DateUpdated" (time.Time) - The date that this resource was last updated. + * @param "FriendlyName" (string) - The human-readable name of this conversation, limited to 256 characters. Optional. + * @param "MessagingServiceSid" (string) - The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. + * @param "State" (string) - Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` + * @param "Timers.Closed" (string) - ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. + * @param "Timers.Inactive" (string) - ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. + * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. +@return ConversationsV1ServiceServiceConversation +*/ +func (c *DefaultApiService) UpdateServiceConversation(chatServiceSid string, sid string, params *UpdateServiceConversationParams) (*ConversationsV1ServiceServiceConversation, error) { + path := "/v1/Services/{ChatServiceSid}/Conversations/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.MessagingServiceSid != nil { + data.Set("MessagingServiceSid", *params.MessagingServiceSid) + } + if params != nil && params.State != nil { + data.Set("State", *params.State) + } + if params != nil && params.Timers.Closed != nil { + data.Set("Timers.Closed", *params.Timers.Closed) + } + if params != nil && params.Timers.Inactive != nil { + data.Set("Timers.Inactive", *params.Timers.Inactive) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceConversation{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateServiceConversationMessageParams Optional parameters for the method 'UpdateServiceConversationMessage' +type UpdateServiceConversationMessageParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + Author *string `json:"Author,omitempty"` + Body *string `json:"Body,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` +} + +/* +UpdateServiceConversationMessage Method for UpdateServiceConversationMessage +Update an existing message in the conversation + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. + * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. + * @param sid A 34 character string that uniquely identifies this resource. + * @param optional nil or *UpdateServiceConversationMessageOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "Attributes" (string) - A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. + * @param "Author" (string) - The channel specific identifier of the message's author. Defaults to `system`. + * @param "Body" (string) - The content of the message, can be up to 1,600 characters long. + * @param "DateCreated" (time.Time) - The date that this resource was created. + * @param "DateUpdated" (time.Time) - The date that this resource was last updated. `null` if the message has not been edited. +@return ConversationsV1ServiceServiceConversationServiceConversationMessage +*/ +func (c *DefaultApiService) UpdateServiceConversationMessage(chatServiceSid string, conversationSid string, sid string, params *UpdateServiceConversationMessageParams) (*ConversationsV1ServiceServiceConversationServiceConversationMessage, error) { + path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.Author != nil { + data.Set("Author", *params.Author) + } + if params != nil && params.Body != nil { + data.Set("Body", *params.Body) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceConversationServiceConversationMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateServiceConversationParticipantParams Optional parameters for the method 'UpdateServiceConversationParticipant' +type UpdateServiceConversationParticipantParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + Identity *string `json:"Identity,omitempty"` + LastReadMessageIndex *int32 `json:"LastReadMessageIndex,omitempty"` + LastReadTimestamp *string `json:"LastReadTimestamp,omitempty"` + MessagingBinding.ProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` + MessagingBinding.ProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` +} + +/* +UpdateServiceConversationParticipant Method for UpdateServiceConversationParticipant +Update an existing participant in the conversation + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. + * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. + * @param sid A 34 character string that uniquely identifies this resource. + * @param optional nil or *UpdateServiceConversationParticipantOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "Attributes" (string) - An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. + * @param "DateCreated" (time.Time) - The date that this resource was created. + * @param "DateUpdated" (time.Time) - The date that this resource was last updated. + * @param "Identity" (string) - A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversation SDK to communicate. Limited to 256 characters. + * @param "LastReadMessageIndex" (*int32) - Index of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. + * @param "LastReadTimestamp" (string) - Timestamp of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. + * @param "MessagingBinding.ProjectedAddress" (string) - The address of the Twilio phone number that is used in Group MMS. 'null' value will remove it. + * @param "MessagingBinding.ProxyAddress" (string) - The address of the Twilio phone number that the participant is in contact with. 'null' value will remove it. + * @param "RoleSid" (string) - The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. +@return ConversationsV1ServiceServiceConversationServiceConversationParticipant +*/ +func (c *DefaultApiService) UpdateServiceConversationParticipant(chatServiceSid string, conversationSid string, sid string, params *UpdateServiceConversationParticipantParams) (*ConversationsV1ServiceServiceConversationServiceConversationParticipant, error) { + path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.LastReadMessageIndex != nil { + data.Set("LastReadMessageIndex", string(*params.LastReadMessageIndex)) + } + if params != nil && params.LastReadTimestamp != nil { + data.Set("LastReadTimestamp", *params.LastReadTimestamp) + } + if params != nil && params.MessagingBinding.ProjectedAddress != nil { + data.Set("MessagingBinding.ProjectedAddress", *params.MessagingBinding.ProjectedAddress) + } + if params != nil && params.MessagingBinding.ProxyAddress != nil { + data.Set("MessagingBinding.ProxyAddress", *params.MessagingBinding.ProxyAddress) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceConversationServiceConversationParticipant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateServiceConversationScopedWebhookParams Optional parameters for the method 'UpdateServiceConversationScopedWebhook' +type UpdateServiceConversationScopedWebhookParams struct { + Configuration.Filters *[]string `json:"Configuration.Filters,omitempty"` + Configuration.FlowSid *string `json:"Configuration.FlowSid,omitempty"` + Configuration.Method *string `json:"Configuration.Method,omitempty"` + Configuration.Triggers *[]string `json:"Configuration.Triggers,omitempty"` + Configuration.Url *string `json:"Configuration.Url,omitempty"` +} + +/* +UpdateServiceConversationScopedWebhook Method for UpdateServiceConversationScopedWebhook +Update an existing conversation-scoped webhook + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. + * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. + * @param sid A 34 character string that uniquely identifies this resource. + * @param optional nil or *UpdateServiceConversationScopedWebhookOpts - Optional Parameters: + * @param "Configuration.Filters" ([]string) - The list of events, firing webhook event for this Conversation. + * @param "Configuration.FlowSid" (string) - The studio flow SID, where the webhook should be sent to. + * @param "Configuration.Method" (string) - The HTTP method to be used when sending a webhook request. + * @param "Configuration.Triggers" ([]string) - The list of keywords, firing webhook event for this Conversation. + * @param "Configuration.Url" (string) - The absolute url the webhook request should be sent to. +@return ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook +*/ +func (c *DefaultApiService) UpdateServiceConversationScopedWebhook(chatServiceSid string, conversationSid string, sid string, params *UpdateServiceConversationScopedWebhookParams) (*ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook, error) { + path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Configuration.Filters != nil { + data.Set("Configuration.Filters", *params.Configuration.Filters) + } + if params != nil && params.Configuration.FlowSid != nil { + data.Set("Configuration.FlowSid", *params.Configuration.FlowSid) + } + if params != nil && params.Configuration.Method != nil { + data.Set("Configuration.Method", *params.Configuration.Method) + } + if params != nil && params.Configuration.Triggers != nil { + data.Set("Configuration.Triggers", *params.Configuration.Triggers) + } + if params != nil && params.Configuration.Url != nil { + data.Set("Configuration.Url", *params.Configuration.Url) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateServiceNotificationParams Optional parameters for the method 'UpdateServiceNotification' +type UpdateServiceNotificationParams struct { + AddedToConversation.Enabled *bool `json:"AddedToConversation.Enabled,omitempty"` + AddedToConversation.Sound *string `json:"AddedToConversation.Sound,omitempty"` + AddedToConversation.Template *string `json:"AddedToConversation.Template,omitempty"` + LogEnabled *bool `json:"LogEnabled,omitempty"` + NewMessage.BadgeCountEnabled *bool `json:"NewMessage.BadgeCountEnabled,omitempty"` + NewMessage.Enabled *bool `json:"NewMessage.Enabled,omitempty"` + NewMessage.Sound *string `json:"NewMessage.Sound,omitempty"` + NewMessage.Template *string `json:"NewMessage.Template,omitempty"` + RemovedFromConversation.Enabled *bool `json:"RemovedFromConversation.Enabled,omitempty"` + RemovedFromConversation.Sound *string `json:"RemovedFromConversation.Sound,omitempty"` + RemovedFromConversation.Template *string `json:"RemovedFromConversation.Template,omitempty"` +} + +/* +UpdateServiceNotification Method for UpdateServiceNotification +Update push notification service settings + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Configuration applies to. + * @param optional nil or *UpdateServiceNotificationOpts - Optional Parameters: + * @param "AddedToConversation.Enabled" (bool) - Whether to send a notification when a participant is added to a conversation. The default is `false`. + * @param "AddedToConversation.Sound" (string) - The name of the sound to play when a participant is added to a conversation and `added_to_conversation.enabled` is `true`. + * @param "AddedToConversation.Template" (string) - The template to use to create the notification text displayed when a participant is added to a conversation and `added_to_conversation.enabled` is `true`. + * @param "LogEnabled" (bool) - Weather the notification logging is enabled. + * @param "NewMessage.BadgeCountEnabled" (bool) - Whether the new message badge is enabled. The default is `false`. + * @param "NewMessage.Enabled" (bool) - Whether to send a notification when a new message is added to a conversation. The default is `false`. + * @param "NewMessage.Sound" (string) - The name of the sound to play when a new message is added to a conversation and `new_message.enabled` is `true`. + * @param "NewMessage.Template" (string) - The template to use to create the notification text displayed when a new message is added to a conversation and `new_message.enabled` is `true`. + * @param "RemovedFromConversation.Enabled" (bool) - Whether to send a notification to a user when they are removed from a conversation. The default is `false`. + * @param "RemovedFromConversation.Sound" (string) - The name of the sound to play to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`. + * @param "RemovedFromConversation.Template" (string) - The template to use to create the notification text displayed to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`. +@return ConversationsV1ServiceServiceConfigurationServiceNotification +*/ +func (c *DefaultApiService) UpdateServiceNotification(chatServiceSid string, params *UpdateServiceNotificationParams) (*ConversationsV1ServiceServiceConfigurationServiceNotification, error) { + path := "/v1/Services/{ChatServiceSid}/Configuration/Notifications" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AddedToConversation.Enabled != nil { + data.Set("AddedToConversation.Enabled", string(*params.AddedToConversation.Enabled)) + } + if params != nil && params.AddedToConversation.Sound != nil { + data.Set("AddedToConversation.Sound", *params.AddedToConversation.Sound) + } + if params != nil && params.AddedToConversation.Template != nil { + data.Set("AddedToConversation.Template", *params.AddedToConversation.Template) + } + if params != nil && params.LogEnabled != nil { + data.Set("LogEnabled", string(*params.LogEnabled)) + } + if params != nil && params.NewMessage.BadgeCountEnabled != nil { + data.Set("NewMessage.BadgeCountEnabled", string(*params.NewMessage.BadgeCountEnabled)) + } + if params != nil && params.NewMessage.Enabled != nil { + data.Set("NewMessage.Enabled", string(*params.NewMessage.Enabled)) + } + if params != nil && params.NewMessage.Sound != nil { + data.Set("NewMessage.Sound", *params.NewMessage.Sound) + } + if params != nil && params.NewMessage.Template != nil { + data.Set("NewMessage.Template", *params.NewMessage.Template) + } + if params != nil && params.RemovedFromConversation.Enabled != nil { + data.Set("RemovedFromConversation.Enabled", string(*params.RemovedFromConversation.Enabled)) + } + if params != nil && params.RemovedFromConversation.Sound != nil { + data.Set("RemovedFromConversation.Sound", *params.RemovedFromConversation.Sound) + } + if params != nil && params.RemovedFromConversation.Template != nil { + data.Set("RemovedFromConversation.Template", *params.RemovedFromConversation.Template) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceConfigurationServiceNotification{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateServiceRoleParams Optional parameters for the method 'UpdateServiceRole' +type UpdateServiceRoleParams struct { + Permission *[]string `json:"Permission,omitempty"` +} + +/* +UpdateServiceRole Method for UpdateServiceRole +Update an existing user role in your service + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to update the Role resource in. + * @param sid The SID of the Role resource to update. + * @param optional nil or *UpdateServiceRoleOpts - Optional Parameters: + * @param "Permission" ([]string) - A permission that you grant to the role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. Note that the update action replaces all previously assigned permissions with those defined in the update action. To remove a permission, do not include it in the subsequent update action. The values for this parameter depend on the role's `type`. +@return ConversationsV1ServiceServiceRole +*/ +func (c *DefaultApiService) UpdateServiceRole(chatServiceSid string, sid string, params *UpdateServiceRoleParams) (*ConversationsV1ServiceServiceRole, error) { + path := "/v1/Services/{ChatServiceSid}/Roles/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Permission != nil { + data.Set("Permission", *params.Permission) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceRole{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateServiceUserParams Optional parameters for the method 'UpdateServiceUser' +type UpdateServiceUserParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` +} + +/* +UpdateServiceUser Method for UpdateServiceUser +Update an existing conversation user in your service + * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the User resource is associated with. + * @param sid The SID of the User resource to update. This value can be either the `sid` or the `identity` of the User resource to update. + * @param optional nil or *UpdateServiceUserOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "Attributes" (string) - The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned. + * @param "FriendlyName" (string) - The string that you assigned to describe the resource. + * @param "RoleSid" (string) - The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user. +@return ConversationsV1ServiceServiceUser +*/ +func (c *DefaultApiService) UpdateServiceUser(chatServiceSid string, sid string, params *UpdateServiceUserParams) (*ConversationsV1ServiceServiceUser, error) { + path := "/v1/Services/{ChatServiceSid}/Users/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceUser{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateUserParams Optional parameters for the method 'UpdateUser' +type UpdateUserParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` +} + +/* +UpdateUser Method for UpdateUser +Update an existing conversation user in your account's default service + * @param sid The SID of the User resource to update. This value can be either the `sid` or the `identity` of the User resource to update. + * @param optional nil or *UpdateUserOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "Attributes" (string) - The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned. + * @param "FriendlyName" (string) - The string that you assigned to describe the resource. + * @param "RoleSid" (string) - The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user. +@return ConversationsV1User +*/ +func (c *DefaultApiService) UpdateUser(sid string, params *UpdateUserParams) (*ConversationsV1User, error) { + path := "/v1/Users/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1User{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/conversations/v1/docs/ConversationsV1Configuration.md b/rest/conversations/v1/docs/ConversationsV1Configuration.md new file mode 100644 index 000000000..8a0719c5b --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1Configuration.md @@ -0,0 +1,17 @@ +# ConversationsV1Configuration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DefaultChatServiceSid** | **string** | | [optional] +**DefaultClosedTimer** | **string** | | [optional] +**DefaultInactiveTimer** | **string** | | [optional] +**DefaultMessagingServiceSid** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Url** | **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/rest/conversations/v1/docs/ConversationsV1ConfigurationConfigurationWebhook.md b/rest/conversations/v1/docs/ConversationsV1ConfigurationConfigurationWebhook.md new file mode 100644 index 000000000..512dceed8 --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1ConfigurationConfigurationWebhook.md @@ -0,0 +1,17 @@ +# ConversationsV1ConfigurationConfigurationWebhook + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Filters** | **[]string** | | [optional] +**Method** | **string** | | [optional] +**PostWebhookUrl** | **string** | | [optional] +**PreWebhookUrl** | **string** | | [optional] +**Target** | **string** | | [optional] +**Url** | **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/rest/conversations/v1/docs/ConversationsV1Conversation.md b/rest/conversations/v1/docs/ConversationsV1Conversation.md new file mode 100644 index 000000000..26a01c548 --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1Conversation.md @@ -0,0 +1,23 @@ +# ConversationsV1Conversation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Attributes** | **string** | | [optional] +**ChatServiceSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**MessagingServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**State** | **string** | | [optional] +**Timers** | [**map[string]interface{}**](.md) | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **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/rest/conversations/v1/docs/ConversationsV1ConversationConversationMessage.md b/rest/conversations/v1/docs/ConversationsV1ConversationConversationMessage.md new file mode 100644 index 000000000..da9302c5d --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1ConversationConversationMessage.md @@ -0,0 +1,24 @@ +# ConversationsV1ConversationConversationMessage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Attributes** | **string** | | [optional] +**Author** | **string** | | [optional] +**Body** | **string** | | [optional] +**ConversationSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Delivery** | [**map[string]interface{}**](.md) | | [optional] +**Index** | **int32** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Media** | **[]map[string]interface{}** | | [optional] +**ParticipantSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/conversations/v1/docs/ConversationsV1ConversationConversationMessageConversationMessageReceipt.md b/rest/conversations/v1/docs/ConversationsV1ConversationConversationMessageConversationMessageReceipt.md new file mode 100644 index 000000000..2653b53c3 --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1ConversationConversationMessageConversationMessageReceipt.md @@ -0,0 +1,21 @@ +# ConversationsV1ConversationConversationMessageConversationMessageReceipt + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ChannelMessageSid** | **string** | | [optional] +**ConversationSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**ErrorCode** | **int32** | | [optional] +**MessageSid** | **string** | | [optional] +**ParticipantSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Status** | **string** | | [optional] +**Url** | **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/rest/conversations/v1/docs/ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse.md b/rest/conversations/v1/docs/ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse.md new file mode 100644 index 000000000..4a4a84b67 --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse.md @@ -0,0 +1,12 @@ +# ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeliveryReceipts** | [**[]ConversationsV1ConversationConversationMessageConversationMessageReceipt**](conversations.v1.conversation.conversation_message.conversation_message_receipt.md) | | [optional] +**Meta** | [**ConversationsV1ConversationReadResponseMeta**](conversations_v1_conversationReadResponse_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/rest/conversations/v1/docs/ConversationsV1ConversationConversationMessageReadResponse.md b/rest/conversations/v1/docs/ConversationsV1ConversationConversationMessageReadResponse.md new file mode 100644 index 000000000..ffa8bcfcf --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1ConversationConversationMessageReadResponse.md @@ -0,0 +1,12 @@ +# ConversationsV1ConversationConversationMessageReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Messages** | [**[]ConversationsV1ConversationConversationMessage**](conversations.v1.conversation.conversation_message.md) | | [optional] +**Meta** | [**ConversationsV1ConversationReadResponseMeta**](conversations_v1_conversationReadResponse_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/rest/conversations/v1/docs/ConversationsV1ConversationConversationParticipant.md b/rest/conversations/v1/docs/ConversationsV1ConversationConversationParticipant.md new file mode 100644 index 000000000..0c7b124ad --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1ConversationConversationParticipant.md @@ -0,0 +1,22 @@ +# ConversationsV1ConversationConversationParticipant + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Attributes** | **string** | | [optional] +**ConversationSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Identity** | **string** | | [optional] +**LastReadMessageIndex** | Pointer to **int32** | | [optional] +**LastReadTimestamp** | **string** | | [optional] +**MessagingBinding** | [**map[string]interface{}**](.md) | | [optional] +**RoleSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/conversations/v1/docs/ConversationsV1ConversationConversationParticipantReadResponse.md b/rest/conversations/v1/docs/ConversationsV1ConversationConversationParticipantReadResponse.md new file mode 100644 index 000000000..2078f5ebe --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1ConversationConversationParticipantReadResponse.md @@ -0,0 +1,12 @@ +# ConversationsV1ConversationConversationParticipantReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**ConversationsV1ConversationReadResponseMeta**](conversations_v1_conversationReadResponse_meta.md) | | [optional] +**Participants** | [**[]ConversationsV1ConversationConversationParticipant**](conversations.v1.conversation.conversation_participant.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/rest/conversations/v1/docs/ConversationsV1ConversationConversationScopedWebhook.md b/rest/conversations/v1/docs/ConversationsV1ConversationConversationScopedWebhook.md new file mode 100644 index 000000000..dc055a6b7 --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1ConversationConversationScopedWebhook.md @@ -0,0 +1,18 @@ +# ConversationsV1ConversationConversationScopedWebhook + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Configuration** | [**map[string]interface{}**](.md) | | [optional] +**ConversationSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Sid** | **string** | | [optional] +**Target** | **string** | | [optional] +**Url** | **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/rest/conversations/v1/docs/ConversationsV1ConversationConversationScopedWebhookReadResponse.md b/rest/conversations/v1/docs/ConversationsV1ConversationConversationScopedWebhookReadResponse.md new file mode 100644 index 000000000..595701d45 --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1ConversationConversationScopedWebhookReadResponse.md @@ -0,0 +1,12 @@ +# ConversationsV1ConversationConversationScopedWebhookReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**ConversationsV1ConversationReadResponseMeta**](conversations_v1_conversationReadResponse_meta.md) | | [optional] +**Webhooks** | [**[]ConversationsV1ConversationConversationScopedWebhook**](conversations.v1.conversation.conversation_scoped_webhook.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/rest/conversations/v1/docs/ConversationsV1ConversationReadResponse.md b/rest/conversations/v1/docs/ConversationsV1ConversationReadResponse.md new file mode 100644 index 000000000..5c9b377ba --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1ConversationReadResponse.md @@ -0,0 +1,12 @@ +# ConversationsV1ConversationReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Conversations** | [**[]ConversationsV1Conversation**](conversations.v1.conversation.md) | | [optional] +**Meta** | [**ConversationsV1ConversationReadResponseMeta**](conversations_v1_conversationReadResponse_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/rest/conversations/v1/docs/ConversationsV1ConversationReadResponseMeta.md b/rest/conversations/v1/docs/ConversationsV1ConversationReadResponseMeta.md new file mode 100644 index 000000000..9b73491d3 --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1ConversationReadResponseMeta.md @@ -0,0 +1,17 @@ +# ConversationsV1ConversationReadResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/conversations/v1/docs/ConversationsV1Credential.md b/rest/conversations/v1/docs/ConversationsV1Credential.md new file mode 100644 index 000000000..c720ccb11 --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1Credential.md @@ -0,0 +1,18 @@ +# ConversationsV1Credential + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Sandbox** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Type** | **string** | | [optional] +**Url** | **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/rest/conversations/v1/docs/ConversationsV1CredentialReadResponse.md b/rest/conversations/v1/docs/ConversationsV1CredentialReadResponse.md new file mode 100644 index 000000000..4a83e37c2 --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1CredentialReadResponse.md @@ -0,0 +1,12 @@ +# ConversationsV1CredentialReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Credentials** | [**[]ConversationsV1Credential**](conversations.v1.credential.md) | | [optional] +**Meta** | [**ConversationsV1ConversationReadResponseMeta**](conversations_v1_conversationReadResponse_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/rest/conversations/v1/docs/ConversationsV1Role.md b/rest/conversations/v1/docs/ConversationsV1Role.md new file mode 100644 index 000000000..a6fede42b --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1Role.md @@ -0,0 +1,19 @@ +# ConversationsV1Role + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ChatServiceSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Permissions** | **[]string** | | [optional] +**Sid** | **string** | | [optional] +**Type** | **string** | | [optional] +**Url** | **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/rest/conversations/v1/docs/ConversationsV1RoleReadResponse.md b/rest/conversations/v1/docs/ConversationsV1RoleReadResponse.md new file mode 100644 index 000000000..c51e646c1 --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1RoleReadResponse.md @@ -0,0 +1,12 @@ +# ConversationsV1RoleReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**ConversationsV1ConversationReadResponseMeta**](conversations_v1_conversationReadResponse_meta.md) | | [optional] +**Roles** | [**[]ConversationsV1Role**](conversations.v1.role.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/rest/conversations/v1/docs/ConversationsV1Service.md b/rest/conversations/v1/docs/ConversationsV1Service.md new file mode 100644 index 000000000..c50d2924b --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1Service.md @@ -0,0 +1,17 @@ +# ConversationsV1Service + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/conversations/v1/docs/ConversationsV1ServiceReadResponse.md b/rest/conversations/v1/docs/ConversationsV1ServiceReadResponse.md new file mode 100644 index 000000000..54d521615 --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1ServiceReadResponse.md @@ -0,0 +1,12 @@ +# ConversationsV1ServiceReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**ConversationsV1ConversationReadResponseMeta**](conversations_v1_conversationReadResponse_meta.md) | | [optional] +**Services** | [**[]ConversationsV1Service**](conversations.v1.service.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/rest/conversations/v1/docs/ConversationsV1ServiceServiceBinding.md b/rest/conversations/v1/docs/ConversationsV1ServiceServiceBinding.md new file mode 100644 index 000000000..6eeae2ddb --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1ServiceServiceBinding.md @@ -0,0 +1,21 @@ +# ConversationsV1ServiceServiceBinding + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**BindingType** | **string** | | [optional] +**ChatServiceSid** | **string** | | [optional] +**CredentialSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Endpoint** | **string** | | [optional] +**Identity** | **string** | | [optional] +**MessageTypes** | **[]string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/conversations/v1/docs/ConversationsV1ServiceServiceBindingReadResponse.md b/rest/conversations/v1/docs/ConversationsV1ServiceServiceBindingReadResponse.md new file mode 100644 index 000000000..65da241f7 --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1ServiceServiceBindingReadResponse.md @@ -0,0 +1,12 @@ +# ConversationsV1ServiceServiceBindingReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Bindings** | [**[]ConversationsV1ServiceServiceBinding**](conversations.v1.service.service_binding.md) | | [optional] +**Meta** | [**ConversationsV1ConversationReadResponseMeta**](conversations_v1_conversationReadResponse_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/rest/conversations/v1/docs/ConversationsV1ServiceServiceConfiguration.md b/rest/conversations/v1/docs/ConversationsV1ServiceServiceConfiguration.md new file mode 100644 index 000000000..e898ef8a1 --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1ServiceServiceConfiguration.md @@ -0,0 +1,17 @@ +# ConversationsV1ServiceServiceConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ChatServiceSid** | **string** | | [optional] +**DefaultChatServiceRoleSid** | **string** | | [optional] +**DefaultConversationCreatorRoleSid** | **string** | | [optional] +**DefaultConversationRoleSid** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**ReachabilityEnabled** | **bool** | | [optional] +**Url** | **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/rest/conversations/v1/docs/ConversationsV1ServiceServiceConfigurationServiceNotification.md b/rest/conversations/v1/docs/ConversationsV1ServiceServiceConfigurationServiceNotification.md new file mode 100644 index 000000000..9c4bfa232 --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1ServiceServiceConfigurationServiceNotification.md @@ -0,0 +1,17 @@ +# ConversationsV1ServiceServiceConfigurationServiceNotification + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AddedToConversation** | [**map[string]interface{}**](.md) | | [optional] +**ChatServiceSid** | **string** | | [optional] +**LogEnabled** | **bool** | | [optional] +**NewMessage** | [**map[string]interface{}**](.md) | | [optional] +**RemovedFromConversation** | [**map[string]interface{}**](.md) | | [optional] +**Url** | **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/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversation.md b/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversation.md new file mode 100644 index 000000000..2af72de22 --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversation.md @@ -0,0 +1,23 @@ +# ConversationsV1ServiceServiceConversation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Attributes** | **string** | | [optional] +**ChatServiceSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**MessagingServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**State** | **string** | | [optional] +**Timers** | [**map[string]interface{}**](.md) | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **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/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationReadResponse.md b/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationReadResponse.md new file mode 100644 index 000000000..476c98de0 --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationReadResponse.md @@ -0,0 +1,12 @@ +# ConversationsV1ServiceServiceConversationReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Conversations** | [**[]ConversationsV1ServiceServiceConversation**](conversations.v1.service.service_conversation.md) | | [optional] +**Meta** | [**ConversationsV1ConversationReadResponseMeta**](conversations_v1_conversationReadResponse_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/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationMessage.md b/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationMessage.md new file mode 100644 index 000000000..083717435 --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationMessage.md @@ -0,0 +1,25 @@ +# ConversationsV1ServiceServiceConversationServiceConversationMessage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Attributes** | **string** | | [optional] +**Author** | **string** | | [optional] +**Body** | **string** | | [optional] +**ChatServiceSid** | **string** | | [optional] +**ConversationSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Delivery** | [**map[string]interface{}**](.md) | | [optional] +**Index** | **int32** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Media** | **[]map[string]interface{}** | | [optional] +**ParticipantSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse.md b/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse.md new file mode 100644 index 000000000..0cae99174 --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse.md @@ -0,0 +1,12 @@ +# ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Messages** | [**[]ConversationsV1ServiceServiceConversationServiceConversationMessage**](conversations.v1.service.service_conversation.service_conversation_message.md) | | [optional] +**Meta** | [**ConversationsV1ConversationReadResponseMeta**](conversations_v1_conversationReadResponse_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/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt.md b/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt.md new file mode 100644 index 000000000..fab08e042 --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt.md @@ -0,0 +1,22 @@ +# ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ChannelMessageSid** | **string** | | [optional] +**ChatServiceSid** | **string** | | [optional] +**ConversationSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**ErrorCode** | **int32** | | [optional] +**MessageSid** | **string** | | [optional] +**ParticipantSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Status** | **string** | | [optional] +**Url** | **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/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse.md b/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse.md new file mode 100644 index 000000000..02f938062 --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse.md @@ -0,0 +1,12 @@ +# ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeliveryReceipts** | [**[]ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt**](conversations.v1.service.service_conversation.service_conversation_message.service_conversation_message_receipt.md) | | [optional] +**Meta** | [**ConversationsV1ConversationReadResponseMeta**](conversations_v1_conversationReadResponse_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/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationParticipant.md b/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationParticipant.md new file mode 100644 index 000000000..0bf9d2a54 --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationParticipant.md @@ -0,0 +1,23 @@ +# ConversationsV1ServiceServiceConversationServiceConversationParticipant + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Attributes** | **string** | | [optional] +**ChatServiceSid** | **string** | | [optional] +**ConversationSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Identity** | **string** | | [optional] +**LastReadMessageIndex** | Pointer to **int32** | | [optional] +**LastReadTimestamp** | **string** | | [optional] +**MessagingBinding** | [**map[string]interface{}**](.md) | | [optional] +**RoleSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse.md b/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse.md new file mode 100644 index 000000000..a8e308e7d --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse.md @@ -0,0 +1,12 @@ +# ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**ConversationsV1ConversationReadResponseMeta**](conversations_v1_conversationReadResponse_meta.md) | | [optional] +**Participants** | [**[]ConversationsV1ServiceServiceConversationServiceConversationParticipant**](conversations.v1.service.service_conversation.service_conversation_participant.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/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook.md b/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook.md new file mode 100644 index 000000000..0c13f0626 --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook.md @@ -0,0 +1,19 @@ +# ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ChatServiceSid** | **string** | | [optional] +**Configuration** | [**map[string]interface{}**](.md) | | [optional] +**ConversationSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Sid** | **string** | | [optional] +**Target** | **string** | | [optional] +**Url** | **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/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse.md b/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse.md new file mode 100644 index 000000000..1b918b1c1 --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse.md @@ -0,0 +1,12 @@ +# ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**ConversationsV1ConversationReadResponseMeta**](conversations_v1_conversationReadResponse_meta.md) | | [optional] +**Webhooks** | [**[]ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook**](conversations.v1.service.service_conversation.service_conversation_scoped_webhook.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/rest/conversations/v1/docs/ConversationsV1ServiceServiceRole.md b/rest/conversations/v1/docs/ConversationsV1ServiceServiceRole.md new file mode 100644 index 000000000..cb51c169f --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1ServiceServiceRole.md @@ -0,0 +1,19 @@ +# ConversationsV1ServiceServiceRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ChatServiceSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Permissions** | **[]string** | | [optional] +**Sid** | **string** | | [optional] +**Type** | **string** | | [optional] +**Url** | **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/rest/conversations/v1/docs/ConversationsV1ServiceServiceRoleReadResponse.md b/rest/conversations/v1/docs/ConversationsV1ServiceServiceRoleReadResponse.md new file mode 100644 index 000000000..a19495aed --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1ServiceServiceRoleReadResponse.md @@ -0,0 +1,12 @@ +# ConversationsV1ServiceServiceRoleReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**ConversationsV1ConversationReadResponseMeta**](conversations_v1_conversationReadResponse_meta.md) | | [optional] +**Roles** | [**[]ConversationsV1ServiceServiceRole**](conversations.v1.service.service_role.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/rest/conversations/v1/docs/ConversationsV1ServiceServiceUser.md b/rest/conversations/v1/docs/ConversationsV1ServiceServiceUser.md new file mode 100644 index 000000000..73813f336 --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1ServiceServiceUser.md @@ -0,0 +1,22 @@ +# ConversationsV1ServiceServiceUser + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Attributes** | **string** | | [optional] +**ChatServiceSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Identity** | **string** | | [optional] +**IsNotifiable** | **bool** | | [optional] +**IsOnline** | **bool** | | [optional] +**RoleSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/conversations/v1/docs/ConversationsV1ServiceServiceUserReadResponse.md b/rest/conversations/v1/docs/ConversationsV1ServiceServiceUserReadResponse.md new file mode 100644 index 000000000..623ce2f7e --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1ServiceServiceUserReadResponse.md @@ -0,0 +1,12 @@ +# ConversationsV1ServiceServiceUserReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**ConversationsV1ConversationReadResponseMeta**](conversations_v1_conversationReadResponse_meta.md) | | [optional] +**Users** | [**[]ConversationsV1ServiceServiceUser**](conversations.v1.service.service_user.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/rest/conversations/v1/docs/ConversationsV1User.md b/rest/conversations/v1/docs/ConversationsV1User.md new file mode 100644 index 000000000..fbd820a72 --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1User.md @@ -0,0 +1,22 @@ +# ConversationsV1User + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Attributes** | **string** | | [optional] +**ChatServiceSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Identity** | **string** | | [optional] +**IsNotifiable** | **bool** | | [optional] +**IsOnline** | **bool** | | [optional] +**RoleSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/conversations/v1/docs/ConversationsV1UserReadResponse.md b/rest/conversations/v1/docs/ConversationsV1UserReadResponse.md new file mode 100644 index 000000000..db4b77315 --- /dev/null +++ b/rest/conversations/v1/docs/ConversationsV1UserReadResponse.md @@ -0,0 +1,12 @@ +# ConversationsV1UserReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**ConversationsV1ConversationReadResponseMeta**](conversations_v1_conversationReadResponse_meta.md) | | [optional] +**Users** | [**[]ConversationsV1User**](conversations.v1.user.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/rest/conversations/v1/docs/CreateConversationMessageRequest.md b/rest/conversations/v1/docs/CreateConversationMessageRequest.md new file mode 100644 index 000000000..825b071ed --- /dev/null +++ b/rest/conversations/v1/docs/CreateConversationMessageRequest.md @@ -0,0 +1,16 @@ +# CreateConversationMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \"{}\" will be returned. | [optional] +**Author** | **string** | The channel specific identifier of the message's author. Defaults to `system`. | [optional] +**Body** | **string** | The content of the message, can be up to 1,600 characters long. | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | The date that this resource was created. | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | The date that this resource was last updated. `null` if the message has not been edited. | [optional] +**MediaSid** | **string** | The Media SID to be attached to the new Message. | [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/rest/conversations/v1/docs/CreateConversationParticipantRequest.md b/rest/conversations/v1/docs/CreateConversationParticipantRequest.md new file mode 100644 index 000000000..ead783a98 --- /dev/null +++ b/rest/conversations/v1/docs/CreateConversationParticipantRequest.md @@ -0,0 +1,18 @@ +# CreateConversationParticipantRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \"{}\" will be returned. | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | The date that this resource was created. | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | The date that this resource was last updated. | [optional] +**Identity** | **string** | A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters. | [optional] +**MessagingBindingAddress** | **string** | The address of the participant's device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). | [optional] +**MessagingBindingProjectedAddress** | **string** | The address of the Twilio phone number that is used in Group MMS. Communication mask for the Conversation participant with Identity. | [optional] +**MessagingBindingProxyAddress** | **string** | The address of the Twilio phone number (or WhatsApp number) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). | [optional] +**RoleSid** | **string** | The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. | [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/rest/conversations/v1/docs/CreateConversationRequest.md b/rest/conversations/v1/docs/CreateConversationRequest.md new file mode 100644 index 000000000..395cd509c --- /dev/null +++ b/rest/conversations/v1/docs/CreateConversationRequest.md @@ -0,0 +1,19 @@ +# CreateConversationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \"{}\" will be returned. | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | The date that this resource was created. | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | The date that this resource was last updated. | [optional] +**FriendlyName** | **string** | The human-readable name of this conversation, limited to 256 characters. Optional. | [optional] +**MessagingServiceSid** | **string** | The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. | [optional] +**State** | **string** | Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` | [optional] +**TimersClosed** | **string** | ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. | [optional] +**TimersInactive** | **string** | ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. | [optional] +**UniqueName** | **string** | An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. | [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/rest/conversations/v1/docs/CreateConversationScopedWebhookRequest.md b/rest/conversations/v1/docs/CreateConversationScopedWebhookRequest.md new file mode 100644 index 000000000..59bd5b346 --- /dev/null +++ b/rest/conversations/v1/docs/CreateConversationScopedWebhookRequest.md @@ -0,0 +1,17 @@ +# CreateConversationScopedWebhookRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConfigurationFilters** | **[]string** | The list of events, firing webhook event for this Conversation. | [optional] +**ConfigurationFlowSid** | **string** | The studio flow SID, where the webhook should be sent to. | [optional] +**ConfigurationMethod** | **string** | The HTTP method to be used when sending a webhook request. | [optional] +**ConfigurationReplayAfter** | **int32** | The message index for which and it's successors the webhook will be replayed. Not set by default | [optional] +**ConfigurationTriggers** | **[]string** | The list of keywords, firing webhook event for this Conversation. | [optional] +**ConfigurationUrl** | **string** | The absolute url the webhook request should be sent to. | [optional] +**Target** | **string** | The target of this webhook: `webhook`, `studio`, `trigger` | + +[[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/rest/conversations/v1/docs/CreateCredentialRequest.md b/rest/conversations/v1/docs/CreateCredentialRequest.md new file mode 100644 index 000000000..3484fe761 --- /dev/null +++ b/rest/conversations/v1/docs/CreateCredentialRequest.md @@ -0,0 +1,17 @@ +# CreateCredentialRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiKey** | **string** | [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. | [optional] +**Certificate** | **string** | [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== -----END CERTIFICATE-----`. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | [optional] +**PrivateKey** | **string** | [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fG... -----END RSA PRIVATE KEY-----`. | [optional] +**Sandbox** | **bool** | [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. | [optional] +**Secret** | **string** | [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. | [optional] +**Type** | **string** | The type of push-notification service the credential is for. Can be: `fcm`, `gcm`, or `apn`. | + +[[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/rest/conversations/v1/docs/CreateRoleRequest.md b/rest/conversations/v1/docs/CreateRoleRequest.md new file mode 100644 index 000000000..a08585b91 --- /dev/null +++ b/rest/conversations/v1/docs/CreateRoleRequest.md @@ -0,0 +1,13 @@ +# CreateRoleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | +**Permission** | **[]string** | A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type`. | +**Type** | **string** | The type of role. Can be: `conversation` for [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) roles or `service` for [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) roles. | + +[[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/rest/conversations/v1/docs/CreateServiceConversationMessageRequest.md b/rest/conversations/v1/docs/CreateServiceConversationMessageRequest.md new file mode 100644 index 000000000..3f642b8e9 --- /dev/null +++ b/rest/conversations/v1/docs/CreateServiceConversationMessageRequest.md @@ -0,0 +1,16 @@ +# CreateServiceConversationMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \"{}\" will be returned. | [optional] +**Author** | **string** | The channel specific identifier of the message's author. Defaults to `system`. | [optional] +**Body** | **string** | The content of the message, can be up to 1,600 characters long. | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | The date that this resource was created. | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | The date that this resource was last updated. `null` if the message has not been edited. | [optional] +**MediaSid** | **string** | The Media SID to be attached to the new Message. | [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/rest/conversations/v1/docs/CreateServiceConversationParticipantRequest.md b/rest/conversations/v1/docs/CreateServiceConversationParticipantRequest.md new file mode 100644 index 000000000..1b79380ef --- /dev/null +++ b/rest/conversations/v1/docs/CreateServiceConversationParticipantRequest.md @@ -0,0 +1,18 @@ +# CreateServiceConversationParticipantRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \"{}\" will be returned. | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | The date that this resource was created. | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | The date that this resource was last updated. | [optional] +**Identity** | **string** | A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversation SDK to communicate. Limited to 256 characters. | [optional] +**MessagingBindingAddress** | **string** | The address of the participant's device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). | [optional] +**MessagingBindingProjectedAddress** | **string** | The address of the Twilio phone number that is used in Group MMS. Communication mask for the Conversation participant with Identity. | [optional] +**MessagingBindingProxyAddress** | **string** | The address of the Twilio phone number (or WhatsApp number) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). | [optional] +**RoleSid** | **string** | The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. | [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/rest/conversations/v1/docs/CreateServiceConversationRequest.md b/rest/conversations/v1/docs/CreateServiceConversationRequest.md new file mode 100644 index 000000000..e945bf65c --- /dev/null +++ b/rest/conversations/v1/docs/CreateServiceConversationRequest.md @@ -0,0 +1,19 @@ +# CreateServiceConversationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \"{}\" will be returned. | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | The date that this resource was created. | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | The date that this resource was last updated. | [optional] +**FriendlyName** | **string** | The human-readable name of this conversation, limited to 256 characters. Optional. | [optional] +**MessagingServiceSid** | **string** | The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. | [optional] +**State** | **string** | Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` | [optional] +**TimersClosed** | **string** | ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. | [optional] +**TimersInactive** | **string** | ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. | [optional] +**UniqueName** | **string** | An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. | [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/rest/conversations/v1/docs/CreateServiceConversationScopedWebhookRequest.md b/rest/conversations/v1/docs/CreateServiceConversationScopedWebhookRequest.md new file mode 100644 index 000000000..b815fd288 --- /dev/null +++ b/rest/conversations/v1/docs/CreateServiceConversationScopedWebhookRequest.md @@ -0,0 +1,17 @@ +# CreateServiceConversationScopedWebhookRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConfigurationFilters** | **[]string** | The list of events, firing webhook event for this Conversation. | [optional] +**ConfigurationFlowSid** | **string** | The studio flow SID, where the webhook should be sent to. | [optional] +**ConfigurationMethod** | **string** | The HTTP method to be used when sending a webhook request. | [optional] +**ConfigurationReplayAfter** | **int32** | The message index for which and it's successors the webhook will be replayed. Not set by default | [optional] +**ConfigurationTriggers** | **[]string** | The list of keywords, firing webhook event for this Conversation. | [optional] +**ConfigurationUrl** | **string** | The absolute url the webhook request should be sent to. | [optional] +**Target** | **string** | The target of this webhook: `webhook`, `studio`, `trigger` | + +[[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/rest/conversations/v1/docs/CreateServiceRequest.md b/rest/conversations/v1/docs/CreateServiceRequest.md new file mode 100644 index 000000000..6ccc55b3c --- /dev/null +++ b/rest/conversations/v1/docs/CreateServiceRequest.md @@ -0,0 +1,11 @@ +# CreateServiceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | The human-readable name of this service, limited to 256 characters. 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/rest/conversations/v1/docs/CreateServiceRoleRequest.md b/rest/conversations/v1/docs/CreateServiceRoleRequest.md new file mode 100644 index 000000000..a0e131958 --- /dev/null +++ b/rest/conversations/v1/docs/CreateServiceRoleRequest.md @@ -0,0 +1,13 @@ +# CreateServiceRoleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | +**Permission** | **[]string** | A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type`. | +**Type** | **string** | The type of role. Can be: `conversation` for [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) roles or `service` for [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) roles. | + +[[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/rest/conversations/v1/docs/CreateServiceUserRequest.md b/rest/conversations/v1/docs/CreateServiceUserRequest.md new file mode 100644 index 000000000..35b91307b --- /dev/null +++ b/rest/conversations/v1/docs/CreateServiceUserRequest.md @@ -0,0 +1,14 @@ +# CreateServiceUserRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned. | [optional] +**FriendlyName** | **string** | The string that you assigned to describe the resource. | [optional] +**Identity** | **string** | The application-defined string that uniquely identifies the resource's User within the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource). This value is often a username or an email address, and is case-sensitive. | +**RoleSid** | **string** | The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user. | [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/rest/conversations/v1/docs/CreateUserRequest.md b/rest/conversations/v1/docs/CreateUserRequest.md new file mode 100644 index 000000000..60fc0cf87 --- /dev/null +++ b/rest/conversations/v1/docs/CreateUserRequest.md @@ -0,0 +1,14 @@ +# CreateUserRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned. | [optional] +**FriendlyName** | **string** | The string that you assigned to describe the resource. | [optional] +**Identity** | **string** | The application-defined string that uniquely identifies the resource's User within the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource). This value is often a username or an email address, and is case-sensitive. | +**RoleSid** | **string** | The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user. | [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/rest/conversations/v1/docs/DefaultApi.md b/rest/conversations/v1/docs/DefaultApi.md new file mode 100644 index 000000000..b38336039 --- /dev/null +++ b/rest/conversations/v1/docs/DefaultApi.md @@ -0,0 +1,3773 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateConversation**](DefaultApi.md#CreateConversation) | **Post** /v1/Conversations | +[**CreateConversationMessage**](DefaultApi.md#CreateConversationMessage) | **Post** /v1/Conversations/{ConversationSid}/Messages | +[**CreateConversationParticipant**](DefaultApi.md#CreateConversationParticipant) | **Post** /v1/Conversations/{ConversationSid}/Participants | +[**CreateConversationScopedWebhook**](DefaultApi.md#CreateConversationScopedWebhook) | **Post** /v1/Conversations/{ConversationSid}/Webhooks | +[**CreateCredential**](DefaultApi.md#CreateCredential) | **Post** /v1/Credentials | +[**CreateRole**](DefaultApi.md#CreateRole) | **Post** /v1/Roles | +[**CreateService**](DefaultApi.md#CreateService) | **Post** /v1/Services | +[**CreateServiceConversation**](DefaultApi.md#CreateServiceConversation) | **Post** /v1/Services/{ChatServiceSid}/Conversations | +[**CreateServiceConversationMessage**](DefaultApi.md#CreateServiceConversationMessage) | **Post** /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages | +[**CreateServiceConversationParticipant**](DefaultApi.md#CreateServiceConversationParticipant) | **Post** /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants | +[**CreateServiceConversationScopedWebhook**](DefaultApi.md#CreateServiceConversationScopedWebhook) | **Post** /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks | +[**CreateServiceRole**](DefaultApi.md#CreateServiceRole) | **Post** /v1/Services/{ChatServiceSid}/Roles | +[**CreateServiceUser**](DefaultApi.md#CreateServiceUser) | **Post** /v1/Services/{ChatServiceSid}/Users | +[**CreateUser**](DefaultApi.md#CreateUser) | **Post** /v1/Users | +[**DeleteConversation**](DefaultApi.md#DeleteConversation) | **Delete** /v1/Conversations/{Sid} | +[**DeleteConversationMessage**](DefaultApi.md#DeleteConversationMessage) | **Delete** /v1/Conversations/{ConversationSid}/Messages/{Sid} | +[**DeleteConversationParticipant**](DefaultApi.md#DeleteConversationParticipant) | **Delete** /v1/Conversations/{ConversationSid}/Participants/{Sid} | +[**DeleteConversationScopedWebhook**](DefaultApi.md#DeleteConversationScopedWebhook) | **Delete** /v1/Conversations/{ConversationSid}/Webhooks/{Sid} | +[**DeleteCredential**](DefaultApi.md#DeleteCredential) | **Delete** /v1/Credentials/{Sid} | +[**DeleteRole**](DefaultApi.md#DeleteRole) | **Delete** /v1/Roles/{Sid} | +[**DeleteService**](DefaultApi.md#DeleteService) | **Delete** /v1/Services/{Sid} | +[**DeleteServiceBinding**](DefaultApi.md#DeleteServiceBinding) | **Delete** /v1/Services/{ChatServiceSid}/Bindings/{Sid} | +[**DeleteServiceConversation**](DefaultApi.md#DeleteServiceConversation) | **Delete** /v1/Services/{ChatServiceSid}/Conversations/{Sid} | +[**DeleteServiceConversationMessage**](DefaultApi.md#DeleteServiceConversationMessage) | **Delete** /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{Sid} | +[**DeleteServiceConversationParticipant**](DefaultApi.md#DeleteServiceConversationParticipant) | **Delete** /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants/{Sid} | +[**DeleteServiceConversationScopedWebhook**](DefaultApi.md#DeleteServiceConversationScopedWebhook) | **Delete** /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks/{Sid} | +[**DeleteServiceRole**](DefaultApi.md#DeleteServiceRole) | **Delete** /v1/Services/{ChatServiceSid}/Roles/{Sid} | +[**DeleteServiceUser**](DefaultApi.md#DeleteServiceUser) | **Delete** /v1/Services/{ChatServiceSid}/Users/{Sid} | +[**DeleteUser**](DefaultApi.md#DeleteUser) | **Delete** /v1/Users/{Sid} | +[**FetchConfiguration**](DefaultApi.md#FetchConfiguration) | **Get** /v1/Configuration | +[**FetchConfigurationWebhook**](DefaultApi.md#FetchConfigurationWebhook) | **Get** /v1/Configuration/Webhooks | +[**FetchConversation**](DefaultApi.md#FetchConversation) | **Get** /v1/Conversations/{Sid} | +[**FetchConversationMessage**](DefaultApi.md#FetchConversationMessage) | **Get** /v1/Conversations/{ConversationSid}/Messages/{Sid} | +[**FetchConversationMessageReceipt**](DefaultApi.md#FetchConversationMessageReceipt) | **Get** /v1/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts/{Sid} | +[**FetchConversationParticipant**](DefaultApi.md#FetchConversationParticipant) | **Get** /v1/Conversations/{ConversationSid}/Participants/{Sid} | +[**FetchConversationScopedWebhook**](DefaultApi.md#FetchConversationScopedWebhook) | **Get** /v1/Conversations/{ConversationSid}/Webhooks/{Sid} | +[**FetchCredential**](DefaultApi.md#FetchCredential) | **Get** /v1/Credentials/{Sid} | +[**FetchRole**](DefaultApi.md#FetchRole) | **Get** /v1/Roles/{Sid} | +[**FetchService**](DefaultApi.md#FetchService) | **Get** /v1/Services/{Sid} | +[**FetchServiceBinding**](DefaultApi.md#FetchServiceBinding) | **Get** /v1/Services/{ChatServiceSid}/Bindings/{Sid} | +[**FetchServiceConfiguration**](DefaultApi.md#FetchServiceConfiguration) | **Get** /v1/Services/{ChatServiceSid}/Configuration | +[**FetchServiceConversation**](DefaultApi.md#FetchServiceConversation) | **Get** /v1/Services/{ChatServiceSid}/Conversations/{Sid} | +[**FetchServiceConversationMessage**](DefaultApi.md#FetchServiceConversationMessage) | **Get** /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{Sid} | +[**FetchServiceConversationMessageReceipt**](DefaultApi.md#FetchServiceConversationMessageReceipt) | **Get** /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts/{Sid} | +[**FetchServiceConversationParticipant**](DefaultApi.md#FetchServiceConversationParticipant) | **Get** /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants/{Sid} | +[**FetchServiceConversationScopedWebhook**](DefaultApi.md#FetchServiceConversationScopedWebhook) | **Get** /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks/{Sid} | +[**FetchServiceNotification**](DefaultApi.md#FetchServiceNotification) | **Get** /v1/Services/{ChatServiceSid}/Configuration/Notifications | +[**FetchServiceRole**](DefaultApi.md#FetchServiceRole) | **Get** /v1/Services/{ChatServiceSid}/Roles/{Sid} | +[**FetchServiceUser**](DefaultApi.md#FetchServiceUser) | **Get** /v1/Services/{ChatServiceSid}/Users/{Sid} | +[**FetchUser**](DefaultApi.md#FetchUser) | **Get** /v1/Users/{Sid} | +[**ListConversation**](DefaultApi.md#ListConversation) | **Get** /v1/Conversations | +[**ListConversationMessage**](DefaultApi.md#ListConversationMessage) | **Get** /v1/Conversations/{ConversationSid}/Messages | +[**ListConversationMessageReceipt**](DefaultApi.md#ListConversationMessageReceipt) | **Get** /v1/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts | +[**ListConversationParticipant**](DefaultApi.md#ListConversationParticipant) | **Get** /v1/Conversations/{ConversationSid}/Participants | +[**ListConversationScopedWebhook**](DefaultApi.md#ListConversationScopedWebhook) | **Get** /v1/Conversations/{ConversationSid}/Webhooks | +[**ListCredential**](DefaultApi.md#ListCredential) | **Get** /v1/Credentials | +[**ListRole**](DefaultApi.md#ListRole) | **Get** /v1/Roles | +[**ListService**](DefaultApi.md#ListService) | **Get** /v1/Services | +[**ListServiceBinding**](DefaultApi.md#ListServiceBinding) | **Get** /v1/Services/{ChatServiceSid}/Bindings | +[**ListServiceConversation**](DefaultApi.md#ListServiceConversation) | **Get** /v1/Services/{ChatServiceSid}/Conversations | +[**ListServiceConversationMessage**](DefaultApi.md#ListServiceConversationMessage) | **Get** /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages | +[**ListServiceConversationMessageReceipt**](DefaultApi.md#ListServiceConversationMessageReceipt) | **Get** /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts | +[**ListServiceConversationParticipant**](DefaultApi.md#ListServiceConversationParticipant) | **Get** /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants | +[**ListServiceConversationScopedWebhook**](DefaultApi.md#ListServiceConversationScopedWebhook) | **Get** /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks | +[**ListServiceRole**](DefaultApi.md#ListServiceRole) | **Get** /v1/Services/{ChatServiceSid}/Roles | +[**ListServiceUser**](DefaultApi.md#ListServiceUser) | **Get** /v1/Services/{ChatServiceSid}/Users | +[**ListUser**](DefaultApi.md#ListUser) | **Get** /v1/Users | +[**UpdateConfiguration**](DefaultApi.md#UpdateConfiguration) | **Post** /v1/Configuration | +[**UpdateConfigurationWebhook**](DefaultApi.md#UpdateConfigurationWebhook) | **Post** /v1/Configuration/Webhooks | +[**UpdateConversation**](DefaultApi.md#UpdateConversation) | **Post** /v1/Conversations/{Sid} | +[**UpdateConversationMessage**](DefaultApi.md#UpdateConversationMessage) | **Post** /v1/Conversations/{ConversationSid}/Messages/{Sid} | +[**UpdateConversationParticipant**](DefaultApi.md#UpdateConversationParticipant) | **Post** /v1/Conversations/{ConversationSid}/Participants/{Sid} | +[**UpdateConversationScopedWebhook**](DefaultApi.md#UpdateConversationScopedWebhook) | **Post** /v1/Conversations/{ConversationSid}/Webhooks/{Sid} | +[**UpdateCredential**](DefaultApi.md#UpdateCredential) | **Post** /v1/Credentials/{Sid} | +[**UpdateRole**](DefaultApi.md#UpdateRole) | **Post** /v1/Roles/{Sid} | +[**UpdateServiceConfiguration**](DefaultApi.md#UpdateServiceConfiguration) | **Post** /v1/Services/{ChatServiceSid}/Configuration | +[**UpdateServiceConversation**](DefaultApi.md#UpdateServiceConversation) | **Post** /v1/Services/{ChatServiceSid}/Conversations/{Sid} | +[**UpdateServiceConversationMessage**](DefaultApi.md#UpdateServiceConversationMessage) | **Post** /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{Sid} | +[**UpdateServiceConversationParticipant**](DefaultApi.md#UpdateServiceConversationParticipant) | **Post** /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants/{Sid} | +[**UpdateServiceConversationScopedWebhook**](DefaultApi.md#UpdateServiceConversationScopedWebhook) | **Post** /v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks/{Sid} | +[**UpdateServiceNotification**](DefaultApi.md#UpdateServiceNotification) | **Post** /v1/Services/{ChatServiceSid}/Configuration/Notifications | +[**UpdateServiceRole**](DefaultApi.md#UpdateServiceRole) | **Post** /v1/Services/{ChatServiceSid}/Roles/{Sid} | +[**UpdateServiceUser**](DefaultApi.md#UpdateServiceUser) | **Post** /v1/Services/{ChatServiceSid}/Users/{Sid} | +[**UpdateUser**](DefaultApi.md#UpdateUser) | **Post** /v1/Users/{Sid} | + + + +## CreateConversation + +> ConversationsV1Conversation CreateConversation(ctx, optional) + + + +Create a new conversation in your account's default service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateConversationOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateConversationOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **attributes** | **optional.String**| An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. | + **dateCreated** | **optional.Time**| The date that this resource was created. | + **dateUpdated** | **optional.Time**| The date that this resource was last updated. | + **friendlyName** | **optional.String**| The human-readable name of this conversation, limited to 256 characters. Optional. | + **messagingServiceSid** | **optional.String**| The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. | + **state** | **optional.String**| Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` | + **timersClosed** | **optional.String**| ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. | + **timersInactive** | **optional.String**| ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. | + **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. | + +### Return type + +[**ConversationsV1Conversation**](conversations.v1.conversation.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) + + +## CreateConversationMessage + +> ConversationsV1ConversationConversationMessage CreateConversationMessage(ctx, conversationSid, optional) + + + +Add a new message to the conversation + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. | + **optional** | ***CreateConversationMessageOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateConversationMessageOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **attributes** | **optional.String**| A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. | + **author** | **optional.String**| The channel specific identifier of the message's author. Defaults to `system`. | + **body** | **optional.String**| The content of the message, can be up to 1,600 characters long. | + **dateCreated** | **optional.Time**| The date that this resource was created. | + **dateUpdated** | **optional.Time**| The date that this resource was last updated. `null` if the message has not been edited. | + **mediaSid** | **optional.String**| The Media SID to be attached to the new Message. | + +### Return type + +[**ConversationsV1ConversationConversationMessage**](conversations.v1.conversation.conversation_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) + + +## CreateConversationParticipant + +> ConversationsV1ConversationConversationParticipant CreateConversationParticipant(ctx, conversationSid, optional) + + + +Add a new participant to the conversation + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. | + **optional** | ***CreateConversationParticipantOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateConversationParticipantOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **attributes** | **optional.String**| An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. | + **dateCreated** | **optional.Time**| The date that this resource was created. | + **dateUpdated** | **optional.Time**| The date that this resource was last updated. | + **identity** | **optional.String**| A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters. | + **messagingBindingAddress** | **optional.String**| The address of the participant's device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). | + **messagingBindingProjectedAddress** | **optional.String**| The address of the Twilio phone number that is used in Group MMS. Communication mask for the Conversation participant with Identity. | + **messagingBindingProxyAddress** | **optional.String**| The address of the Twilio phone number (or WhatsApp number) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). | + **roleSid** | **optional.String**| The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. | + +### Return type + +[**ConversationsV1ConversationConversationParticipant**](conversations.v1.conversation.conversation_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) + + +## CreateConversationScopedWebhook + +> ConversationsV1ConversationConversationScopedWebhook CreateConversationScopedWebhook(ctx, conversationSid, optional) + + + +Create a new webhook scoped to the conversation + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. | + **optional** | ***CreateConversationScopedWebhookOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateConversationScopedWebhookOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **configurationFilters** | [**optional.Interface of []string**](string.md)| The list of events, firing webhook event for this Conversation. | + **configurationFlowSid** | **optional.String**| The studio flow SID, where the webhook should be sent to. | + **configurationMethod** | **optional.String**| The HTTP method to be used when sending a webhook request. | + **configurationReplayAfter** | **optional.Int32**| The message index for which and it's successors the webhook will be replayed. Not set by default | + **configurationTriggers** | [**optional.Interface of []string**](string.md)| The list of keywords, firing webhook event for this Conversation. | + **configurationUrl** | **optional.String**| The absolute url the webhook request should be sent to. | + **target** | **optional.String**| The target of this webhook: `webhook`, `studio`, `trigger` | + +### Return type + +[**ConversationsV1ConversationConversationScopedWebhook**](conversations.v1.conversation.conversation_scoped_webhook.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) + + +## CreateCredential + +> ConversationsV1Credential CreateCredential(ctx, optional) + + + +Add a new push notification credential to your account + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateCredentialOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateCredentialOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **apiKey** | **optional.String**| [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. | + **certificate** | **optional.String**| [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== -----END CERTIFICATE-----`. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | + **privateKey** | **optional.String**| [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fG... -----END RSA PRIVATE KEY-----`. | + **sandbox** | **optional.Bool**| [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. | + **secret** | **optional.String**| [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. | + **type_** | **optional.String**| The type of push-notification service the credential is for. Can be: `fcm`, `gcm`, or `apn`. | + +### Return type + +[**ConversationsV1Credential**](conversations.v1.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) + + +## CreateRole + +> ConversationsV1Role CreateRole(ctx, optional) + + + +Create a new user role in your account's default service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateRoleOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateRoleOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **friendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | + **permission** | [**optional.Interface of []string**](string.md)| A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type`. | + **type_** | **optional.String**| The type of role. Can be: `conversation` for [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) roles or `service` for [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) roles. | + +### Return type + +[**ConversationsV1Role**](conversations.v1.role.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) + + +## CreateService + +> ConversationsV1Service CreateService(ctx, optional) + + + +Create a new conversation service on your account + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateServiceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateServiceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **friendlyName** | **optional.String**| The human-readable name of this service, limited to 256 characters. Optional. | + +### Return type + +[**ConversationsV1Service**](conversations.v1.service.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) + + +## CreateServiceConversation + +> ConversationsV1ServiceServiceConversation CreateServiceConversation(ctx, chatServiceSid, optional) + + + +Create a new conversation in your service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. | + **optional** | ***CreateServiceConversationOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateServiceConversationOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **attributes** | **optional.String**| An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. | + **dateCreated** | **optional.Time**| The date that this resource was created. | + **dateUpdated** | **optional.Time**| The date that this resource was last updated. | + **friendlyName** | **optional.String**| The human-readable name of this conversation, limited to 256 characters. Optional. | + **messagingServiceSid** | **optional.String**| The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. | + **state** | **optional.String**| Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` | + **timersClosed** | **optional.String**| ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. | + **timersInactive** | **optional.String**| ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. | + **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. | + +### Return type + +[**ConversationsV1ServiceServiceConversation**](conversations.v1.service.service_conversation.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) + + +## CreateServiceConversationMessage + +> ConversationsV1ServiceServiceConversationServiceConversationMessage CreateServiceConversationMessage(ctx, chatServiceSid, conversationSid, optional) + + + +Add a new message to the conversation in a specific service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | +**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. | + **optional** | ***CreateServiceConversationMessageOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateServiceConversationMessageOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **attributes** | **optional.String**| A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. | + **author** | **optional.String**| The channel specific identifier of the message's author. Defaults to `system`. | + **body** | **optional.String**| The content of the message, can be up to 1,600 characters long. | + **dateCreated** | **optional.Time**| The date that this resource was created. | + **dateUpdated** | **optional.Time**| The date that this resource was last updated. `null` if the message has not been edited. | + **mediaSid** | **optional.String**| The Media SID to be attached to the new Message. | + +### Return type + +[**ConversationsV1ServiceServiceConversationServiceConversationMessage**](conversations.v1.service.service_conversation.service_conversation_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) + + +## CreateServiceConversationParticipant + +> ConversationsV1ServiceServiceConversationServiceConversationParticipant CreateServiceConversationParticipant(ctx, chatServiceSid, conversationSid, optional) + + + +Add a new participant to the conversation in a specific service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | +**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. | + **optional** | ***CreateServiceConversationParticipantOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateServiceConversationParticipantOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **attributes** | **optional.String**| An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. | + **dateCreated** | **optional.Time**| The date that this resource was created. | + **dateUpdated** | **optional.Time**| The date that this resource was last updated. | + **identity** | **optional.String**| A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversation SDK to communicate. Limited to 256 characters. | + **messagingBindingAddress** | **optional.String**| The address of the participant's device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). | + **messagingBindingProjectedAddress** | **optional.String**| The address of the Twilio phone number that is used in Group MMS. Communication mask for the Conversation participant with Identity. | + **messagingBindingProxyAddress** | **optional.String**| The address of the Twilio phone number (or WhatsApp number) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). | + **roleSid** | **optional.String**| The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. | + +### Return type + +[**ConversationsV1ServiceServiceConversationServiceConversationParticipant**](conversations.v1.service.service_conversation.service_conversation_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) + + +## CreateServiceConversationScopedWebhook + +> ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook CreateServiceConversationScopedWebhook(ctx, chatServiceSid, conversationSid, optional) + + + +Create a new webhook scoped to the conversation in a specific service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | +**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. | + **optional** | ***CreateServiceConversationScopedWebhookOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateServiceConversationScopedWebhookOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **configurationFilters** | [**optional.Interface of []string**](string.md)| The list of events, firing webhook event for this Conversation. | + **configurationFlowSid** | **optional.String**| The studio flow SID, where the webhook should be sent to. | + **configurationMethod** | **optional.String**| The HTTP method to be used when sending a webhook request. | + **configurationReplayAfter** | **optional.Int32**| The message index for which and it's successors the webhook will be replayed. Not set by default | + **configurationTriggers** | [**optional.Interface of []string**](string.md)| The list of keywords, firing webhook event for this Conversation. | + **configurationUrl** | **optional.String**| The absolute url the webhook request should be sent to. | + **target** | **optional.String**| The target of this webhook: `webhook`, `studio`, `trigger` | + +### Return type + +[**ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook**](conversations.v1.service.service_conversation.service_conversation_scoped_webhook.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) + + +## CreateServiceRole + +> ConversationsV1ServiceServiceRole CreateServiceRole(ctx, chatServiceSid, optional) + + + +Create a new user role in your service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to create the Role resource under. | + **optional** | ***CreateServiceRoleOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateServiceRoleOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **friendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | + **permission** | [**optional.Interface of []string**](string.md)| A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type`. | + **type_** | **optional.String**| The type of role. Can be: `conversation` for [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) roles or `service` for [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) roles. | + +### Return type + +[**ConversationsV1ServiceServiceRole**](conversations.v1.service.service_role.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) + + +## CreateServiceUser + +> ConversationsV1ServiceServiceUser CreateServiceUser(ctx, chatServiceSid, optional) + + + +Add a new conversation user to your service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the User resource is associated with. | + **optional** | ***CreateServiceUserOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateServiceUserOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **attributes** | **optional.String**| The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned. | + **friendlyName** | **optional.String**| The string that you assigned to describe the resource. | + **identity** | **optional.String**| The application-defined string that uniquely identifies the resource's User within the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource). This value is often a username or an email address, and is case-sensitive. | + **roleSid** | **optional.String**| The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user. | + +### Return type + +[**ConversationsV1ServiceServiceUser**](conversations.v1.service.service_user.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) + + +## CreateUser + +> ConversationsV1User CreateUser(ctx, optional) + + + +Add a new conversation user to your account's default service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateUserOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateUserOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **attributes** | **optional.String**| The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned. | + **friendlyName** | **optional.String**| The string that you assigned to describe the resource. | + **identity** | **optional.String**| The application-defined string that uniquely identifies the resource's User within the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource). This value is often a username or an email address, and is case-sensitive. | + **roleSid** | **optional.String**| The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user. | + +### Return type + +[**ConversationsV1User**](conversations.v1.user.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) + + +## DeleteConversation + +> DeleteConversation(ctx, sid, optional) + + + +Remove a conversation from your account's default service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. | + **optional** | ***DeleteConversationOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a DeleteConversationOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + +### 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) + + +## DeleteConversationMessage + +> DeleteConversationMessage(ctx, conversationSid, sid, optional) + + + +Remove a message from the conversation + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + **optional** | ***DeleteConversationMessageOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a DeleteConversationMessageOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + +### 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) + + +## DeleteConversationParticipant + +> DeleteConversationParticipant(ctx, conversationSid, sid, optional) + + + +Remove a participant from the conversation + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + **optional** | ***DeleteConversationParticipantOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a DeleteConversationParticipantOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + +### 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) + + +## DeleteConversationScopedWebhook + +> DeleteConversationScopedWebhook(ctx, conversationSid, sid) + + + +Remove an existing webhook scoped to the conversation + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + +### 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) + + +## DeleteCredential + +> DeleteCredential(ctx, sid) + + + +Remove a push notification credential from your account + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + +### 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) + + +## DeleteRole + +> DeleteRole(ctx, sid) + + + +Remove a user role from your account's default service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Role resource to delete. | + +### 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) + + +## DeleteService + +> DeleteService(ctx, sid) + + + +Remove a conversation service with all its nested resources from your account + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + +### 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) + + +## DeleteServiceBinding + +> DeleteServiceBinding(ctx, chatServiceSid, sid) + + + +Remove a push notification binding from the conversation service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to delete the Binding resource from. | +**sid** | **string**| The SID of the Binding resource to delete. | + +### 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) + + +## DeleteServiceConversation + +> DeleteServiceConversation(ctx, chatServiceSid, sid, optional) + + + +Remove a conversation from your service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. | + **optional** | ***DeleteServiceConversationOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a DeleteServiceConversationOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + +### 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) + + +## DeleteServiceConversationMessage + +> DeleteServiceConversationMessage(ctx, chatServiceSid, conversationSid, sid, optional) + + + +Remove a message from the conversation + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | +**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + **optional** | ***DeleteServiceConversationMessageOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a DeleteServiceConversationMessageOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + +### 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) + + +## DeleteServiceConversationParticipant + +> DeleteServiceConversationParticipant(ctx, chatServiceSid, conversationSid, sid, optional) + + + +Remove a participant from the conversation + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | +**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + **optional** | ***DeleteServiceConversationParticipantOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a DeleteServiceConversationParticipantOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + +### 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) + + +## DeleteServiceConversationScopedWebhook + +> DeleteServiceConversationScopedWebhook(ctx, chatServiceSid, conversationSid, sid) + + + +Remove an existing webhook scoped to the conversation + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | +**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + +### 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) + + +## DeleteServiceRole + +> DeleteServiceRole(ctx, chatServiceSid, sid) + + + +Remove a user role from your service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to delete the Role resource from. | +**sid** | **string**| The SID of the Role resource to delete. | + +### 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) + + +## DeleteServiceUser + +> DeleteServiceUser(ctx, chatServiceSid, sid, optional) + + + +Remove a conversation user from your service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to delete the User resource from. | +**sid** | **string**| The SID of the User resource to delete. This value can be either the `sid` or the `identity` of the User resource to delete. | + **optional** | ***DeleteServiceUserOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a DeleteServiceUserOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + +### 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) + + +## DeleteUser + +> DeleteUser(ctx, sid, optional) + + + +Remove a conversation user from your account's default service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the User resource to delete. This value can be either the `sid` or the `identity` of the User resource to delete. | + **optional** | ***DeleteUserOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a DeleteUserOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + +### 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) + + +## FetchConfiguration + +> ConversationsV1Configuration FetchConfiguration(ctx, ) + + + +Fetch the global configuration of conversations on your account + +### Required Parameters + +This endpoint does not need any parameter. + +### Return type + +[**ConversationsV1Configuration**](conversations.v1.configuration.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) + + +## FetchConfigurationWebhook + +> ConversationsV1ConfigurationConfigurationWebhook FetchConfigurationWebhook(ctx, ) + + + +### Required Parameters + +This endpoint does not need any parameter. + +### Return type + +[**ConversationsV1ConfigurationConfigurationWebhook**](conversations.v1.configuration.configuration_webhook.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) + + +## FetchConversation + +> ConversationsV1Conversation FetchConversation(ctx, sid) + + + +Fetch a conversation from your account's default service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. | + +### Return type + +[**ConversationsV1Conversation**](conversations.v1.conversation.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) + + +## FetchConversationMessage + +> ConversationsV1ConversationConversationMessage FetchConversationMessage(ctx, conversationSid, sid) + + + +Fetch a message from the conversation + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + +### Return type + +[**ConversationsV1ConversationConversationMessage**](conversations.v1.conversation.conversation_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) + + +## FetchConversationMessageReceipt + +> ConversationsV1ConversationConversationMessageConversationMessageReceipt FetchConversationMessageReceipt(ctx, conversationSid, messageSid, sid) + + + +Fetch the delivery and read receipts of the conversation message + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. | +**messageSid** | **string**| The SID of the message within a [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) the delivery receipt belongs to. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + +### Return type + +[**ConversationsV1ConversationConversationMessageConversationMessageReceipt**](conversations.v1.conversation.conversation_message.conversation_message_receipt.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) + + +## FetchConversationParticipant + +> ConversationsV1ConversationConversationParticipant FetchConversationParticipant(ctx, conversationSid, sid) + + + +Fetch a participant of the conversation + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + +### Return type + +[**ConversationsV1ConversationConversationParticipant**](conversations.v1.conversation.conversation_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) + + +## FetchConversationScopedWebhook + +> ConversationsV1ConversationConversationScopedWebhook FetchConversationScopedWebhook(ctx, conversationSid, sid) + + + +Fetch the configuration of a conversation-scoped webhook + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + +### Return type + +[**ConversationsV1ConversationConversationScopedWebhook**](conversations.v1.conversation.conversation_scoped_webhook.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) + + +## FetchCredential + +> ConversationsV1Credential FetchCredential(ctx, sid) + + + +Fetch a push notification credential from your account + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + +### Return type + +[**ConversationsV1Credential**](conversations.v1.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) + + +## FetchRole + +> ConversationsV1Role FetchRole(ctx, sid) + + + +Fetch a user role from your account's default service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Role resource to fetch. | + +### Return type + +[**ConversationsV1Role**](conversations.v1.role.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) + + +## FetchService + +> ConversationsV1Service FetchService(ctx, sid) + + + +Fetch a conversation service from your account + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + +### Return type + +[**ConversationsV1Service**](conversations.v1.service.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) + + +## FetchServiceBinding + +> ConversationsV1ServiceServiceBinding FetchServiceBinding(ctx, chatServiceSid, sid) + + + +Fetch a push notification binding from the conversation service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Binding resource is associated with. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + +### Return type + +[**ConversationsV1ServiceServiceBinding**](conversations.v1.service.service_binding.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) + + +## FetchServiceConfiguration + +> ConversationsV1ServiceServiceConfiguration FetchServiceConfiguration(ctx, chatServiceSid) + + + +Fetch the configuration of a conversation service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the Service configuration resource to fetch. | + +### Return type + +[**ConversationsV1ServiceServiceConfiguration**](conversations.v1.service.service_configuration.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) + + +## FetchServiceConversation + +> ConversationsV1ServiceServiceConversation FetchServiceConversation(ctx, chatServiceSid, sid) + + + +Fetch a conversation from your service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. | + +### Return type + +[**ConversationsV1ServiceServiceConversation**](conversations.v1.service.service_conversation.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) + + +## FetchServiceConversationMessage + +> ConversationsV1ServiceServiceConversationServiceConversationMessage FetchServiceConversationMessage(ctx, chatServiceSid, conversationSid, sid) + + + +Fetch a message from the conversation + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | +**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + +### Return type + +[**ConversationsV1ServiceServiceConversationServiceConversationMessage**](conversations.v1.service.service_conversation.service_conversation_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) + + +## FetchServiceConversationMessageReceipt + +> ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt FetchServiceConversationMessageReceipt(ctx, chatServiceSid, conversationSid, messageSid, sid) + + + +Fetch the delivery and read receipts of the conversation message + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Message resource is associated with. | +**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. | +**messageSid** | **string**| The SID of the message within a [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) the delivery receipt belongs to. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + +### Return type + +[**ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt**](conversations.v1.service.service_conversation.service_conversation_message.service_conversation_message_receipt.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) + + +## FetchServiceConversationParticipant + +> ConversationsV1ServiceServiceConversationServiceConversationParticipant FetchServiceConversationParticipant(ctx, chatServiceSid, conversationSid, sid) + + + +Fetch a participant of the conversation + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | +**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + +### Return type + +[**ConversationsV1ServiceServiceConversationServiceConversationParticipant**](conversations.v1.service.service_conversation.service_conversation_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) + + +## FetchServiceConversationScopedWebhook + +> ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook FetchServiceConversationScopedWebhook(ctx, chatServiceSid, conversationSid, sid) + + + +Fetch the configuration of a conversation-scoped webhook + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | +**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + +### Return type + +[**ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook**](conversations.v1.service.service_conversation.service_conversation_scoped_webhook.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) + + +## FetchServiceNotification + +> ConversationsV1ServiceServiceConfigurationServiceNotification FetchServiceNotification(ctx, chatServiceSid) + + + +Fetch push notification service settings + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Configuration applies to. | + +### Return type + +[**ConversationsV1ServiceServiceConfigurationServiceNotification**](conversations.v1.service.service_configuration.service_notification.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) + + +## FetchServiceRole + +> ConversationsV1ServiceServiceRole FetchServiceRole(ctx, chatServiceSid, sid) + + + +Fetch a user role from your service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to fetch the Role resource from. | +**sid** | **string**| The SID of the Role resource to fetch. | + +### Return type + +[**ConversationsV1ServiceServiceRole**](conversations.v1.service.service_role.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) + + +## FetchServiceUser + +> ConversationsV1ServiceServiceUser FetchServiceUser(ctx, chatServiceSid, sid) + + + +Fetch a conversation user from your service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to fetch the User resource from. | +**sid** | **string**| The SID of the User resource to fetch. This value can be either the `sid` or the `identity` of the User resource to fetch. | + +### Return type + +[**ConversationsV1ServiceServiceUser**](conversations.v1.service.service_user.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) + + +## FetchUser + +> ConversationsV1User FetchUser(ctx, sid) + + + +Fetch a conversation user from your account's default service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the User resource to fetch. This value can be either the `sid` or the `identity` of the User resource to fetch. | + +### Return type + +[**ConversationsV1User**](conversations.v1.user.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) + + +## ListConversation + +> ConversationsV1ConversationReadResponse ListConversation(ctx, optional) + + + +Retrieve a list of conversations in your account's default service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListConversationOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListConversationOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ConversationsV1ConversationReadResponse**](conversations_v1_conversationReadResponse.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) + + +## ListConversationMessage + +> ConversationsV1ConversationConversationMessageReadResponse ListConversationMessage(ctx, conversationSid, optional) + + + +Retrieve a list of all messages in the conversation + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for messages. | + **optional** | ***ListConversationMessageOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListConversationMessageOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ConversationsV1ConversationConversationMessageReadResponse**](conversations_v1_conversation_conversation_messageReadResponse.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) + + +## ListConversationMessageReceipt + +> ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse ListConversationMessageReceipt(ctx, conversationSid, messageSid, optional) + + + +Retrieve a list of all delivery and read receipts of the conversation message + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. | +**messageSid** | **string**| The SID of the message within a [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) the delivery receipt belongs to. | + **optional** | ***ListConversationMessageReceiptOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListConversationMessageReceiptOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse**](conversations_v1_conversation_conversation_message_conversation_message_receiptReadResponse.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) + + +## ListConversationParticipant + +> ConversationsV1ConversationConversationParticipantReadResponse ListConversationParticipant(ctx, conversationSid, optional) + + + +Retrieve a list of all participants of the conversation + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for participants. | + **optional** | ***ListConversationParticipantOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListConversationParticipantOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ConversationsV1ConversationConversationParticipantReadResponse**](conversations_v1_conversation_conversation_participantReadResponse.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) + + +## ListConversationScopedWebhook + +> ConversationsV1ConversationConversationScopedWebhookReadResponse ListConversationScopedWebhook(ctx, conversationSid, optional) + + + +Retrieve a list of all webhooks scoped to the conversation + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. | + **optional** | ***ListConversationScopedWebhookOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListConversationScopedWebhookOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ConversationsV1ConversationConversationScopedWebhookReadResponse**](conversations_v1_conversation_conversation_scoped_webhookReadResponse.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) + + +## ListCredential + +> ConversationsV1CredentialReadResponse ListCredential(ctx, optional) + + + +Retrieve a list of all push notification credentials on your account + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListCredentialOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListCredentialOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ConversationsV1CredentialReadResponse**](conversations_v1_credentialReadResponse.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) + + +## ListRole + +> ConversationsV1RoleReadResponse ListRole(ctx, optional) + + + +Retrieve a list of all user roles in your account's default service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListRoleOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListRoleOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ConversationsV1RoleReadResponse**](conversations_v1_roleReadResponse.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) + + +## ListService + +> ConversationsV1ServiceReadResponse ListService(ctx, optional) + + + +Retrieve a list of all conversation services on your account + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListServiceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListServiceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ConversationsV1ServiceReadResponse**](conversations_v1_serviceReadResponse.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) + + +## ListServiceBinding + +> ConversationsV1ServiceServiceBindingReadResponse ListServiceBinding(ctx, chatServiceSid, optional) + + + +Retrieve a list of all push notification bindings in the conversation service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Binding resource is associated with. | + **optional** | ***ListServiceBindingOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListServiceBindingOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **bindingType** | [**optional.Interface of []string**](string.md)| The push technology used by the Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. | + **identity** | [**optional.Interface of []string**](string.md)| The identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more details. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ConversationsV1ServiceServiceBindingReadResponse**](conversations_v1_service_service_bindingReadResponse.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) + + +## ListServiceConversation + +> ConversationsV1ServiceServiceConversationReadResponse ListServiceConversation(ctx, chatServiceSid, optional) + + + +Retrieve a list of conversations in your service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. | + **optional** | ***ListServiceConversationOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListServiceConversationOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ConversationsV1ServiceServiceConversationReadResponse**](conversations_v1_service_service_conversationReadResponse.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) + + +## ListServiceConversationMessage + +> ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse ListServiceConversationMessage(ctx, chatServiceSid, conversationSid, optional) + + + +Retrieve a list of all messages in the conversation + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | +**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for messages. | + **optional** | ***ListServiceConversationMessageOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListServiceConversationMessageOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse**](conversations_v1_service_service_conversation_service_conversation_messageReadResponse.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) + + +## ListServiceConversationMessageReceipt + +> ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse ListServiceConversationMessageReceipt(ctx, chatServiceSid, conversationSid, messageSid, optional) + + + +Retrieve a list of all delivery and read receipts of the conversation message + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Message resource is associated with. | +**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. | +**messageSid** | **string**| The SID of the message within a [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) the delivery receipt belongs to. | + **optional** | ***ListServiceConversationMessageReceiptOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListServiceConversationMessageReceiptOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse**](conversations_v1_service_service_conversation_service_conversation_message_service_conversation_message_receiptReadResponse.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) + + +## ListServiceConversationParticipant + +> ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse ListServiceConversationParticipant(ctx, chatServiceSid, conversationSid, optional) + + + +Retrieve a list of all participants of the conversation + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | +**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for participants. | + **optional** | ***ListServiceConversationParticipantOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListServiceConversationParticipantOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse**](conversations_v1_service_service_conversation_service_conversation_participantReadResponse.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) + + +## ListServiceConversationScopedWebhook + +> ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse ListServiceConversationScopedWebhook(ctx, chatServiceSid, conversationSid, optional) + + + +Retrieve a list of all webhooks scoped to the conversation + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | +**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. | + **optional** | ***ListServiceConversationScopedWebhookOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListServiceConversationScopedWebhookOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse**](conversations_v1_service_service_conversation_service_conversation_scoped_webhookReadResponse.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) + + +## ListServiceRole + +> ConversationsV1ServiceServiceRoleReadResponse ListServiceRole(ctx, chatServiceSid, optional) + + + +Retrieve a list of all user roles in your service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to read the Role resources from. | + **optional** | ***ListServiceRoleOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListServiceRoleOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ConversationsV1ServiceServiceRoleReadResponse**](conversations_v1_service_service_roleReadResponse.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) + + +## ListServiceUser + +> ConversationsV1ServiceServiceUserReadResponse ListServiceUser(ctx, chatServiceSid, optional) + + + +Retrieve a list of all conversation users in your service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to read the User resources from. | + **optional** | ***ListServiceUserOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListServiceUserOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ConversationsV1ServiceServiceUserReadResponse**](conversations_v1_service_service_userReadResponse.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) + + +## ListUser + +> ConversationsV1UserReadResponse ListUser(ctx, optional) + + + +Retrieve a list of all conversation users in your account's default service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListUserOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListUserOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ConversationsV1UserReadResponse**](conversations_v1_userReadResponse.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) + + +## UpdateConfiguration + +> ConversationsV1Configuration UpdateConfiguration(ctx, optional) + + + +Update the global configuration of conversations on your account + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***UpdateConfigurationOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateConfigurationOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **defaultChatServiceSid** | **optional.String**| The SID of the default [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to use when creating a conversation. | + **defaultClosedTimer** | **optional.String**| Default ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. | + **defaultInactiveTimer** | **optional.String**| Default ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. | + **defaultMessagingServiceSid** | **optional.String**| The SID of the default [Messaging Service](https://www.twilio.com/docs/sms/services/api) to use when creating a conversation. | + +### Return type + +[**ConversationsV1Configuration**](conversations.v1.configuration.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) + + +## UpdateConfigurationWebhook + +> ConversationsV1ConfigurationConfigurationWebhook UpdateConfigurationWebhook(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***UpdateConfigurationWebhookOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateConfigurationWebhookOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filters** | [**optional.Interface of []string**](string.md)| The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved` | + **method** | **optional.String**| The HTTP method to be used when sending a webhook request. | + **postWebhookUrl** | **optional.String**| The absolute url the post-event webhook request should be sent to. | + **preWebhookUrl** | **optional.String**| The absolute url the pre-event webhook request should be sent to. | + **target** | **optional.String**| The routing target of the webhook. | + +### Return type + +[**ConversationsV1ConfigurationConfigurationWebhook**](conversations.v1.configuration.configuration_webhook.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) + + +## UpdateConversation + +> ConversationsV1Conversation UpdateConversation(ctx, sid, optional) + + + +Update an existing conversation in your account's default service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. | + **optional** | ***UpdateConversationOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateConversationOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **attributes** | **optional.String**| An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. | + **dateCreated** | **optional.Time**| The date that this resource was created. | + **dateUpdated** | **optional.Time**| The date that this resource was last updated. | + **friendlyName** | **optional.String**| The human-readable name of this conversation, limited to 256 characters. Optional. | + **messagingServiceSid** | **optional.String**| The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. | + **state** | **optional.String**| Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` | + **timersClosed** | **optional.String**| ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. | + **timersInactive** | **optional.String**| ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. | + **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. | + +### Return type + +[**ConversationsV1Conversation**](conversations.v1.conversation.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) + + +## UpdateConversationMessage + +> ConversationsV1ConversationConversationMessage UpdateConversationMessage(ctx, conversationSid, sid, optional) + + + +Update an existing message in the conversation + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + **optional** | ***UpdateConversationMessageOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateConversationMessageOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **attributes** | **optional.String**| A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. | + **author** | **optional.String**| The channel specific identifier of the message's author. Defaults to `system`. | + **body** | **optional.String**| The content of the message, can be up to 1,600 characters long. | + **dateCreated** | **optional.Time**| The date that this resource was created. | + **dateUpdated** | **optional.Time**| The date that this resource was last updated. `null` if the message has not been edited. | + +### Return type + +[**ConversationsV1ConversationConversationMessage**](conversations.v1.conversation.conversation_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) + + +## UpdateConversationParticipant + +> ConversationsV1ConversationConversationParticipant UpdateConversationParticipant(ctx, conversationSid, sid, optional) + + + +Update an existing participant in the conversation + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + **optional** | ***UpdateConversationParticipantOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateConversationParticipantOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **attributes** | **optional.String**| An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. | + **dateCreated** | **optional.Time**| The date that this resource was created. | + **dateUpdated** | **optional.Time**| The date that this resource was last updated. | + **identity** | **optional.String**| A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters. | + **lastReadMessageIndex** | **optional.Int32**| Index of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. | + **lastReadTimestamp** | **optional.String**| Timestamp of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. | + **messagingBindingProjectedAddress** | **optional.String**| The address of the Twilio phone number that is used in Group MMS. 'null' value will remove it. | + **messagingBindingProxyAddress** | **optional.String**| The address of the Twilio phone number that the participant is in contact with. 'null' value will remove it. | + **roleSid** | **optional.String**| The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. | + +### Return type + +[**ConversationsV1ConversationConversationParticipant**](conversations.v1.conversation.conversation_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) + + +## UpdateConversationScopedWebhook + +> ConversationsV1ConversationConversationScopedWebhook UpdateConversationScopedWebhook(ctx, conversationSid, sid, optional) + + + +Update an existing conversation-scoped webhook + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + **optional** | ***UpdateConversationScopedWebhookOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateConversationScopedWebhookOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **configurationFilters** | [**optional.Interface of []string**](string.md)| The list of events, firing webhook event for this Conversation. | + **configurationFlowSid** | **optional.String**| The studio flow SID, where the webhook should be sent to. | + **configurationMethod** | **optional.String**| The HTTP method to be used when sending a webhook request. | + **configurationTriggers** | [**optional.Interface of []string**](string.md)| The list of keywords, firing webhook event for this Conversation. | + **configurationUrl** | **optional.String**| The absolute url the webhook request should be sent to. | + +### Return type + +[**ConversationsV1ConversationConversationScopedWebhook**](conversations.v1.conversation.conversation_scoped_webhook.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) + + +## UpdateCredential + +> ConversationsV1Credential UpdateCredential(ctx, sid, optional) + + + +Update an existing push notification credential on your account + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + **optional** | ***UpdateCredentialOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateCredentialOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **apiKey** | **optional.String**| [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. | + **certificate** | **optional.String**| [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== -----END CERTIFICATE-----`. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | + **privateKey** | **optional.String**| [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fG... -----END RSA PRIVATE KEY-----`. | + **sandbox** | **optional.Bool**| [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. | + **secret** | **optional.String**| [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. | + **type_** | **optional.String**| The type of push-notification service the credential is for. Can be: `fcm`, `gcm`, or `apn`. | + +### Return type + +[**ConversationsV1Credential**](conversations.v1.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) + + +## UpdateRole + +> ConversationsV1Role UpdateRole(ctx, sid, optional) + + + +Update an existing user role in your account's default service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Role resource to update. | + **optional** | ***UpdateRoleOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateRoleOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **permission** | [**optional.Interface of []string**](string.md)| A permission that you grant to the role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. Note that the update action replaces all previously assigned permissions with those defined in the update action. To remove a permission, do not include it in the subsequent update action. The values for this parameter depend on the role's `type`. | + +### Return type + +[**ConversationsV1Role**](conversations.v1.role.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) + + +## UpdateServiceConfiguration + +> ConversationsV1ServiceServiceConfiguration UpdateServiceConfiguration(ctx, chatServiceSid, optional) + + + +Update configuration settings of a conversation service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the Service configuration resource to update. | + **optional** | ***UpdateServiceConfigurationOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateServiceConfigurationOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **defaultChatServiceRoleSid** | **optional.String**| The service-level role assigned to users when they are added to the service. See the [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles. | + **defaultConversationCreatorRoleSid** | **optional.String**| The conversation-level role assigned to a conversation creator when they join a new conversation. See the [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles. | + **defaultConversationRoleSid** | **optional.String**| The conversation-level role assigned to users when they are added to a conversation. See the [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles. | + **reachabilityEnabled** | **optional.Bool**| Whether the [Reachability Indicator](https://www.twilio.com/docs/chat/reachability-indicator) is enabled for this Conversations Service. The default is `false`. | + +### Return type + +[**ConversationsV1ServiceServiceConfiguration**](conversations.v1.service.service_configuration.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) + + +## UpdateServiceConversation + +> ConversationsV1ServiceServiceConversation UpdateServiceConversation(ctx, chatServiceSid, sid, optional) + + + +Update an existing conversation in your service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. | + **optional** | ***UpdateServiceConversationOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateServiceConversationOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **attributes** | **optional.String**| An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. | + **dateCreated** | **optional.Time**| The date that this resource was created. | + **dateUpdated** | **optional.Time**| The date that this resource was last updated. | + **friendlyName** | **optional.String**| The human-readable name of this conversation, limited to 256 characters. Optional. | + **messagingServiceSid** | **optional.String**| The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. | + **state** | **optional.String**| Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` | + **timersClosed** | **optional.String**| ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. | + **timersInactive** | **optional.String**| ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. | + **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. | + +### Return type + +[**ConversationsV1ServiceServiceConversation**](conversations.v1.service.service_conversation.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) + + +## UpdateServiceConversationMessage + +> ConversationsV1ServiceServiceConversationServiceConversationMessage UpdateServiceConversationMessage(ctx, chatServiceSid, conversationSid, sid, optional) + + + +Update an existing message in the conversation + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | +**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + **optional** | ***UpdateServiceConversationMessageOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateServiceConversationMessageOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **attributes** | **optional.String**| A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. | + **author** | **optional.String**| The channel specific identifier of the message's author. Defaults to `system`. | + **body** | **optional.String**| The content of the message, can be up to 1,600 characters long. | + **dateCreated** | **optional.Time**| The date that this resource was created. | + **dateUpdated** | **optional.Time**| The date that this resource was last updated. `null` if the message has not been edited. | + +### Return type + +[**ConversationsV1ServiceServiceConversationServiceConversationMessage**](conversations.v1.service.service_conversation.service_conversation_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) + + +## UpdateServiceConversationParticipant + +> ConversationsV1ServiceServiceConversationServiceConversationParticipant UpdateServiceConversationParticipant(ctx, chatServiceSid, conversationSid, sid, optional) + + + +Update an existing participant in the conversation + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | +**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + **optional** | ***UpdateServiceConversationParticipantOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateServiceConversationParticipantOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **attributes** | **optional.String**| An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. | + **dateCreated** | **optional.Time**| The date that this resource was created. | + **dateUpdated** | **optional.Time**| The date that this resource was last updated. | + **identity** | **optional.String**| A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversation SDK to communicate. Limited to 256 characters. | + **lastReadMessageIndex** | **optional.Int32**| Index of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. | + **lastReadTimestamp** | **optional.String**| Timestamp of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. | + **messagingBindingProjectedAddress** | **optional.String**| The address of the Twilio phone number that is used in Group MMS. 'null' value will remove it. | + **messagingBindingProxyAddress** | **optional.String**| The address of the Twilio phone number that the participant is in contact with. 'null' value will remove it. | + **roleSid** | **optional.String**| The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. | + +### Return type + +[**ConversationsV1ServiceServiceConversationServiceConversationParticipant**](conversations.v1.service.service_conversation.service_conversation_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) + + +## UpdateServiceConversationScopedWebhook + +> ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook UpdateServiceConversationScopedWebhook(ctx, chatServiceSid, conversationSid, sid, optional) + + + +Update an existing conversation-scoped webhook + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | +**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + **optional** | ***UpdateServiceConversationScopedWebhookOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateServiceConversationScopedWebhookOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **configurationFilters** | [**optional.Interface of []string**](string.md)| The list of events, firing webhook event for this Conversation. | + **configurationFlowSid** | **optional.String**| The studio flow SID, where the webhook should be sent to. | + **configurationMethod** | **optional.String**| The HTTP method to be used when sending a webhook request. | + **configurationTriggers** | [**optional.Interface of []string**](string.md)| The list of keywords, firing webhook event for this Conversation. | + **configurationUrl** | **optional.String**| The absolute url the webhook request should be sent to. | + +### Return type + +[**ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook**](conversations.v1.service.service_conversation.service_conversation_scoped_webhook.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) + + +## UpdateServiceNotification + +> ConversationsV1ServiceServiceConfigurationServiceNotification UpdateServiceNotification(ctx, chatServiceSid, optional) + + + +Update push notification service settings + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Configuration applies to. | + **optional** | ***UpdateServiceNotificationOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateServiceNotificationOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **addedToConversationEnabled** | **optional.Bool**| Whether to send a notification when a participant is added to a conversation. The default is `false`. | + **addedToConversationSound** | **optional.String**| The name of the sound to play when a participant is added to a conversation and `added_to_conversation.enabled` is `true`. | + **addedToConversationTemplate** | **optional.String**| The template to use to create the notification text displayed when a participant is added to a conversation and `added_to_conversation.enabled` is `true`. | + **logEnabled** | **optional.Bool**| Weather the notification logging is enabled. | + **newMessageBadgeCountEnabled** | **optional.Bool**| Whether the new message badge is enabled. The default is `false`. | + **newMessageEnabled** | **optional.Bool**| Whether to send a notification when a new message is added to a conversation. The default is `false`. | + **newMessageSound** | **optional.String**| The name of the sound to play when a new message is added to a conversation and `new_message.enabled` is `true`. | + **newMessageTemplate** | **optional.String**| The template to use to create the notification text displayed when a new message is added to a conversation and `new_message.enabled` is `true`. | + **removedFromConversationEnabled** | **optional.Bool**| Whether to send a notification to a user when they are removed from a conversation. The default is `false`. | + **removedFromConversationSound** | **optional.String**| The name of the sound to play to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`. | + **removedFromConversationTemplate** | **optional.String**| The template to use to create the notification text displayed to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`. | + +### Return type + +[**ConversationsV1ServiceServiceConfigurationServiceNotification**](conversations.v1.service.service_configuration.service_notification.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) + + +## UpdateServiceRole + +> ConversationsV1ServiceServiceRole UpdateServiceRole(ctx, chatServiceSid, sid, optional) + + + +Update an existing user role in your service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to update the Role resource in. | +**sid** | **string**| The SID of the Role resource to update. | + **optional** | ***UpdateServiceRoleOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateServiceRoleOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **permission** | [**optional.Interface of []string**](string.md)| A permission that you grant to the role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. Note that the update action replaces all previously assigned permissions with those defined in the update action. To remove a permission, do not include it in the subsequent update action. The values for this parameter depend on the role's `type`. | + +### Return type + +[**ConversationsV1ServiceServiceRole**](conversations.v1.service.service_role.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) + + +## UpdateServiceUser + +> ConversationsV1ServiceServiceUser UpdateServiceUser(ctx, chatServiceSid, sid, optional) + + + +Update an existing conversation user in your service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the User resource is associated with. | +**sid** | **string**| The SID of the User resource to update. This value can be either the `sid` or the `identity` of the User resource to update. | + **optional** | ***UpdateServiceUserOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateServiceUserOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **attributes** | **optional.String**| The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned. | + **friendlyName** | **optional.String**| The string that you assigned to describe the resource. | + **roleSid** | **optional.String**| The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user. | + +### Return type + +[**ConversationsV1ServiceServiceUser**](conversations.v1.service.service_user.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) + + +## UpdateUser + +> ConversationsV1User UpdateUser(ctx, sid, optional) + + + +Update an existing conversation user in your account's default service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the User resource to update. This value can be either the `sid` or the `identity` of the User resource to update. | + **optional** | ***UpdateUserOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateUserOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **attributes** | **optional.String**| The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned. | + **friendlyName** | **optional.String**| The string that you assigned to describe the resource. | + **roleSid** | **optional.String**| The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user. | + +### Return type + +[**ConversationsV1User**](conversations.v1.user.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/rest/conversations/v1/docs/UpdateConfigurationRequest.md b/rest/conversations/v1/docs/UpdateConfigurationRequest.md new file mode 100644 index 000000000..a3387e614 --- /dev/null +++ b/rest/conversations/v1/docs/UpdateConfigurationRequest.md @@ -0,0 +1,14 @@ +# UpdateConfigurationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DefaultChatServiceSid** | **string** | The SID of the default [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to use when creating a conversation. | [optional] +**DefaultClosedTimer** | **string** | Default ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. | [optional] +**DefaultInactiveTimer** | **string** | Default ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. | [optional] +**DefaultMessagingServiceSid** | **string** | The SID of the default [Messaging Service](https://www.twilio.com/docs/sms/services/api) to use when creating a conversation. | [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/rest/conversations/v1/docs/UpdateConfigurationWebhookRequest.md b/rest/conversations/v1/docs/UpdateConfigurationWebhookRequest.md new file mode 100644 index 000000000..dc10bed93 --- /dev/null +++ b/rest/conversations/v1/docs/UpdateConfigurationWebhookRequest.md @@ -0,0 +1,15 @@ +# UpdateConfigurationWebhookRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Filters** | **[]string** | The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved` | [optional] +**Method** | **string** | The HTTP method to be used when sending a webhook request. | [optional] +**PostWebhookUrl** | **string** | The absolute url the post-event webhook request should be sent to. | [optional] +**PreWebhookUrl** | **string** | The absolute url the pre-event webhook request should be sent to. | [optional] +**Target** | **string** | The routing target of the webhook. | [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/rest/conversations/v1/docs/UpdateConversationMessageRequest.md b/rest/conversations/v1/docs/UpdateConversationMessageRequest.md new file mode 100644 index 000000000..869aade85 --- /dev/null +++ b/rest/conversations/v1/docs/UpdateConversationMessageRequest.md @@ -0,0 +1,15 @@ +# UpdateConversationMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \"{}\" will be returned. | [optional] +**Author** | **string** | The channel specific identifier of the message's author. Defaults to `system`. | [optional] +**Body** | **string** | The content of the message, can be up to 1,600 characters long. | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | The date that this resource was created. | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | The date that this resource was last updated. `null` if the message has not been edited. | [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/rest/conversations/v1/docs/UpdateConversationParticipantRequest.md b/rest/conversations/v1/docs/UpdateConversationParticipantRequest.md new file mode 100644 index 000000000..aad589755 --- /dev/null +++ b/rest/conversations/v1/docs/UpdateConversationParticipantRequest.md @@ -0,0 +1,19 @@ +# UpdateConversationParticipantRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \"{}\" will be returned. | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | The date that this resource was created. | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | The date that this resource was last updated. | [optional] +**Identity** | **string** | A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters. | [optional] +**LastReadMessageIndex** | Pointer to **int32** | Index of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. | [optional] +**LastReadTimestamp** | **string** | Timestamp of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. | [optional] +**MessagingBindingProjectedAddress** | **string** | The address of the Twilio phone number that is used in Group MMS. 'null' value will remove it. | [optional] +**MessagingBindingProxyAddress** | **string** | The address of the Twilio phone number that the participant is in contact with. 'null' value will remove it. | [optional] +**RoleSid** | **string** | The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. | [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/rest/conversations/v1/docs/UpdateConversationRequest.md b/rest/conversations/v1/docs/UpdateConversationRequest.md new file mode 100644 index 000000000..0265da30a --- /dev/null +++ b/rest/conversations/v1/docs/UpdateConversationRequest.md @@ -0,0 +1,19 @@ +# UpdateConversationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \"{}\" will be returned. | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | The date that this resource was created. | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | The date that this resource was last updated. | [optional] +**FriendlyName** | **string** | The human-readable name of this conversation, limited to 256 characters. Optional. | [optional] +**MessagingServiceSid** | **string** | The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. | [optional] +**State** | **string** | Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` | [optional] +**TimersClosed** | **string** | ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. | [optional] +**TimersInactive** | **string** | ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. | [optional] +**UniqueName** | **string** | An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. | [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/rest/conversations/v1/docs/UpdateConversationScopedWebhookRequest.md b/rest/conversations/v1/docs/UpdateConversationScopedWebhookRequest.md new file mode 100644 index 000000000..681edef81 --- /dev/null +++ b/rest/conversations/v1/docs/UpdateConversationScopedWebhookRequest.md @@ -0,0 +1,15 @@ +# UpdateConversationScopedWebhookRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConfigurationFilters** | **[]string** | The list of events, firing webhook event for this Conversation. | [optional] +**ConfigurationFlowSid** | **string** | The studio flow SID, where the webhook should be sent to. | [optional] +**ConfigurationMethod** | **string** | The HTTP method to be used when sending a webhook request. | [optional] +**ConfigurationTriggers** | **[]string** | The list of keywords, firing webhook event for this Conversation. | [optional] +**ConfigurationUrl** | **string** | The absolute url the webhook request should be sent to. | [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/rest/conversations/v1/docs/UpdateCredentialRequest.md b/rest/conversations/v1/docs/UpdateCredentialRequest.md new file mode 100644 index 000000000..5002e2598 --- /dev/null +++ b/rest/conversations/v1/docs/UpdateCredentialRequest.md @@ -0,0 +1,17 @@ +# UpdateCredentialRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiKey** | **string** | [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. | [optional] +**Certificate** | **string** | [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== -----END CERTIFICATE-----`. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | [optional] +**PrivateKey** | **string** | [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fG... -----END RSA PRIVATE KEY-----`. | [optional] +**Sandbox** | **bool** | [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. | [optional] +**Secret** | **string** | [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. | [optional] +**Type** | **string** | The type of push-notification service the credential is for. Can be: `fcm`, `gcm`, or `apn`. | [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/rest/conversations/v1/docs/UpdateRoleRequest.md b/rest/conversations/v1/docs/UpdateRoleRequest.md new file mode 100644 index 000000000..6482ab20c --- /dev/null +++ b/rest/conversations/v1/docs/UpdateRoleRequest.md @@ -0,0 +1,11 @@ +# UpdateRoleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Permission** | **[]string** | A permission that you grant to the role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. Note that the update action replaces all previously assigned permissions with those defined in the update action. To remove a permission, do not include it in the subsequent update action. The values for this parameter depend on the role's `type`. | + +[[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/rest/conversations/v1/docs/UpdateServiceConfigurationRequest.md b/rest/conversations/v1/docs/UpdateServiceConfigurationRequest.md new file mode 100644 index 000000000..4d0d2d718 --- /dev/null +++ b/rest/conversations/v1/docs/UpdateServiceConfigurationRequest.md @@ -0,0 +1,14 @@ +# UpdateServiceConfigurationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DefaultChatServiceRoleSid** | **string** | The service-level role assigned to users when they are added to the service. See the [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles. | [optional] +**DefaultConversationCreatorRoleSid** | **string** | The conversation-level role assigned to a conversation creator when they join a new conversation. See the [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles. | [optional] +**DefaultConversationRoleSid** | **string** | The conversation-level role assigned to users when they are added to a conversation. See the [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles. | [optional] +**ReachabilityEnabled** | **bool** | Whether the [Reachability Indicator](https://www.twilio.com/docs/chat/reachability-indicator) is enabled for this Conversations Service. The default is `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/rest/conversations/v1/docs/UpdateServiceConversationMessageRequest.md b/rest/conversations/v1/docs/UpdateServiceConversationMessageRequest.md new file mode 100644 index 000000000..727b47e70 --- /dev/null +++ b/rest/conversations/v1/docs/UpdateServiceConversationMessageRequest.md @@ -0,0 +1,15 @@ +# UpdateServiceConversationMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \"{}\" will be returned. | [optional] +**Author** | **string** | The channel specific identifier of the message's author. Defaults to `system`. | [optional] +**Body** | **string** | The content of the message, can be up to 1,600 characters long. | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | The date that this resource was created. | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | The date that this resource was last updated. `null` if the message has not been edited. | [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/rest/conversations/v1/docs/UpdateServiceConversationParticipantRequest.md b/rest/conversations/v1/docs/UpdateServiceConversationParticipantRequest.md new file mode 100644 index 000000000..55fe2dd14 --- /dev/null +++ b/rest/conversations/v1/docs/UpdateServiceConversationParticipantRequest.md @@ -0,0 +1,19 @@ +# UpdateServiceConversationParticipantRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \"{}\" will be returned. | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | The date that this resource was created. | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | The date that this resource was last updated. | [optional] +**Identity** | **string** | A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversation SDK to communicate. Limited to 256 characters. | [optional] +**LastReadMessageIndex** | Pointer to **int32** | Index of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. | [optional] +**LastReadTimestamp** | **string** | Timestamp of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. | [optional] +**MessagingBindingProjectedAddress** | **string** | The address of the Twilio phone number that is used in Group MMS. 'null' value will remove it. | [optional] +**MessagingBindingProxyAddress** | **string** | The address of the Twilio phone number that the participant is in contact with. 'null' value will remove it. | [optional] +**RoleSid** | **string** | The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. | [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/rest/conversations/v1/docs/UpdateServiceConversationRequest.md b/rest/conversations/v1/docs/UpdateServiceConversationRequest.md new file mode 100644 index 000000000..19d6f3ac3 --- /dev/null +++ b/rest/conversations/v1/docs/UpdateServiceConversationRequest.md @@ -0,0 +1,19 @@ +# UpdateServiceConversationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \"{}\" will be returned. | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | The date that this resource was created. | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | The date that this resource was last updated. | [optional] +**FriendlyName** | **string** | The human-readable name of this conversation, limited to 256 characters. Optional. | [optional] +**MessagingServiceSid** | **string** | The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. | [optional] +**State** | **string** | Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` | [optional] +**TimersClosed** | **string** | ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. | [optional] +**TimersInactive** | **string** | ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. | [optional] +**UniqueName** | **string** | An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. | [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/rest/conversations/v1/docs/UpdateServiceConversationScopedWebhookRequest.md b/rest/conversations/v1/docs/UpdateServiceConversationScopedWebhookRequest.md new file mode 100644 index 000000000..08858cbe5 --- /dev/null +++ b/rest/conversations/v1/docs/UpdateServiceConversationScopedWebhookRequest.md @@ -0,0 +1,15 @@ +# UpdateServiceConversationScopedWebhookRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConfigurationFilters** | **[]string** | The list of events, firing webhook event for this Conversation. | [optional] +**ConfigurationFlowSid** | **string** | The studio flow SID, where the webhook should be sent to. | [optional] +**ConfigurationMethod** | **string** | The HTTP method to be used when sending a webhook request. | [optional] +**ConfigurationTriggers** | **[]string** | The list of keywords, firing webhook event for this Conversation. | [optional] +**ConfigurationUrl** | **string** | The absolute url the webhook request should be sent to. | [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/rest/conversations/v1/docs/UpdateServiceNotificationRequest.md b/rest/conversations/v1/docs/UpdateServiceNotificationRequest.md new file mode 100644 index 000000000..467bf85f8 --- /dev/null +++ b/rest/conversations/v1/docs/UpdateServiceNotificationRequest.md @@ -0,0 +1,21 @@ +# UpdateServiceNotificationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AddedToConversationEnabled** | **bool** | Whether to send a notification when a participant is added to a conversation. The default is `false`. | [optional] +**AddedToConversationSound** | **string** | The name of the sound to play when a participant is added to a conversation and `added_to_conversation.enabled` is `true`. | [optional] +**AddedToConversationTemplate** | **string** | The template to use to create the notification text displayed when a participant is added to a conversation and `added_to_conversation.enabled` is `true`. | [optional] +**LogEnabled** | **bool** | Weather the notification logging is enabled. | [optional] +**NewMessageBadgeCountEnabled** | **bool** | Whether the new message badge is enabled. The default is `false`. | [optional] +**NewMessageEnabled** | **bool** | Whether to send a notification when a new message is added to a conversation. The default is `false`. | [optional] +**NewMessageSound** | **string** | The name of the sound to play when a new message is added to a conversation and `new_message.enabled` is `true`. | [optional] +**NewMessageTemplate** | **string** | The template to use to create the notification text displayed when a new message is added to a conversation and `new_message.enabled` is `true`. | [optional] +**RemovedFromConversationEnabled** | **bool** | Whether to send a notification to a user when they are removed from a conversation. The default is `false`. | [optional] +**RemovedFromConversationSound** | **string** | The name of the sound to play to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`. | [optional] +**RemovedFromConversationTemplate** | **string** | The template to use to create the notification text displayed to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`. | [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/rest/conversations/v1/docs/UpdateServiceRoleRequest.md b/rest/conversations/v1/docs/UpdateServiceRoleRequest.md new file mode 100644 index 000000000..72fab3f5b --- /dev/null +++ b/rest/conversations/v1/docs/UpdateServiceRoleRequest.md @@ -0,0 +1,11 @@ +# UpdateServiceRoleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Permission** | **[]string** | A permission that you grant to the role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. Note that the update action replaces all previously assigned permissions with those defined in the update action. To remove a permission, do not include it in the subsequent update action. The values for this parameter depend on the role's `type`. | + +[[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/rest/conversations/v1/docs/UpdateServiceUserRequest.md b/rest/conversations/v1/docs/UpdateServiceUserRequest.md new file mode 100644 index 000000000..a960a1da8 --- /dev/null +++ b/rest/conversations/v1/docs/UpdateServiceUserRequest.md @@ -0,0 +1,13 @@ +# UpdateServiceUserRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned. | [optional] +**FriendlyName** | **string** | The string that you assigned to describe the resource. | [optional] +**RoleSid** | **string** | The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user. | [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/rest/conversations/v1/docs/UpdateUserRequest.md b/rest/conversations/v1/docs/UpdateUserRequest.md new file mode 100644 index 000000000..bb540d873 --- /dev/null +++ b/rest/conversations/v1/docs/UpdateUserRequest.md @@ -0,0 +1,13 @@ +# UpdateUserRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned. | [optional] +**FriendlyName** | **string** | The string that you assigned to describe the resource. | [optional] +**RoleSid** | **string** | The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user. | [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/rest/conversations/v1/model_conversations_v1_configuration.go b/rest/conversations/v1/model_conversations_v1_configuration.go new file mode 100644 index 000000000..220bc1fe5 --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_configuration.go @@ -0,0 +1,21 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ConversationsV1Configuration struct for ConversationsV1Configuration +type ConversationsV1Configuration struct { + AccountSid string `json:"account_sid,omitempty"` + DefaultChatServiceSid string `json:"default_chat_service_sid,omitempty"` + DefaultClosedTimer string `json:"default_closed_timer,omitempty"` + DefaultInactiveTimer string `json:"default_inactive_timer,omitempty"` + DefaultMessagingServiceSid string `json:"default_messaging_service_sid,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_configuration_configuration_webhook.go b/rest/conversations/v1/model_conversations_v1_configuration_configuration_webhook.go new file mode 100644 index 000000000..5011ed8ea --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_configuration_configuration_webhook.go @@ -0,0 +1,21 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ConversationsV1ConfigurationConfigurationWebhook struct for ConversationsV1ConfigurationConfigurationWebhook +type ConversationsV1ConfigurationConfigurationWebhook struct { + AccountSid string `json:"account_sid,omitempty"` + Filters []string `json:"filters,omitempty"` + Method string `json:"method,omitempty"` + PostWebhookUrl string `json:"post_webhook_url,omitempty"` + PreWebhookUrl string `json:"pre_webhook_url,omitempty"` + Target string `json:"target,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_conversation.go b/rest/conversations/v1/model_conversations_v1_conversation.go new file mode 100644 index 000000000..2c42d339d --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_conversation.go @@ -0,0 +1,30 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ConversationsV1Conversation struct for ConversationsV1Conversation +type ConversationsV1Conversation struct { + AccountSid string `json:"account_sid,omitempty"` + Attributes string `json:"attributes,omitempty"` + ChatServiceSid string `json:"chat_service_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + MessagingServiceSid string `json:"messaging_service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + State string `json:"state,omitempty"` + Timers map[string]interface{} `json:"timers,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_conversation_conversation_message.go b/rest/conversations/v1/model_conversations_v1_conversation_conversation_message.go new file mode 100644 index 000000000..01f7cbc0b --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_conversation_conversation_message.go @@ -0,0 +1,31 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ConversationsV1ConversationConversationMessage struct for ConversationsV1ConversationConversationMessage +type ConversationsV1ConversationConversationMessage struct { + AccountSid string `json:"account_sid,omitempty"` + Attributes string `json:"attributes,omitempty"` + Author string `json:"author,omitempty"` + Body string `json:"body,omitempty"` + ConversationSid string `json:"conversation_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Delivery map[string]interface{} `json:"delivery,omitempty"` + Index int32 `json:"index,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Media []map[string]interface{} `json:"media,omitempty"` + ParticipantSid string `json:"participant_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_conversation_conversation_message_conversation_message_receipt.go b/rest/conversations/v1/model_conversations_v1_conversation_conversation_message_conversation_message_receipt.go new file mode 100644 index 000000000..9f223a66d --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_conversation_conversation_message_conversation_message_receipt.go @@ -0,0 +1,28 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ConversationsV1ConversationConversationMessageConversationMessageReceipt struct for ConversationsV1ConversationConversationMessageConversationMessageReceipt +type ConversationsV1ConversationConversationMessageConversationMessageReceipt struct { + AccountSid string `json:"account_sid,omitempty"` + ChannelMessageSid string `json:"channel_message_sid,omitempty"` + ConversationSid string `json:"conversation_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + ErrorCode int32 `json:"error_code,omitempty"` + MessageSid string `json:"message_sid,omitempty"` + ParticipantSid string `json:"participant_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Status string `json:"status,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_conversation_conversation_message_conversation_message_receipt_read_response.go b/rest/conversations/v1/model_conversations_v1_conversation_conversation_message_conversation_message_receipt_read_response.go new file mode 100644 index 000000000..754d6d1a7 --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_conversation_conversation_message_conversation_message_receipt_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse struct for ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse +type ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse struct { + DeliveryReceipts []ConversationsV1ConversationConversationMessageConversationMessageReceipt `json:"delivery_receipts,omitempty"` + Meta ConversationsV1ConversationReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_conversation_conversation_message_read_response.go b/rest/conversations/v1/model_conversations_v1_conversation_conversation_message_read_response.go new file mode 100644 index 000000000..d22067e19 --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_conversation_conversation_message_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ConversationsV1ConversationConversationMessageReadResponse struct for ConversationsV1ConversationConversationMessageReadResponse +type ConversationsV1ConversationConversationMessageReadResponse struct { + Messages []ConversationsV1ConversationConversationMessage `json:"messages,omitempty"` + Meta ConversationsV1ConversationReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_conversation_conversation_participant.go b/rest/conversations/v1/model_conversations_v1_conversation_conversation_participant.go new file mode 100644 index 000000000..bd5e14cb3 --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_conversation_conversation_participant.go @@ -0,0 +1,29 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ConversationsV1ConversationConversationParticipant struct for ConversationsV1ConversationConversationParticipant +type ConversationsV1ConversationConversationParticipant struct { + AccountSid string `json:"account_sid,omitempty"` + Attributes string `json:"attributes,omitempty"` + ConversationSid string `json:"conversation_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Identity string `json:"identity,omitempty"` + LastReadMessageIndex *int32 `json:"last_read_message_index,omitempty"` + LastReadTimestamp string `json:"last_read_timestamp,omitempty"` + MessagingBinding map[string]interface{} `json:"messaging_binding,omitempty"` + RoleSid string `json:"role_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_conversation_conversation_participant_read_response.go b/rest/conversations/v1/model_conversations_v1_conversation_conversation_participant_read_response.go new file mode 100644 index 000000000..96c31bc2b --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_conversation_conversation_participant_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ConversationsV1ConversationConversationParticipantReadResponse struct for ConversationsV1ConversationConversationParticipantReadResponse +type ConversationsV1ConversationConversationParticipantReadResponse struct { + Meta ConversationsV1ConversationReadResponseMeta `json:"meta,omitempty"` + Participants []ConversationsV1ConversationConversationParticipant `json:"participants,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_conversation_conversation_scoped_webhook.go b/rest/conversations/v1/model_conversations_v1_conversation_conversation_scoped_webhook.go new file mode 100644 index 000000000..fe1835c78 --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_conversation_conversation_scoped_webhook.go @@ -0,0 +1,25 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ConversationsV1ConversationConversationScopedWebhook struct for ConversationsV1ConversationConversationScopedWebhook +type ConversationsV1ConversationConversationScopedWebhook struct { + AccountSid string `json:"account_sid,omitempty"` + Configuration map[string]interface{} `json:"configuration,omitempty"` + ConversationSid string `json:"conversation_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Sid string `json:"sid,omitempty"` + Target string `json:"target,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_conversation_conversation_scoped_webhook_read_response.go b/rest/conversations/v1/model_conversations_v1_conversation_conversation_scoped_webhook_read_response.go new file mode 100644 index 000000000..d0338333e --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_conversation_conversation_scoped_webhook_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ConversationsV1ConversationConversationScopedWebhookReadResponse struct for ConversationsV1ConversationConversationScopedWebhookReadResponse +type ConversationsV1ConversationConversationScopedWebhookReadResponse struct { + Meta ConversationsV1ConversationReadResponseMeta `json:"meta,omitempty"` + Webhooks []ConversationsV1ConversationConversationScopedWebhook `json:"webhooks,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_conversation_read_response.go b/rest/conversations/v1/model_conversations_v1_conversation_read_response.go new file mode 100644 index 000000000..a54affa64 --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_conversation_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ConversationsV1ConversationReadResponse struct for ConversationsV1ConversationReadResponse +type ConversationsV1ConversationReadResponse struct { + Conversations []ConversationsV1Conversation `json:"conversations,omitempty"` + Meta ConversationsV1ConversationReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_conversation_read_response_meta.go b/rest/conversations/v1/model_conversations_v1_conversation_read_response_meta.go new file mode 100644 index 000000000..99e2ce076 --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_conversation_read_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ConversationsV1ConversationReadResponseMeta struct for ConversationsV1ConversationReadResponseMeta +type ConversationsV1ConversationReadResponseMeta struct { + FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` + NextPageUrl string `json:"next_page_url,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUrl string `json:"previous_page_url,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_credential.go b/rest/conversations/v1/model_conversations_v1_credential.go new file mode 100644 index 000000000..f01b5e44f --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_credential.go @@ -0,0 +1,25 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ConversationsV1Credential struct for ConversationsV1Credential +type ConversationsV1Credential struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Sandbox string `json:"sandbox,omitempty"` + Sid string `json:"sid,omitempty"` + Type string `json:"type,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_credential_read_response.go b/rest/conversations/v1/model_conversations_v1_credential_read_response.go new file mode 100644 index 000000000..fc71dfb22 --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_credential_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ConversationsV1CredentialReadResponse struct for ConversationsV1CredentialReadResponse +type ConversationsV1CredentialReadResponse struct { + Credentials []ConversationsV1Credential `json:"credentials,omitempty"` + Meta ConversationsV1ConversationReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_role.go b/rest/conversations/v1/model_conversations_v1_role.go new file mode 100644 index 000000000..874328c57 --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_role.go @@ -0,0 +1,26 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ConversationsV1Role struct for ConversationsV1Role +type ConversationsV1Role struct { + AccountSid string `json:"account_sid,omitempty"` + ChatServiceSid string `json:"chat_service_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Permissions []string `json:"permissions,omitempty"` + Sid string `json:"sid,omitempty"` + Type string `json:"type,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_role_read_response.go b/rest/conversations/v1/model_conversations_v1_role_read_response.go new file mode 100644 index 000000000..e5916d60b --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_role_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ConversationsV1RoleReadResponse struct for ConversationsV1RoleReadResponse +type ConversationsV1RoleReadResponse struct { + Meta ConversationsV1ConversationReadResponseMeta `json:"meta,omitempty"` + Roles []ConversationsV1Role `json:"roles,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_service.go b/rest/conversations/v1/model_conversations_v1_service.go new file mode 100644 index 000000000..d22b0093c --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_service.go @@ -0,0 +1,24 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ConversationsV1Service struct for ConversationsV1Service +type ConversationsV1Service struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_service_read_response.go b/rest/conversations/v1/model_conversations_v1_service_read_response.go new file mode 100644 index 000000000..a769b16a7 --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_service_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ConversationsV1ServiceReadResponse struct for ConversationsV1ServiceReadResponse +type ConversationsV1ServiceReadResponse struct { + Meta ConversationsV1ConversationReadResponseMeta `json:"meta,omitempty"` + Services []ConversationsV1Service `json:"services,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_service_service_binding.go b/rest/conversations/v1/model_conversations_v1_service_service_binding.go new file mode 100644 index 000000000..db457aee1 --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_service_service_binding.go @@ -0,0 +1,28 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ConversationsV1ServiceServiceBinding struct for ConversationsV1ServiceServiceBinding +type ConversationsV1ServiceServiceBinding struct { + AccountSid string `json:"account_sid,omitempty"` + BindingType string `json:"binding_type,omitempty"` + ChatServiceSid string `json:"chat_service_sid,omitempty"` + CredentialSid string `json:"credential_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Endpoint string `json:"endpoint,omitempty"` + Identity string `json:"identity,omitempty"` + MessageTypes []string `json:"message_types,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_service_service_binding_read_response.go b/rest/conversations/v1/model_conversations_v1_service_service_binding_read_response.go new file mode 100644 index 000000000..95972662c --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_service_service_binding_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ConversationsV1ServiceServiceBindingReadResponse struct for ConversationsV1ServiceServiceBindingReadResponse +type ConversationsV1ServiceServiceBindingReadResponse struct { + Bindings []ConversationsV1ServiceServiceBinding `json:"bindings,omitempty"` + Meta ConversationsV1ConversationReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_service_service_configuration.go b/rest/conversations/v1/model_conversations_v1_service_service_configuration.go new file mode 100644 index 000000000..24b1207ce --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_service_service_configuration.go @@ -0,0 +1,21 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ConversationsV1ServiceServiceConfiguration struct for ConversationsV1ServiceServiceConfiguration +type ConversationsV1ServiceServiceConfiguration struct { + ChatServiceSid string `json:"chat_service_sid,omitempty"` + DefaultChatServiceRoleSid string `json:"default_chat_service_role_sid,omitempty"` + DefaultConversationCreatorRoleSid string `json:"default_conversation_creator_role_sid,omitempty"` + DefaultConversationRoleSid string `json:"default_conversation_role_sid,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + ReachabilityEnabled bool `json:"reachability_enabled,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_service_service_configuration_service_notification.go b/rest/conversations/v1/model_conversations_v1_service_service_configuration_service_notification.go new file mode 100644 index 000000000..825c176aa --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_service_service_configuration_service_notification.go @@ -0,0 +1,21 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ConversationsV1ServiceServiceConfigurationServiceNotification struct for ConversationsV1ServiceServiceConfigurationServiceNotification +type ConversationsV1ServiceServiceConfigurationServiceNotification struct { + AccountSid string `json:"account_sid,omitempty"` + AddedToConversation map[string]interface{} `json:"added_to_conversation,omitempty"` + ChatServiceSid string `json:"chat_service_sid,omitempty"` + LogEnabled bool `json:"log_enabled,omitempty"` + NewMessage map[string]interface{} `json:"new_message,omitempty"` + RemovedFromConversation map[string]interface{} `json:"removed_from_conversation,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_service_service_conversation.go b/rest/conversations/v1/model_conversations_v1_service_service_conversation.go new file mode 100644 index 000000000..fc5835482 --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_service_service_conversation.go @@ -0,0 +1,30 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ConversationsV1ServiceServiceConversation struct for ConversationsV1ServiceServiceConversation +type ConversationsV1ServiceServiceConversation struct { + AccountSid string `json:"account_sid,omitempty"` + Attributes string `json:"attributes,omitempty"` + ChatServiceSid string `json:"chat_service_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + MessagingServiceSid string `json:"messaging_service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + State string `json:"state,omitempty"` + Timers map[string]interface{} `json:"timers,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_service_service_conversation_read_response.go b/rest/conversations/v1/model_conversations_v1_service_service_conversation_read_response.go new file mode 100644 index 000000000..e05ed85b4 --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_service_service_conversation_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ConversationsV1ServiceServiceConversationReadResponse struct for ConversationsV1ServiceServiceConversationReadResponse +type ConversationsV1ServiceServiceConversationReadResponse struct { + Conversations []ConversationsV1ServiceServiceConversation `json:"conversations,omitempty"` + Meta ConversationsV1ConversationReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message.go b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message.go new file mode 100644 index 000000000..9c03558bb --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message.go @@ -0,0 +1,32 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ConversationsV1ServiceServiceConversationServiceConversationMessage struct for ConversationsV1ServiceServiceConversationServiceConversationMessage +type ConversationsV1ServiceServiceConversationServiceConversationMessage struct { + AccountSid string `json:"account_sid,omitempty"` + Attributes string `json:"attributes,omitempty"` + Author string `json:"author,omitempty"` + Body string `json:"body,omitempty"` + ChatServiceSid string `json:"chat_service_sid,omitempty"` + ConversationSid string `json:"conversation_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Delivery map[string]interface{} `json:"delivery,omitempty"` + Index int32 `json:"index,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Media []map[string]interface{} `json:"media,omitempty"` + ParticipantSid string `json:"participant_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message_read_response.go b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message_read_response.go new file mode 100644 index 000000000..642b92b40 --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse struct for ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse +type ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse struct { + Messages []ConversationsV1ServiceServiceConversationServiceConversationMessage `json:"messages,omitempty"` + Meta ConversationsV1ConversationReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message_service_conversation_message_receipt.go b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message_service_conversation_message_receipt.go new file mode 100644 index 000000000..3dcb47f9f --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message_service_conversation_message_receipt.go @@ -0,0 +1,29 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt struct for ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt +type ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt struct { + AccountSid string `json:"account_sid,omitempty"` + ChannelMessageSid string `json:"channel_message_sid,omitempty"` + ChatServiceSid string `json:"chat_service_sid,omitempty"` + ConversationSid string `json:"conversation_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + ErrorCode int32 `json:"error_code,omitempty"` + MessageSid string `json:"message_sid,omitempty"` + ParticipantSid string `json:"participant_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Status string `json:"status,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message_service_conversation_message_receipt_read_response.go b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message_service_conversation_message_receipt_read_response.go new file mode 100644 index 000000000..63d3459af --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message_service_conversation_message_receipt_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse struct for ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse +type ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse struct { + DeliveryReceipts []ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt `json:"delivery_receipts,omitempty"` + Meta ConversationsV1ConversationReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_participant.go b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_participant.go new file mode 100644 index 000000000..9cfcbca1b --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_participant.go @@ -0,0 +1,30 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ConversationsV1ServiceServiceConversationServiceConversationParticipant struct for ConversationsV1ServiceServiceConversationServiceConversationParticipant +type ConversationsV1ServiceServiceConversationServiceConversationParticipant struct { + AccountSid string `json:"account_sid,omitempty"` + Attributes string `json:"attributes,omitempty"` + ChatServiceSid string `json:"chat_service_sid,omitempty"` + ConversationSid string `json:"conversation_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Identity string `json:"identity,omitempty"` + LastReadMessageIndex *int32 `json:"last_read_message_index,omitempty"` + LastReadTimestamp string `json:"last_read_timestamp,omitempty"` + MessagingBinding map[string]interface{} `json:"messaging_binding,omitempty"` + RoleSid string `json:"role_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_participant_read_response.go b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_participant_read_response.go new file mode 100644 index 000000000..ea145ff43 --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_participant_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse struct for ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse +type ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse struct { + Meta ConversationsV1ConversationReadResponseMeta `json:"meta,omitempty"` + Participants []ConversationsV1ServiceServiceConversationServiceConversationParticipant `json:"participants,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_scoped_webhook.go b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_scoped_webhook.go new file mode 100644 index 000000000..d6ab996dc --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_scoped_webhook.go @@ -0,0 +1,26 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook struct for ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook +type ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook struct { + AccountSid string `json:"account_sid,omitempty"` + ChatServiceSid string `json:"chat_service_sid,omitempty"` + Configuration map[string]interface{} `json:"configuration,omitempty"` + ConversationSid string `json:"conversation_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Sid string `json:"sid,omitempty"` + Target string `json:"target,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_scoped_webhook_read_response.go b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_scoped_webhook_read_response.go new file mode 100644 index 000000000..d6e42e3a7 --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_scoped_webhook_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse struct for ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse +type ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse struct { + Meta ConversationsV1ConversationReadResponseMeta `json:"meta,omitempty"` + Webhooks []ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook `json:"webhooks,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_service_service_role.go b/rest/conversations/v1/model_conversations_v1_service_service_role.go new file mode 100644 index 000000000..577cdd68e --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_service_service_role.go @@ -0,0 +1,26 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ConversationsV1ServiceServiceRole struct for ConversationsV1ServiceServiceRole +type ConversationsV1ServiceServiceRole struct { + AccountSid string `json:"account_sid,omitempty"` + ChatServiceSid string `json:"chat_service_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Permissions []string `json:"permissions,omitempty"` + Sid string `json:"sid,omitempty"` + Type string `json:"type,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_service_service_role_read_response.go b/rest/conversations/v1/model_conversations_v1_service_service_role_read_response.go new file mode 100644 index 000000000..24b9b5e33 --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_service_service_role_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ConversationsV1ServiceServiceRoleReadResponse struct for ConversationsV1ServiceServiceRoleReadResponse +type ConversationsV1ServiceServiceRoleReadResponse struct { + Meta ConversationsV1ConversationReadResponseMeta `json:"meta,omitempty"` + Roles []ConversationsV1ServiceServiceRole `json:"roles,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_service_service_user.go b/rest/conversations/v1/model_conversations_v1_service_service_user.go new file mode 100644 index 000000000..0d89d13ca --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_service_service_user.go @@ -0,0 +1,29 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ConversationsV1ServiceServiceUser struct for ConversationsV1ServiceServiceUser +type ConversationsV1ServiceServiceUser struct { + AccountSid string `json:"account_sid,omitempty"` + Attributes string `json:"attributes,omitempty"` + ChatServiceSid string `json:"chat_service_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Identity string `json:"identity,omitempty"` + IsNotifiable bool `json:"is_notifiable,omitempty"` + IsOnline bool `json:"is_online,omitempty"` + RoleSid string `json:"role_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_service_service_user_read_response.go b/rest/conversations/v1/model_conversations_v1_service_service_user_read_response.go new file mode 100644 index 000000000..836baf670 --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_service_service_user_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ConversationsV1ServiceServiceUserReadResponse struct for ConversationsV1ServiceServiceUserReadResponse +type ConversationsV1ServiceServiceUserReadResponse struct { + Meta ConversationsV1ConversationReadResponseMeta `json:"meta,omitempty"` + Users []ConversationsV1ServiceServiceUser `json:"users,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_user.go b/rest/conversations/v1/model_conversations_v1_user.go new file mode 100644 index 000000000..30ad6ec84 --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_user.go @@ -0,0 +1,29 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ConversationsV1User struct for ConversationsV1User +type ConversationsV1User struct { + AccountSid string `json:"account_sid,omitempty"` + Attributes string `json:"attributes,omitempty"` + ChatServiceSid string `json:"chat_service_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Identity string `json:"identity,omitempty"` + IsNotifiable bool `json:"is_notifiable,omitempty"` + IsOnline bool `json:"is_online,omitempty"` + RoleSid string `json:"role_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_user_read_response.go b/rest/conversations/v1/model_conversations_v1_user_read_response.go new file mode 100644 index 000000000..7ec09b989 --- /dev/null +++ b/rest/conversations/v1/model_conversations_v1_user_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ConversationsV1UserReadResponse struct for ConversationsV1UserReadResponse +type ConversationsV1UserReadResponse struct { + Meta ConversationsV1ConversationReadResponseMeta `json:"meta,omitempty"` + Users []ConversationsV1User `json:"users,omitempty"` +} diff --git a/rest/conversations/v1/model_create_conversation_message_request.go b/rest/conversations/v1/model_create_conversation_message_request.go new file mode 100644 index 000000000..36e0a4b94 --- /dev/null +++ b/rest/conversations/v1/model_create_conversation_message_request.go @@ -0,0 +1,29 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// CreateConversationMessageRequest struct for CreateConversationMessageRequest +type CreateConversationMessageRequest struct { + // A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \"{}\" will be returned. + Attributes string `json:"Attributes,omitempty"` + // The channel specific identifier of the message's author. Defaults to `system`. + Author string `json:"Author,omitempty"` + // The content of the message, can be up to 1,600 characters long. + Body string `json:"Body,omitempty"` + // The date that this resource was created. + DateCreated time.Time `json:"DateCreated,omitempty"` + // The date that this resource was last updated. `null` if the message has not been edited. + DateUpdated time.Time `json:"DateUpdated,omitempty"` + // The Media SID to be attached to the new Message. + MediaSid string `json:"MediaSid,omitempty"` +} diff --git a/rest/conversations/v1/model_create_conversation_participant_request.go b/rest/conversations/v1/model_create_conversation_participant_request.go new file mode 100644 index 000000000..535c5396d --- /dev/null +++ b/rest/conversations/v1/model_create_conversation_participant_request.go @@ -0,0 +1,33 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// CreateConversationParticipantRequest struct for CreateConversationParticipantRequest +type CreateConversationParticipantRequest struct { + // An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \"{}\" will be returned. + Attributes string `json:"Attributes,omitempty"` + // The date that this resource was created. + DateCreated time.Time `json:"DateCreated,omitempty"` + // The date that this resource was last updated. + DateUpdated time.Time `json:"DateUpdated,omitempty"` + // A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters. + Identity string `json:"Identity,omitempty"` + // The address of the participant's device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). + MessagingBindingAddress string `json:"MessagingBinding.Address,omitempty"` + // The address of the Twilio phone number that is used in Group MMS. Communication mask for the Conversation participant with Identity. + MessagingBindingProjectedAddress string `json:"MessagingBinding.ProjectedAddress,omitempty"` + // The address of the Twilio phone number (or WhatsApp number) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). + MessagingBindingProxyAddress string `json:"MessagingBinding.ProxyAddress,omitempty"` + // The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. + RoleSid string `json:"RoleSid,omitempty"` +} diff --git a/rest/conversations/v1/model_create_conversation_request.go b/rest/conversations/v1/model_create_conversation_request.go new file mode 100644 index 000000000..a5aae014a --- /dev/null +++ b/rest/conversations/v1/model_create_conversation_request.go @@ -0,0 +1,35 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// CreateConversationRequest struct for CreateConversationRequest +type CreateConversationRequest struct { + // An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \"{}\" will be returned. + Attributes string `json:"Attributes,omitempty"` + // The date that this resource was created. + DateCreated time.Time `json:"DateCreated,omitempty"` + // The date that this resource was last updated. + DateUpdated time.Time `json:"DateUpdated,omitempty"` + // The human-readable name of this conversation, limited to 256 characters. Optional. + FriendlyName string `json:"FriendlyName,omitempty"` + // The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. + MessagingServiceSid string `json:"MessagingServiceSid,omitempty"` + // Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` + State string `json:"State,omitempty"` + // ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. + TimersClosed string `json:"Timers.Closed,omitempty"` + // ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. + TimersInactive string `json:"Timers.Inactive,omitempty"` + // An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/conversations/v1/model_create_conversation_scoped_webhook_request.go b/rest/conversations/v1/model_create_conversation_scoped_webhook_request.go new file mode 100644 index 000000000..3fbf9e82c --- /dev/null +++ b/rest/conversations/v1/model_create_conversation_scoped_webhook_request.go @@ -0,0 +1,28 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateConversationScopedWebhookRequest struct for CreateConversationScopedWebhookRequest +type CreateConversationScopedWebhookRequest struct { + // The list of events, firing webhook event for this Conversation. + ConfigurationFilters []string `json:"Configuration.Filters,omitempty"` + // The studio flow SID, where the webhook should be sent to. + ConfigurationFlowSid string `json:"Configuration.FlowSid,omitempty"` + // The HTTP method to be used when sending a webhook request. + ConfigurationMethod string `json:"Configuration.Method,omitempty"` + // The message index for which and it's successors the webhook will be replayed. Not set by default + ConfigurationReplayAfter int32 `json:"Configuration.ReplayAfter,omitempty"` + // The list of keywords, firing webhook event for this Conversation. + ConfigurationTriggers []string `json:"Configuration.Triggers,omitempty"` + // The absolute url the webhook request should be sent to. + ConfigurationUrl string `json:"Configuration.Url,omitempty"` + // The target of this webhook: `webhook`, `studio`, `trigger` + Target string `json:"Target"` +} diff --git a/rest/conversations/v1/model_create_credential_request.go b/rest/conversations/v1/model_create_credential_request.go new file mode 100644 index 000000000..814fadb10 --- /dev/null +++ b/rest/conversations/v1/model_create_credential_request.go @@ -0,0 +1,28 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateCredentialRequest struct for CreateCredentialRequest +type CreateCredentialRequest struct { + // [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. + ApiKey string `json:"ApiKey,omitempty"` + // [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== -----END CERTIFICATE-----`. + Certificate string `json:"Certificate,omitempty"` + // A descriptive string that you create to describe the new resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fG... -----END RSA PRIVATE KEY-----`. + PrivateKey string `json:"PrivateKey,omitempty"` + // [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. + Sandbox bool `json:"Sandbox,omitempty"` + // [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. + Secret string `json:"Secret,omitempty"` + // The type of push-notification service the credential is for. Can be: `fcm`, `gcm`, or `apn`. + Type string `json:"Type"` +} diff --git a/rest/conversations/v1/model_create_role_request.go b/rest/conversations/v1/model_create_role_request.go new file mode 100644 index 000000000..602bb1328 --- /dev/null +++ b/rest/conversations/v1/model_create_role_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateRoleRequest struct for CreateRoleRequest +type CreateRoleRequest struct { + // A descriptive string that you create to describe the new resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName"` + // A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type`. + Permission []string `json:"Permission"` + // The type of role. Can be: `conversation` for [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) roles or `service` for [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) roles. + Type string `json:"Type"` +} diff --git a/rest/conversations/v1/model_create_service_conversation_message_request.go b/rest/conversations/v1/model_create_service_conversation_message_request.go new file mode 100644 index 000000000..4c26774cc --- /dev/null +++ b/rest/conversations/v1/model_create_service_conversation_message_request.go @@ -0,0 +1,29 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// CreateServiceConversationMessageRequest struct for CreateServiceConversationMessageRequest +type CreateServiceConversationMessageRequest struct { + // A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \"{}\" will be returned. + Attributes string `json:"Attributes,omitempty"` + // The channel specific identifier of the message's author. Defaults to `system`. + Author string `json:"Author,omitempty"` + // The content of the message, can be up to 1,600 characters long. + Body string `json:"Body,omitempty"` + // The date that this resource was created. + DateCreated time.Time `json:"DateCreated,omitempty"` + // The date that this resource was last updated. `null` if the message has not been edited. + DateUpdated time.Time `json:"DateUpdated,omitempty"` + // The Media SID to be attached to the new Message. + MediaSid string `json:"MediaSid,omitempty"` +} diff --git a/rest/conversations/v1/model_create_service_conversation_participant_request.go b/rest/conversations/v1/model_create_service_conversation_participant_request.go new file mode 100644 index 000000000..ea9177c5b --- /dev/null +++ b/rest/conversations/v1/model_create_service_conversation_participant_request.go @@ -0,0 +1,33 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// CreateServiceConversationParticipantRequest struct for CreateServiceConversationParticipantRequest +type CreateServiceConversationParticipantRequest struct { + // An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \"{}\" will be returned. + Attributes string `json:"Attributes,omitempty"` + // The date that this resource was created. + DateCreated time.Time `json:"DateCreated,omitempty"` + // The date that this resource was last updated. + DateUpdated time.Time `json:"DateUpdated,omitempty"` + // A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversation SDK to communicate. Limited to 256 characters. + Identity string `json:"Identity,omitempty"` + // The address of the participant's device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). + MessagingBindingAddress string `json:"MessagingBinding.Address,omitempty"` + // The address of the Twilio phone number that is used in Group MMS. Communication mask for the Conversation participant with Identity. + MessagingBindingProjectedAddress string `json:"MessagingBinding.ProjectedAddress,omitempty"` + // The address of the Twilio phone number (or WhatsApp number) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). + MessagingBindingProxyAddress string `json:"MessagingBinding.ProxyAddress,omitempty"` + // The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. + RoleSid string `json:"RoleSid,omitempty"` +} diff --git a/rest/conversations/v1/model_create_service_conversation_request.go b/rest/conversations/v1/model_create_service_conversation_request.go new file mode 100644 index 000000000..c10d0b40a --- /dev/null +++ b/rest/conversations/v1/model_create_service_conversation_request.go @@ -0,0 +1,35 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// CreateServiceConversationRequest struct for CreateServiceConversationRequest +type CreateServiceConversationRequest struct { + // An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \"{}\" will be returned. + Attributes string `json:"Attributes,omitempty"` + // The date that this resource was created. + DateCreated time.Time `json:"DateCreated,omitempty"` + // The date that this resource was last updated. + DateUpdated time.Time `json:"DateUpdated,omitempty"` + // The human-readable name of this conversation, limited to 256 characters. Optional. + FriendlyName string `json:"FriendlyName,omitempty"` + // The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. + MessagingServiceSid string `json:"MessagingServiceSid,omitempty"` + // Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` + State string `json:"State,omitempty"` + // ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. + TimersClosed string `json:"Timers.Closed,omitempty"` + // ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. + TimersInactive string `json:"Timers.Inactive,omitempty"` + // An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/conversations/v1/model_create_service_conversation_scoped_webhook_request.go b/rest/conversations/v1/model_create_service_conversation_scoped_webhook_request.go new file mode 100644 index 000000000..f19acb8bb --- /dev/null +++ b/rest/conversations/v1/model_create_service_conversation_scoped_webhook_request.go @@ -0,0 +1,28 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateServiceConversationScopedWebhookRequest struct for CreateServiceConversationScopedWebhookRequest +type CreateServiceConversationScopedWebhookRequest struct { + // The list of events, firing webhook event for this Conversation. + ConfigurationFilters []string `json:"Configuration.Filters,omitempty"` + // The studio flow SID, where the webhook should be sent to. + ConfigurationFlowSid string `json:"Configuration.FlowSid,omitempty"` + // The HTTP method to be used when sending a webhook request. + ConfigurationMethod string `json:"Configuration.Method,omitempty"` + // The message index for which and it's successors the webhook will be replayed. Not set by default + ConfigurationReplayAfter int32 `json:"Configuration.ReplayAfter,omitempty"` + // The list of keywords, firing webhook event for this Conversation. + ConfigurationTriggers []string `json:"Configuration.Triggers,omitempty"` + // The absolute url the webhook request should be sent to. + ConfigurationUrl string `json:"Configuration.Url,omitempty"` + // The target of this webhook: `webhook`, `studio`, `trigger` + Target string `json:"Target"` +} diff --git a/rest/conversations/v1/model_create_service_request.go b/rest/conversations/v1/model_create_service_request.go new file mode 100644 index 000000000..858ac0217 --- /dev/null +++ b/rest/conversations/v1/model_create_service_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateServiceRequest struct for CreateServiceRequest +type CreateServiceRequest struct { + // The human-readable name of this service, limited to 256 characters. Optional. + FriendlyName string `json:"FriendlyName"` +} diff --git a/rest/conversations/v1/model_create_service_role_request.go b/rest/conversations/v1/model_create_service_role_request.go new file mode 100644 index 000000000..2952b3c71 --- /dev/null +++ b/rest/conversations/v1/model_create_service_role_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateServiceRoleRequest struct for CreateServiceRoleRequest +type CreateServiceRoleRequest struct { + // A descriptive string that you create to describe the new resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName"` + // A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type`. + Permission []string `json:"Permission"` + // The type of role. Can be: `conversation` for [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) roles or `service` for [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) roles. + Type string `json:"Type"` +} diff --git a/rest/conversations/v1/model_create_service_user_request.go b/rest/conversations/v1/model_create_service_user_request.go new file mode 100644 index 000000000..374b65ed8 --- /dev/null +++ b/rest/conversations/v1/model_create_service_user_request.go @@ -0,0 +1,22 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateServiceUserRequest struct for CreateServiceUserRequest +type CreateServiceUserRequest struct { + // The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned. + Attributes string `json:"Attributes,omitempty"` + // The string that you assigned to describe the resource. + FriendlyName string `json:"FriendlyName,omitempty"` + // The application-defined string that uniquely identifies the resource's User within the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource). This value is often a username or an email address, and is case-sensitive. + Identity string `json:"Identity"` + // The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user. + RoleSid string `json:"RoleSid,omitempty"` +} diff --git a/rest/conversations/v1/model_create_user_request.go b/rest/conversations/v1/model_create_user_request.go new file mode 100644 index 000000000..186efe038 --- /dev/null +++ b/rest/conversations/v1/model_create_user_request.go @@ -0,0 +1,22 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateUserRequest struct for CreateUserRequest +type CreateUserRequest struct { + // The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned. + Attributes string `json:"Attributes,omitempty"` + // The string that you assigned to describe the resource. + FriendlyName string `json:"FriendlyName,omitempty"` + // The application-defined string that uniquely identifies the resource's User within the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource). This value is often a username or an email address, and is case-sensitive. + Identity string `json:"Identity"` + // The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user. + RoleSid string `json:"RoleSid,omitempty"` +} diff --git a/rest/conversations/v1/model_update_configuration_request.go b/rest/conversations/v1/model_update_configuration_request.go new file mode 100644 index 000000000..2b2869337 --- /dev/null +++ b/rest/conversations/v1/model_update_configuration_request.go @@ -0,0 +1,22 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateConfigurationRequest struct for UpdateConfigurationRequest +type UpdateConfigurationRequest struct { + // The SID of the default [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to use when creating a conversation. + DefaultChatServiceSid string `json:"DefaultChatServiceSid,omitempty"` + // Default ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. + DefaultClosedTimer string `json:"DefaultClosedTimer,omitempty"` + // Default ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. + DefaultInactiveTimer string `json:"DefaultInactiveTimer,omitempty"` + // The SID of the default [Messaging Service](https://www.twilio.com/docs/sms/services/api) to use when creating a conversation. + DefaultMessagingServiceSid string `json:"DefaultMessagingServiceSid,omitempty"` +} diff --git a/rest/conversations/v1/model_update_configuration_webhook_request.go b/rest/conversations/v1/model_update_configuration_webhook_request.go new file mode 100644 index 000000000..2d7a6fafc --- /dev/null +++ b/rest/conversations/v1/model_update_configuration_webhook_request.go @@ -0,0 +1,24 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateConfigurationWebhookRequest struct for UpdateConfigurationWebhookRequest +type UpdateConfigurationWebhookRequest struct { + // The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved` + Filters []string `json:"Filters,omitempty"` + // The HTTP method to be used when sending a webhook request. + Method string `json:"Method,omitempty"` + // The absolute url the post-event webhook request should be sent to. + PostWebhookUrl string `json:"PostWebhookUrl,omitempty"` + // The absolute url the pre-event webhook request should be sent to. + PreWebhookUrl string `json:"PreWebhookUrl,omitempty"` + // The routing target of the webhook. + Target string `json:"Target,omitempty"` +} diff --git a/rest/conversations/v1/model_update_conversation_message_request.go b/rest/conversations/v1/model_update_conversation_message_request.go new file mode 100644 index 000000000..cf5779a93 --- /dev/null +++ b/rest/conversations/v1/model_update_conversation_message_request.go @@ -0,0 +1,27 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// UpdateConversationMessageRequest struct for UpdateConversationMessageRequest +type UpdateConversationMessageRequest struct { + // A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \"{}\" will be returned. + Attributes string `json:"Attributes,omitempty"` + // The channel specific identifier of the message's author. Defaults to `system`. + Author string `json:"Author,omitempty"` + // The content of the message, can be up to 1,600 characters long. + Body string `json:"Body,omitempty"` + // The date that this resource was created. + DateCreated time.Time `json:"DateCreated,omitempty"` + // The date that this resource was last updated. `null` if the message has not been edited. + DateUpdated time.Time `json:"DateUpdated,omitempty"` +} diff --git a/rest/conversations/v1/model_update_conversation_participant_request.go b/rest/conversations/v1/model_update_conversation_participant_request.go new file mode 100644 index 000000000..669704fec --- /dev/null +++ b/rest/conversations/v1/model_update_conversation_participant_request.go @@ -0,0 +1,35 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// UpdateConversationParticipantRequest struct for UpdateConversationParticipantRequest +type UpdateConversationParticipantRequest struct { + // An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \"{}\" will be returned. + Attributes string `json:"Attributes,omitempty"` + // The date that this resource was created. + DateCreated time.Time `json:"DateCreated,omitempty"` + // The date that this resource was last updated. + DateUpdated time.Time `json:"DateUpdated,omitempty"` + // A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters. + Identity string `json:"Identity,omitempty"` + // Index of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. + LastReadMessageIndex *int32 `json:"LastReadMessageIndex,omitempty"` + // Timestamp of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. + LastReadTimestamp string `json:"LastReadTimestamp,omitempty"` + // The address of the Twilio phone number that is used in Group MMS. 'null' value will remove it. + MessagingBindingProjectedAddress string `json:"MessagingBinding.ProjectedAddress,omitempty"` + // The address of the Twilio phone number that the participant is in contact with. 'null' value will remove it. + MessagingBindingProxyAddress string `json:"MessagingBinding.ProxyAddress,omitempty"` + // The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. + RoleSid string `json:"RoleSid,omitempty"` +} diff --git a/rest/conversations/v1/model_update_conversation_request.go b/rest/conversations/v1/model_update_conversation_request.go new file mode 100644 index 000000000..834d0a919 --- /dev/null +++ b/rest/conversations/v1/model_update_conversation_request.go @@ -0,0 +1,35 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// UpdateConversationRequest struct for UpdateConversationRequest +type UpdateConversationRequest struct { + // An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \"{}\" will be returned. + Attributes string `json:"Attributes,omitempty"` + // The date that this resource was created. + DateCreated time.Time `json:"DateCreated,omitempty"` + // The date that this resource was last updated. + DateUpdated time.Time `json:"DateUpdated,omitempty"` + // The human-readable name of this conversation, limited to 256 characters. Optional. + FriendlyName string `json:"FriendlyName,omitempty"` + // The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. + MessagingServiceSid string `json:"MessagingServiceSid,omitempty"` + // Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` + State string `json:"State,omitempty"` + // ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. + TimersClosed string `json:"Timers.Closed,omitempty"` + // ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. + TimersInactive string `json:"Timers.Inactive,omitempty"` + // An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/conversations/v1/model_update_conversation_scoped_webhook_request.go b/rest/conversations/v1/model_update_conversation_scoped_webhook_request.go new file mode 100644 index 000000000..a9242cefe --- /dev/null +++ b/rest/conversations/v1/model_update_conversation_scoped_webhook_request.go @@ -0,0 +1,24 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateConversationScopedWebhookRequest struct for UpdateConversationScopedWebhookRequest +type UpdateConversationScopedWebhookRequest struct { + // The list of events, firing webhook event for this Conversation. + ConfigurationFilters []string `json:"Configuration.Filters,omitempty"` + // The studio flow SID, where the webhook should be sent to. + ConfigurationFlowSid string `json:"Configuration.FlowSid,omitempty"` + // The HTTP method to be used when sending a webhook request. + ConfigurationMethod string `json:"Configuration.Method,omitempty"` + // The list of keywords, firing webhook event for this Conversation. + ConfigurationTriggers []string `json:"Configuration.Triggers,omitempty"` + // The absolute url the webhook request should be sent to. + ConfigurationUrl string `json:"Configuration.Url,omitempty"` +} diff --git a/rest/conversations/v1/model_update_credential_request.go b/rest/conversations/v1/model_update_credential_request.go new file mode 100644 index 000000000..791069b9d --- /dev/null +++ b/rest/conversations/v1/model_update_credential_request.go @@ -0,0 +1,28 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateCredentialRequest struct for UpdateCredentialRequest +type UpdateCredentialRequest struct { + // [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. + ApiKey string `json:"ApiKey,omitempty"` + // [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== -----END CERTIFICATE-----`. + Certificate string `json:"Certificate,omitempty"` + // A descriptive string that you create to describe the new resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fG... -----END RSA PRIVATE KEY-----`. + PrivateKey string `json:"PrivateKey,omitempty"` + // [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. + Sandbox bool `json:"Sandbox,omitempty"` + // [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. + Secret string `json:"Secret,omitempty"` + // The type of push-notification service the credential is for. Can be: `fcm`, `gcm`, or `apn`. + Type string `json:"Type,omitempty"` +} diff --git a/rest/conversations/v1/model_update_role_request.go b/rest/conversations/v1/model_update_role_request.go new file mode 100644 index 000000000..5cd19ecb0 --- /dev/null +++ b/rest/conversations/v1/model_update_role_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateRoleRequest struct for UpdateRoleRequest +type UpdateRoleRequest struct { + // A permission that you grant to the role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. Note that the update action replaces all previously assigned permissions with those defined in the update action. To remove a permission, do not include it in the subsequent update action. The values for this parameter depend on the role's `type`. + Permission []string `json:"Permission"` +} diff --git a/rest/conversations/v1/model_update_service_configuration_request.go b/rest/conversations/v1/model_update_service_configuration_request.go new file mode 100644 index 000000000..66c40846a --- /dev/null +++ b/rest/conversations/v1/model_update_service_configuration_request.go @@ -0,0 +1,22 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateServiceConfigurationRequest struct for UpdateServiceConfigurationRequest +type UpdateServiceConfigurationRequest struct { + // The service-level role assigned to users when they are added to the service. See the [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles. + DefaultChatServiceRoleSid string `json:"DefaultChatServiceRoleSid,omitempty"` + // The conversation-level role assigned to a conversation creator when they join a new conversation. See the [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles. + DefaultConversationCreatorRoleSid string `json:"DefaultConversationCreatorRoleSid,omitempty"` + // The conversation-level role assigned to users when they are added to a conversation. See the [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles. + DefaultConversationRoleSid string `json:"DefaultConversationRoleSid,omitempty"` + // Whether the [Reachability Indicator](https://www.twilio.com/docs/chat/reachability-indicator) is enabled for this Conversations Service. The default is `false`. + ReachabilityEnabled bool `json:"ReachabilityEnabled,omitempty"` +} diff --git a/rest/conversations/v1/model_update_service_conversation_message_request.go b/rest/conversations/v1/model_update_service_conversation_message_request.go new file mode 100644 index 000000000..4849bd23c --- /dev/null +++ b/rest/conversations/v1/model_update_service_conversation_message_request.go @@ -0,0 +1,27 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// UpdateServiceConversationMessageRequest struct for UpdateServiceConversationMessageRequest +type UpdateServiceConversationMessageRequest struct { + // A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \"{}\" will be returned. + Attributes string `json:"Attributes,omitempty"` + // The channel specific identifier of the message's author. Defaults to `system`. + Author string `json:"Author,omitempty"` + // The content of the message, can be up to 1,600 characters long. + Body string `json:"Body,omitempty"` + // The date that this resource was created. + DateCreated time.Time `json:"DateCreated,omitempty"` + // The date that this resource was last updated. `null` if the message has not been edited. + DateUpdated time.Time `json:"DateUpdated,omitempty"` +} diff --git a/rest/conversations/v1/model_update_service_conversation_participant_request.go b/rest/conversations/v1/model_update_service_conversation_participant_request.go new file mode 100644 index 000000000..c0c422021 --- /dev/null +++ b/rest/conversations/v1/model_update_service_conversation_participant_request.go @@ -0,0 +1,35 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// UpdateServiceConversationParticipantRequest struct for UpdateServiceConversationParticipantRequest +type UpdateServiceConversationParticipantRequest struct { + // An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \"{}\" will be returned. + Attributes string `json:"Attributes,omitempty"` + // The date that this resource was created. + DateCreated time.Time `json:"DateCreated,omitempty"` + // The date that this resource was last updated. + DateUpdated time.Time `json:"DateUpdated,omitempty"` + // A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversation SDK to communicate. Limited to 256 characters. + Identity string `json:"Identity,omitempty"` + // Index of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. + LastReadMessageIndex *int32 `json:"LastReadMessageIndex,omitempty"` + // Timestamp of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. + LastReadTimestamp string `json:"LastReadTimestamp,omitempty"` + // The address of the Twilio phone number that is used in Group MMS. 'null' value will remove it. + MessagingBindingProjectedAddress string `json:"MessagingBinding.ProjectedAddress,omitempty"` + // The address of the Twilio phone number that the participant is in contact with. 'null' value will remove it. + MessagingBindingProxyAddress string `json:"MessagingBinding.ProxyAddress,omitempty"` + // The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. + RoleSid string `json:"RoleSid,omitempty"` +} diff --git a/rest/conversations/v1/model_update_service_conversation_request.go b/rest/conversations/v1/model_update_service_conversation_request.go new file mode 100644 index 000000000..dabe25232 --- /dev/null +++ b/rest/conversations/v1/model_update_service_conversation_request.go @@ -0,0 +1,35 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// UpdateServiceConversationRequest struct for UpdateServiceConversationRequest +type UpdateServiceConversationRequest struct { + // An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \"{}\" will be returned. + Attributes string `json:"Attributes,omitempty"` + // The date that this resource was created. + DateCreated time.Time `json:"DateCreated,omitempty"` + // The date that this resource was last updated. + DateUpdated time.Time `json:"DateUpdated,omitempty"` + // The human-readable name of this conversation, limited to 256 characters. Optional. + FriendlyName string `json:"FriendlyName,omitempty"` + // The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. + MessagingServiceSid string `json:"MessagingServiceSid,omitempty"` + // Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` + State string `json:"State,omitempty"` + // ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. + TimersClosed string `json:"Timers.Closed,omitempty"` + // ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. + TimersInactive string `json:"Timers.Inactive,omitempty"` + // An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/conversations/v1/model_update_service_conversation_scoped_webhook_request.go b/rest/conversations/v1/model_update_service_conversation_scoped_webhook_request.go new file mode 100644 index 000000000..4b7e80790 --- /dev/null +++ b/rest/conversations/v1/model_update_service_conversation_scoped_webhook_request.go @@ -0,0 +1,24 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateServiceConversationScopedWebhookRequest struct for UpdateServiceConversationScopedWebhookRequest +type UpdateServiceConversationScopedWebhookRequest struct { + // The list of events, firing webhook event for this Conversation. + ConfigurationFilters []string `json:"Configuration.Filters,omitempty"` + // The studio flow SID, where the webhook should be sent to. + ConfigurationFlowSid string `json:"Configuration.FlowSid,omitempty"` + // The HTTP method to be used when sending a webhook request. + ConfigurationMethod string `json:"Configuration.Method,omitempty"` + // The list of keywords, firing webhook event for this Conversation. + ConfigurationTriggers []string `json:"Configuration.Triggers,omitempty"` + // The absolute url the webhook request should be sent to. + ConfigurationUrl string `json:"Configuration.Url,omitempty"` +} diff --git a/rest/conversations/v1/model_update_service_notification_request.go b/rest/conversations/v1/model_update_service_notification_request.go new file mode 100644 index 000000000..6df07de02 --- /dev/null +++ b/rest/conversations/v1/model_update_service_notification_request.go @@ -0,0 +1,36 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateServiceNotificationRequest struct for UpdateServiceNotificationRequest +type UpdateServiceNotificationRequest struct { + // Whether to send a notification when a participant is added to a conversation. The default is `false`. + AddedToConversationEnabled bool `json:"AddedToConversation.Enabled,omitempty"` + // The name of the sound to play when a participant is added to a conversation and `added_to_conversation.enabled` is `true`. + AddedToConversationSound string `json:"AddedToConversation.Sound,omitempty"` + // The template to use to create the notification text displayed when a participant is added to a conversation and `added_to_conversation.enabled` is `true`. + AddedToConversationTemplate string `json:"AddedToConversation.Template,omitempty"` + // Weather the notification logging is enabled. + LogEnabled bool `json:"LogEnabled,omitempty"` + // Whether the new message badge is enabled. The default is `false`. + NewMessageBadgeCountEnabled bool `json:"NewMessage.BadgeCountEnabled,omitempty"` + // Whether to send a notification when a new message is added to a conversation. The default is `false`. + NewMessageEnabled bool `json:"NewMessage.Enabled,omitempty"` + // The name of the sound to play when a new message is added to a conversation and `new_message.enabled` is `true`. + NewMessageSound string `json:"NewMessage.Sound,omitempty"` + // The template to use to create the notification text displayed when a new message is added to a conversation and `new_message.enabled` is `true`. + NewMessageTemplate string `json:"NewMessage.Template,omitempty"` + // Whether to send a notification to a user when they are removed from a conversation. The default is `false`. + RemovedFromConversationEnabled bool `json:"RemovedFromConversation.Enabled,omitempty"` + // The name of the sound to play to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`. + RemovedFromConversationSound string `json:"RemovedFromConversation.Sound,omitempty"` + // The template to use to create the notification text displayed to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`. + RemovedFromConversationTemplate string `json:"RemovedFromConversation.Template,omitempty"` +} diff --git a/rest/conversations/v1/model_update_service_role_request.go b/rest/conversations/v1/model_update_service_role_request.go new file mode 100644 index 000000000..d7c8df104 --- /dev/null +++ b/rest/conversations/v1/model_update_service_role_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateServiceRoleRequest struct for UpdateServiceRoleRequest +type UpdateServiceRoleRequest struct { + // A permission that you grant to the role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. Note that the update action replaces all previously assigned permissions with those defined in the update action. To remove a permission, do not include it in the subsequent update action. The values for this parameter depend on the role's `type`. + Permission []string `json:"Permission"` +} diff --git a/rest/conversations/v1/model_update_service_user_request.go b/rest/conversations/v1/model_update_service_user_request.go new file mode 100644 index 000000000..639098ddf --- /dev/null +++ b/rest/conversations/v1/model_update_service_user_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateServiceUserRequest struct for UpdateServiceUserRequest +type UpdateServiceUserRequest struct { + // The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned. + Attributes string `json:"Attributes,omitempty"` + // The string that you assigned to describe the resource. + FriendlyName string `json:"FriendlyName,omitempty"` + // The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user. + RoleSid string `json:"RoleSid,omitempty"` +} diff --git a/rest/conversations/v1/model_update_user_request.go b/rest/conversations/v1/model_update_user_request.go new file mode 100644 index 000000000..ce0ee7530 --- /dev/null +++ b/rest/conversations/v1/model_update_user_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateUserRequest struct for UpdateUserRequest +type UpdateUserRequest struct { + // The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned. + Attributes string `json:"Attributes,omitempty"` + // The string that you assigned to describe the resource. + FriendlyName string `json:"FriendlyName,omitempty"` + // The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user. + RoleSid string `json:"RoleSid,omitempty"` +} diff --git a/rest/conversations/v1/response.go b/rest/conversations/v1/response.go new file mode 100644 index 000000000..39245d47c --- /dev/null +++ b/rest/conversations/v1/response.go @@ -0,0 +1,47 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// Response returns a new APIResponse object. +func Response(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// ResponseWithError returns a new APIResponse object with the provided error message. +func ResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/rest/events/v1/.openapi-generator-ignore b/rest/events/v1/.openapi-generator-ignore new file mode 100644 index 000000000..7484ee590 --- /dev/null +++ b/rest/events/v1/.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/rest/events/v1/.openapi-generator/VERSION b/rest/events/v1/.openapi-generator/VERSION new file mode 100644 index 000000000..ecedc98d1 --- /dev/null +++ b/rest/events/v1/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.3.1 \ No newline at end of file diff --git a/rest/events/v1/README.md b/rest/events/v1/README.md new file mode 100644 index 000000000..e53154011 --- /dev/null +++ b/rest/events/v1/README.md @@ -0,0 +1,97 @@ +# Go API client for openapi + +This is the public Twilio REST API. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 5.15.0 +- Package version: 1.0.0 +- Build package: com.twilio.oai.TwilioGoGenerator +For more information, please visit [https://support.twilio.com](https://support.twilio.com) + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import "./openapi" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**CreateSink**](docs/DefaultApi.md#createsink) | **Post** /v1/Sinks | +*DefaultApi* | [**CreateSinkTest**](docs/DefaultApi.md#createsinktest) | **Post** /v1/Sinks/{Sid}/Test | +*DefaultApi* | [**CreateSinkValidate**](docs/DefaultApi.md#createsinkvalidate) | **Post** /v1/Sinks/{Sid}/Validate | +*DefaultApi* | [**CreateSubscription**](docs/DefaultApi.md#createsubscription) | **Post** /v1/Subscriptions | +*DefaultApi* | [**DeleteSink**](docs/DefaultApi.md#deletesink) | **Delete** /v1/Sinks/{Sid} | +*DefaultApi* | [**DeleteSubscription**](docs/DefaultApi.md#deletesubscription) | **Delete** /v1/Subscriptions/{Sid} | +*DefaultApi* | [**FetchEventType**](docs/DefaultApi.md#fetcheventtype) | **Get** /v1/Types/{Type} | +*DefaultApi* | [**FetchSchema**](docs/DefaultApi.md#fetchschema) | **Get** /v1/Schemas/{Id} | +*DefaultApi* | [**FetchSink**](docs/DefaultApi.md#fetchsink) | **Get** /v1/Sinks/{Sid} | +*DefaultApi* | [**FetchSubscription**](docs/DefaultApi.md#fetchsubscription) | **Get** /v1/Subscriptions/{Sid} | +*DefaultApi* | [**FetchVersion**](docs/DefaultApi.md#fetchversion) | **Get** /v1/Schemas/{Id}/Versions/{SchemaVersion} | +*DefaultApi* | [**ListEventType**](docs/DefaultApi.md#listeventtype) | **Get** /v1/Types | +*DefaultApi* | [**ListSink**](docs/DefaultApi.md#listsink) | **Get** /v1/Sinks | +*DefaultApi* | [**ListSubscribedEvent**](docs/DefaultApi.md#listsubscribedevent) | **Get** /v1/Subscriptions/{SubscriptionSid}/SubscribedEvents | +*DefaultApi* | [**ListSubscription**](docs/DefaultApi.md#listsubscription) | **Get** /v1/Subscriptions | +*DefaultApi* | [**ListVersion**](docs/DefaultApi.md#listversion) | **Get** /v1/Schemas/{Id}/Versions | +*DefaultApi* | [**UpdateSubscription**](docs/DefaultApi.md#updatesubscription) | **Post** /v1/Subscriptions/{Sid} | + + +## Documentation For Models + + - [CreateSinkRequest](docs/CreateSinkRequest.md) + - [CreateSinkValidateRequest](docs/CreateSinkValidateRequest.md) + - [CreateSubscriptionRequest](docs/CreateSubscriptionRequest.md) + - [EventsV1EventType](docs/EventsV1EventType.md) + - [EventsV1EventTypeReadResponse](docs/EventsV1EventTypeReadResponse.md) + - [EventsV1Schema](docs/EventsV1Schema.md) + - [EventsV1SchemaVersion](docs/EventsV1SchemaVersion.md) + - [EventsV1SchemaVersionReadResponse](docs/EventsV1SchemaVersionReadResponse.md) + - [EventsV1SchemaVersionReadResponseMeta](docs/EventsV1SchemaVersionReadResponseMeta.md) + - [EventsV1Sink](docs/EventsV1Sink.md) + - [EventsV1SinkReadResponse](docs/EventsV1SinkReadResponse.md) + - [EventsV1SinkSinkTest](docs/EventsV1SinkSinkTest.md) + - [EventsV1SinkSinkValidate](docs/EventsV1SinkSinkValidate.md) + - [EventsV1Subscription](docs/EventsV1Subscription.md) + - [EventsV1SubscriptionReadResponse](docs/EventsV1SubscriptionReadResponse.md) + - [EventsV1SubscriptionSubscribedEvent](docs/EventsV1SubscriptionSubscribedEvent.md) + - [EventsV1SubscriptionSubscribedEventReadResponse](docs/EventsV1SubscriptionSubscribedEventReadResponse.md) + - [UpdateSubscriptionRequest](docs/UpdateSubscriptionRequest.md) + + +## Documentation For Authorization + + + +## accountSid_authToken + +- **Type**: HTTP basic authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ + UserName: "username", + Password: "password", +}) +r, err := client.Service.Operation(auth, args) +``` + + +## Author + +support@twilio.com + diff --git a/rest/events/v1/api_default.go b/rest/events/v1/api_default.go new file mode 100644 index 000000000..6e1aae004 --- /dev/null +++ b/rest/events/v1/api_default.go @@ -0,0 +1,645 @@ +/* + * Twilio - Events + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "" +) + +type DefaultApiService struct { + baseURL string + client *twilio.Client +} + +func NewDefaultApiService(client *twilio.Client) *DefaultApiService { + return &DefaultApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} +// CreateSinkParams Optional parameters for the method 'CreateSink' +type CreateSinkParams struct { + Description *string `json:"Description,omitempty"` + SinkConfiguration *map[string]interface{} `json:"SinkConfiguration,omitempty"` + SinkType *string `json:"SinkType,omitempty"` +} + +/* +CreateSink Method for CreateSink +Create a new Sink + * @param optional nil or *CreateSinkOpts - Optional Parameters: + * @param "Description" (string) - A human readable description for the Sink + * @param "SinkConfiguration" (map[string]interface{}) - The information required for Twilio to connect to the provided Sink encoded as JSON. + * @param "SinkType" (string) - The Sink type. Can only be \\\"kinesis\\\" currently. +@return EventsV1Sink +*/ +func (c *DefaultApiService) CreateSink(params *CreateSinkParams) (*EventsV1Sink, error) { + path := "/v1/Sinks" + + data := url.Values{} + headers := 0 + + if params != nil && params.Description != nil { + data.Set("Description", *params.Description) + } + if params != nil && params.SinkConfiguration != nil { + v, err := json.Marshal(params.SinkConfiguration) + + if err != nil { + return nil, err + } + + data.Set("SinkConfiguration", string(v)) + } + if params != nil && params.SinkType != nil { + data.Set("SinkType", *params.SinkType) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &EventsV1Sink{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +CreateSinkTest Method for CreateSinkTest +Create a new Sink Test Event for the given Sink. + * @param sid A 34 character string that uniquely identifies the Sink to be Tested. +@return EventsV1SinkSinkTest +*/ +func (c *DefaultApiService) CreateSinkTest(sid string) (*EventsV1SinkSinkTest, error) { + path := "/v1/Sinks/{Sid}/Test" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &EventsV1SinkSinkTest{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateSinkValidateParams Optional parameters for the method 'CreateSinkValidate' +type CreateSinkValidateParams struct { + TestId *string `json:"TestId,omitempty"` +} + +/* +CreateSinkValidate Method for CreateSinkValidate +Validate that a test event for a Sink was received. + * @param sid + * @param optional nil or *CreateSinkValidateOpts - Optional Parameters: + * @param "TestId" (string) - A 34 character string that uniquely identifies the test event for a Sink being validated. +@return EventsV1SinkSinkValidate +*/ +func (c *DefaultApiService) CreateSinkValidate(sid string, params *CreateSinkValidateParams) (*EventsV1SinkSinkValidate, error) { + path := "/v1/Sinks/{Sid}/Validate" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.TestId != nil { + data.Set("TestId", *params.TestId) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &EventsV1SinkSinkValidate{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateSubscriptionParams Optional parameters for the method 'CreateSubscription' +type CreateSubscriptionParams struct { + Description *string `json:"Description,omitempty"` + SinkSid *string `json:"SinkSid,omitempty"` + Types *[]map[string]interface{} `json:"Types,omitempty"` +} + +/* +CreateSubscription Method for CreateSubscription +Create a new Subscription. + * @param optional nil or *CreateSubscriptionOpts - Optional Parameters: + * @param "Description" (string) - A human readable description for the Subscription + * @param "SinkSid" (string) - The SID of the sink that events selected by this subscription should be sent to. Sink must be active for the subscription to be created. + * @param "Types" ([]map[string]interface{}) - Contains a dictionary of URL links to nested resources of this Subscription. +@return EventsV1Subscription +*/ +func (c *DefaultApiService) CreateSubscription(params *CreateSubscriptionParams) (*EventsV1Subscription, error) { + path := "/v1/Subscriptions" + + data := url.Values{} + headers := 0 + + if params != nil && params.Description != nil { + data.Set("Description", *params.Description) + } + if params != nil && params.SinkSid != nil { + data.Set("SinkSid", *params.SinkSid) + } + if params != nil && params.Types != nil { + v, err := json.Marshal(params.Types) + + if err != nil { + return nil, err + } + + data.Set("Types", string(v)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &EventsV1Subscription{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +DeleteSink Method for DeleteSink +Delete a specific Sink. + * @param sid A 34 character string that uniquely identifies this Sink. +*/ +func (c *DefaultApiService) DeleteSink(sid string) (error) { + path := "/v1/Sinks/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteSubscription Method for DeleteSubscription +Delete a specific Subscription. + * @param sid A 34 character string that uniquely identifies this Subscription. +*/ +func (c *DefaultApiService) DeleteSubscription(sid string) (error) { + path := "/v1/Subscriptions/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +FetchEventType Method for FetchEventType +Fetch a specific Event Type. + * @param type_ A string that uniquely identifies this Event Type. +@return EventsV1EventType +*/ +func (c *DefaultApiService) FetchEventType(type_ string) (*EventsV1EventType, error) { + path := "/v1/Types/{Type}" + path = strings.Replace(path, "{"+"Type"+"}", type_, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &EventsV1EventType{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchSchema Method for FetchSchema +Fetch a specific schema with its nested versions. + * @param id The unique identifier of the schema. Each schema can have multiple versions, that share the same id. +@return EventsV1Schema +*/ +func (c *DefaultApiService) FetchSchema(id string) (*EventsV1Schema, error) { + path := "/v1/Schemas/{Id}" + path = strings.Replace(path, "{"+"Id"+"}", id, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &EventsV1Schema{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchSink Method for FetchSink +Fetch a specific Sink. + * @param sid A 34 character string that uniquely identifies this Sink. +@return EventsV1Sink +*/ +func (c *DefaultApiService) FetchSink(sid string) (*EventsV1Sink, error) { + path := "/v1/Sinks/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &EventsV1Sink{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchSubscription Method for FetchSubscription +Fetch a specific Subscription. + * @param sid A 34 character string that uniquely identifies this Subscription. +@return EventsV1Subscription +*/ +func (c *DefaultApiService) FetchSubscription(sid string) (*EventsV1Subscription, error) { + path := "/v1/Subscriptions/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &EventsV1Subscription{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchVersion Method for FetchVersion +Fetch a specific schema and version. + * @param id The unique identifier of the schema. Each schema can have multiple versions, that share the same id. + * @param schemaVersion The version of the schema +@return EventsV1SchemaVersion +*/ +func (c *DefaultApiService) FetchVersion(id string, schemaVersion int32) (*EventsV1SchemaVersion, error) { + path := "/v1/Schemas/{Id}/Versions/{SchemaVersion}" + path = strings.Replace(path, "{"+"Id"+"}", id, -1) + path = strings.Replace(path, "{"+"SchemaVersion"+"}", schemaVersion, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &EventsV1SchemaVersion{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListEventTypeParams Optional parameters for the method 'ListEventType' +type ListEventTypeParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListEventType Method for ListEventType +Retrieve a paginated list of all the available Event Types. + * @param optional nil or *ListEventTypeOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return EventsV1EventTypeReadResponse +*/ +func (c *DefaultApiService) ListEventType(params *ListEventTypeParams) (*EventsV1EventTypeReadResponse, error) { + path := "/v1/Types" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &EventsV1EventTypeReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListSinkParams Optional parameters for the method 'ListSink' +type ListSinkParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListSink Method for ListSink +Retrieve a paginated list of Sinks belonging to the account used to make the request. + * @param optional nil or *ListSinkOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return EventsV1SinkReadResponse +*/ +func (c *DefaultApiService) ListSink(params *ListSinkParams) (*EventsV1SinkReadResponse, error) { + path := "/v1/Sinks" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &EventsV1SinkReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListSubscribedEventParams Optional parameters for the method 'ListSubscribedEvent' +type ListSubscribedEventParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListSubscribedEvent Method for ListSubscribedEvent +Retrieve a list of all Subscribed Event types for a Subscription. + * @param subscriptionSid The unique SID identifier of the Subscription. + * @param optional nil or *ListSubscribedEventOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return EventsV1SubscriptionSubscribedEventReadResponse +*/ +func (c *DefaultApiService) ListSubscribedEvent(subscriptionSid string, params *ListSubscribedEventParams) (*EventsV1SubscriptionSubscribedEventReadResponse, error) { + path := "/v1/Subscriptions/{SubscriptionSid}/SubscribedEvents" + path = strings.Replace(path, "{"+"SubscriptionSid"+"}", subscriptionSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &EventsV1SubscriptionSubscribedEventReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListSubscriptionParams Optional parameters for the method 'ListSubscription' +type ListSubscriptionParams struct { + SinkSid *string `json:"SinkSid,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListSubscription Method for ListSubscription +Retrieve a paginated list of Subscriptions belonging to the account used to make the request. + * @param optional nil or *ListSubscriptionOpts - Optional Parameters: + * @param "SinkSid" (string) - The SID of the sink that the list of Subscriptions should be filtered by. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return EventsV1SubscriptionReadResponse +*/ +func (c *DefaultApiService) ListSubscription(params *ListSubscriptionParams) (*EventsV1SubscriptionReadResponse, error) { + path := "/v1/Subscriptions" + + data := url.Values{} + headers := 0 + + if params != nil && params.SinkSid != nil { + data.Set("SinkSid", *params.SinkSid) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &EventsV1SubscriptionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListVersionParams Optional parameters for the method 'ListVersion' +type ListVersionParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListVersion Method for ListVersion +Retrieve a paginated list of versions of the schema. + * @param id The unique identifier of the schema. Each schema can have multiple versions, that share the same id. + * @param optional nil or *ListVersionOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return EventsV1SchemaVersionReadResponse +*/ +func (c *DefaultApiService) ListVersion(id string, params *ListVersionParams) (*EventsV1SchemaVersionReadResponse, error) { + path := "/v1/Schemas/{Id}/Versions" + path = strings.Replace(path, "{"+"Id"+"}", id, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &EventsV1SchemaVersionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateSubscriptionParams Optional parameters for the method 'UpdateSubscription' +type UpdateSubscriptionParams struct { + Description *string `json:"Description,omitempty"` + SinkSid *string `json:"SinkSid,omitempty"` +} + +/* +UpdateSubscription Method for UpdateSubscription +Update a Subscription. + * @param sid A 34 character string that uniquely identifies this Subscription. + * @param optional nil or *UpdateSubscriptionOpts - Optional Parameters: + * @param "Description" (string) - A human readable description for the Subscription. + * @param "SinkSid" (string) - The SID of the sink that events selected by this subscription should be sent to. Sink must be active for the subscription to be created. +@return EventsV1Subscription +*/ +func (c *DefaultApiService) UpdateSubscription(sid string, params *UpdateSubscriptionParams) (*EventsV1Subscription, error) { + path := "/v1/Subscriptions/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Description != nil { + data.Set("Description", *params.Description) + } + if params != nil && params.SinkSid != nil { + data.Set("SinkSid", *params.SinkSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &EventsV1Subscription{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/events/v1/docs/CreateSinkRequest.md b/rest/events/v1/docs/CreateSinkRequest.md new file mode 100644 index 000000000..9780c4dc5 --- /dev/null +++ b/rest/events/v1/docs/CreateSinkRequest.md @@ -0,0 +1,13 @@ +# CreateSinkRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | **string** | A human readable description for the Sink | +**SinkConfiguration** | [**map[string]interface{}**](.md) | The information required for Twilio to connect to the provided Sink encoded as JSON. | +**SinkType** | **string** | The Sink type. Can only be \"kinesis\" currently. | + +[[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/rest/events/v1/docs/CreateSinkValidateRequest.md b/rest/events/v1/docs/CreateSinkValidateRequest.md new file mode 100644 index 000000000..455f1fb14 --- /dev/null +++ b/rest/events/v1/docs/CreateSinkValidateRequest.md @@ -0,0 +1,11 @@ +# CreateSinkValidateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TestId** | **string** | A 34 character string that uniquely identifies the test event for a Sink being validated. | + +[[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/rest/events/v1/docs/CreateSubscriptionRequest.md b/rest/events/v1/docs/CreateSubscriptionRequest.md new file mode 100644 index 000000000..885330e69 --- /dev/null +++ b/rest/events/v1/docs/CreateSubscriptionRequest.md @@ -0,0 +1,13 @@ +# CreateSubscriptionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | **string** | A human readable description for the Subscription | +**SinkSid** | **string** | The SID of the sink that events selected by this subscription should be sent to. Sink must be active for the subscription to be created. | +**Types** | **[]map[string]interface{}** | Contains a dictionary of URL links to nested resources of this Subscription. | + +[[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/rest/events/v1/docs/DefaultApi.md b/rest/events/v1/docs/DefaultApi.md new file mode 100644 index 000000000..66a465226 --- /dev/null +++ b/rest/events/v1/docs/DefaultApi.md @@ -0,0 +1,699 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateSink**](DefaultApi.md#CreateSink) | **Post** /v1/Sinks | +[**CreateSinkTest**](DefaultApi.md#CreateSinkTest) | **Post** /v1/Sinks/{Sid}/Test | +[**CreateSinkValidate**](DefaultApi.md#CreateSinkValidate) | **Post** /v1/Sinks/{Sid}/Validate | +[**CreateSubscription**](DefaultApi.md#CreateSubscription) | **Post** /v1/Subscriptions | +[**DeleteSink**](DefaultApi.md#DeleteSink) | **Delete** /v1/Sinks/{Sid} | +[**DeleteSubscription**](DefaultApi.md#DeleteSubscription) | **Delete** /v1/Subscriptions/{Sid} | +[**FetchEventType**](DefaultApi.md#FetchEventType) | **Get** /v1/Types/{Type} | +[**FetchSchema**](DefaultApi.md#FetchSchema) | **Get** /v1/Schemas/{Id} | +[**FetchSink**](DefaultApi.md#FetchSink) | **Get** /v1/Sinks/{Sid} | +[**FetchSubscription**](DefaultApi.md#FetchSubscription) | **Get** /v1/Subscriptions/{Sid} | +[**FetchVersion**](DefaultApi.md#FetchVersion) | **Get** /v1/Schemas/{Id}/Versions/{SchemaVersion} | +[**ListEventType**](DefaultApi.md#ListEventType) | **Get** /v1/Types | +[**ListSink**](DefaultApi.md#ListSink) | **Get** /v1/Sinks | +[**ListSubscribedEvent**](DefaultApi.md#ListSubscribedEvent) | **Get** /v1/Subscriptions/{SubscriptionSid}/SubscribedEvents | +[**ListSubscription**](DefaultApi.md#ListSubscription) | **Get** /v1/Subscriptions | +[**ListVersion**](DefaultApi.md#ListVersion) | **Get** /v1/Schemas/{Id}/Versions | +[**UpdateSubscription**](DefaultApi.md#UpdateSubscription) | **Post** /v1/Subscriptions/{Sid} | + + + +## CreateSink + +> EventsV1Sink CreateSink(ctx, optional) + + + +Create a new Sink + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateSinkOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateSinkOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **description** | **optional.String**| A human readable description for the Sink | + **sinkConfiguration** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The information required for Twilio to connect to the provided Sink encoded as JSON. | + **sinkType** | **optional.String**| The Sink type. Can only be \\\"kinesis\\\" currently. | + +### Return type + +[**EventsV1Sink**](events.v1.sink.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) + + +## CreateSinkTest + +> EventsV1SinkSinkTest CreateSinkTest(ctx, sid) + + + +Create a new Sink Test Event for the given Sink. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| A 34 character string that uniquely identifies the Sink to be Tested. | + +### Return type + +[**EventsV1SinkSinkTest**](events.v1.sink.sink_test.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) + + +## CreateSinkValidate + +> EventsV1SinkSinkValidate CreateSinkValidate(ctx, sid, optional) + + + +Validate that a test event for a Sink was received. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| | + **optional** | ***CreateSinkValidateOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateSinkValidateOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **testId** | **optional.String**| A 34 character string that uniquely identifies the test event for a Sink being validated. | + +### Return type + +[**EventsV1SinkSinkValidate**](events.v1.sink.sink_validate.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) + + +## CreateSubscription + +> EventsV1Subscription CreateSubscription(ctx, optional) + + + +Create a new Subscription. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateSubscriptionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateSubscriptionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **description** | **optional.String**| A human readable description for the Subscription | + **sinkSid** | **optional.String**| The SID of the sink that events selected by this subscription should be sent to. Sink must be active for the subscription to be created. | + **types** | [**optional.Interface of []map[string]interface{}**](map[string]interface{}.md)| Contains a dictionary of URL links to nested resources of this Subscription. | + +### Return type + +[**EventsV1Subscription**](events.v1.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) + + +## DeleteSink + +> DeleteSink(ctx, sid) + + + +Delete a specific Sink. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| A 34 character string that uniquely identifies this Sink. | + +### 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) + + +## DeleteSubscription + +> DeleteSubscription(ctx, sid) + + + +Delete a specific Subscription. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| A 34 character string that uniquely identifies this Subscription. | + +### 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) + + +## FetchEventType + +> EventsV1EventType FetchEventType(ctx, type_) + + + +Fetch a specific Event Type. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**type_** | **string**| A string that uniquely identifies this Event Type. | + +### Return type + +[**EventsV1EventType**](events.v1.event_type.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) + + +## FetchSchema + +> EventsV1Schema FetchSchema(ctx, id) + + + +Fetch a specific schema with its nested versions. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string**| The unique identifier of the schema. Each schema can have multiple versions, that share the same id. | + +### Return type + +[**EventsV1Schema**](events.v1.schema.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) + + +## FetchSink + +> EventsV1Sink FetchSink(ctx, sid) + + + +Fetch a specific Sink. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| A 34 character string that uniquely identifies this Sink. | + +### Return type + +[**EventsV1Sink**](events.v1.sink.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) + + +## FetchSubscription + +> EventsV1Subscription FetchSubscription(ctx, sid) + + + +Fetch a specific Subscription. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| A 34 character string that uniquely identifies this Subscription. | + +### Return type + +[**EventsV1Subscription**](events.v1.subscription.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) + + +## FetchVersion + +> EventsV1SchemaVersion FetchVersion(ctx, id, schemaVersion) + + + +Fetch a specific schema and version. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string**| The unique identifier of the schema. Each schema can have multiple versions, that share the same id. | +**schemaVersion** | **int32**| The version of the schema | + +### Return type + +[**EventsV1SchemaVersion**](events.v1.schema.version.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) + + +## ListEventType + +> EventsV1EventTypeReadResponse ListEventType(ctx, optional) + + + +Retrieve a paginated list of all the available Event Types. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListEventTypeOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListEventTypeOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**EventsV1EventTypeReadResponse**](events_v1_event_typeReadResponse.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) + + +## ListSink + +> EventsV1SinkReadResponse ListSink(ctx, optional) + + + +Retrieve a paginated list of Sinks belonging to the account used to make the request. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListSinkOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListSinkOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**EventsV1SinkReadResponse**](events_v1_sinkReadResponse.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) + + +## ListSubscribedEvent + +> EventsV1SubscriptionSubscribedEventReadResponse ListSubscribedEvent(ctx, subscriptionSid, optional) + + + +Retrieve a list of all Subscribed Event types for a Subscription. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**subscriptionSid** | **string**| The unique SID identifier of the Subscription. | + **optional** | ***ListSubscribedEventOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListSubscribedEventOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**EventsV1SubscriptionSubscribedEventReadResponse**](events_v1_subscription_subscribed_eventReadResponse.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) + + +## ListSubscription + +> EventsV1SubscriptionReadResponse ListSubscription(ctx, optional) + + + +Retrieve a paginated list of Subscriptions belonging to the account used to make the request. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListSubscriptionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListSubscriptionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sinkSid** | **optional.String**| The SID of the sink that the list of Subscriptions should be filtered by. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**EventsV1SubscriptionReadResponse**](events_v1_subscriptionReadResponse.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) + + +## ListVersion + +> EventsV1SchemaVersionReadResponse ListVersion(ctx, id, optional) + + + +Retrieve a paginated list of versions of the schema. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string**| The unique identifier of the schema. Each schema can have multiple versions, that share the same id. | + **optional** | ***ListVersionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListVersionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**EventsV1SchemaVersionReadResponse**](events_v1_schema_versionReadResponse.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) + + +## UpdateSubscription + +> EventsV1Subscription UpdateSubscription(ctx, sid, optional) + + + +Update a Subscription. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| A 34 character string that uniquely identifies this Subscription. | + **optional** | ***UpdateSubscriptionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateSubscriptionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **description** | **optional.String**| A human readable description for the Subscription. | + **sinkSid** | **optional.String**| The SID of the sink that events selected by this subscription should be sent to. Sink must be active for the subscription to be created. | + +### Return type + +[**EventsV1Subscription**](events.v1.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) + diff --git a/rest/events/v1/docs/EventsV1EventType.md b/rest/events/v1/docs/EventsV1EventType.md new file mode 100644 index 000000000..d885345c0 --- /dev/null +++ b/rest/events/v1/docs/EventsV1EventType.md @@ -0,0 +1,17 @@ +# EventsV1EventType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Description** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**SchemaId** | **string** | | [optional] +**Type** | **string** | | [optional] +**Url** | **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/rest/events/v1/docs/EventsV1EventTypeReadResponse.md b/rest/events/v1/docs/EventsV1EventTypeReadResponse.md new file mode 100644 index 000000000..704b02068 --- /dev/null +++ b/rest/events/v1/docs/EventsV1EventTypeReadResponse.md @@ -0,0 +1,12 @@ +# EventsV1EventTypeReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**EventsV1SchemaVersionReadResponseMeta**](events_v1_schema_versionReadResponse_meta.md) | | [optional] +**Types** | [**[]EventsV1EventType**](events.v1.event_type.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/rest/events/v1/docs/EventsV1Schema.md b/rest/events/v1/docs/EventsV1Schema.md new file mode 100644 index 000000000..8523908c5 --- /dev/null +++ b/rest/events/v1/docs/EventsV1Schema.md @@ -0,0 +1,15 @@ +# EventsV1Schema + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | [optional] +**LastCreated** | [**time.Time**](time.Time.md) | | [optional] +**LastVersion** | **int32** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Url** | **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/rest/events/v1/docs/EventsV1SchemaVersion.md b/rest/events/v1/docs/EventsV1SchemaVersion.md new file mode 100644 index 000000000..7826ab1d8 --- /dev/null +++ b/rest/events/v1/docs/EventsV1SchemaVersion.md @@ -0,0 +1,15 @@ +# EventsV1SchemaVersion + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**Id** | **string** | | [optional] +**Raw** | **string** | | [optional] +**SchemaVersion** | **int32** | | [optional] +**Url** | **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/rest/events/v1/docs/EventsV1SchemaVersionReadResponse.md b/rest/events/v1/docs/EventsV1SchemaVersionReadResponse.md new file mode 100644 index 000000000..f40991580 --- /dev/null +++ b/rest/events/v1/docs/EventsV1SchemaVersionReadResponse.md @@ -0,0 +1,12 @@ +# EventsV1SchemaVersionReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**EventsV1SchemaVersionReadResponseMeta**](events_v1_schema_versionReadResponse_meta.md) | | [optional] +**SchemaVersions** | [**[]EventsV1SchemaVersion**](events.v1.schema.version.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/rest/events/v1/docs/EventsV1SchemaVersionReadResponseMeta.md b/rest/events/v1/docs/EventsV1SchemaVersionReadResponseMeta.md new file mode 100644 index 000000000..790dca324 --- /dev/null +++ b/rest/events/v1/docs/EventsV1SchemaVersionReadResponseMeta.md @@ -0,0 +1,17 @@ +# EventsV1SchemaVersionReadResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/events/v1/docs/EventsV1Sink.md b/rest/events/v1/docs/EventsV1Sink.md new file mode 100644 index 000000000..440ff6116 --- /dev/null +++ b/rest/events/v1/docs/EventsV1Sink.md @@ -0,0 +1,19 @@ +# EventsV1Sink + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Description** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Sid** | **string** | | [optional] +**SinkConfiguration** | [**map[string]interface{}**](.md) | | [optional] +**SinkType** | **string** | | [optional] +**Status** | **string** | | [optional] +**Url** | **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/rest/events/v1/docs/EventsV1SinkReadResponse.md b/rest/events/v1/docs/EventsV1SinkReadResponse.md new file mode 100644 index 000000000..65f8fe425 --- /dev/null +++ b/rest/events/v1/docs/EventsV1SinkReadResponse.md @@ -0,0 +1,12 @@ +# EventsV1SinkReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**EventsV1SchemaVersionReadResponseMeta**](events_v1_schema_versionReadResponse_meta.md) | | [optional] +**Sinks** | [**[]EventsV1Sink**](events.v1.sink.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/rest/events/v1/docs/EventsV1SinkSinkTest.md b/rest/events/v1/docs/EventsV1SinkSinkTest.md new file mode 100644 index 000000000..3bb0f5ca9 --- /dev/null +++ b/rest/events/v1/docs/EventsV1SinkSinkTest.md @@ -0,0 +1,11 @@ +# EventsV1SinkSinkTest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | **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/rest/events/v1/docs/EventsV1SinkSinkValidate.md b/rest/events/v1/docs/EventsV1SinkSinkValidate.md new file mode 100644 index 000000000..aab9f5876 --- /dev/null +++ b/rest/events/v1/docs/EventsV1SinkSinkValidate.md @@ -0,0 +1,11 @@ +# EventsV1SinkSinkValidate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | **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/rest/events/v1/docs/EventsV1Subscription.md b/rest/events/v1/docs/EventsV1Subscription.md new file mode 100644 index 000000000..c3af47fc2 --- /dev/null +++ b/rest/events/v1/docs/EventsV1Subscription.md @@ -0,0 +1,18 @@ +# EventsV1Subscription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Description** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Sid** | **string** | | [optional] +**SinkSid** | **string** | | [optional] +**Url** | **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/rest/events/v1/docs/EventsV1SubscriptionReadResponse.md b/rest/events/v1/docs/EventsV1SubscriptionReadResponse.md new file mode 100644 index 000000000..e416ed6d0 --- /dev/null +++ b/rest/events/v1/docs/EventsV1SubscriptionReadResponse.md @@ -0,0 +1,12 @@ +# EventsV1SubscriptionReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**EventsV1SchemaVersionReadResponseMeta**](events_v1_schema_versionReadResponse_meta.md) | | [optional] +**Subscriptions** | [**[]EventsV1Subscription**](events.v1.subscription.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/rest/events/v1/docs/EventsV1SubscriptionSubscribedEvent.md b/rest/events/v1/docs/EventsV1SubscriptionSubscribedEvent.md new file mode 100644 index 000000000..7f60bf747 --- /dev/null +++ b/rest/events/v1/docs/EventsV1SubscriptionSubscribedEvent.md @@ -0,0 +1,15 @@ +# EventsV1SubscriptionSubscribedEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**SubscriptionSid** | **string** | | [optional] +**Type** | **string** | | [optional] +**Url** | **string** | | [optional] +**Version** | **int32** | | [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/rest/events/v1/docs/EventsV1SubscriptionSubscribedEventReadResponse.md b/rest/events/v1/docs/EventsV1SubscriptionSubscribedEventReadResponse.md new file mode 100644 index 000000000..df513de4b --- /dev/null +++ b/rest/events/v1/docs/EventsV1SubscriptionSubscribedEventReadResponse.md @@ -0,0 +1,12 @@ +# EventsV1SubscriptionSubscribedEventReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**EventsV1SchemaVersionReadResponseMeta**](events_v1_schema_versionReadResponse_meta.md) | | [optional] +**Types** | [**[]EventsV1SubscriptionSubscribedEvent**](events.v1.subscription.subscribed_event.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/rest/events/v1/docs/UpdateSubscriptionRequest.md b/rest/events/v1/docs/UpdateSubscriptionRequest.md new file mode 100644 index 000000000..9f369c5e6 --- /dev/null +++ b/rest/events/v1/docs/UpdateSubscriptionRequest.md @@ -0,0 +1,12 @@ +# UpdateSubscriptionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | **string** | A human readable description for the Subscription. | [optional] +**SinkSid** | **string** | The SID of the sink that events selected by this subscription should be sent to. Sink must be active for the subscription to be 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/rest/events/v1/model_create_sink_request.go b/rest/events/v1/model_create_sink_request.go new file mode 100644 index 000000000..c7db517ea --- /dev/null +++ b/rest/events/v1/model_create_sink_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Events + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateSinkRequest struct for CreateSinkRequest +type CreateSinkRequest struct { + // A human readable description for the Sink + Description string `json:"Description"` + // The information required for Twilio to connect to the provided Sink encoded as JSON. + SinkConfiguration map[string]interface{} `json:"SinkConfiguration"` + // The Sink type. Can only be \"kinesis\" currently. + SinkType string `json:"SinkType"` +} diff --git a/rest/events/v1/model_create_sink_validate_request.go b/rest/events/v1/model_create_sink_validate_request.go new file mode 100644 index 000000000..1e10fe4bc --- /dev/null +++ b/rest/events/v1/model_create_sink_validate_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Events + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateSinkValidateRequest struct for CreateSinkValidateRequest +type CreateSinkValidateRequest struct { + // A 34 character string that uniquely identifies the test event for a Sink being validated. + TestId string `json:"TestId"` +} diff --git a/rest/events/v1/model_create_subscription_request.go b/rest/events/v1/model_create_subscription_request.go new file mode 100644 index 000000000..e7285ef20 --- /dev/null +++ b/rest/events/v1/model_create_subscription_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Events + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateSubscriptionRequest struct for CreateSubscriptionRequest +type CreateSubscriptionRequest struct { + // A human readable description for the Subscription + Description string `json:"Description"` + // The SID of the sink that events selected by this subscription should be sent to. Sink must be active for the subscription to be created. + SinkSid string `json:"SinkSid"` + // Contains a dictionary of URL links to nested resources of this Subscription. + Types []map[string]interface{} `json:"Types"` +} diff --git a/rest/events/v1/model_events_v1_event_type.go b/rest/events/v1/model_events_v1_event_type.go new file mode 100644 index 000000000..1a16b6986 --- /dev/null +++ b/rest/events/v1/model_events_v1_event_type.go @@ -0,0 +1,24 @@ +/* + * Twilio - Events + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// EventsV1EventType struct for EventsV1EventType +type EventsV1EventType struct { + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Description string `json:"description,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + SchemaId string `json:"schema_id,omitempty"` + Type string `json:"type,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/events/v1/model_events_v1_event_type_read_response.go b/rest/events/v1/model_events_v1_event_type_read_response.go new file mode 100644 index 000000000..508821eeb --- /dev/null +++ b/rest/events/v1/model_events_v1_event_type_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Events + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// EventsV1EventTypeReadResponse struct for EventsV1EventTypeReadResponse +type EventsV1EventTypeReadResponse struct { + Meta EventsV1SchemaVersionReadResponseMeta `json:"meta,omitempty"` + Types []EventsV1EventType `json:"types,omitempty"` +} diff --git a/rest/events/v1/model_events_v1_schema.go b/rest/events/v1/model_events_v1_schema.go new file mode 100644 index 000000000..f71c23f6c --- /dev/null +++ b/rest/events/v1/model_events_v1_schema.go @@ -0,0 +1,22 @@ +/* + * Twilio - Events + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// EventsV1Schema struct for EventsV1Schema +type EventsV1Schema struct { + Id string `json:"id,omitempty"` + LastCreated time.Time `json:"last_created,omitempty"` + LastVersion int32 `json:"last_version,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/events/v1/model_events_v1_schema_version.go b/rest/events/v1/model_events_v1_schema_version.go new file mode 100644 index 000000000..f539631c3 --- /dev/null +++ b/rest/events/v1/model_events_v1_schema_version.go @@ -0,0 +1,22 @@ +/* + * Twilio - Events + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// EventsV1SchemaVersion struct for EventsV1SchemaVersion +type EventsV1SchemaVersion struct { + DateCreated time.Time `json:"date_created,omitempty"` + Id string `json:"id,omitempty"` + Raw string `json:"raw,omitempty"` + SchemaVersion int32 `json:"schema_version,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/events/v1/model_events_v1_schema_version_read_response.go b/rest/events/v1/model_events_v1_schema_version_read_response.go new file mode 100644 index 000000000..8db1df6d2 --- /dev/null +++ b/rest/events/v1/model_events_v1_schema_version_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Events + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// EventsV1SchemaVersionReadResponse struct for EventsV1SchemaVersionReadResponse +type EventsV1SchemaVersionReadResponse struct { + Meta EventsV1SchemaVersionReadResponseMeta `json:"meta,omitempty"` + SchemaVersions []EventsV1SchemaVersion `json:"schema_versions,omitempty"` +} diff --git a/rest/events/v1/model_events_v1_schema_version_read_response_meta.go b/rest/events/v1/model_events_v1_schema_version_read_response_meta.go new file mode 100644 index 000000000..2cf7e5cc7 --- /dev/null +++ b/rest/events/v1/model_events_v1_schema_version_read_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Events + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// EventsV1SchemaVersionReadResponseMeta struct for EventsV1SchemaVersionReadResponseMeta +type EventsV1SchemaVersionReadResponseMeta struct { + FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` + NextPageUrl string `json:"next_page_url,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUrl string `json:"previous_page_url,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/events/v1/model_events_v1_sink.go b/rest/events/v1/model_events_v1_sink.go new file mode 100644 index 000000000..927839732 --- /dev/null +++ b/rest/events/v1/model_events_v1_sink.go @@ -0,0 +1,26 @@ +/* + * Twilio - Events + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// EventsV1Sink struct for EventsV1Sink +type EventsV1Sink struct { + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Description string `json:"description,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Sid string `json:"sid,omitempty"` + SinkConfiguration map[string]interface{} `json:"sink_configuration,omitempty"` + SinkType string `json:"sink_type,omitempty"` + Status string `json:"status,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/events/v1/model_events_v1_sink_read_response.go b/rest/events/v1/model_events_v1_sink_read_response.go new file mode 100644 index 000000000..53d8940e6 --- /dev/null +++ b/rest/events/v1/model_events_v1_sink_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Events + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// EventsV1SinkReadResponse struct for EventsV1SinkReadResponse +type EventsV1SinkReadResponse struct { + Meta EventsV1SchemaVersionReadResponseMeta `json:"meta,omitempty"` + Sinks []EventsV1Sink `json:"sinks,omitempty"` +} diff --git a/rest/events/v1/model_events_v1_sink_sink_test_.go b/rest/events/v1/model_events_v1_sink_sink_test_.go new file mode 100644 index 000000000..f4e77481c --- /dev/null +++ b/rest/events/v1/model_events_v1_sink_sink_test_.go @@ -0,0 +1,15 @@ +/* + * Twilio - Events + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// EventsV1SinkSinkTest struct for EventsV1SinkSinkTest +type EventsV1SinkSinkTest struct { + Result string `json:"result,omitempty"` +} diff --git a/rest/events/v1/model_events_v1_sink_sink_validate.go b/rest/events/v1/model_events_v1_sink_sink_validate.go new file mode 100644 index 000000000..4032fe134 --- /dev/null +++ b/rest/events/v1/model_events_v1_sink_sink_validate.go @@ -0,0 +1,15 @@ +/* + * Twilio - Events + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// EventsV1SinkSinkValidate struct for EventsV1SinkSinkValidate +type EventsV1SinkSinkValidate struct { + Result string `json:"result,omitempty"` +} diff --git a/rest/events/v1/model_events_v1_subscription.go b/rest/events/v1/model_events_v1_subscription.go new file mode 100644 index 000000000..b722f64b3 --- /dev/null +++ b/rest/events/v1/model_events_v1_subscription.go @@ -0,0 +1,25 @@ +/* + * Twilio - Events + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// EventsV1Subscription struct for EventsV1Subscription +type EventsV1Subscription struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Description string `json:"description,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Sid string `json:"sid,omitempty"` + SinkSid string `json:"sink_sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/events/v1/model_events_v1_subscription_read_response.go b/rest/events/v1/model_events_v1_subscription_read_response.go new file mode 100644 index 000000000..7a9f80efd --- /dev/null +++ b/rest/events/v1/model_events_v1_subscription_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Events + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// EventsV1SubscriptionReadResponse struct for EventsV1SubscriptionReadResponse +type EventsV1SubscriptionReadResponse struct { + Meta EventsV1SchemaVersionReadResponseMeta `json:"meta,omitempty"` + Subscriptions []EventsV1Subscription `json:"subscriptions,omitempty"` +} diff --git a/rest/events/v1/model_events_v1_subscription_subscribed_event.go b/rest/events/v1/model_events_v1_subscription_subscribed_event.go new file mode 100644 index 000000000..520d6e2fa --- /dev/null +++ b/rest/events/v1/model_events_v1_subscription_subscribed_event.go @@ -0,0 +1,19 @@ +/* + * Twilio - Events + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// EventsV1SubscriptionSubscribedEvent struct for EventsV1SubscriptionSubscribedEvent +type EventsV1SubscriptionSubscribedEvent struct { + AccountSid string `json:"account_sid,omitempty"` + SubscriptionSid string `json:"subscription_sid,omitempty"` + Type string `json:"type,omitempty"` + Url string `json:"url,omitempty"` + Version int32 `json:"version,omitempty"` +} diff --git a/rest/events/v1/model_events_v1_subscription_subscribed_event_read_response.go b/rest/events/v1/model_events_v1_subscription_subscribed_event_read_response.go new file mode 100644 index 000000000..68f27f0d3 --- /dev/null +++ b/rest/events/v1/model_events_v1_subscription_subscribed_event_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Events + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// EventsV1SubscriptionSubscribedEventReadResponse struct for EventsV1SubscriptionSubscribedEventReadResponse +type EventsV1SubscriptionSubscribedEventReadResponse struct { + Meta EventsV1SchemaVersionReadResponseMeta `json:"meta,omitempty"` + Types []EventsV1SubscriptionSubscribedEvent `json:"types,omitempty"` +} diff --git a/rest/events/v1/model_update_subscription_request.go b/rest/events/v1/model_update_subscription_request.go new file mode 100644 index 000000000..cf55bb387 --- /dev/null +++ b/rest/events/v1/model_update_subscription_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Events + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateSubscriptionRequest struct for UpdateSubscriptionRequest +type UpdateSubscriptionRequest struct { + // A human readable description for the Subscription. + Description string `json:"Description,omitempty"` + // The SID of the sink that events selected by this subscription should be sent to. Sink must be active for the subscription to be created. + SinkSid string `json:"SinkSid,omitempty"` +} diff --git a/rest/events/v1/response.go b/rest/events/v1/response.go new file mode 100644 index 000000000..15b02391a --- /dev/null +++ b/rest/events/v1/response.go @@ -0,0 +1,47 @@ +/* + * Twilio - Events + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// Response returns a new APIResponse object. +func Response(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// ResponseWithError returns a new APIResponse object with the provided error message. +func ResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/rest/fax/v1/.openapi-generator-ignore b/rest/fax/v1/.openapi-generator-ignore new file mode 100644 index 000000000..7484ee590 --- /dev/null +++ b/rest/fax/v1/.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/rest/fax/v1/.openapi-generator/VERSION b/rest/fax/v1/.openapi-generator/VERSION new file mode 100644 index 000000000..ecedc98d1 --- /dev/null +++ b/rest/fax/v1/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.3.1 \ No newline at end of file diff --git a/rest/fax/v1/README.md b/rest/fax/v1/README.md new file mode 100644 index 000000000..99eb5a697 --- /dev/null +++ b/rest/fax/v1/README.md @@ -0,0 +1,77 @@ +# Go API client for openapi + +This is the public Twilio REST API. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 5.15.0 +- Package version: 1.0.0 +- Build package: com.twilio.oai.TwilioGoGenerator +For more information, please visit [https://support.twilio.com](https://support.twilio.com) + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import "./openapi" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**CreateFax**](docs/DefaultApi.md#createfax) | **Post** /v1/Faxes | +*DefaultApi* | [**DeleteFax**](docs/DefaultApi.md#deletefax) | **Delete** /v1/Faxes/{Sid} | +*DefaultApi* | [**DeleteFaxMedia**](docs/DefaultApi.md#deletefaxmedia) | **Delete** /v1/Faxes/{FaxSid}/Media/{Sid} | +*DefaultApi* | [**FetchFax**](docs/DefaultApi.md#fetchfax) | **Get** /v1/Faxes/{Sid} | +*DefaultApi* | [**FetchFaxMedia**](docs/DefaultApi.md#fetchfaxmedia) | **Get** /v1/Faxes/{FaxSid}/Media/{Sid} | +*DefaultApi* | [**ListFax**](docs/DefaultApi.md#listfax) | **Get** /v1/Faxes | +*DefaultApi* | [**ListFaxMedia**](docs/DefaultApi.md#listfaxmedia) | **Get** /v1/Faxes/{FaxSid}/Media | +*DefaultApi* | [**UpdateFax**](docs/DefaultApi.md#updatefax) | **Post** /v1/Faxes/{Sid} | + + +## Documentation For Models + + - [CreateFaxRequest](docs/CreateFaxRequest.md) + - [FaxV1Fax](docs/FaxV1Fax.md) + - [FaxV1FaxFaxMedia](docs/FaxV1FaxFaxMedia.md) + - [FaxV1FaxFaxMediaReadResponse](docs/FaxV1FaxFaxMediaReadResponse.md) + - [FaxV1FaxReadResponse](docs/FaxV1FaxReadResponse.md) + - [FaxV1FaxReadResponseMeta](docs/FaxV1FaxReadResponseMeta.md) + - [UpdateFaxRequest](docs/UpdateFaxRequest.md) + + +## Documentation For Authorization + + + +## accountSid_authToken + +- **Type**: HTTP basic authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ + UserName: "username", + Password: "password", +}) +r, err := client.Service.Operation(auth, args) +``` + + +## Author + +support@twilio.com + diff --git a/rest/fax/v1/api_default.go b/rest/fax/v1/api_default.go new file mode 100644 index 000000000..0662bc803 --- /dev/null +++ b/rest/fax/v1/api_default.go @@ -0,0 +1,356 @@ +/* + * Twilio - Fax + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "" +) + +type DefaultApiService struct { + baseURL string + client *twilio.Client +} + +func NewDefaultApiService(client *twilio.Client) *DefaultApiService { + return &DefaultApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} +// CreateFaxParams Optional parameters for the method 'CreateFax' +type CreateFaxParams struct { + From *string `json:"From,omitempty"` + MediaUrl *string `json:"MediaUrl,omitempty"` + Quality *string `json:"Quality,omitempty"` + SipAuthPassword *string `json:"SipAuthPassword,omitempty"` + SipAuthUsername *string `json:"SipAuthUsername,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StoreMedia *bool `json:"StoreMedia,omitempty"` + To *string `json:"To,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` +} + +/* +CreateFax Method for CreateFax +Create a new fax to send to a phone number or SIP endpoint. + * @param optional nil or *CreateFaxOpts - Optional Parameters: + * @param "From" (string) - The number the fax was sent from. Can be the phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format or the SIP `from` value. The caller ID displayed to the recipient uses this value. If this is a phone number, it must be a Twilio number or a verified outgoing caller id from your account. If `to` is a SIP address, this can be any alphanumeric string (and also the characters `+`, `_`, `.`, and `-`), which will be used in the `from` header of the SIP request. + * @param "MediaUrl" (string) - The URL of the PDF that contains the fax. See our [security](https://www.twilio.com/docs/usage/security) page for information on how to ensure the request for your media comes from Twilio. + * @param "Quality" (string) - The [Fax Quality value](https://www.twilio.com/docs/fax/api/fax-resource#fax-quality-values) that describes the fax quality. Can be: `standard`, `fine`, or `superfine` and defaults to `fine`. + * @param "SipAuthPassword" (string) - The password to use with `sip_auth_username` to authenticate faxes sent to a SIP address. + * @param "SipAuthUsername" (string) - The username to use with the `sip_auth_password` to authenticate faxes sent to a SIP address. + * @param "StatusCallback" (string) - The URL we should call using the `POST` method to send [status information](https://www.twilio.com/docs/fax/api/fax-resource#fax-status-callback) to your application when the status of the fax changes. + * @param "StoreMedia" (bool) - Whether to store a copy of the sent media on our servers for later retrieval. Can be: `true` or `false` and the default is `true`. + * @param "To" (string) - The phone number to receive the fax in [E.164](https://www.twilio.com/docs/glossary/what-e164) format or the recipient's SIP URI. + * @param "Ttl" (int32) - How long in minutes from when the fax is initiated that we should try to send the fax. +@return FaxV1Fax +*/ +func (c *DefaultApiService) CreateFax(params *CreateFaxParams) (*FaxV1Fax, error) { + path := "/v1/Faxes" + + data := url.Values{} + headers := 0 + + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.MediaUrl != nil { + data.Set("MediaUrl", *params.MediaUrl) + } + if params != nil && params.Quality != nil { + data.Set("Quality", *params.Quality) + } + if params != nil && params.SipAuthPassword != nil { + data.Set("SipAuthPassword", *params.SipAuthPassword) + } + if params != nil && params.SipAuthUsername != nil { + data.Set("SipAuthUsername", *params.SipAuthUsername) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StoreMedia != nil { + data.Set("StoreMedia", string(*params.StoreMedia)) + } + if params != nil && params.To != nil { + data.Set("To", *params.To) + } + if params != nil && params.Ttl != nil { + data.Set("Ttl", string(*params.Ttl)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FaxV1Fax{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +DeleteFax Method for DeleteFax +Delete a specific fax and its associated media. + * @param sid The Twilio-provided string that uniquely identifies the Fax resource to delete. +*/ +func (c *DefaultApiService) DeleteFax(sid string) (error) { + path := "/v1/Faxes/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteFaxMedia Method for DeleteFaxMedia +Delete a specific fax media instance. + * @param faxSid The SID of the fax with the FaxMedia resource to delete. + * @param sid The Twilio-provided string that uniquely identifies the FaxMedia resource to delete. +*/ +func (c *DefaultApiService) DeleteFaxMedia(faxSid string, sid string) (error) { + path := "/v1/Faxes/{FaxSid}/Media/{Sid}" + path = strings.Replace(path, "{"+"FaxSid"+"}", faxSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +FetchFax Method for FetchFax +Fetch a specific fax. + * @param sid The Twilio-provided string that uniquely identifies the Fax resource to fetch. +@return FaxV1Fax +*/ +func (c *DefaultApiService) FetchFax(sid string) (*FaxV1Fax, error) { + path := "/v1/Faxes/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FaxV1Fax{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchFaxMedia Method for FetchFaxMedia +Fetch a specific fax media instance. + * @param faxSid The SID of the fax with the FaxMedia resource to fetch. + * @param sid The Twilio-provided string that uniquely identifies the FaxMedia resource to fetch. +@return FaxV1FaxFaxMedia +*/ +func (c *DefaultApiService) FetchFaxMedia(faxSid string, sid string) (*FaxV1FaxFaxMedia, error) { + path := "/v1/Faxes/{FaxSid}/Media/{Sid}" + path = strings.Replace(path, "{"+"FaxSid"+"}", faxSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FaxV1FaxFaxMedia{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListFaxParams Optional parameters for the method 'ListFax' +type ListFaxParams struct { + From *string `json:"From,omitempty"` + To *string `json:"To,omitempty"` + DateCreatedOnOrBefore *time.Time `json:"DateCreatedOnOrBefore,omitempty"` + DateCreatedAfter *time.Time `json:"DateCreatedAfter,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListFax Method for ListFax +Retrieve a list of all faxes. + * @param optional nil or *ListFaxOpts - Optional Parameters: + * @param "From" (string) - Retrieve only those faxes sent from this phone number, specified in [E.164](https://www.twilio.com/docs/glossary/what-e164) format. + * @param "To" (string) - Retrieve only those faxes sent to this phone number, specified in [E.164](https://www.twilio.com/docs/glossary/what-e164) format. + * @param "DateCreatedOnOrBefore" (time.Time) - Retrieve only those faxes with a `date_created` that is before or equal to this value, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + * @param "DateCreatedAfter" (time.Time) - Retrieve only those faxes with a `date_created` that is later than this value, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return FaxV1FaxReadResponse +*/ +func (c *DefaultApiService) ListFax(params *ListFaxParams) (*FaxV1FaxReadResponse, error) { + path := "/v1/Faxes" + + data := url.Values{} + headers := 0 + + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.To != nil { + data.Set("To", *params.To) + } + if params != nil && params.DateCreatedOnOrBefore != nil { + data.Set("DateCreatedOnOrBefore", string(*params.DateCreatedOnOrBefore)) + } + if params != nil && params.DateCreatedAfter != nil { + data.Set("DateCreatedAfter", string(*params.DateCreatedAfter)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FaxV1FaxReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListFaxMediaParams Optional parameters for the method 'ListFaxMedia' +type ListFaxMediaParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListFaxMedia Method for ListFaxMedia +Retrieve a list of all fax media instances for the specified fax. + * @param faxSid The SID of the fax with the FaxMedia resources to read. + * @param optional nil or *ListFaxMediaOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return FaxV1FaxFaxMediaReadResponse +*/ +func (c *DefaultApiService) ListFaxMedia(faxSid string, params *ListFaxMediaParams) (*FaxV1FaxFaxMediaReadResponse, error) { + path := "/v1/Faxes/{FaxSid}/Media" + path = strings.Replace(path, "{"+"FaxSid"+"}", faxSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FaxV1FaxFaxMediaReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateFaxParams Optional parameters for the method 'UpdateFax' +type UpdateFaxParams struct { + Status *string `json:"Status,omitempty"` +} + +/* +UpdateFax Method for UpdateFax +Update a specific fax. + * @param sid The Twilio-provided string that uniquely identifies the Fax resource to update. + * @param optional nil or *UpdateFaxOpts - Optional Parameters: + * @param "Status" (string) - The new [status](https://www.twilio.com/docs/fax/api/fax-resource#fax-status-values) of the resource. Can be only `canceled`. This may fail if transmission has already started. +@return FaxV1Fax +*/ +func (c *DefaultApiService) UpdateFax(sid string, params *UpdateFaxParams) (*FaxV1Fax, error) { + path := "/v1/Faxes/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FaxV1Fax{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/fax/v1/docs/CreateFaxRequest.md b/rest/fax/v1/docs/CreateFaxRequest.md new file mode 100644 index 000000000..e29ad1e5d --- /dev/null +++ b/rest/fax/v1/docs/CreateFaxRequest.md @@ -0,0 +1,19 @@ +# CreateFaxRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**From** | **string** | The number the fax was sent from. Can be the phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format or the SIP `from` value. The caller ID displayed to the recipient uses this value. If this is a phone number, it must be a Twilio number or a verified outgoing caller id from your account. If `to` is a SIP address, this can be any alphanumeric string (and also the characters `+`, `_`, `.`, and `-`), which will be used in the `from` header of the SIP request. | [optional] +**MediaUrl** | **string** | The URL of the PDF that contains the fax. See our [security](https://www.twilio.com/docs/usage/security) page for information on how to ensure the request for your media comes from Twilio. | +**Quality** | **string** | The [Fax Quality value](https://www.twilio.com/docs/fax/api/fax-resource#fax-quality-values) that describes the fax quality. Can be: `standard`, `fine`, or `superfine` and defaults to `fine`. | [optional] +**SipAuthPassword** | **string** | The password to use with `sip_auth_username` to authenticate faxes sent to a SIP address. | [optional] +**SipAuthUsername** | **string** | The username to use with the `sip_auth_password` to authenticate faxes sent to a SIP address. | [optional] +**StatusCallback** | **string** | The URL we should call using the `POST` method to send [status information](https://www.twilio.com/docs/fax/api/fax-resource#fax-status-callback) to your application when the status of the fax changes. | [optional] +**StoreMedia** | **bool** | Whether to store a copy of the sent media on our servers for later retrieval. Can be: `true` or `false` and the default is `true`. | [optional] +**To** | **string** | The phone number to receive the fax in [E.164](https://www.twilio.com/docs/glossary/what-e164) format or the recipient's SIP URI. | +**Ttl** | **int32** | How long in minutes from when the fax is initiated that we should try to send the fax. | [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/rest/fax/v1/docs/DefaultApi.md b/rest/fax/v1/docs/DefaultApi.md new file mode 100644 index 000000000..c78454193 --- /dev/null +++ b/rest/fax/v1/docs/DefaultApi.md @@ -0,0 +1,342 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateFax**](DefaultApi.md#CreateFax) | **Post** /v1/Faxes | +[**DeleteFax**](DefaultApi.md#DeleteFax) | **Delete** /v1/Faxes/{Sid} | +[**DeleteFaxMedia**](DefaultApi.md#DeleteFaxMedia) | **Delete** /v1/Faxes/{FaxSid}/Media/{Sid} | +[**FetchFax**](DefaultApi.md#FetchFax) | **Get** /v1/Faxes/{Sid} | +[**FetchFaxMedia**](DefaultApi.md#FetchFaxMedia) | **Get** /v1/Faxes/{FaxSid}/Media/{Sid} | +[**ListFax**](DefaultApi.md#ListFax) | **Get** /v1/Faxes | +[**ListFaxMedia**](DefaultApi.md#ListFaxMedia) | **Get** /v1/Faxes/{FaxSid}/Media | +[**UpdateFax**](DefaultApi.md#UpdateFax) | **Post** /v1/Faxes/{Sid} | + + + +## CreateFax + +> FaxV1Fax CreateFax(ctx, optional) + + + +Create a new fax to send to a phone number or SIP endpoint. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateFaxOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateFaxOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **from** | **optional.String**| The number the fax was sent from. Can be the phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format or the SIP `from` value. The caller ID displayed to the recipient uses this value. If this is a phone number, it must be a Twilio number or a verified outgoing caller id from your account. If `to` is a SIP address, this can be any alphanumeric string (and also the characters `+`, `_`, `.`, and `-`), which will be used in the `from` header of the SIP request. | + **mediaUrl** | **optional.String**| The URL of the PDF that contains the fax. See our [security](https://www.twilio.com/docs/usage/security) page for information on how to ensure the request for your media comes from Twilio. | + **quality** | **optional.String**| The [Fax Quality value](https://www.twilio.com/docs/fax/api/fax-resource#fax-quality-values) that describes the fax quality. Can be: `standard`, `fine`, or `superfine` and defaults to `fine`. | + **sipAuthPassword** | **optional.String**| The password to use with `sip_auth_username` to authenticate faxes sent to a SIP address. | + **sipAuthUsername** | **optional.String**| The username to use with the `sip_auth_password` to authenticate faxes sent to a SIP address. | + **statusCallback** | **optional.String**| The URL we should call using the `POST` method to send [status information](https://www.twilio.com/docs/fax/api/fax-resource#fax-status-callback) to your application when the status of the fax changes. | + **storeMedia** | **optional.Bool**| Whether to store a copy of the sent media on our servers for later retrieval. Can be: `true` or `false` and the default is `true`. | + **to** | **optional.String**| The phone number to receive the fax in [E.164](https://www.twilio.com/docs/glossary/what-e164) format or the recipient's SIP URI. | + **ttl** | **optional.Int32**| How long in minutes from when the fax is initiated that we should try to send the fax. | + +### Return type + +[**FaxV1Fax**](fax.v1.fax.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) + + +## DeleteFax + +> DeleteFax(ctx, sid) + + + +Delete a specific fax and its associated media. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the Fax resource to delete. | + +### 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) + + +## DeleteFaxMedia + +> DeleteFaxMedia(ctx, faxSid, sid) + + + +Delete a specific fax media instance. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**faxSid** | **string**| The SID of the fax with the FaxMedia resource to delete. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the FaxMedia resource to delete. | + +### 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) + + +## FetchFax + +> FaxV1Fax FetchFax(ctx, sid) + + + +Fetch a specific fax. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the Fax resource to fetch. | + +### Return type + +[**FaxV1Fax**](fax.v1.fax.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) + + +## FetchFaxMedia + +> FaxV1FaxFaxMedia FetchFaxMedia(ctx, faxSid, sid) + + + +Fetch a specific fax media instance. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**faxSid** | **string**| The SID of the fax with the FaxMedia resource to fetch. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the FaxMedia resource to fetch. | + +### Return type + +[**FaxV1FaxFaxMedia**](fax.v1.fax.fax_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) + + +## ListFax + +> FaxV1FaxReadResponse ListFax(ctx, optional) + + + +Retrieve a list of all faxes. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListFaxOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListFaxOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **from** | **optional.String**| Retrieve only those faxes sent from this phone number, specified in [E.164](https://www.twilio.com/docs/glossary/what-e164) format. | + **to** | **optional.String**| Retrieve only those faxes sent to this phone number, specified in [E.164](https://www.twilio.com/docs/glossary/what-e164) format. | + **dateCreatedOnOrBefore** | **optional.Time**| Retrieve only those faxes with a `date_created` that is before or equal to this value, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | + **dateCreatedAfter** | **optional.Time**| Retrieve only those faxes with a `date_created` that is later than this value, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**FaxV1FaxReadResponse**](fax_v1_faxReadResponse.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) + + +## ListFaxMedia + +> FaxV1FaxFaxMediaReadResponse ListFaxMedia(ctx, faxSid, optional) + + + +Retrieve a list of all fax media instances for the specified fax. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**faxSid** | **string**| The SID of the fax with the FaxMedia resources to read. | + **optional** | ***ListFaxMediaOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListFaxMediaOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**FaxV1FaxFaxMediaReadResponse**](fax_v1_fax_fax_mediaReadResponse.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) + + +## UpdateFax + +> FaxV1Fax UpdateFax(ctx, sid, optional) + + + +Update a specific fax. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the Fax resource to update. | + **optional** | ***UpdateFaxOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateFaxOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **status** | **optional.String**| The new [status](https://www.twilio.com/docs/fax/api/fax-resource#fax-status-values) of the resource. Can be only `canceled`. This may fail if transmission has already started. | + +### Return type + +[**FaxV1Fax**](fax.v1.fax.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/rest/fax/v1/docs/FaxV1Fax.md b/rest/fax/v1/docs/FaxV1Fax.md new file mode 100644 index 000000000..4e318f4fe --- /dev/null +++ b/rest/fax/v1/docs/FaxV1Fax.md @@ -0,0 +1,28 @@ +# FaxV1Fax + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ApiVersion** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Direction** | **string** | | [optional] +**Duration** | Pointer to **int32** | | [optional] +**From** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**MediaSid** | **string** | | [optional] +**MediaUrl** | **string** | | [optional] +**NumPages** | Pointer to **int32** | | [optional] +**Price** | **float32** | | [optional] +**PriceUnit** | **string** | | [optional] +**Quality** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Status** | **string** | | [optional] +**To** | **string** | | [optional] +**Url** | **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/rest/fax/v1/docs/FaxV1FaxFaxMedia.md b/rest/fax/v1/docs/FaxV1FaxFaxMedia.md new file mode 100644 index 000000000..563a00248 --- /dev/null +++ b/rest/fax/v1/docs/FaxV1FaxFaxMedia.md @@ -0,0 +1,17 @@ +# FaxV1FaxFaxMedia + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ContentType** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FaxSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/fax/v1/docs/FaxV1FaxFaxMediaReadResponse.md b/rest/fax/v1/docs/FaxV1FaxFaxMediaReadResponse.md new file mode 100644 index 000000000..7b2ecdad3 --- /dev/null +++ b/rest/fax/v1/docs/FaxV1FaxFaxMediaReadResponse.md @@ -0,0 +1,12 @@ +# FaxV1FaxFaxMediaReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Media** | [**[]FaxV1FaxFaxMedia**](fax.v1.fax.fax_media.md) | | [optional] +**Meta** | [**FaxV1FaxReadResponseMeta**](fax_v1_faxReadResponse_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/rest/fax/v1/docs/FaxV1FaxReadResponse.md b/rest/fax/v1/docs/FaxV1FaxReadResponse.md new file mode 100644 index 000000000..06214d6fd --- /dev/null +++ b/rest/fax/v1/docs/FaxV1FaxReadResponse.md @@ -0,0 +1,12 @@ +# FaxV1FaxReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Faxes** | [**[]FaxV1Fax**](fax.v1.fax.md) | | [optional] +**Meta** | [**FaxV1FaxReadResponseMeta**](fax_v1_faxReadResponse_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/rest/fax/v1/docs/FaxV1FaxReadResponseMeta.md b/rest/fax/v1/docs/FaxV1FaxReadResponseMeta.md new file mode 100644 index 000000000..973b3fb5e --- /dev/null +++ b/rest/fax/v1/docs/FaxV1FaxReadResponseMeta.md @@ -0,0 +1,17 @@ +# FaxV1FaxReadResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/fax/v1/docs/UpdateFaxRequest.md b/rest/fax/v1/docs/UpdateFaxRequest.md new file mode 100644 index 000000000..f345f7a73 --- /dev/null +++ b/rest/fax/v1/docs/UpdateFaxRequest.md @@ -0,0 +1,11 @@ +# UpdateFaxRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **string** | The new [status](https://www.twilio.com/docs/fax/api/fax-resource#fax-status-values) of the resource. Can be only `canceled`. This may fail if transmission has already started. | [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/rest/fax/v1/model_create_fax_request.go b/rest/fax/v1/model_create_fax_request.go new file mode 100644 index 000000000..91d8ff9bb --- /dev/null +++ b/rest/fax/v1/model_create_fax_request.go @@ -0,0 +1,32 @@ +/* + * Twilio - Fax + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateFaxRequest struct for CreateFaxRequest +type CreateFaxRequest struct { + // The number the fax was sent from. Can be the phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format or the SIP `from` value. The caller ID displayed to the recipient uses this value. If this is a phone number, it must be a Twilio number or a verified outgoing caller id from your account. If `to` is a SIP address, this can be any alphanumeric string (and also the characters `+`, `_`, `.`, and `-`), which will be used in the `from` header of the SIP request. + From string `json:"From,omitempty"` + // The URL of the PDF that contains the fax. See our [security](https://www.twilio.com/docs/usage/security) page for information on how to ensure the request for your media comes from Twilio. + MediaUrl string `json:"MediaUrl"` + // The [Fax Quality value](https://www.twilio.com/docs/fax/api/fax-resource#fax-quality-values) that describes the fax quality. Can be: `standard`, `fine`, or `superfine` and defaults to `fine`. + Quality string `json:"Quality,omitempty"` + // The password to use with `sip_auth_username` to authenticate faxes sent to a SIP address. + SipAuthPassword string `json:"SipAuthPassword,omitempty"` + // The username to use with the `sip_auth_password` to authenticate faxes sent to a SIP address. + SipAuthUsername string `json:"SipAuthUsername,omitempty"` + // The URL we should call using the `POST` method to send [status information](https://www.twilio.com/docs/fax/api/fax-resource#fax-status-callback) to your application when the status of the fax changes. + StatusCallback string `json:"StatusCallback,omitempty"` + // Whether to store a copy of the sent media on our servers for later retrieval. Can be: `true` or `false` and the default is `true`. + StoreMedia bool `json:"StoreMedia,omitempty"` + // The phone number to receive the fax in [E.164](https://www.twilio.com/docs/glossary/what-e164) format or the recipient's SIP URI. + To string `json:"To"` + // How long in minutes from when the fax is initiated that we should try to send the fax. + Ttl int32 `json:"Ttl,omitempty"` +} diff --git a/rest/fax/v1/model_fax_v1_fax.go b/rest/fax/v1/model_fax_v1_fax.go new file mode 100644 index 000000000..f4e6811c9 --- /dev/null +++ b/rest/fax/v1/model_fax_v1_fax.go @@ -0,0 +1,35 @@ +/* + * Twilio - Fax + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// FaxV1Fax struct for FaxV1Fax +type FaxV1Fax struct { + AccountSid string `json:"account_sid,omitempty"` + ApiVersion string `json:"api_version,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Direction string `json:"direction,omitempty"` + Duration *int32 `json:"duration,omitempty"` + From string `json:"from,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + MediaSid string `json:"media_sid,omitempty"` + MediaUrl string `json:"media_url,omitempty"` + NumPages *int32 `json:"num_pages,omitempty"` + Price float32 `json:"price,omitempty"` + PriceUnit string `json:"price_unit,omitempty"` + Quality string `json:"quality,omitempty"` + Sid string `json:"sid,omitempty"` + Status string `json:"status,omitempty"` + To string `json:"to,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/fax/v1/model_fax_v1_fax_fax_media.go b/rest/fax/v1/model_fax_v1_fax_fax_media.go new file mode 100644 index 000000000..18c056811 --- /dev/null +++ b/rest/fax/v1/model_fax_v1_fax_fax_media.go @@ -0,0 +1,24 @@ +/* + * Twilio - Fax + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// FaxV1FaxFaxMedia struct for FaxV1FaxFaxMedia +type FaxV1FaxFaxMedia struct { + AccountSid string `json:"account_sid,omitempty"` + ContentType string `json:"content_type,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FaxSid string `json:"fax_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/fax/v1/model_fax_v1_fax_fax_media_read_response.go b/rest/fax/v1/model_fax_v1_fax_fax_media_read_response.go new file mode 100644 index 000000000..d5a246f21 --- /dev/null +++ b/rest/fax/v1/model_fax_v1_fax_fax_media_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Fax + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// FaxV1FaxFaxMediaReadResponse struct for FaxV1FaxFaxMediaReadResponse +type FaxV1FaxFaxMediaReadResponse struct { + Media []FaxV1FaxFaxMedia `json:"media,omitempty"` + Meta FaxV1FaxReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/fax/v1/model_fax_v1_fax_read_response.go b/rest/fax/v1/model_fax_v1_fax_read_response.go new file mode 100644 index 000000000..cb386af54 --- /dev/null +++ b/rest/fax/v1/model_fax_v1_fax_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Fax + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// FaxV1FaxReadResponse struct for FaxV1FaxReadResponse +type FaxV1FaxReadResponse struct { + Faxes []FaxV1Fax `json:"faxes,omitempty"` + Meta FaxV1FaxReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/fax/v1/model_fax_v1_fax_read_response_meta.go b/rest/fax/v1/model_fax_v1_fax_read_response_meta.go new file mode 100644 index 000000000..f5bb3f96f --- /dev/null +++ b/rest/fax/v1/model_fax_v1_fax_read_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Fax + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// FaxV1FaxReadResponseMeta struct for FaxV1FaxReadResponseMeta +type FaxV1FaxReadResponseMeta struct { + FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` + NextPageUrl string `json:"next_page_url,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUrl string `json:"previous_page_url,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/fax/v1/model_update_fax_request.go b/rest/fax/v1/model_update_fax_request.go new file mode 100644 index 000000000..7b31ece51 --- /dev/null +++ b/rest/fax/v1/model_update_fax_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Fax + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateFaxRequest struct for UpdateFaxRequest +type UpdateFaxRequest struct { + // The new [status](https://www.twilio.com/docs/fax/api/fax-resource#fax-status-values) of the resource. Can be only `canceled`. This may fail if transmission has already started. + Status string `json:"Status,omitempty"` +} diff --git a/rest/fax/v1/response.go b/rest/fax/v1/response.go new file mode 100644 index 000000000..b544b06db --- /dev/null +++ b/rest/fax/v1/response.go @@ -0,0 +1,47 @@ +/* + * Twilio - Fax + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// Response returns a new APIResponse object. +func Response(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// ResponseWithError returns a new APIResponse object with the provided error message. +func ResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/rest/flex/v1/.openapi-generator-ignore b/rest/flex/v1/.openapi-generator-ignore new file mode 100644 index 000000000..7484ee590 --- /dev/null +++ b/rest/flex/v1/.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/rest/flex/v1/.openapi-generator/VERSION b/rest/flex/v1/.openapi-generator/VERSION new file mode 100644 index 000000000..ecedc98d1 --- /dev/null +++ b/rest/flex/v1/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.3.1 \ No newline at end of file diff --git a/rest/flex/v1/README.md b/rest/flex/v1/README.md new file mode 100644 index 000000000..50092fd8d --- /dev/null +++ b/rest/flex/v1/README.md @@ -0,0 +1,91 @@ +# Go API client for openapi + +This is the public Twilio REST API. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 5.15.0 +- Package version: 1.0.0 +- Build package: com.twilio.oai.TwilioGoGenerator +For more information, please visit [https://support.twilio.com](https://support.twilio.com) + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import "./openapi" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**CreateChannel**](docs/DefaultApi.md#createchannel) | **Post** /v1/Channels | +*DefaultApi* | [**CreateFlexFlow**](docs/DefaultApi.md#createflexflow) | **Post** /v1/FlexFlows | +*DefaultApi* | [**CreateWebChannel**](docs/DefaultApi.md#createwebchannel) | **Post** /v1/WebChannels | +*DefaultApi* | [**DeleteChannel**](docs/DefaultApi.md#deletechannel) | **Delete** /v1/Channels/{Sid} | +*DefaultApi* | [**DeleteFlexFlow**](docs/DefaultApi.md#deleteflexflow) | **Delete** /v1/FlexFlows/{Sid} | +*DefaultApi* | [**DeleteWebChannel**](docs/DefaultApi.md#deletewebchannel) | **Delete** /v1/WebChannels/{Sid} | +*DefaultApi* | [**FetchChannel**](docs/DefaultApi.md#fetchchannel) | **Get** /v1/Channels/{Sid} | +*DefaultApi* | [**FetchConfiguration**](docs/DefaultApi.md#fetchconfiguration) | **Get** /v1/Configuration | +*DefaultApi* | [**FetchFlexFlow**](docs/DefaultApi.md#fetchflexflow) | **Get** /v1/FlexFlows/{Sid} | +*DefaultApi* | [**FetchWebChannel**](docs/DefaultApi.md#fetchwebchannel) | **Get** /v1/WebChannels/{Sid} | +*DefaultApi* | [**ListChannel**](docs/DefaultApi.md#listchannel) | **Get** /v1/Channels | +*DefaultApi* | [**ListFlexFlow**](docs/DefaultApi.md#listflexflow) | **Get** /v1/FlexFlows | +*DefaultApi* | [**ListWebChannel**](docs/DefaultApi.md#listwebchannel) | **Get** /v1/WebChannels | +*DefaultApi* | [**UpdateConfiguration**](docs/DefaultApi.md#updateconfiguration) | **Post** /v1/Configuration | +*DefaultApi* | [**UpdateFlexFlow**](docs/DefaultApi.md#updateflexflow) | **Post** /v1/FlexFlows/{Sid} | +*DefaultApi* | [**UpdateWebChannel**](docs/DefaultApi.md#updatewebchannel) | **Post** /v1/WebChannels/{Sid} | + + +## Documentation For Models + + - [CreateChannelRequest](docs/CreateChannelRequest.md) + - [CreateFlexFlowRequest](docs/CreateFlexFlowRequest.md) + - [CreateWebChannelRequest](docs/CreateWebChannelRequest.md) + - [FlexV1Channel](docs/FlexV1Channel.md) + - [FlexV1ChannelReadResponse](docs/FlexV1ChannelReadResponse.md) + - [FlexV1ChannelReadResponseMeta](docs/FlexV1ChannelReadResponseMeta.md) + - [FlexV1Configuration](docs/FlexV1Configuration.md) + - [FlexV1FlexFlow](docs/FlexV1FlexFlow.md) + - [FlexV1FlexFlowReadResponse](docs/FlexV1FlexFlowReadResponse.md) + - [FlexV1WebChannel](docs/FlexV1WebChannel.md) + - [FlexV1WebChannelReadResponse](docs/FlexV1WebChannelReadResponse.md) + - [UpdateFlexFlowRequest](docs/UpdateFlexFlowRequest.md) + - [UpdateWebChannelRequest](docs/UpdateWebChannelRequest.md) + + +## Documentation For Authorization + + + +## accountSid_authToken + +- **Type**: HTTP basic authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ + UserName: "username", + Password: "password", +}) +r, err := client.Service.Operation(auth, args) +``` + + +## Author + +support@twilio.com + diff --git a/rest/flex/v1/api_default.go b/rest/flex/v1/api_default.go new file mode 100644 index 000000000..de33ddb1f --- /dev/null +++ b/rest/flex/v1/api_default.go @@ -0,0 +1,783 @@ +/* + * Twilio - Flex + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "" +) + +type DefaultApiService struct { + baseURL string + client *twilio.Client +} + +func NewDefaultApiService(client *twilio.Client) *DefaultApiService { + return &DefaultApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} +// CreateChannelParams Optional parameters for the method 'CreateChannel' +type CreateChannelParams struct { + ChatFriendlyName *string `json:"ChatFriendlyName,omitempty"` + ChatUniqueName *string `json:"ChatUniqueName,omitempty"` + ChatUserFriendlyName *string `json:"ChatUserFriendlyName,omitempty"` + FlexFlowSid *string `json:"FlexFlowSid,omitempty"` + Identity *string `json:"Identity,omitempty"` + LongLived *bool `json:"LongLived,omitempty"` + PreEngagementData *string `json:"PreEngagementData,omitempty"` + Target *string `json:"Target,omitempty"` + TaskAttributes *string `json:"TaskAttributes,omitempty"` + TaskSid *string `json:"TaskSid,omitempty"` +} + +/* +CreateChannel Method for CreateChannel + * @param optional nil or *CreateChannelOpts - Optional Parameters: + * @param "ChatFriendlyName" (string) - The chat channel's friendly name. + * @param "ChatUniqueName" (string) - The chat channel's unique name. + * @param "ChatUserFriendlyName" (string) - The chat participant's friendly name. + * @param "FlexFlowSid" (string) - The SID of the Flex Flow. + * @param "Identity" (string) - The `identity` value that uniquely identifies the new resource's chat User. + * @param "LongLived" (bool) - Whether to create the channel as long-lived. + * @param "PreEngagementData" (string) - The pre-engagement data. + * @param "Target" (string) - The Target Contact Identity, for example the phone number of an SMS. + * @param "TaskAttributes" (string) - The Task attributes to be added for the TaskRouter Task. + * @param "TaskSid" (string) - The SID of the TaskRouter Task. Only valid when integration type is `task`. `null` for integration types `studio` & `external` +@return FlexV1Channel +*/ +func (c *DefaultApiService) CreateChannel(params *CreateChannelParams) (*FlexV1Channel, error) { + path := "/v1/Channels" + + data := url.Values{} + headers := 0 + + if params != nil && params.ChatFriendlyName != nil { + data.Set("ChatFriendlyName", *params.ChatFriendlyName) + } + if params != nil && params.ChatUniqueName != nil { + data.Set("ChatUniqueName", *params.ChatUniqueName) + } + if params != nil && params.ChatUserFriendlyName != nil { + data.Set("ChatUserFriendlyName", *params.ChatUserFriendlyName) + } + if params != nil && params.FlexFlowSid != nil { + data.Set("FlexFlowSid", *params.FlexFlowSid) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.LongLived != nil { + data.Set("LongLived", string(*params.LongLived)) + } + if params != nil && params.PreEngagementData != nil { + data.Set("PreEngagementData", *params.PreEngagementData) + } + if params != nil && params.Target != nil { + data.Set("Target", *params.Target) + } + if params != nil && params.TaskAttributes != nil { + data.Set("TaskAttributes", *params.TaskAttributes) + } + if params != nil && params.TaskSid != nil { + data.Set("TaskSid", *params.TaskSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FlexV1Channel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateFlexFlowParams Optional parameters for the method 'CreateFlexFlow' +type CreateFlexFlowParams struct { + ChannelType *string `json:"ChannelType,omitempty"` + ChatServiceSid *string `json:"ChatServiceSid,omitempty"` + ContactIdentity *string `json:"ContactIdentity,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Integration.Channel *string `json:"Integration.Channel,omitempty"` + Integration.CreationOnMessage *bool `json:"Integration.CreationOnMessage,omitempty"` + Integration.FlowSid *string `json:"Integration.FlowSid,omitempty"` + Integration.Priority *int32 `json:"Integration.Priority,omitempty"` + Integration.RetryCount *int32 `json:"Integration.RetryCount,omitempty"` + Integration.Timeout *int32 `json:"Integration.Timeout,omitempty"` + Integration.Url *string `json:"Integration.Url,omitempty"` + Integration.WorkflowSid *string `json:"Integration.WorkflowSid,omitempty"` + Integration.WorkspaceSid *string `json:"Integration.WorkspaceSid,omitempty"` + IntegrationType *string `json:"IntegrationType,omitempty"` + JanitorEnabled *bool `json:"JanitorEnabled,omitempty"` + LongLived *bool `json:"LongLived,omitempty"` +} + +/* +CreateFlexFlow Method for CreateFlexFlow + * @param optional nil or *CreateFlexFlowOpts - Optional Parameters: + * @param "ChannelType" (string) - The channel type. Can be: `web`, `facebook`, `sms`, `whatsapp`, `line` or `custom`. + * @param "ChatServiceSid" (string) - The SID of the chat service. + * @param "ContactIdentity" (string) - The channel contact's Identity. + * @param "Enabled" (bool) - Whether the new Flex Flow is enabled. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the Flex Flow resource. + * @param "Integration.Channel" (string) - The Task Channel for the TaskRouter Task that will be created. Applicable and required when integrationType is `task`. Set to `sms` for SMS, and to `chat` otherwise. The default value is `default` + * @param "Integration.CreationOnMessage" (bool) - In the context of outbound messaging, defines whether to create a Task immediately (and therefore reserve the conversation to current agent), or delay Task creation until the customer sends the first response. Set to false to create immediately, true to delay Task creation. This setting is only applicable for outbound messaging. + * @param "Integration.FlowSid" (string) - The SID of the Studio Flow. Required when `integrationType` is `studio`. + * @param "Integration.Priority" (int32) - The Task priority of a new Task. The default priority is 0. Optional when `integrationType` is `task`, not applicable otherwise. + * @param "Integration.RetryCount" (int32) - The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3 (included), default is 0. Optional when integrationType is `external`, not applicable otherwise. + * @param "Integration.Timeout" (int32) - The Task timeout in seconds for a new Task. Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`, not applicable otherwise. + * @param "Integration.Url" (string) - The URL of the external webhook. Required when `integrationType` is `external`. + * @param "Integration.WorkflowSid" (string) - The Workflow SID for a new Task. Required when `integrationType` is `task`. + * @param "Integration.WorkspaceSid" (string) - The Workspace SID for a new Task. Required when `integrationType` is `task`. + * @param "IntegrationType" (string) - The integration type. Can be: `studio`, `external`, or `task`. + * @param "JanitorEnabled" (bool) - When enabled, the Messaging Channel Janitor will remove active Proxy sessions if the associated Task is deleted outside of the Flex UI. Defaults to `false`. + * @param "LongLived" (bool) - When enabled, Flex will keep the chat channel active so that it may be used for subsequent interactions with a contact identity. Defaults to `false`. +@return FlexV1FlexFlow +*/ +func (c *DefaultApiService) CreateFlexFlow(params *CreateFlexFlowParams) (*FlexV1FlexFlow, error) { + path := "/v1/FlexFlows" + + data := url.Values{} + headers := 0 + + if params != nil && params.ChannelType != nil { + data.Set("ChannelType", *params.ChannelType) + } + if params != nil && params.ChatServiceSid != nil { + data.Set("ChatServiceSid", *params.ChatServiceSid) + } + if params != nil && params.ContactIdentity != nil { + data.Set("ContactIdentity", *params.ContactIdentity) + } + if params != nil && params.Enabled != nil { + data.Set("Enabled", string(*params.Enabled)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Integration.Channel != nil { + data.Set("Integration.Channel", *params.Integration.Channel) + } + if params != nil && params.Integration.CreationOnMessage != nil { + data.Set("Integration.CreationOnMessage", string(*params.Integration.CreationOnMessage)) + } + if params != nil && params.Integration.FlowSid != nil { + data.Set("Integration.FlowSid", *params.Integration.FlowSid) + } + if params != nil && params.Integration.Priority != nil { + data.Set("Integration.Priority", string(*params.Integration.Priority)) + } + if params != nil && params.Integration.RetryCount != nil { + data.Set("Integration.RetryCount", string(*params.Integration.RetryCount)) + } + if params != nil && params.Integration.Timeout != nil { + data.Set("Integration.Timeout", string(*params.Integration.Timeout)) + } + if params != nil && params.Integration.Url != nil { + data.Set("Integration.Url", *params.Integration.Url) + } + if params != nil && params.Integration.WorkflowSid != nil { + data.Set("Integration.WorkflowSid", *params.Integration.WorkflowSid) + } + if params != nil && params.Integration.WorkspaceSid != nil { + data.Set("Integration.WorkspaceSid", *params.Integration.WorkspaceSid) + } + if params != nil && params.IntegrationType != nil { + data.Set("IntegrationType", *params.IntegrationType) + } + if params != nil && params.JanitorEnabled != nil { + data.Set("JanitorEnabled", string(*params.JanitorEnabled)) + } + if params != nil && params.LongLived != nil { + data.Set("LongLived", string(*params.LongLived)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FlexV1FlexFlow{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateWebChannelParams Optional parameters for the method 'CreateWebChannel' +type CreateWebChannelParams struct { + ChatFriendlyName *string `json:"ChatFriendlyName,omitempty"` + ChatUniqueName *string `json:"ChatUniqueName,omitempty"` + CustomerFriendlyName *string `json:"CustomerFriendlyName,omitempty"` + FlexFlowSid *string `json:"FlexFlowSid,omitempty"` + Identity *string `json:"Identity,omitempty"` + PreEngagementData *string `json:"PreEngagementData,omitempty"` +} + +/* +CreateWebChannel Method for CreateWebChannel + * @param optional nil or *CreateWebChannelOpts - Optional Parameters: + * @param "ChatFriendlyName" (string) - The chat channel's friendly name. + * @param "ChatUniqueName" (string) - The chat channel's unique name. + * @param "CustomerFriendlyName" (string) - The chat participant's friendly name. + * @param "FlexFlowSid" (string) - The SID of the Flex Flow. + * @param "Identity" (string) - The chat identity. + * @param "PreEngagementData" (string) - The pre-engagement data. +@return FlexV1WebChannel +*/ +func (c *DefaultApiService) CreateWebChannel(params *CreateWebChannelParams) (*FlexV1WebChannel, error) { + path := "/v1/WebChannels" + + data := url.Values{} + headers := 0 + + if params != nil && params.ChatFriendlyName != nil { + data.Set("ChatFriendlyName", *params.ChatFriendlyName) + } + if params != nil && params.ChatUniqueName != nil { + data.Set("ChatUniqueName", *params.ChatUniqueName) + } + if params != nil && params.CustomerFriendlyName != nil { + data.Set("CustomerFriendlyName", *params.CustomerFriendlyName) + } + if params != nil && params.FlexFlowSid != nil { + data.Set("FlexFlowSid", *params.FlexFlowSid) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.PreEngagementData != nil { + data.Set("PreEngagementData", *params.PreEngagementData) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FlexV1WebChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +DeleteChannel Method for DeleteChannel + * @param sid The SID of the Flex chat channel resource to delete. +*/ +func (c *DefaultApiService) DeleteChannel(sid string) (error) { + path := "/v1/Channels/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteFlexFlow Method for DeleteFlexFlow + * @param sid The SID of the Flex Flow resource to delete. +*/ +func (c *DefaultApiService) DeleteFlexFlow(sid string) (error) { + path := "/v1/FlexFlows/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteWebChannel Method for DeleteWebChannel + * @param sid The SID of the WebChannel resource to delete. +*/ +func (c *DefaultApiService) DeleteWebChannel(sid string) (error) { + path := "/v1/WebChannels/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +FetchChannel Method for FetchChannel + * @param sid The SID of the Flex chat channel resource to fetch. +@return FlexV1Channel +*/ +func (c *DefaultApiService) FetchChannel(sid string) (*FlexV1Channel, error) { + path := "/v1/Channels/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FlexV1Channel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// FetchConfigurationParams Optional parameters for the method 'FetchConfiguration' +type FetchConfigurationParams struct { + UiVersion *string `json:"UiVersion,omitempty"` +} + +/* +FetchConfiguration Method for FetchConfiguration + * @param optional nil or *FetchConfigurationOpts - Optional Parameters: + * @param "UiVersion" (string) - The Pinned UI version of the Configuration resource to fetch. +@return FlexV1Configuration +*/ +func (c *DefaultApiService) FetchConfiguration(params *FetchConfigurationParams) (*FlexV1Configuration, error) { + path := "/v1/Configuration" + + data := url.Values{} + headers := 0 + + if params != nil && params.UiVersion != nil { + data.Set("UiVersion", *params.UiVersion) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FlexV1Configuration{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchFlexFlow Method for FetchFlexFlow + * @param sid The SID of the Flex Flow resource to fetch. +@return FlexV1FlexFlow +*/ +func (c *DefaultApiService) FetchFlexFlow(sid string) (*FlexV1FlexFlow, error) { + path := "/v1/FlexFlows/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FlexV1FlexFlow{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchWebChannel Method for FetchWebChannel + * @param sid The SID of the WebChannel resource to fetch. +@return FlexV1WebChannel +*/ +func (c *DefaultApiService) FetchWebChannel(sid string) (*FlexV1WebChannel, error) { + path := "/v1/WebChannels/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FlexV1WebChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListChannelParams Optional parameters for the method 'ListChannel' +type ListChannelParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListChannel Method for ListChannel + * @param optional nil or *ListChannelOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return FlexV1ChannelReadResponse +*/ +func (c *DefaultApiService) ListChannel(params *ListChannelParams) (*FlexV1ChannelReadResponse, error) { + path := "/v1/Channels" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FlexV1ChannelReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListFlexFlowParams Optional parameters for the method 'ListFlexFlow' +type ListFlexFlowParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListFlexFlow Method for ListFlexFlow + * @param optional nil or *ListFlexFlowOpts - Optional Parameters: + * @param "FriendlyName" (string) - The `friendly_name` of the Flex Flow resources to read. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return FlexV1FlexFlowReadResponse +*/ +func (c *DefaultApiService) ListFlexFlow(params *ListFlexFlowParams) (*FlexV1FlexFlowReadResponse, error) { + path := "/v1/FlexFlows" + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FlexV1FlexFlowReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListWebChannelParams Optional parameters for the method 'ListWebChannel' +type ListWebChannelParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListWebChannel Method for ListWebChannel + * @param optional nil or *ListWebChannelOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return FlexV1WebChannelReadResponse +*/ +func (c *DefaultApiService) ListWebChannel(params *ListWebChannelParams) (*FlexV1WebChannelReadResponse, error) { + path := "/v1/WebChannels" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FlexV1WebChannelReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +UpdateConfiguration Method for UpdateConfiguration +@return FlexV1Configuration +*/ +func (c *DefaultApiService) UpdateConfiguration() (*FlexV1Configuration, error) { + path := "/v1/Configuration" + + data := 0 + headers := 0 + + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FlexV1Configuration{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateFlexFlowParams Optional parameters for the method 'UpdateFlexFlow' +type UpdateFlexFlowParams struct { + ChannelType *string `json:"ChannelType,omitempty"` + ChatServiceSid *string `json:"ChatServiceSid,omitempty"` + ContactIdentity *string `json:"ContactIdentity,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Integration.Channel *string `json:"Integration.Channel,omitempty"` + Integration.CreationOnMessage *bool `json:"Integration.CreationOnMessage,omitempty"` + Integration.FlowSid *string `json:"Integration.FlowSid,omitempty"` + Integration.Priority *int32 `json:"Integration.Priority,omitempty"` + Integration.RetryCount *int32 `json:"Integration.RetryCount,omitempty"` + Integration.Timeout *int32 `json:"Integration.Timeout,omitempty"` + Integration.Url *string `json:"Integration.Url,omitempty"` + Integration.WorkflowSid *string `json:"Integration.WorkflowSid,omitempty"` + Integration.WorkspaceSid *string `json:"Integration.WorkspaceSid,omitempty"` + IntegrationType *string `json:"IntegrationType,omitempty"` + JanitorEnabled *bool `json:"JanitorEnabled,omitempty"` + LongLived *bool `json:"LongLived,omitempty"` +} + +/* +UpdateFlexFlow Method for UpdateFlexFlow + * @param sid The SID of the Flex Flow resource to update. + * @param optional nil or *UpdateFlexFlowOpts - Optional Parameters: + * @param "ChannelType" (string) - The channel type. Can be: `web`, `facebook`, `sms`, `whatsapp`, `line` or `custom`. + * @param "ChatServiceSid" (string) - The SID of the chat service. + * @param "ContactIdentity" (string) - The channel contact's Identity. + * @param "Enabled" (bool) - Whether the new Flex Flow is enabled. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the Flex Flow resource. + * @param "Integration.Channel" (string) - The Task Channel for the TaskRouter Task that will be created. Applicable and required when integrationType is `task`. Set to `sms` for SMS, and to `chat` otherwise. The default value is `default` + * @param "Integration.CreationOnMessage" (bool) - In the context of outbound messaging, defines whether to create a Task immediately (and therefore reserve the conversation to current agent), or delay Task creation until the customer sends the first response. Set to false to create immediately, true to delay Task creation. This setting is only applicable for outbound messaging. + * @param "Integration.FlowSid" (string) - The SID of the Studio Flow. Required when `integrationType` is `studio`. + * @param "Integration.Priority" (int32) - The Task priority of a new Task. The default priority is 0. Optional when `integrationType` is `task`, not applicable otherwise. + * @param "Integration.RetryCount" (int32) - The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3 (included), default is 0. Optional when integrationType is `external`, not applicable otherwise. + * @param "Integration.Timeout" (int32) - The Task timeout in seconds for a new Task. Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`, not applicable otherwise. + * @param "Integration.Url" (string) - The URL of the external webhook. Required when `integrationType` is `external`. + * @param "Integration.WorkflowSid" (string) - The Workflow SID for a new Task. Required when `integrationType` is `task`. + * @param "Integration.WorkspaceSid" (string) - The Workspace SID for a new Task. Required when `integrationType` is `task`. + * @param "IntegrationType" (string) - The integration type. Can be: `studio`, `external`, or `task`. + * @param "JanitorEnabled" (bool) - When enabled, the Messaging Channel Janitor will remove active Proxy sessions if the associated Task is deleted outside of the Flex UI. Defaults to `false`. + * @param "LongLived" (bool) - When enabled, Flex will keep the chat channel active so that it may be used for subsequent interactions with a contact identity. Defaults to `false`. +@return FlexV1FlexFlow +*/ +func (c *DefaultApiService) UpdateFlexFlow(sid string, params *UpdateFlexFlowParams) (*FlexV1FlexFlow, error) { + path := "/v1/FlexFlows/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ChannelType != nil { + data.Set("ChannelType", *params.ChannelType) + } + if params != nil && params.ChatServiceSid != nil { + data.Set("ChatServiceSid", *params.ChatServiceSid) + } + if params != nil && params.ContactIdentity != nil { + data.Set("ContactIdentity", *params.ContactIdentity) + } + if params != nil && params.Enabled != nil { + data.Set("Enabled", string(*params.Enabled)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Integration.Channel != nil { + data.Set("Integration.Channel", *params.Integration.Channel) + } + if params != nil && params.Integration.CreationOnMessage != nil { + data.Set("Integration.CreationOnMessage", string(*params.Integration.CreationOnMessage)) + } + if params != nil && params.Integration.FlowSid != nil { + data.Set("Integration.FlowSid", *params.Integration.FlowSid) + } + if params != nil && params.Integration.Priority != nil { + data.Set("Integration.Priority", string(*params.Integration.Priority)) + } + if params != nil && params.Integration.RetryCount != nil { + data.Set("Integration.RetryCount", string(*params.Integration.RetryCount)) + } + if params != nil && params.Integration.Timeout != nil { + data.Set("Integration.Timeout", string(*params.Integration.Timeout)) + } + if params != nil && params.Integration.Url != nil { + data.Set("Integration.Url", *params.Integration.Url) + } + if params != nil && params.Integration.WorkflowSid != nil { + data.Set("Integration.WorkflowSid", *params.Integration.WorkflowSid) + } + if params != nil && params.Integration.WorkspaceSid != nil { + data.Set("Integration.WorkspaceSid", *params.Integration.WorkspaceSid) + } + if params != nil && params.IntegrationType != nil { + data.Set("IntegrationType", *params.IntegrationType) + } + if params != nil && params.JanitorEnabled != nil { + data.Set("JanitorEnabled", string(*params.JanitorEnabled)) + } + if params != nil && params.LongLived != nil { + data.Set("LongLived", string(*params.LongLived)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FlexV1FlexFlow{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateWebChannelParams Optional parameters for the method 'UpdateWebChannel' +type UpdateWebChannelParams struct { + ChatStatus *string `json:"ChatStatus,omitempty"` + PostEngagementData *string `json:"PostEngagementData,omitempty"` +} + +/* +UpdateWebChannel Method for UpdateWebChannel + * @param sid The SID of the WebChannel resource to update. + * @param optional nil or *UpdateWebChannelOpts - Optional Parameters: + * @param "ChatStatus" (string) - The chat status. Can only be `inactive`. + * @param "PostEngagementData" (string) - The post-engagement data. +@return FlexV1WebChannel +*/ +func (c *DefaultApiService) UpdateWebChannel(sid string, params *UpdateWebChannelParams) (*FlexV1WebChannel, error) { + path := "/v1/WebChannels/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ChatStatus != nil { + data.Set("ChatStatus", *params.ChatStatus) + } + if params != nil && params.PostEngagementData != nil { + data.Set("PostEngagementData", *params.PostEngagementData) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FlexV1WebChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/flex/v1/docs/CreateChannelRequest.md b/rest/flex/v1/docs/CreateChannelRequest.md new file mode 100644 index 000000000..d1d8b8e54 --- /dev/null +++ b/rest/flex/v1/docs/CreateChannelRequest.md @@ -0,0 +1,20 @@ +# CreateChannelRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ChatFriendlyName** | **string** | The chat channel's friendly name. | +**ChatUniqueName** | **string** | The chat channel's unique name. | [optional] +**ChatUserFriendlyName** | **string** | The chat participant's friendly name. | +**FlexFlowSid** | **string** | The SID of the Flex Flow. | +**Identity** | **string** | The `identity` value that uniquely identifies the new resource's chat User. | +**LongLived** | **bool** | Whether to create the channel as long-lived. | [optional] +**PreEngagementData** | **string** | The pre-engagement data. | [optional] +**Target** | **string** | The Target Contact Identity, for example the phone number of an SMS. | [optional] +**TaskAttributes** | **string** | The Task attributes to be added for the TaskRouter Task. | [optional] +**TaskSid** | **string** | The SID of the TaskRouter Task. Only valid when integration type is `task`. `null` for integration types `studio` & `external` | [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/rest/flex/v1/docs/CreateFlexFlowRequest.md b/rest/flex/v1/docs/CreateFlexFlowRequest.md new file mode 100644 index 000000000..6817f6454 --- /dev/null +++ b/rest/flex/v1/docs/CreateFlexFlowRequest.md @@ -0,0 +1,27 @@ +# CreateFlexFlowRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ChannelType** | **string** | The channel type. Can be: `web`, `facebook`, `sms`, `whatsapp`, `line` or `custom`. | +**ChatServiceSid** | **string** | The SID of the chat service. | +**ContactIdentity** | **string** | The channel contact's Identity. | [optional] +**Enabled** | **bool** | Whether the new Flex Flow is enabled. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the Flex Flow resource. | +**IntegrationChannel** | **string** | The Task Channel for the TaskRouter Task that will be created. Applicable and required when integrationType is `task`. Set to `sms` for SMS, and to `chat` otherwise. The default value is `default` | [optional] +**IntegrationCreationOnMessage** | **bool** | In the context of outbound messaging, defines whether to create a Task immediately (and therefore reserve the conversation to current agent), or delay Task creation until the customer sends the first response. Set to false to create immediately, true to delay Task creation. This setting is only applicable for outbound messaging. | [optional] +**IntegrationFlowSid** | **string** | The SID of the Studio Flow. Required when `integrationType` is `studio`. | [optional] +**IntegrationPriority** | **int32** | The Task priority of a new Task. The default priority is 0. Optional when `integrationType` is `task`, not applicable otherwise. | [optional] +**IntegrationRetryCount** | **int32** | The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3 (included), default is 0. Optional when integrationType is `external`, not applicable otherwise. | [optional] +**IntegrationTimeout** | **int32** | The Task timeout in seconds for a new Task. Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`, not applicable otherwise. | [optional] +**IntegrationUrl** | **string** | The URL of the external webhook. Required when `integrationType` is `external`. | [optional] +**IntegrationWorkflowSid** | **string** | The Workflow SID for a new Task. Required when `integrationType` is `task`. | [optional] +**IntegrationWorkspaceSid** | **string** | The Workspace SID for a new Task. Required when `integrationType` is `task`. | [optional] +**IntegrationType** | **string** | The integration type. Can be: `studio`, `external`, or `task`. | [optional] +**JanitorEnabled** | **bool** | When enabled, the Messaging Channel Janitor will remove active Proxy sessions if the associated Task is deleted outside of the Flex UI. Defaults to `false`. | [optional] +**LongLived** | **bool** | When enabled, Flex will keep the chat channel active so that it may be used for subsequent interactions with a contact identity. Defaults to `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/rest/flex/v1/docs/CreateWebChannelRequest.md b/rest/flex/v1/docs/CreateWebChannelRequest.md new file mode 100644 index 000000000..b57383e25 --- /dev/null +++ b/rest/flex/v1/docs/CreateWebChannelRequest.md @@ -0,0 +1,16 @@ +# CreateWebChannelRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ChatFriendlyName** | **string** | The chat channel's friendly name. | +**ChatUniqueName** | **string** | The chat channel's unique name. | [optional] +**CustomerFriendlyName** | **string** | The chat participant's friendly name. | +**FlexFlowSid** | **string** | The SID of the Flex Flow. | +**Identity** | **string** | The chat identity. | +**PreEngagementData** | **string** | The pre-engagement data. | [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/rest/flex/v1/docs/DefaultApi.md b/rest/flex/v1/docs/DefaultApi.md new file mode 100644 index 000000000..f9cbb845d --- /dev/null +++ b/rest/flex/v1/docs/DefaultApi.md @@ -0,0 +1,665 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateChannel**](DefaultApi.md#CreateChannel) | **Post** /v1/Channels | +[**CreateFlexFlow**](DefaultApi.md#CreateFlexFlow) | **Post** /v1/FlexFlows | +[**CreateWebChannel**](DefaultApi.md#CreateWebChannel) | **Post** /v1/WebChannels | +[**DeleteChannel**](DefaultApi.md#DeleteChannel) | **Delete** /v1/Channels/{Sid} | +[**DeleteFlexFlow**](DefaultApi.md#DeleteFlexFlow) | **Delete** /v1/FlexFlows/{Sid} | +[**DeleteWebChannel**](DefaultApi.md#DeleteWebChannel) | **Delete** /v1/WebChannels/{Sid} | +[**FetchChannel**](DefaultApi.md#FetchChannel) | **Get** /v1/Channels/{Sid} | +[**FetchConfiguration**](DefaultApi.md#FetchConfiguration) | **Get** /v1/Configuration | +[**FetchFlexFlow**](DefaultApi.md#FetchFlexFlow) | **Get** /v1/FlexFlows/{Sid} | +[**FetchWebChannel**](DefaultApi.md#FetchWebChannel) | **Get** /v1/WebChannels/{Sid} | +[**ListChannel**](DefaultApi.md#ListChannel) | **Get** /v1/Channels | +[**ListFlexFlow**](DefaultApi.md#ListFlexFlow) | **Get** /v1/FlexFlows | +[**ListWebChannel**](DefaultApi.md#ListWebChannel) | **Get** /v1/WebChannels | +[**UpdateConfiguration**](DefaultApi.md#UpdateConfiguration) | **Post** /v1/Configuration | +[**UpdateFlexFlow**](DefaultApi.md#UpdateFlexFlow) | **Post** /v1/FlexFlows/{Sid} | +[**UpdateWebChannel**](DefaultApi.md#UpdateWebChannel) | **Post** /v1/WebChannels/{Sid} | + + + +## CreateChannel + +> FlexV1Channel CreateChannel(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateChannelOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateChannelOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **chatFriendlyName** | **optional.String**| The chat channel's friendly name. | + **chatUniqueName** | **optional.String**| The chat channel's unique name. | + **chatUserFriendlyName** | **optional.String**| The chat participant's friendly name. | + **flexFlowSid** | **optional.String**| The SID of the Flex Flow. | + **identity** | **optional.String**| The `identity` value that uniquely identifies the new resource's chat User. | + **longLived** | **optional.Bool**| Whether to create the channel as long-lived. | + **preEngagementData** | **optional.String**| The pre-engagement data. | + **target** | **optional.String**| The Target Contact Identity, for example the phone number of an SMS. | + **taskAttributes** | **optional.String**| The Task attributes to be added for the TaskRouter Task. | + **taskSid** | **optional.String**| The SID of the TaskRouter Task. Only valid when integration type is `task`. `null` for integration types `studio` & `external` | + +### Return type + +[**FlexV1Channel**](flex.v1.channel.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) + + +## CreateFlexFlow + +> FlexV1FlexFlow CreateFlexFlow(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateFlexFlowOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateFlexFlowOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **channelType** | **optional.String**| The channel type. Can be: `web`, `facebook`, `sms`, `whatsapp`, `line` or `custom`. | + **chatServiceSid** | **optional.String**| The SID of the chat service. | + **contactIdentity** | **optional.String**| The channel contact's Identity. | + **enabled** | **optional.Bool**| Whether the new Flex Flow is enabled. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the Flex Flow resource. | + **integrationChannel** | **optional.String**| The Task Channel for the TaskRouter Task that will be created. Applicable and required when integrationType is `task`. Set to `sms` for SMS, and to `chat` otherwise. The default value is `default` | + **integrationCreationOnMessage** | **optional.Bool**| In the context of outbound messaging, defines whether to create a Task immediately (and therefore reserve the conversation to current agent), or delay Task creation until the customer sends the first response. Set to false to create immediately, true to delay Task creation. This setting is only applicable for outbound messaging. | + **integrationFlowSid** | **optional.String**| The SID of the Studio Flow. Required when `integrationType` is `studio`. | + **integrationPriority** | **optional.Int32**| The Task priority of a new Task. The default priority is 0. Optional when `integrationType` is `task`, not applicable otherwise. | + **integrationRetryCount** | **optional.Int32**| The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3 (included), default is 0. Optional when integrationType is `external`, not applicable otherwise. | + **integrationTimeout** | **optional.Int32**| The Task timeout in seconds for a new Task. Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`, not applicable otherwise. | + **integrationUrl** | **optional.String**| The URL of the external webhook. Required when `integrationType` is `external`. | + **integrationWorkflowSid** | **optional.String**| The Workflow SID for a new Task. Required when `integrationType` is `task`. | + **integrationWorkspaceSid** | **optional.String**| The Workspace SID for a new Task. Required when `integrationType` is `task`. | + **integrationType** | **optional.String**| The integration type. Can be: `studio`, `external`, or `task`. | + **janitorEnabled** | **optional.Bool**| When enabled, the Messaging Channel Janitor will remove active Proxy sessions if the associated Task is deleted outside of the Flex UI. Defaults to `false`. | + **longLived** | **optional.Bool**| When enabled, Flex will keep the chat channel active so that it may be used for subsequent interactions with a contact identity. Defaults to `false`. | + +### Return type + +[**FlexV1FlexFlow**](flex.v1.flex_flow.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) + + +## CreateWebChannel + +> FlexV1WebChannel CreateWebChannel(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateWebChannelOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateWebChannelOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **chatFriendlyName** | **optional.String**| The chat channel's friendly name. | + **chatUniqueName** | **optional.String**| The chat channel's unique name. | + **customerFriendlyName** | **optional.String**| The chat participant's friendly name. | + **flexFlowSid** | **optional.String**| The SID of the Flex Flow. | + **identity** | **optional.String**| The chat identity. | + **preEngagementData** | **optional.String**| The pre-engagement data. | + +### Return type + +[**FlexV1WebChannel**](flex.v1.web_channel.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) + + +## DeleteChannel + +> DeleteChannel(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Flex chat channel resource to delete. | + +### 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) + + +## DeleteFlexFlow + +> DeleteFlexFlow(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Flex Flow resource to delete. | + +### 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) + + +## DeleteWebChannel + +> DeleteWebChannel(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the WebChannel resource to delete. | + +### 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) + + +## FetchChannel + +> FlexV1Channel FetchChannel(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Flex chat channel resource to fetch. | + +### Return type + +[**FlexV1Channel**](flex.v1.channel.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) + + +## FetchConfiguration + +> FlexV1Configuration FetchConfiguration(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***FetchConfigurationOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a FetchConfigurationOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **uiVersion** | **optional.String**| The Pinned UI version of the Configuration resource to fetch. | + +### Return type + +[**FlexV1Configuration**](flex.v1.configuration.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) + + +## FetchFlexFlow + +> FlexV1FlexFlow FetchFlexFlow(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Flex Flow resource to fetch. | + +### Return type + +[**FlexV1FlexFlow**](flex.v1.flex_flow.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) + + +## FetchWebChannel + +> FlexV1WebChannel FetchWebChannel(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the WebChannel resource to fetch. | + +### Return type + +[**FlexV1WebChannel**](flex.v1.web_channel.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) + + +## ListChannel + +> FlexV1ChannelReadResponse ListChannel(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListChannelOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListChannelOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**FlexV1ChannelReadResponse**](flex_v1_channelReadResponse.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) + + +## ListFlexFlow + +> FlexV1FlexFlowReadResponse ListFlexFlow(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListFlexFlowOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListFlexFlowOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **friendlyName** | **optional.String**| The `friendly_name` of the Flex Flow resources to read. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**FlexV1FlexFlowReadResponse**](flex_v1_flex_flowReadResponse.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) + + +## ListWebChannel + +> FlexV1WebChannelReadResponse ListWebChannel(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListWebChannelOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListWebChannelOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**FlexV1WebChannelReadResponse**](flex_v1_web_channelReadResponse.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) + + +## UpdateConfiguration + +> FlexV1Configuration UpdateConfiguration(ctx, ) + + + +### Required Parameters + +This endpoint does not need any parameter. + +### Return type + +[**FlexV1Configuration**](flex.v1.configuration.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) + + +## UpdateFlexFlow + +> FlexV1FlexFlow UpdateFlexFlow(ctx, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Flex Flow resource to update. | + **optional** | ***UpdateFlexFlowOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateFlexFlowOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **channelType** | **optional.String**| The channel type. Can be: `web`, `facebook`, `sms`, `whatsapp`, `line` or `custom`. | + **chatServiceSid** | **optional.String**| The SID of the chat service. | + **contactIdentity** | **optional.String**| The channel contact's Identity. | + **enabled** | **optional.Bool**| Whether the new Flex Flow is enabled. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the Flex Flow resource. | + **integrationChannel** | **optional.String**| The Task Channel for the TaskRouter Task that will be created. Applicable and required when integrationType is `task`. Set to `sms` for SMS, and to `chat` otherwise. The default value is `default` | + **integrationCreationOnMessage** | **optional.Bool**| In the context of outbound messaging, defines whether to create a Task immediately (and therefore reserve the conversation to current agent), or delay Task creation until the customer sends the first response. Set to false to create immediately, true to delay Task creation. This setting is only applicable for outbound messaging. | + **integrationFlowSid** | **optional.String**| The SID of the Studio Flow. Required when `integrationType` is `studio`. | + **integrationPriority** | **optional.Int32**| The Task priority of a new Task. The default priority is 0. Optional when `integrationType` is `task`, not applicable otherwise. | + **integrationRetryCount** | **optional.Int32**| The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3 (included), default is 0. Optional when integrationType is `external`, not applicable otherwise. | + **integrationTimeout** | **optional.Int32**| The Task timeout in seconds for a new Task. Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`, not applicable otherwise. | + **integrationUrl** | **optional.String**| The URL of the external webhook. Required when `integrationType` is `external`. | + **integrationWorkflowSid** | **optional.String**| The Workflow SID for a new Task. Required when `integrationType` is `task`. | + **integrationWorkspaceSid** | **optional.String**| The Workspace SID for a new Task. Required when `integrationType` is `task`. | + **integrationType** | **optional.String**| The integration type. Can be: `studio`, `external`, or `task`. | + **janitorEnabled** | **optional.Bool**| When enabled, the Messaging Channel Janitor will remove active Proxy sessions if the associated Task is deleted outside of the Flex UI. Defaults to `false`. | + **longLived** | **optional.Bool**| When enabled, Flex will keep the chat channel active so that it may be used for subsequent interactions with a contact identity. Defaults to `false`. | + +### Return type + +[**FlexV1FlexFlow**](flex.v1.flex_flow.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) + + +## UpdateWebChannel + +> FlexV1WebChannel UpdateWebChannel(ctx, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the WebChannel resource to update. | + **optional** | ***UpdateWebChannelOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateWebChannelOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **chatStatus** | **optional.String**| The chat status. Can only be `inactive`. | + **postEngagementData** | **optional.String**| The post-engagement data. | + +### Return type + +[**FlexV1WebChannel**](flex.v1.web_channel.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/rest/flex/v1/docs/FlexV1Channel.md b/rest/flex/v1/docs/FlexV1Channel.md new file mode 100644 index 000000000..0bce5f3bd --- /dev/null +++ b/rest/flex/v1/docs/FlexV1Channel.md @@ -0,0 +1,18 @@ +# FlexV1Channel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FlexFlowSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**TaskSid** | **string** | | [optional] +**Url** | **string** | | [optional] +**UserSid** | **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/rest/flex/v1/docs/FlexV1ChannelReadResponse.md b/rest/flex/v1/docs/FlexV1ChannelReadResponse.md new file mode 100644 index 000000000..a04682baf --- /dev/null +++ b/rest/flex/v1/docs/FlexV1ChannelReadResponse.md @@ -0,0 +1,12 @@ +# FlexV1ChannelReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FlexChatChannels** | [**[]FlexV1Channel**](flex.v1.channel.md) | | [optional] +**Meta** | [**FlexV1ChannelReadResponseMeta**](flex_v1_channelReadResponse_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/rest/flex/v1/docs/FlexV1ChannelReadResponseMeta.md b/rest/flex/v1/docs/FlexV1ChannelReadResponseMeta.md new file mode 100644 index 000000000..d108881ee --- /dev/null +++ b/rest/flex/v1/docs/FlexV1ChannelReadResponseMeta.md @@ -0,0 +1,17 @@ +# FlexV1ChannelReadResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/flex/v1/docs/FlexV1Configuration.md b/rest/flex/v1/docs/FlexV1Configuration.md new file mode 100644 index 000000000..2a40c6092 --- /dev/null +++ b/rest/flex/v1/docs/FlexV1Configuration.md @@ -0,0 +1,47 @@ +# FlexV1Configuration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Attributes** | [**map[string]interface{}**](.md) | | [optional] +**CallRecordingEnabled** | **bool** | | [optional] +**CallRecordingWebhookUrl** | **string** | | [optional] +**ChatServiceInstanceSid** | **string** | | [optional] +**CrmAttributes** | [**map[string]interface{}**](.md) | | [optional] +**CrmCallbackUrl** | **string** | | [optional] +**CrmEnabled** | **bool** | | [optional] +**CrmFallbackUrl** | **string** | | [optional] +**CrmType** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FlexServiceInstanceSid** | **string** | | [optional] +**Integrations** | **[]map[string]interface{}** | | [optional] +**MessagingServiceInstanceSid** | **string** | | [optional] +**OutboundCallFlows** | [**map[string]interface{}**](.md) | | [optional] +**PluginServiceAttributes** | [**map[string]interface{}**](.md) | | [optional] +**PluginServiceEnabled** | **bool** | | [optional] +**PublicAttributes** | [**map[string]interface{}**](.md) | | [optional] +**QueueStatsConfiguration** | [**map[string]interface{}**](.md) | | [optional] +**RuntimeDomain** | **string** | | [optional] +**ServerlessServiceSids** | **[]string** | | [optional] +**ServiceVersion** | **string** | | [optional] +**Status** | **string** | | [optional] +**TaskrouterOfflineActivitySid** | **string** | | [optional] +**TaskrouterSkills** | **[]map[string]interface{}** | | [optional] +**TaskrouterTargetTaskqueueSid** | **string** | | [optional] +**TaskrouterTargetWorkflowSid** | **string** | | [optional] +**TaskrouterTaskqueues** | **[]map[string]interface{}** | | [optional] +**TaskrouterWorkerAttributes** | [**map[string]interface{}**](.md) | | [optional] +**TaskrouterWorkerChannels** | [**map[string]interface{}**](.md) | | [optional] +**TaskrouterWorkspaceSid** | **string** | | [optional] +**UiAttributes** | [**map[string]interface{}**](.md) | | [optional] +**UiDependencies** | [**map[string]interface{}**](.md) | | [optional] +**UiLanguage** | **string** | | [optional] +**UiVersion** | **string** | | [optional] +**Url** | **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/rest/flex/v1/docs/FlexV1FlexFlow.md b/rest/flex/v1/docs/FlexV1FlexFlow.md new file mode 100644 index 000000000..28cde3ba7 --- /dev/null +++ b/rest/flex/v1/docs/FlexV1FlexFlow.md @@ -0,0 +1,24 @@ +# FlexV1FlexFlow + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ChannelType** | **string** | | [optional] +**ChatServiceSid** | **string** | | [optional] +**ContactIdentity** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Enabled** | **bool** | | [optional] +**FriendlyName** | **string** | | [optional] +**Integration** | [**map[string]interface{}**](.md) | | [optional] +**IntegrationType** | **string** | | [optional] +**JanitorEnabled** | **bool** | | [optional] +**LongLived** | **bool** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/flex/v1/docs/FlexV1FlexFlowReadResponse.md b/rest/flex/v1/docs/FlexV1FlexFlowReadResponse.md new file mode 100644 index 000000000..8dd810530 --- /dev/null +++ b/rest/flex/v1/docs/FlexV1FlexFlowReadResponse.md @@ -0,0 +1,12 @@ +# FlexV1FlexFlowReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FlexFlows** | [**[]FlexV1FlexFlow**](flex.v1.flex_flow.md) | | [optional] +**Meta** | [**FlexV1ChannelReadResponseMeta**](flex_v1_channelReadResponse_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/rest/flex/v1/docs/FlexV1WebChannel.md b/rest/flex/v1/docs/FlexV1WebChannel.md new file mode 100644 index 000000000..9c837d41b --- /dev/null +++ b/rest/flex/v1/docs/FlexV1WebChannel.md @@ -0,0 +1,16 @@ +# FlexV1WebChannel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FlexFlowSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/flex/v1/docs/FlexV1WebChannelReadResponse.md b/rest/flex/v1/docs/FlexV1WebChannelReadResponse.md new file mode 100644 index 000000000..8f56658bf --- /dev/null +++ b/rest/flex/v1/docs/FlexV1WebChannelReadResponse.md @@ -0,0 +1,12 @@ +# FlexV1WebChannelReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FlexChatChannels** | [**[]FlexV1WebChannel**](flex.v1.web_channel.md) | | [optional] +**Meta** | [**FlexV1ChannelReadResponseMeta**](flex_v1_channelReadResponse_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/rest/flex/v1/docs/UpdateFlexFlowRequest.md b/rest/flex/v1/docs/UpdateFlexFlowRequest.md new file mode 100644 index 000000000..ee617646a --- /dev/null +++ b/rest/flex/v1/docs/UpdateFlexFlowRequest.md @@ -0,0 +1,27 @@ +# UpdateFlexFlowRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ChannelType** | **string** | The channel type. Can be: `web`, `facebook`, `sms`, `whatsapp`, `line` or `custom`. | [optional] +**ChatServiceSid** | **string** | The SID of the chat service. | [optional] +**ContactIdentity** | **string** | The channel contact's Identity. | [optional] +**Enabled** | **bool** | Whether the new Flex Flow is enabled. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the Flex Flow resource. | [optional] +**IntegrationChannel** | **string** | The Task Channel for the TaskRouter Task that will be created. Applicable and required when integrationType is `task`. Set to `sms` for SMS, and to `chat` otherwise. The default value is `default` | [optional] +**IntegrationCreationOnMessage** | **bool** | In the context of outbound messaging, defines whether to create a Task immediately (and therefore reserve the conversation to current agent), or delay Task creation until the customer sends the first response. Set to false to create immediately, true to delay Task creation. This setting is only applicable for outbound messaging. | [optional] +**IntegrationFlowSid** | **string** | The SID of the Studio Flow. Required when `integrationType` is `studio`. | [optional] +**IntegrationPriority** | **int32** | The Task priority of a new Task. The default priority is 0. Optional when `integrationType` is `task`, not applicable otherwise. | [optional] +**IntegrationRetryCount** | **int32** | The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3 (included), default is 0. Optional when integrationType is `external`, not applicable otherwise. | [optional] +**IntegrationTimeout** | **int32** | The Task timeout in seconds for a new Task. Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`, not applicable otherwise. | [optional] +**IntegrationUrl** | **string** | The URL of the external webhook. Required when `integrationType` is `external`. | [optional] +**IntegrationWorkflowSid** | **string** | The Workflow SID for a new Task. Required when `integrationType` is `task`. | [optional] +**IntegrationWorkspaceSid** | **string** | The Workspace SID for a new Task. Required when `integrationType` is `task`. | [optional] +**IntegrationType** | **string** | The integration type. Can be: `studio`, `external`, or `task`. | [optional] +**JanitorEnabled** | **bool** | When enabled, the Messaging Channel Janitor will remove active Proxy sessions if the associated Task is deleted outside of the Flex UI. Defaults to `false`. | [optional] +**LongLived** | **bool** | When enabled, Flex will keep the chat channel active so that it may be used for subsequent interactions with a contact identity. Defaults to `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/rest/flex/v1/docs/UpdateWebChannelRequest.md b/rest/flex/v1/docs/UpdateWebChannelRequest.md new file mode 100644 index 000000000..0cb122515 --- /dev/null +++ b/rest/flex/v1/docs/UpdateWebChannelRequest.md @@ -0,0 +1,12 @@ +# UpdateWebChannelRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ChatStatus** | **string** | The chat status. Can only be `inactive`. | [optional] +**PostEngagementData** | **string** | The post-engagement data. | [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/rest/flex/v1/model_create_channel_request.go b/rest/flex/v1/model_create_channel_request.go new file mode 100644 index 000000000..baf18f93f --- /dev/null +++ b/rest/flex/v1/model_create_channel_request.go @@ -0,0 +1,34 @@ +/* + * Twilio - Flex + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateChannelRequest struct for CreateChannelRequest +type CreateChannelRequest struct { + // The chat channel's friendly name. + ChatFriendlyName string `json:"ChatFriendlyName"` + // The chat channel's unique name. + ChatUniqueName string `json:"ChatUniqueName,omitempty"` + // The chat participant's friendly name. + ChatUserFriendlyName string `json:"ChatUserFriendlyName"` + // The SID of the Flex Flow. + FlexFlowSid string `json:"FlexFlowSid"` + // The `identity` value that uniquely identifies the new resource's chat User. + Identity string `json:"Identity"` + // Whether to create the channel as long-lived. + LongLived bool `json:"LongLived,omitempty"` + // The pre-engagement data. + PreEngagementData string `json:"PreEngagementData,omitempty"` + // The Target Contact Identity, for example the phone number of an SMS. + Target string `json:"Target,omitempty"` + // The Task attributes to be added for the TaskRouter Task. + TaskAttributes string `json:"TaskAttributes,omitempty"` + // The SID of the TaskRouter Task. Only valid when integration type is `task`. `null` for integration types `studio` & `external` + TaskSid string `json:"TaskSid,omitempty"` +} diff --git a/rest/flex/v1/model_create_flex_flow_request.go b/rest/flex/v1/model_create_flex_flow_request.go new file mode 100644 index 000000000..4dc65d827 --- /dev/null +++ b/rest/flex/v1/model_create_flex_flow_request.go @@ -0,0 +1,48 @@ +/* + * Twilio - Flex + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateFlexFlowRequest struct for CreateFlexFlowRequest +type CreateFlexFlowRequest struct { + // The channel type. Can be: `web`, `facebook`, `sms`, `whatsapp`, `line` or `custom`. + ChannelType string `json:"ChannelType"` + // The SID of the chat service. + ChatServiceSid string `json:"ChatServiceSid"` + // The channel contact's Identity. + ContactIdentity string `json:"ContactIdentity,omitempty"` + // Whether the new Flex Flow is enabled. + Enabled bool `json:"Enabled,omitempty"` + // A descriptive string that you create to describe the Flex Flow resource. + FriendlyName string `json:"FriendlyName"` + // The Task Channel for the TaskRouter Task that will be created. Applicable and required when integrationType is `task`. Set to `sms` for SMS, and to `chat` otherwise. The default value is `default` + IntegrationChannel string `json:"Integration.Channel,omitempty"` + // In the context of outbound messaging, defines whether to create a Task immediately (and therefore reserve the conversation to current agent), or delay Task creation until the customer sends the first response. Set to false to create immediately, true to delay Task creation. This setting is only applicable for outbound messaging. + IntegrationCreationOnMessage bool `json:"Integration.CreationOnMessage,omitempty"` + // The SID of the Studio Flow. Required when `integrationType` is `studio`. + IntegrationFlowSid string `json:"Integration.FlowSid,omitempty"` + // The Task priority of a new Task. The default priority is 0. Optional when `integrationType` is `task`, not applicable otherwise. + IntegrationPriority int32 `json:"Integration.Priority,omitempty"` + // The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3 (included), default is 0. Optional when integrationType is `external`, not applicable otherwise. + IntegrationRetryCount int32 `json:"Integration.RetryCount,omitempty"` + // The Task timeout in seconds for a new Task. Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`, not applicable otherwise. + IntegrationTimeout int32 `json:"Integration.Timeout,omitempty"` + // The URL of the external webhook. Required when `integrationType` is `external`. + IntegrationUrl string `json:"Integration.Url,omitempty"` + // The Workflow SID for a new Task. Required when `integrationType` is `task`. + IntegrationWorkflowSid string `json:"Integration.WorkflowSid,omitempty"` + // The Workspace SID for a new Task. Required when `integrationType` is `task`. + IntegrationWorkspaceSid string `json:"Integration.WorkspaceSid,omitempty"` + // The integration type. Can be: `studio`, `external`, or `task`. + IntegrationType string `json:"IntegrationType,omitempty"` + // When enabled, the Messaging Channel Janitor will remove active Proxy sessions if the associated Task is deleted outside of the Flex UI. Defaults to `false`. + JanitorEnabled bool `json:"JanitorEnabled,omitempty"` + // When enabled, Flex will keep the chat channel active so that it may be used for subsequent interactions with a contact identity. Defaults to `false`. + LongLived bool `json:"LongLived,omitempty"` +} diff --git a/rest/flex/v1/model_create_web_channel_request.go b/rest/flex/v1/model_create_web_channel_request.go new file mode 100644 index 000000000..2bb651ab2 --- /dev/null +++ b/rest/flex/v1/model_create_web_channel_request.go @@ -0,0 +1,26 @@ +/* + * Twilio - Flex + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateWebChannelRequest struct for CreateWebChannelRequest +type CreateWebChannelRequest struct { + // The chat channel's friendly name. + ChatFriendlyName string `json:"ChatFriendlyName"` + // The chat channel's unique name. + ChatUniqueName string `json:"ChatUniqueName,omitempty"` + // The chat participant's friendly name. + CustomerFriendlyName string `json:"CustomerFriendlyName"` + // The SID of the Flex Flow. + FlexFlowSid string `json:"FlexFlowSid"` + // The chat identity. + Identity string `json:"Identity"` + // The pre-engagement data. + PreEngagementData string `json:"PreEngagementData,omitempty"` +} diff --git a/rest/flex/v1/model_flex_v1_channel.go b/rest/flex/v1/model_flex_v1_channel.go new file mode 100644 index 000000000..f47f7e4d9 --- /dev/null +++ b/rest/flex/v1/model_flex_v1_channel.go @@ -0,0 +1,25 @@ +/* + * Twilio - Flex + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// FlexV1Channel struct for FlexV1Channel +type FlexV1Channel struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FlexFlowSid string `json:"flex_flow_sid,omitempty"` + Sid string `json:"sid,omitempty"` + TaskSid string `json:"task_sid,omitempty"` + Url string `json:"url,omitempty"` + UserSid string `json:"user_sid,omitempty"` +} diff --git a/rest/flex/v1/model_flex_v1_channel_read_response.go b/rest/flex/v1/model_flex_v1_channel_read_response.go new file mode 100644 index 000000000..1182fefca --- /dev/null +++ b/rest/flex/v1/model_flex_v1_channel_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Flex + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// FlexV1ChannelReadResponse struct for FlexV1ChannelReadResponse +type FlexV1ChannelReadResponse struct { + FlexChatChannels []FlexV1Channel `json:"flex_chat_channels,omitempty"` + Meta FlexV1ChannelReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/flex/v1/model_flex_v1_channel_read_response_meta.go b/rest/flex/v1/model_flex_v1_channel_read_response_meta.go new file mode 100644 index 000000000..014b9ec81 --- /dev/null +++ b/rest/flex/v1/model_flex_v1_channel_read_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Flex + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// FlexV1ChannelReadResponseMeta struct for FlexV1ChannelReadResponseMeta +type FlexV1ChannelReadResponseMeta struct { + FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` + NextPageUrl string `json:"next_page_url,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUrl string `json:"previous_page_url,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/flex/v1/model_flex_v1_configuration.go b/rest/flex/v1/model_flex_v1_configuration.go new file mode 100644 index 000000000..1ef03c526 --- /dev/null +++ b/rest/flex/v1/model_flex_v1_configuration.go @@ -0,0 +1,54 @@ +/* + * Twilio - Flex + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// FlexV1Configuration struct for FlexV1Configuration +type FlexV1Configuration struct { + AccountSid string `json:"account_sid,omitempty"` + Attributes map[string]interface{} `json:"attributes,omitempty"` + CallRecordingEnabled bool `json:"call_recording_enabled,omitempty"` + CallRecordingWebhookUrl string `json:"call_recording_webhook_url,omitempty"` + ChatServiceInstanceSid string `json:"chat_service_instance_sid,omitempty"` + CrmAttributes map[string]interface{} `json:"crm_attributes,omitempty"` + CrmCallbackUrl string `json:"crm_callback_url,omitempty"` + CrmEnabled bool `json:"crm_enabled,omitempty"` + CrmFallbackUrl string `json:"crm_fallback_url,omitempty"` + CrmType string `json:"crm_type,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FlexServiceInstanceSid string `json:"flex_service_instance_sid,omitempty"` + Integrations []map[string]interface{} `json:"integrations,omitempty"` + MessagingServiceInstanceSid string `json:"messaging_service_instance_sid,omitempty"` + OutboundCallFlows map[string]interface{} `json:"outbound_call_flows,omitempty"` + PluginServiceAttributes map[string]interface{} `json:"plugin_service_attributes,omitempty"` + PluginServiceEnabled bool `json:"plugin_service_enabled,omitempty"` + PublicAttributes map[string]interface{} `json:"public_attributes,omitempty"` + QueueStatsConfiguration map[string]interface{} `json:"queue_stats_configuration,omitempty"` + RuntimeDomain string `json:"runtime_domain,omitempty"` + ServerlessServiceSids []string `json:"serverless_service_sids,omitempty"` + ServiceVersion string `json:"service_version,omitempty"` + Status string `json:"status,omitempty"` + TaskrouterOfflineActivitySid string `json:"taskrouter_offline_activity_sid,omitempty"` + TaskrouterSkills []map[string]interface{} `json:"taskrouter_skills,omitempty"` + TaskrouterTargetTaskqueueSid string `json:"taskrouter_target_taskqueue_sid,omitempty"` + TaskrouterTargetWorkflowSid string `json:"taskrouter_target_workflow_sid,omitempty"` + TaskrouterTaskqueues []map[string]interface{} `json:"taskrouter_taskqueues,omitempty"` + TaskrouterWorkerAttributes map[string]interface{} `json:"taskrouter_worker_attributes,omitempty"` + TaskrouterWorkerChannels map[string]interface{} `json:"taskrouter_worker_channels,omitempty"` + TaskrouterWorkspaceSid string `json:"taskrouter_workspace_sid,omitempty"` + UiAttributes map[string]interface{} `json:"ui_attributes,omitempty"` + UiDependencies map[string]interface{} `json:"ui_dependencies,omitempty"` + UiLanguage string `json:"ui_language,omitempty"` + UiVersion string `json:"ui_version,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/flex/v1/model_flex_v1_flex_flow.go b/rest/flex/v1/model_flex_v1_flex_flow.go new file mode 100644 index 000000000..693b89758 --- /dev/null +++ b/rest/flex/v1/model_flex_v1_flex_flow.go @@ -0,0 +1,31 @@ +/* + * Twilio - Flex + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// FlexV1FlexFlow struct for FlexV1FlexFlow +type FlexV1FlexFlow struct { + AccountSid string `json:"account_sid,omitempty"` + ChannelType string `json:"channel_type,omitempty"` + ChatServiceSid string `json:"chat_service_sid,omitempty"` + ContactIdentity string `json:"contact_identity,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Enabled bool `json:"enabled,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Integration map[string]interface{} `json:"integration,omitempty"` + IntegrationType string `json:"integration_type,omitempty"` + JanitorEnabled bool `json:"janitor_enabled,omitempty"` + LongLived bool `json:"long_lived,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/flex/v1/model_flex_v1_flex_flow_read_response.go b/rest/flex/v1/model_flex_v1_flex_flow_read_response.go new file mode 100644 index 000000000..30da30d84 --- /dev/null +++ b/rest/flex/v1/model_flex_v1_flex_flow_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Flex + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// FlexV1FlexFlowReadResponse struct for FlexV1FlexFlowReadResponse +type FlexV1FlexFlowReadResponse struct { + FlexFlows []FlexV1FlexFlow `json:"flex_flows,omitempty"` + Meta FlexV1ChannelReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/flex/v1/model_flex_v1_web_channel.go b/rest/flex/v1/model_flex_v1_web_channel.go new file mode 100644 index 000000000..f9fe5448a --- /dev/null +++ b/rest/flex/v1/model_flex_v1_web_channel.go @@ -0,0 +1,23 @@ +/* + * Twilio - Flex + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// FlexV1WebChannel struct for FlexV1WebChannel +type FlexV1WebChannel struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FlexFlowSid string `json:"flex_flow_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/flex/v1/model_flex_v1_web_channel_read_response.go b/rest/flex/v1/model_flex_v1_web_channel_read_response.go new file mode 100644 index 000000000..b756403e8 --- /dev/null +++ b/rest/flex/v1/model_flex_v1_web_channel_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Flex + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// FlexV1WebChannelReadResponse struct for FlexV1WebChannelReadResponse +type FlexV1WebChannelReadResponse struct { + FlexChatChannels []FlexV1WebChannel `json:"flex_chat_channels,omitempty"` + Meta FlexV1ChannelReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/flex/v1/model_update_flex_flow_request.go b/rest/flex/v1/model_update_flex_flow_request.go new file mode 100644 index 000000000..365ef376a --- /dev/null +++ b/rest/flex/v1/model_update_flex_flow_request.go @@ -0,0 +1,48 @@ +/* + * Twilio - Flex + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateFlexFlowRequest struct for UpdateFlexFlowRequest +type UpdateFlexFlowRequest struct { + // The channel type. Can be: `web`, `facebook`, `sms`, `whatsapp`, `line` or `custom`. + ChannelType string `json:"ChannelType,omitempty"` + // The SID of the chat service. + ChatServiceSid string `json:"ChatServiceSid,omitempty"` + // The channel contact's Identity. + ContactIdentity string `json:"ContactIdentity,omitempty"` + // Whether the new Flex Flow is enabled. + Enabled bool `json:"Enabled,omitempty"` + // A descriptive string that you create to describe the Flex Flow resource. + FriendlyName string `json:"FriendlyName,omitempty"` + // The Task Channel for the TaskRouter Task that will be created. Applicable and required when integrationType is `task`. Set to `sms` for SMS, and to `chat` otherwise. The default value is `default` + IntegrationChannel string `json:"Integration.Channel,omitempty"` + // In the context of outbound messaging, defines whether to create a Task immediately (and therefore reserve the conversation to current agent), or delay Task creation until the customer sends the first response. Set to false to create immediately, true to delay Task creation. This setting is only applicable for outbound messaging. + IntegrationCreationOnMessage bool `json:"Integration.CreationOnMessage,omitempty"` + // The SID of the Studio Flow. Required when `integrationType` is `studio`. + IntegrationFlowSid string `json:"Integration.FlowSid,omitempty"` + // The Task priority of a new Task. The default priority is 0. Optional when `integrationType` is `task`, not applicable otherwise. + IntegrationPriority int32 `json:"Integration.Priority,omitempty"` + // The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3 (included), default is 0. Optional when integrationType is `external`, not applicable otherwise. + IntegrationRetryCount int32 `json:"Integration.RetryCount,omitempty"` + // The Task timeout in seconds for a new Task. Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`, not applicable otherwise. + IntegrationTimeout int32 `json:"Integration.Timeout,omitempty"` + // The URL of the external webhook. Required when `integrationType` is `external`. + IntegrationUrl string `json:"Integration.Url,omitempty"` + // The Workflow SID for a new Task. Required when `integrationType` is `task`. + IntegrationWorkflowSid string `json:"Integration.WorkflowSid,omitempty"` + // The Workspace SID for a new Task. Required when `integrationType` is `task`. + IntegrationWorkspaceSid string `json:"Integration.WorkspaceSid,omitempty"` + // The integration type. Can be: `studio`, `external`, or `task`. + IntegrationType string `json:"IntegrationType,omitempty"` + // When enabled, the Messaging Channel Janitor will remove active Proxy sessions if the associated Task is deleted outside of the Flex UI. Defaults to `false`. + JanitorEnabled bool `json:"JanitorEnabled,omitempty"` + // When enabled, Flex will keep the chat channel active so that it may be used for subsequent interactions with a contact identity. Defaults to `false`. + LongLived bool `json:"LongLived,omitempty"` +} diff --git a/rest/flex/v1/model_update_web_channel_request.go b/rest/flex/v1/model_update_web_channel_request.go new file mode 100644 index 000000000..468660c70 --- /dev/null +++ b/rest/flex/v1/model_update_web_channel_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Flex + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateWebChannelRequest struct for UpdateWebChannelRequest +type UpdateWebChannelRequest struct { + // The chat status. Can only be `inactive`. + ChatStatus string `json:"ChatStatus,omitempty"` + // The post-engagement data. + PostEngagementData string `json:"PostEngagementData,omitempty"` +} diff --git a/rest/flex/v1/response.go b/rest/flex/v1/response.go new file mode 100644 index 000000000..82ed472aa --- /dev/null +++ b/rest/flex/v1/response.go @@ -0,0 +1,47 @@ +/* + * Twilio - Flex + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// Response returns a new APIResponse object. +func Response(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// ResponseWithError returns a new APIResponse object with the provided error message. +func ResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/rest/insights/v1/.openapi-generator-ignore b/rest/insights/v1/.openapi-generator-ignore new file mode 100644 index 000000000..7484ee590 --- /dev/null +++ b/rest/insights/v1/.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/rest/insights/v1/.openapi-generator/VERSION b/rest/insights/v1/.openapi-generator/VERSION new file mode 100644 index 000000000..ecedc98d1 --- /dev/null +++ b/rest/insights/v1/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.3.1 \ No newline at end of file diff --git a/rest/insights/v1/README.md b/rest/insights/v1/README.md new file mode 100644 index 000000000..562d3f8da --- /dev/null +++ b/rest/insights/v1/README.md @@ -0,0 +1,81 @@ +# Go API client for openapi + +This is the public Twilio REST API. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 5.15.0 +- Package version: 1.0.0 +- Build package: com.twilio.oai.TwilioGoGenerator +For more information, please visit [https://support.twilio.com](https://support.twilio.com) + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import "./openapi" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*CallTagApi* | [**FetchCall**](docs/CallTagApi.md#fetchcall) | **Get** /v1/Voice/{Sid} | +*EventsTagApi* | [**ListEvent**](docs/EventsTagApi.md#listevent) | **Get** /v1/Voice/{CallSid}/Events | +*MetricsTagApi* | [**ListMetric**](docs/MetricsTagApi.md#listmetric) | **Get** /v1/Voice/{CallSid}/Metrics | +*SummaryTagApi* | [**FetchSummary**](docs/SummaryTagApi.md#fetchsummary) | **Get** /v1/Voice/{CallSid}/Summary | +*VideoParticipantSummaryTagApi* | [**FetchVideoParticipantSummary**](docs/VideoParticipantSummaryTagApi.md#fetchvideoparticipantsummary) | **Get** /v1/Video/Rooms/{RoomSid}/Participants/{ParticipantSid} | +*VideoParticipantSummaryTagApi* | [**ListVideoParticipantSummary**](docs/VideoParticipantSummaryTagApi.md#listvideoparticipantsummary) | **Get** /v1/Video/Rooms/{RoomSid}/Participants | +*VideoRoomSummaryTagApi* | [**FetchVideoRoomSummary**](docs/VideoRoomSummaryTagApi.md#fetchvideoroomsummary) | **Get** /v1/Video/Rooms/{RoomSid} | +*VideoRoomSummaryTagApi* | [**ListVideoRoomSummary**](docs/VideoRoomSummaryTagApi.md#listvideoroomsummary) | **Get** /v1/Video/Rooms | + + +## Documentation For Models + + - [InsightsV1Call](docs/InsightsV1Call.md) + - [InsightsV1CallEvent](docs/InsightsV1CallEvent.md) + - [InsightsV1CallEventReadResponse](docs/InsightsV1CallEventReadResponse.md) + - [InsightsV1CallMetric](docs/InsightsV1CallMetric.md) + - [InsightsV1CallMetricReadResponse](docs/InsightsV1CallMetricReadResponse.md) + - [InsightsV1CallSummary](docs/InsightsV1CallSummary.md) + - [InsightsV1VideoRoomSummary](docs/InsightsV1VideoRoomSummary.md) + - [InsightsV1VideoRoomSummaryReadResponse](docs/InsightsV1VideoRoomSummaryReadResponse.md) + - [InsightsV1VideoRoomSummaryReadResponseMeta](docs/InsightsV1VideoRoomSummaryReadResponseMeta.md) + - [InsightsV1VideoRoomSummaryVideoParticipantSummary](docs/InsightsV1VideoRoomSummaryVideoParticipantSummary.md) + - [InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse](docs/InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse.md) + + +## Documentation For Authorization + + + +## accountSid_authToken + +- **Type**: HTTP basic authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ + UserName: "username", + Password: "password", +}) +r, err := client.Service.Operation(auth, args) +``` + + +## Author + +support@twilio.com + diff --git a/rest/insights/v1/api_call_tag.go b/rest/insights/v1/api_call_tag.go new file mode 100644 index 000000000..e90db91aa --- /dev/null +++ b/rest/insights/v1/api_call_tag.go @@ -0,0 +1,60 @@ +/* + * Twilio - Insights + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" +) + +type CallTagApiService struct { + baseURL string + client *twilio.Client +} + +func NewCallTagApiService(client *twilio.Client) *CallTagApiService { + return &CallTagApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} + +/* +FetchCall Method for FetchCall + * @param sid +@return InsightsV1Call +*/ +func (c *CallTagApiService) FetchCall(sid string) (*InsightsV1Call, error) { + path := "/v1/Voice/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &InsightsV1Call{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/insights/v1/api_events_tag.go b/rest/insights/v1/api_events_tag.go new file mode 100644 index 000000000..830444653 --- /dev/null +++ b/rest/insights/v1/api_events_tag.go @@ -0,0 +1,75 @@ +/* + * Twilio - Insights + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "" +) + +type EventsTagApiService struct { + baseURL string + client *twilio.Client +} + +func NewEventsTagApiService(client *twilio.Client) *EventsTagApiService { + return &EventsTagApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} +// ListEventParams Optional parameters for the method 'ListEvent' +type ListEventParams struct { + Edge *string `json:"Edge,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListEvent Method for ListEvent + * @param callSid + * @param optional nil or *ListEventOpts - Optional Parameters: + * @param "Edge" (string) - + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return InsightsV1CallEventReadResponse +*/ +func (c *EventsTagApiService) ListEvent(callSid string, params *ListEventParams) (*InsightsV1CallEventReadResponse, error) { + path := "/v1/Voice/{CallSid}/Events" + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Edge != nil { + data.Set("Edge", *params.Edge) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &InsightsV1CallEventReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/insights/v1/api_metrics_tag.go b/rest/insights/v1/api_metrics_tag.go new file mode 100644 index 000000000..a2bf60022 --- /dev/null +++ b/rest/insights/v1/api_metrics_tag.go @@ -0,0 +1,80 @@ +/* + * Twilio - Insights + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "" +) + +type MetricsTagApiService struct { + baseURL string + client *twilio.Client +} + +func NewMetricsTagApiService(client *twilio.Client) *MetricsTagApiService { + return &MetricsTagApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} +// ListMetricParams Optional parameters for the method 'ListMetric' +type ListMetricParams struct { + Edge *string `json:"Edge,omitempty"` + Direction *string `json:"Direction,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListMetric Method for ListMetric + * @param callSid + * @param optional nil or *ListMetricOpts - Optional Parameters: + * @param "Edge" (string) - + * @param "Direction" (string) - + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return InsightsV1CallMetricReadResponse +*/ +func (c *MetricsTagApiService) ListMetric(callSid string, params *ListMetricParams) (*InsightsV1CallMetricReadResponse, error) { + path := "/v1/Voice/{CallSid}/Metrics" + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Edge != nil { + data.Set("Edge", *params.Edge) + } + if params != nil && params.Direction != nil { + data.Set("Direction", *params.Direction) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &InsightsV1CallMetricReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/insights/v1/api_summary_tag.go b/rest/insights/v1/api_summary_tag.go new file mode 100644 index 000000000..f1a484b5c --- /dev/null +++ b/rest/insights/v1/api_summary_tag.go @@ -0,0 +1,70 @@ +/* + * Twilio - Insights + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "" +) + +type SummaryTagApiService struct { + baseURL string + client *twilio.Client +} + +func NewSummaryTagApiService(client *twilio.Client) *SummaryTagApiService { + return &SummaryTagApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} +// FetchSummaryParams Optional parameters for the method 'FetchSummary' +type FetchSummaryParams struct { + ProcessingState *string `json:"ProcessingState,omitempty"` +} + +/* +FetchSummary Method for FetchSummary + * @param callSid + * @param optional nil or *FetchSummaryOpts - Optional Parameters: + * @param "ProcessingState" (string) - +@return InsightsV1CallSummary +*/ +func (c *SummaryTagApiService) FetchSummary(callSid string, params *FetchSummaryParams) (*InsightsV1CallSummary, error) { + path := "/v1/Voice/{CallSid}/Summary" + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ProcessingState != nil { + data.Set("ProcessingState", *params.ProcessingState) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &InsightsV1CallSummary{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/insights/v1/api_video_participant_summary_tag.go b/rest/insights/v1/api_video_participant_summary_tag.go new file mode 100644 index 000000000..49121e847 --- /dev/null +++ b/rest/insights/v1/api_video_participant_summary_tag.go @@ -0,0 +1,101 @@ +/* + * Twilio - Insights + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "" +) + +type VideoParticipantSummaryTagApiService struct { + baseURL string + client *twilio.Client +} + +func NewVideoParticipantSummaryTagApiService(client *twilio.Client) *VideoParticipantSummaryTagApiService { + return &VideoParticipantSummaryTagApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} + +/* +FetchVideoParticipantSummary Method for FetchVideoParticipantSummary + * @param roomSid + * @param participantSid +@return InsightsV1VideoRoomSummaryVideoParticipantSummary +*/ +func (c *VideoParticipantSummaryTagApiService) FetchVideoParticipantSummary(roomSid string, participantSid string) (*InsightsV1VideoRoomSummaryVideoParticipantSummary, error) { + path := "/v1/Video/Rooms/{RoomSid}/Participants/{ParticipantSid}" + path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &InsightsV1VideoRoomSummaryVideoParticipantSummary{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListVideoParticipantSummaryParams Optional parameters for the method 'ListVideoParticipantSummary' +type ListVideoParticipantSummaryParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListVideoParticipantSummary Method for ListVideoParticipantSummary + * @param roomSid + * @param optional nil or *ListVideoParticipantSummaryOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse +*/ +func (c *VideoParticipantSummaryTagApiService) ListVideoParticipantSummary(roomSid string, params *ListVideoParticipantSummaryParams) (*InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse, error) { + path := "/v1/Video/Rooms/{RoomSid}/Participants" + path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/insights/v1/api_video_room_summary_tag.go b/rest/insights/v1/api_video_room_summary_tag.go new file mode 100644 index 000000000..7c6882106 --- /dev/null +++ b/rest/insights/v1/api_video_room_summary_tag.go @@ -0,0 +1,123 @@ +/* + * Twilio - Insights + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "reflect" + "" +) + +type VideoRoomSummaryTagApiService struct { + baseURL string + client *twilio.Client +} + +func NewVideoRoomSummaryTagApiService(client *twilio.Client) *VideoRoomSummaryTagApiService { + return &VideoRoomSummaryTagApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} + +/* +FetchVideoRoomSummary Method for FetchVideoRoomSummary + * @param roomSid +@return InsightsV1VideoRoomSummary +*/ +func (c *VideoRoomSummaryTagApiService) FetchVideoRoomSummary(roomSid string) (*InsightsV1VideoRoomSummary, error) { + path := "/v1/Video/Rooms/{RoomSid}" + path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &InsightsV1VideoRoomSummary{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListVideoRoomSummaryParams Optional parameters for the method 'ListVideoRoomSummary' +type ListVideoRoomSummaryParams struct { + RoomType *[]string `json:"RoomType,omitempty"` + Codec *[]string `json:"Codec,omitempty"` + RoomName *string `json:"RoomName,omitempty"` + CreatedAfter *time.Time `json:"CreatedAfter,omitempty"` + CreatedBefore *time.Time `json:"CreatedBefore,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListVideoRoomSummary Method for ListVideoRoomSummary + * @param optional nil or *ListVideoRoomSummaryOpts - Optional Parameters: + * @param "RoomType" ([]string) - + * @param "Codec" ([]string) - + * @param "RoomName" (string) - + * @param "CreatedAfter" (time.Time) - + * @param "CreatedBefore" (time.Time) - + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return InsightsV1VideoRoomSummaryReadResponse +*/ +func (c *VideoRoomSummaryTagApiService) ListVideoRoomSummary(params *ListVideoRoomSummaryParams) (*InsightsV1VideoRoomSummaryReadResponse, error) { + path := "/v1/Video/Rooms" + + data := url.Values{} + headers := 0 + + if params != nil && params.RoomType != nil { + data.Set("RoomType", string(*params.RoomType)) + } + if params != nil && params.Codec != nil { + data.Set("Codec", string(*params.Codec)) + } + if params != nil && params.RoomName != nil { + data.Set("RoomName", *params.RoomName) + } + if params != nil && params.CreatedAfter != nil { + data.Set("CreatedAfter", string(*params.CreatedAfter)) + } + if params != nil && params.CreatedBefore != nil { + data.Set("CreatedBefore", string(*params.CreatedBefore)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &InsightsV1VideoRoomSummaryReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/insights/v1/docs/CallTagApi.md b/rest/insights/v1/docs/CallTagApi.md new file mode 100644 index 000000000..620924ed0 --- /dev/null +++ b/rest/insights/v1/docs/CallTagApi.md @@ -0,0 +1,41 @@ +# \CallTagApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**FetchCall**](CallTagApi.md#FetchCall) | **Get** /v1/Voice/{Sid} | + + + +## FetchCall + +> InsightsV1Call FetchCall(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| | + +### Return type + +[**InsightsV1Call**](insights.v1.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) + diff --git a/rest/insights/v1/docs/EventsTagApi.md b/rest/insights/v1/docs/EventsTagApi.md new file mode 100644 index 000000000..5969e87e6 --- /dev/null +++ b/rest/insights/v1/docs/EventsTagApi.md @@ -0,0 +1,53 @@ +# \EventsTagApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ListEvent**](EventsTagApi.md#ListEvent) | **Get** /v1/Voice/{CallSid}/Events | + + + +## ListEvent + +> InsightsV1CallEventReadResponse ListEvent(ctx, callSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**callSid** | **string**| | + **optional** | ***ListEventOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListEventOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **edge** | **optional.String**| | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**InsightsV1CallEventReadResponse**](insights_v1_call_eventReadResponse.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/rest/insights/v1/docs/InsightsV1Call.md b/rest/insights/v1/docs/InsightsV1Call.md new file mode 100644 index 000000000..cc5182163 --- /dev/null +++ b/rest/insights/v1/docs/InsightsV1Call.md @@ -0,0 +1,13 @@ +# InsightsV1Call + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/insights/v1/docs/InsightsV1CallEvent.md b/rest/insights/v1/docs/InsightsV1CallEvent.md new file mode 100644 index 000000000..d8483073b --- /dev/null +++ b/rest/insights/v1/docs/InsightsV1CallEvent.md @@ -0,0 +1,21 @@ +# InsightsV1CallEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**CallSid** | **string** | | [optional] +**CarrierEdge** | [**map[string]interface{}**](.md) | | [optional] +**ClientEdge** | [**map[string]interface{}**](.md) | | [optional] +**Edge** | **string** | | [optional] +**Group** | **string** | | [optional] +**Level** | **string** | | [optional] +**Name** | **string** | | [optional] +**SdkEdge** | [**map[string]interface{}**](.md) | | [optional] +**SipEdge** | [**map[string]interface{}**](.md) | | [optional] +**Timestamp** | **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/rest/insights/v1/docs/InsightsV1CallEventReadResponse.md b/rest/insights/v1/docs/InsightsV1CallEventReadResponse.md new file mode 100644 index 000000000..a84f06bd9 --- /dev/null +++ b/rest/insights/v1/docs/InsightsV1CallEventReadResponse.md @@ -0,0 +1,12 @@ +# InsightsV1CallEventReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Events** | [**[]InsightsV1CallEvent**](insights.v1.call.event.md) | | [optional] +**Meta** | [**InsightsV1VideoRoomSummaryReadResponseMeta**](insights_v1_video_room_summaryReadResponse_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/rest/insights/v1/docs/InsightsV1CallMetric.md b/rest/insights/v1/docs/InsightsV1CallMetric.md new file mode 100644 index 000000000..1f0f7feea --- /dev/null +++ b/rest/insights/v1/docs/InsightsV1CallMetric.md @@ -0,0 +1,19 @@ +# InsightsV1CallMetric + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**CallSid** | **string** | | [optional] +**CarrierEdge** | [**map[string]interface{}**](.md) | | [optional] +**ClientEdge** | [**map[string]interface{}**](.md) | | [optional] +**Direction** | **string** | | [optional] +**Edge** | **string** | | [optional] +**SdkEdge** | [**map[string]interface{}**](.md) | | [optional] +**SipEdge** | [**map[string]interface{}**](.md) | | [optional] +**Timestamp** | **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/rest/insights/v1/docs/InsightsV1CallMetricReadResponse.md b/rest/insights/v1/docs/InsightsV1CallMetricReadResponse.md new file mode 100644 index 000000000..436d6b534 --- /dev/null +++ b/rest/insights/v1/docs/InsightsV1CallMetricReadResponse.md @@ -0,0 +1,12 @@ +# InsightsV1CallMetricReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**InsightsV1VideoRoomSummaryReadResponseMeta**](insights_v1_video_room_summaryReadResponse_meta.md) | | [optional] +**Metrics** | [**[]InsightsV1CallMetric**](insights.v1.call.metric.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/rest/insights/v1/docs/InsightsV1CallSummary.md b/rest/insights/v1/docs/InsightsV1CallSummary.md new file mode 100644 index 000000000..dd570eb83 --- /dev/null +++ b/rest/insights/v1/docs/InsightsV1CallSummary.md @@ -0,0 +1,30 @@ +# InsightsV1CallSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Attributes** | [**map[string]interface{}**](.md) | | [optional] +**CallSid** | **string** | | [optional] +**CallState** | **string** | | [optional] +**CallType** | **string** | | [optional] +**CarrierEdge** | [**map[string]interface{}**](.md) | | [optional] +**ClientEdge** | [**map[string]interface{}**](.md) | | [optional] +**ConnectDuration** | Pointer to **int32** | | [optional] +**Duration** | Pointer to **int32** | | [optional] +**EndTime** | [**time.Time**](time.Time.md) | | [optional] +**From** | [**map[string]interface{}**](.md) | | [optional] +**ProcessingState** | **string** | | [optional] +**Properties** | [**map[string]interface{}**](.md) | | [optional] +**SdkEdge** | [**map[string]interface{}**](.md) | | [optional] +**SipEdge** | [**map[string]interface{}**](.md) | | [optional] +**StartTime** | [**time.Time**](time.Time.md) | | [optional] +**Tags** | **[]string** | | [optional] +**To** | [**map[string]interface{}**](.md) | | [optional] +**Trust** | [**map[string]interface{}**](.md) | | [optional] +**Url** | **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/rest/insights/v1/docs/InsightsV1VideoRoomSummary.md b/rest/insights/v1/docs/InsightsV1VideoRoomSummary.md new file mode 100644 index 000000000..ccbb4979b --- /dev/null +++ b/rest/insights/v1/docs/InsightsV1VideoRoomSummary.md @@ -0,0 +1,36 @@ +# InsightsV1VideoRoomSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Codecs** | **[]string** | | [optional] +**ConcurrentParticipants** | Pointer to **int32** | | [optional] +**CreateTime** | [**time.Time**](time.Time.md) | | [optional] +**CreatedMethod** | **string** | | [optional] +**DurationSec** | **int32** | | [optional] +**EdgeLocation** | **string** | | [optional] +**EndReason** | **string** | | [optional] +**EndTime** | [**time.Time**](time.Time.md) | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**MaxConcurrentParticipants** | Pointer to **int32** | | [optional] +**MaxParticipants** | Pointer to **int32** | | [optional] +**MediaRegion** | **string** | | [optional] +**ProcessingState** | **string** | | [optional] +**RecordingEnabled** | **bool** | | [optional] +**RoomName** | **string** | | [optional] +**RoomSid** | **string** | | [optional] +**RoomStatus** | **string** | | [optional] +**RoomType** | **string** | | [optional] +**StatusCallback** | **string** | | [optional] +**StatusCallbackMethod** | **string** | | [optional] +**TotalParticipantDurationSec** | **int32** | | [optional] +**TotalRecordingDurationSec** | **int32** | | [optional] +**UniqueParticipantIdentities** | Pointer to **int32** | | [optional] +**UniqueParticipants** | Pointer to **int32** | | [optional] +**Url** | **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/rest/insights/v1/docs/InsightsV1VideoRoomSummaryReadResponse.md b/rest/insights/v1/docs/InsightsV1VideoRoomSummaryReadResponse.md new file mode 100644 index 000000000..3a2466eb5 --- /dev/null +++ b/rest/insights/v1/docs/InsightsV1VideoRoomSummaryReadResponse.md @@ -0,0 +1,12 @@ +# InsightsV1VideoRoomSummaryReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**InsightsV1VideoRoomSummaryReadResponseMeta**](insights_v1_video_room_summaryReadResponse_meta.md) | | [optional] +**Rooms** | [**[]InsightsV1VideoRoomSummary**](insights.v1.video_room_summary.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/rest/insights/v1/docs/InsightsV1VideoRoomSummaryReadResponseMeta.md b/rest/insights/v1/docs/InsightsV1VideoRoomSummaryReadResponseMeta.md new file mode 100644 index 000000000..2661ab57e --- /dev/null +++ b/rest/insights/v1/docs/InsightsV1VideoRoomSummaryReadResponseMeta.md @@ -0,0 +1,17 @@ +# InsightsV1VideoRoomSummaryReadResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/insights/v1/docs/InsightsV1VideoRoomSummaryVideoParticipantSummary.md b/rest/insights/v1/docs/InsightsV1VideoRoomSummaryVideoParticipantSummary.md new file mode 100644 index 000000000..586f26b45 --- /dev/null +++ b/rest/insights/v1/docs/InsightsV1VideoRoomSummaryVideoParticipantSummary.md @@ -0,0 +1,27 @@ +# InsightsV1VideoRoomSummaryVideoParticipantSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Codecs** | **[]string** | | [optional] +**DurationSec** | **int32** | | [optional] +**EdgeLocation** | **string** | | [optional] +**EndReason** | **string** | | [optional] +**ErrorCode** | Pointer to **int32** | | [optional] +**ErrorCodeUrl** | **string** | | [optional] +**JoinTime** | [**time.Time**](time.Time.md) | | [optional] +**LeaveTime** | [**time.Time**](time.Time.md) | | [optional] +**MediaRegion** | **string** | | [optional] +**ParticipantIdentity** | **string** | | [optional] +**ParticipantSid** | **string** | | [optional] +**Properties** | [**map[string]interface{}**](.md) | | [optional] +**PublisherInfo** | [**map[string]interface{}**](.md) | | [optional] +**RoomSid** | **string** | | [optional] +**Status** | **string** | | [optional] +**Url** | **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/rest/insights/v1/docs/InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse.md b/rest/insights/v1/docs/InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse.md new file mode 100644 index 000000000..dfbf4c490 --- /dev/null +++ b/rest/insights/v1/docs/InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse.md @@ -0,0 +1,12 @@ +# InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**InsightsV1VideoRoomSummaryReadResponseMeta**](insights_v1_video_room_summaryReadResponse_meta.md) | | [optional] +**Participants** | [**[]InsightsV1VideoRoomSummaryVideoParticipantSummary**](insights.v1.video_room_summary.video_participant_summary.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/rest/insights/v1/docs/MetricsTagApi.md b/rest/insights/v1/docs/MetricsTagApi.md new file mode 100644 index 000000000..bd6031954 --- /dev/null +++ b/rest/insights/v1/docs/MetricsTagApi.md @@ -0,0 +1,54 @@ +# \MetricsTagApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ListMetric**](MetricsTagApi.md#ListMetric) | **Get** /v1/Voice/{CallSid}/Metrics | + + + +## ListMetric + +> InsightsV1CallMetricReadResponse ListMetric(ctx, callSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**callSid** | **string**| | + **optional** | ***ListMetricOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListMetricOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **edge** | **optional.String**| | + **direction** | **optional.String**| | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**InsightsV1CallMetricReadResponse**](insights_v1_call_metricReadResponse.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/rest/insights/v1/docs/SummaryTagApi.md b/rest/insights/v1/docs/SummaryTagApi.md new file mode 100644 index 000000000..e455ea7de --- /dev/null +++ b/rest/insights/v1/docs/SummaryTagApi.md @@ -0,0 +1,52 @@ +# \SummaryTagApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**FetchSummary**](SummaryTagApi.md#FetchSummary) | **Get** /v1/Voice/{CallSid}/Summary | + + + +## FetchSummary + +> InsightsV1CallSummary FetchSummary(ctx, callSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**callSid** | **string**| | + **optional** | ***FetchSummaryOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a FetchSummaryOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **processingState** | **optional.String**| | + +### Return type + +[**InsightsV1CallSummary**](insights.v1.call.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) + diff --git a/rest/insights/v1/docs/VideoParticipantSummaryTagApi.md b/rest/insights/v1/docs/VideoParticipantSummaryTagApi.md new file mode 100644 index 000000000..945e95202 --- /dev/null +++ b/rest/insights/v1/docs/VideoParticipantSummaryTagApi.md @@ -0,0 +1,86 @@ +# \VideoParticipantSummaryTagApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**FetchVideoParticipantSummary**](VideoParticipantSummaryTagApi.md#FetchVideoParticipantSummary) | **Get** /v1/Video/Rooms/{RoomSid}/Participants/{ParticipantSid} | +[**ListVideoParticipantSummary**](VideoParticipantSummaryTagApi.md#ListVideoParticipantSummary) | **Get** /v1/Video/Rooms/{RoomSid}/Participants | + + + +## FetchVideoParticipantSummary + +> InsightsV1VideoRoomSummaryVideoParticipantSummary FetchVideoParticipantSummary(ctx, roomSid, participantSid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**roomSid** | **string**| | +**participantSid** | **string**| | + +### Return type + +[**InsightsV1VideoRoomSummaryVideoParticipantSummary**](insights.v1.video_room_summary.video_participant_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) + + +## ListVideoParticipantSummary + +> InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse ListVideoParticipantSummary(ctx, roomSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**roomSid** | **string**| | + **optional** | ***ListVideoParticipantSummaryOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListVideoParticipantSummaryOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse**](insights_v1_video_room_summary_video_participant_summaryReadResponse.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/rest/insights/v1/docs/VideoRoomSummaryTagApi.md b/rest/insights/v1/docs/VideoRoomSummaryTagApi.md new file mode 100644 index 000000000..74709bef8 --- /dev/null +++ b/rest/insights/v1/docs/VideoRoomSummaryTagApi.md @@ -0,0 +1,88 @@ +# \VideoRoomSummaryTagApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**FetchVideoRoomSummary**](VideoRoomSummaryTagApi.md#FetchVideoRoomSummary) | **Get** /v1/Video/Rooms/{RoomSid} | +[**ListVideoRoomSummary**](VideoRoomSummaryTagApi.md#ListVideoRoomSummary) | **Get** /v1/Video/Rooms | + + + +## FetchVideoRoomSummary + +> InsightsV1VideoRoomSummary FetchVideoRoomSummary(ctx, roomSid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**roomSid** | **string**| | + +### Return type + +[**InsightsV1VideoRoomSummary**](insights.v1.video_room_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) + + +## ListVideoRoomSummary + +> InsightsV1VideoRoomSummaryReadResponse ListVideoRoomSummary(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListVideoRoomSummaryOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListVideoRoomSummaryOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **roomType** | [**optional.Interface of []string**](string.md)| | + **codec** | [**optional.Interface of []string**](string.md)| | + **roomName** | **optional.String**| | + **createdAfter** | **optional.Time**| | + **createdBefore** | **optional.Time**| | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**InsightsV1VideoRoomSummaryReadResponse**](insights_v1_video_room_summaryReadResponse.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/rest/insights/v1/model_insights_v1_call.go b/rest/insights/v1/model_insights_v1_call.go new file mode 100644 index 000000000..2b3ee9356 --- /dev/null +++ b/rest/insights/v1/model_insights_v1_call.go @@ -0,0 +1,17 @@ +/* + * Twilio - Insights + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// InsightsV1Call struct for InsightsV1Call +type InsightsV1Call struct { + Links map[string]interface{} `json:"links,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/insights/v1/model_insights_v1_call_event.go b/rest/insights/v1/model_insights_v1_call_event.go new file mode 100644 index 000000000..bda8166e8 --- /dev/null +++ b/rest/insights/v1/model_insights_v1_call_event.go @@ -0,0 +1,25 @@ +/* + * Twilio - Insights + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// InsightsV1CallEvent struct for InsightsV1CallEvent +type InsightsV1CallEvent struct { + AccountSid string `json:"account_sid,omitempty"` + CallSid string `json:"call_sid,omitempty"` + CarrierEdge map[string]interface{} `json:"carrier_edge,omitempty"` + ClientEdge map[string]interface{} `json:"client_edge,omitempty"` + Edge string `json:"edge,omitempty"` + Group string `json:"group,omitempty"` + Level string `json:"level,omitempty"` + Name string `json:"name,omitempty"` + SdkEdge map[string]interface{} `json:"sdk_edge,omitempty"` + SipEdge map[string]interface{} `json:"sip_edge,omitempty"` + Timestamp string `json:"timestamp,omitempty"` +} diff --git a/rest/insights/v1/model_insights_v1_call_event_read_response.go b/rest/insights/v1/model_insights_v1_call_event_read_response.go new file mode 100644 index 000000000..aa6d45c69 --- /dev/null +++ b/rest/insights/v1/model_insights_v1_call_event_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Insights + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// InsightsV1CallEventReadResponse struct for InsightsV1CallEventReadResponse +type InsightsV1CallEventReadResponse struct { + Events []InsightsV1CallEvent `json:"events,omitempty"` + Meta InsightsV1VideoRoomSummaryReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/insights/v1/model_insights_v1_call_metric.go b/rest/insights/v1/model_insights_v1_call_metric.go new file mode 100644 index 000000000..b24c31df8 --- /dev/null +++ b/rest/insights/v1/model_insights_v1_call_metric.go @@ -0,0 +1,23 @@ +/* + * Twilio - Insights + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// InsightsV1CallMetric struct for InsightsV1CallMetric +type InsightsV1CallMetric struct { + AccountSid string `json:"account_sid,omitempty"` + CallSid string `json:"call_sid,omitempty"` + CarrierEdge map[string]interface{} `json:"carrier_edge,omitempty"` + ClientEdge map[string]interface{} `json:"client_edge,omitempty"` + Direction string `json:"direction,omitempty"` + Edge string `json:"edge,omitempty"` + SdkEdge map[string]interface{} `json:"sdk_edge,omitempty"` + SipEdge map[string]interface{} `json:"sip_edge,omitempty"` + Timestamp string `json:"timestamp,omitempty"` +} diff --git a/rest/insights/v1/model_insights_v1_call_metric_read_response.go b/rest/insights/v1/model_insights_v1_call_metric_read_response.go new file mode 100644 index 000000000..622477e3b --- /dev/null +++ b/rest/insights/v1/model_insights_v1_call_metric_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Insights + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// InsightsV1CallMetricReadResponse struct for InsightsV1CallMetricReadResponse +type InsightsV1CallMetricReadResponse struct { + Meta InsightsV1VideoRoomSummaryReadResponseMeta `json:"meta,omitempty"` + Metrics []InsightsV1CallMetric `json:"metrics,omitempty"` +} diff --git a/rest/insights/v1/model_insights_v1_call_summary.go b/rest/insights/v1/model_insights_v1_call_summary.go new file mode 100644 index 000000000..9bd282425 --- /dev/null +++ b/rest/insights/v1/model_insights_v1_call_summary.go @@ -0,0 +1,37 @@ +/* + * Twilio - Insights + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// InsightsV1CallSummary struct for InsightsV1CallSummary +type InsightsV1CallSummary struct { + AccountSid string `json:"account_sid,omitempty"` + Attributes map[string]interface{} `json:"attributes,omitempty"` + CallSid string `json:"call_sid,omitempty"` + CallState string `json:"call_state,omitempty"` + CallType string `json:"call_type,omitempty"` + CarrierEdge map[string]interface{} `json:"carrier_edge,omitempty"` + ClientEdge map[string]interface{} `json:"client_edge,omitempty"` + ConnectDuration *int32 `json:"connect_duration,omitempty"` + Duration *int32 `json:"duration,omitempty"` + EndTime time.Time `json:"end_time,omitempty"` + From map[string]interface{} `json:"from,omitempty"` + ProcessingState string `json:"processing_state,omitempty"` + Properties map[string]interface{} `json:"properties,omitempty"` + SdkEdge map[string]interface{} `json:"sdk_edge,omitempty"` + SipEdge map[string]interface{} `json:"sip_edge,omitempty"` + StartTime time.Time `json:"start_time,omitempty"` + Tags []string `json:"tags,omitempty"` + To map[string]interface{} `json:"to,omitempty"` + Trust map[string]interface{} `json:"trust,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/insights/v1/model_insights_v1_video_room_summary.go b/rest/insights/v1/model_insights_v1_video_room_summary.go new file mode 100644 index 000000000..040e114fe --- /dev/null +++ b/rest/insights/v1/model_insights_v1_video_room_summary.go @@ -0,0 +1,43 @@ +/* + * Twilio - Insights + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// InsightsV1VideoRoomSummary struct for InsightsV1VideoRoomSummary +type InsightsV1VideoRoomSummary struct { + AccountSid string `json:"account_sid,omitempty"` + Codecs []string `json:"codecs,omitempty"` + ConcurrentParticipants *int32 `json:"concurrent_participants,omitempty"` + CreateTime time.Time `json:"create_time,omitempty"` + CreatedMethod string `json:"created_method,omitempty"` + DurationSec int32 `json:"duration_sec,omitempty"` + EdgeLocation string `json:"edge_location,omitempty"` + EndReason string `json:"end_reason,omitempty"` + EndTime time.Time `json:"end_time,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + MaxConcurrentParticipants *int32 `json:"max_concurrent_participants,omitempty"` + MaxParticipants *int32 `json:"max_participants,omitempty"` + MediaRegion string `json:"media_region,omitempty"` + ProcessingState string `json:"processing_state,omitempty"` + RecordingEnabled bool `json:"recording_enabled,omitempty"` + RoomName string `json:"room_name,omitempty"` + RoomSid string `json:"room_sid,omitempty"` + RoomStatus string `json:"room_status,omitempty"` + RoomType string `json:"room_type,omitempty"` + StatusCallback string `json:"status_callback,omitempty"` + StatusCallbackMethod string `json:"status_callback_method,omitempty"` + TotalParticipantDurationSec int32 `json:"total_participant_duration_sec,omitempty"` + TotalRecordingDurationSec int32 `json:"total_recording_duration_sec,omitempty"` + UniqueParticipantIdentities *int32 `json:"unique_participant_identities,omitempty"` + UniqueParticipants *int32 `json:"unique_participants,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/insights/v1/model_insights_v1_video_room_summary_read_response.go b/rest/insights/v1/model_insights_v1_video_room_summary_read_response.go new file mode 100644 index 000000000..cf1728d89 --- /dev/null +++ b/rest/insights/v1/model_insights_v1_video_room_summary_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Insights + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// InsightsV1VideoRoomSummaryReadResponse struct for InsightsV1VideoRoomSummaryReadResponse +type InsightsV1VideoRoomSummaryReadResponse struct { + Meta InsightsV1VideoRoomSummaryReadResponseMeta `json:"meta,omitempty"` + Rooms []InsightsV1VideoRoomSummary `json:"rooms,omitempty"` +} diff --git a/rest/insights/v1/model_insights_v1_video_room_summary_read_response_meta.go b/rest/insights/v1/model_insights_v1_video_room_summary_read_response_meta.go new file mode 100644 index 000000000..7eb74d3f3 --- /dev/null +++ b/rest/insights/v1/model_insights_v1_video_room_summary_read_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Insights + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// InsightsV1VideoRoomSummaryReadResponseMeta struct for InsightsV1VideoRoomSummaryReadResponseMeta +type InsightsV1VideoRoomSummaryReadResponseMeta struct { + FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` + NextPageUrl string `json:"next_page_url,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUrl string `json:"previous_page_url,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/insights/v1/model_insights_v1_video_room_summary_video_participant_summary.go b/rest/insights/v1/model_insights_v1_video_room_summary_video_participant_summary.go new file mode 100644 index 000000000..aff3ce355 --- /dev/null +++ b/rest/insights/v1/model_insights_v1_video_room_summary_video_participant_summary.go @@ -0,0 +1,34 @@ +/* + * Twilio - Insights + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// InsightsV1VideoRoomSummaryVideoParticipantSummary struct for InsightsV1VideoRoomSummaryVideoParticipantSummary +type InsightsV1VideoRoomSummaryVideoParticipantSummary struct { + AccountSid string `json:"account_sid,omitempty"` + Codecs []string `json:"codecs,omitempty"` + DurationSec int32 `json:"duration_sec,omitempty"` + EdgeLocation string `json:"edge_location,omitempty"` + EndReason string `json:"end_reason,omitempty"` + ErrorCode *int32 `json:"error_code,omitempty"` + ErrorCodeUrl string `json:"error_code_url,omitempty"` + JoinTime time.Time `json:"join_time,omitempty"` + LeaveTime time.Time `json:"leave_time,omitempty"` + MediaRegion string `json:"media_region,omitempty"` + ParticipantIdentity string `json:"participant_identity,omitempty"` + ParticipantSid string `json:"participant_sid,omitempty"` + Properties map[string]interface{} `json:"properties,omitempty"` + PublisherInfo map[string]interface{} `json:"publisher_info,omitempty"` + RoomSid string `json:"room_sid,omitempty"` + Status string `json:"status,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/insights/v1/model_insights_v1_video_room_summary_video_participant_summary_read_response.go b/rest/insights/v1/model_insights_v1_video_room_summary_video_participant_summary_read_response.go new file mode 100644 index 000000000..80fadaf50 --- /dev/null +++ b/rest/insights/v1/model_insights_v1_video_room_summary_video_participant_summary_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Insights + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse struct for InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse +type InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse struct { + Meta InsightsV1VideoRoomSummaryReadResponseMeta `json:"meta,omitempty"` + Participants []InsightsV1VideoRoomSummaryVideoParticipantSummary `json:"participants,omitempty"` +} diff --git a/rest/insights/v1/response.go b/rest/insights/v1/response.go new file mode 100644 index 000000000..7d40d08d9 --- /dev/null +++ b/rest/insights/v1/response.go @@ -0,0 +1,47 @@ +/* + * Twilio - Insights + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// Response returns a new APIResponse object. +func Response(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// ResponseWithError returns a new APIResponse object with the provided error message. +func ResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/rest/ip/messaging/.openapi-generator-ignore b/rest/ip/messaging/.openapi-generator-ignore new file mode 100644 index 000000000..7484ee590 --- /dev/null +++ b/rest/ip/messaging/.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/rest/ip/messaging/.openapi-generator/VERSION b/rest/ip/messaging/.openapi-generator/VERSION new file mode 100644 index 000000000..ecedc98d1 --- /dev/null +++ b/rest/ip/messaging/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.3.1 \ No newline at end of file diff --git a/rest/ip/messaging/README.md b/rest/ip/messaging/README.md new file mode 100644 index 000000000..97b5fc957 --- /dev/null +++ b/rest/ip/messaging/README.md @@ -0,0 +1,159 @@ +# Go API client for openapi + +This is the public Twilio REST API. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 5.15.0 +- Package version: 1.0.0 +- Build package: com.twilio.oai.TwilioGoGenerator +For more information, please visit [https://support.twilio.com](https://support.twilio.com) + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import "./openapi" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**CreateChannel**](docs/DefaultApi.md#createchannel) | **Post** /v2/Services/{ServiceSid}/Channels | +*DefaultApi* | [**CreateChannelWebhook**](docs/DefaultApi.md#createchannelwebhook) | **Post** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks | +*DefaultApi* | [**CreateCredential**](docs/DefaultApi.md#createcredential) | **Post** /v2/Credentials | +*DefaultApi* | [**CreateInvite**](docs/DefaultApi.md#createinvite) | **Post** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites | +*DefaultApi* | [**CreateMember**](docs/DefaultApi.md#createmember) | **Post** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members | +*DefaultApi* | [**CreateMessage**](docs/DefaultApi.md#createmessage) | **Post** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages | +*DefaultApi* | [**CreateRole**](docs/DefaultApi.md#createrole) | **Post** /v2/Services/{ServiceSid}/Roles | +*DefaultApi* | [**CreateService**](docs/DefaultApi.md#createservice) | **Post** /v2/Services | +*DefaultApi* | [**CreateUser**](docs/DefaultApi.md#createuser) | **Post** /v2/Services/{ServiceSid}/Users | +*DefaultApi* | [**DeleteBinding**](docs/DefaultApi.md#deletebinding) | **Delete** /v2/Services/{ServiceSid}/Bindings/{Sid} | +*DefaultApi* | [**DeleteChannel**](docs/DefaultApi.md#deletechannel) | **Delete** /v2/Services/{ServiceSid}/Channels/{Sid} | +*DefaultApi* | [**DeleteChannelWebhook**](docs/DefaultApi.md#deletechannelwebhook) | **Delete** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid} | +*DefaultApi* | [**DeleteCredential**](docs/DefaultApi.md#deletecredential) | **Delete** /v2/Credentials/{Sid} | +*DefaultApi* | [**DeleteInvite**](docs/DefaultApi.md#deleteinvite) | **Delete** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid} | +*DefaultApi* | [**DeleteMember**](docs/DefaultApi.md#deletemember) | **Delete** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid} | +*DefaultApi* | [**DeleteMessage**](docs/DefaultApi.md#deletemessage) | **Delete** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid} | +*DefaultApi* | [**DeleteRole**](docs/DefaultApi.md#deleterole) | **Delete** /v2/Services/{ServiceSid}/Roles/{Sid} | +*DefaultApi* | [**DeleteService**](docs/DefaultApi.md#deleteservice) | **Delete** /v2/Services/{Sid} | +*DefaultApi* | [**DeleteUser**](docs/DefaultApi.md#deleteuser) | **Delete** /v2/Services/{ServiceSid}/Users/{Sid} | +*DefaultApi* | [**DeleteUserBinding**](docs/DefaultApi.md#deleteuserbinding) | **Delete** /v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid} | +*DefaultApi* | [**DeleteUserChannel**](docs/DefaultApi.md#deleteuserchannel) | **Delete** /v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid} | +*DefaultApi* | [**FetchBinding**](docs/DefaultApi.md#fetchbinding) | **Get** /v2/Services/{ServiceSid}/Bindings/{Sid} | +*DefaultApi* | [**FetchChannel**](docs/DefaultApi.md#fetchchannel) | **Get** /v2/Services/{ServiceSid}/Channels/{Sid} | +*DefaultApi* | [**FetchChannelWebhook**](docs/DefaultApi.md#fetchchannelwebhook) | **Get** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid} | +*DefaultApi* | [**FetchCredential**](docs/DefaultApi.md#fetchcredential) | **Get** /v2/Credentials/{Sid} | +*DefaultApi* | [**FetchInvite**](docs/DefaultApi.md#fetchinvite) | **Get** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid} | +*DefaultApi* | [**FetchMember**](docs/DefaultApi.md#fetchmember) | **Get** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid} | +*DefaultApi* | [**FetchMessage**](docs/DefaultApi.md#fetchmessage) | **Get** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid} | +*DefaultApi* | [**FetchRole**](docs/DefaultApi.md#fetchrole) | **Get** /v2/Services/{ServiceSid}/Roles/{Sid} | +*DefaultApi* | [**FetchService**](docs/DefaultApi.md#fetchservice) | **Get** /v2/Services/{Sid} | +*DefaultApi* | [**FetchUser**](docs/DefaultApi.md#fetchuser) | **Get** /v2/Services/{ServiceSid}/Users/{Sid} | +*DefaultApi* | [**FetchUserBinding**](docs/DefaultApi.md#fetchuserbinding) | **Get** /v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid} | +*DefaultApi* | [**FetchUserChannel**](docs/DefaultApi.md#fetchuserchannel) | **Get** /v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid} | +*DefaultApi* | [**ListBinding**](docs/DefaultApi.md#listbinding) | **Get** /v2/Services/{ServiceSid}/Bindings | +*DefaultApi* | [**ListChannel**](docs/DefaultApi.md#listchannel) | **Get** /v2/Services/{ServiceSid}/Channels | +*DefaultApi* | [**ListChannelWebhook**](docs/DefaultApi.md#listchannelwebhook) | **Get** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks | +*DefaultApi* | [**ListCredential**](docs/DefaultApi.md#listcredential) | **Get** /v2/Credentials | +*DefaultApi* | [**ListInvite**](docs/DefaultApi.md#listinvite) | **Get** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites | +*DefaultApi* | [**ListMember**](docs/DefaultApi.md#listmember) | **Get** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members | +*DefaultApi* | [**ListMessage**](docs/DefaultApi.md#listmessage) | **Get** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages | +*DefaultApi* | [**ListRole**](docs/DefaultApi.md#listrole) | **Get** /v2/Services/{ServiceSid}/Roles | +*DefaultApi* | [**ListService**](docs/DefaultApi.md#listservice) | **Get** /v2/Services | +*DefaultApi* | [**ListUser**](docs/DefaultApi.md#listuser) | **Get** /v2/Services/{ServiceSid}/Users | +*DefaultApi* | [**ListUserBinding**](docs/DefaultApi.md#listuserbinding) | **Get** /v2/Services/{ServiceSid}/Users/{UserSid}/Bindings | +*DefaultApi* | [**ListUserChannel**](docs/DefaultApi.md#listuserchannel) | **Get** /v2/Services/{ServiceSid}/Users/{UserSid}/Channels | +*DefaultApi* | [**UpdateChannel**](docs/DefaultApi.md#updatechannel) | **Post** /v2/Services/{ServiceSid}/Channels/{Sid} | +*DefaultApi* | [**UpdateChannelWebhook**](docs/DefaultApi.md#updatechannelwebhook) | **Post** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid} | +*DefaultApi* | [**UpdateCredential**](docs/DefaultApi.md#updatecredential) | **Post** /v2/Credentials/{Sid} | +*DefaultApi* | [**UpdateMember**](docs/DefaultApi.md#updatemember) | **Post** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid} | +*DefaultApi* | [**UpdateMessage**](docs/DefaultApi.md#updatemessage) | **Post** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid} | +*DefaultApi* | [**UpdateRole**](docs/DefaultApi.md#updaterole) | **Post** /v2/Services/{ServiceSid}/Roles/{Sid} | +*DefaultApi* | [**UpdateService**](docs/DefaultApi.md#updateservice) | **Post** /v2/Services/{Sid} | +*DefaultApi* | [**UpdateUser**](docs/DefaultApi.md#updateuser) | **Post** /v2/Services/{ServiceSid}/Users/{Sid} | +*DefaultApi* | [**UpdateUserChannel**](docs/DefaultApi.md#updateuserchannel) | **Post** /v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid} | + + +## Documentation For Models + + - [CreateChannelRequest](docs/CreateChannelRequest.md) + - [CreateChannelWebhookRequest](docs/CreateChannelWebhookRequest.md) + - [CreateCredentialRequest](docs/CreateCredentialRequest.md) + - [CreateInviteRequest](docs/CreateInviteRequest.md) + - [CreateMemberRequest](docs/CreateMemberRequest.md) + - [CreateMessageRequest](docs/CreateMessageRequest.md) + - [CreateRoleRequest](docs/CreateRoleRequest.md) + - [CreateServiceRequest](docs/CreateServiceRequest.md) + - [CreateUserRequest](docs/CreateUserRequest.md) + - [IpMessagingV2Credential](docs/IpMessagingV2Credential.md) + - [IpMessagingV2CredentialReadResponse](docs/IpMessagingV2CredentialReadResponse.md) + - [IpMessagingV2CredentialReadResponseMeta](docs/IpMessagingV2CredentialReadResponseMeta.md) + - [IpMessagingV2Service](docs/IpMessagingV2Service.md) + - [IpMessagingV2ServiceBinding](docs/IpMessagingV2ServiceBinding.md) + - [IpMessagingV2ServiceBindingReadResponse](docs/IpMessagingV2ServiceBindingReadResponse.md) + - [IpMessagingV2ServiceChannel](docs/IpMessagingV2ServiceChannel.md) + - [IpMessagingV2ServiceChannelChannelWebhook](docs/IpMessagingV2ServiceChannelChannelWebhook.md) + - [IpMessagingV2ServiceChannelChannelWebhookReadResponse](docs/IpMessagingV2ServiceChannelChannelWebhookReadResponse.md) + - [IpMessagingV2ServiceChannelInvite](docs/IpMessagingV2ServiceChannelInvite.md) + - [IpMessagingV2ServiceChannelInviteReadResponse](docs/IpMessagingV2ServiceChannelInviteReadResponse.md) + - [IpMessagingV2ServiceChannelMember](docs/IpMessagingV2ServiceChannelMember.md) + - [IpMessagingV2ServiceChannelMemberReadResponse](docs/IpMessagingV2ServiceChannelMemberReadResponse.md) + - [IpMessagingV2ServiceChannelMessage](docs/IpMessagingV2ServiceChannelMessage.md) + - [IpMessagingV2ServiceChannelMessageReadResponse](docs/IpMessagingV2ServiceChannelMessageReadResponse.md) + - [IpMessagingV2ServiceChannelReadResponse](docs/IpMessagingV2ServiceChannelReadResponse.md) + - [IpMessagingV2ServiceReadResponse](docs/IpMessagingV2ServiceReadResponse.md) + - [IpMessagingV2ServiceRole](docs/IpMessagingV2ServiceRole.md) + - [IpMessagingV2ServiceRoleReadResponse](docs/IpMessagingV2ServiceRoleReadResponse.md) + - [IpMessagingV2ServiceUser](docs/IpMessagingV2ServiceUser.md) + - [IpMessagingV2ServiceUserReadResponse](docs/IpMessagingV2ServiceUserReadResponse.md) + - [IpMessagingV2ServiceUserUserBinding](docs/IpMessagingV2ServiceUserUserBinding.md) + - [IpMessagingV2ServiceUserUserBindingReadResponse](docs/IpMessagingV2ServiceUserUserBindingReadResponse.md) + - [IpMessagingV2ServiceUserUserChannel](docs/IpMessagingV2ServiceUserUserChannel.md) + - [IpMessagingV2ServiceUserUserChannelReadResponse](docs/IpMessagingV2ServiceUserUserChannelReadResponse.md) + - [UpdateChannelRequest](docs/UpdateChannelRequest.md) + - [UpdateChannelWebhookRequest](docs/UpdateChannelWebhookRequest.md) + - [UpdateCredentialRequest](docs/UpdateCredentialRequest.md) + - [UpdateMemberRequest](docs/UpdateMemberRequest.md) + - [UpdateMessageRequest](docs/UpdateMessageRequest.md) + - [UpdateRoleRequest](docs/UpdateRoleRequest.md) + - [UpdateServiceRequest](docs/UpdateServiceRequest.md) + - [UpdateUserChannelRequest](docs/UpdateUserChannelRequest.md) + - [UpdateUserRequest](docs/UpdateUserRequest.md) + + +## Documentation For Authorization + + + +## accountSid_authToken + +- **Type**: HTTP basic authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ + UserName: "username", + Password: "password", +}) +r, err := client.Service.Operation(auth, args) +``` + + +## Author + +support@twilio.com + diff --git a/rest/ip/messaging/api_default.go b/rest/ip/messaging/api_default.go new file mode 100644 index 000000000..10ec02d11 --- /dev/null +++ b/rest/ip/messaging/api_default.go @@ -0,0 +1,2472 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "" + "reflect" +) + +type DefaultApiService struct { + baseURL string + client *twilio.Client +} + +func NewDefaultApiService(client *twilio.Client) *DefaultApiService { + return &DefaultApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} +// CreateChannelParams Optional parameters for the method 'CreateChannel' +type CreateChannelParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + CreatedBy *string `json:"CreatedBy,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Type *string `json:"Type,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +CreateChannel Method for CreateChannel + * @param serviceSid + * @param optional nil or *CreateChannelOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "Attributes" (string) - + * @param "CreatedBy" (string) - + * @param "DateCreated" (time.Time) - + * @param "DateUpdated" (time.Time) - + * @param "FriendlyName" (string) - + * @param "Type" (string) - + * @param "UniqueName" (string) - +@return IpMessagingV2ServiceChannel +*/ +func (c *DefaultApiService) CreateChannel(serviceSid string, params *CreateChannelParams) (*IpMessagingV2ServiceChannel, error) { + path := "/v2/Services/{ServiceSid}/Channels" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.CreatedBy != nil { + data.Set("CreatedBy", *params.CreatedBy) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateChannelWebhookParams Optional parameters for the method 'CreateChannelWebhook' +type CreateChannelWebhookParams struct { + Configuration.Filters *[]string `json:"Configuration.Filters,omitempty"` + Configuration.FlowSid *string `json:"Configuration.FlowSid,omitempty"` + Configuration.Method *string `json:"Configuration.Method,omitempty"` + Configuration.RetryCount *int32 `json:"Configuration.RetryCount,omitempty"` + Configuration.Triggers *[]string `json:"Configuration.Triggers,omitempty"` + Configuration.Url *string `json:"Configuration.Url,omitempty"` + Type *string `json:"Type,omitempty"` +} + +/* +CreateChannelWebhook Method for CreateChannelWebhook + * @param serviceSid + * @param channelSid + * @param optional nil or *CreateChannelWebhookOpts - Optional Parameters: + * @param "Configuration.Filters" ([]string) - + * @param "Configuration.FlowSid" (string) - + * @param "Configuration.Method" (string) - + * @param "Configuration.RetryCount" (int32) - + * @param "Configuration.Triggers" ([]string) - + * @param "Configuration.Url" (string) - + * @param "Type" (string) - +@return IpMessagingV2ServiceChannelChannelWebhook +*/ +func (c *DefaultApiService) CreateChannelWebhook(serviceSid string, channelSid string, params *CreateChannelWebhookParams) (*IpMessagingV2ServiceChannelChannelWebhook, error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Configuration.Filters != nil { + data.Set("Configuration.Filters", *params.Configuration.Filters) + } + if params != nil && params.Configuration.FlowSid != nil { + data.Set("Configuration.FlowSid", *params.Configuration.FlowSid) + } + if params != nil && params.Configuration.Method != nil { + data.Set("Configuration.Method", *params.Configuration.Method) + } + if params != nil && params.Configuration.RetryCount != nil { + data.Set("Configuration.RetryCount", string(*params.Configuration.RetryCount)) + } + if params != nil && params.Configuration.Triggers != nil { + data.Set("Configuration.Triggers", *params.Configuration.Triggers) + } + if params != nil && params.Configuration.Url != nil { + data.Set("Configuration.Url", *params.Configuration.Url) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceChannelChannelWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateCredentialParams Optional parameters for the method 'CreateCredential' +type CreateCredentialParams struct { + ApiKey *string `json:"ApiKey,omitempty"` + Certificate *string `json:"Certificate,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PrivateKey *string `json:"PrivateKey,omitempty"` + Sandbox *bool `json:"Sandbox,omitempty"` + Secret *string `json:"Secret,omitempty"` + Type *string `json:"Type,omitempty"` +} + +/* +CreateCredential Method for CreateCredential + * @param optional nil or *CreateCredentialOpts - Optional Parameters: + * @param "ApiKey" (string) - + * @param "Certificate" (string) - + * @param "FriendlyName" (string) - + * @param "PrivateKey" (string) - + * @param "Sandbox" (bool) - + * @param "Secret" (string) - + * @param "Type" (string) - +@return IpMessagingV2Credential +*/ +func (c *DefaultApiService) CreateCredential(params *CreateCredentialParams) (*IpMessagingV2Credential, error) { + path := "/v2/Credentials" + + data := url.Values{} + headers := 0 + + if params != nil && params.ApiKey != nil { + data.Set("ApiKey", *params.ApiKey) + } + if params != nil && params.Certificate != nil { + data.Set("Certificate", *params.Certificate) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PrivateKey != nil { + data.Set("PrivateKey", *params.PrivateKey) + } + if params != nil && params.Sandbox != nil { + data.Set("Sandbox", string(*params.Sandbox)) + } + if params != nil && params.Secret != nil { + data.Set("Secret", *params.Secret) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2Credential{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateInviteParams Optional parameters for the method 'CreateInvite' +type CreateInviteParams struct { + Identity *string `json:"Identity,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` +} + +/* +CreateInvite Method for CreateInvite + * @param serviceSid + * @param channelSid + * @param optional nil or *CreateInviteOpts - Optional Parameters: + * @param "Identity" (string) - + * @param "RoleSid" (string) - +@return IpMessagingV2ServiceChannelInvite +*/ +func (c *DefaultApiService) CreateInvite(serviceSid string, channelSid string, params *CreateInviteParams) (*IpMessagingV2ServiceChannelInvite, error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceChannelInvite{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateMemberParams Optional parameters for the method 'CreateMember' +type CreateMemberParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + Identity *string `json:"Identity,omitempty"` + LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` + LastConsumptionTimestamp *time.Time `json:"LastConsumptionTimestamp,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` +} + +/* +CreateMember Method for CreateMember + * @param serviceSid + * @param channelSid + * @param optional nil or *CreateMemberOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "Attributes" (string) - + * @param "DateCreated" (time.Time) - + * @param "DateUpdated" (time.Time) - + * @param "Identity" (string) - + * @param "LastConsumedMessageIndex" (*int32) - + * @param "LastConsumptionTimestamp" (time.Time) - + * @param "RoleSid" (string) - +@return IpMessagingV2ServiceChannelMember +*/ +func (c *DefaultApiService) CreateMember(serviceSid string, channelSid string, params *CreateMemberParams) (*IpMessagingV2ServiceChannelMember, error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.LastConsumedMessageIndex != nil { + data.Set("LastConsumedMessageIndex", string(*params.LastConsumedMessageIndex)) + } + if params != nil && params.LastConsumptionTimestamp != nil { + data.Set("LastConsumptionTimestamp", string(*params.LastConsumptionTimestamp)) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceChannelMember{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateMessageParams Optional parameters for the method 'CreateMessage' +type CreateMessageParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + Body *string `json:"Body,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + From *string `json:"From,omitempty"` + LastUpdatedBy *string `json:"LastUpdatedBy,omitempty"` + MediaSid *string `json:"MediaSid,omitempty"` +} + +/* +CreateMessage Method for CreateMessage + * @param serviceSid + * @param channelSid + * @param optional nil or *CreateMessageOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "Attributes" (string) - + * @param "Body" (string) - + * @param "DateCreated" (time.Time) - + * @param "DateUpdated" (time.Time) - + * @param "From" (string) - + * @param "LastUpdatedBy" (string) - + * @param "MediaSid" (string) - +@return IpMessagingV2ServiceChannelMessage +*/ +func (c *DefaultApiService) CreateMessage(serviceSid string, channelSid string, params *CreateMessageParams) (*IpMessagingV2ServiceChannelMessage, error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.Body != nil { + data.Set("Body", *params.Body) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.LastUpdatedBy != nil { + data.Set("LastUpdatedBy", *params.LastUpdatedBy) + } + if params != nil && params.MediaSid != nil { + data.Set("MediaSid", *params.MediaSid) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceChannelMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateRoleParams Optional parameters for the method 'CreateRole' +type CreateRoleParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` + Permission *[]string `json:"Permission,omitempty"` + Type *string `json:"Type,omitempty"` +} + +/* +CreateRole Method for CreateRole + * @param serviceSid + * @param optional nil or *CreateRoleOpts - Optional Parameters: + * @param "FriendlyName" (string) - + * @param "Permission" ([]string) - + * @param "Type" (string) - +@return IpMessagingV2ServiceRole +*/ +func (c *DefaultApiService) CreateRole(serviceSid string, params *CreateRoleParams) (*IpMessagingV2ServiceRole, error) { + path := "/v2/Services/{ServiceSid}/Roles" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Permission != nil { + data.Set("Permission", *params.Permission) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceRole{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateServiceParams Optional parameters for the method 'CreateService' +type CreateServiceParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +CreateService Method for CreateService + * @param optional nil or *CreateServiceOpts - Optional Parameters: + * @param "FriendlyName" (string) - +@return IpMessagingV2Service +*/ +func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*IpMessagingV2Service, error) { + path := "/v2/Services" + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateUserParams Optional parameters for the method 'CreateUser' +type CreateUserParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Identity *string `json:"Identity,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` +} + +/* +CreateUser Method for CreateUser + * @param serviceSid + * @param optional nil or *CreateUserOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "Attributes" (string) - + * @param "FriendlyName" (string) - + * @param "Identity" (string) - + * @param "RoleSid" (string) - +@return IpMessagingV2ServiceUser +*/ +func (c *DefaultApiService) CreateUser(serviceSid string, params *CreateUserParams) (*IpMessagingV2ServiceUser, error) { + path := "/v2/Services/{ServiceSid}/Users" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceUser{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +DeleteBinding Method for DeleteBinding + * @param serviceSid + * @param sid +*/ +func (c *DefaultApiService) DeleteBinding(serviceSid string, sid string) (error) { + path := "/v2/Services/{ServiceSid}/Bindings/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} +// DeleteChannelParams Optional parameters for the method 'DeleteChannel' +type DeleteChannelParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` +} + +/* +DeleteChannel Method for DeleteChannel + * @param serviceSid + * @param sid + * @param optional nil or *DeleteChannelOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header +*/ +func (c *DefaultApiService) DeleteChannel(serviceSid string, sid string, params *DeleteChannelParams) (error) { + path := "/v2/Services/{ServiceSid}/Channels/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteChannelWebhook Method for DeleteChannelWebhook + * @param serviceSid + * @param channelSid + * @param sid +*/ +func (c *DefaultApiService) DeleteChannelWebhook(serviceSid string, channelSid string, sid string) (error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteCredential Method for DeleteCredential + * @param sid +*/ +func (c *DefaultApiService) DeleteCredential(sid string) (error) { + path := "/v2/Credentials/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteInvite Method for DeleteInvite + * @param serviceSid + * @param channelSid + * @param sid +*/ +func (c *DefaultApiService) DeleteInvite(serviceSid string, channelSid string, sid string) (error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} +// DeleteMemberParams Optional parameters for the method 'DeleteMember' +type DeleteMemberParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` +} + +/* +DeleteMember Method for DeleteMember + * @param serviceSid + * @param channelSid + * @param sid + * @param optional nil or *DeleteMemberOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header +*/ +func (c *DefaultApiService) DeleteMember(serviceSid string, channelSid string, sid string, params *DeleteMemberParams) (error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} +// DeleteMessageParams Optional parameters for the method 'DeleteMessage' +type DeleteMessageParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` +} + +/* +DeleteMessage Method for DeleteMessage + * @param serviceSid + * @param channelSid + * @param sid + * @param optional nil or *DeleteMessageOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header +*/ +func (c *DefaultApiService) DeleteMessage(serviceSid string, channelSid string, sid string, params *DeleteMessageParams) (error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteRole Method for DeleteRole + * @param serviceSid + * @param sid +*/ +func (c *DefaultApiService) DeleteRole(serviceSid string, sid string) (error) { + path := "/v2/Services/{ServiceSid}/Roles/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteService Method for DeleteService + * @param sid +*/ +func (c *DefaultApiService) DeleteService(sid string) (error) { + path := "/v2/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteUser Method for DeleteUser + * @param serviceSid + * @param sid +*/ +func (c *DefaultApiService) DeleteUser(serviceSid string, sid string) (error) { + path := "/v2/Services/{ServiceSid}/Users/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteUserBinding Method for DeleteUserBinding + * @param serviceSid + * @param userSid + * @param sid +*/ +func (c *DefaultApiService) DeleteUserBinding(serviceSid string, userSid string, sid string) (error) { + path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteUserChannel Method for DeleteUserChannel + * @param serviceSid + * @param userSid + * @param channelSid +*/ +func (c *DefaultApiService) DeleteUserChannel(serviceSid string, userSid string, channelSid string) (error) { + path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +FetchBinding Method for FetchBinding + * @param serviceSid + * @param sid +@return IpMessagingV2ServiceBinding +*/ +func (c *DefaultApiService) FetchBinding(serviceSid string, sid string) (*IpMessagingV2ServiceBinding, error) { + path := "/v2/Services/{ServiceSid}/Bindings/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceBinding{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchChannel Method for FetchChannel + * @param serviceSid + * @param sid +@return IpMessagingV2ServiceChannel +*/ +func (c *DefaultApiService) FetchChannel(serviceSid string, sid string) (*IpMessagingV2ServiceChannel, error) { + path := "/v2/Services/{ServiceSid}/Channels/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchChannelWebhook Method for FetchChannelWebhook + * @param serviceSid + * @param channelSid + * @param sid +@return IpMessagingV2ServiceChannelChannelWebhook +*/ +func (c *DefaultApiService) FetchChannelWebhook(serviceSid string, channelSid string, sid string) (*IpMessagingV2ServiceChannelChannelWebhook, error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceChannelChannelWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchCredential Method for FetchCredential + * @param sid +@return IpMessagingV2Credential +*/ +func (c *DefaultApiService) FetchCredential(sid string) (*IpMessagingV2Credential, error) { + path := "/v2/Credentials/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2Credential{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchInvite Method for FetchInvite + * @param serviceSid + * @param channelSid + * @param sid +@return IpMessagingV2ServiceChannelInvite +*/ +func (c *DefaultApiService) FetchInvite(serviceSid string, channelSid string, sid string) (*IpMessagingV2ServiceChannelInvite, error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceChannelInvite{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchMember Method for FetchMember + * @param serviceSid + * @param channelSid + * @param sid +@return IpMessagingV2ServiceChannelMember +*/ +func (c *DefaultApiService) FetchMember(serviceSid string, channelSid string, sid string) (*IpMessagingV2ServiceChannelMember, error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceChannelMember{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchMessage Method for FetchMessage + * @param serviceSid + * @param channelSid + * @param sid +@return IpMessagingV2ServiceChannelMessage +*/ +func (c *DefaultApiService) FetchMessage(serviceSid string, channelSid string, sid string) (*IpMessagingV2ServiceChannelMessage, error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceChannelMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchRole Method for FetchRole + * @param serviceSid + * @param sid +@return IpMessagingV2ServiceRole +*/ +func (c *DefaultApiService) FetchRole(serviceSid string, sid string) (*IpMessagingV2ServiceRole, error) { + path := "/v2/Services/{ServiceSid}/Roles/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceRole{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchService Method for FetchService + * @param sid +@return IpMessagingV2Service +*/ +func (c *DefaultApiService) FetchService(sid string) (*IpMessagingV2Service, error) { + path := "/v2/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchUser Method for FetchUser + * @param serviceSid + * @param sid +@return IpMessagingV2ServiceUser +*/ +func (c *DefaultApiService) FetchUser(serviceSid string, sid string) (*IpMessagingV2ServiceUser, error) { + path := "/v2/Services/{ServiceSid}/Users/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceUser{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchUserBinding Method for FetchUserBinding + * @param serviceSid + * @param userSid + * @param sid +@return IpMessagingV2ServiceUserUserBinding +*/ +func (c *DefaultApiService) FetchUserBinding(serviceSid string, userSid string, sid string) (*IpMessagingV2ServiceUserUserBinding, error) { + path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceUserUserBinding{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchUserChannel Method for FetchUserChannel + * @param serviceSid + * @param userSid + * @param channelSid +@return IpMessagingV2ServiceUserUserChannel +*/ +func (c *DefaultApiService) FetchUserChannel(serviceSid string, userSid string, channelSid string) (*IpMessagingV2ServiceUserUserChannel, error) { + path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceUserUserChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListBindingParams Optional parameters for the method 'ListBinding' +type ListBindingParams struct { + BindingType *[]string `json:"BindingType,omitempty"` + Identity *[]string `json:"Identity,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListBinding Method for ListBinding + * @param serviceSid + * @param optional nil or *ListBindingOpts - Optional Parameters: + * @param "BindingType" ([]string) - + * @param "Identity" ([]string) - + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return IpMessagingV2ServiceBindingReadResponse +*/ +func (c *DefaultApiService) ListBinding(serviceSid string, params *ListBindingParams) (*IpMessagingV2ServiceBindingReadResponse, error) { + path := "/v2/Services/{ServiceSid}/Bindings" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.BindingType != nil { + data.Set("BindingType", string(*params.BindingType)) + } + if params != nil && params.Identity != nil { + data.Set("Identity", string(*params.Identity)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceBindingReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListChannelParams Optional parameters for the method 'ListChannel' +type ListChannelParams struct { + Type *[]string `json:"Type,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListChannel Method for ListChannel + * @param serviceSid + * @param optional nil or *ListChannelOpts - Optional Parameters: + * @param "Type" ([]string) - + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return IpMessagingV2ServiceChannelReadResponse +*/ +func (c *DefaultApiService) ListChannel(serviceSid string, params *ListChannelParams) (*IpMessagingV2ServiceChannelReadResponse, error) { + path := "/v2/Services/{ServiceSid}/Channels" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Type != nil { + data.Set("Type", string(*params.Type)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceChannelReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListChannelWebhookParams Optional parameters for the method 'ListChannelWebhook' +type ListChannelWebhookParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListChannelWebhook Method for ListChannelWebhook + * @param serviceSid + * @param channelSid + * @param optional nil or *ListChannelWebhookOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return IpMessagingV2ServiceChannelChannelWebhookReadResponse +*/ +func (c *DefaultApiService) ListChannelWebhook(serviceSid string, channelSid string, params *ListChannelWebhookParams) (*IpMessagingV2ServiceChannelChannelWebhookReadResponse, error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceChannelChannelWebhookReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListCredentialParams Optional parameters for the method 'ListCredential' +type ListCredentialParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListCredential Method for ListCredential + * @param optional nil or *ListCredentialOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return IpMessagingV2CredentialReadResponse +*/ +func (c *DefaultApiService) ListCredential(params *ListCredentialParams) (*IpMessagingV2CredentialReadResponse, error) { + path := "/v2/Credentials" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2CredentialReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListInviteParams Optional parameters for the method 'ListInvite' +type ListInviteParams struct { + Identity *[]string `json:"Identity,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListInvite Method for ListInvite + * @param serviceSid + * @param channelSid + * @param optional nil or *ListInviteOpts - Optional Parameters: + * @param "Identity" ([]string) - + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return IpMessagingV2ServiceChannelInviteReadResponse +*/ +func (c *DefaultApiService) ListInvite(serviceSid string, channelSid string, params *ListInviteParams) (*IpMessagingV2ServiceChannelInviteReadResponse, error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Identity != nil { + data.Set("Identity", string(*params.Identity)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceChannelInviteReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListMemberParams Optional parameters for the method 'ListMember' +type ListMemberParams struct { + Identity *[]string `json:"Identity,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListMember Method for ListMember + * @param serviceSid + * @param channelSid + * @param optional nil or *ListMemberOpts - Optional Parameters: + * @param "Identity" ([]string) - + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return IpMessagingV2ServiceChannelMemberReadResponse +*/ +func (c *DefaultApiService) ListMember(serviceSid string, channelSid string, params *ListMemberParams) (*IpMessagingV2ServiceChannelMemberReadResponse, error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Identity != nil { + data.Set("Identity", string(*params.Identity)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceChannelMemberReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListMessageParams Optional parameters for the method 'ListMessage' +type ListMessageParams struct { + Order *string `json:"Order,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListMessage Method for ListMessage + * @param serviceSid + * @param channelSid + * @param optional nil or *ListMessageOpts - Optional Parameters: + * @param "Order" (string) - + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return IpMessagingV2ServiceChannelMessageReadResponse +*/ +func (c *DefaultApiService) ListMessage(serviceSid string, channelSid string, params *ListMessageParams) (*IpMessagingV2ServiceChannelMessageReadResponse, error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Order != nil { + data.Set("Order", *params.Order) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceChannelMessageReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListRoleParams Optional parameters for the method 'ListRole' +type ListRoleParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListRole Method for ListRole + * @param serviceSid + * @param optional nil or *ListRoleOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return IpMessagingV2ServiceRoleReadResponse +*/ +func (c *DefaultApiService) ListRole(serviceSid string, params *ListRoleParams) (*IpMessagingV2ServiceRoleReadResponse, error) { + path := "/v2/Services/{ServiceSid}/Roles" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceRoleReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListServiceParams Optional parameters for the method 'ListService' +type ListServiceParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListService Method for ListService + * @param optional nil or *ListServiceOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return IpMessagingV2ServiceReadResponse +*/ +func (c *DefaultApiService) ListService(params *ListServiceParams) (*IpMessagingV2ServiceReadResponse, error) { + path := "/v2/Services" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListUserParams Optional parameters for the method 'ListUser' +type ListUserParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListUser Method for ListUser + * @param serviceSid + * @param optional nil or *ListUserOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return IpMessagingV2ServiceUserReadResponse +*/ +func (c *DefaultApiService) ListUser(serviceSid string, params *ListUserParams) (*IpMessagingV2ServiceUserReadResponse, error) { + path := "/v2/Services/{ServiceSid}/Users" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceUserReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListUserBindingParams Optional parameters for the method 'ListUserBinding' +type ListUserBindingParams struct { + BindingType *[]string `json:"BindingType,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListUserBinding Method for ListUserBinding + * @param serviceSid + * @param userSid + * @param optional nil or *ListUserBindingOpts - Optional Parameters: + * @param "BindingType" ([]string) - + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return IpMessagingV2ServiceUserUserBindingReadResponse +*/ +func (c *DefaultApiService) ListUserBinding(serviceSid string, userSid string, params *ListUserBindingParams) (*IpMessagingV2ServiceUserUserBindingReadResponse, error) { + path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.BindingType != nil { + data.Set("BindingType", string(*params.BindingType)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceUserUserBindingReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListUserChannelParams Optional parameters for the method 'ListUserChannel' +type ListUserChannelParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListUserChannel Method for ListUserChannel + * @param serviceSid + * @param userSid + * @param optional nil or *ListUserChannelOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return IpMessagingV2ServiceUserUserChannelReadResponse +*/ +func (c *DefaultApiService) ListUserChannel(serviceSid string, userSid string, params *ListUserChannelParams) (*IpMessagingV2ServiceUserUserChannelReadResponse, error) { + path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceUserUserChannelReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateChannelParams Optional parameters for the method 'UpdateChannel' +type UpdateChannelParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + CreatedBy *string `json:"CreatedBy,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +UpdateChannel Method for UpdateChannel + * @param serviceSid + * @param sid + * @param optional nil or *UpdateChannelOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "Attributes" (string) - + * @param "CreatedBy" (string) - + * @param "DateCreated" (time.Time) - + * @param "DateUpdated" (time.Time) - + * @param "FriendlyName" (string) - + * @param "UniqueName" (string) - +@return IpMessagingV2ServiceChannel +*/ +func (c *DefaultApiService) UpdateChannel(serviceSid string, sid string, params *UpdateChannelParams) (*IpMessagingV2ServiceChannel, error) { + path := "/v2/Services/{ServiceSid}/Channels/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.CreatedBy != nil { + data.Set("CreatedBy", *params.CreatedBy) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateChannelWebhookParams Optional parameters for the method 'UpdateChannelWebhook' +type UpdateChannelWebhookParams struct { + Configuration.Filters *[]string `json:"Configuration.Filters,omitempty"` + Configuration.FlowSid *string `json:"Configuration.FlowSid,omitempty"` + Configuration.Method *string `json:"Configuration.Method,omitempty"` + Configuration.RetryCount *int32 `json:"Configuration.RetryCount,omitempty"` + Configuration.Triggers *[]string `json:"Configuration.Triggers,omitempty"` + Configuration.Url *string `json:"Configuration.Url,omitempty"` +} + +/* +UpdateChannelWebhook Method for UpdateChannelWebhook + * @param serviceSid + * @param channelSid + * @param sid + * @param optional nil or *UpdateChannelWebhookOpts - Optional Parameters: + * @param "Configuration.Filters" ([]string) - + * @param "Configuration.FlowSid" (string) - + * @param "Configuration.Method" (string) - + * @param "Configuration.RetryCount" (int32) - + * @param "Configuration.Triggers" ([]string) - + * @param "Configuration.Url" (string) - +@return IpMessagingV2ServiceChannelChannelWebhook +*/ +func (c *DefaultApiService) UpdateChannelWebhook(serviceSid string, channelSid string, sid string, params *UpdateChannelWebhookParams) (*IpMessagingV2ServiceChannelChannelWebhook, error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Configuration.Filters != nil { + data.Set("Configuration.Filters", *params.Configuration.Filters) + } + if params != nil && params.Configuration.FlowSid != nil { + data.Set("Configuration.FlowSid", *params.Configuration.FlowSid) + } + if params != nil && params.Configuration.Method != nil { + data.Set("Configuration.Method", *params.Configuration.Method) + } + if params != nil && params.Configuration.RetryCount != nil { + data.Set("Configuration.RetryCount", string(*params.Configuration.RetryCount)) + } + if params != nil && params.Configuration.Triggers != nil { + data.Set("Configuration.Triggers", *params.Configuration.Triggers) + } + if params != nil && params.Configuration.Url != nil { + data.Set("Configuration.Url", *params.Configuration.Url) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceChannelChannelWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateCredentialParams Optional parameters for the method 'UpdateCredential' +type UpdateCredentialParams struct { + ApiKey *string `json:"ApiKey,omitempty"` + Certificate *string `json:"Certificate,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PrivateKey *string `json:"PrivateKey,omitempty"` + Sandbox *bool `json:"Sandbox,omitempty"` + Secret *string `json:"Secret,omitempty"` +} + +/* +UpdateCredential Method for UpdateCredential + * @param sid + * @param optional nil or *UpdateCredentialOpts - Optional Parameters: + * @param "ApiKey" (string) - + * @param "Certificate" (string) - + * @param "FriendlyName" (string) - + * @param "PrivateKey" (string) - + * @param "Sandbox" (bool) - + * @param "Secret" (string) - +@return IpMessagingV2Credential +*/ +func (c *DefaultApiService) UpdateCredential(sid string, params *UpdateCredentialParams) (*IpMessagingV2Credential, error) { + path := "/v2/Credentials/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ApiKey != nil { + data.Set("ApiKey", *params.ApiKey) + } + if params != nil && params.Certificate != nil { + data.Set("Certificate", *params.Certificate) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PrivateKey != nil { + data.Set("PrivateKey", *params.PrivateKey) + } + if params != nil && params.Sandbox != nil { + data.Set("Sandbox", string(*params.Sandbox)) + } + if params != nil && params.Secret != nil { + data.Set("Secret", *params.Secret) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2Credential{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateMemberParams Optional parameters for the method 'UpdateMember' +type UpdateMemberParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` + LastConsumptionTimestamp *time.Time `json:"LastConsumptionTimestamp,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` +} + +/* +UpdateMember Method for UpdateMember + * @param serviceSid + * @param channelSid + * @param sid + * @param optional nil or *UpdateMemberOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "Attributes" (string) - + * @param "DateCreated" (time.Time) - + * @param "DateUpdated" (time.Time) - + * @param "LastConsumedMessageIndex" (*int32) - + * @param "LastConsumptionTimestamp" (time.Time) - + * @param "RoleSid" (string) - +@return IpMessagingV2ServiceChannelMember +*/ +func (c *DefaultApiService) UpdateMember(serviceSid string, channelSid string, sid string, params *UpdateMemberParams) (*IpMessagingV2ServiceChannelMember, error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.LastConsumedMessageIndex != nil { + data.Set("LastConsumedMessageIndex", string(*params.LastConsumedMessageIndex)) + } + if params != nil && params.LastConsumptionTimestamp != nil { + data.Set("LastConsumptionTimestamp", string(*params.LastConsumptionTimestamp)) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceChannelMember{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateMessageParams Optional parameters for the method 'UpdateMessage' +type UpdateMessageParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + Body *string `json:"Body,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + From *string `json:"From,omitempty"` + LastUpdatedBy *string `json:"LastUpdatedBy,omitempty"` +} + +/* +UpdateMessage Method for UpdateMessage + * @param serviceSid + * @param channelSid + * @param sid + * @param optional nil or *UpdateMessageOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "Attributes" (string) - + * @param "Body" (string) - + * @param "DateCreated" (time.Time) - + * @param "DateUpdated" (time.Time) - + * @param "From" (string) - + * @param "LastUpdatedBy" (string) - +@return IpMessagingV2ServiceChannelMessage +*/ +func (c *DefaultApiService) UpdateMessage(serviceSid string, channelSid string, sid string, params *UpdateMessageParams) (*IpMessagingV2ServiceChannelMessage, error) { + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.Body != nil { + data.Set("Body", *params.Body) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.LastUpdatedBy != nil { + data.Set("LastUpdatedBy", *params.LastUpdatedBy) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceChannelMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateRoleParams Optional parameters for the method 'UpdateRole' +type UpdateRoleParams struct { + Permission *[]string `json:"Permission,omitempty"` +} + +/* +UpdateRole Method for UpdateRole + * @param serviceSid + * @param sid + * @param optional nil or *UpdateRoleOpts - Optional Parameters: + * @param "Permission" ([]string) - +@return IpMessagingV2ServiceRole +*/ +func (c *DefaultApiService) UpdateRole(serviceSid string, sid string, params *UpdateRoleParams) (*IpMessagingV2ServiceRole, error) { + path := "/v2/Services/{ServiceSid}/Roles/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Permission != nil { + data.Set("Permission", *params.Permission) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceRole{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateServiceParams Optional parameters for the method 'UpdateService' +type UpdateServiceParams struct { + ConsumptionReportInterval *int32 `json:"ConsumptionReportInterval,omitempty"` + DefaultChannelCreatorRoleSid *string `json:"DefaultChannelCreatorRoleSid,omitempty"` + DefaultChannelRoleSid *string `json:"DefaultChannelRoleSid,omitempty"` + DefaultServiceRoleSid *string `json:"DefaultServiceRoleSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Limits.ChannelMembers *int32 `json:"Limits.ChannelMembers,omitempty"` + Limits.UserChannels *int32 `json:"Limits.UserChannels,omitempty"` + Media.CompatibilityMessage *string `json:"Media.CompatibilityMessage,omitempty"` + Notifications.AddedToChannel.Enabled *bool `json:"Notifications.AddedToChannel.Enabled,omitempty"` + Notifications.AddedToChannel.Sound *string `json:"Notifications.AddedToChannel.Sound,omitempty"` + Notifications.AddedToChannel.Template *string `json:"Notifications.AddedToChannel.Template,omitempty"` + Notifications.InvitedToChannel.Enabled *bool `json:"Notifications.InvitedToChannel.Enabled,omitempty"` + Notifications.InvitedToChannel.Sound *string `json:"Notifications.InvitedToChannel.Sound,omitempty"` + Notifications.InvitedToChannel.Template *string `json:"Notifications.InvitedToChannel.Template,omitempty"` + Notifications.LogEnabled *bool `json:"Notifications.LogEnabled,omitempty"` + Notifications.NewMessage.BadgeCountEnabled *bool `json:"Notifications.NewMessage.BadgeCountEnabled,omitempty"` + Notifications.NewMessage.Enabled *bool `json:"Notifications.NewMessage.Enabled,omitempty"` + Notifications.NewMessage.Sound *string `json:"Notifications.NewMessage.Sound,omitempty"` + Notifications.NewMessage.Template *string `json:"Notifications.NewMessage.Template,omitempty"` + Notifications.RemovedFromChannel.Enabled *bool `json:"Notifications.RemovedFromChannel.Enabled,omitempty"` + Notifications.RemovedFromChannel.Sound *string `json:"Notifications.RemovedFromChannel.Sound,omitempty"` + Notifications.RemovedFromChannel.Template *string `json:"Notifications.RemovedFromChannel.Template,omitempty"` + PostWebhookRetryCount *int32 `json:"PostWebhookRetryCount,omitempty"` + PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"` + PreWebhookRetryCount *int32 `json:"PreWebhookRetryCount,omitempty"` + PreWebhookUrl *string `json:"PreWebhookUrl,omitempty"` + ReachabilityEnabled *bool `json:"ReachabilityEnabled,omitempty"` + ReadStatusEnabled *bool `json:"ReadStatusEnabled,omitempty"` + TypingIndicatorTimeout *int32 `json:"TypingIndicatorTimeout,omitempty"` + WebhookFilters *[]string `json:"WebhookFilters,omitempty"` + WebhookMethod *string `json:"WebhookMethod,omitempty"` +} + +/* +UpdateService Method for UpdateService + * @param sid + * @param optional nil or *UpdateServiceOpts - Optional Parameters: + * @param "ConsumptionReportInterval" (int32) - + * @param "DefaultChannelCreatorRoleSid" (string) - + * @param "DefaultChannelRoleSid" (string) - + * @param "DefaultServiceRoleSid" (string) - + * @param "FriendlyName" (string) - + * @param "Limits.ChannelMembers" (int32) - + * @param "Limits.UserChannels" (int32) - + * @param "Media.CompatibilityMessage" (string) - + * @param "Notifications.AddedToChannel.Enabled" (bool) - + * @param "Notifications.AddedToChannel.Sound" (string) - + * @param "Notifications.AddedToChannel.Template" (string) - + * @param "Notifications.InvitedToChannel.Enabled" (bool) - + * @param "Notifications.InvitedToChannel.Sound" (string) - + * @param "Notifications.InvitedToChannel.Template" (string) - + * @param "Notifications.LogEnabled" (bool) - + * @param "Notifications.NewMessage.BadgeCountEnabled" (bool) - + * @param "Notifications.NewMessage.Enabled" (bool) - + * @param "Notifications.NewMessage.Sound" (string) - + * @param "Notifications.NewMessage.Template" (string) - + * @param "Notifications.RemovedFromChannel.Enabled" (bool) - + * @param "Notifications.RemovedFromChannel.Sound" (string) - + * @param "Notifications.RemovedFromChannel.Template" (string) - + * @param "PostWebhookRetryCount" (int32) - + * @param "PostWebhookUrl" (string) - + * @param "PreWebhookRetryCount" (int32) - + * @param "PreWebhookUrl" (string) - + * @param "ReachabilityEnabled" (bool) - + * @param "ReadStatusEnabled" (bool) - + * @param "TypingIndicatorTimeout" (int32) - + * @param "WebhookFilters" ([]string) - + * @param "WebhookMethod" (string) - +@return IpMessagingV2Service +*/ +func (c *DefaultApiService) UpdateService(sid string, params *UpdateServiceParams) (*IpMessagingV2Service, error) { + path := "/v2/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ConsumptionReportInterval != nil { + data.Set("ConsumptionReportInterval", string(*params.ConsumptionReportInterval)) + } + if params != nil && params.DefaultChannelCreatorRoleSid != nil { + data.Set("DefaultChannelCreatorRoleSid", *params.DefaultChannelCreatorRoleSid) + } + if params != nil && params.DefaultChannelRoleSid != nil { + data.Set("DefaultChannelRoleSid", *params.DefaultChannelRoleSid) + } + if params != nil && params.DefaultServiceRoleSid != nil { + data.Set("DefaultServiceRoleSid", *params.DefaultServiceRoleSid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Limits.ChannelMembers != nil { + data.Set("Limits.ChannelMembers", string(*params.Limits.ChannelMembers)) + } + if params != nil && params.Limits.UserChannels != nil { + data.Set("Limits.UserChannels", string(*params.Limits.UserChannels)) + } + if params != nil && params.Media.CompatibilityMessage != nil { + data.Set("Media.CompatibilityMessage", *params.Media.CompatibilityMessage) + } + if params != nil && params.Notifications.AddedToChannel.Enabled != nil { + data.Set("Notifications.AddedToChannel.Enabled", string(*params.Notifications.AddedToChannel.Enabled)) + } + if params != nil && params.Notifications.AddedToChannel.Sound != nil { + data.Set("Notifications.AddedToChannel.Sound", *params.Notifications.AddedToChannel.Sound) + } + if params != nil && params.Notifications.AddedToChannel.Template != nil { + data.Set("Notifications.AddedToChannel.Template", *params.Notifications.AddedToChannel.Template) + } + if params != nil && params.Notifications.InvitedToChannel.Enabled != nil { + data.Set("Notifications.InvitedToChannel.Enabled", string(*params.Notifications.InvitedToChannel.Enabled)) + } + if params != nil && params.Notifications.InvitedToChannel.Sound != nil { + data.Set("Notifications.InvitedToChannel.Sound", *params.Notifications.InvitedToChannel.Sound) + } + if params != nil && params.Notifications.InvitedToChannel.Template != nil { + data.Set("Notifications.InvitedToChannel.Template", *params.Notifications.InvitedToChannel.Template) + } + if params != nil && params.Notifications.LogEnabled != nil { + data.Set("Notifications.LogEnabled", string(*params.Notifications.LogEnabled)) + } + if params != nil && params.Notifications.NewMessage.BadgeCountEnabled != nil { + data.Set("Notifications.NewMessage.BadgeCountEnabled", string(*params.Notifications.NewMessage.BadgeCountEnabled)) + } + if params != nil && params.Notifications.NewMessage.Enabled != nil { + data.Set("Notifications.NewMessage.Enabled", string(*params.Notifications.NewMessage.Enabled)) + } + if params != nil && params.Notifications.NewMessage.Sound != nil { + data.Set("Notifications.NewMessage.Sound", *params.Notifications.NewMessage.Sound) + } + if params != nil && params.Notifications.NewMessage.Template != nil { + data.Set("Notifications.NewMessage.Template", *params.Notifications.NewMessage.Template) + } + if params != nil && params.Notifications.RemovedFromChannel.Enabled != nil { + data.Set("Notifications.RemovedFromChannel.Enabled", string(*params.Notifications.RemovedFromChannel.Enabled)) + } + if params != nil && params.Notifications.RemovedFromChannel.Sound != nil { + data.Set("Notifications.RemovedFromChannel.Sound", *params.Notifications.RemovedFromChannel.Sound) + } + if params != nil && params.Notifications.RemovedFromChannel.Template != nil { + data.Set("Notifications.RemovedFromChannel.Template", *params.Notifications.RemovedFromChannel.Template) + } + if params != nil && params.PostWebhookRetryCount != nil { + data.Set("PostWebhookRetryCount", string(*params.PostWebhookRetryCount)) + } + if params != nil && params.PostWebhookUrl != nil { + data.Set("PostWebhookUrl", *params.PostWebhookUrl) + } + if params != nil && params.PreWebhookRetryCount != nil { + data.Set("PreWebhookRetryCount", string(*params.PreWebhookRetryCount)) + } + if params != nil && params.PreWebhookUrl != nil { + data.Set("PreWebhookUrl", *params.PreWebhookUrl) + } + if params != nil && params.ReachabilityEnabled != nil { + data.Set("ReachabilityEnabled", string(*params.ReachabilityEnabled)) + } + if params != nil && params.ReadStatusEnabled != nil { + data.Set("ReadStatusEnabled", string(*params.ReadStatusEnabled)) + } + if params != nil && params.TypingIndicatorTimeout != nil { + data.Set("TypingIndicatorTimeout", string(*params.TypingIndicatorTimeout)) + } + if params != nil && params.WebhookFilters != nil { + data.Set("WebhookFilters", *params.WebhookFilters) + } + if params != nil && params.WebhookMethod != nil { + data.Set("WebhookMethod", *params.WebhookMethod) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateUserParams Optional parameters for the method 'UpdateUser' +type UpdateUserParams struct { + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` +} + +/* +UpdateUser Method for UpdateUser + * @param serviceSid + * @param sid + * @param optional nil or *UpdateUserOpts - Optional Parameters: + * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "Attributes" (string) - + * @param "FriendlyName" (string) - + * @param "RoleSid" (string) - +@return IpMessagingV2ServiceUser +*/ +func (c *DefaultApiService) UpdateUser(serviceSid string, sid string, params *UpdateUserParams) (*IpMessagingV2ServiceUser, error) { + path := "/v2/Services/{ServiceSid}/Users/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceUser{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateUserChannelParams Optional parameters for the method 'UpdateUserChannel' +type UpdateUserChannelParams struct { + LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` + LastConsumptionTimestamp *time.Time `json:"LastConsumptionTimestamp,omitempty"` + NotificationLevel *string `json:"NotificationLevel,omitempty"` +} + +/* +UpdateUserChannel Method for UpdateUserChannel + * @param serviceSid + * @param userSid + * @param channelSid + * @param optional nil or *UpdateUserChannelOpts - Optional Parameters: + * @param "LastConsumedMessageIndex" (*int32) - + * @param "LastConsumptionTimestamp" (time.Time) - + * @param "NotificationLevel" (string) - +@return IpMessagingV2ServiceUserUserChannel +*/ +func (c *DefaultApiService) UpdateUserChannel(serviceSid string, userSid string, channelSid string, params *UpdateUserChannelParams) (*IpMessagingV2ServiceUserUserChannel, error) { + path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.LastConsumedMessageIndex != nil { + data.Set("LastConsumedMessageIndex", string(*params.LastConsumedMessageIndex)) + } + if params != nil && params.LastConsumptionTimestamp != nil { + data.Set("LastConsumptionTimestamp", string(*params.LastConsumptionTimestamp)) + } + if params != nil && params.NotificationLevel != nil { + data.Set("NotificationLevel", *params.NotificationLevel) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceUserUserChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/ip/messaging/docs/CreateChannelRequest.md b/rest/ip/messaging/docs/CreateChannelRequest.md new file mode 100644 index 000000000..84b96e30a --- /dev/null +++ b/rest/ip/messaging/docs/CreateChannelRequest.md @@ -0,0 +1,17 @@ +# CreateChannelRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | | [optional] +**CreatedBy** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Type** | **string** | | [optional] +**UniqueName** | **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/rest/ip/messaging/docs/CreateChannelWebhookRequest.md b/rest/ip/messaging/docs/CreateChannelWebhookRequest.md new file mode 100644 index 000000000..cc1724665 --- /dev/null +++ b/rest/ip/messaging/docs/CreateChannelWebhookRequest.md @@ -0,0 +1,17 @@ +# CreateChannelWebhookRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConfigurationFilters** | **[]string** | | [optional] +**ConfigurationFlowSid** | **string** | | [optional] +**ConfigurationMethod** | **string** | | [optional] +**ConfigurationRetryCount** | **int32** | | [optional] +**ConfigurationTriggers** | **[]string** | | [optional] +**ConfigurationUrl** | **string** | | [optional] +**Type** | **string** | | + +[[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/rest/ip/messaging/docs/CreateCredentialRequest.md b/rest/ip/messaging/docs/CreateCredentialRequest.md new file mode 100644 index 000000000..fa5c0164d --- /dev/null +++ b/rest/ip/messaging/docs/CreateCredentialRequest.md @@ -0,0 +1,17 @@ +# CreateCredentialRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiKey** | **string** | | [optional] +**Certificate** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**PrivateKey** | **string** | | [optional] +**Sandbox** | **bool** | | [optional] +**Secret** | **string** | | [optional] +**Type** | **string** | | + +[[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/rest/ip/messaging/docs/CreateInviteRequest.md b/rest/ip/messaging/docs/CreateInviteRequest.md new file mode 100644 index 000000000..43c5c0937 --- /dev/null +++ b/rest/ip/messaging/docs/CreateInviteRequest.md @@ -0,0 +1,12 @@ +# CreateInviteRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Identity** | **string** | | +**RoleSid** | **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/rest/ip/messaging/docs/CreateMemberRequest.md b/rest/ip/messaging/docs/CreateMemberRequest.md new file mode 100644 index 000000000..c1d3f99d8 --- /dev/null +++ b/rest/ip/messaging/docs/CreateMemberRequest.md @@ -0,0 +1,17 @@ +# CreateMemberRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Identity** | **string** | | +**LastConsumedMessageIndex** | Pointer to **int32** | | [optional] +**LastConsumptionTimestamp** | [**time.Time**](time.Time.md) | | [optional] +**RoleSid** | **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/rest/ip/messaging/docs/CreateMessageRequest.md b/rest/ip/messaging/docs/CreateMessageRequest.md new file mode 100644 index 000000000..1698b9e86 --- /dev/null +++ b/rest/ip/messaging/docs/CreateMessageRequest.md @@ -0,0 +1,17 @@ +# CreateMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | | [optional] +**Body** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**From** | **string** | | [optional] +**LastUpdatedBy** | **string** | | [optional] +**MediaSid** | **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/rest/ip/messaging/docs/CreateRoleRequest.md b/rest/ip/messaging/docs/CreateRoleRequest.md new file mode 100644 index 000000000..9a963e6b5 --- /dev/null +++ b/rest/ip/messaging/docs/CreateRoleRequest.md @@ -0,0 +1,13 @@ +# CreateRoleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | | +**Permission** | **[]string** | | +**Type** | **string** | | + +[[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/rest/ip/messaging/docs/CreateServiceRequest.md b/rest/ip/messaging/docs/CreateServiceRequest.md new file mode 100644 index 000000000..6f06ae25c --- /dev/null +++ b/rest/ip/messaging/docs/CreateServiceRequest.md @@ -0,0 +1,11 @@ +# CreateServiceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | | + +[[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/rest/ip/messaging/docs/CreateUserRequest.md b/rest/ip/messaging/docs/CreateUserRequest.md new file mode 100644 index 000000000..dc8c612f2 --- /dev/null +++ b/rest/ip/messaging/docs/CreateUserRequest.md @@ -0,0 +1,14 @@ +# CreateUserRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**Identity** | **string** | | +**RoleSid** | **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/rest/ip/messaging/docs/DefaultApi.md b/rest/ip/messaging/docs/DefaultApi.md new file mode 100644 index 000000000..b7b3c5542 --- /dev/null +++ b/rest/ip/messaging/docs/DefaultApi.md @@ -0,0 +1,2334 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateChannel**](DefaultApi.md#CreateChannel) | **Post** /v2/Services/{ServiceSid}/Channels | +[**CreateChannelWebhook**](DefaultApi.md#CreateChannelWebhook) | **Post** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks | +[**CreateCredential**](DefaultApi.md#CreateCredential) | **Post** /v2/Credentials | +[**CreateInvite**](DefaultApi.md#CreateInvite) | **Post** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites | +[**CreateMember**](DefaultApi.md#CreateMember) | **Post** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members | +[**CreateMessage**](DefaultApi.md#CreateMessage) | **Post** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages | +[**CreateRole**](DefaultApi.md#CreateRole) | **Post** /v2/Services/{ServiceSid}/Roles | +[**CreateService**](DefaultApi.md#CreateService) | **Post** /v2/Services | +[**CreateUser**](DefaultApi.md#CreateUser) | **Post** /v2/Services/{ServiceSid}/Users | +[**DeleteBinding**](DefaultApi.md#DeleteBinding) | **Delete** /v2/Services/{ServiceSid}/Bindings/{Sid} | +[**DeleteChannel**](DefaultApi.md#DeleteChannel) | **Delete** /v2/Services/{ServiceSid}/Channels/{Sid} | +[**DeleteChannelWebhook**](DefaultApi.md#DeleteChannelWebhook) | **Delete** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid} | +[**DeleteCredential**](DefaultApi.md#DeleteCredential) | **Delete** /v2/Credentials/{Sid} | +[**DeleteInvite**](DefaultApi.md#DeleteInvite) | **Delete** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid} | +[**DeleteMember**](DefaultApi.md#DeleteMember) | **Delete** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid} | +[**DeleteMessage**](DefaultApi.md#DeleteMessage) | **Delete** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid} | +[**DeleteRole**](DefaultApi.md#DeleteRole) | **Delete** /v2/Services/{ServiceSid}/Roles/{Sid} | +[**DeleteService**](DefaultApi.md#DeleteService) | **Delete** /v2/Services/{Sid} | +[**DeleteUser**](DefaultApi.md#DeleteUser) | **Delete** /v2/Services/{ServiceSid}/Users/{Sid} | +[**DeleteUserBinding**](DefaultApi.md#DeleteUserBinding) | **Delete** /v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid} | +[**DeleteUserChannel**](DefaultApi.md#DeleteUserChannel) | **Delete** /v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid} | +[**FetchBinding**](DefaultApi.md#FetchBinding) | **Get** /v2/Services/{ServiceSid}/Bindings/{Sid} | +[**FetchChannel**](DefaultApi.md#FetchChannel) | **Get** /v2/Services/{ServiceSid}/Channels/{Sid} | +[**FetchChannelWebhook**](DefaultApi.md#FetchChannelWebhook) | **Get** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid} | +[**FetchCredential**](DefaultApi.md#FetchCredential) | **Get** /v2/Credentials/{Sid} | +[**FetchInvite**](DefaultApi.md#FetchInvite) | **Get** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid} | +[**FetchMember**](DefaultApi.md#FetchMember) | **Get** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid} | +[**FetchMessage**](DefaultApi.md#FetchMessage) | **Get** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid} | +[**FetchRole**](DefaultApi.md#FetchRole) | **Get** /v2/Services/{ServiceSid}/Roles/{Sid} | +[**FetchService**](DefaultApi.md#FetchService) | **Get** /v2/Services/{Sid} | +[**FetchUser**](DefaultApi.md#FetchUser) | **Get** /v2/Services/{ServiceSid}/Users/{Sid} | +[**FetchUserBinding**](DefaultApi.md#FetchUserBinding) | **Get** /v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid} | +[**FetchUserChannel**](DefaultApi.md#FetchUserChannel) | **Get** /v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid} | +[**ListBinding**](DefaultApi.md#ListBinding) | **Get** /v2/Services/{ServiceSid}/Bindings | +[**ListChannel**](DefaultApi.md#ListChannel) | **Get** /v2/Services/{ServiceSid}/Channels | +[**ListChannelWebhook**](DefaultApi.md#ListChannelWebhook) | **Get** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks | +[**ListCredential**](DefaultApi.md#ListCredential) | **Get** /v2/Credentials | +[**ListInvite**](DefaultApi.md#ListInvite) | **Get** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites | +[**ListMember**](DefaultApi.md#ListMember) | **Get** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members | +[**ListMessage**](DefaultApi.md#ListMessage) | **Get** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages | +[**ListRole**](DefaultApi.md#ListRole) | **Get** /v2/Services/{ServiceSid}/Roles | +[**ListService**](DefaultApi.md#ListService) | **Get** /v2/Services | +[**ListUser**](DefaultApi.md#ListUser) | **Get** /v2/Services/{ServiceSid}/Users | +[**ListUserBinding**](DefaultApi.md#ListUserBinding) | **Get** /v2/Services/{ServiceSid}/Users/{UserSid}/Bindings | +[**ListUserChannel**](DefaultApi.md#ListUserChannel) | **Get** /v2/Services/{ServiceSid}/Users/{UserSid}/Channels | +[**UpdateChannel**](DefaultApi.md#UpdateChannel) | **Post** /v2/Services/{ServiceSid}/Channels/{Sid} | +[**UpdateChannelWebhook**](DefaultApi.md#UpdateChannelWebhook) | **Post** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid} | +[**UpdateCredential**](DefaultApi.md#UpdateCredential) | **Post** /v2/Credentials/{Sid} | +[**UpdateMember**](DefaultApi.md#UpdateMember) | **Post** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid} | +[**UpdateMessage**](DefaultApi.md#UpdateMessage) | **Post** /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid} | +[**UpdateRole**](DefaultApi.md#UpdateRole) | **Post** /v2/Services/{ServiceSid}/Roles/{Sid} | +[**UpdateService**](DefaultApi.md#UpdateService) | **Post** /v2/Services/{Sid} | +[**UpdateUser**](DefaultApi.md#UpdateUser) | **Post** /v2/Services/{ServiceSid}/Users/{Sid} | +[**UpdateUserChannel**](DefaultApi.md#UpdateUserChannel) | **Post** /v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid} | + + + +## CreateChannel + +> IpMessagingV2ServiceChannel CreateChannel(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | + **optional** | ***CreateChannelOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateChannelOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **attributes** | **optional.String**| | + **createdBy** | **optional.String**| | + **dateCreated** | **optional.Time**| | + **dateUpdated** | **optional.Time**| | + **friendlyName** | **optional.String**| | + **type_** | **optional.String**| | + **uniqueName** | **optional.String**| | + +### Return type + +[**IpMessagingV2ServiceChannel**](ip_messaging.v2.service.channel.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) + + +## CreateChannelWebhook + +> IpMessagingV2ServiceChannelChannelWebhook CreateChannelWebhook(ctx, serviceSid, channelSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**channelSid** | **string**| | + **optional** | ***CreateChannelWebhookOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateChannelWebhookOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **configurationFilters** | [**optional.Interface of []string**](string.md)| | + **configurationFlowSid** | **optional.String**| | + **configurationMethod** | **optional.String**| | + **configurationRetryCount** | **optional.Int32**| | + **configurationTriggers** | [**optional.Interface of []string**](string.md)| | + **configurationUrl** | **optional.String**| | + **type_** | **optional.String**| | + +### Return type + +[**IpMessagingV2ServiceChannelChannelWebhook**](ip_messaging.v2.service.channel.channel_webhook.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) + + +## CreateCredential + +> IpMessagingV2Credential CreateCredential(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateCredentialOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateCredentialOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **apiKey** | **optional.String**| | + **certificate** | **optional.String**| | + **friendlyName** | **optional.String**| | + **privateKey** | **optional.String**| | + **sandbox** | **optional.Bool**| | + **secret** | **optional.String**| | + **type_** | **optional.String**| | + +### Return type + +[**IpMessagingV2Credential**](ip_messaging.v2.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) + + +## CreateInvite + +> IpMessagingV2ServiceChannelInvite CreateInvite(ctx, serviceSid, channelSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**channelSid** | **string**| | + **optional** | ***CreateInviteOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateInviteOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **identity** | **optional.String**| | + **roleSid** | **optional.String**| | + +### Return type + +[**IpMessagingV2ServiceChannelInvite**](ip_messaging.v2.service.channel.invite.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) + + +## CreateMember + +> IpMessagingV2ServiceChannelMember CreateMember(ctx, serviceSid, channelSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**channelSid** | **string**| | + **optional** | ***CreateMemberOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateMemberOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **attributes** | **optional.String**| | + **dateCreated** | **optional.Time**| | + **dateUpdated** | **optional.Time**| | + **identity** | **optional.String**| | + **lastConsumedMessageIndex** | **optional.Int32**| | + **lastConsumptionTimestamp** | **optional.Time**| | + **roleSid** | **optional.String**| | + +### Return type + +[**IpMessagingV2ServiceChannelMember**](ip_messaging.v2.service.channel.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) + + +## CreateMessage + +> IpMessagingV2ServiceChannelMessage CreateMessage(ctx, serviceSid, channelSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**channelSid** | **string**| | + **optional** | ***CreateMessageOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateMessageOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **attributes** | **optional.String**| | + **body** | **optional.String**| | + **dateCreated** | **optional.Time**| | + **dateUpdated** | **optional.Time**| | + **from** | **optional.String**| | + **lastUpdatedBy** | **optional.String**| | + **mediaSid** | **optional.String**| | + +### Return type + +[**IpMessagingV2ServiceChannelMessage**](ip_messaging.v2.service.channel.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) + + +## CreateRole + +> IpMessagingV2ServiceRole CreateRole(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | + **optional** | ***CreateRoleOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateRoleOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **friendlyName** | **optional.String**| | + **permission** | [**optional.Interface of []string**](string.md)| | + **type_** | **optional.String**| | + +### Return type + +[**IpMessagingV2ServiceRole**](ip_messaging.v2.service.role.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) + + +## CreateService + +> IpMessagingV2Service CreateService(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateServiceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateServiceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **friendlyName** | **optional.String**| | + +### Return type + +[**IpMessagingV2Service**](ip_messaging.v2.service.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) + + +## CreateUser + +> IpMessagingV2ServiceUser CreateUser(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | + **optional** | ***CreateUserOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateUserOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **attributes** | **optional.String**| | + **friendlyName** | **optional.String**| | + **identity** | **optional.String**| | + **roleSid** | **optional.String**| | + +### Return type + +[**IpMessagingV2ServiceUser**](ip_messaging.v2.service.user.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) + + +## DeleteBinding + +> DeleteBinding(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**sid** | **string**| | + +### 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) + + +## DeleteChannel + +> DeleteChannel(ctx, serviceSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**sid** | **string**| | + **optional** | ***DeleteChannelOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a DeleteChannelOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + +### 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) + + +## DeleteChannelWebhook + +> DeleteChannelWebhook(ctx, serviceSid, channelSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**channelSid** | **string**| | +**sid** | **string**| | + +### 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) + + +## DeleteCredential + +> DeleteCredential(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| | + +### 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) + + +## DeleteInvite + +> DeleteInvite(ctx, serviceSid, channelSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**channelSid** | **string**| | +**sid** | **string**| | + +### 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) + + +## DeleteMember + +> DeleteMember(ctx, serviceSid, channelSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**channelSid** | **string**| | +**sid** | **string**| | + **optional** | ***DeleteMemberOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a DeleteMemberOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + +### 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) + + +## DeleteMessage + +> DeleteMessage(ctx, serviceSid, channelSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**channelSid** | **string**| | +**sid** | **string**| | + **optional** | ***DeleteMessageOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a DeleteMessageOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + +### 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) + + +## DeleteRole + +> DeleteRole(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**sid** | **string**| | + +### 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) + + +## DeleteService + +> DeleteService(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| | + +### 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) + + +## DeleteUser + +> DeleteUser(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**sid** | **string**| | + +### 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) + + +## DeleteUserBinding + +> DeleteUserBinding(ctx, serviceSid, userSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**userSid** | **string**| | +**sid** | **string**| | + +### 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) + + +## DeleteUserChannel + +> DeleteUserChannel(ctx, serviceSid, userSid, channelSid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**userSid** | **string**| | +**channelSid** | **string**| | + +### 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) + + +## FetchBinding + +> IpMessagingV2ServiceBinding FetchBinding(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**sid** | **string**| | + +### Return type + +[**IpMessagingV2ServiceBinding**](ip_messaging.v2.service.binding.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) + + +## FetchChannel + +> IpMessagingV2ServiceChannel FetchChannel(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**sid** | **string**| | + +### Return type + +[**IpMessagingV2ServiceChannel**](ip_messaging.v2.service.channel.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) + + +## FetchChannelWebhook + +> IpMessagingV2ServiceChannelChannelWebhook FetchChannelWebhook(ctx, serviceSid, channelSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**channelSid** | **string**| | +**sid** | **string**| | + +### Return type + +[**IpMessagingV2ServiceChannelChannelWebhook**](ip_messaging.v2.service.channel.channel_webhook.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) + + +## FetchCredential + +> IpMessagingV2Credential FetchCredential(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| | + +### Return type + +[**IpMessagingV2Credential**](ip_messaging.v2.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) + + +## FetchInvite + +> IpMessagingV2ServiceChannelInvite FetchInvite(ctx, serviceSid, channelSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**channelSid** | **string**| | +**sid** | **string**| | + +### Return type + +[**IpMessagingV2ServiceChannelInvite**](ip_messaging.v2.service.channel.invite.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) + + +## FetchMember + +> IpMessagingV2ServiceChannelMember FetchMember(ctx, serviceSid, channelSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**channelSid** | **string**| | +**sid** | **string**| | + +### Return type + +[**IpMessagingV2ServiceChannelMember**](ip_messaging.v2.service.channel.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) + + +## FetchMessage + +> IpMessagingV2ServiceChannelMessage FetchMessage(ctx, serviceSid, channelSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**channelSid** | **string**| | +**sid** | **string**| | + +### Return type + +[**IpMessagingV2ServiceChannelMessage**](ip_messaging.v2.service.channel.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) + + +## FetchRole + +> IpMessagingV2ServiceRole FetchRole(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**sid** | **string**| | + +### Return type + +[**IpMessagingV2ServiceRole**](ip_messaging.v2.service.role.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) + + +## FetchService + +> IpMessagingV2Service FetchService(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| | + +### Return type + +[**IpMessagingV2Service**](ip_messaging.v2.service.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) + + +## FetchUser + +> IpMessagingV2ServiceUser FetchUser(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**sid** | **string**| | + +### Return type + +[**IpMessagingV2ServiceUser**](ip_messaging.v2.service.user.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) + + +## FetchUserBinding + +> IpMessagingV2ServiceUserUserBinding FetchUserBinding(ctx, serviceSid, userSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**userSid** | **string**| | +**sid** | **string**| | + +### Return type + +[**IpMessagingV2ServiceUserUserBinding**](ip_messaging.v2.service.user.user_binding.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) + + +## FetchUserChannel + +> IpMessagingV2ServiceUserUserChannel FetchUserChannel(ctx, serviceSid, userSid, channelSid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**userSid** | **string**| | +**channelSid** | **string**| | + +### Return type + +[**IpMessagingV2ServiceUserUserChannel**](ip_messaging.v2.service.user.user_channel.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) + + +## ListBinding + +> IpMessagingV2ServiceBindingReadResponse ListBinding(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | + **optional** | ***ListBindingOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListBindingOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **bindingType** | [**optional.Interface of []string**](string.md)| | + **identity** | [**optional.Interface of []string**](string.md)| | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**IpMessagingV2ServiceBindingReadResponse**](ip_messaging_v2_service_bindingReadResponse.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) + + +## ListChannel + +> IpMessagingV2ServiceChannelReadResponse ListChannel(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | + **optional** | ***ListChannelOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListChannelOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **type_** | [**optional.Interface of []string**](string.md)| | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**IpMessagingV2ServiceChannelReadResponse**](ip_messaging_v2_service_channelReadResponse.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) + + +## ListChannelWebhook + +> IpMessagingV2ServiceChannelChannelWebhookReadResponse ListChannelWebhook(ctx, serviceSid, channelSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**channelSid** | **string**| | + **optional** | ***ListChannelWebhookOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListChannelWebhookOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**IpMessagingV2ServiceChannelChannelWebhookReadResponse**](ip_messaging_v2_service_channel_channel_webhookReadResponse.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) + + +## ListCredential + +> IpMessagingV2CredentialReadResponse ListCredential(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListCredentialOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListCredentialOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**IpMessagingV2CredentialReadResponse**](ip_messaging_v2_credentialReadResponse.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) + + +## ListInvite + +> IpMessagingV2ServiceChannelInviteReadResponse ListInvite(ctx, serviceSid, channelSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**channelSid** | **string**| | + **optional** | ***ListInviteOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListInviteOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **identity** | [**optional.Interface of []string**](string.md)| | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**IpMessagingV2ServiceChannelInviteReadResponse**](ip_messaging_v2_service_channel_inviteReadResponse.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) + + +## ListMember + +> IpMessagingV2ServiceChannelMemberReadResponse ListMember(ctx, serviceSid, channelSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**channelSid** | **string**| | + **optional** | ***ListMemberOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListMemberOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **identity** | [**optional.Interface of []string**](string.md)| | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**IpMessagingV2ServiceChannelMemberReadResponse**](ip_messaging_v2_service_channel_memberReadResponse.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) + + +## ListMessage + +> IpMessagingV2ServiceChannelMessageReadResponse ListMessage(ctx, serviceSid, channelSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**channelSid** | **string**| | + **optional** | ***ListMessageOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListMessageOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **order** | **optional.String**| | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**IpMessagingV2ServiceChannelMessageReadResponse**](ip_messaging_v2_service_channel_messageReadResponse.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) + + +## ListRole + +> IpMessagingV2ServiceRoleReadResponse ListRole(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | + **optional** | ***ListRoleOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListRoleOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**IpMessagingV2ServiceRoleReadResponse**](ip_messaging_v2_service_roleReadResponse.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) + + +## ListService + +> IpMessagingV2ServiceReadResponse ListService(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListServiceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListServiceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**IpMessagingV2ServiceReadResponse**](ip_messaging_v2_serviceReadResponse.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) + + +## ListUser + +> IpMessagingV2ServiceUserReadResponse ListUser(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | + **optional** | ***ListUserOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListUserOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**IpMessagingV2ServiceUserReadResponse**](ip_messaging_v2_service_userReadResponse.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) + + +## ListUserBinding + +> IpMessagingV2ServiceUserUserBindingReadResponse ListUserBinding(ctx, serviceSid, userSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**userSid** | **string**| | + **optional** | ***ListUserBindingOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListUserBindingOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **bindingType** | [**optional.Interface of []string**](string.md)| | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**IpMessagingV2ServiceUserUserBindingReadResponse**](ip_messaging_v2_service_user_user_bindingReadResponse.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) + + +## ListUserChannel + +> IpMessagingV2ServiceUserUserChannelReadResponse ListUserChannel(ctx, serviceSid, userSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**userSid** | **string**| | + **optional** | ***ListUserChannelOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListUserChannelOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**IpMessagingV2ServiceUserUserChannelReadResponse**](ip_messaging_v2_service_user_user_channelReadResponse.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) + + +## UpdateChannel + +> IpMessagingV2ServiceChannel UpdateChannel(ctx, serviceSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**sid** | **string**| | + **optional** | ***UpdateChannelOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateChannelOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **attributes** | **optional.String**| | + **createdBy** | **optional.String**| | + **dateCreated** | **optional.Time**| | + **dateUpdated** | **optional.Time**| | + **friendlyName** | **optional.String**| | + **uniqueName** | **optional.String**| | + +### Return type + +[**IpMessagingV2ServiceChannel**](ip_messaging.v2.service.channel.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) + + +## UpdateChannelWebhook + +> IpMessagingV2ServiceChannelChannelWebhook UpdateChannelWebhook(ctx, serviceSid, channelSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**channelSid** | **string**| | +**sid** | **string**| | + **optional** | ***UpdateChannelWebhookOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateChannelWebhookOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **configurationFilters** | [**optional.Interface of []string**](string.md)| | + **configurationFlowSid** | **optional.String**| | + **configurationMethod** | **optional.String**| | + **configurationRetryCount** | **optional.Int32**| | + **configurationTriggers** | [**optional.Interface of []string**](string.md)| | + **configurationUrl** | **optional.String**| | + +### Return type + +[**IpMessagingV2ServiceChannelChannelWebhook**](ip_messaging.v2.service.channel.channel_webhook.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) + + +## UpdateCredential + +> IpMessagingV2Credential UpdateCredential(ctx, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| | + **optional** | ***UpdateCredentialOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateCredentialOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **apiKey** | **optional.String**| | + **certificate** | **optional.String**| | + **friendlyName** | **optional.String**| | + **privateKey** | **optional.String**| | + **sandbox** | **optional.Bool**| | + **secret** | **optional.String**| | + +### Return type + +[**IpMessagingV2Credential**](ip_messaging.v2.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) + + +## UpdateMember + +> IpMessagingV2ServiceChannelMember UpdateMember(ctx, serviceSid, channelSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**channelSid** | **string**| | +**sid** | **string**| | + **optional** | ***UpdateMemberOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateMemberOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **attributes** | **optional.String**| | + **dateCreated** | **optional.Time**| | + **dateUpdated** | **optional.Time**| | + **lastConsumedMessageIndex** | **optional.Int32**| | + **lastConsumptionTimestamp** | **optional.Time**| | + **roleSid** | **optional.String**| | + +### Return type + +[**IpMessagingV2ServiceChannelMember**](ip_messaging.v2.service.channel.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) + + +## UpdateMessage + +> IpMessagingV2ServiceChannelMessage UpdateMessage(ctx, serviceSid, channelSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**channelSid** | **string**| | +**sid** | **string**| | + **optional** | ***UpdateMessageOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateMessageOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **attributes** | **optional.String**| | + **body** | **optional.String**| | + **dateCreated** | **optional.Time**| | + **dateUpdated** | **optional.Time**| | + **from** | **optional.String**| | + **lastUpdatedBy** | **optional.String**| | + +### Return type + +[**IpMessagingV2ServiceChannelMessage**](ip_messaging.v2.service.channel.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) + + +## UpdateRole + +> IpMessagingV2ServiceRole UpdateRole(ctx, serviceSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**sid** | **string**| | + **optional** | ***UpdateRoleOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateRoleOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **permission** | [**optional.Interface of []string**](string.md)| | + +### Return type + +[**IpMessagingV2ServiceRole**](ip_messaging.v2.service.role.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) + + +## UpdateService + +> IpMessagingV2Service UpdateService(ctx, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| | + **optional** | ***UpdateServiceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateServiceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **consumptionReportInterval** | **optional.Int32**| | + **defaultChannelCreatorRoleSid** | **optional.String**| | + **defaultChannelRoleSid** | **optional.String**| | + **defaultServiceRoleSid** | **optional.String**| | + **friendlyName** | **optional.String**| | + **limitsChannelMembers** | **optional.Int32**| | + **limitsUserChannels** | **optional.Int32**| | + **mediaCompatibilityMessage** | **optional.String**| | + **notificationsAddedToChannelEnabled** | **optional.Bool**| | + **notificationsAddedToChannelSound** | **optional.String**| | + **notificationsAddedToChannelTemplate** | **optional.String**| | + **notificationsInvitedToChannelEnabled** | **optional.Bool**| | + **notificationsInvitedToChannelSound** | **optional.String**| | + **notificationsInvitedToChannelTemplate** | **optional.String**| | + **notificationsLogEnabled** | **optional.Bool**| | + **notificationsNewMessageBadgeCountEnabled** | **optional.Bool**| | + **notificationsNewMessageEnabled** | **optional.Bool**| | + **notificationsNewMessageSound** | **optional.String**| | + **notificationsNewMessageTemplate** | **optional.String**| | + **notificationsRemovedFromChannelEnabled** | **optional.Bool**| | + **notificationsRemovedFromChannelSound** | **optional.String**| | + **notificationsRemovedFromChannelTemplate** | **optional.String**| | + **postWebhookRetryCount** | **optional.Int32**| | + **postWebhookUrl** | **optional.String**| | + **preWebhookRetryCount** | **optional.Int32**| | + **preWebhookUrl** | **optional.String**| | + **reachabilityEnabled** | **optional.Bool**| | + **readStatusEnabled** | **optional.Bool**| | + **typingIndicatorTimeout** | **optional.Int32**| | + **webhookFilters** | [**optional.Interface of []string**](string.md)| | + **webhookMethod** | **optional.String**| | + +### Return type + +[**IpMessagingV2Service**](ip_messaging.v2.service.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) + + +## UpdateUser + +> IpMessagingV2ServiceUser UpdateUser(ctx, serviceSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**sid** | **string**| | + **optional** | ***UpdateUserOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateUserOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **attributes** | **optional.String**| | + **friendlyName** | **optional.String**| | + **roleSid** | **optional.String**| | + +### Return type + +[**IpMessagingV2ServiceUser**](ip_messaging.v2.service.user.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) + + +## UpdateUserChannel + +> IpMessagingV2ServiceUserUserChannel UpdateUserChannel(ctx, serviceSid, userSid, channelSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**userSid** | **string**| | +**channelSid** | **string**| | + **optional** | ***UpdateUserChannelOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateUserChannelOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **lastConsumedMessageIndex** | **optional.Int32**| | + **lastConsumptionTimestamp** | **optional.Time**| | + **notificationLevel** | **optional.String**| | + +### Return type + +[**IpMessagingV2ServiceUserUserChannel**](ip_messaging.v2.service.user.user_channel.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/rest/ip/messaging/docs/IpMessagingV1Credential.md b/rest/ip/messaging/docs/IpMessagingV1Credential.md new file mode 100644 index 000000000..64fa0968f --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV1Credential.md @@ -0,0 +1,18 @@ +# IpMessagingV1Credential + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Sandbox** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Type** | **string** | | [optional] +**Url** | **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/rest/ip/messaging/docs/IpMessagingV1CredentialReadResponse.md b/rest/ip/messaging/docs/IpMessagingV1CredentialReadResponse.md new file mode 100644 index 000000000..5755dae87 --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV1CredentialReadResponse.md @@ -0,0 +1,12 @@ +# IpMessagingV1CredentialReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Credentials** | [**[]IpMessagingV1Credential**](ip_messaging.v1.credential.md) | | [optional] +**Meta** | [**IpMessagingV1CredentialReadResponseMeta**](ip_messaging_v1_credentialReadResponse_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/rest/ip/messaging/docs/IpMessagingV1CredentialReadResponseMeta.md b/rest/ip/messaging/docs/IpMessagingV1CredentialReadResponseMeta.md new file mode 100644 index 000000000..b98a5433a --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV1CredentialReadResponseMeta.md @@ -0,0 +1,17 @@ +# IpMessagingV1CredentialReadResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/ip/messaging/docs/IpMessagingV1Service.md b/rest/ip/messaging/docs/IpMessagingV1Service.md new file mode 100644 index 000000000..422e45bb6 --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV1Service.md @@ -0,0 +1,31 @@ +# IpMessagingV1Service + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ConsumptionReportInterval** | **int32** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**DefaultChannelCreatorRoleSid** | **string** | | [optional] +**DefaultChannelRoleSid** | **string** | | [optional] +**DefaultServiceRoleSid** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**Limits** | [**map[string]interface{}**](.md) | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Notifications** | [**map[string]interface{}**](.md) | | [optional] +**PostWebhookUrl** | **string** | | [optional] +**PreWebhookUrl** | **string** | | [optional] +**ReachabilityEnabled** | **bool** | | [optional] +**ReadStatusEnabled** | **bool** | | [optional] +**Sid** | **string** | | [optional] +**TypingIndicatorTimeout** | **int32** | | [optional] +**Url** | **string** | | [optional] +**WebhookFilters** | **[]string** | | [optional] +**WebhookMethod** | **string** | | [optional] +**Webhooks** | [**map[string]interface{}**](.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/rest/ip/messaging/docs/IpMessagingV1ServiceChannel.md b/rest/ip/messaging/docs/IpMessagingV1ServiceChannel.md new file mode 100644 index 000000000..8b9381b48 --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV1ServiceChannel.md @@ -0,0 +1,24 @@ +# IpMessagingV1ServiceChannel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Attributes** | **string** | | [optional] +**CreatedBy** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**MembersCount** | **int32** | | [optional] +**MessagesCount** | **int32** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Type** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **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/rest/ip/messaging/docs/IpMessagingV1ServiceChannelInvite.md b/rest/ip/messaging/docs/IpMessagingV1ServiceChannelInvite.md new file mode 100644 index 000000000..c44cc8f02 --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV1ServiceChannelInvite.md @@ -0,0 +1,20 @@ +# IpMessagingV1ServiceChannelInvite + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ChannelSid** | **string** | | [optional] +**CreatedBy** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Identity** | **string** | | [optional] +**RoleSid** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/ip/messaging/docs/IpMessagingV1ServiceChannelInviteReadResponse.md b/rest/ip/messaging/docs/IpMessagingV1ServiceChannelInviteReadResponse.md new file mode 100644 index 000000000..049fb812e --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV1ServiceChannelInviteReadResponse.md @@ -0,0 +1,12 @@ +# IpMessagingV1ServiceChannelInviteReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Invites** | [**[]IpMessagingV1ServiceChannelInvite**](ip_messaging.v1.service.channel.invite.md) | | [optional] +**Meta** | [**IpMessagingV1CredentialReadResponseMeta**](ip_messaging_v1_credentialReadResponse_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/rest/ip/messaging/docs/IpMessagingV1ServiceChannelMember.md b/rest/ip/messaging/docs/IpMessagingV1ServiceChannelMember.md new file mode 100644 index 000000000..b81e64eef --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV1ServiceChannelMember.md @@ -0,0 +1,21 @@ +# IpMessagingV1ServiceChannelMember + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ChannelSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Identity** | **string** | | [optional] +**LastConsumedMessageIndex** | Pointer to **int32** | | [optional] +**LastConsumptionTimestamp** | [**time.Time**](time.Time.md) | | [optional] +**RoleSid** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/ip/messaging/docs/IpMessagingV1ServiceChannelMemberReadResponse.md b/rest/ip/messaging/docs/IpMessagingV1ServiceChannelMemberReadResponse.md new file mode 100644 index 000000000..84a1cf711 --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV1ServiceChannelMemberReadResponse.md @@ -0,0 +1,12 @@ +# IpMessagingV1ServiceChannelMemberReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Members** | [**[]IpMessagingV1ServiceChannelMember**](ip_messaging.v1.service.channel.member.md) | | [optional] +**Meta** | [**IpMessagingV1CredentialReadResponseMeta**](ip_messaging_v1_credentialReadResponse_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/rest/ip/messaging/docs/IpMessagingV1ServiceChannelMessage.md b/rest/ip/messaging/docs/IpMessagingV1ServiceChannelMessage.md new file mode 100644 index 000000000..540682201 --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV1ServiceChannelMessage.md @@ -0,0 +1,23 @@ +# IpMessagingV1ServiceChannelMessage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Attributes** | **string** | | [optional] +**Body** | **string** | | [optional] +**ChannelSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**From** | **string** | | [optional] +**Index** | **int32** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**To** | **string** | | [optional] +**Url** | **string** | | [optional] +**WasEdited** | **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/rest/ip/messaging/docs/IpMessagingV1ServiceChannelMessageReadResponse.md b/rest/ip/messaging/docs/IpMessagingV1ServiceChannelMessageReadResponse.md new file mode 100644 index 000000000..e28ca3cb7 --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV1ServiceChannelMessageReadResponse.md @@ -0,0 +1,12 @@ +# IpMessagingV1ServiceChannelMessageReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Messages** | [**[]IpMessagingV1ServiceChannelMessage**](ip_messaging.v1.service.channel.message.md) | | [optional] +**Meta** | [**IpMessagingV1CredentialReadResponseMeta**](ip_messaging_v1_credentialReadResponse_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/rest/ip/messaging/docs/IpMessagingV1ServiceChannelReadResponse.md b/rest/ip/messaging/docs/IpMessagingV1ServiceChannelReadResponse.md new file mode 100644 index 000000000..e363f359c --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV1ServiceChannelReadResponse.md @@ -0,0 +1,12 @@ +# IpMessagingV1ServiceChannelReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Channels** | [**[]IpMessagingV1ServiceChannel**](ip_messaging.v1.service.channel.md) | | [optional] +**Meta** | [**IpMessagingV1CredentialReadResponseMeta**](ip_messaging_v1_credentialReadResponse_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/rest/ip/messaging/docs/IpMessagingV1ServiceReadResponse.md b/rest/ip/messaging/docs/IpMessagingV1ServiceReadResponse.md new file mode 100644 index 000000000..e7ebf23cb --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV1ServiceReadResponse.md @@ -0,0 +1,12 @@ +# IpMessagingV1ServiceReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**IpMessagingV1CredentialReadResponseMeta**](ip_messaging_v1_credentialReadResponse_meta.md) | | [optional] +**Services** | [**[]IpMessagingV1Service**](ip_messaging.v1.service.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/rest/ip/messaging/docs/IpMessagingV1ServiceRole.md b/rest/ip/messaging/docs/IpMessagingV1ServiceRole.md new file mode 100644 index 000000000..7b82c111f --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV1ServiceRole.md @@ -0,0 +1,19 @@ +# IpMessagingV1ServiceRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Permissions** | **[]string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Type** | **string** | | [optional] +**Url** | **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/rest/ip/messaging/docs/IpMessagingV1ServiceRoleReadResponse.md b/rest/ip/messaging/docs/IpMessagingV1ServiceRoleReadResponse.md new file mode 100644 index 000000000..431eb6b7b --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV1ServiceRoleReadResponse.md @@ -0,0 +1,12 @@ +# IpMessagingV1ServiceRoleReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**IpMessagingV1CredentialReadResponseMeta**](ip_messaging_v1_credentialReadResponse_meta.md) | | [optional] +**Roles** | [**[]IpMessagingV1ServiceRole**](ip_messaging.v1.service.role.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/rest/ip/messaging/docs/IpMessagingV1ServiceUser.md b/rest/ip/messaging/docs/IpMessagingV1ServiceUser.md new file mode 100644 index 000000000..92de86113 --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV1ServiceUser.md @@ -0,0 +1,24 @@ +# IpMessagingV1ServiceUser + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Attributes** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Identity** | **string** | | [optional] +**IsNotifiable** | **bool** | | [optional] +**IsOnline** | **bool** | | [optional] +**JoinedChannelsCount** | **int32** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**RoleSid** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/ip/messaging/docs/IpMessagingV1ServiceUserReadResponse.md b/rest/ip/messaging/docs/IpMessagingV1ServiceUserReadResponse.md new file mode 100644 index 000000000..1930d98b3 --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV1ServiceUserReadResponse.md @@ -0,0 +1,12 @@ +# IpMessagingV1ServiceUserReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**IpMessagingV1CredentialReadResponseMeta**](ip_messaging_v1_credentialReadResponse_meta.md) | | [optional] +**Users** | [**[]IpMessagingV1ServiceUser**](ip_messaging.v1.service.user.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/rest/ip/messaging/docs/IpMessagingV1ServiceUserUserChannel.md b/rest/ip/messaging/docs/IpMessagingV1ServiceUserUserChannel.md new file mode 100644 index 000000000..e9bfb16c2 --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV1ServiceUserUserChannel.md @@ -0,0 +1,18 @@ +# IpMessagingV1ServiceUserUserChannel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ChannelSid** | **string** | | [optional] +**LastConsumedMessageIndex** | Pointer to **int32** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**MemberSid** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Status** | **string** | | [optional] +**UnreadMessagesCount** | Pointer to **int32** | | [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/rest/ip/messaging/docs/IpMessagingV1ServiceUserUserChannelReadResponse.md b/rest/ip/messaging/docs/IpMessagingV1ServiceUserUserChannelReadResponse.md new file mode 100644 index 000000000..0c94d3e7d --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV1ServiceUserUserChannelReadResponse.md @@ -0,0 +1,12 @@ +# IpMessagingV1ServiceUserUserChannelReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Channels** | [**[]IpMessagingV1ServiceUserUserChannel**](ip_messaging.v1.service.user.user_channel.md) | | [optional] +**Meta** | [**IpMessagingV1CredentialReadResponseMeta**](ip_messaging_v1_credentialReadResponse_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/rest/ip/messaging/docs/IpMessagingV2Credential.md b/rest/ip/messaging/docs/IpMessagingV2Credential.md new file mode 100644 index 000000000..46853c3f7 --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV2Credential.md @@ -0,0 +1,18 @@ +# IpMessagingV2Credential + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Sandbox** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Type** | **string** | | [optional] +**Url** | **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/rest/ip/messaging/docs/IpMessagingV2CredentialReadResponse.md b/rest/ip/messaging/docs/IpMessagingV2CredentialReadResponse.md new file mode 100644 index 000000000..a0ab73af3 --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV2CredentialReadResponse.md @@ -0,0 +1,12 @@ +# IpMessagingV2CredentialReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Credentials** | [**[]IpMessagingV2Credential**](ip_messaging.v2.credential.md) | | [optional] +**Meta** | [**IpMessagingV2CredentialReadResponseMeta**](ip_messaging_v2_credentialReadResponse_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/rest/ip/messaging/docs/IpMessagingV2CredentialReadResponseMeta.md b/rest/ip/messaging/docs/IpMessagingV2CredentialReadResponseMeta.md new file mode 100644 index 000000000..9448d0178 --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV2CredentialReadResponseMeta.md @@ -0,0 +1,17 @@ +# IpMessagingV2CredentialReadResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/ip/messaging/docs/IpMessagingV2Service.md b/rest/ip/messaging/docs/IpMessagingV2Service.md new file mode 100644 index 000000000..5100d807e --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV2Service.md @@ -0,0 +1,33 @@ +# IpMessagingV2Service + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ConsumptionReportInterval** | **int32** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**DefaultChannelCreatorRoleSid** | **string** | | [optional] +**DefaultChannelRoleSid** | **string** | | [optional] +**DefaultServiceRoleSid** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**Limits** | [**map[string]interface{}**](.md) | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Media** | [**map[string]interface{}**](.md) | | [optional] +**Notifications** | [**map[string]interface{}**](.md) | | [optional] +**PostWebhookRetryCount** | **int32** | | [optional] +**PostWebhookUrl** | **string** | | [optional] +**PreWebhookRetryCount** | **int32** | | [optional] +**PreWebhookUrl** | **string** | | [optional] +**ReachabilityEnabled** | **bool** | | [optional] +**ReadStatusEnabled** | **bool** | | [optional] +**Sid** | **string** | | [optional] +**TypingIndicatorTimeout** | **int32** | | [optional] +**Url** | **string** | | [optional] +**WebhookFilters** | **[]string** | | [optional] +**WebhookMethod** | **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/rest/ip/messaging/docs/IpMessagingV2ServiceBinding.md b/rest/ip/messaging/docs/IpMessagingV2ServiceBinding.md new file mode 100644 index 000000000..1da324cc4 --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV2ServiceBinding.md @@ -0,0 +1,22 @@ +# IpMessagingV2ServiceBinding + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**BindingType** | **string** | | [optional] +**CredentialSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Endpoint** | **string** | | [optional] +**Identity** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**MessageTypes** | **[]string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/ip/messaging/docs/IpMessagingV2ServiceBindingReadResponse.md b/rest/ip/messaging/docs/IpMessagingV2ServiceBindingReadResponse.md new file mode 100644 index 000000000..0c8f31707 --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV2ServiceBindingReadResponse.md @@ -0,0 +1,12 @@ +# IpMessagingV2ServiceBindingReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Bindings** | [**[]IpMessagingV2ServiceBinding**](ip_messaging.v2.service.binding.md) | | [optional] +**Meta** | [**IpMessagingV2CredentialReadResponseMeta**](ip_messaging_v2_credentialReadResponse_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/rest/ip/messaging/docs/IpMessagingV2ServiceChannel.md b/rest/ip/messaging/docs/IpMessagingV2ServiceChannel.md new file mode 100644 index 000000000..b67eff3d8 --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV2ServiceChannel.md @@ -0,0 +1,24 @@ +# IpMessagingV2ServiceChannel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Attributes** | **string** | | [optional] +**CreatedBy** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**MembersCount** | **int32** | | [optional] +**MessagesCount** | **int32** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Type** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **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/rest/ip/messaging/docs/IpMessagingV2ServiceChannelChannelWebhook.md b/rest/ip/messaging/docs/IpMessagingV2ServiceChannelChannelWebhook.md new file mode 100644 index 000000000..553d43eb8 --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV2ServiceChannelChannelWebhook.md @@ -0,0 +1,19 @@ +# IpMessagingV2ServiceChannelChannelWebhook + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ChannelSid** | **string** | | [optional] +**Configuration** | [**map[string]interface{}**](.md) | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Type** | **string** | | [optional] +**Url** | **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/rest/ip/messaging/docs/IpMessagingV2ServiceChannelChannelWebhookReadResponse.md b/rest/ip/messaging/docs/IpMessagingV2ServiceChannelChannelWebhookReadResponse.md new file mode 100644 index 000000000..45a703881 --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV2ServiceChannelChannelWebhookReadResponse.md @@ -0,0 +1,12 @@ +# IpMessagingV2ServiceChannelChannelWebhookReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**IpMessagingV2CredentialReadResponseMeta**](ip_messaging_v2_credentialReadResponse_meta.md) | | [optional] +**Webhooks** | [**[]IpMessagingV2ServiceChannelChannelWebhook**](ip_messaging.v2.service.channel.channel_webhook.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/rest/ip/messaging/docs/IpMessagingV2ServiceChannelInvite.md b/rest/ip/messaging/docs/IpMessagingV2ServiceChannelInvite.md new file mode 100644 index 000000000..b10d8564c --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV2ServiceChannelInvite.md @@ -0,0 +1,20 @@ +# IpMessagingV2ServiceChannelInvite + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ChannelSid** | **string** | | [optional] +**CreatedBy** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Identity** | **string** | | [optional] +**RoleSid** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/ip/messaging/docs/IpMessagingV2ServiceChannelInviteReadResponse.md b/rest/ip/messaging/docs/IpMessagingV2ServiceChannelInviteReadResponse.md new file mode 100644 index 000000000..612414c0e --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV2ServiceChannelInviteReadResponse.md @@ -0,0 +1,12 @@ +# IpMessagingV2ServiceChannelInviteReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Invites** | [**[]IpMessagingV2ServiceChannelInvite**](ip_messaging.v2.service.channel.invite.md) | | [optional] +**Meta** | [**IpMessagingV2CredentialReadResponseMeta**](ip_messaging_v2_credentialReadResponse_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/rest/ip/messaging/docs/IpMessagingV2ServiceChannelMember.md b/rest/ip/messaging/docs/IpMessagingV2ServiceChannelMember.md new file mode 100644 index 000000000..6c5668362 --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV2ServiceChannelMember.md @@ -0,0 +1,22 @@ +# IpMessagingV2ServiceChannelMember + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Attributes** | **string** | | [optional] +**ChannelSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Identity** | **string** | | [optional] +**LastConsumedMessageIndex** | Pointer to **int32** | | [optional] +**LastConsumptionTimestamp** | [**time.Time**](time.Time.md) | | [optional] +**RoleSid** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/ip/messaging/docs/IpMessagingV2ServiceChannelMemberReadResponse.md b/rest/ip/messaging/docs/IpMessagingV2ServiceChannelMemberReadResponse.md new file mode 100644 index 000000000..41e62515d --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV2ServiceChannelMemberReadResponse.md @@ -0,0 +1,12 @@ +# IpMessagingV2ServiceChannelMemberReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Members** | [**[]IpMessagingV2ServiceChannelMember**](ip_messaging.v2.service.channel.member.md) | | [optional] +**Meta** | [**IpMessagingV2CredentialReadResponseMeta**](ip_messaging_v2_credentialReadResponse_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/rest/ip/messaging/docs/IpMessagingV2ServiceChannelMessage.md b/rest/ip/messaging/docs/IpMessagingV2ServiceChannelMessage.md new file mode 100644 index 000000000..24b7588f6 --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV2ServiceChannelMessage.md @@ -0,0 +1,26 @@ +# IpMessagingV2ServiceChannelMessage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Attributes** | **string** | | [optional] +**Body** | **string** | | [optional] +**ChannelSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**From** | **string** | | [optional] +**Index** | **int32** | | [optional] +**LastUpdatedBy** | **string** | | [optional] +**Media** | [**map[string]interface{}**](.md) | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**To** | **string** | | [optional] +**Type** | **string** | | [optional] +**Url** | **string** | | [optional] +**WasEdited** | **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/rest/ip/messaging/docs/IpMessagingV2ServiceChannelMessageReadResponse.md b/rest/ip/messaging/docs/IpMessagingV2ServiceChannelMessageReadResponse.md new file mode 100644 index 000000000..c8d6843fc --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV2ServiceChannelMessageReadResponse.md @@ -0,0 +1,12 @@ +# IpMessagingV2ServiceChannelMessageReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Messages** | [**[]IpMessagingV2ServiceChannelMessage**](ip_messaging.v2.service.channel.message.md) | | [optional] +**Meta** | [**IpMessagingV2CredentialReadResponseMeta**](ip_messaging_v2_credentialReadResponse_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/rest/ip/messaging/docs/IpMessagingV2ServiceChannelReadResponse.md b/rest/ip/messaging/docs/IpMessagingV2ServiceChannelReadResponse.md new file mode 100644 index 000000000..0d719d1d6 --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV2ServiceChannelReadResponse.md @@ -0,0 +1,12 @@ +# IpMessagingV2ServiceChannelReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Channels** | [**[]IpMessagingV2ServiceChannel**](ip_messaging.v2.service.channel.md) | | [optional] +**Meta** | [**IpMessagingV2CredentialReadResponseMeta**](ip_messaging_v2_credentialReadResponse_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/rest/ip/messaging/docs/IpMessagingV2ServiceReadResponse.md b/rest/ip/messaging/docs/IpMessagingV2ServiceReadResponse.md new file mode 100644 index 000000000..97fa10ed0 --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV2ServiceReadResponse.md @@ -0,0 +1,12 @@ +# IpMessagingV2ServiceReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**IpMessagingV2CredentialReadResponseMeta**](ip_messaging_v2_credentialReadResponse_meta.md) | | [optional] +**Services** | [**[]IpMessagingV2Service**](ip_messaging.v2.service.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/rest/ip/messaging/docs/IpMessagingV2ServiceRole.md b/rest/ip/messaging/docs/IpMessagingV2ServiceRole.md new file mode 100644 index 000000000..849b478de --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV2ServiceRole.md @@ -0,0 +1,19 @@ +# IpMessagingV2ServiceRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Permissions** | **[]string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Type** | **string** | | [optional] +**Url** | **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/rest/ip/messaging/docs/IpMessagingV2ServiceRoleReadResponse.md b/rest/ip/messaging/docs/IpMessagingV2ServiceRoleReadResponse.md new file mode 100644 index 000000000..173281dce --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV2ServiceRoleReadResponse.md @@ -0,0 +1,12 @@ +# IpMessagingV2ServiceRoleReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**IpMessagingV2CredentialReadResponseMeta**](ip_messaging_v2_credentialReadResponse_meta.md) | | [optional] +**Roles** | [**[]IpMessagingV2ServiceRole**](ip_messaging.v2.service.role.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/rest/ip/messaging/docs/IpMessagingV2ServiceUser.md b/rest/ip/messaging/docs/IpMessagingV2ServiceUser.md new file mode 100644 index 000000000..027162525 --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV2ServiceUser.md @@ -0,0 +1,24 @@ +# IpMessagingV2ServiceUser + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Attributes** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Identity** | **string** | | [optional] +**IsNotifiable** | **bool** | | [optional] +**IsOnline** | **bool** | | [optional] +**JoinedChannelsCount** | **int32** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**RoleSid** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/ip/messaging/docs/IpMessagingV2ServiceUserReadResponse.md b/rest/ip/messaging/docs/IpMessagingV2ServiceUserReadResponse.md new file mode 100644 index 000000000..549a07d87 --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV2ServiceUserReadResponse.md @@ -0,0 +1,12 @@ +# IpMessagingV2ServiceUserReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**IpMessagingV2CredentialReadResponseMeta**](ip_messaging_v2_credentialReadResponse_meta.md) | | [optional] +**Users** | [**[]IpMessagingV2ServiceUser**](ip_messaging.v2.service.user.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/rest/ip/messaging/docs/IpMessagingV2ServiceUserUserBinding.md b/rest/ip/messaging/docs/IpMessagingV2ServiceUserUserBinding.md new file mode 100644 index 000000000..76edac502 --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV2ServiceUserUserBinding.md @@ -0,0 +1,22 @@ +# IpMessagingV2ServiceUserUserBinding + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**BindingType** | **string** | | [optional] +**CredentialSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Endpoint** | **string** | | [optional] +**Identity** | **string** | | [optional] +**MessageTypes** | **[]string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **string** | | [optional] +**UserSid** | **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/rest/ip/messaging/docs/IpMessagingV2ServiceUserUserBindingReadResponse.md b/rest/ip/messaging/docs/IpMessagingV2ServiceUserUserBindingReadResponse.md new file mode 100644 index 000000000..a041622c5 --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV2ServiceUserUserBindingReadResponse.md @@ -0,0 +1,12 @@ +# IpMessagingV2ServiceUserUserBindingReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Bindings** | [**[]IpMessagingV2ServiceUserUserBinding**](ip_messaging.v2.service.user.user_binding.md) | | [optional] +**Meta** | [**IpMessagingV2CredentialReadResponseMeta**](ip_messaging_v2_credentialReadResponse_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/rest/ip/messaging/docs/IpMessagingV2ServiceUserUserChannel.md b/rest/ip/messaging/docs/IpMessagingV2ServiceUserUserChannel.md new file mode 100644 index 000000000..bbe70de84 --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV2ServiceUserUserChannel.md @@ -0,0 +1,21 @@ +# IpMessagingV2ServiceUserUserChannel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ChannelSid** | **string** | | [optional] +**LastConsumedMessageIndex** | Pointer to **int32** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**MemberSid** | **string** | | [optional] +**NotificationLevel** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Status** | **string** | | [optional] +**UnreadMessagesCount** | Pointer to **int32** | | [optional] +**Url** | **string** | | [optional] +**UserSid** | **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/rest/ip/messaging/docs/IpMessagingV2ServiceUserUserChannelReadResponse.md b/rest/ip/messaging/docs/IpMessagingV2ServiceUserUserChannelReadResponse.md new file mode 100644 index 000000000..d578b205b --- /dev/null +++ b/rest/ip/messaging/docs/IpMessagingV2ServiceUserUserChannelReadResponse.md @@ -0,0 +1,12 @@ +# IpMessagingV2ServiceUserUserChannelReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Channels** | [**[]IpMessagingV2ServiceUserUserChannel**](ip_messaging.v2.service.user.user_channel.md) | | [optional] +**Meta** | [**IpMessagingV2CredentialReadResponseMeta**](ip_messaging_v2_credentialReadResponse_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/rest/ip/messaging/docs/UpdateChannelRequest.md b/rest/ip/messaging/docs/UpdateChannelRequest.md new file mode 100644 index 000000000..6e8ccb17e --- /dev/null +++ b/rest/ip/messaging/docs/UpdateChannelRequest.md @@ -0,0 +1,16 @@ +# UpdateChannelRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | | [optional] +**CreatedBy** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**UniqueName** | **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/rest/ip/messaging/docs/UpdateChannelWebhookRequest.md b/rest/ip/messaging/docs/UpdateChannelWebhookRequest.md new file mode 100644 index 000000000..b6cb09e7f --- /dev/null +++ b/rest/ip/messaging/docs/UpdateChannelWebhookRequest.md @@ -0,0 +1,16 @@ +# UpdateChannelWebhookRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConfigurationFilters** | **[]string** | | [optional] +**ConfigurationFlowSid** | **string** | | [optional] +**ConfigurationMethod** | **string** | | [optional] +**ConfigurationRetryCount** | **int32** | | [optional] +**ConfigurationTriggers** | **[]string** | | [optional] +**ConfigurationUrl** | **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/rest/ip/messaging/docs/UpdateCredentialRequest.md b/rest/ip/messaging/docs/UpdateCredentialRequest.md new file mode 100644 index 000000000..14dec91c1 --- /dev/null +++ b/rest/ip/messaging/docs/UpdateCredentialRequest.md @@ -0,0 +1,16 @@ +# UpdateCredentialRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiKey** | **string** | | [optional] +**Certificate** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**PrivateKey** | **string** | | [optional] +**Sandbox** | **bool** | | [optional] +**Secret** | **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/rest/ip/messaging/docs/UpdateMemberRequest.md b/rest/ip/messaging/docs/UpdateMemberRequest.md new file mode 100644 index 000000000..ee68c8f3d --- /dev/null +++ b/rest/ip/messaging/docs/UpdateMemberRequest.md @@ -0,0 +1,16 @@ +# UpdateMemberRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**LastConsumedMessageIndex** | Pointer to **int32** | | [optional] +**LastConsumptionTimestamp** | [**time.Time**](time.Time.md) | | [optional] +**RoleSid** | **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/rest/ip/messaging/docs/UpdateMessageRequest.md b/rest/ip/messaging/docs/UpdateMessageRequest.md new file mode 100644 index 000000000..3aefcf033 --- /dev/null +++ b/rest/ip/messaging/docs/UpdateMessageRequest.md @@ -0,0 +1,16 @@ +# UpdateMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | | [optional] +**Body** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**From** | **string** | | [optional] +**LastUpdatedBy** | **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/rest/ip/messaging/docs/UpdateRoleRequest.md b/rest/ip/messaging/docs/UpdateRoleRequest.md new file mode 100644 index 000000000..bbf35fd49 --- /dev/null +++ b/rest/ip/messaging/docs/UpdateRoleRequest.md @@ -0,0 +1,11 @@ +# UpdateRoleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Permission** | **[]string** | | + +[[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/rest/ip/messaging/docs/UpdateServiceRequest.md b/rest/ip/messaging/docs/UpdateServiceRequest.md new file mode 100644 index 000000000..ed591ce0e --- /dev/null +++ b/rest/ip/messaging/docs/UpdateServiceRequest.md @@ -0,0 +1,41 @@ +# UpdateServiceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConsumptionReportInterval** | **int32** | | [optional] +**DefaultChannelCreatorRoleSid** | **string** | | [optional] +**DefaultChannelRoleSid** | **string** | | [optional] +**DefaultServiceRoleSid** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**LimitsChannelMembers** | **int32** | | [optional] +**LimitsUserChannels** | **int32** | | [optional] +**MediaCompatibilityMessage** | **string** | | [optional] +**NotificationsAddedToChannelEnabled** | **bool** | | [optional] +**NotificationsAddedToChannelSound** | **string** | | [optional] +**NotificationsAddedToChannelTemplate** | **string** | | [optional] +**NotificationsInvitedToChannelEnabled** | **bool** | | [optional] +**NotificationsInvitedToChannelSound** | **string** | | [optional] +**NotificationsInvitedToChannelTemplate** | **string** | | [optional] +**NotificationsLogEnabled** | **bool** | | [optional] +**NotificationsNewMessageBadgeCountEnabled** | **bool** | | [optional] +**NotificationsNewMessageEnabled** | **bool** | | [optional] +**NotificationsNewMessageSound** | **string** | | [optional] +**NotificationsNewMessageTemplate** | **string** | | [optional] +**NotificationsRemovedFromChannelEnabled** | **bool** | | [optional] +**NotificationsRemovedFromChannelSound** | **string** | | [optional] +**NotificationsRemovedFromChannelTemplate** | **string** | | [optional] +**PostWebhookRetryCount** | **int32** | | [optional] +**PostWebhookUrl** | **string** | | [optional] +**PreWebhookRetryCount** | **int32** | | [optional] +**PreWebhookUrl** | **string** | | [optional] +**ReachabilityEnabled** | **bool** | | [optional] +**ReadStatusEnabled** | **bool** | | [optional] +**TypingIndicatorTimeout** | **int32** | | [optional] +**WebhookFilters** | **[]string** | | [optional] +**WebhookMethod** | **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/rest/ip/messaging/docs/UpdateUserChannelRequest.md b/rest/ip/messaging/docs/UpdateUserChannelRequest.md new file mode 100644 index 000000000..013458183 --- /dev/null +++ b/rest/ip/messaging/docs/UpdateUserChannelRequest.md @@ -0,0 +1,13 @@ +# UpdateUserChannelRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LastConsumedMessageIndex** | Pointer to **int32** | | [optional] +**LastConsumptionTimestamp** | [**time.Time**](time.Time.md) | | [optional] +**NotificationLevel** | **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/rest/ip/messaging/docs/UpdateUserRequest.md b/rest/ip/messaging/docs/UpdateUserRequest.md new file mode 100644 index 000000000..b90ce4764 --- /dev/null +++ b/rest/ip/messaging/docs/UpdateUserRequest.md @@ -0,0 +1,13 @@ +# UpdateUserRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**RoleSid** | **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/rest/ip/messaging/model_create_channel_request.go b/rest/ip/messaging/model_create_channel_request.go new file mode 100644 index 000000000..7fb5281bf --- /dev/null +++ b/rest/ip/messaging/model_create_channel_request.go @@ -0,0 +1,24 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// CreateChannelRequest struct for CreateChannelRequest +type CreateChannelRequest struct { + Attributes string `json:"Attributes,omitempty"` + CreatedBy string `json:"CreatedBy,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Type string `json:"Type,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/ip/messaging/model_create_channel_webhook_request.go b/rest/ip/messaging/model_create_channel_webhook_request.go new file mode 100644 index 000000000..918681a75 --- /dev/null +++ b/rest/ip/messaging/model_create_channel_webhook_request.go @@ -0,0 +1,21 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateChannelWebhookRequest struct for CreateChannelWebhookRequest +type CreateChannelWebhookRequest struct { + ConfigurationFilters []string `json:"Configuration.Filters,omitempty"` + ConfigurationFlowSid string `json:"Configuration.FlowSid,omitempty"` + ConfigurationMethod string `json:"Configuration.Method,omitempty"` + ConfigurationRetryCount int32 `json:"Configuration.RetryCount,omitempty"` + ConfigurationTriggers []string `json:"Configuration.Triggers,omitempty"` + ConfigurationUrl string `json:"Configuration.Url,omitempty"` + Type string `json:"Type"` +} diff --git a/rest/ip/messaging/model_create_credential_request.go b/rest/ip/messaging/model_create_credential_request.go new file mode 100644 index 000000000..500002e41 --- /dev/null +++ b/rest/ip/messaging/model_create_credential_request.go @@ -0,0 +1,21 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateCredentialRequest struct for CreateCredentialRequest +type CreateCredentialRequest struct { + ApiKey string `json:"ApiKey,omitempty"` + Certificate string `json:"Certificate,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + PrivateKey string `json:"PrivateKey,omitempty"` + Sandbox bool `json:"Sandbox,omitempty"` + Secret string `json:"Secret,omitempty"` + Type string `json:"Type"` +} diff --git a/rest/ip/messaging/model_create_invite_request.go b/rest/ip/messaging/model_create_invite_request.go new file mode 100644 index 000000000..85be493d1 --- /dev/null +++ b/rest/ip/messaging/model_create_invite_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateInviteRequest struct for CreateInviteRequest +type CreateInviteRequest struct { + Identity string `json:"Identity"` + RoleSid string `json:"RoleSid,omitempty"` +} diff --git a/rest/ip/messaging/model_create_member_request.go b/rest/ip/messaging/model_create_member_request.go new file mode 100644 index 000000000..bc8563683 --- /dev/null +++ b/rest/ip/messaging/model_create_member_request.go @@ -0,0 +1,24 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// CreateMemberRequest struct for CreateMemberRequest +type CreateMemberRequest struct { + Attributes string `json:"Attributes,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Identity string `json:"Identity"` + LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` + LastConsumptionTimestamp time.Time `json:"LastConsumptionTimestamp,omitempty"` + RoleSid string `json:"RoleSid,omitempty"` +} diff --git a/rest/ip/messaging/model_create_message_request.go b/rest/ip/messaging/model_create_message_request.go new file mode 100644 index 000000000..884f5340a --- /dev/null +++ b/rest/ip/messaging/model_create_message_request.go @@ -0,0 +1,24 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// CreateMessageRequest struct for CreateMessageRequest +type CreateMessageRequest struct { + Attributes string `json:"Attributes,omitempty"` + Body string `json:"Body,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + From string `json:"From,omitempty"` + LastUpdatedBy string `json:"LastUpdatedBy,omitempty"` + MediaSid string `json:"MediaSid,omitempty"` +} diff --git a/rest/ip/messaging/model_create_role_request.go b/rest/ip/messaging/model_create_role_request.go new file mode 100644 index 000000000..e52301079 --- /dev/null +++ b/rest/ip/messaging/model_create_role_request.go @@ -0,0 +1,17 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateRoleRequest struct for CreateRoleRequest +type CreateRoleRequest struct { + FriendlyName string `json:"FriendlyName"` + Permission []string `json:"Permission"` + Type string `json:"Type"` +} diff --git a/rest/ip/messaging/model_create_service_request.go b/rest/ip/messaging/model_create_service_request.go new file mode 100644 index 000000000..4bc5191af --- /dev/null +++ b/rest/ip/messaging/model_create_service_request.go @@ -0,0 +1,15 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateServiceRequest struct for CreateServiceRequest +type CreateServiceRequest struct { + FriendlyName string `json:"FriendlyName"` +} diff --git a/rest/ip/messaging/model_create_user_request.go b/rest/ip/messaging/model_create_user_request.go new file mode 100644 index 000000000..9718989da --- /dev/null +++ b/rest/ip/messaging/model_create_user_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateUserRequest struct for CreateUserRequest +type CreateUserRequest struct { + Attributes string `json:"Attributes,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Identity string `json:"Identity"` + RoleSid string `json:"RoleSid,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v1_credential.go b/rest/ip/messaging/model_ip_messaging_v1_credential.go new file mode 100644 index 000000000..239f9d95e --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v1_credential.go @@ -0,0 +1,25 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// IpMessagingV1Credential struct for IpMessagingV1Credential +type IpMessagingV1Credential struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Sandbox string `json:"sandbox,omitempty"` + Sid string `json:"sid,omitempty"` + Type string `json:"type,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v1_credential_read_response.go b/rest/ip/messaging/model_ip_messaging_v1_credential_read_response.go new file mode 100644 index 000000000..ecebc9d4f --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v1_credential_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// IpMessagingV1CredentialReadResponse struct for IpMessagingV1CredentialReadResponse +type IpMessagingV1CredentialReadResponse struct { + Credentials []IpMessagingV1Credential `json:"credentials,omitempty"` + Meta IpMessagingV1CredentialReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v1_credential_read_response_meta.go b/rest/ip/messaging/model_ip_messaging_v1_credential_read_response_meta.go new file mode 100644 index 000000000..b992c1e10 --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v1_credential_read_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// IpMessagingV1CredentialReadResponseMeta struct for IpMessagingV1CredentialReadResponseMeta +type IpMessagingV1CredentialReadResponseMeta struct { + FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` + NextPageUrl string `json:"next_page_url,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUrl string `json:"previous_page_url,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v1_service.go b/rest/ip/messaging/model_ip_messaging_v1_service.go new file mode 100644 index 000000000..271b573de --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v1_service.go @@ -0,0 +1,38 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// IpMessagingV1Service struct for IpMessagingV1Service +type IpMessagingV1Service struct { + AccountSid string `json:"account_sid,omitempty"` + ConsumptionReportInterval int32 `json:"consumption_report_interval,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + DefaultChannelCreatorRoleSid string `json:"default_channel_creator_role_sid,omitempty"` + DefaultChannelRoleSid string `json:"default_channel_role_sid,omitempty"` + DefaultServiceRoleSid string `json:"default_service_role_sid,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Limits map[string]interface{} `json:"limits,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Notifications map[string]interface{} `json:"notifications,omitempty"` + PostWebhookUrl string `json:"post_webhook_url,omitempty"` + PreWebhookUrl string `json:"pre_webhook_url,omitempty"` + ReachabilityEnabled bool `json:"reachability_enabled,omitempty"` + ReadStatusEnabled bool `json:"read_status_enabled,omitempty"` + Sid string `json:"sid,omitempty"` + TypingIndicatorTimeout int32 `json:"typing_indicator_timeout,omitempty"` + Url string `json:"url,omitempty"` + WebhookFilters []string `json:"webhook_filters,omitempty"` + WebhookMethod string `json:"webhook_method,omitempty"` + Webhooks map[string]interface{} `json:"webhooks,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_channel.go b/rest/ip/messaging/model_ip_messaging_v1_service_channel.go new file mode 100644 index 000000000..a0b44ab55 --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v1_service_channel.go @@ -0,0 +1,31 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// IpMessagingV1ServiceChannel struct for IpMessagingV1ServiceChannel +type IpMessagingV1ServiceChannel struct { + AccountSid string `json:"account_sid,omitempty"` + Attributes string `json:"attributes,omitempty"` + CreatedBy string `json:"created_by,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + MembersCount int32 `json:"members_count,omitempty"` + MessagesCount int32 `json:"messages_count,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Type string `json:"type,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_channel_invite.go b/rest/ip/messaging/model_ip_messaging_v1_service_channel_invite.go new file mode 100644 index 000000000..60fc1a163 --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v1_service_channel_invite.go @@ -0,0 +1,27 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// IpMessagingV1ServiceChannelInvite struct for IpMessagingV1ServiceChannelInvite +type IpMessagingV1ServiceChannelInvite struct { + AccountSid string `json:"account_sid,omitempty"` + ChannelSid string `json:"channel_sid,omitempty"` + CreatedBy string `json:"created_by,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Identity string `json:"identity,omitempty"` + RoleSid string `json:"role_sid,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_channel_invite_read_response.go b/rest/ip/messaging/model_ip_messaging_v1_service_channel_invite_read_response.go new file mode 100644 index 000000000..af93b0b5f --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v1_service_channel_invite_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// IpMessagingV1ServiceChannelInviteReadResponse struct for IpMessagingV1ServiceChannelInviteReadResponse +type IpMessagingV1ServiceChannelInviteReadResponse struct { + Invites []IpMessagingV1ServiceChannelInvite `json:"invites,omitempty"` + Meta IpMessagingV1CredentialReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_channel_member.go b/rest/ip/messaging/model_ip_messaging_v1_service_channel_member.go new file mode 100644 index 000000000..684b266a5 --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v1_service_channel_member.go @@ -0,0 +1,28 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// IpMessagingV1ServiceChannelMember struct for IpMessagingV1ServiceChannelMember +type IpMessagingV1ServiceChannelMember struct { + AccountSid string `json:"account_sid,omitempty"` + ChannelSid string `json:"channel_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Identity string `json:"identity,omitempty"` + LastConsumedMessageIndex *int32 `json:"last_consumed_message_index,omitempty"` + LastConsumptionTimestamp time.Time `json:"last_consumption_timestamp,omitempty"` + RoleSid string `json:"role_sid,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_channel_member_read_response.go b/rest/ip/messaging/model_ip_messaging_v1_service_channel_member_read_response.go new file mode 100644 index 000000000..08719365d --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v1_service_channel_member_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// IpMessagingV1ServiceChannelMemberReadResponse struct for IpMessagingV1ServiceChannelMemberReadResponse +type IpMessagingV1ServiceChannelMemberReadResponse struct { + Members []IpMessagingV1ServiceChannelMember `json:"members,omitempty"` + Meta IpMessagingV1CredentialReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_channel_message.go b/rest/ip/messaging/model_ip_messaging_v1_service_channel_message.go new file mode 100644 index 000000000..df27a9c76 --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v1_service_channel_message.go @@ -0,0 +1,30 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// IpMessagingV1ServiceChannelMessage struct for IpMessagingV1ServiceChannelMessage +type IpMessagingV1ServiceChannelMessage struct { + AccountSid string `json:"account_sid,omitempty"` + Attributes string `json:"attributes,omitempty"` + Body string `json:"body,omitempty"` + ChannelSid string `json:"channel_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + From string `json:"from,omitempty"` + Index int32 `json:"index,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + To string `json:"to,omitempty"` + Url string `json:"url,omitempty"` + WasEdited bool `json:"was_edited,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_channel_message_read_response.go b/rest/ip/messaging/model_ip_messaging_v1_service_channel_message_read_response.go new file mode 100644 index 000000000..bb8d434e0 --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v1_service_channel_message_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// IpMessagingV1ServiceChannelMessageReadResponse struct for IpMessagingV1ServiceChannelMessageReadResponse +type IpMessagingV1ServiceChannelMessageReadResponse struct { + Messages []IpMessagingV1ServiceChannelMessage `json:"messages,omitempty"` + Meta IpMessagingV1CredentialReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_channel_read_response.go b/rest/ip/messaging/model_ip_messaging_v1_service_channel_read_response.go new file mode 100644 index 000000000..b749838b5 --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v1_service_channel_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// IpMessagingV1ServiceChannelReadResponse struct for IpMessagingV1ServiceChannelReadResponse +type IpMessagingV1ServiceChannelReadResponse struct { + Channels []IpMessagingV1ServiceChannel `json:"channels,omitempty"` + Meta IpMessagingV1CredentialReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_read_response.go b/rest/ip/messaging/model_ip_messaging_v1_service_read_response.go new file mode 100644 index 000000000..c04385ec0 --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v1_service_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// IpMessagingV1ServiceReadResponse struct for IpMessagingV1ServiceReadResponse +type IpMessagingV1ServiceReadResponse struct { + Meta IpMessagingV1CredentialReadResponseMeta `json:"meta,omitempty"` + Services []IpMessagingV1Service `json:"services,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_role.go b/rest/ip/messaging/model_ip_messaging_v1_service_role.go new file mode 100644 index 000000000..2711e3127 --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v1_service_role.go @@ -0,0 +1,26 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// IpMessagingV1ServiceRole struct for IpMessagingV1ServiceRole +type IpMessagingV1ServiceRole struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Permissions []string `json:"permissions,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Type string `json:"type,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_role_read_response.go b/rest/ip/messaging/model_ip_messaging_v1_service_role_read_response.go new file mode 100644 index 000000000..9b26ea403 --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v1_service_role_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// IpMessagingV1ServiceRoleReadResponse struct for IpMessagingV1ServiceRoleReadResponse +type IpMessagingV1ServiceRoleReadResponse struct { + Meta IpMessagingV1CredentialReadResponseMeta `json:"meta,omitempty"` + Roles []IpMessagingV1ServiceRole `json:"roles,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_user.go b/rest/ip/messaging/model_ip_messaging_v1_service_user.go new file mode 100644 index 000000000..1471c1cec --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v1_service_user.go @@ -0,0 +1,31 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// IpMessagingV1ServiceUser struct for IpMessagingV1ServiceUser +type IpMessagingV1ServiceUser struct { + AccountSid string `json:"account_sid,omitempty"` + Attributes string `json:"attributes,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Identity string `json:"identity,omitempty"` + IsNotifiable bool `json:"is_notifiable,omitempty"` + IsOnline bool `json:"is_online,omitempty"` + JoinedChannelsCount int32 `json:"joined_channels_count,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + RoleSid string `json:"role_sid,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_user_read_response.go b/rest/ip/messaging/model_ip_messaging_v1_service_user_read_response.go new file mode 100644 index 000000000..865c8df07 --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v1_service_user_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// IpMessagingV1ServiceUserReadResponse struct for IpMessagingV1ServiceUserReadResponse +type IpMessagingV1ServiceUserReadResponse struct { + Meta IpMessagingV1CredentialReadResponseMeta `json:"meta,omitempty"` + Users []IpMessagingV1ServiceUser `json:"users,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_user_user_channel.go b/rest/ip/messaging/model_ip_messaging_v1_service_user_user_channel.go new file mode 100644 index 000000000..97fa6e243 --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v1_service_user_user_channel.go @@ -0,0 +1,22 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// IpMessagingV1ServiceUserUserChannel struct for IpMessagingV1ServiceUserUserChannel +type IpMessagingV1ServiceUserUserChannel struct { + AccountSid string `json:"account_sid,omitempty"` + ChannelSid string `json:"channel_sid,omitempty"` + LastConsumedMessageIndex *int32 `json:"last_consumed_message_index,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + MemberSid string `json:"member_sid,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Status string `json:"status,omitempty"` + UnreadMessagesCount *int32 `json:"unread_messages_count,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_user_user_channel_read_response.go b/rest/ip/messaging/model_ip_messaging_v1_service_user_user_channel_read_response.go new file mode 100644 index 000000000..816c362f8 --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v1_service_user_user_channel_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// IpMessagingV1ServiceUserUserChannelReadResponse struct for IpMessagingV1ServiceUserUserChannelReadResponse +type IpMessagingV1ServiceUserUserChannelReadResponse struct { + Channels []IpMessagingV1ServiceUserUserChannel `json:"channels,omitempty"` + Meta IpMessagingV1CredentialReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v2_credential.go b/rest/ip/messaging/model_ip_messaging_v2_credential.go new file mode 100644 index 000000000..b8c83ba35 --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v2_credential.go @@ -0,0 +1,25 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// IpMessagingV2Credential struct for IpMessagingV2Credential +type IpMessagingV2Credential struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Sandbox string `json:"sandbox,omitempty"` + Sid string `json:"sid,omitempty"` + Type string `json:"type,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v2_credential_read_response.go b/rest/ip/messaging/model_ip_messaging_v2_credential_read_response.go new file mode 100644 index 000000000..796cebd36 --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v2_credential_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// IpMessagingV2CredentialReadResponse struct for IpMessagingV2CredentialReadResponse +type IpMessagingV2CredentialReadResponse struct { + Credentials []IpMessagingV2Credential `json:"credentials,omitempty"` + Meta IpMessagingV2CredentialReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v2_credential_read_response_meta.go b/rest/ip/messaging/model_ip_messaging_v2_credential_read_response_meta.go new file mode 100644 index 000000000..558cb5312 --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v2_credential_read_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// IpMessagingV2CredentialReadResponseMeta struct for IpMessagingV2CredentialReadResponseMeta +type IpMessagingV2CredentialReadResponseMeta struct { + FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` + NextPageUrl string `json:"next_page_url,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUrl string `json:"previous_page_url,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v2_service.go b/rest/ip/messaging/model_ip_messaging_v2_service.go new file mode 100644 index 000000000..45881da4c --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v2_service.go @@ -0,0 +1,40 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// IpMessagingV2Service struct for IpMessagingV2Service +type IpMessagingV2Service struct { + AccountSid string `json:"account_sid,omitempty"` + ConsumptionReportInterval int32 `json:"consumption_report_interval,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + DefaultChannelCreatorRoleSid string `json:"default_channel_creator_role_sid,omitempty"` + DefaultChannelRoleSid string `json:"default_channel_role_sid,omitempty"` + DefaultServiceRoleSid string `json:"default_service_role_sid,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Limits map[string]interface{} `json:"limits,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Media map[string]interface{} `json:"media,omitempty"` + Notifications map[string]interface{} `json:"notifications,omitempty"` + PostWebhookRetryCount int32 `json:"post_webhook_retry_count,omitempty"` + PostWebhookUrl string `json:"post_webhook_url,omitempty"` + PreWebhookRetryCount int32 `json:"pre_webhook_retry_count,omitempty"` + PreWebhookUrl string `json:"pre_webhook_url,omitempty"` + ReachabilityEnabled bool `json:"reachability_enabled,omitempty"` + ReadStatusEnabled bool `json:"read_status_enabled,omitempty"` + Sid string `json:"sid,omitempty"` + TypingIndicatorTimeout int32 `json:"typing_indicator_timeout,omitempty"` + Url string `json:"url,omitempty"` + WebhookFilters []string `json:"webhook_filters,omitempty"` + WebhookMethod string `json:"webhook_method,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_binding.go b/rest/ip/messaging/model_ip_messaging_v2_service_binding.go new file mode 100644 index 000000000..e2350587b --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v2_service_binding.go @@ -0,0 +1,29 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// IpMessagingV2ServiceBinding struct for IpMessagingV2ServiceBinding +type IpMessagingV2ServiceBinding struct { + AccountSid string `json:"account_sid,omitempty"` + BindingType string `json:"binding_type,omitempty"` + CredentialSid string `json:"credential_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Endpoint string `json:"endpoint,omitempty"` + Identity string `json:"identity,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + MessageTypes []string `json:"message_types,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_binding_read_response.go b/rest/ip/messaging/model_ip_messaging_v2_service_binding_read_response.go new file mode 100644 index 000000000..ce97da89d --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v2_service_binding_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// IpMessagingV2ServiceBindingReadResponse struct for IpMessagingV2ServiceBindingReadResponse +type IpMessagingV2ServiceBindingReadResponse struct { + Bindings []IpMessagingV2ServiceBinding `json:"bindings,omitempty"` + Meta IpMessagingV2CredentialReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_channel.go b/rest/ip/messaging/model_ip_messaging_v2_service_channel.go new file mode 100644 index 000000000..223727592 --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v2_service_channel.go @@ -0,0 +1,31 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// IpMessagingV2ServiceChannel struct for IpMessagingV2ServiceChannel +type IpMessagingV2ServiceChannel struct { + AccountSid string `json:"account_sid,omitempty"` + Attributes string `json:"attributes,omitempty"` + CreatedBy string `json:"created_by,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + MembersCount int32 `json:"members_count,omitempty"` + MessagesCount int32 `json:"messages_count,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Type string `json:"type,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_channel_channel_webhook.go b/rest/ip/messaging/model_ip_messaging_v2_service_channel_channel_webhook.go new file mode 100644 index 000000000..30f7c91f8 --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v2_service_channel_channel_webhook.go @@ -0,0 +1,26 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// IpMessagingV2ServiceChannelChannelWebhook struct for IpMessagingV2ServiceChannelChannelWebhook +type IpMessagingV2ServiceChannelChannelWebhook struct { + AccountSid string `json:"account_sid,omitempty"` + ChannelSid string `json:"channel_sid,omitempty"` + Configuration map[string]interface{} `json:"configuration,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Type string `json:"type,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_channel_channel_webhook_read_response.go b/rest/ip/messaging/model_ip_messaging_v2_service_channel_channel_webhook_read_response.go new file mode 100644 index 000000000..48b4a7563 --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v2_service_channel_channel_webhook_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// IpMessagingV2ServiceChannelChannelWebhookReadResponse struct for IpMessagingV2ServiceChannelChannelWebhookReadResponse +type IpMessagingV2ServiceChannelChannelWebhookReadResponse struct { + Meta IpMessagingV2CredentialReadResponseMeta `json:"meta,omitempty"` + Webhooks []IpMessagingV2ServiceChannelChannelWebhook `json:"webhooks,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_channel_invite.go b/rest/ip/messaging/model_ip_messaging_v2_service_channel_invite.go new file mode 100644 index 000000000..bafc708f3 --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v2_service_channel_invite.go @@ -0,0 +1,27 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// IpMessagingV2ServiceChannelInvite struct for IpMessagingV2ServiceChannelInvite +type IpMessagingV2ServiceChannelInvite struct { + AccountSid string `json:"account_sid,omitempty"` + ChannelSid string `json:"channel_sid,omitempty"` + CreatedBy string `json:"created_by,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Identity string `json:"identity,omitempty"` + RoleSid string `json:"role_sid,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_channel_invite_read_response.go b/rest/ip/messaging/model_ip_messaging_v2_service_channel_invite_read_response.go new file mode 100644 index 000000000..4948366aa --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v2_service_channel_invite_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// IpMessagingV2ServiceChannelInviteReadResponse struct for IpMessagingV2ServiceChannelInviteReadResponse +type IpMessagingV2ServiceChannelInviteReadResponse struct { + Invites []IpMessagingV2ServiceChannelInvite `json:"invites,omitempty"` + Meta IpMessagingV2CredentialReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_channel_member.go b/rest/ip/messaging/model_ip_messaging_v2_service_channel_member.go new file mode 100644 index 000000000..da4365575 --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v2_service_channel_member.go @@ -0,0 +1,29 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// IpMessagingV2ServiceChannelMember struct for IpMessagingV2ServiceChannelMember +type IpMessagingV2ServiceChannelMember struct { + AccountSid string `json:"account_sid,omitempty"` + Attributes string `json:"attributes,omitempty"` + ChannelSid string `json:"channel_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Identity string `json:"identity,omitempty"` + LastConsumedMessageIndex *int32 `json:"last_consumed_message_index,omitempty"` + LastConsumptionTimestamp time.Time `json:"last_consumption_timestamp,omitempty"` + RoleSid string `json:"role_sid,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_channel_member_read_response.go b/rest/ip/messaging/model_ip_messaging_v2_service_channel_member_read_response.go new file mode 100644 index 000000000..31e2daad3 --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v2_service_channel_member_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// IpMessagingV2ServiceChannelMemberReadResponse struct for IpMessagingV2ServiceChannelMemberReadResponse +type IpMessagingV2ServiceChannelMemberReadResponse struct { + Members []IpMessagingV2ServiceChannelMember `json:"members,omitempty"` + Meta IpMessagingV2CredentialReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_channel_message.go b/rest/ip/messaging/model_ip_messaging_v2_service_channel_message.go new file mode 100644 index 000000000..88d5bae02 --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v2_service_channel_message.go @@ -0,0 +1,33 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// IpMessagingV2ServiceChannelMessage struct for IpMessagingV2ServiceChannelMessage +type IpMessagingV2ServiceChannelMessage struct { + AccountSid string `json:"account_sid,omitempty"` + Attributes string `json:"attributes,omitempty"` + Body string `json:"body,omitempty"` + ChannelSid string `json:"channel_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + From string `json:"from,omitempty"` + Index int32 `json:"index,omitempty"` + LastUpdatedBy string `json:"last_updated_by,omitempty"` + Media map[string]interface{} `json:"media,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + To string `json:"to,omitempty"` + Type string `json:"type,omitempty"` + Url string `json:"url,omitempty"` + WasEdited bool `json:"was_edited,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_channel_message_read_response.go b/rest/ip/messaging/model_ip_messaging_v2_service_channel_message_read_response.go new file mode 100644 index 000000000..aff10b898 --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v2_service_channel_message_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// IpMessagingV2ServiceChannelMessageReadResponse struct for IpMessagingV2ServiceChannelMessageReadResponse +type IpMessagingV2ServiceChannelMessageReadResponse struct { + Messages []IpMessagingV2ServiceChannelMessage `json:"messages,omitempty"` + Meta IpMessagingV2CredentialReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_channel_read_response.go b/rest/ip/messaging/model_ip_messaging_v2_service_channel_read_response.go new file mode 100644 index 000000000..efb659eb2 --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v2_service_channel_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// IpMessagingV2ServiceChannelReadResponse struct for IpMessagingV2ServiceChannelReadResponse +type IpMessagingV2ServiceChannelReadResponse struct { + Channels []IpMessagingV2ServiceChannel `json:"channels,omitempty"` + Meta IpMessagingV2CredentialReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_read_response.go b/rest/ip/messaging/model_ip_messaging_v2_service_read_response.go new file mode 100644 index 000000000..1ef29f4dd --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v2_service_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// IpMessagingV2ServiceReadResponse struct for IpMessagingV2ServiceReadResponse +type IpMessagingV2ServiceReadResponse struct { + Meta IpMessagingV2CredentialReadResponseMeta `json:"meta,omitempty"` + Services []IpMessagingV2Service `json:"services,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_role.go b/rest/ip/messaging/model_ip_messaging_v2_service_role.go new file mode 100644 index 000000000..0f1009286 --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v2_service_role.go @@ -0,0 +1,26 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// IpMessagingV2ServiceRole struct for IpMessagingV2ServiceRole +type IpMessagingV2ServiceRole struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Permissions []string `json:"permissions,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Type string `json:"type,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_role_read_response.go b/rest/ip/messaging/model_ip_messaging_v2_service_role_read_response.go new file mode 100644 index 000000000..2ae16a86c --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v2_service_role_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// IpMessagingV2ServiceRoleReadResponse struct for IpMessagingV2ServiceRoleReadResponse +type IpMessagingV2ServiceRoleReadResponse struct { + Meta IpMessagingV2CredentialReadResponseMeta `json:"meta,omitempty"` + Roles []IpMessagingV2ServiceRole `json:"roles,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_user.go b/rest/ip/messaging/model_ip_messaging_v2_service_user.go new file mode 100644 index 000000000..28996d0e6 --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v2_service_user.go @@ -0,0 +1,31 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// IpMessagingV2ServiceUser struct for IpMessagingV2ServiceUser +type IpMessagingV2ServiceUser struct { + AccountSid string `json:"account_sid,omitempty"` + Attributes string `json:"attributes,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Identity string `json:"identity,omitempty"` + IsNotifiable bool `json:"is_notifiable,omitempty"` + IsOnline bool `json:"is_online,omitempty"` + JoinedChannelsCount int32 `json:"joined_channels_count,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + RoleSid string `json:"role_sid,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_user_read_response.go b/rest/ip/messaging/model_ip_messaging_v2_service_user_read_response.go new file mode 100644 index 000000000..e6c24f9af --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v2_service_user_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// IpMessagingV2ServiceUserReadResponse struct for IpMessagingV2ServiceUserReadResponse +type IpMessagingV2ServiceUserReadResponse struct { + Meta IpMessagingV2CredentialReadResponseMeta `json:"meta,omitempty"` + Users []IpMessagingV2ServiceUser `json:"users,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_user_user_binding.go b/rest/ip/messaging/model_ip_messaging_v2_service_user_user_binding.go new file mode 100644 index 000000000..05a433a66 --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v2_service_user_user_binding.go @@ -0,0 +1,29 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// IpMessagingV2ServiceUserUserBinding struct for IpMessagingV2ServiceUserUserBinding +type IpMessagingV2ServiceUserUserBinding struct { + AccountSid string `json:"account_sid,omitempty"` + BindingType string `json:"binding_type,omitempty"` + CredentialSid string `json:"credential_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Endpoint string `json:"endpoint,omitempty"` + Identity string `json:"identity,omitempty"` + MessageTypes []string `json:"message_types,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` + UserSid string `json:"user_sid,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_user_user_binding_read_response.go b/rest/ip/messaging/model_ip_messaging_v2_service_user_user_binding_read_response.go new file mode 100644 index 000000000..1fa9f3126 --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v2_service_user_user_binding_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// IpMessagingV2ServiceUserUserBindingReadResponse struct for IpMessagingV2ServiceUserUserBindingReadResponse +type IpMessagingV2ServiceUserUserBindingReadResponse struct { + Bindings []IpMessagingV2ServiceUserUserBinding `json:"bindings,omitempty"` + Meta IpMessagingV2CredentialReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_user_user_channel.go b/rest/ip/messaging/model_ip_messaging_v2_service_user_user_channel.go new file mode 100644 index 000000000..b4d4863c3 --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v2_service_user_user_channel.go @@ -0,0 +1,25 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// IpMessagingV2ServiceUserUserChannel struct for IpMessagingV2ServiceUserUserChannel +type IpMessagingV2ServiceUserUserChannel struct { + AccountSid string `json:"account_sid,omitempty"` + ChannelSid string `json:"channel_sid,omitempty"` + LastConsumedMessageIndex *int32 `json:"last_consumed_message_index,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + MemberSid string `json:"member_sid,omitempty"` + NotificationLevel string `json:"notification_level,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Status string `json:"status,omitempty"` + UnreadMessagesCount *int32 `json:"unread_messages_count,omitempty"` + Url string `json:"url,omitempty"` + UserSid string `json:"user_sid,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_user_user_channel_read_response.go b/rest/ip/messaging/model_ip_messaging_v2_service_user_user_channel_read_response.go new file mode 100644 index 000000000..c1bec80da --- /dev/null +++ b/rest/ip/messaging/model_ip_messaging_v2_service_user_user_channel_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// IpMessagingV2ServiceUserUserChannelReadResponse struct for IpMessagingV2ServiceUserUserChannelReadResponse +type IpMessagingV2ServiceUserUserChannelReadResponse struct { + Channels []IpMessagingV2ServiceUserUserChannel `json:"channels,omitempty"` + Meta IpMessagingV2CredentialReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/ip/messaging/model_update_channel_request.go b/rest/ip/messaging/model_update_channel_request.go new file mode 100644 index 000000000..fd75370d5 --- /dev/null +++ b/rest/ip/messaging/model_update_channel_request.go @@ -0,0 +1,23 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// UpdateChannelRequest struct for UpdateChannelRequest +type UpdateChannelRequest struct { + Attributes string `json:"Attributes,omitempty"` + CreatedBy string `json:"CreatedBy,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/ip/messaging/model_update_channel_webhook_request.go b/rest/ip/messaging/model_update_channel_webhook_request.go new file mode 100644 index 000000000..e82b7ef0c --- /dev/null +++ b/rest/ip/messaging/model_update_channel_webhook_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateChannelWebhookRequest struct for UpdateChannelWebhookRequest +type UpdateChannelWebhookRequest struct { + ConfigurationFilters []string `json:"Configuration.Filters,omitempty"` + ConfigurationFlowSid string `json:"Configuration.FlowSid,omitempty"` + ConfigurationMethod string `json:"Configuration.Method,omitempty"` + ConfigurationRetryCount int32 `json:"Configuration.RetryCount,omitempty"` + ConfigurationTriggers []string `json:"Configuration.Triggers,omitempty"` + ConfigurationUrl string `json:"Configuration.Url,omitempty"` +} diff --git a/rest/ip/messaging/model_update_credential_request.go b/rest/ip/messaging/model_update_credential_request.go new file mode 100644 index 000000000..c3230926a --- /dev/null +++ b/rest/ip/messaging/model_update_credential_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateCredentialRequest struct for UpdateCredentialRequest +type UpdateCredentialRequest struct { + ApiKey string `json:"ApiKey,omitempty"` + Certificate string `json:"Certificate,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + PrivateKey string `json:"PrivateKey,omitempty"` + Sandbox bool `json:"Sandbox,omitempty"` + Secret string `json:"Secret,omitempty"` +} diff --git a/rest/ip/messaging/model_update_member_request.go b/rest/ip/messaging/model_update_member_request.go new file mode 100644 index 000000000..9ff8c28e6 --- /dev/null +++ b/rest/ip/messaging/model_update_member_request.go @@ -0,0 +1,23 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// UpdateMemberRequest struct for UpdateMemberRequest +type UpdateMemberRequest struct { + Attributes string `json:"Attributes,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` + LastConsumptionTimestamp time.Time `json:"LastConsumptionTimestamp,omitempty"` + RoleSid string `json:"RoleSid,omitempty"` +} diff --git a/rest/ip/messaging/model_update_message_request.go b/rest/ip/messaging/model_update_message_request.go new file mode 100644 index 000000000..8a07923fa --- /dev/null +++ b/rest/ip/messaging/model_update_message_request.go @@ -0,0 +1,23 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// UpdateMessageRequest struct for UpdateMessageRequest +type UpdateMessageRequest struct { + Attributes string `json:"Attributes,omitempty"` + Body string `json:"Body,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + From string `json:"From,omitempty"` + LastUpdatedBy string `json:"LastUpdatedBy,omitempty"` +} diff --git a/rest/ip/messaging/model_update_role_request.go b/rest/ip/messaging/model_update_role_request.go new file mode 100644 index 000000000..c087657c6 --- /dev/null +++ b/rest/ip/messaging/model_update_role_request.go @@ -0,0 +1,15 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateRoleRequest struct for UpdateRoleRequest +type UpdateRoleRequest struct { + Permission []string `json:"Permission"` +} diff --git a/rest/ip/messaging/model_update_service_request.go b/rest/ip/messaging/model_update_service_request.go new file mode 100644 index 000000000..b5f2a0df1 --- /dev/null +++ b/rest/ip/messaging/model_update_service_request.go @@ -0,0 +1,45 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateServiceRequest struct for UpdateServiceRequest +type UpdateServiceRequest struct { + ConsumptionReportInterval int32 `json:"ConsumptionReportInterval,omitempty"` + DefaultChannelCreatorRoleSid string `json:"DefaultChannelCreatorRoleSid,omitempty"` + DefaultChannelRoleSid string `json:"DefaultChannelRoleSid,omitempty"` + DefaultServiceRoleSid string `json:"DefaultServiceRoleSid,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + LimitsChannelMembers int32 `json:"Limits.ChannelMembers,omitempty"` + LimitsUserChannels int32 `json:"Limits.UserChannels,omitempty"` + MediaCompatibilityMessage string `json:"Media.CompatibilityMessage,omitempty"` + NotificationsAddedToChannelEnabled bool `json:"Notifications.AddedToChannel.Enabled,omitempty"` + NotificationsAddedToChannelSound string `json:"Notifications.AddedToChannel.Sound,omitempty"` + NotificationsAddedToChannelTemplate string `json:"Notifications.AddedToChannel.Template,omitempty"` + NotificationsInvitedToChannelEnabled bool `json:"Notifications.InvitedToChannel.Enabled,omitempty"` + NotificationsInvitedToChannelSound string `json:"Notifications.InvitedToChannel.Sound,omitempty"` + NotificationsInvitedToChannelTemplate string `json:"Notifications.InvitedToChannel.Template,omitempty"` + NotificationsLogEnabled bool `json:"Notifications.LogEnabled,omitempty"` + NotificationsNewMessageBadgeCountEnabled bool `json:"Notifications.NewMessage.BadgeCountEnabled,omitempty"` + NotificationsNewMessageEnabled bool `json:"Notifications.NewMessage.Enabled,omitempty"` + NotificationsNewMessageSound string `json:"Notifications.NewMessage.Sound,omitempty"` + NotificationsNewMessageTemplate string `json:"Notifications.NewMessage.Template,omitempty"` + NotificationsRemovedFromChannelEnabled bool `json:"Notifications.RemovedFromChannel.Enabled,omitempty"` + NotificationsRemovedFromChannelSound string `json:"Notifications.RemovedFromChannel.Sound,omitempty"` + NotificationsRemovedFromChannelTemplate string `json:"Notifications.RemovedFromChannel.Template,omitempty"` + PostWebhookRetryCount int32 `json:"PostWebhookRetryCount,omitempty"` + PostWebhookUrl string `json:"PostWebhookUrl,omitempty"` + PreWebhookRetryCount int32 `json:"PreWebhookRetryCount,omitempty"` + PreWebhookUrl string `json:"PreWebhookUrl,omitempty"` + ReachabilityEnabled bool `json:"ReachabilityEnabled,omitempty"` + ReadStatusEnabled bool `json:"ReadStatusEnabled,omitempty"` + TypingIndicatorTimeout int32 `json:"TypingIndicatorTimeout,omitempty"` + WebhookFilters []string `json:"WebhookFilters,omitempty"` + WebhookMethod string `json:"WebhookMethod,omitempty"` +} diff --git a/rest/ip/messaging/model_update_user_channel_request.go b/rest/ip/messaging/model_update_user_channel_request.go new file mode 100644 index 000000000..de5be9dde --- /dev/null +++ b/rest/ip/messaging/model_update_user_channel_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// UpdateUserChannelRequest struct for UpdateUserChannelRequest +type UpdateUserChannelRequest struct { + LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` + LastConsumptionTimestamp time.Time `json:"LastConsumptionTimestamp,omitempty"` + NotificationLevel string `json:"NotificationLevel,omitempty"` +} diff --git a/rest/ip/messaging/model_update_user_request.go b/rest/ip/messaging/model_update_user_request.go new file mode 100644 index 000000000..72b94c000 --- /dev/null +++ b/rest/ip/messaging/model_update_user_request.go @@ -0,0 +1,17 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateUserRequest struct for UpdateUserRequest +type UpdateUserRequest struct { + Attributes string `json:"Attributes,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + RoleSid string `json:"RoleSid,omitempty"` +} diff --git a/rest/ip/messaging/response.go b/rest/ip/messaging/response.go new file mode 100644 index 000000000..9493a1441 --- /dev/null +++ b/rest/ip/messaging/response.go @@ -0,0 +1,47 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// Response returns a new APIResponse object. +func Response(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// ResponseWithError returns a new APIResponse object with the provided error message. +func ResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/rest/lookups/v1/.openapi-generator-ignore b/rest/lookups/v1/.openapi-generator-ignore new file mode 100644 index 000000000..7484ee590 --- /dev/null +++ b/rest/lookups/v1/.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/rest/lookups/v1/.openapi-generator/VERSION b/rest/lookups/v1/.openapi-generator/VERSION new file mode 100644 index 000000000..ecedc98d1 --- /dev/null +++ b/rest/lookups/v1/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.3.1 \ No newline at end of file diff --git a/rest/lookups/v1/README.md b/rest/lookups/v1/README.md new file mode 100644 index 000000000..27b8be1f3 --- /dev/null +++ b/rest/lookups/v1/README.md @@ -0,0 +1,64 @@ +# Go API client for openapi + +This is the public Twilio REST API. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 5.15.0 +- Package version: 1.0.0 +- Build package: com.twilio.oai.TwilioGoGenerator +For more information, please visit [https://support.twilio.com](https://support.twilio.com) + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import "./openapi" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**FetchPhoneNumber**](docs/DefaultApi.md#fetchphonenumber) | **Get** /v1/PhoneNumbers/{PhoneNumber} | + + +## Documentation For Models + + - [LookupsV1PhoneNumber](docs/LookupsV1PhoneNumber.md) + + +## Documentation For Authorization + + + +## accountSid_authToken + +- **Type**: HTTP basic authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ + UserName: "username", + Password: "password", +}) +r, err := client.Service.Operation(auth, args) +``` + + +## Author + +support@twilio.com + diff --git a/rest/lookups/v1/api_default.go b/rest/lookups/v1/api_default.go new file mode 100644 index 000000000..eaae02782 --- /dev/null +++ b/rest/lookups/v1/api_default.go @@ -0,0 +1,92 @@ +/* + * Twilio - Lookups + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "" + "reflect" +) + +type DefaultApiService struct { + baseURL string + client *twilio.Client +} + +func NewDefaultApiService(client *twilio.Client) *DefaultApiService { + return &DefaultApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} +// FetchPhoneNumberParams Optional parameters for the method 'FetchPhoneNumber' +type FetchPhoneNumberParams struct { + CountryCode *string `json:"CountryCode,omitempty"` + Type *[]string `json:"Type,omitempty"` + AddOns *[]string `json:"AddOns,omitempty"` + AddOnsData *map[string]interface{} `json:"AddOnsData,omitempty"` +} + +/* +FetchPhoneNumber Method for FetchPhoneNumber + * @param phoneNumber The phone number to lookup in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. + * @param optional nil or *FetchPhoneNumberOpts - Optional Parameters: + * @param "CountryCode" (string) - The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the phone number to fetch. This is used to specify the country when the phone number is provided in a national format. + * @param "Type" ([]string) - The type of information to return. Can be: `carrier` or `caller-name`. The default is null. Carrier information costs $0.005 per phone number looked up. Caller Name information is currently available only in the US and costs $0.01 per phone number looked up. To retrieve both types on information, specify this parameter twice; once with `carrier` and once with `caller-name` as the value. + * @param "AddOns" ([]string) - The `unique_name` of an Add-on you would like to invoke. Can be the `unique_name` of an Add-on that is installed on your account. You can specify multiple instances of this parameter to invoke multiple Add-ons. For more information about Add-ons, see the [Add-ons documentation](https://www.twilio.com/docs/add-ons). + * @param "AddOnsData" (map[string]interface{}) - Data specific to the add-on you would like to invoke. The content and format of this value depends on the add-on. +@return LookupsV1PhoneNumber +*/ +func (c *DefaultApiService) FetchPhoneNumber(phoneNumber string, params *FetchPhoneNumberParams) (*LookupsV1PhoneNumber, error) { + path := "/v1/PhoneNumbers/{PhoneNumber}" + path = strings.Replace(path, "{"+"PhoneNumber"+"}", phoneNumber, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CountryCode != nil { + data.Set("CountryCode", *params.CountryCode) + } + if params != nil && params.Type != nil { + data.Set("Type", string(*params.Type)) + } + if params != nil && params.AddOns != nil { + data.Set("AddOns", string(*params.AddOns)) + } + if params != nil && params.AddOnsData != nil { + v, err := json.Marshal(params.AddOnsData) + + if err != nil { + return nil, err + } + + data.Set("AddOnsData", string(v)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &LookupsV1PhoneNumber{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/lookups/v1/docs/DefaultApi.md b/rest/lookups/v1/docs/DefaultApi.md new file mode 100644 index 000000000..11dbd655c --- /dev/null +++ b/rest/lookups/v1/docs/DefaultApi.md @@ -0,0 +1,55 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**FetchPhoneNumber**](DefaultApi.md#FetchPhoneNumber) | **Get** /v1/PhoneNumbers/{PhoneNumber} | + + + +## FetchPhoneNumber + +> LookupsV1PhoneNumber FetchPhoneNumber(ctx, phoneNumber, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**phoneNumber** | **string**| The phone number to lookup 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** | ***FetchPhoneNumberOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a FetchPhoneNumberOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **countryCode** | **optional.String**| The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the phone number to fetch. This is used to specify the country when the phone number is provided in a national format. | + **type_** | [**optional.Interface of []string**](string.md)| The type of information to return. Can be: `carrier` or `caller-name`. The default is null. Carrier information costs $0.005 per phone number looked up. Caller Name information is currently available only in the US and costs $0.01 per phone number looked up. To retrieve both types on information, specify this parameter twice; once with `carrier` and once with `caller-name` as the value. | + **addOns** | [**optional.Interface of []string**](string.md)| The `unique_name` of an Add-on you would like to invoke. Can be the `unique_name` of an Add-on that is installed on your account. You can specify multiple instances of this parameter to invoke multiple Add-ons. For more information about Add-ons, see the [Add-ons documentation](https://www.twilio.com/docs/add-ons). | + **addOnsData** | [**optional.Interface of map[string]interface{}**](.md)| Data specific to the add-on you would like to invoke. The content and format of this value depends on the add-on. | + +### Return type + +[**LookupsV1PhoneNumber**](lookups.v1.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) + diff --git a/rest/lookups/v1/docs/LookupsV1PhoneNumber.md b/rest/lookups/v1/docs/LookupsV1PhoneNumber.md new file mode 100644 index 000000000..bad098575 --- /dev/null +++ b/rest/lookups/v1/docs/LookupsV1PhoneNumber.md @@ -0,0 +1,17 @@ +# LookupsV1PhoneNumber + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AddOns** | [**map[string]interface{}**](.md) | | [optional] +**CallerName** | [**map[string]interface{}**](.md) | | [optional] +**Carrier** | [**map[string]interface{}**](.md) | | [optional] +**CountryCode** | **string** | | [optional] +**NationalFormat** | **string** | | [optional] +**PhoneNumber** | **string** | | [optional] +**Url** | **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/rest/lookups/v1/model_lookups_v1_phone_number.go b/rest/lookups/v1/model_lookups_v1_phone_number.go new file mode 100644 index 000000000..e8859d034 --- /dev/null +++ b/rest/lookups/v1/model_lookups_v1_phone_number.go @@ -0,0 +1,21 @@ +/* + * Twilio - Lookups + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// LookupsV1PhoneNumber struct for LookupsV1PhoneNumber +type LookupsV1PhoneNumber struct { + AddOns map[string]interface{} `json:"add_ons,omitempty"` + CallerName map[string]interface{} `json:"caller_name,omitempty"` + Carrier map[string]interface{} `json:"carrier,omitempty"` + CountryCode string `json:"country_code,omitempty"` + NationalFormat string `json:"national_format,omitempty"` + PhoneNumber string `json:"phone_number,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/lookups/v1/response.go b/rest/lookups/v1/response.go new file mode 100644 index 000000000..f73a2c074 --- /dev/null +++ b/rest/lookups/v1/response.go @@ -0,0 +1,47 @@ +/* + * Twilio - Lookups + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// Response returns a new APIResponse object. +func Response(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// ResponseWithError returns a new APIResponse object with the provided error message. +func ResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/rest/messaging/v1/.openapi-generator-ignore b/rest/messaging/v1/.openapi-generator-ignore new file mode 100644 index 000000000..7484ee590 --- /dev/null +++ b/rest/messaging/v1/.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/rest/messaging/v1/.openapi-generator/VERSION b/rest/messaging/v1/.openapi-generator/VERSION new file mode 100644 index 000000000..ecedc98d1 --- /dev/null +++ b/rest/messaging/v1/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.3.1 \ No newline at end of file diff --git a/rest/messaging/v1/README.md b/rest/messaging/v1/README.md new file mode 100644 index 000000000..c747b5898 --- /dev/null +++ b/rest/messaging/v1/README.md @@ -0,0 +1,95 @@ +# Go API client for openapi + +This is the public Twilio REST API. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 5.15.0 +- Package version: 1.0.0 +- Build package: com.twilio.oai.TwilioGoGenerator +For more information, please visit [https://support.twilio.com](https://support.twilio.com) + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import "./openapi" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**CreateAlphaSender**](docs/DefaultApi.md#createalphasender) | **Post** /v1/Services/{ServiceSid}/AlphaSenders | +*DefaultApi* | [**CreatePhoneNumber**](docs/DefaultApi.md#createphonenumber) | **Post** /v1/Services/{ServiceSid}/PhoneNumbers | +*DefaultApi* | [**CreateService**](docs/DefaultApi.md#createservice) | **Post** /v1/Services | +*DefaultApi* | [**CreateShortCode**](docs/DefaultApi.md#createshortcode) | **Post** /v1/Services/{ServiceSid}/ShortCodes | +*DefaultApi* | [**DeleteAlphaSender**](docs/DefaultApi.md#deletealphasender) | **Delete** /v1/Services/{ServiceSid}/AlphaSenders/{Sid} | +*DefaultApi* | [**DeletePhoneNumber**](docs/DefaultApi.md#deletephonenumber) | **Delete** /v1/Services/{ServiceSid}/PhoneNumbers/{Sid} | +*DefaultApi* | [**DeleteService**](docs/DefaultApi.md#deleteservice) | **Delete** /v1/Services/{Sid} | +*DefaultApi* | [**DeleteShortCode**](docs/DefaultApi.md#deleteshortcode) | **Delete** /v1/Services/{ServiceSid}/ShortCodes/{Sid} | +*DefaultApi* | [**FetchAlphaSender**](docs/DefaultApi.md#fetchalphasender) | **Get** /v1/Services/{ServiceSid}/AlphaSenders/{Sid} | +*DefaultApi* | [**FetchDeactivation**](docs/DefaultApi.md#fetchdeactivation) | **Get** /v1/Deactivations | +*DefaultApi* | [**FetchPhoneNumber**](docs/DefaultApi.md#fetchphonenumber) | **Get** /v1/Services/{ServiceSid}/PhoneNumbers/{Sid} | +*DefaultApi* | [**FetchService**](docs/DefaultApi.md#fetchservice) | **Get** /v1/Services/{Sid} | +*DefaultApi* | [**FetchShortCode**](docs/DefaultApi.md#fetchshortcode) | **Get** /v1/Services/{ServiceSid}/ShortCodes/{Sid} | +*DefaultApi* | [**ListAlphaSender**](docs/DefaultApi.md#listalphasender) | **Get** /v1/Services/{ServiceSid}/AlphaSenders | +*DefaultApi* | [**ListPhoneNumber**](docs/DefaultApi.md#listphonenumber) | **Get** /v1/Services/{ServiceSid}/PhoneNumbers | +*DefaultApi* | [**ListService**](docs/DefaultApi.md#listservice) | **Get** /v1/Services | +*DefaultApi* | [**ListShortCode**](docs/DefaultApi.md#listshortcode) | **Get** /v1/Services/{ServiceSid}/ShortCodes | +*DefaultApi* | [**UpdateService**](docs/DefaultApi.md#updateservice) | **Post** /v1/Services/{Sid} | + + +## Documentation For Models + + - [CreateAlphaSenderRequest](docs/CreateAlphaSenderRequest.md) + - [CreatePhoneNumberRequest](docs/CreatePhoneNumberRequest.md) + - [CreateServiceRequest](docs/CreateServiceRequest.md) + - [CreateShortCodeRequest](docs/CreateShortCodeRequest.md) + - [MessagingV1Deactivation](docs/MessagingV1Deactivation.md) + - [MessagingV1Service](docs/MessagingV1Service.md) + - [MessagingV1ServiceAlphaSender](docs/MessagingV1ServiceAlphaSender.md) + - [MessagingV1ServiceAlphaSenderReadResponse](docs/MessagingV1ServiceAlphaSenderReadResponse.md) + - [MessagingV1ServicePhoneNumber](docs/MessagingV1ServicePhoneNumber.md) + - [MessagingV1ServicePhoneNumberReadResponse](docs/MessagingV1ServicePhoneNumberReadResponse.md) + - [MessagingV1ServiceReadResponse](docs/MessagingV1ServiceReadResponse.md) + - [MessagingV1ServiceReadResponseMeta](docs/MessagingV1ServiceReadResponseMeta.md) + - [MessagingV1ServiceShortCode](docs/MessagingV1ServiceShortCode.md) + - [MessagingV1ServiceShortCodeReadResponse](docs/MessagingV1ServiceShortCodeReadResponse.md) + - [UpdateServiceRequest](docs/UpdateServiceRequest.md) + + +## Documentation For Authorization + + + +## accountSid_authToken + +- **Type**: HTTP basic authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ + UserName: "username", + Password: "password", +}) +r, err := client.Service.Operation(auth, args) +``` + + +## Author + +support@twilio.com + diff --git a/rest/messaging/v1/api_default.go b/rest/messaging/v1/api_default.go new file mode 100644 index 000000000..3a7417e74 --- /dev/null +++ b/rest/messaging/v1/api_default.go @@ -0,0 +1,751 @@ +/* + * Twilio - Messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "" +) + +type DefaultApiService struct { + baseURL string + client *twilio.Client +} + +func NewDefaultApiService(client *twilio.Client) *DefaultApiService { + return &DefaultApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} +// CreateAlphaSenderParams Optional parameters for the method 'CreateAlphaSender' +type CreateAlphaSenderParams struct { + AlphaSender *string `json:"AlphaSender,omitempty"` +} + +/* +CreateAlphaSender Method for CreateAlphaSender + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the resource under. + * @param optional nil or *CreateAlphaSenderOpts - Optional Parameters: + * @param "AlphaSender" (string) - The Alphanumeric Sender ID string. Can be up to 11 characters long. Valid characters are A-Z, a-z, 0-9, space, and hyphen `-`. This value cannot contain only numbers. +@return MessagingV1ServiceAlphaSender +*/ +func (c *DefaultApiService) CreateAlphaSender(serviceSid string, params *CreateAlphaSenderParams) (*MessagingV1ServiceAlphaSender, error) { + path := "/v1/Services/{ServiceSid}/AlphaSenders" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AlphaSender != nil { + data.Set("AlphaSender", *params.AlphaSender) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &MessagingV1ServiceAlphaSender{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreatePhoneNumberParams Optional parameters for the method 'CreatePhoneNumber' +type CreatePhoneNumberParams struct { + PhoneNumberSid *string `json:"PhoneNumberSid,omitempty"` +} + +/* +CreatePhoneNumber Method for CreatePhoneNumber + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the resource under. + * @param optional nil or *CreatePhoneNumberOpts - Optional Parameters: + * @param "PhoneNumberSid" (string) - The SID of the Phone Number being added to the Service. +@return MessagingV1ServicePhoneNumber +*/ +func (c *DefaultApiService) CreatePhoneNumber(serviceSid string, params *CreatePhoneNumberParams) (*MessagingV1ServicePhoneNumber, error) { + path := "/v1/Services/{ServiceSid}/PhoneNumbers" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PhoneNumberSid != nil { + data.Set("PhoneNumberSid", *params.PhoneNumberSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &MessagingV1ServicePhoneNumber{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateServiceParams Optional parameters for the method 'CreateService' +type CreateServiceParams struct { + AreaCodeGeomatch *bool `json:"AreaCodeGeomatch,omitempty"` + FallbackMethod *string `json:"FallbackMethod,omitempty"` + FallbackToLongCode *bool `json:"FallbackToLongCode,omitempty"` + FallbackUrl *string `json:"FallbackUrl,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + InboundMethod *string `json:"InboundMethod,omitempty"` + InboundRequestUrl *string `json:"InboundRequestUrl,omitempty"` + MmsConverter *bool `json:"MmsConverter,omitempty"` + ScanMessageContent *string `json:"ScanMessageContent,omitempty"` + SmartEncoding *bool `json:"SmartEncoding,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StickySender *bool `json:"StickySender,omitempty"` + SynchronousValidation *bool `json:"SynchronousValidation,omitempty"` + ValidityPeriod *int32 `json:"ValidityPeriod,omitempty"` +} + +/* +CreateService Method for CreateService + * @param optional nil or *CreateServiceOpts - Optional Parameters: + * @param "AreaCodeGeomatch" (bool) - Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/sms/services#area-code-geomatch) on the Service Instance. + * @param "FallbackMethod" (string) - The HTTP method we should use to call `fallback_url`. Can be: `GET` or `POST`. + * @param "FallbackToLongCode" (bool) - Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/sms/services#fallback-to-long-code) for messages sent through the Service instance. + * @param "FallbackUrl" (string) - The URL that we should call using `fallback_method` if an error occurs while retrieving or executing the TwiML from the Inbound Request URL. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. + * @param "InboundMethod" (string) - The HTTP method we should use to call `inbound_request_url`. Can be `GET` or `POST` and the default is `POST`. + * @param "InboundRequestUrl" (string) - The URL we should call using `inbound_method` when a message is received by any phone number or short code in the Service. When this property is `null`, receiving inbound messages is disabled. + * @param "MmsConverter" (bool) - Whether to enable the [MMS Converter](https://www.twilio.com/docs/sms/services#mms-converter) for messages sent through the Service instance. + * @param "ScanMessageContent" (string) - Reserved. + * @param "SmartEncoding" (bool) - Whether to enable [Smart Encoding](https://www.twilio.com/docs/sms/services#smart-encoding) for messages sent through the Service instance. + * @param "StatusCallback" (string) - The URL we should call to [pass status updates](https://www.twilio.com/docs/sms/api/message-resource#message-status-values) about message delivery. + * @param "StickySender" (bool) - Whether to enable [Sticky Sender](https://www.twilio.com/docs/sms/services#sticky-sender) on the Service instance. + * @param "SynchronousValidation" (bool) - Reserved. + * @param "ValidityPeriod" (int32) - How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`. +@return MessagingV1Service +*/ +func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*MessagingV1Service, error) { + path := "/v1/Services" + + data := url.Values{} + headers := 0 + + if params != nil && params.AreaCodeGeomatch != nil { + data.Set("AreaCodeGeomatch", string(*params.AreaCodeGeomatch)) + } + if params != nil && params.FallbackMethod != nil { + data.Set("FallbackMethod", *params.FallbackMethod) + } + if params != nil && params.FallbackToLongCode != nil { + data.Set("FallbackToLongCode", string(*params.FallbackToLongCode)) + } + if params != nil && params.FallbackUrl != nil { + data.Set("FallbackUrl", *params.FallbackUrl) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.InboundMethod != nil { + data.Set("InboundMethod", *params.InboundMethod) + } + if params != nil && params.InboundRequestUrl != nil { + data.Set("InboundRequestUrl", *params.InboundRequestUrl) + } + if params != nil && params.MmsConverter != nil { + data.Set("MmsConverter", string(*params.MmsConverter)) + } + if params != nil && params.ScanMessageContent != nil { + data.Set("ScanMessageContent", *params.ScanMessageContent) + } + if params != nil && params.SmartEncoding != nil { + data.Set("SmartEncoding", string(*params.SmartEncoding)) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StickySender != nil { + data.Set("StickySender", string(*params.StickySender)) + } + if params != nil && params.SynchronousValidation != nil { + data.Set("SynchronousValidation", string(*params.SynchronousValidation)) + } + if params != nil && params.ValidityPeriod != nil { + data.Set("ValidityPeriod", string(*params.ValidityPeriod)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &MessagingV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateShortCodeParams Optional parameters for the method 'CreateShortCode' +type CreateShortCodeParams struct { + ShortCodeSid *string `json:"ShortCodeSid,omitempty"` +} + +/* +CreateShortCode Method for CreateShortCode + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the resource under. + * @param optional nil or *CreateShortCodeOpts - Optional Parameters: + * @param "ShortCodeSid" (string) - The SID of the ShortCode resource being added to the Service. +@return MessagingV1ServiceShortCode +*/ +func (c *DefaultApiService) CreateShortCode(serviceSid string, params *CreateShortCodeParams) (*MessagingV1ServiceShortCode, error) { + path := "/v1/Services/{ServiceSid}/ShortCodes" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ShortCodeSid != nil { + data.Set("ShortCodeSid", *params.ShortCodeSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &MessagingV1ServiceShortCode{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +DeleteAlphaSender Method for DeleteAlphaSender + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the resource from. + * @param sid The SID of the AlphaSender resource to delete. +*/ +func (c *DefaultApiService) DeleteAlphaSender(serviceSid string, sid string) (error) { + path := "/v1/Services/{ServiceSid}/AlphaSenders/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeletePhoneNumber Method for DeletePhoneNumber + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the resource from. + * @param sid The SID of the PhoneNumber resource to delete. +*/ +func (c *DefaultApiService) DeletePhoneNumber(serviceSid string, sid string) (error) { + path := "/v1/Services/{ServiceSid}/PhoneNumbers/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteService Method for DeleteService + * @param sid The SID of the Service resource to delete. +*/ +func (c *DefaultApiService) DeleteService(sid string) (error) { + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteShortCode Method for DeleteShortCode + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the resource from. + * @param sid The SID of the ShortCode resource to delete. +*/ +func (c *DefaultApiService) DeleteShortCode(serviceSid string, sid string) (error) { + path := "/v1/Services/{ServiceSid}/ShortCodes/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +FetchAlphaSender Method for FetchAlphaSender + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the resource from. + * @param sid The SID of the AlphaSender resource to fetch. +@return MessagingV1ServiceAlphaSender +*/ +func (c *DefaultApiService) FetchAlphaSender(serviceSid string, sid string) (*MessagingV1ServiceAlphaSender, error) { + path := "/v1/Services/{ServiceSid}/AlphaSenders/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &MessagingV1ServiceAlphaSender{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// FetchDeactivationParams Optional parameters for the method 'FetchDeactivation' +type FetchDeactivationParams struct { + Date *time.Time `json:"Date,omitempty"` +} + +/* +FetchDeactivation Method for FetchDeactivation +Fetch a list of all United States numbers that have been deactivated on a specific date. + * @param optional nil or *FetchDeactivationOpts - Optional Parameters: + * @param "Date" (time.Time) - The request will return a list of all United States Phone Numbers that were deactivated on the day specified by this parameter. This date should be specified in YYYY-MM-DD format. +*/ +func (c *DefaultApiService) FetchDeactivation(params *FetchDeactivationParams) (error) { + path := "/v1/Deactivations" + + data := url.Values{} + headers := 0 + + if params != nil && params.Date != nil { + data.Set("Date", string(*params.Date)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +FetchPhoneNumber Method for FetchPhoneNumber + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the resource from. + * @param sid The SID of the PhoneNumber resource to fetch. +@return MessagingV1ServicePhoneNumber +*/ +func (c *DefaultApiService) FetchPhoneNumber(serviceSid string, sid string) (*MessagingV1ServicePhoneNumber, error) { + path := "/v1/Services/{ServiceSid}/PhoneNumbers/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &MessagingV1ServicePhoneNumber{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchService Method for FetchService + * @param sid The SID of the Service resource to fetch. +@return MessagingV1Service +*/ +func (c *DefaultApiService) FetchService(sid string) (*MessagingV1Service, error) { + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &MessagingV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchShortCode Method for FetchShortCode + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the resource from. + * @param sid The SID of the ShortCode resource to fetch. +@return MessagingV1ServiceShortCode +*/ +func (c *DefaultApiService) FetchShortCode(serviceSid string, sid string) (*MessagingV1ServiceShortCode, error) { + path := "/v1/Services/{ServiceSid}/ShortCodes/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &MessagingV1ServiceShortCode{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListAlphaSenderParams Optional parameters for the method 'ListAlphaSender' +type ListAlphaSenderParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListAlphaSender Method for ListAlphaSender + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the resources from. + * @param optional nil or *ListAlphaSenderOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return MessagingV1ServiceAlphaSenderReadResponse +*/ +func (c *DefaultApiService) ListAlphaSender(serviceSid string, params *ListAlphaSenderParams) (*MessagingV1ServiceAlphaSenderReadResponse, error) { + path := "/v1/Services/{ServiceSid}/AlphaSenders" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &MessagingV1ServiceAlphaSenderReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListPhoneNumberParams Optional parameters for the method 'ListPhoneNumber' +type ListPhoneNumberParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListPhoneNumber Method for ListPhoneNumber + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the resources from. + * @param optional nil or *ListPhoneNumberOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return MessagingV1ServicePhoneNumberReadResponse +*/ +func (c *DefaultApiService) ListPhoneNumber(serviceSid string, params *ListPhoneNumberParams) (*MessagingV1ServicePhoneNumberReadResponse, error) { + path := "/v1/Services/{ServiceSid}/PhoneNumbers" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &MessagingV1ServicePhoneNumberReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListServiceParams Optional parameters for the method 'ListService' +type ListServiceParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListService Method for ListService + * @param optional nil or *ListServiceOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return MessagingV1ServiceReadResponse +*/ +func (c *DefaultApiService) ListService(params *ListServiceParams) (*MessagingV1ServiceReadResponse, error) { + path := "/v1/Services" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &MessagingV1ServiceReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListShortCodeParams Optional parameters for the method 'ListShortCode' +type ListShortCodeParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListShortCode Method for ListShortCode + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the resources from. + * @param optional nil or *ListShortCodeOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return MessagingV1ServiceShortCodeReadResponse +*/ +func (c *DefaultApiService) ListShortCode(serviceSid string, params *ListShortCodeParams) (*MessagingV1ServiceShortCodeReadResponse, error) { + path := "/v1/Services/{ServiceSid}/ShortCodes" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &MessagingV1ServiceShortCodeReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateServiceParams Optional parameters for the method 'UpdateService' +type UpdateServiceParams struct { + AreaCodeGeomatch *bool `json:"AreaCodeGeomatch,omitempty"` + FallbackMethod *string `json:"FallbackMethod,omitempty"` + FallbackToLongCode *bool `json:"FallbackToLongCode,omitempty"` + FallbackUrl *string `json:"FallbackUrl,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + InboundMethod *string `json:"InboundMethod,omitempty"` + InboundRequestUrl *string `json:"InboundRequestUrl,omitempty"` + MmsConverter *bool `json:"MmsConverter,omitempty"` + ScanMessageContent *string `json:"ScanMessageContent,omitempty"` + SmartEncoding *bool `json:"SmartEncoding,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StickySender *bool `json:"StickySender,omitempty"` + SynchronousValidation *bool `json:"SynchronousValidation,omitempty"` + ValidityPeriod *int32 `json:"ValidityPeriod,omitempty"` +} + +/* +UpdateService Method for UpdateService + * @param sid The SID of the Service resource to update. + * @param optional nil or *UpdateServiceOpts - Optional Parameters: + * @param "AreaCodeGeomatch" (bool) - Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/sms/services#area-code-geomatch) on the Service Instance. + * @param "FallbackMethod" (string) - The HTTP method we should use to call `fallback_url`. Can be: `GET` or `POST`. + * @param "FallbackToLongCode" (bool) - Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/sms/services#fallback-to-long-code) for messages sent through the Service instance. + * @param "FallbackUrl" (string) - The URL that we should call using `fallback_method` if an error occurs while retrieving or executing the TwiML from the Inbound Request URL. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. + * @param "InboundMethod" (string) - The HTTP method we should use to call `inbound_request_url`. Can be `GET` or `POST` and the default is `POST`. + * @param "InboundRequestUrl" (string) - The URL we should call using `inbound_method` when a message is received by any phone number or short code in the Service. When this property is `null`, receiving inbound messages is disabled. + * @param "MmsConverter" (bool) - Whether to enable the [MMS Converter](https://www.twilio.com/docs/sms/services#mms-converter) for messages sent through the Service instance. + * @param "ScanMessageContent" (string) - Reserved. + * @param "SmartEncoding" (bool) - Whether to enable [Smart Encoding](https://www.twilio.com/docs/sms/services#smart-encoding) for messages sent through the Service instance. + * @param "StatusCallback" (string) - The URL we should call to [pass status updates](https://www.twilio.com/docs/sms/api/message-resource#message-status-values) about message delivery. + * @param "StickySender" (bool) - Whether to enable [Sticky Sender](https://www.twilio.com/docs/sms/services#sticky-sender) on the Service instance. + * @param "SynchronousValidation" (bool) - Reserved. + * @param "ValidityPeriod" (int32) - How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`. +@return MessagingV1Service +*/ +func (c *DefaultApiService) UpdateService(sid string, params *UpdateServiceParams) (*MessagingV1Service, error) { + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AreaCodeGeomatch != nil { + data.Set("AreaCodeGeomatch", string(*params.AreaCodeGeomatch)) + } + if params != nil && params.FallbackMethod != nil { + data.Set("FallbackMethod", *params.FallbackMethod) + } + if params != nil && params.FallbackToLongCode != nil { + data.Set("FallbackToLongCode", string(*params.FallbackToLongCode)) + } + if params != nil && params.FallbackUrl != nil { + data.Set("FallbackUrl", *params.FallbackUrl) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.InboundMethod != nil { + data.Set("InboundMethod", *params.InboundMethod) + } + if params != nil && params.InboundRequestUrl != nil { + data.Set("InboundRequestUrl", *params.InboundRequestUrl) + } + if params != nil && params.MmsConverter != nil { + data.Set("MmsConverter", string(*params.MmsConverter)) + } + if params != nil && params.ScanMessageContent != nil { + data.Set("ScanMessageContent", *params.ScanMessageContent) + } + if params != nil && params.SmartEncoding != nil { + data.Set("SmartEncoding", string(*params.SmartEncoding)) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StickySender != nil { + data.Set("StickySender", string(*params.StickySender)) + } + if params != nil && params.SynchronousValidation != nil { + data.Set("SynchronousValidation", string(*params.SynchronousValidation)) + } + if params != nil && params.ValidityPeriod != nil { + data.Set("ValidityPeriod", string(*params.ValidityPeriod)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &MessagingV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/messaging/v1/docs/CreateAlphaSenderRequest.md b/rest/messaging/v1/docs/CreateAlphaSenderRequest.md new file mode 100644 index 000000000..f58744c20 --- /dev/null +++ b/rest/messaging/v1/docs/CreateAlphaSenderRequest.md @@ -0,0 +1,11 @@ +# CreateAlphaSenderRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AlphaSender** | **string** | The Alphanumeric Sender ID string. Can be up to 11 characters long. Valid characters are A-Z, a-z, 0-9, space, and hyphen `-`. This value cannot contain only numbers. | + +[[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/rest/messaging/v1/docs/CreatePhoneNumberRequest.md b/rest/messaging/v1/docs/CreatePhoneNumberRequest.md new file mode 100644 index 000000000..0d1e6aab8 --- /dev/null +++ b/rest/messaging/v1/docs/CreatePhoneNumberRequest.md @@ -0,0 +1,11 @@ +# CreatePhoneNumberRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PhoneNumberSid** | **string** | The SID of the Phone Number being added to the Service. | + +[[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/rest/messaging/v1/docs/CreateServiceRequest.md b/rest/messaging/v1/docs/CreateServiceRequest.md new file mode 100644 index 000000000..5d14a6fe2 --- /dev/null +++ b/rest/messaging/v1/docs/CreateServiceRequest.md @@ -0,0 +1,24 @@ +# CreateServiceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AreaCodeGeomatch** | **bool** | Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/sms/services#area-code-geomatch) on the Service Instance. | [optional] +**FallbackMethod** | **string** | The HTTP method we should use to call `fallback_url`. Can be: `GET` or `POST`. | [optional] +**FallbackToLongCode** | **bool** | Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/sms/services#fallback-to-long-code) for messages sent through the Service instance. | [optional] +**FallbackUrl** | **string** | The URL that we should call using `fallback_method` if an error occurs while retrieving or executing the TwiML from the Inbound Request URL. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | +**InboundMethod** | **string** | The HTTP method we should use to call `inbound_request_url`. Can be `GET` or `POST` and the default is `POST`. | [optional] +**InboundRequestUrl** | **string** | The URL we should call using `inbound_method` when a message is received by any phone number or short code in the Service. When this property is `null`, receiving inbound messages is disabled. | [optional] +**MmsConverter** | **bool** | Whether to enable the [MMS Converter](https://www.twilio.com/docs/sms/services#mms-converter) for messages sent through the Service instance. | [optional] +**ScanMessageContent** | **string** | Reserved. | [optional] +**SmartEncoding** | **bool** | Whether to enable [Smart Encoding](https://www.twilio.com/docs/sms/services#smart-encoding) for messages sent through the Service instance. | [optional] +**StatusCallback** | **string** | The URL we should call to [pass status updates](https://www.twilio.com/docs/sms/api/message-resource#message-status-values) about message delivery. | [optional] +**StickySender** | **bool** | Whether to enable [Sticky Sender](https://www.twilio.com/docs/sms/services#sticky-sender) on the Service instance. | [optional] +**SynchronousValidation** | **bool** | Reserved. | [optional] +**ValidityPeriod** | **int32** | How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`. | [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/rest/messaging/v1/docs/CreateShortCodeRequest.md b/rest/messaging/v1/docs/CreateShortCodeRequest.md new file mode 100644 index 000000000..dfbb2418c --- /dev/null +++ b/rest/messaging/v1/docs/CreateShortCodeRequest.md @@ -0,0 +1,11 @@ +# CreateShortCodeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ShortCodeSid** | **string** | The SID of the ShortCode resource being added to the Service. | + +[[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/rest/messaging/v1/docs/DefaultApi.md b/rest/messaging/v1/docs/DefaultApi.md new file mode 100644 index 000000000..a997321b8 --- /dev/null +++ b/rest/messaging/v1/docs/DefaultApi.md @@ -0,0 +1,740 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateAlphaSender**](DefaultApi.md#CreateAlphaSender) | **Post** /v1/Services/{ServiceSid}/AlphaSenders | +[**CreatePhoneNumber**](DefaultApi.md#CreatePhoneNumber) | **Post** /v1/Services/{ServiceSid}/PhoneNumbers | +[**CreateService**](DefaultApi.md#CreateService) | **Post** /v1/Services | +[**CreateShortCode**](DefaultApi.md#CreateShortCode) | **Post** /v1/Services/{ServiceSid}/ShortCodes | +[**DeleteAlphaSender**](DefaultApi.md#DeleteAlphaSender) | **Delete** /v1/Services/{ServiceSid}/AlphaSenders/{Sid} | +[**DeletePhoneNumber**](DefaultApi.md#DeletePhoneNumber) | **Delete** /v1/Services/{ServiceSid}/PhoneNumbers/{Sid} | +[**DeleteService**](DefaultApi.md#DeleteService) | **Delete** /v1/Services/{Sid} | +[**DeleteShortCode**](DefaultApi.md#DeleteShortCode) | **Delete** /v1/Services/{ServiceSid}/ShortCodes/{Sid} | +[**FetchAlphaSender**](DefaultApi.md#FetchAlphaSender) | **Get** /v1/Services/{ServiceSid}/AlphaSenders/{Sid} | +[**FetchDeactivation**](DefaultApi.md#FetchDeactivation) | **Get** /v1/Deactivations | +[**FetchPhoneNumber**](DefaultApi.md#FetchPhoneNumber) | **Get** /v1/Services/{ServiceSid}/PhoneNumbers/{Sid} | +[**FetchService**](DefaultApi.md#FetchService) | **Get** /v1/Services/{Sid} | +[**FetchShortCode**](DefaultApi.md#FetchShortCode) | **Get** /v1/Services/{ServiceSid}/ShortCodes/{Sid} | +[**ListAlphaSender**](DefaultApi.md#ListAlphaSender) | **Get** /v1/Services/{ServiceSid}/AlphaSenders | +[**ListPhoneNumber**](DefaultApi.md#ListPhoneNumber) | **Get** /v1/Services/{ServiceSid}/PhoneNumbers | +[**ListService**](DefaultApi.md#ListService) | **Get** /v1/Services | +[**ListShortCode**](DefaultApi.md#ListShortCode) | **Get** /v1/Services/{ServiceSid}/ShortCodes | +[**UpdateService**](DefaultApi.md#UpdateService) | **Post** /v1/Services/{Sid} | + + + +## CreateAlphaSender + +> MessagingV1ServiceAlphaSender CreateAlphaSender(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the resource under. | + **optional** | ***CreateAlphaSenderOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateAlphaSenderOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **alphaSender** | **optional.String**| The Alphanumeric Sender ID string. Can be up to 11 characters long. Valid characters are A-Z, a-z, 0-9, space, and hyphen `-`. This value cannot contain only numbers. | + +### Return type + +[**MessagingV1ServiceAlphaSender**](messaging.v1.service.alpha_sender.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) + + +## CreatePhoneNumber + +> MessagingV1ServicePhoneNumber CreatePhoneNumber(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the resource under. | + **optional** | ***CreatePhoneNumberOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreatePhoneNumberOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **phoneNumberSid** | **optional.String**| The SID of the Phone Number being added to the Service. | + +### Return type + +[**MessagingV1ServicePhoneNumber**](messaging.v1.service.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) + + +## CreateService + +> MessagingV1Service CreateService(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateServiceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateServiceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **areaCodeGeomatch** | **optional.Bool**| Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/sms/services#area-code-geomatch) on the Service Instance. | + **fallbackMethod** | **optional.String**| The HTTP method we should use to call `fallback_url`. Can be: `GET` or `POST`. | + **fallbackToLongCode** | **optional.Bool**| Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/sms/services#fallback-to-long-code) for messages sent through the Service instance. | + **fallbackUrl** | **optional.String**| The URL that we should call using `fallback_method` if an error occurs while retrieving or executing the TwiML from the Inbound Request URL. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **inboundMethod** | **optional.String**| The HTTP method we should use to call `inbound_request_url`. Can be `GET` or `POST` and the default is `POST`. | + **inboundRequestUrl** | **optional.String**| The URL we should call using `inbound_method` when a message is received by any phone number or short code in the Service. When this property is `null`, receiving inbound messages is disabled. | + **mmsConverter** | **optional.Bool**| Whether to enable the [MMS Converter](https://www.twilio.com/docs/sms/services#mms-converter) for messages sent through the Service instance. | + **scanMessageContent** | **optional.String**| Reserved. | + **smartEncoding** | **optional.Bool**| Whether to enable [Smart Encoding](https://www.twilio.com/docs/sms/services#smart-encoding) for messages sent through the Service instance. | + **statusCallback** | **optional.String**| The URL we should call to [pass status updates](https://www.twilio.com/docs/sms/api/message-resource#message-status-values) about message delivery. | + **stickySender** | **optional.Bool**| Whether to enable [Sticky Sender](https://www.twilio.com/docs/sms/services#sticky-sender) on the Service instance. | + **synchronousValidation** | **optional.Bool**| Reserved. | + **validityPeriod** | **optional.Int32**| How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`. | + +### Return type + +[**MessagingV1Service**](messaging.v1.service.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) + + +## CreateShortCode + +> MessagingV1ServiceShortCode CreateShortCode(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the resource under. | + **optional** | ***CreateShortCodeOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateShortCodeOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **shortCodeSid** | **optional.String**| The SID of the ShortCode resource being added to the Service. | + +### Return type + +[**MessagingV1ServiceShortCode**](messaging.v1.service.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) + + +## DeleteAlphaSender + +> DeleteAlphaSender(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the resource from. | +**sid** | **string**| The SID of the AlphaSender resource to delete. | + +### 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) + + +## DeletePhoneNumber + +> DeletePhoneNumber(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the resource from. | +**sid** | **string**| The SID of the PhoneNumber resource to delete. | + +### 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) + + +## DeleteService + +> DeleteService(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Service resource to delete. | + +### 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) + + +## DeleteShortCode + +> DeleteShortCode(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the resource from. | +**sid** | **string**| The SID of the ShortCode resource to delete. | + +### 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) + + +## FetchAlphaSender + +> MessagingV1ServiceAlphaSender FetchAlphaSender(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the resource from. | +**sid** | **string**| The SID of the AlphaSender resource to fetch. | + +### Return type + +[**MessagingV1ServiceAlphaSender**](messaging.v1.service.alpha_sender.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) + + +## FetchDeactivation + +> FetchDeactivation(ctx, optional) + + + +Fetch a list of all United States numbers that have been deactivated on a specific date. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***FetchDeactivationOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a FetchDeactivationOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **date** | **optional.Time**| The request will return a list of all United States Phone Numbers that were deactivated on the day specified by this parameter. This date should be specified in YYYY-MM-DD format. | + +### Return type + + (empty response body) + +### 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) + + +## FetchPhoneNumber + +> MessagingV1ServicePhoneNumber FetchPhoneNumber(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the resource from. | +**sid** | **string**| The SID of the PhoneNumber resource to fetch. | + +### Return type + +[**MessagingV1ServicePhoneNumber**](messaging.v1.service.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) + + +## FetchService + +> MessagingV1Service FetchService(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Service resource to fetch. | + +### Return type + +[**MessagingV1Service**](messaging.v1.service.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) + + +## FetchShortCode + +> MessagingV1ServiceShortCode FetchShortCode(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the resource from. | +**sid** | **string**| The SID of the ShortCode resource to fetch. | + +### Return type + +[**MessagingV1ServiceShortCode**](messaging.v1.service.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) + + +## ListAlphaSender + +> MessagingV1ServiceAlphaSenderReadResponse ListAlphaSender(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the resources from. | + **optional** | ***ListAlphaSenderOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListAlphaSenderOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**MessagingV1ServiceAlphaSenderReadResponse**](messaging_v1_service_alpha_senderReadResponse.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) + + +## ListPhoneNumber + +> MessagingV1ServicePhoneNumberReadResponse ListPhoneNumber(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the resources from. | + **optional** | ***ListPhoneNumberOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListPhoneNumberOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**MessagingV1ServicePhoneNumberReadResponse**](messaging_v1_service_phone_numberReadResponse.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) + + +## ListService + +> MessagingV1ServiceReadResponse ListService(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListServiceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListServiceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**MessagingV1ServiceReadResponse**](messaging_v1_serviceReadResponse.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) + + +## ListShortCode + +> MessagingV1ServiceShortCodeReadResponse ListShortCode(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the resources from. | + **optional** | ***ListShortCodeOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListShortCodeOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**MessagingV1ServiceShortCodeReadResponse**](messaging_v1_service_short_codeReadResponse.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) + + +## UpdateService + +> MessagingV1Service UpdateService(ctx, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Service resource to update. | + **optional** | ***UpdateServiceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateServiceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **areaCodeGeomatch** | **optional.Bool**| Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/sms/services#area-code-geomatch) on the Service Instance. | + **fallbackMethod** | **optional.String**| The HTTP method we should use to call `fallback_url`. Can be: `GET` or `POST`. | + **fallbackToLongCode** | **optional.Bool**| Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/sms/services#fallback-to-long-code) for messages sent through the Service instance. | + **fallbackUrl** | **optional.String**| The URL that we should call using `fallback_method` if an error occurs while retrieving or executing the TwiML from the Inbound Request URL. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **inboundMethod** | **optional.String**| The HTTP method we should use to call `inbound_request_url`. Can be `GET` or `POST` and the default is `POST`. | + **inboundRequestUrl** | **optional.String**| The URL we should call using `inbound_method` when a message is received by any phone number or short code in the Service. When this property is `null`, receiving inbound messages is disabled. | + **mmsConverter** | **optional.Bool**| Whether to enable the [MMS Converter](https://www.twilio.com/docs/sms/services#mms-converter) for messages sent through the Service instance. | + **scanMessageContent** | **optional.String**| Reserved. | + **smartEncoding** | **optional.Bool**| Whether to enable [Smart Encoding](https://www.twilio.com/docs/sms/services#smart-encoding) for messages sent through the Service instance. | + **statusCallback** | **optional.String**| The URL we should call to [pass status updates](https://www.twilio.com/docs/sms/api/message-resource#message-status-values) about message delivery. | + **stickySender** | **optional.Bool**| Whether to enable [Sticky Sender](https://www.twilio.com/docs/sms/services#sticky-sender) on the Service instance. | + **synchronousValidation** | **optional.Bool**| Reserved. | + **validityPeriod** | **optional.Int32**| How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`. | + +### Return type + +[**MessagingV1Service**](messaging.v1.service.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/rest/messaging/v1/docs/MessagingV1Deactivation.md b/rest/messaging/v1/docs/MessagingV1Deactivation.md new file mode 100644 index 000000000..3c82f7b2a --- /dev/null +++ b/rest/messaging/v1/docs/MessagingV1Deactivation.md @@ -0,0 +1,11 @@ +# MessagingV1Deactivation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RedirectTo** | **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/rest/messaging/v1/docs/MessagingV1Service.md b/rest/messaging/v1/docs/MessagingV1Service.md new file mode 100644 index 000000000..2772203db --- /dev/null +++ b/rest/messaging/v1/docs/MessagingV1Service.md @@ -0,0 +1,30 @@ +# MessagingV1Service + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AreaCodeGeomatch** | **bool** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FallbackMethod** | **string** | | [optional] +**FallbackToLongCode** | **bool** | | [optional] +**FallbackUrl** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**InboundMethod** | **string** | | [optional] +**InboundRequestUrl** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**MmsConverter** | **bool** | | [optional] +**ScanMessageContent** | **string** | | [optional] +**Sid** | **string** | | [optional] +**SmartEncoding** | **bool** | | [optional] +**StatusCallback** | **string** | | [optional] +**StickySender** | **bool** | | [optional] +**SynchronousValidation** | **bool** | | [optional] +**Url** | **string** | | [optional] +**ValidityPeriod** | **int32** | | [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/rest/messaging/v1/docs/MessagingV1ServiceAlphaSender.md b/rest/messaging/v1/docs/MessagingV1ServiceAlphaSender.md new file mode 100644 index 000000000..9d419afbb --- /dev/null +++ b/rest/messaging/v1/docs/MessagingV1ServiceAlphaSender.md @@ -0,0 +1,18 @@ +# MessagingV1ServiceAlphaSender + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AlphaSender** | **string** | | [optional] +**Capabilities** | **[]string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/messaging/v1/docs/MessagingV1ServiceAlphaSenderReadResponse.md b/rest/messaging/v1/docs/MessagingV1ServiceAlphaSenderReadResponse.md new file mode 100644 index 000000000..bbfabdaeb --- /dev/null +++ b/rest/messaging/v1/docs/MessagingV1ServiceAlphaSenderReadResponse.md @@ -0,0 +1,12 @@ +# MessagingV1ServiceAlphaSenderReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AlphaSenders** | [**[]MessagingV1ServiceAlphaSender**](messaging.v1.service.alpha_sender.md) | | [optional] +**Meta** | [**MessagingV1ServiceReadResponseMeta**](messaging_v1_serviceReadResponse_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/rest/messaging/v1/docs/MessagingV1ServicePhoneNumber.md b/rest/messaging/v1/docs/MessagingV1ServicePhoneNumber.md new file mode 100644 index 000000000..c43558b8c --- /dev/null +++ b/rest/messaging/v1/docs/MessagingV1ServicePhoneNumber.md @@ -0,0 +1,19 @@ +# MessagingV1ServicePhoneNumber + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Capabilities** | **[]string** | | [optional] +**CountryCode** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**PhoneNumber** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/messaging/v1/docs/MessagingV1ServicePhoneNumberReadResponse.md b/rest/messaging/v1/docs/MessagingV1ServicePhoneNumberReadResponse.md new file mode 100644 index 000000000..6d52e2d62 --- /dev/null +++ b/rest/messaging/v1/docs/MessagingV1ServicePhoneNumberReadResponse.md @@ -0,0 +1,12 @@ +# MessagingV1ServicePhoneNumberReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**MessagingV1ServiceReadResponseMeta**](messaging_v1_serviceReadResponse_meta.md) | | [optional] +**PhoneNumbers** | [**[]MessagingV1ServicePhoneNumber**](messaging.v1.service.phone_number.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/rest/messaging/v1/docs/MessagingV1ServiceReadResponse.md b/rest/messaging/v1/docs/MessagingV1ServiceReadResponse.md new file mode 100644 index 000000000..bb4596900 --- /dev/null +++ b/rest/messaging/v1/docs/MessagingV1ServiceReadResponse.md @@ -0,0 +1,12 @@ +# MessagingV1ServiceReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**MessagingV1ServiceReadResponseMeta**](messaging_v1_serviceReadResponse_meta.md) | | [optional] +**Services** | [**[]MessagingV1Service**](messaging.v1.service.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/rest/messaging/v1/docs/MessagingV1ServiceReadResponseMeta.md b/rest/messaging/v1/docs/MessagingV1ServiceReadResponseMeta.md new file mode 100644 index 000000000..12a17df21 --- /dev/null +++ b/rest/messaging/v1/docs/MessagingV1ServiceReadResponseMeta.md @@ -0,0 +1,17 @@ +# MessagingV1ServiceReadResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/messaging/v1/docs/MessagingV1ServiceShortCode.md b/rest/messaging/v1/docs/MessagingV1ServiceShortCode.md new file mode 100644 index 000000000..59ab2e3bf --- /dev/null +++ b/rest/messaging/v1/docs/MessagingV1ServiceShortCode.md @@ -0,0 +1,19 @@ +# MessagingV1ServiceShortCode + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Capabilities** | **[]string** | | [optional] +**CountryCode** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**ServiceSid** | **string** | | [optional] +**ShortCode** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/messaging/v1/docs/MessagingV1ServiceShortCodeReadResponse.md b/rest/messaging/v1/docs/MessagingV1ServiceShortCodeReadResponse.md new file mode 100644 index 000000000..11c18c149 --- /dev/null +++ b/rest/messaging/v1/docs/MessagingV1ServiceShortCodeReadResponse.md @@ -0,0 +1,12 @@ +# MessagingV1ServiceShortCodeReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**MessagingV1ServiceReadResponseMeta**](messaging_v1_serviceReadResponse_meta.md) | | [optional] +**ShortCodes** | [**[]MessagingV1ServiceShortCode**](messaging.v1.service.short_code.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/rest/messaging/v1/docs/UpdateServiceRequest.md b/rest/messaging/v1/docs/UpdateServiceRequest.md new file mode 100644 index 000000000..e474dc8e5 --- /dev/null +++ b/rest/messaging/v1/docs/UpdateServiceRequest.md @@ -0,0 +1,24 @@ +# UpdateServiceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AreaCodeGeomatch** | **bool** | Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/sms/services#area-code-geomatch) on the Service Instance. | [optional] +**FallbackMethod** | **string** | The HTTP method we should use to call `fallback_url`. Can be: `GET` or `POST`. | [optional] +**FallbackToLongCode** | **bool** | Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/sms/services#fallback-to-long-code) for messages sent through the Service instance. | [optional] +**FallbackUrl** | **string** | The URL that we should call using `fallback_method` if an error occurs while retrieving or executing the TwiML from the Inbound Request URL. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | [optional] +**InboundMethod** | **string** | The HTTP method we should use to call `inbound_request_url`. Can be `GET` or `POST` and the default is `POST`. | [optional] +**InboundRequestUrl** | **string** | The URL we should call using `inbound_method` when a message is received by any phone number or short code in the Service. When this property is `null`, receiving inbound messages is disabled. | [optional] +**MmsConverter** | **bool** | Whether to enable the [MMS Converter](https://www.twilio.com/docs/sms/services#mms-converter) for messages sent through the Service instance. | [optional] +**ScanMessageContent** | **string** | Reserved. | [optional] +**SmartEncoding** | **bool** | Whether to enable [Smart Encoding](https://www.twilio.com/docs/sms/services#smart-encoding) for messages sent through the Service instance. | [optional] +**StatusCallback** | **string** | The URL we should call to [pass status updates](https://www.twilio.com/docs/sms/api/message-resource#message-status-values) about message delivery. | [optional] +**StickySender** | **bool** | Whether to enable [Sticky Sender](https://www.twilio.com/docs/sms/services#sticky-sender) on the Service instance. | [optional] +**SynchronousValidation** | **bool** | Reserved. | [optional] +**ValidityPeriod** | **int32** | How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`. | [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/rest/messaging/v1/model_create_alpha_sender_request.go b/rest/messaging/v1/model_create_alpha_sender_request.go new file mode 100644 index 000000000..853459f23 --- /dev/null +++ b/rest/messaging/v1/model_create_alpha_sender_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateAlphaSenderRequest struct for CreateAlphaSenderRequest +type CreateAlphaSenderRequest struct { + // The Alphanumeric Sender ID string. Can be up to 11 characters long. Valid characters are A-Z, a-z, 0-9, space, and hyphen `-`. This value cannot contain only numbers. + AlphaSender string `json:"AlphaSender"` +} diff --git a/rest/messaging/v1/model_create_phone_number_request.go b/rest/messaging/v1/model_create_phone_number_request.go new file mode 100644 index 000000000..cd071d486 --- /dev/null +++ b/rest/messaging/v1/model_create_phone_number_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreatePhoneNumberRequest struct for CreatePhoneNumberRequest +type CreatePhoneNumberRequest struct { + // The SID of the Phone Number being added to the Service. + PhoneNumberSid string `json:"PhoneNumberSid"` +} diff --git a/rest/messaging/v1/model_create_service_request.go b/rest/messaging/v1/model_create_service_request.go new file mode 100644 index 000000000..eae491520 --- /dev/null +++ b/rest/messaging/v1/model_create_service_request.go @@ -0,0 +1,42 @@ +/* + * Twilio - Messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateServiceRequest struct for CreateServiceRequest +type CreateServiceRequest struct { + // Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/sms/services#area-code-geomatch) on the Service Instance. + AreaCodeGeomatch bool `json:"AreaCodeGeomatch,omitempty"` + // The HTTP method we should use to call `fallback_url`. Can be: `GET` or `POST`. + FallbackMethod string `json:"FallbackMethod,omitempty"` + // Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/sms/services#fallback-to-long-code) for messages sent through the Service instance. + FallbackToLongCode bool `json:"FallbackToLongCode,omitempty"` + // The URL that we should call using `fallback_method` if an error occurs while retrieving or executing the TwiML from the Inbound Request URL. + FallbackUrl string `json:"FallbackUrl,omitempty"` + // A descriptive string that you create to describe the resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName"` + // The HTTP method we should use to call `inbound_request_url`. Can be `GET` or `POST` and the default is `POST`. + InboundMethod string `json:"InboundMethod,omitempty"` + // The URL we should call using `inbound_method` when a message is received by any phone number or short code in the Service. When this property is `null`, receiving inbound messages is disabled. + InboundRequestUrl string `json:"InboundRequestUrl,omitempty"` + // Whether to enable the [MMS Converter](https://www.twilio.com/docs/sms/services#mms-converter) for messages sent through the Service instance. + MmsConverter bool `json:"MmsConverter,omitempty"` + // Reserved. + ScanMessageContent string `json:"ScanMessageContent,omitempty"` + // Whether to enable [Smart Encoding](https://www.twilio.com/docs/sms/services#smart-encoding) for messages sent through the Service instance. + SmartEncoding bool `json:"SmartEncoding,omitempty"` + // The URL we should call to [pass status updates](https://www.twilio.com/docs/sms/api/message-resource#message-status-values) about message delivery. + StatusCallback string `json:"StatusCallback,omitempty"` + // Whether to enable [Sticky Sender](https://www.twilio.com/docs/sms/services#sticky-sender) on the Service instance. + StickySender bool `json:"StickySender,omitempty"` + // Reserved. + SynchronousValidation bool `json:"SynchronousValidation,omitempty"` + // How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`. + ValidityPeriod int32 `json:"ValidityPeriod,omitempty"` +} diff --git a/rest/messaging/v1/model_create_short_code_request.go b/rest/messaging/v1/model_create_short_code_request.go new file mode 100644 index 000000000..b92016991 --- /dev/null +++ b/rest/messaging/v1/model_create_short_code_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateShortCodeRequest struct for CreateShortCodeRequest +type CreateShortCodeRequest struct { + // The SID of the ShortCode resource being added to the Service. + ShortCodeSid string `json:"ShortCodeSid"` +} diff --git a/rest/messaging/v1/model_messaging_v1_deactivation.go b/rest/messaging/v1/model_messaging_v1_deactivation.go new file mode 100644 index 000000000..bfd684742 --- /dev/null +++ b/rest/messaging/v1/model_messaging_v1_deactivation.go @@ -0,0 +1,15 @@ +/* + * Twilio - Messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// MessagingV1Deactivation struct for MessagingV1Deactivation +type MessagingV1Deactivation struct { + RedirectTo string `json:"redirect_to,omitempty"` +} diff --git a/rest/messaging/v1/model_messaging_v1_service.go b/rest/messaging/v1/model_messaging_v1_service.go new file mode 100644 index 000000000..734104de4 --- /dev/null +++ b/rest/messaging/v1/model_messaging_v1_service.go @@ -0,0 +1,37 @@ +/* + * Twilio - Messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// MessagingV1Service struct for MessagingV1Service +type MessagingV1Service struct { + AccountSid string `json:"account_sid,omitempty"` + AreaCodeGeomatch bool `json:"area_code_geomatch,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FallbackMethod string `json:"fallback_method,omitempty"` + FallbackToLongCode bool `json:"fallback_to_long_code,omitempty"` + FallbackUrl string `json:"fallback_url,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + InboundMethod string `json:"inbound_method,omitempty"` + InboundRequestUrl string `json:"inbound_request_url,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + MmsConverter bool `json:"mms_converter,omitempty"` + ScanMessageContent string `json:"scan_message_content,omitempty"` + Sid string `json:"sid,omitempty"` + SmartEncoding bool `json:"smart_encoding,omitempty"` + StatusCallback string `json:"status_callback,omitempty"` + StickySender bool `json:"sticky_sender,omitempty"` + SynchronousValidation bool `json:"synchronous_validation,omitempty"` + Url string `json:"url,omitempty"` + ValidityPeriod int32 `json:"validity_period,omitempty"` +} diff --git a/rest/messaging/v1/model_messaging_v1_service_alpha_sender.go b/rest/messaging/v1/model_messaging_v1_service_alpha_sender.go new file mode 100644 index 000000000..d7a549d18 --- /dev/null +++ b/rest/messaging/v1/model_messaging_v1_service_alpha_sender.go @@ -0,0 +1,25 @@ +/* + * Twilio - Messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// MessagingV1ServiceAlphaSender struct for MessagingV1ServiceAlphaSender +type MessagingV1ServiceAlphaSender struct { + AccountSid string `json:"account_sid,omitempty"` + AlphaSender string `json:"alpha_sender,omitempty"` + Capabilities []string `json:"capabilities,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/messaging/v1/model_messaging_v1_service_alpha_sender_read_response.go b/rest/messaging/v1/model_messaging_v1_service_alpha_sender_read_response.go new file mode 100644 index 000000000..185d87e74 --- /dev/null +++ b/rest/messaging/v1/model_messaging_v1_service_alpha_sender_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// MessagingV1ServiceAlphaSenderReadResponse struct for MessagingV1ServiceAlphaSenderReadResponse +type MessagingV1ServiceAlphaSenderReadResponse struct { + AlphaSenders []MessagingV1ServiceAlphaSender `json:"alpha_senders,omitempty"` + Meta MessagingV1ServiceReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/messaging/v1/model_messaging_v1_service_phone_number.go b/rest/messaging/v1/model_messaging_v1_service_phone_number.go new file mode 100644 index 000000000..592079bbc --- /dev/null +++ b/rest/messaging/v1/model_messaging_v1_service_phone_number.go @@ -0,0 +1,26 @@ +/* + * Twilio - Messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// MessagingV1ServicePhoneNumber struct for MessagingV1ServicePhoneNumber +type MessagingV1ServicePhoneNumber struct { + AccountSid string `json:"account_sid,omitempty"` + Capabilities []string `json:"capabilities,omitempty"` + CountryCode string `json:"country_code,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + PhoneNumber string `json:"phone_number,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/messaging/v1/model_messaging_v1_service_phone_number_read_response.go b/rest/messaging/v1/model_messaging_v1_service_phone_number_read_response.go new file mode 100644 index 000000000..c863d7c70 --- /dev/null +++ b/rest/messaging/v1/model_messaging_v1_service_phone_number_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// MessagingV1ServicePhoneNumberReadResponse struct for MessagingV1ServicePhoneNumberReadResponse +type MessagingV1ServicePhoneNumberReadResponse struct { + Meta MessagingV1ServiceReadResponseMeta `json:"meta,omitempty"` + PhoneNumbers []MessagingV1ServicePhoneNumber `json:"phone_numbers,omitempty"` +} diff --git a/rest/messaging/v1/model_messaging_v1_service_read_response.go b/rest/messaging/v1/model_messaging_v1_service_read_response.go new file mode 100644 index 000000000..1bde4dcbe --- /dev/null +++ b/rest/messaging/v1/model_messaging_v1_service_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// MessagingV1ServiceReadResponse struct for MessagingV1ServiceReadResponse +type MessagingV1ServiceReadResponse struct { + Meta MessagingV1ServiceReadResponseMeta `json:"meta,omitempty"` + Services []MessagingV1Service `json:"services,omitempty"` +} diff --git a/rest/messaging/v1/model_messaging_v1_service_read_response_meta.go b/rest/messaging/v1/model_messaging_v1_service_read_response_meta.go new file mode 100644 index 000000000..b075e56b2 --- /dev/null +++ b/rest/messaging/v1/model_messaging_v1_service_read_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// MessagingV1ServiceReadResponseMeta struct for MessagingV1ServiceReadResponseMeta +type MessagingV1ServiceReadResponseMeta struct { + FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` + NextPageUrl string `json:"next_page_url,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUrl string `json:"previous_page_url,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/messaging/v1/model_messaging_v1_service_short_code.go b/rest/messaging/v1/model_messaging_v1_service_short_code.go new file mode 100644 index 000000000..570982c9b --- /dev/null +++ b/rest/messaging/v1/model_messaging_v1_service_short_code.go @@ -0,0 +1,26 @@ +/* + * Twilio - Messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// MessagingV1ServiceShortCode struct for MessagingV1ServiceShortCode +type MessagingV1ServiceShortCode struct { + AccountSid string `json:"account_sid,omitempty"` + Capabilities []string `json:"capabilities,omitempty"` + CountryCode string `json:"country_code,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + ShortCode string `json:"short_code,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/messaging/v1/model_messaging_v1_service_short_code_read_response.go b/rest/messaging/v1/model_messaging_v1_service_short_code_read_response.go new file mode 100644 index 000000000..3956e6e7b --- /dev/null +++ b/rest/messaging/v1/model_messaging_v1_service_short_code_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// MessagingV1ServiceShortCodeReadResponse struct for MessagingV1ServiceShortCodeReadResponse +type MessagingV1ServiceShortCodeReadResponse struct { + Meta MessagingV1ServiceReadResponseMeta `json:"meta,omitempty"` + ShortCodes []MessagingV1ServiceShortCode `json:"short_codes,omitempty"` +} diff --git a/rest/messaging/v1/model_update_service_request.go b/rest/messaging/v1/model_update_service_request.go new file mode 100644 index 000000000..38336570c --- /dev/null +++ b/rest/messaging/v1/model_update_service_request.go @@ -0,0 +1,42 @@ +/* + * Twilio - Messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateServiceRequest struct for UpdateServiceRequest +type UpdateServiceRequest struct { + // Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/sms/services#area-code-geomatch) on the Service Instance. + AreaCodeGeomatch bool `json:"AreaCodeGeomatch,omitempty"` + // The HTTP method we should use to call `fallback_url`. Can be: `GET` or `POST`. + FallbackMethod string `json:"FallbackMethod,omitempty"` + // Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/sms/services#fallback-to-long-code) for messages sent through the Service instance. + FallbackToLongCode bool `json:"FallbackToLongCode,omitempty"` + // The URL that we should call using `fallback_method` if an error occurs while retrieving or executing the TwiML from the Inbound Request URL. + FallbackUrl string `json:"FallbackUrl,omitempty"` + // A descriptive string that you create to describe the resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // The HTTP method we should use to call `inbound_request_url`. Can be `GET` or `POST` and the default is `POST`. + InboundMethod string `json:"InboundMethod,omitempty"` + // The URL we should call using `inbound_method` when a message is received by any phone number or short code in the Service. When this property is `null`, receiving inbound messages is disabled. + InboundRequestUrl string `json:"InboundRequestUrl,omitempty"` + // Whether to enable the [MMS Converter](https://www.twilio.com/docs/sms/services#mms-converter) for messages sent through the Service instance. + MmsConverter bool `json:"MmsConverter,omitempty"` + // Reserved. + ScanMessageContent string `json:"ScanMessageContent,omitempty"` + // Whether to enable [Smart Encoding](https://www.twilio.com/docs/sms/services#smart-encoding) for messages sent through the Service instance. + SmartEncoding bool `json:"SmartEncoding,omitempty"` + // The URL we should call to [pass status updates](https://www.twilio.com/docs/sms/api/message-resource#message-status-values) about message delivery. + StatusCallback string `json:"StatusCallback,omitempty"` + // Whether to enable [Sticky Sender](https://www.twilio.com/docs/sms/services#sticky-sender) on the Service instance. + StickySender bool `json:"StickySender,omitempty"` + // Reserved. + SynchronousValidation bool `json:"SynchronousValidation,omitempty"` + // How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`. + ValidityPeriod int32 `json:"ValidityPeriod,omitempty"` +} diff --git a/rest/messaging/v1/response.go b/rest/messaging/v1/response.go new file mode 100644 index 000000000..ed1c9d092 --- /dev/null +++ b/rest/messaging/v1/response.go @@ -0,0 +1,47 @@ +/* + * Twilio - Messaging + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// Response returns a new APIResponse object. +func Response(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// ResponseWithError returns a new APIResponse object with the provided error message. +func ResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/rest/monitor/v1/.openapi-generator-ignore b/rest/monitor/v1/.openapi-generator-ignore new file mode 100644 index 000000000..7484ee590 --- /dev/null +++ b/rest/monitor/v1/.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/rest/monitor/v1/.openapi-generator/VERSION b/rest/monitor/v1/.openapi-generator/VERSION new file mode 100644 index 000000000..ecedc98d1 --- /dev/null +++ b/rest/monitor/v1/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.3.1 \ No newline at end of file diff --git a/rest/monitor/v1/README.md b/rest/monitor/v1/README.md new file mode 100644 index 000000000..b6ad76081 --- /dev/null +++ b/rest/monitor/v1/README.md @@ -0,0 +1,72 @@ +# Go API client for openapi + +This is the public Twilio REST API. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 5.15.0 +- Package version: 1.0.0 +- Build package: com.twilio.oai.TwilioGoGenerator +For more information, please visit [https://support.twilio.com](https://support.twilio.com) + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import "./openapi" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**FetchAlert**](docs/DefaultApi.md#fetchalert) | **Get** /v1/Alerts/{Sid} | +*DefaultApi* | [**FetchEvent**](docs/DefaultApi.md#fetchevent) | **Get** /v1/Events/{Sid} | +*DefaultApi* | [**ListAlert**](docs/DefaultApi.md#listalert) | **Get** /v1/Alerts | +*DefaultApi* | [**ListEvent**](docs/DefaultApi.md#listevent) | **Get** /v1/Events | + + +## Documentation For Models + + - [MonitorV1Alert](docs/MonitorV1Alert.md) + - [MonitorV1AlertInstance](docs/MonitorV1AlertInstance.md) + - [MonitorV1AlertReadResponse](docs/MonitorV1AlertReadResponse.md) + - [MonitorV1AlertReadResponseMeta](docs/MonitorV1AlertReadResponseMeta.md) + - [MonitorV1Event](docs/MonitorV1Event.md) + - [MonitorV1EventReadResponse](docs/MonitorV1EventReadResponse.md) + + +## Documentation For Authorization + + + +## accountSid_authToken + +- **Type**: HTTP basic authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ + UserName: "username", + Password: "password", +}) +r, err := client.Service.Operation(auth, args) +``` + + +## Author + +support@twilio.com + diff --git a/rest/monitor/v1/api_default.go b/rest/monitor/v1/api_default.go new file mode 100644 index 000000000..380aedc4a --- /dev/null +++ b/rest/monitor/v1/api_default.go @@ -0,0 +1,208 @@ +/* + * Twilio - Monitor + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "" +) + +type DefaultApiService struct { + baseURL string + client *twilio.Client +} + +func NewDefaultApiService(client *twilio.Client) *DefaultApiService { + return &DefaultApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} + +/* +FetchAlert Method for FetchAlert + * @param sid The SID of the Alert resource to fetch. +@return MonitorV1AlertInstance +*/ +func (c *DefaultApiService) FetchAlert(sid string) (*MonitorV1AlertInstance, error) { + path := "/v1/Alerts/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &MonitorV1AlertInstance{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchEvent Method for FetchEvent + * @param sid The SID of the Event resource to fetch. +@return MonitorV1Event +*/ +func (c *DefaultApiService) FetchEvent(sid string) (*MonitorV1Event, error) { + path := "/v1/Events/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &MonitorV1Event{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListAlertParams Optional parameters for the method 'ListAlert' +type ListAlertParams struct { + LogLevel *string `json:"LogLevel,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListAlert Method for ListAlert + * @param optional nil or *ListAlertOpts - Optional Parameters: + * @param "LogLevel" (string) - Only show alerts for this log-level. Can be: `error`, `warning`, `notice`, or `debug`. + * @param "StartDate" (time.Time) - Only include alerts that occurred on or after this date and time. Specify the date and time in GMT and format as `YYYY-MM-DD` or `YYYY-MM-DDThh:mm:ssZ`. Queries for alerts older than 30 days are not supported. + * @param "EndDate" (time.Time) - Only include alerts that occurred on or before this date and time. Specify the date and time in GMT and format as `YYYY-MM-DD` or `YYYY-MM-DDThh:mm:ssZ`. Queries for alerts older than 30 days are not supported. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return MonitorV1AlertReadResponse +*/ +func (c *DefaultApiService) ListAlert(params *ListAlertParams) (*MonitorV1AlertReadResponse, error) { + path := "/v1/Alerts" + + data := url.Values{} + headers := 0 + + if params != nil && params.LogLevel != nil { + data.Set("LogLevel", *params.LogLevel) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &MonitorV1AlertReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListEventParams Optional parameters for the method 'ListEvent' +type ListEventParams struct { + ActorSid *string `json:"ActorSid,omitempty"` + EventType *string `json:"EventType,omitempty"` + ResourceSid *string `json:"ResourceSid,omitempty"` + SourceIpAddress *string `json:"SourceIpAddress,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListEvent Method for ListEvent +Returns a list of events in the account, sorted by event-date. + * @param optional nil or *ListEventOpts - Optional Parameters: + * @param "ActorSid" (string) - Only include events initiated by this Actor. Useful for auditing actions taken by specific users or API credentials. + * @param "EventType" (string) - Only include events of this [Event Type](https://www.twilio.com/docs/usage/monitor-events#event-types). + * @param "ResourceSid" (string) - Only include events that refer to this resource. Useful for discovering the history of a specific resource. + * @param "SourceIpAddress" (string) - Only include events that originated from this IP address. Useful for tracking suspicious activity originating from the API or the Twilio Console. + * @param "StartDate" (time.Time) - Only include events that occurred on or after this date. Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + * @param "EndDate" (time.Time) - Only include events that occurred on or before this date. Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return MonitorV1EventReadResponse +*/ +func (c *DefaultApiService) ListEvent(params *ListEventParams) (*MonitorV1EventReadResponse, error) { + path := "/v1/Events" + + data := url.Values{} + headers := 0 + + if params != nil && params.ActorSid != nil { + data.Set("ActorSid", *params.ActorSid) + } + if params != nil && params.EventType != nil { + data.Set("EventType", *params.EventType) + } + if params != nil && params.ResourceSid != nil { + data.Set("ResourceSid", *params.ResourceSid) + } + if params != nil && params.SourceIpAddress != nil { + data.Set("SourceIpAddress", *params.SourceIpAddress) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &MonitorV1EventReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/monitor/v1/docs/DefaultApi.md b/rest/monitor/v1/docs/DefaultApi.md new file mode 100644 index 000000000..c3a125fd8 --- /dev/null +++ b/rest/monitor/v1/docs/DefaultApi.md @@ -0,0 +1,169 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**FetchAlert**](DefaultApi.md#FetchAlert) | **Get** /v1/Alerts/{Sid} | +[**FetchEvent**](DefaultApi.md#FetchEvent) | **Get** /v1/Events/{Sid} | +[**ListAlert**](DefaultApi.md#ListAlert) | **Get** /v1/Alerts | +[**ListEvent**](DefaultApi.md#ListEvent) | **Get** /v1/Events | + + + +## FetchAlert + +> MonitorV1AlertInstance FetchAlert(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Alert resource to fetch. | + +### Return type + +[**MonitorV1AlertInstance**](monitor.v1.alert-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) + + +## FetchEvent + +> MonitorV1Event FetchEvent(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Event resource to fetch. | + +### Return type + +[**MonitorV1Event**](monitor.v1.event.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) + + +## ListAlert + +> MonitorV1AlertReadResponse ListAlert(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListAlertOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListAlertOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **logLevel** | **optional.String**| Only show alerts for this log-level. Can be: `error`, `warning`, `notice`, or `debug`. | + **startDate** | **optional.Time**| Only include alerts that occurred on or after this date and time. Specify the date and time in GMT and format as `YYYY-MM-DD` or `YYYY-MM-DDThh:mm:ssZ`. Queries for alerts older than 30 days are not supported. | + **endDate** | **optional.Time**| Only include alerts that occurred on or before this date and time. Specify the date and time in GMT and format as `YYYY-MM-DD` or `YYYY-MM-DDThh:mm:ssZ`. Queries for alerts older than 30 days are not supported. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**MonitorV1AlertReadResponse**](monitor_v1_alertReadResponse.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) + + +## ListEvent + +> MonitorV1EventReadResponse ListEvent(ctx, optional) + + + +Returns a list of events in the account, sorted by event-date. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListEventOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListEventOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **actorSid** | **optional.String**| Only include events initiated by this Actor. Useful for auditing actions taken by specific users or API credentials. | + **eventType** | **optional.String**| Only include events of this [Event Type](https://www.twilio.com/docs/usage/monitor-events#event-types). | + **resourceSid** | **optional.String**| Only include events that refer to this resource. Useful for discovering the history of a specific resource. | + **sourceIpAddress** | **optional.String**| Only include events that originated from this IP address. Useful for tracking suspicious activity originating from the API or the Twilio Console. | + **startDate** | **optional.Time**| Only include events that occurred on or after this date. Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | + **endDate** | **optional.Time**| Only include events that occurred on or before this date. Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**MonitorV1EventReadResponse**](monitor_v1_eventReadResponse.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/rest/monitor/v1/docs/MonitorV1Alert.md b/rest/monitor/v1/docs/MonitorV1Alert.md new file mode 100644 index 000000000..bc4203acc --- /dev/null +++ b/rest/monitor/v1/docs/MonitorV1Alert.md @@ -0,0 +1,25 @@ +# MonitorV1Alert + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AlertText** | **string** | | [optional] +**ApiVersion** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateGenerated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**ErrorCode** | **string** | | [optional] +**LogLevel** | **string** | | [optional] +**MoreInfo** | **string** | | [optional] +**RequestMethod** | **string** | | [optional] +**RequestUrl** | **string** | | [optional] +**ResourceSid** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/monitor/v1/docs/MonitorV1AlertInstance.md b/rest/monitor/v1/docs/MonitorV1AlertInstance.md new file mode 100644 index 000000000..086e03264 --- /dev/null +++ b/rest/monitor/v1/docs/MonitorV1AlertInstance.md @@ -0,0 +1,29 @@ +# MonitorV1AlertInstance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AlertText** | **string** | | [optional] +**ApiVersion** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateGenerated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**ErrorCode** | **string** | | [optional] +**LogLevel** | **string** | | [optional] +**MoreInfo** | **string** | | [optional] +**RequestHeaders** | **string** | | [optional] +**RequestMethod** | **string** | | [optional] +**RequestUrl** | **string** | | [optional] +**RequestVariables** | **string** | | [optional] +**ResourceSid** | **string** | | [optional] +**ResponseBody** | **string** | | [optional] +**ResponseHeaders** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/monitor/v1/docs/MonitorV1AlertReadResponse.md b/rest/monitor/v1/docs/MonitorV1AlertReadResponse.md new file mode 100644 index 000000000..88ac16526 --- /dev/null +++ b/rest/monitor/v1/docs/MonitorV1AlertReadResponse.md @@ -0,0 +1,12 @@ +# MonitorV1AlertReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Alerts** | [**[]MonitorV1Alert**](monitor.v1.alert.md) | | [optional] +**Meta** | [**MonitorV1AlertReadResponseMeta**](monitor_v1_alertReadResponse_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/rest/monitor/v1/docs/MonitorV1AlertReadResponseMeta.md b/rest/monitor/v1/docs/MonitorV1AlertReadResponseMeta.md new file mode 100644 index 000000000..a61143a94 --- /dev/null +++ b/rest/monitor/v1/docs/MonitorV1AlertReadResponseMeta.md @@ -0,0 +1,17 @@ +# MonitorV1AlertReadResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/monitor/v1/docs/MonitorV1Event.md b/rest/monitor/v1/docs/MonitorV1Event.md new file mode 100644 index 000000000..baf6a89ca --- /dev/null +++ b/rest/monitor/v1/docs/MonitorV1Event.md @@ -0,0 +1,24 @@ +# MonitorV1Event + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ActorSid** | **string** | | [optional] +**ActorType** | **string** | | [optional] +**Description** | **string** | | [optional] +**EventData** | [**map[string]interface{}**](.md) | | [optional] +**EventDate** | [**time.Time**](time.Time.md) | | [optional] +**EventType** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**ResourceSid** | **string** | | [optional] +**ResourceType** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Source** | **string** | | [optional] +**SourceIpAddress** | **string** | | [optional] +**Url** | **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/rest/monitor/v1/docs/MonitorV1EventReadResponse.md b/rest/monitor/v1/docs/MonitorV1EventReadResponse.md new file mode 100644 index 000000000..e3c6f012a --- /dev/null +++ b/rest/monitor/v1/docs/MonitorV1EventReadResponse.md @@ -0,0 +1,12 @@ +# MonitorV1EventReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Events** | [**[]MonitorV1Event**](monitor.v1.event.md) | | [optional] +**Meta** | [**MonitorV1AlertReadResponseMeta**](monitor_v1_alertReadResponse_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/rest/monitor/v1/model_monitor_v1_alert.go b/rest/monitor/v1/model_monitor_v1_alert.go new file mode 100644 index 000000000..de4efe7eb --- /dev/null +++ b/rest/monitor/v1/model_monitor_v1_alert.go @@ -0,0 +1,32 @@ +/* + * Twilio - Monitor + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// MonitorV1Alert struct for MonitorV1Alert +type MonitorV1Alert struct { + AccountSid string `json:"account_sid,omitempty"` + AlertText string `json:"alert_text,omitempty"` + ApiVersion string `json:"api_version,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateGenerated time.Time `json:"date_generated,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + ErrorCode string `json:"error_code,omitempty"` + LogLevel string `json:"log_level,omitempty"` + MoreInfo string `json:"more_info,omitempty"` + RequestMethod string `json:"request_method,omitempty"` + RequestUrl string `json:"request_url,omitempty"` + ResourceSid string `json:"resource_sid,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/monitor/v1/model_monitor_v1_alert_instance.go b/rest/monitor/v1/model_monitor_v1_alert_instance.go new file mode 100644 index 000000000..07428cc8d --- /dev/null +++ b/rest/monitor/v1/model_monitor_v1_alert_instance.go @@ -0,0 +1,36 @@ +/* + * Twilio - Monitor + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// MonitorV1AlertInstance struct for MonitorV1AlertInstance +type MonitorV1AlertInstance struct { + AccountSid string `json:"account_sid,omitempty"` + AlertText string `json:"alert_text,omitempty"` + ApiVersion string `json:"api_version,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateGenerated time.Time `json:"date_generated,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + ErrorCode string `json:"error_code,omitempty"` + LogLevel string `json:"log_level,omitempty"` + MoreInfo string `json:"more_info,omitempty"` + RequestHeaders string `json:"request_headers,omitempty"` + RequestMethod string `json:"request_method,omitempty"` + RequestUrl string `json:"request_url,omitempty"` + RequestVariables string `json:"request_variables,omitempty"` + ResourceSid string `json:"resource_sid,omitempty"` + ResponseBody string `json:"response_body,omitempty"` + ResponseHeaders string `json:"response_headers,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/monitor/v1/model_monitor_v1_alert_read_response.go b/rest/monitor/v1/model_monitor_v1_alert_read_response.go new file mode 100644 index 000000000..3de48a3c0 --- /dev/null +++ b/rest/monitor/v1/model_monitor_v1_alert_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Monitor + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// MonitorV1AlertReadResponse struct for MonitorV1AlertReadResponse +type MonitorV1AlertReadResponse struct { + Alerts []MonitorV1Alert `json:"alerts,omitempty"` + Meta MonitorV1AlertReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/monitor/v1/model_monitor_v1_alert_read_response_meta.go b/rest/monitor/v1/model_monitor_v1_alert_read_response_meta.go new file mode 100644 index 000000000..904a0e721 --- /dev/null +++ b/rest/monitor/v1/model_monitor_v1_alert_read_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Monitor + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// MonitorV1AlertReadResponseMeta struct for MonitorV1AlertReadResponseMeta +type MonitorV1AlertReadResponseMeta struct { + FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` + NextPageUrl string `json:"next_page_url,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUrl string `json:"previous_page_url,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/monitor/v1/model_monitor_v1_event.go b/rest/monitor/v1/model_monitor_v1_event.go new file mode 100644 index 000000000..a1b93cbef --- /dev/null +++ b/rest/monitor/v1/model_monitor_v1_event.go @@ -0,0 +1,31 @@ +/* + * Twilio - Monitor + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// MonitorV1Event struct for MonitorV1Event +type MonitorV1Event struct { + AccountSid string `json:"account_sid,omitempty"` + ActorSid string `json:"actor_sid,omitempty"` + ActorType string `json:"actor_type,omitempty"` + Description string `json:"description,omitempty"` + EventData map[string]interface{} `json:"event_data,omitempty"` + EventDate time.Time `json:"event_date,omitempty"` + EventType string `json:"event_type,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + ResourceSid string `json:"resource_sid,omitempty"` + ResourceType string `json:"resource_type,omitempty"` + Sid string `json:"sid,omitempty"` + Source string `json:"source,omitempty"` + SourceIpAddress string `json:"source_ip_address,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/monitor/v1/model_monitor_v1_event_read_response.go b/rest/monitor/v1/model_monitor_v1_event_read_response.go new file mode 100644 index 000000000..d575b21c0 --- /dev/null +++ b/rest/monitor/v1/model_monitor_v1_event_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Monitor + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// MonitorV1EventReadResponse struct for MonitorV1EventReadResponse +type MonitorV1EventReadResponse struct { + Events []MonitorV1Event `json:"events,omitempty"` + Meta MonitorV1AlertReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/monitor/v1/response.go b/rest/monitor/v1/response.go new file mode 100644 index 000000000..145fd2f20 --- /dev/null +++ b/rest/monitor/v1/response.go @@ -0,0 +1,47 @@ +/* + * Twilio - Monitor + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// Response returns a new APIResponse object. +func Response(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// ResponseWithError returns a new APIResponse object with the provided error message. +func ResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/rest/notify/v1/.openapi-generator-ignore b/rest/notify/v1/.openapi-generator-ignore new file mode 100644 index 000000000..7484ee590 --- /dev/null +++ b/rest/notify/v1/.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/rest/notify/v1/.openapi-generator/VERSION b/rest/notify/v1/.openapi-generator/VERSION new file mode 100644 index 000000000..ecedc98d1 --- /dev/null +++ b/rest/notify/v1/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.3.1 \ No newline at end of file diff --git a/rest/notify/v1/README.md b/rest/notify/v1/README.md new file mode 100644 index 000000000..22366e522 --- /dev/null +++ b/rest/notify/v1/README.md @@ -0,0 +1,91 @@ +# Go API client for openapi + +This is the public Twilio REST API. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 5.15.0 +- Package version: 1.0.0 +- Build package: com.twilio.oai.TwilioGoGenerator +For more information, please visit [https://support.twilio.com](https://support.twilio.com) + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import "./openapi" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**CreateBinding**](docs/DefaultApi.md#createbinding) | **Post** /v1/Services/{ServiceSid}/Bindings | +*DefaultApi* | [**CreateCredential**](docs/DefaultApi.md#createcredential) | **Post** /v1/Credentials | +*DefaultApi* | [**CreateNotification**](docs/DefaultApi.md#createnotification) | **Post** /v1/Services/{ServiceSid}/Notifications | +*DefaultApi* | [**CreateService**](docs/DefaultApi.md#createservice) | **Post** /v1/Services | +*DefaultApi* | [**DeleteBinding**](docs/DefaultApi.md#deletebinding) | **Delete** /v1/Services/{ServiceSid}/Bindings/{Sid} | +*DefaultApi* | [**DeleteCredential**](docs/DefaultApi.md#deletecredential) | **Delete** /v1/Credentials/{Sid} | +*DefaultApi* | [**DeleteService**](docs/DefaultApi.md#deleteservice) | **Delete** /v1/Services/{Sid} | +*DefaultApi* | [**FetchBinding**](docs/DefaultApi.md#fetchbinding) | **Get** /v1/Services/{ServiceSid}/Bindings/{Sid} | +*DefaultApi* | [**FetchCredential**](docs/DefaultApi.md#fetchcredential) | **Get** /v1/Credentials/{Sid} | +*DefaultApi* | [**FetchService**](docs/DefaultApi.md#fetchservice) | **Get** /v1/Services/{Sid} | +*DefaultApi* | [**ListBinding**](docs/DefaultApi.md#listbinding) | **Get** /v1/Services/{ServiceSid}/Bindings | +*DefaultApi* | [**ListCredential**](docs/DefaultApi.md#listcredential) | **Get** /v1/Credentials | +*DefaultApi* | [**ListService**](docs/DefaultApi.md#listservice) | **Get** /v1/Services | +*DefaultApi* | [**UpdateCredential**](docs/DefaultApi.md#updatecredential) | **Post** /v1/Credentials/{Sid} | +*DefaultApi* | [**UpdateService**](docs/DefaultApi.md#updateservice) | **Post** /v1/Services/{Sid} | + + +## Documentation For Models + + - [CreateBindingRequest](docs/CreateBindingRequest.md) + - [CreateCredentialRequest](docs/CreateCredentialRequest.md) + - [CreateNotificationRequest](docs/CreateNotificationRequest.md) + - [CreateServiceRequest](docs/CreateServiceRequest.md) + - [NotifyV1Credential](docs/NotifyV1Credential.md) + - [NotifyV1CredentialReadResponse](docs/NotifyV1CredentialReadResponse.md) + - [NotifyV1CredentialReadResponseMeta](docs/NotifyV1CredentialReadResponseMeta.md) + - [NotifyV1Service](docs/NotifyV1Service.md) + - [NotifyV1ServiceBinding](docs/NotifyV1ServiceBinding.md) + - [NotifyV1ServiceBindingReadResponse](docs/NotifyV1ServiceBindingReadResponse.md) + - [NotifyV1ServiceNotification](docs/NotifyV1ServiceNotification.md) + - [NotifyV1ServiceReadResponse](docs/NotifyV1ServiceReadResponse.md) + - [UpdateCredentialRequest](docs/UpdateCredentialRequest.md) + - [UpdateServiceRequest](docs/UpdateServiceRequest.md) + + +## Documentation For Authorization + + + +## accountSid_authToken + +- **Type**: HTTP basic authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ + UserName: "username", + Password: "password", +}) +r, err := client.Service.Operation(auth, args) +``` + + +## Author + +support@twilio.com + diff --git a/rest/notify/v1/api_default.go b/rest/notify/v1/api_default.go new file mode 100644 index 000000000..665c68697 --- /dev/null +++ b/rest/notify/v1/api_default.go @@ -0,0 +1,894 @@ +/* + * Twilio - Notify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "" + "reflect" +) + +type DefaultApiService struct { + baseURL string + client *twilio.Client +} + +func NewDefaultApiService(client *twilio.Client) *DefaultApiService { + return &DefaultApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} +// CreateBindingParams Optional parameters for the method 'CreateBinding' +type CreateBindingParams struct { + Address *string `json:"Address,omitempty"` + BindingType *string `json:"BindingType,omitempty"` + CredentialSid *string `json:"CredentialSid,omitempty"` + Endpoint *string `json:"Endpoint,omitempty"` + Identity *string `json:"Identity,omitempty"` + NotificationProtocolVersion *string `json:"NotificationProtocolVersion,omitempty"` + Tag *[]string `json:"Tag,omitempty"` +} + +/* +CreateBinding Method for CreateBinding + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/notify/api/service-resource) to create the resource under. + * @param optional nil or *CreateBindingOpts - Optional Parameters: + * @param "Address" (string) - The channel-specific address. For APNS, the device token. For FCM and GCM, the registration token. For SMS, a phone number in E.164 format. For Facebook Messenger, the Messenger ID of the user or a phone number in E.164 format. + * @param "BindingType" (string) - The transport technology to use for the Binding. Can be: `apn`, `fcm`, `gcm`, `sms`, or `facebook-messenger`. + * @param "CredentialSid" (string) - The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) resource to be used to send notifications to this Binding. If present, this overrides the Credential specified in the Service resource. Applies to only `apn`, `fcm`, and `gcm` type Bindings. + * @param "Endpoint" (string) - Deprecated. + * @param "Identity" (string) - The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/notify/api/service-resource). Up to 20 Bindings can be created for the same Identity in a given Service. + * @param "NotificationProtocolVersion" (string) - The protocol version to use to send the notification. This defaults to the value of `default_xxxx_notification_protocol_version` for the protocol in the [Service](https://www.twilio.com/docs/notify/api/service-resource). The current version is `\\\"3\\\"` for `apn`, `fcm`, and `gcm` type Bindings. The parameter is not applicable to `sms` and `facebook-messenger` type Bindings as the data format is fixed. + * @param "Tag" ([]string) - A tag that can be used to select the Bindings to notify. Repeat this parameter to specify more than one tag, up to a total of 20 tags. +@return NotifyV1ServiceBinding +*/ +func (c *DefaultApiService) CreateBinding(serviceSid string, params *CreateBindingParams) (*NotifyV1ServiceBinding, error) { + path := "/v1/Services/{ServiceSid}/Bindings" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Address != nil { + data.Set("Address", *params.Address) + } + if params != nil && params.BindingType != nil { + data.Set("BindingType", *params.BindingType) + } + if params != nil && params.CredentialSid != nil { + data.Set("CredentialSid", *params.CredentialSid) + } + if params != nil && params.Endpoint != nil { + data.Set("Endpoint", *params.Endpoint) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.NotificationProtocolVersion != nil { + data.Set("NotificationProtocolVersion", *params.NotificationProtocolVersion) + } + if params != nil && params.Tag != nil { + data.Set("Tag", *params.Tag) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NotifyV1ServiceBinding{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateCredentialParams Optional parameters for the method 'CreateCredential' +type CreateCredentialParams struct { + ApiKey *string `json:"ApiKey,omitempty"` + Certificate *string `json:"Certificate,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PrivateKey *string `json:"PrivateKey,omitempty"` + Sandbox *bool `json:"Sandbox,omitempty"` + Secret *string `json:"Secret,omitempty"` + Type *string `json:"Type,omitempty"` +} + +/* +CreateCredential Method for CreateCredential + * @param optional nil or *CreateCredentialOpts - Optional Parameters: + * @param "ApiKey" (string) - [GCM only] The `Server key` of your project from Firebase console under Settings / Cloud messaging. + * @param "Certificate" (string) - [APN only] The URL-encoded representation of the certificate. Strip everything outside of the headers, e.g. `-----BEGIN CERTIFICATE-----MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==-----END CERTIFICATE-----` + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. + * @param "PrivateKey" (string) - [APN only] The URL-encoded representation of the private key. Strip everything outside of the headers, e.g. `-----BEGIN RSA PRIVATE KEY-----MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR\\\\n.-----END RSA PRIVATE KEY-----` + * @param "Sandbox" (bool) - [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. + * @param "Secret" (string) - [FCM only] The `Server key` of your project from Firebase console under Settings / Cloud messaging. + * @param "Type" (string) - The Credential type. Can be: `gcm`, `fcm`, or `apn`. +@return NotifyV1Credential +*/ +func (c *DefaultApiService) CreateCredential(params *CreateCredentialParams) (*NotifyV1Credential, error) { + path := "/v1/Credentials" + + data := url.Values{} + headers := 0 + + if params != nil && params.ApiKey != nil { + data.Set("ApiKey", *params.ApiKey) + } + if params != nil && params.Certificate != nil { + data.Set("Certificate", *params.Certificate) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PrivateKey != nil { + data.Set("PrivateKey", *params.PrivateKey) + } + if params != nil && params.Sandbox != nil { + data.Set("Sandbox", string(*params.Sandbox)) + } + if params != nil && params.Secret != nil { + data.Set("Secret", *params.Secret) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NotifyV1Credential{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateNotificationParams Optional parameters for the method 'CreateNotification' +type CreateNotificationParams struct { + Action *string `json:"Action,omitempty"` + Alexa *map[string]interface{} `json:"Alexa,omitempty"` + Apn *map[string]interface{} `json:"Apn,omitempty"` + Body *string `json:"Body,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` + DeliveryCallbackUrl *string `json:"DeliveryCallbackUrl,omitempty"` + FacebookMessenger *map[string]interface{} `json:"FacebookMessenger,omitempty"` + Fcm *map[string]interface{} `json:"Fcm,omitempty"` + Gcm *map[string]interface{} `json:"Gcm,omitempty"` + Identity *[]string `json:"Identity,omitempty"` + Priority *string `json:"Priority,omitempty"` + Segment *[]string `json:"Segment,omitempty"` + Sms *map[string]interface{} `json:"Sms,omitempty"` + Sound *string `json:"Sound,omitempty"` + Tag *[]string `json:"Tag,omitempty"` + Title *string `json:"Title,omitempty"` + ToBinding *[]string `json:"ToBinding,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` +} + +/* +CreateNotification Method for CreateNotification + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/notify/api/service-resource) to create the resource under. + * @param optional nil or *CreateNotificationOpts - Optional Parameters: + * @param "Action" (string) - The actions to display for the notification. For APNS, translates to the `aps.category` value. For GCM, translates to the `data.twi_action` value. For SMS, this parameter is not supported and is omitted from deliveries to those channels. + * @param "Alexa" (map[string]interface{}) - Deprecated. + * @param "Apn" (map[string]interface{}) - The APNS-specific payload that overrides corresponding attributes in the generic payload for APNS Bindings. This property maps to the APNS `Payload` item, therefore the `aps` key must be used to change standard attributes. Adds custom key-value pairs to the root of the dictionary. See the [APNS documentation](https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingwithAPNs.html) for more details. We reserve keys that start with `twi_` for future use. Custom keys that start with `twi_` are not allowed. + * @param "Body" (string) - The notification text. For FCM and GCM, translates to `data.twi_body`. For APNS, translates to `aps.alert.body`. For SMS, translates to `body`. SMS requires either this `body` value, or `media_urls` attribute defined in the `sms` parameter of the notification. + * @param "Data" (map[string]interface{}) - The custom key-value pairs of the notification's payload. For FCM and GCM, this value translates to `data` in the FCM and GCM payloads. FCM and GCM [reserve certain keys](https://firebase.google.com/docs/cloud-messaging/http-server-ref) that cannot be used in those channels. For APNS, attributes of `data` are inserted into the APNS payload as custom properties outside of the `aps` dictionary. In all channels, we reserve keys that start with `twi_` for future use. Custom keys that start with `twi_` are not allowed and are rejected as 400 Bad request with no delivery attempted. For SMS, this parameter is not supported and is omitted from deliveries to those channels. + * @param "DeliveryCallbackUrl" (string) - URL to send webhooks. + * @param "FacebookMessenger" (map[string]interface{}) - Deprecated. + * @param "Fcm" (map[string]interface{}) - The FCM-specific payload that overrides corresponding attributes in the generic payload for FCM Bindings. This property maps to the root JSON dictionary. See the [FCM documentation](https://firebase.google.com/docs/cloud-messaging/http-server-ref#downstream) for more details. Target parameters `to`, `registration_ids`, `condition`, and `notification_key` are not allowed in this parameter. We reserve keys that start with `twi_` for future use. Custom keys that start with `twi_` are not allowed. FCM also [reserves certain keys](https://firebase.google.com/docs/cloud-messaging/http-server-ref), which cannot be used in that channel. + * @param "Gcm" (map[string]interface{}) - The GCM-specific payload that overrides corresponding attributes in the generic payload for GCM Bindings. This property maps to the root JSON dictionary. See the [GCM documentation](https://firebase.google.com/docs/cloud-messaging/http-server-ref) for more details. Target parameters `to`, `registration_ids`, and `notification_key` are not allowed. We reserve keys that start with `twi_` for future use. Custom keys that start with `twi_` are not allowed. GCM also [reserves certain keys](https://firebase.google.com/docs/cloud-messaging/http-server-ref). + * @param "Identity" ([]string) - The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/notify/api/service-resource). Delivery will be attempted only to Bindings with an Identity in this list. No more than 20 items are allowed in this list. + * @param "Priority" (string) - The priority of the notification. Can be: `low` or `high` and the default is `high`. A value of `low` optimizes the client app's battery consumption; however, notifications may be delivered with unspecified delay. For FCM and GCM, `low` priority is the same as `Normal` priority. For APNS `low` priority is the same as `5`. A value of `high` sends the notification immediately, and can wake up a sleeping device. For FCM and GCM, `high` is the same as `High` priority. For APNS, `high` is a priority `10`. SMS does not support this property. + * @param "Segment" ([]string) - The Segment resource is deprecated. Use the `tag` parameter, instead. + * @param "Sms" (map[string]interface{}) - The SMS-specific payload that overrides corresponding attributes in the generic payload for SMS Bindings. Each attribute in this value maps to the corresponding `form` parameter of the Twilio [Message](https://www.twilio.com/docs/sms/send-messages) resource. These parameters of the Message resource are supported in snake case format: `body`, `media_urls`, `status_callback`, and `max_price`. The `status_callback` parameter overrides the corresponding parameter in the messaging service, if configured. The `media_urls` property expects a JSON array. + * @param "Sound" (string) - The name of the sound to be played for the notification. For FCM and GCM, this Translates to `data.twi_sound`. For APNS, this translates to `aps.sound`. SMS does not support this property. + * @param "Tag" ([]string) - A tag that selects the Bindings to notify. Repeat this parameter to specify more than one tag, up to a total of 5 tags. The implicit tag `all` is available to notify all Bindings in a Service instance. Similarly, the implicit tags `apn`, `fcm`, `gcm`, `sms` and `facebook-messenger` are available to notify all Bindings in a specific channel. + * @param "Title" (string) - The notification title. For FCM and GCM, this translates to the `data.twi_title` value. For APNS, this translates to the `aps.alert.title` value. SMS does not support this property. This field is not visible on iOS phones and tablets but appears on Apple Watch and Android devices. + * @param "ToBinding" ([]string) - The destination address specified as a JSON string. Multiple `to_binding` parameters can be included but the total size of the request entity should not exceed 1MB. This is typically sufficient for 10,000 phone numbers. + * @param "Ttl" (int32) - How long, in seconds, the notification is valid. Can be an integer between 0 and 2,419,200, which is 4 weeks, the default and the maximum supported time to live (TTL). Delivery should be attempted if the device is offline until the TTL elapses. Zero means that the notification delivery is attempted immediately, only once, and is not stored for future delivery. SMS does not support this property. +@return NotifyV1ServiceNotification +*/ +func (c *DefaultApiService) CreateNotification(serviceSid string, params *CreateNotificationParams) (*NotifyV1ServiceNotification, error) { + path := "/v1/Services/{ServiceSid}/Notifications" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Action != nil { + data.Set("Action", *params.Action) + } + if params != nil && params.Alexa != nil { + v, err := json.Marshal(params.Alexa) + + if err != nil { + return nil, err + } + + data.Set("Alexa", string(v)) + } + if params != nil && params.Apn != nil { + v, err := json.Marshal(params.Apn) + + if err != nil { + return nil, err + } + + data.Set("Apn", string(v)) + } + if params != nil && params.Body != nil { + data.Set("Body", *params.Body) + } + if params != nil && params.Data != nil { + v, err := json.Marshal(params.Data) + + if err != nil { + return nil, err + } + + data.Set("Data", string(v)) + } + if params != nil && params.DeliveryCallbackUrl != nil { + data.Set("DeliveryCallbackUrl", *params.DeliveryCallbackUrl) + } + if params != nil && params.FacebookMessenger != nil { + v, err := json.Marshal(params.FacebookMessenger) + + if err != nil { + return nil, err + } + + data.Set("FacebookMessenger", string(v)) + } + if params != nil && params.Fcm != nil { + v, err := json.Marshal(params.Fcm) + + if err != nil { + return nil, err + } + + data.Set("Fcm", string(v)) + } + if params != nil && params.Gcm != nil { + v, err := json.Marshal(params.Gcm) + + if err != nil { + return nil, err + } + + data.Set("Gcm", string(v)) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.Priority != nil { + data.Set("Priority", *params.Priority) + } + if params != nil && params.Segment != nil { + data.Set("Segment", *params.Segment) + } + if params != nil && params.Sms != nil { + v, err := json.Marshal(params.Sms) + + if err != nil { + return nil, err + } + + data.Set("Sms", string(v)) + } + if params != nil && params.Sound != nil { + data.Set("Sound", *params.Sound) + } + if params != nil && params.Tag != nil { + data.Set("Tag", *params.Tag) + } + if params != nil && params.Title != nil { + data.Set("Title", *params.Title) + } + if params != nil && params.ToBinding != nil { + data.Set("ToBinding", *params.ToBinding) + } + if params != nil && params.Ttl != nil { + data.Set("Ttl", string(*params.Ttl)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NotifyV1ServiceNotification{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateServiceParams Optional parameters for the method 'CreateService' +type CreateServiceParams struct { + AlexaSkillId *string `json:"AlexaSkillId,omitempty"` + ApnCredentialSid *string `json:"ApnCredentialSid,omitempty"` + DefaultAlexaNotificationProtocolVersion *string `json:"DefaultAlexaNotificationProtocolVersion,omitempty"` + DefaultApnNotificationProtocolVersion *string `json:"DefaultApnNotificationProtocolVersion,omitempty"` + DefaultFcmNotificationProtocolVersion *string `json:"DefaultFcmNotificationProtocolVersion,omitempty"` + DefaultGcmNotificationProtocolVersion *string `json:"DefaultGcmNotificationProtocolVersion,omitempty"` + DeliveryCallbackEnabled *bool `json:"DeliveryCallbackEnabled,omitempty"` + DeliveryCallbackUrl *string `json:"DeliveryCallbackUrl,omitempty"` + FacebookMessengerPageId *string `json:"FacebookMessengerPageId,omitempty"` + FcmCredentialSid *string `json:"FcmCredentialSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + GcmCredentialSid *string `json:"GcmCredentialSid,omitempty"` + LogEnabled *bool `json:"LogEnabled,omitempty"` + MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` +} + +/* +CreateService Method for CreateService + * @param optional nil or *CreateServiceOpts - Optional Parameters: + * @param "AlexaSkillId" (string) - Deprecated. + * @param "ApnCredentialSid" (string) - The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for APN Bindings. + * @param "DefaultAlexaNotificationProtocolVersion" (string) - Deprecated. + * @param "DefaultApnNotificationProtocolVersion" (string) - The protocol version to use for sending APNS notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource. + * @param "DefaultFcmNotificationProtocolVersion" (string) - The protocol version to use for sending FCM notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource. + * @param "DefaultGcmNotificationProtocolVersion" (string) - The protocol version to use for sending GCM notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource. + * @param "DeliveryCallbackEnabled" (bool) - Callback configuration that enables delivery callbacks, default false + * @param "DeliveryCallbackUrl" (string) - URL to send delivery status callback. + * @param "FacebookMessengerPageId" (string) - Deprecated. + * @param "FcmCredentialSid" (string) - The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for FCM Bindings. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. + * @param "GcmCredentialSid" (string) - The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for GCM Bindings. + * @param "LogEnabled" (bool) - Whether to log notifications. Can be: `true` or `false` and the default is `true`. + * @param "MessagingServiceSid" (string) - The SID of the [Messaging Service](https://www.twilio.com/docs/sms/send-messages#messaging-services) to use for SMS Bindings. This parameter must be set in order to send SMS notifications. +@return NotifyV1Service +*/ +func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*NotifyV1Service, error) { + path := "/v1/Services" + + data := url.Values{} + headers := 0 + + if params != nil && params.AlexaSkillId != nil { + data.Set("AlexaSkillId", *params.AlexaSkillId) + } + if params != nil && params.ApnCredentialSid != nil { + data.Set("ApnCredentialSid", *params.ApnCredentialSid) + } + if params != nil && params.DefaultAlexaNotificationProtocolVersion != nil { + data.Set("DefaultAlexaNotificationProtocolVersion", *params.DefaultAlexaNotificationProtocolVersion) + } + if params != nil && params.DefaultApnNotificationProtocolVersion != nil { + data.Set("DefaultApnNotificationProtocolVersion", *params.DefaultApnNotificationProtocolVersion) + } + if params != nil && params.DefaultFcmNotificationProtocolVersion != nil { + data.Set("DefaultFcmNotificationProtocolVersion", *params.DefaultFcmNotificationProtocolVersion) + } + if params != nil && params.DefaultGcmNotificationProtocolVersion != nil { + data.Set("DefaultGcmNotificationProtocolVersion", *params.DefaultGcmNotificationProtocolVersion) + } + if params != nil && params.DeliveryCallbackEnabled != nil { + data.Set("DeliveryCallbackEnabled", string(*params.DeliveryCallbackEnabled)) + } + if params != nil && params.DeliveryCallbackUrl != nil { + data.Set("DeliveryCallbackUrl", *params.DeliveryCallbackUrl) + } + if params != nil && params.FacebookMessengerPageId != nil { + data.Set("FacebookMessengerPageId", *params.FacebookMessengerPageId) + } + if params != nil && params.FcmCredentialSid != nil { + data.Set("FcmCredentialSid", *params.FcmCredentialSid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.GcmCredentialSid != nil { + data.Set("GcmCredentialSid", *params.GcmCredentialSid) + } + if params != nil && params.LogEnabled != nil { + data.Set("LogEnabled", string(*params.LogEnabled)) + } + if params != nil && params.MessagingServiceSid != nil { + data.Set("MessagingServiceSid", *params.MessagingServiceSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NotifyV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +DeleteBinding Method for DeleteBinding + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/notify/api/service-resource) to delete the resource from. + * @param sid The Twilio-provided string that uniquely identifies the Binding resource to delete. +*/ +func (c *DefaultApiService) DeleteBinding(serviceSid string, sid string) (error) { + path := "/v1/Services/{ServiceSid}/Bindings/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteCredential Method for DeleteCredential + * @param sid The Twilio-provided string that uniquely identifies the Credential resource to delete. +*/ +func (c *DefaultApiService) DeleteCredential(sid string) (error) { + path := "/v1/Credentials/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteService Method for DeleteService + * @param sid The Twilio-provided string that uniquely identifies the Service resource to delete. +*/ +func (c *DefaultApiService) DeleteService(sid string) (error) { + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +FetchBinding Method for FetchBinding + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/notify/api/service-resource) to fetch the resource from. + * @param sid The Twilio-provided string that uniquely identifies the Binding resource to fetch. +@return NotifyV1ServiceBinding +*/ +func (c *DefaultApiService) FetchBinding(serviceSid string, sid string) (*NotifyV1ServiceBinding, error) { + path := "/v1/Services/{ServiceSid}/Bindings/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NotifyV1ServiceBinding{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchCredential Method for FetchCredential + * @param sid The Twilio-provided string that uniquely identifies the Credential resource to fetch. +@return NotifyV1Credential +*/ +func (c *DefaultApiService) FetchCredential(sid string) (*NotifyV1Credential, error) { + path := "/v1/Credentials/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NotifyV1Credential{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchService Method for FetchService + * @param sid The Twilio-provided string that uniquely identifies the Service resource to fetch. +@return NotifyV1Service +*/ +func (c *DefaultApiService) FetchService(sid string) (*NotifyV1Service, error) { + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NotifyV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListBindingParams Optional parameters for the method 'ListBinding' +type ListBindingParams struct { + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + Identity *[]string `json:"Identity,omitempty"` + Tag *[]string `json:"Tag,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListBinding Method for ListBinding + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/notify/api/service-resource) to read the resource from. + * @param optional nil or *ListBindingOpts - Optional Parameters: + * @param "StartDate" (time.Time) - Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. + * @param "EndDate" (time.Time) - Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. + * @param "Identity" ([]string) - The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. + * @param "Tag" ([]string) - Only list Bindings that have all of the specified Tags. The following implicit tags are available: `all`, `apn`, `fcm`, `gcm`, `sms`, `facebook-messenger`. Up to 5 tags are allowed. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return NotifyV1ServiceBindingReadResponse +*/ +func (c *DefaultApiService) ListBinding(serviceSid string, params *ListBindingParams) (*NotifyV1ServiceBindingReadResponse, error) { + path := "/v1/Services/{ServiceSid}/Bindings" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.Identity != nil { + data.Set("Identity", string(*params.Identity)) + } + if params != nil && params.Tag != nil { + data.Set("Tag", string(*params.Tag)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NotifyV1ServiceBindingReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListCredentialParams Optional parameters for the method 'ListCredential' +type ListCredentialParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListCredential Method for ListCredential + * @param optional nil or *ListCredentialOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return NotifyV1CredentialReadResponse +*/ +func (c *DefaultApiService) ListCredential(params *ListCredentialParams) (*NotifyV1CredentialReadResponse, error) { + path := "/v1/Credentials" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NotifyV1CredentialReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListServiceParams Optional parameters for the method 'ListService' +type ListServiceParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListService Method for ListService + * @param optional nil or *ListServiceOpts - Optional Parameters: + * @param "FriendlyName" (string) - The string that identifies the Service resources to read. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return NotifyV1ServiceReadResponse +*/ +func (c *DefaultApiService) ListService(params *ListServiceParams) (*NotifyV1ServiceReadResponse, error) { + path := "/v1/Services" + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NotifyV1ServiceReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateCredentialParams Optional parameters for the method 'UpdateCredential' +type UpdateCredentialParams struct { + ApiKey *string `json:"ApiKey,omitempty"` + Certificate *string `json:"Certificate,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PrivateKey *string `json:"PrivateKey,omitempty"` + Sandbox *bool `json:"Sandbox,omitempty"` + Secret *string `json:"Secret,omitempty"` +} + +/* +UpdateCredential Method for UpdateCredential + * @param sid The Twilio-provided string that uniquely identifies the Credential resource to update. + * @param optional nil or *UpdateCredentialOpts - Optional Parameters: + * @param "ApiKey" (string) - [GCM only] The `Server key` of your project from Firebase console under Settings / Cloud messaging. + * @param "Certificate" (string) - [APN only] The URL-encoded representation of the certificate. Strip everything outside of the headers, e.g. `-----BEGIN CERTIFICATE-----MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==-----END CERTIFICATE-----` + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. + * @param "PrivateKey" (string) - [APN only] The URL-encoded representation of the private key. Strip everything outside of the headers, e.g. `-----BEGIN RSA PRIVATE KEY-----MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR\\\\n.-----END RSA PRIVATE KEY-----` + * @param "Sandbox" (bool) - [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. + * @param "Secret" (string) - [FCM only] The `Server key` of your project from Firebase console under Settings / Cloud messaging. +@return NotifyV1Credential +*/ +func (c *DefaultApiService) UpdateCredential(sid string, params *UpdateCredentialParams) (*NotifyV1Credential, error) { + path := "/v1/Credentials/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ApiKey != nil { + data.Set("ApiKey", *params.ApiKey) + } + if params != nil && params.Certificate != nil { + data.Set("Certificate", *params.Certificate) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PrivateKey != nil { + data.Set("PrivateKey", *params.PrivateKey) + } + if params != nil && params.Sandbox != nil { + data.Set("Sandbox", string(*params.Sandbox)) + } + if params != nil && params.Secret != nil { + data.Set("Secret", *params.Secret) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NotifyV1Credential{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateServiceParams Optional parameters for the method 'UpdateService' +type UpdateServiceParams struct { + AlexaSkillId *string `json:"AlexaSkillId,omitempty"` + ApnCredentialSid *string `json:"ApnCredentialSid,omitempty"` + DefaultAlexaNotificationProtocolVersion *string `json:"DefaultAlexaNotificationProtocolVersion,omitempty"` + DefaultApnNotificationProtocolVersion *string `json:"DefaultApnNotificationProtocolVersion,omitempty"` + DefaultFcmNotificationProtocolVersion *string `json:"DefaultFcmNotificationProtocolVersion,omitempty"` + DefaultGcmNotificationProtocolVersion *string `json:"DefaultGcmNotificationProtocolVersion,omitempty"` + DeliveryCallbackEnabled *bool `json:"DeliveryCallbackEnabled,omitempty"` + DeliveryCallbackUrl *string `json:"DeliveryCallbackUrl,omitempty"` + FacebookMessengerPageId *string `json:"FacebookMessengerPageId,omitempty"` + FcmCredentialSid *string `json:"FcmCredentialSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + GcmCredentialSid *string `json:"GcmCredentialSid,omitempty"` + LogEnabled *bool `json:"LogEnabled,omitempty"` + MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` +} + +/* +UpdateService Method for UpdateService + * @param sid The Twilio-provided string that uniquely identifies the Service resource to update. + * @param optional nil or *UpdateServiceOpts - Optional Parameters: + * @param "AlexaSkillId" (string) - Deprecated. + * @param "ApnCredentialSid" (string) - The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for APN Bindings. + * @param "DefaultAlexaNotificationProtocolVersion" (string) - Deprecated. + * @param "DefaultApnNotificationProtocolVersion" (string) - The protocol version to use for sending APNS notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource. + * @param "DefaultFcmNotificationProtocolVersion" (string) - The protocol version to use for sending FCM notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource. + * @param "DefaultGcmNotificationProtocolVersion" (string) - The protocol version to use for sending GCM notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource. + * @param "DeliveryCallbackEnabled" (bool) - Callback configuration that enables delivery callbacks, default false + * @param "DeliveryCallbackUrl" (string) - URL to send delivery status callback. + * @param "FacebookMessengerPageId" (string) - Deprecated. + * @param "FcmCredentialSid" (string) - The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for FCM Bindings. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. + * @param "GcmCredentialSid" (string) - The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for GCM Bindings. + * @param "LogEnabled" (bool) - Whether to log notifications. Can be: `true` or `false` and the default is `true`. + * @param "MessagingServiceSid" (string) - The SID of the [Messaging Service](https://www.twilio.com/docs/sms/send-messages#messaging-services) to use for SMS Bindings. This parameter must be set in order to send SMS notifications. +@return NotifyV1Service +*/ +func (c *DefaultApiService) UpdateService(sid string, params *UpdateServiceParams) (*NotifyV1Service, error) { + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AlexaSkillId != nil { + data.Set("AlexaSkillId", *params.AlexaSkillId) + } + if params != nil && params.ApnCredentialSid != nil { + data.Set("ApnCredentialSid", *params.ApnCredentialSid) + } + if params != nil && params.DefaultAlexaNotificationProtocolVersion != nil { + data.Set("DefaultAlexaNotificationProtocolVersion", *params.DefaultAlexaNotificationProtocolVersion) + } + if params != nil && params.DefaultApnNotificationProtocolVersion != nil { + data.Set("DefaultApnNotificationProtocolVersion", *params.DefaultApnNotificationProtocolVersion) + } + if params != nil && params.DefaultFcmNotificationProtocolVersion != nil { + data.Set("DefaultFcmNotificationProtocolVersion", *params.DefaultFcmNotificationProtocolVersion) + } + if params != nil && params.DefaultGcmNotificationProtocolVersion != nil { + data.Set("DefaultGcmNotificationProtocolVersion", *params.DefaultGcmNotificationProtocolVersion) + } + if params != nil && params.DeliveryCallbackEnabled != nil { + data.Set("DeliveryCallbackEnabled", string(*params.DeliveryCallbackEnabled)) + } + if params != nil && params.DeliveryCallbackUrl != nil { + data.Set("DeliveryCallbackUrl", *params.DeliveryCallbackUrl) + } + if params != nil && params.FacebookMessengerPageId != nil { + data.Set("FacebookMessengerPageId", *params.FacebookMessengerPageId) + } + if params != nil && params.FcmCredentialSid != nil { + data.Set("FcmCredentialSid", *params.FcmCredentialSid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.GcmCredentialSid != nil { + data.Set("GcmCredentialSid", *params.GcmCredentialSid) + } + if params != nil && params.LogEnabled != nil { + data.Set("LogEnabled", string(*params.LogEnabled)) + } + if params != nil && params.MessagingServiceSid != nil { + data.Set("MessagingServiceSid", *params.MessagingServiceSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NotifyV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/notify/v1/docs/CreateBindingRequest.md b/rest/notify/v1/docs/CreateBindingRequest.md new file mode 100644 index 000000000..376868ab7 --- /dev/null +++ b/rest/notify/v1/docs/CreateBindingRequest.md @@ -0,0 +1,17 @@ +# CreateBindingRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Address** | **string** | The channel-specific address. For APNS, the device token. For FCM and GCM, the registration token. For SMS, a phone number in E.164 format. For Facebook Messenger, the Messenger ID of the user or a phone number in E.164 format. | +**BindingType** | **string** | The transport technology to use for the Binding. Can be: `apn`, `fcm`, `gcm`, `sms`, or `facebook-messenger`. | +**CredentialSid** | **string** | The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) resource to be used to send notifications to this Binding. If present, this overrides the Credential specified in the Service resource. Applies to only `apn`, `fcm`, and `gcm` type Bindings. | [optional] +**Endpoint** | **string** | Deprecated. | [optional] +**Identity** | **string** | The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/notify/api/service-resource). Up to 20 Bindings can be created for the same Identity in a given Service. | +**NotificationProtocolVersion** | **string** | The protocol version to use to send the notification. This defaults to the value of `default_xxxx_notification_protocol_version` for the protocol in the [Service](https://www.twilio.com/docs/notify/api/service-resource). The current version is `\"3\"` for `apn`, `fcm`, and `gcm` type Bindings. The parameter is not applicable to `sms` and `facebook-messenger` type Bindings as the data format is fixed. | [optional] +**Tag** | **[]string** | A tag that can be used to select the Bindings to notify. Repeat this parameter to specify more than one tag, up to a total of 20 tags. | [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/rest/notify/v1/docs/CreateCredentialRequest.md b/rest/notify/v1/docs/CreateCredentialRequest.md new file mode 100644 index 000000000..642ecb259 --- /dev/null +++ b/rest/notify/v1/docs/CreateCredentialRequest.md @@ -0,0 +1,17 @@ +# CreateCredentialRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiKey** | **string** | [GCM only] The `Server key` of your project from Firebase console under Settings / Cloud messaging. | [optional] +**Certificate** | **string** | [APN only] The URL-encoded representation of the certificate. Strip everything outside of the headers, e.g. `-----BEGIN CERTIFICATE-----MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==-----END CERTIFICATE-----` | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | [optional] +**PrivateKey** | **string** | [APN only] The URL-encoded representation of the private key. Strip everything outside of the headers, e.g. `-----BEGIN RSA PRIVATE KEY-----MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR\\n.-----END RSA PRIVATE KEY-----` | [optional] +**Sandbox** | **bool** | [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. | [optional] +**Secret** | **string** | [FCM only] The `Server key` of your project from Firebase console under Settings / Cloud messaging. | [optional] +**Type** | **string** | The Credential type. Can be: `gcm`, `fcm`, or `apn`. | + +[[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/rest/notify/v1/docs/CreateNotificationRequest.md b/rest/notify/v1/docs/CreateNotificationRequest.md new file mode 100644 index 000000000..3d48b4f0b --- /dev/null +++ b/rest/notify/v1/docs/CreateNotificationRequest.md @@ -0,0 +1,28 @@ +# CreateNotificationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Action** | **string** | The actions to display for the notification. For APNS, translates to the `aps.category` value. For GCM, translates to the `data.twi_action` value. For SMS, this parameter is not supported and is omitted from deliveries to those channels. | [optional] +**Alexa** | [**map[string]interface{}**](.md) | Deprecated. | [optional] +**Apn** | [**map[string]interface{}**](.md) | The APNS-specific payload that overrides corresponding attributes in the generic payload for APNS Bindings. This property maps to the APNS `Payload` item, therefore the `aps` key must be used to change standard attributes. Adds custom key-value pairs to the root of the dictionary. See the [APNS documentation](https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingwithAPNs.html) for more details. We reserve keys that start with `twi_` for future use. Custom keys that start with `twi_` are not allowed. | [optional] +**Body** | **string** | The notification text. For FCM and GCM, translates to `data.twi_body`. For APNS, translates to `aps.alert.body`. For SMS, translates to `body`. SMS requires either this `body` value, or `media_urls` attribute defined in the `sms` parameter of the notification. | [optional] +**Data** | [**map[string]interface{}**](.md) | The custom key-value pairs of the notification's payload. For FCM and GCM, this value translates to `data` in the FCM and GCM payloads. FCM and GCM [reserve certain keys](https://firebase.google.com/docs/cloud-messaging/http-server-ref) that cannot be used in those channels. For APNS, attributes of `data` are inserted into the APNS payload as custom properties outside of the `aps` dictionary. In all channels, we reserve keys that start with `twi_` for future use. Custom keys that start with `twi_` are not allowed and are rejected as 400 Bad request with no delivery attempted. For SMS, this parameter is not supported and is omitted from deliveries to those channels. | [optional] +**DeliveryCallbackUrl** | **string** | URL to send webhooks. | [optional] +**FacebookMessenger** | [**map[string]interface{}**](.md) | Deprecated. | [optional] +**Fcm** | [**map[string]interface{}**](.md) | The FCM-specific payload that overrides corresponding attributes in the generic payload for FCM Bindings. This property maps to the root JSON dictionary. See the [FCM documentation](https://firebase.google.com/docs/cloud-messaging/http-server-ref#downstream) for more details. Target parameters `to`, `registration_ids`, `condition`, and `notification_key` are not allowed in this parameter. We reserve keys that start with `twi_` for future use. Custom keys that start with `twi_` are not allowed. FCM also [reserves certain keys](https://firebase.google.com/docs/cloud-messaging/http-server-ref), which cannot be used in that channel. | [optional] +**Gcm** | [**map[string]interface{}**](.md) | The GCM-specific payload that overrides corresponding attributes in the generic payload for GCM Bindings. This property maps to the root JSON dictionary. See the [GCM documentation](https://firebase.google.com/docs/cloud-messaging/http-server-ref) for more details. Target parameters `to`, `registration_ids`, and `notification_key` are not allowed. We reserve keys that start with `twi_` for future use. Custom keys that start with `twi_` are not allowed. GCM also [reserves certain keys](https://firebase.google.com/docs/cloud-messaging/http-server-ref). | [optional] +**Identity** | **[]string** | The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/notify/api/service-resource). Delivery will be attempted only to Bindings with an Identity in this list. No more than 20 items are allowed in this list. | [optional] +**Priority** | **string** | The priority of the notification. Can be: `low` or `high` and the default is `high`. A value of `low` optimizes the client app's battery consumption; however, notifications may be delivered with unspecified delay. For FCM and GCM, `low` priority is the same as `Normal` priority. For APNS `low` priority is the same as `5`. A value of `high` sends the notification immediately, and can wake up a sleeping device. For FCM and GCM, `high` is the same as `High` priority. For APNS, `high` is a priority `10`. SMS does not support this property. | [optional] +**Segment** | **[]string** | The Segment resource is deprecated. Use the `tag` parameter, instead. | [optional] +**Sms** | [**map[string]interface{}**](.md) | The SMS-specific payload that overrides corresponding attributes in the generic payload for SMS Bindings. Each attribute in this value maps to the corresponding `form` parameter of the Twilio [Message](https://www.twilio.com/docs/sms/send-messages) resource. These parameters of the Message resource are supported in snake case format: `body`, `media_urls`, `status_callback`, and `max_price`. The `status_callback` parameter overrides the corresponding parameter in the messaging service, if configured. The `media_urls` property expects a JSON array. | [optional] +**Sound** | **string** | The name of the sound to be played for the notification. For FCM and GCM, this Translates to `data.twi_sound`. For APNS, this translates to `aps.sound`. SMS does not support this property. | [optional] +**Tag** | **[]string** | A tag that selects the Bindings to notify. Repeat this parameter to specify more than one tag, up to a total of 5 tags. The implicit tag `all` is available to notify all Bindings in a Service instance. Similarly, the implicit tags `apn`, `fcm`, `gcm`, `sms` and `facebook-messenger` are available to notify all Bindings in a specific channel. | [optional] +**Title** | **string** | The notification title. For FCM and GCM, this translates to the `data.twi_title` value. For APNS, this translates to the `aps.alert.title` value. SMS does not support this property. This field is not visible on iOS phones and tablets but appears on Apple Watch and Android devices. | [optional] +**ToBinding** | **[]string** | The destination address specified as a JSON string. Multiple `to_binding` parameters can be included but the total size of the request entity should not exceed 1MB. This is typically sufficient for 10,000 phone numbers. | [optional] +**Ttl** | **int32** | How long, in seconds, the notification is valid. Can be an integer between 0 and 2,419,200, which is 4 weeks, the default and the maximum supported time to live (TTL). Delivery should be attempted if the device is offline until the TTL elapses. Zero means that the notification delivery is attempted immediately, only once, and is not stored for future delivery. SMS does not support this property. | [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/rest/notify/v1/docs/CreateServiceRequest.md b/rest/notify/v1/docs/CreateServiceRequest.md new file mode 100644 index 000000000..1cb557067 --- /dev/null +++ b/rest/notify/v1/docs/CreateServiceRequest.md @@ -0,0 +1,24 @@ +# CreateServiceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AlexaSkillId** | **string** | Deprecated. | [optional] +**ApnCredentialSid** | **string** | The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for APN Bindings. | [optional] +**DefaultAlexaNotificationProtocolVersion** | **string** | Deprecated. | [optional] +**DefaultApnNotificationProtocolVersion** | **string** | The protocol version to use for sending APNS notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource. | [optional] +**DefaultFcmNotificationProtocolVersion** | **string** | The protocol version to use for sending FCM notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource. | [optional] +**DefaultGcmNotificationProtocolVersion** | **string** | The protocol version to use for sending GCM notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource. | [optional] +**DeliveryCallbackEnabled** | **bool** | Callback configuration that enables delivery callbacks, default false | [optional] +**DeliveryCallbackUrl** | **string** | URL to send delivery status callback. | [optional] +**FacebookMessengerPageId** | **string** | Deprecated. | [optional] +**FcmCredentialSid** | **string** | The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for FCM Bindings. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | [optional] +**GcmCredentialSid** | **string** | The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for GCM Bindings. | [optional] +**LogEnabled** | **bool** | Whether to log notifications. Can be: `true` or `false` and the default is `true`. | [optional] +**MessagingServiceSid** | **string** | The SID of the [Messaging Service](https://www.twilio.com/docs/sms/send-messages#messaging-services) to use for SMS Bindings. This parameter must be set in order to send SMS notifications. | [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/rest/notify/v1/docs/DefaultApi.md b/rest/notify/v1/docs/DefaultApi.md new file mode 100644 index 000000000..b7699b618 --- /dev/null +++ b/rest/notify/v1/docs/DefaultApi.md @@ -0,0 +1,661 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateBinding**](DefaultApi.md#CreateBinding) | **Post** /v1/Services/{ServiceSid}/Bindings | +[**CreateCredential**](DefaultApi.md#CreateCredential) | **Post** /v1/Credentials | +[**CreateNotification**](DefaultApi.md#CreateNotification) | **Post** /v1/Services/{ServiceSid}/Notifications | +[**CreateService**](DefaultApi.md#CreateService) | **Post** /v1/Services | +[**DeleteBinding**](DefaultApi.md#DeleteBinding) | **Delete** /v1/Services/{ServiceSid}/Bindings/{Sid} | +[**DeleteCredential**](DefaultApi.md#DeleteCredential) | **Delete** /v1/Credentials/{Sid} | +[**DeleteService**](DefaultApi.md#DeleteService) | **Delete** /v1/Services/{Sid} | +[**FetchBinding**](DefaultApi.md#FetchBinding) | **Get** /v1/Services/{ServiceSid}/Bindings/{Sid} | +[**FetchCredential**](DefaultApi.md#FetchCredential) | **Get** /v1/Credentials/{Sid} | +[**FetchService**](DefaultApi.md#FetchService) | **Get** /v1/Services/{Sid} | +[**ListBinding**](DefaultApi.md#ListBinding) | **Get** /v1/Services/{ServiceSid}/Bindings | +[**ListCredential**](DefaultApi.md#ListCredential) | **Get** /v1/Credentials | +[**ListService**](DefaultApi.md#ListService) | **Get** /v1/Services | +[**UpdateCredential**](DefaultApi.md#UpdateCredential) | **Post** /v1/Credentials/{Sid} | +[**UpdateService**](DefaultApi.md#UpdateService) | **Post** /v1/Services/{Sid} | + + + +## CreateBinding + +> NotifyV1ServiceBinding CreateBinding(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/notify/api/service-resource) to create the resource under. | + **optional** | ***CreateBindingOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateBindingOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **address** | **optional.String**| The channel-specific address. For APNS, the device token. For FCM and GCM, the registration token. For SMS, a phone number in E.164 format. For Facebook Messenger, the Messenger ID of the user or a phone number in E.164 format. | + **bindingType** | **optional.String**| The transport technology to use for the Binding. Can be: `apn`, `fcm`, `gcm`, `sms`, or `facebook-messenger`. | + **credentialSid** | **optional.String**| The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) resource to be used to send notifications to this Binding. If present, this overrides the Credential specified in the Service resource. Applies to only `apn`, `fcm`, and `gcm` type Bindings. | + **endpoint** | **optional.String**| Deprecated. | + **identity** | **optional.String**| The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/notify/api/service-resource). Up to 20 Bindings can be created for the same Identity in a given Service. | + **notificationProtocolVersion** | **optional.String**| The protocol version to use to send the notification. This defaults to the value of `default_xxxx_notification_protocol_version` for the protocol in the [Service](https://www.twilio.com/docs/notify/api/service-resource). The current version is `\\\"3\\\"` for `apn`, `fcm`, and `gcm` type Bindings. The parameter is not applicable to `sms` and `facebook-messenger` type Bindings as the data format is fixed. | + **tag** | [**optional.Interface of []string**](string.md)| A tag that can be used to select the Bindings to notify. Repeat this parameter to specify more than one tag, up to a total of 20 tags. | + +### Return type + +[**NotifyV1ServiceBinding**](notify.v1.service.binding.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) + + +## CreateCredential + +> NotifyV1Credential CreateCredential(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateCredentialOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateCredentialOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **apiKey** | **optional.String**| [GCM only] The `Server key` of your project from Firebase console under Settings / Cloud messaging. | + **certificate** | **optional.String**| [APN only] The URL-encoded representation of the certificate. Strip everything outside of the headers, e.g. `-----BEGIN CERTIFICATE-----MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==-----END CERTIFICATE-----` | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **privateKey** | **optional.String**| [APN only] The URL-encoded representation of the private key. Strip everything outside of the headers, e.g. `-----BEGIN RSA PRIVATE KEY-----MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR\\\\n.-----END RSA PRIVATE KEY-----` | + **sandbox** | **optional.Bool**| [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. | + **secret** | **optional.String**| [FCM only] The `Server key` of your project from Firebase console under Settings / Cloud messaging. | + **type_** | **optional.String**| The Credential type. Can be: `gcm`, `fcm`, or `apn`. | + +### Return type + +[**NotifyV1Credential**](notify.v1.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) + + +## CreateNotification + +> NotifyV1ServiceNotification CreateNotification(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/notify/api/service-resource) to create the resource under. | + **optional** | ***CreateNotificationOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateNotificationOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **action** | **optional.String**| The actions to display for the notification. For APNS, translates to the `aps.category` value. For GCM, translates to the `data.twi_action` value. For SMS, this parameter is not supported and is omitted from deliveries to those channels. | + **alexa** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| Deprecated. | + **apn** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The APNS-specific payload that overrides corresponding attributes in the generic payload for APNS Bindings. This property maps to the APNS `Payload` item, therefore the `aps` key must be used to change standard attributes. Adds custom key-value pairs to the root of the dictionary. See the [APNS documentation](https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingwithAPNs.html) for more details. We reserve keys that start with `twi_` for future use. Custom keys that start with `twi_` are not allowed. | + **body** | **optional.String**| The notification text. For FCM and GCM, translates to `data.twi_body`. For APNS, translates to `aps.alert.body`. For SMS, translates to `body`. SMS requires either this `body` value, or `media_urls` attribute defined in the `sms` parameter of the notification. | + **data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The custom key-value pairs of the notification's payload. For FCM and GCM, this value translates to `data` in the FCM and GCM payloads. FCM and GCM [reserve certain keys](https://firebase.google.com/docs/cloud-messaging/http-server-ref) that cannot be used in those channels. For APNS, attributes of `data` are inserted into the APNS payload as custom properties outside of the `aps` dictionary. In all channels, we reserve keys that start with `twi_` for future use. Custom keys that start with `twi_` are not allowed and are rejected as 400 Bad request with no delivery attempted. For SMS, this parameter is not supported and is omitted from deliveries to those channels. | + **deliveryCallbackUrl** | **optional.String**| URL to send webhooks. | + **facebookMessenger** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| Deprecated. | + **fcm** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The FCM-specific payload that overrides corresponding attributes in the generic payload for FCM Bindings. This property maps to the root JSON dictionary. See the [FCM documentation](https://firebase.google.com/docs/cloud-messaging/http-server-ref#downstream) for more details. Target parameters `to`, `registration_ids`, `condition`, and `notification_key` are not allowed in this parameter. We reserve keys that start with `twi_` for future use. Custom keys that start with `twi_` are not allowed. FCM also [reserves certain keys](https://firebase.google.com/docs/cloud-messaging/http-server-ref), which cannot be used in that channel. | + **gcm** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The GCM-specific payload that overrides corresponding attributes in the generic payload for GCM Bindings. This property maps to the root JSON dictionary. See the [GCM documentation](https://firebase.google.com/docs/cloud-messaging/http-server-ref) for more details. Target parameters `to`, `registration_ids`, and `notification_key` are not allowed. We reserve keys that start with `twi_` for future use. Custom keys that start with `twi_` are not allowed. GCM also [reserves certain keys](https://firebase.google.com/docs/cloud-messaging/http-server-ref). | + **identity** | [**optional.Interface of []string**](string.md)| The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/notify/api/service-resource). Delivery will be attempted only to Bindings with an Identity in this list. No more than 20 items are allowed in this list. | + **priority** | **optional.String**| The priority of the notification. Can be: `low` or `high` and the default is `high`. A value of `low` optimizes the client app's battery consumption; however, notifications may be delivered with unspecified delay. For FCM and GCM, `low` priority is the same as `Normal` priority. For APNS `low` priority is the same as `5`. A value of `high` sends the notification immediately, and can wake up a sleeping device. For FCM and GCM, `high` is the same as `High` priority. For APNS, `high` is a priority `10`. SMS does not support this property. | + **segment** | [**optional.Interface of []string**](string.md)| The Segment resource is deprecated. Use the `tag` parameter, instead. | + **sms** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The SMS-specific payload that overrides corresponding attributes in the generic payload for SMS Bindings. Each attribute in this value maps to the corresponding `form` parameter of the Twilio [Message](https://www.twilio.com/docs/sms/send-messages) resource. These parameters of the Message resource are supported in snake case format: `body`, `media_urls`, `status_callback`, and `max_price`. The `status_callback` parameter overrides the corresponding parameter in the messaging service, if configured. The `media_urls` property expects a JSON array. | + **sound** | **optional.String**| The name of the sound to be played for the notification. For FCM and GCM, this Translates to `data.twi_sound`. For APNS, this translates to `aps.sound`. SMS does not support this property. | + **tag** | [**optional.Interface of []string**](string.md)| A tag that selects the Bindings to notify. Repeat this parameter to specify more than one tag, up to a total of 5 tags. The implicit tag `all` is available to notify all Bindings in a Service instance. Similarly, the implicit tags `apn`, `fcm`, `gcm`, `sms` and `facebook-messenger` are available to notify all Bindings in a specific channel. | + **title** | **optional.String**| The notification title. For FCM and GCM, this translates to the `data.twi_title` value. For APNS, this translates to the `aps.alert.title` value. SMS does not support this property. This field is not visible on iOS phones and tablets but appears on Apple Watch and Android devices. | + **toBinding** | [**optional.Interface of []string**](string.md)| The destination address specified as a JSON string. Multiple `to_binding` parameters can be included but the total size of the request entity should not exceed 1MB. This is typically sufficient for 10,000 phone numbers. | + **ttl** | **optional.Int32**| How long, in seconds, the notification is valid. Can be an integer between 0 and 2,419,200, which is 4 weeks, the default and the maximum supported time to live (TTL). Delivery should be attempted if the device is offline until the TTL elapses. Zero means that the notification delivery is attempted immediately, only once, and is not stored for future delivery. SMS does not support this property. | + +### Return type + +[**NotifyV1ServiceNotification**](notify.v1.service.notification.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) + + +## CreateService + +> NotifyV1Service CreateService(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateServiceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateServiceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **alexaSkillId** | **optional.String**| Deprecated. | + **apnCredentialSid** | **optional.String**| The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for APN Bindings. | + **defaultAlexaNotificationProtocolVersion** | **optional.String**| Deprecated. | + **defaultApnNotificationProtocolVersion** | **optional.String**| The protocol version to use for sending APNS notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource. | + **defaultFcmNotificationProtocolVersion** | **optional.String**| The protocol version to use for sending FCM notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource. | + **defaultGcmNotificationProtocolVersion** | **optional.String**| The protocol version to use for sending GCM notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource. | + **deliveryCallbackEnabled** | **optional.Bool**| Callback configuration that enables delivery callbacks, default false | + **deliveryCallbackUrl** | **optional.String**| URL to send delivery status callback. | + **facebookMessengerPageId** | **optional.String**| Deprecated. | + **fcmCredentialSid** | **optional.String**| The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for FCM Bindings. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **gcmCredentialSid** | **optional.String**| The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for GCM Bindings. | + **logEnabled** | **optional.Bool**| Whether to log notifications. Can be: `true` or `false` and the default is `true`. | + **messagingServiceSid** | **optional.String**| The SID of the [Messaging Service](https://www.twilio.com/docs/sms/send-messages#messaging-services) to use for SMS Bindings. This parameter must be set in order to send SMS notifications. | + +### Return type + +[**NotifyV1Service**](notify.v1.service.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) + + +## DeleteBinding + +> DeleteBinding(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/notify/api/service-resource) to delete the resource from. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Binding resource to delete. | + +### 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) + + +## DeleteCredential + +> DeleteCredential(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the Credential resource to delete. | + +### 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) + + +## DeleteService + +> DeleteService(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the Service resource to delete. | + +### 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) + + +## FetchBinding + +> NotifyV1ServiceBinding FetchBinding(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/notify/api/service-resource) to fetch the resource from. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Binding resource to fetch. | + +### Return type + +[**NotifyV1ServiceBinding**](notify.v1.service.binding.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) + + +## FetchCredential + +> NotifyV1Credential FetchCredential(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the Credential resource to fetch. | + +### Return type + +[**NotifyV1Credential**](notify.v1.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) + + +## FetchService + +> NotifyV1Service FetchService(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the Service resource to fetch. | + +### Return type + +[**NotifyV1Service**](notify.v1.service.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) + + +## ListBinding + +> NotifyV1ServiceBindingReadResponse ListBinding(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/notify/api/service-resource) to read the resource from. | + **optional** | ***ListBindingOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListBindingOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **startDate** | **optional.Time**| Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. | + **endDate** | **optional.Time**| Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. | + **identity** | [**optional.Interface of []string**](string.md)| The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. | + **tag** | [**optional.Interface of []string**](string.md)| Only list Bindings that have all of the specified Tags. The following implicit tags are available: `all`, `apn`, `fcm`, `gcm`, `sms`, `facebook-messenger`. Up to 5 tags are allowed. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**NotifyV1ServiceBindingReadResponse**](notify_v1_service_bindingReadResponse.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) + + +## ListCredential + +> NotifyV1CredentialReadResponse ListCredential(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListCredentialOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListCredentialOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**NotifyV1CredentialReadResponse**](notify_v1_credentialReadResponse.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) + + +## ListService + +> NotifyV1ServiceReadResponse ListService(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListServiceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListServiceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **friendlyName** | **optional.String**| The string that identifies the Service resources to read. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**NotifyV1ServiceReadResponse**](notify_v1_serviceReadResponse.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) + + +## UpdateCredential + +> NotifyV1Credential UpdateCredential(ctx, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the Credential resource to update. | + **optional** | ***UpdateCredentialOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateCredentialOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **apiKey** | **optional.String**| [GCM only] The `Server key` of your project from Firebase console under Settings / Cloud messaging. | + **certificate** | **optional.String**| [APN only] The URL-encoded representation of the certificate. Strip everything outside of the headers, e.g. `-----BEGIN CERTIFICATE-----MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==-----END CERTIFICATE-----` | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **privateKey** | **optional.String**| [APN only] The URL-encoded representation of the private key. Strip everything outside of the headers, e.g. `-----BEGIN RSA PRIVATE KEY-----MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR\\\\n.-----END RSA PRIVATE KEY-----` | + **sandbox** | **optional.Bool**| [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. | + **secret** | **optional.String**| [FCM only] The `Server key` of your project from Firebase console under Settings / Cloud messaging. | + +### Return type + +[**NotifyV1Credential**](notify.v1.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) + + +## UpdateService + +> NotifyV1Service UpdateService(ctx, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the Service resource to update. | + **optional** | ***UpdateServiceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateServiceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **alexaSkillId** | **optional.String**| Deprecated. | + **apnCredentialSid** | **optional.String**| The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for APN Bindings. | + **defaultAlexaNotificationProtocolVersion** | **optional.String**| Deprecated. | + **defaultApnNotificationProtocolVersion** | **optional.String**| The protocol version to use for sending APNS notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource. | + **defaultFcmNotificationProtocolVersion** | **optional.String**| The protocol version to use for sending FCM notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource. | + **defaultGcmNotificationProtocolVersion** | **optional.String**| The protocol version to use for sending GCM notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource. | + **deliveryCallbackEnabled** | **optional.Bool**| Callback configuration that enables delivery callbacks, default false | + **deliveryCallbackUrl** | **optional.String**| URL to send delivery status callback. | + **facebookMessengerPageId** | **optional.String**| Deprecated. | + **fcmCredentialSid** | **optional.String**| The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for FCM Bindings. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **gcmCredentialSid** | **optional.String**| The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for GCM Bindings. | + **logEnabled** | **optional.Bool**| Whether to log notifications. Can be: `true` or `false` and the default is `true`. | + **messagingServiceSid** | **optional.String**| The SID of the [Messaging Service](https://www.twilio.com/docs/sms/send-messages#messaging-services) to use for SMS Bindings. This parameter must be set in order to send SMS notifications. | + +### Return type + +[**NotifyV1Service**](notify.v1.service.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/rest/notify/v1/docs/NotifyV1Credential.md b/rest/notify/v1/docs/NotifyV1Credential.md new file mode 100644 index 000000000..f24f89b45 --- /dev/null +++ b/rest/notify/v1/docs/NotifyV1Credential.md @@ -0,0 +1,18 @@ +# NotifyV1Credential + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Sandbox** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Type** | **string** | | [optional] +**Url** | **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/rest/notify/v1/docs/NotifyV1CredentialReadResponse.md b/rest/notify/v1/docs/NotifyV1CredentialReadResponse.md new file mode 100644 index 000000000..fb1bbbbc2 --- /dev/null +++ b/rest/notify/v1/docs/NotifyV1CredentialReadResponse.md @@ -0,0 +1,12 @@ +# NotifyV1CredentialReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Credentials** | [**[]NotifyV1Credential**](notify.v1.credential.md) | | [optional] +**Meta** | [**NotifyV1CredentialReadResponseMeta**](notify_v1_credentialReadResponse_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/rest/notify/v1/docs/NotifyV1CredentialReadResponseMeta.md b/rest/notify/v1/docs/NotifyV1CredentialReadResponseMeta.md new file mode 100644 index 000000000..a9dcd6afa --- /dev/null +++ b/rest/notify/v1/docs/NotifyV1CredentialReadResponseMeta.md @@ -0,0 +1,17 @@ +# NotifyV1CredentialReadResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/notify/v1/docs/NotifyV1Service.md b/rest/notify/v1/docs/NotifyV1Service.md new file mode 100644 index 000000000..c8d800b40 --- /dev/null +++ b/rest/notify/v1/docs/NotifyV1Service.md @@ -0,0 +1,30 @@ +# NotifyV1Service + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AlexaSkillId** | **string** | | [optional] +**ApnCredentialSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**DefaultAlexaNotificationProtocolVersion** | **string** | | [optional] +**DefaultApnNotificationProtocolVersion** | **string** | | [optional] +**DefaultFcmNotificationProtocolVersion** | **string** | | [optional] +**DefaultGcmNotificationProtocolVersion** | **string** | | [optional] +**DeliveryCallbackEnabled** | **bool** | | [optional] +**DeliveryCallbackUrl** | **string** | | [optional] +**FacebookMessengerPageId** | **string** | | [optional] +**FcmCredentialSid** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**GcmCredentialSid** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**LogEnabled** | **bool** | | [optional] +**MessagingServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/notify/v1/docs/NotifyV1ServiceBinding.md b/rest/notify/v1/docs/NotifyV1ServiceBinding.md new file mode 100644 index 000000000..5ded80e59 --- /dev/null +++ b/rest/notify/v1/docs/NotifyV1ServiceBinding.md @@ -0,0 +1,24 @@ +# NotifyV1ServiceBinding + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Address** | **string** | | [optional] +**BindingType** | **string** | | [optional] +**CredentialSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Endpoint** | **string** | | [optional] +**Identity** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**NotificationProtocolVersion** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Tags** | **[]string** | | [optional] +**Url** | **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/rest/notify/v1/docs/NotifyV1ServiceBindingReadResponse.md b/rest/notify/v1/docs/NotifyV1ServiceBindingReadResponse.md new file mode 100644 index 000000000..780116b0e --- /dev/null +++ b/rest/notify/v1/docs/NotifyV1ServiceBindingReadResponse.md @@ -0,0 +1,12 @@ +# NotifyV1ServiceBindingReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Bindings** | [**[]NotifyV1ServiceBinding**](notify.v1.service.binding.md) | | [optional] +**Meta** | [**NotifyV1CredentialReadResponseMeta**](notify_v1_credentialReadResponse_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/rest/notify/v1/docs/NotifyV1ServiceNotification.md b/rest/notify/v1/docs/NotifyV1ServiceNotification.md new file mode 100644 index 000000000..47aa439f1 --- /dev/null +++ b/rest/notify/v1/docs/NotifyV1ServiceNotification.md @@ -0,0 +1,30 @@ +# NotifyV1ServiceNotification + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Action** | **string** | | [optional] +**Alexa** | [**map[string]interface{}**](.md) | | [optional] +**Apn** | [**map[string]interface{}**](.md) | | [optional] +**Body** | **string** | | [optional] +**Data** | [**map[string]interface{}**](.md) | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**FacebookMessenger** | [**map[string]interface{}**](.md) | | [optional] +**Fcm** | [**map[string]interface{}**](.md) | | [optional] +**Gcm** | [**map[string]interface{}**](.md) | | [optional] +**Identities** | **[]string** | | [optional] +**Priority** | **string** | | [optional] +**Segments** | **[]string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Sms** | [**map[string]interface{}**](.md) | | [optional] +**Sound** | **string** | | [optional] +**Tags** | **[]string** | | [optional] +**Title** | **string** | | [optional] +**Ttl** | **int32** | | [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/rest/notify/v1/docs/NotifyV1ServiceReadResponse.md b/rest/notify/v1/docs/NotifyV1ServiceReadResponse.md new file mode 100644 index 000000000..d43ae6ff1 --- /dev/null +++ b/rest/notify/v1/docs/NotifyV1ServiceReadResponse.md @@ -0,0 +1,12 @@ +# NotifyV1ServiceReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**NotifyV1CredentialReadResponseMeta**](notify_v1_credentialReadResponse_meta.md) | | [optional] +**Services** | [**[]NotifyV1Service**](notify.v1.service.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/rest/notify/v1/docs/UpdateCredentialRequest.md b/rest/notify/v1/docs/UpdateCredentialRequest.md new file mode 100644 index 000000000..ed5e1ec86 --- /dev/null +++ b/rest/notify/v1/docs/UpdateCredentialRequest.md @@ -0,0 +1,16 @@ +# UpdateCredentialRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApiKey** | **string** | [GCM only] The `Server key` of your project from Firebase console under Settings / Cloud messaging. | [optional] +**Certificate** | **string** | [APN only] The URL-encoded representation of the certificate. Strip everything outside of the headers, e.g. `-----BEGIN CERTIFICATE-----MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==-----END CERTIFICATE-----` | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | [optional] +**PrivateKey** | **string** | [APN only] The URL-encoded representation of the private key. Strip everything outside of the headers, e.g. `-----BEGIN RSA PRIVATE KEY-----MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR\\n.-----END RSA PRIVATE KEY-----` | [optional] +**Sandbox** | **bool** | [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. | [optional] +**Secret** | **string** | [FCM only] The `Server key` of your project from Firebase console under Settings / Cloud messaging. | [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/rest/notify/v1/docs/UpdateServiceRequest.md b/rest/notify/v1/docs/UpdateServiceRequest.md new file mode 100644 index 000000000..33925af72 --- /dev/null +++ b/rest/notify/v1/docs/UpdateServiceRequest.md @@ -0,0 +1,24 @@ +# UpdateServiceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AlexaSkillId** | **string** | Deprecated. | [optional] +**ApnCredentialSid** | **string** | The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for APN Bindings. | [optional] +**DefaultAlexaNotificationProtocolVersion** | **string** | Deprecated. | [optional] +**DefaultApnNotificationProtocolVersion** | **string** | The protocol version to use for sending APNS notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource. | [optional] +**DefaultFcmNotificationProtocolVersion** | **string** | The protocol version to use for sending FCM notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource. | [optional] +**DefaultGcmNotificationProtocolVersion** | **string** | The protocol version to use for sending GCM notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource. | [optional] +**DeliveryCallbackEnabled** | **bool** | Callback configuration that enables delivery callbacks, default false | [optional] +**DeliveryCallbackUrl** | **string** | URL to send delivery status callback. | [optional] +**FacebookMessengerPageId** | **string** | Deprecated. | [optional] +**FcmCredentialSid** | **string** | The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for FCM Bindings. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | [optional] +**GcmCredentialSid** | **string** | The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for GCM Bindings. | [optional] +**LogEnabled** | **bool** | Whether to log notifications. Can be: `true` or `false` and the default is `true`. | [optional] +**MessagingServiceSid** | **string** | The SID of the [Messaging Service](https://www.twilio.com/docs/sms/send-messages#messaging-services) to use for SMS Bindings. This parameter must be set in order to send SMS notifications. | [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/rest/notify/v1/model_create_binding_request.go b/rest/notify/v1/model_create_binding_request.go new file mode 100644 index 000000000..4fd4e3199 --- /dev/null +++ b/rest/notify/v1/model_create_binding_request.go @@ -0,0 +1,28 @@ +/* + * Twilio - Notify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateBindingRequest struct for CreateBindingRequest +type CreateBindingRequest struct { + // The channel-specific address. For APNS, the device token. For FCM and GCM, the registration token. For SMS, a phone number in E.164 format. For Facebook Messenger, the Messenger ID of the user or a phone number in E.164 format. + Address string `json:"Address"` + // The transport technology to use for the Binding. Can be: `apn`, `fcm`, `gcm`, `sms`, or `facebook-messenger`. + BindingType string `json:"BindingType"` + // The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) resource to be used to send notifications to this Binding. If present, this overrides the Credential specified in the Service resource. Applies to only `apn`, `fcm`, and `gcm` type Bindings. + CredentialSid string `json:"CredentialSid,omitempty"` + // Deprecated. + Endpoint string `json:"Endpoint,omitempty"` + // The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/notify/api/service-resource). Up to 20 Bindings can be created for the same Identity in a given Service. + Identity string `json:"Identity"` + // The protocol version to use to send the notification. This defaults to the value of `default_xxxx_notification_protocol_version` for the protocol in the [Service](https://www.twilio.com/docs/notify/api/service-resource). The current version is `\"3\"` for `apn`, `fcm`, and `gcm` type Bindings. The parameter is not applicable to `sms` and `facebook-messenger` type Bindings as the data format is fixed. + NotificationProtocolVersion string `json:"NotificationProtocolVersion,omitempty"` + // A tag that can be used to select the Bindings to notify. Repeat this parameter to specify more than one tag, up to a total of 20 tags. + Tag []string `json:"Tag,omitempty"` +} diff --git a/rest/notify/v1/model_create_credential_request.go b/rest/notify/v1/model_create_credential_request.go new file mode 100644 index 000000000..bfeaa85e0 --- /dev/null +++ b/rest/notify/v1/model_create_credential_request.go @@ -0,0 +1,28 @@ +/* + * Twilio - Notify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateCredentialRequest struct for CreateCredentialRequest +type CreateCredentialRequest struct { + // [GCM only] The `Server key` of your project from Firebase console under Settings / Cloud messaging. + ApiKey string `json:"ApiKey,omitempty"` + // [APN only] The URL-encoded representation of the certificate. Strip everything outside of the headers, e.g. `-----BEGIN CERTIFICATE-----MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==-----END CERTIFICATE-----` + Certificate string `json:"Certificate,omitempty"` + // A descriptive string that you create to describe the resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // [APN only] The URL-encoded representation of the private key. Strip everything outside of the headers, e.g. `-----BEGIN RSA PRIVATE KEY-----MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR\\n.-----END RSA PRIVATE KEY-----` + PrivateKey string `json:"PrivateKey,omitempty"` + // [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. + Sandbox bool `json:"Sandbox,omitempty"` + // [FCM only] The `Server key` of your project from Firebase console under Settings / Cloud messaging. + Secret string `json:"Secret,omitempty"` + // The Credential type. Can be: `gcm`, `fcm`, or `apn`. + Type string `json:"Type"` +} diff --git a/rest/notify/v1/model_create_notification_request.go b/rest/notify/v1/model_create_notification_request.go new file mode 100644 index 000000000..3cc3a6617 --- /dev/null +++ b/rest/notify/v1/model_create_notification_request.go @@ -0,0 +1,50 @@ +/* + * Twilio - Notify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateNotificationRequest struct for CreateNotificationRequest +type CreateNotificationRequest struct { + // The actions to display for the notification. For APNS, translates to the `aps.category` value. For GCM, translates to the `data.twi_action` value. For SMS, this parameter is not supported and is omitted from deliveries to those channels. + Action string `json:"Action,omitempty"` + // Deprecated. + Alexa map[string]interface{} `json:"Alexa,omitempty"` + // The APNS-specific payload that overrides corresponding attributes in the generic payload for APNS Bindings. This property maps to the APNS `Payload` item, therefore the `aps` key must be used to change standard attributes. Adds custom key-value pairs to the root of the dictionary. See the [APNS documentation](https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingwithAPNs.html) for more details. We reserve keys that start with `twi_` for future use. Custom keys that start with `twi_` are not allowed. + Apn map[string]interface{} `json:"Apn,omitempty"` + // The notification text. For FCM and GCM, translates to `data.twi_body`. For APNS, translates to `aps.alert.body`. For SMS, translates to `body`. SMS requires either this `body` value, or `media_urls` attribute defined in the `sms` parameter of the notification. + Body string `json:"Body,omitempty"` + // The custom key-value pairs of the notification's payload. For FCM and GCM, this value translates to `data` in the FCM and GCM payloads. FCM and GCM [reserve certain keys](https://firebase.google.com/docs/cloud-messaging/http-server-ref) that cannot be used in those channels. For APNS, attributes of `data` are inserted into the APNS payload as custom properties outside of the `aps` dictionary. In all channels, we reserve keys that start with `twi_` for future use. Custom keys that start with `twi_` are not allowed and are rejected as 400 Bad request with no delivery attempted. For SMS, this parameter is not supported and is omitted from deliveries to those channels. + Data map[string]interface{} `json:"Data,omitempty"` + // URL to send webhooks. + DeliveryCallbackUrl string `json:"DeliveryCallbackUrl,omitempty"` + // Deprecated. + FacebookMessenger map[string]interface{} `json:"FacebookMessenger,omitempty"` + // The FCM-specific payload that overrides corresponding attributes in the generic payload for FCM Bindings. This property maps to the root JSON dictionary. See the [FCM documentation](https://firebase.google.com/docs/cloud-messaging/http-server-ref#downstream) for more details. Target parameters `to`, `registration_ids`, `condition`, and `notification_key` are not allowed in this parameter. We reserve keys that start with `twi_` for future use. Custom keys that start with `twi_` are not allowed. FCM also [reserves certain keys](https://firebase.google.com/docs/cloud-messaging/http-server-ref), which cannot be used in that channel. + Fcm map[string]interface{} `json:"Fcm,omitempty"` + // The GCM-specific payload that overrides corresponding attributes in the generic payload for GCM Bindings. This property maps to the root JSON dictionary. See the [GCM documentation](https://firebase.google.com/docs/cloud-messaging/http-server-ref) for more details. Target parameters `to`, `registration_ids`, and `notification_key` are not allowed. We reserve keys that start with `twi_` for future use. Custom keys that start with `twi_` are not allowed. GCM also [reserves certain keys](https://firebase.google.com/docs/cloud-messaging/http-server-ref). + Gcm map[string]interface{} `json:"Gcm,omitempty"` + // The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/notify/api/service-resource). Delivery will be attempted only to Bindings with an Identity in this list. No more than 20 items are allowed in this list. + Identity []string `json:"Identity,omitempty"` + // The priority of the notification. Can be: `low` or `high` and the default is `high`. A value of `low` optimizes the client app's battery consumption; however, notifications may be delivered with unspecified delay. For FCM and GCM, `low` priority is the same as `Normal` priority. For APNS `low` priority is the same as `5`. A value of `high` sends the notification immediately, and can wake up a sleeping device. For FCM and GCM, `high` is the same as `High` priority. For APNS, `high` is a priority `10`. SMS does not support this property. + Priority string `json:"Priority,omitempty"` + // The Segment resource is deprecated. Use the `tag` parameter, instead. + Segment []string `json:"Segment,omitempty"` + // The SMS-specific payload that overrides corresponding attributes in the generic payload for SMS Bindings. Each attribute in this value maps to the corresponding `form` parameter of the Twilio [Message](https://www.twilio.com/docs/sms/send-messages) resource. These parameters of the Message resource are supported in snake case format: `body`, `media_urls`, `status_callback`, and `max_price`. The `status_callback` parameter overrides the corresponding parameter in the messaging service, if configured. The `media_urls` property expects a JSON array. + Sms map[string]interface{} `json:"Sms,omitempty"` + // The name of the sound to be played for the notification. For FCM and GCM, this Translates to `data.twi_sound`. For APNS, this translates to `aps.sound`. SMS does not support this property. + Sound string `json:"Sound,omitempty"` + // A tag that selects the Bindings to notify. Repeat this parameter to specify more than one tag, up to a total of 5 tags. The implicit tag `all` is available to notify all Bindings in a Service instance. Similarly, the implicit tags `apn`, `fcm`, `gcm`, `sms` and `facebook-messenger` are available to notify all Bindings in a specific channel. + Tag []string `json:"Tag,omitempty"` + // The notification title. For FCM and GCM, this translates to the `data.twi_title` value. For APNS, this translates to the `aps.alert.title` value. SMS does not support this property. This field is not visible on iOS phones and tablets but appears on Apple Watch and Android devices. + Title string `json:"Title,omitempty"` + // The destination address specified as a JSON string. Multiple `to_binding` parameters can be included but the total size of the request entity should not exceed 1MB. This is typically sufficient for 10,000 phone numbers. + ToBinding []string `json:"ToBinding,omitempty"` + // How long, in seconds, the notification is valid. Can be an integer between 0 and 2,419,200, which is 4 weeks, the default and the maximum supported time to live (TTL). Delivery should be attempted if the device is offline until the TTL elapses. Zero means that the notification delivery is attempted immediately, only once, and is not stored for future delivery. SMS does not support this property. + Ttl int32 `json:"Ttl,omitempty"` +} diff --git a/rest/notify/v1/model_create_service_request.go b/rest/notify/v1/model_create_service_request.go new file mode 100644 index 000000000..81f2672c5 --- /dev/null +++ b/rest/notify/v1/model_create_service_request.go @@ -0,0 +1,42 @@ +/* + * Twilio - Notify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateServiceRequest struct for CreateServiceRequest +type CreateServiceRequest struct { + // Deprecated. + AlexaSkillId string `json:"AlexaSkillId,omitempty"` + // The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for APN Bindings. + ApnCredentialSid string `json:"ApnCredentialSid,omitempty"` + // Deprecated. + DefaultAlexaNotificationProtocolVersion string `json:"DefaultAlexaNotificationProtocolVersion,omitempty"` + // The protocol version to use for sending APNS notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource. + DefaultApnNotificationProtocolVersion string `json:"DefaultApnNotificationProtocolVersion,omitempty"` + // The protocol version to use for sending FCM notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource. + DefaultFcmNotificationProtocolVersion string `json:"DefaultFcmNotificationProtocolVersion,omitempty"` + // The protocol version to use for sending GCM notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource. + DefaultGcmNotificationProtocolVersion string `json:"DefaultGcmNotificationProtocolVersion,omitempty"` + // Callback configuration that enables delivery callbacks, default false + DeliveryCallbackEnabled bool `json:"DeliveryCallbackEnabled,omitempty"` + // URL to send delivery status callback. + DeliveryCallbackUrl string `json:"DeliveryCallbackUrl,omitempty"` + // Deprecated. + FacebookMessengerPageId string `json:"FacebookMessengerPageId,omitempty"` + // The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for FCM Bindings. + FcmCredentialSid string `json:"FcmCredentialSid,omitempty"` + // A descriptive string that you create to describe the resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for GCM Bindings. + GcmCredentialSid string `json:"GcmCredentialSid,omitempty"` + // Whether to log notifications. Can be: `true` or `false` and the default is `true`. + LogEnabled bool `json:"LogEnabled,omitempty"` + // The SID of the [Messaging Service](https://www.twilio.com/docs/sms/send-messages#messaging-services) to use for SMS Bindings. This parameter must be set in order to send SMS notifications. + MessagingServiceSid string `json:"MessagingServiceSid,omitempty"` +} diff --git a/rest/notify/v1/model_notify_v1_credential.go b/rest/notify/v1/model_notify_v1_credential.go new file mode 100644 index 000000000..279e44c71 --- /dev/null +++ b/rest/notify/v1/model_notify_v1_credential.go @@ -0,0 +1,25 @@ +/* + * Twilio - Notify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// NotifyV1Credential struct for NotifyV1Credential +type NotifyV1Credential struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Sandbox string `json:"sandbox,omitempty"` + Sid string `json:"sid,omitempty"` + Type string `json:"type,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/notify/v1/model_notify_v1_credential_read_response.go b/rest/notify/v1/model_notify_v1_credential_read_response.go new file mode 100644 index 000000000..e92565102 --- /dev/null +++ b/rest/notify/v1/model_notify_v1_credential_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Notify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// NotifyV1CredentialReadResponse struct for NotifyV1CredentialReadResponse +type NotifyV1CredentialReadResponse struct { + Credentials []NotifyV1Credential `json:"credentials,omitempty"` + Meta NotifyV1CredentialReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/notify/v1/model_notify_v1_credential_read_response_meta.go b/rest/notify/v1/model_notify_v1_credential_read_response_meta.go new file mode 100644 index 000000000..d7b686a39 --- /dev/null +++ b/rest/notify/v1/model_notify_v1_credential_read_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Notify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// NotifyV1CredentialReadResponseMeta struct for NotifyV1CredentialReadResponseMeta +type NotifyV1CredentialReadResponseMeta struct { + FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` + NextPageUrl string `json:"next_page_url,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUrl string `json:"previous_page_url,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/notify/v1/model_notify_v1_service.go b/rest/notify/v1/model_notify_v1_service.go new file mode 100644 index 000000000..8bac1f4af --- /dev/null +++ b/rest/notify/v1/model_notify_v1_service.go @@ -0,0 +1,37 @@ +/* + * Twilio - Notify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// NotifyV1Service struct for NotifyV1Service +type NotifyV1Service struct { + AccountSid string `json:"account_sid,omitempty"` + AlexaSkillId string `json:"alexa_skill_id,omitempty"` + ApnCredentialSid string `json:"apn_credential_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + DefaultAlexaNotificationProtocolVersion string `json:"default_alexa_notification_protocol_version,omitempty"` + DefaultApnNotificationProtocolVersion string `json:"default_apn_notification_protocol_version,omitempty"` + DefaultFcmNotificationProtocolVersion string `json:"default_fcm_notification_protocol_version,omitempty"` + DefaultGcmNotificationProtocolVersion string `json:"default_gcm_notification_protocol_version,omitempty"` + DeliveryCallbackEnabled bool `json:"delivery_callback_enabled,omitempty"` + DeliveryCallbackUrl string `json:"delivery_callback_url,omitempty"` + FacebookMessengerPageId string `json:"facebook_messenger_page_id,omitempty"` + FcmCredentialSid string `json:"fcm_credential_sid,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + GcmCredentialSid string `json:"gcm_credential_sid,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + LogEnabled bool `json:"log_enabled,omitempty"` + MessagingServiceSid string `json:"messaging_service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/notify/v1/model_notify_v1_service_binding.go b/rest/notify/v1/model_notify_v1_service_binding.go new file mode 100644 index 000000000..1fc2b9c4b --- /dev/null +++ b/rest/notify/v1/model_notify_v1_service_binding.go @@ -0,0 +1,31 @@ +/* + * Twilio - Notify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// NotifyV1ServiceBinding struct for NotifyV1ServiceBinding +type NotifyV1ServiceBinding struct { + AccountSid string `json:"account_sid,omitempty"` + Address string `json:"address,omitempty"` + BindingType string `json:"binding_type,omitempty"` + CredentialSid string `json:"credential_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Endpoint string `json:"endpoint,omitempty"` + Identity string `json:"identity,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + NotificationProtocolVersion string `json:"notification_protocol_version,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Tags []string `json:"tags,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/notify/v1/model_notify_v1_service_binding_read_response.go b/rest/notify/v1/model_notify_v1_service_binding_read_response.go new file mode 100644 index 000000000..f65220af9 --- /dev/null +++ b/rest/notify/v1/model_notify_v1_service_binding_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Notify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// NotifyV1ServiceBindingReadResponse struct for NotifyV1ServiceBindingReadResponse +type NotifyV1ServiceBindingReadResponse struct { + Bindings []NotifyV1ServiceBinding `json:"bindings,omitempty"` + Meta NotifyV1CredentialReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/notify/v1/model_notify_v1_service_notification.go b/rest/notify/v1/model_notify_v1_service_notification.go new file mode 100644 index 000000000..d3947e9ba --- /dev/null +++ b/rest/notify/v1/model_notify_v1_service_notification.go @@ -0,0 +1,37 @@ +/* + * Twilio - Notify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// NotifyV1ServiceNotification struct for NotifyV1ServiceNotification +type NotifyV1ServiceNotification struct { + AccountSid string `json:"account_sid,omitempty"` + Action string `json:"action,omitempty"` + Alexa map[string]interface{} `json:"alexa,omitempty"` + Apn map[string]interface{} `json:"apn,omitempty"` + Body string `json:"body,omitempty"` + Data map[string]interface{} `json:"data,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + FacebookMessenger map[string]interface{} `json:"facebook_messenger,omitempty"` + Fcm map[string]interface{} `json:"fcm,omitempty"` + Gcm map[string]interface{} `json:"gcm,omitempty"` + Identities []string `json:"identities,omitempty"` + Priority string `json:"priority,omitempty"` + Segments []string `json:"segments,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Sms map[string]interface{} `json:"sms,omitempty"` + Sound string `json:"sound,omitempty"` + Tags []string `json:"tags,omitempty"` + Title string `json:"title,omitempty"` + Ttl int32 `json:"ttl,omitempty"` +} diff --git a/rest/notify/v1/model_notify_v1_service_read_response.go b/rest/notify/v1/model_notify_v1_service_read_response.go new file mode 100644 index 000000000..ef19bd5b8 --- /dev/null +++ b/rest/notify/v1/model_notify_v1_service_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Notify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// NotifyV1ServiceReadResponse struct for NotifyV1ServiceReadResponse +type NotifyV1ServiceReadResponse struct { + Meta NotifyV1CredentialReadResponseMeta `json:"meta,omitempty"` + Services []NotifyV1Service `json:"services,omitempty"` +} diff --git a/rest/notify/v1/model_update_credential_request.go b/rest/notify/v1/model_update_credential_request.go new file mode 100644 index 000000000..e57af2985 --- /dev/null +++ b/rest/notify/v1/model_update_credential_request.go @@ -0,0 +1,26 @@ +/* + * Twilio - Notify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateCredentialRequest struct for UpdateCredentialRequest +type UpdateCredentialRequest struct { + // [GCM only] The `Server key` of your project from Firebase console under Settings / Cloud messaging. + ApiKey string `json:"ApiKey,omitempty"` + // [APN only] The URL-encoded representation of the certificate. Strip everything outside of the headers, e.g. `-----BEGIN CERTIFICATE-----MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==-----END CERTIFICATE-----` + Certificate string `json:"Certificate,omitempty"` + // A descriptive string that you create to describe the resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // [APN only] The URL-encoded representation of the private key. Strip everything outside of the headers, e.g. `-----BEGIN RSA PRIVATE KEY-----MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR\\n.-----END RSA PRIVATE KEY-----` + PrivateKey string `json:"PrivateKey,omitempty"` + // [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. + Sandbox bool `json:"Sandbox,omitempty"` + // [FCM only] The `Server key` of your project from Firebase console under Settings / Cloud messaging. + Secret string `json:"Secret,omitempty"` +} diff --git a/rest/notify/v1/model_update_service_request.go b/rest/notify/v1/model_update_service_request.go new file mode 100644 index 000000000..02ac5c5dc --- /dev/null +++ b/rest/notify/v1/model_update_service_request.go @@ -0,0 +1,42 @@ +/* + * Twilio - Notify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateServiceRequest struct for UpdateServiceRequest +type UpdateServiceRequest struct { + // Deprecated. + AlexaSkillId string `json:"AlexaSkillId,omitempty"` + // The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for APN Bindings. + ApnCredentialSid string `json:"ApnCredentialSid,omitempty"` + // Deprecated. + DefaultAlexaNotificationProtocolVersion string `json:"DefaultAlexaNotificationProtocolVersion,omitempty"` + // The protocol version to use for sending APNS notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource. + DefaultApnNotificationProtocolVersion string `json:"DefaultApnNotificationProtocolVersion,omitempty"` + // The protocol version to use for sending FCM notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource. + DefaultFcmNotificationProtocolVersion string `json:"DefaultFcmNotificationProtocolVersion,omitempty"` + // The protocol version to use for sending GCM notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource. + DefaultGcmNotificationProtocolVersion string `json:"DefaultGcmNotificationProtocolVersion,omitempty"` + // Callback configuration that enables delivery callbacks, default false + DeliveryCallbackEnabled bool `json:"DeliveryCallbackEnabled,omitempty"` + // URL to send delivery status callback. + DeliveryCallbackUrl string `json:"DeliveryCallbackUrl,omitempty"` + // Deprecated. + FacebookMessengerPageId string `json:"FacebookMessengerPageId,omitempty"` + // The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for FCM Bindings. + FcmCredentialSid string `json:"FcmCredentialSid,omitempty"` + // A descriptive string that you create to describe the resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for GCM Bindings. + GcmCredentialSid string `json:"GcmCredentialSid,omitempty"` + // Whether to log notifications. Can be: `true` or `false` and the default is `true`. + LogEnabled bool `json:"LogEnabled,omitempty"` + // The SID of the [Messaging Service](https://www.twilio.com/docs/sms/send-messages#messaging-services) to use for SMS Bindings. This parameter must be set in order to send SMS notifications. + MessagingServiceSid string `json:"MessagingServiceSid,omitempty"` +} diff --git a/rest/notify/v1/response.go b/rest/notify/v1/response.go new file mode 100644 index 000000000..1b2eb7402 --- /dev/null +++ b/rest/notify/v1/response.go @@ -0,0 +1,47 @@ +/* + * Twilio - Notify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// Response returns a new APIResponse object. +func Response(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// ResponseWithError returns a new APIResponse object with the provided error message. +func ResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/rest/numbers/v2/.openapi-generator-ignore b/rest/numbers/v2/.openapi-generator-ignore new file mode 100644 index 000000000..7484ee590 --- /dev/null +++ b/rest/numbers/v2/.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/rest/numbers/v2/.openapi-generator/VERSION b/rest/numbers/v2/.openapi-generator/VERSION new file mode 100644 index 000000000..ecedc98d1 --- /dev/null +++ b/rest/numbers/v2/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.3.1 \ No newline at end of file diff --git a/rest/numbers/v2/README.md b/rest/numbers/v2/README.md new file mode 100644 index 000000000..f59d1e920 --- /dev/null +++ b/rest/numbers/v2/README.md @@ -0,0 +1,114 @@ +# Go API client for openapi + +This is the public Twilio REST API. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 5.15.0 +- Package version: 1.0.0 +- Build package: com.twilio.oai.TwilioGoGenerator +For more information, please visit [https://support.twilio.com](https://support.twilio.com) + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import "./openapi" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**CreateBundle**](docs/DefaultApi.md#createbundle) | **Post** /v2/RegulatoryCompliance/Bundles | +*DefaultApi* | [**CreateEndUser**](docs/DefaultApi.md#createenduser) | **Post** /v2/RegulatoryCompliance/EndUsers | +*DefaultApi* | [**CreateEvaluation**](docs/DefaultApi.md#createevaluation) | **Post** /v2/RegulatoryCompliance/Bundles/{BundleSid}/Evaluations | +*DefaultApi* | [**CreateItemAssignment**](docs/DefaultApi.md#createitemassignment) | **Post** /v2/RegulatoryCompliance/Bundles/{BundleSid}/ItemAssignments | +*DefaultApi* | [**CreateSupportingDocument**](docs/DefaultApi.md#createsupportingdocument) | **Post** /v2/RegulatoryCompliance/SupportingDocuments | +*DefaultApi* | [**DeleteBundle**](docs/DefaultApi.md#deletebundle) | **Delete** /v2/RegulatoryCompliance/Bundles/{Sid} | +*DefaultApi* | [**DeleteEndUser**](docs/DefaultApi.md#deleteenduser) | **Delete** /v2/RegulatoryCompliance/EndUsers/{Sid} | +*DefaultApi* | [**DeleteItemAssignment**](docs/DefaultApi.md#deleteitemassignment) | **Delete** /v2/RegulatoryCompliance/Bundles/{BundleSid}/ItemAssignments/{Sid} | +*DefaultApi* | [**DeleteSupportingDocument**](docs/DefaultApi.md#deletesupportingdocument) | **Delete** /v2/RegulatoryCompliance/SupportingDocuments/{Sid} | +*DefaultApi* | [**FetchBundle**](docs/DefaultApi.md#fetchbundle) | **Get** /v2/RegulatoryCompliance/Bundles/{Sid} | +*DefaultApi* | [**FetchEndUser**](docs/DefaultApi.md#fetchenduser) | **Get** /v2/RegulatoryCompliance/EndUsers/{Sid} | +*DefaultApi* | [**FetchEndUserType**](docs/DefaultApi.md#fetchendusertype) | **Get** /v2/RegulatoryCompliance/EndUserTypes/{Sid} | +*DefaultApi* | [**FetchEvaluation**](docs/DefaultApi.md#fetchevaluation) | **Get** /v2/RegulatoryCompliance/Bundles/{BundleSid}/Evaluations/{Sid} | +*DefaultApi* | [**FetchItemAssignment**](docs/DefaultApi.md#fetchitemassignment) | **Get** /v2/RegulatoryCompliance/Bundles/{BundleSid}/ItemAssignments/{Sid} | +*DefaultApi* | [**FetchRegulation**](docs/DefaultApi.md#fetchregulation) | **Get** /v2/RegulatoryCompliance/Regulations/{Sid} | +*DefaultApi* | [**FetchSupportingDocument**](docs/DefaultApi.md#fetchsupportingdocument) | **Get** /v2/RegulatoryCompliance/SupportingDocuments/{Sid} | +*DefaultApi* | [**FetchSupportingDocumentType**](docs/DefaultApi.md#fetchsupportingdocumenttype) | **Get** /v2/RegulatoryCompliance/SupportingDocumentTypes/{Sid} | +*DefaultApi* | [**ListBundle**](docs/DefaultApi.md#listbundle) | **Get** /v2/RegulatoryCompliance/Bundles | +*DefaultApi* | [**ListEndUser**](docs/DefaultApi.md#listenduser) | **Get** /v2/RegulatoryCompliance/EndUsers | +*DefaultApi* | [**ListEndUserType**](docs/DefaultApi.md#listendusertype) | **Get** /v2/RegulatoryCompliance/EndUserTypes | +*DefaultApi* | [**ListEvaluation**](docs/DefaultApi.md#listevaluation) | **Get** /v2/RegulatoryCompliance/Bundles/{BundleSid}/Evaluations | +*DefaultApi* | [**ListItemAssignment**](docs/DefaultApi.md#listitemassignment) | **Get** /v2/RegulatoryCompliance/Bundles/{BundleSid}/ItemAssignments | +*DefaultApi* | [**ListRegulation**](docs/DefaultApi.md#listregulation) | **Get** /v2/RegulatoryCompliance/Regulations | +*DefaultApi* | [**ListSupportingDocument**](docs/DefaultApi.md#listsupportingdocument) | **Get** /v2/RegulatoryCompliance/SupportingDocuments | +*DefaultApi* | [**ListSupportingDocumentType**](docs/DefaultApi.md#listsupportingdocumenttype) | **Get** /v2/RegulatoryCompliance/SupportingDocumentTypes | +*DefaultApi* | [**UpdateBundle**](docs/DefaultApi.md#updatebundle) | **Post** /v2/RegulatoryCompliance/Bundles/{Sid} | +*DefaultApi* | [**UpdateEndUser**](docs/DefaultApi.md#updateenduser) | **Post** /v2/RegulatoryCompliance/EndUsers/{Sid} | +*DefaultApi* | [**UpdateSupportingDocument**](docs/DefaultApi.md#updatesupportingdocument) | **Post** /v2/RegulatoryCompliance/SupportingDocuments/{Sid} | + + +## Documentation For Models + + - [CreateBundleRequest](docs/CreateBundleRequest.md) + - [CreateEndUserRequest](docs/CreateEndUserRequest.md) + - [CreateItemAssignmentRequest](docs/CreateItemAssignmentRequest.md) + - [CreateSupportingDocumentRequest](docs/CreateSupportingDocumentRequest.md) + - [NumbersV2RegulatoryComplianceBundle](docs/NumbersV2RegulatoryComplianceBundle.md) + - [NumbersV2RegulatoryComplianceBundleEvaluation](docs/NumbersV2RegulatoryComplianceBundleEvaluation.md) + - [NumbersV2RegulatoryComplianceBundleEvaluationReadResponse](docs/NumbersV2RegulatoryComplianceBundleEvaluationReadResponse.md) + - [NumbersV2RegulatoryComplianceBundleItemAssignment](docs/NumbersV2RegulatoryComplianceBundleItemAssignment.md) + - [NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse](docs/NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse.md) + - [NumbersV2RegulatoryComplianceBundleReadResponse](docs/NumbersV2RegulatoryComplianceBundleReadResponse.md) + - [NumbersV2RegulatoryComplianceBundleReadResponseMeta](docs/NumbersV2RegulatoryComplianceBundleReadResponseMeta.md) + - [NumbersV2RegulatoryComplianceEndUser](docs/NumbersV2RegulatoryComplianceEndUser.md) + - [NumbersV2RegulatoryComplianceEndUserReadResponse](docs/NumbersV2RegulatoryComplianceEndUserReadResponse.md) + - [NumbersV2RegulatoryComplianceEndUserType](docs/NumbersV2RegulatoryComplianceEndUserType.md) + - [NumbersV2RegulatoryComplianceEndUserTypeReadResponse](docs/NumbersV2RegulatoryComplianceEndUserTypeReadResponse.md) + - [NumbersV2RegulatoryComplianceRegulation](docs/NumbersV2RegulatoryComplianceRegulation.md) + - [NumbersV2RegulatoryComplianceRegulationReadResponse](docs/NumbersV2RegulatoryComplianceRegulationReadResponse.md) + - [NumbersV2RegulatoryComplianceSupportingDocument](docs/NumbersV2RegulatoryComplianceSupportingDocument.md) + - [NumbersV2RegulatoryComplianceSupportingDocumentReadResponse](docs/NumbersV2RegulatoryComplianceSupportingDocumentReadResponse.md) + - [NumbersV2RegulatoryComplianceSupportingDocumentType](docs/NumbersV2RegulatoryComplianceSupportingDocumentType.md) + - [NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse](docs/NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse.md) + - [UpdateBundleRequest](docs/UpdateBundleRequest.md) + - [UpdateEndUserRequest](docs/UpdateEndUserRequest.md) + - [UpdateSupportingDocumentRequest](docs/UpdateSupportingDocumentRequest.md) + + +## Documentation For Authorization + + + +## accountSid_authToken + +- **Type**: HTTP basic authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ + UserName: "username", + Password: "password", +}) +r, err := client.Service.Operation(auth, args) +``` + + +## Author + +support@twilio.com + diff --git a/rest/numbers/v2/api_default.go b/rest/numbers/v2/api_default.go new file mode 100644 index 000000000..ac6ddc960 --- /dev/null +++ b/rest/numbers/v2/api_default.go @@ -0,0 +1,1109 @@ +/* + * Twilio - Numbers + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "" +) + +type DefaultApiService struct { + baseURL string + client *twilio.Client +} + +func NewDefaultApiService(client *twilio.Client) *DefaultApiService { + return &DefaultApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} +// CreateBundleParams Optional parameters for the method 'CreateBundle' +type CreateBundleParams struct { + Email *string `json:"Email,omitempty"` + EndUserType *string `json:"EndUserType,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IsoCountry *string `json:"IsoCountry,omitempty"` + NumberType *string `json:"NumberType,omitempty"` + RegulationSid *string `json:"RegulationSid,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` +} + +/* +CreateBundle Method for CreateBundle +Create a new Bundle. + * @param optional nil or *CreateBundleOpts - Optional Parameters: + * @param "Email" (string) - The email address that will receive updates when the Bundle resource changes status. + * @param "EndUserType" (string) - The type of End User of the Bundle resource. + * @param "FriendlyName" (string) - The string that you assigned to describe the resource. + * @param "IsoCountry" (string) - The ISO country code of the Bundle's phone number country ownership request. + * @param "NumberType" (string) - The type of phone number of the Bundle's ownership request. + * @param "RegulationSid" (string) - The unique string of a regulation that is associated to the Bundle resource. + * @param "StatusCallback" (string) - The URL we call to inform your application of status changes. +@return NumbersV2RegulatoryComplianceBundle +*/ +func (c *DefaultApiService) CreateBundle(params *CreateBundleParams) (*NumbersV2RegulatoryComplianceBundle, error) { + path := "/v2/RegulatoryCompliance/Bundles" + + data := url.Values{} + headers := 0 + + if params != nil && params.Email != nil { + data.Set("Email", *params.Email) + } + if params != nil && params.EndUserType != nil { + data.Set("EndUserType", *params.EndUserType) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.IsoCountry != nil { + data.Set("IsoCountry", *params.IsoCountry) + } + if params != nil && params.NumberType != nil { + data.Set("NumberType", *params.NumberType) + } + if params != nil && params.RegulationSid != nil { + data.Set("RegulationSid", *params.RegulationSid) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NumbersV2RegulatoryComplianceBundle{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateEndUserParams Optional parameters for the method 'CreateEndUser' +type CreateEndUserParams struct { + Attributes *map[string]interface{} `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Type *string `json:"Type,omitempty"` +} + +/* +CreateEndUser Method for CreateEndUser +Create a new End User. + * @param optional nil or *CreateEndUserOpts - Optional Parameters: + * @param "Attributes" (map[string]interface{}) - The set of parameters that are the attributes of the End User resource which are derived End User Types. + * @param "FriendlyName" (string) - The string that you assigned to describe the resource. + * @param "Type" (string) - The type of end user of the Bundle resource - can be `individual` or `business`. +@return NumbersV2RegulatoryComplianceEndUser +*/ +func (c *DefaultApiService) CreateEndUser(params *CreateEndUserParams) (*NumbersV2RegulatoryComplianceEndUser, error) { + path := "/v2/RegulatoryCompliance/EndUsers" + + data := url.Values{} + headers := 0 + + if params != nil && params.Attributes != nil { + v, err := json.Marshal(params.Attributes) + + if err != nil { + return nil, err + } + + data.Set("Attributes", string(v)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NumbersV2RegulatoryComplianceEndUser{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +CreateEvaluation Method for CreateEvaluation + * @param bundleSid +@return NumbersV2RegulatoryComplianceBundleEvaluation +*/ +func (c *DefaultApiService) CreateEvaluation(bundleSid string) (*NumbersV2RegulatoryComplianceBundleEvaluation, error) { + path := "/v2/RegulatoryCompliance/Bundles/{BundleSid}/Evaluations" + path = strings.Replace(path, "{"+"BundleSid"+"}", bundleSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NumbersV2RegulatoryComplianceBundleEvaluation{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateItemAssignmentParams Optional parameters for the method 'CreateItemAssignment' +type CreateItemAssignmentParams struct { + ObjectSid *string `json:"ObjectSid,omitempty"` +} + +/* +CreateItemAssignment Method for CreateItemAssignment +Create a new Assigned Item. + * @param bundleSid The unique string that we created to identify the Bundle resource. + * @param optional nil or *CreateItemAssignmentOpts - Optional Parameters: + * @param "ObjectSid" (string) - The SID of an object bag that holds information of the different items. +@return NumbersV2RegulatoryComplianceBundleItemAssignment +*/ +func (c *DefaultApiService) CreateItemAssignment(bundleSid string, params *CreateItemAssignmentParams) (*NumbersV2RegulatoryComplianceBundleItemAssignment, error) { + path := "/v2/RegulatoryCompliance/Bundles/{BundleSid}/ItemAssignments" + path = strings.Replace(path, "{"+"BundleSid"+"}", bundleSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ObjectSid != nil { + data.Set("ObjectSid", *params.ObjectSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NumbersV2RegulatoryComplianceBundleItemAssignment{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateSupportingDocumentParams Optional parameters for the method 'CreateSupportingDocument' +type CreateSupportingDocumentParams struct { + Attributes *map[string]interface{} `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Type *string `json:"Type,omitempty"` +} + +/* +CreateSupportingDocument Method for CreateSupportingDocument +Create a new Supporting Document. + * @param optional nil or *CreateSupportingDocumentOpts - Optional Parameters: + * @param "Attributes" (map[string]interface{}) - The set of parameters that are the attributes of the Supporting Documents resource which are derived Supporting Document Types. + * @param "FriendlyName" (string) - The string that you assigned to describe the resource. + * @param "Type" (string) - The type of the Supporting Document. +@return NumbersV2RegulatoryComplianceSupportingDocument +*/ +func (c *DefaultApiService) CreateSupportingDocument(params *CreateSupportingDocumentParams) (*NumbersV2RegulatoryComplianceSupportingDocument, error) { + path := "/v2/RegulatoryCompliance/SupportingDocuments" + + data := url.Values{} + headers := 0 + + if params != nil && params.Attributes != nil { + v, err := json.Marshal(params.Attributes) + + if err != nil { + return nil, err + } + + data.Set("Attributes", string(v)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NumbersV2RegulatoryComplianceSupportingDocument{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +DeleteBundle Method for DeleteBundle +Delete a specific Bundle. + * @param sid The unique string that we created to identify the Bundle resource. +*/ +func (c *DefaultApiService) DeleteBundle(sid string) (error) { + path := "/v2/RegulatoryCompliance/Bundles/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteEndUser Method for DeleteEndUser +Delete a specific End User. + * @param sid The unique string created by Twilio to identify the End User resource. +*/ +func (c *DefaultApiService) DeleteEndUser(sid string) (error) { + path := "/v2/RegulatoryCompliance/EndUsers/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteItemAssignment Method for DeleteItemAssignment +Remove an Assignment Item Instance. + * @param bundleSid The unique string that we created to identify the Bundle resource. + * @param sid The unique string that we created to identify the Identity resource. +*/ +func (c *DefaultApiService) DeleteItemAssignment(bundleSid string, sid string) (error) { + path := "/v2/RegulatoryCompliance/Bundles/{BundleSid}/ItemAssignments/{Sid}" + path = strings.Replace(path, "{"+"BundleSid"+"}", bundleSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteSupportingDocument Method for DeleteSupportingDocument +Delete a specific Supporting Document. + * @param sid The unique string created by Twilio to identify the Supporting Document resource. +*/ +func (c *DefaultApiService) DeleteSupportingDocument(sid string) (error) { + path := "/v2/RegulatoryCompliance/SupportingDocuments/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +FetchBundle Method for FetchBundle +Fetch a specific Bundle instance. + * @param sid The unique string that we created to identify the Bundle resource. +@return NumbersV2RegulatoryComplianceBundle +*/ +func (c *DefaultApiService) FetchBundle(sid string) (*NumbersV2RegulatoryComplianceBundle, error) { + path := "/v2/RegulatoryCompliance/Bundles/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NumbersV2RegulatoryComplianceBundle{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchEndUser Method for FetchEndUser +Fetch specific End User Instance. + * @param sid The unique string created by Twilio to identify the End User resource. +@return NumbersV2RegulatoryComplianceEndUser +*/ +func (c *DefaultApiService) FetchEndUser(sid string) (*NumbersV2RegulatoryComplianceEndUser, error) { + path := "/v2/RegulatoryCompliance/EndUsers/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NumbersV2RegulatoryComplianceEndUser{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchEndUserType Method for FetchEndUserType +Fetch a specific End-User Type Instance. + * @param sid The unique string that identifies the End-User Type resource. +@return NumbersV2RegulatoryComplianceEndUserType +*/ +func (c *DefaultApiService) FetchEndUserType(sid string) (*NumbersV2RegulatoryComplianceEndUserType, error) { + path := "/v2/RegulatoryCompliance/EndUserTypes/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NumbersV2RegulatoryComplianceEndUserType{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchEvaluation Method for FetchEvaluation +Fetch specific Evaluation Instance. + * @param bundleSid The unique string that we created to identify the Bundle resource. + * @param sid The unique string that identifies the Evaluation resource. +@return NumbersV2RegulatoryComplianceBundleEvaluation +*/ +func (c *DefaultApiService) FetchEvaluation(bundleSid string, sid string) (*NumbersV2RegulatoryComplianceBundleEvaluation, error) { + path := "/v2/RegulatoryCompliance/Bundles/{BundleSid}/Evaluations/{Sid}" + path = strings.Replace(path, "{"+"BundleSid"+"}", bundleSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NumbersV2RegulatoryComplianceBundleEvaluation{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchItemAssignment Method for FetchItemAssignment +Fetch specific Assigned Item Instance. + * @param bundleSid The unique string that we created to identify the Bundle resource. + * @param sid The unique string that we created to identify the Identity resource. +@return NumbersV2RegulatoryComplianceBundleItemAssignment +*/ +func (c *DefaultApiService) FetchItemAssignment(bundleSid string, sid string) (*NumbersV2RegulatoryComplianceBundleItemAssignment, error) { + path := "/v2/RegulatoryCompliance/Bundles/{BundleSid}/ItemAssignments/{Sid}" + path = strings.Replace(path, "{"+"BundleSid"+"}", bundleSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NumbersV2RegulatoryComplianceBundleItemAssignment{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchRegulation Method for FetchRegulation +Fetch specific Regulation Instance. + * @param sid The unique string that identifies the Regulation resource. +@return NumbersV2RegulatoryComplianceRegulation +*/ +func (c *DefaultApiService) FetchRegulation(sid string) (*NumbersV2RegulatoryComplianceRegulation, error) { + path := "/v2/RegulatoryCompliance/Regulations/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NumbersV2RegulatoryComplianceRegulation{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchSupportingDocument Method for FetchSupportingDocument +Fetch specific Supporting Document Instance. + * @param sid The unique string created by Twilio to identify the Supporting Document resource. +@return NumbersV2RegulatoryComplianceSupportingDocument +*/ +func (c *DefaultApiService) FetchSupportingDocument(sid string) (*NumbersV2RegulatoryComplianceSupportingDocument, error) { + path := "/v2/RegulatoryCompliance/SupportingDocuments/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NumbersV2RegulatoryComplianceSupportingDocument{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchSupportingDocumentType Method for FetchSupportingDocumentType +Fetch a specific Supporting Document Type Instance. + * @param sid The unique string that identifies the Supporting Document Type resource. +@return NumbersV2RegulatoryComplianceSupportingDocumentType +*/ +func (c *DefaultApiService) FetchSupportingDocumentType(sid string) (*NumbersV2RegulatoryComplianceSupportingDocumentType, error) { + path := "/v2/RegulatoryCompliance/SupportingDocumentTypes/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NumbersV2RegulatoryComplianceSupportingDocumentType{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListBundleParams Optional parameters for the method 'ListBundle' +type ListBundleParams struct { + Status *string `json:"Status,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + RegulationSid *string `json:"RegulationSid,omitempty"` + IsoCountry *string `json:"IsoCountry,omitempty"` + NumberType *string `json:"NumberType,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListBundle Method for ListBundle +Retrieve a list of all Bundles for an account. + * @param optional nil or *ListBundleOpts - Optional Parameters: + * @param "Status" (string) - The verification status of the Bundle resource. + * @param "FriendlyName" (string) - The string that you assigned to describe the resource. + * @param "RegulationSid" (string) - The unique string of a regulation that is associated to the Bundle resource. + * @param "IsoCountry" (string) - The ISO country code of the Bundle's phone number country ownership request. + * @param "NumberType" (string) - The type of phone number of the Bundle's ownership request. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return NumbersV2RegulatoryComplianceBundleReadResponse +*/ +func (c *DefaultApiService) ListBundle(params *ListBundleParams) (*NumbersV2RegulatoryComplianceBundleReadResponse, error) { + path := "/v2/RegulatoryCompliance/Bundles" + + data := url.Values{} + headers := 0 + + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.RegulationSid != nil { + data.Set("RegulationSid", *params.RegulationSid) + } + if params != nil && params.IsoCountry != nil { + data.Set("IsoCountry", *params.IsoCountry) + } + if params != nil && params.NumberType != nil { + data.Set("NumberType", *params.NumberType) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NumbersV2RegulatoryComplianceBundleReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListEndUserParams Optional parameters for the method 'ListEndUser' +type ListEndUserParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListEndUser Method for ListEndUser +Retrieve a list of all End User for an account. + * @param optional nil or *ListEndUserOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return NumbersV2RegulatoryComplianceEndUserReadResponse +*/ +func (c *DefaultApiService) ListEndUser(params *ListEndUserParams) (*NumbersV2RegulatoryComplianceEndUserReadResponse, error) { + path := "/v2/RegulatoryCompliance/EndUsers" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NumbersV2RegulatoryComplianceEndUserReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListEndUserTypeParams Optional parameters for the method 'ListEndUserType' +type ListEndUserTypeParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListEndUserType Method for ListEndUserType +Retrieve a list of all End-User Types. + * @param optional nil or *ListEndUserTypeOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return NumbersV2RegulatoryComplianceEndUserTypeReadResponse +*/ +func (c *DefaultApiService) ListEndUserType(params *ListEndUserTypeParams) (*NumbersV2RegulatoryComplianceEndUserTypeReadResponse, error) { + path := "/v2/RegulatoryCompliance/EndUserTypes" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NumbersV2RegulatoryComplianceEndUserTypeReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListEvaluationParams Optional parameters for the method 'ListEvaluation' +type ListEvaluationParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListEvaluation Method for ListEvaluation +Retrieve a list of Evaluations associated to the Bundle resource. + * @param bundleSid + * @param optional nil or *ListEvaluationOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return NumbersV2RegulatoryComplianceBundleEvaluationReadResponse +*/ +func (c *DefaultApiService) ListEvaluation(bundleSid string, params *ListEvaluationParams) (*NumbersV2RegulatoryComplianceBundleEvaluationReadResponse, error) { + path := "/v2/RegulatoryCompliance/Bundles/{BundleSid}/Evaluations" + path = strings.Replace(path, "{"+"BundleSid"+"}", bundleSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NumbersV2RegulatoryComplianceBundleEvaluationReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListItemAssignmentParams Optional parameters for the method 'ListItemAssignment' +type ListItemAssignmentParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListItemAssignment Method for ListItemAssignment +Retrieve a list of all Assigned Items for an account. + * @param bundleSid The unique string that we created to identify the Bundle resource. + * @param optional nil or *ListItemAssignmentOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse +*/ +func (c *DefaultApiService) ListItemAssignment(bundleSid string, params *ListItemAssignmentParams) (*NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse, error) { + path := "/v2/RegulatoryCompliance/Bundles/{BundleSid}/ItemAssignments" + path = strings.Replace(path, "{"+"BundleSid"+"}", bundleSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListRegulationParams Optional parameters for the method 'ListRegulation' +type ListRegulationParams struct { + EndUserType *string `json:"EndUserType,omitempty"` + IsoCountry *string `json:"IsoCountry,omitempty"` + NumberType *string `json:"NumberType,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListRegulation Method for ListRegulation +Retrieve a list of all Regulations. + * @param optional nil or *ListRegulationOpts - Optional Parameters: + * @param "EndUserType" (string) - The type of End User the regulation requires - can be `individual` or `business`. + * @param "IsoCountry" (string) - The ISO country code of the phone number's country. + * @param "NumberType" (string) - The type of phone number that the regulatory requiremnt is restricting. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return NumbersV2RegulatoryComplianceRegulationReadResponse +*/ +func (c *DefaultApiService) ListRegulation(params *ListRegulationParams) (*NumbersV2RegulatoryComplianceRegulationReadResponse, error) { + path := "/v2/RegulatoryCompliance/Regulations" + + data := url.Values{} + headers := 0 + + if params != nil && params.EndUserType != nil { + data.Set("EndUserType", *params.EndUserType) + } + if params != nil && params.IsoCountry != nil { + data.Set("IsoCountry", *params.IsoCountry) + } + if params != nil && params.NumberType != nil { + data.Set("NumberType", *params.NumberType) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NumbersV2RegulatoryComplianceRegulationReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListSupportingDocumentParams Optional parameters for the method 'ListSupportingDocument' +type ListSupportingDocumentParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListSupportingDocument Method for ListSupportingDocument +Retrieve a list of all Supporting Document for an account. + * @param optional nil or *ListSupportingDocumentOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return NumbersV2RegulatoryComplianceSupportingDocumentReadResponse +*/ +func (c *DefaultApiService) ListSupportingDocument(params *ListSupportingDocumentParams) (*NumbersV2RegulatoryComplianceSupportingDocumentReadResponse, error) { + path := "/v2/RegulatoryCompliance/SupportingDocuments" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NumbersV2RegulatoryComplianceSupportingDocumentReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListSupportingDocumentTypeParams Optional parameters for the method 'ListSupportingDocumentType' +type ListSupportingDocumentTypeParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListSupportingDocumentType Method for ListSupportingDocumentType +Retrieve a list of all Supporting Document Types. + * @param optional nil or *ListSupportingDocumentTypeOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse +*/ +func (c *DefaultApiService) ListSupportingDocumentType(params *ListSupportingDocumentTypeParams) (*NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse, error) { + path := "/v2/RegulatoryCompliance/SupportingDocumentTypes" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateBundleParams Optional parameters for the method 'UpdateBundle' +type UpdateBundleParams struct { + Email *string `json:"Email,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Status *string `json:"Status,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` +} + +/* +UpdateBundle Method for UpdateBundle +Updates a Bundle in an account. + * @param sid The unique string that we created to identify the Bundle resource. + * @param optional nil or *UpdateBundleOpts - Optional Parameters: + * @param "Email" (string) - The email address that will receive updates when the Bundle resource changes status. + * @param "FriendlyName" (string) - The string that you assigned to describe the resource. + * @param "Status" (string) - The verification status of the Bundle resource. + * @param "StatusCallback" (string) - The URL we call to inform your application of status changes. +@return NumbersV2RegulatoryComplianceBundle +*/ +func (c *DefaultApiService) UpdateBundle(sid string, params *UpdateBundleParams) (*NumbersV2RegulatoryComplianceBundle, error) { + path := "/v2/RegulatoryCompliance/Bundles/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Email != nil { + data.Set("Email", *params.Email) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NumbersV2RegulatoryComplianceBundle{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateEndUserParams Optional parameters for the method 'UpdateEndUser' +type UpdateEndUserParams struct { + Attributes *map[string]interface{} `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +UpdateEndUser Method for UpdateEndUser +Update an existing End User. + * @param sid The unique string created by Twilio to identify the End User resource. + * @param optional nil or *UpdateEndUserOpts - Optional Parameters: + * @param "Attributes" (map[string]interface{}) - The set of parameters that are the attributes of the End User resource which are derived End User Types. + * @param "FriendlyName" (string) - The string that you assigned to describe the resource. +@return NumbersV2RegulatoryComplianceEndUser +*/ +func (c *DefaultApiService) UpdateEndUser(sid string, params *UpdateEndUserParams) (*NumbersV2RegulatoryComplianceEndUser, error) { + path := "/v2/RegulatoryCompliance/EndUsers/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Attributes != nil { + v, err := json.Marshal(params.Attributes) + + if err != nil { + return nil, err + } + + data.Set("Attributes", string(v)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NumbersV2RegulatoryComplianceEndUser{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateSupportingDocumentParams Optional parameters for the method 'UpdateSupportingDocument' +type UpdateSupportingDocumentParams struct { + Attributes *map[string]interface{} `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +UpdateSupportingDocument Method for UpdateSupportingDocument +Update an existing Supporting Document. + * @param sid The unique string created by Twilio to identify the Supporting Document resource. + * @param optional nil or *UpdateSupportingDocumentOpts - Optional Parameters: + * @param "Attributes" (map[string]interface{}) - The set of parameters that are the attributes of the Supporting Document resource which are derived Supporting Document Types. + * @param "FriendlyName" (string) - The string that you assigned to describe the resource. +@return NumbersV2RegulatoryComplianceSupportingDocument +*/ +func (c *DefaultApiService) UpdateSupportingDocument(sid string, params *UpdateSupportingDocumentParams) (*NumbersV2RegulatoryComplianceSupportingDocument, error) { + path := "/v2/RegulatoryCompliance/SupportingDocuments/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Attributes != nil { + v, err := json.Marshal(params.Attributes) + + if err != nil { + return nil, err + } + + data.Set("Attributes", string(v)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NumbersV2RegulatoryComplianceSupportingDocument{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/numbers/v2/docs/CreateBundleRequest.md b/rest/numbers/v2/docs/CreateBundleRequest.md new file mode 100644 index 000000000..649ed5e82 --- /dev/null +++ b/rest/numbers/v2/docs/CreateBundleRequest.md @@ -0,0 +1,17 @@ +# CreateBundleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | **string** | The email address that will receive updates when the Bundle resource changes status. | +**EndUserType** | **string** | The type of End User of the Bundle resource. | [optional] +**FriendlyName** | **string** | The string that you assigned to describe the resource. | +**IsoCountry** | **string** | The ISO country code of the Bundle's phone number country ownership request. | [optional] +**NumberType** | **string** | The type of phone number of the Bundle's ownership request. | [optional] +**RegulationSid** | **string** | The unique string of a regulation that is associated to the Bundle resource. | [optional] +**StatusCallback** | **string** | The URL we call to inform your application of status changes. | [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/rest/numbers/v2/docs/CreateEndUserRequest.md b/rest/numbers/v2/docs/CreateEndUserRequest.md new file mode 100644 index 000000000..7fa3fe0c0 --- /dev/null +++ b/rest/numbers/v2/docs/CreateEndUserRequest.md @@ -0,0 +1,13 @@ +# CreateEndUserRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | [**map[string]interface{}**](.md) | The set of parameters that are the attributes of the End User resource which are derived End User Types. | [optional] +**FriendlyName** | **string** | The string that you assigned to describe the resource. | +**Type** | **string** | The type of end user of the Bundle resource - can be `individual` or `business`. | + +[[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/rest/numbers/v2/docs/CreateItemAssignmentRequest.md b/rest/numbers/v2/docs/CreateItemAssignmentRequest.md new file mode 100644 index 000000000..decdc2aea --- /dev/null +++ b/rest/numbers/v2/docs/CreateItemAssignmentRequest.md @@ -0,0 +1,11 @@ +# CreateItemAssignmentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ObjectSid** | **string** | The SID of an object bag that holds information of the different items. | + +[[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/rest/numbers/v2/docs/CreateSupportingDocumentRequest.md b/rest/numbers/v2/docs/CreateSupportingDocumentRequest.md new file mode 100644 index 000000000..4044a7b13 --- /dev/null +++ b/rest/numbers/v2/docs/CreateSupportingDocumentRequest.md @@ -0,0 +1,13 @@ +# CreateSupportingDocumentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | [**map[string]interface{}**](.md) | The set of parameters that are the attributes of the Supporting Documents resource which are derived Supporting Document Types. | [optional] +**FriendlyName** | **string** | The string that you assigned to describe the resource. | +**Type** | **string** | The type of the Supporting Document. | + +[[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/rest/numbers/v2/docs/DefaultApi.md b/rest/numbers/v2/docs/DefaultApi.md new file mode 100644 index 000000000..904c923f4 --- /dev/null +++ b/rest/numbers/v2/docs/DefaultApi.md @@ -0,0 +1,1159 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateBundle**](DefaultApi.md#CreateBundle) | **Post** /v2/RegulatoryCompliance/Bundles | +[**CreateEndUser**](DefaultApi.md#CreateEndUser) | **Post** /v2/RegulatoryCompliance/EndUsers | +[**CreateEvaluation**](DefaultApi.md#CreateEvaluation) | **Post** /v2/RegulatoryCompliance/Bundles/{BundleSid}/Evaluations | +[**CreateItemAssignment**](DefaultApi.md#CreateItemAssignment) | **Post** /v2/RegulatoryCompliance/Bundles/{BundleSid}/ItemAssignments | +[**CreateSupportingDocument**](DefaultApi.md#CreateSupportingDocument) | **Post** /v2/RegulatoryCompliance/SupportingDocuments | +[**DeleteBundle**](DefaultApi.md#DeleteBundle) | **Delete** /v2/RegulatoryCompliance/Bundles/{Sid} | +[**DeleteEndUser**](DefaultApi.md#DeleteEndUser) | **Delete** /v2/RegulatoryCompliance/EndUsers/{Sid} | +[**DeleteItemAssignment**](DefaultApi.md#DeleteItemAssignment) | **Delete** /v2/RegulatoryCompliance/Bundles/{BundleSid}/ItemAssignments/{Sid} | +[**DeleteSupportingDocument**](DefaultApi.md#DeleteSupportingDocument) | **Delete** /v2/RegulatoryCompliance/SupportingDocuments/{Sid} | +[**FetchBundle**](DefaultApi.md#FetchBundle) | **Get** /v2/RegulatoryCompliance/Bundles/{Sid} | +[**FetchEndUser**](DefaultApi.md#FetchEndUser) | **Get** /v2/RegulatoryCompliance/EndUsers/{Sid} | +[**FetchEndUserType**](DefaultApi.md#FetchEndUserType) | **Get** /v2/RegulatoryCompliance/EndUserTypes/{Sid} | +[**FetchEvaluation**](DefaultApi.md#FetchEvaluation) | **Get** /v2/RegulatoryCompliance/Bundles/{BundleSid}/Evaluations/{Sid} | +[**FetchItemAssignment**](DefaultApi.md#FetchItemAssignment) | **Get** /v2/RegulatoryCompliance/Bundles/{BundleSid}/ItemAssignments/{Sid} | +[**FetchRegulation**](DefaultApi.md#FetchRegulation) | **Get** /v2/RegulatoryCompliance/Regulations/{Sid} | +[**FetchSupportingDocument**](DefaultApi.md#FetchSupportingDocument) | **Get** /v2/RegulatoryCompliance/SupportingDocuments/{Sid} | +[**FetchSupportingDocumentType**](DefaultApi.md#FetchSupportingDocumentType) | **Get** /v2/RegulatoryCompliance/SupportingDocumentTypes/{Sid} | +[**ListBundle**](DefaultApi.md#ListBundle) | **Get** /v2/RegulatoryCompliance/Bundles | +[**ListEndUser**](DefaultApi.md#ListEndUser) | **Get** /v2/RegulatoryCompliance/EndUsers | +[**ListEndUserType**](DefaultApi.md#ListEndUserType) | **Get** /v2/RegulatoryCompliance/EndUserTypes | +[**ListEvaluation**](DefaultApi.md#ListEvaluation) | **Get** /v2/RegulatoryCompliance/Bundles/{BundleSid}/Evaluations | +[**ListItemAssignment**](DefaultApi.md#ListItemAssignment) | **Get** /v2/RegulatoryCompliance/Bundles/{BundleSid}/ItemAssignments | +[**ListRegulation**](DefaultApi.md#ListRegulation) | **Get** /v2/RegulatoryCompliance/Regulations | +[**ListSupportingDocument**](DefaultApi.md#ListSupportingDocument) | **Get** /v2/RegulatoryCompliance/SupportingDocuments | +[**ListSupportingDocumentType**](DefaultApi.md#ListSupportingDocumentType) | **Get** /v2/RegulatoryCompliance/SupportingDocumentTypes | +[**UpdateBundle**](DefaultApi.md#UpdateBundle) | **Post** /v2/RegulatoryCompliance/Bundles/{Sid} | +[**UpdateEndUser**](DefaultApi.md#UpdateEndUser) | **Post** /v2/RegulatoryCompliance/EndUsers/{Sid} | +[**UpdateSupportingDocument**](DefaultApi.md#UpdateSupportingDocument) | **Post** /v2/RegulatoryCompliance/SupportingDocuments/{Sid} | + + + +## CreateBundle + +> NumbersV2RegulatoryComplianceBundle CreateBundle(ctx, optional) + + + +Create a new Bundle. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateBundleOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateBundleOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **email** | **optional.String**| The email address that will receive updates when the Bundle resource changes status. | + **endUserType** | **optional.String**| The type of End User of the Bundle resource. | + **friendlyName** | **optional.String**| The string that you assigned to describe the resource. | + **isoCountry** | **optional.String**| The ISO country code of the Bundle's phone number country ownership request. | + **numberType** | **optional.String**| The type of phone number of the Bundle's ownership request. | + **regulationSid** | **optional.String**| The unique string of a regulation that is associated to the Bundle resource. | + **statusCallback** | **optional.String**| The URL we call to inform your application of status changes. | + +### Return type + +[**NumbersV2RegulatoryComplianceBundle**](numbers.v2.regulatory_compliance.bundle.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) + + +## CreateEndUser + +> NumbersV2RegulatoryComplianceEndUser CreateEndUser(ctx, optional) + + + +Create a new End User. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateEndUserOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateEndUserOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **attributes** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The set of parameters that are the attributes of the End User resource which are derived End User Types. | + **friendlyName** | **optional.String**| The string that you assigned to describe the resource. | + **type_** | **optional.String**| The type of end user of the Bundle resource - can be `individual` or `business`. | + +### Return type + +[**NumbersV2RegulatoryComplianceEndUser**](numbers.v2.regulatory_compliance.end_user.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) + + +## CreateEvaluation + +> NumbersV2RegulatoryComplianceBundleEvaluation CreateEvaluation(ctx, bundleSid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**bundleSid** | **string**| | + +### Return type + +[**NumbersV2RegulatoryComplianceBundleEvaluation**](numbers.v2.regulatory_compliance.bundle.evaluation.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) + + +## CreateItemAssignment + +> NumbersV2RegulatoryComplianceBundleItemAssignment CreateItemAssignment(ctx, bundleSid, optional) + + + +Create a new Assigned Item. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**bundleSid** | **string**| The unique string that we created to identify the Bundle resource. | + **optional** | ***CreateItemAssignmentOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateItemAssignmentOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **objectSid** | **optional.String**| The SID of an object bag that holds information of the different items. | + +### Return type + +[**NumbersV2RegulatoryComplianceBundleItemAssignment**](numbers.v2.regulatory_compliance.bundle.item_assignment.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) + + +## CreateSupportingDocument + +> NumbersV2RegulatoryComplianceSupportingDocument CreateSupportingDocument(ctx, optional) + + + +Create a new Supporting Document. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateSupportingDocumentOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateSupportingDocumentOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **attributes** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The set of parameters that are the attributes of the Supporting Documents resource which are derived Supporting Document Types. | + **friendlyName** | **optional.String**| The string that you assigned to describe the resource. | + **type_** | **optional.String**| The type of the Supporting Document. | + +### Return type + +[**NumbersV2RegulatoryComplianceSupportingDocument**](numbers.v2.regulatory_compliance.supporting_document.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) + + +## DeleteBundle + +> DeleteBundle(ctx, sid) + + + +Delete a specific Bundle. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The unique string that we created to identify the Bundle resource. | + +### 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) + + +## DeleteEndUser + +> DeleteEndUser(ctx, sid) + + + +Delete a specific End User. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The unique string created by Twilio to identify the End User resource. | + +### 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) + + +## DeleteItemAssignment + +> DeleteItemAssignment(ctx, bundleSid, sid) + + + +Remove an Assignment Item Instance. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**bundleSid** | **string**| The unique string that we created to identify the Bundle resource. | +**sid** | **string**| The unique string that we created to identify the Identity resource. | + +### 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) + + +## DeleteSupportingDocument + +> DeleteSupportingDocument(ctx, sid) + + + +Delete a specific Supporting Document. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The unique string created by Twilio to identify the Supporting Document resource. | + +### 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) + + +## FetchBundle + +> NumbersV2RegulatoryComplianceBundle FetchBundle(ctx, sid) + + + +Fetch a specific Bundle instance. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The unique string that we created to identify the Bundle resource. | + +### Return type + +[**NumbersV2RegulatoryComplianceBundle**](numbers.v2.regulatory_compliance.bundle.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) + + +## FetchEndUser + +> NumbersV2RegulatoryComplianceEndUser FetchEndUser(ctx, sid) + + + +Fetch specific End User Instance. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The unique string created by Twilio to identify the End User resource. | + +### Return type + +[**NumbersV2RegulatoryComplianceEndUser**](numbers.v2.regulatory_compliance.end_user.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) + + +## FetchEndUserType + +> NumbersV2RegulatoryComplianceEndUserType FetchEndUserType(ctx, sid) + + + +Fetch a specific End-User Type Instance. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The unique string that identifies the End-User Type resource. | + +### Return type + +[**NumbersV2RegulatoryComplianceEndUserType**](numbers.v2.regulatory_compliance.end_user_type.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) + + +## FetchEvaluation + +> NumbersV2RegulatoryComplianceBundleEvaluation FetchEvaluation(ctx, bundleSid, sid) + + + +Fetch specific Evaluation Instance. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**bundleSid** | **string**| The unique string that we created to identify the Bundle resource. | +**sid** | **string**| The unique string that identifies the Evaluation resource. | + +### Return type + +[**NumbersV2RegulatoryComplianceBundleEvaluation**](numbers.v2.regulatory_compliance.bundle.evaluation.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) + + +## FetchItemAssignment + +> NumbersV2RegulatoryComplianceBundleItemAssignment FetchItemAssignment(ctx, bundleSid, sid) + + + +Fetch specific Assigned Item Instance. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**bundleSid** | **string**| The unique string that we created to identify the Bundle resource. | +**sid** | **string**| The unique string that we created to identify the Identity resource. | + +### Return type + +[**NumbersV2RegulatoryComplianceBundleItemAssignment**](numbers.v2.regulatory_compliance.bundle.item_assignment.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) + + +## FetchRegulation + +> NumbersV2RegulatoryComplianceRegulation FetchRegulation(ctx, sid) + + + +Fetch specific Regulation Instance. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The unique string that identifies the Regulation resource. | + +### Return type + +[**NumbersV2RegulatoryComplianceRegulation**](numbers.v2.regulatory_compliance.regulation.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) + + +## FetchSupportingDocument + +> NumbersV2RegulatoryComplianceSupportingDocument FetchSupportingDocument(ctx, sid) + + + +Fetch specific Supporting Document Instance. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The unique string created by Twilio to identify the Supporting Document resource. | + +### Return type + +[**NumbersV2RegulatoryComplianceSupportingDocument**](numbers.v2.regulatory_compliance.supporting_document.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) + + +## FetchSupportingDocumentType + +> NumbersV2RegulatoryComplianceSupportingDocumentType FetchSupportingDocumentType(ctx, sid) + + + +Fetch a specific Supporting Document Type Instance. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The unique string that identifies the Supporting Document Type resource. | + +### Return type + +[**NumbersV2RegulatoryComplianceSupportingDocumentType**](numbers.v2.regulatory_compliance.supporting_document_type.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) + + +## ListBundle + +> NumbersV2RegulatoryComplianceBundleReadResponse ListBundle(ctx, optional) + + + +Retrieve a list of all Bundles for an account. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListBundleOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListBundleOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **status** | **optional.String**| The verification status of the Bundle resource. | + **friendlyName** | **optional.String**| The string that you assigned to describe the resource. | + **regulationSid** | **optional.String**| The unique string of a regulation that is associated to the Bundle resource. | + **isoCountry** | **optional.String**| The ISO country code of the Bundle's phone number country ownership request. | + **numberType** | **optional.String**| The type of phone number of the Bundle's ownership request. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**NumbersV2RegulatoryComplianceBundleReadResponse**](numbers_v2_regulatory_compliance_bundleReadResponse.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) + + +## ListEndUser + +> NumbersV2RegulatoryComplianceEndUserReadResponse ListEndUser(ctx, optional) + + + +Retrieve a list of all End User for an account. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListEndUserOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListEndUserOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**NumbersV2RegulatoryComplianceEndUserReadResponse**](numbers_v2_regulatory_compliance_end_userReadResponse.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) + + +## ListEndUserType + +> NumbersV2RegulatoryComplianceEndUserTypeReadResponse ListEndUserType(ctx, optional) + + + +Retrieve a list of all End-User Types. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListEndUserTypeOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListEndUserTypeOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**NumbersV2RegulatoryComplianceEndUserTypeReadResponse**](numbers_v2_regulatory_compliance_end_user_typeReadResponse.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) + + +## ListEvaluation + +> NumbersV2RegulatoryComplianceBundleEvaluationReadResponse ListEvaluation(ctx, bundleSid, optional) + + + +Retrieve a list of Evaluations associated to the Bundle resource. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**bundleSid** | **string**| | + **optional** | ***ListEvaluationOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListEvaluationOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**NumbersV2RegulatoryComplianceBundleEvaluationReadResponse**](numbers_v2_regulatory_compliance_bundle_evaluationReadResponse.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) + + +## ListItemAssignment + +> NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse ListItemAssignment(ctx, bundleSid, optional) + + + +Retrieve a list of all Assigned Items for an account. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**bundleSid** | **string**| The unique string that we created to identify the Bundle resource. | + **optional** | ***ListItemAssignmentOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListItemAssignmentOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse**](numbers_v2_regulatory_compliance_bundle_item_assignmentReadResponse.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) + + +## ListRegulation + +> NumbersV2RegulatoryComplianceRegulationReadResponse ListRegulation(ctx, optional) + + + +Retrieve a list of all Regulations. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListRegulationOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListRegulationOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **endUserType** | **optional.String**| The type of End User the regulation requires - can be `individual` or `business`. | + **isoCountry** | **optional.String**| The ISO country code of the phone number's country. | + **numberType** | **optional.String**| The type of phone number that the regulatory requiremnt is restricting. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**NumbersV2RegulatoryComplianceRegulationReadResponse**](numbers_v2_regulatory_compliance_regulationReadResponse.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) + + +## ListSupportingDocument + +> NumbersV2RegulatoryComplianceSupportingDocumentReadResponse ListSupportingDocument(ctx, optional) + + + +Retrieve a list of all Supporting Document for an account. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListSupportingDocumentOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListSupportingDocumentOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**NumbersV2RegulatoryComplianceSupportingDocumentReadResponse**](numbers_v2_regulatory_compliance_supporting_documentReadResponse.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) + + +## ListSupportingDocumentType + +> NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse ListSupportingDocumentType(ctx, optional) + + + +Retrieve a list of all Supporting Document Types. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListSupportingDocumentTypeOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListSupportingDocumentTypeOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse**](numbers_v2_regulatory_compliance_supporting_document_typeReadResponse.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) + + +## UpdateBundle + +> NumbersV2RegulatoryComplianceBundle UpdateBundle(ctx, sid, optional) + + + +Updates a Bundle in an account. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The unique string that we created to identify the Bundle resource. | + **optional** | ***UpdateBundleOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateBundleOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **email** | **optional.String**| The email address that will receive updates when the Bundle resource changes status. | + **friendlyName** | **optional.String**| The string that you assigned to describe the resource. | + **status** | **optional.String**| The verification status of the Bundle resource. | + **statusCallback** | **optional.String**| The URL we call to inform your application of status changes. | + +### Return type + +[**NumbersV2RegulatoryComplianceBundle**](numbers.v2.regulatory_compliance.bundle.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) + + +## UpdateEndUser + +> NumbersV2RegulatoryComplianceEndUser UpdateEndUser(ctx, sid, optional) + + + +Update an existing End User. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The unique string created by Twilio to identify the End User resource. | + **optional** | ***UpdateEndUserOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateEndUserOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **attributes** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The set of parameters that are the attributes of the End User resource which are derived End User Types. | + **friendlyName** | **optional.String**| The string that you assigned to describe the resource. | + +### Return type + +[**NumbersV2RegulatoryComplianceEndUser**](numbers.v2.regulatory_compliance.end_user.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) + + +## UpdateSupportingDocument + +> NumbersV2RegulatoryComplianceSupportingDocument UpdateSupportingDocument(ctx, sid, optional) + + + +Update an existing Supporting Document. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The unique string created by Twilio to identify the Supporting Document resource. | + **optional** | ***UpdateSupportingDocumentOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateSupportingDocumentOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **attributes** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The set of parameters that are the attributes of the Supporting Document resource which are derived Supporting Document Types. | + **friendlyName** | **optional.String**| The string that you assigned to describe the resource. | + +### Return type + +[**NumbersV2RegulatoryComplianceSupportingDocument**](numbers.v2.regulatory_compliance.supporting_document.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/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundle.md b/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundle.md new file mode 100644 index 000000000..38997d065 --- /dev/null +++ b/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundle.md @@ -0,0 +1,22 @@ +# NumbersV2RegulatoryComplianceBundle + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Email** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**RegulationSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Status** | **string** | | [optional] +**StatusCallback** | **string** | | [optional] +**Url** | **string** | | [optional] +**ValidUntil** | [**time.Time**](time.Time.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/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleEvaluation.md b/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleEvaluation.md new file mode 100644 index 000000000..cb1a0c009 --- /dev/null +++ b/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleEvaluation.md @@ -0,0 +1,18 @@ +# NumbersV2RegulatoryComplianceBundleEvaluation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**BundleSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**RegulationSid** | **string** | | [optional] +**Results** | **[]map[string]interface{}** | | [optional] +**Sid** | **string** | | [optional] +**Status** | **string** | | [optional] +**Url** | **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/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleEvaluationReadResponse.md b/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleEvaluationReadResponse.md new file mode 100644 index 000000000..eea7acc50 --- /dev/null +++ b/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleEvaluationReadResponse.md @@ -0,0 +1,12 @@ +# NumbersV2RegulatoryComplianceBundleEvaluationReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**NumbersV2RegulatoryComplianceBundleReadResponseMeta**](numbers_v2_regulatory_compliance_bundleReadResponse_meta.md) | | [optional] +**Results** | [**[]NumbersV2RegulatoryComplianceBundleEvaluation**](numbers.v2.regulatory_compliance.bundle.evaluation.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/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleItemAssignment.md b/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleItemAssignment.md new file mode 100644 index 000000000..2203ad6f2 --- /dev/null +++ b/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleItemAssignment.md @@ -0,0 +1,16 @@ +# NumbersV2RegulatoryComplianceBundleItemAssignment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**BundleSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**ObjectSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse.md b/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse.md new file mode 100644 index 000000000..2a2ecf608 --- /dev/null +++ b/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse.md @@ -0,0 +1,12 @@ +# NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**NumbersV2RegulatoryComplianceBundleReadResponseMeta**](numbers_v2_regulatory_compliance_bundleReadResponse_meta.md) | | [optional] +**Results** | [**[]NumbersV2RegulatoryComplianceBundleItemAssignment**](numbers.v2.regulatory_compliance.bundle.item_assignment.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/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleReadResponse.md b/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleReadResponse.md new file mode 100644 index 000000000..d220837b8 --- /dev/null +++ b/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleReadResponse.md @@ -0,0 +1,12 @@ +# NumbersV2RegulatoryComplianceBundleReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**NumbersV2RegulatoryComplianceBundleReadResponseMeta**](numbers_v2_regulatory_compliance_bundleReadResponse_meta.md) | | [optional] +**Results** | [**[]NumbersV2RegulatoryComplianceBundle**](numbers.v2.regulatory_compliance.bundle.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/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleReadResponseMeta.md b/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleReadResponseMeta.md new file mode 100644 index 000000000..725c4226a --- /dev/null +++ b/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleReadResponseMeta.md @@ -0,0 +1,17 @@ +# NumbersV2RegulatoryComplianceBundleReadResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceEndUser.md b/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceEndUser.md new file mode 100644 index 000000000..65f116562 --- /dev/null +++ b/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceEndUser.md @@ -0,0 +1,18 @@ +# NumbersV2RegulatoryComplianceEndUser + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Attributes** | [**map[string]interface{}**](.md) | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Type** | **string** | | [optional] +**Url** | **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/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceEndUserReadResponse.md b/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceEndUserReadResponse.md new file mode 100644 index 000000000..4b5d15999 --- /dev/null +++ b/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceEndUserReadResponse.md @@ -0,0 +1,12 @@ +# NumbersV2RegulatoryComplianceEndUserReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**NumbersV2RegulatoryComplianceBundleReadResponseMeta**](numbers_v2_regulatory_compliance_bundleReadResponse_meta.md) | | [optional] +**Results** | [**[]NumbersV2RegulatoryComplianceEndUser**](numbers.v2.regulatory_compliance.end_user.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/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceEndUserType.md b/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceEndUserType.md new file mode 100644 index 000000000..85b76e325 --- /dev/null +++ b/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceEndUserType.md @@ -0,0 +1,15 @@ +# NumbersV2RegulatoryComplianceEndUserType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Fields** | **[]map[string]interface{}** | | [optional] +**FriendlyName** | **string** | | [optional] +**MachineName** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceEndUserTypeReadResponse.md b/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceEndUserTypeReadResponse.md new file mode 100644 index 000000000..2dc7e574e --- /dev/null +++ b/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceEndUserTypeReadResponse.md @@ -0,0 +1,12 @@ +# NumbersV2RegulatoryComplianceEndUserTypeReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EndUserTypes** | [**[]NumbersV2RegulatoryComplianceEndUserType**](numbers.v2.regulatory_compliance.end_user_type.md) | | [optional] +**Meta** | [**NumbersV2RegulatoryComplianceBundleReadResponseMeta**](numbers_v2_regulatory_compliance_bundleReadResponse_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/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceRegulation.md b/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceRegulation.md new file mode 100644 index 000000000..1d5298c68 --- /dev/null +++ b/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceRegulation.md @@ -0,0 +1,17 @@ +# NumbersV2RegulatoryComplianceRegulation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EndUserType** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**IsoCountry** | **string** | | [optional] +**NumberType** | **string** | | [optional] +**Requirements** | [**map[string]interface{}**](.md) | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceRegulationReadResponse.md b/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceRegulationReadResponse.md new file mode 100644 index 000000000..3f3e1df16 --- /dev/null +++ b/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceRegulationReadResponse.md @@ -0,0 +1,12 @@ +# NumbersV2RegulatoryComplianceRegulationReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**NumbersV2RegulatoryComplianceBundleReadResponseMeta**](numbers_v2_regulatory_compliance_bundleReadResponse_meta.md) | | [optional] +**Results** | [**[]NumbersV2RegulatoryComplianceRegulation**](numbers.v2.regulatory_compliance.regulation.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/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceSupportingDocument.md b/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceSupportingDocument.md new file mode 100644 index 000000000..a5588a78c --- /dev/null +++ b/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceSupportingDocument.md @@ -0,0 +1,20 @@ +# NumbersV2RegulatoryComplianceSupportingDocument + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Attributes** | [**map[string]interface{}**](.md) | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**MimeType** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Status** | **string** | | [optional] +**Type** | **string** | | [optional] +**Url** | **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/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceSupportingDocumentReadResponse.md b/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceSupportingDocumentReadResponse.md new file mode 100644 index 000000000..d81d43dd8 --- /dev/null +++ b/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceSupportingDocumentReadResponse.md @@ -0,0 +1,12 @@ +# NumbersV2RegulatoryComplianceSupportingDocumentReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**NumbersV2RegulatoryComplianceBundleReadResponseMeta**](numbers_v2_regulatory_compliance_bundleReadResponse_meta.md) | | [optional] +**Results** | [**[]NumbersV2RegulatoryComplianceSupportingDocument**](numbers.v2.regulatory_compliance.supporting_document.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/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceSupportingDocumentType.md b/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceSupportingDocumentType.md new file mode 100644 index 000000000..0aec637df --- /dev/null +++ b/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceSupportingDocumentType.md @@ -0,0 +1,15 @@ +# NumbersV2RegulatoryComplianceSupportingDocumentType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Fields** | **[]map[string]interface{}** | | [optional] +**FriendlyName** | **string** | | [optional] +**MachineName** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse.md b/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse.md new file mode 100644 index 000000000..c5f5c6539 --- /dev/null +++ b/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse.md @@ -0,0 +1,12 @@ +# NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**NumbersV2RegulatoryComplianceBundleReadResponseMeta**](numbers_v2_regulatory_compliance_bundleReadResponse_meta.md) | | [optional] +**SupportingDocumentTypes** | [**[]NumbersV2RegulatoryComplianceSupportingDocumentType**](numbers.v2.regulatory_compliance.supporting_document_type.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/rest/numbers/v2/docs/UpdateBundleRequest.md b/rest/numbers/v2/docs/UpdateBundleRequest.md new file mode 100644 index 000000000..8e2397a1f --- /dev/null +++ b/rest/numbers/v2/docs/UpdateBundleRequest.md @@ -0,0 +1,14 @@ +# UpdateBundleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | **string** | The email address that will receive updates when the Bundle resource changes status. | [optional] +**FriendlyName** | **string** | The string that you assigned to describe the resource. | [optional] +**Status** | **string** | The verification status of the Bundle resource. | [optional] +**StatusCallback** | **string** | The URL we call to inform your application of status changes. | [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/rest/numbers/v2/docs/UpdateEndUserRequest.md b/rest/numbers/v2/docs/UpdateEndUserRequest.md new file mode 100644 index 000000000..e91f8bfd9 --- /dev/null +++ b/rest/numbers/v2/docs/UpdateEndUserRequest.md @@ -0,0 +1,12 @@ +# UpdateEndUserRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | [**map[string]interface{}**](.md) | The set of parameters that are the attributes of the End User resource which are derived End User Types. | [optional] +**FriendlyName** | **string** | The string that you assigned to describe the 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/rest/numbers/v2/docs/UpdateSupportingDocumentRequest.md b/rest/numbers/v2/docs/UpdateSupportingDocumentRequest.md new file mode 100644 index 000000000..2ec9c4e97 --- /dev/null +++ b/rest/numbers/v2/docs/UpdateSupportingDocumentRequest.md @@ -0,0 +1,12 @@ +# UpdateSupportingDocumentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | [**map[string]interface{}**](.md) | The set of parameters that are the attributes of the Supporting Document resource which are derived Supporting Document Types. | [optional] +**FriendlyName** | **string** | The string that you assigned to describe the 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/rest/numbers/v2/model_create_bundle_request.go b/rest/numbers/v2/model_create_bundle_request.go new file mode 100644 index 000000000..616a6987f --- /dev/null +++ b/rest/numbers/v2/model_create_bundle_request.go @@ -0,0 +1,28 @@ +/* + * Twilio - Numbers + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateBundleRequest struct for CreateBundleRequest +type CreateBundleRequest struct { + // The email address that will receive updates when the Bundle resource changes status. + Email string `json:"Email"` + // The type of End User of the Bundle resource. + EndUserType string `json:"EndUserType,omitempty"` + // The string that you assigned to describe the resource. + FriendlyName string `json:"FriendlyName"` + // The ISO country code of the Bundle's phone number country ownership request. + IsoCountry string `json:"IsoCountry,omitempty"` + // The type of phone number of the Bundle's ownership request. + NumberType string `json:"NumberType,omitempty"` + // The unique string of a regulation that is associated to the Bundle resource. + RegulationSid string `json:"RegulationSid,omitempty"` + // The URL we call to inform your application of status changes. + StatusCallback string `json:"StatusCallback,omitempty"` +} diff --git a/rest/numbers/v2/model_create_end_user_request.go b/rest/numbers/v2/model_create_end_user_request.go new file mode 100644 index 000000000..a390a778b --- /dev/null +++ b/rest/numbers/v2/model_create_end_user_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Numbers + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateEndUserRequest struct for CreateEndUserRequest +type CreateEndUserRequest struct { + // The set of parameters that are the attributes of the End User resource which are derived End User Types. + Attributes map[string]interface{} `json:"Attributes,omitempty"` + // The string that you assigned to describe the resource. + FriendlyName string `json:"FriendlyName"` + // The type of end user of the Bundle resource - can be `individual` or `business`. + Type string `json:"Type"` +} diff --git a/rest/numbers/v2/model_create_item_assignment_request.go b/rest/numbers/v2/model_create_item_assignment_request.go new file mode 100644 index 000000000..bb457fafb --- /dev/null +++ b/rest/numbers/v2/model_create_item_assignment_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Numbers + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateItemAssignmentRequest struct for CreateItemAssignmentRequest +type CreateItemAssignmentRequest struct { + // The SID of an object bag that holds information of the different items. + ObjectSid string `json:"ObjectSid"` +} diff --git a/rest/numbers/v2/model_create_supporting_document_request.go b/rest/numbers/v2/model_create_supporting_document_request.go new file mode 100644 index 000000000..d9c9784df --- /dev/null +++ b/rest/numbers/v2/model_create_supporting_document_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Numbers + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateSupportingDocumentRequest struct for CreateSupportingDocumentRequest +type CreateSupportingDocumentRequest struct { + // The set of parameters that are the attributes of the Supporting Documents resource which are derived Supporting Document Types. + Attributes map[string]interface{} `json:"Attributes,omitempty"` + // The string that you assigned to describe the resource. + FriendlyName string `json:"FriendlyName"` + // The type of the Supporting Document. + Type string `json:"Type"` +} diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle.go new file mode 100644 index 000000000..bb7423008 --- /dev/null +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle.go @@ -0,0 +1,29 @@ +/* + * Twilio - Numbers + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// NumbersV2RegulatoryComplianceBundle struct for NumbersV2RegulatoryComplianceBundle +type NumbersV2RegulatoryComplianceBundle struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Email string `json:"email,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + RegulationSid string `json:"regulation_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Status string `json:"status,omitempty"` + StatusCallback string `json:"status_callback,omitempty"` + Url string `json:"url,omitempty"` + ValidUntil time.Time `json:"valid_until,omitempty"` +} diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_evaluation.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_evaluation.go new file mode 100644 index 000000000..d2b88feec --- /dev/null +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_evaluation.go @@ -0,0 +1,25 @@ +/* + * Twilio - Numbers + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// NumbersV2RegulatoryComplianceBundleEvaluation struct for NumbersV2RegulatoryComplianceBundleEvaluation +type NumbersV2RegulatoryComplianceBundleEvaluation struct { + AccountSid string `json:"account_sid,omitempty"` + BundleSid string `json:"bundle_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + RegulationSid string `json:"regulation_sid,omitempty"` + Results []map[string]interface{} `json:"results,omitempty"` + Sid string `json:"sid,omitempty"` + Status string `json:"status,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_evaluation_read_response.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_evaluation_read_response.go new file mode 100644 index 000000000..75f06c10c --- /dev/null +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_evaluation_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Numbers + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// NumbersV2RegulatoryComplianceBundleEvaluationReadResponse struct for NumbersV2RegulatoryComplianceBundleEvaluationReadResponse +type NumbersV2RegulatoryComplianceBundleEvaluationReadResponse struct { + Meta NumbersV2RegulatoryComplianceBundleReadResponseMeta `json:"meta,omitempty"` + Results []NumbersV2RegulatoryComplianceBundleEvaluation `json:"results,omitempty"` +} diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_item_assignment.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_item_assignment.go new file mode 100644 index 000000000..1d657f434 --- /dev/null +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_item_assignment.go @@ -0,0 +1,23 @@ +/* + * Twilio - Numbers + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// NumbersV2RegulatoryComplianceBundleItemAssignment struct for NumbersV2RegulatoryComplianceBundleItemAssignment +type NumbersV2RegulatoryComplianceBundleItemAssignment struct { + AccountSid string `json:"account_sid,omitempty"` + BundleSid string `json:"bundle_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + ObjectSid string `json:"object_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_item_assignment_read_response.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_item_assignment_read_response.go new file mode 100644 index 000000000..1b611be6a --- /dev/null +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_item_assignment_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Numbers + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse struct for NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse +type NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse struct { + Meta NumbersV2RegulatoryComplianceBundleReadResponseMeta `json:"meta,omitempty"` + Results []NumbersV2RegulatoryComplianceBundleItemAssignment `json:"results,omitempty"` +} diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_read_response.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_read_response.go new file mode 100644 index 000000000..4556ccab9 --- /dev/null +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Numbers + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// NumbersV2RegulatoryComplianceBundleReadResponse struct for NumbersV2RegulatoryComplianceBundleReadResponse +type NumbersV2RegulatoryComplianceBundleReadResponse struct { + Meta NumbersV2RegulatoryComplianceBundleReadResponseMeta `json:"meta,omitempty"` + Results []NumbersV2RegulatoryComplianceBundle `json:"results,omitempty"` +} diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_read_response_meta.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_read_response_meta.go new file mode 100644 index 000000000..7d35a8776 --- /dev/null +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_read_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Numbers + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// NumbersV2RegulatoryComplianceBundleReadResponseMeta struct for NumbersV2RegulatoryComplianceBundleReadResponseMeta +type NumbersV2RegulatoryComplianceBundleReadResponseMeta struct { + FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` + NextPageUrl string `json:"next_page_url,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUrl string `json:"previous_page_url,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user.go new file mode 100644 index 000000000..46cb40b46 --- /dev/null +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user.go @@ -0,0 +1,25 @@ +/* + * Twilio - Numbers + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// NumbersV2RegulatoryComplianceEndUser struct for NumbersV2RegulatoryComplianceEndUser +type NumbersV2RegulatoryComplianceEndUser struct { + AccountSid string `json:"account_sid,omitempty"` + Attributes map[string]interface{} `json:"attributes,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Sid string `json:"sid,omitempty"` + Type string `json:"type,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user_read_response.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user_read_response.go new file mode 100644 index 000000000..53033f7a7 --- /dev/null +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Numbers + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// NumbersV2RegulatoryComplianceEndUserReadResponse struct for NumbersV2RegulatoryComplianceEndUserReadResponse +type NumbersV2RegulatoryComplianceEndUserReadResponse struct { + Meta NumbersV2RegulatoryComplianceBundleReadResponseMeta `json:"meta,omitempty"` + Results []NumbersV2RegulatoryComplianceEndUser `json:"results,omitempty"` +} diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user_type.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user_type.go new file mode 100644 index 000000000..8bac1cedd --- /dev/null +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user_type.go @@ -0,0 +1,19 @@ +/* + * Twilio - Numbers + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// NumbersV2RegulatoryComplianceEndUserType struct for NumbersV2RegulatoryComplianceEndUserType +type NumbersV2RegulatoryComplianceEndUserType struct { + Fields []map[string]interface{} `json:"fields,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + MachineName string `json:"machine_name,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user_type_read_response.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user_type_read_response.go new file mode 100644 index 000000000..a016dcf74 --- /dev/null +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user_type_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Numbers + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// NumbersV2RegulatoryComplianceEndUserTypeReadResponse struct for NumbersV2RegulatoryComplianceEndUserTypeReadResponse +type NumbersV2RegulatoryComplianceEndUserTypeReadResponse struct { + EndUserTypes []NumbersV2RegulatoryComplianceEndUserType `json:"end_user_types,omitempty"` + Meta NumbersV2RegulatoryComplianceBundleReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_regulation.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_regulation.go new file mode 100644 index 000000000..3030f3b8d --- /dev/null +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_regulation.go @@ -0,0 +1,21 @@ +/* + * Twilio - Numbers + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// NumbersV2RegulatoryComplianceRegulation struct for NumbersV2RegulatoryComplianceRegulation +type NumbersV2RegulatoryComplianceRegulation struct { + EndUserType string `json:"end_user_type,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + IsoCountry string `json:"iso_country,omitempty"` + NumberType string `json:"number_type,omitempty"` + Requirements map[string]interface{} `json:"requirements,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_regulation_read_response.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_regulation_read_response.go new file mode 100644 index 000000000..7bcb5bc24 --- /dev/null +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_regulation_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Numbers + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// NumbersV2RegulatoryComplianceRegulationReadResponse struct for NumbersV2RegulatoryComplianceRegulationReadResponse +type NumbersV2RegulatoryComplianceRegulationReadResponse struct { + Meta NumbersV2RegulatoryComplianceBundleReadResponseMeta `json:"meta,omitempty"` + Results []NumbersV2RegulatoryComplianceRegulation `json:"results,omitempty"` +} diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document.go new file mode 100644 index 000000000..0feee1d16 --- /dev/null +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document.go @@ -0,0 +1,27 @@ +/* + * Twilio - Numbers + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// NumbersV2RegulatoryComplianceSupportingDocument struct for NumbersV2RegulatoryComplianceSupportingDocument +type NumbersV2RegulatoryComplianceSupportingDocument struct { + AccountSid string `json:"account_sid,omitempty"` + Attributes map[string]interface{} `json:"attributes,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + MimeType string `json:"mime_type,omitempty"` + Sid string `json:"sid,omitempty"` + Status string `json:"status,omitempty"` + Type string `json:"type,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document_read_response.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document_read_response.go new file mode 100644 index 000000000..6de07d71b --- /dev/null +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Numbers + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// NumbersV2RegulatoryComplianceSupportingDocumentReadResponse struct for NumbersV2RegulatoryComplianceSupportingDocumentReadResponse +type NumbersV2RegulatoryComplianceSupportingDocumentReadResponse struct { + Meta NumbersV2RegulatoryComplianceBundleReadResponseMeta `json:"meta,omitempty"` + Results []NumbersV2RegulatoryComplianceSupportingDocument `json:"results,omitempty"` +} diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document_type.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document_type.go new file mode 100644 index 000000000..d351180af --- /dev/null +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document_type.go @@ -0,0 +1,19 @@ +/* + * Twilio - Numbers + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// NumbersV2RegulatoryComplianceSupportingDocumentType struct for NumbersV2RegulatoryComplianceSupportingDocumentType +type NumbersV2RegulatoryComplianceSupportingDocumentType struct { + Fields []map[string]interface{} `json:"fields,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + MachineName string `json:"machine_name,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document_type_read_response.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document_type_read_response.go new file mode 100644 index 000000000..1d70efb24 --- /dev/null +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document_type_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Numbers + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse struct for NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse +type NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse struct { + Meta NumbersV2RegulatoryComplianceBundleReadResponseMeta `json:"meta,omitempty"` + SupportingDocumentTypes []NumbersV2RegulatoryComplianceSupportingDocumentType `json:"supporting_document_types,omitempty"` +} diff --git a/rest/numbers/v2/model_update_bundle_request.go b/rest/numbers/v2/model_update_bundle_request.go new file mode 100644 index 000000000..87aeb44b7 --- /dev/null +++ b/rest/numbers/v2/model_update_bundle_request.go @@ -0,0 +1,22 @@ +/* + * Twilio - Numbers + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateBundleRequest struct for UpdateBundleRequest +type UpdateBundleRequest struct { + // The email address that will receive updates when the Bundle resource changes status. + Email string `json:"Email,omitempty"` + // The string that you assigned to describe the resource. + FriendlyName string `json:"FriendlyName,omitempty"` + // The verification status of the Bundle resource. + Status string `json:"Status,omitempty"` + // The URL we call to inform your application of status changes. + StatusCallback string `json:"StatusCallback,omitempty"` +} diff --git a/rest/numbers/v2/model_update_end_user_request.go b/rest/numbers/v2/model_update_end_user_request.go new file mode 100644 index 000000000..381df5f60 --- /dev/null +++ b/rest/numbers/v2/model_update_end_user_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Numbers + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateEndUserRequest struct for UpdateEndUserRequest +type UpdateEndUserRequest struct { + // The set of parameters that are the attributes of the End User resource which are derived End User Types. + Attributes map[string]interface{} `json:"Attributes,omitempty"` + // The string that you assigned to describe the resource. + FriendlyName string `json:"FriendlyName,omitempty"` +} diff --git a/rest/numbers/v2/model_update_supporting_document_request.go b/rest/numbers/v2/model_update_supporting_document_request.go new file mode 100644 index 000000000..c1edb8fef --- /dev/null +++ b/rest/numbers/v2/model_update_supporting_document_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Numbers + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateSupportingDocumentRequest struct for UpdateSupportingDocumentRequest +type UpdateSupportingDocumentRequest struct { + // The set of parameters that are the attributes of the Supporting Document resource which are derived Supporting Document Types. + Attributes map[string]interface{} `json:"Attributes,omitempty"` + // The string that you assigned to describe the resource. + FriendlyName string `json:"FriendlyName,omitempty"` +} diff --git a/rest/numbers/v2/response.go b/rest/numbers/v2/response.go new file mode 100644 index 000000000..b0c258329 --- /dev/null +++ b/rest/numbers/v2/response.go @@ -0,0 +1,47 @@ +/* + * Twilio - Numbers + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// Response returns a new APIResponse object. +func Response(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// ResponseWithError returns a new APIResponse object with the provided error message. +func ResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/rest/preview/.openapi-generator-ignore b/rest/preview/.openapi-generator-ignore new file mode 100644 index 000000000..7484ee590 --- /dev/null +++ b/rest/preview/.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/rest/preview/.openapi-generator/VERSION b/rest/preview/.openapi-generator/VERSION new file mode 100644 index 000000000..ecedc98d1 --- /dev/null +++ b/rest/preview/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.3.1 \ No newline at end of file diff --git a/rest/preview/README.md b/rest/preview/README.md new file mode 100644 index 000000000..183227c4e --- /dev/null +++ b/rest/preview/README.md @@ -0,0 +1,363 @@ +# Go API client for openapi + +This is the public Twilio REST API. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 5.15.0 +- Package version: 1.0.0 +- Build package: com.twilio.oai.TwilioGoGenerator +For more information, please visit [https://support.twilio.com](https://support.twilio.com) + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import "./openapi" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**CreateAssistant**](docs/DefaultApi.md#createassistant) | **Post** /understand/Assistants | +*DefaultApi* | [**CreateAuthorizationDocument**](docs/DefaultApi.md#createauthorizationdocument) | **Post** /HostedNumbers/AuthorizationDocuments | +*DefaultApi* | [**CreateCertificate**](docs/DefaultApi.md#createcertificate) | **Post** /DeployedDevices/Fleets/{FleetSid}/Certificates | +*DefaultApi* | [**CreateChannel**](docs/DefaultApi.md#createchannel) | **Post** /TrustedComms/BrandedChannels/{BrandedChannelSid}/Channels | +*DefaultApi* | [**CreateCommand**](docs/DefaultApi.md#createcommand) | **Post** /wireless/Commands | +*DefaultApi* | [**CreateDeployment**](docs/DefaultApi.md#createdeployment) | **Post** /DeployedDevices/Fleets/{FleetSid}/Deployments | +*DefaultApi* | [**CreateDevice**](docs/DefaultApi.md#createdevice) | **Post** /DeployedDevices/Fleets/{FleetSid}/Devices | +*DefaultApi* | [**CreateDocument**](docs/DefaultApi.md#createdocument) | **Post** /Sync/Services/{ServiceSid}/Documents | +*DefaultApi* | [**CreateExportCustomJob**](docs/DefaultApi.md#createexportcustomjob) | **Post** /BulkExports/Exports/{ResourceType}/Jobs | +*DefaultApi* | [**CreateField**](docs/DefaultApi.md#createfield) | **Post** /understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields | +*DefaultApi* | [**CreateFieldType**](docs/DefaultApi.md#createfieldtype) | **Post** /understand/Assistants/{AssistantSid}/FieldTypes | +*DefaultApi* | [**CreateFieldValue**](docs/DefaultApi.md#createfieldvalue) | **Post** /understand/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues | +*DefaultApi* | [**CreateFleet**](docs/DefaultApi.md#createfleet) | **Post** /DeployedDevices/Fleets | +*DefaultApi* | [**CreateHostedNumberOrder**](docs/DefaultApi.md#createhostednumberorder) | **Post** /HostedNumbers/HostedNumberOrders | +*DefaultApi* | [**CreateInstalledAddOn**](docs/DefaultApi.md#createinstalledaddon) | **Post** /marketplace/InstalledAddOns | +*DefaultApi* | [**CreateKey**](docs/DefaultApi.md#createkey) | **Post** /DeployedDevices/Fleets/{FleetSid}/Keys | +*DefaultApi* | [**CreateModelBuild**](docs/DefaultApi.md#createmodelbuild) | **Post** /understand/Assistants/{AssistantSid}/ModelBuilds | +*DefaultApi* | [**CreateQuery**](docs/DefaultApi.md#createquery) | **Post** /understand/Assistants/{AssistantSid}/Queries | +*DefaultApi* | [**CreateRatePlan**](docs/DefaultApi.md#createrateplan) | **Post** /wireless/RatePlans | +*DefaultApi* | [**CreateSample**](docs/DefaultApi.md#createsample) | **Post** /understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples | +*DefaultApi* | [**CreateService**](docs/DefaultApi.md#createservice) | **Post** /Sync/Services | +*DefaultApi* | [**CreateSyncList**](docs/DefaultApi.md#createsynclist) | **Post** /Sync/Services/{ServiceSid}/Lists | +*DefaultApi* | [**CreateSyncListItem**](docs/DefaultApi.md#createsynclistitem) | **Post** /Sync/Services/{ServiceSid}/Lists/{ListSid}/Items | +*DefaultApi* | [**CreateSyncMap**](docs/DefaultApi.md#createsyncmap) | **Post** /Sync/Services/{ServiceSid}/Maps | +*DefaultApi* | [**CreateSyncMapItem**](docs/DefaultApi.md#createsyncmapitem) | **Post** /Sync/Services/{ServiceSid}/Maps/{MapSid}/Items | +*DefaultApi* | [**CreateTask**](docs/DefaultApi.md#createtask) | **Post** /understand/Assistants/{AssistantSid}/Tasks | +*DefaultApi* | [**DeleteAssistant**](docs/DefaultApi.md#deleteassistant) | **Delete** /understand/Assistants/{Sid} | +*DefaultApi* | [**DeleteCertificate**](docs/DefaultApi.md#deletecertificate) | **Delete** /DeployedDevices/Fleets/{FleetSid}/Certificates/{Sid} | +*DefaultApi* | [**DeleteDeployment**](docs/DefaultApi.md#deletedeployment) | **Delete** /DeployedDevices/Fleets/{FleetSid}/Deployments/{Sid} | +*DefaultApi* | [**DeleteDevice**](docs/DefaultApi.md#deletedevice) | **Delete** /DeployedDevices/Fleets/{FleetSid}/Devices/{Sid} | +*DefaultApi* | [**DeleteDocument**](docs/DefaultApi.md#deletedocument) | **Delete** /Sync/Services/{ServiceSid}/Documents/{Sid} | +*DefaultApi* | [**DeleteDocumentPermission**](docs/DefaultApi.md#deletedocumentpermission) | **Delete** /Sync/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity} | +*DefaultApi* | [**DeleteField**](docs/DefaultApi.md#deletefield) | **Delete** /understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields/{Sid} | +*DefaultApi* | [**DeleteFieldType**](docs/DefaultApi.md#deletefieldtype) | **Delete** /understand/Assistants/{AssistantSid}/FieldTypes/{Sid} | +*DefaultApi* | [**DeleteFieldValue**](docs/DefaultApi.md#deletefieldvalue) | **Delete** /understand/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues/{Sid} | +*DefaultApi* | [**DeleteFleet**](docs/DefaultApi.md#deletefleet) | **Delete** /DeployedDevices/Fleets/{Sid} | +*DefaultApi* | [**DeleteHostedNumberOrder**](docs/DefaultApi.md#deletehostednumberorder) | **Delete** /HostedNumbers/HostedNumberOrders/{Sid} | +*DefaultApi* | [**DeleteInstalledAddOn**](docs/DefaultApi.md#deleteinstalledaddon) | **Delete** /marketplace/InstalledAddOns/{Sid} | +*DefaultApi* | [**DeleteJob**](docs/DefaultApi.md#deletejob) | **Delete** /BulkExports/Exports/Jobs/{JobSid} | +*DefaultApi* | [**DeleteKey**](docs/DefaultApi.md#deletekey) | **Delete** /DeployedDevices/Fleets/{FleetSid}/Keys/{Sid} | +*DefaultApi* | [**DeleteModelBuild**](docs/DefaultApi.md#deletemodelbuild) | **Delete** /understand/Assistants/{AssistantSid}/ModelBuilds/{Sid} | +*DefaultApi* | [**DeleteQuery**](docs/DefaultApi.md#deletequery) | **Delete** /understand/Assistants/{AssistantSid}/Queries/{Sid} | +*DefaultApi* | [**DeleteRatePlan**](docs/DefaultApi.md#deleterateplan) | **Delete** /wireless/RatePlans/{Sid} | +*DefaultApi* | [**DeleteSample**](docs/DefaultApi.md#deletesample) | **Delete** /understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid} | +*DefaultApi* | [**DeleteService**](docs/DefaultApi.md#deleteservice) | **Delete** /Sync/Services/{Sid} | +*DefaultApi* | [**DeleteSyncList**](docs/DefaultApi.md#deletesynclist) | **Delete** /Sync/Services/{ServiceSid}/Lists/{Sid} | +*DefaultApi* | [**DeleteSyncListItem**](docs/DefaultApi.md#deletesynclistitem) | **Delete** /Sync/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index} | +*DefaultApi* | [**DeleteSyncListPermission**](docs/DefaultApi.md#deletesynclistpermission) | **Delete** /Sync/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity} | +*DefaultApi* | [**DeleteSyncMap**](docs/DefaultApi.md#deletesyncmap) | **Delete** /Sync/Services/{ServiceSid}/Maps/{Sid} | +*DefaultApi* | [**DeleteSyncMapItem**](docs/DefaultApi.md#deletesyncmapitem) | **Delete** /Sync/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key} | +*DefaultApi* | [**DeleteSyncMapPermission**](docs/DefaultApi.md#deletesyncmappermission) | **Delete** /Sync/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity} | +*DefaultApi* | [**DeleteTask**](docs/DefaultApi.md#deletetask) | **Delete** /understand/Assistants/{AssistantSid}/Tasks/{Sid} | +*DefaultApi* | [**FetchAssistant**](docs/DefaultApi.md#fetchassistant) | **Get** /understand/Assistants/{Sid} | +*DefaultApi* | [**FetchAssistantFallbackActions**](docs/DefaultApi.md#fetchassistantfallbackactions) | **Get** /understand/Assistants/{AssistantSid}/FallbackActions | +*DefaultApi* | [**FetchAssistantInitiationActions**](docs/DefaultApi.md#fetchassistantinitiationactions) | **Get** /understand/Assistants/{AssistantSid}/InitiationActions | +*DefaultApi* | [**FetchAuthorizationDocument**](docs/DefaultApi.md#fetchauthorizationdocument) | **Get** /HostedNumbers/AuthorizationDocuments/{Sid} | +*DefaultApi* | [**FetchAvailableAddOn**](docs/DefaultApi.md#fetchavailableaddon) | **Get** /marketplace/AvailableAddOns/{Sid} | +*DefaultApi* | [**FetchAvailableAddOnExtension**](docs/DefaultApi.md#fetchavailableaddonextension) | **Get** /marketplace/AvailableAddOns/{AvailableAddOnSid}/Extensions/{Sid} | +*DefaultApi* | [**FetchBrandedChannel**](docs/DefaultApi.md#fetchbrandedchannel) | **Get** /TrustedComms/BrandedChannels/{Sid} | +*DefaultApi* | [**FetchBrandsInformation**](docs/DefaultApi.md#fetchbrandsinformation) | **Get** /TrustedComms/BrandsInformation | +*DefaultApi* | [**FetchCertificate**](docs/DefaultApi.md#fetchcertificate) | **Get** /DeployedDevices/Fleets/{FleetSid}/Certificates/{Sid} | +*DefaultApi* | [**FetchCommand**](docs/DefaultApi.md#fetchcommand) | **Get** /wireless/Commands/{Sid} | +*DefaultApi* | [**FetchCps**](docs/DefaultApi.md#fetchcps) | **Get** /TrustedComms/CPS | +*DefaultApi* | [**FetchCurrentCall**](docs/DefaultApi.md#fetchcurrentcall) | **Get** /TrustedComms/CurrentCall | +*DefaultApi* | [**FetchDay**](docs/DefaultApi.md#fetchday) | **Get** /BulkExports/Exports/{ResourceType}/Days/{Day} | +*DefaultApi* | [**FetchDeployment**](docs/DefaultApi.md#fetchdeployment) | **Get** /DeployedDevices/Fleets/{FleetSid}/Deployments/{Sid} | +*DefaultApi* | [**FetchDevice**](docs/DefaultApi.md#fetchdevice) | **Get** /DeployedDevices/Fleets/{FleetSid}/Devices/{Sid} | +*DefaultApi* | [**FetchDialogue**](docs/DefaultApi.md#fetchdialogue) | **Get** /understand/Assistants/{AssistantSid}/Dialogues/{Sid} | +*DefaultApi* | [**FetchDocument**](docs/DefaultApi.md#fetchdocument) | **Get** /Sync/Services/{ServiceSid}/Documents/{Sid} | +*DefaultApi* | [**FetchDocumentPermission**](docs/DefaultApi.md#fetchdocumentpermission) | **Get** /Sync/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity} | +*DefaultApi* | [**FetchExport**](docs/DefaultApi.md#fetchexport) | **Get** /BulkExports/Exports/{ResourceType} | +*DefaultApi* | [**FetchExportConfiguration**](docs/DefaultApi.md#fetchexportconfiguration) | **Get** /BulkExports/Exports/{ResourceType}/Configuration | +*DefaultApi* | [**FetchField**](docs/DefaultApi.md#fetchfield) | **Get** /understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields/{Sid} | +*DefaultApi* | [**FetchFieldType**](docs/DefaultApi.md#fetchfieldtype) | **Get** /understand/Assistants/{AssistantSid}/FieldTypes/{Sid} | +*DefaultApi* | [**FetchFieldValue**](docs/DefaultApi.md#fetchfieldvalue) | **Get** /understand/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues/{Sid} | +*DefaultApi* | [**FetchFleet**](docs/DefaultApi.md#fetchfleet) | **Get** /DeployedDevices/Fleets/{Sid} | +*DefaultApi* | [**FetchHostedNumberOrder**](docs/DefaultApi.md#fetchhostednumberorder) | **Get** /HostedNumbers/HostedNumberOrders/{Sid} | +*DefaultApi* | [**FetchInstalledAddOn**](docs/DefaultApi.md#fetchinstalledaddon) | **Get** /marketplace/InstalledAddOns/{Sid} | +*DefaultApi* | [**FetchInstalledAddOnExtension**](docs/DefaultApi.md#fetchinstalledaddonextension) | **Get** /marketplace/InstalledAddOns/{InstalledAddOnSid}/Extensions/{Sid} | +*DefaultApi* | [**FetchJob**](docs/DefaultApi.md#fetchjob) | **Get** /BulkExports/Exports/Jobs/{JobSid} | +*DefaultApi* | [**FetchKey**](docs/DefaultApi.md#fetchkey) | **Get** /DeployedDevices/Fleets/{FleetSid}/Keys/{Sid} | +*DefaultApi* | [**FetchModelBuild**](docs/DefaultApi.md#fetchmodelbuild) | **Get** /understand/Assistants/{AssistantSid}/ModelBuilds/{Sid} | +*DefaultApi* | [**FetchQuery**](docs/DefaultApi.md#fetchquery) | **Get** /understand/Assistants/{AssistantSid}/Queries/{Sid} | +*DefaultApi* | [**FetchRatePlan**](docs/DefaultApi.md#fetchrateplan) | **Get** /wireless/RatePlans/{Sid} | +*DefaultApi* | [**FetchSample**](docs/DefaultApi.md#fetchsample) | **Get** /understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid} | +*DefaultApi* | [**FetchService**](docs/DefaultApi.md#fetchservice) | **Get** /Sync/Services/{Sid} | +*DefaultApi* | [**FetchSim**](docs/DefaultApi.md#fetchsim) | **Get** /wireless/Sims/{Sid} | +*DefaultApi* | [**FetchStyleSheet**](docs/DefaultApi.md#fetchstylesheet) | **Get** /understand/Assistants/{AssistantSid}/StyleSheet | +*DefaultApi* | [**FetchSyncList**](docs/DefaultApi.md#fetchsynclist) | **Get** /Sync/Services/{ServiceSid}/Lists/{Sid} | +*DefaultApi* | [**FetchSyncListItem**](docs/DefaultApi.md#fetchsynclistitem) | **Get** /Sync/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index} | +*DefaultApi* | [**FetchSyncListPermission**](docs/DefaultApi.md#fetchsynclistpermission) | **Get** /Sync/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity} | +*DefaultApi* | [**FetchSyncMap**](docs/DefaultApi.md#fetchsyncmap) | **Get** /Sync/Services/{ServiceSid}/Maps/{Sid} | +*DefaultApi* | [**FetchSyncMapItem**](docs/DefaultApi.md#fetchsyncmapitem) | **Get** /Sync/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key} | +*DefaultApi* | [**FetchSyncMapPermission**](docs/DefaultApi.md#fetchsyncmappermission) | **Get** /Sync/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity} | +*DefaultApi* | [**FetchTask**](docs/DefaultApi.md#fetchtask) | **Get** /understand/Assistants/{AssistantSid}/Tasks/{Sid} | +*DefaultApi* | [**FetchTaskActions**](docs/DefaultApi.md#fetchtaskactions) | **Get** /understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Actions | +*DefaultApi* | [**FetchTaskStatistics**](docs/DefaultApi.md#fetchtaskstatistics) | **Get** /understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Statistics | +*DefaultApi* | [**FetchUsage**](docs/DefaultApi.md#fetchusage) | **Get** /wireless/Sims/{SimSid}/Usage | +*DefaultApi* | [**ListAssistant**](docs/DefaultApi.md#listassistant) | **Get** /understand/Assistants | +*DefaultApi* | [**ListAuthorizationDocument**](docs/DefaultApi.md#listauthorizationdocument) | **Get** /HostedNumbers/AuthorizationDocuments | +*DefaultApi* | [**ListAvailableAddOn**](docs/DefaultApi.md#listavailableaddon) | **Get** /marketplace/AvailableAddOns | +*DefaultApi* | [**ListAvailableAddOnExtension**](docs/DefaultApi.md#listavailableaddonextension) | **Get** /marketplace/AvailableAddOns/{AvailableAddOnSid}/Extensions | +*DefaultApi* | [**ListCertificate**](docs/DefaultApi.md#listcertificate) | **Get** /DeployedDevices/Fleets/{FleetSid}/Certificates | +*DefaultApi* | [**ListCommand**](docs/DefaultApi.md#listcommand) | **Get** /wireless/Commands | +*DefaultApi* | [**ListDay**](docs/DefaultApi.md#listday) | **Get** /BulkExports/Exports/{ResourceType}/Days | +*DefaultApi* | [**ListDependentHostedNumberOrder**](docs/DefaultApi.md#listdependenthostednumberorder) | **Get** /HostedNumbers/AuthorizationDocuments/{SigningDocumentSid}/DependentHostedNumberOrders | +*DefaultApi* | [**ListDeployment**](docs/DefaultApi.md#listdeployment) | **Get** /DeployedDevices/Fleets/{FleetSid}/Deployments | +*DefaultApi* | [**ListDevice**](docs/DefaultApi.md#listdevice) | **Get** /DeployedDevices/Fleets/{FleetSid}/Devices | +*DefaultApi* | [**ListDocument**](docs/DefaultApi.md#listdocument) | **Get** /Sync/Services/{ServiceSid}/Documents | +*DefaultApi* | [**ListDocumentPermission**](docs/DefaultApi.md#listdocumentpermission) | **Get** /Sync/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions | +*DefaultApi* | [**ListExportCustomJob**](docs/DefaultApi.md#listexportcustomjob) | **Get** /BulkExports/Exports/{ResourceType}/Jobs | +*DefaultApi* | [**ListField**](docs/DefaultApi.md#listfield) | **Get** /understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields | +*DefaultApi* | [**ListFieldType**](docs/DefaultApi.md#listfieldtype) | **Get** /understand/Assistants/{AssistantSid}/FieldTypes | +*DefaultApi* | [**ListFieldValue**](docs/DefaultApi.md#listfieldvalue) | **Get** /understand/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues | +*DefaultApi* | [**ListFleet**](docs/DefaultApi.md#listfleet) | **Get** /DeployedDevices/Fleets | +*DefaultApi* | [**ListHostedNumberOrder**](docs/DefaultApi.md#listhostednumberorder) | **Get** /HostedNumbers/HostedNumberOrders | +*DefaultApi* | [**ListInstalledAddOn**](docs/DefaultApi.md#listinstalledaddon) | **Get** /marketplace/InstalledAddOns | +*DefaultApi* | [**ListInstalledAddOnExtension**](docs/DefaultApi.md#listinstalledaddonextension) | **Get** /marketplace/InstalledAddOns/{InstalledAddOnSid}/Extensions | +*DefaultApi* | [**ListKey**](docs/DefaultApi.md#listkey) | **Get** /DeployedDevices/Fleets/{FleetSid}/Keys | +*DefaultApi* | [**ListModelBuild**](docs/DefaultApi.md#listmodelbuild) | **Get** /understand/Assistants/{AssistantSid}/ModelBuilds | +*DefaultApi* | [**ListQuery**](docs/DefaultApi.md#listquery) | **Get** /understand/Assistants/{AssistantSid}/Queries | +*DefaultApi* | [**ListRatePlan**](docs/DefaultApi.md#listrateplan) | **Get** /wireless/RatePlans | +*DefaultApi* | [**ListSample**](docs/DefaultApi.md#listsample) | **Get** /understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples | +*DefaultApi* | [**ListService**](docs/DefaultApi.md#listservice) | **Get** /Sync/Services | +*DefaultApi* | [**ListSim**](docs/DefaultApi.md#listsim) | **Get** /wireless/Sims | +*DefaultApi* | [**ListSyncList**](docs/DefaultApi.md#listsynclist) | **Get** /Sync/Services/{ServiceSid}/Lists | +*DefaultApi* | [**ListSyncListItem**](docs/DefaultApi.md#listsynclistitem) | **Get** /Sync/Services/{ServiceSid}/Lists/{ListSid}/Items | +*DefaultApi* | [**ListSyncListPermission**](docs/DefaultApi.md#listsynclistpermission) | **Get** /Sync/Services/{ServiceSid}/Lists/{ListSid}/Permissions | +*DefaultApi* | [**ListSyncMap**](docs/DefaultApi.md#listsyncmap) | **Get** /Sync/Services/{ServiceSid}/Maps | +*DefaultApi* | [**ListSyncMapItem**](docs/DefaultApi.md#listsyncmapitem) | **Get** /Sync/Services/{ServiceSid}/Maps/{MapSid}/Items | +*DefaultApi* | [**ListSyncMapPermission**](docs/DefaultApi.md#listsyncmappermission) | **Get** /Sync/Services/{ServiceSid}/Maps/{MapSid}/Permissions | +*DefaultApi* | [**ListTask**](docs/DefaultApi.md#listtask) | **Get** /understand/Assistants/{AssistantSid}/Tasks | +*DefaultApi* | [**UpdateAssistant**](docs/DefaultApi.md#updateassistant) | **Post** /understand/Assistants/{Sid} | +*DefaultApi* | [**UpdateAssistantFallbackActions**](docs/DefaultApi.md#updateassistantfallbackactions) | **Post** /understand/Assistants/{AssistantSid}/FallbackActions | +*DefaultApi* | [**UpdateAssistantInitiationActions**](docs/DefaultApi.md#updateassistantinitiationactions) | **Post** /understand/Assistants/{AssistantSid}/InitiationActions | +*DefaultApi* | [**UpdateAuthorizationDocument**](docs/DefaultApi.md#updateauthorizationdocument) | **Post** /HostedNumbers/AuthorizationDocuments/{Sid} | +*DefaultApi* | [**UpdateCertificate**](docs/DefaultApi.md#updatecertificate) | **Post** /DeployedDevices/Fleets/{FleetSid}/Certificates/{Sid} | +*DefaultApi* | [**UpdateDeployment**](docs/DefaultApi.md#updatedeployment) | **Post** /DeployedDevices/Fleets/{FleetSid}/Deployments/{Sid} | +*DefaultApi* | [**UpdateDevice**](docs/DefaultApi.md#updatedevice) | **Post** /DeployedDevices/Fleets/{FleetSid}/Devices/{Sid} | +*DefaultApi* | [**UpdateDocument**](docs/DefaultApi.md#updatedocument) | **Post** /Sync/Services/{ServiceSid}/Documents/{Sid} | +*DefaultApi* | [**UpdateDocumentPermission**](docs/DefaultApi.md#updatedocumentpermission) | **Post** /Sync/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity} | +*DefaultApi* | [**UpdateExportConfiguration**](docs/DefaultApi.md#updateexportconfiguration) | **Post** /BulkExports/Exports/{ResourceType}/Configuration | +*DefaultApi* | [**UpdateFieldType**](docs/DefaultApi.md#updatefieldtype) | **Post** /understand/Assistants/{AssistantSid}/FieldTypes/{Sid} | +*DefaultApi* | [**UpdateFleet**](docs/DefaultApi.md#updatefleet) | **Post** /DeployedDevices/Fleets/{Sid} | +*DefaultApi* | [**UpdateHostedNumberOrder**](docs/DefaultApi.md#updatehostednumberorder) | **Post** /HostedNumbers/HostedNumberOrders/{Sid} | +*DefaultApi* | [**UpdateInstalledAddOn**](docs/DefaultApi.md#updateinstalledaddon) | **Post** /marketplace/InstalledAddOns/{Sid} | +*DefaultApi* | [**UpdateInstalledAddOnExtension**](docs/DefaultApi.md#updateinstalledaddonextension) | **Post** /marketplace/InstalledAddOns/{InstalledAddOnSid}/Extensions/{Sid} | +*DefaultApi* | [**UpdateKey**](docs/DefaultApi.md#updatekey) | **Post** /DeployedDevices/Fleets/{FleetSid}/Keys/{Sid} | +*DefaultApi* | [**UpdateModelBuild**](docs/DefaultApi.md#updatemodelbuild) | **Post** /understand/Assistants/{AssistantSid}/ModelBuilds/{Sid} | +*DefaultApi* | [**UpdateQuery**](docs/DefaultApi.md#updatequery) | **Post** /understand/Assistants/{AssistantSid}/Queries/{Sid} | +*DefaultApi* | [**UpdateRatePlan**](docs/DefaultApi.md#updaterateplan) | **Post** /wireless/RatePlans/{Sid} | +*DefaultApi* | [**UpdateSample**](docs/DefaultApi.md#updatesample) | **Post** /understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid} | +*DefaultApi* | [**UpdateService**](docs/DefaultApi.md#updateservice) | **Post** /Sync/Services/{Sid} | +*DefaultApi* | [**UpdateSim**](docs/DefaultApi.md#updatesim) | **Post** /wireless/Sims/{Sid} | +*DefaultApi* | [**UpdateStyleSheet**](docs/DefaultApi.md#updatestylesheet) | **Post** /understand/Assistants/{AssistantSid}/StyleSheet | +*DefaultApi* | [**UpdateSyncListItem**](docs/DefaultApi.md#updatesynclistitem) | **Post** /Sync/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index} | +*DefaultApi* | [**UpdateSyncListPermission**](docs/DefaultApi.md#updatesynclistpermission) | **Post** /Sync/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity} | +*DefaultApi* | [**UpdateSyncMapItem**](docs/DefaultApi.md#updatesyncmapitem) | **Post** /Sync/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key} | +*DefaultApi* | [**UpdateSyncMapPermission**](docs/DefaultApi.md#updatesyncmappermission) | **Post** /Sync/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity} | +*DefaultApi* | [**UpdateTask**](docs/DefaultApi.md#updatetask) | **Post** /understand/Assistants/{AssistantSid}/Tasks/{Sid} | +*DefaultApi* | [**UpdateTaskActions**](docs/DefaultApi.md#updatetaskactions) | **Post** /understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Actions | + + +## Documentation For Models + + - [CreateAssistantRequest](docs/CreateAssistantRequest.md) + - [CreateAuthorizationDocumentRequest](docs/CreateAuthorizationDocumentRequest.md) + - [CreateCertificateRequest](docs/CreateCertificateRequest.md) + - [CreateChannelRequest](docs/CreateChannelRequest.md) + - [CreateCommandRequest](docs/CreateCommandRequest.md) + - [CreateDeploymentRequest](docs/CreateDeploymentRequest.md) + - [CreateDeviceRequest](docs/CreateDeviceRequest.md) + - [CreateDocumentRequest](docs/CreateDocumentRequest.md) + - [CreateExportCustomJobRequest](docs/CreateExportCustomJobRequest.md) + - [CreateFieldRequest](docs/CreateFieldRequest.md) + - [CreateFieldTypeRequest](docs/CreateFieldTypeRequest.md) + - [CreateFieldValueRequest](docs/CreateFieldValueRequest.md) + - [CreateFleetRequest](docs/CreateFleetRequest.md) + - [CreateHostedNumberOrderRequest](docs/CreateHostedNumberOrderRequest.md) + - [CreateInstalledAddOnRequest](docs/CreateInstalledAddOnRequest.md) + - [CreateKeyRequest](docs/CreateKeyRequest.md) + - [CreateModelBuildRequest](docs/CreateModelBuildRequest.md) + - [CreateQueryRequest](docs/CreateQueryRequest.md) + - [CreateRatePlanRequest](docs/CreateRatePlanRequest.md) + - [CreateSampleRequest](docs/CreateSampleRequest.md) + - [CreateServiceRequest](docs/CreateServiceRequest.md) + - [CreateSyncListItemRequest](docs/CreateSyncListItemRequest.md) + - [CreateSyncListRequest](docs/CreateSyncListRequest.md) + - [CreateSyncMapItemRequest](docs/CreateSyncMapItemRequest.md) + - [CreateSyncMapRequest](docs/CreateSyncMapRequest.md) + - [CreateTaskRequest](docs/CreateTaskRequest.md) + - [PreviewBulkExportsExport](docs/PreviewBulkExportsExport.md) + - [PreviewBulkExportsExportConfiguration](docs/PreviewBulkExportsExportConfiguration.md) + - [PreviewBulkExportsExportDay](docs/PreviewBulkExportsExportDay.md) + - [PreviewBulkExportsExportDayInstance](docs/PreviewBulkExportsExportDayInstance.md) + - [PreviewBulkExportsExportDayReadResponse](docs/PreviewBulkExportsExportDayReadResponse.md) + - [PreviewBulkExportsExportDayReadResponseMeta](docs/PreviewBulkExportsExportDayReadResponseMeta.md) + - [PreviewBulkExportsExportExportCustomJob](docs/PreviewBulkExportsExportExportCustomJob.md) + - [PreviewBulkExportsExportExportCustomJobReadResponse](docs/PreviewBulkExportsExportExportCustomJobReadResponse.md) + - [PreviewBulkExportsExportJob](docs/PreviewBulkExportsExportJob.md) + - [PreviewDeployedDevicesFleet](docs/PreviewDeployedDevicesFleet.md) + - [PreviewDeployedDevicesFleetCertificate](docs/PreviewDeployedDevicesFleetCertificate.md) + - [PreviewDeployedDevicesFleetCertificateReadResponse](docs/PreviewDeployedDevicesFleetCertificateReadResponse.md) + - [PreviewDeployedDevicesFleetDeployment](docs/PreviewDeployedDevicesFleetDeployment.md) + - [PreviewDeployedDevicesFleetDeploymentReadResponse](docs/PreviewDeployedDevicesFleetDeploymentReadResponse.md) + - [PreviewDeployedDevicesFleetDevice](docs/PreviewDeployedDevicesFleetDevice.md) + - [PreviewDeployedDevicesFleetDeviceReadResponse](docs/PreviewDeployedDevicesFleetDeviceReadResponse.md) + - [PreviewDeployedDevicesFleetKey](docs/PreviewDeployedDevicesFleetKey.md) + - [PreviewDeployedDevicesFleetKeyReadResponse](docs/PreviewDeployedDevicesFleetKeyReadResponse.md) + - [PreviewDeployedDevicesFleetReadResponse](docs/PreviewDeployedDevicesFleetReadResponse.md) + - [PreviewHostedNumbersAuthorizationDocument](docs/PreviewHostedNumbersAuthorizationDocument.md) + - [PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrder](docs/PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrder.md) + - [PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse](docs/PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse.md) + - [PreviewHostedNumbersAuthorizationDocumentReadResponse](docs/PreviewHostedNumbersAuthorizationDocumentReadResponse.md) + - [PreviewHostedNumbersHostedNumberOrder](docs/PreviewHostedNumbersHostedNumberOrder.md) + - [PreviewHostedNumbersHostedNumberOrderReadResponse](docs/PreviewHostedNumbersHostedNumberOrderReadResponse.md) + - [PreviewMarketplaceAvailableAddOn](docs/PreviewMarketplaceAvailableAddOn.md) + - [PreviewMarketplaceAvailableAddOnAvailableAddOnExtension](docs/PreviewMarketplaceAvailableAddOnAvailableAddOnExtension.md) + - [PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse](docs/PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse.md) + - [PreviewMarketplaceAvailableAddOnReadResponse](docs/PreviewMarketplaceAvailableAddOnReadResponse.md) + - [PreviewMarketplaceInstalledAddOn](docs/PreviewMarketplaceInstalledAddOn.md) + - [PreviewMarketplaceInstalledAddOnInstalledAddOnExtension](docs/PreviewMarketplaceInstalledAddOnInstalledAddOnExtension.md) + - [PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse](docs/PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse.md) + - [PreviewMarketplaceInstalledAddOnReadResponse](docs/PreviewMarketplaceInstalledAddOnReadResponse.md) + - [PreviewSyncService](docs/PreviewSyncService.md) + - [PreviewSyncServiceDocument](docs/PreviewSyncServiceDocument.md) + - [PreviewSyncServiceDocumentDocumentPermission](docs/PreviewSyncServiceDocumentDocumentPermission.md) + - [PreviewSyncServiceDocumentDocumentPermissionReadResponse](docs/PreviewSyncServiceDocumentDocumentPermissionReadResponse.md) + - [PreviewSyncServiceDocumentReadResponse](docs/PreviewSyncServiceDocumentReadResponse.md) + - [PreviewSyncServiceReadResponse](docs/PreviewSyncServiceReadResponse.md) + - [PreviewSyncServiceSyncList](docs/PreviewSyncServiceSyncList.md) + - [PreviewSyncServiceSyncListReadResponse](docs/PreviewSyncServiceSyncListReadResponse.md) + - [PreviewSyncServiceSyncListSyncListItem](docs/PreviewSyncServiceSyncListSyncListItem.md) + - [PreviewSyncServiceSyncListSyncListItemReadResponse](docs/PreviewSyncServiceSyncListSyncListItemReadResponse.md) + - [PreviewSyncServiceSyncListSyncListPermission](docs/PreviewSyncServiceSyncListSyncListPermission.md) + - [PreviewSyncServiceSyncListSyncListPermissionReadResponse](docs/PreviewSyncServiceSyncListSyncListPermissionReadResponse.md) + - [PreviewSyncServiceSyncMap](docs/PreviewSyncServiceSyncMap.md) + - [PreviewSyncServiceSyncMapReadResponse](docs/PreviewSyncServiceSyncMapReadResponse.md) + - [PreviewSyncServiceSyncMapSyncMapItem](docs/PreviewSyncServiceSyncMapSyncMapItem.md) + - [PreviewSyncServiceSyncMapSyncMapItemReadResponse](docs/PreviewSyncServiceSyncMapSyncMapItemReadResponse.md) + - [PreviewSyncServiceSyncMapSyncMapPermission](docs/PreviewSyncServiceSyncMapSyncMapPermission.md) + - [PreviewSyncServiceSyncMapSyncMapPermissionReadResponse](docs/PreviewSyncServiceSyncMapSyncMapPermissionReadResponse.md) + - [PreviewTrustedCommsBrandedChannel](docs/PreviewTrustedCommsBrandedChannel.md) + - [PreviewTrustedCommsBrandedChannelChannel](docs/PreviewTrustedCommsBrandedChannelChannel.md) + - [PreviewTrustedCommsBrandsInformation](docs/PreviewTrustedCommsBrandsInformation.md) + - [PreviewTrustedCommsCps](docs/PreviewTrustedCommsCps.md) + - [PreviewTrustedCommsCurrentCall](docs/PreviewTrustedCommsCurrentCall.md) + - [PreviewUnderstandAssistant](docs/PreviewUnderstandAssistant.md) + - [PreviewUnderstandAssistantAssistantFallbackActions](docs/PreviewUnderstandAssistantAssistantFallbackActions.md) + - [PreviewUnderstandAssistantAssistantInitiationActions](docs/PreviewUnderstandAssistantAssistantInitiationActions.md) + - [PreviewUnderstandAssistantDialogue](docs/PreviewUnderstandAssistantDialogue.md) + - [PreviewUnderstandAssistantFieldType](docs/PreviewUnderstandAssistantFieldType.md) + - [PreviewUnderstandAssistantFieldTypeFieldValue](docs/PreviewUnderstandAssistantFieldTypeFieldValue.md) + - [PreviewUnderstandAssistantFieldTypeFieldValueReadResponse](docs/PreviewUnderstandAssistantFieldTypeFieldValueReadResponse.md) + - [PreviewUnderstandAssistantFieldTypeReadResponse](docs/PreviewUnderstandAssistantFieldTypeReadResponse.md) + - [PreviewUnderstandAssistantModelBuild](docs/PreviewUnderstandAssistantModelBuild.md) + - [PreviewUnderstandAssistantModelBuildReadResponse](docs/PreviewUnderstandAssistantModelBuildReadResponse.md) + - [PreviewUnderstandAssistantQuery](docs/PreviewUnderstandAssistantQuery.md) + - [PreviewUnderstandAssistantQueryReadResponse](docs/PreviewUnderstandAssistantQueryReadResponse.md) + - [PreviewUnderstandAssistantReadResponse](docs/PreviewUnderstandAssistantReadResponse.md) + - [PreviewUnderstandAssistantStyleSheet](docs/PreviewUnderstandAssistantStyleSheet.md) + - [PreviewUnderstandAssistantTask](docs/PreviewUnderstandAssistantTask.md) + - [PreviewUnderstandAssistantTaskField](docs/PreviewUnderstandAssistantTaskField.md) + - [PreviewUnderstandAssistantTaskFieldReadResponse](docs/PreviewUnderstandAssistantTaskFieldReadResponse.md) + - [PreviewUnderstandAssistantTaskReadResponse](docs/PreviewUnderstandAssistantTaskReadResponse.md) + - [PreviewUnderstandAssistantTaskSample](docs/PreviewUnderstandAssistantTaskSample.md) + - [PreviewUnderstandAssistantTaskSampleReadResponse](docs/PreviewUnderstandAssistantTaskSampleReadResponse.md) + - [PreviewUnderstandAssistantTaskTaskActions](docs/PreviewUnderstandAssistantTaskTaskActions.md) + - [PreviewUnderstandAssistantTaskTaskStatistics](docs/PreviewUnderstandAssistantTaskTaskStatistics.md) + - [PreviewWirelessCommand](docs/PreviewWirelessCommand.md) + - [PreviewWirelessCommandReadResponse](docs/PreviewWirelessCommandReadResponse.md) + - [PreviewWirelessRatePlan](docs/PreviewWirelessRatePlan.md) + - [PreviewWirelessRatePlanReadResponse](docs/PreviewWirelessRatePlanReadResponse.md) + - [PreviewWirelessSim](docs/PreviewWirelessSim.md) + - [PreviewWirelessSimReadResponse](docs/PreviewWirelessSimReadResponse.md) + - [PreviewWirelessSimUsage](docs/PreviewWirelessSimUsage.md) + - [UpdateAssistantFallbackActionsRequest](docs/UpdateAssistantFallbackActionsRequest.md) + - [UpdateAssistantInitiationActionsRequest](docs/UpdateAssistantInitiationActionsRequest.md) + - [UpdateAssistantRequest](docs/UpdateAssistantRequest.md) + - [UpdateAuthorizationDocumentRequest](docs/UpdateAuthorizationDocumentRequest.md) + - [UpdateCertificateRequest](docs/UpdateCertificateRequest.md) + - [UpdateDeploymentRequest](docs/UpdateDeploymentRequest.md) + - [UpdateDeviceRequest](docs/UpdateDeviceRequest.md) + - [UpdateDocumentPermissionRequest](docs/UpdateDocumentPermissionRequest.md) + - [UpdateDocumentRequest](docs/UpdateDocumentRequest.md) + - [UpdateExportConfigurationRequest](docs/UpdateExportConfigurationRequest.md) + - [UpdateFieldTypeRequest](docs/UpdateFieldTypeRequest.md) + - [UpdateFleetRequest](docs/UpdateFleetRequest.md) + - [UpdateHostedNumberOrderRequest](docs/UpdateHostedNumberOrderRequest.md) + - [UpdateInstalledAddOnExtensionRequest](docs/UpdateInstalledAddOnExtensionRequest.md) + - [UpdateInstalledAddOnRequest](docs/UpdateInstalledAddOnRequest.md) + - [UpdateKeyRequest](docs/UpdateKeyRequest.md) + - [UpdateModelBuildRequest](docs/UpdateModelBuildRequest.md) + - [UpdateQueryRequest](docs/UpdateQueryRequest.md) + - [UpdateRatePlanRequest](docs/UpdateRatePlanRequest.md) + - [UpdateSampleRequest](docs/UpdateSampleRequest.md) + - [UpdateServiceRequest](docs/UpdateServiceRequest.md) + - [UpdateSimRequest](docs/UpdateSimRequest.md) + - [UpdateStyleSheetRequest](docs/UpdateStyleSheetRequest.md) + - [UpdateSyncListItemRequest](docs/UpdateSyncListItemRequest.md) + - [UpdateSyncListPermissionRequest](docs/UpdateSyncListPermissionRequest.md) + - [UpdateSyncMapItemRequest](docs/UpdateSyncMapItemRequest.md) + - [UpdateSyncMapPermissionRequest](docs/UpdateSyncMapPermissionRequest.md) + - [UpdateTaskActionsRequest](docs/UpdateTaskActionsRequest.md) + - [UpdateTaskRequest](docs/UpdateTaskRequest.md) + + +## Documentation For Authorization + + + +## accountSid_authToken + +- **Type**: HTTP basic authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ + UserName: "username", + Password: "password", +}) +r, err := client.Service.Operation(auth, args) +``` + + +## Author + +support@twilio.com + diff --git a/rest/preview/api_default.go b/rest/preview/api_default.go new file mode 100644 index 000000000..0be57ff65 --- /dev/null +++ b/rest/preview/api_default.go @@ -0,0 +1,6656 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "" +) + +type DefaultApiService struct { + baseURL string + client *twilio.Client +} + +func NewDefaultApiService(client *twilio.Client) *DefaultApiService { + return &DefaultApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} +// CreateAssistantParams Optional parameters for the method 'CreateAssistant' +type CreateAssistantParams struct { + CallbackEvents *string `json:"CallbackEvents,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + FallbackActions *map[string]interface{} `json:"FallbackActions,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + InitiationActions *map[string]interface{} `json:"InitiationActions,omitempty"` + LogQueries *bool `json:"LogQueries,omitempty"` + StyleSheet *map[string]interface{} `json:"StyleSheet,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +CreateAssistant Method for CreateAssistant + * @param optional nil or *CreateAssistantOpts - Optional Parameters: + * @param "CallbackEvents" (string) - Space-separated list of callback events that will trigger callbacks. + * @param "CallbackUrl" (string) - A user-provided URL to send event callbacks to. + * @param "FallbackActions" (map[string]interface{}) - The JSON actions to be executed when the user's input is not recognized as matching any Task. + * @param "FriendlyName" (string) - A text description for the Assistant. It is non-unique and can up to 255 characters long. + * @param "InitiationActions" (map[string]interface{}) - The JSON actions to be executed on inbound phone calls when the Assistant has to say something first. + * @param "LogQueries" (bool) - A boolean that specifies whether queries should be logged for 30 days further training. If false, no queries will be stored, if true, queries will be stored for 30 days and deleted thereafter. Defaults to true if no value is provided. + * @param "StyleSheet" (map[string]interface{}) - The JSON object that holds the style sheet for the assistant + * @param "UniqueName" (string) - A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. +@return PreviewUnderstandAssistant +*/ +func (c *DefaultApiService) CreateAssistant(params *CreateAssistantParams) (*PreviewUnderstandAssistant, error) { + path := "/understand/Assistants" + + data := url.Values{} + headers := 0 + + if params != nil && params.CallbackEvents != nil { + data.Set("CallbackEvents", *params.CallbackEvents) + } + if params != nil && params.CallbackUrl != nil { + data.Set("CallbackUrl", *params.CallbackUrl) + } + if params != nil && params.FallbackActions != nil { + v, err := json.Marshal(params.FallbackActions) + + if err != nil { + return nil, err + } + + data.Set("FallbackActions", string(v)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.InitiationActions != nil { + v, err := json.Marshal(params.InitiationActions) + + if err != nil { + return nil, err + } + + data.Set("InitiationActions", string(v)) + } + if params != nil && params.LogQueries != nil { + data.Set("LogQueries", string(*params.LogQueries)) + } + if params != nil && params.StyleSheet != nil { + v, err := json.Marshal(params.StyleSheet) + + if err != nil { + return nil, err + } + + data.Set("StyleSheet", string(v)) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateAuthorizationDocumentParams Optional parameters for the method 'CreateAuthorizationDocument' +type CreateAuthorizationDocumentParams struct { + AddressSid *string `json:"AddressSid,omitempty"` + CcEmails *[]string `json:"CcEmails,omitempty"` + ContactPhoneNumber *string `json:"ContactPhoneNumber,omitempty"` + ContactTitle *string `json:"ContactTitle,omitempty"` + Email *string `json:"Email,omitempty"` + HostedNumberOrderSids *[]string `json:"HostedNumberOrderSids,omitempty"` +} + +/* +CreateAuthorizationDocument Method for CreateAuthorizationDocument +Create an AuthorizationDocument for authorizing the hosting of phone number capabilities on Twilio's platform. + * @param optional nil or *CreateAuthorizationDocumentOpts - Optional Parameters: + * @param "AddressSid" (string) - A 34 character string that uniquely identifies the Address resource that is associated with this AuthorizationDocument. + * @param "CcEmails" ([]string) - Email recipients who will be informed when an Authorization Document has been sent and signed. + * @param "ContactPhoneNumber" (string) - The contact phone number of the person authorized to sign the Authorization Document. + * @param "ContactTitle" (string) - The title of the person authorized to sign the Authorization Document for this phone number. + * @param "Email" (string) - Email that this AuthorizationDocument will be sent to for signing. + * @param "HostedNumberOrderSids" ([]string) - A list of HostedNumberOrder sids that this AuthorizationDocument will authorize for hosting phone number capabilities on Twilio's platform. +@return PreviewHostedNumbersAuthorizationDocument +*/ +func (c *DefaultApiService) CreateAuthorizationDocument(params *CreateAuthorizationDocumentParams) (*PreviewHostedNumbersAuthorizationDocument, error) { + path := "/HostedNumbers/AuthorizationDocuments" + + data := url.Values{} + headers := 0 + + if params != nil && params.AddressSid != nil { + data.Set("AddressSid", *params.AddressSid) + } + if params != nil && params.CcEmails != nil { + data.Set("CcEmails", *params.CcEmails) + } + if params != nil && params.ContactPhoneNumber != nil { + data.Set("ContactPhoneNumber", *params.ContactPhoneNumber) + } + if params != nil && params.ContactTitle != nil { + data.Set("ContactTitle", *params.ContactTitle) + } + if params != nil && params.Email != nil { + data.Set("Email", *params.Email) + } + if params != nil && params.HostedNumberOrderSids != nil { + data.Set("HostedNumberOrderSids", *params.HostedNumberOrderSids) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewHostedNumbersAuthorizationDocument{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateCertificateParams Optional parameters for the method 'CreateCertificate' +type CreateCertificateParams struct { + CertificateData *string `json:"CertificateData,omitempty"` + DeviceSid *string `json:"DeviceSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +CreateCertificate Method for CreateCertificate +Enroll a new Certificate credential to the Fleet, optionally giving it a friendly name and assigning to a Device. + * @param fleetSid + * @param optional nil or *CreateCertificateOpts - Optional Parameters: + * @param "CertificateData" (string) - Provides a URL encoded representation of the public certificate in PEM format. + * @param "DeviceSid" (string) - Provides the unique string identifier of an existing Device to become authenticated with this Certificate credential. + * @param "FriendlyName" (string) - Provides a human readable descriptive text for this Certificate credential, up to 256 characters long. +@return PreviewDeployedDevicesFleetCertificate +*/ +func (c *DefaultApiService) CreateCertificate(fleetSid string, params *CreateCertificateParams) (*PreviewDeployedDevicesFleetCertificate, error) { + path := "/DeployedDevices/Fleets/{FleetSid}/Certificates" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CertificateData != nil { + data.Set("CertificateData", *params.CertificateData) + } + if params != nil && params.DeviceSid != nil { + data.Set("DeviceSid", *params.DeviceSid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewDeployedDevicesFleetCertificate{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateChannelParams Optional parameters for the method 'CreateChannel' +type CreateChannelParams struct { + PhoneNumberSid *string `json:"PhoneNumberSid,omitempty"` +} + +/* +CreateChannel Method for CreateChannel +Associate a channel to a branded channel + * @param brandedChannelSid The unique SID identifier of the Branded Channel. The given phone number is going to be assigned to this Branded Channel + * @param optional nil or *CreateChannelOpts - Optional Parameters: + * @param "PhoneNumberSid" (string) - The unique SID identifier of the Phone Number of the Phone number to be assigned to the Branded Channel. +@return PreviewTrustedCommsBrandedChannelChannel +*/ +func (c *DefaultApiService) CreateChannel(brandedChannelSid string, params *CreateChannelParams) (*PreviewTrustedCommsBrandedChannelChannel, error) { + path := "/TrustedComms/BrandedChannels/{BrandedChannelSid}/Channels" + path = strings.Replace(path, "{"+"BrandedChannelSid"+"}", brandedChannelSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PhoneNumberSid != nil { + data.Set("PhoneNumberSid", *params.PhoneNumberSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewTrustedCommsBrandedChannelChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateCommandParams Optional parameters for the method 'CreateCommand' +type CreateCommandParams struct { + CallbackMethod *string `json:"CallbackMethod,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + Command *string `json:"Command,omitempty"` + CommandMode *string `json:"CommandMode,omitempty"` + Device *string `json:"Device,omitempty"` + IncludeSid *string `json:"IncludeSid,omitempty"` + Sim *string `json:"Sim,omitempty"` +} + +/* +CreateCommand Method for CreateCommand + * @param optional nil or *CreateCommandOpts - Optional Parameters: + * @param "CallbackMethod" (string) - + * @param "CallbackUrl" (string) - + * @param "Command" (string) - + * @param "CommandMode" (string) - + * @param "Device" (string) - + * @param "IncludeSid" (string) - + * @param "Sim" (string) - +@return PreviewWirelessCommand +*/ +func (c *DefaultApiService) CreateCommand(params *CreateCommandParams) (*PreviewWirelessCommand, error) { + path := "/wireless/Commands" + + data := url.Values{} + headers := 0 + + if params != nil && params.CallbackMethod != nil { + data.Set("CallbackMethod", *params.CallbackMethod) + } + if params != nil && params.CallbackUrl != nil { + data.Set("CallbackUrl", *params.CallbackUrl) + } + if params != nil && params.Command != nil { + data.Set("Command", *params.Command) + } + if params != nil && params.CommandMode != nil { + data.Set("CommandMode", *params.CommandMode) + } + if params != nil && params.Device != nil { + data.Set("Device", *params.Device) + } + if params != nil && params.IncludeSid != nil { + data.Set("IncludeSid", *params.IncludeSid) + } + if params != nil && params.Sim != nil { + data.Set("Sim", *params.Sim) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewWirelessCommand{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateDeploymentParams Optional parameters for the method 'CreateDeployment' +type CreateDeploymentParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` + SyncServiceSid *string `json:"SyncServiceSid,omitempty"` +} + +/* +CreateDeployment Method for CreateDeployment +Create a new Deployment in the Fleet, optionally giving it a friendly name and linking to a specific Twilio Sync service instance. + * @param fleetSid + * @param optional nil or *CreateDeploymentOpts - Optional Parameters: + * @param "FriendlyName" (string) - Provides a human readable descriptive text for this Deployment, up to 256 characters long. + * @param "SyncServiceSid" (string) - Provides the unique string identifier of the Twilio Sync service instance that will be linked to and accessible by this Deployment. +@return PreviewDeployedDevicesFleetDeployment +*/ +func (c *DefaultApiService) CreateDeployment(fleetSid string, params *CreateDeploymentParams) (*PreviewDeployedDevicesFleetDeployment, error) { + path := "/DeployedDevices/Fleets/{FleetSid}/Deployments" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.SyncServiceSid != nil { + data.Set("SyncServiceSid", *params.SyncServiceSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewDeployedDevicesFleetDeployment{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateDeviceParams Optional parameters for the method 'CreateDevice' +type CreateDeviceParams struct { + DeploymentSid *string `json:"DeploymentSid,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Identity *string `json:"Identity,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +CreateDevice Method for CreateDevice +Create a new Device in the Fleet, optionally giving it a unique name, friendly name, and assigning to a Deployment and/or human identity. + * @param fleetSid + * @param optional nil or *CreateDeviceOpts - Optional Parameters: + * @param "DeploymentSid" (string) - Specifies the unique string identifier of the Deployment group that this Device is going to be associated with. + * @param "Enabled" (bool) - + * @param "FriendlyName" (string) - Provides a human readable descriptive text to be assigned to this Device, up to 256 characters long. + * @param "Identity" (string) - Provides an arbitrary string identifier representing a human user to be associated with this Device, up to 256 characters long. + * @param "UniqueName" (string) - Provides a unique and addressable name to be assigned to this Device, to be used in addition to SID, up to 128 characters long. +@return PreviewDeployedDevicesFleetDevice +*/ +func (c *DefaultApiService) CreateDevice(fleetSid string, params *CreateDeviceParams) (*PreviewDeployedDevicesFleetDevice, error) { + path := "/DeployedDevices/Fleets/{FleetSid}/Devices" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.DeploymentSid != nil { + data.Set("DeploymentSid", *params.DeploymentSid) + } + if params != nil && params.Enabled != nil { + data.Set("Enabled", string(*params.Enabled)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewDeployedDevicesFleetDevice{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateDocumentParams Optional parameters for the method 'CreateDocument' +type CreateDocumentParams struct { + Data *map[string]interface{} `json:"Data,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +CreateDocument Method for CreateDocument + * @param serviceSid + * @param optional nil or *CreateDocumentOpts - Optional Parameters: + * @param "Data" (map[string]interface{}) - + * @param "UniqueName" (string) - +@return PreviewSyncServiceDocument +*/ +func (c *DefaultApiService) CreateDocument(serviceSid string, params *CreateDocumentParams) (*PreviewSyncServiceDocument, error) { + path := "/Sync/Services/{ServiceSid}/Documents" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Data != nil { + v, err := json.Marshal(params.Data) + + if err != nil { + return nil, err + } + + data.Set("Data", string(v)) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewSyncServiceDocument{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateExportCustomJobParams Optional parameters for the method 'CreateExportCustomJob' +type CreateExportCustomJobParams struct { + Email *string `json:"Email,omitempty"` + EndDay *string `json:"EndDay,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + StartDay *string `json:"StartDay,omitempty"` + WebhookMethod *string `json:"WebhookMethod,omitempty"` + WebhookUrl *string `json:"WebhookUrl,omitempty"` +} + +/* +CreateExportCustomJob Method for CreateExportCustomJob + * @param resourceType The type of communication – Messages or Calls + * @param optional nil or *CreateExportCustomJobOpts - Optional Parameters: + * @param "Email" (string) - The optional email to send the completion notification to + * @param "EndDay" (string) - The end day for the custom export specified as a string in the format of yyyy-mm-dd. End day is inclusive and must be 2 days earlier than the current UTC day. + * @param "FriendlyName" (string) - The friendly name specified when creating the job + * @param "StartDay" (string) - The start day for the custom export specified as a string in the format of yyyy-mm-dd + * @param "WebhookMethod" (string) - This is the method used to call the webhook on completion of the job. If this is supplied, `WebhookUrl` must also be supplied. + * @param "WebhookUrl" (string) - The optional webhook url called on completion of the job. If this is supplied, `WebhookMethod` must also be supplied. +@return PreviewBulkExportsExportExportCustomJob +*/ +func (c *DefaultApiService) CreateExportCustomJob(resourceType string, params *CreateExportCustomJobParams) (*PreviewBulkExportsExportExportCustomJob, error) { + path := "/BulkExports/Exports/{ResourceType}/Jobs" + path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Email != nil { + data.Set("Email", *params.Email) + } + if params != nil && params.EndDay != nil { + data.Set("EndDay", *params.EndDay) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.StartDay != nil { + data.Set("StartDay", *params.StartDay) + } + if params != nil && params.WebhookMethod != nil { + data.Set("WebhookMethod", *params.WebhookMethod) + } + if params != nil && params.WebhookUrl != nil { + data.Set("WebhookUrl", *params.WebhookUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewBulkExportsExportExportCustomJob{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateFieldParams Optional parameters for the method 'CreateField' +type CreateFieldParams struct { + FieldType *string `json:"FieldType,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +CreateField Method for CreateField + * @param assistantSid The unique ID of the parent Assistant. + * @param taskSid The unique ID of the Task associated with this Field. + * @param optional nil or *CreateFieldOpts - Optional Parameters: + * @param "FieldType" (string) - The unique name or sid of the FieldType. It can be any [Built-in Field Type](https://www.twilio.com/docs/assistant/api/built-in-field-types) or the unique_name or the Field Type sid of a custom Field Type. + * @param "UniqueName" (string) - A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. +@return PreviewUnderstandAssistantTaskField +*/ +func (c *DefaultApiService) CreateField(assistantSid string, taskSid string, params *CreateFieldParams) (*PreviewUnderstandAssistantTaskField, error) { + path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FieldType != nil { + data.Set("FieldType", *params.FieldType) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantTaskField{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateFieldTypeParams Optional parameters for the method 'CreateFieldType' +type CreateFieldTypeParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +CreateFieldType Method for CreateFieldType + * @param assistantSid + * @param optional nil or *CreateFieldTypeOpts - Optional Parameters: + * @param "FriendlyName" (string) - A user-provided string that identifies this resource. It is non-unique and can up to 255 characters long. + * @param "UniqueName" (string) - A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. +@return PreviewUnderstandAssistantFieldType +*/ +func (c *DefaultApiService) CreateFieldType(assistantSid string, params *CreateFieldTypeParams) (*PreviewUnderstandAssistantFieldType, error) { + path := "/understand/Assistants/{AssistantSid}/FieldTypes" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantFieldType{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateFieldValueParams Optional parameters for the method 'CreateFieldValue' +type CreateFieldValueParams struct { + Language *string `json:"Language,omitempty"` + SynonymOf *string `json:"SynonymOf,omitempty"` + Value *string `json:"Value,omitempty"` +} + +/* +CreateFieldValue Method for CreateFieldValue + * @param assistantSid + * @param fieldTypeSid + * @param optional nil or *CreateFieldValueOpts - Optional Parameters: + * @param "Language" (string) - An ISO language-country string of the value. + * @param "SynonymOf" (string) - A value that indicates this field value is a synonym of. Empty if the value is not a synonym. + * @param "Value" (string) - A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. +@return PreviewUnderstandAssistantFieldTypeFieldValue +*/ +func (c *DefaultApiService) CreateFieldValue(assistantSid string, fieldTypeSid string, params *CreateFieldValueParams) (*PreviewUnderstandAssistantFieldTypeFieldValue, error) { + path := "/understand/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"FieldTypeSid"+"}", fieldTypeSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Language != nil { + data.Set("Language", *params.Language) + } + if params != nil && params.SynonymOf != nil { + data.Set("SynonymOf", *params.SynonymOf) + } + if params != nil && params.Value != nil { + data.Set("Value", *params.Value) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantFieldTypeFieldValue{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateFleetParams Optional parameters for the method 'CreateFleet' +type CreateFleetParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +CreateFleet Method for CreateFleet +Create a new Fleet for scoping of deployed devices within your account. + * @param optional nil or *CreateFleetOpts - Optional Parameters: + * @param "FriendlyName" (string) - Provides a human readable descriptive text for this Fleet, up to 256 characters long. +@return PreviewDeployedDevicesFleet +*/ +func (c *DefaultApiService) CreateFleet(params *CreateFleetParams) (*PreviewDeployedDevicesFleet, error) { + path := "/DeployedDevices/Fleets" + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewDeployedDevicesFleet{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateHostedNumberOrderParams Optional parameters for the method 'CreateHostedNumberOrder' +type CreateHostedNumberOrderParams struct { + AccountSid *string `json:"AccountSid,omitempty"` + AddressSid *string `json:"AddressSid,omitempty"` + CcEmails *[]string `json:"CcEmails,omitempty"` + Email *string `json:"Email,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + SmsApplicationSid *string `json:"SmsApplicationSid,omitempty"` + SmsCapability *bool `json:"SmsCapability,omitempty"` + SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` + SmsMethod *string `json:"SmsMethod,omitempty"` + SmsUrl *string `json:"SmsUrl,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + StatusCallbackUrl *string `json:"StatusCallbackUrl,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + VerificationDocumentSid *string `json:"VerificationDocumentSid,omitempty"` + VerificationType *string `json:"VerificationType,omitempty"` +} + +/* +CreateHostedNumberOrder Method for CreateHostedNumberOrder +Host a phone number's capability on Twilio's platform. + * @param optional nil or *CreateHostedNumberOrderOpts - Optional Parameters: + * @param "AccountSid" (string) - This defaults to the AccountSid of the authorization the user is using. This can be provided to specify a subaccount to add the HostedNumberOrder to. + * @param "AddressSid" (string) - Optional. A 34 character string that uniquely identifies the Address resource that represents the address of the owner of this phone number. + * @param "CcEmails" ([]string) - Optional. A list of emails that the LOA document for this HostedNumberOrder will be carbon copied to. + * @param "Email" (string) - Optional. Email of the owner of this phone number that is being hosted. + * @param "FriendlyName" (string) - A 64 character string that is a human readable text that describes this resource. + * @param "PhoneNumber" (string) - The number to host in [+E.164](https://en.wikipedia.org/wiki/E.164) format + * @param "SmsApplicationSid" (string) - Optional. The 34 character sid of the application Twilio should use to handle SMS messages sent to this number. If a `SmsApplicationSid` is present, Twilio will ignore all of the SMS urls above and use those set on the application. + * @param "SmsCapability" (bool) - Used to specify that the SMS capability will be hosted on Twilio's platform. + * @param "SmsFallbackMethod" (string) - The HTTP method that should be used to request the SmsFallbackUrl. Must be either `GET` or `POST`. This will be copied onto the IncomingPhoneNumber resource. + * @param "SmsFallbackUrl" (string) - A URL that Twilio will request if an error occurs requesting or executing the TwiML defined by SmsUrl. This will be copied onto the IncomingPhoneNumber resource. + * @param "SmsMethod" (string) - The HTTP method that should be used to request the SmsUrl. Must be either `GET` or `POST`. This will be copied onto the IncomingPhoneNumber resource. + * @param "SmsUrl" (string) - The URL that Twilio should request when somebody sends an SMS to the phone number. This will be copied onto the IncomingPhoneNumber resource. + * @param "StatusCallbackMethod" (string) - Optional. The Status Callback Method attached to the IncomingPhoneNumber resource. + * @param "StatusCallbackUrl" (string) - Optional. The Status Callback URL attached to the IncomingPhoneNumber resource. + * @param "UniqueName" (string) - Optional. Provides a unique and addressable name to be assigned to this HostedNumberOrder, assigned by the developer, to be optionally used in addition to SID. + * @param "VerificationDocumentSid" (string) - Optional. The unique sid identifier of the Identity Document that represents the document for verifying ownership of the number to be hosted. Required when VerificationType is phone-bill. + * @param "VerificationType" (string) - Optional. The method used for verifying ownership of the number to be hosted. One of phone-call (default) or phone-bill. +@return PreviewHostedNumbersHostedNumberOrder +*/ +func (c *DefaultApiService) CreateHostedNumberOrder(params *CreateHostedNumberOrderParams) (*PreviewHostedNumbersHostedNumberOrder, error) { + path := "/HostedNumbers/HostedNumberOrders" + + data := url.Values{} + headers := 0 + + if params != nil && params.AccountSid != nil { + data.Set("AccountSid", *params.AccountSid) + } + if params != nil && params.AddressSid != nil { + data.Set("AddressSid", *params.AddressSid) + } + if params != nil && params.CcEmails != nil { + data.Set("CcEmails", *params.CcEmails) + } + if params != nil && params.Email != nil { + data.Set("Email", *params.Email) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PhoneNumber != nil { + data.Set("PhoneNumber", *params.PhoneNumber) + } + if params != nil && params.SmsApplicationSid != nil { + data.Set("SmsApplicationSid", *params.SmsApplicationSid) + } + if params != nil && params.SmsCapability != nil { + data.Set("SmsCapability", string(*params.SmsCapability)) + } + if params != nil && params.SmsFallbackMethod != nil { + data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) + } + if params != nil && params.SmsFallbackUrl != nil { + data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) + } + if params != nil && params.SmsMethod != nil { + data.Set("SmsMethod", *params.SmsMethod) + } + if params != nil && params.SmsUrl != nil { + data.Set("SmsUrl", *params.SmsUrl) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.StatusCallbackUrl != nil { + data.Set("StatusCallbackUrl", *params.StatusCallbackUrl) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + if params != nil && params.VerificationDocumentSid != nil { + data.Set("VerificationDocumentSid", *params.VerificationDocumentSid) + } + if params != nil && params.VerificationType != nil { + data.Set("VerificationType", *params.VerificationType) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewHostedNumbersHostedNumberOrder{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateInstalledAddOnParams Optional parameters for the method 'CreateInstalledAddOn' +type CreateInstalledAddOnParams struct { + AcceptTermsOfService *bool `json:"AcceptTermsOfService,omitempty"` + AvailableAddOnSid *string `json:"AvailableAddOnSid,omitempty"` + Configuration *map[string]interface{} `json:"Configuration,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +CreateInstalledAddOn Method for CreateInstalledAddOn +Install an Add-on for the Account specified. + * @param optional nil or *CreateInstalledAddOnOpts - Optional Parameters: + * @param "AcceptTermsOfService" (bool) - Whether the Terms of Service were accepted. + * @param "AvailableAddOnSid" (string) - The SID of the AvaliableAddOn to install. + * @param "Configuration" (map[string]interface{}) - The JSON object that represents the configuration of the new Add-on being installed. + * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. This value must be unique within the Account. +@return PreviewMarketplaceInstalledAddOn +*/ +func (c *DefaultApiService) CreateInstalledAddOn(params *CreateInstalledAddOnParams) (*PreviewMarketplaceInstalledAddOn, error) { + path := "/marketplace/InstalledAddOns" + + data := url.Values{} + headers := 0 + + if params != nil && params.AcceptTermsOfService != nil { + data.Set("AcceptTermsOfService", string(*params.AcceptTermsOfService)) + } + if params != nil && params.AvailableAddOnSid != nil { + data.Set("AvailableAddOnSid", *params.AvailableAddOnSid) + } + if params != nil && params.Configuration != nil { + v, err := json.Marshal(params.Configuration) + + if err != nil { + return nil, err + } + + data.Set("Configuration", string(v)) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewMarketplaceInstalledAddOn{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateKeyParams Optional parameters for the method 'CreateKey' +type CreateKeyParams struct { + DeviceSid *string `json:"DeviceSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +CreateKey Method for CreateKey +Create a new Key credential in the Fleet, optionally giving it a friendly name and assigning to a Device. + * @param fleetSid + * @param optional nil or *CreateKeyOpts - Optional Parameters: + * @param "DeviceSid" (string) - Provides the unique string identifier of an existing Device to become authenticated with this Key credential. + * @param "FriendlyName" (string) - Provides a human readable descriptive text for this Key credential, up to 256 characters long. +@return PreviewDeployedDevicesFleetKey +*/ +func (c *DefaultApiService) CreateKey(fleetSid string, params *CreateKeyParams) (*PreviewDeployedDevicesFleetKey, error) { + path := "/DeployedDevices/Fleets/{FleetSid}/Keys" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.DeviceSid != nil { + data.Set("DeviceSid", *params.DeviceSid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewDeployedDevicesFleetKey{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateModelBuildParams Optional parameters for the method 'CreateModelBuild' +type CreateModelBuildParams struct { + StatusCallback *string `json:"StatusCallback,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +CreateModelBuild Method for CreateModelBuild + * @param assistantSid + * @param optional nil or *CreateModelBuildOpts - Optional Parameters: + * @param "StatusCallback" (string) - + * @param "UniqueName" (string) - A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. For example: v0.1 +@return PreviewUnderstandAssistantModelBuild +*/ +func (c *DefaultApiService) CreateModelBuild(assistantSid string, params *CreateModelBuildParams) (*PreviewUnderstandAssistantModelBuild, error) { + path := "/understand/Assistants/{AssistantSid}/ModelBuilds" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantModelBuild{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateQueryParams Optional parameters for the method 'CreateQuery' +type CreateQueryParams struct { + Field *string `json:"Field,omitempty"` + Language *string `json:"Language,omitempty"` + ModelBuild *string `json:"ModelBuild,omitempty"` + Query *string `json:"Query,omitempty"` + Tasks *string `json:"Tasks,omitempty"` +} + +/* +CreateQuery Method for CreateQuery + * @param assistantSid The unique ID of the parent Assistant. + * @param optional nil or *CreateQueryOpts - Optional Parameters: + * @param "Field" (string) - Constraints the query to a given Field with an task. Useful when you know the Field you are expecting. It accepts one field in the format *task-unique-name-1*:*field-unique-name* + * @param "Language" (string) - An ISO language-country string of the sample. + * @param "ModelBuild" (string) - The Model Build Sid or unique name of the Model Build to be queried. + * @param "Query" (string) - A user-provided string that uniquely identifies this resource as an alternative to the sid. It can be up to 2048 characters long. + * @param "Tasks" (string) - Constraints the query to a set of tasks. Useful when you need to constrain the paths the user can take. Tasks should be comma separated *task-unique-name-1*, *task-unique-name-2* +@return PreviewUnderstandAssistantQuery +*/ +func (c *DefaultApiService) CreateQuery(assistantSid string, params *CreateQueryParams) (*PreviewUnderstandAssistantQuery, error) { + path := "/understand/Assistants/{AssistantSid}/Queries" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Field != nil { + data.Set("Field", *params.Field) + } + if params != nil && params.Language != nil { + data.Set("Language", *params.Language) + } + if params != nil && params.ModelBuild != nil { + data.Set("ModelBuild", *params.ModelBuild) + } + if params != nil && params.Query != nil { + data.Set("Query", *params.Query) + } + if params != nil && params.Tasks != nil { + data.Set("Tasks", *params.Tasks) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantQuery{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateRatePlanParams Optional parameters for the method 'CreateRatePlan' +type CreateRatePlanParams struct { + CommandsEnabled *bool `json:"CommandsEnabled,omitempty"` + DataEnabled *bool `json:"DataEnabled,omitempty"` + DataLimit *int32 `json:"DataLimit,omitempty"` + DataMetering *string `json:"DataMetering,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + InternationalRoaming *[]string `json:"InternationalRoaming,omitempty"` + MessagingEnabled *bool `json:"MessagingEnabled,omitempty"` + NationalRoamingEnabled *bool `json:"NationalRoamingEnabled,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` +} + +/* +CreateRatePlan Method for CreateRatePlan + * @param optional nil or *CreateRatePlanOpts - Optional Parameters: + * @param "CommandsEnabled" (bool) - + * @param "DataEnabled" (bool) - + * @param "DataLimit" (int32) - + * @param "DataMetering" (string) - + * @param "FriendlyName" (string) - + * @param "InternationalRoaming" ([]string) - + * @param "MessagingEnabled" (bool) - + * @param "NationalRoamingEnabled" (bool) - + * @param "UniqueName" (string) - + * @param "VoiceEnabled" (bool) - +@return PreviewWirelessRatePlan +*/ +func (c *DefaultApiService) CreateRatePlan(params *CreateRatePlanParams) (*PreviewWirelessRatePlan, error) { + path := "/wireless/RatePlans" + + data := url.Values{} + headers := 0 + + if params != nil && params.CommandsEnabled != nil { + data.Set("CommandsEnabled", string(*params.CommandsEnabled)) + } + if params != nil && params.DataEnabled != nil { + data.Set("DataEnabled", string(*params.DataEnabled)) + } + if params != nil && params.DataLimit != nil { + data.Set("DataLimit", string(*params.DataLimit)) + } + if params != nil && params.DataMetering != nil { + data.Set("DataMetering", *params.DataMetering) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.InternationalRoaming != nil { + data.Set("InternationalRoaming", *params.InternationalRoaming) + } + if params != nil && params.MessagingEnabled != nil { + data.Set("MessagingEnabled", string(*params.MessagingEnabled)) + } + if params != nil && params.NationalRoamingEnabled != nil { + data.Set("NationalRoamingEnabled", string(*params.NationalRoamingEnabled)) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + if params != nil && params.VoiceEnabled != nil { + data.Set("VoiceEnabled", string(*params.VoiceEnabled)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewWirelessRatePlan{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateSampleParams Optional parameters for the method 'CreateSample' +type CreateSampleParams struct { + Language *string `json:"Language,omitempty"` + SourceChannel *string `json:"SourceChannel,omitempty"` + TaggedText *string `json:"TaggedText,omitempty"` +} + +/* +CreateSample Method for CreateSample + * @param assistantSid The unique ID of the Assistant. + * @param taskSid The unique ID of the Task associated with this Sample. + * @param optional nil or *CreateSampleOpts - Optional Parameters: + * @param "Language" (string) - An ISO language-country string of the sample. + * @param "SourceChannel" (string) - The communication channel the sample was captured. It can be: *voice*, *sms*, *chat*, *alexa*, *google-assistant*, or *slack*. If not included the value will be null + * @param "TaggedText" (string) - The text example of how end-users may express this task. The sample may contain Field tag blocks. +@return PreviewUnderstandAssistantTaskSample +*/ +func (c *DefaultApiService) CreateSample(assistantSid string, taskSid string, params *CreateSampleParams) (*PreviewUnderstandAssistantTaskSample, error) { + path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Language != nil { + data.Set("Language", *params.Language) + } + if params != nil && params.SourceChannel != nil { + data.Set("SourceChannel", *params.SourceChannel) + } + if params != nil && params.TaggedText != nil { + data.Set("TaggedText", *params.TaggedText) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantTaskSample{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateServiceParams Optional parameters for the method 'CreateService' +type CreateServiceParams struct { + AclEnabled *bool `json:"AclEnabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + ReachabilityWebhooksEnabled *bool `json:"ReachabilityWebhooksEnabled,omitempty"` + WebhookUrl *string `json:"WebhookUrl,omitempty"` +} + +/* +CreateService Method for CreateService + * @param optional nil or *CreateServiceOpts - Optional Parameters: + * @param "AclEnabled" (bool) - + * @param "FriendlyName" (string) - + * @param "ReachabilityWebhooksEnabled" (bool) - + * @param "WebhookUrl" (string) - +@return PreviewSyncService +*/ +func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*PreviewSyncService, error) { + path := "/Sync/Services" + + data := url.Values{} + headers := 0 + + if params != nil && params.AclEnabled != nil { + data.Set("AclEnabled", string(*params.AclEnabled)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.ReachabilityWebhooksEnabled != nil { + data.Set("ReachabilityWebhooksEnabled", string(*params.ReachabilityWebhooksEnabled)) + } + if params != nil && params.WebhookUrl != nil { + data.Set("WebhookUrl", *params.WebhookUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewSyncService{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateSyncListParams Optional parameters for the method 'CreateSyncList' +type CreateSyncListParams struct { + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +CreateSyncList Method for CreateSyncList + * @param serviceSid + * @param optional nil or *CreateSyncListOpts - Optional Parameters: + * @param "UniqueName" (string) - +@return PreviewSyncServiceSyncList +*/ +func (c *DefaultApiService) CreateSyncList(serviceSid string, params *CreateSyncListParams) (*PreviewSyncServiceSyncList, error) { + path := "/Sync/Services/{ServiceSid}/Lists" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewSyncServiceSyncList{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateSyncListItemParams Optional parameters for the method 'CreateSyncListItem' +type CreateSyncListItemParams struct { + Data *map[string]interface{} `json:"Data,omitempty"` +} + +/* +CreateSyncListItem Method for CreateSyncListItem + * @param serviceSid + * @param listSid + * @param optional nil or *CreateSyncListItemOpts - Optional Parameters: + * @param "Data" (map[string]interface{}) - +@return PreviewSyncServiceSyncListSyncListItem +*/ +func (c *DefaultApiService) CreateSyncListItem(serviceSid string, listSid string, params *CreateSyncListItemParams) (*PreviewSyncServiceSyncListSyncListItem, error) { + path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Items" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Data != nil { + v, err := json.Marshal(params.Data) + + if err != nil { + return nil, err + } + + data.Set("Data", string(v)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewSyncServiceSyncListSyncListItem{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateSyncMapParams Optional parameters for the method 'CreateSyncMap' +type CreateSyncMapParams struct { + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +CreateSyncMap Method for CreateSyncMap + * @param serviceSid + * @param optional nil or *CreateSyncMapOpts - Optional Parameters: + * @param "UniqueName" (string) - +@return PreviewSyncServiceSyncMap +*/ +func (c *DefaultApiService) CreateSyncMap(serviceSid string, params *CreateSyncMapParams) (*PreviewSyncServiceSyncMap, error) { + path := "/Sync/Services/{ServiceSid}/Maps" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewSyncServiceSyncMap{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateSyncMapItemParams Optional parameters for the method 'CreateSyncMapItem' +type CreateSyncMapItemParams struct { + Data *map[string]interface{} `json:"Data,omitempty"` + Key *string `json:"Key,omitempty"` +} + +/* +CreateSyncMapItem Method for CreateSyncMapItem + * @param serviceSid + * @param mapSid + * @param optional nil or *CreateSyncMapItemOpts - Optional Parameters: + * @param "Data" (map[string]interface{}) - + * @param "Key" (string) - +@return PreviewSyncServiceSyncMapSyncMapItem +*/ +func (c *DefaultApiService) CreateSyncMapItem(serviceSid string, mapSid string, params *CreateSyncMapItemParams) (*PreviewSyncServiceSyncMapSyncMapItem, error) { + path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Items" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Data != nil { + v, err := json.Marshal(params.Data) + + if err != nil { + return nil, err + } + + data.Set("Data", string(v)) + } + if params != nil && params.Key != nil { + data.Set("Key", *params.Key) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewSyncServiceSyncMapSyncMapItem{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateTaskParams Optional parameters for the method 'CreateTask' +type CreateTaskParams struct { + Actions *map[string]interface{} `json:"Actions,omitempty"` + ActionsUrl *string `json:"ActionsUrl,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +CreateTask Method for CreateTask + * @param assistantSid The unique ID of the Assistant. + * @param optional nil or *CreateTaskOpts - Optional Parameters: + * @param "Actions" (map[string]interface{}) - A user-provided JSON object encoded as a string to specify the actions for this task. It is optional and non-unique. + * @param "ActionsUrl" (string) - User-provided HTTP endpoint where from the assistant fetches actions + * @param "FriendlyName" (string) - A user-provided string that identifies this resource. It is non-unique and can up to 255 characters long. + * @param "UniqueName" (string) - A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. +@return PreviewUnderstandAssistantTask +*/ +func (c *DefaultApiService) CreateTask(assistantSid string, params *CreateTaskParams) (*PreviewUnderstandAssistantTask, error) { + path := "/understand/Assistants/{AssistantSid}/Tasks" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Actions != nil { + v, err := json.Marshal(params.Actions) + + if err != nil { + return nil, err + } + + data.Set("Actions", string(v)) + } + if params != nil && params.ActionsUrl != nil { + data.Set("ActionsUrl", *params.ActionsUrl) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantTask{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +DeleteAssistant Method for DeleteAssistant + * @param sid A 34 character string that uniquely identifies this resource. +*/ +func (c *DefaultApiService) DeleteAssistant(sid string) (error) { + path := "/understand/Assistants/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteCertificate Method for DeleteCertificate +Unregister a specific Certificate credential from the Fleet, effectively disallowing any inbound client connections that are presenting it. + * @param fleetSid + * @param sid Provides a 34 character string that uniquely identifies the requested Certificate credential resource. +*/ +func (c *DefaultApiService) DeleteCertificate(fleetSid string, sid string) (error) { + path := "/DeployedDevices/Fleets/{FleetSid}/Certificates/{Sid}" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteDeployment Method for DeleteDeployment +Delete a specific Deployment from the Fleet, leaving associated devices effectively undeployed. + * @param fleetSid + * @param sid Provides a 34 character string that uniquely identifies the requested Deployment resource. +*/ +func (c *DefaultApiService) DeleteDeployment(fleetSid string, sid string) (error) { + path := "/DeployedDevices/Fleets/{FleetSid}/Deployments/{Sid}" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteDevice Method for DeleteDevice +Delete a specific Device from the Fleet, also removing it from associated Deployments. + * @param fleetSid + * @param sid Provides a 34 character string that uniquely identifies the requested Device resource. +*/ +func (c *DefaultApiService) DeleteDevice(fleetSid string, sid string) (error) { + path := "/DeployedDevices/Fleets/{FleetSid}/Devices/{Sid}" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} +// DeleteDocumentParams Optional parameters for the method 'DeleteDocument' +type DeleteDocumentParams struct { + If-Match *string `json:"If-Match,omitempty"` +} + +/* +DeleteDocument Method for DeleteDocument + * @param serviceSid + * @param sid + * @param optional nil or *DeleteDocumentOpts - Optional Parameters: + * @param "If-Match" (string) - The If-Match HTTP request header +*/ +func (c *DefaultApiService) DeleteDocument(serviceSid string, sid string, params *DeleteDocumentParams) (error) { + path := "/Sync/Services/{ServiceSid}/Documents/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + + if params != nil && params.If-Match != nil { + headers["If-Match"] = *params.If-Match + } + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteDocumentPermission Method for DeleteDocumentPermission +Delete a specific Sync Document Permission. + * @param serviceSid + * @param documentSid Identifier of the Sync Document. Either a SID or a unique name. + * @param identity Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. +*/ +func (c *DefaultApiService) DeleteDocumentPermission(serviceSid string, documentSid string, identity string) (error) { + path := "/Sync/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"DocumentSid"+"}", documentSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteField Method for DeleteField + * @param assistantSid The unique ID of the Assistant. + * @param taskSid The unique ID of the Task associated with this Field. + * @param sid A 34 character string that uniquely identifies this resource. +*/ +func (c *DefaultApiService) DeleteField(assistantSid string, taskSid string, sid string) (error) { + path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteFieldType Method for DeleteFieldType + * @param assistantSid + * @param sid +*/ +func (c *DefaultApiService) DeleteFieldType(assistantSid string, sid string) (error) { + path := "/understand/Assistants/{AssistantSid}/FieldTypes/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteFieldValue Method for DeleteFieldValue + * @param assistantSid + * @param fieldTypeSid + * @param sid +*/ +func (c *DefaultApiService) DeleteFieldValue(assistantSid string, fieldTypeSid string, sid string) (error) { + path := "/understand/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"FieldTypeSid"+"}", fieldTypeSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteFleet Method for DeleteFleet +Delete a specific Fleet from your account, also destroys all nested resources: Devices, Deployments, Certificates, Keys. + * @param sid Provides a 34 character string that uniquely identifies the requested Fleet resource. +*/ +func (c *DefaultApiService) DeleteFleet(sid string) (error) { + path := "/DeployedDevices/Fleets/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteHostedNumberOrder Method for DeleteHostedNumberOrder +Cancel the HostedNumberOrder (only available when the status is in `received`). + * @param sid A 34 character string that uniquely identifies this HostedNumberOrder. +*/ +func (c *DefaultApiService) DeleteHostedNumberOrder(sid string) (error) { + path := "/HostedNumbers/HostedNumberOrders/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteInstalledAddOn Method for DeleteInstalledAddOn +Remove an Add-on installation from your account + * @param sid The SID of the InstalledAddOn resource to delete. +*/ +func (c *DefaultApiService) DeleteInstalledAddOn(sid string) (error) { + path := "/marketplace/InstalledAddOns/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteJob Method for DeleteJob + * @param jobSid The unique string that that we created to identify the Bulk Export job +*/ +func (c *DefaultApiService) DeleteJob(jobSid string) (error) { + path := "/BulkExports/Exports/Jobs/{JobSid}" + path = strings.Replace(path, "{"+"JobSid"+"}", jobSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteKey Method for DeleteKey +Delete a specific Key credential from the Fleet, effectively disallowing any inbound client connections that are presenting it. + * @param fleetSid + * @param sid Provides a 34 character string that uniquely identifies the requested Key credential resource. +*/ +func (c *DefaultApiService) DeleteKey(fleetSid string, sid string) (error) { + path := "/DeployedDevices/Fleets/{FleetSid}/Keys/{Sid}" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteModelBuild Method for DeleteModelBuild + * @param assistantSid + * @param sid +*/ +func (c *DefaultApiService) DeleteModelBuild(assistantSid string, sid string) (error) { + path := "/understand/Assistants/{AssistantSid}/ModelBuilds/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteQuery Method for DeleteQuery + * @param assistantSid The unique ID of the Assistant. + * @param sid A 34 character string that uniquely identifies this resource. +*/ +func (c *DefaultApiService) DeleteQuery(assistantSid string, sid string) (error) { + path := "/understand/Assistants/{AssistantSid}/Queries/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteRatePlan Method for DeleteRatePlan + * @param sid +*/ +func (c *DefaultApiService) DeleteRatePlan(sid string) (error) { + path := "/wireless/RatePlans/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteSample Method for DeleteSample + * @param assistantSid The unique ID of the Assistant. + * @param taskSid The unique ID of the Task associated with this Sample. + * @param sid A 34 character string that uniquely identifies this resource. +*/ +func (c *DefaultApiService) DeleteSample(assistantSid string, taskSid string, sid string) (error) { + path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteService Method for DeleteService + * @param sid +*/ +func (c *DefaultApiService) DeleteService(sid string) (error) { + path := "/Sync/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteSyncList Method for DeleteSyncList + * @param serviceSid + * @param sid +*/ +func (c *DefaultApiService) DeleteSyncList(serviceSid string, sid string) (error) { + path := "/Sync/Services/{ServiceSid}/Lists/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} +// DeleteSyncListItemParams Optional parameters for the method 'DeleteSyncListItem' +type DeleteSyncListItemParams struct { + If-Match *string `json:"If-Match,omitempty"` +} + +/* +DeleteSyncListItem Method for DeleteSyncListItem + * @param serviceSid + * @param listSid + * @param index + * @param optional nil or *DeleteSyncListItemOpts - Optional Parameters: + * @param "If-Match" (string) - The If-Match HTTP request header +*/ +func (c *DefaultApiService) DeleteSyncListItem(serviceSid string, listSid string, index int32, params *DeleteSyncListItemParams) (error) { + path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + path = strings.Replace(path, "{"+"Index"+"}", index, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + + if params != nil && params.If-Match != nil { + headers["If-Match"] = *params.If-Match + } + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteSyncListPermission Method for DeleteSyncListPermission +Delete a specific Sync List Permission. + * @param serviceSid + * @param listSid Identifier of the Sync List. Either a SID or a unique name. + * @param identity Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. +*/ +func (c *DefaultApiService) DeleteSyncListPermission(serviceSid string, listSid string, identity string) (error) { + path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteSyncMap Method for DeleteSyncMap + * @param serviceSid + * @param sid +*/ +func (c *DefaultApiService) DeleteSyncMap(serviceSid string, sid string) (error) { + path := "/Sync/Services/{ServiceSid}/Maps/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} +// DeleteSyncMapItemParams Optional parameters for the method 'DeleteSyncMapItem' +type DeleteSyncMapItemParams struct { + If-Match *string `json:"If-Match,omitempty"` +} + +/* +DeleteSyncMapItem Method for DeleteSyncMapItem + * @param serviceSid + * @param mapSid + * @param key + * @param optional nil or *DeleteSyncMapItemOpts - Optional Parameters: + * @param "If-Match" (string) - The If-Match HTTP request header +*/ +func (c *DefaultApiService) DeleteSyncMapItem(serviceSid string, mapSid string, key string, params *DeleteSyncMapItemParams) (error) { + path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + path = strings.Replace(path, "{"+"Key"+"}", key, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + + if params != nil && params.If-Match != nil { + headers["If-Match"] = *params.If-Match + } + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteSyncMapPermission Method for DeleteSyncMapPermission +Delete a specific Sync Map Permission. + * @param serviceSid + * @param mapSid Identifier of the Sync Map. Either a SID or a unique name. + * @param identity Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. +*/ +func (c *DefaultApiService) DeleteSyncMapPermission(serviceSid string, mapSid string, identity string) (error) { + path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteTask Method for DeleteTask + * @param assistantSid The unique ID of the Assistant. + * @param sid A 34 character string that uniquely identifies this resource. +*/ +func (c *DefaultApiService) DeleteTask(assistantSid string, sid string) (error) { + path := "/understand/Assistants/{AssistantSid}/Tasks/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +FetchAssistant Method for FetchAssistant + * @param sid A 34 character string that uniquely identifies this resource. +@return PreviewUnderstandAssistant +*/ +func (c *DefaultApiService) FetchAssistant(sid string) (*PreviewUnderstandAssistant, error) { + path := "/understand/Assistants/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchAssistantFallbackActions Method for FetchAssistantFallbackActions + * @param assistantSid +@return PreviewUnderstandAssistantAssistantFallbackActions +*/ +func (c *DefaultApiService) FetchAssistantFallbackActions(assistantSid string) (*PreviewUnderstandAssistantAssistantFallbackActions, error) { + path := "/understand/Assistants/{AssistantSid}/FallbackActions" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantAssistantFallbackActions{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchAssistantInitiationActions Method for FetchAssistantInitiationActions + * @param assistantSid +@return PreviewUnderstandAssistantAssistantInitiationActions +*/ +func (c *DefaultApiService) FetchAssistantInitiationActions(assistantSid string) (*PreviewUnderstandAssistantAssistantInitiationActions, error) { + path := "/understand/Assistants/{AssistantSid}/InitiationActions" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantAssistantInitiationActions{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchAuthorizationDocument Method for FetchAuthorizationDocument +Fetch a specific AuthorizationDocument. + * @param sid A 34 character string that uniquely identifies this AuthorizationDocument. +@return PreviewHostedNumbersAuthorizationDocument +*/ +func (c *DefaultApiService) FetchAuthorizationDocument(sid string) (*PreviewHostedNumbersAuthorizationDocument, error) { + path := "/HostedNumbers/AuthorizationDocuments/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewHostedNumbersAuthorizationDocument{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchAvailableAddOn Method for FetchAvailableAddOn +Fetch an instance of an Add-on currently available to be installed. + * @param sid The SID of the AvailableAddOn resource to fetch. +@return PreviewMarketplaceAvailableAddOn +*/ +func (c *DefaultApiService) FetchAvailableAddOn(sid string) (*PreviewMarketplaceAvailableAddOn, error) { + path := "/marketplace/AvailableAddOns/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewMarketplaceAvailableAddOn{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchAvailableAddOnExtension Method for FetchAvailableAddOnExtension +Fetch an instance of an Extension for the Available Add-on. + * @param availableAddOnSid The SID of the AvailableAddOn resource with the extension to fetch. + * @param sid The SID of the AvailableAddOn Extension resource to fetch. +@return PreviewMarketplaceAvailableAddOnAvailableAddOnExtension +*/ +func (c *DefaultApiService) FetchAvailableAddOnExtension(availableAddOnSid string, sid string) (*PreviewMarketplaceAvailableAddOnAvailableAddOnExtension, error) { + path := "/marketplace/AvailableAddOns/{AvailableAddOnSid}/Extensions/{Sid}" + path = strings.Replace(path, "{"+"AvailableAddOnSid"+"}", availableAddOnSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewMarketplaceAvailableAddOnAvailableAddOnExtension{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchBrandedChannel Method for FetchBrandedChannel +Fetch a specific Branded Channel. + * @param sid The unique SID identifier of the Branded Channel. +@return PreviewTrustedCommsBrandedChannel +*/ +func (c *DefaultApiService) FetchBrandedChannel(sid string) (*PreviewTrustedCommsBrandedChannel, error) { + path := "/TrustedComms/BrandedChannels/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewTrustedCommsBrandedChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// FetchBrandsInformationParams Optional parameters for the method 'FetchBrandsInformation' +type FetchBrandsInformationParams struct { + If-None-Match *string `json:"If-None-Match,omitempty"` +} + +/* +FetchBrandsInformation Method for FetchBrandsInformation +Retrieve the newest available BrandInformation + * @param optional nil or *FetchBrandsInformationOpts - Optional Parameters: + * @param "If-None-Match" (string) - The If-None-Match HTTP request header +@return PreviewTrustedCommsBrandsInformation +*/ +func (c *DefaultApiService) FetchBrandsInformation(params *FetchBrandsInformationParams) (*PreviewTrustedCommsBrandsInformation, error) { + path := "/TrustedComms/BrandsInformation" + + data := url.Values{} + headers := make(map[string]interface{}) + + + if params != nil && params.If-None-Match != nil { + headers["If-None-Match"] = *params.If-None-Match + } + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewTrustedCommsBrandsInformation{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchCertificate Method for FetchCertificate +Fetch information about a specific Certificate credential in the Fleet. + * @param fleetSid + * @param sid Provides a 34 character string that uniquely identifies the requested Certificate credential resource. +@return PreviewDeployedDevicesFleetCertificate +*/ +func (c *DefaultApiService) FetchCertificate(fleetSid string, sid string) (*PreviewDeployedDevicesFleetCertificate, error) { + path := "/DeployedDevices/Fleets/{FleetSid}/Certificates/{Sid}" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewDeployedDevicesFleetCertificate{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchCommand Method for FetchCommand + * @param sid +@return PreviewWirelessCommand +*/ +func (c *DefaultApiService) FetchCommand(sid string) (*PreviewWirelessCommand, error) { + path := "/wireless/Commands/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewWirelessCommand{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// FetchCpsParams Optional parameters for the method 'FetchCps' +type FetchCpsParams struct { + X-Xcnam-Sensitive-Phone-Number *string `json:"X-Xcnam-Sensitive-Phone-Number,omitempty"` +} + +/* +FetchCps Method for FetchCps +Fetch a specific Call Placement Service (CPS) given a phone number via `X-XCNAM-Sensitive-Phone-Number` header. + * @param optional nil or *FetchCpsOpts - Optional Parameters: + * @param "X-Xcnam-Sensitive-Phone-Number" (string) - The X-Xcnam-Sensitive-Phone-Number HTTP request header +@return PreviewTrustedCommsCps +*/ +func (c *DefaultApiService) FetchCps(params *FetchCpsParams) (*PreviewTrustedCommsCps, error) { + path := "/TrustedComms/CPS" + + data := url.Values{} + headers := make(map[string]interface{}) + + + if params != nil && params.X-Xcnam-Sensitive-Phone-Number != nil { + headers["X-Xcnam-Sensitive-Phone-Number"] = *params.X-Xcnam-Sensitive-Phone-Number + } + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewTrustedCommsCps{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// FetchCurrentCallParams Optional parameters for the method 'FetchCurrentCall' +type FetchCurrentCallParams struct { + X-Xcnam-Sensitive-Phone-Number-From *string `json:"X-Xcnam-Sensitive-Phone-Number-From,omitempty"` + X-Xcnam-Sensitive-Phone-Number-To *string `json:"X-Xcnam-Sensitive-Phone-Number-To,omitempty"` +} + +/* +FetchCurrentCall Method for FetchCurrentCall +Retrieve a current call given the originating and terminating number via `X-XCNAM-Sensitive-Phone-Number-From` and `X-XCNAM-Sensitive-Phone-Number-To` headers. + * @param optional nil or *FetchCurrentCallOpts - Optional Parameters: + * @param "X-Xcnam-Sensitive-Phone-Number-From" (string) - The X-Xcnam-Sensitive-Phone-Number-From HTTP request header + * @param "X-Xcnam-Sensitive-Phone-Number-To" (string) - The X-Xcnam-Sensitive-Phone-Number-To HTTP request header +@return PreviewTrustedCommsCurrentCall +*/ +func (c *DefaultApiService) FetchCurrentCall(params *FetchCurrentCallParams) (*PreviewTrustedCommsCurrentCall, error) { + path := "/TrustedComms/CurrentCall" + + data := url.Values{} + headers := make(map[string]interface{}) + + + if params != nil && params.X-Xcnam-Sensitive-Phone-Number-From != nil { + headers["X-Xcnam-Sensitive-Phone-Number-From"] = *params.X-Xcnam-Sensitive-Phone-Number-From + } + if params != nil && params.X-Xcnam-Sensitive-Phone-Number-To != nil { + headers["X-Xcnam-Sensitive-Phone-Number-To"] = *params.X-Xcnam-Sensitive-Phone-Number-To + } + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewTrustedCommsCurrentCall{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchDay Method for FetchDay +Fetch a specific Day. + * @param resourceType The type of communication – Messages, Calls + * @param day The ISO 8601 format date of the resources in the file, for a UTC day +*/ +func (c *DefaultApiService) FetchDay(resourceType string, day string) (error) { + path := "/BulkExports/Exports/{ResourceType}/Days/{Day}" + path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + path = strings.Replace(path, "{"+"Day"+"}", day, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +FetchDeployment Method for FetchDeployment +Fetch information about a specific Deployment in the Fleet. + * @param fleetSid + * @param sid Provides a 34 character string that uniquely identifies the requested Deployment resource. +@return PreviewDeployedDevicesFleetDeployment +*/ +func (c *DefaultApiService) FetchDeployment(fleetSid string, sid string) (*PreviewDeployedDevicesFleetDeployment, error) { + path := "/DeployedDevices/Fleets/{FleetSid}/Deployments/{Sid}" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewDeployedDevicesFleetDeployment{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchDevice Method for FetchDevice +Fetch information about a specific Device in the Fleet. + * @param fleetSid + * @param sid Provides a 34 character string that uniquely identifies the requested Device resource. +@return PreviewDeployedDevicesFleetDevice +*/ +func (c *DefaultApiService) FetchDevice(fleetSid string, sid string) (*PreviewDeployedDevicesFleetDevice, error) { + path := "/DeployedDevices/Fleets/{FleetSid}/Devices/{Sid}" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewDeployedDevicesFleetDevice{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchDialogue Method for FetchDialogue + * @param assistantSid + * @param sid +@return PreviewUnderstandAssistantDialogue +*/ +func (c *DefaultApiService) FetchDialogue(assistantSid string, sid string) (*PreviewUnderstandAssistantDialogue, error) { + path := "/understand/Assistants/{AssistantSid}/Dialogues/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantDialogue{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchDocument Method for FetchDocument + * @param serviceSid + * @param sid +@return PreviewSyncServiceDocument +*/ +func (c *DefaultApiService) FetchDocument(serviceSid string, sid string) (*PreviewSyncServiceDocument, error) { + path := "/Sync/Services/{ServiceSid}/Documents/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewSyncServiceDocument{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchDocumentPermission Method for FetchDocumentPermission +Fetch a specific Sync Document Permission. + * @param serviceSid + * @param documentSid Identifier of the Sync Document. Either a SID or a unique name. + * @param identity Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. +@return PreviewSyncServiceDocumentDocumentPermission +*/ +func (c *DefaultApiService) FetchDocumentPermission(serviceSid string, documentSid string, identity string) (*PreviewSyncServiceDocumentDocumentPermission, error) { + path := "/Sync/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"DocumentSid"+"}", documentSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewSyncServiceDocumentDocumentPermission{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchExport Method for FetchExport +Fetch a specific Export. + * @param resourceType The type of communication – Messages, Calls +@return PreviewBulkExportsExport +*/ +func (c *DefaultApiService) FetchExport(resourceType string) (*PreviewBulkExportsExport, error) { + path := "/BulkExports/Exports/{ResourceType}" + path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewBulkExportsExport{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchExportConfiguration Method for FetchExportConfiguration +Fetch a specific Export Configuration. + * @param resourceType The type of communication – Messages, Calls +@return PreviewBulkExportsExportConfiguration +*/ +func (c *DefaultApiService) FetchExportConfiguration(resourceType string) (*PreviewBulkExportsExportConfiguration, error) { + path := "/BulkExports/Exports/{ResourceType}/Configuration" + path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewBulkExportsExportConfiguration{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchField Method for FetchField + * @param assistantSid The unique ID of the Assistant. + * @param taskSid The unique ID of the Task associated with this Field. + * @param sid A 34 character string that uniquely identifies this resource. +@return PreviewUnderstandAssistantTaskField +*/ +func (c *DefaultApiService) FetchField(assistantSid string, taskSid string, sid string) (*PreviewUnderstandAssistantTaskField, error) { + path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantTaskField{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchFieldType Method for FetchFieldType + * @param assistantSid + * @param sid +@return PreviewUnderstandAssistantFieldType +*/ +func (c *DefaultApiService) FetchFieldType(assistantSid string, sid string) (*PreviewUnderstandAssistantFieldType, error) { + path := "/understand/Assistants/{AssistantSid}/FieldTypes/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantFieldType{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchFieldValue Method for FetchFieldValue + * @param assistantSid + * @param fieldTypeSid + * @param sid +@return PreviewUnderstandAssistantFieldTypeFieldValue +*/ +func (c *DefaultApiService) FetchFieldValue(assistantSid string, fieldTypeSid string, sid string) (*PreviewUnderstandAssistantFieldTypeFieldValue, error) { + path := "/understand/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"FieldTypeSid"+"}", fieldTypeSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantFieldTypeFieldValue{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchFleet Method for FetchFleet +Fetch information about a specific Fleet in your account. + * @param sid Provides a 34 character string that uniquely identifies the requested Fleet resource. +@return PreviewDeployedDevicesFleet +*/ +func (c *DefaultApiService) FetchFleet(sid string) (*PreviewDeployedDevicesFleet, error) { + path := "/DeployedDevices/Fleets/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewDeployedDevicesFleet{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchHostedNumberOrder Method for FetchHostedNumberOrder +Fetch a specific HostedNumberOrder. + * @param sid A 34 character string that uniquely identifies this HostedNumberOrder. +@return PreviewHostedNumbersHostedNumberOrder +*/ +func (c *DefaultApiService) FetchHostedNumberOrder(sid string) (*PreviewHostedNumbersHostedNumberOrder, error) { + path := "/HostedNumbers/HostedNumberOrders/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewHostedNumbersHostedNumberOrder{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchInstalledAddOn Method for FetchInstalledAddOn +Fetch an instance of an Add-on currently installed on this Account. + * @param sid The SID of the InstalledAddOn resource to fetch. +@return PreviewMarketplaceInstalledAddOn +*/ +func (c *DefaultApiService) FetchInstalledAddOn(sid string) (*PreviewMarketplaceInstalledAddOn, error) { + path := "/marketplace/InstalledAddOns/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewMarketplaceInstalledAddOn{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchInstalledAddOnExtension Method for FetchInstalledAddOnExtension +Fetch an instance of an Extension for the Installed Add-on. + * @param installedAddOnSid The SID of the InstalledAddOn resource with the extension to fetch. + * @param sid The SID of the InstalledAddOn Extension resource to fetch. +@return PreviewMarketplaceInstalledAddOnInstalledAddOnExtension +*/ +func (c *DefaultApiService) FetchInstalledAddOnExtension(installedAddOnSid string, sid string) (*PreviewMarketplaceInstalledAddOnInstalledAddOnExtension, error) { + path := "/marketplace/InstalledAddOns/{InstalledAddOnSid}/Extensions/{Sid}" + path = strings.Replace(path, "{"+"InstalledAddOnSid"+"}", installedAddOnSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewMarketplaceInstalledAddOnInstalledAddOnExtension{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchJob Method for FetchJob + * @param jobSid +@return PreviewBulkExportsExportJob +*/ +func (c *DefaultApiService) FetchJob(jobSid string) (*PreviewBulkExportsExportJob, error) { + path := "/BulkExports/Exports/Jobs/{JobSid}" + path = strings.Replace(path, "{"+"JobSid"+"}", jobSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewBulkExportsExportJob{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchKey Method for FetchKey +Fetch information about a specific Key credential in the Fleet. + * @param fleetSid + * @param sid Provides a 34 character string that uniquely identifies the requested Key credential resource. +@return PreviewDeployedDevicesFleetKey +*/ +func (c *DefaultApiService) FetchKey(fleetSid string, sid string) (*PreviewDeployedDevicesFleetKey, error) { + path := "/DeployedDevices/Fleets/{FleetSid}/Keys/{Sid}" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewDeployedDevicesFleetKey{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchModelBuild Method for FetchModelBuild + * @param assistantSid + * @param sid +@return PreviewUnderstandAssistantModelBuild +*/ +func (c *DefaultApiService) FetchModelBuild(assistantSid string, sid string) (*PreviewUnderstandAssistantModelBuild, error) { + path := "/understand/Assistants/{AssistantSid}/ModelBuilds/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantModelBuild{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchQuery Method for FetchQuery + * @param assistantSid The unique ID of the Assistant. + * @param sid A 34 character string that uniquely identifies this resource. +@return PreviewUnderstandAssistantQuery +*/ +func (c *DefaultApiService) FetchQuery(assistantSid string, sid string) (*PreviewUnderstandAssistantQuery, error) { + path := "/understand/Assistants/{AssistantSid}/Queries/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantQuery{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchRatePlan Method for FetchRatePlan + * @param sid +@return PreviewWirelessRatePlan +*/ +func (c *DefaultApiService) FetchRatePlan(sid string) (*PreviewWirelessRatePlan, error) { + path := "/wireless/RatePlans/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewWirelessRatePlan{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchSample Method for FetchSample + * @param assistantSid The unique ID of the Assistant. + * @param taskSid The unique ID of the Task associated with this Sample. + * @param sid A 34 character string that uniquely identifies this resource. +@return PreviewUnderstandAssistantTaskSample +*/ +func (c *DefaultApiService) FetchSample(assistantSid string, taskSid string, sid string) (*PreviewUnderstandAssistantTaskSample, error) { + path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantTaskSample{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchService Method for FetchService + * @param sid +@return PreviewSyncService +*/ +func (c *DefaultApiService) FetchService(sid string) (*PreviewSyncService, error) { + path := "/Sync/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewSyncService{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchSim Method for FetchSim + * @param sid +@return PreviewWirelessSim +*/ +func (c *DefaultApiService) FetchSim(sid string) (*PreviewWirelessSim, error) { + path := "/wireless/Sims/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewWirelessSim{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchStyleSheet Method for FetchStyleSheet +Returns Style sheet JSON object for this Assistant + * @param assistantSid The unique ID of the Assistant +@return PreviewUnderstandAssistantStyleSheet +*/ +func (c *DefaultApiService) FetchStyleSheet(assistantSid string) (*PreviewUnderstandAssistantStyleSheet, error) { + path := "/understand/Assistants/{AssistantSid}/StyleSheet" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantStyleSheet{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchSyncList Method for FetchSyncList + * @param serviceSid + * @param sid +@return PreviewSyncServiceSyncList +*/ +func (c *DefaultApiService) FetchSyncList(serviceSid string, sid string) (*PreviewSyncServiceSyncList, error) { + path := "/Sync/Services/{ServiceSid}/Lists/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewSyncServiceSyncList{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchSyncListItem Method for FetchSyncListItem + * @param serviceSid + * @param listSid + * @param index +@return PreviewSyncServiceSyncListSyncListItem +*/ +func (c *DefaultApiService) FetchSyncListItem(serviceSid string, listSid string, index int32) (*PreviewSyncServiceSyncListSyncListItem, error) { + path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + path = strings.Replace(path, "{"+"Index"+"}", index, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewSyncServiceSyncListSyncListItem{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchSyncListPermission Method for FetchSyncListPermission +Fetch a specific Sync List Permission. + * @param serviceSid + * @param listSid Identifier of the Sync List. Either a SID or a unique name. + * @param identity Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. +@return PreviewSyncServiceSyncListSyncListPermission +*/ +func (c *DefaultApiService) FetchSyncListPermission(serviceSid string, listSid string, identity string) (*PreviewSyncServiceSyncListSyncListPermission, error) { + path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewSyncServiceSyncListSyncListPermission{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchSyncMap Method for FetchSyncMap + * @param serviceSid + * @param sid +@return PreviewSyncServiceSyncMap +*/ +func (c *DefaultApiService) FetchSyncMap(serviceSid string, sid string) (*PreviewSyncServiceSyncMap, error) { + path := "/Sync/Services/{ServiceSid}/Maps/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewSyncServiceSyncMap{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchSyncMapItem Method for FetchSyncMapItem + * @param serviceSid + * @param mapSid + * @param key +@return PreviewSyncServiceSyncMapSyncMapItem +*/ +func (c *DefaultApiService) FetchSyncMapItem(serviceSid string, mapSid string, key string) (*PreviewSyncServiceSyncMapSyncMapItem, error) { + path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + path = strings.Replace(path, "{"+"Key"+"}", key, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewSyncServiceSyncMapSyncMapItem{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchSyncMapPermission Method for FetchSyncMapPermission +Fetch a specific Sync Map Permission. + * @param serviceSid + * @param mapSid Identifier of the Sync Map. Either a SID or a unique name. + * @param identity Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. +@return PreviewSyncServiceSyncMapSyncMapPermission +*/ +func (c *DefaultApiService) FetchSyncMapPermission(serviceSid string, mapSid string, identity string) (*PreviewSyncServiceSyncMapSyncMapPermission, error) { + path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewSyncServiceSyncMapSyncMapPermission{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchTask Method for FetchTask + * @param assistantSid The unique ID of the Assistant. + * @param sid A 34 character string that uniquely identifies this resource. +@return PreviewUnderstandAssistantTask +*/ +func (c *DefaultApiService) FetchTask(assistantSid string, sid string) (*PreviewUnderstandAssistantTask, error) { + path := "/understand/Assistants/{AssistantSid}/Tasks/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantTask{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchTaskActions Method for FetchTaskActions +Returns JSON actions for this Task. + * @param assistantSid The unique ID of the parent Assistant. + * @param taskSid The unique ID of the Task. +@return PreviewUnderstandAssistantTaskTaskActions +*/ +func (c *DefaultApiService) FetchTaskActions(assistantSid string, taskSid string) (*PreviewUnderstandAssistantTaskTaskActions, error) { + path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Actions" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantTaskTaskActions{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchTaskStatistics Method for FetchTaskStatistics + * @param assistantSid The unique ID of the parent Assistant. + * @param taskSid The unique ID of the Task associated with this Field. +@return PreviewUnderstandAssistantTaskTaskStatistics +*/ +func (c *DefaultApiService) FetchTaskStatistics(assistantSid string, taskSid string) (*PreviewUnderstandAssistantTaskTaskStatistics, error) { + path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Statistics" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantTaskTaskStatistics{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// FetchUsageParams Optional parameters for the method 'FetchUsage' +type FetchUsageParams struct { + End *string `json:"End,omitempty"` + Start *string `json:"Start,omitempty"` +} + +/* +FetchUsage Method for FetchUsage + * @param simSid + * @param optional nil or *FetchUsageOpts - Optional Parameters: + * @param "End" (string) - + * @param "Start" (string) - +@return PreviewWirelessSimUsage +*/ +func (c *DefaultApiService) FetchUsage(simSid string, params *FetchUsageParams) (*PreviewWirelessSimUsage, error) { + path := "/wireless/Sims/{SimSid}/Usage" + path = strings.Replace(path, "{"+"SimSid"+"}", simSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.End != nil { + data.Set("End", *params.End) + } + if params != nil && params.Start != nil { + data.Set("Start", *params.Start) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewWirelessSimUsage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListAssistantParams Optional parameters for the method 'ListAssistant' +type ListAssistantParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListAssistant Method for ListAssistant + * @param optional nil or *ListAssistantOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PreviewUnderstandAssistantReadResponse +*/ +func (c *DefaultApiService) ListAssistant(params *ListAssistantParams) (*PreviewUnderstandAssistantReadResponse, error) { + path := "/understand/Assistants" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListAuthorizationDocumentParams Optional parameters for the method 'ListAuthorizationDocument' +type ListAuthorizationDocumentParams struct { + Email *string `json:"Email,omitempty"` + Status *string `json:"Status,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListAuthorizationDocument Method for ListAuthorizationDocument +Retrieve a list of AuthorizationDocuments belonging to the account initiating the request. + * @param optional nil or *ListAuthorizationDocumentOpts - Optional Parameters: + * @param "Email" (string) - Email that this AuthorizationDocument will be sent to for signing. + * @param "Status" (string) - Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/api/phone-numbers/hosted-number-authorization-documents#status-values) for more information on each of these statuses. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PreviewHostedNumbersAuthorizationDocumentReadResponse +*/ +func (c *DefaultApiService) ListAuthorizationDocument(params *ListAuthorizationDocumentParams) (*PreviewHostedNumbersAuthorizationDocumentReadResponse, error) { + path := "/HostedNumbers/AuthorizationDocuments" + + data := url.Values{} + headers := 0 + + if params != nil && params.Email != nil { + data.Set("Email", *params.Email) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewHostedNumbersAuthorizationDocumentReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListAvailableAddOnParams Optional parameters for the method 'ListAvailableAddOn' +type ListAvailableAddOnParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListAvailableAddOn Method for ListAvailableAddOn +Retrieve a list of Add-ons currently available to be installed. + * @param optional nil or *ListAvailableAddOnOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PreviewMarketplaceAvailableAddOnReadResponse +*/ +func (c *DefaultApiService) ListAvailableAddOn(params *ListAvailableAddOnParams) (*PreviewMarketplaceAvailableAddOnReadResponse, error) { + path := "/marketplace/AvailableAddOns" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewMarketplaceAvailableAddOnReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListAvailableAddOnExtensionParams Optional parameters for the method 'ListAvailableAddOnExtension' +type ListAvailableAddOnExtensionParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListAvailableAddOnExtension Method for ListAvailableAddOnExtension +Retrieve a list of Extensions for the Available Add-on. + * @param availableAddOnSid The SID of the AvailableAddOn resource with the extensions to read. + * @param optional nil or *ListAvailableAddOnExtensionOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse +*/ +func (c *DefaultApiService) ListAvailableAddOnExtension(availableAddOnSid string, params *ListAvailableAddOnExtensionParams) (*PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse, error) { + path := "/marketplace/AvailableAddOns/{AvailableAddOnSid}/Extensions" + path = strings.Replace(path, "{"+"AvailableAddOnSid"+"}", availableAddOnSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListCertificateParams Optional parameters for the method 'ListCertificate' +type ListCertificateParams struct { + DeviceSid *string `json:"DeviceSid,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListCertificate Method for ListCertificate +Retrieve a list of all Certificate credentials belonging to the Fleet. + * @param fleetSid + * @param optional nil or *ListCertificateOpts - Optional Parameters: + * @param "DeviceSid" (string) - Filters the resulting list of Certificates by a unique string identifier of an authenticated Device. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PreviewDeployedDevicesFleetCertificateReadResponse +*/ +func (c *DefaultApiService) ListCertificate(fleetSid string, params *ListCertificateParams) (*PreviewDeployedDevicesFleetCertificateReadResponse, error) { + path := "/DeployedDevices/Fleets/{FleetSid}/Certificates" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.DeviceSid != nil { + data.Set("DeviceSid", *params.DeviceSid) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewDeployedDevicesFleetCertificateReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListCommandParams Optional parameters for the method 'ListCommand' +type ListCommandParams struct { + Device *string `json:"Device,omitempty"` + Sim *string `json:"Sim,omitempty"` + Status *string `json:"Status,omitempty"` + Direction *string `json:"Direction,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListCommand Method for ListCommand + * @param optional nil or *ListCommandOpts - Optional Parameters: + * @param "Device" (string) - + * @param "Sim" (string) - + * @param "Status" (string) - + * @param "Direction" (string) - + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PreviewWirelessCommandReadResponse +*/ +func (c *DefaultApiService) ListCommand(params *ListCommandParams) (*PreviewWirelessCommandReadResponse, error) { + path := "/wireless/Commands" + + data := url.Values{} + headers := 0 + + if params != nil && params.Device != nil { + data.Set("Device", *params.Device) + } + if params != nil && params.Sim != nil { + data.Set("Sim", *params.Sim) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.Direction != nil { + data.Set("Direction", *params.Direction) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewWirelessCommandReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListDayParams Optional parameters for the method 'ListDay' +type ListDayParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListDay Method for ListDay +Retrieve a list of all Days for a resource. + * @param resourceType The type of communication – Messages, Calls + * @param optional nil or *ListDayOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PreviewBulkExportsExportDayReadResponse +*/ +func (c *DefaultApiService) ListDay(resourceType string, params *ListDayParams) (*PreviewBulkExportsExportDayReadResponse, error) { + path := "/BulkExports/Exports/{ResourceType}/Days" + path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewBulkExportsExportDayReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListDependentHostedNumberOrderParams Optional parameters for the method 'ListDependentHostedNumberOrder' +type ListDependentHostedNumberOrderParams struct { + Status *string `json:"Status,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + IncomingPhoneNumberSid *string `json:"IncomingPhoneNumberSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListDependentHostedNumberOrder Method for ListDependentHostedNumberOrder +Retrieve a list of dependent HostedNumberOrders belonging to the AuthorizationDocument. + * @param signingDocumentSid + * @param optional nil or *ListDependentHostedNumberOrderOpts - Optional Parameters: + * @param "Status" (string) - Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/api/phone-numbers/hosted-number-authorization-documents#status-values) for more information on each of these statuses. + * @param "PhoneNumber" (string) - An E164 formatted phone number hosted by this HostedNumberOrder. + * @param "IncomingPhoneNumberSid" (string) - A 34 character string that uniquely identifies the IncomingPhoneNumber resource created by this HostedNumberOrder. + * @param "FriendlyName" (string) - A human readable description of this resource, up to 64 characters. + * @param "UniqueName" (string) - Provides a unique and addressable name to be assigned to this HostedNumberOrder, assigned by the developer, to be optionally used in addition to SID. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse +*/ +func (c *DefaultApiService) ListDependentHostedNumberOrder(signingDocumentSid string, params *ListDependentHostedNumberOrderParams) (*PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse, error) { + path := "/HostedNumbers/AuthorizationDocuments/{SigningDocumentSid}/DependentHostedNumberOrders" + path = strings.Replace(path, "{"+"SigningDocumentSid"+"}", signingDocumentSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.PhoneNumber != nil { + data.Set("PhoneNumber", *params.PhoneNumber) + } + if params != nil && params.IncomingPhoneNumberSid != nil { + data.Set("IncomingPhoneNumberSid", *params.IncomingPhoneNumberSid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListDeploymentParams Optional parameters for the method 'ListDeployment' +type ListDeploymentParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListDeployment Method for ListDeployment +Retrieve a list of all Deployments belonging to the Fleet. + * @param fleetSid + * @param optional nil or *ListDeploymentOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PreviewDeployedDevicesFleetDeploymentReadResponse +*/ +func (c *DefaultApiService) ListDeployment(fleetSid string, params *ListDeploymentParams) (*PreviewDeployedDevicesFleetDeploymentReadResponse, error) { + path := "/DeployedDevices/Fleets/{FleetSid}/Deployments" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewDeployedDevicesFleetDeploymentReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListDeviceParams Optional parameters for the method 'ListDevice' +type ListDeviceParams struct { + DeploymentSid *string `json:"DeploymentSid,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListDevice Method for ListDevice +Retrieve a list of all Devices belonging to the Fleet. + * @param fleetSid + * @param optional nil or *ListDeviceOpts - Optional Parameters: + * @param "DeploymentSid" (string) - Filters the resulting list of Devices by a unique string identifier of the Deployment they are associated with. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PreviewDeployedDevicesFleetDeviceReadResponse +*/ +func (c *DefaultApiService) ListDevice(fleetSid string, params *ListDeviceParams) (*PreviewDeployedDevicesFleetDeviceReadResponse, error) { + path := "/DeployedDevices/Fleets/{FleetSid}/Devices" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.DeploymentSid != nil { + data.Set("DeploymentSid", *params.DeploymentSid) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewDeployedDevicesFleetDeviceReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListDocumentParams Optional parameters for the method 'ListDocument' +type ListDocumentParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListDocument Method for ListDocument + * @param serviceSid + * @param optional nil or *ListDocumentOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PreviewSyncServiceDocumentReadResponse +*/ +func (c *DefaultApiService) ListDocument(serviceSid string, params *ListDocumentParams) (*PreviewSyncServiceDocumentReadResponse, error) { + path := "/Sync/Services/{ServiceSid}/Documents" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewSyncServiceDocumentReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListDocumentPermissionParams Optional parameters for the method 'ListDocumentPermission' +type ListDocumentPermissionParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListDocumentPermission Method for ListDocumentPermission +Retrieve a list of all Permissions applying to a Sync Document. + * @param serviceSid + * @param documentSid Identifier of the Sync Document. Either a SID or a unique name. + * @param optional nil or *ListDocumentPermissionOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PreviewSyncServiceDocumentDocumentPermissionReadResponse +*/ +func (c *DefaultApiService) ListDocumentPermission(serviceSid string, documentSid string, params *ListDocumentPermissionParams) (*PreviewSyncServiceDocumentDocumentPermissionReadResponse, error) { + path := "/Sync/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"DocumentSid"+"}", documentSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewSyncServiceDocumentDocumentPermissionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListExportCustomJobParams Optional parameters for the method 'ListExportCustomJob' +type ListExportCustomJobParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListExportCustomJob Method for ListExportCustomJob + * @param resourceType The type of communication – Messages, Calls + * @param optional nil or *ListExportCustomJobOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PreviewBulkExportsExportExportCustomJobReadResponse +*/ +func (c *DefaultApiService) ListExportCustomJob(resourceType string, params *ListExportCustomJobParams) (*PreviewBulkExportsExportExportCustomJobReadResponse, error) { + path := "/BulkExports/Exports/{ResourceType}/Jobs" + path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewBulkExportsExportExportCustomJobReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListFieldParams Optional parameters for the method 'ListField' +type ListFieldParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListField Method for ListField + * @param assistantSid The unique ID of the Assistant. + * @param taskSid The unique ID of the Task associated with this Field. + * @param optional nil or *ListFieldOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PreviewUnderstandAssistantTaskFieldReadResponse +*/ +func (c *DefaultApiService) ListField(assistantSid string, taskSid string, params *ListFieldParams) (*PreviewUnderstandAssistantTaskFieldReadResponse, error) { + path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantTaskFieldReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListFieldTypeParams Optional parameters for the method 'ListFieldType' +type ListFieldTypeParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListFieldType Method for ListFieldType + * @param assistantSid + * @param optional nil or *ListFieldTypeOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PreviewUnderstandAssistantFieldTypeReadResponse +*/ +func (c *DefaultApiService) ListFieldType(assistantSid string, params *ListFieldTypeParams) (*PreviewUnderstandAssistantFieldTypeReadResponse, error) { + path := "/understand/Assistants/{AssistantSid}/FieldTypes" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantFieldTypeReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListFieldValueParams Optional parameters for the method 'ListFieldValue' +type ListFieldValueParams struct { + Language *string `json:"Language,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListFieldValue Method for ListFieldValue + * @param assistantSid + * @param fieldTypeSid + * @param optional nil or *ListFieldValueOpts - Optional Parameters: + * @param "Language" (string) - An ISO language-country string of the value. For example: *en-US* + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PreviewUnderstandAssistantFieldTypeFieldValueReadResponse +*/ +func (c *DefaultApiService) ListFieldValue(assistantSid string, fieldTypeSid string, params *ListFieldValueParams) (*PreviewUnderstandAssistantFieldTypeFieldValueReadResponse, error) { + path := "/understand/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"FieldTypeSid"+"}", fieldTypeSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Language != nil { + data.Set("Language", *params.Language) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantFieldTypeFieldValueReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListFleetParams Optional parameters for the method 'ListFleet' +type ListFleetParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListFleet Method for ListFleet +Retrieve a list of all Fleets belonging to your account. + * @param optional nil or *ListFleetOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PreviewDeployedDevicesFleetReadResponse +*/ +func (c *DefaultApiService) ListFleet(params *ListFleetParams) (*PreviewDeployedDevicesFleetReadResponse, error) { + path := "/DeployedDevices/Fleets" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewDeployedDevicesFleetReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListHostedNumberOrderParams Optional parameters for the method 'ListHostedNumberOrder' +type ListHostedNumberOrderParams struct { + Status *string `json:"Status,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + IncomingPhoneNumberSid *string `json:"IncomingPhoneNumberSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListHostedNumberOrder Method for ListHostedNumberOrder +Retrieve a list of HostedNumberOrders belonging to the account initiating the request. + * @param optional nil or *ListHostedNumberOrderOpts - Optional Parameters: + * @param "Status" (string) - The Status of this HostedNumberOrder. One of `received`, `pending-verification`, `verified`, `pending-loa`, `carrier-processing`, `testing`, `completed`, `failed`, or `action-required`. + * @param "PhoneNumber" (string) - An E164 formatted phone number hosted by this HostedNumberOrder. + * @param "IncomingPhoneNumberSid" (string) - A 34 character string that uniquely identifies the IncomingPhoneNumber resource created by this HostedNumberOrder. + * @param "FriendlyName" (string) - A human readable description of this resource, up to 64 characters. + * @param "UniqueName" (string) - Provides a unique and addressable name to be assigned to this HostedNumberOrder, assigned by the developer, to be optionally used in addition to SID. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PreviewHostedNumbersHostedNumberOrderReadResponse +*/ +func (c *DefaultApiService) ListHostedNumberOrder(params *ListHostedNumberOrderParams) (*PreviewHostedNumbersHostedNumberOrderReadResponse, error) { + path := "/HostedNumbers/HostedNumberOrders" + + data := url.Values{} + headers := 0 + + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.PhoneNumber != nil { + data.Set("PhoneNumber", *params.PhoneNumber) + } + if params != nil && params.IncomingPhoneNumberSid != nil { + data.Set("IncomingPhoneNumberSid", *params.IncomingPhoneNumberSid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewHostedNumbersHostedNumberOrderReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListInstalledAddOnParams Optional parameters for the method 'ListInstalledAddOn' +type ListInstalledAddOnParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListInstalledAddOn Method for ListInstalledAddOn +Retrieve a list of Add-ons currently installed on this Account. + * @param optional nil or *ListInstalledAddOnOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PreviewMarketplaceInstalledAddOnReadResponse +*/ +func (c *DefaultApiService) ListInstalledAddOn(params *ListInstalledAddOnParams) (*PreviewMarketplaceInstalledAddOnReadResponse, error) { + path := "/marketplace/InstalledAddOns" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewMarketplaceInstalledAddOnReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListInstalledAddOnExtensionParams Optional parameters for the method 'ListInstalledAddOnExtension' +type ListInstalledAddOnExtensionParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListInstalledAddOnExtension Method for ListInstalledAddOnExtension +Retrieve a list of Extensions for the Installed Add-on. + * @param installedAddOnSid The SID of the InstalledAddOn resource with the extensions to read. + * @param optional nil or *ListInstalledAddOnExtensionOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse +*/ +func (c *DefaultApiService) ListInstalledAddOnExtension(installedAddOnSid string, params *ListInstalledAddOnExtensionParams) (*PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse, error) { + path := "/marketplace/InstalledAddOns/{InstalledAddOnSid}/Extensions" + path = strings.Replace(path, "{"+"InstalledAddOnSid"+"}", installedAddOnSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListKeyParams Optional parameters for the method 'ListKey' +type ListKeyParams struct { + DeviceSid *string `json:"DeviceSid,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListKey Method for ListKey +Retrieve a list of all Keys credentials belonging to the Fleet. + * @param fleetSid + * @param optional nil or *ListKeyOpts - Optional Parameters: + * @param "DeviceSid" (string) - Filters the resulting list of Keys by a unique string identifier of an authenticated Device. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PreviewDeployedDevicesFleetKeyReadResponse +*/ +func (c *DefaultApiService) ListKey(fleetSid string, params *ListKeyParams) (*PreviewDeployedDevicesFleetKeyReadResponse, error) { + path := "/DeployedDevices/Fleets/{FleetSid}/Keys" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.DeviceSid != nil { + data.Set("DeviceSid", *params.DeviceSid) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewDeployedDevicesFleetKeyReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListModelBuildParams Optional parameters for the method 'ListModelBuild' +type ListModelBuildParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListModelBuild Method for ListModelBuild + * @param assistantSid + * @param optional nil or *ListModelBuildOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PreviewUnderstandAssistantModelBuildReadResponse +*/ +func (c *DefaultApiService) ListModelBuild(assistantSid string, params *ListModelBuildParams) (*PreviewUnderstandAssistantModelBuildReadResponse, error) { + path := "/understand/Assistants/{AssistantSid}/ModelBuilds" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantModelBuildReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListQueryParams Optional parameters for the method 'ListQuery' +type ListQueryParams struct { + Language *string `json:"Language,omitempty"` + ModelBuild *string `json:"ModelBuild,omitempty"` + Status *string `json:"Status,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListQuery Method for ListQuery + * @param assistantSid The unique ID of the parent Assistant. + * @param optional nil or *ListQueryOpts - Optional Parameters: + * @param "Language" (string) - An ISO language-country string of the sample. + * @param "ModelBuild" (string) - The Model Build Sid or unique name of the Model Build to be queried. + * @param "Status" (string) - A string that described the query status. The values can be: pending_review, reviewed, discarded + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PreviewUnderstandAssistantQueryReadResponse +*/ +func (c *DefaultApiService) ListQuery(assistantSid string, params *ListQueryParams) (*PreviewUnderstandAssistantQueryReadResponse, error) { + path := "/understand/Assistants/{AssistantSid}/Queries" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Language != nil { + data.Set("Language", *params.Language) + } + if params != nil && params.ModelBuild != nil { + data.Set("ModelBuild", *params.ModelBuild) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantQueryReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListRatePlanParams Optional parameters for the method 'ListRatePlan' +type ListRatePlanParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListRatePlan Method for ListRatePlan + * @param optional nil or *ListRatePlanOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PreviewWirelessRatePlanReadResponse +*/ +func (c *DefaultApiService) ListRatePlan(params *ListRatePlanParams) (*PreviewWirelessRatePlanReadResponse, error) { + path := "/wireless/RatePlans" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewWirelessRatePlanReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListSampleParams Optional parameters for the method 'ListSample' +type ListSampleParams struct { + Language *string `json:"Language,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListSample Method for ListSample + * @param assistantSid The unique ID of the Assistant. + * @param taskSid The unique ID of the Task associated with this Sample. + * @param optional nil or *ListSampleOpts - Optional Parameters: + * @param "Language" (string) - An ISO language-country string of the sample. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PreviewUnderstandAssistantTaskSampleReadResponse +*/ +func (c *DefaultApiService) ListSample(assistantSid string, taskSid string, params *ListSampleParams) (*PreviewUnderstandAssistantTaskSampleReadResponse, error) { + path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Language != nil { + data.Set("Language", *params.Language) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantTaskSampleReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListServiceParams Optional parameters for the method 'ListService' +type ListServiceParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListService Method for ListService + * @param optional nil or *ListServiceOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PreviewSyncServiceReadResponse +*/ +func (c *DefaultApiService) ListService(params *ListServiceParams) (*PreviewSyncServiceReadResponse, error) { + path := "/Sync/Services" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewSyncServiceReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListSimParams Optional parameters for the method 'ListSim' +type ListSimParams struct { + Status *string `json:"Status,omitempty"` + Iccid *string `json:"Iccid,omitempty"` + RatePlan *string `json:"RatePlan,omitempty"` + EId *string `json:"EId,omitempty"` + SimRegistrationCode *string `json:"SimRegistrationCode,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListSim Method for ListSim + * @param optional nil or *ListSimOpts - Optional Parameters: + * @param "Status" (string) - + * @param "Iccid" (string) - + * @param "RatePlan" (string) - + * @param "EId" (string) - + * @param "SimRegistrationCode" (string) - + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PreviewWirelessSimReadResponse +*/ +func (c *DefaultApiService) ListSim(params *ListSimParams) (*PreviewWirelessSimReadResponse, error) { + path := "/wireless/Sims" + + data := url.Values{} + headers := 0 + + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.Iccid != nil { + data.Set("Iccid", *params.Iccid) + } + if params != nil && params.RatePlan != nil { + data.Set("RatePlan", *params.RatePlan) + } + if params != nil && params.EId != nil { + data.Set("EId", *params.EId) + } + if params != nil && params.SimRegistrationCode != nil { + data.Set("SimRegistrationCode", *params.SimRegistrationCode) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewWirelessSimReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListSyncListParams Optional parameters for the method 'ListSyncList' +type ListSyncListParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListSyncList Method for ListSyncList + * @param serviceSid + * @param optional nil or *ListSyncListOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PreviewSyncServiceSyncListReadResponse +*/ +func (c *DefaultApiService) ListSyncList(serviceSid string, params *ListSyncListParams) (*PreviewSyncServiceSyncListReadResponse, error) { + path := "/Sync/Services/{ServiceSid}/Lists" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewSyncServiceSyncListReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListSyncListItemParams Optional parameters for the method 'ListSyncListItem' +type ListSyncListItemParams struct { + Order *string `json:"Order,omitempty"` + From *string `json:"From,omitempty"` + Bounds *string `json:"Bounds,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListSyncListItem Method for ListSyncListItem + * @param serviceSid + * @param listSid + * @param optional nil or *ListSyncListItemOpts - Optional Parameters: + * @param "Order" (string) - + * @param "From" (string) - + * @param "Bounds" (string) - + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PreviewSyncServiceSyncListSyncListItemReadResponse +*/ +func (c *DefaultApiService) ListSyncListItem(serviceSid string, listSid string, params *ListSyncListItemParams) (*PreviewSyncServiceSyncListSyncListItemReadResponse, error) { + path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Items" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Order != nil { + data.Set("Order", *params.Order) + } + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.Bounds != nil { + data.Set("Bounds", *params.Bounds) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewSyncServiceSyncListSyncListItemReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListSyncListPermissionParams Optional parameters for the method 'ListSyncListPermission' +type ListSyncListPermissionParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListSyncListPermission Method for ListSyncListPermission +Retrieve a list of all Permissions applying to a Sync List. + * @param serviceSid + * @param listSid Identifier of the Sync List. Either a SID or a unique name. + * @param optional nil or *ListSyncListPermissionOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PreviewSyncServiceSyncListSyncListPermissionReadResponse +*/ +func (c *DefaultApiService) ListSyncListPermission(serviceSid string, listSid string, params *ListSyncListPermissionParams) (*PreviewSyncServiceSyncListSyncListPermissionReadResponse, error) { + path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Permissions" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewSyncServiceSyncListSyncListPermissionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListSyncMapParams Optional parameters for the method 'ListSyncMap' +type ListSyncMapParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListSyncMap Method for ListSyncMap + * @param serviceSid + * @param optional nil or *ListSyncMapOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PreviewSyncServiceSyncMapReadResponse +*/ +func (c *DefaultApiService) ListSyncMap(serviceSid string, params *ListSyncMapParams) (*PreviewSyncServiceSyncMapReadResponse, error) { + path := "/Sync/Services/{ServiceSid}/Maps" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewSyncServiceSyncMapReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListSyncMapItemParams Optional parameters for the method 'ListSyncMapItem' +type ListSyncMapItemParams struct { + Order *string `json:"Order,omitempty"` + From *string `json:"From,omitempty"` + Bounds *string `json:"Bounds,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListSyncMapItem Method for ListSyncMapItem + * @param serviceSid + * @param mapSid + * @param optional nil or *ListSyncMapItemOpts - Optional Parameters: + * @param "Order" (string) - + * @param "From" (string) - + * @param "Bounds" (string) - + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PreviewSyncServiceSyncMapSyncMapItemReadResponse +*/ +func (c *DefaultApiService) ListSyncMapItem(serviceSid string, mapSid string, params *ListSyncMapItemParams) (*PreviewSyncServiceSyncMapSyncMapItemReadResponse, error) { + path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Items" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Order != nil { + data.Set("Order", *params.Order) + } + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.Bounds != nil { + data.Set("Bounds", *params.Bounds) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewSyncServiceSyncMapSyncMapItemReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListSyncMapPermissionParams Optional parameters for the method 'ListSyncMapPermission' +type ListSyncMapPermissionParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListSyncMapPermission Method for ListSyncMapPermission +Retrieve a list of all Permissions applying to a Sync Map. + * @param serviceSid + * @param mapSid Identifier of the Sync Map. Either a SID or a unique name. + * @param optional nil or *ListSyncMapPermissionOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PreviewSyncServiceSyncMapSyncMapPermissionReadResponse +*/ +func (c *DefaultApiService) ListSyncMapPermission(serviceSid string, mapSid string, params *ListSyncMapPermissionParams) (*PreviewSyncServiceSyncMapSyncMapPermissionReadResponse, error) { + path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Permissions" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewSyncServiceSyncMapSyncMapPermissionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListTaskParams Optional parameters for the method 'ListTask' +type ListTaskParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListTask Method for ListTask + * @param assistantSid The unique ID of the Assistant. + * @param optional nil or *ListTaskOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PreviewUnderstandAssistantTaskReadResponse +*/ +func (c *DefaultApiService) ListTask(assistantSid string, params *ListTaskParams) (*PreviewUnderstandAssistantTaskReadResponse, error) { + path := "/understand/Assistants/{AssistantSid}/Tasks" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantTaskReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateAssistantParams Optional parameters for the method 'UpdateAssistant' +type UpdateAssistantParams struct { + CallbackEvents *string `json:"CallbackEvents,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + FallbackActions *map[string]interface{} `json:"FallbackActions,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + InitiationActions *map[string]interface{} `json:"InitiationActions,omitempty"` + LogQueries *bool `json:"LogQueries,omitempty"` + StyleSheet *map[string]interface{} `json:"StyleSheet,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +UpdateAssistant Method for UpdateAssistant + * @param sid A 34 character string that uniquely identifies this resource. + * @param optional nil or *UpdateAssistantOpts - Optional Parameters: + * @param "CallbackEvents" (string) - Space-separated list of callback events that will trigger callbacks. + * @param "CallbackUrl" (string) - A user-provided URL to send event callbacks to. + * @param "FallbackActions" (map[string]interface{}) - The JSON actions to be executed when the user's input is not recognized as matching any Task. + * @param "FriendlyName" (string) - A text description for the Assistant. It is non-unique and can up to 255 characters long. + * @param "InitiationActions" (map[string]interface{}) - The JSON actions to be executed on inbound phone calls when the Assistant has to say something first. + * @param "LogQueries" (bool) - A boolean that specifies whether queries should be logged for 30 days further training. If false, no queries will be stored, if true, queries will be stored for 30 days and deleted thereafter. Defaults to true if no value is provided. + * @param "StyleSheet" (map[string]interface{}) - The JSON object that holds the style sheet for the assistant + * @param "UniqueName" (string) - A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. +@return PreviewUnderstandAssistant +*/ +func (c *DefaultApiService) UpdateAssistant(sid string, params *UpdateAssistantParams) (*PreviewUnderstandAssistant, error) { + path := "/understand/Assistants/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CallbackEvents != nil { + data.Set("CallbackEvents", *params.CallbackEvents) + } + if params != nil && params.CallbackUrl != nil { + data.Set("CallbackUrl", *params.CallbackUrl) + } + if params != nil && params.FallbackActions != nil { + v, err := json.Marshal(params.FallbackActions) + + if err != nil { + return nil, err + } + + data.Set("FallbackActions", string(v)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.InitiationActions != nil { + v, err := json.Marshal(params.InitiationActions) + + if err != nil { + return nil, err + } + + data.Set("InitiationActions", string(v)) + } + if params != nil && params.LogQueries != nil { + data.Set("LogQueries", string(*params.LogQueries)) + } + if params != nil && params.StyleSheet != nil { + v, err := json.Marshal(params.StyleSheet) + + if err != nil { + return nil, err + } + + data.Set("StyleSheet", string(v)) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateAssistantFallbackActionsParams Optional parameters for the method 'UpdateAssistantFallbackActions' +type UpdateAssistantFallbackActionsParams struct { + FallbackActions *map[string]interface{} `json:"FallbackActions,omitempty"` +} + +/* +UpdateAssistantFallbackActions Method for UpdateAssistantFallbackActions + * @param assistantSid + * @param optional nil or *UpdateAssistantFallbackActionsOpts - Optional Parameters: + * @param "FallbackActions" (map[string]interface{}) - +@return PreviewUnderstandAssistantAssistantFallbackActions +*/ +func (c *DefaultApiService) UpdateAssistantFallbackActions(assistantSid string, params *UpdateAssistantFallbackActionsParams) (*PreviewUnderstandAssistantAssistantFallbackActions, error) { + path := "/understand/Assistants/{AssistantSid}/FallbackActions" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FallbackActions != nil { + v, err := json.Marshal(params.FallbackActions) + + if err != nil { + return nil, err + } + + data.Set("FallbackActions", string(v)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantAssistantFallbackActions{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateAssistantInitiationActionsParams Optional parameters for the method 'UpdateAssistantInitiationActions' +type UpdateAssistantInitiationActionsParams struct { + InitiationActions *map[string]interface{} `json:"InitiationActions,omitempty"` +} + +/* +UpdateAssistantInitiationActions Method for UpdateAssistantInitiationActions + * @param assistantSid + * @param optional nil or *UpdateAssistantInitiationActionsOpts - Optional Parameters: + * @param "InitiationActions" (map[string]interface{}) - +@return PreviewUnderstandAssistantAssistantInitiationActions +*/ +func (c *DefaultApiService) UpdateAssistantInitiationActions(assistantSid string, params *UpdateAssistantInitiationActionsParams) (*PreviewUnderstandAssistantAssistantInitiationActions, error) { + path := "/understand/Assistants/{AssistantSid}/InitiationActions" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.InitiationActions != nil { + v, err := json.Marshal(params.InitiationActions) + + if err != nil { + return nil, err + } + + data.Set("InitiationActions", string(v)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantAssistantInitiationActions{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateAuthorizationDocumentParams Optional parameters for the method 'UpdateAuthorizationDocument' +type UpdateAuthorizationDocumentParams struct { + AddressSid *string `json:"AddressSid,omitempty"` + CcEmails *[]string `json:"CcEmails,omitempty"` + ContactPhoneNumber *string `json:"ContactPhoneNumber,omitempty"` + ContactTitle *string `json:"ContactTitle,omitempty"` + Email *string `json:"Email,omitempty"` + HostedNumberOrderSids *[]string `json:"HostedNumberOrderSids,omitempty"` + Status *string `json:"Status,omitempty"` +} + +/* +UpdateAuthorizationDocument Method for UpdateAuthorizationDocument +Updates a specific AuthorizationDocument. + * @param sid + * @param optional nil or *UpdateAuthorizationDocumentOpts - Optional Parameters: + * @param "AddressSid" (string) - A 34 character string that uniquely identifies the Address resource that is associated with this AuthorizationDocument. + * @param "CcEmails" ([]string) - Email recipients who will be informed when an Authorization Document has been sent and signed + * @param "ContactPhoneNumber" (string) - The contact phone number of the person authorized to sign the Authorization Document. + * @param "ContactTitle" (string) - The title of the person authorized to sign the Authorization Document for this phone number. + * @param "Email" (string) - Email that this AuthorizationDocument will be sent to for signing. + * @param "HostedNumberOrderSids" ([]string) - A list of HostedNumberOrder sids that this AuthorizationDocument will authorize for hosting phone number capabilities on Twilio's platform. + * @param "Status" (string) - Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/api/phone-numbers/hosted-number-authorization-documents#status-values) for more information on each of these statuses. +@return PreviewHostedNumbersAuthorizationDocument +*/ +func (c *DefaultApiService) UpdateAuthorizationDocument(sid string, params *UpdateAuthorizationDocumentParams) (*PreviewHostedNumbersAuthorizationDocument, error) { + path := "/HostedNumbers/AuthorizationDocuments/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AddressSid != nil { + data.Set("AddressSid", *params.AddressSid) + } + if params != nil && params.CcEmails != nil { + data.Set("CcEmails", *params.CcEmails) + } + if params != nil && params.ContactPhoneNumber != nil { + data.Set("ContactPhoneNumber", *params.ContactPhoneNumber) + } + if params != nil && params.ContactTitle != nil { + data.Set("ContactTitle", *params.ContactTitle) + } + if params != nil && params.Email != nil { + data.Set("Email", *params.Email) + } + if params != nil && params.HostedNumberOrderSids != nil { + data.Set("HostedNumberOrderSids", *params.HostedNumberOrderSids) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewHostedNumbersAuthorizationDocument{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateCertificateParams Optional parameters for the method 'UpdateCertificate' +type UpdateCertificateParams struct { + DeviceSid *string `json:"DeviceSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +UpdateCertificate Method for UpdateCertificate +Update the given properties of a specific Certificate credential in the Fleet, giving it a friendly name or assigning to a Device. + * @param fleetSid + * @param sid Provides a 34 character string that uniquely identifies the requested Certificate credential resource. + * @param optional nil or *UpdateCertificateOpts - Optional Parameters: + * @param "DeviceSid" (string) - Provides the unique string identifier of an existing Device to become authenticated with this Certificate credential. + * @param "FriendlyName" (string) - Provides a human readable descriptive text for this Certificate credential, up to 256 characters long. +@return PreviewDeployedDevicesFleetCertificate +*/ +func (c *DefaultApiService) UpdateCertificate(fleetSid string, sid string, params *UpdateCertificateParams) (*PreviewDeployedDevicesFleetCertificate, error) { + path := "/DeployedDevices/Fleets/{FleetSid}/Certificates/{Sid}" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.DeviceSid != nil { + data.Set("DeviceSid", *params.DeviceSid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewDeployedDevicesFleetCertificate{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateDeploymentParams Optional parameters for the method 'UpdateDeployment' +type UpdateDeploymentParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` + SyncServiceSid *string `json:"SyncServiceSid,omitempty"` +} + +/* +UpdateDeployment Method for UpdateDeployment +Update the given properties of a specific Deployment credential in the Fleet, giving it a friendly name or linking to a specific Twilio Sync service instance. + * @param fleetSid + * @param sid Provides a 34 character string that uniquely identifies the requested Deployment resource. + * @param optional nil or *UpdateDeploymentOpts - Optional Parameters: + * @param "FriendlyName" (string) - Provides a human readable descriptive text for this Deployment, up to 64 characters long + * @param "SyncServiceSid" (string) - Provides the unique string identifier of the Twilio Sync service instance that will be linked to and accessible by this Deployment. +@return PreviewDeployedDevicesFleetDeployment +*/ +func (c *DefaultApiService) UpdateDeployment(fleetSid string, sid string, params *UpdateDeploymentParams) (*PreviewDeployedDevicesFleetDeployment, error) { + path := "/DeployedDevices/Fleets/{FleetSid}/Deployments/{Sid}" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.SyncServiceSid != nil { + data.Set("SyncServiceSid", *params.SyncServiceSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewDeployedDevicesFleetDeployment{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateDeviceParams Optional parameters for the method 'UpdateDevice' +type UpdateDeviceParams struct { + DeploymentSid *string `json:"DeploymentSid,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Identity *string `json:"Identity,omitempty"` +} + +/* +UpdateDevice Method for UpdateDevice +Update the given properties of a specific Device in the Fleet, giving it a friendly name, assigning to a Deployment, or a human identity. + * @param fleetSid + * @param sid Provides a 34 character string that uniquely identifies the requested Device resource. + * @param optional nil or *UpdateDeviceOpts - Optional Parameters: + * @param "DeploymentSid" (string) - Specifies the unique string identifier of the Deployment group that this Device is going to be associated with. + * @param "Enabled" (bool) - + * @param "FriendlyName" (string) - Provides a human readable descriptive text to be assigned to this Device, up to 256 characters long. + * @param "Identity" (string) - Provides an arbitrary string identifier representing a human user to be associated with this Device, up to 256 characters long. +@return PreviewDeployedDevicesFleetDevice +*/ +func (c *DefaultApiService) UpdateDevice(fleetSid string, sid string, params *UpdateDeviceParams) (*PreviewDeployedDevicesFleetDevice, error) { + path := "/DeployedDevices/Fleets/{FleetSid}/Devices/{Sid}" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.DeploymentSid != nil { + data.Set("DeploymentSid", *params.DeploymentSid) + } + if params != nil && params.Enabled != nil { + data.Set("Enabled", string(*params.Enabled)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewDeployedDevicesFleetDevice{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateDocumentParams Optional parameters for the method 'UpdateDocument' +type UpdateDocumentParams struct { + If-Match *string `json:"If-Match,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` +} + +/* +UpdateDocument Method for UpdateDocument + * @param serviceSid + * @param sid + * @param optional nil or *UpdateDocumentOpts - Optional Parameters: + * @param "If-Match" (string) - The If-Match HTTP request header + * @param "Data" (map[string]interface{}) - +@return PreviewSyncServiceDocument +*/ +func (c *DefaultApiService) UpdateDocument(serviceSid string, sid string, params *UpdateDocumentParams) (*PreviewSyncServiceDocument, error) { + path := "/Sync/Services/{ServiceSid}/Documents/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Data != nil { + v, err := json.Marshal(params.Data) + + if err != nil { + return nil, err + } + + data.Set("Data", string(v)) + } + + if params != nil && params.If-Match != nil { + headers["If-Match"] = *params.If-Match + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewSyncServiceDocument{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateDocumentPermissionParams Optional parameters for the method 'UpdateDocumentPermission' +type UpdateDocumentPermissionParams struct { + Manage *bool `json:"Manage,omitempty"` + Read *bool `json:"Read,omitempty"` + Write *bool `json:"Write,omitempty"` +} + +/* +UpdateDocumentPermission Method for UpdateDocumentPermission +Update an identity's access to a specific Sync Document. + * @param serviceSid The unique SID identifier of the Sync Service Instance. + * @param documentSid Identifier of the Sync Document. Either a SID or a unique name. + * @param identity Arbitrary string identifier representing a human user associated with an FPA token, assigned by the developer. + * @param optional nil or *UpdateDocumentPermissionOpts - Optional Parameters: + * @param "Manage" (bool) - Boolean flag specifying whether the identity can delete the Sync Document. + * @param "Read" (bool) - Boolean flag specifying whether the identity can read the Sync Document. + * @param "Write" (bool) - Boolean flag specifying whether the identity can update the Sync Document. +@return PreviewSyncServiceDocumentDocumentPermission +*/ +func (c *DefaultApiService) UpdateDocumentPermission(serviceSid string, documentSid string, identity string, params *UpdateDocumentPermissionParams) (*PreviewSyncServiceDocumentDocumentPermission, error) { + path := "/Sync/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"DocumentSid"+"}", documentSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Manage != nil { + data.Set("Manage", string(*params.Manage)) + } + if params != nil && params.Read != nil { + data.Set("Read", string(*params.Read)) + } + if params != nil && params.Write != nil { + data.Set("Write", string(*params.Write)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewSyncServiceDocumentDocumentPermission{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateExportConfigurationParams Optional parameters for the method 'UpdateExportConfiguration' +type UpdateExportConfigurationParams struct { + Enabled *bool `json:"Enabled,omitempty"` + WebhookMethod *string `json:"WebhookMethod,omitempty"` + WebhookUrl *string `json:"WebhookUrl,omitempty"` +} + +/* +UpdateExportConfiguration Method for UpdateExportConfiguration +Update a specific Export Configuration. + * @param resourceType The type of communication – Messages, Calls + * @param optional nil or *UpdateExportConfigurationOpts - Optional Parameters: + * @param "Enabled" (bool) - If true, Twilio will automatically generate every day's file when the day is over. + * @param "WebhookMethod" (string) - Sets whether Twilio should call a webhook URL when the automatic generation is complete, using GET or POST. The actual destination is set in the webhook_url + * @param "WebhookUrl" (string) - Stores the URL destination for the method specified in webhook_method. +@return PreviewBulkExportsExportConfiguration +*/ +func (c *DefaultApiService) UpdateExportConfiguration(resourceType string, params *UpdateExportConfigurationParams) (*PreviewBulkExportsExportConfiguration, error) { + path := "/BulkExports/Exports/{ResourceType}/Configuration" + path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Enabled != nil { + data.Set("Enabled", string(*params.Enabled)) + } + if params != nil && params.WebhookMethod != nil { + data.Set("WebhookMethod", *params.WebhookMethod) + } + if params != nil && params.WebhookUrl != nil { + data.Set("WebhookUrl", *params.WebhookUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewBulkExportsExportConfiguration{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateFieldTypeParams Optional parameters for the method 'UpdateFieldType' +type UpdateFieldTypeParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +UpdateFieldType Method for UpdateFieldType + * @param assistantSid + * @param sid + * @param optional nil or *UpdateFieldTypeOpts - Optional Parameters: + * @param "FriendlyName" (string) - A user-provided string that identifies this resource. It is non-unique and can up to 255 characters long. + * @param "UniqueName" (string) - A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. +@return PreviewUnderstandAssistantFieldType +*/ +func (c *DefaultApiService) UpdateFieldType(assistantSid string, sid string, params *UpdateFieldTypeParams) (*PreviewUnderstandAssistantFieldType, error) { + path := "/understand/Assistants/{AssistantSid}/FieldTypes/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantFieldType{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateFleetParams Optional parameters for the method 'UpdateFleet' +type UpdateFleetParams struct { + DefaultDeploymentSid *string `json:"DefaultDeploymentSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +UpdateFleet Method for UpdateFleet +Update the friendly name property of a specific Fleet in your account. + * @param sid Provides a 34 character string that uniquely identifies the requested Fleet resource. + * @param optional nil or *UpdateFleetOpts - Optional Parameters: + * @param "DefaultDeploymentSid" (string) - Provides a string identifier of a Deployment that is going to be used as a default one for this Fleet. + * @param "FriendlyName" (string) - Provides a human readable descriptive text for this Fleet, up to 256 characters long. +@return PreviewDeployedDevicesFleet +*/ +func (c *DefaultApiService) UpdateFleet(sid string, params *UpdateFleetParams) (*PreviewDeployedDevicesFleet, error) { + path := "/DeployedDevices/Fleets/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.DefaultDeploymentSid != nil { + data.Set("DefaultDeploymentSid", *params.DefaultDeploymentSid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewDeployedDevicesFleet{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateHostedNumberOrderParams Optional parameters for the method 'UpdateHostedNumberOrder' +type UpdateHostedNumberOrderParams struct { + CallDelay *int32 `json:"CallDelay,omitempty"` + CcEmails *[]string `json:"CcEmails,omitempty"` + Email *string `json:"Email,omitempty"` + Extension *string `json:"Extension,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Status *string `json:"Status,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + VerificationCode *string `json:"VerificationCode,omitempty"` + VerificationDocumentSid *string `json:"VerificationDocumentSid,omitempty"` + VerificationType *string `json:"VerificationType,omitempty"` +} + +/* +UpdateHostedNumberOrder Method for UpdateHostedNumberOrder +Updates a specific HostedNumberOrder. + * @param sid + * @param optional nil or *UpdateHostedNumberOrderOpts - Optional Parameters: + * @param "CallDelay" (int32) - The number of seconds, between 0 and 60, to delay before initiating the verification call. Defaults to 0. + * @param "CcEmails" ([]string) - Optional. A list of emails that LOA document for this HostedNumberOrder will be carbon copied to. + * @param "Email" (string) - Email of the owner of this phone number that is being hosted. + * @param "Extension" (string) - Digits to dial after connecting the verification call. + * @param "FriendlyName" (string) - A 64 character string that is a human readable text that describes this resource. + * @param "Status" (string) - User can only post to `pending-verification` status to transition the HostedNumberOrder to initiate a verification call or verification of ownership with a copy of a phone bill. + * @param "UniqueName" (string) - Provides a unique and addressable name to be assigned to this HostedNumberOrder, assigned by the developer, to be optionally used in addition to SID. + * @param "VerificationCode" (string) - A verification code that is given to the user via a phone call to the phone number that is being hosted. + * @param "VerificationDocumentSid" (string) - Optional. The unique sid identifier of the Identity Document that represents the document for verifying ownership of the number to be hosted. Required when VerificationType is phone-bill. + * @param "VerificationType" (string) - Optional. The method used for verifying ownership of the number to be hosted. One of phone-call (default) or phone-bill. +@return PreviewHostedNumbersHostedNumberOrder +*/ +func (c *DefaultApiService) UpdateHostedNumberOrder(sid string, params *UpdateHostedNumberOrderParams) (*PreviewHostedNumbersHostedNumberOrder, error) { + path := "/HostedNumbers/HostedNumberOrders/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CallDelay != nil { + data.Set("CallDelay", string(*params.CallDelay)) + } + if params != nil && params.CcEmails != nil { + data.Set("CcEmails", *params.CcEmails) + } + if params != nil && params.Email != nil { + data.Set("Email", *params.Email) + } + if params != nil && params.Extension != nil { + data.Set("Extension", *params.Extension) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + if params != nil && params.VerificationCode != nil { + data.Set("VerificationCode", *params.VerificationCode) + } + if params != nil && params.VerificationDocumentSid != nil { + data.Set("VerificationDocumentSid", *params.VerificationDocumentSid) + } + if params != nil && params.VerificationType != nil { + data.Set("VerificationType", *params.VerificationType) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewHostedNumbersHostedNumberOrder{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateInstalledAddOnParams Optional parameters for the method 'UpdateInstalledAddOn' +type UpdateInstalledAddOnParams struct { + Configuration *map[string]interface{} `json:"Configuration,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +UpdateInstalledAddOn Method for UpdateInstalledAddOn +Update an Add-on installation for the Account specified. + * @param sid The SID of the InstalledAddOn resource to update. + * @param optional nil or *UpdateInstalledAddOnOpts - Optional Parameters: + * @param "Configuration" (map[string]interface{}) - Valid JSON object that conform to the configuration schema exposed by the associated AvailableAddOn resource. This is only required by Add-ons that need to be configured + * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. This value must be unique within the Account. +@return PreviewMarketplaceInstalledAddOn +*/ +func (c *DefaultApiService) UpdateInstalledAddOn(sid string, params *UpdateInstalledAddOnParams) (*PreviewMarketplaceInstalledAddOn, error) { + path := "/marketplace/InstalledAddOns/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Configuration != nil { + v, err := json.Marshal(params.Configuration) + + if err != nil { + return nil, err + } + + data.Set("Configuration", string(v)) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewMarketplaceInstalledAddOn{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateInstalledAddOnExtensionParams Optional parameters for the method 'UpdateInstalledAddOnExtension' +type UpdateInstalledAddOnExtensionParams struct { + Enabled *bool `json:"Enabled,omitempty"` +} + +/* +UpdateInstalledAddOnExtension Method for UpdateInstalledAddOnExtension +Update an Extension for an Add-on installation. + * @param installedAddOnSid The SID of the InstalledAddOn resource with the extension to update. + * @param sid The SID of the InstalledAddOn Extension resource to update. + * @param optional nil or *UpdateInstalledAddOnExtensionOpts - Optional Parameters: + * @param "Enabled" (bool) - Whether the Extension should be invoked. +@return PreviewMarketplaceInstalledAddOnInstalledAddOnExtension +*/ +func (c *DefaultApiService) UpdateInstalledAddOnExtension(installedAddOnSid string, sid string, params *UpdateInstalledAddOnExtensionParams) (*PreviewMarketplaceInstalledAddOnInstalledAddOnExtension, error) { + path := "/marketplace/InstalledAddOns/{InstalledAddOnSid}/Extensions/{Sid}" + path = strings.Replace(path, "{"+"InstalledAddOnSid"+"}", installedAddOnSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Enabled != nil { + data.Set("Enabled", string(*params.Enabled)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewMarketplaceInstalledAddOnInstalledAddOnExtension{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateKeyParams Optional parameters for the method 'UpdateKey' +type UpdateKeyParams struct { + DeviceSid *string `json:"DeviceSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +UpdateKey Method for UpdateKey +Update the given properties of a specific Key credential in the Fleet, giving it a friendly name or assigning to a Device. + * @param fleetSid + * @param sid Provides a 34 character string that uniquely identifies the requested Key credential resource. + * @param optional nil or *UpdateKeyOpts - Optional Parameters: + * @param "DeviceSid" (string) - Provides the unique string identifier of an existing Device to become authenticated with this Key credential. + * @param "FriendlyName" (string) - Provides a human readable descriptive text for this Key credential, up to 256 characters long. +@return PreviewDeployedDevicesFleetKey +*/ +func (c *DefaultApiService) UpdateKey(fleetSid string, sid string, params *UpdateKeyParams) (*PreviewDeployedDevicesFleetKey, error) { + path := "/DeployedDevices/Fleets/{FleetSid}/Keys/{Sid}" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.DeviceSid != nil { + data.Set("DeviceSid", *params.DeviceSid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewDeployedDevicesFleetKey{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateModelBuildParams Optional parameters for the method 'UpdateModelBuild' +type UpdateModelBuildParams struct { + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +UpdateModelBuild Method for UpdateModelBuild + * @param assistantSid + * @param sid + * @param optional nil or *UpdateModelBuildOpts - Optional Parameters: + * @param "UniqueName" (string) - A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. For example: v0.1 +@return PreviewUnderstandAssistantModelBuild +*/ +func (c *DefaultApiService) UpdateModelBuild(assistantSid string, sid string, params *UpdateModelBuildParams) (*PreviewUnderstandAssistantModelBuild, error) { + path := "/understand/Assistants/{AssistantSid}/ModelBuilds/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantModelBuild{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateQueryParams Optional parameters for the method 'UpdateQuery' +type UpdateQueryParams struct { + SampleSid *string `json:"SampleSid,omitempty"` + Status *string `json:"Status,omitempty"` +} + +/* +UpdateQuery Method for UpdateQuery + * @param assistantSid The unique ID of the parent Assistant. + * @param sid A 34 character string that uniquely identifies this resource. + * @param optional nil or *UpdateQueryOpts - Optional Parameters: + * @param "SampleSid" (string) - An optional reference to the Sample created from this query. + * @param "Status" (string) - A string that described the query status. The values can be: pending_review, reviewed, discarded +@return PreviewUnderstandAssistantQuery +*/ +func (c *DefaultApiService) UpdateQuery(assistantSid string, sid string, params *UpdateQueryParams) (*PreviewUnderstandAssistantQuery, error) { + path := "/understand/Assistants/{AssistantSid}/Queries/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.SampleSid != nil { + data.Set("SampleSid", *params.SampleSid) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantQuery{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateRatePlanParams Optional parameters for the method 'UpdateRatePlan' +type UpdateRatePlanParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +UpdateRatePlan Method for UpdateRatePlan + * @param sid + * @param optional nil or *UpdateRatePlanOpts - Optional Parameters: + * @param "FriendlyName" (string) - + * @param "UniqueName" (string) - +@return PreviewWirelessRatePlan +*/ +func (c *DefaultApiService) UpdateRatePlan(sid string, params *UpdateRatePlanParams) (*PreviewWirelessRatePlan, error) { + path := "/wireless/RatePlans/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewWirelessRatePlan{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateSampleParams Optional parameters for the method 'UpdateSample' +type UpdateSampleParams struct { + Language *string `json:"Language,omitempty"` + SourceChannel *string `json:"SourceChannel,omitempty"` + TaggedText *string `json:"TaggedText,omitempty"` +} + +/* +UpdateSample Method for UpdateSample + * @param assistantSid The unique ID of the Assistant. + * @param taskSid The unique ID of the Task associated with this Sample. + * @param sid A 34 character string that uniquely identifies this resource. + * @param optional nil or *UpdateSampleOpts - Optional Parameters: + * @param "Language" (string) - An ISO language-country string of the sample. + * @param "SourceChannel" (string) - The communication channel the sample was captured. It can be: *voice*, *sms*, *chat*, *alexa*, *google-assistant*, or *slack*. If not included the value will be null + * @param "TaggedText" (string) - The text example of how end-users may express this task. The sample may contain Field tag blocks. +@return PreviewUnderstandAssistantTaskSample +*/ +func (c *DefaultApiService) UpdateSample(assistantSid string, taskSid string, sid string, params *UpdateSampleParams) (*PreviewUnderstandAssistantTaskSample, error) { + path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Language != nil { + data.Set("Language", *params.Language) + } + if params != nil && params.SourceChannel != nil { + data.Set("SourceChannel", *params.SourceChannel) + } + if params != nil && params.TaggedText != nil { + data.Set("TaggedText", *params.TaggedText) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantTaskSample{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateServiceParams Optional parameters for the method 'UpdateService' +type UpdateServiceParams struct { + AclEnabled *bool `json:"AclEnabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + ReachabilityWebhooksEnabled *bool `json:"ReachabilityWebhooksEnabled,omitempty"` + WebhookUrl *string `json:"WebhookUrl,omitempty"` +} + +/* +UpdateService Method for UpdateService + * @param sid + * @param optional nil or *UpdateServiceOpts - Optional Parameters: + * @param "AclEnabled" (bool) - + * @param "FriendlyName" (string) - + * @param "ReachabilityWebhooksEnabled" (bool) - + * @param "WebhookUrl" (string) - +@return PreviewSyncService +*/ +func (c *DefaultApiService) UpdateService(sid string, params *UpdateServiceParams) (*PreviewSyncService, error) { + path := "/Sync/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AclEnabled != nil { + data.Set("AclEnabled", string(*params.AclEnabled)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.ReachabilityWebhooksEnabled != nil { + data.Set("ReachabilityWebhooksEnabled", string(*params.ReachabilityWebhooksEnabled)) + } + if params != nil && params.WebhookUrl != nil { + data.Set("WebhookUrl", *params.WebhookUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewSyncService{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateSimParams Optional parameters for the method 'UpdateSim' +type UpdateSimParams struct { + CallbackMethod *string `json:"CallbackMethod,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + CommandsCallbackMethod *string `json:"CommandsCallbackMethod,omitempty"` + CommandsCallbackUrl *string `json:"CommandsCallbackUrl,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + RatePlan *string `json:"RatePlan,omitempty"` + SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` + SmsMethod *string `json:"SmsMethod,omitempty"` + SmsUrl *string `json:"SmsUrl,omitempty"` + Status *string `json:"Status,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` +} + +/* +UpdateSim Method for UpdateSim + * @param sid + * @param optional nil or *UpdateSimOpts - Optional Parameters: + * @param "CallbackMethod" (string) - + * @param "CallbackUrl" (string) - + * @param "CommandsCallbackMethod" (string) - + * @param "CommandsCallbackUrl" (string) - + * @param "FriendlyName" (string) - + * @param "RatePlan" (string) - + * @param "SmsFallbackMethod" (string) - + * @param "SmsFallbackUrl" (string) - + * @param "SmsMethod" (string) - + * @param "SmsUrl" (string) - + * @param "Status" (string) - + * @param "UniqueName" (string) - + * @param "VoiceFallbackMethod" (string) - + * @param "VoiceFallbackUrl" (string) - + * @param "VoiceMethod" (string) - + * @param "VoiceUrl" (string) - +@return PreviewWirelessSim +*/ +func (c *DefaultApiService) UpdateSim(sid string, params *UpdateSimParams) (*PreviewWirelessSim, error) { + path := "/wireless/Sims/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CallbackMethod != nil { + data.Set("CallbackMethod", *params.CallbackMethod) + } + if params != nil && params.CallbackUrl != nil { + data.Set("CallbackUrl", *params.CallbackUrl) + } + if params != nil && params.CommandsCallbackMethod != nil { + data.Set("CommandsCallbackMethod", *params.CommandsCallbackMethod) + } + if params != nil && params.CommandsCallbackUrl != nil { + data.Set("CommandsCallbackUrl", *params.CommandsCallbackUrl) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.RatePlan != nil { + data.Set("RatePlan", *params.RatePlan) + } + if params != nil && params.SmsFallbackMethod != nil { + data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) + } + if params != nil && params.SmsFallbackUrl != nil { + data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) + } + if params != nil && params.SmsMethod != nil { + data.Set("SmsMethod", *params.SmsMethod) + } + if params != nil && params.SmsUrl != nil { + data.Set("SmsUrl", *params.SmsUrl) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + if params != nil && params.VoiceFallbackMethod != nil { + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + } + if params != nil && params.VoiceFallbackUrl != nil { + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + } + if params != nil && params.VoiceMethod != nil { + data.Set("VoiceMethod", *params.VoiceMethod) + } + if params != nil && params.VoiceUrl != nil { + data.Set("VoiceUrl", *params.VoiceUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewWirelessSim{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateStyleSheetParams Optional parameters for the method 'UpdateStyleSheet' +type UpdateStyleSheetParams struct { + StyleSheet *map[string]interface{} `json:"StyleSheet,omitempty"` +} + +/* +UpdateStyleSheet Method for UpdateStyleSheet +Updates the style sheet for an assistant identified by {AssistantSid} or {AssistantUniqueName}. + * @param assistantSid The unique ID of the Assistant + * @param optional nil or *UpdateStyleSheetOpts - Optional Parameters: + * @param "StyleSheet" (map[string]interface{}) - The JSON Style sheet string +@return PreviewUnderstandAssistantStyleSheet +*/ +func (c *DefaultApiService) UpdateStyleSheet(assistantSid string, params *UpdateStyleSheetParams) (*PreviewUnderstandAssistantStyleSheet, error) { + path := "/understand/Assistants/{AssistantSid}/StyleSheet" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.StyleSheet != nil { + v, err := json.Marshal(params.StyleSheet) + + if err != nil { + return nil, err + } + + data.Set("StyleSheet", string(v)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantStyleSheet{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateSyncListItemParams Optional parameters for the method 'UpdateSyncListItem' +type UpdateSyncListItemParams struct { + If-Match *string `json:"If-Match,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` +} + +/* +UpdateSyncListItem Method for UpdateSyncListItem + * @param serviceSid + * @param listSid + * @param index + * @param optional nil or *UpdateSyncListItemOpts - Optional Parameters: + * @param "If-Match" (string) - The If-Match HTTP request header + * @param "Data" (map[string]interface{}) - +@return PreviewSyncServiceSyncListSyncListItem +*/ +func (c *DefaultApiService) UpdateSyncListItem(serviceSid string, listSid string, index int32, params *UpdateSyncListItemParams) (*PreviewSyncServiceSyncListSyncListItem, error) { + path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + path = strings.Replace(path, "{"+"Index"+"}", index, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Data != nil { + v, err := json.Marshal(params.Data) + + if err != nil { + return nil, err + } + + data.Set("Data", string(v)) + } + + if params != nil && params.If-Match != nil { + headers["If-Match"] = *params.If-Match + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewSyncServiceSyncListSyncListItem{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateSyncListPermissionParams Optional parameters for the method 'UpdateSyncListPermission' +type UpdateSyncListPermissionParams struct { + Manage *bool `json:"Manage,omitempty"` + Read *bool `json:"Read,omitempty"` + Write *bool `json:"Write,omitempty"` +} + +/* +UpdateSyncListPermission Method for UpdateSyncListPermission +Update an identity's access to a specific Sync List. + * @param serviceSid The unique SID identifier of the Sync Service Instance. + * @param listSid Identifier of the Sync List. Either a SID or a unique name. + * @param identity Arbitrary string identifier representing a human user associated with an FPA token, assigned by the developer. + * @param optional nil or *UpdateSyncListPermissionOpts - Optional Parameters: + * @param "Manage" (bool) - Boolean flag specifying whether the identity can delete the Sync List. + * @param "Read" (bool) - Boolean flag specifying whether the identity can read the Sync List. + * @param "Write" (bool) - Boolean flag specifying whether the identity can create, update and delete Items of the Sync List. +@return PreviewSyncServiceSyncListSyncListPermission +*/ +func (c *DefaultApiService) UpdateSyncListPermission(serviceSid string, listSid string, identity string, params *UpdateSyncListPermissionParams) (*PreviewSyncServiceSyncListSyncListPermission, error) { + path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Manage != nil { + data.Set("Manage", string(*params.Manage)) + } + if params != nil && params.Read != nil { + data.Set("Read", string(*params.Read)) + } + if params != nil && params.Write != nil { + data.Set("Write", string(*params.Write)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewSyncServiceSyncListSyncListPermission{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateSyncMapItemParams Optional parameters for the method 'UpdateSyncMapItem' +type UpdateSyncMapItemParams struct { + If-Match *string `json:"If-Match,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` +} + +/* +UpdateSyncMapItem Method for UpdateSyncMapItem + * @param serviceSid + * @param mapSid + * @param key + * @param optional nil or *UpdateSyncMapItemOpts - Optional Parameters: + * @param "If-Match" (string) - The If-Match HTTP request header + * @param "Data" (map[string]interface{}) - +@return PreviewSyncServiceSyncMapSyncMapItem +*/ +func (c *DefaultApiService) UpdateSyncMapItem(serviceSid string, mapSid string, key string, params *UpdateSyncMapItemParams) (*PreviewSyncServiceSyncMapSyncMapItem, error) { + path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + path = strings.Replace(path, "{"+"Key"+"}", key, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Data != nil { + v, err := json.Marshal(params.Data) + + if err != nil { + return nil, err + } + + data.Set("Data", string(v)) + } + + if params != nil && params.If-Match != nil { + headers["If-Match"] = *params.If-Match + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewSyncServiceSyncMapSyncMapItem{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateSyncMapPermissionParams Optional parameters for the method 'UpdateSyncMapPermission' +type UpdateSyncMapPermissionParams struct { + Manage *bool `json:"Manage,omitempty"` + Read *bool `json:"Read,omitempty"` + Write *bool `json:"Write,omitempty"` +} + +/* +UpdateSyncMapPermission Method for UpdateSyncMapPermission +Update an identity's access to a specific Sync Map. + * @param serviceSid The unique SID identifier of the Sync Service Instance. + * @param mapSid Identifier of the Sync Map. Either a SID or a unique name. + * @param identity Arbitrary string identifier representing a human user associated with an FPA token, assigned by the developer. + * @param optional nil or *UpdateSyncMapPermissionOpts - Optional Parameters: + * @param "Manage" (bool) - Boolean flag specifying whether the identity can delete the Sync Map. + * @param "Read" (bool) - Boolean flag specifying whether the identity can read the Sync Map. + * @param "Write" (bool) - Boolean flag specifying whether the identity can create, update and delete Items of the Sync Map. +@return PreviewSyncServiceSyncMapSyncMapPermission +*/ +func (c *DefaultApiService) UpdateSyncMapPermission(serviceSid string, mapSid string, identity string, params *UpdateSyncMapPermissionParams) (*PreviewSyncServiceSyncMapSyncMapPermission, error) { + path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Manage != nil { + data.Set("Manage", string(*params.Manage)) + } + if params != nil && params.Read != nil { + data.Set("Read", string(*params.Read)) + } + if params != nil && params.Write != nil { + data.Set("Write", string(*params.Write)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewSyncServiceSyncMapSyncMapPermission{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateTaskParams Optional parameters for the method 'UpdateTask' +type UpdateTaskParams struct { + Actions *map[string]interface{} `json:"Actions,omitempty"` + ActionsUrl *string `json:"ActionsUrl,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +UpdateTask Method for UpdateTask + * @param assistantSid The unique ID of the Assistant. + * @param sid A 34 character string that uniquely identifies this resource. + * @param optional nil or *UpdateTaskOpts - Optional Parameters: + * @param "Actions" (map[string]interface{}) - A user-provided JSON object encoded as a string to specify the actions for this task. It is optional and non-unique. + * @param "ActionsUrl" (string) - User-provided HTTP endpoint where from the assistant fetches actions + * @param "FriendlyName" (string) - A user-provided string that identifies this resource. It is non-unique and can up to 255 characters long. + * @param "UniqueName" (string) - A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. +@return PreviewUnderstandAssistantTask +*/ +func (c *DefaultApiService) UpdateTask(assistantSid string, sid string, params *UpdateTaskParams) (*PreviewUnderstandAssistantTask, error) { + path := "/understand/Assistants/{AssistantSid}/Tasks/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Actions != nil { + v, err := json.Marshal(params.Actions) + + if err != nil { + return nil, err + } + + data.Set("Actions", string(v)) + } + if params != nil && params.ActionsUrl != nil { + data.Set("ActionsUrl", *params.ActionsUrl) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantTask{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateTaskActionsParams Optional parameters for the method 'UpdateTaskActions' +type UpdateTaskActionsParams struct { + Actions *map[string]interface{} `json:"Actions,omitempty"` +} + +/* +UpdateTaskActions Method for UpdateTaskActions +Updates the actions of an Task identified by {TaskSid} or {TaskUniqueName}. + * @param assistantSid The unique ID of the parent Assistant. + * @param taskSid The unique ID of the Task. + * @param optional nil or *UpdateTaskActionsOpts - Optional Parameters: + * @param "Actions" (map[string]interface{}) - The JSON actions that instruct the Assistant how to perform this task. +@return PreviewUnderstandAssistantTaskTaskActions +*/ +func (c *DefaultApiService) UpdateTaskActions(assistantSid string, taskSid string, params *UpdateTaskActionsParams) (*PreviewUnderstandAssistantTaskTaskActions, error) { + path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Actions" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Actions != nil { + v, err := json.Marshal(params.Actions) + + if err != nil { + return nil, err + } + + data.Set("Actions", string(v)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantTaskTaskActions{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/preview/docs/CreateAssistantRequest.md b/rest/preview/docs/CreateAssistantRequest.md new file mode 100644 index 000000000..f5cb08fa5 --- /dev/null +++ b/rest/preview/docs/CreateAssistantRequest.md @@ -0,0 +1,18 @@ +# CreateAssistantRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CallbackEvents** | **string** | Space-separated list of callback events that will trigger callbacks. | [optional] +**CallbackUrl** | **string** | A user-provided URL to send event callbacks to. | [optional] +**FallbackActions** | [**map[string]interface{}**](.md) | The JSON actions to be executed when the user's input is not recognized as matching any Task. | [optional] +**FriendlyName** | **string** | A text description for the Assistant. It is non-unique and can up to 255 characters long. | [optional] +**InitiationActions** | [**map[string]interface{}**](.md) | The JSON actions to be executed on inbound phone calls when the Assistant has to say something first. | [optional] +**LogQueries** | **bool** | A boolean that specifies whether queries should be logged for 30 days further training. If false, no queries will be stored, if true, queries will be stored for 30 days and deleted thereafter. Defaults to true if no value is provided. | [optional] +**StyleSheet** | [**map[string]interface{}**](.md) | The JSON object that holds the style sheet for the assistant | [optional] +**UniqueName** | **string** | A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. | [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/rest/preview/docs/CreateAuthorizationDocumentRequest.md b/rest/preview/docs/CreateAuthorizationDocumentRequest.md new file mode 100644 index 000000000..d8f0b38c4 --- /dev/null +++ b/rest/preview/docs/CreateAuthorizationDocumentRequest.md @@ -0,0 +1,16 @@ +# CreateAuthorizationDocumentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AddressSid** | **string** | A 34 character string that uniquely identifies the Address resource that is associated with this AuthorizationDocument. | +**CcEmails** | **[]string** | Email recipients who will be informed when an Authorization Document has been sent and signed. | [optional] +**ContactPhoneNumber** | **string** | The contact phone number of the person authorized to sign the Authorization Document. | +**ContactTitle** | **string** | The title of the person authorized to sign the Authorization Document for this phone number. | +**Email** | **string** | Email that this AuthorizationDocument will be sent to for signing. | +**HostedNumberOrderSids** | **[]string** | A list of HostedNumberOrder sids that this AuthorizationDocument will authorize for hosting phone number capabilities on Twilio's platform. | + +[[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/rest/preview/docs/CreateCertificateRequest.md b/rest/preview/docs/CreateCertificateRequest.md new file mode 100644 index 000000000..6cb39a502 --- /dev/null +++ b/rest/preview/docs/CreateCertificateRequest.md @@ -0,0 +1,13 @@ +# CreateCertificateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CertificateData** | **string** | Provides a URL encoded representation of the public certificate in PEM format. | +**DeviceSid** | **string** | Provides the unique string identifier of an existing Device to become authenticated with this Certificate credential. | [optional] +**FriendlyName** | **string** | Provides a human readable descriptive text for this Certificate credential, up to 256 characters long. | [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/rest/preview/docs/CreateChannelRequest.md b/rest/preview/docs/CreateChannelRequest.md new file mode 100644 index 000000000..c27609e70 --- /dev/null +++ b/rest/preview/docs/CreateChannelRequest.md @@ -0,0 +1,11 @@ +# CreateChannelRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PhoneNumberSid** | **string** | The unique SID identifier of the Phone Number of the Phone number to be assigned to the Branded Channel. | + +[[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/rest/preview/docs/CreateCommandRequest.md b/rest/preview/docs/CreateCommandRequest.md new file mode 100644 index 000000000..f95a46028 --- /dev/null +++ b/rest/preview/docs/CreateCommandRequest.md @@ -0,0 +1,17 @@ +# CreateCommandRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CallbackMethod** | **string** | | [optional] +**CallbackUrl** | **string** | | [optional] +**Command** | **string** | | +**CommandMode** | **string** | | [optional] +**Device** | **string** | | [optional] +**IncludeSid** | **string** | | [optional] +**Sim** | **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/rest/preview/docs/CreateDeploymentRequest.md b/rest/preview/docs/CreateDeploymentRequest.md new file mode 100644 index 000000000..bd56a9a30 --- /dev/null +++ b/rest/preview/docs/CreateDeploymentRequest.md @@ -0,0 +1,12 @@ +# CreateDeploymentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | Provides a human readable descriptive text for this Deployment, up to 256 characters long. | [optional] +**SyncServiceSid** | **string** | Provides the unique string identifier of the Twilio Sync service instance that will be linked to and accessible by this Deployment. | [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/rest/preview/docs/CreateDeviceRequest.md b/rest/preview/docs/CreateDeviceRequest.md new file mode 100644 index 000000000..991f3bf40 --- /dev/null +++ b/rest/preview/docs/CreateDeviceRequest.md @@ -0,0 +1,15 @@ +# CreateDeviceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeploymentSid** | **string** | Specifies the unique string identifier of the Deployment group that this Device is going to be associated with. | [optional] +**Enabled** | **bool** | | [optional] +**FriendlyName** | **string** | Provides a human readable descriptive text to be assigned to this Device, up to 256 characters long. | [optional] +**Identity** | **string** | Provides an arbitrary string identifier representing a human user to be associated with this Device, up to 256 characters long. | [optional] +**UniqueName** | **string** | Provides a unique and addressable name to be assigned to this Device, to be used in addition to SID, up to 128 characters long. | [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/rest/preview/docs/CreateDocumentRequest.md b/rest/preview/docs/CreateDocumentRequest.md new file mode 100644 index 000000000..5f566e59b --- /dev/null +++ b/rest/preview/docs/CreateDocumentRequest.md @@ -0,0 +1,12 @@ +# CreateDocumentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**map[string]interface{}**](.md) | | [optional] +**UniqueName** | **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/rest/preview/docs/CreateExportCustomJobRequest.md b/rest/preview/docs/CreateExportCustomJobRequest.md new file mode 100644 index 000000000..09c329eca --- /dev/null +++ b/rest/preview/docs/CreateExportCustomJobRequest.md @@ -0,0 +1,16 @@ +# CreateExportCustomJobRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | **string** | The optional email to send the completion notification to | [optional] +**EndDay** | **string** | The end day for the custom export specified as a string in the format of yyyy-mm-dd. End day is inclusive and must be 2 days earlier than the current UTC day. | +**FriendlyName** | **string** | The friendly name specified when creating the job | +**StartDay** | **string** | The start day for the custom export specified as a string in the format of yyyy-mm-dd | +**WebhookMethod** | **string** | This is the method used to call the webhook on completion of the job. If this is supplied, `WebhookUrl` must also be supplied. | [optional] +**WebhookUrl** | **string** | The optional webhook url called on completion of the job. If this is supplied, `WebhookMethod` must also be supplied. | [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/rest/preview/docs/CreateFieldRequest.md b/rest/preview/docs/CreateFieldRequest.md new file mode 100644 index 000000000..7ae93562f --- /dev/null +++ b/rest/preview/docs/CreateFieldRequest.md @@ -0,0 +1,12 @@ +# CreateFieldRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FieldType** | **string** | The unique name or sid of the FieldType. It can be any [Built-in Field Type](https://www.twilio.com/docs/assistant/api/built-in-field-types) or the unique_name or the Field Type sid of a custom Field Type. | +**UniqueName** | **string** | A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. | + +[[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/rest/preview/docs/CreateFieldTypeRequest.md b/rest/preview/docs/CreateFieldTypeRequest.md new file mode 100644 index 000000000..3e951eeb3 --- /dev/null +++ b/rest/preview/docs/CreateFieldTypeRequest.md @@ -0,0 +1,12 @@ +# CreateFieldTypeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | A user-provided string that identifies this resource. It is non-unique and can up to 255 characters long. | [optional] +**UniqueName** | **string** | A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. | + +[[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/rest/preview/docs/CreateFieldValueRequest.md b/rest/preview/docs/CreateFieldValueRequest.md new file mode 100644 index 000000000..d9ac890d3 --- /dev/null +++ b/rest/preview/docs/CreateFieldValueRequest.md @@ -0,0 +1,13 @@ +# CreateFieldValueRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Language** | **string** | An ISO language-country string of the value. | +**SynonymOf** | **string** | A value that indicates this field value is a synonym of. Empty if the value is not a synonym. | [optional] +**Value** | **string** | A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. | + +[[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/rest/preview/docs/CreateFleetRequest.md b/rest/preview/docs/CreateFleetRequest.md new file mode 100644 index 000000000..226e4776a --- /dev/null +++ b/rest/preview/docs/CreateFleetRequest.md @@ -0,0 +1,11 @@ +# CreateFleetRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | Provides a human readable descriptive text for this Fleet, up to 256 characters long. | [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/rest/preview/docs/CreateHostedNumberOrderRequest.md b/rest/preview/docs/CreateHostedNumberOrderRequest.md new file mode 100644 index 000000000..dcf9c9233 --- /dev/null +++ b/rest/preview/docs/CreateHostedNumberOrderRequest.md @@ -0,0 +1,27 @@ +# CreateHostedNumberOrderRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | This defaults to the AccountSid of the authorization the user is using. This can be provided to specify a subaccount to add the HostedNumberOrder to. | [optional] +**AddressSid** | **string** | Optional. A 34 character string that uniquely identifies the Address resource that represents the address of the owner of this phone number. | [optional] +**CcEmails** | **[]string** | Optional. A list of emails that the LOA document for this HostedNumberOrder will be carbon copied to. | [optional] +**Email** | **string** | Optional. Email of the owner of this phone number that is being hosted. | [optional] +**FriendlyName** | **string** | A 64 character string that is a human readable text that describes this resource. | [optional] +**PhoneNumber** | **string** | The number to host in [+E.164](https://en.wikipedia.org/wiki/E.164) format | +**SmsApplicationSid** | **string** | Optional. The 34 character sid of the application Twilio should use to handle SMS messages sent to this number. If a `SmsApplicationSid` is present, Twilio will ignore all of the SMS urls above and use those set on the application. | [optional] +**SmsCapability** | **bool** | Used to specify that the SMS capability will be hosted on Twilio's platform. | +**SmsFallbackMethod** | **string** | The HTTP method that should be used to request the SmsFallbackUrl. Must be either `GET` or `POST`. This will be copied onto the IncomingPhoneNumber resource. | [optional] +**SmsFallbackUrl** | **string** | A URL that Twilio will request if an error occurs requesting or executing the TwiML defined by SmsUrl. This will be copied onto the IncomingPhoneNumber resource. | [optional] +**SmsMethod** | **string** | The HTTP method that should be used to request the SmsUrl. Must be either `GET` or `POST`. This will be copied onto the IncomingPhoneNumber resource. | [optional] +**SmsUrl** | **string** | The URL that Twilio should request when somebody sends an SMS to the phone number. This will be copied onto the IncomingPhoneNumber resource. | [optional] +**StatusCallbackMethod** | **string** | Optional. The Status Callback Method attached to the IncomingPhoneNumber resource. | [optional] +**StatusCallbackUrl** | **string** | Optional. The Status Callback URL attached to the IncomingPhoneNumber resource. | [optional] +**UniqueName** | **string** | Optional. Provides a unique and addressable name to be assigned to this HostedNumberOrder, assigned by the developer, to be optionally used in addition to SID. | [optional] +**VerificationDocumentSid** | **string** | Optional. The unique sid identifier of the Identity Document that represents the document for verifying ownership of the number to be hosted. Required when VerificationType is phone-bill. | [optional] +**VerificationType** | **string** | Optional. The method used for verifying ownership of the number to be hosted. One of phone-call (default) or phone-bill. | [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/rest/preview/docs/CreateInstalledAddOnRequest.md b/rest/preview/docs/CreateInstalledAddOnRequest.md new file mode 100644 index 000000000..857d12aa3 --- /dev/null +++ b/rest/preview/docs/CreateInstalledAddOnRequest.md @@ -0,0 +1,14 @@ +# CreateInstalledAddOnRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AcceptTermsOfService** | **bool** | Whether the Terms of Service were accepted. | +**AvailableAddOnSid** | **string** | The SID of the AvaliableAddOn to install. | +**Configuration** | [**map[string]interface{}**](.md) | The JSON object that represents the configuration of the new Add-on being installed. | [optional] +**UniqueName** | **string** | An application-defined string that uniquely identifies the resource. This value must be unique within the Account. | [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/rest/preview/docs/CreateKeyRequest.md b/rest/preview/docs/CreateKeyRequest.md new file mode 100644 index 000000000..f5b4859ce --- /dev/null +++ b/rest/preview/docs/CreateKeyRequest.md @@ -0,0 +1,12 @@ +# CreateKeyRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceSid** | **string** | Provides the unique string identifier of an existing Device to become authenticated with this Key credential. | [optional] +**FriendlyName** | **string** | Provides a human readable descriptive text for this Key credential, up to 256 characters long. | [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/rest/preview/docs/CreateModelBuildRequest.md b/rest/preview/docs/CreateModelBuildRequest.md new file mode 100644 index 000000000..da6ef5bad --- /dev/null +++ b/rest/preview/docs/CreateModelBuildRequest.md @@ -0,0 +1,12 @@ +# CreateModelBuildRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StatusCallback** | **string** | | [optional] +**UniqueName** | **string** | A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. For example: v0.1 | [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/rest/preview/docs/CreateQueryRequest.md b/rest/preview/docs/CreateQueryRequest.md new file mode 100644 index 000000000..7cfcb5066 --- /dev/null +++ b/rest/preview/docs/CreateQueryRequest.md @@ -0,0 +1,15 @@ +# CreateQueryRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Field** | **string** | Constraints the query to a given Field with an task. Useful when you know the Field you are expecting. It accepts one field in the format *task-unique-name-1*:*field-unique-name* | [optional] +**Language** | **string** | An ISO language-country string of the sample. | +**ModelBuild** | **string** | The Model Build Sid or unique name of the Model Build to be queried. | [optional] +**Query** | **string** | A user-provided string that uniquely identifies this resource as an alternative to the sid. It can be up to 2048 characters long. | +**Tasks** | **string** | Constraints the query to a set of tasks. Useful when you need to constrain the paths the user can take. Tasks should be comma separated *task-unique-name-1*, *task-unique-name-2* | [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/rest/preview/docs/CreateRatePlanRequest.md b/rest/preview/docs/CreateRatePlanRequest.md new file mode 100644 index 000000000..76f6a086e --- /dev/null +++ b/rest/preview/docs/CreateRatePlanRequest.md @@ -0,0 +1,20 @@ +# CreateRatePlanRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CommandsEnabled** | **bool** | | [optional] +**DataEnabled** | **bool** | | [optional] +**DataLimit** | **int32** | | [optional] +**DataMetering** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**InternationalRoaming** | **[]string** | | [optional] +**MessagingEnabled** | **bool** | | [optional] +**NationalRoamingEnabled** | **bool** | | [optional] +**UniqueName** | **string** | | [optional] +**VoiceEnabled** | **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/rest/preview/docs/CreateSampleRequest.md b/rest/preview/docs/CreateSampleRequest.md new file mode 100644 index 000000000..0ed804cf3 --- /dev/null +++ b/rest/preview/docs/CreateSampleRequest.md @@ -0,0 +1,13 @@ +# CreateSampleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Language** | **string** | An ISO language-country string of the sample. | +**SourceChannel** | **string** | The communication channel the sample was captured. It can be: *voice*, *sms*, *chat*, *alexa*, *google-assistant*, or *slack*. If not included the value will be null | [optional] +**TaggedText** | **string** | The text example of how end-users may express this task. The sample may contain Field tag blocks. | + +[[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/rest/preview/docs/CreateServiceRequest.md b/rest/preview/docs/CreateServiceRequest.md new file mode 100644 index 000000000..bf13f7fae --- /dev/null +++ b/rest/preview/docs/CreateServiceRequest.md @@ -0,0 +1,14 @@ +# CreateServiceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AclEnabled** | **bool** | | [optional] +**FriendlyName** | **string** | | [optional] +**ReachabilityWebhooksEnabled** | **bool** | | [optional] +**WebhookUrl** | **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/rest/preview/docs/CreateSyncListItemRequest.md b/rest/preview/docs/CreateSyncListItemRequest.md new file mode 100644 index 000000000..03e2d37b2 --- /dev/null +++ b/rest/preview/docs/CreateSyncListItemRequest.md @@ -0,0 +1,11 @@ +# CreateSyncListItemRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**map[string]interface{}**](.md) | | + +[[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/rest/preview/docs/CreateSyncListRequest.md b/rest/preview/docs/CreateSyncListRequest.md new file mode 100644 index 000000000..610427137 --- /dev/null +++ b/rest/preview/docs/CreateSyncListRequest.md @@ -0,0 +1,11 @@ +# CreateSyncListRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UniqueName** | **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/rest/preview/docs/CreateSyncMapItemRequest.md b/rest/preview/docs/CreateSyncMapItemRequest.md new file mode 100644 index 000000000..b0369f5a7 --- /dev/null +++ b/rest/preview/docs/CreateSyncMapItemRequest.md @@ -0,0 +1,12 @@ +# CreateSyncMapItemRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**map[string]interface{}**](.md) | | +**Key** | **string** | | + +[[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/rest/preview/docs/CreateSyncMapRequest.md b/rest/preview/docs/CreateSyncMapRequest.md new file mode 100644 index 000000000..644601d61 --- /dev/null +++ b/rest/preview/docs/CreateSyncMapRequest.md @@ -0,0 +1,11 @@ +# CreateSyncMapRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UniqueName** | **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/rest/preview/docs/CreateTaskRequest.md b/rest/preview/docs/CreateTaskRequest.md new file mode 100644 index 000000000..96e3931bf --- /dev/null +++ b/rest/preview/docs/CreateTaskRequest.md @@ -0,0 +1,14 @@ +# CreateTaskRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Actions** | [**map[string]interface{}**](.md) | A user-provided JSON object encoded as a string to specify the actions for this task. It is optional and non-unique. | [optional] +**ActionsUrl** | **string** | User-provided HTTP endpoint where from the assistant fetches actions | [optional] +**FriendlyName** | **string** | A user-provided string that identifies this resource. It is non-unique and can up to 255 characters long. | [optional] +**UniqueName** | **string** | A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. | + +[[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/rest/preview/docs/DefaultApi.md b/rest/preview/docs/DefaultApi.md new file mode 100644 index 000000000..c82265694 --- /dev/null +++ b/rest/preview/docs/DefaultApi.md @@ -0,0 +1,6800 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateAssistant**](DefaultApi.md#CreateAssistant) | **Post** /understand/Assistants | +[**CreateAuthorizationDocument**](DefaultApi.md#CreateAuthorizationDocument) | **Post** /HostedNumbers/AuthorizationDocuments | +[**CreateCertificate**](DefaultApi.md#CreateCertificate) | **Post** /DeployedDevices/Fleets/{FleetSid}/Certificates | +[**CreateChannel**](DefaultApi.md#CreateChannel) | **Post** /TrustedComms/BrandedChannels/{BrandedChannelSid}/Channels | +[**CreateCommand**](DefaultApi.md#CreateCommand) | **Post** /wireless/Commands | +[**CreateDeployment**](DefaultApi.md#CreateDeployment) | **Post** /DeployedDevices/Fleets/{FleetSid}/Deployments | +[**CreateDevice**](DefaultApi.md#CreateDevice) | **Post** /DeployedDevices/Fleets/{FleetSid}/Devices | +[**CreateDocument**](DefaultApi.md#CreateDocument) | **Post** /Sync/Services/{ServiceSid}/Documents | +[**CreateExportCustomJob**](DefaultApi.md#CreateExportCustomJob) | **Post** /BulkExports/Exports/{ResourceType}/Jobs | +[**CreateField**](DefaultApi.md#CreateField) | **Post** /understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields | +[**CreateFieldType**](DefaultApi.md#CreateFieldType) | **Post** /understand/Assistants/{AssistantSid}/FieldTypes | +[**CreateFieldValue**](DefaultApi.md#CreateFieldValue) | **Post** /understand/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues | +[**CreateFleet**](DefaultApi.md#CreateFleet) | **Post** /DeployedDevices/Fleets | +[**CreateHostedNumberOrder**](DefaultApi.md#CreateHostedNumberOrder) | **Post** /HostedNumbers/HostedNumberOrders | +[**CreateInstalledAddOn**](DefaultApi.md#CreateInstalledAddOn) | **Post** /marketplace/InstalledAddOns | +[**CreateKey**](DefaultApi.md#CreateKey) | **Post** /DeployedDevices/Fleets/{FleetSid}/Keys | +[**CreateModelBuild**](DefaultApi.md#CreateModelBuild) | **Post** /understand/Assistants/{AssistantSid}/ModelBuilds | +[**CreateQuery**](DefaultApi.md#CreateQuery) | **Post** /understand/Assistants/{AssistantSid}/Queries | +[**CreateRatePlan**](DefaultApi.md#CreateRatePlan) | **Post** /wireless/RatePlans | +[**CreateSample**](DefaultApi.md#CreateSample) | **Post** /understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples | +[**CreateService**](DefaultApi.md#CreateService) | **Post** /Sync/Services | +[**CreateSyncList**](DefaultApi.md#CreateSyncList) | **Post** /Sync/Services/{ServiceSid}/Lists | +[**CreateSyncListItem**](DefaultApi.md#CreateSyncListItem) | **Post** /Sync/Services/{ServiceSid}/Lists/{ListSid}/Items | +[**CreateSyncMap**](DefaultApi.md#CreateSyncMap) | **Post** /Sync/Services/{ServiceSid}/Maps | +[**CreateSyncMapItem**](DefaultApi.md#CreateSyncMapItem) | **Post** /Sync/Services/{ServiceSid}/Maps/{MapSid}/Items | +[**CreateTask**](DefaultApi.md#CreateTask) | **Post** /understand/Assistants/{AssistantSid}/Tasks | +[**DeleteAssistant**](DefaultApi.md#DeleteAssistant) | **Delete** /understand/Assistants/{Sid} | +[**DeleteCertificate**](DefaultApi.md#DeleteCertificate) | **Delete** /DeployedDevices/Fleets/{FleetSid}/Certificates/{Sid} | +[**DeleteDeployment**](DefaultApi.md#DeleteDeployment) | **Delete** /DeployedDevices/Fleets/{FleetSid}/Deployments/{Sid} | +[**DeleteDevice**](DefaultApi.md#DeleteDevice) | **Delete** /DeployedDevices/Fleets/{FleetSid}/Devices/{Sid} | +[**DeleteDocument**](DefaultApi.md#DeleteDocument) | **Delete** /Sync/Services/{ServiceSid}/Documents/{Sid} | +[**DeleteDocumentPermission**](DefaultApi.md#DeleteDocumentPermission) | **Delete** /Sync/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity} | +[**DeleteField**](DefaultApi.md#DeleteField) | **Delete** /understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields/{Sid} | +[**DeleteFieldType**](DefaultApi.md#DeleteFieldType) | **Delete** /understand/Assistants/{AssistantSid}/FieldTypes/{Sid} | +[**DeleteFieldValue**](DefaultApi.md#DeleteFieldValue) | **Delete** /understand/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues/{Sid} | +[**DeleteFleet**](DefaultApi.md#DeleteFleet) | **Delete** /DeployedDevices/Fleets/{Sid} | +[**DeleteHostedNumberOrder**](DefaultApi.md#DeleteHostedNumberOrder) | **Delete** /HostedNumbers/HostedNumberOrders/{Sid} | +[**DeleteInstalledAddOn**](DefaultApi.md#DeleteInstalledAddOn) | **Delete** /marketplace/InstalledAddOns/{Sid} | +[**DeleteJob**](DefaultApi.md#DeleteJob) | **Delete** /BulkExports/Exports/Jobs/{JobSid} | +[**DeleteKey**](DefaultApi.md#DeleteKey) | **Delete** /DeployedDevices/Fleets/{FleetSid}/Keys/{Sid} | +[**DeleteModelBuild**](DefaultApi.md#DeleteModelBuild) | **Delete** /understand/Assistants/{AssistantSid}/ModelBuilds/{Sid} | +[**DeleteQuery**](DefaultApi.md#DeleteQuery) | **Delete** /understand/Assistants/{AssistantSid}/Queries/{Sid} | +[**DeleteRatePlan**](DefaultApi.md#DeleteRatePlan) | **Delete** /wireless/RatePlans/{Sid} | +[**DeleteSample**](DefaultApi.md#DeleteSample) | **Delete** /understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid} | +[**DeleteService**](DefaultApi.md#DeleteService) | **Delete** /Sync/Services/{Sid} | +[**DeleteSyncList**](DefaultApi.md#DeleteSyncList) | **Delete** /Sync/Services/{ServiceSid}/Lists/{Sid} | +[**DeleteSyncListItem**](DefaultApi.md#DeleteSyncListItem) | **Delete** /Sync/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index} | +[**DeleteSyncListPermission**](DefaultApi.md#DeleteSyncListPermission) | **Delete** /Sync/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity} | +[**DeleteSyncMap**](DefaultApi.md#DeleteSyncMap) | **Delete** /Sync/Services/{ServiceSid}/Maps/{Sid} | +[**DeleteSyncMapItem**](DefaultApi.md#DeleteSyncMapItem) | **Delete** /Sync/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key} | +[**DeleteSyncMapPermission**](DefaultApi.md#DeleteSyncMapPermission) | **Delete** /Sync/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity} | +[**DeleteTask**](DefaultApi.md#DeleteTask) | **Delete** /understand/Assistants/{AssistantSid}/Tasks/{Sid} | +[**FetchAssistant**](DefaultApi.md#FetchAssistant) | **Get** /understand/Assistants/{Sid} | +[**FetchAssistantFallbackActions**](DefaultApi.md#FetchAssistantFallbackActions) | **Get** /understand/Assistants/{AssistantSid}/FallbackActions | +[**FetchAssistantInitiationActions**](DefaultApi.md#FetchAssistantInitiationActions) | **Get** /understand/Assistants/{AssistantSid}/InitiationActions | +[**FetchAuthorizationDocument**](DefaultApi.md#FetchAuthorizationDocument) | **Get** /HostedNumbers/AuthorizationDocuments/{Sid} | +[**FetchAvailableAddOn**](DefaultApi.md#FetchAvailableAddOn) | **Get** /marketplace/AvailableAddOns/{Sid} | +[**FetchAvailableAddOnExtension**](DefaultApi.md#FetchAvailableAddOnExtension) | **Get** /marketplace/AvailableAddOns/{AvailableAddOnSid}/Extensions/{Sid} | +[**FetchBrandedChannel**](DefaultApi.md#FetchBrandedChannel) | **Get** /TrustedComms/BrandedChannels/{Sid} | +[**FetchBrandsInformation**](DefaultApi.md#FetchBrandsInformation) | **Get** /TrustedComms/BrandsInformation | +[**FetchCertificate**](DefaultApi.md#FetchCertificate) | **Get** /DeployedDevices/Fleets/{FleetSid}/Certificates/{Sid} | +[**FetchCommand**](DefaultApi.md#FetchCommand) | **Get** /wireless/Commands/{Sid} | +[**FetchCps**](DefaultApi.md#FetchCps) | **Get** /TrustedComms/CPS | +[**FetchCurrentCall**](DefaultApi.md#FetchCurrentCall) | **Get** /TrustedComms/CurrentCall | +[**FetchDay**](DefaultApi.md#FetchDay) | **Get** /BulkExports/Exports/{ResourceType}/Days/{Day} | +[**FetchDeployment**](DefaultApi.md#FetchDeployment) | **Get** /DeployedDevices/Fleets/{FleetSid}/Deployments/{Sid} | +[**FetchDevice**](DefaultApi.md#FetchDevice) | **Get** /DeployedDevices/Fleets/{FleetSid}/Devices/{Sid} | +[**FetchDialogue**](DefaultApi.md#FetchDialogue) | **Get** /understand/Assistants/{AssistantSid}/Dialogues/{Sid} | +[**FetchDocument**](DefaultApi.md#FetchDocument) | **Get** /Sync/Services/{ServiceSid}/Documents/{Sid} | +[**FetchDocumentPermission**](DefaultApi.md#FetchDocumentPermission) | **Get** /Sync/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity} | +[**FetchExport**](DefaultApi.md#FetchExport) | **Get** /BulkExports/Exports/{ResourceType} | +[**FetchExportConfiguration**](DefaultApi.md#FetchExportConfiguration) | **Get** /BulkExports/Exports/{ResourceType}/Configuration | +[**FetchField**](DefaultApi.md#FetchField) | **Get** /understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields/{Sid} | +[**FetchFieldType**](DefaultApi.md#FetchFieldType) | **Get** /understand/Assistants/{AssistantSid}/FieldTypes/{Sid} | +[**FetchFieldValue**](DefaultApi.md#FetchFieldValue) | **Get** /understand/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues/{Sid} | +[**FetchFleet**](DefaultApi.md#FetchFleet) | **Get** /DeployedDevices/Fleets/{Sid} | +[**FetchHostedNumberOrder**](DefaultApi.md#FetchHostedNumberOrder) | **Get** /HostedNumbers/HostedNumberOrders/{Sid} | +[**FetchInstalledAddOn**](DefaultApi.md#FetchInstalledAddOn) | **Get** /marketplace/InstalledAddOns/{Sid} | +[**FetchInstalledAddOnExtension**](DefaultApi.md#FetchInstalledAddOnExtension) | **Get** /marketplace/InstalledAddOns/{InstalledAddOnSid}/Extensions/{Sid} | +[**FetchJob**](DefaultApi.md#FetchJob) | **Get** /BulkExports/Exports/Jobs/{JobSid} | +[**FetchKey**](DefaultApi.md#FetchKey) | **Get** /DeployedDevices/Fleets/{FleetSid}/Keys/{Sid} | +[**FetchModelBuild**](DefaultApi.md#FetchModelBuild) | **Get** /understand/Assistants/{AssistantSid}/ModelBuilds/{Sid} | +[**FetchQuery**](DefaultApi.md#FetchQuery) | **Get** /understand/Assistants/{AssistantSid}/Queries/{Sid} | +[**FetchRatePlan**](DefaultApi.md#FetchRatePlan) | **Get** /wireless/RatePlans/{Sid} | +[**FetchSample**](DefaultApi.md#FetchSample) | **Get** /understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid} | +[**FetchService**](DefaultApi.md#FetchService) | **Get** /Sync/Services/{Sid} | +[**FetchSim**](DefaultApi.md#FetchSim) | **Get** /wireless/Sims/{Sid} | +[**FetchStyleSheet**](DefaultApi.md#FetchStyleSheet) | **Get** /understand/Assistants/{AssistantSid}/StyleSheet | +[**FetchSyncList**](DefaultApi.md#FetchSyncList) | **Get** /Sync/Services/{ServiceSid}/Lists/{Sid} | +[**FetchSyncListItem**](DefaultApi.md#FetchSyncListItem) | **Get** /Sync/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index} | +[**FetchSyncListPermission**](DefaultApi.md#FetchSyncListPermission) | **Get** /Sync/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity} | +[**FetchSyncMap**](DefaultApi.md#FetchSyncMap) | **Get** /Sync/Services/{ServiceSid}/Maps/{Sid} | +[**FetchSyncMapItem**](DefaultApi.md#FetchSyncMapItem) | **Get** /Sync/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key} | +[**FetchSyncMapPermission**](DefaultApi.md#FetchSyncMapPermission) | **Get** /Sync/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity} | +[**FetchTask**](DefaultApi.md#FetchTask) | **Get** /understand/Assistants/{AssistantSid}/Tasks/{Sid} | +[**FetchTaskActions**](DefaultApi.md#FetchTaskActions) | **Get** /understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Actions | +[**FetchTaskStatistics**](DefaultApi.md#FetchTaskStatistics) | **Get** /understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Statistics | +[**FetchUsage**](DefaultApi.md#FetchUsage) | **Get** /wireless/Sims/{SimSid}/Usage | +[**ListAssistant**](DefaultApi.md#ListAssistant) | **Get** /understand/Assistants | +[**ListAuthorizationDocument**](DefaultApi.md#ListAuthorizationDocument) | **Get** /HostedNumbers/AuthorizationDocuments | +[**ListAvailableAddOn**](DefaultApi.md#ListAvailableAddOn) | **Get** /marketplace/AvailableAddOns | +[**ListAvailableAddOnExtension**](DefaultApi.md#ListAvailableAddOnExtension) | **Get** /marketplace/AvailableAddOns/{AvailableAddOnSid}/Extensions | +[**ListCertificate**](DefaultApi.md#ListCertificate) | **Get** /DeployedDevices/Fleets/{FleetSid}/Certificates | +[**ListCommand**](DefaultApi.md#ListCommand) | **Get** /wireless/Commands | +[**ListDay**](DefaultApi.md#ListDay) | **Get** /BulkExports/Exports/{ResourceType}/Days | +[**ListDependentHostedNumberOrder**](DefaultApi.md#ListDependentHostedNumberOrder) | **Get** /HostedNumbers/AuthorizationDocuments/{SigningDocumentSid}/DependentHostedNumberOrders | +[**ListDeployment**](DefaultApi.md#ListDeployment) | **Get** /DeployedDevices/Fleets/{FleetSid}/Deployments | +[**ListDevice**](DefaultApi.md#ListDevice) | **Get** /DeployedDevices/Fleets/{FleetSid}/Devices | +[**ListDocument**](DefaultApi.md#ListDocument) | **Get** /Sync/Services/{ServiceSid}/Documents | +[**ListDocumentPermission**](DefaultApi.md#ListDocumentPermission) | **Get** /Sync/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions | +[**ListExportCustomJob**](DefaultApi.md#ListExportCustomJob) | **Get** /BulkExports/Exports/{ResourceType}/Jobs | +[**ListField**](DefaultApi.md#ListField) | **Get** /understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields | +[**ListFieldType**](DefaultApi.md#ListFieldType) | **Get** /understand/Assistants/{AssistantSid}/FieldTypes | +[**ListFieldValue**](DefaultApi.md#ListFieldValue) | **Get** /understand/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues | +[**ListFleet**](DefaultApi.md#ListFleet) | **Get** /DeployedDevices/Fleets | +[**ListHostedNumberOrder**](DefaultApi.md#ListHostedNumberOrder) | **Get** /HostedNumbers/HostedNumberOrders | +[**ListInstalledAddOn**](DefaultApi.md#ListInstalledAddOn) | **Get** /marketplace/InstalledAddOns | +[**ListInstalledAddOnExtension**](DefaultApi.md#ListInstalledAddOnExtension) | **Get** /marketplace/InstalledAddOns/{InstalledAddOnSid}/Extensions | +[**ListKey**](DefaultApi.md#ListKey) | **Get** /DeployedDevices/Fleets/{FleetSid}/Keys | +[**ListModelBuild**](DefaultApi.md#ListModelBuild) | **Get** /understand/Assistants/{AssistantSid}/ModelBuilds | +[**ListQuery**](DefaultApi.md#ListQuery) | **Get** /understand/Assistants/{AssistantSid}/Queries | +[**ListRatePlan**](DefaultApi.md#ListRatePlan) | **Get** /wireless/RatePlans | +[**ListSample**](DefaultApi.md#ListSample) | **Get** /understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples | +[**ListService**](DefaultApi.md#ListService) | **Get** /Sync/Services | +[**ListSim**](DefaultApi.md#ListSim) | **Get** /wireless/Sims | +[**ListSyncList**](DefaultApi.md#ListSyncList) | **Get** /Sync/Services/{ServiceSid}/Lists | +[**ListSyncListItem**](DefaultApi.md#ListSyncListItem) | **Get** /Sync/Services/{ServiceSid}/Lists/{ListSid}/Items | +[**ListSyncListPermission**](DefaultApi.md#ListSyncListPermission) | **Get** /Sync/Services/{ServiceSid}/Lists/{ListSid}/Permissions | +[**ListSyncMap**](DefaultApi.md#ListSyncMap) | **Get** /Sync/Services/{ServiceSid}/Maps | +[**ListSyncMapItem**](DefaultApi.md#ListSyncMapItem) | **Get** /Sync/Services/{ServiceSid}/Maps/{MapSid}/Items | +[**ListSyncMapPermission**](DefaultApi.md#ListSyncMapPermission) | **Get** /Sync/Services/{ServiceSid}/Maps/{MapSid}/Permissions | +[**ListTask**](DefaultApi.md#ListTask) | **Get** /understand/Assistants/{AssistantSid}/Tasks | +[**UpdateAssistant**](DefaultApi.md#UpdateAssistant) | **Post** /understand/Assistants/{Sid} | +[**UpdateAssistantFallbackActions**](DefaultApi.md#UpdateAssistantFallbackActions) | **Post** /understand/Assistants/{AssistantSid}/FallbackActions | +[**UpdateAssistantInitiationActions**](DefaultApi.md#UpdateAssistantInitiationActions) | **Post** /understand/Assistants/{AssistantSid}/InitiationActions | +[**UpdateAuthorizationDocument**](DefaultApi.md#UpdateAuthorizationDocument) | **Post** /HostedNumbers/AuthorizationDocuments/{Sid} | +[**UpdateCertificate**](DefaultApi.md#UpdateCertificate) | **Post** /DeployedDevices/Fleets/{FleetSid}/Certificates/{Sid} | +[**UpdateDeployment**](DefaultApi.md#UpdateDeployment) | **Post** /DeployedDevices/Fleets/{FleetSid}/Deployments/{Sid} | +[**UpdateDevice**](DefaultApi.md#UpdateDevice) | **Post** /DeployedDevices/Fleets/{FleetSid}/Devices/{Sid} | +[**UpdateDocument**](DefaultApi.md#UpdateDocument) | **Post** /Sync/Services/{ServiceSid}/Documents/{Sid} | +[**UpdateDocumentPermission**](DefaultApi.md#UpdateDocumentPermission) | **Post** /Sync/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity} | +[**UpdateExportConfiguration**](DefaultApi.md#UpdateExportConfiguration) | **Post** /BulkExports/Exports/{ResourceType}/Configuration | +[**UpdateFieldType**](DefaultApi.md#UpdateFieldType) | **Post** /understand/Assistants/{AssistantSid}/FieldTypes/{Sid} | +[**UpdateFleet**](DefaultApi.md#UpdateFleet) | **Post** /DeployedDevices/Fleets/{Sid} | +[**UpdateHostedNumberOrder**](DefaultApi.md#UpdateHostedNumberOrder) | **Post** /HostedNumbers/HostedNumberOrders/{Sid} | +[**UpdateInstalledAddOn**](DefaultApi.md#UpdateInstalledAddOn) | **Post** /marketplace/InstalledAddOns/{Sid} | +[**UpdateInstalledAddOnExtension**](DefaultApi.md#UpdateInstalledAddOnExtension) | **Post** /marketplace/InstalledAddOns/{InstalledAddOnSid}/Extensions/{Sid} | +[**UpdateKey**](DefaultApi.md#UpdateKey) | **Post** /DeployedDevices/Fleets/{FleetSid}/Keys/{Sid} | +[**UpdateModelBuild**](DefaultApi.md#UpdateModelBuild) | **Post** /understand/Assistants/{AssistantSid}/ModelBuilds/{Sid} | +[**UpdateQuery**](DefaultApi.md#UpdateQuery) | **Post** /understand/Assistants/{AssistantSid}/Queries/{Sid} | +[**UpdateRatePlan**](DefaultApi.md#UpdateRatePlan) | **Post** /wireless/RatePlans/{Sid} | +[**UpdateSample**](DefaultApi.md#UpdateSample) | **Post** /understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid} | +[**UpdateService**](DefaultApi.md#UpdateService) | **Post** /Sync/Services/{Sid} | +[**UpdateSim**](DefaultApi.md#UpdateSim) | **Post** /wireless/Sims/{Sid} | +[**UpdateStyleSheet**](DefaultApi.md#UpdateStyleSheet) | **Post** /understand/Assistants/{AssistantSid}/StyleSheet | +[**UpdateSyncListItem**](DefaultApi.md#UpdateSyncListItem) | **Post** /Sync/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index} | +[**UpdateSyncListPermission**](DefaultApi.md#UpdateSyncListPermission) | **Post** /Sync/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity} | +[**UpdateSyncMapItem**](DefaultApi.md#UpdateSyncMapItem) | **Post** /Sync/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key} | +[**UpdateSyncMapPermission**](DefaultApi.md#UpdateSyncMapPermission) | **Post** /Sync/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity} | +[**UpdateTask**](DefaultApi.md#UpdateTask) | **Post** /understand/Assistants/{AssistantSid}/Tasks/{Sid} | +[**UpdateTaskActions**](DefaultApi.md#UpdateTaskActions) | **Post** /understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Actions | + + + +## CreateAssistant + +> PreviewUnderstandAssistant CreateAssistant(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateAssistantOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateAssistantOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **callbackEvents** | **optional.String**| Space-separated list of callback events that will trigger callbacks. | + **callbackUrl** | **optional.String**| A user-provided URL to send event callbacks to. | + **fallbackActions** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON actions to be executed when the user's input is not recognized as matching any Task. | + **friendlyName** | **optional.String**| A text description for the Assistant. It is non-unique and can up to 255 characters long. | + **initiationActions** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON actions to be executed on inbound phone calls when the Assistant has to say something first. | + **logQueries** | **optional.Bool**| A boolean that specifies whether queries should be logged for 30 days further training. If false, no queries will be stored, if true, queries will be stored for 30 days and deleted thereafter. Defaults to true if no value is provided. | + **styleSheet** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON object that holds the style sheet for the assistant | + **uniqueName** | **optional.String**| A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. | + +### Return type + +[**PreviewUnderstandAssistant**](preview.understand.assistant.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) + + +## CreateAuthorizationDocument + +> PreviewHostedNumbersAuthorizationDocument CreateAuthorizationDocument(ctx, optional) + + + +Create an AuthorizationDocument for authorizing the hosting of phone number capabilities on Twilio's platform. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateAuthorizationDocumentOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateAuthorizationDocumentOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **addressSid** | **optional.String**| A 34 character string that uniquely identifies the Address resource that is associated with this AuthorizationDocument. | + **ccEmails** | [**optional.Interface of []string**](string.md)| Email recipients who will be informed when an Authorization Document has been sent and signed. | + **contactPhoneNumber** | **optional.String**| The contact phone number of the person authorized to sign the Authorization Document. | + **contactTitle** | **optional.String**| The title of the person authorized to sign the Authorization Document for this phone number. | + **email** | **optional.String**| Email that this AuthorizationDocument will be sent to for signing. | + **hostedNumberOrderSids** | [**optional.Interface of []string**](string.md)| A list of HostedNumberOrder sids that this AuthorizationDocument will authorize for hosting phone number capabilities on Twilio's platform. | + +### Return type + +[**PreviewHostedNumbersAuthorizationDocument**](preview.hosted_numbers.authorization_document.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) + + +## CreateCertificate + +> PreviewDeployedDevicesFleetCertificate CreateCertificate(ctx, fleetSid, optional) + + + +Enroll a new Certificate credential to the Fleet, optionally giving it a friendly name and assigning to a Device. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fleetSid** | **string**| | + **optional** | ***CreateCertificateOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateCertificateOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **certificateData** | **optional.String**| Provides a URL encoded representation of the public certificate in PEM format. | + **deviceSid** | **optional.String**| Provides the unique string identifier of an existing Device to become authenticated with this Certificate credential. | + **friendlyName** | **optional.String**| Provides a human readable descriptive text for this Certificate credential, up to 256 characters long. | + +### Return type + +[**PreviewDeployedDevicesFleetCertificate**](preview.deployed_devices.fleet.certificate.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) + + +## CreateChannel + +> PreviewTrustedCommsBrandedChannelChannel CreateChannel(ctx, brandedChannelSid, optional) + + + +Associate a channel to a branded channel + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**brandedChannelSid** | **string**| The unique SID identifier of the Branded Channel. The given phone number is going to be assigned to this Branded Channel | + **optional** | ***CreateChannelOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateChannelOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **phoneNumberSid** | **optional.String**| The unique SID identifier of the Phone Number of the Phone number to be assigned to the Branded Channel. | + +### Return type + +[**PreviewTrustedCommsBrandedChannelChannel**](preview.trusted_comms.branded_channel.channel.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) + + +## CreateCommand + +> PreviewWirelessCommand CreateCommand(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateCommandOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateCommandOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **callbackMethod** | **optional.String**| | + **callbackUrl** | **optional.String**| | + **command** | **optional.String**| | + **commandMode** | **optional.String**| | + **device** | **optional.String**| | + **includeSid** | **optional.String**| | + **sim** | **optional.String**| | + +### Return type + +[**PreviewWirelessCommand**](preview.wireless.command.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) + + +## CreateDeployment + +> PreviewDeployedDevicesFleetDeployment CreateDeployment(ctx, fleetSid, optional) + + + +Create a new Deployment in the Fleet, optionally giving it a friendly name and linking to a specific Twilio Sync service instance. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fleetSid** | **string**| | + **optional** | ***CreateDeploymentOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateDeploymentOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **friendlyName** | **optional.String**| Provides a human readable descriptive text for this Deployment, up to 256 characters long. | + **syncServiceSid** | **optional.String**| Provides the unique string identifier of the Twilio Sync service instance that will be linked to and accessible by this Deployment. | + +### Return type + +[**PreviewDeployedDevicesFleetDeployment**](preview.deployed_devices.fleet.deployment.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) + + +## CreateDevice + +> PreviewDeployedDevicesFleetDevice CreateDevice(ctx, fleetSid, optional) + + + +Create a new Device in the Fleet, optionally giving it a unique name, friendly name, and assigning to a Deployment and/or human identity. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fleetSid** | **string**| | + **optional** | ***CreateDeviceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateDeviceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **deploymentSid** | **optional.String**| Specifies the unique string identifier of the Deployment group that this Device is going to be associated with. | + **enabled** | **optional.Bool**| | + **friendlyName** | **optional.String**| Provides a human readable descriptive text to be assigned to this Device, up to 256 characters long. | + **identity** | **optional.String**| Provides an arbitrary string identifier representing a human user to be associated with this Device, up to 256 characters long. | + **uniqueName** | **optional.String**| Provides a unique and addressable name to be assigned to this Device, to be used in addition to SID, up to 128 characters long. | + +### Return type + +[**PreviewDeployedDevicesFleetDevice**](preview.deployed_devices.fleet.device.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) + + +## CreateDocument + +> PreviewSyncServiceDocument CreateDocument(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | + **optional** | ***CreateDocumentOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateDocumentOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| | + **uniqueName** | **optional.String**| | + +### Return type + +[**PreviewSyncServiceDocument**](preview.sync.service.document.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) + + +## CreateExportCustomJob + +> PreviewBulkExportsExportExportCustomJob CreateExportCustomJob(ctx, resourceType, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**resourceType** | **string**| The type of communication – Messages or Calls | + **optional** | ***CreateExportCustomJobOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateExportCustomJobOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **email** | **optional.String**| The optional email to send the completion notification to | + **endDay** | **optional.String**| The end day for the custom export specified as a string in the format of yyyy-mm-dd. End day is inclusive and must be 2 days earlier than the current UTC day. | + **friendlyName** | **optional.String**| The friendly name specified when creating the job | + **startDay** | **optional.String**| The start day for the custom export specified as a string in the format of yyyy-mm-dd | + **webhookMethod** | **optional.String**| This is the method used to call the webhook on completion of the job. If this is supplied, `WebhookUrl` must also be supplied. | + **webhookUrl** | **optional.String**| The optional webhook url called on completion of the job. If this is supplied, `WebhookMethod` must also be supplied. | + +### Return type + +[**PreviewBulkExportsExportExportCustomJob**](preview.bulk_exports.export.export_custom_job.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) + + +## CreateField + +> PreviewUnderstandAssistantTaskField CreateField(ctx, assistantSid, taskSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The unique ID of the parent Assistant. | +**taskSid** | **string**| The unique ID of the Task associated with this Field. | + **optional** | ***CreateFieldOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateFieldOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **fieldType** | **optional.String**| The unique name or sid of the FieldType. It can be any [Built-in Field Type](https://www.twilio.com/docs/assistant/api/built-in-field-types) or the unique_name or the Field Type sid of a custom Field Type. | + **uniqueName** | **optional.String**| A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. | + +### Return type + +[**PreviewUnderstandAssistantTaskField**](preview.understand.assistant.task.field.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) + + +## CreateFieldType + +> PreviewUnderstandAssistantFieldType CreateFieldType(ctx, assistantSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| | + **optional** | ***CreateFieldTypeOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateFieldTypeOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **friendlyName** | **optional.String**| A user-provided string that identifies this resource. It is non-unique and can up to 255 characters long. | + **uniqueName** | **optional.String**| A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. | + +### Return type + +[**PreviewUnderstandAssistantFieldType**](preview.understand.assistant.field_type.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) + + +## CreateFieldValue + +> PreviewUnderstandAssistantFieldTypeFieldValue CreateFieldValue(ctx, assistantSid, fieldTypeSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| | +**fieldTypeSid** | **string**| | + **optional** | ***CreateFieldValueOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateFieldValueOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **language** | **optional.String**| An ISO language-country string of the value. | + **synonymOf** | **optional.String**| A value that indicates this field value is a synonym of. Empty if the value is not a synonym. | + **value** | **optional.String**| A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. | + +### Return type + +[**PreviewUnderstandAssistantFieldTypeFieldValue**](preview.understand.assistant.field_type.field_value.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) + + +## CreateFleet + +> PreviewDeployedDevicesFleet CreateFleet(ctx, optional) + + + +Create a new Fleet for scoping of deployed devices within your account. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateFleetOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateFleetOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **friendlyName** | **optional.String**| Provides a human readable descriptive text for this Fleet, up to 256 characters long. | + +### Return type + +[**PreviewDeployedDevicesFleet**](preview.deployed_devices.fleet.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) + + +## CreateHostedNumberOrder + +> PreviewHostedNumbersHostedNumberOrder CreateHostedNumberOrder(ctx, optional) + + + +Host a phone number's capability on Twilio's platform. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateHostedNumberOrderOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateHostedNumberOrderOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accountSid** | **optional.String**| This defaults to the AccountSid of the authorization the user is using. This can be provided to specify a subaccount to add the HostedNumberOrder to. | + **addressSid** | **optional.String**| Optional. A 34 character string that uniquely identifies the Address resource that represents the address of the owner of this phone number. | + **ccEmails** | [**optional.Interface of []string**](string.md)| Optional. A list of emails that the LOA document for this HostedNumberOrder will be carbon copied to. | + **email** | **optional.String**| Optional. Email of the owner of this phone number that is being hosted. | + **friendlyName** | **optional.String**| A 64 character string that is a human readable text that describes this resource. | + **phoneNumber** | **optional.String**| The number to host in [+E.164](https://en.wikipedia.org/wiki/E.164) format | + **smsApplicationSid** | **optional.String**| Optional. The 34 character sid of the application Twilio should use to handle SMS messages sent to this number. If a `SmsApplicationSid` is present, Twilio will ignore all of the SMS urls above and use those set on the application. | + **smsCapability** | **optional.Bool**| Used to specify that the SMS capability will be hosted on Twilio's platform. | + **smsFallbackMethod** | **optional.String**| The HTTP method that should be used to request the SmsFallbackUrl. Must be either `GET` or `POST`. This will be copied onto the IncomingPhoneNumber resource. | + **smsFallbackUrl** | **optional.String**| A URL that Twilio will request if an error occurs requesting or executing the TwiML defined by SmsUrl. This will be copied onto the IncomingPhoneNumber resource. | + **smsMethod** | **optional.String**| The HTTP method that should be used to request the SmsUrl. Must be either `GET` or `POST`. This will be copied onto the IncomingPhoneNumber resource. | + **smsUrl** | **optional.String**| The URL that Twilio should request when somebody sends an SMS to the phone number. This will be copied onto the IncomingPhoneNumber resource. | + **statusCallbackMethod** | **optional.String**| Optional. The Status Callback Method attached to the IncomingPhoneNumber resource. | + **statusCallbackUrl** | **optional.String**| Optional. The Status Callback URL attached to the IncomingPhoneNumber resource. | + **uniqueName** | **optional.String**| Optional. Provides a unique and addressable name to be assigned to this HostedNumberOrder, assigned by the developer, to be optionally used in addition to SID. | + **verificationDocumentSid** | **optional.String**| Optional. The unique sid identifier of the Identity Document that represents the document for verifying ownership of the number to be hosted. Required when VerificationType is phone-bill. | + **verificationType** | **optional.String**| Optional. The method used for verifying ownership of the number to be hosted. One of phone-call (default) or phone-bill. | + +### Return type + +[**PreviewHostedNumbersHostedNumberOrder**](preview.hosted_numbers.hosted_number_order.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) + + +## CreateInstalledAddOn + +> PreviewMarketplaceInstalledAddOn CreateInstalledAddOn(ctx, optional) + + + +Install an Add-on for the Account specified. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateInstalledAddOnOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateInstalledAddOnOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **acceptTermsOfService** | **optional.Bool**| Whether the Terms of Service were accepted. | + **availableAddOnSid** | **optional.String**| The SID of the AvaliableAddOn to install. | + **configuration** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON object that represents the configuration of the new Add-on being installed. | + **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. This value must be unique within the Account. | + +### Return type + +[**PreviewMarketplaceInstalledAddOn**](preview.marketplace.installed_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) + + +## CreateKey + +> PreviewDeployedDevicesFleetKey CreateKey(ctx, fleetSid, optional) + + + +Create a new Key credential in the Fleet, optionally giving it a friendly name and assigning to a Device. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fleetSid** | **string**| | + **optional** | ***CreateKeyOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateKeyOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **deviceSid** | **optional.String**| Provides the unique string identifier of an existing Device to become authenticated with this Key credential. | + **friendlyName** | **optional.String**| Provides a human readable descriptive text for this Key credential, up to 256 characters long. | + +### Return type + +[**PreviewDeployedDevicesFleetKey**](preview.deployed_devices.fleet.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) + + +## CreateModelBuild + +> PreviewUnderstandAssistantModelBuild CreateModelBuild(ctx, assistantSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| | + **optional** | ***CreateModelBuildOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateModelBuildOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **statusCallback** | **optional.String**| | + **uniqueName** | **optional.String**| A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. For example: v0.1 | + +### Return type + +[**PreviewUnderstandAssistantModelBuild**](preview.understand.assistant.model_build.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) + + +## CreateQuery + +> PreviewUnderstandAssistantQuery CreateQuery(ctx, assistantSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The unique ID of the parent Assistant. | + **optional** | ***CreateQueryOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateQueryOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **field** | **optional.String**| Constraints the query to a given Field with an task. Useful when you know the Field you are expecting. It accepts one field in the format *task-unique-name-1*:*field-unique-name* | + **language** | **optional.String**| An ISO language-country string of the sample. | + **modelBuild** | **optional.String**| The Model Build Sid or unique name of the Model Build to be queried. | + **query** | **optional.String**| A user-provided string that uniquely identifies this resource as an alternative to the sid. It can be up to 2048 characters long. | + **tasks** | **optional.String**| Constraints the query to a set of tasks. Useful when you need to constrain the paths the user can take. Tasks should be comma separated *task-unique-name-1*, *task-unique-name-2* | + +### Return type + +[**PreviewUnderstandAssistantQuery**](preview.understand.assistant.query.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) + + +## CreateRatePlan + +> PreviewWirelessRatePlan CreateRatePlan(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateRatePlanOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateRatePlanOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commandsEnabled** | **optional.Bool**| | + **dataEnabled** | **optional.Bool**| | + **dataLimit** | **optional.Int32**| | + **dataMetering** | **optional.String**| | + **friendlyName** | **optional.String**| | + **internationalRoaming** | [**optional.Interface of []string**](string.md)| | + **messagingEnabled** | **optional.Bool**| | + **nationalRoamingEnabled** | **optional.Bool**| | + **uniqueName** | **optional.String**| | + **voiceEnabled** | **optional.Bool**| | + +### Return type + +[**PreviewWirelessRatePlan**](preview.wireless.rate_plan.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) + + +## CreateSample + +> PreviewUnderstandAssistantTaskSample CreateSample(ctx, assistantSid, taskSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The unique ID of the Assistant. | +**taskSid** | **string**| The unique ID of the Task associated with this Sample. | + **optional** | ***CreateSampleOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateSampleOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **language** | **optional.String**| An ISO language-country string of the sample. | + **sourceChannel** | **optional.String**| The communication channel the sample was captured. It can be: *voice*, *sms*, *chat*, *alexa*, *google-assistant*, or *slack*. If not included the value will be null | + **taggedText** | **optional.String**| The text example of how end-users may express this task. The sample may contain Field tag blocks. | + +### Return type + +[**PreviewUnderstandAssistantTaskSample**](preview.understand.assistant.task.sample.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) + + +## CreateService + +> PreviewSyncService CreateService(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateServiceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateServiceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **aclEnabled** | **optional.Bool**| | + **friendlyName** | **optional.String**| | + **reachabilityWebhooksEnabled** | **optional.Bool**| | + **webhookUrl** | **optional.String**| | + +### Return type + +[**PreviewSyncService**](preview.sync.service.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) + + +## CreateSyncList + +> PreviewSyncServiceSyncList CreateSyncList(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | + **optional** | ***CreateSyncListOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateSyncListOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **uniqueName** | **optional.String**| | + +### Return type + +[**PreviewSyncServiceSyncList**](preview.sync.service.sync_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) + + +## CreateSyncListItem + +> PreviewSyncServiceSyncListSyncListItem CreateSyncListItem(ctx, serviceSid, listSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**listSid** | **string**| | + **optional** | ***CreateSyncListItemOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateSyncListItemOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| | + +### Return type + +[**PreviewSyncServiceSyncListSyncListItem**](preview.sync.service.sync_list.sync_list_item.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) + + +## CreateSyncMap + +> PreviewSyncServiceSyncMap CreateSyncMap(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | + **optional** | ***CreateSyncMapOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateSyncMapOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **uniqueName** | **optional.String**| | + +### Return type + +[**PreviewSyncServiceSyncMap**](preview.sync.service.sync_map.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) + + +## CreateSyncMapItem + +> PreviewSyncServiceSyncMapSyncMapItem CreateSyncMapItem(ctx, serviceSid, mapSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**mapSid** | **string**| | + **optional** | ***CreateSyncMapItemOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateSyncMapItemOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| | + **key** | **optional.String**| | + +### Return type + +[**PreviewSyncServiceSyncMapSyncMapItem**](preview.sync.service.sync_map.sync_map_item.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) + + +## CreateTask + +> PreviewUnderstandAssistantTask CreateTask(ctx, assistantSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The unique ID of the Assistant. | + **optional** | ***CreateTaskOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateTaskOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **actions** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A user-provided JSON object encoded as a string to specify the actions for this task. It is optional and non-unique. | + **actionsUrl** | **optional.String**| User-provided HTTP endpoint where from the assistant fetches actions | + **friendlyName** | **optional.String**| A user-provided string that identifies this resource. It is non-unique and can up to 255 characters long. | + **uniqueName** | **optional.String**| A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. | + +### Return type + +[**PreviewUnderstandAssistantTask**](preview.understand.assistant.task.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) + + +## DeleteAssistant + +> DeleteAssistant(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + +### 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) + + +## DeleteCertificate + +> DeleteCertificate(ctx, fleetSid, sid) + + + +Unregister a specific Certificate credential from the Fleet, effectively disallowing any inbound client connections that are presenting it. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fleetSid** | **string**| | +**sid** | **string**| Provides a 34 character string that uniquely identifies the requested Certificate credential resource. | + +### 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) + + +## DeleteDeployment + +> DeleteDeployment(ctx, fleetSid, sid) + + + +Delete a specific Deployment from the Fleet, leaving associated devices effectively undeployed. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fleetSid** | **string**| | +**sid** | **string**| Provides a 34 character string that uniquely identifies the requested Deployment resource. | + +### 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) + + +## DeleteDevice + +> DeleteDevice(ctx, fleetSid, sid) + + + +Delete a specific Device from the Fleet, also removing it from associated Deployments. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fleetSid** | **string**| | +**sid** | **string**| Provides a 34 character string that uniquely identifies the requested Device resource. | + +### 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) + + +## DeleteDocument + +> DeleteDocument(ctx, serviceSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**sid** | **string**| | + **optional** | ***DeleteDocumentOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a DeleteDocumentOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **ifMatch** | **optional.String**| The If-Match HTTP request header | + +### 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) + + +## DeleteDocumentPermission + +> DeleteDocumentPermission(ctx, serviceSid, documentSid, identity) + + + +Delete a specific Sync Document Permission. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**documentSid** | **string**| Identifier of the Sync Document. Either a SID or a unique name. | +**identity** | **string**| Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. | + +### 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) + + +## DeleteField + +> DeleteField(ctx, assistantSid, taskSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The unique ID of the Assistant. | +**taskSid** | **string**| The unique ID of the Task associated with this Field. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + +### 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) + + +## DeleteFieldType + +> DeleteFieldType(ctx, assistantSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| | +**sid** | **string**| | + +### 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) + + +## DeleteFieldValue + +> DeleteFieldValue(ctx, assistantSid, fieldTypeSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| | +**fieldTypeSid** | **string**| | +**sid** | **string**| | + +### 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) + + +## DeleteFleet + +> DeleteFleet(ctx, sid) + + + +Delete a specific Fleet from your account, also destroys all nested resources: Devices, Deployments, Certificates, Keys. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| Provides a 34 character string that uniquely identifies the requested Fleet resource. | + +### 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) + + +## DeleteHostedNumberOrder + +> DeleteHostedNumberOrder(ctx, sid) + + + +Cancel the HostedNumberOrder (only available when the status is in `received`). + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| A 34 character string that uniquely identifies this HostedNumberOrder. | + +### 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) + + +## DeleteInstalledAddOn + +> DeleteInstalledAddOn(ctx, sid) + + + +Remove an Add-on installation from your account + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the InstalledAddOn resource to delete. | + +### 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) + + +## DeleteJob + +> DeleteJob(ctx, jobSid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**jobSid** | **string**| The unique string that that we created to identify the Bulk Export job | + +### 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) + + +## DeleteKey + +> DeleteKey(ctx, fleetSid, sid) + + + +Delete a specific Key credential from the Fleet, effectively disallowing any inbound client connections that are presenting it. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fleetSid** | **string**| | +**sid** | **string**| Provides a 34 character string that uniquely identifies the requested Key credential resource. | + +### 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) + + +## DeleteModelBuild + +> DeleteModelBuild(ctx, assistantSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| | +**sid** | **string**| | + +### 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) + + +## DeleteQuery + +> DeleteQuery(ctx, assistantSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The unique ID of the Assistant. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + +### 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) + + +## DeleteRatePlan + +> DeleteRatePlan(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| | + +### 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) + + +## DeleteSample + +> DeleteSample(ctx, assistantSid, taskSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The unique ID of the Assistant. | +**taskSid** | **string**| The unique ID of the Task associated with this Sample. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + +### 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) + + +## DeleteService + +> DeleteService(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| | + +### 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) + + +## DeleteSyncList + +> DeleteSyncList(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**sid** | **string**| | + +### 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) + + +## DeleteSyncListItem + +> DeleteSyncListItem(ctx, serviceSid, listSid, index, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**listSid** | **string**| | +**index** | **int32**| | + **optional** | ***DeleteSyncListItemOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a DeleteSyncListItemOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **ifMatch** | **optional.String**| The If-Match HTTP request header | + +### 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) + + +## DeleteSyncListPermission + +> DeleteSyncListPermission(ctx, serviceSid, listSid, identity) + + + +Delete a specific Sync List Permission. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**listSid** | **string**| Identifier of the Sync List. Either a SID or a unique name. | +**identity** | **string**| Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. | + +### 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) + + +## DeleteSyncMap + +> DeleteSyncMap(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**sid** | **string**| | + +### 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) + + +## DeleteSyncMapItem + +> DeleteSyncMapItem(ctx, serviceSid, mapSid, key, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**mapSid** | **string**| | +**key** | **string**| | + **optional** | ***DeleteSyncMapItemOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a DeleteSyncMapItemOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **ifMatch** | **optional.String**| The If-Match HTTP request header | + +### 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) + + +## DeleteSyncMapPermission + +> DeleteSyncMapPermission(ctx, serviceSid, mapSid, identity) + + + +Delete a specific Sync Map Permission. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**mapSid** | **string**| Identifier of the Sync Map. Either a SID or a unique name. | +**identity** | **string**| Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. | + +### 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) + + +## DeleteTask + +> DeleteTask(ctx, assistantSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The unique ID of the Assistant. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + +### 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) + + +## FetchAssistant + +> PreviewUnderstandAssistant FetchAssistant(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + +### Return type + +[**PreviewUnderstandAssistant**](preview.understand.assistant.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) + + +## FetchAssistantFallbackActions + +> PreviewUnderstandAssistantAssistantFallbackActions FetchAssistantFallbackActions(ctx, assistantSid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| | + +### Return type + +[**PreviewUnderstandAssistantAssistantFallbackActions**](preview.understand.assistant.assistant_fallback_actions.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) + + +## FetchAssistantInitiationActions + +> PreviewUnderstandAssistantAssistantInitiationActions FetchAssistantInitiationActions(ctx, assistantSid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| | + +### Return type + +[**PreviewUnderstandAssistantAssistantInitiationActions**](preview.understand.assistant.assistant_initiation_actions.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) + + +## FetchAuthorizationDocument + +> PreviewHostedNumbersAuthorizationDocument FetchAuthorizationDocument(ctx, sid) + + + +Fetch a specific AuthorizationDocument. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| A 34 character string that uniquely identifies this AuthorizationDocument. | + +### Return type + +[**PreviewHostedNumbersAuthorizationDocument**](preview.hosted_numbers.authorization_document.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) + + +## FetchAvailableAddOn + +> PreviewMarketplaceAvailableAddOn FetchAvailableAddOn(ctx, sid) + + + +Fetch an instance of an Add-on currently available to be installed. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the AvailableAddOn resource to fetch. | + +### Return type + +[**PreviewMarketplaceAvailableAddOn**](preview.marketplace.available_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) + + +## FetchAvailableAddOnExtension + +> PreviewMarketplaceAvailableAddOnAvailableAddOnExtension FetchAvailableAddOnExtension(ctx, availableAddOnSid, sid) + + + +Fetch an instance of an Extension for the Available Add-on. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**availableAddOnSid** | **string**| The SID of the AvailableAddOn resource with the extension to fetch. | +**sid** | **string**| The SID of the AvailableAddOn Extension resource to fetch. | + +### Return type + +[**PreviewMarketplaceAvailableAddOnAvailableAddOnExtension**](preview.marketplace.available_add_on.available_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) + + +## FetchBrandedChannel + +> PreviewTrustedCommsBrandedChannel FetchBrandedChannel(ctx, sid) + + + +Fetch a specific Branded Channel. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The unique SID identifier of the Branded Channel. | + +### Return type + +[**PreviewTrustedCommsBrandedChannel**](preview.trusted_comms.branded_channel.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) + + +## FetchBrandsInformation + +> PreviewTrustedCommsBrandsInformation FetchBrandsInformation(ctx, optional) + + + +Retrieve the newest available BrandInformation + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***FetchBrandsInformationOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a FetchBrandsInformationOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ifNoneMatch** | **optional.String**| The If-None-Match HTTP request header | + +### Return type + +[**PreviewTrustedCommsBrandsInformation**](preview.trusted_comms.brands_information.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) + + +## FetchCertificate + +> PreviewDeployedDevicesFleetCertificate FetchCertificate(ctx, fleetSid, sid) + + + +Fetch information about a specific Certificate credential in the Fleet. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fleetSid** | **string**| | +**sid** | **string**| Provides a 34 character string that uniquely identifies the requested Certificate credential resource. | + +### Return type + +[**PreviewDeployedDevicesFleetCertificate**](preview.deployed_devices.fleet.certificate.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) + + +## FetchCommand + +> PreviewWirelessCommand FetchCommand(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| | + +### Return type + +[**PreviewWirelessCommand**](preview.wireless.command.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) + + +## FetchCps + +> PreviewTrustedCommsCps FetchCps(ctx, optional) + + + +Fetch a specific Call Placement Service (CPS) given a phone number via `X-XCNAM-Sensitive-Phone-Number` header. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***FetchCpsOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a FetchCpsOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xXcnamSensitivePhoneNumber** | **optional.String**| The X-Xcnam-Sensitive-Phone-Number HTTP request header | + +### Return type + +[**PreviewTrustedCommsCps**](preview.trusted_comms.cps.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) + + +## FetchCurrentCall + +> PreviewTrustedCommsCurrentCall FetchCurrentCall(ctx, optional) + + + +Retrieve a current call given the originating and terminating number via `X-XCNAM-Sensitive-Phone-Number-From` and `X-XCNAM-Sensitive-Phone-Number-To` headers. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***FetchCurrentCallOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a FetchCurrentCallOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xXcnamSensitivePhoneNumberFrom** | **optional.String**| The X-Xcnam-Sensitive-Phone-Number-From HTTP request header | + **xXcnamSensitivePhoneNumberTo** | **optional.String**| The X-Xcnam-Sensitive-Phone-Number-To HTTP request header | + +### Return type + +[**PreviewTrustedCommsCurrentCall**](preview.trusted_comms.current_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) + + +## FetchDay + +> FetchDay(ctx, resourceType, day) + + + +Fetch a specific Day. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**resourceType** | **string**| The type of communication – Messages, Calls | +**day** | **string**| The ISO 8601 format date of the resources in the file, for a UTC day | + +### Return type + + (empty response body) + +### 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) + + +## FetchDeployment + +> PreviewDeployedDevicesFleetDeployment FetchDeployment(ctx, fleetSid, sid) + + + +Fetch information about a specific Deployment in the Fleet. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fleetSid** | **string**| | +**sid** | **string**| Provides a 34 character string that uniquely identifies the requested Deployment resource. | + +### Return type + +[**PreviewDeployedDevicesFleetDeployment**](preview.deployed_devices.fleet.deployment.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) + + +## FetchDevice + +> PreviewDeployedDevicesFleetDevice FetchDevice(ctx, fleetSid, sid) + + + +Fetch information about a specific Device in the Fleet. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fleetSid** | **string**| | +**sid** | **string**| Provides a 34 character string that uniquely identifies the requested Device resource. | + +### Return type + +[**PreviewDeployedDevicesFleetDevice**](preview.deployed_devices.fleet.device.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) + + +## FetchDialogue + +> PreviewUnderstandAssistantDialogue FetchDialogue(ctx, assistantSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| | +**sid** | **string**| | + +### Return type + +[**PreviewUnderstandAssistantDialogue**](preview.understand.assistant.dialogue.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) + + +## FetchDocument + +> PreviewSyncServiceDocument FetchDocument(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**sid** | **string**| | + +### Return type + +[**PreviewSyncServiceDocument**](preview.sync.service.document.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) + + +## FetchDocumentPermission + +> PreviewSyncServiceDocumentDocumentPermission FetchDocumentPermission(ctx, serviceSid, documentSid, identity) + + + +Fetch a specific Sync Document Permission. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**documentSid** | **string**| Identifier of the Sync Document. Either a SID or a unique name. | +**identity** | **string**| Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. | + +### Return type + +[**PreviewSyncServiceDocumentDocumentPermission**](preview.sync.service.document.document_permission.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) + + +## FetchExport + +> PreviewBulkExportsExport FetchExport(ctx, resourceType) + + + +Fetch a specific Export. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**resourceType** | **string**| The type of communication – Messages, Calls | + +### Return type + +[**PreviewBulkExportsExport**](preview.bulk_exports.export.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) + + +## FetchExportConfiguration + +> PreviewBulkExportsExportConfiguration FetchExportConfiguration(ctx, resourceType) + + + +Fetch a specific Export Configuration. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**resourceType** | **string**| The type of communication – Messages, Calls | + +### Return type + +[**PreviewBulkExportsExportConfiguration**](preview.bulk_exports.export_configuration.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) + + +## FetchField + +> PreviewUnderstandAssistantTaskField FetchField(ctx, assistantSid, taskSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The unique ID of the Assistant. | +**taskSid** | **string**| The unique ID of the Task associated with this Field. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + +### Return type + +[**PreviewUnderstandAssistantTaskField**](preview.understand.assistant.task.field.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) + + +## FetchFieldType + +> PreviewUnderstandAssistantFieldType FetchFieldType(ctx, assistantSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| | +**sid** | **string**| | + +### Return type + +[**PreviewUnderstandAssistantFieldType**](preview.understand.assistant.field_type.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) + + +## FetchFieldValue + +> PreviewUnderstandAssistantFieldTypeFieldValue FetchFieldValue(ctx, assistantSid, fieldTypeSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| | +**fieldTypeSid** | **string**| | +**sid** | **string**| | + +### Return type + +[**PreviewUnderstandAssistantFieldTypeFieldValue**](preview.understand.assistant.field_type.field_value.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) + + +## FetchFleet + +> PreviewDeployedDevicesFleet FetchFleet(ctx, sid) + + + +Fetch information about a specific Fleet in your account. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| Provides a 34 character string that uniquely identifies the requested Fleet resource. | + +### Return type + +[**PreviewDeployedDevicesFleet**](preview.deployed_devices.fleet.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) + + +## FetchHostedNumberOrder + +> PreviewHostedNumbersHostedNumberOrder FetchHostedNumberOrder(ctx, sid) + + + +Fetch a specific HostedNumberOrder. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| A 34 character string that uniquely identifies this HostedNumberOrder. | + +### Return type + +[**PreviewHostedNumbersHostedNumberOrder**](preview.hosted_numbers.hosted_number_order.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) + + +## FetchInstalledAddOn + +> PreviewMarketplaceInstalledAddOn FetchInstalledAddOn(ctx, sid) + + + +Fetch an instance of an Add-on currently installed on this Account. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the InstalledAddOn resource to fetch. | + +### Return type + +[**PreviewMarketplaceInstalledAddOn**](preview.marketplace.installed_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) + + +## FetchInstalledAddOnExtension + +> PreviewMarketplaceInstalledAddOnInstalledAddOnExtension FetchInstalledAddOnExtension(ctx, installedAddOnSid, sid) + + + +Fetch an instance of an Extension for the Installed Add-on. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**installedAddOnSid** | **string**| The SID of the InstalledAddOn resource with the extension to fetch. | +**sid** | **string**| The SID of the InstalledAddOn Extension resource to fetch. | + +### Return type + +[**PreviewMarketplaceInstalledAddOnInstalledAddOnExtension**](preview.marketplace.installed_add_on.installed_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) + + +## FetchJob + +> PreviewBulkExportsExportJob FetchJob(ctx, jobSid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**jobSid** | **string**| | + +### Return type + +[**PreviewBulkExportsExportJob**](preview.bulk_exports.export.job.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) + + +## FetchKey + +> PreviewDeployedDevicesFleetKey FetchKey(ctx, fleetSid, sid) + + + +Fetch information about a specific Key credential in the Fleet. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fleetSid** | **string**| | +**sid** | **string**| Provides a 34 character string that uniquely identifies the requested Key credential resource. | + +### Return type + +[**PreviewDeployedDevicesFleetKey**](preview.deployed_devices.fleet.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) + + +## FetchModelBuild + +> PreviewUnderstandAssistantModelBuild FetchModelBuild(ctx, assistantSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| | +**sid** | **string**| | + +### Return type + +[**PreviewUnderstandAssistantModelBuild**](preview.understand.assistant.model_build.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) + + +## FetchQuery + +> PreviewUnderstandAssistantQuery FetchQuery(ctx, assistantSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The unique ID of the Assistant. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + +### Return type + +[**PreviewUnderstandAssistantQuery**](preview.understand.assistant.query.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) + + +## FetchRatePlan + +> PreviewWirelessRatePlan FetchRatePlan(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| | + +### Return type + +[**PreviewWirelessRatePlan**](preview.wireless.rate_plan.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) + + +## FetchSample + +> PreviewUnderstandAssistantTaskSample FetchSample(ctx, assistantSid, taskSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The unique ID of the Assistant. | +**taskSid** | **string**| The unique ID of the Task associated with this Sample. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + +### Return type + +[**PreviewUnderstandAssistantTaskSample**](preview.understand.assistant.task.sample.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) + + +## FetchService + +> PreviewSyncService FetchService(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| | + +### Return type + +[**PreviewSyncService**](preview.sync.service.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) + + +## FetchSim + +> PreviewWirelessSim FetchSim(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| | + +### Return type + +[**PreviewWirelessSim**](preview.wireless.sim.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) + + +## FetchStyleSheet + +> PreviewUnderstandAssistantStyleSheet FetchStyleSheet(ctx, assistantSid) + + + +Returns Style sheet JSON object for this Assistant + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The unique ID of the Assistant | + +### Return type + +[**PreviewUnderstandAssistantStyleSheet**](preview.understand.assistant.style_sheet.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) + + +## FetchSyncList + +> PreviewSyncServiceSyncList FetchSyncList(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**sid** | **string**| | + +### Return type + +[**PreviewSyncServiceSyncList**](preview.sync.service.sync_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) + + +## FetchSyncListItem + +> PreviewSyncServiceSyncListSyncListItem FetchSyncListItem(ctx, serviceSid, listSid, index) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**listSid** | **string**| | +**index** | **int32**| | + +### Return type + +[**PreviewSyncServiceSyncListSyncListItem**](preview.sync.service.sync_list.sync_list_item.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) + + +## FetchSyncListPermission + +> PreviewSyncServiceSyncListSyncListPermission FetchSyncListPermission(ctx, serviceSid, listSid, identity) + + + +Fetch a specific Sync List Permission. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**listSid** | **string**| Identifier of the Sync List. Either a SID or a unique name. | +**identity** | **string**| Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. | + +### Return type + +[**PreviewSyncServiceSyncListSyncListPermission**](preview.sync.service.sync_list.sync_list_permission.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) + + +## FetchSyncMap + +> PreviewSyncServiceSyncMap FetchSyncMap(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**sid** | **string**| | + +### Return type + +[**PreviewSyncServiceSyncMap**](preview.sync.service.sync_map.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) + + +## FetchSyncMapItem + +> PreviewSyncServiceSyncMapSyncMapItem FetchSyncMapItem(ctx, serviceSid, mapSid, key) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**mapSid** | **string**| | +**key** | **string**| | + +### Return type + +[**PreviewSyncServiceSyncMapSyncMapItem**](preview.sync.service.sync_map.sync_map_item.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) + + +## FetchSyncMapPermission + +> PreviewSyncServiceSyncMapSyncMapPermission FetchSyncMapPermission(ctx, serviceSid, mapSid, identity) + + + +Fetch a specific Sync Map Permission. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**mapSid** | **string**| Identifier of the Sync Map. Either a SID or a unique name. | +**identity** | **string**| Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. | + +### Return type + +[**PreviewSyncServiceSyncMapSyncMapPermission**](preview.sync.service.sync_map.sync_map_permission.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) + + +## FetchTask + +> PreviewUnderstandAssistantTask FetchTask(ctx, assistantSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The unique ID of the Assistant. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + +### Return type + +[**PreviewUnderstandAssistantTask**](preview.understand.assistant.task.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) + + +## FetchTaskActions + +> PreviewUnderstandAssistantTaskTaskActions FetchTaskActions(ctx, assistantSid, taskSid) + + + +Returns JSON actions for this Task. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The unique ID of the parent Assistant. | +**taskSid** | **string**| The unique ID of the Task. | + +### Return type + +[**PreviewUnderstandAssistantTaskTaskActions**](preview.understand.assistant.task.task_actions.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) + + +## FetchTaskStatistics + +> PreviewUnderstandAssistantTaskTaskStatistics FetchTaskStatistics(ctx, assistantSid, taskSid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The unique ID of the parent Assistant. | +**taskSid** | **string**| The unique ID of the Task associated with this Field. | + +### Return type + +[**PreviewUnderstandAssistantTaskTaskStatistics**](preview.understand.assistant.task.task_statistics.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) + + +## FetchUsage + +> PreviewWirelessSimUsage FetchUsage(ctx, simSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**simSid** | **string**| | + **optional** | ***FetchUsageOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a FetchUsageOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **end** | **optional.String**| | + **start** | **optional.String**| | + +### Return type + +[**PreviewWirelessSimUsage**](preview.wireless.sim.usage.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) + + +## ListAssistant + +> PreviewUnderstandAssistantReadResponse ListAssistant(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListAssistantOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListAssistantOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PreviewUnderstandAssistantReadResponse**](preview_understand_assistantReadResponse.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) + + +## ListAuthorizationDocument + +> PreviewHostedNumbersAuthorizationDocumentReadResponse ListAuthorizationDocument(ctx, optional) + + + +Retrieve a list of AuthorizationDocuments belonging to the account initiating the request. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListAuthorizationDocumentOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListAuthorizationDocumentOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **email** | **optional.String**| Email that this AuthorizationDocument will be sent to for signing. | + **status** | **optional.String**| Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/api/phone-numbers/hosted-number-authorization-documents#status-values) for more information on each of these statuses. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PreviewHostedNumbersAuthorizationDocumentReadResponse**](preview_hosted_numbers_authorization_documentReadResponse.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) + + +## ListAvailableAddOn + +> PreviewMarketplaceAvailableAddOnReadResponse ListAvailableAddOn(ctx, optional) + + + +Retrieve a list of Add-ons currently available to be installed. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListAvailableAddOnOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListAvailableAddOnOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PreviewMarketplaceAvailableAddOnReadResponse**](preview_marketplace_available_add_onReadResponse.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) + + +## ListAvailableAddOnExtension + +> PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse ListAvailableAddOnExtension(ctx, availableAddOnSid, optional) + + + +Retrieve a list of Extensions for the Available Add-on. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**availableAddOnSid** | **string**| The SID of the AvailableAddOn resource with the extensions to read. | + **optional** | ***ListAvailableAddOnExtensionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListAvailableAddOnExtensionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse**](preview_marketplace_available_add_on_available_add_on_extensionReadResponse.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) + + +## ListCertificate + +> PreviewDeployedDevicesFleetCertificateReadResponse ListCertificate(ctx, fleetSid, optional) + + + +Retrieve a list of all Certificate credentials belonging to the Fleet. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fleetSid** | **string**| | + **optional** | ***ListCertificateOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListCertificateOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **deviceSid** | **optional.String**| Filters the resulting list of Certificates by a unique string identifier of an authenticated Device. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PreviewDeployedDevicesFleetCertificateReadResponse**](preview_deployed_devices_fleet_certificateReadResponse.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) + + +## ListCommand + +> PreviewWirelessCommandReadResponse ListCommand(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListCommandOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListCommandOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **device** | **optional.String**| | + **sim** | **optional.String**| | + **status** | **optional.String**| | + **direction** | **optional.String**| | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PreviewWirelessCommandReadResponse**](preview_wireless_commandReadResponse.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) + + +## ListDay + +> PreviewBulkExportsExportDayReadResponse ListDay(ctx, resourceType, optional) + + + +Retrieve a list of all Days for a resource. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**resourceType** | **string**| The type of communication – Messages, Calls | + **optional** | ***ListDayOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListDayOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PreviewBulkExportsExportDayReadResponse**](preview_bulk_exports_export_dayReadResponse.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) + + +## ListDependentHostedNumberOrder + +> PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse ListDependentHostedNumberOrder(ctx, signingDocumentSid, optional) + + + +Retrieve a list of dependent HostedNumberOrders belonging to the AuthorizationDocument. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**signingDocumentSid** | **string**| | + **optional** | ***ListDependentHostedNumberOrderOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListDependentHostedNumberOrderOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **status** | **optional.String**| Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/api/phone-numbers/hosted-number-authorization-documents#status-values) for more information on each of these statuses. | + **phoneNumber** | **optional.String**| An E164 formatted phone number hosted by this HostedNumberOrder. | + **incomingPhoneNumberSid** | **optional.String**| A 34 character string that uniquely identifies the IncomingPhoneNumber resource created by this HostedNumberOrder. | + **friendlyName** | **optional.String**| A human readable description of this resource, up to 64 characters. | + **uniqueName** | **optional.String**| Provides a unique and addressable name to be assigned to this HostedNumberOrder, assigned by the developer, to be optionally used in addition to SID. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse**](preview_hosted_numbers_authorization_document_dependent_hosted_number_orderReadResponse.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) + + +## ListDeployment + +> PreviewDeployedDevicesFleetDeploymentReadResponse ListDeployment(ctx, fleetSid, optional) + + + +Retrieve a list of all Deployments belonging to the Fleet. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fleetSid** | **string**| | + **optional** | ***ListDeploymentOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListDeploymentOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PreviewDeployedDevicesFleetDeploymentReadResponse**](preview_deployed_devices_fleet_deploymentReadResponse.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) + + +## ListDevice + +> PreviewDeployedDevicesFleetDeviceReadResponse ListDevice(ctx, fleetSid, optional) + + + +Retrieve a list of all Devices belonging to the Fleet. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fleetSid** | **string**| | + **optional** | ***ListDeviceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListDeviceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **deploymentSid** | **optional.String**| Filters the resulting list of Devices by a unique string identifier of the Deployment they are associated with. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PreviewDeployedDevicesFleetDeviceReadResponse**](preview_deployed_devices_fleet_deviceReadResponse.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) + + +## ListDocument + +> PreviewSyncServiceDocumentReadResponse ListDocument(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | + **optional** | ***ListDocumentOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListDocumentOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PreviewSyncServiceDocumentReadResponse**](preview_sync_service_documentReadResponse.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) + + +## ListDocumentPermission + +> PreviewSyncServiceDocumentDocumentPermissionReadResponse ListDocumentPermission(ctx, serviceSid, documentSid, optional) + + + +Retrieve a list of all Permissions applying to a Sync Document. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**documentSid** | **string**| Identifier of the Sync Document. Either a SID or a unique name. | + **optional** | ***ListDocumentPermissionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListDocumentPermissionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PreviewSyncServiceDocumentDocumentPermissionReadResponse**](preview_sync_service_document_document_permissionReadResponse.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) + + +## ListExportCustomJob + +> PreviewBulkExportsExportExportCustomJobReadResponse ListExportCustomJob(ctx, resourceType, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**resourceType** | **string**| The type of communication – Messages, Calls | + **optional** | ***ListExportCustomJobOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListExportCustomJobOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PreviewBulkExportsExportExportCustomJobReadResponse**](preview_bulk_exports_export_export_custom_jobReadResponse.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) + + +## ListField + +> PreviewUnderstandAssistantTaskFieldReadResponse ListField(ctx, assistantSid, taskSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The unique ID of the Assistant. | +**taskSid** | **string**| The unique ID of the Task associated with this Field. | + **optional** | ***ListFieldOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListFieldOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PreviewUnderstandAssistantTaskFieldReadResponse**](preview_understand_assistant_task_fieldReadResponse.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) + + +## ListFieldType + +> PreviewUnderstandAssistantFieldTypeReadResponse ListFieldType(ctx, assistantSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| | + **optional** | ***ListFieldTypeOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListFieldTypeOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PreviewUnderstandAssistantFieldTypeReadResponse**](preview_understand_assistant_field_typeReadResponse.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) + + +## ListFieldValue + +> PreviewUnderstandAssistantFieldTypeFieldValueReadResponse ListFieldValue(ctx, assistantSid, fieldTypeSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| | +**fieldTypeSid** | **string**| | + **optional** | ***ListFieldValueOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListFieldValueOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **language** | **optional.String**| An ISO language-country string of the value. For example: *en-US* | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PreviewUnderstandAssistantFieldTypeFieldValueReadResponse**](preview_understand_assistant_field_type_field_valueReadResponse.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) + + +## ListFleet + +> PreviewDeployedDevicesFleetReadResponse ListFleet(ctx, optional) + + + +Retrieve a list of all Fleets belonging to your account. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListFleetOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListFleetOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PreviewDeployedDevicesFleetReadResponse**](preview_deployed_devices_fleetReadResponse.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) + + +## ListHostedNumberOrder + +> PreviewHostedNumbersHostedNumberOrderReadResponse ListHostedNumberOrder(ctx, optional) + + + +Retrieve a list of HostedNumberOrders belonging to the account initiating the request. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListHostedNumberOrderOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListHostedNumberOrderOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **status** | **optional.String**| The Status of this HostedNumberOrder. One of `received`, `pending-verification`, `verified`, `pending-loa`, `carrier-processing`, `testing`, `completed`, `failed`, or `action-required`. | + **phoneNumber** | **optional.String**| An E164 formatted phone number hosted by this HostedNumberOrder. | + **incomingPhoneNumberSid** | **optional.String**| A 34 character string that uniquely identifies the IncomingPhoneNumber resource created by this HostedNumberOrder. | + **friendlyName** | **optional.String**| A human readable description of this resource, up to 64 characters. | + **uniqueName** | **optional.String**| Provides a unique and addressable name to be assigned to this HostedNumberOrder, assigned by the developer, to be optionally used in addition to SID. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PreviewHostedNumbersHostedNumberOrderReadResponse**](preview_hosted_numbers_hosted_number_orderReadResponse.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) + + +## ListInstalledAddOn + +> PreviewMarketplaceInstalledAddOnReadResponse ListInstalledAddOn(ctx, optional) + + + +Retrieve a list of Add-ons currently installed on this Account. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListInstalledAddOnOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListInstalledAddOnOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PreviewMarketplaceInstalledAddOnReadResponse**](preview_marketplace_installed_add_onReadResponse.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) + + +## ListInstalledAddOnExtension + +> PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse ListInstalledAddOnExtension(ctx, installedAddOnSid, optional) + + + +Retrieve a list of Extensions for the Installed Add-on. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**installedAddOnSid** | **string**| The SID of the InstalledAddOn resource with the extensions to read. | + **optional** | ***ListInstalledAddOnExtensionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListInstalledAddOnExtensionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse**](preview_marketplace_installed_add_on_installed_add_on_extensionReadResponse.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) + + +## ListKey + +> PreviewDeployedDevicesFleetKeyReadResponse ListKey(ctx, fleetSid, optional) + + + +Retrieve a list of all Keys credentials belonging to the Fleet. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fleetSid** | **string**| | + **optional** | ***ListKeyOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListKeyOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **deviceSid** | **optional.String**| Filters the resulting list of Keys by a unique string identifier of an authenticated Device. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PreviewDeployedDevicesFleetKeyReadResponse**](preview_deployed_devices_fleet_keyReadResponse.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) + + +## ListModelBuild + +> PreviewUnderstandAssistantModelBuildReadResponse ListModelBuild(ctx, assistantSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| | + **optional** | ***ListModelBuildOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListModelBuildOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PreviewUnderstandAssistantModelBuildReadResponse**](preview_understand_assistant_model_buildReadResponse.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) + + +## ListQuery + +> PreviewUnderstandAssistantQueryReadResponse ListQuery(ctx, assistantSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The unique ID of the parent Assistant. | + **optional** | ***ListQueryOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListQueryOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **language** | **optional.String**| An ISO language-country string of the sample. | + **modelBuild** | **optional.String**| The Model Build Sid or unique name of the Model Build to be queried. | + **status** | **optional.String**| A string that described the query status. The values can be: pending_review, reviewed, discarded | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PreviewUnderstandAssistantQueryReadResponse**](preview_understand_assistant_queryReadResponse.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) + + +## ListRatePlan + +> PreviewWirelessRatePlanReadResponse ListRatePlan(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListRatePlanOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListRatePlanOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PreviewWirelessRatePlanReadResponse**](preview_wireless_rate_planReadResponse.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) + + +## ListSample + +> PreviewUnderstandAssistantTaskSampleReadResponse ListSample(ctx, assistantSid, taskSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The unique ID of the Assistant. | +**taskSid** | **string**| The unique ID of the Task associated with this Sample. | + **optional** | ***ListSampleOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListSampleOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **language** | **optional.String**| An ISO language-country string of the sample. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PreviewUnderstandAssistantTaskSampleReadResponse**](preview_understand_assistant_task_sampleReadResponse.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) + + +## ListService + +> PreviewSyncServiceReadResponse ListService(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListServiceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListServiceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PreviewSyncServiceReadResponse**](preview_sync_serviceReadResponse.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) + + +## ListSim + +> PreviewWirelessSimReadResponse ListSim(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListSimOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListSimOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **status** | **optional.String**| | + **iccid** | **optional.String**| | + **ratePlan** | **optional.String**| | + **eId** | **optional.String**| | + **simRegistrationCode** | **optional.String**| | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PreviewWirelessSimReadResponse**](preview_wireless_simReadResponse.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) + + +## ListSyncList + +> PreviewSyncServiceSyncListReadResponse ListSyncList(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | + **optional** | ***ListSyncListOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListSyncListOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PreviewSyncServiceSyncListReadResponse**](preview_sync_service_sync_listReadResponse.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) + + +## ListSyncListItem + +> PreviewSyncServiceSyncListSyncListItemReadResponse ListSyncListItem(ctx, serviceSid, listSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**listSid** | **string**| | + **optional** | ***ListSyncListItemOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListSyncListItemOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **order** | **optional.String**| | + **from** | **optional.String**| | + **bounds** | **optional.String**| | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PreviewSyncServiceSyncListSyncListItemReadResponse**](preview_sync_service_sync_list_sync_list_itemReadResponse.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) + + +## ListSyncListPermission + +> PreviewSyncServiceSyncListSyncListPermissionReadResponse ListSyncListPermission(ctx, serviceSid, listSid, optional) + + + +Retrieve a list of all Permissions applying to a Sync List. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**listSid** | **string**| Identifier of the Sync List. Either a SID or a unique name. | + **optional** | ***ListSyncListPermissionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListSyncListPermissionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PreviewSyncServiceSyncListSyncListPermissionReadResponse**](preview_sync_service_sync_list_sync_list_permissionReadResponse.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) + + +## ListSyncMap + +> PreviewSyncServiceSyncMapReadResponse ListSyncMap(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | + **optional** | ***ListSyncMapOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListSyncMapOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PreviewSyncServiceSyncMapReadResponse**](preview_sync_service_sync_mapReadResponse.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) + + +## ListSyncMapItem + +> PreviewSyncServiceSyncMapSyncMapItemReadResponse ListSyncMapItem(ctx, serviceSid, mapSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**mapSid** | **string**| | + **optional** | ***ListSyncMapItemOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListSyncMapItemOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **order** | **optional.String**| | + **from** | **optional.String**| | + **bounds** | **optional.String**| | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PreviewSyncServiceSyncMapSyncMapItemReadResponse**](preview_sync_service_sync_map_sync_map_itemReadResponse.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) + + +## ListSyncMapPermission + +> PreviewSyncServiceSyncMapSyncMapPermissionReadResponse ListSyncMapPermission(ctx, serviceSid, mapSid, optional) + + + +Retrieve a list of all Permissions applying to a Sync Map. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**mapSid** | **string**| Identifier of the Sync Map. Either a SID or a unique name. | + **optional** | ***ListSyncMapPermissionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListSyncMapPermissionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PreviewSyncServiceSyncMapSyncMapPermissionReadResponse**](preview_sync_service_sync_map_sync_map_permissionReadResponse.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) + + +## ListTask + +> PreviewUnderstandAssistantTaskReadResponse ListTask(ctx, assistantSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The unique ID of the Assistant. | + **optional** | ***ListTaskOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListTaskOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PreviewUnderstandAssistantTaskReadResponse**](preview_understand_assistant_taskReadResponse.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) + + +## UpdateAssistant + +> PreviewUnderstandAssistant UpdateAssistant(ctx, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + **optional** | ***UpdateAssistantOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateAssistantOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **callbackEvents** | **optional.String**| Space-separated list of callback events that will trigger callbacks. | + **callbackUrl** | **optional.String**| A user-provided URL to send event callbacks to. | + **fallbackActions** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON actions to be executed when the user's input is not recognized as matching any Task. | + **friendlyName** | **optional.String**| A text description for the Assistant. It is non-unique and can up to 255 characters long. | + **initiationActions** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON actions to be executed on inbound phone calls when the Assistant has to say something first. | + **logQueries** | **optional.Bool**| A boolean that specifies whether queries should be logged for 30 days further training. If false, no queries will be stored, if true, queries will be stored for 30 days and deleted thereafter. Defaults to true if no value is provided. | + **styleSheet** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON object that holds the style sheet for the assistant | + **uniqueName** | **optional.String**| A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. | + +### Return type + +[**PreviewUnderstandAssistant**](preview.understand.assistant.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) + + +## UpdateAssistantFallbackActions + +> PreviewUnderstandAssistantAssistantFallbackActions UpdateAssistantFallbackActions(ctx, assistantSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| | + **optional** | ***UpdateAssistantFallbackActionsOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateAssistantFallbackActionsOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **fallbackActions** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| | + +### Return type + +[**PreviewUnderstandAssistantAssistantFallbackActions**](preview.understand.assistant.assistant_fallback_actions.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) + + +## UpdateAssistantInitiationActions + +> PreviewUnderstandAssistantAssistantInitiationActions UpdateAssistantInitiationActions(ctx, assistantSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| | + **optional** | ***UpdateAssistantInitiationActionsOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateAssistantInitiationActionsOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **initiationActions** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| | + +### Return type + +[**PreviewUnderstandAssistantAssistantInitiationActions**](preview.understand.assistant.assistant_initiation_actions.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) + + +## UpdateAuthorizationDocument + +> PreviewHostedNumbersAuthorizationDocument UpdateAuthorizationDocument(ctx, sid, optional) + + + +Updates a specific AuthorizationDocument. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| | + **optional** | ***UpdateAuthorizationDocumentOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateAuthorizationDocumentOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **addressSid** | **optional.String**| A 34 character string that uniquely identifies the Address resource that is associated with this AuthorizationDocument. | + **ccEmails** | [**optional.Interface of []string**](string.md)| Email recipients who will be informed when an Authorization Document has been sent and signed | + **contactPhoneNumber** | **optional.String**| The contact phone number of the person authorized to sign the Authorization Document. | + **contactTitle** | **optional.String**| The title of the person authorized to sign the Authorization Document for this phone number. | + **email** | **optional.String**| Email that this AuthorizationDocument will be sent to for signing. | + **hostedNumberOrderSids** | [**optional.Interface of []string**](string.md)| A list of HostedNumberOrder sids that this AuthorizationDocument will authorize for hosting phone number capabilities on Twilio's platform. | + **status** | **optional.String**| Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/api/phone-numbers/hosted-number-authorization-documents#status-values) for more information on each of these statuses. | + +### Return type + +[**PreviewHostedNumbersAuthorizationDocument**](preview.hosted_numbers.authorization_document.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) + + +## UpdateCertificate + +> PreviewDeployedDevicesFleetCertificate UpdateCertificate(ctx, fleetSid, sid, optional) + + + +Update the given properties of a specific Certificate credential in the Fleet, giving it a friendly name or assigning to a Device. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fleetSid** | **string**| | +**sid** | **string**| Provides a 34 character string that uniquely identifies the requested Certificate credential resource. | + **optional** | ***UpdateCertificateOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateCertificateOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **deviceSid** | **optional.String**| Provides the unique string identifier of an existing Device to become authenticated with this Certificate credential. | + **friendlyName** | **optional.String**| Provides a human readable descriptive text for this Certificate credential, up to 256 characters long. | + +### Return type + +[**PreviewDeployedDevicesFleetCertificate**](preview.deployed_devices.fleet.certificate.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) + + +## UpdateDeployment + +> PreviewDeployedDevicesFleetDeployment UpdateDeployment(ctx, fleetSid, sid, optional) + + + +Update the given properties of a specific Deployment credential in the Fleet, giving it a friendly name or linking to a specific Twilio Sync service instance. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fleetSid** | **string**| | +**sid** | **string**| Provides a 34 character string that uniquely identifies the requested Deployment resource. | + **optional** | ***UpdateDeploymentOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateDeploymentOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **friendlyName** | **optional.String**| Provides a human readable descriptive text for this Deployment, up to 64 characters long | + **syncServiceSid** | **optional.String**| Provides the unique string identifier of the Twilio Sync service instance that will be linked to and accessible by this Deployment. | + +### Return type + +[**PreviewDeployedDevicesFleetDeployment**](preview.deployed_devices.fleet.deployment.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) + + +## UpdateDevice + +> PreviewDeployedDevicesFleetDevice UpdateDevice(ctx, fleetSid, sid, optional) + + + +Update the given properties of a specific Device in the Fleet, giving it a friendly name, assigning to a Deployment, or a human identity. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fleetSid** | **string**| | +**sid** | **string**| Provides a 34 character string that uniquely identifies the requested Device resource. | + **optional** | ***UpdateDeviceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateDeviceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **deploymentSid** | **optional.String**| Specifies the unique string identifier of the Deployment group that this Device is going to be associated with. | + **enabled** | **optional.Bool**| | + **friendlyName** | **optional.String**| Provides a human readable descriptive text to be assigned to this Device, up to 256 characters long. | + **identity** | **optional.String**| Provides an arbitrary string identifier representing a human user to be associated with this Device, up to 256 characters long. | + +### Return type + +[**PreviewDeployedDevicesFleetDevice**](preview.deployed_devices.fleet.device.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) + + +## UpdateDocument + +> PreviewSyncServiceDocument UpdateDocument(ctx, serviceSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**sid** | **string**| | + **optional** | ***UpdateDocumentOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateDocumentOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **ifMatch** | **optional.String**| The If-Match HTTP request header | + **data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| | + +### Return type + +[**PreviewSyncServiceDocument**](preview.sync.service.document.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) + + +## UpdateDocumentPermission + +> PreviewSyncServiceDocumentDocumentPermission UpdateDocumentPermission(ctx, serviceSid, documentSid, identity, optional) + + + +Update an identity's access to a specific Sync Document. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The unique SID identifier of the Sync Service Instance. | +**documentSid** | **string**| Identifier of the Sync Document. Either a SID or a unique name. | +**identity** | **string**| Arbitrary string identifier representing a human user associated with an FPA token, assigned by the developer. | + **optional** | ***UpdateDocumentPermissionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateDocumentPermissionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **manage** | **optional.Bool**| Boolean flag specifying whether the identity can delete the Sync Document. | + **read** | **optional.Bool**| Boolean flag specifying whether the identity can read the Sync Document. | + **write** | **optional.Bool**| Boolean flag specifying whether the identity can update the Sync Document. | + +### Return type + +[**PreviewSyncServiceDocumentDocumentPermission**](preview.sync.service.document.document_permission.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) + + +## UpdateExportConfiguration + +> PreviewBulkExportsExportConfiguration UpdateExportConfiguration(ctx, resourceType, optional) + + + +Update a specific Export Configuration. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**resourceType** | **string**| The type of communication – Messages, Calls | + **optional** | ***UpdateExportConfigurationOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateExportConfigurationOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **enabled** | **optional.Bool**| If true, Twilio will automatically generate every day's file when the day is over. | + **webhookMethod** | **optional.String**| Sets whether Twilio should call a webhook URL when the automatic generation is complete, using GET or POST. The actual destination is set in the webhook_url | + **webhookUrl** | **optional.String**| Stores the URL destination for the method specified in webhook_method. | + +### Return type + +[**PreviewBulkExportsExportConfiguration**](preview.bulk_exports.export_configuration.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) + + +## UpdateFieldType + +> PreviewUnderstandAssistantFieldType UpdateFieldType(ctx, assistantSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| | +**sid** | **string**| | + **optional** | ***UpdateFieldTypeOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateFieldTypeOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **friendlyName** | **optional.String**| A user-provided string that identifies this resource. It is non-unique and can up to 255 characters long. | + **uniqueName** | **optional.String**| A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. | + +### Return type + +[**PreviewUnderstandAssistantFieldType**](preview.understand.assistant.field_type.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) + + +## UpdateFleet + +> PreviewDeployedDevicesFleet UpdateFleet(ctx, sid, optional) + + + +Update the friendly name property of a specific Fleet in your account. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| Provides a 34 character string that uniquely identifies the requested Fleet resource. | + **optional** | ***UpdateFleetOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateFleetOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **defaultDeploymentSid** | **optional.String**| Provides a string identifier of a Deployment that is going to be used as a default one for this Fleet. | + **friendlyName** | **optional.String**| Provides a human readable descriptive text for this Fleet, up to 256 characters long. | + +### Return type + +[**PreviewDeployedDevicesFleet**](preview.deployed_devices.fleet.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) + + +## UpdateHostedNumberOrder + +> PreviewHostedNumbersHostedNumberOrder UpdateHostedNumberOrder(ctx, sid, optional) + + + +Updates a specific HostedNumberOrder. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| | + **optional** | ***UpdateHostedNumberOrderOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateHostedNumberOrderOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **callDelay** | **optional.Int32**| The number of seconds, between 0 and 60, to delay before initiating the verification call. Defaults to 0. | + **ccEmails** | [**optional.Interface of []string**](string.md)| Optional. A list of emails that LOA document for this HostedNumberOrder will be carbon copied to. | + **email** | **optional.String**| Email of the owner of this phone number that is being hosted. | + **extension** | **optional.String**| Digits to dial after connecting the verification call. | + **friendlyName** | **optional.String**| A 64 character string that is a human readable text that describes this resource. | + **status** | **optional.String**| User can only post to `pending-verification` status to transition the HostedNumberOrder to initiate a verification call or verification of ownership with a copy of a phone bill. | + **uniqueName** | **optional.String**| Provides a unique and addressable name to be assigned to this HostedNumberOrder, assigned by the developer, to be optionally used in addition to SID. | + **verificationCode** | **optional.String**| A verification code that is given to the user via a phone call to the phone number that is being hosted. | + **verificationDocumentSid** | **optional.String**| Optional. The unique sid identifier of the Identity Document that represents the document for verifying ownership of the number to be hosted. Required when VerificationType is phone-bill. | + **verificationType** | **optional.String**| Optional. The method used for verifying ownership of the number to be hosted. One of phone-call (default) or phone-bill. | + +### Return type + +[**PreviewHostedNumbersHostedNumberOrder**](preview.hosted_numbers.hosted_number_order.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) + + +## UpdateInstalledAddOn + +> PreviewMarketplaceInstalledAddOn UpdateInstalledAddOn(ctx, sid, optional) + + + +Update an Add-on installation for the Account specified. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the InstalledAddOn resource to update. | + **optional** | ***UpdateInstalledAddOnOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateInstalledAddOnOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **configuration** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| Valid JSON object that conform to the configuration schema exposed by the associated AvailableAddOn resource. This is only required by Add-ons that need to be configured | + **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. This value must be unique within the Account. | + +### Return type + +[**PreviewMarketplaceInstalledAddOn**](preview.marketplace.installed_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) + + +## UpdateInstalledAddOnExtension + +> PreviewMarketplaceInstalledAddOnInstalledAddOnExtension UpdateInstalledAddOnExtension(ctx, installedAddOnSid, sid, optional) + + + +Update an Extension for an Add-on installation. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**installedAddOnSid** | **string**| The SID of the InstalledAddOn resource with the extension to update. | +**sid** | **string**| The SID of the InstalledAddOn Extension resource to update. | + **optional** | ***UpdateInstalledAddOnExtensionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateInstalledAddOnExtensionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **enabled** | **optional.Bool**| Whether the Extension should be invoked. | + +### Return type + +[**PreviewMarketplaceInstalledAddOnInstalledAddOnExtension**](preview.marketplace.installed_add_on.installed_add_on_extension.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) + + +## UpdateKey + +> PreviewDeployedDevicesFleetKey UpdateKey(ctx, fleetSid, sid, optional) + + + +Update the given properties of a specific Key credential in the Fleet, giving it a friendly name or assigning to a Device. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fleetSid** | **string**| | +**sid** | **string**| Provides a 34 character string that uniquely identifies the requested Key credential resource. | + **optional** | ***UpdateKeyOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateKeyOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **deviceSid** | **optional.String**| Provides the unique string identifier of an existing Device to become authenticated with this Key credential. | + **friendlyName** | **optional.String**| Provides a human readable descriptive text for this Key credential, up to 256 characters long. | + +### Return type + +[**PreviewDeployedDevicesFleetKey**](preview.deployed_devices.fleet.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) + + +## UpdateModelBuild + +> PreviewUnderstandAssistantModelBuild UpdateModelBuild(ctx, assistantSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| | +**sid** | **string**| | + **optional** | ***UpdateModelBuildOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateModelBuildOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **uniqueName** | **optional.String**| A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. For example: v0.1 | + +### Return type + +[**PreviewUnderstandAssistantModelBuild**](preview.understand.assistant.model_build.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) + + +## UpdateQuery + +> PreviewUnderstandAssistantQuery UpdateQuery(ctx, assistantSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The unique ID of the parent Assistant. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + **optional** | ***UpdateQueryOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateQueryOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **sampleSid** | **optional.String**| An optional reference to the Sample created from this query. | + **status** | **optional.String**| A string that described the query status. The values can be: pending_review, reviewed, discarded | + +### Return type + +[**PreviewUnderstandAssistantQuery**](preview.understand.assistant.query.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) + + +## UpdateRatePlan + +> PreviewWirelessRatePlan UpdateRatePlan(ctx, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| | + **optional** | ***UpdateRatePlanOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateRatePlanOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **friendlyName** | **optional.String**| | + **uniqueName** | **optional.String**| | + +### Return type + +[**PreviewWirelessRatePlan**](preview.wireless.rate_plan.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) + + +## UpdateSample + +> PreviewUnderstandAssistantTaskSample UpdateSample(ctx, assistantSid, taskSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The unique ID of the Assistant. | +**taskSid** | **string**| The unique ID of the Task associated with this Sample. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + **optional** | ***UpdateSampleOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateSampleOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **language** | **optional.String**| An ISO language-country string of the sample. | + **sourceChannel** | **optional.String**| The communication channel the sample was captured. It can be: *voice*, *sms*, *chat*, *alexa*, *google-assistant*, or *slack*. If not included the value will be null | + **taggedText** | **optional.String**| The text example of how end-users may express this task. The sample may contain Field tag blocks. | + +### Return type + +[**PreviewUnderstandAssistantTaskSample**](preview.understand.assistant.task.sample.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) + + +## UpdateService + +> PreviewSyncService UpdateService(ctx, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| | + **optional** | ***UpdateServiceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateServiceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **aclEnabled** | **optional.Bool**| | + **friendlyName** | **optional.String**| | + **reachabilityWebhooksEnabled** | **optional.Bool**| | + **webhookUrl** | **optional.String**| | + +### Return type + +[**PreviewSyncService**](preview.sync.service.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) + + +## UpdateSim + +> PreviewWirelessSim UpdateSim(ctx, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| | + **optional** | ***UpdateSimOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateSimOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **callbackMethod** | **optional.String**| | + **callbackUrl** | **optional.String**| | + **commandsCallbackMethod** | **optional.String**| | + **commandsCallbackUrl** | **optional.String**| | + **friendlyName** | **optional.String**| | + **ratePlan** | **optional.String**| | + **smsFallbackMethod** | **optional.String**| | + **smsFallbackUrl** | **optional.String**| | + **smsMethod** | **optional.String**| | + **smsUrl** | **optional.String**| | + **status** | **optional.String**| | + **uniqueName** | **optional.String**| | + **voiceFallbackMethod** | **optional.String**| | + **voiceFallbackUrl** | **optional.String**| | + **voiceMethod** | **optional.String**| | + **voiceUrl** | **optional.String**| | + +### Return type + +[**PreviewWirelessSim**](preview.wireless.sim.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) + + +## UpdateStyleSheet + +> PreviewUnderstandAssistantStyleSheet UpdateStyleSheet(ctx, assistantSid, optional) + + + +Updates the style sheet for an assistant identified by {AssistantSid} or {AssistantUniqueName}. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The unique ID of the Assistant | + **optional** | ***UpdateStyleSheetOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateStyleSheetOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **styleSheet** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON Style sheet string | + +### Return type + +[**PreviewUnderstandAssistantStyleSheet**](preview.understand.assistant.style_sheet.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) + + +## UpdateSyncListItem + +> PreviewSyncServiceSyncListSyncListItem UpdateSyncListItem(ctx, serviceSid, listSid, index, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**listSid** | **string**| | +**index** | **int32**| | + **optional** | ***UpdateSyncListItemOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateSyncListItemOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **ifMatch** | **optional.String**| The If-Match HTTP request header | + **data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| | + +### Return type + +[**PreviewSyncServiceSyncListSyncListItem**](preview.sync.service.sync_list.sync_list_item.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) + + +## UpdateSyncListPermission + +> PreviewSyncServiceSyncListSyncListPermission UpdateSyncListPermission(ctx, serviceSid, listSid, identity, optional) + + + +Update an identity's access to a specific Sync List. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The unique SID identifier of the Sync Service Instance. | +**listSid** | **string**| Identifier of the Sync List. Either a SID or a unique name. | +**identity** | **string**| Arbitrary string identifier representing a human user associated with an FPA token, assigned by the developer. | + **optional** | ***UpdateSyncListPermissionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateSyncListPermissionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **manage** | **optional.Bool**| Boolean flag specifying whether the identity can delete the Sync List. | + **read** | **optional.Bool**| Boolean flag specifying whether the identity can read the Sync List. | + **write** | **optional.Bool**| Boolean flag specifying whether the identity can create, update and delete Items of the Sync List. | + +### Return type + +[**PreviewSyncServiceSyncListSyncListPermission**](preview.sync.service.sync_list.sync_list_permission.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) + + +## UpdateSyncMapItem + +> PreviewSyncServiceSyncMapSyncMapItem UpdateSyncMapItem(ctx, serviceSid, mapSid, key, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| | +**mapSid** | **string**| | +**key** | **string**| | + **optional** | ***UpdateSyncMapItemOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateSyncMapItemOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **ifMatch** | **optional.String**| The If-Match HTTP request header | + **data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| | + +### Return type + +[**PreviewSyncServiceSyncMapSyncMapItem**](preview.sync.service.sync_map.sync_map_item.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) + + +## UpdateSyncMapPermission + +> PreviewSyncServiceSyncMapSyncMapPermission UpdateSyncMapPermission(ctx, serviceSid, mapSid, identity, optional) + + + +Update an identity's access to a specific Sync Map. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The unique SID identifier of the Sync Service Instance. | +**mapSid** | **string**| Identifier of the Sync Map. Either a SID or a unique name. | +**identity** | **string**| Arbitrary string identifier representing a human user associated with an FPA token, assigned by the developer. | + **optional** | ***UpdateSyncMapPermissionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateSyncMapPermissionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **manage** | **optional.Bool**| Boolean flag specifying whether the identity can delete the Sync Map. | + **read** | **optional.Bool**| Boolean flag specifying whether the identity can read the Sync Map. | + **write** | **optional.Bool**| Boolean flag specifying whether the identity can create, update and delete Items of the Sync Map. | + +### Return type + +[**PreviewSyncServiceSyncMapSyncMapPermission**](preview.sync.service.sync_map.sync_map_permission.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) + + +## UpdateTask + +> PreviewUnderstandAssistantTask UpdateTask(ctx, assistantSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The unique ID of the Assistant. | +**sid** | **string**| A 34 character string that uniquely identifies this resource. | + **optional** | ***UpdateTaskOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateTaskOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **actions** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A user-provided JSON object encoded as a string to specify the actions for this task. It is optional and non-unique. | + **actionsUrl** | **optional.String**| User-provided HTTP endpoint where from the assistant fetches actions | + **friendlyName** | **optional.String**| A user-provided string that identifies this resource. It is non-unique and can up to 255 characters long. | + **uniqueName** | **optional.String**| A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. | + +### Return type + +[**PreviewUnderstandAssistantTask**](preview.understand.assistant.task.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) + + +## UpdateTaskActions + +> PreviewUnderstandAssistantTaskTaskActions UpdateTaskActions(ctx, assistantSid, taskSid, optional) + + + +Updates the actions of an Task identified by {TaskSid} or {TaskUniqueName}. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**assistantSid** | **string**| The unique ID of the parent Assistant. | +**taskSid** | **string**| The unique ID of the Task. | + **optional** | ***UpdateTaskActionsOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateTaskActionsOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **actions** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON actions that instruct the Assistant how to perform this task. | + +### Return type + +[**PreviewUnderstandAssistantTaskTaskActions**](preview.understand.assistant.task.task_actions.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/rest/preview/docs/PreviewBulkExportsExport.md b/rest/preview/docs/PreviewBulkExportsExport.md new file mode 100644 index 000000000..2c187e910 --- /dev/null +++ b/rest/preview/docs/PreviewBulkExportsExport.md @@ -0,0 +1,13 @@ +# PreviewBulkExportsExport + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | [**map[string]interface{}**](.md) | | [optional] +**ResourceType** | **string** | | [optional] +**Url** | **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/rest/preview/docs/PreviewBulkExportsExportConfiguration.md b/rest/preview/docs/PreviewBulkExportsExportConfiguration.md new file mode 100644 index 000000000..146b0326b --- /dev/null +++ b/rest/preview/docs/PreviewBulkExportsExportConfiguration.md @@ -0,0 +1,15 @@ +# PreviewBulkExportsExportConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Enabled** | **bool** | | [optional] +**ResourceType** | **string** | | [optional] +**Url** | **string** | | [optional] +**WebhookMethod** | **string** | | [optional] +**WebhookUrl** | **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/rest/preview/docs/PreviewBulkExportsExportDay.md b/rest/preview/docs/PreviewBulkExportsExportDay.md new file mode 100644 index 000000000..4dffebd05 --- /dev/null +++ b/rest/preview/docs/PreviewBulkExportsExportDay.md @@ -0,0 +1,15 @@ +# PreviewBulkExportsExportDay + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreateDate** | **string** | | [optional] +**Day** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**ResourceType** | **string** | | [optional] +**Size** | **int32** | | [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/rest/preview/docs/PreviewBulkExportsExportDayInstance.md b/rest/preview/docs/PreviewBulkExportsExportDayInstance.md new file mode 100644 index 000000000..ebe1cad67 --- /dev/null +++ b/rest/preview/docs/PreviewBulkExportsExportDayInstance.md @@ -0,0 +1,11 @@ +# PreviewBulkExportsExportDayInstance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RedirectTo** | **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/rest/preview/docs/PreviewBulkExportsExportDayReadResponse.md b/rest/preview/docs/PreviewBulkExportsExportDayReadResponse.md new file mode 100644 index 000000000..99c5d07ab --- /dev/null +++ b/rest/preview/docs/PreviewBulkExportsExportDayReadResponse.md @@ -0,0 +1,12 @@ +# PreviewBulkExportsExportDayReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Days** | [**[]PreviewBulkExportsExportDay**](preview.bulk_exports.export.day.md) | | [optional] +**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_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/rest/preview/docs/PreviewBulkExportsExportDayReadResponseMeta.md b/rest/preview/docs/PreviewBulkExportsExportDayReadResponseMeta.md new file mode 100644 index 000000000..1d4bebaf6 --- /dev/null +++ b/rest/preview/docs/PreviewBulkExportsExportDayReadResponseMeta.md @@ -0,0 +1,17 @@ +# PreviewBulkExportsExportDayReadResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/preview/docs/PreviewBulkExportsExportExportCustomJob.md b/rest/preview/docs/PreviewBulkExportsExportExportCustomJob.md new file mode 100644 index 000000000..73bd1cc14 --- /dev/null +++ b/rest/preview/docs/PreviewBulkExportsExportExportCustomJob.md @@ -0,0 +1,19 @@ +# PreviewBulkExportsExportExportCustomJob + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Details** | [**map[string]interface{}**](.md) | | [optional] +**Email** | **string** | | [optional] +**EndDay** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**JobSid** | **string** | | [optional] +**ResourceType** | **string** | | [optional] +**StartDay** | **string** | | [optional] +**WebhookMethod** | **string** | | [optional] +**WebhookUrl** | **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/rest/preview/docs/PreviewBulkExportsExportExportCustomJobReadResponse.md b/rest/preview/docs/PreviewBulkExportsExportExportCustomJobReadResponse.md new file mode 100644 index 000000000..b3e1d7fa1 --- /dev/null +++ b/rest/preview/docs/PreviewBulkExportsExportExportCustomJobReadResponse.md @@ -0,0 +1,12 @@ +# PreviewBulkExportsExportExportCustomJobReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Jobs** | [**[]PreviewBulkExportsExportExportCustomJob**](preview.bulk_exports.export.export_custom_job.md) | | [optional] +**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_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/rest/preview/docs/PreviewBulkExportsExportJob.md b/rest/preview/docs/PreviewBulkExportsExportJob.md new file mode 100644 index 000000000..baa5d0640 --- /dev/null +++ b/rest/preview/docs/PreviewBulkExportsExportJob.md @@ -0,0 +1,20 @@ +# PreviewBulkExportsExportJob + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Details** | [**map[string]interface{}**](.md) | | [optional] +**Email** | **string** | | [optional] +**EndDay** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**JobSid** | **string** | | [optional] +**ResourceType** | **string** | | [optional] +**StartDay** | **string** | | [optional] +**Url** | **string** | | [optional] +**WebhookMethod** | **string** | | [optional] +**WebhookUrl** | **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/rest/preview/docs/PreviewDeployedDevicesFleet.md b/rest/preview/docs/PreviewDeployedDevicesFleet.md new file mode 100644 index 000000000..5dc5db35d --- /dev/null +++ b/rest/preview/docs/PreviewDeployedDevicesFleet.md @@ -0,0 +1,19 @@ +# PreviewDeployedDevicesFleet + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**DefaultDeploymentSid** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Sid** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **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/rest/preview/docs/PreviewDeployedDevicesFleetCertificate.md b/rest/preview/docs/PreviewDeployedDevicesFleetCertificate.md new file mode 100644 index 000000000..1b653ce49 --- /dev/null +++ b/rest/preview/docs/PreviewDeployedDevicesFleetCertificate.md @@ -0,0 +1,19 @@ +# PreviewDeployedDevicesFleetCertificate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**DeviceSid** | **string** | | [optional] +**FleetSid** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Thumbprint** | **string** | | [optional] +**Url** | **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/rest/preview/docs/PreviewDeployedDevicesFleetCertificateReadResponse.md b/rest/preview/docs/PreviewDeployedDevicesFleetCertificateReadResponse.md new file mode 100644 index 000000000..3ebea19de --- /dev/null +++ b/rest/preview/docs/PreviewDeployedDevicesFleetCertificateReadResponse.md @@ -0,0 +1,12 @@ +# PreviewDeployedDevicesFleetCertificateReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Certificates** | [**[]PreviewDeployedDevicesFleetCertificate**](preview.deployed_devices.fleet.certificate.md) | | [optional] +**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_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/rest/preview/docs/PreviewDeployedDevicesFleetDeployment.md b/rest/preview/docs/PreviewDeployedDevicesFleetDeployment.md new file mode 100644 index 000000000..bb870a418 --- /dev/null +++ b/rest/preview/docs/PreviewDeployedDevicesFleetDeployment.md @@ -0,0 +1,18 @@ +# PreviewDeployedDevicesFleetDeployment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FleetSid** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**Sid** | **string** | | [optional] +**SyncServiceSid** | **string** | | [optional] +**Url** | **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/rest/preview/docs/PreviewDeployedDevicesFleetDeploymentReadResponse.md b/rest/preview/docs/PreviewDeployedDevicesFleetDeploymentReadResponse.md new file mode 100644 index 000000000..f2a76797b --- /dev/null +++ b/rest/preview/docs/PreviewDeployedDevicesFleetDeploymentReadResponse.md @@ -0,0 +1,12 @@ +# PreviewDeployedDevicesFleetDeploymentReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Deployments** | [**[]PreviewDeployedDevicesFleetDeployment**](preview.deployed_devices.fleet.deployment.md) | | [optional] +**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_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/rest/preview/docs/PreviewDeployedDevicesFleetDevice.md b/rest/preview/docs/PreviewDeployedDevicesFleetDevice.md new file mode 100644 index 000000000..8a219b90c --- /dev/null +++ b/rest/preview/docs/PreviewDeployedDevicesFleetDevice.md @@ -0,0 +1,22 @@ +# PreviewDeployedDevicesFleetDevice + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateAuthenticated** | [**time.Time**](time.Time.md) | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**DeploymentSid** | **string** | | [optional] +**Enabled** | **bool** | | [optional] +**FleetSid** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**Identity** | **string** | | [optional] +**Sid** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **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/rest/preview/docs/PreviewDeployedDevicesFleetDeviceReadResponse.md b/rest/preview/docs/PreviewDeployedDevicesFleetDeviceReadResponse.md new file mode 100644 index 000000000..333e3483d --- /dev/null +++ b/rest/preview/docs/PreviewDeployedDevicesFleetDeviceReadResponse.md @@ -0,0 +1,12 @@ +# PreviewDeployedDevicesFleetDeviceReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Devices** | [**[]PreviewDeployedDevicesFleetDevice**](preview.deployed_devices.fleet.device.md) | | [optional] +**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_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/rest/preview/docs/PreviewDeployedDevicesFleetKey.md b/rest/preview/docs/PreviewDeployedDevicesFleetKey.md new file mode 100644 index 000000000..0e1d26966 --- /dev/null +++ b/rest/preview/docs/PreviewDeployedDevicesFleetKey.md @@ -0,0 +1,19 @@ +# PreviewDeployedDevicesFleetKey + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**DeviceSid** | **string** | | [optional] +**FleetSid** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**Secret** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/preview/docs/PreviewDeployedDevicesFleetKeyReadResponse.md b/rest/preview/docs/PreviewDeployedDevicesFleetKeyReadResponse.md new file mode 100644 index 000000000..148d80145 --- /dev/null +++ b/rest/preview/docs/PreviewDeployedDevicesFleetKeyReadResponse.md @@ -0,0 +1,12 @@ +# PreviewDeployedDevicesFleetKeyReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Keys** | [**[]PreviewDeployedDevicesFleetKey**](preview.deployed_devices.fleet.key.md) | | [optional] +**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_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/rest/preview/docs/PreviewDeployedDevicesFleetReadResponse.md b/rest/preview/docs/PreviewDeployedDevicesFleetReadResponse.md new file mode 100644 index 000000000..ff17a0e6d --- /dev/null +++ b/rest/preview/docs/PreviewDeployedDevicesFleetReadResponse.md @@ -0,0 +1,12 @@ +# PreviewDeployedDevicesFleetReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Fleets** | [**[]PreviewDeployedDevicesFleet**](preview.deployed_devices.fleet.md) | | [optional] +**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_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/rest/preview/docs/PreviewHostedNumbersAuthorizationDocument.md b/rest/preview/docs/PreviewHostedNumbersAuthorizationDocument.md new file mode 100644 index 000000000..46cc4b64d --- /dev/null +++ b/rest/preview/docs/PreviewHostedNumbersAuthorizationDocument.md @@ -0,0 +1,19 @@ +# PreviewHostedNumbersAuthorizationDocument + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AddressSid** | **string** | | [optional] +**CcEmails** | **[]string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Email** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Sid** | **string** | | [optional] +**Status** | **string** | | [optional] +**Url** | **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/rest/preview/docs/PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrder.md b/rest/preview/docs/PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrder.md new file mode 100644 index 000000000..ebc29006c --- /dev/null +++ b/rest/preview/docs/PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrder.md @@ -0,0 +1,32 @@ +# PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrder + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AddressSid** | **string** | | [optional] +**CallDelay** | **int32** | | [optional] +**Capabilities** | [**map[string]interface{}**](.md) | | [optional] +**CcEmails** | **[]string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Email** | **string** | | [optional] +**Extension** | **string** | | [optional] +**FailureReason** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**IncomingPhoneNumberSid** | **string** | | [optional] +**PhoneNumber** | **string** | | [optional] +**Sid** | **string** | | [optional] +**SigningDocumentSid** | **string** | | [optional] +**Status** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**VerificationAttempts** | **int32** | | [optional] +**VerificationCallSids** | **[]string** | | [optional] +**VerificationCode** | **string** | | [optional] +**VerificationDocumentSid** | **string** | | [optional] +**VerificationType** | **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/rest/preview/docs/PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse.md b/rest/preview/docs/PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse.md new file mode 100644 index 000000000..2f4a14245 --- /dev/null +++ b/rest/preview/docs/PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse.md @@ -0,0 +1,12 @@ +# PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | [**[]PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrder**](preview.hosted_numbers.authorization_document.dependent_hosted_number_order.md) | | [optional] +**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_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/rest/preview/docs/PreviewHostedNumbersAuthorizationDocumentReadResponse.md b/rest/preview/docs/PreviewHostedNumbersAuthorizationDocumentReadResponse.md new file mode 100644 index 000000000..559c9979e --- /dev/null +++ b/rest/preview/docs/PreviewHostedNumbersAuthorizationDocumentReadResponse.md @@ -0,0 +1,12 @@ +# PreviewHostedNumbersAuthorizationDocumentReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | [**[]PreviewHostedNumbersAuthorizationDocument**](preview.hosted_numbers.authorization_document.md) | | [optional] +**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_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/rest/preview/docs/PreviewHostedNumbersHostedNumberOrder.md b/rest/preview/docs/PreviewHostedNumbersHostedNumberOrder.md new file mode 100644 index 000000000..c0501959c --- /dev/null +++ b/rest/preview/docs/PreviewHostedNumbersHostedNumberOrder.md @@ -0,0 +1,33 @@ +# PreviewHostedNumbersHostedNumberOrder + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AddressSid** | **string** | | [optional] +**CallDelay** | **int32** | | [optional] +**Capabilities** | [**map[string]interface{}**](.md) | | [optional] +**CcEmails** | **[]string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Email** | **string** | | [optional] +**Extension** | **string** | | [optional] +**FailureReason** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**IncomingPhoneNumberSid** | **string** | | [optional] +**PhoneNumber** | **string** | | [optional] +**Sid** | **string** | | [optional] +**SigningDocumentSid** | **string** | | [optional] +**Status** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **string** | | [optional] +**VerificationAttempts** | **int32** | | [optional] +**VerificationCallSids** | **[]string** | | [optional] +**VerificationCode** | **string** | | [optional] +**VerificationDocumentSid** | **string** | | [optional] +**VerificationType** | **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/rest/preview/docs/PreviewHostedNumbersHostedNumberOrderReadResponse.md b/rest/preview/docs/PreviewHostedNumbersHostedNumberOrderReadResponse.md new file mode 100644 index 000000000..5399e58db --- /dev/null +++ b/rest/preview/docs/PreviewHostedNumbersHostedNumberOrderReadResponse.md @@ -0,0 +1,12 @@ +# PreviewHostedNumbersHostedNumberOrderReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | [**[]PreviewHostedNumbersHostedNumberOrder**](preview.hosted_numbers.hosted_number_order.md) | | [optional] +**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_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/rest/preview/docs/PreviewMarketplaceAvailableAddOn.md b/rest/preview/docs/PreviewMarketplaceAvailableAddOn.md new file mode 100644 index 000000000..ec2c3d423 --- /dev/null +++ b/rest/preview/docs/PreviewMarketplaceAvailableAddOn.md @@ -0,0 +1,17 @@ +# PreviewMarketplaceAvailableAddOn + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConfigurationSchema** | [**map[string]interface{}**](.md) | | [optional] +**Description** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**PricingType** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/preview/docs/PreviewMarketplaceAvailableAddOnAvailableAddOnExtension.md b/rest/preview/docs/PreviewMarketplaceAvailableAddOnAvailableAddOnExtension.md new file mode 100644 index 000000000..9ad541849 --- /dev/null +++ b/rest/preview/docs/PreviewMarketplaceAvailableAddOnAvailableAddOnExtension.md @@ -0,0 +1,16 @@ +# PreviewMarketplaceAvailableAddOnAvailableAddOnExtension + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AvailableAddOnSid** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**ProductName** | **string** | | [optional] +**Sid** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **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/rest/preview/docs/PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse.md b/rest/preview/docs/PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse.md new file mode 100644 index 000000000..f7907e91b --- /dev/null +++ b/rest/preview/docs/PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse.md @@ -0,0 +1,12 @@ +# PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Extensions** | [**[]PreviewMarketplaceAvailableAddOnAvailableAddOnExtension**](preview.marketplace.available_add_on.available_add_on_extension.md) | | [optional] +**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_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/rest/preview/docs/PreviewMarketplaceAvailableAddOnReadResponse.md b/rest/preview/docs/PreviewMarketplaceAvailableAddOnReadResponse.md new file mode 100644 index 000000000..7237cd09a --- /dev/null +++ b/rest/preview/docs/PreviewMarketplaceAvailableAddOnReadResponse.md @@ -0,0 +1,12 @@ +# PreviewMarketplaceAvailableAddOnReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AvailableAddOns** | [**[]PreviewMarketplaceAvailableAddOn**](preview.marketplace.available_add_on.md) | | [optional] +**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_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/rest/preview/docs/PreviewMarketplaceInstalledAddOn.md b/rest/preview/docs/PreviewMarketplaceInstalledAddOn.md new file mode 100644 index 000000000..558d8a55d --- /dev/null +++ b/rest/preview/docs/PreviewMarketplaceInstalledAddOn.md @@ -0,0 +1,20 @@ +# PreviewMarketplaceInstalledAddOn + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Configuration** | [**map[string]interface{}**](.md) | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Description** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Sid** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **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/rest/preview/docs/PreviewMarketplaceInstalledAddOnInstalledAddOnExtension.md b/rest/preview/docs/PreviewMarketplaceInstalledAddOnInstalledAddOnExtension.md new file mode 100644 index 000000000..0079306b7 --- /dev/null +++ b/rest/preview/docs/PreviewMarketplaceInstalledAddOnInstalledAddOnExtension.md @@ -0,0 +1,17 @@ +# PreviewMarketplaceInstalledAddOnInstalledAddOnExtension + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Enabled** | **bool** | | [optional] +**FriendlyName** | **string** | | [optional] +**InstalledAddOnSid** | **string** | | [optional] +**ProductName** | **string** | | [optional] +**Sid** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **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/rest/preview/docs/PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse.md b/rest/preview/docs/PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse.md new file mode 100644 index 000000000..a9f594378 --- /dev/null +++ b/rest/preview/docs/PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse.md @@ -0,0 +1,12 @@ +# PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Extensions** | [**[]PreviewMarketplaceInstalledAddOnInstalledAddOnExtension**](preview.marketplace.installed_add_on.installed_add_on_extension.md) | | [optional] +**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_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/rest/preview/docs/PreviewMarketplaceInstalledAddOnReadResponse.md b/rest/preview/docs/PreviewMarketplaceInstalledAddOnReadResponse.md new file mode 100644 index 000000000..918963171 --- /dev/null +++ b/rest/preview/docs/PreviewMarketplaceInstalledAddOnReadResponse.md @@ -0,0 +1,12 @@ +# PreviewMarketplaceInstalledAddOnReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InstalledAddOns** | [**[]PreviewMarketplaceInstalledAddOn**](preview.marketplace.installed_add_on.md) | | [optional] +**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_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/rest/preview/docs/PreviewSyncService.md b/rest/preview/docs/PreviewSyncService.md new file mode 100644 index 000000000..dc013c858 --- /dev/null +++ b/rest/preview/docs/PreviewSyncService.md @@ -0,0 +1,20 @@ +# PreviewSyncService + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AclEnabled** | **bool** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**ReachabilityWebhooksEnabled** | **bool** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **string** | | [optional] +**WebhookUrl** | **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/rest/preview/docs/PreviewSyncServiceDocument.md b/rest/preview/docs/PreviewSyncServiceDocument.md new file mode 100644 index 000000000..ed5ff2ee4 --- /dev/null +++ b/rest/preview/docs/PreviewSyncServiceDocument.md @@ -0,0 +1,21 @@ +# PreviewSyncServiceDocument + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**CreatedBy** | **string** | | [optional] +**Data** | [**map[string]interface{}**](.md) | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Revision** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **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/rest/preview/docs/PreviewSyncServiceDocumentDocumentPermission.md b/rest/preview/docs/PreviewSyncServiceDocumentDocumentPermission.md new file mode 100644 index 000000000..64e4799c0 --- /dev/null +++ b/rest/preview/docs/PreviewSyncServiceDocumentDocumentPermission.md @@ -0,0 +1,18 @@ +# PreviewSyncServiceDocumentDocumentPermission + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DocumentSid** | **string** | | [optional] +**Identity** | **string** | | [optional] +**Manage** | **bool** | | [optional] +**Read** | **bool** | | [optional] +**ServiceSid** | **string** | | [optional] +**Url** | **string** | | [optional] +**Write** | **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/rest/preview/docs/PreviewSyncServiceDocumentDocumentPermissionReadResponse.md b/rest/preview/docs/PreviewSyncServiceDocumentDocumentPermissionReadResponse.md new file mode 100644 index 000000000..8ebb8c995 --- /dev/null +++ b/rest/preview/docs/PreviewSyncServiceDocumentDocumentPermissionReadResponse.md @@ -0,0 +1,12 @@ +# PreviewSyncServiceDocumentDocumentPermissionReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Permissions** | [**[]PreviewSyncServiceDocumentDocumentPermission**](preview.sync.service.document.document_permission.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/rest/preview/docs/PreviewSyncServiceDocumentReadResponse.md b/rest/preview/docs/PreviewSyncServiceDocumentReadResponse.md new file mode 100644 index 000000000..d5dec3683 --- /dev/null +++ b/rest/preview/docs/PreviewSyncServiceDocumentReadResponse.md @@ -0,0 +1,12 @@ +# PreviewSyncServiceDocumentReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Documents** | [**[]PreviewSyncServiceDocument**](preview.sync.service.document.md) | | [optional] +**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_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/rest/preview/docs/PreviewSyncServiceReadResponse.md b/rest/preview/docs/PreviewSyncServiceReadResponse.md new file mode 100644 index 000000000..a3fc51fa3 --- /dev/null +++ b/rest/preview/docs/PreviewSyncServiceReadResponse.md @@ -0,0 +1,12 @@ +# PreviewSyncServiceReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Services** | [**[]PreviewSyncService**](preview.sync.service.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/rest/preview/docs/PreviewSyncServiceSyncList.md b/rest/preview/docs/PreviewSyncServiceSyncList.md new file mode 100644 index 000000000..ac3f6a9dc --- /dev/null +++ b/rest/preview/docs/PreviewSyncServiceSyncList.md @@ -0,0 +1,20 @@ +# PreviewSyncServiceSyncList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**CreatedBy** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Revision** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **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/rest/preview/docs/PreviewSyncServiceSyncListReadResponse.md b/rest/preview/docs/PreviewSyncServiceSyncListReadResponse.md new file mode 100644 index 000000000..7e157ece1 --- /dev/null +++ b/rest/preview/docs/PreviewSyncServiceSyncListReadResponse.md @@ -0,0 +1,12 @@ +# PreviewSyncServiceSyncListReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Lists** | [**[]PreviewSyncServiceSyncList**](preview.sync.service.sync_list.md) | | [optional] +**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_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/rest/preview/docs/PreviewSyncServiceSyncListSyncListItem.md b/rest/preview/docs/PreviewSyncServiceSyncListSyncListItem.md new file mode 100644 index 000000000..645db5fca --- /dev/null +++ b/rest/preview/docs/PreviewSyncServiceSyncListSyncListItem.md @@ -0,0 +1,20 @@ +# PreviewSyncServiceSyncListSyncListItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**CreatedBy** | **string** | | [optional] +**Data** | [**map[string]interface{}**](.md) | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Index** | **int32** | | [optional] +**ListSid** | **string** | | [optional] +**Revision** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Url** | **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/rest/preview/docs/PreviewSyncServiceSyncListSyncListItemReadResponse.md b/rest/preview/docs/PreviewSyncServiceSyncListSyncListItemReadResponse.md new file mode 100644 index 000000000..de71d7e29 --- /dev/null +++ b/rest/preview/docs/PreviewSyncServiceSyncListSyncListItemReadResponse.md @@ -0,0 +1,12 @@ +# PreviewSyncServiceSyncListSyncListItemReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | [**[]PreviewSyncServiceSyncListSyncListItem**](preview.sync.service.sync_list.sync_list_item.md) | | [optional] +**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_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/rest/preview/docs/PreviewSyncServiceSyncListSyncListPermission.md b/rest/preview/docs/PreviewSyncServiceSyncListSyncListPermission.md new file mode 100644 index 000000000..8b110d688 --- /dev/null +++ b/rest/preview/docs/PreviewSyncServiceSyncListSyncListPermission.md @@ -0,0 +1,18 @@ +# PreviewSyncServiceSyncListSyncListPermission + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Identity** | **string** | | [optional] +**ListSid** | **string** | | [optional] +**Manage** | **bool** | | [optional] +**Read** | **bool** | | [optional] +**ServiceSid** | **string** | | [optional] +**Url** | **string** | | [optional] +**Write** | **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/rest/preview/docs/PreviewSyncServiceSyncListSyncListPermissionReadResponse.md b/rest/preview/docs/PreviewSyncServiceSyncListSyncListPermissionReadResponse.md new file mode 100644 index 000000000..01289624a --- /dev/null +++ b/rest/preview/docs/PreviewSyncServiceSyncListSyncListPermissionReadResponse.md @@ -0,0 +1,12 @@ +# PreviewSyncServiceSyncListSyncListPermissionReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Permissions** | [**[]PreviewSyncServiceSyncListSyncListPermission**](preview.sync.service.sync_list.sync_list_permission.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/rest/preview/docs/PreviewSyncServiceSyncMap.md b/rest/preview/docs/PreviewSyncServiceSyncMap.md new file mode 100644 index 000000000..fff9f1352 --- /dev/null +++ b/rest/preview/docs/PreviewSyncServiceSyncMap.md @@ -0,0 +1,20 @@ +# PreviewSyncServiceSyncMap + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**CreatedBy** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Revision** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **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/rest/preview/docs/PreviewSyncServiceSyncMapReadResponse.md b/rest/preview/docs/PreviewSyncServiceSyncMapReadResponse.md new file mode 100644 index 000000000..ebddd8f49 --- /dev/null +++ b/rest/preview/docs/PreviewSyncServiceSyncMapReadResponse.md @@ -0,0 +1,12 @@ +# PreviewSyncServiceSyncMapReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Maps** | [**[]PreviewSyncServiceSyncMap**](preview.sync.service.sync_map.md) | | [optional] +**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_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/rest/preview/docs/PreviewSyncServiceSyncMapSyncMapItem.md b/rest/preview/docs/PreviewSyncServiceSyncMapSyncMapItem.md new file mode 100644 index 000000000..0eb11d71f --- /dev/null +++ b/rest/preview/docs/PreviewSyncServiceSyncMapSyncMapItem.md @@ -0,0 +1,20 @@ +# PreviewSyncServiceSyncMapSyncMapItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**CreatedBy** | **string** | | [optional] +**Data** | [**map[string]interface{}**](.md) | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Key** | **string** | | [optional] +**MapSid** | **string** | | [optional] +**Revision** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Url** | **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/rest/preview/docs/PreviewSyncServiceSyncMapSyncMapItemReadResponse.md b/rest/preview/docs/PreviewSyncServiceSyncMapSyncMapItemReadResponse.md new file mode 100644 index 000000000..513514112 --- /dev/null +++ b/rest/preview/docs/PreviewSyncServiceSyncMapSyncMapItemReadResponse.md @@ -0,0 +1,12 @@ +# PreviewSyncServiceSyncMapSyncMapItemReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | [**[]PreviewSyncServiceSyncMapSyncMapItem**](preview.sync.service.sync_map.sync_map_item.md) | | [optional] +**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_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/rest/preview/docs/PreviewSyncServiceSyncMapSyncMapPermission.md b/rest/preview/docs/PreviewSyncServiceSyncMapSyncMapPermission.md new file mode 100644 index 000000000..d7957b512 --- /dev/null +++ b/rest/preview/docs/PreviewSyncServiceSyncMapSyncMapPermission.md @@ -0,0 +1,18 @@ +# PreviewSyncServiceSyncMapSyncMapPermission + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Identity** | **string** | | [optional] +**Manage** | **bool** | | [optional] +**MapSid** | **string** | | [optional] +**Read** | **bool** | | [optional] +**ServiceSid** | **string** | | [optional] +**Url** | **string** | | [optional] +**Write** | **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/rest/preview/docs/PreviewSyncServiceSyncMapSyncMapPermissionReadResponse.md b/rest/preview/docs/PreviewSyncServiceSyncMapSyncMapPermissionReadResponse.md new file mode 100644 index 000000000..c4b123b5d --- /dev/null +++ b/rest/preview/docs/PreviewSyncServiceSyncMapSyncMapPermissionReadResponse.md @@ -0,0 +1,12 @@ +# PreviewSyncServiceSyncMapSyncMapPermissionReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Permissions** | [**[]PreviewSyncServiceSyncMapSyncMapPermission**](preview.sync.service.sync_map.sync_map_permission.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/rest/preview/docs/PreviewTrustedCommsBrandedChannel.md b/rest/preview/docs/PreviewTrustedCommsBrandedChannel.md new file mode 100644 index 000000000..20c70295f --- /dev/null +++ b/rest/preview/docs/PreviewTrustedCommsBrandedChannel.md @@ -0,0 +1,16 @@ +# PreviewTrustedCommsBrandedChannel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**BrandSid** | **string** | | [optional] +**BusinessSid** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/preview/docs/PreviewTrustedCommsBrandedChannelChannel.md b/rest/preview/docs/PreviewTrustedCommsBrandedChannelChannel.md new file mode 100644 index 000000000..f71a2d52b --- /dev/null +++ b/rest/preview/docs/PreviewTrustedCommsBrandedChannelChannel.md @@ -0,0 +1,17 @@ +# PreviewTrustedCommsBrandedChannelChannel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**BrandSid** | **string** | | [optional] +**BrandedChannelSid** | **string** | | [optional] +**BusinessSid** | **string** | | [optional] +**PhoneNumber** | **string** | | [optional] +**PhoneNumberSid** | **string** | | [optional] +**Url** | **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/rest/preview/docs/PreviewTrustedCommsBrandsInformation.md b/rest/preview/docs/PreviewTrustedCommsBrandsInformation.md new file mode 100644 index 000000000..6a5a28f4d --- /dev/null +++ b/rest/preview/docs/PreviewTrustedCommsBrandsInformation.md @@ -0,0 +1,14 @@ +# PreviewTrustedCommsBrandsInformation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FileLink** | **string** | | [optional] +**FileLinkTtlInSeconds** | **string** | | [optional] +**UpdateTime** | [**time.Time**](time.Time.md) | | [optional] +**Url** | **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/rest/preview/docs/PreviewTrustedCommsCps.md b/rest/preview/docs/PreviewTrustedCommsCps.md new file mode 100644 index 000000000..bdac35208 --- /dev/null +++ b/rest/preview/docs/PreviewTrustedCommsCps.md @@ -0,0 +1,13 @@ +# PreviewTrustedCommsCps + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CpsUrl** | **string** | | [optional] +**PhoneNumber** | **string** | | [optional] +**Url** | **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/rest/preview/docs/PreviewTrustedCommsCurrentCall.md b/rest/preview/docs/PreviewTrustedCommsCurrentCall.md new file mode 100644 index 000000000..0d8ca7569 --- /dev/null +++ b/rest/preview/docs/PreviewTrustedCommsCurrentCall.md @@ -0,0 +1,24 @@ +# PreviewTrustedCommsCurrentCall + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BgColor** | **string** | | [optional] +**Caller** | **string** | | [optional] +**CreatedAt** | [**time.Time**](time.Time.md) | | [optional] +**FontColor** | **string** | | [optional] +**From** | **string** | | [optional] +**Logo** | **string** | | [optional] +**Manager** | **string** | | [optional] +**Reason** | **string** | | [optional] +**ShieldImg** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Status** | **string** | | [optional] +**To** | **string** | | [optional] +**Url** | **string** | | [optional] +**UseCase** | **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/rest/preview/docs/PreviewUnderstandAssistant.md b/rest/preview/docs/PreviewUnderstandAssistant.md new file mode 100644 index 000000000..654d5c334 --- /dev/null +++ b/rest/preview/docs/PreviewUnderstandAssistant.md @@ -0,0 +1,22 @@ +# PreviewUnderstandAssistant + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**CallbackEvents** | **string** | | [optional] +**CallbackUrl** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**LatestModelBuildSid** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**LogQueries** | **bool** | | [optional] +**Sid** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **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/rest/preview/docs/PreviewUnderstandAssistantAssistantFallbackActions.md b/rest/preview/docs/PreviewUnderstandAssistantAssistantFallbackActions.md new file mode 100644 index 000000000..3605102e8 --- /dev/null +++ b/rest/preview/docs/PreviewUnderstandAssistantAssistantFallbackActions.md @@ -0,0 +1,14 @@ +# PreviewUnderstandAssistantAssistantFallbackActions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AssistantSid** | **string** | | [optional] +**Data** | [**map[string]interface{}**](.md) | | [optional] +**Url** | **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/rest/preview/docs/PreviewUnderstandAssistantAssistantInitiationActions.md b/rest/preview/docs/PreviewUnderstandAssistantAssistantInitiationActions.md new file mode 100644 index 000000000..0c5923c06 --- /dev/null +++ b/rest/preview/docs/PreviewUnderstandAssistantAssistantInitiationActions.md @@ -0,0 +1,14 @@ +# PreviewUnderstandAssistantAssistantInitiationActions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AssistantSid** | **string** | | [optional] +**Data** | [**map[string]interface{}**](.md) | | [optional] +**Url** | **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/rest/preview/docs/PreviewUnderstandAssistantDialogue.md b/rest/preview/docs/PreviewUnderstandAssistantDialogue.md new file mode 100644 index 000000000..4a0bbef9d --- /dev/null +++ b/rest/preview/docs/PreviewUnderstandAssistantDialogue.md @@ -0,0 +1,15 @@ +# PreviewUnderstandAssistantDialogue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AssistantSid** | **string** | | [optional] +**Data** | [**map[string]interface{}**](.md) | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/preview/docs/PreviewUnderstandAssistantFieldType.md b/rest/preview/docs/PreviewUnderstandAssistantFieldType.md new file mode 100644 index 000000000..4db8a26ca --- /dev/null +++ b/rest/preview/docs/PreviewUnderstandAssistantFieldType.md @@ -0,0 +1,19 @@ +# PreviewUnderstandAssistantFieldType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AssistantSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Sid** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **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/rest/preview/docs/PreviewUnderstandAssistantFieldTypeFieldValue.md b/rest/preview/docs/PreviewUnderstandAssistantFieldTypeFieldValue.md new file mode 100644 index 000000000..d7c2b7d99 --- /dev/null +++ b/rest/preview/docs/PreviewUnderstandAssistantFieldTypeFieldValue.md @@ -0,0 +1,20 @@ +# PreviewUnderstandAssistantFieldTypeFieldValue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AssistantSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FieldTypeSid** | **string** | | [optional] +**Language** | **string** | | [optional] +**Sid** | **string** | | [optional] +**SynonymOf** | **string** | | [optional] +**Url** | **string** | | [optional] +**Value** | **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/rest/preview/docs/PreviewUnderstandAssistantFieldTypeFieldValueReadResponse.md b/rest/preview/docs/PreviewUnderstandAssistantFieldTypeFieldValueReadResponse.md new file mode 100644 index 000000000..9dac794e2 --- /dev/null +++ b/rest/preview/docs/PreviewUnderstandAssistantFieldTypeFieldValueReadResponse.md @@ -0,0 +1,12 @@ +# PreviewUnderstandAssistantFieldTypeFieldValueReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FieldValues** | [**[]PreviewUnderstandAssistantFieldTypeFieldValue**](preview.understand.assistant.field_type.field_value.md) | | [optional] +**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_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/rest/preview/docs/PreviewUnderstandAssistantFieldTypeReadResponse.md b/rest/preview/docs/PreviewUnderstandAssistantFieldTypeReadResponse.md new file mode 100644 index 000000000..5154f3b5c --- /dev/null +++ b/rest/preview/docs/PreviewUnderstandAssistantFieldTypeReadResponse.md @@ -0,0 +1,12 @@ +# PreviewUnderstandAssistantFieldTypeReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FieldTypes** | [**[]PreviewUnderstandAssistantFieldType**](preview.understand.assistant.field_type.md) | | [optional] +**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_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/rest/preview/docs/PreviewUnderstandAssistantModelBuild.md b/rest/preview/docs/PreviewUnderstandAssistantModelBuild.md new file mode 100644 index 000000000..830aa195d --- /dev/null +++ b/rest/preview/docs/PreviewUnderstandAssistantModelBuild.md @@ -0,0 +1,20 @@ +# PreviewUnderstandAssistantModelBuild + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AssistantSid** | **string** | | [optional] +**BuildDuration** | Pointer to **int32** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**ErrorCode** | Pointer to **int32** | | [optional] +**Sid** | **string** | | [optional] +**Status** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **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/rest/preview/docs/PreviewUnderstandAssistantModelBuildReadResponse.md b/rest/preview/docs/PreviewUnderstandAssistantModelBuildReadResponse.md new file mode 100644 index 000000000..4c4270fc4 --- /dev/null +++ b/rest/preview/docs/PreviewUnderstandAssistantModelBuildReadResponse.md @@ -0,0 +1,12 @@ +# PreviewUnderstandAssistantModelBuildReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**ModelBuilds** | [**[]PreviewUnderstandAssistantModelBuild**](preview.understand.assistant.model_build.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/rest/preview/docs/PreviewUnderstandAssistantQuery.md b/rest/preview/docs/PreviewUnderstandAssistantQuery.md new file mode 100644 index 000000000..fcafa1d43 --- /dev/null +++ b/rest/preview/docs/PreviewUnderstandAssistantQuery.md @@ -0,0 +1,23 @@ +# PreviewUnderstandAssistantQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AssistantSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Language** | **string** | | [optional] +**ModelBuildSid** | **string** | | [optional] +**Query** | **string** | | [optional] +**Results** | [**map[string]interface{}**](.md) | | [optional] +**SampleSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**SourceChannel** | **string** | | [optional] +**Status** | **string** | | [optional] +**Url** | **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/rest/preview/docs/PreviewUnderstandAssistantQueryReadResponse.md b/rest/preview/docs/PreviewUnderstandAssistantQueryReadResponse.md new file mode 100644 index 000000000..d91fd4f95 --- /dev/null +++ b/rest/preview/docs/PreviewUnderstandAssistantQueryReadResponse.md @@ -0,0 +1,12 @@ +# PreviewUnderstandAssistantQueryReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Queries** | [**[]PreviewUnderstandAssistantQuery**](preview.understand.assistant.query.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/rest/preview/docs/PreviewUnderstandAssistantReadResponse.md b/rest/preview/docs/PreviewUnderstandAssistantReadResponse.md new file mode 100644 index 000000000..6ded2f200 --- /dev/null +++ b/rest/preview/docs/PreviewUnderstandAssistantReadResponse.md @@ -0,0 +1,12 @@ +# PreviewUnderstandAssistantReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Assistants** | [**[]PreviewUnderstandAssistant**](preview.understand.assistant.md) | | [optional] +**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_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/rest/preview/docs/PreviewUnderstandAssistantStyleSheet.md b/rest/preview/docs/PreviewUnderstandAssistantStyleSheet.md new file mode 100644 index 000000000..acce4b3fa --- /dev/null +++ b/rest/preview/docs/PreviewUnderstandAssistantStyleSheet.md @@ -0,0 +1,14 @@ +# PreviewUnderstandAssistantStyleSheet + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AssistantSid** | **string** | | [optional] +**Data** | [**map[string]interface{}**](.md) | | [optional] +**Url** | **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/rest/preview/docs/PreviewUnderstandAssistantTask.md b/rest/preview/docs/PreviewUnderstandAssistantTask.md new file mode 100644 index 000000000..c23c33a48 --- /dev/null +++ b/rest/preview/docs/PreviewUnderstandAssistantTask.md @@ -0,0 +1,20 @@ +# PreviewUnderstandAssistantTask + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ActionsUrl** | **string** | | [optional] +**AssistantSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Sid** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **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/rest/preview/docs/PreviewUnderstandAssistantTaskField.md b/rest/preview/docs/PreviewUnderstandAssistantTaskField.md new file mode 100644 index 000000000..e4f2c7d50 --- /dev/null +++ b/rest/preview/docs/PreviewUnderstandAssistantTaskField.md @@ -0,0 +1,19 @@ +# PreviewUnderstandAssistantTaskField + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AssistantSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FieldType** | **string** | | [optional] +**Sid** | **string** | | [optional] +**TaskSid** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **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/rest/preview/docs/PreviewUnderstandAssistantTaskFieldReadResponse.md b/rest/preview/docs/PreviewUnderstandAssistantTaskFieldReadResponse.md new file mode 100644 index 000000000..16d325695 --- /dev/null +++ b/rest/preview/docs/PreviewUnderstandAssistantTaskFieldReadResponse.md @@ -0,0 +1,12 @@ +# PreviewUnderstandAssistantTaskFieldReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Fields** | [**[]PreviewUnderstandAssistantTaskField**](preview.understand.assistant.task.field.md) | | [optional] +**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_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/rest/preview/docs/PreviewUnderstandAssistantTaskReadResponse.md b/rest/preview/docs/PreviewUnderstandAssistantTaskReadResponse.md new file mode 100644 index 000000000..754ab8500 --- /dev/null +++ b/rest/preview/docs/PreviewUnderstandAssistantTaskReadResponse.md @@ -0,0 +1,12 @@ +# PreviewUnderstandAssistantTaskReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Tasks** | [**[]PreviewUnderstandAssistantTask**](preview.understand.assistant.task.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/rest/preview/docs/PreviewUnderstandAssistantTaskSample.md b/rest/preview/docs/PreviewUnderstandAssistantTaskSample.md new file mode 100644 index 000000000..cc87360f9 --- /dev/null +++ b/rest/preview/docs/PreviewUnderstandAssistantTaskSample.md @@ -0,0 +1,20 @@ +# PreviewUnderstandAssistantTaskSample + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AssistantSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Language** | **string** | | [optional] +**Sid** | **string** | | [optional] +**SourceChannel** | **string** | | [optional] +**TaggedText** | **string** | | [optional] +**TaskSid** | **string** | | [optional] +**Url** | **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/rest/preview/docs/PreviewUnderstandAssistantTaskSampleReadResponse.md b/rest/preview/docs/PreviewUnderstandAssistantTaskSampleReadResponse.md new file mode 100644 index 000000000..6f0743ade --- /dev/null +++ b/rest/preview/docs/PreviewUnderstandAssistantTaskSampleReadResponse.md @@ -0,0 +1,12 @@ +# PreviewUnderstandAssistantTaskSampleReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Samples** | [**[]PreviewUnderstandAssistantTaskSample**](preview.understand.assistant.task.sample.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/rest/preview/docs/PreviewUnderstandAssistantTaskTaskActions.md b/rest/preview/docs/PreviewUnderstandAssistantTaskTaskActions.md new file mode 100644 index 000000000..6aec1f048 --- /dev/null +++ b/rest/preview/docs/PreviewUnderstandAssistantTaskTaskActions.md @@ -0,0 +1,15 @@ +# PreviewUnderstandAssistantTaskTaskActions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AssistantSid** | **string** | | [optional] +**Data** | [**map[string]interface{}**](.md) | | [optional] +**TaskSid** | **string** | | [optional] +**Url** | **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/rest/preview/docs/PreviewUnderstandAssistantTaskTaskStatistics.md b/rest/preview/docs/PreviewUnderstandAssistantTaskTaskStatistics.md new file mode 100644 index 000000000..d07fb5f44 --- /dev/null +++ b/rest/preview/docs/PreviewUnderstandAssistantTaskTaskStatistics.md @@ -0,0 +1,16 @@ +# PreviewUnderstandAssistantTaskTaskStatistics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AssistantSid** | **string** | | [optional] +**FieldsCount** | **int32** | | [optional] +**SamplesCount** | **int32** | | [optional] +**TaskSid** | **string** | | [optional] +**Url** | **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/rest/preview/docs/PreviewWirelessCommand.md b/rest/preview/docs/PreviewWirelessCommand.md new file mode 100644 index 000000000..772105b4e --- /dev/null +++ b/rest/preview/docs/PreviewWirelessCommand.md @@ -0,0 +1,21 @@ +# PreviewWirelessCommand + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Command** | **string** | | [optional] +**CommandMode** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**DeviceSid** | **string** | | [optional] +**Direction** | **string** | | [optional] +**Sid** | **string** | | [optional] +**SimSid** | **string** | | [optional] +**Status** | **string** | | [optional] +**Url** | **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/rest/preview/docs/PreviewWirelessCommandReadResponse.md b/rest/preview/docs/PreviewWirelessCommandReadResponse.md new file mode 100644 index 000000000..fd599f96c --- /dev/null +++ b/rest/preview/docs/PreviewWirelessCommandReadResponse.md @@ -0,0 +1,12 @@ +# PreviewWirelessCommandReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Commands** | [**[]PreviewWirelessCommand**](preview.wireless.command.md) | | [optional] +**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_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/rest/preview/docs/PreviewWirelessRatePlan.md b/rest/preview/docs/PreviewWirelessRatePlan.md new file mode 100644 index 000000000..f374349aa --- /dev/null +++ b/rest/preview/docs/PreviewWirelessRatePlan.md @@ -0,0 +1,24 @@ +# PreviewWirelessRatePlan + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DataEnabled** | **bool** | | [optional] +**DataLimit** | **int32** | | [optional] +**DataMetering** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**InternationalRoaming** | **[]string** | | [optional] +**MessagingEnabled** | **bool** | | [optional] +**NationalRoamingEnabled** | **bool** | | [optional] +**Sid** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **string** | | [optional] +**VoiceEnabled** | **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/rest/preview/docs/PreviewWirelessRatePlanReadResponse.md b/rest/preview/docs/PreviewWirelessRatePlanReadResponse.md new file mode 100644 index 000000000..08b638bc0 --- /dev/null +++ b/rest/preview/docs/PreviewWirelessRatePlanReadResponse.md @@ -0,0 +1,12 @@ +# PreviewWirelessRatePlanReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**RatePlans** | [**[]PreviewWirelessRatePlan**](preview.wireless.rate_plan.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/rest/preview/docs/PreviewWirelessSim.md b/rest/preview/docs/PreviewWirelessSim.md new file mode 100644 index 000000000..437273c67 --- /dev/null +++ b/rest/preview/docs/PreviewWirelessSim.md @@ -0,0 +1,32 @@ +# PreviewWirelessSim + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**CommandsCallbackMethod** | **string** | | [optional] +**CommandsCallbackUrl** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**EId** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**Iccid** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**RatePlanSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**SmsFallbackMethod** | **string** | | [optional] +**SmsFallbackUrl** | **string** | | [optional] +**SmsMethod** | **string** | | [optional] +**SmsUrl** | **string** | | [optional] +**Status** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **string** | | [optional] +**VoiceFallbackMethod** | **string** | | [optional] +**VoiceFallbackUrl** | **string** | | [optional] +**VoiceMethod** | **string** | | [optional] +**VoiceUrl** | **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/rest/preview/docs/PreviewWirelessSimReadResponse.md b/rest/preview/docs/PreviewWirelessSimReadResponse.md new file mode 100644 index 000000000..faf7cba42 --- /dev/null +++ b/rest/preview/docs/PreviewWirelessSimReadResponse.md @@ -0,0 +1,12 @@ +# PreviewWirelessSimReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Sims** | [**[]PreviewWirelessSim**](preview.wireless.sim.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/rest/preview/docs/PreviewWirelessSimUsage.md b/rest/preview/docs/PreviewWirelessSimUsage.md new file mode 100644 index 000000000..ae2d12052 --- /dev/null +++ b/rest/preview/docs/PreviewWirelessSimUsage.md @@ -0,0 +1,19 @@ +# PreviewWirelessSimUsage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**CommandsCosts** | [**map[string]interface{}**](.md) | | [optional] +**CommandsUsage** | [**map[string]interface{}**](.md) | | [optional] +**DataCosts** | [**map[string]interface{}**](.md) | | [optional] +**DataUsage** | [**map[string]interface{}**](.md) | | [optional] +**Period** | [**map[string]interface{}**](.md) | | [optional] +**SimSid** | **string** | | [optional] +**SimUniqueName** | **string** | | [optional] +**Url** | **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/rest/preview/docs/UpdateAssistantFallbackActionsRequest.md b/rest/preview/docs/UpdateAssistantFallbackActionsRequest.md new file mode 100644 index 000000000..f7dad27c8 --- /dev/null +++ b/rest/preview/docs/UpdateAssistantFallbackActionsRequest.md @@ -0,0 +1,11 @@ +# UpdateAssistantFallbackActionsRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FallbackActions** | [**map[string]interface{}**](.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/rest/preview/docs/UpdateAssistantInitiationActionsRequest.md b/rest/preview/docs/UpdateAssistantInitiationActionsRequest.md new file mode 100644 index 000000000..bd6ad4f62 --- /dev/null +++ b/rest/preview/docs/UpdateAssistantInitiationActionsRequest.md @@ -0,0 +1,11 @@ +# UpdateAssistantInitiationActionsRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InitiationActions** | [**map[string]interface{}**](.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/rest/preview/docs/UpdateAssistantRequest.md b/rest/preview/docs/UpdateAssistantRequest.md new file mode 100644 index 000000000..d254df5eb --- /dev/null +++ b/rest/preview/docs/UpdateAssistantRequest.md @@ -0,0 +1,18 @@ +# UpdateAssistantRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CallbackEvents** | **string** | Space-separated list of callback events that will trigger callbacks. | [optional] +**CallbackUrl** | **string** | A user-provided URL to send event callbacks to. | [optional] +**FallbackActions** | [**map[string]interface{}**](.md) | The JSON actions to be executed when the user's input is not recognized as matching any Task. | [optional] +**FriendlyName** | **string** | A text description for the Assistant. It is non-unique and can up to 255 characters long. | [optional] +**InitiationActions** | [**map[string]interface{}**](.md) | The JSON actions to be executed on inbound phone calls when the Assistant has to say something first. | [optional] +**LogQueries** | **bool** | A boolean that specifies whether queries should be logged for 30 days further training. If false, no queries will be stored, if true, queries will be stored for 30 days and deleted thereafter. Defaults to true if no value is provided. | [optional] +**StyleSheet** | [**map[string]interface{}**](.md) | The JSON object that holds the style sheet for the assistant | [optional] +**UniqueName** | **string** | A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. | [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/rest/preview/docs/UpdateAuthorizationDocumentRequest.md b/rest/preview/docs/UpdateAuthorizationDocumentRequest.md new file mode 100644 index 000000000..e66c6c09b --- /dev/null +++ b/rest/preview/docs/UpdateAuthorizationDocumentRequest.md @@ -0,0 +1,17 @@ +# UpdateAuthorizationDocumentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AddressSid** | **string** | A 34 character string that uniquely identifies the Address resource that is associated with this AuthorizationDocument. | [optional] +**CcEmails** | **[]string** | Email recipients who will be informed when an Authorization Document has been sent and signed | [optional] +**ContactPhoneNumber** | **string** | The contact phone number of the person authorized to sign the Authorization Document. | [optional] +**ContactTitle** | **string** | The title of the person authorized to sign the Authorization Document for this phone number. | [optional] +**Email** | **string** | Email that this AuthorizationDocument will be sent to for signing. | [optional] +**HostedNumberOrderSids** | **[]string** | A list of HostedNumberOrder sids that this AuthorizationDocument will authorize for hosting phone number capabilities on Twilio's platform. | [optional] +**Status** | **string** | Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/api/phone-numbers/hosted-number-authorization-documents#status-values) for more information on each of these statuses. | [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/rest/preview/docs/UpdateCertificateRequest.md b/rest/preview/docs/UpdateCertificateRequest.md new file mode 100644 index 000000000..b1f2b6fe5 --- /dev/null +++ b/rest/preview/docs/UpdateCertificateRequest.md @@ -0,0 +1,12 @@ +# UpdateCertificateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceSid** | **string** | Provides the unique string identifier of an existing Device to become authenticated with this Certificate credential. | [optional] +**FriendlyName** | **string** | Provides a human readable descriptive text for this Certificate credential, up to 256 characters long. | [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/rest/preview/docs/UpdateDeploymentRequest.md b/rest/preview/docs/UpdateDeploymentRequest.md new file mode 100644 index 000000000..593f82a0a --- /dev/null +++ b/rest/preview/docs/UpdateDeploymentRequest.md @@ -0,0 +1,12 @@ +# UpdateDeploymentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | Provides a human readable descriptive text for this Deployment, up to 64 characters long | [optional] +**SyncServiceSid** | **string** | Provides the unique string identifier of the Twilio Sync service instance that will be linked to and accessible by this Deployment. | [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/rest/preview/docs/UpdateDeviceRequest.md b/rest/preview/docs/UpdateDeviceRequest.md new file mode 100644 index 000000000..c41cf6b12 --- /dev/null +++ b/rest/preview/docs/UpdateDeviceRequest.md @@ -0,0 +1,14 @@ +# UpdateDeviceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeploymentSid** | **string** | Specifies the unique string identifier of the Deployment group that this Device is going to be associated with. | [optional] +**Enabled** | **bool** | | [optional] +**FriendlyName** | **string** | Provides a human readable descriptive text to be assigned to this Device, up to 256 characters long. | [optional] +**Identity** | **string** | Provides an arbitrary string identifier representing a human user to be associated with this Device, up to 256 characters long. | [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/rest/preview/docs/UpdateDocumentPermissionRequest.md b/rest/preview/docs/UpdateDocumentPermissionRequest.md new file mode 100644 index 000000000..079d5b8db --- /dev/null +++ b/rest/preview/docs/UpdateDocumentPermissionRequest.md @@ -0,0 +1,13 @@ +# UpdateDocumentPermissionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Manage** | **bool** | Boolean flag specifying whether the identity can delete the Sync Document. | +**Read** | **bool** | Boolean flag specifying whether the identity can read the Sync Document. | +**Write** | **bool** | Boolean flag specifying whether the identity can update the Sync Document. | + +[[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/rest/preview/docs/UpdateDocumentRequest.md b/rest/preview/docs/UpdateDocumentRequest.md new file mode 100644 index 000000000..c2a170ae5 --- /dev/null +++ b/rest/preview/docs/UpdateDocumentRequest.md @@ -0,0 +1,11 @@ +# UpdateDocumentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**map[string]interface{}**](.md) | | + +[[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/rest/preview/docs/UpdateExportConfigurationRequest.md b/rest/preview/docs/UpdateExportConfigurationRequest.md new file mode 100644 index 000000000..78f48b5f5 --- /dev/null +++ b/rest/preview/docs/UpdateExportConfigurationRequest.md @@ -0,0 +1,13 @@ +# UpdateExportConfigurationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Enabled** | **bool** | If true, Twilio will automatically generate every day's file when the day is over. | [optional] +**WebhookMethod** | **string** | Sets whether Twilio should call a webhook URL when the automatic generation is complete, using GET or POST. The actual destination is set in the webhook_url | [optional] +**WebhookUrl** | **string** | Stores the URL destination for the method specified in webhook_method. | [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/rest/preview/docs/UpdateFieldTypeRequest.md b/rest/preview/docs/UpdateFieldTypeRequest.md new file mode 100644 index 000000000..0b71ecd4d --- /dev/null +++ b/rest/preview/docs/UpdateFieldTypeRequest.md @@ -0,0 +1,12 @@ +# UpdateFieldTypeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | A user-provided string that identifies this resource. It is non-unique and can up to 255 characters long. | [optional] +**UniqueName** | **string** | A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. | [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/rest/preview/docs/UpdateFleetRequest.md b/rest/preview/docs/UpdateFleetRequest.md new file mode 100644 index 000000000..9db857b67 --- /dev/null +++ b/rest/preview/docs/UpdateFleetRequest.md @@ -0,0 +1,12 @@ +# UpdateFleetRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DefaultDeploymentSid** | **string** | Provides a string identifier of a Deployment that is going to be used as a default one for this Fleet. | [optional] +**FriendlyName** | **string** | Provides a human readable descriptive text for this Fleet, up to 256 characters long. | [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/rest/preview/docs/UpdateHostedNumberOrderRequest.md b/rest/preview/docs/UpdateHostedNumberOrderRequest.md new file mode 100644 index 000000000..9fed16d96 --- /dev/null +++ b/rest/preview/docs/UpdateHostedNumberOrderRequest.md @@ -0,0 +1,20 @@ +# UpdateHostedNumberOrderRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CallDelay** | **int32** | The number of seconds, between 0 and 60, to delay before initiating the verification call. Defaults to 0. | [optional] +**CcEmails** | **[]string** | Optional. A list of emails that LOA document for this HostedNumberOrder will be carbon copied to. | [optional] +**Email** | **string** | Email of the owner of this phone number that is being hosted. | [optional] +**Extension** | **string** | Digits to dial after connecting the verification call. | [optional] +**FriendlyName** | **string** | A 64 character string that is a human readable text that describes this resource. | [optional] +**Status** | **string** | User can only post to `pending-verification` status to transition the HostedNumberOrder to initiate a verification call or verification of ownership with a copy of a phone bill. | [optional] +**UniqueName** | **string** | Provides a unique and addressable name to be assigned to this HostedNumberOrder, assigned by the developer, to be optionally used in addition to SID. | [optional] +**VerificationCode** | **string** | A verification code that is given to the user via a phone call to the phone number that is being hosted. | [optional] +**VerificationDocumentSid** | **string** | Optional. The unique sid identifier of the Identity Document that represents the document for verifying ownership of the number to be hosted. Required when VerificationType is phone-bill. | [optional] +**VerificationType** | **string** | Optional. The method used for verifying ownership of the number to be hosted. One of phone-call (default) or phone-bill. | [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/rest/preview/docs/UpdateInstalledAddOnExtensionRequest.md b/rest/preview/docs/UpdateInstalledAddOnExtensionRequest.md new file mode 100644 index 000000000..a20f67661 --- /dev/null +++ b/rest/preview/docs/UpdateInstalledAddOnExtensionRequest.md @@ -0,0 +1,11 @@ +# UpdateInstalledAddOnExtensionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Enabled** | **bool** | Whether the Extension should be invoked. | + +[[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/rest/preview/docs/UpdateInstalledAddOnRequest.md b/rest/preview/docs/UpdateInstalledAddOnRequest.md new file mode 100644 index 000000000..51f647a0f --- /dev/null +++ b/rest/preview/docs/UpdateInstalledAddOnRequest.md @@ -0,0 +1,12 @@ +# UpdateInstalledAddOnRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Configuration** | [**map[string]interface{}**](.md) | Valid JSON object that conform to the configuration schema exposed by the associated AvailableAddOn resource. This is only required by Add-ons that need to be configured | [optional] +**UniqueName** | **string** | An application-defined string that uniquely identifies the resource. This value must be unique within the Account. | [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/rest/preview/docs/UpdateKeyRequest.md b/rest/preview/docs/UpdateKeyRequest.md new file mode 100644 index 000000000..863d52513 --- /dev/null +++ b/rest/preview/docs/UpdateKeyRequest.md @@ -0,0 +1,12 @@ +# UpdateKeyRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceSid** | **string** | Provides the unique string identifier of an existing Device to become authenticated with this Key credential. | [optional] +**FriendlyName** | **string** | Provides a human readable descriptive text for this Key credential, up to 256 characters long. | [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/rest/preview/docs/UpdateModelBuildRequest.md b/rest/preview/docs/UpdateModelBuildRequest.md new file mode 100644 index 000000000..cd3fa26c4 --- /dev/null +++ b/rest/preview/docs/UpdateModelBuildRequest.md @@ -0,0 +1,11 @@ +# UpdateModelBuildRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UniqueName** | **string** | A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. For example: v0.1 | [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/rest/preview/docs/UpdateQueryRequest.md b/rest/preview/docs/UpdateQueryRequest.md new file mode 100644 index 000000000..daf053567 --- /dev/null +++ b/rest/preview/docs/UpdateQueryRequest.md @@ -0,0 +1,12 @@ +# UpdateQueryRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SampleSid** | **string** | An optional reference to the Sample created from this query. | [optional] +**Status** | **string** | A string that described the query status. The values can be: pending_review, reviewed, discarded | [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/rest/preview/docs/UpdateRatePlanRequest.md b/rest/preview/docs/UpdateRatePlanRequest.md new file mode 100644 index 000000000..a64a3bf13 --- /dev/null +++ b/rest/preview/docs/UpdateRatePlanRequest.md @@ -0,0 +1,12 @@ +# UpdateRatePlanRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | | [optional] +**UniqueName** | **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/rest/preview/docs/UpdateSampleRequest.md b/rest/preview/docs/UpdateSampleRequest.md new file mode 100644 index 000000000..bbba8bb6f --- /dev/null +++ b/rest/preview/docs/UpdateSampleRequest.md @@ -0,0 +1,13 @@ +# UpdateSampleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Language** | **string** | An ISO language-country string of the sample. | [optional] +**SourceChannel** | **string** | The communication channel the sample was captured. It can be: *voice*, *sms*, *chat*, *alexa*, *google-assistant*, or *slack*. If not included the value will be null | [optional] +**TaggedText** | **string** | The text example of how end-users may express this task. The sample may contain Field tag blocks. | [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/rest/preview/docs/UpdateServiceRequest.md b/rest/preview/docs/UpdateServiceRequest.md new file mode 100644 index 000000000..10e887a67 --- /dev/null +++ b/rest/preview/docs/UpdateServiceRequest.md @@ -0,0 +1,14 @@ +# UpdateServiceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AclEnabled** | **bool** | | [optional] +**FriendlyName** | **string** | | [optional] +**ReachabilityWebhooksEnabled** | **bool** | | [optional] +**WebhookUrl** | **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/rest/preview/docs/UpdateSimRequest.md b/rest/preview/docs/UpdateSimRequest.md new file mode 100644 index 000000000..6d341614b --- /dev/null +++ b/rest/preview/docs/UpdateSimRequest.md @@ -0,0 +1,26 @@ +# UpdateSimRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CallbackMethod** | **string** | | [optional] +**CallbackUrl** | **string** | | [optional] +**CommandsCallbackMethod** | **string** | | [optional] +**CommandsCallbackUrl** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**RatePlan** | **string** | | [optional] +**SmsFallbackMethod** | **string** | | [optional] +**SmsFallbackUrl** | **string** | | [optional] +**SmsMethod** | **string** | | [optional] +**SmsUrl** | **string** | | [optional] +**Status** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**VoiceFallbackMethod** | **string** | | [optional] +**VoiceFallbackUrl** | **string** | | [optional] +**VoiceMethod** | **string** | | [optional] +**VoiceUrl** | **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/rest/preview/docs/UpdateStyleSheetRequest.md b/rest/preview/docs/UpdateStyleSheetRequest.md new file mode 100644 index 000000000..ad95938d3 --- /dev/null +++ b/rest/preview/docs/UpdateStyleSheetRequest.md @@ -0,0 +1,11 @@ +# UpdateStyleSheetRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StyleSheet** | [**map[string]interface{}**](.md) | The JSON Style sheet 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/rest/preview/docs/UpdateSyncListItemRequest.md b/rest/preview/docs/UpdateSyncListItemRequest.md new file mode 100644 index 000000000..769e3d1e1 --- /dev/null +++ b/rest/preview/docs/UpdateSyncListItemRequest.md @@ -0,0 +1,11 @@ +# UpdateSyncListItemRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**map[string]interface{}**](.md) | | + +[[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/rest/preview/docs/UpdateSyncListPermissionRequest.md b/rest/preview/docs/UpdateSyncListPermissionRequest.md new file mode 100644 index 000000000..cafa8c842 --- /dev/null +++ b/rest/preview/docs/UpdateSyncListPermissionRequest.md @@ -0,0 +1,13 @@ +# UpdateSyncListPermissionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Manage** | **bool** | Boolean flag specifying whether the identity can delete the Sync List. | +**Read** | **bool** | Boolean flag specifying whether the identity can read the Sync List. | +**Write** | **bool** | Boolean flag specifying whether the identity can create, update and delete Items of the Sync List. | + +[[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/rest/preview/docs/UpdateSyncMapItemRequest.md b/rest/preview/docs/UpdateSyncMapItemRequest.md new file mode 100644 index 000000000..1e9077a5f --- /dev/null +++ b/rest/preview/docs/UpdateSyncMapItemRequest.md @@ -0,0 +1,11 @@ +# UpdateSyncMapItemRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**map[string]interface{}**](.md) | | + +[[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/rest/preview/docs/UpdateSyncMapPermissionRequest.md b/rest/preview/docs/UpdateSyncMapPermissionRequest.md new file mode 100644 index 000000000..caccd8c61 --- /dev/null +++ b/rest/preview/docs/UpdateSyncMapPermissionRequest.md @@ -0,0 +1,13 @@ +# UpdateSyncMapPermissionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Manage** | **bool** | Boolean flag specifying whether the identity can delete the Sync Map. | +**Read** | **bool** | Boolean flag specifying whether the identity can read the Sync Map. | +**Write** | **bool** | Boolean flag specifying whether the identity can create, update and delete Items of the Sync Map. | + +[[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/rest/preview/docs/UpdateTaskActionsRequest.md b/rest/preview/docs/UpdateTaskActionsRequest.md new file mode 100644 index 000000000..78188f99a --- /dev/null +++ b/rest/preview/docs/UpdateTaskActionsRequest.md @@ -0,0 +1,11 @@ +# UpdateTaskActionsRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Actions** | [**map[string]interface{}**](.md) | The JSON actions that instruct the Assistant how to perform this task. | [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/rest/preview/docs/UpdateTaskRequest.md b/rest/preview/docs/UpdateTaskRequest.md new file mode 100644 index 000000000..aa323813b --- /dev/null +++ b/rest/preview/docs/UpdateTaskRequest.md @@ -0,0 +1,14 @@ +# UpdateTaskRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Actions** | [**map[string]interface{}**](.md) | A user-provided JSON object encoded as a string to specify the actions for this task. It is optional and non-unique. | [optional] +**ActionsUrl** | **string** | User-provided HTTP endpoint where from the assistant fetches actions | [optional] +**FriendlyName** | **string** | A user-provided string that identifies this resource. It is non-unique and can up to 255 characters long. | [optional] +**UniqueName** | **string** | A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. | [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/rest/preview/model_create_assistant_request.go b/rest/preview/model_create_assistant_request.go new file mode 100644 index 000000000..1705a8f4f --- /dev/null +++ b/rest/preview/model_create_assistant_request.go @@ -0,0 +1,30 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateAssistantRequest struct for CreateAssistantRequest +type CreateAssistantRequest struct { + // Space-separated list of callback events that will trigger callbacks. + CallbackEvents string `json:"CallbackEvents,omitempty"` + // A user-provided URL to send event callbacks to. + CallbackUrl string `json:"CallbackUrl,omitempty"` + // The JSON actions to be executed when the user's input is not recognized as matching any Task. + FallbackActions map[string]interface{} `json:"FallbackActions,omitempty"` + // A text description for the Assistant. It is non-unique and can up to 255 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // The JSON actions to be executed on inbound phone calls when the Assistant has to say something first. + InitiationActions map[string]interface{} `json:"InitiationActions,omitempty"` + // A boolean that specifies whether queries should be logged for 30 days further training. If false, no queries will be stored, if true, queries will be stored for 30 days and deleted thereafter. Defaults to true if no value is provided. + LogQueries bool `json:"LogQueries,omitempty"` + // The JSON object that holds the style sheet for the assistant + StyleSheet map[string]interface{} `json:"StyleSheet,omitempty"` + // A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/preview/model_create_authorization_document_request.go b/rest/preview/model_create_authorization_document_request.go new file mode 100644 index 000000000..6b142daa8 --- /dev/null +++ b/rest/preview/model_create_authorization_document_request.go @@ -0,0 +1,26 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateAuthorizationDocumentRequest struct for CreateAuthorizationDocumentRequest +type CreateAuthorizationDocumentRequest struct { + // A 34 character string that uniquely identifies the Address resource that is associated with this AuthorizationDocument. + AddressSid string `json:"AddressSid"` + // Email recipients who will be informed when an Authorization Document has been sent and signed. + CcEmails []string `json:"CcEmails,omitempty"` + // The contact phone number of the person authorized to sign the Authorization Document. + ContactPhoneNumber string `json:"ContactPhoneNumber"` + // The title of the person authorized to sign the Authorization Document for this phone number. + ContactTitle string `json:"ContactTitle"` + // Email that this AuthorizationDocument will be sent to for signing. + Email string `json:"Email"` + // A list of HostedNumberOrder sids that this AuthorizationDocument will authorize for hosting phone number capabilities on Twilio's platform. + HostedNumberOrderSids []string `json:"HostedNumberOrderSids"` +} diff --git a/rest/preview/model_create_certificate_request.go b/rest/preview/model_create_certificate_request.go new file mode 100644 index 000000000..b5d05c17f --- /dev/null +++ b/rest/preview/model_create_certificate_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateCertificateRequest struct for CreateCertificateRequest +type CreateCertificateRequest struct { + // Provides a URL encoded representation of the public certificate in PEM format. + CertificateData string `json:"CertificateData"` + // Provides the unique string identifier of an existing Device to become authenticated with this Certificate credential. + DeviceSid string `json:"DeviceSid,omitempty"` + // Provides a human readable descriptive text for this Certificate credential, up to 256 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` +} diff --git a/rest/preview/model_create_channel_request.go b/rest/preview/model_create_channel_request.go new file mode 100644 index 000000000..fe05e3480 --- /dev/null +++ b/rest/preview/model_create_channel_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateChannelRequest struct for CreateChannelRequest +type CreateChannelRequest struct { + // The unique SID identifier of the Phone Number of the Phone number to be assigned to the Branded Channel. + PhoneNumberSid string `json:"PhoneNumberSid"` +} diff --git a/rest/preview/model_create_command_request.go b/rest/preview/model_create_command_request.go new file mode 100644 index 000000000..207aae2bb --- /dev/null +++ b/rest/preview/model_create_command_request.go @@ -0,0 +1,21 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateCommandRequest struct for CreateCommandRequest +type CreateCommandRequest struct { + CallbackMethod string `json:"CallbackMethod,omitempty"` + CallbackUrl string `json:"CallbackUrl,omitempty"` + Command string `json:"Command"` + CommandMode string `json:"CommandMode,omitempty"` + Device string `json:"Device,omitempty"` + IncludeSid string `json:"IncludeSid,omitempty"` + Sim string `json:"Sim,omitempty"` +} diff --git a/rest/preview/model_create_deployment_request.go b/rest/preview/model_create_deployment_request.go new file mode 100644 index 000000000..9d3330f7d --- /dev/null +++ b/rest/preview/model_create_deployment_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateDeploymentRequest struct for CreateDeploymentRequest +type CreateDeploymentRequest struct { + // Provides a human readable descriptive text for this Deployment, up to 256 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // Provides the unique string identifier of the Twilio Sync service instance that will be linked to and accessible by this Deployment. + SyncServiceSid string `json:"SyncServiceSid,omitempty"` +} diff --git a/rest/preview/model_create_device_request.go b/rest/preview/model_create_device_request.go new file mode 100644 index 000000000..7edae9356 --- /dev/null +++ b/rest/preview/model_create_device_request.go @@ -0,0 +1,23 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateDeviceRequest struct for CreateDeviceRequest +type CreateDeviceRequest struct { + // Specifies the unique string identifier of the Deployment group that this Device is going to be associated with. + DeploymentSid string `json:"DeploymentSid,omitempty"` + Enabled bool `json:"Enabled,omitempty"` + // Provides a human readable descriptive text to be assigned to this Device, up to 256 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // Provides an arbitrary string identifier representing a human user to be associated with this Device, up to 256 characters long. + Identity string `json:"Identity,omitempty"` + // Provides a unique and addressable name to be assigned to this Device, to be used in addition to SID, up to 128 characters long. + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/preview/model_create_document_request.go b/rest/preview/model_create_document_request.go new file mode 100644 index 000000000..659fbebf1 --- /dev/null +++ b/rest/preview/model_create_document_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateDocumentRequest struct for CreateDocumentRequest +type CreateDocumentRequest struct { + Data map[string]interface{} `json:"Data,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/preview/model_create_export_custom_job_request.go b/rest/preview/model_create_export_custom_job_request.go new file mode 100644 index 000000000..74142c76a --- /dev/null +++ b/rest/preview/model_create_export_custom_job_request.go @@ -0,0 +1,26 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateExportCustomJobRequest struct for CreateExportCustomJobRequest +type CreateExportCustomJobRequest struct { + // The optional email to send the completion notification to + Email string `json:"Email,omitempty"` + // The end day for the custom export specified as a string in the format of yyyy-mm-dd. End day is inclusive and must be 2 days earlier than the current UTC day. + EndDay string `json:"EndDay"` + // The friendly name specified when creating the job + FriendlyName string `json:"FriendlyName"` + // The start day for the custom export specified as a string in the format of yyyy-mm-dd + StartDay string `json:"StartDay"` + // This is the method used to call the webhook on completion of the job. If this is supplied, `WebhookUrl` must also be supplied. + WebhookMethod string `json:"WebhookMethod,omitempty"` + // The optional webhook url called on completion of the job. If this is supplied, `WebhookMethod` must also be supplied. + WebhookUrl string `json:"WebhookUrl,omitempty"` +} diff --git a/rest/preview/model_create_field_request.go b/rest/preview/model_create_field_request.go new file mode 100644 index 000000000..5f6fbb3b2 --- /dev/null +++ b/rest/preview/model_create_field_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateFieldRequest struct for CreateFieldRequest +type CreateFieldRequest struct { + // The unique name or sid of the FieldType. It can be any [Built-in Field Type](https://www.twilio.com/docs/assistant/api/built-in-field-types) or the unique_name or the Field Type sid of a custom Field Type. + FieldType string `json:"FieldType"` + // A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. + UniqueName string `json:"UniqueName"` +} diff --git a/rest/preview/model_create_field_type_request.go b/rest/preview/model_create_field_type_request.go new file mode 100644 index 000000000..ef52fbe95 --- /dev/null +++ b/rest/preview/model_create_field_type_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateFieldTypeRequest struct for CreateFieldTypeRequest +type CreateFieldTypeRequest struct { + // A user-provided string that identifies this resource. It is non-unique and can up to 255 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. + UniqueName string `json:"UniqueName"` +} diff --git a/rest/preview/model_create_field_value_request.go b/rest/preview/model_create_field_value_request.go new file mode 100644 index 000000000..7370b4497 --- /dev/null +++ b/rest/preview/model_create_field_value_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateFieldValueRequest struct for CreateFieldValueRequest +type CreateFieldValueRequest struct { + // An ISO language-country string of the value. + Language string `json:"Language"` + // A value that indicates this field value is a synonym of. Empty if the value is not a synonym. + SynonymOf string `json:"SynonymOf,omitempty"` + // A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. + Value string `json:"Value"` +} diff --git a/rest/preview/model_create_fleet_request.go b/rest/preview/model_create_fleet_request.go new file mode 100644 index 000000000..dfb7e7949 --- /dev/null +++ b/rest/preview/model_create_fleet_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateFleetRequest struct for CreateFleetRequest +type CreateFleetRequest struct { + // Provides a human readable descriptive text for this Fleet, up to 256 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` +} diff --git a/rest/preview/model_create_hosted_number_order_request.go b/rest/preview/model_create_hosted_number_order_request.go new file mode 100644 index 000000000..de1dd5688 --- /dev/null +++ b/rest/preview/model_create_hosted_number_order_request.go @@ -0,0 +1,48 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateHostedNumberOrderRequest struct for CreateHostedNumberOrderRequest +type CreateHostedNumberOrderRequest struct { + // This defaults to the AccountSid of the authorization the user is using. This can be provided to specify a subaccount to add the HostedNumberOrder to. + AccountSid string `json:"AccountSid,omitempty"` + // Optional. A 34 character string that uniquely identifies the Address resource that represents the address of the owner of this phone number. + AddressSid string `json:"AddressSid,omitempty"` + // Optional. A list of emails that the LOA document for this HostedNumberOrder will be carbon copied to. + CcEmails []string `json:"CcEmails,omitempty"` + // Optional. Email of the owner of this phone number that is being hosted. + Email string `json:"Email,omitempty"` + // A 64 character string that is a human readable text that describes this resource. + FriendlyName string `json:"FriendlyName,omitempty"` + // The number to host in [+E.164](https://en.wikipedia.org/wiki/E.164) format + PhoneNumber string `json:"PhoneNumber"` + // Optional. The 34 character sid of the application Twilio should use to handle SMS messages sent to this number. If a `SmsApplicationSid` is present, Twilio will ignore all of the SMS urls above and use those set on the application. + SmsApplicationSid string `json:"SmsApplicationSid,omitempty"` + // Used to specify that the SMS capability will be hosted on Twilio's platform. + SmsCapability bool `json:"SmsCapability"` + // The HTTP method that should be used to request the SmsFallbackUrl. Must be either `GET` or `POST`. This will be copied onto the IncomingPhoneNumber resource. + SmsFallbackMethod string `json:"SmsFallbackMethod,omitempty"` + // A URL that Twilio will request if an error occurs requesting or executing the TwiML defined by SmsUrl. This will be copied onto the IncomingPhoneNumber resource. + SmsFallbackUrl string `json:"SmsFallbackUrl,omitempty"` + // The HTTP method that should be used to request the SmsUrl. Must be either `GET` or `POST`. This will be copied onto the IncomingPhoneNumber resource. + SmsMethod string `json:"SmsMethod,omitempty"` + // The URL that Twilio should request when somebody sends an SMS to the phone number. This will be copied onto the IncomingPhoneNumber resource. + SmsUrl string `json:"SmsUrl,omitempty"` + // Optional. The Status Callback Method attached to the IncomingPhoneNumber resource. + StatusCallbackMethod string `json:"StatusCallbackMethod,omitempty"` + // Optional. The Status Callback URL attached to the IncomingPhoneNumber resource. + StatusCallbackUrl string `json:"StatusCallbackUrl,omitempty"` + // Optional. Provides a unique and addressable name to be assigned to this HostedNumberOrder, assigned by the developer, to be optionally used in addition to SID. + UniqueName string `json:"UniqueName,omitempty"` + // Optional. The unique sid identifier of the Identity Document that represents the document for verifying ownership of the number to be hosted. Required when VerificationType is phone-bill. + VerificationDocumentSid string `json:"VerificationDocumentSid,omitempty"` + // Optional. The method used for verifying ownership of the number to be hosted. One of phone-call (default) or phone-bill. + VerificationType string `json:"VerificationType,omitempty"` +} diff --git a/rest/preview/model_create_installed_add_on_request.go b/rest/preview/model_create_installed_add_on_request.go new file mode 100644 index 000000000..c96a090d8 --- /dev/null +++ b/rest/preview/model_create_installed_add_on_request.go @@ -0,0 +1,22 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateInstalledAddOnRequest struct for CreateInstalledAddOnRequest +type CreateInstalledAddOnRequest struct { + // Whether the Terms of Service were accepted. + AcceptTermsOfService bool `json:"AcceptTermsOfService"` + // The SID of the AvaliableAddOn to install. + AvailableAddOnSid string `json:"AvailableAddOnSid"` + // The JSON object that represents the configuration of the new Add-on being installed. + Configuration map[string]interface{} `json:"Configuration,omitempty"` + // An application-defined string that uniquely identifies the resource. This value must be unique within the Account. + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/preview/model_create_key_request.go b/rest/preview/model_create_key_request.go new file mode 100644 index 000000000..a11f37a01 --- /dev/null +++ b/rest/preview/model_create_key_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateKeyRequest struct for CreateKeyRequest +type CreateKeyRequest struct { + // Provides the unique string identifier of an existing Device to become authenticated with this Key credential. + DeviceSid string `json:"DeviceSid,omitempty"` + // Provides a human readable descriptive text for this Key credential, up to 256 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` +} diff --git a/rest/preview/model_create_model_build_request.go b/rest/preview/model_create_model_build_request.go new file mode 100644 index 000000000..6d1d05c05 --- /dev/null +++ b/rest/preview/model_create_model_build_request.go @@ -0,0 +1,17 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateModelBuildRequest struct for CreateModelBuildRequest +type CreateModelBuildRequest struct { + StatusCallback string `json:"StatusCallback,omitempty"` + // A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. For example: v0.1 + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/preview/model_create_query_request.go b/rest/preview/model_create_query_request.go new file mode 100644 index 000000000..44bc28855 --- /dev/null +++ b/rest/preview/model_create_query_request.go @@ -0,0 +1,24 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateQueryRequest struct for CreateQueryRequest +type CreateQueryRequest struct { + // Constraints the query to a given Field with an task. Useful when you know the Field you are expecting. It accepts one field in the format *task-unique-name-1*:*field-unique-name* + Field string `json:"Field,omitempty"` + // An ISO language-country string of the sample. + Language string `json:"Language"` + // The Model Build Sid or unique name of the Model Build to be queried. + ModelBuild string `json:"ModelBuild,omitempty"` + // A user-provided string that uniquely identifies this resource as an alternative to the sid. It can be up to 2048 characters long. + Query string `json:"Query"` + // Constraints the query to a set of tasks. Useful when you need to constrain the paths the user can take. Tasks should be comma separated *task-unique-name-1*, *task-unique-name-2* + Tasks string `json:"Tasks,omitempty"` +} diff --git a/rest/preview/model_create_rate_plan_request.go b/rest/preview/model_create_rate_plan_request.go new file mode 100644 index 000000000..9d5a6de52 --- /dev/null +++ b/rest/preview/model_create_rate_plan_request.go @@ -0,0 +1,24 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateRatePlanRequest struct for CreateRatePlanRequest +type CreateRatePlanRequest struct { + CommandsEnabled bool `json:"CommandsEnabled,omitempty"` + DataEnabled bool `json:"DataEnabled,omitempty"` + DataLimit int32 `json:"DataLimit,omitempty"` + DataMetering string `json:"DataMetering,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + InternationalRoaming []string `json:"InternationalRoaming,omitempty"` + MessagingEnabled bool `json:"MessagingEnabled,omitempty"` + NationalRoamingEnabled bool `json:"NationalRoamingEnabled,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + VoiceEnabled bool `json:"VoiceEnabled,omitempty"` +} diff --git a/rest/preview/model_create_sample_request.go b/rest/preview/model_create_sample_request.go new file mode 100644 index 000000000..5a7fc6767 --- /dev/null +++ b/rest/preview/model_create_sample_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateSampleRequest struct for CreateSampleRequest +type CreateSampleRequest struct { + // An ISO language-country string of the sample. + Language string `json:"Language"` + // The communication channel the sample was captured. It can be: *voice*, *sms*, *chat*, *alexa*, *google-assistant*, or *slack*. If not included the value will be null + SourceChannel string `json:"SourceChannel,omitempty"` + // The text example of how end-users may express this task. The sample may contain Field tag blocks. + TaggedText string `json:"TaggedText"` +} diff --git a/rest/preview/model_create_service_request.go b/rest/preview/model_create_service_request.go new file mode 100644 index 000000000..b74b3131f --- /dev/null +++ b/rest/preview/model_create_service_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateServiceRequest struct for CreateServiceRequest +type CreateServiceRequest struct { + AclEnabled bool `json:"AclEnabled,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + ReachabilityWebhooksEnabled bool `json:"ReachabilityWebhooksEnabled,omitempty"` + WebhookUrl string `json:"WebhookUrl,omitempty"` +} diff --git a/rest/preview/model_create_sync_list_item_request.go b/rest/preview/model_create_sync_list_item_request.go new file mode 100644 index 000000000..9a0b64b0a --- /dev/null +++ b/rest/preview/model_create_sync_list_item_request.go @@ -0,0 +1,15 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateSyncListItemRequest struct for CreateSyncListItemRequest +type CreateSyncListItemRequest struct { + Data map[string]interface{} `json:"Data"` +} diff --git a/rest/preview/model_create_sync_list_request.go b/rest/preview/model_create_sync_list_request.go new file mode 100644 index 000000000..b88855cd7 --- /dev/null +++ b/rest/preview/model_create_sync_list_request.go @@ -0,0 +1,15 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateSyncListRequest struct for CreateSyncListRequest +type CreateSyncListRequest struct { + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/preview/model_create_sync_map_item_request.go b/rest/preview/model_create_sync_map_item_request.go new file mode 100644 index 000000000..f3a4060c8 --- /dev/null +++ b/rest/preview/model_create_sync_map_item_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateSyncMapItemRequest struct for CreateSyncMapItemRequest +type CreateSyncMapItemRequest struct { + Data map[string]interface{} `json:"Data"` + Key string `json:"Key"` +} diff --git a/rest/preview/model_create_sync_map_request.go b/rest/preview/model_create_sync_map_request.go new file mode 100644 index 000000000..dde6a3402 --- /dev/null +++ b/rest/preview/model_create_sync_map_request.go @@ -0,0 +1,15 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateSyncMapRequest struct for CreateSyncMapRequest +type CreateSyncMapRequest struct { + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/preview/model_create_task_request.go b/rest/preview/model_create_task_request.go new file mode 100644 index 000000000..c9510f9eb --- /dev/null +++ b/rest/preview/model_create_task_request.go @@ -0,0 +1,22 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateTaskRequest struct for CreateTaskRequest +type CreateTaskRequest struct { + // A user-provided JSON object encoded as a string to specify the actions for this task. It is optional and non-unique. + Actions map[string]interface{} `json:"Actions,omitempty"` + // User-provided HTTP endpoint where from the assistant fetches actions + ActionsUrl string `json:"ActionsUrl,omitempty"` + // A user-provided string that identifies this resource. It is non-unique and can up to 255 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. + UniqueName string `json:"UniqueName"` +} diff --git a/rest/preview/model_preview_bulk_exports_export.go b/rest/preview/model_preview_bulk_exports_export.go new file mode 100644 index 000000000..41ff35f47 --- /dev/null +++ b/rest/preview/model_preview_bulk_exports_export.go @@ -0,0 +1,17 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewBulkExportsExport struct for PreviewBulkExportsExport +type PreviewBulkExportsExport struct { + Links map[string]interface{} `json:"links,omitempty"` + ResourceType string `json:"resource_type,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/preview/model_preview_bulk_exports_export_configuration.go b/rest/preview/model_preview_bulk_exports_export_configuration.go new file mode 100644 index 000000000..fd2f9a6a0 --- /dev/null +++ b/rest/preview/model_preview_bulk_exports_export_configuration.go @@ -0,0 +1,19 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewBulkExportsExportConfiguration struct for PreviewBulkExportsExportConfiguration +type PreviewBulkExportsExportConfiguration struct { + Enabled bool `json:"enabled,omitempty"` + ResourceType string `json:"resource_type,omitempty"` + Url string `json:"url,omitempty"` + WebhookMethod string `json:"webhook_method,omitempty"` + WebhookUrl string `json:"webhook_url,omitempty"` +} diff --git a/rest/preview/model_preview_bulk_exports_export_day.go b/rest/preview/model_preview_bulk_exports_export_day.go new file mode 100644 index 000000000..a4b36f223 --- /dev/null +++ b/rest/preview/model_preview_bulk_exports_export_day.go @@ -0,0 +1,19 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewBulkExportsExportDay struct for PreviewBulkExportsExportDay +type PreviewBulkExportsExportDay struct { + CreateDate string `json:"create_date,omitempty"` + Day string `json:"day,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + ResourceType string `json:"resource_type,omitempty"` + Size int32 `json:"size,omitempty"` +} diff --git a/rest/preview/model_preview_bulk_exports_export_day_instance.go b/rest/preview/model_preview_bulk_exports_export_day_instance.go new file mode 100644 index 000000000..4d1ee1c61 --- /dev/null +++ b/rest/preview/model_preview_bulk_exports_export_day_instance.go @@ -0,0 +1,15 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewBulkExportsExportDayInstance struct for PreviewBulkExportsExportDayInstance +type PreviewBulkExportsExportDayInstance struct { + RedirectTo string `json:"redirect_to,omitempty"` +} diff --git a/rest/preview/model_preview_bulk_exports_export_day_read_response.go b/rest/preview/model_preview_bulk_exports_export_day_read_response.go new file mode 100644 index 000000000..ddb89e221 --- /dev/null +++ b/rest/preview/model_preview_bulk_exports_export_day_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewBulkExportsExportDayReadResponse struct for PreviewBulkExportsExportDayReadResponse +type PreviewBulkExportsExportDayReadResponse struct { + Days []PreviewBulkExportsExportDay `json:"days,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/preview/model_preview_bulk_exports_export_day_read_response_meta.go b/rest/preview/model_preview_bulk_exports_export_day_read_response_meta.go new file mode 100644 index 000000000..48faaad33 --- /dev/null +++ b/rest/preview/model_preview_bulk_exports_export_day_read_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewBulkExportsExportDayReadResponseMeta struct for PreviewBulkExportsExportDayReadResponseMeta +type PreviewBulkExportsExportDayReadResponseMeta struct { + FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` + NextPageUrl string `json:"next_page_url,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUrl string `json:"previous_page_url,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/preview/model_preview_bulk_exports_export_export_custom_job.go b/rest/preview/model_preview_bulk_exports_export_export_custom_job.go new file mode 100644 index 000000000..ff8105914 --- /dev/null +++ b/rest/preview/model_preview_bulk_exports_export_export_custom_job.go @@ -0,0 +1,23 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewBulkExportsExportExportCustomJob struct for PreviewBulkExportsExportExportCustomJob +type PreviewBulkExportsExportExportCustomJob struct { + Details map[string]interface{} `json:"details,omitempty"` + Email string `json:"email,omitempty"` + EndDay string `json:"end_day,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + JobSid string `json:"job_sid,omitempty"` + ResourceType string `json:"resource_type,omitempty"` + StartDay string `json:"start_day,omitempty"` + WebhookMethod string `json:"webhook_method,omitempty"` + WebhookUrl string `json:"webhook_url,omitempty"` +} diff --git a/rest/preview/model_preview_bulk_exports_export_export_custom_job_read_response.go b/rest/preview/model_preview_bulk_exports_export_export_custom_job_read_response.go new file mode 100644 index 000000000..2f8ca0a80 --- /dev/null +++ b/rest/preview/model_preview_bulk_exports_export_export_custom_job_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewBulkExportsExportExportCustomJobReadResponse struct for PreviewBulkExportsExportExportCustomJobReadResponse +type PreviewBulkExportsExportExportCustomJobReadResponse struct { + Jobs []PreviewBulkExportsExportExportCustomJob `json:"jobs,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/preview/model_preview_bulk_exports_export_job.go b/rest/preview/model_preview_bulk_exports_export_job.go new file mode 100644 index 000000000..70185c32c --- /dev/null +++ b/rest/preview/model_preview_bulk_exports_export_job.go @@ -0,0 +1,24 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewBulkExportsExportJob struct for PreviewBulkExportsExportJob +type PreviewBulkExportsExportJob struct { + Details map[string]interface{} `json:"details,omitempty"` + Email string `json:"email,omitempty"` + EndDay string `json:"end_day,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + JobSid string `json:"job_sid,omitempty"` + ResourceType string `json:"resource_type,omitempty"` + StartDay string `json:"start_day,omitempty"` + Url string `json:"url,omitempty"` + WebhookMethod string `json:"webhook_method,omitempty"` + WebhookUrl string `json:"webhook_url,omitempty"` +} diff --git a/rest/preview/model_preview_deployed_devices_fleet.go b/rest/preview/model_preview_deployed_devices_fleet.go new file mode 100644 index 000000000..31241ad97 --- /dev/null +++ b/rest/preview/model_preview_deployed_devices_fleet.go @@ -0,0 +1,26 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// PreviewDeployedDevicesFleet struct for PreviewDeployedDevicesFleet +type PreviewDeployedDevicesFleet struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + DefaultDeploymentSid string `json:"default_deployment_sid,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Sid string `json:"sid,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/preview/model_preview_deployed_devices_fleet_certificate.go b/rest/preview/model_preview_deployed_devices_fleet_certificate.go new file mode 100644 index 000000000..62e661e6a --- /dev/null +++ b/rest/preview/model_preview_deployed_devices_fleet_certificate.go @@ -0,0 +1,26 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// PreviewDeployedDevicesFleetCertificate struct for PreviewDeployedDevicesFleetCertificate +type PreviewDeployedDevicesFleetCertificate struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + DeviceSid string `json:"device_sid,omitempty"` + FleetSid string `json:"fleet_sid,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Sid string `json:"sid,omitempty"` + Thumbprint string `json:"thumbprint,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/preview/model_preview_deployed_devices_fleet_certificate_read_response.go b/rest/preview/model_preview_deployed_devices_fleet_certificate_read_response.go new file mode 100644 index 000000000..ff451e519 --- /dev/null +++ b/rest/preview/model_preview_deployed_devices_fleet_certificate_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewDeployedDevicesFleetCertificateReadResponse struct for PreviewDeployedDevicesFleetCertificateReadResponse +type PreviewDeployedDevicesFleetCertificateReadResponse struct { + Certificates []PreviewDeployedDevicesFleetCertificate `json:"certificates,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/preview/model_preview_deployed_devices_fleet_deployment.go b/rest/preview/model_preview_deployed_devices_fleet_deployment.go new file mode 100644 index 000000000..bae3ad55a --- /dev/null +++ b/rest/preview/model_preview_deployed_devices_fleet_deployment.go @@ -0,0 +1,25 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// PreviewDeployedDevicesFleetDeployment struct for PreviewDeployedDevicesFleetDeployment +type PreviewDeployedDevicesFleetDeployment struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FleetSid string `json:"fleet_sid,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Sid string `json:"sid,omitempty"` + SyncServiceSid string `json:"sync_service_sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/preview/model_preview_deployed_devices_fleet_deployment_read_response.go b/rest/preview/model_preview_deployed_devices_fleet_deployment_read_response.go new file mode 100644 index 000000000..1756e7c1a --- /dev/null +++ b/rest/preview/model_preview_deployed_devices_fleet_deployment_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewDeployedDevicesFleetDeploymentReadResponse struct for PreviewDeployedDevicesFleetDeploymentReadResponse +type PreviewDeployedDevicesFleetDeploymentReadResponse struct { + Deployments []PreviewDeployedDevicesFleetDeployment `json:"deployments,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/preview/model_preview_deployed_devices_fleet_device.go b/rest/preview/model_preview_deployed_devices_fleet_device.go new file mode 100644 index 000000000..112b28c14 --- /dev/null +++ b/rest/preview/model_preview_deployed_devices_fleet_device.go @@ -0,0 +1,29 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// PreviewDeployedDevicesFleetDevice struct for PreviewDeployedDevicesFleetDevice +type PreviewDeployedDevicesFleetDevice struct { + AccountSid string `json:"account_sid,omitempty"` + DateAuthenticated time.Time `json:"date_authenticated,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + DeploymentSid string `json:"deployment_sid,omitempty"` + Enabled bool `json:"enabled,omitempty"` + FleetSid string `json:"fleet_sid,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Identity string `json:"identity,omitempty"` + Sid string `json:"sid,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/preview/model_preview_deployed_devices_fleet_device_read_response.go b/rest/preview/model_preview_deployed_devices_fleet_device_read_response.go new file mode 100644 index 000000000..d36630f7f --- /dev/null +++ b/rest/preview/model_preview_deployed_devices_fleet_device_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewDeployedDevicesFleetDeviceReadResponse struct for PreviewDeployedDevicesFleetDeviceReadResponse +type PreviewDeployedDevicesFleetDeviceReadResponse struct { + Devices []PreviewDeployedDevicesFleetDevice `json:"devices,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/preview/model_preview_deployed_devices_fleet_key.go b/rest/preview/model_preview_deployed_devices_fleet_key.go new file mode 100644 index 000000000..3709cc3a1 --- /dev/null +++ b/rest/preview/model_preview_deployed_devices_fleet_key.go @@ -0,0 +1,26 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// PreviewDeployedDevicesFleetKey struct for PreviewDeployedDevicesFleetKey +type PreviewDeployedDevicesFleetKey struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + DeviceSid string `json:"device_sid,omitempty"` + FleetSid string `json:"fleet_sid,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Secret string `json:"secret,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/preview/model_preview_deployed_devices_fleet_key_read_response.go b/rest/preview/model_preview_deployed_devices_fleet_key_read_response.go new file mode 100644 index 000000000..f28eff179 --- /dev/null +++ b/rest/preview/model_preview_deployed_devices_fleet_key_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewDeployedDevicesFleetKeyReadResponse struct for PreviewDeployedDevicesFleetKeyReadResponse +type PreviewDeployedDevicesFleetKeyReadResponse struct { + Keys []PreviewDeployedDevicesFleetKey `json:"keys,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/preview/model_preview_deployed_devices_fleet_read_response.go b/rest/preview/model_preview_deployed_devices_fleet_read_response.go new file mode 100644 index 000000000..700d8454b --- /dev/null +++ b/rest/preview/model_preview_deployed_devices_fleet_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewDeployedDevicesFleetReadResponse struct for PreviewDeployedDevicesFleetReadResponse +type PreviewDeployedDevicesFleetReadResponse struct { + Fleets []PreviewDeployedDevicesFleet `json:"fleets,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/preview/model_preview_hosted_numbers_authorization_document.go b/rest/preview/model_preview_hosted_numbers_authorization_document.go new file mode 100644 index 000000000..d9255f430 --- /dev/null +++ b/rest/preview/model_preview_hosted_numbers_authorization_document.go @@ -0,0 +1,26 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// PreviewHostedNumbersAuthorizationDocument struct for PreviewHostedNumbersAuthorizationDocument +type PreviewHostedNumbersAuthorizationDocument struct { + AddressSid string `json:"address_sid,omitempty"` + CcEmails []string `json:"cc_emails,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Email string `json:"email,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Sid string `json:"sid,omitempty"` + Status string `json:"status,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/preview/model_preview_hosted_numbers_authorization_document_dependent_hosted_number_order.go b/rest/preview/model_preview_hosted_numbers_authorization_document_dependent_hosted_number_order.go new file mode 100644 index 000000000..91fe8df7a --- /dev/null +++ b/rest/preview/model_preview_hosted_numbers_authorization_document_dependent_hosted_number_order.go @@ -0,0 +1,39 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrder struct for PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrder +type PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrder struct { + AccountSid string `json:"account_sid,omitempty"` + AddressSid string `json:"address_sid,omitempty"` + CallDelay int32 `json:"call_delay,omitempty"` + Capabilities map[string]interface{} `json:"capabilities,omitempty"` + CcEmails []string `json:"cc_emails,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Email string `json:"email,omitempty"` + Extension string `json:"extension,omitempty"` + FailureReason string `json:"failure_reason,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + IncomingPhoneNumberSid string `json:"incoming_phone_number_sid,omitempty"` + PhoneNumber string `json:"phone_number,omitempty"` + Sid string `json:"sid,omitempty"` + SigningDocumentSid string `json:"signing_document_sid,omitempty"` + Status string `json:"status,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + VerificationAttempts int32 `json:"verification_attempts,omitempty"` + VerificationCallSids []string `json:"verification_call_sids,omitempty"` + VerificationCode string `json:"verification_code,omitempty"` + VerificationDocumentSid string `json:"verification_document_sid,omitempty"` + VerificationType string `json:"verification_type,omitempty"` +} diff --git a/rest/preview/model_preview_hosted_numbers_authorization_document_dependent_hosted_number_order_read_response.go b/rest/preview/model_preview_hosted_numbers_authorization_document_dependent_hosted_number_order_read_response.go new file mode 100644 index 000000000..6c16d65e6 --- /dev/null +++ b/rest/preview/model_preview_hosted_numbers_authorization_document_dependent_hosted_number_order_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse struct for PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse +type PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse struct { + Items []PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrder `json:"items,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/preview/model_preview_hosted_numbers_authorization_document_read_response.go b/rest/preview/model_preview_hosted_numbers_authorization_document_read_response.go new file mode 100644 index 000000000..603f76446 --- /dev/null +++ b/rest/preview/model_preview_hosted_numbers_authorization_document_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewHostedNumbersAuthorizationDocumentReadResponse struct for PreviewHostedNumbersAuthorizationDocumentReadResponse +type PreviewHostedNumbersAuthorizationDocumentReadResponse struct { + Items []PreviewHostedNumbersAuthorizationDocument `json:"items,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/preview/model_preview_hosted_numbers_hosted_number_order.go b/rest/preview/model_preview_hosted_numbers_hosted_number_order.go new file mode 100644 index 000000000..9e9433b9e --- /dev/null +++ b/rest/preview/model_preview_hosted_numbers_hosted_number_order.go @@ -0,0 +1,40 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// PreviewHostedNumbersHostedNumberOrder struct for PreviewHostedNumbersHostedNumberOrder +type PreviewHostedNumbersHostedNumberOrder struct { + AccountSid string `json:"account_sid,omitempty"` + AddressSid string `json:"address_sid,omitempty"` + CallDelay int32 `json:"call_delay,omitempty"` + Capabilities map[string]interface{} `json:"capabilities,omitempty"` + CcEmails []string `json:"cc_emails,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Email string `json:"email,omitempty"` + Extension string `json:"extension,omitempty"` + FailureReason string `json:"failure_reason,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + IncomingPhoneNumberSid string `json:"incoming_phone_number_sid,omitempty"` + PhoneNumber string `json:"phone_number,omitempty"` + Sid string `json:"sid,omitempty"` + SigningDocumentSid string `json:"signing_document_sid,omitempty"` + Status string `json:"status,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` + VerificationAttempts int32 `json:"verification_attempts,omitempty"` + VerificationCallSids []string `json:"verification_call_sids,omitempty"` + VerificationCode string `json:"verification_code,omitempty"` + VerificationDocumentSid string `json:"verification_document_sid,omitempty"` + VerificationType string `json:"verification_type,omitempty"` +} diff --git a/rest/preview/model_preview_hosted_numbers_hosted_number_order_read_response.go b/rest/preview/model_preview_hosted_numbers_hosted_number_order_read_response.go new file mode 100644 index 000000000..0adede1d6 --- /dev/null +++ b/rest/preview/model_preview_hosted_numbers_hosted_number_order_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewHostedNumbersHostedNumberOrderReadResponse struct for PreviewHostedNumbersHostedNumberOrderReadResponse +type PreviewHostedNumbersHostedNumberOrderReadResponse struct { + Items []PreviewHostedNumbersHostedNumberOrder `json:"items,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/preview/model_preview_marketplace_available_add_on.go b/rest/preview/model_preview_marketplace_available_add_on.go new file mode 100644 index 000000000..e0a555334 --- /dev/null +++ b/rest/preview/model_preview_marketplace_available_add_on.go @@ -0,0 +1,21 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewMarketplaceAvailableAddOn struct for PreviewMarketplaceAvailableAddOn +type PreviewMarketplaceAvailableAddOn struct { + ConfigurationSchema map[string]interface{} `json:"configuration_schema,omitempty"` + Description string `json:"description,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + PricingType string `json:"pricing_type,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/preview/model_preview_marketplace_available_add_on_available_add_on_extension.go b/rest/preview/model_preview_marketplace_available_add_on_available_add_on_extension.go new file mode 100644 index 000000000..61ea90eee --- /dev/null +++ b/rest/preview/model_preview_marketplace_available_add_on_available_add_on_extension.go @@ -0,0 +1,20 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewMarketplaceAvailableAddOnAvailableAddOnExtension struct for PreviewMarketplaceAvailableAddOnAvailableAddOnExtension +type PreviewMarketplaceAvailableAddOnAvailableAddOnExtension struct { + AvailableAddOnSid string `json:"available_add_on_sid,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + ProductName string `json:"product_name,omitempty"` + Sid string `json:"sid,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/preview/model_preview_marketplace_available_add_on_available_add_on_extension_read_response.go b/rest/preview/model_preview_marketplace_available_add_on_available_add_on_extension_read_response.go new file mode 100644 index 000000000..5102ac984 --- /dev/null +++ b/rest/preview/model_preview_marketplace_available_add_on_available_add_on_extension_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse struct for PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse +type PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse struct { + Extensions []PreviewMarketplaceAvailableAddOnAvailableAddOnExtension `json:"extensions,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/preview/model_preview_marketplace_available_add_on_read_response.go b/rest/preview/model_preview_marketplace_available_add_on_read_response.go new file mode 100644 index 000000000..f0cf995cd --- /dev/null +++ b/rest/preview/model_preview_marketplace_available_add_on_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewMarketplaceAvailableAddOnReadResponse struct for PreviewMarketplaceAvailableAddOnReadResponse +type PreviewMarketplaceAvailableAddOnReadResponse struct { + AvailableAddOns []PreviewMarketplaceAvailableAddOn `json:"available_add_ons,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/preview/model_preview_marketplace_installed_add_on.go b/rest/preview/model_preview_marketplace_installed_add_on.go new file mode 100644 index 000000000..a1b2396be --- /dev/null +++ b/rest/preview/model_preview_marketplace_installed_add_on.go @@ -0,0 +1,27 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// PreviewMarketplaceInstalledAddOn struct for PreviewMarketplaceInstalledAddOn +type PreviewMarketplaceInstalledAddOn struct { + AccountSid string `json:"account_sid,omitempty"` + Configuration map[string]interface{} `json:"configuration,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Description string `json:"description,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Sid string `json:"sid,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/preview/model_preview_marketplace_installed_add_on_installed_add_on_extension.go b/rest/preview/model_preview_marketplace_installed_add_on_installed_add_on_extension.go new file mode 100644 index 000000000..953fddf59 --- /dev/null +++ b/rest/preview/model_preview_marketplace_installed_add_on_installed_add_on_extension.go @@ -0,0 +1,21 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewMarketplaceInstalledAddOnInstalledAddOnExtension struct for PreviewMarketplaceInstalledAddOnInstalledAddOnExtension +type PreviewMarketplaceInstalledAddOnInstalledAddOnExtension struct { + Enabled bool `json:"enabled,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + InstalledAddOnSid string `json:"installed_add_on_sid,omitempty"` + ProductName string `json:"product_name,omitempty"` + Sid string `json:"sid,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/preview/model_preview_marketplace_installed_add_on_installed_add_on_extension_read_response.go b/rest/preview/model_preview_marketplace_installed_add_on_installed_add_on_extension_read_response.go new file mode 100644 index 000000000..f27cb921d --- /dev/null +++ b/rest/preview/model_preview_marketplace_installed_add_on_installed_add_on_extension_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse struct for PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse +type PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse struct { + Extensions []PreviewMarketplaceInstalledAddOnInstalledAddOnExtension `json:"extensions,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/preview/model_preview_marketplace_installed_add_on_read_response.go b/rest/preview/model_preview_marketplace_installed_add_on_read_response.go new file mode 100644 index 000000000..988cdf591 --- /dev/null +++ b/rest/preview/model_preview_marketplace_installed_add_on_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewMarketplaceInstalledAddOnReadResponse struct for PreviewMarketplaceInstalledAddOnReadResponse +type PreviewMarketplaceInstalledAddOnReadResponse struct { + InstalledAddOns []PreviewMarketplaceInstalledAddOn `json:"installed_add_ons,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/preview/model_preview_sync_service.go b/rest/preview/model_preview_sync_service.go new file mode 100644 index 000000000..7d0a63277 --- /dev/null +++ b/rest/preview/model_preview_sync_service.go @@ -0,0 +1,27 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// PreviewSyncService struct for PreviewSyncService +type PreviewSyncService struct { + AccountSid string `json:"account_sid,omitempty"` + AclEnabled bool `json:"acl_enabled,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + ReachabilityWebhooksEnabled bool `json:"reachability_webhooks_enabled,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` + WebhookUrl string `json:"webhook_url,omitempty"` +} diff --git a/rest/preview/model_preview_sync_service_document.go b/rest/preview/model_preview_sync_service_document.go new file mode 100644 index 000000000..c20264a78 --- /dev/null +++ b/rest/preview/model_preview_sync_service_document.go @@ -0,0 +1,28 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// PreviewSyncServiceDocument struct for PreviewSyncServiceDocument +type PreviewSyncServiceDocument struct { + AccountSid string `json:"account_sid,omitempty"` + CreatedBy string `json:"created_by,omitempty"` + Data map[string]interface{} `json:"data,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Revision string `json:"revision,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/preview/model_preview_sync_service_document_document_permission.go b/rest/preview/model_preview_sync_service_document_document_permission.go new file mode 100644 index 000000000..508fcd73c --- /dev/null +++ b/rest/preview/model_preview_sync_service_document_document_permission.go @@ -0,0 +1,22 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewSyncServiceDocumentDocumentPermission struct for PreviewSyncServiceDocumentDocumentPermission +type PreviewSyncServiceDocumentDocumentPermission struct { + AccountSid string `json:"account_sid,omitempty"` + DocumentSid string `json:"document_sid,omitempty"` + Identity string `json:"identity,omitempty"` + Manage bool `json:"manage,omitempty"` + Read bool `json:"read,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Url string `json:"url,omitempty"` + Write bool `json:"write,omitempty"` +} diff --git a/rest/preview/model_preview_sync_service_document_document_permission_read_response.go b/rest/preview/model_preview_sync_service_document_document_permission_read_response.go new file mode 100644 index 000000000..210dd05b5 --- /dev/null +++ b/rest/preview/model_preview_sync_service_document_document_permission_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewSyncServiceDocumentDocumentPermissionReadResponse struct for PreviewSyncServiceDocumentDocumentPermissionReadResponse +type PreviewSyncServiceDocumentDocumentPermissionReadResponse struct { + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` + Permissions []PreviewSyncServiceDocumentDocumentPermission `json:"permissions,omitempty"` +} diff --git a/rest/preview/model_preview_sync_service_document_read_response.go b/rest/preview/model_preview_sync_service_document_read_response.go new file mode 100644 index 000000000..3162345b1 --- /dev/null +++ b/rest/preview/model_preview_sync_service_document_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewSyncServiceDocumentReadResponse struct for PreviewSyncServiceDocumentReadResponse +type PreviewSyncServiceDocumentReadResponse struct { + Documents []PreviewSyncServiceDocument `json:"documents,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/preview/model_preview_sync_service_read_response.go b/rest/preview/model_preview_sync_service_read_response.go new file mode 100644 index 000000000..407b37061 --- /dev/null +++ b/rest/preview/model_preview_sync_service_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewSyncServiceReadResponse struct for PreviewSyncServiceReadResponse +type PreviewSyncServiceReadResponse struct { + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` + Services []PreviewSyncService `json:"services,omitempty"` +} diff --git a/rest/preview/model_preview_sync_service_sync_list.go b/rest/preview/model_preview_sync_service_sync_list.go new file mode 100644 index 000000000..6bf4fb99a --- /dev/null +++ b/rest/preview/model_preview_sync_service_sync_list.go @@ -0,0 +1,27 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// PreviewSyncServiceSyncList struct for PreviewSyncServiceSyncList +type PreviewSyncServiceSyncList struct { + AccountSid string `json:"account_sid,omitempty"` + CreatedBy string `json:"created_by,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Revision string `json:"revision,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/preview/model_preview_sync_service_sync_list_read_response.go b/rest/preview/model_preview_sync_service_sync_list_read_response.go new file mode 100644 index 000000000..f51a14a83 --- /dev/null +++ b/rest/preview/model_preview_sync_service_sync_list_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewSyncServiceSyncListReadResponse struct for PreviewSyncServiceSyncListReadResponse +type PreviewSyncServiceSyncListReadResponse struct { + Lists []PreviewSyncServiceSyncList `json:"lists,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/preview/model_preview_sync_service_sync_list_sync_list_item.go b/rest/preview/model_preview_sync_service_sync_list_sync_list_item.go new file mode 100644 index 000000000..7e9f2907e --- /dev/null +++ b/rest/preview/model_preview_sync_service_sync_list_sync_list_item.go @@ -0,0 +1,27 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// PreviewSyncServiceSyncListSyncListItem struct for PreviewSyncServiceSyncListSyncListItem +type PreviewSyncServiceSyncListSyncListItem struct { + AccountSid string `json:"account_sid,omitempty"` + CreatedBy string `json:"created_by,omitempty"` + Data map[string]interface{} `json:"data,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Index int32 `json:"index,omitempty"` + ListSid string `json:"list_sid,omitempty"` + Revision string `json:"revision,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/preview/model_preview_sync_service_sync_list_sync_list_item_read_response.go b/rest/preview/model_preview_sync_service_sync_list_sync_list_item_read_response.go new file mode 100644 index 000000000..17aa0868a --- /dev/null +++ b/rest/preview/model_preview_sync_service_sync_list_sync_list_item_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewSyncServiceSyncListSyncListItemReadResponse struct for PreviewSyncServiceSyncListSyncListItemReadResponse +type PreviewSyncServiceSyncListSyncListItemReadResponse struct { + Items []PreviewSyncServiceSyncListSyncListItem `json:"items,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/preview/model_preview_sync_service_sync_list_sync_list_permission.go b/rest/preview/model_preview_sync_service_sync_list_sync_list_permission.go new file mode 100644 index 000000000..6ab5ffeb1 --- /dev/null +++ b/rest/preview/model_preview_sync_service_sync_list_sync_list_permission.go @@ -0,0 +1,22 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewSyncServiceSyncListSyncListPermission struct for PreviewSyncServiceSyncListSyncListPermission +type PreviewSyncServiceSyncListSyncListPermission struct { + AccountSid string `json:"account_sid,omitempty"` + Identity string `json:"identity,omitempty"` + ListSid string `json:"list_sid,omitempty"` + Manage bool `json:"manage,omitempty"` + Read bool `json:"read,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Url string `json:"url,omitempty"` + Write bool `json:"write,omitempty"` +} diff --git a/rest/preview/model_preview_sync_service_sync_list_sync_list_permission_read_response.go b/rest/preview/model_preview_sync_service_sync_list_sync_list_permission_read_response.go new file mode 100644 index 000000000..eea151797 --- /dev/null +++ b/rest/preview/model_preview_sync_service_sync_list_sync_list_permission_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewSyncServiceSyncListSyncListPermissionReadResponse struct for PreviewSyncServiceSyncListSyncListPermissionReadResponse +type PreviewSyncServiceSyncListSyncListPermissionReadResponse struct { + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` + Permissions []PreviewSyncServiceSyncListSyncListPermission `json:"permissions,omitempty"` +} diff --git a/rest/preview/model_preview_sync_service_sync_map.go b/rest/preview/model_preview_sync_service_sync_map.go new file mode 100644 index 000000000..78b40c6a5 --- /dev/null +++ b/rest/preview/model_preview_sync_service_sync_map.go @@ -0,0 +1,27 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// PreviewSyncServiceSyncMap struct for PreviewSyncServiceSyncMap +type PreviewSyncServiceSyncMap struct { + AccountSid string `json:"account_sid,omitempty"` + CreatedBy string `json:"created_by,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Revision string `json:"revision,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/preview/model_preview_sync_service_sync_map_read_response.go b/rest/preview/model_preview_sync_service_sync_map_read_response.go new file mode 100644 index 000000000..4ce1fefe7 --- /dev/null +++ b/rest/preview/model_preview_sync_service_sync_map_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewSyncServiceSyncMapReadResponse struct for PreviewSyncServiceSyncMapReadResponse +type PreviewSyncServiceSyncMapReadResponse struct { + Maps []PreviewSyncServiceSyncMap `json:"maps,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/preview/model_preview_sync_service_sync_map_sync_map_item.go b/rest/preview/model_preview_sync_service_sync_map_sync_map_item.go new file mode 100644 index 000000000..588cd94d4 --- /dev/null +++ b/rest/preview/model_preview_sync_service_sync_map_sync_map_item.go @@ -0,0 +1,27 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// PreviewSyncServiceSyncMapSyncMapItem struct for PreviewSyncServiceSyncMapSyncMapItem +type PreviewSyncServiceSyncMapSyncMapItem struct { + AccountSid string `json:"account_sid,omitempty"` + CreatedBy string `json:"created_by,omitempty"` + Data map[string]interface{} `json:"data,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Key string `json:"key,omitempty"` + MapSid string `json:"map_sid,omitempty"` + Revision string `json:"revision,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/preview/model_preview_sync_service_sync_map_sync_map_item_read_response.go b/rest/preview/model_preview_sync_service_sync_map_sync_map_item_read_response.go new file mode 100644 index 000000000..de54d0dd6 --- /dev/null +++ b/rest/preview/model_preview_sync_service_sync_map_sync_map_item_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewSyncServiceSyncMapSyncMapItemReadResponse struct for PreviewSyncServiceSyncMapSyncMapItemReadResponse +type PreviewSyncServiceSyncMapSyncMapItemReadResponse struct { + Items []PreviewSyncServiceSyncMapSyncMapItem `json:"items,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/preview/model_preview_sync_service_sync_map_sync_map_permission.go b/rest/preview/model_preview_sync_service_sync_map_sync_map_permission.go new file mode 100644 index 000000000..74ec82ed0 --- /dev/null +++ b/rest/preview/model_preview_sync_service_sync_map_sync_map_permission.go @@ -0,0 +1,22 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewSyncServiceSyncMapSyncMapPermission struct for PreviewSyncServiceSyncMapSyncMapPermission +type PreviewSyncServiceSyncMapSyncMapPermission struct { + AccountSid string `json:"account_sid,omitempty"` + Identity string `json:"identity,omitempty"` + Manage bool `json:"manage,omitempty"` + MapSid string `json:"map_sid,omitempty"` + Read bool `json:"read,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Url string `json:"url,omitempty"` + Write bool `json:"write,omitempty"` +} diff --git a/rest/preview/model_preview_sync_service_sync_map_sync_map_permission_read_response.go b/rest/preview/model_preview_sync_service_sync_map_sync_map_permission_read_response.go new file mode 100644 index 000000000..925b0b69d --- /dev/null +++ b/rest/preview/model_preview_sync_service_sync_map_sync_map_permission_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewSyncServiceSyncMapSyncMapPermissionReadResponse struct for PreviewSyncServiceSyncMapSyncMapPermissionReadResponse +type PreviewSyncServiceSyncMapSyncMapPermissionReadResponse struct { + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` + Permissions []PreviewSyncServiceSyncMapSyncMapPermission `json:"permissions,omitempty"` +} diff --git a/rest/preview/model_preview_trusted_comms_branded_channel.go b/rest/preview/model_preview_trusted_comms_branded_channel.go new file mode 100644 index 000000000..ef019cac4 --- /dev/null +++ b/rest/preview/model_preview_trusted_comms_branded_channel.go @@ -0,0 +1,20 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewTrustedCommsBrandedChannel struct for PreviewTrustedCommsBrandedChannel +type PreviewTrustedCommsBrandedChannel struct { + AccountSid string `json:"account_sid,omitempty"` + BrandSid string `json:"brand_sid,omitempty"` + BusinessSid string `json:"business_sid,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/preview/model_preview_trusted_comms_branded_channel_channel.go b/rest/preview/model_preview_trusted_comms_branded_channel_channel.go new file mode 100644 index 000000000..5e82c4f19 --- /dev/null +++ b/rest/preview/model_preview_trusted_comms_branded_channel_channel.go @@ -0,0 +1,21 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewTrustedCommsBrandedChannelChannel struct for PreviewTrustedCommsBrandedChannelChannel +type PreviewTrustedCommsBrandedChannelChannel struct { + AccountSid string `json:"account_sid,omitempty"` + BrandSid string `json:"brand_sid,omitempty"` + BrandedChannelSid string `json:"branded_channel_sid,omitempty"` + BusinessSid string `json:"business_sid,omitempty"` + PhoneNumber string `json:"phone_number,omitempty"` + PhoneNumberSid string `json:"phone_number_sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/preview/model_preview_trusted_comms_brands_information.go b/rest/preview/model_preview_trusted_comms_brands_information.go new file mode 100644 index 000000000..9de1e9c83 --- /dev/null +++ b/rest/preview/model_preview_trusted_comms_brands_information.go @@ -0,0 +1,21 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// PreviewTrustedCommsBrandsInformation struct for PreviewTrustedCommsBrandsInformation +type PreviewTrustedCommsBrandsInformation struct { + FileLink string `json:"file_link,omitempty"` + FileLinkTtlInSeconds string `json:"file_link_ttl_in_seconds,omitempty"` + UpdateTime time.Time `json:"update_time,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/preview/model_preview_trusted_comms_cps.go b/rest/preview/model_preview_trusted_comms_cps.go new file mode 100644 index 000000000..2fe34b81a --- /dev/null +++ b/rest/preview/model_preview_trusted_comms_cps.go @@ -0,0 +1,17 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewTrustedCommsCps struct for PreviewTrustedCommsCps +type PreviewTrustedCommsCps struct { + CpsUrl string `json:"cps_url,omitempty"` + PhoneNumber string `json:"phone_number,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/preview/model_preview_trusted_comms_current_call.go b/rest/preview/model_preview_trusted_comms_current_call.go new file mode 100644 index 000000000..370ea1e7d --- /dev/null +++ b/rest/preview/model_preview_trusted_comms_current_call.go @@ -0,0 +1,31 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// PreviewTrustedCommsCurrentCall struct for PreviewTrustedCommsCurrentCall +type PreviewTrustedCommsCurrentCall struct { + BgColor string `json:"bg_color,omitempty"` + Caller string `json:"caller,omitempty"` + CreatedAt time.Time `json:"created_at,omitempty"` + FontColor string `json:"font_color,omitempty"` + From string `json:"from,omitempty"` + Logo string `json:"logo,omitempty"` + Manager string `json:"manager,omitempty"` + Reason string `json:"reason,omitempty"` + ShieldImg string `json:"shield_img,omitempty"` + Sid string `json:"sid,omitempty"` + Status string `json:"status,omitempty"` + To string `json:"to,omitempty"` + Url string `json:"url,omitempty"` + UseCase string `json:"use_case,omitempty"` +} diff --git a/rest/preview/model_preview_understand_assistant.go b/rest/preview/model_preview_understand_assistant.go new file mode 100644 index 000000000..6e5e39968 --- /dev/null +++ b/rest/preview/model_preview_understand_assistant.go @@ -0,0 +1,29 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// PreviewUnderstandAssistant struct for PreviewUnderstandAssistant +type PreviewUnderstandAssistant struct { + AccountSid string `json:"account_sid,omitempty"` + CallbackEvents string `json:"callback_events,omitempty"` + CallbackUrl string `json:"callback_url,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + LatestModelBuildSid string `json:"latest_model_build_sid,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + LogQueries bool `json:"log_queries,omitempty"` + Sid string `json:"sid,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/preview/model_preview_understand_assistant_assistant_fallback_actions.go b/rest/preview/model_preview_understand_assistant_assistant_fallback_actions.go new file mode 100644 index 000000000..998dac949 --- /dev/null +++ b/rest/preview/model_preview_understand_assistant_assistant_fallback_actions.go @@ -0,0 +1,18 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewUnderstandAssistantAssistantFallbackActions struct for PreviewUnderstandAssistantAssistantFallbackActions +type PreviewUnderstandAssistantAssistantFallbackActions struct { + AccountSid string `json:"account_sid,omitempty"` + AssistantSid string `json:"assistant_sid,omitempty"` + Data map[string]interface{} `json:"data,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/preview/model_preview_understand_assistant_assistant_initiation_actions.go b/rest/preview/model_preview_understand_assistant_assistant_initiation_actions.go new file mode 100644 index 000000000..c06df30d8 --- /dev/null +++ b/rest/preview/model_preview_understand_assistant_assistant_initiation_actions.go @@ -0,0 +1,18 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewUnderstandAssistantAssistantInitiationActions struct for PreviewUnderstandAssistantAssistantInitiationActions +type PreviewUnderstandAssistantAssistantInitiationActions struct { + AccountSid string `json:"account_sid,omitempty"` + AssistantSid string `json:"assistant_sid,omitempty"` + Data map[string]interface{} `json:"data,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/preview/model_preview_understand_assistant_dialogue.go b/rest/preview/model_preview_understand_assistant_dialogue.go new file mode 100644 index 000000000..a7753a777 --- /dev/null +++ b/rest/preview/model_preview_understand_assistant_dialogue.go @@ -0,0 +1,19 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewUnderstandAssistantDialogue struct for PreviewUnderstandAssistantDialogue +type PreviewUnderstandAssistantDialogue struct { + AccountSid string `json:"account_sid,omitempty"` + AssistantSid string `json:"assistant_sid,omitempty"` + Data map[string]interface{} `json:"data,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/preview/model_preview_understand_assistant_field_type.go b/rest/preview/model_preview_understand_assistant_field_type.go new file mode 100644 index 000000000..0b5513051 --- /dev/null +++ b/rest/preview/model_preview_understand_assistant_field_type.go @@ -0,0 +1,26 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// PreviewUnderstandAssistantFieldType struct for PreviewUnderstandAssistantFieldType +type PreviewUnderstandAssistantFieldType struct { + AccountSid string `json:"account_sid,omitempty"` + AssistantSid string `json:"assistant_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Sid string `json:"sid,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/preview/model_preview_understand_assistant_field_type_field_value.go b/rest/preview/model_preview_understand_assistant_field_type_field_value.go new file mode 100644 index 000000000..cfa06943d --- /dev/null +++ b/rest/preview/model_preview_understand_assistant_field_type_field_value.go @@ -0,0 +1,27 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// PreviewUnderstandAssistantFieldTypeFieldValue struct for PreviewUnderstandAssistantFieldTypeFieldValue +type PreviewUnderstandAssistantFieldTypeFieldValue struct { + AccountSid string `json:"account_sid,omitempty"` + AssistantSid string `json:"assistant_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FieldTypeSid string `json:"field_type_sid,omitempty"` + Language string `json:"language,omitempty"` + Sid string `json:"sid,omitempty"` + SynonymOf string `json:"synonym_of,omitempty"` + Url string `json:"url,omitempty"` + Value string `json:"value,omitempty"` +} diff --git a/rest/preview/model_preview_understand_assistant_field_type_field_value_read_response.go b/rest/preview/model_preview_understand_assistant_field_type_field_value_read_response.go new file mode 100644 index 000000000..f492ba4b9 --- /dev/null +++ b/rest/preview/model_preview_understand_assistant_field_type_field_value_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewUnderstandAssistantFieldTypeFieldValueReadResponse struct for PreviewUnderstandAssistantFieldTypeFieldValueReadResponse +type PreviewUnderstandAssistantFieldTypeFieldValueReadResponse struct { + FieldValues []PreviewUnderstandAssistantFieldTypeFieldValue `json:"field_values,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/preview/model_preview_understand_assistant_field_type_read_response.go b/rest/preview/model_preview_understand_assistant_field_type_read_response.go new file mode 100644 index 000000000..64d2c83ff --- /dev/null +++ b/rest/preview/model_preview_understand_assistant_field_type_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewUnderstandAssistantFieldTypeReadResponse struct for PreviewUnderstandAssistantFieldTypeReadResponse +type PreviewUnderstandAssistantFieldTypeReadResponse struct { + FieldTypes []PreviewUnderstandAssistantFieldType `json:"field_types,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/preview/model_preview_understand_assistant_model_build.go b/rest/preview/model_preview_understand_assistant_model_build.go new file mode 100644 index 000000000..45d429fd8 --- /dev/null +++ b/rest/preview/model_preview_understand_assistant_model_build.go @@ -0,0 +1,27 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// PreviewUnderstandAssistantModelBuild struct for PreviewUnderstandAssistantModelBuild +type PreviewUnderstandAssistantModelBuild struct { + AccountSid string `json:"account_sid,omitempty"` + AssistantSid string `json:"assistant_sid,omitempty"` + BuildDuration *int32 `json:"build_duration,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + ErrorCode *int32 `json:"error_code,omitempty"` + Sid string `json:"sid,omitempty"` + Status string `json:"status,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/preview/model_preview_understand_assistant_model_build_read_response.go b/rest/preview/model_preview_understand_assistant_model_build_read_response.go new file mode 100644 index 000000000..b0a64617a --- /dev/null +++ b/rest/preview/model_preview_understand_assistant_model_build_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewUnderstandAssistantModelBuildReadResponse struct for PreviewUnderstandAssistantModelBuildReadResponse +type PreviewUnderstandAssistantModelBuildReadResponse struct { + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` + ModelBuilds []PreviewUnderstandAssistantModelBuild `json:"model_builds,omitempty"` +} diff --git a/rest/preview/model_preview_understand_assistant_query.go b/rest/preview/model_preview_understand_assistant_query.go new file mode 100644 index 000000000..ee669ae1d --- /dev/null +++ b/rest/preview/model_preview_understand_assistant_query.go @@ -0,0 +1,30 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// PreviewUnderstandAssistantQuery struct for PreviewUnderstandAssistantQuery +type PreviewUnderstandAssistantQuery struct { + AccountSid string `json:"account_sid,omitempty"` + AssistantSid string `json:"assistant_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Language string `json:"language,omitempty"` + ModelBuildSid string `json:"model_build_sid,omitempty"` + Query string `json:"query,omitempty"` + Results map[string]interface{} `json:"results,omitempty"` + SampleSid string `json:"sample_sid,omitempty"` + Sid string `json:"sid,omitempty"` + SourceChannel string `json:"source_channel,omitempty"` + Status string `json:"status,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/preview/model_preview_understand_assistant_query_read_response.go b/rest/preview/model_preview_understand_assistant_query_read_response.go new file mode 100644 index 000000000..38edb1d6d --- /dev/null +++ b/rest/preview/model_preview_understand_assistant_query_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewUnderstandAssistantQueryReadResponse struct for PreviewUnderstandAssistantQueryReadResponse +type PreviewUnderstandAssistantQueryReadResponse struct { + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` + Queries []PreviewUnderstandAssistantQuery `json:"queries,omitempty"` +} diff --git a/rest/preview/model_preview_understand_assistant_read_response.go b/rest/preview/model_preview_understand_assistant_read_response.go new file mode 100644 index 000000000..753f965bf --- /dev/null +++ b/rest/preview/model_preview_understand_assistant_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewUnderstandAssistantReadResponse struct for PreviewUnderstandAssistantReadResponse +type PreviewUnderstandAssistantReadResponse struct { + Assistants []PreviewUnderstandAssistant `json:"assistants,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/preview/model_preview_understand_assistant_style_sheet.go b/rest/preview/model_preview_understand_assistant_style_sheet.go new file mode 100644 index 000000000..87822080f --- /dev/null +++ b/rest/preview/model_preview_understand_assistant_style_sheet.go @@ -0,0 +1,18 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewUnderstandAssistantStyleSheet struct for PreviewUnderstandAssistantStyleSheet +type PreviewUnderstandAssistantStyleSheet struct { + AccountSid string `json:"account_sid,omitempty"` + AssistantSid string `json:"assistant_sid,omitempty"` + Data map[string]interface{} `json:"data,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/preview/model_preview_understand_assistant_task.go b/rest/preview/model_preview_understand_assistant_task.go new file mode 100644 index 000000000..271d5c40a --- /dev/null +++ b/rest/preview/model_preview_understand_assistant_task.go @@ -0,0 +1,27 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// PreviewUnderstandAssistantTask struct for PreviewUnderstandAssistantTask +type PreviewUnderstandAssistantTask struct { + AccountSid string `json:"account_sid,omitempty"` + ActionsUrl string `json:"actions_url,omitempty"` + AssistantSid string `json:"assistant_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Sid string `json:"sid,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/preview/model_preview_understand_assistant_task_field.go b/rest/preview/model_preview_understand_assistant_task_field.go new file mode 100644 index 000000000..351ad15df --- /dev/null +++ b/rest/preview/model_preview_understand_assistant_task_field.go @@ -0,0 +1,26 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// PreviewUnderstandAssistantTaskField struct for PreviewUnderstandAssistantTaskField +type PreviewUnderstandAssistantTaskField struct { + AccountSid string `json:"account_sid,omitempty"` + AssistantSid string `json:"assistant_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FieldType string `json:"field_type,omitempty"` + Sid string `json:"sid,omitempty"` + TaskSid string `json:"task_sid,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/preview/model_preview_understand_assistant_task_field_read_response.go b/rest/preview/model_preview_understand_assistant_task_field_read_response.go new file mode 100644 index 000000000..3832a6980 --- /dev/null +++ b/rest/preview/model_preview_understand_assistant_task_field_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewUnderstandAssistantTaskFieldReadResponse struct for PreviewUnderstandAssistantTaskFieldReadResponse +type PreviewUnderstandAssistantTaskFieldReadResponse struct { + Fields []PreviewUnderstandAssistantTaskField `json:"fields,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/preview/model_preview_understand_assistant_task_read_response.go b/rest/preview/model_preview_understand_assistant_task_read_response.go new file mode 100644 index 000000000..95137aabd --- /dev/null +++ b/rest/preview/model_preview_understand_assistant_task_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewUnderstandAssistantTaskReadResponse struct for PreviewUnderstandAssistantTaskReadResponse +type PreviewUnderstandAssistantTaskReadResponse struct { + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` + Tasks []PreviewUnderstandAssistantTask `json:"tasks,omitempty"` +} diff --git a/rest/preview/model_preview_understand_assistant_task_sample.go b/rest/preview/model_preview_understand_assistant_task_sample.go new file mode 100644 index 000000000..66acca740 --- /dev/null +++ b/rest/preview/model_preview_understand_assistant_task_sample.go @@ -0,0 +1,27 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// PreviewUnderstandAssistantTaskSample struct for PreviewUnderstandAssistantTaskSample +type PreviewUnderstandAssistantTaskSample struct { + AccountSid string `json:"account_sid,omitempty"` + AssistantSid string `json:"assistant_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Language string `json:"language,omitempty"` + Sid string `json:"sid,omitempty"` + SourceChannel string `json:"source_channel,omitempty"` + TaggedText string `json:"tagged_text,omitempty"` + TaskSid string `json:"task_sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/preview/model_preview_understand_assistant_task_sample_read_response.go b/rest/preview/model_preview_understand_assistant_task_sample_read_response.go new file mode 100644 index 000000000..232c9d016 --- /dev/null +++ b/rest/preview/model_preview_understand_assistant_task_sample_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewUnderstandAssistantTaskSampleReadResponse struct for PreviewUnderstandAssistantTaskSampleReadResponse +type PreviewUnderstandAssistantTaskSampleReadResponse struct { + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` + Samples []PreviewUnderstandAssistantTaskSample `json:"samples,omitempty"` +} diff --git a/rest/preview/model_preview_understand_assistant_task_task_actions.go b/rest/preview/model_preview_understand_assistant_task_task_actions.go new file mode 100644 index 000000000..0249adde3 --- /dev/null +++ b/rest/preview/model_preview_understand_assistant_task_task_actions.go @@ -0,0 +1,19 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewUnderstandAssistantTaskTaskActions struct for PreviewUnderstandAssistantTaskTaskActions +type PreviewUnderstandAssistantTaskTaskActions struct { + AccountSid string `json:"account_sid,omitempty"` + AssistantSid string `json:"assistant_sid,omitempty"` + Data map[string]interface{} `json:"data,omitempty"` + TaskSid string `json:"task_sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/preview/model_preview_understand_assistant_task_task_statistics.go b/rest/preview/model_preview_understand_assistant_task_task_statistics.go new file mode 100644 index 000000000..9eaca5c88 --- /dev/null +++ b/rest/preview/model_preview_understand_assistant_task_task_statistics.go @@ -0,0 +1,20 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewUnderstandAssistantTaskTaskStatistics struct for PreviewUnderstandAssistantTaskTaskStatistics +type PreviewUnderstandAssistantTaskTaskStatistics struct { + AccountSid string `json:"account_sid,omitempty"` + AssistantSid string `json:"assistant_sid,omitempty"` + FieldsCount int32 `json:"fields_count,omitempty"` + SamplesCount int32 `json:"samples_count,omitempty"` + TaskSid string `json:"task_sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/preview/model_preview_wireless_command.go b/rest/preview/model_preview_wireless_command.go new file mode 100644 index 000000000..4eaae68d5 --- /dev/null +++ b/rest/preview/model_preview_wireless_command.go @@ -0,0 +1,28 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// PreviewWirelessCommand struct for PreviewWirelessCommand +type PreviewWirelessCommand struct { + AccountSid string `json:"account_sid,omitempty"` + Command string `json:"command,omitempty"` + CommandMode string `json:"command_mode,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + DeviceSid string `json:"device_sid,omitempty"` + Direction string `json:"direction,omitempty"` + Sid string `json:"sid,omitempty"` + SimSid string `json:"sim_sid,omitempty"` + Status string `json:"status,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/preview/model_preview_wireless_command_read_response.go b/rest/preview/model_preview_wireless_command_read_response.go new file mode 100644 index 000000000..6dc634221 --- /dev/null +++ b/rest/preview/model_preview_wireless_command_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewWirelessCommandReadResponse struct for PreviewWirelessCommandReadResponse +type PreviewWirelessCommandReadResponse struct { + Commands []PreviewWirelessCommand `json:"commands,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/preview/model_preview_wireless_rate_plan.go b/rest/preview/model_preview_wireless_rate_plan.go new file mode 100644 index 000000000..69eb1921b --- /dev/null +++ b/rest/preview/model_preview_wireless_rate_plan.go @@ -0,0 +1,31 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// PreviewWirelessRatePlan struct for PreviewWirelessRatePlan +type PreviewWirelessRatePlan struct { + AccountSid string `json:"account_sid,omitempty"` + DataEnabled bool `json:"data_enabled,omitempty"` + DataLimit int32 `json:"data_limit,omitempty"` + DataMetering string `json:"data_metering,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + InternationalRoaming []string `json:"international_roaming,omitempty"` + MessagingEnabled bool `json:"messaging_enabled,omitempty"` + NationalRoamingEnabled bool `json:"national_roaming_enabled,omitempty"` + Sid string `json:"sid,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` + VoiceEnabled bool `json:"voice_enabled,omitempty"` +} diff --git a/rest/preview/model_preview_wireless_rate_plan_read_response.go b/rest/preview/model_preview_wireless_rate_plan_read_response.go new file mode 100644 index 000000000..724442548 --- /dev/null +++ b/rest/preview/model_preview_wireless_rate_plan_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewWirelessRatePlanReadResponse struct for PreviewWirelessRatePlanReadResponse +type PreviewWirelessRatePlanReadResponse struct { + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` + RatePlans []PreviewWirelessRatePlan `json:"rate_plans,omitempty"` +} diff --git a/rest/preview/model_preview_wireless_sim.go b/rest/preview/model_preview_wireless_sim.go new file mode 100644 index 000000000..6240ba0f1 --- /dev/null +++ b/rest/preview/model_preview_wireless_sim.go @@ -0,0 +1,39 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// PreviewWirelessSim struct for PreviewWirelessSim +type PreviewWirelessSim struct { + AccountSid string `json:"account_sid,omitempty"` + CommandsCallbackMethod string `json:"commands_callback_method,omitempty"` + CommandsCallbackUrl string `json:"commands_callback_url,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + EId string `json:"e_id,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Iccid string `json:"iccid,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + RatePlanSid string `json:"rate_plan_sid,omitempty"` + Sid string `json:"sid,omitempty"` + SmsFallbackMethod string `json:"sms_fallback_method,omitempty"` + SmsFallbackUrl string `json:"sms_fallback_url,omitempty"` + SmsMethod string `json:"sms_method,omitempty"` + SmsUrl string `json:"sms_url,omitempty"` + Status string `json:"status,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` + VoiceFallbackMethod string `json:"voice_fallback_method,omitempty"` + VoiceFallbackUrl string `json:"voice_fallback_url,omitempty"` + VoiceMethod string `json:"voice_method,omitempty"` + VoiceUrl string `json:"voice_url,omitempty"` +} diff --git a/rest/preview/model_preview_wireless_sim_read_response.go b/rest/preview/model_preview_wireless_sim_read_response.go new file mode 100644 index 000000000..f6dd5ddee --- /dev/null +++ b/rest/preview/model_preview_wireless_sim_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewWirelessSimReadResponse struct for PreviewWirelessSimReadResponse +type PreviewWirelessSimReadResponse struct { + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` + Sims []PreviewWirelessSim `json:"sims,omitempty"` +} diff --git a/rest/preview/model_preview_wireless_sim_usage.go b/rest/preview/model_preview_wireless_sim_usage.go new file mode 100644 index 000000000..3b4acd19d --- /dev/null +++ b/rest/preview/model_preview_wireless_sim_usage.go @@ -0,0 +1,23 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PreviewWirelessSimUsage struct for PreviewWirelessSimUsage +type PreviewWirelessSimUsage struct { + AccountSid string `json:"account_sid,omitempty"` + CommandsCosts map[string]interface{} `json:"commands_costs,omitempty"` + CommandsUsage map[string]interface{} `json:"commands_usage,omitempty"` + DataCosts map[string]interface{} `json:"data_costs,omitempty"` + DataUsage map[string]interface{} `json:"data_usage,omitempty"` + Period map[string]interface{} `json:"period,omitempty"` + SimSid string `json:"sim_sid,omitempty"` + SimUniqueName string `json:"sim_unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/preview/model_update_assistant_fallback_actions_request.go b/rest/preview/model_update_assistant_fallback_actions_request.go new file mode 100644 index 000000000..74b8093f6 --- /dev/null +++ b/rest/preview/model_update_assistant_fallback_actions_request.go @@ -0,0 +1,15 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateAssistantFallbackActionsRequest struct for UpdateAssistantFallbackActionsRequest +type UpdateAssistantFallbackActionsRequest struct { + FallbackActions map[string]interface{} `json:"FallbackActions,omitempty"` +} diff --git a/rest/preview/model_update_assistant_initiation_actions_request.go b/rest/preview/model_update_assistant_initiation_actions_request.go new file mode 100644 index 000000000..2ecc7aacd --- /dev/null +++ b/rest/preview/model_update_assistant_initiation_actions_request.go @@ -0,0 +1,15 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateAssistantInitiationActionsRequest struct for UpdateAssistantInitiationActionsRequest +type UpdateAssistantInitiationActionsRequest struct { + InitiationActions map[string]interface{} `json:"InitiationActions,omitempty"` +} diff --git a/rest/preview/model_update_assistant_request.go b/rest/preview/model_update_assistant_request.go new file mode 100644 index 000000000..d60fe31fe --- /dev/null +++ b/rest/preview/model_update_assistant_request.go @@ -0,0 +1,30 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateAssistantRequest struct for UpdateAssistantRequest +type UpdateAssistantRequest struct { + // Space-separated list of callback events that will trigger callbacks. + CallbackEvents string `json:"CallbackEvents,omitempty"` + // A user-provided URL to send event callbacks to. + CallbackUrl string `json:"CallbackUrl,omitempty"` + // The JSON actions to be executed when the user's input is not recognized as matching any Task. + FallbackActions map[string]interface{} `json:"FallbackActions,omitempty"` + // A text description for the Assistant. It is non-unique and can up to 255 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // The JSON actions to be executed on inbound phone calls when the Assistant has to say something first. + InitiationActions map[string]interface{} `json:"InitiationActions,omitempty"` + // A boolean that specifies whether queries should be logged for 30 days further training. If false, no queries will be stored, if true, queries will be stored for 30 days and deleted thereafter. Defaults to true if no value is provided. + LogQueries bool `json:"LogQueries,omitempty"` + // The JSON object that holds the style sheet for the assistant + StyleSheet map[string]interface{} `json:"StyleSheet,omitempty"` + // A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/preview/model_update_authorization_document_request.go b/rest/preview/model_update_authorization_document_request.go new file mode 100644 index 000000000..2832dd83d --- /dev/null +++ b/rest/preview/model_update_authorization_document_request.go @@ -0,0 +1,28 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateAuthorizationDocumentRequest struct for UpdateAuthorizationDocumentRequest +type UpdateAuthorizationDocumentRequest struct { + // A 34 character string that uniquely identifies the Address resource that is associated with this AuthorizationDocument. + AddressSid string `json:"AddressSid,omitempty"` + // Email recipients who will be informed when an Authorization Document has been sent and signed + CcEmails []string `json:"CcEmails,omitempty"` + // The contact phone number of the person authorized to sign the Authorization Document. + ContactPhoneNumber string `json:"ContactPhoneNumber,omitempty"` + // The title of the person authorized to sign the Authorization Document for this phone number. + ContactTitle string `json:"ContactTitle,omitempty"` + // Email that this AuthorizationDocument will be sent to for signing. + Email string `json:"Email,omitempty"` + // A list of HostedNumberOrder sids that this AuthorizationDocument will authorize for hosting phone number capabilities on Twilio's platform. + HostedNumberOrderSids []string `json:"HostedNumberOrderSids,omitempty"` + // Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/api/phone-numbers/hosted-number-authorization-documents#status-values) for more information on each of these statuses. + Status string `json:"Status,omitempty"` +} diff --git a/rest/preview/model_update_certificate_request.go b/rest/preview/model_update_certificate_request.go new file mode 100644 index 000000000..35fdc31ef --- /dev/null +++ b/rest/preview/model_update_certificate_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateCertificateRequest struct for UpdateCertificateRequest +type UpdateCertificateRequest struct { + // Provides the unique string identifier of an existing Device to become authenticated with this Certificate credential. + DeviceSid string `json:"DeviceSid,omitempty"` + // Provides a human readable descriptive text for this Certificate credential, up to 256 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` +} diff --git a/rest/preview/model_update_deployment_request.go b/rest/preview/model_update_deployment_request.go new file mode 100644 index 000000000..9c1c90e3b --- /dev/null +++ b/rest/preview/model_update_deployment_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateDeploymentRequest struct for UpdateDeploymentRequest +type UpdateDeploymentRequest struct { + // Provides a human readable descriptive text for this Deployment, up to 64 characters long + FriendlyName string `json:"FriendlyName,omitempty"` + // Provides the unique string identifier of the Twilio Sync service instance that will be linked to and accessible by this Deployment. + SyncServiceSid string `json:"SyncServiceSid,omitempty"` +} diff --git a/rest/preview/model_update_device_request.go b/rest/preview/model_update_device_request.go new file mode 100644 index 000000000..9ced9447c --- /dev/null +++ b/rest/preview/model_update_device_request.go @@ -0,0 +1,21 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateDeviceRequest struct for UpdateDeviceRequest +type UpdateDeviceRequest struct { + // Specifies the unique string identifier of the Deployment group that this Device is going to be associated with. + DeploymentSid string `json:"DeploymentSid,omitempty"` + Enabled bool `json:"Enabled,omitempty"` + // Provides a human readable descriptive text to be assigned to this Device, up to 256 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // Provides an arbitrary string identifier representing a human user to be associated with this Device, up to 256 characters long. + Identity string `json:"Identity,omitempty"` +} diff --git a/rest/preview/model_update_document_permission_request.go b/rest/preview/model_update_document_permission_request.go new file mode 100644 index 000000000..1a203ca90 --- /dev/null +++ b/rest/preview/model_update_document_permission_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateDocumentPermissionRequest struct for UpdateDocumentPermissionRequest +type UpdateDocumentPermissionRequest struct { + // Boolean flag specifying whether the identity can delete the Sync Document. + Manage bool `json:"Manage"` + // Boolean flag specifying whether the identity can read the Sync Document. + Read bool `json:"Read"` + // Boolean flag specifying whether the identity can update the Sync Document. + Write bool `json:"Write"` +} diff --git a/rest/preview/model_update_document_request.go b/rest/preview/model_update_document_request.go new file mode 100644 index 000000000..850ae272d --- /dev/null +++ b/rest/preview/model_update_document_request.go @@ -0,0 +1,15 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateDocumentRequest struct for UpdateDocumentRequest +type UpdateDocumentRequest struct { + Data map[string]interface{} `json:"Data"` +} diff --git a/rest/preview/model_update_export_configuration_request.go b/rest/preview/model_update_export_configuration_request.go new file mode 100644 index 000000000..82084c364 --- /dev/null +++ b/rest/preview/model_update_export_configuration_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateExportConfigurationRequest struct for UpdateExportConfigurationRequest +type UpdateExportConfigurationRequest struct { + // If true, Twilio will automatically generate every day's file when the day is over. + Enabled bool `json:"Enabled,omitempty"` + // Sets whether Twilio should call a webhook URL when the automatic generation is complete, using GET or POST. The actual destination is set in the webhook_url + WebhookMethod string `json:"WebhookMethod,omitempty"` + // Stores the URL destination for the method specified in webhook_method. + WebhookUrl string `json:"WebhookUrl,omitempty"` +} diff --git a/rest/preview/model_update_field_type_request.go b/rest/preview/model_update_field_type_request.go new file mode 100644 index 000000000..c63393295 --- /dev/null +++ b/rest/preview/model_update_field_type_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateFieldTypeRequest struct for UpdateFieldTypeRequest +type UpdateFieldTypeRequest struct { + // A user-provided string that identifies this resource. It is non-unique and can up to 255 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/preview/model_update_fleet_request.go b/rest/preview/model_update_fleet_request.go new file mode 100644 index 000000000..c1d3c57bc --- /dev/null +++ b/rest/preview/model_update_fleet_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateFleetRequest struct for UpdateFleetRequest +type UpdateFleetRequest struct { + // Provides a string identifier of a Deployment that is going to be used as a default one for this Fleet. + DefaultDeploymentSid string `json:"DefaultDeploymentSid,omitempty"` + // Provides a human readable descriptive text for this Fleet, up to 256 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` +} diff --git a/rest/preview/model_update_hosted_number_order_request.go b/rest/preview/model_update_hosted_number_order_request.go new file mode 100644 index 000000000..c6cf39073 --- /dev/null +++ b/rest/preview/model_update_hosted_number_order_request.go @@ -0,0 +1,34 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateHostedNumberOrderRequest struct for UpdateHostedNumberOrderRequest +type UpdateHostedNumberOrderRequest struct { + // The number of seconds, between 0 and 60, to delay before initiating the verification call. Defaults to 0. + CallDelay int32 `json:"CallDelay,omitempty"` + // Optional. A list of emails that LOA document for this HostedNumberOrder will be carbon copied to. + CcEmails []string `json:"CcEmails,omitempty"` + // Email of the owner of this phone number that is being hosted. + Email string `json:"Email,omitempty"` + // Digits to dial after connecting the verification call. + Extension string `json:"Extension,omitempty"` + // A 64 character string that is a human readable text that describes this resource. + FriendlyName string `json:"FriendlyName,omitempty"` + // User can only post to `pending-verification` status to transition the HostedNumberOrder to initiate a verification call or verification of ownership with a copy of a phone bill. + Status string `json:"Status,omitempty"` + // Provides a unique and addressable name to be assigned to this HostedNumberOrder, assigned by the developer, to be optionally used in addition to SID. + UniqueName string `json:"UniqueName,omitempty"` + // A verification code that is given to the user via a phone call to the phone number that is being hosted. + VerificationCode string `json:"VerificationCode,omitempty"` + // Optional. The unique sid identifier of the Identity Document that represents the document for verifying ownership of the number to be hosted. Required when VerificationType is phone-bill. + VerificationDocumentSid string `json:"VerificationDocumentSid,omitempty"` + // Optional. The method used for verifying ownership of the number to be hosted. One of phone-call (default) or phone-bill. + VerificationType string `json:"VerificationType,omitempty"` +} diff --git a/rest/preview/model_update_installed_add_on_extension_request.go b/rest/preview/model_update_installed_add_on_extension_request.go new file mode 100644 index 000000000..7ba7c8dea --- /dev/null +++ b/rest/preview/model_update_installed_add_on_extension_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateInstalledAddOnExtensionRequest struct for UpdateInstalledAddOnExtensionRequest +type UpdateInstalledAddOnExtensionRequest struct { + // Whether the Extension should be invoked. + Enabled bool `json:"Enabled"` +} diff --git a/rest/preview/model_update_installed_add_on_request.go b/rest/preview/model_update_installed_add_on_request.go new file mode 100644 index 000000000..e7456dee0 --- /dev/null +++ b/rest/preview/model_update_installed_add_on_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateInstalledAddOnRequest struct for UpdateInstalledAddOnRequest +type UpdateInstalledAddOnRequest struct { + // Valid JSON object that conform to the configuration schema exposed by the associated AvailableAddOn resource. This is only required by Add-ons that need to be configured + Configuration map[string]interface{} `json:"Configuration,omitempty"` + // An application-defined string that uniquely identifies the resource. This value must be unique within the Account. + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/preview/model_update_key_request.go b/rest/preview/model_update_key_request.go new file mode 100644 index 000000000..f83cd6828 --- /dev/null +++ b/rest/preview/model_update_key_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateKeyRequest struct for UpdateKeyRequest +type UpdateKeyRequest struct { + // Provides the unique string identifier of an existing Device to become authenticated with this Key credential. + DeviceSid string `json:"DeviceSid,omitempty"` + // Provides a human readable descriptive text for this Key credential, up to 256 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` +} diff --git a/rest/preview/model_update_model_build_request.go b/rest/preview/model_update_model_build_request.go new file mode 100644 index 000000000..64e0fce17 --- /dev/null +++ b/rest/preview/model_update_model_build_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateModelBuildRequest struct for UpdateModelBuildRequest +type UpdateModelBuildRequest struct { + // A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. For example: v0.1 + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/preview/model_update_query_request.go b/rest/preview/model_update_query_request.go new file mode 100644 index 000000000..39af56ab4 --- /dev/null +++ b/rest/preview/model_update_query_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateQueryRequest struct for UpdateQueryRequest +type UpdateQueryRequest struct { + // An optional reference to the Sample created from this query. + SampleSid string `json:"SampleSid,omitempty"` + // A string that described the query status. The values can be: pending_review, reviewed, discarded + Status string `json:"Status,omitempty"` +} diff --git a/rest/preview/model_update_rate_plan_request.go b/rest/preview/model_update_rate_plan_request.go new file mode 100644 index 000000000..a26574cf8 --- /dev/null +++ b/rest/preview/model_update_rate_plan_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateRatePlanRequest struct for UpdateRatePlanRequest +type UpdateRatePlanRequest struct { + FriendlyName string `json:"FriendlyName,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/preview/model_update_sample_request.go b/rest/preview/model_update_sample_request.go new file mode 100644 index 000000000..2c470b4ff --- /dev/null +++ b/rest/preview/model_update_sample_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateSampleRequest struct for UpdateSampleRequest +type UpdateSampleRequest struct { + // An ISO language-country string of the sample. + Language string `json:"Language,omitempty"` + // The communication channel the sample was captured. It can be: *voice*, *sms*, *chat*, *alexa*, *google-assistant*, or *slack*. If not included the value will be null + SourceChannel string `json:"SourceChannel,omitempty"` + // The text example of how end-users may express this task. The sample may contain Field tag blocks. + TaggedText string `json:"TaggedText,omitempty"` +} diff --git a/rest/preview/model_update_service_request.go b/rest/preview/model_update_service_request.go new file mode 100644 index 000000000..e3ec60287 --- /dev/null +++ b/rest/preview/model_update_service_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateServiceRequest struct for UpdateServiceRequest +type UpdateServiceRequest struct { + AclEnabled bool `json:"AclEnabled,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + ReachabilityWebhooksEnabled bool `json:"ReachabilityWebhooksEnabled,omitempty"` + WebhookUrl string `json:"WebhookUrl,omitempty"` +} diff --git a/rest/preview/model_update_sim_request.go b/rest/preview/model_update_sim_request.go new file mode 100644 index 000000000..840fcc22c --- /dev/null +++ b/rest/preview/model_update_sim_request.go @@ -0,0 +1,30 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateSimRequest struct for UpdateSimRequest +type UpdateSimRequest struct { + CallbackMethod string `json:"CallbackMethod,omitempty"` + CallbackUrl string `json:"CallbackUrl,omitempty"` + CommandsCallbackMethod string `json:"CommandsCallbackMethod,omitempty"` + CommandsCallbackUrl string `json:"CommandsCallbackUrl,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + RatePlan string `json:"RatePlan,omitempty"` + SmsFallbackMethod string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl string `json:"SmsFallbackUrl,omitempty"` + SmsMethod string `json:"SmsMethod,omitempty"` + SmsUrl string `json:"SmsUrl,omitempty"` + Status string `json:"Status,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + VoiceFallbackMethod string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod string `json:"VoiceMethod,omitempty"` + VoiceUrl string `json:"VoiceUrl,omitempty"` +} diff --git a/rest/preview/model_update_style_sheet_request.go b/rest/preview/model_update_style_sheet_request.go new file mode 100644 index 000000000..f10aaaeb4 --- /dev/null +++ b/rest/preview/model_update_style_sheet_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateStyleSheetRequest struct for UpdateStyleSheetRequest +type UpdateStyleSheetRequest struct { + // The JSON Style sheet string + StyleSheet map[string]interface{} `json:"StyleSheet,omitempty"` +} diff --git a/rest/preview/model_update_sync_list_item_request.go b/rest/preview/model_update_sync_list_item_request.go new file mode 100644 index 000000000..2124d88da --- /dev/null +++ b/rest/preview/model_update_sync_list_item_request.go @@ -0,0 +1,15 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateSyncListItemRequest struct for UpdateSyncListItemRequest +type UpdateSyncListItemRequest struct { + Data map[string]interface{} `json:"Data"` +} diff --git a/rest/preview/model_update_sync_list_permission_request.go b/rest/preview/model_update_sync_list_permission_request.go new file mode 100644 index 000000000..ec5ce985b --- /dev/null +++ b/rest/preview/model_update_sync_list_permission_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateSyncListPermissionRequest struct for UpdateSyncListPermissionRequest +type UpdateSyncListPermissionRequest struct { + // Boolean flag specifying whether the identity can delete the Sync List. + Manage bool `json:"Manage"` + // Boolean flag specifying whether the identity can read the Sync List. + Read bool `json:"Read"` + // Boolean flag specifying whether the identity can create, update and delete Items of the Sync List. + Write bool `json:"Write"` +} diff --git a/rest/preview/model_update_sync_map_item_request.go b/rest/preview/model_update_sync_map_item_request.go new file mode 100644 index 000000000..6c8964f4b --- /dev/null +++ b/rest/preview/model_update_sync_map_item_request.go @@ -0,0 +1,15 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateSyncMapItemRequest struct for UpdateSyncMapItemRequest +type UpdateSyncMapItemRequest struct { + Data map[string]interface{} `json:"Data"` +} diff --git a/rest/preview/model_update_sync_map_permission_request.go b/rest/preview/model_update_sync_map_permission_request.go new file mode 100644 index 000000000..2225a8f50 --- /dev/null +++ b/rest/preview/model_update_sync_map_permission_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateSyncMapPermissionRequest struct for UpdateSyncMapPermissionRequest +type UpdateSyncMapPermissionRequest struct { + // Boolean flag specifying whether the identity can delete the Sync Map. + Manage bool `json:"Manage"` + // Boolean flag specifying whether the identity can read the Sync Map. + Read bool `json:"Read"` + // Boolean flag specifying whether the identity can create, update and delete Items of the Sync Map. + Write bool `json:"Write"` +} diff --git a/rest/preview/model_update_task_actions_request.go b/rest/preview/model_update_task_actions_request.go new file mode 100644 index 000000000..1f4e69ac4 --- /dev/null +++ b/rest/preview/model_update_task_actions_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateTaskActionsRequest struct for UpdateTaskActionsRequest +type UpdateTaskActionsRequest struct { + // The JSON actions that instruct the Assistant how to perform this task. + Actions map[string]interface{} `json:"Actions,omitempty"` +} diff --git a/rest/preview/model_update_task_request.go b/rest/preview/model_update_task_request.go new file mode 100644 index 000000000..d06075514 --- /dev/null +++ b/rest/preview/model_update_task_request.go @@ -0,0 +1,22 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateTaskRequest struct for UpdateTaskRequest +type UpdateTaskRequest struct { + // A user-provided JSON object encoded as a string to specify the actions for this task. It is optional and non-unique. + Actions map[string]interface{} `json:"Actions,omitempty"` + // User-provided HTTP endpoint where from the assistant fetches actions + ActionsUrl string `json:"ActionsUrl,omitempty"` + // A user-provided string that identifies this resource. It is non-unique and can up to 255 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/preview/response.go b/rest/preview/response.go new file mode 100644 index 000000000..f7270d6f7 --- /dev/null +++ b/rest/preview/response.go @@ -0,0 +1,47 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// Response returns a new APIResponse object. +func Response(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// ResponseWithError returns a new APIResponse object with the provided error message. +func ResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/rest/pricing/v1/.openapi-generator-ignore b/rest/pricing/v1/.openapi-generator-ignore new file mode 100644 index 000000000..7484ee590 --- /dev/null +++ b/rest/pricing/v1/.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/rest/pricing/v1/.openapi-generator/VERSION b/rest/pricing/v1/.openapi-generator/VERSION new file mode 100644 index 000000000..ecedc98d1 --- /dev/null +++ b/rest/pricing/v1/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.3.1 \ No newline at end of file diff --git a/rest/pricing/v1/README.md b/rest/pricing/v1/README.md new file mode 100644 index 000000000..4b2d830b4 --- /dev/null +++ b/rest/pricing/v1/README.md @@ -0,0 +1,87 @@ +# Go API client for openapi + +This is the public Twilio REST API. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 5.15.0 +- Package version: 1.0.0 +- Build package: com.twilio.oai.TwilioGoGenerator +For more information, please visit [https://support.twilio.com](https://support.twilio.com) + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import "./openapi" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**FetchMessagingCountry**](docs/DefaultApi.md#fetchmessagingcountry) | **Get** /v1/Messaging/Countries/{IsoCountry} | +*DefaultApi* | [**FetchPhoneNumberCountry**](docs/DefaultApi.md#fetchphonenumbercountry) | **Get** /v1/PhoneNumbers/Countries/{IsoCountry} | +*DefaultApi* | [**FetchVoiceCountry**](docs/DefaultApi.md#fetchvoicecountry) | **Get** /v1/Voice/Countries/{IsoCountry} | +*DefaultApi* | [**FetchVoiceNumber**](docs/DefaultApi.md#fetchvoicenumber) | **Get** /v1/Voice/Numbers/{Number} | +*DefaultApi* | [**ListMessagingCountry**](docs/DefaultApi.md#listmessagingcountry) | **Get** /v1/Messaging/Countries | +*DefaultApi* | [**ListPhoneNumberCountry**](docs/DefaultApi.md#listphonenumbercountry) | **Get** /v1/PhoneNumbers/Countries | +*DefaultApi* | [**ListVoiceCountry**](docs/DefaultApi.md#listvoicecountry) | **Get** /v1/Voice/Countries | + + +## Documentation For Models + + - [PricingV1Messaging](docs/PricingV1Messaging.md) + - [PricingV1MessagingMessagingCountry](docs/PricingV1MessagingMessagingCountry.md) + - [PricingV1MessagingMessagingCountryInstance](docs/PricingV1MessagingMessagingCountryInstance.md) + - [PricingV1MessagingMessagingCountryInstanceInboundSmsPrices](docs/PricingV1MessagingMessagingCountryInstanceInboundSmsPrices.md) + - [PricingV1MessagingMessagingCountryInstanceOutboundSmsPrices](docs/PricingV1MessagingMessagingCountryInstanceOutboundSmsPrices.md) + - [PricingV1MessagingMessagingCountryReadResponse](docs/PricingV1MessagingMessagingCountryReadResponse.md) + - [PricingV1MessagingMessagingCountryReadResponseMeta](docs/PricingV1MessagingMessagingCountryReadResponseMeta.md) + - [PricingV1PhoneNumber](docs/PricingV1PhoneNumber.md) + - [PricingV1PhoneNumberPhoneNumberCountry](docs/PricingV1PhoneNumberPhoneNumberCountry.md) + - [PricingV1PhoneNumberPhoneNumberCountryInstance](docs/PricingV1PhoneNumberPhoneNumberCountryInstance.md) + - [PricingV1PhoneNumberPhoneNumberCountryReadResponse](docs/PricingV1PhoneNumberPhoneNumberCountryReadResponse.md) + - [PricingV1Voice](docs/PricingV1Voice.md) + - [PricingV1VoiceVoiceCountry](docs/PricingV1VoiceVoiceCountry.md) + - [PricingV1VoiceVoiceCountryInstance](docs/PricingV1VoiceVoiceCountryInstance.md) + - [PricingV1VoiceVoiceCountryInstanceOutboundPrefixPrices](docs/PricingV1VoiceVoiceCountryInstanceOutboundPrefixPrices.md) + - [PricingV1VoiceVoiceCountryReadResponse](docs/PricingV1VoiceVoiceCountryReadResponse.md) + - [PricingV1VoiceVoiceNumber](docs/PricingV1VoiceVoiceNumber.md) + - [PricingV1VoiceVoiceNumberOutboundCallPrice](docs/PricingV1VoiceVoiceNumberOutboundCallPrice.md) + + +## Documentation For Authorization + + + +## accountSid_authToken + +- **Type**: HTTP basic authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ + UserName: "username", + Password: "password", +}) +r, err := client.Service.Operation(auth, args) +``` + + +## Author + +support@twilio.com + diff --git a/rest/pricing/v1/api_default.go b/rest/pricing/v1/api_default.go new file mode 100644 index 000000000..3f5282f2f --- /dev/null +++ b/rest/pricing/v1/api_default.go @@ -0,0 +1,256 @@ +/* + * Twilio - Pricing + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "" +) + +type DefaultApiService struct { + baseURL string + client *twilio.Client +} + +func NewDefaultApiService(client *twilio.Client) *DefaultApiService { + return &DefaultApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} + +/* +FetchMessagingCountry Method for FetchMessagingCountry + * @param isoCountry The [ISO country code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the pricing information to fetch. +@return PricingV1MessagingMessagingCountryInstance +*/ +func (c *DefaultApiService) FetchMessagingCountry(isoCountry string) (*PricingV1MessagingMessagingCountryInstance, error) { + path := "/v1/Messaging/Countries/{IsoCountry}" + path = strings.Replace(path, "{"+"IsoCountry"+"}", isoCountry, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PricingV1MessagingMessagingCountryInstance{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchPhoneNumberCountry Method for FetchPhoneNumberCountry + * @param isoCountry The [ISO country code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the pricing information to fetch. +@return PricingV1PhoneNumberPhoneNumberCountryInstance +*/ +func (c *DefaultApiService) FetchPhoneNumberCountry(isoCountry string) (*PricingV1PhoneNumberPhoneNumberCountryInstance, error) { + path := "/v1/PhoneNumbers/Countries/{IsoCountry}" + path = strings.Replace(path, "{"+"IsoCountry"+"}", isoCountry, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PricingV1PhoneNumberPhoneNumberCountryInstance{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchVoiceCountry Method for FetchVoiceCountry + * @param isoCountry The [ISO country code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the pricing information to fetch. +@return PricingV1VoiceVoiceCountryInstance +*/ +func (c *DefaultApiService) FetchVoiceCountry(isoCountry string) (*PricingV1VoiceVoiceCountryInstance, error) { + path := "/v1/Voice/Countries/{IsoCountry}" + path = strings.Replace(path, "{"+"IsoCountry"+"}", isoCountry, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PricingV1VoiceVoiceCountryInstance{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchVoiceNumber Method for FetchVoiceNumber + * @param number The phone number to fetch. +@return PricingV1VoiceVoiceNumber +*/ +func (c *DefaultApiService) FetchVoiceNumber(number string) (*PricingV1VoiceVoiceNumber, error) { + path := "/v1/Voice/Numbers/{Number}" + path = strings.Replace(path, "{"+"Number"+"}", number, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PricingV1VoiceVoiceNumber{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListMessagingCountryParams Optional parameters for the method 'ListMessagingCountry' +type ListMessagingCountryParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListMessagingCountry Method for ListMessagingCountry + * @param optional nil or *ListMessagingCountryOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PricingV1MessagingMessagingCountryReadResponse +*/ +func (c *DefaultApiService) ListMessagingCountry(params *ListMessagingCountryParams) (*PricingV1MessagingMessagingCountryReadResponse, error) { + path := "/v1/Messaging/Countries" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PricingV1MessagingMessagingCountryReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListPhoneNumberCountryParams Optional parameters for the method 'ListPhoneNumberCountry' +type ListPhoneNumberCountryParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListPhoneNumberCountry Method for ListPhoneNumberCountry + * @param optional nil or *ListPhoneNumberCountryOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PricingV1PhoneNumberPhoneNumberCountryReadResponse +*/ +func (c *DefaultApiService) ListPhoneNumberCountry(params *ListPhoneNumberCountryParams) (*PricingV1PhoneNumberPhoneNumberCountryReadResponse, error) { + path := "/v1/PhoneNumbers/Countries" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PricingV1PhoneNumberPhoneNumberCountryReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListVoiceCountryParams Optional parameters for the method 'ListVoiceCountry' +type ListVoiceCountryParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListVoiceCountry Method for ListVoiceCountry + * @param optional nil or *ListVoiceCountryOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PricingV1VoiceVoiceCountryReadResponse +*/ +func (c *DefaultApiService) ListVoiceCountry(params *ListVoiceCountryParams) (*PricingV1VoiceVoiceCountryReadResponse, error) { + path := "/v1/Voice/Countries" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PricingV1VoiceVoiceCountryReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/pricing/v1/docs/DefaultApi.md b/rest/pricing/v1/docs/DefaultApi.md new file mode 100644 index 000000000..94d692d17 --- /dev/null +++ b/rest/pricing/v1/docs/DefaultApi.md @@ -0,0 +1,266 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**FetchMessagingCountry**](DefaultApi.md#FetchMessagingCountry) | **Get** /v1/Messaging/Countries/{IsoCountry} | +[**FetchPhoneNumberCountry**](DefaultApi.md#FetchPhoneNumberCountry) | **Get** /v1/PhoneNumbers/Countries/{IsoCountry} | +[**FetchVoiceCountry**](DefaultApi.md#FetchVoiceCountry) | **Get** /v1/Voice/Countries/{IsoCountry} | +[**FetchVoiceNumber**](DefaultApi.md#FetchVoiceNumber) | **Get** /v1/Voice/Numbers/{Number} | +[**ListMessagingCountry**](DefaultApi.md#ListMessagingCountry) | **Get** /v1/Messaging/Countries | +[**ListPhoneNumberCountry**](DefaultApi.md#ListPhoneNumberCountry) | **Get** /v1/PhoneNumbers/Countries | +[**ListVoiceCountry**](DefaultApi.md#ListVoiceCountry) | **Get** /v1/Voice/Countries | + + + +## FetchMessagingCountry + +> PricingV1MessagingMessagingCountryInstance FetchMessagingCountry(ctx, isoCountry) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**isoCountry** | **string**| The [ISO country code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the pricing information to fetch. | + +### Return type + +[**PricingV1MessagingMessagingCountryInstance**](pricing.v1.messaging.messaging_country-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) + + +## FetchPhoneNumberCountry + +> PricingV1PhoneNumberPhoneNumberCountryInstance FetchPhoneNumberCountry(ctx, isoCountry) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**isoCountry** | **string**| The [ISO country code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the pricing information to fetch. | + +### Return type + +[**PricingV1PhoneNumberPhoneNumberCountryInstance**](pricing.v1.phone_number.phone_number_country-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) + + +## FetchVoiceCountry + +> PricingV1VoiceVoiceCountryInstance FetchVoiceCountry(ctx, isoCountry) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**isoCountry** | **string**| The [ISO country code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the pricing information to fetch. | + +### Return type + +[**PricingV1VoiceVoiceCountryInstance**](pricing.v1.voice.voice_country-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) + + +## FetchVoiceNumber + +> PricingV1VoiceVoiceNumber FetchVoiceNumber(ctx, number) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**number** | **string**| The phone number to fetch. | + +### Return type + +[**PricingV1VoiceVoiceNumber**](pricing.v1.voice.voice_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) + + +## ListMessagingCountry + +> PricingV1MessagingMessagingCountryReadResponse ListMessagingCountry(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListMessagingCountryOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListMessagingCountryOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PricingV1MessagingMessagingCountryReadResponse**](pricing_v1_messaging_messaging_countryReadResponse.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) + + +## ListPhoneNumberCountry + +> PricingV1PhoneNumberPhoneNumberCountryReadResponse ListPhoneNumberCountry(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListPhoneNumberCountryOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListPhoneNumberCountryOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PricingV1PhoneNumberPhoneNumberCountryReadResponse**](pricing_v1_phone_number_phone_number_countryReadResponse.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) + + +## ListVoiceCountry + +> PricingV1VoiceVoiceCountryReadResponse ListVoiceCountry(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListVoiceCountryOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListVoiceCountryOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PricingV1VoiceVoiceCountryReadResponse**](pricing_v1_voice_voice_countryReadResponse.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/rest/pricing/v1/docs/PricingV1Messaging.md b/rest/pricing/v1/docs/PricingV1Messaging.md new file mode 100644 index 000000000..5aa574256 --- /dev/null +++ b/rest/pricing/v1/docs/PricingV1Messaging.md @@ -0,0 +1,13 @@ +# PricingV1Messaging + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Name** | **string** | | [optional] +**Url** | **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/rest/pricing/v1/docs/PricingV1MessagingMessagingCountry.md b/rest/pricing/v1/docs/PricingV1MessagingMessagingCountry.md new file mode 100644 index 000000000..3dce84a6d --- /dev/null +++ b/rest/pricing/v1/docs/PricingV1MessagingMessagingCountry.md @@ -0,0 +1,13 @@ +# PricingV1MessagingMessagingCountry + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Country** | **string** | | [optional] +**IsoCountry** | **string** | | [optional] +**Url** | **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/rest/pricing/v1/docs/PricingV1MessagingMessagingCountryInstance.md b/rest/pricing/v1/docs/PricingV1MessagingMessagingCountryInstance.md new file mode 100644 index 000000000..4ada848dc --- /dev/null +++ b/rest/pricing/v1/docs/PricingV1MessagingMessagingCountryInstance.md @@ -0,0 +1,16 @@ +# PricingV1MessagingMessagingCountryInstance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Country** | **string** | | [optional] +**InboundSmsPrices** | [**[]PricingV1MessagingMessagingCountryInstanceInboundSmsPrices**](pricing_v1_messaging_messaging_country_instance_inbound_sms_prices.md) | | [optional] +**IsoCountry** | **string** | | [optional] +**OutboundSmsPrices** | [**[]PricingV1MessagingMessagingCountryInstanceOutboundSmsPrices**](pricing_v1_messaging_messaging_country_instance_outbound_sms_prices.md) | | [optional] +**PriceUnit** | **string** | | [optional] +**Url** | **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/rest/pricing/v1/docs/PricingV1MessagingMessagingCountryInstanceInboundSmsPrices.md b/rest/pricing/v1/docs/PricingV1MessagingMessagingCountryInstanceInboundSmsPrices.md new file mode 100644 index 000000000..bcd80c221 --- /dev/null +++ b/rest/pricing/v1/docs/PricingV1MessagingMessagingCountryInstanceInboundSmsPrices.md @@ -0,0 +1,13 @@ +# PricingV1MessagingMessagingCountryInstanceInboundSmsPrices + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BasePrice** | **float32** | | [optional] +**CurrentPrice** | **float32** | | [optional] +**NumberType** | **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/rest/pricing/v1/docs/PricingV1MessagingMessagingCountryInstanceOutboundSmsPrices.md b/rest/pricing/v1/docs/PricingV1MessagingMessagingCountryInstanceOutboundSmsPrices.md new file mode 100644 index 000000000..4e1cfc7c1 --- /dev/null +++ b/rest/pricing/v1/docs/PricingV1MessagingMessagingCountryInstanceOutboundSmsPrices.md @@ -0,0 +1,14 @@ +# PricingV1MessagingMessagingCountryInstanceOutboundSmsPrices + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Carrier** | **string** | | [optional] +**Mcc** | **string** | | [optional] +**Mnc** | **string** | | [optional] +**Prices** | [**[]PricingV1MessagingMessagingCountryInstanceInboundSmsPrices**](pricing_v1_messaging_messaging_country_instance_inbound_sms_prices.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/rest/pricing/v1/docs/PricingV1MessagingMessagingCountryReadResponse.md b/rest/pricing/v1/docs/PricingV1MessagingMessagingCountryReadResponse.md new file mode 100644 index 000000000..b12a86477 --- /dev/null +++ b/rest/pricing/v1/docs/PricingV1MessagingMessagingCountryReadResponse.md @@ -0,0 +1,12 @@ +# PricingV1MessagingMessagingCountryReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Countries** | [**[]PricingV1MessagingMessagingCountry**](pricing.v1.messaging.messaging_country.md) | | [optional] +**Meta** | [**PricingV1MessagingMessagingCountryReadResponseMeta**](pricing_v1_messaging_messaging_countryReadResponse_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/rest/pricing/v1/docs/PricingV1MessagingMessagingCountryReadResponseMeta.md b/rest/pricing/v1/docs/PricingV1MessagingMessagingCountryReadResponseMeta.md new file mode 100644 index 000000000..15dc1c58e --- /dev/null +++ b/rest/pricing/v1/docs/PricingV1MessagingMessagingCountryReadResponseMeta.md @@ -0,0 +1,17 @@ +# PricingV1MessagingMessagingCountryReadResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/pricing/v1/docs/PricingV1PhoneNumber.md b/rest/pricing/v1/docs/PricingV1PhoneNumber.md new file mode 100644 index 000000000..7b6c02bb5 --- /dev/null +++ b/rest/pricing/v1/docs/PricingV1PhoneNumber.md @@ -0,0 +1,13 @@ +# PricingV1PhoneNumber + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Name** | **string** | | [optional] +**Url** | **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/rest/pricing/v1/docs/PricingV1PhoneNumberPhoneNumberCountry.md b/rest/pricing/v1/docs/PricingV1PhoneNumberPhoneNumberCountry.md new file mode 100644 index 000000000..3fb75a87c --- /dev/null +++ b/rest/pricing/v1/docs/PricingV1PhoneNumberPhoneNumberCountry.md @@ -0,0 +1,13 @@ +# PricingV1PhoneNumberPhoneNumberCountry + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Country** | **string** | | [optional] +**IsoCountry** | **string** | | [optional] +**Url** | **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/rest/pricing/v1/docs/PricingV1PhoneNumberPhoneNumberCountryInstance.md b/rest/pricing/v1/docs/PricingV1PhoneNumberPhoneNumberCountryInstance.md new file mode 100644 index 000000000..81422cc1d --- /dev/null +++ b/rest/pricing/v1/docs/PricingV1PhoneNumberPhoneNumberCountryInstance.md @@ -0,0 +1,15 @@ +# PricingV1PhoneNumberPhoneNumberCountryInstance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Country** | **string** | | [optional] +**IsoCountry** | **string** | | [optional] +**PhoneNumberPrices** | [**[]PricingV1MessagingMessagingCountryInstanceInboundSmsPrices**](pricing_v1_messaging_messaging_country_instance_inbound_sms_prices.md) | | [optional] +**PriceUnit** | **string** | | [optional] +**Url** | **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/rest/pricing/v1/docs/PricingV1PhoneNumberPhoneNumberCountryReadResponse.md b/rest/pricing/v1/docs/PricingV1PhoneNumberPhoneNumberCountryReadResponse.md new file mode 100644 index 000000000..391a54a24 --- /dev/null +++ b/rest/pricing/v1/docs/PricingV1PhoneNumberPhoneNumberCountryReadResponse.md @@ -0,0 +1,12 @@ +# PricingV1PhoneNumberPhoneNumberCountryReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Countries** | [**[]PricingV1PhoneNumberPhoneNumberCountry**](pricing.v1.phone_number.phone_number_country.md) | | [optional] +**Meta** | [**PricingV1MessagingMessagingCountryReadResponseMeta**](pricing_v1_messaging_messaging_countryReadResponse_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/rest/pricing/v1/docs/PricingV1Voice.md b/rest/pricing/v1/docs/PricingV1Voice.md new file mode 100644 index 000000000..f678ec79a --- /dev/null +++ b/rest/pricing/v1/docs/PricingV1Voice.md @@ -0,0 +1,13 @@ +# PricingV1Voice + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Name** | **string** | | [optional] +**Url** | **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/rest/pricing/v1/docs/PricingV1VoiceVoiceCountry.md b/rest/pricing/v1/docs/PricingV1VoiceVoiceCountry.md new file mode 100644 index 000000000..955b26cef --- /dev/null +++ b/rest/pricing/v1/docs/PricingV1VoiceVoiceCountry.md @@ -0,0 +1,13 @@ +# PricingV1VoiceVoiceCountry + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Country** | **string** | | [optional] +**IsoCountry** | **string** | | [optional] +**Url** | **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/rest/pricing/v1/docs/PricingV1VoiceVoiceCountryInstance.md b/rest/pricing/v1/docs/PricingV1VoiceVoiceCountryInstance.md new file mode 100644 index 000000000..7c3d550ff --- /dev/null +++ b/rest/pricing/v1/docs/PricingV1VoiceVoiceCountryInstance.md @@ -0,0 +1,16 @@ +# PricingV1VoiceVoiceCountryInstance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Country** | **string** | | [optional] +**InboundCallPrices** | [**[]PricingV1MessagingMessagingCountryInstanceInboundSmsPrices**](pricing_v1_messaging_messaging_country_instance_inbound_sms_prices.md) | | [optional] +**IsoCountry** | **string** | | [optional] +**OutboundPrefixPrices** | [**[]PricingV1VoiceVoiceCountryInstanceOutboundPrefixPrices**](pricing_v1_voice_voice_country_instance_outbound_prefix_prices.md) | | [optional] +**PriceUnit** | **string** | | [optional] +**Url** | **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/rest/pricing/v1/docs/PricingV1VoiceVoiceCountryInstanceOutboundPrefixPrices.md b/rest/pricing/v1/docs/PricingV1VoiceVoiceCountryInstanceOutboundPrefixPrices.md new file mode 100644 index 000000000..3211a648e --- /dev/null +++ b/rest/pricing/v1/docs/PricingV1VoiceVoiceCountryInstanceOutboundPrefixPrices.md @@ -0,0 +1,14 @@ +# PricingV1VoiceVoiceCountryInstanceOutboundPrefixPrices + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BasePrice** | **float32** | | [optional] +**CurrentPrice** | **float32** | | [optional] +**FriendlyName** | **string** | | [optional] +**Prefixes** | **[]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/rest/pricing/v1/docs/PricingV1VoiceVoiceCountryReadResponse.md b/rest/pricing/v1/docs/PricingV1VoiceVoiceCountryReadResponse.md new file mode 100644 index 000000000..e5263b689 --- /dev/null +++ b/rest/pricing/v1/docs/PricingV1VoiceVoiceCountryReadResponse.md @@ -0,0 +1,12 @@ +# PricingV1VoiceVoiceCountryReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Countries** | [**[]PricingV1VoiceVoiceCountry**](pricing.v1.voice.voice_country.md) | | [optional] +**Meta** | [**PricingV1MessagingMessagingCountryReadResponseMeta**](pricing_v1_messaging_messaging_countryReadResponse_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/rest/pricing/v1/docs/PricingV1VoiceVoiceNumber.md b/rest/pricing/v1/docs/PricingV1VoiceVoiceNumber.md new file mode 100644 index 000000000..f2306639f --- /dev/null +++ b/rest/pricing/v1/docs/PricingV1VoiceVoiceNumber.md @@ -0,0 +1,17 @@ +# PricingV1VoiceVoiceNumber + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Country** | **string** | | [optional] +**InboundCallPrice** | [**PricingV1MessagingMessagingCountryInstanceInboundSmsPrices**](pricing_v1_messaging_messaging_country_instance_inbound_sms_prices.md) | | [optional] +**IsoCountry** | **string** | | [optional] +**Number** | **string** | | [optional] +**OutboundCallPrice** | [**PricingV1VoiceVoiceNumberOutboundCallPrice**](pricing_v1_voice_voice_number_outbound_call_price.md) | | [optional] +**PriceUnit** | **string** | | [optional] +**Url** | **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/rest/pricing/v1/docs/PricingV1VoiceVoiceNumberOutboundCallPrice.md b/rest/pricing/v1/docs/PricingV1VoiceVoiceNumberOutboundCallPrice.md new file mode 100644 index 000000000..4bc8f776a --- /dev/null +++ b/rest/pricing/v1/docs/PricingV1VoiceVoiceNumberOutboundCallPrice.md @@ -0,0 +1,12 @@ +# PricingV1VoiceVoiceNumberOutboundCallPrice + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BasePrice** | **float32** | | [optional] +**CurrentPrice** | **float32** | | [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/rest/pricing/v1/model_pricing_v1_messaging.go b/rest/pricing/v1/model_pricing_v1_messaging.go new file mode 100644 index 000000000..037d84972 --- /dev/null +++ b/rest/pricing/v1/model_pricing_v1_messaging.go @@ -0,0 +1,17 @@ +/* + * Twilio - Pricing + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PricingV1Messaging struct for PricingV1Messaging +type PricingV1Messaging struct { + Links map[string]interface{} `json:"links,omitempty"` + Name string `json:"name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/pricing/v1/model_pricing_v1_messaging_messaging_country.go b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country.go new file mode 100644 index 000000000..25d8b5a26 --- /dev/null +++ b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country.go @@ -0,0 +1,17 @@ +/* + * Twilio - Pricing + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PricingV1MessagingMessagingCountry struct for PricingV1MessagingMessagingCountry +type PricingV1MessagingMessagingCountry struct { + Country string `json:"country,omitempty"` + IsoCountry string `json:"iso_country,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance.go b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance.go new file mode 100644 index 000000000..0abd587b7 --- /dev/null +++ b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance.go @@ -0,0 +1,20 @@ +/* + * Twilio - Pricing + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PricingV1MessagingMessagingCountryInstance struct for PricingV1MessagingMessagingCountryInstance +type PricingV1MessagingMessagingCountryInstance struct { + Country string `json:"country,omitempty"` + InboundSmsPrices []PricingV1MessagingMessagingCountryInstanceInboundSmsPrices `json:"inbound_sms_prices,omitempty"` + IsoCountry string `json:"iso_country,omitempty"` + OutboundSmsPrices []PricingV1MessagingMessagingCountryInstanceOutboundSmsPrices `json:"outbound_sms_prices,omitempty"` + PriceUnit string `json:"price_unit,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance_inbound_sms_prices.go b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance_inbound_sms_prices.go new file mode 100644 index 000000000..9f32f0051 --- /dev/null +++ b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance_inbound_sms_prices.go @@ -0,0 +1,17 @@ +/* + * Twilio - Pricing + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PricingV1MessagingMessagingCountryInstanceInboundSmsPrices struct for PricingV1MessagingMessagingCountryInstanceInboundSmsPrices +type PricingV1MessagingMessagingCountryInstanceInboundSmsPrices struct { + BasePrice float32 `json:"base_price,omitempty"` + CurrentPrice float32 `json:"current_price,omitempty"` + NumberType string `json:"number_type,omitempty"` +} diff --git a/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance_outbound_sms_prices.go b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance_outbound_sms_prices.go new file mode 100644 index 000000000..88902d7df --- /dev/null +++ b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance_outbound_sms_prices.go @@ -0,0 +1,18 @@ +/* + * Twilio - Pricing + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PricingV1MessagingMessagingCountryInstanceOutboundSmsPrices struct for PricingV1MessagingMessagingCountryInstanceOutboundSmsPrices +type PricingV1MessagingMessagingCountryInstanceOutboundSmsPrices struct { + Carrier string `json:"carrier,omitempty"` + Mcc string `json:"mcc,omitempty"` + Mnc string `json:"mnc,omitempty"` + Prices []PricingV1MessagingMessagingCountryInstanceInboundSmsPrices `json:"prices,omitempty"` +} diff --git a/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_read_response.go b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_read_response.go new file mode 100644 index 000000000..79956ab56 --- /dev/null +++ b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Pricing + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PricingV1MessagingMessagingCountryReadResponse struct for PricingV1MessagingMessagingCountryReadResponse +type PricingV1MessagingMessagingCountryReadResponse struct { + Countries []PricingV1MessagingMessagingCountry `json:"countries,omitempty"` + Meta PricingV1MessagingMessagingCountryReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_read_response_meta.go b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_read_response_meta.go new file mode 100644 index 000000000..a90a76912 --- /dev/null +++ b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_read_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Pricing + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PricingV1MessagingMessagingCountryReadResponseMeta struct for PricingV1MessagingMessagingCountryReadResponseMeta +type PricingV1MessagingMessagingCountryReadResponseMeta struct { + FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` + NextPageUrl string `json:"next_page_url,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUrl string `json:"previous_page_url,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/pricing/v1/model_pricing_v1_phone_number.go b/rest/pricing/v1/model_pricing_v1_phone_number.go new file mode 100644 index 000000000..0dc961719 --- /dev/null +++ b/rest/pricing/v1/model_pricing_v1_phone_number.go @@ -0,0 +1,17 @@ +/* + * Twilio - Pricing + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PricingV1PhoneNumber struct for PricingV1PhoneNumber +type PricingV1PhoneNumber struct { + Links map[string]interface{} `json:"links,omitempty"` + Name string `json:"name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country.go b/rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country.go new file mode 100644 index 000000000..c78724907 --- /dev/null +++ b/rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country.go @@ -0,0 +1,17 @@ +/* + * Twilio - Pricing + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PricingV1PhoneNumberPhoneNumberCountry struct for PricingV1PhoneNumberPhoneNumberCountry +type PricingV1PhoneNumberPhoneNumberCountry struct { + Country string `json:"country,omitempty"` + IsoCountry string `json:"iso_country,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country_instance.go b/rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country_instance.go new file mode 100644 index 000000000..cd710cc4c --- /dev/null +++ b/rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country_instance.go @@ -0,0 +1,19 @@ +/* + * Twilio - Pricing + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PricingV1PhoneNumberPhoneNumberCountryInstance struct for PricingV1PhoneNumberPhoneNumberCountryInstance +type PricingV1PhoneNumberPhoneNumberCountryInstance struct { + Country string `json:"country,omitempty"` + IsoCountry string `json:"iso_country,omitempty"` + PhoneNumberPrices []PricingV1MessagingMessagingCountryInstanceInboundSmsPrices `json:"phone_number_prices,omitempty"` + PriceUnit string `json:"price_unit,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country_read_response.go b/rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country_read_response.go new file mode 100644 index 000000000..12f79c4d1 --- /dev/null +++ b/rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Pricing + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PricingV1PhoneNumberPhoneNumberCountryReadResponse struct for PricingV1PhoneNumberPhoneNumberCountryReadResponse +type PricingV1PhoneNumberPhoneNumberCountryReadResponse struct { + Countries []PricingV1PhoneNumberPhoneNumberCountry `json:"countries,omitempty"` + Meta PricingV1MessagingMessagingCountryReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/pricing/v1/model_pricing_v1_voice.go b/rest/pricing/v1/model_pricing_v1_voice.go new file mode 100644 index 000000000..a1231c198 --- /dev/null +++ b/rest/pricing/v1/model_pricing_v1_voice.go @@ -0,0 +1,17 @@ +/* + * Twilio - Pricing + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PricingV1Voice struct for PricingV1Voice +type PricingV1Voice struct { + Links map[string]interface{} `json:"links,omitempty"` + Name string `json:"name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/pricing/v1/model_pricing_v1_voice_voice_country.go b/rest/pricing/v1/model_pricing_v1_voice_voice_country.go new file mode 100644 index 000000000..63ec1de61 --- /dev/null +++ b/rest/pricing/v1/model_pricing_v1_voice_voice_country.go @@ -0,0 +1,17 @@ +/* + * Twilio - Pricing + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PricingV1VoiceVoiceCountry struct for PricingV1VoiceVoiceCountry +type PricingV1VoiceVoiceCountry struct { + Country string `json:"country,omitempty"` + IsoCountry string `json:"iso_country,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/pricing/v1/model_pricing_v1_voice_voice_country_instance.go b/rest/pricing/v1/model_pricing_v1_voice_voice_country_instance.go new file mode 100644 index 000000000..163e5edf1 --- /dev/null +++ b/rest/pricing/v1/model_pricing_v1_voice_voice_country_instance.go @@ -0,0 +1,20 @@ +/* + * Twilio - Pricing + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PricingV1VoiceVoiceCountryInstance struct for PricingV1VoiceVoiceCountryInstance +type PricingV1VoiceVoiceCountryInstance struct { + Country string `json:"country,omitempty"` + InboundCallPrices []PricingV1MessagingMessagingCountryInstanceInboundSmsPrices `json:"inbound_call_prices,omitempty"` + IsoCountry string `json:"iso_country,omitempty"` + OutboundPrefixPrices []PricingV1VoiceVoiceCountryInstanceOutboundPrefixPrices `json:"outbound_prefix_prices,omitempty"` + PriceUnit string `json:"price_unit,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/pricing/v1/model_pricing_v1_voice_voice_country_instance_outbound_prefix_prices.go b/rest/pricing/v1/model_pricing_v1_voice_voice_country_instance_outbound_prefix_prices.go new file mode 100644 index 000000000..3f2b36842 --- /dev/null +++ b/rest/pricing/v1/model_pricing_v1_voice_voice_country_instance_outbound_prefix_prices.go @@ -0,0 +1,18 @@ +/* + * Twilio - Pricing + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PricingV1VoiceVoiceCountryInstanceOutboundPrefixPrices struct for PricingV1VoiceVoiceCountryInstanceOutboundPrefixPrices +type PricingV1VoiceVoiceCountryInstanceOutboundPrefixPrices struct { + BasePrice float32 `json:"base_price,omitempty"` + CurrentPrice float32 `json:"current_price,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Prefixes []string `json:"prefixes,omitempty"` +} diff --git a/rest/pricing/v1/model_pricing_v1_voice_voice_country_read_response.go b/rest/pricing/v1/model_pricing_v1_voice_voice_country_read_response.go new file mode 100644 index 000000000..827668310 --- /dev/null +++ b/rest/pricing/v1/model_pricing_v1_voice_voice_country_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Pricing + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PricingV1VoiceVoiceCountryReadResponse struct for PricingV1VoiceVoiceCountryReadResponse +type PricingV1VoiceVoiceCountryReadResponse struct { + Countries []PricingV1VoiceVoiceCountry `json:"countries,omitempty"` + Meta PricingV1MessagingMessagingCountryReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/pricing/v1/model_pricing_v1_voice_voice_number.go b/rest/pricing/v1/model_pricing_v1_voice_voice_number.go new file mode 100644 index 000000000..b5b3484d6 --- /dev/null +++ b/rest/pricing/v1/model_pricing_v1_voice_voice_number.go @@ -0,0 +1,21 @@ +/* + * Twilio - Pricing + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PricingV1VoiceVoiceNumber struct for PricingV1VoiceVoiceNumber +type PricingV1VoiceVoiceNumber struct { + Country string `json:"country,omitempty"` + InboundCallPrice PricingV1MessagingMessagingCountryInstanceInboundSmsPrices `json:"inbound_call_price,omitempty"` + IsoCountry string `json:"iso_country,omitempty"` + Number string `json:"number,omitempty"` + OutboundCallPrice PricingV1VoiceVoiceNumberOutboundCallPrice `json:"outbound_call_price,omitempty"` + PriceUnit string `json:"price_unit,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/pricing/v1/model_pricing_v1_voice_voice_number_outbound_call_price.go b/rest/pricing/v1/model_pricing_v1_voice_voice_number_outbound_call_price.go new file mode 100644 index 000000000..130831f4d --- /dev/null +++ b/rest/pricing/v1/model_pricing_v1_voice_voice_number_outbound_call_price.go @@ -0,0 +1,16 @@ +/* + * Twilio - Pricing + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PricingV1VoiceVoiceNumberOutboundCallPrice struct for PricingV1VoiceVoiceNumberOutboundCallPrice +type PricingV1VoiceVoiceNumberOutboundCallPrice struct { + BasePrice float32 `json:"base_price,omitempty"` + CurrentPrice float32 `json:"current_price,omitempty"` +} diff --git a/rest/pricing/v1/response.go b/rest/pricing/v1/response.go new file mode 100644 index 000000000..cc22e0481 --- /dev/null +++ b/rest/pricing/v1/response.go @@ -0,0 +1,47 @@ +/* + * Twilio - Pricing + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// Response returns a new APIResponse object. +func Response(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// ResponseWithError returns a new APIResponse object with the provided error message. +func ResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/rest/pricing/v2/.openapi-generator-ignore b/rest/pricing/v2/.openapi-generator-ignore new file mode 100644 index 000000000..7484ee590 --- /dev/null +++ b/rest/pricing/v2/.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/rest/pricing/v2/.openapi-generator/VERSION b/rest/pricing/v2/.openapi-generator/VERSION new file mode 100644 index 000000000..ecedc98d1 --- /dev/null +++ b/rest/pricing/v2/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.3.1 \ No newline at end of file diff --git a/rest/pricing/v2/README.md b/rest/pricing/v2/README.md new file mode 100644 index 000000000..c77df18ad --- /dev/null +++ b/rest/pricing/v2/README.md @@ -0,0 +1,74 @@ +# Go API client for openapi + +This is the public Twilio REST API. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 5.15.0 +- Package version: 1.0.0 +- Build package: com.twilio.oai.TwilioGoGenerator +For more information, please visit [https://support.twilio.com](https://support.twilio.com) + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import "./openapi" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**FetchVoiceCountry**](docs/DefaultApi.md#fetchvoicecountry) | **Get** /v2/Voice/Countries/{IsoCountry} | +*DefaultApi* | [**FetchVoiceNumber**](docs/DefaultApi.md#fetchvoicenumber) | **Get** /v2/Voice/Numbers/{DestinationNumber} | +*DefaultApi* | [**ListVoiceCountry**](docs/DefaultApi.md#listvoicecountry) | **Get** /v2/Voice/Countries | + + +## Documentation For Models + + - [PricingV2Voice](docs/PricingV2Voice.md) + - [PricingV2VoiceVoiceCountry](docs/PricingV2VoiceVoiceCountry.md) + - [PricingV2VoiceVoiceCountryInstance](docs/PricingV2VoiceVoiceCountryInstance.md) + - [PricingV2VoiceVoiceCountryInstanceInboundCallPrices](docs/PricingV2VoiceVoiceCountryInstanceInboundCallPrices.md) + - [PricingV2VoiceVoiceCountryInstanceOutboundPrefixPrices](docs/PricingV2VoiceVoiceCountryInstanceOutboundPrefixPrices.md) + - [PricingV2VoiceVoiceCountryReadResponse](docs/PricingV2VoiceVoiceCountryReadResponse.md) + - [PricingV2VoiceVoiceCountryReadResponseMeta](docs/PricingV2VoiceVoiceCountryReadResponseMeta.md) + - [PricingV2VoiceVoiceNumber](docs/PricingV2VoiceVoiceNumber.md) + - [PricingV2VoiceVoiceNumberOutboundCallPrices](docs/PricingV2VoiceVoiceNumberOutboundCallPrices.md) + + +## Documentation For Authorization + + + +## accountSid_authToken + +- **Type**: HTTP basic authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ + UserName: "username", + Password: "password", +}) +r, err := client.Service.Operation(auth, args) +``` + + +## Author + +support@twilio.com + diff --git a/rest/pricing/v2/api_default.go b/rest/pricing/v2/api_default.go new file mode 100644 index 000000000..c2cd6cb9e --- /dev/null +++ b/rest/pricing/v2/api_default.go @@ -0,0 +1,137 @@ +/* + * Twilio - Pricing + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "" +) + +type DefaultApiService struct { + baseURL string + client *twilio.Client +} + +func NewDefaultApiService(client *twilio.Client) *DefaultApiService { + return &DefaultApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} + +/* +FetchVoiceCountry Method for FetchVoiceCountry +Fetch a specific Country. + * @param isoCountry The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the origin-based voice pricing information to fetch. +@return PricingV2VoiceVoiceCountryInstance +*/ +func (c *DefaultApiService) FetchVoiceCountry(isoCountry string) (*PricingV2VoiceVoiceCountryInstance, error) { + path := "/v2/Voice/Countries/{IsoCountry}" + path = strings.Replace(path, "{"+"IsoCountry"+"}", isoCountry, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PricingV2VoiceVoiceCountryInstance{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// FetchVoiceNumberParams Optional parameters for the method 'FetchVoiceNumber' +type FetchVoiceNumberParams struct { + OriginationNumber *string `json:"OriginationNumber,omitempty"` +} + +/* +FetchVoiceNumber Method for FetchVoiceNumber +Fetch pricing information for a specific destination and, optionally, origination phone number. + * @param destinationNumber The destination phone number, in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, for which to fetch the origin-based voice pricing information. E.164 format consists of a + followed by the country code and subscriber number. + * @param optional nil or *FetchVoiceNumberOpts - Optional Parameters: + * @param "OriginationNumber" (string) - The origination phone number, in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, for which to fetch the origin-based voice pricing information. E.164 format consists of a + followed by the country code and subscriber number. +@return PricingV2VoiceVoiceNumber +*/ +func (c *DefaultApiService) FetchVoiceNumber(destinationNumber string, params *FetchVoiceNumberParams) (*PricingV2VoiceVoiceNumber, error) { + path := "/v2/Voice/Numbers/{DestinationNumber}" + path = strings.Replace(path, "{"+"DestinationNumber"+"}", destinationNumber, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.OriginationNumber != nil { + data.Set("OriginationNumber", *params.OriginationNumber) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PricingV2VoiceVoiceNumber{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListVoiceCountryParams Optional parameters for the method 'ListVoiceCountry' +type ListVoiceCountryParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListVoiceCountry Method for ListVoiceCountry + * @param optional nil or *ListVoiceCountryOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return PricingV2VoiceVoiceCountryReadResponse +*/ +func (c *DefaultApiService) ListVoiceCountry(params *ListVoiceCountryParams) (*PricingV2VoiceVoiceCountryReadResponse, error) { + path := "/v2/Voice/Countries" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PricingV2VoiceVoiceCountryReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/pricing/v2/docs/DefaultApi.md b/rest/pricing/v2/docs/DefaultApi.md new file mode 100644 index 000000000..48ddcc9e0 --- /dev/null +++ b/rest/pricing/v2/docs/DefaultApi.md @@ -0,0 +1,131 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**FetchVoiceCountry**](DefaultApi.md#FetchVoiceCountry) | **Get** /v2/Voice/Countries/{IsoCountry} | +[**FetchVoiceNumber**](DefaultApi.md#FetchVoiceNumber) | **Get** /v2/Voice/Numbers/{DestinationNumber} | +[**ListVoiceCountry**](DefaultApi.md#ListVoiceCountry) | **Get** /v2/Voice/Countries | + + + +## FetchVoiceCountry + +> PricingV2VoiceVoiceCountryInstance FetchVoiceCountry(ctx, isoCountry) + + + +Fetch a specific Country. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**isoCountry** | **string**| The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the origin-based voice pricing information to fetch. | + +### Return type + +[**PricingV2VoiceVoiceCountryInstance**](pricing.v2.voice.voice_country-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) + + +## FetchVoiceNumber + +> PricingV2VoiceVoiceNumber FetchVoiceNumber(ctx, destinationNumber, optional) + + + +Fetch pricing information for a specific destination and, optionally, origination phone number. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**destinationNumber** | **string**| The destination phone number, in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, for which to fetch the origin-based voice pricing information. E.164 format consists of a + followed by the country code and subscriber number. | + **optional** | ***FetchVoiceNumberOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a FetchVoiceNumberOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **originationNumber** | **optional.String**| The origination phone number, in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, for which to fetch the origin-based voice pricing information. E.164 format consists of a + followed by the country code and subscriber number. | + +### Return type + +[**PricingV2VoiceVoiceNumber**](pricing.v2.voice.voice_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) + + +## ListVoiceCountry + +> PricingV2VoiceVoiceCountryReadResponse ListVoiceCountry(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListVoiceCountryOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListVoiceCountryOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**PricingV2VoiceVoiceCountryReadResponse**](pricing_v2_voice_voice_countryReadResponse.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/rest/pricing/v2/docs/PricingV2Voice.md b/rest/pricing/v2/docs/PricingV2Voice.md new file mode 100644 index 000000000..00a45b49c --- /dev/null +++ b/rest/pricing/v2/docs/PricingV2Voice.md @@ -0,0 +1,13 @@ +# PricingV2Voice + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Name** | **string** | | [optional] +**Url** | **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/rest/pricing/v2/docs/PricingV2VoiceVoiceCountry.md b/rest/pricing/v2/docs/PricingV2VoiceVoiceCountry.md new file mode 100644 index 000000000..40cf7165a --- /dev/null +++ b/rest/pricing/v2/docs/PricingV2VoiceVoiceCountry.md @@ -0,0 +1,13 @@ +# PricingV2VoiceVoiceCountry + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Country** | **string** | | [optional] +**IsoCountry** | **string** | | [optional] +**Url** | **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/rest/pricing/v2/docs/PricingV2VoiceVoiceCountryInstance.md b/rest/pricing/v2/docs/PricingV2VoiceVoiceCountryInstance.md new file mode 100644 index 000000000..ea4b15d92 --- /dev/null +++ b/rest/pricing/v2/docs/PricingV2VoiceVoiceCountryInstance.md @@ -0,0 +1,16 @@ +# PricingV2VoiceVoiceCountryInstance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Country** | **string** | | [optional] +**InboundCallPrices** | [**[]PricingV2VoiceVoiceCountryInstanceInboundCallPrices**](pricing_v2_voice_voice_country_instance_inbound_call_prices.md) | | [optional] +**IsoCountry** | **string** | | [optional] +**OutboundPrefixPrices** | [**[]PricingV2VoiceVoiceCountryInstanceOutboundPrefixPrices**](pricing_v2_voice_voice_country_instance_outbound_prefix_prices.md) | | [optional] +**PriceUnit** | **string** | | [optional] +**Url** | **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/rest/pricing/v2/docs/PricingV2VoiceVoiceCountryInstanceInboundCallPrices.md b/rest/pricing/v2/docs/PricingV2VoiceVoiceCountryInstanceInboundCallPrices.md new file mode 100644 index 000000000..1420e1619 --- /dev/null +++ b/rest/pricing/v2/docs/PricingV2VoiceVoiceCountryInstanceInboundCallPrices.md @@ -0,0 +1,13 @@ +# PricingV2VoiceVoiceCountryInstanceInboundCallPrices + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BasePrice** | **float32** | | [optional] +**CurrentPrice** | **float32** | | [optional] +**NumberType** | **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/rest/pricing/v2/docs/PricingV2VoiceVoiceCountryInstanceOutboundPrefixPrices.md b/rest/pricing/v2/docs/PricingV2VoiceVoiceCountryInstanceOutboundPrefixPrices.md new file mode 100644 index 000000000..316134056 --- /dev/null +++ b/rest/pricing/v2/docs/PricingV2VoiceVoiceCountryInstanceOutboundPrefixPrices.md @@ -0,0 +1,15 @@ +# PricingV2VoiceVoiceCountryInstanceOutboundPrefixPrices + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BasePrice** | **float32** | | [optional] +**CurrentPrice** | **float32** | | [optional] +**DestinationPrefixes** | **[]string** | | [optional] +**FriendlyName** | **string** | | [optional] +**OriginationPrefixes** | **[]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/rest/pricing/v2/docs/PricingV2VoiceVoiceCountryReadResponse.md b/rest/pricing/v2/docs/PricingV2VoiceVoiceCountryReadResponse.md new file mode 100644 index 000000000..62000bf52 --- /dev/null +++ b/rest/pricing/v2/docs/PricingV2VoiceVoiceCountryReadResponse.md @@ -0,0 +1,12 @@ +# PricingV2VoiceVoiceCountryReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Countries** | [**[]PricingV2VoiceVoiceCountry**](pricing.v2.voice.voice_country.md) | | [optional] +**Meta** | [**PricingV2VoiceVoiceCountryReadResponseMeta**](pricing_v2_voice_voice_countryReadResponse_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/rest/pricing/v2/docs/PricingV2VoiceVoiceCountryReadResponseMeta.md b/rest/pricing/v2/docs/PricingV2VoiceVoiceCountryReadResponseMeta.md new file mode 100644 index 000000000..b1cbdb1c2 --- /dev/null +++ b/rest/pricing/v2/docs/PricingV2VoiceVoiceCountryReadResponseMeta.md @@ -0,0 +1,17 @@ +# PricingV2VoiceVoiceCountryReadResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/pricing/v2/docs/PricingV2VoiceVoiceNumber.md b/rest/pricing/v2/docs/PricingV2VoiceVoiceNumber.md new file mode 100644 index 000000000..30c338310 --- /dev/null +++ b/rest/pricing/v2/docs/PricingV2VoiceVoiceNumber.md @@ -0,0 +1,18 @@ +# PricingV2VoiceVoiceNumber + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Country** | **string** | | [optional] +**DestinationNumber** | **string** | | [optional] +**InboundCallPrice** | [**PricingV2VoiceVoiceCountryInstanceInboundCallPrices**](pricing_v2_voice_voice_country_instance_inbound_call_prices.md) | | [optional] +**IsoCountry** | **string** | | [optional] +**OriginationNumber** | **string** | | [optional] +**OutboundCallPrices** | [**[]PricingV2VoiceVoiceNumberOutboundCallPrices**](pricing_v2_voice_voice_number_outbound_call_prices.md) | | [optional] +**PriceUnit** | **string** | | [optional] +**Url** | **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/rest/pricing/v2/docs/PricingV2VoiceVoiceNumberOutboundCallPrices.md b/rest/pricing/v2/docs/PricingV2VoiceVoiceNumberOutboundCallPrices.md new file mode 100644 index 000000000..9dd027c1a --- /dev/null +++ b/rest/pricing/v2/docs/PricingV2VoiceVoiceNumberOutboundCallPrices.md @@ -0,0 +1,13 @@ +# PricingV2VoiceVoiceNumberOutboundCallPrices + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BasePrice** | **float32** | | [optional] +**CurrentPrice** | **float32** | | [optional] +**OriginationPrefixes** | **[]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/rest/pricing/v2/model_pricing_v2_voice.go b/rest/pricing/v2/model_pricing_v2_voice.go new file mode 100644 index 000000000..011a155e2 --- /dev/null +++ b/rest/pricing/v2/model_pricing_v2_voice.go @@ -0,0 +1,17 @@ +/* + * Twilio - Pricing + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PricingV2Voice struct for PricingV2Voice +type PricingV2Voice struct { + Links map[string]interface{} `json:"links,omitempty"` + Name string `json:"name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/pricing/v2/model_pricing_v2_voice_voice_country.go b/rest/pricing/v2/model_pricing_v2_voice_voice_country.go new file mode 100644 index 000000000..d4f3a61de --- /dev/null +++ b/rest/pricing/v2/model_pricing_v2_voice_voice_country.go @@ -0,0 +1,17 @@ +/* + * Twilio - Pricing + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PricingV2VoiceVoiceCountry struct for PricingV2VoiceVoiceCountry +type PricingV2VoiceVoiceCountry struct { + Country string `json:"country,omitempty"` + IsoCountry string `json:"iso_country,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/pricing/v2/model_pricing_v2_voice_voice_country_instance.go b/rest/pricing/v2/model_pricing_v2_voice_voice_country_instance.go new file mode 100644 index 000000000..1126de8f7 --- /dev/null +++ b/rest/pricing/v2/model_pricing_v2_voice_voice_country_instance.go @@ -0,0 +1,20 @@ +/* + * Twilio - Pricing + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PricingV2VoiceVoiceCountryInstance struct for PricingV2VoiceVoiceCountryInstance +type PricingV2VoiceVoiceCountryInstance struct { + Country string `json:"country,omitempty"` + InboundCallPrices []PricingV2VoiceVoiceCountryInstanceInboundCallPrices `json:"inbound_call_prices,omitempty"` + IsoCountry string `json:"iso_country,omitempty"` + OutboundPrefixPrices []PricingV2VoiceVoiceCountryInstanceOutboundPrefixPrices `json:"outbound_prefix_prices,omitempty"` + PriceUnit string `json:"price_unit,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/pricing/v2/model_pricing_v2_voice_voice_country_instance_inbound_call_prices.go b/rest/pricing/v2/model_pricing_v2_voice_voice_country_instance_inbound_call_prices.go new file mode 100644 index 000000000..8ab611027 --- /dev/null +++ b/rest/pricing/v2/model_pricing_v2_voice_voice_country_instance_inbound_call_prices.go @@ -0,0 +1,17 @@ +/* + * Twilio - Pricing + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PricingV2VoiceVoiceCountryInstanceInboundCallPrices struct for PricingV2VoiceVoiceCountryInstanceInboundCallPrices +type PricingV2VoiceVoiceCountryInstanceInboundCallPrices struct { + BasePrice float32 `json:"base_price,omitempty"` + CurrentPrice float32 `json:"current_price,omitempty"` + NumberType string `json:"number_type,omitempty"` +} diff --git a/rest/pricing/v2/model_pricing_v2_voice_voice_country_instance_outbound_prefix_prices.go b/rest/pricing/v2/model_pricing_v2_voice_voice_country_instance_outbound_prefix_prices.go new file mode 100644 index 000000000..0124ae30d --- /dev/null +++ b/rest/pricing/v2/model_pricing_v2_voice_voice_country_instance_outbound_prefix_prices.go @@ -0,0 +1,19 @@ +/* + * Twilio - Pricing + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PricingV2VoiceVoiceCountryInstanceOutboundPrefixPrices struct for PricingV2VoiceVoiceCountryInstanceOutboundPrefixPrices +type PricingV2VoiceVoiceCountryInstanceOutboundPrefixPrices struct { + BasePrice float32 `json:"base_price,omitempty"` + CurrentPrice float32 `json:"current_price,omitempty"` + DestinationPrefixes []string `json:"destination_prefixes,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + OriginationPrefixes []string `json:"origination_prefixes,omitempty"` +} diff --git a/rest/pricing/v2/model_pricing_v2_voice_voice_country_read_response.go b/rest/pricing/v2/model_pricing_v2_voice_voice_country_read_response.go new file mode 100644 index 000000000..8f3c71fea --- /dev/null +++ b/rest/pricing/v2/model_pricing_v2_voice_voice_country_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Pricing + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PricingV2VoiceVoiceCountryReadResponse struct for PricingV2VoiceVoiceCountryReadResponse +type PricingV2VoiceVoiceCountryReadResponse struct { + Countries []PricingV2VoiceVoiceCountry `json:"countries,omitempty"` + Meta PricingV2VoiceVoiceCountryReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/pricing/v2/model_pricing_v2_voice_voice_country_read_response_meta.go b/rest/pricing/v2/model_pricing_v2_voice_voice_country_read_response_meta.go new file mode 100644 index 000000000..ff246ca84 --- /dev/null +++ b/rest/pricing/v2/model_pricing_v2_voice_voice_country_read_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Pricing + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PricingV2VoiceVoiceCountryReadResponseMeta struct for PricingV2VoiceVoiceCountryReadResponseMeta +type PricingV2VoiceVoiceCountryReadResponseMeta struct { + FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` + NextPageUrl string `json:"next_page_url,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUrl string `json:"previous_page_url,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/pricing/v2/model_pricing_v2_voice_voice_number.go b/rest/pricing/v2/model_pricing_v2_voice_voice_number.go new file mode 100644 index 000000000..48b6b2cf8 --- /dev/null +++ b/rest/pricing/v2/model_pricing_v2_voice_voice_number.go @@ -0,0 +1,22 @@ +/* + * Twilio - Pricing + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PricingV2VoiceVoiceNumber struct for PricingV2VoiceVoiceNumber +type PricingV2VoiceVoiceNumber struct { + Country string `json:"country,omitempty"` + DestinationNumber string `json:"destination_number,omitempty"` + InboundCallPrice PricingV2VoiceVoiceCountryInstanceInboundCallPrices `json:"inbound_call_price,omitempty"` + IsoCountry string `json:"iso_country,omitempty"` + OriginationNumber string `json:"origination_number,omitempty"` + OutboundCallPrices []PricingV2VoiceVoiceNumberOutboundCallPrices `json:"outbound_call_prices,omitempty"` + PriceUnit string `json:"price_unit,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/pricing/v2/model_pricing_v2_voice_voice_number_outbound_call_prices.go b/rest/pricing/v2/model_pricing_v2_voice_voice_number_outbound_call_prices.go new file mode 100644 index 000000000..f8571bbe2 --- /dev/null +++ b/rest/pricing/v2/model_pricing_v2_voice_voice_number_outbound_call_prices.go @@ -0,0 +1,17 @@ +/* + * Twilio - Pricing + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// PricingV2VoiceVoiceNumberOutboundCallPrices struct for PricingV2VoiceVoiceNumberOutboundCallPrices +type PricingV2VoiceVoiceNumberOutboundCallPrices struct { + BasePrice float32 `json:"base_price,omitempty"` + CurrentPrice float32 `json:"current_price,omitempty"` + OriginationPrefixes []string `json:"origination_prefixes,omitempty"` +} diff --git a/rest/pricing/v2/response.go b/rest/pricing/v2/response.go new file mode 100644 index 000000000..cc22e0481 --- /dev/null +++ b/rest/pricing/v2/response.go @@ -0,0 +1,47 @@ +/* + * Twilio - Pricing + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// Response returns a new APIResponse object. +func Response(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// ResponseWithError returns a new APIResponse object with the provided error message. +func ResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/rest/proxy/v1/.openapi-generator-ignore b/rest/proxy/v1/.openapi-generator-ignore new file mode 100644 index 000000000..7484ee590 --- /dev/null +++ b/rest/proxy/v1/.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/rest/proxy/v1/.openapi-generator/VERSION b/rest/proxy/v1/.openapi-generator/VERSION new file mode 100644 index 000000000..ecedc98d1 --- /dev/null +++ b/rest/proxy/v1/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.3.1 \ No newline at end of file diff --git a/rest/proxy/v1/README.md b/rest/proxy/v1/README.md new file mode 100644 index 000000000..6764e2d98 --- /dev/null +++ b/rest/proxy/v1/README.md @@ -0,0 +1,117 @@ +# Go API client for openapi + +This is the public Twilio REST API. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 5.15.0 +- Package version: 1.0.0 +- Build package: com.twilio.oai.TwilioGoGenerator +For more information, please visit [https://support.twilio.com](https://support.twilio.com) + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import "./openapi" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**CreateMessageInteraction**](docs/DefaultApi.md#createmessageinteraction) | **Post** /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{ParticipantSid}/MessageInteractions | +*DefaultApi* | [**CreateParticipant**](docs/DefaultApi.md#createparticipant) | **Post** /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants | +*DefaultApi* | [**CreatePhoneNumber**](docs/DefaultApi.md#createphonenumber) | **Post** /v1/Services/{ServiceSid}/PhoneNumbers | +*DefaultApi* | [**CreateService**](docs/DefaultApi.md#createservice) | **Post** /v1/Services | +*DefaultApi* | [**CreateSession**](docs/DefaultApi.md#createsession) | **Post** /v1/Services/{ServiceSid}/Sessions | +*DefaultApi* | [**CreateShortCode**](docs/DefaultApi.md#createshortcode) | **Post** /v1/Services/{ServiceSid}/ShortCodes | +*DefaultApi* | [**DeleteInteraction**](docs/DefaultApi.md#deleteinteraction) | **Delete** /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Interactions/{Sid} | +*DefaultApi* | [**DeleteParticipant**](docs/DefaultApi.md#deleteparticipant) | **Delete** /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{Sid} | +*DefaultApi* | [**DeletePhoneNumber**](docs/DefaultApi.md#deletephonenumber) | **Delete** /v1/Services/{ServiceSid}/PhoneNumbers/{Sid} | +*DefaultApi* | [**DeleteService**](docs/DefaultApi.md#deleteservice) | **Delete** /v1/Services/{Sid} | +*DefaultApi* | [**DeleteSession**](docs/DefaultApi.md#deletesession) | **Delete** /v1/Services/{ServiceSid}/Sessions/{Sid} | +*DefaultApi* | [**DeleteShortCode**](docs/DefaultApi.md#deleteshortcode) | **Delete** /v1/Services/{ServiceSid}/ShortCodes/{Sid} | +*DefaultApi* | [**FetchInteraction**](docs/DefaultApi.md#fetchinteraction) | **Get** /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Interactions/{Sid} | +*DefaultApi* | [**FetchMessageInteraction**](docs/DefaultApi.md#fetchmessageinteraction) | **Get** /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{ParticipantSid}/MessageInteractions/{Sid} | +*DefaultApi* | [**FetchParticipant**](docs/DefaultApi.md#fetchparticipant) | **Get** /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{Sid} | +*DefaultApi* | [**FetchPhoneNumber**](docs/DefaultApi.md#fetchphonenumber) | **Get** /v1/Services/{ServiceSid}/PhoneNumbers/{Sid} | +*DefaultApi* | [**FetchService**](docs/DefaultApi.md#fetchservice) | **Get** /v1/Services/{Sid} | +*DefaultApi* | [**FetchSession**](docs/DefaultApi.md#fetchsession) | **Get** /v1/Services/{ServiceSid}/Sessions/{Sid} | +*DefaultApi* | [**FetchShortCode**](docs/DefaultApi.md#fetchshortcode) | **Get** /v1/Services/{ServiceSid}/ShortCodes/{Sid} | +*DefaultApi* | [**ListInteraction**](docs/DefaultApi.md#listinteraction) | **Get** /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Interactions | +*DefaultApi* | [**ListMessageInteraction**](docs/DefaultApi.md#listmessageinteraction) | **Get** /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{ParticipantSid}/MessageInteractions | +*DefaultApi* | [**ListParticipant**](docs/DefaultApi.md#listparticipant) | **Get** /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants | +*DefaultApi* | [**ListPhoneNumber**](docs/DefaultApi.md#listphonenumber) | **Get** /v1/Services/{ServiceSid}/PhoneNumbers | +*DefaultApi* | [**ListService**](docs/DefaultApi.md#listservice) | **Get** /v1/Services | +*DefaultApi* | [**ListSession**](docs/DefaultApi.md#listsession) | **Get** /v1/Services/{ServiceSid}/Sessions | +*DefaultApi* | [**ListShortCode**](docs/DefaultApi.md#listshortcode) | **Get** /v1/Services/{ServiceSid}/ShortCodes | +*DefaultApi* | [**UpdatePhoneNumber**](docs/DefaultApi.md#updatephonenumber) | **Post** /v1/Services/{ServiceSid}/PhoneNumbers/{Sid} | +*DefaultApi* | [**UpdateService**](docs/DefaultApi.md#updateservice) | **Post** /v1/Services/{Sid} | +*DefaultApi* | [**UpdateSession**](docs/DefaultApi.md#updatesession) | **Post** /v1/Services/{ServiceSid}/Sessions/{Sid} | +*DefaultApi* | [**UpdateShortCode**](docs/DefaultApi.md#updateshortcode) | **Post** /v1/Services/{ServiceSid}/ShortCodes/{Sid} | + + +## Documentation For Models + + - [CreateMessageInteractionRequest](docs/CreateMessageInteractionRequest.md) + - [CreateParticipantRequest](docs/CreateParticipantRequest.md) + - [CreatePhoneNumberRequest](docs/CreatePhoneNumberRequest.md) + - [CreateServiceRequest](docs/CreateServiceRequest.md) + - [CreateSessionRequest](docs/CreateSessionRequest.md) + - [CreateShortCodeRequest](docs/CreateShortCodeRequest.md) + - [ProxyV1Service](docs/ProxyV1Service.md) + - [ProxyV1ServicePhoneNumber](docs/ProxyV1ServicePhoneNumber.md) + - [ProxyV1ServicePhoneNumberReadResponse](docs/ProxyV1ServicePhoneNumberReadResponse.md) + - [ProxyV1ServiceReadResponse](docs/ProxyV1ServiceReadResponse.md) + - [ProxyV1ServiceReadResponseMeta](docs/ProxyV1ServiceReadResponseMeta.md) + - [ProxyV1ServiceSession](docs/ProxyV1ServiceSession.md) + - [ProxyV1ServiceSessionInteraction](docs/ProxyV1ServiceSessionInteraction.md) + - [ProxyV1ServiceSessionInteractionReadResponse](docs/ProxyV1ServiceSessionInteractionReadResponse.md) + - [ProxyV1ServiceSessionParticipant](docs/ProxyV1ServiceSessionParticipant.md) + - [ProxyV1ServiceSessionParticipantMessageInteraction](docs/ProxyV1ServiceSessionParticipantMessageInteraction.md) + - [ProxyV1ServiceSessionParticipantMessageInteractionReadResponse](docs/ProxyV1ServiceSessionParticipantMessageInteractionReadResponse.md) + - [ProxyV1ServiceSessionParticipantReadResponse](docs/ProxyV1ServiceSessionParticipantReadResponse.md) + - [ProxyV1ServiceSessionReadResponse](docs/ProxyV1ServiceSessionReadResponse.md) + - [ProxyV1ServiceShortCode](docs/ProxyV1ServiceShortCode.md) + - [ProxyV1ServiceShortCodeReadResponse](docs/ProxyV1ServiceShortCodeReadResponse.md) + - [UpdatePhoneNumberRequest](docs/UpdatePhoneNumberRequest.md) + - [UpdateServiceRequest](docs/UpdateServiceRequest.md) + - [UpdateSessionRequest](docs/UpdateSessionRequest.md) + - [UpdateShortCodeRequest](docs/UpdateShortCodeRequest.md) + + +## Documentation For Authorization + + + +## accountSid_authToken + +- **Type**: HTTP basic authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ + UserName: "username", + Password: "password", +}) +r, err := client.Service.Operation(auth, args) +``` + + +## Author + +support@twilio.com + diff --git a/rest/proxy/v1/api_default.go b/rest/proxy/v1/api_default.go new file mode 100644 index 000000000..ffe9cefee --- /dev/null +++ b/rest/proxy/v1/api_default.go @@ -0,0 +1,1253 @@ +/* + * Twilio - Proxy + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "" +) + +type DefaultApiService struct { + baseURL string + client *twilio.Client +} + +func NewDefaultApiService(client *twilio.Client) *DefaultApiService { + return &DefaultApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} +// CreateMessageInteractionParams Optional parameters for the method 'CreateMessageInteraction' +type CreateMessageInteractionParams struct { + Body *string `json:"Body,omitempty"` + MediaUrl *[]string `json:"MediaUrl,omitempty"` +} + +/* +CreateMessageInteraction Method for CreateMessageInteraction +Create a new message Interaction to send directly from your system to one [Participant](https://www.twilio.com/docs/proxy/api/participant). The `inbound` properties for the Interaction will always be empty. + * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) resource. + * @param sessionSid The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) resource. + * @param participantSid The SID of the [Participant](https://www.twilio.com/docs/proxy/api/participant) resource. + * @param optional nil or *CreateMessageInteractionOpts - Optional Parameters: + * @param "Body" (string) - The message to send to the participant + * @param "MediaUrl" ([]string) - Reserved. Not currently supported. +@return ProxyV1ServiceSessionParticipantMessageInteraction +*/ +func (c *DefaultApiService) CreateMessageInteraction(serviceSid string, sessionSid string, participantSid string, params *CreateMessageInteractionParams) (*ProxyV1ServiceSessionParticipantMessageInteraction, error) { + path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{ParticipantSid}/MessageInteractions" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) + path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Body != nil { + data.Set("Body", *params.Body) + } + if params != nil && params.MediaUrl != nil { + data.Set("MediaUrl", *params.MediaUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ProxyV1ServiceSessionParticipantMessageInteraction{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateParticipantParams Optional parameters for the method 'CreateParticipant' +type CreateParticipantParams struct { + FailOnParticipantConflict *bool `json:"FailOnParticipantConflict,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Identifier *string `json:"Identifier,omitempty"` + ProxyIdentifier *string `json:"ProxyIdentifier,omitempty"` + ProxyIdentifierSid *string `json:"ProxyIdentifierSid,omitempty"` +} + +/* +CreateParticipant Method for CreateParticipant +Add a new Participant to the Session + * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) resource. + * @param sessionSid The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) resource. + * @param optional nil or *CreateParticipantOpts - Optional Parameters: + * @param "FailOnParticipantConflict" (bool) - [Experimental] For accounts with the ProxyAllowParticipantConflict account flag, setting to true enables per-request opt-in to allowing Proxy to reject a Participant create request that could cause the same Identifier/ProxyIdentifier pair to be active in multiple Sessions. Depending on the context, this could be a 409 error (Twilio error code 80623) or a 400 error (Twilio error code 80604). If not provided, requests will be allowed to succeed and a Debugger notification (80802) will be emitted. Having multiple, active Participants with the same Identifier/ProxyIdentifier pair causes calls and messages from affected Participants to be routed incorrectly. Please note, the default behavior for accounts without the ProxyAllowParticipantConflict flag is to reject the request as described. This will eventually be the default for all accounts. + * @param "FriendlyName" (string) - The string that you assigned to describe the participant. This value must be 255 characters or fewer. **This value should not have PII.** + * @param "Identifier" (string) - The phone number of the Participant. + * @param "ProxyIdentifier" (string) - The proxy phone number to use for the Participant. If not specified, Proxy will select a number from the pool. + * @param "ProxyIdentifierSid" (string) - The SID of the Proxy Identifier to assign to the Participant. +@return ProxyV1ServiceSessionParticipant +*/ +func (c *DefaultApiService) CreateParticipant(serviceSid string, sessionSid string, params *CreateParticipantParams) (*ProxyV1ServiceSessionParticipant, error) { + path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FailOnParticipantConflict != nil { + data.Set("FailOnParticipantConflict", string(*params.FailOnParticipantConflict)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Identifier != nil { + data.Set("Identifier", *params.Identifier) + } + if params != nil && params.ProxyIdentifier != nil { + data.Set("ProxyIdentifier", *params.ProxyIdentifier) + } + if params != nil && params.ProxyIdentifierSid != nil { + data.Set("ProxyIdentifierSid", *params.ProxyIdentifierSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ProxyV1ServiceSessionParticipant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreatePhoneNumberParams Optional parameters for the method 'CreatePhoneNumber' +type CreatePhoneNumberParams struct { + IsReserved *bool `json:"IsReserved,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + Sid *string `json:"Sid,omitempty"` +} + +/* +CreatePhoneNumber Method for CreatePhoneNumber +Add a Phone Number to a Service's Proxy Number Pool. + * @param serviceSid The SID parent [Service](https://www.twilio.com/docs/proxy/api/service) resource of the new PhoneNumber resource. + * @param optional nil or *CreatePhoneNumberOpts - Optional Parameters: + * @param "IsReserved" (bool) - Whether the new phone number should be reserved and not be assigned to a participant using proxy pool logic. See [Reserved Phone Numbers](https://www.twilio.com/docs/proxy/reserved-phone-numbers) for more information. + * @param "PhoneNumber" (string) - The phone number 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. + * @param "Sid" (string) - The SID of a Twilio [IncomingPhoneNumber](https://www.twilio.com/docs/phone-numbers/api/incomingphonenumber-resource) resource that represents the Twilio Number you would like to assign to your Proxy Service. +@return ProxyV1ServicePhoneNumber +*/ +func (c *DefaultApiService) CreatePhoneNumber(serviceSid string, params *CreatePhoneNumberParams) (*ProxyV1ServicePhoneNumber, error) { + path := "/v1/Services/{ServiceSid}/PhoneNumbers" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.IsReserved != nil { + data.Set("IsReserved", string(*params.IsReserved)) + } + if params != nil && params.PhoneNumber != nil { + data.Set("PhoneNumber", *params.PhoneNumber) + } + if params != nil && params.Sid != nil { + data.Set("Sid", *params.Sid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ProxyV1ServicePhoneNumber{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateServiceParams Optional parameters for the method 'CreateService' +type CreateServiceParams struct { + CallbackUrl *string `json:"CallbackUrl,omitempty"` + ChatInstanceSid *string `json:"ChatInstanceSid,omitempty"` + DefaultTtl *int32 `json:"DefaultTtl,omitempty"` + GeoMatchLevel *string `json:"GeoMatchLevel,omitempty"` + InterceptCallbackUrl *string `json:"InterceptCallbackUrl,omitempty"` + NumberSelectionBehavior *string `json:"NumberSelectionBehavior,omitempty"` + OutOfSessionCallbackUrl *string `json:"OutOfSessionCallbackUrl,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +CreateService Method for CreateService +Create a new Service for Twilio Proxy + * @param optional nil or *CreateServiceOpts - Optional Parameters: + * @param "CallbackUrl" (string) - The URL we should call when the interaction status changes. + * @param "ChatInstanceSid" (string) - The SID of the Chat Service Instance managed by Proxy Service. The Chat Service enables Proxy to forward SMS and channel messages to this chat instance. This is a one-to-one relationship. + * @param "DefaultTtl" (int32) - The default `ttl` value to set for Sessions created in the Service. The TTL (time to live) is measured in seconds after the Session's last create or last Interaction. The default value of `0` indicates an unlimited Session length. You can override a Session's default TTL value by setting its `ttl` value. + * @param "GeoMatchLevel" (string) - Where a proxy number must be located relative to the participant identifier. Can be: `country`, `area-code`, or `extended-area-code`. The default value is `country` and more specific areas than `country` are only available in North America. + * @param "InterceptCallbackUrl" (string) - The URL we call on each interaction. If we receive a 403 status, we block the interaction; otherwise the interaction continues. + * @param "NumberSelectionBehavior" (string) - The preference for Proxy Number selection in the Service instance. Can be: `prefer-sticky` or `avoid-sticky` and the default is `prefer-sticky`. `prefer-sticky` means that we will try and select the same Proxy Number for a given participant if they have previous [Sessions](https://www.twilio.com/docs/proxy/api/session), but we will not fail if that Proxy Number cannot be used. `avoid-sticky` means that we will try to use different Proxy Numbers as long as that is possible within a given pool rather than try and use a previously assigned number. + * @param "OutOfSessionCallbackUrl" (string) - The URL we should call when an inbound call or SMS action occurs on a closed or non-existent Session. If your server (or a Twilio [function](https://www.twilio.com/functions)) responds with valid [TwiML](https://www.twilio.com/docs/voice/twiml), we will process it. This means it is possible, for example, to play a message for a call, send an automated text message response, or redirect a call to another Phone Number. See [Out-of-Session Callback Response Guide](https://www.twilio.com/docs/proxy/out-session-callback-response-guide) for more information. + * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. This value must be 191 characters or fewer in length and be unique. **This value should not have PII.** +@return ProxyV1Service +*/ +func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*ProxyV1Service, error) { + path := "/v1/Services" + + data := url.Values{} + headers := 0 + + if params != nil && params.CallbackUrl != nil { + data.Set("CallbackUrl", *params.CallbackUrl) + } + if params != nil && params.ChatInstanceSid != nil { + data.Set("ChatInstanceSid", *params.ChatInstanceSid) + } + if params != nil && params.DefaultTtl != nil { + data.Set("DefaultTtl", string(*params.DefaultTtl)) + } + if params != nil && params.GeoMatchLevel != nil { + data.Set("GeoMatchLevel", *params.GeoMatchLevel) + } + if params != nil && params.InterceptCallbackUrl != nil { + data.Set("InterceptCallbackUrl", *params.InterceptCallbackUrl) + } + if params != nil && params.NumberSelectionBehavior != nil { + data.Set("NumberSelectionBehavior", *params.NumberSelectionBehavior) + } + if params != nil && params.OutOfSessionCallbackUrl != nil { + data.Set("OutOfSessionCallbackUrl", *params.OutOfSessionCallbackUrl) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ProxyV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateSessionParams Optional parameters for the method 'CreateSession' +type CreateSessionParams struct { + DateExpiry *time.Time `json:"DateExpiry,omitempty"` + FailOnParticipantConflict *bool `json:"FailOnParticipantConflict,omitempty"` + Mode *string `json:"Mode,omitempty"` + Participants *[]map[string]interface{} `json:"Participants,omitempty"` + Status *string `json:"Status,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +CreateSession Method for CreateSession +Create a new Session + * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) resource. + * @param optional nil or *CreateSessionOpts - Optional Parameters: + * @param "DateExpiry" (time.Time) - The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date when the Session should expire. If this is value is present, it overrides the `ttl` value. + * @param "FailOnParticipantConflict" (bool) - [Experimental] For accounts with the ProxyAllowParticipantConflict account flag, setting to true enables per-request opt-in to allowing Proxy to reject a Session create (with Participants) request that could cause the same Identifier/ProxyIdentifier pair to be active in multiple Sessions. Depending on the context, this could be a 409 error (Twilio error code 80623) or a 400 error (Twilio error code 80604). If not provided, requests will be allowed to succeed and a Debugger notification (80802) will be emitted. Having multiple, active Participants with the same Identifier/ProxyIdentifier pair causes calls and messages from affected Participants to be routed incorrectly. Please note, the default behavior for accounts without the ProxyAllowParticipantConflict flag is to reject the request as described. This will eventually be the default for all accounts. + * @param "Mode" (string) - The Mode of the Session. Can be: `message-only`, `voice-only`, or `voice-and-message` and the default value is `voice-and-message`. + * @param "Participants" ([]map[string]interface{}) - The Participant objects to include in the new session. + * @param "Status" (string) - The initial status of the Session. Can be: `open`, `in-progress`, `closed`, `failed`, or `unknown`. The default is `open` on create. + * @param "Ttl" (int32) - The time, in seconds, when the session will expire. The time is measured from the last Session create or the Session's last Interaction. + * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. This value must be 191 characters or fewer in length and be unique. **This value should not have PII.** +@return ProxyV1ServiceSession +*/ +func (c *DefaultApiService) CreateSession(serviceSid string, params *CreateSessionParams) (*ProxyV1ServiceSession, error) { + path := "/v1/Services/{ServiceSid}/Sessions" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.DateExpiry != nil { + data.Set("DateExpiry", string(*params.DateExpiry)) + } + if params != nil && params.FailOnParticipantConflict != nil { + data.Set("FailOnParticipantConflict", string(*params.FailOnParticipantConflict)) + } + if params != nil && params.Mode != nil { + data.Set("Mode", *params.Mode) + } + if params != nil && params.Participants != nil { + v, err := json.Marshal(params.Participants) + + if err != nil { + return nil, err + } + + data.Set("Participants", string(v)) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.Ttl != nil { + data.Set("Ttl", string(*params.Ttl)) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ProxyV1ServiceSession{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateShortCodeParams Optional parameters for the method 'CreateShortCode' +type CreateShortCodeParams struct { + Sid *string `json:"Sid,omitempty"` +} + +/* +CreateShortCode Method for CreateShortCode +Add a Short Code to the Proxy Number Pool for the Service. + * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) resource. + * @param optional nil or *CreateShortCodeOpts - Optional Parameters: + * @param "Sid" (string) - The SID of a Twilio [ShortCode](https://www.twilio.com/docs/sms/api/short-code) resource that represents the short code you would like to assign to your Proxy Service. +@return ProxyV1ServiceShortCode +*/ +func (c *DefaultApiService) CreateShortCode(serviceSid string, params *CreateShortCodeParams) (*ProxyV1ServiceShortCode, error) { + path := "/v1/Services/{ServiceSid}/ShortCodes" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Sid != nil { + data.Set("Sid", *params.Sid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ProxyV1ServiceShortCode{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +DeleteInteraction Method for DeleteInteraction +Delete a specific Interaction. + * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to delete. + * @param sessionSid The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resource to delete. + * @param sid The Twilio-provided string that uniquely identifies the Interaction resource to delete. +*/ +func (c *DefaultApiService) DeleteInteraction(serviceSid string, sessionSid string, sid string) (error) { + path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Interactions/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteParticipant Method for DeleteParticipant +Delete a specific Participant. This is a soft-delete. The participant remains associated with the session and cannot be re-added. Participants are only permanently deleted when the [Session](https://www.twilio.com/docs/proxy/api/session) is deleted. + * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to delete. + * @param sessionSid The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resource to delete. + * @param sid The Twilio-provided string that uniquely identifies the Participant resource to delete. +*/ +func (c *DefaultApiService) DeleteParticipant(serviceSid string, sessionSid string, sid string) (error) { + path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeletePhoneNumber Method for DeletePhoneNumber +Delete a specific Phone Number from a Service. + * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the PhoneNumber resource to delete. + * @param sid The Twilio-provided string that uniquely identifies the PhoneNumber resource to delete. +*/ +func (c *DefaultApiService) DeletePhoneNumber(serviceSid string, sid string) (error) { + path := "/v1/Services/{ServiceSid}/PhoneNumbers/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteService Method for DeleteService +Delete a specific Service. + * @param sid The Twilio-provided string that uniquely identifies the Service resource to delete. +*/ +func (c *DefaultApiService) DeleteService(sid string) (error) { + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteSession Method for DeleteSession +Delete a specific Session. + * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to delete. + * @param sid The Twilio-provided string that uniquely identifies the Session resource to delete. +*/ +func (c *DefaultApiService) DeleteSession(serviceSid string, sid string) (error) { + path := "/v1/Services/{ServiceSid}/Sessions/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteShortCode Method for DeleteShortCode +Delete a specific Short Code from a Service. + * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) resource to delete the ShortCode resource from. + * @param sid The Twilio-provided string that uniquely identifies the ShortCode resource to delete. +*/ +func (c *DefaultApiService) DeleteShortCode(serviceSid string, sid string) (error) { + path := "/v1/Services/{ServiceSid}/ShortCodes/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +FetchInteraction Method for FetchInteraction +Retrieve a list of Interactions for a given [Session](https://www.twilio.com/docs/proxy/api/session). + * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to fetch. + * @param sessionSid The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resource to fetch. + * @param sid The Twilio-provided string that uniquely identifies the Interaction resource to fetch. +@return ProxyV1ServiceSessionInteraction +*/ +func (c *DefaultApiService) FetchInteraction(serviceSid string, sessionSid string, sid string) (*ProxyV1ServiceSessionInteraction, error) { + path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Interactions/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ProxyV1ServiceSessionInteraction{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchMessageInteraction Method for FetchMessageInteraction + * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to fetch. + * @param sessionSid The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resource to fetch. + * @param participantSid The SID of the [Participant](https://www.twilio.com/docs/proxy/api/participant) resource. + * @param sid The Twilio-provided string that uniquely identifies the MessageInteraction resource to fetch. +@return ProxyV1ServiceSessionParticipantMessageInteraction +*/ +func (c *DefaultApiService) FetchMessageInteraction(serviceSid string, sessionSid string, participantSid string, sid string) (*ProxyV1ServiceSessionParticipantMessageInteraction, error) { + path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{ParticipantSid}/MessageInteractions/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) + path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ProxyV1ServiceSessionParticipantMessageInteraction{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchParticipant Method for FetchParticipant +Fetch a specific Participant. + * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to fetch. + * @param sessionSid The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resource to fetch. + * @param sid The Twilio-provided string that uniquely identifies the Participant resource to fetch. +@return ProxyV1ServiceSessionParticipant +*/ +func (c *DefaultApiService) FetchParticipant(serviceSid string, sessionSid string, sid string) (*ProxyV1ServiceSessionParticipant, error) { + path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ProxyV1ServiceSessionParticipant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchPhoneNumber Method for FetchPhoneNumber +Fetch a specific Phone Number. + * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the PhoneNumber resource to fetch. + * @param sid The Twilio-provided string that uniquely identifies the PhoneNumber resource to fetch. +@return ProxyV1ServicePhoneNumber +*/ +func (c *DefaultApiService) FetchPhoneNumber(serviceSid string, sid string) (*ProxyV1ServicePhoneNumber, error) { + path := "/v1/Services/{ServiceSid}/PhoneNumbers/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ProxyV1ServicePhoneNumber{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchService Method for FetchService +Fetch a specific Service. + * @param sid The Twilio-provided string that uniquely identifies the Service resource to fetch. +@return ProxyV1Service +*/ +func (c *DefaultApiService) FetchService(sid string) (*ProxyV1Service, error) { + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ProxyV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchSession Method for FetchSession +Fetch a specific Session. + * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to fetch. + * @param sid The Twilio-provided string that uniquely identifies the Session resource to fetch. +@return ProxyV1ServiceSession +*/ +func (c *DefaultApiService) FetchSession(serviceSid string, sid string) (*ProxyV1ServiceSession, error) { + path := "/v1/Services/{ServiceSid}/Sessions/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ProxyV1ServiceSession{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchShortCode Method for FetchShortCode +Fetch a specific Short Code. + * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) to fetch the resource from. + * @param sid The Twilio-provided string that uniquely identifies the ShortCode resource to fetch. +@return ProxyV1ServiceShortCode +*/ +func (c *DefaultApiService) FetchShortCode(serviceSid string, sid string) (*ProxyV1ServiceShortCode, error) { + path := "/v1/Services/{ServiceSid}/ShortCodes/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ProxyV1ServiceShortCode{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListInteractionParams Optional parameters for the method 'ListInteraction' +type ListInteractionParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListInteraction Method for ListInteraction +Retrieve a list of all Interactions for a Session. A maximum of 100 records will be returned per page. + * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) to read the resources from. + * @param sessionSid The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) to read the resources from. + * @param optional nil or *ListInteractionOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ProxyV1ServiceSessionInteractionReadResponse +*/ +func (c *DefaultApiService) ListInteraction(serviceSid string, sessionSid string, params *ListInteractionParams) (*ProxyV1ServiceSessionInteractionReadResponse, error) { + path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Interactions" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ProxyV1ServiceSessionInteractionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListMessageInteractionParams Optional parameters for the method 'ListMessageInteraction' +type ListMessageInteractionParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListMessageInteraction Method for ListMessageInteraction + * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) to read the resources from. + * @param sessionSid The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) to read the resources from. + * @param participantSid The SID of the [Participant](https://www.twilio.com/docs/proxy/api/participant) to read the resources from. + * @param optional nil or *ListMessageInteractionOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ProxyV1ServiceSessionParticipantMessageInteractionReadResponse +*/ +func (c *DefaultApiService) ListMessageInteraction(serviceSid string, sessionSid string, participantSid string, params *ListMessageInteractionParams) (*ProxyV1ServiceSessionParticipantMessageInteractionReadResponse, error) { + path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{ParticipantSid}/MessageInteractions" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) + path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ProxyV1ServiceSessionParticipantMessageInteractionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListParticipantParams Optional parameters for the method 'ListParticipant' +type ListParticipantParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListParticipant Method for ListParticipant +Retrieve a list of all Participants in a Session. + * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resources to read. + * @param sessionSid The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resources to read. + * @param optional nil or *ListParticipantOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ProxyV1ServiceSessionParticipantReadResponse +*/ +func (c *DefaultApiService) ListParticipant(serviceSid string, sessionSid string, params *ListParticipantParams) (*ProxyV1ServiceSessionParticipantReadResponse, error) { + path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ProxyV1ServiceSessionParticipantReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListPhoneNumberParams Optional parameters for the method 'ListPhoneNumber' +type ListPhoneNumberParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListPhoneNumber Method for ListPhoneNumber +Retrieve a list of all Phone Numbers in the Proxy Number Pool for a Service. A maximum of 100 records will be returned per page. + * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the PhoneNumber resources to read. + * @param optional nil or *ListPhoneNumberOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ProxyV1ServicePhoneNumberReadResponse +*/ +func (c *DefaultApiService) ListPhoneNumber(serviceSid string, params *ListPhoneNumberParams) (*ProxyV1ServicePhoneNumberReadResponse, error) { + path := "/v1/Services/{ServiceSid}/PhoneNumbers" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ProxyV1ServicePhoneNumberReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListServiceParams Optional parameters for the method 'ListService' +type ListServiceParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListService Method for ListService +Retrieve a list of all Services for Twilio Proxy. A maximum of 100 records will be returned per page. + * @param optional nil or *ListServiceOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ProxyV1ServiceReadResponse +*/ +func (c *DefaultApiService) ListService(params *ListServiceParams) (*ProxyV1ServiceReadResponse, error) { + path := "/v1/Services" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ProxyV1ServiceReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListSessionParams Optional parameters for the method 'ListSession' +type ListSessionParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListSession Method for ListSession +Retrieve a list of all Sessions for the Service. A maximum of 100 records will be returned per page. + * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to read. + * @param optional nil or *ListSessionOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ProxyV1ServiceSessionReadResponse +*/ +func (c *DefaultApiService) ListSession(serviceSid string, params *ListSessionParams) (*ProxyV1ServiceSessionReadResponse, error) { + path := "/v1/Services/{ServiceSid}/Sessions" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ProxyV1ServiceSessionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListShortCodeParams Optional parameters for the method 'ListShortCode' +type ListShortCodeParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListShortCode Method for ListShortCode +Retrieve a list of all Short Codes in the Proxy Number Pool for the Service. A maximum of 100 records will be returned per page. + * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) to read the resources from. + * @param optional nil or *ListShortCodeOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ProxyV1ServiceShortCodeReadResponse +*/ +func (c *DefaultApiService) ListShortCode(serviceSid string, params *ListShortCodeParams) (*ProxyV1ServiceShortCodeReadResponse, error) { + path := "/v1/Services/{ServiceSid}/ShortCodes" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ProxyV1ServiceShortCodeReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdatePhoneNumberParams Optional parameters for the method 'UpdatePhoneNumber' +type UpdatePhoneNumberParams struct { + IsReserved *bool `json:"IsReserved,omitempty"` +} + +/* +UpdatePhoneNumber Method for UpdatePhoneNumber +Update a specific Proxy Number. + * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the PhoneNumber resource to update. + * @param sid The Twilio-provided string that uniquely identifies the PhoneNumber resource to update. + * @param optional nil or *UpdatePhoneNumberOpts - Optional Parameters: + * @param "IsReserved" (bool) - Whether the phone number should be reserved and not be assigned to a participant using proxy pool logic. See [Reserved Phone Numbers](https://www.twilio.com/docs/proxy/reserved-phone-numbers) for more information. +@return ProxyV1ServicePhoneNumber +*/ +func (c *DefaultApiService) UpdatePhoneNumber(serviceSid string, sid string, params *UpdatePhoneNumberParams) (*ProxyV1ServicePhoneNumber, error) { + path := "/v1/Services/{ServiceSid}/PhoneNumbers/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.IsReserved != nil { + data.Set("IsReserved", string(*params.IsReserved)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ProxyV1ServicePhoneNumber{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateServiceParams Optional parameters for the method 'UpdateService' +type UpdateServiceParams struct { + CallbackUrl *string `json:"CallbackUrl,omitempty"` + ChatInstanceSid *string `json:"ChatInstanceSid,omitempty"` + DefaultTtl *int32 `json:"DefaultTtl,omitempty"` + GeoMatchLevel *string `json:"GeoMatchLevel,omitempty"` + InterceptCallbackUrl *string `json:"InterceptCallbackUrl,omitempty"` + NumberSelectionBehavior *string `json:"NumberSelectionBehavior,omitempty"` + OutOfSessionCallbackUrl *string `json:"OutOfSessionCallbackUrl,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +UpdateService Method for UpdateService +Update a specific Service. + * @param sid The Twilio-provided string that uniquely identifies the Service resource to update. + * @param optional nil or *UpdateServiceOpts - Optional Parameters: + * @param "CallbackUrl" (string) - The URL we should call when the interaction status changes. + * @param "ChatInstanceSid" (string) - The SID of the Chat Service Instance managed by Proxy Service. The Chat Service enables Proxy to forward SMS and channel messages to this chat instance. This is a one-to-one relationship. + * @param "DefaultTtl" (int32) - The default `ttl` value to set for Sessions created in the Service. The TTL (time to live) is measured in seconds after the Session's last create or last Interaction. The default value of `0` indicates an unlimited Session length. You can override a Session's default TTL value by setting its `ttl` value. + * @param "GeoMatchLevel" (string) - Where a proxy number must be located relative to the participant identifier. Can be: `country`, `area-code`, or `extended-area-code`. The default value is `country` and more specific areas than `country` are only available in North America. + * @param "InterceptCallbackUrl" (string) - The URL we call on each interaction. If we receive a 403 status, we block the interaction; otherwise the interaction continues. + * @param "NumberSelectionBehavior" (string) - The preference for Proxy Number selection in the Service instance. Can be: `prefer-sticky` or `avoid-sticky` and the default is `prefer-sticky`. `prefer-sticky` means that we will try and select the same Proxy Number for a given participant if they have previous [Sessions](https://www.twilio.com/docs/proxy/api/session), but we will not fail if that Proxy Number cannot be used. `avoid-sticky` means that we will try to use different Proxy Numbers as long as that is possible within a given pool rather than try and use a previously assigned number. + * @param "OutOfSessionCallbackUrl" (string) - The URL we should call when an inbound call or SMS action occurs on a closed or non-existent Session. If your server (or a Twilio [function](https://www.twilio.com/functions)) responds with valid [TwiML](https://www.twilio.com/docs/voice/twiml), we will process it. This means it is possible, for example, to play a message for a call, send an automated text message response, or redirect a call to another Phone Number. See [Out-of-Session Callback Response Guide](https://www.twilio.com/docs/proxy/out-session-callback-response-guide) for more information. + * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. This value must be 191 characters or fewer in length and be unique. **This value should not have PII.** +@return ProxyV1Service +*/ +func (c *DefaultApiService) UpdateService(sid string, params *UpdateServiceParams) (*ProxyV1Service, error) { + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CallbackUrl != nil { + data.Set("CallbackUrl", *params.CallbackUrl) + } + if params != nil && params.ChatInstanceSid != nil { + data.Set("ChatInstanceSid", *params.ChatInstanceSid) + } + if params != nil && params.DefaultTtl != nil { + data.Set("DefaultTtl", string(*params.DefaultTtl)) + } + if params != nil && params.GeoMatchLevel != nil { + data.Set("GeoMatchLevel", *params.GeoMatchLevel) + } + if params != nil && params.InterceptCallbackUrl != nil { + data.Set("InterceptCallbackUrl", *params.InterceptCallbackUrl) + } + if params != nil && params.NumberSelectionBehavior != nil { + data.Set("NumberSelectionBehavior", *params.NumberSelectionBehavior) + } + if params != nil && params.OutOfSessionCallbackUrl != nil { + data.Set("OutOfSessionCallbackUrl", *params.OutOfSessionCallbackUrl) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ProxyV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateSessionParams Optional parameters for the method 'UpdateSession' +type UpdateSessionParams struct { + DateExpiry *time.Time `json:"DateExpiry,omitempty"` + FailOnParticipantConflict *bool `json:"FailOnParticipantConflict,omitempty"` + Status *string `json:"Status,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` +} + +/* +UpdateSession Method for UpdateSession +Update a specific Session. + * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to update. + * @param sid The Twilio-provided string that uniquely identifies the Session resource to update. + * @param optional nil or *UpdateSessionOpts - Optional Parameters: + * @param "DateExpiry" (time.Time) - The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date when the Session should expire. If this is value is present, it overrides the `ttl` value. + * @param "FailOnParticipantConflict" (bool) - [Experimental] For accounts with the ProxyAllowParticipantConflict account flag, setting to true enables per-request opt-in to allowing Proxy to return a 400 error (Twilio error code 80604) when a request to set a Session to in-progress would cause Participants with the same Identifier/ProxyIdentifier pair to be active in multiple Sessions. If not provided, requests will be allowed to succeed, and a Debugger notification (80801) will be emitted. Having multiple, active Participants with the same Identifier/ProxyIdentifier pair causes calls and messages from affected Participants to be routed incorrectly. Please note, the default behavior for accounts without the ProxyAllowParticipantConflict flag is to reject the request as described. This will eventually be the default for all accounts. + * @param "Status" (string) - The new status of the resource. Can be: `in-progress` to re-open a session or `closed` to close a session. + * @param "Ttl" (int32) - The time, in seconds, when the session will expire. The time is measured from the last Session create or the Session's last Interaction. +@return ProxyV1ServiceSession +*/ +func (c *DefaultApiService) UpdateSession(serviceSid string, sid string, params *UpdateSessionParams) (*ProxyV1ServiceSession, error) { + path := "/v1/Services/{ServiceSid}/Sessions/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.DateExpiry != nil { + data.Set("DateExpiry", string(*params.DateExpiry)) + } + if params != nil && params.FailOnParticipantConflict != nil { + data.Set("FailOnParticipantConflict", string(*params.FailOnParticipantConflict)) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.Ttl != nil { + data.Set("Ttl", string(*params.Ttl)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ProxyV1ServiceSession{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateShortCodeParams Optional parameters for the method 'UpdateShortCode' +type UpdateShortCodeParams struct { + IsReserved *bool `json:"IsReserved,omitempty"` +} + +/* +UpdateShortCode Method for UpdateShortCode +Update a specific Short Code. + * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to update. + * @param sid The Twilio-provided string that uniquely identifies the ShortCode resource to update. + * @param optional nil or *UpdateShortCodeOpts - Optional Parameters: + * @param "IsReserved" (bool) - Whether the short code should be reserved and not be assigned to a participant using proxy pool logic. See [Reserved Phone Numbers](https://www.twilio.com/docs/proxy/reserved-phone-numbers) for more information. +@return ProxyV1ServiceShortCode +*/ +func (c *DefaultApiService) UpdateShortCode(serviceSid string, sid string, params *UpdateShortCodeParams) (*ProxyV1ServiceShortCode, error) { + path := "/v1/Services/{ServiceSid}/ShortCodes/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.IsReserved != nil { + data.Set("IsReserved", string(*params.IsReserved)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ProxyV1ServiceShortCode{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/proxy/v1/docs/CreateMessageInteractionRequest.md b/rest/proxy/v1/docs/CreateMessageInteractionRequest.md new file mode 100644 index 000000000..a3564c741 --- /dev/null +++ b/rest/proxy/v1/docs/CreateMessageInteractionRequest.md @@ -0,0 +1,12 @@ +# CreateMessageInteractionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Body** | **string** | The message to send to the participant | [optional] +**MediaUrl** | **[]string** | Reserved. Not currently supported. | [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/rest/proxy/v1/docs/CreateParticipantRequest.md b/rest/proxy/v1/docs/CreateParticipantRequest.md new file mode 100644 index 000000000..895c1645a --- /dev/null +++ b/rest/proxy/v1/docs/CreateParticipantRequest.md @@ -0,0 +1,15 @@ +# CreateParticipantRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FailOnParticipantConflict** | **bool** | [Experimental] For accounts with the ProxyAllowParticipantConflict account flag, setting to true enables per-request opt-in to allowing Proxy to reject a Participant create request that could cause the same Identifier/ProxyIdentifier pair to be active in multiple Sessions. Depending on the context, this could be a 409 error (Twilio error code 80623) or a 400 error (Twilio error code 80604). If not provided, requests will be allowed to succeed and a Debugger notification (80802) will be emitted. Having multiple, active Participants with the same Identifier/ProxyIdentifier pair causes calls and messages from affected Participants to be routed incorrectly. Please note, the default behavior for accounts without the ProxyAllowParticipantConflict flag is to reject the request as described. This will eventually be the default for all accounts. | [optional] +**FriendlyName** | **string** | The string that you assigned to describe the participant. This value must be 255 characters or fewer. **This value should not have PII.** | [optional] +**Identifier** | **string** | The phone number of the Participant. | +**ProxyIdentifier** | **string** | The proxy phone number to use for the Participant. If not specified, Proxy will select a number from the pool. | [optional] +**ProxyIdentifierSid** | **string** | The SID of the Proxy Identifier to assign to the Participant. | [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/rest/proxy/v1/docs/CreatePhoneNumberRequest.md b/rest/proxy/v1/docs/CreatePhoneNumberRequest.md new file mode 100644 index 000000000..85cb3721d --- /dev/null +++ b/rest/proxy/v1/docs/CreatePhoneNumberRequest.md @@ -0,0 +1,13 @@ +# CreatePhoneNumberRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsReserved** | **bool** | Whether the new phone number should be reserved and not be assigned to a participant using proxy pool logic. See [Reserved Phone Numbers](https://www.twilio.com/docs/proxy/reserved-phone-numbers) for more information. | [optional] +**PhoneNumber** | **string** | The phone number 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. | [optional] +**Sid** | **string** | The SID of a Twilio [IncomingPhoneNumber](https://www.twilio.com/docs/phone-numbers/api/incomingphonenumber-resource) resource that represents the Twilio Number you would like to assign to your Proxy Service. | [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/rest/proxy/v1/docs/CreateServiceRequest.md b/rest/proxy/v1/docs/CreateServiceRequest.md new file mode 100644 index 000000000..509c50aac --- /dev/null +++ b/rest/proxy/v1/docs/CreateServiceRequest.md @@ -0,0 +1,18 @@ +# CreateServiceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CallbackUrl** | **string** | The URL we should call when the interaction status changes. | [optional] +**ChatInstanceSid** | **string** | The SID of the Chat Service Instance managed by Proxy Service. The Chat Service enables Proxy to forward SMS and channel messages to this chat instance. This is a one-to-one relationship. | [optional] +**DefaultTtl** | **int32** | The default `ttl` value to set for Sessions created in the Service. The TTL (time to live) is measured in seconds after the Session's last create or last Interaction. The default value of `0` indicates an unlimited Session length. You can override a Session's default TTL value by setting its `ttl` value. | [optional] +**GeoMatchLevel** | **string** | Where a proxy number must be located relative to the participant identifier. Can be: `country`, `area-code`, or `extended-area-code`. The default value is `country` and more specific areas than `country` are only available in North America. | [optional] +**InterceptCallbackUrl** | **string** | The URL we call on each interaction. If we receive a 403 status, we block the interaction; otherwise the interaction continues. | [optional] +**NumberSelectionBehavior** | **string** | The preference for Proxy Number selection in the Service instance. Can be: `prefer-sticky` or `avoid-sticky` and the default is `prefer-sticky`. `prefer-sticky` means that we will try and select the same Proxy Number for a given participant if they have previous [Sessions](https://www.twilio.com/docs/proxy/api/session), but we will not fail if that Proxy Number cannot be used. `avoid-sticky` means that we will try to use different Proxy Numbers as long as that is possible within a given pool rather than try and use a previously assigned number. | [optional] +**OutOfSessionCallbackUrl** | **string** | The URL we should call when an inbound call or SMS action occurs on a closed or non-existent Session. If your server (or a Twilio [function](https://www.twilio.com/functions)) responds with valid [TwiML](https://www.twilio.com/docs/voice/twiml), we will process it. This means it is possible, for example, to play a message for a call, send an automated text message response, or redirect a call to another Phone Number. See [Out-of-Session Callback Response Guide](https://www.twilio.com/docs/proxy/out-session-callback-response-guide) for more information. | [optional] +**UniqueName** | **string** | An application-defined string that uniquely identifies the resource. This value must be 191 characters or fewer in length and be unique. **This value should not have PII.** | + +[[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/rest/proxy/v1/docs/CreateSessionRequest.md b/rest/proxy/v1/docs/CreateSessionRequest.md new file mode 100644 index 000000000..e9bd644fd --- /dev/null +++ b/rest/proxy/v1/docs/CreateSessionRequest.md @@ -0,0 +1,17 @@ +# CreateSessionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DateExpiry** | [**time.Time**](time.Time.md) | The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date when the Session should expire. If this is value is present, it overrides the `ttl` value. | [optional] +**FailOnParticipantConflict** | **bool** | [Experimental] For accounts with the ProxyAllowParticipantConflict account flag, setting to true enables per-request opt-in to allowing Proxy to reject a Session create (with Participants) request that could cause the same Identifier/ProxyIdentifier pair to be active in multiple Sessions. Depending on the context, this could be a 409 error (Twilio error code 80623) or a 400 error (Twilio error code 80604). If not provided, requests will be allowed to succeed and a Debugger notification (80802) will be emitted. Having multiple, active Participants with the same Identifier/ProxyIdentifier pair causes calls and messages from affected Participants to be routed incorrectly. Please note, the default behavior for accounts without the ProxyAllowParticipantConflict flag is to reject the request as described. This will eventually be the default for all accounts. | [optional] +**Mode** | **string** | The Mode of the Session. Can be: `message-only`, `voice-only`, or `voice-and-message` and the default value is `voice-and-message`. | [optional] +**Participants** | **[]map[string]interface{}** | The Participant objects to include in the new session. | [optional] +**Status** | **string** | The initial status of the Session. Can be: `open`, `in-progress`, `closed`, `failed`, or `unknown`. The default is `open` on create. | [optional] +**Ttl** | **int32** | The time, in seconds, when the session will expire. The time is measured from the last Session create or the Session's last Interaction. | [optional] +**UniqueName** | **string** | An application-defined string that uniquely identifies the resource. This value must be 191 characters or fewer in length and be unique. **This value should not have PII.** | [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/rest/proxy/v1/docs/CreateShortCodeRequest.md b/rest/proxy/v1/docs/CreateShortCodeRequest.md new file mode 100644 index 000000000..a43891d0c --- /dev/null +++ b/rest/proxy/v1/docs/CreateShortCodeRequest.md @@ -0,0 +1,11 @@ +# CreateShortCodeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Sid** | **string** | The SID of a Twilio [ShortCode](https://www.twilio.com/docs/sms/api/short-code) resource that represents the short code you would like to assign to your Proxy Service. | + +[[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/rest/proxy/v1/docs/DefaultApi.md b/rest/proxy/v1/docs/DefaultApi.md new file mode 100644 index 000000000..7e7ab0c34 --- /dev/null +++ b/rest/proxy/v1/docs/DefaultApi.md @@ -0,0 +1,1304 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateMessageInteraction**](DefaultApi.md#CreateMessageInteraction) | **Post** /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{ParticipantSid}/MessageInteractions | +[**CreateParticipant**](DefaultApi.md#CreateParticipant) | **Post** /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants | +[**CreatePhoneNumber**](DefaultApi.md#CreatePhoneNumber) | **Post** /v1/Services/{ServiceSid}/PhoneNumbers | +[**CreateService**](DefaultApi.md#CreateService) | **Post** /v1/Services | +[**CreateSession**](DefaultApi.md#CreateSession) | **Post** /v1/Services/{ServiceSid}/Sessions | +[**CreateShortCode**](DefaultApi.md#CreateShortCode) | **Post** /v1/Services/{ServiceSid}/ShortCodes | +[**DeleteInteraction**](DefaultApi.md#DeleteInteraction) | **Delete** /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Interactions/{Sid} | +[**DeleteParticipant**](DefaultApi.md#DeleteParticipant) | **Delete** /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{Sid} | +[**DeletePhoneNumber**](DefaultApi.md#DeletePhoneNumber) | **Delete** /v1/Services/{ServiceSid}/PhoneNumbers/{Sid} | +[**DeleteService**](DefaultApi.md#DeleteService) | **Delete** /v1/Services/{Sid} | +[**DeleteSession**](DefaultApi.md#DeleteSession) | **Delete** /v1/Services/{ServiceSid}/Sessions/{Sid} | +[**DeleteShortCode**](DefaultApi.md#DeleteShortCode) | **Delete** /v1/Services/{ServiceSid}/ShortCodes/{Sid} | +[**FetchInteraction**](DefaultApi.md#FetchInteraction) | **Get** /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Interactions/{Sid} | +[**FetchMessageInteraction**](DefaultApi.md#FetchMessageInteraction) | **Get** /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{ParticipantSid}/MessageInteractions/{Sid} | +[**FetchParticipant**](DefaultApi.md#FetchParticipant) | **Get** /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{Sid} | +[**FetchPhoneNumber**](DefaultApi.md#FetchPhoneNumber) | **Get** /v1/Services/{ServiceSid}/PhoneNumbers/{Sid} | +[**FetchService**](DefaultApi.md#FetchService) | **Get** /v1/Services/{Sid} | +[**FetchSession**](DefaultApi.md#FetchSession) | **Get** /v1/Services/{ServiceSid}/Sessions/{Sid} | +[**FetchShortCode**](DefaultApi.md#FetchShortCode) | **Get** /v1/Services/{ServiceSid}/ShortCodes/{Sid} | +[**ListInteraction**](DefaultApi.md#ListInteraction) | **Get** /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Interactions | +[**ListMessageInteraction**](DefaultApi.md#ListMessageInteraction) | **Get** /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{ParticipantSid}/MessageInteractions | +[**ListParticipant**](DefaultApi.md#ListParticipant) | **Get** /v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants | +[**ListPhoneNumber**](DefaultApi.md#ListPhoneNumber) | **Get** /v1/Services/{ServiceSid}/PhoneNumbers | +[**ListService**](DefaultApi.md#ListService) | **Get** /v1/Services | +[**ListSession**](DefaultApi.md#ListSession) | **Get** /v1/Services/{ServiceSid}/Sessions | +[**ListShortCode**](DefaultApi.md#ListShortCode) | **Get** /v1/Services/{ServiceSid}/ShortCodes | +[**UpdatePhoneNumber**](DefaultApi.md#UpdatePhoneNumber) | **Post** /v1/Services/{ServiceSid}/PhoneNumbers/{Sid} | +[**UpdateService**](DefaultApi.md#UpdateService) | **Post** /v1/Services/{Sid} | +[**UpdateSession**](DefaultApi.md#UpdateSession) | **Post** /v1/Services/{ServiceSid}/Sessions/{Sid} | +[**UpdateShortCode**](DefaultApi.md#UpdateShortCode) | **Post** /v1/Services/{ServiceSid}/ShortCodes/{Sid} | + + + +## CreateMessageInteraction + +> ProxyV1ServiceSessionParticipantMessageInteraction CreateMessageInteraction(ctx, serviceSid, sessionSid, participantSid, optional) + + + +Create a new message Interaction to send directly from your system to one [Participant](https://www.twilio.com/docs/proxy/api/participant). The `inbound` properties for the Interaction will always be empty. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) resource. | +**sessionSid** | **string**| The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) resource. | +**participantSid** | **string**| The SID of the [Participant](https://www.twilio.com/docs/proxy/api/participant) resource. | + **optional** | ***CreateMessageInteractionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateMessageInteractionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **body** | **optional.String**| The message to send to the participant | + **mediaUrl** | [**optional.Interface of []string**](string.md)| Reserved. Not currently supported. | + +### Return type + +[**ProxyV1ServiceSessionParticipantMessageInteraction**](proxy.v1.service.session.participant.message_interaction.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) + + +## CreateParticipant + +> ProxyV1ServiceSessionParticipant CreateParticipant(ctx, serviceSid, sessionSid, optional) + + + +Add a new Participant to the Session + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) resource. | +**sessionSid** | **string**| The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) resource. | + **optional** | ***CreateParticipantOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateParticipantOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **failOnParticipantConflict** | **optional.Bool**| [Experimental] For accounts with the ProxyAllowParticipantConflict account flag, setting to true enables per-request opt-in to allowing Proxy to reject a Participant create request that could cause the same Identifier/ProxyIdentifier pair to be active in multiple Sessions. Depending on the context, this could be a 409 error (Twilio error code 80623) or a 400 error (Twilio error code 80604). If not provided, requests will be allowed to succeed and a Debugger notification (80802) will be emitted. Having multiple, active Participants with the same Identifier/ProxyIdentifier pair causes calls and messages from affected Participants to be routed incorrectly. Please note, the default behavior for accounts without the ProxyAllowParticipantConflict flag is to reject the request as described. This will eventually be the default for all accounts. | + **friendlyName** | **optional.String**| The string that you assigned to describe the participant. This value must be 255 characters or fewer. **This value should not have PII.** | + **identifier** | **optional.String**| The phone number of the Participant. | + **proxyIdentifier** | **optional.String**| The proxy phone number to use for the Participant. If not specified, Proxy will select a number from the pool. | + **proxyIdentifierSid** | **optional.String**| The SID of the Proxy Identifier to assign to the Participant. | + +### Return type + +[**ProxyV1ServiceSessionParticipant**](proxy.v1.service.session.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) + + +## CreatePhoneNumber + +> ProxyV1ServicePhoneNumber CreatePhoneNumber(ctx, serviceSid, optional) + + + +Add a Phone Number to a Service's Proxy Number Pool. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID parent [Service](https://www.twilio.com/docs/proxy/api/service) resource of the new PhoneNumber resource. | + **optional** | ***CreatePhoneNumberOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreatePhoneNumberOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **isReserved** | **optional.Bool**| Whether the new phone number should be reserved and not be assigned to a participant using proxy pool logic. See [Reserved Phone Numbers](https://www.twilio.com/docs/proxy/reserved-phone-numbers) for more information. | + **phoneNumber** | **optional.String**| The phone number 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. | + **sid** | **optional.String**| The SID of a Twilio [IncomingPhoneNumber](https://www.twilio.com/docs/phone-numbers/api/incomingphonenumber-resource) resource that represents the Twilio Number you would like to assign to your Proxy Service. | + +### Return type + +[**ProxyV1ServicePhoneNumber**](proxy.v1.service.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) + + +## CreateService + +> ProxyV1Service CreateService(ctx, optional) + + + +Create a new Service for Twilio Proxy + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateServiceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateServiceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **callbackUrl** | **optional.String**| The URL we should call when the interaction status changes. | + **chatInstanceSid** | **optional.String**| The SID of the Chat Service Instance managed by Proxy Service. The Chat Service enables Proxy to forward SMS and channel messages to this chat instance. This is a one-to-one relationship. | + **defaultTtl** | **optional.Int32**| The default `ttl` value to set for Sessions created in the Service. The TTL (time to live) is measured in seconds after the Session's last create or last Interaction. The default value of `0` indicates an unlimited Session length. You can override a Session's default TTL value by setting its `ttl` value. | + **geoMatchLevel** | **optional.String**| Where a proxy number must be located relative to the participant identifier. Can be: `country`, `area-code`, or `extended-area-code`. The default value is `country` and more specific areas than `country` are only available in North America. | + **interceptCallbackUrl** | **optional.String**| The URL we call on each interaction. If we receive a 403 status, we block the interaction; otherwise the interaction continues. | + **numberSelectionBehavior** | **optional.String**| The preference for Proxy Number selection in the Service instance. Can be: `prefer-sticky` or `avoid-sticky` and the default is `prefer-sticky`. `prefer-sticky` means that we will try and select the same Proxy Number for a given participant if they have previous [Sessions](https://www.twilio.com/docs/proxy/api/session), but we will not fail if that Proxy Number cannot be used. `avoid-sticky` means that we will try to use different Proxy Numbers as long as that is possible within a given pool rather than try and use a previously assigned number. | + **outOfSessionCallbackUrl** | **optional.String**| The URL we should call when an inbound call or SMS action occurs on a closed or non-existent Session. If your server (or a Twilio [function](https://www.twilio.com/functions)) responds with valid [TwiML](https://www.twilio.com/docs/voice/twiml), we will process it. This means it is possible, for example, to play a message for a call, send an automated text message response, or redirect a call to another Phone Number. See [Out-of-Session Callback Response Guide](https://www.twilio.com/docs/proxy/out-session-callback-response-guide) for more information. | + **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. This value must be 191 characters or fewer in length and be unique. **This value should not have PII.** | + +### Return type + +[**ProxyV1Service**](proxy.v1.service.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) + + +## CreateSession + +> ProxyV1ServiceSession CreateSession(ctx, serviceSid, optional) + + + +Create a new Session + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) resource. | + **optional** | ***CreateSessionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateSessionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **dateExpiry** | **optional.Time**| The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date when the Session should expire. If this is value is present, it overrides the `ttl` value. | + **failOnParticipantConflict** | **optional.Bool**| [Experimental] For accounts with the ProxyAllowParticipantConflict account flag, setting to true enables per-request opt-in to allowing Proxy to reject a Session create (with Participants) request that could cause the same Identifier/ProxyIdentifier pair to be active in multiple Sessions. Depending on the context, this could be a 409 error (Twilio error code 80623) or a 400 error (Twilio error code 80604). If not provided, requests will be allowed to succeed and a Debugger notification (80802) will be emitted. Having multiple, active Participants with the same Identifier/ProxyIdentifier pair causes calls and messages from affected Participants to be routed incorrectly. Please note, the default behavior for accounts without the ProxyAllowParticipantConflict flag is to reject the request as described. This will eventually be the default for all accounts. | + **mode** | **optional.String**| The Mode of the Session. Can be: `message-only`, `voice-only`, or `voice-and-message` and the default value is `voice-and-message`. | + **participants** | [**optional.Interface of []map[string]interface{}**](map[string]interface{}.md)| The Participant objects to include in the new session. | + **status** | **optional.String**| The initial status of the Session. Can be: `open`, `in-progress`, `closed`, `failed`, or `unknown`. The default is `open` on create. | + **ttl** | **optional.Int32**| The time, in seconds, when the session will expire. The time is measured from the last Session create or the Session's last Interaction. | + **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. This value must be 191 characters or fewer in length and be unique. **This value should not have PII.** | + +### Return type + +[**ProxyV1ServiceSession**](proxy.v1.service.session.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) + + +## CreateShortCode + +> ProxyV1ServiceShortCode CreateShortCode(ctx, serviceSid, optional) + + + +Add a Short Code to the Proxy Number Pool for the Service. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) resource. | + **optional** | ***CreateShortCodeOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateShortCodeOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **sid** | **optional.String**| The SID of a Twilio [ShortCode](https://www.twilio.com/docs/sms/api/short-code) resource that represents the short code you would like to assign to your Proxy Service. | + +### Return type + +[**ProxyV1ServiceShortCode**](proxy.v1.service.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) + + +## DeleteInteraction + +> DeleteInteraction(ctx, serviceSid, sessionSid, sid) + + + +Delete a specific Interaction. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to delete. | +**sessionSid** | **string**| The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resource to delete. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Interaction resource to delete. | + +### 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) + + +## DeleteParticipant + +> DeleteParticipant(ctx, serviceSid, sessionSid, sid) + + + +Delete a specific Participant. This is a soft-delete. The participant remains associated with the session and cannot be re-added. Participants are only permanently deleted when the [Session](https://www.twilio.com/docs/proxy/api/session) is deleted. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to delete. | +**sessionSid** | **string**| The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resource to delete. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Participant resource to delete. | + +### 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) + + +## DeletePhoneNumber + +> DeletePhoneNumber(ctx, serviceSid, sid) + + + +Delete a specific Phone Number from a Service. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the PhoneNumber resource to delete. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the PhoneNumber resource to delete. | + +### 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) + + +## DeleteService + +> DeleteService(ctx, sid) + + + +Delete a specific Service. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the Service resource to delete. | + +### 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) + + +## DeleteSession + +> DeleteSession(ctx, serviceSid, sid) + + + +Delete a specific Session. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to delete. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Session resource to delete. | + +### 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) + + +## DeleteShortCode + +> DeleteShortCode(ctx, serviceSid, sid) + + + +Delete a specific Short Code from a Service. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) resource to delete the ShortCode resource from. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the ShortCode resource to delete. | + +### 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) + + +## FetchInteraction + +> ProxyV1ServiceSessionInteraction FetchInteraction(ctx, serviceSid, sessionSid, sid) + + + +Retrieve a list of Interactions for a given [Session](https://www.twilio.com/docs/proxy/api/session). + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to fetch. | +**sessionSid** | **string**| The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resource to fetch. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Interaction resource to fetch. | + +### Return type + +[**ProxyV1ServiceSessionInteraction**](proxy.v1.service.session.interaction.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) + + +## FetchMessageInteraction + +> ProxyV1ServiceSessionParticipantMessageInteraction FetchMessageInteraction(ctx, serviceSid, sessionSid, participantSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to fetch. | +**sessionSid** | **string**| The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resource to fetch. | +**participantSid** | **string**| The SID of the [Participant](https://www.twilio.com/docs/proxy/api/participant) resource. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the MessageInteraction resource to fetch. | + +### Return type + +[**ProxyV1ServiceSessionParticipantMessageInteraction**](proxy.v1.service.session.participant.message_interaction.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) + + +## FetchParticipant + +> ProxyV1ServiceSessionParticipant FetchParticipant(ctx, serviceSid, sessionSid, sid) + + + +Fetch a specific Participant. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to fetch. | +**sessionSid** | **string**| The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resource to fetch. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Participant resource to fetch. | + +### Return type + +[**ProxyV1ServiceSessionParticipant**](proxy.v1.service.session.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) + + +## FetchPhoneNumber + +> ProxyV1ServicePhoneNumber FetchPhoneNumber(ctx, serviceSid, sid) + + + +Fetch a specific Phone Number. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the PhoneNumber resource to fetch. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the PhoneNumber resource to fetch. | + +### Return type + +[**ProxyV1ServicePhoneNumber**](proxy.v1.service.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) + + +## FetchService + +> ProxyV1Service FetchService(ctx, sid) + + + +Fetch a specific Service. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the Service resource to fetch. | + +### Return type + +[**ProxyV1Service**](proxy.v1.service.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) + + +## FetchSession + +> ProxyV1ServiceSession FetchSession(ctx, serviceSid, sid) + + + +Fetch a specific Session. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to fetch. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Session resource to fetch. | + +### Return type + +[**ProxyV1ServiceSession**](proxy.v1.service.session.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) + + +## FetchShortCode + +> ProxyV1ServiceShortCode FetchShortCode(ctx, serviceSid, sid) + + + +Fetch a specific Short Code. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) to fetch the resource from. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the ShortCode resource to fetch. | + +### Return type + +[**ProxyV1ServiceShortCode**](proxy.v1.service.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) + + +## ListInteraction + +> ProxyV1ServiceSessionInteractionReadResponse ListInteraction(ctx, serviceSid, sessionSid, optional) + + + +Retrieve a list of all Interactions for a Session. A maximum of 100 records will be returned per page. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) to read the resources from. | +**sessionSid** | **string**| The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) to read the resources from. | + **optional** | ***ListInteractionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListInteractionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ProxyV1ServiceSessionInteractionReadResponse**](proxy_v1_service_session_interactionReadResponse.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) + + +## ListMessageInteraction + +> ProxyV1ServiceSessionParticipantMessageInteractionReadResponse ListMessageInteraction(ctx, serviceSid, sessionSid, participantSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) to read the resources from. | +**sessionSid** | **string**| The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) to read the resources from. | +**participantSid** | **string**| The SID of the [Participant](https://www.twilio.com/docs/proxy/api/participant) to read the resources from. | + **optional** | ***ListMessageInteractionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListMessageInteractionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ProxyV1ServiceSessionParticipantMessageInteractionReadResponse**](proxy_v1_service_session_participant_message_interactionReadResponse.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) + + +## ListParticipant + +> ProxyV1ServiceSessionParticipantReadResponse ListParticipant(ctx, serviceSid, sessionSid, optional) + + + +Retrieve a list of all Participants in a Session. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resources to read. | +**sessionSid** | **string**| The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resources to read. | + **optional** | ***ListParticipantOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListParticipantOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ProxyV1ServiceSessionParticipantReadResponse**](proxy_v1_service_session_participantReadResponse.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) + + +## ListPhoneNumber + +> ProxyV1ServicePhoneNumberReadResponse ListPhoneNumber(ctx, serviceSid, optional) + + + +Retrieve a list of all Phone Numbers in the Proxy Number Pool for a Service. A maximum of 100 records will be returned per page. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the PhoneNumber resources to read. | + **optional** | ***ListPhoneNumberOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListPhoneNumberOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ProxyV1ServicePhoneNumberReadResponse**](proxy_v1_service_phone_numberReadResponse.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) + + +## ListService + +> ProxyV1ServiceReadResponse ListService(ctx, optional) + + + +Retrieve a list of all Services for Twilio Proxy. A maximum of 100 records will be returned per page. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListServiceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListServiceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ProxyV1ServiceReadResponse**](proxy_v1_serviceReadResponse.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) + + +## ListSession + +> ProxyV1ServiceSessionReadResponse ListSession(ctx, serviceSid, optional) + + + +Retrieve a list of all Sessions for the Service. A maximum of 100 records will be returned per page. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to read. | + **optional** | ***ListSessionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListSessionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ProxyV1ServiceSessionReadResponse**](proxy_v1_service_sessionReadResponse.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) + + +## ListShortCode + +> ProxyV1ServiceShortCodeReadResponse ListShortCode(ctx, serviceSid, optional) + + + +Retrieve a list of all Short Codes in the Proxy Number Pool for the Service. A maximum of 100 records will be returned per page. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) to read the resources from. | + **optional** | ***ListShortCodeOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListShortCodeOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ProxyV1ServiceShortCodeReadResponse**](proxy_v1_service_short_codeReadResponse.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) + + +## UpdatePhoneNumber + +> ProxyV1ServicePhoneNumber UpdatePhoneNumber(ctx, serviceSid, sid, optional) + + + +Update a specific Proxy Number. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the PhoneNumber resource to update. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the PhoneNumber resource to update. | + **optional** | ***UpdatePhoneNumberOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdatePhoneNumberOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **isReserved** | **optional.Bool**| Whether the phone number should be reserved and not be assigned to a participant using proxy pool logic. See [Reserved Phone Numbers](https://www.twilio.com/docs/proxy/reserved-phone-numbers) for more information. | + +### Return type + +[**ProxyV1ServicePhoneNumber**](proxy.v1.service.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) + + +## UpdateService + +> ProxyV1Service UpdateService(ctx, sid, optional) + + + +Update a specific Service. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the Service resource to update. | + **optional** | ***UpdateServiceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateServiceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **callbackUrl** | **optional.String**| The URL we should call when the interaction status changes. | + **chatInstanceSid** | **optional.String**| The SID of the Chat Service Instance managed by Proxy Service. The Chat Service enables Proxy to forward SMS and channel messages to this chat instance. This is a one-to-one relationship. | + **defaultTtl** | **optional.Int32**| The default `ttl` value to set for Sessions created in the Service. The TTL (time to live) is measured in seconds after the Session's last create or last Interaction. The default value of `0` indicates an unlimited Session length. You can override a Session's default TTL value by setting its `ttl` value. | + **geoMatchLevel** | **optional.String**| Where a proxy number must be located relative to the participant identifier. Can be: `country`, `area-code`, or `extended-area-code`. The default value is `country` and more specific areas than `country` are only available in North America. | + **interceptCallbackUrl** | **optional.String**| The URL we call on each interaction. If we receive a 403 status, we block the interaction; otherwise the interaction continues. | + **numberSelectionBehavior** | **optional.String**| The preference for Proxy Number selection in the Service instance. Can be: `prefer-sticky` or `avoid-sticky` and the default is `prefer-sticky`. `prefer-sticky` means that we will try and select the same Proxy Number for a given participant if they have previous [Sessions](https://www.twilio.com/docs/proxy/api/session), but we will not fail if that Proxy Number cannot be used. `avoid-sticky` means that we will try to use different Proxy Numbers as long as that is possible within a given pool rather than try and use a previously assigned number. | + **outOfSessionCallbackUrl** | **optional.String**| The URL we should call when an inbound call or SMS action occurs on a closed or non-existent Session. If your server (or a Twilio [function](https://www.twilio.com/functions)) responds with valid [TwiML](https://www.twilio.com/docs/voice/twiml), we will process it. This means it is possible, for example, to play a message for a call, send an automated text message response, or redirect a call to another Phone Number. See [Out-of-Session Callback Response Guide](https://www.twilio.com/docs/proxy/out-session-callback-response-guide) for more information. | + **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. This value must be 191 characters or fewer in length and be unique. **This value should not have PII.** | + +### Return type + +[**ProxyV1Service**](proxy.v1.service.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) + + +## UpdateSession + +> ProxyV1ServiceSession UpdateSession(ctx, serviceSid, sid, optional) + + + +Update a specific Session. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to update. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Session resource to update. | + **optional** | ***UpdateSessionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateSessionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **dateExpiry** | **optional.Time**| The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date when the Session should expire. If this is value is present, it overrides the `ttl` value. | + **failOnParticipantConflict** | **optional.Bool**| [Experimental] For accounts with the ProxyAllowParticipantConflict account flag, setting to true enables per-request opt-in to allowing Proxy to return a 400 error (Twilio error code 80604) when a request to set a Session to in-progress would cause Participants with the same Identifier/ProxyIdentifier pair to be active in multiple Sessions. If not provided, requests will be allowed to succeed, and a Debugger notification (80801) will be emitted. Having multiple, active Participants with the same Identifier/ProxyIdentifier pair causes calls and messages from affected Participants to be routed incorrectly. Please note, the default behavior for accounts without the ProxyAllowParticipantConflict flag is to reject the request as described. This will eventually be the default for all accounts. | + **status** | **optional.String**| The new status of the resource. Can be: `in-progress` to re-open a session or `closed` to close a session. | + **ttl** | **optional.Int32**| The time, in seconds, when the session will expire. The time is measured from the last Session create or the Session's last Interaction. | + +### Return type + +[**ProxyV1ServiceSession**](proxy.v1.service.session.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) + + +## UpdateShortCode + +> ProxyV1ServiceShortCode UpdateShortCode(ctx, serviceSid, sid, optional) + + + +Update a specific Short Code. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to update. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the ShortCode resource to update. | + **optional** | ***UpdateShortCodeOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateShortCodeOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **isReserved** | **optional.Bool**| Whether the short code should be reserved and not be assigned to a participant using proxy pool logic. See [Reserved Phone Numbers](https://www.twilio.com/docs/proxy/reserved-phone-numbers) for more information. | + +### Return type + +[**ProxyV1ServiceShortCode**](proxy.v1.service.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) + diff --git a/rest/proxy/v1/docs/ProxyV1Service.md b/rest/proxy/v1/docs/ProxyV1Service.md new file mode 100644 index 000000000..b64df70ca --- /dev/null +++ b/rest/proxy/v1/docs/ProxyV1Service.md @@ -0,0 +1,24 @@ +# ProxyV1Service + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**CallbackUrl** | **string** | | [optional] +**ChatInstanceSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**DefaultTtl** | **int32** | | [optional] +**GeoMatchLevel** | **string** | | [optional] +**InterceptCallbackUrl** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**NumberSelectionBehavior** | **string** | | [optional] +**OutOfSessionCallbackUrl** | **string** | | [optional] +**Sid** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **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/rest/proxy/v1/docs/ProxyV1ServicePhoneNumber.md b/rest/proxy/v1/docs/ProxyV1ServicePhoneNumber.md new file mode 100644 index 000000000..582e1a2aa --- /dev/null +++ b/rest/proxy/v1/docs/ProxyV1ServicePhoneNumber.md @@ -0,0 +1,22 @@ +# ProxyV1ServicePhoneNumber + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Capabilities** | [**map[string]interface{}**](.md) | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**InUse** | **int32** | | [optional] +**IsReserved** | **bool** | | [optional] +**IsoCountry** | **string** | | [optional] +**PhoneNumber** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/proxy/v1/docs/ProxyV1ServicePhoneNumberReadResponse.md b/rest/proxy/v1/docs/ProxyV1ServicePhoneNumberReadResponse.md new file mode 100644 index 000000000..7a3102b8c --- /dev/null +++ b/rest/proxy/v1/docs/ProxyV1ServicePhoneNumberReadResponse.md @@ -0,0 +1,12 @@ +# ProxyV1ServicePhoneNumberReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**ProxyV1ServiceReadResponseMeta**](proxy_v1_serviceReadResponse_meta.md) | | [optional] +**PhoneNumbers** | [**[]ProxyV1ServicePhoneNumber**](proxy.v1.service.phone_number.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/rest/proxy/v1/docs/ProxyV1ServiceReadResponse.md b/rest/proxy/v1/docs/ProxyV1ServiceReadResponse.md new file mode 100644 index 000000000..d6e690128 --- /dev/null +++ b/rest/proxy/v1/docs/ProxyV1ServiceReadResponse.md @@ -0,0 +1,12 @@ +# ProxyV1ServiceReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**ProxyV1ServiceReadResponseMeta**](proxy_v1_serviceReadResponse_meta.md) | | [optional] +**Services** | [**[]ProxyV1Service**](proxy.v1.service.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/rest/proxy/v1/docs/ProxyV1ServiceReadResponseMeta.md b/rest/proxy/v1/docs/ProxyV1ServiceReadResponseMeta.md new file mode 100644 index 000000000..d3301decf --- /dev/null +++ b/rest/proxy/v1/docs/ProxyV1ServiceReadResponseMeta.md @@ -0,0 +1,17 @@ +# ProxyV1ServiceReadResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/proxy/v1/docs/ProxyV1ServiceSession.md b/rest/proxy/v1/docs/ProxyV1ServiceSession.md new file mode 100644 index 000000000..3d2acb4ca --- /dev/null +++ b/rest/proxy/v1/docs/ProxyV1ServiceSession.md @@ -0,0 +1,26 @@ +# ProxyV1ServiceSession + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ClosedReason** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateEnded** | [**time.Time**](time.Time.md) | | [optional] +**DateExpiry** | [**time.Time**](time.Time.md) | | [optional] +**DateLastInteraction** | [**time.Time**](time.Time.md) | | [optional] +**DateStarted** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Mode** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Status** | **string** | | [optional] +**Ttl** | **int32** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **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/rest/proxy/v1/docs/ProxyV1ServiceSessionInteraction.md b/rest/proxy/v1/docs/ProxyV1ServiceSessionInteraction.md new file mode 100644 index 000000000..32d33c8c1 --- /dev/null +++ b/rest/proxy/v1/docs/ProxyV1ServiceSessionInteraction.md @@ -0,0 +1,29 @@ +# ProxyV1ServiceSessionInteraction + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Data** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**InboundParticipantSid** | **string** | | [optional] +**InboundResourceSid** | **string** | | [optional] +**InboundResourceStatus** | **string** | | [optional] +**InboundResourceType** | **string** | | [optional] +**InboundResourceUrl** | **string** | | [optional] +**OutboundParticipantSid** | **string** | | [optional] +**OutboundResourceSid** | **string** | | [optional] +**OutboundResourceStatus** | **string** | | [optional] +**OutboundResourceType** | **string** | | [optional] +**OutboundResourceUrl** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**SessionSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Type** | **string** | | [optional] +**Url** | **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/rest/proxy/v1/docs/ProxyV1ServiceSessionInteractionReadResponse.md b/rest/proxy/v1/docs/ProxyV1ServiceSessionInteractionReadResponse.md new file mode 100644 index 000000000..0a34cb3ec --- /dev/null +++ b/rest/proxy/v1/docs/ProxyV1ServiceSessionInteractionReadResponse.md @@ -0,0 +1,12 @@ +# ProxyV1ServiceSessionInteractionReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Interactions** | [**[]ProxyV1ServiceSessionInteraction**](proxy.v1.service.session.interaction.md) | | [optional] +**Meta** | [**ProxyV1ServiceReadResponseMeta**](proxy_v1_serviceReadResponse_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/rest/proxy/v1/docs/ProxyV1ServiceSessionParticipant.md b/rest/proxy/v1/docs/ProxyV1ServiceSessionParticipant.md new file mode 100644 index 000000000..e6c12193b --- /dev/null +++ b/rest/proxy/v1/docs/ProxyV1ServiceSessionParticipant.md @@ -0,0 +1,23 @@ +# ProxyV1ServiceSessionParticipant + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateDeleted** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Identifier** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**ProxyIdentifier** | **string** | | [optional] +**ProxyIdentifierSid** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**SessionSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/proxy/v1/docs/ProxyV1ServiceSessionParticipantMessageInteraction.md b/rest/proxy/v1/docs/ProxyV1ServiceSessionParticipantMessageInteraction.md new file mode 100644 index 000000000..cc4e0d44b --- /dev/null +++ b/rest/proxy/v1/docs/ProxyV1ServiceSessionParticipantMessageInteraction.md @@ -0,0 +1,30 @@ +# ProxyV1ServiceSessionParticipantMessageInteraction + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Data** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**InboundParticipantSid** | **string** | | [optional] +**InboundResourceSid** | **string** | | [optional] +**InboundResourceStatus** | **string** | | [optional] +**InboundResourceType** | **string** | | [optional] +**InboundResourceUrl** | **string** | | [optional] +**OutboundParticipantSid** | **string** | | [optional] +**OutboundResourceSid** | **string** | | [optional] +**OutboundResourceStatus** | **string** | | [optional] +**OutboundResourceType** | **string** | | [optional] +**OutboundResourceUrl** | **string** | | [optional] +**ParticipantSid** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**SessionSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Type** | **string** | | [optional] +**Url** | **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/rest/proxy/v1/docs/ProxyV1ServiceSessionParticipantMessageInteractionReadResponse.md b/rest/proxy/v1/docs/ProxyV1ServiceSessionParticipantMessageInteractionReadResponse.md new file mode 100644 index 000000000..db43a4038 --- /dev/null +++ b/rest/proxy/v1/docs/ProxyV1ServiceSessionParticipantMessageInteractionReadResponse.md @@ -0,0 +1,12 @@ +# ProxyV1ServiceSessionParticipantMessageInteractionReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Interactions** | [**[]ProxyV1ServiceSessionParticipantMessageInteraction**](proxy.v1.service.session.participant.message_interaction.md) | | [optional] +**Meta** | [**ProxyV1ServiceReadResponseMeta**](proxy_v1_serviceReadResponse_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/rest/proxy/v1/docs/ProxyV1ServiceSessionParticipantReadResponse.md b/rest/proxy/v1/docs/ProxyV1ServiceSessionParticipantReadResponse.md new file mode 100644 index 000000000..bb6ddcb51 --- /dev/null +++ b/rest/proxy/v1/docs/ProxyV1ServiceSessionParticipantReadResponse.md @@ -0,0 +1,12 @@ +# ProxyV1ServiceSessionParticipantReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**ProxyV1ServiceReadResponseMeta**](proxy_v1_serviceReadResponse_meta.md) | | [optional] +**Participants** | [**[]ProxyV1ServiceSessionParticipant**](proxy.v1.service.session.participant.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/rest/proxy/v1/docs/ProxyV1ServiceSessionReadResponse.md b/rest/proxy/v1/docs/ProxyV1ServiceSessionReadResponse.md new file mode 100644 index 000000000..8f4d8ab6f --- /dev/null +++ b/rest/proxy/v1/docs/ProxyV1ServiceSessionReadResponse.md @@ -0,0 +1,12 @@ +# ProxyV1ServiceSessionReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**ProxyV1ServiceReadResponseMeta**](proxy_v1_serviceReadResponse_meta.md) | | [optional] +**Sessions** | [**[]ProxyV1ServiceSession**](proxy.v1.service.session.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/rest/proxy/v1/docs/ProxyV1ServiceShortCode.md b/rest/proxy/v1/docs/ProxyV1ServiceShortCode.md new file mode 100644 index 000000000..2a046da1b --- /dev/null +++ b/rest/proxy/v1/docs/ProxyV1ServiceShortCode.md @@ -0,0 +1,20 @@ +# ProxyV1ServiceShortCode + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Capabilities** | [**map[string]interface{}**](.md) | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**IsReserved** | **bool** | | [optional] +**IsoCountry** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**ShortCode** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/proxy/v1/docs/ProxyV1ServiceShortCodeReadResponse.md b/rest/proxy/v1/docs/ProxyV1ServiceShortCodeReadResponse.md new file mode 100644 index 000000000..c8dfdd3c0 --- /dev/null +++ b/rest/proxy/v1/docs/ProxyV1ServiceShortCodeReadResponse.md @@ -0,0 +1,12 @@ +# ProxyV1ServiceShortCodeReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**ProxyV1ServiceReadResponseMeta**](proxy_v1_serviceReadResponse_meta.md) | | [optional] +**ShortCodes** | [**[]ProxyV1ServiceShortCode**](proxy.v1.service.short_code.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/rest/proxy/v1/docs/UpdatePhoneNumberRequest.md b/rest/proxy/v1/docs/UpdatePhoneNumberRequest.md new file mode 100644 index 000000000..526a8b03f --- /dev/null +++ b/rest/proxy/v1/docs/UpdatePhoneNumberRequest.md @@ -0,0 +1,11 @@ +# UpdatePhoneNumberRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsReserved** | **bool** | Whether the phone number should be reserved and not be assigned to a participant using proxy pool logic. See [Reserved Phone Numbers](https://www.twilio.com/docs/proxy/reserved-phone-numbers) for more information. | [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/rest/proxy/v1/docs/UpdateServiceRequest.md b/rest/proxy/v1/docs/UpdateServiceRequest.md new file mode 100644 index 000000000..b04108447 --- /dev/null +++ b/rest/proxy/v1/docs/UpdateServiceRequest.md @@ -0,0 +1,18 @@ +# UpdateServiceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CallbackUrl** | **string** | The URL we should call when the interaction status changes. | [optional] +**ChatInstanceSid** | **string** | The SID of the Chat Service Instance managed by Proxy Service. The Chat Service enables Proxy to forward SMS and channel messages to this chat instance. This is a one-to-one relationship. | [optional] +**DefaultTtl** | **int32** | The default `ttl` value to set for Sessions created in the Service. The TTL (time to live) is measured in seconds after the Session's last create or last Interaction. The default value of `0` indicates an unlimited Session length. You can override a Session's default TTL value by setting its `ttl` value. | [optional] +**GeoMatchLevel** | **string** | Where a proxy number must be located relative to the participant identifier. Can be: `country`, `area-code`, or `extended-area-code`. The default value is `country` and more specific areas than `country` are only available in North America. | [optional] +**InterceptCallbackUrl** | **string** | The URL we call on each interaction. If we receive a 403 status, we block the interaction; otherwise the interaction continues. | [optional] +**NumberSelectionBehavior** | **string** | The preference for Proxy Number selection in the Service instance. Can be: `prefer-sticky` or `avoid-sticky` and the default is `prefer-sticky`. `prefer-sticky` means that we will try and select the same Proxy Number for a given participant if they have previous [Sessions](https://www.twilio.com/docs/proxy/api/session), but we will not fail if that Proxy Number cannot be used. `avoid-sticky` means that we will try to use different Proxy Numbers as long as that is possible within a given pool rather than try and use a previously assigned number. | [optional] +**OutOfSessionCallbackUrl** | **string** | The URL we should call when an inbound call or SMS action occurs on a closed or non-existent Session. If your server (or a Twilio [function](https://www.twilio.com/functions)) responds with valid [TwiML](https://www.twilio.com/docs/voice/twiml), we will process it. This means it is possible, for example, to play a message for a call, send an automated text message response, or redirect a call to another Phone Number. See [Out-of-Session Callback Response Guide](https://www.twilio.com/docs/proxy/out-session-callback-response-guide) for more information. | [optional] +**UniqueName** | **string** | An application-defined string that uniquely identifies the resource. This value must be 191 characters or fewer in length and be unique. **This value should not have PII.** | [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/rest/proxy/v1/docs/UpdateSessionRequest.md b/rest/proxy/v1/docs/UpdateSessionRequest.md new file mode 100644 index 000000000..fcc64ba07 --- /dev/null +++ b/rest/proxy/v1/docs/UpdateSessionRequest.md @@ -0,0 +1,14 @@ +# UpdateSessionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DateExpiry** | [**time.Time**](time.Time.md) | The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date when the Session should expire. If this is value is present, it overrides the `ttl` value. | [optional] +**FailOnParticipantConflict** | **bool** | [Experimental] For accounts with the ProxyAllowParticipantConflict account flag, setting to true enables per-request opt-in to allowing Proxy to return a 400 error (Twilio error code 80604) when a request to set a Session to in-progress would cause Participants with the same Identifier/ProxyIdentifier pair to be active in multiple Sessions. If not provided, requests will be allowed to succeed, and a Debugger notification (80801) will be emitted. Having multiple, active Participants with the same Identifier/ProxyIdentifier pair causes calls and messages from affected Participants to be routed incorrectly. Please note, the default behavior for accounts without the ProxyAllowParticipantConflict flag is to reject the request as described. This will eventually be the default for all accounts. | [optional] +**Status** | **string** | The new status of the resource. Can be: `in-progress` to re-open a session or `closed` to close a session. | [optional] +**Ttl** | **int32** | The time, in seconds, when the session will expire. The time is measured from the last Session create or the Session's last Interaction. | [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/rest/proxy/v1/docs/UpdateShortCodeRequest.md b/rest/proxy/v1/docs/UpdateShortCodeRequest.md new file mode 100644 index 000000000..4c6f151aa --- /dev/null +++ b/rest/proxy/v1/docs/UpdateShortCodeRequest.md @@ -0,0 +1,11 @@ +# UpdateShortCodeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsReserved** | **bool** | Whether the short code should be reserved and not be assigned to a participant using proxy pool logic. See [Reserved Phone Numbers](https://www.twilio.com/docs/proxy/reserved-phone-numbers) for more information. | [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/rest/proxy/v1/model_create_message_interaction_request.go b/rest/proxy/v1/model_create_message_interaction_request.go new file mode 100644 index 000000000..181ba8b85 --- /dev/null +++ b/rest/proxy/v1/model_create_message_interaction_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Proxy + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateMessageInteractionRequest struct for CreateMessageInteractionRequest +type CreateMessageInteractionRequest struct { + // The message to send to the participant + Body string `json:"Body,omitempty"` + // Reserved. Not currently supported. + MediaUrl []string `json:"MediaUrl,omitempty"` +} diff --git a/rest/proxy/v1/model_create_participant_request.go b/rest/proxy/v1/model_create_participant_request.go new file mode 100644 index 000000000..0baf9c5e0 --- /dev/null +++ b/rest/proxy/v1/model_create_participant_request.go @@ -0,0 +1,24 @@ +/* + * Twilio - Proxy + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateParticipantRequest struct for CreateParticipantRequest +type CreateParticipantRequest struct { + // [Experimental] For accounts with the ProxyAllowParticipantConflict account flag, setting to true enables per-request opt-in to allowing Proxy to reject a Participant create request that could cause the same Identifier/ProxyIdentifier pair to be active in multiple Sessions. Depending on the context, this could be a 409 error (Twilio error code 80623) or a 400 error (Twilio error code 80604). If not provided, requests will be allowed to succeed and a Debugger notification (80802) will be emitted. Having multiple, active Participants with the same Identifier/ProxyIdentifier pair causes calls and messages from affected Participants to be routed incorrectly. Please note, the default behavior for accounts without the ProxyAllowParticipantConflict flag is to reject the request as described. This will eventually be the default for all accounts. + FailOnParticipantConflict bool `json:"FailOnParticipantConflict,omitempty"` + // The string that you assigned to describe the participant. This value must be 255 characters or fewer. **This value should not have PII.** + FriendlyName string `json:"FriendlyName,omitempty"` + // The phone number of the Participant. + Identifier string `json:"Identifier"` + // The proxy phone number to use for the Participant. If not specified, Proxy will select a number from the pool. + ProxyIdentifier string `json:"ProxyIdentifier,omitempty"` + // The SID of the Proxy Identifier to assign to the Participant. + ProxyIdentifierSid string `json:"ProxyIdentifierSid,omitempty"` +} diff --git a/rest/proxy/v1/model_create_phone_number_request.go b/rest/proxy/v1/model_create_phone_number_request.go new file mode 100644 index 000000000..5b525df86 --- /dev/null +++ b/rest/proxy/v1/model_create_phone_number_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Proxy + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreatePhoneNumberRequest struct for CreatePhoneNumberRequest +type CreatePhoneNumberRequest struct { + // Whether the new phone number should be reserved and not be assigned to a participant using proxy pool logic. See [Reserved Phone Numbers](https://www.twilio.com/docs/proxy/reserved-phone-numbers) for more information. + IsReserved bool `json:"IsReserved,omitempty"` + // The phone number 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. + PhoneNumber string `json:"PhoneNumber,omitempty"` + // The SID of a Twilio [IncomingPhoneNumber](https://www.twilio.com/docs/phone-numbers/api/incomingphonenumber-resource) resource that represents the Twilio Number you would like to assign to your Proxy Service. + Sid string `json:"Sid,omitempty"` +} diff --git a/rest/proxy/v1/model_create_service_request.go b/rest/proxy/v1/model_create_service_request.go new file mode 100644 index 000000000..2e9b4ab1d --- /dev/null +++ b/rest/proxy/v1/model_create_service_request.go @@ -0,0 +1,30 @@ +/* + * Twilio - Proxy + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateServiceRequest struct for CreateServiceRequest +type CreateServiceRequest struct { + // The URL we should call when the interaction status changes. + CallbackUrl string `json:"CallbackUrl,omitempty"` + // The SID of the Chat Service Instance managed by Proxy Service. The Chat Service enables Proxy to forward SMS and channel messages to this chat instance. This is a one-to-one relationship. + ChatInstanceSid string `json:"ChatInstanceSid,omitempty"` + // The default `ttl` value to set for Sessions created in the Service. The TTL (time to live) is measured in seconds after the Session's last create or last Interaction. The default value of `0` indicates an unlimited Session length. You can override a Session's default TTL value by setting its `ttl` value. + DefaultTtl int32 `json:"DefaultTtl,omitempty"` + // Where a proxy number must be located relative to the participant identifier. Can be: `country`, `area-code`, or `extended-area-code`. The default value is `country` and more specific areas than `country` are only available in North America. + GeoMatchLevel string `json:"GeoMatchLevel,omitempty"` + // The URL we call on each interaction. If we receive a 403 status, we block the interaction; otherwise the interaction continues. + InterceptCallbackUrl string `json:"InterceptCallbackUrl,omitempty"` + // The preference for Proxy Number selection in the Service instance. Can be: `prefer-sticky` or `avoid-sticky` and the default is `prefer-sticky`. `prefer-sticky` means that we will try and select the same Proxy Number for a given participant if they have previous [Sessions](https://www.twilio.com/docs/proxy/api/session), but we will not fail if that Proxy Number cannot be used. `avoid-sticky` means that we will try to use different Proxy Numbers as long as that is possible within a given pool rather than try and use a previously assigned number. + NumberSelectionBehavior string `json:"NumberSelectionBehavior,omitempty"` + // The URL we should call when an inbound call or SMS action occurs on a closed or non-existent Session. If your server (or a Twilio [function](https://www.twilio.com/functions)) responds with valid [TwiML](https://www.twilio.com/docs/voice/twiml), we will process it. This means it is possible, for example, to play a message for a call, send an automated text message response, or redirect a call to another Phone Number. See [Out-of-Session Callback Response Guide](https://www.twilio.com/docs/proxy/out-session-callback-response-guide) for more information. + OutOfSessionCallbackUrl string `json:"OutOfSessionCallbackUrl,omitempty"` + // An application-defined string that uniquely identifies the resource. This value must be 191 characters or fewer in length and be unique. **This value should not have PII.** + UniqueName string `json:"UniqueName"` +} diff --git a/rest/proxy/v1/model_create_session_request.go b/rest/proxy/v1/model_create_session_request.go new file mode 100644 index 000000000..62251cfa4 --- /dev/null +++ b/rest/proxy/v1/model_create_session_request.go @@ -0,0 +1,31 @@ +/* + * Twilio - Proxy + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// CreateSessionRequest struct for CreateSessionRequest +type CreateSessionRequest struct { + // The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date when the Session should expire. If this is value is present, it overrides the `ttl` value. + DateExpiry time.Time `json:"DateExpiry,omitempty"` + // [Experimental] For accounts with the ProxyAllowParticipantConflict account flag, setting to true enables per-request opt-in to allowing Proxy to reject a Session create (with Participants) request that could cause the same Identifier/ProxyIdentifier pair to be active in multiple Sessions. Depending on the context, this could be a 409 error (Twilio error code 80623) or a 400 error (Twilio error code 80604). If not provided, requests will be allowed to succeed and a Debugger notification (80802) will be emitted. Having multiple, active Participants with the same Identifier/ProxyIdentifier pair causes calls and messages from affected Participants to be routed incorrectly. Please note, the default behavior for accounts without the ProxyAllowParticipantConflict flag is to reject the request as described. This will eventually be the default for all accounts. + FailOnParticipantConflict bool `json:"FailOnParticipantConflict,omitempty"` + // The Mode of the Session. Can be: `message-only`, `voice-only`, or `voice-and-message` and the default value is `voice-and-message`. + Mode string `json:"Mode,omitempty"` + // The Participant objects to include in the new session. + Participants []map[string]interface{} `json:"Participants,omitempty"` + // The initial status of the Session. Can be: `open`, `in-progress`, `closed`, `failed`, or `unknown`. The default is `open` on create. + Status string `json:"Status,omitempty"` + // The time, in seconds, when the session will expire. The time is measured from the last Session create or the Session's last Interaction. + Ttl int32 `json:"Ttl,omitempty"` + // An application-defined string that uniquely identifies the resource. This value must be 191 characters or fewer in length and be unique. **This value should not have PII.** + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/proxy/v1/model_create_short_code_request.go b/rest/proxy/v1/model_create_short_code_request.go new file mode 100644 index 000000000..3e850c82d --- /dev/null +++ b/rest/proxy/v1/model_create_short_code_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Proxy + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateShortCodeRequest struct for CreateShortCodeRequest +type CreateShortCodeRequest struct { + // The SID of a Twilio [ShortCode](https://www.twilio.com/docs/sms/api/short-code) resource that represents the short code you would like to assign to your Proxy Service. + Sid string `json:"Sid"` +} diff --git a/rest/proxy/v1/model_proxy_v1_service.go b/rest/proxy/v1/model_proxy_v1_service.go new file mode 100644 index 000000000..12092e92e --- /dev/null +++ b/rest/proxy/v1/model_proxy_v1_service.go @@ -0,0 +1,31 @@ +/* + * Twilio - Proxy + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ProxyV1Service struct for ProxyV1Service +type ProxyV1Service struct { + AccountSid string `json:"account_sid,omitempty"` + CallbackUrl string `json:"callback_url,omitempty"` + ChatInstanceSid string `json:"chat_instance_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + DefaultTtl int32 `json:"default_ttl,omitempty"` + GeoMatchLevel string `json:"geo_match_level,omitempty"` + InterceptCallbackUrl string `json:"intercept_callback_url,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + NumberSelectionBehavior string `json:"number_selection_behavior,omitempty"` + OutOfSessionCallbackUrl string `json:"out_of_session_callback_url,omitempty"` + Sid string `json:"sid,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/proxy/v1/model_proxy_v1_service_phone_number.go b/rest/proxy/v1/model_proxy_v1_service_phone_number.go new file mode 100644 index 000000000..a7e6d3bba --- /dev/null +++ b/rest/proxy/v1/model_proxy_v1_service_phone_number.go @@ -0,0 +1,29 @@ +/* + * Twilio - Proxy + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ProxyV1ServicePhoneNumber struct for ProxyV1ServicePhoneNumber +type ProxyV1ServicePhoneNumber struct { + AccountSid string `json:"account_sid,omitempty"` + Capabilities map[string]interface{} `json:"capabilities,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + InUse int32 `json:"in_use,omitempty"` + IsReserved bool `json:"is_reserved,omitempty"` + IsoCountry string `json:"iso_country,omitempty"` + PhoneNumber string `json:"phone_number,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/proxy/v1/model_proxy_v1_service_phone_number_read_response.go b/rest/proxy/v1/model_proxy_v1_service_phone_number_read_response.go new file mode 100644 index 000000000..53e1f4783 --- /dev/null +++ b/rest/proxy/v1/model_proxy_v1_service_phone_number_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Proxy + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ProxyV1ServicePhoneNumberReadResponse struct for ProxyV1ServicePhoneNumberReadResponse +type ProxyV1ServicePhoneNumberReadResponse struct { + Meta ProxyV1ServiceReadResponseMeta `json:"meta,omitempty"` + PhoneNumbers []ProxyV1ServicePhoneNumber `json:"phone_numbers,omitempty"` +} diff --git a/rest/proxy/v1/model_proxy_v1_service_read_response.go b/rest/proxy/v1/model_proxy_v1_service_read_response.go new file mode 100644 index 000000000..4a5e7b96e --- /dev/null +++ b/rest/proxy/v1/model_proxy_v1_service_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Proxy + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ProxyV1ServiceReadResponse struct for ProxyV1ServiceReadResponse +type ProxyV1ServiceReadResponse struct { + Meta ProxyV1ServiceReadResponseMeta `json:"meta,omitempty"` + Services []ProxyV1Service `json:"services,omitempty"` +} diff --git a/rest/proxy/v1/model_proxy_v1_service_read_response_meta.go b/rest/proxy/v1/model_proxy_v1_service_read_response_meta.go new file mode 100644 index 000000000..f3e767054 --- /dev/null +++ b/rest/proxy/v1/model_proxy_v1_service_read_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Proxy + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ProxyV1ServiceReadResponseMeta struct for ProxyV1ServiceReadResponseMeta +type ProxyV1ServiceReadResponseMeta struct { + FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` + NextPageUrl string `json:"next_page_url,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUrl string `json:"previous_page_url,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/proxy/v1/model_proxy_v1_service_session.go b/rest/proxy/v1/model_proxy_v1_service_session.go new file mode 100644 index 000000000..ac5f98ace --- /dev/null +++ b/rest/proxy/v1/model_proxy_v1_service_session.go @@ -0,0 +1,33 @@ +/* + * Twilio - Proxy + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ProxyV1ServiceSession struct for ProxyV1ServiceSession +type ProxyV1ServiceSession struct { + AccountSid string `json:"account_sid,omitempty"` + ClosedReason string `json:"closed_reason,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateEnded time.Time `json:"date_ended,omitempty"` + DateExpiry time.Time `json:"date_expiry,omitempty"` + DateLastInteraction time.Time `json:"date_last_interaction,omitempty"` + DateStarted time.Time `json:"date_started,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Mode string `json:"mode,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Status string `json:"status,omitempty"` + Ttl int32 `json:"ttl,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/proxy/v1/model_proxy_v1_service_session_interaction.go b/rest/proxy/v1/model_proxy_v1_service_session_interaction.go new file mode 100644 index 000000000..d6afc136c --- /dev/null +++ b/rest/proxy/v1/model_proxy_v1_service_session_interaction.go @@ -0,0 +1,36 @@ +/* + * Twilio - Proxy + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ProxyV1ServiceSessionInteraction struct for ProxyV1ServiceSessionInteraction +type ProxyV1ServiceSessionInteraction struct { + AccountSid string `json:"account_sid,omitempty"` + Data string `json:"data,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + InboundParticipantSid string `json:"inbound_participant_sid,omitempty"` + InboundResourceSid string `json:"inbound_resource_sid,omitempty"` + InboundResourceStatus string `json:"inbound_resource_status,omitempty"` + InboundResourceType string `json:"inbound_resource_type,omitempty"` + InboundResourceUrl string `json:"inbound_resource_url,omitempty"` + OutboundParticipantSid string `json:"outbound_participant_sid,omitempty"` + OutboundResourceSid string `json:"outbound_resource_sid,omitempty"` + OutboundResourceStatus string `json:"outbound_resource_status,omitempty"` + OutboundResourceType string `json:"outbound_resource_type,omitempty"` + OutboundResourceUrl string `json:"outbound_resource_url,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + SessionSid string `json:"session_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Type string `json:"type,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/proxy/v1/model_proxy_v1_service_session_interaction_read_response.go b/rest/proxy/v1/model_proxy_v1_service_session_interaction_read_response.go new file mode 100644 index 000000000..909c53619 --- /dev/null +++ b/rest/proxy/v1/model_proxy_v1_service_session_interaction_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Proxy + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ProxyV1ServiceSessionInteractionReadResponse struct for ProxyV1ServiceSessionInteractionReadResponse +type ProxyV1ServiceSessionInteractionReadResponse struct { + Interactions []ProxyV1ServiceSessionInteraction `json:"interactions,omitempty"` + Meta ProxyV1ServiceReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/proxy/v1/model_proxy_v1_service_session_participant.go b/rest/proxy/v1/model_proxy_v1_service_session_participant.go new file mode 100644 index 000000000..93e1edf4b --- /dev/null +++ b/rest/proxy/v1/model_proxy_v1_service_session_participant.go @@ -0,0 +1,30 @@ +/* + * Twilio - Proxy + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ProxyV1ServiceSessionParticipant struct for ProxyV1ServiceSessionParticipant +type ProxyV1ServiceSessionParticipant struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateDeleted time.Time `json:"date_deleted,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Identifier string `json:"identifier,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + ProxyIdentifier string `json:"proxy_identifier,omitempty"` + ProxyIdentifierSid string `json:"proxy_identifier_sid,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + SessionSid string `json:"session_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/proxy/v1/model_proxy_v1_service_session_participant_message_interaction.go b/rest/proxy/v1/model_proxy_v1_service_session_participant_message_interaction.go new file mode 100644 index 000000000..0c679ce4a --- /dev/null +++ b/rest/proxy/v1/model_proxy_v1_service_session_participant_message_interaction.go @@ -0,0 +1,37 @@ +/* + * Twilio - Proxy + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ProxyV1ServiceSessionParticipantMessageInteraction struct for ProxyV1ServiceSessionParticipantMessageInteraction +type ProxyV1ServiceSessionParticipantMessageInteraction struct { + AccountSid string `json:"account_sid,omitempty"` + Data string `json:"data,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + InboundParticipantSid string `json:"inbound_participant_sid,omitempty"` + InboundResourceSid string `json:"inbound_resource_sid,omitempty"` + InboundResourceStatus string `json:"inbound_resource_status,omitempty"` + InboundResourceType string `json:"inbound_resource_type,omitempty"` + InboundResourceUrl string `json:"inbound_resource_url,omitempty"` + OutboundParticipantSid string `json:"outbound_participant_sid,omitempty"` + OutboundResourceSid string `json:"outbound_resource_sid,omitempty"` + OutboundResourceStatus string `json:"outbound_resource_status,omitempty"` + OutboundResourceType string `json:"outbound_resource_type,omitempty"` + OutboundResourceUrl string `json:"outbound_resource_url,omitempty"` + ParticipantSid string `json:"participant_sid,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + SessionSid string `json:"session_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Type string `json:"type,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/proxy/v1/model_proxy_v1_service_session_participant_message_interaction_read_response.go b/rest/proxy/v1/model_proxy_v1_service_session_participant_message_interaction_read_response.go new file mode 100644 index 000000000..6a190e3cc --- /dev/null +++ b/rest/proxy/v1/model_proxy_v1_service_session_participant_message_interaction_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Proxy + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ProxyV1ServiceSessionParticipantMessageInteractionReadResponse struct for ProxyV1ServiceSessionParticipantMessageInteractionReadResponse +type ProxyV1ServiceSessionParticipantMessageInteractionReadResponse struct { + Interactions []ProxyV1ServiceSessionParticipantMessageInteraction `json:"interactions,omitempty"` + Meta ProxyV1ServiceReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/proxy/v1/model_proxy_v1_service_session_participant_read_response.go b/rest/proxy/v1/model_proxy_v1_service_session_participant_read_response.go new file mode 100644 index 000000000..12746691f --- /dev/null +++ b/rest/proxy/v1/model_proxy_v1_service_session_participant_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Proxy + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ProxyV1ServiceSessionParticipantReadResponse struct for ProxyV1ServiceSessionParticipantReadResponse +type ProxyV1ServiceSessionParticipantReadResponse struct { + Meta ProxyV1ServiceReadResponseMeta `json:"meta,omitempty"` + Participants []ProxyV1ServiceSessionParticipant `json:"participants,omitempty"` +} diff --git a/rest/proxy/v1/model_proxy_v1_service_session_read_response.go b/rest/proxy/v1/model_proxy_v1_service_session_read_response.go new file mode 100644 index 000000000..53339ebbc --- /dev/null +++ b/rest/proxy/v1/model_proxy_v1_service_session_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Proxy + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ProxyV1ServiceSessionReadResponse struct for ProxyV1ServiceSessionReadResponse +type ProxyV1ServiceSessionReadResponse struct { + Meta ProxyV1ServiceReadResponseMeta `json:"meta,omitempty"` + Sessions []ProxyV1ServiceSession `json:"sessions,omitempty"` +} diff --git a/rest/proxy/v1/model_proxy_v1_service_short_code.go b/rest/proxy/v1/model_proxy_v1_service_short_code.go new file mode 100644 index 000000000..ecd47f711 --- /dev/null +++ b/rest/proxy/v1/model_proxy_v1_service_short_code.go @@ -0,0 +1,27 @@ +/* + * Twilio - Proxy + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ProxyV1ServiceShortCode struct for ProxyV1ServiceShortCode +type ProxyV1ServiceShortCode struct { + AccountSid string `json:"account_sid,omitempty"` + Capabilities map[string]interface{} `json:"capabilities,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + IsReserved bool `json:"is_reserved,omitempty"` + IsoCountry string `json:"iso_country,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + ShortCode string `json:"short_code,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/proxy/v1/model_proxy_v1_service_short_code_read_response.go b/rest/proxy/v1/model_proxy_v1_service_short_code_read_response.go new file mode 100644 index 000000000..26345c796 --- /dev/null +++ b/rest/proxy/v1/model_proxy_v1_service_short_code_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Proxy + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ProxyV1ServiceShortCodeReadResponse struct for ProxyV1ServiceShortCodeReadResponse +type ProxyV1ServiceShortCodeReadResponse struct { + Meta ProxyV1ServiceReadResponseMeta `json:"meta,omitempty"` + ShortCodes []ProxyV1ServiceShortCode `json:"short_codes,omitempty"` +} diff --git a/rest/proxy/v1/model_update_phone_number_request.go b/rest/proxy/v1/model_update_phone_number_request.go new file mode 100644 index 000000000..5a606a69e --- /dev/null +++ b/rest/proxy/v1/model_update_phone_number_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Proxy + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdatePhoneNumberRequest struct for UpdatePhoneNumberRequest +type UpdatePhoneNumberRequest struct { + // Whether the phone number should be reserved and not be assigned to a participant using proxy pool logic. See [Reserved Phone Numbers](https://www.twilio.com/docs/proxy/reserved-phone-numbers) for more information. + IsReserved bool `json:"IsReserved,omitempty"` +} diff --git a/rest/proxy/v1/model_update_service_request.go b/rest/proxy/v1/model_update_service_request.go new file mode 100644 index 000000000..ab5560ea0 --- /dev/null +++ b/rest/proxy/v1/model_update_service_request.go @@ -0,0 +1,30 @@ +/* + * Twilio - Proxy + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateServiceRequest struct for UpdateServiceRequest +type UpdateServiceRequest struct { + // The URL we should call when the interaction status changes. + CallbackUrl string `json:"CallbackUrl,omitempty"` + // The SID of the Chat Service Instance managed by Proxy Service. The Chat Service enables Proxy to forward SMS and channel messages to this chat instance. This is a one-to-one relationship. + ChatInstanceSid string `json:"ChatInstanceSid,omitempty"` + // The default `ttl` value to set for Sessions created in the Service. The TTL (time to live) is measured in seconds after the Session's last create or last Interaction. The default value of `0` indicates an unlimited Session length. You can override a Session's default TTL value by setting its `ttl` value. + DefaultTtl int32 `json:"DefaultTtl,omitempty"` + // Where a proxy number must be located relative to the participant identifier. Can be: `country`, `area-code`, or `extended-area-code`. The default value is `country` and more specific areas than `country` are only available in North America. + GeoMatchLevel string `json:"GeoMatchLevel,omitempty"` + // The URL we call on each interaction. If we receive a 403 status, we block the interaction; otherwise the interaction continues. + InterceptCallbackUrl string `json:"InterceptCallbackUrl,omitempty"` + // The preference for Proxy Number selection in the Service instance. Can be: `prefer-sticky` or `avoid-sticky` and the default is `prefer-sticky`. `prefer-sticky` means that we will try and select the same Proxy Number for a given participant if they have previous [Sessions](https://www.twilio.com/docs/proxy/api/session), but we will not fail if that Proxy Number cannot be used. `avoid-sticky` means that we will try to use different Proxy Numbers as long as that is possible within a given pool rather than try and use a previously assigned number. + NumberSelectionBehavior string `json:"NumberSelectionBehavior,omitempty"` + // The URL we should call when an inbound call or SMS action occurs on a closed or non-existent Session. If your server (or a Twilio [function](https://www.twilio.com/functions)) responds with valid [TwiML](https://www.twilio.com/docs/voice/twiml), we will process it. This means it is possible, for example, to play a message for a call, send an automated text message response, or redirect a call to another Phone Number. See [Out-of-Session Callback Response Guide](https://www.twilio.com/docs/proxy/out-session-callback-response-guide) for more information. + OutOfSessionCallbackUrl string `json:"OutOfSessionCallbackUrl,omitempty"` + // An application-defined string that uniquely identifies the resource. This value must be 191 characters or fewer in length and be unique. **This value should not have PII.** + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/proxy/v1/model_update_session_request.go b/rest/proxy/v1/model_update_session_request.go new file mode 100644 index 000000000..378a271c9 --- /dev/null +++ b/rest/proxy/v1/model_update_session_request.go @@ -0,0 +1,25 @@ +/* + * Twilio - Proxy + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// UpdateSessionRequest struct for UpdateSessionRequest +type UpdateSessionRequest struct { + // The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date when the Session should expire. If this is value is present, it overrides the `ttl` value. + DateExpiry time.Time `json:"DateExpiry,omitempty"` + // [Experimental] For accounts with the ProxyAllowParticipantConflict account flag, setting to true enables per-request opt-in to allowing Proxy to return a 400 error (Twilio error code 80604) when a request to set a Session to in-progress would cause Participants with the same Identifier/ProxyIdentifier pair to be active in multiple Sessions. If not provided, requests will be allowed to succeed, and a Debugger notification (80801) will be emitted. Having multiple, active Participants with the same Identifier/ProxyIdentifier pair causes calls and messages from affected Participants to be routed incorrectly. Please note, the default behavior for accounts without the ProxyAllowParticipantConflict flag is to reject the request as described. This will eventually be the default for all accounts. + FailOnParticipantConflict bool `json:"FailOnParticipantConflict,omitempty"` + // The new status of the resource. Can be: `in-progress` to re-open a session or `closed` to close a session. + Status string `json:"Status,omitempty"` + // The time, in seconds, when the session will expire. The time is measured from the last Session create or the Session's last Interaction. + Ttl int32 `json:"Ttl,omitempty"` +} diff --git a/rest/proxy/v1/model_update_short_code_request.go b/rest/proxy/v1/model_update_short_code_request.go new file mode 100644 index 000000000..f97f68b85 --- /dev/null +++ b/rest/proxy/v1/model_update_short_code_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Proxy + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateShortCodeRequest struct for UpdateShortCodeRequest +type UpdateShortCodeRequest struct { + // Whether the short code should be reserved and not be assigned to a participant using proxy pool logic. See [Reserved Phone Numbers](https://www.twilio.com/docs/proxy/reserved-phone-numbers) for more information. + IsReserved bool `json:"IsReserved,omitempty"` +} diff --git a/rest/proxy/v1/response.go b/rest/proxy/v1/response.go new file mode 100644 index 000000000..9cab03790 --- /dev/null +++ b/rest/proxy/v1/response.go @@ -0,0 +1,47 @@ +/* + * Twilio - Proxy + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// Response returns a new APIResponse object. +func Response(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// ResponseWithError returns a new APIResponse object with the provided error message. +func ResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/rest/serverless/v1/.openapi-generator-ignore b/rest/serverless/v1/.openapi-generator-ignore new file mode 100644 index 000000000..7484ee590 --- /dev/null +++ b/rest/serverless/v1/.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/rest/serverless/v1/.openapi-generator/VERSION b/rest/serverless/v1/.openapi-generator/VERSION new file mode 100644 index 000000000..ecedc98d1 --- /dev/null +++ b/rest/serverless/v1/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.3.1 \ No newline at end of file diff --git a/rest/serverless/v1/README.md b/rest/serverless/v1/README.md new file mode 100644 index 000000000..dab5a122b --- /dev/null +++ b/rest/serverless/v1/README.md @@ -0,0 +1,135 @@ +# Go API client for openapi + +This is the public Twilio REST API. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 5.15.0 +- Package version: 1.0.0 +- Build package: com.twilio.oai.TwilioGoGenerator +For more information, please visit [https://support.twilio.com](https://support.twilio.com) + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import "./openapi" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**CreateAsset**](docs/DefaultApi.md#createasset) | **Post** /v1/Services/{ServiceSid}/Assets | +*DefaultApi* | [**CreateBuild**](docs/DefaultApi.md#createbuild) | **Post** /v1/Services/{ServiceSid}/Builds | +*DefaultApi* | [**CreateDeployment**](docs/DefaultApi.md#createdeployment) | **Post** /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments | +*DefaultApi* | [**CreateEnvironment**](docs/DefaultApi.md#createenvironment) | **Post** /v1/Services/{ServiceSid}/Environments | +*DefaultApi* | [**CreateFunction**](docs/DefaultApi.md#createfunction) | **Post** /v1/Services/{ServiceSid}/Functions | +*DefaultApi* | [**CreateService**](docs/DefaultApi.md#createservice) | **Post** /v1/Services | +*DefaultApi* | [**CreateVariable**](docs/DefaultApi.md#createvariable) | **Post** /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables | +*DefaultApi* | [**DeleteAsset**](docs/DefaultApi.md#deleteasset) | **Delete** /v1/Services/{ServiceSid}/Assets/{Sid} | +*DefaultApi* | [**DeleteBuild**](docs/DefaultApi.md#deletebuild) | **Delete** /v1/Services/{ServiceSid}/Builds/{Sid} | +*DefaultApi* | [**DeleteEnvironment**](docs/DefaultApi.md#deleteenvironment) | **Delete** /v1/Services/{ServiceSid}/Environments/{Sid} | +*DefaultApi* | [**DeleteFunction**](docs/DefaultApi.md#deletefunction) | **Delete** /v1/Services/{ServiceSid}/Functions/{Sid} | +*DefaultApi* | [**DeleteService**](docs/DefaultApi.md#deleteservice) | **Delete** /v1/Services/{Sid} | +*DefaultApi* | [**DeleteVariable**](docs/DefaultApi.md#deletevariable) | **Delete** /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables/{Sid} | +*DefaultApi* | [**FetchAsset**](docs/DefaultApi.md#fetchasset) | **Get** /v1/Services/{ServiceSid}/Assets/{Sid} | +*DefaultApi* | [**FetchAssetVersion**](docs/DefaultApi.md#fetchassetversion) | **Get** /v1/Services/{ServiceSid}/Assets/{AssetSid}/Versions/{Sid} | +*DefaultApi* | [**FetchBuild**](docs/DefaultApi.md#fetchbuild) | **Get** /v1/Services/{ServiceSid}/Builds/{Sid} | +*DefaultApi* | [**FetchBuildStatus**](docs/DefaultApi.md#fetchbuildstatus) | **Get** /v1/Services/{ServiceSid}/Builds/{Sid}/Status | +*DefaultApi* | [**FetchDeployment**](docs/DefaultApi.md#fetchdeployment) | **Get** /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments/{Sid} | +*DefaultApi* | [**FetchEnvironment**](docs/DefaultApi.md#fetchenvironment) | **Get** /v1/Services/{ServiceSid}/Environments/{Sid} | +*DefaultApi* | [**FetchFunction**](docs/DefaultApi.md#fetchfunction) | **Get** /v1/Services/{ServiceSid}/Functions/{Sid} | +*DefaultApi* | [**FetchFunctionVersion**](docs/DefaultApi.md#fetchfunctionversion) | **Get** /v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions/{Sid} | +*DefaultApi* | [**FetchFunctionVersionContent**](docs/DefaultApi.md#fetchfunctionversioncontent) | **Get** /v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions/{Sid}/Content | +*DefaultApi* | [**FetchLog**](docs/DefaultApi.md#fetchlog) | **Get** /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Logs/{Sid} | +*DefaultApi* | [**FetchService**](docs/DefaultApi.md#fetchservice) | **Get** /v1/Services/{Sid} | +*DefaultApi* | [**FetchVariable**](docs/DefaultApi.md#fetchvariable) | **Get** /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables/{Sid} | +*DefaultApi* | [**ListAsset**](docs/DefaultApi.md#listasset) | **Get** /v1/Services/{ServiceSid}/Assets | +*DefaultApi* | [**ListAssetVersion**](docs/DefaultApi.md#listassetversion) | **Get** /v1/Services/{ServiceSid}/Assets/{AssetSid}/Versions | +*DefaultApi* | [**ListBuild**](docs/DefaultApi.md#listbuild) | **Get** /v1/Services/{ServiceSid}/Builds | +*DefaultApi* | [**ListDeployment**](docs/DefaultApi.md#listdeployment) | **Get** /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments | +*DefaultApi* | [**ListEnvironment**](docs/DefaultApi.md#listenvironment) | **Get** /v1/Services/{ServiceSid}/Environments | +*DefaultApi* | [**ListFunction**](docs/DefaultApi.md#listfunction) | **Get** /v1/Services/{ServiceSid}/Functions | +*DefaultApi* | [**ListFunctionVersion**](docs/DefaultApi.md#listfunctionversion) | **Get** /v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions | +*DefaultApi* | [**ListLog**](docs/DefaultApi.md#listlog) | **Get** /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Logs | +*DefaultApi* | [**ListService**](docs/DefaultApi.md#listservice) | **Get** /v1/Services | +*DefaultApi* | [**ListVariable**](docs/DefaultApi.md#listvariable) | **Get** /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables | +*DefaultApi* | [**UpdateAsset**](docs/DefaultApi.md#updateasset) | **Post** /v1/Services/{ServiceSid}/Assets/{Sid} | +*DefaultApi* | [**UpdateFunction**](docs/DefaultApi.md#updatefunction) | **Post** /v1/Services/{ServiceSid}/Functions/{Sid} | +*DefaultApi* | [**UpdateService**](docs/DefaultApi.md#updateservice) | **Post** /v1/Services/{Sid} | +*DefaultApi* | [**UpdateVariable**](docs/DefaultApi.md#updatevariable) | **Post** /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables/{Sid} | + + +## Documentation For Models + + - [CreateAssetRequest](docs/CreateAssetRequest.md) + - [CreateBuildRequest](docs/CreateBuildRequest.md) + - [CreateDeploymentRequest](docs/CreateDeploymentRequest.md) + - [CreateEnvironmentRequest](docs/CreateEnvironmentRequest.md) + - [CreateFunctionRequest](docs/CreateFunctionRequest.md) + - [CreateServiceRequest](docs/CreateServiceRequest.md) + - [CreateVariableRequest](docs/CreateVariableRequest.md) + - [ServerlessV1Service](docs/ServerlessV1Service.md) + - [ServerlessV1ServiceAsset](docs/ServerlessV1ServiceAsset.md) + - [ServerlessV1ServiceAssetAssetVersion](docs/ServerlessV1ServiceAssetAssetVersion.md) + - [ServerlessV1ServiceAssetAssetVersionReadResponse](docs/ServerlessV1ServiceAssetAssetVersionReadResponse.md) + - [ServerlessV1ServiceAssetReadResponse](docs/ServerlessV1ServiceAssetReadResponse.md) + - [ServerlessV1ServiceBuild](docs/ServerlessV1ServiceBuild.md) + - [ServerlessV1ServiceBuildBuildStatus](docs/ServerlessV1ServiceBuildBuildStatus.md) + - [ServerlessV1ServiceBuildReadResponse](docs/ServerlessV1ServiceBuildReadResponse.md) + - [ServerlessV1ServiceEnvironment](docs/ServerlessV1ServiceEnvironment.md) + - [ServerlessV1ServiceEnvironmentDeployment](docs/ServerlessV1ServiceEnvironmentDeployment.md) + - [ServerlessV1ServiceEnvironmentDeploymentReadResponse](docs/ServerlessV1ServiceEnvironmentDeploymentReadResponse.md) + - [ServerlessV1ServiceEnvironmentLog](docs/ServerlessV1ServiceEnvironmentLog.md) + - [ServerlessV1ServiceEnvironmentLogReadResponse](docs/ServerlessV1ServiceEnvironmentLogReadResponse.md) + - [ServerlessV1ServiceEnvironmentReadResponse](docs/ServerlessV1ServiceEnvironmentReadResponse.md) + - [ServerlessV1ServiceEnvironmentVariable](docs/ServerlessV1ServiceEnvironmentVariable.md) + - [ServerlessV1ServiceEnvironmentVariableReadResponse](docs/ServerlessV1ServiceEnvironmentVariableReadResponse.md) + - [ServerlessV1ServiceFunction](docs/ServerlessV1ServiceFunction.md) + - [ServerlessV1ServiceFunctionFunctionVersion](docs/ServerlessV1ServiceFunctionFunctionVersion.md) + - [ServerlessV1ServiceFunctionFunctionVersionFunctionVersionContent](docs/ServerlessV1ServiceFunctionFunctionVersionFunctionVersionContent.md) + - [ServerlessV1ServiceFunctionFunctionVersionReadResponse](docs/ServerlessV1ServiceFunctionFunctionVersionReadResponse.md) + - [ServerlessV1ServiceFunctionReadResponse](docs/ServerlessV1ServiceFunctionReadResponse.md) + - [ServerlessV1ServiceReadResponse](docs/ServerlessV1ServiceReadResponse.md) + - [ServerlessV1ServiceReadResponseMeta](docs/ServerlessV1ServiceReadResponseMeta.md) + - [UpdateAssetRequest](docs/UpdateAssetRequest.md) + - [UpdateFunctionRequest](docs/UpdateFunctionRequest.md) + - [UpdateServiceRequest](docs/UpdateServiceRequest.md) + - [UpdateVariableRequest](docs/UpdateVariableRequest.md) + + +## Documentation For Authorization + + + +## accountSid_authToken + +- **Type**: HTTP basic authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ + UserName: "username", + Password: "password", +}) +r, err := client.Service.Operation(auth, args) +``` + + +## Author + +support@twilio.com + diff --git a/rest/serverless/v1/api_default.go b/rest/serverless/v1/api_default.go new file mode 100644 index 000000000..856af7260 --- /dev/null +++ b/rest/serverless/v1/api_default.go @@ -0,0 +1,1484 @@ +/* + * Twilio - Serverless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "" +) + +type DefaultApiService struct { + baseURL string + client *twilio.Client +} + +func NewDefaultApiService(client *twilio.Client) *DefaultApiService { + return &DefaultApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} +// CreateAssetParams Optional parameters for the method 'CreateAsset' +type CreateAssetParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +CreateAsset Method for CreateAsset +Create a new Asset resource. + * @param serviceSid The SID of the Service to create the Asset resource under. + * @param optional nil or *CreateAssetOpts - Optional Parameters: + * @param "FriendlyName" (string) - A descriptive string that you create to describe the Asset resource. It can be a maximum of 255 characters. +@return ServerlessV1ServiceAsset +*/ +func (c *DefaultApiService) CreateAsset(serviceSid string, params *CreateAssetParams) (*ServerlessV1ServiceAsset, error) { + path := "/v1/Services/{ServiceSid}/Assets" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ServerlessV1ServiceAsset{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateBuildParams Optional parameters for the method 'CreateBuild' +type CreateBuildParams struct { + AssetVersions *[]string `json:"AssetVersions,omitempty"` + Dependencies *string `json:"Dependencies,omitempty"` + FunctionVersions *[]string `json:"FunctionVersions,omitempty"` +} + +/* +CreateBuild Method for CreateBuild +Create a new Build resource. At least one function version or asset version is required. + * @param serviceSid The SID of the Service to create the Build resource under. + * @param optional nil or *CreateBuildOpts - Optional Parameters: + * @param "AssetVersions" ([]string) - The list of Asset Version resource SIDs to include in the Build. + * @param "Dependencies" (string) - A list of objects that describe the Dependencies included in the Build. Each object contains the `name` and `version` of the dependency. + * @param "FunctionVersions" ([]string) - The list of the Function Version resource SIDs to include in the Build. +@return ServerlessV1ServiceBuild +*/ +func (c *DefaultApiService) CreateBuild(serviceSid string, params *CreateBuildParams) (*ServerlessV1ServiceBuild, error) { + path := "/v1/Services/{ServiceSid}/Builds" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AssetVersions != nil { + data.Set("AssetVersions", *params.AssetVersions) + } + if params != nil && params.Dependencies != nil { + data.Set("Dependencies", *params.Dependencies) + } + if params != nil && params.FunctionVersions != nil { + data.Set("FunctionVersions", *params.FunctionVersions) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ServerlessV1ServiceBuild{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateDeploymentParams Optional parameters for the method 'CreateDeployment' +type CreateDeploymentParams struct { + BuildSid *string `json:"BuildSid,omitempty"` +} + +/* +CreateDeployment Method for CreateDeployment +Create a new Deployment. + * @param serviceSid The SID of the Service to create the Deployment resource under. + * @param environmentSid The SID of the Environment for the Deployment. + * @param optional nil or *CreateDeploymentOpts - Optional Parameters: + * @param "BuildSid" (string) - The SID of the Build for the Deployment. +@return ServerlessV1ServiceEnvironmentDeployment +*/ +func (c *DefaultApiService) CreateDeployment(serviceSid string, environmentSid string, params *CreateDeploymentParams) (*ServerlessV1ServiceEnvironmentDeployment, error) { + path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.BuildSid != nil { + data.Set("BuildSid", *params.BuildSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ServerlessV1ServiceEnvironmentDeployment{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateEnvironmentParams Optional parameters for the method 'CreateEnvironment' +type CreateEnvironmentParams struct { + DomainSuffix *string `json:"DomainSuffix,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +CreateEnvironment Method for CreateEnvironment +Create a new environment. + * @param serviceSid The SID of the Service to create the Environment resource under. + * @param optional nil or *CreateEnvironmentOpts - Optional Parameters: + * @param "DomainSuffix" (string) - A URL-friendly name that represents the environment and forms part of the domain name. It can be a maximum of 16 characters. + * @param "UniqueName" (string) - A user-defined string that uniquely identifies the Environment resource. It can be a maximum of 100 characters. +@return ServerlessV1ServiceEnvironment +*/ +func (c *DefaultApiService) CreateEnvironment(serviceSid string, params *CreateEnvironmentParams) (*ServerlessV1ServiceEnvironment, error) { + path := "/v1/Services/{ServiceSid}/Environments" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.DomainSuffix != nil { + data.Set("DomainSuffix", *params.DomainSuffix) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ServerlessV1ServiceEnvironment{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateFunctionParams Optional parameters for the method 'CreateFunction' +type CreateFunctionParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +CreateFunction Method for CreateFunction +Create a new Function resource. + * @param serviceSid The SID of the Service to create the Function resource under. + * @param optional nil or *CreateFunctionOpts - Optional Parameters: + * @param "FriendlyName" (string) - A descriptive string that you create to describe the Function resource. It can be a maximum of 255 characters. +@return ServerlessV1ServiceFunction +*/ +func (c *DefaultApiService) CreateFunction(serviceSid string, params *CreateFunctionParams) (*ServerlessV1ServiceFunction, error) { + path := "/v1/Services/{ServiceSid}/Functions" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ServerlessV1ServiceFunction{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateServiceParams Optional parameters for the method 'CreateService' +type CreateServiceParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` + IncludeCredentials *bool `json:"IncludeCredentials,omitempty"` + UiEditable *bool `json:"UiEditable,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +CreateService Method for CreateService +Create a new Service resource. + * @param optional nil or *CreateServiceOpts - Optional Parameters: + * @param "FriendlyName" (string) - A descriptive string that you create to describe the Service resource. It can be a maximum of 255 characters. + * @param "IncludeCredentials" (bool) - Whether to inject Account credentials into a function invocation context. The default value is `true`. + * @param "UiEditable" (bool) - Whether the Service's properties and subresources can be edited via the UI. The default value is `false`. + * @param "UniqueName" (string) - A user-defined string that uniquely identifies the Service resource. It can be used as an alternative to the `sid` in the URL path to address the Service resource. This value must be 50 characters or less in length and be unique. +@return ServerlessV1Service +*/ +func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*ServerlessV1Service, error) { + path := "/v1/Services" + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.IncludeCredentials != nil { + data.Set("IncludeCredentials", string(*params.IncludeCredentials)) + } + if params != nil && params.UiEditable != nil { + data.Set("UiEditable", string(*params.UiEditable)) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ServerlessV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateVariableParams Optional parameters for the method 'CreateVariable' +type CreateVariableParams struct { + Key *string `json:"Key,omitempty"` + Value *string `json:"Value,omitempty"` +} + +/* +CreateVariable Method for CreateVariable +Create a new Variable. + * @param serviceSid The SID of the Service to create the Variable resource under. + * @param environmentSid The SID of the Environment in which the Variable resource exists. + * @param optional nil or *CreateVariableOpts - Optional Parameters: + * @param "Key" (string) - A string by which the Variable resource can be referenced. It can be a maximum of 128 characters. + * @param "Value" (string) - A string that contains the actual value of the Variable. It can be a maximum of 450 bytes in size. +@return ServerlessV1ServiceEnvironmentVariable +*/ +func (c *DefaultApiService) CreateVariable(serviceSid string, environmentSid string, params *CreateVariableParams) (*ServerlessV1ServiceEnvironmentVariable, error) { + path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Key != nil { + data.Set("Key", *params.Key) + } + if params != nil && params.Value != nil { + data.Set("Value", *params.Value) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ServerlessV1ServiceEnvironmentVariable{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +DeleteAsset Method for DeleteAsset +Delete an Asset resource. + * @param serviceSid The SID of the Service to delete the Asset resource from. + * @param sid The SID that identifies the Asset resource to delete. +*/ +func (c *DefaultApiService) DeleteAsset(serviceSid string, sid string) (error) { + path := "/v1/Services/{ServiceSid}/Assets/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteBuild Method for DeleteBuild +Delete a Build resource. + * @param serviceSid The SID of the Service to delete the Build resource from. + * @param sid The SID of the Build resource to delete. +*/ +func (c *DefaultApiService) DeleteBuild(serviceSid string, sid string) (error) { + path := "/v1/Services/{ServiceSid}/Builds/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteEnvironment Method for DeleteEnvironment +Delete a specific environment. + * @param serviceSid The SID of the Service to delete the Environment resource from. + * @param sid The SID of the Environment resource to delete. +*/ +func (c *DefaultApiService) DeleteEnvironment(serviceSid string, sid string) (error) { + path := "/v1/Services/{ServiceSid}/Environments/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteFunction Method for DeleteFunction +Delete a Function resource. + * @param serviceSid The SID of the Service to delete the Function resource from. + * @param sid The SID of the Function resource to delete. +*/ +func (c *DefaultApiService) DeleteFunction(serviceSid string, sid string) (error) { + path := "/v1/Services/{ServiceSid}/Functions/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteService Method for DeleteService +Delete a Service resource. + * @param sid The `sid` or `unique_name` of the Service resource to delete. +*/ +func (c *DefaultApiService) DeleteService(sid string) (error) { + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteVariable Method for DeleteVariable +Delete a specific Variable. + * @param serviceSid The SID of the Service to delete the Variable resource from. + * @param environmentSid The SID of the Environment with the Variables to delete. + * @param sid The SID of the Variable resource to delete. +*/ +func (c *DefaultApiService) DeleteVariable(serviceSid string, environmentSid string, sid string) (error) { + path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +FetchAsset Method for FetchAsset +Retrieve a specific Asset resource. + * @param serviceSid The SID of the Service to fetch the Asset resource from. + * @param sid The SID that identifies the Asset resource to fetch. +@return ServerlessV1ServiceAsset +*/ +func (c *DefaultApiService) FetchAsset(serviceSid string, sid string) (*ServerlessV1ServiceAsset, error) { + path := "/v1/Services/{ServiceSid}/Assets/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ServerlessV1ServiceAsset{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchAssetVersion Method for FetchAssetVersion +Retrieve a specific Asset Version. + * @param serviceSid The SID of the Service to fetch the Asset Version resource from. + * @param assetSid The SID of the Asset resource that is the parent of the Asset Version resource to fetch. + * @param sid The SID of the Asset Version resource to fetch. +@return ServerlessV1ServiceAssetAssetVersion +*/ +func (c *DefaultApiService) FetchAssetVersion(serviceSid string, assetSid string, sid string) (*ServerlessV1ServiceAssetAssetVersion, error) { + path := "/v1/Services/{ServiceSid}/Assets/{AssetSid}/Versions/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"AssetSid"+"}", assetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ServerlessV1ServiceAssetAssetVersion{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchBuild Method for FetchBuild +Retrieve a specific Build resource. + * @param serviceSid The SID of the Service to fetch the Build resource from. + * @param sid The SID of the Build resource to fetch. +@return ServerlessV1ServiceBuild +*/ +func (c *DefaultApiService) FetchBuild(serviceSid string, sid string) (*ServerlessV1ServiceBuild, error) { + path := "/v1/Services/{ServiceSid}/Builds/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ServerlessV1ServiceBuild{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchBuildStatus Method for FetchBuildStatus +Retrieve a specific Build resource. + * @param serviceSid The SID of the Service to fetch the Build resource from. + * @param sid The SID of the Build resource to fetch. +@return ServerlessV1ServiceBuildBuildStatus +*/ +func (c *DefaultApiService) FetchBuildStatus(serviceSid string, sid string) (*ServerlessV1ServiceBuildBuildStatus, error) { + path := "/v1/Services/{ServiceSid}/Builds/{Sid}/Status" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ServerlessV1ServiceBuildBuildStatus{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchDeployment Method for FetchDeployment +Retrieve a specific Deployment. + * @param serviceSid The SID of the Service to fetch the Deployment resource from. + * @param environmentSid The SID of the Environment used by the Deployment to fetch. + * @param sid The SID that identifies the Deployment resource to fetch. +@return ServerlessV1ServiceEnvironmentDeployment +*/ +func (c *DefaultApiService) FetchDeployment(serviceSid string, environmentSid string, sid string) (*ServerlessV1ServiceEnvironmentDeployment, error) { + path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ServerlessV1ServiceEnvironmentDeployment{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchEnvironment Method for FetchEnvironment +Retrieve a specific environment. + * @param serviceSid The SID of the Service to fetch the Environment resource from. + * @param sid The SID of the Environment resource to fetch. +@return ServerlessV1ServiceEnvironment +*/ +func (c *DefaultApiService) FetchEnvironment(serviceSid string, sid string) (*ServerlessV1ServiceEnvironment, error) { + path := "/v1/Services/{ServiceSid}/Environments/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ServerlessV1ServiceEnvironment{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchFunction Method for FetchFunction +Retrieve a specific Function resource. + * @param serviceSid The SID of the Service to fetch the Function resource from. + * @param sid The SID of the Function resource to fetch. +@return ServerlessV1ServiceFunction +*/ +func (c *DefaultApiService) FetchFunction(serviceSid string, sid string) (*ServerlessV1ServiceFunction, error) { + path := "/v1/Services/{ServiceSid}/Functions/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ServerlessV1ServiceFunction{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchFunctionVersion Method for FetchFunctionVersion +Retrieve a specific Function Version resource. + * @param serviceSid The SID of the Service to fetch the Function Version resource from. + * @param functionSid The SID of the function that is the parent of the Function Version resource to fetch. + * @param sid The SID of the Function Version resource to fetch. +@return ServerlessV1ServiceFunctionFunctionVersion +*/ +func (c *DefaultApiService) FetchFunctionVersion(serviceSid string, functionSid string, sid string) (*ServerlessV1ServiceFunctionFunctionVersion, error) { + path := "/v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"FunctionSid"+"}", functionSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ServerlessV1ServiceFunctionFunctionVersion{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchFunctionVersionContent Method for FetchFunctionVersionContent +Retrieve a the content of a specific Function Version resource. + * @param serviceSid The SID of the Service to fetch the Function Version content from. + * @param functionSid The SID of the Function that is the parent of the Function Version content to fetch. + * @param sid The SID of the Function Version content to fetch. +@return ServerlessV1ServiceFunctionFunctionVersionFunctionVersionContent +*/ +func (c *DefaultApiService) FetchFunctionVersionContent(serviceSid string, functionSid string, sid string) (*ServerlessV1ServiceFunctionFunctionVersionFunctionVersionContent, error) { + path := "/v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions/{Sid}/Content" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"FunctionSid"+"}", functionSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ServerlessV1ServiceFunctionFunctionVersionFunctionVersionContent{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchLog Method for FetchLog +Retrieve a specific log. + * @param serviceSid The SID of the Service to fetch the Log resource from. + * @param environmentSid The SID of the environment with the Log resource to fetch. + * @param sid The SID of the Log resource to fetch. +@return ServerlessV1ServiceEnvironmentLog +*/ +func (c *DefaultApiService) FetchLog(serviceSid string, environmentSid string, sid string) (*ServerlessV1ServiceEnvironmentLog, error) { + path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Logs/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ServerlessV1ServiceEnvironmentLog{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchService Method for FetchService +Retrieve a specific Service resource. + * @param sid The `sid` or `unique_name` of the Service resource to fetch. +@return ServerlessV1Service +*/ +func (c *DefaultApiService) FetchService(sid string) (*ServerlessV1Service, error) { + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ServerlessV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchVariable Method for FetchVariable +Retrieve a specific Variable. + * @param serviceSid The SID of the Service to fetch the Variable resource from. + * @param environmentSid The SID of the Environment with the Variable resource to fetch. + * @param sid The SID of the Variable resource to fetch. +@return ServerlessV1ServiceEnvironmentVariable +*/ +func (c *DefaultApiService) FetchVariable(serviceSid string, environmentSid string, sid string) (*ServerlessV1ServiceEnvironmentVariable, error) { + path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ServerlessV1ServiceEnvironmentVariable{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListAssetParams Optional parameters for the method 'ListAsset' +type ListAssetParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListAsset Method for ListAsset +Retrieve a list of all Assets. + * @param serviceSid The SID of the Service to read the Asset resources from. + * @param optional nil or *ListAssetOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ServerlessV1ServiceAssetReadResponse +*/ +func (c *DefaultApiService) ListAsset(serviceSid string, params *ListAssetParams) (*ServerlessV1ServiceAssetReadResponse, error) { + path := "/v1/Services/{ServiceSid}/Assets" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ServerlessV1ServiceAssetReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListAssetVersionParams Optional parameters for the method 'ListAssetVersion' +type ListAssetVersionParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListAssetVersion Method for ListAssetVersion +Retrieve a list of all Asset Versions. + * @param serviceSid The SID of the Service to read the Asset Version resource from. + * @param assetSid The SID of the Asset resource that is the parent of the Asset Version resources to read. + * @param optional nil or *ListAssetVersionOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ServerlessV1ServiceAssetAssetVersionReadResponse +*/ +func (c *DefaultApiService) ListAssetVersion(serviceSid string, assetSid string, params *ListAssetVersionParams) (*ServerlessV1ServiceAssetAssetVersionReadResponse, error) { + path := "/v1/Services/{ServiceSid}/Assets/{AssetSid}/Versions" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"AssetSid"+"}", assetSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ServerlessV1ServiceAssetAssetVersionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListBuildParams Optional parameters for the method 'ListBuild' +type ListBuildParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListBuild Method for ListBuild +Retrieve a list of all Builds. + * @param serviceSid The SID of the Service to read the Build resources from. + * @param optional nil or *ListBuildOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ServerlessV1ServiceBuildReadResponse +*/ +func (c *DefaultApiService) ListBuild(serviceSid string, params *ListBuildParams) (*ServerlessV1ServiceBuildReadResponse, error) { + path := "/v1/Services/{ServiceSid}/Builds" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ServerlessV1ServiceBuildReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListDeploymentParams Optional parameters for the method 'ListDeployment' +type ListDeploymentParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListDeployment Method for ListDeployment +Retrieve a list of all Deployments. + * @param serviceSid The SID of the Service to read the Deployment resources from. + * @param environmentSid The SID of the Environment used by the Deployment resources to read. + * @param optional nil or *ListDeploymentOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ServerlessV1ServiceEnvironmentDeploymentReadResponse +*/ +func (c *DefaultApiService) ListDeployment(serviceSid string, environmentSid string, params *ListDeploymentParams) (*ServerlessV1ServiceEnvironmentDeploymentReadResponse, error) { + path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ServerlessV1ServiceEnvironmentDeploymentReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListEnvironmentParams Optional parameters for the method 'ListEnvironment' +type ListEnvironmentParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListEnvironment Method for ListEnvironment +Retrieve a list of all environments. + * @param serviceSid The SID of the Service to read the Environment resources from. + * @param optional nil or *ListEnvironmentOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ServerlessV1ServiceEnvironmentReadResponse +*/ +func (c *DefaultApiService) ListEnvironment(serviceSid string, params *ListEnvironmentParams) (*ServerlessV1ServiceEnvironmentReadResponse, error) { + path := "/v1/Services/{ServiceSid}/Environments" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ServerlessV1ServiceEnvironmentReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListFunctionParams Optional parameters for the method 'ListFunction' +type ListFunctionParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListFunction Method for ListFunction +Retrieve a list of all Functions. + * @param serviceSid The SID of the Service to read the Function resources from. + * @param optional nil or *ListFunctionOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ServerlessV1ServiceFunctionReadResponse +*/ +func (c *DefaultApiService) ListFunction(serviceSid string, params *ListFunctionParams) (*ServerlessV1ServiceFunctionReadResponse, error) { + path := "/v1/Services/{ServiceSid}/Functions" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ServerlessV1ServiceFunctionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListFunctionVersionParams Optional parameters for the method 'ListFunctionVersion' +type ListFunctionVersionParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListFunctionVersion Method for ListFunctionVersion +Retrieve a list of all Function Version resources. + * @param serviceSid The SID of the Service to read the Function Version resources from. + * @param functionSid The SID of the function that is the parent of the Function Version resources to read. + * @param optional nil or *ListFunctionVersionOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ServerlessV1ServiceFunctionFunctionVersionReadResponse +*/ +func (c *DefaultApiService) ListFunctionVersion(serviceSid string, functionSid string, params *ListFunctionVersionParams) (*ServerlessV1ServiceFunctionFunctionVersionReadResponse, error) { + path := "/v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"FunctionSid"+"}", functionSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ServerlessV1ServiceFunctionFunctionVersionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListLogParams Optional parameters for the method 'ListLog' +type ListLogParams struct { + FunctionSid *string `json:"FunctionSid,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListLog Method for ListLog +Retrieve a list of all logs. + * @param serviceSid The SID of the Service to read the Log resource from. + * @param environmentSid The SID of the environment with the Log resources to read. + * @param optional nil or *ListLogOpts - Optional Parameters: + * @param "FunctionSid" (string) - The SID of the function whose invocation produced the Log resources to read. + * @param "StartDate" (time.Time) - The date/time (in GMT, ISO 8601) after which the Log resources must have been created. Defaults to 1 day prior to current date/time. + * @param "EndDate" (time.Time) - The date/time (in GMT, ISO 8601) before which the Log resources must have been created. Defaults to current date/time. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ServerlessV1ServiceEnvironmentLogReadResponse +*/ +func (c *DefaultApiService) ListLog(serviceSid string, environmentSid string, params *ListLogParams) (*ServerlessV1ServiceEnvironmentLogReadResponse, error) { + path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Logs" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FunctionSid != nil { + data.Set("FunctionSid", *params.FunctionSid) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ServerlessV1ServiceEnvironmentLogReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListServiceParams Optional parameters for the method 'ListService' +type ListServiceParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListService Method for ListService +Retrieve a list of all Services. + * @param optional nil or *ListServiceOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ServerlessV1ServiceReadResponse +*/ +func (c *DefaultApiService) ListService(params *ListServiceParams) (*ServerlessV1ServiceReadResponse, error) { + path := "/v1/Services" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ServerlessV1ServiceReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListVariableParams Optional parameters for the method 'ListVariable' +type ListVariableParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListVariable Method for ListVariable +Retrieve a list of all Variables. + * @param serviceSid The SID of the Service to read the Variable resources from. + * @param environmentSid The SID of the Environment with the Variable resources to read. + * @param optional nil or *ListVariableOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ServerlessV1ServiceEnvironmentVariableReadResponse +*/ +func (c *DefaultApiService) ListVariable(serviceSid string, environmentSid string, params *ListVariableParams) (*ServerlessV1ServiceEnvironmentVariableReadResponse, error) { + path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ServerlessV1ServiceEnvironmentVariableReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateAssetParams Optional parameters for the method 'UpdateAsset' +type UpdateAssetParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +UpdateAsset Method for UpdateAsset +Update a specific Asset resource. + * @param serviceSid The SID of the Service to update the Asset resource from. + * @param sid The SID that identifies the Asset resource to update. + * @param optional nil or *UpdateAssetOpts - Optional Parameters: + * @param "FriendlyName" (string) - A descriptive string that you create to describe the Asset resource. It can be a maximum of 255 characters. +@return ServerlessV1ServiceAsset +*/ +func (c *DefaultApiService) UpdateAsset(serviceSid string, sid string, params *UpdateAssetParams) (*ServerlessV1ServiceAsset, error) { + path := "/v1/Services/{ServiceSid}/Assets/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ServerlessV1ServiceAsset{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateFunctionParams Optional parameters for the method 'UpdateFunction' +type UpdateFunctionParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +UpdateFunction Method for UpdateFunction +Update a specific Function resource. + * @param serviceSid The SID of the Service to update the Function resource from. + * @param sid The SID of the Function resource to update. + * @param optional nil or *UpdateFunctionOpts - Optional Parameters: + * @param "FriendlyName" (string) - A descriptive string that you create to describe the Function resource. It can be a maximum of 255 characters. +@return ServerlessV1ServiceFunction +*/ +func (c *DefaultApiService) UpdateFunction(serviceSid string, sid string, params *UpdateFunctionParams) (*ServerlessV1ServiceFunction, error) { + path := "/v1/Services/{ServiceSid}/Functions/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ServerlessV1ServiceFunction{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateServiceParams Optional parameters for the method 'UpdateService' +type UpdateServiceParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` + IncludeCredentials *bool `json:"IncludeCredentials,omitempty"` + UiEditable *bool `json:"UiEditable,omitempty"` +} + +/* +UpdateService Method for UpdateService +Update a specific Service resource. + * @param sid The `sid` or `unique_name` of the Service resource to update. + * @param optional nil or *UpdateServiceOpts - Optional Parameters: + * @param "FriendlyName" (string) - A descriptive string that you create to describe the Service resource. It can be a maximum of 255 characters. + * @param "IncludeCredentials" (bool) - Whether to inject Account credentials into a function invocation context. + * @param "UiEditable" (bool) - Whether the Service resource's properties and subresources can be edited via the UI. The default value is `false`. +@return ServerlessV1Service +*/ +func (c *DefaultApiService) UpdateService(sid string, params *UpdateServiceParams) (*ServerlessV1Service, error) { + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.IncludeCredentials != nil { + data.Set("IncludeCredentials", string(*params.IncludeCredentials)) + } + if params != nil && params.UiEditable != nil { + data.Set("UiEditable", string(*params.UiEditable)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ServerlessV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateVariableParams Optional parameters for the method 'UpdateVariable' +type UpdateVariableParams struct { + Key *string `json:"Key,omitempty"` + Value *string `json:"Value,omitempty"` +} + +/* +UpdateVariable Method for UpdateVariable +Update a specific Variable. + * @param serviceSid The SID of the Service to update the Variable resource under. + * @param environmentSid The SID of the Environment with the Variable resource to update. + * @param sid The SID of the Variable resource to update. + * @param optional nil or *UpdateVariableOpts - Optional Parameters: + * @param "Key" (string) - A string by which the Variable resource can be referenced. It can be a maximum of 128 characters. + * @param "Value" (string) - A string that contains the actual value of the Variable. It can be a maximum of 450 bytes in size. +@return ServerlessV1ServiceEnvironmentVariable +*/ +func (c *DefaultApiService) UpdateVariable(serviceSid string, environmentSid string, sid string, params *UpdateVariableParams) (*ServerlessV1ServiceEnvironmentVariable, error) { + path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Key != nil { + data.Set("Key", *params.Key) + } + if params != nil && params.Value != nil { + data.Set("Value", *params.Value) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ServerlessV1ServiceEnvironmentVariable{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/serverless/v1/docs/CreateAssetRequest.md b/rest/serverless/v1/docs/CreateAssetRequest.md new file mode 100644 index 000000000..0ca45da7e --- /dev/null +++ b/rest/serverless/v1/docs/CreateAssetRequest.md @@ -0,0 +1,11 @@ +# CreateAssetRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | A descriptive string that you create to describe the Asset resource. It can be a maximum of 255 characters. | + +[[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/rest/serverless/v1/docs/CreateBuildRequest.md b/rest/serverless/v1/docs/CreateBuildRequest.md new file mode 100644 index 000000000..0bb0a8387 --- /dev/null +++ b/rest/serverless/v1/docs/CreateBuildRequest.md @@ -0,0 +1,13 @@ +# CreateBuildRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AssetVersions** | **[]string** | The list of Asset Version resource SIDs to include in the Build. | [optional] +**Dependencies** | **string** | A list of objects that describe the Dependencies included in the Build. Each object contains the `name` and `version` of the dependency. | [optional] +**FunctionVersions** | **[]string** | The list of the Function Version resource SIDs to include in the Build. | [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/rest/serverless/v1/docs/CreateDeploymentRequest.md b/rest/serverless/v1/docs/CreateDeploymentRequest.md new file mode 100644 index 000000000..67735dbf0 --- /dev/null +++ b/rest/serverless/v1/docs/CreateDeploymentRequest.md @@ -0,0 +1,11 @@ +# CreateDeploymentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BuildSid** | **string** | The SID of the Build for the Deployment. | [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/rest/serverless/v1/docs/CreateEnvironmentRequest.md b/rest/serverless/v1/docs/CreateEnvironmentRequest.md new file mode 100644 index 000000000..55d6c6900 --- /dev/null +++ b/rest/serverless/v1/docs/CreateEnvironmentRequest.md @@ -0,0 +1,12 @@ +# CreateEnvironmentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DomainSuffix** | **string** | A URL-friendly name that represents the environment and forms part of the domain name. It can be a maximum of 16 characters. | [optional] +**UniqueName** | **string** | A user-defined string that uniquely identifies the Environment resource. It can be a maximum of 100 characters. | + +[[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/rest/serverless/v1/docs/CreateFunctionRequest.md b/rest/serverless/v1/docs/CreateFunctionRequest.md new file mode 100644 index 000000000..39ad78f3b --- /dev/null +++ b/rest/serverless/v1/docs/CreateFunctionRequest.md @@ -0,0 +1,11 @@ +# CreateFunctionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | A descriptive string that you create to describe the Function resource. It can be a maximum of 255 characters. | + +[[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/rest/serverless/v1/docs/CreateServiceRequest.md b/rest/serverless/v1/docs/CreateServiceRequest.md new file mode 100644 index 000000000..0aa116985 --- /dev/null +++ b/rest/serverless/v1/docs/CreateServiceRequest.md @@ -0,0 +1,14 @@ +# CreateServiceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | A descriptive string that you create to describe the Service resource. It can be a maximum of 255 characters. | +**IncludeCredentials** | **bool** | Whether to inject Account credentials into a function invocation context. The default value is `true`. | [optional] +**UiEditable** | **bool** | Whether the Service's properties and subresources can be edited via the UI. The default value is `false`. | [optional] +**UniqueName** | **string** | A user-defined string that uniquely identifies the Service resource. It can be used as an alternative to the `sid` in the URL path to address the Service resource. This value must be 50 characters or less in length and be unique. | + +[[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/rest/serverless/v1/docs/CreateVariableRequest.md b/rest/serverless/v1/docs/CreateVariableRequest.md new file mode 100644 index 000000000..cc5e9610a --- /dev/null +++ b/rest/serverless/v1/docs/CreateVariableRequest.md @@ -0,0 +1,12 @@ +# CreateVariableRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | A string by which the Variable resource can be referenced. It can be a maximum of 128 characters. | +**Value** | **string** | A string that contains the actual value of the Variable. It can be a maximum of 450 bytes in size. | + +[[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/rest/serverless/v1/docs/DefaultApi.md b/rest/serverless/v1/docs/DefaultApi.md new file mode 100644 index 000000000..12910ac99 --- /dev/null +++ b/rest/serverless/v1/docs/DefaultApi.md @@ -0,0 +1,1658 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateAsset**](DefaultApi.md#CreateAsset) | **Post** /v1/Services/{ServiceSid}/Assets | +[**CreateBuild**](DefaultApi.md#CreateBuild) | **Post** /v1/Services/{ServiceSid}/Builds | +[**CreateDeployment**](DefaultApi.md#CreateDeployment) | **Post** /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments | +[**CreateEnvironment**](DefaultApi.md#CreateEnvironment) | **Post** /v1/Services/{ServiceSid}/Environments | +[**CreateFunction**](DefaultApi.md#CreateFunction) | **Post** /v1/Services/{ServiceSid}/Functions | +[**CreateService**](DefaultApi.md#CreateService) | **Post** /v1/Services | +[**CreateVariable**](DefaultApi.md#CreateVariable) | **Post** /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables | +[**DeleteAsset**](DefaultApi.md#DeleteAsset) | **Delete** /v1/Services/{ServiceSid}/Assets/{Sid} | +[**DeleteBuild**](DefaultApi.md#DeleteBuild) | **Delete** /v1/Services/{ServiceSid}/Builds/{Sid} | +[**DeleteEnvironment**](DefaultApi.md#DeleteEnvironment) | **Delete** /v1/Services/{ServiceSid}/Environments/{Sid} | +[**DeleteFunction**](DefaultApi.md#DeleteFunction) | **Delete** /v1/Services/{ServiceSid}/Functions/{Sid} | +[**DeleteService**](DefaultApi.md#DeleteService) | **Delete** /v1/Services/{Sid} | +[**DeleteVariable**](DefaultApi.md#DeleteVariable) | **Delete** /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables/{Sid} | +[**FetchAsset**](DefaultApi.md#FetchAsset) | **Get** /v1/Services/{ServiceSid}/Assets/{Sid} | +[**FetchAssetVersion**](DefaultApi.md#FetchAssetVersion) | **Get** /v1/Services/{ServiceSid}/Assets/{AssetSid}/Versions/{Sid} | +[**FetchBuild**](DefaultApi.md#FetchBuild) | **Get** /v1/Services/{ServiceSid}/Builds/{Sid} | +[**FetchBuildStatus**](DefaultApi.md#FetchBuildStatus) | **Get** /v1/Services/{ServiceSid}/Builds/{Sid}/Status | +[**FetchDeployment**](DefaultApi.md#FetchDeployment) | **Get** /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments/{Sid} | +[**FetchEnvironment**](DefaultApi.md#FetchEnvironment) | **Get** /v1/Services/{ServiceSid}/Environments/{Sid} | +[**FetchFunction**](DefaultApi.md#FetchFunction) | **Get** /v1/Services/{ServiceSid}/Functions/{Sid} | +[**FetchFunctionVersion**](DefaultApi.md#FetchFunctionVersion) | **Get** /v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions/{Sid} | +[**FetchFunctionVersionContent**](DefaultApi.md#FetchFunctionVersionContent) | **Get** /v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions/{Sid}/Content | +[**FetchLog**](DefaultApi.md#FetchLog) | **Get** /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Logs/{Sid} | +[**FetchService**](DefaultApi.md#FetchService) | **Get** /v1/Services/{Sid} | +[**FetchVariable**](DefaultApi.md#FetchVariable) | **Get** /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables/{Sid} | +[**ListAsset**](DefaultApi.md#ListAsset) | **Get** /v1/Services/{ServiceSid}/Assets | +[**ListAssetVersion**](DefaultApi.md#ListAssetVersion) | **Get** /v1/Services/{ServiceSid}/Assets/{AssetSid}/Versions | +[**ListBuild**](DefaultApi.md#ListBuild) | **Get** /v1/Services/{ServiceSid}/Builds | +[**ListDeployment**](DefaultApi.md#ListDeployment) | **Get** /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments | +[**ListEnvironment**](DefaultApi.md#ListEnvironment) | **Get** /v1/Services/{ServiceSid}/Environments | +[**ListFunction**](DefaultApi.md#ListFunction) | **Get** /v1/Services/{ServiceSid}/Functions | +[**ListFunctionVersion**](DefaultApi.md#ListFunctionVersion) | **Get** /v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions | +[**ListLog**](DefaultApi.md#ListLog) | **Get** /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Logs | +[**ListService**](DefaultApi.md#ListService) | **Get** /v1/Services | +[**ListVariable**](DefaultApi.md#ListVariable) | **Get** /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables | +[**UpdateAsset**](DefaultApi.md#UpdateAsset) | **Post** /v1/Services/{ServiceSid}/Assets/{Sid} | +[**UpdateFunction**](DefaultApi.md#UpdateFunction) | **Post** /v1/Services/{ServiceSid}/Functions/{Sid} | +[**UpdateService**](DefaultApi.md#UpdateService) | **Post** /v1/Services/{Sid} | +[**UpdateVariable**](DefaultApi.md#UpdateVariable) | **Post** /v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables/{Sid} | + + + +## CreateAsset + +> ServerlessV1ServiceAsset CreateAsset(ctx, serviceSid, optional) + + + +Create a new Asset resource. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the Service to create the Asset resource under. | + **optional** | ***CreateAssetOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateAssetOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **friendlyName** | **optional.String**| A descriptive string that you create to describe the Asset resource. It can be a maximum of 255 characters. | + +### Return type + +[**ServerlessV1ServiceAsset**](serverless.v1.service.asset.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) + + +## CreateBuild + +> ServerlessV1ServiceBuild CreateBuild(ctx, serviceSid, optional) + + + +Create a new Build resource. At least one function version or asset version is required. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the Service to create the Build resource under. | + **optional** | ***CreateBuildOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateBuildOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **assetVersions** | [**optional.Interface of []string**](string.md)| The list of Asset Version resource SIDs to include in the Build. | + **dependencies** | **optional.String**| A list of objects that describe the Dependencies included in the Build. Each object contains the `name` and `version` of the dependency. | + **functionVersions** | [**optional.Interface of []string**](string.md)| The list of the Function Version resource SIDs to include in the Build. | + +### Return type + +[**ServerlessV1ServiceBuild**](serverless.v1.service.build.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) + + +## CreateDeployment + +> ServerlessV1ServiceEnvironmentDeployment CreateDeployment(ctx, serviceSid, environmentSid, optional) + + + +Create a new Deployment. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the Service to create the Deployment resource under. | +**environmentSid** | **string**| The SID of the Environment for the Deployment. | + **optional** | ***CreateDeploymentOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateDeploymentOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **buildSid** | **optional.String**| The SID of the Build for the Deployment. | + +### Return type + +[**ServerlessV1ServiceEnvironmentDeployment**](serverless.v1.service.environment.deployment.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) + + +## CreateEnvironment + +> ServerlessV1ServiceEnvironment CreateEnvironment(ctx, serviceSid, optional) + + + +Create a new environment. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the Service to create the Environment resource under. | + **optional** | ***CreateEnvironmentOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateEnvironmentOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **domainSuffix** | **optional.String**| A URL-friendly name that represents the environment and forms part of the domain name. It can be a maximum of 16 characters. | + **uniqueName** | **optional.String**| A user-defined string that uniquely identifies the Environment resource. It can be a maximum of 100 characters. | + +### Return type + +[**ServerlessV1ServiceEnvironment**](serverless.v1.service.environment.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) + + +## CreateFunction + +> ServerlessV1ServiceFunction CreateFunction(ctx, serviceSid, optional) + + + +Create a new Function resource. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the Service to create the Function resource under. | + **optional** | ***CreateFunctionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateFunctionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **friendlyName** | **optional.String**| A descriptive string that you create to describe the Function resource. It can be a maximum of 255 characters. | + +### Return type + +[**ServerlessV1ServiceFunction**](serverless.v1.service.function.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) + + +## CreateService + +> ServerlessV1Service CreateService(ctx, optional) + + + +Create a new Service resource. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateServiceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateServiceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **friendlyName** | **optional.String**| A descriptive string that you create to describe the Service resource. It can be a maximum of 255 characters. | + **includeCredentials** | **optional.Bool**| Whether to inject Account credentials into a function invocation context. The default value is `true`. | + **uiEditable** | **optional.Bool**| Whether the Service's properties and subresources can be edited via the UI. The default value is `false`. | + **uniqueName** | **optional.String**| A user-defined string that uniquely identifies the Service resource. It can be used as an alternative to the `sid` in the URL path to address the Service resource. This value must be 50 characters or less in length and be unique. | + +### Return type + +[**ServerlessV1Service**](serverless.v1.service.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) + + +## CreateVariable + +> ServerlessV1ServiceEnvironmentVariable CreateVariable(ctx, serviceSid, environmentSid, optional) + + + +Create a new Variable. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the Service to create the Variable resource under. | +**environmentSid** | **string**| The SID of the Environment in which the Variable resource exists. | + **optional** | ***CreateVariableOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateVariableOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **key** | **optional.String**| A string by which the Variable resource can be referenced. It can be a maximum of 128 characters. | + **value** | **optional.String**| A string that contains the actual value of the Variable. It can be a maximum of 450 bytes in size. | + +### Return type + +[**ServerlessV1ServiceEnvironmentVariable**](serverless.v1.service.environment.variable.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) + + +## DeleteAsset + +> DeleteAsset(ctx, serviceSid, sid) + + + +Delete an Asset resource. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the Service to delete the Asset resource from. | +**sid** | **string**| The SID that identifies the Asset resource to delete. | + +### 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) + + +## DeleteBuild + +> DeleteBuild(ctx, serviceSid, sid) + + + +Delete a Build resource. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the Service to delete the Build resource from. | +**sid** | **string**| The SID of the Build resource to delete. | + +### 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) + + +## DeleteEnvironment + +> DeleteEnvironment(ctx, serviceSid, sid) + + + +Delete a specific environment. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the Service to delete the Environment resource from. | +**sid** | **string**| The SID of the Environment resource to delete. | + +### 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) + + +## DeleteFunction + +> DeleteFunction(ctx, serviceSid, sid) + + + +Delete a Function resource. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the Service to delete the Function resource from. | +**sid** | **string**| The SID of the Function resource to delete. | + +### 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) + + +## DeleteService + +> DeleteService(ctx, sid) + + + +Delete a Service resource. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The `sid` or `unique_name` of the Service resource to delete. | + +### 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) + + +## DeleteVariable + +> DeleteVariable(ctx, serviceSid, environmentSid, sid) + + + +Delete a specific Variable. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the Service to delete the Variable resource from. | +**environmentSid** | **string**| The SID of the Environment with the Variables to delete. | +**sid** | **string**| The SID of the Variable resource to delete. | + +### 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) + + +## FetchAsset + +> ServerlessV1ServiceAsset FetchAsset(ctx, serviceSid, sid) + + + +Retrieve a specific Asset resource. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the Service to fetch the Asset resource from. | +**sid** | **string**| The SID that identifies the Asset resource to fetch. | + +### Return type + +[**ServerlessV1ServiceAsset**](serverless.v1.service.asset.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) + + +## FetchAssetVersion + +> ServerlessV1ServiceAssetAssetVersion FetchAssetVersion(ctx, serviceSid, assetSid, sid) + + + +Retrieve a specific Asset Version. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the Service to fetch the Asset Version resource from. | +**assetSid** | **string**| The SID of the Asset resource that is the parent of the Asset Version resource to fetch. | +**sid** | **string**| The SID of the Asset Version resource to fetch. | + +### Return type + +[**ServerlessV1ServiceAssetAssetVersion**](serverless.v1.service.asset.asset_version.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) + + +## FetchBuild + +> ServerlessV1ServiceBuild FetchBuild(ctx, serviceSid, sid) + + + +Retrieve a specific Build resource. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the Service to fetch the Build resource from. | +**sid** | **string**| The SID of the Build resource to fetch. | + +### Return type + +[**ServerlessV1ServiceBuild**](serverless.v1.service.build.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) + + +## FetchBuildStatus + +> ServerlessV1ServiceBuildBuildStatus FetchBuildStatus(ctx, serviceSid, sid) + + + +Retrieve a specific Build resource. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the Service to fetch the Build resource from. | +**sid** | **string**| The SID of the Build resource to fetch. | + +### Return type + +[**ServerlessV1ServiceBuildBuildStatus**](serverless.v1.service.build.build_status.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) + + +## FetchDeployment + +> ServerlessV1ServiceEnvironmentDeployment FetchDeployment(ctx, serviceSid, environmentSid, sid) + + + +Retrieve a specific Deployment. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the Service to fetch the Deployment resource from. | +**environmentSid** | **string**| The SID of the Environment used by the Deployment to fetch. | +**sid** | **string**| The SID that identifies the Deployment resource to fetch. | + +### Return type + +[**ServerlessV1ServiceEnvironmentDeployment**](serverless.v1.service.environment.deployment.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) + + +## FetchEnvironment + +> ServerlessV1ServiceEnvironment FetchEnvironment(ctx, serviceSid, sid) + + + +Retrieve a specific environment. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the Service to fetch the Environment resource from. | +**sid** | **string**| The SID of the Environment resource to fetch. | + +### Return type + +[**ServerlessV1ServiceEnvironment**](serverless.v1.service.environment.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) + + +## FetchFunction + +> ServerlessV1ServiceFunction FetchFunction(ctx, serviceSid, sid) + + + +Retrieve a specific Function resource. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the Service to fetch the Function resource from. | +**sid** | **string**| The SID of the Function resource to fetch. | + +### Return type + +[**ServerlessV1ServiceFunction**](serverless.v1.service.function.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) + + +## FetchFunctionVersion + +> ServerlessV1ServiceFunctionFunctionVersion FetchFunctionVersion(ctx, serviceSid, functionSid, sid) + + + +Retrieve a specific Function Version resource. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the Service to fetch the Function Version resource from. | +**functionSid** | **string**| The SID of the function that is the parent of the Function Version resource to fetch. | +**sid** | **string**| The SID of the Function Version resource to fetch. | + +### Return type + +[**ServerlessV1ServiceFunctionFunctionVersion**](serverless.v1.service.function.function_version.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) + + +## FetchFunctionVersionContent + +> ServerlessV1ServiceFunctionFunctionVersionFunctionVersionContent FetchFunctionVersionContent(ctx, serviceSid, functionSid, sid) + + + +Retrieve a the content of a specific Function Version resource. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the Service to fetch the Function Version content from. | +**functionSid** | **string**| The SID of the Function that is the parent of the Function Version content to fetch. | +**sid** | **string**| The SID of the Function Version content to fetch. | + +### Return type + +[**ServerlessV1ServiceFunctionFunctionVersionFunctionVersionContent**](serverless.v1.service.function.function_version.function_version_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) + + +## FetchLog + +> ServerlessV1ServiceEnvironmentLog FetchLog(ctx, serviceSid, environmentSid, sid) + + + +Retrieve a specific log. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the Service to fetch the Log resource from. | +**environmentSid** | **string**| The SID of the environment with the Log resource to fetch. | +**sid** | **string**| The SID of the Log resource to fetch. | + +### Return type + +[**ServerlessV1ServiceEnvironmentLog**](serverless.v1.service.environment.log.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) + + +## FetchService + +> ServerlessV1Service FetchService(ctx, sid) + + + +Retrieve a specific Service resource. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The `sid` or `unique_name` of the Service resource to fetch. | + +### Return type + +[**ServerlessV1Service**](serverless.v1.service.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) + + +## FetchVariable + +> ServerlessV1ServiceEnvironmentVariable FetchVariable(ctx, serviceSid, environmentSid, sid) + + + +Retrieve a specific Variable. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the Service to fetch the Variable resource from. | +**environmentSid** | **string**| The SID of the Environment with the Variable resource to fetch. | +**sid** | **string**| The SID of the Variable resource to fetch. | + +### Return type + +[**ServerlessV1ServiceEnvironmentVariable**](serverless.v1.service.environment.variable.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) + + +## ListAsset + +> ServerlessV1ServiceAssetReadResponse ListAsset(ctx, serviceSid, optional) + + + +Retrieve a list of all Assets. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the Service to read the Asset resources from. | + **optional** | ***ListAssetOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListAssetOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ServerlessV1ServiceAssetReadResponse**](serverless_v1_service_assetReadResponse.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) + + +## ListAssetVersion + +> ServerlessV1ServiceAssetAssetVersionReadResponse ListAssetVersion(ctx, serviceSid, assetSid, optional) + + + +Retrieve a list of all Asset Versions. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the Service to read the Asset Version resource from. | +**assetSid** | **string**| The SID of the Asset resource that is the parent of the Asset Version resources to read. | + **optional** | ***ListAssetVersionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListAssetVersionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ServerlessV1ServiceAssetAssetVersionReadResponse**](serverless_v1_service_asset_asset_versionReadResponse.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) + + +## ListBuild + +> ServerlessV1ServiceBuildReadResponse ListBuild(ctx, serviceSid, optional) + + + +Retrieve a list of all Builds. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the Service to read the Build resources from. | + **optional** | ***ListBuildOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListBuildOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ServerlessV1ServiceBuildReadResponse**](serverless_v1_service_buildReadResponse.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) + + +## ListDeployment + +> ServerlessV1ServiceEnvironmentDeploymentReadResponse ListDeployment(ctx, serviceSid, environmentSid, optional) + + + +Retrieve a list of all Deployments. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the Service to read the Deployment resources from. | +**environmentSid** | **string**| The SID of the Environment used by the Deployment resources to read. | + **optional** | ***ListDeploymentOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListDeploymentOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ServerlessV1ServiceEnvironmentDeploymentReadResponse**](serverless_v1_service_environment_deploymentReadResponse.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) + + +## ListEnvironment + +> ServerlessV1ServiceEnvironmentReadResponse ListEnvironment(ctx, serviceSid, optional) + + + +Retrieve a list of all environments. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the Service to read the Environment resources from. | + **optional** | ***ListEnvironmentOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListEnvironmentOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ServerlessV1ServiceEnvironmentReadResponse**](serverless_v1_service_environmentReadResponse.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) + + +## ListFunction + +> ServerlessV1ServiceFunctionReadResponse ListFunction(ctx, serviceSid, optional) + + + +Retrieve a list of all Functions. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the Service to read the Function resources from. | + **optional** | ***ListFunctionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListFunctionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ServerlessV1ServiceFunctionReadResponse**](serverless_v1_service_functionReadResponse.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) + + +## ListFunctionVersion + +> ServerlessV1ServiceFunctionFunctionVersionReadResponse ListFunctionVersion(ctx, serviceSid, functionSid, optional) + + + +Retrieve a list of all Function Version resources. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the Service to read the Function Version resources from. | +**functionSid** | **string**| The SID of the function that is the parent of the Function Version resources to read. | + **optional** | ***ListFunctionVersionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListFunctionVersionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ServerlessV1ServiceFunctionFunctionVersionReadResponse**](serverless_v1_service_function_function_versionReadResponse.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) + + +## ListLog + +> ServerlessV1ServiceEnvironmentLogReadResponse ListLog(ctx, serviceSid, environmentSid, optional) + + + +Retrieve a list of all logs. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the Service to read the Log resource from. | +**environmentSid** | **string**| The SID of the environment with the Log resources to read. | + **optional** | ***ListLogOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListLogOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **functionSid** | **optional.String**| The SID of the function whose invocation produced the Log resources to read. | + **startDate** | **optional.Time**| The date/time (in GMT, ISO 8601) after which the Log resources must have been created. Defaults to 1 day prior to current date/time. | + **endDate** | **optional.Time**| The date/time (in GMT, ISO 8601) before which the Log resources must have been created. Defaults to current date/time. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ServerlessV1ServiceEnvironmentLogReadResponse**](serverless_v1_service_environment_logReadResponse.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) + + +## ListService + +> ServerlessV1ServiceReadResponse ListService(ctx, optional) + + + +Retrieve a list of all Services. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListServiceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListServiceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ServerlessV1ServiceReadResponse**](serverless_v1_serviceReadResponse.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) + + +## ListVariable + +> ServerlessV1ServiceEnvironmentVariableReadResponse ListVariable(ctx, serviceSid, environmentSid, optional) + + + +Retrieve a list of all Variables. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the Service to read the Variable resources from. | +**environmentSid** | **string**| The SID of the Environment with the Variable resources to read. | + **optional** | ***ListVariableOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListVariableOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ServerlessV1ServiceEnvironmentVariableReadResponse**](serverless_v1_service_environment_variableReadResponse.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) + + +## UpdateAsset + +> ServerlessV1ServiceAsset UpdateAsset(ctx, serviceSid, sid, optional) + + + +Update a specific Asset resource. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the Service to update the Asset resource from. | +**sid** | **string**| The SID that identifies the Asset resource to update. | + **optional** | ***UpdateAssetOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateAssetOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **friendlyName** | **optional.String**| A descriptive string that you create to describe the Asset resource. It can be a maximum of 255 characters. | + +### Return type + +[**ServerlessV1ServiceAsset**](serverless.v1.service.asset.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) + + +## UpdateFunction + +> ServerlessV1ServiceFunction UpdateFunction(ctx, serviceSid, sid, optional) + + + +Update a specific Function resource. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the Service to update the Function resource from. | +**sid** | **string**| The SID of the Function resource to update. | + **optional** | ***UpdateFunctionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateFunctionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **friendlyName** | **optional.String**| A descriptive string that you create to describe the Function resource. It can be a maximum of 255 characters. | + +### Return type + +[**ServerlessV1ServiceFunction**](serverless.v1.service.function.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) + + +## UpdateService + +> ServerlessV1Service UpdateService(ctx, sid, optional) + + + +Update a specific Service resource. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The `sid` or `unique_name` of the Service resource to update. | + **optional** | ***UpdateServiceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateServiceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **friendlyName** | **optional.String**| A descriptive string that you create to describe the Service resource. It can be a maximum of 255 characters. | + **includeCredentials** | **optional.Bool**| Whether to inject Account credentials into a function invocation context. | + **uiEditable** | **optional.Bool**| Whether the Service resource's properties and subresources can be edited via the UI. The default value is `false`. | + +### Return type + +[**ServerlessV1Service**](serverless.v1.service.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) + + +## UpdateVariable + +> ServerlessV1ServiceEnvironmentVariable UpdateVariable(ctx, serviceSid, environmentSid, sid, optional) + + + +Update a specific Variable. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the Service to update the Variable resource under. | +**environmentSid** | **string**| The SID of the Environment with the Variable resource to update. | +**sid** | **string**| The SID of the Variable resource to update. | + **optional** | ***UpdateVariableOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateVariableOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **key** | **optional.String**| A string by which the Variable resource can be referenced. It can be a maximum of 128 characters. | + **value** | **optional.String**| A string that contains the actual value of the Variable. It can be a maximum of 450 bytes in size. | + +### Return type + +[**ServerlessV1ServiceEnvironmentVariable**](serverless.v1.service.environment.variable.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/rest/serverless/v1/docs/ServerlessV1Service.md b/rest/serverless/v1/docs/ServerlessV1Service.md new file mode 100644 index 000000000..761ff5de0 --- /dev/null +++ b/rest/serverless/v1/docs/ServerlessV1Service.md @@ -0,0 +1,20 @@ +# ServerlessV1Service + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**IncludeCredentials** | **bool** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Sid** | **string** | | [optional] +**UiEditable** | **bool** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **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/rest/serverless/v1/docs/ServerlessV1ServiceAsset.md b/rest/serverless/v1/docs/ServerlessV1ServiceAsset.md new file mode 100644 index 000000000..9c8f11bcc --- /dev/null +++ b/rest/serverless/v1/docs/ServerlessV1ServiceAsset.md @@ -0,0 +1,18 @@ +# ServerlessV1ServiceAsset + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/serverless/v1/docs/ServerlessV1ServiceAssetAssetVersion.md b/rest/serverless/v1/docs/ServerlessV1ServiceAssetAssetVersion.md new file mode 100644 index 000000000..caedcf5aa --- /dev/null +++ b/rest/serverless/v1/docs/ServerlessV1ServiceAssetAssetVersion.md @@ -0,0 +1,18 @@ +# ServerlessV1ServiceAssetAssetVersion + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AssetSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**Path** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **string** | | [optional] +**Visibility** | **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/rest/serverless/v1/docs/ServerlessV1ServiceAssetAssetVersionReadResponse.md b/rest/serverless/v1/docs/ServerlessV1ServiceAssetAssetVersionReadResponse.md new file mode 100644 index 000000000..926ad2003 --- /dev/null +++ b/rest/serverless/v1/docs/ServerlessV1ServiceAssetAssetVersionReadResponse.md @@ -0,0 +1,12 @@ +# ServerlessV1ServiceAssetAssetVersionReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AssetVersions** | [**[]ServerlessV1ServiceAssetAssetVersion**](serverless.v1.service.asset.asset_version.md) | | [optional] +**Meta** | [**ServerlessV1ServiceReadResponseMeta**](serverless_v1_serviceReadResponse_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/rest/serverless/v1/docs/ServerlessV1ServiceAssetReadResponse.md b/rest/serverless/v1/docs/ServerlessV1ServiceAssetReadResponse.md new file mode 100644 index 000000000..061d5d974 --- /dev/null +++ b/rest/serverless/v1/docs/ServerlessV1ServiceAssetReadResponse.md @@ -0,0 +1,12 @@ +# ServerlessV1ServiceAssetReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Assets** | [**[]ServerlessV1ServiceAsset**](serverless.v1.service.asset.md) | | [optional] +**Meta** | [**ServerlessV1ServiceReadResponseMeta**](serverless_v1_serviceReadResponse_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/rest/serverless/v1/docs/ServerlessV1ServiceBuild.md b/rest/serverless/v1/docs/ServerlessV1ServiceBuild.md new file mode 100644 index 000000000..697107924 --- /dev/null +++ b/rest/serverless/v1/docs/ServerlessV1ServiceBuild.md @@ -0,0 +1,21 @@ +# ServerlessV1ServiceBuild + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AssetVersions** | **[]map[string]interface{}** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Dependencies** | **[]map[string]interface{}** | | [optional] +**FunctionVersions** | **[]map[string]interface{}** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Status** | **string** | | [optional] +**Url** | **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/rest/serverless/v1/docs/ServerlessV1ServiceBuildBuildStatus.md b/rest/serverless/v1/docs/ServerlessV1ServiceBuildBuildStatus.md new file mode 100644 index 000000000..4d4729f04 --- /dev/null +++ b/rest/serverless/v1/docs/ServerlessV1ServiceBuildBuildStatus.md @@ -0,0 +1,15 @@ +# ServerlessV1ServiceBuildBuildStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Status** | **string** | | [optional] +**Url** | **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/rest/serverless/v1/docs/ServerlessV1ServiceBuildReadResponse.md b/rest/serverless/v1/docs/ServerlessV1ServiceBuildReadResponse.md new file mode 100644 index 000000000..2da8658f3 --- /dev/null +++ b/rest/serverless/v1/docs/ServerlessV1ServiceBuildReadResponse.md @@ -0,0 +1,12 @@ +# ServerlessV1ServiceBuildReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Builds** | [**[]ServerlessV1ServiceBuild**](serverless.v1.service.build.md) | | [optional] +**Meta** | [**ServerlessV1ServiceReadResponseMeta**](serverless_v1_serviceReadResponse_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/rest/serverless/v1/docs/ServerlessV1ServiceEnvironment.md b/rest/serverless/v1/docs/ServerlessV1ServiceEnvironment.md new file mode 100644 index 000000000..97bc6d912 --- /dev/null +++ b/rest/serverless/v1/docs/ServerlessV1ServiceEnvironment.md @@ -0,0 +1,21 @@ +# ServerlessV1ServiceEnvironment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**BuildSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**DomainName** | **string** | | [optional] +**DomainSuffix** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **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/rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentDeployment.md b/rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentDeployment.md new file mode 100644 index 000000000..99aa028ba --- /dev/null +++ b/rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentDeployment.md @@ -0,0 +1,18 @@ +# ServerlessV1ServiceEnvironmentDeployment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**BuildSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**EnvironmentSid** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentDeploymentReadResponse.md b/rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentDeploymentReadResponse.md new file mode 100644 index 000000000..fb1e97034 --- /dev/null +++ b/rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentDeploymentReadResponse.md @@ -0,0 +1,12 @@ +# ServerlessV1ServiceEnvironmentDeploymentReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Deployments** | [**[]ServerlessV1ServiceEnvironmentDeployment**](serverless.v1.service.environment.deployment.md) | | [optional] +**Meta** | [**ServerlessV1ServiceReadResponseMeta**](serverless_v1_serviceReadResponse_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/rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentLog.md b/rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentLog.md new file mode 100644 index 000000000..fec1d680e --- /dev/null +++ b/rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentLog.md @@ -0,0 +1,22 @@ +# ServerlessV1ServiceEnvironmentLog + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**BuildSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DeploymentSid** | **string** | | [optional] +**EnvironmentSid** | **string** | | [optional] +**FunctionSid** | **string** | | [optional] +**Level** | **string** | | [optional] +**Message** | **string** | | [optional] +**RequestSid** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentLogReadResponse.md b/rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentLogReadResponse.md new file mode 100644 index 000000000..243d4d800 --- /dev/null +++ b/rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentLogReadResponse.md @@ -0,0 +1,12 @@ +# ServerlessV1ServiceEnvironmentLogReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Logs** | [**[]ServerlessV1ServiceEnvironmentLog**](serverless.v1.service.environment.log.md) | | [optional] +**Meta** | [**ServerlessV1ServiceReadResponseMeta**](serverless_v1_serviceReadResponse_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/rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentReadResponse.md b/rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentReadResponse.md new file mode 100644 index 000000000..35e3462f5 --- /dev/null +++ b/rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentReadResponse.md @@ -0,0 +1,12 @@ +# ServerlessV1ServiceEnvironmentReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Environments** | [**[]ServerlessV1ServiceEnvironment**](serverless.v1.service.environment.md) | | [optional] +**Meta** | [**ServerlessV1ServiceReadResponseMeta**](serverless_v1_serviceReadResponse_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/rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentVariable.md b/rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentVariable.md new file mode 100644 index 000000000..eefd8cba2 --- /dev/null +++ b/rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentVariable.md @@ -0,0 +1,19 @@ +# ServerlessV1ServiceEnvironmentVariable + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**EnvironmentSid** | **string** | | [optional] +**Key** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **string** | | [optional] +**Value** | **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/rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentVariableReadResponse.md b/rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentVariableReadResponse.md new file mode 100644 index 000000000..bc62e7fb4 --- /dev/null +++ b/rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentVariableReadResponse.md @@ -0,0 +1,12 @@ +# ServerlessV1ServiceEnvironmentVariableReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**ServerlessV1ServiceReadResponseMeta**](serverless_v1_serviceReadResponse_meta.md) | | [optional] +**Variables** | [**[]ServerlessV1ServiceEnvironmentVariable**](serverless.v1.service.environment.variable.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/rest/serverless/v1/docs/ServerlessV1ServiceFunction.md b/rest/serverless/v1/docs/ServerlessV1ServiceFunction.md new file mode 100644 index 000000000..bf1a4f647 --- /dev/null +++ b/rest/serverless/v1/docs/ServerlessV1ServiceFunction.md @@ -0,0 +1,18 @@ +# ServerlessV1ServiceFunction + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/serverless/v1/docs/ServerlessV1ServiceFunctionFunctionVersion.md b/rest/serverless/v1/docs/ServerlessV1ServiceFunctionFunctionVersion.md new file mode 100644 index 000000000..5064c88cb --- /dev/null +++ b/rest/serverless/v1/docs/ServerlessV1ServiceFunctionFunctionVersion.md @@ -0,0 +1,19 @@ +# ServerlessV1ServiceFunctionFunctionVersion + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**FunctionSid** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Path** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **string** | | [optional] +**Visibility** | **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/rest/serverless/v1/docs/ServerlessV1ServiceFunctionFunctionVersionFunctionVersionContent.md b/rest/serverless/v1/docs/ServerlessV1ServiceFunctionFunctionVersionFunctionVersionContent.md new file mode 100644 index 000000000..839dae29e --- /dev/null +++ b/rest/serverless/v1/docs/ServerlessV1ServiceFunctionFunctionVersionFunctionVersionContent.md @@ -0,0 +1,16 @@ +# ServerlessV1ServiceFunctionFunctionVersionFunctionVersionContent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Content** | **string** | | [optional] +**FunctionSid** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/serverless/v1/docs/ServerlessV1ServiceFunctionFunctionVersionReadResponse.md b/rest/serverless/v1/docs/ServerlessV1ServiceFunctionFunctionVersionReadResponse.md new file mode 100644 index 000000000..c725f6fdd --- /dev/null +++ b/rest/serverless/v1/docs/ServerlessV1ServiceFunctionFunctionVersionReadResponse.md @@ -0,0 +1,12 @@ +# ServerlessV1ServiceFunctionFunctionVersionReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FunctionVersions** | [**[]ServerlessV1ServiceFunctionFunctionVersion**](serverless.v1.service.function.function_version.md) | | [optional] +**Meta** | [**ServerlessV1ServiceReadResponseMeta**](serverless_v1_serviceReadResponse_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/rest/serverless/v1/docs/ServerlessV1ServiceFunctionReadResponse.md b/rest/serverless/v1/docs/ServerlessV1ServiceFunctionReadResponse.md new file mode 100644 index 000000000..489159f1b --- /dev/null +++ b/rest/serverless/v1/docs/ServerlessV1ServiceFunctionReadResponse.md @@ -0,0 +1,12 @@ +# ServerlessV1ServiceFunctionReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Functions** | [**[]ServerlessV1ServiceFunction**](serverless.v1.service.function.md) | | [optional] +**Meta** | [**ServerlessV1ServiceReadResponseMeta**](serverless_v1_serviceReadResponse_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/rest/serverless/v1/docs/ServerlessV1ServiceReadResponse.md b/rest/serverless/v1/docs/ServerlessV1ServiceReadResponse.md new file mode 100644 index 000000000..7669abfd4 --- /dev/null +++ b/rest/serverless/v1/docs/ServerlessV1ServiceReadResponse.md @@ -0,0 +1,12 @@ +# ServerlessV1ServiceReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**ServerlessV1ServiceReadResponseMeta**](serverless_v1_serviceReadResponse_meta.md) | | [optional] +**Services** | [**[]ServerlessV1Service**](serverless.v1.service.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/rest/serverless/v1/docs/ServerlessV1ServiceReadResponseMeta.md b/rest/serverless/v1/docs/ServerlessV1ServiceReadResponseMeta.md new file mode 100644 index 000000000..6ac0cc4ca --- /dev/null +++ b/rest/serverless/v1/docs/ServerlessV1ServiceReadResponseMeta.md @@ -0,0 +1,17 @@ +# ServerlessV1ServiceReadResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/serverless/v1/docs/UpdateAssetRequest.md b/rest/serverless/v1/docs/UpdateAssetRequest.md new file mode 100644 index 000000000..6c75ad5d9 --- /dev/null +++ b/rest/serverless/v1/docs/UpdateAssetRequest.md @@ -0,0 +1,11 @@ +# UpdateAssetRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | A descriptive string that you create to describe the Asset resource. It can be a maximum of 255 characters. | + +[[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/rest/serverless/v1/docs/UpdateFunctionRequest.md b/rest/serverless/v1/docs/UpdateFunctionRequest.md new file mode 100644 index 000000000..cdf6c1dfb --- /dev/null +++ b/rest/serverless/v1/docs/UpdateFunctionRequest.md @@ -0,0 +1,11 @@ +# UpdateFunctionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | A descriptive string that you create to describe the Function resource. It can be a maximum of 255 characters. | + +[[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/rest/serverless/v1/docs/UpdateServiceRequest.md b/rest/serverless/v1/docs/UpdateServiceRequest.md new file mode 100644 index 000000000..bbf5f4682 --- /dev/null +++ b/rest/serverless/v1/docs/UpdateServiceRequest.md @@ -0,0 +1,13 @@ +# UpdateServiceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | A descriptive string that you create to describe the Service resource. It can be a maximum of 255 characters. | [optional] +**IncludeCredentials** | **bool** | Whether to inject Account credentials into a function invocation context. | [optional] +**UiEditable** | **bool** | Whether the Service resource's properties and subresources can be edited via the UI. The default value is `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/rest/serverless/v1/docs/UpdateVariableRequest.md b/rest/serverless/v1/docs/UpdateVariableRequest.md new file mode 100644 index 000000000..d2f4c9a65 --- /dev/null +++ b/rest/serverless/v1/docs/UpdateVariableRequest.md @@ -0,0 +1,12 @@ +# UpdateVariableRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | A string by which the Variable resource can be referenced. It can be a maximum of 128 characters. | [optional] +**Value** | **string** | A string that contains the actual value of the Variable. It can be a maximum of 450 bytes in size. | [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/rest/serverless/v1/model_create_asset_request.go b/rest/serverless/v1/model_create_asset_request.go new file mode 100644 index 000000000..157c25187 --- /dev/null +++ b/rest/serverless/v1/model_create_asset_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Serverless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateAssetRequest struct for CreateAssetRequest +type CreateAssetRequest struct { + // A descriptive string that you create to describe the Asset resource. It can be a maximum of 255 characters. + FriendlyName string `json:"FriendlyName"` +} diff --git a/rest/serverless/v1/model_create_build_request.go b/rest/serverless/v1/model_create_build_request.go new file mode 100644 index 000000000..ea862e083 --- /dev/null +++ b/rest/serverless/v1/model_create_build_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Serverless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateBuildRequest struct for CreateBuildRequest +type CreateBuildRequest struct { + // The list of Asset Version resource SIDs to include in the Build. + AssetVersions []string `json:"AssetVersions,omitempty"` + // A list of objects that describe the Dependencies included in the Build. Each object contains the `name` and `version` of the dependency. + Dependencies string `json:"Dependencies,omitempty"` + // The list of the Function Version resource SIDs to include in the Build. + FunctionVersions []string `json:"FunctionVersions,omitempty"` +} diff --git a/rest/serverless/v1/model_create_deployment_request.go b/rest/serverless/v1/model_create_deployment_request.go new file mode 100644 index 000000000..7d9d149a4 --- /dev/null +++ b/rest/serverless/v1/model_create_deployment_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Serverless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateDeploymentRequest struct for CreateDeploymentRequest +type CreateDeploymentRequest struct { + // The SID of the Build for the Deployment. + BuildSid string `json:"BuildSid,omitempty"` +} diff --git a/rest/serverless/v1/model_create_environment_request.go b/rest/serverless/v1/model_create_environment_request.go new file mode 100644 index 000000000..31e138902 --- /dev/null +++ b/rest/serverless/v1/model_create_environment_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Serverless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateEnvironmentRequest struct for CreateEnvironmentRequest +type CreateEnvironmentRequest struct { + // A URL-friendly name that represents the environment and forms part of the domain name. It can be a maximum of 16 characters. + DomainSuffix string `json:"DomainSuffix,omitempty"` + // A user-defined string that uniquely identifies the Environment resource. It can be a maximum of 100 characters. + UniqueName string `json:"UniqueName"` +} diff --git a/rest/serverless/v1/model_create_function_request.go b/rest/serverless/v1/model_create_function_request.go new file mode 100644 index 000000000..da265b67e --- /dev/null +++ b/rest/serverless/v1/model_create_function_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Serverless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateFunctionRequest struct for CreateFunctionRequest +type CreateFunctionRequest struct { + // A descriptive string that you create to describe the Function resource. It can be a maximum of 255 characters. + FriendlyName string `json:"FriendlyName"` +} diff --git a/rest/serverless/v1/model_create_service_request.go b/rest/serverless/v1/model_create_service_request.go new file mode 100644 index 000000000..89a6ce4f1 --- /dev/null +++ b/rest/serverless/v1/model_create_service_request.go @@ -0,0 +1,22 @@ +/* + * Twilio - Serverless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateServiceRequest struct for CreateServiceRequest +type CreateServiceRequest struct { + // A descriptive string that you create to describe the Service resource. It can be a maximum of 255 characters. + FriendlyName string `json:"FriendlyName"` + // Whether to inject Account credentials into a function invocation context. The default value is `true`. + IncludeCredentials bool `json:"IncludeCredentials,omitempty"` + // Whether the Service's properties and subresources can be edited via the UI. The default value is `false`. + UiEditable bool `json:"UiEditable,omitempty"` + // A user-defined string that uniquely identifies the Service resource. It can be used as an alternative to the `sid` in the URL path to address the Service resource. This value must be 50 characters or less in length and be unique. + UniqueName string `json:"UniqueName"` +} diff --git a/rest/serverless/v1/model_create_variable_request.go b/rest/serverless/v1/model_create_variable_request.go new file mode 100644 index 000000000..1780d4378 --- /dev/null +++ b/rest/serverless/v1/model_create_variable_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Serverless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateVariableRequest struct for CreateVariableRequest +type CreateVariableRequest struct { + // A string by which the Variable resource can be referenced. It can be a maximum of 128 characters. + Key string `json:"Key"` + // A string that contains the actual value of the Variable. It can be a maximum of 450 bytes in size. + Value string `json:"Value"` +} diff --git a/rest/serverless/v1/model_serverless_v1_service.go b/rest/serverless/v1/model_serverless_v1_service.go new file mode 100644 index 000000000..ff0c47f58 --- /dev/null +++ b/rest/serverless/v1/model_serverless_v1_service.go @@ -0,0 +1,27 @@ +/* + * Twilio - Serverless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ServerlessV1Service struct for ServerlessV1Service +type ServerlessV1Service struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + IncludeCredentials bool `json:"include_credentials,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Sid string `json:"sid,omitempty"` + UiEditable bool `json:"ui_editable,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/serverless/v1/model_serverless_v1_service_asset.go b/rest/serverless/v1/model_serverless_v1_service_asset.go new file mode 100644 index 000000000..61e20d9d5 --- /dev/null +++ b/rest/serverless/v1/model_serverless_v1_service_asset.go @@ -0,0 +1,25 @@ +/* + * Twilio - Serverless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ServerlessV1ServiceAsset struct for ServerlessV1ServiceAsset +type ServerlessV1ServiceAsset struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/serverless/v1/model_serverless_v1_service_asset_asset_version.go b/rest/serverless/v1/model_serverless_v1_service_asset_asset_version.go new file mode 100644 index 000000000..bb56c3b83 --- /dev/null +++ b/rest/serverless/v1/model_serverless_v1_service_asset_asset_version.go @@ -0,0 +1,25 @@ +/* + * Twilio - Serverless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ServerlessV1ServiceAssetAssetVersion struct for ServerlessV1ServiceAssetAssetVersion +type ServerlessV1ServiceAssetAssetVersion struct { + AccountSid string `json:"account_sid,omitempty"` + AssetSid string `json:"asset_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + Path string `json:"path,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` + Visibility string `json:"visibility,omitempty"` +} diff --git a/rest/serverless/v1/model_serverless_v1_service_asset_asset_version_read_response.go b/rest/serverless/v1/model_serverless_v1_service_asset_asset_version_read_response.go new file mode 100644 index 000000000..dd4cdbdfc --- /dev/null +++ b/rest/serverless/v1/model_serverless_v1_service_asset_asset_version_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Serverless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ServerlessV1ServiceAssetAssetVersionReadResponse struct for ServerlessV1ServiceAssetAssetVersionReadResponse +type ServerlessV1ServiceAssetAssetVersionReadResponse struct { + AssetVersions []ServerlessV1ServiceAssetAssetVersion `json:"asset_versions,omitempty"` + Meta ServerlessV1ServiceReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/serverless/v1/model_serverless_v1_service_asset_read_response.go b/rest/serverless/v1/model_serverless_v1_service_asset_read_response.go new file mode 100644 index 000000000..cac52d479 --- /dev/null +++ b/rest/serverless/v1/model_serverless_v1_service_asset_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Serverless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ServerlessV1ServiceAssetReadResponse struct for ServerlessV1ServiceAssetReadResponse +type ServerlessV1ServiceAssetReadResponse struct { + Assets []ServerlessV1ServiceAsset `json:"assets,omitempty"` + Meta ServerlessV1ServiceReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/serverless/v1/model_serverless_v1_service_build.go b/rest/serverless/v1/model_serverless_v1_service_build.go new file mode 100644 index 000000000..020cdf837 --- /dev/null +++ b/rest/serverless/v1/model_serverless_v1_service_build.go @@ -0,0 +1,28 @@ +/* + * Twilio - Serverless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ServerlessV1ServiceBuild struct for ServerlessV1ServiceBuild +type ServerlessV1ServiceBuild struct { + AccountSid string `json:"account_sid,omitempty"` + AssetVersions []map[string]interface{} `json:"asset_versions,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Dependencies []map[string]interface{} `json:"dependencies,omitempty"` + FunctionVersions []map[string]interface{} `json:"function_versions,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Status string `json:"status,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/serverless/v1/model_serverless_v1_service_build_build_status.go b/rest/serverless/v1/model_serverless_v1_service_build_build_status.go new file mode 100644 index 000000000..424243130 --- /dev/null +++ b/rest/serverless/v1/model_serverless_v1_service_build_build_status.go @@ -0,0 +1,19 @@ +/* + * Twilio - Serverless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ServerlessV1ServiceBuildBuildStatus struct for ServerlessV1ServiceBuildBuildStatus +type ServerlessV1ServiceBuildBuildStatus struct { + AccountSid string `json:"account_sid,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Status string `json:"status,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/serverless/v1/model_serverless_v1_service_build_read_response.go b/rest/serverless/v1/model_serverless_v1_service_build_read_response.go new file mode 100644 index 000000000..367fe2f87 --- /dev/null +++ b/rest/serverless/v1/model_serverless_v1_service_build_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Serverless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ServerlessV1ServiceBuildReadResponse struct for ServerlessV1ServiceBuildReadResponse +type ServerlessV1ServiceBuildReadResponse struct { + Builds []ServerlessV1ServiceBuild `json:"builds,omitempty"` + Meta ServerlessV1ServiceReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/serverless/v1/model_serverless_v1_service_environment.go b/rest/serverless/v1/model_serverless_v1_service_environment.go new file mode 100644 index 000000000..653a90882 --- /dev/null +++ b/rest/serverless/v1/model_serverless_v1_service_environment.go @@ -0,0 +1,28 @@ +/* + * Twilio - Serverless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ServerlessV1ServiceEnvironment struct for ServerlessV1ServiceEnvironment +type ServerlessV1ServiceEnvironment struct { + AccountSid string `json:"account_sid,omitempty"` + BuildSid string `json:"build_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + DomainName string `json:"domain_name,omitempty"` + DomainSuffix string `json:"domain_suffix,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/serverless/v1/model_serverless_v1_service_environment_deployment.go b/rest/serverless/v1/model_serverless_v1_service_environment_deployment.go new file mode 100644 index 000000000..baaa97d79 --- /dev/null +++ b/rest/serverless/v1/model_serverless_v1_service_environment_deployment.go @@ -0,0 +1,25 @@ +/* + * Twilio - Serverless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ServerlessV1ServiceEnvironmentDeployment struct for ServerlessV1ServiceEnvironmentDeployment +type ServerlessV1ServiceEnvironmentDeployment struct { + AccountSid string `json:"account_sid,omitempty"` + BuildSid string `json:"build_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + EnvironmentSid string `json:"environment_sid,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/serverless/v1/model_serverless_v1_service_environment_deployment_read_response.go b/rest/serverless/v1/model_serverless_v1_service_environment_deployment_read_response.go new file mode 100644 index 000000000..e30519dd1 --- /dev/null +++ b/rest/serverless/v1/model_serverless_v1_service_environment_deployment_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Serverless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ServerlessV1ServiceEnvironmentDeploymentReadResponse struct for ServerlessV1ServiceEnvironmentDeploymentReadResponse +type ServerlessV1ServiceEnvironmentDeploymentReadResponse struct { + Deployments []ServerlessV1ServiceEnvironmentDeployment `json:"deployments,omitempty"` + Meta ServerlessV1ServiceReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/serverless/v1/model_serverless_v1_service_environment_log.go b/rest/serverless/v1/model_serverless_v1_service_environment_log.go new file mode 100644 index 000000000..2a470537e --- /dev/null +++ b/rest/serverless/v1/model_serverless_v1_service_environment_log.go @@ -0,0 +1,29 @@ +/* + * Twilio - Serverless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ServerlessV1ServiceEnvironmentLog struct for ServerlessV1ServiceEnvironmentLog +type ServerlessV1ServiceEnvironmentLog struct { + AccountSid string `json:"account_sid,omitempty"` + BuildSid string `json:"build_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DeploymentSid string `json:"deployment_sid,omitempty"` + EnvironmentSid string `json:"environment_sid,omitempty"` + FunctionSid string `json:"function_sid,omitempty"` + Level string `json:"level,omitempty"` + Message string `json:"message,omitempty"` + RequestSid string `json:"request_sid,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/serverless/v1/model_serverless_v1_service_environment_log_read_response.go b/rest/serverless/v1/model_serverless_v1_service_environment_log_read_response.go new file mode 100644 index 000000000..801e14bae --- /dev/null +++ b/rest/serverless/v1/model_serverless_v1_service_environment_log_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Serverless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ServerlessV1ServiceEnvironmentLogReadResponse struct for ServerlessV1ServiceEnvironmentLogReadResponse +type ServerlessV1ServiceEnvironmentLogReadResponse struct { + Logs []ServerlessV1ServiceEnvironmentLog `json:"logs,omitempty"` + Meta ServerlessV1ServiceReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/serverless/v1/model_serverless_v1_service_environment_read_response.go b/rest/serverless/v1/model_serverless_v1_service_environment_read_response.go new file mode 100644 index 000000000..e85f38da7 --- /dev/null +++ b/rest/serverless/v1/model_serverless_v1_service_environment_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Serverless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ServerlessV1ServiceEnvironmentReadResponse struct for ServerlessV1ServiceEnvironmentReadResponse +type ServerlessV1ServiceEnvironmentReadResponse struct { + Environments []ServerlessV1ServiceEnvironment `json:"environments,omitempty"` + Meta ServerlessV1ServiceReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/serverless/v1/model_serverless_v1_service_environment_variable.go b/rest/serverless/v1/model_serverless_v1_service_environment_variable.go new file mode 100644 index 000000000..846f78e76 --- /dev/null +++ b/rest/serverless/v1/model_serverless_v1_service_environment_variable.go @@ -0,0 +1,26 @@ +/* + * Twilio - Serverless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ServerlessV1ServiceEnvironmentVariable struct for ServerlessV1ServiceEnvironmentVariable +type ServerlessV1ServiceEnvironmentVariable struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + EnvironmentSid string `json:"environment_sid,omitempty"` + Key string `json:"key,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` + Value string `json:"value,omitempty"` +} diff --git a/rest/serverless/v1/model_serverless_v1_service_environment_variable_read_response.go b/rest/serverless/v1/model_serverless_v1_service_environment_variable_read_response.go new file mode 100644 index 000000000..c532a4d9e --- /dev/null +++ b/rest/serverless/v1/model_serverless_v1_service_environment_variable_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Serverless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ServerlessV1ServiceEnvironmentVariableReadResponse struct for ServerlessV1ServiceEnvironmentVariableReadResponse +type ServerlessV1ServiceEnvironmentVariableReadResponse struct { + Meta ServerlessV1ServiceReadResponseMeta `json:"meta,omitempty"` + Variables []ServerlessV1ServiceEnvironmentVariable `json:"variables,omitempty"` +} diff --git a/rest/serverless/v1/model_serverless_v1_service_function.go b/rest/serverless/v1/model_serverless_v1_service_function.go new file mode 100644 index 000000000..11f6b2c1c --- /dev/null +++ b/rest/serverless/v1/model_serverless_v1_service_function.go @@ -0,0 +1,25 @@ +/* + * Twilio - Serverless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ServerlessV1ServiceFunction struct for ServerlessV1ServiceFunction +type ServerlessV1ServiceFunction struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/serverless/v1/model_serverless_v1_service_function_function_version.go b/rest/serverless/v1/model_serverless_v1_service_function_function_version.go new file mode 100644 index 000000000..189d3a14c --- /dev/null +++ b/rest/serverless/v1/model_serverless_v1_service_function_function_version.go @@ -0,0 +1,26 @@ +/* + * Twilio - Serverless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// ServerlessV1ServiceFunctionFunctionVersion struct for ServerlessV1ServiceFunctionFunctionVersion +type ServerlessV1ServiceFunctionFunctionVersion struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + FunctionSid string `json:"function_sid,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Path string `json:"path,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` + Visibility string `json:"visibility,omitempty"` +} diff --git a/rest/serverless/v1/model_serverless_v1_service_function_function_version_function_version_content.go b/rest/serverless/v1/model_serverless_v1_service_function_function_version_function_version_content.go new file mode 100644 index 000000000..5812c4cb5 --- /dev/null +++ b/rest/serverless/v1/model_serverless_v1_service_function_function_version_function_version_content.go @@ -0,0 +1,20 @@ +/* + * Twilio - Serverless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ServerlessV1ServiceFunctionFunctionVersionFunctionVersionContent struct for ServerlessV1ServiceFunctionFunctionVersionFunctionVersionContent +type ServerlessV1ServiceFunctionFunctionVersionFunctionVersionContent struct { + AccountSid string `json:"account_sid,omitempty"` + Content string `json:"content,omitempty"` + FunctionSid string `json:"function_sid,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/serverless/v1/model_serverless_v1_service_function_function_version_read_response.go b/rest/serverless/v1/model_serverless_v1_service_function_function_version_read_response.go new file mode 100644 index 000000000..02b48e32d --- /dev/null +++ b/rest/serverless/v1/model_serverless_v1_service_function_function_version_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Serverless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ServerlessV1ServiceFunctionFunctionVersionReadResponse struct for ServerlessV1ServiceFunctionFunctionVersionReadResponse +type ServerlessV1ServiceFunctionFunctionVersionReadResponse struct { + FunctionVersions []ServerlessV1ServiceFunctionFunctionVersion `json:"function_versions,omitempty"` + Meta ServerlessV1ServiceReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/serverless/v1/model_serverless_v1_service_function_read_response.go b/rest/serverless/v1/model_serverless_v1_service_function_read_response.go new file mode 100644 index 000000000..f8459901d --- /dev/null +++ b/rest/serverless/v1/model_serverless_v1_service_function_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Serverless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ServerlessV1ServiceFunctionReadResponse struct for ServerlessV1ServiceFunctionReadResponse +type ServerlessV1ServiceFunctionReadResponse struct { + Functions []ServerlessV1ServiceFunction `json:"functions,omitempty"` + Meta ServerlessV1ServiceReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/serverless/v1/model_serverless_v1_service_read_response.go b/rest/serverless/v1/model_serverless_v1_service_read_response.go new file mode 100644 index 000000000..84f66e1d4 --- /dev/null +++ b/rest/serverless/v1/model_serverless_v1_service_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Serverless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ServerlessV1ServiceReadResponse struct for ServerlessV1ServiceReadResponse +type ServerlessV1ServiceReadResponse struct { + Meta ServerlessV1ServiceReadResponseMeta `json:"meta,omitempty"` + Services []ServerlessV1Service `json:"services,omitempty"` +} diff --git a/rest/serverless/v1/model_serverless_v1_service_read_response_meta.go b/rest/serverless/v1/model_serverless_v1_service_read_response_meta.go new file mode 100644 index 000000000..e1d70abaa --- /dev/null +++ b/rest/serverless/v1/model_serverless_v1_service_read_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Serverless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ServerlessV1ServiceReadResponseMeta struct for ServerlessV1ServiceReadResponseMeta +type ServerlessV1ServiceReadResponseMeta struct { + FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` + NextPageUrl string `json:"next_page_url,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUrl string `json:"previous_page_url,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/serverless/v1/model_update_asset_request.go b/rest/serverless/v1/model_update_asset_request.go new file mode 100644 index 000000000..7772d0163 --- /dev/null +++ b/rest/serverless/v1/model_update_asset_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Serverless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateAssetRequest struct for UpdateAssetRequest +type UpdateAssetRequest struct { + // A descriptive string that you create to describe the Asset resource. It can be a maximum of 255 characters. + FriendlyName string `json:"FriendlyName"` +} diff --git a/rest/serverless/v1/model_update_function_request.go b/rest/serverless/v1/model_update_function_request.go new file mode 100644 index 000000000..7d0e2cab5 --- /dev/null +++ b/rest/serverless/v1/model_update_function_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Serverless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateFunctionRequest struct for UpdateFunctionRequest +type UpdateFunctionRequest struct { + // A descriptive string that you create to describe the Function resource. It can be a maximum of 255 characters. + FriendlyName string `json:"FriendlyName"` +} diff --git a/rest/serverless/v1/model_update_service_request.go b/rest/serverless/v1/model_update_service_request.go new file mode 100644 index 000000000..5e5c9c7dc --- /dev/null +++ b/rest/serverless/v1/model_update_service_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Serverless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateServiceRequest struct for UpdateServiceRequest +type UpdateServiceRequest struct { + // A descriptive string that you create to describe the Service resource. It can be a maximum of 255 characters. + FriendlyName string `json:"FriendlyName,omitempty"` + // Whether to inject Account credentials into a function invocation context. + IncludeCredentials bool `json:"IncludeCredentials,omitempty"` + // Whether the Service resource's properties and subresources can be edited via the UI. The default value is `false`. + UiEditable bool `json:"UiEditable,omitempty"` +} diff --git a/rest/serverless/v1/model_update_variable_request.go b/rest/serverless/v1/model_update_variable_request.go new file mode 100644 index 000000000..23e92e99a --- /dev/null +++ b/rest/serverless/v1/model_update_variable_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Serverless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateVariableRequest struct for UpdateVariableRequest +type UpdateVariableRequest struct { + // A string by which the Variable resource can be referenced. It can be a maximum of 128 characters. + Key string `json:"Key,omitempty"` + // A string that contains the actual value of the Variable. It can be a maximum of 450 bytes in size. + Value string `json:"Value,omitempty"` +} diff --git a/rest/serverless/v1/response.go b/rest/serverless/v1/response.go new file mode 100644 index 000000000..4e4a3b9be --- /dev/null +++ b/rest/serverless/v1/response.go @@ -0,0 +1,47 @@ +/* + * Twilio - Serverless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// Response returns a new APIResponse object. +func Response(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// ResponseWithError returns a new APIResponse object with the provided error message. +func ResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/rest/studio/v1/.openapi-generator-ignore b/rest/studio/v1/.openapi-generator-ignore new file mode 100644 index 000000000..7484ee590 --- /dev/null +++ b/rest/studio/v1/.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/rest/studio/v1/.openapi-generator/VERSION b/rest/studio/v1/.openapi-generator/VERSION new file mode 100644 index 000000000..ecedc98d1 --- /dev/null +++ b/rest/studio/v1/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.3.1 \ No newline at end of file diff --git a/rest/studio/v1/README.md b/rest/studio/v1/README.md new file mode 100644 index 000000000..09dea5b3d --- /dev/null +++ b/rest/studio/v1/README.md @@ -0,0 +1,100 @@ +# Go API client for openapi + +This is the public Twilio REST API. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 5.15.0 +- Package version: 1.0.0 +- Build package: com.twilio.oai.TwilioGoGenerator +For more information, please visit [https://support.twilio.com](https://support.twilio.com) + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import "./openapi" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**CreateEngagement**](docs/DefaultApi.md#createengagement) | **Post** /v1/Flows/{FlowSid}/Engagements | +*DefaultApi* | [**CreateExecution**](docs/DefaultApi.md#createexecution) | **Post** /v1/Flows/{FlowSid}/Executions | +*DefaultApi* | [**DeleteEngagement**](docs/DefaultApi.md#deleteengagement) | **Delete** /v1/Flows/{FlowSid}/Engagements/{Sid} | +*DefaultApi* | [**DeleteExecution**](docs/DefaultApi.md#deleteexecution) | **Delete** /v1/Flows/{FlowSid}/Executions/{Sid} | +*DefaultApi* | [**DeleteFlow**](docs/DefaultApi.md#deleteflow) | **Delete** /v1/Flows/{Sid} | +*DefaultApi* | [**FetchEngagement**](docs/DefaultApi.md#fetchengagement) | **Get** /v1/Flows/{FlowSid}/Engagements/{Sid} | +*DefaultApi* | [**FetchEngagementContext**](docs/DefaultApi.md#fetchengagementcontext) | **Get** /v1/Flows/{FlowSid}/Engagements/{EngagementSid}/Context | +*DefaultApi* | [**FetchExecution**](docs/DefaultApi.md#fetchexecution) | **Get** /v1/Flows/{FlowSid}/Executions/{Sid} | +*DefaultApi* | [**FetchExecutionContext**](docs/DefaultApi.md#fetchexecutioncontext) | **Get** /v1/Flows/{FlowSid}/Executions/{ExecutionSid}/Context | +*DefaultApi* | [**FetchExecutionStep**](docs/DefaultApi.md#fetchexecutionstep) | **Get** /v1/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps/{Sid} | +*DefaultApi* | [**FetchExecutionStepContext**](docs/DefaultApi.md#fetchexecutionstepcontext) | **Get** /v1/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps/{StepSid}/Context | +*DefaultApi* | [**FetchFlow**](docs/DefaultApi.md#fetchflow) | **Get** /v1/Flows/{Sid} | +*DefaultApi* | [**FetchStep**](docs/DefaultApi.md#fetchstep) | **Get** /v1/Flows/{FlowSid}/Engagements/{EngagementSid}/Steps/{Sid} | +*DefaultApi* | [**FetchStepContext**](docs/DefaultApi.md#fetchstepcontext) | **Get** /v1/Flows/{FlowSid}/Engagements/{EngagementSid}/Steps/{StepSid}/Context | +*DefaultApi* | [**ListEngagement**](docs/DefaultApi.md#listengagement) | **Get** /v1/Flows/{FlowSid}/Engagements | +*DefaultApi* | [**ListExecution**](docs/DefaultApi.md#listexecution) | **Get** /v1/Flows/{FlowSid}/Executions | +*DefaultApi* | [**ListExecutionStep**](docs/DefaultApi.md#listexecutionstep) | **Get** /v1/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps | +*DefaultApi* | [**ListFlow**](docs/DefaultApi.md#listflow) | **Get** /v1/Flows | +*DefaultApi* | [**ListStep**](docs/DefaultApi.md#liststep) | **Get** /v1/Flows/{FlowSid}/Engagements/{EngagementSid}/Steps | +*DefaultApi* | [**UpdateExecution**](docs/DefaultApi.md#updateexecution) | **Post** /v1/Flows/{FlowSid}/Executions/{Sid} | + + +## Documentation For Models + + - [CreateEngagementRequest](docs/CreateEngagementRequest.md) + - [CreateExecutionRequest](docs/CreateExecutionRequest.md) + - [StudioV1Flow](docs/StudioV1Flow.md) + - [StudioV1FlowEngagement](docs/StudioV1FlowEngagement.md) + - [StudioV1FlowEngagementEngagementContext](docs/StudioV1FlowEngagementEngagementContext.md) + - [StudioV1FlowEngagementReadResponse](docs/StudioV1FlowEngagementReadResponse.md) + - [StudioV1FlowEngagementStep](docs/StudioV1FlowEngagementStep.md) + - [StudioV1FlowEngagementStepReadResponse](docs/StudioV1FlowEngagementStepReadResponse.md) + - [StudioV1FlowEngagementStepStepContext](docs/StudioV1FlowEngagementStepStepContext.md) + - [StudioV1FlowExecution](docs/StudioV1FlowExecution.md) + - [StudioV1FlowExecutionExecutionContext](docs/StudioV1FlowExecutionExecutionContext.md) + - [StudioV1FlowExecutionExecutionStep](docs/StudioV1FlowExecutionExecutionStep.md) + - [StudioV1FlowExecutionExecutionStepExecutionStepContext](docs/StudioV1FlowExecutionExecutionStepExecutionStepContext.md) + - [StudioV1FlowExecutionExecutionStepReadResponse](docs/StudioV1FlowExecutionExecutionStepReadResponse.md) + - [StudioV1FlowExecutionReadResponse](docs/StudioV1FlowExecutionReadResponse.md) + - [StudioV1FlowReadResponse](docs/StudioV1FlowReadResponse.md) + - [StudioV1FlowReadResponseMeta](docs/StudioV1FlowReadResponseMeta.md) + - [UpdateExecutionRequest](docs/UpdateExecutionRequest.md) + + +## Documentation For Authorization + + + +## accountSid_authToken + +- **Type**: HTTP basic authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ + UserName: "username", + Password: "password", +}) +r, err := client.Service.Operation(auth, args) +``` + + +## Author + +support@twilio.com + diff --git a/rest/studio/v1/api_default.go b/rest/studio/v1/api_default.go new file mode 100644 index 000000000..5d399b9b7 --- /dev/null +++ b/rest/studio/v1/api_default.go @@ -0,0 +1,760 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "" +) + +type DefaultApiService struct { + baseURL string + client *twilio.Client +} + +func NewDefaultApiService(client *twilio.Client) *DefaultApiService { + return &DefaultApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} +// CreateEngagementParams Optional parameters for the method 'CreateEngagement' +type CreateEngagementParams struct { + From *string `json:"From,omitempty"` + Parameters *map[string]interface{} `json:"Parameters,omitempty"` + To *string `json:"To,omitempty"` +} + +/* +CreateEngagement Method for CreateEngagement +Triggers a new Engagement for the Flow + * @param flowSid The SID of the Flow. + * @param optional nil or *CreateEngagementOpts - Optional Parameters: + * @param "From" (string) - The Twilio phone number to send messages or initiate calls from during the Flow Engagement. Available as variable `{{flow.channel.address}}` + * @param "Parameters" (map[string]interface{}) - A JSON string we will add to your flow's context and that you can access as variables inside your flow. For example, if you pass in `Parameters={'name':'Zeke'}` then inside a widget you can reference the variable `{{flow.data.name}}` which will return the string 'Zeke'. Note: the JSON value must explicitly be passed as a string, not as a hash object. Depending on your particular HTTP library, you may need to add quotes or URL encode your JSON string. + * @param "To" (string) - The Contact phone number to start a Studio Flow Engagement, available as variable `{{contact.channel.address}}`. +@return StudioV1FlowEngagement +*/ +func (c *DefaultApiService) CreateEngagement(flowSid string, params *CreateEngagementParams) (*StudioV1FlowEngagement, error) { + path := "/v1/Flows/{FlowSid}/Engagements" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.Parameters != nil { + v, err := json.Marshal(params.Parameters) + + if err != nil { + return nil, err + } + + data.Set("Parameters", string(v)) + } + if params != nil && params.To != nil { + data.Set("To", *params.To) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV1FlowEngagement{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateExecutionParams Optional parameters for the method 'CreateExecution' +type CreateExecutionParams struct { + From *string `json:"From,omitempty"` + Parameters *map[string]interface{} `json:"Parameters,omitempty"` + To *string `json:"To,omitempty"` +} + +/* +CreateExecution Method for CreateExecution +Triggers a new Execution for the Flow + * @param flowSid The SID of the Excecution's Flow. + * @param optional nil or *CreateExecutionOpts - Optional Parameters: + * @param "From" (string) - The Twilio phone number to send messages or initiate calls from during the Flow's Execution. Available as variable `{{flow.channel.address}}`. + * @param "Parameters" (map[string]interface{}) - JSON data that will be added to the Flow's context and that can be accessed as variables inside your Flow. For example, if you pass in `Parameters={\\\"name\\\":\\\"Zeke\\\"}`, a widget in your Flow can reference the variable `{{flow.data.name}}`, which returns \\\"Zeke\\\". Note: the JSON value must explicitly be passed as a string, not as a hash object. Depending on your particular HTTP library, you may need to add quotes or URL encode the JSON string. + * @param "To" (string) - The Contact phone number to start a Studio Flow Execution, available as variable `{{contact.channel.address}}`. +@return StudioV1FlowExecution +*/ +func (c *DefaultApiService) CreateExecution(flowSid string, params *CreateExecutionParams) (*StudioV1FlowExecution, error) { + path := "/v1/Flows/{FlowSid}/Executions" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.Parameters != nil { + v, err := json.Marshal(params.Parameters) + + if err != nil { + return nil, err + } + + data.Set("Parameters", string(v)) + } + if params != nil && params.To != nil { + data.Set("To", *params.To) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV1FlowExecution{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +DeleteEngagement Method for DeleteEngagement +Delete this Engagement and all Steps relating to it. + * @param flowSid The SID of the Flow to delete Engagements from. + * @param sid The SID of the Engagement resource to delete. +*/ +func (c *DefaultApiService) DeleteEngagement(flowSid string, sid string) (error) { + path := "/v1/Flows/{FlowSid}/Engagements/{Sid}" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteExecution Method for DeleteExecution +Delete the Execution and all Steps relating to it. + * @param flowSid The SID of the Flow with the Execution resources to delete. + * @param sid The SID of the Execution resource to delete. +*/ +func (c *DefaultApiService) DeleteExecution(flowSid string, sid string) (error) { + path := "/v1/Flows/{FlowSid}/Executions/{Sid}" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteFlow Method for DeleteFlow +Delete a specific Flow. + * @param sid The SID of the Flow resource to delete. +*/ +func (c *DefaultApiService) DeleteFlow(sid string) (error) { + path := "/v1/Flows/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +FetchEngagement Method for FetchEngagement +Retrieve an Engagement + * @param flowSid The SID of the Flow. + * @param sid The SID of the Engagement resource to fetch. +@return StudioV1FlowEngagement +*/ +func (c *DefaultApiService) FetchEngagement(flowSid string, sid string) (*StudioV1FlowEngagement, error) { + path := "/v1/Flows/{FlowSid}/Engagements/{Sid}" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV1FlowEngagement{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchEngagementContext Method for FetchEngagementContext +Retrieve the most recent context for an Engagement. + * @param flowSid The SID of the Flow. + * @param engagementSid The SID of the Engagement. +@return StudioV1FlowEngagementEngagementContext +*/ +func (c *DefaultApiService) FetchEngagementContext(flowSid string, engagementSid string) (*StudioV1FlowEngagementEngagementContext, error) { + path := "/v1/Flows/{FlowSid}/Engagements/{EngagementSid}/Context" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"EngagementSid"+"}", engagementSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV1FlowEngagementEngagementContext{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchExecution Method for FetchExecution +Retrieve an Execution + * @param flowSid The SID of the Flow with the Execution resource to fetch + * @param sid The SID of the Execution resource to fetch. +@return StudioV1FlowExecution +*/ +func (c *DefaultApiService) FetchExecution(flowSid string, sid string) (*StudioV1FlowExecution, error) { + path := "/v1/Flows/{FlowSid}/Executions/{Sid}" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV1FlowExecution{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchExecutionContext Method for FetchExecutionContext +Retrieve the most recent context for an Execution. + * @param flowSid The SID of the Flow with the Execution context to fetch. + * @param executionSid The SID of the Execution context to fetch. +@return StudioV1FlowExecutionExecutionContext +*/ +func (c *DefaultApiService) FetchExecutionContext(flowSid string, executionSid string) (*StudioV1FlowExecutionExecutionContext, error) { + path := "/v1/Flows/{FlowSid}/Executions/{ExecutionSid}/Context" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"ExecutionSid"+"}", executionSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV1FlowExecutionExecutionContext{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchExecutionStep Method for FetchExecutionStep +Retrieve a Step. + * @param flowSid The SID of the Flow with the Step to fetch. + * @param executionSid The SID of the Execution resource with the Step to fetch. + * @param sid The SID of the ExecutionStep resource to fetch. +@return StudioV1FlowExecutionExecutionStep +*/ +func (c *DefaultApiService) FetchExecutionStep(flowSid string, executionSid string, sid string) (*StudioV1FlowExecutionExecutionStep, error) { + path := "/v1/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps/{Sid}" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"ExecutionSid"+"}", executionSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV1FlowExecutionExecutionStep{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchExecutionStepContext Method for FetchExecutionStepContext +Retrieve the context for an Execution Step. + * @param flowSid The SID of the Flow with the Step to fetch. + * @param executionSid The SID of the Execution resource with the Step to fetch. + * @param stepSid The SID of the Step to fetch. +@return StudioV1FlowExecutionExecutionStepExecutionStepContext +*/ +func (c *DefaultApiService) FetchExecutionStepContext(flowSid string, executionSid string, stepSid string) (*StudioV1FlowExecutionExecutionStepExecutionStepContext, error) { + path := "/v1/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps/{StepSid}/Context" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"ExecutionSid"+"}", executionSid, -1) + path = strings.Replace(path, "{"+"StepSid"+"}", stepSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV1FlowExecutionExecutionStepExecutionStepContext{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchFlow Method for FetchFlow +Retrieve a specific Flow. + * @param sid The SID of the Flow resource to fetch. +@return StudioV1Flow +*/ +func (c *DefaultApiService) FetchFlow(sid string) (*StudioV1Flow, error) { + path := "/v1/Flows/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV1Flow{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchStep Method for FetchStep +Retrieve a Step. + * @param flowSid The SID of the Flow with the Step to fetch. + * @param engagementSid The SID of the Engagement with the Step to fetch. + * @param sid The SID of the Step resource to fetch. +@return StudioV1FlowEngagementStep +*/ +func (c *DefaultApiService) FetchStep(flowSid string, engagementSid string, sid string) (*StudioV1FlowEngagementStep, error) { + path := "/v1/Flows/{FlowSid}/Engagements/{EngagementSid}/Steps/{Sid}" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"EngagementSid"+"}", engagementSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV1FlowEngagementStep{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchStepContext Method for FetchStepContext +Retrieve the context for an Engagement Step. + * @param flowSid The SID of the Flow with the Step to fetch. + * @param engagementSid The SID of the Engagement with the Step to fetch. + * @param stepSid The SID of the Step to fetch +@return StudioV1FlowEngagementStepStepContext +*/ +func (c *DefaultApiService) FetchStepContext(flowSid string, engagementSid string, stepSid string) (*StudioV1FlowEngagementStepStepContext, error) { + path := "/v1/Flows/{FlowSid}/Engagements/{EngagementSid}/Steps/{StepSid}/Context" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"EngagementSid"+"}", engagementSid, -1) + path = strings.Replace(path, "{"+"StepSid"+"}", stepSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV1FlowEngagementStepStepContext{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListEngagementParams Optional parameters for the method 'ListEngagement' +type ListEngagementParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListEngagement Method for ListEngagement +Retrieve a list of all Engagements for the Flow. + * @param flowSid The SID of the Flow to read Engagements from. + * @param optional nil or *ListEngagementOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return StudioV1FlowEngagementReadResponse +*/ +func (c *DefaultApiService) ListEngagement(flowSid string, params *ListEngagementParams) (*StudioV1FlowEngagementReadResponse, error) { + path := "/v1/Flows/{FlowSid}/Engagements" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV1FlowEngagementReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListExecutionParams Optional parameters for the method 'ListExecution' +type ListExecutionParams struct { + DateCreatedFrom *time.Time `json:"DateCreatedFrom,omitempty"` + DateCreatedTo *time.Time `json:"DateCreatedTo,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListExecution Method for ListExecution +Retrieve a list of all Executions for the Flow. + * @param flowSid The SID of the Flow with the Execution resources to read. + * @param optional nil or *ListExecutionOpts - Optional Parameters: + * @param "DateCreatedFrom" (time.Time) - Only show Execution resources starting on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. + * @param "DateCreatedTo" (time.Time) - Only show Execution resources starting before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return StudioV1FlowExecutionReadResponse +*/ +func (c *DefaultApiService) ListExecution(flowSid string, params *ListExecutionParams) (*StudioV1FlowExecutionReadResponse, error) { + path := "/v1/Flows/{FlowSid}/Executions" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.DateCreatedFrom != nil { + data.Set("DateCreatedFrom", string(*params.DateCreatedFrom)) + } + if params != nil && params.DateCreatedTo != nil { + data.Set("DateCreatedTo", string(*params.DateCreatedTo)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV1FlowExecutionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListExecutionStepParams Optional parameters for the method 'ListExecutionStep' +type ListExecutionStepParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListExecutionStep Method for ListExecutionStep +Retrieve a list of all Steps for an Execution. + * @param flowSid The SID of the Flow with the Steps to read. + * @param executionSid The SID of the Execution with the Steps to read. + * @param optional nil or *ListExecutionStepOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return StudioV1FlowExecutionExecutionStepReadResponse +*/ +func (c *DefaultApiService) ListExecutionStep(flowSid string, executionSid string, params *ListExecutionStepParams) (*StudioV1FlowExecutionExecutionStepReadResponse, error) { + path := "/v1/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"ExecutionSid"+"}", executionSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV1FlowExecutionExecutionStepReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListFlowParams Optional parameters for the method 'ListFlow' +type ListFlowParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListFlow Method for ListFlow +Retrieve a list of all Flows. + * @param optional nil or *ListFlowOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return StudioV1FlowReadResponse +*/ +func (c *DefaultApiService) ListFlow(params *ListFlowParams) (*StudioV1FlowReadResponse, error) { + path := "/v1/Flows" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV1FlowReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListStepParams Optional parameters for the method 'ListStep' +type ListStepParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListStep Method for ListStep +Retrieve a list of all Steps for an Engagement. + * @param flowSid The SID of the Flow with the Step to read. + * @param engagementSid The SID of the Engagement with the Step to read. + * @param optional nil or *ListStepOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return StudioV1FlowEngagementStepReadResponse +*/ +func (c *DefaultApiService) ListStep(flowSid string, engagementSid string, params *ListStepParams) (*StudioV1FlowEngagementStepReadResponse, error) { + path := "/v1/Flows/{FlowSid}/Engagements/{EngagementSid}/Steps" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"EngagementSid"+"}", engagementSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV1FlowEngagementStepReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateExecutionParams Optional parameters for the method 'UpdateExecution' +type UpdateExecutionParams struct { + Status *string `json:"Status,omitempty"` +} + +/* +UpdateExecution Method for UpdateExecution +Update the status of an Execution to `ended`. + * @param flowSid The SID of the Flow with the Execution resources to update. + * @param sid The SID of the Execution resource to update. + * @param optional nil or *UpdateExecutionOpts - Optional Parameters: + * @param "Status" (string) - The status of the Execution. Can only be `ended`. +@return StudioV1FlowExecution +*/ +func (c *DefaultApiService) UpdateExecution(flowSid string, sid string, params *UpdateExecutionParams) (*StudioV1FlowExecution, error) { + path := "/v1/Flows/{FlowSid}/Executions/{Sid}" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV1FlowExecution{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/studio/v1/docs/CreateEngagementRequest.md b/rest/studio/v1/docs/CreateEngagementRequest.md new file mode 100644 index 000000000..60ba763b0 --- /dev/null +++ b/rest/studio/v1/docs/CreateEngagementRequest.md @@ -0,0 +1,13 @@ +# CreateEngagementRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**From** | **string** | The Twilio phone number to send messages or initiate calls from during the Flow Engagement. Available as variable `{{flow.channel.address}}` | +**Parameters** | [**map[string]interface{}**](.md) | A JSON string we will add to your flow's context and that you can access as variables inside your flow. For example, if you pass in `Parameters={'name':'Zeke'}` then inside a widget you can reference the variable `{{flow.data.name}}` which will return the string 'Zeke'. Note: the JSON value must explicitly be passed as a string, not as a hash object. Depending on your particular HTTP library, you may need to add quotes or URL encode your JSON string. | [optional] +**To** | **string** | The Contact phone number to start a Studio Flow Engagement, available as variable `{{contact.channel.address}}`. | + +[[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/rest/studio/v1/docs/CreateExecutionRequest.md b/rest/studio/v1/docs/CreateExecutionRequest.md new file mode 100644 index 000000000..8c95f1f5b --- /dev/null +++ b/rest/studio/v1/docs/CreateExecutionRequest.md @@ -0,0 +1,13 @@ +# CreateExecutionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**From** | **string** | The Twilio phone number to send messages or initiate calls from during the Flow's Execution. Available as variable `{{flow.channel.address}}`. | +**Parameters** | [**map[string]interface{}**](.md) | JSON data that will be added to the Flow's context and that can be accessed as variables inside your Flow. For example, if you pass in `Parameters={\"name\":\"Zeke\"}`, a widget in your Flow can reference the variable `{{flow.data.name}}`, which returns \"Zeke\". Note: the JSON value must explicitly be passed as a string, not as a hash object. Depending on your particular HTTP library, you may need to add quotes or URL encode the JSON string. | [optional] +**To** | **string** | The Contact phone number to start a Studio Flow Execution, available as variable `{{contact.channel.address}}`. | + +[[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/rest/studio/v1/docs/DefaultApi.md b/rest/studio/v1/docs/DefaultApi.md new file mode 100644 index 000000000..f3eb666a0 --- /dev/null +++ b/rest/studio/v1/docs/DefaultApi.md @@ -0,0 +1,820 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateEngagement**](DefaultApi.md#CreateEngagement) | **Post** /v1/Flows/{FlowSid}/Engagements | +[**CreateExecution**](DefaultApi.md#CreateExecution) | **Post** /v1/Flows/{FlowSid}/Executions | +[**DeleteEngagement**](DefaultApi.md#DeleteEngagement) | **Delete** /v1/Flows/{FlowSid}/Engagements/{Sid} | +[**DeleteExecution**](DefaultApi.md#DeleteExecution) | **Delete** /v1/Flows/{FlowSid}/Executions/{Sid} | +[**DeleteFlow**](DefaultApi.md#DeleteFlow) | **Delete** /v1/Flows/{Sid} | +[**FetchEngagement**](DefaultApi.md#FetchEngagement) | **Get** /v1/Flows/{FlowSid}/Engagements/{Sid} | +[**FetchEngagementContext**](DefaultApi.md#FetchEngagementContext) | **Get** /v1/Flows/{FlowSid}/Engagements/{EngagementSid}/Context | +[**FetchExecution**](DefaultApi.md#FetchExecution) | **Get** /v1/Flows/{FlowSid}/Executions/{Sid} | +[**FetchExecutionContext**](DefaultApi.md#FetchExecutionContext) | **Get** /v1/Flows/{FlowSid}/Executions/{ExecutionSid}/Context | +[**FetchExecutionStep**](DefaultApi.md#FetchExecutionStep) | **Get** /v1/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps/{Sid} | +[**FetchExecutionStepContext**](DefaultApi.md#FetchExecutionStepContext) | **Get** /v1/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps/{StepSid}/Context | +[**FetchFlow**](DefaultApi.md#FetchFlow) | **Get** /v1/Flows/{Sid} | +[**FetchStep**](DefaultApi.md#FetchStep) | **Get** /v1/Flows/{FlowSid}/Engagements/{EngagementSid}/Steps/{Sid} | +[**FetchStepContext**](DefaultApi.md#FetchStepContext) | **Get** /v1/Flows/{FlowSid}/Engagements/{EngagementSid}/Steps/{StepSid}/Context | +[**ListEngagement**](DefaultApi.md#ListEngagement) | **Get** /v1/Flows/{FlowSid}/Engagements | +[**ListExecution**](DefaultApi.md#ListExecution) | **Get** /v1/Flows/{FlowSid}/Executions | +[**ListExecutionStep**](DefaultApi.md#ListExecutionStep) | **Get** /v1/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps | +[**ListFlow**](DefaultApi.md#ListFlow) | **Get** /v1/Flows | +[**ListStep**](DefaultApi.md#ListStep) | **Get** /v1/Flows/{FlowSid}/Engagements/{EngagementSid}/Steps | +[**UpdateExecution**](DefaultApi.md#UpdateExecution) | **Post** /v1/Flows/{FlowSid}/Executions/{Sid} | + + + +## CreateEngagement + +> StudioV1FlowEngagement CreateEngagement(ctx, flowSid, optional) + + + +Triggers a new Engagement for the Flow + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flowSid** | **string**| The SID of the Flow. | + **optional** | ***CreateEngagementOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateEngagementOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **from** | **optional.String**| The Twilio phone number to send messages or initiate calls from during the Flow Engagement. Available as variable `{{flow.channel.address}}` | + **parameters** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string we will add to your flow's context and that you can access as variables inside your flow. For example, if you pass in `Parameters={'name':'Zeke'}` then inside a widget you can reference the variable `{{flow.data.name}}` which will return the string 'Zeke'. Note: the JSON value must explicitly be passed as a string, not as a hash object. Depending on your particular HTTP library, you may need to add quotes or URL encode your JSON string. | + **to** | **optional.String**| The Contact phone number to start a Studio Flow Engagement, available as variable `{{contact.channel.address}}`. | + +### Return type + +[**StudioV1FlowEngagement**](studio.v1.flow.engagement.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) + + +## CreateExecution + +> StudioV1FlowExecution CreateExecution(ctx, flowSid, optional) + + + +Triggers a new Execution for the Flow + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flowSid** | **string**| The SID of the Excecution's Flow. | + **optional** | ***CreateExecutionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateExecutionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **from** | **optional.String**| The Twilio phone number to send messages or initiate calls from during the Flow's Execution. Available as variable `{{flow.channel.address}}`. | + **parameters** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| JSON data that will be added to the Flow's context and that can be accessed as variables inside your Flow. For example, if you pass in `Parameters={\\\"name\\\":\\\"Zeke\\\"}`, a widget in your Flow can reference the variable `{{flow.data.name}}`, which returns \\\"Zeke\\\". Note: the JSON value must explicitly be passed as a string, not as a hash object. Depending on your particular HTTP library, you may need to add quotes or URL encode the JSON string. | + **to** | **optional.String**| The Contact phone number to start a Studio Flow Execution, available as variable `{{contact.channel.address}}`. | + +### Return type + +[**StudioV1FlowExecution**](studio.v1.flow.execution.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) + + +## DeleteEngagement + +> DeleteEngagement(ctx, flowSid, sid) + + + +Delete this Engagement and all Steps relating to it. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flowSid** | **string**| The SID of the Flow to delete Engagements from. | +**sid** | **string**| The SID of the Engagement resource to delete. | + +### 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) + + +## DeleteExecution + +> DeleteExecution(ctx, flowSid, sid) + + + +Delete the Execution and all Steps relating to it. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flowSid** | **string**| The SID of the Flow with the Execution resources to delete. | +**sid** | **string**| The SID of the Execution resource to delete. | + +### 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) + + +## DeleteFlow + +> DeleteFlow(ctx, sid) + + + +Delete a specific Flow. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Flow resource to delete. | + +### 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) + + +## FetchEngagement + +> StudioV1FlowEngagement FetchEngagement(ctx, flowSid, sid) + + + +Retrieve an Engagement + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flowSid** | **string**| The SID of the Flow. | +**sid** | **string**| The SID of the Engagement resource to fetch. | + +### Return type + +[**StudioV1FlowEngagement**](studio.v1.flow.engagement.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) + + +## FetchEngagementContext + +> StudioV1FlowEngagementEngagementContext FetchEngagementContext(ctx, flowSid, engagementSid) + + + +Retrieve the most recent context for an Engagement. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flowSid** | **string**| The SID of the Flow. | +**engagementSid** | **string**| The SID of the Engagement. | + +### Return type + +[**StudioV1FlowEngagementEngagementContext**](studio.v1.flow.engagement.engagement_context.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) + + +## FetchExecution + +> StudioV1FlowExecution FetchExecution(ctx, flowSid, sid) + + + +Retrieve an Execution + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flowSid** | **string**| The SID of the Flow with the Execution resource to fetch | +**sid** | **string**| The SID of the Execution resource to fetch. | + +### Return type + +[**StudioV1FlowExecution**](studio.v1.flow.execution.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) + + +## FetchExecutionContext + +> StudioV1FlowExecutionExecutionContext FetchExecutionContext(ctx, flowSid, executionSid) + + + +Retrieve the most recent context for an Execution. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flowSid** | **string**| The SID of the Flow with the Execution context to fetch. | +**executionSid** | **string**| The SID of the Execution context to fetch. | + +### Return type + +[**StudioV1FlowExecutionExecutionContext**](studio.v1.flow.execution.execution_context.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) + + +## FetchExecutionStep + +> StudioV1FlowExecutionExecutionStep FetchExecutionStep(ctx, flowSid, executionSid, sid) + + + +Retrieve a Step. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flowSid** | **string**| The SID of the Flow with the Step to fetch. | +**executionSid** | **string**| The SID of the Execution resource with the Step to fetch. | +**sid** | **string**| The SID of the ExecutionStep resource to fetch. | + +### Return type + +[**StudioV1FlowExecutionExecutionStep**](studio.v1.flow.execution.execution_step.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) + + +## FetchExecutionStepContext + +> StudioV1FlowExecutionExecutionStepExecutionStepContext FetchExecutionStepContext(ctx, flowSid, executionSid, stepSid) + + + +Retrieve the context for an Execution Step. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flowSid** | **string**| The SID of the Flow with the Step to fetch. | +**executionSid** | **string**| The SID of the Execution resource with the Step to fetch. | +**stepSid** | **string**| The SID of the Step to fetch. | + +### Return type + +[**StudioV1FlowExecutionExecutionStepExecutionStepContext**](studio.v1.flow.execution.execution_step.execution_step_context.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) + + +## FetchFlow + +> StudioV1Flow FetchFlow(ctx, sid) + + + +Retrieve a specific Flow. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Flow resource to fetch. | + +### Return type + +[**StudioV1Flow**](studio.v1.flow.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) + + +## FetchStep + +> StudioV1FlowEngagementStep FetchStep(ctx, flowSid, engagementSid, sid) + + + +Retrieve a Step. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flowSid** | **string**| The SID of the Flow with the Step to fetch. | +**engagementSid** | **string**| The SID of the Engagement with the Step to fetch. | +**sid** | **string**| The SID of the Step resource to fetch. | + +### Return type + +[**StudioV1FlowEngagementStep**](studio.v1.flow.engagement.step.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) + + +## FetchStepContext + +> StudioV1FlowEngagementStepStepContext FetchStepContext(ctx, flowSid, engagementSid, stepSid) + + + +Retrieve the context for an Engagement Step. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flowSid** | **string**| The SID of the Flow with the Step to fetch. | +**engagementSid** | **string**| The SID of the Engagement with the Step to fetch. | +**stepSid** | **string**| The SID of the Step to fetch | + +### Return type + +[**StudioV1FlowEngagementStepStepContext**](studio.v1.flow.engagement.step.step_context.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) + + +## ListEngagement + +> StudioV1FlowEngagementReadResponse ListEngagement(ctx, flowSid, optional) + + + +Retrieve a list of all Engagements for the Flow. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flowSid** | **string**| The SID of the Flow to read Engagements from. | + **optional** | ***ListEngagementOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListEngagementOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**StudioV1FlowEngagementReadResponse**](studio_v1_flow_engagementReadResponse.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) + + +## ListExecution + +> StudioV1FlowExecutionReadResponse ListExecution(ctx, flowSid, optional) + + + +Retrieve a list of all Executions for the Flow. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flowSid** | **string**| The SID of the Flow with the Execution resources to read. | + **optional** | ***ListExecutionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListExecutionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **dateCreatedFrom** | **optional.Time**| Only show Execution resources starting on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. | + **dateCreatedTo** | **optional.Time**| Only show Execution resources starting before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**StudioV1FlowExecutionReadResponse**](studio_v1_flow_executionReadResponse.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) + + +## ListExecutionStep + +> StudioV1FlowExecutionExecutionStepReadResponse ListExecutionStep(ctx, flowSid, executionSid, optional) + + + +Retrieve a list of all Steps for an Execution. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flowSid** | **string**| The SID of the Flow with the Steps to read. | +**executionSid** | **string**| The SID of the Execution with the Steps to read. | + **optional** | ***ListExecutionStepOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListExecutionStepOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**StudioV1FlowExecutionExecutionStepReadResponse**](studio_v1_flow_execution_execution_stepReadResponse.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) + + +## ListFlow + +> StudioV1FlowReadResponse ListFlow(ctx, optional) + + + +Retrieve a list of all Flows. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListFlowOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListFlowOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**StudioV1FlowReadResponse**](studio_v1_flowReadResponse.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) + + +## ListStep + +> StudioV1FlowEngagementStepReadResponse ListStep(ctx, flowSid, engagementSid, optional) + + + +Retrieve a list of all Steps for an Engagement. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flowSid** | **string**| The SID of the Flow with the Step to read. | +**engagementSid** | **string**| The SID of the Engagement with the Step to read. | + **optional** | ***ListStepOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListStepOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**StudioV1FlowEngagementStepReadResponse**](studio_v1_flow_engagement_stepReadResponse.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) + + +## UpdateExecution + +> StudioV1FlowExecution UpdateExecution(ctx, flowSid, sid, optional) + + + +Update the status of an Execution to `ended`. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flowSid** | **string**| The SID of the Flow with the Execution resources to update. | +**sid** | **string**| The SID of the Execution resource to update. | + **optional** | ***UpdateExecutionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateExecutionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **status** | **optional.String**| The status of the Execution. Can only be `ended`. | + +### Return type + +[**StudioV1FlowExecution**](studio.v1.flow.execution.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/rest/studio/v1/docs/StudioV1Flow.md b/rest/studio/v1/docs/StudioV1Flow.md new file mode 100644 index 000000000..0892978e7 --- /dev/null +++ b/rest/studio/v1/docs/StudioV1Flow.md @@ -0,0 +1,19 @@ +# StudioV1Flow + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Sid** | **string** | | [optional] +**Status** | **string** | | [optional] +**Url** | **string** | | [optional] +**Version** | **int32** | | [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/rest/studio/v1/docs/StudioV1FlowEngagement.md b/rest/studio/v1/docs/StudioV1FlowEngagement.md new file mode 100644 index 000000000..5f84ea459 --- /dev/null +++ b/rest/studio/v1/docs/StudioV1FlowEngagement.md @@ -0,0 +1,21 @@ +# StudioV1FlowEngagement + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ContactChannelAddress** | **string** | | [optional] +**ContactSid** | **string** | | [optional] +**Context** | [**map[string]interface{}**](.md) | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FlowSid** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Sid** | **string** | | [optional] +**Status** | **string** | | [optional] +**Url** | **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/rest/studio/v1/docs/StudioV1FlowEngagementEngagementContext.md b/rest/studio/v1/docs/StudioV1FlowEngagementEngagementContext.md new file mode 100644 index 000000000..9f26008cd --- /dev/null +++ b/rest/studio/v1/docs/StudioV1FlowEngagementEngagementContext.md @@ -0,0 +1,15 @@ +# StudioV1FlowEngagementEngagementContext + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Context** | [**map[string]interface{}**](.md) | | [optional] +**EngagementSid** | **string** | | [optional] +**FlowSid** | **string** | | [optional] +**Url** | **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/rest/studio/v1/docs/StudioV1FlowEngagementReadResponse.md b/rest/studio/v1/docs/StudioV1FlowEngagementReadResponse.md new file mode 100644 index 000000000..6541ebdcc --- /dev/null +++ b/rest/studio/v1/docs/StudioV1FlowEngagementReadResponse.md @@ -0,0 +1,12 @@ +# StudioV1FlowEngagementReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Engagements** | [**[]StudioV1FlowEngagement**](studio.v1.flow.engagement.md) | | [optional] +**Meta** | [**StudioV1FlowReadResponseMeta**](studio_v1_flowReadResponse_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/rest/studio/v1/docs/StudioV1FlowEngagementStep.md b/rest/studio/v1/docs/StudioV1FlowEngagementStep.md new file mode 100644 index 000000000..39b84bebe --- /dev/null +++ b/rest/studio/v1/docs/StudioV1FlowEngagementStep.md @@ -0,0 +1,22 @@ +# StudioV1FlowEngagementStep + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Context** | [**map[string]interface{}**](.md) | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**EngagementSid** | **string** | | [optional] +**FlowSid** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Name** | **string** | | [optional] +**Sid** | **string** | | [optional] +**TransitionedFrom** | **string** | | [optional] +**TransitionedTo** | **string** | | [optional] +**Url** | **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/rest/studio/v1/docs/StudioV1FlowEngagementStepReadResponse.md b/rest/studio/v1/docs/StudioV1FlowEngagementStepReadResponse.md new file mode 100644 index 000000000..9fc77f9e6 --- /dev/null +++ b/rest/studio/v1/docs/StudioV1FlowEngagementStepReadResponse.md @@ -0,0 +1,12 @@ +# StudioV1FlowEngagementStepReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**StudioV1FlowReadResponseMeta**](studio_v1_flowReadResponse_meta.md) | | [optional] +**Steps** | [**[]StudioV1FlowEngagementStep**](studio.v1.flow.engagement.step.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/rest/studio/v1/docs/StudioV1FlowEngagementStepStepContext.md b/rest/studio/v1/docs/StudioV1FlowEngagementStepStepContext.md new file mode 100644 index 000000000..0ef567eb3 --- /dev/null +++ b/rest/studio/v1/docs/StudioV1FlowEngagementStepStepContext.md @@ -0,0 +1,16 @@ +# StudioV1FlowEngagementStepStepContext + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Context** | [**map[string]interface{}**](.md) | | [optional] +**EngagementSid** | **string** | | [optional] +**FlowSid** | **string** | | [optional] +**StepSid** | **string** | | [optional] +**Url** | **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/rest/studio/v1/docs/StudioV1FlowExecution.md b/rest/studio/v1/docs/StudioV1FlowExecution.md new file mode 100644 index 000000000..768adcb97 --- /dev/null +++ b/rest/studio/v1/docs/StudioV1FlowExecution.md @@ -0,0 +1,21 @@ +# StudioV1FlowExecution + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ContactChannelAddress** | **string** | | [optional] +**ContactSid** | **string** | | [optional] +**Context** | [**map[string]interface{}**](.md) | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FlowSid** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Sid** | **string** | | [optional] +**Status** | **string** | | [optional] +**Url** | **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/rest/studio/v1/docs/StudioV1FlowExecutionExecutionContext.md b/rest/studio/v1/docs/StudioV1FlowExecutionExecutionContext.md new file mode 100644 index 000000000..8294dc110 --- /dev/null +++ b/rest/studio/v1/docs/StudioV1FlowExecutionExecutionContext.md @@ -0,0 +1,15 @@ +# StudioV1FlowExecutionExecutionContext + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Context** | [**map[string]interface{}**](.md) | | [optional] +**ExecutionSid** | **string** | | [optional] +**FlowSid** | **string** | | [optional] +**Url** | **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/rest/studio/v1/docs/StudioV1FlowExecutionExecutionStep.md b/rest/studio/v1/docs/StudioV1FlowExecutionExecutionStep.md new file mode 100644 index 000000000..04dd924e8 --- /dev/null +++ b/rest/studio/v1/docs/StudioV1FlowExecutionExecutionStep.md @@ -0,0 +1,22 @@ +# StudioV1FlowExecutionExecutionStep + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Context** | [**map[string]interface{}**](.md) | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**ExecutionSid** | **string** | | [optional] +**FlowSid** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Name** | **string** | | [optional] +**Sid** | **string** | | [optional] +**TransitionedFrom** | **string** | | [optional] +**TransitionedTo** | **string** | | [optional] +**Url** | **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/rest/studio/v1/docs/StudioV1FlowExecutionExecutionStepExecutionStepContext.md b/rest/studio/v1/docs/StudioV1FlowExecutionExecutionStepExecutionStepContext.md new file mode 100644 index 000000000..2ee94a572 --- /dev/null +++ b/rest/studio/v1/docs/StudioV1FlowExecutionExecutionStepExecutionStepContext.md @@ -0,0 +1,16 @@ +# StudioV1FlowExecutionExecutionStepExecutionStepContext + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Context** | [**map[string]interface{}**](.md) | | [optional] +**ExecutionSid** | **string** | | [optional] +**FlowSid** | **string** | | [optional] +**StepSid** | **string** | | [optional] +**Url** | **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/rest/studio/v1/docs/StudioV1FlowExecutionExecutionStepReadResponse.md b/rest/studio/v1/docs/StudioV1FlowExecutionExecutionStepReadResponse.md new file mode 100644 index 000000000..82869363f --- /dev/null +++ b/rest/studio/v1/docs/StudioV1FlowExecutionExecutionStepReadResponse.md @@ -0,0 +1,12 @@ +# StudioV1FlowExecutionExecutionStepReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**StudioV1FlowReadResponseMeta**](studio_v1_flowReadResponse_meta.md) | | [optional] +**Steps** | [**[]StudioV1FlowExecutionExecutionStep**](studio.v1.flow.execution.execution_step.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/rest/studio/v1/docs/StudioV1FlowExecutionReadResponse.md b/rest/studio/v1/docs/StudioV1FlowExecutionReadResponse.md new file mode 100644 index 000000000..72c365434 --- /dev/null +++ b/rest/studio/v1/docs/StudioV1FlowExecutionReadResponse.md @@ -0,0 +1,12 @@ +# StudioV1FlowExecutionReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Executions** | [**[]StudioV1FlowExecution**](studio.v1.flow.execution.md) | | [optional] +**Meta** | [**StudioV1FlowReadResponseMeta**](studio_v1_flowReadResponse_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/rest/studio/v1/docs/StudioV1FlowReadResponse.md b/rest/studio/v1/docs/StudioV1FlowReadResponse.md new file mode 100644 index 000000000..05c0fc66c --- /dev/null +++ b/rest/studio/v1/docs/StudioV1FlowReadResponse.md @@ -0,0 +1,12 @@ +# StudioV1FlowReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Flows** | [**[]StudioV1Flow**](studio.v1.flow.md) | | [optional] +**Meta** | [**StudioV1FlowReadResponseMeta**](studio_v1_flowReadResponse_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/rest/studio/v1/docs/StudioV1FlowReadResponseMeta.md b/rest/studio/v1/docs/StudioV1FlowReadResponseMeta.md new file mode 100644 index 000000000..7c13c9664 --- /dev/null +++ b/rest/studio/v1/docs/StudioV1FlowReadResponseMeta.md @@ -0,0 +1,17 @@ +# StudioV1FlowReadResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/studio/v1/docs/UpdateExecutionRequest.md b/rest/studio/v1/docs/UpdateExecutionRequest.md new file mode 100644 index 000000000..06aa5497f --- /dev/null +++ b/rest/studio/v1/docs/UpdateExecutionRequest.md @@ -0,0 +1,11 @@ +# UpdateExecutionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **string** | The status of the Execution. Can only be `ended`. | + +[[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/rest/studio/v1/model_create_engagement_request.go b/rest/studio/v1/model_create_engagement_request.go new file mode 100644 index 000000000..7e7bc0b51 --- /dev/null +++ b/rest/studio/v1/model_create_engagement_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateEngagementRequest struct for CreateEngagementRequest +type CreateEngagementRequest struct { + // The Twilio phone number to send messages or initiate calls from during the Flow Engagement. Available as variable `{{flow.channel.address}}` + From string `json:"From"` + // A JSON string we will add to your flow's context and that you can access as variables inside your flow. For example, if you pass in `Parameters={'name':'Zeke'}` then inside a widget you can reference the variable `{{flow.data.name}}` which will return the string 'Zeke'. Note: the JSON value must explicitly be passed as a string, not as a hash object. Depending on your particular HTTP library, you may need to add quotes or URL encode your JSON string. + Parameters map[string]interface{} `json:"Parameters,omitempty"` + // The Contact phone number to start a Studio Flow Engagement, available as variable `{{contact.channel.address}}`. + To string `json:"To"` +} diff --git a/rest/studio/v1/model_create_execution_request.go b/rest/studio/v1/model_create_execution_request.go new file mode 100644 index 000000000..419513734 --- /dev/null +++ b/rest/studio/v1/model_create_execution_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateExecutionRequest struct for CreateExecutionRequest +type CreateExecutionRequest struct { + // The Twilio phone number to send messages or initiate calls from during the Flow's Execution. Available as variable `{{flow.channel.address}}`. + From string `json:"From"` + // JSON data that will be added to the Flow's context and that can be accessed as variables inside your Flow. For example, if you pass in `Parameters={\"name\":\"Zeke\"}`, a widget in your Flow can reference the variable `{{flow.data.name}}`, which returns \"Zeke\". Note: the JSON value must explicitly be passed as a string, not as a hash object. Depending on your particular HTTP library, you may need to add quotes or URL encode the JSON string. + Parameters map[string]interface{} `json:"Parameters,omitempty"` + // The Contact phone number to start a Studio Flow Execution, available as variable `{{contact.channel.address}}`. + To string `json:"To"` +} diff --git a/rest/studio/v1/model_studio_v1_flow.go b/rest/studio/v1/model_studio_v1_flow.go new file mode 100644 index 000000000..1135c3e63 --- /dev/null +++ b/rest/studio/v1/model_studio_v1_flow.go @@ -0,0 +1,26 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// StudioV1Flow struct for StudioV1Flow +type StudioV1Flow struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Sid string `json:"sid,omitempty"` + Status string `json:"status,omitempty"` + Url string `json:"url,omitempty"` + Version int32 `json:"version,omitempty"` +} diff --git a/rest/studio/v1/model_studio_v1_flow_engagement.go b/rest/studio/v1/model_studio_v1_flow_engagement.go new file mode 100644 index 000000000..0e949e538 --- /dev/null +++ b/rest/studio/v1/model_studio_v1_flow_engagement.go @@ -0,0 +1,28 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// StudioV1FlowEngagement struct for StudioV1FlowEngagement +type StudioV1FlowEngagement struct { + AccountSid string `json:"account_sid,omitempty"` + ContactChannelAddress string `json:"contact_channel_address,omitempty"` + ContactSid string `json:"contact_sid,omitempty"` + Context map[string]interface{} `json:"context,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FlowSid string `json:"flow_sid,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Sid string `json:"sid,omitempty"` + Status string `json:"status,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/studio/v1/model_studio_v1_flow_engagement_engagement_context.go b/rest/studio/v1/model_studio_v1_flow_engagement_engagement_context.go new file mode 100644 index 000000000..136b4fd25 --- /dev/null +++ b/rest/studio/v1/model_studio_v1_flow_engagement_engagement_context.go @@ -0,0 +1,19 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// StudioV1FlowEngagementEngagementContext struct for StudioV1FlowEngagementEngagementContext +type StudioV1FlowEngagementEngagementContext struct { + AccountSid string `json:"account_sid,omitempty"` + Context map[string]interface{} `json:"context,omitempty"` + EngagementSid string `json:"engagement_sid,omitempty"` + FlowSid string `json:"flow_sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/studio/v1/model_studio_v1_flow_engagement_read_response.go b/rest/studio/v1/model_studio_v1_flow_engagement_read_response.go new file mode 100644 index 000000000..a18d691bd --- /dev/null +++ b/rest/studio/v1/model_studio_v1_flow_engagement_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// StudioV1FlowEngagementReadResponse struct for StudioV1FlowEngagementReadResponse +type StudioV1FlowEngagementReadResponse struct { + Engagements []StudioV1FlowEngagement `json:"engagements,omitempty"` + Meta StudioV1FlowReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/studio/v1/model_studio_v1_flow_engagement_step.go b/rest/studio/v1/model_studio_v1_flow_engagement_step.go new file mode 100644 index 000000000..2aa22dc18 --- /dev/null +++ b/rest/studio/v1/model_studio_v1_flow_engagement_step.go @@ -0,0 +1,29 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// StudioV1FlowEngagementStep struct for StudioV1FlowEngagementStep +type StudioV1FlowEngagementStep struct { + AccountSid string `json:"account_sid,omitempty"` + Context map[string]interface{} `json:"context,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + EngagementSid string `json:"engagement_sid,omitempty"` + FlowSid string `json:"flow_sid,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Name string `json:"name,omitempty"` + Sid string `json:"sid,omitempty"` + TransitionedFrom string `json:"transitioned_from,omitempty"` + TransitionedTo string `json:"transitioned_to,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/studio/v1/model_studio_v1_flow_engagement_step_read_response.go b/rest/studio/v1/model_studio_v1_flow_engagement_step_read_response.go new file mode 100644 index 000000000..243238d0f --- /dev/null +++ b/rest/studio/v1/model_studio_v1_flow_engagement_step_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// StudioV1FlowEngagementStepReadResponse struct for StudioV1FlowEngagementStepReadResponse +type StudioV1FlowEngagementStepReadResponse struct { + Meta StudioV1FlowReadResponseMeta `json:"meta,omitempty"` + Steps []StudioV1FlowEngagementStep `json:"steps,omitempty"` +} diff --git a/rest/studio/v1/model_studio_v1_flow_engagement_step_step_context.go b/rest/studio/v1/model_studio_v1_flow_engagement_step_step_context.go new file mode 100644 index 000000000..678651b26 --- /dev/null +++ b/rest/studio/v1/model_studio_v1_flow_engagement_step_step_context.go @@ -0,0 +1,20 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// StudioV1FlowEngagementStepStepContext struct for StudioV1FlowEngagementStepStepContext +type StudioV1FlowEngagementStepStepContext struct { + AccountSid string `json:"account_sid,omitempty"` + Context map[string]interface{} `json:"context,omitempty"` + EngagementSid string `json:"engagement_sid,omitempty"` + FlowSid string `json:"flow_sid,omitempty"` + StepSid string `json:"step_sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/studio/v1/model_studio_v1_flow_execution.go b/rest/studio/v1/model_studio_v1_flow_execution.go new file mode 100644 index 000000000..4e328db94 --- /dev/null +++ b/rest/studio/v1/model_studio_v1_flow_execution.go @@ -0,0 +1,28 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// StudioV1FlowExecution struct for StudioV1FlowExecution +type StudioV1FlowExecution struct { + AccountSid string `json:"account_sid,omitempty"` + ContactChannelAddress string `json:"contact_channel_address,omitempty"` + ContactSid string `json:"contact_sid,omitempty"` + Context map[string]interface{} `json:"context,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FlowSid string `json:"flow_sid,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Sid string `json:"sid,omitempty"` + Status string `json:"status,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/studio/v1/model_studio_v1_flow_execution_execution_context.go b/rest/studio/v1/model_studio_v1_flow_execution_execution_context.go new file mode 100644 index 000000000..2fc50c747 --- /dev/null +++ b/rest/studio/v1/model_studio_v1_flow_execution_execution_context.go @@ -0,0 +1,19 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// StudioV1FlowExecutionExecutionContext struct for StudioV1FlowExecutionExecutionContext +type StudioV1FlowExecutionExecutionContext struct { + AccountSid string `json:"account_sid,omitempty"` + Context map[string]interface{} `json:"context,omitempty"` + ExecutionSid string `json:"execution_sid,omitempty"` + FlowSid string `json:"flow_sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/studio/v1/model_studio_v1_flow_execution_execution_step.go b/rest/studio/v1/model_studio_v1_flow_execution_execution_step.go new file mode 100644 index 000000000..eb958a651 --- /dev/null +++ b/rest/studio/v1/model_studio_v1_flow_execution_execution_step.go @@ -0,0 +1,29 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// StudioV1FlowExecutionExecutionStep struct for StudioV1FlowExecutionExecutionStep +type StudioV1FlowExecutionExecutionStep struct { + AccountSid string `json:"account_sid,omitempty"` + Context map[string]interface{} `json:"context,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + ExecutionSid string `json:"execution_sid,omitempty"` + FlowSid string `json:"flow_sid,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Name string `json:"name,omitempty"` + Sid string `json:"sid,omitempty"` + TransitionedFrom string `json:"transitioned_from,omitempty"` + TransitionedTo string `json:"transitioned_to,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/studio/v1/model_studio_v1_flow_execution_execution_step_execution_step_context.go b/rest/studio/v1/model_studio_v1_flow_execution_execution_step_execution_step_context.go new file mode 100644 index 000000000..8aa583364 --- /dev/null +++ b/rest/studio/v1/model_studio_v1_flow_execution_execution_step_execution_step_context.go @@ -0,0 +1,20 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// StudioV1FlowExecutionExecutionStepExecutionStepContext struct for StudioV1FlowExecutionExecutionStepExecutionStepContext +type StudioV1FlowExecutionExecutionStepExecutionStepContext struct { + AccountSid string `json:"account_sid,omitempty"` + Context map[string]interface{} `json:"context,omitempty"` + ExecutionSid string `json:"execution_sid,omitempty"` + FlowSid string `json:"flow_sid,omitempty"` + StepSid string `json:"step_sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/studio/v1/model_studio_v1_flow_execution_execution_step_read_response.go b/rest/studio/v1/model_studio_v1_flow_execution_execution_step_read_response.go new file mode 100644 index 000000000..ff20fb0b8 --- /dev/null +++ b/rest/studio/v1/model_studio_v1_flow_execution_execution_step_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// StudioV1FlowExecutionExecutionStepReadResponse struct for StudioV1FlowExecutionExecutionStepReadResponse +type StudioV1FlowExecutionExecutionStepReadResponse struct { + Meta StudioV1FlowReadResponseMeta `json:"meta,omitempty"` + Steps []StudioV1FlowExecutionExecutionStep `json:"steps,omitempty"` +} diff --git a/rest/studio/v1/model_studio_v1_flow_execution_read_response.go b/rest/studio/v1/model_studio_v1_flow_execution_read_response.go new file mode 100644 index 000000000..ed114035f --- /dev/null +++ b/rest/studio/v1/model_studio_v1_flow_execution_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// StudioV1FlowExecutionReadResponse struct for StudioV1FlowExecutionReadResponse +type StudioV1FlowExecutionReadResponse struct { + Executions []StudioV1FlowExecution `json:"executions,omitempty"` + Meta StudioV1FlowReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/studio/v1/model_studio_v1_flow_read_response.go b/rest/studio/v1/model_studio_v1_flow_read_response.go new file mode 100644 index 000000000..bb8ad6745 --- /dev/null +++ b/rest/studio/v1/model_studio_v1_flow_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// StudioV1FlowReadResponse struct for StudioV1FlowReadResponse +type StudioV1FlowReadResponse struct { + Flows []StudioV1Flow `json:"flows,omitempty"` + Meta StudioV1FlowReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/studio/v1/model_studio_v1_flow_read_response_meta.go b/rest/studio/v1/model_studio_v1_flow_read_response_meta.go new file mode 100644 index 000000000..dbf66b88a --- /dev/null +++ b/rest/studio/v1/model_studio_v1_flow_read_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// StudioV1FlowReadResponseMeta struct for StudioV1FlowReadResponseMeta +type StudioV1FlowReadResponseMeta struct { + FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` + NextPageUrl string `json:"next_page_url,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUrl string `json:"previous_page_url,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/studio/v1/model_update_execution_request.go b/rest/studio/v1/model_update_execution_request.go new file mode 100644 index 000000000..106bdb66b --- /dev/null +++ b/rest/studio/v1/model_update_execution_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateExecutionRequest struct for UpdateExecutionRequest +type UpdateExecutionRequest struct { + // The status of the Execution. Can only be `ended`. + Status string `json:"Status"` +} diff --git a/rest/studio/v1/response.go b/rest/studio/v1/response.go new file mode 100644 index 000000000..6fe7b4956 --- /dev/null +++ b/rest/studio/v1/response.go @@ -0,0 +1,47 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// Response returns a new APIResponse object. +func Response(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// ResponseWithError returns a new APIResponse object with the provided error message. +func ResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/rest/studio/v2/.openapi-generator-ignore b/rest/studio/v2/.openapi-generator-ignore new file mode 100644 index 000000000..7484ee590 --- /dev/null +++ b/rest/studio/v2/.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/rest/studio/v2/.openapi-generator/VERSION b/rest/studio/v2/.openapi-generator/VERSION new file mode 100644 index 000000000..ecedc98d1 --- /dev/null +++ b/rest/studio/v2/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.3.1 \ No newline at end of file diff --git a/rest/studio/v2/README.md b/rest/studio/v2/README.md new file mode 100644 index 000000000..1c8820eaa --- /dev/null +++ b/rest/studio/v2/README.md @@ -0,0 +1,100 @@ +# Go API client for openapi + +This is the public Twilio REST API. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 5.15.0 +- Package version: 1.0.0 +- Build package: com.twilio.oai.TwilioGoGenerator +For more information, please visit [https://support.twilio.com](https://support.twilio.com) + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import "./openapi" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**CreateExecution**](docs/DefaultApi.md#createexecution) | **Post** /v2/Flows/{FlowSid}/Executions | +*DefaultApi* | [**CreateFlow**](docs/DefaultApi.md#createflow) | **Post** /v2/Flows | +*DefaultApi* | [**DeleteExecution**](docs/DefaultApi.md#deleteexecution) | **Delete** /v2/Flows/{FlowSid}/Executions/{Sid} | +*DefaultApi* | [**DeleteFlow**](docs/DefaultApi.md#deleteflow) | **Delete** /v2/Flows/{Sid} | +*DefaultApi* | [**FetchExecution**](docs/DefaultApi.md#fetchexecution) | **Get** /v2/Flows/{FlowSid}/Executions/{Sid} | +*DefaultApi* | [**FetchExecutionContext**](docs/DefaultApi.md#fetchexecutioncontext) | **Get** /v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Context | +*DefaultApi* | [**FetchExecutionStep**](docs/DefaultApi.md#fetchexecutionstep) | **Get** /v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps/{Sid} | +*DefaultApi* | [**FetchExecutionStepContext**](docs/DefaultApi.md#fetchexecutionstepcontext) | **Get** /v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps/{StepSid}/Context | +*DefaultApi* | [**FetchFlow**](docs/DefaultApi.md#fetchflow) | **Get** /v2/Flows/{Sid} | +*DefaultApi* | [**FetchFlowRevision**](docs/DefaultApi.md#fetchflowrevision) | **Get** /v2/Flows/{Sid}/Revisions/{Revision} | +*DefaultApi* | [**FetchTestUser**](docs/DefaultApi.md#fetchtestuser) | **Get** /v2/Flows/{Sid}/TestUsers | +*DefaultApi* | [**ListExecution**](docs/DefaultApi.md#listexecution) | **Get** /v2/Flows/{FlowSid}/Executions | +*DefaultApi* | [**ListExecutionStep**](docs/DefaultApi.md#listexecutionstep) | **Get** /v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps | +*DefaultApi* | [**ListFlow**](docs/DefaultApi.md#listflow) | **Get** /v2/Flows | +*DefaultApi* | [**ListFlowRevision**](docs/DefaultApi.md#listflowrevision) | **Get** /v2/Flows/{Sid}/Revisions | +*DefaultApi* | [**UpdateExecution**](docs/DefaultApi.md#updateexecution) | **Post** /v2/Flows/{FlowSid}/Executions/{Sid} | +*DefaultApi* | [**UpdateFlow**](docs/DefaultApi.md#updateflow) | **Post** /v2/Flows/{Sid} | +*DefaultApi* | [**UpdateFlowValidate**](docs/DefaultApi.md#updateflowvalidate) | **Post** /v2/Flows/Validate | +*DefaultApi* | [**UpdateTestUser**](docs/DefaultApi.md#updatetestuser) | **Post** /v2/Flows/{Sid}/TestUsers | + + +## Documentation For Models + + - [CreateExecutionRequest](docs/CreateExecutionRequest.md) + - [CreateFlowRequest](docs/CreateFlowRequest.md) + - [StudioV2Flow](docs/StudioV2Flow.md) + - [StudioV2FlowExecution](docs/StudioV2FlowExecution.md) + - [StudioV2FlowExecutionExecutionContext](docs/StudioV2FlowExecutionExecutionContext.md) + - [StudioV2FlowExecutionExecutionStep](docs/StudioV2FlowExecutionExecutionStep.md) + - [StudioV2FlowExecutionExecutionStepExecutionStepContext](docs/StudioV2FlowExecutionExecutionStepExecutionStepContext.md) + - [StudioV2FlowExecutionExecutionStepReadResponse](docs/StudioV2FlowExecutionExecutionStepReadResponse.md) + - [StudioV2FlowExecutionReadResponse](docs/StudioV2FlowExecutionReadResponse.md) + - [StudioV2FlowFlowRevision](docs/StudioV2FlowFlowRevision.md) + - [StudioV2FlowFlowRevisionReadResponse](docs/StudioV2FlowFlowRevisionReadResponse.md) + - [StudioV2FlowReadResponse](docs/StudioV2FlowReadResponse.md) + - [StudioV2FlowReadResponseMeta](docs/StudioV2FlowReadResponseMeta.md) + - [StudioV2FlowTestUser](docs/StudioV2FlowTestUser.md) + - [StudioV2FlowValidate](docs/StudioV2FlowValidate.md) + - [UpdateExecutionRequest](docs/UpdateExecutionRequest.md) + - [UpdateFlowRequest](docs/UpdateFlowRequest.md) + - [UpdateFlowValidateRequest](docs/UpdateFlowValidateRequest.md) + - [UpdateTestUserRequest](docs/UpdateTestUserRequest.md) + + +## Documentation For Authorization + + + +## accountSid_authToken + +- **Type**: HTTP basic authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ + UserName: "username", + Password: "password", +}) +r, err := client.Service.Operation(auth, args) +``` + + +## Author + +support@twilio.com + diff --git a/rest/studio/v2/api_default.go b/rest/studio/v2/api_default.go new file mode 100644 index 000000000..9bd75e967 --- /dev/null +++ b/rest/studio/v2/api_default.go @@ -0,0 +1,780 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "" +) + +type DefaultApiService struct { + baseURL string + client *twilio.Client +} + +func NewDefaultApiService(client *twilio.Client) *DefaultApiService { + return &DefaultApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} +// CreateExecutionParams Optional parameters for the method 'CreateExecution' +type CreateExecutionParams struct { + From *string `json:"From,omitempty"` + Parameters *map[string]interface{} `json:"Parameters,omitempty"` + To *string `json:"To,omitempty"` +} + +/* +CreateExecution Method for CreateExecution +Triggers a new Execution for the Flow + * @param flowSid The SID of the Excecution's Flow. + * @param optional nil or *CreateExecutionOpts - Optional Parameters: + * @param "From" (string) - The Twilio phone number to send messages or initiate calls from during the Flow's Execution. Available as variable `{{flow.channel.address}}`. + * @param "Parameters" (map[string]interface{}) - JSON data that will be added to the Flow's context and that can be accessed as variables inside your Flow. For example, if you pass in `Parameters={\\\"name\\\":\\\"Zeke\\\"}`, a widget in your Flow can reference the variable `{{flow.data.name}}`, which returns \\\"Zeke\\\". Note: the JSON value must explicitly be passed as a string, not as a hash object. Depending on your particular HTTP library, you may need to add quotes or URL encode the JSON string. + * @param "To" (string) - The Contact phone number to start a Studio Flow Execution, available as variable `{{contact.channel.address}}`. +@return StudioV2FlowExecution +*/ +func (c *DefaultApiService) CreateExecution(flowSid string, params *CreateExecutionParams) (*StudioV2FlowExecution, error) { + path := "/v2/Flows/{FlowSid}/Executions" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.Parameters != nil { + v, err := json.Marshal(params.Parameters) + + if err != nil { + return nil, err + } + + data.Set("Parameters", string(v)) + } + if params != nil && params.To != nil { + data.Set("To", *params.To) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV2FlowExecution{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateFlowParams Optional parameters for the method 'CreateFlow' +type CreateFlowParams struct { + CommitMessage *string `json:"CommitMessage,omitempty"` + Definition *map[string]interface{} `json:"Definition,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Status *string `json:"Status,omitempty"` +} + +/* +CreateFlow Method for CreateFlow +Create a Flow. + * @param optional nil or *CreateFlowOpts - Optional Parameters: + * @param "CommitMessage" (string) - Description on change made in the revision. + * @param "Definition" (map[string]interface{}) - JSON representation of flow definition. + * @param "FriendlyName" (string) - The string that you assigned to describe the Flow. + * @param "Status" (string) - The status of the Flow. Can be: `draft` or `published`. +@return StudioV2Flow +*/ +func (c *DefaultApiService) CreateFlow(params *CreateFlowParams) (*StudioV2Flow, error) { + path := "/v2/Flows" + + data := url.Values{} + headers := 0 + + if params != nil && params.CommitMessage != nil { + data.Set("CommitMessage", *params.CommitMessage) + } + if params != nil && params.Definition != nil { + v, err := json.Marshal(params.Definition) + + if err != nil { + return nil, err + } + + data.Set("Definition", string(v)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV2Flow{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +DeleteExecution Method for DeleteExecution +Delete the Execution and all Steps relating to it. + * @param flowSid The SID of the Flow with the Execution resources to delete. + * @param sid The SID of the Execution resource to delete. +*/ +func (c *DefaultApiService) DeleteExecution(flowSid string, sid string) (error) { + path := "/v2/Flows/{FlowSid}/Executions/{Sid}" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteFlow Method for DeleteFlow +Delete a specific Flow. + * @param sid The SID of the Flow resource to delete. +*/ +func (c *DefaultApiService) DeleteFlow(sid string) (error) { + path := "/v2/Flows/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +FetchExecution Method for FetchExecution +Retrieve an Execution + * @param flowSid The SID of the Flow with the Execution resource to fetch + * @param sid The SID of the Execution resource to fetch. +@return StudioV2FlowExecution +*/ +func (c *DefaultApiService) FetchExecution(flowSid string, sid string) (*StudioV2FlowExecution, error) { + path := "/v2/Flows/{FlowSid}/Executions/{Sid}" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV2FlowExecution{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchExecutionContext Method for FetchExecutionContext +Retrieve the most recent context for an Execution. + * @param flowSid The SID of the Flow with the Execution context to fetch. + * @param executionSid The SID of the Execution context to fetch. +@return StudioV2FlowExecutionExecutionContext +*/ +func (c *DefaultApiService) FetchExecutionContext(flowSid string, executionSid string) (*StudioV2FlowExecutionExecutionContext, error) { + path := "/v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Context" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"ExecutionSid"+"}", executionSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV2FlowExecutionExecutionContext{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchExecutionStep Method for FetchExecutionStep +Retrieve a Step. + * @param flowSid The SID of the Flow with the Step to fetch. + * @param executionSid The SID of the Execution resource with the Step to fetch. + * @param sid The SID of the ExecutionStep resource to fetch. +@return StudioV2FlowExecutionExecutionStep +*/ +func (c *DefaultApiService) FetchExecutionStep(flowSid string, executionSid string, sid string) (*StudioV2FlowExecutionExecutionStep, error) { + path := "/v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps/{Sid}" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"ExecutionSid"+"}", executionSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV2FlowExecutionExecutionStep{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchExecutionStepContext Method for FetchExecutionStepContext +Retrieve the context for an Execution Step. + * @param flowSid The SID of the Flow with the Step to fetch. + * @param executionSid The SID of the Execution resource with the Step to fetch. + * @param stepSid The SID of the Step to fetch. +@return StudioV2FlowExecutionExecutionStepExecutionStepContext +*/ +func (c *DefaultApiService) FetchExecutionStepContext(flowSid string, executionSid string, stepSid string) (*StudioV2FlowExecutionExecutionStepExecutionStepContext, error) { + path := "/v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps/{StepSid}/Context" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"ExecutionSid"+"}", executionSid, -1) + path = strings.Replace(path, "{"+"StepSid"+"}", stepSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV2FlowExecutionExecutionStepExecutionStepContext{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchFlow Method for FetchFlow +Retrieve a specific Flow. + * @param sid The SID of the Flow resource to fetch. +@return StudioV2Flow +*/ +func (c *DefaultApiService) FetchFlow(sid string) (*StudioV2Flow, error) { + path := "/v2/Flows/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV2Flow{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchFlowRevision Method for FetchFlowRevision +Retrieve a specific Flow revision. + * @param sid The SID of the Flow resource to fetch. + * @param revision Specific Revision number or can be `LatestPublished` and `LatestRevision`. +@return StudioV2FlowFlowRevision +*/ +func (c *DefaultApiService) FetchFlowRevision(sid string, revision string) (*StudioV2FlowFlowRevision, error) { + path := "/v2/Flows/{Sid}/Revisions/{Revision}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Revision"+"}", revision, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV2FlowFlowRevision{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchTestUser Method for FetchTestUser + * @param sid +@return StudioV2FlowTestUser +*/ +func (c *DefaultApiService) FetchTestUser(sid string) (*StudioV2FlowTestUser, error) { + path := "/v2/Flows/{Sid}/TestUsers" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV2FlowTestUser{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListExecutionParams Optional parameters for the method 'ListExecution' +type ListExecutionParams struct { + DateCreatedFrom *time.Time `json:"DateCreatedFrom,omitempty"` + DateCreatedTo *time.Time `json:"DateCreatedTo,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListExecution Method for ListExecution +Retrieve a list of all Executions for the Flow. + * @param flowSid The SID of the Flow with the Execution resources to read. + * @param optional nil or *ListExecutionOpts - Optional Parameters: + * @param "DateCreatedFrom" (time.Time) - Only show Execution resources starting on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. + * @param "DateCreatedTo" (time.Time) - Only show Execution resources starting before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return StudioV2FlowExecutionReadResponse +*/ +func (c *DefaultApiService) ListExecution(flowSid string, params *ListExecutionParams) (*StudioV2FlowExecutionReadResponse, error) { + path := "/v2/Flows/{FlowSid}/Executions" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.DateCreatedFrom != nil { + data.Set("DateCreatedFrom", string(*params.DateCreatedFrom)) + } + if params != nil && params.DateCreatedTo != nil { + data.Set("DateCreatedTo", string(*params.DateCreatedTo)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV2FlowExecutionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListExecutionStepParams Optional parameters for the method 'ListExecutionStep' +type ListExecutionStepParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListExecutionStep Method for ListExecutionStep +Retrieve a list of all Steps for an Execution. + * @param flowSid The SID of the Flow with the Steps to read. + * @param executionSid The SID of the Execution with the Steps to read. + * @param optional nil or *ListExecutionStepOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return StudioV2FlowExecutionExecutionStepReadResponse +*/ +func (c *DefaultApiService) ListExecutionStep(flowSid string, executionSid string, params *ListExecutionStepParams) (*StudioV2FlowExecutionExecutionStepReadResponse, error) { + path := "/v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"ExecutionSid"+"}", executionSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV2FlowExecutionExecutionStepReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListFlowParams Optional parameters for the method 'ListFlow' +type ListFlowParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListFlow Method for ListFlow +Retrieve a list of all Flows. + * @param optional nil or *ListFlowOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return StudioV2FlowReadResponse +*/ +func (c *DefaultApiService) ListFlow(params *ListFlowParams) (*StudioV2FlowReadResponse, error) { + path := "/v2/Flows" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV2FlowReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListFlowRevisionParams Optional parameters for the method 'ListFlowRevision' +type ListFlowRevisionParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListFlowRevision Method for ListFlowRevision +Retrieve a list of all Flows revisions. + * @param sid The SID of the Flow resource to fetch. + * @param optional nil or *ListFlowRevisionOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return StudioV2FlowFlowRevisionReadResponse +*/ +func (c *DefaultApiService) ListFlowRevision(sid string, params *ListFlowRevisionParams) (*StudioV2FlowFlowRevisionReadResponse, error) { + path := "/v2/Flows/{Sid}/Revisions" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV2FlowFlowRevisionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateExecutionParams Optional parameters for the method 'UpdateExecution' +type UpdateExecutionParams struct { + Status *string `json:"Status,omitempty"` +} + +/* +UpdateExecution Method for UpdateExecution +Update the status of an Execution to `ended`. + * @param flowSid The SID of the Flow with the Execution resources to update. + * @param sid The SID of the Execution resource to update. + * @param optional nil or *UpdateExecutionOpts - Optional Parameters: + * @param "Status" (string) - The status of the Execution. Can only be `ended`. +@return StudioV2FlowExecution +*/ +func (c *DefaultApiService) UpdateExecution(flowSid string, sid string, params *UpdateExecutionParams) (*StudioV2FlowExecution, error) { + path := "/v2/Flows/{FlowSid}/Executions/{Sid}" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV2FlowExecution{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateFlowParams Optional parameters for the method 'UpdateFlow' +type UpdateFlowParams struct { + CommitMessage *string `json:"CommitMessage,omitempty"` + Definition *map[string]interface{} `json:"Definition,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Status *string `json:"Status,omitempty"` +} + +/* +UpdateFlow Method for UpdateFlow +Update a Flow. + * @param sid The SID of the Flow resource to fetch. + * @param optional nil or *UpdateFlowOpts - Optional Parameters: + * @param "CommitMessage" (string) - Description on change made in the revision. + * @param "Definition" (map[string]interface{}) - JSON representation of flow definition. + * @param "FriendlyName" (string) - The string that you assigned to describe the Flow. + * @param "Status" (string) - The status of the Flow. Can be: `draft` or `published`. +@return StudioV2Flow +*/ +func (c *DefaultApiService) UpdateFlow(sid string, params *UpdateFlowParams) (*StudioV2Flow, error) { + path := "/v2/Flows/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CommitMessage != nil { + data.Set("CommitMessage", *params.CommitMessage) + } + if params != nil && params.Definition != nil { + v, err := json.Marshal(params.Definition) + + if err != nil { + return nil, err + } + + data.Set("Definition", string(v)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV2Flow{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateFlowValidateParams Optional parameters for the method 'UpdateFlowValidate' +type UpdateFlowValidateParams struct { + CommitMessage *string `json:"CommitMessage,omitempty"` + Definition *map[string]interface{} `json:"Definition,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Status *string `json:"Status,omitempty"` +} + +/* +UpdateFlowValidate Method for UpdateFlowValidate + * @param optional nil or *UpdateFlowValidateOpts - Optional Parameters: + * @param "CommitMessage" (string) - + * @param "Definition" (map[string]interface{}) - + * @param "FriendlyName" (string) - + * @param "Status" (string) - +@return StudioV2FlowValidate +*/ +func (c *DefaultApiService) UpdateFlowValidate(params *UpdateFlowValidateParams) (*StudioV2FlowValidate, error) { + path := "/v2/Flows/Validate" + + data := url.Values{} + headers := 0 + + if params != nil && params.CommitMessage != nil { + data.Set("CommitMessage", *params.CommitMessage) + } + if params != nil && params.Definition != nil { + v, err := json.Marshal(params.Definition) + + if err != nil { + return nil, err + } + + data.Set("Definition", string(v)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV2FlowValidate{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateTestUserParams Optional parameters for the method 'UpdateTestUser' +type UpdateTestUserParams struct { + TestUsers *[]string `json:"TestUsers,omitempty"` +} + +/* +UpdateTestUser Method for UpdateTestUser + * @param sid + * @param optional nil or *UpdateTestUserOpts - Optional Parameters: + * @param "TestUsers" ([]string) - +@return StudioV2FlowTestUser +*/ +func (c *DefaultApiService) UpdateTestUser(sid string, params *UpdateTestUserParams) (*StudioV2FlowTestUser, error) { + path := "/v2/Flows/{Sid}/TestUsers" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.TestUsers != nil { + data.Set("TestUsers", *params.TestUsers) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV2FlowTestUser{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/studio/v2/docs/CreateExecutionRequest.md b/rest/studio/v2/docs/CreateExecutionRequest.md new file mode 100644 index 000000000..8c95f1f5b --- /dev/null +++ b/rest/studio/v2/docs/CreateExecutionRequest.md @@ -0,0 +1,13 @@ +# CreateExecutionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**From** | **string** | The Twilio phone number to send messages or initiate calls from during the Flow's Execution. Available as variable `{{flow.channel.address}}`. | +**Parameters** | [**map[string]interface{}**](.md) | JSON data that will be added to the Flow's context and that can be accessed as variables inside your Flow. For example, if you pass in `Parameters={\"name\":\"Zeke\"}`, a widget in your Flow can reference the variable `{{flow.data.name}}`, which returns \"Zeke\". Note: the JSON value must explicitly be passed as a string, not as a hash object. Depending on your particular HTTP library, you may need to add quotes or URL encode the JSON string. | [optional] +**To** | **string** | The Contact phone number to start a Studio Flow Execution, available as variable `{{contact.channel.address}}`. | + +[[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/rest/studio/v2/docs/CreateFlowRequest.md b/rest/studio/v2/docs/CreateFlowRequest.md new file mode 100644 index 000000000..4b717d5dc --- /dev/null +++ b/rest/studio/v2/docs/CreateFlowRequest.md @@ -0,0 +1,14 @@ +# CreateFlowRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CommitMessage** | **string** | Description on change made in the revision. | [optional] +**Definition** | [**map[string]interface{}**](.md) | JSON representation of flow definition. | +**FriendlyName** | **string** | The string that you assigned to describe the Flow. | +**Status** | **string** | The status of the Flow. Can be: `draft` or `published`. | + +[[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/rest/studio/v2/docs/DefaultApi.md b/rest/studio/v2/docs/DefaultApi.md new file mode 100644 index 000000000..c4f0ca36a --- /dev/null +++ b/rest/studio/v2/docs/DefaultApi.md @@ -0,0 +1,796 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateExecution**](DefaultApi.md#CreateExecution) | **Post** /v2/Flows/{FlowSid}/Executions | +[**CreateFlow**](DefaultApi.md#CreateFlow) | **Post** /v2/Flows | +[**DeleteExecution**](DefaultApi.md#DeleteExecution) | **Delete** /v2/Flows/{FlowSid}/Executions/{Sid} | +[**DeleteFlow**](DefaultApi.md#DeleteFlow) | **Delete** /v2/Flows/{Sid} | +[**FetchExecution**](DefaultApi.md#FetchExecution) | **Get** /v2/Flows/{FlowSid}/Executions/{Sid} | +[**FetchExecutionContext**](DefaultApi.md#FetchExecutionContext) | **Get** /v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Context | +[**FetchExecutionStep**](DefaultApi.md#FetchExecutionStep) | **Get** /v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps/{Sid} | +[**FetchExecutionStepContext**](DefaultApi.md#FetchExecutionStepContext) | **Get** /v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps/{StepSid}/Context | +[**FetchFlow**](DefaultApi.md#FetchFlow) | **Get** /v2/Flows/{Sid} | +[**FetchFlowRevision**](DefaultApi.md#FetchFlowRevision) | **Get** /v2/Flows/{Sid}/Revisions/{Revision} | +[**FetchTestUser**](DefaultApi.md#FetchTestUser) | **Get** /v2/Flows/{Sid}/TestUsers | +[**ListExecution**](DefaultApi.md#ListExecution) | **Get** /v2/Flows/{FlowSid}/Executions | +[**ListExecutionStep**](DefaultApi.md#ListExecutionStep) | **Get** /v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps | +[**ListFlow**](DefaultApi.md#ListFlow) | **Get** /v2/Flows | +[**ListFlowRevision**](DefaultApi.md#ListFlowRevision) | **Get** /v2/Flows/{Sid}/Revisions | +[**UpdateExecution**](DefaultApi.md#UpdateExecution) | **Post** /v2/Flows/{FlowSid}/Executions/{Sid} | +[**UpdateFlow**](DefaultApi.md#UpdateFlow) | **Post** /v2/Flows/{Sid} | +[**UpdateFlowValidate**](DefaultApi.md#UpdateFlowValidate) | **Post** /v2/Flows/Validate | +[**UpdateTestUser**](DefaultApi.md#UpdateTestUser) | **Post** /v2/Flows/{Sid}/TestUsers | + + + +## CreateExecution + +> StudioV2FlowExecution CreateExecution(ctx, flowSid, optional) + + + +Triggers a new Execution for the Flow + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flowSid** | **string**| The SID of the Excecution's Flow. | + **optional** | ***CreateExecutionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateExecutionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **from** | **optional.String**| The Twilio phone number to send messages or initiate calls from during the Flow's Execution. Available as variable `{{flow.channel.address}}`. | + **parameters** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| JSON data that will be added to the Flow's context and that can be accessed as variables inside your Flow. For example, if you pass in `Parameters={\\\"name\\\":\\\"Zeke\\\"}`, a widget in your Flow can reference the variable `{{flow.data.name}}`, which returns \\\"Zeke\\\". Note: the JSON value must explicitly be passed as a string, not as a hash object. Depending on your particular HTTP library, you may need to add quotes or URL encode the JSON string. | + **to** | **optional.String**| The Contact phone number to start a Studio Flow Execution, available as variable `{{contact.channel.address}}`. | + +### Return type + +[**StudioV2FlowExecution**](studio.v2.flow.execution.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) + + +## CreateFlow + +> StudioV2Flow CreateFlow(ctx, optional) + + + +Create a Flow. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateFlowOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateFlowOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commitMessage** | **optional.String**| Description on change made in the revision. | + **definition** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| JSON representation of flow definition. | + **friendlyName** | **optional.String**| The string that you assigned to describe the Flow. | + **status** | **optional.String**| The status of the Flow. Can be: `draft` or `published`. | + +### Return type + +[**StudioV2Flow**](studio.v2.flow.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) + + +## DeleteExecution + +> DeleteExecution(ctx, flowSid, sid) + + + +Delete the Execution and all Steps relating to it. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flowSid** | **string**| The SID of the Flow with the Execution resources to delete. | +**sid** | **string**| The SID of the Execution resource to delete. | + +### 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) + + +## DeleteFlow + +> DeleteFlow(ctx, sid) + + + +Delete a specific Flow. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Flow resource to delete. | + +### 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) + + +## FetchExecution + +> StudioV2FlowExecution FetchExecution(ctx, flowSid, sid) + + + +Retrieve an Execution + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flowSid** | **string**| The SID of the Flow with the Execution resource to fetch | +**sid** | **string**| The SID of the Execution resource to fetch. | + +### Return type + +[**StudioV2FlowExecution**](studio.v2.flow.execution.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) + + +## FetchExecutionContext + +> StudioV2FlowExecutionExecutionContext FetchExecutionContext(ctx, flowSid, executionSid) + + + +Retrieve the most recent context for an Execution. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flowSid** | **string**| The SID of the Flow with the Execution context to fetch. | +**executionSid** | **string**| The SID of the Execution context to fetch. | + +### Return type + +[**StudioV2FlowExecutionExecutionContext**](studio.v2.flow.execution.execution_context.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) + + +## FetchExecutionStep + +> StudioV2FlowExecutionExecutionStep FetchExecutionStep(ctx, flowSid, executionSid, sid) + + + +Retrieve a Step. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flowSid** | **string**| The SID of the Flow with the Step to fetch. | +**executionSid** | **string**| The SID of the Execution resource with the Step to fetch. | +**sid** | **string**| The SID of the ExecutionStep resource to fetch. | + +### Return type + +[**StudioV2FlowExecutionExecutionStep**](studio.v2.flow.execution.execution_step.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) + + +## FetchExecutionStepContext + +> StudioV2FlowExecutionExecutionStepExecutionStepContext FetchExecutionStepContext(ctx, flowSid, executionSid, stepSid) + + + +Retrieve the context for an Execution Step. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flowSid** | **string**| The SID of the Flow with the Step to fetch. | +**executionSid** | **string**| The SID of the Execution resource with the Step to fetch. | +**stepSid** | **string**| The SID of the Step to fetch. | + +### Return type + +[**StudioV2FlowExecutionExecutionStepExecutionStepContext**](studio.v2.flow.execution.execution_step.execution_step_context.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) + + +## FetchFlow + +> StudioV2Flow FetchFlow(ctx, sid) + + + +Retrieve a specific Flow. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Flow resource to fetch. | + +### Return type + +[**StudioV2Flow**](studio.v2.flow.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) + + +## FetchFlowRevision + +> StudioV2FlowFlowRevision FetchFlowRevision(ctx, sid, revision) + + + +Retrieve a specific Flow revision. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Flow resource to fetch. | +**revision** | **string**| Specific Revision number or can be `LatestPublished` and `LatestRevision`. | + +### Return type + +[**StudioV2FlowFlowRevision**](studio.v2.flow.flow_revision.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) + + +## FetchTestUser + +> StudioV2FlowTestUser FetchTestUser(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| | + +### Return type + +[**StudioV2FlowTestUser**](studio.v2.flow.test_user.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) + + +## ListExecution + +> StudioV2FlowExecutionReadResponse ListExecution(ctx, flowSid, optional) + + + +Retrieve a list of all Executions for the Flow. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flowSid** | **string**| The SID of the Flow with the Execution resources to read. | + **optional** | ***ListExecutionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListExecutionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **dateCreatedFrom** | **optional.Time**| Only show Execution resources starting on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. | + **dateCreatedTo** | **optional.Time**| Only show Execution resources starting before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**StudioV2FlowExecutionReadResponse**](studio_v2_flow_executionReadResponse.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) + + +## ListExecutionStep + +> StudioV2FlowExecutionExecutionStepReadResponse ListExecutionStep(ctx, flowSid, executionSid, optional) + + + +Retrieve a list of all Steps for an Execution. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flowSid** | **string**| The SID of the Flow with the Steps to read. | +**executionSid** | **string**| The SID of the Execution with the Steps to read. | + **optional** | ***ListExecutionStepOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListExecutionStepOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**StudioV2FlowExecutionExecutionStepReadResponse**](studio_v2_flow_execution_execution_stepReadResponse.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) + + +## ListFlow + +> StudioV2FlowReadResponse ListFlow(ctx, optional) + + + +Retrieve a list of all Flows. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListFlowOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListFlowOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**StudioV2FlowReadResponse**](studio_v2_flowReadResponse.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) + + +## ListFlowRevision + +> StudioV2FlowFlowRevisionReadResponse ListFlowRevision(ctx, sid, optional) + + + +Retrieve a list of all Flows revisions. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Flow resource to fetch. | + **optional** | ***ListFlowRevisionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListFlowRevisionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**StudioV2FlowFlowRevisionReadResponse**](studio_v2_flow_flow_revisionReadResponse.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) + + +## UpdateExecution + +> StudioV2FlowExecution UpdateExecution(ctx, flowSid, sid, optional) + + + +Update the status of an Execution to `ended`. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flowSid** | **string**| The SID of the Flow with the Execution resources to update. | +**sid** | **string**| The SID of the Execution resource to update. | + **optional** | ***UpdateExecutionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateExecutionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **status** | **optional.String**| The status of the Execution. Can only be `ended`. | + +### Return type + +[**StudioV2FlowExecution**](studio.v2.flow.execution.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) + + +## UpdateFlow + +> StudioV2Flow UpdateFlow(ctx, sid, optional) + + + +Update a Flow. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Flow resource to fetch. | + **optional** | ***UpdateFlowOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateFlowOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **commitMessage** | **optional.String**| Description on change made in the revision. | + **definition** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| JSON representation of flow definition. | + **friendlyName** | **optional.String**| The string that you assigned to describe the Flow. | + **status** | **optional.String**| The status of the Flow. Can be: `draft` or `published`. | + +### Return type + +[**StudioV2Flow**](studio.v2.flow.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) + + +## UpdateFlowValidate + +> StudioV2FlowValidate UpdateFlowValidate(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***UpdateFlowValidateOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateFlowValidateOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commitMessage** | **optional.String**| | + **definition** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| | + **friendlyName** | **optional.String**| | + **status** | **optional.String**| | + +### Return type + +[**StudioV2FlowValidate**](studio.v2.flow_validate.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) + + +## UpdateTestUser + +> StudioV2FlowTestUser UpdateTestUser(ctx, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| | + **optional** | ***UpdateTestUserOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateTestUserOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **testUsers** | [**optional.Interface of []string**](string.md)| | + +### Return type + +[**StudioV2FlowTestUser**](studio.v2.flow.test_user.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/rest/studio/v2/docs/StudioV2Flow.md b/rest/studio/v2/docs/StudioV2Flow.md new file mode 100644 index 000000000..0b9504397 --- /dev/null +++ b/rest/studio/v2/docs/StudioV2Flow.md @@ -0,0 +1,25 @@ +# StudioV2Flow + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**CommitMessage** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Definition** | [**map[string]interface{}**](.md) | | [optional] +**Errors** | **[]map[string]interface{}** | | [optional] +**FriendlyName** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Revision** | **int32** | | [optional] +**Sid** | **string** | | [optional] +**Status** | **string** | | [optional] +**Url** | **string** | | [optional] +**Valid** | **bool** | | [optional] +**Warnings** | **[]map[string]interface{}** | | [optional] +**WebhookUrl** | **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/rest/studio/v2/docs/StudioV2FlowExecution.md b/rest/studio/v2/docs/StudioV2FlowExecution.md new file mode 100644 index 000000000..7f73d872a --- /dev/null +++ b/rest/studio/v2/docs/StudioV2FlowExecution.md @@ -0,0 +1,20 @@ +# StudioV2FlowExecution + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ContactChannelAddress** | **string** | | [optional] +**Context** | [**map[string]interface{}**](.md) | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FlowSid** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Sid** | **string** | | [optional] +**Status** | **string** | | [optional] +**Url** | **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/rest/studio/v2/docs/StudioV2FlowExecutionExecutionContext.md b/rest/studio/v2/docs/StudioV2FlowExecutionExecutionContext.md new file mode 100644 index 000000000..e75a1a506 --- /dev/null +++ b/rest/studio/v2/docs/StudioV2FlowExecutionExecutionContext.md @@ -0,0 +1,15 @@ +# StudioV2FlowExecutionExecutionContext + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Context** | [**map[string]interface{}**](.md) | | [optional] +**ExecutionSid** | **string** | | [optional] +**FlowSid** | **string** | | [optional] +**Url** | **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/rest/studio/v2/docs/StudioV2FlowExecutionExecutionStep.md b/rest/studio/v2/docs/StudioV2FlowExecutionExecutionStep.md new file mode 100644 index 000000000..7c56cfc7b --- /dev/null +++ b/rest/studio/v2/docs/StudioV2FlowExecutionExecutionStep.md @@ -0,0 +1,22 @@ +# StudioV2FlowExecutionExecutionStep + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Context** | [**map[string]interface{}**](.md) | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**ExecutionSid** | **string** | | [optional] +**FlowSid** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Name** | **string** | | [optional] +**Sid** | **string** | | [optional] +**TransitionedFrom** | **string** | | [optional] +**TransitionedTo** | **string** | | [optional] +**Url** | **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/rest/studio/v2/docs/StudioV2FlowExecutionExecutionStepExecutionStepContext.md b/rest/studio/v2/docs/StudioV2FlowExecutionExecutionStepExecutionStepContext.md new file mode 100644 index 000000000..71e712692 --- /dev/null +++ b/rest/studio/v2/docs/StudioV2FlowExecutionExecutionStepExecutionStepContext.md @@ -0,0 +1,16 @@ +# StudioV2FlowExecutionExecutionStepExecutionStepContext + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Context** | [**map[string]interface{}**](.md) | | [optional] +**ExecutionSid** | **string** | | [optional] +**FlowSid** | **string** | | [optional] +**StepSid** | **string** | | [optional] +**Url** | **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/rest/studio/v2/docs/StudioV2FlowExecutionExecutionStepReadResponse.md b/rest/studio/v2/docs/StudioV2FlowExecutionExecutionStepReadResponse.md new file mode 100644 index 000000000..e5d69a9ca --- /dev/null +++ b/rest/studio/v2/docs/StudioV2FlowExecutionExecutionStepReadResponse.md @@ -0,0 +1,12 @@ +# StudioV2FlowExecutionExecutionStepReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**StudioV2FlowReadResponseMeta**](studio_v2_flowReadResponse_meta.md) | | [optional] +**Steps** | [**[]StudioV2FlowExecutionExecutionStep**](studio.v2.flow.execution.execution_step.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/rest/studio/v2/docs/StudioV2FlowExecutionReadResponse.md b/rest/studio/v2/docs/StudioV2FlowExecutionReadResponse.md new file mode 100644 index 000000000..9b87f480f --- /dev/null +++ b/rest/studio/v2/docs/StudioV2FlowExecutionReadResponse.md @@ -0,0 +1,12 @@ +# StudioV2FlowExecutionReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Executions** | [**[]StudioV2FlowExecution**](studio.v2.flow.execution.md) | | [optional] +**Meta** | [**StudioV2FlowReadResponseMeta**](studio_v2_flowReadResponse_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/rest/studio/v2/docs/StudioV2FlowFlowRevision.md b/rest/studio/v2/docs/StudioV2FlowFlowRevision.md new file mode 100644 index 000000000..8e949e07e --- /dev/null +++ b/rest/studio/v2/docs/StudioV2FlowFlowRevision.md @@ -0,0 +1,22 @@ +# StudioV2FlowFlowRevision + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**CommitMessage** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Definition** | [**map[string]interface{}**](.md) | | [optional] +**Errors** | **[]map[string]interface{}** | | [optional] +**FriendlyName** | **string** | | [optional] +**Revision** | **int32** | | [optional] +**Sid** | **string** | | [optional] +**Status** | **string** | | [optional] +**Url** | **string** | | [optional] +**Valid** | **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/rest/studio/v2/docs/StudioV2FlowFlowRevisionReadResponse.md b/rest/studio/v2/docs/StudioV2FlowFlowRevisionReadResponse.md new file mode 100644 index 000000000..0e43fc2cc --- /dev/null +++ b/rest/studio/v2/docs/StudioV2FlowFlowRevisionReadResponse.md @@ -0,0 +1,12 @@ +# StudioV2FlowFlowRevisionReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**StudioV2FlowReadResponseMeta**](studio_v2_flowReadResponse_meta.md) | | [optional] +**Revisions** | [**[]StudioV2FlowFlowRevision**](studio.v2.flow.flow_revision.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/rest/studio/v2/docs/StudioV2FlowReadResponse.md b/rest/studio/v2/docs/StudioV2FlowReadResponse.md new file mode 100644 index 000000000..61d22a8a6 --- /dev/null +++ b/rest/studio/v2/docs/StudioV2FlowReadResponse.md @@ -0,0 +1,12 @@ +# StudioV2FlowReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Flows** | [**[]StudioV2Flow**](studio.v2.flow.md) | | [optional] +**Meta** | [**StudioV2FlowReadResponseMeta**](studio_v2_flowReadResponse_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/rest/studio/v2/docs/StudioV2FlowReadResponseMeta.md b/rest/studio/v2/docs/StudioV2FlowReadResponseMeta.md new file mode 100644 index 000000000..cca1e198d --- /dev/null +++ b/rest/studio/v2/docs/StudioV2FlowReadResponseMeta.md @@ -0,0 +1,17 @@ +# StudioV2FlowReadResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/studio/v2/docs/StudioV2FlowTestUser.md b/rest/studio/v2/docs/StudioV2FlowTestUser.md new file mode 100644 index 000000000..485dc6f28 --- /dev/null +++ b/rest/studio/v2/docs/StudioV2FlowTestUser.md @@ -0,0 +1,13 @@ +# StudioV2FlowTestUser + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Sid** | **string** | | [optional] +**TestUsers** | **[]string** | | [optional] +**Url** | **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/rest/studio/v2/docs/StudioV2FlowValidate.md b/rest/studio/v2/docs/StudioV2FlowValidate.md new file mode 100644 index 000000000..bfbe49294 --- /dev/null +++ b/rest/studio/v2/docs/StudioV2FlowValidate.md @@ -0,0 +1,11 @@ +# StudioV2FlowValidate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Valid** | **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/rest/studio/v2/docs/UpdateExecutionRequest.md b/rest/studio/v2/docs/UpdateExecutionRequest.md new file mode 100644 index 000000000..06aa5497f --- /dev/null +++ b/rest/studio/v2/docs/UpdateExecutionRequest.md @@ -0,0 +1,11 @@ +# UpdateExecutionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **string** | The status of the Execution. Can only be `ended`. | + +[[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/rest/studio/v2/docs/UpdateFlowRequest.md b/rest/studio/v2/docs/UpdateFlowRequest.md new file mode 100644 index 000000000..ccffb4a18 --- /dev/null +++ b/rest/studio/v2/docs/UpdateFlowRequest.md @@ -0,0 +1,14 @@ +# UpdateFlowRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CommitMessage** | **string** | Description on change made in the revision. | [optional] +**Definition** | [**map[string]interface{}**](.md) | JSON representation of flow definition. | [optional] +**FriendlyName** | **string** | The string that you assigned to describe the Flow. | [optional] +**Status** | **string** | The status of the Flow. Can be: `draft` or `published`. | + +[[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/rest/studio/v2/docs/UpdateFlowValidateRequest.md b/rest/studio/v2/docs/UpdateFlowValidateRequest.md new file mode 100644 index 000000000..99e20eab1 --- /dev/null +++ b/rest/studio/v2/docs/UpdateFlowValidateRequest.md @@ -0,0 +1,14 @@ +# UpdateFlowValidateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CommitMessage** | **string** | | [optional] +**Definition** | [**map[string]interface{}**](.md) | | +**FriendlyName** | **string** | | +**Status** | **string** | | + +[[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/rest/studio/v2/docs/UpdateTestUserRequest.md b/rest/studio/v2/docs/UpdateTestUserRequest.md new file mode 100644 index 000000000..1b632c3e0 --- /dev/null +++ b/rest/studio/v2/docs/UpdateTestUserRequest.md @@ -0,0 +1,11 @@ +# UpdateTestUserRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TestUsers** | **[]string** | | + +[[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/rest/studio/v2/model_create_execution_request.go b/rest/studio/v2/model_create_execution_request.go new file mode 100644 index 000000000..419513734 --- /dev/null +++ b/rest/studio/v2/model_create_execution_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateExecutionRequest struct for CreateExecutionRequest +type CreateExecutionRequest struct { + // The Twilio phone number to send messages or initiate calls from during the Flow's Execution. Available as variable `{{flow.channel.address}}`. + From string `json:"From"` + // JSON data that will be added to the Flow's context and that can be accessed as variables inside your Flow. For example, if you pass in `Parameters={\"name\":\"Zeke\"}`, a widget in your Flow can reference the variable `{{flow.data.name}}`, which returns \"Zeke\". Note: the JSON value must explicitly be passed as a string, not as a hash object. Depending on your particular HTTP library, you may need to add quotes or URL encode the JSON string. + Parameters map[string]interface{} `json:"Parameters,omitempty"` + // The Contact phone number to start a Studio Flow Execution, available as variable `{{contact.channel.address}}`. + To string `json:"To"` +} diff --git a/rest/studio/v2/model_create_flow_request.go b/rest/studio/v2/model_create_flow_request.go new file mode 100644 index 000000000..dd6b72436 --- /dev/null +++ b/rest/studio/v2/model_create_flow_request.go @@ -0,0 +1,22 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateFlowRequest struct for CreateFlowRequest +type CreateFlowRequest struct { + // Description on change made in the revision. + CommitMessage string `json:"CommitMessage,omitempty"` + // JSON representation of flow definition. + Definition map[string]interface{} `json:"Definition"` + // The string that you assigned to describe the Flow. + FriendlyName string `json:"FriendlyName"` + // The status of the Flow. Can be: `draft` or `published`. + Status string `json:"Status"` +} diff --git a/rest/studio/v2/model_studio_v2_flow.go b/rest/studio/v2/model_studio_v2_flow.go new file mode 100644 index 000000000..122af85fb --- /dev/null +++ b/rest/studio/v2/model_studio_v2_flow.go @@ -0,0 +1,32 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// StudioV2Flow struct for StudioV2Flow +type StudioV2Flow struct { + AccountSid string `json:"account_sid,omitempty"` + CommitMessage string `json:"commit_message,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Definition map[string]interface{} `json:"definition,omitempty"` + Errors []map[string]interface{} `json:"errors,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Revision int32 `json:"revision,omitempty"` + Sid string `json:"sid,omitempty"` + Status string `json:"status,omitempty"` + Url string `json:"url,omitempty"` + Valid bool `json:"valid,omitempty"` + Warnings []map[string]interface{} `json:"warnings,omitempty"` + WebhookUrl string `json:"webhook_url,omitempty"` +} diff --git a/rest/studio/v2/model_studio_v2_flow_execution.go b/rest/studio/v2/model_studio_v2_flow_execution.go new file mode 100644 index 000000000..2f33c6068 --- /dev/null +++ b/rest/studio/v2/model_studio_v2_flow_execution.go @@ -0,0 +1,27 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// StudioV2FlowExecution struct for StudioV2FlowExecution +type StudioV2FlowExecution struct { + AccountSid string `json:"account_sid,omitempty"` + ContactChannelAddress string `json:"contact_channel_address,omitempty"` + Context map[string]interface{} `json:"context,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FlowSid string `json:"flow_sid,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Sid string `json:"sid,omitempty"` + Status string `json:"status,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/studio/v2/model_studio_v2_flow_execution_execution_context.go b/rest/studio/v2/model_studio_v2_flow_execution_execution_context.go new file mode 100644 index 000000000..3d59bf881 --- /dev/null +++ b/rest/studio/v2/model_studio_v2_flow_execution_execution_context.go @@ -0,0 +1,19 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// StudioV2FlowExecutionExecutionContext struct for StudioV2FlowExecutionExecutionContext +type StudioV2FlowExecutionExecutionContext struct { + AccountSid string `json:"account_sid,omitempty"` + Context map[string]interface{} `json:"context,omitempty"` + ExecutionSid string `json:"execution_sid,omitempty"` + FlowSid string `json:"flow_sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/studio/v2/model_studio_v2_flow_execution_execution_step.go b/rest/studio/v2/model_studio_v2_flow_execution_execution_step.go new file mode 100644 index 000000000..3044b10dd --- /dev/null +++ b/rest/studio/v2/model_studio_v2_flow_execution_execution_step.go @@ -0,0 +1,29 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// StudioV2FlowExecutionExecutionStep struct for StudioV2FlowExecutionExecutionStep +type StudioV2FlowExecutionExecutionStep struct { + AccountSid string `json:"account_sid,omitempty"` + Context map[string]interface{} `json:"context,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + ExecutionSid string `json:"execution_sid,omitempty"` + FlowSid string `json:"flow_sid,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Name string `json:"name,omitempty"` + Sid string `json:"sid,omitempty"` + TransitionedFrom string `json:"transitioned_from,omitempty"` + TransitionedTo string `json:"transitioned_to,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/studio/v2/model_studio_v2_flow_execution_execution_step_execution_step_context.go b/rest/studio/v2/model_studio_v2_flow_execution_execution_step_execution_step_context.go new file mode 100644 index 000000000..f1dc8d1b8 --- /dev/null +++ b/rest/studio/v2/model_studio_v2_flow_execution_execution_step_execution_step_context.go @@ -0,0 +1,20 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// StudioV2FlowExecutionExecutionStepExecutionStepContext struct for StudioV2FlowExecutionExecutionStepExecutionStepContext +type StudioV2FlowExecutionExecutionStepExecutionStepContext struct { + AccountSid string `json:"account_sid,omitempty"` + Context map[string]interface{} `json:"context,omitempty"` + ExecutionSid string `json:"execution_sid,omitempty"` + FlowSid string `json:"flow_sid,omitempty"` + StepSid string `json:"step_sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/studio/v2/model_studio_v2_flow_execution_execution_step_read_response.go b/rest/studio/v2/model_studio_v2_flow_execution_execution_step_read_response.go new file mode 100644 index 000000000..cfce6fbaa --- /dev/null +++ b/rest/studio/v2/model_studio_v2_flow_execution_execution_step_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// StudioV2FlowExecutionExecutionStepReadResponse struct for StudioV2FlowExecutionExecutionStepReadResponse +type StudioV2FlowExecutionExecutionStepReadResponse struct { + Meta StudioV2FlowReadResponseMeta `json:"meta,omitempty"` + Steps []StudioV2FlowExecutionExecutionStep `json:"steps,omitempty"` +} diff --git a/rest/studio/v2/model_studio_v2_flow_execution_read_response.go b/rest/studio/v2/model_studio_v2_flow_execution_read_response.go new file mode 100644 index 000000000..54586d04e --- /dev/null +++ b/rest/studio/v2/model_studio_v2_flow_execution_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// StudioV2FlowExecutionReadResponse struct for StudioV2FlowExecutionReadResponse +type StudioV2FlowExecutionReadResponse struct { + Executions []StudioV2FlowExecution `json:"executions,omitempty"` + Meta StudioV2FlowReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/studio/v2/model_studio_v2_flow_flow_revision.go b/rest/studio/v2/model_studio_v2_flow_flow_revision.go new file mode 100644 index 000000000..700ca7dfd --- /dev/null +++ b/rest/studio/v2/model_studio_v2_flow_flow_revision.go @@ -0,0 +1,29 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// StudioV2FlowFlowRevision struct for StudioV2FlowFlowRevision +type StudioV2FlowFlowRevision struct { + AccountSid string `json:"account_sid,omitempty"` + CommitMessage string `json:"commit_message,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Definition map[string]interface{} `json:"definition,omitempty"` + Errors []map[string]interface{} `json:"errors,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Revision int32 `json:"revision,omitempty"` + Sid string `json:"sid,omitempty"` + Status string `json:"status,omitempty"` + Url string `json:"url,omitempty"` + Valid bool `json:"valid,omitempty"` +} diff --git a/rest/studio/v2/model_studio_v2_flow_flow_revision_read_response.go b/rest/studio/v2/model_studio_v2_flow_flow_revision_read_response.go new file mode 100644 index 000000000..5270454eb --- /dev/null +++ b/rest/studio/v2/model_studio_v2_flow_flow_revision_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// StudioV2FlowFlowRevisionReadResponse struct for StudioV2FlowFlowRevisionReadResponse +type StudioV2FlowFlowRevisionReadResponse struct { + Meta StudioV2FlowReadResponseMeta `json:"meta,omitempty"` + Revisions []StudioV2FlowFlowRevision `json:"revisions,omitempty"` +} diff --git a/rest/studio/v2/model_studio_v2_flow_read_response.go b/rest/studio/v2/model_studio_v2_flow_read_response.go new file mode 100644 index 000000000..09b9862b0 --- /dev/null +++ b/rest/studio/v2/model_studio_v2_flow_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// StudioV2FlowReadResponse struct for StudioV2FlowReadResponse +type StudioV2FlowReadResponse struct { + Flows []StudioV2Flow `json:"flows,omitempty"` + Meta StudioV2FlowReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/studio/v2/model_studio_v2_flow_read_response_meta.go b/rest/studio/v2/model_studio_v2_flow_read_response_meta.go new file mode 100644 index 000000000..283ddae03 --- /dev/null +++ b/rest/studio/v2/model_studio_v2_flow_read_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// StudioV2FlowReadResponseMeta struct for StudioV2FlowReadResponseMeta +type StudioV2FlowReadResponseMeta struct { + FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` + NextPageUrl string `json:"next_page_url,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUrl string `json:"previous_page_url,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/studio/v2/model_studio_v2_flow_test_user.go b/rest/studio/v2/model_studio_v2_flow_test_user.go new file mode 100644 index 000000000..1dbe955b7 --- /dev/null +++ b/rest/studio/v2/model_studio_v2_flow_test_user.go @@ -0,0 +1,17 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// StudioV2FlowTestUser struct for StudioV2FlowTestUser +type StudioV2FlowTestUser struct { + Sid string `json:"sid,omitempty"` + TestUsers []string `json:"test_users,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/studio/v2/model_studio_v2_flow_validate.go b/rest/studio/v2/model_studio_v2_flow_validate.go new file mode 100644 index 000000000..d6e4dc251 --- /dev/null +++ b/rest/studio/v2/model_studio_v2_flow_validate.go @@ -0,0 +1,15 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// StudioV2FlowValidate struct for StudioV2FlowValidate +type StudioV2FlowValidate struct { + Valid bool `json:"valid,omitempty"` +} diff --git a/rest/studio/v2/model_update_execution_request.go b/rest/studio/v2/model_update_execution_request.go new file mode 100644 index 000000000..106bdb66b --- /dev/null +++ b/rest/studio/v2/model_update_execution_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateExecutionRequest struct for UpdateExecutionRequest +type UpdateExecutionRequest struct { + // The status of the Execution. Can only be `ended`. + Status string `json:"Status"` +} diff --git a/rest/studio/v2/model_update_flow_request.go b/rest/studio/v2/model_update_flow_request.go new file mode 100644 index 000000000..e51ec48a2 --- /dev/null +++ b/rest/studio/v2/model_update_flow_request.go @@ -0,0 +1,22 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateFlowRequest struct for UpdateFlowRequest +type UpdateFlowRequest struct { + // Description on change made in the revision. + CommitMessage string `json:"CommitMessage,omitempty"` + // JSON representation of flow definition. + Definition map[string]interface{} `json:"Definition,omitempty"` + // The string that you assigned to describe the Flow. + FriendlyName string `json:"FriendlyName,omitempty"` + // The status of the Flow. Can be: `draft` or `published`. + Status string `json:"Status"` +} diff --git a/rest/studio/v2/model_update_flow_validate_request.go b/rest/studio/v2/model_update_flow_validate_request.go new file mode 100644 index 000000000..1a6a88bfd --- /dev/null +++ b/rest/studio/v2/model_update_flow_validate_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateFlowValidateRequest struct for UpdateFlowValidateRequest +type UpdateFlowValidateRequest struct { + CommitMessage string `json:"CommitMessage,omitempty"` + Definition map[string]interface{} `json:"Definition"` + FriendlyName string `json:"FriendlyName"` + Status string `json:"Status"` +} diff --git a/rest/studio/v2/model_update_test_user_request.go b/rest/studio/v2/model_update_test_user_request.go new file mode 100644 index 000000000..505f74528 --- /dev/null +++ b/rest/studio/v2/model_update_test_user_request.go @@ -0,0 +1,15 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateTestUserRequest struct for UpdateTestUserRequest +type UpdateTestUserRequest struct { + TestUsers []string `json:"TestUsers"` +} diff --git a/rest/studio/v2/response.go b/rest/studio/v2/response.go new file mode 100644 index 000000000..6fe7b4956 --- /dev/null +++ b/rest/studio/v2/response.go @@ -0,0 +1,47 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// Response returns a new APIResponse object. +func Response(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// ResponseWithError returns a new APIResponse object with the provided error message. +func ResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/rest/supersim/v1/.openapi-generator-ignore b/rest/supersim/v1/.openapi-generator-ignore new file mode 100644 index 000000000..7484ee590 --- /dev/null +++ b/rest/supersim/v1/.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/rest/supersim/v1/.openapi-generator/VERSION b/rest/supersim/v1/.openapi-generator/VERSION new file mode 100644 index 000000000..ecedc98d1 --- /dev/null +++ b/rest/supersim/v1/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.3.1 \ No newline at end of file diff --git a/rest/supersim/v1/README.md b/rest/supersim/v1/README.md new file mode 100644 index 000000000..701393ee5 --- /dev/null +++ b/rest/supersim/v1/README.md @@ -0,0 +1,105 @@ +# Go API client for openapi + +This is the public Twilio REST API. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 5.15.0 +- Package version: 1.0.0 +- Build package: com.twilio.oai.TwilioGoGenerator +For more information, please visit [https://support.twilio.com](https://support.twilio.com) + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import "./openapi" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**CreateCommand**](docs/DefaultApi.md#createcommand) | **Post** /v1/Commands | +*DefaultApi* | [**CreateFleet**](docs/DefaultApi.md#createfleet) | **Post** /v1/Fleets | +*DefaultApi* | [**CreateNetworkAccessProfile**](docs/DefaultApi.md#createnetworkaccessprofile) | **Post** /v1/NetworkAccessProfiles | +*DefaultApi* | [**CreateNetworkAccessProfileNetwork**](docs/DefaultApi.md#createnetworkaccessprofilenetwork) | **Post** /v1/NetworkAccessProfiles/{NetworkAccessProfileSid}/Networks | +*DefaultApi* | [**DeleteNetworkAccessProfileNetwork**](docs/DefaultApi.md#deletenetworkaccessprofilenetwork) | **Delete** /v1/NetworkAccessProfiles/{NetworkAccessProfileSid}/Networks/{Sid} | +*DefaultApi* | [**FetchCommand**](docs/DefaultApi.md#fetchcommand) | **Get** /v1/Commands/{Sid} | +*DefaultApi* | [**FetchFleet**](docs/DefaultApi.md#fetchfleet) | **Get** /v1/Fleets/{Sid} | +*DefaultApi* | [**FetchNetwork**](docs/DefaultApi.md#fetchnetwork) | **Get** /v1/Networks/{Sid} | +*DefaultApi* | [**FetchNetworkAccessProfile**](docs/DefaultApi.md#fetchnetworkaccessprofile) | **Get** /v1/NetworkAccessProfiles/{Sid} | +*DefaultApi* | [**FetchNetworkAccessProfileNetwork**](docs/DefaultApi.md#fetchnetworkaccessprofilenetwork) | **Get** /v1/NetworkAccessProfiles/{NetworkAccessProfileSid}/Networks/{Sid} | +*DefaultApi* | [**FetchSim**](docs/DefaultApi.md#fetchsim) | **Get** /v1/Sims/{Sid} | +*DefaultApi* | [**ListCommand**](docs/DefaultApi.md#listcommand) | **Get** /v1/Commands | +*DefaultApi* | [**ListFleet**](docs/DefaultApi.md#listfleet) | **Get** /v1/Fleets | +*DefaultApi* | [**ListNetwork**](docs/DefaultApi.md#listnetwork) | **Get** /v1/Networks | +*DefaultApi* | [**ListNetworkAccessProfile**](docs/DefaultApi.md#listnetworkaccessprofile) | **Get** /v1/NetworkAccessProfiles | +*DefaultApi* | [**ListNetworkAccessProfileNetwork**](docs/DefaultApi.md#listnetworkaccessprofilenetwork) | **Get** /v1/NetworkAccessProfiles/{NetworkAccessProfileSid}/Networks | +*DefaultApi* | [**ListSim**](docs/DefaultApi.md#listsim) | **Get** /v1/Sims | +*DefaultApi* | [**ListUsageRecord**](docs/DefaultApi.md#listusagerecord) | **Get** /v1/UsageRecords | +*DefaultApi* | [**UpdateFleet**](docs/DefaultApi.md#updatefleet) | **Post** /v1/Fleets/{Sid} | +*DefaultApi* | [**UpdateNetworkAccessProfile**](docs/DefaultApi.md#updatenetworkaccessprofile) | **Post** /v1/NetworkAccessProfiles/{Sid} | +*DefaultApi* | [**UpdateSim**](docs/DefaultApi.md#updatesim) | **Post** /v1/Sims/{Sid} | + + +## Documentation For Models + + - [CreateCommandRequest](docs/CreateCommandRequest.md) + - [CreateFleetRequest](docs/CreateFleetRequest.md) + - [CreateNetworkAccessProfileNetworkRequest](docs/CreateNetworkAccessProfileNetworkRequest.md) + - [CreateNetworkAccessProfileRequest](docs/CreateNetworkAccessProfileRequest.md) + - [SupersimV1Command](docs/SupersimV1Command.md) + - [SupersimV1CommandReadResponse](docs/SupersimV1CommandReadResponse.md) + - [SupersimV1CommandReadResponseMeta](docs/SupersimV1CommandReadResponseMeta.md) + - [SupersimV1Fleet](docs/SupersimV1Fleet.md) + - [SupersimV1FleetReadResponse](docs/SupersimV1FleetReadResponse.md) + - [SupersimV1Network](docs/SupersimV1Network.md) + - [SupersimV1NetworkAccessProfile](docs/SupersimV1NetworkAccessProfile.md) + - [SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork](docs/SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork.md) + - [SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse](docs/SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse.md) + - [SupersimV1NetworkAccessProfileReadResponse](docs/SupersimV1NetworkAccessProfileReadResponse.md) + - [SupersimV1NetworkReadResponse](docs/SupersimV1NetworkReadResponse.md) + - [SupersimV1Sim](docs/SupersimV1Sim.md) + - [SupersimV1SimReadResponse](docs/SupersimV1SimReadResponse.md) + - [SupersimV1UsageRecord](docs/SupersimV1UsageRecord.md) + - [SupersimV1UsageRecordReadResponse](docs/SupersimV1UsageRecordReadResponse.md) + - [UpdateFleetRequest](docs/UpdateFleetRequest.md) + - [UpdateNetworkAccessProfileRequest](docs/UpdateNetworkAccessProfileRequest.md) + - [UpdateSimRequest](docs/UpdateSimRequest.md) + + +## Documentation For Authorization + + + +## accountSid_authToken + +- **Type**: HTTP basic authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ + UserName: "username", + Password: "password", +}) +r, err := client.Service.Operation(auth, args) +``` + + +## Author + +support@twilio.com + diff --git a/rest/supersim/v1/api_default.go b/rest/supersim/v1/api_default.go new file mode 100644 index 000000000..aed746ad8 --- /dev/null +++ b/rest/supersim/v1/api_default.go @@ -0,0 +1,938 @@ +/* + * Twilio - Supersim + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "" +) + +type DefaultApiService struct { + baseURL string + client *twilio.Client +} + +func NewDefaultApiService(client *twilio.Client) *DefaultApiService { + return &DefaultApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} +// CreateCommandParams Optional parameters for the method 'CreateCommand' +type CreateCommandParams struct { + CallbackMethod *string `json:"CallbackMethod,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + Command *string `json:"Command,omitempty"` + Sim *string `json:"Sim,omitempty"` +} + +/* +CreateCommand Method for CreateCommand +Send a Command to a Sim. + * @param optional nil or *CreateCommandOpts - Optional Parameters: + * @param "CallbackMethod" (string) - The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is POST. + * @param "CallbackUrl" (string) - The URL we should call using the `callback_method` after we have sent the command. + * @param "Command" (string) - The message body of the command. + * @param "Sim" (string) - The `sid` or `unique_name` of the [SIM](https://www.twilio.com/docs/wireless/api/sim-resource) to send the Command to. +@return SupersimV1Command +*/ +func (c *DefaultApiService) CreateCommand(params *CreateCommandParams) (*SupersimV1Command, error) { + path := "/v1/Commands" + + data := url.Values{} + headers := 0 + + if params != nil && params.CallbackMethod != nil { + data.Set("CallbackMethod", *params.CallbackMethod) + } + if params != nil && params.CallbackUrl != nil { + data.Set("CallbackUrl", *params.CallbackUrl) + } + if params != nil && params.Command != nil { + data.Set("Command", *params.Command) + } + if params != nil && params.Sim != nil { + data.Set("Sim", *params.Sim) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SupersimV1Command{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateFleetParams Optional parameters for the method 'CreateFleet' +type CreateFleetParams struct { + CommandsEnabled *bool `json:"CommandsEnabled,omitempty"` + CommandsMethod *string `json:"CommandsMethod,omitempty"` + CommandsUrl *string `json:"CommandsUrl,omitempty"` + DataEnabled *bool `json:"DataEnabled,omitempty"` + DataLimit *int32 `json:"DataLimit,omitempty"` + NetworkAccessProfile *string `json:"NetworkAccessProfile,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +CreateFleet Method for CreateFleet +Create a Fleet + * @param optional nil or *CreateFleetOpts - Optional Parameters: + * @param "CommandsEnabled" (bool) - Defines whether SIMs in the Fleet are capable of sending and receiving machine-to-machine SMS via Commands. Defaults to `true`. + * @param "CommandsMethod" (string) - A string representing the HTTP method to use when making a request to `commands_url`. Can be one of `POST` or `GET`. Defaults to `POST`. + * @param "CommandsUrl" (string) - The URL that will receive a webhook when a SIM in the Fleet originates a machine-to-machine SMS via Commands. Your server should respond with an HTTP status code in the 200 range; any response body will be ignored. + * @param "DataEnabled" (bool) - Defines whether SIMs in the Fleet are capable of using 2G/3G/4G/LTE/CAT-M data connectivity. Defaults to `true`. + * @param "DataLimit" (int32) - The total data usage (download and upload combined) in Megabytes that each Sim resource assigned to the Fleet resource can consume during a billing period (normally one month). Value must be between 1MB (1) and 2TB (2,000,000). Defaults to 1GB (1,000). + * @param "NetworkAccessProfile" (string) - The SID or unique name of the Network Access Profile that will control which cellular networks the Fleet's SIMs can connect to. + * @param "UniqueName" (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. +@return SupersimV1Fleet +*/ +func (c *DefaultApiService) CreateFleet(params *CreateFleetParams) (*SupersimV1Fleet, error) { + path := "/v1/Fleets" + + data := url.Values{} + headers := 0 + + if params != nil && params.CommandsEnabled != nil { + data.Set("CommandsEnabled", string(*params.CommandsEnabled)) + } + if params != nil && params.CommandsMethod != nil { + data.Set("CommandsMethod", *params.CommandsMethod) + } + if params != nil && params.CommandsUrl != nil { + data.Set("CommandsUrl", *params.CommandsUrl) + } + if params != nil && params.DataEnabled != nil { + data.Set("DataEnabled", string(*params.DataEnabled)) + } + if params != nil && params.DataLimit != nil { + data.Set("DataLimit", string(*params.DataLimit)) + } + if params != nil && params.NetworkAccessProfile != nil { + data.Set("NetworkAccessProfile", *params.NetworkAccessProfile) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SupersimV1Fleet{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateNetworkAccessProfileParams Optional parameters for the method 'CreateNetworkAccessProfile' +type CreateNetworkAccessProfileParams struct { + Networks *[]string `json:"Networks,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +CreateNetworkAccessProfile Method for CreateNetworkAccessProfile +Create a new Network Access Profile + * @param optional nil or *CreateNetworkAccessProfileOpts - Optional Parameters: + * @param "Networks" ([]string) - List of Network SIDs that this Network Access Profile will allow connections to. + * @param "UniqueName" (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. +@return SupersimV1NetworkAccessProfile +*/ +func (c *DefaultApiService) CreateNetworkAccessProfile(params *CreateNetworkAccessProfileParams) (*SupersimV1NetworkAccessProfile, error) { + path := "/v1/NetworkAccessProfiles" + + data := url.Values{} + headers := 0 + + if params != nil && params.Networks != nil { + data.Set("Networks", *params.Networks) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SupersimV1NetworkAccessProfile{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateNetworkAccessProfileNetworkParams Optional parameters for the method 'CreateNetworkAccessProfileNetwork' +type CreateNetworkAccessProfileNetworkParams struct { + Network *string `json:"Network,omitempty"` +} + +/* +CreateNetworkAccessProfileNetwork Method for CreateNetworkAccessProfileNetwork +Add a Network resource to the Network Access Profile resource. + * @param networkAccessProfileSid The unique string that identifies the Network Access Profile resource. + * @param optional nil or *CreateNetworkAccessProfileNetworkOpts - Optional Parameters: + * @param "Network" (string) - The SID of the Network resource to be added to the Network Access Profile resource. +@return SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork +*/ +func (c *DefaultApiService) CreateNetworkAccessProfileNetwork(networkAccessProfileSid string, params *CreateNetworkAccessProfileNetworkParams) (*SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork, error) { + path := "/v1/NetworkAccessProfiles/{NetworkAccessProfileSid}/Networks" + path = strings.Replace(path, "{"+"NetworkAccessProfileSid"+"}", networkAccessProfileSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Network != nil { + data.Set("Network", *params.Network) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +DeleteNetworkAccessProfileNetwork Method for DeleteNetworkAccessProfileNetwork +Remove a Network resource from the Network Access Profile resource's. + * @param networkAccessProfileSid The unique string that identifies the Network Access Profile resource. + * @param sid +*/ +func (c *DefaultApiService) DeleteNetworkAccessProfileNetwork(networkAccessProfileSid string, sid string) (error) { + path := "/v1/NetworkAccessProfiles/{NetworkAccessProfileSid}/Networks/{Sid}" + path = strings.Replace(path, "{"+"NetworkAccessProfileSid"+"}", networkAccessProfileSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +FetchCommand Method for FetchCommand +Fetch a Command instance from your account. + * @param sid The SID of the Command resource to fetch. +@return SupersimV1Command +*/ +func (c *DefaultApiService) FetchCommand(sid string) (*SupersimV1Command, error) { + path := "/v1/Commands/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SupersimV1Command{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchFleet Method for FetchFleet +Fetch a Fleet instance from your account. + * @param sid The SID of the Fleet resource to fetch. +@return SupersimV1Fleet +*/ +func (c *DefaultApiService) FetchFleet(sid string) (*SupersimV1Fleet, error) { + path := "/v1/Fleets/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SupersimV1Fleet{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchNetwork Method for FetchNetwork +Fetch a Network resource. + * @param sid The SID of the Network resource to fetch. +@return SupersimV1Network +*/ +func (c *DefaultApiService) FetchNetwork(sid string) (*SupersimV1Network, error) { + path := "/v1/Networks/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SupersimV1Network{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchNetworkAccessProfile Method for FetchNetworkAccessProfile +Fetch a Network Access Profile instance from your account. + * @param sid The SID of the Network Access Profile resource to fetch. +@return SupersimV1NetworkAccessProfile +*/ +func (c *DefaultApiService) FetchNetworkAccessProfile(sid string) (*SupersimV1NetworkAccessProfile, error) { + path := "/v1/NetworkAccessProfiles/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SupersimV1NetworkAccessProfile{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchNetworkAccessProfileNetwork Method for FetchNetworkAccessProfileNetwork +Fetch a Network Access Profile resource's Network resource. + * @param networkAccessProfileSid The unique string that identifies the Network Access Profile resource. + * @param sid The SID of the Network resource to fetch. +@return SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork +*/ +func (c *DefaultApiService) FetchNetworkAccessProfileNetwork(networkAccessProfileSid string, sid string) (*SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork, error) { + path := "/v1/NetworkAccessProfiles/{NetworkAccessProfileSid}/Networks/{Sid}" + path = strings.Replace(path, "{"+"NetworkAccessProfileSid"+"}", networkAccessProfileSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchSim Method for FetchSim +Fetch a Super SIM instance from your account. + * @param sid The SID of the Sim resource to fetch. +@return SupersimV1Sim +*/ +func (c *DefaultApiService) FetchSim(sid string) (*SupersimV1Sim, error) { + path := "/v1/Sims/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SupersimV1Sim{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListCommandParams Optional parameters for the method 'ListCommand' +type ListCommandParams struct { + Sim *string `json:"Sim,omitempty"` + Status *string `json:"Status,omitempty"` + Direction *string `json:"Direction,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListCommand Method for ListCommand +Retrieve a list of Commands from your account. + * @param optional nil or *ListCommandOpts - Optional Parameters: + * @param "Sim" (string) - The SID or unique name of the Sim that Command was sent to or from. + * @param "Status" (string) - The status of the Command. Can be: `queued`, `sent`, `delivered`, `received` or `failed`. See the [Command Status Values](https://www.twilio.com/docs/wireless/api/command-resource#status-values) for a description of each. + * @param "Direction" (string) - The direction of the Command. Can be `to_sim` or `from_sim`. The value of `to_sim` is synonymous with the term `mobile terminated`, and `from_sim` is synonymous with the term `mobile originated`. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return SupersimV1CommandReadResponse +*/ +func (c *DefaultApiService) ListCommand(params *ListCommandParams) (*SupersimV1CommandReadResponse, error) { + path := "/v1/Commands" + + data := url.Values{} + headers := 0 + + if params != nil && params.Sim != nil { + data.Set("Sim", *params.Sim) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.Direction != nil { + data.Set("Direction", *params.Direction) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SupersimV1CommandReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListFleetParams Optional parameters for the method 'ListFleet' +type ListFleetParams struct { + NetworkAccessProfile *string `json:"NetworkAccessProfile,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListFleet Method for ListFleet +Retrieve a list of Fleets from your account. + * @param optional nil or *ListFleetOpts - Optional Parameters: + * @param "NetworkAccessProfile" (string) - The SID or unique name of the Network Access Profile that controls which cellular networks the Fleet's SIMs can connect to. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return SupersimV1FleetReadResponse +*/ +func (c *DefaultApiService) ListFleet(params *ListFleetParams) (*SupersimV1FleetReadResponse, error) { + path := "/v1/Fleets" + + data := url.Values{} + headers := 0 + + if params != nil && params.NetworkAccessProfile != nil { + data.Set("NetworkAccessProfile", *params.NetworkAccessProfile) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SupersimV1FleetReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListNetworkParams Optional parameters for the method 'ListNetwork' +type ListNetworkParams struct { + IsoCountry *string `json:"IsoCountry,omitempty"` + Mcc *string `json:"Mcc,omitempty"` + Mnc *string `json:"Mnc,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListNetwork Method for ListNetwork +Retrieve a list of Network resources. + * @param optional nil or *ListNetworkOpts - Optional Parameters: + * @param "IsoCountry" (string) - The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Network resources to read. + * @param "Mcc" (string) - The 'mobile country code' of a country. Network resources with this `mcc` in their `identifiers` will be read. + * @param "Mnc" (string) - The 'mobile network code' of a mobile operator network. Network resources with this `mnc` in their `identifiers` will be read. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return SupersimV1NetworkReadResponse +*/ +func (c *DefaultApiService) ListNetwork(params *ListNetworkParams) (*SupersimV1NetworkReadResponse, error) { + path := "/v1/Networks" + + data := url.Values{} + headers := 0 + + if params != nil && params.IsoCountry != nil { + data.Set("IsoCountry", *params.IsoCountry) + } + if params != nil && params.Mcc != nil { + data.Set("Mcc", *params.Mcc) + } + if params != nil && params.Mnc != nil { + data.Set("Mnc", *params.Mnc) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SupersimV1NetworkReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListNetworkAccessProfileParams Optional parameters for the method 'ListNetworkAccessProfile' +type ListNetworkAccessProfileParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListNetworkAccessProfile Method for ListNetworkAccessProfile +Retrieve a list of Network Access Profiles from your account. + * @param optional nil or *ListNetworkAccessProfileOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return SupersimV1NetworkAccessProfileReadResponse +*/ +func (c *DefaultApiService) ListNetworkAccessProfile(params *ListNetworkAccessProfileParams) (*SupersimV1NetworkAccessProfileReadResponse, error) { + path := "/v1/NetworkAccessProfiles" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SupersimV1NetworkAccessProfileReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListNetworkAccessProfileNetworkParams Optional parameters for the method 'ListNetworkAccessProfileNetwork' +type ListNetworkAccessProfileNetworkParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListNetworkAccessProfileNetwork Method for ListNetworkAccessProfileNetwork +Retrieve a list of Network Access Profile resource's Network resource. + * @param networkAccessProfileSid The unique string that identifies the Network Access Profile resource. + * @param optional nil or *ListNetworkAccessProfileNetworkOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse +*/ +func (c *DefaultApiService) ListNetworkAccessProfileNetwork(networkAccessProfileSid string, params *ListNetworkAccessProfileNetworkParams) (*SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse, error) { + path := "/v1/NetworkAccessProfiles/{NetworkAccessProfileSid}/Networks" + path = strings.Replace(path, "{"+"NetworkAccessProfileSid"+"}", networkAccessProfileSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListSimParams Optional parameters for the method 'ListSim' +type ListSimParams struct { + Status *string `json:"Status,omitempty"` + Fleet *string `json:"Fleet,omitempty"` + Iccid *string `json:"Iccid,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListSim Method for ListSim +Retrieve a list of Super SIMs from your account. + * @param optional nil or *ListSimOpts - Optional Parameters: + * @param "Status" (string) - The status of the Sim resources to read. Can be `new`, `ready`, `active`, `inactive`, or `scheduled`. + * @param "Fleet" (string) - The SID or unique name of the Fleet to which a list of Sims are assigned. + * @param "Iccid" (string) - The [ICCID](https://en.wikipedia.org/wiki/Subscriber_identity_module#ICCID) associated with a Super SIM to filter the list by. Passing this parameter will always return a list containing zero or one SIMs. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return SupersimV1SimReadResponse +*/ +func (c *DefaultApiService) ListSim(params *ListSimParams) (*SupersimV1SimReadResponse, error) { + path := "/v1/Sims" + + data := url.Values{} + headers := 0 + + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.Fleet != nil { + data.Set("Fleet", *params.Fleet) + } + if params != nil && params.Iccid != nil { + data.Set("Iccid", *params.Iccid) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SupersimV1SimReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListUsageRecordParams Optional parameters for the method 'ListUsageRecord' +type ListUsageRecordParams struct { + Sim *string `json:"Sim,omitempty"` + Fleet *string `json:"Fleet,omitempty"` + Network *string `json:"Network,omitempty"` + IsoCountry *string `json:"IsoCountry,omitempty"` + Group *string `json:"Group,omitempty"` + Granularity *string `json:"Granularity,omitempty"` + StartTime *time.Time `json:"StartTime,omitempty"` + EndTime *time.Time `json:"EndTime,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListUsageRecord Method for ListUsageRecord +List UsageRecords + * @param optional nil or *ListUsageRecordOpts - Optional Parameters: + * @param "Sim" (string) - SID or unique name of a Sim resource. Only show UsageRecords representing usage incurred by this Super SIM. + * @param "Fleet" (string) - SID or unique name of a Fleet resource. Only show UsageRecords representing usage for Super SIMs belonging to this Fleet resource at the time the usage occurred. + * @param "Network" (string) - SID of a Network resource. Only show UsageRecords representing usage on this network. + * @param "IsoCountry" (string) - Alpha-2 ISO Country Code. Only show UsageRecords representing usage in this country. + * @param "Group" (string) - Dimension over which to aggregate usage records. Can be: `sim`, `fleet`, `network`, `isoCountry`. Default is to not aggregate across any of these dimensions, UsageRecords will be aggregated into the time buckets described by the `Granularity` parameter. + * @param "Granularity" (string) - Time-based grouping that UsageRecords should be aggregated by. Can be: `hour`, `day`, or `all`. Default is `all`. `all` returns one UsageRecord that describes the usage for the entire period. + * @param "StartTime" (time.Time) - Only include usage that occurred at or after this time, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Default is one month before the `end_time`. + * @param "EndTime" (time.Time) - Only include usage that occurred before this time, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Default is the current time. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return SupersimV1UsageRecordReadResponse +*/ +func (c *DefaultApiService) ListUsageRecord(params *ListUsageRecordParams) (*SupersimV1UsageRecordReadResponse, error) { + path := "/v1/UsageRecords" + + data := url.Values{} + headers := 0 + + if params != nil && params.Sim != nil { + data.Set("Sim", *params.Sim) + } + if params != nil && params.Fleet != nil { + data.Set("Fleet", *params.Fleet) + } + if params != nil && params.Network != nil { + data.Set("Network", *params.Network) + } + if params != nil && params.IsoCountry != nil { + data.Set("IsoCountry", *params.IsoCountry) + } + if params != nil && params.Group != nil { + data.Set("Group", *params.Group) + } + if params != nil && params.Granularity != nil { + data.Set("Granularity", *params.Granularity) + } + if params != nil && params.StartTime != nil { + data.Set("StartTime", string(*params.StartTime)) + } + if params != nil && params.EndTime != nil { + data.Set("EndTime", string(*params.EndTime)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SupersimV1UsageRecordReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateFleetParams Optional parameters for the method 'UpdateFleet' +type UpdateFleetParams struct { + NetworkAccessProfile *string `json:"NetworkAccessProfile,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +UpdateFleet Method for UpdateFleet +Updates the given properties of a Super SIM Fleet instance from your account. + * @param sid The SID of the Fleet resource to update. + * @param optional nil or *UpdateFleetOpts - Optional Parameters: + * @param "NetworkAccessProfile" (string) - The SID or unique name of the Network Access Profile that will control which cellular networks the Fleet's SIMs can connect to. + * @param "UniqueName" (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. +@return SupersimV1Fleet +*/ +func (c *DefaultApiService) UpdateFleet(sid string, params *UpdateFleetParams) (*SupersimV1Fleet, error) { + path := "/v1/Fleets/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.NetworkAccessProfile != nil { + data.Set("NetworkAccessProfile", *params.NetworkAccessProfile) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SupersimV1Fleet{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateNetworkAccessProfileParams Optional parameters for the method 'UpdateNetworkAccessProfile' +type UpdateNetworkAccessProfileParams struct { + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +UpdateNetworkAccessProfile Method for UpdateNetworkAccessProfile +Updates the given properties of a Network Access Profile in your account. + * @param sid The SID of the Network Access Profile to update. + * @param optional nil or *UpdateNetworkAccessProfileOpts - Optional Parameters: + * @param "UniqueName" (string) - The new unique name of the Network Access Profile. +@return SupersimV1NetworkAccessProfile +*/ +func (c *DefaultApiService) UpdateNetworkAccessProfile(sid string, params *UpdateNetworkAccessProfileParams) (*SupersimV1NetworkAccessProfile, error) { + path := "/v1/NetworkAccessProfiles/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SupersimV1NetworkAccessProfile{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateSimParams Optional parameters for the method 'UpdateSim' +type UpdateSimParams struct { + AccountSid *string `json:"AccountSid,omitempty"` + CallbackMethod *string `json:"CallbackMethod,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + Fleet *string `json:"Fleet,omitempty"` + Status *string `json:"Status,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +UpdateSim Method for UpdateSim +Updates the given properties of a Super SIM instance from your account. + * @param sid The SID of the Sim resource to update. + * @param optional nil or *UpdateSimOpts - Optional Parameters: + * @param "AccountSid" (string) - The SID of the Account to which the Sim resource should belong. The Account SID can only be that of the requesting Account or that of a Subaccount of the requesting Account. Only valid when the Sim resource's status is new. + * @param "CallbackMethod" (string) - The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is POST. + * @param "CallbackUrl" (string) - The URL we should call using the `callback_method` after an asynchronous update has finished. + * @param "Fleet" (string) - The SID or unique name of the Fleet to which the SIM resource should be assigned. + * @param "Status" (string) - The new status of the resource. Can be: `ready`, `active`, or `inactive`. See the [Super SIM Status Values](https://www.twilio.com/docs/iot/supersim/api/sim-resource#status-values) for more info. + * @param "UniqueName" (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. +@return SupersimV1Sim +*/ +func (c *DefaultApiService) UpdateSim(sid string, params *UpdateSimParams) (*SupersimV1Sim, error) { + path := "/v1/Sims/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AccountSid != nil { + data.Set("AccountSid", *params.AccountSid) + } + if params != nil && params.CallbackMethod != nil { + data.Set("CallbackMethod", *params.CallbackMethod) + } + if params != nil && params.CallbackUrl != nil { + data.Set("CallbackUrl", *params.CallbackUrl) + } + if params != nil && params.Fleet != nil { + data.Set("Fleet", *params.Fleet) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SupersimV1Sim{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/supersim/v1/docs/CreateCommandRequest.md b/rest/supersim/v1/docs/CreateCommandRequest.md new file mode 100644 index 000000000..382803b5d --- /dev/null +++ b/rest/supersim/v1/docs/CreateCommandRequest.md @@ -0,0 +1,14 @@ +# CreateCommandRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CallbackMethod** | **string** | The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is POST. | [optional] +**CallbackUrl** | **string** | The URL we should call using the `callback_method` after we have sent the command. | [optional] +**Command** | **string** | The message body of the command. | +**Sim** | **string** | The `sid` or `unique_name` of the [SIM](https://www.twilio.com/docs/wireless/api/sim-resource) to send the Command to. | + +[[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/rest/supersim/v1/docs/CreateFleetRequest.md b/rest/supersim/v1/docs/CreateFleetRequest.md new file mode 100644 index 000000000..0494c1c84 --- /dev/null +++ b/rest/supersim/v1/docs/CreateFleetRequest.md @@ -0,0 +1,17 @@ +# CreateFleetRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CommandsEnabled** | **bool** | Defines whether SIMs in the Fleet are capable of sending and receiving machine-to-machine SMS via Commands. Defaults to `true`. | [optional] +**CommandsMethod** | **string** | A string representing the HTTP method to use when making a request to `commands_url`. Can be one of `POST` or `GET`. Defaults to `POST`. | [optional] +**CommandsUrl** | **string** | The URL that will receive a webhook when a SIM in the Fleet originates a machine-to-machine SMS via Commands. Your server should respond with an HTTP status code in the 200 range; any response body will be ignored. | [optional] +**DataEnabled** | **bool** | Defines whether SIMs in the Fleet are capable of using 2G/3G/4G/LTE/CAT-M data connectivity. Defaults to `true`. | [optional] +**DataLimit** | **int32** | The total data usage (download and upload combined) in Megabytes that each Sim resource assigned to the Fleet resource can consume during a billing period (normally one month). Value must be between 1MB (1) and 2TB (2,000,000). Defaults to 1GB (1,000). | [optional] +**NetworkAccessProfile** | **string** | The SID or unique name of the Network Access Profile that will control which cellular networks the Fleet's SIMs can connect to. | +**UniqueName** | **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] + +[[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/rest/supersim/v1/docs/CreateNetworkAccessProfileNetworkRequest.md b/rest/supersim/v1/docs/CreateNetworkAccessProfileNetworkRequest.md new file mode 100644 index 000000000..ab5509858 --- /dev/null +++ b/rest/supersim/v1/docs/CreateNetworkAccessProfileNetworkRequest.md @@ -0,0 +1,11 @@ +# CreateNetworkAccessProfileNetworkRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Network** | **string** | The SID of the Network resource to be added to the Network Access Profile resource. | + +[[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/rest/supersim/v1/docs/CreateNetworkAccessProfileRequest.md b/rest/supersim/v1/docs/CreateNetworkAccessProfileRequest.md new file mode 100644 index 000000000..e5a7dca28 --- /dev/null +++ b/rest/supersim/v1/docs/CreateNetworkAccessProfileRequest.md @@ -0,0 +1,12 @@ +# CreateNetworkAccessProfileRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Networks** | **[]string** | List of Network SIDs that this Network Access Profile will allow connections to. | [optional] +**UniqueName** | **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] + +[[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/rest/supersim/v1/docs/DefaultApi.md b/rest/supersim/v1/docs/DefaultApi.md new file mode 100644 index 000000000..99b5f6a04 --- /dev/null +++ b/rest/supersim/v1/docs/DefaultApi.md @@ -0,0 +1,915 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateCommand**](DefaultApi.md#CreateCommand) | **Post** /v1/Commands | +[**CreateFleet**](DefaultApi.md#CreateFleet) | **Post** /v1/Fleets | +[**CreateNetworkAccessProfile**](DefaultApi.md#CreateNetworkAccessProfile) | **Post** /v1/NetworkAccessProfiles | +[**CreateNetworkAccessProfileNetwork**](DefaultApi.md#CreateNetworkAccessProfileNetwork) | **Post** /v1/NetworkAccessProfiles/{NetworkAccessProfileSid}/Networks | +[**DeleteNetworkAccessProfileNetwork**](DefaultApi.md#DeleteNetworkAccessProfileNetwork) | **Delete** /v1/NetworkAccessProfiles/{NetworkAccessProfileSid}/Networks/{Sid} | +[**FetchCommand**](DefaultApi.md#FetchCommand) | **Get** /v1/Commands/{Sid} | +[**FetchFleet**](DefaultApi.md#FetchFleet) | **Get** /v1/Fleets/{Sid} | +[**FetchNetwork**](DefaultApi.md#FetchNetwork) | **Get** /v1/Networks/{Sid} | +[**FetchNetworkAccessProfile**](DefaultApi.md#FetchNetworkAccessProfile) | **Get** /v1/NetworkAccessProfiles/{Sid} | +[**FetchNetworkAccessProfileNetwork**](DefaultApi.md#FetchNetworkAccessProfileNetwork) | **Get** /v1/NetworkAccessProfiles/{NetworkAccessProfileSid}/Networks/{Sid} | +[**FetchSim**](DefaultApi.md#FetchSim) | **Get** /v1/Sims/{Sid} | +[**ListCommand**](DefaultApi.md#ListCommand) | **Get** /v1/Commands | +[**ListFleet**](DefaultApi.md#ListFleet) | **Get** /v1/Fleets | +[**ListNetwork**](DefaultApi.md#ListNetwork) | **Get** /v1/Networks | +[**ListNetworkAccessProfile**](DefaultApi.md#ListNetworkAccessProfile) | **Get** /v1/NetworkAccessProfiles | +[**ListNetworkAccessProfileNetwork**](DefaultApi.md#ListNetworkAccessProfileNetwork) | **Get** /v1/NetworkAccessProfiles/{NetworkAccessProfileSid}/Networks | +[**ListSim**](DefaultApi.md#ListSim) | **Get** /v1/Sims | +[**ListUsageRecord**](DefaultApi.md#ListUsageRecord) | **Get** /v1/UsageRecords | +[**UpdateFleet**](DefaultApi.md#UpdateFleet) | **Post** /v1/Fleets/{Sid} | +[**UpdateNetworkAccessProfile**](DefaultApi.md#UpdateNetworkAccessProfile) | **Post** /v1/NetworkAccessProfiles/{Sid} | +[**UpdateSim**](DefaultApi.md#UpdateSim) | **Post** /v1/Sims/{Sid} | + + + +## CreateCommand + +> SupersimV1Command CreateCommand(ctx, optional) + + + +Send a Command to a Sim. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateCommandOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateCommandOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **callbackMethod** | **optional.String**| The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is POST. | + **callbackUrl** | **optional.String**| The URL we should call using the `callback_method` after we have sent the command. | + **command** | **optional.String**| The message body of the command. | + **sim** | **optional.String**| The `sid` or `unique_name` of the [SIM](https://www.twilio.com/docs/wireless/api/sim-resource) to send the Command to. | + +### Return type + +[**SupersimV1Command**](supersim.v1.command.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) + + +## CreateFleet + +> SupersimV1Fleet CreateFleet(ctx, optional) + + + +Create a Fleet + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateFleetOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateFleetOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commandsEnabled** | **optional.Bool**| Defines whether SIMs in the Fleet are capable of sending and receiving machine-to-machine SMS via Commands. Defaults to `true`. | + **commandsMethod** | **optional.String**| A string representing the HTTP method to use when making a request to `commands_url`. Can be one of `POST` or `GET`. Defaults to `POST`. | + **commandsUrl** | **optional.String**| The URL that will receive a webhook when a SIM in the Fleet originates a machine-to-machine SMS via Commands. Your server should respond with an HTTP status code in the 200 range; any response body will be ignored. | + **dataEnabled** | **optional.Bool**| Defines whether SIMs in the Fleet are capable of using 2G/3G/4G/LTE/CAT-M data connectivity. Defaults to `true`. | + **dataLimit** | **optional.Int32**| The total data usage (download and upload combined) in Megabytes that each Sim resource assigned to the Fleet resource can consume during a billing period (normally one month). Value must be between 1MB (1) and 2TB (2,000,000). Defaults to 1GB (1,000). | + **networkAccessProfile** | **optional.String**| The SID or unique name of the Network Access Profile that will control which cellular networks the Fleet's SIMs can connect to. | + **uniqueName** | **optional.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. | + +### Return type + +[**SupersimV1Fleet**](supersim.v1.fleet.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) + + +## CreateNetworkAccessProfile + +> SupersimV1NetworkAccessProfile CreateNetworkAccessProfile(ctx, optional) + + + +Create a new Network Access Profile + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateNetworkAccessProfileOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateNetworkAccessProfileOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **networks** | [**optional.Interface of []string**](string.md)| List of Network SIDs that this Network Access Profile will allow connections to. | + **uniqueName** | **optional.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. | + +### Return type + +[**SupersimV1NetworkAccessProfile**](supersim.v1.network_access_profile.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) + + +## CreateNetworkAccessProfileNetwork + +> SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork CreateNetworkAccessProfileNetwork(ctx, networkAccessProfileSid, optional) + + + +Add a Network resource to the Network Access Profile resource. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**networkAccessProfileSid** | **string**| The unique string that identifies the Network Access Profile resource. | + **optional** | ***CreateNetworkAccessProfileNetworkOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateNetworkAccessProfileNetworkOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **network** | **optional.String**| The SID of the Network resource to be added to the Network Access Profile resource. | + +### Return type + +[**SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork**](supersim.v1.network_access_profile.network_access_profile_network.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) + + +## DeleteNetworkAccessProfileNetwork + +> DeleteNetworkAccessProfileNetwork(ctx, networkAccessProfileSid, sid) + + + +Remove a Network resource from the Network Access Profile resource's. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**networkAccessProfileSid** | **string**| The unique string that identifies the Network Access Profile resource. | +**sid** | **string**| | + +### 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) + + +## FetchCommand + +> SupersimV1Command FetchCommand(ctx, sid) + + + +Fetch a Command instance from your account. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Command resource to fetch. | + +### Return type + +[**SupersimV1Command**](supersim.v1.command.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) + + +## FetchFleet + +> SupersimV1Fleet FetchFleet(ctx, sid) + + + +Fetch a Fleet instance from your account. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Fleet resource to fetch. | + +### Return type + +[**SupersimV1Fleet**](supersim.v1.fleet.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) + + +## FetchNetwork + +> SupersimV1Network FetchNetwork(ctx, sid) + + + +Fetch a Network resource. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Network resource to fetch. | + +### Return type + +[**SupersimV1Network**](supersim.v1.network.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) + + +## FetchNetworkAccessProfile + +> SupersimV1NetworkAccessProfile FetchNetworkAccessProfile(ctx, sid) + + + +Fetch a Network Access Profile instance from your account. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Network Access Profile resource to fetch. | + +### Return type + +[**SupersimV1NetworkAccessProfile**](supersim.v1.network_access_profile.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) + + +## FetchNetworkAccessProfileNetwork + +> SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork FetchNetworkAccessProfileNetwork(ctx, networkAccessProfileSid, sid) + + + +Fetch a Network Access Profile resource's Network resource. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**networkAccessProfileSid** | **string**| The unique string that identifies the Network Access Profile resource. | +**sid** | **string**| The SID of the Network resource to fetch. | + +### Return type + +[**SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork**](supersim.v1.network_access_profile.network_access_profile_network.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) + + +## FetchSim + +> SupersimV1Sim FetchSim(ctx, sid) + + + +Fetch a Super SIM instance from your account. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Sim resource to fetch. | + +### Return type + +[**SupersimV1Sim**](supersim.v1.sim.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) + + +## ListCommand + +> SupersimV1CommandReadResponse ListCommand(ctx, optional) + + + +Retrieve a list of Commands from your account. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListCommandOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListCommandOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sim** | **optional.String**| The SID or unique name of the Sim that Command was sent to or from. | + **status** | **optional.String**| The status of the Command. Can be: `queued`, `sent`, `delivered`, `received` or `failed`. See the [Command Status Values](https://www.twilio.com/docs/wireless/api/command-resource#status-values) for a description of each. | + **direction** | **optional.String**| The direction of the Command. Can be `to_sim` or `from_sim`. The value of `to_sim` is synonymous with the term `mobile terminated`, and `from_sim` is synonymous with the term `mobile originated`. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**SupersimV1CommandReadResponse**](supersim_v1_commandReadResponse.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) + + +## ListFleet + +> SupersimV1FleetReadResponse ListFleet(ctx, optional) + + + +Retrieve a list of Fleets from your account. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListFleetOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListFleetOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **networkAccessProfile** | **optional.String**| The SID or unique name of the Network Access Profile that controls which cellular networks the Fleet's SIMs can connect to. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**SupersimV1FleetReadResponse**](supersim_v1_fleetReadResponse.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) + + +## ListNetwork + +> SupersimV1NetworkReadResponse ListNetwork(ctx, optional) + + + +Retrieve a list of Network resources. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListNetworkOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListNetworkOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **isoCountry** | **optional.String**| The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Network resources to read. | + **mcc** | **optional.String**| The 'mobile country code' of a country. Network resources with this `mcc` in their `identifiers` will be read. | + **mnc** | **optional.String**| The 'mobile network code' of a mobile operator network. Network resources with this `mnc` in their `identifiers` will be read. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**SupersimV1NetworkReadResponse**](supersim_v1_networkReadResponse.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) + + +## ListNetworkAccessProfile + +> SupersimV1NetworkAccessProfileReadResponse ListNetworkAccessProfile(ctx, optional) + + + +Retrieve a list of Network Access Profiles from your account. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListNetworkAccessProfileOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListNetworkAccessProfileOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**SupersimV1NetworkAccessProfileReadResponse**](supersim_v1_network_access_profileReadResponse.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) + + +## ListNetworkAccessProfileNetwork + +> SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse ListNetworkAccessProfileNetwork(ctx, networkAccessProfileSid, optional) + + + +Retrieve a list of Network Access Profile resource's Network resource. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**networkAccessProfileSid** | **string**| The unique string that identifies the Network Access Profile resource. | + **optional** | ***ListNetworkAccessProfileNetworkOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListNetworkAccessProfileNetworkOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse**](supersim_v1_network_access_profile_network_access_profile_networkReadResponse.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) + + +## ListSim + +> SupersimV1SimReadResponse ListSim(ctx, optional) + + + +Retrieve a list of Super SIMs from your account. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListSimOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListSimOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **status** | **optional.String**| The status of the Sim resources to read. Can be `new`, `ready`, `active`, `inactive`, or `scheduled`. | + **fleet** | **optional.String**| The SID or unique name of the Fleet to which a list of Sims are assigned. | + **iccid** | **optional.String**| The [ICCID](https://en.wikipedia.org/wiki/Subscriber_identity_module#ICCID) associated with a Super SIM to filter the list by. Passing this parameter will always return a list containing zero or one SIMs. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**SupersimV1SimReadResponse**](supersim_v1_simReadResponse.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) + + +## ListUsageRecord + +> SupersimV1UsageRecordReadResponse ListUsageRecord(ctx, optional) + + + +List UsageRecords + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListUsageRecordOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListUsageRecordOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sim** | **optional.String**| SID or unique name of a Sim resource. Only show UsageRecords representing usage incurred by this Super SIM. | + **fleet** | **optional.String**| SID or unique name of a Fleet resource. Only show UsageRecords representing usage for Super SIMs belonging to this Fleet resource at the time the usage occurred. | + **network** | **optional.String**| SID of a Network resource. Only show UsageRecords representing usage on this network. | + **isoCountry** | **optional.String**| Alpha-2 ISO Country Code. Only show UsageRecords representing usage in this country. | + **group** | **optional.String**| Dimension over which to aggregate usage records. Can be: `sim`, `fleet`, `network`, `isoCountry`. Default is to not aggregate across any of these dimensions, UsageRecords will be aggregated into the time buckets described by the `Granularity` parameter. | + **granularity** | **optional.String**| Time-based grouping that UsageRecords should be aggregated by. Can be: `hour`, `day`, or `all`. Default is `all`. `all` returns one UsageRecord that describes the usage for the entire period. | + **startTime** | **optional.Time**| Only include usage that occurred at or after this time, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Default is one month before the `end_time`. | + **endTime** | **optional.Time**| Only include usage that occurred before this time, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Default is the current time. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**SupersimV1UsageRecordReadResponse**](supersim_v1_usage_recordReadResponse.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) + + +## UpdateFleet + +> SupersimV1Fleet UpdateFleet(ctx, sid, optional) + + + +Updates the given properties of a Super SIM Fleet instance from your account. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Fleet resource to update. | + **optional** | ***UpdateFleetOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateFleetOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **networkAccessProfile** | **optional.String**| The SID or unique name of the Network Access Profile that will control which cellular networks the Fleet's SIMs can connect to. | + **uniqueName** | **optional.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. | + +### Return type + +[**SupersimV1Fleet**](supersim.v1.fleet.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) + + +## UpdateNetworkAccessProfile + +> SupersimV1NetworkAccessProfile UpdateNetworkAccessProfile(ctx, sid, optional) + + + +Updates the given properties of a Network Access Profile in your account. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Network Access Profile to update. | + **optional** | ***UpdateNetworkAccessProfileOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateNetworkAccessProfileOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **uniqueName** | **optional.String**| The new unique name of the Network Access Profile. | + +### Return type + +[**SupersimV1NetworkAccessProfile**](supersim.v1.network_access_profile.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) + + +## UpdateSim + +> SupersimV1Sim UpdateSim(ctx, sid, optional) + + + +Updates the given properties of a Super SIM instance from your account. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Sim resource to update. | + **optional** | ***UpdateSimOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateSimOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **accountSid** | **optional.String**| The SID of the Account to which the Sim resource should belong. The Account SID can only be that of the requesting Account or that of a Subaccount of the requesting Account. Only valid when the Sim resource's status is new. | + **callbackMethod** | **optional.String**| The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is POST. | + **callbackUrl** | **optional.String**| The URL we should call using the `callback_method` after an asynchronous update has finished. | + **fleet** | **optional.String**| The SID or unique name of the Fleet to which the SIM resource should be assigned. | + **status** | **optional.String**| The new status of the resource. Can be: `ready`, `active`, or `inactive`. See the [Super SIM Status Values](https://www.twilio.com/docs/iot/supersim/api/sim-resource#status-values) for more info. | + **uniqueName** | **optional.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. | + +### Return type + +[**SupersimV1Sim**](supersim.v1.sim.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/rest/supersim/v1/docs/SupersimV1Command.md b/rest/supersim/v1/docs/SupersimV1Command.md new file mode 100644 index 000000000..425871f95 --- /dev/null +++ b/rest/supersim/v1/docs/SupersimV1Command.md @@ -0,0 +1,19 @@ +# SupersimV1Command + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Command** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Direction** | **string** | | [optional] +**Sid** | **string** | | [optional] +**SimSid** | **string** | | [optional] +**Status** | **string** | | [optional] +**Url** | **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/rest/supersim/v1/docs/SupersimV1CommandReadResponse.md b/rest/supersim/v1/docs/SupersimV1CommandReadResponse.md new file mode 100644 index 000000000..fc1390411 --- /dev/null +++ b/rest/supersim/v1/docs/SupersimV1CommandReadResponse.md @@ -0,0 +1,12 @@ +# SupersimV1CommandReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Commands** | [**[]SupersimV1Command**](supersim.v1.command.md) | | [optional] +**Meta** | [**SupersimV1CommandReadResponseMeta**](supersim_v1_commandReadResponse_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/rest/supersim/v1/docs/SupersimV1CommandReadResponseMeta.md b/rest/supersim/v1/docs/SupersimV1CommandReadResponseMeta.md new file mode 100644 index 000000000..5bef4e6f9 --- /dev/null +++ b/rest/supersim/v1/docs/SupersimV1CommandReadResponseMeta.md @@ -0,0 +1,17 @@ +# SupersimV1CommandReadResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/supersim/v1/docs/SupersimV1Fleet.md b/rest/supersim/v1/docs/SupersimV1Fleet.md new file mode 100644 index 000000000..03efcdbc9 --- /dev/null +++ b/rest/supersim/v1/docs/SupersimV1Fleet.md @@ -0,0 +1,23 @@ +# SupersimV1Fleet + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**CommandsEnabled** | **bool** | | [optional] +**CommandsMethod** | **string** | | [optional] +**CommandsUrl** | **string** | | [optional] +**DataEnabled** | **bool** | | [optional] +**DataLimit** | **int32** | | [optional] +**DataMetering** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**NetworkAccessProfileSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **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/rest/supersim/v1/docs/SupersimV1FleetReadResponse.md b/rest/supersim/v1/docs/SupersimV1FleetReadResponse.md new file mode 100644 index 000000000..49b534322 --- /dev/null +++ b/rest/supersim/v1/docs/SupersimV1FleetReadResponse.md @@ -0,0 +1,12 @@ +# SupersimV1FleetReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Fleets** | [**[]SupersimV1Fleet**](supersim.v1.fleet.md) | | [optional] +**Meta** | [**SupersimV1CommandReadResponseMeta**](supersim_v1_commandReadResponse_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/rest/supersim/v1/docs/SupersimV1Network.md b/rest/supersim/v1/docs/SupersimV1Network.md new file mode 100644 index 000000000..ff2e35b2b --- /dev/null +++ b/rest/supersim/v1/docs/SupersimV1Network.md @@ -0,0 +1,15 @@ +# SupersimV1Network + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | | [optional] +**Identifiers** | **[]map[string]interface{}** | | [optional] +**IsoCountry** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/supersim/v1/docs/SupersimV1NetworkAccessProfile.md b/rest/supersim/v1/docs/SupersimV1NetworkAccessProfile.md new file mode 100644 index 000000000..592397d4e --- /dev/null +++ b/rest/supersim/v1/docs/SupersimV1NetworkAccessProfile.md @@ -0,0 +1,17 @@ +# SupersimV1NetworkAccessProfile + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Sid** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **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/rest/supersim/v1/docs/SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork.md b/rest/supersim/v1/docs/SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork.md new file mode 100644 index 000000000..ae59369aa --- /dev/null +++ b/rest/supersim/v1/docs/SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork.md @@ -0,0 +1,16 @@ +# SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | | [optional] +**Identifiers** | **[]map[string]interface{}** | | [optional] +**IsoCountry** | **string** | | [optional] +**NetworkAccessProfileSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/supersim/v1/docs/SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse.md b/rest/supersim/v1/docs/SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse.md new file mode 100644 index 000000000..61c7be532 --- /dev/null +++ b/rest/supersim/v1/docs/SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse.md @@ -0,0 +1,12 @@ +# SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**SupersimV1CommandReadResponseMeta**](supersim_v1_commandReadResponse_meta.md) | | [optional] +**Networks** | [**[]SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork**](supersim.v1.network_access_profile.network_access_profile_network.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/rest/supersim/v1/docs/SupersimV1NetworkAccessProfileReadResponse.md b/rest/supersim/v1/docs/SupersimV1NetworkAccessProfileReadResponse.md new file mode 100644 index 000000000..cd79c5284 --- /dev/null +++ b/rest/supersim/v1/docs/SupersimV1NetworkAccessProfileReadResponse.md @@ -0,0 +1,12 @@ +# SupersimV1NetworkAccessProfileReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**SupersimV1CommandReadResponseMeta**](supersim_v1_commandReadResponse_meta.md) | | [optional] +**NetworkAccessProfiles** | [**[]SupersimV1NetworkAccessProfile**](supersim.v1.network_access_profile.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/rest/supersim/v1/docs/SupersimV1NetworkReadResponse.md b/rest/supersim/v1/docs/SupersimV1NetworkReadResponse.md new file mode 100644 index 000000000..6746b3906 --- /dev/null +++ b/rest/supersim/v1/docs/SupersimV1NetworkReadResponse.md @@ -0,0 +1,12 @@ +# SupersimV1NetworkReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**SupersimV1CommandReadResponseMeta**](supersim_v1_commandReadResponse_meta.md) | | [optional] +**Networks** | [**[]SupersimV1Network**](supersim.v1.network.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/rest/supersim/v1/docs/SupersimV1Sim.md b/rest/supersim/v1/docs/SupersimV1Sim.md new file mode 100644 index 000000000..86d6d75da --- /dev/null +++ b/rest/supersim/v1/docs/SupersimV1Sim.md @@ -0,0 +1,19 @@ +# SupersimV1Sim + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FleetSid** | **string** | | [optional] +**Iccid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Status** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **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/rest/supersim/v1/docs/SupersimV1SimReadResponse.md b/rest/supersim/v1/docs/SupersimV1SimReadResponse.md new file mode 100644 index 000000000..4560c0fee --- /dev/null +++ b/rest/supersim/v1/docs/SupersimV1SimReadResponse.md @@ -0,0 +1,12 @@ +# SupersimV1SimReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**SupersimV1CommandReadResponseMeta**](supersim_v1_commandReadResponse_meta.md) | | [optional] +**Sims** | [**[]SupersimV1Sim**](supersim.v1.sim.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/rest/supersim/v1/docs/SupersimV1UsageRecord.md b/rest/supersim/v1/docs/SupersimV1UsageRecord.md new file mode 100644 index 000000000..395e0db99 --- /dev/null +++ b/rest/supersim/v1/docs/SupersimV1UsageRecord.md @@ -0,0 +1,19 @@ +# SupersimV1UsageRecord + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DataDownload** | **int32** | | [optional] +**DataTotal** | **int32** | | [optional] +**DataUpload** | **int32** | | [optional] +**FleetSid** | **string** | | [optional] +**IsoCountry** | **string** | | [optional] +**NetworkSid** | **string** | | [optional] +**Period** | [**map[string]interface{}**](.md) | | [optional] +**SimSid** | **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/rest/supersim/v1/docs/SupersimV1UsageRecordReadResponse.md b/rest/supersim/v1/docs/SupersimV1UsageRecordReadResponse.md new file mode 100644 index 000000000..269847487 --- /dev/null +++ b/rest/supersim/v1/docs/SupersimV1UsageRecordReadResponse.md @@ -0,0 +1,12 @@ +# SupersimV1UsageRecordReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**SupersimV1CommandReadResponseMeta**](supersim_v1_commandReadResponse_meta.md) | | [optional] +**UsageRecords** | [**[]SupersimV1UsageRecord**](supersim.v1.usage_record.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/rest/supersim/v1/docs/UpdateFleetRequest.md b/rest/supersim/v1/docs/UpdateFleetRequest.md new file mode 100644 index 000000000..b0f639f33 --- /dev/null +++ b/rest/supersim/v1/docs/UpdateFleetRequest.md @@ -0,0 +1,12 @@ +# UpdateFleetRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NetworkAccessProfile** | **string** | The SID or unique name of the Network Access Profile that will control which cellular networks the Fleet's SIMs can connect to. | [optional] +**UniqueName** | **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] + +[[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/rest/supersim/v1/docs/UpdateNetworkAccessProfileRequest.md b/rest/supersim/v1/docs/UpdateNetworkAccessProfileRequest.md new file mode 100644 index 000000000..e714a623c --- /dev/null +++ b/rest/supersim/v1/docs/UpdateNetworkAccessProfileRequest.md @@ -0,0 +1,11 @@ +# UpdateNetworkAccessProfileRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UniqueName** | **string** | The new unique name of the Network Access Profile. | [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/rest/supersim/v1/docs/UpdateSimRequest.md b/rest/supersim/v1/docs/UpdateSimRequest.md new file mode 100644 index 000000000..6e025a0b6 --- /dev/null +++ b/rest/supersim/v1/docs/UpdateSimRequest.md @@ -0,0 +1,16 @@ +# UpdateSimRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | The SID of the Account to which the Sim resource should belong. The Account SID can only be that of the requesting Account or that of a Subaccount of the requesting Account. Only valid when the Sim resource's status is new. | [optional] +**CallbackMethod** | **string** | The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is POST. | [optional] +**CallbackUrl** | **string** | The URL we should call using the `callback_method` after an asynchronous update has finished. | [optional] +**Fleet** | **string** | The SID or unique name of the Fleet to which the SIM resource should be assigned. | [optional] +**Status** | **string** | The new status of the resource. Can be: `ready`, `active`, or `inactive`. See the [Super SIM Status Values](https://www.twilio.com/docs/iot/supersim/api/sim-resource#status-values) for more info. | [optional] +**UniqueName** | **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] + +[[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/rest/supersim/v1/model_create_command_request.go b/rest/supersim/v1/model_create_command_request.go new file mode 100644 index 000000000..344d6f450 --- /dev/null +++ b/rest/supersim/v1/model_create_command_request.go @@ -0,0 +1,22 @@ +/* + * Twilio - Supersim + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateCommandRequest struct for CreateCommandRequest +type CreateCommandRequest struct { + // The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is POST. + CallbackMethod string `json:"CallbackMethod,omitempty"` + // The URL we should call using the `callback_method` after we have sent the command. + CallbackUrl string `json:"CallbackUrl,omitempty"` + // The message body of the command. + Command string `json:"Command"` + // The `sid` or `unique_name` of the [SIM](https://www.twilio.com/docs/wireless/api/sim-resource) to send the Command to. + Sim string `json:"Sim"` +} diff --git a/rest/supersim/v1/model_create_fleet_request.go b/rest/supersim/v1/model_create_fleet_request.go new file mode 100644 index 000000000..d13b94b7b --- /dev/null +++ b/rest/supersim/v1/model_create_fleet_request.go @@ -0,0 +1,28 @@ +/* + * Twilio - Supersim + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateFleetRequest struct for CreateFleetRequest +type CreateFleetRequest struct { + // Defines whether SIMs in the Fleet are capable of sending and receiving machine-to-machine SMS via Commands. Defaults to `true`. + CommandsEnabled bool `json:"CommandsEnabled,omitempty"` + // A string representing the HTTP method to use when making a request to `commands_url`. Can be one of `POST` or `GET`. Defaults to `POST`. + CommandsMethod string `json:"CommandsMethod,omitempty"` + // The URL that will receive a webhook when a SIM in the Fleet originates a machine-to-machine SMS via Commands. Your server should respond with an HTTP status code in the 200 range; any response body will be ignored. + CommandsUrl string `json:"CommandsUrl,omitempty"` + // Defines whether SIMs in the Fleet are capable of using 2G/3G/4G/LTE/CAT-M data connectivity. Defaults to `true`. + DataEnabled bool `json:"DataEnabled,omitempty"` + // The total data usage (download and upload combined) in Megabytes that each Sim resource assigned to the Fleet resource can consume during a billing period (normally one month). Value must be between 1MB (1) and 2TB (2,000,000). Defaults to 1GB (1,000). + DataLimit int32 `json:"DataLimit,omitempty"` + // The SID or unique name of the Network Access Profile that will control which cellular networks the Fleet's SIMs can connect to. + NetworkAccessProfile string `json:"NetworkAccessProfile"` + // 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. + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/supersim/v1/model_create_network_access_profile_network_request.go b/rest/supersim/v1/model_create_network_access_profile_network_request.go new file mode 100644 index 000000000..d8f95cf7b --- /dev/null +++ b/rest/supersim/v1/model_create_network_access_profile_network_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Supersim + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateNetworkAccessProfileNetworkRequest struct for CreateNetworkAccessProfileNetworkRequest +type CreateNetworkAccessProfileNetworkRequest struct { + // The SID of the Network resource to be added to the Network Access Profile resource. + Network string `json:"Network"` +} diff --git a/rest/supersim/v1/model_create_network_access_profile_request.go b/rest/supersim/v1/model_create_network_access_profile_request.go new file mode 100644 index 000000000..eb8fcedd7 --- /dev/null +++ b/rest/supersim/v1/model_create_network_access_profile_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Supersim + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateNetworkAccessProfileRequest struct for CreateNetworkAccessProfileRequest +type CreateNetworkAccessProfileRequest struct { + // List of Network SIDs that this Network Access Profile will allow connections to. + Networks []string `json:"Networks,omitempty"` + // 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. + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/supersim/v1/model_supersim_v1_command.go b/rest/supersim/v1/model_supersim_v1_command.go new file mode 100644 index 000000000..462d77938 --- /dev/null +++ b/rest/supersim/v1/model_supersim_v1_command.go @@ -0,0 +1,26 @@ +/* + * Twilio - Supersim + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// SupersimV1Command struct for SupersimV1Command +type SupersimV1Command struct { + AccountSid string `json:"account_sid,omitempty"` + Command string `json:"command,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Direction string `json:"direction,omitempty"` + Sid string `json:"sid,omitempty"` + SimSid string `json:"sim_sid,omitempty"` + Status string `json:"status,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/supersim/v1/model_supersim_v1_command_read_response.go b/rest/supersim/v1/model_supersim_v1_command_read_response.go new file mode 100644 index 000000000..abe2e2af4 --- /dev/null +++ b/rest/supersim/v1/model_supersim_v1_command_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Supersim + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// SupersimV1CommandReadResponse struct for SupersimV1CommandReadResponse +type SupersimV1CommandReadResponse struct { + Commands []SupersimV1Command `json:"commands,omitempty"` + Meta SupersimV1CommandReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/supersim/v1/model_supersim_v1_command_read_response_meta.go b/rest/supersim/v1/model_supersim_v1_command_read_response_meta.go new file mode 100644 index 000000000..e9b805d5f --- /dev/null +++ b/rest/supersim/v1/model_supersim_v1_command_read_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Supersim + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// SupersimV1CommandReadResponseMeta struct for SupersimV1CommandReadResponseMeta +type SupersimV1CommandReadResponseMeta struct { + FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` + NextPageUrl string `json:"next_page_url,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUrl string `json:"previous_page_url,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/supersim/v1/model_supersim_v1_fleet.go b/rest/supersim/v1/model_supersim_v1_fleet.go new file mode 100644 index 000000000..d6f4dd57f --- /dev/null +++ b/rest/supersim/v1/model_supersim_v1_fleet.go @@ -0,0 +1,30 @@ +/* + * Twilio - Supersim + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// SupersimV1Fleet struct for SupersimV1Fleet +type SupersimV1Fleet struct { + AccountSid string `json:"account_sid,omitempty"` + CommandsEnabled bool `json:"commands_enabled,omitempty"` + CommandsMethod string `json:"commands_method,omitempty"` + CommandsUrl string `json:"commands_url,omitempty"` + DataEnabled bool `json:"data_enabled,omitempty"` + DataLimit int32 `json:"data_limit,omitempty"` + DataMetering string `json:"data_metering,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + NetworkAccessProfileSid string `json:"network_access_profile_sid,omitempty"` + Sid string `json:"sid,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/supersim/v1/model_supersim_v1_fleet_read_response.go b/rest/supersim/v1/model_supersim_v1_fleet_read_response.go new file mode 100644 index 000000000..8616914fe --- /dev/null +++ b/rest/supersim/v1/model_supersim_v1_fleet_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Supersim + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// SupersimV1FleetReadResponse struct for SupersimV1FleetReadResponse +type SupersimV1FleetReadResponse struct { + Fleets []SupersimV1Fleet `json:"fleets,omitempty"` + Meta SupersimV1CommandReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/supersim/v1/model_supersim_v1_network.go b/rest/supersim/v1/model_supersim_v1_network.go new file mode 100644 index 000000000..40a027e66 --- /dev/null +++ b/rest/supersim/v1/model_supersim_v1_network.go @@ -0,0 +1,19 @@ +/* + * Twilio - Supersim + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// SupersimV1Network struct for SupersimV1Network +type SupersimV1Network struct { + FriendlyName string `json:"friendly_name,omitempty"` + Identifiers []map[string]interface{} `json:"identifiers,omitempty"` + IsoCountry string `json:"iso_country,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/supersim/v1/model_supersim_v1_network_access_profile.go b/rest/supersim/v1/model_supersim_v1_network_access_profile.go new file mode 100644 index 000000000..dcc89cc2d --- /dev/null +++ b/rest/supersim/v1/model_supersim_v1_network_access_profile.go @@ -0,0 +1,24 @@ +/* + * Twilio - Supersim + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// SupersimV1NetworkAccessProfile struct for SupersimV1NetworkAccessProfile +type SupersimV1NetworkAccessProfile struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Sid string `json:"sid,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/supersim/v1/model_supersim_v1_network_access_profile_network_access_profile_network.go b/rest/supersim/v1/model_supersim_v1_network_access_profile_network_access_profile_network.go new file mode 100644 index 000000000..0ffc9ff40 --- /dev/null +++ b/rest/supersim/v1/model_supersim_v1_network_access_profile_network_access_profile_network.go @@ -0,0 +1,20 @@ +/* + * Twilio - Supersim + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork struct for SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork +type SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork struct { + FriendlyName string `json:"friendly_name,omitempty"` + Identifiers []map[string]interface{} `json:"identifiers,omitempty"` + IsoCountry string `json:"iso_country,omitempty"` + NetworkAccessProfileSid string `json:"network_access_profile_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/supersim/v1/model_supersim_v1_network_access_profile_network_access_profile_network_read_response.go b/rest/supersim/v1/model_supersim_v1_network_access_profile_network_access_profile_network_read_response.go new file mode 100644 index 000000000..73019f975 --- /dev/null +++ b/rest/supersim/v1/model_supersim_v1_network_access_profile_network_access_profile_network_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Supersim + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse struct for SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse +type SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse struct { + Meta SupersimV1CommandReadResponseMeta `json:"meta,omitempty"` + Networks []SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork `json:"networks,omitempty"` +} diff --git a/rest/supersim/v1/model_supersim_v1_network_access_profile_read_response.go b/rest/supersim/v1/model_supersim_v1_network_access_profile_read_response.go new file mode 100644 index 000000000..fbf90ca32 --- /dev/null +++ b/rest/supersim/v1/model_supersim_v1_network_access_profile_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Supersim + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// SupersimV1NetworkAccessProfileReadResponse struct for SupersimV1NetworkAccessProfileReadResponse +type SupersimV1NetworkAccessProfileReadResponse struct { + Meta SupersimV1CommandReadResponseMeta `json:"meta,omitempty"` + NetworkAccessProfiles []SupersimV1NetworkAccessProfile `json:"network_access_profiles,omitempty"` +} diff --git a/rest/supersim/v1/model_supersim_v1_network_read_response.go b/rest/supersim/v1/model_supersim_v1_network_read_response.go new file mode 100644 index 000000000..c41c2a2cd --- /dev/null +++ b/rest/supersim/v1/model_supersim_v1_network_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Supersim + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// SupersimV1NetworkReadResponse struct for SupersimV1NetworkReadResponse +type SupersimV1NetworkReadResponse struct { + Meta SupersimV1CommandReadResponseMeta `json:"meta,omitempty"` + Networks []SupersimV1Network `json:"networks,omitempty"` +} diff --git a/rest/supersim/v1/model_supersim_v1_sim.go b/rest/supersim/v1/model_supersim_v1_sim.go new file mode 100644 index 000000000..26b740d11 --- /dev/null +++ b/rest/supersim/v1/model_supersim_v1_sim.go @@ -0,0 +1,26 @@ +/* + * Twilio - Supersim + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// SupersimV1Sim struct for SupersimV1Sim +type SupersimV1Sim struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FleetSid string `json:"fleet_sid,omitempty"` + Iccid string `json:"iccid,omitempty"` + Sid string `json:"sid,omitempty"` + Status string `json:"status,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/supersim/v1/model_supersim_v1_sim_read_response.go b/rest/supersim/v1/model_supersim_v1_sim_read_response.go new file mode 100644 index 000000000..bdd8e9067 --- /dev/null +++ b/rest/supersim/v1/model_supersim_v1_sim_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Supersim + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// SupersimV1SimReadResponse struct for SupersimV1SimReadResponse +type SupersimV1SimReadResponse struct { + Meta SupersimV1CommandReadResponseMeta `json:"meta,omitempty"` + Sims []SupersimV1Sim `json:"sims,omitempty"` +} diff --git a/rest/supersim/v1/model_supersim_v1_usage_record.go b/rest/supersim/v1/model_supersim_v1_usage_record.go new file mode 100644 index 000000000..4f96d2250 --- /dev/null +++ b/rest/supersim/v1/model_supersim_v1_usage_record.go @@ -0,0 +1,23 @@ +/* + * Twilio - Supersim + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// SupersimV1UsageRecord struct for SupersimV1UsageRecord +type SupersimV1UsageRecord struct { + AccountSid string `json:"account_sid,omitempty"` + DataDownload int32 `json:"data_download,omitempty"` + DataTotal int32 `json:"data_total,omitempty"` + DataUpload int32 `json:"data_upload,omitempty"` + FleetSid string `json:"fleet_sid,omitempty"` + IsoCountry string `json:"iso_country,omitempty"` + NetworkSid string `json:"network_sid,omitempty"` + Period map[string]interface{} `json:"period,omitempty"` + SimSid string `json:"sim_sid,omitempty"` +} diff --git a/rest/supersim/v1/model_supersim_v1_usage_record_read_response.go b/rest/supersim/v1/model_supersim_v1_usage_record_read_response.go new file mode 100644 index 000000000..ee0b71d2f --- /dev/null +++ b/rest/supersim/v1/model_supersim_v1_usage_record_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Supersim + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// SupersimV1UsageRecordReadResponse struct for SupersimV1UsageRecordReadResponse +type SupersimV1UsageRecordReadResponse struct { + Meta SupersimV1CommandReadResponseMeta `json:"meta,omitempty"` + UsageRecords []SupersimV1UsageRecord `json:"usage_records,omitempty"` +} diff --git a/rest/supersim/v1/model_update_fleet_request.go b/rest/supersim/v1/model_update_fleet_request.go new file mode 100644 index 000000000..6fea3b09a --- /dev/null +++ b/rest/supersim/v1/model_update_fleet_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Supersim + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateFleetRequest struct for UpdateFleetRequest +type UpdateFleetRequest struct { + // The SID or unique name of the Network Access Profile that will control which cellular networks the Fleet's SIMs can connect to. + NetworkAccessProfile string `json:"NetworkAccessProfile,omitempty"` + // 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. + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/supersim/v1/model_update_network_access_profile_request.go b/rest/supersim/v1/model_update_network_access_profile_request.go new file mode 100644 index 000000000..00e353669 --- /dev/null +++ b/rest/supersim/v1/model_update_network_access_profile_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Supersim + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateNetworkAccessProfileRequest struct for UpdateNetworkAccessProfileRequest +type UpdateNetworkAccessProfileRequest struct { + // The new unique name of the Network Access Profile. + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/supersim/v1/model_update_sim_request.go b/rest/supersim/v1/model_update_sim_request.go new file mode 100644 index 000000000..0ed330041 --- /dev/null +++ b/rest/supersim/v1/model_update_sim_request.go @@ -0,0 +1,26 @@ +/* + * Twilio - Supersim + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateSimRequest struct for UpdateSimRequest +type UpdateSimRequest struct { + // The SID of the Account to which the Sim resource should belong. The Account SID can only be that of the requesting Account or that of a Subaccount of the requesting Account. Only valid when the Sim resource's status is new. + AccountSid string `json:"AccountSid,omitempty"` + // The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is POST. + CallbackMethod string `json:"CallbackMethod,omitempty"` + // The URL we should call using the `callback_method` after an asynchronous update has finished. + CallbackUrl string `json:"CallbackUrl,omitempty"` + // The SID or unique name of the Fleet to which the SIM resource should be assigned. + Fleet string `json:"Fleet,omitempty"` + // The new status of the resource. Can be: `ready`, `active`, or `inactive`. See the [Super SIM Status Values](https://www.twilio.com/docs/iot/supersim/api/sim-resource#status-values) for more info. + Status string `json:"Status,omitempty"` + // 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. + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/supersim/v1/response.go b/rest/supersim/v1/response.go new file mode 100644 index 000000000..376d599bf --- /dev/null +++ b/rest/supersim/v1/response.go @@ -0,0 +1,47 @@ +/* + * Twilio - Supersim + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// Response returns a new APIResponse object. +func Response(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// ResponseWithError returns a new APIResponse object with the provided error message. +func ResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/rest/sync/v1/.openapi-generator-ignore b/rest/sync/v1/.openapi-generator-ignore new file mode 100644 index 000000000..7484ee590 --- /dev/null +++ b/rest/sync/v1/.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/rest/sync/v1/.openapi-generator/VERSION b/rest/sync/v1/.openapi-generator/VERSION new file mode 100644 index 000000000..ecedc98d1 --- /dev/null +++ b/rest/sync/v1/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.3.1 \ No newline at end of file diff --git a/rest/sync/v1/README.md b/rest/sync/v1/README.md new file mode 100644 index 000000000..c37c0bdbe --- /dev/null +++ b/rest/sync/v1/README.md @@ -0,0 +1,150 @@ +# Go API client for openapi + +This is the public Twilio REST API. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 5.15.0 +- Package version: 1.0.0 +- Build package: com.twilio.oai.TwilioGoGenerator +For more information, please visit [https://support.twilio.com](https://support.twilio.com) + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import "./openapi" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**CreateDocument**](docs/DefaultApi.md#createdocument) | **Post** /v1/Services/{ServiceSid}/Documents | +*DefaultApi* | [**CreateService**](docs/DefaultApi.md#createservice) | **Post** /v1/Services | +*DefaultApi* | [**CreateStreamMessage**](docs/DefaultApi.md#createstreammessage) | **Post** /v1/Services/{ServiceSid}/Streams/{StreamSid}/Messages | +*DefaultApi* | [**CreateSyncList**](docs/DefaultApi.md#createsynclist) | **Post** /v1/Services/{ServiceSid}/Lists | +*DefaultApi* | [**CreateSyncListItem**](docs/DefaultApi.md#createsynclistitem) | **Post** /v1/Services/{ServiceSid}/Lists/{ListSid}/Items | +*DefaultApi* | [**CreateSyncMap**](docs/DefaultApi.md#createsyncmap) | **Post** /v1/Services/{ServiceSid}/Maps | +*DefaultApi* | [**CreateSyncMapItem**](docs/DefaultApi.md#createsyncmapitem) | **Post** /v1/Services/{ServiceSid}/Maps/{MapSid}/Items | +*DefaultApi* | [**CreateSyncStream**](docs/DefaultApi.md#createsyncstream) | **Post** /v1/Services/{ServiceSid}/Streams | +*DefaultApi* | [**DeleteDocument**](docs/DefaultApi.md#deletedocument) | **Delete** /v1/Services/{ServiceSid}/Documents/{Sid} | +*DefaultApi* | [**DeleteDocumentPermission**](docs/DefaultApi.md#deletedocumentpermission) | **Delete** /v1/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity} | +*DefaultApi* | [**DeleteService**](docs/DefaultApi.md#deleteservice) | **Delete** /v1/Services/{Sid} | +*DefaultApi* | [**DeleteSyncList**](docs/DefaultApi.md#deletesynclist) | **Delete** /v1/Services/{ServiceSid}/Lists/{Sid} | +*DefaultApi* | [**DeleteSyncListItem**](docs/DefaultApi.md#deletesynclistitem) | **Delete** /v1/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index} | +*DefaultApi* | [**DeleteSyncListPermission**](docs/DefaultApi.md#deletesynclistpermission) | **Delete** /v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity} | +*DefaultApi* | [**DeleteSyncMap**](docs/DefaultApi.md#deletesyncmap) | **Delete** /v1/Services/{ServiceSid}/Maps/{Sid} | +*DefaultApi* | [**DeleteSyncMapItem**](docs/DefaultApi.md#deletesyncmapitem) | **Delete** /v1/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key} | +*DefaultApi* | [**DeleteSyncMapPermission**](docs/DefaultApi.md#deletesyncmappermission) | **Delete** /v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity} | +*DefaultApi* | [**DeleteSyncStream**](docs/DefaultApi.md#deletesyncstream) | **Delete** /v1/Services/{ServiceSid}/Streams/{Sid} | +*DefaultApi* | [**FetchDocument**](docs/DefaultApi.md#fetchdocument) | **Get** /v1/Services/{ServiceSid}/Documents/{Sid} | +*DefaultApi* | [**FetchDocumentPermission**](docs/DefaultApi.md#fetchdocumentpermission) | **Get** /v1/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity} | +*DefaultApi* | [**FetchService**](docs/DefaultApi.md#fetchservice) | **Get** /v1/Services/{Sid} | +*DefaultApi* | [**FetchSyncList**](docs/DefaultApi.md#fetchsynclist) | **Get** /v1/Services/{ServiceSid}/Lists/{Sid} | +*DefaultApi* | [**FetchSyncListItem**](docs/DefaultApi.md#fetchsynclistitem) | **Get** /v1/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index} | +*DefaultApi* | [**FetchSyncListPermission**](docs/DefaultApi.md#fetchsynclistpermission) | **Get** /v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity} | +*DefaultApi* | [**FetchSyncMap**](docs/DefaultApi.md#fetchsyncmap) | **Get** /v1/Services/{ServiceSid}/Maps/{Sid} | +*DefaultApi* | [**FetchSyncMapItem**](docs/DefaultApi.md#fetchsyncmapitem) | **Get** /v1/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key} | +*DefaultApi* | [**FetchSyncMapPermission**](docs/DefaultApi.md#fetchsyncmappermission) | **Get** /v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity} | +*DefaultApi* | [**FetchSyncStream**](docs/DefaultApi.md#fetchsyncstream) | **Get** /v1/Services/{ServiceSid}/Streams/{Sid} | +*DefaultApi* | [**ListDocument**](docs/DefaultApi.md#listdocument) | **Get** /v1/Services/{ServiceSid}/Documents | +*DefaultApi* | [**ListDocumentPermission**](docs/DefaultApi.md#listdocumentpermission) | **Get** /v1/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions | +*DefaultApi* | [**ListService**](docs/DefaultApi.md#listservice) | **Get** /v1/Services | +*DefaultApi* | [**ListSyncList**](docs/DefaultApi.md#listsynclist) | **Get** /v1/Services/{ServiceSid}/Lists | +*DefaultApi* | [**ListSyncListItem**](docs/DefaultApi.md#listsynclistitem) | **Get** /v1/Services/{ServiceSid}/Lists/{ListSid}/Items | +*DefaultApi* | [**ListSyncListPermission**](docs/DefaultApi.md#listsynclistpermission) | **Get** /v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions | +*DefaultApi* | [**ListSyncMap**](docs/DefaultApi.md#listsyncmap) | **Get** /v1/Services/{ServiceSid}/Maps | +*DefaultApi* | [**ListSyncMapItem**](docs/DefaultApi.md#listsyncmapitem) | **Get** /v1/Services/{ServiceSid}/Maps/{MapSid}/Items | +*DefaultApi* | [**ListSyncMapPermission**](docs/DefaultApi.md#listsyncmappermission) | **Get** /v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions | +*DefaultApi* | [**ListSyncStream**](docs/DefaultApi.md#listsyncstream) | **Get** /v1/Services/{ServiceSid}/Streams | +*DefaultApi* | [**UpdateDocument**](docs/DefaultApi.md#updatedocument) | **Post** /v1/Services/{ServiceSid}/Documents/{Sid} | +*DefaultApi* | [**UpdateDocumentPermission**](docs/DefaultApi.md#updatedocumentpermission) | **Post** /v1/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity} | +*DefaultApi* | [**UpdateService**](docs/DefaultApi.md#updateservice) | **Post** /v1/Services/{Sid} | +*DefaultApi* | [**UpdateSyncList**](docs/DefaultApi.md#updatesynclist) | **Post** /v1/Services/{ServiceSid}/Lists/{Sid} | +*DefaultApi* | [**UpdateSyncListItem**](docs/DefaultApi.md#updatesynclistitem) | **Post** /v1/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index} | +*DefaultApi* | [**UpdateSyncListPermission**](docs/DefaultApi.md#updatesynclistpermission) | **Post** /v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity} | +*DefaultApi* | [**UpdateSyncMap**](docs/DefaultApi.md#updatesyncmap) | **Post** /v1/Services/{ServiceSid}/Maps/{Sid} | +*DefaultApi* | [**UpdateSyncMapItem**](docs/DefaultApi.md#updatesyncmapitem) | **Post** /v1/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key} | +*DefaultApi* | [**UpdateSyncMapPermission**](docs/DefaultApi.md#updatesyncmappermission) | **Post** /v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity} | +*DefaultApi* | [**UpdateSyncStream**](docs/DefaultApi.md#updatesyncstream) | **Post** /v1/Services/{ServiceSid}/Streams/{Sid} | + + +## Documentation For Models + + - [CreateDocumentRequest](docs/CreateDocumentRequest.md) + - [CreateServiceRequest](docs/CreateServiceRequest.md) + - [CreateStreamMessageRequest](docs/CreateStreamMessageRequest.md) + - [CreateSyncListItemRequest](docs/CreateSyncListItemRequest.md) + - [CreateSyncListRequest](docs/CreateSyncListRequest.md) + - [CreateSyncMapItemRequest](docs/CreateSyncMapItemRequest.md) + - [CreateSyncMapRequest](docs/CreateSyncMapRequest.md) + - [CreateSyncStreamRequest](docs/CreateSyncStreamRequest.md) + - [SyncV1Service](docs/SyncV1Service.md) + - [SyncV1ServiceDocument](docs/SyncV1ServiceDocument.md) + - [SyncV1ServiceDocumentDocumentPermission](docs/SyncV1ServiceDocumentDocumentPermission.md) + - [SyncV1ServiceDocumentDocumentPermissionReadResponse](docs/SyncV1ServiceDocumentDocumentPermissionReadResponse.md) + - [SyncV1ServiceDocumentReadResponse](docs/SyncV1ServiceDocumentReadResponse.md) + - [SyncV1ServiceReadResponse](docs/SyncV1ServiceReadResponse.md) + - [SyncV1ServiceReadResponseMeta](docs/SyncV1ServiceReadResponseMeta.md) + - [SyncV1ServiceSyncList](docs/SyncV1ServiceSyncList.md) + - [SyncV1ServiceSyncListReadResponse](docs/SyncV1ServiceSyncListReadResponse.md) + - [SyncV1ServiceSyncListSyncListItem](docs/SyncV1ServiceSyncListSyncListItem.md) + - [SyncV1ServiceSyncListSyncListItemReadResponse](docs/SyncV1ServiceSyncListSyncListItemReadResponse.md) + - [SyncV1ServiceSyncListSyncListPermission](docs/SyncV1ServiceSyncListSyncListPermission.md) + - [SyncV1ServiceSyncListSyncListPermissionReadResponse](docs/SyncV1ServiceSyncListSyncListPermissionReadResponse.md) + - [SyncV1ServiceSyncMap](docs/SyncV1ServiceSyncMap.md) + - [SyncV1ServiceSyncMapReadResponse](docs/SyncV1ServiceSyncMapReadResponse.md) + - [SyncV1ServiceSyncMapSyncMapItem](docs/SyncV1ServiceSyncMapSyncMapItem.md) + - [SyncV1ServiceSyncMapSyncMapItemReadResponse](docs/SyncV1ServiceSyncMapSyncMapItemReadResponse.md) + - [SyncV1ServiceSyncMapSyncMapPermission](docs/SyncV1ServiceSyncMapSyncMapPermission.md) + - [SyncV1ServiceSyncMapSyncMapPermissionReadResponse](docs/SyncV1ServiceSyncMapSyncMapPermissionReadResponse.md) + - [SyncV1ServiceSyncStream](docs/SyncV1ServiceSyncStream.md) + - [SyncV1ServiceSyncStreamReadResponse](docs/SyncV1ServiceSyncStreamReadResponse.md) + - [SyncV1ServiceSyncStreamStreamMessage](docs/SyncV1ServiceSyncStreamStreamMessage.md) + - [UpdateDocumentPermissionRequest](docs/UpdateDocumentPermissionRequest.md) + - [UpdateDocumentRequest](docs/UpdateDocumentRequest.md) + - [UpdateServiceRequest](docs/UpdateServiceRequest.md) + - [UpdateSyncListItemRequest](docs/UpdateSyncListItemRequest.md) + - [UpdateSyncListPermissionRequest](docs/UpdateSyncListPermissionRequest.md) + - [UpdateSyncListRequest](docs/UpdateSyncListRequest.md) + - [UpdateSyncMapItemRequest](docs/UpdateSyncMapItemRequest.md) + - [UpdateSyncMapPermissionRequest](docs/UpdateSyncMapPermissionRequest.md) + - [UpdateSyncMapRequest](docs/UpdateSyncMapRequest.md) + - [UpdateSyncStreamRequest](docs/UpdateSyncStreamRequest.md) + + +## Documentation For Authorization + + + +## accountSid_authToken + +- **Type**: HTTP basic authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ + UserName: "username", + Password: "password", +}) +r, err := client.Service.Operation(auth, args) +``` + + +## Author + +support@twilio.com + diff --git a/rest/sync/v1/api_default.go b/rest/sync/v1/api_default.go new file mode 100644 index 000000000..7b174ee0c --- /dev/null +++ b/rest/sync/v1/api_default.go @@ -0,0 +1,2079 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "" +) + +type DefaultApiService struct { + baseURL string + client *twilio.Client +} + +func NewDefaultApiService(client *twilio.Client) *DefaultApiService { + return &DefaultApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} +// CreateDocumentParams Optional parameters for the method 'CreateDocument' +type CreateDocumentParams struct { + Data *map[string]interface{} `json:"Data,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +CreateDocument Method for CreateDocument + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the new Document resource in. + * @param optional nil or *CreateDocumentOpts - Optional Parameters: + * @param "Data" (map[string]interface{}) - A JSON string that represents an arbitrary, schema-less object that the Sync Document stores. Can be up to 16KB in length. + * @param "Ttl" (int32) - How long, in seconds, before the Sync Document expires and is deleted (the Sync Document's time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync Document does not expire. The Sync Document will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. + * @param "UniqueName" (string) - An application-defined string that uniquely identifies the Sync Document +@return SyncV1ServiceDocument +*/ +func (c *DefaultApiService) CreateDocument(serviceSid string, params *CreateDocumentParams) (*SyncV1ServiceDocument, error) { + path := "/v1/Services/{ServiceSid}/Documents" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Data != nil { + v, err := json.Marshal(params.Data) + + if err != nil { + return nil, err + } + + data.Set("Data", string(v)) + } + if params != nil && params.Ttl != nil { + data.Set("Ttl", string(*params.Ttl)) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceDocument{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateServiceParams Optional parameters for the method 'CreateService' +type CreateServiceParams struct { + AclEnabled *bool `json:"AclEnabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + ReachabilityDebouncingEnabled *bool `json:"ReachabilityDebouncingEnabled,omitempty"` + ReachabilityDebouncingWindow *int32 `json:"ReachabilityDebouncingWindow,omitempty"` + ReachabilityWebhooksEnabled *bool `json:"ReachabilityWebhooksEnabled,omitempty"` + WebhookUrl *string `json:"WebhookUrl,omitempty"` + WebhooksFromRestEnabled *bool `json:"WebhooksFromRestEnabled,omitempty"` +} + +/* +CreateService Method for CreateService + * @param optional nil or *CreateServiceOpts - Optional Parameters: + * @param "AclEnabled" (bool) - Whether token identities in the Service must be granted access to Sync objects by using the [Permissions](https://www.twilio.com/docs/sync/api/sync-permissions) resource. + * @param "FriendlyName" (string) - A string that you assign to describe the resource. + * @param "ReachabilityDebouncingEnabled" (bool) - Whether every `endpoint_disconnected` event should occur after a configurable delay. The default is `false`, where the `endpoint_disconnected` event occurs immediately after disconnection. When `true`, intervening reconnections can prevent the `endpoint_disconnected` event. + * @param "ReachabilityDebouncingWindow" (int32) - The reachability event delay in milliseconds if `reachability_debouncing_enabled` = `true`. Must be between 1,000 and 30,000 and defaults to 5,000. This is the number of milliseconds after the last running client disconnects, and a Sync identity is declared offline, before the `webhook_url` is called if all endpoints remain offline. A reconnection from the same identity by any endpoint during this interval prevents the call to `webhook_url`. + * @param "ReachabilityWebhooksEnabled" (bool) - Whether the service instance should call `webhook_url` when client endpoints connect to Sync. The default is `false`. + * @param "WebhookUrl" (string) - The URL we should call when Sync objects are manipulated. + * @param "WebhooksFromRestEnabled" (bool) - Whether the Service instance should call `webhook_url` when the REST API is used to update Sync objects. The default is `false`. +@return SyncV1Service +*/ +func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*SyncV1Service, error) { + path := "/v1/Services" + + data := url.Values{} + headers := 0 + + if params != nil && params.AclEnabled != nil { + data.Set("AclEnabled", string(*params.AclEnabled)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.ReachabilityDebouncingEnabled != nil { + data.Set("ReachabilityDebouncingEnabled", string(*params.ReachabilityDebouncingEnabled)) + } + if params != nil && params.ReachabilityDebouncingWindow != nil { + data.Set("ReachabilityDebouncingWindow", string(*params.ReachabilityDebouncingWindow)) + } + if params != nil && params.ReachabilityWebhooksEnabled != nil { + data.Set("ReachabilityWebhooksEnabled", string(*params.ReachabilityWebhooksEnabled)) + } + if params != nil && params.WebhookUrl != nil { + data.Set("WebhookUrl", *params.WebhookUrl) + } + if params != nil && params.WebhooksFromRestEnabled != nil { + data.Set("WebhooksFromRestEnabled", string(*params.WebhooksFromRestEnabled)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateStreamMessageParams Optional parameters for the method 'CreateStreamMessage' +type CreateStreamMessageParams struct { + Data *map[string]interface{} `json:"Data,omitempty"` +} + +/* +CreateStreamMessage Method for CreateStreamMessage +Create a new Stream Message. + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the new Stream Message in. + * @param streamSid The SID of the Sync Stream to create the new Stream Message resource for. + * @param optional nil or *CreateStreamMessageOpts - Optional Parameters: + * @param "Data" (map[string]interface{}) - A JSON string that represents an arbitrary, schema-less object that makes up the Stream Message body. Can be up to 4KB in length. +@return SyncV1ServiceSyncStreamStreamMessage +*/ +func (c *DefaultApiService) CreateStreamMessage(serviceSid string, streamSid string, params *CreateStreamMessageParams) (*SyncV1ServiceSyncStreamStreamMessage, error) { + path := "/v1/Services/{ServiceSid}/Streams/{StreamSid}/Messages" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"StreamSid"+"}", streamSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Data != nil { + v, err := json.Marshal(params.Data) + + if err != nil { + return nil, err + } + + data.Set("Data", string(v)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceSyncStreamStreamMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateSyncListParams Optional parameters for the method 'CreateSyncList' +type CreateSyncListParams struct { + CollectionTtl *int32 `json:"CollectionTtl,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +CreateSyncList Method for CreateSyncList + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the new Sync List in. + * @param optional nil or *CreateSyncListOpts - Optional Parameters: + * @param "CollectionTtl" (int32) - How long, in seconds, before the Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. + * @param "Ttl" (int32) - Alias for collection_ttl. If both are provided, this value is ignored. + * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. This value must be unique within its Service and it can be up to 320 characters long. The `unique_name` value can be used as an alternative to the `sid` in the URL path to address the resource. +@return SyncV1ServiceSyncList +*/ +func (c *DefaultApiService) CreateSyncList(serviceSid string, params *CreateSyncListParams) (*SyncV1ServiceSyncList, error) { + path := "/v1/Services/{ServiceSid}/Lists" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CollectionTtl != nil { + data.Set("CollectionTtl", string(*params.CollectionTtl)) + } + if params != nil && params.Ttl != nil { + data.Set("Ttl", string(*params.Ttl)) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceSyncList{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateSyncListItemParams Optional parameters for the method 'CreateSyncListItem' +type CreateSyncListItemParams struct { + CollectionTtl *int32 `json:"CollectionTtl,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` + ItemTtl *int32 `json:"ItemTtl,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` +} + +/* +CreateSyncListItem Method for CreateSyncListItem + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the new List Item in. + * @param listSid The SID of the Sync List to add the new List Item to. Can be the Sync List resource's `sid` or its `unique_name`. + * @param optional nil or *CreateSyncListItemOpts - Optional Parameters: + * @param "CollectionTtl" (int32) - How long, in seconds, before the List Item's parent Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. + * @param "Data" (map[string]interface{}) - A JSON string that represents an arbitrary, schema-less object that the List Item stores. Can be up to 16KB in length. + * @param "ItemTtl" (int32) - How long, in seconds, before the List Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the List Item does not expire. The List Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. + * @param "Ttl" (int32) - An alias for `item_ttl`. If both parameters are provided, this value is ignored. +@return SyncV1ServiceSyncListSyncListItem +*/ +func (c *DefaultApiService) CreateSyncListItem(serviceSid string, listSid string, params *CreateSyncListItemParams) (*SyncV1ServiceSyncListSyncListItem, error) { + path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Items" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CollectionTtl != nil { + data.Set("CollectionTtl", string(*params.CollectionTtl)) + } + if params != nil && params.Data != nil { + v, err := json.Marshal(params.Data) + + if err != nil { + return nil, err + } + + data.Set("Data", string(v)) + } + if params != nil && params.ItemTtl != nil { + data.Set("ItemTtl", string(*params.ItemTtl)) + } + if params != nil && params.Ttl != nil { + data.Set("Ttl", string(*params.Ttl)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceSyncListSyncListItem{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateSyncMapParams Optional parameters for the method 'CreateSyncMap' +type CreateSyncMapParams struct { + CollectionTtl *int32 `json:"CollectionTtl,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +CreateSyncMap Method for CreateSyncMap + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the Sync Map in. + * @param optional nil or *CreateSyncMapOpts - Optional Parameters: + * @param "CollectionTtl" (int32) - How long, in seconds, before the Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync Map does not expire. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. + * @param "Ttl" (int32) - An alias for `collection_ttl`. If both parameters are provided, this value is ignored. + * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. It can be used as an alternative to the `sid` in the URL path to address the resource. +@return SyncV1ServiceSyncMap +*/ +func (c *DefaultApiService) CreateSyncMap(serviceSid string, params *CreateSyncMapParams) (*SyncV1ServiceSyncMap, error) { + path := "/v1/Services/{ServiceSid}/Maps" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CollectionTtl != nil { + data.Set("CollectionTtl", string(*params.CollectionTtl)) + } + if params != nil && params.Ttl != nil { + data.Set("Ttl", string(*params.Ttl)) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceSyncMap{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateSyncMapItemParams Optional parameters for the method 'CreateSyncMapItem' +type CreateSyncMapItemParams struct { + CollectionTtl *int32 `json:"CollectionTtl,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` + ItemTtl *int32 `json:"ItemTtl,omitempty"` + Key *string `json:"Key,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` +} + +/* +CreateSyncMapItem Method for CreateSyncMapItem + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the Map Item in. + * @param mapSid The SID of the Sync Map to add the new Map Item to. + * @param optional nil or *CreateSyncMapItemOpts - Optional Parameters: + * @param "CollectionTtl" (int32) - How long, in seconds, before the Map Item's parent Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync Map does not expire. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. + * @param "Data" (map[string]interface{}) - A JSON string that represents an arbitrary, schema-less object that the Map Item stores. Can be up to 16KB in length. + * @param "ItemTtl" (int32) - How long, in seconds, before the Map Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Map Item does not expire. The Map Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. + * @param "Key" (string) - The unique, user-defined key for the Map Item. Can be up to 320 characters long. + * @param "Ttl" (int32) - An alias for `item_ttl`. If both parameters are provided, this value is ignored. +@return SyncV1ServiceSyncMapSyncMapItem +*/ +func (c *DefaultApiService) CreateSyncMapItem(serviceSid string, mapSid string, params *CreateSyncMapItemParams) (*SyncV1ServiceSyncMapSyncMapItem, error) { + path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Items" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CollectionTtl != nil { + data.Set("CollectionTtl", string(*params.CollectionTtl)) + } + if params != nil && params.Data != nil { + v, err := json.Marshal(params.Data) + + if err != nil { + return nil, err + } + + data.Set("Data", string(v)) + } + if params != nil && params.ItemTtl != nil { + data.Set("ItemTtl", string(*params.ItemTtl)) + } + if params != nil && params.Key != nil { + data.Set("Key", *params.Key) + } + if params != nil && params.Ttl != nil { + data.Set("Ttl", string(*params.Ttl)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceSyncMapSyncMapItem{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateSyncStreamParams Optional parameters for the method 'CreateSyncStream' +type CreateSyncStreamParams struct { + Ttl *int32 `json:"Ttl,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +CreateSyncStream Method for CreateSyncStream +Create a new Stream. + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the new Stream in. + * @param optional nil or *CreateSyncStreamOpts - Optional Parameters: + * @param "Ttl" (int32) - How long, in seconds, before the Stream expires and is deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Stream does not expire. The Stream will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. + * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. This value must be unique within its Service and it can be up to 320 characters long. The `unique_name` value can be used as an alternative to the `sid` in the URL path to address the resource. +@return SyncV1ServiceSyncStream +*/ +func (c *DefaultApiService) CreateSyncStream(serviceSid string, params *CreateSyncStreamParams) (*SyncV1ServiceSyncStream, error) { + path := "/v1/Services/{ServiceSid}/Streams" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Ttl != nil { + data.Set("Ttl", string(*params.Ttl)) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceSyncStream{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// DeleteDocumentParams Optional parameters for the method 'DeleteDocument' +type DeleteDocumentParams struct { + If-Match *string `json:"If-Match,omitempty"` +} + +/* +DeleteDocument Method for DeleteDocument + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document resource to delete. + * @param sid The SID of the Document resource to delete. + * @param optional nil or *DeleteDocumentOpts - Optional Parameters: + * @param "If-Match" (string) - The If-Match HTTP request header +*/ +func (c *DefaultApiService) DeleteDocument(serviceSid string, sid string, params *DeleteDocumentParams) (error) { + path := "/v1/Services/{ServiceSid}/Documents/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + + if params != nil && params.If-Match != nil { + headers["If-Match"] = *params.If-Match + } + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteDocumentPermission Method for DeleteDocumentPermission +Delete a specific Sync Document Permission. + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document Permission resource to delete. + * @param documentSid The SID of the Sync Document with the Document Permission resource to delete. Can be the Document resource's `sid` or its `unique_name`. + * @param identity The application-defined string that uniquely identifies the User's Document Permission resource to delete. +*/ +func (c *DefaultApiService) DeleteDocumentPermission(serviceSid string, documentSid string, identity string) (error) { + path := "/v1/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"DocumentSid"+"}", documentSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteService Method for DeleteService + * @param sid The SID of the Service resource to delete. +*/ +func (c *DefaultApiService) DeleteService(sid string) (error) { + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteSyncList Method for DeleteSyncList + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List resource to delete. + * @param sid The SID of the Sync List resource to delete. +*/ +func (c *DefaultApiService) DeleteSyncList(serviceSid string, sid string) (error) { + path := "/v1/Services/{ServiceSid}/Lists/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} +// DeleteSyncListItemParams Optional parameters for the method 'DeleteSyncListItem' +type DeleteSyncListItemParams struct { + If-Match *string `json:"If-Match,omitempty"` +} + +/* +DeleteSyncListItem Method for DeleteSyncListItem + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Item resource to delete. + * @param listSid The SID of the Sync List with the Sync List Item resource to delete. Can be the Sync List resource's `sid` or its `unique_name`. + * @param index The index of the Sync List Item resource to delete. + * @param optional nil or *DeleteSyncListItemOpts - Optional Parameters: + * @param "If-Match" (string) - The If-Match HTTP request header +*/ +func (c *DefaultApiService) DeleteSyncListItem(serviceSid string, listSid string, index int32, params *DeleteSyncListItemParams) (error) { + path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + path = strings.Replace(path, "{"+"Index"+"}", index, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + + if params != nil && params.If-Match != nil { + headers["If-Match"] = *params.If-Match + } + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteSyncListPermission Method for DeleteSyncListPermission +Delete a specific Sync List Permission. + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Permission resource to delete. + * @param listSid The SID of the Sync List with the Sync List Permission resource to delete. Can be the Sync List resource's `sid` or its `unique_name`. + * @param identity The application-defined string that uniquely identifies the User's Sync List Permission resource to delete. +*/ +func (c *DefaultApiService) DeleteSyncListPermission(serviceSid string, listSid string, identity string) (error) { + path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteSyncMap Method for DeleteSyncMap + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map resource to delete. + * @param sid The SID of the Sync Map resource to delete. +*/ +func (c *DefaultApiService) DeleteSyncMap(serviceSid string, sid string) (error) { + path := "/v1/Services/{ServiceSid}/Maps/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} +// DeleteSyncMapItemParams Optional parameters for the method 'DeleteSyncMapItem' +type DeleteSyncMapItemParams struct { + If-Match *string `json:"If-Match,omitempty"` +} + +/* +DeleteSyncMapItem Method for DeleteSyncMapItem + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Item resource to delete. + * @param mapSid The SID of the Sync Map with the Sync Map Item resource to delete. Can be the Sync Map's `sid` or its `unique_name`. + * @param key The `key` value of the Sync Map Item resource to delete. + * @param optional nil or *DeleteSyncMapItemOpts - Optional Parameters: + * @param "If-Match" (string) - The If-Match HTTP request header +*/ +func (c *DefaultApiService) DeleteSyncMapItem(serviceSid string, mapSid string, key string, params *DeleteSyncMapItemParams) (error) { + path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + path = strings.Replace(path, "{"+"Key"+"}", key, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + + if params != nil && params.If-Match != nil { + headers["If-Match"] = *params.If-Match + } + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteSyncMapPermission Method for DeleteSyncMapPermission +Delete a specific Sync Map Permission. + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Permission resource to delete. Can be the Service's `sid` value or `default`. + * @param mapSid The SID of the Sync Map with the Sync Map Permission resource to delete. Can be the Sync Map's `sid` or its `unique_name`. + * @param identity The application-defined string that uniquely identifies the User's Sync Map Permission resource to delete. +*/ +func (c *DefaultApiService) DeleteSyncMapPermission(serviceSid string, mapSid string, identity string) (error) { + path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteSyncStream Method for DeleteSyncStream +Delete a specific Stream. + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Stream resource to delete. + * @param sid The SID of the Stream resource to delete. +*/ +func (c *DefaultApiService) DeleteSyncStream(serviceSid string, sid string) (error) { + path := "/v1/Services/{ServiceSid}/Streams/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +FetchDocument Method for FetchDocument + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document resource to fetch. + * @param sid The SID of the Document resource to fetch. +@return SyncV1ServiceDocument +*/ +func (c *DefaultApiService) FetchDocument(serviceSid string, sid string) (*SyncV1ServiceDocument, error) { + path := "/v1/Services/{ServiceSid}/Documents/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceDocument{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchDocumentPermission Method for FetchDocumentPermission +Fetch a specific Sync Document Permission. + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document Permission resource to fetch. + * @param documentSid The SID of the Sync Document with the Document Permission resource to fetch. Can be the Document resource's `sid` or its `unique_name`. + * @param identity The application-defined string that uniquely identifies the User's Document Permission resource to fetch. +@return SyncV1ServiceDocumentDocumentPermission +*/ +func (c *DefaultApiService) FetchDocumentPermission(serviceSid string, documentSid string, identity string) (*SyncV1ServiceDocumentDocumentPermission, error) { + path := "/v1/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"DocumentSid"+"}", documentSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceDocumentDocumentPermission{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchService Method for FetchService + * @param sid The SID of the Service resource to fetch. +@return SyncV1Service +*/ +func (c *DefaultApiService) FetchService(sid string) (*SyncV1Service, error) { + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchSyncList Method for FetchSyncList + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List resource to fetch. + * @param sid The SID of the Sync List resource to fetch. +@return SyncV1ServiceSyncList +*/ +func (c *DefaultApiService) FetchSyncList(serviceSid string, sid string) (*SyncV1ServiceSyncList, error) { + path := "/v1/Services/{ServiceSid}/Lists/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceSyncList{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchSyncListItem Method for FetchSyncListItem + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Item resource to fetch. + * @param listSid The SID of the Sync List with the Sync List Item resource to fetch. Can be the Sync List resource's `sid` or its `unique_name`. + * @param index The index of the Sync List Item resource to fetch. +@return SyncV1ServiceSyncListSyncListItem +*/ +func (c *DefaultApiService) FetchSyncListItem(serviceSid string, listSid string, index int32) (*SyncV1ServiceSyncListSyncListItem, error) { + path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + path = strings.Replace(path, "{"+"Index"+"}", index, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceSyncListSyncListItem{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchSyncListPermission Method for FetchSyncListPermission +Fetch a specific Sync List Permission. + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Permission resource to fetch. + * @param listSid The SID of the Sync List with the Sync List Permission resource to fetch. Can be the Sync List resource's `sid` or its `unique_name`. + * @param identity The application-defined string that uniquely identifies the User's Sync List Permission resource to fetch. +@return SyncV1ServiceSyncListSyncListPermission +*/ +func (c *DefaultApiService) FetchSyncListPermission(serviceSid string, listSid string, identity string) (*SyncV1ServiceSyncListSyncListPermission, error) { + path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceSyncListSyncListPermission{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchSyncMap Method for FetchSyncMap + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map resource to fetch. + * @param sid The SID of the Sync Map resource to fetch. +@return SyncV1ServiceSyncMap +*/ +func (c *DefaultApiService) FetchSyncMap(serviceSid string, sid string) (*SyncV1ServiceSyncMap, error) { + path := "/v1/Services/{ServiceSid}/Maps/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceSyncMap{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchSyncMapItem Method for FetchSyncMapItem + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Item resource to fetch. + * @param mapSid The SID of the Sync Map with the Sync Map Item resource to fetch. Can be the Sync Map's `sid` or its `unique_name`. + * @param key The `key` value of the Sync Map Item resource to fetch. +@return SyncV1ServiceSyncMapSyncMapItem +*/ +func (c *DefaultApiService) FetchSyncMapItem(serviceSid string, mapSid string, key string) (*SyncV1ServiceSyncMapSyncMapItem, error) { + path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + path = strings.Replace(path, "{"+"Key"+"}", key, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceSyncMapSyncMapItem{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchSyncMapPermission Method for FetchSyncMapPermission +Fetch a specific Sync Map Permission. + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Permission resource to fetch. Can be the Service's `sid` value or `default`. + * @param mapSid The SID of the Sync Map with the Sync Map Permission resource to fetch. Can be the Sync Map's `sid` or its `unique_name`. + * @param identity The application-defined string that uniquely identifies the User's Sync Map Permission resource to fetch. +@return SyncV1ServiceSyncMapSyncMapPermission +*/ +func (c *DefaultApiService) FetchSyncMapPermission(serviceSid string, mapSid string, identity string) (*SyncV1ServiceSyncMapSyncMapPermission, error) { + path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceSyncMapSyncMapPermission{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchSyncStream Method for FetchSyncStream +Fetch a specific Stream. + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Stream resource to fetch. + * @param sid The SID of the Stream resource to fetch. +@return SyncV1ServiceSyncStream +*/ +func (c *DefaultApiService) FetchSyncStream(serviceSid string, sid string) (*SyncV1ServiceSyncStream, error) { + path := "/v1/Services/{ServiceSid}/Streams/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceSyncStream{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListDocumentParams Optional parameters for the method 'ListDocument' +type ListDocumentParams struct { + HideExpired *string `json:"HideExpired,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListDocument Method for ListDocument + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document resources to read. + * @param optional nil or *ListDocumentOpts - Optional Parameters: + * @param "HideExpired" (string) - The default list of Sync Documents will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return SyncV1ServiceDocumentReadResponse +*/ +func (c *DefaultApiService) ListDocument(serviceSid string, params *ListDocumentParams) (*SyncV1ServiceDocumentReadResponse, error) { + path := "/v1/Services/{ServiceSid}/Documents" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.HideExpired != nil { + data.Set("HideExpired", *params.HideExpired) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceDocumentReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListDocumentPermissionParams Optional parameters for the method 'ListDocumentPermission' +type ListDocumentPermissionParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListDocumentPermission Method for ListDocumentPermission +Retrieve a list of all Permissions applying to a Sync Document. + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document Permission resources to read. + * @param documentSid The SID of the Sync Document with the Document Permission resources to read. Can be the Document resource's `sid` or its `unique_name`. + * @param optional nil or *ListDocumentPermissionOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return SyncV1ServiceDocumentDocumentPermissionReadResponse +*/ +func (c *DefaultApiService) ListDocumentPermission(serviceSid string, documentSid string, params *ListDocumentPermissionParams) (*SyncV1ServiceDocumentDocumentPermissionReadResponse, error) { + path := "/v1/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"DocumentSid"+"}", documentSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceDocumentDocumentPermissionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListServiceParams Optional parameters for the method 'ListService' +type ListServiceParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListService Method for ListService + * @param optional nil or *ListServiceOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return SyncV1ServiceReadResponse +*/ +func (c *DefaultApiService) ListService(params *ListServiceParams) (*SyncV1ServiceReadResponse, error) { + path := "/v1/Services" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListSyncListParams Optional parameters for the method 'ListSyncList' +type ListSyncListParams struct { + HideExpired *string `json:"HideExpired,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListSyncList Method for ListSyncList + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List resources to read. + * @param optional nil or *ListSyncListOpts - Optional Parameters: + * @param "HideExpired" (string) - The default list of Sync Lists will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return SyncV1ServiceSyncListReadResponse +*/ +func (c *DefaultApiService) ListSyncList(serviceSid string, params *ListSyncListParams) (*SyncV1ServiceSyncListReadResponse, error) { + path := "/v1/Services/{ServiceSid}/Lists" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.HideExpired != nil { + data.Set("HideExpired", *params.HideExpired) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceSyncListReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListSyncListItemParams Optional parameters for the method 'ListSyncListItem' +type ListSyncListItemParams struct { + Order *string `json:"Order,omitempty"` + From *string `json:"From,omitempty"` + Bounds *string `json:"Bounds,omitempty"` + HideExpired *string `json:"HideExpired,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListSyncListItem Method for ListSyncListItem + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the List Item resources to read. + * @param listSid The SID of the Sync List with the List Items to read. Can be the Sync List resource's `sid` or its `unique_name`. + * @param optional nil or *ListSyncListItemOpts - Optional Parameters: + * @param "Order" (string) - How to order the List Items returned by their `index` value. Can be: `asc` (ascending) or `desc` (descending) and the default is ascending. + * @param "From" (string) - The `index` of the first Sync List Item resource to read. See also `bounds`. + * @param "Bounds" (string) - Whether to include the List Item referenced by the `from` parameter. Can be: `inclusive` to include the List Item referenced by the `from` parameter or `exclusive` to start with the next List Item. The default value is `inclusive`. + * @param "HideExpired" (string) - The default list of Sync List items will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return SyncV1ServiceSyncListSyncListItemReadResponse +*/ +func (c *DefaultApiService) ListSyncListItem(serviceSid string, listSid string, params *ListSyncListItemParams) (*SyncV1ServiceSyncListSyncListItemReadResponse, error) { + path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Items" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Order != nil { + data.Set("Order", *params.Order) + } + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.Bounds != nil { + data.Set("Bounds", *params.Bounds) + } + if params != nil && params.HideExpired != nil { + data.Set("HideExpired", *params.HideExpired) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceSyncListSyncListItemReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListSyncListPermissionParams Optional parameters for the method 'ListSyncListPermission' +type ListSyncListPermissionParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListSyncListPermission Method for ListSyncListPermission +Retrieve a list of all Permissions applying to a Sync List. + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Permission resources to read. + * @param listSid The SID of the Sync List with the Sync List Permission resources to read. Can be the Sync List resource's `sid` or its `unique_name`. + * @param optional nil or *ListSyncListPermissionOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return SyncV1ServiceSyncListSyncListPermissionReadResponse +*/ +func (c *DefaultApiService) ListSyncListPermission(serviceSid string, listSid string, params *ListSyncListPermissionParams) (*SyncV1ServiceSyncListSyncListPermissionReadResponse, error) { + path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceSyncListSyncListPermissionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListSyncMapParams Optional parameters for the method 'ListSyncMap' +type ListSyncMapParams struct { + HideExpired *string `json:"HideExpired,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListSyncMap Method for ListSyncMap + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map resources to read. + * @param optional nil or *ListSyncMapOpts - Optional Parameters: + * @param "HideExpired" (string) - The default list of Sync Maps will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return SyncV1ServiceSyncMapReadResponse +*/ +func (c *DefaultApiService) ListSyncMap(serviceSid string, params *ListSyncMapParams) (*SyncV1ServiceSyncMapReadResponse, error) { + path := "/v1/Services/{ServiceSid}/Maps" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.HideExpired != nil { + data.Set("HideExpired", *params.HideExpired) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceSyncMapReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListSyncMapItemParams Optional parameters for the method 'ListSyncMapItem' +type ListSyncMapItemParams struct { + Order *string `json:"Order,omitempty"` + From *string `json:"From,omitempty"` + Bounds *string `json:"Bounds,omitempty"` + HideExpired *string `json:"HideExpired,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListSyncMapItem Method for ListSyncMapItem + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Map Item resources to read. + * @param mapSid The SID of the Sync Map with the Sync Map Item resource to fetch. Can be the Sync Map's `sid` or its `unique_name`. + * @param optional nil or *ListSyncMapItemOpts - Optional Parameters: + * @param "Order" (string) - How to order the Map Items returned by their `key` value. Can be: `asc` (ascending) or `desc` (descending) and the default is ascending. Map Items are [ordered lexicographically](https://en.wikipedia.org/wiki/Lexicographical_order) by Item key. + * @param "From" (string) - The `key` of the first Sync Map Item resource to read. See also `bounds`. + * @param "Bounds" (string) - Whether to include the Map Item referenced by the `from` parameter. Can be: `inclusive` to include the Map Item referenced by the `from` parameter or `exclusive` to start with the next Map Item. The default value is `inclusive`. + * @param "HideExpired" (string) - The default list of Sync Map items will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return SyncV1ServiceSyncMapSyncMapItemReadResponse +*/ +func (c *DefaultApiService) ListSyncMapItem(serviceSid string, mapSid string, params *ListSyncMapItemParams) (*SyncV1ServiceSyncMapSyncMapItemReadResponse, error) { + path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Items" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Order != nil { + data.Set("Order", *params.Order) + } + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.Bounds != nil { + data.Set("Bounds", *params.Bounds) + } + if params != nil && params.HideExpired != nil { + data.Set("HideExpired", *params.HideExpired) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceSyncMapSyncMapItemReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListSyncMapPermissionParams Optional parameters for the method 'ListSyncMapPermission' +type ListSyncMapPermissionParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListSyncMapPermission Method for ListSyncMapPermission +Retrieve a list of all Permissions applying to a Sync Map. + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Permission resources to read. Can be the Service's `sid` value or `default`. + * @param mapSid The SID of the Sync Map with the Permission resources to read. Can be the Sync Map's `sid` or its `unique_name`. + * @param optional nil or *ListSyncMapPermissionOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return SyncV1ServiceSyncMapSyncMapPermissionReadResponse +*/ +func (c *DefaultApiService) ListSyncMapPermission(serviceSid string, mapSid string, params *ListSyncMapPermissionParams) (*SyncV1ServiceSyncMapSyncMapPermissionReadResponse, error) { + path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceSyncMapSyncMapPermissionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListSyncStreamParams Optional parameters for the method 'ListSyncStream' +type ListSyncStreamParams struct { + HideExpired *string `json:"HideExpired,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListSyncStream Method for ListSyncStream +Retrieve a list of all Streams in a Service Instance. + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Stream resources to read. + * @param optional nil or *ListSyncStreamOpts - Optional Parameters: + * @param "HideExpired" (string) - The default list of Sync Streams will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return SyncV1ServiceSyncStreamReadResponse +*/ +func (c *DefaultApiService) ListSyncStream(serviceSid string, params *ListSyncStreamParams) (*SyncV1ServiceSyncStreamReadResponse, error) { + path := "/v1/Services/{ServiceSid}/Streams" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.HideExpired != nil { + data.Set("HideExpired", *params.HideExpired) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceSyncStreamReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateDocumentParams Optional parameters for the method 'UpdateDocument' +type UpdateDocumentParams struct { + If-Match *string `json:"If-Match,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` +} + +/* +UpdateDocument Method for UpdateDocument + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document resource to update. + * @param sid The SID of the Document resource to update. + * @param optional nil or *UpdateDocumentOpts - Optional Parameters: + * @param "If-Match" (string) - The If-Match HTTP request header + * @param "Data" (map[string]interface{}) - A JSON string that represents an arbitrary, schema-less object that the Sync Document stores. Can be up to 16KB in length. + * @param "Ttl" (int32) - How long, in seconds, before the Sync Document expires and is deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Document resource does not expire. The Document resource will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. +@return SyncV1ServiceDocument +*/ +func (c *DefaultApiService) UpdateDocument(serviceSid string, sid string, params *UpdateDocumentParams) (*SyncV1ServiceDocument, error) { + path := "/v1/Services/{ServiceSid}/Documents/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Data != nil { + v, err := json.Marshal(params.Data) + + if err != nil { + return nil, err + } + + data.Set("Data", string(v)) + } + if params != nil && params.Ttl != nil { + data.Set("Ttl", string(*params.Ttl)) + } + + if params != nil && params.If-Match != nil { + headers["If-Match"] = *params.If-Match + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceDocument{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateDocumentPermissionParams Optional parameters for the method 'UpdateDocumentPermission' +type UpdateDocumentPermissionParams struct { + Manage *bool `json:"Manage,omitempty"` + Read *bool `json:"Read,omitempty"` + Write *bool `json:"Write,omitempty"` +} + +/* +UpdateDocumentPermission Method for UpdateDocumentPermission +Update an identity's access to a specific Sync Document. + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document Permission resource to update. + * @param documentSid The SID of the Sync Document with the Document Permission resource to update. Can be the Document resource's `sid` or its `unique_name`. + * @param identity The application-defined string that uniquely identifies the User's Document Permission resource to update. + * @param optional nil or *UpdateDocumentPermissionOpts - Optional Parameters: + * @param "Manage" (bool) - Whether the identity can delete the Sync Document. Default value is `false`. + * @param "Read" (bool) - Whether the identity can read the Sync Document. Default value is `false`. + * @param "Write" (bool) - Whether the identity can update the Sync Document. Default value is `false`. +@return SyncV1ServiceDocumentDocumentPermission +*/ +func (c *DefaultApiService) UpdateDocumentPermission(serviceSid string, documentSid string, identity string, params *UpdateDocumentPermissionParams) (*SyncV1ServiceDocumentDocumentPermission, error) { + path := "/v1/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"DocumentSid"+"}", documentSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Manage != nil { + data.Set("Manage", string(*params.Manage)) + } + if params != nil && params.Read != nil { + data.Set("Read", string(*params.Read)) + } + if params != nil && params.Write != nil { + data.Set("Write", string(*params.Write)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceDocumentDocumentPermission{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateServiceParams Optional parameters for the method 'UpdateService' +type UpdateServiceParams struct { + AclEnabled *bool `json:"AclEnabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + ReachabilityDebouncingEnabled *bool `json:"ReachabilityDebouncingEnabled,omitempty"` + ReachabilityDebouncingWindow *int32 `json:"ReachabilityDebouncingWindow,omitempty"` + ReachabilityWebhooksEnabled *bool `json:"ReachabilityWebhooksEnabled,omitempty"` + WebhookUrl *string `json:"WebhookUrl,omitempty"` + WebhooksFromRestEnabled *bool `json:"WebhooksFromRestEnabled,omitempty"` +} + +/* +UpdateService Method for UpdateService + * @param sid The SID of the Service resource to update. + * @param optional nil or *UpdateServiceOpts - Optional Parameters: + * @param "AclEnabled" (bool) - Whether token identities in the Service must be granted access to Sync objects by using the [Permissions](https://www.twilio.com/docs/sync/api/sync-permissions) resource. + * @param "FriendlyName" (string) - A string that you assign to describe the resource. + * @param "ReachabilityDebouncingEnabled" (bool) - Whether every `endpoint_disconnected` event should occur after a configurable delay. The default is `false`, where the `endpoint_disconnected` event occurs immediately after disconnection. When `true`, intervening reconnections can prevent the `endpoint_disconnected` event. + * @param "ReachabilityDebouncingWindow" (int32) - The reachability event delay in milliseconds if `reachability_debouncing_enabled` = `true`. Must be between 1,000 and 30,000 and defaults to 5,000. This is the number of milliseconds after the last running client disconnects, and a Sync identity is declared offline, before the webhook is called if all endpoints remain offline. A reconnection from the same identity by any endpoint during this interval prevents the webhook from being called. + * @param "ReachabilityWebhooksEnabled" (bool) - Whether the service instance should call `webhook_url` when client endpoints connect to Sync. The default is `false`. + * @param "WebhookUrl" (string) - The URL we should call when Sync objects are manipulated. + * @param "WebhooksFromRestEnabled" (bool) - Whether the Service instance should call `webhook_url` when the REST API is used to update Sync objects. The default is `false`. +@return SyncV1Service +*/ +func (c *DefaultApiService) UpdateService(sid string, params *UpdateServiceParams) (*SyncV1Service, error) { + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AclEnabled != nil { + data.Set("AclEnabled", string(*params.AclEnabled)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.ReachabilityDebouncingEnabled != nil { + data.Set("ReachabilityDebouncingEnabled", string(*params.ReachabilityDebouncingEnabled)) + } + if params != nil && params.ReachabilityDebouncingWindow != nil { + data.Set("ReachabilityDebouncingWindow", string(*params.ReachabilityDebouncingWindow)) + } + if params != nil && params.ReachabilityWebhooksEnabled != nil { + data.Set("ReachabilityWebhooksEnabled", string(*params.ReachabilityWebhooksEnabled)) + } + if params != nil && params.WebhookUrl != nil { + data.Set("WebhookUrl", *params.WebhookUrl) + } + if params != nil && params.WebhooksFromRestEnabled != nil { + data.Set("WebhooksFromRestEnabled", string(*params.WebhooksFromRestEnabled)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateSyncListParams Optional parameters for the method 'UpdateSyncList' +type UpdateSyncListParams struct { + CollectionTtl *int32 `json:"CollectionTtl,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` +} + +/* +UpdateSyncList Method for UpdateSyncList + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List resource to update. + * @param sid The SID of the Sync List resource to update. + * @param optional nil or *UpdateSyncListOpts - Optional Parameters: + * @param "CollectionTtl" (int32) - How long, in seconds, before the Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. + * @param "Ttl" (int32) - An alias for `collection_ttl`. If both are provided, this value is ignored. +@return SyncV1ServiceSyncList +*/ +func (c *DefaultApiService) UpdateSyncList(serviceSid string, sid string, params *UpdateSyncListParams) (*SyncV1ServiceSyncList, error) { + path := "/v1/Services/{ServiceSid}/Lists/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CollectionTtl != nil { + data.Set("CollectionTtl", string(*params.CollectionTtl)) + } + if params != nil && params.Ttl != nil { + data.Set("Ttl", string(*params.Ttl)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceSyncList{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateSyncListItemParams Optional parameters for the method 'UpdateSyncListItem' +type UpdateSyncListItemParams struct { + If-Match *string `json:"If-Match,omitempty"` + CollectionTtl *int32 `json:"CollectionTtl,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` + ItemTtl *int32 `json:"ItemTtl,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` +} + +/* +UpdateSyncListItem Method for UpdateSyncListItem + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Item resource to update. + * @param listSid The SID of the Sync List with the Sync List Item resource to update. Can be the Sync List resource's `sid` or its `unique_name`. + * @param index The index of the Sync List Item resource to update. + * @param optional nil or *UpdateSyncListItemOpts - Optional Parameters: + * @param "If-Match" (string) - The If-Match HTTP request header + * @param "CollectionTtl" (int32) - How long, in seconds, before the List Item's parent Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. + * @param "Data" (map[string]interface{}) - A JSON string that represents an arbitrary, schema-less object that the List Item stores. Can be up to 16KB in length. + * @param "ItemTtl" (int32) - How long, in seconds, before the List Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the List Item does not expire. The List Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. + * @param "Ttl" (int32) - An alias for `item_ttl`. If both parameters are provided, this value is ignored. +@return SyncV1ServiceSyncListSyncListItem +*/ +func (c *DefaultApiService) UpdateSyncListItem(serviceSid string, listSid string, index int32, params *UpdateSyncListItemParams) (*SyncV1ServiceSyncListSyncListItem, error) { + path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + path = strings.Replace(path, "{"+"Index"+"}", index, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.CollectionTtl != nil { + data.Set("CollectionTtl", string(*params.CollectionTtl)) + } + if params != nil && params.Data != nil { + v, err := json.Marshal(params.Data) + + if err != nil { + return nil, err + } + + data.Set("Data", string(v)) + } + if params != nil && params.ItemTtl != nil { + data.Set("ItemTtl", string(*params.ItemTtl)) + } + if params != nil && params.Ttl != nil { + data.Set("Ttl", string(*params.Ttl)) + } + + if params != nil && params.If-Match != nil { + headers["If-Match"] = *params.If-Match + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceSyncListSyncListItem{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateSyncListPermissionParams Optional parameters for the method 'UpdateSyncListPermission' +type UpdateSyncListPermissionParams struct { + Manage *bool `json:"Manage,omitempty"` + Read *bool `json:"Read,omitempty"` + Write *bool `json:"Write,omitempty"` +} + +/* +UpdateSyncListPermission Method for UpdateSyncListPermission +Update an identity's access to a specific Sync List. + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Permission resource to update. + * @param listSid The SID of the Sync List with the Sync List Permission resource to update. Can be the Sync List resource's `sid` or its `unique_name`. + * @param identity The application-defined string that uniquely identifies the User's Sync List Permission resource to update. + * @param optional nil or *UpdateSyncListPermissionOpts - Optional Parameters: + * @param "Manage" (bool) - Whether the identity can delete the Sync List. Default value is `false`. + * @param "Read" (bool) - Whether the identity can read the Sync List and its Items. Default value is `false`. + * @param "Write" (bool) - Whether the identity can create, update, and delete Items in the Sync List. Default value is `false`. +@return SyncV1ServiceSyncListSyncListPermission +*/ +func (c *DefaultApiService) UpdateSyncListPermission(serviceSid string, listSid string, identity string, params *UpdateSyncListPermissionParams) (*SyncV1ServiceSyncListSyncListPermission, error) { + path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Manage != nil { + data.Set("Manage", string(*params.Manage)) + } + if params != nil && params.Read != nil { + data.Set("Read", string(*params.Read)) + } + if params != nil && params.Write != nil { + data.Set("Write", string(*params.Write)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceSyncListSyncListPermission{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateSyncMapParams Optional parameters for the method 'UpdateSyncMap' +type UpdateSyncMapParams struct { + CollectionTtl *int32 `json:"CollectionTtl,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` +} + +/* +UpdateSyncMap Method for UpdateSyncMap + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map resource to update. + * @param sid The SID of the Sync Map resource to update. + * @param optional nil or *UpdateSyncMapOpts - Optional Parameters: + * @param "CollectionTtl" (int32) - How long, in seconds, before the Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync Map does not expire. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. + * @param "Ttl" (int32) - An alias for `collection_ttl`. If both parameters are provided, this value is ignored. +@return SyncV1ServiceSyncMap +*/ +func (c *DefaultApiService) UpdateSyncMap(serviceSid string, sid string, params *UpdateSyncMapParams) (*SyncV1ServiceSyncMap, error) { + path := "/v1/Services/{ServiceSid}/Maps/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CollectionTtl != nil { + data.Set("CollectionTtl", string(*params.CollectionTtl)) + } + if params != nil && params.Ttl != nil { + data.Set("Ttl", string(*params.Ttl)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceSyncMap{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateSyncMapItemParams Optional parameters for the method 'UpdateSyncMapItem' +type UpdateSyncMapItemParams struct { + If-Match *string `json:"If-Match,omitempty"` + CollectionTtl *int32 `json:"CollectionTtl,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` + ItemTtl *int32 `json:"ItemTtl,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` +} + +/* +UpdateSyncMapItem Method for UpdateSyncMapItem + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Item resource to update. + * @param mapSid The SID of the Sync Map with the Sync Map Item resource to update. Can be the Sync Map's `sid` or its `unique_name`. + * @param key The `key` value of the Sync Map Item resource to update. + * @param optional nil or *UpdateSyncMapItemOpts - Optional Parameters: + * @param "If-Match" (string) - The If-Match HTTP request header + * @param "CollectionTtl" (int32) - How long, in seconds, before the Map Item's parent Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync Map does not expire. This parameter can only be used when the Map Item's `data` or `ttl` is updated in the same request. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. + * @param "Data" (map[string]interface{}) - A JSON string that represents an arbitrary, schema-less object that the Map Item stores. Can be up to 16KB in length. + * @param "ItemTtl" (int32) - How long, in seconds, before the Map Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Map Item does not expire. The Map Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. + * @param "Ttl" (int32) - An alias for `item_ttl`. If both parameters are provided, this value is ignored. +@return SyncV1ServiceSyncMapSyncMapItem +*/ +func (c *DefaultApiService) UpdateSyncMapItem(serviceSid string, mapSid string, key string, params *UpdateSyncMapItemParams) (*SyncV1ServiceSyncMapSyncMapItem, error) { + path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + path = strings.Replace(path, "{"+"Key"+"}", key, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.CollectionTtl != nil { + data.Set("CollectionTtl", string(*params.CollectionTtl)) + } + if params != nil && params.Data != nil { + v, err := json.Marshal(params.Data) + + if err != nil { + return nil, err + } + + data.Set("Data", string(v)) + } + if params != nil && params.ItemTtl != nil { + data.Set("ItemTtl", string(*params.ItemTtl)) + } + if params != nil && params.Ttl != nil { + data.Set("Ttl", string(*params.Ttl)) + } + + if params != nil && params.If-Match != nil { + headers["If-Match"] = *params.If-Match + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceSyncMapSyncMapItem{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateSyncMapPermissionParams Optional parameters for the method 'UpdateSyncMapPermission' +type UpdateSyncMapPermissionParams struct { + Manage *bool `json:"Manage,omitempty"` + Read *bool `json:"Read,omitempty"` + Write *bool `json:"Write,omitempty"` +} + +/* +UpdateSyncMapPermission Method for UpdateSyncMapPermission +Update an identity's access to a specific Sync Map. + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Permission resource to update. Can be the Service's `sid` value or `default`. + * @param mapSid The SID of the Sync Map with the Sync Map Permission resource to update. Can be the Sync Map's `sid` or its `unique_name`. + * @param identity The application-defined string that uniquely identifies the User's Sync Map Permission resource to update. + * @param optional nil or *UpdateSyncMapPermissionOpts - Optional Parameters: + * @param "Manage" (bool) - Whether the identity can delete the Sync Map. Default value is `false`. + * @param "Read" (bool) - Whether the identity can read the Sync Map and its Items. Default value is `false`. + * @param "Write" (bool) - Whether the identity can create, update, and delete Items in the Sync Map. Default value is `false`. +@return SyncV1ServiceSyncMapSyncMapPermission +*/ +func (c *DefaultApiService) UpdateSyncMapPermission(serviceSid string, mapSid string, identity string, params *UpdateSyncMapPermissionParams) (*SyncV1ServiceSyncMapSyncMapPermission, error) { + path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Manage != nil { + data.Set("Manage", string(*params.Manage)) + } + if params != nil && params.Read != nil { + data.Set("Read", string(*params.Read)) + } + if params != nil && params.Write != nil { + data.Set("Write", string(*params.Write)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceSyncMapSyncMapPermission{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateSyncStreamParams Optional parameters for the method 'UpdateSyncStream' +type UpdateSyncStreamParams struct { + Ttl *int32 `json:"Ttl,omitempty"` +} + +/* +UpdateSyncStream Method for UpdateSyncStream +Update a specific Stream. + * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Stream resource to update. + * @param sid The SID of the Stream resource to update. + * @param optional nil or *UpdateSyncStreamOpts - Optional Parameters: + * @param "Ttl" (int32) - How long, in seconds, before the Stream expires and is deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Stream does not expire. The Stream will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. +@return SyncV1ServiceSyncStream +*/ +func (c *DefaultApiService) UpdateSyncStream(serviceSid string, sid string, params *UpdateSyncStreamParams) (*SyncV1ServiceSyncStream, error) { + path := "/v1/Services/{ServiceSid}/Streams/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Ttl != nil { + data.Set("Ttl", string(*params.Ttl)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceSyncStream{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/sync/v1/docs/CreateDocumentRequest.md b/rest/sync/v1/docs/CreateDocumentRequest.md new file mode 100644 index 000000000..883ddc550 --- /dev/null +++ b/rest/sync/v1/docs/CreateDocumentRequest.md @@ -0,0 +1,13 @@ +# CreateDocumentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**map[string]interface{}**](.md) | A JSON string that represents an arbitrary, schema-less object that the Sync Document stores. Can be up to 16KB in length. | [optional] +**Ttl** | **int32** | How long, in seconds, before the Sync Document expires and is deleted (the Sync Document's time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync Document does not expire. The Sync Document will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | [optional] +**UniqueName** | **string** | An application-defined string that uniquely identifies the Sync Document | [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/rest/sync/v1/docs/CreateServiceRequest.md b/rest/sync/v1/docs/CreateServiceRequest.md new file mode 100644 index 000000000..2c80d4b02 --- /dev/null +++ b/rest/sync/v1/docs/CreateServiceRequest.md @@ -0,0 +1,17 @@ +# CreateServiceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AclEnabled** | **bool** | Whether token identities in the Service must be granted access to Sync objects by using the [Permissions](https://www.twilio.com/docs/sync/api/sync-permissions) resource. | [optional] +**FriendlyName** | **string** | A string that you assign to describe the resource. | [optional] +**ReachabilityDebouncingEnabled** | **bool** | Whether every `endpoint_disconnected` event should occur after a configurable delay. The default is `false`, where the `endpoint_disconnected` event occurs immediately after disconnection. When `true`, intervening reconnections can prevent the `endpoint_disconnected` event. | [optional] +**ReachabilityDebouncingWindow** | **int32** | The reachability event delay in milliseconds if `reachability_debouncing_enabled` = `true`. Must be between 1,000 and 30,000 and defaults to 5,000. This is the number of milliseconds after the last running client disconnects, and a Sync identity is declared offline, before the `webhook_url` is called if all endpoints remain offline. A reconnection from the same identity by any endpoint during this interval prevents the call to `webhook_url`. | [optional] +**ReachabilityWebhooksEnabled** | **bool** | Whether the service instance should call `webhook_url` when client endpoints connect to Sync. The default is `false`. | [optional] +**WebhookUrl** | **string** | The URL we should call when Sync objects are manipulated. | [optional] +**WebhooksFromRestEnabled** | **bool** | Whether the Service instance should call `webhook_url` when the REST API is used to update Sync objects. The default is `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/rest/sync/v1/docs/CreateStreamMessageRequest.md b/rest/sync/v1/docs/CreateStreamMessageRequest.md new file mode 100644 index 000000000..10b1c05ff --- /dev/null +++ b/rest/sync/v1/docs/CreateStreamMessageRequest.md @@ -0,0 +1,11 @@ +# CreateStreamMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**map[string]interface{}**](.md) | A JSON string that represents an arbitrary, schema-less object that makes up the Stream Message body. Can be up to 4KB in length. | + +[[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/rest/sync/v1/docs/CreateSyncListItemRequest.md b/rest/sync/v1/docs/CreateSyncListItemRequest.md new file mode 100644 index 000000000..86f27dd41 --- /dev/null +++ b/rest/sync/v1/docs/CreateSyncListItemRequest.md @@ -0,0 +1,14 @@ +# CreateSyncListItemRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CollectionTtl** | **int32** | How long, in seconds, before the List Item's parent Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | [optional] +**Data** | [**map[string]interface{}**](.md) | A JSON string that represents an arbitrary, schema-less object that the List Item stores. Can be up to 16KB in length. | +**ItemTtl** | **int32** | How long, in seconds, before the List Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the List Item does not expire. The List Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | [optional] +**Ttl** | **int32** | An alias for `item_ttl`. If both parameters are provided, this value is ignored. | [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/rest/sync/v1/docs/CreateSyncListRequest.md b/rest/sync/v1/docs/CreateSyncListRequest.md new file mode 100644 index 000000000..b16bf2338 --- /dev/null +++ b/rest/sync/v1/docs/CreateSyncListRequest.md @@ -0,0 +1,13 @@ +# CreateSyncListRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CollectionTtl** | **int32** | How long, in seconds, before the Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | [optional] +**Ttl** | **int32** | Alias for collection_ttl. If both are provided, this value is ignored. | [optional] +**UniqueName** | **string** | An application-defined string that uniquely identifies the resource. This value must be unique within its Service and it can be up to 320 characters long. The `unique_name` value can be used as an alternative to the `sid` in the URL path to address the 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/rest/sync/v1/docs/CreateSyncMapItemRequest.md b/rest/sync/v1/docs/CreateSyncMapItemRequest.md new file mode 100644 index 000000000..f6a306489 --- /dev/null +++ b/rest/sync/v1/docs/CreateSyncMapItemRequest.md @@ -0,0 +1,15 @@ +# CreateSyncMapItemRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CollectionTtl** | **int32** | How long, in seconds, before the Map Item's parent Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync Map does not expire. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | [optional] +**Data** | [**map[string]interface{}**](.md) | A JSON string that represents an arbitrary, schema-less object that the Map Item stores. Can be up to 16KB in length. | +**ItemTtl** | **int32** | How long, in seconds, before the Map Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Map Item does not expire. The Map Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | [optional] +**Key** | **string** | The unique, user-defined key for the Map Item. Can be up to 320 characters long. | +**Ttl** | **int32** | An alias for `item_ttl`. If both parameters are provided, this value is ignored. | [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/rest/sync/v1/docs/CreateSyncMapRequest.md b/rest/sync/v1/docs/CreateSyncMapRequest.md new file mode 100644 index 000000000..2d7d36eb1 --- /dev/null +++ b/rest/sync/v1/docs/CreateSyncMapRequest.md @@ -0,0 +1,13 @@ +# CreateSyncMapRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CollectionTtl** | **int32** | How long, in seconds, before the Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync Map does not expire. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | [optional] +**Ttl** | **int32** | An alias for `collection_ttl`. If both parameters are provided, this value is ignored. | [optional] +**UniqueName** | **string** | An application-defined string that uniquely identifies the resource. It can be used as an alternative to the `sid` in the URL path to address the 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/rest/sync/v1/docs/CreateSyncStreamRequest.md b/rest/sync/v1/docs/CreateSyncStreamRequest.md new file mode 100644 index 000000000..e179165c6 --- /dev/null +++ b/rest/sync/v1/docs/CreateSyncStreamRequest.md @@ -0,0 +1,12 @@ +# CreateSyncStreamRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Ttl** | **int32** | How long, in seconds, before the Stream expires and is deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Stream does not expire. The Stream will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | [optional] +**UniqueName** | **string** | An application-defined string that uniquely identifies the resource. This value must be unique within its Service and it can be up to 320 characters long. The `unique_name` value can be used as an alternative to the `sid` in the URL path to address the 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/rest/sync/v1/docs/DefaultApi.md b/rest/sync/v1/docs/DefaultApi.md new file mode 100644 index 000000000..ef345e6d3 --- /dev/null +++ b/rest/sync/v1/docs/DefaultApi.md @@ -0,0 +1,2098 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateDocument**](DefaultApi.md#CreateDocument) | **Post** /v1/Services/{ServiceSid}/Documents | +[**CreateService**](DefaultApi.md#CreateService) | **Post** /v1/Services | +[**CreateStreamMessage**](DefaultApi.md#CreateStreamMessage) | **Post** /v1/Services/{ServiceSid}/Streams/{StreamSid}/Messages | +[**CreateSyncList**](DefaultApi.md#CreateSyncList) | **Post** /v1/Services/{ServiceSid}/Lists | +[**CreateSyncListItem**](DefaultApi.md#CreateSyncListItem) | **Post** /v1/Services/{ServiceSid}/Lists/{ListSid}/Items | +[**CreateSyncMap**](DefaultApi.md#CreateSyncMap) | **Post** /v1/Services/{ServiceSid}/Maps | +[**CreateSyncMapItem**](DefaultApi.md#CreateSyncMapItem) | **Post** /v1/Services/{ServiceSid}/Maps/{MapSid}/Items | +[**CreateSyncStream**](DefaultApi.md#CreateSyncStream) | **Post** /v1/Services/{ServiceSid}/Streams | +[**DeleteDocument**](DefaultApi.md#DeleteDocument) | **Delete** /v1/Services/{ServiceSid}/Documents/{Sid} | +[**DeleteDocumentPermission**](DefaultApi.md#DeleteDocumentPermission) | **Delete** /v1/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity} | +[**DeleteService**](DefaultApi.md#DeleteService) | **Delete** /v1/Services/{Sid} | +[**DeleteSyncList**](DefaultApi.md#DeleteSyncList) | **Delete** /v1/Services/{ServiceSid}/Lists/{Sid} | +[**DeleteSyncListItem**](DefaultApi.md#DeleteSyncListItem) | **Delete** /v1/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index} | +[**DeleteSyncListPermission**](DefaultApi.md#DeleteSyncListPermission) | **Delete** /v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity} | +[**DeleteSyncMap**](DefaultApi.md#DeleteSyncMap) | **Delete** /v1/Services/{ServiceSid}/Maps/{Sid} | +[**DeleteSyncMapItem**](DefaultApi.md#DeleteSyncMapItem) | **Delete** /v1/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key} | +[**DeleteSyncMapPermission**](DefaultApi.md#DeleteSyncMapPermission) | **Delete** /v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity} | +[**DeleteSyncStream**](DefaultApi.md#DeleteSyncStream) | **Delete** /v1/Services/{ServiceSid}/Streams/{Sid} | +[**FetchDocument**](DefaultApi.md#FetchDocument) | **Get** /v1/Services/{ServiceSid}/Documents/{Sid} | +[**FetchDocumentPermission**](DefaultApi.md#FetchDocumentPermission) | **Get** /v1/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity} | +[**FetchService**](DefaultApi.md#FetchService) | **Get** /v1/Services/{Sid} | +[**FetchSyncList**](DefaultApi.md#FetchSyncList) | **Get** /v1/Services/{ServiceSid}/Lists/{Sid} | +[**FetchSyncListItem**](DefaultApi.md#FetchSyncListItem) | **Get** /v1/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index} | +[**FetchSyncListPermission**](DefaultApi.md#FetchSyncListPermission) | **Get** /v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity} | +[**FetchSyncMap**](DefaultApi.md#FetchSyncMap) | **Get** /v1/Services/{ServiceSid}/Maps/{Sid} | +[**FetchSyncMapItem**](DefaultApi.md#FetchSyncMapItem) | **Get** /v1/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key} | +[**FetchSyncMapPermission**](DefaultApi.md#FetchSyncMapPermission) | **Get** /v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity} | +[**FetchSyncStream**](DefaultApi.md#FetchSyncStream) | **Get** /v1/Services/{ServiceSid}/Streams/{Sid} | +[**ListDocument**](DefaultApi.md#ListDocument) | **Get** /v1/Services/{ServiceSid}/Documents | +[**ListDocumentPermission**](DefaultApi.md#ListDocumentPermission) | **Get** /v1/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions | +[**ListService**](DefaultApi.md#ListService) | **Get** /v1/Services | +[**ListSyncList**](DefaultApi.md#ListSyncList) | **Get** /v1/Services/{ServiceSid}/Lists | +[**ListSyncListItem**](DefaultApi.md#ListSyncListItem) | **Get** /v1/Services/{ServiceSid}/Lists/{ListSid}/Items | +[**ListSyncListPermission**](DefaultApi.md#ListSyncListPermission) | **Get** /v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions | +[**ListSyncMap**](DefaultApi.md#ListSyncMap) | **Get** /v1/Services/{ServiceSid}/Maps | +[**ListSyncMapItem**](DefaultApi.md#ListSyncMapItem) | **Get** /v1/Services/{ServiceSid}/Maps/{MapSid}/Items | +[**ListSyncMapPermission**](DefaultApi.md#ListSyncMapPermission) | **Get** /v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions | +[**ListSyncStream**](DefaultApi.md#ListSyncStream) | **Get** /v1/Services/{ServiceSid}/Streams | +[**UpdateDocument**](DefaultApi.md#UpdateDocument) | **Post** /v1/Services/{ServiceSid}/Documents/{Sid} | +[**UpdateDocumentPermission**](DefaultApi.md#UpdateDocumentPermission) | **Post** /v1/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity} | +[**UpdateService**](DefaultApi.md#UpdateService) | **Post** /v1/Services/{Sid} | +[**UpdateSyncList**](DefaultApi.md#UpdateSyncList) | **Post** /v1/Services/{ServiceSid}/Lists/{Sid} | +[**UpdateSyncListItem**](DefaultApi.md#UpdateSyncListItem) | **Post** /v1/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index} | +[**UpdateSyncListPermission**](DefaultApi.md#UpdateSyncListPermission) | **Post** /v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity} | +[**UpdateSyncMap**](DefaultApi.md#UpdateSyncMap) | **Post** /v1/Services/{ServiceSid}/Maps/{Sid} | +[**UpdateSyncMapItem**](DefaultApi.md#UpdateSyncMapItem) | **Post** /v1/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key} | +[**UpdateSyncMapPermission**](DefaultApi.md#UpdateSyncMapPermission) | **Post** /v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity} | +[**UpdateSyncStream**](DefaultApi.md#UpdateSyncStream) | **Post** /v1/Services/{ServiceSid}/Streams/{Sid} | + + + +## CreateDocument + +> SyncV1ServiceDocument CreateDocument(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the new Document resource in. | + **optional** | ***CreateDocumentOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateDocumentOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that represents an arbitrary, schema-less object that the Sync Document stores. Can be up to 16KB in length. | + **ttl** | **optional.Int32**| How long, in seconds, before the Sync Document expires and is deleted (the Sync Document's time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync Document does not expire. The Sync Document will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | + **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the Sync Document | + +### Return type + +[**SyncV1ServiceDocument**](sync.v1.service.document.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) + + +## CreateService + +> SyncV1Service CreateService(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateServiceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateServiceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **aclEnabled** | **optional.Bool**| Whether token identities in the Service must be granted access to Sync objects by using the [Permissions](https://www.twilio.com/docs/sync/api/sync-permissions) resource. | + **friendlyName** | **optional.String**| A string that you assign to describe the resource. | + **reachabilityDebouncingEnabled** | **optional.Bool**| Whether every `endpoint_disconnected` event should occur after a configurable delay. The default is `false`, where the `endpoint_disconnected` event occurs immediately after disconnection. When `true`, intervening reconnections can prevent the `endpoint_disconnected` event. | + **reachabilityDebouncingWindow** | **optional.Int32**| The reachability event delay in milliseconds if `reachability_debouncing_enabled` = `true`. Must be between 1,000 and 30,000 and defaults to 5,000. This is the number of milliseconds after the last running client disconnects, and a Sync identity is declared offline, before the `webhook_url` is called if all endpoints remain offline. A reconnection from the same identity by any endpoint during this interval prevents the call to `webhook_url`. | + **reachabilityWebhooksEnabled** | **optional.Bool**| Whether the service instance should call `webhook_url` when client endpoints connect to Sync. The default is `false`. | + **webhookUrl** | **optional.String**| The URL we should call when Sync objects are manipulated. | + **webhooksFromRestEnabled** | **optional.Bool**| Whether the Service instance should call `webhook_url` when the REST API is used to update Sync objects. The default is `false`. | + +### Return type + +[**SyncV1Service**](sync.v1.service.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) + + +## CreateStreamMessage + +> SyncV1ServiceSyncStreamStreamMessage CreateStreamMessage(ctx, serviceSid, streamSid, optional) + + + +Create a new Stream Message. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the new Stream Message in. | +**streamSid** | **string**| The SID of the Sync Stream to create the new Stream Message resource for. | + **optional** | ***CreateStreamMessageOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateStreamMessageOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that represents an arbitrary, schema-less object that makes up the Stream Message body. Can be up to 4KB in length. | + +### Return type + +[**SyncV1ServiceSyncStreamStreamMessage**](sync.v1.service.sync_stream.stream_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) + + +## CreateSyncList + +> SyncV1ServiceSyncList CreateSyncList(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the new Sync List in. | + **optional** | ***CreateSyncListOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateSyncListOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **collectionTtl** | **optional.Int32**| How long, in seconds, before the Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | + **ttl** | **optional.Int32**| Alias for collection_ttl. If both are provided, this value is ignored. | + **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. This value must be unique within its Service and it can be up to 320 characters long. The `unique_name` value can be used as an alternative to the `sid` in the URL path to address the resource. | + +### Return type + +[**SyncV1ServiceSyncList**](sync.v1.service.sync_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) + + +## CreateSyncListItem + +> SyncV1ServiceSyncListSyncListItem CreateSyncListItem(ctx, serviceSid, listSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the new List Item in. | +**listSid** | **string**| The SID of the Sync List to add the new List Item to. Can be the Sync List resource's `sid` or its `unique_name`. | + **optional** | ***CreateSyncListItemOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateSyncListItemOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **collectionTtl** | **optional.Int32**| How long, in seconds, before the List Item's parent Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | + **data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that represents an arbitrary, schema-less object that the List Item stores. Can be up to 16KB in length. | + **itemTtl** | **optional.Int32**| How long, in seconds, before the List Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the List Item does not expire. The List Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | + **ttl** | **optional.Int32**| An alias for `item_ttl`. If both parameters are provided, this value is ignored. | + +### Return type + +[**SyncV1ServiceSyncListSyncListItem**](sync.v1.service.sync_list.sync_list_item.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) + + +## CreateSyncMap + +> SyncV1ServiceSyncMap CreateSyncMap(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the Sync Map in. | + **optional** | ***CreateSyncMapOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateSyncMapOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **collectionTtl** | **optional.Int32**| How long, in seconds, before the Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync Map does not expire. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | + **ttl** | **optional.Int32**| An alias for `collection_ttl`. If both parameters are provided, this value is ignored. | + **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used as an alternative to the `sid` in the URL path to address the resource. | + +### Return type + +[**SyncV1ServiceSyncMap**](sync.v1.service.sync_map.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) + + +## CreateSyncMapItem + +> SyncV1ServiceSyncMapSyncMapItem CreateSyncMapItem(ctx, serviceSid, mapSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the Map Item in. | +**mapSid** | **string**| The SID of the Sync Map to add the new Map Item to. | + **optional** | ***CreateSyncMapItemOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateSyncMapItemOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **collectionTtl** | **optional.Int32**| How long, in seconds, before the Map Item's parent Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync Map does not expire. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | + **data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that represents an arbitrary, schema-less object that the Map Item stores. Can be up to 16KB in length. | + **itemTtl** | **optional.Int32**| How long, in seconds, before the Map Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Map Item does not expire. The Map Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | + **key** | **optional.String**| The unique, user-defined key for the Map Item. Can be up to 320 characters long. | + **ttl** | **optional.Int32**| An alias for `item_ttl`. If both parameters are provided, this value is ignored. | + +### Return type + +[**SyncV1ServiceSyncMapSyncMapItem**](sync.v1.service.sync_map.sync_map_item.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) + + +## CreateSyncStream + +> SyncV1ServiceSyncStream CreateSyncStream(ctx, serviceSid, optional) + + + +Create a new Stream. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the new Stream in. | + **optional** | ***CreateSyncStreamOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateSyncStreamOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **ttl** | **optional.Int32**| How long, in seconds, before the Stream expires and is deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Stream does not expire. The Stream will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | + **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. This value must be unique within its Service and it can be up to 320 characters long. The `unique_name` value can be used as an alternative to the `sid` in the URL path to address the resource. | + +### Return type + +[**SyncV1ServiceSyncStream**](sync.v1.service.sync_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) + + +## DeleteDocument + +> DeleteDocument(ctx, serviceSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document resource to delete. | +**sid** | **string**| The SID of the Document resource to delete. | + **optional** | ***DeleteDocumentOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a DeleteDocumentOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **ifMatch** | **optional.String**| The If-Match HTTP request header | + +### 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) + + +## DeleteDocumentPermission + +> DeleteDocumentPermission(ctx, serviceSid, documentSid, identity) + + + +Delete a specific Sync Document Permission. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document Permission resource to delete. | +**documentSid** | **string**| The SID of the Sync Document with the Document Permission resource to delete. Can be the Document resource's `sid` or its `unique_name`. | +**identity** | **string**| The application-defined string that uniquely identifies the User's Document Permission resource to delete. | + +### 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) + + +## DeleteService + +> DeleteService(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Service resource to delete. | + +### 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) + + +## DeleteSyncList + +> DeleteSyncList(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List resource to delete. | +**sid** | **string**| The SID of the Sync List resource to delete. | + +### 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) + + +## DeleteSyncListItem + +> DeleteSyncListItem(ctx, serviceSid, listSid, index, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Item resource to delete. | +**listSid** | **string**| The SID of the Sync List with the Sync List Item resource to delete. Can be the Sync List resource's `sid` or its `unique_name`. | +**index** | **int32**| The index of the Sync List Item resource to delete. | + **optional** | ***DeleteSyncListItemOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a DeleteSyncListItemOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **ifMatch** | **optional.String**| The If-Match HTTP request header | + +### 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) + + +## DeleteSyncListPermission + +> DeleteSyncListPermission(ctx, serviceSid, listSid, identity) + + + +Delete a specific Sync List Permission. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Permission resource to delete. | +**listSid** | **string**| The SID of the Sync List with the Sync List Permission resource to delete. Can be the Sync List resource's `sid` or its `unique_name`. | +**identity** | **string**| The application-defined string that uniquely identifies the User's Sync List Permission resource to delete. | + +### 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) + + +## DeleteSyncMap + +> DeleteSyncMap(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map resource to delete. | +**sid** | **string**| The SID of the Sync Map resource to delete. | + +### 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) + + +## DeleteSyncMapItem + +> DeleteSyncMapItem(ctx, serviceSid, mapSid, key, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Item resource to delete. | +**mapSid** | **string**| The SID of the Sync Map with the Sync Map Item resource to delete. Can be the Sync Map's `sid` or its `unique_name`. | +**key** | **string**| The `key` value of the Sync Map Item resource to delete. | + **optional** | ***DeleteSyncMapItemOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a DeleteSyncMapItemOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **ifMatch** | **optional.String**| The If-Match HTTP request header | + +### 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) + + +## DeleteSyncMapPermission + +> DeleteSyncMapPermission(ctx, serviceSid, mapSid, identity) + + + +Delete a specific Sync Map Permission. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Permission resource to delete. Can be the Service's `sid` value or `default`. | +**mapSid** | **string**| The SID of the Sync Map with the Sync Map Permission resource to delete. Can be the Sync Map's `sid` or its `unique_name`. | +**identity** | **string**| The application-defined string that uniquely identifies the User's Sync Map Permission resource to delete. | + +### 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) + + +## DeleteSyncStream + +> DeleteSyncStream(ctx, serviceSid, sid) + + + +Delete a specific Stream. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Stream resource to delete. | +**sid** | **string**| The SID of the Stream resource to delete. | + +### 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) + + +## FetchDocument + +> SyncV1ServiceDocument FetchDocument(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document resource to fetch. | +**sid** | **string**| The SID of the Document resource to fetch. | + +### Return type + +[**SyncV1ServiceDocument**](sync.v1.service.document.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) + + +## FetchDocumentPermission + +> SyncV1ServiceDocumentDocumentPermission FetchDocumentPermission(ctx, serviceSid, documentSid, identity) + + + +Fetch a specific Sync Document Permission. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document Permission resource to fetch. | +**documentSid** | **string**| The SID of the Sync Document with the Document Permission resource to fetch. Can be the Document resource's `sid` or its `unique_name`. | +**identity** | **string**| The application-defined string that uniquely identifies the User's Document Permission resource to fetch. | + +### Return type + +[**SyncV1ServiceDocumentDocumentPermission**](sync.v1.service.document.document_permission.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) + + +## FetchService + +> SyncV1Service FetchService(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Service resource to fetch. | + +### Return type + +[**SyncV1Service**](sync.v1.service.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) + + +## FetchSyncList + +> SyncV1ServiceSyncList FetchSyncList(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List resource to fetch. | +**sid** | **string**| The SID of the Sync List resource to fetch. | + +### Return type + +[**SyncV1ServiceSyncList**](sync.v1.service.sync_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) + + +## FetchSyncListItem + +> SyncV1ServiceSyncListSyncListItem FetchSyncListItem(ctx, serviceSid, listSid, index) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Item resource to fetch. | +**listSid** | **string**| The SID of the Sync List with the Sync List Item resource to fetch. Can be the Sync List resource's `sid` or its `unique_name`. | +**index** | **int32**| The index of the Sync List Item resource to fetch. | + +### Return type + +[**SyncV1ServiceSyncListSyncListItem**](sync.v1.service.sync_list.sync_list_item.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) + + +## FetchSyncListPermission + +> SyncV1ServiceSyncListSyncListPermission FetchSyncListPermission(ctx, serviceSid, listSid, identity) + + + +Fetch a specific Sync List Permission. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Permission resource to fetch. | +**listSid** | **string**| The SID of the Sync List with the Sync List Permission resource to fetch. Can be the Sync List resource's `sid` or its `unique_name`. | +**identity** | **string**| The application-defined string that uniquely identifies the User's Sync List Permission resource to fetch. | + +### Return type + +[**SyncV1ServiceSyncListSyncListPermission**](sync.v1.service.sync_list.sync_list_permission.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) + + +## FetchSyncMap + +> SyncV1ServiceSyncMap FetchSyncMap(ctx, serviceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map resource to fetch. | +**sid** | **string**| The SID of the Sync Map resource to fetch. | + +### Return type + +[**SyncV1ServiceSyncMap**](sync.v1.service.sync_map.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) + + +## FetchSyncMapItem + +> SyncV1ServiceSyncMapSyncMapItem FetchSyncMapItem(ctx, serviceSid, mapSid, key) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Item resource to fetch. | +**mapSid** | **string**| The SID of the Sync Map with the Sync Map Item resource to fetch. Can be the Sync Map's `sid` or its `unique_name`. | +**key** | **string**| The `key` value of the Sync Map Item resource to fetch. | + +### Return type + +[**SyncV1ServiceSyncMapSyncMapItem**](sync.v1.service.sync_map.sync_map_item.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) + + +## FetchSyncMapPermission + +> SyncV1ServiceSyncMapSyncMapPermission FetchSyncMapPermission(ctx, serviceSid, mapSid, identity) + + + +Fetch a specific Sync Map Permission. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Permission resource to fetch. Can be the Service's `sid` value or `default`. | +**mapSid** | **string**| The SID of the Sync Map with the Sync Map Permission resource to fetch. Can be the Sync Map's `sid` or its `unique_name`. | +**identity** | **string**| The application-defined string that uniquely identifies the User's Sync Map Permission resource to fetch. | + +### Return type + +[**SyncV1ServiceSyncMapSyncMapPermission**](sync.v1.service.sync_map.sync_map_permission.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) + + +## FetchSyncStream + +> SyncV1ServiceSyncStream FetchSyncStream(ctx, serviceSid, sid) + + + +Fetch a specific Stream. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Stream resource to fetch. | +**sid** | **string**| The SID of the Stream resource to fetch. | + +### Return type + +[**SyncV1ServiceSyncStream**](sync.v1.service.sync_stream.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) + + +## ListDocument + +> SyncV1ServiceDocumentReadResponse ListDocument(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document resources to read. | + **optional** | ***ListDocumentOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListDocumentOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **hideExpired** | **optional.String**| The default list of Sync Documents will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**SyncV1ServiceDocumentReadResponse**](sync_v1_service_documentReadResponse.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) + + +## ListDocumentPermission + +> SyncV1ServiceDocumentDocumentPermissionReadResponse ListDocumentPermission(ctx, serviceSid, documentSid, optional) + + + +Retrieve a list of all Permissions applying to a Sync Document. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document Permission resources to read. | +**documentSid** | **string**| The SID of the Sync Document with the Document Permission resources to read. Can be the Document resource's `sid` or its `unique_name`. | + **optional** | ***ListDocumentPermissionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListDocumentPermissionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**SyncV1ServiceDocumentDocumentPermissionReadResponse**](sync_v1_service_document_document_permissionReadResponse.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) + + +## ListService + +> SyncV1ServiceReadResponse ListService(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListServiceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListServiceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**SyncV1ServiceReadResponse**](sync_v1_serviceReadResponse.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) + + +## ListSyncList + +> SyncV1ServiceSyncListReadResponse ListSyncList(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List resources to read. | + **optional** | ***ListSyncListOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListSyncListOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **hideExpired** | **optional.String**| The default list of Sync Lists will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**SyncV1ServiceSyncListReadResponse**](sync_v1_service_sync_listReadResponse.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) + + +## ListSyncListItem + +> SyncV1ServiceSyncListSyncListItemReadResponse ListSyncListItem(ctx, serviceSid, listSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the List Item resources to read. | +**listSid** | **string**| The SID of the Sync List with the List Items to read. Can be the Sync List resource's `sid` or its `unique_name`. | + **optional** | ***ListSyncListItemOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListSyncListItemOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **order** | **optional.String**| How to order the List Items returned by their `index` value. Can be: `asc` (ascending) or `desc` (descending) and the default is ascending. | + **from** | **optional.String**| The `index` of the first Sync List Item resource to read. See also `bounds`. | + **bounds** | **optional.String**| Whether to include the List Item referenced by the `from` parameter. Can be: `inclusive` to include the List Item referenced by the `from` parameter or `exclusive` to start with the next List Item. The default value is `inclusive`. | + **hideExpired** | **optional.String**| The default list of Sync List items will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**SyncV1ServiceSyncListSyncListItemReadResponse**](sync_v1_service_sync_list_sync_list_itemReadResponse.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) + + +## ListSyncListPermission + +> SyncV1ServiceSyncListSyncListPermissionReadResponse ListSyncListPermission(ctx, serviceSid, listSid, optional) + + + +Retrieve a list of all Permissions applying to a Sync List. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Permission resources to read. | +**listSid** | **string**| The SID of the Sync List with the Sync List Permission resources to read. Can be the Sync List resource's `sid` or its `unique_name`. | + **optional** | ***ListSyncListPermissionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListSyncListPermissionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**SyncV1ServiceSyncListSyncListPermissionReadResponse**](sync_v1_service_sync_list_sync_list_permissionReadResponse.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) + + +## ListSyncMap + +> SyncV1ServiceSyncMapReadResponse ListSyncMap(ctx, serviceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map resources to read. | + **optional** | ***ListSyncMapOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListSyncMapOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **hideExpired** | **optional.String**| The default list of Sync Maps will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**SyncV1ServiceSyncMapReadResponse**](sync_v1_service_sync_mapReadResponse.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) + + +## ListSyncMapItem + +> SyncV1ServiceSyncMapSyncMapItemReadResponse ListSyncMapItem(ctx, serviceSid, mapSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Map Item resources to read. | +**mapSid** | **string**| The SID of the Sync Map with the Sync Map Item resource to fetch. Can be the Sync Map's `sid` or its `unique_name`. | + **optional** | ***ListSyncMapItemOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListSyncMapItemOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **order** | **optional.String**| How to order the Map Items returned by their `key` value. Can be: `asc` (ascending) or `desc` (descending) and the default is ascending. Map Items are [ordered lexicographically](https://en.wikipedia.org/wiki/Lexicographical_order) by Item key. | + **from** | **optional.String**| The `key` of the first Sync Map Item resource to read. See also `bounds`. | + **bounds** | **optional.String**| Whether to include the Map Item referenced by the `from` parameter. Can be: `inclusive` to include the Map Item referenced by the `from` parameter or `exclusive` to start with the next Map Item. The default value is `inclusive`. | + **hideExpired** | **optional.String**| The default list of Sync Map items will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**SyncV1ServiceSyncMapSyncMapItemReadResponse**](sync_v1_service_sync_map_sync_map_itemReadResponse.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) + + +## ListSyncMapPermission + +> SyncV1ServiceSyncMapSyncMapPermissionReadResponse ListSyncMapPermission(ctx, serviceSid, mapSid, optional) + + + +Retrieve a list of all Permissions applying to a Sync Map. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Permission resources to read. Can be the Service's `sid` value or `default`. | +**mapSid** | **string**| The SID of the Sync Map with the Permission resources to read. Can be the Sync Map's `sid` or its `unique_name`. | + **optional** | ***ListSyncMapPermissionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListSyncMapPermissionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**SyncV1ServiceSyncMapSyncMapPermissionReadResponse**](sync_v1_service_sync_map_sync_map_permissionReadResponse.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) + + +## ListSyncStream + +> SyncV1ServiceSyncStreamReadResponse ListSyncStream(ctx, serviceSid, optional) + + + +Retrieve a list of all Streams in a Service Instance. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Stream resources to read. | + **optional** | ***ListSyncStreamOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListSyncStreamOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **hideExpired** | **optional.String**| The default list of Sync Streams will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**SyncV1ServiceSyncStreamReadResponse**](sync_v1_service_sync_streamReadResponse.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) + + +## UpdateDocument + +> SyncV1ServiceDocument UpdateDocument(ctx, serviceSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document resource to update. | +**sid** | **string**| The SID of the Document resource to update. | + **optional** | ***UpdateDocumentOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateDocumentOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **ifMatch** | **optional.String**| The If-Match HTTP request header | + **data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that represents an arbitrary, schema-less object that the Sync Document stores. Can be up to 16KB in length. | + **ttl** | **optional.Int32**| How long, in seconds, before the Sync Document expires and is deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Document resource does not expire. The Document resource will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | + +### Return type + +[**SyncV1ServiceDocument**](sync.v1.service.document.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) + + +## UpdateDocumentPermission + +> SyncV1ServiceDocumentDocumentPermission UpdateDocumentPermission(ctx, serviceSid, documentSid, identity, optional) + + + +Update an identity's access to a specific Sync Document. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document Permission resource to update. | +**documentSid** | **string**| The SID of the Sync Document with the Document Permission resource to update. Can be the Document resource's `sid` or its `unique_name`. | +**identity** | **string**| The application-defined string that uniquely identifies the User's Document Permission resource to update. | + **optional** | ***UpdateDocumentPermissionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateDocumentPermissionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **manage** | **optional.Bool**| Whether the identity can delete the Sync Document. Default value is `false`. | + **read** | **optional.Bool**| Whether the identity can read the Sync Document. Default value is `false`. | + **write** | **optional.Bool**| Whether the identity can update the Sync Document. Default value is `false`. | + +### Return type + +[**SyncV1ServiceDocumentDocumentPermission**](sync.v1.service.document.document_permission.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) + + +## UpdateService + +> SyncV1Service UpdateService(ctx, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Service resource to update. | + **optional** | ***UpdateServiceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateServiceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **aclEnabled** | **optional.Bool**| Whether token identities in the Service must be granted access to Sync objects by using the [Permissions](https://www.twilio.com/docs/sync/api/sync-permissions) resource. | + **friendlyName** | **optional.String**| A string that you assign to describe the resource. | + **reachabilityDebouncingEnabled** | **optional.Bool**| Whether every `endpoint_disconnected` event should occur after a configurable delay. The default is `false`, where the `endpoint_disconnected` event occurs immediately after disconnection. When `true`, intervening reconnections can prevent the `endpoint_disconnected` event. | + **reachabilityDebouncingWindow** | **optional.Int32**| The reachability event delay in milliseconds if `reachability_debouncing_enabled` = `true`. Must be between 1,000 and 30,000 and defaults to 5,000. This is the number of milliseconds after the last running client disconnects, and a Sync identity is declared offline, before the webhook is called if all endpoints remain offline. A reconnection from the same identity by any endpoint during this interval prevents the webhook from being called. | + **reachabilityWebhooksEnabled** | **optional.Bool**| Whether the service instance should call `webhook_url` when client endpoints connect to Sync. The default is `false`. | + **webhookUrl** | **optional.String**| The URL we should call when Sync objects are manipulated. | + **webhooksFromRestEnabled** | **optional.Bool**| Whether the Service instance should call `webhook_url` when the REST API is used to update Sync objects. The default is `false`. | + +### Return type + +[**SyncV1Service**](sync.v1.service.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) + + +## UpdateSyncList + +> SyncV1ServiceSyncList UpdateSyncList(ctx, serviceSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List resource to update. | +**sid** | **string**| The SID of the Sync List resource to update. | + **optional** | ***UpdateSyncListOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateSyncListOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **collectionTtl** | **optional.Int32**| How long, in seconds, before the Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | + **ttl** | **optional.Int32**| An alias for `collection_ttl`. If both are provided, this value is ignored. | + +### Return type + +[**SyncV1ServiceSyncList**](sync.v1.service.sync_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) + + +## UpdateSyncListItem + +> SyncV1ServiceSyncListSyncListItem UpdateSyncListItem(ctx, serviceSid, listSid, index, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Item resource to update. | +**listSid** | **string**| The SID of the Sync List with the Sync List Item resource to update. Can be the Sync List resource's `sid` or its `unique_name`. | +**index** | **int32**| The index of the Sync List Item resource to update. | + **optional** | ***UpdateSyncListItemOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateSyncListItemOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **ifMatch** | **optional.String**| The If-Match HTTP request header | + **collectionTtl** | **optional.Int32**| How long, in seconds, before the List Item's parent Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | + **data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that represents an arbitrary, schema-less object that the List Item stores. Can be up to 16KB in length. | + **itemTtl** | **optional.Int32**| How long, in seconds, before the List Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the List Item does not expire. The List Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | + **ttl** | **optional.Int32**| An alias for `item_ttl`. If both parameters are provided, this value is ignored. | + +### Return type + +[**SyncV1ServiceSyncListSyncListItem**](sync.v1.service.sync_list.sync_list_item.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) + + +## UpdateSyncListPermission + +> SyncV1ServiceSyncListSyncListPermission UpdateSyncListPermission(ctx, serviceSid, listSid, identity, optional) + + + +Update an identity's access to a specific Sync List. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Permission resource to update. | +**listSid** | **string**| The SID of the Sync List with the Sync List Permission resource to update. Can be the Sync List resource's `sid` or its `unique_name`. | +**identity** | **string**| The application-defined string that uniquely identifies the User's Sync List Permission resource to update. | + **optional** | ***UpdateSyncListPermissionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateSyncListPermissionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **manage** | **optional.Bool**| Whether the identity can delete the Sync List. Default value is `false`. | + **read** | **optional.Bool**| Whether the identity can read the Sync List and its Items. Default value is `false`. | + **write** | **optional.Bool**| Whether the identity can create, update, and delete Items in the Sync List. Default value is `false`. | + +### Return type + +[**SyncV1ServiceSyncListSyncListPermission**](sync.v1.service.sync_list.sync_list_permission.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) + + +## UpdateSyncMap + +> SyncV1ServiceSyncMap UpdateSyncMap(ctx, serviceSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map resource to update. | +**sid** | **string**| The SID of the Sync Map resource to update. | + **optional** | ***UpdateSyncMapOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateSyncMapOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **collectionTtl** | **optional.Int32**| How long, in seconds, before the Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync Map does not expire. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | + **ttl** | **optional.Int32**| An alias for `collection_ttl`. If both parameters are provided, this value is ignored. | + +### Return type + +[**SyncV1ServiceSyncMap**](sync.v1.service.sync_map.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) + + +## UpdateSyncMapItem + +> SyncV1ServiceSyncMapSyncMapItem UpdateSyncMapItem(ctx, serviceSid, mapSid, key, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Item resource to update. | +**mapSid** | **string**| The SID of the Sync Map with the Sync Map Item resource to update. Can be the Sync Map's `sid` or its `unique_name`. | +**key** | **string**| The `key` value of the Sync Map Item resource to update. | + **optional** | ***UpdateSyncMapItemOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateSyncMapItemOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **ifMatch** | **optional.String**| The If-Match HTTP request header | + **collectionTtl** | **optional.Int32**| How long, in seconds, before the Map Item's parent Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync Map does not expire. This parameter can only be used when the Map Item's `data` or `ttl` is updated in the same request. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | + **data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that represents an arbitrary, schema-less object that the Map Item stores. Can be up to 16KB in length. | + **itemTtl** | **optional.Int32**| How long, in seconds, before the Map Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Map Item does not expire. The Map Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | + **ttl** | **optional.Int32**| An alias for `item_ttl`. If both parameters are provided, this value is ignored. | + +### Return type + +[**SyncV1ServiceSyncMapSyncMapItem**](sync.v1.service.sync_map.sync_map_item.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) + + +## UpdateSyncMapPermission + +> SyncV1ServiceSyncMapSyncMapPermission UpdateSyncMapPermission(ctx, serviceSid, mapSid, identity, optional) + + + +Update an identity's access to a specific Sync Map. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Permission resource to update. Can be the Service's `sid` value or `default`. | +**mapSid** | **string**| The SID of the Sync Map with the Sync Map Permission resource to update. Can be the Sync Map's `sid` or its `unique_name`. | +**identity** | **string**| The application-defined string that uniquely identifies the User's Sync Map Permission resource to update. | + **optional** | ***UpdateSyncMapPermissionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateSyncMapPermissionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **manage** | **optional.Bool**| Whether the identity can delete the Sync Map. Default value is `false`. | + **read** | **optional.Bool**| Whether the identity can read the Sync Map and its Items. Default value is `false`. | + **write** | **optional.Bool**| Whether the identity can create, update, and delete Items in the Sync Map. Default value is `false`. | + +### Return type + +[**SyncV1ServiceSyncMapSyncMapPermission**](sync.v1.service.sync_map.sync_map_permission.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) + + +## UpdateSyncStream + +> SyncV1ServiceSyncStream UpdateSyncStream(ctx, serviceSid, sid, optional) + + + +Update a specific Stream. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Stream resource to update. | +**sid** | **string**| The SID of the Stream resource to update. | + **optional** | ***UpdateSyncStreamOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateSyncStreamOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **ttl** | **optional.Int32**| How long, in seconds, before the Stream expires and is deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Stream does not expire. The Stream will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | + +### Return type + +[**SyncV1ServiceSyncStream**](sync.v1.service.sync_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) + diff --git a/rest/sync/v1/docs/SyncV1Service.md b/rest/sync/v1/docs/SyncV1Service.md new file mode 100644 index 000000000..766e16cae --- /dev/null +++ b/rest/sync/v1/docs/SyncV1Service.md @@ -0,0 +1,24 @@ +# SyncV1Service + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AclEnabled** | **bool** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**ReachabilityDebouncingEnabled** | **bool** | | [optional] +**ReachabilityDebouncingWindow** | **int32** | | [optional] +**ReachabilityWebhooksEnabled** | **bool** | | [optional] +**Sid** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **string** | | [optional] +**WebhookUrl** | **string** | | [optional] +**WebhooksFromRestEnabled** | **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/rest/sync/v1/docs/SyncV1ServiceDocument.md b/rest/sync/v1/docs/SyncV1ServiceDocument.md new file mode 100644 index 000000000..8bafa5cd2 --- /dev/null +++ b/rest/sync/v1/docs/SyncV1ServiceDocument.md @@ -0,0 +1,22 @@ +# SyncV1ServiceDocument + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**CreatedBy** | **string** | | [optional] +**Data** | [**map[string]interface{}**](.md) | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateExpires** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Revision** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **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/rest/sync/v1/docs/SyncV1ServiceDocumentDocumentPermission.md b/rest/sync/v1/docs/SyncV1ServiceDocumentDocumentPermission.md new file mode 100644 index 000000000..e23c370dd --- /dev/null +++ b/rest/sync/v1/docs/SyncV1ServiceDocumentDocumentPermission.md @@ -0,0 +1,18 @@ +# SyncV1ServiceDocumentDocumentPermission + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DocumentSid** | **string** | | [optional] +**Identity** | **string** | | [optional] +**Manage** | **bool** | | [optional] +**Read** | **bool** | | [optional] +**ServiceSid** | **string** | | [optional] +**Url** | **string** | | [optional] +**Write** | **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/rest/sync/v1/docs/SyncV1ServiceDocumentDocumentPermissionReadResponse.md b/rest/sync/v1/docs/SyncV1ServiceDocumentDocumentPermissionReadResponse.md new file mode 100644 index 000000000..4d72a1cb2 --- /dev/null +++ b/rest/sync/v1/docs/SyncV1ServiceDocumentDocumentPermissionReadResponse.md @@ -0,0 +1,12 @@ +# SyncV1ServiceDocumentDocumentPermissionReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**SyncV1ServiceReadResponseMeta**](sync_v1_serviceReadResponse_meta.md) | | [optional] +**Permissions** | [**[]SyncV1ServiceDocumentDocumentPermission**](sync.v1.service.document.document_permission.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/rest/sync/v1/docs/SyncV1ServiceDocumentReadResponse.md b/rest/sync/v1/docs/SyncV1ServiceDocumentReadResponse.md new file mode 100644 index 000000000..86f913f89 --- /dev/null +++ b/rest/sync/v1/docs/SyncV1ServiceDocumentReadResponse.md @@ -0,0 +1,12 @@ +# SyncV1ServiceDocumentReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Documents** | [**[]SyncV1ServiceDocument**](sync.v1.service.document.md) | | [optional] +**Meta** | [**SyncV1ServiceReadResponseMeta**](sync_v1_serviceReadResponse_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/rest/sync/v1/docs/SyncV1ServiceReadResponse.md b/rest/sync/v1/docs/SyncV1ServiceReadResponse.md new file mode 100644 index 000000000..4adf9d93a --- /dev/null +++ b/rest/sync/v1/docs/SyncV1ServiceReadResponse.md @@ -0,0 +1,12 @@ +# SyncV1ServiceReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**SyncV1ServiceReadResponseMeta**](sync_v1_serviceReadResponse_meta.md) | | [optional] +**Services** | [**[]SyncV1Service**](sync.v1.service.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/rest/sync/v1/docs/SyncV1ServiceReadResponseMeta.md b/rest/sync/v1/docs/SyncV1ServiceReadResponseMeta.md new file mode 100644 index 000000000..f68082c37 --- /dev/null +++ b/rest/sync/v1/docs/SyncV1ServiceReadResponseMeta.md @@ -0,0 +1,17 @@ +# SyncV1ServiceReadResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/sync/v1/docs/SyncV1ServiceSyncList.md b/rest/sync/v1/docs/SyncV1ServiceSyncList.md new file mode 100644 index 000000000..9dc88266e --- /dev/null +++ b/rest/sync/v1/docs/SyncV1ServiceSyncList.md @@ -0,0 +1,21 @@ +# SyncV1ServiceSyncList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**CreatedBy** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateExpires** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Revision** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **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/rest/sync/v1/docs/SyncV1ServiceSyncListReadResponse.md b/rest/sync/v1/docs/SyncV1ServiceSyncListReadResponse.md new file mode 100644 index 000000000..5c1dec03d --- /dev/null +++ b/rest/sync/v1/docs/SyncV1ServiceSyncListReadResponse.md @@ -0,0 +1,12 @@ +# SyncV1ServiceSyncListReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Lists** | [**[]SyncV1ServiceSyncList**](sync.v1.service.sync_list.md) | | [optional] +**Meta** | [**SyncV1ServiceReadResponseMeta**](sync_v1_serviceReadResponse_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/rest/sync/v1/docs/SyncV1ServiceSyncListSyncListItem.md b/rest/sync/v1/docs/SyncV1ServiceSyncListSyncListItem.md new file mode 100644 index 000000000..27b8ecd7f --- /dev/null +++ b/rest/sync/v1/docs/SyncV1ServiceSyncListSyncListItem.md @@ -0,0 +1,21 @@ +# SyncV1ServiceSyncListSyncListItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**CreatedBy** | **string** | | [optional] +**Data** | [**map[string]interface{}**](.md) | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateExpires** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Index** | **int32** | | [optional] +**ListSid** | **string** | | [optional] +**Revision** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Url** | **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/rest/sync/v1/docs/SyncV1ServiceSyncListSyncListItemReadResponse.md b/rest/sync/v1/docs/SyncV1ServiceSyncListSyncListItemReadResponse.md new file mode 100644 index 000000000..d2ee458f2 --- /dev/null +++ b/rest/sync/v1/docs/SyncV1ServiceSyncListSyncListItemReadResponse.md @@ -0,0 +1,12 @@ +# SyncV1ServiceSyncListSyncListItemReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | [**[]SyncV1ServiceSyncListSyncListItem**](sync.v1.service.sync_list.sync_list_item.md) | | [optional] +**Meta** | [**SyncV1ServiceReadResponseMeta**](sync_v1_serviceReadResponse_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/rest/sync/v1/docs/SyncV1ServiceSyncListSyncListPermission.md b/rest/sync/v1/docs/SyncV1ServiceSyncListSyncListPermission.md new file mode 100644 index 000000000..346314607 --- /dev/null +++ b/rest/sync/v1/docs/SyncV1ServiceSyncListSyncListPermission.md @@ -0,0 +1,18 @@ +# SyncV1ServiceSyncListSyncListPermission + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Identity** | **string** | | [optional] +**ListSid** | **string** | | [optional] +**Manage** | **bool** | | [optional] +**Read** | **bool** | | [optional] +**ServiceSid** | **string** | | [optional] +**Url** | **string** | | [optional] +**Write** | **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/rest/sync/v1/docs/SyncV1ServiceSyncListSyncListPermissionReadResponse.md b/rest/sync/v1/docs/SyncV1ServiceSyncListSyncListPermissionReadResponse.md new file mode 100644 index 000000000..4f532d309 --- /dev/null +++ b/rest/sync/v1/docs/SyncV1ServiceSyncListSyncListPermissionReadResponse.md @@ -0,0 +1,12 @@ +# SyncV1ServiceSyncListSyncListPermissionReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**SyncV1ServiceReadResponseMeta**](sync_v1_serviceReadResponse_meta.md) | | [optional] +**Permissions** | [**[]SyncV1ServiceSyncListSyncListPermission**](sync.v1.service.sync_list.sync_list_permission.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/rest/sync/v1/docs/SyncV1ServiceSyncMap.md b/rest/sync/v1/docs/SyncV1ServiceSyncMap.md new file mode 100644 index 000000000..402607d52 --- /dev/null +++ b/rest/sync/v1/docs/SyncV1ServiceSyncMap.md @@ -0,0 +1,21 @@ +# SyncV1ServiceSyncMap + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**CreatedBy** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateExpires** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Revision** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **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/rest/sync/v1/docs/SyncV1ServiceSyncMapReadResponse.md b/rest/sync/v1/docs/SyncV1ServiceSyncMapReadResponse.md new file mode 100644 index 000000000..91652ba33 --- /dev/null +++ b/rest/sync/v1/docs/SyncV1ServiceSyncMapReadResponse.md @@ -0,0 +1,12 @@ +# SyncV1ServiceSyncMapReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Maps** | [**[]SyncV1ServiceSyncMap**](sync.v1.service.sync_map.md) | | [optional] +**Meta** | [**SyncV1ServiceReadResponseMeta**](sync_v1_serviceReadResponse_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/rest/sync/v1/docs/SyncV1ServiceSyncMapSyncMapItem.md b/rest/sync/v1/docs/SyncV1ServiceSyncMapSyncMapItem.md new file mode 100644 index 000000000..913b1300b --- /dev/null +++ b/rest/sync/v1/docs/SyncV1ServiceSyncMapSyncMapItem.md @@ -0,0 +1,21 @@ +# SyncV1ServiceSyncMapSyncMapItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**CreatedBy** | **string** | | [optional] +**Data** | [**map[string]interface{}**](.md) | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateExpires** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Key** | **string** | | [optional] +**MapSid** | **string** | | [optional] +**Revision** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Url** | **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/rest/sync/v1/docs/SyncV1ServiceSyncMapSyncMapItemReadResponse.md b/rest/sync/v1/docs/SyncV1ServiceSyncMapSyncMapItemReadResponse.md new file mode 100644 index 000000000..56add63dd --- /dev/null +++ b/rest/sync/v1/docs/SyncV1ServiceSyncMapSyncMapItemReadResponse.md @@ -0,0 +1,12 @@ +# SyncV1ServiceSyncMapSyncMapItemReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | [**[]SyncV1ServiceSyncMapSyncMapItem**](sync.v1.service.sync_map.sync_map_item.md) | | [optional] +**Meta** | [**SyncV1ServiceReadResponseMeta**](sync_v1_serviceReadResponse_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/rest/sync/v1/docs/SyncV1ServiceSyncMapSyncMapPermission.md b/rest/sync/v1/docs/SyncV1ServiceSyncMapSyncMapPermission.md new file mode 100644 index 000000000..39eb74db2 --- /dev/null +++ b/rest/sync/v1/docs/SyncV1ServiceSyncMapSyncMapPermission.md @@ -0,0 +1,18 @@ +# SyncV1ServiceSyncMapSyncMapPermission + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Identity** | **string** | | [optional] +**Manage** | **bool** | | [optional] +**MapSid** | **string** | | [optional] +**Read** | **bool** | | [optional] +**ServiceSid** | **string** | | [optional] +**Url** | **string** | | [optional] +**Write** | **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/rest/sync/v1/docs/SyncV1ServiceSyncMapSyncMapPermissionReadResponse.md b/rest/sync/v1/docs/SyncV1ServiceSyncMapSyncMapPermissionReadResponse.md new file mode 100644 index 000000000..f4410d5ee --- /dev/null +++ b/rest/sync/v1/docs/SyncV1ServiceSyncMapSyncMapPermissionReadResponse.md @@ -0,0 +1,12 @@ +# SyncV1ServiceSyncMapSyncMapPermissionReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**SyncV1ServiceReadResponseMeta**](sync_v1_serviceReadResponse_meta.md) | | [optional] +**Permissions** | [**[]SyncV1ServiceSyncMapSyncMapPermission**](sync.v1.service.sync_map.sync_map_permission.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/rest/sync/v1/docs/SyncV1ServiceSyncStream.md b/rest/sync/v1/docs/SyncV1ServiceSyncStream.md new file mode 100644 index 000000000..871d64901 --- /dev/null +++ b/rest/sync/v1/docs/SyncV1ServiceSyncStream.md @@ -0,0 +1,20 @@ +# SyncV1ServiceSyncStream + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**CreatedBy** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateExpires** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **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/rest/sync/v1/docs/SyncV1ServiceSyncStreamReadResponse.md b/rest/sync/v1/docs/SyncV1ServiceSyncStreamReadResponse.md new file mode 100644 index 000000000..b87034a56 --- /dev/null +++ b/rest/sync/v1/docs/SyncV1ServiceSyncStreamReadResponse.md @@ -0,0 +1,12 @@ +# SyncV1ServiceSyncStreamReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**SyncV1ServiceReadResponseMeta**](sync_v1_serviceReadResponse_meta.md) | | [optional] +**Streams** | [**[]SyncV1ServiceSyncStream**](sync.v1.service.sync_stream.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/rest/sync/v1/docs/SyncV1ServiceSyncStreamStreamMessage.md b/rest/sync/v1/docs/SyncV1ServiceSyncStreamStreamMessage.md new file mode 100644 index 000000000..ce68e9693 --- /dev/null +++ b/rest/sync/v1/docs/SyncV1ServiceSyncStreamStreamMessage.md @@ -0,0 +1,12 @@ +# SyncV1ServiceSyncStreamStreamMessage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**map[string]interface{}**](.md) | | [optional] +**Sid** | **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/rest/sync/v1/docs/UpdateDocumentPermissionRequest.md b/rest/sync/v1/docs/UpdateDocumentPermissionRequest.md new file mode 100644 index 000000000..e9f6fe159 --- /dev/null +++ b/rest/sync/v1/docs/UpdateDocumentPermissionRequest.md @@ -0,0 +1,13 @@ +# UpdateDocumentPermissionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Manage** | **bool** | Whether the identity can delete the Sync Document. Default value is `false`. | +**Read** | **bool** | Whether the identity can read the Sync Document. Default value is `false`. | +**Write** | **bool** | Whether the identity can update the Sync Document. Default value is `false`. | + +[[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/rest/sync/v1/docs/UpdateDocumentRequest.md b/rest/sync/v1/docs/UpdateDocumentRequest.md new file mode 100644 index 000000000..4c6d25fcc --- /dev/null +++ b/rest/sync/v1/docs/UpdateDocumentRequest.md @@ -0,0 +1,12 @@ +# UpdateDocumentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**map[string]interface{}**](.md) | A JSON string that represents an arbitrary, schema-less object that the Sync Document stores. Can be up to 16KB in length. | [optional] +**Ttl** | **int32** | How long, in seconds, before the Sync Document expires and is deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Document resource does not expire. The Document resource will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | [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/rest/sync/v1/docs/UpdateServiceRequest.md b/rest/sync/v1/docs/UpdateServiceRequest.md new file mode 100644 index 000000000..64731f0f0 --- /dev/null +++ b/rest/sync/v1/docs/UpdateServiceRequest.md @@ -0,0 +1,17 @@ +# UpdateServiceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AclEnabled** | **bool** | Whether token identities in the Service must be granted access to Sync objects by using the [Permissions](https://www.twilio.com/docs/sync/api/sync-permissions) resource. | [optional] +**FriendlyName** | **string** | A string that you assign to describe the resource. | [optional] +**ReachabilityDebouncingEnabled** | **bool** | Whether every `endpoint_disconnected` event should occur after a configurable delay. The default is `false`, where the `endpoint_disconnected` event occurs immediately after disconnection. When `true`, intervening reconnections can prevent the `endpoint_disconnected` event. | [optional] +**ReachabilityDebouncingWindow** | **int32** | The reachability event delay in milliseconds if `reachability_debouncing_enabled` = `true`. Must be between 1,000 and 30,000 and defaults to 5,000. This is the number of milliseconds after the last running client disconnects, and a Sync identity is declared offline, before the webhook is called if all endpoints remain offline. A reconnection from the same identity by any endpoint during this interval prevents the webhook from being called. | [optional] +**ReachabilityWebhooksEnabled** | **bool** | Whether the service instance should call `webhook_url` when client endpoints connect to Sync. The default is `false`. | [optional] +**WebhookUrl** | **string** | The URL we should call when Sync objects are manipulated. | [optional] +**WebhooksFromRestEnabled** | **bool** | Whether the Service instance should call `webhook_url` when the REST API is used to update Sync objects. The default is `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/rest/sync/v1/docs/UpdateSyncListItemRequest.md b/rest/sync/v1/docs/UpdateSyncListItemRequest.md new file mode 100644 index 000000000..02031f30c --- /dev/null +++ b/rest/sync/v1/docs/UpdateSyncListItemRequest.md @@ -0,0 +1,14 @@ +# UpdateSyncListItemRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CollectionTtl** | **int32** | How long, in seconds, before the List Item's parent Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | [optional] +**Data** | [**map[string]interface{}**](.md) | A JSON string that represents an arbitrary, schema-less object that the List Item stores. Can be up to 16KB in length. | [optional] +**ItemTtl** | **int32** | How long, in seconds, before the List Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the List Item does not expire. The List Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | [optional] +**Ttl** | **int32** | An alias for `item_ttl`. If both parameters are provided, this value is ignored. | [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/rest/sync/v1/docs/UpdateSyncListPermissionRequest.md b/rest/sync/v1/docs/UpdateSyncListPermissionRequest.md new file mode 100644 index 000000000..9cd7cf27a --- /dev/null +++ b/rest/sync/v1/docs/UpdateSyncListPermissionRequest.md @@ -0,0 +1,13 @@ +# UpdateSyncListPermissionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Manage** | **bool** | Whether the identity can delete the Sync List. Default value is `false`. | +**Read** | **bool** | Whether the identity can read the Sync List and its Items. Default value is `false`. | +**Write** | **bool** | Whether the identity can create, update, and delete Items in the Sync List. Default value is `false`. | + +[[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/rest/sync/v1/docs/UpdateSyncListRequest.md b/rest/sync/v1/docs/UpdateSyncListRequest.md new file mode 100644 index 000000000..601226ace --- /dev/null +++ b/rest/sync/v1/docs/UpdateSyncListRequest.md @@ -0,0 +1,12 @@ +# UpdateSyncListRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CollectionTtl** | **int32** | How long, in seconds, before the Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | [optional] +**Ttl** | **int32** | An alias for `collection_ttl`. If both are provided, this value is ignored. | [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/rest/sync/v1/docs/UpdateSyncMapItemRequest.md b/rest/sync/v1/docs/UpdateSyncMapItemRequest.md new file mode 100644 index 000000000..09cac72dd --- /dev/null +++ b/rest/sync/v1/docs/UpdateSyncMapItemRequest.md @@ -0,0 +1,14 @@ +# UpdateSyncMapItemRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CollectionTtl** | **int32** | How long, in seconds, before the Map Item's parent Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync Map does not expire. This parameter can only be used when the Map Item's `data` or `ttl` is updated in the same request. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | [optional] +**Data** | [**map[string]interface{}**](.md) | A JSON string that represents an arbitrary, schema-less object that the Map Item stores. Can be up to 16KB in length. | [optional] +**ItemTtl** | **int32** | How long, in seconds, before the Map Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Map Item does not expire. The Map Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | [optional] +**Ttl** | **int32** | An alias for `item_ttl`. If both parameters are provided, this value is ignored. | [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/rest/sync/v1/docs/UpdateSyncMapPermissionRequest.md b/rest/sync/v1/docs/UpdateSyncMapPermissionRequest.md new file mode 100644 index 000000000..8ede52c01 --- /dev/null +++ b/rest/sync/v1/docs/UpdateSyncMapPermissionRequest.md @@ -0,0 +1,13 @@ +# UpdateSyncMapPermissionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Manage** | **bool** | Whether the identity can delete the Sync Map. Default value is `false`. | +**Read** | **bool** | Whether the identity can read the Sync Map and its Items. Default value is `false`. | +**Write** | **bool** | Whether the identity can create, update, and delete Items in the Sync Map. Default value is `false`. | + +[[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/rest/sync/v1/docs/UpdateSyncMapRequest.md b/rest/sync/v1/docs/UpdateSyncMapRequest.md new file mode 100644 index 000000000..4463a0b7b --- /dev/null +++ b/rest/sync/v1/docs/UpdateSyncMapRequest.md @@ -0,0 +1,12 @@ +# UpdateSyncMapRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CollectionTtl** | **int32** | How long, in seconds, before the Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync Map does not expire. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | [optional] +**Ttl** | **int32** | An alias for `collection_ttl`. If both parameters are provided, this value is ignored. | [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/rest/sync/v1/docs/UpdateSyncStreamRequest.md b/rest/sync/v1/docs/UpdateSyncStreamRequest.md new file mode 100644 index 000000000..431d333d8 --- /dev/null +++ b/rest/sync/v1/docs/UpdateSyncStreamRequest.md @@ -0,0 +1,11 @@ +# UpdateSyncStreamRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Ttl** | **int32** | How long, in seconds, before the Stream expires and is deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Stream does not expire. The Stream will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | [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/rest/sync/v1/model_create_document_request.go b/rest/sync/v1/model_create_document_request.go new file mode 100644 index 000000000..c04744ab1 --- /dev/null +++ b/rest/sync/v1/model_create_document_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateDocumentRequest struct for CreateDocumentRequest +type CreateDocumentRequest struct { + // A JSON string that represents an arbitrary, schema-less object that the Sync Document stores. Can be up to 16KB in length. + Data map[string]interface{} `json:"Data,omitempty"` + // How long, in seconds, before the Sync Document expires and is deleted (the Sync Document's time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync Document does not expire. The Sync Document will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. + Ttl int32 `json:"Ttl,omitempty"` + // An application-defined string that uniquely identifies the Sync Document + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/sync/v1/model_create_service_request.go b/rest/sync/v1/model_create_service_request.go new file mode 100644 index 000000000..98508f41f --- /dev/null +++ b/rest/sync/v1/model_create_service_request.go @@ -0,0 +1,28 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateServiceRequest struct for CreateServiceRequest +type CreateServiceRequest struct { + // Whether token identities in the Service must be granted access to Sync objects by using the [Permissions](https://www.twilio.com/docs/sync/api/sync-permissions) resource. + AclEnabled bool `json:"AclEnabled,omitempty"` + // A string that you assign to describe the resource. + FriendlyName string `json:"FriendlyName,omitempty"` + // Whether every `endpoint_disconnected` event should occur after a configurable delay. The default is `false`, where the `endpoint_disconnected` event occurs immediately after disconnection. When `true`, intervening reconnections can prevent the `endpoint_disconnected` event. + ReachabilityDebouncingEnabled bool `json:"ReachabilityDebouncingEnabled,omitempty"` + // The reachability event delay in milliseconds if `reachability_debouncing_enabled` = `true`. Must be between 1,000 and 30,000 and defaults to 5,000. This is the number of milliseconds after the last running client disconnects, and a Sync identity is declared offline, before the `webhook_url` is called if all endpoints remain offline. A reconnection from the same identity by any endpoint during this interval prevents the call to `webhook_url`. + ReachabilityDebouncingWindow int32 `json:"ReachabilityDebouncingWindow,omitempty"` + // Whether the service instance should call `webhook_url` when client endpoints connect to Sync. The default is `false`. + ReachabilityWebhooksEnabled bool `json:"ReachabilityWebhooksEnabled,omitempty"` + // The URL we should call when Sync objects are manipulated. + WebhookUrl string `json:"WebhookUrl,omitempty"` + // Whether the Service instance should call `webhook_url` when the REST API is used to update Sync objects. The default is `false`. + WebhooksFromRestEnabled bool `json:"WebhooksFromRestEnabled,omitempty"` +} diff --git a/rest/sync/v1/model_create_stream_message_request.go b/rest/sync/v1/model_create_stream_message_request.go new file mode 100644 index 000000000..997f56310 --- /dev/null +++ b/rest/sync/v1/model_create_stream_message_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateStreamMessageRequest struct for CreateStreamMessageRequest +type CreateStreamMessageRequest struct { + // A JSON string that represents an arbitrary, schema-less object that makes up the Stream Message body. Can be up to 4KB in length. + Data map[string]interface{} `json:"Data"` +} diff --git a/rest/sync/v1/model_create_sync_list_item_request.go b/rest/sync/v1/model_create_sync_list_item_request.go new file mode 100644 index 000000000..8b1e64b6f --- /dev/null +++ b/rest/sync/v1/model_create_sync_list_item_request.go @@ -0,0 +1,22 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateSyncListItemRequest struct for CreateSyncListItemRequest +type CreateSyncListItemRequest struct { + // How long, in seconds, before the List Item's parent Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. + CollectionTtl int32 `json:"CollectionTtl,omitempty"` + // A JSON string that represents an arbitrary, schema-less object that the List Item stores. Can be up to 16KB in length. + Data map[string]interface{} `json:"Data"` + // How long, in seconds, before the List Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the List Item does not expire. The List Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. + ItemTtl int32 `json:"ItemTtl,omitempty"` + // An alias for `item_ttl`. If both parameters are provided, this value is ignored. + Ttl int32 `json:"Ttl,omitempty"` +} diff --git a/rest/sync/v1/model_create_sync_list_request.go b/rest/sync/v1/model_create_sync_list_request.go new file mode 100644 index 000000000..1b9ce78ca --- /dev/null +++ b/rest/sync/v1/model_create_sync_list_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateSyncListRequest struct for CreateSyncListRequest +type CreateSyncListRequest struct { + // How long, in seconds, before the Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. + CollectionTtl int32 `json:"CollectionTtl,omitempty"` + // Alias for collection_ttl. If both are provided, this value is ignored. + Ttl int32 `json:"Ttl,omitempty"` + // An application-defined string that uniquely identifies the resource. This value must be unique within its Service and it can be up to 320 characters long. The `unique_name` value can be used as an alternative to the `sid` in the URL path to address the resource. + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/sync/v1/model_create_sync_map_item_request.go b/rest/sync/v1/model_create_sync_map_item_request.go new file mode 100644 index 000000000..ffa978ac4 --- /dev/null +++ b/rest/sync/v1/model_create_sync_map_item_request.go @@ -0,0 +1,24 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateSyncMapItemRequest struct for CreateSyncMapItemRequest +type CreateSyncMapItemRequest struct { + // How long, in seconds, before the Map Item's parent Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync Map does not expire. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. + CollectionTtl int32 `json:"CollectionTtl,omitempty"` + // A JSON string that represents an arbitrary, schema-less object that the Map Item stores. Can be up to 16KB in length. + Data map[string]interface{} `json:"Data"` + // How long, in seconds, before the Map Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Map Item does not expire. The Map Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. + ItemTtl int32 `json:"ItemTtl,omitempty"` + // The unique, user-defined key for the Map Item. Can be up to 320 characters long. + Key string `json:"Key"` + // An alias for `item_ttl`. If both parameters are provided, this value is ignored. + Ttl int32 `json:"Ttl,omitempty"` +} diff --git a/rest/sync/v1/model_create_sync_map_request.go b/rest/sync/v1/model_create_sync_map_request.go new file mode 100644 index 000000000..af4ae4539 --- /dev/null +++ b/rest/sync/v1/model_create_sync_map_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateSyncMapRequest struct for CreateSyncMapRequest +type CreateSyncMapRequest struct { + // How long, in seconds, before the Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync Map does not expire. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. + CollectionTtl int32 `json:"CollectionTtl,omitempty"` + // An alias for `collection_ttl`. If both parameters are provided, this value is ignored. + Ttl int32 `json:"Ttl,omitempty"` + // An application-defined string that uniquely identifies the resource. It can be used as an alternative to the `sid` in the URL path to address the resource. + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/sync/v1/model_create_sync_stream_request.go b/rest/sync/v1/model_create_sync_stream_request.go new file mode 100644 index 000000000..baf07bc96 --- /dev/null +++ b/rest/sync/v1/model_create_sync_stream_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateSyncStreamRequest struct for CreateSyncStreamRequest +type CreateSyncStreamRequest struct { + // How long, in seconds, before the Stream expires and is deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Stream does not expire. The Stream will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. + Ttl int32 `json:"Ttl,omitempty"` + // An application-defined string that uniquely identifies the resource. This value must be unique within its Service and it can be up to 320 characters long. The `unique_name` value can be used as an alternative to the `sid` in the URL path to address the resource. + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/sync/v1/model_sync_v1_service.go b/rest/sync/v1/model_sync_v1_service.go new file mode 100644 index 000000000..ec08b5b07 --- /dev/null +++ b/rest/sync/v1/model_sync_v1_service.go @@ -0,0 +1,31 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// SyncV1Service struct for SyncV1Service +type SyncV1Service struct { + AccountSid string `json:"account_sid,omitempty"` + AclEnabled bool `json:"acl_enabled,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + ReachabilityDebouncingEnabled bool `json:"reachability_debouncing_enabled,omitempty"` + ReachabilityDebouncingWindow int32 `json:"reachability_debouncing_window,omitempty"` + ReachabilityWebhooksEnabled bool `json:"reachability_webhooks_enabled,omitempty"` + Sid string `json:"sid,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` + WebhookUrl string `json:"webhook_url,omitempty"` + WebhooksFromRestEnabled bool `json:"webhooks_from_rest_enabled,omitempty"` +} diff --git a/rest/sync/v1/model_sync_v1_service_document.go b/rest/sync/v1/model_sync_v1_service_document.go new file mode 100644 index 000000000..cad160a6b --- /dev/null +++ b/rest/sync/v1/model_sync_v1_service_document.go @@ -0,0 +1,29 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// SyncV1ServiceDocument struct for SyncV1ServiceDocument +type SyncV1ServiceDocument struct { + AccountSid string `json:"account_sid,omitempty"` + CreatedBy string `json:"created_by,omitempty"` + Data map[string]interface{} `json:"data,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateExpires time.Time `json:"date_expires,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Revision string `json:"revision,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/sync/v1/model_sync_v1_service_document_document_permission.go b/rest/sync/v1/model_sync_v1_service_document_document_permission.go new file mode 100644 index 000000000..c0dfb0c36 --- /dev/null +++ b/rest/sync/v1/model_sync_v1_service_document_document_permission.go @@ -0,0 +1,22 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// SyncV1ServiceDocumentDocumentPermission struct for SyncV1ServiceDocumentDocumentPermission +type SyncV1ServiceDocumentDocumentPermission struct { + AccountSid string `json:"account_sid,omitempty"` + DocumentSid string `json:"document_sid,omitempty"` + Identity string `json:"identity,omitempty"` + Manage bool `json:"manage,omitempty"` + Read bool `json:"read,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Url string `json:"url,omitempty"` + Write bool `json:"write,omitempty"` +} diff --git a/rest/sync/v1/model_sync_v1_service_document_document_permission_read_response.go b/rest/sync/v1/model_sync_v1_service_document_document_permission_read_response.go new file mode 100644 index 000000000..c0d3ee022 --- /dev/null +++ b/rest/sync/v1/model_sync_v1_service_document_document_permission_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// SyncV1ServiceDocumentDocumentPermissionReadResponse struct for SyncV1ServiceDocumentDocumentPermissionReadResponse +type SyncV1ServiceDocumentDocumentPermissionReadResponse struct { + Meta SyncV1ServiceReadResponseMeta `json:"meta,omitempty"` + Permissions []SyncV1ServiceDocumentDocumentPermission `json:"permissions,omitempty"` +} diff --git a/rest/sync/v1/model_sync_v1_service_document_read_response.go b/rest/sync/v1/model_sync_v1_service_document_read_response.go new file mode 100644 index 000000000..38115c559 --- /dev/null +++ b/rest/sync/v1/model_sync_v1_service_document_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// SyncV1ServiceDocumentReadResponse struct for SyncV1ServiceDocumentReadResponse +type SyncV1ServiceDocumentReadResponse struct { + Documents []SyncV1ServiceDocument `json:"documents,omitempty"` + Meta SyncV1ServiceReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/sync/v1/model_sync_v1_service_read_response.go b/rest/sync/v1/model_sync_v1_service_read_response.go new file mode 100644 index 000000000..a693f4172 --- /dev/null +++ b/rest/sync/v1/model_sync_v1_service_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// SyncV1ServiceReadResponse struct for SyncV1ServiceReadResponse +type SyncV1ServiceReadResponse struct { + Meta SyncV1ServiceReadResponseMeta `json:"meta,omitempty"` + Services []SyncV1Service `json:"services,omitempty"` +} diff --git a/rest/sync/v1/model_sync_v1_service_read_response_meta.go b/rest/sync/v1/model_sync_v1_service_read_response_meta.go new file mode 100644 index 000000000..30bd8e9ed --- /dev/null +++ b/rest/sync/v1/model_sync_v1_service_read_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// SyncV1ServiceReadResponseMeta struct for SyncV1ServiceReadResponseMeta +type SyncV1ServiceReadResponseMeta struct { + FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` + NextPageUrl string `json:"next_page_url,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUrl string `json:"previous_page_url,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/sync/v1/model_sync_v1_service_sync_list.go b/rest/sync/v1/model_sync_v1_service_sync_list.go new file mode 100644 index 000000000..2a0df49fc --- /dev/null +++ b/rest/sync/v1/model_sync_v1_service_sync_list.go @@ -0,0 +1,28 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// SyncV1ServiceSyncList struct for SyncV1ServiceSyncList +type SyncV1ServiceSyncList struct { + AccountSid string `json:"account_sid,omitempty"` + CreatedBy string `json:"created_by,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateExpires time.Time `json:"date_expires,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Revision string `json:"revision,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/sync/v1/model_sync_v1_service_sync_list_read_response.go b/rest/sync/v1/model_sync_v1_service_sync_list_read_response.go new file mode 100644 index 000000000..126bc8a57 --- /dev/null +++ b/rest/sync/v1/model_sync_v1_service_sync_list_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// SyncV1ServiceSyncListReadResponse struct for SyncV1ServiceSyncListReadResponse +type SyncV1ServiceSyncListReadResponse struct { + Lists []SyncV1ServiceSyncList `json:"lists,omitempty"` + Meta SyncV1ServiceReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_item.go b/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_item.go new file mode 100644 index 000000000..47ebc8973 --- /dev/null +++ b/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_item.go @@ -0,0 +1,28 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// SyncV1ServiceSyncListSyncListItem struct for SyncV1ServiceSyncListSyncListItem +type SyncV1ServiceSyncListSyncListItem struct { + AccountSid string `json:"account_sid,omitempty"` + CreatedBy string `json:"created_by,omitempty"` + Data map[string]interface{} `json:"data,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateExpires time.Time `json:"date_expires,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Index int32 `json:"index,omitempty"` + ListSid string `json:"list_sid,omitempty"` + Revision string `json:"revision,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_item_read_response.go b/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_item_read_response.go new file mode 100644 index 000000000..ecdae4d3f --- /dev/null +++ b/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_item_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// SyncV1ServiceSyncListSyncListItemReadResponse struct for SyncV1ServiceSyncListSyncListItemReadResponse +type SyncV1ServiceSyncListSyncListItemReadResponse struct { + Items []SyncV1ServiceSyncListSyncListItem `json:"items,omitempty"` + Meta SyncV1ServiceReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_permission.go b/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_permission.go new file mode 100644 index 000000000..563099d2f --- /dev/null +++ b/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_permission.go @@ -0,0 +1,22 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// SyncV1ServiceSyncListSyncListPermission struct for SyncV1ServiceSyncListSyncListPermission +type SyncV1ServiceSyncListSyncListPermission struct { + AccountSid string `json:"account_sid,omitempty"` + Identity string `json:"identity,omitempty"` + ListSid string `json:"list_sid,omitempty"` + Manage bool `json:"manage,omitempty"` + Read bool `json:"read,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Url string `json:"url,omitempty"` + Write bool `json:"write,omitempty"` +} diff --git a/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_permission_read_response.go b/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_permission_read_response.go new file mode 100644 index 000000000..f210083bc --- /dev/null +++ b/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_permission_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// SyncV1ServiceSyncListSyncListPermissionReadResponse struct for SyncV1ServiceSyncListSyncListPermissionReadResponse +type SyncV1ServiceSyncListSyncListPermissionReadResponse struct { + Meta SyncV1ServiceReadResponseMeta `json:"meta,omitempty"` + Permissions []SyncV1ServiceSyncListSyncListPermission `json:"permissions,omitempty"` +} diff --git a/rest/sync/v1/model_sync_v1_service_sync_map.go b/rest/sync/v1/model_sync_v1_service_sync_map.go new file mode 100644 index 000000000..9d678724e --- /dev/null +++ b/rest/sync/v1/model_sync_v1_service_sync_map.go @@ -0,0 +1,28 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// SyncV1ServiceSyncMap struct for SyncV1ServiceSyncMap +type SyncV1ServiceSyncMap struct { + AccountSid string `json:"account_sid,omitempty"` + CreatedBy string `json:"created_by,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateExpires time.Time `json:"date_expires,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Revision string `json:"revision,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/sync/v1/model_sync_v1_service_sync_map_read_response.go b/rest/sync/v1/model_sync_v1_service_sync_map_read_response.go new file mode 100644 index 000000000..69f430a09 --- /dev/null +++ b/rest/sync/v1/model_sync_v1_service_sync_map_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// SyncV1ServiceSyncMapReadResponse struct for SyncV1ServiceSyncMapReadResponse +type SyncV1ServiceSyncMapReadResponse struct { + Maps []SyncV1ServiceSyncMap `json:"maps,omitempty"` + Meta SyncV1ServiceReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_item.go b/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_item.go new file mode 100644 index 000000000..6e6912620 --- /dev/null +++ b/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_item.go @@ -0,0 +1,28 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// SyncV1ServiceSyncMapSyncMapItem struct for SyncV1ServiceSyncMapSyncMapItem +type SyncV1ServiceSyncMapSyncMapItem struct { + AccountSid string `json:"account_sid,omitempty"` + CreatedBy string `json:"created_by,omitempty"` + Data map[string]interface{} `json:"data,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateExpires time.Time `json:"date_expires,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Key string `json:"key,omitempty"` + MapSid string `json:"map_sid,omitempty"` + Revision string `json:"revision,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_item_read_response.go b/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_item_read_response.go new file mode 100644 index 000000000..cd7a9dc38 --- /dev/null +++ b/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_item_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// SyncV1ServiceSyncMapSyncMapItemReadResponse struct for SyncV1ServiceSyncMapSyncMapItemReadResponse +type SyncV1ServiceSyncMapSyncMapItemReadResponse struct { + Items []SyncV1ServiceSyncMapSyncMapItem `json:"items,omitempty"` + Meta SyncV1ServiceReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_permission.go b/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_permission.go new file mode 100644 index 000000000..0ebabd8bb --- /dev/null +++ b/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_permission.go @@ -0,0 +1,22 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// SyncV1ServiceSyncMapSyncMapPermission struct for SyncV1ServiceSyncMapSyncMapPermission +type SyncV1ServiceSyncMapSyncMapPermission struct { + AccountSid string `json:"account_sid,omitempty"` + Identity string `json:"identity,omitempty"` + Manage bool `json:"manage,omitempty"` + MapSid string `json:"map_sid,omitempty"` + Read bool `json:"read,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Url string `json:"url,omitempty"` + Write bool `json:"write,omitempty"` +} diff --git a/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_permission_read_response.go b/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_permission_read_response.go new file mode 100644 index 000000000..5ab4fe6e6 --- /dev/null +++ b/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_permission_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// SyncV1ServiceSyncMapSyncMapPermissionReadResponse struct for SyncV1ServiceSyncMapSyncMapPermissionReadResponse +type SyncV1ServiceSyncMapSyncMapPermissionReadResponse struct { + Meta SyncV1ServiceReadResponseMeta `json:"meta,omitempty"` + Permissions []SyncV1ServiceSyncMapSyncMapPermission `json:"permissions,omitempty"` +} diff --git a/rest/sync/v1/model_sync_v1_service_sync_stream.go b/rest/sync/v1/model_sync_v1_service_sync_stream.go new file mode 100644 index 000000000..7c2386303 --- /dev/null +++ b/rest/sync/v1/model_sync_v1_service_sync_stream.go @@ -0,0 +1,27 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// SyncV1ServiceSyncStream struct for SyncV1ServiceSyncStream +type SyncV1ServiceSyncStream struct { + AccountSid string `json:"account_sid,omitempty"` + CreatedBy string `json:"created_by,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateExpires time.Time `json:"date_expires,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/sync/v1/model_sync_v1_service_sync_stream_read_response.go b/rest/sync/v1/model_sync_v1_service_sync_stream_read_response.go new file mode 100644 index 000000000..9b09d9cd5 --- /dev/null +++ b/rest/sync/v1/model_sync_v1_service_sync_stream_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// SyncV1ServiceSyncStreamReadResponse struct for SyncV1ServiceSyncStreamReadResponse +type SyncV1ServiceSyncStreamReadResponse struct { + Meta SyncV1ServiceReadResponseMeta `json:"meta,omitempty"` + Streams []SyncV1ServiceSyncStream `json:"streams,omitempty"` +} diff --git a/rest/sync/v1/model_sync_v1_service_sync_stream_stream_message.go b/rest/sync/v1/model_sync_v1_service_sync_stream_stream_message.go new file mode 100644 index 000000000..ef8c85b70 --- /dev/null +++ b/rest/sync/v1/model_sync_v1_service_sync_stream_stream_message.go @@ -0,0 +1,16 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// SyncV1ServiceSyncStreamStreamMessage struct for SyncV1ServiceSyncStreamStreamMessage +type SyncV1ServiceSyncStreamStreamMessage struct { + Data map[string]interface{} `json:"data,omitempty"` + Sid string `json:"sid,omitempty"` +} diff --git a/rest/sync/v1/model_update_document_permission_request.go b/rest/sync/v1/model_update_document_permission_request.go new file mode 100644 index 000000000..01dc71483 --- /dev/null +++ b/rest/sync/v1/model_update_document_permission_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateDocumentPermissionRequest struct for UpdateDocumentPermissionRequest +type UpdateDocumentPermissionRequest struct { + // Whether the identity can delete the Sync Document. Default value is `false`. + Manage bool `json:"Manage"` + // Whether the identity can read the Sync Document. Default value is `false`. + Read bool `json:"Read"` + // Whether the identity can update the Sync Document. Default value is `false`. + Write bool `json:"Write"` +} diff --git a/rest/sync/v1/model_update_document_request.go b/rest/sync/v1/model_update_document_request.go new file mode 100644 index 000000000..bb4c2f9ef --- /dev/null +++ b/rest/sync/v1/model_update_document_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateDocumentRequest struct for UpdateDocumentRequest +type UpdateDocumentRequest struct { + // A JSON string that represents an arbitrary, schema-less object that the Sync Document stores. Can be up to 16KB in length. + Data map[string]interface{} `json:"Data,omitempty"` + // How long, in seconds, before the Sync Document expires and is deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Document resource does not expire. The Document resource will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. + Ttl int32 `json:"Ttl,omitempty"` +} diff --git a/rest/sync/v1/model_update_service_request.go b/rest/sync/v1/model_update_service_request.go new file mode 100644 index 000000000..537603d0b --- /dev/null +++ b/rest/sync/v1/model_update_service_request.go @@ -0,0 +1,28 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateServiceRequest struct for UpdateServiceRequest +type UpdateServiceRequest struct { + // Whether token identities in the Service must be granted access to Sync objects by using the [Permissions](https://www.twilio.com/docs/sync/api/sync-permissions) resource. + AclEnabled bool `json:"AclEnabled,omitempty"` + // A string that you assign to describe the resource. + FriendlyName string `json:"FriendlyName,omitempty"` + // Whether every `endpoint_disconnected` event should occur after a configurable delay. The default is `false`, where the `endpoint_disconnected` event occurs immediately after disconnection. When `true`, intervening reconnections can prevent the `endpoint_disconnected` event. + ReachabilityDebouncingEnabled bool `json:"ReachabilityDebouncingEnabled,omitempty"` + // The reachability event delay in milliseconds if `reachability_debouncing_enabled` = `true`. Must be between 1,000 and 30,000 and defaults to 5,000. This is the number of milliseconds after the last running client disconnects, and a Sync identity is declared offline, before the webhook is called if all endpoints remain offline. A reconnection from the same identity by any endpoint during this interval prevents the webhook from being called. + ReachabilityDebouncingWindow int32 `json:"ReachabilityDebouncingWindow,omitempty"` + // Whether the service instance should call `webhook_url` when client endpoints connect to Sync. The default is `false`. + ReachabilityWebhooksEnabled bool `json:"ReachabilityWebhooksEnabled,omitempty"` + // The URL we should call when Sync objects are manipulated. + WebhookUrl string `json:"WebhookUrl,omitempty"` + // Whether the Service instance should call `webhook_url` when the REST API is used to update Sync objects. The default is `false`. + WebhooksFromRestEnabled bool `json:"WebhooksFromRestEnabled,omitempty"` +} diff --git a/rest/sync/v1/model_update_sync_list_item_request.go b/rest/sync/v1/model_update_sync_list_item_request.go new file mode 100644 index 000000000..fac405c7e --- /dev/null +++ b/rest/sync/v1/model_update_sync_list_item_request.go @@ -0,0 +1,22 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateSyncListItemRequest struct for UpdateSyncListItemRequest +type UpdateSyncListItemRequest struct { + // How long, in seconds, before the List Item's parent Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. + CollectionTtl int32 `json:"CollectionTtl,omitempty"` + // A JSON string that represents an arbitrary, schema-less object that the List Item stores. Can be up to 16KB in length. + Data map[string]interface{} `json:"Data,omitempty"` + // How long, in seconds, before the List Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the List Item does not expire. The List Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. + ItemTtl int32 `json:"ItemTtl,omitempty"` + // An alias for `item_ttl`. If both parameters are provided, this value is ignored. + Ttl int32 `json:"Ttl,omitempty"` +} diff --git a/rest/sync/v1/model_update_sync_list_permission_request.go b/rest/sync/v1/model_update_sync_list_permission_request.go new file mode 100644 index 000000000..104607a7b --- /dev/null +++ b/rest/sync/v1/model_update_sync_list_permission_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateSyncListPermissionRequest struct for UpdateSyncListPermissionRequest +type UpdateSyncListPermissionRequest struct { + // Whether the identity can delete the Sync List. Default value is `false`. + Manage bool `json:"Manage"` + // Whether the identity can read the Sync List and its Items. Default value is `false`. + Read bool `json:"Read"` + // Whether the identity can create, update, and delete Items in the Sync List. Default value is `false`. + Write bool `json:"Write"` +} diff --git a/rest/sync/v1/model_update_sync_list_request.go b/rest/sync/v1/model_update_sync_list_request.go new file mode 100644 index 000000000..63e48b035 --- /dev/null +++ b/rest/sync/v1/model_update_sync_list_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateSyncListRequest struct for UpdateSyncListRequest +type UpdateSyncListRequest struct { + // How long, in seconds, before the Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. + CollectionTtl int32 `json:"CollectionTtl,omitempty"` + // An alias for `collection_ttl`. If both are provided, this value is ignored. + Ttl int32 `json:"Ttl,omitempty"` +} diff --git a/rest/sync/v1/model_update_sync_map_item_request.go b/rest/sync/v1/model_update_sync_map_item_request.go new file mode 100644 index 000000000..8f2742128 --- /dev/null +++ b/rest/sync/v1/model_update_sync_map_item_request.go @@ -0,0 +1,22 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateSyncMapItemRequest struct for UpdateSyncMapItemRequest +type UpdateSyncMapItemRequest struct { + // How long, in seconds, before the Map Item's parent Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync Map does not expire. This parameter can only be used when the Map Item's `data` or `ttl` is updated in the same request. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. + CollectionTtl int32 `json:"CollectionTtl,omitempty"` + // A JSON string that represents an arbitrary, schema-less object that the Map Item stores. Can be up to 16KB in length. + Data map[string]interface{} `json:"Data,omitempty"` + // How long, in seconds, before the Map Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Map Item does not expire. The Map Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. + ItemTtl int32 `json:"ItemTtl,omitempty"` + // An alias for `item_ttl`. If both parameters are provided, this value is ignored. + Ttl int32 `json:"Ttl,omitempty"` +} diff --git a/rest/sync/v1/model_update_sync_map_permission_request.go b/rest/sync/v1/model_update_sync_map_permission_request.go new file mode 100644 index 000000000..fc9777ddd --- /dev/null +++ b/rest/sync/v1/model_update_sync_map_permission_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateSyncMapPermissionRequest struct for UpdateSyncMapPermissionRequest +type UpdateSyncMapPermissionRequest struct { + // Whether the identity can delete the Sync Map. Default value is `false`. + Manage bool `json:"Manage"` + // Whether the identity can read the Sync Map and its Items. Default value is `false`. + Read bool `json:"Read"` + // Whether the identity can create, update, and delete Items in the Sync Map. Default value is `false`. + Write bool `json:"Write"` +} diff --git a/rest/sync/v1/model_update_sync_map_request.go b/rest/sync/v1/model_update_sync_map_request.go new file mode 100644 index 000000000..d7625824b --- /dev/null +++ b/rest/sync/v1/model_update_sync_map_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateSyncMapRequest struct for UpdateSyncMapRequest +type UpdateSyncMapRequest struct { + // How long, in seconds, before the Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync Map does not expire. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. + CollectionTtl int32 `json:"CollectionTtl,omitempty"` + // An alias for `collection_ttl`. If both parameters are provided, this value is ignored. + Ttl int32 `json:"Ttl,omitempty"` +} diff --git a/rest/sync/v1/model_update_sync_stream_request.go b/rest/sync/v1/model_update_sync_stream_request.go new file mode 100644 index 000000000..643dcfaf1 --- /dev/null +++ b/rest/sync/v1/model_update_sync_stream_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateSyncStreamRequest struct for UpdateSyncStreamRequest +type UpdateSyncStreamRequest struct { + // How long, in seconds, before the Stream expires and is deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Stream does not expire. The Stream will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. + Ttl int32 `json:"Ttl,omitempty"` +} diff --git a/rest/sync/v1/response.go b/rest/sync/v1/response.go new file mode 100644 index 000000000..4d2996c71 --- /dev/null +++ b/rest/sync/v1/response.go @@ -0,0 +1,47 @@ +/* + * Twilio - Sync + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// Response returns a new APIResponse object. +func Response(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// ResponseWithError returns a new APIResponse object with the provided error message. +func ResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/rest/taskrouter/v1/.openapi-generator-ignore b/rest/taskrouter/v1/.openapi-generator-ignore new file mode 100644 index 000000000..7484ee590 --- /dev/null +++ b/rest/taskrouter/v1/.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/rest/taskrouter/v1/.openapi-generator/VERSION b/rest/taskrouter/v1/.openapi-generator/VERSION new file mode 100644 index 000000000..ecedc98d1 --- /dev/null +++ b/rest/taskrouter/v1/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.3.1 \ No newline at end of file diff --git a/rest/taskrouter/v1/README.md b/rest/taskrouter/v1/README.md new file mode 100644 index 000000000..c4433490c --- /dev/null +++ b/rest/taskrouter/v1/README.md @@ -0,0 +1,177 @@ +# Go API client for openapi + +This is the public Twilio REST API. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 5.15.0 +- Package version: 1.0.0 +- Build package: com.twilio.oai.TwilioGoGenerator +For more information, please visit [https://support.twilio.com](https://support.twilio.com) + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import "./openapi" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**CreateActivity**](docs/DefaultApi.md#createactivity) | **Post** /v1/Workspaces/{WorkspaceSid}/Activities | +*DefaultApi* | [**CreateTask**](docs/DefaultApi.md#createtask) | **Post** /v1/Workspaces/{WorkspaceSid}/Tasks | +*DefaultApi* | [**CreateTaskChannel**](docs/DefaultApi.md#createtaskchannel) | **Post** /v1/Workspaces/{WorkspaceSid}/TaskChannels | +*DefaultApi* | [**CreateTaskQueue**](docs/DefaultApi.md#createtaskqueue) | **Post** /v1/Workspaces/{WorkspaceSid}/TaskQueues | +*DefaultApi* | [**CreateWorker**](docs/DefaultApi.md#createworker) | **Post** /v1/Workspaces/{WorkspaceSid}/Workers | +*DefaultApi* | [**CreateWorkflow**](docs/DefaultApi.md#createworkflow) | **Post** /v1/Workspaces/{WorkspaceSid}/Workflows | +*DefaultApi* | [**CreateWorkspace**](docs/DefaultApi.md#createworkspace) | **Post** /v1/Workspaces | +*DefaultApi* | [**DeleteActivity**](docs/DefaultApi.md#deleteactivity) | **Delete** /v1/Workspaces/{WorkspaceSid}/Activities/{Sid} | +*DefaultApi* | [**DeleteTask**](docs/DefaultApi.md#deletetask) | **Delete** /v1/Workspaces/{WorkspaceSid}/Tasks/{Sid} | +*DefaultApi* | [**DeleteTaskChannel**](docs/DefaultApi.md#deletetaskchannel) | **Delete** /v1/Workspaces/{WorkspaceSid}/TaskChannels/{Sid} | +*DefaultApi* | [**DeleteTaskQueue**](docs/DefaultApi.md#deletetaskqueue) | **Delete** /v1/Workspaces/{WorkspaceSid}/TaskQueues/{Sid} | +*DefaultApi* | [**DeleteWorker**](docs/DefaultApi.md#deleteworker) | **Delete** /v1/Workspaces/{WorkspaceSid}/Workers/{Sid} | +*DefaultApi* | [**DeleteWorkflow**](docs/DefaultApi.md#deleteworkflow) | **Delete** /v1/Workspaces/{WorkspaceSid}/Workflows/{Sid} | +*DefaultApi* | [**DeleteWorkspace**](docs/DefaultApi.md#deleteworkspace) | **Delete** /v1/Workspaces/{Sid} | +*DefaultApi* | [**FetchActivity**](docs/DefaultApi.md#fetchactivity) | **Get** /v1/Workspaces/{WorkspaceSid}/Activities/{Sid} | +*DefaultApi* | [**FetchEvent**](docs/DefaultApi.md#fetchevent) | **Get** /v1/Workspaces/{WorkspaceSid}/Events/{Sid} | +*DefaultApi* | [**FetchTask**](docs/DefaultApi.md#fetchtask) | **Get** /v1/Workspaces/{WorkspaceSid}/Tasks/{Sid} | +*DefaultApi* | [**FetchTaskChannel**](docs/DefaultApi.md#fetchtaskchannel) | **Get** /v1/Workspaces/{WorkspaceSid}/TaskChannels/{Sid} | +*DefaultApi* | [**FetchTaskQueue**](docs/DefaultApi.md#fetchtaskqueue) | **Get** /v1/Workspaces/{WorkspaceSid}/TaskQueues/{Sid} | +*DefaultApi* | [**FetchTaskQueueCumulativeStatistics**](docs/DefaultApi.md#fetchtaskqueuecumulativestatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/CumulativeStatistics | +*DefaultApi* | [**FetchTaskQueueRealTimeStatistics**](docs/DefaultApi.md#fetchtaskqueuerealtimestatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/RealTimeStatistics | +*DefaultApi* | [**FetchTaskQueueStatistics**](docs/DefaultApi.md#fetchtaskqueuestatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/Statistics | +*DefaultApi* | [**FetchTaskReservation**](docs/DefaultApi.md#fetchtaskreservation) | **Get** /v1/Workspaces/{WorkspaceSid}/Tasks/{TaskSid}/Reservations/{Sid} | +*DefaultApi* | [**FetchWorker**](docs/DefaultApi.md#fetchworker) | **Get** /v1/Workspaces/{WorkspaceSid}/Workers/{Sid} | +*DefaultApi* | [**FetchWorkerChannel**](docs/DefaultApi.md#fetchworkerchannel) | **Get** /v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Channels/{Sid} | +*DefaultApi* | [**FetchWorkerInstanceStatistics**](docs/DefaultApi.md#fetchworkerinstancestatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Statistics | +*DefaultApi* | [**FetchWorkerReservation**](docs/DefaultApi.md#fetchworkerreservation) | **Get** /v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Reservations/{Sid} | +*DefaultApi* | [**FetchWorkerStatistics**](docs/DefaultApi.md#fetchworkerstatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/Workers/Statistics | +*DefaultApi* | [**FetchWorkersCumulativeStatistics**](docs/DefaultApi.md#fetchworkerscumulativestatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/Workers/CumulativeStatistics | +*DefaultApi* | [**FetchWorkersRealTimeStatistics**](docs/DefaultApi.md#fetchworkersrealtimestatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/Workers/RealTimeStatistics | +*DefaultApi* | [**FetchWorkflow**](docs/DefaultApi.md#fetchworkflow) | **Get** /v1/Workspaces/{WorkspaceSid}/Workflows/{Sid} | +*DefaultApi* | [**FetchWorkflowCumulativeStatistics**](docs/DefaultApi.md#fetchworkflowcumulativestatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/Workflows/{WorkflowSid}/CumulativeStatistics | +*DefaultApi* | [**FetchWorkflowRealTimeStatistics**](docs/DefaultApi.md#fetchworkflowrealtimestatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/Workflows/{WorkflowSid}/RealTimeStatistics | +*DefaultApi* | [**FetchWorkflowStatistics**](docs/DefaultApi.md#fetchworkflowstatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/Workflows/{WorkflowSid}/Statistics | +*DefaultApi* | [**FetchWorkspace**](docs/DefaultApi.md#fetchworkspace) | **Get** /v1/Workspaces/{Sid} | +*DefaultApi* | [**FetchWorkspaceCumulativeStatistics**](docs/DefaultApi.md#fetchworkspacecumulativestatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/CumulativeStatistics | +*DefaultApi* | [**FetchWorkspaceRealTimeStatistics**](docs/DefaultApi.md#fetchworkspacerealtimestatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/RealTimeStatistics | +*DefaultApi* | [**FetchWorkspaceStatistics**](docs/DefaultApi.md#fetchworkspacestatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/Statistics | +*DefaultApi* | [**ListActivity**](docs/DefaultApi.md#listactivity) | **Get** /v1/Workspaces/{WorkspaceSid}/Activities | +*DefaultApi* | [**ListEvent**](docs/DefaultApi.md#listevent) | **Get** /v1/Workspaces/{WorkspaceSid}/Events | +*DefaultApi* | [**ListTask**](docs/DefaultApi.md#listtask) | **Get** /v1/Workspaces/{WorkspaceSid}/Tasks | +*DefaultApi* | [**ListTaskChannel**](docs/DefaultApi.md#listtaskchannel) | **Get** /v1/Workspaces/{WorkspaceSid}/TaskChannels | +*DefaultApi* | [**ListTaskQueue**](docs/DefaultApi.md#listtaskqueue) | **Get** /v1/Workspaces/{WorkspaceSid}/TaskQueues | +*DefaultApi* | [**ListTaskQueuesStatistics**](docs/DefaultApi.md#listtaskqueuesstatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/TaskQueues/Statistics | +*DefaultApi* | [**ListTaskReservation**](docs/DefaultApi.md#listtaskreservation) | **Get** /v1/Workspaces/{WorkspaceSid}/Tasks/{TaskSid}/Reservations | +*DefaultApi* | [**ListWorker**](docs/DefaultApi.md#listworker) | **Get** /v1/Workspaces/{WorkspaceSid}/Workers | +*DefaultApi* | [**ListWorkerChannel**](docs/DefaultApi.md#listworkerchannel) | **Get** /v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Channels | +*DefaultApi* | [**ListWorkerReservation**](docs/DefaultApi.md#listworkerreservation) | **Get** /v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Reservations | +*DefaultApi* | [**ListWorkflow**](docs/DefaultApi.md#listworkflow) | **Get** /v1/Workspaces/{WorkspaceSid}/Workflows | +*DefaultApi* | [**ListWorkspace**](docs/DefaultApi.md#listworkspace) | **Get** /v1/Workspaces | +*DefaultApi* | [**UpdateActivity**](docs/DefaultApi.md#updateactivity) | **Post** /v1/Workspaces/{WorkspaceSid}/Activities/{Sid} | +*DefaultApi* | [**UpdateTask**](docs/DefaultApi.md#updatetask) | **Post** /v1/Workspaces/{WorkspaceSid}/Tasks/{Sid} | +*DefaultApi* | [**UpdateTaskChannel**](docs/DefaultApi.md#updatetaskchannel) | **Post** /v1/Workspaces/{WorkspaceSid}/TaskChannels/{Sid} | +*DefaultApi* | [**UpdateTaskQueue**](docs/DefaultApi.md#updatetaskqueue) | **Post** /v1/Workspaces/{WorkspaceSid}/TaskQueues/{Sid} | +*DefaultApi* | [**UpdateTaskReservation**](docs/DefaultApi.md#updatetaskreservation) | **Post** /v1/Workspaces/{WorkspaceSid}/Tasks/{TaskSid}/Reservations/{Sid} | +*DefaultApi* | [**UpdateWorker**](docs/DefaultApi.md#updateworker) | **Post** /v1/Workspaces/{WorkspaceSid}/Workers/{Sid} | +*DefaultApi* | [**UpdateWorkerChannel**](docs/DefaultApi.md#updateworkerchannel) | **Post** /v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Channels/{Sid} | +*DefaultApi* | [**UpdateWorkerReservation**](docs/DefaultApi.md#updateworkerreservation) | **Post** /v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Reservations/{Sid} | +*DefaultApi* | [**UpdateWorkflow**](docs/DefaultApi.md#updateworkflow) | **Post** /v1/Workspaces/{WorkspaceSid}/Workflows/{Sid} | +*DefaultApi* | [**UpdateWorkspace**](docs/DefaultApi.md#updateworkspace) | **Post** /v1/Workspaces/{Sid} | + + +## Documentation For Models + + - [CreateActivityRequest](docs/CreateActivityRequest.md) + - [CreateTaskChannelRequest](docs/CreateTaskChannelRequest.md) + - [CreateTaskQueueRequest](docs/CreateTaskQueueRequest.md) + - [CreateTaskRequest](docs/CreateTaskRequest.md) + - [CreateWorkerRequest](docs/CreateWorkerRequest.md) + - [CreateWorkflowRequest](docs/CreateWorkflowRequest.md) + - [CreateWorkspaceRequest](docs/CreateWorkspaceRequest.md) + - [TaskrouterV1Workspace](docs/TaskrouterV1Workspace.md) + - [TaskrouterV1WorkspaceActivity](docs/TaskrouterV1WorkspaceActivity.md) + - [TaskrouterV1WorkspaceActivityReadResponse](docs/TaskrouterV1WorkspaceActivityReadResponse.md) + - [TaskrouterV1WorkspaceEvent](docs/TaskrouterV1WorkspaceEvent.md) + - [TaskrouterV1WorkspaceEventReadResponse](docs/TaskrouterV1WorkspaceEventReadResponse.md) + - [TaskrouterV1WorkspaceReadResponse](docs/TaskrouterV1WorkspaceReadResponse.md) + - [TaskrouterV1WorkspaceReadResponseMeta](docs/TaskrouterV1WorkspaceReadResponseMeta.md) + - [TaskrouterV1WorkspaceTask](docs/TaskrouterV1WorkspaceTask.md) + - [TaskrouterV1WorkspaceTaskChannel](docs/TaskrouterV1WorkspaceTaskChannel.md) + - [TaskrouterV1WorkspaceTaskChannelReadResponse](docs/TaskrouterV1WorkspaceTaskChannelReadResponse.md) + - [TaskrouterV1WorkspaceTaskQueue](docs/TaskrouterV1WorkspaceTaskQueue.md) + - [TaskrouterV1WorkspaceTaskQueueReadResponse](docs/TaskrouterV1WorkspaceTaskQueueReadResponse.md) + - [TaskrouterV1WorkspaceTaskQueueTaskQueueCumulativeStatistics](docs/TaskrouterV1WorkspaceTaskQueueTaskQueueCumulativeStatistics.md) + - [TaskrouterV1WorkspaceTaskQueueTaskQueueRealTimeStatistics](docs/TaskrouterV1WorkspaceTaskQueueTaskQueueRealTimeStatistics.md) + - [TaskrouterV1WorkspaceTaskQueueTaskQueueStatistics](docs/TaskrouterV1WorkspaceTaskQueueTaskQueueStatistics.md) + - [TaskrouterV1WorkspaceTaskQueueTaskQueuesStatistics](docs/TaskrouterV1WorkspaceTaskQueueTaskQueuesStatistics.md) + - [TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse](docs/TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse.md) + - [TaskrouterV1WorkspaceTaskReadResponse](docs/TaskrouterV1WorkspaceTaskReadResponse.md) + - [TaskrouterV1WorkspaceTaskTaskReservation](docs/TaskrouterV1WorkspaceTaskTaskReservation.md) + - [TaskrouterV1WorkspaceTaskTaskReservationReadResponse](docs/TaskrouterV1WorkspaceTaskTaskReservationReadResponse.md) + - [TaskrouterV1WorkspaceWorker](docs/TaskrouterV1WorkspaceWorker.md) + - [TaskrouterV1WorkspaceWorkerReadResponse](docs/TaskrouterV1WorkspaceWorkerReadResponse.md) + - [TaskrouterV1WorkspaceWorkerWorkerChannel](docs/TaskrouterV1WorkspaceWorkerWorkerChannel.md) + - [TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse](docs/TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse.md) + - [TaskrouterV1WorkspaceWorkerWorkerInstanceStatistics](docs/TaskrouterV1WorkspaceWorkerWorkerInstanceStatistics.md) + - [TaskrouterV1WorkspaceWorkerWorkerReservation](docs/TaskrouterV1WorkspaceWorkerWorkerReservation.md) + - [TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse](docs/TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse.md) + - [TaskrouterV1WorkspaceWorkerWorkerStatistics](docs/TaskrouterV1WorkspaceWorkerWorkerStatistics.md) + - [TaskrouterV1WorkspaceWorkerWorkersCumulativeStatistics](docs/TaskrouterV1WorkspaceWorkerWorkersCumulativeStatistics.md) + - [TaskrouterV1WorkspaceWorkerWorkersRealTimeStatistics](docs/TaskrouterV1WorkspaceWorkerWorkersRealTimeStatistics.md) + - [TaskrouterV1WorkspaceWorkflow](docs/TaskrouterV1WorkspaceWorkflow.md) + - [TaskrouterV1WorkspaceWorkflowReadResponse](docs/TaskrouterV1WorkspaceWorkflowReadResponse.md) + - [TaskrouterV1WorkspaceWorkflowWorkflowCumulativeStatistics](docs/TaskrouterV1WorkspaceWorkflowWorkflowCumulativeStatistics.md) + - [TaskrouterV1WorkspaceWorkflowWorkflowRealTimeStatistics](docs/TaskrouterV1WorkspaceWorkflowWorkflowRealTimeStatistics.md) + - [TaskrouterV1WorkspaceWorkflowWorkflowStatistics](docs/TaskrouterV1WorkspaceWorkflowWorkflowStatistics.md) + - [TaskrouterV1WorkspaceWorkspaceCumulativeStatistics](docs/TaskrouterV1WorkspaceWorkspaceCumulativeStatistics.md) + - [TaskrouterV1WorkspaceWorkspaceRealTimeStatistics](docs/TaskrouterV1WorkspaceWorkspaceRealTimeStatistics.md) + - [TaskrouterV1WorkspaceWorkspaceStatistics](docs/TaskrouterV1WorkspaceWorkspaceStatistics.md) + - [UpdateActivityRequest](docs/UpdateActivityRequest.md) + - [UpdateTaskChannelRequest](docs/UpdateTaskChannelRequest.md) + - [UpdateTaskQueueRequest](docs/UpdateTaskQueueRequest.md) + - [UpdateTaskRequest](docs/UpdateTaskRequest.md) + - [UpdateTaskReservationRequest](docs/UpdateTaskReservationRequest.md) + - [UpdateWorkerChannelRequest](docs/UpdateWorkerChannelRequest.md) + - [UpdateWorkerRequest](docs/UpdateWorkerRequest.md) + - [UpdateWorkerReservationRequest](docs/UpdateWorkerReservationRequest.md) + - [UpdateWorkflowRequest](docs/UpdateWorkflowRequest.md) + - [UpdateWorkspaceRequest](docs/UpdateWorkspaceRequest.md) + + +## Documentation For Authorization + + + +## accountSid_authToken + +- **Type**: HTTP basic authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ + UserName: "username", + Password: "password", +}) +r, err := client.Service.Operation(auth, args) +``` + + +## Author + +support@twilio.com + diff --git a/rest/taskrouter/v1/api_default.go b/rest/taskrouter/v1/api_default.go new file mode 100644 index 000000000..b26bddb46 --- /dev/null +++ b/rest/taskrouter/v1/api_default.go @@ -0,0 +1,3327 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "" + "reflect" +) + +type DefaultApiService struct { + baseURL string + client *twilio.Client +} + +func NewDefaultApiService(client *twilio.Client) *DefaultApiService { + return &DefaultApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} +// CreateActivityParams Optional parameters for the method 'CreateActivity' +type CreateActivityParams struct { + Available *bool `json:"Available,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +CreateActivity Method for CreateActivity + * @param workspaceSid The SID of the Workspace that the new Activity belongs to. + * @param optional nil or *CreateActivityOpts - Optional Parameters: + * @param "Available" (bool) - Whether the Worker should be eligible to receive a Task when it occupies the Activity. A value of `true`, `1`, or `yes` specifies the Activity is available. All other values specify that it is not. The value cannot be changed after the Activity is created. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the Activity resource. It can be up to 64 characters long. These names are used to calculate and expose statistics about Workers, and provide visibility into the state of each Worker. Examples of friendly names include: `on-call`, `break`, and `email`. +@return TaskrouterV1WorkspaceActivity +*/ +func (c *DefaultApiService) CreateActivity(workspaceSid string, params *CreateActivityParams) (*TaskrouterV1WorkspaceActivity, error) { + path := "/v1/Workspaces/{WorkspaceSid}/Activities" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Available != nil { + data.Set("Available", string(*params.Available)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceActivity{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateTaskParams Optional parameters for the method 'CreateTask' +type CreateTaskParams struct { + Attributes *string `json:"Attributes,omitempty"` + Priority *int32 `json:"Priority,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` + Timeout *int32 `json:"Timeout,omitempty"` + WorkflowSid *string `json:"WorkflowSid,omitempty"` +} + +/* +CreateTask Method for CreateTask + * @param workspaceSid The SID of the Workspace that the new Task belongs to. + * @param optional nil or *CreateTaskOpts - Optional Parameters: + * @param "Attributes" (string) - A URL-encoded JSON string with the attributes of the new task. This value is passed to the Workflow's `assignment_callback_url` when the Task is assigned to a Worker. For example: `{ \\\"task_type\\\": \\\"call\\\", \\\"twilio_call_sid\\\": \\\"CAxxx\\\", \\\"customer_ticket_number\\\": \\\"12345\\\" }`. + * @param "Priority" (int32) - The priority to assign the new task and override the default. When supplied, the new Task will have this priority unless it matches a Workflow Target with a Priority set. When not supplied, the new Task will have the priority of the matching Workflow Target. Value can be 0 to 2^31^ (2,147,483,647). + * @param "TaskChannel" (string) - When MultiTasking is enabled, specify the TaskChannel by passing either its `unique_name` or `sid`. Default value is `default`. + * @param "Timeout" (int32) - The amount of time in seconds the new task is allowed to live. Can be up to a maximum of 2 weeks (1,209,600 seconds). The default value is 24 hours (86,400 seconds). On timeout, the `task.canceled` event will fire with description `Task TTL Exceeded`. + * @param "WorkflowSid" (string) - The SID of the Workflow that you would like to handle routing for the new Task. If there is only one Workflow defined for the Workspace that you are posting the new task to, this parameter is optional. +@return TaskrouterV1WorkspaceTask +*/ +func (c *DefaultApiService) CreateTask(workspaceSid string, params *CreateTaskParams) (*TaskrouterV1WorkspaceTask, error) { + path := "/v1/Workspaces/{WorkspaceSid}/Tasks" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.Priority != nil { + data.Set("Priority", string(*params.Priority)) + } + if params != nil && params.TaskChannel != nil { + data.Set("TaskChannel", *params.TaskChannel) + } + if params != nil && params.Timeout != nil { + data.Set("Timeout", string(*params.Timeout)) + } + if params != nil && params.WorkflowSid != nil { + data.Set("WorkflowSid", *params.WorkflowSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceTask{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateTaskChannelParams Optional parameters for the method 'CreateTaskChannel' +type CreateTaskChannelParams struct { + ChannelOptimizedRouting *bool `json:"ChannelOptimizedRouting,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +CreateTaskChannel Method for CreateTaskChannel + * @param workspaceSid The SID of the Workspace that the new Task Channel belongs to. + * @param optional nil or *CreateTaskChannelOpts - Optional Parameters: + * @param "ChannelOptimizedRouting" (bool) - Whether the Task Channel should prioritize Workers that have been idle. If `true`, Workers that have been idle the longest are prioritized. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the Task Channel. It can be up to 64 characters long. + * @param "UniqueName" (string) - An application-defined string that uniquely identifies the Task Channel, such as `voice` or `sms`. +@return TaskrouterV1WorkspaceTaskChannel +*/ +func (c *DefaultApiService) CreateTaskChannel(workspaceSid string, params *CreateTaskChannelParams) (*TaskrouterV1WorkspaceTaskChannel, error) { + path := "/v1/Workspaces/{WorkspaceSid}/TaskChannels" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ChannelOptimizedRouting != nil { + data.Set("ChannelOptimizedRouting", string(*params.ChannelOptimizedRouting)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceTaskChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateTaskQueueParams Optional parameters for the method 'CreateTaskQueue' +type CreateTaskQueueParams struct { + AssignmentActivitySid *string `json:"AssignmentActivitySid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + MaxReservedWorkers *int32 `json:"MaxReservedWorkers,omitempty"` + ReservationActivitySid *string `json:"ReservationActivitySid,omitempty"` + TargetWorkers *string `json:"TargetWorkers,omitempty"` + TaskOrder *string `json:"TaskOrder,omitempty"` +} + +/* +CreateTaskQueue Method for CreateTaskQueue + * @param workspaceSid The SID of the Workspace that the new TaskQueue belongs to. + * @param optional nil or *CreateTaskQueueOpts - Optional Parameters: + * @param "AssignmentActivitySid" (string) - The SID of the Activity to assign Workers when a task is assigned to them. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the TaskQueue. For example `Support-Tier 1`, `Sales`, or `Escalation`. + * @param "MaxReservedWorkers" (int32) - The maximum number of Workers to reserve for the assignment of a Task in the queue. Can be an integer between 1 and 50, inclusive and defaults to 1. + * @param "ReservationActivitySid" (string) - The SID of the Activity to assign Workers when a task is reserved for them. + * @param "TargetWorkers" (string) - A string that describes the Worker selection criteria for any Tasks that enter the TaskQueue. For example, `'\\\"language\\\" == \\\"spanish\\\"'`. The default value is `1==1`. If this value is empty, Tasks will wait in the TaskQueue until they are deleted or moved to another TaskQueue. For more information about Worker selection, see [Describing Worker selection criteria](https://www.twilio.com/docs/taskrouter/api/taskqueues#target-workers). + * @param "TaskOrder" (string) - How Tasks will be assigned to Workers. Set this parameter to `LIFO` to assign most recently created Task first or FIFO to assign the oldest Task first. Default is `FIFO`. [Click here](https://www.twilio.com/docs/taskrouter/queue-ordering-last-first-out-lifo) to learn more. +@return TaskrouterV1WorkspaceTaskQueue +*/ +func (c *DefaultApiService) CreateTaskQueue(workspaceSid string, params *CreateTaskQueueParams) (*TaskrouterV1WorkspaceTaskQueue, error) { + path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AssignmentActivitySid != nil { + data.Set("AssignmentActivitySid", *params.AssignmentActivitySid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.MaxReservedWorkers != nil { + data.Set("MaxReservedWorkers", string(*params.MaxReservedWorkers)) + } + if params != nil && params.ReservationActivitySid != nil { + data.Set("ReservationActivitySid", *params.ReservationActivitySid) + } + if params != nil && params.TargetWorkers != nil { + data.Set("TargetWorkers", *params.TargetWorkers) + } + if params != nil && params.TaskOrder != nil { + data.Set("TaskOrder", *params.TaskOrder) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceTaskQueue{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateWorkerParams Optional parameters for the method 'CreateWorker' +type CreateWorkerParams struct { + ActivitySid *string `json:"ActivitySid,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +CreateWorker Method for CreateWorker + * @param workspaceSid The SID of the Workspace that the new Worker belongs to. + * @param optional nil or *CreateWorkerOpts - Optional Parameters: + * @param "ActivitySid" (string) - The SID of a valid Activity that will describe the new Worker's initial state. See [Activities](https://www.twilio.com/docs/taskrouter/api/activity) for more information. If not provided, the new Worker's initial state is the `default_activity_sid` configured on the Workspace. + * @param "Attributes" (string) - A valid JSON string that describes the new Worker. For example: `{ \\\"email\\\": \\\"Bob@example.com\\\", \\\"phone\\\": \\\"+5095551234\\\" }`. This data is passed to the `assignment_callback_url` when TaskRouter assigns a Task to the Worker. Defaults to {}. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the new Worker. It can be up to 64 characters long. +@return TaskrouterV1WorkspaceWorker +*/ +func (c *DefaultApiService) CreateWorker(workspaceSid string, params *CreateWorkerParams) (*TaskrouterV1WorkspaceWorker, error) { + path := "/v1/Workspaces/{WorkspaceSid}/Workers" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ActivitySid != nil { + data.Set("ActivitySid", *params.ActivitySid) + } + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceWorker{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateWorkflowParams Optional parameters for the method 'CreateWorkflow' +type CreateWorkflowParams struct { + AssignmentCallbackUrl *string `json:"AssignmentCallbackUrl,omitempty"` + Configuration *string `json:"Configuration,omitempty"` + FallbackAssignmentCallbackUrl *string `json:"FallbackAssignmentCallbackUrl,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + TaskReservationTimeout *int32 `json:"TaskReservationTimeout,omitempty"` +} + +/* +CreateWorkflow Method for CreateWorkflow + * @param workspaceSid The SID of the Workspace that the new Workflow to create belongs to. + * @param optional nil or *CreateWorkflowOpts - Optional Parameters: + * @param "AssignmentCallbackUrl" (string) - The URL from your application that will process task assignment events. See [Handling Task Assignment Callback](https://www.twilio.com/docs/taskrouter/handle-assignment-callbacks) for more details. + * @param "Configuration" (string) - A JSON string that contains the rules to apply to the Workflow. See [Configuring Workflows](https://www.twilio.com/docs/taskrouter/workflow-configuration) for more information. + * @param "FallbackAssignmentCallbackUrl" (string) - The URL that we should call when a call to the `assignment_callback_url` fails. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the Workflow resource. For example, `Inbound Call Workflow` or `2014 Outbound Campaign`. + * @param "TaskReservationTimeout" (int32) - How long TaskRouter will wait for a confirmation response from your application after it assigns a Task to a Worker. Can be up to `86,400` (24 hours) and the default is `120`. +@return TaskrouterV1WorkspaceWorkflow +*/ +func (c *DefaultApiService) CreateWorkflow(workspaceSid string, params *CreateWorkflowParams) (*TaskrouterV1WorkspaceWorkflow, error) { + path := "/v1/Workspaces/{WorkspaceSid}/Workflows" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AssignmentCallbackUrl != nil { + data.Set("AssignmentCallbackUrl", *params.AssignmentCallbackUrl) + } + if params != nil && params.Configuration != nil { + data.Set("Configuration", *params.Configuration) + } + if params != nil && params.FallbackAssignmentCallbackUrl != nil { + data.Set("FallbackAssignmentCallbackUrl", *params.FallbackAssignmentCallbackUrl) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.TaskReservationTimeout != nil { + data.Set("TaskReservationTimeout", string(*params.TaskReservationTimeout)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceWorkflow{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateWorkspaceParams Optional parameters for the method 'CreateWorkspace' +type CreateWorkspaceParams struct { + EventCallbackUrl *string `json:"EventCallbackUrl,omitempty"` + EventsFilter *string `json:"EventsFilter,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + MultiTaskEnabled *bool `json:"MultiTaskEnabled,omitempty"` + PrioritizeQueueOrder *string `json:"PrioritizeQueueOrder,omitempty"` + Template *string `json:"Template,omitempty"` +} + +/* +CreateWorkspace Method for CreateWorkspace + * @param optional nil or *CreateWorkspaceOpts - Optional Parameters: + * @param "EventCallbackUrl" (string) - The URL we should call when an event occurs. If provided, the Workspace will publish events to this URL, for example, to collect data for reporting. See [Workspace Events](https://www.twilio.com/docs/taskrouter/api/event) for more information. + * @param "EventsFilter" (string) - The list of Workspace events for which to call event_callback_url. For example if `EventsFilter=task.created,task.canceled,worker.activity.update`, then TaskRouter will call event_callback_url only when a task is created, canceled, or a Worker activity is updated. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the Workspace resource. It can be up to 64 characters long. For example: `Customer Support` or `2014 Election Campaign`. + * @param "MultiTaskEnabled" (bool) - Whether to enable multi-tasking. Can be: `true` to enable multi-tasking, or `false` to disable it. The default is `false`. Multi-tasking allows Workers to handle multiple Tasks simultaneously. When enabled (`true`), each Worker can receive parallel reservations up to the per-channel maximums defined in the Workers section. Otherwise, each Worker will only receive a new reservation when the previous task is completed. Learn more at [Multitasking][https://www.twilio.com/docs/taskrouter/multitasking]. + * @param "PrioritizeQueueOrder" (string) - The type of TaskQueue to prioritize when Workers are receiving Tasks from both types of TaskQueues. Can be: `LIFO` or `FIFO` and the default is `FIFO`. For more information, see [Queue Ordering][https://www.twilio.com/docs/taskrouter/queue-ordering-last-first-out-lifo]. + * @param "Template" (string) - An available template name. Can be: `NONE` or `FIFO` and the default is `NONE`. Pre-configures the Workspace with the Workflow and Activities specified in the template. `NONE` will create a Workspace with only a set of default activities. `FIFO` will configure TaskRouter with a set of default activities and a single TaskQueue for first-in, first-out distribution, which can be useful when you are getting started with TaskRouter. +@return TaskrouterV1Workspace +*/ +func (c *DefaultApiService) CreateWorkspace(params *CreateWorkspaceParams) (*TaskrouterV1Workspace, error) { + path := "/v1/Workspaces" + + data := url.Values{} + headers := 0 + + if params != nil && params.EventCallbackUrl != nil { + data.Set("EventCallbackUrl", *params.EventCallbackUrl) + } + if params != nil && params.EventsFilter != nil { + data.Set("EventsFilter", *params.EventsFilter) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.MultiTaskEnabled != nil { + data.Set("MultiTaskEnabled", string(*params.MultiTaskEnabled)) + } + if params != nil && params.PrioritizeQueueOrder != nil { + data.Set("PrioritizeQueueOrder", *params.PrioritizeQueueOrder) + } + if params != nil && params.Template != nil { + data.Set("Template", *params.Template) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1Workspace{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +DeleteActivity Method for DeleteActivity + * @param workspaceSid The SID of the Workspace with the Activity resources to delete. + * @param sid The SID of the Activity resource to delete. +*/ +func (c *DefaultApiService) DeleteActivity(workspaceSid string, sid string) (error) { + path := "/v1/Workspaces/{WorkspaceSid}/Activities/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteTask Method for DeleteTask + * @param workspaceSid The SID of the Workspace with the Task to delete. + * @param sid The SID of the Task resource to delete. +*/ +func (c *DefaultApiService) DeleteTask(workspaceSid string, sid string) (error) { + path := "/v1/Workspaces/{WorkspaceSid}/Tasks/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteTaskChannel Method for DeleteTaskChannel + * @param workspaceSid The SID of the Workspace with the Task Channel to delete. + * @param sid The SID of the Task Channel resource to delete. +*/ +func (c *DefaultApiService) DeleteTaskChannel(workspaceSid string, sid string) (error) { + path := "/v1/Workspaces/{WorkspaceSid}/TaskChannels/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteTaskQueue Method for DeleteTaskQueue + * @param workspaceSid The SID of the Workspace with the TaskQueue to delete. + * @param sid The SID of the TaskQueue resource to delete. +*/ +func (c *DefaultApiService) DeleteTaskQueue(workspaceSid string, sid string) (error) { + path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteWorker Method for DeleteWorker + * @param workspaceSid The SID of the Workspace with the Worker to delete. + * @param sid The SID of the Worker resource to delete. +*/ +func (c *DefaultApiService) DeleteWorker(workspaceSid string, sid string) (error) { + path := "/v1/Workspaces/{WorkspaceSid}/Workers/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteWorkflow Method for DeleteWorkflow + * @param workspaceSid The SID of the Workspace with the Workflow to delete. + * @param sid The SID of the Workflow resource to delete. +*/ +func (c *DefaultApiService) DeleteWorkflow(workspaceSid string, sid string) (error) { + path := "/v1/Workspaces/{WorkspaceSid}/Workflows/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteWorkspace Method for DeleteWorkspace + * @param sid The SID of the Workspace resource to delete. +*/ +func (c *DefaultApiService) DeleteWorkspace(sid string) (error) { + path := "/v1/Workspaces/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +FetchActivity Method for FetchActivity + * @param workspaceSid The SID of the Workspace with the Activity resources to fetch. + * @param sid The SID of the Activity resource to fetch. +@return TaskrouterV1WorkspaceActivity +*/ +func (c *DefaultApiService) FetchActivity(workspaceSid string, sid string) (*TaskrouterV1WorkspaceActivity, error) { + path := "/v1/Workspaces/{WorkspaceSid}/Activities/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceActivity{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchEvent Method for FetchEvent + * @param workspaceSid The SID of the Workspace with the Event to fetch. + * @param sid The SID of the Event resource to fetch. +@return TaskrouterV1WorkspaceEvent +*/ +func (c *DefaultApiService) FetchEvent(workspaceSid string, sid string) (*TaskrouterV1WorkspaceEvent, error) { + path := "/v1/Workspaces/{WorkspaceSid}/Events/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceEvent{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchTask Method for FetchTask + * @param workspaceSid The SID of the Workspace with the Task to fetch. + * @param sid The SID of the Task resource to fetch. +@return TaskrouterV1WorkspaceTask +*/ +func (c *DefaultApiService) FetchTask(workspaceSid string, sid string) (*TaskrouterV1WorkspaceTask, error) { + path := "/v1/Workspaces/{WorkspaceSid}/Tasks/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceTask{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchTaskChannel Method for FetchTaskChannel + * @param workspaceSid The SID of the Workspace with the Task Channel to fetch. + * @param sid The SID of the Task Channel resource to fetch. +@return TaskrouterV1WorkspaceTaskChannel +*/ +func (c *DefaultApiService) FetchTaskChannel(workspaceSid string, sid string) (*TaskrouterV1WorkspaceTaskChannel, error) { + path := "/v1/Workspaces/{WorkspaceSid}/TaskChannels/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceTaskChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchTaskQueue Method for FetchTaskQueue + * @param workspaceSid The SID of the Workspace with the TaskQueue to fetch. + * @param sid The SID of the TaskQueue resource to fetch. +@return TaskrouterV1WorkspaceTaskQueue +*/ +func (c *DefaultApiService) FetchTaskQueue(workspaceSid string, sid string) (*TaskrouterV1WorkspaceTaskQueue, error) { + path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceTaskQueue{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// FetchTaskQueueCumulativeStatisticsParams Optional parameters for the method 'FetchTaskQueueCumulativeStatistics' +type FetchTaskQueueCumulativeStatisticsParams struct { + EndDate *time.Time `json:"EndDate,omitempty"` + Minutes *int32 `json:"Minutes,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` + SplitByWaitTime *string `json:"SplitByWaitTime,omitempty"` +} + +/* +FetchTaskQueueCumulativeStatistics Method for FetchTaskQueueCumulativeStatistics + * @param workspaceSid The SID of the Workspace with the TaskQueue to fetch. + * @param taskQueueSid The SID of the TaskQueue for which to fetch statistics. + * @param optional nil or *FetchTaskQueueCumulativeStatisticsOpts - Optional Parameters: + * @param "EndDate" (time.Time) - Only calculate statistics from this date and time and earlier, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. + * @param "Minutes" (int32) - Only calculate statistics since this many minutes in the past. The default is 15 minutes. + * @param "StartDate" (time.Time) - Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + * @param "TaskChannel" (string) - Only calculate cumulative statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. + * @param "SplitByWaitTime" (string) - A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. +@return TaskrouterV1WorkspaceTaskQueueTaskQueueCumulativeStatistics +*/ +func (c *DefaultApiService) FetchTaskQueueCumulativeStatistics(workspaceSid string, taskQueueSid string, params *FetchTaskQueueCumulativeStatisticsParams) (*TaskrouterV1WorkspaceTaskQueueTaskQueueCumulativeStatistics, error) { + path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/CumulativeStatistics" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"TaskQueueSid"+"}", taskQueueSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.Minutes != nil { + data.Set("Minutes", string(*params.Minutes)) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.TaskChannel != nil { + data.Set("TaskChannel", *params.TaskChannel) + } + if params != nil && params.SplitByWaitTime != nil { + data.Set("SplitByWaitTime", *params.SplitByWaitTime) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceTaskQueueTaskQueueCumulativeStatistics{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// FetchTaskQueueRealTimeStatisticsParams Optional parameters for the method 'FetchTaskQueueRealTimeStatistics' +type FetchTaskQueueRealTimeStatisticsParams struct { + TaskChannel *string `json:"TaskChannel,omitempty"` +} + +/* +FetchTaskQueueRealTimeStatistics Method for FetchTaskQueueRealTimeStatistics + * @param workspaceSid The SID of the Workspace with the TaskQueue to fetch. + * @param taskQueueSid The SID of the TaskQueue for which to fetch statistics. + * @param optional nil or *FetchTaskQueueRealTimeStatisticsOpts - Optional Parameters: + * @param "TaskChannel" (string) - The TaskChannel for which to fetch statistics. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. +@return TaskrouterV1WorkspaceTaskQueueTaskQueueRealTimeStatistics +*/ +func (c *DefaultApiService) FetchTaskQueueRealTimeStatistics(workspaceSid string, taskQueueSid string, params *FetchTaskQueueRealTimeStatisticsParams) (*TaskrouterV1WorkspaceTaskQueueTaskQueueRealTimeStatistics, error) { + path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/RealTimeStatistics" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"TaskQueueSid"+"}", taskQueueSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.TaskChannel != nil { + data.Set("TaskChannel", *params.TaskChannel) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceTaskQueueTaskQueueRealTimeStatistics{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// FetchTaskQueueStatisticsParams Optional parameters for the method 'FetchTaskQueueStatistics' +type FetchTaskQueueStatisticsParams struct { + EndDate *time.Time `json:"EndDate,omitempty"` + Minutes *int32 `json:"Minutes,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` + SplitByWaitTime *string `json:"SplitByWaitTime,omitempty"` +} + +/* +FetchTaskQueueStatistics Method for FetchTaskQueueStatistics + * @param workspaceSid The SID of the Workspace with the TaskQueue to fetch. + * @param taskQueueSid The SID of the TaskQueue for which to fetch statistics. + * @param optional nil or *FetchTaskQueueStatisticsOpts - Optional Parameters: + * @param "EndDate" (time.Time) - Only calculate statistics from this date and time and earlier, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. + * @param "Minutes" (int32) - Only calculate statistics since this many minutes in the past. The default is 15 minutes. + * @param "StartDate" (time.Time) - Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + * @param "TaskChannel" (string) - Only calculate real-time and cumulative statistics for the specified TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. + * @param "SplitByWaitTime" (string) - A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. +@return TaskrouterV1WorkspaceTaskQueueTaskQueueStatistics +*/ +func (c *DefaultApiService) FetchTaskQueueStatistics(workspaceSid string, taskQueueSid string, params *FetchTaskQueueStatisticsParams) (*TaskrouterV1WorkspaceTaskQueueTaskQueueStatistics, error) { + path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/Statistics" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"TaskQueueSid"+"}", taskQueueSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.Minutes != nil { + data.Set("Minutes", string(*params.Minutes)) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.TaskChannel != nil { + data.Set("TaskChannel", *params.TaskChannel) + } + if params != nil && params.SplitByWaitTime != nil { + data.Set("SplitByWaitTime", *params.SplitByWaitTime) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceTaskQueueTaskQueueStatistics{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchTaskReservation Method for FetchTaskReservation + * @param workspaceSid The SID of the Workspace with the TaskReservation resource to fetch. + * @param taskSid The SID of the reserved Task resource with the TaskReservation resource to fetch. + * @param sid The SID of the TaskReservation resource to fetch. +@return TaskrouterV1WorkspaceTaskTaskReservation +*/ +func (c *DefaultApiService) FetchTaskReservation(workspaceSid string, taskSid string, sid string) (*TaskrouterV1WorkspaceTaskTaskReservation, error) { + path := "/v1/Workspaces/{WorkspaceSid}/Tasks/{TaskSid}/Reservations/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceTaskTaskReservation{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchWorker Method for FetchWorker + * @param workspaceSid The SID of the Workspace with the Worker to fetch. + * @param sid The SID of the Worker resource to fetch. +@return TaskrouterV1WorkspaceWorker +*/ +func (c *DefaultApiService) FetchWorker(workspaceSid string, sid string) (*TaskrouterV1WorkspaceWorker, error) { + path := "/v1/Workspaces/{WorkspaceSid}/Workers/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceWorker{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchWorkerChannel Method for FetchWorkerChannel + * @param workspaceSid The SID of the Workspace with the WorkerChannel to fetch. + * @param workerSid The SID of the Worker with the WorkerChannel to fetch. + * @param sid The SID of the WorkerChannel to fetch. +@return TaskrouterV1WorkspaceWorkerWorkerChannel +*/ +func (c *DefaultApiService) FetchWorkerChannel(workspaceSid string, workerSid string, sid string) (*TaskrouterV1WorkspaceWorkerWorkerChannel, error) { + path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Channels/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkerSid"+"}", workerSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceWorkerWorkerChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// FetchWorkerInstanceStatisticsParams Optional parameters for the method 'FetchWorkerInstanceStatistics' +type FetchWorkerInstanceStatisticsParams struct { + Minutes *int32 `json:"Minutes,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` +} + +/* +FetchWorkerInstanceStatistics Method for FetchWorkerInstanceStatistics + * @param workspaceSid The SID of the Workspace with the WorkerChannel to fetch. + * @param workerSid The SID of the Worker with the WorkerChannel to fetch. + * @param optional nil or *FetchWorkerInstanceStatisticsOpts - Optional Parameters: + * @param "Minutes" (int32) - Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. + * @param "StartDate" (time.Time) - Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + * @param "EndDate" (time.Time) - Only include usage that occurred on or before this date, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. + * @param "TaskChannel" (string) - Only calculate statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. +@return TaskrouterV1WorkspaceWorkerWorkerInstanceStatistics +*/ +func (c *DefaultApiService) FetchWorkerInstanceStatistics(workspaceSid string, workerSid string, params *FetchWorkerInstanceStatisticsParams) (*TaskrouterV1WorkspaceWorkerWorkerInstanceStatistics, error) { + path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Statistics" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkerSid"+"}", workerSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Minutes != nil { + data.Set("Minutes", string(*params.Minutes)) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.TaskChannel != nil { + data.Set("TaskChannel", *params.TaskChannel) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceWorkerWorkerInstanceStatistics{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchWorkerReservation Method for FetchWorkerReservation + * @param workspaceSid The SID of the Workspace with the WorkerReservation resource to fetch. + * @param workerSid The SID of the reserved Worker resource with the WorkerReservation resource to fetch. + * @param sid The SID of the WorkerReservation resource to fetch. +@return TaskrouterV1WorkspaceWorkerWorkerReservation +*/ +func (c *DefaultApiService) FetchWorkerReservation(workspaceSid string, workerSid string, sid string) (*TaskrouterV1WorkspaceWorkerWorkerReservation, error) { + path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Reservations/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkerSid"+"}", workerSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceWorkerWorkerReservation{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// FetchWorkerStatisticsParams Optional parameters for the method 'FetchWorkerStatistics' +type FetchWorkerStatisticsParams struct { + Minutes *int32 `json:"Minutes,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + TaskQueueSid *string `json:"TaskQueueSid,omitempty"` + TaskQueueName *string `json:"TaskQueueName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` +} + +/* +FetchWorkerStatistics Method for FetchWorkerStatistics + * @param workspaceSid The SID of the Workspace with the Worker to fetch. + * @param optional nil or *FetchWorkerStatisticsOpts - Optional Parameters: + * @param "Minutes" (int32) - Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. + * @param "StartDate" (time.Time) - Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + * @param "EndDate" (time.Time) - Only calculate statistics from this date and time and earlier, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. + * @param "TaskQueueSid" (string) - The SID of the TaskQueue for which to fetch Worker statistics. + * @param "TaskQueueName" (string) - The `friendly_name` of the TaskQueue for which to fetch Worker statistics. + * @param "FriendlyName" (string) - Only include Workers with `friendly_name` values that match this parameter. + * @param "TaskChannel" (string) - Only calculate statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. +@return TaskrouterV1WorkspaceWorkerWorkerStatistics +*/ +func (c *DefaultApiService) FetchWorkerStatistics(workspaceSid string, params *FetchWorkerStatisticsParams) (*TaskrouterV1WorkspaceWorkerWorkerStatistics, error) { + path := "/v1/Workspaces/{WorkspaceSid}/Workers/Statistics" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Minutes != nil { + data.Set("Minutes", string(*params.Minutes)) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.TaskQueueSid != nil { + data.Set("TaskQueueSid", *params.TaskQueueSid) + } + if params != nil && params.TaskQueueName != nil { + data.Set("TaskQueueName", *params.TaskQueueName) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.TaskChannel != nil { + data.Set("TaskChannel", *params.TaskChannel) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceWorkerWorkerStatistics{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// FetchWorkersCumulativeStatisticsParams Optional parameters for the method 'FetchWorkersCumulativeStatistics' +type FetchWorkersCumulativeStatisticsParams struct { + EndDate *time.Time `json:"EndDate,omitempty"` + Minutes *int32 `json:"Minutes,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` +} + +/* +FetchWorkersCumulativeStatistics Method for FetchWorkersCumulativeStatistics + * @param workspaceSid The SID of the Workspace with the resource to fetch. + * @param optional nil or *FetchWorkersCumulativeStatisticsOpts - Optional Parameters: + * @param "EndDate" (time.Time) - Only calculate statistics from this date and time and earlier, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + * @param "Minutes" (int32) - Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. + * @param "StartDate" (time.Time) - Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + * @param "TaskChannel" (string) - Only calculate cumulative statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. +@return TaskrouterV1WorkspaceWorkerWorkersCumulativeStatistics +*/ +func (c *DefaultApiService) FetchWorkersCumulativeStatistics(workspaceSid string, params *FetchWorkersCumulativeStatisticsParams) (*TaskrouterV1WorkspaceWorkerWorkersCumulativeStatistics, error) { + path := "/v1/Workspaces/{WorkspaceSid}/Workers/CumulativeStatistics" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.Minutes != nil { + data.Set("Minutes", string(*params.Minutes)) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.TaskChannel != nil { + data.Set("TaskChannel", *params.TaskChannel) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceWorkerWorkersCumulativeStatistics{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// FetchWorkersRealTimeStatisticsParams Optional parameters for the method 'FetchWorkersRealTimeStatistics' +type FetchWorkersRealTimeStatisticsParams struct { + TaskChannel *string `json:"TaskChannel,omitempty"` +} + +/* +FetchWorkersRealTimeStatistics Method for FetchWorkersRealTimeStatistics + * @param workspaceSid The SID of the Workspace with the resource to fetch. + * @param optional nil or *FetchWorkersRealTimeStatisticsOpts - Optional Parameters: + * @param "TaskChannel" (string) - Only calculate real-time statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. +@return TaskrouterV1WorkspaceWorkerWorkersRealTimeStatistics +*/ +func (c *DefaultApiService) FetchWorkersRealTimeStatistics(workspaceSid string, params *FetchWorkersRealTimeStatisticsParams) (*TaskrouterV1WorkspaceWorkerWorkersRealTimeStatistics, error) { + path := "/v1/Workspaces/{WorkspaceSid}/Workers/RealTimeStatistics" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.TaskChannel != nil { + data.Set("TaskChannel", *params.TaskChannel) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceWorkerWorkersRealTimeStatistics{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchWorkflow Method for FetchWorkflow + * @param workspaceSid The SID of the Workspace with the Workflow to fetch. + * @param sid The SID of the Workflow resource to fetch. +@return TaskrouterV1WorkspaceWorkflow +*/ +func (c *DefaultApiService) FetchWorkflow(workspaceSid string, sid string) (*TaskrouterV1WorkspaceWorkflow, error) { + path := "/v1/Workspaces/{WorkspaceSid}/Workflows/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceWorkflow{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// FetchWorkflowCumulativeStatisticsParams Optional parameters for the method 'FetchWorkflowCumulativeStatistics' +type FetchWorkflowCumulativeStatisticsParams struct { + EndDate *time.Time `json:"EndDate,omitempty"` + Minutes *int32 `json:"Minutes,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` + SplitByWaitTime *string `json:"SplitByWaitTime,omitempty"` +} + +/* +FetchWorkflowCumulativeStatistics Method for FetchWorkflowCumulativeStatistics + * @param workspaceSid The SID of the Workspace with the resource to fetch. + * @param workflowSid Returns the list of Tasks that are being controlled by the Workflow with the specified Sid value. + * @param optional nil or *FetchWorkflowCumulativeStatisticsOpts - Optional Parameters: + * @param "EndDate" (time.Time) - Only include usage that occurred on or before this date, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. + * @param "Minutes" (int32) - Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. + * @param "StartDate" (time.Time) - Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + * @param "TaskChannel" (string) - Only calculate cumulative statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. + * @param "SplitByWaitTime" (string) - A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. For example, `5,30` would show splits of Tasks that were canceled or accepted before and after 5 seconds and before and after 30 seconds. This can be used to show short abandoned Tasks or Tasks that failed to meet an SLA. +@return TaskrouterV1WorkspaceWorkflowWorkflowCumulativeStatistics +*/ +func (c *DefaultApiService) FetchWorkflowCumulativeStatistics(workspaceSid string, workflowSid string, params *FetchWorkflowCumulativeStatisticsParams) (*TaskrouterV1WorkspaceWorkflowWorkflowCumulativeStatistics, error) { + path := "/v1/Workspaces/{WorkspaceSid}/Workflows/{WorkflowSid}/CumulativeStatistics" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkflowSid"+"}", workflowSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.Minutes != nil { + data.Set("Minutes", string(*params.Minutes)) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.TaskChannel != nil { + data.Set("TaskChannel", *params.TaskChannel) + } + if params != nil && params.SplitByWaitTime != nil { + data.Set("SplitByWaitTime", *params.SplitByWaitTime) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceWorkflowWorkflowCumulativeStatistics{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// FetchWorkflowRealTimeStatisticsParams Optional parameters for the method 'FetchWorkflowRealTimeStatistics' +type FetchWorkflowRealTimeStatisticsParams struct { + TaskChannel *string `json:"TaskChannel,omitempty"` +} + +/* +FetchWorkflowRealTimeStatistics Method for FetchWorkflowRealTimeStatistics + * @param workspaceSid The SID of the Workspace with the Workflow to fetch. + * @param workflowSid Returns the list of Tasks that are being controlled by the Workflow with the specified SID value. + * @param optional nil or *FetchWorkflowRealTimeStatisticsOpts - Optional Parameters: + * @param "TaskChannel" (string) - Only calculate real-time statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. +@return TaskrouterV1WorkspaceWorkflowWorkflowRealTimeStatistics +*/ +func (c *DefaultApiService) FetchWorkflowRealTimeStatistics(workspaceSid string, workflowSid string, params *FetchWorkflowRealTimeStatisticsParams) (*TaskrouterV1WorkspaceWorkflowWorkflowRealTimeStatistics, error) { + path := "/v1/Workspaces/{WorkspaceSid}/Workflows/{WorkflowSid}/RealTimeStatistics" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkflowSid"+"}", workflowSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.TaskChannel != nil { + data.Set("TaskChannel", *params.TaskChannel) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceWorkflowWorkflowRealTimeStatistics{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// FetchWorkflowStatisticsParams Optional parameters for the method 'FetchWorkflowStatistics' +type FetchWorkflowStatisticsParams struct { + Minutes *int32 `json:"Minutes,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` + SplitByWaitTime *string `json:"SplitByWaitTime,omitempty"` +} + +/* +FetchWorkflowStatistics Method for FetchWorkflowStatistics + * @param workspaceSid The SID of the Workspace with the Workflow to fetch. + * @param workflowSid Returns the list of Tasks that are being controlled by the Workflow with the specified SID value. + * @param optional nil or *FetchWorkflowStatisticsOpts - Optional Parameters: + * @param "Minutes" (int32) - Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. + * @param "StartDate" (time.Time) - Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + * @param "EndDate" (time.Time) - Only calculate statistics from this date and time and earlier, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. + * @param "TaskChannel" (string) - Only calculate real-time statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. + * @param "SplitByWaitTime" (string) - A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. For example, `5,30` would show splits of Tasks that were canceled or accepted before and after 5 seconds and before and after 30 seconds. This can be used to show short abandoned Tasks or Tasks that failed to meet an SLA. +@return TaskrouterV1WorkspaceWorkflowWorkflowStatistics +*/ +func (c *DefaultApiService) FetchWorkflowStatistics(workspaceSid string, workflowSid string, params *FetchWorkflowStatisticsParams) (*TaskrouterV1WorkspaceWorkflowWorkflowStatistics, error) { + path := "/v1/Workspaces/{WorkspaceSid}/Workflows/{WorkflowSid}/Statistics" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkflowSid"+"}", workflowSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Minutes != nil { + data.Set("Minutes", string(*params.Minutes)) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.TaskChannel != nil { + data.Set("TaskChannel", *params.TaskChannel) + } + if params != nil && params.SplitByWaitTime != nil { + data.Set("SplitByWaitTime", *params.SplitByWaitTime) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceWorkflowWorkflowStatistics{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchWorkspace Method for FetchWorkspace + * @param sid The SID of the Workspace resource to fetch. +@return TaskrouterV1Workspace +*/ +func (c *DefaultApiService) FetchWorkspace(sid string) (*TaskrouterV1Workspace, error) { + path := "/v1/Workspaces/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1Workspace{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// FetchWorkspaceCumulativeStatisticsParams Optional parameters for the method 'FetchWorkspaceCumulativeStatistics' +type FetchWorkspaceCumulativeStatisticsParams struct { + EndDate *time.Time `json:"EndDate,omitempty"` + Minutes *int32 `json:"Minutes,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` + SplitByWaitTime *string `json:"SplitByWaitTime,omitempty"` +} + +/* +FetchWorkspaceCumulativeStatistics Method for FetchWorkspaceCumulativeStatistics + * @param workspaceSid The SID of the Workspace to fetch. + * @param optional nil or *FetchWorkspaceCumulativeStatisticsOpts - Optional Parameters: + * @param "EndDate" (time.Time) - Only include usage that occurred on or before this date, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. + * @param "Minutes" (int32) - Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. + * @param "StartDate" (time.Time) - Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + * @param "TaskChannel" (string) - Only calculate cumulative statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. + * @param "SplitByWaitTime" (string) - A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. For example, `5,30` would show splits of Tasks that were canceled or accepted before and after 5 seconds and before and after 30 seconds. This can be used to show short abandoned Tasks or Tasks that failed to meet an SLA. +@return TaskrouterV1WorkspaceWorkspaceCumulativeStatistics +*/ +func (c *DefaultApiService) FetchWorkspaceCumulativeStatistics(workspaceSid string, params *FetchWorkspaceCumulativeStatisticsParams) (*TaskrouterV1WorkspaceWorkspaceCumulativeStatistics, error) { + path := "/v1/Workspaces/{WorkspaceSid}/CumulativeStatistics" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.Minutes != nil { + data.Set("Minutes", string(*params.Minutes)) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.TaskChannel != nil { + data.Set("TaskChannel", *params.TaskChannel) + } + if params != nil && params.SplitByWaitTime != nil { + data.Set("SplitByWaitTime", *params.SplitByWaitTime) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceWorkspaceCumulativeStatistics{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// FetchWorkspaceRealTimeStatisticsParams Optional parameters for the method 'FetchWorkspaceRealTimeStatistics' +type FetchWorkspaceRealTimeStatisticsParams struct { + TaskChannel *string `json:"TaskChannel,omitempty"` +} + +/* +FetchWorkspaceRealTimeStatistics Method for FetchWorkspaceRealTimeStatistics + * @param workspaceSid The SID of the Workspace to fetch. + * @param optional nil or *FetchWorkspaceRealTimeStatisticsOpts - Optional Parameters: + * @param "TaskChannel" (string) - Only calculate real-time statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. +@return TaskrouterV1WorkspaceWorkspaceRealTimeStatistics +*/ +func (c *DefaultApiService) FetchWorkspaceRealTimeStatistics(workspaceSid string, params *FetchWorkspaceRealTimeStatisticsParams) (*TaskrouterV1WorkspaceWorkspaceRealTimeStatistics, error) { + path := "/v1/Workspaces/{WorkspaceSid}/RealTimeStatistics" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.TaskChannel != nil { + data.Set("TaskChannel", *params.TaskChannel) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceWorkspaceRealTimeStatistics{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// FetchWorkspaceStatisticsParams Optional parameters for the method 'FetchWorkspaceStatistics' +type FetchWorkspaceStatisticsParams struct { + Minutes *int32 `json:"Minutes,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` + SplitByWaitTime *string `json:"SplitByWaitTime,omitempty"` +} + +/* +FetchWorkspaceStatistics Method for FetchWorkspaceStatistics + * @param workspaceSid The SID of the Workspace to fetch. + * @param optional nil or *FetchWorkspaceStatisticsOpts - Optional Parameters: + * @param "Minutes" (int32) - Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. + * @param "StartDate" (time.Time) - Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + * @param "EndDate" (time.Time) - Only calculate statistics from this date and time and earlier, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. + * @param "TaskChannel" (string) - Only calculate statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. + * @param "SplitByWaitTime" (string) - A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. For example, `5,30` would show splits of Tasks that were canceled or accepted before and after 5 seconds and before and after 30 seconds. This can be used to show short abandoned Tasks or Tasks that failed to meet an SLA. +@return TaskrouterV1WorkspaceWorkspaceStatistics +*/ +func (c *DefaultApiService) FetchWorkspaceStatistics(workspaceSid string, params *FetchWorkspaceStatisticsParams) (*TaskrouterV1WorkspaceWorkspaceStatistics, error) { + path := "/v1/Workspaces/{WorkspaceSid}/Statistics" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Minutes != nil { + data.Set("Minutes", string(*params.Minutes)) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.TaskChannel != nil { + data.Set("TaskChannel", *params.TaskChannel) + } + if params != nil && params.SplitByWaitTime != nil { + data.Set("SplitByWaitTime", *params.SplitByWaitTime) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceWorkspaceStatistics{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListActivityParams Optional parameters for the method 'ListActivity' +type ListActivityParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` + Available *string `json:"Available,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListActivity Method for ListActivity + * @param workspaceSid The SID of the Workspace with the Activity resources to read. + * @param optional nil or *ListActivityOpts - Optional Parameters: + * @param "FriendlyName" (string) - The `friendly_name` of the Activity resources to read. + * @param "Available" (string) - Whether return only Activity resources that are available or unavailable. A value of `true` returns only available activities. Values of '1' or `yes` also indicate `true`. All other values represent `false` and return activities that are unavailable. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return TaskrouterV1WorkspaceActivityReadResponse +*/ +func (c *DefaultApiService) ListActivity(workspaceSid string, params *ListActivityParams) (*TaskrouterV1WorkspaceActivityReadResponse, error) { + path := "/v1/Workspaces/{WorkspaceSid}/Activities" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Available != nil { + data.Set("Available", *params.Available) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceActivityReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListEventParams Optional parameters for the method 'ListEvent' +type ListEventParams struct { + EndDate *time.Time `json:"EndDate,omitempty"` + EventType *string `json:"EventType,omitempty"` + Minutes *int32 `json:"Minutes,omitempty"` + ReservationSid *string `json:"ReservationSid,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + TaskQueueSid *string `json:"TaskQueueSid,omitempty"` + TaskSid *string `json:"TaskSid,omitempty"` + WorkerSid *string `json:"WorkerSid,omitempty"` + WorkflowSid *string `json:"WorkflowSid,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` + Sid *string `json:"Sid,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListEvent Method for ListEvent + * @param workspaceSid The SID of the Workspace with the Events to read. Returns only the Events that pertain to the specified Workspace. + * @param optional nil or *ListEventOpts - Optional Parameters: + * @param "EndDate" (time.Time) - Only include Events that occurred on or before this date, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. + * @param "EventType" (string) - The type of Events to read. Returns only Events of the type specified. + * @param "Minutes" (int32) - The period of events to read in minutes. Returns only Events that occurred since this many minutes in the past. The default is `15` minutes. Task Attributes for Events occuring more 43,200 minutes ago will be redacted. + * @param "ReservationSid" (string) - The SID of the Reservation with the Events to read. Returns only Events that pertain to the specified Reservation. + * @param "StartDate" (time.Time) - Only include Events from on or after this date and time, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Task Attributes for Events older than 30 days will be redacted. + * @param "TaskQueueSid" (string) - The SID of the TaskQueue with the Events to read. Returns only the Events that pertain to the specified TaskQueue. + * @param "TaskSid" (string) - The SID of the Task with the Events to read. Returns only the Events that pertain to the specified Task. + * @param "WorkerSid" (string) - The SID of the Worker with the Events to read. Returns only the Events that pertain to the specified Worker. + * @param "WorkflowSid" (string) - The SID of the Workflow with the Events to read. Returns only the Events that pertain to the specified Workflow. + * @param "TaskChannel" (string) - The TaskChannel with the Events to read. Returns only the Events that pertain to the specified TaskChannel. + * @param "Sid" (string) - The SID of the Event resource to read. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return TaskrouterV1WorkspaceEventReadResponse +*/ +func (c *DefaultApiService) ListEvent(workspaceSid string, params *ListEventParams) (*TaskrouterV1WorkspaceEventReadResponse, error) { + path := "/v1/Workspaces/{WorkspaceSid}/Events" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.EventType != nil { + data.Set("EventType", *params.EventType) + } + if params != nil && params.Minutes != nil { + data.Set("Minutes", string(*params.Minutes)) + } + if params != nil && params.ReservationSid != nil { + data.Set("ReservationSid", *params.ReservationSid) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.TaskQueueSid != nil { + data.Set("TaskQueueSid", *params.TaskQueueSid) + } + if params != nil && params.TaskSid != nil { + data.Set("TaskSid", *params.TaskSid) + } + if params != nil && params.WorkerSid != nil { + data.Set("WorkerSid", *params.WorkerSid) + } + if params != nil && params.WorkflowSid != nil { + data.Set("WorkflowSid", *params.WorkflowSid) + } + if params != nil && params.TaskChannel != nil { + data.Set("TaskChannel", *params.TaskChannel) + } + if params != nil && params.Sid != nil { + data.Set("Sid", *params.Sid) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceEventReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListTaskParams Optional parameters for the method 'ListTask' +type ListTaskParams struct { + Priority *int32 `json:"Priority,omitempty"` + AssignmentStatus *[]string `json:"AssignmentStatus,omitempty"` + WorkflowSid *string `json:"WorkflowSid,omitempty"` + WorkflowName *string `json:"WorkflowName,omitempty"` + TaskQueueSid *string `json:"TaskQueueSid,omitempty"` + TaskQueueName *string `json:"TaskQueueName,omitempty"` + EvaluateTaskAttributes *string `json:"EvaluateTaskAttributes,omitempty"` + Ordering *string `json:"Ordering,omitempty"` + HasAddons *bool `json:"HasAddons,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListTask Method for ListTask + * @param workspaceSid The SID of the Workspace with the Tasks to read. + * @param optional nil or *ListTaskOpts - Optional Parameters: + * @param "Priority" (int32) - The priority value of the Tasks to read. Returns the list of all Tasks in the Workspace with the specified priority. + * @param "AssignmentStatus" ([]string) - The `assignment_status` of the Tasks you want to read. Can be: `pending`, `reserved`, `assigned`, `canceled`, `wrapping`, or `completed`. Returns all Tasks in the Workspace with the specified `assignment_status`. + * @param "WorkflowSid" (string) - The SID of the Workflow with the Tasks to read. Returns the Tasks controlled by the Workflow identified by this SID. + * @param "WorkflowName" (string) - The friendly name of the Workflow with the Tasks to read. Returns the Tasks controlled by the Workflow identified by this friendly name. + * @param "TaskQueueSid" (string) - The SID of the TaskQueue with the Tasks to read. Returns the Tasks waiting in the TaskQueue identified by this SID. + * @param "TaskQueueName" (string) - The `friendly_name` of the TaskQueue with the Tasks to read. Returns the Tasks waiting in the TaskQueue identified by this friendly name. + * @param "EvaluateTaskAttributes" (string) - The attributes of the Tasks to read. Returns the Tasks that match the attributes specified in this parameter. + * @param "Ordering" (string) - How to order the returned Task resources. y default, Tasks are sorted by ascending DateCreated. This value is specified as: `Attribute:Order`, where `Attribute` can be either `Priority` or `DateCreated` and `Order` can be either `asc` or `desc`. For example, `Priority:desc` returns Tasks ordered in descending order of their Priority. Multiple sort orders can be specified in a comma-separated list such as `Priority:desc,DateCreated:asc`, which returns the Tasks in descending Priority order and ascending DateCreated Order. + * @param "HasAddons" (bool) - Whether to read Tasks with addons. If `true`, returns only Tasks with addons. If `false`, returns only Tasks without addons. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return TaskrouterV1WorkspaceTaskReadResponse +*/ +func (c *DefaultApiService) ListTask(workspaceSid string, params *ListTaskParams) (*TaskrouterV1WorkspaceTaskReadResponse, error) { + path := "/v1/Workspaces/{WorkspaceSid}/Tasks" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Priority != nil { + data.Set("Priority", string(*params.Priority)) + } + if params != nil && params.AssignmentStatus != nil { + data.Set("AssignmentStatus", string(*params.AssignmentStatus)) + } + if params != nil && params.WorkflowSid != nil { + data.Set("WorkflowSid", *params.WorkflowSid) + } + if params != nil && params.WorkflowName != nil { + data.Set("WorkflowName", *params.WorkflowName) + } + if params != nil && params.TaskQueueSid != nil { + data.Set("TaskQueueSid", *params.TaskQueueSid) + } + if params != nil && params.TaskQueueName != nil { + data.Set("TaskQueueName", *params.TaskQueueName) + } + if params != nil && params.EvaluateTaskAttributes != nil { + data.Set("EvaluateTaskAttributes", *params.EvaluateTaskAttributes) + } + if params != nil && params.Ordering != nil { + data.Set("Ordering", *params.Ordering) + } + if params != nil && params.HasAddons != nil { + data.Set("HasAddons", string(*params.HasAddons)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceTaskReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListTaskChannelParams Optional parameters for the method 'ListTaskChannel' +type ListTaskChannelParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListTaskChannel Method for ListTaskChannel + * @param workspaceSid The SID of the Workspace with the Task Channel to read. + * @param optional nil or *ListTaskChannelOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return TaskrouterV1WorkspaceTaskChannelReadResponse +*/ +func (c *DefaultApiService) ListTaskChannel(workspaceSid string, params *ListTaskChannelParams) (*TaskrouterV1WorkspaceTaskChannelReadResponse, error) { + path := "/v1/Workspaces/{WorkspaceSid}/TaskChannels" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceTaskChannelReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListTaskQueueParams Optional parameters for the method 'ListTaskQueue' +type ListTaskQueueParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` + EvaluateWorkerAttributes *string `json:"EvaluateWorkerAttributes,omitempty"` + WorkerSid *string `json:"WorkerSid,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListTaskQueue Method for ListTaskQueue + * @param workspaceSid The SID of the Workspace with the TaskQueue to read. + * @param optional nil or *ListTaskQueueOpts - Optional Parameters: + * @param "FriendlyName" (string) - The `friendly_name` of the TaskQueue resources to read. + * @param "EvaluateWorkerAttributes" (string) - The attributes of the Workers to read. Returns the TaskQueues with Workers that match the attributes specified in this parameter. + * @param "WorkerSid" (string) - The SID of the Worker with the TaskQueue resources to read. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return TaskrouterV1WorkspaceTaskQueueReadResponse +*/ +func (c *DefaultApiService) ListTaskQueue(workspaceSid string, params *ListTaskQueueParams) (*TaskrouterV1WorkspaceTaskQueueReadResponse, error) { + path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.EvaluateWorkerAttributes != nil { + data.Set("EvaluateWorkerAttributes", *params.EvaluateWorkerAttributes) + } + if params != nil && params.WorkerSid != nil { + data.Set("WorkerSid", *params.WorkerSid) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceTaskQueueReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListTaskQueuesStatisticsParams Optional parameters for the method 'ListTaskQueuesStatistics' +type ListTaskQueuesStatisticsParams struct { + EndDate *time.Time `json:"EndDate,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Minutes *int32 `json:"Minutes,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` + SplitByWaitTime *string `json:"SplitByWaitTime,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListTaskQueuesStatistics Method for ListTaskQueuesStatistics + * @param workspaceSid The SID of the Workspace with the TaskQueues to read. + * @param optional nil or *ListTaskQueuesStatisticsOpts - Optional Parameters: + * @param "EndDate" (time.Time) - Only calculate statistics from this date and time and earlier, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. + * @param "FriendlyName" (string) - The `friendly_name` of the TaskQueue statistics to read. + * @param "Minutes" (int32) - Only calculate statistics since this many minutes in the past. The default is 15 minutes. + * @param "StartDate" (time.Time) - Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + * @param "TaskChannel" (string) - Only calculate statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. + * @param "SplitByWaitTime" (string) - A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse +*/ +func (c *DefaultApiService) ListTaskQueuesStatistics(workspaceSid string, params *ListTaskQueuesStatisticsParams) (*TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse, error) { + path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/Statistics" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Minutes != nil { + data.Set("Minutes", string(*params.Minutes)) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.TaskChannel != nil { + data.Set("TaskChannel", *params.TaskChannel) + } + if params != nil && params.SplitByWaitTime != nil { + data.Set("SplitByWaitTime", *params.SplitByWaitTime) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListTaskReservationParams Optional parameters for the method 'ListTaskReservation' +type ListTaskReservationParams struct { + ReservationStatus *string `json:"ReservationStatus,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListTaskReservation Method for ListTaskReservation + * @param workspaceSid The SID of the Workspace with the TaskReservation resources to read. + * @param taskSid The SID of the reserved Task resource with the TaskReservation resources to read. + * @param optional nil or *ListTaskReservationOpts - Optional Parameters: + * @param "ReservationStatus" (string) - Returns the list of reservations for a task with a specified ReservationStatus. Can be: `pending`, `accepted`, `rejected`, or `timeout`. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return TaskrouterV1WorkspaceTaskTaskReservationReadResponse +*/ +func (c *DefaultApiService) ListTaskReservation(workspaceSid string, taskSid string, params *ListTaskReservationParams) (*TaskrouterV1WorkspaceTaskTaskReservationReadResponse, error) { + path := "/v1/Workspaces/{WorkspaceSid}/Tasks/{TaskSid}/Reservations" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ReservationStatus != nil { + data.Set("ReservationStatus", *params.ReservationStatus) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceTaskTaskReservationReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListWorkerParams Optional parameters for the method 'ListWorker' +type ListWorkerParams struct { + ActivityName *string `json:"ActivityName,omitempty"` + ActivitySid *string `json:"ActivitySid,omitempty"` + Available *string `json:"Available,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + TargetWorkersExpression *string `json:"TargetWorkersExpression,omitempty"` + TaskQueueName *string `json:"TaskQueueName,omitempty"` + TaskQueueSid *string `json:"TaskQueueSid,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListWorker Method for ListWorker + * @param workspaceSid The SID of the Workspace with the Workers to read. + * @param optional nil or *ListWorkerOpts - Optional Parameters: + * @param "ActivityName" (string) - The `activity_name` of the Worker resources to read. + * @param "ActivitySid" (string) - The `activity_sid` of the Worker resources to read. + * @param "Available" (string) - Whether to return only Worker resources that are available or unavailable. Can be `true`, `1`, or `yes` to return Worker resources that are available, and `false`, or any value returns the Worker resources that are not available. + * @param "FriendlyName" (string) - The `friendly_name` of the Worker resources to read. + * @param "TargetWorkersExpression" (string) - Filter by Workers that would match an expression on a TaskQueue. This is helpful for debugging which Workers would match a potential queue. + * @param "TaskQueueName" (string) - The `friendly_name` of the TaskQueue that the Workers to read are eligible for. + * @param "TaskQueueSid" (string) - The SID of the TaskQueue that the Workers to read are eligible for. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return TaskrouterV1WorkspaceWorkerReadResponse +*/ +func (c *DefaultApiService) ListWorker(workspaceSid string, params *ListWorkerParams) (*TaskrouterV1WorkspaceWorkerReadResponse, error) { + path := "/v1/Workspaces/{WorkspaceSid}/Workers" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ActivityName != nil { + data.Set("ActivityName", *params.ActivityName) + } + if params != nil && params.ActivitySid != nil { + data.Set("ActivitySid", *params.ActivitySid) + } + if params != nil && params.Available != nil { + data.Set("Available", *params.Available) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.TargetWorkersExpression != nil { + data.Set("TargetWorkersExpression", *params.TargetWorkersExpression) + } + if params != nil && params.TaskQueueName != nil { + data.Set("TaskQueueName", *params.TaskQueueName) + } + if params != nil && params.TaskQueueSid != nil { + data.Set("TaskQueueSid", *params.TaskQueueSid) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceWorkerReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListWorkerChannelParams Optional parameters for the method 'ListWorkerChannel' +type ListWorkerChannelParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListWorkerChannel Method for ListWorkerChannel + * @param workspaceSid The SID of the Workspace with the WorkerChannels to read. + * @param workerSid The SID of the Worker with the WorkerChannels to read. + * @param optional nil or *ListWorkerChannelOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse +*/ +func (c *DefaultApiService) ListWorkerChannel(workspaceSid string, workerSid string, params *ListWorkerChannelParams) (*TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse, error) { + path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Channels" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkerSid"+"}", workerSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListWorkerReservationParams Optional parameters for the method 'ListWorkerReservation' +type ListWorkerReservationParams struct { + ReservationStatus *string `json:"ReservationStatus,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListWorkerReservation Method for ListWorkerReservation + * @param workspaceSid The SID of the Workspace with the WorkerReservation resources to read. + * @param workerSid The SID of the reserved Worker resource with the WorkerReservation resources to read. + * @param optional nil or *ListWorkerReservationOpts - Optional Parameters: + * @param "ReservationStatus" (string) - Returns the list of reservations for a worker with a specified ReservationStatus. Can be: `pending`, `accepted`, `rejected`, `timeout`, `canceled`, or `rescinded`. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse +*/ +func (c *DefaultApiService) ListWorkerReservation(workspaceSid string, workerSid string, params *ListWorkerReservationParams) (*TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse, error) { + path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Reservations" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkerSid"+"}", workerSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ReservationStatus != nil { + data.Set("ReservationStatus", *params.ReservationStatus) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListWorkflowParams Optional parameters for the method 'ListWorkflow' +type ListWorkflowParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListWorkflow Method for ListWorkflow + * @param workspaceSid The SID of the Workspace with the Workflow to read. + * @param optional nil or *ListWorkflowOpts - Optional Parameters: + * @param "FriendlyName" (string) - The `friendly_name` of the Workflow resources to read. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return TaskrouterV1WorkspaceWorkflowReadResponse +*/ +func (c *DefaultApiService) ListWorkflow(workspaceSid string, params *ListWorkflowParams) (*TaskrouterV1WorkspaceWorkflowReadResponse, error) { + path := "/v1/Workspaces/{WorkspaceSid}/Workflows" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceWorkflowReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListWorkspaceParams Optional parameters for the method 'ListWorkspace' +type ListWorkspaceParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListWorkspace Method for ListWorkspace + * @param optional nil or *ListWorkspaceOpts - Optional Parameters: + * @param "FriendlyName" (string) - The `friendly_name` of the Workspace resources to read. For example `Customer Support` or `2014 Election Campaign`. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return TaskrouterV1WorkspaceReadResponse +*/ +func (c *DefaultApiService) ListWorkspace(params *ListWorkspaceParams) (*TaskrouterV1WorkspaceReadResponse, error) { + path := "/v1/Workspaces" + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateActivityParams Optional parameters for the method 'UpdateActivity' +type UpdateActivityParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +UpdateActivity Method for UpdateActivity + * @param workspaceSid The SID of the Workspace with the Activity resources to update. + * @param sid The SID of the Activity resource to update. + * @param optional nil or *UpdateActivityOpts - Optional Parameters: + * @param "FriendlyName" (string) - A descriptive string that you create to describe the Activity resource. It can be up to 64 characters long. These names are used to calculate and expose statistics about Workers, and provide visibility into the state of each Worker. Examples of friendly names include: `on-call`, `break`, and `email`. +@return TaskrouterV1WorkspaceActivity +*/ +func (c *DefaultApiService) UpdateActivity(workspaceSid string, sid string, params *UpdateActivityParams) (*TaskrouterV1WorkspaceActivity, error) { + path := "/v1/Workspaces/{WorkspaceSid}/Activities/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceActivity{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateTaskParams Optional parameters for the method 'UpdateTask' +type UpdateTaskParams struct { + AssignmentStatus *string `json:"AssignmentStatus,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + Priority *int32 `json:"Priority,omitempty"` + Reason *string `json:"Reason,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` +} + +/* +UpdateTask Method for UpdateTask + * @param workspaceSid The SID of the Workspace with the Task to update. + * @param sid The SID of the Task resource to update. + * @param optional nil or *UpdateTaskOpts - Optional Parameters: + * @param "AssignmentStatus" (string) - The new status of the task. Can be: `canceled`, to cancel a Task that is currently `pending` or `reserved`; `wrapping`, to move the Task to wrapup state; or `completed`, to move a Task to the completed state. + * @param "Attributes" (string) - The JSON string that describes the custom attributes of the task. + * @param "Priority" (int32) - The Task's new priority value. When supplied, the Task takes on the specified priority unless it matches a Workflow Target with a Priority set. Value can be 0 to 2^31^ (2,147,483,647). + * @param "Reason" (string) - The reason that the Task was canceled or completed. This parameter is required only if the Task is canceled or completed. Setting this value queues the task for deletion and logs the reason. + * @param "TaskChannel" (string) - When MultiTasking is enabled, specify the TaskChannel with the task to update. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. +@return TaskrouterV1WorkspaceTask +*/ +func (c *DefaultApiService) UpdateTask(workspaceSid string, sid string, params *UpdateTaskParams) (*TaskrouterV1WorkspaceTask, error) { + path := "/v1/Workspaces/{WorkspaceSid}/Tasks/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AssignmentStatus != nil { + data.Set("AssignmentStatus", *params.AssignmentStatus) + } + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.Priority != nil { + data.Set("Priority", string(*params.Priority)) + } + if params != nil && params.Reason != nil { + data.Set("Reason", *params.Reason) + } + if params != nil && params.TaskChannel != nil { + data.Set("TaskChannel", *params.TaskChannel) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceTask{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateTaskChannelParams Optional parameters for the method 'UpdateTaskChannel' +type UpdateTaskChannelParams struct { + ChannelOptimizedRouting *bool `json:"ChannelOptimizedRouting,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +UpdateTaskChannel Method for UpdateTaskChannel + * @param workspaceSid The SID of the Workspace with the Task Channel to update. + * @param sid The SID of the Task Channel resource to update. + * @param optional nil or *UpdateTaskChannelOpts - Optional Parameters: + * @param "ChannelOptimizedRouting" (bool) - Whether the TaskChannel should prioritize Workers that have been idle. If `true`, Workers that have been idle the longest are prioritized. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the Task Channel. It can be up to 64 characters long. +@return TaskrouterV1WorkspaceTaskChannel +*/ +func (c *DefaultApiService) UpdateTaskChannel(workspaceSid string, sid string, params *UpdateTaskChannelParams) (*TaskrouterV1WorkspaceTaskChannel, error) { + path := "/v1/Workspaces/{WorkspaceSid}/TaskChannels/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ChannelOptimizedRouting != nil { + data.Set("ChannelOptimizedRouting", string(*params.ChannelOptimizedRouting)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceTaskChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateTaskQueueParams Optional parameters for the method 'UpdateTaskQueue' +type UpdateTaskQueueParams struct { + AssignmentActivitySid *string `json:"AssignmentActivitySid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + MaxReservedWorkers *int32 `json:"MaxReservedWorkers,omitempty"` + ReservationActivitySid *string `json:"ReservationActivitySid,omitempty"` + TargetWorkers *string `json:"TargetWorkers,omitempty"` + TaskOrder *string `json:"TaskOrder,omitempty"` +} + +/* +UpdateTaskQueue Method for UpdateTaskQueue + * @param workspaceSid The SID of the Workspace with the TaskQueue to update. + * @param sid The SID of the TaskQueue resource to update. + * @param optional nil or *UpdateTaskQueueOpts - Optional Parameters: + * @param "AssignmentActivitySid" (string) - The SID of the Activity to assign Workers when a task is assigned for them. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the TaskQueue. For example `Support-Tier 1`, `Sales`, or `Escalation`. + * @param "MaxReservedWorkers" (int32) - The maximum number of Workers to create reservations for the assignment of a task while in the queue. Maximum of 50. + * @param "ReservationActivitySid" (string) - The SID of the Activity to assign Workers when a task is reserved for them. + * @param "TargetWorkers" (string) - A string describing the Worker selection criteria for any Tasks that enter the TaskQueue. For example '\\\"language\\\" == \\\"spanish\\\"' If no TargetWorkers parameter is provided, Tasks will wait in the queue until they are either deleted or moved to another queue. Additional examples on how to describing Worker selection criteria below. + * @param "TaskOrder" (string) - How Tasks will be assigned to Workers. Can be: `FIFO` or `LIFO` and the default is `FIFO`. Use `FIFO` to assign the oldest task first and `LIFO` to assign the most recent task first. For more information, see [Queue Ordering](https://www.twilio.com/docs/taskrouter/queue-ordering-last-first-out-lifo). +@return TaskrouterV1WorkspaceTaskQueue +*/ +func (c *DefaultApiService) UpdateTaskQueue(workspaceSid string, sid string, params *UpdateTaskQueueParams) (*TaskrouterV1WorkspaceTaskQueue, error) { + path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AssignmentActivitySid != nil { + data.Set("AssignmentActivitySid", *params.AssignmentActivitySid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.MaxReservedWorkers != nil { + data.Set("MaxReservedWorkers", string(*params.MaxReservedWorkers)) + } + if params != nil && params.ReservationActivitySid != nil { + data.Set("ReservationActivitySid", *params.ReservationActivitySid) + } + if params != nil && params.TargetWorkers != nil { + data.Set("TargetWorkers", *params.TargetWorkers) + } + if params != nil && params.TaskOrder != nil { + data.Set("TaskOrder", *params.TaskOrder) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceTaskQueue{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateTaskReservationParams Optional parameters for the method 'UpdateTaskReservation' +type UpdateTaskReservationParams struct { + Beep *string `json:"Beep,omitempty"` + BeepOnCustomerEntrance *bool `json:"BeepOnCustomerEntrance,omitempty"` + CallAccept *bool `json:"CallAccept,omitempty"` + CallFrom *string `json:"CallFrom,omitempty"` + CallRecord *string `json:"CallRecord,omitempty"` + CallStatusCallbackUrl *string `json:"CallStatusCallbackUrl,omitempty"` + CallTimeout *int32 `json:"CallTimeout,omitempty"` + CallTo *string `json:"CallTo,omitempty"` + CallUrl *string `json:"CallUrl,omitempty"` + ConferenceRecord *string `json:"ConferenceRecord,omitempty"` + ConferenceRecordingStatusCallback *string `json:"ConferenceRecordingStatusCallback,omitempty"` + ConferenceRecordingStatusCallbackMethod *string `json:"ConferenceRecordingStatusCallbackMethod,omitempty"` + ConferenceStatusCallback *string `json:"ConferenceStatusCallback,omitempty"` + ConferenceStatusCallbackEvent *[]string `json:"ConferenceStatusCallbackEvent,omitempty"` + ConferenceStatusCallbackMethod *string `json:"ConferenceStatusCallbackMethod,omitempty"` + ConferenceTrim *string `json:"ConferenceTrim,omitempty"` + DequeueFrom *string `json:"DequeueFrom,omitempty"` + DequeuePostWorkActivitySid *string `json:"DequeuePostWorkActivitySid,omitempty"` + DequeueRecord *string `json:"DequeueRecord,omitempty"` + DequeueStatusCallbackEvent *[]string `json:"DequeueStatusCallbackEvent,omitempty"` + DequeueStatusCallbackUrl *string `json:"DequeueStatusCallbackUrl,omitempty"` + DequeueTimeout *int32 `json:"DequeueTimeout,omitempty"` + DequeueTo *string `json:"DequeueTo,omitempty"` + EarlyMedia *bool `json:"EarlyMedia,omitempty"` + EndConferenceOnCustomerExit *bool `json:"EndConferenceOnCustomerExit,omitempty"` + EndConferenceOnExit *bool `json:"EndConferenceOnExit,omitempty"` + From *string `json:"From,omitempty"` + Instruction *string `json:"Instruction,omitempty"` + MaxParticipants *int32 `json:"MaxParticipants,omitempty"` + Muted *bool `json:"Muted,omitempty"` + PostWorkActivitySid *string `json:"PostWorkActivitySid,omitempty"` + Record *bool `json:"Record,omitempty"` + RecordingChannels *string `json:"RecordingChannels,omitempty"` + RecordingStatusCallback *string `json:"RecordingStatusCallback,omitempty"` + RecordingStatusCallbackMethod *string `json:"RecordingStatusCallbackMethod,omitempty"` + RedirectAccept *bool `json:"RedirectAccept,omitempty"` + RedirectCallSid *string `json:"RedirectCallSid,omitempty"` + RedirectUrl *string `json:"RedirectUrl,omitempty"` + Region *string `json:"Region,omitempty"` + ReservationStatus *string `json:"ReservationStatus,omitempty"` + SipAuthPassword *string `json:"SipAuthPassword,omitempty"` + SipAuthUsername *string `json:"SipAuthUsername,omitempty"` + StartConferenceOnEnter *bool `json:"StartConferenceOnEnter,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackEvent *[]string `json:"StatusCallbackEvent,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + Supervisor *string `json:"Supervisor,omitempty"` + SupervisorMode *string `json:"SupervisorMode,omitempty"` + Timeout *int32 `json:"Timeout,omitempty"` + To *string `json:"To,omitempty"` + WaitMethod *string `json:"WaitMethod,omitempty"` + WaitUrl *string `json:"WaitUrl,omitempty"` + WorkerActivitySid *string `json:"WorkerActivitySid,omitempty"` +} + +/* +UpdateTaskReservation Method for UpdateTaskReservation + * @param workspaceSid The SID of the Workspace with the TaskReservation resources to update. + * @param taskSid The SID of the reserved Task resource with the TaskReservation resources to update. + * @param sid The SID of the TaskReservation resource to update. + * @param optional nil or *UpdateTaskReservationOpts - Optional Parameters: + * @param "Beep" (string) - Whether to play a notification beep when the participant joins or when to play a beep. Can be: `true`, `false`, `onEnter`, or `onExit`. The default value is `true`. + * @param "BeepOnCustomerEntrance" (bool) - Whether to play a notification beep when the customer joins. + * @param "CallAccept" (bool) - Whether to accept a reservation when executing a Call instruction. + * @param "CallFrom" (string) - The Caller ID of the outbound call when executing a Call instruction. + * @param "CallRecord" (string) - Whether to record both legs of a call when executing a Call instruction or which leg to record. + * @param "CallStatusCallbackUrl" (string) - The URL to call for the completed call event when executing a Call instruction. + * @param "CallTimeout" (int32) - Timeout for call when executing a Call instruction. + * @param "CallTo" (string) - The Contact URI of the worker when executing a Call instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the [E.164](https://www.twilio.com/docs/glossary/what-e164) formatted phone number, depending on the destination. + * @param "CallUrl" (string) - TwiML URI executed on answering the worker's leg as a result of the Call instruction. + * @param "ConferenceRecord" (string) - Whether to record the conference the participant is joining or when to record the conference. Can be: `true`, `false`, `record-from-start`, and `do-not-record`. The default value is `false`. + * @param "ConferenceRecordingStatusCallback" (string) - The URL we should call using the `conference_recording_status_callback_method` when the conference recording is available. + * @param "ConferenceRecordingStatusCallbackMethod" (string) - The HTTP method we should use to call `conference_recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. + * @param "ConferenceStatusCallback" (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. + * @param "ConferenceStatusCallbackEvent" ([]string) - The conference status events that we will send to `conference_status_callback`. Can be: `start`, `end`, `join`, `leave`, `mute`, `hold`, `speaker`. + * @param "ConferenceStatusCallbackMethod" (string) - The HTTP method we should use to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. + * @param "ConferenceTrim" (string) - How to trim the leading and trailing silence from your recorded conference audio files. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. + * @param "DequeueFrom" (string) - The Caller ID of the call to the worker when executing a Dequeue instruction. + * @param "DequeuePostWorkActivitySid" (string) - The SID of the Activity resource to start after executing a Dequeue instruction. + * @param "DequeueRecord" (string) - Whether to record both legs of a call when executing a Dequeue instruction or which leg to record. + * @param "DequeueStatusCallbackEvent" ([]string) - The Call progress events sent via webhooks as a result of a Dequeue instruction. + * @param "DequeueStatusCallbackUrl" (string) - The Callback URL for completed call event when executing a Dequeue instruction. + * @param "DequeueTimeout" (int32) - Timeout for call when executing a Dequeue instruction. + * @param "DequeueTo" (string) - The Contact URI of the worker when executing a Dequeue instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the [E.164](https://www.twilio.com/docs/glossary/what-e164) formatted phone number, depending on the destination. + * @param "EarlyMedia" (bool) - Whether to allow an agent to hear the state of the outbound call, including ringing or disconnect messages. The default is `true`. + * @param "EndConferenceOnCustomerExit" (bool) - Whether to end the conference when the customer leaves. + * @param "EndConferenceOnExit" (bool) - Whether to end the conference when the agent leaves. + * @param "From" (string) - The Caller ID of the call to the worker when executing a Conference instruction. + * @param "Instruction" (string) - The assignment instruction for reservation. + * @param "MaxParticipants" (int32) - The maximum number of participants in the conference. Can be a positive integer from `2` to `250`. The default value is `250`. + * @param "Muted" (bool) - Whether the agent is muted in the conference. The default is `false`. + * @param "PostWorkActivitySid" (string) - The new worker activity SID after executing a Conference instruction. + * @param "Record" (bool) - Whether to record the participant and their conferences, including the time between conferences. The default is `false`. + * @param "RecordingChannels" (string) - The recording channels for the final recording. Can be: `mono` or `dual` and the default is `mono`. + * @param "RecordingStatusCallback" (string) - The URL that we should call using the `recording_status_callback_method` when the recording status changes. + * @param "RecordingStatusCallbackMethod" (string) - The HTTP method we should use when we call `recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. + * @param "RedirectAccept" (bool) - Whether the reservation should be accepted when executing a Redirect instruction. + * @param "RedirectCallSid" (string) - The Call SID of the call parked in the queue when executing a Redirect instruction. + * @param "RedirectUrl" (string) - TwiML URI to redirect the call to when executing the Redirect instruction. + * @param "Region" (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`. + * @param "ReservationStatus" (string) - The new status of the reservation. Can be: `pending`, `accepted`, `rejected`, or `timeout`. + * @param "SipAuthPassword" (string) - The SIP password for authentication. + * @param "SipAuthUsername" (string) - The SIP username used for authentication. + * @param "StartConferenceOnEnter" (bool) - Whether to start the conference when the participant joins, if it has not already started. 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. + * @param "StatusCallback" (string) - The URL we should call using the `status_callback_method` to send status information to your application. + * @param "StatusCallbackEvent" ([]string) - The call progress events that we will send to `status_callback`. Can be: `initiated`, `ringing`, `answered`, or `completed`. + * @param "StatusCallbackMethod" (string) - The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`. + * @param "Supervisor" (string) - The Supervisor SID/URI when executing the Supervise instruction. + * @param "SupervisorMode" (string) - The Supervisor mode when executing the Supervise instruction. + * @param "Timeout" (int32) - Timeout for call when executing a Conference instruction. + * @param "To" (string) - The Contact URI of the worker when executing a Conference instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the [E.164](https://www.twilio.com/docs/glossary/what-e164) formatted phone number, depending on the destination. + * @param "WaitMethod" (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. + * @param "WaitUrl" (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). + * @param "WorkerActivitySid" (string) - The new worker activity SID if rejecting a reservation. +@return TaskrouterV1WorkspaceTaskTaskReservation +*/ +func (c *DefaultApiService) UpdateTaskReservation(workspaceSid string, taskSid string, sid string, params *UpdateTaskReservationParams) (*TaskrouterV1WorkspaceTaskTaskReservation, error) { + path := "/v1/Workspaces/{WorkspaceSid}/Tasks/{TaskSid}/Reservations/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Beep != nil { + data.Set("Beep", *params.Beep) + } + if params != nil && params.BeepOnCustomerEntrance != nil { + data.Set("BeepOnCustomerEntrance", string(*params.BeepOnCustomerEntrance)) + } + if params != nil && params.CallAccept != nil { + data.Set("CallAccept", string(*params.CallAccept)) + } + if params != nil && params.CallFrom != nil { + data.Set("CallFrom", *params.CallFrom) + } + if params != nil && params.CallRecord != nil { + data.Set("CallRecord", *params.CallRecord) + } + if params != nil && params.CallStatusCallbackUrl != nil { + data.Set("CallStatusCallbackUrl", *params.CallStatusCallbackUrl) + } + if params != nil && params.CallTimeout != nil { + data.Set("CallTimeout", string(*params.CallTimeout)) + } + if params != nil && params.CallTo != nil { + data.Set("CallTo", *params.CallTo) + } + if params != nil && params.CallUrl != nil { + data.Set("CallUrl", *params.CallUrl) + } + if params != nil && params.ConferenceRecord != nil { + data.Set("ConferenceRecord", *params.ConferenceRecord) + } + if params != nil && params.ConferenceRecordingStatusCallback != nil { + data.Set("ConferenceRecordingStatusCallback", *params.ConferenceRecordingStatusCallback) + } + if params != nil && params.ConferenceRecordingStatusCallbackMethod != nil { + data.Set("ConferenceRecordingStatusCallbackMethod", *params.ConferenceRecordingStatusCallbackMethod) + } + if params != nil && params.ConferenceStatusCallback != nil { + data.Set("ConferenceStatusCallback", *params.ConferenceStatusCallback) + } + if params != nil && params.ConferenceStatusCallbackEvent != nil { + data.Set("ConferenceStatusCallbackEvent", *params.ConferenceStatusCallbackEvent) + } + if params != nil && params.ConferenceStatusCallbackMethod != nil { + data.Set("ConferenceStatusCallbackMethod", *params.ConferenceStatusCallbackMethod) + } + if params != nil && params.ConferenceTrim != nil { + data.Set("ConferenceTrim", *params.ConferenceTrim) + } + if params != nil && params.DequeueFrom != nil { + data.Set("DequeueFrom", *params.DequeueFrom) + } + if params != nil && params.DequeuePostWorkActivitySid != nil { + data.Set("DequeuePostWorkActivitySid", *params.DequeuePostWorkActivitySid) + } + if params != nil && params.DequeueRecord != nil { + data.Set("DequeueRecord", *params.DequeueRecord) + } + if params != nil && params.DequeueStatusCallbackEvent != nil { + data.Set("DequeueStatusCallbackEvent", *params.DequeueStatusCallbackEvent) + } + if params != nil && params.DequeueStatusCallbackUrl != nil { + data.Set("DequeueStatusCallbackUrl", *params.DequeueStatusCallbackUrl) + } + if params != nil && params.DequeueTimeout != nil { + data.Set("DequeueTimeout", string(*params.DequeueTimeout)) + } + if params != nil && params.DequeueTo != nil { + data.Set("DequeueTo", *params.DequeueTo) + } + if params != nil && params.EarlyMedia != nil { + data.Set("EarlyMedia", string(*params.EarlyMedia)) + } + if params != nil && params.EndConferenceOnCustomerExit != nil { + data.Set("EndConferenceOnCustomerExit", string(*params.EndConferenceOnCustomerExit)) + } + if params != nil && params.EndConferenceOnExit != nil { + data.Set("EndConferenceOnExit", string(*params.EndConferenceOnExit)) + } + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.Instruction != nil { + data.Set("Instruction", *params.Instruction) + } + if params != nil && params.MaxParticipants != nil { + data.Set("MaxParticipants", string(*params.MaxParticipants)) + } + if params != nil && params.Muted != nil { + data.Set("Muted", string(*params.Muted)) + } + if params != nil && params.PostWorkActivitySid != nil { + data.Set("PostWorkActivitySid", *params.PostWorkActivitySid) + } + if params != nil && params.Record != nil { + data.Set("Record", string(*params.Record)) + } + if params != nil && params.RecordingChannels != nil { + data.Set("RecordingChannels", *params.RecordingChannels) + } + if params != nil && params.RecordingStatusCallback != nil { + data.Set("RecordingStatusCallback", *params.RecordingStatusCallback) + } + if params != nil && params.RecordingStatusCallbackMethod != nil { + data.Set("RecordingStatusCallbackMethod", *params.RecordingStatusCallbackMethod) + } + if params != nil && params.RedirectAccept != nil { + data.Set("RedirectAccept", string(*params.RedirectAccept)) + } + if params != nil && params.RedirectCallSid != nil { + data.Set("RedirectCallSid", *params.RedirectCallSid) + } + if params != nil && params.RedirectUrl != nil { + data.Set("RedirectUrl", *params.RedirectUrl) + } + if params != nil && params.Region != nil { + data.Set("Region", *params.Region) + } + if params != nil && params.ReservationStatus != nil { + data.Set("ReservationStatus", *params.ReservationStatus) + } + if params != nil && params.SipAuthPassword != nil { + data.Set("SipAuthPassword", *params.SipAuthPassword) + } + if params != nil && params.SipAuthUsername != nil { + data.Set("SipAuthUsername", *params.SipAuthUsername) + } + if params != nil && params.StartConferenceOnEnter != nil { + data.Set("StartConferenceOnEnter", string(*params.StartConferenceOnEnter)) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StatusCallbackEvent != nil { + data.Set("StatusCallbackEvent", *params.StatusCallbackEvent) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.Supervisor != nil { + data.Set("Supervisor", *params.Supervisor) + } + if params != nil && params.SupervisorMode != nil { + data.Set("SupervisorMode", *params.SupervisorMode) + } + if params != nil && params.Timeout != nil { + data.Set("Timeout", string(*params.Timeout)) + } + if params != nil && params.To != nil { + data.Set("To", *params.To) + } + if params != nil && params.WaitMethod != nil { + data.Set("WaitMethod", *params.WaitMethod) + } + if params != nil && params.WaitUrl != nil { + data.Set("WaitUrl", *params.WaitUrl) + } + if params != nil && params.WorkerActivitySid != nil { + data.Set("WorkerActivitySid", *params.WorkerActivitySid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceTaskTaskReservation{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateWorkerParams Optional parameters for the method 'UpdateWorker' +type UpdateWorkerParams struct { + ActivitySid *string `json:"ActivitySid,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + RejectPendingReservations *bool `json:"RejectPendingReservations,omitempty"` +} + +/* +UpdateWorker Method for UpdateWorker + * @param workspaceSid The SID of the Workspace with the Worker to update. + * @param sid The SID of the Worker resource to update. + * @param optional nil or *UpdateWorkerOpts - Optional Parameters: + * @param "ActivitySid" (string) - The SID of a valid Activity that will describe the Worker's initial state. See [Activities](https://www.twilio.com/docs/taskrouter/api/activity) for more information. + * @param "Attributes" (string) - The JSON string that describes the Worker. For example: `{ \\\"email\\\": \\\"Bob@example.com\\\", \\\"phone\\\": \\\"+5095551234\\\" }`. This data is passed to the `assignment_callback_url` when TaskRouter assigns a Task to the Worker. Defaults to {}. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the Worker. It can be up to 64 characters long. + * @param "RejectPendingReservations" (bool) - Whether to reject pending reservations. +@return TaskrouterV1WorkspaceWorker +*/ +func (c *DefaultApiService) UpdateWorker(workspaceSid string, sid string, params *UpdateWorkerParams) (*TaskrouterV1WorkspaceWorker, error) { + path := "/v1/Workspaces/{WorkspaceSid}/Workers/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ActivitySid != nil { + data.Set("ActivitySid", *params.ActivitySid) + } + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.RejectPendingReservations != nil { + data.Set("RejectPendingReservations", string(*params.RejectPendingReservations)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceWorker{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateWorkerChannelParams Optional parameters for the method 'UpdateWorkerChannel' +type UpdateWorkerChannelParams struct { + Available *bool `json:"Available,omitempty"` + Capacity *int32 `json:"Capacity,omitempty"` +} + +/* +UpdateWorkerChannel Method for UpdateWorkerChannel + * @param workspaceSid The SID of the Workspace with the WorkerChannel to update. + * @param workerSid The SID of the Worker with the WorkerChannel to update. + * @param sid The SID of the WorkerChannel to update. + * @param optional nil or *UpdateWorkerChannelOpts - Optional Parameters: + * @param "Available" (bool) - Whether the WorkerChannel is available. Set to `false` to prevent the Worker from receiving any new Tasks of this TaskChannel type. + * @param "Capacity" (int32) - The total number of Tasks that the Worker should handle for the TaskChannel type. TaskRouter creates reservations for Tasks of this TaskChannel type up to the specified capacity. If the capacity is 0, no new reservations will be created. +@return TaskrouterV1WorkspaceWorkerWorkerChannel +*/ +func (c *DefaultApiService) UpdateWorkerChannel(workspaceSid string, workerSid string, sid string, params *UpdateWorkerChannelParams) (*TaskrouterV1WorkspaceWorkerWorkerChannel, error) { + path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Channels/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkerSid"+"}", workerSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Available != nil { + data.Set("Available", string(*params.Available)) + } + if params != nil && params.Capacity != nil { + data.Set("Capacity", string(*params.Capacity)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceWorkerWorkerChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateWorkerReservationParams Optional parameters for the method 'UpdateWorkerReservation' +type UpdateWorkerReservationParams struct { + Beep *string `json:"Beep,omitempty"` + BeepOnCustomerEntrance *bool `json:"BeepOnCustomerEntrance,omitempty"` + CallAccept *bool `json:"CallAccept,omitempty"` + CallFrom *string `json:"CallFrom,omitempty"` + CallRecord *string `json:"CallRecord,omitempty"` + CallStatusCallbackUrl *string `json:"CallStatusCallbackUrl,omitempty"` + CallTimeout *int32 `json:"CallTimeout,omitempty"` + CallTo *string `json:"CallTo,omitempty"` + CallUrl *string `json:"CallUrl,omitempty"` + ConferenceRecord *string `json:"ConferenceRecord,omitempty"` + ConferenceRecordingStatusCallback *string `json:"ConferenceRecordingStatusCallback,omitempty"` + ConferenceRecordingStatusCallbackMethod *string `json:"ConferenceRecordingStatusCallbackMethod,omitempty"` + ConferenceStatusCallback *string `json:"ConferenceStatusCallback,omitempty"` + ConferenceStatusCallbackEvent *[]string `json:"ConferenceStatusCallbackEvent,omitempty"` + ConferenceStatusCallbackMethod *string `json:"ConferenceStatusCallbackMethod,omitempty"` + ConferenceTrim *string `json:"ConferenceTrim,omitempty"` + DequeueFrom *string `json:"DequeueFrom,omitempty"` + DequeuePostWorkActivitySid *string `json:"DequeuePostWorkActivitySid,omitempty"` + DequeueRecord *string `json:"DequeueRecord,omitempty"` + DequeueStatusCallbackEvent *[]string `json:"DequeueStatusCallbackEvent,omitempty"` + DequeueStatusCallbackUrl *string `json:"DequeueStatusCallbackUrl,omitempty"` + DequeueTimeout *int32 `json:"DequeueTimeout,omitempty"` + DequeueTo *string `json:"DequeueTo,omitempty"` + EarlyMedia *bool `json:"EarlyMedia,omitempty"` + EndConferenceOnCustomerExit *bool `json:"EndConferenceOnCustomerExit,omitempty"` + EndConferenceOnExit *bool `json:"EndConferenceOnExit,omitempty"` + From *string `json:"From,omitempty"` + Instruction *string `json:"Instruction,omitempty"` + MaxParticipants *int32 `json:"MaxParticipants,omitempty"` + Muted *bool `json:"Muted,omitempty"` + PostWorkActivitySid *string `json:"PostWorkActivitySid,omitempty"` + Record *bool `json:"Record,omitempty"` + RecordingChannels *string `json:"RecordingChannels,omitempty"` + RecordingStatusCallback *string `json:"RecordingStatusCallback,omitempty"` + RecordingStatusCallbackMethod *string `json:"RecordingStatusCallbackMethod,omitempty"` + RedirectAccept *bool `json:"RedirectAccept,omitempty"` + RedirectCallSid *string `json:"RedirectCallSid,omitempty"` + RedirectUrl *string `json:"RedirectUrl,omitempty"` + Region *string `json:"Region,omitempty"` + ReservationStatus *string `json:"ReservationStatus,omitempty"` + SipAuthPassword *string `json:"SipAuthPassword,omitempty"` + SipAuthUsername *string `json:"SipAuthUsername,omitempty"` + StartConferenceOnEnter *bool `json:"StartConferenceOnEnter,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackEvent *[]string `json:"StatusCallbackEvent,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + Timeout *int32 `json:"Timeout,omitempty"` + To *string `json:"To,omitempty"` + WaitMethod *string `json:"WaitMethod,omitempty"` + WaitUrl *string `json:"WaitUrl,omitempty"` + WorkerActivitySid *string `json:"WorkerActivitySid,omitempty"` +} + +/* +UpdateWorkerReservation Method for UpdateWorkerReservation + * @param workspaceSid The SID of the Workspace with the WorkerReservation resources to update. + * @param workerSid The SID of the reserved Worker resource with the WorkerReservation resources to update. + * @param sid The SID of the WorkerReservation resource to update. + * @param optional nil or *UpdateWorkerReservationOpts - Optional Parameters: + * @param "Beep" (string) - Whether to play a notification beep when the participant joins or when to play a beep. Can be: `true`, `false`, `onEnter`, or `onExit`. The default value is `true`. + * @param "BeepOnCustomerEntrance" (bool) - Whether to play a notification beep when the customer joins. + * @param "CallAccept" (bool) - Whether to accept a reservation when executing a Call instruction. + * @param "CallFrom" (string) - The Caller ID of the outbound call when executing a Call instruction. + * @param "CallRecord" (string) - Whether to record both legs of a call when executing a Call instruction. + * @param "CallStatusCallbackUrl" (string) - The URL to call for the completed call event when executing a Call instruction. + * @param "CallTimeout" (int32) - The timeout for a call when executing a Call instruction. + * @param "CallTo" (string) - The contact URI of the worker when executing a Call instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the [E.164](https://www.twilio.com/docs/glossary/what-e164) formatted phone number, depending on the destination. + * @param "CallUrl" (string) - TwiML URI executed on answering the worker's leg as a result of the Call instruction. + * @param "ConferenceRecord" (string) - Whether to record the conference the participant is joining or when to record the conference. Can be: `true`, `false`, `record-from-start`, and `do-not-record`. The default value is `false`. + * @param "ConferenceRecordingStatusCallback" (string) - The URL we should call using the `conference_recording_status_callback_method` when the conference recording is available. + * @param "ConferenceRecordingStatusCallbackMethod" (string) - The HTTP method we should use to call `conference_recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. + * @param "ConferenceStatusCallback" (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. + * @param "ConferenceStatusCallbackEvent" ([]string) - The conference status events that we will send to `conference_status_callback`. Can be: `start`, `end`, `join`, `leave`, `mute`, `hold`, `speaker`. + * @param "ConferenceStatusCallbackMethod" (string) - The HTTP method we should use to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. + * @param "ConferenceTrim" (string) - Whether to trim leading and trailing silence from your recorded conference audio files. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. + * @param "DequeueFrom" (string) - The caller ID of the call to the worker when executing a Dequeue instruction. + * @param "DequeuePostWorkActivitySid" (string) - The SID of the Activity resource to start after executing a Dequeue instruction. + * @param "DequeueRecord" (string) - Whether to record both legs of a call when executing a Dequeue instruction or which leg to record. + * @param "DequeueStatusCallbackEvent" ([]string) - The call progress events sent via webhooks as a result of a Dequeue instruction. + * @param "DequeueStatusCallbackUrl" (string) - The callback URL for completed call event when executing a Dequeue instruction. + * @param "DequeueTimeout" (int32) - The timeout for call when executing a Dequeue instruction. + * @param "DequeueTo" (string) - The contact URI of the worker when executing a Dequeue instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the [E.164](https://www.twilio.com/docs/glossary/what-e164) formatted phone number, depending on the destination. + * @param "EarlyMedia" (bool) - Whether to allow an agent to hear the state of the outbound call, including ringing or disconnect messages. The default is `true`. + * @param "EndConferenceOnCustomerExit" (bool) - Whether to end the conference when the customer leaves. + * @param "EndConferenceOnExit" (bool) - Whether to end the conference when the agent leaves. + * @param "From" (string) - The caller ID of the call to the worker when executing a Conference instruction. + * @param "Instruction" (string) - The assignment instruction for the reservation. + * @param "MaxParticipants" (int32) - The maximum number of participants allowed in the conference. Can be a positive integer from `2` to `250`. The default value is `250`. + * @param "Muted" (bool) - Whether the agent is muted in the conference. Defaults to `false`. + * @param "PostWorkActivitySid" (string) - The new worker activity SID after executing a Conference instruction. + * @param "Record" (bool) - Whether to record the participant and their conferences, including the time between conferences. Can be `true` or `false` and the default is `false`. + * @param "RecordingChannels" (string) - The recording channels for the final recording. Can be: `mono` or `dual` and the default is `mono`. + * @param "RecordingStatusCallback" (string) - The URL that we should call using the `recording_status_callback_method` when the recording status changes. + * @param "RecordingStatusCallbackMethod" (string) - The HTTP method we should use when we call `recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. + * @param "RedirectAccept" (bool) - Whether the reservation should be accepted when executing a Redirect instruction. + * @param "RedirectCallSid" (string) - The Call SID of the call parked in the queue when executing a Redirect instruction. + * @param "RedirectUrl" (string) - TwiML URI to redirect the call to when executing the Redirect instruction. + * @param "Region" (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`. + * @param "ReservationStatus" (string) - The new status of the reservation. Can be: `pending`, `accepted`, `rejected`, `timeout`, `canceled`, or `rescinded`. + * @param "SipAuthPassword" (string) - The SIP password for authentication. + * @param "SipAuthUsername" (string) - The SIP username used for authentication. + * @param "StartConferenceOnEnter" (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. + * @param "StatusCallback" (string) - The URL we should call using the `status_callback_method` to send status information to your application. + * @param "StatusCallbackEvent" ([]string) - The call progress events that we will send to `status_callback`. Can be: `initiated`, `ringing`, `answered`, or `completed`. + * @param "StatusCallbackMethod" (string) - The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`. + * @param "Timeout" (int32) - The timeout for a call when executing a Conference instruction. + * @param "To" (string) - The Contact URI of the worker when executing a Conference instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the [E.164](https://www.twilio.com/docs/glossary/what-e164) formatted phone number, depending on the destination. + * @param "WaitMethod" (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. + * @param "WaitUrl" (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). + * @param "WorkerActivitySid" (string) - The new worker activity SID if rejecting a reservation. +@return TaskrouterV1WorkspaceWorkerWorkerReservation +*/ +func (c *DefaultApiService) UpdateWorkerReservation(workspaceSid string, workerSid string, sid string, params *UpdateWorkerReservationParams) (*TaskrouterV1WorkspaceWorkerWorkerReservation, error) { + path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Reservations/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkerSid"+"}", workerSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Beep != nil { + data.Set("Beep", *params.Beep) + } + if params != nil && params.BeepOnCustomerEntrance != nil { + data.Set("BeepOnCustomerEntrance", string(*params.BeepOnCustomerEntrance)) + } + if params != nil && params.CallAccept != nil { + data.Set("CallAccept", string(*params.CallAccept)) + } + if params != nil && params.CallFrom != nil { + data.Set("CallFrom", *params.CallFrom) + } + if params != nil && params.CallRecord != nil { + data.Set("CallRecord", *params.CallRecord) + } + if params != nil && params.CallStatusCallbackUrl != nil { + data.Set("CallStatusCallbackUrl", *params.CallStatusCallbackUrl) + } + if params != nil && params.CallTimeout != nil { + data.Set("CallTimeout", string(*params.CallTimeout)) + } + if params != nil && params.CallTo != nil { + data.Set("CallTo", *params.CallTo) + } + if params != nil && params.CallUrl != nil { + data.Set("CallUrl", *params.CallUrl) + } + if params != nil && params.ConferenceRecord != nil { + data.Set("ConferenceRecord", *params.ConferenceRecord) + } + if params != nil && params.ConferenceRecordingStatusCallback != nil { + data.Set("ConferenceRecordingStatusCallback", *params.ConferenceRecordingStatusCallback) + } + if params != nil && params.ConferenceRecordingStatusCallbackMethod != nil { + data.Set("ConferenceRecordingStatusCallbackMethod", *params.ConferenceRecordingStatusCallbackMethod) + } + if params != nil && params.ConferenceStatusCallback != nil { + data.Set("ConferenceStatusCallback", *params.ConferenceStatusCallback) + } + if params != nil && params.ConferenceStatusCallbackEvent != nil { + data.Set("ConferenceStatusCallbackEvent", *params.ConferenceStatusCallbackEvent) + } + if params != nil && params.ConferenceStatusCallbackMethod != nil { + data.Set("ConferenceStatusCallbackMethod", *params.ConferenceStatusCallbackMethod) + } + if params != nil && params.ConferenceTrim != nil { + data.Set("ConferenceTrim", *params.ConferenceTrim) + } + if params != nil && params.DequeueFrom != nil { + data.Set("DequeueFrom", *params.DequeueFrom) + } + if params != nil && params.DequeuePostWorkActivitySid != nil { + data.Set("DequeuePostWorkActivitySid", *params.DequeuePostWorkActivitySid) + } + if params != nil && params.DequeueRecord != nil { + data.Set("DequeueRecord", *params.DequeueRecord) + } + if params != nil && params.DequeueStatusCallbackEvent != nil { + data.Set("DequeueStatusCallbackEvent", *params.DequeueStatusCallbackEvent) + } + if params != nil && params.DequeueStatusCallbackUrl != nil { + data.Set("DequeueStatusCallbackUrl", *params.DequeueStatusCallbackUrl) + } + if params != nil && params.DequeueTimeout != nil { + data.Set("DequeueTimeout", string(*params.DequeueTimeout)) + } + if params != nil && params.DequeueTo != nil { + data.Set("DequeueTo", *params.DequeueTo) + } + if params != nil && params.EarlyMedia != nil { + data.Set("EarlyMedia", string(*params.EarlyMedia)) + } + if params != nil && params.EndConferenceOnCustomerExit != nil { + data.Set("EndConferenceOnCustomerExit", string(*params.EndConferenceOnCustomerExit)) + } + if params != nil && params.EndConferenceOnExit != nil { + data.Set("EndConferenceOnExit", string(*params.EndConferenceOnExit)) + } + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.Instruction != nil { + data.Set("Instruction", *params.Instruction) + } + if params != nil && params.MaxParticipants != nil { + data.Set("MaxParticipants", string(*params.MaxParticipants)) + } + if params != nil && params.Muted != nil { + data.Set("Muted", string(*params.Muted)) + } + if params != nil && params.PostWorkActivitySid != nil { + data.Set("PostWorkActivitySid", *params.PostWorkActivitySid) + } + if params != nil && params.Record != nil { + data.Set("Record", string(*params.Record)) + } + if params != nil && params.RecordingChannels != nil { + data.Set("RecordingChannels", *params.RecordingChannels) + } + if params != nil && params.RecordingStatusCallback != nil { + data.Set("RecordingStatusCallback", *params.RecordingStatusCallback) + } + if params != nil && params.RecordingStatusCallbackMethod != nil { + data.Set("RecordingStatusCallbackMethod", *params.RecordingStatusCallbackMethod) + } + if params != nil && params.RedirectAccept != nil { + data.Set("RedirectAccept", string(*params.RedirectAccept)) + } + if params != nil && params.RedirectCallSid != nil { + data.Set("RedirectCallSid", *params.RedirectCallSid) + } + if params != nil && params.RedirectUrl != nil { + data.Set("RedirectUrl", *params.RedirectUrl) + } + if params != nil && params.Region != nil { + data.Set("Region", *params.Region) + } + if params != nil && params.ReservationStatus != nil { + data.Set("ReservationStatus", *params.ReservationStatus) + } + if params != nil && params.SipAuthPassword != nil { + data.Set("SipAuthPassword", *params.SipAuthPassword) + } + if params != nil && params.SipAuthUsername != nil { + data.Set("SipAuthUsername", *params.SipAuthUsername) + } + if params != nil && params.StartConferenceOnEnter != nil { + data.Set("StartConferenceOnEnter", string(*params.StartConferenceOnEnter)) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StatusCallbackEvent != nil { + data.Set("StatusCallbackEvent", *params.StatusCallbackEvent) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.Timeout != nil { + data.Set("Timeout", string(*params.Timeout)) + } + if params != nil && params.To != nil { + data.Set("To", *params.To) + } + if params != nil && params.WaitMethod != nil { + data.Set("WaitMethod", *params.WaitMethod) + } + if params != nil && params.WaitUrl != nil { + data.Set("WaitUrl", *params.WaitUrl) + } + if params != nil && params.WorkerActivitySid != nil { + data.Set("WorkerActivitySid", *params.WorkerActivitySid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceWorkerWorkerReservation{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateWorkflowParams Optional parameters for the method 'UpdateWorkflow' +type UpdateWorkflowParams struct { + AssignmentCallbackUrl *string `json:"AssignmentCallbackUrl,omitempty"` + Configuration *string `json:"Configuration,omitempty"` + FallbackAssignmentCallbackUrl *string `json:"FallbackAssignmentCallbackUrl,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + ReEvaluateTasks *string `json:"ReEvaluateTasks,omitempty"` + TaskReservationTimeout *int32 `json:"TaskReservationTimeout,omitempty"` +} + +/* +UpdateWorkflow Method for UpdateWorkflow + * @param workspaceSid The SID of the Workspace with the Workflow to update. + * @param sid The SID of the Workflow resource to update. + * @param optional nil or *UpdateWorkflowOpts - Optional Parameters: + * @param "AssignmentCallbackUrl" (string) - The URL from your application that will process task assignment events. See [Handling Task Assignment Callback](https://www.twilio.com/docs/taskrouter/handle-assignment-callbacks) for more details. + * @param "Configuration" (string) - A JSON string that contains the rules to apply to the Workflow. See [Configuring Workflows](https://www.twilio.com/docs/taskrouter/workflow-configuration) for more information. + * @param "FallbackAssignmentCallbackUrl" (string) - The URL that we should call when a call to the `assignment_callback_url` fails. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the Workflow resource. For example, `Inbound Call Workflow` or `2014 Outbound Campaign`. + * @param "ReEvaluateTasks" (string) - Whether or not to re-evaluate Tasks. The default is `false`, which means Tasks in the Workflow will not be processed through the assignment loop again. + * @param "TaskReservationTimeout" (int32) - How long TaskRouter will wait for a confirmation response from your application after it assigns a Task to a Worker. Can be up to `86,400` (24 hours) and the default is `120`. +@return TaskrouterV1WorkspaceWorkflow +*/ +func (c *DefaultApiService) UpdateWorkflow(workspaceSid string, sid string, params *UpdateWorkflowParams) (*TaskrouterV1WorkspaceWorkflow, error) { + path := "/v1/Workspaces/{WorkspaceSid}/Workflows/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AssignmentCallbackUrl != nil { + data.Set("AssignmentCallbackUrl", *params.AssignmentCallbackUrl) + } + if params != nil && params.Configuration != nil { + data.Set("Configuration", *params.Configuration) + } + if params != nil && params.FallbackAssignmentCallbackUrl != nil { + data.Set("FallbackAssignmentCallbackUrl", *params.FallbackAssignmentCallbackUrl) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.ReEvaluateTasks != nil { + data.Set("ReEvaluateTasks", *params.ReEvaluateTasks) + } + if params != nil && params.TaskReservationTimeout != nil { + data.Set("TaskReservationTimeout", string(*params.TaskReservationTimeout)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceWorkflow{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateWorkspaceParams Optional parameters for the method 'UpdateWorkspace' +type UpdateWorkspaceParams struct { + DefaultActivitySid *string `json:"DefaultActivitySid,omitempty"` + EventCallbackUrl *string `json:"EventCallbackUrl,omitempty"` + EventsFilter *string `json:"EventsFilter,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + MultiTaskEnabled *bool `json:"MultiTaskEnabled,omitempty"` + PrioritizeQueueOrder *string `json:"PrioritizeQueueOrder,omitempty"` + TimeoutActivitySid *string `json:"TimeoutActivitySid,omitempty"` +} + +/* +UpdateWorkspace Method for UpdateWorkspace + * @param sid The SID of the Workspace resource to update. + * @param optional nil or *UpdateWorkspaceOpts - Optional Parameters: + * @param "DefaultActivitySid" (string) - The SID of the Activity that will be used when new Workers are created in the Workspace. + * @param "EventCallbackUrl" (string) - The URL we should call when an event occurs. See [Workspace Events](https://www.twilio.com/docs/taskrouter/api/event) for more information. + * @param "EventsFilter" (string) - The list of Workspace events for which to call event_callback_url. For example if `EventsFilter=task.created,task.canceled,worker.activity.update`, then TaskRouter will call event_callback_url only when a task is created, canceled, or a Worker activity is updated. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the Workspace resource. For example: `Sales Call Center` or `Customer Support Team`. + * @param "MultiTaskEnabled" (bool) - Whether to enable multi-tasking. Can be: `true` to enable multi-tasking, or `false` to disable it. The default is `false`. Multi-tasking allows Workers to handle multiple Tasks simultaneously. When enabled (`true`), each Worker can receive parallel reservations up to the per-channel maximums defined in the Workers section. Otherwise, each Worker will only receive a new reservation when the previous task is completed. Learn more at [Multitasking][https://www.twilio.com/docs/taskrouter/multitasking]. + * @param "PrioritizeQueueOrder" (string) - The type of TaskQueue to prioritize when Workers are receiving Tasks from both types of TaskQueues. Can be: `LIFO` or `FIFO` and the default is `FIFO`. For more information, see [Queue Ordering][https://www.twilio.com/docs/taskrouter/queue-ordering-last-first-out-lifo]. + * @param "TimeoutActivitySid" (string) - The SID of the Activity that will be assigned to a Worker when a Task reservation times out without a response. +@return TaskrouterV1Workspace +*/ +func (c *DefaultApiService) UpdateWorkspace(sid string, params *UpdateWorkspaceParams) (*TaskrouterV1Workspace, error) { + path := "/v1/Workspaces/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.DefaultActivitySid != nil { + data.Set("DefaultActivitySid", *params.DefaultActivitySid) + } + if params != nil && params.EventCallbackUrl != nil { + data.Set("EventCallbackUrl", *params.EventCallbackUrl) + } + if params != nil && params.EventsFilter != nil { + data.Set("EventsFilter", *params.EventsFilter) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.MultiTaskEnabled != nil { + data.Set("MultiTaskEnabled", string(*params.MultiTaskEnabled)) + } + if params != nil && params.PrioritizeQueueOrder != nil { + data.Set("PrioritizeQueueOrder", *params.PrioritizeQueueOrder) + } + if params != nil && params.TimeoutActivitySid != nil { + data.Set("TimeoutActivitySid", *params.TimeoutActivitySid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1Workspace{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/taskrouter/v1/docs/CreateActivityRequest.md b/rest/taskrouter/v1/docs/CreateActivityRequest.md new file mode 100644 index 000000000..bd4837a7e --- /dev/null +++ b/rest/taskrouter/v1/docs/CreateActivityRequest.md @@ -0,0 +1,12 @@ +# CreateActivityRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Available** | **bool** | Whether the Worker should be eligible to receive a Task when it occupies the Activity. A value of `true`, `1`, or `yes` specifies the Activity is available. All other values specify that it is not. The value cannot be changed after the Activity is created. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the Activity resource. It can be up to 64 characters long. These names are used to calculate and expose statistics about Workers, and provide visibility into the state of each Worker. Examples of friendly names include: `on-call`, `break`, and `email`. | + +[[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/rest/taskrouter/v1/docs/CreateTaskChannelRequest.md b/rest/taskrouter/v1/docs/CreateTaskChannelRequest.md new file mode 100644 index 000000000..d12f98276 --- /dev/null +++ b/rest/taskrouter/v1/docs/CreateTaskChannelRequest.md @@ -0,0 +1,13 @@ +# CreateTaskChannelRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ChannelOptimizedRouting** | **bool** | Whether the Task Channel should prioritize Workers that have been idle. If `true`, Workers that have been idle the longest are prioritized. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the Task Channel. It can be up to 64 characters long. | +**UniqueName** | **string** | An application-defined string that uniquely identifies the Task Channel, such as `voice` or `sms`. | + +[[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/rest/taskrouter/v1/docs/CreateTaskQueueRequest.md b/rest/taskrouter/v1/docs/CreateTaskQueueRequest.md new file mode 100644 index 000000000..bc424e848 --- /dev/null +++ b/rest/taskrouter/v1/docs/CreateTaskQueueRequest.md @@ -0,0 +1,16 @@ +# CreateTaskQueueRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AssignmentActivitySid** | **string** | The SID of the Activity to assign Workers when a task is assigned to them. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the TaskQueue. For example `Support-Tier 1`, `Sales`, or `Escalation`. | +**MaxReservedWorkers** | **int32** | The maximum number of Workers to reserve for the assignment of a Task in the queue. Can be an integer between 1 and 50, inclusive and defaults to 1. | [optional] +**ReservationActivitySid** | **string** | The SID of the Activity to assign Workers when a task is reserved for them. | [optional] +**TargetWorkers** | **string** | A string that describes the Worker selection criteria for any Tasks that enter the TaskQueue. For example, `'\"language\" == \"spanish\"'`. The default value is `1==1`. If this value is empty, Tasks will wait in the TaskQueue until they are deleted or moved to another TaskQueue. For more information about Worker selection, see [Describing Worker selection criteria](https://www.twilio.com/docs/taskrouter/api/taskqueues#target-workers). | [optional] +**TaskOrder** | **string** | How Tasks will be assigned to Workers. Set this parameter to `LIFO` to assign most recently created Task first or FIFO to assign the oldest Task first. Default is `FIFO`. [Click here](https://www.twilio.com/docs/taskrouter/queue-ordering-last-first-out-lifo) to learn more. | [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/rest/taskrouter/v1/docs/CreateTaskRequest.md b/rest/taskrouter/v1/docs/CreateTaskRequest.md new file mode 100644 index 000000000..b50826317 --- /dev/null +++ b/rest/taskrouter/v1/docs/CreateTaskRequest.md @@ -0,0 +1,15 @@ +# CreateTaskRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attributes** | **string** | A URL-encoded JSON string with the attributes of the new task. This value is passed to the Workflow's `assignment_callback_url` when the Task is assigned to a Worker. For example: `{ \"task_type\": \"call\", \"twilio_call_sid\": \"CAxxx\", \"customer_ticket_number\": \"12345\" }`. | [optional] +**Priority** | **int32** | The priority to assign the new task and override the default. When supplied, the new Task will have this priority unless it matches a Workflow Target with a Priority set. When not supplied, the new Task will have the priority of the matching Workflow Target. Value can be 0 to 2^31^ (2,147,483,647). | [optional] +**TaskChannel** | **string** | When MultiTasking is enabled, specify the TaskChannel by passing either its `unique_name` or `sid`. Default value is `default`. | [optional] +**Timeout** | **int32** | The amount of time in seconds the new task is allowed to live. Can be up to a maximum of 2 weeks (1,209,600 seconds). The default value is 24 hours (86,400 seconds). On timeout, the `task.canceled` event will fire with description `Task TTL Exceeded`. | [optional] +**WorkflowSid** | **string** | The SID of the Workflow that you would like to handle routing for the new Task. If there is only one Workflow defined for the Workspace that you are posting the new task to, this parameter is optional. | [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/rest/taskrouter/v1/docs/CreateWorkerRequest.md b/rest/taskrouter/v1/docs/CreateWorkerRequest.md new file mode 100644 index 000000000..639382e99 --- /dev/null +++ b/rest/taskrouter/v1/docs/CreateWorkerRequest.md @@ -0,0 +1,13 @@ +# CreateWorkerRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ActivitySid** | **string** | The SID of a valid Activity that will describe the new Worker's initial state. See [Activities](https://www.twilio.com/docs/taskrouter/api/activity) for more information. If not provided, the new Worker's initial state is the `default_activity_sid` configured on the Workspace. | [optional] +**Attributes** | **string** | A valid JSON string that describes the new Worker. For example: `{ \"email\": \"Bob@example.com\", \"phone\": \"+5095551234\" }`. This data is passed to the `assignment_callback_url` when TaskRouter assigns a Task to the Worker. Defaults to {}. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the new Worker. It can be up to 64 characters long. | + +[[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/rest/taskrouter/v1/docs/CreateWorkflowRequest.md b/rest/taskrouter/v1/docs/CreateWorkflowRequest.md new file mode 100644 index 000000000..fca1a4ec6 --- /dev/null +++ b/rest/taskrouter/v1/docs/CreateWorkflowRequest.md @@ -0,0 +1,15 @@ +# CreateWorkflowRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AssignmentCallbackUrl** | **string** | The URL from your application that will process task assignment events. See [Handling Task Assignment Callback](https://www.twilio.com/docs/taskrouter/handle-assignment-callbacks) for more details. | [optional] +**Configuration** | **string** | A JSON string that contains the rules to apply to the Workflow. See [Configuring Workflows](https://www.twilio.com/docs/taskrouter/workflow-configuration) for more information. | +**FallbackAssignmentCallbackUrl** | **string** | The URL that we should call when a call to the `assignment_callback_url` fails. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the Workflow resource. For example, `Inbound Call Workflow` or `2014 Outbound Campaign`. | +**TaskReservationTimeout** | **int32** | How long TaskRouter will wait for a confirmation response from your application after it assigns a Task to a Worker. Can be up to `86,400` (24 hours) and the default is `120`. | [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/rest/taskrouter/v1/docs/CreateWorkspaceRequest.md b/rest/taskrouter/v1/docs/CreateWorkspaceRequest.md new file mode 100644 index 000000000..64621c8cd --- /dev/null +++ b/rest/taskrouter/v1/docs/CreateWorkspaceRequest.md @@ -0,0 +1,16 @@ +# CreateWorkspaceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventCallbackUrl** | **string** | The URL we should call when an event occurs. If provided, the Workspace will publish events to this URL, for example, to collect data for reporting. See [Workspace Events](https://www.twilio.com/docs/taskrouter/api/event) for more information. | [optional] +**EventsFilter** | **string** | The list of Workspace events for which to call event_callback_url. For example if `EventsFilter=task.created,task.canceled,worker.activity.update`, then TaskRouter will call event_callback_url only when a task is created, canceled, or a Worker activity is updated. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the Workspace resource. It can be up to 64 characters long. For example: `Customer Support` or `2014 Election Campaign`. | +**MultiTaskEnabled** | **bool** | Whether to enable multi-tasking. Can be: `true` to enable multi-tasking, or `false` to disable it. The default is `false`. Multi-tasking allows Workers to handle multiple Tasks simultaneously. When enabled (`true`), each Worker can receive parallel reservations up to the per-channel maximums defined in the Workers section. Otherwise, each Worker will only receive a new reservation when the previous task is completed. Learn more at [Multitasking][https://www.twilio.com/docs/taskrouter/multitasking]. | [optional] +**PrioritizeQueueOrder** | **string** | The type of TaskQueue to prioritize when Workers are receiving Tasks from both types of TaskQueues. Can be: `LIFO` or `FIFO` and the default is `FIFO`. For more information, see [Queue Ordering][https://www.twilio.com/docs/taskrouter/queue-ordering-last-first-out-lifo]. | [optional] +**Template** | **string** | An available template name. Can be: `NONE` or `FIFO` and the default is `NONE`. Pre-configures the Workspace with the Workflow and Activities specified in the template. `NONE` will create a Workspace with only a set of default activities. `FIFO` will configure TaskRouter with a set of default activities and a single TaskQueue for first-in, first-out distribution, which can be useful when you are getting started with TaskRouter. | [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/rest/taskrouter/v1/docs/DefaultApi.md b/rest/taskrouter/v1/docs/DefaultApi.md new file mode 100644 index 000000000..568afca8b --- /dev/null +++ b/rest/taskrouter/v1/docs/DefaultApi.md @@ -0,0 +1,2737 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateActivity**](DefaultApi.md#CreateActivity) | **Post** /v1/Workspaces/{WorkspaceSid}/Activities | +[**CreateTask**](DefaultApi.md#CreateTask) | **Post** /v1/Workspaces/{WorkspaceSid}/Tasks | +[**CreateTaskChannel**](DefaultApi.md#CreateTaskChannel) | **Post** /v1/Workspaces/{WorkspaceSid}/TaskChannels | +[**CreateTaskQueue**](DefaultApi.md#CreateTaskQueue) | **Post** /v1/Workspaces/{WorkspaceSid}/TaskQueues | +[**CreateWorker**](DefaultApi.md#CreateWorker) | **Post** /v1/Workspaces/{WorkspaceSid}/Workers | +[**CreateWorkflow**](DefaultApi.md#CreateWorkflow) | **Post** /v1/Workspaces/{WorkspaceSid}/Workflows | +[**CreateWorkspace**](DefaultApi.md#CreateWorkspace) | **Post** /v1/Workspaces | +[**DeleteActivity**](DefaultApi.md#DeleteActivity) | **Delete** /v1/Workspaces/{WorkspaceSid}/Activities/{Sid} | +[**DeleteTask**](DefaultApi.md#DeleteTask) | **Delete** /v1/Workspaces/{WorkspaceSid}/Tasks/{Sid} | +[**DeleteTaskChannel**](DefaultApi.md#DeleteTaskChannel) | **Delete** /v1/Workspaces/{WorkspaceSid}/TaskChannels/{Sid} | +[**DeleteTaskQueue**](DefaultApi.md#DeleteTaskQueue) | **Delete** /v1/Workspaces/{WorkspaceSid}/TaskQueues/{Sid} | +[**DeleteWorker**](DefaultApi.md#DeleteWorker) | **Delete** /v1/Workspaces/{WorkspaceSid}/Workers/{Sid} | +[**DeleteWorkflow**](DefaultApi.md#DeleteWorkflow) | **Delete** /v1/Workspaces/{WorkspaceSid}/Workflows/{Sid} | +[**DeleteWorkspace**](DefaultApi.md#DeleteWorkspace) | **Delete** /v1/Workspaces/{Sid} | +[**FetchActivity**](DefaultApi.md#FetchActivity) | **Get** /v1/Workspaces/{WorkspaceSid}/Activities/{Sid} | +[**FetchEvent**](DefaultApi.md#FetchEvent) | **Get** /v1/Workspaces/{WorkspaceSid}/Events/{Sid} | +[**FetchTask**](DefaultApi.md#FetchTask) | **Get** /v1/Workspaces/{WorkspaceSid}/Tasks/{Sid} | +[**FetchTaskChannel**](DefaultApi.md#FetchTaskChannel) | **Get** /v1/Workspaces/{WorkspaceSid}/TaskChannels/{Sid} | +[**FetchTaskQueue**](DefaultApi.md#FetchTaskQueue) | **Get** /v1/Workspaces/{WorkspaceSid}/TaskQueues/{Sid} | +[**FetchTaskQueueCumulativeStatistics**](DefaultApi.md#FetchTaskQueueCumulativeStatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/CumulativeStatistics | +[**FetchTaskQueueRealTimeStatistics**](DefaultApi.md#FetchTaskQueueRealTimeStatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/RealTimeStatistics | +[**FetchTaskQueueStatistics**](DefaultApi.md#FetchTaskQueueStatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/Statistics | +[**FetchTaskReservation**](DefaultApi.md#FetchTaskReservation) | **Get** /v1/Workspaces/{WorkspaceSid}/Tasks/{TaskSid}/Reservations/{Sid} | +[**FetchWorker**](DefaultApi.md#FetchWorker) | **Get** /v1/Workspaces/{WorkspaceSid}/Workers/{Sid} | +[**FetchWorkerChannel**](DefaultApi.md#FetchWorkerChannel) | **Get** /v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Channels/{Sid} | +[**FetchWorkerInstanceStatistics**](DefaultApi.md#FetchWorkerInstanceStatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Statistics | +[**FetchWorkerReservation**](DefaultApi.md#FetchWorkerReservation) | **Get** /v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Reservations/{Sid} | +[**FetchWorkerStatistics**](DefaultApi.md#FetchWorkerStatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/Workers/Statistics | +[**FetchWorkersCumulativeStatistics**](DefaultApi.md#FetchWorkersCumulativeStatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/Workers/CumulativeStatistics | +[**FetchWorkersRealTimeStatistics**](DefaultApi.md#FetchWorkersRealTimeStatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/Workers/RealTimeStatistics | +[**FetchWorkflow**](DefaultApi.md#FetchWorkflow) | **Get** /v1/Workspaces/{WorkspaceSid}/Workflows/{Sid} | +[**FetchWorkflowCumulativeStatistics**](DefaultApi.md#FetchWorkflowCumulativeStatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/Workflows/{WorkflowSid}/CumulativeStatistics | +[**FetchWorkflowRealTimeStatistics**](DefaultApi.md#FetchWorkflowRealTimeStatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/Workflows/{WorkflowSid}/RealTimeStatistics | +[**FetchWorkflowStatistics**](DefaultApi.md#FetchWorkflowStatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/Workflows/{WorkflowSid}/Statistics | +[**FetchWorkspace**](DefaultApi.md#FetchWorkspace) | **Get** /v1/Workspaces/{Sid} | +[**FetchWorkspaceCumulativeStatistics**](DefaultApi.md#FetchWorkspaceCumulativeStatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/CumulativeStatistics | +[**FetchWorkspaceRealTimeStatistics**](DefaultApi.md#FetchWorkspaceRealTimeStatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/RealTimeStatistics | +[**FetchWorkspaceStatistics**](DefaultApi.md#FetchWorkspaceStatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/Statistics | +[**ListActivity**](DefaultApi.md#ListActivity) | **Get** /v1/Workspaces/{WorkspaceSid}/Activities | +[**ListEvent**](DefaultApi.md#ListEvent) | **Get** /v1/Workspaces/{WorkspaceSid}/Events | +[**ListTask**](DefaultApi.md#ListTask) | **Get** /v1/Workspaces/{WorkspaceSid}/Tasks | +[**ListTaskChannel**](DefaultApi.md#ListTaskChannel) | **Get** /v1/Workspaces/{WorkspaceSid}/TaskChannels | +[**ListTaskQueue**](DefaultApi.md#ListTaskQueue) | **Get** /v1/Workspaces/{WorkspaceSid}/TaskQueues | +[**ListTaskQueuesStatistics**](DefaultApi.md#ListTaskQueuesStatistics) | **Get** /v1/Workspaces/{WorkspaceSid}/TaskQueues/Statistics | +[**ListTaskReservation**](DefaultApi.md#ListTaskReservation) | **Get** /v1/Workspaces/{WorkspaceSid}/Tasks/{TaskSid}/Reservations | +[**ListWorker**](DefaultApi.md#ListWorker) | **Get** /v1/Workspaces/{WorkspaceSid}/Workers | +[**ListWorkerChannel**](DefaultApi.md#ListWorkerChannel) | **Get** /v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Channels | +[**ListWorkerReservation**](DefaultApi.md#ListWorkerReservation) | **Get** /v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Reservations | +[**ListWorkflow**](DefaultApi.md#ListWorkflow) | **Get** /v1/Workspaces/{WorkspaceSid}/Workflows | +[**ListWorkspace**](DefaultApi.md#ListWorkspace) | **Get** /v1/Workspaces | +[**UpdateActivity**](DefaultApi.md#UpdateActivity) | **Post** /v1/Workspaces/{WorkspaceSid}/Activities/{Sid} | +[**UpdateTask**](DefaultApi.md#UpdateTask) | **Post** /v1/Workspaces/{WorkspaceSid}/Tasks/{Sid} | +[**UpdateTaskChannel**](DefaultApi.md#UpdateTaskChannel) | **Post** /v1/Workspaces/{WorkspaceSid}/TaskChannels/{Sid} | +[**UpdateTaskQueue**](DefaultApi.md#UpdateTaskQueue) | **Post** /v1/Workspaces/{WorkspaceSid}/TaskQueues/{Sid} | +[**UpdateTaskReservation**](DefaultApi.md#UpdateTaskReservation) | **Post** /v1/Workspaces/{WorkspaceSid}/Tasks/{TaskSid}/Reservations/{Sid} | +[**UpdateWorker**](DefaultApi.md#UpdateWorker) | **Post** /v1/Workspaces/{WorkspaceSid}/Workers/{Sid} | +[**UpdateWorkerChannel**](DefaultApi.md#UpdateWorkerChannel) | **Post** /v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Channels/{Sid} | +[**UpdateWorkerReservation**](DefaultApi.md#UpdateWorkerReservation) | **Post** /v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Reservations/{Sid} | +[**UpdateWorkflow**](DefaultApi.md#UpdateWorkflow) | **Post** /v1/Workspaces/{WorkspaceSid}/Workflows/{Sid} | +[**UpdateWorkspace**](DefaultApi.md#UpdateWorkspace) | **Post** /v1/Workspaces/{Sid} | + + + +## CreateActivity + +> TaskrouterV1WorkspaceActivity CreateActivity(ctx, workspaceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace that the new Activity belongs to. | + **optional** | ***CreateActivityOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateActivityOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **available** | **optional.Bool**| Whether the Worker should be eligible to receive a Task when it occupies the Activity. A value of `true`, `1`, or `yes` specifies the Activity is available. All other values specify that it is not. The value cannot be changed after the Activity is created. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the Activity resource. It can be up to 64 characters long. These names are used to calculate and expose statistics about Workers, and provide visibility into the state of each Worker. Examples of friendly names include: `on-call`, `break`, and `email`. | + +### Return type + +[**TaskrouterV1WorkspaceActivity**](taskrouter.v1.workspace.activity.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) + + +## CreateTask + +> TaskrouterV1WorkspaceTask CreateTask(ctx, workspaceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace that the new Task belongs to. | + **optional** | ***CreateTaskOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateTaskOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **attributes** | **optional.String**| A URL-encoded JSON string with the attributes of the new task. This value is passed to the Workflow's `assignment_callback_url` when the Task is assigned to a Worker. For example: `{ \\\"task_type\\\": \\\"call\\\", \\\"twilio_call_sid\\\": \\\"CAxxx\\\", \\\"customer_ticket_number\\\": \\\"12345\\\" }`. | + **priority** | **optional.Int32**| The priority to assign the new task and override the default. When supplied, the new Task will have this priority unless it matches a Workflow Target with a Priority set. When not supplied, the new Task will have the priority of the matching Workflow Target. Value can be 0 to 2^31^ (2,147,483,647). | + **taskChannel** | **optional.String**| When MultiTasking is enabled, specify the TaskChannel by passing either its `unique_name` or `sid`. Default value is `default`. | + **timeout** | **optional.Int32**| The amount of time in seconds the new task is allowed to live. Can be up to a maximum of 2 weeks (1,209,600 seconds). The default value is 24 hours (86,400 seconds). On timeout, the `task.canceled` event will fire with description `Task TTL Exceeded`. | + **workflowSid** | **optional.String**| The SID of the Workflow that you would like to handle routing for the new Task. If there is only one Workflow defined for the Workspace that you are posting the new task to, this parameter is optional. | + +### Return type + +[**TaskrouterV1WorkspaceTask**](taskrouter.v1.workspace.task.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) + + +## CreateTaskChannel + +> TaskrouterV1WorkspaceTaskChannel CreateTaskChannel(ctx, workspaceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace that the new Task Channel belongs to. | + **optional** | ***CreateTaskChannelOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateTaskChannelOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **channelOptimizedRouting** | **optional.Bool**| Whether the Task Channel should prioritize Workers that have been idle. If `true`, Workers that have been idle the longest are prioritized. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the Task Channel. It can be up to 64 characters long. | + **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the Task Channel, such as `voice` or `sms`. | + +### Return type + +[**TaskrouterV1WorkspaceTaskChannel**](taskrouter.v1.workspace.task_channel.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) + + +## CreateTaskQueue + +> TaskrouterV1WorkspaceTaskQueue CreateTaskQueue(ctx, workspaceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace that the new TaskQueue belongs to. | + **optional** | ***CreateTaskQueueOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateTaskQueueOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **assignmentActivitySid** | **optional.String**| The SID of the Activity to assign Workers when a task is assigned to them. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the TaskQueue. For example `Support-Tier 1`, `Sales`, or `Escalation`. | + **maxReservedWorkers** | **optional.Int32**| The maximum number of Workers to reserve for the assignment of a Task in the queue. Can be an integer between 1 and 50, inclusive and defaults to 1. | + **reservationActivitySid** | **optional.String**| The SID of the Activity to assign Workers when a task is reserved for them. | + **targetWorkers** | **optional.String**| A string that describes the Worker selection criteria for any Tasks that enter the TaskQueue. For example, `'\\\"language\\\" == \\\"spanish\\\"'`. The default value is `1==1`. If this value is empty, Tasks will wait in the TaskQueue until they are deleted or moved to another TaskQueue. For more information about Worker selection, see [Describing Worker selection criteria](https://www.twilio.com/docs/taskrouter/api/taskqueues#target-workers). | + **taskOrder** | **optional.String**| How Tasks will be assigned to Workers. Set this parameter to `LIFO` to assign most recently created Task first or FIFO to assign the oldest Task first. Default is `FIFO`. [Click here](https://www.twilio.com/docs/taskrouter/queue-ordering-last-first-out-lifo) to learn more. | + +### Return type + +[**TaskrouterV1WorkspaceTaskQueue**](taskrouter.v1.workspace.task_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) + + +## CreateWorker + +> TaskrouterV1WorkspaceWorker CreateWorker(ctx, workspaceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace that the new Worker belongs to. | + **optional** | ***CreateWorkerOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateWorkerOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **activitySid** | **optional.String**| The SID of a valid Activity that will describe the new Worker's initial state. See [Activities](https://www.twilio.com/docs/taskrouter/api/activity) for more information. If not provided, the new Worker's initial state is the `default_activity_sid` configured on the Workspace. | + **attributes** | **optional.String**| A valid JSON string that describes the new Worker. For example: `{ \\\"email\\\": \\\"Bob@example.com\\\", \\\"phone\\\": \\\"+5095551234\\\" }`. This data is passed to the `assignment_callback_url` when TaskRouter assigns a Task to the Worker. Defaults to {}. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the new Worker. It can be up to 64 characters long. | + +### Return type + +[**TaskrouterV1WorkspaceWorker**](taskrouter.v1.workspace.worker.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) + + +## CreateWorkflow + +> TaskrouterV1WorkspaceWorkflow CreateWorkflow(ctx, workspaceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace that the new Workflow to create belongs to. | + **optional** | ***CreateWorkflowOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateWorkflowOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **assignmentCallbackUrl** | **optional.String**| The URL from your application that will process task assignment events. See [Handling Task Assignment Callback](https://www.twilio.com/docs/taskrouter/handle-assignment-callbacks) for more details. | + **configuration** | **optional.String**| A JSON string that contains the rules to apply to the Workflow. See [Configuring Workflows](https://www.twilio.com/docs/taskrouter/workflow-configuration) for more information. | + **fallbackAssignmentCallbackUrl** | **optional.String**| The URL that we should call when a call to the `assignment_callback_url` fails. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the Workflow resource. For example, `Inbound Call Workflow` or `2014 Outbound Campaign`. | + **taskReservationTimeout** | **optional.Int32**| How long TaskRouter will wait for a confirmation response from your application after it assigns a Task to a Worker. Can be up to `86,400` (24 hours) and the default is `120`. | + +### Return type + +[**TaskrouterV1WorkspaceWorkflow**](taskrouter.v1.workspace.workflow.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) + + +## CreateWorkspace + +> TaskrouterV1Workspace CreateWorkspace(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateWorkspaceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateWorkspaceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **eventCallbackUrl** | **optional.String**| The URL we should call when an event occurs. If provided, the Workspace will publish events to this URL, for example, to collect data for reporting. See [Workspace Events](https://www.twilio.com/docs/taskrouter/api/event) for more information. | + **eventsFilter** | **optional.String**| The list of Workspace events for which to call event_callback_url. For example if `EventsFilter=task.created,task.canceled,worker.activity.update`, then TaskRouter will call event_callback_url only when a task is created, canceled, or a Worker activity is updated. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the Workspace resource. It can be up to 64 characters long. For example: `Customer Support` or `2014 Election Campaign`. | + **multiTaskEnabled** | **optional.Bool**| Whether to enable multi-tasking. Can be: `true` to enable multi-tasking, or `false` to disable it. The default is `false`. Multi-tasking allows Workers to handle multiple Tasks simultaneously. When enabled (`true`), each Worker can receive parallel reservations up to the per-channel maximums defined in the Workers section. Otherwise, each Worker will only receive a new reservation when the previous task is completed. Learn more at [Multitasking][https://www.twilio.com/docs/taskrouter/multitasking]. | + **prioritizeQueueOrder** | **optional.String**| The type of TaskQueue to prioritize when Workers are receiving Tasks from both types of TaskQueues. Can be: `LIFO` or `FIFO` and the default is `FIFO`. For more information, see [Queue Ordering][https://www.twilio.com/docs/taskrouter/queue-ordering-last-first-out-lifo]. | + **template** | **optional.String**| An available template name. Can be: `NONE` or `FIFO` and the default is `NONE`. Pre-configures the Workspace with the Workflow and Activities specified in the template. `NONE` will create a Workspace with only a set of default activities. `FIFO` will configure TaskRouter with a set of default activities and a single TaskQueue for first-in, first-out distribution, which can be useful when you are getting started with TaskRouter. | + +### Return type + +[**TaskrouterV1Workspace**](taskrouter.v1.workspace.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) + + +## DeleteActivity + +> DeleteActivity(ctx, workspaceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the Activity resources to delete. | +**sid** | **string**| The SID of the Activity resource to delete. | + +### 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) + + +## DeleteTask + +> DeleteTask(ctx, workspaceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the Task to delete. | +**sid** | **string**| The SID of the Task resource to delete. | + +### 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) + + +## DeleteTaskChannel + +> DeleteTaskChannel(ctx, workspaceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the Task Channel to delete. | +**sid** | **string**| The SID of the Task Channel resource to delete. | + +### 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) + + +## DeleteTaskQueue + +> DeleteTaskQueue(ctx, workspaceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the TaskQueue to delete. | +**sid** | **string**| The SID of the TaskQueue resource to delete. | + +### 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) + + +## DeleteWorker + +> DeleteWorker(ctx, workspaceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the Worker to delete. | +**sid** | **string**| The SID of the Worker resource to delete. | + +### 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) + + +## DeleteWorkflow + +> DeleteWorkflow(ctx, workspaceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the Workflow to delete. | +**sid** | **string**| The SID of the Workflow resource to delete. | + +### 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) + + +## DeleteWorkspace + +> DeleteWorkspace(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Workspace resource to delete. | + +### 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) + + +## FetchActivity + +> TaskrouterV1WorkspaceActivity FetchActivity(ctx, workspaceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the Activity resources to fetch. | +**sid** | **string**| The SID of the Activity resource to fetch. | + +### Return type + +[**TaskrouterV1WorkspaceActivity**](taskrouter.v1.workspace.activity.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) + + +## FetchEvent + +> TaskrouterV1WorkspaceEvent FetchEvent(ctx, workspaceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the Event to fetch. | +**sid** | **string**| The SID of the Event resource to fetch. | + +### Return type + +[**TaskrouterV1WorkspaceEvent**](taskrouter.v1.workspace.event.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) + + +## FetchTask + +> TaskrouterV1WorkspaceTask FetchTask(ctx, workspaceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the Task to fetch. | +**sid** | **string**| The SID of the Task resource to fetch. | + +### Return type + +[**TaskrouterV1WorkspaceTask**](taskrouter.v1.workspace.task.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) + + +## FetchTaskChannel + +> TaskrouterV1WorkspaceTaskChannel FetchTaskChannel(ctx, workspaceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the Task Channel to fetch. | +**sid** | **string**| The SID of the Task Channel resource to fetch. | + +### Return type + +[**TaskrouterV1WorkspaceTaskChannel**](taskrouter.v1.workspace.task_channel.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) + + +## FetchTaskQueue + +> TaskrouterV1WorkspaceTaskQueue FetchTaskQueue(ctx, workspaceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the TaskQueue to fetch. | +**sid** | **string**| The SID of the TaskQueue resource to fetch. | + +### Return type + +[**TaskrouterV1WorkspaceTaskQueue**](taskrouter.v1.workspace.task_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) + + +## FetchTaskQueueCumulativeStatistics + +> TaskrouterV1WorkspaceTaskQueueTaskQueueCumulativeStatistics FetchTaskQueueCumulativeStatistics(ctx, workspaceSid, taskQueueSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the TaskQueue to fetch. | +**taskQueueSid** | **string**| The SID of the TaskQueue for which to fetch statistics. | + **optional** | ***FetchTaskQueueCumulativeStatisticsOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a FetchTaskQueueCumulativeStatisticsOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **endDate** | **optional.Time**| Only calculate statistics from this date and time and earlier, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. | + **minutes** | **optional.Int32**| Only calculate statistics since this many minutes in the past. The default is 15 minutes. | + **startDate** | **optional.Time**| Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | + **taskChannel** | **optional.String**| Only calculate cumulative statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | + **splitByWaitTime** | **optional.String**| A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. | + +### Return type + +[**TaskrouterV1WorkspaceTaskQueueTaskQueueCumulativeStatistics**](taskrouter.v1.workspace.task_queue.task_queue_cumulative_statistics.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) + + +## FetchTaskQueueRealTimeStatistics + +> TaskrouterV1WorkspaceTaskQueueTaskQueueRealTimeStatistics FetchTaskQueueRealTimeStatistics(ctx, workspaceSid, taskQueueSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the TaskQueue to fetch. | +**taskQueueSid** | **string**| The SID of the TaskQueue for which to fetch statistics. | + **optional** | ***FetchTaskQueueRealTimeStatisticsOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a FetchTaskQueueRealTimeStatisticsOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **taskChannel** | **optional.String**| The TaskChannel for which to fetch statistics. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | + +### Return type + +[**TaskrouterV1WorkspaceTaskQueueTaskQueueRealTimeStatistics**](taskrouter.v1.workspace.task_queue.task_queue_real_time_statistics.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) + + +## FetchTaskQueueStatistics + +> TaskrouterV1WorkspaceTaskQueueTaskQueueStatistics FetchTaskQueueStatistics(ctx, workspaceSid, taskQueueSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the TaskQueue to fetch. | +**taskQueueSid** | **string**| The SID of the TaskQueue for which to fetch statistics. | + **optional** | ***FetchTaskQueueStatisticsOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a FetchTaskQueueStatisticsOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **endDate** | **optional.Time**| Only calculate statistics from this date and time and earlier, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. | + **minutes** | **optional.Int32**| Only calculate statistics since this many minutes in the past. The default is 15 minutes. | + **startDate** | **optional.Time**| Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | + **taskChannel** | **optional.String**| Only calculate real-time and cumulative statistics for the specified TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | + **splitByWaitTime** | **optional.String**| A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. | + +### Return type + +[**TaskrouterV1WorkspaceTaskQueueTaskQueueStatistics**](taskrouter.v1.workspace.task_queue.task_queue_statistics.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) + + +## FetchTaskReservation + +> TaskrouterV1WorkspaceTaskTaskReservation FetchTaskReservation(ctx, workspaceSid, taskSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the TaskReservation resource to fetch. | +**taskSid** | **string**| The SID of the reserved Task resource with the TaskReservation resource to fetch. | +**sid** | **string**| The SID of the TaskReservation resource to fetch. | + +### Return type + +[**TaskrouterV1WorkspaceTaskTaskReservation**](taskrouter.v1.workspace.task.task_reservation.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) + + +## FetchWorker + +> TaskrouterV1WorkspaceWorker FetchWorker(ctx, workspaceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the Worker to fetch. | +**sid** | **string**| The SID of the Worker resource to fetch. | + +### Return type + +[**TaskrouterV1WorkspaceWorker**](taskrouter.v1.workspace.worker.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) + + +## FetchWorkerChannel + +> TaskrouterV1WorkspaceWorkerWorkerChannel FetchWorkerChannel(ctx, workspaceSid, workerSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the WorkerChannel to fetch. | +**workerSid** | **string**| The SID of the Worker with the WorkerChannel to fetch. | +**sid** | **string**| The SID of the WorkerChannel to fetch. | + +### Return type + +[**TaskrouterV1WorkspaceWorkerWorkerChannel**](taskrouter.v1.workspace.worker.worker_channel.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) + + +## FetchWorkerInstanceStatistics + +> TaskrouterV1WorkspaceWorkerWorkerInstanceStatistics FetchWorkerInstanceStatistics(ctx, workspaceSid, workerSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the WorkerChannel to fetch. | +**workerSid** | **string**| The SID of the Worker with the WorkerChannel to fetch. | + **optional** | ***FetchWorkerInstanceStatisticsOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a FetchWorkerInstanceStatisticsOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **minutes** | **optional.Int32**| Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. | + **startDate** | **optional.Time**| Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | + **endDate** | **optional.Time**| Only include usage that occurred on or before this date, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. | + **taskChannel** | **optional.String**| Only calculate statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | + +### Return type + +[**TaskrouterV1WorkspaceWorkerWorkerInstanceStatistics**](taskrouter.v1.workspace.worker.worker_instance_statistics.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) + + +## FetchWorkerReservation + +> TaskrouterV1WorkspaceWorkerWorkerReservation FetchWorkerReservation(ctx, workspaceSid, workerSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the WorkerReservation resource to fetch. | +**workerSid** | **string**| The SID of the reserved Worker resource with the WorkerReservation resource to fetch. | +**sid** | **string**| The SID of the WorkerReservation resource to fetch. | + +### Return type + +[**TaskrouterV1WorkspaceWorkerWorkerReservation**](taskrouter.v1.workspace.worker.worker_reservation.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) + + +## FetchWorkerStatistics + +> TaskrouterV1WorkspaceWorkerWorkerStatistics FetchWorkerStatistics(ctx, workspaceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the Worker to fetch. | + **optional** | ***FetchWorkerStatisticsOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a FetchWorkerStatisticsOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **minutes** | **optional.Int32**| Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. | + **startDate** | **optional.Time**| Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | + **endDate** | **optional.Time**| Only calculate statistics from this date and time and earlier, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. | + **taskQueueSid** | **optional.String**| The SID of the TaskQueue for which to fetch Worker statistics. | + **taskQueueName** | **optional.String**| The `friendly_name` of the TaskQueue for which to fetch Worker statistics. | + **friendlyName** | **optional.String**| Only include Workers with `friendly_name` values that match this parameter. | + **taskChannel** | **optional.String**| Only calculate statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | + +### Return type + +[**TaskrouterV1WorkspaceWorkerWorkerStatistics**](taskrouter.v1.workspace.worker.worker_statistics.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) + + +## FetchWorkersCumulativeStatistics + +> TaskrouterV1WorkspaceWorkerWorkersCumulativeStatistics FetchWorkersCumulativeStatistics(ctx, workspaceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the resource to fetch. | + **optional** | ***FetchWorkersCumulativeStatisticsOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a FetchWorkersCumulativeStatisticsOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **endDate** | **optional.Time**| Only calculate statistics from this date and time and earlier, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | + **minutes** | **optional.Int32**| Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. | + **startDate** | **optional.Time**| Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | + **taskChannel** | **optional.String**| Only calculate cumulative statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | + +### Return type + +[**TaskrouterV1WorkspaceWorkerWorkersCumulativeStatistics**](taskrouter.v1.workspace.worker.workers_cumulative_statistics.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) + + +## FetchWorkersRealTimeStatistics + +> TaskrouterV1WorkspaceWorkerWorkersRealTimeStatistics FetchWorkersRealTimeStatistics(ctx, workspaceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the resource to fetch. | + **optional** | ***FetchWorkersRealTimeStatisticsOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a FetchWorkersRealTimeStatisticsOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **taskChannel** | **optional.String**| Only calculate real-time statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | + +### Return type + +[**TaskrouterV1WorkspaceWorkerWorkersRealTimeStatistics**](taskrouter.v1.workspace.worker.workers_real_time_statistics.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) + + +## FetchWorkflow + +> TaskrouterV1WorkspaceWorkflow FetchWorkflow(ctx, workspaceSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the Workflow to fetch. | +**sid** | **string**| The SID of the Workflow resource to fetch. | + +### Return type + +[**TaskrouterV1WorkspaceWorkflow**](taskrouter.v1.workspace.workflow.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) + + +## FetchWorkflowCumulativeStatistics + +> TaskrouterV1WorkspaceWorkflowWorkflowCumulativeStatistics FetchWorkflowCumulativeStatistics(ctx, workspaceSid, workflowSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the resource to fetch. | +**workflowSid** | **string**| Returns the list of Tasks that are being controlled by the Workflow with the specified Sid value. | + **optional** | ***FetchWorkflowCumulativeStatisticsOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a FetchWorkflowCumulativeStatisticsOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **endDate** | **optional.Time**| Only include usage that occurred on or before this date, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. | + **minutes** | **optional.Int32**| Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. | + **startDate** | **optional.Time**| Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | + **taskChannel** | **optional.String**| Only calculate cumulative statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | + **splitByWaitTime** | **optional.String**| A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. For example, `5,30` would show splits of Tasks that were canceled or accepted before and after 5 seconds and before and after 30 seconds. This can be used to show short abandoned Tasks or Tasks that failed to meet an SLA. | + +### Return type + +[**TaskrouterV1WorkspaceWorkflowWorkflowCumulativeStatistics**](taskrouter.v1.workspace.workflow.workflow_cumulative_statistics.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) + + +## FetchWorkflowRealTimeStatistics + +> TaskrouterV1WorkspaceWorkflowWorkflowRealTimeStatistics FetchWorkflowRealTimeStatistics(ctx, workspaceSid, workflowSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the Workflow to fetch. | +**workflowSid** | **string**| Returns the list of Tasks that are being controlled by the Workflow with the specified SID value. | + **optional** | ***FetchWorkflowRealTimeStatisticsOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a FetchWorkflowRealTimeStatisticsOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **taskChannel** | **optional.String**| Only calculate real-time statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | + +### Return type + +[**TaskrouterV1WorkspaceWorkflowWorkflowRealTimeStatistics**](taskrouter.v1.workspace.workflow.workflow_real_time_statistics.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) + + +## FetchWorkflowStatistics + +> TaskrouterV1WorkspaceWorkflowWorkflowStatistics FetchWorkflowStatistics(ctx, workspaceSid, workflowSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the Workflow to fetch. | +**workflowSid** | **string**| Returns the list of Tasks that are being controlled by the Workflow with the specified SID value. | + **optional** | ***FetchWorkflowStatisticsOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a FetchWorkflowStatisticsOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **minutes** | **optional.Int32**| Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. | + **startDate** | **optional.Time**| Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | + **endDate** | **optional.Time**| Only calculate statistics from this date and time and earlier, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. | + **taskChannel** | **optional.String**| Only calculate real-time statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | + **splitByWaitTime** | **optional.String**| A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. For example, `5,30` would show splits of Tasks that were canceled or accepted before and after 5 seconds and before and after 30 seconds. This can be used to show short abandoned Tasks or Tasks that failed to meet an SLA. | + +### Return type + +[**TaskrouterV1WorkspaceWorkflowWorkflowStatistics**](taskrouter.v1.workspace.workflow.workflow_statistics.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) + + +## FetchWorkspace + +> TaskrouterV1Workspace FetchWorkspace(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Workspace resource to fetch. | + +### Return type + +[**TaskrouterV1Workspace**](taskrouter.v1.workspace.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) + + +## FetchWorkspaceCumulativeStatistics + +> TaskrouterV1WorkspaceWorkspaceCumulativeStatistics FetchWorkspaceCumulativeStatistics(ctx, workspaceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace to fetch. | + **optional** | ***FetchWorkspaceCumulativeStatisticsOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a FetchWorkspaceCumulativeStatisticsOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **endDate** | **optional.Time**| Only include usage that occurred on or before this date, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. | + **minutes** | **optional.Int32**| Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. | + **startDate** | **optional.Time**| Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | + **taskChannel** | **optional.String**| Only calculate cumulative statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | + **splitByWaitTime** | **optional.String**| A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. For example, `5,30` would show splits of Tasks that were canceled or accepted before and after 5 seconds and before and after 30 seconds. This can be used to show short abandoned Tasks or Tasks that failed to meet an SLA. | + +### Return type + +[**TaskrouterV1WorkspaceWorkspaceCumulativeStatistics**](taskrouter.v1.workspace.workspace_cumulative_statistics.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) + + +## FetchWorkspaceRealTimeStatistics + +> TaskrouterV1WorkspaceWorkspaceRealTimeStatistics FetchWorkspaceRealTimeStatistics(ctx, workspaceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace to fetch. | + **optional** | ***FetchWorkspaceRealTimeStatisticsOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a FetchWorkspaceRealTimeStatisticsOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **taskChannel** | **optional.String**| Only calculate real-time statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | + +### Return type + +[**TaskrouterV1WorkspaceWorkspaceRealTimeStatistics**](taskrouter.v1.workspace.workspace_real_time_statistics.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) + + +## FetchWorkspaceStatistics + +> TaskrouterV1WorkspaceWorkspaceStatistics FetchWorkspaceStatistics(ctx, workspaceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace to fetch. | + **optional** | ***FetchWorkspaceStatisticsOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a FetchWorkspaceStatisticsOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **minutes** | **optional.Int32**| Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. | + **startDate** | **optional.Time**| Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | + **endDate** | **optional.Time**| Only calculate statistics from this date and time and earlier, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. | + **taskChannel** | **optional.String**| Only calculate statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | + **splitByWaitTime** | **optional.String**| A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. For example, `5,30` would show splits of Tasks that were canceled or accepted before and after 5 seconds and before and after 30 seconds. This can be used to show short abandoned Tasks or Tasks that failed to meet an SLA. | + +### Return type + +[**TaskrouterV1WorkspaceWorkspaceStatistics**](taskrouter.v1.workspace.workspace_statistics.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) + + +## ListActivity + +> TaskrouterV1WorkspaceActivityReadResponse ListActivity(ctx, workspaceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the Activity resources to read. | + **optional** | ***ListActivityOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListActivityOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **friendlyName** | **optional.String**| The `friendly_name` of the Activity resources to read. | + **available** | **optional.String**| Whether return only Activity resources that are available or unavailable. A value of `true` returns only available activities. Values of '1' or `yes` also indicate `true`. All other values represent `false` and return activities that are unavailable. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**TaskrouterV1WorkspaceActivityReadResponse**](taskrouter_v1_workspace_activityReadResponse.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) + + +## ListEvent + +> TaskrouterV1WorkspaceEventReadResponse ListEvent(ctx, workspaceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the Events to read. Returns only the Events that pertain to the specified Workspace. | + **optional** | ***ListEventOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListEventOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **endDate** | **optional.Time**| Only include Events that occurred on or before this date, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. | + **eventType** | **optional.String**| The type of Events to read. Returns only Events of the type specified. | + **minutes** | **optional.Int32**| The period of events to read in minutes. Returns only Events that occurred since this many minutes in the past. The default is `15` minutes. Task Attributes for Events occuring more 43,200 minutes ago will be redacted. | + **reservationSid** | **optional.String**| The SID of the Reservation with the Events to read. Returns only Events that pertain to the specified Reservation. | + **startDate** | **optional.Time**| Only include Events from on or after this date and time, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Task Attributes for Events older than 30 days will be redacted. | + **taskQueueSid** | **optional.String**| The SID of the TaskQueue with the Events to read. Returns only the Events that pertain to the specified TaskQueue. | + **taskSid** | **optional.String**| The SID of the Task with the Events to read. Returns only the Events that pertain to the specified Task. | + **workerSid** | **optional.String**| The SID of the Worker with the Events to read. Returns only the Events that pertain to the specified Worker. | + **workflowSid** | **optional.String**| The SID of the Workflow with the Events to read. Returns only the Events that pertain to the specified Workflow. | + **taskChannel** | **optional.String**| The TaskChannel with the Events to read. Returns only the Events that pertain to the specified TaskChannel. | + **sid** | **optional.String**| The SID of the Event resource to read. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**TaskrouterV1WorkspaceEventReadResponse**](taskrouter_v1_workspace_eventReadResponse.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) + + +## ListTask + +> TaskrouterV1WorkspaceTaskReadResponse ListTask(ctx, workspaceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the Tasks to read. | + **optional** | ***ListTaskOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListTaskOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **priority** | **optional.Int32**| The priority value of the Tasks to read. Returns the list of all Tasks in the Workspace with the specified priority. | + **assignmentStatus** | [**optional.Interface of []string**](string.md)| The `assignment_status` of the Tasks you want to read. Can be: `pending`, `reserved`, `assigned`, `canceled`, `wrapping`, or `completed`. Returns all Tasks in the Workspace with the specified `assignment_status`. | + **workflowSid** | **optional.String**| The SID of the Workflow with the Tasks to read. Returns the Tasks controlled by the Workflow identified by this SID. | + **workflowName** | **optional.String**| The friendly name of the Workflow with the Tasks to read. Returns the Tasks controlled by the Workflow identified by this friendly name. | + **taskQueueSid** | **optional.String**| The SID of the TaskQueue with the Tasks to read. Returns the Tasks waiting in the TaskQueue identified by this SID. | + **taskQueueName** | **optional.String**| The `friendly_name` of the TaskQueue with the Tasks to read. Returns the Tasks waiting in the TaskQueue identified by this friendly name. | + **evaluateTaskAttributes** | **optional.String**| The attributes of the Tasks to read. Returns the Tasks that match the attributes specified in this parameter. | + **ordering** | **optional.String**| How to order the returned Task resources. y default, Tasks are sorted by ascending DateCreated. This value is specified as: `Attribute:Order`, where `Attribute` can be either `Priority` or `DateCreated` and `Order` can be either `asc` or `desc`. For example, `Priority:desc` returns Tasks ordered in descending order of their Priority. Multiple sort orders can be specified in a comma-separated list such as `Priority:desc,DateCreated:asc`, which returns the Tasks in descending Priority order and ascending DateCreated Order. | + **hasAddons** | **optional.Bool**| Whether to read Tasks with addons. If `true`, returns only Tasks with addons. If `false`, returns only Tasks without addons. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**TaskrouterV1WorkspaceTaskReadResponse**](taskrouter_v1_workspace_taskReadResponse.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) + + +## ListTaskChannel + +> TaskrouterV1WorkspaceTaskChannelReadResponse ListTaskChannel(ctx, workspaceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the Task Channel to read. | + **optional** | ***ListTaskChannelOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListTaskChannelOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**TaskrouterV1WorkspaceTaskChannelReadResponse**](taskrouter_v1_workspace_task_channelReadResponse.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) + + +## ListTaskQueue + +> TaskrouterV1WorkspaceTaskQueueReadResponse ListTaskQueue(ctx, workspaceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the TaskQueue to read. | + **optional** | ***ListTaskQueueOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListTaskQueueOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **friendlyName** | **optional.String**| The `friendly_name` of the TaskQueue resources to read. | + **evaluateWorkerAttributes** | **optional.String**| The attributes of the Workers to read. Returns the TaskQueues with Workers that match the attributes specified in this parameter. | + **workerSid** | **optional.String**| The SID of the Worker with the TaskQueue resources to read. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**TaskrouterV1WorkspaceTaskQueueReadResponse**](taskrouter_v1_workspace_task_queueReadResponse.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) + + +## ListTaskQueuesStatistics + +> TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse ListTaskQueuesStatistics(ctx, workspaceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the TaskQueues to read. | + **optional** | ***ListTaskQueuesStatisticsOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListTaskQueuesStatisticsOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **endDate** | **optional.Time**| Only calculate statistics from this date and time and earlier, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. | + **friendlyName** | **optional.String**| The `friendly_name` of the TaskQueue statistics to read. | + **minutes** | **optional.Int32**| Only calculate statistics since this many minutes in the past. The default is 15 minutes. | + **startDate** | **optional.Time**| Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | + **taskChannel** | **optional.String**| Only calculate statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | + **splitByWaitTime** | **optional.String**| A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse**](taskrouter_v1_workspace_task_queue_task_queues_statisticsReadResponse.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) + + +## ListTaskReservation + +> TaskrouterV1WorkspaceTaskTaskReservationReadResponse ListTaskReservation(ctx, workspaceSid, taskSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the TaskReservation resources to read. | +**taskSid** | **string**| The SID of the reserved Task resource with the TaskReservation resources to read. | + **optional** | ***ListTaskReservationOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListTaskReservationOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **reservationStatus** | **optional.String**| Returns the list of reservations for a task with a specified ReservationStatus. Can be: `pending`, `accepted`, `rejected`, or `timeout`. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**TaskrouterV1WorkspaceTaskTaskReservationReadResponse**](taskrouter_v1_workspace_task_task_reservationReadResponse.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) + + +## ListWorker + +> TaskrouterV1WorkspaceWorkerReadResponse ListWorker(ctx, workspaceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the Workers to read. | + **optional** | ***ListWorkerOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListWorkerOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **activityName** | **optional.String**| The `activity_name` of the Worker resources to read. | + **activitySid** | **optional.String**| The `activity_sid` of the Worker resources to read. | + **available** | **optional.String**| Whether to return only Worker resources that are available or unavailable. Can be `true`, `1`, or `yes` to return Worker resources that are available, and `false`, or any value returns the Worker resources that are not available. | + **friendlyName** | **optional.String**| The `friendly_name` of the Worker resources to read. | + **targetWorkersExpression** | **optional.String**| Filter by Workers that would match an expression on a TaskQueue. This is helpful for debugging which Workers would match a potential queue. | + **taskQueueName** | **optional.String**| The `friendly_name` of the TaskQueue that the Workers to read are eligible for. | + **taskQueueSid** | **optional.String**| The SID of the TaskQueue that the Workers to read are eligible for. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**TaskrouterV1WorkspaceWorkerReadResponse**](taskrouter_v1_workspace_workerReadResponse.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) + + +## ListWorkerChannel + +> TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse ListWorkerChannel(ctx, workspaceSid, workerSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the WorkerChannels to read. | +**workerSid** | **string**| The SID of the Worker with the WorkerChannels to read. | + **optional** | ***ListWorkerChannelOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListWorkerChannelOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse**](taskrouter_v1_workspace_worker_worker_channelReadResponse.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) + + +## ListWorkerReservation + +> TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse ListWorkerReservation(ctx, workspaceSid, workerSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the WorkerReservation resources to read. | +**workerSid** | **string**| The SID of the reserved Worker resource with the WorkerReservation resources to read. | + **optional** | ***ListWorkerReservationOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListWorkerReservationOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **reservationStatus** | **optional.String**| Returns the list of reservations for a worker with a specified ReservationStatus. Can be: `pending`, `accepted`, `rejected`, `timeout`, `canceled`, or `rescinded`. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse**](taskrouter_v1_workspace_worker_worker_reservationReadResponse.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) + + +## ListWorkflow + +> TaskrouterV1WorkspaceWorkflowReadResponse ListWorkflow(ctx, workspaceSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the Workflow to read. | + **optional** | ***ListWorkflowOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListWorkflowOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **friendlyName** | **optional.String**| The `friendly_name` of the Workflow resources to read. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**TaskrouterV1WorkspaceWorkflowReadResponse**](taskrouter_v1_workspace_workflowReadResponse.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) + + +## ListWorkspace + +> TaskrouterV1WorkspaceReadResponse ListWorkspace(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListWorkspaceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListWorkspaceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **friendlyName** | **optional.String**| The `friendly_name` of the Workspace resources to read. For example `Customer Support` or `2014 Election Campaign`. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**TaskrouterV1WorkspaceReadResponse**](taskrouter_v1_workspaceReadResponse.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) + + +## UpdateActivity + +> TaskrouterV1WorkspaceActivity UpdateActivity(ctx, workspaceSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the Activity resources to update. | +**sid** | **string**| The SID of the Activity resource to update. | + **optional** | ***UpdateActivityOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateActivityOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **friendlyName** | **optional.String**| A descriptive string that you create to describe the Activity resource. It can be up to 64 characters long. These names are used to calculate and expose statistics about Workers, and provide visibility into the state of each Worker. Examples of friendly names include: `on-call`, `break`, and `email`. | + +### Return type + +[**TaskrouterV1WorkspaceActivity**](taskrouter.v1.workspace.activity.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) + + +## UpdateTask + +> TaskrouterV1WorkspaceTask UpdateTask(ctx, workspaceSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the Task to update. | +**sid** | **string**| The SID of the Task resource to update. | + **optional** | ***UpdateTaskOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateTaskOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **assignmentStatus** | **optional.String**| The new status of the task. Can be: `canceled`, to cancel a Task that is currently `pending` or `reserved`; `wrapping`, to move the Task to wrapup state; or `completed`, to move a Task to the completed state. | + **attributes** | **optional.String**| The JSON string that describes the custom attributes of the task. | + **priority** | **optional.Int32**| The Task's new priority value. When supplied, the Task takes on the specified priority unless it matches a Workflow Target with a Priority set. Value can be 0 to 2^31^ (2,147,483,647). | + **reason** | **optional.String**| The reason that the Task was canceled or completed. This parameter is required only if the Task is canceled or completed. Setting this value queues the task for deletion and logs the reason. | + **taskChannel** | **optional.String**| When MultiTasking is enabled, specify the TaskChannel with the task to update. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | + +### Return type + +[**TaskrouterV1WorkspaceTask**](taskrouter.v1.workspace.task.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) + + +## UpdateTaskChannel + +> TaskrouterV1WorkspaceTaskChannel UpdateTaskChannel(ctx, workspaceSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the Task Channel to update. | +**sid** | **string**| The SID of the Task Channel resource to update. | + **optional** | ***UpdateTaskChannelOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateTaskChannelOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **channelOptimizedRouting** | **optional.Bool**| Whether the TaskChannel should prioritize Workers that have been idle. If `true`, Workers that have been idle the longest are prioritized. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the Task Channel. It can be up to 64 characters long. | + +### Return type + +[**TaskrouterV1WorkspaceTaskChannel**](taskrouter.v1.workspace.task_channel.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) + + +## UpdateTaskQueue + +> TaskrouterV1WorkspaceTaskQueue UpdateTaskQueue(ctx, workspaceSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the TaskQueue to update. | +**sid** | **string**| The SID of the TaskQueue resource to update. | + **optional** | ***UpdateTaskQueueOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateTaskQueueOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **assignmentActivitySid** | **optional.String**| The SID of the Activity to assign Workers when a task is assigned for them. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the TaskQueue. For example `Support-Tier 1`, `Sales`, or `Escalation`. | + **maxReservedWorkers** | **optional.Int32**| The maximum number of Workers to create reservations for the assignment of a task while in the queue. Maximum of 50. | + **reservationActivitySid** | **optional.String**| The SID of the Activity to assign Workers when a task is reserved for them. | + **targetWorkers** | **optional.String**| A string describing the Worker selection criteria for any Tasks that enter the TaskQueue. For example '\\\"language\\\" == \\\"spanish\\\"' If no TargetWorkers parameter is provided, Tasks will wait in the queue until they are either deleted or moved to another queue. Additional examples on how to describing Worker selection criteria below. | + **taskOrder** | **optional.String**| How Tasks will be assigned to Workers. Can be: `FIFO` or `LIFO` and the default is `FIFO`. Use `FIFO` to assign the oldest task first and `LIFO` to assign the most recent task first. For more information, see [Queue Ordering](https://www.twilio.com/docs/taskrouter/queue-ordering-last-first-out-lifo). | + +### Return type + +[**TaskrouterV1WorkspaceTaskQueue**](taskrouter.v1.workspace.task_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) + + +## UpdateTaskReservation + +> TaskrouterV1WorkspaceTaskTaskReservation UpdateTaskReservation(ctx, workspaceSid, taskSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the TaskReservation resources to update. | +**taskSid** | **string**| The SID of the reserved Task resource with the TaskReservation resources to update. | +**sid** | **string**| The SID of the TaskReservation resource to update. | + **optional** | ***UpdateTaskReservationOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateTaskReservationOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **beep** | **optional.String**| Whether to play a notification beep when the participant joins or when to play a beep. Can be: `true`, `false`, `onEnter`, or `onExit`. The default value is `true`. | + **beepOnCustomerEntrance** | **optional.Bool**| Whether to play a notification beep when the customer joins. | + **callAccept** | **optional.Bool**| Whether to accept a reservation when executing a Call instruction. | + **callFrom** | **optional.String**| The Caller ID of the outbound call when executing a Call instruction. | + **callRecord** | **optional.String**| Whether to record both legs of a call when executing a Call instruction or which leg to record. | + **callStatusCallbackUrl** | **optional.String**| The URL to call for the completed call event when executing a Call instruction. | + **callTimeout** | **optional.Int32**| Timeout for call when executing a Call instruction. | + **callTo** | **optional.String**| The Contact URI of the worker when executing a Call instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the [E.164](https://www.twilio.com/docs/glossary/what-e164) formatted phone number, depending on the destination. | + **callUrl** | **optional.String**| TwiML URI executed on answering the worker's leg as a result of the Call instruction. | + **conferenceRecord** | **optional.String**| Whether to record the conference the participant is joining or when to record the conference. Can be: `true`, `false`, `record-from-start`, and `do-not-record`. The default value is `false`. | + **conferenceRecordingStatusCallback** | **optional.String**| The URL we should call using the `conference_recording_status_callback_method` when the conference recording is available. | + **conferenceRecordingStatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `conference_recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | + **conferenceStatusCallback** | **optional.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. | + **conferenceStatusCallbackEvent** | [**optional.Interface of []string**](string.md)| The conference status events that we will send to `conference_status_callback`. Can be: `start`, `end`, `join`, `leave`, `mute`, `hold`, `speaker`. | + **conferenceStatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | + **conferenceTrim** | **optional.String**| How to trim the leading and trailing silence from your recorded conference audio files. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. | + **dequeueFrom** | **optional.String**| The Caller ID of the call to the worker when executing a Dequeue instruction. | + **dequeuePostWorkActivitySid** | **optional.String**| The SID of the Activity resource to start after executing a Dequeue instruction. | + **dequeueRecord** | **optional.String**| Whether to record both legs of a call when executing a Dequeue instruction or which leg to record. | + **dequeueStatusCallbackEvent** | [**optional.Interface of []string**](string.md)| The Call progress events sent via webhooks as a result of a Dequeue instruction. | + **dequeueStatusCallbackUrl** | **optional.String**| The Callback URL for completed call event when executing a Dequeue instruction. | + **dequeueTimeout** | **optional.Int32**| Timeout for call when executing a Dequeue instruction. | + **dequeueTo** | **optional.String**| The Contact URI of the worker when executing a Dequeue instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the [E.164](https://www.twilio.com/docs/glossary/what-e164) formatted phone number, depending on the destination. | + **earlyMedia** | **optional.Bool**| Whether to allow an agent to hear the state of the outbound call, including ringing or disconnect messages. The default is `true`. | + **endConferenceOnCustomerExit** | **optional.Bool**| Whether to end the conference when the customer leaves. | + **endConferenceOnExit** | **optional.Bool**| Whether to end the conference when the agent leaves. | + **from** | **optional.String**| The Caller ID of the call to the worker when executing a Conference instruction. | + **instruction** | **optional.String**| The assignment instruction for reservation. | + **maxParticipants** | **optional.Int32**| The maximum number of participants in the conference. Can be a positive integer from `2` to `250`. The default value is `250`. | + **muted** | **optional.Bool**| Whether the agent is muted in the conference. The default is `false`. | + **postWorkActivitySid** | **optional.String**| The new worker activity SID after executing a Conference instruction. | + **record** | **optional.Bool**| Whether to record the participant and their conferences, including the time between conferences. The default is `false`. | + **recordingChannels** | **optional.String**| The recording channels for the final recording. Can be: `mono` or `dual` and the default is `mono`. | + **recordingStatusCallback** | **optional.String**| The URL that we should call using the `recording_status_callback_method` when the recording status changes. | + **recordingStatusCallbackMethod** | **optional.String**| The HTTP method we should use when we call `recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | + **redirectAccept** | **optional.Bool**| Whether the reservation should be accepted when executing a Redirect instruction. | + **redirectCallSid** | **optional.String**| The Call SID of the call parked in the queue when executing a Redirect instruction. | + **redirectUrl** | **optional.String**| TwiML URI to redirect the call to when executing the Redirect instruction. | + **region** | **optional.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`. | + **reservationStatus** | **optional.String**| The new status of the reservation. Can be: `pending`, `accepted`, `rejected`, or `timeout`. | + **sipAuthPassword** | **optional.String**| The SIP password for authentication. | + **sipAuthUsername** | **optional.String**| The SIP username used for authentication. | + **startConferenceOnEnter** | **optional.Bool**| Whether to start the conference when the participant joins, if it has not already started. 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. | + **statusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application. | + **statusCallbackEvent** | [**optional.Interface of []string**](string.md)| The call progress events that we will send to `status_callback`. Can be: `initiated`, `ringing`, `answered`, or `completed`. | + **statusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`. | + **supervisor** | **optional.String**| The Supervisor SID/URI when executing the Supervise instruction. | + **supervisorMode** | **optional.String**| The Supervisor mode when executing the Supervise instruction. | + **timeout** | **optional.Int32**| Timeout for call when executing a Conference instruction. | + **to** | **optional.String**| The Contact URI of the worker when executing a Conference instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the [E.164](https://www.twilio.com/docs/glossary/what-e164) formatted phone number, depending on the destination. | + **waitMethod** | **optional.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. | + **waitUrl** | **optional.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). | + **workerActivitySid** | **optional.String**| The new worker activity SID if rejecting a reservation. | + +### Return type + +[**TaskrouterV1WorkspaceTaskTaskReservation**](taskrouter.v1.workspace.task.task_reservation.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) + + +## UpdateWorker + +> TaskrouterV1WorkspaceWorker UpdateWorker(ctx, workspaceSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the Worker to update. | +**sid** | **string**| The SID of the Worker resource to update. | + **optional** | ***UpdateWorkerOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateWorkerOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **activitySid** | **optional.String**| The SID of a valid Activity that will describe the Worker's initial state. See [Activities](https://www.twilio.com/docs/taskrouter/api/activity) for more information. | + **attributes** | **optional.String**| The JSON string that describes the Worker. For example: `{ \\\"email\\\": \\\"Bob@example.com\\\", \\\"phone\\\": \\\"+5095551234\\\" }`. This data is passed to the `assignment_callback_url` when TaskRouter assigns a Task to the Worker. Defaults to {}. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the Worker. It can be up to 64 characters long. | + **rejectPendingReservations** | **optional.Bool**| Whether to reject pending reservations. | + +### Return type + +[**TaskrouterV1WorkspaceWorker**](taskrouter.v1.workspace.worker.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) + + +## UpdateWorkerChannel + +> TaskrouterV1WorkspaceWorkerWorkerChannel UpdateWorkerChannel(ctx, workspaceSid, workerSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the WorkerChannel to update. | +**workerSid** | **string**| The SID of the Worker with the WorkerChannel to update. | +**sid** | **string**| The SID of the WorkerChannel to update. | + **optional** | ***UpdateWorkerChannelOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateWorkerChannelOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **available** | **optional.Bool**| Whether the WorkerChannel is available. Set to `false` to prevent the Worker from receiving any new Tasks of this TaskChannel type. | + **capacity** | **optional.Int32**| The total number of Tasks that the Worker should handle for the TaskChannel type. TaskRouter creates reservations for Tasks of this TaskChannel type up to the specified capacity. If the capacity is 0, no new reservations will be created. | + +### Return type + +[**TaskrouterV1WorkspaceWorkerWorkerChannel**](taskrouter.v1.workspace.worker.worker_channel.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) + + +## UpdateWorkerReservation + +> TaskrouterV1WorkspaceWorkerWorkerReservation UpdateWorkerReservation(ctx, workspaceSid, workerSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the WorkerReservation resources to update. | +**workerSid** | **string**| The SID of the reserved Worker resource with the WorkerReservation resources to update. | +**sid** | **string**| The SID of the WorkerReservation resource to update. | + **optional** | ***UpdateWorkerReservationOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateWorkerReservationOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **beep** | **optional.String**| Whether to play a notification beep when the participant joins or when to play a beep. Can be: `true`, `false`, `onEnter`, or `onExit`. The default value is `true`. | + **beepOnCustomerEntrance** | **optional.Bool**| Whether to play a notification beep when the customer joins. | + **callAccept** | **optional.Bool**| Whether to accept a reservation when executing a Call instruction. | + **callFrom** | **optional.String**| The Caller ID of the outbound call when executing a Call instruction. | + **callRecord** | **optional.String**| Whether to record both legs of a call when executing a Call instruction. | + **callStatusCallbackUrl** | **optional.String**| The URL to call for the completed call event when executing a Call instruction. | + **callTimeout** | **optional.Int32**| The timeout for a call when executing a Call instruction. | + **callTo** | **optional.String**| The contact URI of the worker when executing a Call instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the [E.164](https://www.twilio.com/docs/glossary/what-e164) formatted phone number, depending on the destination. | + **callUrl** | **optional.String**| TwiML URI executed on answering the worker's leg as a result of the Call instruction. | + **conferenceRecord** | **optional.String**| Whether to record the conference the participant is joining or when to record the conference. Can be: `true`, `false`, `record-from-start`, and `do-not-record`. The default value is `false`. | + **conferenceRecordingStatusCallback** | **optional.String**| The URL we should call using the `conference_recording_status_callback_method` when the conference recording is available. | + **conferenceRecordingStatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `conference_recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | + **conferenceStatusCallback** | **optional.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. | + **conferenceStatusCallbackEvent** | [**optional.Interface of []string**](string.md)| The conference status events that we will send to `conference_status_callback`. Can be: `start`, `end`, `join`, `leave`, `mute`, `hold`, `speaker`. | + **conferenceStatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | + **conferenceTrim** | **optional.String**| Whether to trim leading and trailing silence from your recorded conference audio files. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. | + **dequeueFrom** | **optional.String**| The caller ID of the call to the worker when executing a Dequeue instruction. | + **dequeuePostWorkActivitySid** | **optional.String**| The SID of the Activity resource to start after executing a Dequeue instruction. | + **dequeueRecord** | **optional.String**| Whether to record both legs of a call when executing a Dequeue instruction or which leg to record. | + **dequeueStatusCallbackEvent** | [**optional.Interface of []string**](string.md)| The call progress events sent via webhooks as a result of a Dequeue instruction. | + **dequeueStatusCallbackUrl** | **optional.String**| The callback URL for completed call event when executing a Dequeue instruction. | + **dequeueTimeout** | **optional.Int32**| The timeout for call when executing a Dequeue instruction. | + **dequeueTo** | **optional.String**| The contact URI of the worker when executing a Dequeue instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the [E.164](https://www.twilio.com/docs/glossary/what-e164) formatted phone number, depending on the destination. | + **earlyMedia** | **optional.Bool**| Whether to allow an agent to hear the state of the outbound call, including ringing or disconnect messages. The default is `true`. | + **endConferenceOnCustomerExit** | **optional.Bool**| Whether to end the conference when the customer leaves. | + **endConferenceOnExit** | **optional.Bool**| Whether to end the conference when the agent leaves. | + **from** | **optional.String**| The caller ID of the call to the worker when executing a Conference instruction. | + **instruction** | **optional.String**| The assignment instruction for the reservation. | + **maxParticipants** | **optional.Int32**| The maximum number of participants allowed in the conference. Can be a positive integer from `2` to `250`. The default value is `250`. | + **muted** | **optional.Bool**| Whether the agent is muted in the conference. Defaults to `false`. | + **postWorkActivitySid** | **optional.String**| The new worker activity SID after executing a Conference instruction. | + **record** | **optional.Bool**| Whether to record the participant and their conferences, including the time between conferences. Can be `true` or `false` and the default is `false`. | + **recordingChannels** | **optional.String**| The recording channels for the final recording. Can be: `mono` or `dual` and the default is `mono`. | + **recordingStatusCallback** | **optional.String**| The URL that we should call using the `recording_status_callback_method` when the recording status changes. | + **recordingStatusCallbackMethod** | **optional.String**| The HTTP method we should use when we call `recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | + **redirectAccept** | **optional.Bool**| Whether the reservation should be accepted when executing a Redirect instruction. | + **redirectCallSid** | **optional.String**| The Call SID of the call parked in the queue when executing a Redirect instruction. | + **redirectUrl** | **optional.String**| TwiML URI to redirect the call to when executing the Redirect instruction. | + **region** | **optional.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`. | + **reservationStatus** | **optional.String**| The new status of the reservation. Can be: `pending`, `accepted`, `rejected`, `timeout`, `canceled`, or `rescinded`. | + **sipAuthPassword** | **optional.String**| The SIP password for authentication. | + **sipAuthUsername** | **optional.String**| The SIP username used for authentication. | + **startConferenceOnEnter** | **optional.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. | + **statusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application. | + **statusCallbackEvent** | [**optional.Interface of []string**](string.md)| The call progress events that we will send to `status_callback`. Can be: `initiated`, `ringing`, `answered`, or `completed`. | + **statusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`. | + **timeout** | **optional.Int32**| The timeout for a call when executing a Conference instruction. | + **to** | **optional.String**| The Contact URI of the worker when executing a Conference instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the [E.164](https://www.twilio.com/docs/glossary/what-e164) formatted phone number, depending on the destination. | + **waitMethod** | **optional.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. | + **waitUrl** | **optional.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). | + **workerActivitySid** | **optional.String**| The new worker activity SID if rejecting a reservation. | + +### Return type + +[**TaskrouterV1WorkspaceWorkerWorkerReservation**](taskrouter.v1.workspace.worker.worker_reservation.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) + + +## UpdateWorkflow + +> TaskrouterV1WorkspaceWorkflow UpdateWorkflow(ctx, workspaceSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**workspaceSid** | **string**| The SID of the Workspace with the Workflow to update. | +**sid** | **string**| The SID of the Workflow resource to update. | + **optional** | ***UpdateWorkflowOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateWorkflowOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **assignmentCallbackUrl** | **optional.String**| The URL from your application that will process task assignment events. See [Handling Task Assignment Callback](https://www.twilio.com/docs/taskrouter/handle-assignment-callbacks) for more details. | + **configuration** | **optional.String**| A JSON string that contains the rules to apply to the Workflow. See [Configuring Workflows](https://www.twilio.com/docs/taskrouter/workflow-configuration) for more information. | + **fallbackAssignmentCallbackUrl** | **optional.String**| The URL that we should call when a call to the `assignment_callback_url` fails. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the Workflow resource. For example, `Inbound Call Workflow` or `2014 Outbound Campaign`. | + **reEvaluateTasks** | **optional.String**| Whether or not to re-evaluate Tasks. The default is `false`, which means Tasks in the Workflow will not be processed through the assignment loop again. | + **taskReservationTimeout** | **optional.Int32**| How long TaskRouter will wait for a confirmation response from your application after it assigns a Task to a Worker. Can be up to `86,400` (24 hours) and the default is `120`. | + +### Return type + +[**TaskrouterV1WorkspaceWorkflow**](taskrouter.v1.workspace.workflow.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) + + +## UpdateWorkspace + +> TaskrouterV1Workspace UpdateWorkspace(ctx, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Workspace resource to update. | + **optional** | ***UpdateWorkspaceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateWorkspaceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **defaultActivitySid** | **optional.String**| The SID of the Activity that will be used when new Workers are created in the Workspace. | + **eventCallbackUrl** | **optional.String**| The URL we should call when an event occurs. See [Workspace Events](https://www.twilio.com/docs/taskrouter/api/event) for more information. | + **eventsFilter** | **optional.String**| The list of Workspace events for which to call event_callback_url. For example if `EventsFilter=task.created,task.canceled,worker.activity.update`, then TaskRouter will call event_callback_url only when a task is created, canceled, or a Worker activity is updated. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the Workspace resource. For example: `Sales Call Center` or `Customer Support Team`. | + **multiTaskEnabled** | **optional.Bool**| Whether to enable multi-tasking. Can be: `true` to enable multi-tasking, or `false` to disable it. The default is `false`. Multi-tasking allows Workers to handle multiple Tasks simultaneously. When enabled (`true`), each Worker can receive parallel reservations up to the per-channel maximums defined in the Workers section. Otherwise, each Worker will only receive a new reservation when the previous task is completed. Learn more at [Multitasking][https://www.twilio.com/docs/taskrouter/multitasking]. | + **prioritizeQueueOrder** | **optional.String**| The type of TaskQueue to prioritize when Workers are receiving Tasks from both types of TaskQueues. Can be: `LIFO` or `FIFO` and the default is `FIFO`. For more information, see [Queue Ordering][https://www.twilio.com/docs/taskrouter/queue-ordering-last-first-out-lifo]. | + **timeoutActivitySid** | **optional.String**| The SID of the Activity that will be assigned to a Worker when a Task reservation times out without a response. | + +### Return type + +[**TaskrouterV1Workspace**](taskrouter.v1.workspace.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/rest/taskrouter/v1/docs/TaskrouterV1Workspace.md b/rest/taskrouter/v1/docs/TaskrouterV1Workspace.md new file mode 100644 index 000000000..746bac298 --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1Workspace.md @@ -0,0 +1,25 @@ +# TaskrouterV1Workspace + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**DefaultActivityName** | **string** | | [optional] +**DefaultActivitySid** | **string** | | [optional] +**EventCallbackUrl** | **string** | | [optional] +**EventsFilter** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**MultiTaskEnabled** | **bool** | | [optional] +**PrioritizeQueueOrder** | **string** | | [optional] +**Sid** | **string** | | [optional] +**TimeoutActivityName** | **string** | | [optional] +**TimeoutActivitySid** | **string** | | [optional] +**Url** | **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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceActivity.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceActivity.md new file mode 100644 index 000000000..678ab2d20 --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceActivity.md @@ -0,0 +1,18 @@ +# TaskrouterV1WorkspaceActivity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Available** | **bool** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **string** | | [optional] +**WorkspaceSid** | **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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceActivityReadResponse.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceActivityReadResponse.md new file mode 100644 index 000000000..e7a8e5d55 --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceActivityReadResponse.md @@ -0,0 +1,12 @@ +# TaskrouterV1WorkspaceActivityReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Activities** | [**[]TaskrouterV1WorkspaceActivity**](taskrouter.v1.workspace.activity.md) | | [optional] +**Meta** | [**TaskrouterV1WorkspaceReadResponseMeta**](taskrouter_v1_workspaceReadResponse_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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceEvent.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceEvent.md new file mode 100644 index 000000000..c3dcf515d --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceEvent.md @@ -0,0 +1,27 @@ +# TaskrouterV1WorkspaceEvent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ActorSid** | **string** | | [optional] +**ActorType** | **string** | | [optional] +**ActorUrl** | **string** | | [optional] +**Description** | **string** | | [optional] +**EventData** | [**map[string]interface{}**](.md) | | [optional] +**EventDate** | [**time.Time**](time.Time.md) | | [optional] +**EventDateMs** | **int32** | | [optional] +**EventType** | **string** | | [optional] +**ResourceSid** | **string** | | [optional] +**ResourceType** | **string** | | [optional] +**ResourceUrl** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Source** | **string** | | [optional] +**SourceIpAddress** | **string** | | [optional] +**Url** | **string** | | [optional] +**WorkspaceSid** | **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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceEventReadResponse.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceEventReadResponse.md new file mode 100644 index 000000000..74c9b7966 --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceEventReadResponse.md @@ -0,0 +1,12 @@ +# TaskrouterV1WorkspaceEventReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Events** | [**[]TaskrouterV1WorkspaceEvent**](taskrouter.v1.workspace.event.md) | | [optional] +**Meta** | [**TaskrouterV1WorkspaceReadResponseMeta**](taskrouter_v1_workspaceReadResponse_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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceReadResponse.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceReadResponse.md new file mode 100644 index 000000000..8b3da315c --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceReadResponse.md @@ -0,0 +1,12 @@ +# TaskrouterV1WorkspaceReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**TaskrouterV1WorkspaceReadResponseMeta**](taskrouter_v1_workspaceReadResponse_meta.md) | | [optional] +**Workspaces** | [**[]TaskrouterV1Workspace**](taskrouter.v1.workspace.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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceReadResponseMeta.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceReadResponseMeta.md new file mode 100644 index 000000000..f1ee61433 --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceReadResponseMeta.md @@ -0,0 +1,17 @@ +# TaskrouterV1WorkspaceReadResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTask.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTask.md new file mode 100644 index 000000000..66caa5a65 --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTask.md @@ -0,0 +1,31 @@ +# TaskrouterV1WorkspaceTask + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Addons** | **string** | | [optional] +**Age** | **int32** | | [optional] +**AssignmentStatus** | **string** | | [optional] +**Attributes** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Priority** | **int32** | | [optional] +**Reason** | **string** | | [optional] +**Sid** | **string** | | [optional] +**TaskChannelSid** | **string** | | [optional] +**TaskChannelUniqueName** | **string** | | [optional] +**TaskQueueEnteredDate** | [**time.Time**](time.Time.md) | | [optional] +**TaskQueueFriendlyName** | **string** | | [optional] +**TaskQueueSid** | **string** | | [optional] +**Timeout** | **int32** | | [optional] +**Url** | **string** | | [optional] +**WorkflowFriendlyName** | **string** | | [optional] +**WorkflowSid** | **string** | | [optional] +**WorkspaceSid** | **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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskChannel.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskChannel.md new file mode 100644 index 000000000..d8f226c07 --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskChannel.md @@ -0,0 +1,20 @@ +# TaskrouterV1WorkspaceTaskChannel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ChannelOptimizedRouting** | **bool** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Sid** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **string** | | [optional] +**WorkspaceSid** | **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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskChannelReadResponse.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskChannelReadResponse.md new file mode 100644 index 000000000..50e36f421 --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskChannelReadResponse.md @@ -0,0 +1,12 @@ +# TaskrouterV1WorkspaceTaskChannelReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Channels** | [**[]TaskrouterV1WorkspaceTaskChannel**](taskrouter.v1.workspace.task_channel.md) | | [optional] +**Meta** | [**TaskrouterV1WorkspaceReadResponseMeta**](taskrouter_v1_workspaceReadResponse_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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskQueue.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskQueue.md new file mode 100644 index 000000000..771e51f88 --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskQueue.md @@ -0,0 +1,25 @@ +# TaskrouterV1WorkspaceTaskQueue + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AssignmentActivityName** | **string** | | [optional] +**AssignmentActivitySid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**MaxReservedWorkers** | **int32** | | [optional] +**ReservationActivityName** | **string** | | [optional] +**ReservationActivitySid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**TargetWorkers** | **string** | | [optional] +**TaskOrder** | **string** | | [optional] +**Url** | **string** | | [optional] +**WorkspaceSid** | **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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskQueueReadResponse.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskQueueReadResponse.md new file mode 100644 index 000000000..9f1335eda --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskQueueReadResponse.md @@ -0,0 +1,12 @@ +# TaskrouterV1WorkspaceTaskQueueReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**TaskrouterV1WorkspaceReadResponseMeta**](taskrouter_v1_workspaceReadResponse_meta.md) | | [optional] +**TaskQueues** | [**[]TaskrouterV1WorkspaceTaskQueue**](taskrouter.v1.workspace.task_queue.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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskQueueTaskQueueCumulativeStatistics.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskQueueTaskQueueCumulativeStatistics.md new file mode 100644 index 000000000..c471c7f9d --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskQueueTaskQueueCumulativeStatistics.md @@ -0,0 +1,32 @@ +# TaskrouterV1WorkspaceTaskQueueTaskQueueCumulativeStatistics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AvgTaskAcceptanceTime** | **int32** | | [optional] +**EndTime** | [**time.Time**](time.Time.md) | | [optional] +**ReservationsAccepted** | **int32** | | [optional] +**ReservationsCanceled** | **int32** | | [optional] +**ReservationsCreated** | **int32** | | [optional] +**ReservationsRejected** | **int32** | | [optional] +**ReservationsRescinded** | **int32** | | [optional] +**ReservationsTimedOut** | **int32** | | [optional] +**SplitByWaitTime** | [**map[string]interface{}**](.md) | | [optional] +**StartTime** | [**time.Time**](time.Time.md) | | [optional] +**TaskQueueSid** | **string** | | [optional] +**TasksCanceled** | **int32** | | [optional] +**TasksCompleted** | **int32** | | [optional] +**TasksDeleted** | **int32** | | [optional] +**TasksEntered** | **int32** | | [optional] +**TasksMoved** | **int32** | | [optional] +**Url** | **string** | | [optional] +**WaitDurationInQueueUntilAccepted** | [**map[string]interface{}**](.md) | | [optional] +**WaitDurationUntilAccepted** | [**map[string]interface{}**](.md) | | [optional] +**WaitDurationUntilCanceled** | [**map[string]interface{}**](.md) | | [optional] +**WorkspaceSid** | **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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskQueueTaskQueueRealTimeStatistics.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskQueueTaskQueueRealTimeStatistics.md new file mode 100644 index 000000000..2f5de69b9 --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskQueueTaskQueueRealTimeStatistics.md @@ -0,0 +1,24 @@ +# TaskrouterV1WorkspaceTaskQueueTaskQueueRealTimeStatistics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ActivityStatistics** | **[]map[string]interface{}** | | [optional] +**LongestRelativeTaskAgeInQueue** | **int32** | | [optional] +**LongestRelativeTaskSidInQueue** | **string** | | [optional] +**LongestTaskWaitingAge** | **int32** | | [optional] +**LongestTaskWaitingSid** | **string** | | [optional] +**TaskQueueSid** | **string** | | [optional] +**TasksByPriority** | [**map[string]interface{}**](.md) | | [optional] +**TasksByStatus** | [**map[string]interface{}**](.md) | | [optional] +**TotalAvailableWorkers** | **int32** | | [optional] +**TotalEligibleWorkers** | **int32** | | [optional] +**TotalTasks** | **int32** | | [optional] +**Url** | **string** | | [optional] +**WorkspaceSid** | **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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskQueueTaskQueueStatistics.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskQueueTaskQueueStatistics.md new file mode 100644 index 000000000..44254d74a --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskQueueTaskQueueStatistics.md @@ -0,0 +1,16 @@ +# TaskrouterV1WorkspaceTaskQueueTaskQueueStatistics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Cumulative** | [**map[string]interface{}**](.md) | | [optional] +**Realtime** | [**map[string]interface{}**](.md) | | [optional] +**TaskQueueSid** | **string** | | [optional] +**Url** | **string** | | [optional] +**WorkspaceSid** | **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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskQueueTaskQueuesStatistics.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskQueueTaskQueuesStatistics.md new file mode 100644 index 000000000..3c9b6a5a9 --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskQueueTaskQueuesStatistics.md @@ -0,0 +1,15 @@ +# TaskrouterV1WorkspaceTaskQueueTaskQueuesStatistics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Cumulative** | [**map[string]interface{}**](.md) | | [optional] +**Realtime** | [**map[string]interface{}**](.md) | | [optional] +**TaskQueueSid** | **string** | | [optional] +**WorkspaceSid** | **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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse.md new file mode 100644 index 000000000..7abfdb9b4 --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse.md @@ -0,0 +1,12 @@ +# TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**TaskrouterV1WorkspaceReadResponseMeta**](taskrouter_v1_workspaceReadResponse_meta.md) | | [optional] +**TaskQueuesStatistics** | [**[]TaskrouterV1WorkspaceTaskQueueTaskQueuesStatistics**](taskrouter.v1.workspace.task_queue.task_queues_statistics.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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskReadResponse.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskReadResponse.md new file mode 100644 index 000000000..256d40d42 --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskReadResponse.md @@ -0,0 +1,12 @@ +# TaskrouterV1WorkspaceTaskReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**TaskrouterV1WorkspaceReadResponseMeta**](taskrouter_v1_workspaceReadResponse_meta.md) | | [optional] +**Tasks** | [**[]TaskrouterV1WorkspaceTask**](taskrouter.v1.workspace.task.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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskTaskReservation.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskTaskReservation.md new file mode 100644 index 000000000..0f2822b33 --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskTaskReservation.md @@ -0,0 +1,21 @@ +# TaskrouterV1WorkspaceTaskTaskReservation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**ReservationStatus** | **string** | | [optional] +**Sid** | **string** | | [optional] +**TaskSid** | **string** | | [optional] +**Url** | **string** | | [optional] +**WorkerName** | **string** | | [optional] +**WorkerSid** | **string** | | [optional] +**WorkspaceSid** | **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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskTaskReservationReadResponse.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskTaskReservationReadResponse.md new file mode 100644 index 000000000..4374e05e5 --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskTaskReservationReadResponse.md @@ -0,0 +1,12 @@ +# TaskrouterV1WorkspaceTaskTaskReservationReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**TaskrouterV1WorkspaceReadResponseMeta**](taskrouter_v1_workspaceReadResponse_meta.md) | | [optional] +**Reservations** | [**[]TaskrouterV1WorkspaceTaskTaskReservation**](taskrouter.v1.workspace.task.task_reservation.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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorker.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorker.md new file mode 100644 index 000000000..878bae94d --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorker.md @@ -0,0 +1,23 @@ +# TaskrouterV1WorkspaceWorker + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ActivityName** | **string** | | [optional] +**ActivitySid** | **string** | | [optional] +**Attributes** | **string** | | [optional] +**Available** | **bool** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateStatusChanged** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Sid** | **string** | | [optional] +**Url** | **string** | | [optional] +**WorkspaceSid** | **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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerReadResponse.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerReadResponse.md new file mode 100644 index 000000000..adbb156d3 --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerReadResponse.md @@ -0,0 +1,12 @@ +# TaskrouterV1WorkspaceWorkerReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**TaskrouterV1WorkspaceReadResponseMeta**](taskrouter_v1_workspaceReadResponse_meta.md) | | [optional] +**Workers** | [**[]TaskrouterV1WorkspaceWorker**](taskrouter.v1.workspace.worker.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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkerChannel.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkerChannel.md new file mode 100644 index 000000000..b64410b37 --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkerChannel.md @@ -0,0 +1,23 @@ +# TaskrouterV1WorkspaceWorkerWorkerChannel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AssignedTasks** | **int32** | | [optional] +**Available** | **bool** | | [optional] +**AvailableCapacityPercentage** | **int32** | | [optional] +**ConfiguredCapacity** | **int32** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Sid** | **string** | | [optional] +**TaskChannelSid** | **string** | | [optional] +**TaskChannelUniqueName** | **string** | | [optional] +**Url** | **string** | | [optional] +**WorkerSid** | **string** | | [optional] +**WorkspaceSid** | **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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse.md new file mode 100644 index 000000000..8917e045c --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse.md @@ -0,0 +1,12 @@ +# TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Channels** | [**[]TaskrouterV1WorkspaceWorkerWorkerChannel**](taskrouter.v1.workspace.worker.worker_channel.md) | | [optional] +**Meta** | [**TaskrouterV1WorkspaceReadResponseMeta**](taskrouter_v1_workspaceReadResponse_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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkerInstanceStatistics.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkerInstanceStatistics.md new file mode 100644 index 000000000..e624f3612 --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkerInstanceStatistics.md @@ -0,0 +1,15 @@ +# TaskrouterV1WorkspaceWorkerWorkerInstanceStatistics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Cumulative** | [**map[string]interface{}**](.md) | | [optional] +**Url** | **string** | | [optional] +**WorkerSid** | **string** | | [optional] +**WorkspaceSid** | **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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkerReservation.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkerReservation.md new file mode 100644 index 000000000..26a720ee1 --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkerReservation.md @@ -0,0 +1,21 @@ +# TaskrouterV1WorkspaceWorkerWorkerReservation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**ReservationStatus** | **string** | | [optional] +**Sid** | **string** | | [optional] +**TaskSid** | **string** | | [optional] +**Url** | **string** | | [optional] +**WorkerName** | **string** | | [optional] +**WorkerSid** | **string** | | [optional] +**WorkspaceSid** | **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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse.md new file mode 100644 index 000000000..325b9569f --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse.md @@ -0,0 +1,12 @@ +# TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**TaskrouterV1WorkspaceReadResponseMeta**](taskrouter_v1_workspaceReadResponse_meta.md) | | [optional] +**Reservations** | [**[]TaskrouterV1WorkspaceWorkerWorkerReservation**](taskrouter.v1.workspace.worker.worker_reservation.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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkerStatistics.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkerStatistics.md new file mode 100644 index 000000000..8c0ba8e1b --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkerStatistics.md @@ -0,0 +1,15 @@ +# TaskrouterV1WorkspaceWorkerWorkerStatistics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Cumulative** | [**map[string]interface{}**](.md) | | [optional] +**Realtime** | [**map[string]interface{}**](.md) | | [optional] +**Url** | **string** | | [optional] +**WorkspaceSid** | **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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkersCumulativeStatistics.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkersCumulativeStatistics.md new file mode 100644 index 000000000..79765d3cb --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkersCumulativeStatistics.md @@ -0,0 +1,22 @@ +# TaskrouterV1WorkspaceWorkerWorkersCumulativeStatistics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ActivityDurations** | **[]map[string]interface{}** | | [optional] +**EndTime** | [**time.Time**](time.Time.md) | | [optional] +**ReservationsAccepted** | **int32** | | [optional] +**ReservationsCanceled** | **int32** | | [optional] +**ReservationsCreated** | **int32** | | [optional] +**ReservationsRejected** | **int32** | | [optional] +**ReservationsRescinded** | **int32** | | [optional] +**ReservationsTimedOut** | **int32** | | [optional] +**StartTime** | [**time.Time**](time.Time.md) | | [optional] +**Url** | **string** | | [optional] +**WorkspaceSid** | **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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkersRealTimeStatistics.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkersRealTimeStatistics.md new file mode 100644 index 000000000..012a19684 --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkersRealTimeStatistics.md @@ -0,0 +1,15 @@ +# TaskrouterV1WorkspaceWorkerWorkersRealTimeStatistics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ActivityStatistics** | **[]map[string]interface{}** | | [optional] +**TotalWorkers** | **int32** | | [optional] +**Url** | **string** | | [optional] +**WorkspaceSid** | **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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkflow.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkflow.md new file mode 100644 index 000000000..d24a51fdf --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkflow.md @@ -0,0 +1,23 @@ +# TaskrouterV1WorkspaceWorkflow + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AssignmentCallbackUrl** | **string** | | [optional] +**Configuration** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**DocumentContentType** | **string** | | [optional] +**FallbackAssignmentCallbackUrl** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Sid** | **string** | | [optional] +**TaskReservationTimeout** | **int32** | | [optional] +**Url** | **string** | | [optional] +**WorkspaceSid** | **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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkflowReadResponse.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkflowReadResponse.md new file mode 100644 index 000000000..386482b3a --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkflowReadResponse.md @@ -0,0 +1,12 @@ +# TaskrouterV1WorkspaceWorkflowReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**TaskrouterV1WorkspaceReadResponseMeta**](taskrouter_v1_workspaceReadResponse_meta.md) | | [optional] +**Workflows** | [**[]TaskrouterV1WorkspaceWorkflow**](taskrouter.v1.workspace.workflow.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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkflowWorkflowCumulativeStatistics.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkflowWorkflowCumulativeStatistics.md new file mode 100644 index 000000000..f84e63367 --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkflowWorkflowCumulativeStatistics.md @@ -0,0 +1,32 @@ +# TaskrouterV1WorkspaceWorkflowWorkflowCumulativeStatistics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AvgTaskAcceptanceTime** | **int32** | | [optional] +**EndTime** | [**time.Time**](time.Time.md) | | [optional] +**ReservationsAccepted** | **int32** | | [optional] +**ReservationsCanceled** | **int32** | | [optional] +**ReservationsCreated** | **int32** | | [optional] +**ReservationsRejected** | **int32** | | [optional] +**ReservationsRescinded** | **int32** | | [optional] +**ReservationsTimedOut** | **int32** | | [optional] +**SplitByWaitTime** | [**map[string]interface{}**](.md) | | [optional] +**StartTime** | [**time.Time**](time.Time.md) | | [optional] +**TasksCanceled** | **int32** | | [optional] +**TasksCompleted** | **int32** | | [optional] +**TasksDeleted** | **int32** | | [optional] +**TasksEntered** | **int32** | | [optional] +**TasksMoved** | **int32** | | [optional] +**TasksTimedOutInWorkflow** | **int32** | | [optional] +**Url** | **string** | | [optional] +**WaitDurationUntilAccepted** | [**map[string]interface{}**](.md) | | [optional] +**WaitDurationUntilCanceled** | [**map[string]interface{}**](.md) | | [optional] +**WorkflowSid** | **string** | | [optional] +**WorkspaceSid** | **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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkflowWorkflowRealTimeStatistics.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkflowWorkflowRealTimeStatistics.md new file mode 100644 index 000000000..7805da399 --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkflowWorkflowRealTimeStatistics.md @@ -0,0 +1,19 @@ +# TaskrouterV1WorkspaceWorkflowWorkflowRealTimeStatistics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**LongestTaskWaitingAge** | **int32** | | [optional] +**LongestTaskWaitingSid** | **string** | | [optional] +**TasksByPriority** | [**map[string]interface{}**](.md) | | [optional] +**TasksByStatus** | [**map[string]interface{}**](.md) | | [optional] +**TotalTasks** | **int32** | | [optional] +**Url** | **string** | | [optional] +**WorkflowSid** | **string** | | [optional] +**WorkspaceSid** | **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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkflowWorkflowStatistics.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkflowWorkflowStatistics.md new file mode 100644 index 000000000..5c20a982e --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkflowWorkflowStatistics.md @@ -0,0 +1,16 @@ +# TaskrouterV1WorkspaceWorkflowWorkflowStatistics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Cumulative** | [**map[string]interface{}**](.md) | | [optional] +**Realtime** | [**map[string]interface{}**](.md) | | [optional] +**Url** | **string** | | [optional] +**WorkflowSid** | **string** | | [optional] +**WorkspaceSid** | **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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkspaceCumulativeStatistics.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkspaceCumulativeStatistics.md new file mode 100644 index 000000000..18df1e090 --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkspaceCumulativeStatistics.md @@ -0,0 +1,31 @@ +# TaskrouterV1WorkspaceWorkspaceCumulativeStatistics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AvgTaskAcceptanceTime** | **int32** | | [optional] +**EndTime** | [**time.Time**](time.Time.md) | | [optional] +**ReservationsAccepted** | **int32** | | [optional] +**ReservationsCanceled** | **int32** | | [optional] +**ReservationsCreated** | **int32** | | [optional] +**ReservationsRejected** | **int32** | | [optional] +**ReservationsRescinded** | **int32** | | [optional] +**ReservationsTimedOut** | **int32** | | [optional] +**SplitByWaitTime** | [**map[string]interface{}**](.md) | | [optional] +**StartTime** | [**time.Time**](time.Time.md) | | [optional] +**TasksCanceled** | **int32** | | [optional] +**TasksCompleted** | **int32** | | [optional] +**TasksCreated** | **int32** | | [optional] +**TasksDeleted** | **int32** | | [optional] +**TasksMoved** | **int32** | | [optional] +**TasksTimedOutInWorkflow** | **int32** | | [optional] +**Url** | **string** | | [optional] +**WaitDurationUntilAccepted** | [**map[string]interface{}**](.md) | | [optional] +**WaitDurationUntilCanceled** | [**map[string]interface{}**](.md) | | [optional] +**WorkspaceSid** | **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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkspaceRealTimeStatistics.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkspaceRealTimeStatistics.md new file mode 100644 index 000000000..dd6e5b66b --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkspaceRealTimeStatistics.md @@ -0,0 +1,20 @@ +# TaskrouterV1WorkspaceWorkspaceRealTimeStatistics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ActivityStatistics** | **[]map[string]interface{}** | | [optional] +**LongestTaskWaitingAge** | **int32** | | [optional] +**LongestTaskWaitingSid** | **string** | | [optional] +**TasksByPriority** | [**map[string]interface{}**](.md) | | [optional] +**TasksByStatus** | [**map[string]interface{}**](.md) | | [optional] +**TotalTasks** | **int32** | | [optional] +**TotalWorkers** | **int32** | | [optional] +**Url** | **string** | | [optional] +**WorkspaceSid** | **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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkspaceStatistics.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkspaceStatistics.md new file mode 100644 index 000000000..c7f7d5e34 --- /dev/null +++ b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkspaceStatistics.md @@ -0,0 +1,15 @@ +# TaskrouterV1WorkspaceWorkspaceStatistics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Cumulative** | [**map[string]interface{}**](.md) | | [optional] +**Realtime** | [**map[string]interface{}**](.md) | | [optional] +**Url** | **string** | | [optional] +**WorkspaceSid** | **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/rest/taskrouter/v1/docs/UpdateActivityRequest.md b/rest/taskrouter/v1/docs/UpdateActivityRequest.md new file mode 100644 index 000000000..c472efa00 --- /dev/null +++ b/rest/taskrouter/v1/docs/UpdateActivityRequest.md @@ -0,0 +1,11 @@ +# UpdateActivityRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | A descriptive string that you create to describe the Activity resource. It can be up to 64 characters long. These names are used to calculate and expose statistics about Workers, and provide visibility into the state of each Worker. Examples of friendly names include: `on-call`, `break`, and `email`. | [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/rest/taskrouter/v1/docs/UpdateTaskChannelRequest.md b/rest/taskrouter/v1/docs/UpdateTaskChannelRequest.md new file mode 100644 index 000000000..e00b03fab --- /dev/null +++ b/rest/taskrouter/v1/docs/UpdateTaskChannelRequest.md @@ -0,0 +1,12 @@ +# UpdateTaskChannelRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ChannelOptimizedRouting** | **bool** | Whether the TaskChannel should prioritize Workers that have been idle. If `true`, Workers that have been idle the longest are prioritized. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the Task Channel. It can be up to 64 characters long. | [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/rest/taskrouter/v1/docs/UpdateTaskQueueRequest.md b/rest/taskrouter/v1/docs/UpdateTaskQueueRequest.md new file mode 100644 index 000000000..8942b98e9 --- /dev/null +++ b/rest/taskrouter/v1/docs/UpdateTaskQueueRequest.md @@ -0,0 +1,16 @@ +# UpdateTaskQueueRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AssignmentActivitySid** | **string** | The SID of the Activity to assign Workers when a task is assigned for them. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the TaskQueue. For example `Support-Tier 1`, `Sales`, or `Escalation`. | [optional] +**MaxReservedWorkers** | **int32** | The maximum number of Workers to create reservations for the assignment of a task while in the queue. Maximum of 50. | [optional] +**ReservationActivitySid** | **string** | The SID of the Activity to assign Workers when a task is reserved for them. | [optional] +**TargetWorkers** | **string** | A string describing the Worker selection criteria for any Tasks that enter the TaskQueue. For example '\"language\" == \"spanish\"' If no TargetWorkers parameter is provided, Tasks will wait in the queue until they are either deleted or moved to another queue. Additional examples on how to describing Worker selection criteria below. | [optional] +**TaskOrder** | **string** | How Tasks will be assigned to Workers. Can be: `FIFO` or `LIFO` and the default is `FIFO`. Use `FIFO` to assign the oldest task first and `LIFO` to assign the most recent task first. For more information, see [Queue Ordering](https://www.twilio.com/docs/taskrouter/queue-ordering-last-first-out-lifo). | [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/rest/taskrouter/v1/docs/UpdateTaskRequest.md b/rest/taskrouter/v1/docs/UpdateTaskRequest.md new file mode 100644 index 000000000..a179b651f --- /dev/null +++ b/rest/taskrouter/v1/docs/UpdateTaskRequest.md @@ -0,0 +1,15 @@ +# UpdateTaskRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AssignmentStatus** | **string** | The new status of the task. Can be: `canceled`, to cancel a Task that is currently `pending` or `reserved`; `wrapping`, to move the Task to wrapup state; or `completed`, to move a Task to the completed state. | [optional] +**Attributes** | **string** | The JSON string that describes the custom attributes of the task. | [optional] +**Priority** | **int32** | The Task's new priority value. When supplied, the Task takes on the specified priority unless it matches a Workflow Target with a Priority set. Value can be 0 to 2^31^ (2,147,483,647). | [optional] +**Reason** | **string** | The reason that the Task was canceled or completed. This parameter is required only if the Task is canceled or completed. Setting this value queues the task for deletion and logs the reason. | [optional] +**TaskChannel** | **string** | When MultiTasking is enabled, specify the TaskChannel with the task to update. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | [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/rest/taskrouter/v1/docs/UpdateTaskReservationRequest.md b/rest/taskrouter/v1/docs/UpdateTaskReservationRequest.md new file mode 100644 index 000000000..2b27ab0a4 --- /dev/null +++ b/rest/taskrouter/v1/docs/UpdateTaskReservationRequest.md @@ -0,0 +1,63 @@ +# UpdateTaskReservationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Beep** | **string** | Whether to play a notification beep when the participant joins or when to play a beep. Can be: `true`, `false`, `onEnter`, or `onExit`. The default value is `true`. | [optional] +**BeepOnCustomerEntrance** | **bool** | Whether to play a notification beep when the customer joins. | [optional] +**CallAccept** | **bool** | Whether to accept a reservation when executing a Call instruction. | [optional] +**CallFrom** | **string** | The Caller ID of the outbound call when executing a Call instruction. | [optional] +**CallRecord** | **string** | Whether to record both legs of a call when executing a Call instruction or which leg to record. | [optional] +**CallStatusCallbackUrl** | **string** | The URL to call for the completed call event when executing a Call instruction. | [optional] +**CallTimeout** | **int32** | Timeout for call when executing a Call instruction. | [optional] +**CallTo** | **string** | The Contact URI of the worker when executing a Call instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the [E.164](https://www.twilio.com/docs/glossary/what-e164) formatted phone number, depending on the destination. | [optional] +**CallUrl** | **string** | TwiML URI executed on answering the worker's leg as a result of the Call instruction. | [optional] +**ConferenceRecord** | **string** | Whether to record the conference the participant is joining or when to record the conference. Can be: `true`, `false`, `record-from-start`, and `do-not-record`. The default value is `false`. | [optional] +**ConferenceRecordingStatusCallback** | **string** | The URL we should call using the `conference_recording_status_callback_method` when the conference recording is available. | [optional] +**ConferenceRecordingStatusCallbackMethod** | **string** | The HTTP method we should use to call `conference_recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | [optional] +**ConferenceStatusCallback** | **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. | [optional] +**ConferenceStatusCallbackEvent** | **[]string** | The conference status events that we will send to `conference_status_callback`. Can be: `start`, `end`, `join`, `leave`, `mute`, `hold`, `speaker`. | [optional] +**ConferenceStatusCallbackMethod** | **string** | The HTTP method we should use to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | [optional] +**ConferenceTrim** | **string** | How to trim the leading and trailing silence from your recorded conference audio files. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. | [optional] +**DequeueFrom** | **string** | The Caller ID of the call to the worker when executing a Dequeue instruction. | [optional] +**DequeuePostWorkActivitySid** | **string** | The SID of the Activity resource to start after executing a Dequeue instruction. | [optional] +**DequeueRecord** | **string** | Whether to record both legs of a call when executing a Dequeue instruction or which leg to record. | [optional] +**DequeueStatusCallbackEvent** | **[]string** | The Call progress events sent via webhooks as a result of a Dequeue instruction. | [optional] +**DequeueStatusCallbackUrl** | **string** | The Callback URL for completed call event when executing a Dequeue instruction. | [optional] +**DequeueTimeout** | **int32** | Timeout for call when executing a Dequeue instruction. | [optional] +**DequeueTo** | **string** | The Contact URI of the worker when executing a Dequeue instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the [E.164](https://www.twilio.com/docs/glossary/what-e164) formatted phone number, depending on the destination. | [optional] +**EarlyMedia** | **bool** | Whether to allow an agent to hear the state of the outbound call, including ringing or disconnect messages. The default is `true`. | [optional] +**EndConferenceOnCustomerExit** | **bool** | Whether to end the conference when the customer leaves. | [optional] +**EndConferenceOnExit** | **bool** | Whether to end the conference when the agent leaves. | [optional] +**From** | **string** | The Caller ID of the call to the worker when executing a Conference instruction. | [optional] +**Instruction** | **string** | The assignment instruction for reservation. | [optional] +**MaxParticipants** | **int32** | The maximum number of participants in the conference. Can be a positive integer from `2` to `250`. The default value is `250`. | [optional] +**Muted** | **bool** | Whether the agent is muted in the conference. The default is `false`. | [optional] +**PostWorkActivitySid** | **string** | The new worker activity SID after executing a Conference instruction. | [optional] +**Record** | **bool** | Whether to record the participant and their conferences, including the time between conferences. The default is `false`. | [optional] +**RecordingChannels** | **string** | The recording channels for the final recording. Can be: `mono` or `dual` and the default is `mono`. | [optional] +**RecordingStatusCallback** | **string** | The URL that we should call using the `recording_status_callback_method` when the recording status changes. | [optional] +**RecordingStatusCallbackMethod** | **string** | The HTTP method we should use when we call `recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | [optional] +**RedirectAccept** | **bool** | Whether the reservation should be accepted when executing a Redirect instruction. | [optional] +**RedirectCallSid** | **string** | The Call SID of the call parked in the queue when executing a Redirect instruction. | [optional] +**RedirectUrl** | **string** | TwiML URI to redirect the call to when executing the Redirect instruction. | [optional] +**Region** | **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`. | [optional] +**ReservationStatus** | **string** | The new status of the reservation. Can be: `pending`, `accepted`, `rejected`, or `timeout`. | [optional] +**SipAuthPassword** | **string** | The SIP password for authentication. | [optional] +**SipAuthUsername** | **string** | The SIP username used for authentication. | [optional] +**StartConferenceOnEnter** | **bool** | Whether to start the conference when the participant joins, if it has not already started. 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] +**StatusCallback** | **string** | The URL we should call using the `status_callback_method` to send status information to your application. | [optional] +**StatusCallbackEvent** | **[]string** | The call progress events that we will send to `status_callback`. Can be: `initiated`, `ringing`, `answered`, or `completed`. | [optional] +**StatusCallbackMethod** | **string** | The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`. | [optional] +**Supervisor** | **string** | The Supervisor SID/URI when executing the Supervise instruction. | [optional] +**SupervisorMode** | **string** | The Supervisor mode when executing the Supervise instruction. | [optional] +**Timeout** | **int32** | Timeout for call when executing a Conference instruction. | [optional] +**To** | **string** | The Contact URI of the worker when executing a Conference instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the [E.164](https://www.twilio.com/docs/glossary/what-e164) formatted phone number, depending on the destination. | [optional] +**WaitMethod** | **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. | [optional] +**WaitUrl** | **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). | [optional] +**WorkerActivitySid** | **string** | The new worker activity SID if rejecting a reservation. | [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/rest/taskrouter/v1/docs/UpdateWorkerChannelRequest.md b/rest/taskrouter/v1/docs/UpdateWorkerChannelRequest.md new file mode 100644 index 000000000..4b7fa1dbb --- /dev/null +++ b/rest/taskrouter/v1/docs/UpdateWorkerChannelRequest.md @@ -0,0 +1,12 @@ +# UpdateWorkerChannelRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Available** | **bool** | Whether the WorkerChannel is available. Set to `false` to prevent the Worker from receiving any new Tasks of this TaskChannel type. | [optional] +**Capacity** | **int32** | The total number of Tasks that the Worker should handle for the TaskChannel type. TaskRouter creates reservations for Tasks of this TaskChannel type up to the specified capacity. If the capacity is 0, no new reservations will be 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/rest/taskrouter/v1/docs/UpdateWorkerRequest.md b/rest/taskrouter/v1/docs/UpdateWorkerRequest.md new file mode 100644 index 000000000..d14f39a62 --- /dev/null +++ b/rest/taskrouter/v1/docs/UpdateWorkerRequest.md @@ -0,0 +1,14 @@ +# UpdateWorkerRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ActivitySid** | **string** | The SID of a valid Activity that will describe the Worker's initial state. See [Activities](https://www.twilio.com/docs/taskrouter/api/activity) for more information. | [optional] +**Attributes** | **string** | The JSON string that describes the Worker. For example: `{ \"email\": \"Bob@example.com\", \"phone\": \"+5095551234\" }`. This data is passed to the `assignment_callback_url` when TaskRouter assigns a Task to the Worker. Defaults to {}. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the Worker. It can be up to 64 characters long. | [optional] +**RejectPendingReservations** | **bool** | Whether to reject pending reservations. | [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/rest/taskrouter/v1/docs/UpdateWorkerReservationRequest.md b/rest/taskrouter/v1/docs/UpdateWorkerReservationRequest.md new file mode 100644 index 000000000..ec7ae9a8d --- /dev/null +++ b/rest/taskrouter/v1/docs/UpdateWorkerReservationRequest.md @@ -0,0 +1,61 @@ +# UpdateWorkerReservationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Beep** | **string** | Whether to play a notification beep when the participant joins or when to play a beep. Can be: `true`, `false`, `onEnter`, or `onExit`. The default value is `true`. | [optional] +**BeepOnCustomerEntrance** | **bool** | Whether to play a notification beep when the customer joins. | [optional] +**CallAccept** | **bool** | Whether to accept a reservation when executing a Call instruction. | [optional] +**CallFrom** | **string** | The Caller ID of the outbound call when executing a Call instruction. | [optional] +**CallRecord** | **string** | Whether to record both legs of a call when executing a Call instruction. | [optional] +**CallStatusCallbackUrl** | **string** | The URL to call for the completed call event when executing a Call instruction. | [optional] +**CallTimeout** | **int32** | The timeout for a call when executing a Call instruction. | [optional] +**CallTo** | **string** | The contact URI of the worker when executing a Call instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the [E.164](https://www.twilio.com/docs/glossary/what-e164) formatted phone number, depending on the destination. | [optional] +**CallUrl** | **string** | TwiML URI executed on answering the worker's leg as a result of the Call instruction. | [optional] +**ConferenceRecord** | **string** | Whether to record the conference the participant is joining or when to record the conference. Can be: `true`, `false`, `record-from-start`, and `do-not-record`. The default value is `false`. | [optional] +**ConferenceRecordingStatusCallback** | **string** | The URL we should call using the `conference_recording_status_callback_method` when the conference recording is available. | [optional] +**ConferenceRecordingStatusCallbackMethod** | **string** | The HTTP method we should use to call `conference_recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | [optional] +**ConferenceStatusCallback** | **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. | [optional] +**ConferenceStatusCallbackEvent** | **[]string** | The conference status events that we will send to `conference_status_callback`. Can be: `start`, `end`, `join`, `leave`, `mute`, `hold`, `speaker`. | [optional] +**ConferenceStatusCallbackMethod** | **string** | The HTTP method we should use to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | [optional] +**ConferenceTrim** | **string** | Whether to trim leading and trailing silence from your recorded conference audio files. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. | [optional] +**DequeueFrom** | **string** | The caller ID of the call to the worker when executing a Dequeue instruction. | [optional] +**DequeuePostWorkActivitySid** | **string** | The SID of the Activity resource to start after executing a Dequeue instruction. | [optional] +**DequeueRecord** | **string** | Whether to record both legs of a call when executing a Dequeue instruction or which leg to record. | [optional] +**DequeueStatusCallbackEvent** | **[]string** | The call progress events sent via webhooks as a result of a Dequeue instruction. | [optional] +**DequeueStatusCallbackUrl** | **string** | The callback URL for completed call event when executing a Dequeue instruction. | [optional] +**DequeueTimeout** | **int32** | The timeout for call when executing a Dequeue instruction. | [optional] +**DequeueTo** | **string** | The contact URI of the worker when executing a Dequeue instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the [E.164](https://www.twilio.com/docs/glossary/what-e164) formatted phone number, depending on the destination. | [optional] +**EarlyMedia** | **bool** | Whether to allow an agent to hear the state of the outbound call, including ringing or disconnect messages. The default is `true`. | [optional] +**EndConferenceOnCustomerExit** | **bool** | Whether to end the conference when the customer leaves. | [optional] +**EndConferenceOnExit** | **bool** | Whether to end the conference when the agent leaves. | [optional] +**From** | **string** | The caller ID of the call to the worker when executing a Conference instruction. | [optional] +**Instruction** | **string** | The assignment instruction for the reservation. | [optional] +**MaxParticipants** | **int32** | The maximum number of participants allowed in the conference. Can be a positive integer from `2` to `250`. The default value is `250`. | [optional] +**Muted** | **bool** | Whether the agent is muted in the conference. Defaults to `false`. | [optional] +**PostWorkActivitySid** | **string** | The new worker activity SID after executing a Conference instruction. | [optional] +**Record** | **bool** | Whether to record the participant and their conferences, including the time between conferences. Can be `true` or `false` and the default is `false`. | [optional] +**RecordingChannels** | **string** | The recording channels for the final recording. Can be: `mono` or `dual` and the default is `mono`. | [optional] +**RecordingStatusCallback** | **string** | The URL that we should call using the `recording_status_callback_method` when the recording status changes. | [optional] +**RecordingStatusCallbackMethod** | **string** | The HTTP method we should use when we call `recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | [optional] +**RedirectAccept** | **bool** | Whether the reservation should be accepted when executing a Redirect instruction. | [optional] +**RedirectCallSid** | **string** | The Call SID of the call parked in the queue when executing a Redirect instruction. | [optional] +**RedirectUrl** | **string** | TwiML URI to redirect the call to when executing the Redirect instruction. | [optional] +**Region** | **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`. | [optional] +**ReservationStatus** | **string** | The new status of the reservation. Can be: `pending`, `accepted`, `rejected`, `timeout`, `canceled`, or `rescinded`. | [optional] +**SipAuthPassword** | **string** | The SIP password for authentication. | [optional] +**SipAuthUsername** | **string** | The SIP username used for authentication. | [optional] +**StartConferenceOnEnter** | **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. | [optional] +**StatusCallback** | **string** | The URL we should call using the `status_callback_method` to send status information to your application. | [optional] +**StatusCallbackEvent** | **[]string** | The call progress events that we will send to `status_callback`. Can be: `initiated`, `ringing`, `answered`, or `completed`. | [optional] +**StatusCallbackMethod** | **string** | The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`. | [optional] +**Timeout** | **int32** | The timeout for a call when executing a Conference instruction. | [optional] +**To** | **string** | The Contact URI of the worker when executing a Conference instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the [E.164](https://www.twilio.com/docs/glossary/what-e164) formatted phone number, depending on the destination. | [optional] +**WaitMethod** | **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. | [optional] +**WaitUrl** | **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). | [optional] +**WorkerActivitySid** | **string** | The new worker activity SID if rejecting a reservation. | [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/rest/taskrouter/v1/docs/UpdateWorkflowRequest.md b/rest/taskrouter/v1/docs/UpdateWorkflowRequest.md new file mode 100644 index 000000000..17a97a340 --- /dev/null +++ b/rest/taskrouter/v1/docs/UpdateWorkflowRequest.md @@ -0,0 +1,16 @@ +# UpdateWorkflowRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AssignmentCallbackUrl** | **string** | The URL from your application that will process task assignment events. See [Handling Task Assignment Callback](https://www.twilio.com/docs/taskrouter/handle-assignment-callbacks) for more details. | [optional] +**Configuration** | **string** | A JSON string that contains the rules to apply to the Workflow. See [Configuring Workflows](https://www.twilio.com/docs/taskrouter/workflow-configuration) for more information. | [optional] +**FallbackAssignmentCallbackUrl** | **string** | The URL that we should call when a call to the `assignment_callback_url` fails. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the Workflow resource. For example, `Inbound Call Workflow` or `2014 Outbound Campaign`. | [optional] +**ReEvaluateTasks** | **string** | Whether or not to re-evaluate Tasks. The default is `false`, which means Tasks in the Workflow will not be processed through the assignment loop again. | [optional] +**TaskReservationTimeout** | **int32** | How long TaskRouter will wait for a confirmation response from your application after it assigns a Task to a Worker. Can be up to `86,400` (24 hours) and the default is `120`. | [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/rest/taskrouter/v1/docs/UpdateWorkspaceRequest.md b/rest/taskrouter/v1/docs/UpdateWorkspaceRequest.md new file mode 100644 index 000000000..2ecd3352d --- /dev/null +++ b/rest/taskrouter/v1/docs/UpdateWorkspaceRequest.md @@ -0,0 +1,17 @@ +# UpdateWorkspaceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DefaultActivitySid** | **string** | The SID of the Activity that will be used when new Workers are created in the Workspace. | [optional] +**EventCallbackUrl** | **string** | The URL we should call when an event occurs. See [Workspace Events](https://www.twilio.com/docs/taskrouter/api/event) for more information. | [optional] +**EventsFilter** | **string** | The list of Workspace events for which to call event_callback_url. For example if `EventsFilter=task.created,task.canceled,worker.activity.update`, then TaskRouter will call event_callback_url only when a task is created, canceled, or a Worker activity is updated. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the Workspace resource. For example: `Sales Call Center` or `Customer Support Team`. | [optional] +**MultiTaskEnabled** | **bool** | Whether to enable multi-tasking. Can be: `true` to enable multi-tasking, or `false` to disable it. The default is `false`. Multi-tasking allows Workers to handle multiple Tasks simultaneously. When enabled (`true`), each Worker can receive parallel reservations up to the per-channel maximums defined in the Workers section. Otherwise, each Worker will only receive a new reservation when the previous task is completed. Learn more at [Multitasking][https://www.twilio.com/docs/taskrouter/multitasking]. | [optional] +**PrioritizeQueueOrder** | **string** | The type of TaskQueue to prioritize when Workers are receiving Tasks from both types of TaskQueues. Can be: `LIFO` or `FIFO` and the default is `FIFO`. For more information, see [Queue Ordering][https://www.twilio.com/docs/taskrouter/queue-ordering-last-first-out-lifo]. | [optional] +**TimeoutActivitySid** | **string** | The SID of the Activity that will be assigned to a Worker when a Task reservation times out without a response. | [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/rest/taskrouter/v1/model_create_activity_request.go b/rest/taskrouter/v1/model_create_activity_request.go new file mode 100644 index 000000000..f4d0f6af1 --- /dev/null +++ b/rest/taskrouter/v1/model_create_activity_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateActivityRequest struct for CreateActivityRequest +type CreateActivityRequest struct { + // Whether the Worker should be eligible to receive a Task when it occupies the Activity. A value of `true`, `1`, or `yes` specifies the Activity is available. All other values specify that it is not. The value cannot be changed after the Activity is created. + Available bool `json:"Available,omitempty"` + // A descriptive string that you create to describe the Activity resource. It can be up to 64 characters long. These names are used to calculate and expose statistics about Workers, and provide visibility into the state of each Worker. Examples of friendly names include: `on-call`, `break`, and `email`. + FriendlyName string `json:"FriendlyName"` +} diff --git a/rest/taskrouter/v1/model_create_task_channel_request.go b/rest/taskrouter/v1/model_create_task_channel_request.go new file mode 100644 index 000000000..514840b87 --- /dev/null +++ b/rest/taskrouter/v1/model_create_task_channel_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateTaskChannelRequest struct for CreateTaskChannelRequest +type CreateTaskChannelRequest struct { + // Whether the Task Channel should prioritize Workers that have been idle. If `true`, Workers that have been idle the longest are prioritized. + ChannelOptimizedRouting bool `json:"ChannelOptimizedRouting,omitempty"` + // A descriptive string that you create to describe the Task Channel. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName"` + // An application-defined string that uniquely identifies the Task Channel, such as `voice` or `sms`. + UniqueName string `json:"UniqueName"` +} diff --git a/rest/taskrouter/v1/model_create_task_queue_request.go b/rest/taskrouter/v1/model_create_task_queue_request.go new file mode 100644 index 000000000..1ddfba2bc --- /dev/null +++ b/rest/taskrouter/v1/model_create_task_queue_request.go @@ -0,0 +1,26 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateTaskQueueRequest struct for CreateTaskQueueRequest +type CreateTaskQueueRequest struct { + // The SID of the Activity to assign Workers when a task is assigned to them. + AssignmentActivitySid string `json:"AssignmentActivitySid,omitempty"` + // A descriptive string that you create to describe the TaskQueue. For example `Support-Tier 1`, `Sales`, or `Escalation`. + FriendlyName string `json:"FriendlyName"` + // The maximum number of Workers to reserve for the assignment of a Task in the queue. Can be an integer between 1 and 50, inclusive and defaults to 1. + MaxReservedWorkers int32 `json:"MaxReservedWorkers,omitempty"` + // The SID of the Activity to assign Workers when a task is reserved for them. + ReservationActivitySid string `json:"ReservationActivitySid,omitempty"` + // A string that describes the Worker selection criteria for any Tasks that enter the TaskQueue. For example, `'\"language\" == \"spanish\"'`. The default value is `1==1`. If this value is empty, Tasks will wait in the TaskQueue until they are deleted or moved to another TaskQueue. For more information about Worker selection, see [Describing Worker selection criteria](https://www.twilio.com/docs/taskrouter/api/taskqueues#target-workers). + TargetWorkers string `json:"TargetWorkers,omitempty"` + // How Tasks will be assigned to Workers. Set this parameter to `LIFO` to assign most recently created Task first or FIFO to assign the oldest Task first. Default is `FIFO`. [Click here](https://www.twilio.com/docs/taskrouter/queue-ordering-last-first-out-lifo) to learn more. + TaskOrder string `json:"TaskOrder,omitempty"` +} diff --git a/rest/taskrouter/v1/model_create_task_request.go b/rest/taskrouter/v1/model_create_task_request.go new file mode 100644 index 000000000..fbd323b31 --- /dev/null +++ b/rest/taskrouter/v1/model_create_task_request.go @@ -0,0 +1,24 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateTaskRequest struct for CreateTaskRequest +type CreateTaskRequest struct { + // A URL-encoded JSON string with the attributes of the new task. This value is passed to the Workflow's `assignment_callback_url` when the Task is assigned to a Worker. For example: `{ \"task_type\": \"call\", \"twilio_call_sid\": \"CAxxx\", \"customer_ticket_number\": \"12345\" }`. + Attributes string `json:"Attributes,omitempty"` + // The priority to assign the new task and override the default. When supplied, the new Task will have this priority unless it matches a Workflow Target with a Priority set. When not supplied, the new Task will have the priority of the matching Workflow Target. Value can be 0 to 2^31^ (2,147,483,647). + Priority int32 `json:"Priority,omitempty"` + // When MultiTasking is enabled, specify the TaskChannel by passing either its `unique_name` or `sid`. Default value is `default`. + TaskChannel string `json:"TaskChannel,omitempty"` + // The amount of time in seconds the new task is allowed to live. Can be up to a maximum of 2 weeks (1,209,600 seconds). The default value is 24 hours (86,400 seconds). On timeout, the `task.canceled` event will fire with description `Task TTL Exceeded`. + Timeout int32 `json:"Timeout,omitempty"` + // The SID of the Workflow that you would like to handle routing for the new Task. If there is only one Workflow defined for the Workspace that you are posting the new task to, this parameter is optional. + WorkflowSid string `json:"WorkflowSid,omitempty"` +} diff --git a/rest/taskrouter/v1/model_create_worker_request.go b/rest/taskrouter/v1/model_create_worker_request.go new file mode 100644 index 000000000..7d29764e7 --- /dev/null +++ b/rest/taskrouter/v1/model_create_worker_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateWorkerRequest struct for CreateWorkerRequest +type CreateWorkerRequest struct { + // The SID of a valid Activity that will describe the new Worker's initial state. See [Activities](https://www.twilio.com/docs/taskrouter/api/activity) for more information. If not provided, the new Worker's initial state is the `default_activity_sid` configured on the Workspace. + ActivitySid string `json:"ActivitySid,omitempty"` + // A valid JSON string that describes the new Worker. For example: `{ \"email\": \"Bob@example.com\", \"phone\": \"+5095551234\" }`. This data is passed to the `assignment_callback_url` when TaskRouter assigns a Task to the Worker. Defaults to {}. + Attributes string `json:"Attributes,omitempty"` + // A descriptive string that you create to describe the new Worker. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName"` +} diff --git a/rest/taskrouter/v1/model_create_workflow_request.go b/rest/taskrouter/v1/model_create_workflow_request.go new file mode 100644 index 000000000..2f54ae393 --- /dev/null +++ b/rest/taskrouter/v1/model_create_workflow_request.go @@ -0,0 +1,24 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateWorkflowRequest struct for CreateWorkflowRequest +type CreateWorkflowRequest struct { + // The URL from your application that will process task assignment events. See [Handling Task Assignment Callback](https://www.twilio.com/docs/taskrouter/handle-assignment-callbacks) for more details. + AssignmentCallbackUrl string `json:"AssignmentCallbackUrl,omitempty"` + // A JSON string that contains the rules to apply to the Workflow. See [Configuring Workflows](https://www.twilio.com/docs/taskrouter/workflow-configuration) for more information. + Configuration string `json:"Configuration"` + // The URL that we should call when a call to the `assignment_callback_url` fails. + FallbackAssignmentCallbackUrl string `json:"FallbackAssignmentCallbackUrl,omitempty"` + // A descriptive string that you create to describe the Workflow resource. For example, `Inbound Call Workflow` or `2014 Outbound Campaign`. + FriendlyName string `json:"FriendlyName"` + // How long TaskRouter will wait for a confirmation response from your application after it assigns a Task to a Worker. Can be up to `86,400` (24 hours) and the default is `120`. + TaskReservationTimeout int32 `json:"TaskReservationTimeout,omitempty"` +} diff --git a/rest/taskrouter/v1/model_create_workspace_request.go b/rest/taskrouter/v1/model_create_workspace_request.go new file mode 100644 index 000000000..9f6a3024e --- /dev/null +++ b/rest/taskrouter/v1/model_create_workspace_request.go @@ -0,0 +1,26 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateWorkspaceRequest struct for CreateWorkspaceRequest +type CreateWorkspaceRequest struct { + // The URL we should call when an event occurs. If provided, the Workspace will publish events to this URL, for example, to collect data for reporting. See [Workspace Events](https://www.twilio.com/docs/taskrouter/api/event) for more information. + EventCallbackUrl string `json:"EventCallbackUrl,omitempty"` + // The list of Workspace events for which to call event_callback_url. For example if `EventsFilter=task.created,task.canceled,worker.activity.update`, then TaskRouter will call event_callback_url only when a task is created, canceled, or a Worker activity is updated. + EventsFilter string `json:"EventsFilter,omitempty"` + // A descriptive string that you create to describe the Workspace resource. It can be up to 64 characters long. For example: `Customer Support` or `2014 Election Campaign`. + FriendlyName string `json:"FriendlyName"` + // Whether to enable multi-tasking. Can be: `true` to enable multi-tasking, or `false` to disable it. The default is `false`. Multi-tasking allows Workers to handle multiple Tasks simultaneously. When enabled (`true`), each Worker can receive parallel reservations up to the per-channel maximums defined in the Workers section. Otherwise, each Worker will only receive a new reservation when the previous task is completed. Learn more at [Multitasking][https://www.twilio.com/docs/taskrouter/multitasking]. + MultiTaskEnabled bool `json:"MultiTaskEnabled,omitempty"` + // The type of TaskQueue to prioritize when Workers are receiving Tasks from both types of TaskQueues. Can be: `LIFO` or `FIFO` and the default is `FIFO`. For more information, see [Queue Ordering][https://www.twilio.com/docs/taskrouter/queue-ordering-last-first-out-lifo]. + PrioritizeQueueOrder string `json:"PrioritizeQueueOrder,omitempty"` + // An available template name. Can be: `NONE` or `FIFO` and the default is `NONE`. Pre-configures the Workspace with the Workflow and Activities specified in the template. `NONE` will create a Workspace with only a set of default activities. `FIFO` will configure TaskRouter with a set of default activities and a single TaskQueue for first-in, first-out distribution, which can be useful when you are getting started with TaskRouter. + Template string `json:"Template,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace.go new file mode 100644 index 000000000..09b1304b7 --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace.go @@ -0,0 +1,32 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// TaskrouterV1Workspace struct for TaskrouterV1Workspace +type TaskrouterV1Workspace struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + DefaultActivityName string `json:"default_activity_name,omitempty"` + DefaultActivitySid string `json:"default_activity_sid,omitempty"` + EventCallbackUrl string `json:"event_callback_url,omitempty"` + EventsFilter string `json:"events_filter,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + MultiTaskEnabled bool `json:"multi_task_enabled,omitempty"` + PrioritizeQueueOrder string `json:"prioritize_queue_order,omitempty"` + Sid string `json:"sid,omitempty"` + TimeoutActivityName string `json:"timeout_activity_name,omitempty"` + TimeoutActivitySid string `json:"timeout_activity_sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_activity.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_activity.go new file mode 100644 index 000000000..90bcd6d12 --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_activity.go @@ -0,0 +1,25 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// TaskrouterV1WorkspaceActivity struct for TaskrouterV1WorkspaceActivity +type TaskrouterV1WorkspaceActivity struct { + AccountSid string `json:"account_sid,omitempty"` + Available bool `json:"available,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` + WorkspaceSid string `json:"workspace_sid,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_activity_read_response.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_activity_read_response.go new file mode 100644 index 000000000..a7157bb94 --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_activity_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// TaskrouterV1WorkspaceActivityReadResponse struct for TaskrouterV1WorkspaceActivityReadResponse +type TaskrouterV1WorkspaceActivityReadResponse struct { + Activities []TaskrouterV1WorkspaceActivity `json:"activities,omitempty"` + Meta TaskrouterV1WorkspaceReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_event.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_event.go new file mode 100644 index 000000000..93f406f77 --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_event.go @@ -0,0 +1,34 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// TaskrouterV1WorkspaceEvent struct for TaskrouterV1WorkspaceEvent +type TaskrouterV1WorkspaceEvent struct { + AccountSid string `json:"account_sid,omitempty"` + ActorSid string `json:"actor_sid,omitempty"` + ActorType string `json:"actor_type,omitempty"` + ActorUrl string `json:"actor_url,omitempty"` + Description string `json:"description,omitempty"` + EventData map[string]interface{} `json:"event_data,omitempty"` + EventDate time.Time `json:"event_date,omitempty"` + EventDateMs int32 `json:"event_date_ms,omitempty"` + EventType string `json:"event_type,omitempty"` + ResourceSid string `json:"resource_sid,omitempty"` + ResourceType string `json:"resource_type,omitempty"` + ResourceUrl string `json:"resource_url,omitempty"` + Sid string `json:"sid,omitempty"` + Source string `json:"source,omitempty"` + SourceIpAddress string `json:"source_ip_address,omitempty"` + Url string `json:"url,omitempty"` + WorkspaceSid string `json:"workspace_sid,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_event_read_response.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_event_read_response.go new file mode 100644 index 000000000..73d816477 --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_event_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// TaskrouterV1WorkspaceEventReadResponse struct for TaskrouterV1WorkspaceEventReadResponse +type TaskrouterV1WorkspaceEventReadResponse struct { + Events []TaskrouterV1WorkspaceEvent `json:"events,omitempty"` + Meta TaskrouterV1WorkspaceReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_read_response.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_read_response.go new file mode 100644 index 000000000..a5e24c09b --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// TaskrouterV1WorkspaceReadResponse struct for TaskrouterV1WorkspaceReadResponse +type TaskrouterV1WorkspaceReadResponse struct { + Meta TaskrouterV1WorkspaceReadResponseMeta `json:"meta,omitempty"` + Workspaces []TaskrouterV1Workspace `json:"workspaces,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_read_response_meta.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_read_response_meta.go new file mode 100644 index 000000000..f5de5484f --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_read_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// TaskrouterV1WorkspaceReadResponseMeta struct for TaskrouterV1WorkspaceReadResponseMeta +type TaskrouterV1WorkspaceReadResponseMeta struct { + FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` + NextPageUrl string `json:"next_page_url,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUrl string `json:"previous_page_url,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task.go new file mode 100644 index 000000000..47512fca2 --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task.go @@ -0,0 +1,38 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// TaskrouterV1WorkspaceTask struct for TaskrouterV1WorkspaceTask +type TaskrouterV1WorkspaceTask struct { + AccountSid string `json:"account_sid,omitempty"` + Addons string `json:"addons,omitempty"` + Age int32 `json:"age,omitempty"` + AssignmentStatus string `json:"assignment_status,omitempty"` + Attributes string `json:"attributes,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Priority int32 `json:"priority,omitempty"` + Reason string `json:"reason,omitempty"` + Sid string `json:"sid,omitempty"` + TaskChannelSid string `json:"task_channel_sid,omitempty"` + TaskChannelUniqueName string `json:"task_channel_unique_name,omitempty"` + TaskQueueEnteredDate time.Time `json:"task_queue_entered_date,omitempty"` + TaskQueueFriendlyName string `json:"task_queue_friendly_name,omitempty"` + TaskQueueSid string `json:"task_queue_sid,omitempty"` + Timeout int32 `json:"timeout,omitempty"` + Url string `json:"url,omitempty"` + WorkflowFriendlyName string `json:"workflow_friendly_name,omitempty"` + WorkflowSid string `json:"workflow_sid,omitempty"` + WorkspaceSid string `json:"workspace_sid,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_channel.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_channel.go new file mode 100644 index 000000000..ad6957a5f --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_channel.go @@ -0,0 +1,27 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// TaskrouterV1WorkspaceTaskChannel struct for TaskrouterV1WorkspaceTaskChannel +type TaskrouterV1WorkspaceTaskChannel struct { + AccountSid string `json:"account_sid,omitempty"` + ChannelOptimizedRouting bool `json:"channel_optimized_routing,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Sid string `json:"sid,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` + WorkspaceSid string `json:"workspace_sid,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_channel_read_response.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_channel_read_response.go new file mode 100644 index 000000000..55fdb5583 --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_channel_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// TaskrouterV1WorkspaceTaskChannelReadResponse struct for TaskrouterV1WorkspaceTaskChannelReadResponse +type TaskrouterV1WorkspaceTaskChannelReadResponse struct { + Channels []TaskrouterV1WorkspaceTaskChannel `json:"channels,omitempty"` + Meta TaskrouterV1WorkspaceReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue.go new file mode 100644 index 000000000..a153b4870 --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue.go @@ -0,0 +1,32 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// TaskrouterV1WorkspaceTaskQueue struct for TaskrouterV1WorkspaceTaskQueue +type TaskrouterV1WorkspaceTaskQueue struct { + AccountSid string `json:"account_sid,omitempty"` + AssignmentActivityName string `json:"assignment_activity_name,omitempty"` + AssignmentActivitySid string `json:"assignment_activity_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + MaxReservedWorkers int32 `json:"max_reserved_workers,omitempty"` + ReservationActivityName string `json:"reservation_activity_name,omitempty"` + ReservationActivitySid string `json:"reservation_activity_sid,omitempty"` + Sid string `json:"sid,omitempty"` + TargetWorkers string `json:"target_workers,omitempty"` + TaskOrder string `json:"task_order,omitempty"` + Url string `json:"url,omitempty"` + WorkspaceSid string `json:"workspace_sid,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_read_response.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_read_response.go new file mode 100644 index 000000000..939ca5a4d --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// TaskrouterV1WorkspaceTaskQueueReadResponse struct for TaskrouterV1WorkspaceTaskQueueReadResponse +type TaskrouterV1WorkspaceTaskQueueReadResponse struct { + Meta TaskrouterV1WorkspaceReadResponseMeta `json:"meta,omitempty"` + TaskQueues []TaskrouterV1WorkspaceTaskQueue `json:"task_queues,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queue_cumulative_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queue_cumulative_statistics.go new file mode 100644 index 000000000..27e91739a --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queue_cumulative_statistics.go @@ -0,0 +1,39 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// TaskrouterV1WorkspaceTaskQueueTaskQueueCumulativeStatistics struct for TaskrouterV1WorkspaceTaskQueueTaskQueueCumulativeStatistics +type TaskrouterV1WorkspaceTaskQueueTaskQueueCumulativeStatistics struct { + AccountSid string `json:"account_sid,omitempty"` + AvgTaskAcceptanceTime int32 `json:"avg_task_acceptance_time,omitempty"` + EndTime time.Time `json:"end_time,omitempty"` + ReservationsAccepted int32 `json:"reservations_accepted,omitempty"` + ReservationsCanceled int32 `json:"reservations_canceled,omitempty"` + ReservationsCreated int32 `json:"reservations_created,omitempty"` + ReservationsRejected int32 `json:"reservations_rejected,omitempty"` + ReservationsRescinded int32 `json:"reservations_rescinded,omitempty"` + ReservationsTimedOut int32 `json:"reservations_timed_out,omitempty"` + SplitByWaitTime map[string]interface{} `json:"split_by_wait_time,omitempty"` + StartTime time.Time `json:"start_time,omitempty"` + TaskQueueSid string `json:"task_queue_sid,omitempty"` + TasksCanceled int32 `json:"tasks_canceled,omitempty"` + TasksCompleted int32 `json:"tasks_completed,omitempty"` + TasksDeleted int32 `json:"tasks_deleted,omitempty"` + TasksEntered int32 `json:"tasks_entered,omitempty"` + TasksMoved int32 `json:"tasks_moved,omitempty"` + Url string `json:"url,omitempty"` + WaitDurationInQueueUntilAccepted map[string]interface{} `json:"wait_duration_in_queue_until_accepted,omitempty"` + WaitDurationUntilAccepted map[string]interface{} `json:"wait_duration_until_accepted,omitempty"` + WaitDurationUntilCanceled map[string]interface{} `json:"wait_duration_until_canceled,omitempty"` + WorkspaceSid string `json:"workspace_sid,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queue_real_time_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queue_real_time_statistics.go new file mode 100644 index 000000000..c136834de --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queue_real_time_statistics.go @@ -0,0 +1,28 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// TaskrouterV1WorkspaceTaskQueueTaskQueueRealTimeStatistics struct for TaskrouterV1WorkspaceTaskQueueTaskQueueRealTimeStatistics +type TaskrouterV1WorkspaceTaskQueueTaskQueueRealTimeStatistics struct { + AccountSid string `json:"account_sid,omitempty"` + ActivityStatistics []map[string]interface{} `json:"activity_statistics,omitempty"` + LongestRelativeTaskAgeInQueue int32 `json:"longest_relative_task_age_in_queue,omitempty"` + LongestRelativeTaskSidInQueue string `json:"longest_relative_task_sid_in_queue,omitempty"` + LongestTaskWaitingAge int32 `json:"longest_task_waiting_age,omitempty"` + LongestTaskWaitingSid string `json:"longest_task_waiting_sid,omitempty"` + TaskQueueSid string `json:"task_queue_sid,omitempty"` + TasksByPriority map[string]interface{} `json:"tasks_by_priority,omitempty"` + TasksByStatus map[string]interface{} `json:"tasks_by_status,omitempty"` + TotalAvailableWorkers int32 `json:"total_available_workers,omitempty"` + TotalEligibleWorkers int32 `json:"total_eligible_workers,omitempty"` + TotalTasks int32 `json:"total_tasks,omitempty"` + Url string `json:"url,omitempty"` + WorkspaceSid string `json:"workspace_sid,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queue_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queue_statistics.go new file mode 100644 index 000000000..6282fb45e --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queue_statistics.go @@ -0,0 +1,20 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// TaskrouterV1WorkspaceTaskQueueTaskQueueStatistics struct for TaskrouterV1WorkspaceTaskQueueTaskQueueStatistics +type TaskrouterV1WorkspaceTaskQueueTaskQueueStatistics struct { + AccountSid string `json:"account_sid,omitempty"` + Cumulative map[string]interface{} `json:"cumulative,omitempty"` + Realtime map[string]interface{} `json:"realtime,omitempty"` + TaskQueueSid string `json:"task_queue_sid,omitempty"` + Url string `json:"url,omitempty"` + WorkspaceSid string `json:"workspace_sid,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queues_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queues_statistics.go new file mode 100644 index 000000000..da14bd772 --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queues_statistics.go @@ -0,0 +1,19 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// TaskrouterV1WorkspaceTaskQueueTaskQueuesStatistics struct for TaskrouterV1WorkspaceTaskQueueTaskQueuesStatistics +type TaskrouterV1WorkspaceTaskQueueTaskQueuesStatistics struct { + AccountSid string `json:"account_sid,omitempty"` + Cumulative map[string]interface{} `json:"cumulative,omitempty"` + Realtime map[string]interface{} `json:"realtime,omitempty"` + TaskQueueSid string `json:"task_queue_sid,omitempty"` + WorkspaceSid string `json:"workspace_sid,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queues_statistics_read_response.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queues_statistics_read_response.go new file mode 100644 index 000000000..ae2a0330b --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queues_statistics_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse struct for TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse +type TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse struct { + Meta TaskrouterV1WorkspaceReadResponseMeta `json:"meta,omitempty"` + TaskQueuesStatistics []TaskrouterV1WorkspaceTaskQueueTaskQueuesStatistics `json:"task_queues_statistics,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_read_response.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_read_response.go new file mode 100644 index 000000000..41dac5b25 --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// TaskrouterV1WorkspaceTaskReadResponse struct for TaskrouterV1WorkspaceTaskReadResponse +type TaskrouterV1WorkspaceTaskReadResponse struct { + Meta TaskrouterV1WorkspaceReadResponseMeta `json:"meta,omitempty"` + Tasks []TaskrouterV1WorkspaceTask `json:"tasks,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_task_reservation.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_task_reservation.go new file mode 100644 index 000000000..a88947a52 --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_task_reservation.go @@ -0,0 +1,28 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// TaskrouterV1WorkspaceTaskTaskReservation struct for TaskrouterV1WorkspaceTaskTaskReservation +type TaskrouterV1WorkspaceTaskTaskReservation struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + ReservationStatus string `json:"reservation_status,omitempty"` + Sid string `json:"sid,omitempty"` + TaskSid string `json:"task_sid,omitempty"` + Url string `json:"url,omitempty"` + WorkerName string `json:"worker_name,omitempty"` + WorkerSid string `json:"worker_sid,omitempty"` + WorkspaceSid string `json:"workspace_sid,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_task_reservation_read_response.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_task_reservation_read_response.go new file mode 100644 index 000000000..99d29595e --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_task_reservation_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// TaskrouterV1WorkspaceTaskTaskReservationReadResponse struct for TaskrouterV1WorkspaceTaskTaskReservationReadResponse +type TaskrouterV1WorkspaceTaskTaskReservationReadResponse struct { + Meta TaskrouterV1WorkspaceReadResponseMeta `json:"meta,omitempty"` + Reservations []TaskrouterV1WorkspaceTaskTaskReservation `json:"reservations,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker.go new file mode 100644 index 000000000..78ecdeecf --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker.go @@ -0,0 +1,30 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// TaskrouterV1WorkspaceWorker struct for TaskrouterV1WorkspaceWorker +type TaskrouterV1WorkspaceWorker struct { + AccountSid string `json:"account_sid,omitempty"` + ActivityName string `json:"activity_name,omitempty"` + ActivitySid string `json:"activity_sid,omitempty"` + Attributes string `json:"attributes,omitempty"` + Available bool `json:"available,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateStatusChanged time.Time `json:"date_status_changed,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` + WorkspaceSid string `json:"workspace_sid,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_read_response.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_read_response.go new file mode 100644 index 000000000..9d0942ce8 --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// TaskrouterV1WorkspaceWorkerReadResponse struct for TaskrouterV1WorkspaceWorkerReadResponse +type TaskrouterV1WorkspaceWorkerReadResponse struct { + Meta TaskrouterV1WorkspaceReadResponseMeta `json:"meta,omitempty"` + Workers []TaskrouterV1WorkspaceWorker `json:"workers,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_channel.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_channel.go new file mode 100644 index 000000000..33e327f51 --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_channel.go @@ -0,0 +1,30 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// TaskrouterV1WorkspaceWorkerWorkerChannel struct for TaskrouterV1WorkspaceWorkerWorkerChannel +type TaskrouterV1WorkspaceWorkerWorkerChannel struct { + AccountSid string `json:"account_sid,omitempty"` + AssignedTasks int32 `json:"assigned_tasks,omitempty"` + Available bool `json:"available,omitempty"` + AvailableCapacityPercentage int32 `json:"available_capacity_percentage,omitempty"` + ConfiguredCapacity int32 `json:"configured_capacity,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Sid string `json:"sid,omitempty"` + TaskChannelSid string `json:"task_channel_sid,omitempty"` + TaskChannelUniqueName string `json:"task_channel_unique_name,omitempty"` + Url string `json:"url,omitempty"` + WorkerSid string `json:"worker_sid,omitempty"` + WorkspaceSid string `json:"workspace_sid,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_channel_read_response.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_channel_read_response.go new file mode 100644 index 000000000..8fb4bbc82 --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_channel_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse struct for TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse +type TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse struct { + Channels []TaskrouterV1WorkspaceWorkerWorkerChannel `json:"channels,omitempty"` + Meta TaskrouterV1WorkspaceReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_instance_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_instance_statistics.go new file mode 100644 index 000000000..d2068dc01 --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_instance_statistics.go @@ -0,0 +1,19 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// TaskrouterV1WorkspaceWorkerWorkerInstanceStatistics struct for TaskrouterV1WorkspaceWorkerWorkerInstanceStatistics +type TaskrouterV1WorkspaceWorkerWorkerInstanceStatistics struct { + AccountSid string `json:"account_sid,omitempty"` + Cumulative map[string]interface{} `json:"cumulative,omitempty"` + Url string `json:"url,omitempty"` + WorkerSid string `json:"worker_sid,omitempty"` + WorkspaceSid string `json:"workspace_sid,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_reservation.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_reservation.go new file mode 100644 index 000000000..39474493e --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_reservation.go @@ -0,0 +1,28 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// TaskrouterV1WorkspaceWorkerWorkerReservation struct for TaskrouterV1WorkspaceWorkerWorkerReservation +type TaskrouterV1WorkspaceWorkerWorkerReservation struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + ReservationStatus string `json:"reservation_status,omitempty"` + Sid string `json:"sid,omitempty"` + TaskSid string `json:"task_sid,omitempty"` + Url string `json:"url,omitempty"` + WorkerName string `json:"worker_name,omitempty"` + WorkerSid string `json:"worker_sid,omitempty"` + WorkspaceSid string `json:"workspace_sid,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_reservation_read_response.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_reservation_read_response.go new file mode 100644 index 000000000..62318f13e --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_reservation_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse struct for TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse +type TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse struct { + Meta TaskrouterV1WorkspaceReadResponseMeta `json:"meta,omitempty"` + Reservations []TaskrouterV1WorkspaceWorkerWorkerReservation `json:"reservations,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_statistics.go new file mode 100644 index 000000000..02b724c4a --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_statistics.go @@ -0,0 +1,19 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// TaskrouterV1WorkspaceWorkerWorkerStatistics struct for TaskrouterV1WorkspaceWorkerWorkerStatistics +type TaskrouterV1WorkspaceWorkerWorkerStatistics struct { + AccountSid string `json:"account_sid,omitempty"` + Cumulative map[string]interface{} `json:"cumulative,omitempty"` + Realtime map[string]interface{} `json:"realtime,omitempty"` + Url string `json:"url,omitempty"` + WorkspaceSid string `json:"workspace_sid,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_workers_cumulative_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_workers_cumulative_statistics.go new file mode 100644 index 000000000..8f85cea9b --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_workers_cumulative_statistics.go @@ -0,0 +1,29 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// TaskrouterV1WorkspaceWorkerWorkersCumulativeStatistics struct for TaskrouterV1WorkspaceWorkerWorkersCumulativeStatistics +type TaskrouterV1WorkspaceWorkerWorkersCumulativeStatistics struct { + AccountSid string `json:"account_sid,omitempty"` + ActivityDurations []map[string]interface{} `json:"activity_durations,omitempty"` + EndTime time.Time `json:"end_time,omitempty"` + ReservationsAccepted int32 `json:"reservations_accepted,omitempty"` + ReservationsCanceled int32 `json:"reservations_canceled,omitempty"` + ReservationsCreated int32 `json:"reservations_created,omitempty"` + ReservationsRejected int32 `json:"reservations_rejected,omitempty"` + ReservationsRescinded int32 `json:"reservations_rescinded,omitempty"` + ReservationsTimedOut int32 `json:"reservations_timed_out,omitempty"` + StartTime time.Time `json:"start_time,omitempty"` + Url string `json:"url,omitempty"` + WorkspaceSid string `json:"workspace_sid,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_workers_real_time_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_workers_real_time_statistics.go new file mode 100644 index 000000000..d0fe853d3 --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_workers_real_time_statistics.go @@ -0,0 +1,19 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// TaskrouterV1WorkspaceWorkerWorkersRealTimeStatistics struct for TaskrouterV1WorkspaceWorkerWorkersRealTimeStatistics +type TaskrouterV1WorkspaceWorkerWorkersRealTimeStatistics struct { + AccountSid string `json:"account_sid,omitempty"` + ActivityStatistics []map[string]interface{} `json:"activity_statistics,omitempty"` + TotalWorkers int32 `json:"total_workers,omitempty"` + Url string `json:"url,omitempty"` + WorkspaceSid string `json:"workspace_sid,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow.go new file mode 100644 index 000000000..b24a69ddc --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow.go @@ -0,0 +1,30 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// TaskrouterV1WorkspaceWorkflow struct for TaskrouterV1WorkspaceWorkflow +type TaskrouterV1WorkspaceWorkflow struct { + AccountSid string `json:"account_sid,omitempty"` + AssignmentCallbackUrl string `json:"assignment_callback_url,omitempty"` + Configuration string `json:"configuration,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + DocumentContentType string `json:"document_content_type,omitempty"` + FallbackAssignmentCallbackUrl string `json:"fallback_assignment_callback_url,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Sid string `json:"sid,omitempty"` + TaskReservationTimeout int32 `json:"task_reservation_timeout,omitempty"` + Url string `json:"url,omitempty"` + WorkspaceSid string `json:"workspace_sid,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_read_response.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_read_response.go new file mode 100644 index 000000000..ad784ff17 --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// TaskrouterV1WorkspaceWorkflowReadResponse struct for TaskrouterV1WorkspaceWorkflowReadResponse +type TaskrouterV1WorkspaceWorkflowReadResponse struct { + Meta TaskrouterV1WorkspaceReadResponseMeta `json:"meta,omitempty"` + Workflows []TaskrouterV1WorkspaceWorkflow `json:"workflows,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_workflow_cumulative_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_workflow_cumulative_statistics.go new file mode 100644 index 000000000..55c948ef3 --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_workflow_cumulative_statistics.go @@ -0,0 +1,39 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// TaskrouterV1WorkspaceWorkflowWorkflowCumulativeStatistics struct for TaskrouterV1WorkspaceWorkflowWorkflowCumulativeStatistics +type TaskrouterV1WorkspaceWorkflowWorkflowCumulativeStatistics struct { + AccountSid string `json:"account_sid,omitempty"` + AvgTaskAcceptanceTime int32 `json:"avg_task_acceptance_time,omitempty"` + EndTime time.Time `json:"end_time,omitempty"` + ReservationsAccepted int32 `json:"reservations_accepted,omitempty"` + ReservationsCanceled int32 `json:"reservations_canceled,omitempty"` + ReservationsCreated int32 `json:"reservations_created,omitempty"` + ReservationsRejected int32 `json:"reservations_rejected,omitempty"` + ReservationsRescinded int32 `json:"reservations_rescinded,omitempty"` + ReservationsTimedOut int32 `json:"reservations_timed_out,omitempty"` + SplitByWaitTime map[string]interface{} `json:"split_by_wait_time,omitempty"` + StartTime time.Time `json:"start_time,omitempty"` + TasksCanceled int32 `json:"tasks_canceled,omitempty"` + TasksCompleted int32 `json:"tasks_completed,omitempty"` + TasksDeleted int32 `json:"tasks_deleted,omitempty"` + TasksEntered int32 `json:"tasks_entered,omitempty"` + TasksMoved int32 `json:"tasks_moved,omitempty"` + TasksTimedOutInWorkflow int32 `json:"tasks_timed_out_in_workflow,omitempty"` + Url string `json:"url,omitempty"` + WaitDurationUntilAccepted map[string]interface{} `json:"wait_duration_until_accepted,omitempty"` + WaitDurationUntilCanceled map[string]interface{} `json:"wait_duration_until_canceled,omitempty"` + WorkflowSid string `json:"workflow_sid,omitempty"` + WorkspaceSid string `json:"workspace_sid,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_workflow_real_time_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_workflow_real_time_statistics.go new file mode 100644 index 000000000..8decb88a8 --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_workflow_real_time_statistics.go @@ -0,0 +1,23 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// TaskrouterV1WorkspaceWorkflowWorkflowRealTimeStatistics struct for TaskrouterV1WorkspaceWorkflowWorkflowRealTimeStatistics +type TaskrouterV1WorkspaceWorkflowWorkflowRealTimeStatistics struct { + AccountSid string `json:"account_sid,omitempty"` + LongestTaskWaitingAge int32 `json:"longest_task_waiting_age,omitempty"` + LongestTaskWaitingSid string `json:"longest_task_waiting_sid,omitempty"` + TasksByPriority map[string]interface{} `json:"tasks_by_priority,omitempty"` + TasksByStatus map[string]interface{} `json:"tasks_by_status,omitempty"` + TotalTasks int32 `json:"total_tasks,omitempty"` + Url string `json:"url,omitempty"` + WorkflowSid string `json:"workflow_sid,omitempty"` + WorkspaceSid string `json:"workspace_sid,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_workflow_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_workflow_statistics.go new file mode 100644 index 000000000..9df2dcb24 --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_workflow_statistics.go @@ -0,0 +1,20 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// TaskrouterV1WorkspaceWorkflowWorkflowStatistics struct for TaskrouterV1WorkspaceWorkflowWorkflowStatistics +type TaskrouterV1WorkspaceWorkflowWorkflowStatistics struct { + AccountSid string `json:"account_sid,omitempty"` + Cumulative map[string]interface{} `json:"cumulative,omitempty"` + Realtime map[string]interface{} `json:"realtime,omitempty"` + Url string `json:"url,omitempty"` + WorkflowSid string `json:"workflow_sid,omitempty"` + WorkspaceSid string `json:"workspace_sid,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workspace_cumulative_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workspace_cumulative_statistics.go new file mode 100644 index 000000000..960793188 --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workspace_cumulative_statistics.go @@ -0,0 +1,38 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// TaskrouterV1WorkspaceWorkspaceCumulativeStatistics struct for TaskrouterV1WorkspaceWorkspaceCumulativeStatistics +type TaskrouterV1WorkspaceWorkspaceCumulativeStatistics struct { + AccountSid string `json:"account_sid,omitempty"` + AvgTaskAcceptanceTime int32 `json:"avg_task_acceptance_time,omitempty"` + EndTime time.Time `json:"end_time,omitempty"` + ReservationsAccepted int32 `json:"reservations_accepted,omitempty"` + ReservationsCanceled int32 `json:"reservations_canceled,omitempty"` + ReservationsCreated int32 `json:"reservations_created,omitempty"` + ReservationsRejected int32 `json:"reservations_rejected,omitempty"` + ReservationsRescinded int32 `json:"reservations_rescinded,omitempty"` + ReservationsTimedOut int32 `json:"reservations_timed_out,omitempty"` + SplitByWaitTime map[string]interface{} `json:"split_by_wait_time,omitempty"` + StartTime time.Time `json:"start_time,omitempty"` + TasksCanceled int32 `json:"tasks_canceled,omitempty"` + TasksCompleted int32 `json:"tasks_completed,omitempty"` + TasksCreated int32 `json:"tasks_created,omitempty"` + TasksDeleted int32 `json:"tasks_deleted,omitempty"` + TasksMoved int32 `json:"tasks_moved,omitempty"` + TasksTimedOutInWorkflow int32 `json:"tasks_timed_out_in_workflow,omitempty"` + Url string `json:"url,omitempty"` + WaitDurationUntilAccepted map[string]interface{} `json:"wait_duration_until_accepted,omitempty"` + WaitDurationUntilCanceled map[string]interface{} `json:"wait_duration_until_canceled,omitempty"` + WorkspaceSid string `json:"workspace_sid,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workspace_real_time_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workspace_real_time_statistics.go new file mode 100644 index 000000000..444054307 --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workspace_real_time_statistics.go @@ -0,0 +1,24 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// TaskrouterV1WorkspaceWorkspaceRealTimeStatistics struct for TaskrouterV1WorkspaceWorkspaceRealTimeStatistics +type TaskrouterV1WorkspaceWorkspaceRealTimeStatistics struct { + AccountSid string `json:"account_sid,omitempty"` + ActivityStatistics []map[string]interface{} `json:"activity_statistics,omitempty"` + LongestTaskWaitingAge int32 `json:"longest_task_waiting_age,omitempty"` + LongestTaskWaitingSid string `json:"longest_task_waiting_sid,omitempty"` + TasksByPriority map[string]interface{} `json:"tasks_by_priority,omitempty"` + TasksByStatus map[string]interface{} `json:"tasks_by_status,omitempty"` + TotalTasks int32 `json:"total_tasks,omitempty"` + TotalWorkers int32 `json:"total_workers,omitempty"` + Url string `json:"url,omitempty"` + WorkspaceSid string `json:"workspace_sid,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workspace_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workspace_statistics.go new file mode 100644 index 000000000..489326b02 --- /dev/null +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workspace_statistics.go @@ -0,0 +1,19 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// TaskrouterV1WorkspaceWorkspaceStatistics struct for TaskrouterV1WorkspaceWorkspaceStatistics +type TaskrouterV1WorkspaceWorkspaceStatistics struct { + AccountSid string `json:"account_sid,omitempty"` + Cumulative map[string]interface{} `json:"cumulative,omitempty"` + Realtime map[string]interface{} `json:"realtime,omitempty"` + Url string `json:"url,omitempty"` + WorkspaceSid string `json:"workspace_sid,omitempty"` +} diff --git a/rest/taskrouter/v1/model_update_activity_request.go b/rest/taskrouter/v1/model_update_activity_request.go new file mode 100644 index 000000000..b3ad577f6 --- /dev/null +++ b/rest/taskrouter/v1/model_update_activity_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateActivityRequest struct for UpdateActivityRequest +type UpdateActivityRequest struct { + // A descriptive string that you create to describe the Activity resource. It can be up to 64 characters long. These names are used to calculate and expose statistics about Workers, and provide visibility into the state of each Worker. Examples of friendly names include: `on-call`, `break`, and `email`. + FriendlyName string `json:"FriendlyName,omitempty"` +} diff --git a/rest/taskrouter/v1/model_update_task_channel_request.go b/rest/taskrouter/v1/model_update_task_channel_request.go new file mode 100644 index 000000000..51a966689 --- /dev/null +++ b/rest/taskrouter/v1/model_update_task_channel_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateTaskChannelRequest struct for UpdateTaskChannelRequest +type UpdateTaskChannelRequest struct { + // Whether the TaskChannel should prioritize Workers that have been idle. If `true`, Workers that have been idle the longest are prioritized. + ChannelOptimizedRouting bool `json:"ChannelOptimizedRouting,omitempty"` + // A descriptive string that you create to describe the Task Channel. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` +} diff --git a/rest/taskrouter/v1/model_update_task_queue_request.go b/rest/taskrouter/v1/model_update_task_queue_request.go new file mode 100644 index 000000000..54aee15e5 --- /dev/null +++ b/rest/taskrouter/v1/model_update_task_queue_request.go @@ -0,0 +1,26 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateTaskQueueRequest struct for UpdateTaskQueueRequest +type UpdateTaskQueueRequest struct { + // The SID of the Activity to assign Workers when a task is assigned for them. + AssignmentActivitySid string `json:"AssignmentActivitySid,omitempty"` + // A descriptive string that you create to describe the TaskQueue. For example `Support-Tier 1`, `Sales`, or `Escalation`. + FriendlyName string `json:"FriendlyName,omitempty"` + // The maximum number of Workers to create reservations for the assignment of a task while in the queue. Maximum of 50. + MaxReservedWorkers int32 `json:"MaxReservedWorkers,omitempty"` + // The SID of the Activity to assign Workers when a task is reserved for them. + ReservationActivitySid string `json:"ReservationActivitySid,omitempty"` + // A string describing the Worker selection criteria for any Tasks that enter the TaskQueue. For example '\"language\" == \"spanish\"' If no TargetWorkers parameter is provided, Tasks will wait in the queue until they are either deleted or moved to another queue. Additional examples on how to describing Worker selection criteria below. + TargetWorkers string `json:"TargetWorkers,omitempty"` + // How Tasks will be assigned to Workers. Can be: `FIFO` or `LIFO` and the default is `FIFO`. Use `FIFO` to assign the oldest task first and `LIFO` to assign the most recent task first. For more information, see [Queue Ordering](https://www.twilio.com/docs/taskrouter/queue-ordering-last-first-out-lifo). + TaskOrder string `json:"TaskOrder,omitempty"` +} diff --git a/rest/taskrouter/v1/model_update_task_request.go b/rest/taskrouter/v1/model_update_task_request.go new file mode 100644 index 000000000..c0406338d --- /dev/null +++ b/rest/taskrouter/v1/model_update_task_request.go @@ -0,0 +1,24 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateTaskRequest struct for UpdateTaskRequest +type UpdateTaskRequest struct { + // The new status of the task. Can be: `canceled`, to cancel a Task that is currently `pending` or `reserved`; `wrapping`, to move the Task to wrapup state; or `completed`, to move a Task to the completed state. + AssignmentStatus string `json:"AssignmentStatus,omitempty"` + // The JSON string that describes the custom attributes of the task. + Attributes string `json:"Attributes,omitempty"` + // The Task's new priority value. When supplied, the Task takes on the specified priority unless it matches a Workflow Target with a Priority set. Value can be 0 to 2^31^ (2,147,483,647). + Priority int32 `json:"Priority,omitempty"` + // The reason that the Task was canceled or completed. This parameter is required only if the Task is canceled or completed. Setting this value queues the task for deletion and logs the reason. + Reason string `json:"Reason,omitempty"` + // When MultiTasking is enabled, specify the TaskChannel with the task to update. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. + TaskChannel string `json:"TaskChannel,omitempty"` +} diff --git a/rest/taskrouter/v1/model_update_task_reservation_request.go b/rest/taskrouter/v1/model_update_task_reservation_request.go new file mode 100644 index 000000000..26e2edb11 --- /dev/null +++ b/rest/taskrouter/v1/model_update_task_reservation_request.go @@ -0,0 +1,120 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateTaskReservationRequest struct for UpdateTaskReservationRequest +type UpdateTaskReservationRequest struct { + // Whether to play a notification beep when the participant joins or when to play a beep. Can be: `true`, `false`, `onEnter`, or `onExit`. The default value is `true`. + Beep string `json:"Beep,omitempty"` + // Whether to play a notification beep when the customer joins. + BeepOnCustomerEntrance bool `json:"BeepOnCustomerEntrance,omitempty"` + // Whether to accept a reservation when executing a Call instruction. + CallAccept bool `json:"CallAccept,omitempty"` + // The Caller ID of the outbound call when executing a Call instruction. + CallFrom string `json:"CallFrom,omitempty"` + // Whether to record both legs of a call when executing a Call instruction or which leg to record. + CallRecord string `json:"CallRecord,omitempty"` + // The URL to call for the completed call event when executing a Call instruction. + CallStatusCallbackUrl string `json:"CallStatusCallbackUrl,omitempty"` + // Timeout for call when executing a Call instruction. + CallTimeout int32 `json:"CallTimeout,omitempty"` + // The Contact URI of the worker when executing a Call instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the [E.164](https://www.twilio.com/docs/glossary/what-e164) formatted phone number, depending on the destination. + CallTo string `json:"CallTo,omitempty"` + // TwiML URI executed on answering the worker's leg as a result of the Call instruction. + CallUrl string `json:"CallUrl,omitempty"` + // Whether to record the conference the participant is joining or when to record the conference. Can be: `true`, `false`, `record-from-start`, and `do-not-record`. The default value is `false`. + ConferenceRecord string `json:"ConferenceRecord,omitempty"` + // The URL we should call using the `conference_recording_status_callback_method` when the conference recording is available. + ConferenceRecordingStatusCallback string `json:"ConferenceRecordingStatusCallback,omitempty"` + // The HTTP method we should use to call `conference_recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. + ConferenceRecordingStatusCallbackMethod string `json:"ConferenceRecordingStatusCallbackMethod,omitempty"` + // 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. + ConferenceStatusCallback string `json:"ConferenceStatusCallback,omitempty"` + // The conference status events that we will send to `conference_status_callback`. Can be: `start`, `end`, `join`, `leave`, `mute`, `hold`, `speaker`. + ConferenceStatusCallbackEvent []string `json:"ConferenceStatusCallbackEvent,omitempty"` + // The HTTP method we should use to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. + ConferenceStatusCallbackMethod string `json:"ConferenceStatusCallbackMethod,omitempty"` + // How to trim the leading and trailing silence from your recorded conference audio files. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. + ConferenceTrim string `json:"ConferenceTrim,omitempty"` + // The Caller ID of the call to the worker when executing a Dequeue instruction. + DequeueFrom string `json:"DequeueFrom,omitempty"` + // The SID of the Activity resource to start after executing a Dequeue instruction. + DequeuePostWorkActivitySid string `json:"DequeuePostWorkActivitySid,omitempty"` + // Whether to record both legs of a call when executing a Dequeue instruction or which leg to record. + DequeueRecord string `json:"DequeueRecord,omitempty"` + // The Call progress events sent via webhooks as a result of a Dequeue instruction. + DequeueStatusCallbackEvent []string `json:"DequeueStatusCallbackEvent,omitempty"` + // The Callback URL for completed call event when executing a Dequeue instruction. + DequeueStatusCallbackUrl string `json:"DequeueStatusCallbackUrl,omitempty"` + // Timeout for call when executing a Dequeue instruction. + DequeueTimeout int32 `json:"DequeueTimeout,omitempty"` + // The Contact URI of the worker when executing a Dequeue instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the [E.164](https://www.twilio.com/docs/glossary/what-e164) formatted phone number, depending on the destination. + DequeueTo string `json:"DequeueTo,omitempty"` + // Whether to allow an agent to hear the state of the outbound call, including ringing or disconnect messages. The default is `true`. + EarlyMedia bool `json:"EarlyMedia,omitempty"` + // Whether to end the conference when the customer leaves. + EndConferenceOnCustomerExit bool `json:"EndConferenceOnCustomerExit,omitempty"` + // Whether to end the conference when the agent leaves. + EndConferenceOnExit bool `json:"EndConferenceOnExit,omitempty"` + // The Caller ID of the call to the worker when executing a Conference instruction. + From string `json:"From,omitempty"` + // The assignment instruction for reservation. + Instruction string `json:"Instruction,omitempty"` + // The maximum number of participants in the conference. Can be a positive integer from `2` to `250`. The default value is `250`. + MaxParticipants int32 `json:"MaxParticipants,omitempty"` + // Whether the agent is muted in the conference. The default is `false`. + Muted bool `json:"Muted,omitempty"` + // The new worker activity SID after executing a Conference instruction. + PostWorkActivitySid string `json:"PostWorkActivitySid,omitempty"` + // Whether to record the participant and their conferences, including the time between conferences. The default is `false`. + Record bool `json:"Record,omitempty"` + // The recording channels for the final recording. Can be: `mono` or `dual` and the default is `mono`. + RecordingChannels string `json:"RecordingChannels,omitempty"` + // The URL that we should call using the `recording_status_callback_method` when the recording status changes. + RecordingStatusCallback string `json:"RecordingStatusCallback,omitempty"` + // The HTTP method we should use when we call `recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. + RecordingStatusCallbackMethod string `json:"RecordingStatusCallbackMethod,omitempty"` + // Whether the reservation should be accepted when executing a Redirect instruction. + RedirectAccept bool `json:"RedirectAccept,omitempty"` + // The Call SID of the call parked in the queue when executing a Redirect instruction. + RedirectCallSid string `json:"RedirectCallSid,omitempty"` + // TwiML URI to redirect the call to when executing the Redirect instruction. + RedirectUrl string `json:"RedirectUrl,omitempty"` + // 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`. + Region string `json:"Region,omitempty"` + // The new status of the reservation. Can be: `pending`, `accepted`, `rejected`, or `timeout`. + ReservationStatus string `json:"ReservationStatus,omitempty"` + // The SIP password for authentication. + SipAuthPassword string `json:"SipAuthPassword,omitempty"` + // The SIP username used for authentication. + SipAuthUsername string `json:"SipAuthUsername,omitempty"` + // Whether to start the conference when the participant joins, if it has not already started. 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. + StartConferenceOnEnter bool `json:"StartConferenceOnEnter,omitempty"` + // The URL we should call using the `status_callback_method` to send status information to your application. + StatusCallback string `json:"StatusCallback,omitempty"` + // The call progress events that we will send to `status_callback`. Can be: `initiated`, `ringing`, `answered`, or `completed`. + StatusCallbackEvent []string `json:"StatusCallbackEvent,omitempty"` + // The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`. + StatusCallbackMethod string `json:"StatusCallbackMethod,omitempty"` + // The Supervisor SID/URI when executing the Supervise instruction. + Supervisor string `json:"Supervisor,omitempty"` + // The Supervisor mode when executing the Supervise instruction. + SupervisorMode string `json:"SupervisorMode,omitempty"` + // Timeout for call when executing a Conference instruction. + Timeout int32 `json:"Timeout,omitempty"` + // The Contact URI of the worker when executing a Conference instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the [E.164](https://www.twilio.com/docs/glossary/what-e164) formatted phone number, depending on the destination. + To string `json:"To,omitempty"` + // 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. + WaitMethod string `json:"WaitMethod,omitempty"` + // 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). + WaitUrl string `json:"WaitUrl,omitempty"` + // The new worker activity SID if rejecting a reservation. + WorkerActivitySid string `json:"WorkerActivitySid,omitempty"` +} diff --git a/rest/taskrouter/v1/model_update_worker_channel_request.go b/rest/taskrouter/v1/model_update_worker_channel_request.go new file mode 100644 index 000000000..9362c2441 --- /dev/null +++ b/rest/taskrouter/v1/model_update_worker_channel_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateWorkerChannelRequest struct for UpdateWorkerChannelRequest +type UpdateWorkerChannelRequest struct { + // Whether the WorkerChannel is available. Set to `false` to prevent the Worker from receiving any new Tasks of this TaskChannel type. + Available bool `json:"Available,omitempty"` + // The total number of Tasks that the Worker should handle for the TaskChannel type. TaskRouter creates reservations for Tasks of this TaskChannel type up to the specified capacity. If the capacity is 0, no new reservations will be created. + Capacity int32 `json:"Capacity,omitempty"` +} diff --git a/rest/taskrouter/v1/model_update_worker_request.go b/rest/taskrouter/v1/model_update_worker_request.go new file mode 100644 index 000000000..9ab0c477d --- /dev/null +++ b/rest/taskrouter/v1/model_update_worker_request.go @@ -0,0 +1,22 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateWorkerRequest struct for UpdateWorkerRequest +type UpdateWorkerRequest struct { + // The SID of a valid Activity that will describe the Worker's initial state. See [Activities](https://www.twilio.com/docs/taskrouter/api/activity) for more information. + ActivitySid string `json:"ActivitySid,omitempty"` + // The JSON string that describes the Worker. For example: `{ \"email\": \"Bob@example.com\", \"phone\": \"+5095551234\" }`. This data is passed to the `assignment_callback_url` when TaskRouter assigns a Task to the Worker. Defaults to {}. + Attributes string `json:"Attributes,omitempty"` + // A descriptive string that you create to describe the Worker. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // Whether to reject pending reservations. + RejectPendingReservations bool `json:"RejectPendingReservations,omitempty"` +} diff --git a/rest/taskrouter/v1/model_update_worker_reservation_request.go b/rest/taskrouter/v1/model_update_worker_reservation_request.go new file mode 100644 index 000000000..038ca4d2d --- /dev/null +++ b/rest/taskrouter/v1/model_update_worker_reservation_request.go @@ -0,0 +1,116 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateWorkerReservationRequest struct for UpdateWorkerReservationRequest +type UpdateWorkerReservationRequest struct { + // Whether to play a notification beep when the participant joins or when to play a beep. Can be: `true`, `false`, `onEnter`, or `onExit`. The default value is `true`. + Beep string `json:"Beep,omitempty"` + // Whether to play a notification beep when the customer joins. + BeepOnCustomerEntrance bool `json:"BeepOnCustomerEntrance,omitempty"` + // Whether to accept a reservation when executing a Call instruction. + CallAccept bool `json:"CallAccept,omitempty"` + // The Caller ID of the outbound call when executing a Call instruction. + CallFrom string `json:"CallFrom,omitempty"` + // Whether to record both legs of a call when executing a Call instruction. + CallRecord string `json:"CallRecord,omitempty"` + // The URL to call for the completed call event when executing a Call instruction. + CallStatusCallbackUrl string `json:"CallStatusCallbackUrl,omitempty"` + // The timeout for a call when executing a Call instruction. + CallTimeout int32 `json:"CallTimeout,omitempty"` + // The contact URI of the worker when executing a Call instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the [E.164](https://www.twilio.com/docs/glossary/what-e164) formatted phone number, depending on the destination. + CallTo string `json:"CallTo,omitempty"` + // TwiML URI executed on answering the worker's leg as a result of the Call instruction. + CallUrl string `json:"CallUrl,omitempty"` + // Whether to record the conference the participant is joining or when to record the conference. Can be: `true`, `false`, `record-from-start`, and `do-not-record`. The default value is `false`. + ConferenceRecord string `json:"ConferenceRecord,omitempty"` + // The URL we should call using the `conference_recording_status_callback_method` when the conference recording is available. + ConferenceRecordingStatusCallback string `json:"ConferenceRecordingStatusCallback,omitempty"` + // The HTTP method we should use to call `conference_recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. + ConferenceRecordingStatusCallbackMethod string `json:"ConferenceRecordingStatusCallbackMethod,omitempty"` + // 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. + ConferenceStatusCallback string `json:"ConferenceStatusCallback,omitempty"` + // The conference status events that we will send to `conference_status_callback`. Can be: `start`, `end`, `join`, `leave`, `mute`, `hold`, `speaker`. + ConferenceStatusCallbackEvent []string `json:"ConferenceStatusCallbackEvent,omitempty"` + // The HTTP method we should use to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. + ConferenceStatusCallbackMethod string `json:"ConferenceStatusCallbackMethod,omitempty"` + // Whether to trim leading and trailing silence from your recorded conference audio files. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. + ConferenceTrim string `json:"ConferenceTrim,omitempty"` + // The caller ID of the call to the worker when executing a Dequeue instruction. + DequeueFrom string `json:"DequeueFrom,omitempty"` + // The SID of the Activity resource to start after executing a Dequeue instruction. + DequeuePostWorkActivitySid string `json:"DequeuePostWorkActivitySid,omitempty"` + // Whether to record both legs of a call when executing a Dequeue instruction or which leg to record. + DequeueRecord string `json:"DequeueRecord,omitempty"` + // The call progress events sent via webhooks as a result of a Dequeue instruction. + DequeueStatusCallbackEvent []string `json:"DequeueStatusCallbackEvent,omitempty"` + // The callback URL for completed call event when executing a Dequeue instruction. + DequeueStatusCallbackUrl string `json:"DequeueStatusCallbackUrl,omitempty"` + // The timeout for call when executing a Dequeue instruction. + DequeueTimeout int32 `json:"DequeueTimeout,omitempty"` + // The contact URI of the worker when executing a Dequeue instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the [E.164](https://www.twilio.com/docs/glossary/what-e164) formatted phone number, depending on the destination. + DequeueTo string `json:"DequeueTo,omitempty"` + // Whether to allow an agent to hear the state of the outbound call, including ringing or disconnect messages. The default is `true`. + EarlyMedia bool `json:"EarlyMedia,omitempty"` + // Whether to end the conference when the customer leaves. + EndConferenceOnCustomerExit bool `json:"EndConferenceOnCustomerExit,omitempty"` + // Whether to end the conference when the agent leaves. + EndConferenceOnExit bool `json:"EndConferenceOnExit,omitempty"` + // The caller ID of the call to the worker when executing a Conference instruction. + From string `json:"From,omitempty"` + // The assignment instruction for the reservation. + Instruction string `json:"Instruction,omitempty"` + // The maximum number of participants allowed in the conference. Can be a positive integer from `2` to `250`. The default value is `250`. + MaxParticipants int32 `json:"MaxParticipants,omitempty"` + // Whether the agent is muted in the conference. Defaults to `false`. + Muted bool `json:"Muted,omitempty"` + // The new worker activity SID after executing a Conference instruction. + PostWorkActivitySid string `json:"PostWorkActivitySid,omitempty"` + // Whether to record the participant and their conferences, including the time between conferences. Can be `true` or `false` and the default is `false`. + Record bool `json:"Record,omitempty"` + // The recording channels for the final recording. Can be: `mono` or `dual` and the default is `mono`. + RecordingChannels string `json:"RecordingChannels,omitempty"` + // The URL that we should call using the `recording_status_callback_method` when the recording status changes. + RecordingStatusCallback string `json:"RecordingStatusCallback,omitempty"` + // The HTTP method we should use when we call `recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. + RecordingStatusCallbackMethod string `json:"RecordingStatusCallbackMethod,omitempty"` + // Whether the reservation should be accepted when executing a Redirect instruction. + RedirectAccept bool `json:"RedirectAccept,omitempty"` + // The Call SID of the call parked in the queue when executing a Redirect instruction. + RedirectCallSid string `json:"RedirectCallSid,omitempty"` + // TwiML URI to redirect the call to when executing the Redirect instruction. + RedirectUrl string `json:"RedirectUrl,omitempty"` + // 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`. + Region string `json:"Region,omitempty"` + // The new status of the reservation. Can be: `pending`, `accepted`, `rejected`, `timeout`, `canceled`, or `rescinded`. + ReservationStatus string `json:"ReservationStatus,omitempty"` + // The SIP password for authentication. + SipAuthPassword string `json:"SipAuthPassword,omitempty"` + // The SIP username used for authentication. + SipAuthUsername string `json:"SipAuthUsername,omitempty"` + // 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. + StartConferenceOnEnter bool `json:"StartConferenceOnEnter,omitempty"` + // The URL we should call using the `status_callback_method` to send status information to your application. + StatusCallback string `json:"StatusCallback,omitempty"` + // The call progress events that we will send to `status_callback`. Can be: `initiated`, `ringing`, `answered`, or `completed`. + StatusCallbackEvent []string `json:"StatusCallbackEvent,omitempty"` + // The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`. + StatusCallbackMethod string `json:"StatusCallbackMethod,omitempty"` + // The timeout for a call when executing a Conference instruction. + Timeout int32 `json:"Timeout,omitempty"` + // The Contact URI of the worker when executing a Conference instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the [E.164](https://www.twilio.com/docs/glossary/what-e164) formatted phone number, depending on the destination. + To string `json:"To,omitempty"` + // 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. + WaitMethod string `json:"WaitMethod,omitempty"` + // 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). + WaitUrl string `json:"WaitUrl,omitempty"` + // The new worker activity SID if rejecting a reservation. + WorkerActivitySid string `json:"WorkerActivitySid,omitempty"` +} diff --git a/rest/taskrouter/v1/model_update_workflow_request.go b/rest/taskrouter/v1/model_update_workflow_request.go new file mode 100644 index 000000000..9f35a3bec --- /dev/null +++ b/rest/taskrouter/v1/model_update_workflow_request.go @@ -0,0 +1,26 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateWorkflowRequest struct for UpdateWorkflowRequest +type UpdateWorkflowRequest struct { + // The URL from your application that will process task assignment events. See [Handling Task Assignment Callback](https://www.twilio.com/docs/taskrouter/handle-assignment-callbacks) for more details. + AssignmentCallbackUrl string `json:"AssignmentCallbackUrl,omitempty"` + // A JSON string that contains the rules to apply to the Workflow. See [Configuring Workflows](https://www.twilio.com/docs/taskrouter/workflow-configuration) for more information. + Configuration string `json:"Configuration,omitempty"` + // The URL that we should call when a call to the `assignment_callback_url` fails. + FallbackAssignmentCallbackUrl string `json:"FallbackAssignmentCallbackUrl,omitempty"` + // A descriptive string that you create to describe the Workflow resource. For example, `Inbound Call Workflow` or `2014 Outbound Campaign`. + FriendlyName string `json:"FriendlyName,omitempty"` + // Whether or not to re-evaluate Tasks. The default is `false`, which means Tasks in the Workflow will not be processed through the assignment loop again. + ReEvaluateTasks string `json:"ReEvaluateTasks,omitempty"` + // How long TaskRouter will wait for a confirmation response from your application after it assigns a Task to a Worker. Can be up to `86,400` (24 hours) and the default is `120`. + TaskReservationTimeout int32 `json:"TaskReservationTimeout,omitempty"` +} diff --git a/rest/taskrouter/v1/model_update_workspace_request.go b/rest/taskrouter/v1/model_update_workspace_request.go new file mode 100644 index 000000000..a74cebafc --- /dev/null +++ b/rest/taskrouter/v1/model_update_workspace_request.go @@ -0,0 +1,28 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateWorkspaceRequest struct for UpdateWorkspaceRequest +type UpdateWorkspaceRequest struct { + // The SID of the Activity that will be used when new Workers are created in the Workspace. + DefaultActivitySid string `json:"DefaultActivitySid,omitempty"` + // The URL we should call when an event occurs. See [Workspace Events](https://www.twilio.com/docs/taskrouter/api/event) for more information. + EventCallbackUrl string `json:"EventCallbackUrl,omitempty"` + // The list of Workspace events for which to call event_callback_url. For example if `EventsFilter=task.created,task.canceled,worker.activity.update`, then TaskRouter will call event_callback_url only when a task is created, canceled, or a Worker activity is updated. + EventsFilter string `json:"EventsFilter,omitempty"` + // A descriptive string that you create to describe the Workspace resource. For example: `Sales Call Center` or `Customer Support Team`. + FriendlyName string `json:"FriendlyName,omitempty"` + // Whether to enable multi-tasking. Can be: `true` to enable multi-tasking, or `false` to disable it. The default is `false`. Multi-tasking allows Workers to handle multiple Tasks simultaneously. When enabled (`true`), each Worker can receive parallel reservations up to the per-channel maximums defined in the Workers section. Otherwise, each Worker will only receive a new reservation when the previous task is completed. Learn more at [Multitasking][https://www.twilio.com/docs/taskrouter/multitasking]. + MultiTaskEnabled bool `json:"MultiTaskEnabled,omitempty"` + // The type of TaskQueue to prioritize when Workers are receiving Tasks from both types of TaskQueues. Can be: `LIFO` or `FIFO` and the default is `FIFO`. For more information, see [Queue Ordering][https://www.twilio.com/docs/taskrouter/queue-ordering-last-first-out-lifo]. + PrioritizeQueueOrder string `json:"PrioritizeQueueOrder,omitempty"` + // The SID of the Activity that will be assigned to a Worker when a Task reservation times out without a response. + TimeoutActivitySid string `json:"TimeoutActivitySid,omitempty"` +} diff --git a/rest/taskrouter/v1/response.go b/rest/taskrouter/v1/response.go new file mode 100644 index 000000000..14d13b3ea --- /dev/null +++ b/rest/taskrouter/v1/response.go @@ -0,0 +1,47 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// Response returns a new APIResponse object. +func Response(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// ResponseWithError returns a new APIResponse object with the provided error message. +func ResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/rest/trunking/v1/.openapi-generator-ignore b/rest/trunking/v1/.openapi-generator-ignore new file mode 100644 index 000000000..7484ee590 --- /dev/null +++ b/rest/trunking/v1/.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/rest/trunking/v1/.openapi-generator/VERSION b/rest/trunking/v1/.openapi-generator/VERSION new file mode 100644 index 000000000..ecedc98d1 --- /dev/null +++ b/rest/trunking/v1/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.3.1 \ No newline at end of file diff --git a/rest/trunking/v1/README.md b/rest/trunking/v1/README.md new file mode 100644 index 000000000..da306fa00 --- /dev/null +++ b/rest/trunking/v1/README.md @@ -0,0 +1,106 @@ +# Go API client for openapi + +This is the public Twilio REST API. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 5.15.0 +- Package version: 1.0.0 +- Build package: com.twilio.oai.TwilioGoGenerator +For more information, please visit [https://support.twilio.com](https://support.twilio.com) + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import "./openapi" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**CreateCredentialList**](docs/DefaultApi.md#createcredentiallist) | **Post** /v1/Trunks/{TrunkSid}/CredentialLists | +*DefaultApi* | [**CreateIpAccessControlList**](docs/DefaultApi.md#createipaccesscontrollist) | **Post** /v1/Trunks/{TrunkSid}/IpAccessControlLists | +*DefaultApi* | [**CreateOriginationUrl**](docs/DefaultApi.md#createoriginationurl) | **Post** /v1/Trunks/{TrunkSid}/OriginationUrls | +*DefaultApi* | [**CreatePhoneNumber**](docs/DefaultApi.md#createphonenumber) | **Post** /v1/Trunks/{TrunkSid}/PhoneNumbers | +*DefaultApi* | [**CreateTrunk**](docs/DefaultApi.md#createtrunk) | **Post** /v1/Trunks | +*DefaultApi* | [**DeleteCredentialList**](docs/DefaultApi.md#deletecredentiallist) | **Delete** /v1/Trunks/{TrunkSid}/CredentialLists/{Sid} | +*DefaultApi* | [**DeleteIpAccessControlList**](docs/DefaultApi.md#deleteipaccesscontrollist) | **Delete** /v1/Trunks/{TrunkSid}/IpAccessControlLists/{Sid} | +*DefaultApi* | [**DeleteOriginationUrl**](docs/DefaultApi.md#deleteoriginationurl) | **Delete** /v1/Trunks/{TrunkSid}/OriginationUrls/{Sid} | +*DefaultApi* | [**DeletePhoneNumber**](docs/DefaultApi.md#deletephonenumber) | **Delete** /v1/Trunks/{TrunkSid}/PhoneNumbers/{Sid} | +*DefaultApi* | [**DeleteTrunk**](docs/DefaultApi.md#deletetrunk) | **Delete** /v1/Trunks/{Sid} | +*DefaultApi* | [**FetchCredentialList**](docs/DefaultApi.md#fetchcredentiallist) | **Get** /v1/Trunks/{TrunkSid}/CredentialLists/{Sid} | +*DefaultApi* | [**FetchIpAccessControlList**](docs/DefaultApi.md#fetchipaccesscontrollist) | **Get** /v1/Trunks/{TrunkSid}/IpAccessControlLists/{Sid} | +*DefaultApi* | [**FetchOriginationUrl**](docs/DefaultApi.md#fetchoriginationurl) | **Get** /v1/Trunks/{TrunkSid}/OriginationUrls/{Sid} | +*DefaultApi* | [**FetchPhoneNumber**](docs/DefaultApi.md#fetchphonenumber) | **Get** /v1/Trunks/{TrunkSid}/PhoneNumbers/{Sid} | +*DefaultApi* | [**FetchRecording**](docs/DefaultApi.md#fetchrecording) | **Get** /v1/Trunks/{TrunkSid}/Recording | +*DefaultApi* | [**FetchTrunk**](docs/DefaultApi.md#fetchtrunk) | **Get** /v1/Trunks/{Sid} | +*DefaultApi* | [**ListCredentialList**](docs/DefaultApi.md#listcredentiallist) | **Get** /v1/Trunks/{TrunkSid}/CredentialLists | +*DefaultApi* | [**ListIpAccessControlList**](docs/DefaultApi.md#listipaccesscontrollist) | **Get** /v1/Trunks/{TrunkSid}/IpAccessControlLists | +*DefaultApi* | [**ListOriginationUrl**](docs/DefaultApi.md#listoriginationurl) | **Get** /v1/Trunks/{TrunkSid}/OriginationUrls | +*DefaultApi* | [**ListPhoneNumber**](docs/DefaultApi.md#listphonenumber) | **Get** /v1/Trunks/{TrunkSid}/PhoneNumbers | +*DefaultApi* | [**ListTrunk**](docs/DefaultApi.md#listtrunk) | **Get** /v1/Trunks | +*DefaultApi* | [**UpdateOriginationUrl**](docs/DefaultApi.md#updateoriginationurl) | **Post** /v1/Trunks/{TrunkSid}/OriginationUrls/{Sid} | +*DefaultApi* | [**UpdateRecording**](docs/DefaultApi.md#updaterecording) | **Post** /v1/Trunks/{TrunkSid}/Recording | +*DefaultApi* | [**UpdateTrunk**](docs/DefaultApi.md#updatetrunk) | **Post** /v1/Trunks/{Sid} | + + +## Documentation For Models + + - [CreateCredentialListRequest](docs/CreateCredentialListRequest.md) + - [CreateIpAccessControlListRequest](docs/CreateIpAccessControlListRequest.md) + - [CreateOriginationUrlRequest](docs/CreateOriginationUrlRequest.md) + - [CreatePhoneNumberRequest](docs/CreatePhoneNumberRequest.md) + - [CreateTrunkRequest](docs/CreateTrunkRequest.md) + - [TrunkingV1Trunk](docs/TrunkingV1Trunk.md) + - [TrunkingV1TrunkCredentialList](docs/TrunkingV1TrunkCredentialList.md) + - [TrunkingV1TrunkCredentialListReadResponse](docs/TrunkingV1TrunkCredentialListReadResponse.md) + - [TrunkingV1TrunkIpAccessControlList](docs/TrunkingV1TrunkIpAccessControlList.md) + - [TrunkingV1TrunkIpAccessControlListReadResponse](docs/TrunkingV1TrunkIpAccessControlListReadResponse.md) + - [TrunkingV1TrunkOriginationUrl](docs/TrunkingV1TrunkOriginationUrl.md) + - [TrunkingV1TrunkOriginationUrlReadResponse](docs/TrunkingV1TrunkOriginationUrlReadResponse.md) + - [TrunkingV1TrunkPhoneNumber](docs/TrunkingV1TrunkPhoneNumber.md) + - [TrunkingV1TrunkPhoneNumberReadResponse](docs/TrunkingV1TrunkPhoneNumberReadResponse.md) + - [TrunkingV1TrunkReadResponse](docs/TrunkingV1TrunkReadResponse.md) + - [TrunkingV1TrunkReadResponseMeta](docs/TrunkingV1TrunkReadResponseMeta.md) + - [TrunkingV1TrunkRecording](docs/TrunkingV1TrunkRecording.md) + - [UpdateOriginationUrlRequest](docs/UpdateOriginationUrlRequest.md) + - [UpdateRecordingRequest](docs/UpdateRecordingRequest.md) + - [UpdateTrunkRequest](docs/UpdateTrunkRequest.md) + + +## Documentation For Authorization + + + +## accountSid_authToken + +- **Type**: HTTP basic authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ + UserName: "username", + Password: "password", +}) +r, err := client.Service.Operation(auth, args) +``` + + +## Author + +support@twilio.com + diff --git a/rest/trunking/v1/api_default.go b/rest/trunking/v1/api_default.go new file mode 100644 index 000000000..a01409550 --- /dev/null +++ b/rest/trunking/v1/api_default.go @@ -0,0 +1,937 @@ +/* + * Twilio - Trunking + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "" +) + +type DefaultApiService struct { + baseURL string + client *twilio.Client +} + +func NewDefaultApiService(client *twilio.Client) *DefaultApiService { + return &DefaultApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} +// CreateCredentialListParams Optional parameters for the method 'CreateCredentialList' +type CreateCredentialListParams struct { + CredentialListSid *string `json:"CredentialListSid,omitempty"` +} + +/* +CreateCredentialList Method for CreateCredentialList + * @param trunkSid The SID of the Trunk to associate the credential list with. + * @param optional nil or *CreateCredentialListOpts - Optional Parameters: + * @param "CredentialListSid" (string) - The SID of the [Credential List](https://www.twilio.com/docs/voice/sip/api/sip-credentiallist-resource) that you want to associate with the trunk. Once associated, we will authenticate access to the trunk against this list. +@return TrunkingV1TrunkCredentialList +*/ +func (c *DefaultApiService) CreateCredentialList(trunkSid string, params *CreateCredentialListParams) (*TrunkingV1TrunkCredentialList, error) { + path := "/v1/Trunks/{TrunkSid}/CredentialLists" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CredentialListSid != nil { + data.Set("CredentialListSid", *params.CredentialListSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TrunkingV1TrunkCredentialList{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateIpAccessControlListParams Optional parameters for the method 'CreateIpAccessControlList' +type CreateIpAccessControlListParams struct { + IpAccessControlListSid *string `json:"IpAccessControlListSid,omitempty"` +} + +/* +CreateIpAccessControlList Method for CreateIpAccessControlList +Associate an IP Access Control List with a Trunk + * @param trunkSid The SID of the Trunk to associate the IP Access Control List with. + * @param optional nil or *CreateIpAccessControlListOpts - Optional Parameters: + * @param "IpAccessControlListSid" (string) - The SID of the [IP Access Control List](https://www.twilio.com/docs/voice/sip/api/sip-ipaccesscontrollist-resource) that you want to associate with the trunk. +@return TrunkingV1TrunkIpAccessControlList +*/ +func (c *DefaultApiService) CreateIpAccessControlList(trunkSid string, params *CreateIpAccessControlListParams) (*TrunkingV1TrunkIpAccessControlList, error) { + path := "/v1/Trunks/{TrunkSid}/IpAccessControlLists" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.IpAccessControlListSid != nil { + data.Set("IpAccessControlListSid", *params.IpAccessControlListSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TrunkingV1TrunkIpAccessControlList{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateOriginationUrlParams Optional parameters for the method 'CreateOriginationUrl' +type CreateOriginationUrlParams struct { + Enabled *bool `json:"Enabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Priority *int32 `json:"Priority,omitempty"` + SipUrl *string `json:"SipUrl,omitempty"` + Weight *int32 `json:"Weight,omitempty"` +} + +/* +CreateOriginationUrl Method for CreateOriginationUrl + * @param trunkSid The SID of the Trunk to associate the resource with. + * @param optional nil or *CreateOriginationUrlOpts - Optional Parameters: + * @param "Enabled" (bool) - Whether the URL is enabled. The default is `true`. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. + * @param "Priority" (int32) - The relative importance of the URI. Can be an integer from 0 to 65535, inclusive, and the default is 10. The lowest number represents the most important URI. + * @param "SipUrl" (string) - The SIP address you want Twilio to route your Origination calls to. This must be a `sip:` schema. + * @param "Weight" (int32) - The value that determines the relative share of the load the URI should receive compared to other URIs with the same priority. Can be an integer from 1 to 65535, inclusive, and the default is 10. URLs with higher values receive more load than those with lower ones with the same priority. +@return TrunkingV1TrunkOriginationUrl +*/ +func (c *DefaultApiService) CreateOriginationUrl(trunkSid string, params *CreateOriginationUrlParams) (*TrunkingV1TrunkOriginationUrl, error) { + path := "/v1/Trunks/{TrunkSid}/OriginationUrls" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Enabled != nil { + data.Set("Enabled", string(*params.Enabled)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Priority != nil { + data.Set("Priority", string(*params.Priority)) + } + if params != nil && params.SipUrl != nil { + data.Set("SipUrl", *params.SipUrl) + } + if params != nil && params.Weight != nil { + data.Set("Weight", string(*params.Weight)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TrunkingV1TrunkOriginationUrl{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreatePhoneNumberParams Optional parameters for the method 'CreatePhoneNumber' +type CreatePhoneNumberParams struct { + PhoneNumberSid *string `json:"PhoneNumberSid,omitempty"` +} + +/* +CreatePhoneNumber Method for CreatePhoneNumber + * @param trunkSid The SID of the Trunk to associate the phone number with. + * @param optional nil or *CreatePhoneNumberOpts - Optional Parameters: + * @param "PhoneNumberSid" (string) - The SID of the [Incoming Phone Number](https://www.twilio.com/docs/phone-numbers/api/incomingphonenumber-resource) that you want to associate with the trunk. +@return TrunkingV1TrunkPhoneNumber +*/ +func (c *DefaultApiService) CreatePhoneNumber(trunkSid string, params *CreatePhoneNumberParams) (*TrunkingV1TrunkPhoneNumber, error) { + path := "/v1/Trunks/{TrunkSid}/PhoneNumbers" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PhoneNumberSid != nil { + data.Set("PhoneNumberSid", *params.PhoneNumberSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TrunkingV1TrunkPhoneNumber{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateTrunkParams Optional parameters for the method 'CreateTrunk' +type CreateTrunkParams struct { + CnamLookupEnabled *bool `json:"CnamLookupEnabled,omitempty"` + DisasterRecoveryMethod *string `json:"DisasterRecoveryMethod,omitempty"` + DisasterRecoveryUrl *string `json:"DisasterRecoveryUrl,omitempty"` + DomainName *string `json:"DomainName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Secure *bool `json:"Secure,omitempty"` + TransferMode *string `json:"TransferMode,omitempty"` +} + +/* +CreateTrunk Method for CreateTrunk + * @param optional nil or *CreateTrunkOpts - Optional Parameters: + * @param "CnamLookupEnabled" (bool) - Whether Caller ID Name (CNAM) lookup should be enabled for the trunk. If enabled, all inbound calls to the SIP Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information. + * @param "DisasterRecoveryMethod" (string) - The HTTP method we should use to call the `disaster_recovery_url`. Can be: `GET` or `POST`. + * @param "DisasterRecoveryUrl" (string) - The URL we should call using the `disaster_recovery_method` if an error occurs while sending SIP traffic towards the configured Origination URL. We retrieve TwiML from the URL and execute the instructions like any other normal TwiML call. See [Disaster Recovery](https://www.twilio.com/docs/sip-trunking#disaster-recovery) for more information. + * @param "DomainName" (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 `pstn.twilio.com`. See [Termination Settings](https://www.twilio.com/docs/sip-trunking#termination) for more information. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. + * @param "Secure" (bool) - Whether Secure Trunking is enabled for the trunk. If enabled, all calls going through the trunk will be secure using SRTP for media and TLS for signaling. If disabled, then RTP will be used for media. See [Secure Trunking](https://www.twilio.com/docs/sip-trunking#securetrunking) for more information. + * @param "TransferMode" (string) - The call transfer settings for the trunk. Can be: `enable-all`, `sip-only` and `disable-all`. See [Transfer](https://www.twilio.com/docs/sip-trunking/call-transfer) for more information. +@return TrunkingV1Trunk +*/ +func (c *DefaultApiService) CreateTrunk(params *CreateTrunkParams) (*TrunkingV1Trunk, error) { + path := "/v1/Trunks" + + data := url.Values{} + headers := 0 + + if params != nil && params.CnamLookupEnabled != nil { + data.Set("CnamLookupEnabled", string(*params.CnamLookupEnabled)) + } + if params != nil && params.DisasterRecoveryMethod != nil { + data.Set("DisasterRecoveryMethod", *params.DisasterRecoveryMethod) + } + if params != nil && params.DisasterRecoveryUrl != nil { + data.Set("DisasterRecoveryUrl", *params.DisasterRecoveryUrl) + } + if params != nil && params.DomainName != nil { + data.Set("DomainName", *params.DomainName) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Secure != nil { + data.Set("Secure", string(*params.Secure)) + } + if params != nil && params.TransferMode != nil { + data.Set("TransferMode", *params.TransferMode) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TrunkingV1Trunk{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +DeleteCredentialList Method for DeleteCredentialList + * @param trunkSid The SID of the Trunk from which to delete the credential list. + * @param sid The unique string that we created to identify the CredentialList resource to delete. +*/ +func (c *DefaultApiService) DeleteCredentialList(trunkSid string, sid string) (error) { + path := "/v1/Trunks/{TrunkSid}/CredentialLists/{Sid}" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteIpAccessControlList Method for DeleteIpAccessControlList +Remove an associated IP Access Control List from a Trunk + * @param trunkSid The SID of the Trunk from which to delete the IP Access Control List. + * @param sid The unique string that we created to identify the IpAccessControlList resource to delete. +*/ +func (c *DefaultApiService) DeleteIpAccessControlList(trunkSid string, sid string) (error) { + path := "/v1/Trunks/{TrunkSid}/IpAccessControlLists/{Sid}" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteOriginationUrl Method for DeleteOriginationUrl + * @param trunkSid The SID of the Trunk from which to delete the OriginationUrl. + * @param sid The unique string that we created to identify the OriginationUrl resource to delete. +*/ +func (c *DefaultApiService) DeleteOriginationUrl(trunkSid string, sid string) (error) { + path := "/v1/Trunks/{TrunkSid}/OriginationUrls/{Sid}" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeletePhoneNumber Method for DeletePhoneNumber + * @param trunkSid The SID of the Trunk from which to delete the PhoneNumber resource. + * @param sid The unique string that we created to identify the PhoneNumber resource to delete. +*/ +func (c *DefaultApiService) DeletePhoneNumber(trunkSid string, sid string) (error) { + path := "/v1/Trunks/{TrunkSid}/PhoneNumbers/{Sid}" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteTrunk Method for DeleteTrunk + * @param sid The unique string that we created to identify the Trunk resource to delete. +*/ +func (c *DefaultApiService) DeleteTrunk(sid string) (error) { + path := "/v1/Trunks/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +FetchCredentialList Method for FetchCredentialList + * @param trunkSid The SID of the Trunk from which to fetch the credential list. + * @param sid The unique string that we created to identify the CredentialList resource to fetch. +@return TrunkingV1TrunkCredentialList +*/ +func (c *DefaultApiService) FetchCredentialList(trunkSid string, sid string) (*TrunkingV1TrunkCredentialList, error) { + path := "/v1/Trunks/{TrunkSid}/CredentialLists/{Sid}" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TrunkingV1TrunkCredentialList{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchIpAccessControlList Method for FetchIpAccessControlList + * @param trunkSid The SID of the Trunk from which to fetch the IP Access Control List. + * @param sid The unique string that we created to identify the IpAccessControlList resource to fetch. +@return TrunkingV1TrunkIpAccessControlList +*/ +func (c *DefaultApiService) FetchIpAccessControlList(trunkSid string, sid string) (*TrunkingV1TrunkIpAccessControlList, error) { + path := "/v1/Trunks/{TrunkSid}/IpAccessControlLists/{Sid}" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TrunkingV1TrunkIpAccessControlList{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchOriginationUrl Method for FetchOriginationUrl + * @param trunkSid The SID of the Trunk from which to fetch the OriginationUrl. + * @param sid The unique string that we created to identify the OriginationUrl resource to fetch. +@return TrunkingV1TrunkOriginationUrl +*/ +func (c *DefaultApiService) FetchOriginationUrl(trunkSid string, sid string) (*TrunkingV1TrunkOriginationUrl, error) { + path := "/v1/Trunks/{TrunkSid}/OriginationUrls/{Sid}" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TrunkingV1TrunkOriginationUrl{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchPhoneNumber Method for FetchPhoneNumber + * @param trunkSid The SID of the Trunk from which to fetch the PhoneNumber resource. + * @param sid The unique string that we created to identify the PhoneNumber resource to fetch. +@return TrunkingV1TrunkPhoneNumber +*/ +func (c *DefaultApiService) FetchPhoneNumber(trunkSid string, sid string) (*TrunkingV1TrunkPhoneNumber, error) { + path := "/v1/Trunks/{TrunkSid}/PhoneNumbers/{Sid}" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TrunkingV1TrunkPhoneNumber{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchRecording Method for FetchRecording + * @param trunkSid The SID of the Trunk from which to fetch the recording settings. +@return TrunkingV1TrunkRecording +*/ +func (c *DefaultApiService) FetchRecording(trunkSid string) (*TrunkingV1TrunkRecording, error) { + path := "/v1/Trunks/{TrunkSid}/Recording" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TrunkingV1TrunkRecording{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchTrunk Method for FetchTrunk + * @param sid The unique string that we created to identify the Trunk resource to fetch. +@return TrunkingV1Trunk +*/ +func (c *DefaultApiService) FetchTrunk(sid string) (*TrunkingV1Trunk, error) { + path := "/v1/Trunks/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TrunkingV1Trunk{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListCredentialListParams Optional parameters for the method 'ListCredentialList' +type ListCredentialListParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListCredentialList Method for ListCredentialList + * @param trunkSid The SID of the Trunk from which to read the credential lists. + * @param optional nil or *ListCredentialListOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return TrunkingV1TrunkCredentialListReadResponse +*/ +func (c *DefaultApiService) ListCredentialList(trunkSid string, params *ListCredentialListParams) (*TrunkingV1TrunkCredentialListReadResponse, error) { + path := "/v1/Trunks/{TrunkSid}/CredentialLists" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TrunkingV1TrunkCredentialListReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListIpAccessControlListParams Optional parameters for the method 'ListIpAccessControlList' +type ListIpAccessControlListParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListIpAccessControlList Method for ListIpAccessControlList +List all IP Access Control Lists for a Trunk + * @param trunkSid The SID of the Trunk from which to read the IP Access Control Lists. + * @param optional nil or *ListIpAccessControlListOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return TrunkingV1TrunkIpAccessControlListReadResponse +*/ +func (c *DefaultApiService) ListIpAccessControlList(trunkSid string, params *ListIpAccessControlListParams) (*TrunkingV1TrunkIpAccessControlListReadResponse, error) { + path := "/v1/Trunks/{TrunkSid}/IpAccessControlLists" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TrunkingV1TrunkIpAccessControlListReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListOriginationUrlParams Optional parameters for the method 'ListOriginationUrl' +type ListOriginationUrlParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListOriginationUrl Method for ListOriginationUrl + * @param trunkSid The SID of the Trunk from which to read the OriginationUrl. + * @param optional nil or *ListOriginationUrlOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return TrunkingV1TrunkOriginationUrlReadResponse +*/ +func (c *DefaultApiService) ListOriginationUrl(trunkSid string, params *ListOriginationUrlParams) (*TrunkingV1TrunkOriginationUrlReadResponse, error) { + path := "/v1/Trunks/{TrunkSid}/OriginationUrls" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TrunkingV1TrunkOriginationUrlReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListPhoneNumberParams Optional parameters for the method 'ListPhoneNumber' +type ListPhoneNumberParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListPhoneNumber Method for ListPhoneNumber + * @param trunkSid The SID of the Trunk from which to read the PhoneNumber resources. + * @param optional nil or *ListPhoneNumberOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return TrunkingV1TrunkPhoneNumberReadResponse +*/ +func (c *DefaultApiService) ListPhoneNumber(trunkSid string, params *ListPhoneNumberParams) (*TrunkingV1TrunkPhoneNumberReadResponse, error) { + path := "/v1/Trunks/{TrunkSid}/PhoneNumbers" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TrunkingV1TrunkPhoneNumberReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListTrunkParams Optional parameters for the method 'ListTrunk' +type ListTrunkParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListTrunk Method for ListTrunk + * @param optional nil or *ListTrunkOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return TrunkingV1TrunkReadResponse +*/ +func (c *DefaultApiService) ListTrunk(params *ListTrunkParams) (*TrunkingV1TrunkReadResponse, error) { + path := "/v1/Trunks" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TrunkingV1TrunkReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateOriginationUrlParams Optional parameters for the method 'UpdateOriginationUrl' +type UpdateOriginationUrlParams struct { + Enabled *bool `json:"Enabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Priority *int32 `json:"Priority,omitempty"` + SipUrl *string `json:"SipUrl,omitempty"` + Weight *int32 `json:"Weight,omitempty"` +} + +/* +UpdateOriginationUrl Method for UpdateOriginationUrl + * @param trunkSid The SID of the Trunk from which to update the OriginationUrl. + * @param sid The unique string that we created to identify the OriginationUrl resource to update. + * @param optional nil or *UpdateOriginationUrlOpts - Optional Parameters: + * @param "Enabled" (bool) - Whether the URL is enabled. The default is `true`. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. + * @param "Priority" (int32) - The relative importance of the URI. Can be an integer from 0 to 65535, inclusive, and the default is 10. The lowest number represents the most important URI. + * @param "SipUrl" (string) - The SIP address you want Twilio to route your Origination calls to. This must be a `sip:` schema. `sips` is NOT supported. + * @param "Weight" (int32) - The value that determines the relative share of the load the URI should receive compared to other URIs with the same priority. Can be an integer from 1 to 65535, inclusive, and the default is 10. URLs with higher values receive more load than those with lower ones with the same priority. +@return TrunkingV1TrunkOriginationUrl +*/ +func (c *DefaultApiService) UpdateOriginationUrl(trunkSid string, sid string, params *UpdateOriginationUrlParams) (*TrunkingV1TrunkOriginationUrl, error) { + path := "/v1/Trunks/{TrunkSid}/OriginationUrls/{Sid}" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Enabled != nil { + data.Set("Enabled", string(*params.Enabled)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Priority != nil { + data.Set("Priority", string(*params.Priority)) + } + if params != nil && params.SipUrl != nil { + data.Set("SipUrl", *params.SipUrl) + } + if params != nil && params.Weight != nil { + data.Set("Weight", string(*params.Weight)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TrunkingV1TrunkOriginationUrl{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateRecordingParams Optional parameters for the method 'UpdateRecording' +type UpdateRecordingParams struct { + Mode *string `json:"Mode,omitempty"` + Trim *string `json:"Trim,omitempty"` +} + +/* +UpdateRecording Method for UpdateRecording + * @param trunkSid The SID of the Trunk that will have its recording settings updated. + * @param optional nil or *UpdateRecordingOpts - Optional Parameters: + * @param "Mode" (string) - The recording mode for the trunk. Can be do-not-record (default), record-from-ringing, record-from-answer, record-from-ringing-dual, or record-from-answer-dual. + * @param "Trim" (string) - The recording trim setting for the trunk. Can be do-not-trim (default) or trim-silence. +@return TrunkingV1TrunkRecording +*/ +func (c *DefaultApiService) UpdateRecording(trunkSid string, params *UpdateRecordingParams) (*TrunkingV1TrunkRecording, error) { + path := "/v1/Trunks/{TrunkSid}/Recording" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Mode != nil { + data.Set("Mode", *params.Mode) + } + if params != nil && params.Trim != nil { + data.Set("Trim", *params.Trim) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TrunkingV1TrunkRecording{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateTrunkParams Optional parameters for the method 'UpdateTrunk' +type UpdateTrunkParams struct { + CnamLookupEnabled *bool `json:"CnamLookupEnabled,omitempty"` + DisasterRecoveryMethod *string `json:"DisasterRecoveryMethod,omitempty"` + DisasterRecoveryUrl *string `json:"DisasterRecoveryUrl,omitempty"` + DomainName *string `json:"DomainName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Secure *bool `json:"Secure,omitempty"` + TransferMode *string `json:"TransferMode,omitempty"` +} + +/* +UpdateTrunk Method for UpdateTrunk + * @param sid The unique string that we created to identify the OriginationUrl resource to update. + * @param optional nil or *UpdateTrunkOpts - Optional Parameters: + * @param "CnamLookupEnabled" (bool) - Whether Caller ID Name (CNAM) lookup should be enabled for the trunk. If enabled, all inbound calls to the SIP Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information. + * @param "DisasterRecoveryMethod" (string) - The HTTP method we should use to call the `disaster_recovery_url`. Can be: `GET` or `POST`. + * @param "DisasterRecoveryUrl" (string) - The URL we should call using the `disaster_recovery_method` if an error occurs while sending SIP traffic towards the configured Origination URL. We retrieve TwiML from the URL and execute the instructions like any other normal TwiML call. See [Disaster Recovery](https://www.twilio.com/docs/sip-trunking#disaster-recovery) for more information. + * @param "DomainName" (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 `pstn.twilio.com`. See [Termination Settings](https://www.twilio.com/docs/sip-trunking#termination) for more information. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. + * @param "Secure" (bool) - Whether Secure Trunking is enabled for the trunk. If enabled, all calls going through the trunk will be secure using SRTP for media and TLS for signaling. If disabled, then RTP will be used for media. See [Secure Trunking](https://www.twilio.com/docs/sip-trunking#securetrunking) for more information. + * @param "TransferMode" (string) - The call transfer settings for the trunk. Can be: `enable-all`, `sip-only` and `disable-all`. See [Transfer](https://www.twilio.com/docs/sip-trunking/call-transfer) for more information. +@return TrunkingV1Trunk +*/ +func (c *DefaultApiService) UpdateTrunk(sid string, params *UpdateTrunkParams) (*TrunkingV1Trunk, error) { + path := "/v1/Trunks/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CnamLookupEnabled != nil { + data.Set("CnamLookupEnabled", string(*params.CnamLookupEnabled)) + } + if params != nil && params.DisasterRecoveryMethod != nil { + data.Set("DisasterRecoveryMethod", *params.DisasterRecoveryMethod) + } + if params != nil && params.DisasterRecoveryUrl != nil { + data.Set("DisasterRecoveryUrl", *params.DisasterRecoveryUrl) + } + if params != nil && params.DomainName != nil { + data.Set("DomainName", *params.DomainName) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Secure != nil { + data.Set("Secure", string(*params.Secure)) + } + if params != nil && params.TransferMode != nil { + data.Set("TransferMode", *params.TransferMode) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TrunkingV1Trunk{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/trunking/v1/docs/CreateCredentialListRequest.md b/rest/trunking/v1/docs/CreateCredentialListRequest.md new file mode 100644 index 000000000..e45ddb5df --- /dev/null +++ b/rest/trunking/v1/docs/CreateCredentialListRequest.md @@ -0,0 +1,11 @@ +# CreateCredentialListRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CredentialListSid** | **string** | The SID of the [Credential List](https://www.twilio.com/docs/voice/sip/api/sip-credentiallist-resource) that you want to associate with the trunk. Once associated, we will authenticate access to the trunk against this list. | + +[[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/rest/trunking/v1/docs/CreateIpAccessControlListRequest.md b/rest/trunking/v1/docs/CreateIpAccessControlListRequest.md new file mode 100644 index 000000000..07385c185 --- /dev/null +++ b/rest/trunking/v1/docs/CreateIpAccessControlListRequest.md @@ -0,0 +1,11 @@ +# CreateIpAccessControlListRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IpAccessControlListSid** | **string** | The SID of the [IP Access Control List](https://www.twilio.com/docs/voice/sip/api/sip-ipaccesscontrollist-resource) that you want to associate with the trunk. | + +[[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/rest/trunking/v1/docs/CreateOriginationUrlRequest.md b/rest/trunking/v1/docs/CreateOriginationUrlRequest.md new file mode 100644 index 000000000..d452c2e92 --- /dev/null +++ b/rest/trunking/v1/docs/CreateOriginationUrlRequest.md @@ -0,0 +1,15 @@ +# CreateOriginationUrlRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Enabled** | **bool** | Whether the URL is enabled. The default is `true`. | +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | +**Priority** | **int32** | The relative importance of the URI. Can be an integer from 0 to 65535, inclusive, and the default is 10. The lowest number represents the most important URI. | +**SipUrl** | **string** | The SIP address you want Twilio to route your Origination calls to. This must be a `sip:` schema. | +**Weight** | **int32** | The value that determines the relative share of the load the URI should receive compared to other URIs with the same priority. Can be an integer from 1 to 65535, inclusive, and the default is 10. URLs with higher values receive more load than those with lower ones with the same priority. | + +[[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/rest/trunking/v1/docs/CreatePhoneNumberRequest.md b/rest/trunking/v1/docs/CreatePhoneNumberRequest.md new file mode 100644 index 000000000..4e24e7bd9 --- /dev/null +++ b/rest/trunking/v1/docs/CreatePhoneNumberRequest.md @@ -0,0 +1,11 @@ +# CreatePhoneNumberRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PhoneNumberSid** | **string** | The SID of the [Incoming Phone Number](https://www.twilio.com/docs/phone-numbers/api/incomingphonenumber-resource) that you want to associate with the trunk. | + +[[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/rest/trunking/v1/docs/CreateTrunkRequest.md b/rest/trunking/v1/docs/CreateTrunkRequest.md new file mode 100644 index 000000000..3717b9d0a --- /dev/null +++ b/rest/trunking/v1/docs/CreateTrunkRequest.md @@ -0,0 +1,17 @@ +# CreateTrunkRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CnamLookupEnabled** | **bool** | Whether Caller ID Name (CNAM) lookup should be enabled for the trunk. If enabled, all inbound calls to the SIP Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information. | [optional] +**DisasterRecoveryMethod** | **string** | The HTTP method we should use to call the `disaster_recovery_url`. Can be: `GET` or `POST`. | [optional] +**DisasterRecoveryUrl** | **string** | The URL we should call using the `disaster_recovery_method` if an error occurs while sending SIP traffic towards the configured Origination URL. We retrieve TwiML from the URL and execute the instructions like any other normal TwiML call. See [Disaster Recovery](https://www.twilio.com/docs/sip-trunking#disaster-recovery) for more information. | [optional] +**DomainName** | **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 `pstn.twilio.com`. See [Termination Settings](https://www.twilio.com/docs/sip-trunking#termination) for more information. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | [optional] +**Secure** | **bool** | Whether Secure Trunking is enabled for the trunk. If enabled, all calls going through the trunk will be secure using SRTP for media and TLS for signaling. If disabled, then RTP will be used for media. See [Secure Trunking](https://www.twilio.com/docs/sip-trunking#securetrunking) for more information. | [optional] +**TransferMode** | **string** | The call transfer settings for the trunk. Can be: `enable-all`, `sip-only` and `disable-all`. See [Transfer](https://www.twilio.com/docs/sip-trunking/call-transfer) for more information. | [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/rest/trunking/v1/docs/DefaultApi.md b/rest/trunking/v1/docs/DefaultApi.md new file mode 100644 index 000000000..987b36433 --- /dev/null +++ b/rest/trunking/v1/docs/DefaultApi.md @@ -0,0 +1,976 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateCredentialList**](DefaultApi.md#CreateCredentialList) | **Post** /v1/Trunks/{TrunkSid}/CredentialLists | +[**CreateIpAccessControlList**](DefaultApi.md#CreateIpAccessControlList) | **Post** /v1/Trunks/{TrunkSid}/IpAccessControlLists | +[**CreateOriginationUrl**](DefaultApi.md#CreateOriginationUrl) | **Post** /v1/Trunks/{TrunkSid}/OriginationUrls | +[**CreatePhoneNumber**](DefaultApi.md#CreatePhoneNumber) | **Post** /v1/Trunks/{TrunkSid}/PhoneNumbers | +[**CreateTrunk**](DefaultApi.md#CreateTrunk) | **Post** /v1/Trunks | +[**DeleteCredentialList**](DefaultApi.md#DeleteCredentialList) | **Delete** /v1/Trunks/{TrunkSid}/CredentialLists/{Sid} | +[**DeleteIpAccessControlList**](DefaultApi.md#DeleteIpAccessControlList) | **Delete** /v1/Trunks/{TrunkSid}/IpAccessControlLists/{Sid} | +[**DeleteOriginationUrl**](DefaultApi.md#DeleteOriginationUrl) | **Delete** /v1/Trunks/{TrunkSid}/OriginationUrls/{Sid} | +[**DeletePhoneNumber**](DefaultApi.md#DeletePhoneNumber) | **Delete** /v1/Trunks/{TrunkSid}/PhoneNumbers/{Sid} | +[**DeleteTrunk**](DefaultApi.md#DeleteTrunk) | **Delete** /v1/Trunks/{Sid} | +[**FetchCredentialList**](DefaultApi.md#FetchCredentialList) | **Get** /v1/Trunks/{TrunkSid}/CredentialLists/{Sid} | +[**FetchIpAccessControlList**](DefaultApi.md#FetchIpAccessControlList) | **Get** /v1/Trunks/{TrunkSid}/IpAccessControlLists/{Sid} | +[**FetchOriginationUrl**](DefaultApi.md#FetchOriginationUrl) | **Get** /v1/Trunks/{TrunkSid}/OriginationUrls/{Sid} | +[**FetchPhoneNumber**](DefaultApi.md#FetchPhoneNumber) | **Get** /v1/Trunks/{TrunkSid}/PhoneNumbers/{Sid} | +[**FetchRecording**](DefaultApi.md#FetchRecording) | **Get** /v1/Trunks/{TrunkSid}/Recording | +[**FetchTrunk**](DefaultApi.md#FetchTrunk) | **Get** /v1/Trunks/{Sid} | +[**ListCredentialList**](DefaultApi.md#ListCredentialList) | **Get** /v1/Trunks/{TrunkSid}/CredentialLists | +[**ListIpAccessControlList**](DefaultApi.md#ListIpAccessControlList) | **Get** /v1/Trunks/{TrunkSid}/IpAccessControlLists | +[**ListOriginationUrl**](DefaultApi.md#ListOriginationUrl) | **Get** /v1/Trunks/{TrunkSid}/OriginationUrls | +[**ListPhoneNumber**](DefaultApi.md#ListPhoneNumber) | **Get** /v1/Trunks/{TrunkSid}/PhoneNumbers | +[**ListTrunk**](DefaultApi.md#ListTrunk) | **Get** /v1/Trunks | +[**UpdateOriginationUrl**](DefaultApi.md#UpdateOriginationUrl) | **Post** /v1/Trunks/{TrunkSid}/OriginationUrls/{Sid} | +[**UpdateRecording**](DefaultApi.md#UpdateRecording) | **Post** /v1/Trunks/{TrunkSid}/Recording | +[**UpdateTrunk**](DefaultApi.md#UpdateTrunk) | **Post** /v1/Trunks/{Sid} | + + + +## CreateCredentialList + +> TrunkingV1TrunkCredentialList CreateCredentialList(ctx, trunkSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**trunkSid** | **string**| The SID of the Trunk to associate the credential list with. | + **optional** | ***CreateCredentialListOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateCredentialListOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **credentialListSid** | **optional.String**| The SID of the [Credential List](https://www.twilio.com/docs/voice/sip/api/sip-credentiallist-resource) that you want to associate with the trunk. Once associated, we will authenticate access to the trunk against this list. | + +### Return type + +[**TrunkingV1TrunkCredentialList**](trunking.v1.trunk.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) + + +## CreateIpAccessControlList + +> TrunkingV1TrunkIpAccessControlList CreateIpAccessControlList(ctx, trunkSid, optional) + + + +Associate an IP Access Control List with a Trunk + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**trunkSid** | **string**| The SID of the Trunk to associate the IP Access Control List with. | + **optional** | ***CreateIpAccessControlListOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateIpAccessControlListOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **ipAccessControlListSid** | **optional.String**| The SID of the [IP Access Control List](https://www.twilio.com/docs/voice/sip/api/sip-ipaccesscontrollist-resource) that you want to associate with the trunk. | + +### Return type + +[**TrunkingV1TrunkIpAccessControlList**](trunking.v1.trunk.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) + + +## CreateOriginationUrl + +> TrunkingV1TrunkOriginationUrl CreateOriginationUrl(ctx, trunkSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**trunkSid** | **string**| The SID of the Trunk to associate the resource with. | + **optional** | ***CreateOriginationUrlOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateOriginationUrlOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **enabled** | **optional.Bool**| Whether the URL is enabled. The default is `true`. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **priority** | **optional.Int32**| The relative importance of the URI. Can be an integer from 0 to 65535, inclusive, and the default is 10. The lowest number represents the most important URI. | + **sipUrl** | **optional.String**| The SIP address you want Twilio to route your Origination calls to. This must be a `sip:` schema. | + **weight** | **optional.Int32**| The value that determines the relative share of the load the URI should receive compared to other URIs with the same priority. Can be an integer from 1 to 65535, inclusive, and the default is 10. URLs with higher values receive more load than those with lower ones with the same priority. | + +### Return type + +[**TrunkingV1TrunkOriginationUrl**](trunking.v1.trunk.origination_url.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) + + +## CreatePhoneNumber + +> TrunkingV1TrunkPhoneNumber CreatePhoneNumber(ctx, trunkSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**trunkSid** | **string**| The SID of the Trunk to associate the phone number with. | + **optional** | ***CreatePhoneNumberOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreatePhoneNumberOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **phoneNumberSid** | **optional.String**| The SID of the [Incoming Phone Number](https://www.twilio.com/docs/phone-numbers/api/incomingphonenumber-resource) that you want to associate with the trunk. | + +### Return type + +[**TrunkingV1TrunkPhoneNumber**](trunking.v1.trunk.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) + + +## CreateTrunk + +> TrunkingV1Trunk CreateTrunk(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateTrunkOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateTrunkOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cnamLookupEnabled** | **optional.Bool**| Whether Caller ID Name (CNAM) lookup should be enabled for the trunk. If enabled, all inbound calls to the SIP Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information. | + **disasterRecoveryMethod** | **optional.String**| The HTTP method we should use to call the `disaster_recovery_url`. Can be: `GET` or `POST`. | + **disasterRecoveryUrl** | **optional.String**| The URL we should call using the `disaster_recovery_method` if an error occurs while sending SIP traffic towards the configured Origination URL. We retrieve TwiML from the URL and execute the instructions like any other normal TwiML call. See [Disaster Recovery](https://www.twilio.com/docs/sip-trunking#disaster-recovery) for more information. | + **domainName** | **optional.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 `pstn.twilio.com`. See [Termination Settings](https://www.twilio.com/docs/sip-trunking#termination) for more information. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **secure** | **optional.Bool**| Whether Secure Trunking is enabled for the trunk. If enabled, all calls going through the trunk will be secure using SRTP for media and TLS for signaling. If disabled, then RTP will be used for media. See [Secure Trunking](https://www.twilio.com/docs/sip-trunking#securetrunking) for more information. | + **transferMode** | **optional.String**| The call transfer settings for the trunk. Can be: `enable-all`, `sip-only` and `disable-all`. See [Transfer](https://www.twilio.com/docs/sip-trunking/call-transfer) for more information. | + +### Return type + +[**TrunkingV1Trunk**](trunking.v1.trunk.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) + + +## DeleteCredentialList + +> DeleteCredentialList(ctx, trunkSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**trunkSid** | **string**| The SID of the Trunk from which to delete the credential list. | +**sid** | **string**| The unique string that we created to identify the CredentialList resource to delete. | + +### 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) + + +## DeleteIpAccessControlList + +> DeleteIpAccessControlList(ctx, trunkSid, sid) + + + +Remove an associated IP Access Control List from a Trunk + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**trunkSid** | **string**| The SID of the Trunk from which to delete the IP Access Control List. | +**sid** | **string**| The unique string that we created to identify the IpAccessControlList resource to delete. | + +### 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) + + +## DeleteOriginationUrl + +> DeleteOriginationUrl(ctx, trunkSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**trunkSid** | **string**| The SID of the Trunk from which to delete the OriginationUrl. | +**sid** | **string**| The unique string that we created to identify the OriginationUrl resource to delete. | + +### 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) + + +## DeletePhoneNumber + +> DeletePhoneNumber(ctx, trunkSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**trunkSid** | **string**| The SID of the Trunk from which to delete the PhoneNumber resource. | +**sid** | **string**| The unique string that we created to identify the PhoneNumber resource to delete. | + +### 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) + + +## DeleteTrunk + +> DeleteTrunk(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The unique string that we created to identify the Trunk resource to delete. | + +### 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) + + +## FetchCredentialList + +> TrunkingV1TrunkCredentialList FetchCredentialList(ctx, trunkSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**trunkSid** | **string**| The SID of the Trunk from which to fetch the credential list. | +**sid** | **string**| The unique string that we created to identify the CredentialList resource to fetch. | + +### Return type + +[**TrunkingV1TrunkCredentialList**](trunking.v1.trunk.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) + + +## FetchIpAccessControlList + +> TrunkingV1TrunkIpAccessControlList FetchIpAccessControlList(ctx, trunkSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**trunkSid** | **string**| The SID of the Trunk from which to fetch the IP Access Control List. | +**sid** | **string**| The unique string that we created to identify the IpAccessControlList resource to fetch. | + +### Return type + +[**TrunkingV1TrunkIpAccessControlList**](trunking.v1.trunk.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) + + +## FetchOriginationUrl + +> TrunkingV1TrunkOriginationUrl FetchOriginationUrl(ctx, trunkSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**trunkSid** | **string**| The SID of the Trunk from which to fetch the OriginationUrl. | +**sid** | **string**| The unique string that we created to identify the OriginationUrl resource to fetch. | + +### Return type + +[**TrunkingV1TrunkOriginationUrl**](trunking.v1.trunk.origination_url.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) + + +## FetchPhoneNumber + +> TrunkingV1TrunkPhoneNumber FetchPhoneNumber(ctx, trunkSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**trunkSid** | **string**| The SID of the Trunk from which to fetch the PhoneNumber resource. | +**sid** | **string**| The unique string that we created to identify the PhoneNumber resource to fetch. | + +### Return type + +[**TrunkingV1TrunkPhoneNumber**](trunking.v1.trunk.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) + + +## FetchRecording + +> TrunkingV1TrunkRecording FetchRecording(ctx, trunkSid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**trunkSid** | **string**| The SID of the Trunk from which to fetch the recording settings. | + +### Return type + +[**TrunkingV1TrunkRecording**](trunking.v1.trunk.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) + + +## FetchTrunk + +> TrunkingV1Trunk FetchTrunk(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The unique string that we created to identify the Trunk resource to fetch. | + +### Return type + +[**TrunkingV1Trunk**](trunking.v1.trunk.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) + + +## ListCredentialList + +> TrunkingV1TrunkCredentialListReadResponse ListCredentialList(ctx, trunkSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**trunkSid** | **string**| The SID of the Trunk from which to read the credential lists. | + **optional** | ***ListCredentialListOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListCredentialListOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**TrunkingV1TrunkCredentialListReadResponse**](trunking_v1_trunk_credential_listReadResponse.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) + + +## ListIpAccessControlList + +> TrunkingV1TrunkIpAccessControlListReadResponse ListIpAccessControlList(ctx, trunkSid, optional) + + + +List all IP Access Control Lists for a Trunk + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**trunkSid** | **string**| The SID of the Trunk from which to read the IP Access Control Lists. | + **optional** | ***ListIpAccessControlListOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListIpAccessControlListOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**TrunkingV1TrunkIpAccessControlListReadResponse**](trunking_v1_trunk_ip_access_control_listReadResponse.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) + + +## ListOriginationUrl + +> TrunkingV1TrunkOriginationUrlReadResponse ListOriginationUrl(ctx, trunkSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**trunkSid** | **string**| The SID of the Trunk from which to read the OriginationUrl. | + **optional** | ***ListOriginationUrlOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListOriginationUrlOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**TrunkingV1TrunkOriginationUrlReadResponse**](trunking_v1_trunk_origination_urlReadResponse.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) + + +## ListPhoneNumber + +> TrunkingV1TrunkPhoneNumberReadResponse ListPhoneNumber(ctx, trunkSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**trunkSid** | **string**| The SID of the Trunk from which to read the PhoneNumber resources. | + **optional** | ***ListPhoneNumberOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListPhoneNumberOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**TrunkingV1TrunkPhoneNumberReadResponse**](trunking_v1_trunk_phone_numberReadResponse.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) + + +## ListTrunk + +> TrunkingV1TrunkReadResponse ListTrunk(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListTrunkOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListTrunkOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**TrunkingV1TrunkReadResponse**](trunking_v1_trunkReadResponse.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) + + +## UpdateOriginationUrl + +> TrunkingV1TrunkOriginationUrl UpdateOriginationUrl(ctx, trunkSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**trunkSid** | **string**| The SID of the Trunk from which to update the OriginationUrl. | +**sid** | **string**| The unique string that we created to identify the OriginationUrl resource to update. | + **optional** | ***UpdateOriginationUrlOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateOriginationUrlOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **enabled** | **optional.Bool**| Whether the URL is enabled. The default is `true`. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **priority** | **optional.Int32**| The relative importance of the URI. Can be an integer from 0 to 65535, inclusive, and the default is 10. The lowest number represents the most important URI. | + **sipUrl** | **optional.String**| The SIP address you want Twilio to route your Origination calls to. This must be a `sip:` schema. `sips` is NOT supported. | + **weight** | **optional.Int32**| The value that determines the relative share of the load the URI should receive compared to other URIs with the same priority. Can be an integer from 1 to 65535, inclusive, and the default is 10. URLs with higher values receive more load than those with lower ones with the same priority. | + +### Return type + +[**TrunkingV1TrunkOriginationUrl**](trunking.v1.trunk.origination_url.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) + + +## UpdateRecording + +> TrunkingV1TrunkRecording UpdateRecording(ctx, trunkSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**trunkSid** | **string**| The SID of the Trunk that will have its recording settings updated. | + **optional** | ***UpdateRecordingOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateRecordingOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **mode** | **optional.String**| The recording mode for the trunk. Can be do-not-record (default), record-from-ringing, record-from-answer, record-from-ringing-dual, or record-from-answer-dual. | + **trim** | **optional.String**| The recording trim setting for the trunk. Can be do-not-trim (default) or trim-silence. | + +### Return type + +[**TrunkingV1TrunkRecording**](trunking.v1.trunk.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) + + +## UpdateTrunk + +> TrunkingV1Trunk UpdateTrunk(ctx, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The unique string that we created to identify the OriginationUrl resource to update. | + **optional** | ***UpdateTrunkOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateTrunkOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **cnamLookupEnabled** | **optional.Bool**| Whether Caller ID Name (CNAM) lookup should be enabled for the trunk. If enabled, all inbound calls to the SIP Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information. | + **disasterRecoveryMethod** | **optional.String**| The HTTP method we should use to call the `disaster_recovery_url`. Can be: `GET` or `POST`. | + **disasterRecoveryUrl** | **optional.String**| The URL we should call using the `disaster_recovery_method` if an error occurs while sending SIP traffic towards the configured Origination URL. We retrieve TwiML from the URL and execute the instructions like any other normal TwiML call. See [Disaster Recovery](https://www.twilio.com/docs/sip-trunking#disaster-recovery) for more information. | + **domainName** | **optional.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 `pstn.twilio.com`. See [Termination Settings](https://www.twilio.com/docs/sip-trunking#termination) for more information. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **secure** | **optional.Bool**| Whether Secure Trunking is enabled for the trunk. If enabled, all calls going through the trunk will be secure using SRTP for media and TLS for signaling. If disabled, then RTP will be used for media. See [Secure Trunking](https://www.twilio.com/docs/sip-trunking#securetrunking) for more information. | + **transferMode** | **optional.String**| The call transfer settings for the trunk. Can be: `enable-all`, `sip-only` and `disable-all`. See [Transfer](https://www.twilio.com/docs/sip-trunking/call-transfer) for more information. | + +### Return type + +[**TrunkingV1Trunk**](trunking.v1.trunk.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/rest/trunking/v1/docs/TrunkingV1Trunk.md b/rest/trunking/v1/docs/TrunkingV1Trunk.md new file mode 100644 index 000000000..241f9b0af --- /dev/null +++ b/rest/trunking/v1/docs/TrunkingV1Trunk.md @@ -0,0 +1,26 @@ +# TrunkingV1Trunk + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AuthType** | **string** | | [optional] +**AuthTypeSet** | **[]string** | | [optional] +**CnamLookupEnabled** | **bool** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**DisasterRecoveryMethod** | **string** | | [optional] +**DisasterRecoveryUrl** | **string** | | [optional] +**DomainName** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Recording** | [**map[string]interface{}**](.md) | | [optional] +**Secure** | **bool** | | [optional] +**Sid** | **string** | | [optional] +**TransferMode** | **string** | | [optional] +**Url** | **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/rest/trunking/v1/docs/TrunkingV1TrunkCredentialList.md b/rest/trunking/v1/docs/TrunkingV1TrunkCredentialList.md new file mode 100644 index 000000000..c91abfc00 --- /dev/null +++ b/rest/trunking/v1/docs/TrunkingV1TrunkCredentialList.md @@ -0,0 +1,17 @@ +# TrunkingV1TrunkCredentialList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Sid** | **string** | | [optional] +**TrunkSid** | **string** | | [optional] +**Url** | **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/rest/trunking/v1/docs/TrunkingV1TrunkCredentialListReadResponse.md b/rest/trunking/v1/docs/TrunkingV1TrunkCredentialListReadResponse.md new file mode 100644 index 000000000..c87253178 --- /dev/null +++ b/rest/trunking/v1/docs/TrunkingV1TrunkCredentialListReadResponse.md @@ -0,0 +1,12 @@ +# TrunkingV1TrunkCredentialListReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CredentialLists** | [**[]TrunkingV1TrunkCredentialList**](trunking.v1.trunk.credential_list.md) | | [optional] +**Meta** | [**TrunkingV1TrunkReadResponseMeta**](trunking_v1_trunkReadResponse_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/rest/trunking/v1/docs/TrunkingV1TrunkIpAccessControlList.md b/rest/trunking/v1/docs/TrunkingV1TrunkIpAccessControlList.md new file mode 100644 index 000000000..a9955084e --- /dev/null +++ b/rest/trunking/v1/docs/TrunkingV1TrunkIpAccessControlList.md @@ -0,0 +1,17 @@ +# TrunkingV1TrunkIpAccessControlList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Sid** | **string** | | [optional] +**TrunkSid** | **string** | | [optional] +**Url** | **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/rest/trunking/v1/docs/TrunkingV1TrunkIpAccessControlListReadResponse.md b/rest/trunking/v1/docs/TrunkingV1TrunkIpAccessControlListReadResponse.md new file mode 100644 index 000000000..706ed4d8d --- /dev/null +++ b/rest/trunking/v1/docs/TrunkingV1TrunkIpAccessControlListReadResponse.md @@ -0,0 +1,12 @@ +# TrunkingV1TrunkIpAccessControlListReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IpAccessControlLists** | [**[]TrunkingV1TrunkIpAccessControlList**](trunking.v1.trunk.ip_access_control_list.md) | | [optional] +**Meta** | [**TrunkingV1TrunkReadResponseMeta**](trunking_v1_trunkReadResponse_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/rest/trunking/v1/docs/TrunkingV1TrunkOriginationUrl.md b/rest/trunking/v1/docs/TrunkingV1TrunkOriginationUrl.md new file mode 100644 index 000000000..3ab02d7d6 --- /dev/null +++ b/rest/trunking/v1/docs/TrunkingV1TrunkOriginationUrl.md @@ -0,0 +1,21 @@ +# TrunkingV1TrunkOriginationUrl + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Enabled** | **bool** | | [optional] +**FriendlyName** | **string** | | [optional] +**Priority** | **int32** | | [optional] +**Sid** | **string** | | [optional] +**SipUrl** | **string** | | [optional] +**TrunkSid** | **string** | | [optional] +**Url** | **string** | | [optional] +**Weight** | **int32** | | [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/rest/trunking/v1/docs/TrunkingV1TrunkOriginationUrlReadResponse.md b/rest/trunking/v1/docs/TrunkingV1TrunkOriginationUrlReadResponse.md new file mode 100644 index 000000000..51666dfef --- /dev/null +++ b/rest/trunking/v1/docs/TrunkingV1TrunkOriginationUrlReadResponse.md @@ -0,0 +1,12 @@ +# TrunkingV1TrunkOriginationUrlReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**TrunkingV1TrunkReadResponseMeta**](trunking_v1_trunkReadResponse_meta.md) | | [optional] +**OriginationUrls** | [**[]TrunkingV1TrunkOriginationUrl**](trunking.v1.trunk.origination_url.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/rest/trunking/v1/docs/TrunkingV1TrunkPhoneNumber.md b/rest/trunking/v1/docs/TrunkingV1TrunkPhoneNumber.md new file mode 100644 index 000000000..3a00971a7 --- /dev/null +++ b/rest/trunking/v1/docs/TrunkingV1TrunkPhoneNumber.md @@ -0,0 +1,36 @@ +# TrunkingV1TrunkPhoneNumber + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AddressRequirements** | **string** | | [optional] +**ApiVersion** | **string** | | [optional] +**Beta** | **bool** | | [optional] +**Capabilities** | [**map[string]interface{}**](.md) | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**PhoneNumber** | **string** | | [optional] +**Sid** | **string** | | [optional] +**SmsApplicationSid** | **string** | | [optional] +**SmsFallbackMethod** | **string** | | [optional] +**SmsFallbackUrl** | **string** | | [optional] +**SmsMethod** | **string** | | [optional] +**SmsUrl** | **string** | | [optional] +**StatusCallback** | **string** | | [optional] +**StatusCallbackMethod** | **string** | | [optional] +**TrunkSid** | **string** | | [optional] +**Url** | **string** | | [optional] +**VoiceApplicationSid** | **string** | | [optional] +**VoiceCallerIdLookup** | **bool** | | [optional] +**VoiceFallbackMethod** | **string** | | [optional] +**VoiceFallbackUrl** | **string** | | [optional] +**VoiceMethod** | **string** | | [optional] +**VoiceUrl** | **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/rest/trunking/v1/docs/TrunkingV1TrunkPhoneNumberReadResponse.md b/rest/trunking/v1/docs/TrunkingV1TrunkPhoneNumberReadResponse.md new file mode 100644 index 000000000..4825790a3 --- /dev/null +++ b/rest/trunking/v1/docs/TrunkingV1TrunkPhoneNumberReadResponse.md @@ -0,0 +1,12 @@ +# TrunkingV1TrunkPhoneNumberReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**TrunkingV1TrunkReadResponseMeta**](trunking_v1_trunkReadResponse_meta.md) | | [optional] +**PhoneNumbers** | [**[]TrunkingV1TrunkPhoneNumber**](trunking.v1.trunk.phone_number.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/rest/trunking/v1/docs/TrunkingV1TrunkReadResponse.md b/rest/trunking/v1/docs/TrunkingV1TrunkReadResponse.md new file mode 100644 index 000000000..20613ca0d --- /dev/null +++ b/rest/trunking/v1/docs/TrunkingV1TrunkReadResponse.md @@ -0,0 +1,12 @@ +# TrunkingV1TrunkReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**TrunkingV1TrunkReadResponseMeta**](trunking_v1_trunkReadResponse_meta.md) | | [optional] +**Trunks** | [**[]TrunkingV1Trunk**](trunking.v1.trunk.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/rest/trunking/v1/docs/TrunkingV1TrunkReadResponseMeta.md b/rest/trunking/v1/docs/TrunkingV1TrunkReadResponseMeta.md new file mode 100644 index 000000000..7b45e8879 --- /dev/null +++ b/rest/trunking/v1/docs/TrunkingV1TrunkReadResponseMeta.md @@ -0,0 +1,17 @@ +# TrunkingV1TrunkReadResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/trunking/v1/docs/TrunkingV1TrunkRecording.md b/rest/trunking/v1/docs/TrunkingV1TrunkRecording.md new file mode 100644 index 000000000..7e2e3db62 --- /dev/null +++ b/rest/trunking/v1/docs/TrunkingV1TrunkRecording.md @@ -0,0 +1,12 @@ +# TrunkingV1TrunkRecording + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Mode** | **string** | | [optional] +**Trim** | **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/rest/trunking/v1/docs/UpdateOriginationUrlRequest.md b/rest/trunking/v1/docs/UpdateOriginationUrlRequest.md new file mode 100644 index 000000000..78f8c7aaf --- /dev/null +++ b/rest/trunking/v1/docs/UpdateOriginationUrlRequest.md @@ -0,0 +1,15 @@ +# UpdateOriginationUrlRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Enabled** | **bool** | Whether the URL is enabled. The default is `true`. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | [optional] +**Priority** | **int32** | The relative importance of the URI. Can be an integer from 0 to 65535, inclusive, and the default is 10. The lowest number represents the most important URI. | [optional] +**SipUrl** | **string** | The SIP address you want Twilio to route your Origination calls to. This must be a `sip:` schema. `sips` is NOT supported. | [optional] +**Weight** | **int32** | The value that determines the relative share of the load the URI should receive compared to other URIs with the same priority. Can be an integer from 1 to 65535, inclusive, and the default is 10. URLs with higher values receive more load than those with lower ones with the same priority. | [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/rest/trunking/v1/docs/UpdateRecordingRequest.md b/rest/trunking/v1/docs/UpdateRecordingRequest.md new file mode 100644 index 000000000..ce39ed334 --- /dev/null +++ b/rest/trunking/v1/docs/UpdateRecordingRequest.md @@ -0,0 +1,12 @@ +# UpdateRecordingRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Mode** | **string** | The recording mode for the trunk. Can be do-not-record (default), record-from-ringing, record-from-answer, record-from-ringing-dual, or record-from-answer-dual. | [optional] +**Trim** | **string** | The recording trim setting for the trunk. Can be do-not-trim (default) or trim-silence. | [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/rest/trunking/v1/docs/UpdateTrunkRequest.md b/rest/trunking/v1/docs/UpdateTrunkRequest.md new file mode 100644 index 000000000..a2091271e --- /dev/null +++ b/rest/trunking/v1/docs/UpdateTrunkRequest.md @@ -0,0 +1,17 @@ +# UpdateTrunkRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CnamLookupEnabled** | **bool** | Whether Caller ID Name (CNAM) lookup should be enabled for the trunk. If enabled, all inbound calls to the SIP Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information. | [optional] +**DisasterRecoveryMethod** | **string** | The HTTP method we should use to call the `disaster_recovery_url`. Can be: `GET` or `POST`. | [optional] +**DisasterRecoveryUrl** | **string** | The URL we should call using the `disaster_recovery_method` if an error occurs while sending SIP traffic towards the configured Origination URL. We retrieve TwiML from the URL and execute the instructions like any other normal TwiML call. See [Disaster Recovery](https://www.twilio.com/docs/sip-trunking#disaster-recovery) for more information. | [optional] +**DomainName** | **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 `pstn.twilio.com`. See [Termination Settings](https://www.twilio.com/docs/sip-trunking#termination) for more information. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It can be up to 64 characters long. | [optional] +**Secure** | **bool** | Whether Secure Trunking is enabled for the trunk. If enabled, all calls going through the trunk will be secure using SRTP for media and TLS for signaling. If disabled, then RTP will be used for media. See [Secure Trunking](https://www.twilio.com/docs/sip-trunking#securetrunking) for more information. | [optional] +**TransferMode** | **string** | The call transfer settings for the trunk. Can be: `enable-all`, `sip-only` and `disable-all`. See [Transfer](https://www.twilio.com/docs/sip-trunking/call-transfer) for more information. | [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/rest/trunking/v1/model_create_credential_list_request.go b/rest/trunking/v1/model_create_credential_list_request.go new file mode 100644 index 000000000..846dcb4c0 --- /dev/null +++ b/rest/trunking/v1/model_create_credential_list_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Trunking + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateCredentialListRequest struct for CreateCredentialListRequest +type CreateCredentialListRequest struct { + // The SID of the [Credential List](https://www.twilio.com/docs/voice/sip/api/sip-credentiallist-resource) that you want to associate with the trunk. Once associated, we will authenticate access to the trunk against this list. + CredentialListSid string `json:"CredentialListSid"` +} diff --git a/rest/trunking/v1/model_create_ip_access_control_list_request.go b/rest/trunking/v1/model_create_ip_access_control_list_request.go new file mode 100644 index 000000000..3f69f8191 --- /dev/null +++ b/rest/trunking/v1/model_create_ip_access_control_list_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Trunking + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateIpAccessControlListRequest struct for CreateIpAccessControlListRequest +type CreateIpAccessControlListRequest struct { + // The SID of the [IP Access Control List](https://www.twilio.com/docs/voice/sip/api/sip-ipaccesscontrollist-resource) that you want to associate with the trunk. + IpAccessControlListSid string `json:"IpAccessControlListSid"` +} diff --git a/rest/trunking/v1/model_create_origination_url_request.go b/rest/trunking/v1/model_create_origination_url_request.go new file mode 100644 index 000000000..cbe4bdb18 --- /dev/null +++ b/rest/trunking/v1/model_create_origination_url_request.go @@ -0,0 +1,24 @@ +/* + * Twilio - Trunking + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateOriginationUrlRequest struct for CreateOriginationUrlRequest +type CreateOriginationUrlRequest struct { + // Whether the URL is enabled. The default is `true`. + Enabled bool `json:"Enabled"` + // A descriptive string that you create to describe the resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName"` + // The relative importance of the URI. Can be an integer from 0 to 65535, inclusive, and the default is 10. The lowest number represents the most important URI. + Priority int32 `json:"Priority"` + // The SIP address you want Twilio to route your Origination calls to. This must be a `sip:` schema. + SipUrl string `json:"SipUrl"` + // The value that determines the relative share of the load the URI should receive compared to other URIs with the same priority. Can be an integer from 1 to 65535, inclusive, and the default is 10. URLs with higher values receive more load than those with lower ones with the same priority. + Weight int32 `json:"Weight"` +} diff --git a/rest/trunking/v1/model_create_phone_number_request.go b/rest/trunking/v1/model_create_phone_number_request.go new file mode 100644 index 000000000..b2f1c89f1 --- /dev/null +++ b/rest/trunking/v1/model_create_phone_number_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Trunking + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreatePhoneNumberRequest struct for CreatePhoneNumberRequest +type CreatePhoneNumberRequest struct { + // The SID of the [Incoming Phone Number](https://www.twilio.com/docs/phone-numbers/api/incomingphonenumber-resource) that you want to associate with the trunk. + PhoneNumberSid string `json:"PhoneNumberSid"` +} diff --git a/rest/trunking/v1/model_create_trunk_request.go b/rest/trunking/v1/model_create_trunk_request.go new file mode 100644 index 000000000..4d1e9c940 --- /dev/null +++ b/rest/trunking/v1/model_create_trunk_request.go @@ -0,0 +1,28 @@ +/* + * Twilio - Trunking + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateTrunkRequest struct for CreateTrunkRequest +type CreateTrunkRequest struct { + // Whether Caller ID Name (CNAM) lookup should be enabled for the trunk. If enabled, all inbound calls to the SIP Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information. + CnamLookupEnabled bool `json:"CnamLookupEnabled,omitempty"` + // The HTTP method we should use to call the `disaster_recovery_url`. Can be: `GET` or `POST`. + DisasterRecoveryMethod string `json:"DisasterRecoveryMethod,omitempty"` + // The URL we should call using the `disaster_recovery_method` if an error occurs while sending SIP traffic towards the configured Origination URL. We retrieve TwiML from the URL and execute the instructions like any other normal TwiML call. See [Disaster Recovery](https://www.twilio.com/docs/sip-trunking#disaster-recovery) for more information. + DisasterRecoveryUrl string `json:"DisasterRecoveryUrl,omitempty"` + // 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 `pstn.twilio.com`. See [Termination Settings](https://www.twilio.com/docs/sip-trunking#termination) for more information. + DomainName string `json:"DomainName,omitempty"` + // A descriptive string that you create to describe the resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // Whether Secure Trunking is enabled for the trunk. If enabled, all calls going through the trunk will be secure using SRTP for media and TLS for signaling. If disabled, then RTP will be used for media. See [Secure Trunking](https://www.twilio.com/docs/sip-trunking#securetrunking) for more information. + Secure bool `json:"Secure,omitempty"` + // The call transfer settings for the trunk. Can be: `enable-all`, `sip-only` and `disable-all`. See [Transfer](https://www.twilio.com/docs/sip-trunking/call-transfer) for more information. + TransferMode string `json:"TransferMode,omitempty"` +} diff --git a/rest/trunking/v1/model_trunking_v1_trunk.go b/rest/trunking/v1/model_trunking_v1_trunk.go new file mode 100644 index 000000000..1144351e4 --- /dev/null +++ b/rest/trunking/v1/model_trunking_v1_trunk.go @@ -0,0 +1,33 @@ +/* + * Twilio - Trunking + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// TrunkingV1Trunk struct for TrunkingV1Trunk +type TrunkingV1Trunk struct { + AccountSid string `json:"account_sid,omitempty"` + AuthType string `json:"auth_type,omitempty"` + AuthTypeSet []string `json:"auth_type_set,omitempty"` + CnamLookupEnabled bool `json:"cnam_lookup_enabled,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + DisasterRecoveryMethod string `json:"disaster_recovery_method,omitempty"` + DisasterRecoveryUrl string `json:"disaster_recovery_url,omitempty"` + DomainName string `json:"domain_name,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Recording map[string]interface{} `json:"recording,omitempty"` + Secure bool `json:"secure,omitempty"` + Sid string `json:"sid,omitempty"` + TransferMode string `json:"transfer_mode,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/trunking/v1/model_trunking_v1_trunk_credential_list.go b/rest/trunking/v1/model_trunking_v1_trunk_credential_list.go new file mode 100644 index 000000000..e536f52aa --- /dev/null +++ b/rest/trunking/v1/model_trunking_v1_trunk_credential_list.go @@ -0,0 +1,24 @@ +/* + * Twilio - Trunking + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// TrunkingV1TrunkCredentialList struct for TrunkingV1TrunkCredentialList +type TrunkingV1TrunkCredentialList struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Sid string `json:"sid,omitempty"` + TrunkSid string `json:"trunk_sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/trunking/v1/model_trunking_v1_trunk_credential_list_read_response.go b/rest/trunking/v1/model_trunking_v1_trunk_credential_list_read_response.go new file mode 100644 index 000000000..6bfe790b6 --- /dev/null +++ b/rest/trunking/v1/model_trunking_v1_trunk_credential_list_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Trunking + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// TrunkingV1TrunkCredentialListReadResponse struct for TrunkingV1TrunkCredentialListReadResponse +type TrunkingV1TrunkCredentialListReadResponse struct { + CredentialLists []TrunkingV1TrunkCredentialList `json:"credential_lists,omitempty"` + Meta TrunkingV1TrunkReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/trunking/v1/model_trunking_v1_trunk_ip_access_control_list.go b/rest/trunking/v1/model_trunking_v1_trunk_ip_access_control_list.go new file mode 100644 index 000000000..e7574566d --- /dev/null +++ b/rest/trunking/v1/model_trunking_v1_trunk_ip_access_control_list.go @@ -0,0 +1,24 @@ +/* + * Twilio - Trunking + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// TrunkingV1TrunkIpAccessControlList struct for TrunkingV1TrunkIpAccessControlList +type TrunkingV1TrunkIpAccessControlList struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Sid string `json:"sid,omitempty"` + TrunkSid string `json:"trunk_sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/trunking/v1/model_trunking_v1_trunk_ip_access_control_list_read_response.go b/rest/trunking/v1/model_trunking_v1_trunk_ip_access_control_list_read_response.go new file mode 100644 index 000000000..bba043b0e --- /dev/null +++ b/rest/trunking/v1/model_trunking_v1_trunk_ip_access_control_list_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Trunking + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// TrunkingV1TrunkIpAccessControlListReadResponse struct for TrunkingV1TrunkIpAccessControlListReadResponse +type TrunkingV1TrunkIpAccessControlListReadResponse struct { + IpAccessControlLists []TrunkingV1TrunkIpAccessControlList `json:"ip_access_control_lists,omitempty"` + Meta TrunkingV1TrunkReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/trunking/v1/model_trunking_v1_trunk_origination_url.go b/rest/trunking/v1/model_trunking_v1_trunk_origination_url.go new file mode 100644 index 000000000..442556fe3 --- /dev/null +++ b/rest/trunking/v1/model_trunking_v1_trunk_origination_url.go @@ -0,0 +1,28 @@ +/* + * Twilio - Trunking + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// TrunkingV1TrunkOriginationUrl struct for TrunkingV1TrunkOriginationUrl +type TrunkingV1TrunkOriginationUrl struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Enabled bool `json:"enabled,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Priority int32 `json:"priority,omitempty"` + Sid string `json:"sid,omitempty"` + SipUrl string `json:"sip_url,omitempty"` + TrunkSid string `json:"trunk_sid,omitempty"` + Url string `json:"url,omitempty"` + Weight int32 `json:"weight,omitempty"` +} diff --git a/rest/trunking/v1/model_trunking_v1_trunk_origination_url_read_response.go b/rest/trunking/v1/model_trunking_v1_trunk_origination_url_read_response.go new file mode 100644 index 000000000..1363ad037 --- /dev/null +++ b/rest/trunking/v1/model_trunking_v1_trunk_origination_url_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Trunking + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// TrunkingV1TrunkOriginationUrlReadResponse struct for TrunkingV1TrunkOriginationUrlReadResponse +type TrunkingV1TrunkOriginationUrlReadResponse struct { + Meta TrunkingV1TrunkReadResponseMeta `json:"meta,omitempty"` + OriginationUrls []TrunkingV1TrunkOriginationUrl `json:"origination_urls,omitempty"` +} diff --git a/rest/trunking/v1/model_trunking_v1_trunk_phone_number.go b/rest/trunking/v1/model_trunking_v1_trunk_phone_number.go new file mode 100644 index 000000000..4437f64c4 --- /dev/null +++ b/rest/trunking/v1/model_trunking_v1_trunk_phone_number.go @@ -0,0 +1,43 @@ +/* + * Twilio - Trunking + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// TrunkingV1TrunkPhoneNumber struct for TrunkingV1TrunkPhoneNumber +type TrunkingV1TrunkPhoneNumber struct { + AccountSid string `json:"account_sid,omitempty"` + AddressRequirements string `json:"address_requirements,omitempty"` + ApiVersion string `json:"api_version,omitempty"` + Beta bool `json:"beta,omitempty"` + Capabilities map[string]interface{} `json:"capabilities,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + PhoneNumber string `json:"phone_number,omitempty"` + Sid string `json:"sid,omitempty"` + SmsApplicationSid string `json:"sms_application_sid,omitempty"` + SmsFallbackMethod string `json:"sms_fallback_method,omitempty"` + SmsFallbackUrl string `json:"sms_fallback_url,omitempty"` + SmsMethod string `json:"sms_method,omitempty"` + SmsUrl string `json:"sms_url,omitempty"` + StatusCallback string `json:"status_callback,omitempty"` + StatusCallbackMethod string `json:"status_callback_method,omitempty"` + TrunkSid string `json:"trunk_sid,omitempty"` + Url string `json:"url,omitempty"` + VoiceApplicationSid string `json:"voice_application_sid,omitempty"` + VoiceCallerIdLookup bool `json:"voice_caller_id_lookup,omitempty"` + VoiceFallbackMethod string `json:"voice_fallback_method,omitempty"` + VoiceFallbackUrl string `json:"voice_fallback_url,omitempty"` + VoiceMethod string `json:"voice_method,omitempty"` + VoiceUrl string `json:"voice_url,omitempty"` +} diff --git a/rest/trunking/v1/model_trunking_v1_trunk_phone_number_read_response.go b/rest/trunking/v1/model_trunking_v1_trunk_phone_number_read_response.go new file mode 100644 index 000000000..a85d1c113 --- /dev/null +++ b/rest/trunking/v1/model_trunking_v1_trunk_phone_number_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Trunking + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// TrunkingV1TrunkPhoneNumberReadResponse struct for TrunkingV1TrunkPhoneNumberReadResponse +type TrunkingV1TrunkPhoneNumberReadResponse struct { + Meta TrunkingV1TrunkReadResponseMeta `json:"meta,omitempty"` + PhoneNumbers []TrunkingV1TrunkPhoneNumber `json:"phone_numbers,omitempty"` +} diff --git a/rest/trunking/v1/model_trunking_v1_trunk_read_response.go b/rest/trunking/v1/model_trunking_v1_trunk_read_response.go new file mode 100644 index 000000000..a48be39fb --- /dev/null +++ b/rest/trunking/v1/model_trunking_v1_trunk_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Trunking + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// TrunkingV1TrunkReadResponse struct for TrunkingV1TrunkReadResponse +type TrunkingV1TrunkReadResponse struct { + Meta TrunkingV1TrunkReadResponseMeta `json:"meta,omitempty"` + Trunks []TrunkingV1Trunk `json:"trunks,omitempty"` +} diff --git a/rest/trunking/v1/model_trunking_v1_trunk_read_response_meta.go b/rest/trunking/v1/model_trunking_v1_trunk_read_response_meta.go new file mode 100644 index 000000000..552a00c6f --- /dev/null +++ b/rest/trunking/v1/model_trunking_v1_trunk_read_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Trunking + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// TrunkingV1TrunkReadResponseMeta struct for TrunkingV1TrunkReadResponseMeta +type TrunkingV1TrunkReadResponseMeta struct { + FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` + NextPageUrl string `json:"next_page_url,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUrl string `json:"previous_page_url,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/trunking/v1/model_trunking_v1_trunk_recording.go b/rest/trunking/v1/model_trunking_v1_trunk_recording.go new file mode 100644 index 000000000..83af05760 --- /dev/null +++ b/rest/trunking/v1/model_trunking_v1_trunk_recording.go @@ -0,0 +1,16 @@ +/* + * Twilio - Trunking + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// TrunkingV1TrunkRecording struct for TrunkingV1TrunkRecording +type TrunkingV1TrunkRecording struct { + Mode string `json:"mode,omitempty"` + Trim string `json:"trim,omitempty"` +} diff --git a/rest/trunking/v1/model_update_origination_url_request.go b/rest/trunking/v1/model_update_origination_url_request.go new file mode 100644 index 000000000..28ee38327 --- /dev/null +++ b/rest/trunking/v1/model_update_origination_url_request.go @@ -0,0 +1,24 @@ +/* + * Twilio - Trunking + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateOriginationUrlRequest struct for UpdateOriginationUrlRequest +type UpdateOriginationUrlRequest struct { + // Whether the URL is enabled. The default is `true`. + Enabled bool `json:"Enabled,omitempty"` + // A descriptive string that you create to describe the resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // The relative importance of the URI. Can be an integer from 0 to 65535, inclusive, and the default is 10. The lowest number represents the most important URI. + Priority int32 `json:"Priority,omitempty"` + // The SIP address you want Twilio to route your Origination calls to. This must be a `sip:` schema. `sips` is NOT supported. + SipUrl string `json:"SipUrl,omitempty"` + // The value that determines the relative share of the load the URI should receive compared to other URIs with the same priority. Can be an integer from 1 to 65535, inclusive, and the default is 10. URLs with higher values receive more load than those with lower ones with the same priority. + Weight int32 `json:"Weight,omitempty"` +} diff --git a/rest/trunking/v1/model_update_recording_request.go b/rest/trunking/v1/model_update_recording_request.go new file mode 100644 index 000000000..ec25a16eb --- /dev/null +++ b/rest/trunking/v1/model_update_recording_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Trunking + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateRecordingRequest struct for UpdateRecordingRequest +type UpdateRecordingRequest struct { + // The recording mode for the trunk. Can be do-not-record (default), record-from-ringing, record-from-answer, record-from-ringing-dual, or record-from-answer-dual. + Mode string `json:"Mode,omitempty"` + // The recording trim setting for the trunk. Can be do-not-trim (default) or trim-silence. + Trim string `json:"Trim,omitempty"` +} diff --git a/rest/trunking/v1/model_update_trunk_request.go b/rest/trunking/v1/model_update_trunk_request.go new file mode 100644 index 000000000..485a0f7c3 --- /dev/null +++ b/rest/trunking/v1/model_update_trunk_request.go @@ -0,0 +1,28 @@ +/* + * Twilio - Trunking + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateTrunkRequest struct for UpdateTrunkRequest +type UpdateTrunkRequest struct { + // Whether Caller ID Name (CNAM) lookup should be enabled for the trunk. If enabled, all inbound calls to the SIP Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information. + CnamLookupEnabled bool `json:"CnamLookupEnabled,omitempty"` + // The HTTP method we should use to call the `disaster_recovery_url`. Can be: `GET` or `POST`. + DisasterRecoveryMethod string `json:"DisasterRecoveryMethod,omitempty"` + // The URL we should call using the `disaster_recovery_method` if an error occurs while sending SIP traffic towards the configured Origination URL. We retrieve TwiML from the URL and execute the instructions like any other normal TwiML call. See [Disaster Recovery](https://www.twilio.com/docs/sip-trunking#disaster-recovery) for more information. + DisasterRecoveryUrl string `json:"DisasterRecoveryUrl,omitempty"` + // 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 `pstn.twilio.com`. See [Termination Settings](https://www.twilio.com/docs/sip-trunking#termination) for more information. + DomainName string `json:"DomainName,omitempty"` + // A descriptive string that you create to describe the resource. It can be up to 64 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // Whether Secure Trunking is enabled for the trunk. If enabled, all calls going through the trunk will be secure using SRTP for media and TLS for signaling. If disabled, then RTP will be used for media. See [Secure Trunking](https://www.twilio.com/docs/sip-trunking#securetrunking) for more information. + Secure bool `json:"Secure,omitempty"` + // The call transfer settings for the trunk. Can be: `enable-all`, `sip-only` and `disable-all`. See [Transfer](https://www.twilio.com/docs/sip-trunking/call-transfer) for more information. + TransferMode string `json:"TransferMode,omitempty"` +} diff --git a/rest/trunking/v1/response.go b/rest/trunking/v1/response.go new file mode 100644 index 000000000..4fdda56e9 --- /dev/null +++ b/rest/trunking/v1/response.go @@ -0,0 +1,47 @@ +/* + * Twilio - Trunking + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// Response returns a new APIResponse object. +func Response(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// ResponseWithError returns a new APIResponse object with the provided error message. +func ResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/rest/verify/v2/.openapi-generator-ignore b/rest/verify/v2/.openapi-generator-ignore new file mode 100644 index 000000000..7484ee590 --- /dev/null +++ b/rest/verify/v2/.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/rest/verify/v2/.openapi-generator/VERSION b/rest/verify/v2/.openapi-generator/VERSION new file mode 100644 index 000000000..ecedc98d1 --- /dev/null +++ b/rest/verify/v2/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.3.1 \ No newline at end of file diff --git a/rest/verify/v2/README.md b/rest/verify/v2/README.md new file mode 100644 index 000000000..f293e58df --- /dev/null +++ b/rest/verify/v2/README.md @@ -0,0 +1,146 @@ +# Go API client for openapi + +This is the public Twilio REST API. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 5.15.0 +- Package version: 1.0.0 +- Build package: com.twilio.oai.TwilioGoGenerator +For more information, please visit [https://support.twilio.com](https://support.twilio.com) + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import "./openapi" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**CreateAccessToken**](docs/DefaultApi.md#createaccesstoken) | **Post** /v2/Services/{ServiceSid}/AccessTokens | +*DefaultApi* | [**CreateBucket**](docs/DefaultApi.md#createbucket) | **Post** /v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets | +*DefaultApi* | [**CreateChallenge**](docs/DefaultApi.md#createchallenge) | **Post** /v2/Services/{ServiceSid}/Entities/{Identity}/Challenges | +*DefaultApi* | [**CreateEntity**](docs/DefaultApi.md#createentity) | **Post** /v2/Services/{ServiceSid}/Entities | +*DefaultApi* | [**CreateFactor**](docs/DefaultApi.md#createfactor) | **Post** /v2/Services/{ServiceSid}/Entities/{Identity}/Factors | +*DefaultApi* | [**CreateMessagingConfiguration**](docs/DefaultApi.md#createmessagingconfiguration) | **Post** /v2/Services/{ServiceSid}/MessagingConfigurations | +*DefaultApi* | [**CreateRateLimit**](docs/DefaultApi.md#createratelimit) | **Post** /v2/Services/{ServiceSid}/RateLimits | +*DefaultApi* | [**CreateService**](docs/DefaultApi.md#createservice) | **Post** /v2/Services | +*DefaultApi* | [**CreateVerification**](docs/DefaultApi.md#createverification) | **Post** /v2/Services/{ServiceSid}/Verifications | +*DefaultApi* | [**CreateVerificationCheck**](docs/DefaultApi.md#createverificationcheck) | **Post** /v2/Services/{ServiceSid}/VerificationCheck | +*DefaultApi* | [**CreateWebhook**](docs/DefaultApi.md#createwebhook) | **Post** /v2/Services/{ServiceSid}/Webhooks | +*DefaultApi* | [**DeleteBucket**](docs/DefaultApi.md#deletebucket) | **Delete** /v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid} | +*DefaultApi* | [**DeleteEntity**](docs/DefaultApi.md#deleteentity) | **Delete** /v2/Services/{ServiceSid}/Entities/{Identity} | +*DefaultApi* | [**DeleteFactor**](docs/DefaultApi.md#deletefactor) | **Delete** /v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid} | +*DefaultApi* | [**DeleteMessagingConfiguration**](docs/DefaultApi.md#deletemessagingconfiguration) | **Delete** /v2/Services/{ServiceSid}/MessagingConfigurations/{Country} | +*DefaultApi* | [**DeleteRateLimit**](docs/DefaultApi.md#deleteratelimit) | **Delete** /v2/Services/{ServiceSid}/RateLimits/{Sid} | +*DefaultApi* | [**DeleteService**](docs/DefaultApi.md#deleteservice) | **Delete** /v2/Services/{Sid} | +*DefaultApi* | [**DeleteWebhook**](docs/DefaultApi.md#deletewebhook) | **Delete** /v2/Services/{ServiceSid}/Webhooks/{Sid} | +*DefaultApi* | [**FetchBucket**](docs/DefaultApi.md#fetchbucket) | **Get** /v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid} | +*DefaultApi* | [**FetchChallenge**](docs/DefaultApi.md#fetchchallenge) | **Get** /v2/Services/{ServiceSid}/Entities/{Identity}/Challenges/{Sid} | +*DefaultApi* | [**FetchEntity**](docs/DefaultApi.md#fetchentity) | **Get** /v2/Services/{ServiceSid}/Entities/{Identity} | +*DefaultApi* | [**FetchFactor**](docs/DefaultApi.md#fetchfactor) | **Get** /v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid} | +*DefaultApi* | [**FetchForm**](docs/DefaultApi.md#fetchform) | **Get** /v2/Forms/{FormType} | +*DefaultApi* | [**FetchMessagingConfiguration**](docs/DefaultApi.md#fetchmessagingconfiguration) | **Get** /v2/Services/{ServiceSid}/MessagingConfigurations/{Country} | +*DefaultApi* | [**FetchRateLimit**](docs/DefaultApi.md#fetchratelimit) | **Get** /v2/Services/{ServiceSid}/RateLimits/{Sid} | +*DefaultApi* | [**FetchService**](docs/DefaultApi.md#fetchservice) | **Get** /v2/Services/{Sid} | +*DefaultApi* | [**FetchVerification**](docs/DefaultApi.md#fetchverification) | **Get** /v2/Services/{ServiceSid}/Verifications/{Sid} | +*DefaultApi* | [**FetchWebhook**](docs/DefaultApi.md#fetchwebhook) | **Get** /v2/Services/{ServiceSid}/Webhooks/{Sid} | +*DefaultApi* | [**ListBucket**](docs/DefaultApi.md#listbucket) | **Get** /v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets | +*DefaultApi* | [**ListChallenge**](docs/DefaultApi.md#listchallenge) | **Get** /v2/Services/{ServiceSid}/Entities/{Identity}/Challenges | +*DefaultApi* | [**ListEntity**](docs/DefaultApi.md#listentity) | **Get** /v2/Services/{ServiceSid}/Entities | +*DefaultApi* | [**ListFactor**](docs/DefaultApi.md#listfactor) | **Get** /v2/Services/{ServiceSid}/Entities/{Identity}/Factors | +*DefaultApi* | [**ListMessagingConfiguration**](docs/DefaultApi.md#listmessagingconfiguration) | **Get** /v2/Services/{ServiceSid}/MessagingConfigurations | +*DefaultApi* | [**ListRateLimit**](docs/DefaultApi.md#listratelimit) | **Get** /v2/Services/{ServiceSid}/RateLimits | +*DefaultApi* | [**ListService**](docs/DefaultApi.md#listservice) | **Get** /v2/Services | +*DefaultApi* | [**ListWebhook**](docs/DefaultApi.md#listwebhook) | **Get** /v2/Services/{ServiceSid}/Webhooks | +*DefaultApi* | [**UpdateBucket**](docs/DefaultApi.md#updatebucket) | **Post** /v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid} | +*DefaultApi* | [**UpdateChallenge**](docs/DefaultApi.md#updatechallenge) | **Post** /v2/Services/{ServiceSid}/Entities/{Identity}/Challenges/{Sid} | +*DefaultApi* | [**UpdateFactor**](docs/DefaultApi.md#updatefactor) | **Post** /v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid} | +*DefaultApi* | [**UpdateMessagingConfiguration**](docs/DefaultApi.md#updatemessagingconfiguration) | **Post** /v2/Services/{ServiceSid}/MessagingConfigurations/{Country} | +*DefaultApi* | [**UpdateRateLimit**](docs/DefaultApi.md#updateratelimit) | **Post** /v2/Services/{ServiceSid}/RateLimits/{Sid} | +*DefaultApi* | [**UpdateService**](docs/DefaultApi.md#updateservice) | **Post** /v2/Services/{Sid} | +*DefaultApi* | [**UpdateVerification**](docs/DefaultApi.md#updateverification) | **Post** /v2/Services/{ServiceSid}/Verifications/{Sid} | +*DefaultApi* | [**UpdateWebhook**](docs/DefaultApi.md#updatewebhook) | **Post** /v2/Services/{ServiceSid}/Webhooks/{Sid} | + + +## Documentation For Models + + - [CreateAccessTokenRequest](docs/CreateAccessTokenRequest.md) + - [CreateBucketRequest](docs/CreateBucketRequest.md) + - [CreateChallengeRequest](docs/CreateChallengeRequest.md) + - [CreateEntityRequest](docs/CreateEntityRequest.md) + - [CreateFactorRequest](docs/CreateFactorRequest.md) + - [CreateMessagingConfigurationRequest](docs/CreateMessagingConfigurationRequest.md) + - [CreateRateLimitRequest](docs/CreateRateLimitRequest.md) + - [CreateServiceRequest](docs/CreateServiceRequest.md) + - [CreateVerificationCheckRequest](docs/CreateVerificationCheckRequest.md) + - [CreateVerificationRequest](docs/CreateVerificationRequest.md) + - [CreateWebhookRequest](docs/CreateWebhookRequest.md) + - [UpdateBucketRequest](docs/UpdateBucketRequest.md) + - [UpdateChallengeRequest](docs/UpdateChallengeRequest.md) + - [UpdateFactorRequest](docs/UpdateFactorRequest.md) + - [UpdateMessagingConfigurationRequest](docs/UpdateMessagingConfigurationRequest.md) + - [UpdateRateLimitRequest](docs/UpdateRateLimitRequest.md) + - [UpdateServiceRequest](docs/UpdateServiceRequest.md) + - [UpdateVerificationRequest](docs/UpdateVerificationRequest.md) + - [UpdateWebhookRequest](docs/UpdateWebhookRequest.md) + - [VerifyV2Form](docs/VerifyV2Form.md) + - [VerifyV2Service](docs/VerifyV2Service.md) + - [VerifyV2ServiceAccessToken](docs/VerifyV2ServiceAccessToken.md) + - [VerifyV2ServiceEntity](docs/VerifyV2ServiceEntity.md) + - [VerifyV2ServiceEntityChallenge](docs/VerifyV2ServiceEntityChallenge.md) + - [VerifyV2ServiceEntityChallengeReadResponse](docs/VerifyV2ServiceEntityChallengeReadResponse.md) + - [VerifyV2ServiceEntityFactor](docs/VerifyV2ServiceEntityFactor.md) + - [VerifyV2ServiceEntityFactorReadResponse](docs/VerifyV2ServiceEntityFactorReadResponse.md) + - [VerifyV2ServiceEntityReadResponse](docs/VerifyV2ServiceEntityReadResponse.md) + - [VerifyV2ServiceMessagingConfiguration](docs/VerifyV2ServiceMessagingConfiguration.md) + - [VerifyV2ServiceMessagingConfigurationReadResponse](docs/VerifyV2ServiceMessagingConfigurationReadResponse.md) + - [VerifyV2ServiceRateLimit](docs/VerifyV2ServiceRateLimit.md) + - [VerifyV2ServiceRateLimitBucket](docs/VerifyV2ServiceRateLimitBucket.md) + - [VerifyV2ServiceRateLimitBucketReadResponse](docs/VerifyV2ServiceRateLimitBucketReadResponse.md) + - [VerifyV2ServiceRateLimitReadResponse](docs/VerifyV2ServiceRateLimitReadResponse.md) + - [VerifyV2ServiceReadResponse](docs/VerifyV2ServiceReadResponse.md) + - [VerifyV2ServiceReadResponseMeta](docs/VerifyV2ServiceReadResponseMeta.md) + - [VerifyV2ServiceVerification](docs/VerifyV2ServiceVerification.md) + - [VerifyV2ServiceVerificationCheck](docs/VerifyV2ServiceVerificationCheck.md) + - [VerifyV2ServiceWebhook](docs/VerifyV2ServiceWebhook.md) + - [VerifyV2ServiceWebhookReadResponse](docs/VerifyV2ServiceWebhookReadResponse.md) + + +## Documentation For Authorization + + + +## accountSid_authToken + +- **Type**: HTTP basic authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ + UserName: "username", + Password: "password", +}) +r, err := client.Service.Operation(auth, args) +``` + + +## Author + +support@twilio.com + diff --git a/rest/verify/v2/api_default.go b/rest/verify/v2/api_default.go new file mode 100644 index 000000000..7f9b07111 --- /dev/null +++ b/rest/verify/v2/api_default.go @@ -0,0 +1,1962 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "" +) + +type DefaultApiService struct { + baseURL string + client *twilio.Client +} + +func NewDefaultApiService(client *twilio.Client) *DefaultApiService { + return &DefaultApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} +// CreateAccessTokenParams Optional parameters for the method 'CreateAccessToken' +type CreateAccessTokenParams struct { + FactorType *string `json:"FactorType,omitempty"` + Identity *string `json:"Identity,omitempty"` +} + +/* +CreateAccessToken Method for CreateAccessToken +Create a new enrollment Access Token for the Entity + * @param serviceSid The unique SID identifier of the Service. + * @param optional nil or *CreateAccessTokenOpts - Optional Parameters: + * @param "FactorType" (string) - The Type of this Factor. Eg. `push` + * @param "Identity" (string) - The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, and generated by your external system, such as your user's UUID, GUID, or SID. +@return VerifyV2ServiceAccessToken +*/ +func (c *DefaultApiService) CreateAccessToken(serviceSid string, params *CreateAccessTokenParams) (*VerifyV2ServiceAccessToken, error) { + path := "/v2/Services/{ServiceSid}/AccessTokens" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FactorType != nil { + data.Set("FactorType", *params.FactorType) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceAccessToken{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateBucketParams Optional parameters for the method 'CreateBucket' +type CreateBucketParams struct { + Interval *int32 `json:"Interval,omitempty"` + Max *int32 `json:"Max,omitempty"` +} + +/* +CreateBucket Method for CreateBucket +Create a new Bucket for a Rate Limit + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. + * @param rateLimitSid The Twilio-provided string that uniquely identifies the Rate Limit resource. + * @param optional nil or *CreateBucketOpts - Optional Parameters: + * @param "Interval" (int32) - Number of seconds that the rate limit will be enforced over. + * @param "Max" (int32) - Maximum number of requests permitted in during the interval. +@return VerifyV2ServiceRateLimitBucket +*/ +func (c *DefaultApiService) CreateBucket(serviceSid string, rateLimitSid string, params *CreateBucketParams) (*VerifyV2ServiceRateLimitBucket, error) { + path := "/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"RateLimitSid"+"}", rateLimitSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Interval != nil { + data.Set("Interval", string(*params.Interval)) + } + if params != nil && params.Max != nil { + data.Set("Max", string(*params.Max)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceRateLimitBucket{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateChallengeParams Optional parameters for the method 'CreateChallenge' +type CreateChallengeParams struct { + Details.Fields *[]map[string]interface{} `json:"Details.Fields,omitempty"` + Details.Message *string `json:"Details.Message,omitempty"` + ExpirationDate *time.Time `json:"ExpirationDate,omitempty"` + FactorSid *string `json:"FactorSid,omitempty"` + HiddenDetails *map[string]interface{} `json:"HiddenDetails,omitempty"` +} + +/* +CreateChallenge Method for CreateChallenge +Create a new Challenge for the Factor + * @param serviceSid The unique SID identifier of the Service. + * @param identity The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, and generated by your external system, such as your user's UUID, GUID, or SID. + * @param optional nil or *CreateChallengeOpts - Optional Parameters: + * @param "Details.Fields" ([]map[string]interface{}) - A list of objects that describe the Fields included in the Challenge. Each object contains the label and value of the field. Used when `factor_type` is `push`. + * @param "Details.Message" (string) - Shown to the user when the push notification arrives. Required when `factor_type` is `push` + * @param "ExpirationDate" (time.Time) - The date-time when this Challenge expires, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. The default value is five (5) minutes after Challenge creation. The max value is sixty (60) minutes after creation. + * @param "FactorSid" (string) - The unique SID identifier of the Factor. + * @param "HiddenDetails" (map[string]interface{}) - Details provided to give context about the Challenge. Not shown to the end user. It must be a stringified JSON with only strings values eg. `{\\\"ip\\\": \\\"172.168.1.234\\\"}` +@return VerifyV2ServiceEntityChallenge +*/ +func (c *DefaultApiService) CreateChallenge(serviceSid string, identity string, params *CreateChallengeParams) (*VerifyV2ServiceEntityChallenge, error) { + path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Details.Fields != nil { + v, err := json.Marshal(params.Details.Fields) + + if err != nil { + return nil, err + } + + data.Set("Details.Fields", string(v)) + } + if params != nil && params.Details.Message != nil { + data.Set("Details.Message", *params.Details.Message) + } + if params != nil && params.ExpirationDate != nil { + data.Set("ExpirationDate", string(*params.ExpirationDate)) + } + if params != nil && params.FactorSid != nil { + data.Set("FactorSid", *params.FactorSid) + } + if params != nil && params.HiddenDetails != nil { + v, err := json.Marshal(params.HiddenDetails) + + if err != nil { + return nil, err + } + + data.Set("HiddenDetails", string(v)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceEntityChallenge{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateEntityParams Optional parameters for the method 'CreateEntity' +type CreateEntityParams struct { + Identity *string `json:"Identity,omitempty"` +} + +/* +CreateEntity Method for CreateEntity +Create a new Entity for the Service + * @param serviceSid The unique SID identifier of the Service. + * @param optional nil or *CreateEntityOpts - Optional Parameters: + * @param "Identity" (string) - The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, length between 8 and 64 characters, and generated by your external system, such as your user's UUID, GUID, or SID. +@return VerifyV2ServiceEntity +*/ +func (c *DefaultApiService) CreateEntity(serviceSid string, params *CreateEntityParams) (*VerifyV2ServiceEntity, error) { + path := "/v2/Services/{ServiceSid}/Entities" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceEntity{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateFactorParams Optional parameters for the method 'CreateFactor' +type CreateFactorParams struct { + Binding.Alg *string `json:"Binding.Alg,omitempty"` + Binding.PublicKey *string `json:"Binding.PublicKey,omitempty"` + Config.AppId *string `json:"Config.AppId,omitempty"` + Config.NotificationPlatform *string `json:"Config.NotificationPlatform,omitempty"` + Config.NotificationToken *string `json:"Config.NotificationToken,omitempty"` + Config.SdkVersion *string `json:"Config.SdkVersion,omitempty"` + FactorType *string `json:"FactorType,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +CreateFactor Method for CreateFactor +Create a new Factor for the Entity + * @param serviceSid The unique SID identifier of the Service. + * @param identity Customer unique identity for the Entity owner of the Factor + * @param optional nil or *CreateFactorOpts - Optional Parameters: + * @param "Binding.Alg" (string) - The algorithm used when `factor_type` is `push`. Algorithm supported: `ES256` + * @param "Binding.PublicKey" (string) - The Ecdsa public key in PKIX, ASN.1 DER format encoded in Base64 + * @param "Config.AppId" (string) - The ID that uniquely identifies your app in the Google or Apple store, such as `com.example.myapp`. Required when `factor_type` is `push` + * @param "Config.NotificationPlatform" (string) - The transport technology used to generate the Notification Token. Can be `apn` or `fcm`. Required when `factor_type` is `push` + * @param "Config.NotificationToken" (string) - For APN, the device token. For FCM the registration token. It used to send the push notifications. Required when `factor_type` is `push` + * @param "Config.SdkVersion" (string) - The Verify Push SDK version used to configure the factor + * @param "FactorType" (string) - The Type of this Factor. Currently only `push` is supported + * @param "FriendlyName" (string) - The friendly name of this Factor +@return VerifyV2ServiceEntityFactor +*/ +func (c *DefaultApiService) CreateFactor(serviceSid string, identity string, params *CreateFactorParams) (*VerifyV2ServiceEntityFactor, error) { + path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Factors" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Binding.Alg != nil { + data.Set("Binding.Alg", *params.Binding.Alg) + } + if params != nil && params.Binding.PublicKey != nil { + data.Set("Binding.PublicKey", *params.Binding.PublicKey) + } + if params != nil && params.Config.AppId != nil { + data.Set("Config.AppId", *params.Config.AppId) + } + if params != nil && params.Config.NotificationPlatform != nil { + data.Set("Config.NotificationPlatform", *params.Config.NotificationPlatform) + } + if params != nil && params.Config.NotificationToken != nil { + data.Set("Config.NotificationToken", *params.Config.NotificationToken) + } + if params != nil && params.Config.SdkVersion != nil { + data.Set("Config.SdkVersion", *params.Config.SdkVersion) + } + if params != nil && params.FactorType != nil { + data.Set("FactorType", *params.FactorType) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceEntityFactor{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateMessagingConfigurationParams Optional parameters for the method 'CreateMessagingConfiguration' +type CreateMessagingConfigurationParams struct { + Country *string `json:"Country,omitempty"` + MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` +} + +/* +CreateMessagingConfiguration Method for CreateMessagingConfiguration +Create a new MessagingConfiguration for a service. + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. + * @param optional nil or *CreateMessagingConfigurationOpts - Optional Parameters: + * @param "Country" (string) - The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. + * @param "MessagingServiceSid" (string) - The SID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) to be used to send SMS to the country of this configuration. +@return VerifyV2ServiceMessagingConfiguration +*/ +func (c *DefaultApiService) CreateMessagingConfiguration(serviceSid string, params *CreateMessagingConfigurationParams) (*VerifyV2ServiceMessagingConfiguration, error) { + path := "/v2/Services/{ServiceSid}/MessagingConfigurations" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Country != nil { + data.Set("Country", *params.Country) + } + if params != nil && params.MessagingServiceSid != nil { + data.Set("MessagingServiceSid", *params.MessagingServiceSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceMessagingConfiguration{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateRateLimitParams Optional parameters for the method 'CreateRateLimit' +type CreateRateLimitParams struct { + Description *string `json:"Description,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +CreateRateLimit Method for CreateRateLimit +Create a new Rate Limit for a Service + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. + * @param optional nil or *CreateRateLimitOpts - Optional Parameters: + * @param "Description" (string) - Description of this Rate Limit + * @param "UniqueName" (string) - Provides a unique and addressable name to be assigned to this Rate Limit, assigned by the developer, to be optionally used in addition to SID. **This value should not contain PII.** +@return VerifyV2ServiceRateLimit +*/ +func (c *DefaultApiService) CreateRateLimit(serviceSid string, params *CreateRateLimitParams) (*VerifyV2ServiceRateLimit, error) { + path := "/v2/Services/{ServiceSid}/RateLimits" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Description != nil { + data.Set("Description", *params.Description) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceRateLimit{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateServiceParams Optional parameters for the method 'CreateService' +type CreateServiceParams struct { + CodeLength *int32 `json:"CodeLength,omitempty"` + CustomCodeEnabled *bool `json:"CustomCodeEnabled,omitempty"` + DoNotShareWarningEnabled *bool `json:"DoNotShareWarningEnabled,omitempty"` + DtmfInputRequired *bool `json:"DtmfInputRequired,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + LookupEnabled *bool `json:"LookupEnabled,omitempty"` + Psd2Enabled *bool `json:"Psd2Enabled,omitempty"` + Push.ApnCredentialSid *string `json:"Push.ApnCredentialSid,omitempty"` + Push.FcmCredentialSid *string `json:"Push.FcmCredentialSid,omitempty"` + Push.IncludeDate *bool `json:"Push.IncludeDate,omitempty"` + SkipSmsToLandlines *bool `json:"SkipSmsToLandlines,omitempty"` + TtsName *string `json:"TtsName,omitempty"` +} + +/* +CreateService Method for CreateService +Create a new Verification Service. + * @param optional nil or *CreateServiceOpts - Optional Parameters: + * @param "CodeLength" (int32) - The length of the verification code to generate. Must be an integer value between 4 and 10, inclusive. + * @param "CustomCodeEnabled" (bool) - Whether to allow sending verifications with a custom code instead of a randomly generated one. Not available for all customers. + * @param "DoNotShareWarningEnabled" (bool) - Whether to add a security warning at the end of an SMS verification body. Disabled by default and applies only to SMS. Example SMS body: `Your AppName verification code is: 1234. Don’t share this code with anyone; our employees will never ask for the code` + * @param "DtmfInputRequired" (bool) - Whether to ask the user to press a number before delivering the verify code in a phone call. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the verification service. It can be up to 30 characters long. **This value should not contain PII.** + * @param "LookupEnabled" (bool) - Whether to perform a lookup with each verification started and return info about the phone number. + * @param "Psd2Enabled" (bool) - Whether to pass PSD2 transaction parameters when starting a verification. + * @param "Push.ApnCredentialSid" (string) - Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) + * @param "Push.FcmCredentialSid" (string) - Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) + * @param "Push.IncludeDate" (bool) - Optional configuration for the Push factors. If true, include the date in the Challenge's reponse. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: true + * @param "SkipSmsToLandlines" (bool) - Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`. + * @param "TtsName" (string) - The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. +@return VerifyV2Service +*/ +func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*VerifyV2Service, error) { + path := "/v2/Services" + + data := url.Values{} + headers := 0 + + if params != nil && params.CodeLength != nil { + data.Set("CodeLength", string(*params.CodeLength)) + } + if params != nil && params.CustomCodeEnabled != nil { + data.Set("CustomCodeEnabled", string(*params.CustomCodeEnabled)) + } + if params != nil && params.DoNotShareWarningEnabled != nil { + data.Set("DoNotShareWarningEnabled", string(*params.DoNotShareWarningEnabled)) + } + if params != nil && params.DtmfInputRequired != nil { + data.Set("DtmfInputRequired", string(*params.DtmfInputRequired)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.LookupEnabled != nil { + data.Set("LookupEnabled", string(*params.LookupEnabled)) + } + if params != nil && params.Psd2Enabled != nil { + data.Set("Psd2Enabled", string(*params.Psd2Enabled)) + } + if params != nil && params.Push.ApnCredentialSid != nil { + data.Set("Push.ApnCredentialSid", *params.Push.ApnCredentialSid) + } + if params != nil && params.Push.FcmCredentialSid != nil { + data.Set("Push.FcmCredentialSid", *params.Push.FcmCredentialSid) + } + if params != nil && params.Push.IncludeDate != nil { + data.Set("Push.IncludeDate", string(*params.Push.IncludeDate)) + } + if params != nil && params.SkipSmsToLandlines != nil { + data.Set("SkipSmsToLandlines", string(*params.SkipSmsToLandlines)) + } + if params != nil && params.TtsName != nil { + data.Set("TtsName", *params.TtsName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateVerificationParams Optional parameters for the method 'CreateVerification' +type CreateVerificationParams struct { + Amount *string `json:"Amount,omitempty"` + AppHash *string `json:"AppHash,omitempty"` + Channel *string `json:"Channel,omitempty"` + ChannelConfiguration *map[string]interface{} `json:"ChannelConfiguration,omitempty"` + CustomCode *string `json:"CustomCode,omitempty"` + CustomFriendlyName *string `json:"CustomFriendlyName,omitempty"` + CustomMessage *string `json:"CustomMessage,omitempty"` + Locale *string `json:"Locale,omitempty"` + Payee *string `json:"Payee,omitempty"` + RateLimits *map[string]interface{} `json:"RateLimits,omitempty"` + SendDigits *string `json:"SendDigits,omitempty"` + To *string `json:"To,omitempty"` +} + +/* +CreateVerification Method for CreateVerification +Create a new Verification using a Service + * @param serviceSid The SID of the verification [Service](https://www.twilio.com/docs/verify/api/service) to create the resource under. + * @param optional nil or *CreateVerificationOpts - Optional Parameters: + * @param "Amount" (string) - The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. + * @param "AppHash" (string) - Your [App Hash](https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string) to be appended at the end of your verification SMS body. Applies only to SMS. Example SMS body: `<#> Your AppName verification code is: 1234 He42w354ol9`. + * @param "Channel" (string) - The verification method to use. Can be: [`email`](https://www.twilio.com/docs/verify/email), `sms` or `call`. + * @param "ChannelConfiguration" (map[string]interface{}) - [`email`](https://www.twilio.com/docs/verify/email) channel configuration in json format. Must include 'from' and 'from_name'. + * @param "CustomCode" (string) - A pre-generated code to use for verification. The code can be between 4 and 10 characters, inclusive. + * @param "CustomFriendlyName" (string) - A custom user defined friendly name that overwrites the existing one in the verification message + * @param "CustomMessage" (string) - The text of a custom message to use for the verification. + * @param "Locale" (string) - The locale to use for the verification SMS or call. Can be: `af`, `ar`, `ca`, `cs`, `da`, `de`, `el`, `en`, `en-GB`, `es`, `fi`, `fr`, `he`, `hi`, `hr`, `hu`, `id`, `it`, `ja`, `ko`, `ms`, `nb`, `nl`, `pl`, `pt`, `pr-BR`, `ro`, `ru`, `sv`, `th`, `tl`, `tr`, `vi`, `zh`, `zh-CN`, or `zh-HK.` + * @param "Payee" (string) - The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. + * @param "RateLimits" (map[string]interface{}) - The custom key-value pairs of Programmable Rate Limits. Keys correspond to `unique_name` fields defined when [creating your Rate Limit](https://www.twilio.com/docs/verify/api/service-rate-limits). Associated value pairs represent values in the request that you are rate limiting on. You may include multiple Rate Limit values in each request. + * @param "SendDigits" (string) - The digits to send after a phone call is answered, for example, to dial an extension. For more information, see the Programmable Voice documentation of [sendDigits](https://www.twilio.com/docs/voice/twiml/number#attributes-sendDigits). + * @param "To" (string) - The phone number or [email](https://www.twilio.com/docs/verify/email) to verify. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). +@return VerifyV2ServiceVerification +*/ +func (c *DefaultApiService) CreateVerification(serviceSid string, params *CreateVerificationParams) (*VerifyV2ServiceVerification, error) { + path := "/v2/Services/{ServiceSid}/Verifications" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Amount != nil { + data.Set("Amount", *params.Amount) + } + if params != nil && params.AppHash != nil { + data.Set("AppHash", *params.AppHash) + } + if params != nil && params.Channel != nil { + data.Set("Channel", *params.Channel) + } + if params != nil && params.ChannelConfiguration != nil { + v, err := json.Marshal(params.ChannelConfiguration) + + if err != nil { + return nil, err + } + + data.Set("ChannelConfiguration", string(v)) + } + if params != nil && params.CustomCode != nil { + data.Set("CustomCode", *params.CustomCode) + } + if params != nil && params.CustomFriendlyName != nil { + data.Set("CustomFriendlyName", *params.CustomFriendlyName) + } + if params != nil && params.CustomMessage != nil { + data.Set("CustomMessage", *params.CustomMessage) + } + if params != nil && params.Locale != nil { + data.Set("Locale", *params.Locale) + } + if params != nil && params.Payee != nil { + data.Set("Payee", *params.Payee) + } + if params != nil && params.RateLimits != nil { + v, err := json.Marshal(params.RateLimits) + + if err != nil { + return nil, err + } + + data.Set("RateLimits", string(v)) + } + if params != nil && params.SendDigits != nil { + data.Set("SendDigits", *params.SendDigits) + } + if params != nil && params.To != nil { + data.Set("To", *params.To) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceVerification{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateVerificationCheckParams Optional parameters for the method 'CreateVerificationCheck' +type CreateVerificationCheckParams struct { + Amount *string `json:"Amount,omitempty"` + Code *string `json:"Code,omitempty"` + Payee *string `json:"Payee,omitempty"` + To *string `json:"To,omitempty"` + VerificationSid *string `json:"VerificationSid,omitempty"` +} + +/* +CreateVerificationCheck Method for CreateVerificationCheck +challenge a specific Verification Check. + * @param serviceSid The SID of the verification [Service](https://www.twilio.com/docs/verify/api/service) to create the resource under. + * @param optional nil or *CreateVerificationCheckOpts - Optional Parameters: + * @param "Amount" (string) - The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. + * @param "Code" (string) - The 4-10 character string being verified. + * @param "Payee" (string) - The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. + * @param "To" (string) - The phone number or [email](https://www.twilio.com/docs/verify/email) to verify. Either this parameter or the `verification_sid` must be specified. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). + * @param "VerificationSid" (string) - A SID that uniquely identifies the Verification Check. Either this parameter or the `to` phone number/[email](https://www.twilio.com/docs/verify/email) must be specified. +@return VerifyV2ServiceVerificationCheck +*/ +func (c *DefaultApiService) CreateVerificationCheck(serviceSid string, params *CreateVerificationCheckParams) (*VerifyV2ServiceVerificationCheck, error) { + path := "/v2/Services/{ServiceSid}/VerificationCheck" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Amount != nil { + data.Set("Amount", *params.Amount) + } + if params != nil && params.Code != nil { + data.Set("Code", *params.Code) + } + if params != nil && params.Payee != nil { + data.Set("Payee", *params.Payee) + } + if params != nil && params.To != nil { + data.Set("To", *params.To) + } + if params != nil && params.VerificationSid != nil { + data.Set("VerificationSid", *params.VerificationSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceVerificationCheck{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateWebhookParams Optional parameters for the method 'CreateWebhook' +type CreateWebhookParams struct { + EventTypes *[]string `json:"EventTypes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Status *string `json:"Status,omitempty"` + WebhookUrl *string `json:"WebhookUrl,omitempty"` +} + +/* +CreateWebhook Method for CreateWebhook +Create a new Webhook for the Service + * @param serviceSid The unique SID identifier of the Service. + * @param optional nil or *CreateWebhookOpts - Optional Parameters: + * @param "EventTypes" ([]string) - The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied` + * @param "FriendlyName" (string) - The string that you assigned to describe the webhook. **This value should not contain PII.** + * @param "Status" (string) - The webhook status. Default value is `enabled`. One of: `enabled` or `disabled` + * @param "WebhookUrl" (string) - The URL associated with this Webhook. +@return VerifyV2ServiceWebhook +*/ +func (c *DefaultApiService) CreateWebhook(serviceSid string, params *CreateWebhookParams) (*VerifyV2ServiceWebhook, error) { + path := "/v2/Services/{ServiceSid}/Webhooks" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.EventTypes != nil { + data.Set("EventTypes", *params.EventTypes) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.WebhookUrl != nil { + data.Set("WebhookUrl", *params.WebhookUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +DeleteBucket Method for DeleteBucket +Delete a specific Bucket. + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. + * @param rateLimitSid The Twilio-provided string that uniquely identifies the Rate Limit resource. + * @param sid A 34 character string that uniquely identifies this Bucket. +*/ +func (c *DefaultApiService) DeleteBucket(serviceSid string, rateLimitSid string, sid string) (error) { + path := "/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"RateLimitSid"+"}", rateLimitSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteEntity Method for DeleteEntity +Delete a specific Entity. + * @param serviceSid The unique SID identifier of the Service. + * @param identity The unique external identifier for the Entity of the Service +*/ +func (c *DefaultApiService) DeleteEntity(serviceSid string, identity string) (error) { + path := "/v2/Services/{ServiceSid}/Entities/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteFactor Method for DeleteFactor +Delete a specific Factor. + * @param serviceSid The unique SID identifier of the Service. + * @param identity Customer unique identity for the Entity owner of the Factor + * @param sid A 34 character string that uniquely identifies this Factor. +*/ +func (c *DefaultApiService) DeleteFactor(serviceSid string, identity string, sid string) (error) { + path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteMessagingConfiguration Method for DeleteMessagingConfiguration +Delete a specific MessagingConfiguration. + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. + * @param country The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. +*/ +func (c *DefaultApiService) DeleteMessagingConfiguration(serviceSid string, country string) (error) { + path := "/v2/Services/{ServiceSid}/MessagingConfigurations/{Country}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Country"+"}", country, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteRateLimit Method for DeleteRateLimit +Delete a specific Rate Limit. + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. + * @param sid The Twilio-provided string that uniquely identifies the Rate Limit resource to fetch. +*/ +func (c *DefaultApiService) DeleteRateLimit(serviceSid string, sid string) (error) { + path := "/v2/Services/{ServiceSid}/RateLimits/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteService Method for DeleteService +Delete a specific Verification Service Instance. + * @param sid The Twilio-provided string that uniquely identifies the Verification Service resource to delete. +*/ +func (c *DefaultApiService) DeleteService(sid string) (error) { + path := "/v2/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteWebhook Method for DeleteWebhook +Delete a specific Webhook. + * @param serviceSid The unique SID identifier of the Service. + * @param sid The Twilio-provided string that uniquely identifies the Webhook resource to delete. +*/ +func (c *DefaultApiService) DeleteWebhook(serviceSid string, sid string) (error) { + path := "/v2/Services/{ServiceSid}/Webhooks/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +FetchBucket Method for FetchBucket +Fetch a specific Bucket. + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. + * @param rateLimitSid The Twilio-provided string that uniquely identifies the Rate Limit resource. + * @param sid A 34 character string that uniquely identifies this Bucket. +@return VerifyV2ServiceRateLimitBucket +*/ +func (c *DefaultApiService) FetchBucket(serviceSid string, rateLimitSid string, sid string) (*VerifyV2ServiceRateLimitBucket, error) { + path := "/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"RateLimitSid"+"}", rateLimitSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceRateLimitBucket{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchChallenge Method for FetchChallenge +Fetch a specific Challenge. + * @param serviceSid The unique SID identifier of the Service. + * @param identity The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, and generated by your external system, such as your user's UUID, GUID, or SID. + * @param sid A 34 character string that uniquely identifies this Challenge. +@return VerifyV2ServiceEntityChallenge +*/ +func (c *DefaultApiService) FetchChallenge(serviceSid string, identity string, sid string) (*VerifyV2ServiceEntityChallenge, error) { + path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceEntityChallenge{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchEntity Method for FetchEntity +Fetch a specific Entity. + * @param serviceSid The unique SID identifier of the Service. + * @param identity The unique external identifier for the Entity of the Service +@return VerifyV2ServiceEntity +*/ +func (c *DefaultApiService) FetchEntity(serviceSid string, identity string) (*VerifyV2ServiceEntity, error) { + path := "/v2/Services/{ServiceSid}/Entities/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceEntity{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchFactor Method for FetchFactor +Fetch a specific Factor. + * @param serviceSid The unique SID identifier of the Service. + * @param identity Customer unique identity for the Entity owner of the Factor + * @param sid A 34 character string that uniquely identifies this Factor. +@return VerifyV2ServiceEntityFactor +*/ +func (c *DefaultApiService) FetchFactor(serviceSid string, identity string, sid string) (*VerifyV2ServiceEntityFactor, error) { + path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceEntityFactor{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchForm Method for FetchForm +Fetch the forms for a specific Form Type. + * @param formType The Type of this Form. Currently only `form-push` is supported. +@return VerifyV2Form +*/ +func (c *DefaultApiService) FetchForm(formType string) (*VerifyV2Form, error) { + path := "/v2/Forms/{FormType}" + path = strings.Replace(path, "{"+"FormType"+"}", formType, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2Form{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchMessagingConfiguration Method for FetchMessagingConfiguration +Fetch a specific MessagingConfiguration. + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. + * @param country The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. +@return VerifyV2ServiceMessagingConfiguration +*/ +func (c *DefaultApiService) FetchMessagingConfiguration(serviceSid string, country string) (*VerifyV2ServiceMessagingConfiguration, error) { + path := "/v2/Services/{ServiceSid}/MessagingConfigurations/{Country}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Country"+"}", country, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceMessagingConfiguration{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchRateLimit Method for FetchRateLimit +Fetch a specific Rate Limit. + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. + * @param sid The Twilio-provided string that uniquely identifies the Rate Limit resource to fetch. +@return VerifyV2ServiceRateLimit +*/ +func (c *DefaultApiService) FetchRateLimit(serviceSid string, sid string) (*VerifyV2ServiceRateLimit, error) { + path := "/v2/Services/{ServiceSid}/RateLimits/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceRateLimit{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchService Method for FetchService +Fetch specific Verification Service Instance. + * @param sid The Twilio-provided string that uniquely identifies the Verification Service resource to fetch. +@return VerifyV2Service +*/ +func (c *DefaultApiService) FetchService(sid string) (*VerifyV2Service, error) { + path := "/v2/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchVerification Method for FetchVerification +Fetch a specific Verification + * @param serviceSid The SID of the verification [Service](https://www.twilio.com/docs/verify/api/service) to fetch the resource from. + * @param sid The Twilio-provided string that uniquely identifies the Verification resource to fetch. +@return VerifyV2ServiceVerification +*/ +func (c *DefaultApiService) FetchVerification(serviceSid string, sid string) (*VerifyV2ServiceVerification, error) { + path := "/v2/Services/{ServiceSid}/Verifications/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceVerification{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchWebhook Method for FetchWebhook +Fetch a specific Webhook. + * @param serviceSid The unique SID identifier of the Service. + * @param sid The Twilio-provided string that uniquely identifies the Webhook resource to fetch. +@return VerifyV2ServiceWebhook +*/ +func (c *DefaultApiService) FetchWebhook(serviceSid string, sid string) (*VerifyV2ServiceWebhook, error) { + path := "/v2/Services/{ServiceSid}/Webhooks/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListBucketParams Optional parameters for the method 'ListBucket' +type ListBucketParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListBucket Method for ListBucket +Retrieve a list of all Buckets for a Rate Limit. + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. + * @param rateLimitSid The Twilio-provided string that uniquely identifies the Rate Limit resource. + * @param optional nil or *ListBucketOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return VerifyV2ServiceRateLimitBucketReadResponse +*/ +func (c *DefaultApiService) ListBucket(serviceSid string, rateLimitSid string, params *ListBucketParams) (*VerifyV2ServiceRateLimitBucketReadResponse, error) { + path := "/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"RateLimitSid"+"}", rateLimitSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceRateLimitBucketReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListChallengeParams Optional parameters for the method 'ListChallenge' +type ListChallengeParams struct { + FactorSid *string `json:"FactorSid,omitempty"` + Status *string `json:"Status,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListChallenge Method for ListChallenge +Retrieve a list of all Challenges for a Factor. + * @param serviceSid The unique SID identifier of the Service. + * @param identity Customer unique identity for the Entity owner of the Challenge + * @param optional nil or *ListChallengeOpts - Optional Parameters: + * @param "FactorSid" (string) - The unique SID identifier of the Factor. + * @param "Status" (string) - The Status of the Challenges to fetch. One of `pending`, `expired`, `approved` or `denied`. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return VerifyV2ServiceEntityChallengeReadResponse +*/ +func (c *DefaultApiService) ListChallenge(serviceSid string, identity string, params *ListChallengeParams) (*VerifyV2ServiceEntityChallengeReadResponse, error) { + path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FactorSid != nil { + data.Set("FactorSid", *params.FactorSid) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceEntityChallengeReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListEntityParams Optional parameters for the method 'ListEntity' +type ListEntityParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListEntity Method for ListEntity +Retrieve a list of all Entities for a Service. + * @param serviceSid The unique SID identifier of the Service. + * @param optional nil or *ListEntityOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return VerifyV2ServiceEntityReadResponse +*/ +func (c *DefaultApiService) ListEntity(serviceSid string, params *ListEntityParams) (*VerifyV2ServiceEntityReadResponse, error) { + path := "/v2/Services/{ServiceSid}/Entities" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceEntityReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListFactorParams Optional parameters for the method 'ListFactor' +type ListFactorParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListFactor Method for ListFactor +Retrieve a list of all Factors for an Entity. + * @param serviceSid The unique SID identifier of the Service. + * @param identity Customer unique identity for the Entity owner of the Factor + * @param optional nil or *ListFactorOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return VerifyV2ServiceEntityFactorReadResponse +*/ +func (c *DefaultApiService) ListFactor(serviceSid string, identity string, params *ListFactorParams) (*VerifyV2ServiceEntityFactorReadResponse, error) { + path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Factors" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceEntityFactorReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListMessagingConfigurationParams Optional parameters for the method 'ListMessagingConfiguration' +type ListMessagingConfigurationParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListMessagingConfiguration Method for ListMessagingConfiguration +Retrieve a list of all Messaging Configurations for a Service. + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. + * @param optional nil or *ListMessagingConfigurationOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return VerifyV2ServiceMessagingConfigurationReadResponse +*/ +func (c *DefaultApiService) ListMessagingConfiguration(serviceSid string, params *ListMessagingConfigurationParams) (*VerifyV2ServiceMessagingConfigurationReadResponse, error) { + path := "/v2/Services/{ServiceSid}/MessagingConfigurations" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceMessagingConfigurationReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListRateLimitParams Optional parameters for the method 'ListRateLimit' +type ListRateLimitParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListRateLimit Method for ListRateLimit +Retrieve a list of all Rate Limits for a service. + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. + * @param optional nil or *ListRateLimitOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return VerifyV2ServiceRateLimitReadResponse +*/ +func (c *DefaultApiService) ListRateLimit(serviceSid string, params *ListRateLimitParams) (*VerifyV2ServiceRateLimitReadResponse, error) { + path := "/v2/Services/{ServiceSid}/RateLimits" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceRateLimitReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListServiceParams Optional parameters for the method 'ListService' +type ListServiceParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListService Method for ListService +Retrieve a list of all Verification Services for an account. + * @param optional nil or *ListServiceOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return VerifyV2ServiceReadResponse +*/ +func (c *DefaultApiService) ListService(params *ListServiceParams) (*VerifyV2ServiceReadResponse, error) { + path := "/v2/Services" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListWebhookParams Optional parameters for the method 'ListWebhook' +type ListWebhookParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListWebhook Method for ListWebhook +Retrieve a list of all Webhooks for a Service. + * @param serviceSid The unique SID identifier of the Service. + * @param optional nil or *ListWebhookOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return VerifyV2ServiceWebhookReadResponse +*/ +func (c *DefaultApiService) ListWebhook(serviceSid string, params *ListWebhookParams) (*VerifyV2ServiceWebhookReadResponse, error) { + path := "/v2/Services/{ServiceSid}/Webhooks" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceWebhookReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateBucketParams Optional parameters for the method 'UpdateBucket' +type UpdateBucketParams struct { + Interval *int32 `json:"Interval,omitempty"` + Max *int32 `json:"Max,omitempty"` +} + +/* +UpdateBucket Method for UpdateBucket +Update a specific Bucket. + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. + * @param rateLimitSid The Twilio-provided string that uniquely identifies the Rate Limit resource. + * @param sid A 34 character string that uniquely identifies this Bucket. + * @param optional nil or *UpdateBucketOpts - Optional Parameters: + * @param "Interval" (int32) - Number of seconds that the rate limit will be enforced over. + * @param "Max" (int32) - Maximum number of requests permitted in during the interval. +@return VerifyV2ServiceRateLimitBucket +*/ +func (c *DefaultApiService) UpdateBucket(serviceSid string, rateLimitSid string, sid string, params *UpdateBucketParams) (*VerifyV2ServiceRateLimitBucket, error) { + path := "/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"RateLimitSid"+"}", rateLimitSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Interval != nil { + data.Set("Interval", string(*params.Interval)) + } + if params != nil && params.Max != nil { + data.Set("Max", string(*params.Max)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceRateLimitBucket{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateChallengeParams Optional parameters for the method 'UpdateChallenge' +type UpdateChallengeParams struct { + AuthPayload *string `json:"AuthPayload,omitempty"` +} + +/* +UpdateChallenge Method for UpdateChallenge +Verify a specific Challenge. + * @param serviceSid The unique SID identifier of the Service. + * @param identity Customer unique identity for the Entity owner of the Challenge + * @param sid A 34 character string that uniquely identifies this Challenge. + * @param optional nil or *UpdateChallengeOpts - Optional Parameters: + * @param "AuthPayload" (string) - The optional payload needed to verify the Challenge. E.g., a TOTP would use the numeric code. +@return VerifyV2ServiceEntityChallenge +*/ +func (c *DefaultApiService) UpdateChallenge(serviceSid string, identity string, sid string, params *UpdateChallengeParams) (*VerifyV2ServiceEntityChallenge, error) { + path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AuthPayload != nil { + data.Set("AuthPayload", *params.AuthPayload) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceEntityChallenge{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateFactorParams Optional parameters for the method 'UpdateFactor' +type UpdateFactorParams struct { + AuthPayload *string `json:"AuthPayload,omitempty"` + Config.NotificationToken *string `json:"Config.NotificationToken,omitempty"` + Config.SdkVersion *string `json:"Config.SdkVersion,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +UpdateFactor Method for UpdateFactor +Update a specific Factor. This endpoint can be used to Verify a Factor if passed an `AuthPayload` param. + * @param serviceSid The unique SID identifier of the Service. + * @param identity Customer unique identity for the Entity owner of the Factor + * @param sid A 34 character string that uniquely identifies this Factor. + * @param optional nil or *UpdateFactorOpts - Optional Parameters: + * @param "AuthPayload" (string) - The optional payload needed to verify the Factor for the first time. E.g. for a TOTP, the numeric code. + * @param "Config.NotificationToken" (string) - For APN, the device token. For FCM the registration token. It used to send the push notifications. Required when `factor_type` is `push` + * @param "Config.SdkVersion" (string) - The Verify Push SDK version used to configure the factor + * @param "FriendlyName" (string) - The new friendly name of this Factor +@return VerifyV2ServiceEntityFactor +*/ +func (c *DefaultApiService) UpdateFactor(serviceSid string, identity string, sid string, params *UpdateFactorParams) (*VerifyV2ServiceEntityFactor, error) { + path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AuthPayload != nil { + data.Set("AuthPayload", *params.AuthPayload) + } + if params != nil && params.Config.NotificationToken != nil { + data.Set("Config.NotificationToken", *params.Config.NotificationToken) + } + if params != nil && params.Config.SdkVersion != nil { + data.Set("Config.SdkVersion", *params.Config.SdkVersion) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceEntityFactor{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateMessagingConfigurationParams Optional parameters for the method 'UpdateMessagingConfiguration' +type UpdateMessagingConfigurationParams struct { + MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` +} + +/* +UpdateMessagingConfiguration Method for UpdateMessagingConfiguration +Update a specific MessagingConfiguration + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. + * @param country The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. + * @param optional nil or *UpdateMessagingConfigurationOpts - Optional Parameters: + * @param "MessagingServiceSid" (string) - The SID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) to be used to send SMS to the country of this configuration. +@return VerifyV2ServiceMessagingConfiguration +*/ +func (c *DefaultApiService) UpdateMessagingConfiguration(serviceSid string, country string, params *UpdateMessagingConfigurationParams) (*VerifyV2ServiceMessagingConfiguration, error) { + path := "/v2/Services/{ServiceSid}/MessagingConfigurations/{Country}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Country"+"}", country, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.MessagingServiceSid != nil { + data.Set("MessagingServiceSid", *params.MessagingServiceSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceMessagingConfiguration{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateRateLimitParams Optional parameters for the method 'UpdateRateLimit' +type UpdateRateLimitParams struct { + Description *string `json:"Description,omitempty"` +} + +/* +UpdateRateLimit Method for UpdateRateLimit +Update a specific Rate Limit. + * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. + * @param sid The Twilio-provided string that uniquely identifies the Rate Limit resource to fetch. + * @param optional nil or *UpdateRateLimitOpts - Optional Parameters: + * @param "Description" (string) - Description of this Rate Limit +@return VerifyV2ServiceRateLimit +*/ +func (c *DefaultApiService) UpdateRateLimit(serviceSid string, sid string, params *UpdateRateLimitParams) (*VerifyV2ServiceRateLimit, error) { + path := "/v2/Services/{ServiceSid}/RateLimits/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Description != nil { + data.Set("Description", *params.Description) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceRateLimit{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateServiceParams Optional parameters for the method 'UpdateService' +type UpdateServiceParams struct { + CodeLength *int32 `json:"CodeLength,omitempty"` + CustomCodeEnabled *bool `json:"CustomCodeEnabled,omitempty"` + DoNotShareWarningEnabled *bool `json:"DoNotShareWarningEnabled,omitempty"` + DtmfInputRequired *bool `json:"DtmfInputRequired,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + LookupEnabled *bool `json:"LookupEnabled,omitempty"` + Psd2Enabled *bool `json:"Psd2Enabled,omitempty"` + Push.ApnCredentialSid *string `json:"Push.ApnCredentialSid,omitempty"` + Push.FcmCredentialSid *string `json:"Push.FcmCredentialSid,omitempty"` + Push.IncludeDate *bool `json:"Push.IncludeDate,omitempty"` + SkipSmsToLandlines *bool `json:"SkipSmsToLandlines,omitempty"` + TtsName *string `json:"TtsName,omitempty"` +} + +/* +UpdateService Method for UpdateService +Update a specific Verification Service. + * @param sid The Twilio-provided string that uniquely identifies the Service resource to update. + * @param optional nil or *UpdateServiceOpts - Optional Parameters: + * @param "CodeLength" (int32) - The length of the verification code to generate. Must be an integer value between 4 and 10, inclusive. + * @param "CustomCodeEnabled" (bool) - Whether to allow sending verifications with a custom code instead of a randomly generated one. Not available for all customers. + * @param "DoNotShareWarningEnabled" (bool) - Whether to add a privacy warning at the end of an SMS. **Disabled by default and applies only for SMS.** + * @param "DtmfInputRequired" (bool) - Whether to ask the user to press a number before delivering the verify code in a phone call. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the verification service. It can be up to 30 characters long. **This value should not contain PII.** + * @param "LookupEnabled" (bool) - Whether to perform a lookup with each verification started and return info about the phone number. + * @param "Psd2Enabled" (bool) - Whether to pass PSD2 transaction parameters when starting a verification. + * @param "Push.ApnCredentialSid" (string) - Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) + * @param "Push.FcmCredentialSid" (string) - Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) + * @param "Push.IncludeDate" (bool) - Optional configuration for the Push factors. If true, include the date in the Challenge's reponse. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: true + * @param "SkipSmsToLandlines" (bool) - Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`. + * @param "TtsName" (string) - The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. +@return VerifyV2Service +*/ +func (c *DefaultApiService) UpdateService(sid string, params *UpdateServiceParams) (*VerifyV2Service, error) { + path := "/v2/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CodeLength != nil { + data.Set("CodeLength", string(*params.CodeLength)) + } + if params != nil && params.CustomCodeEnabled != nil { + data.Set("CustomCodeEnabled", string(*params.CustomCodeEnabled)) + } + if params != nil && params.DoNotShareWarningEnabled != nil { + data.Set("DoNotShareWarningEnabled", string(*params.DoNotShareWarningEnabled)) + } + if params != nil && params.DtmfInputRequired != nil { + data.Set("DtmfInputRequired", string(*params.DtmfInputRequired)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.LookupEnabled != nil { + data.Set("LookupEnabled", string(*params.LookupEnabled)) + } + if params != nil && params.Psd2Enabled != nil { + data.Set("Psd2Enabled", string(*params.Psd2Enabled)) + } + if params != nil && params.Push.ApnCredentialSid != nil { + data.Set("Push.ApnCredentialSid", *params.Push.ApnCredentialSid) + } + if params != nil && params.Push.FcmCredentialSid != nil { + data.Set("Push.FcmCredentialSid", *params.Push.FcmCredentialSid) + } + if params != nil && params.Push.IncludeDate != nil { + data.Set("Push.IncludeDate", string(*params.Push.IncludeDate)) + } + if params != nil && params.SkipSmsToLandlines != nil { + data.Set("SkipSmsToLandlines", string(*params.SkipSmsToLandlines)) + } + if params != nil && params.TtsName != nil { + data.Set("TtsName", *params.TtsName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateVerificationParams Optional parameters for the method 'UpdateVerification' +type UpdateVerificationParams struct { + Status *string `json:"Status,omitempty"` +} + +/* +UpdateVerification Method for UpdateVerification +Update a Verification status + * @param serviceSid The SID of the verification [Service](https://www.twilio.com/docs/verify/api/service) to update the resource from. + * @param sid The Twilio-provided string that uniquely identifies the Verification resource to update. + * @param optional nil or *UpdateVerificationOpts - Optional Parameters: + * @param "Status" (string) - The new status of the resource. Can be: `canceled` or `approved`. +@return VerifyV2ServiceVerification +*/ +func (c *DefaultApiService) UpdateVerification(serviceSid string, sid string, params *UpdateVerificationParams) (*VerifyV2ServiceVerification, error) { + path := "/v2/Services/{ServiceSid}/Verifications/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceVerification{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateWebhookParams Optional parameters for the method 'UpdateWebhook' +type UpdateWebhookParams struct { + EventTypes *[]string `json:"EventTypes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Status *string `json:"Status,omitempty"` + WebhookUrl *string `json:"WebhookUrl,omitempty"` +} + +/* +UpdateWebhook Method for UpdateWebhook + * @param serviceSid The unique SID identifier of the Service. + * @param sid The Twilio-provided string that uniquely identifies the Webhook resource to update. + * @param optional nil or *UpdateWebhookOpts - Optional Parameters: + * @param "EventTypes" ([]string) - The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied` + * @param "FriendlyName" (string) - The string that you assigned to describe the webhook. **This value should not contain PII.** + * @param "Status" (string) - The webhook status. Default value is `enabled`. One of: `enabled` or `disabled` + * @param "WebhookUrl" (string) - The URL associated with this Webhook. +@return VerifyV2ServiceWebhook +*/ +func (c *DefaultApiService) UpdateWebhook(serviceSid string, sid string, params *UpdateWebhookParams) (*VerifyV2ServiceWebhook, error) { + path := "/v2/Services/{ServiceSid}/Webhooks/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.EventTypes != nil { + data.Set("EventTypes", *params.EventTypes) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.WebhookUrl != nil { + data.Set("WebhookUrl", *params.WebhookUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/verify/v2/docs/CreateAccessTokenRequest.md b/rest/verify/v2/docs/CreateAccessTokenRequest.md new file mode 100644 index 000000000..ca211ac43 --- /dev/null +++ b/rest/verify/v2/docs/CreateAccessTokenRequest.md @@ -0,0 +1,12 @@ +# CreateAccessTokenRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FactorType** | **string** | The Type of this Factor. Eg. `push` | +**Identity** | **string** | The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, and generated by your external system, such as your user's UUID, GUID, or SID. | + +[[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/rest/verify/v2/docs/CreateBucketRequest.md b/rest/verify/v2/docs/CreateBucketRequest.md new file mode 100644 index 000000000..348ea4a44 --- /dev/null +++ b/rest/verify/v2/docs/CreateBucketRequest.md @@ -0,0 +1,12 @@ +# CreateBucketRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Interval** | **int32** | Number of seconds that the rate limit will be enforced over. | +**Max** | **int32** | Maximum number of requests permitted in during the interval. | + +[[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/rest/verify/v2/docs/CreateChallengeRequest.md b/rest/verify/v2/docs/CreateChallengeRequest.md new file mode 100644 index 000000000..d2220acd1 --- /dev/null +++ b/rest/verify/v2/docs/CreateChallengeRequest.md @@ -0,0 +1,15 @@ +# CreateChallengeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DetailsFields** | **[]map[string]interface{}** | A list of objects that describe the Fields included in the Challenge. Each object contains the label and value of the field. Used when `factor_type` is `push`. | [optional] +**DetailsMessage** | **string** | Shown to the user when the push notification arrives. Required when `factor_type` is `push` | [optional] +**ExpirationDate** | [**time.Time**](time.Time.md) | The date-time when this Challenge expires, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. The default value is five (5) minutes after Challenge creation. The max value is sixty (60) minutes after creation. | [optional] +**FactorSid** | **string** | The unique SID identifier of the Factor. | +**HiddenDetails** | [**map[string]interface{}**](.md) | Details provided to give context about the Challenge. Not shown to the end user. It must be a stringified JSON with only strings values eg. `{\"ip\": \"172.168.1.234\"}` | [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/rest/verify/v2/docs/CreateEntityRequest.md b/rest/verify/v2/docs/CreateEntityRequest.md new file mode 100644 index 000000000..ee04473a4 --- /dev/null +++ b/rest/verify/v2/docs/CreateEntityRequest.md @@ -0,0 +1,11 @@ +# CreateEntityRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Identity** | **string** | The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, length between 8 and 64 characters, and generated by your external system, such as your user's UUID, GUID, or SID. | + +[[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/rest/verify/v2/docs/CreateFactorRequest.md b/rest/verify/v2/docs/CreateFactorRequest.md new file mode 100644 index 000000000..85ece3452 --- /dev/null +++ b/rest/verify/v2/docs/CreateFactorRequest.md @@ -0,0 +1,18 @@ +# CreateFactorRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BindingAlg** | **string** | The algorithm used when `factor_type` is `push`. Algorithm supported: `ES256` | [optional] +**BindingPublicKey** | **string** | The Ecdsa public key in PKIX, ASN.1 DER format encoded in Base64 | [optional] +**ConfigAppId** | **string** | The ID that uniquely identifies your app in the Google or Apple store, such as `com.example.myapp`. Required when `factor_type` is `push` | [optional] +**ConfigNotificationPlatform** | **string** | The transport technology used to generate the Notification Token. Can be `apn` or `fcm`. Required when `factor_type` is `push` | [optional] +**ConfigNotificationToken** | **string** | For APN, the device token. For FCM the registration token. It used to send the push notifications. Required when `factor_type` is `push` | [optional] +**ConfigSdkVersion** | **string** | The Verify Push SDK version used to configure the factor | [optional] +**FactorType** | **string** | The Type of this Factor. Currently only `push` is supported | +**FriendlyName** | **string** | The friendly name of this Factor | + +[[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/rest/verify/v2/docs/CreateMessagingConfigurationRequest.md b/rest/verify/v2/docs/CreateMessagingConfigurationRequest.md new file mode 100644 index 000000000..ea35aa1ca --- /dev/null +++ b/rest/verify/v2/docs/CreateMessagingConfigurationRequest.md @@ -0,0 +1,12 @@ +# CreateMessagingConfigurationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Country** | **string** | The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. | +**MessagingServiceSid** | **string** | The SID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) to be used to send SMS to the country of this configuration. | + +[[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/rest/verify/v2/docs/CreateRateLimitRequest.md b/rest/verify/v2/docs/CreateRateLimitRequest.md new file mode 100644 index 000000000..c7e955d2b --- /dev/null +++ b/rest/verify/v2/docs/CreateRateLimitRequest.md @@ -0,0 +1,12 @@ +# CreateRateLimitRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | **string** | Description of this Rate Limit | [optional] +**UniqueName** | **string** | Provides a unique and addressable name to be assigned to this Rate Limit, assigned by the developer, to be optionally used in addition to SID. **This value should not contain PII.** | + +[[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/rest/verify/v2/docs/CreateServiceRequest.md b/rest/verify/v2/docs/CreateServiceRequest.md new file mode 100644 index 000000000..456bc303f --- /dev/null +++ b/rest/verify/v2/docs/CreateServiceRequest.md @@ -0,0 +1,22 @@ +# CreateServiceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CodeLength** | **int32** | The length of the verification code to generate. Must be an integer value between 4 and 10, inclusive. | [optional] +**CustomCodeEnabled** | **bool** | Whether to allow sending verifications with a custom code instead of a randomly generated one. Not available for all customers. | [optional] +**DoNotShareWarningEnabled** | **bool** | Whether to add a security warning at the end of an SMS verification body. Disabled by default and applies only to SMS. Example SMS body: `Your AppName verification code is: 1234. Don’t share this code with anyone; our employees will never ask for the code` | [optional] +**DtmfInputRequired** | **bool** | Whether to ask the user to press a number before delivering the verify code in a phone call. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the verification service. It can be up to 30 characters long. **This value should not contain PII.** | +**LookupEnabled** | **bool** | Whether to perform a lookup with each verification started and return info about the phone number. | [optional] +**Psd2Enabled** | **bool** | Whether to pass PSD2 transaction parameters when starting a verification. | [optional] +**PushApnCredentialSid** | **string** | Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) | [optional] +**PushFcmCredentialSid** | **string** | Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) | [optional] +**PushIncludeDate** | **bool** | Optional configuration for the Push factors. If true, include the date in the Challenge's reponse. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: true | [optional] +**SkipSmsToLandlines** | **bool** | Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`. | [optional] +**TtsName** | **string** | The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. | [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/rest/verify/v2/docs/CreateVerificationCheckRequest.md b/rest/verify/v2/docs/CreateVerificationCheckRequest.md new file mode 100644 index 000000000..90fdde9ce --- /dev/null +++ b/rest/verify/v2/docs/CreateVerificationCheckRequest.md @@ -0,0 +1,15 @@ +# CreateVerificationCheckRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Amount** | **string** | The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. | [optional] +**Code** | **string** | The 4-10 character string being verified. | +**Payee** | **string** | The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. | [optional] +**To** | **string** | The phone number or [email](https://www.twilio.com/docs/verify/email) to verify. Either this parameter or the `verification_sid` must be specified. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). | [optional] +**VerificationSid** | **string** | A SID that uniquely identifies the Verification Check. Either this parameter or the `to` phone number/[email](https://www.twilio.com/docs/verify/email) must be specified. | [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/rest/verify/v2/docs/CreateVerificationRequest.md b/rest/verify/v2/docs/CreateVerificationRequest.md new file mode 100644 index 000000000..c0f23fdc4 --- /dev/null +++ b/rest/verify/v2/docs/CreateVerificationRequest.md @@ -0,0 +1,22 @@ +# CreateVerificationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Amount** | **string** | The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. | [optional] +**AppHash** | **string** | Your [App Hash](https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string) to be appended at the end of your verification SMS body. Applies only to SMS. Example SMS body: `<#> Your AppName verification code is: 1234 He42w354ol9`. | [optional] +**Channel** | **string** | The verification method to use. Can be: [`email`](https://www.twilio.com/docs/verify/email), `sms` or `call`. | +**ChannelConfiguration** | [**map[string]interface{}**](.md) | [`email`](https://www.twilio.com/docs/verify/email) channel configuration in json format. Must include 'from' and 'from_name'. | [optional] +**CustomCode** | **string** | A pre-generated code to use for verification. The code can be between 4 and 10 characters, inclusive. | [optional] +**CustomFriendlyName** | **string** | A custom user defined friendly name that overwrites the existing one in the verification message | [optional] +**CustomMessage** | **string** | The text of a custom message to use for the verification. | [optional] +**Locale** | **string** | The locale to use for the verification SMS or call. Can be: `af`, `ar`, `ca`, `cs`, `da`, `de`, `el`, `en`, `en-GB`, `es`, `fi`, `fr`, `he`, `hi`, `hr`, `hu`, `id`, `it`, `ja`, `ko`, `ms`, `nb`, `nl`, `pl`, `pt`, `pr-BR`, `ro`, `ru`, `sv`, `th`, `tl`, `tr`, `vi`, `zh`, `zh-CN`, or `zh-HK.` | [optional] +**Payee** | **string** | The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. | [optional] +**RateLimits** | [**map[string]interface{}**](.md) | The custom key-value pairs of Programmable Rate Limits. Keys correspond to `unique_name` fields defined when [creating your Rate Limit](https://www.twilio.com/docs/verify/api/service-rate-limits). Associated value pairs represent values in the request that you are rate limiting on. You may include multiple Rate Limit values in each request. | [optional] +**SendDigits** | **string** | The digits to send after a phone call is answered, for example, to dial an extension. For more information, see the Programmable Voice documentation of [sendDigits](https://www.twilio.com/docs/voice/twiml/number#attributes-sendDigits). | [optional] +**To** | **string** | The phone number or [email](https://www.twilio.com/docs/verify/email) to verify. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). | + +[[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/rest/verify/v2/docs/CreateWebhookRequest.md b/rest/verify/v2/docs/CreateWebhookRequest.md new file mode 100644 index 000000000..732aa5807 --- /dev/null +++ b/rest/verify/v2/docs/CreateWebhookRequest.md @@ -0,0 +1,14 @@ +# CreateWebhookRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventTypes** | **[]string** | The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied` | +**FriendlyName** | **string** | The string that you assigned to describe the webhook. **This value should not contain PII.** | +**Status** | **string** | The webhook status. Default value is `enabled`. One of: `enabled` or `disabled` | [optional] +**WebhookUrl** | **string** | The URL associated with this Webhook. | + +[[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/rest/verify/v2/docs/DefaultApi.md b/rest/verify/v2/docs/DefaultApi.md new file mode 100644 index 000000000..bd8115600 --- /dev/null +++ b/rest/verify/v2/docs/DefaultApi.md @@ -0,0 +1,1954 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateAccessToken**](DefaultApi.md#CreateAccessToken) | **Post** /v2/Services/{ServiceSid}/AccessTokens | +[**CreateBucket**](DefaultApi.md#CreateBucket) | **Post** /v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets | +[**CreateChallenge**](DefaultApi.md#CreateChallenge) | **Post** /v2/Services/{ServiceSid}/Entities/{Identity}/Challenges | +[**CreateEntity**](DefaultApi.md#CreateEntity) | **Post** /v2/Services/{ServiceSid}/Entities | +[**CreateFactor**](DefaultApi.md#CreateFactor) | **Post** /v2/Services/{ServiceSid}/Entities/{Identity}/Factors | +[**CreateMessagingConfiguration**](DefaultApi.md#CreateMessagingConfiguration) | **Post** /v2/Services/{ServiceSid}/MessagingConfigurations | +[**CreateRateLimit**](DefaultApi.md#CreateRateLimit) | **Post** /v2/Services/{ServiceSid}/RateLimits | +[**CreateService**](DefaultApi.md#CreateService) | **Post** /v2/Services | +[**CreateVerification**](DefaultApi.md#CreateVerification) | **Post** /v2/Services/{ServiceSid}/Verifications | +[**CreateVerificationCheck**](DefaultApi.md#CreateVerificationCheck) | **Post** /v2/Services/{ServiceSid}/VerificationCheck | +[**CreateWebhook**](DefaultApi.md#CreateWebhook) | **Post** /v2/Services/{ServiceSid}/Webhooks | +[**DeleteBucket**](DefaultApi.md#DeleteBucket) | **Delete** /v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid} | +[**DeleteEntity**](DefaultApi.md#DeleteEntity) | **Delete** /v2/Services/{ServiceSid}/Entities/{Identity} | +[**DeleteFactor**](DefaultApi.md#DeleteFactor) | **Delete** /v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid} | +[**DeleteMessagingConfiguration**](DefaultApi.md#DeleteMessagingConfiguration) | **Delete** /v2/Services/{ServiceSid}/MessagingConfigurations/{Country} | +[**DeleteRateLimit**](DefaultApi.md#DeleteRateLimit) | **Delete** /v2/Services/{ServiceSid}/RateLimits/{Sid} | +[**DeleteService**](DefaultApi.md#DeleteService) | **Delete** /v2/Services/{Sid} | +[**DeleteWebhook**](DefaultApi.md#DeleteWebhook) | **Delete** /v2/Services/{ServiceSid}/Webhooks/{Sid} | +[**FetchBucket**](DefaultApi.md#FetchBucket) | **Get** /v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid} | +[**FetchChallenge**](DefaultApi.md#FetchChallenge) | **Get** /v2/Services/{ServiceSid}/Entities/{Identity}/Challenges/{Sid} | +[**FetchEntity**](DefaultApi.md#FetchEntity) | **Get** /v2/Services/{ServiceSid}/Entities/{Identity} | +[**FetchFactor**](DefaultApi.md#FetchFactor) | **Get** /v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid} | +[**FetchForm**](DefaultApi.md#FetchForm) | **Get** /v2/Forms/{FormType} | +[**FetchMessagingConfiguration**](DefaultApi.md#FetchMessagingConfiguration) | **Get** /v2/Services/{ServiceSid}/MessagingConfigurations/{Country} | +[**FetchRateLimit**](DefaultApi.md#FetchRateLimit) | **Get** /v2/Services/{ServiceSid}/RateLimits/{Sid} | +[**FetchService**](DefaultApi.md#FetchService) | **Get** /v2/Services/{Sid} | +[**FetchVerification**](DefaultApi.md#FetchVerification) | **Get** /v2/Services/{ServiceSid}/Verifications/{Sid} | +[**FetchWebhook**](DefaultApi.md#FetchWebhook) | **Get** /v2/Services/{ServiceSid}/Webhooks/{Sid} | +[**ListBucket**](DefaultApi.md#ListBucket) | **Get** /v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets | +[**ListChallenge**](DefaultApi.md#ListChallenge) | **Get** /v2/Services/{ServiceSid}/Entities/{Identity}/Challenges | +[**ListEntity**](DefaultApi.md#ListEntity) | **Get** /v2/Services/{ServiceSid}/Entities | +[**ListFactor**](DefaultApi.md#ListFactor) | **Get** /v2/Services/{ServiceSid}/Entities/{Identity}/Factors | +[**ListMessagingConfiguration**](DefaultApi.md#ListMessagingConfiguration) | **Get** /v2/Services/{ServiceSid}/MessagingConfigurations | +[**ListRateLimit**](DefaultApi.md#ListRateLimit) | **Get** /v2/Services/{ServiceSid}/RateLimits | +[**ListService**](DefaultApi.md#ListService) | **Get** /v2/Services | +[**ListWebhook**](DefaultApi.md#ListWebhook) | **Get** /v2/Services/{ServiceSid}/Webhooks | +[**UpdateBucket**](DefaultApi.md#UpdateBucket) | **Post** /v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid} | +[**UpdateChallenge**](DefaultApi.md#UpdateChallenge) | **Post** /v2/Services/{ServiceSid}/Entities/{Identity}/Challenges/{Sid} | +[**UpdateFactor**](DefaultApi.md#UpdateFactor) | **Post** /v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid} | +[**UpdateMessagingConfiguration**](DefaultApi.md#UpdateMessagingConfiguration) | **Post** /v2/Services/{ServiceSid}/MessagingConfigurations/{Country} | +[**UpdateRateLimit**](DefaultApi.md#UpdateRateLimit) | **Post** /v2/Services/{ServiceSid}/RateLimits/{Sid} | +[**UpdateService**](DefaultApi.md#UpdateService) | **Post** /v2/Services/{Sid} | +[**UpdateVerification**](DefaultApi.md#UpdateVerification) | **Post** /v2/Services/{ServiceSid}/Verifications/{Sid} | +[**UpdateWebhook**](DefaultApi.md#UpdateWebhook) | **Post** /v2/Services/{ServiceSid}/Webhooks/{Sid} | + + + +## CreateAccessToken + +> VerifyV2ServiceAccessToken CreateAccessToken(ctx, serviceSid, optional) + + + +Create a new enrollment Access Token for the Entity + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The unique SID identifier of the Service. | + **optional** | ***CreateAccessTokenOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateAccessTokenOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **factorType** | **optional.String**| The Type of this Factor. Eg. `push` | + **identity** | **optional.String**| The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, and generated by your external system, such as your user's UUID, GUID, or SID. | + +### Return type + +[**VerifyV2ServiceAccessToken**](verify.v2.service.access_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) + + +## CreateBucket + +> VerifyV2ServiceRateLimitBucket CreateBucket(ctx, serviceSid, rateLimitSid, optional) + + + +Create a new Bucket for a Rate Limit + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | +**rateLimitSid** | **string**| The Twilio-provided string that uniquely identifies the Rate Limit resource. | + **optional** | ***CreateBucketOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateBucketOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **interval** | **optional.Int32**| Number of seconds that the rate limit will be enforced over. | + **max** | **optional.Int32**| Maximum number of requests permitted in during the interval. | + +### Return type + +[**VerifyV2ServiceRateLimitBucket**](verify.v2.service.rate_limit.bucket.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) + + +## CreateChallenge + +> VerifyV2ServiceEntityChallenge CreateChallenge(ctx, serviceSid, identity, optional) + + + +Create a new Challenge for the Factor + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The unique SID identifier of the Service. | +**identity** | **string**| The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, and generated by your external system, such as your user's UUID, GUID, or SID. | + **optional** | ***CreateChallengeOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateChallengeOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **detailsFields** | [**optional.Interface of []map[string]interface{}**](map[string]interface{}.md)| A list of objects that describe the Fields included in the Challenge. Each object contains the label and value of the field. Used when `factor_type` is `push`. | + **detailsMessage** | **optional.String**| Shown to the user when the push notification arrives. Required when `factor_type` is `push` | + **expirationDate** | **optional.Time**| The date-time when this Challenge expires, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. The default value is five (5) minutes after Challenge creation. The max value is sixty (60) minutes after creation. | + **factorSid** | **optional.String**| The unique SID identifier of the Factor. | + **hiddenDetails** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| Details provided to give context about the Challenge. Not shown to the end user. It must be a stringified JSON with only strings values eg. `{\\\"ip\\\": \\\"172.168.1.234\\\"}` | + +### Return type + +[**VerifyV2ServiceEntityChallenge**](verify.v2.service.entity.challenge.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) + + +## CreateEntity + +> VerifyV2ServiceEntity CreateEntity(ctx, serviceSid, optional) + + + +Create a new Entity for the Service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The unique SID identifier of the Service. | + **optional** | ***CreateEntityOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateEntityOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **identity** | **optional.String**| The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, length between 8 and 64 characters, and generated by your external system, such as your user's UUID, GUID, or SID. | + +### Return type + +[**VerifyV2ServiceEntity**](verify.v2.service.entity.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) + + +## CreateFactor + +> VerifyV2ServiceEntityFactor CreateFactor(ctx, serviceSid, identity, optional) + + + +Create a new Factor for the Entity + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The unique SID identifier of the Service. | +**identity** | **string**| Customer unique identity for the Entity owner of the Factor | + **optional** | ***CreateFactorOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateFactorOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **bindingAlg** | **optional.String**| The algorithm used when `factor_type` is `push`. Algorithm supported: `ES256` | + **bindingPublicKey** | **optional.String**| The Ecdsa public key in PKIX, ASN.1 DER format encoded in Base64 | + **configAppId** | **optional.String**| The ID that uniquely identifies your app in the Google or Apple store, such as `com.example.myapp`. Required when `factor_type` is `push` | + **configNotificationPlatform** | **optional.String**| The transport technology used to generate the Notification Token. Can be `apn` or `fcm`. Required when `factor_type` is `push` | + **configNotificationToken** | **optional.String**| For APN, the device token. For FCM the registration token. It used to send the push notifications. Required when `factor_type` is `push` | + **configSdkVersion** | **optional.String**| The Verify Push SDK version used to configure the factor | + **factorType** | **optional.String**| The Type of this Factor. Currently only `push` is supported | + **friendlyName** | **optional.String**| The friendly name of this Factor | + +### Return type + +[**VerifyV2ServiceEntityFactor**](verify.v2.service.entity.factor.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) + + +## CreateMessagingConfiguration + +> VerifyV2ServiceMessagingConfiguration CreateMessagingConfiguration(ctx, serviceSid, optional) + + + +Create a new MessagingConfiguration for a service. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. | + **optional** | ***CreateMessagingConfigurationOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateMessagingConfigurationOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **country** | **optional.String**| The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. | + **messagingServiceSid** | **optional.String**| The SID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) to be used to send SMS to the country of this configuration. | + +### Return type + +[**VerifyV2ServiceMessagingConfiguration**](verify.v2.service.messaging_configuration.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) + + +## CreateRateLimit + +> VerifyV2ServiceRateLimit CreateRateLimit(ctx, serviceSid, optional) + + + +Create a new Rate Limit for a Service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | + **optional** | ***CreateRateLimitOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateRateLimitOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **description** | **optional.String**| Description of this Rate Limit | + **uniqueName** | **optional.String**| Provides a unique and addressable name to be assigned to this Rate Limit, assigned by the developer, to be optionally used in addition to SID. **This value should not contain PII.** | + +### Return type + +[**VerifyV2ServiceRateLimit**](verify.v2.service.rate_limit.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) + + +## CreateService + +> VerifyV2Service CreateService(ctx, optional) + + + +Create a new Verification Service. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateServiceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateServiceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **codeLength** | **optional.Int32**| The length of the verification code to generate. Must be an integer value between 4 and 10, inclusive. | + **customCodeEnabled** | **optional.Bool**| Whether to allow sending verifications with a custom code instead of a randomly generated one. Not available for all customers. | + **doNotShareWarningEnabled** | **optional.Bool**| Whether to add a security warning at the end of an SMS verification body. Disabled by default and applies only to SMS. Example SMS body: `Your AppName verification code is: 1234. Don’t share this code with anyone; our employees will never ask for the code` | + **dtmfInputRequired** | **optional.Bool**| Whether to ask the user to press a number before delivering the verify code in a phone call. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the verification service. It can be up to 30 characters long. **This value should not contain PII.** | + **lookupEnabled** | **optional.Bool**| Whether to perform a lookup with each verification started and return info about the phone number. | + **psd2Enabled** | **optional.Bool**| Whether to pass PSD2 transaction parameters when starting a verification. | + **pushApnCredentialSid** | **optional.String**| Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) | + **pushFcmCredentialSid** | **optional.String**| Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) | + **pushIncludeDate** | **optional.Bool**| Optional configuration for the Push factors. If true, include the date in the Challenge's reponse. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: true | + **skipSmsToLandlines** | **optional.Bool**| Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`. | + **ttsName** | **optional.String**| The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. | + +### Return type + +[**VerifyV2Service**](verify.v2.service.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) + + +## CreateVerification + +> VerifyV2ServiceVerification CreateVerification(ctx, serviceSid, optional) + + + +Create a new Verification using a Service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the verification [Service](https://www.twilio.com/docs/verify/api/service) to create the resource under. | + **optional** | ***CreateVerificationOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateVerificationOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **amount** | **optional.String**| The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. | + **appHash** | **optional.String**| Your [App Hash](https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string) to be appended at the end of your verification SMS body. Applies only to SMS. Example SMS body: `<#> Your AppName verification code is: 1234 He42w354ol9`. | + **channel** | **optional.String**| The verification method to use. Can be: [`email`](https://www.twilio.com/docs/verify/email), `sms` or `call`. | + **channelConfiguration** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| [`email`](https://www.twilio.com/docs/verify/email) channel configuration in json format. Must include 'from' and 'from_name'. | + **customCode** | **optional.String**| A pre-generated code to use for verification. The code can be between 4 and 10 characters, inclusive. | + **customFriendlyName** | **optional.String**| A custom user defined friendly name that overwrites the existing one in the verification message | + **customMessage** | **optional.String**| The text of a custom message to use for the verification. | + **locale** | **optional.String**| The locale to use for the verification SMS or call. Can be: `af`, `ar`, `ca`, `cs`, `da`, `de`, `el`, `en`, `en-GB`, `es`, `fi`, `fr`, `he`, `hi`, `hr`, `hu`, `id`, `it`, `ja`, `ko`, `ms`, `nb`, `nl`, `pl`, `pt`, `pr-BR`, `ro`, `ru`, `sv`, `th`, `tl`, `tr`, `vi`, `zh`, `zh-CN`, or `zh-HK.` | + **payee** | **optional.String**| The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. | + **rateLimits** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The custom key-value pairs of Programmable Rate Limits. Keys correspond to `unique_name` fields defined when [creating your Rate Limit](https://www.twilio.com/docs/verify/api/service-rate-limits). Associated value pairs represent values in the request that you are rate limiting on. You may include multiple Rate Limit values in each request. | + **sendDigits** | **optional.String**| The digits to send after a phone call is answered, for example, to dial an extension. For more information, see the Programmable Voice documentation of [sendDigits](https://www.twilio.com/docs/voice/twiml/number#attributes-sendDigits). | + **to** | **optional.String**| The phone number or [email](https://www.twilio.com/docs/verify/email) to verify. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). | + +### Return type + +[**VerifyV2ServiceVerification**](verify.v2.service.verification.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) + + +## CreateVerificationCheck + +> VerifyV2ServiceVerificationCheck CreateVerificationCheck(ctx, serviceSid, optional) + + + +challenge a specific Verification Check. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the verification [Service](https://www.twilio.com/docs/verify/api/service) to create the resource under. | + **optional** | ***CreateVerificationCheckOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateVerificationCheckOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **amount** | **optional.String**| The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. | + **code** | **optional.String**| The 4-10 character string being verified. | + **payee** | **optional.String**| The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. | + **to** | **optional.String**| The phone number or [email](https://www.twilio.com/docs/verify/email) to verify. Either this parameter or the `verification_sid` must be specified. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). | + **verificationSid** | **optional.String**| A SID that uniquely identifies the Verification Check. Either this parameter or the `to` phone number/[email](https://www.twilio.com/docs/verify/email) must be specified. | + +### Return type + +[**VerifyV2ServiceVerificationCheck**](verify.v2.service.verification_check.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) + + +## CreateWebhook + +> VerifyV2ServiceWebhook CreateWebhook(ctx, serviceSid, optional) + + + +Create a new Webhook for the Service + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The unique SID identifier of the Service. | + **optional** | ***CreateWebhookOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateWebhookOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **eventTypes** | [**optional.Interface of []string**](string.md)| The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied` | + **friendlyName** | **optional.String**| The string that you assigned to describe the webhook. **This value should not contain PII.** | + **status** | **optional.String**| The webhook status. Default value is `enabled`. One of: `enabled` or `disabled` | + **webhookUrl** | **optional.String**| The URL associated with this Webhook. | + +### Return type + +[**VerifyV2ServiceWebhook**](verify.v2.service.webhook.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) + + +## DeleteBucket + +> DeleteBucket(ctx, serviceSid, rateLimitSid, sid) + + + +Delete a specific Bucket. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | +**rateLimitSid** | **string**| The Twilio-provided string that uniquely identifies the Rate Limit resource. | +**sid** | **string**| A 34 character string that uniquely identifies this Bucket. | + +### 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) + + +## DeleteEntity + +> DeleteEntity(ctx, serviceSid, identity) + + + +Delete a specific Entity. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The unique SID identifier of the Service. | +**identity** | **string**| The unique external identifier for the Entity of the Service | + +### 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) + + +## DeleteFactor + +> DeleteFactor(ctx, serviceSid, identity, sid) + + + +Delete a specific Factor. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The unique SID identifier of the Service. | +**identity** | **string**| Customer unique identity for the Entity owner of the Factor | +**sid** | **string**| A 34 character string that uniquely identifies this Factor. | + +### 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) + + +## DeleteMessagingConfiguration + +> DeleteMessagingConfiguration(ctx, serviceSid, country) + + + +Delete a specific MessagingConfiguration. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. | +**country** | **string**| The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. | + +### 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) + + +## DeleteRateLimit + +> DeleteRateLimit(ctx, serviceSid, sid) + + + +Delete a specific Rate Limit. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Rate Limit resource to fetch. | + +### 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) + + +## DeleteService + +> DeleteService(ctx, sid) + + + +Delete a specific Verification Service Instance. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the Verification Service resource to delete. | + +### 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) + + +## DeleteWebhook + +> DeleteWebhook(ctx, serviceSid, sid) + + + +Delete a specific Webhook. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The unique SID identifier of the Service. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Webhook resource to delete. | + +### 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) + + +## FetchBucket + +> VerifyV2ServiceRateLimitBucket FetchBucket(ctx, serviceSid, rateLimitSid, sid) + + + +Fetch a specific Bucket. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | +**rateLimitSid** | **string**| The Twilio-provided string that uniquely identifies the Rate Limit resource. | +**sid** | **string**| A 34 character string that uniquely identifies this Bucket. | + +### Return type + +[**VerifyV2ServiceRateLimitBucket**](verify.v2.service.rate_limit.bucket.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) + + +## FetchChallenge + +> VerifyV2ServiceEntityChallenge FetchChallenge(ctx, serviceSid, identity, sid) + + + +Fetch a specific Challenge. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The unique SID identifier of the Service. | +**identity** | **string**| The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, and generated by your external system, such as your user's UUID, GUID, or SID. | +**sid** | **string**| A 34 character string that uniquely identifies this Challenge. | + +### Return type + +[**VerifyV2ServiceEntityChallenge**](verify.v2.service.entity.challenge.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) + + +## FetchEntity + +> VerifyV2ServiceEntity FetchEntity(ctx, serviceSid, identity) + + + +Fetch a specific Entity. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The unique SID identifier of the Service. | +**identity** | **string**| The unique external identifier for the Entity of the Service | + +### Return type + +[**VerifyV2ServiceEntity**](verify.v2.service.entity.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) + + +## FetchFactor + +> VerifyV2ServiceEntityFactor FetchFactor(ctx, serviceSid, identity, sid) + + + +Fetch a specific Factor. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The unique SID identifier of the Service. | +**identity** | **string**| Customer unique identity for the Entity owner of the Factor | +**sid** | **string**| A 34 character string that uniquely identifies this Factor. | + +### Return type + +[**VerifyV2ServiceEntityFactor**](verify.v2.service.entity.factor.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) + + +## FetchForm + +> VerifyV2Form FetchForm(ctx, formType) + + + +Fetch the forms for a specific Form Type. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**formType** | **string**| The Type of this Form. Currently only `form-push` is supported. | + +### Return type + +[**VerifyV2Form**](verify.v2.form.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) + + +## FetchMessagingConfiguration + +> VerifyV2ServiceMessagingConfiguration FetchMessagingConfiguration(ctx, serviceSid, country) + + + +Fetch a specific MessagingConfiguration. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. | +**country** | **string**| The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. | + +### Return type + +[**VerifyV2ServiceMessagingConfiguration**](verify.v2.service.messaging_configuration.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) + + +## FetchRateLimit + +> VerifyV2ServiceRateLimit FetchRateLimit(ctx, serviceSid, sid) + + + +Fetch a specific Rate Limit. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Rate Limit resource to fetch. | + +### Return type + +[**VerifyV2ServiceRateLimit**](verify.v2.service.rate_limit.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) + + +## FetchService + +> VerifyV2Service FetchService(ctx, sid) + + + +Fetch specific Verification Service Instance. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the Verification Service resource to fetch. | + +### Return type + +[**VerifyV2Service**](verify.v2.service.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) + + +## FetchVerification + +> VerifyV2ServiceVerification FetchVerification(ctx, serviceSid, sid) + + + +Fetch a specific Verification + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the verification [Service](https://www.twilio.com/docs/verify/api/service) to fetch the resource from. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Verification resource to fetch. | + +### Return type + +[**VerifyV2ServiceVerification**](verify.v2.service.verification.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) + + +## FetchWebhook + +> VerifyV2ServiceWebhook FetchWebhook(ctx, serviceSid, sid) + + + +Fetch a specific Webhook. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The unique SID identifier of the Service. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Webhook resource to fetch. | + +### Return type + +[**VerifyV2ServiceWebhook**](verify.v2.service.webhook.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) + + +## ListBucket + +> VerifyV2ServiceRateLimitBucketReadResponse ListBucket(ctx, serviceSid, rateLimitSid, optional) + + + +Retrieve a list of all Buckets for a Rate Limit. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | +**rateLimitSid** | **string**| The Twilio-provided string that uniquely identifies the Rate Limit resource. | + **optional** | ***ListBucketOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListBucketOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**VerifyV2ServiceRateLimitBucketReadResponse**](verify_v2_service_rate_limit_bucketReadResponse.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) + + +## ListChallenge + +> VerifyV2ServiceEntityChallengeReadResponse ListChallenge(ctx, serviceSid, identity, optional) + + + +Retrieve a list of all Challenges for a Factor. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The unique SID identifier of the Service. | +**identity** | **string**| Customer unique identity for the Entity owner of the Challenge | + **optional** | ***ListChallengeOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListChallengeOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **factorSid** | **optional.String**| The unique SID identifier of the Factor. | + **status** | **optional.String**| The Status of the Challenges to fetch. One of `pending`, `expired`, `approved` or `denied`. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**VerifyV2ServiceEntityChallengeReadResponse**](verify_v2_service_entity_challengeReadResponse.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) + + +## ListEntity + +> VerifyV2ServiceEntityReadResponse ListEntity(ctx, serviceSid, optional) + + + +Retrieve a list of all Entities for a Service. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The unique SID identifier of the Service. | + **optional** | ***ListEntityOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListEntityOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**VerifyV2ServiceEntityReadResponse**](verify_v2_service_entityReadResponse.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) + + +## ListFactor + +> VerifyV2ServiceEntityFactorReadResponse ListFactor(ctx, serviceSid, identity, optional) + + + +Retrieve a list of all Factors for an Entity. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The unique SID identifier of the Service. | +**identity** | **string**| Customer unique identity for the Entity owner of the Factor | + **optional** | ***ListFactorOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListFactorOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**VerifyV2ServiceEntityFactorReadResponse**](verify_v2_service_entity_factorReadResponse.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) + + +## ListMessagingConfiguration + +> VerifyV2ServiceMessagingConfigurationReadResponse ListMessagingConfiguration(ctx, serviceSid, optional) + + + +Retrieve a list of all Messaging Configurations for a Service. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. | + **optional** | ***ListMessagingConfigurationOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListMessagingConfigurationOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**VerifyV2ServiceMessagingConfigurationReadResponse**](verify_v2_service_messaging_configurationReadResponse.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) + + +## ListRateLimit + +> VerifyV2ServiceRateLimitReadResponse ListRateLimit(ctx, serviceSid, optional) + + + +Retrieve a list of all Rate Limits for a service. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | + **optional** | ***ListRateLimitOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListRateLimitOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**VerifyV2ServiceRateLimitReadResponse**](verify_v2_service_rate_limitReadResponse.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) + + +## ListService + +> VerifyV2ServiceReadResponse ListService(ctx, optional) + + + +Retrieve a list of all Verification Services for an account. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListServiceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListServiceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**VerifyV2ServiceReadResponse**](verify_v2_serviceReadResponse.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) + + +## ListWebhook + +> VerifyV2ServiceWebhookReadResponse ListWebhook(ctx, serviceSid, optional) + + + +Retrieve a list of all Webhooks for a Service. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The unique SID identifier of the Service. | + **optional** | ***ListWebhookOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListWebhookOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**VerifyV2ServiceWebhookReadResponse**](verify_v2_service_webhookReadResponse.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) + + +## UpdateBucket + +> VerifyV2ServiceRateLimitBucket UpdateBucket(ctx, serviceSid, rateLimitSid, sid, optional) + + + +Update a specific Bucket. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | +**rateLimitSid** | **string**| The Twilio-provided string that uniquely identifies the Rate Limit resource. | +**sid** | **string**| A 34 character string that uniquely identifies this Bucket. | + **optional** | ***UpdateBucketOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateBucketOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **interval** | **optional.Int32**| Number of seconds that the rate limit will be enforced over. | + **max** | **optional.Int32**| Maximum number of requests permitted in during the interval. | + +### Return type + +[**VerifyV2ServiceRateLimitBucket**](verify.v2.service.rate_limit.bucket.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) + + +## UpdateChallenge + +> VerifyV2ServiceEntityChallenge UpdateChallenge(ctx, serviceSid, identity, sid, optional) + + + +Verify a specific Challenge. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The unique SID identifier of the Service. | +**identity** | **string**| Customer unique identity for the Entity owner of the Challenge | +**sid** | **string**| A 34 character string that uniquely identifies this Challenge. | + **optional** | ***UpdateChallengeOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateChallengeOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **authPayload** | **optional.String**| The optional payload needed to verify the Challenge. E.g., a TOTP would use the numeric code. | + +### Return type + +[**VerifyV2ServiceEntityChallenge**](verify.v2.service.entity.challenge.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) + + +## UpdateFactor + +> VerifyV2ServiceEntityFactor UpdateFactor(ctx, serviceSid, identity, sid, optional) + + + +Update a specific Factor. This endpoint can be used to Verify a Factor if passed an `AuthPayload` param. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The unique SID identifier of the Service. | +**identity** | **string**| Customer unique identity for the Entity owner of the Factor | +**sid** | **string**| A 34 character string that uniquely identifies this Factor. | + **optional** | ***UpdateFactorOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateFactorOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **authPayload** | **optional.String**| The optional payload needed to verify the Factor for the first time. E.g. for a TOTP, the numeric code. | + **configNotificationToken** | **optional.String**| For APN, the device token. For FCM the registration token. It used to send the push notifications. Required when `factor_type` is `push` | + **configSdkVersion** | **optional.String**| The Verify Push SDK version used to configure the factor | + **friendlyName** | **optional.String**| The new friendly name of this Factor | + +### Return type + +[**VerifyV2ServiceEntityFactor**](verify.v2.service.entity.factor.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) + + +## UpdateMessagingConfiguration + +> VerifyV2ServiceMessagingConfiguration UpdateMessagingConfiguration(ctx, serviceSid, country, optional) + + + +Update a specific MessagingConfiguration + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. | +**country** | **string**| The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. | + **optional** | ***UpdateMessagingConfigurationOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateMessagingConfigurationOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **messagingServiceSid** | **optional.String**| The SID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) to be used to send SMS to the country of this configuration. | + +### Return type + +[**VerifyV2ServiceMessagingConfiguration**](verify.v2.service.messaging_configuration.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) + + +## UpdateRateLimit + +> VerifyV2ServiceRateLimit UpdateRateLimit(ctx, serviceSid, sid, optional) + + + +Update a specific Rate Limit. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Rate Limit resource to fetch. | + **optional** | ***UpdateRateLimitOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateRateLimitOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **description** | **optional.String**| Description of this Rate Limit | + +### Return type + +[**VerifyV2ServiceRateLimit**](verify.v2.service.rate_limit.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) + + +## UpdateService + +> VerifyV2Service UpdateService(ctx, sid, optional) + + + +Update a specific Verification Service. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the Service resource to update. | + **optional** | ***UpdateServiceOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateServiceOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **codeLength** | **optional.Int32**| The length of the verification code to generate. Must be an integer value between 4 and 10, inclusive. | + **customCodeEnabled** | **optional.Bool**| Whether to allow sending verifications with a custom code instead of a randomly generated one. Not available for all customers. | + **doNotShareWarningEnabled** | **optional.Bool**| Whether to add a privacy warning at the end of an SMS. **Disabled by default and applies only for SMS.** | + **dtmfInputRequired** | **optional.Bool**| Whether to ask the user to press a number before delivering the verify code in a phone call. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the verification service. It can be up to 30 characters long. **This value should not contain PII.** | + **lookupEnabled** | **optional.Bool**| Whether to perform a lookup with each verification started and return info about the phone number. | + **psd2Enabled** | **optional.Bool**| Whether to pass PSD2 transaction parameters when starting a verification. | + **pushApnCredentialSid** | **optional.String**| Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) | + **pushFcmCredentialSid** | **optional.String**| Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) | + **pushIncludeDate** | **optional.Bool**| Optional configuration for the Push factors. If true, include the date in the Challenge's reponse. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: true | + **skipSmsToLandlines** | **optional.Bool**| Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`. | + **ttsName** | **optional.String**| The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. | + +### Return type + +[**VerifyV2Service**](verify.v2.service.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) + + +## UpdateVerification + +> VerifyV2ServiceVerification UpdateVerification(ctx, serviceSid, sid, optional) + + + +Update a Verification status + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The SID of the verification [Service](https://www.twilio.com/docs/verify/api/service) to update the resource from. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Verification resource to update. | + **optional** | ***UpdateVerificationOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateVerificationOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **status** | **optional.String**| The new status of the resource. Can be: `canceled` or `approved`. | + +### Return type + +[**VerifyV2ServiceVerification**](verify.v2.service.verification.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) + + +## UpdateWebhook + +> VerifyV2ServiceWebhook UpdateWebhook(ctx, serviceSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**serviceSid** | **string**| The unique SID identifier of the Service. | +**sid** | **string**| The Twilio-provided string that uniquely identifies the Webhook resource to update. | + **optional** | ***UpdateWebhookOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateWebhookOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **eventTypes** | [**optional.Interface of []string**](string.md)| The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied` | + **friendlyName** | **optional.String**| The string that you assigned to describe the webhook. **This value should not contain PII.** | + **status** | **optional.String**| The webhook status. Default value is `enabled`. One of: `enabled` or `disabled` | + **webhookUrl** | **optional.String**| The URL associated with this Webhook. | + +### Return type + +[**VerifyV2ServiceWebhook**](verify.v2.service.webhook.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/rest/verify/v2/docs/UpdateBucketRequest.md b/rest/verify/v2/docs/UpdateBucketRequest.md new file mode 100644 index 000000000..45bae2e05 --- /dev/null +++ b/rest/verify/v2/docs/UpdateBucketRequest.md @@ -0,0 +1,12 @@ +# UpdateBucketRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Interval** | **int32** | Number of seconds that the rate limit will be enforced over. | [optional] +**Max** | **int32** | Maximum number of requests permitted in during the interval. | [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/rest/verify/v2/docs/UpdateChallengeRequest.md b/rest/verify/v2/docs/UpdateChallengeRequest.md new file mode 100644 index 000000000..ffe2acdf6 --- /dev/null +++ b/rest/verify/v2/docs/UpdateChallengeRequest.md @@ -0,0 +1,11 @@ +# UpdateChallengeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AuthPayload** | **string** | The optional payload needed to verify the Challenge. E.g., a TOTP would use the numeric code. | [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/rest/verify/v2/docs/UpdateFactorRequest.md b/rest/verify/v2/docs/UpdateFactorRequest.md new file mode 100644 index 000000000..b17115219 --- /dev/null +++ b/rest/verify/v2/docs/UpdateFactorRequest.md @@ -0,0 +1,14 @@ +# UpdateFactorRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AuthPayload** | **string** | The optional payload needed to verify the Factor for the first time. E.g. for a TOTP, the numeric code. | [optional] +**ConfigNotificationToken** | **string** | For APN, the device token. For FCM the registration token. It used to send the push notifications. Required when `factor_type` is `push` | [optional] +**ConfigSdkVersion** | **string** | The Verify Push SDK version used to configure the factor | [optional] +**FriendlyName** | **string** | The new friendly name of this Factor | [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/rest/verify/v2/docs/UpdateMessagingConfigurationRequest.md b/rest/verify/v2/docs/UpdateMessagingConfigurationRequest.md new file mode 100644 index 000000000..d003310be --- /dev/null +++ b/rest/verify/v2/docs/UpdateMessagingConfigurationRequest.md @@ -0,0 +1,11 @@ +# UpdateMessagingConfigurationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MessagingServiceSid** | **string** | The SID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) to be used to send SMS to the country of this configuration. | + +[[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/rest/verify/v2/docs/UpdateRateLimitRequest.md b/rest/verify/v2/docs/UpdateRateLimitRequest.md new file mode 100644 index 000000000..11c0d9a27 --- /dev/null +++ b/rest/verify/v2/docs/UpdateRateLimitRequest.md @@ -0,0 +1,11 @@ +# UpdateRateLimitRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | **string** | Description of this Rate Limit | [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/rest/verify/v2/docs/UpdateServiceRequest.md b/rest/verify/v2/docs/UpdateServiceRequest.md new file mode 100644 index 000000000..6074d1b10 --- /dev/null +++ b/rest/verify/v2/docs/UpdateServiceRequest.md @@ -0,0 +1,22 @@ +# UpdateServiceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CodeLength** | **int32** | The length of the verification code to generate. Must be an integer value between 4 and 10, inclusive. | [optional] +**CustomCodeEnabled** | **bool** | Whether to allow sending verifications with a custom code instead of a randomly generated one. Not available for all customers. | [optional] +**DoNotShareWarningEnabled** | **bool** | Whether to add a privacy warning at the end of an SMS. **Disabled by default and applies only for SMS.** | [optional] +**DtmfInputRequired** | **bool** | Whether to ask the user to press a number before delivering the verify code in a phone call. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the verification service. It can be up to 30 characters long. **This value should not contain PII.** | [optional] +**LookupEnabled** | **bool** | Whether to perform a lookup with each verification started and return info about the phone number. | [optional] +**Psd2Enabled** | **bool** | Whether to pass PSD2 transaction parameters when starting a verification. | [optional] +**PushApnCredentialSid** | **string** | Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) | [optional] +**PushFcmCredentialSid** | **string** | Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) | [optional] +**PushIncludeDate** | **bool** | Optional configuration for the Push factors. If true, include the date in the Challenge's reponse. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: true | [optional] +**SkipSmsToLandlines** | **bool** | Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`. | [optional] +**TtsName** | **string** | The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. | [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/rest/verify/v2/docs/UpdateVerificationRequest.md b/rest/verify/v2/docs/UpdateVerificationRequest.md new file mode 100644 index 000000000..fa13560d9 --- /dev/null +++ b/rest/verify/v2/docs/UpdateVerificationRequest.md @@ -0,0 +1,11 @@ +# UpdateVerificationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **string** | The new status of the resource. Can be: `canceled` or `approved`. | + +[[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/rest/verify/v2/docs/UpdateWebhookRequest.md b/rest/verify/v2/docs/UpdateWebhookRequest.md new file mode 100644 index 000000000..d682a8d34 --- /dev/null +++ b/rest/verify/v2/docs/UpdateWebhookRequest.md @@ -0,0 +1,14 @@ +# UpdateWebhookRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventTypes** | **[]string** | The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied` | [optional] +**FriendlyName** | **string** | The string that you assigned to describe the webhook. **This value should not contain PII.** | [optional] +**Status** | **string** | The webhook status. Default value is `enabled`. One of: `enabled` or `disabled` | [optional] +**WebhookUrl** | **string** | The URL associated with this Webhook. | [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/rest/verify/v2/docs/VerifyV2Form.md b/rest/verify/v2/docs/VerifyV2Form.md new file mode 100644 index 000000000..528138a86 --- /dev/null +++ b/rest/verify/v2/docs/VerifyV2Form.md @@ -0,0 +1,14 @@ +# VerifyV2Form + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FormMeta** | [**map[string]interface{}**](.md) | | [optional] +**FormType** | **string** | | [optional] +**Forms** | [**map[string]interface{}**](.md) | | [optional] +**Url** | **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/rest/verify/v2/docs/VerifyV2Service.md b/rest/verify/v2/docs/VerifyV2Service.md new file mode 100644 index 000000000..af703c61a --- /dev/null +++ b/rest/verify/v2/docs/VerifyV2Service.md @@ -0,0 +1,26 @@ +# VerifyV2Service + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**CodeLength** | **int32** | | [optional] +**CustomCodeEnabled** | **bool** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**DoNotShareWarningEnabled** | **bool** | | [optional] +**DtmfInputRequired** | **bool** | | [optional] +**FriendlyName** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**LookupEnabled** | **bool** | | [optional] +**Psd2Enabled** | **bool** | | [optional] +**Push** | [**map[string]interface{}**](.md) | | [optional] +**Sid** | **string** | | [optional] +**SkipSmsToLandlines** | **bool** | | [optional] +**TtsName** | **string** | | [optional] +**Url** | **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/rest/verify/v2/docs/VerifyV2ServiceAccessToken.md b/rest/verify/v2/docs/VerifyV2ServiceAccessToken.md new file mode 100644 index 000000000..8f744ea59 --- /dev/null +++ b/rest/verify/v2/docs/VerifyV2ServiceAccessToken.md @@ -0,0 +1,11 @@ +# VerifyV2ServiceAccessToken + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Token** | **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/rest/verify/v2/docs/VerifyV2ServiceEntity.md b/rest/verify/v2/docs/VerifyV2ServiceEntity.md new file mode 100644 index 000000000..d450ee1cf --- /dev/null +++ b/rest/verify/v2/docs/VerifyV2ServiceEntity.md @@ -0,0 +1,18 @@ +# VerifyV2ServiceEntity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Identity** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/verify/v2/docs/VerifyV2ServiceEntityChallenge.md b/rest/verify/v2/docs/VerifyV2ServiceEntityChallenge.md new file mode 100644 index 000000000..a48576785 --- /dev/null +++ b/rest/verify/v2/docs/VerifyV2ServiceEntityChallenge.md @@ -0,0 +1,26 @@ +# VerifyV2ServiceEntityChallenge + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateResponded** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Details** | [**map[string]interface{}**](.md) | | [optional] +**EntitySid** | **string** | | [optional] +**ExpirationDate** | [**time.Time**](time.Time.md) | | [optional] +**FactorSid** | **string** | | [optional] +**FactorType** | **string** | | [optional] +**HiddenDetails** | [**map[string]interface{}**](.md) | | [optional] +**Identity** | **string** | | [optional] +**RespondedReason** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Status** | **string** | | [optional] +**Url** | **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/rest/verify/v2/docs/VerifyV2ServiceEntityChallengeReadResponse.md b/rest/verify/v2/docs/VerifyV2ServiceEntityChallengeReadResponse.md new file mode 100644 index 000000000..3eb3b737d --- /dev/null +++ b/rest/verify/v2/docs/VerifyV2ServiceEntityChallengeReadResponse.md @@ -0,0 +1,12 @@ +# VerifyV2ServiceEntityChallengeReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Challenges** | [**[]VerifyV2ServiceEntityChallenge**](verify.v2.service.entity.challenge.md) | | [optional] +**Meta** | [**VerifyV2ServiceReadResponseMeta**](verify_v2_serviceReadResponse_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/rest/verify/v2/docs/VerifyV2ServiceEntityFactor.md b/rest/verify/v2/docs/VerifyV2ServiceEntityFactor.md new file mode 100644 index 000000000..c3156452e --- /dev/null +++ b/rest/verify/v2/docs/VerifyV2ServiceEntityFactor.md @@ -0,0 +1,22 @@ +# VerifyV2ServiceEntityFactor + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Config** | [**map[string]interface{}**](.md) | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**EntitySid** | **string** | | [optional] +**FactorType** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**Identity** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Status** | **string** | | [optional] +**Url** | **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/rest/verify/v2/docs/VerifyV2ServiceEntityFactorReadResponse.md b/rest/verify/v2/docs/VerifyV2ServiceEntityFactorReadResponse.md new file mode 100644 index 000000000..a3860172b --- /dev/null +++ b/rest/verify/v2/docs/VerifyV2ServiceEntityFactorReadResponse.md @@ -0,0 +1,12 @@ +# VerifyV2ServiceEntityFactorReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Factors** | [**[]VerifyV2ServiceEntityFactor**](verify.v2.service.entity.factor.md) | | [optional] +**Meta** | [**VerifyV2ServiceReadResponseMeta**](verify_v2_serviceReadResponse_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/rest/verify/v2/docs/VerifyV2ServiceEntityReadResponse.md b/rest/verify/v2/docs/VerifyV2ServiceEntityReadResponse.md new file mode 100644 index 000000000..3b21c073e --- /dev/null +++ b/rest/verify/v2/docs/VerifyV2ServiceEntityReadResponse.md @@ -0,0 +1,12 @@ +# VerifyV2ServiceEntityReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Entities** | [**[]VerifyV2ServiceEntity**](verify.v2.service.entity.md) | | [optional] +**Meta** | [**VerifyV2ServiceReadResponseMeta**](verify_v2_serviceReadResponse_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/rest/verify/v2/docs/VerifyV2ServiceMessagingConfiguration.md b/rest/verify/v2/docs/VerifyV2ServiceMessagingConfiguration.md new file mode 100644 index 000000000..ac8c68f34 --- /dev/null +++ b/rest/verify/v2/docs/VerifyV2ServiceMessagingConfiguration.md @@ -0,0 +1,17 @@ +# VerifyV2ServiceMessagingConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Country** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**MessagingServiceSid** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Url** | **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/rest/verify/v2/docs/VerifyV2ServiceMessagingConfigurationReadResponse.md b/rest/verify/v2/docs/VerifyV2ServiceMessagingConfigurationReadResponse.md new file mode 100644 index 000000000..0db394eec --- /dev/null +++ b/rest/verify/v2/docs/VerifyV2ServiceMessagingConfigurationReadResponse.md @@ -0,0 +1,12 @@ +# VerifyV2ServiceMessagingConfigurationReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MessagingConfigurations** | [**[]VerifyV2ServiceMessagingConfiguration**](verify.v2.service.messaging_configuration.md) | | [optional] +**Meta** | [**VerifyV2ServiceReadResponseMeta**](verify_v2_serviceReadResponse_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/rest/verify/v2/docs/VerifyV2ServiceRateLimit.md b/rest/verify/v2/docs/VerifyV2ServiceRateLimit.md new file mode 100644 index 000000000..97edc5ee1 --- /dev/null +++ b/rest/verify/v2/docs/VerifyV2ServiceRateLimit.md @@ -0,0 +1,19 @@ +# VerifyV2ServiceRateLimit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Description** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **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/rest/verify/v2/docs/VerifyV2ServiceRateLimitBucket.md b/rest/verify/v2/docs/VerifyV2ServiceRateLimitBucket.md new file mode 100644 index 000000000..60b7b6e2e --- /dev/null +++ b/rest/verify/v2/docs/VerifyV2ServiceRateLimitBucket.md @@ -0,0 +1,19 @@ +# VerifyV2ServiceRateLimitBucket + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Interval** | **int32** | | [optional] +**Max** | **int32** | | [optional] +**RateLimitSid** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/verify/v2/docs/VerifyV2ServiceRateLimitBucketReadResponse.md b/rest/verify/v2/docs/VerifyV2ServiceRateLimitBucketReadResponse.md new file mode 100644 index 000000000..8d43be01b --- /dev/null +++ b/rest/verify/v2/docs/VerifyV2ServiceRateLimitBucketReadResponse.md @@ -0,0 +1,12 @@ +# VerifyV2ServiceRateLimitBucketReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Buckets** | [**[]VerifyV2ServiceRateLimitBucket**](verify.v2.service.rate_limit.bucket.md) | | [optional] +**Meta** | [**VerifyV2ServiceReadResponseMeta**](verify_v2_serviceReadResponse_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/rest/verify/v2/docs/VerifyV2ServiceRateLimitReadResponse.md b/rest/verify/v2/docs/VerifyV2ServiceRateLimitReadResponse.md new file mode 100644 index 000000000..7397d4eb9 --- /dev/null +++ b/rest/verify/v2/docs/VerifyV2ServiceRateLimitReadResponse.md @@ -0,0 +1,12 @@ +# VerifyV2ServiceRateLimitReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**VerifyV2ServiceReadResponseMeta**](verify_v2_serviceReadResponse_meta.md) | | [optional] +**RateLimits** | [**[]VerifyV2ServiceRateLimit**](verify.v2.service.rate_limit.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/rest/verify/v2/docs/VerifyV2ServiceReadResponse.md b/rest/verify/v2/docs/VerifyV2ServiceReadResponse.md new file mode 100644 index 000000000..b23d91573 --- /dev/null +++ b/rest/verify/v2/docs/VerifyV2ServiceReadResponse.md @@ -0,0 +1,12 @@ +# VerifyV2ServiceReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**VerifyV2ServiceReadResponseMeta**](verify_v2_serviceReadResponse_meta.md) | | [optional] +**Services** | [**[]VerifyV2Service**](verify.v2.service.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/rest/verify/v2/docs/VerifyV2ServiceReadResponseMeta.md b/rest/verify/v2/docs/VerifyV2ServiceReadResponseMeta.md new file mode 100644 index 000000000..330baa13e --- /dev/null +++ b/rest/verify/v2/docs/VerifyV2ServiceReadResponseMeta.md @@ -0,0 +1,17 @@ +# VerifyV2ServiceReadResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/verify/v2/docs/VerifyV2ServiceVerification.md b/rest/verify/v2/docs/VerifyV2ServiceVerification.md new file mode 100644 index 000000000..fed9c8a60 --- /dev/null +++ b/rest/verify/v2/docs/VerifyV2ServiceVerification.md @@ -0,0 +1,24 @@ +# VerifyV2ServiceVerification + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Amount** | **string** | | [optional] +**Channel** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Lookup** | [**map[string]interface{}**](.md) | | [optional] +**Payee** | **string** | | [optional] +**SendCodeAttempts** | **[]map[string]interface{}** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Status** | **string** | | [optional] +**To** | **string** | | [optional] +**Url** | **string** | | [optional] +**Valid** | **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/rest/verify/v2/docs/VerifyV2ServiceVerificationCheck.md b/rest/verify/v2/docs/VerifyV2ServiceVerificationCheck.md new file mode 100644 index 000000000..464e7c5ac --- /dev/null +++ b/rest/verify/v2/docs/VerifyV2ServiceVerificationCheck.md @@ -0,0 +1,21 @@ +# VerifyV2ServiceVerificationCheck + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Amount** | **string** | | [optional] +**Channel** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Payee** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Status** | **string** | | [optional] +**To** | **string** | | [optional] +**Valid** | **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/rest/verify/v2/docs/VerifyV2ServiceWebhook.md b/rest/verify/v2/docs/VerifyV2ServiceWebhook.md new file mode 100644 index 000000000..25b049240 --- /dev/null +++ b/rest/verify/v2/docs/VerifyV2ServiceWebhook.md @@ -0,0 +1,21 @@ +# VerifyV2ServiceWebhook + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**EventTypes** | **[]string** | | [optional] +**FriendlyName** | **string** | | [optional] +**ServiceSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Status** | **string** | | [optional] +**Url** | **string** | | [optional] +**WebhookMethod** | **string** | | [optional] +**WebhookUrl** | **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/rest/verify/v2/docs/VerifyV2ServiceWebhookReadResponse.md b/rest/verify/v2/docs/VerifyV2ServiceWebhookReadResponse.md new file mode 100644 index 000000000..b6406b5f9 --- /dev/null +++ b/rest/verify/v2/docs/VerifyV2ServiceWebhookReadResponse.md @@ -0,0 +1,12 @@ +# VerifyV2ServiceWebhookReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**VerifyV2ServiceReadResponseMeta**](verify_v2_serviceReadResponse_meta.md) | | [optional] +**Webhooks** | [**[]VerifyV2ServiceWebhook**](verify.v2.service.webhook.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/rest/verify/v2/model_create_access_token_request.go b/rest/verify/v2/model_create_access_token_request.go new file mode 100644 index 000000000..05b3aa069 --- /dev/null +++ b/rest/verify/v2/model_create_access_token_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateAccessTokenRequest struct for CreateAccessTokenRequest +type CreateAccessTokenRequest struct { + // The Type of this Factor. Eg. `push` + FactorType string `json:"FactorType"` + // The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, and generated by your external system, such as your user's UUID, GUID, or SID. + Identity string `json:"Identity"` +} diff --git a/rest/verify/v2/model_create_bucket_request.go b/rest/verify/v2/model_create_bucket_request.go new file mode 100644 index 000000000..69ba9b567 --- /dev/null +++ b/rest/verify/v2/model_create_bucket_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateBucketRequest struct for CreateBucketRequest +type CreateBucketRequest struct { + // Number of seconds that the rate limit will be enforced over. + Interval int32 `json:"Interval"` + // Maximum number of requests permitted in during the interval. + Max int32 `json:"Max"` +} diff --git a/rest/verify/v2/model_create_challenge_request.go b/rest/verify/v2/model_create_challenge_request.go new file mode 100644 index 000000000..04372eb70 --- /dev/null +++ b/rest/verify/v2/model_create_challenge_request.go @@ -0,0 +1,27 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// CreateChallengeRequest struct for CreateChallengeRequest +type CreateChallengeRequest struct { + // A list of objects that describe the Fields included in the Challenge. Each object contains the label and value of the field. Used when `factor_type` is `push`. + DetailsFields []map[string]interface{} `json:"Details.Fields,omitempty"` + // Shown to the user when the push notification arrives. Required when `factor_type` is `push` + DetailsMessage string `json:"Details.Message,omitempty"` + // The date-time when this Challenge expires, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. The default value is five (5) minutes after Challenge creation. The max value is sixty (60) minutes after creation. + ExpirationDate time.Time `json:"ExpirationDate,omitempty"` + // The unique SID identifier of the Factor. + FactorSid string `json:"FactorSid"` + // Details provided to give context about the Challenge. Not shown to the end user. It must be a stringified JSON with only strings values eg. `{\"ip\": \"172.168.1.234\"}` + HiddenDetails map[string]interface{} `json:"HiddenDetails,omitempty"` +} diff --git a/rest/verify/v2/model_create_entity_request.go b/rest/verify/v2/model_create_entity_request.go new file mode 100644 index 000000000..e2c44d5fc --- /dev/null +++ b/rest/verify/v2/model_create_entity_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateEntityRequest struct for CreateEntityRequest +type CreateEntityRequest struct { + // The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, length between 8 and 64 characters, and generated by your external system, such as your user's UUID, GUID, or SID. + Identity string `json:"Identity"` +} diff --git a/rest/verify/v2/model_create_factor_request.go b/rest/verify/v2/model_create_factor_request.go new file mode 100644 index 000000000..433c5f95d --- /dev/null +++ b/rest/verify/v2/model_create_factor_request.go @@ -0,0 +1,30 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateFactorRequest struct for CreateFactorRequest +type CreateFactorRequest struct { + // The algorithm used when `factor_type` is `push`. Algorithm supported: `ES256` + BindingAlg string `json:"Binding.Alg,omitempty"` + // The Ecdsa public key in PKIX, ASN.1 DER format encoded in Base64 + BindingPublicKey string `json:"Binding.PublicKey,omitempty"` + // The ID that uniquely identifies your app in the Google or Apple store, such as `com.example.myapp`. Required when `factor_type` is `push` + ConfigAppId string `json:"Config.AppId,omitempty"` + // The transport technology used to generate the Notification Token. Can be `apn` or `fcm`. Required when `factor_type` is `push` + ConfigNotificationPlatform string `json:"Config.NotificationPlatform,omitempty"` + // For APN, the device token. For FCM the registration token. It used to send the push notifications. Required when `factor_type` is `push` + ConfigNotificationToken string `json:"Config.NotificationToken,omitempty"` + // The Verify Push SDK version used to configure the factor + ConfigSdkVersion string `json:"Config.SdkVersion,omitempty"` + // The Type of this Factor. Currently only `push` is supported + FactorType string `json:"FactorType"` + // The friendly name of this Factor + FriendlyName string `json:"FriendlyName"` +} diff --git a/rest/verify/v2/model_create_messaging_configuration_request.go b/rest/verify/v2/model_create_messaging_configuration_request.go new file mode 100644 index 000000000..249199a2d --- /dev/null +++ b/rest/verify/v2/model_create_messaging_configuration_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateMessagingConfigurationRequest struct for CreateMessagingConfigurationRequest +type CreateMessagingConfigurationRequest struct { + // The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. + Country string `json:"Country"` + // The SID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) to be used to send SMS to the country of this configuration. + MessagingServiceSid string `json:"MessagingServiceSid"` +} diff --git a/rest/verify/v2/model_create_rate_limit_request.go b/rest/verify/v2/model_create_rate_limit_request.go new file mode 100644 index 000000000..44bbc392e --- /dev/null +++ b/rest/verify/v2/model_create_rate_limit_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateRateLimitRequest struct for CreateRateLimitRequest +type CreateRateLimitRequest struct { + // Description of this Rate Limit + Description string `json:"Description,omitempty"` + // Provides a unique and addressable name to be assigned to this Rate Limit, assigned by the developer, to be optionally used in addition to SID. **This value should not contain PII.** + UniqueName string `json:"UniqueName"` +} diff --git a/rest/verify/v2/model_create_service_request.go b/rest/verify/v2/model_create_service_request.go new file mode 100644 index 000000000..dcd1a668a --- /dev/null +++ b/rest/verify/v2/model_create_service_request.go @@ -0,0 +1,38 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateServiceRequest struct for CreateServiceRequest +type CreateServiceRequest struct { + // The length of the verification code to generate. Must be an integer value between 4 and 10, inclusive. + CodeLength int32 `json:"CodeLength,omitempty"` + // Whether to allow sending verifications with a custom code instead of a randomly generated one. Not available for all customers. + CustomCodeEnabled bool `json:"CustomCodeEnabled,omitempty"` + // Whether to add a security warning at the end of an SMS verification body. Disabled by default and applies only to SMS. Example SMS body: `Your AppName verification code is: 1234. Don’t share this code with anyone; our employees will never ask for the code` + DoNotShareWarningEnabled bool `json:"DoNotShareWarningEnabled,omitempty"` + // Whether to ask the user to press a number before delivering the verify code in a phone call. + DtmfInputRequired bool `json:"DtmfInputRequired,omitempty"` + // A descriptive string that you create to describe the verification service. It can be up to 30 characters long. **This value should not contain PII.** + FriendlyName string `json:"FriendlyName"` + // Whether to perform a lookup with each verification started and return info about the phone number. + LookupEnabled bool `json:"LookupEnabled,omitempty"` + // Whether to pass PSD2 transaction parameters when starting a verification. + Psd2Enabled bool `json:"Psd2Enabled,omitempty"` + // Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) + PushApnCredentialSid string `json:"Push.ApnCredentialSid,omitempty"` + // Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) + PushFcmCredentialSid string `json:"Push.FcmCredentialSid,omitempty"` + // Optional configuration for the Push factors. If true, include the date in the Challenge's reponse. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: true + PushIncludeDate bool `json:"Push.IncludeDate,omitempty"` + // Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`. + SkipSmsToLandlines bool `json:"SkipSmsToLandlines,omitempty"` + // The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. + TtsName string `json:"TtsName,omitempty"` +} diff --git a/rest/verify/v2/model_create_verification_check_request.go b/rest/verify/v2/model_create_verification_check_request.go new file mode 100644 index 000000000..ada1aa25d --- /dev/null +++ b/rest/verify/v2/model_create_verification_check_request.go @@ -0,0 +1,24 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateVerificationCheckRequest struct for CreateVerificationCheckRequest +type CreateVerificationCheckRequest struct { + // The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. + Amount string `json:"Amount,omitempty"` + // The 4-10 character string being verified. + Code string `json:"Code"` + // The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. + Payee string `json:"Payee,omitempty"` + // The phone number or [email](https://www.twilio.com/docs/verify/email) to verify. Either this parameter or the `verification_sid` must be specified. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). + To string `json:"To,omitempty"` + // A SID that uniquely identifies the Verification Check. Either this parameter or the `to` phone number/[email](https://www.twilio.com/docs/verify/email) must be specified. + VerificationSid string `json:"VerificationSid,omitempty"` +} diff --git a/rest/verify/v2/model_create_verification_request.go b/rest/verify/v2/model_create_verification_request.go new file mode 100644 index 000000000..80a118661 --- /dev/null +++ b/rest/verify/v2/model_create_verification_request.go @@ -0,0 +1,38 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateVerificationRequest struct for CreateVerificationRequest +type CreateVerificationRequest struct { + // The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. + Amount string `json:"Amount,omitempty"` + // Your [App Hash](https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string) to be appended at the end of your verification SMS body. Applies only to SMS. Example SMS body: `<#> Your AppName verification code is: 1234 He42w354ol9`. + AppHash string `json:"AppHash,omitempty"` + // The verification method to use. Can be: [`email`](https://www.twilio.com/docs/verify/email), `sms` or `call`. + Channel string `json:"Channel"` + // [`email`](https://www.twilio.com/docs/verify/email) channel configuration in json format. Must include 'from' and 'from_name'. + ChannelConfiguration map[string]interface{} `json:"ChannelConfiguration,omitempty"` + // A pre-generated code to use for verification. The code can be between 4 and 10 characters, inclusive. + CustomCode string `json:"CustomCode,omitempty"` + // A custom user defined friendly name that overwrites the existing one in the verification message + CustomFriendlyName string `json:"CustomFriendlyName,omitempty"` + // The text of a custom message to use for the verification. + CustomMessage string `json:"CustomMessage,omitempty"` + // The locale to use for the verification SMS or call. Can be: `af`, `ar`, `ca`, `cs`, `da`, `de`, `el`, `en`, `en-GB`, `es`, `fi`, `fr`, `he`, `hi`, `hr`, `hu`, `id`, `it`, `ja`, `ko`, `ms`, `nb`, `nl`, `pl`, `pt`, `pr-BR`, `ro`, `ru`, `sv`, `th`, `tl`, `tr`, `vi`, `zh`, `zh-CN`, or `zh-HK.` + Locale string `json:"Locale,omitempty"` + // The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. + Payee string `json:"Payee,omitempty"` + // The custom key-value pairs of Programmable Rate Limits. Keys correspond to `unique_name` fields defined when [creating your Rate Limit](https://www.twilio.com/docs/verify/api/service-rate-limits). Associated value pairs represent values in the request that you are rate limiting on. You may include multiple Rate Limit values in each request. + RateLimits map[string]interface{} `json:"RateLimits,omitempty"` + // The digits to send after a phone call is answered, for example, to dial an extension. For more information, see the Programmable Voice documentation of [sendDigits](https://www.twilio.com/docs/voice/twiml/number#attributes-sendDigits). + SendDigits string `json:"SendDigits,omitempty"` + // The phone number or [email](https://www.twilio.com/docs/verify/email) to verify. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). + To string `json:"To"` +} diff --git a/rest/verify/v2/model_create_webhook_request.go b/rest/verify/v2/model_create_webhook_request.go new file mode 100644 index 000000000..fcdf24a91 --- /dev/null +++ b/rest/verify/v2/model_create_webhook_request.go @@ -0,0 +1,22 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateWebhookRequest struct for CreateWebhookRequest +type CreateWebhookRequest struct { + // The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied` + EventTypes []string `json:"EventTypes"` + // The string that you assigned to describe the webhook. **This value should not contain PII.** + FriendlyName string `json:"FriendlyName"` + // The webhook status. Default value is `enabled`. One of: `enabled` or `disabled` + Status string `json:"Status,omitempty"` + // The URL associated with this Webhook. + WebhookUrl string `json:"WebhookUrl"` +} diff --git a/rest/verify/v2/model_update_bucket_request.go b/rest/verify/v2/model_update_bucket_request.go new file mode 100644 index 000000000..cfb0e779d --- /dev/null +++ b/rest/verify/v2/model_update_bucket_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateBucketRequest struct for UpdateBucketRequest +type UpdateBucketRequest struct { + // Number of seconds that the rate limit will be enforced over. + Interval int32 `json:"Interval,omitempty"` + // Maximum number of requests permitted in during the interval. + Max int32 `json:"Max,omitempty"` +} diff --git a/rest/verify/v2/model_update_challenge_request.go b/rest/verify/v2/model_update_challenge_request.go new file mode 100644 index 000000000..a4ecf6b3b --- /dev/null +++ b/rest/verify/v2/model_update_challenge_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateChallengeRequest struct for UpdateChallengeRequest +type UpdateChallengeRequest struct { + // The optional payload needed to verify the Challenge. E.g., a TOTP would use the numeric code. + AuthPayload string `json:"AuthPayload,omitempty"` +} diff --git a/rest/verify/v2/model_update_factor_request.go b/rest/verify/v2/model_update_factor_request.go new file mode 100644 index 000000000..a1052f490 --- /dev/null +++ b/rest/verify/v2/model_update_factor_request.go @@ -0,0 +1,22 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateFactorRequest struct for UpdateFactorRequest +type UpdateFactorRequest struct { + // The optional payload needed to verify the Factor for the first time. E.g. for a TOTP, the numeric code. + AuthPayload string `json:"AuthPayload,omitempty"` + // For APN, the device token. For FCM the registration token. It used to send the push notifications. Required when `factor_type` is `push` + ConfigNotificationToken string `json:"Config.NotificationToken,omitempty"` + // The Verify Push SDK version used to configure the factor + ConfigSdkVersion string `json:"Config.SdkVersion,omitempty"` + // The new friendly name of this Factor + FriendlyName string `json:"FriendlyName,omitempty"` +} diff --git a/rest/verify/v2/model_update_messaging_configuration_request.go b/rest/verify/v2/model_update_messaging_configuration_request.go new file mode 100644 index 000000000..be74d3398 --- /dev/null +++ b/rest/verify/v2/model_update_messaging_configuration_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateMessagingConfigurationRequest struct for UpdateMessagingConfigurationRequest +type UpdateMessagingConfigurationRequest struct { + // The SID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) to be used to send SMS to the country of this configuration. + MessagingServiceSid string `json:"MessagingServiceSid"` +} diff --git a/rest/verify/v2/model_update_rate_limit_request.go b/rest/verify/v2/model_update_rate_limit_request.go new file mode 100644 index 000000000..e154b724a --- /dev/null +++ b/rest/verify/v2/model_update_rate_limit_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateRateLimitRequest struct for UpdateRateLimitRequest +type UpdateRateLimitRequest struct { + // Description of this Rate Limit + Description string `json:"Description,omitempty"` +} diff --git a/rest/verify/v2/model_update_service_request.go b/rest/verify/v2/model_update_service_request.go new file mode 100644 index 000000000..db39022f1 --- /dev/null +++ b/rest/verify/v2/model_update_service_request.go @@ -0,0 +1,38 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateServiceRequest struct for UpdateServiceRequest +type UpdateServiceRequest struct { + // The length of the verification code to generate. Must be an integer value between 4 and 10, inclusive. + CodeLength int32 `json:"CodeLength,omitempty"` + // Whether to allow sending verifications with a custom code instead of a randomly generated one. Not available for all customers. + CustomCodeEnabled bool `json:"CustomCodeEnabled,omitempty"` + // Whether to add a privacy warning at the end of an SMS. **Disabled by default and applies only for SMS.** + DoNotShareWarningEnabled bool `json:"DoNotShareWarningEnabled,omitempty"` + // Whether to ask the user to press a number before delivering the verify code in a phone call. + DtmfInputRequired bool `json:"DtmfInputRequired,omitempty"` + // A descriptive string that you create to describe the verification service. It can be up to 30 characters long. **This value should not contain PII.** + FriendlyName string `json:"FriendlyName,omitempty"` + // Whether to perform a lookup with each verification started and return info about the phone number. + LookupEnabled bool `json:"LookupEnabled,omitempty"` + // Whether to pass PSD2 transaction parameters when starting a verification. + Psd2Enabled bool `json:"Psd2Enabled,omitempty"` + // Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) + PushApnCredentialSid string `json:"Push.ApnCredentialSid,omitempty"` + // Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) + PushFcmCredentialSid string `json:"Push.FcmCredentialSid,omitempty"` + // Optional configuration for the Push factors. If true, include the date in the Challenge's reponse. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: true + PushIncludeDate bool `json:"Push.IncludeDate,omitempty"` + // Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`. + SkipSmsToLandlines bool `json:"SkipSmsToLandlines,omitempty"` + // The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. + TtsName string `json:"TtsName,omitempty"` +} diff --git a/rest/verify/v2/model_update_verification_request.go b/rest/verify/v2/model_update_verification_request.go new file mode 100644 index 000000000..00080302f --- /dev/null +++ b/rest/verify/v2/model_update_verification_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateVerificationRequest struct for UpdateVerificationRequest +type UpdateVerificationRequest struct { + // The new status of the resource. Can be: `canceled` or `approved`. + Status string `json:"Status"` +} diff --git a/rest/verify/v2/model_update_webhook_request.go b/rest/verify/v2/model_update_webhook_request.go new file mode 100644 index 000000000..9fdf0552f --- /dev/null +++ b/rest/verify/v2/model_update_webhook_request.go @@ -0,0 +1,22 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateWebhookRequest struct for UpdateWebhookRequest +type UpdateWebhookRequest struct { + // The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied` + EventTypes []string `json:"EventTypes,omitempty"` + // The string that you assigned to describe the webhook. **This value should not contain PII.** + FriendlyName string `json:"FriendlyName,omitempty"` + // The webhook status. Default value is `enabled`. One of: `enabled` or `disabled` + Status string `json:"Status,omitempty"` + // The URL associated with this Webhook. + WebhookUrl string `json:"WebhookUrl,omitempty"` +} diff --git a/rest/verify/v2/model_verify_v2_form.go b/rest/verify/v2/model_verify_v2_form.go new file mode 100644 index 000000000..4024927c6 --- /dev/null +++ b/rest/verify/v2/model_verify_v2_form.go @@ -0,0 +1,18 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// VerifyV2Form struct for VerifyV2Form +type VerifyV2Form struct { + FormMeta map[string]interface{} `json:"form_meta,omitempty"` + FormType string `json:"form_type,omitempty"` + Forms map[string]interface{} `json:"forms,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/verify/v2/model_verify_v2_service.go b/rest/verify/v2/model_verify_v2_service.go new file mode 100644 index 000000000..72b447b7f --- /dev/null +++ b/rest/verify/v2/model_verify_v2_service.go @@ -0,0 +1,33 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// VerifyV2Service struct for VerifyV2Service +type VerifyV2Service struct { + AccountSid string `json:"account_sid,omitempty"` + CodeLength int32 `json:"code_length,omitempty"` + CustomCodeEnabled bool `json:"custom_code_enabled,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + DoNotShareWarningEnabled bool `json:"do_not_share_warning_enabled,omitempty"` + DtmfInputRequired bool `json:"dtmf_input_required,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + LookupEnabled bool `json:"lookup_enabled,omitempty"` + Psd2Enabled bool `json:"psd2_enabled,omitempty"` + Push map[string]interface{} `json:"push,omitempty"` + Sid string `json:"sid,omitempty"` + SkipSmsToLandlines bool `json:"skip_sms_to_landlines,omitempty"` + TtsName string `json:"tts_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/verify/v2/model_verify_v2_service_access_token.go b/rest/verify/v2/model_verify_v2_service_access_token.go new file mode 100644 index 000000000..df5ab8c46 --- /dev/null +++ b/rest/verify/v2/model_verify_v2_service_access_token.go @@ -0,0 +1,15 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// VerifyV2ServiceAccessToken struct for VerifyV2ServiceAccessToken +type VerifyV2ServiceAccessToken struct { + Token string `json:"token,omitempty"` +} diff --git a/rest/verify/v2/model_verify_v2_service_entity.go b/rest/verify/v2/model_verify_v2_service_entity.go new file mode 100644 index 000000000..7f5b9c589 --- /dev/null +++ b/rest/verify/v2/model_verify_v2_service_entity.go @@ -0,0 +1,25 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// VerifyV2ServiceEntity struct for VerifyV2ServiceEntity +type VerifyV2ServiceEntity struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Identity string `json:"identity,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/verify/v2/model_verify_v2_service_entity_challenge.go b/rest/verify/v2/model_verify_v2_service_entity_challenge.go new file mode 100644 index 000000000..bda46008e --- /dev/null +++ b/rest/verify/v2/model_verify_v2_service_entity_challenge.go @@ -0,0 +1,33 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// VerifyV2ServiceEntityChallenge struct for VerifyV2ServiceEntityChallenge +type VerifyV2ServiceEntityChallenge struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateResponded time.Time `json:"date_responded,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Details map[string]interface{} `json:"details,omitempty"` + EntitySid string `json:"entity_sid,omitempty"` + ExpirationDate time.Time `json:"expiration_date,omitempty"` + FactorSid string `json:"factor_sid,omitempty"` + FactorType string `json:"factor_type,omitempty"` + HiddenDetails map[string]interface{} `json:"hidden_details,omitempty"` + Identity string `json:"identity,omitempty"` + RespondedReason string `json:"responded_reason,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Status string `json:"status,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/verify/v2/model_verify_v2_service_entity_challenge_read_response.go b/rest/verify/v2/model_verify_v2_service_entity_challenge_read_response.go new file mode 100644 index 000000000..98f3b8398 --- /dev/null +++ b/rest/verify/v2/model_verify_v2_service_entity_challenge_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// VerifyV2ServiceEntityChallengeReadResponse struct for VerifyV2ServiceEntityChallengeReadResponse +type VerifyV2ServiceEntityChallengeReadResponse struct { + Challenges []VerifyV2ServiceEntityChallenge `json:"challenges,omitempty"` + Meta VerifyV2ServiceReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/verify/v2/model_verify_v2_service_entity_factor.go b/rest/verify/v2/model_verify_v2_service_entity_factor.go new file mode 100644 index 000000000..37e769c27 --- /dev/null +++ b/rest/verify/v2/model_verify_v2_service_entity_factor.go @@ -0,0 +1,29 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// VerifyV2ServiceEntityFactor struct for VerifyV2ServiceEntityFactor +type VerifyV2ServiceEntityFactor struct { + AccountSid string `json:"account_sid,omitempty"` + Config map[string]interface{} `json:"config,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + EntitySid string `json:"entity_sid,omitempty"` + FactorType string `json:"factor_type,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Identity string `json:"identity,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Status string `json:"status,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/verify/v2/model_verify_v2_service_entity_factor_read_response.go b/rest/verify/v2/model_verify_v2_service_entity_factor_read_response.go new file mode 100644 index 000000000..c4a2792b8 --- /dev/null +++ b/rest/verify/v2/model_verify_v2_service_entity_factor_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// VerifyV2ServiceEntityFactorReadResponse struct for VerifyV2ServiceEntityFactorReadResponse +type VerifyV2ServiceEntityFactorReadResponse struct { + Factors []VerifyV2ServiceEntityFactor `json:"factors,omitempty"` + Meta VerifyV2ServiceReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/verify/v2/model_verify_v2_service_entity_read_response.go b/rest/verify/v2/model_verify_v2_service_entity_read_response.go new file mode 100644 index 000000000..83f54cc18 --- /dev/null +++ b/rest/verify/v2/model_verify_v2_service_entity_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// VerifyV2ServiceEntityReadResponse struct for VerifyV2ServiceEntityReadResponse +type VerifyV2ServiceEntityReadResponse struct { + Entities []VerifyV2ServiceEntity `json:"entities,omitempty"` + Meta VerifyV2ServiceReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/verify/v2/model_verify_v2_service_messaging_configuration.go b/rest/verify/v2/model_verify_v2_service_messaging_configuration.go new file mode 100644 index 000000000..d21f873f2 --- /dev/null +++ b/rest/verify/v2/model_verify_v2_service_messaging_configuration.go @@ -0,0 +1,24 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// VerifyV2ServiceMessagingConfiguration struct for VerifyV2ServiceMessagingConfiguration +type VerifyV2ServiceMessagingConfiguration struct { + AccountSid string `json:"account_sid,omitempty"` + Country string `json:"country,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + MessagingServiceSid string `json:"messaging_service_sid,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/verify/v2/model_verify_v2_service_messaging_configuration_read_response.go b/rest/verify/v2/model_verify_v2_service_messaging_configuration_read_response.go new file mode 100644 index 000000000..140edb1b7 --- /dev/null +++ b/rest/verify/v2/model_verify_v2_service_messaging_configuration_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// VerifyV2ServiceMessagingConfigurationReadResponse struct for VerifyV2ServiceMessagingConfigurationReadResponse +type VerifyV2ServiceMessagingConfigurationReadResponse struct { + MessagingConfigurations []VerifyV2ServiceMessagingConfiguration `json:"messaging_configurations,omitempty"` + Meta VerifyV2ServiceReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/verify/v2/model_verify_v2_service_rate_limit.go b/rest/verify/v2/model_verify_v2_service_rate_limit.go new file mode 100644 index 000000000..102747bc3 --- /dev/null +++ b/rest/verify/v2/model_verify_v2_service_rate_limit.go @@ -0,0 +1,26 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// VerifyV2ServiceRateLimit struct for VerifyV2ServiceRateLimit +type VerifyV2ServiceRateLimit struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Description string `json:"description,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/verify/v2/model_verify_v2_service_rate_limit_bucket.go b/rest/verify/v2/model_verify_v2_service_rate_limit_bucket.go new file mode 100644 index 000000000..a3002190f --- /dev/null +++ b/rest/verify/v2/model_verify_v2_service_rate_limit_bucket.go @@ -0,0 +1,26 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// VerifyV2ServiceRateLimitBucket struct for VerifyV2ServiceRateLimitBucket +type VerifyV2ServiceRateLimitBucket struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Interval int32 `json:"interval,omitempty"` + Max int32 `json:"max,omitempty"` + RateLimitSid string `json:"rate_limit_sid,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/verify/v2/model_verify_v2_service_rate_limit_bucket_read_response.go b/rest/verify/v2/model_verify_v2_service_rate_limit_bucket_read_response.go new file mode 100644 index 000000000..c9d90db88 --- /dev/null +++ b/rest/verify/v2/model_verify_v2_service_rate_limit_bucket_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// VerifyV2ServiceRateLimitBucketReadResponse struct for VerifyV2ServiceRateLimitBucketReadResponse +type VerifyV2ServiceRateLimitBucketReadResponse struct { + Buckets []VerifyV2ServiceRateLimitBucket `json:"buckets,omitempty"` + Meta VerifyV2ServiceReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/verify/v2/model_verify_v2_service_rate_limit_read_response.go b/rest/verify/v2/model_verify_v2_service_rate_limit_read_response.go new file mode 100644 index 000000000..75ef44971 --- /dev/null +++ b/rest/verify/v2/model_verify_v2_service_rate_limit_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// VerifyV2ServiceRateLimitReadResponse struct for VerifyV2ServiceRateLimitReadResponse +type VerifyV2ServiceRateLimitReadResponse struct { + Meta VerifyV2ServiceReadResponseMeta `json:"meta,omitempty"` + RateLimits []VerifyV2ServiceRateLimit `json:"rate_limits,omitempty"` +} diff --git a/rest/verify/v2/model_verify_v2_service_read_response.go b/rest/verify/v2/model_verify_v2_service_read_response.go new file mode 100644 index 000000000..e1697147a --- /dev/null +++ b/rest/verify/v2/model_verify_v2_service_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// VerifyV2ServiceReadResponse struct for VerifyV2ServiceReadResponse +type VerifyV2ServiceReadResponse struct { + Meta VerifyV2ServiceReadResponseMeta `json:"meta,omitempty"` + Services []VerifyV2Service `json:"services,omitempty"` +} diff --git a/rest/verify/v2/model_verify_v2_service_read_response_meta.go b/rest/verify/v2/model_verify_v2_service_read_response_meta.go new file mode 100644 index 000000000..747e515d9 --- /dev/null +++ b/rest/verify/v2/model_verify_v2_service_read_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// VerifyV2ServiceReadResponseMeta struct for VerifyV2ServiceReadResponseMeta +type VerifyV2ServiceReadResponseMeta struct { + FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` + NextPageUrl string `json:"next_page_url,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUrl string `json:"previous_page_url,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/verify/v2/model_verify_v2_service_verification.go b/rest/verify/v2/model_verify_v2_service_verification.go new file mode 100644 index 000000000..6db18a582 --- /dev/null +++ b/rest/verify/v2/model_verify_v2_service_verification.go @@ -0,0 +1,31 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// VerifyV2ServiceVerification struct for VerifyV2ServiceVerification +type VerifyV2ServiceVerification struct { + AccountSid string `json:"account_sid,omitempty"` + Amount string `json:"amount,omitempty"` + Channel string `json:"channel,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Lookup map[string]interface{} `json:"lookup,omitempty"` + Payee string `json:"payee,omitempty"` + SendCodeAttempts []map[string]interface{} `json:"send_code_attempts,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Status string `json:"status,omitempty"` + To string `json:"to,omitempty"` + Url string `json:"url,omitempty"` + Valid bool `json:"valid,omitempty"` +} diff --git a/rest/verify/v2/model_verify_v2_service_verification_check.go b/rest/verify/v2/model_verify_v2_service_verification_check.go new file mode 100644 index 000000000..7fb0913cb --- /dev/null +++ b/rest/verify/v2/model_verify_v2_service_verification_check.go @@ -0,0 +1,28 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// VerifyV2ServiceVerificationCheck struct for VerifyV2ServiceVerificationCheck +type VerifyV2ServiceVerificationCheck struct { + AccountSid string `json:"account_sid,omitempty"` + Amount string `json:"amount,omitempty"` + Channel string `json:"channel,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Payee string `json:"payee,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Status string `json:"status,omitempty"` + To string `json:"to,omitempty"` + Valid bool `json:"valid,omitempty"` +} diff --git a/rest/verify/v2/model_verify_v2_service_webhook.go b/rest/verify/v2/model_verify_v2_service_webhook.go new file mode 100644 index 000000000..6b4111cdd --- /dev/null +++ b/rest/verify/v2/model_verify_v2_service_webhook.go @@ -0,0 +1,28 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// VerifyV2ServiceWebhook struct for VerifyV2ServiceWebhook +type VerifyV2ServiceWebhook struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + EventTypes []string `json:"event_types,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + ServiceSid string `json:"service_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Status string `json:"status,omitempty"` + Url string `json:"url,omitempty"` + WebhookMethod string `json:"webhook_method,omitempty"` + WebhookUrl string `json:"webhook_url,omitempty"` +} diff --git a/rest/verify/v2/model_verify_v2_service_webhook_read_response.go b/rest/verify/v2/model_verify_v2_service_webhook_read_response.go new file mode 100644 index 000000000..473046b8f --- /dev/null +++ b/rest/verify/v2/model_verify_v2_service_webhook_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// VerifyV2ServiceWebhookReadResponse struct for VerifyV2ServiceWebhookReadResponse +type VerifyV2ServiceWebhookReadResponse struct { + Meta VerifyV2ServiceReadResponseMeta `json:"meta,omitempty"` + Webhooks []VerifyV2ServiceWebhook `json:"webhooks,omitempty"` +} diff --git a/rest/verify/v2/response.go b/rest/verify/v2/response.go new file mode 100644 index 000000000..fef4286db --- /dev/null +++ b/rest/verify/v2/response.go @@ -0,0 +1,47 @@ +/* + * Twilio - Verify + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// Response returns a new APIResponse object. +func Response(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// ResponseWithError returns a new APIResponse object with the provided error message. +func ResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/rest/video/v1/.openapi-generator-ignore b/rest/video/v1/.openapi-generator-ignore new file mode 100644 index 000000000..7484ee590 --- /dev/null +++ b/rest/video/v1/.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/rest/video/v1/.openapi-generator/VERSION b/rest/video/v1/.openapi-generator/VERSION new file mode 100644 index 000000000..ecedc98d1 --- /dev/null +++ b/rest/video/v1/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.3.1 \ No newline at end of file diff --git a/rest/video/v1/README.md b/rest/video/v1/README.md new file mode 100644 index 000000000..232f53650 --- /dev/null +++ b/rest/video/v1/README.md @@ -0,0 +1,127 @@ +# Go API client for openapi + +This is the public Twilio REST API. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 5.15.0 +- Package version: 1.0.0 +- Build package: com.twilio.oai.TwilioGoGenerator +For more information, please visit [https://support.twilio.com](https://support.twilio.com) + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import "./openapi" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**CreateComposition**](docs/DefaultApi.md#createcomposition) | **Post** /v1/Compositions | +*DefaultApi* | [**CreateCompositionHook**](docs/DefaultApi.md#createcompositionhook) | **Post** /v1/CompositionHooks | +*DefaultApi* | [**CreateCompositionSettings**](docs/DefaultApi.md#createcompositionsettings) | **Post** /v1/CompositionSettings/Default | +*DefaultApi* | [**CreateRecordingSettings**](docs/DefaultApi.md#createrecordingsettings) | **Post** /v1/RecordingSettings/Default | +*DefaultApi* | [**CreateRoom**](docs/DefaultApi.md#createroom) | **Post** /v1/Rooms | +*DefaultApi* | [**DeleteComposition**](docs/DefaultApi.md#deletecomposition) | **Delete** /v1/Compositions/{Sid} | +*DefaultApi* | [**DeleteCompositionHook**](docs/DefaultApi.md#deletecompositionhook) | **Delete** /v1/CompositionHooks/{Sid} | +*DefaultApi* | [**DeleteRecording**](docs/DefaultApi.md#deleterecording) | **Delete** /v1/Recordings/{Sid} | +*DefaultApi* | [**DeleteRoomRecording**](docs/DefaultApi.md#deleteroomrecording) | **Delete** /v1/Rooms/{RoomSid}/Recordings/{Sid} | +*DefaultApi* | [**FetchComposition**](docs/DefaultApi.md#fetchcomposition) | **Get** /v1/Compositions/{Sid} | +*DefaultApi* | [**FetchCompositionHook**](docs/DefaultApi.md#fetchcompositionhook) | **Get** /v1/CompositionHooks/{Sid} | +*DefaultApi* | [**FetchCompositionSettings**](docs/DefaultApi.md#fetchcompositionsettings) | **Get** /v1/CompositionSettings/Default | +*DefaultApi* | [**FetchRecording**](docs/DefaultApi.md#fetchrecording) | **Get** /v1/Recordings/{Sid} | +*DefaultApi* | [**FetchRecordingSettings**](docs/DefaultApi.md#fetchrecordingsettings) | **Get** /v1/RecordingSettings/Default | +*DefaultApi* | [**FetchRoom**](docs/DefaultApi.md#fetchroom) | **Get** /v1/Rooms/{Sid} | +*DefaultApi* | [**FetchRoomParticipant**](docs/DefaultApi.md#fetchroomparticipant) | **Get** /v1/Rooms/{RoomSid}/Participants/{Sid} | +*DefaultApi* | [**FetchRoomParticipantPublishedTrack**](docs/DefaultApi.md#fetchroomparticipantpublishedtrack) | **Get** /v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/PublishedTracks/{Sid} | +*DefaultApi* | [**FetchRoomParticipantSubscribeRule**](docs/DefaultApi.md#fetchroomparticipantsubscriberule) | **Get** /v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/SubscribeRules | +*DefaultApi* | [**FetchRoomParticipantSubscribedTrack**](docs/DefaultApi.md#fetchroomparticipantsubscribedtrack) | **Get** /v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/SubscribedTracks/{Sid} | +*DefaultApi* | [**FetchRoomRecording**](docs/DefaultApi.md#fetchroomrecording) | **Get** /v1/Rooms/{RoomSid}/Recordings/{Sid} | +*DefaultApi* | [**FetchRoomRecordingRule**](docs/DefaultApi.md#fetchroomrecordingrule) | **Get** /v1/Rooms/{RoomSid}/RecordingRules | +*DefaultApi* | [**ListComposition**](docs/DefaultApi.md#listcomposition) | **Get** /v1/Compositions | +*DefaultApi* | [**ListCompositionHook**](docs/DefaultApi.md#listcompositionhook) | **Get** /v1/CompositionHooks | +*DefaultApi* | [**ListRecording**](docs/DefaultApi.md#listrecording) | **Get** /v1/Recordings | +*DefaultApi* | [**ListRoom**](docs/DefaultApi.md#listroom) | **Get** /v1/Rooms | +*DefaultApi* | [**ListRoomParticipant**](docs/DefaultApi.md#listroomparticipant) | **Get** /v1/Rooms/{RoomSid}/Participants | +*DefaultApi* | [**ListRoomParticipantPublishedTrack**](docs/DefaultApi.md#listroomparticipantpublishedtrack) | **Get** /v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/PublishedTracks | +*DefaultApi* | [**ListRoomParticipantSubscribedTrack**](docs/DefaultApi.md#listroomparticipantsubscribedtrack) | **Get** /v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/SubscribedTracks | +*DefaultApi* | [**ListRoomRecording**](docs/DefaultApi.md#listroomrecording) | **Get** /v1/Rooms/{RoomSid}/Recordings | +*DefaultApi* | [**UpdateCompositionHook**](docs/DefaultApi.md#updatecompositionhook) | **Post** /v1/CompositionHooks/{Sid} | +*DefaultApi* | [**UpdateRoom**](docs/DefaultApi.md#updateroom) | **Post** /v1/Rooms/{Sid} | +*DefaultApi* | [**UpdateRoomParticipant**](docs/DefaultApi.md#updateroomparticipant) | **Post** /v1/Rooms/{RoomSid}/Participants/{Sid} | +*DefaultApi* | [**UpdateRoomParticipantSubscribeRule**](docs/DefaultApi.md#updateroomparticipantsubscriberule) | **Post** /v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/SubscribeRules | +*DefaultApi* | [**UpdateRoomRecordingRule**](docs/DefaultApi.md#updateroomrecordingrule) | **Post** /v1/Rooms/{RoomSid}/RecordingRules | + + +## Documentation For Models + + - [CreateCompositionHookRequest](docs/CreateCompositionHookRequest.md) + - [CreateCompositionRequest](docs/CreateCompositionRequest.md) + - [CreateCompositionSettingsRequest](docs/CreateCompositionSettingsRequest.md) + - [CreateRecordingSettingsRequest](docs/CreateRecordingSettingsRequest.md) + - [CreateRoomRequest](docs/CreateRoomRequest.md) + - [UpdateCompositionHookRequest](docs/UpdateCompositionHookRequest.md) + - [UpdateRoomParticipantRequest](docs/UpdateRoomParticipantRequest.md) + - [UpdateRoomParticipantSubscribeRuleRequest](docs/UpdateRoomParticipantSubscribeRuleRequest.md) + - [UpdateRoomRecordingRuleRequest](docs/UpdateRoomRecordingRuleRequest.md) + - [UpdateRoomRequest](docs/UpdateRoomRequest.md) + - [VideoV1Composition](docs/VideoV1Composition.md) + - [VideoV1CompositionHook](docs/VideoV1CompositionHook.md) + - [VideoV1CompositionHookReadResponse](docs/VideoV1CompositionHookReadResponse.md) + - [VideoV1CompositionHookReadResponseMeta](docs/VideoV1CompositionHookReadResponseMeta.md) + - [VideoV1CompositionReadResponse](docs/VideoV1CompositionReadResponse.md) + - [VideoV1CompositionSettings](docs/VideoV1CompositionSettings.md) + - [VideoV1Recording](docs/VideoV1Recording.md) + - [VideoV1RecordingReadResponse](docs/VideoV1RecordingReadResponse.md) + - [VideoV1RecordingSettings](docs/VideoV1RecordingSettings.md) + - [VideoV1Room](docs/VideoV1Room.md) + - [VideoV1RoomReadResponse](docs/VideoV1RoomReadResponse.md) + - [VideoV1RoomRoomParticipant](docs/VideoV1RoomRoomParticipant.md) + - [VideoV1RoomRoomParticipantReadResponse](docs/VideoV1RoomRoomParticipantReadResponse.md) + - [VideoV1RoomRoomParticipantRoomParticipantPublishedTrack](docs/VideoV1RoomRoomParticipantRoomParticipantPublishedTrack.md) + - [VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse](docs/VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse.md) + - [VideoV1RoomRoomParticipantRoomParticipantSubscribeRule](docs/VideoV1RoomRoomParticipantRoomParticipantSubscribeRule.md) + - [VideoV1RoomRoomParticipantRoomParticipantSubscribedTrack](docs/VideoV1RoomRoomParticipantRoomParticipantSubscribedTrack.md) + - [VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse](docs/VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse.md) + - [VideoV1RoomRoomRecording](docs/VideoV1RoomRoomRecording.md) + - [VideoV1RoomRoomRecordingReadResponse](docs/VideoV1RoomRoomRecordingReadResponse.md) + - [VideoV1RoomRoomRecordingRule](docs/VideoV1RoomRoomRecordingRule.md) + + +## Documentation For Authorization + + + +## accountSid_authToken + +- **Type**: HTTP basic authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ + UserName: "username", + Password: "password", +}) +r, err := client.Service.Operation(auth, args) +``` + + +## Author + +support@twilio.com + diff --git a/rest/video/v1/api_default.go b/rest/video/v1/api_default.go new file mode 100644 index 000000000..6d6784fe8 --- /dev/null +++ b/rest/video/v1/api_default.go @@ -0,0 +1,1556 @@ +/* + * Twilio - Video + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "" + "reflect" +) + +type DefaultApiService struct { + baseURL string + client *twilio.Client +} + +func NewDefaultApiService(client *twilio.Client) *DefaultApiService { + return &DefaultApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} +// CreateCompositionParams Optional parameters for the method 'CreateComposition' +type CreateCompositionParams struct { + AudioSources *[]string `json:"AudioSources,omitempty"` + AudioSourcesExcluded *[]string `json:"AudioSourcesExcluded,omitempty"` + Format *string `json:"Format,omitempty"` + Resolution *string `json:"Resolution,omitempty"` + RoomSid *string `json:"RoomSid,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + Trim *bool `json:"Trim,omitempty"` + VideoLayout *map[string]interface{} `json:"VideoLayout,omitempty"` +} + +/* +CreateComposition Method for CreateComposition + * @param optional nil or *CreateCompositionOpts - Optional Parameters: + * @param "AudioSources" ([]string) - An array of track names from the same group room to merge into the new composition. Can include zero or more track names. The new composition includes all audio sources specified in `audio_sources` except for those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which will match zero or more characters in a track name. For example, `student*` includes `student` as well as `studentTeam`. Please, be aware that either video_layout or audio_sources have to be provided to get a valid creation request + * @param "AudioSourcesExcluded" ([]string) - An array of track names to exclude. The new composition includes all audio sources specified in `audio_sources` except for those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which will match zero or more characters in a track name. For example, `student*` excludes `student` as well as `studentTeam`. This parameter can also be empty. + * @param "Format" (string) - The container format of the composition's media files. Can be: `mp4` or `webm` and the default is `webm`. If you specify `mp4` or `webm`, you must also specify one or more `audio_sources` and/or a `video_layout` element that contains a valid `video_sources` list, otherwise an error occurs. + * @param "Resolution" (string) - A string that describes the columns (width) and rows (height) of the generated composed video in pixels. Defaults to `640x480`. The string's format is `{width}x{height}` where: * 16 <= `{width}` <= 1280 * 16 <= `{height}` <= 1280 * `{width}` * `{height}` <= 921,600 Typical values are: * HD = `1280x720` * PAL = `1024x576` * VGA = `640x480` * CIF = `320x240` Note that the `resolution` imposes an aspect ratio to the resulting composition. When the original video tracks are constrained by the aspect ratio, they are scaled to fit. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. + * @param "RoomSid" (string) - The SID of the Group Room with the media tracks to be used as composition sources. + * @param "StatusCallback" (string) - The URL we should call using the `status_callback_method` to send status information to your application on every composition event. If not provided, status callback events will not be dispatched. + * @param "StatusCallbackMethod" (string) - The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`. + * @param "Trim" (bool) - Whether to clip the intervals where there is no active media in the composition. The default is `true`. Compositions with `trim` enabled are shorter when the Room is created and no Participant joins for a while as well as if all the Participants leave the room and join later, because those gaps will be removed. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. + * @param "VideoLayout" (map[string]interface{}) - An object that describes the video layout of the composition in terms of regions. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. Please, be aware that either video_layout or audio_sources have to be provided to get a valid creation request +@return VideoV1Composition +*/ +func (c *DefaultApiService) CreateComposition(params *CreateCompositionParams) (*VideoV1Composition, error) { + path := "/v1/Compositions" + + data := url.Values{} + headers := 0 + + if params != nil && params.AudioSources != nil { + data.Set("AudioSources", *params.AudioSources) + } + if params != nil && params.AudioSourcesExcluded != nil { + data.Set("AudioSourcesExcluded", *params.AudioSourcesExcluded) + } + if params != nil && params.Format != nil { + data.Set("Format", *params.Format) + } + if params != nil && params.Resolution != nil { + data.Set("Resolution", *params.Resolution) + } + if params != nil && params.RoomSid != nil { + data.Set("RoomSid", *params.RoomSid) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.Trim != nil { + data.Set("Trim", string(*params.Trim)) + } + if params != nil && params.VideoLayout != nil { + v, err := json.Marshal(params.VideoLayout) + + if err != nil { + return nil, err + } + + data.Set("VideoLayout", string(v)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1Composition{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateCompositionHookParams Optional parameters for the method 'CreateCompositionHook' +type CreateCompositionHookParams struct { + AudioSources *[]string `json:"AudioSources,omitempty"` + AudioSourcesExcluded *[]string `json:"AudioSourcesExcluded,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + Format *string `json:"Format,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Resolution *string `json:"Resolution,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + Trim *bool `json:"Trim,omitempty"` + VideoLayout *map[string]interface{} `json:"VideoLayout,omitempty"` +} + +/* +CreateCompositionHook Method for CreateCompositionHook + * @param optional nil or *CreateCompositionHookOpts - Optional Parameters: + * @param "AudioSources" ([]string) - An array of track names from the same group room to merge into the compositions created by the composition hook. Can include zero or more track names. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` includes tracks named `student` as well as `studentTeam`. + * @param "AudioSourcesExcluded" ([]string) - An array of track names to exclude. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except for those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` excludes `student` as well as `studentTeam`. This parameter can also be empty. + * @param "Enabled" (bool) - Whether the composition hook is active. When `true`, the composition hook will be triggered for every completed Group Room in the account. When `false`, the composition hook will never be triggered. + * @param "Format" (string) - The container format of the media files used by the compositions created by the composition hook. Can be: `mp4` or `webm` and the default is `webm`. If `mp4` or `webm`, `audio_sources` must have one or more tracks and/or a `video_layout` element must contain a valid `video_sources` list, otherwise an error occurs. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 100 characters long and it must be unique within the account. + * @param "Resolution" (string) - A string that describes the columns (width) and rows (height) of the generated composed video in pixels. Defaults to `640x480`. The string's format is `{width}x{height}` where: * 16 <= `{width}` <= 1280 * 16 <= `{height}` <= 1280 * `{width}` * `{height}` <= 921,600 Typical values are: * HD = `1280x720` * PAL = `1024x576` * VGA = `640x480` * CIF = `320x240` Note that the `resolution` imposes an aspect ratio to the resulting composition. When the original video tracks are constrained by the aspect ratio, they are scaled to fit. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. + * @param "StatusCallback" (string) - The URL we should call using the `status_callback_method` to send status information to your application on every composition event. If not provided, status callback events will not be dispatched. + * @param "StatusCallbackMethod" (string) - The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`. + * @param "Trim" (bool) - Whether to clip the intervals where there is no active media in the Compositions triggered by the composition hook. The default is `true`. Compositions with `trim` enabled are shorter when the Room is created and no Participant joins for a while as well as if all the Participants leave the room and join later, because those gaps will be removed. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. + * @param "VideoLayout" (map[string]interface{}) - An object that describes the video layout of the composition hook in terms of regions. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. +@return VideoV1CompositionHook +*/ +func (c *DefaultApiService) CreateCompositionHook(params *CreateCompositionHookParams) (*VideoV1CompositionHook, error) { + path := "/v1/CompositionHooks" + + data := url.Values{} + headers := 0 + + if params != nil && params.AudioSources != nil { + data.Set("AudioSources", *params.AudioSources) + } + if params != nil && params.AudioSourcesExcluded != nil { + data.Set("AudioSourcesExcluded", *params.AudioSourcesExcluded) + } + if params != nil && params.Enabled != nil { + data.Set("Enabled", string(*params.Enabled)) + } + if params != nil && params.Format != nil { + data.Set("Format", *params.Format) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Resolution != nil { + data.Set("Resolution", *params.Resolution) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.Trim != nil { + data.Set("Trim", string(*params.Trim)) + } + if params != nil && params.VideoLayout != nil { + v, err := json.Marshal(params.VideoLayout) + + if err != nil { + return nil, err + } + + data.Set("VideoLayout", string(v)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1CompositionHook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateCompositionSettingsParams Optional parameters for the method 'CreateCompositionSettings' +type CreateCompositionSettingsParams struct { + AwsCredentialsSid *string `json:"AwsCredentialsSid,omitempty"` + AwsS3Url *string `json:"AwsS3Url,omitempty"` + AwsStorageEnabled *bool `json:"AwsStorageEnabled,omitempty"` + EncryptionEnabled *bool `json:"EncryptionEnabled,omitempty"` + EncryptionKeySid *string `json:"EncryptionKeySid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +CreateCompositionSettings Method for CreateCompositionSettings + * @param optional nil or *CreateCompositionSettingsOpts - Optional Parameters: + * @param "AwsCredentialsSid" (string) - The SID of the stored Credential resource. + * @param "AwsS3Url" (string) - The URL of the AWS S3 bucket where the compositions should be stored. We only support DNS-compliant URLs like `https://documentation-example-twilio-bucket/compositions`, where `compositions` is the path in which you want the compositions to be stored. This URL accepts only URI-valid characters, as described in the RFC 3986. + * @param "AwsStorageEnabled" (bool) - Whether all compositions should be written to the `aws_s3_url`. When `false`, all compositions are stored in our cloud. + * @param "EncryptionEnabled" (bool) - Whether all compositions should be stored in an encrypted form. The default is `false`. + * @param "EncryptionKeySid" (string) - The SID of the Public Key resource to use for encryption. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource and show to the user in the console +@return VideoV1CompositionSettings +*/ +func (c *DefaultApiService) CreateCompositionSettings(params *CreateCompositionSettingsParams) (*VideoV1CompositionSettings, error) { + path := "/v1/CompositionSettings/Default" + + data := url.Values{} + headers := 0 + + if params != nil && params.AwsCredentialsSid != nil { + data.Set("AwsCredentialsSid", *params.AwsCredentialsSid) + } + if params != nil && params.AwsS3Url != nil { + data.Set("AwsS3Url", *params.AwsS3Url) + } + if params != nil && params.AwsStorageEnabled != nil { + data.Set("AwsStorageEnabled", string(*params.AwsStorageEnabled)) + } + if params != nil && params.EncryptionEnabled != nil { + data.Set("EncryptionEnabled", string(*params.EncryptionEnabled)) + } + if params != nil && params.EncryptionKeySid != nil { + data.Set("EncryptionKeySid", *params.EncryptionKeySid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1CompositionSettings{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateRecordingSettingsParams Optional parameters for the method 'CreateRecordingSettings' +type CreateRecordingSettingsParams struct { + AwsCredentialsSid *string `json:"AwsCredentialsSid,omitempty"` + AwsS3Url *string `json:"AwsS3Url,omitempty"` + AwsStorageEnabled *bool `json:"AwsStorageEnabled,omitempty"` + EncryptionEnabled *bool `json:"EncryptionEnabled,omitempty"` + EncryptionKeySid *string `json:"EncryptionKeySid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +CreateRecordingSettings Method for CreateRecordingSettings + * @param optional nil or *CreateRecordingSettingsOpts - Optional Parameters: + * @param "AwsCredentialsSid" (string) - The SID of the stored Credential resource. + * @param "AwsS3Url" (string) - The URL of the AWS S3 bucket where the recordings should be stored. We only support DNS-compliant URLs like `https://documentation-example-twilio-bucket/recordings`, where `recordings` is the path in which you want the recordings to be stored. This URL accepts only URI-valid characters, as described in the RFC 3986. + * @param "AwsStorageEnabled" (bool) - Whether all recordings should be written to the `aws_s3_url`. When `false`, all recordings are stored in our cloud. + * @param "EncryptionEnabled" (bool) - Whether all recordings should be stored in an encrypted form. The default is `false`. + * @param "EncryptionKeySid" (string) - The SID of the Public Key resource to use for encryption. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource and be shown to users in the console +@return VideoV1RecordingSettings +*/ +func (c *DefaultApiService) CreateRecordingSettings(params *CreateRecordingSettingsParams) (*VideoV1RecordingSettings, error) { + path := "/v1/RecordingSettings/Default" + + data := url.Values{} + headers := 0 + + if params != nil && params.AwsCredentialsSid != nil { + data.Set("AwsCredentialsSid", *params.AwsCredentialsSid) + } + if params != nil && params.AwsS3Url != nil { + data.Set("AwsS3Url", *params.AwsS3Url) + } + if params != nil && params.AwsStorageEnabled != nil { + data.Set("AwsStorageEnabled", string(*params.AwsStorageEnabled)) + } + if params != nil && params.EncryptionEnabled != nil { + data.Set("EncryptionEnabled", string(*params.EncryptionEnabled)) + } + if params != nil && params.EncryptionKeySid != nil { + data.Set("EncryptionKeySid", *params.EncryptionKeySid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1RecordingSettings{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateRoomParams Optional parameters for the method 'CreateRoom' +type CreateRoomParams struct { + EnableTurn *bool `json:"EnableTurn,omitempty"` + MaxParticipants *int32 `json:"MaxParticipants,omitempty"` + MediaRegion *string `json:"MediaRegion,omitempty"` + RecordParticipantsOnConnect *bool `json:"RecordParticipantsOnConnect,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + Type *string `json:"Type,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + VideoCodecs *[]string `json:"VideoCodecs,omitempty"` +} + +/* +CreateRoom Method for CreateRoom + * @param optional nil or *CreateRoomOpts - Optional Parameters: + * @param "EnableTurn" (bool) - Deprecated, now always considered to be true. + * @param "MaxParticipants" (int32) - The maximum number of concurrent Participants allowed in the room. Peer-to-peer rooms can have up to 10 Participants. Small Group rooms can have up to 4 Participants. Group rooms can have up to 50 Participants. + * @param "MediaRegion" (string) - The region for the media server in Group Rooms. Can be: one of the [available Media Regions](https://www.twilio.com/docs/video/ip-address-whitelisting#group-rooms-media-servers). ***This feature is not available in `peer-to-peer` rooms.*** + * @param "RecordParticipantsOnConnect" (bool) - Whether to start recording when Participants connect. ***This feature is not available in `peer-to-peer` rooms.*** + * @param "StatusCallback" (string) - The URL we should call using the `status_callback_method` to send status information to your application on every room event. See [Status Callbacks](https://www.twilio.com/docs/video/api/status-callbacks) for more info. + * @param "StatusCallbackMethod" (string) - The HTTP method we should use to call `status_callback`. Can be `POST` or `GET`. + * @param "Type" (string) - The type of room. Can be: `go`, `peer-to-peer`, `group-small`, or `group`. The default value is `group`. + * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. It can be used as a `room_sid` in place of the resource's `sid` in the URL to address the resource. This value is unique for `in-progress` rooms. SDK clients can use this name to connect to the room. REST API clients can use this name in place of the Room SID to interact with the room as long as the room is `in-progress`. + * @param "VideoCodecs" ([]string) - An array of the video codecs that are supported when publishing a track in the room. Can be: `VP8` and `H264`. ***This feature is not available in `peer-to-peer` rooms*** +@return VideoV1Room +*/ +func (c *DefaultApiService) CreateRoom(params *CreateRoomParams) (*VideoV1Room, error) { + path := "/v1/Rooms" + + data := url.Values{} + headers := 0 + + if params != nil && params.EnableTurn != nil { + data.Set("EnableTurn", string(*params.EnableTurn)) + } + if params != nil && params.MaxParticipants != nil { + data.Set("MaxParticipants", string(*params.MaxParticipants)) + } + if params != nil && params.MediaRegion != nil { + data.Set("MediaRegion", *params.MediaRegion) + } + if params != nil && params.RecordParticipantsOnConnect != nil { + data.Set("RecordParticipantsOnConnect", string(*params.RecordParticipantsOnConnect)) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + if params != nil && params.VideoCodecs != nil { + data.Set("VideoCodecs", *params.VideoCodecs) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1Room{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +DeleteComposition Method for DeleteComposition +Delete a Recording Composition resource identified by a Composition SID. + * @param sid The SID of the Composition resource to delete. +*/ +func (c *DefaultApiService) DeleteComposition(sid string) (error) { + path := "/v1/Compositions/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteCompositionHook Method for DeleteCompositionHook +Delete a Recording CompositionHook resource identified by a `CompositionHook SID`. + * @param sid The SID of the CompositionHook resource to delete. +*/ +func (c *DefaultApiService) DeleteCompositionHook(sid string) (error) { + path := "/v1/CompositionHooks/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteRecording Method for DeleteRecording +Delete a Recording resource identified by a Recording SID. + * @param sid The SID of the Recording resource to delete. +*/ +func (c *DefaultApiService) DeleteRecording(sid string) (error) { + path := "/v1/Recordings/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteRoomRecording Method for DeleteRoomRecording + * @param roomSid The SID of the room with the RoomRecording resource to delete. + * @param sid The SID of the RoomRecording resource to delete. +*/ +func (c *DefaultApiService) DeleteRoomRecording(roomSid string, sid string) (error) { + path := "/v1/Rooms/{RoomSid}/Recordings/{Sid}" + path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +FetchComposition Method for FetchComposition +Returns a single Composition resource identified by a Composition SID. + * @param sid The SID of the Composition resource to fetch. +@return VideoV1Composition +*/ +func (c *DefaultApiService) FetchComposition(sid string) (*VideoV1Composition, error) { + path := "/v1/Compositions/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1Composition{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchCompositionHook Method for FetchCompositionHook +Returns a single CompositionHook resource identified by a CompositionHook SID. + * @param sid The SID of the CompositionHook resource to fetch. +@return VideoV1CompositionHook +*/ +func (c *DefaultApiService) FetchCompositionHook(sid string) (*VideoV1CompositionHook, error) { + path := "/v1/CompositionHooks/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1CompositionHook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchCompositionSettings Method for FetchCompositionSettings +@return VideoV1CompositionSettings +*/ +func (c *DefaultApiService) FetchCompositionSettings() (*VideoV1CompositionSettings, error) { + path := "/v1/CompositionSettings/Default" + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1CompositionSettings{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchRecording Method for FetchRecording +Returns a single Recording resource identified by a Recording SID. + * @param sid The SID of the Recording resource to fetch. +@return VideoV1Recording +*/ +func (c *DefaultApiService) FetchRecording(sid string) (*VideoV1Recording, error) { + path := "/v1/Recordings/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1Recording{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchRecordingSettings Method for FetchRecordingSettings +@return VideoV1RecordingSettings +*/ +func (c *DefaultApiService) FetchRecordingSettings() (*VideoV1RecordingSettings, error) { + path := "/v1/RecordingSettings/Default" + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1RecordingSettings{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchRoom Method for FetchRoom + * @param sid The SID of the Room resource to fetch. +@return VideoV1Room +*/ +func (c *DefaultApiService) FetchRoom(sid string) (*VideoV1Room, error) { + path := "/v1/Rooms/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1Room{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchRoomParticipant Method for FetchRoomParticipant + * @param roomSid The SID of the room with the Participant resource to fetch. + * @param sid The SID of the RoomParticipant resource to fetch. +@return VideoV1RoomRoomParticipant +*/ +func (c *DefaultApiService) FetchRoomParticipant(roomSid string, sid string) (*VideoV1RoomRoomParticipant, error) { + path := "/v1/Rooms/{RoomSid}/Participants/{Sid}" + path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1RoomRoomParticipant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchRoomParticipantPublishedTrack Method for FetchRoomParticipantPublishedTrack +Returns a single Track resource represented by TrackName or SID. + * @param roomSid The SID of the Room resource where the Track resource to fetch is published. + * @param participantSid The SID of the Participant resource with the published track to fetch. + * @param sid The SID of the RoomParticipantPublishedTrack resource to fetch. +@return VideoV1RoomRoomParticipantRoomParticipantPublishedTrack +*/ +func (c *DefaultApiService) FetchRoomParticipantPublishedTrack(roomSid string, participantSid string, sid string) (*VideoV1RoomRoomParticipantRoomParticipantPublishedTrack, error) { + path := "/v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/PublishedTracks/{Sid}" + path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1RoomRoomParticipantRoomParticipantPublishedTrack{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchRoomParticipantSubscribeRule Method for FetchRoomParticipantSubscribeRule +Returns a list of Subscribe Rules for the Participant. + * @param roomSid The SID of the Room resource where the subscribe rules to fetch apply. + * @param participantSid The SID of the Participant resource with the subscribe rules to fetch. +@return VideoV1RoomRoomParticipantRoomParticipantSubscribeRule +*/ +func (c *DefaultApiService) FetchRoomParticipantSubscribeRule(roomSid string, participantSid string) (*VideoV1RoomRoomParticipantRoomParticipantSubscribeRule, error) { + path := "/v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/SubscribeRules" + path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1RoomRoomParticipantRoomParticipantSubscribeRule{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchRoomParticipantSubscribedTrack Method for FetchRoomParticipantSubscribedTrack +Returns a single Track resource represented by `track_sid`. Note: This is one resource with the Video API that requires a SID, be Track Name on the subscriber side is not guaranteed to be unique. + * @param roomSid The SID of the Room where the Track resource to fetch is subscribed. + * @param participantSid The SID of the participant that subscribes to the Track resource to fetch. + * @param sid The SID of the RoomParticipantSubscribedTrack resource to fetch. +@return VideoV1RoomRoomParticipantRoomParticipantSubscribedTrack +*/ +func (c *DefaultApiService) FetchRoomParticipantSubscribedTrack(roomSid string, participantSid string, sid string) (*VideoV1RoomRoomParticipantRoomParticipantSubscribedTrack, error) { + path := "/v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/SubscribedTracks/{Sid}" + path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1RoomRoomParticipantRoomParticipantSubscribedTrack{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchRoomRecording Method for FetchRoomRecording + * @param roomSid The SID of the Room resource with the recording to fetch. + * @param sid The SID of the RoomRecording resource to fetch. +@return VideoV1RoomRoomRecording +*/ +func (c *DefaultApiService) FetchRoomRecording(roomSid string, sid string) (*VideoV1RoomRoomRecording, error) { + path := "/v1/Rooms/{RoomSid}/Recordings/{Sid}" + path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1RoomRoomRecording{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchRoomRecordingRule Method for FetchRoomRecordingRule +Returns a list of Recording Rules for the Room. + * @param roomSid The SID of the Room resource where the recording rules to fetch apply. +@return VideoV1RoomRoomRecordingRule +*/ +func (c *DefaultApiService) FetchRoomRecordingRule(roomSid string) (*VideoV1RoomRoomRecordingRule, error) { + path := "/v1/Rooms/{RoomSid}/RecordingRules" + path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1RoomRoomRecordingRule{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListCompositionParams Optional parameters for the method 'ListComposition' +type ListCompositionParams struct { + Status *string `json:"Status,omitempty"` + DateCreatedAfter *time.Time `json:"DateCreatedAfter,omitempty"` + DateCreatedBefore *time.Time `json:"DateCreatedBefore,omitempty"` + RoomSid *string `json:"RoomSid,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListComposition Method for ListComposition +List of all Recording compositions. + * @param optional nil or *ListCompositionOpts - Optional Parameters: + * @param "Status" (string) - Read only Composition resources with this status. Can be: `enqueued`, `processing`, `completed`, `deleted`, or `failed`. + * @param "DateCreatedAfter" (time.Time) - Read only Composition resources created on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time with time zone. + * @param "DateCreatedBefore" (time.Time) - Read only Composition resources created before this ISO 8601 date-time with time zone. + * @param "RoomSid" (string) - Read only Composition resources with this Room SID. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return VideoV1CompositionReadResponse +*/ +func (c *DefaultApiService) ListComposition(params *ListCompositionParams) (*VideoV1CompositionReadResponse, error) { + path := "/v1/Compositions" + + data := url.Values{} + headers := 0 + + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.DateCreatedAfter != nil { + data.Set("DateCreatedAfter", string(*params.DateCreatedAfter)) + } + if params != nil && params.DateCreatedBefore != nil { + data.Set("DateCreatedBefore", string(*params.DateCreatedBefore)) + } + if params != nil && params.RoomSid != nil { + data.Set("RoomSid", *params.RoomSid) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1CompositionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListCompositionHookParams Optional parameters for the method 'ListCompositionHook' +type ListCompositionHookParams struct { + Enabled *bool `json:"Enabled,omitempty"` + DateCreatedAfter *time.Time `json:"DateCreatedAfter,omitempty"` + DateCreatedBefore *time.Time `json:"DateCreatedBefore,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListCompositionHook Method for ListCompositionHook +List of all Recording CompositionHook resources. + * @param optional nil or *ListCompositionHookOpts - Optional Parameters: + * @param "Enabled" (bool) - Read only CompositionHook resources with an `enabled` value that matches this parameter. + * @param "DateCreatedAfter" (time.Time) - Read only CompositionHook resources created on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone. + * @param "DateCreatedBefore" (time.Time) - Read only CompositionHook resources created before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone. + * @param "FriendlyName" (string) - Read only CompositionHook resources with friendly names that match this string. The match is not case sensitive and can include asterisk `*` characters as wildcard match. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return VideoV1CompositionHookReadResponse +*/ +func (c *DefaultApiService) ListCompositionHook(params *ListCompositionHookParams) (*VideoV1CompositionHookReadResponse, error) { + path := "/v1/CompositionHooks" + + data := url.Values{} + headers := 0 + + if params != nil && params.Enabled != nil { + data.Set("Enabled", string(*params.Enabled)) + } + if params != nil && params.DateCreatedAfter != nil { + data.Set("DateCreatedAfter", string(*params.DateCreatedAfter)) + } + if params != nil && params.DateCreatedBefore != nil { + data.Set("DateCreatedBefore", string(*params.DateCreatedBefore)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1CompositionHookReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListRecordingParams Optional parameters for the method 'ListRecording' +type ListRecordingParams struct { + Status *string `json:"Status,omitempty"` + SourceSid *string `json:"SourceSid,omitempty"` + GroupingSid *[]string `json:"GroupingSid,omitempty"` + DateCreatedAfter *time.Time `json:"DateCreatedAfter,omitempty"` + DateCreatedBefore *time.Time `json:"DateCreatedBefore,omitempty"` + MediaType *string `json:"MediaType,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListRecording Method for ListRecording +List of all Track recordings. + * @param optional nil or *ListRecordingOpts - Optional Parameters: + * @param "Status" (string) - Read only the recordings that have this status. Can be: `processing`, `completed`, or `deleted`. + * @param "SourceSid" (string) - Read only the recordings that have this `source_sid`. + * @param "GroupingSid" ([]string) - Read only recordings with this `grouping_sid`, which may include a `participant_sid` and/or a `room_sid`. + * @param "DateCreatedAfter" (time.Time) - Read only recordings that started on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time with time zone. + * @param "DateCreatedBefore" (time.Time) - Read only recordings that started before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time with time zone, given as `YYYY-MM-DDThh:mm:ss+|-hh:mm` or `YYYY-MM-DDThh:mm:ssZ`. + * @param "MediaType" (string) - Read only recordings that have this media type. Can be either `audio` or `video`. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return VideoV1RecordingReadResponse +*/ +func (c *DefaultApiService) ListRecording(params *ListRecordingParams) (*VideoV1RecordingReadResponse, error) { + path := "/v1/Recordings" + + data := url.Values{} + headers := 0 + + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.SourceSid != nil { + data.Set("SourceSid", *params.SourceSid) + } + if params != nil && params.GroupingSid != nil { + data.Set("GroupingSid", string(*params.GroupingSid)) + } + if params != nil && params.DateCreatedAfter != nil { + data.Set("DateCreatedAfter", string(*params.DateCreatedAfter)) + } + if params != nil && params.DateCreatedBefore != nil { + data.Set("DateCreatedBefore", string(*params.DateCreatedBefore)) + } + if params != nil && params.MediaType != nil { + data.Set("MediaType", *params.MediaType) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1RecordingReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListRoomParams Optional parameters for the method 'ListRoom' +type ListRoomParams struct { + Status *string `json:"Status,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + DateCreatedAfter *time.Time `json:"DateCreatedAfter,omitempty"` + DateCreatedBefore *time.Time `json:"DateCreatedBefore,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListRoom Method for ListRoom + * @param optional nil or *ListRoomOpts - Optional Parameters: + * @param "Status" (string) - Read only the rooms with this status. Can be: `in-progress` (default) or `completed` + * @param "UniqueName" (string) - Read only rooms with the this `unique_name`. + * @param "DateCreatedAfter" (time.Time) - Read only rooms that started on or after this date, given as `YYYY-MM-DD`. + * @param "DateCreatedBefore" (time.Time) - Read only rooms that started before this date, given as `YYYY-MM-DD`. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return VideoV1RoomReadResponse +*/ +func (c *DefaultApiService) ListRoom(params *ListRoomParams) (*VideoV1RoomReadResponse, error) { + path := "/v1/Rooms" + + data := url.Values{} + headers := 0 + + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + if params != nil && params.DateCreatedAfter != nil { + data.Set("DateCreatedAfter", string(*params.DateCreatedAfter)) + } + if params != nil && params.DateCreatedBefore != nil { + data.Set("DateCreatedBefore", string(*params.DateCreatedBefore)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1RoomReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListRoomParticipantParams Optional parameters for the method 'ListRoomParticipant' +type ListRoomParticipantParams struct { + Status *string `json:"Status,omitempty"` + Identity *string `json:"Identity,omitempty"` + DateCreatedAfter *time.Time `json:"DateCreatedAfter,omitempty"` + DateCreatedBefore *time.Time `json:"DateCreatedBefore,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListRoomParticipant Method for ListRoomParticipant + * @param roomSid The SID of the room with the Participant resources to read. + * @param optional nil or *ListRoomParticipantOpts - Optional Parameters: + * @param "Status" (string) - Read only the participants with this status. Can be: `connected` or `disconnected`. For `in-progress` Rooms the default Status is `connected`, for `completed` Rooms only `disconnected` Participants are returned. + * @param "Identity" (string) - Read only the Participants with this [User](https://www.twilio.com/docs/chat/rest/user-resource) `identity` value. + * @param "DateCreatedAfter" (time.Time) - Read only Participants that started after this date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#UTC) format. + * @param "DateCreatedBefore" (time.Time) - Read only Participants that started before this date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#UTC) format. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return VideoV1RoomRoomParticipantReadResponse +*/ +func (c *DefaultApiService) ListRoomParticipant(roomSid string, params *ListRoomParticipantParams) (*VideoV1RoomRoomParticipantReadResponse, error) { + path := "/v1/Rooms/{RoomSid}/Participants" + path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.DateCreatedAfter != nil { + data.Set("DateCreatedAfter", string(*params.DateCreatedAfter)) + } + if params != nil && params.DateCreatedBefore != nil { + data.Set("DateCreatedBefore", string(*params.DateCreatedBefore)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1RoomRoomParticipantReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListRoomParticipantPublishedTrackParams Optional parameters for the method 'ListRoomParticipantPublishedTrack' +type ListRoomParticipantPublishedTrackParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListRoomParticipantPublishedTrack Method for ListRoomParticipantPublishedTrack +Returns a list of tracks associated with a given Participant. Only `currently` Published Tracks are in the list resource. + * @param roomSid The SID of the Room resource where the Track resources to read are published. + * @param participantSid The SID of the Participant resource with the published tracks to read. + * @param optional nil or *ListRoomParticipantPublishedTrackOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse +*/ +func (c *DefaultApiService) ListRoomParticipantPublishedTrack(roomSid string, participantSid string, params *ListRoomParticipantPublishedTrackParams) (*VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse, error) { + path := "/v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/PublishedTracks" + path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListRoomParticipantSubscribedTrackParams Optional parameters for the method 'ListRoomParticipantSubscribedTrack' +type ListRoomParticipantSubscribedTrackParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListRoomParticipantSubscribedTrack Method for ListRoomParticipantSubscribedTrack +Returns a list of tracks that are subscribed for the participant. + * @param roomSid The SID of the Room resource with the Track resources to read. + * @param participantSid The SID of the participant that subscribes to the Track resources to read. + * @param optional nil or *ListRoomParticipantSubscribedTrackOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse +*/ +func (c *DefaultApiService) ListRoomParticipantSubscribedTrack(roomSid string, participantSid string, params *ListRoomParticipantSubscribedTrackParams) (*VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse, error) { + path := "/v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/SubscribedTracks" + path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListRoomRecordingParams Optional parameters for the method 'ListRoomRecording' +type ListRoomRecordingParams struct { + Status *string `json:"Status,omitempty"` + SourceSid *string `json:"SourceSid,omitempty"` + DateCreatedAfter *time.Time `json:"DateCreatedAfter,omitempty"` + DateCreatedBefore *time.Time `json:"DateCreatedBefore,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListRoomRecording Method for ListRoomRecording + * @param roomSid The SID of the room with the RoomRecording resources to read. + * @param optional nil or *ListRoomRecordingOpts - Optional Parameters: + * @param "Status" (string) - Read only the recordings with this status. Can be: `processing`, `completed`, or `deleted`. + * @param "SourceSid" (string) - Read only the recordings that have this `source_sid`. + * @param "DateCreatedAfter" (time.Time) - Read only recordings that started on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone. + * @param "DateCreatedBefore" (time.Time) - Read only Recordings that started before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return VideoV1RoomRoomRecordingReadResponse +*/ +func (c *DefaultApiService) ListRoomRecording(roomSid string, params *ListRoomRecordingParams) (*VideoV1RoomRoomRecordingReadResponse, error) { + path := "/v1/Rooms/{RoomSid}/Recordings" + path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.SourceSid != nil { + data.Set("SourceSid", *params.SourceSid) + } + if params != nil && params.DateCreatedAfter != nil { + data.Set("DateCreatedAfter", string(*params.DateCreatedAfter)) + } + if params != nil && params.DateCreatedBefore != nil { + data.Set("DateCreatedBefore", string(*params.DateCreatedBefore)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1RoomRoomRecordingReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateCompositionHookParams Optional parameters for the method 'UpdateCompositionHook' +type UpdateCompositionHookParams struct { + AudioSources *[]string `json:"AudioSources,omitempty"` + AudioSourcesExcluded *[]string `json:"AudioSourcesExcluded,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + Format *string `json:"Format,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Resolution *string `json:"Resolution,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + Trim *bool `json:"Trim,omitempty"` + VideoLayout *map[string]interface{} `json:"VideoLayout,omitempty"` +} + +/* +UpdateCompositionHook Method for UpdateCompositionHook + * @param sid The SID of the CompositionHook resource to update. + * @param optional nil or *UpdateCompositionHookOpts - Optional Parameters: + * @param "AudioSources" ([]string) - An array of track names from the same group room to merge into the compositions created by the composition hook. Can include zero or more track names. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` includes tracks named `student` as well as `studentTeam`. + * @param "AudioSourcesExcluded" ([]string) - An array of track names to exclude. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except for those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` excludes `student` as well as `studentTeam`. This parameter can also be empty. + * @param "Enabled" (bool) - Whether the composition hook is active. When `true`, the composition hook will be triggered for every completed Group Room in the account. When `false`, the composition hook never triggers. + * @param "Format" (string) - The container format of the media files used by the compositions created by the composition hook. Can be: `mp4` or `webm` and the default is `webm`. If `mp4` or `webm`, `audio_sources` must have one or more tracks and/or a `video_layout` element must contain a valid `video_sources` list, otherwise an error occurs. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 100 characters long and it must be unique within the account. + * @param "Resolution" (string) - A string that describes the columns (width) and rows (height) of the generated composed video in pixels. Defaults to `640x480`. The string's format is `{width}x{height}` where: * 16 <= `{width}` <= 1280 * 16 <= `{height}` <= 1280 * `{width}` * `{height}` <= 921,600 Typical values are: * HD = `1280x720` * PAL = `1024x576` * VGA = `640x480` * CIF = `320x240` Note that the `resolution` imposes an aspect ratio to the resulting composition. When the original video tracks are constrained by the aspect ratio, they are scaled to fit. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. + * @param "StatusCallback" (string) - The URL we should call using the `status_callback_method` to send status information to your application on every composition event. If not provided, status callback events will not be dispatched. + * @param "StatusCallbackMethod" (string) - The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`. + * @param "Trim" (bool) - Whether to clip the intervals where there is no active media in the compositions triggered by the composition hook. The default is `true`. Compositions with `trim` enabled are shorter when the Room is created and no Participant joins for a while as well as if all the Participants leave the room and join later, because those gaps will be removed. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. + * @param "VideoLayout" (map[string]interface{}) - A JSON object that describes the video layout of the composition hook in terms of regions. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. +@return VideoV1CompositionHook +*/ +func (c *DefaultApiService) UpdateCompositionHook(sid string, params *UpdateCompositionHookParams) (*VideoV1CompositionHook, error) { + path := "/v1/CompositionHooks/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AudioSources != nil { + data.Set("AudioSources", *params.AudioSources) + } + if params != nil && params.AudioSourcesExcluded != nil { + data.Set("AudioSourcesExcluded", *params.AudioSourcesExcluded) + } + if params != nil && params.Enabled != nil { + data.Set("Enabled", string(*params.Enabled)) + } + if params != nil && params.Format != nil { + data.Set("Format", *params.Format) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Resolution != nil { + data.Set("Resolution", *params.Resolution) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.Trim != nil { + data.Set("Trim", string(*params.Trim)) + } + if params != nil && params.VideoLayout != nil { + v, err := json.Marshal(params.VideoLayout) + + if err != nil { + return nil, err + } + + data.Set("VideoLayout", string(v)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1CompositionHook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateRoomParams Optional parameters for the method 'UpdateRoom' +type UpdateRoomParams struct { + Status *string `json:"Status,omitempty"` +} + +/* +UpdateRoom Method for UpdateRoom + * @param sid The SID of the Room resource to update. + * @param optional nil or *UpdateRoomOpts - Optional Parameters: + * @param "Status" (string) - The new status of the resource. Set to `completed` to end the room. +@return VideoV1Room +*/ +func (c *DefaultApiService) UpdateRoom(sid string, params *UpdateRoomParams) (*VideoV1Room, error) { + path := "/v1/Rooms/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1Room{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateRoomParticipantParams Optional parameters for the method 'UpdateRoomParticipant' +type UpdateRoomParticipantParams struct { + Status *string `json:"Status,omitempty"` +} + +/* +UpdateRoomParticipant Method for UpdateRoomParticipant + * @param roomSid The SID of the room with the participant to update. + * @param sid The SID of the RoomParticipant resource to update. + * @param optional nil or *UpdateRoomParticipantOpts - Optional Parameters: + * @param "Status" (string) - The new status of the resource. Can be: `connected` or `disconnected`. For `in-progress` Rooms the default Status is `connected`, for `completed` Rooms only `disconnected` Participants are returned. +@return VideoV1RoomRoomParticipant +*/ +func (c *DefaultApiService) UpdateRoomParticipant(roomSid string, sid string, params *UpdateRoomParticipantParams) (*VideoV1RoomRoomParticipant, error) { + path := "/v1/Rooms/{RoomSid}/Participants/{Sid}" + path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1RoomRoomParticipant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateRoomParticipantSubscribeRuleParams Optional parameters for the method 'UpdateRoomParticipantSubscribeRule' +type UpdateRoomParticipantSubscribeRuleParams struct { + Rules *map[string]interface{} `json:"Rules,omitempty"` +} + +/* +UpdateRoomParticipantSubscribeRule Method for UpdateRoomParticipantSubscribeRule +Update the Subscribe Rules for the Participant + * @param roomSid The SID of the Room resource where the subscribe rules to update apply. + * @param participantSid The SID of the Participant resource to update the Subscribe Rules. + * @param optional nil or *UpdateRoomParticipantSubscribeRuleOpts - Optional Parameters: + * @param "Rules" (map[string]interface{}) - A JSON-encoded array of subscribe rules. See the [Specifying Subscribe Rules](https://www.twilio.com/docs/video/api/track-subscriptions#specifying-sr) section for further information. +@return VideoV1RoomRoomParticipantRoomParticipantSubscribeRule +*/ +func (c *DefaultApiService) UpdateRoomParticipantSubscribeRule(roomSid string, participantSid string, params *UpdateRoomParticipantSubscribeRuleParams) (*VideoV1RoomRoomParticipantRoomParticipantSubscribeRule, error) { + path := "/v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/SubscribeRules" + path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Rules != nil { + v, err := json.Marshal(params.Rules) + + if err != nil { + return nil, err + } + + data.Set("Rules", string(v)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1RoomRoomParticipantRoomParticipantSubscribeRule{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateRoomRecordingRuleParams Optional parameters for the method 'UpdateRoomRecordingRule' +type UpdateRoomRecordingRuleParams struct { + Rules *map[string]interface{} `json:"Rules,omitempty"` +} + +/* +UpdateRoomRecordingRule Method for UpdateRoomRecordingRule +Update the Recording Rules for the Room + * @param roomSid The SID of the Room resource where the recording rules to update apply. + * @param optional nil or *UpdateRoomRecordingRuleOpts - Optional Parameters: + * @param "Rules" (map[string]interface{}) - A JSON-encoded array of recording rules. +@return VideoV1RoomRoomRecordingRule +*/ +func (c *DefaultApiService) UpdateRoomRecordingRule(roomSid string, params *UpdateRoomRecordingRuleParams) (*VideoV1RoomRoomRecordingRule, error) { + path := "/v1/Rooms/{RoomSid}/RecordingRules" + path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Rules != nil { + v, err := json.Marshal(params.Rules) + + if err != nil { + return nil, err + } + + data.Set("Rules", string(v)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1RoomRoomRecordingRule{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/video/v1/docs/CreateCompositionHookRequest.md b/rest/video/v1/docs/CreateCompositionHookRequest.md new file mode 100644 index 000000000..a7e7ba0b2 --- /dev/null +++ b/rest/video/v1/docs/CreateCompositionHookRequest.md @@ -0,0 +1,20 @@ +# CreateCompositionHookRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AudioSources** | **[]string** | An array of track names from the same group room to merge into the compositions created by the composition hook. Can include zero or more track names. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` includes tracks named `student` as well as `studentTeam`. | [optional] +**AudioSourcesExcluded** | **[]string** | An array of track names to exclude. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except for those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` excludes `student` as well as `studentTeam`. This parameter can also be empty. | [optional] +**Enabled** | **bool** | Whether the composition hook is active. When `true`, the composition hook will be triggered for every completed Group Room in the account. When `false`, the composition hook will never be triggered. | [optional] +**Format** | **string** | The container format of the media files used by the compositions created by the composition hook. Can be: `mp4` or `webm` and the default is `webm`. If `mp4` or `webm`, `audio_sources` must have one or more tracks and/or a `video_layout` element must contain a valid `video_sources` list, otherwise an error occurs. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It can be up to 100 characters long and it must be unique within the account. | +**Resolution** | **string** | A string that describes the columns (width) and rows (height) of the generated composed video in pixels. Defaults to `640x480`. The string's format is `{width}x{height}` where: * 16 <= `{width}` <= 1280 * 16 <= `{height}` <= 1280 * `{width}` * `{height}` <= 921,600 Typical values are: * HD = `1280x720` * PAL = `1024x576` * VGA = `640x480` * CIF = `320x240` Note that the `resolution` imposes an aspect ratio to the resulting composition. When the original video tracks are constrained by the aspect ratio, they are scaled to fit. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. | [optional] +**StatusCallback** | **string** | The URL we should call using the `status_callback_method` to send status information to your application on every composition event. If not provided, status callback events will not be dispatched. | [optional] +**StatusCallbackMethod** | **string** | The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`. | [optional] +**Trim** | **bool** | Whether to clip the intervals where there is no active media in the Compositions triggered by the composition hook. The default is `true`. Compositions with `trim` enabled are shorter when the Room is created and no Participant joins for a while as well as if all the Participants leave the room and join later, because those gaps will be removed. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. | [optional] +**VideoLayout** | [**map[string]interface{}**](.md) | An object that describes the video layout of the composition hook in terms of regions. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. | [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/rest/video/v1/docs/CreateCompositionRequest.md b/rest/video/v1/docs/CreateCompositionRequest.md new file mode 100644 index 000000000..ff4c2e85a --- /dev/null +++ b/rest/video/v1/docs/CreateCompositionRequest.md @@ -0,0 +1,19 @@ +# CreateCompositionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AudioSources** | **[]string** | An array of track names from the same group room to merge into the new composition. Can include zero or more track names. The new composition includes all audio sources specified in `audio_sources` except for those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which will match zero or more characters in a track name. For example, `student*` includes `student` as well as `studentTeam`. Please, be aware that either video_layout or audio_sources have to be provided to get a valid creation request | [optional] +**AudioSourcesExcluded** | **[]string** | An array of track names to exclude. The new composition includes all audio sources specified in `audio_sources` except for those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which will match zero or more characters in a track name. For example, `student*` excludes `student` as well as `studentTeam`. This parameter can also be empty. | [optional] +**Format** | **string** | The container format of the composition's media files. Can be: `mp4` or `webm` and the default is `webm`. If you specify `mp4` or `webm`, you must also specify one or more `audio_sources` and/or a `video_layout` element that contains a valid `video_sources` list, otherwise an error occurs. | [optional] +**Resolution** | **string** | A string that describes the columns (width) and rows (height) of the generated composed video in pixels. Defaults to `640x480`. The string's format is `{width}x{height}` where: * 16 <= `{width}` <= 1280 * 16 <= `{height}` <= 1280 * `{width}` * `{height}` <= 921,600 Typical values are: * HD = `1280x720` * PAL = `1024x576` * VGA = `640x480` * CIF = `320x240` Note that the `resolution` imposes an aspect ratio to the resulting composition. When the original video tracks are constrained by the aspect ratio, they are scaled to fit. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. | [optional] +**RoomSid** | **string** | The SID of the Group Room with the media tracks to be used as composition sources. | +**StatusCallback** | **string** | The URL we should call using the `status_callback_method` to send status information to your application on every composition event. If not provided, status callback events will not be dispatched. | [optional] +**StatusCallbackMethod** | **string** | The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`. | [optional] +**Trim** | **bool** | Whether to clip the intervals where there is no active media in the composition. The default is `true`. Compositions with `trim` enabled are shorter when the Room is created and no Participant joins for a while as well as if all the Participants leave the room and join later, because those gaps will be removed. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. | [optional] +**VideoLayout** | [**map[string]interface{}**](.md) | An object that describes the video layout of the composition in terms of regions. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. Please, be aware that either video_layout or audio_sources have to be provided to get a valid creation request | [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/rest/video/v1/docs/CreateCompositionSettingsRequest.md b/rest/video/v1/docs/CreateCompositionSettingsRequest.md new file mode 100644 index 000000000..8d610c731 --- /dev/null +++ b/rest/video/v1/docs/CreateCompositionSettingsRequest.md @@ -0,0 +1,16 @@ +# CreateCompositionSettingsRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AwsCredentialsSid** | **string** | The SID of the stored Credential resource. | [optional] +**AwsS3Url** | **string** | The URL of the AWS S3 bucket where the compositions should be stored. We only support DNS-compliant URLs like `https://documentation-example-twilio-bucket/compositions`, where `compositions` is the path in which you want the compositions to be stored. This URL accepts only URI-valid characters, as described in the <a href='https://tools.ietf.org/html/rfc3986#section-2'>RFC 3986</a>. | [optional] +**AwsStorageEnabled** | **bool** | Whether all compositions should be written to the `aws_s3_url`. When `false`, all compositions are stored in our cloud. | [optional] +**EncryptionEnabled** | **bool** | Whether all compositions should be stored in an encrypted form. The default is `false`. | [optional] +**EncryptionKeySid** | **string** | The SID of the Public Key resource to use for encryption. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the resource and show to the user in the console | + +[[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/rest/video/v1/docs/CreateRecordingSettingsRequest.md b/rest/video/v1/docs/CreateRecordingSettingsRequest.md new file mode 100644 index 000000000..a7e46c87e --- /dev/null +++ b/rest/video/v1/docs/CreateRecordingSettingsRequest.md @@ -0,0 +1,16 @@ +# CreateRecordingSettingsRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AwsCredentialsSid** | **string** | The SID of the stored Credential resource. | [optional] +**AwsS3Url** | **string** | The URL of the AWS S3 bucket where the recordings should be stored. We only support DNS-compliant URLs like `https://documentation-example-twilio-bucket/recordings`, where `recordings` is the path in which you want the recordings to be stored. This URL accepts only URI-valid characters, as described in the <a href='https://tools.ietf.org/html/rfc3986#section-2'>RFC 3986</a>. | [optional] +**AwsStorageEnabled** | **bool** | Whether all recordings should be written to the `aws_s3_url`. When `false`, all recordings are stored in our cloud. | [optional] +**EncryptionEnabled** | **bool** | Whether all recordings should be stored in an encrypted form. The default is `false`. | [optional] +**EncryptionKeySid** | **string** | The SID of the Public Key resource to use for encryption. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the resource and be shown to users in the console | + +[[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/rest/video/v1/docs/CreateRoomRequest.md b/rest/video/v1/docs/CreateRoomRequest.md new file mode 100644 index 000000000..0176afd8e --- /dev/null +++ b/rest/video/v1/docs/CreateRoomRequest.md @@ -0,0 +1,19 @@ +# CreateRoomRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EnableTurn** | **bool** | Deprecated, now always considered to be true. | [optional] +**MaxParticipants** | **int32** | The maximum number of concurrent Participants allowed in the room. Peer-to-peer rooms can have up to 10 Participants. Small Group rooms can have up to 4 Participants. Group rooms can have up to 50 Participants. | [optional] +**MediaRegion** | **string** | The region for the media server in Group Rooms. Can be: one of the [available Media Regions](https://www.twilio.com/docs/video/ip-address-whitelisting#group-rooms-media-servers). ***This feature is not available in `peer-to-peer` rooms.*** | [optional] +**RecordParticipantsOnConnect** | **bool** | Whether to start recording when Participants connect. ***This feature is not available in `peer-to-peer` rooms.*** | [optional] +**StatusCallback** | **string** | The URL we should call using the `status_callback_method` to send status information to your application on every room event. See [Status Callbacks](https://www.twilio.com/docs/video/api/status-callbacks) for more info. | [optional] +**StatusCallbackMethod** | **string** | The HTTP method we should use to call `status_callback`. Can be `POST` or `GET`. | [optional] +**Type** | **string** | The type of room. Can be: `go`, `peer-to-peer`, `group-small`, or `group`. The default value is `group`. | [optional] +**UniqueName** | **string** | An application-defined string that uniquely identifies the resource. It can be used as a `room_sid` in place of the resource's `sid` in the URL to address the resource. This value is unique for `in-progress` rooms. SDK clients can use this name to connect to the room. REST API clients can use this name in place of the Room SID to interact with the room as long as the room is `in-progress`. | [optional] +**VideoCodecs** | **[]string** | An array of the video codecs that are supported when publishing a track in the room. Can be: `VP8` and `H264`. ***This feature is not available in `peer-to-peer` rooms*** | [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/rest/video/v1/docs/DefaultApi.md b/rest/video/v1/docs/DefaultApi.md new file mode 100644 index 000000000..dc004c905 --- /dev/null +++ b/rest/video/v1/docs/DefaultApi.md @@ -0,0 +1,1422 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateComposition**](DefaultApi.md#CreateComposition) | **Post** /v1/Compositions | +[**CreateCompositionHook**](DefaultApi.md#CreateCompositionHook) | **Post** /v1/CompositionHooks | +[**CreateCompositionSettings**](DefaultApi.md#CreateCompositionSettings) | **Post** /v1/CompositionSettings/Default | +[**CreateRecordingSettings**](DefaultApi.md#CreateRecordingSettings) | **Post** /v1/RecordingSettings/Default | +[**CreateRoom**](DefaultApi.md#CreateRoom) | **Post** /v1/Rooms | +[**DeleteComposition**](DefaultApi.md#DeleteComposition) | **Delete** /v1/Compositions/{Sid} | +[**DeleteCompositionHook**](DefaultApi.md#DeleteCompositionHook) | **Delete** /v1/CompositionHooks/{Sid} | +[**DeleteRecording**](DefaultApi.md#DeleteRecording) | **Delete** /v1/Recordings/{Sid} | +[**DeleteRoomRecording**](DefaultApi.md#DeleteRoomRecording) | **Delete** /v1/Rooms/{RoomSid}/Recordings/{Sid} | +[**FetchComposition**](DefaultApi.md#FetchComposition) | **Get** /v1/Compositions/{Sid} | +[**FetchCompositionHook**](DefaultApi.md#FetchCompositionHook) | **Get** /v1/CompositionHooks/{Sid} | +[**FetchCompositionSettings**](DefaultApi.md#FetchCompositionSettings) | **Get** /v1/CompositionSettings/Default | +[**FetchRecording**](DefaultApi.md#FetchRecording) | **Get** /v1/Recordings/{Sid} | +[**FetchRecordingSettings**](DefaultApi.md#FetchRecordingSettings) | **Get** /v1/RecordingSettings/Default | +[**FetchRoom**](DefaultApi.md#FetchRoom) | **Get** /v1/Rooms/{Sid} | +[**FetchRoomParticipant**](DefaultApi.md#FetchRoomParticipant) | **Get** /v1/Rooms/{RoomSid}/Participants/{Sid} | +[**FetchRoomParticipantPublishedTrack**](DefaultApi.md#FetchRoomParticipantPublishedTrack) | **Get** /v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/PublishedTracks/{Sid} | +[**FetchRoomParticipantSubscribeRule**](DefaultApi.md#FetchRoomParticipantSubscribeRule) | **Get** /v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/SubscribeRules | +[**FetchRoomParticipantSubscribedTrack**](DefaultApi.md#FetchRoomParticipantSubscribedTrack) | **Get** /v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/SubscribedTracks/{Sid} | +[**FetchRoomRecording**](DefaultApi.md#FetchRoomRecording) | **Get** /v1/Rooms/{RoomSid}/Recordings/{Sid} | +[**FetchRoomRecordingRule**](DefaultApi.md#FetchRoomRecordingRule) | **Get** /v1/Rooms/{RoomSid}/RecordingRules | +[**ListComposition**](DefaultApi.md#ListComposition) | **Get** /v1/Compositions | +[**ListCompositionHook**](DefaultApi.md#ListCompositionHook) | **Get** /v1/CompositionHooks | +[**ListRecording**](DefaultApi.md#ListRecording) | **Get** /v1/Recordings | +[**ListRoom**](DefaultApi.md#ListRoom) | **Get** /v1/Rooms | +[**ListRoomParticipant**](DefaultApi.md#ListRoomParticipant) | **Get** /v1/Rooms/{RoomSid}/Participants | +[**ListRoomParticipantPublishedTrack**](DefaultApi.md#ListRoomParticipantPublishedTrack) | **Get** /v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/PublishedTracks | +[**ListRoomParticipantSubscribedTrack**](DefaultApi.md#ListRoomParticipantSubscribedTrack) | **Get** /v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/SubscribedTracks | +[**ListRoomRecording**](DefaultApi.md#ListRoomRecording) | **Get** /v1/Rooms/{RoomSid}/Recordings | +[**UpdateCompositionHook**](DefaultApi.md#UpdateCompositionHook) | **Post** /v1/CompositionHooks/{Sid} | +[**UpdateRoom**](DefaultApi.md#UpdateRoom) | **Post** /v1/Rooms/{Sid} | +[**UpdateRoomParticipant**](DefaultApi.md#UpdateRoomParticipant) | **Post** /v1/Rooms/{RoomSid}/Participants/{Sid} | +[**UpdateRoomParticipantSubscribeRule**](DefaultApi.md#UpdateRoomParticipantSubscribeRule) | **Post** /v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/SubscribeRules | +[**UpdateRoomRecordingRule**](DefaultApi.md#UpdateRoomRecordingRule) | **Post** /v1/Rooms/{RoomSid}/RecordingRules | + + + +## CreateComposition + +> VideoV1Composition CreateComposition(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateCompositionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateCompositionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **audioSources** | [**optional.Interface of []string**](string.md)| An array of track names from the same group room to merge into the new composition. Can include zero or more track names. The new composition includes all audio sources specified in `audio_sources` except for those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which will match zero or more characters in a track name. For example, `student*` includes `student` as well as `studentTeam`. Please, be aware that either video_layout or audio_sources have to be provided to get a valid creation request | + **audioSourcesExcluded** | [**optional.Interface of []string**](string.md)| An array of track names to exclude. The new composition includes all audio sources specified in `audio_sources` except for those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which will match zero or more characters in a track name. For example, `student*` excludes `student` as well as `studentTeam`. This parameter can also be empty. | + **format** | **optional.String**| The container format of the composition's media files. Can be: `mp4` or `webm` and the default is `webm`. If you specify `mp4` or `webm`, you must also specify one or more `audio_sources` and/or a `video_layout` element that contains a valid `video_sources` list, otherwise an error occurs. | + **resolution** | **optional.String**| A string that describes the columns (width) and rows (height) of the generated composed video in pixels. Defaults to `640x480`. The string's format is `{width}x{height}` where: * 16 <= `{width}` <= 1280 * 16 <= `{height}` <= 1280 * `{width}` * `{height}` <= 921,600 Typical values are: * HD = `1280x720` * PAL = `1024x576` * VGA = `640x480` * CIF = `320x240` Note that the `resolution` imposes an aspect ratio to the resulting composition. When the original video tracks are constrained by the aspect ratio, they are scaled to fit. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. | + **roomSid** | **optional.String**| The SID of the Group Room with the media tracks to be used as composition sources. | + **statusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application on every composition event. If not provided, status callback events will not be dispatched. | + **statusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`. | + **trim** | **optional.Bool**| Whether to clip the intervals where there is no active media in the composition. The default is `true`. Compositions with `trim` enabled are shorter when the Room is created and no Participant joins for a while as well as if all the Participants leave the room and join later, because those gaps will be removed. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. | + **videoLayout** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| An object that describes the video layout of the composition in terms of regions. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. Please, be aware that either video_layout or audio_sources have to be provided to get a valid creation request | + +### Return type + +[**VideoV1Composition**](video.v1.composition.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) + + +## CreateCompositionHook + +> VideoV1CompositionHook CreateCompositionHook(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateCompositionHookOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateCompositionHookOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **audioSources** | [**optional.Interface of []string**](string.md)| An array of track names from the same group room to merge into the compositions created by the composition hook. Can include zero or more track names. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` includes tracks named `student` as well as `studentTeam`. | + **audioSourcesExcluded** | [**optional.Interface of []string**](string.md)| An array of track names to exclude. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except for those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` excludes `student` as well as `studentTeam`. This parameter can also be empty. | + **enabled** | **optional.Bool**| Whether the composition hook is active. When `true`, the composition hook will be triggered for every completed Group Room in the account. When `false`, the composition hook will never be triggered. | + **format** | **optional.String**| The container format of the media files used by the compositions created by the composition hook. Can be: `mp4` or `webm` and the default is `webm`. If `mp4` or `webm`, `audio_sources` must have one or more tracks and/or a `video_layout` element must contain a valid `video_sources` list, otherwise an error occurs. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 100 characters long and it must be unique within the account. | + **resolution** | **optional.String**| A string that describes the columns (width) and rows (height) of the generated composed video in pixels. Defaults to `640x480`. The string's format is `{width}x{height}` where: * 16 <= `{width}` <= 1280 * 16 <= `{height}` <= 1280 * `{width}` * `{height}` <= 921,600 Typical values are: * HD = `1280x720` * PAL = `1024x576` * VGA = `640x480` * CIF = `320x240` Note that the `resolution` imposes an aspect ratio to the resulting composition. When the original video tracks are constrained by the aspect ratio, they are scaled to fit. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. | + **statusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application on every composition event. If not provided, status callback events will not be dispatched. | + **statusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`. | + **trim** | **optional.Bool**| Whether to clip the intervals where there is no active media in the Compositions triggered by the composition hook. The default is `true`. Compositions with `trim` enabled are shorter when the Room is created and no Participant joins for a while as well as if all the Participants leave the room and join later, because those gaps will be removed. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. | + **videoLayout** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| An object that describes the video layout of the composition hook in terms of regions. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. | + +### Return type + +[**VideoV1CompositionHook**](video.v1.composition_hook.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) + + +## CreateCompositionSettings + +> VideoV1CompositionSettings CreateCompositionSettings(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateCompositionSettingsOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateCompositionSettingsOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **awsCredentialsSid** | **optional.String**| The SID of the stored Credential resource. | + **awsS3Url** | **optional.String**| The URL of the AWS S3 bucket where the compositions should be stored. We only support DNS-compliant URLs like `https://documentation-example-twilio-bucket/compositions`, where `compositions` is the path in which you want the compositions to be stored. This URL accepts only URI-valid characters, as described in the <a href='https://tools.ietf.org/html/rfc3986#section-2'>RFC 3986</a>. | + **awsStorageEnabled** | **optional.Bool**| Whether all compositions should be written to the `aws_s3_url`. When `false`, all compositions are stored in our cloud. | + **encryptionEnabled** | **optional.Bool**| Whether all compositions should be stored in an encrypted form. The default is `false`. | + **encryptionKeySid** | **optional.String**| The SID of the Public Key resource to use for encryption. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource and show to the user in the console | + +### Return type + +[**VideoV1CompositionSettings**](video.v1.composition_settings.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) + + +## CreateRecordingSettings + +> VideoV1RecordingSettings CreateRecordingSettings(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateRecordingSettingsOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateRecordingSettingsOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **awsCredentialsSid** | **optional.String**| The SID of the stored Credential resource. | + **awsS3Url** | **optional.String**| The URL of the AWS S3 bucket where the recordings should be stored. We only support DNS-compliant URLs like `https://documentation-example-twilio-bucket/recordings`, where `recordings` is the path in which you want the recordings to be stored. This URL accepts only URI-valid characters, as described in the <a href='https://tools.ietf.org/html/rfc3986#section-2'>RFC 3986</a>. | + **awsStorageEnabled** | **optional.Bool**| Whether all recordings should be written to the `aws_s3_url`. When `false`, all recordings are stored in our cloud. | + **encryptionEnabled** | **optional.Bool**| Whether all recordings should be stored in an encrypted form. The default is `false`. | + **encryptionKeySid** | **optional.String**| The SID of the Public Key resource to use for encryption. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource and be shown to users in the console | + +### Return type + +[**VideoV1RecordingSettings**](video.v1.recording_settings.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) + + +## CreateRoom + +> VideoV1Room CreateRoom(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateRoomOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateRoomOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **enableTurn** | **optional.Bool**| Deprecated, now always considered to be true. | + **maxParticipants** | **optional.Int32**| The maximum number of concurrent Participants allowed in the room. Peer-to-peer rooms can have up to 10 Participants. Small Group rooms can have up to 4 Participants. Group rooms can have up to 50 Participants. | + **mediaRegion** | **optional.String**| The region for the media server in Group Rooms. Can be: one of the [available Media Regions](https://www.twilio.com/docs/video/ip-address-whitelisting#group-rooms-media-servers). ***This feature is not available in `peer-to-peer` rooms.*** | + **recordParticipantsOnConnect** | **optional.Bool**| Whether to start recording when Participants connect. ***This feature is not available in `peer-to-peer` rooms.*** | + **statusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application on every room event. See [Status Callbacks](https://www.twilio.com/docs/video/api/status-callbacks) for more info. | + **statusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be `POST` or `GET`. | + **type_** | **optional.String**| The type of room. Can be: `go`, `peer-to-peer`, `group-small`, or `group`. The default value is `group`. | + **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used as a `room_sid` in place of the resource's `sid` in the URL to address the resource. This value is unique for `in-progress` rooms. SDK clients can use this name to connect to the room. REST API clients can use this name in place of the Room SID to interact with the room as long as the room is `in-progress`. | + **videoCodecs** | [**optional.Interface of []string**](string.md)| An array of the video codecs that are supported when publishing a track in the room. Can be: `VP8` and `H264`. ***This feature is not available in `peer-to-peer` rooms*** | + +### Return type + +[**VideoV1Room**](video.v1.room.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) + + +## DeleteComposition + +> DeleteComposition(ctx, sid) + + + +Delete a Recording Composition resource identified by a Composition SID. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Composition resource to delete. | + +### 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) + + +## DeleteCompositionHook + +> DeleteCompositionHook(ctx, sid) + + + +Delete a Recording CompositionHook resource identified by a `CompositionHook SID`. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the CompositionHook resource to delete. | + +### 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) + + +## DeleteRecording + +> DeleteRecording(ctx, sid) + + + +Delete a Recording resource identified by a Recording SID. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Recording resource to delete. | + +### 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) + + +## DeleteRoomRecording + +> DeleteRoomRecording(ctx, roomSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**roomSid** | **string**| The SID of the room with the RoomRecording resource to delete. | +**sid** | **string**| The SID of the RoomRecording resource to delete. | + +### 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) + + +## FetchComposition + +> VideoV1Composition FetchComposition(ctx, sid) + + + +Returns a single Composition resource identified by a Composition SID. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Composition resource to fetch. | + +### Return type + +[**VideoV1Composition**](video.v1.composition.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) + + +## FetchCompositionHook + +> VideoV1CompositionHook FetchCompositionHook(ctx, sid) + + + +Returns a single CompositionHook resource identified by a CompositionHook SID. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the CompositionHook resource to fetch. | + +### Return type + +[**VideoV1CompositionHook**](video.v1.composition_hook.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) + + +## FetchCompositionSettings + +> VideoV1CompositionSettings FetchCompositionSettings(ctx, ) + + + +### Required Parameters + +This endpoint does not need any parameter. + +### Return type + +[**VideoV1CompositionSettings**](video.v1.composition_settings.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) + + +## FetchRecording + +> VideoV1Recording FetchRecording(ctx, sid) + + + +Returns a single Recording resource identified by a Recording SID. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Recording resource to fetch. | + +### Return type + +[**VideoV1Recording**](video.v1.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) + + +## FetchRecordingSettings + +> VideoV1RecordingSettings FetchRecordingSettings(ctx, ) + + + +### Required Parameters + +This endpoint does not need any parameter. + +### Return type + +[**VideoV1RecordingSettings**](video.v1.recording_settings.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) + + +## FetchRoom + +> VideoV1Room FetchRoom(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Room resource to fetch. | + +### Return type + +[**VideoV1Room**](video.v1.room.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) + + +## FetchRoomParticipant + +> VideoV1RoomRoomParticipant FetchRoomParticipant(ctx, roomSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**roomSid** | **string**| The SID of the room with the Participant resource to fetch. | +**sid** | **string**| The SID of the RoomParticipant resource to fetch. | + +### Return type + +[**VideoV1RoomRoomParticipant**](video.v1.room.room_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) + + +## FetchRoomParticipantPublishedTrack + +> VideoV1RoomRoomParticipantRoomParticipantPublishedTrack FetchRoomParticipantPublishedTrack(ctx, roomSid, participantSid, sid) + + + +Returns a single Track resource represented by TrackName or SID. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**roomSid** | **string**| The SID of the Room resource where the Track resource to fetch is published. | +**participantSid** | **string**| The SID of the Participant resource with the published track to fetch. | +**sid** | **string**| The SID of the RoomParticipantPublishedTrack resource to fetch. | + +### Return type + +[**VideoV1RoomRoomParticipantRoomParticipantPublishedTrack**](video.v1.room.room_participant.room_participant_published_track.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) + + +## FetchRoomParticipantSubscribeRule + +> VideoV1RoomRoomParticipantRoomParticipantSubscribeRule FetchRoomParticipantSubscribeRule(ctx, roomSid, participantSid) + + + +Returns a list of Subscribe Rules for the Participant. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**roomSid** | **string**| The SID of the Room resource where the subscribe rules to fetch apply. | +**participantSid** | **string**| The SID of the Participant resource with the subscribe rules to fetch. | + +### Return type + +[**VideoV1RoomRoomParticipantRoomParticipantSubscribeRule**](video.v1.room.room_participant.room_participant_subscribe_rule.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) + + +## FetchRoomParticipantSubscribedTrack + +> VideoV1RoomRoomParticipantRoomParticipantSubscribedTrack FetchRoomParticipantSubscribedTrack(ctx, roomSid, participantSid, sid) + + + +Returns a single Track resource represented by `track_sid`. Note: This is one resource with the Video API that requires a SID, be Track Name on the subscriber side is not guaranteed to be unique. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**roomSid** | **string**| The SID of the Room where the Track resource to fetch is subscribed. | +**participantSid** | **string**| The SID of the participant that subscribes to the Track resource to fetch. | +**sid** | **string**| The SID of the RoomParticipantSubscribedTrack resource to fetch. | + +### Return type + +[**VideoV1RoomRoomParticipantRoomParticipantSubscribedTrack**](video.v1.room.room_participant.room_participant_subscribed_track.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) + + +## FetchRoomRecording + +> VideoV1RoomRoomRecording FetchRoomRecording(ctx, roomSid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**roomSid** | **string**| The SID of the Room resource with the recording to fetch. | +**sid** | **string**| The SID of the RoomRecording resource to fetch. | + +### Return type + +[**VideoV1RoomRoomRecording**](video.v1.room.room_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) + + +## FetchRoomRecordingRule + +> VideoV1RoomRoomRecordingRule FetchRoomRecordingRule(ctx, roomSid) + + + +Returns a list of Recording Rules for the Room. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**roomSid** | **string**| The SID of the Room resource where the recording rules to fetch apply. | + +### Return type + +[**VideoV1RoomRoomRecordingRule**](video.v1.room.room_recording_rule.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) + + +## ListComposition + +> VideoV1CompositionReadResponse ListComposition(ctx, optional) + + + +List of all Recording compositions. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListCompositionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListCompositionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **status** | **optional.String**| Read only Composition resources with this status. Can be: `enqueued`, `processing`, `completed`, `deleted`, or `failed`. | + **dateCreatedAfter** | **optional.Time**| Read only Composition resources created on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time with time zone. | + **dateCreatedBefore** | **optional.Time**| Read only Composition resources created before this ISO 8601 date-time with time zone. | + **roomSid** | **optional.String**| Read only Composition resources with this Room SID. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**VideoV1CompositionReadResponse**](video_v1_compositionReadResponse.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) + + +## ListCompositionHook + +> VideoV1CompositionHookReadResponse ListCompositionHook(ctx, optional) + + + +List of all Recording CompositionHook resources. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListCompositionHookOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListCompositionHookOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **enabled** | **optional.Bool**| Read only CompositionHook resources with an `enabled` value that matches this parameter. | + **dateCreatedAfter** | **optional.Time**| Read only CompositionHook resources created on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone. | + **dateCreatedBefore** | **optional.Time**| Read only CompositionHook resources created before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone. | + **friendlyName** | **optional.String**| Read only CompositionHook resources with friendly names that match this string. The match is not case sensitive and can include asterisk `*` characters as wildcard match. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**VideoV1CompositionHookReadResponse**](video_v1_composition_hookReadResponse.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) + + +## ListRecording + +> VideoV1RecordingReadResponse ListRecording(ctx, optional) + + + +List of all Track recordings. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListRecordingOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListRecordingOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **status** | **optional.String**| Read only the recordings that have this status. Can be: `processing`, `completed`, or `deleted`. | + **sourceSid** | **optional.String**| Read only the recordings that have this `source_sid`. | + **groupingSid** | [**optional.Interface of []string**](string.md)| Read only recordings with this `grouping_sid`, which may include a `participant_sid` and/or a `room_sid`. | + **dateCreatedAfter** | **optional.Time**| Read only recordings that started on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time with time zone. | + **dateCreatedBefore** | **optional.Time**| Read only recordings that started before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time with time zone, given as `YYYY-MM-DDThh:mm:ss+|-hh:mm` or `YYYY-MM-DDThh:mm:ssZ`. | + **mediaType** | **optional.String**| Read only recordings that have this media type. Can be either `audio` or `video`. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**VideoV1RecordingReadResponse**](video_v1_recordingReadResponse.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) + + +## ListRoom + +> VideoV1RoomReadResponse ListRoom(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListRoomOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListRoomOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **status** | **optional.String**| Read only the rooms with this status. Can be: `in-progress` (default) or `completed` | + **uniqueName** | **optional.String**| Read only rooms with the this `unique_name`. | + **dateCreatedAfter** | **optional.Time**| Read only rooms that started on or after this date, given as `YYYY-MM-DD`. | + **dateCreatedBefore** | **optional.Time**| Read only rooms that started before this date, given as `YYYY-MM-DD`. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**VideoV1RoomReadResponse**](video_v1_roomReadResponse.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) + + +## ListRoomParticipant + +> VideoV1RoomRoomParticipantReadResponse ListRoomParticipant(ctx, roomSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**roomSid** | **string**| The SID of the room with the Participant resources to read. | + **optional** | ***ListRoomParticipantOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListRoomParticipantOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **status** | **optional.String**| Read only the participants with this status. Can be: `connected` or `disconnected`. For `in-progress` Rooms the default Status is `connected`, for `completed` Rooms only `disconnected` Participants are returned. | + **identity** | **optional.String**| Read only the Participants with this [User](https://www.twilio.com/docs/chat/rest/user-resource) `identity` value. | + **dateCreatedAfter** | **optional.Time**| Read only Participants that started after this date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#UTC) format. | + **dateCreatedBefore** | **optional.Time**| Read only Participants that started before this date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#UTC) format. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**VideoV1RoomRoomParticipantReadResponse**](video_v1_room_room_participantReadResponse.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) + + +## ListRoomParticipantPublishedTrack + +> VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse ListRoomParticipantPublishedTrack(ctx, roomSid, participantSid, optional) + + + +Returns a list of tracks associated with a given Participant. Only `currently` Published Tracks are in the list resource. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**roomSid** | **string**| The SID of the Room resource where the Track resources to read are published. | +**participantSid** | **string**| The SID of the Participant resource with the published tracks to read. | + **optional** | ***ListRoomParticipantPublishedTrackOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListRoomParticipantPublishedTrackOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse**](video_v1_room_room_participant_room_participant_published_trackReadResponse.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) + + +## ListRoomParticipantSubscribedTrack + +> VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse ListRoomParticipantSubscribedTrack(ctx, roomSid, participantSid, optional) + + + +Returns a list of tracks that are subscribed for the participant. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**roomSid** | **string**| The SID of the Room resource with the Track resources to read. | +**participantSid** | **string**| The SID of the participant that subscribes to the Track resources to read. | + **optional** | ***ListRoomParticipantSubscribedTrackOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListRoomParticipantSubscribedTrackOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse**](video_v1_room_room_participant_room_participant_subscribed_trackReadResponse.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) + + +## ListRoomRecording + +> VideoV1RoomRoomRecordingReadResponse ListRoomRecording(ctx, roomSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**roomSid** | **string**| The SID of the room with the RoomRecording resources to read. | + **optional** | ***ListRoomRecordingOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListRoomRecordingOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **status** | **optional.String**| Read only the recordings with this status. Can be: `processing`, `completed`, or `deleted`. | + **sourceSid** | **optional.String**| Read only the recordings that have this `source_sid`. | + **dateCreatedAfter** | **optional.Time**| Read only recordings that started on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone. | + **dateCreatedBefore** | **optional.Time**| Read only Recordings that started before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**VideoV1RoomRoomRecordingReadResponse**](video_v1_room_room_recordingReadResponse.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) + + +## UpdateCompositionHook + +> VideoV1CompositionHook UpdateCompositionHook(ctx, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the CompositionHook resource to update. | + **optional** | ***UpdateCompositionHookOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateCompositionHookOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **audioSources** | [**optional.Interface of []string**](string.md)| An array of track names from the same group room to merge into the compositions created by the composition hook. Can include zero or more track names. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` includes tracks named `student` as well as `studentTeam`. | + **audioSourcesExcluded** | [**optional.Interface of []string**](string.md)| An array of track names to exclude. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except for those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` excludes `student` as well as `studentTeam`. This parameter can also be empty. | + **enabled** | **optional.Bool**| Whether the composition hook is active. When `true`, the composition hook will be triggered for every completed Group Room in the account. When `false`, the composition hook never triggers. | + **format** | **optional.String**| The container format of the media files used by the compositions created by the composition hook. Can be: `mp4` or `webm` and the default is `webm`. If `mp4` or `webm`, `audio_sources` must have one or more tracks and/or a `video_layout` element must contain a valid `video_sources` list, otherwise an error occurs. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 100 characters long and it must be unique within the account. | + **resolution** | **optional.String**| A string that describes the columns (width) and rows (height) of the generated composed video in pixels. Defaults to `640x480`. The string's format is `{width}x{height}` where: * 16 <= `{width}` <= 1280 * 16 <= `{height}` <= 1280 * `{width}` * `{height}` <= 921,600 Typical values are: * HD = `1280x720` * PAL = `1024x576` * VGA = `640x480` * CIF = `320x240` Note that the `resolution` imposes an aspect ratio to the resulting composition. When the original video tracks are constrained by the aspect ratio, they are scaled to fit. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. | + **statusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application on every composition event. If not provided, status callback events will not be dispatched. | + **statusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`. | + **trim** | **optional.Bool**| Whether to clip the intervals where there is no active media in the compositions triggered by the composition hook. The default is `true`. Compositions with `trim` enabled are shorter when the Room is created and no Participant joins for a while as well as if all the Participants leave the room and join later, because those gaps will be removed. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. | + **videoLayout** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON object that describes the video layout of the composition hook in terms of regions. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. | + +### Return type + +[**VideoV1CompositionHook**](video.v1.composition_hook.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) + + +## UpdateRoom + +> VideoV1Room UpdateRoom(ctx, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Room resource to update. | + **optional** | ***UpdateRoomOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateRoomOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **status** | **optional.String**| The new status of the resource. Set to `completed` to end the room. | + +### Return type + +[**VideoV1Room**](video.v1.room.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) + + +## UpdateRoomParticipant + +> VideoV1RoomRoomParticipant UpdateRoomParticipant(ctx, roomSid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**roomSid** | **string**| The SID of the room with the participant to update. | +**sid** | **string**| The SID of the RoomParticipant resource to update. | + **optional** | ***UpdateRoomParticipantOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateRoomParticipantOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **status** | **optional.String**| The new status of the resource. Can be: `connected` or `disconnected`. For `in-progress` Rooms the default Status is `connected`, for `completed` Rooms only `disconnected` Participants are returned. | + +### Return type + +[**VideoV1RoomRoomParticipant**](video.v1.room.room_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) + + +## UpdateRoomParticipantSubscribeRule + +> VideoV1RoomRoomParticipantRoomParticipantSubscribeRule UpdateRoomParticipantSubscribeRule(ctx, roomSid, participantSid, optional) + + + +Update the Subscribe Rules for the Participant + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**roomSid** | **string**| The SID of the Room resource where the subscribe rules to update apply. | +**participantSid** | **string**| The SID of the Participant resource to update the Subscribe Rules. | + **optional** | ***UpdateRoomParticipantSubscribeRuleOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateRoomParticipantSubscribeRuleOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **rules** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON-encoded array of subscribe rules. See the [Specifying Subscribe Rules](https://www.twilio.com/docs/video/api/track-subscriptions#specifying-sr) section for further information. | + +### Return type + +[**VideoV1RoomRoomParticipantRoomParticipantSubscribeRule**](video.v1.room.room_participant.room_participant_subscribe_rule.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) + + +## UpdateRoomRecordingRule + +> VideoV1RoomRoomRecordingRule UpdateRoomRecordingRule(ctx, roomSid, optional) + + + +Update the Recording Rules for the Room + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**roomSid** | **string**| The SID of the Room resource where the recording rules to update apply. | + **optional** | ***UpdateRoomRecordingRuleOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateRoomRecordingRuleOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **rules** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON-encoded array of recording rules. | + +### Return type + +[**VideoV1RoomRoomRecordingRule**](video.v1.room.room_recording_rule.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/rest/video/v1/docs/UpdateCompositionHookRequest.md b/rest/video/v1/docs/UpdateCompositionHookRequest.md new file mode 100644 index 000000000..b0805507a --- /dev/null +++ b/rest/video/v1/docs/UpdateCompositionHookRequest.md @@ -0,0 +1,20 @@ +# UpdateCompositionHookRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AudioSources** | **[]string** | An array of track names from the same group room to merge into the compositions created by the composition hook. Can include zero or more track names. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` includes tracks named `student` as well as `studentTeam`. | [optional] +**AudioSourcesExcluded** | **[]string** | An array of track names to exclude. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except for those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` excludes `student` as well as `studentTeam`. This parameter can also be empty. | [optional] +**Enabled** | **bool** | Whether the composition hook is active. When `true`, the composition hook will be triggered for every completed Group Room in the account. When `false`, the composition hook never triggers. | [optional] +**Format** | **string** | The container format of the media files used by the compositions created by the composition hook. Can be: `mp4` or `webm` and the default is `webm`. If `mp4` or `webm`, `audio_sources` must have one or more tracks and/or a `video_layout` element must contain a valid `video_sources` list, otherwise an error occurs. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It can be up to 100 characters long and it must be unique within the account. | +**Resolution** | **string** | A string that describes the columns (width) and rows (height) of the generated composed video in pixels. Defaults to `640x480`. The string's format is `{width}x{height}` where: * 16 <= `{width}` <= 1280 * 16 <= `{height}` <= 1280 * `{width}` * `{height}` <= 921,600 Typical values are: * HD = `1280x720` * PAL = `1024x576` * VGA = `640x480` * CIF = `320x240` Note that the `resolution` imposes an aspect ratio to the resulting composition. When the original video tracks are constrained by the aspect ratio, they are scaled to fit. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. | [optional] +**StatusCallback** | **string** | The URL we should call using the `status_callback_method` to send status information to your application on every composition event. If not provided, status callback events will not be dispatched. | [optional] +**StatusCallbackMethod** | **string** | The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`. | [optional] +**Trim** | **bool** | Whether to clip the intervals where there is no active media in the compositions triggered by the composition hook. The default is `true`. Compositions with `trim` enabled are shorter when the Room is created and no Participant joins for a while as well as if all the Participants leave the room and join later, because those gaps will be removed. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. | [optional] +**VideoLayout** | [**map[string]interface{}**](.md) | A JSON object that describes the video layout of the composition hook in terms of regions. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. | [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/rest/video/v1/docs/UpdateRoomParticipantRequest.md b/rest/video/v1/docs/UpdateRoomParticipantRequest.md new file mode 100644 index 000000000..77ec6687f --- /dev/null +++ b/rest/video/v1/docs/UpdateRoomParticipantRequest.md @@ -0,0 +1,11 @@ +# UpdateRoomParticipantRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **string** | The new status of the resource. Can be: `connected` or `disconnected`. For `in-progress` Rooms the default Status is `connected`, for `completed` Rooms only `disconnected` Participants are returned. | [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/rest/video/v1/docs/UpdateRoomParticipantSubscribeRuleRequest.md b/rest/video/v1/docs/UpdateRoomParticipantSubscribeRuleRequest.md new file mode 100644 index 000000000..f02a14d1e --- /dev/null +++ b/rest/video/v1/docs/UpdateRoomParticipantSubscribeRuleRequest.md @@ -0,0 +1,11 @@ +# UpdateRoomParticipantSubscribeRuleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Rules** | [**map[string]interface{}**](.md) | A JSON-encoded array of subscribe rules. See the [Specifying Subscribe Rules](https://www.twilio.com/docs/video/api/track-subscriptions#specifying-sr) section for further information. | [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/rest/video/v1/docs/UpdateRoomRecordingRuleRequest.md b/rest/video/v1/docs/UpdateRoomRecordingRuleRequest.md new file mode 100644 index 000000000..4dc9dee3d --- /dev/null +++ b/rest/video/v1/docs/UpdateRoomRecordingRuleRequest.md @@ -0,0 +1,11 @@ +# UpdateRoomRecordingRuleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Rules** | [**map[string]interface{}**](.md) | A JSON-encoded array of recording rules. | [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/rest/video/v1/docs/UpdateRoomRequest.md b/rest/video/v1/docs/UpdateRoomRequest.md new file mode 100644 index 000000000..6648af394 --- /dev/null +++ b/rest/video/v1/docs/UpdateRoomRequest.md @@ -0,0 +1,11 @@ +# UpdateRoomRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **string** | The new status of the resource. Set to `completed` to end the room. | + +[[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/rest/video/v1/docs/VideoV1Composition.md b/rest/video/v1/docs/VideoV1Composition.md new file mode 100644 index 000000000..5f9cb7b0f --- /dev/null +++ b/rest/video/v1/docs/VideoV1Composition.md @@ -0,0 +1,28 @@ +# VideoV1Composition + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AudioSources** | **[]string** | | [optional] +**AudioSourcesExcluded** | **[]string** | | [optional] +**Bitrate** | **int32** | | [optional] +**DateCompleted** | Pointer to [**time.Time**](time.Time.md) | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateDeleted** | Pointer to [**time.Time**](time.Time.md) | | [optional] +**Duration** | **int32** | | [optional] +**Format** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Resolution** | **string** | | [optional] +**RoomSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Size** | **int32** | | [optional] +**Status** | **string** | | [optional] +**Trim** | **bool** | | [optional] +**Url** | **string** | | [optional] +**VideoLayout** | [**map[string]interface{}**](.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/rest/video/v1/docs/VideoV1CompositionHook.md b/rest/video/v1/docs/VideoV1CompositionHook.md new file mode 100644 index 000000000..9d8cbbbcc --- /dev/null +++ b/rest/video/v1/docs/VideoV1CompositionHook.md @@ -0,0 +1,25 @@ +# VideoV1CompositionHook + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AudioSources** | **[]string** | | [optional] +**AudioSourcesExcluded** | **[]string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | Pointer to [**time.Time**](time.Time.md) | | [optional] +**Enabled** | **bool** | | [optional] +**Format** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**Resolution** | **string** | | [optional] +**Sid** | **string** | | [optional] +**StatusCallback** | Pointer to **string** | | [optional] +**StatusCallbackMethod** | **string** | | [optional] +**Trim** | **bool** | | [optional] +**Url** | **string** | | [optional] +**VideoLayout** | [**map[string]interface{}**](.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/rest/video/v1/docs/VideoV1CompositionHookReadResponse.md b/rest/video/v1/docs/VideoV1CompositionHookReadResponse.md new file mode 100644 index 000000000..7a8026565 --- /dev/null +++ b/rest/video/v1/docs/VideoV1CompositionHookReadResponse.md @@ -0,0 +1,12 @@ +# VideoV1CompositionHookReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CompositionHooks** | [**[]VideoV1CompositionHook**](video.v1.composition_hook.md) | | [optional] +**Meta** | [**VideoV1CompositionHookReadResponseMeta**](video_v1_composition_hookReadResponse_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/rest/video/v1/docs/VideoV1CompositionHookReadResponseMeta.md b/rest/video/v1/docs/VideoV1CompositionHookReadResponseMeta.md new file mode 100644 index 000000000..39ed4fa52 --- /dev/null +++ b/rest/video/v1/docs/VideoV1CompositionHookReadResponseMeta.md @@ -0,0 +1,17 @@ +# VideoV1CompositionHookReadResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/video/v1/docs/VideoV1CompositionReadResponse.md b/rest/video/v1/docs/VideoV1CompositionReadResponse.md new file mode 100644 index 000000000..7f413d4f5 --- /dev/null +++ b/rest/video/v1/docs/VideoV1CompositionReadResponse.md @@ -0,0 +1,12 @@ +# VideoV1CompositionReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Compositions** | [**[]VideoV1Composition**](video.v1.composition.md) | | [optional] +**Meta** | [**VideoV1CompositionHookReadResponseMeta**](video_v1_composition_hookReadResponse_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/rest/video/v1/docs/VideoV1CompositionSettings.md b/rest/video/v1/docs/VideoV1CompositionSettings.md new file mode 100644 index 000000000..fef12fe91 --- /dev/null +++ b/rest/video/v1/docs/VideoV1CompositionSettings.md @@ -0,0 +1,18 @@ +# VideoV1CompositionSettings + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AwsCredentialsSid** | **string** | | [optional] +**AwsS3Url** | **string** | | [optional] +**AwsStorageEnabled** | **bool** | | [optional] +**EncryptionEnabled** | **bool** | | [optional] +**EncryptionKeySid** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**Url** | **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/rest/video/v1/docs/VideoV1Recording.md b/rest/video/v1/docs/VideoV1Recording.md new file mode 100644 index 000000000..519dc1f69 --- /dev/null +++ b/rest/video/v1/docs/VideoV1Recording.md @@ -0,0 +1,25 @@ +# VideoV1Recording + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Codec** | **string** | | [optional] +**ContainerFormat** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**Duration** | Pointer to **int32** | | [optional] +**GroupingSids** | [**map[string]interface{}**](.md) | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Offset** | **int32** | | [optional] +**Sid** | **string** | | [optional] +**Size** | **int32** | | [optional] +**SourceSid** | **string** | | [optional] +**Status** | **string** | | [optional] +**TrackName** | **string** | | [optional] +**Type** | **string** | | [optional] +**Url** | **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/rest/video/v1/docs/VideoV1RecordingReadResponse.md b/rest/video/v1/docs/VideoV1RecordingReadResponse.md new file mode 100644 index 000000000..2da899d80 --- /dev/null +++ b/rest/video/v1/docs/VideoV1RecordingReadResponse.md @@ -0,0 +1,12 @@ +# VideoV1RecordingReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**VideoV1CompositionHookReadResponseMeta**](video_v1_composition_hookReadResponse_meta.md) | | [optional] +**Recordings** | [**[]VideoV1Recording**](video.v1.recording.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/rest/video/v1/docs/VideoV1RecordingSettings.md b/rest/video/v1/docs/VideoV1RecordingSettings.md new file mode 100644 index 000000000..62ca5dd5c --- /dev/null +++ b/rest/video/v1/docs/VideoV1RecordingSettings.md @@ -0,0 +1,18 @@ +# VideoV1RecordingSettings + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**AwsCredentialsSid** | **string** | | [optional] +**AwsS3Url** | **string** | | [optional] +**AwsStorageEnabled** | **bool** | | [optional] +**EncryptionEnabled** | **bool** | | [optional] +**EncryptionKeySid** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**Url** | **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/rest/video/v1/docs/VideoV1Room.md b/rest/video/v1/docs/VideoV1Room.md new file mode 100644 index 000000000..12681db3a --- /dev/null +++ b/rest/video/v1/docs/VideoV1Room.md @@ -0,0 +1,28 @@ +# VideoV1Room + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Duration** | Pointer to **int32** | | [optional] +**EnableTurn** | **bool** | | [optional] +**EndTime** | [**time.Time**](time.Time.md) | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**MaxParticipants** | **int32** | | [optional] +**MediaRegion** | **string** | | [optional] +**RecordParticipantsOnConnect** | **bool** | | [optional] +**Sid** | **string** | | [optional] +**Status** | **string** | | [optional] +**StatusCallback** | **string** | | [optional] +**StatusCallbackMethod** | **string** | | [optional] +**Type** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **string** | | [optional] +**VideoCodecs** | **[]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/rest/video/v1/docs/VideoV1RoomReadResponse.md b/rest/video/v1/docs/VideoV1RoomReadResponse.md new file mode 100644 index 000000000..0ef330949 --- /dev/null +++ b/rest/video/v1/docs/VideoV1RoomReadResponse.md @@ -0,0 +1,12 @@ +# VideoV1RoomReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**VideoV1CompositionHookReadResponseMeta**](video_v1_composition_hookReadResponse_meta.md) | | [optional] +**Rooms** | [**[]VideoV1Room**](video.v1.room.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/rest/video/v1/docs/VideoV1RoomRoomParticipant.md b/rest/video/v1/docs/VideoV1RoomRoomParticipant.md new file mode 100644 index 000000000..6f80d4250 --- /dev/null +++ b/rest/video/v1/docs/VideoV1RoomRoomParticipant.md @@ -0,0 +1,22 @@ +# VideoV1RoomRoomParticipant + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Duration** | Pointer to **int32** | | [optional] +**EndTime** | [**time.Time**](time.Time.md) | | [optional] +**Identity** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**RoomSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**StartTime** | [**time.Time**](time.Time.md) | | [optional] +**Status** | **string** | | [optional] +**Url** | **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/rest/video/v1/docs/VideoV1RoomRoomParticipantReadResponse.md b/rest/video/v1/docs/VideoV1RoomRoomParticipantReadResponse.md new file mode 100644 index 000000000..33826d86b --- /dev/null +++ b/rest/video/v1/docs/VideoV1RoomRoomParticipantReadResponse.md @@ -0,0 +1,12 @@ +# VideoV1RoomRoomParticipantReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**VideoV1CompositionHookReadResponseMeta**](video_v1_composition_hookReadResponse_meta.md) | | [optional] +**Participants** | [**[]VideoV1RoomRoomParticipant**](video.v1.room.room_participant.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/rest/video/v1/docs/VideoV1RoomRoomParticipantRoomParticipantPublishedTrack.md b/rest/video/v1/docs/VideoV1RoomRoomParticipantRoomParticipantPublishedTrack.md new file mode 100644 index 000000000..4a85ef99f --- /dev/null +++ b/rest/video/v1/docs/VideoV1RoomRoomParticipantRoomParticipantPublishedTrack.md @@ -0,0 +1,19 @@ +# VideoV1RoomRoomParticipantRoomParticipantPublishedTrack + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Enabled** | **bool** | | [optional] +**Kind** | **string** | | [optional] +**Name** | **string** | | [optional] +**ParticipantSid** | **string** | | [optional] +**RoomSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/video/v1/docs/VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse.md b/rest/video/v1/docs/VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse.md new file mode 100644 index 000000000..cd8519271 --- /dev/null +++ b/rest/video/v1/docs/VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse.md @@ -0,0 +1,12 @@ +# VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**VideoV1CompositionHookReadResponseMeta**](video_v1_composition_hookReadResponse_meta.md) | | [optional] +**PublishedTracks** | [**[]VideoV1RoomRoomParticipantRoomParticipantPublishedTrack**](video.v1.room.room_participant.room_participant_published_track.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/rest/video/v1/docs/VideoV1RoomRoomParticipantRoomParticipantSubscribeRule.md b/rest/video/v1/docs/VideoV1RoomRoomParticipantRoomParticipantSubscribeRule.md new file mode 100644 index 000000000..b80d58895 --- /dev/null +++ b/rest/video/v1/docs/VideoV1RoomRoomParticipantRoomParticipantSubscribeRule.md @@ -0,0 +1,15 @@ +# VideoV1RoomRoomParticipantRoomParticipantSubscribeRule + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**ParticipantSid** | **string** | | [optional] +**RoomSid** | **string** | | [optional] +**Rules** | **[]map[string]interface{}** | | [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/rest/video/v1/docs/VideoV1RoomRoomParticipantRoomParticipantSubscribedTrack.md b/rest/video/v1/docs/VideoV1RoomRoomParticipantRoomParticipantSubscribedTrack.md new file mode 100644 index 000000000..455855b30 --- /dev/null +++ b/rest/video/v1/docs/VideoV1RoomRoomParticipantRoomParticipantSubscribedTrack.md @@ -0,0 +1,20 @@ +# VideoV1RoomRoomParticipantRoomParticipantSubscribedTrack + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Enabled** | **bool** | | [optional] +**Kind** | **string** | | [optional] +**Name** | **string** | | [optional] +**ParticipantSid** | **string** | | [optional] +**PublisherSid** | **string** | | [optional] +**RoomSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/video/v1/docs/VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse.md b/rest/video/v1/docs/VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse.md new file mode 100644 index 000000000..1dfc78a24 --- /dev/null +++ b/rest/video/v1/docs/VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse.md @@ -0,0 +1,12 @@ +# VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**VideoV1CompositionHookReadResponseMeta**](video_v1_composition_hookReadResponse_meta.md) | | [optional] +**SubscribedTracks** | [**[]VideoV1RoomRoomParticipantRoomParticipantSubscribedTrack**](video.v1.room.room_participant.room_participant_subscribed_track.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/rest/video/v1/docs/VideoV1RoomRoomRecording.md b/rest/video/v1/docs/VideoV1RoomRoomRecording.md new file mode 100644 index 000000000..8efe2798c --- /dev/null +++ b/rest/video/v1/docs/VideoV1RoomRoomRecording.md @@ -0,0 +1,26 @@ +# VideoV1RoomRoomRecording + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Codec** | **string** | | [optional] +**ContainerFormat** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**Duration** | Pointer to **int32** | | [optional] +**GroupingSids** | [**map[string]interface{}**](.md) | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Offset** | **int32** | | [optional] +**RoomSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Size** | **int32** | | [optional] +**SourceSid** | **string** | | [optional] +**Status** | **string** | | [optional] +**TrackName** | **string** | | [optional] +**Type** | **string** | | [optional] +**Url** | **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/rest/video/v1/docs/VideoV1RoomRoomRecordingReadResponse.md b/rest/video/v1/docs/VideoV1RoomRoomRecordingReadResponse.md new file mode 100644 index 000000000..bf5fb3faf --- /dev/null +++ b/rest/video/v1/docs/VideoV1RoomRoomRecordingReadResponse.md @@ -0,0 +1,12 @@ +# VideoV1RoomRoomRecordingReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**VideoV1CompositionHookReadResponseMeta**](video_v1_composition_hookReadResponse_meta.md) | | [optional] +**Recordings** | [**[]VideoV1RoomRoomRecording**](video.v1.room.room_recording.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/rest/video/v1/docs/VideoV1RoomRoomRecordingRule.md b/rest/video/v1/docs/VideoV1RoomRoomRecordingRule.md new file mode 100644 index 000000000..cb2b69344 --- /dev/null +++ b/rest/video/v1/docs/VideoV1RoomRoomRecordingRule.md @@ -0,0 +1,14 @@ +# VideoV1RoomRoomRecordingRule + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**RoomSid** | **string** | | [optional] +**Rules** | **[]map[string]interface{}** | | [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/rest/video/v1/model_create_composition_hook_request.go b/rest/video/v1/model_create_composition_hook_request.go new file mode 100644 index 000000000..5acec3c68 --- /dev/null +++ b/rest/video/v1/model_create_composition_hook_request.go @@ -0,0 +1,34 @@ +/* + * Twilio - Video + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateCompositionHookRequest struct for CreateCompositionHookRequest +type CreateCompositionHookRequest struct { + // An array of track names from the same group room to merge into the compositions created by the composition hook. Can include zero or more track names. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` includes tracks named `student` as well as `studentTeam`. + AudioSources []string `json:"AudioSources,omitempty"` + // An array of track names to exclude. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except for those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` excludes `student` as well as `studentTeam`. This parameter can also be empty. + AudioSourcesExcluded []string `json:"AudioSourcesExcluded,omitempty"` + // Whether the composition hook is active. When `true`, the composition hook will be triggered for every completed Group Room in the account. When `false`, the composition hook will never be triggered. + Enabled bool `json:"Enabled,omitempty"` + // The container format of the media files used by the compositions created by the composition hook. Can be: `mp4` or `webm` and the default is `webm`. If `mp4` or `webm`, `audio_sources` must have one or more tracks and/or a `video_layout` element must contain a valid `video_sources` list, otherwise an error occurs. + Format string `json:"Format,omitempty"` + // A descriptive string that you create to describe the resource. It can be up to 100 characters long and it must be unique within the account. + FriendlyName string `json:"FriendlyName"` + // A string that describes the columns (width) and rows (height) of the generated composed video in pixels. Defaults to `640x480`. The string's format is `{width}x{height}` where: * 16 <= `{width}` <= 1280 * 16 <= `{height}` <= 1280 * `{width}` * `{height}` <= 921,600 Typical values are: * HD = `1280x720` * PAL = `1024x576` * VGA = `640x480` * CIF = `320x240` Note that the `resolution` imposes an aspect ratio to the resulting composition. When the original video tracks are constrained by the aspect ratio, they are scaled to fit. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. + Resolution string `json:"Resolution,omitempty"` + // The URL we should call using the `status_callback_method` to send status information to your application on every composition event. If not provided, status callback events will not be dispatched. + StatusCallback string `json:"StatusCallback,omitempty"` + // The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`. + StatusCallbackMethod string `json:"StatusCallbackMethod,omitempty"` + // Whether to clip the intervals where there is no active media in the Compositions triggered by the composition hook. The default is `true`. Compositions with `trim` enabled are shorter when the Room is created and no Participant joins for a while as well as if all the Participants leave the room and join later, because those gaps will be removed. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. + Trim bool `json:"Trim,omitempty"` + // An object that describes the video layout of the composition hook in terms of regions. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. + VideoLayout map[string]interface{} `json:"VideoLayout,omitempty"` +} diff --git a/rest/video/v1/model_create_composition_request.go b/rest/video/v1/model_create_composition_request.go new file mode 100644 index 000000000..0a4fa9a93 --- /dev/null +++ b/rest/video/v1/model_create_composition_request.go @@ -0,0 +1,32 @@ +/* + * Twilio - Video + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateCompositionRequest struct for CreateCompositionRequest +type CreateCompositionRequest struct { + // An array of track names from the same group room to merge into the new composition. Can include zero or more track names. The new composition includes all audio sources specified in `audio_sources` except for those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which will match zero or more characters in a track name. For example, `student*` includes `student` as well as `studentTeam`. Please, be aware that either video_layout or audio_sources have to be provided to get a valid creation request + AudioSources []string `json:"AudioSources,omitempty"` + // An array of track names to exclude. The new composition includes all audio sources specified in `audio_sources` except for those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which will match zero or more characters in a track name. For example, `student*` excludes `student` as well as `studentTeam`. This parameter can also be empty. + AudioSourcesExcluded []string `json:"AudioSourcesExcluded,omitempty"` + // The container format of the composition's media files. Can be: `mp4` or `webm` and the default is `webm`. If you specify `mp4` or `webm`, you must also specify one or more `audio_sources` and/or a `video_layout` element that contains a valid `video_sources` list, otherwise an error occurs. + Format string `json:"Format,omitempty"` + // A string that describes the columns (width) and rows (height) of the generated composed video in pixels. Defaults to `640x480`. The string's format is `{width}x{height}` where: * 16 <= `{width}` <= 1280 * 16 <= `{height}` <= 1280 * `{width}` * `{height}` <= 921,600 Typical values are: * HD = `1280x720` * PAL = `1024x576` * VGA = `640x480` * CIF = `320x240` Note that the `resolution` imposes an aspect ratio to the resulting composition. When the original video tracks are constrained by the aspect ratio, they are scaled to fit. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. + Resolution string `json:"Resolution,omitempty"` + // The SID of the Group Room with the media tracks to be used as composition sources. + RoomSid string `json:"RoomSid"` + // The URL we should call using the `status_callback_method` to send status information to your application on every composition event. If not provided, status callback events will not be dispatched. + StatusCallback string `json:"StatusCallback,omitempty"` + // The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`. + StatusCallbackMethod string `json:"StatusCallbackMethod,omitempty"` + // Whether to clip the intervals where there is no active media in the composition. The default is `true`. Compositions with `trim` enabled are shorter when the Room is created and no Participant joins for a while as well as if all the Participants leave the room and join later, because those gaps will be removed. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. + Trim bool `json:"Trim,omitempty"` + // An object that describes the video layout of the composition in terms of regions. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. Please, be aware that either video_layout or audio_sources have to be provided to get a valid creation request + VideoLayout map[string]interface{} `json:"VideoLayout,omitempty"` +} diff --git a/rest/video/v1/model_create_composition_settings_request.go b/rest/video/v1/model_create_composition_settings_request.go new file mode 100644 index 000000000..9e2557911 --- /dev/null +++ b/rest/video/v1/model_create_composition_settings_request.go @@ -0,0 +1,26 @@ +/* + * Twilio - Video + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateCompositionSettingsRequest struct for CreateCompositionSettingsRequest +type CreateCompositionSettingsRequest struct { + // The SID of the stored Credential resource. + AwsCredentialsSid string `json:"AwsCredentialsSid,omitempty"` + // The URL of the AWS S3 bucket where the compositions should be stored. We only support DNS-compliant URLs like `https://documentation-example-twilio-bucket/compositions`, where `compositions` is the path in which you want the compositions to be stored. This URL accepts only URI-valid characters, as described in the RFC 3986. + AwsS3Url string `json:"AwsS3Url,omitempty"` + // Whether all compositions should be written to the `aws_s3_url`. When `false`, all compositions are stored in our cloud. + AwsStorageEnabled bool `json:"AwsStorageEnabled,omitempty"` + // Whether all compositions should be stored in an encrypted form. The default is `false`. + EncryptionEnabled bool `json:"EncryptionEnabled,omitempty"` + // The SID of the Public Key resource to use for encryption. + EncryptionKeySid string `json:"EncryptionKeySid,omitempty"` + // A descriptive string that you create to describe the resource and show to the user in the console + FriendlyName string `json:"FriendlyName"` +} diff --git a/rest/video/v1/model_create_recording_settings_request.go b/rest/video/v1/model_create_recording_settings_request.go new file mode 100644 index 000000000..a965f232f --- /dev/null +++ b/rest/video/v1/model_create_recording_settings_request.go @@ -0,0 +1,26 @@ +/* + * Twilio - Video + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateRecordingSettingsRequest struct for CreateRecordingSettingsRequest +type CreateRecordingSettingsRequest struct { + // The SID of the stored Credential resource. + AwsCredentialsSid string `json:"AwsCredentialsSid,omitempty"` + // The URL of the AWS S3 bucket where the recordings should be stored. We only support DNS-compliant URLs like `https://documentation-example-twilio-bucket/recordings`, where `recordings` is the path in which you want the recordings to be stored. This URL accepts only URI-valid characters, as described in the RFC 3986. + AwsS3Url string `json:"AwsS3Url,omitempty"` + // Whether all recordings should be written to the `aws_s3_url`. When `false`, all recordings are stored in our cloud. + AwsStorageEnabled bool `json:"AwsStorageEnabled,omitempty"` + // Whether all recordings should be stored in an encrypted form. The default is `false`. + EncryptionEnabled bool `json:"EncryptionEnabled,omitempty"` + // The SID of the Public Key resource to use for encryption. + EncryptionKeySid string `json:"EncryptionKeySid,omitempty"` + // A descriptive string that you create to describe the resource and be shown to users in the console + FriendlyName string `json:"FriendlyName"` +} diff --git a/rest/video/v1/model_create_room_request.go b/rest/video/v1/model_create_room_request.go new file mode 100644 index 000000000..c1bf34a8e --- /dev/null +++ b/rest/video/v1/model_create_room_request.go @@ -0,0 +1,32 @@ +/* + * Twilio - Video + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateRoomRequest struct for CreateRoomRequest +type CreateRoomRequest struct { + // Deprecated, now always considered to be true. + EnableTurn bool `json:"EnableTurn,omitempty"` + // The maximum number of concurrent Participants allowed in the room. Peer-to-peer rooms can have up to 10 Participants. Small Group rooms can have up to 4 Participants. Group rooms can have up to 50 Participants. + MaxParticipants int32 `json:"MaxParticipants,omitempty"` + // The region for the media server in Group Rooms. Can be: one of the [available Media Regions](https://www.twilio.com/docs/video/ip-address-whitelisting#group-rooms-media-servers). ***This feature is not available in `peer-to-peer` rooms.*** + MediaRegion string `json:"MediaRegion,omitempty"` + // Whether to start recording when Participants connect. ***This feature is not available in `peer-to-peer` rooms.*** + RecordParticipantsOnConnect bool `json:"RecordParticipantsOnConnect,omitempty"` + // The URL we should call using the `status_callback_method` to send status information to your application on every room event. See [Status Callbacks](https://www.twilio.com/docs/video/api/status-callbacks) for more info. + StatusCallback string `json:"StatusCallback,omitempty"` + // The HTTP method we should use to call `status_callback`. Can be `POST` or `GET`. + StatusCallbackMethod string `json:"StatusCallbackMethod,omitempty"` + // The type of room. Can be: `go`, `peer-to-peer`, `group-small`, or `group`. The default value is `group`. + Type string `json:"Type,omitempty"` + // An application-defined string that uniquely identifies the resource. It can be used as a `room_sid` in place of the resource's `sid` in the URL to address the resource. This value is unique for `in-progress` rooms. SDK clients can use this name to connect to the room. REST API clients can use this name in place of the Room SID to interact with the room as long as the room is `in-progress`. + UniqueName string `json:"UniqueName,omitempty"` + // An array of the video codecs that are supported when publishing a track in the room. Can be: `VP8` and `H264`. ***This feature is not available in `peer-to-peer` rooms*** + VideoCodecs []string `json:"VideoCodecs,omitempty"` +} diff --git a/rest/video/v1/model_update_composition_hook_request.go b/rest/video/v1/model_update_composition_hook_request.go new file mode 100644 index 000000000..d3c7731b4 --- /dev/null +++ b/rest/video/v1/model_update_composition_hook_request.go @@ -0,0 +1,34 @@ +/* + * Twilio - Video + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateCompositionHookRequest struct for UpdateCompositionHookRequest +type UpdateCompositionHookRequest struct { + // An array of track names from the same group room to merge into the compositions created by the composition hook. Can include zero or more track names. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` includes tracks named `student` as well as `studentTeam`. + AudioSources []string `json:"AudioSources,omitempty"` + // An array of track names to exclude. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except for those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` excludes `student` as well as `studentTeam`. This parameter can also be empty. + AudioSourcesExcluded []string `json:"AudioSourcesExcluded,omitempty"` + // Whether the composition hook is active. When `true`, the composition hook will be triggered for every completed Group Room in the account. When `false`, the composition hook never triggers. + Enabled bool `json:"Enabled,omitempty"` + // The container format of the media files used by the compositions created by the composition hook. Can be: `mp4` or `webm` and the default is `webm`. If `mp4` or `webm`, `audio_sources` must have one or more tracks and/or a `video_layout` element must contain a valid `video_sources` list, otherwise an error occurs. + Format string `json:"Format,omitempty"` + // A descriptive string that you create to describe the resource. It can be up to 100 characters long and it must be unique within the account. + FriendlyName string `json:"FriendlyName"` + // A string that describes the columns (width) and rows (height) of the generated composed video in pixels. Defaults to `640x480`. The string's format is `{width}x{height}` where: * 16 <= `{width}` <= 1280 * 16 <= `{height}` <= 1280 * `{width}` * `{height}` <= 921,600 Typical values are: * HD = `1280x720` * PAL = `1024x576` * VGA = `640x480` * CIF = `320x240` Note that the `resolution` imposes an aspect ratio to the resulting composition. When the original video tracks are constrained by the aspect ratio, they are scaled to fit. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. + Resolution string `json:"Resolution,omitempty"` + // The URL we should call using the `status_callback_method` to send status information to your application on every composition event. If not provided, status callback events will not be dispatched. + StatusCallback string `json:"StatusCallback,omitempty"` + // The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`. + StatusCallbackMethod string `json:"StatusCallbackMethod,omitempty"` + // Whether to clip the intervals where there is no active media in the compositions triggered by the composition hook. The default is `true`. Compositions with `trim` enabled are shorter when the Room is created and no Participant joins for a while as well as if all the Participants leave the room and join later, because those gaps will be removed. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. + Trim bool `json:"Trim,omitempty"` + // A JSON object that describes the video layout of the composition hook in terms of regions. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. + VideoLayout map[string]interface{} `json:"VideoLayout,omitempty"` +} diff --git a/rest/video/v1/model_update_room_participant_request.go b/rest/video/v1/model_update_room_participant_request.go new file mode 100644 index 000000000..412997d7a --- /dev/null +++ b/rest/video/v1/model_update_room_participant_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Video + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateRoomParticipantRequest struct for UpdateRoomParticipantRequest +type UpdateRoomParticipantRequest struct { + // The new status of the resource. Can be: `connected` or `disconnected`. For `in-progress` Rooms the default Status is `connected`, for `completed` Rooms only `disconnected` Participants are returned. + Status string `json:"Status,omitempty"` +} diff --git a/rest/video/v1/model_update_room_participant_subscribe_rule_request.go b/rest/video/v1/model_update_room_participant_subscribe_rule_request.go new file mode 100644 index 000000000..027d57f5f --- /dev/null +++ b/rest/video/v1/model_update_room_participant_subscribe_rule_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Video + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateRoomParticipantSubscribeRuleRequest struct for UpdateRoomParticipantSubscribeRuleRequest +type UpdateRoomParticipantSubscribeRuleRequest struct { + // A JSON-encoded array of subscribe rules. See the [Specifying Subscribe Rules](https://www.twilio.com/docs/video/api/track-subscriptions#specifying-sr) section for further information. + Rules map[string]interface{} `json:"Rules,omitempty"` +} diff --git a/rest/video/v1/model_update_room_recording_rule_request.go b/rest/video/v1/model_update_room_recording_rule_request.go new file mode 100644 index 000000000..9ec28bdca --- /dev/null +++ b/rest/video/v1/model_update_room_recording_rule_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Video + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateRoomRecordingRuleRequest struct for UpdateRoomRecordingRuleRequest +type UpdateRoomRecordingRuleRequest struct { + // A JSON-encoded array of recording rules. + Rules map[string]interface{} `json:"Rules,omitempty"` +} diff --git a/rest/video/v1/model_update_room_request.go b/rest/video/v1/model_update_room_request.go new file mode 100644 index 000000000..04f7a75ab --- /dev/null +++ b/rest/video/v1/model_update_room_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Video + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateRoomRequest struct for UpdateRoomRequest +type UpdateRoomRequest struct { + // The new status of the resource. Set to `completed` to end the room. + Status string `json:"Status"` +} diff --git a/rest/video/v1/model_video_v1_composition.go b/rest/video/v1/model_video_v1_composition.go new file mode 100644 index 000000000..e699383e5 --- /dev/null +++ b/rest/video/v1/model_video_v1_composition.go @@ -0,0 +1,35 @@ +/* + * Twilio - Video + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// VideoV1Composition struct for VideoV1Composition +type VideoV1Composition struct { + AccountSid string `json:"account_sid,omitempty"` + AudioSources []string `json:"audio_sources,omitempty"` + AudioSourcesExcluded []string `json:"audio_sources_excluded,omitempty"` + Bitrate int32 `json:"bitrate,omitempty"` + DateCompleted *time.Time `json:"date_completed,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateDeleted *time.Time `json:"date_deleted,omitempty"` + Duration int32 `json:"duration,omitempty"` + Format string `json:"format,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Resolution string `json:"resolution,omitempty"` + RoomSid string `json:"room_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Size int32 `json:"size,omitempty"` + Status string `json:"status,omitempty"` + Trim bool `json:"trim,omitempty"` + Url string `json:"url,omitempty"` + VideoLayout map[string]interface{} `json:"video_layout,omitempty"` +} diff --git a/rest/video/v1/model_video_v1_composition_hook.go b/rest/video/v1/model_video_v1_composition_hook.go new file mode 100644 index 000000000..6c7f6a4ab --- /dev/null +++ b/rest/video/v1/model_video_v1_composition_hook.go @@ -0,0 +1,32 @@ +/* + * Twilio - Video + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// VideoV1CompositionHook struct for VideoV1CompositionHook +type VideoV1CompositionHook struct { + AccountSid string `json:"account_sid,omitempty"` + AudioSources []string `json:"audio_sources,omitempty"` + AudioSourcesExcluded []string `json:"audio_sources_excluded,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated *time.Time `json:"date_updated,omitempty"` + Enabled bool `json:"enabled,omitempty"` + Format string `json:"format,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Resolution string `json:"resolution,omitempty"` + Sid string `json:"sid,omitempty"` + StatusCallback *string `json:"status_callback,omitempty"` + StatusCallbackMethod string `json:"status_callback_method,omitempty"` + Trim bool `json:"trim,omitempty"` + Url string `json:"url,omitempty"` + VideoLayout map[string]interface{} `json:"video_layout,omitempty"` +} diff --git a/rest/video/v1/model_video_v1_composition_hook_read_response.go b/rest/video/v1/model_video_v1_composition_hook_read_response.go new file mode 100644 index 000000000..20354b23e --- /dev/null +++ b/rest/video/v1/model_video_v1_composition_hook_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Video + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// VideoV1CompositionHookReadResponse struct for VideoV1CompositionHookReadResponse +type VideoV1CompositionHookReadResponse struct { + CompositionHooks []VideoV1CompositionHook `json:"composition_hooks,omitempty"` + Meta VideoV1CompositionHookReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/video/v1/model_video_v1_composition_hook_read_response_meta.go b/rest/video/v1/model_video_v1_composition_hook_read_response_meta.go new file mode 100644 index 000000000..508879d9c --- /dev/null +++ b/rest/video/v1/model_video_v1_composition_hook_read_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Video + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// VideoV1CompositionHookReadResponseMeta struct for VideoV1CompositionHookReadResponseMeta +type VideoV1CompositionHookReadResponseMeta struct { + FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` + NextPageUrl string `json:"next_page_url,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUrl string `json:"previous_page_url,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/video/v1/model_video_v1_composition_read_response.go b/rest/video/v1/model_video_v1_composition_read_response.go new file mode 100644 index 000000000..5c97d836d --- /dev/null +++ b/rest/video/v1/model_video_v1_composition_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Video + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// VideoV1CompositionReadResponse struct for VideoV1CompositionReadResponse +type VideoV1CompositionReadResponse struct { + Compositions []VideoV1Composition `json:"compositions,omitempty"` + Meta VideoV1CompositionHookReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/video/v1/model_video_v1_composition_settings.go b/rest/video/v1/model_video_v1_composition_settings.go new file mode 100644 index 000000000..b695fde62 --- /dev/null +++ b/rest/video/v1/model_video_v1_composition_settings.go @@ -0,0 +1,22 @@ +/* + * Twilio - Video + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// VideoV1CompositionSettings struct for VideoV1CompositionSettings +type VideoV1CompositionSettings struct { + AccountSid string `json:"account_sid,omitempty"` + AwsCredentialsSid string `json:"aws_credentials_sid,omitempty"` + AwsS3Url string `json:"aws_s3_url,omitempty"` + AwsStorageEnabled bool `json:"aws_storage_enabled,omitempty"` + EncryptionEnabled bool `json:"encryption_enabled,omitempty"` + EncryptionKeySid string `json:"encryption_key_sid,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/video/v1/model_video_v1_recording.go b/rest/video/v1/model_video_v1_recording.go new file mode 100644 index 000000000..6693cf4d6 --- /dev/null +++ b/rest/video/v1/model_video_v1_recording.go @@ -0,0 +1,32 @@ +/* + * Twilio - Video + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// VideoV1Recording struct for VideoV1Recording +type VideoV1Recording struct { + AccountSid string `json:"account_sid,omitempty"` + Codec string `json:"codec,omitempty"` + ContainerFormat string `json:"container_format,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + Duration *int32 `json:"duration,omitempty"` + GroupingSids map[string]interface{} `json:"grouping_sids,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Offset int32 `json:"offset,omitempty"` + Sid string `json:"sid,omitempty"` + Size int32 `json:"size,omitempty"` + SourceSid string `json:"source_sid,omitempty"` + Status string `json:"status,omitempty"` + TrackName string `json:"track_name,omitempty"` + Type string `json:"type,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/video/v1/model_video_v1_recording_read_response.go b/rest/video/v1/model_video_v1_recording_read_response.go new file mode 100644 index 000000000..f63dc95af --- /dev/null +++ b/rest/video/v1/model_video_v1_recording_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Video + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// VideoV1RecordingReadResponse struct for VideoV1RecordingReadResponse +type VideoV1RecordingReadResponse struct { + Meta VideoV1CompositionHookReadResponseMeta `json:"meta,omitempty"` + Recordings []VideoV1Recording `json:"recordings,omitempty"` +} diff --git a/rest/video/v1/model_video_v1_recording_settings.go b/rest/video/v1/model_video_v1_recording_settings.go new file mode 100644 index 000000000..dca19cbf7 --- /dev/null +++ b/rest/video/v1/model_video_v1_recording_settings.go @@ -0,0 +1,22 @@ +/* + * Twilio - Video + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// VideoV1RecordingSettings struct for VideoV1RecordingSettings +type VideoV1RecordingSettings struct { + AccountSid string `json:"account_sid,omitempty"` + AwsCredentialsSid string `json:"aws_credentials_sid,omitempty"` + AwsS3Url string `json:"aws_s3_url,omitempty"` + AwsStorageEnabled bool `json:"aws_storage_enabled,omitempty"` + EncryptionEnabled bool `json:"encryption_enabled,omitempty"` + EncryptionKeySid string `json:"encryption_key_sid,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/video/v1/model_video_v1_room.go b/rest/video/v1/model_video_v1_room.go new file mode 100644 index 000000000..1a2114814 --- /dev/null +++ b/rest/video/v1/model_video_v1_room.go @@ -0,0 +1,35 @@ +/* + * Twilio - Video + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// VideoV1Room struct for VideoV1Room +type VideoV1Room struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Duration *int32 `json:"duration,omitempty"` + EnableTurn bool `json:"enable_turn,omitempty"` + EndTime time.Time `json:"end_time,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + MaxParticipants int32 `json:"max_participants,omitempty"` + MediaRegion string `json:"media_region,omitempty"` + RecordParticipantsOnConnect bool `json:"record_participants_on_connect,omitempty"` + Sid string `json:"sid,omitempty"` + Status string `json:"status,omitempty"` + StatusCallback string `json:"status_callback,omitempty"` + StatusCallbackMethod string `json:"status_callback_method,omitempty"` + Type string `json:"type,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` + VideoCodecs []string `json:"video_codecs,omitempty"` +} diff --git a/rest/video/v1/model_video_v1_room_read_response.go b/rest/video/v1/model_video_v1_room_read_response.go new file mode 100644 index 000000000..fd3b63d9b --- /dev/null +++ b/rest/video/v1/model_video_v1_room_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Video + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// VideoV1RoomReadResponse struct for VideoV1RoomReadResponse +type VideoV1RoomReadResponse struct { + Meta VideoV1CompositionHookReadResponseMeta `json:"meta,omitempty"` + Rooms []VideoV1Room `json:"rooms,omitempty"` +} diff --git a/rest/video/v1/model_video_v1_room_room_participant.go b/rest/video/v1/model_video_v1_room_room_participant.go new file mode 100644 index 000000000..0143cc465 --- /dev/null +++ b/rest/video/v1/model_video_v1_room_room_participant.go @@ -0,0 +1,29 @@ +/* + * Twilio - Video + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// VideoV1RoomRoomParticipant struct for VideoV1RoomRoomParticipant +type VideoV1RoomRoomParticipant struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Duration *int32 `json:"duration,omitempty"` + EndTime time.Time `json:"end_time,omitempty"` + Identity string `json:"identity,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + RoomSid string `json:"room_sid,omitempty"` + Sid string `json:"sid,omitempty"` + StartTime time.Time `json:"start_time,omitempty"` + Status string `json:"status,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/video/v1/model_video_v1_room_room_participant_read_response.go b/rest/video/v1/model_video_v1_room_room_participant_read_response.go new file mode 100644 index 000000000..11f059a81 --- /dev/null +++ b/rest/video/v1/model_video_v1_room_room_participant_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Video + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// VideoV1RoomRoomParticipantReadResponse struct for VideoV1RoomRoomParticipantReadResponse +type VideoV1RoomRoomParticipantReadResponse struct { + Meta VideoV1CompositionHookReadResponseMeta `json:"meta,omitempty"` + Participants []VideoV1RoomRoomParticipant `json:"participants,omitempty"` +} diff --git a/rest/video/v1/model_video_v1_room_room_participant_room_participant_published_track.go b/rest/video/v1/model_video_v1_room_room_participant_room_participant_published_track.go new file mode 100644 index 000000000..d597446ac --- /dev/null +++ b/rest/video/v1/model_video_v1_room_room_participant_room_participant_published_track.go @@ -0,0 +1,26 @@ +/* + * Twilio - Video + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// VideoV1RoomRoomParticipantRoomParticipantPublishedTrack struct for VideoV1RoomRoomParticipantRoomParticipantPublishedTrack +type VideoV1RoomRoomParticipantRoomParticipantPublishedTrack struct { + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Enabled bool `json:"enabled,omitempty"` + Kind string `json:"kind,omitempty"` + Name string `json:"name,omitempty"` + ParticipantSid string `json:"participant_sid,omitempty"` + RoomSid string `json:"room_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/video/v1/model_video_v1_room_room_participant_room_participant_published_track_read_response.go b/rest/video/v1/model_video_v1_room_room_participant_room_participant_published_track_read_response.go new file mode 100644 index 000000000..44f8a3a8c --- /dev/null +++ b/rest/video/v1/model_video_v1_room_room_participant_room_participant_published_track_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Video + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse struct for VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse +type VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse struct { + Meta VideoV1CompositionHookReadResponseMeta `json:"meta,omitempty"` + PublishedTracks []VideoV1RoomRoomParticipantRoomParticipantPublishedTrack `json:"published_tracks,omitempty"` +} diff --git a/rest/video/v1/model_video_v1_room_room_participant_room_participant_subscribe_rule.go b/rest/video/v1/model_video_v1_room_room_participant_room_participant_subscribe_rule.go new file mode 100644 index 000000000..af42e7b10 --- /dev/null +++ b/rest/video/v1/model_video_v1_room_room_participant_room_participant_subscribe_rule.go @@ -0,0 +1,22 @@ +/* + * Twilio - Video + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// VideoV1RoomRoomParticipantRoomParticipantSubscribeRule struct for VideoV1RoomRoomParticipantRoomParticipantSubscribeRule +type VideoV1RoomRoomParticipantRoomParticipantSubscribeRule struct { + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + ParticipantSid string `json:"participant_sid,omitempty"` + RoomSid string `json:"room_sid,omitempty"` + Rules []map[string]interface{} `json:"rules,omitempty"` +} diff --git a/rest/video/v1/model_video_v1_room_room_participant_room_participant_subscribed_track.go b/rest/video/v1/model_video_v1_room_room_participant_room_participant_subscribed_track.go new file mode 100644 index 000000000..c95dcc7ce --- /dev/null +++ b/rest/video/v1/model_video_v1_room_room_participant_room_participant_subscribed_track.go @@ -0,0 +1,27 @@ +/* + * Twilio - Video + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// VideoV1RoomRoomParticipantRoomParticipantSubscribedTrack struct for VideoV1RoomRoomParticipantRoomParticipantSubscribedTrack +type VideoV1RoomRoomParticipantRoomParticipantSubscribedTrack struct { + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Enabled bool `json:"enabled,omitempty"` + Kind string `json:"kind,omitempty"` + Name string `json:"name,omitempty"` + ParticipantSid string `json:"participant_sid,omitempty"` + PublisherSid string `json:"publisher_sid,omitempty"` + RoomSid string `json:"room_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/video/v1/model_video_v1_room_room_participant_room_participant_subscribed_track_read_response.go b/rest/video/v1/model_video_v1_room_room_participant_room_participant_subscribed_track_read_response.go new file mode 100644 index 000000000..03c0b34ec --- /dev/null +++ b/rest/video/v1/model_video_v1_room_room_participant_room_participant_subscribed_track_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Video + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse struct for VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse +type VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse struct { + Meta VideoV1CompositionHookReadResponseMeta `json:"meta,omitempty"` + SubscribedTracks []VideoV1RoomRoomParticipantRoomParticipantSubscribedTrack `json:"subscribed_tracks,omitempty"` +} diff --git a/rest/video/v1/model_video_v1_room_room_recording.go b/rest/video/v1/model_video_v1_room_room_recording.go new file mode 100644 index 000000000..9a1ad5dcf --- /dev/null +++ b/rest/video/v1/model_video_v1_room_room_recording.go @@ -0,0 +1,33 @@ +/* + * Twilio - Video + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// VideoV1RoomRoomRecording struct for VideoV1RoomRoomRecording +type VideoV1RoomRoomRecording struct { + AccountSid string `json:"account_sid,omitempty"` + Codec string `json:"codec,omitempty"` + ContainerFormat string `json:"container_format,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + Duration *int32 `json:"duration,omitempty"` + GroupingSids map[string]interface{} `json:"grouping_sids,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Offset int32 `json:"offset,omitempty"` + RoomSid string `json:"room_sid,omitempty"` + Sid string `json:"sid,omitempty"` + Size int32 `json:"size,omitempty"` + SourceSid string `json:"source_sid,omitempty"` + Status string `json:"status,omitempty"` + TrackName string `json:"track_name,omitempty"` + Type string `json:"type,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/video/v1/model_video_v1_room_room_recording_read_response.go b/rest/video/v1/model_video_v1_room_room_recording_read_response.go new file mode 100644 index 000000000..e9f13dfa6 --- /dev/null +++ b/rest/video/v1/model_video_v1_room_room_recording_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Video + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// VideoV1RoomRoomRecordingReadResponse struct for VideoV1RoomRoomRecordingReadResponse +type VideoV1RoomRoomRecordingReadResponse struct { + Meta VideoV1CompositionHookReadResponseMeta `json:"meta,omitempty"` + Recordings []VideoV1RoomRoomRecording `json:"recordings,omitempty"` +} diff --git a/rest/video/v1/model_video_v1_room_room_recording_rule.go b/rest/video/v1/model_video_v1_room_room_recording_rule.go new file mode 100644 index 000000000..b68708b52 --- /dev/null +++ b/rest/video/v1/model_video_v1_room_room_recording_rule.go @@ -0,0 +1,21 @@ +/* + * Twilio - Video + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// VideoV1RoomRoomRecordingRule struct for VideoV1RoomRoomRecordingRule +type VideoV1RoomRoomRecordingRule struct { + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + RoomSid string `json:"room_sid,omitempty"` + Rules []map[string]interface{} `json:"rules,omitempty"` +} diff --git a/rest/video/v1/response.go b/rest/video/v1/response.go new file mode 100644 index 000000000..ce49feb5a --- /dev/null +++ b/rest/video/v1/response.go @@ -0,0 +1,47 @@ +/* + * Twilio - Video + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// Response returns a new APIResponse object. +func Response(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// ResponseWithError returns a new APIResponse object with the provided error message. +func ResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/rest/voice/v1/.openapi-generator-ignore b/rest/voice/v1/.openapi-generator-ignore new file mode 100644 index 000000000..7484ee590 --- /dev/null +++ b/rest/voice/v1/.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/rest/voice/v1/.openapi-generator/VERSION b/rest/voice/v1/.openapi-generator/VERSION new file mode 100644 index 000000000..ecedc98d1 --- /dev/null +++ b/rest/voice/v1/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.3.1 \ No newline at end of file diff --git a/rest/voice/v1/README.md b/rest/voice/v1/README.md new file mode 100644 index 000000000..554ccad69 --- /dev/null +++ b/rest/voice/v1/README.md @@ -0,0 +1,123 @@ +# Go API client for openapi + +This is the public Twilio REST API. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 5.15.0 +- Package version: 1.0.0 +- Build package: com.twilio.oai.TwilioGoGenerator +For more information, please visit [https://support.twilio.com](https://support.twilio.com) + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import "./openapi" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**CreateByocTrunk**](docs/DefaultApi.md#createbyoctrunk) | **Post** /v1/ByocTrunks | +*DefaultApi* | [**CreateConnectionPolicy**](docs/DefaultApi.md#createconnectionpolicy) | **Post** /v1/ConnectionPolicies | +*DefaultApi* | [**CreateConnectionPolicyTarget**](docs/DefaultApi.md#createconnectionpolicytarget) | **Post** /v1/ConnectionPolicies/{ConnectionPolicySid}/Targets | +*DefaultApi* | [**CreateDialingPermissionsCountryBulkUpdate**](docs/DefaultApi.md#createdialingpermissionscountrybulkupdate) | **Post** /v1/DialingPermissions/BulkCountryUpdates | +*DefaultApi* | [**CreateIpRecord**](docs/DefaultApi.md#createiprecord) | **Post** /v1/IpRecords | +*DefaultApi* | [**CreateSourceIpMapping**](docs/DefaultApi.md#createsourceipmapping) | **Post** /v1/SourceIpMappings | +*DefaultApi* | [**DeleteByocTrunk**](docs/DefaultApi.md#deletebyoctrunk) | **Delete** /v1/ByocTrunks/{Sid} | +*DefaultApi* | [**DeleteConnectionPolicy**](docs/DefaultApi.md#deleteconnectionpolicy) | **Delete** /v1/ConnectionPolicies/{Sid} | +*DefaultApi* | [**DeleteConnectionPolicyTarget**](docs/DefaultApi.md#deleteconnectionpolicytarget) | **Delete** /v1/ConnectionPolicies/{ConnectionPolicySid}/Targets/{Sid} | +*DefaultApi* | [**DeleteIpRecord**](docs/DefaultApi.md#deleteiprecord) | **Delete** /v1/IpRecords/{Sid} | +*DefaultApi* | [**DeleteSourceIpMapping**](docs/DefaultApi.md#deletesourceipmapping) | **Delete** /v1/SourceIpMappings/{Sid} | +*DefaultApi* | [**FetchByocTrunk**](docs/DefaultApi.md#fetchbyoctrunk) | **Get** /v1/ByocTrunks/{Sid} | +*DefaultApi* | [**FetchConnectionPolicy**](docs/DefaultApi.md#fetchconnectionpolicy) | **Get** /v1/ConnectionPolicies/{Sid} | +*DefaultApi* | [**FetchConnectionPolicyTarget**](docs/DefaultApi.md#fetchconnectionpolicytarget) | **Get** /v1/ConnectionPolicies/{ConnectionPolicySid}/Targets/{Sid} | +*DefaultApi* | [**FetchDialingPermissionsCountry**](docs/DefaultApi.md#fetchdialingpermissionscountry) | **Get** /v1/DialingPermissions/Countries/{IsoCode} | +*DefaultApi* | [**FetchDialingPermissionsSettings**](docs/DefaultApi.md#fetchdialingpermissionssettings) | **Get** /v1/Settings | +*DefaultApi* | [**FetchIpRecord**](docs/DefaultApi.md#fetchiprecord) | **Get** /v1/IpRecords/{Sid} | +*DefaultApi* | [**FetchSourceIpMapping**](docs/DefaultApi.md#fetchsourceipmapping) | **Get** /v1/SourceIpMappings/{Sid} | +*DefaultApi* | [**ListByocTrunk**](docs/DefaultApi.md#listbyoctrunk) | **Get** /v1/ByocTrunks | +*DefaultApi* | [**ListConnectionPolicy**](docs/DefaultApi.md#listconnectionpolicy) | **Get** /v1/ConnectionPolicies | +*DefaultApi* | [**ListConnectionPolicyTarget**](docs/DefaultApi.md#listconnectionpolicytarget) | **Get** /v1/ConnectionPolicies/{ConnectionPolicySid}/Targets | +*DefaultApi* | [**ListDialingPermissionsCountry**](docs/DefaultApi.md#listdialingpermissionscountry) | **Get** /v1/DialingPermissions/Countries | +*DefaultApi* | [**ListDialingPermissionsHrsPrefixes**](docs/DefaultApi.md#listdialingpermissionshrsprefixes) | **Get** /v1/DialingPermissions/Countries/{IsoCode}/HighRiskSpecialPrefixes | +*DefaultApi* | [**ListIpRecord**](docs/DefaultApi.md#listiprecord) | **Get** /v1/IpRecords | +*DefaultApi* | [**ListSourceIpMapping**](docs/DefaultApi.md#listsourceipmapping) | **Get** /v1/SourceIpMappings | +*DefaultApi* | [**UpdateByocTrunk**](docs/DefaultApi.md#updatebyoctrunk) | **Post** /v1/ByocTrunks/{Sid} | +*DefaultApi* | [**UpdateConnectionPolicy**](docs/DefaultApi.md#updateconnectionpolicy) | **Post** /v1/ConnectionPolicies/{Sid} | +*DefaultApi* | [**UpdateConnectionPolicyTarget**](docs/DefaultApi.md#updateconnectionpolicytarget) | **Post** /v1/ConnectionPolicies/{ConnectionPolicySid}/Targets/{Sid} | +*DefaultApi* | [**UpdateDialingPermissionsSettings**](docs/DefaultApi.md#updatedialingpermissionssettings) | **Post** /v1/Settings | +*DefaultApi* | [**UpdateIpRecord**](docs/DefaultApi.md#updateiprecord) | **Post** /v1/IpRecords/{Sid} | +*DefaultApi* | [**UpdateSourceIpMapping**](docs/DefaultApi.md#updatesourceipmapping) | **Post** /v1/SourceIpMappings/{Sid} | + + +## Documentation For Models + + - [CreateByocTrunkRequest](docs/CreateByocTrunkRequest.md) + - [CreateConnectionPolicyRequest](docs/CreateConnectionPolicyRequest.md) + - [CreateConnectionPolicyTargetRequest](docs/CreateConnectionPolicyTargetRequest.md) + - [CreateDialingPermissionsCountryBulkUpdateRequest](docs/CreateDialingPermissionsCountryBulkUpdateRequest.md) + - [CreateIpRecordRequest](docs/CreateIpRecordRequest.md) + - [CreateSourceIpMappingRequest](docs/CreateSourceIpMappingRequest.md) + - [UpdateByocTrunkRequest](docs/UpdateByocTrunkRequest.md) + - [UpdateConnectionPolicyRequest](docs/UpdateConnectionPolicyRequest.md) + - [UpdateConnectionPolicyTargetRequest](docs/UpdateConnectionPolicyTargetRequest.md) + - [UpdateDialingPermissionsSettingsRequest](docs/UpdateDialingPermissionsSettingsRequest.md) + - [UpdateIpRecordRequest](docs/UpdateIpRecordRequest.md) + - [UpdateSourceIpMappingRequest](docs/UpdateSourceIpMappingRequest.md) + - [VoiceV1ByocTrunk](docs/VoiceV1ByocTrunk.md) + - [VoiceV1ByocTrunkReadResponse](docs/VoiceV1ByocTrunkReadResponse.md) + - [VoiceV1ByocTrunkReadResponseMeta](docs/VoiceV1ByocTrunkReadResponseMeta.md) + - [VoiceV1ConnectionPolicy](docs/VoiceV1ConnectionPolicy.md) + - [VoiceV1ConnectionPolicyConnectionPolicyTarget](docs/VoiceV1ConnectionPolicyConnectionPolicyTarget.md) + - [VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse](docs/VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse.md) + - [VoiceV1ConnectionPolicyReadResponse](docs/VoiceV1ConnectionPolicyReadResponse.md) + - [VoiceV1DialingPermissionsDialingPermissionsCountry](docs/VoiceV1DialingPermissionsDialingPermissionsCountry.md) + - [VoiceV1DialingPermissionsDialingPermissionsCountryBulkUpdate](docs/VoiceV1DialingPermissionsDialingPermissionsCountryBulkUpdate.md) + - [VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixes](docs/VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixes.md) + - [VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse](docs/VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse.md) + - [VoiceV1DialingPermissionsDialingPermissionsCountryInstance](docs/VoiceV1DialingPermissionsDialingPermissionsCountryInstance.md) + - [VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse](docs/VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse.md) + - [VoiceV1DialingPermissionsDialingPermissionsSettings](docs/VoiceV1DialingPermissionsDialingPermissionsSettings.md) + - [VoiceV1IpRecord](docs/VoiceV1IpRecord.md) + - [VoiceV1IpRecordReadResponse](docs/VoiceV1IpRecordReadResponse.md) + - [VoiceV1SourceIpMapping](docs/VoiceV1SourceIpMapping.md) + - [VoiceV1SourceIpMappingReadResponse](docs/VoiceV1SourceIpMappingReadResponse.md) + + +## Documentation For Authorization + + + +## accountSid_authToken + +- **Type**: HTTP basic authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ + UserName: "username", + Password: "password", +}) +r, err := client.Service.Operation(auth, args) +``` + + +## Author + +support@twilio.com + diff --git a/rest/voice/v1/api_default.go b/rest/voice/v1/api_default.go new file mode 100644 index 000000000..81486cb5b --- /dev/null +++ b/rest/voice/v1/api_default.go @@ -0,0 +1,1235 @@ +/* + * Twilio - Voice + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "" +) + +type DefaultApiService struct { + baseURL string + client *twilio.Client +} + +func NewDefaultApiService(client *twilio.Client) *DefaultApiService { + return &DefaultApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} +// CreateByocTrunkParams Optional parameters for the method 'CreateByocTrunk' +type CreateByocTrunkParams struct { + CnamLookupEnabled *bool `json:"CnamLookupEnabled,omitempty"` + ConnectionPolicySid *string `json:"ConnectionPolicySid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + FromDomainSid *string `json:"FromDomainSid,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + StatusCallbackUrl *string `json:"StatusCallbackUrl,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` +} + +/* +CreateByocTrunk Method for CreateByocTrunk + * @param optional nil or *CreateByocTrunkOpts - Optional Parameters: + * @param "CnamLookupEnabled" (bool) - Whether Caller ID Name (CNAM) lookup is enabled for the trunk. If enabled, all inbound calls to the BYOC Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information. + * @param "ConnectionPolicySid" (string) - The SID of the Connection Policy that Twilio will use when routing traffic to your communications infrastructure. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. + * @param "FromDomainSid" (string) - The SID of the SIP Domain that should be used in the `From` header of originating calls sent to your SIP infrastructure. If your SIP infrastructure allows users to \\\"call back\\\" an incoming call, configure this with a [SIP Domain](https://www.twilio.com/docs/voice/api/sending-sip) to ensure proper routing. If not configured, the from domain will default to \\\"sip.twilio.com\\\". + * @param "StatusCallbackMethod" (string) - The HTTP method we should use to call `status_callback_url`. Can be: `GET` or `POST`. + * @param "StatusCallbackUrl" (string) - The URL that we should call to pass status parameters (such as call ended) to your application. + * @param "VoiceFallbackMethod" (string) - The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. + * @param "VoiceFallbackUrl" (string) - The URL that we should call when an error occurs while retrieving or executing the TwiML from `voice_url`. + * @param "VoiceMethod" (string) - The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`. + * @param "VoiceUrl" (string) - The URL we should call when the BYOC Trunk receives a call. +@return VoiceV1ByocTrunk +*/ +func (c *DefaultApiService) CreateByocTrunk(params *CreateByocTrunkParams) (*VoiceV1ByocTrunk, error) { + path := "/v1/ByocTrunks" + + data := url.Values{} + headers := 0 + + if params != nil && params.CnamLookupEnabled != nil { + data.Set("CnamLookupEnabled", string(*params.CnamLookupEnabled)) + } + if params != nil && params.ConnectionPolicySid != nil { + data.Set("ConnectionPolicySid", *params.ConnectionPolicySid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.FromDomainSid != nil { + data.Set("FromDomainSid", *params.FromDomainSid) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.StatusCallbackUrl != nil { + data.Set("StatusCallbackUrl", *params.StatusCallbackUrl) + } + if params != nil && params.VoiceFallbackMethod != nil { + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + } + if params != nil && params.VoiceFallbackUrl != nil { + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + } + if params != nil && params.VoiceMethod != nil { + data.Set("VoiceMethod", *params.VoiceMethod) + } + if params != nil && params.VoiceUrl != nil { + data.Set("VoiceUrl", *params.VoiceUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VoiceV1ByocTrunk{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateConnectionPolicyParams Optional parameters for the method 'CreateConnectionPolicy' +type CreateConnectionPolicyParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +CreateConnectionPolicy Method for CreateConnectionPolicy + * @param optional nil or *CreateConnectionPolicyOpts - Optional Parameters: + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. +@return VoiceV1ConnectionPolicy +*/ +func (c *DefaultApiService) CreateConnectionPolicy(params *CreateConnectionPolicyParams) (*VoiceV1ConnectionPolicy, error) { + path := "/v1/ConnectionPolicies" + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VoiceV1ConnectionPolicy{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateConnectionPolicyTargetParams Optional parameters for the method 'CreateConnectionPolicyTarget' +type CreateConnectionPolicyTargetParams struct { + Enabled *bool `json:"Enabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Priority *int32 `json:"Priority,omitempty"` + Target *string `json:"Target,omitempty"` + Weight *int32 `json:"Weight,omitempty"` +} + +/* +CreateConnectionPolicyTarget Method for CreateConnectionPolicyTarget + * @param connectionPolicySid The SID of the Connection Policy that owns the Target. + * @param optional nil or *CreateConnectionPolicyTargetOpts - Optional Parameters: + * @param "Enabled" (bool) - Whether the Target is enabled. The default is `true`. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. + * @param "Priority" (int32) - The relative importance of the target. Can be an integer from 0 to 65535, inclusive, and the default is 10. The lowest number represents the most important target. + * @param "Target" (string) - The SIP address you want Twilio to route your calls to. This must be a `sip:` schema. `sips` is NOT supported. + * @param "Weight" (int32) - The value that determines the relative share of the load the Target should receive compared to other Targets with the same priority. Can be an integer from 1 to 65535, inclusive, and the default is 10. Targets with higher values receive more load than those with lower ones with the same priority. +@return VoiceV1ConnectionPolicyConnectionPolicyTarget +*/ +func (c *DefaultApiService) CreateConnectionPolicyTarget(connectionPolicySid string, params *CreateConnectionPolicyTargetParams) (*VoiceV1ConnectionPolicyConnectionPolicyTarget, error) { + path := "/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets" + path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", connectionPolicySid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Enabled != nil { + data.Set("Enabled", string(*params.Enabled)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Priority != nil { + data.Set("Priority", string(*params.Priority)) + } + if params != nil && params.Target != nil { + data.Set("Target", *params.Target) + } + if params != nil && params.Weight != nil { + data.Set("Weight", string(*params.Weight)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VoiceV1ConnectionPolicyConnectionPolicyTarget{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateDialingPermissionsCountryBulkUpdateParams Optional parameters for the method 'CreateDialingPermissionsCountryBulkUpdate' +type CreateDialingPermissionsCountryBulkUpdateParams struct { + UpdateRequest *string `json:"UpdateRequest,omitempty"` +} + +/* +CreateDialingPermissionsCountryBulkUpdate Method for CreateDialingPermissionsCountryBulkUpdate +Create a bulk update request to change voice dialing country permissions of one or more countries identified by the corresponding [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * @param optional nil or *CreateDialingPermissionsCountryBulkUpdateOpts - Optional Parameters: + * @param "UpdateRequest" (string) - URL encoded JSON array of update objects. example : `[ { \\\"iso_code\\\": \\\"GB\\\", \\\"low_risk_numbers_enabled\\\": \\\"true\\\", \\\"high_risk_special_numbers_enabled\\\":\\\"true\\\", \\\"high_risk_tollfraud_numbers_enabled\\\": \\\"false\\\" } ]` +@return VoiceV1DialingPermissionsDialingPermissionsCountryBulkUpdate +*/ +func (c *DefaultApiService) CreateDialingPermissionsCountryBulkUpdate(params *CreateDialingPermissionsCountryBulkUpdateParams) (*VoiceV1DialingPermissionsDialingPermissionsCountryBulkUpdate, error) { + path := "/v1/DialingPermissions/BulkCountryUpdates" + + data := url.Values{} + headers := 0 + + if params != nil && params.UpdateRequest != nil { + data.Set("UpdateRequest", *params.UpdateRequest) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VoiceV1DialingPermissionsDialingPermissionsCountryBulkUpdate{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateIpRecordParams Optional parameters for the method 'CreateIpRecord' +type CreateIpRecordParams struct { + CidrPrefixLength *int32 `json:"CidrPrefixLength,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IpAddress *string `json:"IpAddress,omitempty"` +} + +/* +CreateIpRecord Method for CreateIpRecord + * @param optional nil or *CreateIpRecordOpts - Optional Parameters: + * @param "CidrPrefixLength" (int32) - An integer representing the length of the [CIDR](https://tools.ietf.org/html/rfc4632) prefix to use with this IP address. By default the entire IP address is used, which for IPv4 is value 32. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. + * @param "IpAddress" (string) - An IP address in dotted decimal notation, IPv4 only. +@return VoiceV1IpRecord +*/ +func (c *DefaultApiService) CreateIpRecord(params *CreateIpRecordParams) (*VoiceV1IpRecord, error) { + path := "/v1/IpRecords" + + data := url.Values{} + headers := 0 + + if params != nil && params.CidrPrefixLength != nil { + data.Set("CidrPrefixLength", string(*params.CidrPrefixLength)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.IpAddress != nil { + data.Set("IpAddress", *params.IpAddress) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VoiceV1IpRecord{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateSourceIpMappingParams Optional parameters for the method 'CreateSourceIpMapping' +type CreateSourceIpMappingParams struct { + IpRecordSid *string `json:"IpRecordSid,omitempty"` + SipDomainSid *string `json:"SipDomainSid,omitempty"` +} + +/* +CreateSourceIpMapping Method for CreateSourceIpMapping + * @param optional nil or *CreateSourceIpMappingOpts - Optional Parameters: + * @param "IpRecordSid" (string) - The Twilio-provided string that uniquely identifies the IP Record resource to map from. + * @param "SipDomainSid" (string) - The SID of the SIP Domain that the IP Record should be mapped to. +@return VoiceV1SourceIpMapping +*/ +func (c *DefaultApiService) CreateSourceIpMapping(params *CreateSourceIpMappingParams) (*VoiceV1SourceIpMapping, error) { + path := "/v1/SourceIpMappings" + + data := url.Values{} + headers := 0 + + if params != nil && params.IpRecordSid != nil { + data.Set("IpRecordSid", *params.IpRecordSid) + } + if params != nil && params.SipDomainSid != nil { + data.Set("SipDomainSid", *params.SipDomainSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VoiceV1SourceIpMapping{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +DeleteByocTrunk Method for DeleteByocTrunk + * @param sid The Twilio-provided string that uniquely identifies the BYOC Trunk resource to delete. +*/ +func (c *DefaultApiService) DeleteByocTrunk(sid string) (error) { + path := "/v1/ByocTrunks/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteConnectionPolicy Method for DeleteConnectionPolicy + * @param sid The unique string that we created to identify the Connection Policy resource to delete. +*/ +func (c *DefaultApiService) DeleteConnectionPolicy(sid string) (error) { + path := "/v1/ConnectionPolicies/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteConnectionPolicyTarget Method for DeleteConnectionPolicyTarget + * @param connectionPolicySid The SID of the Connection Policy that owns the Target. + * @param sid The unique string that we created to identify the Target resource to delete. +*/ +func (c *DefaultApiService) DeleteConnectionPolicyTarget(connectionPolicySid string, sid string) (error) { + path := "/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets/{Sid}" + path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", connectionPolicySid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteIpRecord Method for DeleteIpRecord + * @param sid The Twilio-provided string that uniquely identifies the IP Record resource to delete. +*/ +func (c *DefaultApiService) DeleteIpRecord(sid string) (error) { + path := "/v1/IpRecords/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteSourceIpMapping Method for DeleteSourceIpMapping + * @param sid The Twilio-provided string that uniquely identifies the IP Record resource to delete. +*/ +func (c *DefaultApiService) DeleteSourceIpMapping(sid string) (error) { + path := "/v1/SourceIpMappings/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +FetchByocTrunk Method for FetchByocTrunk + * @param sid The Twilio-provided string that uniquely identifies the BYOC Trunk resource to fetch. +@return VoiceV1ByocTrunk +*/ +func (c *DefaultApiService) FetchByocTrunk(sid string) (*VoiceV1ByocTrunk, error) { + path := "/v1/ByocTrunks/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VoiceV1ByocTrunk{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchConnectionPolicy Method for FetchConnectionPolicy + * @param sid The unique string that we created to identify the Connection Policy resource to fetch. +@return VoiceV1ConnectionPolicy +*/ +func (c *DefaultApiService) FetchConnectionPolicy(sid string) (*VoiceV1ConnectionPolicy, error) { + path := "/v1/ConnectionPolicies/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VoiceV1ConnectionPolicy{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchConnectionPolicyTarget Method for FetchConnectionPolicyTarget + * @param connectionPolicySid The SID of the Connection Policy that owns the Target. + * @param sid The unique string that we created to identify the Target resource to fetch. +@return VoiceV1ConnectionPolicyConnectionPolicyTarget +*/ +func (c *DefaultApiService) FetchConnectionPolicyTarget(connectionPolicySid string, sid string) (*VoiceV1ConnectionPolicyConnectionPolicyTarget, error) { + path := "/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets/{Sid}" + path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", connectionPolicySid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VoiceV1ConnectionPolicyConnectionPolicyTarget{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchDialingPermissionsCountry Method for FetchDialingPermissionsCountry +Retrieve voice dialing country permissions identified by the given ISO country code + * @param isoCode The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the DialingPermissions Country resource to fetch +@return VoiceV1DialingPermissionsDialingPermissionsCountryInstance +*/ +func (c *DefaultApiService) FetchDialingPermissionsCountry(isoCode string) (*VoiceV1DialingPermissionsDialingPermissionsCountryInstance, error) { + path := "/v1/DialingPermissions/Countries/{IsoCode}" + path = strings.Replace(path, "{"+"IsoCode"+"}", isoCode, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VoiceV1DialingPermissionsDialingPermissionsCountryInstance{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchDialingPermissionsSettings Method for FetchDialingPermissionsSettings +Retrieve voice dialing permissions inheritance for the sub-account +@return VoiceV1DialingPermissionsDialingPermissionsSettings +*/ +func (c *DefaultApiService) FetchDialingPermissionsSettings() (*VoiceV1DialingPermissionsDialingPermissionsSettings, error) { + path := "/v1/Settings" + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VoiceV1DialingPermissionsDialingPermissionsSettings{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchIpRecord Method for FetchIpRecord + * @param sid The Twilio-provided string that uniquely identifies the IP Record resource to fetch. +@return VoiceV1IpRecord +*/ +func (c *DefaultApiService) FetchIpRecord(sid string) (*VoiceV1IpRecord, error) { + path := "/v1/IpRecords/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VoiceV1IpRecord{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchSourceIpMapping Method for FetchSourceIpMapping + * @param sid The Twilio-provided string that uniquely identifies the IP Record resource to fetch. +@return VoiceV1SourceIpMapping +*/ +func (c *DefaultApiService) FetchSourceIpMapping(sid string) (*VoiceV1SourceIpMapping, error) { + path := "/v1/SourceIpMappings/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VoiceV1SourceIpMapping{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListByocTrunkParams Optional parameters for the method 'ListByocTrunk' +type ListByocTrunkParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListByocTrunk Method for ListByocTrunk + * @param optional nil or *ListByocTrunkOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return VoiceV1ByocTrunkReadResponse +*/ +func (c *DefaultApiService) ListByocTrunk(params *ListByocTrunkParams) (*VoiceV1ByocTrunkReadResponse, error) { + path := "/v1/ByocTrunks" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VoiceV1ByocTrunkReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListConnectionPolicyParams Optional parameters for the method 'ListConnectionPolicy' +type ListConnectionPolicyParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListConnectionPolicy Method for ListConnectionPolicy + * @param optional nil or *ListConnectionPolicyOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return VoiceV1ConnectionPolicyReadResponse +*/ +func (c *DefaultApiService) ListConnectionPolicy(params *ListConnectionPolicyParams) (*VoiceV1ConnectionPolicyReadResponse, error) { + path := "/v1/ConnectionPolicies" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VoiceV1ConnectionPolicyReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListConnectionPolicyTargetParams Optional parameters for the method 'ListConnectionPolicyTarget' +type ListConnectionPolicyTargetParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListConnectionPolicyTarget Method for ListConnectionPolicyTarget + * @param connectionPolicySid The SID of the Connection Policy from which to read the Targets. + * @param optional nil or *ListConnectionPolicyTargetOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse +*/ +func (c *DefaultApiService) ListConnectionPolicyTarget(connectionPolicySid string, params *ListConnectionPolicyTargetParams) (*VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse, error) { + path := "/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets" + path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", connectionPolicySid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListDialingPermissionsCountryParams Optional parameters for the method 'ListDialingPermissionsCountry' +type ListDialingPermissionsCountryParams struct { + IsoCode *string `json:"IsoCode,omitempty"` + Continent *string `json:"Continent,omitempty"` + CountryCode *string `json:"CountryCode,omitempty"` + LowRiskNumbersEnabled *bool `json:"LowRiskNumbersEnabled,omitempty"` + HighRiskSpecialNumbersEnabled *bool `json:"HighRiskSpecialNumbersEnabled,omitempty"` + HighRiskTollfraudNumbersEnabled *bool `json:"HighRiskTollfraudNumbersEnabled,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListDialingPermissionsCountry Method for ListDialingPermissionsCountry +Retrieve all voice dialing country permissions for this account + * @param optional nil or *ListDialingPermissionsCountryOpts - Optional Parameters: + * @param "IsoCode" (string) - Filter to retrieve the country permissions by specifying the [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * @param "Continent" (string) - Filter to retrieve the country permissions by specifying the continent + * @param "CountryCode" (string) - Filter the results by specified [country codes](https://www.itu.int/itudoc/itu-t/ob-lists/icc/e164_763.html) + * @param "LowRiskNumbersEnabled" (bool) - Filter to retrieve the country permissions with dialing to low-risk numbers enabled. Can be: `true` or `false`. + * @param "HighRiskSpecialNumbersEnabled" (bool) - Filter to retrieve the country permissions with dialing to high-risk special service numbers enabled. Can be: `true` or `false` + * @param "HighRiskTollfraudNumbersEnabled" (bool) - Filter to retrieve the country permissions with dialing to high-risk [toll fraud](https://www.twilio.com/learn/voice-and-video/toll-fraud) numbers enabled. Can be: `true` or `false`. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse +*/ +func (c *DefaultApiService) ListDialingPermissionsCountry(params *ListDialingPermissionsCountryParams) (*VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse, error) { + path := "/v1/DialingPermissions/Countries" + + data := url.Values{} + headers := 0 + + if params != nil && params.IsoCode != nil { + data.Set("IsoCode", *params.IsoCode) + } + if params != nil && params.Continent != nil { + data.Set("Continent", *params.Continent) + } + if params != nil && params.CountryCode != nil { + data.Set("CountryCode", *params.CountryCode) + } + if params != nil && params.LowRiskNumbersEnabled != nil { + data.Set("LowRiskNumbersEnabled", string(*params.LowRiskNumbersEnabled)) + } + if params != nil && params.HighRiskSpecialNumbersEnabled != nil { + data.Set("HighRiskSpecialNumbersEnabled", string(*params.HighRiskSpecialNumbersEnabled)) + } + if params != nil && params.HighRiskTollfraudNumbersEnabled != nil { + data.Set("HighRiskTollfraudNumbersEnabled", string(*params.HighRiskTollfraudNumbersEnabled)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListDialingPermissionsHrsPrefixesParams Optional parameters for the method 'ListDialingPermissionsHrsPrefixes' +type ListDialingPermissionsHrsPrefixesParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListDialingPermissionsHrsPrefixes Method for ListDialingPermissionsHrsPrefixes +Fetch the high-risk special services prefixes from the country resource corresponding to the [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + * @param isoCode The [ISO 3166-1 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) to identify the country permissions from which high-risk special service number prefixes are fetched + * @param optional nil or *ListDialingPermissionsHrsPrefixesOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse +*/ +func (c *DefaultApiService) ListDialingPermissionsHrsPrefixes(isoCode string, params *ListDialingPermissionsHrsPrefixesParams) (*VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse, error) { + path := "/v1/DialingPermissions/Countries/{IsoCode}/HighRiskSpecialPrefixes" + path = strings.Replace(path, "{"+"IsoCode"+"}", isoCode, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListIpRecordParams Optional parameters for the method 'ListIpRecord' +type ListIpRecordParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListIpRecord Method for ListIpRecord + * @param optional nil or *ListIpRecordOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return VoiceV1IpRecordReadResponse +*/ +func (c *DefaultApiService) ListIpRecord(params *ListIpRecordParams) (*VoiceV1IpRecordReadResponse, error) { + path := "/v1/IpRecords" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VoiceV1IpRecordReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListSourceIpMappingParams Optional parameters for the method 'ListSourceIpMapping' +type ListSourceIpMappingParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListSourceIpMapping Method for ListSourceIpMapping + * @param optional nil or *ListSourceIpMappingOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return VoiceV1SourceIpMappingReadResponse +*/ +func (c *DefaultApiService) ListSourceIpMapping(params *ListSourceIpMappingParams) (*VoiceV1SourceIpMappingReadResponse, error) { + path := "/v1/SourceIpMappings" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VoiceV1SourceIpMappingReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateByocTrunkParams Optional parameters for the method 'UpdateByocTrunk' +type UpdateByocTrunkParams struct { + CnamLookupEnabled *bool `json:"CnamLookupEnabled,omitempty"` + ConnectionPolicySid *string `json:"ConnectionPolicySid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + FromDomainSid *string `json:"FromDomainSid,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + StatusCallbackUrl *string `json:"StatusCallbackUrl,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` +} + +/* +UpdateByocTrunk Method for UpdateByocTrunk + * @param sid The Twilio-provided string that uniquely identifies the BYOC Trunk resource to update. + * @param optional nil or *UpdateByocTrunkOpts - Optional Parameters: + * @param "CnamLookupEnabled" (bool) - Whether Caller ID Name (CNAM) lookup is enabled for the trunk. If enabled, all inbound calls to the BYOC Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information. + * @param "ConnectionPolicySid" (string) - The SID of the Connection Policy that Twilio will use when routing traffic to your communications infrastructure. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. + * @param "FromDomainSid" (string) - The SID of the SIP Domain that should be used in the `From` header of originating calls sent to your SIP infrastructure. If your SIP infrastructure allows users to \\\"call back\\\" an incoming call, configure this with a [SIP Domain](https://www.twilio.com/docs/voice/api/sending-sip) to ensure proper routing. If not configured, the from domain will default to \\\"sip.twilio.com\\\". + * @param "StatusCallbackMethod" (string) - The HTTP method we should use to call `status_callback_url`. Can be: `GET` or `POST`. + * @param "StatusCallbackUrl" (string) - The URL that we should call to pass status parameters (such as call ended) to your application. + * @param "VoiceFallbackMethod" (string) - The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. + * @param "VoiceFallbackUrl" (string) - The URL that we should call when an error occurs while retrieving or executing the TwiML requested by `voice_url`. + * @param "VoiceMethod" (string) - The HTTP method we should use to call `voice_url` + * @param "VoiceUrl" (string) - The URL we should call when the BYOC Trunk receives a call. +@return VoiceV1ByocTrunk +*/ +func (c *DefaultApiService) UpdateByocTrunk(sid string, params *UpdateByocTrunkParams) (*VoiceV1ByocTrunk, error) { + path := "/v1/ByocTrunks/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CnamLookupEnabled != nil { + data.Set("CnamLookupEnabled", string(*params.CnamLookupEnabled)) + } + if params != nil && params.ConnectionPolicySid != nil { + data.Set("ConnectionPolicySid", *params.ConnectionPolicySid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.FromDomainSid != nil { + data.Set("FromDomainSid", *params.FromDomainSid) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.StatusCallbackUrl != nil { + data.Set("StatusCallbackUrl", *params.StatusCallbackUrl) + } + if params != nil && params.VoiceFallbackMethod != nil { + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + } + if params != nil && params.VoiceFallbackUrl != nil { + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + } + if params != nil && params.VoiceMethod != nil { + data.Set("VoiceMethod", *params.VoiceMethod) + } + if params != nil && params.VoiceUrl != nil { + data.Set("VoiceUrl", *params.VoiceUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VoiceV1ByocTrunk{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateConnectionPolicyParams Optional parameters for the method 'UpdateConnectionPolicy' +type UpdateConnectionPolicyParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +UpdateConnectionPolicy Method for UpdateConnectionPolicy + * @param sid The unique string that we created to identify the Connection Policy resource to update. + * @param optional nil or *UpdateConnectionPolicyOpts - Optional Parameters: + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. +@return VoiceV1ConnectionPolicy +*/ +func (c *DefaultApiService) UpdateConnectionPolicy(sid string, params *UpdateConnectionPolicyParams) (*VoiceV1ConnectionPolicy, error) { + path := "/v1/ConnectionPolicies/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VoiceV1ConnectionPolicy{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateConnectionPolicyTargetParams Optional parameters for the method 'UpdateConnectionPolicyTarget' +type UpdateConnectionPolicyTargetParams struct { + Enabled *bool `json:"Enabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Priority *int32 `json:"Priority,omitempty"` + Target *string `json:"Target,omitempty"` + Weight *int32 `json:"Weight,omitempty"` +} + +/* +UpdateConnectionPolicyTarget Method for UpdateConnectionPolicyTarget + * @param connectionPolicySid The SID of the Connection Policy that owns the Target. + * @param sid The unique string that we created to identify the Target resource to update. + * @param optional nil or *UpdateConnectionPolicyTargetOpts - Optional Parameters: + * @param "Enabled" (bool) - Whether the Target is enabled. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. + * @param "Priority" (int32) - The relative importance of the target. Can be an integer from 0 to 65535, inclusive. The lowest number represents the most important target. + * @param "Target" (string) - The SIP address you want Twilio to route your calls to. This must be a `sip:` schema. `sips` is NOT supported. + * @param "Weight" (int32) - The value that determines the relative share of the load the Target should receive compared to other Targets with the same priority. Can be an integer from 1 to 65535, inclusive. Targets with higher values receive more load than those with lower ones with the same priority. +@return VoiceV1ConnectionPolicyConnectionPolicyTarget +*/ +func (c *DefaultApiService) UpdateConnectionPolicyTarget(connectionPolicySid string, sid string, params *UpdateConnectionPolicyTargetParams) (*VoiceV1ConnectionPolicyConnectionPolicyTarget, error) { + path := "/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets/{Sid}" + path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", connectionPolicySid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Enabled != nil { + data.Set("Enabled", string(*params.Enabled)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Priority != nil { + data.Set("Priority", string(*params.Priority)) + } + if params != nil && params.Target != nil { + data.Set("Target", *params.Target) + } + if params != nil && params.Weight != nil { + data.Set("Weight", string(*params.Weight)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VoiceV1ConnectionPolicyConnectionPolicyTarget{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateDialingPermissionsSettingsParams Optional parameters for the method 'UpdateDialingPermissionsSettings' +type UpdateDialingPermissionsSettingsParams struct { + DialingPermissionsInheritance *bool `json:"DialingPermissionsInheritance,omitempty"` +} + +/* +UpdateDialingPermissionsSettings Method for UpdateDialingPermissionsSettings +Update voice dialing permissions inheritance for the sub-account + * @param optional nil or *UpdateDialingPermissionsSettingsOpts - Optional Parameters: + * @param "DialingPermissionsInheritance" (bool) - `true` for the sub-account to inherit voice dialing permissions from the Master Project; otherwise `false`. +@return VoiceV1DialingPermissionsDialingPermissionsSettings +*/ +func (c *DefaultApiService) UpdateDialingPermissionsSettings(params *UpdateDialingPermissionsSettingsParams) (*VoiceV1DialingPermissionsDialingPermissionsSettings, error) { + path := "/v1/Settings" + + data := url.Values{} + headers := 0 + + if params != nil && params.DialingPermissionsInheritance != nil { + data.Set("DialingPermissionsInheritance", string(*params.DialingPermissionsInheritance)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VoiceV1DialingPermissionsDialingPermissionsSettings{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateIpRecordParams Optional parameters for the method 'UpdateIpRecord' +type UpdateIpRecordParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` +} + +/* +UpdateIpRecord Method for UpdateIpRecord + * @param sid The Twilio-provided string that uniquely identifies the IP Record resource to update. + * @param optional nil or *UpdateIpRecordOpts - Optional Parameters: + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. +@return VoiceV1IpRecord +*/ +func (c *DefaultApiService) UpdateIpRecord(sid string, params *UpdateIpRecordParams) (*VoiceV1IpRecord, error) { + path := "/v1/IpRecords/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VoiceV1IpRecord{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateSourceIpMappingParams Optional parameters for the method 'UpdateSourceIpMapping' +type UpdateSourceIpMappingParams struct { + SipDomainSid *string `json:"SipDomainSid,omitempty"` +} + +/* +UpdateSourceIpMapping Method for UpdateSourceIpMapping + * @param sid The Twilio-provided string that uniquely identifies the IP Record resource to update. + * @param optional nil or *UpdateSourceIpMappingOpts - Optional Parameters: + * @param "SipDomainSid" (string) - The SID of the SIP Domain that the IP Record should be mapped to. +@return VoiceV1SourceIpMapping +*/ +func (c *DefaultApiService) UpdateSourceIpMapping(sid string, params *UpdateSourceIpMappingParams) (*VoiceV1SourceIpMapping, error) { + path := "/v1/SourceIpMappings/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.SipDomainSid != nil { + data.Set("SipDomainSid", *params.SipDomainSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VoiceV1SourceIpMapping{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/voice/v1/docs/CreateByocTrunkRequest.md b/rest/voice/v1/docs/CreateByocTrunkRequest.md new file mode 100644 index 000000000..62b7cd92b --- /dev/null +++ b/rest/voice/v1/docs/CreateByocTrunkRequest.md @@ -0,0 +1,20 @@ +# CreateByocTrunkRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CnamLookupEnabled** | **bool** | Whether Caller ID Name (CNAM) lookup is enabled for the trunk. If enabled, all inbound calls to the BYOC Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information. | [optional] +**ConnectionPolicySid** | **string** | The SID of the Connection Policy that Twilio will use when routing traffic to your communications infrastructure. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | [optional] +**FromDomainSid** | **string** | The SID of the SIP Domain that should be used in the `From` header of originating calls sent to your SIP infrastructure. If your SIP infrastructure allows users to \"call back\" an incoming call, configure this with a [SIP Domain](https://www.twilio.com/docs/voice/api/sending-sip) to ensure proper routing. If not configured, the from domain will default to \"sip.twilio.com\". | [optional] +**StatusCallbackMethod** | **string** | The HTTP method we should use to call `status_callback_url`. Can be: `GET` or `POST`. | [optional] +**StatusCallbackUrl** | **string** | The URL that we should call to pass status parameters (such as call ended) to your application. | [optional] +**VoiceFallbackMethod** | **string** | The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. | [optional] +**VoiceFallbackUrl** | **string** | The URL that we should call when an error occurs while retrieving or executing the TwiML from `voice_url`. | [optional] +**VoiceMethod** | **string** | The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`. | [optional] +**VoiceUrl** | **string** | The URL we should call when the BYOC Trunk receives a 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/rest/voice/v1/docs/CreateConnectionPolicyRequest.md b/rest/voice/v1/docs/CreateConnectionPolicyRequest.md new file mode 100644 index 000000000..f178a0c0e --- /dev/null +++ b/rest/voice/v1/docs/CreateConnectionPolicyRequest.md @@ -0,0 +1,11 @@ +# CreateConnectionPolicyRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | [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/rest/voice/v1/docs/CreateConnectionPolicyTargetRequest.md b/rest/voice/v1/docs/CreateConnectionPolicyTargetRequest.md new file mode 100644 index 000000000..fab302ce9 --- /dev/null +++ b/rest/voice/v1/docs/CreateConnectionPolicyTargetRequest.md @@ -0,0 +1,15 @@ +# CreateConnectionPolicyTargetRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Enabled** | **bool** | Whether the Target is enabled. The default is `true`. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | [optional] +**Priority** | **int32** | The relative importance of the target. Can be an integer from 0 to 65535, inclusive, and the default is 10. The lowest number represents the most important target. | [optional] +**Target** | **string** | The SIP address you want Twilio to route your calls to. This must be a `sip:` schema. `sips` is NOT supported. | +**Weight** | **int32** | The value that determines the relative share of the load the Target should receive compared to other Targets with the same priority. Can be an integer from 1 to 65535, inclusive, and the default is 10. Targets with higher values receive more load than those with lower ones with the same priority. | [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/rest/voice/v1/docs/CreateDialingPermissionsCountryBulkUpdateRequest.md b/rest/voice/v1/docs/CreateDialingPermissionsCountryBulkUpdateRequest.md new file mode 100644 index 000000000..dd9269361 --- /dev/null +++ b/rest/voice/v1/docs/CreateDialingPermissionsCountryBulkUpdateRequest.md @@ -0,0 +1,11 @@ +# CreateDialingPermissionsCountryBulkUpdateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UpdateRequest** | **string** | URL encoded JSON array of update objects. example : `[ { \"iso_code\": \"GB\", \"low_risk_numbers_enabled\": \"true\", \"high_risk_special_numbers_enabled\":\"true\", \"high_risk_tollfraud_numbers_enabled\": \"false\" } ]` | + +[[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/rest/voice/v1/docs/CreateIpRecordRequest.md b/rest/voice/v1/docs/CreateIpRecordRequest.md new file mode 100644 index 000000000..b0d97acad --- /dev/null +++ b/rest/voice/v1/docs/CreateIpRecordRequest.md @@ -0,0 +1,13 @@ +# CreateIpRecordRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CidrPrefixLength** | **int32** | An integer representing the length of the [CIDR](https://tools.ietf.org/html/rfc4632) prefix to use with this IP address. By default the entire IP address is used, which for IPv4 is value 32. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | [optional] +**IpAddress** | **string** | An IP address in dotted decimal notation, IPv4 only. | + +[[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/rest/voice/v1/docs/CreateSourceIpMappingRequest.md b/rest/voice/v1/docs/CreateSourceIpMappingRequest.md new file mode 100644 index 000000000..b87d4a86c --- /dev/null +++ b/rest/voice/v1/docs/CreateSourceIpMappingRequest.md @@ -0,0 +1,12 @@ +# CreateSourceIpMappingRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IpRecordSid** | **string** | The Twilio-provided string that uniquely identifies the IP Record resource to map from. | +**SipDomainSid** | **string** | The SID of the SIP Domain that the IP Record should be mapped to. | + +[[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/rest/voice/v1/docs/DefaultApi.md b/rest/voice/v1/docs/DefaultApi.md new file mode 100644 index 000000000..143dcba33 --- /dev/null +++ b/rest/voice/v1/docs/DefaultApi.md @@ -0,0 +1,1265 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateByocTrunk**](DefaultApi.md#CreateByocTrunk) | **Post** /v1/ByocTrunks | +[**CreateConnectionPolicy**](DefaultApi.md#CreateConnectionPolicy) | **Post** /v1/ConnectionPolicies | +[**CreateConnectionPolicyTarget**](DefaultApi.md#CreateConnectionPolicyTarget) | **Post** /v1/ConnectionPolicies/{ConnectionPolicySid}/Targets | +[**CreateDialingPermissionsCountryBulkUpdate**](DefaultApi.md#CreateDialingPermissionsCountryBulkUpdate) | **Post** /v1/DialingPermissions/BulkCountryUpdates | +[**CreateIpRecord**](DefaultApi.md#CreateIpRecord) | **Post** /v1/IpRecords | +[**CreateSourceIpMapping**](DefaultApi.md#CreateSourceIpMapping) | **Post** /v1/SourceIpMappings | +[**DeleteByocTrunk**](DefaultApi.md#DeleteByocTrunk) | **Delete** /v1/ByocTrunks/{Sid} | +[**DeleteConnectionPolicy**](DefaultApi.md#DeleteConnectionPolicy) | **Delete** /v1/ConnectionPolicies/{Sid} | +[**DeleteConnectionPolicyTarget**](DefaultApi.md#DeleteConnectionPolicyTarget) | **Delete** /v1/ConnectionPolicies/{ConnectionPolicySid}/Targets/{Sid} | +[**DeleteIpRecord**](DefaultApi.md#DeleteIpRecord) | **Delete** /v1/IpRecords/{Sid} | +[**DeleteSourceIpMapping**](DefaultApi.md#DeleteSourceIpMapping) | **Delete** /v1/SourceIpMappings/{Sid} | +[**FetchByocTrunk**](DefaultApi.md#FetchByocTrunk) | **Get** /v1/ByocTrunks/{Sid} | +[**FetchConnectionPolicy**](DefaultApi.md#FetchConnectionPolicy) | **Get** /v1/ConnectionPolicies/{Sid} | +[**FetchConnectionPolicyTarget**](DefaultApi.md#FetchConnectionPolicyTarget) | **Get** /v1/ConnectionPolicies/{ConnectionPolicySid}/Targets/{Sid} | +[**FetchDialingPermissionsCountry**](DefaultApi.md#FetchDialingPermissionsCountry) | **Get** /v1/DialingPermissions/Countries/{IsoCode} | +[**FetchDialingPermissionsSettings**](DefaultApi.md#FetchDialingPermissionsSettings) | **Get** /v1/Settings | +[**FetchIpRecord**](DefaultApi.md#FetchIpRecord) | **Get** /v1/IpRecords/{Sid} | +[**FetchSourceIpMapping**](DefaultApi.md#FetchSourceIpMapping) | **Get** /v1/SourceIpMappings/{Sid} | +[**ListByocTrunk**](DefaultApi.md#ListByocTrunk) | **Get** /v1/ByocTrunks | +[**ListConnectionPolicy**](DefaultApi.md#ListConnectionPolicy) | **Get** /v1/ConnectionPolicies | +[**ListConnectionPolicyTarget**](DefaultApi.md#ListConnectionPolicyTarget) | **Get** /v1/ConnectionPolicies/{ConnectionPolicySid}/Targets | +[**ListDialingPermissionsCountry**](DefaultApi.md#ListDialingPermissionsCountry) | **Get** /v1/DialingPermissions/Countries | +[**ListDialingPermissionsHrsPrefixes**](DefaultApi.md#ListDialingPermissionsHrsPrefixes) | **Get** /v1/DialingPermissions/Countries/{IsoCode}/HighRiskSpecialPrefixes | +[**ListIpRecord**](DefaultApi.md#ListIpRecord) | **Get** /v1/IpRecords | +[**ListSourceIpMapping**](DefaultApi.md#ListSourceIpMapping) | **Get** /v1/SourceIpMappings | +[**UpdateByocTrunk**](DefaultApi.md#UpdateByocTrunk) | **Post** /v1/ByocTrunks/{Sid} | +[**UpdateConnectionPolicy**](DefaultApi.md#UpdateConnectionPolicy) | **Post** /v1/ConnectionPolicies/{Sid} | +[**UpdateConnectionPolicyTarget**](DefaultApi.md#UpdateConnectionPolicyTarget) | **Post** /v1/ConnectionPolicies/{ConnectionPolicySid}/Targets/{Sid} | +[**UpdateDialingPermissionsSettings**](DefaultApi.md#UpdateDialingPermissionsSettings) | **Post** /v1/Settings | +[**UpdateIpRecord**](DefaultApi.md#UpdateIpRecord) | **Post** /v1/IpRecords/{Sid} | +[**UpdateSourceIpMapping**](DefaultApi.md#UpdateSourceIpMapping) | **Post** /v1/SourceIpMappings/{Sid} | + + + +## CreateByocTrunk + +> VoiceV1ByocTrunk CreateByocTrunk(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateByocTrunkOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateByocTrunkOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cnamLookupEnabled** | **optional.Bool**| Whether Caller ID Name (CNAM) lookup is enabled for the trunk. If enabled, all inbound calls to the BYOC Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information. | + **connectionPolicySid** | **optional.String**| The SID of the Connection Policy that Twilio will use when routing traffic to your communications infrastructure. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | + **fromDomainSid** | **optional.String**| The SID of the SIP Domain that should be used in the `From` header of originating calls sent to your SIP infrastructure. If your SIP infrastructure allows users to \\\"call back\\\" an incoming call, configure this with a [SIP Domain](https://www.twilio.com/docs/voice/api/sending-sip) to ensure proper routing. If not configured, the from domain will default to \\\"sip.twilio.com\\\". | + **statusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback_url`. Can be: `GET` or `POST`. | + **statusCallbackUrl** | **optional.String**| The URL that we should call to pass status parameters (such as call ended) to your application. | + **voiceFallbackMethod** | **optional.String**| The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. | + **voiceFallbackUrl** | **optional.String**| The URL that we should call when an error occurs while retrieving or executing the TwiML from `voice_url`. | + **voiceMethod** | **optional.String**| The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`. | + **voiceUrl** | **optional.String**| The URL we should call when the BYOC Trunk receives a call. | + +### Return type + +[**VoiceV1ByocTrunk**](voice.v1.byoc_trunk.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) + + +## CreateConnectionPolicy + +> VoiceV1ConnectionPolicy CreateConnectionPolicy(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateConnectionPolicyOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateConnectionPolicyOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | + +### Return type + +[**VoiceV1ConnectionPolicy**](voice.v1.connection_policy.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) + + +## CreateConnectionPolicyTarget + +> VoiceV1ConnectionPolicyConnectionPolicyTarget CreateConnectionPolicyTarget(ctx, connectionPolicySid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**connectionPolicySid** | **string**| The SID of the Connection Policy that owns the Target. | + **optional** | ***CreateConnectionPolicyTargetOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateConnectionPolicyTargetOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **enabled** | **optional.Bool**| Whether the Target is enabled. The default is `true`. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | + **priority** | **optional.Int32**| The relative importance of the target. Can be an integer from 0 to 65535, inclusive, and the default is 10. The lowest number represents the most important target. | + **target** | **optional.String**| The SIP address you want Twilio to route your calls to. This must be a `sip:` schema. `sips` is NOT supported. | + **weight** | **optional.Int32**| The value that determines the relative share of the load the Target should receive compared to other Targets with the same priority. Can be an integer from 1 to 65535, inclusive, and the default is 10. Targets with higher values receive more load than those with lower ones with the same priority. | + +### Return type + +[**VoiceV1ConnectionPolicyConnectionPolicyTarget**](voice.v1.connection_policy.connection_policy_target.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) + + +## CreateDialingPermissionsCountryBulkUpdate + +> VoiceV1DialingPermissionsDialingPermissionsCountryBulkUpdate CreateDialingPermissionsCountryBulkUpdate(ctx, optional) + + + +Create a bulk update request to change voice dialing country permissions of one or more countries identified by the corresponding [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateDialingPermissionsCountryBulkUpdateOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateDialingPermissionsCountryBulkUpdateOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **updateRequest** | **optional.String**| URL encoded JSON array of update objects. example : `[ { \\\"iso_code\\\": \\\"GB\\\", \\\"low_risk_numbers_enabled\\\": \\\"true\\\", \\\"high_risk_special_numbers_enabled\\\":\\\"true\\\", \\\"high_risk_tollfraud_numbers_enabled\\\": \\\"false\\\" } ]` | + +### Return type + +[**VoiceV1DialingPermissionsDialingPermissionsCountryBulkUpdate**](voice.v1.dialing_permissions.dialing_permissions_country_bulk_update.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) + + +## CreateIpRecord + +> VoiceV1IpRecord CreateIpRecord(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateIpRecordOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateIpRecordOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cidrPrefixLength** | **optional.Int32**| An integer representing the length of the [CIDR](https://tools.ietf.org/html/rfc4632) prefix to use with this IP address. By default the entire IP address is used, which for IPv4 is value 32. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | + **ipAddress** | **optional.String**| An IP address in dotted decimal notation, IPv4 only. | + +### Return type + +[**VoiceV1IpRecord**](voice.v1.ip_record.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) + + +## CreateSourceIpMapping + +> VoiceV1SourceIpMapping CreateSourceIpMapping(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateSourceIpMappingOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateSourceIpMappingOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ipRecordSid** | **optional.String**| The Twilio-provided string that uniquely identifies the IP Record resource to map from. | + **sipDomainSid** | **optional.String**| The SID of the SIP Domain that the IP Record should be mapped to. | + +### Return type + +[**VoiceV1SourceIpMapping**](voice.v1.source_ip_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) + + +## DeleteByocTrunk + +> DeleteByocTrunk(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the BYOC Trunk resource to delete. | + +### 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) + + +## DeleteConnectionPolicy + +> DeleteConnectionPolicy(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The unique string that we created to identify the Connection Policy resource to delete. | + +### 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) + + +## DeleteConnectionPolicyTarget + +> DeleteConnectionPolicyTarget(ctx, connectionPolicySid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**connectionPolicySid** | **string**| The SID of the Connection Policy that owns the Target. | +**sid** | **string**| The unique string that we created to identify the Target resource to delete. | + +### 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) + + +## DeleteIpRecord + +> DeleteIpRecord(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the IP Record resource to delete. | + +### 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) + + +## DeleteSourceIpMapping + +> DeleteSourceIpMapping(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the IP Record resource to delete. | + +### 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) + + +## FetchByocTrunk + +> VoiceV1ByocTrunk FetchByocTrunk(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the BYOC Trunk resource to fetch. | + +### Return type + +[**VoiceV1ByocTrunk**](voice.v1.byoc_trunk.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) + + +## FetchConnectionPolicy + +> VoiceV1ConnectionPolicy FetchConnectionPolicy(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The unique string that we created to identify the Connection Policy resource to fetch. | + +### Return type + +[**VoiceV1ConnectionPolicy**](voice.v1.connection_policy.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) + + +## FetchConnectionPolicyTarget + +> VoiceV1ConnectionPolicyConnectionPolicyTarget FetchConnectionPolicyTarget(ctx, connectionPolicySid, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**connectionPolicySid** | **string**| The SID of the Connection Policy that owns the Target. | +**sid** | **string**| The unique string that we created to identify the Target resource to fetch. | + +### Return type + +[**VoiceV1ConnectionPolicyConnectionPolicyTarget**](voice.v1.connection_policy.connection_policy_target.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) + + +## FetchDialingPermissionsCountry + +> VoiceV1DialingPermissionsDialingPermissionsCountryInstance FetchDialingPermissionsCountry(ctx, isoCode) + + + +Retrieve voice dialing country permissions identified by the given ISO country code + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**isoCode** | **string**| The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the DialingPermissions Country resource to fetch | + +### Return type + +[**VoiceV1DialingPermissionsDialingPermissionsCountryInstance**](voice.v1.dialing_permissions.dialing_permissions_country-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) + + +## FetchDialingPermissionsSettings + +> VoiceV1DialingPermissionsDialingPermissionsSettings FetchDialingPermissionsSettings(ctx, ) + + + +Retrieve voice dialing permissions inheritance for the sub-account + +### Required Parameters + +This endpoint does not need any parameter. + +### Return type + +[**VoiceV1DialingPermissionsDialingPermissionsSettings**](voice.v1.dialing_permissions.dialing_permissions_settings.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) + + +## FetchIpRecord + +> VoiceV1IpRecord FetchIpRecord(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the IP Record resource to fetch. | + +### Return type + +[**VoiceV1IpRecord**](voice.v1.ip_record.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) + + +## FetchSourceIpMapping + +> VoiceV1SourceIpMapping FetchSourceIpMapping(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the IP Record resource to fetch. | + +### Return type + +[**VoiceV1SourceIpMapping**](voice.v1.source_ip_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) + + +## ListByocTrunk + +> VoiceV1ByocTrunkReadResponse ListByocTrunk(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListByocTrunkOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListByocTrunkOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**VoiceV1ByocTrunkReadResponse**](voice_v1_byoc_trunkReadResponse.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) + + +## ListConnectionPolicy + +> VoiceV1ConnectionPolicyReadResponse ListConnectionPolicy(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListConnectionPolicyOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListConnectionPolicyOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**VoiceV1ConnectionPolicyReadResponse**](voice_v1_connection_policyReadResponse.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) + + +## ListConnectionPolicyTarget + +> VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse ListConnectionPolicyTarget(ctx, connectionPolicySid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**connectionPolicySid** | **string**| The SID of the Connection Policy from which to read the Targets. | + **optional** | ***ListConnectionPolicyTargetOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListConnectionPolicyTargetOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse**](voice_v1_connection_policy_connection_policy_targetReadResponse.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) + + +## ListDialingPermissionsCountry + +> VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse ListDialingPermissionsCountry(ctx, optional) + + + +Retrieve all voice dialing country permissions for this account + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListDialingPermissionsCountryOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListDialingPermissionsCountryOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **isoCode** | **optional.String**| Filter to retrieve the country permissions by specifying the [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) | + **continent** | **optional.String**| Filter to retrieve the country permissions by specifying the continent | + **countryCode** | **optional.String**| Filter the results by specified [country codes](https://www.itu.int/itudoc/itu-t/ob-lists/icc/e164_763.html) | + **lowRiskNumbersEnabled** | **optional.Bool**| Filter to retrieve the country permissions with dialing to low-risk numbers enabled. Can be: `true` or `false`. | + **highRiskSpecialNumbersEnabled** | **optional.Bool**| Filter to retrieve the country permissions with dialing to high-risk special service numbers enabled. Can be: `true` or `false` | + **highRiskTollfraudNumbersEnabled** | **optional.Bool**| Filter to retrieve the country permissions with dialing to high-risk [toll fraud](https://www.twilio.com/learn/voice-and-video/toll-fraud) numbers enabled. Can be: `true` or `false`. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse**](voice_v1_dialing_permissions_dialing_permissions_countryReadResponse.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) + + +## ListDialingPermissionsHrsPrefixes + +> VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse ListDialingPermissionsHrsPrefixes(ctx, isoCode, optional) + + + +Fetch the high-risk special services prefixes from the country resource corresponding to the [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**isoCode** | **string**| The [ISO 3166-1 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) to identify the country permissions from which high-risk special service number prefixes are fetched | + **optional** | ***ListDialingPermissionsHrsPrefixesOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListDialingPermissionsHrsPrefixesOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse**](voice_v1_dialing_permissions_dialing_permissions_country_dialing_permissions_hrs_prefixesReadResponse.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) + + +## ListIpRecord + +> VoiceV1IpRecordReadResponse ListIpRecord(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListIpRecordOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListIpRecordOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**VoiceV1IpRecordReadResponse**](voice_v1_ip_recordReadResponse.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) + + +## ListSourceIpMapping + +> VoiceV1SourceIpMappingReadResponse ListSourceIpMapping(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListSourceIpMappingOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListSourceIpMappingOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**VoiceV1SourceIpMappingReadResponse**](voice_v1_source_ip_mappingReadResponse.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) + + +## UpdateByocTrunk + +> VoiceV1ByocTrunk UpdateByocTrunk(ctx, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the BYOC Trunk resource to update. | + **optional** | ***UpdateByocTrunkOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateByocTrunkOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **cnamLookupEnabled** | **optional.Bool**| Whether Caller ID Name (CNAM) lookup is enabled for the trunk. If enabled, all inbound calls to the BYOC Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information. | + **connectionPolicySid** | **optional.String**| The SID of the Connection Policy that Twilio will use when routing traffic to your communications infrastructure. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | + **fromDomainSid** | **optional.String**| The SID of the SIP Domain that should be used in the `From` header of originating calls sent to your SIP infrastructure. If your SIP infrastructure allows users to \\\"call back\\\" an incoming call, configure this with a [SIP Domain](https://www.twilio.com/docs/voice/api/sending-sip) to ensure proper routing. If not configured, the from domain will default to \\\"sip.twilio.com\\\". | + **statusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback_url`. Can be: `GET` or `POST`. | + **statusCallbackUrl** | **optional.String**| The URL that we should call to pass status parameters (such as call ended) to your application. | + **voiceFallbackMethod** | **optional.String**| The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. | + **voiceFallbackUrl** | **optional.String**| The URL that we should call when an error occurs while retrieving or executing the TwiML requested by `voice_url`. | + **voiceMethod** | **optional.String**| The HTTP method we should use to call `voice_url` | + **voiceUrl** | **optional.String**| The URL we should call when the BYOC Trunk receives a call. | + +### Return type + +[**VoiceV1ByocTrunk**](voice.v1.byoc_trunk.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) + + +## UpdateConnectionPolicy + +> VoiceV1ConnectionPolicy UpdateConnectionPolicy(ctx, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The unique string that we created to identify the Connection Policy resource to update. | + **optional** | ***UpdateConnectionPolicyOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateConnectionPolicyOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | + +### Return type + +[**VoiceV1ConnectionPolicy**](voice.v1.connection_policy.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) + + +## UpdateConnectionPolicyTarget + +> VoiceV1ConnectionPolicyConnectionPolicyTarget UpdateConnectionPolicyTarget(ctx, connectionPolicySid, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**connectionPolicySid** | **string**| The SID of the Connection Policy that owns the Target. | +**sid** | **string**| The unique string that we created to identify the Target resource to update. | + **optional** | ***UpdateConnectionPolicyTargetOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateConnectionPolicyTargetOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **enabled** | **optional.Bool**| Whether the Target is enabled. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | + **priority** | **optional.Int32**| The relative importance of the target. Can be an integer from 0 to 65535, inclusive. The lowest number represents the most important target. | + **target** | **optional.String**| The SIP address you want Twilio to route your calls to. This must be a `sip:` schema. `sips` is NOT supported. | + **weight** | **optional.Int32**| The value that determines the relative share of the load the Target should receive compared to other Targets with the same priority. Can be an integer from 1 to 65535, inclusive. Targets with higher values receive more load than those with lower ones with the same priority. | + +### Return type + +[**VoiceV1ConnectionPolicyConnectionPolicyTarget**](voice.v1.connection_policy.connection_policy_target.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) + + +## UpdateDialingPermissionsSettings + +> VoiceV1DialingPermissionsDialingPermissionsSettings UpdateDialingPermissionsSettings(ctx, optional) + + + +Update voice dialing permissions inheritance for the sub-account + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***UpdateDialingPermissionsSettingsOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateDialingPermissionsSettingsOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dialingPermissionsInheritance** | **optional.Bool**| `true` for the sub-account to inherit voice dialing permissions from the Master Project; otherwise `false`. | + +### Return type + +[**VoiceV1DialingPermissionsDialingPermissionsSettings**](voice.v1.dialing_permissions.dialing_permissions_settings.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) + + +## UpdateIpRecord + +> VoiceV1IpRecord UpdateIpRecord(ctx, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the IP Record resource to update. | + **optional** | ***UpdateIpRecordOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateIpRecordOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | + +### Return type + +[**VoiceV1IpRecord**](voice.v1.ip_record.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) + + +## UpdateSourceIpMapping + +> VoiceV1SourceIpMapping UpdateSourceIpMapping(ctx, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The Twilio-provided string that uniquely identifies the IP Record resource to update. | + **optional** | ***UpdateSourceIpMappingOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateSourceIpMappingOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **sipDomainSid** | **optional.String**| The SID of the SIP Domain that the IP Record should be mapped to. | + +### Return type + +[**VoiceV1SourceIpMapping**](voice.v1.source_ip_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) + diff --git a/rest/voice/v1/docs/UpdateByocTrunkRequest.md b/rest/voice/v1/docs/UpdateByocTrunkRequest.md new file mode 100644 index 000000000..508d752f8 --- /dev/null +++ b/rest/voice/v1/docs/UpdateByocTrunkRequest.md @@ -0,0 +1,20 @@ +# UpdateByocTrunkRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CnamLookupEnabled** | **bool** | Whether Caller ID Name (CNAM) lookup is enabled for the trunk. If enabled, all inbound calls to the BYOC Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information. | [optional] +**ConnectionPolicySid** | **string** | The SID of the Connection Policy that Twilio will use when routing traffic to your communications infrastructure. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | [optional] +**FromDomainSid** | **string** | The SID of the SIP Domain that should be used in the `From` header of originating calls sent to your SIP infrastructure. If your SIP infrastructure allows users to \"call back\" an incoming call, configure this with a [SIP Domain](https://www.twilio.com/docs/voice/api/sending-sip) to ensure proper routing. If not configured, the from domain will default to \"sip.twilio.com\". | [optional] +**StatusCallbackMethod** | **string** | The HTTP method we should use to call `status_callback_url`. Can be: `GET` or `POST`. | [optional] +**StatusCallbackUrl** | **string** | The URL that we should call to pass status parameters (such as call ended) to your application. | [optional] +**VoiceFallbackMethod** | **string** | The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. | [optional] +**VoiceFallbackUrl** | **string** | The URL that we should call when an error occurs while retrieving or executing the TwiML requested by `voice_url`. | [optional] +**VoiceMethod** | **string** | The HTTP method we should use to call `voice_url` | [optional] +**VoiceUrl** | **string** | The URL we should call when the BYOC Trunk receives a 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/rest/voice/v1/docs/UpdateConnectionPolicyRequest.md b/rest/voice/v1/docs/UpdateConnectionPolicyRequest.md new file mode 100644 index 000000000..bba546f2d --- /dev/null +++ b/rest/voice/v1/docs/UpdateConnectionPolicyRequest.md @@ -0,0 +1,11 @@ +# UpdateConnectionPolicyRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | [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/rest/voice/v1/docs/UpdateConnectionPolicyTargetRequest.md b/rest/voice/v1/docs/UpdateConnectionPolicyTargetRequest.md new file mode 100644 index 000000000..ef61fa7e9 --- /dev/null +++ b/rest/voice/v1/docs/UpdateConnectionPolicyTargetRequest.md @@ -0,0 +1,15 @@ +# UpdateConnectionPolicyTargetRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Enabled** | **bool** | Whether the Target is enabled. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | [optional] +**Priority** | **int32** | The relative importance of the target. Can be an integer from 0 to 65535, inclusive. The lowest number represents the most important target. | [optional] +**Target** | **string** | The SIP address you want Twilio to route your calls to. This must be a `sip:` schema. `sips` is NOT supported. | [optional] +**Weight** | **int32** | The value that determines the relative share of the load the Target should receive compared to other Targets with the same priority. Can be an integer from 1 to 65535, inclusive. Targets with higher values receive more load than those with lower ones with the same priority. | [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/rest/voice/v1/docs/UpdateDialingPermissionsSettingsRequest.md b/rest/voice/v1/docs/UpdateDialingPermissionsSettingsRequest.md new file mode 100644 index 000000000..cf4988ec9 --- /dev/null +++ b/rest/voice/v1/docs/UpdateDialingPermissionsSettingsRequest.md @@ -0,0 +1,11 @@ +# UpdateDialingPermissionsSettingsRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DialingPermissionsInheritance** | **bool** | `true` for the sub-account to inherit voice dialing permissions from the Master Project; otherwise `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/rest/voice/v1/docs/UpdateIpRecordRequest.md b/rest/voice/v1/docs/UpdateIpRecordRequest.md new file mode 100644 index 000000000..9bde878aa --- /dev/null +++ b/rest/voice/v1/docs/UpdateIpRecordRequest.md @@ -0,0 +1,11 @@ +# UpdateIpRecordRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | [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/rest/voice/v1/docs/UpdateSourceIpMappingRequest.md b/rest/voice/v1/docs/UpdateSourceIpMappingRequest.md new file mode 100644 index 000000000..b3feaf8d7 --- /dev/null +++ b/rest/voice/v1/docs/UpdateSourceIpMappingRequest.md @@ -0,0 +1,11 @@ +# UpdateSourceIpMappingRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SipDomainSid** | **string** | The SID of the SIP Domain that the IP Record should be mapped to. | + +[[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/rest/voice/v1/docs/VoiceV1ByocTrunk.md b/rest/voice/v1/docs/VoiceV1ByocTrunk.md new file mode 100644 index 000000000..3c6a617f8 --- /dev/null +++ b/rest/voice/v1/docs/VoiceV1ByocTrunk.md @@ -0,0 +1,25 @@ +# VoiceV1ByocTrunk + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**CnamLookupEnabled** | **bool** | | [optional] +**ConnectionPolicySid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**FromDomainSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**StatusCallbackMethod** | **string** | | [optional] +**StatusCallbackUrl** | **string** | | [optional] +**Url** | **string** | | [optional] +**VoiceFallbackMethod** | **string** | | [optional] +**VoiceFallbackUrl** | **string** | | [optional] +**VoiceMethod** | **string** | | [optional] +**VoiceUrl** | **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/rest/voice/v1/docs/VoiceV1ByocTrunkReadResponse.md b/rest/voice/v1/docs/VoiceV1ByocTrunkReadResponse.md new file mode 100644 index 000000000..3259eb5a2 --- /dev/null +++ b/rest/voice/v1/docs/VoiceV1ByocTrunkReadResponse.md @@ -0,0 +1,12 @@ +# VoiceV1ByocTrunkReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ByocTrunks** | [**[]VoiceV1ByocTrunk**](voice.v1.byoc_trunk.md) | | [optional] +**Meta** | [**VoiceV1ByocTrunkReadResponseMeta**](voice_v1_byoc_trunkReadResponse_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/rest/voice/v1/docs/VoiceV1ByocTrunkReadResponseMeta.md b/rest/voice/v1/docs/VoiceV1ByocTrunkReadResponseMeta.md new file mode 100644 index 000000000..e7f1846d7 --- /dev/null +++ b/rest/voice/v1/docs/VoiceV1ByocTrunkReadResponseMeta.md @@ -0,0 +1,17 @@ +# VoiceV1ByocTrunkReadResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/voice/v1/docs/VoiceV1ConnectionPolicy.md b/rest/voice/v1/docs/VoiceV1ConnectionPolicy.md new file mode 100644 index 000000000..0a5b39cb5 --- /dev/null +++ b/rest/voice/v1/docs/VoiceV1ConnectionPolicy.md @@ -0,0 +1,17 @@ +# VoiceV1ConnectionPolicy + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/voice/v1/docs/VoiceV1ConnectionPolicyConnectionPolicyTarget.md b/rest/voice/v1/docs/VoiceV1ConnectionPolicyConnectionPolicyTarget.md new file mode 100644 index 000000000..d73be1c06 --- /dev/null +++ b/rest/voice/v1/docs/VoiceV1ConnectionPolicyConnectionPolicyTarget.md @@ -0,0 +1,21 @@ +# VoiceV1ConnectionPolicyConnectionPolicyTarget + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**ConnectionPolicySid** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**Enabled** | **bool** | | [optional] +**FriendlyName** | **string** | | [optional] +**Priority** | **int32** | | [optional] +**Sid** | **string** | | [optional] +**Target** | **string** | | [optional] +**Url** | **string** | | [optional] +**Weight** | **int32** | | [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/rest/voice/v1/docs/VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse.md b/rest/voice/v1/docs/VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse.md new file mode 100644 index 000000000..e40a73316 --- /dev/null +++ b/rest/voice/v1/docs/VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse.md @@ -0,0 +1,12 @@ +# VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**VoiceV1ByocTrunkReadResponseMeta**](voice_v1_byoc_trunkReadResponse_meta.md) | | [optional] +**Targets** | [**[]VoiceV1ConnectionPolicyConnectionPolicyTarget**](voice.v1.connection_policy.connection_policy_target.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/rest/voice/v1/docs/VoiceV1ConnectionPolicyReadResponse.md b/rest/voice/v1/docs/VoiceV1ConnectionPolicyReadResponse.md new file mode 100644 index 000000000..c83ec42ad --- /dev/null +++ b/rest/voice/v1/docs/VoiceV1ConnectionPolicyReadResponse.md @@ -0,0 +1,12 @@ +# VoiceV1ConnectionPolicyReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConnectionPolicies** | [**[]VoiceV1ConnectionPolicy**](voice.v1.connection_policy.md) | | [optional] +**Meta** | [**VoiceV1ByocTrunkReadResponseMeta**](voice_v1_byoc_trunkReadResponse_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/rest/voice/v1/docs/VoiceV1DialingPermissionsDialingPermissionsCountry.md b/rest/voice/v1/docs/VoiceV1DialingPermissionsDialingPermissionsCountry.md new file mode 100644 index 000000000..b174e772d --- /dev/null +++ b/rest/voice/v1/docs/VoiceV1DialingPermissionsDialingPermissionsCountry.md @@ -0,0 +1,19 @@ +# VoiceV1DialingPermissionsDialingPermissionsCountry + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Continent** | **string** | | [optional] +**CountryCodes** | **[]string** | | [optional] +**HighRiskSpecialNumbersEnabled** | **bool** | | [optional] +**HighRiskTollfraudNumbersEnabled** | **bool** | | [optional] +**IsoCode** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**LowRiskNumbersEnabled** | **bool** | | [optional] +**Name** | **string** | | [optional] +**Url** | **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/rest/voice/v1/docs/VoiceV1DialingPermissionsDialingPermissionsCountryBulkUpdate.md b/rest/voice/v1/docs/VoiceV1DialingPermissionsDialingPermissionsCountryBulkUpdate.md new file mode 100644 index 000000000..119f7cb51 --- /dev/null +++ b/rest/voice/v1/docs/VoiceV1DialingPermissionsDialingPermissionsCountryBulkUpdate.md @@ -0,0 +1,12 @@ +# VoiceV1DialingPermissionsDialingPermissionsCountryBulkUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UpdateCount** | **int32** | | [optional] +**UpdateRequest** | **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/rest/voice/v1/docs/VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixes.md b/rest/voice/v1/docs/VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixes.md new file mode 100644 index 000000000..ec2d2330b --- /dev/null +++ b/rest/voice/v1/docs/VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixes.md @@ -0,0 +1,11 @@ +# VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Prefix** | **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/rest/voice/v1/docs/VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse.md b/rest/voice/v1/docs/VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse.md new file mode 100644 index 000000000..2c0d5acf9 --- /dev/null +++ b/rest/voice/v1/docs/VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse.md @@ -0,0 +1,12 @@ +# VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | [**[]VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixes**](voice.v1.dialing_permissions.dialing_permissions_country.dialing_permissions_hrs_prefixes.md) | | [optional] +**Meta** | [**VoiceV1ByocTrunkReadResponseMeta**](voice_v1_byoc_trunkReadResponse_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/rest/voice/v1/docs/VoiceV1DialingPermissionsDialingPermissionsCountryInstance.md b/rest/voice/v1/docs/VoiceV1DialingPermissionsDialingPermissionsCountryInstance.md new file mode 100644 index 000000000..e6ac6f9c9 --- /dev/null +++ b/rest/voice/v1/docs/VoiceV1DialingPermissionsDialingPermissionsCountryInstance.md @@ -0,0 +1,19 @@ +# VoiceV1DialingPermissionsDialingPermissionsCountryInstance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Continent** | **string** | | [optional] +**CountryCodes** | **[]string** | | [optional] +**HighRiskSpecialNumbersEnabled** | **bool** | | [optional] +**HighRiskTollfraudNumbersEnabled** | **bool** | | [optional] +**IsoCode** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**LowRiskNumbersEnabled** | **bool** | | [optional] +**Name** | **string** | | [optional] +**Url** | **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/rest/voice/v1/docs/VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse.md b/rest/voice/v1/docs/VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse.md new file mode 100644 index 000000000..b8c9d0e2d --- /dev/null +++ b/rest/voice/v1/docs/VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse.md @@ -0,0 +1,12 @@ +# VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Content** | [**[]VoiceV1DialingPermissionsDialingPermissionsCountry**](voice.v1.dialing_permissions.dialing_permissions_country.md) | | [optional] +**Meta** | [**VoiceV1ByocTrunkReadResponseMeta**](voice_v1_byoc_trunkReadResponse_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/rest/voice/v1/docs/VoiceV1DialingPermissionsDialingPermissionsSettings.md b/rest/voice/v1/docs/VoiceV1DialingPermissionsDialingPermissionsSettings.md new file mode 100644 index 000000000..8e7646f25 --- /dev/null +++ b/rest/voice/v1/docs/VoiceV1DialingPermissionsDialingPermissionsSettings.md @@ -0,0 +1,12 @@ +# VoiceV1DialingPermissionsDialingPermissionsSettings + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DialingPermissionsInheritance** | **bool** | | [optional] +**Url** | **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/rest/voice/v1/docs/VoiceV1IpRecord.md b/rest/voice/v1/docs/VoiceV1IpRecord.md new file mode 100644 index 000000000..02250a137 --- /dev/null +++ b/rest/voice/v1/docs/VoiceV1IpRecord.md @@ -0,0 +1,18 @@ +# VoiceV1IpRecord + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**CidrPrefixLength** | **int32** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**IpAddress** | **string** | | [optional] +**Sid** | **string** | | [optional] +**Url** | **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/rest/voice/v1/docs/VoiceV1IpRecordReadResponse.md b/rest/voice/v1/docs/VoiceV1IpRecordReadResponse.md new file mode 100644 index 000000000..01c11a855 --- /dev/null +++ b/rest/voice/v1/docs/VoiceV1IpRecordReadResponse.md @@ -0,0 +1,12 @@ +# VoiceV1IpRecordReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IpRecords** | [**[]VoiceV1IpRecord**](voice.v1.ip_record.md) | | [optional] +**Meta** | [**VoiceV1ByocTrunkReadResponseMeta**](voice_v1_byoc_trunkReadResponse_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/rest/voice/v1/docs/VoiceV1SourceIpMapping.md b/rest/voice/v1/docs/VoiceV1SourceIpMapping.md new file mode 100644 index 000000000..9c9febc87 --- /dev/null +++ b/rest/voice/v1/docs/VoiceV1SourceIpMapping.md @@ -0,0 +1,16 @@ +# VoiceV1SourceIpMapping + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**IpRecordSid** | **string** | | [optional] +**Sid** | **string** | | [optional] +**SipDomainSid** | **string** | | [optional] +**Url** | **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/rest/voice/v1/docs/VoiceV1SourceIpMappingReadResponse.md b/rest/voice/v1/docs/VoiceV1SourceIpMappingReadResponse.md new file mode 100644 index 000000000..330634850 --- /dev/null +++ b/rest/voice/v1/docs/VoiceV1SourceIpMappingReadResponse.md @@ -0,0 +1,12 @@ +# VoiceV1SourceIpMappingReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**VoiceV1ByocTrunkReadResponseMeta**](voice_v1_byoc_trunkReadResponse_meta.md) | | [optional] +**SourceIpMappings** | [**[]VoiceV1SourceIpMapping**](voice.v1.source_ip_mapping.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/rest/voice/v1/model_create_byoc_trunk_request.go b/rest/voice/v1/model_create_byoc_trunk_request.go new file mode 100644 index 000000000..1e268dd15 --- /dev/null +++ b/rest/voice/v1/model_create_byoc_trunk_request.go @@ -0,0 +1,34 @@ +/* + * Twilio - Voice + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateByocTrunkRequest struct for CreateByocTrunkRequest +type CreateByocTrunkRequest struct { + // Whether Caller ID Name (CNAM) lookup is enabled for the trunk. If enabled, all inbound calls to the BYOC Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information. + CnamLookupEnabled bool `json:"CnamLookupEnabled,omitempty"` + // The SID of the Connection Policy that Twilio will use when routing traffic to your communications infrastructure. + ConnectionPolicySid string `json:"ConnectionPolicySid,omitempty"` + // A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // The SID of the SIP Domain that should be used in the `From` header of originating calls sent to your SIP infrastructure. If your SIP infrastructure allows users to \"call back\" an incoming call, configure this with a [SIP Domain](https://www.twilio.com/docs/voice/api/sending-sip) to ensure proper routing. If not configured, the from domain will default to \"sip.twilio.com\". + FromDomainSid string `json:"FromDomainSid,omitempty"` + // The HTTP method we should use to call `status_callback_url`. Can be: `GET` or `POST`. + StatusCallbackMethod string `json:"StatusCallbackMethod,omitempty"` + // The URL that we should call to pass status parameters (such as call ended) to your application. + StatusCallbackUrl string `json:"StatusCallbackUrl,omitempty"` + // The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. + VoiceFallbackMethod string `json:"VoiceFallbackMethod,omitempty"` + // The URL that we should call when an error occurs while retrieving or executing the TwiML from `voice_url`. + VoiceFallbackUrl string `json:"VoiceFallbackUrl,omitempty"` + // The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`. + VoiceMethod string `json:"VoiceMethod,omitempty"` + // The URL we should call when the BYOC Trunk receives a call. + VoiceUrl string `json:"VoiceUrl,omitempty"` +} diff --git a/rest/voice/v1/model_create_connection_policy_request.go b/rest/voice/v1/model_create_connection_policy_request.go new file mode 100644 index 000000000..d81f024d8 --- /dev/null +++ b/rest/voice/v1/model_create_connection_policy_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Voice + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateConnectionPolicyRequest struct for CreateConnectionPolicyRequest +type CreateConnectionPolicyRequest struct { + // A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` +} diff --git a/rest/voice/v1/model_create_connection_policy_target_request.go b/rest/voice/v1/model_create_connection_policy_target_request.go new file mode 100644 index 000000000..56a08f730 --- /dev/null +++ b/rest/voice/v1/model_create_connection_policy_target_request.go @@ -0,0 +1,24 @@ +/* + * Twilio - Voice + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateConnectionPolicyTargetRequest struct for CreateConnectionPolicyTargetRequest +type CreateConnectionPolicyTargetRequest struct { + // Whether the Target is enabled. The default is `true`. + Enabled bool `json:"Enabled,omitempty"` + // A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // The relative importance of the target. Can be an integer from 0 to 65535, inclusive, and the default is 10. The lowest number represents the most important target. + Priority int32 `json:"Priority,omitempty"` + // The SIP address you want Twilio to route your calls to. This must be a `sip:` schema. `sips` is NOT supported. + Target string `json:"Target"` + // The value that determines the relative share of the load the Target should receive compared to other Targets with the same priority. Can be an integer from 1 to 65535, inclusive, and the default is 10. Targets with higher values receive more load than those with lower ones with the same priority. + Weight int32 `json:"Weight,omitempty"` +} diff --git a/rest/voice/v1/model_create_dialing_permissions_country_bulk_update_request.go b/rest/voice/v1/model_create_dialing_permissions_country_bulk_update_request.go new file mode 100644 index 000000000..0f94aee3a --- /dev/null +++ b/rest/voice/v1/model_create_dialing_permissions_country_bulk_update_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Voice + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateDialingPermissionsCountryBulkUpdateRequest struct for CreateDialingPermissionsCountryBulkUpdateRequest +type CreateDialingPermissionsCountryBulkUpdateRequest struct { + // URL encoded JSON array of update objects. example : `[ { \"iso_code\": \"GB\", \"low_risk_numbers_enabled\": \"true\", \"high_risk_special_numbers_enabled\":\"true\", \"high_risk_tollfraud_numbers_enabled\": \"false\" } ]` + UpdateRequest string `json:"UpdateRequest"` +} diff --git a/rest/voice/v1/model_create_ip_record_request.go b/rest/voice/v1/model_create_ip_record_request.go new file mode 100644 index 000000000..d03492570 --- /dev/null +++ b/rest/voice/v1/model_create_ip_record_request.go @@ -0,0 +1,20 @@ +/* + * Twilio - Voice + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateIpRecordRequest struct for CreateIpRecordRequest +type CreateIpRecordRequest struct { + // An integer representing the length of the [CIDR](https://tools.ietf.org/html/rfc4632) prefix to use with this IP address. By default the entire IP address is used, which for IPv4 is value 32. + CidrPrefixLength int32 `json:"CidrPrefixLength,omitempty"` + // A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // An IP address in dotted decimal notation, IPv4 only. + IpAddress string `json:"IpAddress"` +} diff --git a/rest/voice/v1/model_create_source_ip_mapping_request.go b/rest/voice/v1/model_create_source_ip_mapping_request.go new file mode 100644 index 000000000..d49c3a0be --- /dev/null +++ b/rest/voice/v1/model_create_source_ip_mapping_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Voice + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateSourceIpMappingRequest struct for CreateSourceIpMappingRequest +type CreateSourceIpMappingRequest struct { + // The Twilio-provided string that uniquely identifies the IP Record resource to map from. + IpRecordSid string `json:"IpRecordSid"` + // The SID of the SIP Domain that the IP Record should be mapped to. + SipDomainSid string `json:"SipDomainSid"` +} diff --git a/rest/voice/v1/model_update_byoc_trunk_request.go b/rest/voice/v1/model_update_byoc_trunk_request.go new file mode 100644 index 000000000..da671a3ec --- /dev/null +++ b/rest/voice/v1/model_update_byoc_trunk_request.go @@ -0,0 +1,34 @@ +/* + * Twilio - Voice + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateByocTrunkRequest struct for UpdateByocTrunkRequest +type UpdateByocTrunkRequest struct { + // Whether Caller ID Name (CNAM) lookup is enabled for the trunk. If enabled, all inbound calls to the BYOC Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information. + CnamLookupEnabled bool `json:"CnamLookupEnabled,omitempty"` + // The SID of the Connection Policy that Twilio will use when routing traffic to your communications infrastructure. + ConnectionPolicySid string `json:"ConnectionPolicySid,omitempty"` + // A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // The SID of the SIP Domain that should be used in the `From` header of originating calls sent to your SIP infrastructure. If your SIP infrastructure allows users to \"call back\" an incoming call, configure this with a [SIP Domain](https://www.twilio.com/docs/voice/api/sending-sip) to ensure proper routing. If not configured, the from domain will default to \"sip.twilio.com\". + FromDomainSid string `json:"FromDomainSid,omitempty"` + // The HTTP method we should use to call `status_callback_url`. Can be: `GET` or `POST`. + StatusCallbackMethod string `json:"StatusCallbackMethod,omitempty"` + // The URL that we should call to pass status parameters (such as call ended) to your application. + StatusCallbackUrl string `json:"StatusCallbackUrl,omitempty"` + // The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. + VoiceFallbackMethod string `json:"VoiceFallbackMethod,omitempty"` + // The URL that we should call when an error occurs while retrieving or executing the TwiML requested by `voice_url`. + VoiceFallbackUrl string `json:"VoiceFallbackUrl,omitempty"` + // The HTTP method we should use to call `voice_url` + VoiceMethod string `json:"VoiceMethod,omitempty"` + // The URL we should call when the BYOC Trunk receives a call. + VoiceUrl string `json:"VoiceUrl,omitempty"` +} diff --git a/rest/voice/v1/model_update_connection_policy_request.go b/rest/voice/v1/model_update_connection_policy_request.go new file mode 100644 index 000000000..751ac3723 --- /dev/null +++ b/rest/voice/v1/model_update_connection_policy_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Voice + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateConnectionPolicyRequest struct for UpdateConnectionPolicyRequest +type UpdateConnectionPolicyRequest struct { + // A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` +} diff --git a/rest/voice/v1/model_update_connection_policy_target_request.go b/rest/voice/v1/model_update_connection_policy_target_request.go new file mode 100644 index 000000000..5de3c209e --- /dev/null +++ b/rest/voice/v1/model_update_connection_policy_target_request.go @@ -0,0 +1,24 @@ +/* + * Twilio - Voice + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateConnectionPolicyTargetRequest struct for UpdateConnectionPolicyTargetRequest +type UpdateConnectionPolicyTargetRequest struct { + // Whether the Target is enabled. + Enabled bool `json:"Enabled,omitempty"` + // A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` + // The relative importance of the target. Can be an integer from 0 to 65535, inclusive. The lowest number represents the most important target. + Priority int32 `json:"Priority,omitempty"` + // The SIP address you want Twilio to route your calls to. This must be a `sip:` schema. `sips` is NOT supported. + Target string `json:"Target,omitempty"` + // The value that determines the relative share of the load the Target should receive compared to other Targets with the same priority. Can be an integer from 1 to 65535, inclusive. Targets with higher values receive more load than those with lower ones with the same priority. + Weight int32 `json:"Weight,omitempty"` +} diff --git a/rest/voice/v1/model_update_dialing_permissions_settings_request.go b/rest/voice/v1/model_update_dialing_permissions_settings_request.go new file mode 100644 index 000000000..669e50480 --- /dev/null +++ b/rest/voice/v1/model_update_dialing_permissions_settings_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Voice + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateDialingPermissionsSettingsRequest struct for UpdateDialingPermissionsSettingsRequest +type UpdateDialingPermissionsSettingsRequest struct { + // `true` for the sub-account to inherit voice dialing permissions from the Master Project; otherwise `false`. + DialingPermissionsInheritance bool `json:"DialingPermissionsInheritance,omitempty"` +} diff --git a/rest/voice/v1/model_update_ip_record_request.go b/rest/voice/v1/model_update_ip_record_request.go new file mode 100644 index 000000000..9466f2074 --- /dev/null +++ b/rest/voice/v1/model_update_ip_record_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Voice + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateIpRecordRequest struct for UpdateIpRecordRequest +type UpdateIpRecordRequest struct { + // A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. + FriendlyName string `json:"FriendlyName,omitempty"` +} diff --git a/rest/voice/v1/model_update_source_ip_mapping_request.go b/rest/voice/v1/model_update_source_ip_mapping_request.go new file mode 100644 index 000000000..5ce541fff --- /dev/null +++ b/rest/voice/v1/model_update_source_ip_mapping_request.go @@ -0,0 +1,16 @@ +/* + * Twilio - Voice + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateSourceIpMappingRequest struct for UpdateSourceIpMappingRequest +type UpdateSourceIpMappingRequest struct { + // The SID of the SIP Domain that the IP Record should be mapped to. + SipDomainSid string `json:"SipDomainSid"` +} diff --git a/rest/voice/v1/model_voice_v1_byoc_trunk.go b/rest/voice/v1/model_voice_v1_byoc_trunk.go new file mode 100644 index 000000000..a19358341 --- /dev/null +++ b/rest/voice/v1/model_voice_v1_byoc_trunk.go @@ -0,0 +1,32 @@ +/* + * Twilio - Voice + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// VoiceV1ByocTrunk struct for VoiceV1ByocTrunk +type VoiceV1ByocTrunk struct { + AccountSid string `json:"account_sid,omitempty"` + CnamLookupEnabled bool `json:"cnam_lookup_enabled,omitempty"` + ConnectionPolicySid string `json:"connection_policy_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + FromDomainSid string `json:"from_domain_sid,omitempty"` + Sid string `json:"sid,omitempty"` + StatusCallbackMethod string `json:"status_callback_method,omitempty"` + StatusCallbackUrl string `json:"status_callback_url,omitempty"` + Url string `json:"url,omitempty"` + VoiceFallbackMethod string `json:"voice_fallback_method,omitempty"` + VoiceFallbackUrl string `json:"voice_fallback_url,omitempty"` + VoiceMethod string `json:"voice_method,omitempty"` + VoiceUrl string `json:"voice_url,omitempty"` +} diff --git a/rest/voice/v1/model_voice_v1_byoc_trunk_read_response.go b/rest/voice/v1/model_voice_v1_byoc_trunk_read_response.go new file mode 100644 index 000000000..63d6117ee --- /dev/null +++ b/rest/voice/v1/model_voice_v1_byoc_trunk_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Voice + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// VoiceV1ByocTrunkReadResponse struct for VoiceV1ByocTrunkReadResponse +type VoiceV1ByocTrunkReadResponse struct { + ByocTrunks []VoiceV1ByocTrunk `json:"byoc_trunks,omitempty"` + Meta VoiceV1ByocTrunkReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/voice/v1/model_voice_v1_byoc_trunk_read_response_meta.go b/rest/voice/v1/model_voice_v1_byoc_trunk_read_response_meta.go new file mode 100644 index 000000000..334bfea15 --- /dev/null +++ b/rest/voice/v1/model_voice_v1_byoc_trunk_read_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Voice + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// VoiceV1ByocTrunkReadResponseMeta struct for VoiceV1ByocTrunkReadResponseMeta +type VoiceV1ByocTrunkReadResponseMeta struct { + FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` + NextPageUrl string `json:"next_page_url,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUrl string `json:"previous_page_url,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/voice/v1/model_voice_v1_connection_policy.go b/rest/voice/v1/model_voice_v1_connection_policy.go new file mode 100644 index 000000000..621c193c2 --- /dev/null +++ b/rest/voice/v1/model_voice_v1_connection_policy.go @@ -0,0 +1,24 @@ +/* + * Twilio - Voice + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// VoiceV1ConnectionPolicy struct for VoiceV1ConnectionPolicy +type VoiceV1ConnectionPolicy struct { + AccountSid string `json:"account_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/voice/v1/model_voice_v1_connection_policy_connection_policy_target.go b/rest/voice/v1/model_voice_v1_connection_policy_connection_policy_target.go new file mode 100644 index 000000000..6bc73f5ca --- /dev/null +++ b/rest/voice/v1/model_voice_v1_connection_policy_connection_policy_target.go @@ -0,0 +1,28 @@ +/* + * Twilio - Voice + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// VoiceV1ConnectionPolicyConnectionPolicyTarget struct for VoiceV1ConnectionPolicyConnectionPolicyTarget +type VoiceV1ConnectionPolicyConnectionPolicyTarget struct { + AccountSid string `json:"account_sid,omitempty"` + ConnectionPolicySid string `json:"connection_policy_sid,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + Enabled bool `json:"enabled,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Priority int32 `json:"priority,omitempty"` + Sid string `json:"sid,omitempty"` + Target string `json:"target,omitempty"` + Url string `json:"url,omitempty"` + Weight int32 `json:"weight,omitempty"` +} diff --git a/rest/voice/v1/model_voice_v1_connection_policy_connection_policy_target_read_response.go b/rest/voice/v1/model_voice_v1_connection_policy_connection_policy_target_read_response.go new file mode 100644 index 000000000..ec17444db --- /dev/null +++ b/rest/voice/v1/model_voice_v1_connection_policy_connection_policy_target_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Voice + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse struct for VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse +type VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse struct { + Meta VoiceV1ByocTrunkReadResponseMeta `json:"meta,omitempty"` + Targets []VoiceV1ConnectionPolicyConnectionPolicyTarget `json:"targets,omitempty"` +} diff --git a/rest/voice/v1/model_voice_v1_connection_policy_read_response.go b/rest/voice/v1/model_voice_v1_connection_policy_read_response.go new file mode 100644 index 000000000..ec4d643bc --- /dev/null +++ b/rest/voice/v1/model_voice_v1_connection_policy_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Voice + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// VoiceV1ConnectionPolicyReadResponse struct for VoiceV1ConnectionPolicyReadResponse +type VoiceV1ConnectionPolicyReadResponse struct { + ConnectionPolicies []VoiceV1ConnectionPolicy `json:"connection_policies,omitempty"` + Meta VoiceV1ByocTrunkReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country.go b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country.go new file mode 100644 index 000000000..719f793cc --- /dev/null +++ b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country.go @@ -0,0 +1,23 @@ +/* + * Twilio - Voice + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// VoiceV1DialingPermissionsDialingPermissionsCountry struct for VoiceV1DialingPermissionsDialingPermissionsCountry +type VoiceV1DialingPermissionsDialingPermissionsCountry struct { + Continent string `json:"continent,omitempty"` + CountryCodes []string `json:"country_codes,omitempty"` + HighRiskSpecialNumbersEnabled bool `json:"high_risk_special_numbers_enabled,omitempty"` + HighRiskTollfraudNumbersEnabled bool `json:"high_risk_tollfraud_numbers_enabled,omitempty"` + IsoCode string `json:"iso_code,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + LowRiskNumbersEnabled bool `json:"low_risk_numbers_enabled,omitempty"` + Name string `json:"name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_bulk_update.go b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_bulk_update.go new file mode 100644 index 000000000..dfbaaaf3a --- /dev/null +++ b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_bulk_update.go @@ -0,0 +1,16 @@ +/* + * Twilio - Voice + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// VoiceV1DialingPermissionsDialingPermissionsCountryBulkUpdate struct for VoiceV1DialingPermissionsDialingPermissionsCountryBulkUpdate +type VoiceV1DialingPermissionsDialingPermissionsCountryBulkUpdate struct { + UpdateCount int32 `json:"update_count,omitempty"` + UpdateRequest string `json:"update_request,omitempty"` +} diff --git a/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_dialing_permissions_hrs_prefixes.go b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_dialing_permissions_hrs_prefixes.go new file mode 100644 index 000000000..186f10fac --- /dev/null +++ b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_dialing_permissions_hrs_prefixes.go @@ -0,0 +1,15 @@ +/* + * Twilio - Voice + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixes struct for VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixes +type VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixes struct { + Prefix string `json:"prefix,omitempty"` +} diff --git a/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_dialing_permissions_hrs_prefixes_read_response.go b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_dialing_permissions_hrs_prefixes_read_response.go new file mode 100644 index 000000000..2dbf4eec6 --- /dev/null +++ b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_dialing_permissions_hrs_prefixes_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Voice + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse struct for VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse +type VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse struct { + Content []VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixes `json:"content,omitempty"` + Meta VoiceV1ByocTrunkReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_instance.go b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_instance.go new file mode 100644 index 000000000..4926fc0d8 --- /dev/null +++ b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_instance.go @@ -0,0 +1,23 @@ +/* + * Twilio - Voice + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// VoiceV1DialingPermissionsDialingPermissionsCountryInstance struct for VoiceV1DialingPermissionsDialingPermissionsCountryInstance +type VoiceV1DialingPermissionsDialingPermissionsCountryInstance struct { + Continent string `json:"continent,omitempty"` + CountryCodes []string `json:"country_codes,omitempty"` + HighRiskSpecialNumbersEnabled bool `json:"high_risk_special_numbers_enabled,omitempty"` + HighRiskTollfraudNumbersEnabled bool `json:"high_risk_tollfraud_numbers_enabled,omitempty"` + IsoCode string `json:"iso_code,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + LowRiskNumbersEnabled bool `json:"low_risk_numbers_enabled,omitempty"` + Name string `json:"name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_read_response.go b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_read_response.go new file mode 100644 index 000000000..ccec1e1e7 --- /dev/null +++ b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Voice + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse struct for VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse +type VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse struct { + Content []VoiceV1DialingPermissionsDialingPermissionsCountry `json:"content,omitempty"` + Meta VoiceV1ByocTrunkReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_settings.go b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_settings.go new file mode 100644 index 000000000..c902387f5 --- /dev/null +++ b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_settings.go @@ -0,0 +1,16 @@ +/* + * Twilio - Voice + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// VoiceV1DialingPermissionsDialingPermissionsSettings struct for VoiceV1DialingPermissionsDialingPermissionsSettings +type VoiceV1DialingPermissionsDialingPermissionsSettings struct { + DialingPermissionsInheritance bool `json:"dialing_permissions_inheritance,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/voice/v1/model_voice_v1_ip_record.go b/rest/voice/v1/model_voice_v1_ip_record.go new file mode 100644 index 000000000..87208babe --- /dev/null +++ b/rest/voice/v1/model_voice_v1_ip_record.go @@ -0,0 +1,25 @@ +/* + * Twilio - Voice + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// VoiceV1IpRecord struct for VoiceV1IpRecord +type VoiceV1IpRecord struct { + AccountSid string `json:"account_sid,omitempty"` + CidrPrefixLength int32 `json:"cidr_prefix_length,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + IpAddress string `json:"ip_address,omitempty"` + Sid string `json:"sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/voice/v1/model_voice_v1_ip_record_read_response.go b/rest/voice/v1/model_voice_v1_ip_record_read_response.go new file mode 100644 index 000000000..06208c146 --- /dev/null +++ b/rest/voice/v1/model_voice_v1_ip_record_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Voice + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// VoiceV1IpRecordReadResponse struct for VoiceV1IpRecordReadResponse +type VoiceV1IpRecordReadResponse struct { + IpRecords []VoiceV1IpRecord `json:"ip_records,omitempty"` + Meta VoiceV1ByocTrunkReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/voice/v1/model_voice_v1_source_ip_mapping.go b/rest/voice/v1/model_voice_v1_source_ip_mapping.go new file mode 100644 index 000000000..dcb7ed556 --- /dev/null +++ b/rest/voice/v1/model_voice_v1_source_ip_mapping.go @@ -0,0 +1,23 @@ +/* + * Twilio - Voice + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// VoiceV1SourceIpMapping struct for VoiceV1SourceIpMapping +type VoiceV1SourceIpMapping struct { + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + IpRecordSid string `json:"ip_record_sid,omitempty"` + Sid string `json:"sid,omitempty"` + SipDomainSid string `json:"sip_domain_sid,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/voice/v1/model_voice_v1_source_ip_mapping_read_response.go b/rest/voice/v1/model_voice_v1_source_ip_mapping_read_response.go new file mode 100644 index 000000000..507b18ef6 --- /dev/null +++ b/rest/voice/v1/model_voice_v1_source_ip_mapping_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Voice + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// VoiceV1SourceIpMappingReadResponse struct for VoiceV1SourceIpMappingReadResponse +type VoiceV1SourceIpMappingReadResponse struct { + Meta VoiceV1ByocTrunkReadResponseMeta `json:"meta,omitempty"` + SourceIpMappings []VoiceV1SourceIpMapping `json:"source_ip_mappings,omitempty"` +} diff --git a/rest/voice/v1/response.go b/rest/voice/v1/response.go new file mode 100644 index 000000000..f60b8e29e --- /dev/null +++ b/rest/voice/v1/response.go @@ -0,0 +1,47 @@ +/* + * Twilio - Voice + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// Response returns a new APIResponse object. +func Response(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// ResponseWithError returns a new APIResponse object with the provided error message. +func ResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/rest/wireless/v1/.openapi-generator-ignore b/rest/wireless/v1/.openapi-generator-ignore new file mode 100644 index 000000000..7484ee590 --- /dev/null +++ b/rest/wireless/v1/.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/rest/wireless/v1/.openapi-generator/VERSION b/rest/wireless/v1/.openapi-generator/VERSION new file mode 100644 index 000000000..ecedc98d1 --- /dev/null +++ b/rest/wireless/v1/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.3.1 \ No newline at end of file diff --git a/rest/wireless/v1/README.md b/rest/wireless/v1/README.md new file mode 100644 index 000000000..0bc290ac9 --- /dev/null +++ b/rest/wireless/v1/README.md @@ -0,0 +1,95 @@ +# Go API client for openapi + +This is the public Twilio REST API. + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 5.15.0 +- Package version: 1.0.0 +- Build package: com.twilio.oai.TwilioGoGenerator +For more information, please visit [https://support.twilio.com](https://support.twilio.com) + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/net/context +``` + +Put the package under your project folder and add the following in import: + +```golang +import "./openapi" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**CreateCommand**](docs/DefaultApi.md#createcommand) | **Post** /v1/Commands | +*DefaultApi* | [**CreateRatePlan**](docs/DefaultApi.md#createrateplan) | **Post** /v1/RatePlans | +*DefaultApi* | [**DeleteCommand**](docs/DefaultApi.md#deletecommand) | **Delete** /v1/Commands/{Sid} | +*DefaultApi* | [**DeleteRatePlan**](docs/DefaultApi.md#deleterateplan) | **Delete** /v1/RatePlans/{Sid} | +*DefaultApi* | [**DeleteSim**](docs/DefaultApi.md#deletesim) | **Delete** /v1/Sims/{Sid} | +*DefaultApi* | [**FetchCommand**](docs/DefaultApi.md#fetchcommand) | **Get** /v1/Commands/{Sid} | +*DefaultApi* | [**FetchRatePlan**](docs/DefaultApi.md#fetchrateplan) | **Get** /v1/RatePlans/{Sid} | +*DefaultApi* | [**FetchSim**](docs/DefaultApi.md#fetchsim) | **Get** /v1/Sims/{Sid} | +*DefaultApi* | [**ListAccountUsageRecord**](docs/DefaultApi.md#listaccountusagerecord) | **Get** /v1/UsageRecords | +*DefaultApi* | [**ListCommand**](docs/DefaultApi.md#listcommand) | **Get** /v1/Commands | +*DefaultApi* | [**ListDataSession**](docs/DefaultApi.md#listdatasession) | **Get** /v1/Sims/{SimSid}/DataSessions | +*DefaultApi* | [**ListRatePlan**](docs/DefaultApi.md#listrateplan) | **Get** /v1/RatePlans | +*DefaultApi* | [**ListSim**](docs/DefaultApi.md#listsim) | **Get** /v1/Sims | +*DefaultApi* | [**ListUsageRecord**](docs/DefaultApi.md#listusagerecord) | **Get** /v1/Sims/{SimSid}/UsageRecords | +*DefaultApi* | [**UpdateRatePlan**](docs/DefaultApi.md#updaterateplan) | **Post** /v1/RatePlans/{Sid} | +*DefaultApi* | [**UpdateSim**](docs/DefaultApi.md#updatesim) | **Post** /v1/Sims/{Sid} | + + +## Documentation For Models + + - [CreateCommandRequest](docs/CreateCommandRequest.md) + - [CreateRatePlanRequest](docs/CreateRatePlanRequest.md) + - [UpdateRatePlanRequest](docs/UpdateRatePlanRequest.md) + - [UpdateSimRequest](docs/UpdateSimRequest.md) + - [WirelessV1AccountUsageRecord](docs/WirelessV1AccountUsageRecord.md) + - [WirelessV1AccountUsageRecordReadResponse](docs/WirelessV1AccountUsageRecordReadResponse.md) + - [WirelessV1Command](docs/WirelessV1Command.md) + - [WirelessV1CommandReadResponse](docs/WirelessV1CommandReadResponse.md) + - [WirelessV1CommandReadResponseMeta](docs/WirelessV1CommandReadResponseMeta.md) + - [WirelessV1RatePlan](docs/WirelessV1RatePlan.md) + - [WirelessV1RatePlanReadResponse](docs/WirelessV1RatePlanReadResponse.md) + - [WirelessV1Sim](docs/WirelessV1Sim.md) + - [WirelessV1SimDataSession](docs/WirelessV1SimDataSession.md) + - [WirelessV1SimDataSessionReadResponse](docs/WirelessV1SimDataSessionReadResponse.md) + - [WirelessV1SimReadResponse](docs/WirelessV1SimReadResponse.md) + - [WirelessV1SimUsageRecord](docs/WirelessV1SimUsageRecord.md) + - [WirelessV1SimUsageRecordReadResponse](docs/WirelessV1SimUsageRecordReadResponse.md) + + +## Documentation For Authorization + + + +## accountSid_authToken + +- **Type**: HTTP basic authentication + +Example + +```golang +auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ + UserName: "username", + Password: "password", +}) +r, err := client.Service.Operation(auth, args) +``` + + +## Author + +support@twilio.com + diff --git a/rest/wireless/v1/api_default.go b/rest/wireless/v1/api_default.go new file mode 100644 index 000000000..0b1925306 --- /dev/null +++ b/rest/wireless/v1/api_default.go @@ -0,0 +1,809 @@ +/* + * Twilio - Wireless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "" +) + +type DefaultApiService struct { + baseURL string + client *twilio.Client +} + +func NewDefaultApiService(client *twilio.Client) *DefaultApiService { + return &DefaultApiService{ + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} +// CreateCommandParams Optional parameters for the method 'CreateCommand' +type CreateCommandParams struct { + CallbackMethod *string `json:"CallbackMethod,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + Command *string `json:"Command,omitempty"` + CommandMode *string `json:"CommandMode,omitempty"` + DeliveryReceiptRequested *bool `json:"DeliveryReceiptRequested,omitempty"` + IncludeSid *string `json:"IncludeSid,omitempty"` + Sim *string `json:"Sim,omitempty"` +} + +/* +CreateCommand Method for CreateCommand +Send a Command to a Sim. + * @param optional nil or *CreateCommandOpts - Optional Parameters: + * @param "CallbackMethod" (string) - The HTTP method we use to call `callback_url`. Can be: `POST` or `GET`, and the default is `POST`. + * @param "CallbackUrl" (string) - The URL we call using the `callback_url` when the Command has finished sending, whether the command was delivered or it failed. + * @param "Command" (string) - The message body of the Command. Can be plain text in text mode or a Base64 encoded byte string in binary mode. + * @param "CommandMode" (string) - The mode to use when sending the SMS message. Can be: `text` or `binary`. The default SMS mode is `text`. + * @param "DeliveryReceiptRequested" (bool) - Whether to request delivery receipt from the recipient. For Commands that request delivery receipt, the Command state transitions to 'delivered' once the server has received a delivery receipt from the device. The default value is `true`. + * @param "IncludeSid" (string) - Whether to include the SID of the command in the message body. Can be: `none`, `start`, or `end`, and the default behavior is `none`. When sending a Command to a SIM in text mode, we can automatically include the SID of the Command in the message body, which could be used to ensure that the device does not process the same Command more than once. A value of `start` will prepend the message with the Command SID, and `end` will append it to the end, separating the Command SID from the message body with a space. The length of the Command SID is included in the 160 character limit so the SMS body must be 128 characters or less before the Command SID is included. + * @param "Sim" (string) - The `sid` or `unique_name` of the [SIM](https://www.twilio.com/docs/wireless/api/sim-resource) to send the Command to. +@return WirelessV1Command +*/ +func (c *DefaultApiService) CreateCommand(params *CreateCommandParams) (*WirelessV1Command, error) { + path := "/v1/Commands" + + data := url.Values{} + headers := 0 + + if params != nil && params.CallbackMethod != nil { + data.Set("CallbackMethod", *params.CallbackMethod) + } + if params != nil && params.CallbackUrl != nil { + data.Set("CallbackUrl", *params.CallbackUrl) + } + if params != nil && params.Command != nil { + data.Set("Command", *params.Command) + } + if params != nil && params.CommandMode != nil { + data.Set("CommandMode", *params.CommandMode) + } + if params != nil && params.DeliveryReceiptRequested != nil { + data.Set("DeliveryReceiptRequested", string(*params.DeliveryReceiptRequested)) + } + if params != nil && params.IncludeSid != nil { + data.Set("IncludeSid", *params.IncludeSid) + } + if params != nil && params.Sim != nil { + data.Set("Sim", *params.Sim) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &WirelessV1Command{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// CreateRatePlanParams Optional parameters for the method 'CreateRatePlan' +type CreateRatePlanParams struct { + DataEnabled *bool `json:"DataEnabled,omitempty"` + DataLimit *int32 `json:"DataLimit,omitempty"` + DataMetering *string `json:"DataMetering,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + InternationalRoaming *[]string `json:"InternationalRoaming,omitempty"` + InternationalRoamingDataLimit *int32 `json:"InternationalRoamingDataLimit,omitempty"` + MessagingEnabled *bool `json:"MessagingEnabled,omitempty"` + NationalRoamingDataLimit *int32 `json:"NationalRoamingDataLimit,omitempty"` + NationalRoamingEnabled *bool `json:"NationalRoamingEnabled,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` +} + +/* +CreateRatePlan Method for CreateRatePlan + * @param optional nil or *CreateRatePlanOpts - Optional Parameters: + * @param "DataEnabled" (bool) - Whether SIMs can use GPRS/3G/4G/LTE data connectivity. + * @param "DataLimit" (int32) - The total data usage (download and upload combined) in Megabytes that the Network allows during one month on the home network (T-Mobile USA). The metering period begins the day of activation and ends on the same day in the following month. Can be up to 2TB and the default value is `1000`. + * @param "DataMetering" (string) - The model used to meter data usage. Can be: `payg` and `quota-1`, `quota-10`, and `quota-50`. Learn more about the available [data metering models](https://www.twilio.com/docs/wireless/api/rateplan-resource#payg-vs-quota-data-plans). + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It does not have to be unique. + * @param "InternationalRoaming" ([]string) - The list of services that SIMs capable of using GPRS/3G/4G/LTE data connectivity can use outside of the United States. Can be: `data`, `voice`, and `messaging`. + * @param "InternationalRoamingDataLimit" (int32) - The total data usage (download and upload combined) in Megabytes that the Network allows during one month when roaming outside the United States. Can be up to 2TB. + * @param "MessagingEnabled" (bool) - Whether SIMs can make, send, and receive SMS using [Commands](https://www.twilio.com/docs/wireless/api/command-resource). + * @param "NationalRoamingDataLimit" (int32) - The total data usage (download and upload combined) in Megabytes that the Network allows during one month on non-home networks in the United States. The metering period begins the day of activation and ends on the same day in the following month. Can be up to 2TB. See [national roaming](https://www.twilio.com/docs/wireless/api/rateplan-resource#national-roaming) for more info. + * @param "NationalRoamingEnabled" (bool) - Whether SIMs can roam on networks other than the home network (T-Mobile USA) in the United States. See [national roaming](https://www.twilio.com/docs/wireless/api/rateplan-resource#national-roaming). + * @param "UniqueName" (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. + * @param "VoiceEnabled" (bool) - Whether SIMs can make and receive voice calls. +@return WirelessV1RatePlan +*/ +func (c *DefaultApiService) CreateRatePlan(params *CreateRatePlanParams) (*WirelessV1RatePlan, error) { + path := "/v1/RatePlans" + + data := url.Values{} + headers := 0 + + if params != nil && params.DataEnabled != nil { + data.Set("DataEnabled", string(*params.DataEnabled)) + } + if params != nil && params.DataLimit != nil { + data.Set("DataLimit", string(*params.DataLimit)) + } + if params != nil && params.DataMetering != nil { + data.Set("DataMetering", *params.DataMetering) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.InternationalRoaming != nil { + data.Set("InternationalRoaming", *params.InternationalRoaming) + } + if params != nil && params.InternationalRoamingDataLimit != nil { + data.Set("InternationalRoamingDataLimit", string(*params.InternationalRoamingDataLimit)) + } + if params != nil && params.MessagingEnabled != nil { + data.Set("MessagingEnabled", string(*params.MessagingEnabled)) + } + if params != nil && params.NationalRoamingDataLimit != nil { + data.Set("NationalRoamingDataLimit", string(*params.NationalRoamingDataLimit)) + } + if params != nil && params.NationalRoamingEnabled != nil { + data.Set("NationalRoamingEnabled", string(*params.NationalRoamingEnabled)) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + if params != nil && params.VoiceEnabled != nil { + data.Set("VoiceEnabled", string(*params.VoiceEnabled)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &WirelessV1RatePlan{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +DeleteCommand Method for DeleteCommand +Delete a Command instance from your account. + * @param sid The SID of the Command resource to delete. +*/ +func (c *DefaultApiService) DeleteCommand(sid string) (error) { + path := "/v1/Commands/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteRatePlan Method for DeleteRatePlan + * @param sid The SID of the RatePlan resource to delete. +*/ +func (c *DefaultApiService) DeleteRatePlan(sid string) (error) { + path := "/v1/RatePlans/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +DeleteSim Method for DeleteSim +Delete a Sim resource on your Account. + * @param sid The SID or the `unique_name` of the Sim resource to delete. +*/ +func (c *DefaultApiService) DeleteSim(sid string) (error) { + path := "/v1/Sims/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } + + defer resp.Body.Close() + + return nil +} + +/* +FetchCommand Method for FetchCommand +Fetch a Command instance from your account. + * @param sid The SID of the Command resource to fetch. +@return WirelessV1Command +*/ +func (c *DefaultApiService) FetchCommand(sid string) (*WirelessV1Command, error) { + path := "/v1/Commands/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &WirelessV1Command{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchRatePlan Method for FetchRatePlan + * @param sid The SID of the RatePlan resource to fetch. +@return WirelessV1RatePlan +*/ +func (c *DefaultApiService) FetchRatePlan(sid string) (*WirelessV1RatePlan, error) { + path := "/v1/RatePlans/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &WirelessV1RatePlan{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchSim Method for FetchSim +Fetch a Sim resource on your Account. + * @param sid The SID or the `unique_name` of the Sim resource to fetch. +@return WirelessV1Sim +*/ +func (c *DefaultApiService) FetchSim(sid string) (*WirelessV1Sim, error) { + path := "/v1/Sims/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := 0 + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &WirelessV1Sim{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListAccountUsageRecordParams Optional parameters for the method 'ListAccountUsageRecord' +type ListAccountUsageRecordParams struct { + End *time.Time `json:"End,omitempty"` + Start *time.Time `json:"Start,omitempty"` + Granularity *string `json:"Granularity,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListAccountUsageRecord Method for ListAccountUsageRecord + * @param optional nil or *ListAccountUsageRecordOpts - Optional Parameters: + * @param "End" (time.Time) - Only include usage that has occurred on or before this date. Format is [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html). + * @param "Start" (time.Time) - Only include usage that has occurred on or after this date. Format is [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html). + * @param "Granularity" (string) - How to summarize the usage by time. Can be: `daily`, `hourly`, or `all`. A value of `all` returns one Usage Record that describes the usage for the entire period. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return WirelessV1AccountUsageRecordReadResponse +*/ +func (c *DefaultApiService) ListAccountUsageRecord(params *ListAccountUsageRecordParams) (*WirelessV1AccountUsageRecordReadResponse, error) { + path := "/v1/UsageRecords" + + data := url.Values{} + headers := 0 + + if params != nil && params.End != nil { + data.Set("End", string(*params.End)) + } + if params != nil && params.Start != nil { + data.Set("Start", string(*params.Start)) + } + if params != nil && params.Granularity != nil { + data.Set("Granularity", *params.Granularity) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &WirelessV1AccountUsageRecordReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListCommandParams Optional parameters for the method 'ListCommand' +type ListCommandParams struct { + Sim *string `json:"Sim,omitempty"` + Status *string `json:"Status,omitempty"` + Direction *string `json:"Direction,omitempty"` + Transport *string `json:"Transport,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListCommand Method for ListCommand +Retrieve a list of Commands from your account. + * @param optional nil or *ListCommandOpts - Optional Parameters: + * @param "Sim" (string) - The `sid` or `unique_name` of the [Sim resources](https://www.twilio.com/docs/wireless/api/sim-resource) to read. + * @param "Status" (string) - The status of the resources to read. Can be: `queued`, `sent`, `delivered`, `received`, or `failed`. + * @param "Direction" (string) - Only return Commands with this direction value. + * @param "Transport" (string) - Only return Commands with this transport value. Can be: `sms` or `ip`. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return WirelessV1CommandReadResponse +*/ +func (c *DefaultApiService) ListCommand(params *ListCommandParams) (*WirelessV1CommandReadResponse, error) { + path := "/v1/Commands" + + data := url.Values{} + headers := 0 + + if params != nil && params.Sim != nil { + data.Set("Sim", *params.Sim) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.Direction != nil { + data.Set("Direction", *params.Direction) + } + if params != nil && params.Transport != nil { + data.Set("Transport", *params.Transport) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &WirelessV1CommandReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListDataSessionParams Optional parameters for the method 'ListDataSession' +type ListDataSessionParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListDataSession Method for ListDataSession + * @param simSid The SID of the [Sim resource](https://www.twilio.com/docs/wireless/api/sim-resource) with the Data Sessions to read. + * @param optional nil or *ListDataSessionOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return WirelessV1SimDataSessionReadResponse +*/ +func (c *DefaultApiService) ListDataSession(simSid string, params *ListDataSessionParams) (*WirelessV1SimDataSessionReadResponse, error) { + path := "/v1/Sims/{SimSid}/DataSessions" + path = strings.Replace(path, "{"+"SimSid"+"}", simSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &WirelessV1SimDataSessionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListRatePlanParams Optional parameters for the method 'ListRatePlan' +type ListRatePlanParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListRatePlan Method for ListRatePlan + * @param optional nil or *ListRatePlanOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return WirelessV1RatePlanReadResponse +*/ +func (c *DefaultApiService) ListRatePlan(params *ListRatePlanParams) (*WirelessV1RatePlanReadResponse, error) { + path := "/v1/RatePlans" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &WirelessV1RatePlanReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListSimParams Optional parameters for the method 'ListSim' +type ListSimParams struct { + Status *string `json:"Status,omitempty"` + Iccid *string `json:"Iccid,omitempty"` + RatePlan *string `json:"RatePlan,omitempty"` + EId *string `json:"EId,omitempty"` + SimRegistrationCode *string `json:"SimRegistrationCode,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListSim Method for ListSim +Retrieve a list of Sim resources on your Account. + * @param optional nil or *ListSimOpts - Optional Parameters: + * @param "Status" (string) - Only return Sim resources with this status. + * @param "Iccid" (string) - Only return Sim resources with this ICCID. This will return a list with a maximum size of 1. + * @param "RatePlan" (string) - The SID or unique name of a [RatePlan resource](https://www.twilio.com/docs/wireless/api/rateplan-resource). Only return Sim resources assigned to this RatePlan resource. + * @param "EId" (string) - Deprecated. + * @param "SimRegistrationCode" (string) - Only return Sim resources with this registration code. This will return a list with a maximum size of 1. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return WirelessV1SimReadResponse +*/ +func (c *DefaultApiService) ListSim(params *ListSimParams) (*WirelessV1SimReadResponse, error) { + path := "/v1/Sims" + + data := url.Values{} + headers := 0 + + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.Iccid != nil { + data.Set("Iccid", *params.Iccid) + } + if params != nil && params.RatePlan != nil { + data.Set("RatePlan", *params.RatePlan) + } + if params != nil && params.EId != nil { + data.Set("EId", *params.EId) + } + if params != nil && params.SimRegistrationCode != nil { + data.Set("SimRegistrationCode", *params.SimRegistrationCode) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &WirelessV1SimReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListUsageRecordParams Optional parameters for the method 'ListUsageRecord' +type ListUsageRecordParams struct { + End *time.Time `json:"End,omitempty"` + Start *time.Time `json:"Start,omitempty"` + Granularity *string `json:"Granularity,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListUsageRecord Method for ListUsageRecord + * @param simSid The SID of the [Sim resource](https://www.twilio.com/docs/wireless/api/sim-resource) to read the usage from. + * @param optional nil or *ListUsageRecordOpts - Optional Parameters: + * @param "End" (time.Time) - Only include usage that occurred on or before this date, specified in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html). The default is the current time. + * @param "Start" (time.Time) - Only include usage that has occurred on or after this date, specified in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html). The default is one month before the `end` parameter value. + * @param "Granularity" (string) - How to summarize the usage by time. Can be: `daily`, `hourly`, or `all`. The default is `all`. A value of `all` returns one Usage Record that describes the usage for the entire period. + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return WirelessV1SimUsageRecordReadResponse +*/ +func (c *DefaultApiService) ListUsageRecord(simSid string, params *ListUsageRecordParams) (*WirelessV1SimUsageRecordReadResponse, error) { + path := "/v1/Sims/{SimSid}/UsageRecords" + path = strings.Replace(path, "{"+"SimSid"+"}", simSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.End != nil { + data.Set("End", string(*params.End)) + } + if params != nil && params.Start != nil { + data.Set("Start", string(*params.Start)) + } + if params != nil && params.Granularity != nil { + data.Set("Granularity", *params.Granularity) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &WirelessV1SimUsageRecordReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateRatePlanParams Optional parameters for the method 'UpdateRatePlan' +type UpdateRatePlanParams struct { + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` +} + +/* +UpdateRatePlan Method for UpdateRatePlan + * @param sid The SID of the RatePlan resource to update. + * @param optional nil or *UpdateRatePlanOpts - Optional Parameters: + * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It does not have to be unique. + * @param "UniqueName" (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. +@return WirelessV1RatePlan +*/ +func (c *DefaultApiService) UpdateRatePlan(sid string, params *UpdateRatePlanParams) (*WirelessV1RatePlan, error) { + path := "/v1/RatePlans/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &WirelessV1RatePlan{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// UpdateSimParams Optional parameters for the method 'UpdateSim' +type UpdateSimParams struct { + AccountSid *string `json:"AccountSid,omitempty"` + CallbackMethod *string `json:"CallbackMethod,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + CommandsCallbackMethod *string `json:"CommandsCallbackMethod,omitempty"` + CommandsCallbackUrl *string `json:"CommandsCallbackUrl,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + RatePlan *string `json:"RatePlan,omitempty"` + ResetStatus *string `json:"ResetStatus,omitempty"` + SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` + SmsMethod *string `json:"SmsMethod,omitempty"` + SmsUrl *string `json:"SmsUrl,omitempty"` + Status *string `json:"Status,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` +} + +/* +UpdateSim Method for UpdateSim +Updates the given properties of a Sim resource on your Account. + * @param sid The SID or the `unique_name` of the Sim resource to update. + * @param optional nil or *UpdateSimOpts - Optional Parameters: + * @param "AccountSid" (string) - The SID of the [Account](https://www.twilio.com/docs/iam/api/account) to which the Sim resource should belong. The Account SID can only be that of the requesting Account or that of a [Subaccount](https://www.twilio.com/docs/iam/api/subaccounts) of the requesting Account. Only valid when the Sim resource's status is `new`. For more information, see the [Move SIMs between Subaccounts documentation](https://www.twilio.com/docs/wireless/api/sim-resource#move-sims-between-subaccounts). + * @param "CallbackMethod" (string) - The HTTP method we should use to call `callback_url`. Can be: `POST` or `GET`. The default is `POST`. + * @param "CallbackUrl" (string) - The URL we should call using the `callback_url` when the SIM has finished updating. When the SIM transitions from `new` to `ready` or from any status to `deactivated`, we call this URL when the status changes to an intermediate status (`ready` or `deactivated`) and again when the status changes to its final status (`active` or `canceled`). + * @param "CommandsCallbackMethod" (string) - The HTTP method we should use to call `commands_callback_url`. Can be: `POST` or `GET`. The default is `POST`. + * @param "CommandsCallbackUrl" (string) - The URL we should call using the `commands_callback_method` when the SIM sends a [Command](https://www.twilio.com/docs/wireless/api/command-resource). Your server should respond with an HTTP status code in the 200 range; any response body is ignored. + * @param "FriendlyName" (string) - A descriptive string that you create to describe the Sim resource. It does not need to be unique. + * @param "RatePlan" (string) - The SID or unique name of the [RatePlan resource](https://www.twilio.com/docs/wireless/api/rateplan-resource) to which the Sim resource should be assigned. + * @param "ResetStatus" (string) - Initiate a connectivity reset on the SIM. Set to `resetting` to initiate a connectivity reset on the SIM. No other value is valid. + * @param "SmsFallbackMethod" (string) - The HTTP method we should use to call `sms_fallback_url`. Can be: `GET` or `POST`. Default is `POST`. + * @param "SmsFallbackUrl" (string) - The URL we should call using the `sms_fallback_method` when an error occurs while retrieving or executing the TwiML requested from `sms_url`. + * @param "SmsMethod" (string) - The HTTP method we should use to call `sms_url`. Can be: `GET` or `POST`. Default is `POST`. + * @param "SmsUrl" (string) - The URL we should call using the `sms_method` when the SIM-connected device sends an SMS message that is not a [Command](https://www.twilio.com/docs/wireless/api/command-resource). + * @param "Status" (string) - The new status of the Sim resource. Can be: `ready`, `active`, `suspended`, or `deactivated`. + * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. It can be used in place of the `sid` in the URL path to address the resource. + * @param "VoiceFallbackMethod" (string) - The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. + * @param "VoiceFallbackUrl" (string) - The URL we should call using the `voice_fallback_method` when an error occurs while retrieving or executing the TwiML requested from `voice_url`. + * @param "VoiceMethod" (string) - The HTTP method we should use when we call `voice_url`. Can be: `GET` or `POST`. + * @param "VoiceUrl" (string) - The URL we should call using the `voice_method` when the SIM-connected device makes a voice call. +@return WirelessV1Sim +*/ +func (c *DefaultApiService) UpdateSim(sid string, params *UpdateSimParams) (*WirelessV1Sim, error) { + path := "/v1/Sims/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AccountSid != nil { + data.Set("AccountSid", *params.AccountSid) + } + if params != nil && params.CallbackMethod != nil { + data.Set("CallbackMethod", *params.CallbackMethod) + } + if params != nil && params.CallbackUrl != nil { + data.Set("CallbackUrl", *params.CallbackUrl) + } + if params != nil && params.CommandsCallbackMethod != nil { + data.Set("CommandsCallbackMethod", *params.CommandsCallbackMethod) + } + if params != nil && params.CommandsCallbackUrl != nil { + data.Set("CommandsCallbackUrl", *params.CommandsCallbackUrl) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.RatePlan != nil { + data.Set("RatePlan", *params.RatePlan) + } + if params != nil && params.ResetStatus != nil { + data.Set("ResetStatus", *params.ResetStatus) + } + if params != nil && params.SmsFallbackMethod != nil { + data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) + } + if params != nil && params.SmsFallbackUrl != nil { + data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) + } + if params != nil && params.SmsMethod != nil { + data.Set("SmsMethod", *params.SmsMethod) + } + if params != nil && params.SmsUrl != nil { + data.Set("SmsUrl", *params.SmsUrl) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + if params != nil && params.VoiceFallbackMethod != nil { + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + } + if params != nil && params.VoiceFallbackUrl != nil { + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + } + if params != nil && params.VoiceMethod != nil { + data.Set("VoiceMethod", *params.VoiceMethod) + } + if params != nil && params.VoiceUrl != nil { + data.Set("VoiceUrl", *params.VoiceUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &WirelessV1Sim{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/wireless/v1/docs/CreateCommandRequest.md b/rest/wireless/v1/docs/CreateCommandRequest.md new file mode 100644 index 000000000..3b50c6a5e --- /dev/null +++ b/rest/wireless/v1/docs/CreateCommandRequest.md @@ -0,0 +1,17 @@ +# CreateCommandRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CallbackMethod** | **string** | The HTTP method we use to call `callback_url`. Can be: `POST` or `GET`, and the default is `POST`. | [optional] +**CallbackUrl** | **string** | The URL we call using the `callback_url` when the Command has finished sending, whether the command was delivered or it failed. | [optional] +**Command** | **string** | The message body of the Command. Can be plain text in text mode or a Base64 encoded byte string in binary mode. | +**CommandMode** | **string** | The mode to use when sending the SMS message. Can be: `text` or `binary`. The default SMS mode is `text`. | [optional] +**DeliveryReceiptRequested** | **bool** | Whether to request delivery receipt from the recipient. For Commands that request delivery receipt, the Command state transitions to 'delivered' once the server has received a delivery receipt from the device. The default value is `true`. | [optional] +**IncludeSid** | **string** | Whether to include the SID of the command in the message body. Can be: `none`, `start`, or `end`, and the default behavior is `none`. When sending a Command to a SIM in text mode, we can automatically include the SID of the Command in the message body, which could be used to ensure that the device does not process the same Command more than once. A value of `start` will prepend the message with the Command SID, and `end` will append it to the end, separating the Command SID from the message body with a space. The length of the Command SID is included in the 160 character limit so the SMS body must be 128 characters or less before the Command SID is included. | [optional] +**Sim** | **string** | The `sid` or `unique_name` of the [SIM](https://www.twilio.com/docs/wireless/api/sim-resource) to send the Command to. | [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/rest/wireless/v1/docs/CreateRatePlanRequest.md b/rest/wireless/v1/docs/CreateRatePlanRequest.md new file mode 100644 index 000000000..d5930a5e5 --- /dev/null +++ b/rest/wireless/v1/docs/CreateRatePlanRequest.md @@ -0,0 +1,21 @@ +# CreateRatePlanRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DataEnabled** | **bool** | Whether SIMs can use GPRS/3G/4G/LTE data connectivity. | [optional] +**DataLimit** | **int32** | The total data usage (download and upload combined) in Megabytes that the Network allows during one month on the home network (T-Mobile USA). The metering period begins the day of activation and ends on the same day in the following month. Can be up to 2TB and the default value is `1000`. | [optional] +**DataMetering** | **string** | The model used to meter data usage. Can be: `payg` and `quota-1`, `quota-10`, and `quota-50`. Learn more about the available [data metering models](https://www.twilio.com/docs/wireless/api/rateplan-resource#payg-vs-quota-data-plans). | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It does not have to be unique. | [optional] +**InternationalRoaming** | **[]string** | The list of services that SIMs capable of using GPRS/3G/4G/LTE data connectivity can use outside of the United States. Can be: `data`, `voice`, and `messaging`. | [optional] +**InternationalRoamingDataLimit** | **int32** | The total data usage (download and upload combined) in Megabytes that the Network allows during one month when roaming outside the United States. Can be up to 2TB. | [optional] +**MessagingEnabled** | **bool** | Whether SIMs can make, send, and receive SMS using [Commands](https://www.twilio.com/docs/wireless/api/command-resource). | [optional] +**NationalRoamingDataLimit** | **int32** | The total data usage (download and upload combined) in Megabytes that the Network allows during one month on non-home networks in the United States. The metering period begins the day of activation and ends on the same day in the following month. Can be up to 2TB. See [national roaming](https://www.twilio.com/docs/wireless/api/rateplan-resource#national-roaming) for more info. | [optional] +**NationalRoamingEnabled** | **bool** | Whether SIMs can roam on networks other than the home network (T-Mobile USA) in the United States. See [national roaming](https://www.twilio.com/docs/wireless/api/rateplan-resource#national-roaming). | [optional] +**UniqueName** | **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] +**VoiceEnabled** | **bool** | Whether SIMs can make and receive voice calls. | [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/rest/wireless/v1/docs/DefaultApi.md b/rest/wireless/v1/docs/DefaultApi.md new file mode 100644 index 000000000..1aef8b811 --- /dev/null +++ b/rest/wireless/v1/docs/DefaultApi.md @@ -0,0 +1,699 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateCommand**](DefaultApi.md#CreateCommand) | **Post** /v1/Commands | +[**CreateRatePlan**](DefaultApi.md#CreateRatePlan) | **Post** /v1/RatePlans | +[**DeleteCommand**](DefaultApi.md#DeleteCommand) | **Delete** /v1/Commands/{Sid} | +[**DeleteRatePlan**](DefaultApi.md#DeleteRatePlan) | **Delete** /v1/RatePlans/{Sid} | +[**DeleteSim**](DefaultApi.md#DeleteSim) | **Delete** /v1/Sims/{Sid} | +[**FetchCommand**](DefaultApi.md#FetchCommand) | **Get** /v1/Commands/{Sid} | +[**FetchRatePlan**](DefaultApi.md#FetchRatePlan) | **Get** /v1/RatePlans/{Sid} | +[**FetchSim**](DefaultApi.md#FetchSim) | **Get** /v1/Sims/{Sid} | +[**ListAccountUsageRecord**](DefaultApi.md#ListAccountUsageRecord) | **Get** /v1/UsageRecords | +[**ListCommand**](DefaultApi.md#ListCommand) | **Get** /v1/Commands | +[**ListDataSession**](DefaultApi.md#ListDataSession) | **Get** /v1/Sims/{SimSid}/DataSessions | +[**ListRatePlan**](DefaultApi.md#ListRatePlan) | **Get** /v1/RatePlans | +[**ListSim**](DefaultApi.md#ListSim) | **Get** /v1/Sims | +[**ListUsageRecord**](DefaultApi.md#ListUsageRecord) | **Get** /v1/Sims/{SimSid}/UsageRecords | +[**UpdateRatePlan**](DefaultApi.md#UpdateRatePlan) | **Post** /v1/RatePlans/{Sid} | +[**UpdateSim**](DefaultApi.md#UpdateSim) | **Post** /v1/Sims/{Sid} | + + + +## CreateCommand + +> WirelessV1Command CreateCommand(ctx, optional) + + + +Send a Command to a Sim. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateCommandOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateCommandOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **callbackMethod** | **optional.String**| The HTTP method we use to call `callback_url`. Can be: `POST` or `GET`, and the default is `POST`. | + **callbackUrl** | **optional.String**| The URL we call using the `callback_url` when the Command has finished sending, whether the command was delivered or it failed. | + **command** | **optional.String**| The message body of the Command. Can be plain text in text mode or a Base64 encoded byte string in binary mode. | + **commandMode** | **optional.String**| The mode to use when sending the SMS message. Can be: `text` or `binary`. The default SMS mode is `text`. | + **deliveryReceiptRequested** | **optional.Bool**| Whether to request delivery receipt from the recipient. For Commands that request delivery receipt, the Command state transitions to 'delivered' once the server has received a delivery receipt from the device. The default value is `true`. | + **includeSid** | **optional.String**| Whether to include the SID of the command in the message body. Can be: `none`, `start`, or `end`, and the default behavior is `none`. When sending a Command to a SIM in text mode, we can automatically include the SID of the Command in the message body, which could be used to ensure that the device does not process the same Command more than once. A value of `start` will prepend the message with the Command SID, and `end` will append it to the end, separating the Command SID from the message body with a space. The length of the Command SID is included in the 160 character limit so the SMS body must be 128 characters or less before the Command SID is included. | + **sim** | **optional.String**| The `sid` or `unique_name` of the [SIM](https://www.twilio.com/docs/wireless/api/sim-resource) to send the Command to. | + +### Return type + +[**WirelessV1Command**](wireless.v1.command.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) + + +## CreateRatePlan + +> WirelessV1RatePlan CreateRatePlan(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateRatePlanOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateRatePlanOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dataEnabled** | **optional.Bool**| Whether SIMs can use GPRS/3G/4G/LTE data connectivity. | + **dataLimit** | **optional.Int32**| The total data usage (download and upload combined) in Megabytes that the Network allows during one month on the home network (T-Mobile USA). The metering period begins the day of activation and ends on the same day in the following month. Can be up to 2TB and the default value is `1000`. | + **dataMetering** | **optional.String**| The model used to meter data usage. Can be: `payg` and `quota-1`, `quota-10`, and `quota-50`. Learn more about the available [data metering models](https://www.twilio.com/docs/wireless/api/rateplan-resource#payg-vs-quota-data-plans). | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It does not have to be unique. | + **internationalRoaming** | [**optional.Interface of []string**](string.md)| The list of services that SIMs capable of using GPRS/3G/4G/LTE data connectivity can use outside of the United States. Can be: `data`, `voice`, and `messaging`. | + **internationalRoamingDataLimit** | **optional.Int32**| The total data usage (download and upload combined) in Megabytes that the Network allows during one month when roaming outside the United States. Can be up to 2TB. | + **messagingEnabled** | **optional.Bool**| Whether SIMs can make, send, and receive SMS using [Commands](https://www.twilio.com/docs/wireless/api/command-resource). | + **nationalRoamingDataLimit** | **optional.Int32**| The total data usage (download and upload combined) in Megabytes that the Network allows during one month on non-home networks in the United States. The metering period begins the day of activation and ends on the same day in the following month. Can be up to 2TB. See [national roaming](https://www.twilio.com/docs/wireless/api/rateplan-resource#national-roaming) for more info. | + **nationalRoamingEnabled** | **optional.Bool**| Whether SIMs can roam on networks other than the home network (T-Mobile USA) in the United States. See [national roaming](https://www.twilio.com/docs/wireless/api/rateplan-resource#national-roaming). | + **uniqueName** | **optional.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. | + **voiceEnabled** | **optional.Bool**| Whether SIMs can make and receive voice calls. | + +### Return type + +[**WirelessV1RatePlan**](wireless.v1.rate_plan.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) + + +## DeleteCommand + +> DeleteCommand(ctx, sid) + + + +Delete a Command instance from your account. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Command resource to delete. | + +### 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) + + +## DeleteRatePlan + +> DeleteRatePlan(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the RatePlan resource to delete. | + +### 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) + + +## DeleteSim + +> DeleteSim(ctx, sid) + + + +Delete a Sim resource on your Account. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID or the `unique_name` of the Sim resource to delete. | + +### 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) + + +## FetchCommand + +> WirelessV1Command FetchCommand(ctx, sid) + + + +Fetch a Command instance from your account. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the Command resource to fetch. | + +### Return type + +[**WirelessV1Command**](wireless.v1.command.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) + + +## FetchRatePlan + +> WirelessV1RatePlan FetchRatePlan(ctx, sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the RatePlan resource to fetch. | + +### Return type + +[**WirelessV1RatePlan**](wireless.v1.rate_plan.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) + + +## FetchSim + +> WirelessV1Sim FetchSim(ctx, sid) + + + +Fetch a Sim resource on your Account. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID or the `unique_name` of the Sim resource to fetch. | + +### Return type + +[**WirelessV1Sim**](wireless.v1.sim.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) + + +## ListAccountUsageRecord + +> WirelessV1AccountUsageRecordReadResponse ListAccountUsageRecord(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListAccountUsageRecordOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListAccountUsageRecordOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **end** | **optional.Time**| Only include usage that has occurred on or before this date. Format is [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html). | + **start** | **optional.Time**| Only include usage that has occurred on or after this date. Format is [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html). | + **granularity** | **optional.String**| How to summarize the usage by time. Can be: `daily`, `hourly`, or `all`. A value of `all` returns one Usage Record that describes the usage for the entire period. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**WirelessV1AccountUsageRecordReadResponse**](wireless_v1_account_usage_recordReadResponse.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) + + +## ListCommand + +> WirelessV1CommandReadResponse ListCommand(ctx, optional) + + + +Retrieve a list of Commands from your account. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListCommandOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListCommandOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sim** | **optional.String**| The `sid` or `unique_name` of the [Sim resources](https://www.twilio.com/docs/wireless/api/sim-resource) to read. | + **status** | **optional.String**| The status of the resources to read. Can be: `queued`, `sent`, `delivered`, `received`, or `failed`. | + **direction** | **optional.String**| Only return Commands with this direction value. | + **transport** | **optional.String**| Only return Commands with this transport value. Can be: `sms` or `ip`. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**WirelessV1CommandReadResponse**](wireless_v1_commandReadResponse.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) + + +## ListDataSession + +> WirelessV1SimDataSessionReadResponse ListDataSession(ctx, simSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**simSid** | **string**| The SID of the [Sim resource](https://www.twilio.com/docs/wireless/api/sim-resource) with the Data Sessions to read. | + **optional** | ***ListDataSessionOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListDataSessionOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**WirelessV1SimDataSessionReadResponse**](wireless_v1_sim_data_sessionReadResponse.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) + + +## ListRatePlan + +> WirelessV1RatePlanReadResponse ListRatePlan(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListRatePlanOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListRatePlanOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**WirelessV1RatePlanReadResponse**](wireless_v1_rate_planReadResponse.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) + + +## ListSim + +> WirelessV1SimReadResponse ListSim(ctx, optional) + + + +Retrieve a list of Sim resources on your Account. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListSimOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListSimOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **status** | **optional.String**| Only return Sim resources with this status. | + **iccid** | **optional.String**| Only return Sim resources with this ICCID. This will return a list with a maximum size of 1. | + **ratePlan** | **optional.String**| The SID or unique name of a [RatePlan resource](https://www.twilio.com/docs/wireless/api/rateplan-resource). Only return Sim resources assigned to this RatePlan resource. | + **eId** | **optional.String**| Deprecated. | + **simRegistrationCode** | **optional.String**| Only return Sim resources with this registration code. This will return a list with a maximum size of 1. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**WirelessV1SimReadResponse**](wireless_v1_simReadResponse.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) + + +## ListUsageRecord + +> WirelessV1SimUsageRecordReadResponse ListUsageRecord(ctx, simSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**simSid** | **string**| The SID of the [Sim resource](https://www.twilio.com/docs/wireless/api/sim-resource) to read the usage from. | + **optional** | ***ListUsageRecordOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListUsageRecordOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **end** | **optional.Time**| Only include usage that occurred on or before this date, specified in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html). The default is the current time. | + **start** | **optional.Time**| Only include usage that has occurred on or after this date, specified in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html). The default is one month before the `end` parameter value. | + **granularity** | **optional.String**| How to summarize the usage by time. Can be: `daily`, `hourly`, or `all`. The default is `all`. A value of `all` returns one Usage Record that describes the usage for the entire period. | + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**WirelessV1SimUsageRecordReadResponse**](wireless_v1_sim_usage_recordReadResponse.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) + + +## UpdateRatePlan + +> WirelessV1RatePlan UpdateRatePlan(ctx, sid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID of the RatePlan resource to update. | + **optional** | ***UpdateRatePlanOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateRatePlanOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It does not have to be unique. | + **uniqueName** | **optional.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. | + +### Return type + +[**WirelessV1RatePlan**](wireless.v1.rate_plan.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) + + +## UpdateSim + +> WirelessV1Sim UpdateSim(ctx, sid, optional) + + + +Updates the given properties of a Sim resource on your Account. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**sid** | **string**| The SID or the `unique_name` of the Sim resource to update. | + **optional** | ***UpdateSimOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a UpdateSimOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **accountSid** | **optional.String**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) to which the Sim resource should belong. The Account SID can only be that of the requesting Account or that of a [Subaccount](https://www.twilio.com/docs/iam/api/subaccounts) of the requesting Account. Only valid when the Sim resource's status is `new`. For more information, see the [Move SIMs between Subaccounts documentation](https://www.twilio.com/docs/wireless/api/sim-resource#move-sims-between-subaccounts). | + **callbackMethod** | **optional.String**| The HTTP method we should use to call `callback_url`. Can be: `POST` or `GET`. The default is `POST`. | + **callbackUrl** | **optional.String**| The URL we should call using the `callback_url` when the SIM has finished updating. When the SIM transitions from `new` to `ready` or from any status to `deactivated`, we call this URL when the status changes to an intermediate status (`ready` or `deactivated`) and again when the status changes to its final status (`active` or `canceled`). | + **commandsCallbackMethod** | **optional.String**| The HTTP method we should use to call `commands_callback_url`. Can be: `POST` or `GET`. The default is `POST`. | + **commandsCallbackUrl** | **optional.String**| The URL we should call using the `commands_callback_method` when the SIM sends a [Command](https://www.twilio.com/docs/wireless/api/command-resource). Your server should respond with an HTTP status code in the 200 range; any response body is ignored. | + **friendlyName** | **optional.String**| A descriptive string that you create to describe the Sim resource. It does not need to be unique. | + **ratePlan** | **optional.String**| The SID or unique name of the [RatePlan resource](https://www.twilio.com/docs/wireless/api/rateplan-resource) to which the Sim resource should be assigned. | + **resetStatus** | **optional.String**| Initiate a connectivity reset on the SIM. Set to `resetting` to initiate a connectivity reset on the SIM. No other value is valid. | + **smsFallbackMethod** | **optional.String**| The HTTP method we should use to call `sms_fallback_url`. Can be: `GET` or `POST`. Default is `POST`. | + **smsFallbackUrl** | **optional.String**| The URL we should call using the `sms_fallback_method` when an error occurs while retrieving or executing the TwiML requested from `sms_url`. | + **smsMethod** | **optional.String**| The HTTP method we should use to call `sms_url`. Can be: `GET` or `POST`. Default is `POST`. | + **smsUrl** | **optional.String**| The URL we should call using the `sms_method` when the SIM-connected device sends an SMS message that is not a [Command](https://www.twilio.com/docs/wireless/api/command-resource). | + **status** | **optional.String**| The new status of the Sim resource. Can be: `ready`, `active`, `suspended`, or `deactivated`. | + **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used in place of the `sid` in the URL path to address the resource. | + **voiceFallbackMethod** | **optional.String**| The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. | + **voiceFallbackUrl** | **optional.String**| The URL we should call using the `voice_fallback_method` when an error occurs while retrieving or executing the TwiML requested from `voice_url`. | + **voiceMethod** | **optional.String**| The HTTP method we should use when we call `voice_url`. Can be: `GET` or `POST`. | + **voiceUrl** | **optional.String**| The URL we should call using the `voice_method` when the SIM-connected device makes a voice call. | + +### Return type + +[**WirelessV1Sim**](wireless.v1.sim.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/rest/wireless/v1/docs/UpdateRatePlanRequest.md b/rest/wireless/v1/docs/UpdateRatePlanRequest.md new file mode 100644 index 000000000..a7573d683 --- /dev/null +++ b/rest/wireless/v1/docs/UpdateRatePlanRequest.md @@ -0,0 +1,12 @@ +# UpdateRatePlanRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FriendlyName** | **string** | A descriptive string that you create to describe the resource. It does not have to be unique. | [optional] +**UniqueName** | **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] + +[[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/rest/wireless/v1/docs/UpdateSimRequest.md b/rest/wireless/v1/docs/UpdateSimRequest.md new file mode 100644 index 000000000..a02d0e5a2 --- /dev/null +++ b/rest/wireless/v1/docs/UpdateSimRequest.md @@ -0,0 +1,28 @@ +# UpdateSimRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) to which the Sim resource should belong. The Account SID can only be that of the requesting Account or that of a [Subaccount](https://www.twilio.com/docs/iam/api/subaccounts) of the requesting Account. Only valid when the Sim resource's status is `new`. For more information, see the [Move SIMs between Subaccounts documentation](https://www.twilio.com/docs/wireless/api/sim-resource#move-sims-between-subaccounts). | [optional] +**CallbackMethod** | **string** | The HTTP method we should use to call `callback_url`. Can be: `POST` or `GET`. The default is `POST`. | [optional] +**CallbackUrl** | **string** | The URL we should call using the `callback_url` when the SIM has finished updating. When the SIM transitions from `new` to `ready` or from any status to `deactivated`, we call this URL when the status changes to an intermediate status (`ready` or `deactivated`) and again when the status changes to its final status (`active` or `canceled`). | [optional] +**CommandsCallbackMethod** | **string** | The HTTP method we should use to call `commands_callback_url`. Can be: `POST` or `GET`. The default is `POST`. | [optional] +**CommandsCallbackUrl** | **string** | The URL we should call using the `commands_callback_method` when the SIM sends a [Command](https://www.twilio.com/docs/wireless/api/command-resource). Your server should respond with an HTTP status code in the 200 range; any response body is ignored. | [optional] +**FriendlyName** | **string** | A descriptive string that you create to describe the Sim resource. It does not need to be unique. | [optional] +**RatePlan** | **string** | The SID or unique name of the [RatePlan resource](https://www.twilio.com/docs/wireless/api/rateplan-resource) to which the Sim resource should be assigned. | [optional] +**ResetStatus** | **string** | Initiate a connectivity reset on the SIM. Set to `resetting` to initiate a connectivity reset on the SIM. No other value is valid. | [optional] +**SmsFallbackMethod** | **string** | The HTTP method we should use to call `sms_fallback_url`. Can be: `GET` or `POST`. Default is `POST`. | [optional] +**SmsFallbackUrl** | **string** | The URL we should call using the `sms_fallback_method` when an error occurs while retrieving or executing the TwiML requested from `sms_url`. | [optional] +**SmsMethod** | **string** | The HTTP method we should use to call `sms_url`. Can be: `GET` or `POST`. Default is `POST`. | [optional] +**SmsUrl** | **string** | The URL we should call using the `sms_method` when the SIM-connected device sends an SMS message that is not a [Command](https://www.twilio.com/docs/wireless/api/command-resource). | [optional] +**Status** | **string** | The new status of the Sim resource. Can be: `ready`, `active`, `suspended`, or `deactivated`. | [optional] +**UniqueName** | **string** | An application-defined string that uniquely identifies the resource. It can be used in place of the `sid` in the URL path to address the resource. | [optional] +**VoiceFallbackMethod** | **string** | The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. | [optional] +**VoiceFallbackUrl** | **string** | The URL we should call using the `voice_fallback_method` when an error occurs while retrieving or executing the TwiML requested from `voice_url`. | [optional] +**VoiceMethod** | **string** | The HTTP method we should use when we call `voice_url`. Can be: `GET` or `POST`. | [optional] +**VoiceUrl** | **string** | The URL we should call using the `voice_method` when the SIM-connected device makes a voice 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/rest/wireless/v1/docs/WirelessV1AccountUsageRecord.md b/rest/wireless/v1/docs/WirelessV1AccountUsageRecord.md new file mode 100644 index 000000000..be9a2e9e5 --- /dev/null +++ b/rest/wireless/v1/docs/WirelessV1AccountUsageRecord.md @@ -0,0 +1,14 @@ +# WirelessV1AccountUsageRecord + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Commands** | [**map[string]interface{}**](.md) | | [optional] +**Data** | [**map[string]interface{}**](.md) | | [optional] +**Period** | [**map[string]interface{}**](.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/rest/wireless/v1/docs/WirelessV1AccountUsageRecordReadResponse.md b/rest/wireless/v1/docs/WirelessV1AccountUsageRecordReadResponse.md new file mode 100644 index 000000000..e011ea847 --- /dev/null +++ b/rest/wireless/v1/docs/WirelessV1AccountUsageRecordReadResponse.md @@ -0,0 +1,12 @@ +# WirelessV1AccountUsageRecordReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**WirelessV1CommandReadResponseMeta**](wireless_v1_commandReadResponse_meta.md) | | [optional] +**UsageRecords** | [**[]WirelessV1AccountUsageRecord**](wireless.v1.account_usage_record.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/rest/wireless/v1/docs/WirelessV1Command.md b/rest/wireless/v1/docs/WirelessV1Command.md new file mode 100644 index 000000000..280f88986 --- /dev/null +++ b/rest/wireless/v1/docs/WirelessV1Command.md @@ -0,0 +1,22 @@ +# WirelessV1Command + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Command** | **string** | | [optional] +**CommandMode** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**DeliveryReceiptRequested** | **bool** | | [optional] +**Direction** | **string** | | [optional] +**Sid** | **string** | | [optional] +**SimSid** | **string** | | [optional] +**Status** | **string** | | [optional] +**Transport** | **string** | | [optional] +**Url** | **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/rest/wireless/v1/docs/WirelessV1CommandReadResponse.md b/rest/wireless/v1/docs/WirelessV1CommandReadResponse.md new file mode 100644 index 000000000..7d45a3ada --- /dev/null +++ b/rest/wireless/v1/docs/WirelessV1CommandReadResponse.md @@ -0,0 +1,12 @@ +# WirelessV1CommandReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Commands** | [**[]WirelessV1Command**](wireless.v1.command.md) | | [optional] +**Meta** | [**WirelessV1CommandReadResponseMeta**](wireless_v1_commandReadResponse_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/rest/wireless/v1/docs/WirelessV1CommandReadResponseMeta.md b/rest/wireless/v1/docs/WirelessV1CommandReadResponseMeta.md new file mode 100644 index 000000000..8e3a3cd97 --- /dev/null +++ b/rest/wireless/v1/docs/WirelessV1CommandReadResponseMeta.md @@ -0,0 +1,17 @@ +# WirelessV1CommandReadResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/wireless/v1/docs/WirelessV1RatePlan.md b/rest/wireless/v1/docs/WirelessV1RatePlan.md new file mode 100644 index 000000000..ba2d81d18 --- /dev/null +++ b/rest/wireless/v1/docs/WirelessV1RatePlan.md @@ -0,0 +1,26 @@ +# WirelessV1RatePlan + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**DataEnabled** | **bool** | | [optional] +**DataLimit** | **int32** | | [optional] +**DataMetering** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**FriendlyName** | **string** | | [optional] +**InternationalRoaming** | **[]string** | | [optional] +**InternationalRoamingDataLimit** | **int32** | | [optional] +**MessagingEnabled** | **bool** | | [optional] +**NationalRoamingDataLimit** | **int32** | | [optional] +**NationalRoamingEnabled** | **bool** | | [optional] +**Sid** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **string** | | [optional] +**VoiceEnabled** | **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/rest/wireless/v1/docs/WirelessV1RatePlanReadResponse.md b/rest/wireless/v1/docs/WirelessV1RatePlanReadResponse.md new file mode 100644 index 000000000..58de1202d --- /dev/null +++ b/rest/wireless/v1/docs/WirelessV1RatePlanReadResponse.md @@ -0,0 +1,12 @@ +# WirelessV1RatePlanReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**WirelessV1CommandReadResponseMeta**](wireless_v1_commandReadResponse_meta.md) | | [optional] +**RatePlans** | [**[]WirelessV1RatePlan**](wireless.v1.rate_plan.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/rest/wireless/v1/docs/WirelessV1Sim.md b/rest/wireless/v1/docs/WirelessV1Sim.md new file mode 100644 index 000000000..38ad1dd21 --- /dev/null +++ b/rest/wireless/v1/docs/WirelessV1Sim.md @@ -0,0 +1,34 @@ +# WirelessV1Sim + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**CommandsCallbackMethod** | **string** | | [optional] +**CommandsCallbackUrl** | **string** | | [optional] +**DateCreated** | [**time.Time**](time.Time.md) | | [optional] +**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] +**EId** | **string** | | [optional] +**FriendlyName** | **string** | | [optional] +**Iccid** | **string** | | [optional] +**IpAddress** | **string** | | [optional] +**Links** | [**map[string]interface{}**](.md) | | [optional] +**RatePlanSid** | **string** | | [optional] +**ResetStatus** | **string** | | [optional] +**Sid** | **string** | | [optional] +**SmsFallbackMethod** | **string** | | [optional] +**SmsFallbackUrl** | **string** | | [optional] +**SmsMethod** | **string** | | [optional] +**SmsUrl** | **string** | | [optional] +**Status** | **string** | | [optional] +**UniqueName** | **string** | | [optional] +**Url** | **string** | | [optional] +**VoiceFallbackMethod** | **string** | | [optional] +**VoiceFallbackUrl** | **string** | | [optional] +**VoiceMethod** | **string** | | [optional] +**VoiceUrl** | **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/rest/wireless/v1/docs/WirelessV1SimDataSession.md b/rest/wireless/v1/docs/WirelessV1SimDataSession.md new file mode 100644 index 000000000..82e9d74cc --- /dev/null +++ b/rest/wireless/v1/docs/WirelessV1SimDataSession.md @@ -0,0 +1,26 @@ +# WirelessV1SimDataSession + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**CellId** | **string** | | [optional] +**CellLocationEstimate** | [**map[string]interface{}**](.md) | | [optional] +**End** | [**time.Time**](time.Time.md) | | [optional] +**Imei** | **string** | | [optional] +**LastUpdated** | [**time.Time**](time.Time.md) | | [optional] +**OperatorCountry** | **string** | | [optional] +**OperatorMcc** | **string** | | [optional] +**OperatorMnc** | **string** | | [optional] +**OperatorName** | **string** | | [optional] +**PacketsDownloaded** | **int32** | | [optional] +**PacketsUploaded** | **int32** | | [optional] +**RadioLink** | **string** | | [optional] +**Sid** | **string** | | [optional] +**SimSid** | **string** | | [optional] +**Start** | [**time.Time**](time.Time.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/rest/wireless/v1/docs/WirelessV1SimDataSessionReadResponse.md b/rest/wireless/v1/docs/WirelessV1SimDataSessionReadResponse.md new file mode 100644 index 000000000..2020aaffe --- /dev/null +++ b/rest/wireless/v1/docs/WirelessV1SimDataSessionReadResponse.md @@ -0,0 +1,12 @@ +# WirelessV1SimDataSessionReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DataSessions** | [**[]WirelessV1SimDataSession**](wireless.v1.sim.data_session.md) | | [optional] +**Meta** | [**WirelessV1CommandReadResponseMeta**](wireless_v1_commandReadResponse_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/rest/wireless/v1/docs/WirelessV1SimReadResponse.md b/rest/wireless/v1/docs/WirelessV1SimReadResponse.md new file mode 100644 index 000000000..1fc28dc8d --- /dev/null +++ b/rest/wireless/v1/docs/WirelessV1SimReadResponse.md @@ -0,0 +1,12 @@ +# WirelessV1SimReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**WirelessV1CommandReadResponseMeta**](wireless_v1_commandReadResponse_meta.md) | | [optional] +**Sims** | [**[]WirelessV1Sim**](wireless.v1.sim.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/rest/wireless/v1/docs/WirelessV1SimUsageRecord.md b/rest/wireless/v1/docs/WirelessV1SimUsageRecord.md new file mode 100644 index 000000000..23c85a6e1 --- /dev/null +++ b/rest/wireless/v1/docs/WirelessV1SimUsageRecord.md @@ -0,0 +1,15 @@ +# WirelessV1SimUsageRecord + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountSid** | **string** | | [optional] +**Commands** | [**map[string]interface{}**](.md) | | [optional] +**Data** | [**map[string]interface{}**](.md) | | [optional] +**Period** | [**map[string]interface{}**](.md) | | [optional] +**SimSid** | **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/rest/wireless/v1/docs/WirelessV1SimUsageRecordReadResponse.md b/rest/wireless/v1/docs/WirelessV1SimUsageRecordReadResponse.md new file mode 100644 index 000000000..6ba603f12 --- /dev/null +++ b/rest/wireless/v1/docs/WirelessV1SimUsageRecordReadResponse.md @@ -0,0 +1,12 @@ +# WirelessV1SimUsageRecordReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Meta** | [**WirelessV1CommandReadResponseMeta**](wireless_v1_commandReadResponse_meta.md) | | [optional] +**UsageRecords** | [**[]WirelessV1SimUsageRecord**](wireless.v1.sim.usage_record.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/rest/wireless/v1/model_create_command_request.go b/rest/wireless/v1/model_create_command_request.go new file mode 100644 index 000000000..dbe97a85e --- /dev/null +++ b/rest/wireless/v1/model_create_command_request.go @@ -0,0 +1,28 @@ +/* + * Twilio - Wireless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateCommandRequest struct for CreateCommandRequest +type CreateCommandRequest struct { + // The HTTP method we use to call `callback_url`. Can be: `POST` or `GET`, and the default is `POST`. + CallbackMethod string `json:"CallbackMethod,omitempty"` + // The URL we call using the `callback_url` when the Command has finished sending, whether the command was delivered or it failed. + CallbackUrl string `json:"CallbackUrl,omitempty"` + // The message body of the Command. Can be plain text in text mode or a Base64 encoded byte string in binary mode. + Command string `json:"Command"` + // The mode to use when sending the SMS message. Can be: `text` or `binary`. The default SMS mode is `text`. + CommandMode string `json:"CommandMode,omitempty"` + // Whether to request delivery receipt from the recipient. For Commands that request delivery receipt, the Command state transitions to 'delivered' once the server has received a delivery receipt from the device. The default value is `true`. + DeliveryReceiptRequested bool `json:"DeliveryReceiptRequested,omitempty"` + // Whether to include the SID of the command in the message body. Can be: `none`, `start`, or `end`, and the default behavior is `none`. When sending a Command to a SIM in text mode, we can automatically include the SID of the Command in the message body, which could be used to ensure that the device does not process the same Command more than once. A value of `start` will prepend the message with the Command SID, and `end` will append it to the end, separating the Command SID from the message body with a space. The length of the Command SID is included in the 160 character limit so the SMS body must be 128 characters or less before the Command SID is included. + IncludeSid string `json:"IncludeSid,omitempty"` + // The `sid` or `unique_name` of the [SIM](https://www.twilio.com/docs/wireless/api/sim-resource) to send the Command to. + Sim string `json:"Sim,omitempty"` +} diff --git a/rest/wireless/v1/model_create_rate_plan_request.go b/rest/wireless/v1/model_create_rate_plan_request.go new file mode 100644 index 000000000..d0f76c908 --- /dev/null +++ b/rest/wireless/v1/model_create_rate_plan_request.go @@ -0,0 +1,36 @@ +/* + * Twilio - Wireless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// CreateRatePlanRequest struct for CreateRatePlanRequest +type CreateRatePlanRequest struct { + // Whether SIMs can use GPRS/3G/4G/LTE data connectivity. + DataEnabled bool `json:"DataEnabled,omitempty"` + // The total data usage (download and upload combined) in Megabytes that the Network allows during one month on the home network (T-Mobile USA). The metering period begins the day of activation and ends on the same day in the following month. Can be up to 2TB and the default value is `1000`. + DataLimit int32 `json:"DataLimit,omitempty"` + // The model used to meter data usage. Can be: `payg` and `quota-1`, `quota-10`, and `quota-50`. Learn more about the available [data metering models](https://www.twilio.com/docs/wireless/api/rateplan-resource#payg-vs-quota-data-plans). + DataMetering string `json:"DataMetering,omitempty"` + // A descriptive string that you create to describe the resource. It does not have to be unique. + FriendlyName string `json:"FriendlyName,omitempty"` + // The list of services that SIMs capable of using GPRS/3G/4G/LTE data connectivity can use outside of the United States. Can be: `data`, `voice`, and `messaging`. + InternationalRoaming []string `json:"InternationalRoaming,omitempty"` + // The total data usage (download and upload combined) in Megabytes that the Network allows during one month when roaming outside the United States. Can be up to 2TB. + InternationalRoamingDataLimit int32 `json:"InternationalRoamingDataLimit,omitempty"` + // Whether SIMs can make, send, and receive SMS using [Commands](https://www.twilio.com/docs/wireless/api/command-resource). + MessagingEnabled bool `json:"MessagingEnabled,omitempty"` + // The total data usage (download and upload combined) in Megabytes that the Network allows during one month on non-home networks in the United States. The metering period begins the day of activation and ends on the same day in the following month. Can be up to 2TB. See [national roaming](https://www.twilio.com/docs/wireless/api/rateplan-resource#national-roaming) for more info. + NationalRoamingDataLimit int32 `json:"NationalRoamingDataLimit,omitempty"` + // Whether SIMs can roam on networks other than the home network (T-Mobile USA) in the United States. See [national roaming](https://www.twilio.com/docs/wireless/api/rateplan-resource#national-roaming). + NationalRoamingEnabled bool `json:"NationalRoamingEnabled,omitempty"` + // 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. + UniqueName string `json:"UniqueName,omitempty"` + // Whether SIMs can make and receive voice calls. + VoiceEnabled bool `json:"VoiceEnabled,omitempty"` +} diff --git a/rest/wireless/v1/model_update_rate_plan_request.go b/rest/wireless/v1/model_update_rate_plan_request.go new file mode 100644 index 000000000..3bf6ed7fa --- /dev/null +++ b/rest/wireless/v1/model_update_rate_plan_request.go @@ -0,0 +1,18 @@ +/* + * Twilio - Wireless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateRatePlanRequest struct for UpdateRatePlanRequest +type UpdateRatePlanRequest struct { + // A descriptive string that you create to describe the resource. It does not have to be unique. + FriendlyName string `json:"FriendlyName,omitempty"` + // 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. + UniqueName string `json:"UniqueName,omitempty"` +} diff --git a/rest/wireless/v1/model_update_sim_request.go b/rest/wireless/v1/model_update_sim_request.go new file mode 100644 index 000000000..2c568b891 --- /dev/null +++ b/rest/wireless/v1/model_update_sim_request.go @@ -0,0 +1,50 @@ +/* + * Twilio - Wireless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// UpdateSimRequest struct for UpdateSimRequest +type UpdateSimRequest struct { + // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) to which the Sim resource should belong. The Account SID can only be that of the requesting Account or that of a [Subaccount](https://www.twilio.com/docs/iam/api/subaccounts) of the requesting Account. Only valid when the Sim resource's status is `new`. For more information, see the [Move SIMs between Subaccounts documentation](https://www.twilio.com/docs/wireless/api/sim-resource#move-sims-between-subaccounts). + AccountSid string `json:"AccountSid,omitempty"` + // The HTTP method we should use to call `callback_url`. Can be: `POST` or `GET`. The default is `POST`. + CallbackMethod string `json:"CallbackMethod,omitempty"` + // The URL we should call using the `callback_url` when the SIM has finished updating. When the SIM transitions from `new` to `ready` or from any status to `deactivated`, we call this URL when the status changes to an intermediate status (`ready` or `deactivated`) and again when the status changes to its final status (`active` or `canceled`). + CallbackUrl string `json:"CallbackUrl,omitempty"` + // The HTTP method we should use to call `commands_callback_url`. Can be: `POST` or `GET`. The default is `POST`. + CommandsCallbackMethod string `json:"CommandsCallbackMethod,omitempty"` + // The URL we should call using the `commands_callback_method` when the SIM sends a [Command](https://www.twilio.com/docs/wireless/api/command-resource). Your server should respond with an HTTP status code in the 200 range; any response body is ignored. + CommandsCallbackUrl string `json:"CommandsCallbackUrl,omitempty"` + // A descriptive string that you create to describe the Sim resource. It does not need to be unique. + FriendlyName string `json:"FriendlyName,omitempty"` + // The SID or unique name of the [RatePlan resource](https://www.twilio.com/docs/wireless/api/rateplan-resource) to which the Sim resource should be assigned. + RatePlan string `json:"RatePlan,omitempty"` + // Initiate a connectivity reset on the SIM. Set to `resetting` to initiate a connectivity reset on the SIM. No other value is valid. + ResetStatus string `json:"ResetStatus,omitempty"` + // The HTTP method we should use to call `sms_fallback_url`. Can be: `GET` or `POST`. Default is `POST`. + SmsFallbackMethod string `json:"SmsFallbackMethod,omitempty"` + // The URL we should call using the `sms_fallback_method` when an error occurs while retrieving or executing the TwiML requested from `sms_url`. + SmsFallbackUrl string `json:"SmsFallbackUrl,omitempty"` + // The HTTP method we should use to call `sms_url`. Can be: `GET` or `POST`. Default is `POST`. + SmsMethod string `json:"SmsMethod,omitempty"` + // The URL we should call using the `sms_method` when the SIM-connected device sends an SMS message that is not a [Command](https://www.twilio.com/docs/wireless/api/command-resource). + SmsUrl string `json:"SmsUrl,omitempty"` + // The new status of the Sim resource. Can be: `ready`, `active`, `suspended`, or `deactivated`. + Status string `json:"Status,omitempty"` + // An application-defined string that uniquely identifies the resource. It can be used in place of the `sid` in the URL path to address the resource. + UniqueName string `json:"UniqueName,omitempty"` + // The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. + VoiceFallbackMethod string `json:"VoiceFallbackMethod,omitempty"` + // The URL we should call using the `voice_fallback_method` when an error occurs while retrieving or executing the TwiML requested from `voice_url`. + VoiceFallbackUrl string `json:"VoiceFallbackUrl,omitempty"` + // The HTTP method we should use when we call `voice_url`. Can be: `GET` or `POST`. + VoiceMethod string `json:"VoiceMethod,omitempty"` + // The URL we should call using the `voice_method` when the SIM-connected device makes a voice call. + VoiceUrl string `json:"VoiceUrl,omitempty"` +} diff --git a/rest/wireless/v1/model_wireless_v1_account_usage_record.go b/rest/wireless/v1/model_wireless_v1_account_usage_record.go new file mode 100644 index 000000000..e30caed1a --- /dev/null +++ b/rest/wireless/v1/model_wireless_v1_account_usage_record.go @@ -0,0 +1,18 @@ +/* + * Twilio - Wireless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// WirelessV1AccountUsageRecord struct for WirelessV1AccountUsageRecord +type WirelessV1AccountUsageRecord struct { + AccountSid string `json:"account_sid,omitempty"` + Commands map[string]interface{} `json:"commands,omitempty"` + Data map[string]interface{} `json:"data,omitempty"` + Period map[string]interface{} `json:"period,omitempty"` +} diff --git a/rest/wireless/v1/model_wireless_v1_account_usage_record_read_response.go b/rest/wireless/v1/model_wireless_v1_account_usage_record_read_response.go new file mode 100644 index 000000000..854847593 --- /dev/null +++ b/rest/wireless/v1/model_wireless_v1_account_usage_record_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Wireless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// WirelessV1AccountUsageRecordReadResponse struct for WirelessV1AccountUsageRecordReadResponse +type WirelessV1AccountUsageRecordReadResponse struct { + Meta WirelessV1CommandReadResponseMeta `json:"meta,omitempty"` + UsageRecords []WirelessV1AccountUsageRecord `json:"usage_records,omitempty"` +} diff --git a/rest/wireless/v1/model_wireless_v1_command.go b/rest/wireless/v1/model_wireless_v1_command.go new file mode 100644 index 000000000..627c3a204 --- /dev/null +++ b/rest/wireless/v1/model_wireless_v1_command.go @@ -0,0 +1,29 @@ +/* + * Twilio - Wireless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// WirelessV1Command struct for WirelessV1Command +type WirelessV1Command struct { + AccountSid string `json:"account_sid,omitempty"` + Command string `json:"command,omitempty"` + CommandMode string `json:"command_mode,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + DeliveryReceiptRequested bool `json:"delivery_receipt_requested,omitempty"` + Direction string `json:"direction,omitempty"` + Sid string `json:"sid,omitempty"` + SimSid string `json:"sim_sid,omitempty"` + Status string `json:"status,omitempty"` + Transport string `json:"transport,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/wireless/v1/model_wireless_v1_command_read_response.go b/rest/wireless/v1/model_wireless_v1_command_read_response.go new file mode 100644 index 000000000..7d3b70b19 --- /dev/null +++ b/rest/wireless/v1/model_wireless_v1_command_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Wireless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// WirelessV1CommandReadResponse struct for WirelessV1CommandReadResponse +type WirelessV1CommandReadResponse struct { + Commands []WirelessV1Command `json:"commands,omitempty"` + Meta WirelessV1CommandReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/wireless/v1/model_wireless_v1_command_read_response_meta.go b/rest/wireless/v1/model_wireless_v1_command_read_response_meta.go new file mode 100644 index 000000000..22b8011ef --- /dev/null +++ b/rest/wireless/v1/model_wireless_v1_command_read_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Wireless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// WirelessV1CommandReadResponseMeta struct for WirelessV1CommandReadResponseMeta +type WirelessV1CommandReadResponseMeta struct { + FirstPageUrl string `json:"first_page_url,omitempty"` + Key string `json:"key,omitempty"` + NextPageUrl string `json:"next_page_url,omitempty"` + Page int32 `json:"page,omitempty"` + PageSize int32 `json:"page_size,omitempty"` + PreviousPageUrl string `json:"previous_page_url,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/rest/wireless/v1/model_wireless_v1_rate_plan.go b/rest/wireless/v1/model_wireless_v1_rate_plan.go new file mode 100644 index 000000000..b2df1b543 --- /dev/null +++ b/rest/wireless/v1/model_wireless_v1_rate_plan.go @@ -0,0 +1,33 @@ +/* + * Twilio - Wireless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// WirelessV1RatePlan struct for WirelessV1RatePlan +type WirelessV1RatePlan struct { + AccountSid string `json:"account_sid,omitempty"` + DataEnabled bool `json:"data_enabled,omitempty"` + DataLimit int32 `json:"data_limit,omitempty"` + DataMetering string `json:"data_metering,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + InternationalRoaming []string `json:"international_roaming,omitempty"` + InternationalRoamingDataLimit int32 `json:"international_roaming_data_limit,omitempty"` + MessagingEnabled bool `json:"messaging_enabled,omitempty"` + NationalRoamingDataLimit int32 `json:"national_roaming_data_limit,omitempty"` + NationalRoamingEnabled bool `json:"national_roaming_enabled,omitempty"` + Sid string `json:"sid,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` + VoiceEnabled bool `json:"voice_enabled,omitempty"` +} diff --git a/rest/wireless/v1/model_wireless_v1_rate_plan_read_response.go b/rest/wireless/v1/model_wireless_v1_rate_plan_read_response.go new file mode 100644 index 000000000..8956e4c99 --- /dev/null +++ b/rest/wireless/v1/model_wireless_v1_rate_plan_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Wireless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// WirelessV1RatePlanReadResponse struct for WirelessV1RatePlanReadResponse +type WirelessV1RatePlanReadResponse struct { + Meta WirelessV1CommandReadResponseMeta `json:"meta,omitempty"` + RatePlans []WirelessV1RatePlan `json:"rate_plans,omitempty"` +} diff --git a/rest/wireless/v1/model_wireless_v1_sim.go b/rest/wireless/v1/model_wireless_v1_sim.go new file mode 100644 index 000000000..5aae32562 --- /dev/null +++ b/rest/wireless/v1/model_wireless_v1_sim.go @@ -0,0 +1,41 @@ +/* + * Twilio - Wireless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// WirelessV1Sim struct for WirelessV1Sim +type WirelessV1Sim struct { + AccountSid string `json:"account_sid,omitempty"` + CommandsCallbackMethod string `json:"commands_callback_method,omitempty"` + CommandsCallbackUrl string `json:"commands_callback_url,omitempty"` + DateCreated time.Time `json:"date_created,omitempty"` + DateUpdated time.Time `json:"date_updated,omitempty"` + EId string `json:"e_id,omitempty"` + FriendlyName string `json:"friendly_name,omitempty"` + Iccid string `json:"iccid,omitempty"` + IpAddress string `json:"ip_address,omitempty"` + Links map[string]interface{} `json:"links,omitempty"` + RatePlanSid string `json:"rate_plan_sid,omitempty"` + ResetStatus string `json:"reset_status,omitempty"` + Sid string `json:"sid,omitempty"` + SmsFallbackMethod string `json:"sms_fallback_method,omitempty"` + SmsFallbackUrl string `json:"sms_fallback_url,omitempty"` + SmsMethod string `json:"sms_method,omitempty"` + SmsUrl string `json:"sms_url,omitempty"` + Status string `json:"status,omitempty"` + UniqueName string `json:"unique_name,omitempty"` + Url string `json:"url,omitempty"` + VoiceFallbackMethod string `json:"voice_fallback_method,omitempty"` + VoiceFallbackUrl string `json:"voice_fallback_url,omitempty"` + VoiceMethod string `json:"voice_method,omitempty"` + VoiceUrl string `json:"voice_url,omitempty"` +} diff --git a/rest/wireless/v1/model_wireless_v1_sim_data_session.go b/rest/wireless/v1/model_wireless_v1_sim_data_session.go new file mode 100644 index 000000000..0bef2445b --- /dev/null +++ b/rest/wireless/v1/model_wireless_v1_sim_data_session.go @@ -0,0 +1,33 @@ +/* + * Twilio - Wireless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +import ( + "time" +) +// WirelessV1SimDataSession struct for WirelessV1SimDataSession +type WirelessV1SimDataSession struct { + AccountSid string `json:"account_sid,omitempty"` + CellId string `json:"cell_id,omitempty"` + CellLocationEstimate map[string]interface{} `json:"cell_location_estimate,omitempty"` + End time.Time `json:"end,omitempty"` + Imei string `json:"imei,omitempty"` + LastUpdated time.Time `json:"last_updated,omitempty"` + OperatorCountry string `json:"operator_country,omitempty"` + OperatorMcc string `json:"operator_mcc,omitempty"` + OperatorMnc string `json:"operator_mnc,omitempty"` + OperatorName string `json:"operator_name,omitempty"` + PacketsDownloaded int32 `json:"packets_downloaded,omitempty"` + PacketsUploaded int32 `json:"packets_uploaded,omitempty"` + RadioLink string `json:"radio_link,omitempty"` + Sid string `json:"sid,omitempty"` + SimSid string `json:"sim_sid,omitempty"` + Start time.Time `json:"start,omitempty"` +} diff --git a/rest/wireless/v1/model_wireless_v1_sim_data_session_read_response.go b/rest/wireless/v1/model_wireless_v1_sim_data_session_read_response.go new file mode 100644 index 000000000..a94d6ebf6 --- /dev/null +++ b/rest/wireless/v1/model_wireless_v1_sim_data_session_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Wireless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// WirelessV1SimDataSessionReadResponse struct for WirelessV1SimDataSessionReadResponse +type WirelessV1SimDataSessionReadResponse struct { + DataSessions []WirelessV1SimDataSession `json:"data_sessions,omitempty"` + Meta WirelessV1CommandReadResponseMeta `json:"meta,omitempty"` +} diff --git a/rest/wireless/v1/model_wireless_v1_sim_read_response.go b/rest/wireless/v1/model_wireless_v1_sim_read_response.go new file mode 100644 index 000000000..a4ecd47d7 --- /dev/null +++ b/rest/wireless/v1/model_wireless_v1_sim_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Wireless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// WirelessV1SimReadResponse struct for WirelessV1SimReadResponse +type WirelessV1SimReadResponse struct { + Meta WirelessV1CommandReadResponseMeta `json:"meta,omitempty"` + Sims []WirelessV1Sim `json:"sims,omitempty"` +} diff --git a/rest/wireless/v1/model_wireless_v1_sim_usage_record.go b/rest/wireless/v1/model_wireless_v1_sim_usage_record.go new file mode 100644 index 000000000..da633b016 --- /dev/null +++ b/rest/wireless/v1/model_wireless_v1_sim_usage_record.go @@ -0,0 +1,19 @@ +/* + * Twilio - Wireless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// WirelessV1SimUsageRecord struct for WirelessV1SimUsageRecord +type WirelessV1SimUsageRecord struct { + AccountSid string `json:"account_sid,omitempty"` + Commands map[string]interface{} `json:"commands,omitempty"` + Data map[string]interface{} `json:"data,omitempty"` + Period map[string]interface{} `json:"period,omitempty"` + SimSid string `json:"sim_sid,omitempty"` +} diff --git a/rest/wireless/v1/model_wireless_v1_sim_usage_record_read_response.go b/rest/wireless/v1/model_wireless_v1_sim_usage_record_read_response.go new file mode 100644 index 000000000..38f3a730e --- /dev/null +++ b/rest/wireless/v1/model_wireless_v1_sim_usage_record_read_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Wireless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// WirelessV1SimUsageRecordReadResponse struct for WirelessV1SimUsageRecordReadResponse +type WirelessV1SimUsageRecordReadResponse struct { + Meta WirelessV1CommandReadResponseMeta `json:"meta,omitempty"` + UsageRecords []WirelessV1SimUsageRecord `json:"usage_records,omitempty"` +} diff --git a/rest/wireless/v1/response.go b/rest/wireless/v1/response.go new file mode 100644 index 000000000..a30e90343 --- /dev/null +++ b/rest/wireless/v1/response.go @@ -0,0 +1,47 @@ +/* + * Twilio - Wireless + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// Response returns a new APIResponse object. +func Response(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// ResponseWithError returns a new APIResponse object with the provided error message. +func ResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} From ce539995dc13df8b385e0f7b51372a10d0448c86 Mon Sep 17 00:00:00 2001 From: Shwetha Radhakrishna Date: Fri, 15 Jan 2021 08:48:39 -0700 Subject: [PATCH 02/20] Removing duplicates --- studio/v2/.openapi-generator-ignore | 23 - studio/v2/.openapi-generator/FILES | 15 - studio/v2/.openapi-generator/VERSION | 1 - studio/v2/README.md | 72 -- studio/v2/api_default.go | 236 ---- studio/v2/docs/DefaultApi.md | 218 ---- studio/v2/docs/InlineObject.md | 14 - studio/v2/docs/InlineObject1.md | 14 - studio/v2/docs/InlineResponse200.md | 12 - studio/v2/docs/InlineResponse200Meta.md | 17 - studio/v2/docs/StudioV2Flow.md | 25 - studio/v2/model_inline_object.go | 22 - studio/v2/model_inline_object_1.go | 22 - studio/v2/model_inline_response_200.go | 16 - studio/v2/model_inline_response_200_meta.go | 21 - studio/v2/model_studio_v2_flow.go | 32 - studio/v2/response.go | 47 - verify/.openapi-generator-ignore | 23 - verify/.openapi-generator/FILES | 90 -- verify/.openapi-generator/VERSION | 1 - verify/README.md | 146 --- verify/api_ga.go | 1074 ----------------- verify/api_preview.go | 930 -------------- verify/api_service.go | 29 - verify/docs/GAApi.md | 1069 ---------------- verify/docs/InlineObject.md | 20 - verify/docs/InlineObject1.md | 12 - verify/docs/InlineObject10.md | 12 - verify/docs/InlineObject11.md | 12 - verify/docs/InlineObject12.md | 11 - verify/docs/InlineObject13.md | 15 - verify/docs/InlineObject14.md | 22 - verify/docs/InlineObject15.md | 11 - verify/docs/InlineObject16.md | 14 - verify/docs/InlineObject17.md | 14 - verify/docs/InlineObject18.md | 20 - verify/docs/InlineObject2.md | 11 - verify/docs/InlineObject3.md | 14 - verify/docs/InlineObject4.md | 11 - verify/docs/InlineObject5.md | 14 - verify/docs/InlineObject6.md | 13 - verify/docs/InlineObject7.md | 12 - verify/docs/InlineObject8.md | 11 - verify/docs/InlineObject9.md | 12 - verify/docs/InlineResponse200.md | 12 - verify/docs/InlineResponse2001.md | 12 - verify/docs/InlineResponse2002.md | 12 - verify/docs/InlineResponse2003.md | 12 - verify/docs/InlineResponse2004.md | 12 - verify/docs/InlineResponse2005.md | 12 - verify/docs/InlineResponse2006.md | 12 - verify/docs/InlineResponse2007.md | 12 - verify/docs/InlineResponse200Meta.md | 17 - verify/docs/PreviewApi.md | 954 --------------- verify/docs/VerifyV2Form.md | 14 - verify/docs/VerifyV2Service.md | 26 - verify/docs/VerifyV2ServiceAccessToken.md | 11 - verify/docs/VerifyV2ServiceEntity.md | 18 - verify/docs/VerifyV2ServiceEntityChallenge.md | 26 - verify/docs/VerifyV2ServiceEntityFactor.md | 22 - .../VerifyV2ServiceMessagingConfiguration.md | 17 - verify/docs/VerifyV2ServiceRateLimit.md | 19 - verify/docs/VerifyV2ServiceRateLimitBucket.md | 19 - verify/docs/VerifyV2ServiceVerification.md | 24 - .../docs/VerifyV2ServiceVerificationCheck.md | 21 - verify/docs/VerifyV2ServiceWebhook.md | 21 - verify/go.mod | 4 - verify/go.sum | 11 - verify/model_inline_object.go | 34 - verify/model_inline_object_1.go | 18 - verify/model_inline_object_10.go | 18 - verify/model_inline_object_11.go | 18 - verify/model_inline_object_12.go | 16 - verify/model_inline_object_13.go | 24 - verify/model_inline_object_14.go | 38 - verify/model_inline_object_15.go | 16 - verify/model_inline_object_16.go | 22 - verify/model_inline_object_17.go | 22 - verify/model_inline_object_18.go | 34 - verify/model_inline_object_2.go | 16 - verify/model_inline_object_3.go | 25 - verify/model_inline_object_4.go | 16 - verify/model_inline_object_5.go | 22 - verify/model_inline_object_6.go | 20 - verify/model_inline_object_7.go | 18 - verify/model_inline_object_8.go | 16 - verify/model_inline_object_9.go | 18 - verify/model_inline_response_200.go | 16 - verify/model_inline_response_200_1.go | 16 - verify/model_inline_response_200_2.go | 16 - verify/model_inline_response_200_3.go | 16 - verify/model_inline_response_200_4.go | 16 - verify/model_inline_response_200_5.go | 16 - verify/model_inline_response_200_6.go | 16 - verify/model_inline_response_200_7.go | 16 - verify/model_inline_response_200_meta.go | 21 - verify/model_verify_v2_form.go | 18 - verify/model_verify_v2_service.go | 33 - .../model_verify_v2_service_access_token.go | 15 - verify/model_verify_v2_service_entity.go | 25 - ...odel_verify_v2_service_entity_challenge.go | 33 - .../model_verify_v2_service_entity_factor.go | 29 - ...rify_v2_service_messaging_configuration.go | 24 - verify/model_verify_v2_service_rate_limit.go | 26 - ...del_verify_v2_service_rate_limit_bucket.go | 26 - .../model_verify_v2_service_verification.go | 31 - ...el_verify_v2_service_verification_check.go | 28 - verify/model_verify_v2_service_webhook.go | 28 - verify/response.go | 47 - 109 files changed, 6673 deletions(-) delete mode 100644 studio/v2/.openapi-generator-ignore delete mode 100644 studio/v2/.openapi-generator/FILES delete mode 100644 studio/v2/.openapi-generator/VERSION delete mode 100644 studio/v2/README.md delete mode 100644 studio/v2/api_default.go delete mode 100644 studio/v2/docs/DefaultApi.md delete mode 100644 studio/v2/docs/InlineObject.md delete mode 100644 studio/v2/docs/InlineObject1.md delete mode 100644 studio/v2/docs/InlineResponse200.md delete mode 100644 studio/v2/docs/InlineResponse200Meta.md delete mode 100644 studio/v2/docs/StudioV2Flow.md delete mode 100644 studio/v2/model_inline_object.go delete mode 100644 studio/v2/model_inline_object_1.go delete mode 100644 studio/v2/model_inline_response_200.go delete mode 100644 studio/v2/model_inline_response_200_meta.go delete mode 100644 studio/v2/model_studio_v2_flow.go delete mode 100644 studio/v2/response.go delete mode 100644 verify/.openapi-generator-ignore delete mode 100644 verify/.openapi-generator/FILES delete mode 100644 verify/.openapi-generator/VERSION delete mode 100644 verify/README.md delete mode 100644 verify/api_ga.go delete mode 100644 verify/api_preview.go delete mode 100644 verify/api_service.go delete mode 100644 verify/docs/GAApi.md delete mode 100644 verify/docs/InlineObject.md delete mode 100644 verify/docs/InlineObject1.md delete mode 100644 verify/docs/InlineObject10.md delete mode 100644 verify/docs/InlineObject11.md delete mode 100644 verify/docs/InlineObject12.md delete mode 100644 verify/docs/InlineObject13.md delete mode 100644 verify/docs/InlineObject14.md delete mode 100644 verify/docs/InlineObject15.md delete mode 100644 verify/docs/InlineObject16.md delete mode 100644 verify/docs/InlineObject17.md delete mode 100644 verify/docs/InlineObject18.md delete mode 100644 verify/docs/InlineObject2.md delete mode 100644 verify/docs/InlineObject3.md delete mode 100644 verify/docs/InlineObject4.md delete mode 100644 verify/docs/InlineObject5.md delete mode 100644 verify/docs/InlineObject6.md delete mode 100644 verify/docs/InlineObject7.md delete mode 100644 verify/docs/InlineObject8.md delete mode 100644 verify/docs/InlineObject9.md delete mode 100644 verify/docs/InlineResponse200.md delete mode 100644 verify/docs/InlineResponse2001.md delete mode 100644 verify/docs/InlineResponse2002.md delete mode 100644 verify/docs/InlineResponse2003.md delete mode 100644 verify/docs/InlineResponse2004.md delete mode 100644 verify/docs/InlineResponse2005.md delete mode 100644 verify/docs/InlineResponse2006.md delete mode 100644 verify/docs/InlineResponse2007.md delete mode 100644 verify/docs/InlineResponse200Meta.md delete mode 100644 verify/docs/PreviewApi.md delete mode 100644 verify/docs/VerifyV2Form.md delete mode 100644 verify/docs/VerifyV2Service.md delete mode 100644 verify/docs/VerifyV2ServiceAccessToken.md delete mode 100644 verify/docs/VerifyV2ServiceEntity.md delete mode 100644 verify/docs/VerifyV2ServiceEntityChallenge.md delete mode 100644 verify/docs/VerifyV2ServiceEntityFactor.md delete mode 100644 verify/docs/VerifyV2ServiceMessagingConfiguration.md delete mode 100644 verify/docs/VerifyV2ServiceRateLimit.md delete mode 100644 verify/docs/VerifyV2ServiceRateLimitBucket.md delete mode 100644 verify/docs/VerifyV2ServiceVerification.md delete mode 100644 verify/docs/VerifyV2ServiceVerificationCheck.md delete mode 100644 verify/docs/VerifyV2ServiceWebhook.md delete mode 100644 verify/go.mod delete mode 100644 verify/go.sum delete mode 100644 verify/model_inline_object.go delete mode 100644 verify/model_inline_object_1.go delete mode 100644 verify/model_inline_object_10.go delete mode 100644 verify/model_inline_object_11.go delete mode 100644 verify/model_inline_object_12.go delete mode 100644 verify/model_inline_object_13.go delete mode 100644 verify/model_inline_object_14.go delete mode 100644 verify/model_inline_object_15.go delete mode 100644 verify/model_inline_object_16.go delete mode 100644 verify/model_inline_object_17.go delete mode 100644 verify/model_inline_object_18.go delete mode 100644 verify/model_inline_object_2.go delete mode 100644 verify/model_inline_object_3.go delete mode 100644 verify/model_inline_object_4.go delete mode 100644 verify/model_inline_object_5.go delete mode 100644 verify/model_inline_object_6.go delete mode 100644 verify/model_inline_object_7.go delete mode 100644 verify/model_inline_object_8.go delete mode 100644 verify/model_inline_object_9.go delete mode 100644 verify/model_inline_response_200.go delete mode 100644 verify/model_inline_response_200_1.go delete mode 100644 verify/model_inline_response_200_2.go delete mode 100644 verify/model_inline_response_200_3.go delete mode 100644 verify/model_inline_response_200_4.go delete mode 100644 verify/model_inline_response_200_5.go delete mode 100644 verify/model_inline_response_200_6.go delete mode 100644 verify/model_inline_response_200_7.go delete mode 100644 verify/model_inline_response_200_meta.go delete mode 100644 verify/model_verify_v2_form.go delete mode 100644 verify/model_verify_v2_service.go delete mode 100644 verify/model_verify_v2_service_access_token.go delete mode 100644 verify/model_verify_v2_service_entity.go delete mode 100644 verify/model_verify_v2_service_entity_challenge.go delete mode 100644 verify/model_verify_v2_service_entity_factor.go delete mode 100644 verify/model_verify_v2_service_messaging_configuration.go delete mode 100644 verify/model_verify_v2_service_rate_limit.go delete mode 100644 verify/model_verify_v2_service_rate_limit_bucket.go delete mode 100644 verify/model_verify_v2_service_verification.go delete mode 100644 verify/model_verify_v2_service_verification_check.go delete mode 100644 verify/model_verify_v2_service_webhook.go delete mode 100644 verify/response.go diff --git a/studio/v2/.openapi-generator-ignore b/studio/v2/.openapi-generator-ignore deleted file mode 100644 index 7484ee590..000000000 --- a/studio/v2/.openapi-generator-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# 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/studio/v2/.openapi-generator/FILES b/studio/v2/.openapi-generator/FILES deleted file mode 100644 index 6c91cd792..000000000 --- a/studio/v2/.openapi-generator/FILES +++ /dev/null @@ -1,15 +0,0 @@ -.openapi-generator-ignore -README.md -api_default.go -docs/DefaultApi.md -docs/InlineObject.md -docs/InlineObject1.md -docs/InlineResponse200.md -docs/InlineResponse200Meta.md -docs/StudioV2Flow.md -model_inline_object.go -model_inline_object_1.go -model_inline_response_200.go -model_inline_response_200_meta.go -model_studio_v2_flow.go -response.go diff --git a/studio/v2/.openapi-generator/VERSION b/studio/v2/.openapi-generator/VERSION deleted file mode 100644 index d99e7162d..000000000 --- a/studio/v2/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -5.0.0-SNAPSHOT \ No newline at end of file diff --git a/studio/v2/README.md b/studio/v2/README.md deleted file mode 100644 index 4e1b4a92e..000000000 --- a/studio/v2/README.md +++ /dev/null @@ -1,72 +0,0 @@ -# Go API client for openapi - -This is the public Twilio REST API. - -## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - -- API version: 1.0.0 -- Package version: 1.0.0 -- Build package: com.twilio.oai.TwilioGoGenerator -For more information, please visit [https://support.twilio.com](https://support.twilio.com) - -## Installation - -Install the following dependencies: - -```shell -go get github.com/stretchr/testify/assert -go get golang.org/x/net/context -``` - -Put the package under your project folder and add the following in import: - -```golang -import "./openapi" -``` - -## Documentation for API Endpoints - -All URIs are relative to *http://localhost* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*DefaultApi* | [**FlowsCreate**](docs/DefaultApi.md#flowscreate) | **Post** /v2/Flows | -*DefaultApi* | [**FlowsDelete**](docs/DefaultApi.md#flowsdelete) | **Delete** /v2/Flows/{Sid} | -*DefaultApi* | [**FlowsList**](docs/DefaultApi.md#flowslist) | **Get** /v2/Flows | -*DefaultApi* | [**FlowsRead**](docs/DefaultApi.md#flowsread) | **Get** /v2/Flows/{Sid} | -*DefaultApi* | [**FlowsUpdate**](docs/DefaultApi.md#flowsupdate) | **Post** /v2/Flows/{Sid} | - - -## Documentation For Models - - - [InlineObject](docs/InlineObject.md) - - [InlineObject1](docs/InlineObject1.md) - - [InlineResponse200](docs/InlineResponse200.md) - - [InlineResponse200Meta](docs/InlineResponse200Meta.md) - - [StudioV2Flow](docs/StudioV2Flow.md) - - -## Documentation For Authorization - - - -## accountSid_authToken - -- **Type**: HTTP basic authentication - -Example - -```golang -auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ - UserName: "username", - Password: "password", -}) -r, err := client.Service.Operation(auth, args) -``` - - -## Author - -support@twilio.com - diff --git a/studio/v2/api_default.go b/studio/v2/api_default.go deleted file mode 100644 index 2a2e9c778..000000000 --- a/studio/v2/api_default.go +++ /dev/null @@ -1,236 +0,0 @@ -/* - * Twilio - Studio - * - * This is the public Twilio REST API. - * - * API version: 1.0.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi - -import ( - "encoding/json" - "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" -) - -type DefaultApiService struct { - baseURL string - client *twilio.Client -} - -func NewDefaultApiService(client *twilio.Client) *DefaultApiService { - return &DefaultApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } -} - -// FlowsCreateParams Optional parameters for the method 'FlowsCreate' -type FlowsCreateParams struct { - CommitMessage *string `json:"CommitMessage,omitempty"` - Definition *map[string]interface{} `json:"Definition,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Status *string `json:"Status,omitempty"` -} - -/* -FlowsCreate Method for FlowsCreate -Create a Flow. - * @param optional nil or *FlowsCreateOpts - Optional Parameters: - * @param "CommitMessage" (string) - Description on change made in the revision. - * @param "Definition" (map[string]interface{}) - JSON representation of flow definition. - * @param "FriendlyName" (string) - The string that you assigned to describe the Flow. - * @param "Status" (string) - The status of the Flow. Can be: `draft` or `published`. -@return StudioV2Flow -*/ -func (c *DefaultApiService) FlowsCreate(params *FlowsCreateParams) (*StudioV2Flow, error) { - path := "/v2/Flows" - - data := url.Values{} - headers := 0 - - if params != nil && params.CommitMessage != nil { - data.Set("CommitMessage", *params.CommitMessage) - } - if params != nil && params.Definition != nil { - v, err := json.Marshal(params.Definition) - - if err != nil { - return nil, err - } - - data.Set("Definition", string(v)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &StudioV2Flow{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} - -/* -FlowsDelete Method for FlowsDelete -Delete a specific Flow. - * @param sid The SID of the Flow resource to delete. -*/ -func (c *DefaultApiService) FlowsDelete(sid string) error { - path := "/v2/Flows/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := 0 - headers := 0 - - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } - - defer resp.Body.Close() - - return nil -} - -// FlowsListParams Optional parameters for the method 'FlowsList' -type FlowsListParams struct { - PageSize *int32 `json:"PageSize,omitempty"` -} - -/* -FlowsList Method for FlowsList -Retrieve a list of all Flows. - * @param optional nil or *FlowsListOpts - Optional Parameters: - * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return InlineResponse200 -*/ -func (c *DefaultApiService) FlowsList(params *FlowsListParams) (*InlineResponse200, error) { - path := "/v2/Flows" - - data := url.Values{} - headers := 0 - - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &InlineResponse200{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} - -/* -FlowsRead Method for FlowsRead -Retrieve a specific Flow. - * @param sid The SID of the Flow resource to fetch. -@return StudioV2Flow -*/ -func (c *DefaultApiService) FlowsRead(sid string) (*StudioV2Flow, error) { - path := "/v2/Flows/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := 0 - headers := 0 - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &StudioV2Flow{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} - -// FlowsUpdateParams Optional parameters for the method 'FlowsUpdate' -type FlowsUpdateParams struct { - CommitMessage *string `json:"CommitMessage,omitempty"` - Definition *map[string]interface{} `json:"Definition,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Status *string `json:"Status,omitempty"` -} - -/* -FlowsUpdate Method for FlowsUpdate -Update a Flow. - * @param sid The SID of the Flow resource to fetch. - * @param optional nil or *FlowsUpdateOpts - Optional Parameters: - * @param "CommitMessage" (string) - Description on change made in the revision. - * @param "Definition" (map[string]interface{}) - JSON representation of flow definition. - * @param "FriendlyName" (string) - The string that you assigned to describe the Flow. - * @param "Status" (string) - The status of the Flow. Can be: `draft` or `published`. -@return StudioV2Flow -*/ -func (c *DefaultApiService) FlowsUpdate(sid string, params *FlowsUpdateParams) (*StudioV2Flow, error) { - path := "/v2/Flows/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.CommitMessage != nil { - data.Set("CommitMessage", *params.CommitMessage) - } - if params != nil && params.Definition != nil { - v, err := json.Marshal(params.Definition) - - if err != nil { - return nil, err - } - - data.Set("Definition", string(v)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &StudioV2Flow{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} diff --git a/studio/v2/docs/DefaultApi.md b/studio/v2/docs/DefaultApi.md deleted file mode 100644 index cb6cd2996..000000000 --- a/studio/v2/docs/DefaultApi.md +++ /dev/null @@ -1,218 +0,0 @@ -# \DefaultApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**FlowsCreate**](DefaultApi.md#FlowsCreate) | **Post** /v2/Flows | -[**FlowsDelete**](DefaultApi.md#FlowsDelete) | **Delete** /v2/Flows/{Sid} | -[**FlowsList**](DefaultApi.md#FlowsList) | **Get** /v2/Flows | -[**FlowsRead**](DefaultApi.md#FlowsRead) | **Get** /v2/Flows/{Sid} | -[**FlowsUpdate**](DefaultApi.md#FlowsUpdate) | **Post** /v2/Flows/{Sid} | - - - -## FlowsCreate - -> StudioV2Flow FlowsCreate(ctx, optional) - - - -Create a Flow. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **optional** | ***FlowsCreateOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a FlowsCreateOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **commitMessage** | **optional.**| Description on change made in the revision. | - **definition** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| JSON representation of flow definition. | - **friendlyName** | **optional.**| The string that you assigned to describe the Flow. | - **status** | **optional.**| The status of the Flow. Can be: `draft` or `published`. | - -### Return type - -[**StudioV2Flow**](studio.v2.flow.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) - - -## FlowsDelete - -> FlowsDelete(ctx, sid) - - - -Delete a specific Flow. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Flow resource to delete. | - -### 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) - - -## FlowsList - -> InlineResponse200 FlowsList(ctx, optional) - - - -Retrieve a list of all Flows. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **optional** | ***FlowsListOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a FlowsListOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | - -### Return type - -[**InlineResponse200**](inline_response_200.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) - - -## FlowsRead - -> StudioV2Flow FlowsRead(ctx, sid) - - - -Retrieve a specific Flow. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Flow resource to fetch. | - -### Return type - -[**StudioV2Flow**](studio.v2.flow.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) - - -## FlowsUpdate - -> StudioV2Flow FlowsUpdate(ctx, sid, optional) - - - -Update a Flow. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Flow resource to fetch. | - **optional** | ***FlowsUpdateOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a FlowsUpdateOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **commitMessage** | **optional.**| Description on change made in the revision. | - **definition** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| JSON representation of flow definition. | - **friendlyName** | **optional.**| The string that you assigned to describe the Flow. | - **status** | **optional.**| The status of the Flow. Can be: `draft` or `published`. | - -### Return type - -[**StudioV2Flow**](studio.v2.flow.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/studio/v2/docs/InlineObject.md b/studio/v2/docs/InlineObject.md deleted file mode 100644 index ee29758a4..000000000 --- a/studio/v2/docs/InlineObject.md +++ /dev/null @@ -1,14 +0,0 @@ -# InlineObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CommitMessage** | **string** | Description on change made in the revision. | [optional] -**Definition** | **map[string]interface{}** | JSON representation of flow definition. | -**FriendlyName** | **string** | The string that you assigned to describe the Flow. | -**Status** | **string** | The status of the Flow. Can be: `draft` or `published`. | - -[[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/studio/v2/docs/InlineObject1.md b/studio/v2/docs/InlineObject1.md deleted file mode 100644 index cdb2ce951..000000000 --- a/studio/v2/docs/InlineObject1.md +++ /dev/null @@ -1,14 +0,0 @@ -# InlineObject1 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CommitMessage** | **string** | Description on change made in the revision. | [optional] -**Definition** | **map[string]interface{}** | JSON representation of flow definition. | [optional] -**FriendlyName** | **string** | The string that you assigned to describe the Flow. | [optional] -**Status** | **string** | The status of the Flow. Can be: `draft` or `published`. | - -[[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/studio/v2/docs/InlineResponse200.md b/studio/v2/docs/InlineResponse200.md deleted file mode 100644 index 09792d6b5..000000000 --- a/studio/v2/docs/InlineResponse200.md +++ /dev/null @@ -1,12 +0,0 @@ -# InlineResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Flows** | [**[]StudioV2Flow**](studio.v2.flow.md) | | [optional] -**Meta** | [**InlineResponse200Meta**](inline_response_200_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/studio/v2/docs/InlineResponse200Meta.md b/studio/v2/docs/InlineResponse200Meta.md deleted file mode 100644 index cfde5a387..000000000 --- a/studio/v2/docs/InlineResponse200Meta.md +++ /dev/null @@ -1,17 +0,0 @@ -# InlineResponse200Meta - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FirstPageUrl** | **string** | | [optional] -**Key** | **string** | | [optional] -**NextPageUrl** | **string** | | [optional] -**Page** | **int32** | | [optional] -**PageSize** | **int32** | | [optional] -**PreviousPageUrl** | **string** | | [optional] -**Url** | **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/studio/v2/docs/StudioV2Flow.md b/studio/v2/docs/StudioV2Flow.md deleted file mode 100644 index 9b646bac4..000000000 --- a/studio/v2/docs/StudioV2Flow.md +++ /dev/null @@ -1,25 +0,0 @@ -# StudioV2Flow - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AccountSid** | **string** | | [optional] -**CommitMessage** | **string** | | [optional] -**DateCreated** | [**time.Time**](time.Time.md) | | [optional] -**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] -**Definition** | **map[string]interface{}** | | [optional] -**Errors** | **[]map[string]interface{}** | | [optional] -**FriendlyName** | **string** | | [optional] -**Links** | **map[string]interface{}** | | [optional] -**Revision** | **int32** | | [optional] -**Sid** | **string** | | [optional] -**Status** | **string** | | [optional] -**Url** | **string** | | [optional] -**Valid** | **bool** | | [optional] -**Warnings** | **[]map[string]interface{}** | | [optional] -**WebhookUrl** | **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/studio/v2/model_inline_object.go b/studio/v2/model_inline_object.go deleted file mode 100644 index 37410495a..000000000 --- a/studio/v2/model_inline_object.go +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Twilio - Studio - * - * This is the public Twilio REST API. - * - * API version: 1.0.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// InlineObject struct for InlineObject -type InlineObject struct { - // Description on change made in the revision. - CommitMessage string `json:"CommitMessage,omitempty"` - // JSON representation of flow definition. - Definition map[string]interface{} `json:"Definition"` - // The string that you assigned to describe the Flow. - FriendlyName string `json:"FriendlyName"` - // The status of the Flow. Can be: `draft` or `published`. - Status string `json:"Status"` -} diff --git a/studio/v2/model_inline_object_1.go b/studio/v2/model_inline_object_1.go deleted file mode 100644 index 10e5294d5..000000000 --- a/studio/v2/model_inline_object_1.go +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Twilio - Studio - * - * This is the public Twilio REST API. - * - * API version: 1.0.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// InlineObject1 struct for InlineObject1 -type InlineObject1 struct { - // Description on change made in the revision. - CommitMessage string `json:"CommitMessage,omitempty"` - // JSON representation of flow definition. - Definition map[string]interface{} `json:"Definition,omitempty"` - // The string that you assigned to describe the Flow. - FriendlyName string `json:"FriendlyName,omitempty"` - // The status of the Flow. Can be: `draft` or `published`. - Status string `json:"Status"` -} diff --git a/studio/v2/model_inline_response_200.go b/studio/v2/model_inline_response_200.go deleted file mode 100644 index 60b60440b..000000000 --- a/studio/v2/model_inline_response_200.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Studio - * - * This is the public Twilio REST API. - * - * API version: 1.0.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// InlineResponse200 struct for InlineResponse200 -type InlineResponse200 struct { - Flows []StudioV2Flow `json:"flows,omitempty"` - Meta InlineResponse200Meta `json:"meta,omitempty"` -} diff --git a/studio/v2/model_inline_response_200_meta.go b/studio/v2/model_inline_response_200_meta.go deleted file mode 100644 index 27908f4f2..000000000 --- a/studio/v2/model_inline_response_200_meta.go +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Twilio - Studio - * - * This is the public Twilio REST API. - * - * API version: 1.0.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// InlineResponse200Meta struct for InlineResponse200Meta -type InlineResponse200Meta struct { - FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` - NextPageUrl string `json:"next_page_url,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUrl string `json:"previous_page_url,omitempty"` - Url string `json:"url,omitempty"` -} diff --git a/studio/v2/model_studio_v2_flow.go b/studio/v2/model_studio_v2_flow.go deleted file mode 100644 index ae15631c9..000000000 --- a/studio/v2/model_studio_v2_flow.go +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Twilio - Studio - * - * This is the public Twilio REST API. - * - * API version: 1.0.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -import ( - "time" -) -// StudioV2Flow struct for StudioV2Flow -type StudioV2Flow struct { - AccountSid string `json:"account_sid,omitempty"` - CommitMessage string `json:"commit_message,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Definition map[string]interface{} `json:"definition,omitempty"` - Errors []map[string]interface{} `json:"errors,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Revision int32 `json:"revision,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - Url string `json:"url,omitempty"` - Valid bool `json:"valid,omitempty"` - Warnings []map[string]interface{} `json:"warnings,omitempty"` - WebhookUrl string `json:"webhook_url,omitempty"` -} diff --git a/studio/v2/response.go b/studio/v2/response.go deleted file mode 100644 index aab8f0dcf..000000000 --- a/studio/v2/response.go +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Twilio - Studio - * - * This is the public Twilio REST API. - * - * API version: 1.0.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi - -import ( - "net/http" -) - -// APIResponse stores the API response returned by the server. -type APIResponse struct { - *http.Response `json:"-"` - Message string `json:"message,omitempty"` - // Operation is the name of the OpenAPI operation. - Operation string `json:"operation,omitempty"` - // RequestURL is the request URL. This value is always available, even if the - // embedded *http.Response is nil. - RequestURL string `json:"url,omitempty"` - // Method is the HTTP method used for the request. This value is always - // available, even if the embedded *http.Response is nil. - Method string `json:"method,omitempty"` - // Payload holds the contents of the response body (which may be nil or empty). - // This is provided here as the raw response.Body() reader will have already - // been drained. - Payload []byte `json:"-"` -} - -// NewAPIResponse returns a new APIResponse object. -func NewAPIResponse(r *http.Response) *APIResponse { - - response := &APIResponse{Response: r} - return response -} - -// NewAPIResponseWithError returns a new APIResponse object with the provided error message. -func NewAPIResponseWithError(errorMessage string) *APIResponse { - - response := &APIResponse{Message: errorMessage} - return response -} diff --git a/verify/.openapi-generator-ignore b/verify/.openapi-generator-ignore deleted file mode 100644 index 7484ee590..000000000 --- a/verify/.openapi-generator-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# 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/verify/.openapi-generator/FILES b/verify/.openapi-generator/FILES deleted file mode 100644 index b811a9ad1..000000000 --- a/verify/.openapi-generator/FILES +++ /dev/null @@ -1,90 +0,0 @@ -.openapi-generator-ignore -README.md -api_ga.go -api_preview.go -api_service.go -docs/GAApi.md -docs/InlineObject.md -docs/InlineObject1.md -docs/InlineObject10.md -docs/InlineObject11.md -docs/InlineObject12.md -docs/InlineObject13.md -docs/InlineObject14.md -docs/InlineObject15.md -docs/InlineObject16.md -docs/InlineObject17.md -docs/InlineObject18.md -docs/InlineObject2.md -docs/InlineObject3.md -docs/InlineObject4.md -docs/InlineObject5.md -docs/InlineObject6.md -docs/InlineObject7.md -docs/InlineObject8.md -docs/InlineObject9.md -docs/InlineResponse200.md -docs/InlineResponse2001.md -docs/InlineResponse2002.md -docs/InlineResponse2003.md -docs/InlineResponse2004.md -docs/InlineResponse2005.md -docs/InlineResponse2006.md -docs/InlineResponse2007.md -docs/InlineResponse200Meta.md -docs/PreviewApi.md -docs/VerifyV2Form.md -docs/VerifyV2Service.md -docs/VerifyV2ServiceAccessToken.md -docs/VerifyV2ServiceEntity.md -docs/VerifyV2ServiceEntityChallenge.md -docs/VerifyV2ServiceEntityFactor.md -docs/VerifyV2ServiceMessagingConfiguration.md -docs/VerifyV2ServiceRateLimit.md -docs/VerifyV2ServiceRateLimitBucket.md -docs/VerifyV2ServiceVerification.md -docs/VerifyV2ServiceVerificationCheck.md -docs/VerifyV2ServiceWebhook.md -go.mod -go.sum -model_inline_object.go -model_inline_object_1.go -model_inline_object_10.go -model_inline_object_11.go -model_inline_object_12.go -model_inline_object_13.go -model_inline_object_14.go -model_inline_object_15.go -model_inline_object_16.go -model_inline_object_17.go -model_inline_object_18.go -model_inline_object_2.go -model_inline_object_3.go -model_inline_object_4.go -model_inline_object_5.go -model_inline_object_6.go -model_inline_object_7.go -model_inline_object_8.go -model_inline_object_9.go -model_inline_response_200.go -model_inline_response_200_1.go -model_inline_response_200_2.go -model_inline_response_200_3.go -model_inline_response_200_4.go -model_inline_response_200_5.go -model_inline_response_200_6.go -model_inline_response_200_7.go -model_inline_response_200_meta.go -model_verify_v2_form.go -model_verify_v2_service.go -model_verify_v2_service_access_token.go -model_verify_v2_service_entity.go -model_verify_v2_service_entity_challenge.go -model_verify_v2_service_entity_factor.go -model_verify_v2_service_messaging_configuration.go -model_verify_v2_service_rate_limit.go -model_verify_v2_service_rate_limit_bucket.go -model_verify_v2_service_verification.go -model_verify_v2_service_verification_check.go -model_verify_v2_service_webhook.go -response.go diff --git a/verify/.openapi-generator/VERSION b/verify/.openapi-generator/VERSION deleted file mode 100644 index d99e7162d..000000000 --- a/verify/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -5.0.0-SNAPSHOT \ No newline at end of file diff --git a/verify/README.md b/verify/README.md deleted file mode 100644 index 1024af772..000000000 --- a/verify/README.md +++ /dev/null @@ -1,146 +0,0 @@ -# Go API client for twilio - -This is the public Twilio REST API. - -## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - -- API version: 1.0.1 -- Package version: 1.0.0 -- Build package: com.twilio.oai.TwilioGoGenerator -For more information, please visit [https://support.twilio.com](https://support.twilio.com) - -## Installation - -Install the following dependencies: - -```shell -go get github.com/stretchr/testify/assert -go get golang.org/x/net/context -``` - -Put the package under your project folder and add the following in import: - -```golang -import "./twilio" -``` - -## Documentation for API Endpoints - -All URIs are relative to *http://localhost* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*GAApi* | [**V2ServicesGet**](docs/GAApi.md#v2servicesget) | **Get** /v2/Services | -*GAApi* | [**V2ServicesPost**](docs/GAApi.md#v2servicespost) | **Post** /v2/Services | -*GAApi* | [**V2ServicesServiceSidMessagingConfigurationsCountryDelete**](docs/GAApi.md#v2servicesservicesidmessagingconfigurationscountrydelete) | **Delete** /v2/Services/{ServiceSid}/MessagingConfigurations/{Country} | -*GAApi* | [**V2ServicesServiceSidMessagingConfigurationsCountryGet**](docs/GAApi.md#v2servicesservicesidmessagingconfigurationscountryget) | **Get** /v2/Services/{ServiceSid}/MessagingConfigurations/{Country} | -*GAApi* | [**V2ServicesServiceSidMessagingConfigurationsCountryPost**](docs/GAApi.md#v2servicesservicesidmessagingconfigurationscountrypost) | **Post** /v2/Services/{ServiceSid}/MessagingConfigurations/{Country} | -*GAApi* | [**V2ServicesServiceSidMessagingConfigurationsGet**](docs/GAApi.md#v2servicesservicesidmessagingconfigurationsget) | **Get** /v2/Services/{ServiceSid}/MessagingConfigurations | -*GAApi* | [**V2ServicesServiceSidMessagingConfigurationsPost**](docs/GAApi.md#v2servicesservicesidmessagingconfigurationspost) | **Post** /v2/Services/{ServiceSid}/MessagingConfigurations | -*GAApi* | [**V2ServicesServiceSidRateLimitsGet**](docs/GAApi.md#v2servicesservicesidratelimitsget) | **Get** /v2/Services/{ServiceSid}/RateLimits | -*GAApi* | [**V2ServicesServiceSidRateLimitsPost**](docs/GAApi.md#v2servicesservicesidratelimitspost) | **Post** /v2/Services/{ServiceSid}/RateLimits | -*GAApi* | [**V2ServicesServiceSidRateLimitsRateLimitSidBucketsGet**](docs/GAApi.md#v2servicesservicesidratelimitsratelimitsidbucketsget) | **Get** /v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets | -*GAApi* | [**V2ServicesServiceSidRateLimitsRateLimitSidBucketsPost**](docs/GAApi.md#v2servicesservicesidratelimitsratelimitsidbucketspost) | **Post** /v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets | -*GAApi* | [**V2ServicesServiceSidRateLimitsRateLimitSidBucketsSidDelete**](docs/GAApi.md#v2servicesservicesidratelimitsratelimitsidbucketssiddelete) | **Delete** /v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid} | -*GAApi* | [**V2ServicesServiceSidRateLimitsRateLimitSidBucketsSidGet**](docs/GAApi.md#v2servicesservicesidratelimitsratelimitsidbucketssidget) | **Get** /v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid} | -*GAApi* | [**V2ServicesServiceSidRateLimitsRateLimitSidBucketsSidPost**](docs/GAApi.md#v2servicesservicesidratelimitsratelimitsidbucketssidpost) | **Post** /v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid} | -*GAApi* | [**V2ServicesServiceSidRateLimitsSidDelete**](docs/GAApi.md#v2servicesservicesidratelimitssiddelete) | **Delete** /v2/Services/{ServiceSid}/RateLimits/{Sid} | -*GAApi* | [**V2ServicesServiceSidRateLimitsSidGet**](docs/GAApi.md#v2servicesservicesidratelimitssidget) | **Get** /v2/Services/{ServiceSid}/RateLimits/{Sid} | -*GAApi* | [**V2ServicesServiceSidRateLimitsSidPost**](docs/GAApi.md#v2servicesservicesidratelimitssidpost) | **Post** /v2/Services/{ServiceSid}/RateLimits/{Sid} | -*GAApi* | [**V2ServicesServiceSidVerificationCheckPost**](docs/GAApi.md#v2servicesservicesidverificationcheckpost) | **Post** /v2/Services/{ServiceSid}/VerificationCheck | -*GAApi* | [**V2ServicesServiceSidVerificationsPost**](docs/GAApi.md#v2servicesservicesidverificationspost) | **Post** /v2/Services/{ServiceSid}/Verifications | -*GAApi* | [**V2ServicesServiceSidVerificationsSidGet**](docs/GAApi.md#v2servicesservicesidverificationssidget) | **Get** /v2/Services/{ServiceSid}/Verifications/{Sid} | -*GAApi* | [**V2ServicesServiceSidVerificationsSidPost**](docs/GAApi.md#v2servicesservicesidverificationssidpost) | **Post** /v2/Services/{ServiceSid}/Verifications/{Sid} | -*GAApi* | [**V2ServicesSidDelete**](docs/GAApi.md#v2servicessiddelete) | **Delete** /v2/Services/{Sid} | -*GAApi* | [**V2ServicesSidGet**](docs/GAApi.md#v2servicessidget) | **Get** /v2/Services/{Sid} | -*GAApi* | [**V2ServicesSidPost**](docs/GAApi.md#v2servicessidpost) | **Post** /v2/Services/{Sid} | -*PreviewApi* | [**V2FormsFormTypeGet**](docs/PreviewApi.md#v2formsformtypeget) | **Get** /v2/Forms/{FormType} | -*PreviewApi* | [**V2ServicesServiceSidAccessTokensPost**](docs/PreviewApi.md#v2servicesservicesidaccesstokenspost) | **Post** /v2/Services/{ServiceSid}/AccessTokens | -*PreviewApi* | [**V2ServicesServiceSidEntitiesGet**](docs/PreviewApi.md#v2servicesservicesidentitiesget) | **Get** /v2/Services/{ServiceSid}/Entities | -*PreviewApi* | [**V2ServicesServiceSidEntitiesIdentityChallengesGet**](docs/PreviewApi.md#v2servicesservicesidentitiesidentitychallengesget) | **Get** /v2/Services/{ServiceSid}/Entities/{Identity}/Challenges | -*PreviewApi* | [**V2ServicesServiceSidEntitiesIdentityChallengesPost**](docs/PreviewApi.md#v2servicesservicesidentitiesidentitychallengespost) | **Post** /v2/Services/{ServiceSid}/Entities/{Identity}/Challenges | -*PreviewApi* | [**V2ServicesServiceSidEntitiesIdentityChallengesSidGet**](docs/PreviewApi.md#v2servicesservicesidentitiesidentitychallengessidget) | **Get** /v2/Services/{ServiceSid}/Entities/{Identity}/Challenges/{Sid} | -*PreviewApi* | [**V2ServicesServiceSidEntitiesIdentityChallengesSidPost**](docs/PreviewApi.md#v2servicesservicesidentitiesidentitychallengessidpost) | **Post** /v2/Services/{ServiceSid}/Entities/{Identity}/Challenges/{Sid} | -*PreviewApi* | [**V2ServicesServiceSidEntitiesIdentityDelete**](docs/PreviewApi.md#v2servicesservicesidentitiesidentitydelete) | **Delete** /v2/Services/{ServiceSid}/Entities/{Identity} | -*PreviewApi* | [**V2ServicesServiceSidEntitiesIdentityFactorsGet**](docs/PreviewApi.md#v2servicesservicesidentitiesidentityfactorsget) | **Get** /v2/Services/{ServiceSid}/Entities/{Identity}/Factors | -*PreviewApi* | [**V2ServicesServiceSidEntitiesIdentityFactorsPost**](docs/PreviewApi.md#v2servicesservicesidentitiesidentityfactorspost) | **Post** /v2/Services/{ServiceSid}/Entities/{Identity}/Factors | -*PreviewApi* | [**V2ServicesServiceSidEntitiesIdentityFactorsSidDelete**](docs/PreviewApi.md#v2servicesservicesidentitiesidentityfactorssiddelete) | **Delete** /v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid} | -*PreviewApi* | [**V2ServicesServiceSidEntitiesIdentityFactorsSidGet**](docs/PreviewApi.md#v2servicesservicesidentitiesidentityfactorssidget) | **Get** /v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid} | -*PreviewApi* | [**V2ServicesServiceSidEntitiesIdentityFactorsSidPost**](docs/PreviewApi.md#v2servicesservicesidentitiesidentityfactorssidpost) | **Post** /v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid} | -*PreviewApi* | [**V2ServicesServiceSidEntitiesIdentityGet**](docs/PreviewApi.md#v2servicesservicesidentitiesidentityget) | **Get** /v2/Services/{ServiceSid}/Entities/{Identity} | -*PreviewApi* | [**V2ServicesServiceSidEntitiesPost**](docs/PreviewApi.md#v2servicesservicesidentitiespost) | **Post** /v2/Services/{ServiceSid}/Entities | -*PreviewApi* | [**V2ServicesServiceSidWebhooksGet**](docs/PreviewApi.md#v2servicesservicesidwebhooksget) | **Get** /v2/Services/{ServiceSid}/Webhooks | -*PreviewApi* | [**V2ServicesServiceSidWebhooksPost**](docs/PreviewApi.md#v2servicesservicesidwebhookspost) | **Post** /v2/Services/{ServiceSid}/Webhooks | -*PreviewApi* | [**V2ServicesServiceSidWebhooksSidDelete**](docs/PreviewApi.md#v2servicesservicesidwebhookssiddelete) | **Delete** /v2/Services/{ServiceSid}/Webhooks/{Sid} | -*PreviewApi* | [**V2ServicesServiceSidWebhooksSidGet**](docs/PreviewApi.md#v2servicesservicesidwebhookssidget) | **Get** /v2/Services/{ServiceSid}/Webhooks/{Sid} | -*PreviewApi* | [**V2ServicesServiceSidWebhooksSidPost**](docs/PreviewApi.md#v2servicesservicesidwebhookssidpost) | **Post** /v2/Services/{ServiceSid}/Webhooks/{Sid} | - - -## Documentation For Models - - - [InlineObject](docs/InlineObject.md) - - [InlineObject1](docs/InlineObject1.md) - - [InlineObject10](docs/InlineObject10.md) - - [InlineObject11](docs/InlineObject11.md) - - [InlineObject12](docs/InlineObject12.md) - - [InlineObject13](docs/InlineObject13.md) - - [InlineObject14](docs/InlineObject14.md) - - [InlineObject15](docs/InlineObject15.md) - - [InlineObject16](docs/InlineObject16.md) - - [InlineObject17](docs/InlineObject17.md) - - [InlineObject18](docs/InlineObject18.md) - - [InlineObject2](docs/InlineObject2.md) - - [InlineObject3](docs/InlineObject3.md) - - [InlineObject4](docs/InlineObject4.md) - - [InlineObject5](docs/InlineObject5.md) - - [InlineObject6](docs/InlineObject6.md) - - [InlineObject7](docs/InlineObject7.md) - - [InlineObject8](docs/InlineObject8.md) - - [InlineObject9](docs/InlineObject9.md) - - [InlineResponse200](docs/InlineResponse200.md) - - [InlineResponse2001](docs/InlineResponse2001.md) - - [InlineResponse2002](docs/InlineResponse2002.md) - - [InlineResponse2003](docs/InlineResponse2003.md) - - [InlineResponse2004](docs/InlineResponse2004.md) - - [InlineResponse2005](docs/InlineResponse2005.md) - - [InlineResponse2006](docs/InlineResponse2006.md) - - [InlineResponse2007](docs/InlineResponse2007.md) - - [InlineResponse200Meta](docs/InlineResponse200Meta.md) - - [VerifyV2Form](docs/VerifyV2Form.md) - - [VerifyV2Service](docs/VerifyV2Service.md) - - [VerifyV2ServiceAccessToken](docs/VerifyV2ServiceAccessToken.md) - - [VerifyV2ServiceEntity](docs/VerifyV2ServiceEntity.md) - - [VerifyV2ServiceEntityChallenge](docs/VerifyV2ServiceEntityChallenge.md) - - [VerifyV2ServiceEntityFactor](docs/VerifyV2ServiceEntityFactor.md) - - [VerifyV2ServiceMessagingConfiguration](docs/VerifyV2ServiceMessagingConfiguration.md) - - [VerifyV2ServiceRateLimit](docs/VerifyV2ServiceRateLimit.md) - - [VerifyV2ServiceRateLimitBucket](docs/VerifyV2ServiceRateLimitBucket.md) - - [VerifyV2ServiceVerification](docs/VerifyV2ServiceVerification.md) - - [VerifyV2ServiceVerificationCheck](docs/VerifyV2ServiceVerificationCheck.md) - - [VerifyV2ServiceWebhook](docs/VerifyV2ServiceWebhook.md) - - -## Documentation For Authorization - - - -## accountSid_authToken - -- **Type**: HTTP basic authentication - -Example - -```golang -auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ - UserName: "username", - Password: "password", -}) -r, err := client.Service.Operation(auth, args) -``` - - -## Author - -support@twilio.com - diff --git a/verify/api_ga.go b/verify/api_ga.go deleted file mode 100644 index 1bcaaab2e..000000000 --- a/verify/api_ga.go +++ /dev/null @@ -1,1074 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio - -import ( - "encoding/json" - "fmt" - "github.com/twilio/twilio-go/client" - "strings" -) - -type GAApiService struct { - baseURL string - client *twilio.Client -} - -func NewGAApiService(client *twilio.Client) *GAApiService { - return &GAApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } -} -// V2ServicesGetParams Optional parameters for the method 'V2ServicesGet' -type V2ServicesGetParams struct { - PageSize *int32 `json:"PageSize,omitempty"` -} - -/* -V2ServicesGet Method for V2ServicesGet -Retrieve a list of all Verification Services for an account. - * @param optional nil or *V2ServicesGetOpts - Optional Parameters: - * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return InlineResponse200 -*/ -func (c *GAApiService) V2ServicesGet(params *V2ServicesGetParams) (*InlineResponse200, error) { - path := "/v2/Services" - - data := make(map[string]interface{}) - headers := 0 - - if params.PageSize != nil { - data["PageSize"] = *params.PageSize - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &InlineResponse200{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} -// V2ServicesPostParams Optional parameters for the method 'V2ServicesPost' -type V2ServicesPostParams struct { - CodeLength *int32 `json:"CodeLength,omitempty"` - CustomCodeEnabled *bool `json:"CustomCodeEnabled,omitempty"` - DoNotShareWarningEnabled *bool `json:"DoNotShareWarningEnabled,omitempty"` - DtmfInputRequired *bool `json:"DtmfInputRequired,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - LookupEnabled *bool `json:"LookupEnabled,omitempty"` - Psd2Enabled *bool `json:"Psd2Enabled,omitempty"` - Push *map[string]interface{} `json:"Push,omitempty"` - SkipSmsToLandlines *bool `json:"SkipSmsToLandlines,omitempty"` - TtsName *string `json:"TtsName,omitempty"` -} - -/* -V2ServicesPost Method for V2ServicesPost -Create a new Verification Service. - * @param optional nil or *V2ServicesPostOpts - Optional Parameters: - * @param "CodeLength" (int32) - The length of the verification code to generate. Must be an integer value between 4 and 10, inclusive. - * @param "CustomCodeEnabled" (bool) - Whether to allow sending verifications with a custom code instead of a randomly generated one. Not available for all customers. - * @param "DoNotShareWarningEnabled" (bool) - Whether to add a security warning at the end of an SMS verification body. Disabled by default and applies only to SMS. Example SMS body: `Your AppName verification code is: 1234. Don’t share this code with anyone; our employees will never ask for the code` - * @param "DtmfInputRequired" (bool) - Whether to ask the user to press a number before delivering the verify code in a phone call. - * @param "FriendlyName" (string) - A descriptive string that you create to describe the verification service. It can be up to 64 characters long. **This value should not contain PII.** - * @param "LookupEnabled" (bool) - Whether to perform a lookup with each verification started and return info about the phone number. - * @param "Psd2Enabled" (bool) - Whether to pass PSD2 transaction parameters when starting a verification. - * @param "Push" (map[string]interface{}) - Configurations for the Push factors (channel) created under this Service. If present, it must be a json string with the following format: {\\\"notify_service_sid\\\": \\\"ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\\\", \\\"include_date\\\": true}. If `include_date` is set to `true`, which is the default, that means that the push challenge’s response will include the date created value. If `include_date` is set to `false`, then the date created value will not be included. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info - * @param "SkipSmsToLandlines" (bool) - Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`. - * @param "TtsName" (string) - The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. -@return VerifyV2Service -*/ -func (c *GAApiService) V2ServicesPost(params *V2ServicesPostParams) (*VerifyV2Service, error) { - path := "/v2/Services" - - data := make(map[string]interface{}) - headers := 0 - - if params.CodeLength != nil { - data["CodeLength"] = *params.CodeLength - } - if params.CustomCodeEnabled != nil { - data["CustomCodeEnabled"] = *params.CustomCodeEnabled - } - if params.DoNotShareWarningEnabled != nil { - data["DoNotShareWarningEnabled"] = *params.DoNotShareWarningEnabled - } - if params.DtmfInputRequired != nil { - data["DtmfInputRequired"] = *params.DtmfInputRequired - } - if params.FriendlyName != nil { - data["FriendlyName"] = *params.FriendlyName - } - if params.LookupEnabled != nil { - data["LookupEnabled"] = *params.LookupEnabled - } - if params.Psd2Enabled != nil { - data["Psd2Enabled"] = *params.Psd2Enabled - } - if params.Push != nil { - data["Push"] = *params.Push - } - if params.SkipSmsToLandlines != nil { - data["SkipSmsToLandlines"] = *params.SkipSmsToLandlines - } - if params.TtsName != nil { - data["TtsName"] = *params.TtsName - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VerifyV2Service{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} - -/* -V2ServicesServiceSidMessagingConfigurationsCountryDelete Method for V2ServicesServiceSidMessagingConfigurationsCountryDelete -Delete a specific MessagingConfiguration. - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. - * @param country The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. -*/ -func (c *GAApiService) V2ServicesServiceSidMessagingConfigurationsCountryDelete(serviceSid string, country string) (error) { - path := "/v2/Services/{ServiceSid}/MessagingConfigurations/{Country}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Country"+"}", country, -1) - - data := 0 - headers := 0 - - - - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } - - defer resp.Body.Close() - - return nil -} - -/* -V2ServicesServiceSidMessagingConfigurationsCountryGet Method for V2ServicesServiceSidMessagingConfigurationsCountryGet -Fetch a specific MessagingConfiguration. - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. - * @param country The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. -@return VerifyV2ServiceMessagingConfiguration -*/ -func (c *GAApiService) V2ServicesServiceSidMessagingConfigurationsCountryGet(serviceSid string, country string) (*VerifyV2ServiceMessagingConfiguration, error) { - path := "/v2/Services/{ServiceSid}/MessagingConfigurations/{Country}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Country"+"}", country, -1) - - data := 0 - headers := 0 - - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VerifyV2ServiceMessagingConfiguration{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} -// V2ServicesServiceSidMessagingConfigurationsCountryPostParams Optional parameters for the method 'V2ServicesServiceSidMessagingConfigurationsCountryPost' -type V2ServicesServiceSidMessagingConfigurationsCountryPostParams struct { - MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` -} - -/* -V2ServicesServiceSidMessagingConfigurationsCountryPost Method for V2ServicesServiceSidMessagingConfigurationsCountryPost -Update a specific MessagingConfiguration - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. - * @param country The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. - * @param optional nil or *V2ServicesServiceSidMessagingConfigurationsCountryPostOpts - Optional Parameters: - * @param "MessagingServiceSid" (string) - The SID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) to be used to send SMS to the country of this configuration. -@return VerifyV2ServiceMessagingConfiguration -*/ -func (c *GAApiService) V2ServicesServiceSidMessagingConfigurationsCountryPost(serviceSid string, country string, params *V2ServicesServiceSidMessagingConfigurationsCountryPostParams) (*VerifyV2ServiceMessagingConfiguration, error) { - path := "/v2/Services/{ServiceSid}/MessagingConfigurations/{Country}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Country"+"}", country, -1) - - data := make(map[string]interface{}) - headers := 0 - - if params.MessagingServiceSid != nil { - data["MessagingServiceSid"] = *params.MessagingServiceSid - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VerifyV2ServiceMessagingConfiguration{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} -// V2ServicesServiceSidMessagingConfigurationsGetParams Optional parameters for the method 'V2ServicesServiceSidMessagingConfigurationsGet' -type V2ServicesServiceSidMessagingConfigurationsGetParams struct { - PageSize *int32 `json:"PageSize,omitempty"` -} - -/* -V2ServicesServiceSidMessagingConfigurationsGet Method for V2ServicesServiceSidMessagingConfigurationsGet -Retrieve a list of all Messaging Configurations for a Service. - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. - * @param optional nil or *V2ServicesServiceSidMessagingConfigurationsGetOpts - Optional Parameters: - * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return InlineResponse2004 -*/ -func (c *GAApiService) V2ServicesServiceSidMessagingConfigurationsGet(serviceSid string, params *V2ServicesServiceSidMessagingConfigurationsGetParams) (*InlineResponse2004, error) { - path := "/v2/Services/{ServiceSid}/MessagingConfigurations" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - - data := make(map[string]interface{}) - headers := 0 - - if params.PageSize != nil { - data["PageSize"] = *params.PageSize - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &InlineResponse2004{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} -// V2ServicesServiceSidMessagingConfigurationsPostParams Optional parameters for the method 'V2ServicesServiceSidMessagingConfigurationsPost' -type V2ServicesServiceSidMessagingConfigurationsPostParams struct { - Country *string `json:"Country,omitempty"` - MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` -} - -/* -V2ServicesServiceSidMessagingConfigurationsPost Method for V2ServicesServiceSidMessagingConfigurationsPost -Create a new MessagingConfiguration for a service. - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. - * @param optional nil or *V2ServicesServiceSidMessagingConfigurationsPostOpts - Optional Parameters: - * @param "Country" (string) - The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. - * @param "MessagingServiceSid" (string) - The SID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) to be used to send SMS to the country of this configuration. -@return VerifyV2ServiceMessagingConfiguration -*/ -func (c *GAApiService) V2ServicesServiceSidMessagingConfigurationsPost(serviceSid string, params *V2ServicesServiceSidMessagingConfigurationsPostParams) (*VerifyV2ServiceMessagingConfiguration, error) { - path := "/v2/Services/{ServiceSid}/MessagingConfigurations" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - - data := make(map[string]interface{}) - headers := 0 - - if params.Country != nil { - data["Country"] = *params.Country - } - if params.MessagingServiceSid != nil { - data["MessagingServiceSid"] = *params.MessagingServiceSid - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VerifyV2ServiceMessagingConfiguration{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} -// V2ServicesServiceSidRateLimitsGetParams Optional parameters for the method 'V2ServicesServiceSidRateLimitsGet' -type V2ServicesServiceSidRateLimitsGetParams struct { - PageSize *int32 `json:"PageSize,omitempty"` -} - -/* -V2ServicesServiceSidRateLimitsGet Method for V2ServicesServiceSidRateLimitsGet -Retrieve a list of all Rate Limits for a service. - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. - * @param optional nil or *V2ServicesServiceSidRateLimitsGetOpts - Optional Parameters: - * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return InlineResponse2005 -*/ -func (c *GAApiService) V2ServicesServiceSidRateLimitsGet(serviceSid string, params *V2ServicesServiceSidRateLimitsGetParams) (*InlineResponse2005, error) { - path := "/v2/Services/{ServiceSid}/RateLimits" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - - data := make(map[string]interface{}) - headers := 0 - - if params.PageSize != nil { - data["PageSize"] = *params.PageSize - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &InlineResponse2005{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} -// V2ServicesServiceSidRateLimitsPostParams Optional parameters for the method 'V2ServicesServiceSidRateLimitsPost' -type V2ServicesServiceSidRateLimitsPostParams struct { - Description *string `json:"Description,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` -} - -/* -V2ServicesServiceSidRateLimitsPost Method for V2ServicesServiceSidRateLimitsPost -Create a new Rate Limit for a Service - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. - * @param optional nil or *V2ServicesServiceSidRateLimitsPostOpts - Optional Parameters: - * @param "Description" (string) - Description of this Rate Limit - * @param "UniqueName" (string) - Provides a unique and addressable name to be assigned to this Rate Limit, assigned by the developer, to be optionally used in addition to SID. **This value should not contain PII.** -@return VerifyV2ServiceRateLimit -*/ -func (c *GAApiService) V2ServicesServiceSidRateLimitsPost(serviceSid string, params *V2ServicesServiceSidRateLimitsPostParams) (*VerifyV2ServiceRateLimit, error) { - path := "/v2/Services/{ServiceSid}/RateLimits" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - - data := make(map[string]interface{}) - headers := 0 - - if params.Description != nil { - data["Description"] = *params.Description - } - if params.UniqueName != nil { - data["UniqueName"] = *params.UniqueName - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VerifyV2ServiceRateLimit{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} -// V2ServicesServiceSidRateLimitsRateLimitSidBucketsGetParams Optional parameters for the method 'V2ServicesServiceSidRateLimitsRateLimitSidBucketsGet' -type V2ServicesServiceSidRateLimitsRateLimitSidBucketsGetParams struct { - PageSize *int32 `json:"PageSize,omitempty"` -} - -/* -V2ServicesServiceSidRateLimitsRateLimitSidBucketsGet Method for V2ServicesServiceSidRateLimitsRateLimitSidBucketsGet -Retrieve a list of all Buckets for a Rate Limit. - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. - * @param rateLimitSid The Twilio-provided string that uniquely identifies the Rate Limit resource. - * @param optional nil or *V2ServicesServiceSidRateLimitsRateLimitSidBucketsGetOpts - Optional Parameters: - * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return InlineResponse2006 -*/ -func (c *GAApiService) V2ServicesServiceSidRateLimitsRateLimitSidBucketsGet(serviceSid string, rateLimitSid string, params *V2ServicesServiceSidRateLimitsRateLimitSidBucketsGetParams) (*InlineResponse2006, error) { - path := "/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"RateLimitSid"+"}", rateLimitSid, -1) - - data := make(map[string]interface{}) - headers := 0 - - if params.PageSize != nil { - data["PageSize"] = *params.PageSize - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &InlineResponse2006{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} -// V2ServicesServiceSidRateLimitsRateLimitSidBucketsPostParams Optional parameters for the method 'V2ServicesServiceSidRateLimitsRateLimitSidBucketsPost' -type V2ServicesServiceSidRateLimitsRateLimitSidBucketsPostParams struct { - Interval *int32 `json:"Interval,omitempty"` - Max *int32 `json:"Max,omitempty"` -} - -/* -V2ServicesServiceSidRateLimitsRateLimitSidBucketsPost Method for V2ServicesServiceSidRateLimitsRateLimitSidBucketsPost -Create a new Bucket for a Rate Limit - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. - * @param rateLimitSid The Twilio-provided string that uniquely identifies the Rate Limit resource. - * @param optional nil or *V2ServicesServiceSidRateLimitsRateLimitSidBucketsPostOpts - Optional Parameters: - * @param "Interval" (int32) - Number of seconds that the rate limit will be enforced over. - * @param "Max" (int32) - Maximum number of requests permitted in during the interval. -@return VerifyV2ServiceRateLimitBucket -*/ -func (c *GAApiService) V2ServicesServiceSidRateLimitsRateLimitSidBucketsPost(serviceSid string, rateLimitSid string, params *V2ServicesServiceSidRateLimitsRateLimitSidBucketsPostParams) (*VerifyV2ServiceRateLimitBucket, error) { - path := "/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"RateLimitSid"+"}", rateLimitSid, -1) - - data := make(map[string]interface{}) - headers := 0 - - if params.Interval != nil { - data["Interval"] = *params.Interval - } - if params.Max != nil { - data["Max"] = *params.Max - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VerifyV2ServiceRateLimitBucket{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} - -/* -V2ServicesServiceSidRateLimitsRateLimitSidBucketsSidDelete Method for V2ServicesServiceSidRateLimitsRateLimitSidBucketsSidDelete -Delete a specific Bucket. - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. - * @param rateLimitSid The Twilio-provided string that uniquely identifies the Rate Limit resource. - * @param sid A 34 character string that uniquely identifies this Bucket. -*/ -func (c *GAApiService) V2ServicesServiceSidRateLimitsRateLimitSidBucketsSidDelete(serviceSid string, rateLimitSid string, sid string) (error) { - path := "/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"RateLimitSid"+"}", rateLimitSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := 0 - headers := 0 - - - - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } - - defer resp.Body.Close() - - return nil -} - -/* -V2ServicesServiceSidRateLimitsRateLimitSidBucketsSidGet Method for V2ServicesServiceSidRateLimitsRateLimitSidBucketsSidGet -Fetch a specific Bucket. - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. - * @param rateLimitSid The Twilio-provided string that uniquely identifies the Rate Limit resource. - * @param sid A 34 character string that uniquely identifies this Bucket. -@return VerifyV2ServiceRateLimitBucket -*/ -func (c *GAApiService) V2ServicesServiceSidRateLimitsRateLimitSidBucketsSidGet(serviceSid string, rateLimitSid string, sid string) (*VerifyV2ServiceRateLimitBucket, error) { - path := "/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"RateLimitSid"+"}", rateLimitSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := 0 - headers := 0 - - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VerifyV2ServiceRateLimitBucket{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} -// V2ServicesServiceSidRateLimitsRateLimitSidBucketsSidPostParams Optional parameters for the method 'V2ServicesServiceSidRateLimitsRateLimitSidBucketsSidPost' -type V2ServicesServiceSidRateLimitsRateLimitSidBucketsSidPostParams struct { - Interval *int32 `json:"Interval,omitempty"` - Max *int32 `json:"Max,omitempty"` -} - -/* -V2ServicesServiceSidRateLimitsRateLimitSidBucketsSidPost Method for V2ServicesServiceSidRateLimitsRateLimitSidBucketsSidPost -Update a specific Bucket. - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. - * @param rateLimitSid The Twilio-provided string that uniquely identifies the Rate Limit resource. - * @param sid A 34 character string that uniquely identifies this Bucket. - * @param optional nil or *V2ServicesServiceSidRateLimitsRateLimitSidBucketsSidPostOpts - Optional Parameters: - * @param "Interval" (int32) - Number of seconds that the rate limit will be enforced over. - * @param "Max" (int32) - Maximum number of requests permitted in during the interval. -@return VerifyV2ServiceRateLimitBucket -*/ -func (c *GAApiService) V2ServicesServiceSidRateLimitsRateLimitSidBucketsSidPost(serviceSid string, rateLimitSid string, sid string, params *V2ServicesServiceSidRateLimitsRateLimitSidBucketsSidPostParams) (*VerifyV2ServiceRateLimitBucket, error) { - path := "/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"RateLimitSid"+"}", rateLimitSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := make(map[string]interface{}) - headers := 0 - - if params.Interval != nil { - data["Interval"] = *params.Interval - } - if params.Max != nil { - data["Max"] = *params.Max - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VerifyV2ServiceRateLimitBucket{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} - -/* -V2ServicesServiceSidRateLimitsSidDelete Method for V2ServicesServiceSidRateLimitsSidDelete -Delete a specific Rate Limit. - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. - * @param sid The Twilio-provided string that uniquely identifies the Rate Limit resource to fetch. -*/ -func (c *GAApiService) V2ServicesServiceSidRateLimitsSidDelete(serviceSid string, sid string) (error) { - path := "/v2/Services/{ServiceSid}/RateLimits/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := 0 - headers := 0 - - - - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } - - defer resp.Body.Close() - - return nil -} - -/* -V2ServicesServiceSidRateLimitsSidGet Method for V2ServicesServiceSidRateLimitsSidGet -Fetch a specific Rate Limit. - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. - * @param sid The Twilio-provided string that uniquely identifies the Rate Limit resource to fetch. -@return VerifyV2ServiceRateLimit -*/ -func (c *GAApiService) V2ServicesServiceSidRateLimitsSidGet(serviceSid string, sid string) (*VerifyV2ServiceRateLimit, error) { - path := "/v2/Services/{ServiceSid}/RateLimits/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := 0 - headers := 0 - - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VerifyV2ServiceRateLimit{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} -// V2ServicesServiceSidRateLimitsSidPostParams Optional parameters for the method 'V2ServicesServiceSidRateLimitsSidPost' -type V2ServicesServiceSidRateLimitsSidPostParams struct { - Description *string `json:"Description,omitempty"` -} - -/* -V2ServicesServiceSidRateLimitsSidPost Method for V2ServicesServiceSidRateLimitsSidPost -Update a specific Rate Limit. - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. - * @param sid The Twilio-provided string that uniquely identifies the Rate Limit resource to fetch. - * @param optional nil or *V2ServicesServiceSidRateLimitsSidPostOpts - Optional Parameters: - * @param "Description" (string) - Description of this Rate Limit -@return VerifyV2ServiceRateLimit -*/ -func (c *GAApiService) V2ServicesServiceSidRateLimitsSidPost(serviceSid string, sid string, params *V2ServicesServiceSidRateLimitsSidPostParams) (*VerifyV2ServiceRateLimit, error) { - path := "/v2/Services/{ServiceSid}/RateLimits/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := make(map[string]interface{}) - headers := 0 - - if params.Description != nil { - data["Description"] = *params.Description - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VerifyV2ServiceRateLimit{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} -// V2ServicesServiceSidVerificationCheckPostParams Optional parameters for the method 'V2ServicesServiceSidVerificationCheckPost' -type V2ServicesServiceSidVerificationCheckPostParams struct { - Amount *string `json:"Amount,omitempty"` - Code *string `json:"Code,omitempty"` - Payee *string `json:"Payee,omitempty"` - To *string `json:"To,omitempty"` - VerificationSid *string `json:"VerificationSid,omitempty"` -} - -/* -V2ServicesServiceSidVerificationCheckPost Method for V2ServicesServiceSidVerificationCheckPost -challenge a specific Verification Check. - * @param serviceSid The SID of the verification [Service](https://www.twilio.com/docs/verify/api/service) to create the resource under. - * @param optional nil or *V2ServicesServiceSidVerificationCheckPostOpts - Optional Parameters: - * @param "Amount" (string) - The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. - * @param "Code" (string) - The 4-10 character string being verified. - * @param "Payee" (string) - The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. - * @param "To" (string) - The phone number or [email](https://www.twilio.com/docs/verify/email) to verify. Either this parameter or the `verification_sid` must be specified. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). - * @param "VerificationSid" (string) - A SID that uniquely identifies the Verification Check. Either this parameter or the `to` phone number/[email](https://www.twilio.com/docs/verify/email) must be specified. -@return VerifyV2ServiceVerificationCheck -*/ -func (c *GAApiService) V2ServicesServiceSidVerificationCheckPost(serviceSid string, params *V2ServicesServiceSidVerificationCheckPostParams) (*VerifyV2ServiceVerificationCheck, error) { - path := "/v2/Services/{ServiceSid}/VerificationCheck" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - - data := make(map[string]interface{}) - headers := 0 - - if params.Amount != nil { - data["Amount"] = *params.Amount - } - if params.Code != nil { - data["Code"] = *params.Code - } - if params.Payee != nil { - data["Payee"] = *params.Payee - } - if params.To != nil { - data["To"] = *params.To - } - if params.VerificationSid != nil { - data["VerificationSid"] = *params.VerificationSid - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VerifyV2ServiceVerificationCheck{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} -// V2ServicesServiceSidVerificationsPostParams Optional parameters for the method 'V2ServicesServiceSidVerificationsPost' -type V2ServicesServiceSidVerificationsPostParams struct { - Amount *string `json:"Amount,omitempty"` - AppHash *string `json:"AppHash,omitempty"` - Channel *string `json:"Channel,omitempty"` - ChannelConfiguration *map[string]interface{} `json:"ChannelConfiguration,omitempty"` - CustomCode *string `json:"CustomCode,omitempty"` - CustomFriendlyName *string `json:"CustomFriendlyName,omitempty"` - CustomMessage *string `json:"CustomMessage,omitempty"` - Locale *string `json:"Locale,omitempty"` - Payee *string `json:"Payee,omitempty"` - RateLimits *map[string]interface{} `json:"RateLimits,omitempty"` - SendDigits *string `json:"SendDigits,omitempty"` - To *string `json:"To,omitempty"` -} - -/* -V2ServicesServiceSidVerificationsPost Method for V2ServicesServiceSidVerificationsPost -Create a new Verification using a Service - * @param serviceSid The SID of the verification [Service](https://www.twilio.com/docs/verify/api/service) to create the resource under. - * @param optional nil or *V2ServicesServiceSidVerificationsPostOpts - Optional Parameters: - * @param "Amount" (string) - The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. - * @param "AppHash" (string) - Your [App Hash](https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string) to be appended at the end of your verification SMS body. Applies only to SMS. Example SMS body: `<#> Your AppName verification code is: 1234 He42w354ol9`. - * @param "Channel" (string) - The verification method to use. Can be: [`email`](https://www.twilio.com/docs/verify/email), `sms` or `call`. - * @param "ChannelConfiguration" (map[string]interface{}) - [`email`](https://www.twilio.com/docs/verify/email) channel configuration in json format. Must include 'from' and 'from_name'. - * @param "CustomCode" (string) - A pre-generated code to use for verification. The code can be between 4 and 10 characters, inclusive. - * @param "CustomFriendlyName" (string) - A custom user defined friendly name that overwrites the existing one in the verification message - * @param "CustomMessage" (string) - The text of a custom message to use for the verification. - * @param "Locale" (string) - The locale to use for the verification SMS or call. Can be: `af`, `ar`, `ca`, `cs`, `da`, `de`, `el`, `en`, `en-GB`, `es`, `fi`, `fr`, `he`, `hi`, `hr`, `hu`, `id`, `it`, `ja`, `ko`, `ms`, `nb`, `nl`, `pl`, `pt`, `pr-BR`, `ro`, `ru`, `sv`, `th`, `tl`, `tr`, `vi`, `zh`, `zh-CN`, or `zh-HK.` - * @param "Payee" (string) - The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. - * @param "RateLimits" (map[string]interface{}) - The custom key-value pairs of Programmable Rate Limits. Keys correspond to `unique_name` fields defined when [creating your Rate Limit](https://www.twilio.com/docs/verify/api/service-rate-limits). Associated value pairs represent values in the request that you are rate limiting on. You may include multiple Rate Limit values in each request. - * @param "SendDigits" (string) - The digits to send after a phone call is answered, for example, to dial an extension. For more information, see the Programmable Voice documentation of [sendDigits](https://www.twilio.com/docs/voice/twiml/number#attributes-sendDigits). - * @param "To" (string) - The phone number or [email](https://www.twilio.com/docs/verify/email) to verify. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). -@return VerifyV2ServiceVerification -*/ -func (c *GAApiService) V2ServicesServiceSidVerificationsPost(serviceSid string, params *V2ServicesServiceSidVerificationsPostParams) (*VerifyV2ServiceVerification, error) { - path := "/v2/Services/{ServiceSid}/Verifications" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - - data := make(map[string]interface{}) - headers := 0 - - if params.Amount != nil { - data["Amount"] = *params.Amount - } - if params.AppHash != nil { - data["AppHash"] = *params.AppHash - } - if params.Channel != nil { - data["Channel"] = *params.Channel - } - if params.ChannelConfiguration != nil { - data["ChannelConfiguration"] = *params.ChannelConfiguration - } - if params.CustomCode != nil { - data["CustomCode"] = *params.CustomCode - } - if params.CustomFriendlyName != nil { - data["CustomFriendlyName"] = *params.CustomFriendlyName - } - if params.CustomMessage != nil { - data["CustomMessage"] = *params.CustomMessage - } - if params.Locale != nil { - data["Locale"] = *params.Locale - } - if params.Payee != nil { - data["Payee"] = *params.Payee - } - if params.RateLimits != nil { - data["RateLimits"] = *params.RateLimits - } - if params.SendDigits != nil { - data["SendDigits"] = *params.SendDigits - } - if params.To != nil { - data["To"] = *params.To - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VerifyV2ServiceVerification{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} - -/* -V2ServicesServiceSidVerificationsSidGet Method for V2ServicesServiceSidVerificationsSidGet -Fetch a specific Verification - * @param serviceSid The SID of the verification [Service](https://www.twilio.com/docs/verify/api/service) to fetch the resource from. - * @param sid The Twilio-provided string that uniquely identifies the Verification resource to fetch. -@return VerifyV2ServiceVerification -*/ -func (c *GAApiService) V2ServicesServiceSidVerificationsSidGet(serviceSid string, sid string) (*VerifyV2ServiceVerification, error) { - path := "/v2/Services/{ServiceSid}/Verifications/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := 0 - headers := 0 - - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VerifyV2ServiceVerification{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} -// V2ServicesServiceSidVerificationsSidPostParams Optional parameters for the method 'V2ServicesServiceSidVerificationsSidPost' -type V2ServicesServiceSidVerificationsSidPostParams struct { - Status *string `json:"Status,omitempty"` -} - -/* -V2ServicesServiceSidVerificationsSidPost Method for V2ServicesServiceSidVerificationsSidPost -Update a Verification status - * @param serviceSid The SID of the verification [Service](https://www.twilio.com/docs/verify/api/service) to update the resource from. - * @param sid The Twilio-provided string that uniquely identifies the Verification resource to update. - * @param optional nil or *V2ServicesServiceSidVerificationsSidPostOpts - Optional Parameters: - * @param "Status" (string) - The new status of the resource. Can be: `canceled` or `approved`. -@return VerifyV2ServiceVerification -*/ -func (c *GAApiService) V2ServicesServiceSidVerificationsSidPost(serviceSid string, sid string, params *V2ServicesServiceSidVerificationsSidPostParams) (*VerifyV2ServiceVerification, error) { - path := "/v2/Services/{ServiceSid}/Verifications/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := make(map[string]interface{}) - headers := 0 - - if params.Status != nil { - data["Status"] = *params.Status - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VerifyV2ServiceVerification{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} - -/* -V2ServicesSidDelete Method for V2ServicesSidDelete -Delete a specific Verification Service Instance. - * @param sid The Twilio-provided string that uniquely identifies the Verification Service resource to delete. -*/ -func (c *GAApiService) V2ServicesSidDelete(sid string) (error) { - path := "/v2/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := 0 - headers := 0 - - - - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } - - defer resp.Body.Close() - - return nil -} - -/* -V2ServicesSidGet Method for V2ServicesSidGet -Fetch specific Verification Service Instance. - * @param sid The Twilio-provided string that uniquely identifies the Verification Service resource to fetch. -@return VerifyV2Service -*/ -func (c *GAApiService) V2ServicesSidGet(sid string) (*VerifyV2Service, error) { - path := "/v2/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := 0 - headers := 0 - - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VerifyV2Service{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} -// V2ServicesSidPostParams Optional parameters for the method 'V2ServicesSidPost' -type V2ServicesSidPostParams struct { - CodeLength *int32 `json:"CodeLength,omitempty"` - CustomCodeEnabled *bool `json:"CustomCodeEnabled,omitempty"` - DoNotShareWarningEnabled *bool `json:"DoNotShareWarningEnabled,omitempty"` - DtmfInputRequired *bool `json:"DtmfInputRequired,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - LookupEnabled *bool `json:"LookupEnabled,omitempty"` - Psd2Enabled *bool `json:"Psd2Enabled,omitempty"` - Push *map[string]interface{} `json:"Push,omitempty"` - SkipSmsToLandlines *bool `json:"SkipSmsToLandlines,omitempty"` - TtsName *string `json:"TtsName,omitempty"` -} - -/* -V2ServicesSidPost Method for V2ServicesSidPost -Update a specific Verification Service. - * @param sid The Twilio-provided string that uniquely identifies the Service resource to update. - * @param optional nil or *V2ServicesSidPostOpts - Optional Parameters: - * @param "CodeLength" (int32) - The length of the verification code to generate. Must be an integer value between 4 and 10, inclusive. - * @param "CustomCodeEnabled" (bool) - Whether to allow sending verifications with a custom code instead of a randomly generated one. Not available for all customers. - * @param "DoNotShareWarningEnabled" (bool) - Whether to add a privacy warning at the end of an SMS. **Disabled by default and applies only for SMS.** - * @param "DtmfInputRequired" (bool) - Whether to ask the user to press a number before delivering the verify code in a phone call. - * @param "FriendlyName" (string) - A descriptive string that you create to describe the verification service. It can be up to 64 characters long. **This value should not contain PII.** - * @param "LookupEnabled" (bool) - Whether to perform a lookup with each verification started and return info about the phone number. - * @param "Psd2Enabled" (bool) - Whether to pass PSD2 transaction parameters when starting a verification. - * @param "Push" (map[string]interface{}) - Configurations for the Push factors (channel) created under this Service. If present, it must be a json string with the following format: {\\\"notify_service_sid\\\": \\\"ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\\\", \\\"include_date\\\": true}. If `include_date` is set to `true`, which is the default, that means that the push challenge’s response will include the date created value. If `include_date` is set to `false`, then the date created value will not be included. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info - * @param "SkipSmsToLandlines" (bool) - Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`. - * @param "TtsName" (string) - The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. -@return VerifyV2Service -*/ -func (c *GAApiService) V2ServicesSidPost(sid string, params *V2ServicesSidPostParams) (*VerifyV2Service, error) { - path := "/v2/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := make(map[string]interface{}) - headers := 0 - - if params.CodeLength != nil { - data["CodeLength"] = *params.CodeLength - } - if params.CustomCodeEnabled != nil { - data["CustomCodeEnabled"] = *params.CustomCodeEnabled - } - if params.DoNotShareWarningEnabled != nil { - data["DoNotShareWarningEnabled"] = *params.DoNotShareWarningEnabled - } - if params.DtmfInputRequired != nil { - data["DtmfInputRequired"] = *params.DtmfInputRequired - } - if params.FriendlyName != nil { - data["FriendlyName"] = *params.FriendlyName - } - if params.LookupEnabled != nil { - data["LookupEnabled"] = *params.LookupEnabled - } - if params.Psd2Enabled != nil { - data["Psd2Enabled"] = *params.Psd2Enabled - } - if params.Push != nil { - data["Push"] = *params.Push - } - if params.SkipSmsToLandlines != nil { - data["SkipSmsToLandlines"] = *params.SkipSmsToLandlines - } - if params.TtsName != nil { - data["TtsName"] = *params.TtsName - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VerifyV2Service{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} diff --git a/verify/api_preview.go b/verify/api_preview.go deleted file mode 100644 index 9de098c48..000000000 --- a/verify/api_preview.go +++ /dev/null @@ -1,930 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio - -import ( - "encoding/json" - "fmt" - "github.com/twilio/twilio-go/client" - "strings" - "time" -) - -type PreviewApiService struct { - baseURL string - client *twilio.Client -} - -func NewPreviewApiService(client *twilio.Client) *PreviewApiService { - return &PreviewApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } -} - -/* -V2FormsFormTypeGet Method for V2FormsFormTypeGet -Fetch the forms for a specific Form Type. - * @param formType The Type of this Form. Currently only `form-push` is supported. -@return VerifyV2Form -*/ -func (c *PreviewApiService) V2FormsFormTypeGet(formType string) (*VerifyV2Form, error) { - path := "/v2/Forms/{FormType}" - path = strings.Replace(path, "{"+"FormType"+"}", formType, -1) - - data := 0 - headers := 0 - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VerifyV2Form{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} - -// V2ServicesServiceSidAccessTokensPostParams Optional parameters for the method 'V2ServicesServiceSidAccessTokensPost' -type V2ServicesServiceSidAccessTokensPostParams struct { - FactorType *string `json:"FactorType,omitempty"` - Identity *string `json:"Identity,omitempty"` -} - -/* -V2ServicesServiceSidAccessTokensPost Method for V2ServicesServiceSidAccessTokensPost -Create a new enrollment Access Token for the Entity - * @param serviceSid - * @param optional nil or *V2ServicesServiceSidAccessTokensPostOpts - Optional Parameters: - * @param "FactorType" (string) - The Type of this Factor. Eg. `push` - * @param "Identity" (string) - The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, and generated by your external system, such as your user's UUID, GUID, or SID. -@return VerifyV2ServiceAccessToken -*/ -func (c *PreviewApiService) V2ServicesServiceSidAccessTokensPost(serviceSid string, params *V2ServicesServiceSidAccessTokensPostParams) (*VerifyV2ServiceAccessToken, error) { - path := "/v2/Services/{ServiceSid}/AccessTokens" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - - data := make(map[string]interface{}) - headers := 0 - - if params.FactorType != nil { - data["FactorType"] = *params.FactorType - } - if params.Identity != nil { - data["Identity"] = *params.Identity - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VerifyV2ServiceAccessToken{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} - -// V2ServicesServiceSidEntitiesGetParams Optional parameters for the method 'V2ServicesServiceSidEntitiesGet' -type V2ServicesServiceSidEntitiesGetParams struct { - TwilioSandboxMode *string `json:"Twilio-Sandbox-Mode,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` -} - -/* -V2ServicesServiceSidEntitiesGet Method for V2ServicesServiceSidEntitiesGet -Retrieve a list of all Entities for a Service. - * @param serviceSid The unique SID identifier of the Service. - * @param optional nil or *V2ServicesServiceSidEntitiesGetOpts - Optional Parameters: - * @param "TwilioSandboxMode" (string) - The Twilio-Sandbox-Mode HTTP request header - * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return InlineResponse2001 -*/ -func (c *PreviewApiService) V2ServicesServiceSidEntitiesGet(serviceSid string, params *V2ServicesServiceSidEntitiesGetParams) (*InlineResponse2001, error) { - path := "/v2/Services/{ServiceSid}/Entities" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - - data := make(map[string]interface{}) - headers := make(map[string]interface{}) - - if params.PageSize != nil { - data["PageSize"] = *params.PageSize - } - - if params.TwilioSandboxMode != nil { - headers["Twilio-Sandbox-Mode"] = *params.TwilioSandboxMode - } - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &InlineResponse2001{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} - -// V2ServicesServiceSidEntitiesIdentityChallengesGetParams Optional parameters for the method 'V2ServicesServiceSidEntitiesIdentityChallengesGet' -type V2ServicesServiceSidEntitiesIdentityChallengesGetParams struct { - TwilioSandboxMode *string `json:"Twilio-Sandbox-Mode,omitempty"` - FactorSid *string `json:"FactorSid,omitempty"` - Status *string `json:"Status,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` -} - -/* -V2ServicesServiceSidEntitiesIdentityChallengesGet Method for V2ServicesServiceSidEntitiesIdentityChallengesGet -Retrieve a list of all Challenges for a Factor. - * @param serviceSid The unique SID identifier of the Service. - * @param identity Customer unique identity for the Entity owner of the Challenge - * @param optional nil or *V2ServicesServiceSidEntitiesIdentityChallengesGetOpts - Optional Parameters: - * @param "TwilioSandboxMode" (string) - The Twilio-Sandbox-Mode HTTP request header - * @param "FactorSid" (string) - The unique SID identifier of the Factor. - * @param "Status" (string) - The Status of the Challenges to fetch. One of `pending`, `expired`, `approved` or `denied`. - * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return InlineResponse2002 -*/ -func (c *PreviewApiService) V2ServicesServiceSidEntitiesIdentityChallengesGet(serviceSid string, identity string, params *V2ServicesServiceSidEntitiesIdentityChallengesGetParams) (*InlineResponse2002, error) { - path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - - data := make(map[string]interface{}) - headers := make(map[string]interface{}) - - if params.FactorSid != nil { - data["FactorSid"] = *params.FactorSid - } - if params.Status != nil { - data["Status"] = *params.Status - } - if params.PageSize != nil { - data["PageSize"] = *params.PageSize - } - - if params.TwilioSandboxMode != nil { - headers["Twilio-Sandbox-Mode"] = *params.TwilioSandboxMode - } - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &InlineResponse2002{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} - -// V2ServicesServiceSidEntitiesIdentityChallengesPostParams Optional parameters for the method 'V2ServicesServiceSidEntitiesIdentityChallengesPost' -type V2ServicesServiceSidEntitiesIdentityChallengesPostParams struct { - TwilioSandboxMode *string `json:"Twilio-Sandbox-Mode,omitempty"` - Details *string `json:"Details,omitempty"` - ExpirationDate *time.Time `json:"ExpirationDate,omitempty"` - FactorSid *string `json:"FactorSid,omitempty"` - HiddenDetails *string `json:"HiddenDetails,omitempty"` -} - -/* -V2ServicesServiceSidEntitiesIdentityChallengesPost Method for V2ServicesServiceSidEntitiesIdentityChallengesPost -Create a new Challenge for the Factor - * @param serviceSid The unique SID identifier of the Service. - * @param identity The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, and generated by your external system, such as your user's UUID, GUID, or SID. - * @param optional nil or *V2ServicesServiceSidEntitiesIdentityChallengesPostOpts - Optional Parameters: - * @param "TwilioSandboxMode" (string) - The Twilio-Sandbox-Mode HTTP request header - * @param "Details" (string) - Details provided to give context about the Challenge. Shown to the end user. It must be a stringified JSON with the following structure: {\\\"message\\\": \\\"string\\\", \\\"fields\\\": [ { \\\"label\\\": \\\"string\\\", \\\"value\\\": \\\"string\\\"}]}. `message` is required. If you send the `fields` property, each field has to include `label` and `value` properties. If you had set `include_date=true` in the `push` configuration of the [service](https://www.twilio.com/docs/verify/api/service), the response will also include the challenge's date created value as an additional field called `date` - * @param "ExpirationDate" (time.Time) - The future date in which this Challenge will expire, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. - * @param "FactorSid" (string) - The unique SID identifier of the Factor. - * @param "HiddenDetails" (string) - Details provided to give context about the Challenge. Not shown to the end user. It must be a stringified JSON with only strings values eg. `{\\\"ip\\\": \\\"172.168.1.234\\\"}` -@return VerifyV2ServiceEntityChallenge -*/ -func (c *PreviewApiService) V2ServicesServiceSidEntitiesIdentityChallengesPost(serviceSid string, identity string, params *V2ServicesServiceSidEntitiesIdentityChallengesPostParams) (*VerifyV2ServiceEntityChallenge, error) { - path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - - data := make(map[string]interface{}) - headers := make(map[string]interface{}) - - if params.Details != nil { - data["Details"] = *params.Details - } - if params.ExpirationDate != nil { - data["ExpirationDate"] = *params.ExpirationDate - } - if params.FactorSid != nil { - data["FactorSid"] = *params.FactorSid - } - if params.HiddenDetails != nil { - data["HiddenDetails"] = *params.HiddenDetails - } - - if params.TwilioSandboxMode != nil { - headers["Twilio-Sandbox-Mode"] = *params.TwilioSandboxMode - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VerifyV2ServiceEntityChallenge{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} - -// V2ServicesServiceSidEntitiesIdentityChallengesSidGetParams Optional parameters for the method 'V2ServicesServiceSidEntitiesIdentityChallengesSidGet' -type V2ServicesServiceSidEntitiesIdentityChallengesSidGetParams struct { - TwilioSandboxMode *string `json:"Twilio-Sandbox-Mode,omitempty"` -} - -/* -V2ServicesServiceSidEntitiesIdentityChallengesSidGet Method for V2ServicesServiceSidEntitiesIdentityChallengesSidGet -Fetch a specific Challenge. - * @param serviceSid The unique SID identifier of the Service. - * @param identity The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, and generated by your external system, such as your user's UUID, GUID, or SID. - * @param sid A 34 character string that uniquely identifies this Challenge. - * @param optional nil or *V2ServicesServiceSidEntitiesIdentityChallengesSidGetOpts - Optional Parameters: - * @param "TwilioSandboxMode" (string) - The Twilio-Sandbox-Mode HTTP request header -@return VerifyV2ServiceEntityChallenge -*/ -func (c *PreviewApiService) V2ServicesServiceSidEntitiesIdentityChallengesSidGet(serviceSid string, identity string, sid string, params *V2ServicesServiceSidEntitiesIdentityChallengesSidGetParams) (*VerifyV2ServiceEntityChallenge, error) { - path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := make(map[string]interface{}) - headers := make(map[string]interface{}) - - if params.TwilioSandboxMode != nil { - headers["Twilio-Sandbox-Mode"] = *params.TwilioSandboxMode - } - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VerifyV2ServiceEntityChallenge{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} - -// V2ServicesServiceSidEntitiesIdentityChallengesSidPostParams Optional parameters for the method 'V2ServicesServiceSidEntitiesIdentityChallengesSidPost' -type V2ServicesServiceSidEntitiesIdentityChallengesSidPostParams struct { - TwilioSandboxMode *string `json:"Twilio-Sandbox-Mode,omitempty"` - AuthPayload *string `json:"AuthPayload,omitempty"` -} - -/* -V2ServicesServiceSidEntitiesIdentityChallengesSidPost Method for V2ServicesServiceSidEntitiesIdentityChallengesSidPost -Verify a specific Challenge. - * @param serviceSid The unique SID identifier of the Service. - * @param identity Customer unique identity for the Entity owner of the Challenge - * @param sid A 34 character string that uniquely identifies this Challenge. - * @param optional nil or *V2ServicesServiceSidEntitiesIdentityChallengesSidPostOpts - Optional Parameters: - * @param "TwilioSandboxMode" (string) - The Twilio-Sandbox-Mode HTTP request header - * @param "AuthPayload" (string) - The optional payload needed to verify the Challenge. E.g., a TOTP would use the numeric code. -@return VerifyV2ServiceEntityChallenge -*/ -func (c *PreviewApiService) V2ServicesServiceSidEntitiesIdentityChallengesSidPost(serviceSid string, identity string, sid string, params *V2ServicesServiceSidEntitiesIdentityChallengesSidPostParams) (*VerifyV2ServiceEntityChallenge, error) { - path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := make(map[string]interface{}) - headers := make(map[string]interface{}) - - if params.AuthPayload != nil { - data["AuthPayload"] = *params.AuthPayload - } - - if params.TwilioSandboxMode != nil { - headers["Twilio-Sandbox-Mode"] = *params.TwilioSandboxMode - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VerifyV2ServiceEntityChallenge{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} - -// V2ServicesServiceSidEntitiesIdentityDeleteParams Optional parameters for the method 'V2ServicesServiceSidEntitiesIdentityDelete' -type V2ServicesServiceSidEntitiesIdentityDeleteParams struct { - TwilioSandboxMode *string `json:"Twilio-Sandbox-Mode,omitempty"` -} - -/* -V2ServicesServiceSidEntitiesIdentityDelete Method for V2ServicesServiceSidEntitiesIdentityDelete -Delete a specific Entity. - * @param serviceSid The unique SID identifier of the Service. - * @param identity The unique external identifier for the Entity of the Service - * @param optional nil or *V2ServicesServiceSidEntitiesIdentityDeleteOpts - Optional Parameters: - * @param "TwilioSandboxMode" (string) - The Twilio-Sandbox-Mode HTTP request header -*/ -func (c *PreviewApiService) V2ServicesServiceSidEntitiesIdentityDelete(serviceSid string, identity string, params *V2ServicesServiceSidEntitiesIdentityDeleteParams) error { - path := "/v2/Services/{ServiceSid}/Entities/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - - data := make(map[string]interface{}) - headers := make(map[string]interface{}) - - if params.TwilioSandboxMode != nil { - headers["Twilio-Sandbox-Mode"] = *params.TwilioSandboxMode - } - - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } - - defer resp.Body.Close() - - return nil -} - -// V2ServicesServiceSidEntitiesIdentityFactorsGetParams Optional parameters for the method 'V2ServicesServiceSidEntitiesIdentityFactorsGet' -type V2ServicesServiceSidEntitiesIdentityFactorsGetParams struct { - TwilioSandboxMode *string `json:"Twilio-Sandbox-Mode,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` -} - -/* -V2ServicesServiceSidEntitiesIdentityFactorsGet Method for V2ServicesServiceSidEntitiesIdentityFactorsGet -Retrieve a list of all Factors for an Entity. - * @param serviceSid The unique SID identifier of the Service. - * @param identity Customer unique identity for the Entity owner of the Factor - * @param optional nil or *V2ServicesServiceSidEntitiesIdentityFactorsGetOpts - Optional Parameters: - * @param "TwilioSandboxMode" (string) - The Twilio-Sandbox-Mode HTTP request header - * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return InlineResponse2003 -*/ -func (c *PreviewApiService) V2ServicesServiceSidEntitiesIdentityFactorsGet(serviceSid string, identity string, params *V2ServicesServiceSidEntitiesIdentityFactorsGetParams) (*InlineResponse2003, error) { - path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Factors" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - - data := make(map[string]interface{}) - headers := make(map[string]interface{}) - - if params.PageSize != nil { - data["PageSize"] = *params.PageSize - } - - if params.TwilioSandboxMode != nil { - headers["Twilio-Sandbox-Mode"] = *params.TwilioSandboxMode - } - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &InlineResponse2003{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} - -// V2ServicesServiceSidEntitiesIdentityFactorsPostParams Optional parameters for the method 'V2ServicesServiceSidEntitiesIdentityFactorsPost' -type V2ServicesServiceSidEntitiesIdentityFactorsPostParams struct { - TwilioSandboxMode *string `json:"Twilio-Sandbox-Mode,omitempty"` - Binding *string `json:"Binding,omitempty"` - Config *string `json:"Config,omitempty"` - FactorType *string `json:"FactorType,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` -} - -/* -V2ServicesServiceSidEntitiesIdentityFactorsPost Method for V2ServicesServiceSidEntitiesIdentityFactorsPost -Create a new Factor for the Entity - * @param serviceSid The unique SID identifier of the Service. - * @param identity Customer unique identity for the Entity owner of the Factor - * @param optional nil or *V2ServicesServiceSidEntitiesIdentityFactorsPostOpts - Optional Parameters: - * @param "TwilioSandboxMode" (string) - The Twilio-Sandbox-Mode HTTP request header - * @param "Binding" (string) - A unique binding for this Factor that identifies it. E.g. the algorithm and public key for `push` factors. It must be a json string with the required properties for the given factor type. Required when creating a new Factor. This value is never returned because it can contain customer secrets. - * @param "Config" (string) - The config required for this Factor. It must be a json string with the required properties for the given factor type - * @param "FactorType" (string) - The Type of this Factor. Currently only `push` is supported - * @param "FriendlyName" (string) - The friendly name of this Factor -@return VerifyV2ServiceEntityFactor -*/ -func (c *PreviewApiService) V2ServicesServiceSidEntitiesIdentityFactorsPost(serviceSid string, identity string, params *V2ServicesServiceSidEntitiesIdentityFactorsPostParams) (*VerifyV2ServiceEntityFactor, error) { - path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Factors" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - - data := make(map[string]interface{}) - headers := make(map[string]interface{}) - - if params.Binding != nil { - data["Binding"] = *params.Binding - } - if params.Config != nil { - data["Config"] = *params.Config - } - if params.FactorType != nil { - data["FactorType"] = *params.FactorType - } - if params.FriendlyName != nil { - data["FriendlyName"] = *params.FriendlyName - } - - if params.TwilioSandboxMode != nil { - headers["Twilio-Sandbox-Mode"] = *params.TwilioSandboxMode - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VerifyV2ServiceEntityFactor{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} - -// V2ServicesServiceSidEntitiesIdentityFactorsSidDeleteParams Optional parameters for the method 'V2ServicesServiceSidEntitiesIdentityFactorsSidDelete' -type V2ServicesServiceSidEntitiesIdentityFactorsSidDeleteParams struct { - TwilioSandboxMode *string `json:"Twilio-Sandbox-Mode,omitempty"` -} - -/* -V2ServicesServiceSidEntitiesIdentityFactorsSidDelete Method for V2ServicesServiceSidEntitiesIdentityFactorsSidDelete -Delete a specific Factor. - * @param serviceSid The unique SID identifier of the Service. - * @param identity Customer unique identity for the Entity owner of the Factor - * @param sid A 34 character string that uniquely identifies this Factor. - * @param optional nil or *V2ServicesServiceSidEntitiesIdentityFactorsSidDeleteOpts - Optional Parameters: - * @param "TwilioSandboxMode" (string) - The Twilio-Sandbox-Mode HTTP request header -*/ -func (c *PreviewApiService) V2ServicesServiceSidEntitiesIdentityFactorsSidDelete(serviceSid string, identity string, sid string, params *V2ServicesServiceSidEntitiesIdentityFactorsSidDeleteParams) error { - path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := make(map[string]interface{}) - headers := make(map[string]interface{}) - - if params.TwilioSandboxMode != nil { - headers["Twilio-Sandbox-Mode"] = *params.TwilioSandboxMode - } - - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } - - defer resp.Body.Close() - - return nil -} - -// V2ServicesServiceSidEntitiesIdentityFactorsSidGetParams Optional parameters for the method 'V2ServicesServiceSidEntitiesIdentityFactorsSidGet' -type V2ServicesServiceSidEntitiesIdentityFactorsSidGetParams struct { - TwilioSandboxMode *string `json:"Twilio-Sandbox-Mode,omitempty"` -} - -/* -V2ServicesServiceSidEntitiesIdentityFactorsSidGet Method for V2ServicesServiceSidEntitiesIdentityFactorsSidGet -Fetch a specific Factor. - * @param serviceSid The unique SID identifier of the Service. - * @param identity Customer unique identity for the Entity owner of the Factor - * @param sid A 34 character string that uniquely identifies this Factor. - * @param optional nil or *V2ServicesServiceSidEntitiesIdentityFactorsSidGetOpts - Optional Parameters: - * @param "TwilioSandboxMode" (string) - The Twilio-Sandbox-Mode HTTP request header -@return VerifyV2ServiceEntityFactor -*/ -func (c *PreviewApiService) V2ServicesServiceSidEntitiesIdentityFactorsSidGet(serviceSid string, identity string, sid string, params *V2ServicesServiceSidEntitiesIdentityFactorsSidGetParams) (*VerifyV2ServiceEntityFactor, error) { - path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := make(map[string]interface{}) - headers := make(map[string]interface{}) - - if params.TwilioSandboxMode != nil { - headers["Twilio-Sandbox-Mode"] = *params.TwilioSandboxMode - } - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VerifyV2ServiceEntityFactor{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} - -// V2ServicesServiceSidEntitiesIdentityFactorsSidPostParams Optional parameters for the method 'V2ServicesServiceSidEntitiesIdentityFactorsSidPost' -type V2ServicesServiceSidEntitiesIdentityFactorsSidPostParams struct { - TwilioSandboxMode *string `json:"Twilio-Sandbox-Mode,omitempty"` - AuthPayload *string `json:"AuthPayload,omitempty"` - Config *string `json:"Config,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` -} - -/* -V2ServicesServiceSidEntitiesIdentityFactorsSidPost Method for V2ServicesServiceSidEntitiesIdentityFactorsSidPost -Update a specific Factor. This endpoint can be used to Verify a Factor if passed an `AuthPayload` param. - * @param serviceSid The unique SID identifier of the Service. - * @param identity Customer unique identity for the Entity owner of the Factor - * @param sid A 34 character string that uniquely identifies this Factor. - * @param optional nil or *V2ServicesServiceSidEntitiesIdentityFactorsSidPostOpts - Optional Parameters: - * @param "TwilioSandboxMode" (string) - The Twilio-Sandbox-Mode HTTP request header - * @param "AuthPayload" (string) - The optional payload needed to verify the Factor for the first time. E.g. for a TOTP, the numeric code. - * @param "Config" (string) - The new config for this Factor. It must be a json string with the required properties for the given factor type - * @param "FriendlyName" (string) - The new friendly name of this Factor -@return VerifyV2ServiceEntityFactor -*/ -func (c *PreviewApiService) V2ServicesServiceSidEntitiesIdentityFactorsSidPost(serviceSid string, identity string, sid string, params *V2ServicesServiceSidEntitiesIdentityFactorsSidPostParams) (*VerifyV2ServiceEntityFactor, error) { - path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := make(map[string]interface{}) - headers := make(map[string]interface{}) - - if params.AuthPayload != nil { - data["AuthPayload"] = *params.AuthPayload - } - if params.Config != nil { - data["Config"] = *params.Config - } - if params.FriendlyName != nil { - data["FriendlyName"] = *params.FriendlyName - } - - if params.TwilioSandboxMode != nil { - headers["Twilio-Sandbox-Mode"] = *params.TwilioSandboxMode - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VerifyV2ServiceEntityFactor{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} - -// V2ServicesServiceSidEntitiesIdentityGetParams Optional parameters for the method 'V2ServicesServiceSidEntitiesIdentityGet' -type V2ServicesServiceSidEntitiesIdentityGetParams struct { - TwilioSandboxMode *string `json:"Twilio-Sandbox-Mode,omitempty"` -} - -/* -V2ServicesServiceSidEntitiesIdentityGet Method for V2ServicesServiceSidEntitiesIdentityGet -Fetch a specific Entity. - * @param serviceSid The unique SID identifier of the Service. - * @param identity The unique external identifier for the Entity of the Service - * @param optional nil or *V2ServicesServiceSidEntitiesIdentityGetOpts - Optional Parameters: - * @param "TwilioSandboxMode" (string) - The Twilio-Sandbox-Mode HTTP request header -@return VerifyV2ServiceEntity -*/ -func (c *PreviewApiService) V2ServicesServiceSidEntitiesIdentityGet(serviceSid string, identity string, params *V2ServicesServiceSidEntitiesIdentityGetParams) (*VerifyV2ServiceEntity, error) { - path := "/v2/Services/{ServiceSid}/Entities/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - - data := make(map[string]interface{}) - headers := make(map[string]interface{}) - - if params.TwilioSandboxMode != nil { - headers["Twilio-Sandbox-Mode"] = *params.TwilioSandboxMode - } - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VerifyV2ServiceEntity{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} - -// V2ServicesServiceSidEntitiesPostParams Optional parameters for the method 'V2ServicesServiceSidEntitiesPost' -type V2ServicesServiceSidEntitiesPostParams struct { - TwilioSandboxMode *string `json:"Twilio-Sandbox-Mode,omitempty"` - Identity *string `json:"Identity,omitempty"` -} - -/* -V2ServicesServiceSidEntitiesPost Method for V2ServicesServiceSidEntitiesPost -Create a new Entity for the Service - * @param serviceSid The unique SID identifier of the Service. - * @param optional nil or *V2ServicesServiceSidEntitiesPostOpts - Optional Parameters: - * @param "TwilioSandboxMode" (string) - The Twilio-Sandbox-Mode HTTP request header - * @param "Identity" (string) - The unique external identifier for the Entity of the Service -@return VerifyV2ServiceEntity -*/ -func (c *PreviewApiService) V2ServicesServiceSidEntitiesPost(serviceSid string, params *V2ServicesServiceSidEntitiesPostParams) (*VerifyV2ServiceEntity, error) { - path := "/v2/Services/{ServiceSid}/Entities" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - - data := make(map[string]interface{}) - headers := make(map[string]interface{}) - - if params.Identity != nil { - data["Identity"] = *params.Identity - } - - if params.TwilioSandboxMode != nil { - headers["Twilio-Sandbox-Mode"] = *params.TwilioSandboxMode - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VerifyV2ServiceEntity{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} - -// V2ServicesServiceSidWebhooksGetParams Optional parameters for the method 'V2ServicesServiceSidWebhooksGet' -type V2ServicesServiceSidWebhooksGetParams struct { - PageSize *int32 `json:"PageSize,omitempty"` -} - -/* -V2ServicesServiceSidWebhooksGet Method for V2ServicesServiceSidWebhooksGet -Retrieve a list of all Webhooks for a Service. - * @param serviceSid The unique SID identifier of the Service. - * @param optional nil or *V2ServicesServiceSidWebhooksGetOpts - Optional Parameters: - * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return InlineResponse2007 -*/ -func (c *PreviewApiService) V2ServicesServiceSidWebhooksGet(serviceSid string, params *V2ServicesServiceSidWebhooksGetParams) (*InlineResponse2007, error) { - path := "/v2/Services/{ServiceSid}/Webhooks" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - - data := make(map[string]interface{}) - headers := 0 - - if params.PageSize != nil { - data["PageSize"] = *params.PageSize - } - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &InlineResponse2007{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} - -// V2ServicesServiceSidWebhooksPostParams Optional parameters for the method 'V2ServicesServiceSidWebhooksPost' -type V2ServicesServiceSidWebhooksPostParams struct { - EventTypes *[]string `json:"EventTypes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Status *string `json:"Status,omitempty"` - WebhookUrl *string `json:"WebhookUrl,omitempty"` -} - -/* -V2ServicesServiceSidWebhooksPost Method for V2ServicesServiceSidWebhooksPost -Create a new Webhook for the Service - * @param serviceSid The unique SID identifier of the Service. - * @param optional nil or *V2ServicesServiceSidWebhooksPostOpts - Optional Parameters: - * @param "EventTypes" ([]string) - The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied` - * @param "FriendlyName" (string) - The string that you assigned to describe the webhook. **This value should not contain PII.** - * @param "Status" (string) - The webhook status. Default value is `enabled`. One of: `enabled` or `disabled` - * @param "WebhookUrl" (string) - The URL associated with this Webhook. -@return VerifyV2ServiceWebhook -*/ -func (c *PreviewApiService) V2ServicesServiceSidWebhooksPost(serviceSid string, params *V2ServicesServiceSidWebhooksPostParams) (*VerifyV2ServiceWebhook, error) { - path := "/v2/Services/{ServiceSid}/Webhooks" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - - data := make(map[string]interface{}) - headers := 0 - - if params.EventTypes != nil { - data["EventTypes"] = *params.EventTypes - } - if params.FriendlyName != nil { - data["FriendlyName"] = *params.FriendlyName - } - if params.Status != nil { - data["Status"] = *params.Status - } - if params.WebhookUrl != nil { - data["WebhookUrl"] = *params.WebhookUrl - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VerifyV2ServiceWebhook{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} - -/* -V2ServicesServiceSidWebhooksSidDelete Method for V2ServicesServiceSidWebhooksSidDelete -Delete a specific Webhook. - * @param serviceSid The unique SID identifier of the Service. - * @param sid The Twilio-provided string that uniquely identifies the Webhook resource to delete. -*/ -func (c *PreviewApiService) V2ServicesServiceSidWebhooksSidDelete(serviceSid string, sid string) error { - path := "/v2/Services/{ServiceSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := 0 - headers := 0 - - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } - - defer resp.Body.Close() - - return nil -} - -/* -V2ServicesServiceSidWebhooksSidGet Method for V2ServicesServiceSidWebhooksSidGet -Fetch a specific Webhook. - * @param serviceSid The unique SID identifier of the Service. - * @param sid The Twilio-provided string that uniquely identifies the Webhook resource to fetch. -@return VerifyV2ServiceWebhook -*/ -func (c *PreviewApiService) V2ServicesServiceSidWebhooksSidGet(serviceSid string, sid string) (*VerifyV2ServiceWebhook, error) { - path := "/v2/Services/{ServiceSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := 0 - headers := 0 - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VerifyV2ServiceWebhook{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} - -// V2ServicesServiceSidWebhooksSidPostParams Optional parameters for the method 'V2ServicesServiceSidWebhooksSidPost' -type V2ServicesServiceSidWebhooksSidPostParams struct { - EventTypes *[]string `json:"EventTypes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Status *string `json:"Status,omitempty"` - WebhookUrl *string `json:"WebhookUrl,omitempty"` -} - -/* -V2ServicesServiceSidWebhooksSidPost Method for V2ServicesServiceSidWebhooksSidPost - * @param serviceSid The unique SID identifier of the Service. - * @param sid The Twilio-provided string that uniquely identifies the Webhook resource to update. - * @param optional nil or *V2ServicesServiceSidWebhooksSidPostOpts - Optional Parameters: - * @param "EventTypes" ([]string) - The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied` - * @param "FriendlyName" (string) - The string that you assigned to describe the webhook. **This value should not contain PII.** - * @param "Status" (string) - The webhook status. Default value is `enabled`. One of: `enabled` or `disabled` - * @param "WebhookUrl" (string) - The URL associated with this Webhook. -@return VerifyV2ServiceWebhook -*/ -func (c *PreviewApiService) V2ServicesServiceSidWebhooksSidPost(serviceSid string, sid string, params *V2ServicesServiceSidWebhooksSidPostParams) (*VerifyV2ServiceWebhook, error) { - path := "/v2/Services/{ServiceSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := make(map[string]interface{}) - headers := 0 - - if params.EventTypes != nil { - data["EventTypes"] = *params.EventTypes - } - if params.FriendlyName != nil { - data["FriendlyName"] = *params.FriendlyName - } - if params.Status != nil { - data["Status"] = *params.Status - } - if params.WebhookUrl != nil { - data["WebhookUrl"] = *params.WebhookUrl - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VerifyV2ServiceWebhook{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} diff --git a/verify/api_service.go b/verify/api_service.go deleted file mode 100644 index 7f1106e43..000000000 --- a/verify/api_service.go +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio - -import ( - twilio "github.com/twilio/twilio-go/client" -) - -type ApiService struct { - GAApi *GAApiService - PreviewApi *PreviewApiService - -} - -func NewApiService(client *twilio.Client) *ApiService { - return &ApiService{ - GAApi: NewGAApiService(client), - PreviewApi: NewPreviewApiService(client), - - } -} diff --git a/verify/docs/GAApi.md b/verify/docs/GAApi.md deleted file mode 100644 index f333281af..000000000 --- a/verify/docs/GAApi.md +++ /dev/null @@ -1,1069 +0,0 @@ -# \GAApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**V2ServicesGet**](GAApi.md#V2ServicesGet) | **Get** /v2/Services | -[**V2ServicesPost**](GAApi.md#V2ServicesPost) | **Post** /v2/Services | -[**V2ServicesServiceSidMessagingConfigurationsCountryDelete**](GAApi.md#V2ServicesServiceSidMessagingConfigurationsCountryDelete) | **Delete** /v2/Services/{ServiceSid}/MessagingConfigurations/{Country} | -[**V2ServicesServiceSidMessagingConfigurationsCountryGet**](GAApi.md#V2ServicesServiceSidMessagingConfigurationsCountryGet) | **Get** /v2/Services/{ServiceSid}/MessagingConfigurations/{Country} | -[**V2ServicesServiceSidMessagingConfigurationsCountryPost**](GAApi.md#V2ServicesServiceSidMessagingConfigurationsCountryPost) | **Post** /v2/Services/{ServiceSid}/MessagingConfigurations/{Country} | -[**V2ServicesServiceSidMessagingConfigurationsGet**](GAApi.md#V2ServicesServiceSidMessagingConfigurationsGet) | **Get** /v2/Services/{ServiceSid}/MessagingConfigurations | -[**V2ServicesServiceSidMessagingConfigurationsPost**](GAApi.md#V2ServicesServiceSidMessagingConfigurationsPost) | **Post** /v2/Services/{ServiceSid}/MessagingConfigurations | -[**V2ServicesServiceSidRateLimitsGet**](GAApi.md#V2ServicesServiceSidRateLimitsGet) | **Get** /v2/Services/{ServiceSid}/RateLimits | -[**V2ServicesServiceSidRateLimitsPost**](GAApi.md#V2ServicesServiceSidRateLimitsPost) | **Post** /v2/Services/{ServiceSid}/RateLimits | -[**V2ServicesServiceSidRateLimitsRateLimitSidBucketsGet**](GAApi.md#V2ServicesServiceSidRateLimitsRateLimitSidBucketsGet) | **Get** /v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets | -[**V2ServicesServiceSidRateLimitsRateLimitSidBucketsPost**](GAApi.md#V2ServicesServiceSidRateLimitsRateLimitSidBucketsPost) | **Post** /v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets | -[**V2ServicesServiceSidRateLimitsRateLimitSidBucketsSidDelete**](GAApi.md#V2ServicesServiceSidRateLimitsRateLimitSidBucketsSidDelete) | **Delete** /v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid} | -[**V2ServicesServiceSidRateLimitsRateLimitSidBucketsSidGet**](GAApi.md#V2ServicesServiceSidRateLimitsRateLimitSidBucketsSidGet) | **Get** /v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid} | -[**V2ServicesServiceSidRateLimitsRateLimitSidBucketsSidPost**](GAApi.md#V2ServicesServiceSidRateLimitsRateLimitSidBucketsSidPost) | **Post** /v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid} | -[**V2ServicesServiceSidRateLimitsSidDelete**](GAApi.md#V2ServicesServiceSidRateLimitsSidDelete) | **Delete** /v2/Services/{ServiceSid}/RateLimits/{Sid} | -[**V2ServicesServiceSidRateLimitsSidGet**](GAApi.md#V2ServicesServiceSidRateLimitsSidGet) | **Get** /v2/Services/{ServiceSid}/RateLimits/{Sid} | -[**V2ServicesServiceSidRateLimitsSidPost**](GAApi.md#V2ServicesServiceSidRateLimitsSidPost) | **Post** /v2/Services/{ServiceSid}/RateLimits/{Sid} | -[**V2ServicesServiceSidVerificationCheckPost**](GAApi.md#V2ServicesServiceSidVerificationCheckPost) | **Post** /v2/Services/{ServiceSid}/VerificationCheck | -[**V2ServicesServiceSidVerificationsPost**](GAApi.md#V2ServicesServiceSidVerificationsPost) | **Post** /v2/Services/{ServiceSid}/Verifications | -[**V2ServicesServiceSidVerificationsSidGet**](GAApi.md#V2ServicesServiceSidVerificationsSidGet) | **Get** /v2/Services/{ServiceSid}/Verifications/{Sid} | -[**V2ServicesServiceSidVerificationsSidPost**](GAApi.md#V2ServicesServiceSidVerificationsSidPost) | **Post** /v2/Services/{ServiceSid}/Verifications/{Sid} | -[**V2ServicesSidDelete**](GAApi.md#V2ServicesSidDelete) | **Delete** /v2/Services/{Sid} | -[**V2ServicesSidGet**](GAApi.md#V2ServicesSidGet) | **Get** /v2/Services/{Sid} | -[**V2ServicesSidPost**](GAApi.md#V2ServicesSidPost) | **Post** /v2/Services/{Sid} | - - - -## V2ServicesGet - -> InlineResponse200 V2ServicesGet(ctx, optional) - - - -Retrieve a list of all Verification Services for an account. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **optional** | ***V2ServicesGetOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a V2ServicesGetOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | - -### Return type - -[**InlineResponse200**](inline_response_200.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) - - -## V2ServicesPost - -> VerifyV2Service V2ServicesPost(ctx, optional) - - - -Create a new Verification Service. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **optional** | ***V2ServicesPostOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a V2ServicesPostOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **codeLength** | **optional.**| The length of the verification code to generate. Must be an integer value between 4 and 10, inclusive. | - **customCodeEnabled** | **optional.**| Whether to allow sending verifications with a custom code instead of a randomly generated one. Not available for all customers. | - **doNotShareWarningEnabled** | **optional.**| Whether to add a security warning at the end of an SMS verification body. Disabled by default and applies only to SMS. Example SMS body: `Your AppName verification code is: 1234. Don’t share this code with anyone; our employees will never ask for the code` | - **dtmfInputRequired** | **optional.**| Whether to ask the user to press a number before delivering the verify code in a phone call. | - **friendlyName** | **optional.**| A descriptive string that you create to describe the verification service. It can be up to 64 characters long. **This value should not contain PII.** | - **lookupEnabled** | **optional.**| Whether to perform a lookup with each verification started and return info about the phone number. | - **psd2Enabled** | **optional.**| Whether to pass PSD2 transaction parameters when starting a verification. | - **push** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| Configurations for the Push factors (channel) created under this Service. If present, it must be a json string with the following format: {\\\"notify_service_sid\\\": \\\"ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\\\", \\\"include_date\\\": true}. If `include_date` is set to `true`, which is the default, that means that the push challenge’s response will include the date created value. If `include_date` is set to `false`, then the date created value will not be included. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info | - **skipSmsToLandlines** | **optional.**| Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`. | - **ttsName** | **optional.**| The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. | - -### Return type - -[**VerifyV2Service**](verify.v2.service.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) - - -## V2ServicesServiceSidMessagingConfigurationsCountryDelete - -> V2ServicesServiceSidMessagingConfigurationsCountryDelete(ctx, serviceSid, country) - - - -Delete a specific MessagingConfiguration. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. | -**country** | **string**| The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. | - -### 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) - - -## V2ServicesServiceSidMessagingConfigurationsCountryGet - -> VerifyV2ServiceMessagingConfiguration V2ServicesServiceSidMessagingConfigurationsCountryGet(ctx, serviceSid, country) - - - -Fetch a specific MessagingConfiguration. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. | -**country** | **string**| The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. | - -### Return type - -[**VerifyV2ServiceMessagingConfiguration**](verify.v2.service.messaging_configuration.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) - - -## V2ServicesServiceSidMessagingConfigurationsCountryPost - -> VerifyV2ServiceMessagingConfiguration V2ServicesServiceSidMessagingConfigurationsCountryPost(ctx, serviceSid, country, optional) - - - -Update a specific MessagingConfiguration - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. | -**country** | **string**| The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. | - **optional** | ***V2ServicesServiceSidMessagingConfigurationsCountryPostOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a V2ServicesServiceSidMessagingConfigurationsCountryPostOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - **messagingServiceSid** | **optional.**| The SID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) to be used to send SMS to the country of this configuration. | - -### Return type - -[**VerifyV2ServiceMessagingConfiguration**](verify.v2.service.messaging_configuration.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) - - -## V2ServicesServiceSidMessagingConfigurationsGet - -> InlineResponse2004 V2ServicesServiceSidMessagingConfigurationsGet(ctx, serviceSid, optional) - - - -Retrieve a list of all Messaging Configurations for a Service. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. | - **optional** | ***V2ServicesServiceSidMessagingConfigurationsGetOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a V2ServicesServiceSidMessagingConfigurationsGetOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **pageSize** | **optional.**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | - -### Return type - -[**InlineResponse2004**](inline_response_200_4.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) - - -## V2ServicesServiceSidMessagingConfigurationsPost - -> VerifyV2ServiceMessagingConfiguration V2ServicesServiceSidMessagingConfigurationsPost(ctx, serviceSid, optional) - - - -Create a new MessagingConfiguration for a service. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. | - **optional** | ***V2ServicesServiceSidMessagingConfigurationsPostOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a V2ServicesServiceSidMessagingConfigurationsPostOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **country** | **optional.**| The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. | - **messagingServiceSid** | **optional.**| The SID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) to be used to send SMS to the country of this configuration. | - -### Return type - -[**VerifyV2ServiceMessagingConfiguration**](verify.v2.service.messaging_configuration.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) - - -## V2ServicesServiceSidRateLimitsGet - -> InlineResponse2005 V2ServicesServiceSidRateLimitsGet(ctx, serviceSid, optional) - - - -Retrieve a list of all Rate Limits for a service. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | - **optional** | ***V2ServicesServiceSidRateLimitsGetOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a V2ServicesServiceSidRateLimitsGetOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **pageSize** | **optional.**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | - -### Return type - -[**InlineResponse2005**](inline_response_200_5.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) - - -## V2ServicesServiceSidRateLimitsPost - -> VerifyV2ServiceRateLimit V2ServicesServiceSidRateLimitsPost(ctx, serviceSid, optional) - - - -Create a new Rate Limit for a Service - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | - **optional** | ***V2ServicesServiceSidRateLimitsPostOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a V2ServicesServiceSidRateLimitsPostOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **description** | **optional.**| Description of this Rate Limit | - **uniqueName** | **optional.**| Provides a unique and addressable name to be assigned to this Rate Limit, assigned by the developer, to be optionally used in addition to SID. **This value should not contain PII.** | - -### Return type - -[**VerifyV2ServiceRateLimit**](verify.v2.service.rate_limit.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) - - -## V2ServicesServiceSidRateLimitsRateLimitSidBucketsGet - -> InlineResponse2006 V2ServicesServiceSidRateLimitsRateLimitSidBucketsGet(ctx, serviceSid, rateLimitSid, optional) - - - -Retrieve a list of all Buckets for a Rate Limit. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | -**rateLimitSid** | **string**| The Twilio-provided string that uniquely identifies the Rate Limit resource. | - **optional** | ***V2ServicesServiceSidRateLimitsRateLimitSidBucketsGetOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a V2ServicesServiceSidRateLimitsRateLimitSidBucketsGetOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - **pageSize** | **optional.**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | - -### Return type - -[**InlineResponse2006**](inline_response_200_6.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) - - -## V2ServicesServiceSidRateLimitsRateLimitSidBucketsPost - -> VerifyV2ServiceRateLimitBucket V2ServicesServiceSidRateLimitsRateLimitSidBucketsPost(ctx, serviceSid, rateLimitSid, optional) - - - -Create a new Bucket for a Rate Limit - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | -**rateLimitSid** | **string**| The Twilio-provided string that uniquely identifies the Rate Limit resource. | - **optional** | ***V2ServicesServiceSidRateLimitsRateLimitSidBucketsPostOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a V2ServicesServiceSidRateLimitsRateLimitSidBucketsPostOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - **interval** | **optional.**| Number of seconds that the rate limit will be enforced over. | - **max** | **optional.**| Maximum number of requests permitted in during the interval. | - -### Return type - -[**VerifyV2ServiceRateLimitBucket**](verify.v2.service.rate_limit.bucket.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) - - -## V2ServicesServiceSidRateLimitsRateLimitSidBucketsSidDelete - -> V2ServicesServiceSidRateLimitsRateLimitSidBucketsSidDelete(ctx, serviceSid, rateLimitSid, sid) - - - -Delete a specific Bucket. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | -**rateLimitSid** | **string**| The Twilio-provided string that uniquely identifies the Rate Limit resource. | -**sid** | **string**| A 34 character string that uniquely identifies this Bucket. | - -### 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) - - -## V2ServicesServiceSidRateLimitsRateLimitSidBucketsSidGet - -> VerifyV2ServiceRateLimitBucket V2ServicesServiceSidRateLimitsRateLimitSidBucketsSidGet(ctx, serviceSid, rateLimitSid, sid) - - - -Fetch a specific Bucket. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | -**rateLimitSid** | **string**| The Twilio-provided string that uniquely identifies the Rate Limit resource. | -**sid** | **string**| A 34 character string that uniquely identifies this Bucket. | - -### Return type - -[**VerifyV2ServiceRateLimitBucket**](verify.v2.service.rate_limit.bucket.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) - - -## V2ServicesServiceSidRateLimitsRateLimitSidBucketsSidPost - -> VerifyV2ServiceRateLimitBucket V2ServicesServiceSidRateLimitsRateLimitSidBucketsSidPost(ctx, serviceSid, rateLimitSid, sid, optional) - - - -Update a specific Bucket. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | -**rateLimitSid** | **string**| The Twilio-provided string that uniquely identifies the Rate Limit resource. | -**sid** | **string**| A 34 character string that uniquely identifies this Bucket. | - **optional** | ***V2ServicesServiceSidRateLimitsRateLimitSidBucketsSidPostOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a V2ServicesServiceSidRateLimitsRateLimitSidBucketsSidPostOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - - **interval** | **optional.**| Number of seconds that the rate limit will be enforced over. | - **max** | **optional.**| Maximum number of requests permitted in during the interval. | - -### Return type - -[**VerifyV2ServiceRateLimitBucket**](verify.v2.service.rate_limit.bucket.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) - - -## V2ServicesServiceSidRateLimitsSidDelete - -> V2ServicesServiceSidRateLimitsSidDelete(ctx, serviceSid, sid) - - - -Delete a specific Rate Limit. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Rate Limit resource to fetch. | - -### 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) - - -## V2ServicesServiceSidRateLimitsSidGet - -> VerifyV2ServiceRateLimit V2ServicesServiceSidRateLimitsSidGet(ctx, serviceSid, sid) - - - -Fetch a specific Rate Limit. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Rate Limit resource to fetch. | - -### Return type - -[**VerifyV2ServiceRateLimit**](verify.v2.service.rate_limit.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) - - -## V2ServicesServiceSidRateLimitsSidPost - -> VerifyV2ServiceRateLimit V2ServicesServiceSidRateLimitsSidPost(ctx, serviceSid, sid, optional) - - - -Update a specific Rate Limit. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Rate Limit resource to fetch. | - **optional** | ***V2ServicesServiceSidRateLimitsSidPostOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a V2ServicesServiceSidRateLimitsSidPostOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - **description** | **optional.**| Description of this Rate Limit | - -### Return type - -[**VerifyV2ServiceRateLimit**](verify.v2.service.rate_limit.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) - - -## V2ServicesServiceSidVerificationCheckPost - -> VerifyV2ServiceVerificationCheck V2ServicesServiceSidVerificationCheckPost(ctx, serviceSid, optional) - - - -challenge a specific Verification Check. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the verification [Service](https://www.twilio.com/docs/verify/api/service) to create the resource under. | - **optional** | ***V2ServicesServiceSidVerificationCheckPostOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a V2ServicesServiceSidVerificationCheckPostOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **amount** | **optional.**| The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. | - **code** | **optional.**| The 4-10 character string being verified. | - **payee** | **optional.**| The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. | - **to** | **optional.**| The phone number or [email](https://www.twilio.com/docs/verify/email) to verify. Either this parameter or the `verification_sid` must be specified. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). | - **verificationSid** | **optional.**| A SID that uniquely identifies the Verification Check. Either this parameter or the `to` phone number/[email](https://www.twilio.com/docs/verify/email) must be specified. | - -### Return type - -[**VerifyV2ServiceVerificationCheck**](verify.v2.service.verification_check.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) - - -## V2ServicesServiceSidVerificationsPost - -> VerifyV2ServiceVerification V2ServicesServiceSidVerificationsPost(ctx, serviceSid, optional) - - - -Create a new Verification using a Service - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the verification [Service](https://www.twilio.com/docs/verify/api/service) to create the resource under. | - **optional** | ***V2ServicesServiceSidVerificationsPostOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a V2ServicesServiceSidVerificationsPostOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **amount** | **optional.**| The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. | - **appHash** | **optional.**| Your [App Hash](https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string) to be appended at the end of your verification SMS body. Applies only to SMS. Example SMS body: `<#> Your AppName verification code is: 1234 He42w354ol9`. | - **channel** | **optional.**| The verification method to use. Can be: [`email`](https://www.twilio.com/docs/verify/email), `sms` or `call`. | - **channelConfiguration** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| [`email`](https://www.twilio.com/docs/verify/email) channel configuration in json format. Must include 'from' and 'from_name'. | - **customCode** | **optional.**| A pre-generated code to use for verification. The code can be between 4 and 10 characters, inclusive. | - **customFriendlyName** | **optional.**| A custom user defined friendly name that overwrites the existing one in the verification message | - **customMessage** | **optional.**| The text of a custom message to use for the verification. | - **locale** | **optional.**| The locale to use for the verification SMS or call. Can be: `af`, `ar`, `ca`, `cs`, `da`, `de`, `el`, `en`, `en-GB`, `es`, `fi`, `fr`, `he`, `hi`, `hr`, `hu`, `id`, `it`, `ja`, `ko`, `ms`, `nb`, `nl`, `pl`, `pt`, `pr-BR`, `ro`, `ru`, `sv`, `th`, `tl`, `tr`, `vi`, `zh`, `zh-CN`, or `zh-HK.` | - **payee** | **optional.**| The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. | - **rateLimits** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The custom key-value pairs of Programmable Rate Limits. Keys correspond to `unique_name` fields defined when [creating your Rate Limit](https://www.twilio.com/docs/verify/api/service-rate-limits). Associated value pairs represent values in the request that you are rate limiting on. You may include multiple Rate Limit values in each request. | - **sendDigits** | **optional.**| The digits to send after a phone call is answered, for example, to dial an extension. For more information, see the Programmable Voice documentation of [sendDigits](https://www.twilio.com/docs/voice/twiml/number#attributes-sendDigits). | - **to** | **optional.**| The phone number or [email](https://www.twilio.com/docs/verify/email) to verify. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). | - -### Return type - -[**VerifyV2ServiceVerification**](verify.v2.service.verification.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) - - -## V2ServicesServiceSidVerificationsSidGet - -> VerifyV2ServiceVerification V2ServicesServiceSidVerificationsSidGet(ctx, serviceSid, sid) - - - -Fetch a specific Verification - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the verification [Service](https://www.twilio.com/docs/verify/api/service) to fetch the resource from. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Verification resource to fetch. | - -### Return type - -[**VerifyV2ServiceVerification**](verify.v2.service.verification.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) - - -## V2ServicesServiceSidVerificationsSidPost - -> VerifyV2ServiceVerification V2ServicesServiceSidVerificationsSidPost(ctx, serviceSid, sid, optional) - - - -Update a Verification status - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the verification [Service](https://www.twilio.com/docs/verify/api/service) to update the resource from. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Verification resource to update. | - **optional** | ***V2ServicesServiceSidVerificationsSidPostOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a V2ServicesServiceSidVerificationsSidPostOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - **status** | **optional.**| The new status of the resource. Can be: `canceled` or `approved`. | - -### Return type - -[**VerifyV2ServiceVerification**](verify.v2.service.verification.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) - - -## V2ServicesSidDelete - -> V2ServicesSidDelete(ctx, sid) - - - -Delete a specific Verification Service Instance. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the Verification Service resource to delete. | - -### 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) - - -## V2ServicesSidGet - -> VerifyV2Service V2ServicesSidGet(ctx, sid) - - - -Fetch specific Verification Service Instance. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the Verification Service resource to fetch. | - -### Return type - -[**VerifyV2Service**](verify.v2.service.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) - - -## V2ServicesSidPost - -> VerifyV2Service V2ServicesSidPost(ctx, sid, optional) - - - -Update a specific Verification Service. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the Service resource to update. | - **optional** | ***V2ServicesSidPostOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a V2ServicesSidPostOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **codeLength** | **optional.**| The length of the verification code to generate. Must be an integer value between 4 and 10, inclusive. | - **customCodeEnabled** | **optional.**| Whether to allow sending verifications with a custom code instead of a randomly generated one. Not available for all customers. | - **doNotShareWarningEnabled** | **optional.**| Whether to add a privacy warning at the end of an SMS. **Disabled by default and applies only for SMS.** | - **dtmfInputRequired** | **optional.**| Whether to ask the user to press a number before delivering the verify code in a phone call. | - **friendlyName** | **optional.**| A descriptive string that you create to describe the verification service. It can be up to 64 characters long. **This value should not contain PII.** | - **lookupEnabled** | **optional.**| Whether to perform a lookup with each verification started and return info about the phone number. | - **psd2Enabled** | **optional.**| Whether to pass PSD2 transaction parameters when starting a verification. | - **push** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| Configurations for the Push factors (channel) created under this Service. If present, it must be a json string with the following format: {\\\"notify_service_sid\\\": \\\"ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\\\", \\\"include_date\\\": true}. If `include_date` is set to `true`, which is the default, that means that the push challenge’s response will include the date created value. If `include_date` is set to `false`, then the date created value will not be included. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info | - **skipSmsToLandlines** | **optional.**| Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`. | - **ttsName** | **optional.**| The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. | - -### Return type - -[**VerifyV2Service**](verify.v2.service.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/verify/docs/InlineObject.md b/verify/docs/InlineObject.md deleted file mode 100644 index a1c123e8f..000000000 --- a/verify/docs/InlineObject.md +++ /dev/null @@ -1,20 +0,0 @@ -# InlineObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CodeLength** | **int32** | The length of the verification code to generate. Must be an integer value between 4 and 10, inclusive. | [optional] -**CustomCodeEnabled** | **bool** | Whether to allow sending verifications with a custom code instead of a randomly generated one. Not available for all customers. | [optional] -**DoNotShareWarningEnabled** | **bool** | Whether to add a security warning at the end of an SMS verification body. Disabled by default and applies only to SMS. Example SMS body: `Your AppName verification code is: 1234. Don’t share this code with anyone; our employees will never ask for the code` | [optional] -**DtmfInputRequired** | **bool** | Whether to ask the user to press a number before delivering the verify code in a phone call. | [optional] -**FriendlyName** | **string** | A descriptive string that you create to describe the verification service. It can be up to 64 characters long. **This value should not contain PII.** | -**LookupEnabled** | **bool** | Whether to perform a lookup with each verification started and return info about the phone number. | [optional] -**Psd2Enabled** | **bool** | Whether to pass PSD2 transaction parameters when starting a verification. | [optional] -**Push** | **map[string]interface{}** | Configurations for the Push factors (channel) created under this Service. If present, it must be a json string with the following format: {\"notify_service_sid\": \"ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\", \"include_date\": true}. If `include_date` is set to `true`, which is the default, that means that the push challenge’s response will include the date created value. If `include_date` is set to `false`, then the date created value will not be included. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info | [optional] -**SkipSmsToLandlines** | **bool** | Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`. | [optional] -**TtsName** | **string** | The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. | [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/verify/docs/InlineObject1.md b/verify/docs/InlineObject1.md deleted file mode 100644 index d63dc50dd..000000000 --- a/verify/docs/InlineObject1.md +++ /dev/null @@ -1,12 +0,0 @@ -# InlineObject1 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FactorType** | **string** | The Type of this Factor. Eg. `push` | -**Identity** | **string** | The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, and generated by your external system, such as your user's UUID, GUID, or SID. | - -[[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/verify/docs/InlineObject10.md b/verify/docs/InlineObject10.md deleted file mode 100644 index 8afa2501e..000000000 --- a/verify/docs/InlineObject10.md +++ /dev/null @@ -1,12 +0,0 @@ -# InlineObject10 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Interval** | **int32** | Number of seconds that the rate limit will be enforced over. | -**Max** | **int32** | Maximum number of requests permitted in during the interval. | - -[[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/verify/docs/InlineObject11.md b/verify/docs/InlineObject11.md deleted file mode 100644 index 89e253832..000000000 --- a/verify/docs/InlineObject11.md +++ /dev/null @@ -1,12 +0,0 @@ -# InlineObject11 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Interval** | **int32** | Number of seconds that the rate limit will be enforced over. | [optional] -**Max** | **int32** | Maximum number of requests permitted in during the interval. | [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/verify/docs/InlineObject12.md b/verify/docs/InlineObject12.md deleted file mode 100644 index 532953c25..000000000 --- a/verify/docs/InlineObject12.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineObject12 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Description** | **string** | Description of this Rate Limit | [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/verify/docs/InlineObject13.md b/verify/docs/InlineObject13.md deleted file mode 100644 index 92049f7de..000000000 --- a/verify/docs/InlineObject13.md +++ /dev/null @@ -1,15 +0,0 @@ -# InlineObject13 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Amount** | **string** | The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. | [optional] -**Code** | **string** | The 4-10 character string being verified. | -**Payee** | **string** | The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. | [optional] -**To** | **string** | The phone number or [email](https://www.twilio.com/docs/verify/email) to verify. Either this parameter or the `verification_sid` must be specified. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). | [optional] -**VerificationSid** | **string** | A SID that uniquely identifies the Verification Check. Either this parameter or the `to` phone number/[email](https://www.twilio.com/docs/verify/email) must be specified. | [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/verify/docs/InlineObject14.md b/verify/docs/InlineObject14.md deleted file mode 100644 index aefebeb18..000000000 --- a/verify/docs/InlineObject14.md +++ /dev/null @@ -1,22 +0,0 @@ -# InlineObject14 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Amount** | **string** | The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. | [optional] -**AppHash** | **string** | Your [App Hash](https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string) to be appended at the end of your verification SMS body. Applies only to SMS. Example SMS body: `<#> Your AppName verification code is: 1234 He42w354ol9`. | [optional] -**Channel** | **string** | The verification method to use. Can be: [`email`](https://www.twilio.com/docs/verify/email), `sms` or `call`. | -**ChannelConfiguration** | **map[string]interface{}** | [`email`](https://www.twilio.com/docs/verify/email) channel configuration in json format. Must include 'from' and 'from_name'. | [optional] -**CustomCode** | **string** | A pre-generated code to use for verification. The code can be between 4 and 10 characters, inclusive. | [optional] -**CustomFriendlyName** | **string** | A custom user defined friendly name that overwrites the existing one in the verification message | [optional] -**CustomMessage** | **string** | The text of a custom message to use for the verification. | [optional] -**Locale** | **string** | The locale to use for the verification SMS or call. Can be: `af`, `ar`, `ca`, `cs`, `da`, `de`, `el`, `en`, `en-GB`, `es`, `fi`, `fr`, `he`, `hi`, `hr`, `hu`, `id`, `it`, `ja`, `ko`, `ms`, `nb`, `nl`, `pl`, `pt`, `pr-BR`, `ro`, `ru`, `sv`, `th`, `tl`, `tr`, `vi`, `zh`, `zh-CN`, or `zh-HK.` | [optional] -**Payee** | **string** | The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. | [optional] -**RateLimits** | **map[string]interface{}** | The custom key-value pairs of Programmable Rate Limits. Keys correspond to `unique_name` fields defined when [creating your Rate Limit](https://www.twilio.com/docs/verify/api/service-rate-limits). Associated value pairs represent values in the request that you are rate limiting on. You may include multiple Rate Limit values in each request. | [optional] -**SendDigits** | **string** | The digits to send after a phone call is answered, for example, to dial an extension. For more information, see the Programmable Voice documentation of [sendDigits](https://www.twilio.com/docs/voice/twiml/number#attributes-sendDigits). | [optional] -**To** | **string** | The phone number or [email](https://www.twilio.com/docs/verify/email) to verify. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). | - -[[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/verify/docs/InlineObject15.md b/verify/docs/InlineObject15.md deleted file mode 100644 index 4199b1424..000000000 --- a/verify/docs/InlineObject15.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineObject15 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | **string** | The new status of the resource. Can be: `canceled` or `approved`. | - -[[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/verify/docs/InlineObject16.md b/verify/docs/InlineObject16.md deleted file mode 100644 index 97c55081e..000000000 --- a/verify/docs/InlineObject16.md +++ /dev/null @@ -1,14 +0,0 @@ -# InlineObject16 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**EventTypes** | **[]string** | The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied` | -**FriendlyName** | **string** | The string that you assigned to describe the webhook. **This value should not contain PII.** | -**Status** | **string** | The webhook status. Default value is `enabled`. One of: `enabled` or `disabled` | [optional] -**WebhookUrl** | **string** | The URL associated with this Webhook. | - -[[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/verify/docs/InlineObject17.md b/verify/docs/InlineObject17.md deleted file mode 100644 index 4ef9ff7f5..000000000 --- a/verify/docs/InlineObject17.md +++ /dev/null @@ -1,14 +0,0 @@ -# InlineObject17 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**EventTypes** | **[]string** | The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied` | [optional] -**FriendlyName** | **string** | The string that you assigned to describe the webhook. **This value should not contain PII.** | [optional] -**Status** | **string** | The webhook status. Default value is `enabled`. One of: `enabled` or `disabled` | [optional] -**WebhookUrl** | **string** | The URL associated with this Webhook. | [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/verify/docs/InlineObject18.md b/verify/docs/InlineObject18.md deleted file mode 100644 index d876ade62..000000000 --- a/verify/docs/InlineObject18.md +++ /dev/null @@ -1,20 +0,0 @@ -# InlineObject18 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CodeLength** | **int32** | The length of the verification code to generate. Must be an integer value between 4 and 10, inclusive. | [optional] -**CustomCodeEnabled** | **bool** | Whether to allow sending verifications with a custom code instead of a randomly generated one. Not available for all customers. | [optional] -**DoNotShareWarningEnabled** | **bool** | Whether to add a privacy warning at the end of an SMS. **Disabled by default and applies only for SMS.** | [optional] -**DtmfInputRequired** | **bool** | Whether to ask the user to press a number before delivering the verify code in a phone call. | [optional] -**FriendlyName** | **string** | A descriptive string that you create to describe the verification service. It can be up to 64 characters long. **This value should not contain PII.** | [optional] -**LookupEnabled** | **bool** | Whether to perform a lookup with each verification started and return info about the phone number. | [optional] -**Psd2Enabled** | **bool** | Whether to pass PSD2 transaction parameters when starting a verification. | [optional] -**Push** | **map[string]interface{}** | Configurations for the Push factors (channel) created under this Service. If present, it must be a json string with the following format: {\"notify_service_sid\": \"ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\", \"include_date\": true}. If `include_date` is set to `true`, which is the default, that means that the push challenge’s response will include the date created value. If `include_date` is set to `false`, then the date created value will not be included. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info | [optional] -**SkipSmsToLandlines** | **bool** | Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`. | [optional] -**TtsName** | **string** | The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. | [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/verify/docs/InlineObject2.md b/verify/docs/InlineObject2.md deleted file mode 100644 index 2ef7fd03f..000000000 --- a/verify/docs/InlineObject2.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineObject2 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Identity** | **string** | The unique external identifier for the Entity of the Service | - -[[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/verify/docs/InlineObject3.md b/verify/docs/InlineObject3.md deleted file mode 100644 index 8e7d4200f..000000000 --- a/verify/docs/InlineObject3.md +++ /dev/null @@ -1,14 +0,0 @@ -# InlineObject3 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Details** | **string** | Details provided to give context about the Challenge. Shown to the end user. It must be a stringified JSON with the following structure: {\"message\": \"string\", \"fields\": [ { \"label\": \"string\", \"value\": \"string\"}]}. `message` is required. If you send the `fields` property, each field has to include `label` and `value` properties. If you had set `include_date=true` in the `push` configuration of the [service](https://www.twilio.com/docs/verify/api/service), the response will also include the challenge's date created value as an additional field called `date` | [optional] -**ExpirationDate** | [**time.Time**](time.Time.md) | The future date in which this Challenge will expire, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | [optional] -**FactorSid** | **string** | The unique SID identifier of the Factor. | -**HiddenDetails** | **string** | Details provided to give context about the Challenge. Not shown to the end user. It must be a stringified JSON with only strings values eg. `{\"ip\": \"172.168.1.234\"}` | [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/verify/docs/InlineObject4.md b/verify/docs/InlineObject4.md deleted file mode 100644 index 93e111aa5..000000000 --- a/verify/docs/InlineObject4.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineObject4 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AuthPayload** | **string** | The optional payload needed to verify the Challenge. E.g., a TOTP would use the numeric code. | [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/verify/docs/InlineObject5.md b/verify/docs/InlineObject5.md deleted file mode 100644 index 3343361c8..000000000 --- a/verify/docs/InlineObject5.md +++ /dev/null @@ -1,14 +0,0 @@ -# InlineObject5 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Binding** | **string** | A unique binding for this Factor that identifies it. E.g. the algorithm and public key for `push` factors. It must be a json string with the required properties for the given factor type. Required when creating a new Factor. This value is never returned because it can contain customer secrets. | -**Config** | **string** | The config required for this Factor. It must be a json string with the required properties for the given factor type | -**FactorType** | **string** | The Type of this Factor. Currently only `push` is supported | -**FriendlyName** | **string** | The friendly name of this Factor | - -[[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/verify/docs/InlineObject6.md b/verify/docs/InlineObject6.md deleted file mode 100644 index c5a8f0c6d..000000000 --- a/verify/docs/InlineObject6.md +++ /dev/null @@ -1,13 +0,0 @@ -# InlineObject6 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AuthPayload** | **string** | The optional payload needed to verify the Factor for the first time. E.g. for a TOTP, the numeric code. | [optional] -**Config** | **string** | The new config for this Factor. It must be a json string with the required properties for the given factor type | [optional] -**FriendlyName** | **string** | The new friendly name of this Factor | [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/verify/docs/InlineObject7.md b/verify/docs/InlineObject7.md deleted file mode 100644 index 0d87e3920..000000000 --- a/verify/docs/InlineObject7.md +++ /dev/null @@ -1,12 +0,0 @@ -# InlineObject7 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Country** | **string** | The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. | -**MessagingServiceSid** | **string** | The SID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) to be used to send SMS to the country of this configuration. | - -[[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/verify/docs/InlineObject8.md b/verify/docs/InlineObject8.md deleted file mode 100644 index 3861605fb..000000000 --- a/verify/docs/InlineObject8.md +++ /dev/null @@ -1,11 +0,0 @@ -# InlineObject8 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**MessagingServiceSid** | **string** | The SID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) to be used to send SMS to the country of this configuration. | - -[[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/verify/docs/InlineObject9.md b/verify/docs/InlineObject9.md deleted file mode 100644 index cf1096789..000000000 --- a/verify/docs/InlineObject9.md +++ /dev/null @@ -1,12 +0,0 @@ -# InlineObject9 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Description** | **string** | Description of this Rate Limit | [optional] -**UniqueName** | **string** | Provides a unique and addressable name to be assigned to this Rate Limit, assigned by the developer, to be optionally used in addition to SID. **This value should not contain PII.** | - -[[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/verify/docs/InlineResponse200.md b/verify/docs/InlineResponse200.md deleted file mode 100644 index 2eaa3a161..000000000 --- a/verify/docs/InlineResponse200.md +++ /dev/null @@ -1,12 +0,0 @@ -# InlineResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Meta** | [**InlineResponse200Meta**](inline_response_200_meta.md) | | [optional] -**Services** | [**[]VerifyV2Service**](verify.v2.service.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/verify/docs/InlineResponse2001.md b/verify/docs/InlineResponse2001.md deleted file mode 100644 index c46b2001b..000000000 --- a/verify/docs/InlineResponse2001.md +++ /dev/null @@ -1,12 +0,0 @@ -# InlineResponse2001 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Entities** | [**[]VerifyV2ServiceEntity**](verify.v2.service.entity.md) | | [optional] -**Meta** | [**InlineResponse200Meta**](inline_response_200_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/verify/docs/InlineResponse2002.md b/verify/docs/InlineResponse2002.md deleted file mode 100644 index 4282cc6b7..000000000 --- a/verify/docs/InlineResponse2002.md +++ /dev/null @@ -1,12 +0,0 @@ -# InlineResponse2002 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Challenges** | [**[]VerifyV2ServiceEntityChallenge**](verify.v2.service.entity.challenge.md) | | [optional] -**Meta** | [**InlineResponse200Meta**](inline_response_200_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/verify/docs/InlineResponse2003.md b/verify/docs/InlineResponse2003.md deleted file mode 100644 index ee7485dc6..000000000 --- a/verify/docs/InlineResponse2003.md +++ /dev/null @@ -1,12 +0,0 @@ -# InlineResponse2003 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Factors** | [**[]VerifyV2ServiceEntityFactor**](verify.v2.service.entity.factor.md) | | [optional] -**Meta** | [**InlineResponse200Meta**](inline_response_200_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/verify/docs/InlineResponse2004.md b/verify/docs/InlineResponse2004.md deleted file mode 100644 index 5a8cfb75d..000000000 --- a/verify/docs/InlineResponse2004.md +++ /dev/null @@ -1,12 +0,0 @@ -# InlineResponse2004 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**MessagingConfigurations** | [**[]VerifyV2ServiceMessagingConfiguration**](verify.v2.service.messaging_configuration.md) | | [optional] -**Meta** | [**InlineResponse200Meta**](inline_response_200_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/verify/docs/InlineResponse2005.md b/verify/docs/InlineResponse2005.md deleted file mode 100644 index 13ecbd221..000000000 --- a/verify/docs/InlineResponse2005.md +++ /dev/null @@ -1,12 +0,0 @@ -# InlineResponse2005 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Meta** | [**InlineResponse200Meta**](inline_response_200_meta.md) | | [optional] -**RateLimits** | [**[]VerifyV2ServiceRateLimit**](verify.v2.service.rate_limit.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/verify/docs/InlineResponse2006.md b/verify/docs/InlineResponse2006.md deleted file mode 100644 index e0c004e6b..000000000 --- a/verify/docs/InlineResponse2006.md +++ /dev/null @@ -1,12 +0,0 @@ -# InlineResponse2006 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Buckets** | [**[]VerifyV2ServiceRateLimitBucket**](verify.v2.service.rate_limit.bucket.md) | | [optional] -**Meta** | [**InlineResponse200Meta**](inline_response_200_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/verify/docs/InlineResponse2007.md b/verify/docs/InlineResponse2007.md deleted file mode 100644 index c82c05d12..000000000 --- a/verify/docs/InlineResponse2007.md +++ /dev/null @@ -1,12 +0,0 @@ -# InlineResponse2007 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Meta** | [**InlineResponse200Meta**](inline_response_200_meta.md) | | [optional] -**Webhooks** | [**[]VerifyV2ServiceWebhook**](verify.v2.service.webhook.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/verify/docs/InlineResponse200Meta.md b/verify/docs/InlineResponse200Meta.md deleted file mode 100644 index cfde5a387..000000000 --- a/verify/docs/InlineResponse200Meta.md +++ /dev/null @@ -1,17 +0,0 @@ -# InlineResponse200Meta - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FirstPageUrl** | **string** | | [optional] -**Key** | **string** | | [optional] -**NextPageUrl** | **string** | | [optional] -**Page** | **int32** | | [optional] -**PageSize** | **int32** | | [optional] -**PreviousPageUrl** | **string** | | [optional] -**Url** | **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/verify/docs/PreviewApi.md b/verify/docs/PreviewApi.md deleted file mode 100644 index 2cb6f8684..000000000 --- a/verify/docs/PreviewApi.md +++ /dev/null @@ -1,954 +0,0 @@ -# \PreviewApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**V2FormsFormTypeGet**](PreviewApi.md#V2FormsFormTypeGet) | **Get** /v2/Forms/{FormType} | -[**V2ServicesServiceSidAccessTokensPost**](PreviewApi.md#V2ServicesServiceSidAccessTokensPost) | **Post** /v2/Services/{ServiceSid}/AccessTokens | -[**V2ServicesServiceSidEntitiesGet**](PreviewApi.md#V2ServicesServiceSidEntitiesGet) | **Get** /v2/Services/{ServiceSid}/Entities | -[**V2ServicesServiceSidEntitiesIdentityChallengesGet**](PreviewApi.md#V2ServicesServiceSidEntitiesIdentityChallengesGet) | **Get** /v2/Services/{ServiceSid}/Entities/{Identity}/Challenges | -[**V2ServicesServiceSidEntitiesIdentityChallengesPost**](PreviewApi.md#V2ServicesServiceSidEntitiesIdentityChallengesPost) | **Post** /v2/Services/{ServiceSid}/Entities/{Identity}/Challenges | -[**V2ServicesServiceSidEntitiesIdentityChallengesSidGet**](PreviewApi.md#V2ServicesServiceSidEntitiesIdentityChallengesSidGet) | **Get** /v2/Services/{ServiceSid}/Entities/{Identity}/Challenges/{Sid} | -[**V2ServicesServiceSidEntitiesIdentityChallengesSidPost**](PreviewApi.md#V2ServicesServiceSidEntitiesIdentityChallengesSidPost) | **Post** /v2/Services/{ServiceSid}/Entities/{Identity}/Challenges/{Sid} | -[**V2ServicesServiceSidEntitiesIdentityDelete**](PreviewApi.md#V2ServicesServiceSidEntitiesIdentityDelete) | **Delete** /v2/Services/{ServiceSid}/Entities/{Identity} | -[**V2ServicesServiceSidEntitiesIdentityFactorsGet**](PreviewApi.md#V2ServicesServiceSidEntitiesIdentityFactorsGet) | **Get** /v2/Services/{ServiceSid}/Entities/{Identity}/Factors | -[**V2ServicesServiceSidEntitiesIdentityFactorsPost**](PreviewApi.md#V2ServicesServiceSidEntitiesIdentityFactorsPost) | **Post** /v2/Services/{ServiceSid}/Entities/{Identity}/Factors | -[**V2ServicesServiceSidEntitiesIdentityFactorsSidDelete**](PreviewApi.md#V2ServicesServiceSidEntitiesIdentityFactorsSidDelete) | **Delete** /v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid} | -[**V2ServicesServiceSidEntitiesIdentityFactorsSidGet**](PreviewApi.md#V2ServicesServiceSidEntitiesIdentityFactorsSidGet) | **Get** /v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid} | -[**V2ServicesServiceSidEntitiesIdentityFactorsSidPost**](PreviewApi.md#V2ServicesServiceSidEntitiesIdentityFactorsSidPost) | **Post** /v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid} | -[**V2ServicesServiceSidEntitiesIdentityGet**](PreviewApi.md#V2ServicesServiceSidEntitiesIdentityGet) | **Get** /v2/Services/{ServiceSid}/Entities/{Identity} | -[**V2ServicesServiceSidEntitiesPost**](PreviewApi.md#V2ServicesServiceSidEntitiesPost) | **Post** /v2/Services/{ServiceSid}/Entities | -[**V2ServicesServiceSidWebhooksGet**](PreviewApi.md#V2ServicesServiceSidWebhooksGet) | **Get** /v2/Services/{ServiceSid}/Webhooks | -[**V2ServicesServiceSidWebhooksPost**](PreviewApi.md#V2ServicesServiceSidWebhooksPost) | **Post** /v2/Services/{ServiceSid}/Webhooks | -[**V2ServicesServiceSidWebhooksSidDelete**](PreviewApi.md#V2ServicesServiceSidWebhooksSidDelete) | **Delete** /v2/Services/{ServiceSid}/Webhooks/{Sid} | -[**V2ServicesServiceSidWebhooksSidGet**](PreviewApi.md#V2ServicesServiceSidWebhooksSidGet) | **Get** /v2/Services/{ServiceSid}/Webhooks/{Sid} | -[**V2ServicesServiceSidWebhooksSidPost**](PreviewApi.md#V2ServicesServiceSidWebhooksSidPost) | **Post** /v2/Services/{ServiceSid}/Webhooks/{Sid} | - - - -## V2FormsFormTypeGet - -> VerifyV2Form V2FormsFormTypeGet(ctx, formType) - - - -Fetch the forms for a specific Form Type. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**formType** | **string**| The Type of this Form. Currently only `form-push` is supported. | - -### Return type - -[**VerifyV2Form**](verify.v2.form.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) - - -## V2ServicesServiceSidAccessTokensPost - -> VerifyV2ServiceAccessToken V2ServicesServiceSidAccessTokensPost(ctx, serviceSid, optional) - - - -Create a new enrollment Access Token for the Entity - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | - **optional** | ***V2ServicesServiceSidAccessTokensPostOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a V2ServicesServiceSidAccessTokensPostOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **factorType** | **optional.**| The Type of this Factor. Eg. `push` | - **identity** | **optional.**| The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, and generated by your external system, such as your user's UUID, GUID, or SID. | - -### Return type - -[**VerifyV2ServiceAccessToken**](verify.v2.service.access_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) - - -## V2ServicesServiceSidEntitiesGet - -> InlineResponse2001 V2ServicesServiceSidEntitiesGet(ctx, serviceSid, optional) - - - -Retrieve a list of all Entities for a Service. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | - **optional** | ***V2ServicesServiceSidEntitiesGetOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a V2ServicesServiceSidEntitiesGetOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **twilioSandboxMode** | **optional.**| The Twilio-Sandbox-Mode HTTP request header | - **pageSize** | **optional.**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | - -### Return type - -[**InlineResponse2001**](inline_response_200_1.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) - - -## V2ServicesServiceSidEntitiesIdentityChallengesGet - -> InlineResponse2002 V2ServicesServiceSidEntitiesIdentityChallengesGet(ctx, serviceSid, identity, optional) - - - -Retrieve a list of all Challenges for a Factor. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | -**identity** | **string**| Customer unique identity for the Entity owner of the Challenge | - **optional** | ***V2ServicesServiceSidEntitiesIdentityChallengesGetOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a V2ServicesServiceSidEntitiesIdentityChallengesGetOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - **twilioSandboxMode** | **optional.**| The Twilio-Sandbox-Mode HTTP request header | - **factorSid** | **optional.**| The unique SID identifier of the Factor. | - **status** | **optional.**| The Status of the Challenges to fetch. One of `pending`, `expired`, `approved` or `denied`. | - **pageSize** | **optional.**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | - -### Return type - -[**InlineResponse2002**](inline_response_200_2.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) - - -## V2ServicesServiceSidEntitiesIdentityChallengesPost - -> VerifyV2ServiceEntityChallenge V2ServicesServiceSidEntitiesIdentityChallengesPost(ctx, serviceSid, identity, optional) - - - -Create a new Challenge for the Factor - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | -**identity** | **string**| The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, and generated by your external system, such as your user's UUID, GUID, or SID. | - **optional** | ***V2ServicesServiceSidEntitiesIdentityChallengesPostOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a V2ServicesServiceSidEntitiesIdentityChallengesPostOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - **twilioSandboxMode** | **optional.**| The Twilio-Sandbox-Mode HTTP request header | - **details** | **optional.**| Details provided to give context about the Challenge. Shown to the end user. It must be a stringified JSON with the following structure: {\\\"message\\\": \\\"string\\\", \\\"fields\\\": [ { \\\"label\\\": \\\"string\\\", \\\"value\\\": \\\"string\\\"}]}. `message` is required. If you send the `fields` property, each field has to include `label` and `value` properties. If you had set `include_date=true` in the `push` configuration of the [service](https://www.twilio.com/docs/verify/api/service), the response will also include the challenge's date created value as an additional field called `date` | - **expirationDate** | **optional.**| The future date in which this Challenge will expire, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | - **factorSid** | **optional.**| The unique SID identifier of the Factor. | - **hiddenDetails** | **optional.**| Details provided to give context about the Challenge. Not shown to the end user. It must be a stringified JSON with only strings values eg. `{\\\"ip\\\": \\\"172.168.1.234\\\"}` | - -### Return type - -[**VerifyV2ServiceEntityChallenge**](verify.v2.service.entity.challenge.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) - - -## V2ServicesServiceSidEntitiesIdentityChallengesSidGet - -> VerifyV2ServiceEntityChallenge V2ServicesServiceSidEntitiesIdentityChallengesSidGet(ctx, serviceSid, identity, sid, optional) - - - -Fetch a specific Challenge. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | -**identity** | **string**| The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, and generated by your external system, such as your user's UUID, GUID, or SID. | -**sid** | **string**| A 34 character string that uniquely identifies this Challenge. | - **optional** | ***V2ServicesServiceSidEntitiesIdentityChallengesSidGetOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a V2ServicesServiceSidEntitiesIdentityChallengesSidGetOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - - **twilioSandboxMode** | **optional.**| The Twilio-Sandbox-Mode HTTP request header | - -### Return type - -[**VerifyV2ServiceEntityChallenge**](verify.v2.service.entity.challenge.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) - - -## V2ServicesServiceSidEntitiesIdentityChallengesSidPost - -> VerifyV2ServiceEntityChallenge V2ServicesServiceSidEntitiesIdentityChallengesSidPost(ctx, serviceSid, identity, sid, optional) - - - -Verify a specific Challenge. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | -**identity** | **string**| Customer unique identity for the Entity owner of the Challenge | -**sid** | **string**| A 34 character string that uniquely identifies this Challenge. | - **optional** | ***V2ServicesServiceSidEntitiesIdentityChallengesSidPostOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a V2ServicesServiceSidEntitiesIdentityChallengesSidPostOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - - **twilioSandboxMode** | **optional.**| The Twilio-Sandbox-Mode HTTP request header | - **authPayload** | **optional.**| The optional payload needed to verify the Challenge. E.g., a TOTP would use the numeric code. | - -### Return type - -[**VerifyV2ServiceEntityChallenge**](verify.v2.service.entity.challenge.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) - - -## V2ServicesServiceSidEntitiesIdentityDelete - -> V2ServicesServiceSidEntitiesIdentityDelete(ctx, serviceSid, identity, optional) - - - -Delete a specific Entity. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | -**identity** | **string**| The unique external identifier for the Entity of the Service | - **optional** | ***V2ServicesServiceSidEntitiesIdentityDeleteOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a V2ServicesServiceSidEntitiesIdentityDeleteOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - **twilioSandboxMode** | **optional.**| The Twilio-Sandbox-Mode HTTP request header | - -### 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) - - -## V2ServicesServiceSidEntitiesIdentityFactorsGet - -> InlineResponse2003 V2ServicesServiceSidEntitiesIdentityFactorsGet(ctx, serviceSid, identity, optional) - - - -Retrieve a list of all Factors for an Entity. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | -**identity** | **string**| Customer unique identity for the Entity owner of the Factor | - **optional** | ***V2ServicesServiceSidEntitiesIdentityFactorsGetOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a V2ServicesServiceSidEntitiesIdentityFactorsGetOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - **twilioSandboxMode** | **optional.**| The Twilio-Sandbox-Mode HTTP request header | - **pageSize** | **optional.**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | - -### Return type - -[**InlineResponse2003**](inline_response_200_3.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) - - -## V2ServicesServiceSidEntitiesIdentityFactorsPost - -> VerifyV2ServiceEntityFactor V2ServicesServiceSidEntitiesIdentityFactorsPost(ctx, serviceSid, identity, optional) - - - -Create a new Factor for the Entity - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | -**identity** | **string**| Customer unique identity for the Entity owner of the Factor | - **optional** | ***V2ServicesServiceSidEntitiesIdentityFactorsPostOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a V2ServicesServiceSidEntitiesIdentityFactorsPostOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - **twilioSandboxMode** | **optional.**| The Twilio-Sandbox-Mode HTTP request header | - **binding** | **optional.**| A unique binding for this Factor that identifies it. E.g. the algorithm and public key for `push` factors. It must be a json string with the required properties for the given factor type. Required when creating a new Factor. This value is never returned because it can contain customer secrets. | - **config** | **optional.**| The config required for this Factor. It must be a json string with the required properties for the given factor type | - **factorType** | **optional.**| The Type of this Factor. Currently only `push` is supported | - **friendlyName** | **optional.**| The friendly name of this Factor | - -### Return type - -[**VerifyV2ServiceEntityFactor**](verify.v2.service.entity.factor.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) - - -## V2ServicesServiceSidEntitiesIdentityFactorsSidDelete - -> V2ServicesServiceSidEntitiesIdentityFactorsSidDelete(ctx, serviceSid, identity, sid, optional) - - - -Delete a specific Factor. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | -**identity** | **string**| Customer unique identity for the Entity owner of the Factor | -**sid** | **string**| A 34 character string that uniquely identifies this Factor. | - **optional** | ***V2ServicesServiceSidEntitiesIdentityFactorsSidDeleteOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a V2ServicesServiceSidEntitiesIdentityFactorsSidDeleteOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - - **twilioSandboxMode** | **optional.**| The Twilio-Sandbox-Mode HTTP request header | - -### 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) - - -## V2ServicesServiceSidEntitiesIdentityFactorsSidGet - -> VerifyV2ServiceEntityFactor V2ServicesServiceSidEntitiesIdentityFactorsSidGet(ctx, serviceSid, identity, sid, optional) - - - -Fetch a specific Factor. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | -**identity** | **string**| Customer unique identity for the Entity owner of the Factor | -**sid** | **string**| A 34 character string that uniquely identifies this Factor. | - **optional** | ***V2ServicesServiceSidEntitiesIdentityFactorsSidGetOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a V2ServicesServiceSidEntitiesIdentityFactorsSidGetOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - - **twilioSandboxMode** | **optional.**| The Twilio-Sandbox-Mode HTTP request header | - -### Return type - -[**VerifyV2ServiceEntityFactor**](verify.v2.service.entity.factor.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) - - -## V2ServicesServiceSidEntitiesIdentityFactorsSidPost - -> VerifyV2ServiceEntityFactor V2ServicesServiceSidEntitiesIdentityFactorsSidPost(ctx, serviceSid, identity, sid, optional) - - - -Update a specific Factor. This endpoint can be used to Verify a Factor if passed an `AuthPayload` param. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | -**identity** | **string**| Customer unique identity for the Entity owner of the Factor | -**sid** | **string**| A 34 character string that uniquely identifies this Factor. | - **optional** | ***V2ServicesServiceSidEntitiesIdentityFactorsSidPostOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a V2ServicesServiceSidEntitiesIdentityFactorsSidPostOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - - **twilioSandboxMode** | **optional.**| The Twilio-Sandbox-Mode HTTP request header | - **authPayload** | **optional.**| The optional payload needed to verify the Factor for the first time. E.g. for a TOTP, the numeric code. | - **config** | **optional.**| The new config for this Factor. It must be a json string with the required properties for the given factor type | - **friendlyName** | **optional.**| The new friendly name of this Factor | - -### Return type - -[**VerifyV2ServiceEntityFactor**](verify.v2.service.entity.factor.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) - - -## V2ServicesServiceSidEntitiesIdentityGet - -> VerifyV2ServiceEntity V2ServicesServiceSidEntitiesIdentityGet(ctx, serviceSid, identity, optional) - - - -Fetch a specific Entity. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | -**identity** | **string**| The unique external identifier for the Entity of the Service | - **optional** | ***V2ServicesServiceSidEntitiesIdentityGetOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a V2ServicesServiceSidEntitiesIdentityGetOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - **twilioSandboxMode** | **optional.**| The Twilio-Sandbox-Mode HTTP request header | - -### Return type - -[**VerifyV2ServiceEntity**](verify.v2.service.entity.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) - - -## V2ServicesServiceSidEntitiesPost - -> VerifyV2ServiceEntity V2ServicesServiceSidEntitiesPost(ctx, serviceSid, optional) - - - -Create a new Entity for the Service - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | - **optional** | ***V2ServicesServiceSidEntitiesPostOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a V2ServicesServiceSidEntitiesPostOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **twilioSandboxMode** | **optional.**| The Twilio-Sandbox-Mode HTTP request header | - **identity** | **optional.**| The unique external identifier for the Entity of the Service | - -### Return type - -[**VerifyV2ServiceEntity**](verify.v2.service.entity.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) - - -## V2ServicesServiceSidWebhooksGet - -> InlineResponse2007 V2ServicesServiceSidWebhooksGet(ctx, serviceSid, optional) - - - -Retrieve a list of all Webhooks for a Service. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | - **optional** | ***V2ServicesServiceSidWebhooksGetOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a V2ServicesServiceSidWebhooksGetOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **pageSize** | **optional.**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | - -### Return type - -[**InlineResponse2007**](inline_response_200_7.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) - - -## V2ServicesServiceSidWebhooksPost - -> VerifyV2ServiceWebhook V2ServicesServiceSidWebhooksPost(ctx, serviceSid, optional) - - - -Create a new Webhook for the Service - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | - **optional** | ***V2ServicesServiceSidWebhooksPostOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a V2ServicesServiceSidWebhooksPostOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **eventTypes** | [**optional.Interface of []string**](string.md)| The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied` | - **friendlyName** | **optional.**| The string that you assigned to describe the webhook. **This value should not contain PII.** | - **status** | **optional.**| The webhook status. Default value is `enabled`. One of: `enabled` or `disabled` | - **webhookUrl** | **optional.**| The URL associated with this Webhook. | - -### Return type - -[**VerifyV2ServiceWebhook**](verify.v2.service.webhook.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) - - -## V2ServicesServiceSidWebhooksSidDelete - -> V2ServicesServiceSidWebhooksSidDelete(ctx, serviceSid, sid) - - - -Delete a specific Webhook. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Webhook resource to delete. | - -### 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) - - -## V2ServicesServiceSidWebhooksSidGet - -> VerifyV2ServiceWebhook V2ServicesServiceSidWebhooksSidGet(ctx, serviceSid, sid) - - - -Fetch a specific Webhook. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Webhook resource to fetch. | - -### Return type - -[**VerifyV2ServiceWebhook**](verify.v2.service.webhook.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) - - -## V2ServicesServiceSidWebhooksSidPost - -> VerifyV2ServiceWebhook V2ServicesServiceSidWebhooksSidPost(ctx, serviceSid, sid, optional) - - - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Webhook resource to update. | - **optional** | ***V2ServicesServiceSidWebhooksSidPostOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a V2ServicesServiceSidWebhooksSidPostOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - **eventTypes** | [**optional.Interface of []string**](string.md)| The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied` | - **friendlyName** | **optional.**| The string that you assigned to describe the webhook. **This value should not contain PII.** | - **status** | **optional.**| The webhook status. Default value is `enabled`. One of: `enabled` or `disabled` | - **webhookUrl** | **optional.**| The URL associated with this Webhook. | - -### Return type - -[**VerifyV2ServiceWebhook**](verify.v2.service.webhook.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/verify/docs/VerifyV2Form.md b/verify/docs/VerifyV2Form.md deleted file mode 100644 index 988d9d5de..000000000 --- a/verify/docs/VerifyV2Form.md +++ /dev/null @@ -1,14 +0,0 @@ -# VerifyV2Form - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FormMeta** | **map[string]interface{}** | | [optional] -**FormType** | **string** | | [optional] -**Forms** | **map[string]interface{}** | | [optional] -**Url** | **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/verify/docs/VerifyV2Service.md b/verify/docs/VerifyV2Service.md deleted file mode 100644 index 119caf525..000000000 --- a/verify/docs/VerifyV2Service.md +++ /dev/null @@ -1,26 +0,0 @@ -# VerifyV2Service - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AccountSid** | **string** | | [optional] -**CodeLength** | **int32** | | [optional] -**CustomCodeEnabled** | **bool** | | [optional] -**DateCreated** | [**time.Time**](time.Time.md) | | [optional] -**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] -**DoNotShareWarningEnabled** | **bool** | | [optional] -**DtmfInputRequired** | **bool** | | [optional] -**FriendlyName** | **string** | | [optional] -**Links** | **map[string]interface{}** | | [optional] -**LookupEnabled** | **bool** | | [optional] -**Psd2Enabled** | **bool** | | [optional] -**Push** | **map[string]interface{}** | | [optional] -**Sid** | **string** | | [optional] -**SkipSmsToLandlines** | **bool** | | [optional] -**TtsName** | **string** | | [optional] -**Url** | **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/verify/docs/VerifyV2ServiceAccessToken.md b/verify/docs/VerifyV2ServiceAccessToken.md deleted file mode 100644 index 8f744ea59..000000000 --- a/verify/docs/VerifyV2ServiceAccessToken.md +++ /dev/null @@ -1,11 +0,0 @@ -# VerifyV2ServiceAccessToken - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Token** | **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/verify/docs/VerifyV2ServiceEntity.md b/verify/docs/VerifyV2ServiceEntity.md deleted file mode 100644 index a958f35d3..000000000 --- a/verify/docs/VerifyV2ServiceEntity.md +++ /dev/null @@ -1,18 +0,0 @@ -# VerifyV2ServiceEntity - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AccountSid** | **string** | | [optional] -**DateCreated** | [**time.Time**](time.Time.md) | | [optional] -**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] -**Identity** | **string** | | [optional] -**Links** | **map[string]interface{}** | | [optional] -**ServiceSid** | **string** | | [optional] -**Sid** | **string** | | [optional] -**Url** | **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/verify/docs/VerifyV2ServiceEntityChallenge.md b/verify/docs/VerifyV2ServiceEntityChallenge.md deleted file mode 100644 index 157672eb4..000000000 --- a/verify/docs/VerifyV2ServiceEntityChallenge.md +++ /dev/null @@ -1,26 +0,0 @@ -# VerifyV2ServiceEntityChallenge - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AccountSid** | **string** | | [optional] -**DateCreated** | [**time.Time**](time.Time.md) | | [optional] -**DateResponded** | [**time.Time**](time.Time.md) | | [optional] -**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] -**Details** | **string** | | [optional] -**EntitySid** | **string** | | [optional] -**ExpirationDate** | [**time.Time**](time.Time.md) | | [optional] -**FactorSid** | **string** | | [optional] -**FactorType** | **string** | | [optional] -**HiddenDetails** | **string** | | [optional] -**Identity** | **string** | | [optional] -**RespondedReason** | **string** | | [optional] -**ServiceSid** | **string** | | [optional] -**Sid** | **string** | | [optional] -**Status** | **string** | | [optional] -**Url** | **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/verify/docs/VerifyV2ServiceEntityFactor.md b/verify/docs/VerifyV2ServiceEntityFactor.md deleted file mode 100644 index 49c9ce903..000000000 --- a/verify/docs/VerifyV2ServiceEntityFactor.md +++ /dev/null @@ -1,22 +0,0 @@ -# VerifyV2ServiceEntityFactor - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AccountSid** | **string** | | [optional] -**Config** | **map[string]interface{}** | | [optional] -**DateCreated** | [**time.Time**](time.Time.md) | | [optional] -**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] -**EntitySid** | **string** | | [optional] -**FactorType** | **string** | | [optional] -**FriendlyName** | **string** | | [optional] -**Identity** | **string** | | [optional] -**ServiceSid** | **string** | | [optional] -**Sid** | **string** | | [optional] -**Status** | **string** | | [optional] -**Url** | **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/verify/docs/VerifyV2ServiceMessagingConfiguration.md b/verify/docs/VerifyV2ServiceMessagingConfiguration.md deleted file mode 100644 index ac8c68f34..000000000 --- a/verify/docs/VerifyV2ServiceMessagingConfiguration.md +++ /dev/null @@ -1,17 +0,0 @@ -# VerifyV2ServiceMessagingConfiguration - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AccountSid** | **string** | | [optional] -**Country** | **string** | | [optional] -**DateCreated** | [**time.Time**](time.Time.md) | | [optional] -**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] -**MessagingServiceSid** | **string** | | [optional] -**ServiceSid** | **string** | | [optional] -**Url** | **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/verify/docs/VerifyV2ServiceRateLimit.md b/verify/docs/VerifyV2ServiceRateLimit.md deleted file mode 100644 index de9fef502..000000000 --- a/verify/docs/VerifyV2ServiceRateLimit.md +++ /dev/null @@ -1,19 +0,0 @@ -# VerifyV2ServiceRateLimit - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AccountSid** | **string** | | [optional] -**DateCreated** | [**time.Time**](time.Time.md) | | [optional] -**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] -**Description** | **string** | | [optional] -**Links** | **map[string]interface{}** | | [optional] -**ServiceSid** | **string** | | [optional] -**Sid** | **string** | | [optional] -**UniqueName** | **string** | | [optional] -**Url** | **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/verify/docs/VerifyV2ServiceRateLimitBucket.md b/verify/docs/VerifyV2ServiceRateLimitBucket.md deleted file mode 100644 index 60b7b6e2e..000000000 --- a/verify/docs/VerifyV2ServiceRateLimitBucket.md +++ /dev/null @@ -1,19 +0,0 @@ -# VerifyV2ServiceRateLimitBucket - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AccountSid** | **string** | | [optional] -**DateCreated** | [**time.Time**](time.Time.md) | | [optional] -**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] -**Interval** | **int32** | | [optional] -**Max** | **int32** | | [optional] -**RateLimitSid** | **string** | | [optional] -**ServiceSid** | **string** | | [optional] -**Sid** | **string** | | [optional] -**Url** | **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/verify/docs/VerifyV2ServiceVerification.md b/verify/docs/VerifyV2ServiceVerification.md deleted file mode 100644 index 3aa4967eb..000000000 --- a/verify/docs/VerifyV2ServiceVerification.md +++ /dev/null @@ -1,24 +0,0 @@ -# VerifyV2ServiceVerification - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AccountSid** | **string** | | [optional] -**Amount** | **string** | | [optional] -**Channel** | **string** | | [optional] -**DateCreated** | [**time.Time**](time.Time.md) | | [optional] -**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] -**Lookup** | **map[string]interface{}** | | [optional] -**Payee** | **string** | | [optional] -**SendCodeAttempts** | **[]map[string]interface{}** | | [optional] -**ServiceSid** | **string** | | [optional] -**Sid** | **string** | | [optional] -**Status** | **string** | | [optional] -**To** | **string** | | [optional] -**Url** | **string** | | [optional] -**Valid** | **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/verify/docs/VerifyV2ServiceVerificationCheck.md b/verify/docs/VerifyV2ServiceVerificationCheck.md deleted file mode 100644 index 464e7c5ac..000000000 --- a/verify/docs/VerifyV2ServiceVerificationCheck.md +++ /dev/null @@ -1,21 +0,0 @@ -# VerifyV2ServiceVerificationCheck - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AccountSid** | **string** | | [optional] -**Amount** | **string** | | [optional] -**Channel** | **string** | | [optional] -**DateCreated** | [**time.Time**](time.Time.md) | | [optional] -**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] -**Payee** | **string** | | [optional] -**ServiceSid** | **string** | | [optional] -**Sid** | **string** | | [optional] -**Status** | **string** | | [optional] -**To** | **string** | | [optional] -**Valid** | **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/verify/docs/VerifyV2ServiceWebhook.md b/verify/docs/VerifyV2ServiceWebhook.md deleted file mode 100644 index 25b049240..000000000 --- a/verify/docs/VerifyV2ServiceWebhook.md +++ /dev/null @@ -1,21 +0,0 @@ -# VerifyV2ServiceWebhook - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AccountSid** | **string** | | [optional] -**DateCreated** | [**time.Time**](time.Time.md) | | [optional] -**DateUpdated** | [**time.Time**](time.Time.md) | | [optional] -**EventTypes** | **[]string** | | [optional] -**FriendlyName** | **string** | | [optional] -**ServiceSid** | **string** | | [optional] -**Sid** | **string** | | [optional] -**Status** | **string** | | [optional] -**Url** | **string** | | [optional] -**WebhookMethod** | **string** | | [optional] -**WebhookUrl** | **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/verify/go.mod b/verify/go.mod deleted file mode 100644 index 271091e1a..000000000 --- a/verify/go.mod +++ /dev/null @@ -1,4 +0,0 @@ -module github.com/GIT_USER_ID/GIT_REPO_ID/twilio - -require ( -) diff --git a/verify/go.sum b/verify/go.sum deleted file mode 100644 index c966c8ddf..000000000 --- a/verify/go.sum +++ /dev/null @@ -1,11 +0,0 @@ -cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= -github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= -golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= -google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/verify/model_inline_object.go b/verify/model_inline_object.go deleted file mode 100644 index 73c3b91ab..000000000 --- a/verify/model_inline_object.go +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -// InlineObject struct for InlineObject -type InlineObject struct { - // The length of the verification code to generate. Must be an integer value between 4 and 10, inclusive. - CodeLength int32 `json:"CodeLength,omitempty"` - // Whether to allow sending verifications with a custom code instead of a randomly generated one. Not available for all customers. - CustomCodeEnabled bool `json:"CustomCodeEnabled,omitempty"` - // Whether to add a security warning at the end of an SMS verification body. Disabled by default and applies only to SMS. Example SMS body: `Your AppName verification code is: 1234. Don’t share this code with anyone; our employees will never ask for the code` - DoNotShareWarningEnabled bool `json:"DoNotShareWarningEnabled,omitempty"` - // Whether to ask the user to press a number before delivering the verify code in a phone call. - DtmfInputRequired bool `json:"DtmfInputRequired,omitempty"` - // A descriptive string that you create to describe the verification service. It can be up to 64 characters long. **This value should not contain PII.** - FriendlyName string `json:"FriendlyName"` - // Whether to perform a lookup with each verification started and return info about the phone number. - LookupEnabled bool `json:"LookupEnabled,omitempty"` - // Whether to pass PSD2 transaction parameters when starting a verification. - Psd2Enabled bool `json:"Psd2Enabled,omitempty"` - // Configurations for the Push factors (channel) created under this Service. If present, it must be a json string with the following format: {\"notify_service_sid\": \"ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\", \"include_date\": true}. If `include_date` is set to `true`, which is the default, that means that the push challenge’s response will include the date created value. If `include_date` is set to `false`, then the date created value will not be included. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info - Push map[string]interface{} `json:"Push,omitempty"` - // Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`. - SkipSmsToLandlines bool `json:"SkipSmsToLandlines,omitempty"` - // The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. - TtsName string `json:"TtsName,omitempty"` -} diff --git a/verify/model_inline_object_1.go b/verify/model_inline_object_1.go deleted file mode 100644 index 1e907f116..000000000 --- a/verify/model_inline_object_1.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -// InlineObject1 struct for InlineObject1 -type InlineObject1 struct { - // The Type of this Factor. Eg. `push` - FactorType string `json:"FactorType"` - // The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, and generated by your external system, such as your user's UUID, GUID, or SID. - Identity string `json:"Identity"` -} diff --git a/verify/model_inline_object_10.go b/verify/model_inline_object_10.go deleted file mode 100644 index 25551e00c..000000000 --- a/verify/model_inline_object_10.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -// InlineObject10 struct for InlineObject10 -type InlineObject10 struct { - // Number of seconds that the rate limit will be enforced over. - Interval int32 `json:"Interval"` - // Maximum number of requests permitted in during the interval. - Max int32 `json:"Max"` -} diff --git a/verify/model_inline_object_11.go b/verify/model_inline_object_11.go deleted file mode 100644 index 00a9e9658..000000000 --- a/verify/model_inline_object_11.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -// InlineObject11 struct for InlineObject11 -type InlineObject11 struct { - // Number of seconds that the rate limit will be enforced over. - Interval int32 `json:"Interval,omitempty"` - // Maximum number of requests permitted in during the interval. - Max int32 `json:"Max,omitempty"` -} diff --git a/verify/model_inline_object_12.go b/verify/model_inline_object_12.go deleted file mode 100644 index 634436499..000000000 --- a/verify/model_inline_object_12.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -// InlineObject12 struct for InlineObject12 -type InlineObject12 struct { - // Description of this Rate Limit - Description string `json:"Description,omitempty"` -} diff --git a/verify/model_inline_object_13.go b/verify/model_inline_object_13.go deleted file mode 100644 index 92b7659fa..000000000 --- a/verify/model_inline_object_13.go +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -// InlineObject13 struct for InlineObject13 -type InlineObject13 struct { - // The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. - Amount string `json:"Amount,omitempty"` - // The 4-10 character string being verified. - Code string `json:"Code"` - // The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. - Payee string `json:"Payee,omitempty"` - // The phone number or [email](https://www.twilio.com/docs/verify/email) to verify. Either this parameter or the `verification_sid` must be specified. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). - To string `json:"To,omitempty"` - // A SID that uniquely identifies the Verification Check. Either this parameter or the `to` phone number/[email](https://www.twilio.com/docs/verify/email) must be specified. - VerificationSid string `json:"VerificationSid,omitempty"` -} diff --git a/verify/model_inline_object_14.go b/verify/model_inline_object_14.go deleted file mode 100644 index f9cf3ee7a..000000000 --- a/verify/model_inline_object_14.go +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -// InlineObject14 struct for InlineObject14 -type InlineObject14 struct { - // The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. - Amount string `json:"Amount,omitempty"` - // Your [App Hash](https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string) to be appended at the end of your verification SMS body. Applies only to SMS. Example SMS body: `<#> Your AppName verification code is: 1234 He42w354ol9`. - AppHash string `json:"AppHash,omitempty"` - // The verification method to use. Can be: [`email`](https://www.twilio.com/docs/verify/email), `sms` or `call`. - Channel string `json:"Channel"` - // [`email`](https://www.twilio.com/docs/verify/email) channel configuration in json format. Must include 'from' and 'from_name'. - ChannelConfiguration map[string]interface{} `json:"ChannelConfiguration,omitempty"` - // A pre-generated code to use for verification. The code can be between 4 and 10 characters, inclusive. - CustomCode string `json:"CustomCode,omitempty"` - // A custom user defined friendly name that overwrites the existing one in the verification message - CustomFriendlyName string `json:"CustomFriendlyName,omitempty"` - // The text of a custom message to use for the verification. - CustomMessage string `json:"CustomMessage,omitempty"` - // The locale to use for the verification SMS or call. Can be: `af`, `ar`, `ca`, `cs`, `da`, `de`, `el`, `en`, `en-GB`, `es`, `fi`, `fr`, `he`, `hi`, `hr`, `hu`, `id`, `it`, `ja`, `ko`, `ms`, `nb`, `nl`, `pl`, `pt`, `pr-BR`, `ro`, `ru`, `sv`, `th`, `tl`, `tr`, `vi`, `zh`, `zh-CN`, or `zh-HK.` - Locale string `json:"Locale,omitempty"` - // The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. - Payee string `json:"Payee,omitempty"` - // The custom key-value pairs of Programmable Rate Limits. Keys correspond to `unique_name` fields defined when [creating your Rate Limit](https://www.twilio.com/docs/verify/api/service-rate-limits). Associated value pairs represent values in the request that you are rate limiting on. You may include multiple Rate Limit values in each request. - RateLimits map[string]interface{} `json:"RateLimits,omitempty"` - // The digits to send after a phone call is answered, for example, to dial an extension. For more information, see the Programmable Voice documentation of [sendDigits](https://www.twilio.com/docs/voice/twiml/number#attributes-sendDigits). - SendDigits string `json:"SendDigits,omitempty"` - // The phone number or [email](https://www.twilio.com/docs/verify/email) to verify. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). - To string `json:"To"` -} diff --git a/verify/model_inline_object_15.go b/verify/model_inline_object_15.go deleted file mode 100644 index 01fefe3a0..000000000 --- a/verify/model_inline_object_15.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -// InlineObject15 struct for InlineObject15 -type InlineObject15 struct { - // The new status of the resource. Can be: `canceled` or `approved`. - Status string `json:"Status"` -} diff --git a/verify/model_inline_object_16.go b/verify/model_inline_object_16.go deleted file mode 100644 index 7d284d72f..000000000 --- a/verify/model_inline_object_16.go +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -// InlineObject16 struct for InlineObject16 -type InlineObject16 struct { - // The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied` - EventTypes []string `json:"EventTypes"` - // The string that you assigned to describe the webhook. **This value should not contain PII.** - FriendlyName string `json:"FriendlyName"` - // The webhook status. Default value is `enabled`. One of: `enabled` or `disabled` - Status string `json:"Status,omitempty"` - // The URL associated with this Webhook. - WebhookUrl string `json:"WebhookUrl"` -} diff --git a/verify/model_inline_object_17.go b/verify/model_inline_object_17.go deleted file mode 100644 index 62ebb5563..000000000 --- a/verify/model_inline_object_17.go +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -// InlineObject17 struct for InlineObject17 -type InlineObject17 struct { - // The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied` - EventTypes []string `json:"EventTypes,omitempty"` - // The string that you assigned to describe the webhook. **This value should not contain PII.** - FriendlyName string `json:"FriendlyName,omitempty"` - // The webhook status. Default value is `enabled`. One of: `enabled` or `disabled` - Status string `json:"Status,omitempty"` - // The URL associated with this Webhook. - WebhookUrl string `json:"WebhookUrl,omitempty"` -} diff --git a/verify/model_inline_object_18.go b/verify/model_inline_object_18.go deleted file mode 100644 index e0866533d..000000000 --- a/verify/model_inline_object_18.go +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -// InlineObject18 struct for InlineObject18 -type InlineObject18 struct { - // The length of the verification code to generate. Must be an integer value between 4 and 10, inclusive. - CodeLength int32 `json:"CodeLength,omitempty"` - // Whether to allow sending verifications with a custom code instead of a randomly generated one. Not available for all customers. - CustomCodeEnabled bool `json:"CustomCodeEnabled,omitempty"` - // Whether to add a privacy warning at the end of an SMS. **Disabled by default and applies only for SMS.** - DoNotShareWarningEnabled bool `json:"DoNotShareWarningEnabled,omitempty"` - // Whether to ask the user to press a number before delivering the verify code in a phone call. - DtmfInputRequired bool `json:"DtmfInputRequired,omitempty"` - // A descriptive string that you create to describe the verification service. It can be up to 64 characters long. **This value should not contain PII.** - FriendlyName string `json:"FriendlyName,omitempty"` - // Whether to perform a lookup with each verification started and return info about the phone number. - LookupEnabled bool `json:"LookupEnabled,omitempty"` - // Whether to pass PSD2 transaction parameters when starting a verification. - Psd2Enabled bool `json:"Psd2Enabled,omitempty"` - // Configurations for the Push factors (channel) created under this Service. If present, it must be a json string with the following format: {\"notify_service_sid\": \"ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\", \"include_date\": true}. If `include_date` is set to `true`, which is the default, that means that the push challenge’s response will include the date created value. If `include_date` is set to `false`, then the date created value will not be included. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info - Push map[string]interface{} `json:"Push,omitempty"` - // Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`. - SkipSmsToLandlines bool `json:"SkipSmsToLandlines,omitempty"` - // The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. - TtsName string `json:"TtsName,omitempty"` -} diff --git a/verify/model_inline_object_2.go b/verify/model_inline_object_2.go deleted file mode 100644 index 6a39940f9..000000000 --- a/verify/model_inline_object_2.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -// InlineObject2 struct for InlineObject2 -type InlineObject2 struct { - // The unique external identifier for the Entity of the Service - Identity string `json:"Identity"` -} diff --git a/verify/model_inline_object_3.go b/verify/model_inline_object_3.go deleted file mode 100644 index fce8c560d..000000000 --- a/verify/model_inline_object_3.go +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -import ( - "time" -) -// InlineObject3 struct for InlineObject3 -type InlineObject3 struct { - // Details provided to give context about the Challenge. Shown to the end user. It must be a stringified JSON with the following structure: {\"message\": \"string\", \"fields\": [ { \"label\": \"string\", \"value\": \"string\"}]}. `message` is required. If you send the `fields` property, each field has to include `label` and `value` properties. If you had set `include_date=true` in the `push` configuration of the [service](https://www.twilio.com/docs/verify/api/service), the response will also include the challenge's date created value as an additional field called `date` - Details string `json:"Details,omitempty"` - // The future date in which this Challenge will expire, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. - ExpirationDate time.Time `json:"ExpirationDate,omitempty"` - // The unique SID identifier of the Factor. - FactorSid string `json:"FactorSid"` - // Details provided to give context about the Challenge. Not shown to the end user. It must be a stringified JSON with only strings values eg. `{\"ip\": \"172.168.1.234\"}` - HiddenDetails string `json:"HiddenDetails,omitempty"` -} diff --git a/verify/model_inline_object_4.go b/verify/model_inline_object_4.go deleted file mode 100644 index 53d0adebf..000000000 --- a/verify/model_inline_object_4.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -// InlineObject4 struct for InlineObject4 -type InlineObject4 struct { - // The optional payload needed to verify the Challenge. E.g., a TOTP would use the numeric code. - AuthPayload string `json:"AuthPayload,omitempty"` -} diff --git a/verify/model_inline_object_5.go b/verify/model_inline_object_5.go deleted file mode 100644 index 708497442..000000000 --- a/verify/model_inline_object_5.go +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -// InlineObject5 struct for InlineObject5 -type InlineObject5 struct { - // A unique binding for this Factor that identifies it. E.g. the algorithm and public key for `push` factors. It must be a json string with the required properties for the given factor type. Required when creating a new Factor. This value is never returned because it can contain customer secrets. - Binding string `json:"Binding"` - // The config required for this Factor. It must be a json string with the required properties for the given factor type - Config string `json:"Config"` - // The Type of this Factor. Currently only `push` is supported - FactorType string `json:"FactorType"` - // The friendly name of this Factor - FriendlyName string `json:"FriendlyName"` -} diff --git a/verify/model_inline_object_6.go b/verify/model_inline_object_6.go deleted file mode 100644 index f63ab4966..000000000 --- a/verify/model_inline_object_6.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -// InlineObject6 struct for InlineObject6 -type InlineObject6 struct { - // The optional payload needed to verify the Factor for the first time. E.g. for a TOTP, the numeric code. - AuthPayload string `json:"AuthPayload,omitempty"` - // The new config for this Factor. It must be a json string with the required properties for the given factor type - Config string `json:"Config,omitempty"` - // The new friendly name of this Factor - FriendlyName string `json:"FriendlyName,omitempty"` -} diff --git a/verify/model_inline_object_7.go b/verify/model_inline_object_7.go deleted file mode 100644 index 59e3270d6..000000000 --- a/verify/model_inline_object_7.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -// InlineObject7 struct for InlineObject7 -type InlineObject7 struct { - // The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. - Country string `json:"Country"` - // The SID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) to be used to send SMS to the country of this configuration. - MessagingServiceSid string `json:"MessagingServiceSid"` -} diff --git a/verify/model_inline_object_8.go b/verify/model_inline_object_8.go deleted file mode 100644 index b97ee6ade..000000000 --- a/verify/model_inline_object_8.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -// InlineObject8 struct for InlineObject8 -type InlineObject8 struct { - // The SID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) to be used to send SMS to the country of this configuration. - MessagingServiceSid string `json:"MessagingServiceSid"` -} diff --git a/verify/model_inline_object_9.go b/verify/model_inline_object_9.go deleted file mode 100644 index 199bf342a..000000000 --- a/verify/model_inline_object_9.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -// InlineObject9 struct for InlineObject9 -type InlineObject9 struct { - // Description of this Rate Limit - Description string `json:"Description,omitempty"` - // Provides a unique and addressable name to be assigned to this Rate Limit, assigned by the developer, to be optionally used in addition to SID. **This value should not contain PII.** - UniqueName string `json:"UniqueName"` -} diff --git a/verify/model_inline_response_200.go b/verify/model_inline_response_200.go deleted file mode 100644 index 6b1722201..000000000 --- a/verify/model_inline_response_200.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -// InlineResponse200 struct for InlineResponse200 -type InlineResponse200 struct { - Meta InlineResponse200Meta `json:"meta,omitempty"` - Services []VerifyV2Service `json:"services,omitempty"` -} diff --git a/verify/model_inline_response_200_1.go b/verify/model_inline_response_200_1.go deleted file mode 100644 index a612f86e2..000000000 --- a/verify/model_inline_response_200_1.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -// InlineResponse2001 struct for InlineResponse2001 -type InlineResponse2001 struct { - Entities []VerifyV2ServiceEntity `json:"entities,omitempty"` - Meta InlineResponse200Meta `json:"meta,omitempty"` -} diff --git a/verify/model_inline_response_200_2.go b/verify/model_inline_response_200_2.go deleted file mode 100644 index c4a0efb26..000000000 --- a/verify/model_inline_response_200_2.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -// InlineResponse2002 struct for InlineResponse2002 -type InlineResponse2002 struct { - Challenges []VerifyV2ServiceEntityChallenge `json:"challenges,omitempty"` - Meta InlineResponse200Meta `json:"meta,omitempty"` -} diff --git a/verify/model_inline_response_200_3.go b/verify/model_inline_response_200_3.go deleted file mode 100644 index 1ca01fef9..000000000 --- a/verify/model_inline_response_200_3.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -// InlineResponse2003 struct for InlineResponse2003 -type InlineResponse2003 struct { - Factors []VerifyV2ServiceEntityFactor `json:"factors,omitempty"` - Meta InlineResponse200Meta `json:"meta,omitempty"` -} diff --git a/verify/model_inline_response_200_4.go b/verify/model_inline_response_200_4.go deleted file mode 100644 index 682d105c0..000000000 --- a/verify/model_inline_response_200_4.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -// InlineResponse2004 struct for InlineResponse2004 -type InlineResponse2004 struct { - MessagingConfigurations []VerifyV2ServiceMessagingConfiguration `json:"messaging_configurations,omitempty"` - Meta InlineResponse200Meta `json:"meta,omitempty"` -} diff --git a/verify/model_inline_response_200_5.go b/verify/model_inline_response_200_5.go deleted file mode 100644 index 6f02abeaf..000000000 --- a/verify/model_inline_response_200_5.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -// InlineResponse2005 struct for InlineResponse2005 -type InlineResponse2005 struct { - Meta InlineResponse200Meta `json:"meta,omitempty"` - RateLimits []VerifyV2ServiceRateLimit `json:"rate_limits,omitempty"` -} diff --git a/verify/model_inline_response_200_6.go b/verify/model_inline_response_200_6.go deleted file mode 100644 index 231725c1c..000000000 --- a/verify/model_inline_response_200_6.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -// InlineResponse2006 struct for InlineResponse2006 -type InlineResponse2006 struct { - Buckets []VerifyV2ServiceRateLimitBucket `json:"buckets,omitempty"` - Meta InlineResponse200Meta `json:"meta,omitempty"` -} diff --git a/verify/model_inline_response_200_7.go b/verify/model_inline_response_200_7.go deleted file mode 100644 index e1b1a0c71..000000000 --- a/verify/model_inline_response_200_7.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -// InlineResponse2007 struct for InlineResponse2007 -type InlineResponse2007 struct { - Meta InlineResponse200Meta `json:"meta,omitempty"` - Webhooks []VerifyV2ServiceWebhook `json:"webhooks,omitempty"` -} diff --git a/verify/model_inline_response_200_meta.go b/verify/model_inline_response_200_meta.go deleted file mode 100644 index 13a32d2cb..000000000 --- a/verify/model_inline_response_200_meta.go +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -// InlineResponse200Meta struct for InlineResponse200Meta -type InlineResponse200Meta struct { - FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` - NextPageUrl string `json:"next_page_url,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUrl string `json:"previous_page_url,omitempty"` - Url string `json:"url,omitempty"` -} diff --git a/verify/model_verify_v2_form.go b/verify/model_verify_v2_form.go deleted file mode 100644 index 35d3f1b66..000000000 --- a/verify/model_verify_v2_form.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -// VerifyV2Form struct for VerifyV2Form -type VerifyV2Form struct { - FormMeta map[string]interface{} `json:"form_meta,omitempty"` - FormType string `json:"form_type,omitempty"` - Forms map[string]interface{} `json:"forms,omitempty"` - Url string `json:"url,omitempty"` -} diff --git a/verify/model_verify_v2_service.go b/verify/model_verify_v2_service.go deleted file mode 100644 index 370ff75c0..000000000 --- a/verify/model_verify_v2_service.go +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -import ( - "time" -) -// VerifyV2Service struct for VerifyV2Service -type VerifyV2Service struct { - AccountSid string `json:"account_sid,omitempty"` - CodeLength int32 `json:"code_length,omitempty"` - CustomCodeEnabled bool `json:"custom_code_enabled,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - DoNotShareWarningEnabled bool `json:"do_not_share_warning_enabled,omitempty"` - DtmfInputRequired bool `json:"dtmf_input_required,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - LookupEnabled bool `json:"lookup_enabled,omitempty"` - Psd2Enabled bool `json:"psd2_enabled,omitempty"` - Push map[string]interface{} `json:"push,omitempty"` - Sid string `json:"sid,omitempty"` - SkipSmsToLandlines bool `json:"skip_sms_to_landlines,omitempty"` - TtsName string `json:"tts_name,omitempty"` - Url string `json:"url,omitempty"` -} diff --git a/verify/model_verify_v2_service_access_token.go b/verify/model_verify_v2_service_access_token.go deleted file mode 100644 index 9c6c14619..000000000 --- a/verify/model_verify_v2_service_access_token.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -// VerifyV2ServiceAccessToken struct for VerifyV2ServiceAccessToken -type VerifyV2ServiceAccessToken struct { - Token string `json:"token,omitempty"` -} diff --git a/verify/model_verify_v2_service_entity.go b/verify/model_verify_v2_service_entity.go deleted file mode 100644 index 2b48e5c40..000000000 --- a/verify/model_verify_v2_service_entity.go +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -import ( - "time" -) -// VerifyV2ServiceEntity struct for VerifyV2ServiceEntity -type VerifyV2ServiceEntity struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Identity string `json:"identity,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` -} diff --git a/verify/model_verify_v2_service_entity_challenge.go b/verify/model_verify_v2_service_entity_challenge.go deleted file mode 100644 index f7449fcd7..000000000 --- a/verify/model_verify_v2_service_entity_challenge.go +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -import ( - "time" -) -// VerifyV2ServiceEntityChallenge struct for VerifyV2ServiceEntityChallenge -type VerifyV2ServiceEntityChallenge struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateResponded time.Time `json:"date_responded,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Details string `json:"details,omitempty"` - EntitySid string `json:"entity_sid,omitempty"` - ExpirationDate time.Time `json:"expiration_date,omitempty"` - FactorSid string `json:"factor_sid,omitempty"` - FactorType string `json:"factor_type,omitempty"` - HiddenDetails string `json:"hidden_details,omitempty"` - Identity string `json:"identity,omitempty"` - RespondedReason string `json:"responded_reason,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - Url string `json:"url,omitempty"` -} diff --git a/verify/model_verify_v2_service_entity_factor.go b/verify/model_verify_v2_service_entity_factor.go deleted file mode 100644 index 5d8b2ad27..000000000 --- a/verify/model_verify_v2_service_entity_factor.go +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -import ( - "time" -) -// VerifyV2ServiceEntityFactor struct for VerifyV2ServiceEntityFactor -type VerifyV2ServiceEntityFactor struct { - AccountSid string `json:"account_sid,omitempty"` - Config map[string]interface{} `json:"config,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - EntitySid string `json:"entity_sid,omitempty"` - FactorType string `json:"factor_type,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Identity string `json:"identity,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - Url string `json:"url,omitempty"` -} diff --git a/verify/model_verify_v2_service_messaging_configuration.go b/verify/model_verify_v2_service_messaging_configuration.go deleted file mode 100644 index 64920c4fb..000000000 --- a/verify/model_verify_v2_service_messaging_configuration.go +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -import ( - "time" -) -// VerifyV2ServiceMessagingConfiguration struct for VerifyV2ServiceMessagingConfiguration -type VerifyV2ServiceMessagingConfiguration struct { - AccountSid string `json:"account_sid,omitempty"` - Country string `json:"country,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - MessagingServiceSid string `json:"messaging_service_sid,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Url string `json:"url,omitempty"` -} diff --git a/verify/model_verify_v2_service_rate_limit.go b/verify/model_verify_v2_service_rate_limit.go deleted file mode 100644 index ad267268d..000000000 --- a/verify/model_verify_v2_service_rate_limit.go +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -import ( - "time" -) -// VerifyV2ServiceRateLimit struct for VerifyV2ServiceRateLimit -type VerifyV2ServiceRateLimit struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Description string `json:"description,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` -} diff --git a/verify/model_verify_v2_service_rate_limit_bucket.go b/verify/model_verify_v2_service_rate_limit_bucket.go deleted file mode 100644 index 2b1182bc1..000000000 --- a/verify/model_verify_v2_service_rate_limit_bucket.go +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -import ( - "time" -) -// VerifyV2ServiceRateLimitBucket struct for VerifyV2ServiceRateLimitBucket -type VerifyV2ServiceRateLimitBucket struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Interval int32 `json:"interval,omitempty"` - Max int32 `json:"max,omitempty"` - RateLimitSid string `json:"rate_limit_sid,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` -} diff --git a/verify/model_verify_v2_service_verification.go b/verify/model_verify_v2_service_verification.go deleted file mode 100644 index 064d38311..000000000 --- a/verify/model_verify_v2_service_verification.go +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -import ( - "time" -) -// VerifyV2ServiceVerification struct for VerifyV2ServiceVerification -type VerifyV2ServiceVerification struct { - AccountSid string `json:"account_sid,omitempty"` - Amount string `json:"amount,omitempty"` - Channel string `json:"channel,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Lookup map[string]interface{} `json:"lookup,omitempty"` - Payee string `json:"payee,omitempty"` - SendCodeAttempts []map[string]interface{} `json:"send_code_attempts,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - To string `json:"to,omitempty"` - Url string `json:"url,omitempty"` - Valid bool `json:"valid,omitempty"` -} diff --git a/verify/model_verify_v2_service_verification_check.go b/verify/model_verify_v2_service_verification_check.go deleted file mode 100644 index 40fe5d4a5..000000000 --- a/verify/model_verify_v2_service_verification_check.go +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -import ( - "time" -) -// VerifyV2ServiceVerificationCheck struct for VerifyV2ServiceVerificationCheck -type VerifyV2ServiceVerificationCheck struct { - AccountSid string `json:"account_sid,omitempty"` - Amount string `json:"amount,omitempty"` - Channel string `json:"channel,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Payee string `json:"payee,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - To string `json:"to,omitempty"` - Valid bool `json:"valid,omitempty"` -} diff --git a/verify/model_verify_v2_service_webhook.go b/verify/model_verify_v2_service_webhook.go deleted file mode 100644 index 93fe9d7e3..000000000 --- a/verify/model_verify_v2_service_webhook.go +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio -import ( - "time" -) -// VerifyV2ServiceWebhook struct for VerifyV2ServiceWebhook -type VerifyV2ServiceWebhook struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - EventTypes []string `json:"event_types,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - Url string `json:"url,omitempty"` - WebhookMethod string `json:"webhook_method,omitempty"` - WebhookUrl string `json:"webhook_url,omitempty"` -} diff --git a/verify/response.go b/verify/response.go deleted file mode 100644 index 8b0baf750..000000000 --- a/verify/response.go +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Twilio - Verify - * - * This is the public Twilio REST API. - * - * API version: 1.0.1 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package twilio - -import ( - "net/http" -) - -// APIResponse stores the API response returned by the server. -type APIResponse struct { - *http.Response `json:"-"` - Message string `json:"message,omitempty"` - // Operation is the name of the OpenAPI operation. - Operation string `json:"operation,omitempty"` - // RequestURL is the request URL. This value is always available, even if the - // embedded *http.Response is nil. - RequestURL string `json:"url,omitempty"` - // Method is the HTTP method used for the request. This value is always - // available, even if the embedded *http.Response is nil. - Method string `json:"method,omitempty"` - // Payload holds the contents of the response body (which may be nil or empty). - // This is provided here as the raw response.Body() reader will have already - // been drained. - Payload []byte `json:"-"` -} - -// NewAPIResponse returns a new APIResponse object. -func NewAPIResponse(r *http.Response) *APIResponse { - - response := &APIResponse{Response: r} - return response -} - -// NewAPIResponseWithError returns a new APIResponse object with the provided error message. -func NewAPIResponseWithError(errorMessage string) *APIResponse { - - response := &APIResponse{Message: errorMessage} - return response -} From 97cc848151ba9b37a257b743cb5cfbe9a21bee1d Mon Sep 17 00:00:00 2001 From: Shwetha Radhakrishna Date: Wed, 20 Jan 2021 11:12:01 -0700 Subject: [PATCH 03/20] Resolving empty import paths --- rest/accounts/v1/api_default.go | 424 +- rest/accounts/v1/response.go | 10 +- rest/api/v2010/api_default.go | 11810 ++++++++-------- rest/api/v2010/response.go | 10 +- rest/autopilot/v1/api_default.go | 2210 ++- rest/autopilot/v1/response.go | 10 +- rest/bulkexports/v1/api_default.go | 358 +- rest/bulkexports/v1/response.go | 10 +- rest/chat/v1/api_default.go | 2053 ++- rest/chat/v1/response.go | 10 +- rest/chat/v2/api_default.go | 2845 ++-- rest/chat/v2/response.go | 10 +- rest/conversations/v1/api_default.go | 4409 +++--- rest/conversations/v1/response.go | 10 +- rest/events/v1/api_default.go | 606 +- rest/events/v1/response.go | 10 +- rest/fax/v1/api_default.go | 382 +- rest/fax/v1/response.go | 10 +- rest/flex/v1/api_default.go | 938 +- rest/flex/v1/response.go | 10 +- rest/insights/v1/api_call_tag.go | 45 +- rest/insights/v1/api_events_tag.go | 62 +- rest/insights/v1/api_metrics_tag.go | 70 +- rest/insights/v1/api_summary_tag.go | 54 +- .../v1/api_video_participant_summary_tag.go | 84 +- .../insights/v1/api_video_room_summary_tag.go | 135 +- rest/insights/v1/response.go | 10 +- rest/ip/messaging/api_default.go | 2845 ++-- rest/ip/messaging/response.go | 10 +- rest/lookups/v1/api_default.go | 87 +- rest/lookups/v1/response.go | 10 +- rest/messaging/v1/api_default.go | 804 +- rest/messaging/v1/response.go | 10 +- rest/monitor/v1/api_default.go | 242 +- rest/monitor/v1/response.go | 10 +- rest/notify/v1/api_default.go | 1185 +- rest/notify/v1/response.go | 10 +- rest/numbers/v2/api_default.go | 1150 +- rest/numbers/v2/response.go | 10 +- rest/preview/api_default.go | 7092 +++++----- rest/preview/response.go | 10 +- rest/pricing/v1/api_default.go | 232 +- rest/pricing/v1/response.go | 10 +- rest/pricing/v2/api_default.go | 116 +- rest/pricing/v2/response.go | 10 +- rest/proxy/v1/api_default.go | 1318 +- rest/proxy/v1/response.go | 10 +- rest/serverless/v1/api_default.go | 1426 +- rest/serverless/v1/response.go | 10 +- rest/studio/v1/api_default.go | 714 +- rest/studio/v1/response.go | 10 +- rest/studio/v2/README.md | 4 +- rest/studio/v2/api_default.go | 759 +- rest/studio/v2/api_flows.go | 125 + rest/studio/v2/docs/DefaultApi.md | 91 - rest/studio/v2/docs/FlowsApi.md | 99 + rest/studio/v2/response.go | 10 +- rest/supersim/v1/api_default.go | 1010 +- rest/supersim/v1/response.go | 10 +- rest/sync/v1/api_default.go | 2240 ++- rest/sync/v1/response.go | 10 +- rest/taskrouter/v1/api_default.go | 4147 +++--- rest/taskrouter/v1/response.go | 10 +- rest/trunking/v1/api_default.go | 992 +- rest/trunking/v1/response.go | 10 +- rest/verify/v2/api_default.go | 2126 ++- rest/verify/v2/response.go | 10 +- rest/video/v1/api_default.go | 1865 ++- rest/video/v1/response.go | 10 +- rest/voice/v1/api_default.go | 1330 +- rest/voice/v1/response.go | 10 +- rest/wireless/v1/api_default.go | 1000 +- rest/wireless/v1/response.go | 10 +- 73 files changed, 29848 insertions(+), 29956 deletions(-) create mode 100644 rest/studio/v2/api_flows.go create mode 100644 rest/studio/v2/docs/FlowsApi.md diff --git a/rest/accounts/v1/api_default.go b/rest/accounts/v1/api_default.go index d98af6680..2b4b441a2 100644 --- a/rest/accounts/v1/api_default.go +++ b/rest/accounts/v1/api_default.go @@ -13,28 +13,26 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type DefaultApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewDefaultApiService(client *twilio.Client) *DefaultApiService { - return &DefaultApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &DefaultApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } // CreateCredentialAwsParams Optional parameters for the method 'CreateCredentialAws' type CreateCredentialAwsParams struct { - AccountSid *string `json:"AccountSid,omitempty"` - Credentials *string `json:"Credentials,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` + AccountSid *string `json:"AccountSid,omitempty"` + Credentials *string `json:"Credentials,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -47,41 +45,41 @@ Create a new AWS Credential @return AccountsV1CredentialCredentialAws */ func (c *DefaultApiService) CreateCredentialAws(params *CreateCredentialAwsParams) (*AccountsV1CredentialCredentialAws, error) { - path := "/v1/Credentials/AWS" + path := "/v1/Credentials/AWS" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.AccountSid != nil { - data.Set("AccountSid", *params.AccountSid) - } - if params != nil && params.Credentials != nil { - data.Set("Credentials", *params.Credentials) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + if params != nil && params.AccountSid != nil { + data.Set("AccountSid", *params.AccountSid) + } + if params != nil && params.Credentials != nil { + data.Set("Credentials", *params.Credentials) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AccountsV1CredentialCredentialAws{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AccountsV1CredentialCredentialAws{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateCredentialPublicKeyParams Optional parameters for the method 'CreateCredentialPublicKey' type CreateCredentialPublicKeyParams struct { - AccountSid *string `json:"AccountSid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PublicKey *string `json:"PublicKey,omitempty"` + AccountSid *string `json:"AccountSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PublicKey *string `json:"PublicKey,omitempty"` } /* @@ -94,35 +92,35 @@ Create a new Public Key Credential @return AccountsV1CredentialCredentialPublicKey */ func (c *DefaultApiService) CreateCredentialPublicKey(params *CreateCredentialPublicKeyParams) (*AccountsV1CredentialCredentialPublicKey, error) { - path := "/v1/Credentials/PublicKeys" + path := "/v1/Credentials/PublicKeys" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.AccountSid != nil { - data.Set("AccountSid", *params.AccountSid) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.PublicKey != nil { - data.Set("PublicKey", *params.PublicKey) - } + if params != nil && params.AccountSid != nil { + data.Set("AccountSid", *params.AccountSid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PublicKey != nil { + data.Set("PublicKey", *params.PublicKey) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AccountsV1CredentialCredentialPublicKey{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AccountsV1CredentialCredentialPublicKey{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -131,26 +129,26 @@ Create a new secondary Auth Token @return AccountsV1SecondaryAuthToken */ func (c *DefaultApiService) CreateSecondaryAuthToken() (*AccountsV1SecondaryAuthToken, error) { - path := "/v1/AuthTokens/Secondary" + path := "/v1/AuthTokens/Secondary" - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AccountsV1SecondaryAuthToken{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AccountsV1SecondaryAuthToken{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -159,22 +157,22 @@ Delete a Credential from your account * @param sid The Twilio-provided string that uniquely identifies the AWS resource to delete. */ func (c *DefaultApiService) DeleteCredentialAws(sid string) (error) { - path := "/v1/Credentials/AWS/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Credentials/AWS/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -183,22 +181,22 @@ Delete a Credential from your account * @param sid The Twilio-provided string that uniquely identifies the PublicKey resource to delete. */ func (c *DefaultApiService) DeleteCredentialPublicKey(sid string) (error) { - path := "/v1/Credentials/PublicKeys/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Credentials/PublicKeys/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -206,21 +204,21 @@ DeleteSecondaryAuthToken Method for DeleteSecondaryAuthToken Delete the secondary Auth Token from your account */ func (c *DefaultApiService) DeleteSecondaryAuthToken() (error) { - path := "/v1/AuthTokens/Secondary" + path := "/v1/AuthTokens/Secondary" - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -230,27 +228,27 @@ Fetch the AWS credentials specified by the provided Credential Sid @return AccountsV1CredentialCredentialAws */ func (c *DefaultApiService) FetchCredentialAws(sid string) (*AccountsV1CredentialCredentialAws, error) { - path := "/v1/Credentials/AWS/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Credentials/AWS/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AccountsV1CredentialCredentialAws{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AccountsV1CredentialCredentialAws{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -260,31 +258,31 @@ Fetch the public key specified by the provided Credential Sid @return AccountsV1CredentialCredentialPublicKey */ func (c *DefaultApiService) FetchCredentialPublicKey(sid string) (*AccountsV1CredentialCredentialPublicKey, error) { - path := "/v1/Credentials/PublicKeys/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Credentials/PublicKeys/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AccountsV1CredentialCredentialPublicKey{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AccountsV1CredentialCredentialPublicKey{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListCredentialAwsParams Optional parameters for the method 'ListCredentialAws' type ListCredentialAwsParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -295,33 +293,33 @@ Retrieves a collection of AWS Credentials belonging to the account used to make @return AccountsV1CredentialCredentialAwsReadResponse */ func (c *DefaultApiService) ListCredentialAws(params *ListCredentialAwsParams) (*AccountsV1CredentialCredentialAwsReadResponse, error) { - path := "/v1/Credentials/AWS" + path := "/v1/Credentials/AWS" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AccountsV1CredentialCredentialAwsReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AccountsV1CredentialCredentialAwsReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListCredentialPublicKeyParams Optional parameters for the method 'ListCredentialPublicKey' type ListCredentialPublicKeyParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -332,29 +330,29 @@ Retrieves a collection of Public Key Credentials belonging to the account used t @return AccountsV1CredentialCredentialPublicKeyReadResponse */ func (c *DefaultApiService) ListCredentialPublicKey(params *ListCredentialPublicKeyParams) (*AccountsV1CredentialCredentialPublicKeyReadResponse, error) { - path := "/v1/Credentials/PublicKeys" + path := "/v1/Credentials/PublicKeys" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AccountsV1CredentialCredentialPublicKeyReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AccountsV1CredentialCredentialPublicKeyReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -363,30 +361,30 @@ Promote the secondary Auth Token to primary. After promoting the new token, all @return AccountsV1AuthTokenPromotion */ func (c *DefaultApiService) UpdateAuthTokenPromotion() (*AccountsV1AuthTokenPromotion, error) { - path := "/v1/AuthTokens/Promote" + path := "/v1/AuthTokens/Promote" - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AccountsV1AuthTokenPromotion{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AccountsV1AuthTokenPromotion{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateCredentialAwsParams Optional parameters for the method 'UpdateCredentialAws' type UpdateCredentialAwsParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -398,34 +396,34 @@ Modify the properties of a given Account @return AccountsV1CredentialCredentialAws */ func (c *DefaultApiService) UpdateCredentialAws(sid string, params *UpdateCredentialAwsParams) (*AccountsV1CredentialCredentialAws, error) { - path := "/v1/Credentials/AWS/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Credentials/AWS/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AccountsV1CredentialCredentialAws{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AccountsV1CredentialCredentialAws{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateCredentialPublicKeyParams Optional parameters for the method 'UpdateCredentialPublicKey' type UpdateCredentialPublicKeyParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -437,28 +435,28 @@ Modify the properties of a given Account @return AccountsV1CredentialCredentialPublicKey */ func (c *DefaultApiService) UpdateCredentialPublicKey(sid string, params *UpdateCredentialPublicKeyParams) (*AccountsV1CredentialCredentialPublicKey, error) { - path := "/v1/Credentials/PublicKeys/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Credentials/PublicKeys/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AccountsV1CredentialCredentialPublicKey{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AccountsV1CredentialCredentialPublicKey{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } diff --git a/rest/accounts/v1/response.go b/rest/accounts/v1/response.go index 50b89c663..5533a8c6d 100644 --- a/rest/accounts/v1/response.go +++ b/rest/accounts/v1/response.go @@ -32,16 +32,14 @@ type APIResponse struct { Payload []byte `json:"-"` } -// Response returns a new APIResponse object. -func Response(r *http.Response) *APIResponse { - +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { response := &APIResponse{Response: r} return response } -// ResponseWithError returns a new APIResponse object with the provided error message. -func ResponseWithError(errorMessage string) *APIResponse { - +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { response := &APIResponse{Message: errorMessage} return response } diff --git a/rest/api/v2010/api_default.go b/rest/api/v2010/api_default.go index 8d7f9f492..0be43ed56 100644 --- a/rest/api/v2010/api_default.go +++ b/rest/api/v2010/api_default.go @@ -13,26 +13,24 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type DefaultApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewDefaultApiService(client *twilio.Client) *DefaultApiService { - return &DefaultApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &DefaultApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } // CreateAccountParams Optional parameters for the method 'CreateAccount' type CreateAccountParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -43,41 +41,41 @@ Create a new Twilio Subaccount from the account making the request @return ApiV2010Account */ func (c *DefaultApiService) CreateAccount(params *CreateAccountParams) (*ApiV2010Account, error) { - path := "/2010-04-01/Accounts.json" + path := "/2010-04-01/Accounts.json" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010Account{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010Account{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateAddressParams Optional parameters for the method 'CreateAddress' type CreateAddressParams struct { - AutoCorrectAddress *bool `json:"AutoCorrectAddress,omitempty"` - City *string `json:"City,omitempty"` - CustomerName *string `json:"CustomerName,omitempty"` - EmergencyEnabled *bool `json:"EmergencyEnabled,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - IsoCountry *string `json:"IsoCountry,omitempty"` - PostalCode *string `json:"PostalCode,omitempty"` - Region *string `json:"Region,omitempty"` - Street *string `json:"Street,omitempty"` + AutoCorrectAddress *bool `json:"AutoCorrectAddress,omitempty"` + City *string `json:"City,omitempty"` + CustomerName *string `json:"CustomerName,omitempty"` + EmergencyEnabled *bool `json:"EmergencyEnabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IsoCountry *string `json:"IsoCountry,omitempty"` + PostalCode *string `json:"PostalCode,omitempty"` + Region *string `json:"Region,omitempty"` + Street *string `json:"Street,omitempty"` } /* @@ -96,72 +94,72 @@ CreateAddress Method for CreateAddress @return ApiV2010AccountAddress */ func (c *DefaultApiService) CreateAddress(accountSid string, params *CreateAddressParams) (*ApiV2010AccountAddress, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Addresses.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.AutoCorrectAddress != nil { - data.Set("AutoCorrectAddress", string(*params.AutoCorrectAddress)) - } - if params != nil && params.City != nil { - data.Set("City", *params.City) - } - if params != nil && params.CustomerName != nil { - data.Set("CustomerName", *params.CustomerName) - } - if params != nil && params.EmergencyEnabled != nil { - data.Set("EmergencyEnabled", string(*params.EmergencyEnabled)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.IsoCountry != nil { - data.Set("IsoCountry", *params.IsoCountry) - } - if params != nil && params.PostalCode != nil { - data.Set("PostalCode", *params.PostalCode) - } - if params != nil && params.Region != nil { - data.Set("Region", *params.Region) - } - if params != nil && params.Street != nil { - data.Set("Street", *params.Street) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountAddress{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/Addresses.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AutoCorrectAddress != nil { + data.Set("AutoCorrectAddress", string(*params.AutoCorrectAddress)) + } + if params != nil && params.City != nil { + data.Set("City", *params.City) + } + if params != nil && params.CustomerName != nil { + data.Set("CustomerName", *params.CustomerName) + } + if params != nil && params.EmergencyEnabled != nil { + data.Set("EmergencyEnabled", string(*params.EmergencyEnabled)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.IsoCountry != nil { + data.Set("IsoCountry", *params.IsoCountry) + } + if params != nil && params.PostalCode != nil { + data.Set("PostalCode", *params.PostalCode) + } + if params != nil && params.Region != nil { + data.Set("Region", *params.Region) + } + if params != nil && params.Street != nil { + data.Set("Street", *params.Street) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountAddress{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateApplicationParams Optional parameters for the method 'CreateApplication' type CreateApplicationParams struct { - ApiVersion *string `json:"ApiVersion,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - MessageStatusCallback *string `json:"MessageStatusCallback,omitempty"` - SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` - SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` - SmsMethod *string `json:"SmsMethod,omitempty"` - SmsStatusCallback *string `json:"SmsStatusCallback,omitempty"` - SmsUrl *string `json:"SmsUrl,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - VoiceCallerIdLookup *bool `json:"VoiceCallerIdLookup,omitempty"` - VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` - VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` - VoiceMethod *string `json:"VoiceMethod,omitempty"` - VoiceUrl *string `json:"VoiceUrl,omitempty"` + ApiVersion *string `json:"ApiVersion,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + MessageStatusCallback *string `json:"MessageStatusCallback,omitempty"` + SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` + SmsMethod *string `json:"SmsMethod,omitempty"` + SmsStatusCallback *string `json:"SmsStatusCallback,omitempty"` + SmsUrl *string `json:"SmsUrl,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + VoiceCallerIdLookup *bool `json:"VoiceCallerIdLookup,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` } /* @@ -187,108 +185,108 @@ Create a new application within your account @return ApiV2010AccountApplication */ func (c *DefaultApiService) CreateApplication(accountSid string, params *CreateApplicationParams) (*ApiV2010AccountApplication, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Applications.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.ApiVersion != nil { - data.Set("ApiVersion", *params.ApiVersion) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.MessageStatusCallback != nil { - data.Set("MessageStatusCallback", *params.MessageStatusCallback) - } - if params != nil && params.SmsFallbackMethod != nil { - data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) - } - if params != nil && params.SmsFallbackUrl != nil { - data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) - } - if params != nil && params.SmsMethod != nil { - data.Set("SmsMethod", *params.SmsMethod) - } - if params != nil && params.SmsStatusCallback != nil { - data.Set("SmsStatusCallback", *params.SmsStatusCallback) - } - if params != nil && params.SmsUrl != nil { - data.Set("SmsUrl", *params.SmsUrl) - } - if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) - } - if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) - } - if params != nil && params.VoiceCallerIdLookup != nil { - data.Set("VoiceCallerIdLookup", string(*params.VoiceCallerIdLookup)) - } - if params != nil && params.VoiceFallbackMethod != nil { - data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) - } - if params != nil && params.VoiceFallbackUrl != nil { - data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) - } - if params != nil && params.VoiceMethod != nil { - data.Set("VoiceMethod", *params.VoiceMethod) - } - if params != nil && params.VoiceUrl != nil { - data.Set("VoiceUrl", *params.VoiceUrl) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountApplication{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/Applications.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ApiVersion != nil { + data.Set("ApiVersion", *params.ApiVersion) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.MessageStatusCallback != nil { + data.Set("MessageStatusCallback", *params.MessageStatusCallback) + } + if params != nil && params.SmsFallbackMethod != nil { + data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) + } + if params != nil && params.SmsFallbackUrl != nil { + data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) + } + if params != nil && params.SmsMethod != nil { + data.Set("SmsMethod", *params.SmsMethod) + } + if params != nil && params.SmsStatusCallback != nil { + data.Set("SmsStatusCallback", *params.SmsStatusCallback) + } + if params != nil && params.SmsUrl != nil { + data.Set("SmsUrl", *params.SmsUrl) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.VoiceCallerIdLookup != nil { + data.Set("VoiceCallerIdLookup", string(*params.VoiceCallerIdLookup)) + } + if params != nil && params.VoiceFallbackMethod != nil { + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + } + if params != nil && params.VoiceFallbackUrl != nil { + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + } + if params != nil && params.VoiceMethod != nil { + data.Set("VoiceMethod", *params.VoiceMethod) + } + if params != nil && params.VoiceUrl != nil { + data.Set("VoiceUrl", *params.VoiceUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountApplication{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateCallParams Optional parameters for the method 'CreateCall' type CreateCallParams struct { - ApplicationSid *string `json:"ApplicationSid,omitempty"` - AsyncAmd *string `json:"AsyncAmd,omitempty"` - AsyncAmdStatusCallback *string `json:"AsyncAmdStatusCallback,omitempty"` - AsyncAmdStatusCallbackMethod *string `json:"AsyncAmdStatusCallbackMethod,omitempty"` - Byoc *string `json:"Byoc,omitempty"` - CallReason *string `json:"CallReason,omitempty"` - CallerId *string `json:"CallerId,omitempty"` - FallbackMethod *string `json:"FallbackMethod,omitempty"` - FallbackUrl *string `json:"FallbackUrl,omitempty"` - From *string `json:"From,omitempty"` - MachineDetection *string `json:"MachineDetection,omitempty"` - MachineDetectionSilenceTimeout *int32 `json:"MachineDetectionSilenceTimeout,omitempty"` - MachineDetectionSpeechEndThreshold *int32 `json:"MachineDetectionSpeechEndThreshold,omitempty"` - MachineDetectionSpeechThreshold *int32 `json:"MachineDetectionSpeechThreshold,omitempty"` - MachineDetectionTimeout *int32 `json:"MachineDetectionTimeout,omitempty"` - Method *string `json:"Method,omitempty"` - Record *bool `json:"Record,omitempty"` - RecordingChannels *string `json:"RecordingChannels,omitempty"` - RecordingStatusCallback *string `json:"RecordingStatusCallback,omitempty"` - RecordingStatusCallbackEvent *[]string `json:"RecordingStatusCallbackEvent,omitempty"` - RecordingStatusCallbackMethod *string `json:"RecordingStatusCallbackMethod,omitempty"` - RecordingTrack *string `json:"RecordingTrack,omitempty"` - SendDigits *string `json:"SendDigits,omitempty"` - SipAuthPassword *string `json:"SipAuthPassword,omitempty"` - SipAuthUsername *string `json:"SipAuthUsername,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StatusCallbackEvent *[]string `json:"StatusCallbackEvent,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - Timeout *int32 `json:"Timeout,omitempty"` - To *string `json:"To,omitempty"` - Trim *string `json:"Trim,omitempty"` - Twiml *string `json:"Twiml,omitempty"` - Url *string `json:"Url,omitempty"` + ApplicationSid *string `json:"ApplicationSid,omitempty"` + AsyncAmd *string `json:"AsyncAmd,omitempty"` + AsyncAmdStatusCallback *string `json:"AsyncAmdStatusCallback,omitempty"` + AsyncAmdStatusCallbackMethod *string `json:"AsyncAmdStatusCallbackMethod,omitempty"` + Byoc *string `json:"Byoc,omitempty"` + CallReason *string `json:"CallReason,omitempty"` + CallerId *string `json:"CallerId,omitempty"` + FallbackMethod *string `json:"FallbackMethod,omitempty"` + FallbackUrl *string `json:"FallbackUrl,omitempty"` + From *string `json:"From,omitempty"` + MachineDetection *string `json:"MachineDetection,omitempty"` + MachineDetectionSilenceTimeout *int32 `json:"MachineDetectionSilenceTimeout,omitempty"` + MachineDetectionSpeechEndThreshold *int32 `json:"MachineDetectionSpeechEndThreshold,omitempty"` + MachineDetectionSpeechThreshold *int32 `json:"MachineDetectionSpeechThreshold,omitempty"` + MachineDetectionTimeout *int32 `json:"MachineDetectionTimeout,omitempty"` + Method *string `json:"Method,omitempty"` + Record *bool `json:"Record,omitempty"` + RecordingChannels *string `json:"RecordingChannels,omitempty"` + RecordingStatusCallback *string `json:"RecordingStatusCallback,omitempty"` + RecordingStatusCallbackEvent *[]string `json:"RecordingStatusCallbackEvent,omitempty"` + RecordingStatusCallbackMethod *string `json:"RecordingStatusCallbackMethod,omitempty"` + RecordingTrack *string `json:"RecordingTrack,omitempty"` + SendDigits *string `json:"SendDigits,omitempty"` + SipAuthPassword *string `json:"SipAuthPassword,omitempty"` + SipAuthUsername *string `json:"SipAuthUsername,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackEvent *[]string `json:"StatusCallbackEvent,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + Timeout *int32 `json:"Timeout,omitempty"` + To *string `json:"To,omitempty"` + Trim *string `json:"Trim,omitempty"` + Twiml *string `json:"Twiml,omitempty"` + Url *string `json:"Url,omitempty"` } /* @@ -332,134 +330,134 @@ Create a new outgoing call to phones, SIP-enabled endpoints or Twilio Client con @return ApiV2010AccountCall */ func (c *DefaultApiService) CreateCall(accountSid string, params *CreateCallParams) (*ApiV2010AccountCall, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Calls.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.ApplicationSid != nil { - data.Set("ApplicationSid", *params.ApplicationSid) - } - if params != nil && params.AsyncAmd != nil { - data.Set("AsyncAmd", *params.AsyncAmd) - } - if params != nil && params.AsyncAmdStatusCallback != nil { - data.Set("AsyncAmdStatusCallback", *params.AsyncAmdStatusCallback) - } - if params != nil && params.AsyncAmdStatusCallbackMethod != nil { - data.Set("AsyncAmdStatusCallbackMethod", *params.AsyncAmdStatusCallbackMethod) - } - if params != nil && params.Byoc != nil { - data.Set("Byoc", *params.Byoc) - } - if params != nil && params.CallReason != nil { - data.Set("CallReason", *params.CallReason) - } - if params != nil && params.CallerId != nil { - data.Set("CallerId", *params.CallerId) - } - if params != nil && params.FallbackMethod != nil { - data.Set("FallbackMethod", *params.FallbackMethod) - } - if params != nil && params.FallbackUrl != nil { - data.Set("FallbackUrl", *params.FallbackUrl) - } - if params != nil && params.From != nil { - data.Set("From", *params.From) - } - if params != nil && params.MachineDetection != nil { - data.Set("MachineDetection", *params.MachineDetection) - } - if params != nil && params.MachineDetectionSilenceTimeout != nil { - data.Set("MachineDetectionSilenceTimeout", string(*params.MachineDetectionSilenceTimeout)) - } - if params != nil && params.MachineDetectionSpeechEndThreshold != nil { - data.Set("MachineDetectionSpeechEndThreshold", string(*params.MachineDetectionSpeechEndThreshold)) - } - if params != nil && params.MachineDetectionSpeechThreshold != nil { - data.Set("MachineDetectionSpeechThreshold", string(*params.MachineDetectionSpeechThreshold)) - } - if params != nil && params.MachineDetectionTimeout != nil { - data.Set("MachineDetectionTimeout", string(*params.MachineDetectionTimeout)) - } - if params != nil && params.Method != nil { - data.Set("Method", *params.Method) - } - if params != nil && params.Record != nil { - data.Set("Record", string(*params.Record)) - } - if params != nil && params.RecordingChannels != nil { - data.Set("RecordingChannels", *params.RecordingChannels) - } - if params != nil && params.RecordingStatusCallback != nil { - data.Set("RecordingStatusCallback", *params.RecordingStatusCallback) - } - if params != nil && params.RecordingStatusCallbackEvent != nil { - data.Set("RecordingStatusCallbackEvent", *params.RecordingStatusCallbackEvent) - } - if params != nil && params.RecordingStatusCallbackMethod != nil { - data.Set("RecordingStatusCallbackMethod", *params.RecordingStatusCallbackMethod) - } - if params != nil && params.RecordingTrack != nil { - data.Set("RecordingTrack", *params.RecordingTrack) - } - if params != nil && params.SendDigits != nil { - data.Set("SendDigits", *params.SendDigits) - } - if params != nil && params.SipAuthPassword != nil { - data.Set("SipAuthPassword", *params.SipAuthPassword) - } - if params != nil && params.SipAuthUsername != nil { - data.Set("SipAuthUsername", *params.SipAuthUsername) - } - if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) - } - if params != nil && params.StatusCallbackEvent != nil { - data.Set("StatusCallbackEvent", *params.StatusCallbackEvent) - } - if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) - } - if params != nil && params.Timeout != nil { - data.Set("Timeout", string(*params.Timeout)) - } - if params != nil && params.To != nil { - data.Set("To", *params.To) - } - if params != nil && params.Trim != nil { - data.Set("Trim", *params.Trim) - } - if params != nil && params.Twiml != nil { - data.Set("Twiml", *params.Twiml) - } - if params != nil && params.Url != nil { - data.Set("Url", *params.Url) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountCall{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/Calls.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ApplicationSid != nil { + data.Set("ApplicationSid", *params.ApplicationSid) + } + if params != nil && params.AsyncAmd != nil { + data.Set("AsyncAmd", *params.AsyncAmd) + } + if params != nil && params.AsyncAmdStatusCallback != nil { + data.Set("AsyncAmdStatusCallback", *params.AsyncAmdStatusCallback) + } + if params != nil && params.AsyncAmdStatusCallbackMethod != nil { + data.Set("AsyncAmdStatusCallbackMethod", *params.AsyncAmdStatusCallbackMethod) + } + if params != nil && params.Byoc != nil { + data.Set("Byoc", *params.Byoc) + } + if params != nil && params.CallReason != nil { + data.Set("CallReason", *params.CallReason) + } + if params != nil && params.CallerId != nil { + data.Set("CallerId", *params.CallerId) + } + if params != nil && params.FallbackMethod != nil { + data.Set("FallbackMethod", *params.FallbackMethod) + } + if params != nil && params.FallbackUrl != nil { + data.Set("FallbackUrl", *params.FallbackUrl) + } + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.MachineDetection != nil { + data.Set("MachineDetection", *params.MachineDetection) + } + if params != nil && params.MachineDetectionSilenceTimeout != nil { + data.Set("MachineDetectionSilenceTimeout", string(*params.MachineDetectionSilenceTimeout)) + } + if params != nil && params.MachineDetectionSpeechEndThreshold != nil { + data.Set("MachineDetectionSpeechEndThreshold", string(*params.MachineDetectionSpeechEndThreshold)) + } + if params != nil && params.MachineDetectionSpeechThreshold != nil { + data.Set("MachineDetectionSpeechThreshold", string(*params.MachineDetectionSpeechThreshold)) + } + if params != nil && params.MachineDetectionTimeout != nil { + data.Set("MachineDetectionTimeout", string(*params.MachineDetectionTimeout)) + } + if params != nil && params.Method != nil { + data.Set("Method", *params.Method) + } + if params != nil && params.Record != nil { + data.Set("Record", string(*params.Record)) + } + if params != nil && params.RecordingChannels != nil { + data.Set("RecordingChannels", *params.RecordingChannels) + } + if params != nil && params.RecordingStatusCallback != nil { + data.Set("RecordingStatusCallback", *params.RecordingStatusCallback) + } + if params != nil && params.RecordingStatusCallbackEvent != nil { + data.Set("RecordingStatusCallbackEvent", *params.RecordingStatusCallbackEvent) + } + if params != nil && params.RecordingStatusCallbackMethod != nil { + data.Set("RecordingStatusCallbackMethod", *params.RecordingStatusCallbackMethod) + } + if params != nil && params.RecordingTrack != nil { + data.Set("RecordingTrack", *params.RecordingTrack) + } + if params != nil && params.SendDigits != nil { + data.Set("SendDigits", *params.SendDigits) + } + if params != nil && params.SipAuthPassword != nil { + data.Set("SipAuthPassword", *params.SipAuthPassword) + } + if params != nil && params.SipAuthUsername != nil { + data.Set("SipAuthUsername", *params.SipAuthUsername) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StatusCallbackEvent != nil { + data.Set("StatusCallbackEvent", *params.StatusCallbackEvent) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.Timeout != nil { + data.Set("Timeout", string(*params.Timeout)) + } + if params != nil && params.To != nil { + data.Set("To", *params.To) + } + if params != nil && params.Trim != nil { + data.Set("Trim", *params.Trim) + } + if params != nil && params.Twiml != nil { + data.Set("Twiml", *params.Twiml) + } + if params != nil && params.Url != nil { + data.Set("Url", *params.Url) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountCall{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateCallFeedbackSummaryParams Optional parameters for the method 'CreateCallFeedbackSummary' type CreateCallFeedbackSummaryParams struct { - EndDate *time.Time `json:"EndDate,omitempty"` - IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` } /* @@ -475,51 +473,51 @@ Create a FeedbackSummary resource for a call @return ApiV2010AccountCallCallFeedbackSummary */ func (c *DefaultApiService) CreateCallFeedbackSummary(accountSid string, params *CreateCallFeedbackSummaryParams) (*ApiV2010AccountCallCallFeedbackSummary, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) - } - if params != nil && params.IncludeSubaccounts != nil { - data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) - } - if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) - } - if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) - } - if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountCallCallFeedbackSummary{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.IncludeSubaccounts != nil { + data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountCallCallFeedbackSummary{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateCallRecordingParams Optional parameters for the method 'CreateCallRecording' type CreateCallRecordingParams struct { - RecordingChannels *string `json:"RecordingChannels,omitempty"` - RecordingStatusCallback *string `json:"RecordingStatusCallback,omitempty"` - RecordingStatusCallbackEvent *[]string `json:"RecordingStatusCallbackEvent,omitempty"` - RecordingStatusCallbackMethod *string `json:"RecordingStatusCallbackMethod,omitempty"` - RecordingTrack *string `json:"RecordingTrack,omitempty"` - Trim *string `json:"Trim,omitempty"` + RecordingChannels *string `json:"RecordingChannels,omitempty"` + RecordingStatusCallback *string `json:"RecordingStatusCallback,omitempty"` + RecordingStatusCallbackEvent *[]string `json:"RecordingStatusCallbackEvent,omitempty"` + RecordingStatusCallbackMethod *string `json:"RecordingStatusCallbackMethod,omitempty"` + RecordingTrack *string `json:"RecordingTrack,omitempty"` + Trim *string `json:"Trim,omitempty"` } /* @@ -537,73 +535,73 @@ Create a recording for the call @return ApiV2010AccountCallCallRecording */ func (c *DefaultApiService) CreateCallRecording(accountSid string, callSid string, params *CreateCallRecordingParams) (*ApiV2010AccountCallCallRecording, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.RecordingChannels != nil { - data.Set("RecordingChannels", *params.RecordingChannels) - } - if params != nil && params.RecordingStatusCallback != nil { - data.Set("RecordingStatusCallback", *params.RecordingStatusCallback) - } - if params != nil && params.RecordingStatusCallbackEvent != nil { - data.Set("RecordingStatusCallbackEvent", *params.RecordingStatusCallbackEvent) - } - if params != nil && params.RecordingStatusCallbackMethod != nil { - data.Set("RecordingStatusCallbackMethod", *params.RecordingStatusCallbackMethod) - } - if params != nil && params.RecordingTrack != nil { - data.Set("RecordingTrack", *params.RecordingTrack) - } - if params != nil && params.Trim != nil { - data.Set("Trim", *params.Trim) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountCallCallRecording{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.RecordingChannels != nil { + data.Set("RecordingChannels", *params.RecordingChannels) + } + if params != nil && params.RecordingStatusCallback != nil { + data.Set("RecordingStatusCallback", *params.RecordingStatusCallback) + } + if params != nil && params.RecordingStatusCallbackEvent != nil { + data.Set("RecordingStatusCallbackEvent", *params.RecordingStatusCallbackEvent) + } + if params != nil && params.RecordingStatusCallbackMethod != nil { + data.Set("RecordingStatusCallbackMethod", *params.RecordingStatusCallbackMethod) + } + if params != nil && params.RecordingTrack != nil { + data.Set("RecordingTrack", *params.RecordingTrack) + } + if params != nil && params.Trim != nil { + data.Set("Trim", *params.Trim) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountCallCallRecording{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateIncomingPhoneNumberParams Optional parameters for the method 'CreateIncomingPhoneNumber' type CreateIncomingPhoneNumberParams struct { - AddressSid *string `json:"AddressSid,omitempty"` - ApiVersion *string `json:"ApiVersion,omitempty"` - AreaCode *string `json:"AreaCode,omitempty"` - BundleSid *string `json:"BundleSid,omitempty"` - EmergencyAddressSid *string `json:"EmergencyAddressSid,omitempty"` - EmergencyStatus *string `json:"EmergencyStatus,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - IdentitySid *string `json:"IdentitySid,omitempty"` - PhoneNumber *string `json:"PhoneNumber,omitempty"` - SmsApplicationSid *string `json:"SmsApplicationSid,omitempty"` - SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` - SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` - SmsMethod *string `json:"SmsMethod,omitempty"` - SmsUrl *string `json:"SmsUrl,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - TrunkSid *string `json:"TrunkSid,omitempty"` - VoiceApplicationSid *string `json:"VoiceApplicationSid,omitempty"` - VoiceCallerIdLookup *bool `json:"VoiceCallerIdLookup,omitempty"` - VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` - VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` - VoiceMethod *string `json:"VoiceMethod,omitempty"` - VoiceReceiveMode *string `json:"VoiceReceiveMode,omitempty"` - VoiceUrl *string `json:"VoiceUrl,omitempty"` + AddressSid *string `json:"AddressSid,omitempty"` + ApiVersion *string `json:"ApiVersion,omitempty"` + AreaCode *string `json:"AreaCode,omitempty"` + BundleSid *string `json:"BundleSid,omitempty"` + EmergencyAddressSid *string `json:"EmergencyAddressSid,omitempty"` + EmergencyStatus *string `json:"EmergencyStatus,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IdentitySid *string `json:"IdentitySid,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + SmsApplicationSid *string `json:"SmsApplicationSid,omitempty"` + SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` + SmsMethod *string `json:"SmsMethod,omitempty"` + SmsUrl *string `json:"SmsUrl,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + TrunkSid *string `json:"TrunkSid,omitempty"` + VoiceApplicationSid *string `json:"VoiceApplicationSid,omitempty"` + VoiceCallerIdLookup *bool `json:"VoiceCallerIdLookup,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceReceiveMode *string `json:"VoiceReceiveMode,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` } /* @@ -638,103 +636,103 @@ Purchase a phone-number for the account. @return ApiV2010AccountIncomingPhoneNumber */ func (c *DefaultApiService) CreateIncomingPhoneNumber(accountSid string, params *CreateIncomingPhoneNumberParams) (*ApiV2010AccountIncomingPhoneNumber, error) { - path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.AddressSid != nil { - data.Set("AddressSid", *params.AddressSid) - } - if params != nil && params.ApiVersion != nil { - data.Set("ApiVersion", *params.ApiVersion) - } - if params != nil && params.AreaCode != nil { - data.Set("AreaCode", *params.AreaCode) - } - if params != nil && params.BundleSid != nil { - data.Set("BundleSid", *params.BundleSid) - } - if params != nil && params.EmergencyAddressSid != nil { - data.Set("EmergencyAddressSid", *params.EmergencyAddressSid) - } - if params != nil && params.EmergencyStatus != nil { - data.Set("EmergencyStatus", *params.EmergencyStatus) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.IdentitySid != nil { - data.Set("IdentitySid", *params.IdentitySid) - } - if params != nil && params.PhoneNumber != nil { - data.Set("PhoneNumber", *params.PhoneNumber) - } - if params != nil && params.SmsApplicationSid != nil { - data.Set("SmsApplicationSid", *params.SmsApplicationSid) - } - if params != nil && params.SmsFallbackMethod != nil { - data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) - } - if params != nil && params.SmsFallbackUrl != nil { - data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) - } - if params != nil && params.SmsMethod != nil { - data.Set("SmsMethod", *params.SmsMethod) - } - if params != nil && params.SmsUrl != nil { - data.Set("SmsUrl", *params.SmsUrl) - } - if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) - } - if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) - } - if params != nil && params.TrunkSid != nil { - data.Set("TrunkSid", *params.TrunkSid) - } - if params != nil && params.VoiceApplicationSid != nil { - data.Set("VoiceApplicationSid", *params.VoiceApplicationSid) - } - if params != nil && params.VoiceCallerIdLookup != nil { - data.Set("VoiceCallerIdLookup", string(*params.VoiceCallerIdLookup)) - } - if params != nil && params.VoiceFallbackMethod != nil { - data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) - } - if params != nil && params.VoiceFallbackUrl != nil { - data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) - } - if params != nil && params.VoiceMethod != nil { - data.Set("VoiceMethod", *params.VoiceMethod) - } - if params != nil && params.VoiceReceiveMode != nil { - data.Set("VoiceReceiveMode", *params.VoiceReceiveMode) - } - if params != nil && params.VoiceUrl != nil { - data.Set("VoiceUrl", *params.VoiceUrl) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountIncomingPhoneNumber{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AddressSid != nil { + data.Set("AddressSid", *params.AddressSid) + } + if params != nil && params.ApiVersion != nil { + data.Set("ApiVersion", *params.ApiVersion) + } + if params != nil && params.AreaCode != nil { + data.Set("AreaCode", *params.AreaCode) + } + if params != nil && params.BundleSid != nil { + data.Set("BundleSid", *params.BundleSid) + } + if params != nil && params.EmergencyAddressSid != nil { + data.Set("EmergencyAddressSid", *params.EmergencyAddressSid) + } + if params != nil && params.EmergencyStatus != nil { + data.Set("EmergencyStatus", *params.EmergencyStatus) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.IdentitySid != nil { + data.Set("IdentitySid", *params.IdentitySid) + } + if params != nil && params.PhoneNumber != nil { + data.Set("PhoneNumber", *params.PhoneNumber) + } + if params != nil && params.SmsApplicationSid != nil { + data.Set("SmsApplicationSid", *params.SmsApplicationSid) + } + if params != nil && params.SmsFallbackMethod != nil { + data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) + } + if params != nil && params.SmsFallbackUrl != nil { + data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) + } + if params != nil && params.SmsMethod != nil { + data.Set("SmsMethod", *params.SmsMethod) + } + if params != nil && params.SmsUrl != nil { + data.Set("SmsUrl", *params.SmsUrl) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.TrunkSid != nil { + data.Set("TrunkSid", *params.TrunkSid) + } + if params != nil && params.VoiceApplicationSid != nil { + data.Set("VoiceApplicationSid", *params.VoiceApplicationSid) + } + if params != nil && params.VoiceCallerIdLookup != nil { + data.Set("VoiceCallerIdLookup", string(*params.VoiceCallerIdLookup)) + } + if params != nil && params.VoiceFallbackMethod != nil { + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + } + if params != nil && params.VoiceFallbackUrl != nil { + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + } + if params != nil && params.VoiceMethod != nil { + data.Set("VoiceMethod", *params.VoiceMethod) + } + if params != nil && params.VoiceReceiveMode != nil { + data.Set("VoiceReceiveMode", *params.VoiceReceiveMode) + } + if params != nil && params.VoiceUrl != nil { + data.Set("VoiceUrl", *params.VoiceUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountIncomingPhoneNumber{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateIncomingPhoneNumberAssignedAddOnParams Optional parameters for the method 'CreateIncomingPhoneNumberAssignedAddOn' type CreateIncomingPhoneNumberAssignedAddOnParams struct { - InstalledAddOnSid *string `json:"InstalledAddOnSid,omitempty"` + InstalledAddOnSid *string `json:"InstalledAddOnSid,omitempty"` } /* @@ -747,57 +745,57 @@ Assign an Add-on installation to the Number specified. @return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn */ func (c *DefaultApiService) CreateIncomingPhoneNumberAssignedAddOn(accountSid string, resourceSid string, params *CreateIncomingPhoneNumberAssignedAddOnParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn, error) { - path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ResourceSid"+"}", resourceSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ResourceSid"+"}", resourceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.InstalledAddOnSid != nil { - data.Set("InstalledAddOnSid", *params.InstalledAddOnSid) - } + if params != nil && params.InstalledAddOnSid != nil { + data.Set("InstalledAddOnSid", *params.InstalledAddOnSid) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateIncomingPhoneNumberLocalParams Optional parameters for the method 'CreateIncomingPhoneNumberLocal' type CreateIncomingPhoneNumberLocalParams struct { - AddressSid *string `json:"AddressSid,omitempty"` - ApiVersion *string `json:"ApiVersion,omitempty"` - BundleSid *string `json:"BundleSid,omitempty"` - EmergencyAddressSid *string `json:"EmergencyAddressSid,omitempty"` - EmergencyStatus *string `json:"EmergencyStatus,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - IdentitySid *string `json:"IdentitySid,omitempty"` - PhoneNumber *string `json:"PhoneNumber,omitempty"` - SmsApplicationSid *string `json:"SmsApplicationSid,omitempty"` - SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` - SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` - SmsMethod *string `json:"SmsMethod,omitempty"` - SmsUrl *string `json:"SmsUrl,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - TrunkSid *string `json:"TrunkSid,omitempty"` - VoiceApplicationSid *string `json:"VoiceApplicationSid,omitempty"` - VoiceCallerIdLookup *bool `json:"VoiceCallerIdLookup,omitempty"` - VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` - VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` - VoiceMethod *string `json:"VoiceMethod,omitempty"` - VoiceReceiveMode *string `json:"VoiceReceiveMode,omitempty"` - VoiceUrl *string `json:"VoiceUrl,omitempty"` + AddressSid *string `json:"AddressSid,omitempty"` + ApiVersion *string `json:"ApiVersion,omitempty"` + BundleSid *string `json:"BundleSid,omitempty"` + EmergencyAddressSid *string `json:"EmergencyAddressSid,omitempty"` + EmergencyStatus *string `json:"EmergencyStatus,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IdentitySid *string `json:"IdentitySid,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + SmsApplicationSid *string `json:"SmsApplicationSid,omitempty"` + SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` + SmsMethod *string `json:"SmsMethod,omitempty"` + SmsUrl *string `json:"SmsUrl,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + TrunkSid *string `json:"TrunkSid,omitempty"` + VoiceApplicationSid *string `json:"VoiceApplicationSid,omitempty"` + VoiceCallerIdLookup *bool `json:"VoiceCallerIdLookup,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceReceiveMode *string `json:"VoiceReceiveMode,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` } /* @@ -830,122 +828,122 @@ CreateIncomingPhoneNumberLocal Method for CreateIncomingPhoneNumberLocal @return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocal */ func (c *DefaultApiService) CreateIncomingPhoneNumberLocal(accountSid string, params *CreateIncomingPhoneNumberLocalParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocal, error) { - path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.AddressSid != nil { - data.Set("AddressSid", *params.AddressSid) - } - if params != nil && params.ApiVersion != nil { - data.Set("ApiVersion", *params.ApiVersion) - } - if params != nil && params.BundleSid != nil { - data.Set("BundleSid", *params.BundleSid) - } - if params != nil && params.EmergencyAddressSid != nil { - data.Set("EmergencyAddressSid", *params.EmergencyAddressSid) - } - if params != nil && params.EmergencyStatus != nil { - data.Set("EmergencyStatus", *params.EmergencyStatus) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.IdentitySid != nil { - data.Set("IdentitySid", *params.IdentitySid) - } - if params != nil && params.PhoneNumber != nil { - data.Set("PhoneNumber", *params.PhoneNumber) - } - if params != nil && params.SmsApplicationSid != nil { - data.Set("SmsApplicationSid", *params.SmsApplicationSid) - } - if params != nil && params.SmsFallbackMethod != nil { - data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) - } - if params != nil && params.SmsFallbackUrl != nil { - data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) - } - if params != nil && params.SmsMethod != nil { - data.Set("SmsMethod", *params.SmsMethod) - } - if params != nil && params.SmsUrl != nil { - data.Set("SmsUrl", *params.SmsUrl) - } - if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) - } - if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) - } - if params != nil && params.TrunkSid != nil { - data.Set("TrunkSid", *params.TrunkSid) - } - if params != nil && params.VoiceApplicationSid != nil { - data.Set("VoiceApplicationSid", *params.VoiceApplicationSid) - } - if params != nil && params.VoiceCallerIdLookup != nil { - data.Set("VoiceCallerIdLookup", string(*params.VoiceCallerIdLookup)) - } - if params != nil && params.VoiceFallbackMethod != nil { - data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) - } - if params != nil && params.VoiceFallbackUrl != nil { - data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) - } - if params != nil && params.VoiceMethod != nil { - data.Set("VoiceMethod", *params.VoiceMethod) - } - if params != nil && params.VoiceReceiveMode != nil { - data.Set("VoiceReceiveMode", *params.VoiceReceiveMode) - } - if params != nil && params.VoiceUrl != nil { - data.Set("VoiceUrl", *params.VoiceUrl) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocal{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AddressSid != nil { + data.Set("AddressSid", *params.AddressSid) + } + if params != nil && params.ApiVersion != nil { + data.Set("ApiVersion", *params.ApiVersion) + } + if params != nil && params.BundleSid != nil { + data.Set("BundleSid", *params.BundleSid) + } + if params != nil && params.EmergencyAddressSid != nil { + data.Set("EmergencyAddressSid", *params.EmergencyAddressSid) + } + if params != nil && params.EmergencyStatus != nil { + data.Set("EmergencyStatus", *params.EmergencyStatus) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.IdentitySid != nil { + data.Set("IdentitySid", *params.IdentitySid) + } + if params != nil && params.PhoneNumber != nil { + data.Set("PhoneNumber", *params.PhoneNumber) + } + if params != nil && params.SmsApplicationSid != nil { + data.Set("SmsApplicationSid", *params.SmsApplicationSid) + } + if params != nil && params.SmsFallbackMethod != nil { + data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) + } + if params != nil && params.SmsFallbackUrl != nil { + data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) + } + if params != nil && params.SmsMethod != nil { + data.Set("SmsMethod", *params.SmsMethod) + } + if params != nil && params.SmsUrl != nil { + data.Set("SmsUrl", *params.SmsUrl) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.TrunkSid != nil { + data.Set("TrunkSid", *params.TrunkSid) + } + if params != nil && params.VoiceApplicationSid != nil { + data.Set("VoiceApplicationSid", *params.VoiceApplicationSid) + } + if params != nil && params.VoiceCallerIdLookup != nil { + data.Set("VoiceCallerIdLookup", string(*params.VoiceCallerIdLookup)) + } + if params != nil && params.VoiceFallbackMethod != nil { + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + } + if params != nil && params.VoiceFallbackUrl != nil { + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + } + if params != nil && params.VoiceMethod != nil { + data.Set("VoiceMethod", *params.VoiceMethod) + } + if params != nil && params.VoiceReceiveMode != nil { + data.Set("VoiceReceiveMode", *params.VoiceReceiveMode) + } + if params != nil && params.VoiceUrl != nil { + data.Set("VoiceUrl", *params.VoiceUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocal{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateIncomingPhoneNumberMobileParams Optional parameters for the method 'CreateIncomingPhoneNumberMobile' type CreateIncomingPhoneNumberMobileParams struct { - AddressSid *string `json:"AddressSid,omitempty"` - ApiVersion *string `json:"ApiVersion,omitempty"` - BundleSid *string `json:"BundleSid,omitempty"` - EmergencyAddressSid *string `json:"EmergencyAddressSid,omitempty"` - EmergencyStatus *string `json:"EmergencyStatus,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - IdentitySid *string `json:"IdentitySid,omitempty"` - PhoneNumber *string `json:"PhoneNumber,omitempty"` - SmsApplicationSid *string `json:"SmsApplicationSid,omitempty"` - SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` - SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` - SmsMethod *string `json:"SmsMethod,omitempty"` - SmsUrl *string `json:"SmsUrl,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - TrunkSid *string `json:"TrunkSid,omitempty"` - VoiceApplicationSid *string `json:"VoiceApplicationSid,omitempty"` - VoiceCallerIdLookup *bool `json:"VoiceCallerIdLookup,omitempty"` - VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` - VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` - VoiceMethod *string `json:"VoiceMethod,omitempty"` - VoiceReceiveMode *string `json:"VoiceReceiveMode,omitempty"` - VoiceUrl *string `json:"VoiceUrl,omitempty"` + AddressSid *string `json:"AddressSid,omitempty"` + ApiVersion *string `json:"ApiVersion,omitempty"` + BundleSid *string `json:"BundleSid,omitempty"` + EmergencyAddressSid *string `json:"EmergencyAddressSid,omitempty"` + EmergencyStatus *string `json:"EmergencyStatus,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IdentitySid *string `json:"IdentitySid,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + SmsApplicationSid *string `json:"SmsApplicationSid,omitempty"` + SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` + SmsMethod *string `json:"SmsMethod,omitempty"` + SmsUrl *string `json:"SmsUrl,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + TrunkSid *string `json:"TrunkSid,omitempty"` + VoiceApplicationSid *string `json:"VoiceApplicationSid,omitempty"` + VoiceCallerIdLookup *bool `json:"VoiceCallerIdLookup,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceReceiveMode *string `json:"VoiceReceiveMode,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` } /* @@ -978,122 +976,122 @@ CreateIncomingPhoneNumberMobile Method for CreateIncomingPhoneNumberMobile @return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobile */ func (c *DefaultApiService) CreateIncomingPhoneNumberMobile(accountSid string, params *CreateIncomingPhoneNumberMobileParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobile, error) { - path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.AddressSid != nil { - data.Set("AddressSid", *params.AddressSid) - } - if params != nil && params.ApiVersion != nil { - data.Set("ApiVersion", *params.ApiVersion) - } - if params != nil && params.BundleSid != nil { - data.Set("BundleSid", *params.BundleSid) - } - if params != nil && params.EmergencyAddressSid != nil { - data.Set("EmergencyAddressSid", *params.EmergencyAddressSid) - } - if params != nil && params.EmergencyStatus != nil { - data.Set("EmergencyStatus", *params.EmergencyStatus) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.IdentitySid != nil { - data.Set("IdentitySid", *params.IdentitySid) - } - if params != nil && params.PhoneNumber != nil { - data.Set("PhoneNumber", *params.PhoneNumber) - } - if params != nil && params.SmsApplicationSid != nil { - data.Set("SmsApplicationSid", *params.SmsApplicationSid) - } - if params != nil && params.SmsFallbackMethod != nil { - data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) - } - if params != nil && params.SmsFallbackUrl != nil { - data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) - } - if params != nil && params.SmsMethod != nil { - data.Set("SmsMethod", *params.SmsMethod) - } - if params != nil && params.SmsUrl != nil { - data.Set("SmsUrl", *params.SmsUrl) - } - if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) - } - if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) - } - if params != nil && params.TrunkSid != nil { - data.Set("TrunkSid", *params.TrunkSid) - } - if params != nil && params.VoiceApplicationSid != nil { - data.Set("VoiceApplicationSid", *params.VoiceApplicationSid) - } - if params != nil && params.VoiceCallerIdLookup != nil { - data.Set("VoiceCallerIdLookup", string(*params.VoiceCallerIdLookup)) - } - if params != nil && params.VoiceFallbackMethod != nil { - data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) - } - if params != nil && params.VoiceFallbackUrl != nil { - data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) - } - if params != nil && params.VoiceMethod != nil { - data.Set("VoiceMethod", *params.VoiceMethod) - } - if params != nil && params.VoiceReceiveMode != nil { - data.Set("VoiceReceiveMode", *params.VoiceReceiveMode) - } - if params != nil && params.VoiceUrl != nil { - data.Set("VoiceUrl", *params.VoiceUrl) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobile{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AddressSid != nil { + data.Set("AddressSid", *params.AddressSid) + } + if params != nil && params.ApiVersion != nil { + data.Set("ApiVersion", *params.ApiVersion) + } + if params != nil && params.BundleSid != nil { + data.Set("BundleSid", *params.BundleSid) + } + if params != nil && params.EmergencyAddressSid != nil { + data.Set("EmergencyAddressSid", *params.EmergencyAddressSid) + } + if params != nil && params.EmergencyStatus != nil { + data.Set("EmergencyStatus", *params.EmergencyStatus) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.IdentitySid != nil { + data.Set("IdentitySid", *params.IdentitySid) + } + if params != nil && params.PhoneNumber != nil { + data.Set("PhoneNumber", *params.PhoneNumber) + } + if params != nil && params.SmsApplicationSid != nil { + data.Set("SmsApplicationSid", *params.SmsApplicationSid) + } + if params != nil && params.SmsFallbackMethod != nil { + data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) + } + if params != nil && params.SmsFallbackUrl != nil { + data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) + } + if params != nil && params.SmsMethod != nil { + data.Set("SmsMethod", *params.SmsMethod) + } + if params != nil && params.SmsUrl != nil { + data.Set("SmsUrl", *params.SmsUrl) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.TrunkSid != nil { + data.Set("TrunkSid", *params.TrunkSid) + } + if params != nil && params.VoiceApplicationSid != nil { + data.Set("VoiceApplicationSid", *params.VoiceApplicationSid) + } + if params != nil && params.VoiceCallerIdLookup != nil { + data.Set("VoiceCallerIdLookup", string(*params.VoiceCallerIdLookup)) + } + if params != nil && params.VoiceFallbackMethod != nil { + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + } + if params != nil && params.VoiceFallbackUrl != nil { + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + } + if params != nil && params.VoiceMethod != nil { + data.Set("VoiceMethod", *params.VoiceMethod) + } + if params != nil && params.VoiceReceiveMode != nil { + data.Set("VoiceReceiveMode", *params.VoiceReceiveMode) + } + if params != nil && params.VoiceUrl != nil { + data.Set("VoiceUrl", *params.VoiceUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobile{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateIncomingPhoneNumberTollFreeParams Optional parameters for the method 'CreateIncomingPhoneNumberTollFree' type CreateIncomingPhoneNumberTollFreeParams struct { - AddressSid *string `json:"AddressSid,omitempty"` - ApiVersion *string `json:"ApiVersion,omitempty"` - BundleSid *string `json:"BundleSid,omitempty"` - EmergencyAddressSid *string `json:"EmergencyAddressSid,omitempty"` - EmergencyStatus *string `json:"EmergencyStatus,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - IdentitySid *string `json:"IdentitySid,omitempty"` - PhoneNumber *string `json:"PhoneNumber,omitempty"` - SmsApplicationSid *string `json:"SmsApplicationSid,omitempty"` - SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` - SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` - SmsMethod *string `json:"SmsMethod,omitempty"` - SmsUrl *string `json:"SmsUrl,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - TrunkSid *string `json:"TrunkSid,omitempty"` - VoiceApplicationSid *string `json:"VoiceApplicationSid,omitempty"` - VoiceCallerIdLookup *bool `json:"VoiceCallerIdLookup,omitempty"` - VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` - VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` - VoiceMethod *string `json:"VoiceMethod,omitempty"` - VoiceReceiveMode *string `json:"VoiceReceiveMode,omitempty"` - VoiceUrl *string `json:"VoiceUrl,omitempty"` + AddressSid *string `json:"AddressSid,omitempty"` + ApiVersion *string `json:"ApiVersion,omitempty"` + BundleSid *string `json:"BundleSid,omitempty"` + EmergencyAddressSid *string `json:"EmergencyAddressSid,omitempty"` + EmergencyStatus *string `json:"EmergencyStatus,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IdentitySid *string `json:"IdentitySid,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + SmsApplicationSid *string `json:"SmsApplicationSid,omitempty"` + SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` + SmsMethod *string `json:"SmsMethod,omitempty"` + SmsUrl *string `json:"SmsUrl,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + TrunkSid *string `json:"TrunkSid,omitempty"` + VoiceApplicationSid *string `json:"VoiceApplicationSid,omitempty"` + VoiceCallerIdLookup *bool `json:"VoiceCallerIdLookup,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceReceiveMode *string `json:"VoiceReceiveMode,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` } /* @@ -1126,115 +1124,115 @@ CreateIncomingPhoneNumberTollFree Method for CreateIncomingPhoneNumberTollFree @return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFree */ func (c *DefaultApiService) CreateIncomingPhoneNumberTollFree(accountSid string, params *CreateIncomingPhoneNumberTollFreeParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFree, error) { - path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.AddressSid != nil { - data.Set("AddressSid", *params.AddressSid) - } - if params != nil && params.ApiVersion != nil { - data.Set("ApiVersion", *params.ApiVersion) - } - if params != nil && params.BundleSid != nil { - data.Set("BundleSid", *params.BundleSid) - } - if params != nil && params.EmergencyAddressSid != nil { - data.Set("EmergencyAddressSid", *params.EmergencyAddressSid) - } - if params != nil && params.EmergencyStatus != nil { - data.Set("EmergencyStatus", *params.EmergencyStatus) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.IdentitySid != nil { - data.Set("IdentitySid", *params.IdentitySid) - } - if params != nil && params.PhoneNumber != nil { - data.Set("PhoneNumber", *params.PhoneNumber) - } - if params != nil && params.SmsApplicationSid != nil { - data.Set("SmsApplicationSid", *params.SmsApplicationSid) - } - if params != nil && params.SmsFallbackMethod != nil { - data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) - } - if params != nil && params.SmsFallbackUrl != nil { - data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) - } - if params != nil && params.SmsMethod != nil { - data.Set("SmsMethod", *params.SmsMethod) - } - if params != nil && params.SmsUrl != nil { - data.Set("SmsUrl", *params.SmsUrl) - } - if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) - } - if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) - } - if params != nil && params.TrunkSid != nil { - data.Set("TrunkSid", *params.TrunkSid) - } - if params != nil && params.VoiceApplicationSid != nil { - data.Set("VoiceApplicationSid", *params.VoiceApplicationSid) - } - if params != nil && params.VoiceCallerIdLookup != nil { - data.Set("VoiceCallerIdLookup", string(*params.VoiceCallerIdLookup)) - } - if params != nil && params.VoiceFallbackMethod != nil { - data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) - } - if params != nil && params.VoiceFallbackUrl != nil { - data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) - } - if params != nil && params.VoiceMethod != nil { - data.Set("VoiceMethod", *params.VoiceMethod) - } - if params != nil && params.VoiceReceiveMode != nil { - data.Set("VoiceReceiveMode", *params.VoiceReceiveMode) - } - if params != nil && params.VoiceUrl != nil { - data.Set("VoiceUrl", *params.VoiceUrl) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFree{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AddressSid != nil { + data.Set("AddressSid", *params.AddressSid) + } + if params != nil && params.ApiVersion != nil { + data.Set("ApiVersion", *params.ApiVersion) + } + if params != nil && params.BundleSid != nil { + data.Set("BundleSid", *params.BundleSid) + } + if params != nil && params.EmergencyAddressSid != nil { + data.Set("EmergencyAddressSid", *params.EmergencyAddressSid) + } + if params != nil && params.EmergencyStatus != nil { + data.Set("EmergencyStatus", *params.EmergencyStatus) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.IdentitySid != nil { + data.Set("IdentitySid", *params.IdentitySid) + } + if params != nil && params.PhoneNumber != nil { + data.Set("PhoneNumber", *params.PhoneNumber) + } + if params != nil && params.SmsApplicationSid != nil { + data.Set("SmsApplicationSid", *params.SmsApplicationSid) + } + if params != nil && params.SmsFallbackMethod != nil { + data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) + } + if params != nil && params.SmsFallbackUrl != nil { + data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) + } + if params != nil && params.SmsMethod != nil { + data.Set("SmsMethod", *params.SmsMethod) + } + if params != nil && params.SmsUrl != nil { + data.Set("SmsUrl", *params.SmsUrl) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.TrunkSid != nil { + data.Set("TrunkSid", *params.TrunkSid) + } + if params != nil && params.VoiceApplicationSid != nil { + data.Set("VoiceApplicationSid", *params.VoiceApplicationSid) + } + if params != nil && params.VoiceCallerIdLookup != nil { + data.Set("VoiceCallerIdLookup", string(*params.VoiceCallerIdLookup)) + } + if params != nil && params.VoiceFallbackMethod != nil { + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + } + if params != nil && params.VoiceFallbackUrl != nil { + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + } + if params != nil && params.VoiceMethod != nil { + data.Set("VoiceMethod", *params.VoiceMethod) + } + if params != nil && params.VoiceReceiveMode != nil { + data.Set("VoiceReceiveMode", *params.VoiceReceiveMode) + } + if params != nil && params.VoiceUrl != nil { + data.Set("VoiceUrl", *params.VoiceUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFree{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateMessageParams Optional parameters for the method 'CreateMessage' type CreateMessageParams struct { - AddressRetention *string `json:"AddressRetention,omitempty"` - ApplicationSid *string `json:"ApplicationSid,omitempty"` - Attempt *int32 `json:"Attempt,omitempty"` - Body *string `json:"Body,omitempty"` - ContentRetention *string `json:"ContentRetention,omitempty"` - ForceDelivery *bool `json:"ForceDelivery,omitempty"` - From *string `json:"From,omitempty"` - MaxPrice *float32 `json:"MaxPrice,omitempty"` - MediaUrl *[]string `json:"MediaUrl,omitempty"` - MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` - PersistentAction *[]string `json:"PersistentAction,omitempty"` - ProvideFeedback *bool `json:"ProvideFeedback,omitempty"` - SmartEncoded *bool `json:"SmartEncoded,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - To *string `json:"To,omitempty"` - ValidityPeriod *int32 `json:"ValidityPeriod,omitempty"` + AddressRetention *string `json:"AddressRetention,omitempty"` + ApplicationSid *string `json:"ApplicationSid,omitempty"` + Attempt *int32 `json:"Attempt,omitempty"` + Body *string `json:"Body,omitempty"` + ContentRetention *string `json:"ContentRetention,omitempty"` + ForceDelivery *bool `json:"ForceDelivery,omitempty"` + From *string `json:"From,omitempty"` + MaxPrice *float32 `json:"MaxPrice,omitempty"` + MediaUrl *[]string `json:"MediaUrl,omitempty"` + MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` + PersistentAction *[]string `json:"PersistentAction,omitempty"` + ProvideFeedback *bool `json:"ProvideFeedback,omitempty"` + SmartEncoded *bool `json:"SmartEncoded,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + To *string `json:"To,omitempty"` + ValidityPeriod *int32 `json:"ValidityPeriod,omitempty"` } /* @@ -1261,79 +1259,79 @@ Send a message from the account used to make the request @return ApiV2010AccountMessage */ func (c *DefaultApiService) CreateMessage(accountSid string, params *CreateMessageParams) (*ApiV2010AccountMessage, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Messages.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.AddressRetention != nil { - data.Set("AddressRetention", *params.AddressRetention) - } - if params != nil && params.ApplicationSid != nil { - data.Set("ApplicationSid", *params.ApplicationSid) - } - if params != nil && params.Attempt != nil { - data.Set("Attempt", string(*params.Attempt)) - } - if params != nil && params.Body != nil { - data.Set("Body", *params.Body) - } - if params != nil && params.ContentRetention != nil { - data.Set("ContentRetention", *params.ContentRetention) - } - if params != nil && params.ForceDelivery != nil { - data.Set("ForceDelivery", string(*params.ForceDelivery)) - } - if params != nil && params.From != nil { - data.Set("From", *params.From) - } - if params != nil && params.MaxPrice != nil { - data.Set("MaxPrice", string(*params.MaxPrice)) - } - if params != nil && params.MediaUrl != nil { - data.Set("MediaUrl", *params.MediaUrl) - } - if params != nil && params.MessagingServiceSid != nil { - data.Set("MessagingServiceSid", *params.MessagingServiceSid) - } - if params != nil && params.PersistentAction != nil { - data.Set("PersistentAction", *params.PersistentAction) - } - if params != nil && params.ProvideFeedback != nil { - data.Set("ProvideFeedback", string(*params.ProvideFeedback)) - } - if params != nil && params.SmartEncoded != nil { - data.Set("SmartEncoded", string(*params.SmartEncoded)) - } - if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) - } - if params != nil && params.To != nil { - data.Set("To", *params.To) - } - if params != nil && params.ValidityPeriod != nil { - data.Set("ValidityPeriod", string(*params.ValidityPeriod)) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountMessage{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/Messages.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AddressRetention != nil { + data.Set("AddressRetention", *params.AddressRetention) + } + if params != nil && params.ApplicationSid != nil { + data.Set("ApplicationSid", *params.ApplicationSid) + } + if params != nil && params.Attempt != nil { + data.Set("Attempt", string(*params.Attempt)) + } + if params != nil && params.Body != nil { + data.Set("Body", *params.Body) + } + if params != nil && params.ContentRetention != nil { + data.Set("ContentRetention", *params.ContentRetention) + } + if params != nil && params.ForceDelivery != nil { + data.Set("ForceDelivery", string(*params.ForceDelivery)) + } + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.MaxPrice != nil { + data.Set("MaxPrice", string(*params.MaxPrice)) + } + if params != nil && params.MediaUrl != nil { + data.Set("MediaUrl", *params.MediaUrl) + } + if params != nil && params.MessagingServiceSid != nil { + data.Set("MessagingServiceSid", *params.MessagingServiceSid) + } + if params != nil && params.PersistentAction != nil { + data.Set("PersistentAction", *params.PersistentAction) + } + if params != nil && params.ProvideFeedback != nil { + data.Set("ProvideFeedback", string(*params.ProvideFeedback)) + } + if params != nil && params.SmartEncoded != nil { + data.Set("SmartEncoded", string(*params.SmartEncoded)) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.To != nil { + data.Set("To", *params.To) + } + if params != nil && params.ValidityPeriod != nil { + data.Set("ValidityPeriod", string(*params.ValidityPeriod)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateMessageFeedbackParams Optional parameters for the method 'CreateMessageFeedback' type CreateMessageFeedbackParams struct { - Outcome *string `json:"Outcome,omitempty"` + Outcome *string `json:"Outcome,omitempty"` } /* @@ -1345,35 +1343,35 @@ CreateMessageFeedback Method for CreateMessageFeedback @return ApiV2010AccountMessageMessageFeedback */ func (c *DefaultApiService) CreateMessageFeedback(accountSid string, messageSid string, params *CreateMessageFeedbackParams) (*ApiV2010AccountMessageMessageFeedback, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Feedback.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"MessageSid"+"}", messageSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Feedback.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"MessageSid"+"}", messageSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Outcome != nil { - data.Set("Outcome", *params.Outcome) - } + if params != nil && params.Outcome != nil { + data.Set("Outcome", *params.Outcome) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountMessageMessageFeedback{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountMessageMessageFeedback{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateNewKeyParams Optional parameters for the method 'CreateNewKey' type CreateNewKeyParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -1384,34 +1382,34 @@ CreateNewKey Method for CreateNewKey @return ApiV2010AccountNewKey */ func (c *DefaultApiService) CreateNewKey(accountSid string, params *CreateNewKeyParams) (*ApiV2010AccountNewKey, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Keys.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Keys.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountNewKey{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountNewKey{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateNewSigningKeyParams Optional parameters for the method 'CreateNewSigningKey' type CreateNewSigningKeyParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -1423,71 +1421,71 @@ Create a new Signing Key for the account making the request. @return ApiV2010AccountNewSigningKey */ func (c *DefaultApiService) CreateNewSigningKey(accountSid string, params *CreateNewSigningKeyParams) (*ApiV2010AccountNewSigningKey, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SigningKeys.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SigningKeys.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountNewSigningKey{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountNewSigningKey{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateParticipantParams Optional parameters for the method 'CreateParticipant' type CreateParticipantParams struct { - Beep *string `json:"Beep,omitempty"` - Byoc *string `json:"Byoc,omitempty"` - CallReason *string `json:"CallReason,omitempty"` - CallSidToCoach *string `json:"CallSidToCoach,omitempty"` - CallerId *string `json:"CallerId,omitempty"` - Coaching *bool `json:"Coaching,omitempty"` - ConferenceRecord *string `json:"ConferenceRecord,omitempty"` - ConferenceRecordingStatusCallback *string `json:"ConferenceRecordingStatusCallback,omitempty"` - ConferenceRecordingStatusCallbackEvent *[]string `json:"ConferenceRecordingStatusCallbackEvent,omitempty"` - ConferenceRecordingStatusCallbackMethod *string `json:"ConferenceRecordingStatusCallbackMethod,omitempty"` - ConferenceStatusCallback *string `json:"ConferenceStatusCallback,omitempty"` - ConferenceStatusCallbackEvent *[]string `json:"ConferenceStatusCallbackEvent,omitempty"` - ConferenceStatusCallbackMethod *string `json:"ConferenceStatusCallbackMethod,omitempty"` - ConferenceTrim *string `json:"ConferenceTrim,omitempty"` - EarlyMedia *bool `json:"EarlyMedia,omitempty"` - EndConferenceOnExit *bool `json:"EndConferenceOnExit,omitempty"` - From *string `json:"From,omitempty"` - JitterBufferSize *string `json:"JitterBufferSize,omitempty"` - Label *string `json:"Label,omitempty"` - MaxParticipants *int32 `json:"MaxParticipants,omitempty"` - Muted *bool `json:"Muted,omitempty"` - Record *bool `json:"Record,omitempty"` - RecordingChannels *string `json:"RecordingChannels,omitempty"` - RecordingStatusCallback *string `json:"RecordingStatusCallback,omitempty"` - RecordingStatusCallbackEvent *[]string `json:"RecordingStatusCallbackEvent,omitempty"` - RecordingStatusCallbackMethod *string `json:"RecordingStatusCallbackMethod,omitempty"` - RecordingTrack *string `json:"RecordingTrack,omitempty"` - Region *string `json:"Region,omitempty"` - SipAuthPassword *string `json:"SipAuthPassword,omitempty"` - SipAuthUsername *string `json:"SipAuthUsername,omitempty"` - StartConferenceOnEnter *bool `json:"StartConferenceOnEnter,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StatusCallbackEvent *[]string `json:"StatusCallbackEvent,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - Timeout *int32 `json:"Timeout,omitempty"` - To *string `json:"To,omitempty"` - WaitMethod *string `json:"WaitMethod,omitempty"` - WaitUrl *string `json:"WaitUrl,omitempty"` + Beep *string `json:"Beep,omitempty"` + Byoc *string `json:"Byoc,omitempty"` + CallReason *string `json:"CallReason,omitempty"` + CallSidToCoach *string `json:"CallSidToCoach,omitempty"` + CallerId *string `json:"CallerId,omitempty"` + Coaching *bool `json:"Coaching,omitempty"` + ConferenceRecord *string `json:"ConferenceRecord,omitempty"` + ConferenceRecordingStatusCallback *string `json:"ConferenceRecordingStatusCallback,omitempty"` + ConferenceRecordingStatusCallbackEvent *[]string `json:"ConferenceRecordingStatusCallbackEvent,omitempty"` + ConferenceRecordingStatusCallbackMethod *string `json:"ConferenceRecordingStatusCallbackMethod,omitempty"` + ConferenceStatusCallback *string `json:"ConferenceStatusCallback,omitempty"` + ConferenceStatusCallbackEvent *[]string `json:"ConferenceStatusCallbackEvent,omitempty"` + ConferenceStatusCallbackMethod *string `json:"ConferenceStatusCallbackMethod,omitempty"` + ConferenceTrim *string `json:"ConferenceTrim,omitempty"` + EarlyMedia *bool `json:"EarlyMedia,omitempty"` + EndConferenceOnExit *bool `json:"EndConferenceOnExit,omitempty"` + From *string `json:"From,omitempty"` + JitterBufferSize *string `json:"JitterBufferSize,omitempty"` + Label *string `json:"Label,omitempty"` + MaxParticipants *int32 `json:"MaxParticipants,omitempty"` + Muted *bool `json:"Muted,omitempty"` + Record *bool `json:"Record,omitempty"` + RecordingChannels *string `json:"RecordingChannels,omitempty"` + RecordingStatusCallback *string `json:"RecordingStatusCallback,omitempty"` + RecordingStatusCallbackEvent *[]string `json:"RecordingStatusCallbackEvent,omitempty"` + RecordingStatusCallbackMethod *string `json:"RecordingStatusCallbackMethod,omitempty"` + RecordingTrack *string `json:"RecordingTrack,omitempty"` + Region *string `json:"Region,omitempty"` + SipAuthPassword *string `json:"SipAuthPassword,omitempty"` + SipAuthUsername *string `json:"SipAuthUsername,omitempty"` + StartConferenceOnEnter *bool `json:"StartConferenceOnEnter,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackEvent *[]string `json:"StatusCallbackEvent,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + Timeout *int32 `json:"Timeout,omitempty"` + To *string `json:"To,omitempty"` + WaitMethod *string `json:"WaitMethod,omitempty"` + WaitUrl *string `json:"WaitUrl,omitempty"` } /* @@ -1536,161 +1534,161 @@ CreateParticipant Method for CreateParticipant @return ApiV2010AccountConferenceParticipant */ func (c *DefaultApiService) CreateParticipant(accountSid string, conferenceSid string, params *CreateParticipantParams) (*ApiV2010AccountConferenceParticipant, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ConferenceSid"+"}", conferenceSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Beep != nil { - data.Set("Beep", *params.Beep) - } - if params != nil && params.Byoc != nil { - data.Set("Byoc", *params.Byoc) - } - if params != nil && params.CallReason != nil { - data.Set("CallReason", *params.CallReason) - } - if params != nil && params.CallSidToCoach != nil { - data.Set("CallSidToCoach", *params.CallSidToCoach) - } - if params != nil && params.CallerId != nil { - data.Set("CallerId", *params.CallerId) - } - if params != nil && params.Coaching != nil { - data.Set("Coaching", string(*params.Coaching)) - } - if params != nil && params.ConferenceRecord != nil { - data.Set("ConferenceRecord", *params.ConferenceRecord) - } - if params != nil && params.ConferenceRecordingStatusCallback != nil { - data.Set("ConferenceRecordingStatusCallback", *params.ConferenceRecordingStatusCallback) - } - if params != nil && params.ConferenceRecordingStatusCallbackEvent != nil { - data.Set("ConferenceRecordingStatusCallbackEvent", *params.ConferenceRecordingStatusCallbackEvent) - } - if params != nil && params.ConferenceRecordingStatusCallbackMethod != nil { - data.Set("ConferenceRecordingStatusCallbackMethod", *params.ConferenceRecordingStatusCallbackMethod) - } - if params != nil && params.ConferenceStatusCallback != nil { - data.Set("ConferenceStatusCallback", *params.ConferenceStatusCallback) - } - if params != nil && params.ConferenceStatusCallbackEvent != nil { - data.Set("ConferenceStatusCallbackEvent", *params.ConferenceStatusCallbackEvent) - } - if params != nil && params.ConferenceStatusCallbackMethod != nil { - data.Set("ConferenceStatusCallbackMethod", *params.ConferenceStatusCallbackMethod) - } - if params != nil && params.ConferenceTrim != nil { - data.Set("ConferenceTrim", *params.ConferenceTrim) - } - if params != nil && params.EarlyMedia != nil { - data.Set("EarlyMedia", string(*params.EarlyMedia)) - } - if params != nil && params.EndConferenceOnExit != nil { - data.Set("EndConferenceOnExit", string(*params.EndConferenceOnExit)) - } - if params != nil && params.From != nil { - data.Set("From", *params.From) - } - if params != nil && params.JitterBufferSize != nil { - data.Set("JitterBufferSize", *params.JitterBufferSize) - } - if params != nil && params.Label != nil { - data.Set("Label", *params.Label) - } - if params != nil && params.MaxParticipants != nil { - data.Set("MaxParticipants", string(*params.MaxParticipants)) - } - if params != nil && params.Muted != nil { - data.Set("Muted", string(*params.Muted)) - } - if params != nil && params.Record != nil { - data.Set("Record", string(*params.Record)) - } - if params != nil && params.RecordingChannels != nil { - data.Set("RecordingChannels", *params.RecordingChannels) - } - if params != nil && params.RecordingStatusCallback != nil { - data.Set("RecordingStatusCallback", *params.RecordingStatusCallback) - } - if params != nil && params.RecordingStatusCallbackEvent != nil { - data.Set("RecordingStatusCallbackEvent", *params.RecordingStatusCallbackEvent) - } - if params != nil && params.RecordingStatusCallbackMethod != nil { - data.Set("RecordingStatusCallbackMethod", *params.RecordingStatusCallbackMethod) - } - if params != nil && params.RecordingTrack != nil { - data.Set("RecordingTrack", *params.RecordingTrack) - } - if params != nil && params.Region != nil { - data.Set("Region", *params.Region) - } - if params != nil && params.SipAuthPassword != nil { - data.Set("SipAuthPassword", *params.SipAuthPassword) - } - if params != nil && params.SipAuthUsername != nil { - data.Set("SipAuthUsername", *params.SipAuthUsername) - } - if params != nil && params.StartConferenceOnEnter != nil { - data.Set("StartConferenceOnEnter", string(*params.StartConferenceOnEnter)) - } - if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) - } - if params != nil && params.StatusCallbackEvent != nil { - data.Set("StatusCallbackEvent", *params.StatusCallbackEvent) - } - if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) - } - if params != nil && params.Timeout != nil { - data.Set("Timeout", string(*params.Timeout)) - } - if params != nil && params.To != nil { - data.Set("To", *params.To) - } - if params != nil && params.WaitMethod != nil { - data.Set("WaitMethod", *params.WaitMethod) - } - if params != nil && params.WaitUrl != nil { - data.Set("WaitUrl", *params.WaitUrl) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountConferenceParticipant{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ConferenceSid"+"}", conferenceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Beep != nil { + data.Set("Beep", *params.Beep) + } + if params != nil && params.Byoc != nil { + data.Set("Byoc", *params.Byoc) + } + if params != nil && params.CallReason != nil { + data.Set("CallReason", *params.CallReason) + } + if params != nil && params.CallSidToCoach != nil { + data.Set("CallSidToCoach", *params.CallSidToCoach) + } + if params != nil && params.CallerId != nil { + data.Set("CallerId", *params.CallerId) + } + if params != nil && params.Coaching != nil { + data.Set("Coaching", string(*params.Coaching)) + } + if params != nil && params.ConferenceRecord != nil { + data.Set("ConferenceRecord", *params.ConferenceRecord) + } + if params != nil && params.ConferenceRecordingStatusCallback != nil { + data.Set("ConferenceRecordingStatusCallback", *params.ConferenceRecordingStatusCallback) + } + if params != nil && params.ConferenceRecordingStatusCallbackEvent != nil { + data.Set("ConferenceRecordingStatusCallbackEvent", *params.ConferenceRecordingStatusCallbackEvent) + } + if params != nil && params.ConferenceRecordingStatusCallbackMethod != nil { + data.Set("ConferenceRecordingStatusCallbackMethod", *params.ConferenceRecordingStatusCallbackMethod) + } + if params != nil && params.ConferenceStatusCallback != nil { + data.Set("ConferenceStatusCallback", *params.ConferenceStatusCallback) + } + if params != nil && params.ConferenceStatusCallbackEvent != nil { + data.Set("ConferenceStatusCallbackEvent", *params.ConferenceStatusCallbackEvent) + } + if params != nil && params.ConferenceStatusCallbackMethod != nil { + data.Set("ConferenceStatusCallbackMethod", *params.ConferenceStatusCallbackMethod) + } + if params != nil && params.ConferenceTrim != nil { + data.Set("ConferenceTrim", *params.ConferenceTrim) + } + if params != nil && params.EarlyMedia != nil { + data.Set("EarlyMedia", string(*params.EarlyMedia)) + } + if params != nil && params.EndConferenceOnExit != nil { + data.Set("EndConferenceOnExit", string(*params.EndConferenceOnExit)) + } + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.JitterBufferSize != nil { + data.Set("JitterBufferSize", *params.JitterBufferSize) + } + if params != nil && params.Label != nil { + data.Set("Label", *params.Label) + } + if params != nil && params.MaxParticipants != nil { + data.Set("MaxParticipants", string(*params.MaxParticipants)) + } + if params != nil && params.Muted != nil { + data.Set("Muted", string(*params.Muted)) + } + if params != nil && params.Record != nil { + data.Set("Record", string(*params.Record)) + } + if params != nil && params.RecordingChannels != nil { + data.Set("RecordingChannels", *params.RecordingChannels) + } + if params != nil && params.RecordingStatusCallback != nil { + data.Set("RecordingStatusCallback", *params.RecordingStatusCallback) + } + if params != nil && params.RecordingStatusCallbackEvent != nil { + data.Set("RecordingStatusCallbackEvent", *params.RecordingStatusCallbackEvent) + } + if params != nil && params.RecordingStatusCallbackMethod != nil { + data.Set("RecordingStatusCallbackMethod", *params.RecordingStatusCallbackMethod) + } + if params != nil && params.RecordingTrack != nil { + data.Set("RecordingTrack", *params.RecordingTrack) + } + if params != nil && params.Region != nil { + data.Set("Region", *params.Region) + } + if params != nil && params.SipAuthPassword != nil { + data.Set("SipAuthPassword", *params.SipAuthPassword) + } + if params != nil && params.SipAuthUsername != nil { + data.Set("SipAuthUsername", *params.SipAuthUsername) + } + if params != nil && params.StartConferenceOnEnter != nil { + data.Set("StartConferenceOnEnter", string(*params.StartConferenceOnEnter)) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StatusCallbackEvent != nil { + data.Set("StatusCallbackEvent", *params.StatusCallbackEvent) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.Timeout != nil { + data.Set("Timeout", string(*params.Timeout)) + } + if params != nil && params.To != nil { + data.Set("To", *params.To) + } + if params != nil && params.WaitMethod != nil { + data.Set("WaitMethod", *params.WaitMethod) + } + if params != nil && params.WaitUrl != nil { + data.Set("WaitUrl", *params.WaitUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountConferenceParticipant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreatePaymentsParams Optional parameters for the method 'CreatePayments' type CreatePaymentsParams struct { - BankAccountType *string `json:"BankAccountType,omitempty"` - ChargeAmount *float32 `json:"ChargeAmount,omitempty"` - Currency *string `json:"Currency,omitempty"` - Description *string `json:"Description,omitempty"` - IdempotencyKey *string `json:"IdempotencyKey,omitempty"` - Input *string `json:"Input,omitempty"` - MinPostalCodeLength *int32 `json:"MinPostalCodeLength,omitempty"` - Parameter *map[string]interface{} `json:"Parameter,omitempty"` - PaymentConnector *string `json:"PaymentConnector,omitempty"` - PaymentMethod *string `json:"PaymentMethod,omitempty"` - PostalCode *bool `json:"PostalCode,omitempty"` - SecurityCode *bool `json:"SecurityCode,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - Timeout *int32 `json:"Timeout,omitempty"` - TokenType *string `json:"TokenType,omitempty"` - ValidCardTypes *string `json:"ValidCardTypes,omitempty"` + BankAccountType *string `json:"BankAccountType,omitempty"` + ChargeAmount *float32 `json:"ChargeAmount,omitempty"` + Currency *string `json:"Currency,omitempty"` + Description *string `json:"Description,omitempty"` + IdempotencyKey *string `json:"IdempotencyKey,omitempty"` + Input *string `json:"Input,omitempty"` + MinPostalCodeLength *int32 `json:"MinPostalCodeLength,omitempty"` + Parameter *map[string]interface{} `json:"Parameter,omitempty"` + PaymentConnector *string `json:"PaymentConnector,omitempty"` + PaymentMethod *string `json:"PaymentMethod,omitempty"` + PostalCode *bool `json:"PostalCode,omitempty"` + SecurityCode *bool `json:"SecurityCode,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + Timeout *int32 `json:"Timeout,omitempty"` + TokenType *string `json:"TokenType,omitempty"` + ValidCardTypes *string `json:"ValidCardTypes,omitempty"` } /* @@ -1718,87 +1716,87 @@ create an instance of payments. This will start a new payments session @return ApiV2010AccountCallPayments */ func (c *DefaultApiService) CreatePayments(accountSid string, callSid string, params *CreatePaymentsParams) (*ApiV2010AccountCallPayments, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.BankAccountType != nil { - data.Set("BankAccountType", *params.BankAccountType) - } - if params != nil && params.ChargeAmount != nil { - data.Set("ChargeAmount", string(*params.ChargeAmount)) - } - if params != nil && params.Currency != nil { - data.Set("Currency", *params.Currency) - } - if params != nil && params.Description != nil { - data.Set("Description", *params.Description) - } - if params != nil && params.IdempotencyKey != nil { - data.Set("IdempotencyKey", *params.IdempotencyKey) - } - if params != nil && params.Input != nil { - data.Set("Input", *params.Input) - } - if params != nil && params.MinPostalCodeLength != nil { - data.Set("MinPostalCodeLength", string(*params.MinPostalCodeLength)) - } - if params != nil && params.Parameter != nil { - v, err := json.Marshal(params.Parameter) - - if err != nil { - return nil, err - } - - data.Set("Parameter", string(v)) - } - if params != nil && params.PaymentConnector != nil { - data.Set("PaymentConnector", *params.PaymentConnector) - } - if params != nil && params.PaymentMethod != nil { - data.Set("PaymentMethod", *params.PaymentMethod) - } - if params != nil && params.PostalCode != nil { - data.Set("PostalCode", string(*params.PostalCode)) - } - if params != nil && params.SecurityCode != nil { - data.Set("SecurityCode", string(*params.SecurityCode)) - } - if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) - } - if params != nil && params.Timeout != nil { - data.Set("Timeout", string(*params.Timeout)) - } - if params != nil && params.TokenType != nil { - data.Set("TokenType", *params.TokenType) - } - if params != nil && params.ValidCardTypes != nil { - data.Set("ValidCardTypes", *params.ValidCardTypes) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountCallPayments{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.BankAccountType != nil { + data.Set("BankAccountType", *params.BankAccountType) + } + if params != nil && params.ChargeAmount != nil { + data.Set("ChargeAmount", string(*params.ChargeAmount)) + } + if params != nil && params.Currency != nil { + data.Set("Currency", *params.Currency) + } + if params != nil && params.Description != nil { + data.Set("Description", *params.Description) + } + if params != nil && params.IdempotencyKey != nil { + data.Set("IdempotencyKey", *params.IdempotencyKey) + } + if params != nil && params.Input != nil { + data.Set("Input", *params.Input) + } + if params != nil && params.MinPostalCodeLength != nil { + data.Set("MinPostalCodeLength", string(*params.MinPostalCodeLength)) + } + if params != nil && params.Parameter != nil { + v, err := json.Marshal(params.Parameter) + + if err != nil { + return nil, err + } + + data.Set("Parameter", string(v)) + } + if params != nil && params.PaymentConnector != nil { + data.Set("PaymentConnector", *params.PaymentConnector) + } + if params != nil && params.PaymentMethod != nil { + data.Set("PaymentMethod", *params.PaymentMethod) + } + if params != nil && params.PostalCode != nil { + data.Set("PostalCode", string(*params.PostalCode)) + } + if params != nil && params.SecurityCode != nil { + data.Set("SecurityCode", string(*params.SecurityCode)) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.Timeout != nil { + data.Set("Timeout", string(*params.Timeout)) + } + if params != nil && params.TokenType != nil { + data.Set("TokenType", *params.TokenType) + } + if params != nil && params.ValidCardTypes != nil { + data.Set("ValidCardTypes", *params.ValidCardTypes) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountCallPayments{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateQueueParams Optional parameters for the method 'CreateQueue' type CreateQueueParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - MaxSize *int32 `json:"MaxSize,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + MaxSize *int32 `json:"MaxSize,omitempty"` } /* @@ -1811,37 +1809,37 @@ Create a queue @return ApiV2010AccountQueue */ func (c *DefaultApiService) CreateQueue(accountSid string, params *CreateQueueParams) (*ApiV2010AccountQueue, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Queues.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Queues.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.MaxSize != nil { - data.Set("MaxSize", string(*params.MaxSize)) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.MaxSize != nil { + data.Set("MaxSize", string(*params.MaxSize)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountQueue{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountQueue{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateSipAuthCallsCredentialListMappingParams Optional parameters for the method 'CreateSipAuthCallsCredentialListMapping' type CreateSipAuthCallsCredentialListMappingParams struct { - CredentialListSid *string `json:"CredentialListSid,omitempty"` + CredentialListSid *string `json:"CredentialListSid,omitempty"` } /* @@ -1854,35 +1852,35 @@ Create a new credential list mapping resource @return ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping */ func (c *DefaultApiService) CreateSipAuthCallsCredentialListMapping(accountSid string, domainSid string, params *CreateSipAuthCallsCredentialListMappingParams) (*ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.CredentialListSid != nil { - data.Set("CredentialListSid", *params.CredentialListSid) - } + if params != nil && params.CredentialListSid != nil { + data.Set("CredentialListSid", *params.CredentialListSid) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateSipAuthCallsIpAccessControlListMappingParams Optional parameters for the method 'CreateSipAuthCallsIpAccessControlListMapping' type CreateSipAuthCallsIpAccessControlListMappingParams struct { - IpAccessControlListSid *string `json:"IpAccessControlListSid,omitempty"` + IpAccessControlListSid *string `json:"IpAccessControlListSid,omitempty"` } /* @@ -1895,35 +1893,35 @@ Create a new IP Access Control List mapping @return ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping */ func (c *DefaultApiService) CreateSipAuthCallsIpAccessControlListMapping(accountSid string, domainSid string, params *CreateSipAuthCallsIpAccessControlListMappingParams) (*ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.IpAccessControlListSid != nil { - data.Set("IpAccessControlListSid", *params.IpAccessControlListSid) - } + if params != nil && params.IpAccessControlListSid != nil { + data.Set("IpAccessControlListSid", *params.IpAccessControlListSid) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateSipAuthRegistrationsCredentialListMappingParams Optional parameters for the method 'CreateSipAuthRegistrationsCredentialListMapping' type CreateSipAuthRegistrationsCredentialListMappingParams struct { - CredentialListSid *string `json:"CredentialListSid,omitempty"` + CredentialListSid *string `json:"CredentialListSid,omitempty"` } /* @@ -1936,36 +1934,36 @@ Create a new credential list mapping resource @return ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping */ func (c *DefaultApiService) CreateSipAuthRegistrationsCredentialListMapping(accountSid string, domainSid string, params *CreateSipAuthRegistrationsCredentialListMappingParams) (*ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.CredentialListSid != nil { - data.Set("CredentialListSid", *params.CredentialListSid) - } + if params != nil && params.CredentialListSid != nil { + data.Set("CredentialListSid", *params.CredentialListSid) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateSipCredentialParams Optional parameters for the method 'CreateSipCredential' type CreateSipCredentialParams struct { - Password *string `json:"Password,omitempty"` - Username *string `json:"Username,omitempty"` + Password *string `json:"Password,omitempty"` + Username *string `json:"Username,omitempty"` } /* @@ -1979,38 +1977,38 @@ Create a new credential resource. @return ApiV2010AccountSipSipCredentialListSipCredential */ func (c *DefaultApiService) CreateSipCredential(accountSid string, credentialListSid string, params *CreateSipCredentialParams) (*ApiV2010AccountSipSipCredentialListSipCredential, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CredentialListSid"+"}", credentialListSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CredentialListSid"+"}", credentialListSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Password != nil { - data.Set("Password", *params.Password) - } - if params != nil && params.Username != nil { - data.Set("Username", *params.Username) - } + if params != nil && params.Password != nil { + data.Set("Password", *params.Password) + } + if params != nil && params.Username != nil { + data.Set("Username", *params.Username) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountSipSipCredentialListSipCredential{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountSipSipCredentialListSipCredential{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateSipCredentialListParams Optional parameters for the method 'CreateSipCredentialList' type CreateSipCredentialListParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -2022,34 +2020,34 @@ Create a Credential List @return ApiV2010AccountSipSipCredentialList */ func (c *DefaultApiService) CreateSipCredentialList(accountSid string, params *CreateSipCredentialListParams) (*ApiV2010AccountSipSipCredentialList, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountSipSipCredentialList{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountSipSipCredentialList{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateSipCredentialListMappingParams Optional parameters for the method 'CreateSipCredentialListMapping' type CreateSipCredentialListMappingParams struct { - CredentialListSid *string `json:"CredentialListSid,omitempty"` + CredentialListSid *string `json:"CredentialListSid,omitempty"` } /* @@ -2062,47 +2060,47 @@ Create a CredentialListMapping resource for an account. @return ApiV2010AccountSipSipDomainSipCredentialListMapping */ func (c *DefaultApiService) CreateSipCredentialListMapping(accountSid string, domainSid string, params *CreateSipCredentialListMappingParams) (*ApiV2010AccountSipSipDomainSipCredentialListMapping, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.CredentialListSid != nil { - data.Set("CredentialListSid", *params.CredentialListSid) - } + if params != nil && params.CredentialListSid != nil { + data.Set("CredentialListSid", *params.CredentialListSid) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountSipSipDomainSipCredentialListMapping{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountSipSipDomainSipCredentialListMapping{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateSipDomainParams Optional parameters for the method 'CreateSipDomain' type CreateSipDomainParams struct { - ByocTrunkSid *string `json:"ByocTrunkSid,omitempty"` - DomainName *string `json:"DomainName,omitempty"` - EmergencyCallerSid *string `json:"EmergencyCallerSid,omitempty"` - EmergencyCallingEnabled *bool `json:"EmergencyCallingEnabled,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Secure *bool `json:"Secure,omitempty"` - SipRegistration *bool `json:"SipRegistration,omitempty"` - VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` - VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` - VoiceMethod *string `json:"VoiceMethod,omitempty"` - VoiceStatusCallbackMethod *string `json:"VoiceStatusCallbackMethod,omitempty"` - VoiceStatusCallbackUrl *string `json:"VoiceStatusCallbackUrl,omitempty"` - VoiceUrl *string `json:"VoiceUrl,omitempty"` + ByocTrunkSid *string `json:"ByocTrunkSid,omitempty"` + DomainName *string `json:"DomainName,omitempty"` + EmergencyCallerSid *string `json:"EmergencyCallerSid,omitempty"` + EmergencyCallingEnabled *bool `json:"EmergencyCallingEnabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Secure *bool `json:"Secure,omitempty"` + SipRegistration *bool `json:"SipRegistration,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceStatusCallbackMethod *string `json:"VoiceStatusCallbackMethod,omitempty"` + VoiceStatusCallbackUrl *string `json:"VoiceStatusCallbackUrl,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` } /* @@ -2126,70 +2124,70 @@ Create a new Domain @return ApiV2010AccountSipSipDomain */ func (c *DefaultApiService) CreateSipDomain(accountSid string, params *CreateSipDomainParams) (*ApiV2010AccountSipSipDomain, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.ByocTrunkSid != nil { - data.Set("ByocTrunkSid", *params.ByocTrunkSid) - } - if params != nil && params.DomainName != nil { - data.Set("DomainName", *params.DomainName) - } - if params != nil && params.EmergencyCallerSid != nil { - data.Set("EmergencyCallerSid", *params.EmergencyCallerSid) - } - if params != nil && params.EmergencyCallingEnabled != nil { - data.Set("EmergencyCallingEnabled", string(*params.EmergencyCallingEnabled)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Secure != nil { - data.Set("Secure", string(*params.Secure)) - } - if params != nil && params.SipRegistration != nil { - data.Set("SipRegistration", string(*params.SipRegistration)) - } - if params != nil && params.VoiceFallbackMethod != nil { - data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) - } - if params != nil && params.VoiceFallbackUrl != nil { - data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) - } - if params != nil && params.VoiceMethod != nil { - data.Set("VoiceMethod", *params.VoiceMethod) - } - if params != nil && params.VoiceStatusCallbackMethod != nil { - data.Set("VoiceStatusCallbackMethod", *params.VoiceStatusCallbackMethod) - } - if params != nil && params.VoiceStatusCallbackUrl != nil { - data.Set("VoiceStatusCallbackUrl", *params.VoiceStatusCallbackUrl) - } - if params != nil && params.VoiceUrl != nil { - data.Set("VoiceUrl", *params.VoiceUrl) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountSipSipDomain{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ByocTrunkSid != nil { + data.Set("ByocTrunkSid", *params.ByocTrunkSid) + } + if params != nil && params.DomainName != nil { + data.Set("DomainName", *params.DomainName) + } + if params != nil && params.EmergencyCallerSid != nil { + data.Set("EmergencyCallerSid", *params.EmergencyCallerSid) + } + if params != nil && params.EmergencyCallingEnabled != nil { + data.Set("EmergencyCallingEnabled", string(*params.EmergencyCallingEnabled)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Secure != nil { + data.Set("Secure", string(*params.Secure)) + } + if params != nil && params.SipRegistration != nil { + data.Set("SipRegistration", string(*params.SipRegistration)) + } + if params != nil && params.VoiceFallbackMethod != nil { + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + } + if params != nil && params.VoiceFallbackUrl != nil { + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + } + if params != nil && params.VoiceMethod != nil { + data.Set("VoiceMethod", *params.VoiceMethod) + } + if params != nil && params.VoiceStatusCallbackMethod != nil { + data.Set("VoiceStatusCallbackMethod", *params.VoiceStatusCallbackMethod) + } + if params != nil && params.VoiceStatusCallbackUrl != nil { + data.Set("VoiceStatusCallbackUrl", *params.VoiceStatusCallbackUrl) + } + if params != nil && params.VoiceUrl != nil { + data.Set("VoiceUrl", *params.VoiceUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipDomain{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateSipIpAccessControlListParams Optional parameters for the method 'CreateSipIpAccessControlList' type CreateSipIpAccessControlListParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -2201,34 +2199,34 @@ Create a new IpAccessControlList resource @return ApiV2010AccountSipSipIpAccessControlList */ func (c *DefaultApiService) CreateSipIpAccessControlList(accountSid string, params *CreateSipIpAccessControlListParams) (*ApiV2010AccountSipSipIpAccessControlList, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountSipSipIpAccessControlList{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountSipSipIpAccessControlList{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateSipIpAccessControlListMappingParams Optional parameters for the method 'CreateSipIpAccessControlListMapping' type CreateSipIpAccessControlListMappingParams struct { - IpAccessControlListSid *string `json:"IpAccessControlListSid,omitempty"` + IpAccessControlListSid *string `json:"IpAccessControlListSid,omitempty"` } /* @@ -2241,37 +2239,37 @@ Create a new IpAccessControlListMapping resource. @return ApiV2010AccountSipSipDomainSipIpAccessControlListMapping */ func (c *DefaultApiService) CreateSipIpAccessControlListMapping(accountSid string, domainSid string, params *CreateSipIpAccessControlListMappingParams) (*ApiV2010AccountSipSipDomainSipIpAccessControlListMapping, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.IpAccessControlListSid != nil { - data.Set("IpAccessControlListSid", *params.IpAccessControlListSid) - } + if params != nil && params.IpAccessControlListSid != nil { + data.Set("IpAccessControlListSid", *params.IpAccessControlListSid) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountSipSipDomainSipIpAccessControlListMapping{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountSipSipDomainSipIpAccessControlListMapping{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateSipIpAddressParams Optional parameters for the method 'CreateSipIpAddress' type CreateSipIpAddressParams struct { - CidrPrefixLength *int32 `json:"CidrPrefixLength,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - IpAddress *string `json:"IpAddress,omitempty"` + CidrPrefixLength *int32 `json:"CidrPrefixLength,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IpAddress *string `json:"IpAddress,omitempty"` } /* @@ -2286,41 +2284,41 @@ Create a new IpAddress resource. @return ApiV2010AccountSipSipIpAccessControlListSipIpAddress */ func (c *DefaultApiService) CreateSipIpAddress(accountSid string, ipAccessControlListSid string, params *CreateSipIpAddressParams) (*ApiV2010AccountSipSipIpAccessControlListSipIpAddress, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"IpAccessControlListSid"+"}", ipAccessControlListSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"IpAccessControlListSid"+"}", ipAccessControlListSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.CidrPrefixLength != nil { - data.Set("CidrPrefixLength", string(*params.CidrPrefixLength)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.IpAddress != nil { - data.Set("IpAddress", *params.IpAddress) - } + if params != nil && params.CidrPrefixLength != nil { + data.Set("CidrPrefixLength", string(*params.CidrPrefixLength)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.IpAddress != nil { + data.Set("IpAddress", *params.IpAddress) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountSipSipIpAccessControlListSipIpAddress{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountSipSipIpAccessControlListSipIpAddress{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateTokenParams Optional parameters for the method 'CreateToken' type CreateTokenParams struct { - Ttl *int32 `json:"Ttl,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` } /* @@ -2332,40 +2330,40 @@ Create a new token for ICE servers @return ApiV2010AccountToken */ func (c *DefaultApiService) CreateToken(accountSid string, params *CreateTokenParams) (*ApiV2010AccountToken, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Tokens.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Tokens.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Ttl != nil { - data.Set("Ttl", string(*params.Ttl)) - } + if params != nil && params.Ttl != nil { + data.Set("Ttl", string(*params.Ttl)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountToken{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountToken{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateUsageTriggerParams Optional parameters for the method 'CreateUsageTrigger' type CreateUsageTriggerParams struct { - CallbackMethod *string `json:"CallbackMethod,omitempty"` - CallbackUrl *string `json:"CallbackUrl,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Recurring *string `json:"Recurring,omitempty"` - TriggerBy *string `json:"TriggerBy,omitempty"` - TriggerValue *string `json:"TriggerValue,omitempty"` - UsageCategory *string `json:"UsageCategory,omitempty"` + CallbackMethod *string `json:"CallbackMethod,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Recurring *string `json:"Recurring,omitempty"` + TriggerBy *string `json:"TriggerBy,omitempty"` + TriggerValue *string `json:"TriggerValue,omitempty"` + UsageCategory *string `json:"UsageCategory,omitempty"` } /* @@ -2383,57 +2381,57 @@ Create a new UsageTrigger @return ApiV2010AccountUsageUsageTrigger */ func (c *DefaultApiService) CreateUsageTrigger(accountSid string, params *CreateUsageTriggerParams) (*ApiV2010AccountUsageUsageTrigger, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Usage/Triggers.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.CallbackMethod != nil { - data.Set("CallbackMethod", *params.CallbackMethod) - } - if params != nil && params.CallbackUrl != nil { - data.Set("CallbackUrl", *params.CallbackUrl) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Recurring != nil { - data.Set("Recurring", *params.Recurring) - } - if params != nil && params.TriggerBy != nil { - data.Set("TriggerBy", *params.TriggerBy) - } - if params != nil && params.TriggerValue != nil { - data.Set("TriggerValue", *params.TriggerValue) - } - if params != nil && params.UsageCategory != nil { - data.Set("UsageCategory", *params.UsageCategory) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountUsageUsageTrigger{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/Usage/Triggers.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CallbackMethod != nil { + data.Set("CallbackMethod", *params.CallbackMethod) + } + if params != nil && params.CallbackUrl != nil { + data.Set("CallbackUrl", *params.CallbackUrl) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Recurring != nil { + data.Set("Recurring", *params.Recurring) + } + if params != nil && params.TriggerBy != nil { + data.Set("TriggerBy", *params.TriggerBy) + } + if params != nil && params.TriggerValue != nil { + data.Set("TriggerValue", *params.TriggerValue) + } + if params != nil && params.UsageCategory != nil { + data.Set("UsageCategory", *params.UsageCategory) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountUsageUsageTrigger{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateValidationRequestParams Optional parameters for the method 'CreateValidationRequest' type CreateValidationRequestParams struct { - CallDelay *int32 `json:"CallDelay,omitempty"` - Extension *string `json:"Extension,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PhoneNumber *string `json:"PhoneNumber,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + CallDelay *int32 `json:"CallDelay,omitempty"` + Extension *string `json:"Extension,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` } /* @@ -2449,45 +2447,45 @@ CreateValidationRequest Method for CreateValidationRequest @return ApiV2010AccountValidationRequest */ func (c *DefaultApiService) CreateValidationRequest(accountSid string, params *CreateValidationRequestParams) (*ApiV2010AccountValidationRequest, error) { - path := "/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.CallDelay != nil { - data.Set("CallDelay", string(*params.CallDelay)) - } - if params != nil && params.Extension != nil { - data.Set("Extension", *params.Extension) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.PhoneNumber != nil { - data.Set("PhoneNumber", *params.PhoneNumber) - } - if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) - } - if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) - } + if params != nil && params.CallDelay != nil { + data.Set("CallDelay", string(*params.CallDelay)) + } + if params != nil && params.Extension != nil { + data.Set("Extension", *params.Extension) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PhoneNumber != nil { + data.Set("PhoneNumber", *params.PhoneNumber) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountValidationRequest{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountValidationRequest{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -2496,23 +2494,23 @@ DeleteAddress Method for DeleteAddress * @param sid The Twilio-provided string that uniquely identifies the Address resource to delete. */ func (c *DefaultApiService) DeleteAddress(accountSid string, sid string) (error) { - path := "/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -2522,23 +2520,23 @@ Delete the application by the specified application sid * @param sid The Twilio-provided string that uniquely identifies the Application resource to delete. */ func (c *DefaultApiService) DeleteApplication(accountSid string, sid string) (error) { - path := "/2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -2548,23 +2546,23 @@ Delete a Call record from your account. Once the record is deleted, it will no l * @param sid The Twilio-provided Call SID that uniquely identifies the Call resource to delete */ func (c *DefaultApiService) DeleteCall(accountSid string, sid string) (error) { - path := "/2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -2574,23 +2572,23 @@ Delete a FeedbackSummary resource from a call * @param sid A 34 character string that uniquely identifies this resource. */ func (c *DefaultApiService) DeleteCallFeedbackSummary(accountSid string, sid string) (error) { - path := "/2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -2601,24 +2599,24 @@ Delete a recording from your account * @param sid The Twilio-provided string that uniquely identifies the Recording resource to delete. */ func (c *DefaultApiService) DeleteCallRecording(accountSid string, callSid string, sid string) (error) { - path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -2629,24 +2627,24 @@ Delete a recording from your account * @param sid The Twilio-provided string that uniquely identifies the Conference Recording resource to delete. */ func (c *DefaultApiService) DeleteConferenceRecording(accountSid string, conferenceSid string, sid string) (error) { - path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ConferenceSid"+"}", conferenceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ConferenceSid"+"}", conferenceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -2656,23 +2654,23 @@ Delete an instance of a connect-app * @param sid The Twilio-provided string that uniquely identifies the ConnectApp resource to fetch. */ func (c *DefaultApiService) DeleteConnectApp(accountSid string, sid string) (error) { - path := "/2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -2682,23 +2680,23 @@ Delete a phone-numbers belonging to the account used to make the request. * @param sid The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to delete. */ func (c *DefaultApiService) DeleteIncomingPhoneNumber(accountSid string, sid string) (error) { - path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -2709,24 +2707,24 @@ Remove the assignment of an Add-on installation from the Number specified. * @param sid The Twilio-provided string that uniquely identifies the resource to delete. */ func (c *DefaultApiService) DeleteIncomingPhoneNumberAssignedAddOn(accountSid string, resourceSid string, sid string) (error) { - path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ResourceSid"+"}", resourceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ResourceSid"+"}", resourceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -2735,23 +2733,23 @@ DeleteKey Method for DeleteKey * @param sid The Twilio-provided string that uniquely identifies the Key resource to delete. */ func (c *DefaultApiService) DeleteKey(accountSid string, sid string) (error) { - path := "/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -2762,24 +2760,24 @@ Delete media from your account. Once delete, you will no longer be billed * @param sid The Twilio-provided string that uniquely identifies the Media resource to delete */ func (c *DefaultApiService) DeleteMedia(accountSid string, messageSid string, sid string) (error) { - path := "/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"MessageSid"+"}", messageSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"MessageSid"+"}", messageSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -2789,23 +2787,23 @@ Deletes a message record from your account * @param sid The Twilio-provided string that uniquely identifies the Message resource to delete. */ func (c *DefaultApiService) DeleteMessage(accountSid string, sid string) (error) { - path := "/2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -2815,23 +2813,23 @@ Delete the caller-id specified from the account * @param sid The Twilio-provided string that uniquely identifies the OutgoingCallerId resource to delete. */ func (c *DefaultApiService) DeleteOutgoingCallerId(accountSid string, sid string) (error) { - path := "/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -2842,24 +2840,24 @@ Kick a participant from a given conference * @param callSid 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. */ func (c *DefaultApiService) DeleteParticipant(accountSid string, conferenceSid string, callSid string) (error) { - path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ConferenceSid"+"}", conferenceSid, -1) - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ConferenceSid"+"}", conferenceSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -2869,23 +2867,23 @@ Remove an empty queue * @param sid The Twilio-provided string that uniquely identifies the Queue resource to delete */ func (c *DefaultApiService) DeleteQueue(accountSid string, sid string) (error) { - path := "/2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -2895,23 +2893,23 @@ Delete a recording from your account * @param sid The Twilio-provided string that uniquely identifies the Recording resource to delete. */ func (c *DefaultApiService) DeleteRecording(accountSid string, sid string) (error) { - path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -2922,24 +2920,24 @@ Delete a result and purge all associated Payloads * @param sid The Twilio-provided string that uniquely identifies the Recording AddOnResult resource to delete. */ func (c *DefaultApiService) DeleteRecordingAddOnResult(accountSid string, referenceSid string, sid string) (error) { - path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ReferenceSid"+"}", referenceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ReferenceSid"+"}", referenceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -2951,25 +2949,25 @@ Delete a payload from the result along with all associated Data * @param sid The Twilio-provided string that uniquely identifies the Recording AddOnResult Payload resource to delete. */ func (c *DefaultApiService) DeleteRecordingAddOnResultPayload(accountSid string, referenceSid string, addOnResultSid string, sid string) (error) { - path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ReferenceSid"+"}", referenceSid, -1) - path = strings.Replace(path, "{"+"AddOnResultSid"+"}", addOnResultSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ReferenceSid"+"}", referenceSid, -1) + path = strings.Replace(path, "{"+"AddOnResultSid"+"}", addOnResultSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -2979,24 +2977,24 @@ DeleteRecordingTranscription Method for DeleteRecordingTranscription * @param sid The Twilio-provided string that uniquely identifies the Transcription resource to delete. */ func (c *DefaultApiService) DeleteRecordingTranscription(accountSid string, recordingSid string, sid string) (error) { - path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"RecordingSid"+"}", recordingSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"RecordingSid"+"}", recordingSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -3005,23 +3003,23 @@ DeleteSigningKey Method for DeleteSigningKey * @param sid */ func (c *DefaultApiService) DeleteSigningKey(accountSid string, sid string) (error) { - path := "/2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -3032,24 +3030,24 @@ Delete a credential list mapping from the requested domain * @param sid The Twilio-provided string that uniquely identifies the CredentialListMapping resource to delete. */ func (c *DefaultApiService) DeleteSipAuthCallsCredentialListMapping(accountSid string, domainSid string, sid string) (error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -3060,24 +3058,24 @@ Delete an IP Access Control List mapping from the requested domain * @param sid The Twilio-provided string that uniquely identifies the IpAccessControlListMapping resource to delete. */ func (c *DefaultApiService) DeleteSipAuthCallsIpAccessControlListMapping(accountSid string, domainSid string, sid string) (error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -3088,24 +3086,24 @@ Delete a credential list mapping from the requested domain * @param sid The Twilio-provided string that uniquely identifies the CredentialListMapping resource to delete. */ func (c *DefaultApiService) DeleteSipAuthRegistrationsCredentialListMapping(accountSid string, domainSid string, sid string) (error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -3116,24 +3114,24 @@ Delete a credential resource. * @param sid The unique id that identifies the resource to delete. */ func (c *DefaultApiService) DeleteSipCredential(accountSid string, credentialListSid string, sid string) (error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CredentialListSid"+"}", credentialListSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CredentialListSid"+"}", credentialListSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -3143,23 +3141,23 @@ Delete a Credential List * @param sid The credential list Sid that uniquely identifies this resource */ func (c *DefaultApiService) DeleteSipCredentialList(accountSid string, sid string) (error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -3170,24 +3168,24 @@ Delete a CredentialListMapping resource from an account. * @param sid A 34 character string that uniquely identifies the resource to delete. */ func (c *DefaultApiService) DeleteSipCredentialListMapping(accountSid string, domainSid string, sid string) (error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -3197,23 +3195,23 @@ Delete an instance of a Domain * @param sid The Twilio-provided string that uniquely identifies the SipDomain resource to delete. */ func (c *DefaultApiService) DeleteSipDomain(accountSid string, sid string) (error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -3223,23 +3221,23 @@ Delete an IpAccessControlList from the requested account * @param sid A 34 character string that uniquely identifies the resource to delete. */ func (c *DefaultApiService) DeleteSipIpAccessControlList(accountSid string, sid string) (error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -3250,24 +3248,24 @@ Delete an IpAccessControlListMapping resource. * @param sid A 34 character string that uniquely identifies the resource to delete. */ func (c *DefaultApiService) DeleteSipIpAccessControlListMapping(accountSid string, domainSid string, sid string) (error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -3278,24 +3276,24 @@ Delete an IpAddress resource. * @param sid A 34 character string that uniquely identifies the resource to delete. */ func (c *DefaultApiService) DeleteSipIpAddress(accountSid string, ipAccessControlListSid string, sid string) (error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"IpAccessControlListSid"+"}", ipAccessControlListSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"IpAccessControlListSid"+"}", ipAccessControlListSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -3305,23 +3303,23 @@ Delete a transcription from the account used to make the request * @param sid The Twilio-provided string that uniquely identifies the Transcription resource to delete. */ func (c *DefaultApiService) DeleteTranscription(accountSid string, sid string) (error) { - path := "/2010-04-01/Accounts/{AccountSid}/Transcriptions/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Transcriptions/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -3330,23 +3328,23 @@ DeleteUsageTrigger Method for DeleteUsageTrigger * @param sid The Twilio-provided string that uniquely identifies the UsageTrigger resource to delete. */ func (c *DefaultApiService) DeleteUsageTrigger(accountSid string, sid string) (error) { - path := "/2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -3356,27 +3354,27 @@ Fetch the account specified by the provided Account Sid @return ApiV2010Account */ func (c *DefaultApiService) FetchAccount(sid string) (*ApiV2010Account, error) { - path := "/2010-04-01/Accounts/{Sid}.json" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{Sid}.json" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010Account{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010Account{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3386,28 +3384,28 @@ FetchAddress Method for FetchAddress @return ApiV2010AccountAddress */ func (c *DefaultApiService) FetchAddress(accountSid string, sid string) (*ApiV2010AccountAddress, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountAddress{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountAddress{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3418,28 +3416,28 @@ Fetch the application specified by the provided sid @return ApiV2010AccountApplication */ func (c *DefaultApiService) FetchApplication(accountSid string, sid string) (*ApiV2010AccountApplication, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountApplication{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountApplication{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3450,28 +3448,28 @@ Fetch an instance of an authorized-connect-app @return ApiV2010AccountAuthorizedConnectApp */ func (c *DefaultApiService) FetchAuthorizedConnectApp(accountSid string, connectAppSid string) (*ApiV2010AccountAuthorizedConnectApp, error) { - path := "/2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps/{ConnectAppSid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ConnectAppSid"+"}", connectAppSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps/{ConnectAppSid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ConnectAppSid"+"}", connectAppSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountAuthorizedConnectApp{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountAuthorizedConnectApp{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3481,28 +3479,28 @@ FetchAvailablePhoneNumberCountry Method for FetchAvailablePhoneNumberCountry @return ApiV2010AccountAvailablePhoneNumberCountry */ func (c *DefaultApiService) FetchAvailablePhoneNumberCountry(accountSid string, countryCode string) (*ApiV2010AccountAvailablePhoneNumberCountry, error) { - path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CountryCode"+"}", countryCode, -1) + path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CountryCode"+"}", countryCode, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountAvailablePhoneNumberCountry{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountAvailablePhoneNumberCountry{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3512,27 +3510,27 @@ Fetch the balance for an Account based on Account Sid. Balance changes may not b @return ApiV2010AccountBalance */ func (c *DefaultApiService) FetchBalance(accountSid string) (*ApiV2010AccountBalance, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Balance.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Balance.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountBalance{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountBalance{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3543,28 +3541,28 @@ Fetch the call specified by the provided Call SID @return ApiV2010AccountCall */ func (c *DefaultApiService) FetchCall(accountSid string, sid string) (*ApiV2010AccountCall, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountCall{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountCall{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3575,28 +3573,28 @@ Fetch a Feedback resource from a call @return ApiV2010AccountCallCallFeedback */ func (c *DefaultApiService) FetchCallFeedback(accountSid string, callSid string) (*ApiV2010AccountCallCallFeedback, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Feedback.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Feedback.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountCallCallFeedback{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountCallCallFeedback{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3607,28 +3605,28 @@ Fetch a FeedbackSummary resource from a call @return ApiV2010AccountCallCallFeedbackSummary */ func (c *DefaultApiService) FetchCallFeedbackSummary(accountSid string, sid string) (*ApiV2010AccountCallCallFeedbackSummary, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountCallCallFeedbackSummary{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountCallCallFeedbackSummary{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3639,29 +3637,29 @@ FetchCallNotification Method for FetchCallNotification @return ApiV2010AccountCallCallNotificationInstance */ func (c *DefaultApiService) FetchCallNotification(accountSid string, callSid string, sid string) (*ApiV2010AccountCallCallNotificationInstance, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountCallCallNotificationInstance{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountCallCallNotificationInstance{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3673,29 +3671,29 @@ Fetch an instance of a recording for a call @return ApiV2010AccountCallCallRecording */ func (c *DefaultApiService) FetchCallRecording(accountSid string, callSid string, sid string) (*ApiV2010AccountCallCallRecording, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountCallCallRecording{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountCallCallRecording{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3706,28 +3704,28 @@ Fetch an instance of a conference @return ApiV2010AccountConference */ func (c *DefaultApiService) FetchConference(accountSid string, sid string) (*ApiV2010AccountConference, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountConference{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountConference{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3739,29 +3737,29 @@ Fetch an instance of a recording for a call @return ApiV2010AccountConferenceConferenceRecording */ func (c *DefaultApiService) FetchConferenceRecording(accountSid string, conferenceSid string, sid string) (*ApiV2010AccountConferenceConferenceRecording, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ConferenceSid"+"}", conferenceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ConferenceSid"+"}", conferenceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountConferenceConferenceRecording{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountConferenceConferenceRecording{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3772,28 +3770,28 @@ Fetch an instance of a connect-app @return ApiV2010AccountConnectApp */ func (c *DefaultApiService) FetchConnectApp(accountSid string, sid string) (*ApiV2010AccountConnectApp, error) { - path := "/2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountConnectApp{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountConnectApp{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3804,28 +3802,28 @@ Fetch an incoming-phone-number belonging to the account used to make the request @return ApiV2010AccountIncomingPhoneNumber */ func (c *DefaultApiService) FetchIncomingPhoneNumber(accountSid string, sid string) (*ApiV2010AccountIncomingPhoneNumber, error) { - path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountIncomingPhoneNumber{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountIncomingPhoneNumber{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3837,29 +3835,29 @@ Fetch an instance of an Add-on installation currently assigned to this Number. @return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn */ func (c *DefaultApiService) FetchIncomingPhoneNumberAssignedAddOn(accountSid string, resourceSid string, sid string) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn, error) { - path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ResourceSid"+"}", resourceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ResourceSid"+"}", resourceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3872,30 +3870,30 @@ Fetch an instance of an Extension for the Assigned Add-on. @return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension */ func (c *DefaultApiService) FetchIncomingPhoneNumberAssignedAddOnExtension(accountSid string, resourceSid string, assignedAddOnSid string, sid string) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension, error) { - path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ResourceSid"+"}", resourceSid, -1) - path = strings.Replace(path, "{"+"AssignedAddOnSid"+"}", assignedAddOnSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ResourceSid"+"}", resourceSid, -1) + path = strings.Replace(path, "{"+"AssignedAddOnSid"+"}", assignedAddOnSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3905,28 +3903,28 @@ FetchKey Method for FetchKey @return ApiV2010AccountKey */ func (c *DefaultApiService) FetchKey(accountSid string, sid string) (*ApiV2010AccountKey, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountKey{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountKey{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3938,29 +3936,29 @@ Fetch a single media instance belonging to the account used to make the request @return ApiV2010AccountMessageMedia */ func (c *DefaultApiService) FetchMedia(accountSid string, messageSid string, sid string) (*ApiV2010AccountMessageMedia, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"MessageSid"+"}", messageSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"MessageSid"+"}", messageSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountMessageMedia{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountMessageMedia{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3972,29 +3970,29 @@ Fetch a specific member from the queue @return ApiV2010AccountQueueMember */ func (c *DefaultApiService) FetchMember(accountSid string, queueSid string, callSid string) (*ApiV2010AccountQueueMember, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"QueueSid"+"}", queueSid, -1) - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"QueueSid"+"}", queueSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountQueueMember{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountQueueMember{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -4005,28 +4003,28 @@ Fetch a message belonging to the account used to make the request @return ApiV2010AccountMessage */ func (c *DefaultApiService) FetchMessage(accountSid string, sid string) (*ApiV2010AccountMessage, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountMessage{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -4037,28 +4035,28 @@ Fetch a notification belonging to the account used to make the request @return ApiV2010AccountNotificationInstance */ func (c *DefaultApiService) FetchNotification(accountSid string, sid string) (*ApiV2010AccountNotificationInstance, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Notifications/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Notifications/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountNotificationInstance{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountNotificationInstance{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -4069,28 +4067,28 @@ Fetch an outgoing-caller-id belonging to the account used to make the request @return ApiV2010AccountOutgoingCallerId */ func (c *DefaultApiService) FetchOutgoingCallerId(accountSid string, sid string) (*ApiV2010AccountOutgoingCallerId, error) { - path := "/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountOutgoingCallerId{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountOutgoingCallerId{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -4102,29 +4100,29 @@ Fetch an instance of a participant @return ApiV2010AccountConferenceParticipant */ func (c *DefaultApiService) FetchParticipant(accountSid string, conferenceSid string, callSid string) (*ApiV2010AccountConferenceParticipant, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ConferenceSid"+"}", conferenceSid, -1) - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ConferenceSid"+"}", conferenceSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountConferenceParticipant{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountConferenceParticipant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -4135,28 +4133,28 @@ Fetch an instance of a queue identified by the QueueSid @return ApiV2010AccountQueue */ func (c *DefaultApiService) FetchQueue(accountSid string, sid string) (*ApiV2010AccountQueue, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountQueue{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountQueue{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -4167,28 +4165,28 @@ Fetch an instance of a recording @return ApiV2010AccountRecording */ func (c *DefaultApiService) FetchRecording(accountSid string, sid string) (*ApiV2010AccountRecording, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountRecording{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountRecording{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -4200,29 +4198,29 @@ Fetch an instance of an AddOnResult @return ApiV2010AccountRecordingRecordingAddOnResult */ func (c *DefaultApiService) FetchRecordingAddOnResult(accountSid string, referenceSid string, sid string) (*ApiV2010AccountRecordingRecordingAddOnResult, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ReferenceSid"+"}", referenceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ReferenceSid"+"}", referenceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountRecordingRecordingAddOnResult{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountRecordingRecordingAddOnResult{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -4235,30 +4233,30 @@ Fetch an instance of a result payload @return ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayload */ func (c *DefaultApiService) FetchRecordingAddOnResultPayload(accountSid string, referenceSid string, addOnResultSid string, sid string) (*ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayload, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ReferenceSid"+"}", referenceSid, -1) - path = strings.Replace(path, "{"+"AddOnResultSid"+"}", addOnResultSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ReferenceSid"+"}", referenceSid, -1) + path = strings.Replace(path, "{"+"AddOnResultSid"+"}", addOnResultSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayload{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayload{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -4269,29 +4267,29 @@ FetchRecordingTranscription Method for FetchRecordingTranscription @return ApiV2010AccountRecordingRecordingTranscription */ func (c *DefaultApiService) FetchRecordingTranscription(accountSid string, recordingSid string, sid string) (*ApiV2010AccountRecordingRecordingTranscription, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"RecordingSid"+"}", recordingSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"RecordingSid"+"}", recordingSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountRecordingRecordingTranscription{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountRecordingRecordingTranscription{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -4302,28 +4300,28 @@ Fetch an instance of a short code @return ApiV2010AccountShortCode */ func (c *DefaultApiService) FetchShortCode(accountSid string, sid string) (*ApiV2010AccountShortCode, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountShortCode{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountShortCode{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -4333,28 +4331,28 @@ FetchSigningKey Method for FetchSigningKey @return ApiV2010AccountSigningKey */ func (c *DefaultApiService) FetchSigningKey(accountSid string, sid string) (*ApiV2010AccountSigningKey, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountSigningKey{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountSigningKey{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -4366,29 +4364,29 @@ Fetch a specific instance of a credential list mapping @return ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping */ func (c *DefaultApiService) FetchSipAuthCallsCredentialListMapping(accountSid string, domainSid string, sid string) (*ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -4400,29 +4398,29 @@ Fetch a specific instance of an IP Access Control List mapping @return ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping */ func (c *DefaultApiService) FetchSipAuthCallsIpAccessControlListMapping(accountSid string, domainSid string, sid string) (*ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -4434,29 +4432,29 @@ Fetch a specific instance of a credential list mapping @return ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping */ func (c *DefaultApiService) FetchSipAuthRegistrationsCredentialListMapping(accountSid string, domainSid string, sid string) (*ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -4468,29 +4466,29 @@ Fetch a single credential. @return ApiV2010AccountSipSipCredentialListSipCredential */ func (c *DefaultApiService) FetchSipCredential(accountSid string, credentialListSid string, sid string) (*ApiV2010AccountSipSipCredentialListSipCredential, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CredentialListSid"+"}", credentialListSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CredentialListSid"+"}", credentialListSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountSipSipCredentialListSipCredential{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountSipSipCredentialListSipCredential{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -4501,28 +4499,28 @@ Get a Credential List @return ApiV2010AccountSipSipCredentialList */ func (c *DefaultApiService) FetchSipCredentialList(accountSid string, sid string) (*ApiV2010AccountSipSipCredentialList, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountSipSipCredentialList{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountSipSipCredentialList{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -4534,29 +4532,29 @@ Fetch a single CredentialListMapping resource from an account. @return ApiV2010AccountSipSipDomainSipCredentialListMapping */ func (c *DefaultApiService) FetchSipCredentialListMapping(accountSid string, domainSid string, sid string) (*ApiV2010AccountSipSipDomainSipCredentialListMapping, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountSipSipDomainSipCredentialListMapping{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountSipSipDomainSipCredentialListMapping{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -4567,28 +4565,28 @@ Fetch an instance of a Domain @return ApiV2010AccountSipSipDomain */ func (c *DefaultApiService) FetchSipDomain(accountSid string, sid string) (*ApiV2010AccountSipSipDomain, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountSipSipDomain{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountSipSipDomain{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -4599,28 +4597,28 @@ Fetch a specific instance of an IpAccessControlList @return ApiV2010AccountSipSipIpAccessControlList */ func (c *DefaultApiService) FetchSipIpAccessControlList(accountSid string, sid string) (*ApiV2010AccountSipSipIpAccessControlList, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountSipSipIpAccessControlList{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountSipSipIpAccessControlList{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -4632,29 +4630,29 @@ Fetch an IpAccessControlListMapping resource. @return ApiV2010AccountSipSipDomainSipIpAccessControlListMapping */ func (c *DefaultApiService) FetchSipIpAccessControlListMapping(accountSid string, domainSid string, sid string) (*ApiV2010AccountSipSipDomainSipIpAccessControlListMapping, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountSipSipDomainSipIpAccessControlListMapping{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountSipSipDomainSipIpAccessControlListMapping{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -4666,29 +4664,29 @@ Read one IpAddress resource. @return ApiV2010AccountSipSipIpAccessControlListSipIpAddress */ func (c *DefaultApiService) FetchSipIpAddress(accountSid string, ipAccessControlListSid string, sid string) (*ApiV2010AccountSipSipIpAccessControlListSipIpAddress, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"IpAccessControlListSid"+"}", ipAccessControlListSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"IpAccessControlListSid"+"}", ipAccessControlListSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountSipSipIpAccessControlListSipIpAddress{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountSipSipIpAccessControlListSipIpAddress{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -4699,28 +4697,28 @@ Fetch an instance of a Transcription @return ApiV2010AccountTranscription */ func (c *DefaultApiService) FetchTranscription(accountSid string, sid string) (*ApiV2010AccountTranscription, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Transcriptions/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Transcriptions/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountTranscription{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountTranscription{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -4731,34 +4729,34 @@ Fetch and instance of a usage-trigger @return ApiV2010AccountUsageUsageTrigger */ func (c *DefaultApiService) FetchUsageTrigger(accountSid string, sid string) (*ApiV2010AccountUsageUsageTrigger, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountUsageUsageTrigger{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountUsageUsageTrigger{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListAccountParams Optional parameters for the method 'ListAccount' type ListAccountParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - Status *string `json:"Status,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Status *string `json:"Status,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4771,42 +4769,42 @@ Retrieves a collection of Accounts belonging to the account used to make the req @return ApiV2010AccountReadResponse */ func (c *DefaultApiService) ListAccount(params *ListAccountParams) (*ApiV2010AccountReadResponse, error) { - path := "/2010-04-01/Accounts.json" + path := "/2010-04-01/Accounts.json" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListAddressParams Optional parameters for the method 'ListAddress' type ListAddressParams struct { - CustomerName *string `json:"CustomerName,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - IsoCountry *string `json:"IsoCountry,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + CustomerName *string `json:"CustomerName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IsoCountry *string `json:"IsoCountry,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4820,44 +4818,44 @@ ListAddress Method for ListAddress @return ApiV2010AccountAddressReadResponse */ func (c *DefaultApiService) ListAddress(accountSid string, params *ListAddressParams) (*ApiV2010AccountAddressReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Addresses.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Addresses.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.CustomerName != nil { - data.Set("CustomerName", *params.CustomerName) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.IsoCountry != nil { - data.Set("IsoCountry", *params.IsoCountry) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.CustomerName != nil { + data.Set("CustomerName", *params.CustomerName) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.IsoCountry != nil { + data.Set("IsoCountry", *params.IsoCountry) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountAddressReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountAddressReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListApplicationParams Optional parameters for the method 'ListApplication' type ListApplicationParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4870,37 +4868,37 @@ Retrieve a list of applications representing an application within the requestin @return ApiV2010AccountApplicationReadResponse */ func (c *DefaultApiService) ListApplication(accountSid string, params *ListApplicationParams) (*ApiV2010AccountApplicationReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Applications.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Applications.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountApplicationReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountApplicationReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListAuthorizedConnectAppParams Optional parameters for the method 'ListAuthorizedConnectApp' type ListAuthorizedConnectAppParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4912,34 +4910,34 @@ Retrieve a list of authorized-connect-apps belonging to the account used to make @return ApiV2010AccountAuthorizedConnectAppReadResponse */ func (c *DefaultApiService) ListAuthorizedConnectApp(accountSid string, params *ListAuthorizedConnectAppParams) (*ApiV2010AccountAuthorizedConnectAppReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountAuthorizedConnectAppReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountAuthorizedConnectAppReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListAvailablePhoneNumberCountryParams Optional parameters for the method 'ListAvailablePhoneNumberCountry' type ListAvailablePhoneNumberCountryParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4950,52 +4948,52 @@ ListAvailablePhoneNumberCountry Method for ListAvailablePhoneNumberCountry @return ApiV2010AccountAvailablePhoneNumberCountryReadResponse */ func (c *DefaultApiService) ListAvailablePhoneNumberCountry(accountSid string, params *ListAvailablePhoneNumberCountryParams) (*ApiV2010AccountAvailablePhoneNumberCountryReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountAvailablePhoneNumberCountryReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountAvailablePhoneNumberCountryReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListAvailablePhoneNumberLocalParams Optional parameters for the method 'ListAvailablePhoneNumberLocal' type ListAvailablePhoneNumberLocalParams struct { - AreaCode *int32 `json:"AreaCode,omitempty"` - Contains *string `json:"Contains,omitempty"` - SmsEnabled *bool `json:"SmsEnabled,omitempty"` - MmsEnabled *bool `json:"MmsEnabled,omitempty"` - VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` - ExcludeAllAddressRequired *bool `json:"ExcludeAllAddressRequired,omitempty"` - ExcludeLocalAddressRequired *bool `json:"ExcludeLocalAddressRequired,omitempty"` - ExcludeForeignAddressRequired *bool `json:"ExcludeForeignAddressRequired,omitempty"` - Beta *bool `json:"Beta,omitempty"` - NearNumber *string `json:"NearNumber,omitempty"` - NearLatLong *string `json:"NearLatLong,omitempty"` - Distance *int32 `json:"Distance,omitempty"` - InPostalCode *string `json:"InPostalCode,omitempty"` - InRegion *string `json:"InRegion,omitempty"` - InRateCenter *string `json:"InRateCenter,omitempty"` - InLata *string `json:"InLata,omitempty"` - InLocality *string `json:"InLocality,omitempty"` - FaxEnabled *bool `json:"FaxEnabled,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + AreaCode *int32 `json:"AreaCode,omitempty"` + Contains *string `json:"Contains,omitempty"` + SmsEnabled *bool `json:"SmsEnabled,omitempty"` + MmsEnabled *bool `json:"MmsEnabled,omitempty"` + VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` + ExcludeAllAddressRequired *bool `json:"ExcludeAllAddressRequired,omitempty"` + ExcludeLocalAddressRequired *bool `json:"ExcludeLocalAddressRequired,omitempty"` + ExcludeForeignAddressRequired *bool `json:"ExcludeForeignAddressRequired,omitempty"` + Beta *bool `json:"Beta,omitempty"` + NearNumber *string `json:"NearNumber,omitempty"` + NearLatLong *string `json:"NearLatLong,omitempty"` + Distance *int32 `json:"Distance,omitempty"` + InPostalCode *string `json:"InPostalCode,omitempty"` + InRegion *string `json:"InRegion,omitempty"` + InRateCenter *string `json:"InRateCenter,omitempty"` + InLata *string `json:"InLata,omitempty"` + InLocality *string `json:"InLocality,omitempty"` + FaxEnabled *bool `json:"FaxEnabled,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -5025,107 +5023,107 @@ ListAvailablePhoneNumberLocal Method for ListAvailablePhoneNumberLocal @return ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse */ func (c *DefaultApiService) ListAvailablePhoneNumberLocal(accountSid string, countryCode string, params *ListAvailablePhoneNumberLocalParams) (*ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Local.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CountryCode"+"}", countryCode, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.AreaCode != nil { - data.Set("AreaCode", string(*params.AreaCode)) - } - if params != nil && params.Contains != nil { - data.Set("Contains", *params.Contains) - } - if params != nil && params.SmsEnabled != nil { - data.Set("SmsEnabled", string(*params.SmsEnabled)) - } - if params != nil && params.MmsEnabled != nil { - data.Set("MmsEnabled", string(*params.MmsEnabled)) - } - if params != nil && params.VoiceEnabled != nil { - data.Set("VoiceEnabled", string(*params.VoiceEnabled)) - } - if params != nil && params.ExcludeAllAddressRequired != nil { - data.Set("ExcludeAllAddressRequired", string(*params.ExcludeAllAddressRequired)) - } - if params != nil && params.ExcludeLocalAddressRequired != nil { - data.Set("ExcludeLocalAddressRequired", string(*params.ExcludeLocalAddressRequired)) - } - if params != nil && params.ExcludeForeignAddressRequired != nil { - data.Set("ExcludeForeignAddressRequired", string(*params.ExcludeForeignAddressRequired)) - } - if params != nil && params.Beta != nil { - data.Set("Beta", string(*params.Beta)) - } - if params != nil && params.NearNumber != nil { - data.Set("NearNumber", *params.NearNumber) - } - if params != nil && params.NearLatLong != nil { - data.Set("NearLatLong", *params.NearLatLong) - } - if params != nil && params.Distance != nil { - data.Set("Distance", string(*params.Distance)) - } - if params != nil && params.InPostalCode != nil { - data.Set("InPostalCode", *params.InPostalCode) - } - if params != nil && params.InRegion != nil { - data.Set("InRegion", *params.InRegion) - } - if params != nil && params.InRateCenter != nil { - data.Set("InRateCenter", *params.InRateCenter) - } - if params != nil && params.InLata != nil { - data.Set("InLata", *params.InLata) - } - if params != nil && params.InLocality != nil { - data.Set("InLocality", *params.InLocality) - } - if params != nil && params.FaxEnabled != nil { - data.Set("FaxEnabled", string(*params.FaxEnabled)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Local.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CountryCode"+"}", countryCode, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AreaCode != nil { + data.Set("AreaCode", string(*params.AreaCode)) + } + if params != nil && params.Contains != nil { + data.Set("Contains", *params.Contains) + } + if params != nil && params.SmsEnabled != nil { + data.Set("SmsEnabled", string(*params.SmsEnabled)) + } + if params != nil && params.MmsEnabled != nil { + data.Set("MmsEnabled", string(*params.MmsEnabled)) + } + if params != nil && params.VoiceEnabled != nil { + data.Set("VoiceEnabled", string(*params.VoiceEnabled)) + } + if params != nil && params.ExcludeAllAddressRequired != nil { + data.Set("ExcludeAllAddressRequired", string(*params.ExcludeAllAddressRequired)) + } + if params != nil && params.ExcludeLocalAddressRequired != nil { + data.Set("ExcludeLocalAddressRequired", string(*params.ExcludeLocalAddressRequired)) + } + if params != nil && params.ExcludeForeignAddressRequired != nil { + data.Set("ExcludeForeignAddressRequired", string(*params.ExcludeForeignAddressRequired)) + } + if params != nil && params.Beta != nil { + data.Set("Beta", string(*params.Beta)) + } + if params != nil && params.NearNumber != nil { + data.Set("NearNumber", *params.NearNumber) + } + if params != nil && params.NearLatLong != nil { + data.Set("NearLatLong", *params.NearLatLong) + } + if params != nil && params.Distance != nil { + data.Set("Distance", string(*params.Distance)) + } + if params != nil && params.InPostalCode != nil { + data.Set("InPostalCode", *params.InPostalCode) + } + if params != nil && params.InRegion != nil { + data.Set("InRegion", *params.InRegion) + } + if params != nil && params.InRateCenter != nil { + data.Set("InRateCenter", *params.InRateCenter) + } + if params != nil && params.InLata != nil { + data.Set("InLata", *params.InLata) + } + if params != nil && params.InLocality != nil { + data.Set("InLocality", *params.InLocality) + } + if params != nil && params.FaxEnabled != nil { + data.Set("FaxEnabled", string(*params.FaxEnabled)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListAvailablePhoneNumberMachineToMachineParams Optional parameters for the method 'ListAvailablePhoneNumberMachineToMachine' type ListAvailablePhoneNumberMachineToMachineParams struct { - AreaCode *int32 `json:"AreaCode,omitempty"` - Contains *string `json:"Contains,omitempty"` - SmsEnabled *bool `json:"SmsEnabled,omitempty"` - MmsEnabled *bool `json:"MmsEnabled,omitempty"` - VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` - ExcludeAllAddressRequired *bool `json:"ExcludeAllAddressRequired,omitempty"` - ExcludeLocalAddressRequired *bool `json:"ExcludeLocalAddressRequired,omitempty"` - ExcludeForeignAddressRequired *bool `json:"ExcludeForeignAddressRequired,omitempty"` - Beta *bool `json:"Beta,omitempty"` - NearNumber *string `json:"NearNumber,omitempty"` - NearLatLong *string `json:"NearLatLong,omitempty"` - Distance *int32 `json:"Distance,omitempty"` - InPostalCode *string `json:"InPostalCode,omitempty"` - InRegion *string `json:"InRegion,omitempty"` - InRateCenter *string `json:"InRateCenter,omitempty"` - InLata *string `json:"InLata,omitempty"` - InLocality *string `json:"InLocality,omitempty"` - FaxEnabled *bool `json:"FaxEnabled,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + AreaCode *int32 `json:"AreaCode,omitempty"` + Contains *string `json:"Contains,omitempty"` + SmsEnabled *bool `json:"SmsEnabled,omitempty"` + MmsEnabled *bool `json:"MmsEnabled,omitempty"` + VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` + ExcludeAllAddressRequired *bool `json:"ExcludeAllAddressRequired,omitempty"` + ExcludeLocalAddressRequired *bool `json:"ExcludeLocalAddressRequired,omitempty"` + ExcludeForeignAddressRequired *bool `json:"ExcludeForeignAddressRequired,omitempty"` + Beta *bool `json:"Beta,omitempty"` + NearNumber *string `json:"NearNumber,omitempty"` + NearLatLong *string `json:"NearLatLong,omitempty"` + Distance *int32 `json:"Distance,omitempty"` + InPostalCode *string `json:"InPostalCode,omitempty"` + InRegion *string `json:"InRegion,omitempty"` + InRateCenter *string `json:"InRateCenter,omitempty"` + InLata *string `json:"InLata,omitempty"` + InLocality *string `json:"InLocality,omitempty"` + FaxEnabled *bool `json:"FaxEnabled,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -5155,107 +5153,107 @@ ListAvailablePhoneNumberMachineToMachine Method for ListAvailablePhoneNumberMach @return ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse */ func (c *DefaultApiService) ListAvailablePhoneNumberMachineToMachine(accountSid string, countryCode string, params *ListAvailablePhoneNumberMachineToMachineParams) (*ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/MachineToMachine.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CountryCode"+"}", countryCode, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.AreaCode != nil { - data.Set("AreaCode", string(*params.AreaCode)) - } - if params != nil && params.Contains != nil { - data.Set("Contains", *params.Contains) - } - if params != nil && params.SmsEnabled != nil { - data.Set("SmsEnabled", string(*params.SmsEnabled)) - } - if params != nil && params.MmsEnabled != nil { - data.Set("MmsEnabled", string(*params.MmsEnabled)) - } - if params != nil && params.VoiceEnabled != nil { - data.Set("VoiceEnabled", string(*params.VoiceEnabled)) - } - if params != nil && params.ExcludeAllAddressRequired != nil { - data.Set("ExcludeAllAddressRequired", string(*params.ExcludeAllAddressRequired)) - } - if params != nil && params.ExcludeLocalAddressRequired != nil { - data.Set("ExcludeLocalAddressRequired", string(*params.ExcludeLocalAddressRequired)) - } - if params != nil && params.ExcludeForeignAddressRequired != nil { - data.Set("ExcludeForeignAddressRequired", string(*params.ExcludeForeignAddressRequired)) - } - if params != nil && params.Beta != nil { - data.Set("Beta", string(*params.Beta)) - } - if params != nil && params.NearNumber != nil { - data.Set("NearNumber", *params.NearNumber) - } - if params != nil && params.NearLatLong != nil { - data.Set("NearLatLong", *params.NearLatLong) - } - if params != nil && params.Distance != nil { - data.Set("Distance", string(*params.Distance)) - } - if params != nil && params.InPostalCode != nil { - data.Set("InPostalCode", *params.InPostalCode) - } - if params != nil && params.InRegion != nil { - data.Set("InRegion", *params.InRegion) - } - if params != nil && params.InRateCenter != nil { - data.Set("InRateCenter", *params.InRateCenter) - } - if params != nil && params.InLata != nil { - data.Set("InLata", *params.InLata) - } - if params != nil && params.InLocality != nil { - data.Set("InLocality", *params.InLocality) - } - if params != nil && params.FaxEnabled != nil { - data.Set("FaxEnabled", string(*params.FaxEnabled)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/MachineToMachine.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CountryCode"+"}", countryCode, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AreaCode != nil { + data.Set("AreaCode", string(*params.AreaCode)) + } + if params != nil && params.Contains != nil { + data.Set("Contains", *params.Contains) + } + if params != nil && params.SmsEnabled != nil { + data.Set("SmsEnabled", string(*params.SmsEnabled)) + } + if params != nil && params.MmsEnabled != nil { + data.Set("MmsEnabled", string(*params.MmsEnabled)) + } + if params != nil && params.VoiceEnabled != nil { + data.Set("VoiceEnabled", string(*params.VoiceEnabled)) + } + if params != nil && params.ExcludeAllAddressRequired != nil { + data.Set("ExcludeAllAddressRequired", string(*params.ExcludeAllAddressRequired)) + } + if params != nil && params.ExcludeLocalAddressRequired != nil { + data.Set("ExcludeLocalAddressRequired", string(*params.ExcludeLocalAddressRequired)) + } + if params != nil && params.ExcludeForeignAddressRequired != nil { + data.Set("ExcludeForeignAddressRequired", string(*params.ExcludeForeignAddressRequired)) + } + if params != nil && params.Beta != nil { + data.Set("Beta", string(*params.Beta)) + } + if params != nil && params.NearNumber != nil { + data.Set("NearNumber", *params.NearNumber) + } + if params != nil && params.NearLatLong != nil { + data.Set("NearLatLong", *params.NearLatLong) + } + if params != nil && params.Distance != nil { + data.Set("Distance", string(*params.Distance)) + } + if params != nil && params.InPostalCode != nil { + data.Set("InPostalCode", *params.InPostalCode) + } + if params != nil && params.InRegion != nil { + data.Set("InRegion", *params.InRegion) + } + if params != nil && params.InRateCenter != nil { + data.Set("InRateCenter", *params.InRateCenter) + } + if params != nil && params.InLata != nil { + data.Set("InLata", *params.InLata) + } + if params != nil && params.InLocality != nil { + data.Set("InLocality", *params.InLocality) + } + if params != nil && params.FaxEnabled != nil { + data.Set("FaxEnabled", string(*params.FaxEnabled)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListAvailablePhoneNumberMobileParams Optional parameters for the method 'ListAvailablePhoneNumberMobile' type ListAvailablePhoneNumberMobileParams struct { - AreaCode *int32 `json:"AreaCode,omitempty"` - Contains *string `json:"Contains,omitempty"` - SmsEnabled *bool `json:"SmsEnabled,omitempty"` - MmsEnabled *bool `json:"MmsEnabled,omitempty"` - VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` - ExcludeAllAddressRequired *bool `json:"ExcludeAllAddressRequired,omitempty"` - ExcludeLocalAddressRequired *bool `json:"ExcludeLocalAddressRequired,omitempty"` - ExcludeForeignAddressRequired *bool `json:"ExcludeForeignAddressRequired,omitempty"` - Beta *bool `json:"Beta,omitempty"` - NearNumber *string `json:"NearNumber,omitempty"` - NearLatLong *string `json:"NearLatLong,omitempty"` - Distance *int32 `json:"Distance,omitempty"` - InPostalCode *string `json:"InPostalCode,omitempty"` - InRegion *string `json:"InRegion,omitempty"` - InRateCenter *string `json:"InRateCenter,omitempty"` - InLata *string `json:"InLata,omitempty"` - InLocality *string `json:"InLocality,omitempty"` - FaxEnabled *bool `json:"FaxEnabled,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + AreaCode *int32 `json:"AreaCode,omitempty"` + Contains *string `json:"Contains,omitempty"` + SmsEnabled *bool `json:"SmsEnabled,omitempty"` + MmsEnabled *bool `json:"MmsEnabled,omitempty"` + VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` + ExcludeAllAddressRequired *bool `json:"ExcludeAllAddressRequired,omitempty"` + ExcludeLocalAddressRequired *bool `json:"ExcludeLocalAddressRequired,omitempty"` + ExcludeForeignAddressRequired *bool `json:"ExcludeForeignAddressRequired,omitempty"` + Beta *bool `json:"Beta,omitempty"` + NearNumber *string `json:"NearNumber,omitempty"` + NearLatLong *string `json:"NearLatLong,omitempty"` + Distance *int32 `json:"Distance,omitempty"` + InPostalCode *string `json:"InPostalCode,omitempty"` + InRegion *string `json:"InRegion,omitempty"` + InRateCenter *string `json:"InRateCenter,omitempty"` + InLata *string `json:"InLata,omitempty"` + InLocality *string `json:"InLocality,omitempty"` + FaxEnabled *bool `json:"FaxEnabled,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -5285,107 +5283,107 @@ ListAvailablePhoneNumberMobile Method for ListAvailablePhoneNumberMobile @return ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse */ func (c *DefaultApiService) ListAvailablePhoneNumberMobile(accountSid string, countryCode string, params *ListAvailablePhoneNumberMobileParams) (*ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Mobile.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CountryCode"+"}", countryCode, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.AreaCode != nil { - data.Set("AreaCode", string(*params.AreaCode)) - } - if params != nil && params.Contains != nil { - data.Set("Contains", *params.Contains) - } - if params != nil && params.SmsEnabled != nil { - data.Set("SmsEnabled", string(*params.SmsEnabled)) - } - if params != nil && params.MmsEnabled != nil { - data.Set("MmsEnabled", string(*params.MmsEnabled)) - } - if params != nil && params.VoiceEnabled != nil { - data.Set("VoiceEnabled", string(*params.VoiceEnabled)) - } - if params != nil && params.ExcludeAllAddressRequired != nil { - data.Set("ExcludeAllAddressRequired", string(*params.ExcludeAllAddressRequired)) - } - if params != nil && params.ExcludeLocalAddressRequired != nil { - data.Set("ExcludeLocalAddressRequired", string(*params.ExcludeLocalAddressRequired)) - } - if params != nil && params.ExcludeForeignAddressRequired != nil { - data.Set("ExcludeForeignAddressRequired", string(*params.ExcludeForeignAddressRequired)) - } - if params != nil && params.Beta != nil { - data.Set("Beta", string(*params.Beta)) - } - if params != nil && params.NearNumber != nil { - data.Set("NearNumber", *params.NearNumber) - } - if params != nil && params.NearLatLong != nil { - data.Set("NearLatLong", *params.NearLatLong) - } - if params != nil && params.Distance != nil { - data.Set("Distance", string(*params.Distance)) - } - if params != nil && params.InPostalCode != nil { - data.Set("InPostalCode", *params.InPostalCode) - } - if params != nil && params.InRegion != nil { - data.Set("InRegion", *params.InRegion) - } - if params != nil && params.InRateCenter != nil { - data.Set("InRateCenter", *params.InRateCenter) - } - if params != nil && params.InLata != nil { - data.Set("InLata", *params.InLata) - } - if params != nil && params.InLocality != nil { - data.Set("InLocality", *params.InLocality) - } - if params != nil && params.FaxEnabled != nil { - data.Set("FaxEnabled", string(*params.FaxEnabled)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Mobile.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CountryCode"+"}", countryCode, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AreaCode != nil { + data.Set("AreaCode", string(*params.AreaCode)) + } + if params != nil && params.Contains != nil { + data.Set("Contains", *params.Contains) + } + if params != nil && params.SmsEnabled != nil { + data.Set("SmsEnabled", string(*params.SmsEnabled)) + } + if params != nil && params.MmsEnabled != nil { + data.Set("MmsEnabled", string(*params.MmsEnabled)) + } + if params != nil && params.VoiceEnabled != nil { + data.Set("VoiceEnabled", string(*params.VoiceEnabled)) + } + if params != nil && params.ExcludeAllAddressRequired != nil { + data.Set("ExcludeAllAddressRequired", string(*params.ExcludeAllAddressRequired)) + } + if params != nil && params.ExcludeLocalAddressRequired != nil { + data.Set("ExcludeLocalAddressRequired", string(*params.ExcludeLocalAddressRequired)) + } + if params != nil && params.ExcludeForeignAddressRequired != nil { + data.Set("ExcludeForeignAddressRequired", string(*params.ExcludeForeignAddressRequired)) + } + if params != nil && params.Beta != nil { + data.Set("Beta", string(*params.Beta)) + } + if params != nil && params.NearNumber != nil { + data.Set("NearNumber", *params.NearNumber) + } + if params != nil && params.NearLatLong != nil { + data.Set("NearLatLong", *params.NearLatLong) + } + if params != nil && params.Distance != nil { + data.Set("Distance", string(*params.Distance)) + } + if params != nil && params.InPostalCode != nil { + data.Set("InPostalCode", *params.InPostalCode) + } + if params != nil && params.InRegion != nil { + data.Set("InRegion", *params.InRegion) + } + if params != nil && params.InRateCenter != nil { + data.Set("InRateCenter", *params.InRateCenter) + } + if params != nil && params.InLata != nil { + data.Set("InLata", *params.InLata) + } + if params != nil && params.InLocality != nil { + data.Set("InLocality", *params.InLocality) + } + if params != nil && params.FaxEnabled != nil { + data.Set("FaxEnabled", string(*params.FaxEnabled)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListAvailablePhoneNumberNationalParams Optional parameters for the method 'ListAvailablePhoneNumberNational' type ListAvailablePhoneNumberNationalParams struct { - AreaCode *int32 `json:"AreaCode,omitempty"` - Contains *string `json:"Contains,omitempty"` - SmsEnabled *bool `json:"SmsEnabled,omitempty"` - MmsEnabled *bool `json:"MmsEnabled,omitempty"` - VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` - ExcludeAllAddressRequired *bool `json:"ExcludeAllAddressRequired,omitempty"` - ExcludeLocalAddressRequired *bool `json:"ExcludeLocalAddressRequired,omitempty"` - ExcludeForeignAddressRequired *bool `json:"ExcludeForeignAddressRequired,omitempty"` - Beta *bool `json:"Beta,omitempty"` - NearNumber *string `json:"NearNumber,omitempty"` - NearLatLong *string `json:"NearLatLong,omitempty"` - Distance *int32 `json:"Distance,omitempty"` - InPostalCode *string `json:"InPostalCode,omitempty"` - InRegion *string `json:"InRegion,omitempty"` - InRateCenter *string `json:"InRateCenter,omitempty"` - InLata *string `json:"InLata,omitempty"` - InLocality *string `json:"InLocality,omitempty"` - FaxEnabled *bool `json:"FaxEnabled,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + AreaCode *int32 `json:"AreaCode,omitempty"` + Contains *string `json:"Contains,omitempty"` + SmsEnabled *bool `json:"SmsEnabled,omitempty"` + MmsEnabled *bool `json:"MmsEnabled,omitempty"` + VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` + ExcludeAllAddressRequired *bool `json:"ExcludeAllAddressRequired,omitempty"` + ExcludeLocalAddressRequired *bool `json:"ExcludeLocalAddressRequired,omitempty"` + ExcludeForeignAddressRequired *bool `json:"ExcludeForeignAddressRequired,omitempty"` + Beta *bool `json:"Beta,omitempty"` + NearNumber *string `json:"NearNumber,omitempty"` + NearLatLong *string `json:"NearLatLong,omitempty"` + Distance *int32 `json:"Distance,omitempty"` + InPostalCode *string `json:"InPostalCode,omitempty"` + InRegion *string `json:"InRegion,omitempty"` + InRateCenter *string `json:"InRateCenter,omitempty"` + InLata *string `json:"InLata,omitempty"` + InLocality *string `json:"InLocality,omitempty"` + FaxEnabled *bool `json:"FaxEnabled,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -5415,107 +5413,107 @@ ListAvailablePhoneNumberNational Method for ListAvailablePhoneNumberNational @return ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse */ func (c *DefaultApiService) ListAvailablePhoneNumberNational(accountSid string, countryCode string, params *ListAvailablePhoneNumberNationalParams) (*ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/National.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CountryCode"+"}", countryCode, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.AreaCode != nil { - data.Set("AreaCode", string(*params.AreaCode)) - } - if params != nil && params.Contains != nil { - data.Set("Contains", *params.Contains) - } - if params != nil && params.SmsEnabled != nil { - data.Set("SmsEnabled", string(*params.SmsEnabled)) - } - if params != nil && params.MmsEnabled != nil { - data.Set("MmsEnabled", string(*params.MmsEnabled)) - } - if params != nil && params.VoiceEnabled != nil { - data.Set("VoiceEnabled", string(*params.VoiceEnabled)) - } - if params != nil && params.ExcludeAllAddressRequired != nil { - data.Set("ExcludeAllAddressRequired", string(*params.ExcludeAllAddressRequired)) - } - if params != nil && params.ExcludeLocalAddressRequired != nil { - data.Set("ExcludeLocalAddressRequired", string(*params.ExcludeLocalAddressRequired)) - } - if params != nil && params.ExcludeForeignAddressRequired != nil { - data.Set("ExcludeForeignAddressRequired", string(*params.ExcludeForeignAddressRequired)) - } - if params != nil && params.Beta != nil { - data.Set("Beta", string(*params.Beta)) - } - if params != nil && params.NearNumber != nil { - data.Set("NearNumber", *params.NearNumber) - } - if params != nil && params.NearLatLong != nil { - data.Set("NearLatLong", *params.NearLatLong) - } - if params != nil && params.Distance != nil { - data.Set("Distance", string(*params.Distance)) - } - if params != nil && params.InPostalCode != nil { - data.Set("InPostalCode", *params.InPostalCode) - } - if params != nil && params.InRegion != nil { - data.Set("InRegion", *params.InRegion) - } - if params != nil && params.InRateCenter != nil { - data.Set("InRateCenter", *params.InRateCenter) - } - if params != nil && params.InLata != nil { - data.Set("InLata", *params.InLata) - } - if params != nil && params.InLocality != nil { - data.Set("InLocality", *params.InLocality) - } - if params != nil && params.FaxEnabled != nil { - data.Set("FaxEnabled", string(*params.FaxEnabled)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/National.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CountryCode"+"}", countryCode, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AreaCode != nil { + data.Set("AreaCode", string(*params.AreaCode)) + } + if params != nil && params.Contains != nil { + data.Set("Contains", *params.Contains) + } + if params != nil && params.SmsEnabled != nil { + data.Set("SmsEnabled", string(*params.SmsEnabled)) + } + if params != nil && params.MmsEnabled != nil { + data.Set("MmsEnabled", string(*params.MmsEnabled)) + } + if params != nil && params.VoiceEnabled != nil { + data.Set("VoiceEnabled", string(*params.VoiceEnabled)) + } + if params != nil && params.ExcludeAllAddressRequired != nil { + data.Set("ExcludeAllAddressRequired", string(*params.ExcludeAllAddressRequired)) + } + if params != nil && params.ExcludeLocalAddressRequired != nil { + data.Set("ExcludeLocalAddressRequired", string(*params.ExcludeLocalAddressRequired)) + } + if params != nil && params.ExcludeForeignAddressRequired != nil { + data.Set("ExcludeForeignAddressRequired", string(*params.ExcludeForeignAddressRequired)) + } + if params != nil && params.Beta != nil { + data.Set("Beta", string(*params.Beta)) + } + if params != nil && params.NearNumber != nil { + data.Set("NearNumber", *params.NearNumber) + } + if params != nil && params.NearLatLong != nil { + data.Set("NearLatLong", *params.NearLatLong) + } + if params != nil && params.Distance != nil { + data.Set("Distance", string(*params.Distance)) + } + if params != nil && params.InPostalCode != nil { + data.Set("InPostalCode", *params.InPostalCode) + } + if params != nil && params.InRegion != nil { + data.Set("InRegion", *params.InRegion) + } + if params != nil && params.InRateCenter != nil { + data.Set("InRateCenter", *params.InRateCenter) + } + if params != nil && params.InLata != nil { + data.Set("InLata", *params.InLata) + } + if params != nil && params.InLocality != nil { + data.Set("InLocality", *params.InLocality) + } + if params != nil && params.FaxEnabled != nil { + data.Set("FaxEnabled", string(*params.FaxEnabled)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListAvailablePhoneNumberSharedCostParams Optional parameters for the method 'ListAvailablePhoneNumberSharedCost' type ListAvailablePhoneNumberSharedCostParams struct { - AreaCode *int32 `json:"AreaCode,omitempty"` - Contains *string `json:"Contains,omitempty"` - SmsEnabled *bool `json:"SmsEnabled,omitempty"` - MmsEnabled *bool `json:"MmsEnabled,omitempty"` - VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` - ExcludeAllAddressRequired *bool `json:"ExcludeAllAddressRequired,omitempty"` - ExcludeLocalAddressRequired *bool `json:"ExcludeLocalAddressRequired,omitempty"` - ExcludeForeignAddressRequired *bool `json:"ExcludeForeignAddressRequired,omitempty"` - Beta *bool `json:"Beta,omitempty"` - NearNumber *string `json:"NearNumber,omitempty"` - NearLatLong *string `json:"NearLatLong,omitempty"` - Distance *int32 `json:"Distance,omitempty"` - InPostalCode *string `json:"InPostalCode,omitempty"` - InRegion *string `json:"InRegion,omitempty"` - InRateCenter *string `json:"InRateCenter,omitempty"` - InLata *string `json:"InLata,omitempty"` - InLocality *string `json:"InLocality,omitempty"` - FaxEnabled *bool `json:"FaxEnabled,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + AreaCode *int32 `json:"AreaCode,omitempty"` + Contains *string `json:"Contains,omitempty"` + SmsEnabled *bool `json:"SmsEnabled,omitempty"` + MmsEnabled *bool `json:"MmsEnabled,omitempty"` + VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` + ExcludeAllAddressRequired *bool `json:"ExcludeAllAddressRequired,omitempty"` + ExcludeLocalAddressRequired *bool `json:"ExcludeLocalAddressRequired,omitempty"` + ExcludeForeignAddressRequired *bool `json:"ExcludeForeignAddressRequired,omitempty"` + Beta *bool `json:"Beta,omitempty"` + NearNumber *string `json:"NearNumber,omitempty"` + NearLatLong *string `json:"NearLatLong,omitempty"` + Distance *int32 `json:"Distance,omitempty"` + InPostalCode *string `json:"InPostalCode,omitempty"` + InRegion *string `json:"InRegion,omitempty"` + InRateCenter *string `json:"InRateCenter,omitempty"` + InLata *string `json:"InLata,omitempty"` + InLocality *string `json:"InLocality,omitempty"` + FaxEnabled *bool `json:"FaxEnabled,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -5545,107 +5543,107 @@ ListAvailablePhoneNumberSharedCost Method for ListAvailablePhoneNumberSharedCost @return ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse */ func (c *DefaultApiService) ListAvailablePhoneNumberSharedCost(accountSid string, countryCode string, params *ListAvailablePhoneNumberSharedCostParams) (*ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/SharedCost.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CountryCode"+"}", countryCode, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.AreaCode != nil { - data.Set("AreaCode", string(*params.AreaCode)) - } - if params != nil && params.Contains != nil { - data.Set("Contains", *params.Contains) - } - if params != nil && params.SmsEnabled != nil { - data.Set("SmsEnabled", string(*params.SmsEnabled)) - } - if params != nil && params.MmsEnabled != nil { - data.Set("MmsEnabled", string(*params.MmsEnabled)) - } - if params != nil && params.VoiceEnabled != nil { - data.Set("VoiceEnabled", string(*params.VoiceEnabled)) - } - if params != nil && params.ExcludeAllAddressRequired != nil { - data.Set("ExcludeAllAddressRequired", string(*params.ExcludeAllAddressRequired)) - } - if params != nil && params.ExcludeLocalAddressRequired != nil { - data.Set("ExcludeLocalAddressRequired", string(*params.ExcludeLocalAddressRequired)) - } - if params != nil && params.ExcludeForeignAddressRequired != nil { - data.Set("ExcludeForeignAddressRequired", string(*params.ExcludeForeignAddressRequired)) - } - if params != nil && params.Beta != nil { - data.Set("Beta", string(*params.Beta)) - } - if params != nil && params.NearNumber != nil { - data.Set("NearNumber", *params.NearNumber) - } - if params != nil && params.NearLatLong != nil { - data.Set("NearLatLong", *params.NearLatLong) - } - if params != nil && params.Distance != nil { - data.Set("Distance", string(*params.Distance)) - } - if params != nil && params.InPostalCode != nil { - data.Set("InPostalCode", *params.InPostalCode) - } - if params != nil && params.InRegion != nil { - data.Set("InRegion", *params.InRegion) - } - if params != nil && params.InRateCenter != nil { - data.Set("InRateCenter", *params.InRateCenter) - } - if params != nil && params.InLata != nil { - data.Set("InLata", *params.InLata) - } - if params != nil && params.InLocality != nil { - data.Set("InLocality", *params.InLocality) - } - if params != nil && params.FaxEnabled != nil { - data.Set("FaxEnabled", string(*params.FaxEnabled)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/SharedCost.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CountryCode"+"}", countryCode, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AreaCode != nil { + data.Set("AreaCode", string(*params.AreaCode)) + } + if params != nil && params.Contains != nil { + data.Set("Contains", *params.Contains) + } + if params != nil && params.SmsEnabled != nil { + data.Set("SmsEnabled", string(*params.SmsEnabled)) + } + if params != nil && params.MmsEnabled != nil { + data.Set("MmsEnabled", string(*params.MmsEnabled)) + } + if params != nil && params.VoiceEnabled != nil { + data.Set("VoiceEnabled", string(*params.VoiceEnabled)) + } + if params != nil && params.ExcludeAllAddressRequired != nil { + data.Set("ExcludeAllAddressRequired", string(*params.ExcludeAllAddressRequired)) + } + if params != nil && params.ExcludeLocalAddressRequired != nil { + data.Set("ExcludeLocalAddressRequired", string(*params.ExcludeLocalAddressRequired)) + } + if params != nil && params.ExcludeForeignAddressRequired != nil { + data.Set("ExcludeForeignAddressRequired", string(*params.ExcludeForeignAddressRequired)) + } + if params != nil && params.Beta != nil { + data.Set("Beta", string(*params.Beta)) + } + if params != nil && params.NearNumber != nil { + data.Set("NearNumber", *params.NearNumber) + } + if params != nil && params.NearLatLong != nil { + data.Set("NearLatLong", *params.NearLatLong) + } + if params != nil && params.Distance != nil { + data.Set("Distance", string(*params.Distance)) + } + if params != nil && params.InPostalCode != nil { + data.Set("InPostalCode", *params.InPostalCode) + } + if params != nil && params.InRegion != nil { + data.Set("InRegion", *params.InRegion) + } + if params != nil && params.InRateCenter != nil { + data.Set("InRateCenter", *params.InRateCenter) + } + if params != nil && params.InLata != nil { + data.Set("InLata", *params.InLata) + } + if params != nil && params.InLocality != nil { + data.Set("InLocality", *params.InLocality) + } + if params != nil && params.FaxEnabled != nil { + data.Set("FaxEnabled", string(*params.FaxEnabled)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListAvailablePhoneNumberTollFreeParams Optional parameters for the method 'ListAvailablePhoneNumberTollFree' type ListAvailablePhoneNumberTollFreeParams struct { - AreaCode *int32 `json:"AreaCode,omitempty"` - Contains *string `json:"Contains,omitempty"` - SmsEnabled *bool `json:"SmsEnabled,omitempty"` - MmsEnabled *bool `json:"MmsEnabled,omitempty"` - VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` - ExcludeAllAddressRequired *bool `json:"ExcludeAllAddressRequired,omitempty"` - ExcludeLocalAddressRequired *bool `json:"ExcludeLocalAddressRequired,omitempty"` - ExcludeForeignAddressRequired *bool `json:"ExcludeForeignAddressRequired,omitempty"` - Beta *bool `json:"Beta,omitempty"` - NearNumber *string `json:"NearNumber,omitempty"` - NearLatLong *string `json:"NearLatLong,omitempty"` - Distance *int32 `json:"Distance,omitempty"` - InPostalCode *string `json:"InPostalCode,omitempty"` - InRegion *string `json:"InRegion,omitempty"` - InRateCenter *string `json:"InRateCenter,omitempty"` - InLata *string `json:"InLata,omitempty"` - InLocality *string `json:"InLocality,omitempty"` - FaxEnabled *bool `json:"FaxEnabled,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + AreaCode *int32 `json:"AreaCode,omitempty"` + Contains *string `json:"Contains,omitempty"` + SmsEnabled *bool `json:"SmsEnabled,omitempty"` + MmsEnabled *bool `json:"MmsEnabled,omitempty"` + VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` + ExcludeAllAddressRequired *bool `json:"ExcludeAllAddressRequired,omitempty"` + ExcludeLocalAddressRequired *bool `json:"ExcludeLocalAddressRequired,omitempty"` + ExcludeForeignAddressRequired *bool `json:"ExcludeForeignAddressRequired,omitempty"` + Beta *bool `json:"Beta,omitempty"` + NearNumber *string `json:"NearNumber,omitempty"` + NearLatLong *string `json:"NearLatLong,omitempty"` + Distance *int32 `json:"Distance,omitempty"` + InPostalCode *string `json:"InPostalCode,omitempty"` + InRegion *string `json:"InRegion,omitempty"` + InRateCenter *string `json:"InRateCenter,omitempty"` + InLata *string `json:"InLata,omitempty"` + InLocality *string `json:"InLocality,omitempty"` + FaxEnabled *bool `json:"FaxEnabled,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -5675,107 +5673,107 @@ ListAvailablePhoneNumberTollFree Method for ListAvailablePhoneNumberTollFree @return ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse */ func (c *DefaultApiService) ListAvailablePhoneNumberTollFree(accountSid string, countryCode string, params *ListAvailablePhoneNumberTollFreeParams) (*ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/TollFree.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CountryCode"+"}", countryCode, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.AreaCode != nil { - data.Set("AreaCode", string(*params.AreaCode)) - } - if params != nil && params.Contains != nil { - data.Set("Contains", *params.Contains) - } - if params != nil && params.SmsEnabled != nil { - data.Set("SmsEnabled", string(*params.SmsEnabled)) - } - if params != nil && params.MmsEnabled != nil { - data.Set("MmsEnabled", string(*params.MmsEnabled)) - } - if params != nil && params.VoiceEnabled != nil { - data.Set("VoiceEnabled", string(*params.VoiceEnabled)) - } - if params != nil && params.ExcludeAllAddressRequired != nil { - data.Set("ExcludeAllAddressRequired", string(*params.ExcludeAllAddressRequired)) - } - if params != nil && params.ExcludeLocalAddressRequired != nil { - data.Set("ExcludeLocalAddressRequired", string(*params.ExcludeLocalAddressRequired)) - } - if params != nil && params.ExcludeForeignAddressRequired != nil { - data.Set("ExcludeForeignAddressRequired", string(*params.ExcludeForeignAddressRequired)) - } - if params != nil && params.Beta != nil { - data.Set("Beta", string(*params.Beta)) - } - if params != nil && params.NearNumber != nil { - data.Set("NearNumber", *params.NearNumber) - } - if params != nil && params.NearLatLong != nil { - data.Set("NearLatLong", *params.NearLatLong) - } - if params != nil && params.Distance != nil { - data.Set("Distance", string(*params.Distance)) - } - if params != nil && params.InPostalCode != nil { - data.Set("InPostalCode", *params.InPostalCode) - } - if params != nil && params.InRegion != nil { - data.Set("InRegion", *params.InRegion) - } - if params != nil && params.InRateCenter != nil { - data.Set("InRateCenter", *params.InRateCenter) - } - if params != nil && params.InLata != nil { - data.Set("InLata", *params.InLata) - } - if params != nil && params.InLocality != nil { - data.Set("InLocality", *params.InLocality) - } - if params != nil && params.FaxEnabled != nil { - data.Set("FaxEnabled", string(*params.FaxEnabled)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/TollFree.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CountryCode"+"}", countryCode, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AreaCode != nil { + data.Set("AreaCode", string(*params.AreaCode)) + } + if params != nil && params.Contains != nil { + data.Set("Contains", *params.Contains) + } + if params != nil && params.SmsEnabled != nil { + data.Set("SmsEnabled", string(*params.SmsEnabled)) + } + if params != nil && params.MmsEnabled != nil { + data.Set("MmsEnabled", string(*params.MmsEnabled)) + } + if params != nil && params.VoiceEnabled != nil { + data.Set("VoiceEnabled", string(*params.VoiceEnabled)) + } + if params != nil && params.ExcludeAllAddressRequired != nil { + data.Set("ExcludeAllAddressRequired", string(*params.ExcludeAllAddressRequired)) + } + if params != nil && params.ExcludeLocalAddressRequired != nil { + data.Set("ExcludeLocalAddressRequired", string(*params.ExcludeLocalAddressRequired)) + } + if params != nil && params.ExcludeForeignAddressRequired != nil { + data.Set("ExcludeForeignAddressRequired", string(*params.ExcludeForeignAddressRequired)) + } + if params != nil && params.Beta != nil { + data.Set("Beta", string(*params.Beta)) + } + if params != nil && params.NearNumber != nil { + data.Set("NearNumber", *params.NearNumber) + } + if params != nil && params.NearLatLong != nil { + data.Set("NearLatLong", *params.NearLatLong) + } + if params != nil && params.Distance != nil { + data.Set("Distance", string(*params.Distance)) + } + if params != nil && params.InPostalCode != nil { + data.Set("InPostalCode", *params.InPostalCode) + } + if params != nil && params.InRegion != nil { + data.Set("InRegion", *params.InRegion) + } + if params != nil && params.InRateCenter != nil { + data.Set("InRateCenter", *params.InRateCenter) + } + if params != nil && params.InLata != nil { + data.Set("InLata", *params.InLata) + } + if params != nil && params.InLocality != nil { + data.Set("InLocality", *params.InLocality) + } + if params != nil && params.FaxEnabled != nil { + data.Set("FaxEnabled", string(*params.FaxEnabled)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListAvailablePhoneNumberVoipParams Optional parameters for the method 'ListAvailablePhoneNumberVoip' type ListAvailablePhoneNumberVoipParams struct { - AreaCode *int32 `json:"AreaCode,omitempty"` - Contains *string `json:"Contains,omitempty"` - SmsEnabled *bool `json:"SmsEnabled,omitempty"` - MmsEnabled *bool `json:"MmsEnabled,omitempty"` - VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` - ExcludeAllAddressRequired *bool `json:"ExcludeAllAddressRequired,omitempty"` - ExcludeLocalAddressRequired *bool `json:"ExcludeLocalAddressRequired,omitempty"` - ExcludeForeignAddressRequired *bool `json:"ExcludeForeignAddressRequired,omitempty"` - Beta *bool `json:"Beta,omitempty"` - NearNumber *string `json:"NearNumber,omitempty"` - NearLatLong *string `json:"NearLatLong,omitempty"` - Distance *int32 `json:"Distance,omitempty"` - InPostalCode *string `json:"InPostalCode,omitempty"` - InRegion *string `json:"InRegion,omitempty"` - InRateCenter *string `json:"InRateCenter,omitempty"` - InLata *string `json:"InLata,omitempty"` - InLocality *string `json:"InLocality,omitempty"` - FaxEnabled *bool `json:"FaxEnabled,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + AreaCode *int32 `json:"AreaCode,omitempty"` + Contains *string `json:"Contains,omitempty"` + SmsEnabled *bool `json:"SmsEnabled,omitempty"` + MmsEnabled *bool `json:"MmsEnabled,omitempty"` + VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` + ExcludeAllAddressRequired *bool `json:"ExcludeAllAddressRequired,omitempty"` + ExcludeLocalAddressRequired *bool `json:"ExcludeLocalAddressRequired,omitempty"` + ExcludeForeignAddressRequired *bool `json:"ExcludeForeignAddressRequired,omitempty"` + Beta *bool `json:"Beta,omitempty"` + NearNumber *string `json:"NearNumber,omitempty"` + NearLatLong *string `json:"NearLatLong,omitempty"` + Distance *int32 `json:"Distance,omitempty"` + InPostalCode *string `json:"InPostalCode,omitempty"` + InRegion *string `json:"InRegion,omitempty"` + InRateCenter *string `json:"InRateCenter,omitempty"` + InLata *string `json:"InLata,omitempty"` + InLocality *string `json:"InLocality,omitempty"` + FaxEnabled *bool `json:"FaxEnabled,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -5805,99 +5803,99 @@ ListAvailablePhoneNumberVoip Method for ListAvailablePhoneNumberVoip @return ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse */ func (c *DefaultApiService) ListAvailablePhoneNumberVoip(accountSid string, countryCode string, params *ListAvailablePhoneNumberVoipParams) (*ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Voip.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CountryCode"+"}", countryCode, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.AreaCode != nil { - data.Set("AreaCode", string(*params.AreaCode)) - } - if params != nil && params.Contains != nil { - data.Set("Contains", *params.Contains) - } - if params != nil && params.SmsEnabled != nil { - data.Set("SmsEnabled", string(*params.SmsEnabled)) - } - if params != nil && params.MmsEnabled != nil { - data.Set("MmsEnabled", string(*params.MmsEnabled)) - } - if params != nil && params.VoiceEnabled != nil { - data.Set("VoiceEnabled", string(*params.VoiceEnabled)) - } - if params != nil && params.ExcludeAllAddressRequired != nil { - data.Set("ExcludeAllAddressRequired", string(*params.ExcludeAllAddressRequired)) - } - if params != nil && params.ExcludeLocalAddressRequired != nil { - data.Set("ExcludeLocalAddressRequired", string(*params.ExcludeLocalAddressRequired)) - } - if params != nil && params.ExcludeForeignAddressRequired != nil { - data.Set("ExcludeForeignAddressRequired", string(*params.ExcludeForeignAddressRequired)) - } - if params != nil && params.Beta != nil { - data.Set("Beta", string(*params.Beta)) - } - if params != nil && params.NearNumber != nil { - data.Set("NearNumber", *params.NearNumber) - } - if params != nil && params.NearLatLong != nil { - data.Set("NearLatLong", *params.NearLatLong) - } - if params != nil && params.Distance != nil { - data.Set("Distance", string(*params.Distance)) - } - if params != nil && params.InPostalCode != nil { - data.Set("InPostalCode", *params.InPostalCode) - } - if params != nil && params.InRegion != nil { - data.Set("InRegion", *params.InRegion) - } - if params != nil && params.InRateCenter != nil { - data.Set("InRateCenter", *params.InRateCenter) - } - if params != nil && params.InLata != nil { - data.Set("InLata", *params.InLata) - } - if params != nil && params.InLocality != nil { - data.Set("InLocality", *params.InLocality) - } - if params != nil && params.FaxEnabled != nil { - data.Set("FaxEnabled", string(*params.FaxEnabled)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Voip.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CountryCode"+"}", countryCode, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AreaCode != nil { + data.Set("AreaCode", string(*params.AreaCode)) + } + if params != nil && params.Contains != nil { + data.Set("Contains", *params.Contains) + } + if params != nil && params.SmsEnabled != nil { + data.Set("SmsEnabled", string(*params.SmsEnabled)) + } + if params != nil && params.MmsEnabled != nil { + data.Set("MmsEnabled", string(*params.MmsEnabled)) + } + if params != nil && params.VoiceEnabled != nil { + data.Set("VoiceEnabled", string(*params.VoiceEnabled)) + } + if params != nil && params.ExcludeAllAddressRequired != nil { + data.Set("ExcludeAllAddressRequired", string(*params.ExcludeAllAddressRequired)) + } + if params != nil && params.ExcludeLocalAddressRequired != nil { + data.Set("ExcludeLocalAddressRequired", string(*params.ExcludeLocalAddressRequired)) + } + if params != nil && params.ExcludeForeignAddressRequired != nil { + data.Set("ExcludeForeignAddressRequired", string(*params.ExcludeForeignAddressRequired)) + } + if params != nil && params.Beta != nil { + data.Set("Beta", string(*params.Beta)) + } + if params != nil && params.NearNumber != nil { + data.Set("NearNumber", *params.NearNumber) + } + if params != nil && params.NearLatLong != nil { + data.Set("NearLatLong", *params.NearLatLong) + } + if params != nil && params.Distance != nil { + data.Set("Distance", string(*params.Distance)) + } + if params != nil && params.InPostalCode != nil { + data.Set("InPostalCode", *params.InPostalCode) + } + if params != nil && params.InRegion != nil { + data.Set("InRegion", *params.InRegion) + } + if params != nil && params.InRateCenter != nil { + data.Set("InRateCenter", *params.InRateCenter) + } + if params != nil && params.InLata != nil { + data.Set("InLata", *params.InLata) + } + if params != nil && params.InLocality != nil { + data.Set("InLocality", *params.InLocality) + } + if params != nil && params.FaxEnabled != nil { + data.Set("FaxEnabled", string(*params.FaxEnabled)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListCallParams Optional parameters for the method 'ListCall' type ListCallParams struct { - To *string `json:"To,omitempty"` - From *string `json:"From,omitempty"` - ParentCallSid *string `json:"ParentCallSid,omitempty"` - Status *string `json:"Status,omitempty"` - StartTime *time.Time `json:"StartTime,omitempty"` - StartTime< *time.Time `json:"StartTime<,omitempty"` - StartTime> *time.Time `json:"StartTime>,omitempty"` - EndTime *time.Time `json:"EndTime,omitempty"` - EndTime< *time.Time `json:"EndTime<,omitempty"` - EndTime> *time.Time `json:"EndTime>,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + To *string `json:"To,omitempty"` + From *string `json:"From,omitempty"` + ParentCallSid *string `json:"ParentCallSid,omitempty"` + Status *string `json:"Status,omitempty"` + StartTime *time.Time `json:"StartTime,omitempty"` + StartTime< *time.Time `json:"StartTime<,omitempty"` + StartTime> *time.Time `json:"StartTime>,omitempty"` + EndTime *time.Time `json:"EndTime,omitempty"` + EndTime< *time.Time `json:"EndTime<,omitempty"` + EndTime> *time.Time `json:"EndTime>,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -5919,64 +5917,64 @@ Retrieves a collection of calls made to and from your account @return ApiV2010AccountCallReadResponse */ func (c *DefaultApiService) ListCall(accountSid string, params *ListCallParams) (*ApiV2010AccountCallReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Calls.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.To != nil { - data.Set("To", *params.To) - } - if params != nil && params.From != nil { - data.Set("From", *params.From) - } - if params != nil && params.ParentCallSid != nil { - data.Set("ParentCallSid", *params.ParentCallSid) - } - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - if params != nil && params.StartTime != nil { - data.Set("StartTime", string(*params.StartTime)) - } - if params != nil && params.StartTime< != nil { - data.Set("StartTime<", string(*params.StartTime<)) - } - if params != nil && params.StartTime> != nil { - data.Set("StartTime>", string(*params.StartTime>)) - } - if params != nil && params.EndTime != nil { - data.Set("EndTime", string(*params.EndTime)) - } - if params != nil && params.EndTime< != nil { - data.Set("EndTime<", string(*params.EndTime<)) - } - if params != nil && params.EndTime> != nil { - data.Set("EndTime>", string(*params.EndTime>)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountCallReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/Calls.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.To != nil { + data.Set("To", *params.To) + } + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.ParentCallSid != nil { + data.Set("ParentCallSid", *params.ParentCallSid) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.StartTime != nil { + data.Set("StartTime", string(*params.StartTime)) + } + if params != nil && params.StartTime< != nil { + data.Set("StartTime<", string(*params.StartTime<)) + } + if params != nil && params.StartTime> != nil { + data.Set("StartTime>", string(*params.StartTime>)) + } + if params != nil && params.EndTime != nil { + data.Set("EndTime", string(*params.EndTime)) + } + if params != nil && params.EndTime< != nil { + data.Set("EndTime<", string(*params.EndTime<)) + } + if params != nil && params.EndTime> != nil { + data.Set("EndTime>", string(*params.EndTime>)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountCallReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListCallEventParams Optional parameters for the method 'ListCallEvent' type ListCallEventParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -5989,39 +5987,39 @@ Retrieve a list of all events for a call. @return ApiV2010AccountCallCallEventReadResponse */ func (c *DefaultApiService) ListCallEvent(accountSid string, callSid string, params *ListCallEventParams) (*ApiV2010AccountCallCallEventReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Events.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Events.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountCallCallEventReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountCallCallEventReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListCallNotificationParams Optional parameters for the method 'ListCallNotification' type ListCallNotificationParams struct { - Log *int32 `json:"Log,omitempty"` - MessageDate *time.Time `json:"MessageDate,omitempty"` - MessageDate< *time.Time `json:"MessageDate<,omitempty"` - MessageDate> *time.Time `json:"MessageDate>,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Log *int32 `json:"Log,omitempty"` + MessageDate *time.Time `json:"MessageDate,omitempty"` + MessageDate< *time.Time `json:"MessageDate<,omitempty"` + MessageDate> *time.Time `json:"MessageDate>,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6037,50 +6035,50 @@ ListCallNotification Method for ListCallNotification @return ApiV2010AccountCallCallNotificationReadResponse */ func (c *DefaultApiService) ListCallNotification(accountSid string, callSid string, params *ListCallNotificationParams) (*ApiV2010AccountCallCallNotificationReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Log != nil { - data.Set("Log", string(*params.Log)) - } - if params != nil && params.MessageDate != nil { - data.Set("MessageDate", string(*params.MessageDate)) - } - if params != nil && params.MessageDate< != nil { - data.Set("MessageDate<", string(*params.MessageDate<)) - } - if params != nil && params.MessageDate> != nil { - data.Set("MessageDate>", string(*params.MessageDate>)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountCallCallNotificationReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Log != nil { + data.Set("Log", string(*params.Log)) + } + if params != nil && params.MessageDate != nil { + data.Set("MessageDate", string(*params.MessageDate)) + } + if params != nil && params.MessageDate< != nil { + data.Set("MessageDate<", string(*params.MessageDate<)) + } + if params != nil && params.MessageDate> != nil { + data.Set("MessageDate>", string(*params.MessageDate>)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountCallCallNotificationReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListCallRecordingParams Optional parameters for the method 'ListCallRecording' type ListCallRecordingParams struct { - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateCreated< *time.Time `json:"DateCreated<,omitempty"` - DateCreated> *time.Time `json:"DateCreated>,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateCreated< *time.Time `json:"DateCreated<,omitempty"` + DateCreated> *time.Time `json:"DateCreated>,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6096,52 +6094,52 @@ Retrieve a list of recordings belonging to the call used to make the request @return ApiV2010AccountCallCallRecordingReadResponse */ func (c *DefaultApiService) ListCallRecording(accountSid string, callSid string, params *ListCallRecordingParams) (*ApiV2010AccountCallCallRecordingReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) - } - if params != nil && params.DateCreated< != nil { - data.Set("DateCreated<", string(*params.DateCreated<)) - } - if params != nil && params.DateCreated> != nil { - data.Set("DateCreated>", string(*params.DateCreated>)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateCreated< != nil { + data.Set("DateCreated<", string(*params.DateCreated<)) + } + if params != nil && params.DateCreated> != nil { + data.Set("DateCreated>", string(*params.DateCreated>)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountCallCallRecordingReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountCallCallRecordingReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListConferenceParams Optional parameters for the method 'ListConference' type ListConferenceParams struct { - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateCreated< *time.Time `json:"DateCreated<,omitempty"` - DateCreated> *time.Time `json:"DateCreated>,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - DateUpdated< *time.Time `json:"DateUpdated<,omitempty"` - DateUpdated> *time.Time `json:"DateUpdated>,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Status *string `json:"Status,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateCreated< *time.Time `json:"DateCreated<,omitempty"` + DateCreated> *time.Time `json:"DateCreated>,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + DateUpdated< *time.Time `json:"DateUpdated<,omitempty"` + DateUpdated> *time.Time `json:"DateUpdated>,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Status *string `json:"Status,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6161,61 +6159,61 @@ Retrieve a list of conferences belonging to the account used to make the request @return ApiV2010AccountConferenceReadResponse */ func (c *DefaultApiService) ListConference(accountSid string, params *ListConferenceParams) (*ApiV2010AccountConferenceReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Conferences.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) - } - if params != nil && params.DateCreated< != nil { - data.Set("DateCreated<", string(*params.DateCreated<)) - } - if params != nil && params.DateCreated> != nil { - data.Set("DateCreated>", string(*params.DateCreated>)) - } - if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) - } - if params != nil && params.DateUpdated< != nil { - data.Set("DateUpdated<", string(*params.DateUpdated<)) - } - if params != nil && params.DateUpdated> != nil { - data.Set("DateUpdated>", string(*params.DateUpdated>)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountConferenceReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/Conferences.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateCreated< != nil { + data.Set("DateCreated<", string(*params.DateCreated<)) + } + if params != nil && params.DateCreated> != nil { + data.Set("DateCreated>", string(*params.DateCreated>)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.DateUpdated< != nil { + data.Set("DateUpdated<", string(*params.DateUpdated<)) + } + if params != nil && params.DateUpdated> != nil { + data.Set("DateUpdated>", string(*params.DateUpdated>)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountConferenceReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListConferenceRecordingParams Optional parameters for the method 'ListConferenceRecording' type ListConferenceRecordingParams struct { - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateCreated< *time.Time `json:"DateCreated<,omitempty"` - DateCreated> *time.Time `json:"DateCreated>,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateCreated< *time.Time `json:"DateCreated<,omitempty"` + DateCreated> *time.Time `json:"DateCreated>,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6231,44 +6229,44 @@ Retrieve a list of recordings belonging to the call used to make the request @return ApiV2010AccountConferenceConferenceRecordingReadResponse */ func (c *DefaultApiService) ListConferenceRecording(accountSid string, conferenceSid string, params *ListConferenceRecordingParams) (*ApiV2010AccountConferenceConferenceRecordingReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ConferenceSid"+"}", conferenceSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ConferenceSid"+"}", conferenceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) - } - if params != nil && params.DateCreated< != nil { - data.Set("DateCreated<", string(*params.DateCreated<)) - } - if params != nil && params.DateCreated> != nil { - data.Set("DateCreated>", string(*params.DateCreated>)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateCreated< != nil { + data.Set("DateCreated<", string(*params.DateCreated<)) + } + if params != nil && params.DateCreated> != nil { + data.Set("DateCreated>", string(*params.DateCreated>)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountConferenceConferenceRecordingReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountConferenceConferenceRecordingReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListConnectAppParams Optional parameters for the method 'ListConnectApp' type ListConnectAppParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6280,34 +6278,34 @@ Retrieve a list of connect-apps belonging to the account used to make the reques @return ApiV2010AccountConnectAppReadResponse */ func (c *DefaultApiService) ListConnectApp(accountSid string, params *ListConnectAppParams) (*ApiV2010AccountConnectAppReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/ConnectApps.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/ConnectApps.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountConnectAppReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountConnectAppReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListDependentPhoneNumberParams Optional parameters for the method 'ListDependentPhoneNumber' type ListDependentPhoneNumberParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6319,39 +6317,39 @@ ListDependentPhoneNumber Method for ListDependentPhoneNumber @return ApiV2010AccountAddressDependentPhoneNumberReadResponse */ func (c *DefaultApiService) ListDependentPhoneNumber(accountSid string, addressSid string, params *ListDependentPhoneNumberParams) (*ApiV2010AccountAddressDependentPhoneNumberReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Addresses/{AddressSid}/DependentPhoneNumbers.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"AddressSid"+"}", addressSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Addresses/{AddressSid}/DependentPhoneNumbers.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AddressSid"+"}", addressSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountAddressDependentPhoneNumberReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountAddressDependentPhoneNumberReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListIncomingPhoneNumberParams Optional parameters for the method 'ListIncomingPhoneNumber' type ListIncomingPhoneNumberParams struct { - Beta *bool `json:"Beta,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PhoneNumber *string `json:"PhoneNumber,omitempty"` - Origin *string `json:"Origin,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Beta *bool `json:"Beta,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + Origin *string `json:"Origin,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6367,46 +6365,46 @@ Retrieve a list of incoming-phone-numbers belonging to the account used to make @return ApiV2010AccountIncomingPhoneNumberReadResponse */ func (c *DefaultApiService) ListIncomingPhoneNumber(accountSid string, params *ListIncomingPhoneNumberParams) (*ApiV2010AccountIncomingPhoneNumberReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Beta != nil { - data.Set("Beta", string(*params.Beta)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.PhoneNumber != nil { - data.Set("PhoneNumber", *params.PhoneNumber) - } - if params != nil && params.Origin != nil { - data.Set("Origin", *params.Origin) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountIncomingPhoneNumberReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Beta != nil { + data.Set("Beta", string(*params.Beta)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PhoneNumber != nil { + data.Set("PhoneNumber", *params.PhoneNumber) + } + if params != nil && params.Origin != nil { + data.Set("Origin", *params.Origin) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountIncomingPhoneNumberReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListIncomingPhoneNumberAssignedAddOnParams Optional parameters for the method 'ListIncomingPhoneNumberAssignedAddOn' type ListIncomingPhoneNumberAssignedAddOnParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6419,35 +6417,35 @@ Retrieve a list of Add-on installations currently assigned to this Number. @return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse */ func (c *DefaultApiService) ListIncomingPhoneNumberAssignedAddOn(accountSid string, resourceSid string, params *ListIncomingPhoneNumberAssignedAddOnParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ResourceSid"+"}", resourceSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ResourceSid"+"}", resourceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListIncomingPhoneNumberAssignedAddOnExtensionParams Optional parameters for the method 'ListIncomingPhoneNumberAssignedAddOnExtension' type ListIncomingPhoneNumberAssignedAddOnExtensionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6461,40 +6459,40 @@ Retrieve a list of Extensions for the Assigned Add-on. @return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse */ func (c *DefaultApiService) ListIncomingPhoneNumberAssignedAddOnExtension(accountSid string, resourceSid string, assignedAddOnSid string, params *ListIncomingPhoneNumberAssignedAddOnExtensionParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ResourceSid"+"}", resourceSid, -1) - path = strings.Replace(path, "{"+"AssignedAddOnSid"+"}", assignedAddOnSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ResourceSid"+"}", resourceSid, -1) + path = strings.Replace(path, "{"+"AssignedAddOnSid"+"}", assignedAddOnSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListIncomingPhoneNumberLocalParams Optional parameters for the method 'ListIncomingPhoneNumberLocal' type ListIncomingPhoneNumberLocalParams struct { - Beta *bool `json:"Beta,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PhoneNumber *string `json:"PhoneNumber,omitempty"` - Origin *string `json:"Origin,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Beta *bool `json:"Beta,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + Origin *string `json:"Origin,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6509,50 +6507,50 @@ ListIncomingPhoneNumberLocal Method for ListIncomingPhoneNumberLocal @return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse */ func (c *DefaultApiService) ListIncomingPhoneNumberLocal(accountSid string, params *ListIncomingPhoneNumberLocalParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Beta != nil { - data.Set("Beta", string(*params.Beta)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.PhoneNumber != nil { - data.Set("PhoneNumber", *params.PhoneNumber) - } - if params != nil && params.Origin != nil { - data.Set("Origin", *params.Origin) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Beta != nil { + data.Set("Beta", string(*params.Beta)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PhoneNumber != nil { + data.Set("PhoneNumber", *params.PhoneNumber) + } + if params != nil && params.Origin != nil { + data.Set("Origin", *params.Origin) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListIncomingPhoneNumberMobileParams Optional parameters for the method 'ListIncomingPhoneNumberMobile' type ListIncomingPhoneNumberMobileParams struct { - Beta *bool `json:"Beta,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PhoneNumber *string `json:"PhoneNumber,omitempty"` - Origin *string `json:"Origin,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Beta *bool `json:"Beta,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + Origin *string `json:"Origin,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6567,50 +6565,50 @@ ListIncomingPhoneNumberMobile Method for ListIncomingPhoneNumberMobile @return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse */ func (c *DefaultApiService) ListIncomingPhoneNumberMobile(accountSid string, params *ListIncomingPhoneNumberMobileParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Beta != nil { - data.Set("Beta", string(*params.Beta)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.PhoneNumber != nil { - data.Set("PhoneNumber", *params.PhoneNumber) - } - if params != nil && params.Origin != nil { - data.Set("Origin", *params.Origin) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Beta != nil { + data.Set("Beta", string(*params.Beta)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PhoneNumber != nil { + data.Set("PhoneNumber", *params.PhoneNumber) + } + if params != nil && params.Origin != nil { + data.Set("Origin", *params.Origin) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListIncomingPhoneNumberTollFreeParams Optional parameters for the method 'ListIncomingPhoneNumberTollFree' type ListIncomingPhoneNumberTollFreeParams struct { - Beta *bool `json:"Beta,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PhoneNumber *string `json:"PhoneNumber,omitempty"` - Origin *string `json:"Origin,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Beta *bool `json:"Beta,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + Origin *string `json:"Origin,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6625,46 +6623,46 @@ ListIncomingPhoneNumberTollFree Method for ListIncomingPhoneNumberTollFree @return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse */ func (c *DefaultApiService) ListIncomingPhoneNumberTollFree(accountSid string, params *ListIncomingPhoneNumberTollFreeParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Beta != nil { - data.Set("Beta", string(*params.Beta)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.PhoneNumber != nil { - data.Set("PhoneNumber", *params.PhoneNumber) - } - if params != nil && params.Origin != nil { - data.Set("Origin", *params.Origin) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Beta != nil { + data.Set("Beta", string(*params.Beta)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PhoneNumber != nil { + data.Set("PhoneNumber", *params.PhoneNumber) + } + if params != nil && params.Origin != nil { + data.Set("Origin", *params.Origin) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListKeyParams Optional parameters for the method 'ListKey' type ListKeyParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6675,37 +6673,37 @@ ListKey Method for ListKey @return ApiV2010AccountKeyReadResponse */ func (c *DefaultApiService) ListKey(accountSid string, params *ListKeyParams) (*ApiV2010AccountKeyReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Keys.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Keys.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountKeyReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountKeyReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListMediaParams Optional parameters for the method 'ListMedia' type ListMediaParams struct { - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateCreated< *time.Time `json:"DateCreated<,omitempty"` - DateCreated> *time.Time `json:"DateCreated>,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateCreated< *time.Time `json:"DateCreated<,omitempty"` + DateCreated> *time.Time `json:"DateCreated>,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6721,44 +6719,44 @@ Retrieve a list of Media resources belonging to the account used to make the req @return ApiV2010AccountMessageMediaReadResponse */ func (c *DefaultApiService) ListMedia(accountSid string, messageSid string, params *ListMediaParams) (*ApiV2010AccountMessageMediaReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"MessageSid"+"}", messageSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"MessageSid"+"}", messageSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) - } - if params != nil && params.DateCreated< != nil { - data.Set("DateCreated<", string(*params.DateCreated<)) - } - if params != nil && params.DateCreated> != nil { - data.Set("DateCreated>", string(*params.DateCreated>)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateCreated< != nil { + data.Set("DateCreated<", string(*params.DateCreated<)) + } + if params != nil && params.DateCreated> != nil { + data.Set("DateCreated>", string(*params.DateCreated>)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountMessageMediaReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountMessageMediaReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListMemberParams Optional parameters for the method 'ListMember' type ListMemberParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6771,40 +6769,40 @@ Retrieve the members of the queue @return ApiV2010AccountQueueMemberReadResponse */ func (c *DefaultApiService) ListMember(accountSid string, queueSid string, params *ListMemberParams) (*ApiV2010AccountQueueMemberReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"QueueSid"+"}", queueSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"QueueSid"+"}", queueSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountQueueMemberReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountQueueMemberReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListMessageParams Optional parameters for the method 'ListMessage' type ListMessageParams struct { - To *string `json:"To,omitempty"` - From *string `json:"From,omitempty"` - DateSent *time.Time `json:"DateSent,omitempty"` - DateSent< *time.Time `json:"DateSent<,omitempty"` - DateSent> *time.Time `json:"DateSent>,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + To *string `json:"To,omitempty"` + From *string `json:"From,omitempty"` + DateSent *time.Time `json:"DateSent,omitempty"` + DateSent< *time.Time `json:"DateSent<,omitempty"` + DateSent> *time.Time `json:"DateSent>,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6821,53 +6819,53 @@ Retrieve a list of messages belonging to the account used to make the request @return ApiV2010AccountMessageReadResponse */ func (c *DefaultApiService) ListMessage(accountSid string, params *ListMessageParams) (*ApiV2010AccountMessageReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Messages.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.To != nil { - data.Set("To", *params.To) - } - if params != nil && params.From != nil { - data.Set("From", *params.From) - } - if params != nil && params.DateSent != nil { - data.Set("DateSent", string(*params.DateSent)) - } - if params != nil && params.DateSent< != nil { - data.Set("DateSent<", string(*params.DateSent<)) - } - if params != nil && params.DateSent> != nil { - data.Set("DateSent>", string(*params.DateSent>)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountMessageReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/Messages.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.To != nil { + data.Set("To", *params.To) + } + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.DateSent != nil { + data.Set("DateSent", string(*params.DateSent)) + } + if params != nil && params.DateSent< != nil { + data.Set("DateSent<", string(*params.DateSent<)) + } + if params != nil && params.DateSent> != nil { + data.Set("DateSent>", string(*params.DateSent>)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountMessageReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListNotificationParams Optional parameters for the method 'ListNotification' type ListNotificationParams struct { - Log *int32 `json:"Log,omitempty"` - MessageDate *time.Time `json:"MessageDate,omitempty"` - MessageDate< *time.Time `json:"MessageDate<,omitempty"` - MessageDate> *time.Time `json:"MessageDate>,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Log *int32 `json:"Log,omitempty"` + MessageDate *time.Time `json:"MessageDate,omitempty"` + MessageDate< *time.Time `json:"MessageDate<,omitempty"` + MessageDate> *time.Time `json:"MessageDate>,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6883,48 +6881,48 @@ Retrieve a list of notifications belonging to the account used to make the reque @return ApiV2010AccountNotificationReadResponse */ func (c *DefaultApiService) ListNotification(accountSid string, params *ListNotificationParams) (*ApiV2010AccountNotificationReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Notifications.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Log != nil { - data.Set("Log", string(*params.Log)) - } - if params != nil && params.MessageDate != nil { - data.Set("MessageDate", string(*params.MessageDate)) - } - if params != nil && params.MessageDate< != nil { - data.Set("MessageDate<", string(*params.MessageDate<)) - } - if params != nil && params.MessageDate> != nil { - data.Set("MessageDate>", string(*params.MessageDate>)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountNotificationReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/Notifications.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Log != nil { + data.Set("Log", string(*params.Log)) + } + if params != nil && params.MessageDate != nil { + data.Set("MessageDate", string(*params.MessageDate)) + } + if params != nil && params.MessageDate< != nil { + data.Set("MessageDate<", string(*params.MessageDate<)) + } + if params != nil && params.MessageDate> != nil { + data.Set("MessageDate>", string(*params.MessageDate>)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountNotificationReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListOutgoingCallerIdParams Optional parameters for the method 'ListOutgoingCallerId' type ListOutgoingCallerIdParams struct { - PhoneNumber *string `json:"PhoneNumber,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6938,43 +6936,43 @@ Retrieve a list of outgoing-caller-ids belonging to the account used to make the @return ApiV2010AccountOutgoingCallerIdReadResponse */ func (c *DefaultApiService) ListOutgoingCallerId(accountSid string, params *ListOutgoingCallerIdParams) (*ApiV2010AccountOutgoingCallerIdReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PhoneNumber != nil { - data.Set("PhoneNumber", *params.PhoneNumber) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PhoneNumber != nil { + data.Set("PhoneNumber", *params.PhoneNumber) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountOutgoingCallerIdReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountOutgoingCallerIdReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListParticipantParams Optional parameters for the method 'ListParticipant' type ListParticipantParams struct { - Muted *bool `json:"Muted,omitempty"` - Hold *bool `json:"Hold,omitempty"` - Coaching *bool `json:"Coaching,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Muted *bool `json:"Muted,omitempty"` + Hold *bool `json:"Hold,omitempty"` + Coaching *bool `json:"Coaching,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6990,44 +6988,44 @@ Retrieve a list of participants belonging to the account used to make the reques @return ApiV2010AccountConferenceParticipantReadResponse */ func (c *DefaultApiService) ListParticipant(accountSid string, conferenceSid string, params *ListParticipantParams) (*ApiV2010AccountConferenceParticipantReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ConferenceSid"+"}", conferenceSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ConferenceSid"+"}", conferenceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Muted != nil { - data.Set("Muted", string(*params.Muted)) - } - if params != nil && params.Hold != nil { - data.Set("Hold", string(*params.Hold)) - } - if params != nil && params.Coaching != nil { - data.Set("Coaching", string(*params.Coaching)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.Muted != nil { + data.Set("Muted", string(*params.Muted)) + } + if params != nil && params.Hold != nil { + data.Set("Hold", string(*params.Hold)) + } + if params != nil && params.Coaching != nil { + data.Set("Coaching", string(*params.Coaching)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountConferenceParticipantReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountConferenceParticipantReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListQueueParams Optional parameters for the method 'ListQueue' type ListQueueParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7039,39 +7037,39 @@ Retrieve a list of queues belonging to the account used to make the request @return ApiV2010AccountQueueReadResponse */ func (c *DefaultApiService) ListQueue(accountSid string, params *ListQueueParams) (*ApiV2010AccountQueueReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Queues.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Queues.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountQueueReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountQueueReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListRecordingParams Optional parameters for the method 'ListRecording' type ListRecordingParams struct { - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateCreated< *time.Time `json:"DateCreated<,omitempty"` - DateCreated> *time.Time `json:"DateCreated>,omitempty"` - CallSid *string `json:"CallSid,omitempty"` - ConferenceSid *string `json:"ConferenceSid,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateCreated< *time.Time `json:"DateCreated<,omitempty"` + DateCreated> *time.Time `json:"DateCreated>,omitempty"` + CallSid *string `json:"CallSid,omitempty"` + ConferenceSid *string `json:"ConferenceSid,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7088,49 +7086,49 @@ Retrieve a list of recordings belonging to the account used to make the request @return ApiV2010AccountRecordingReadResponse */ func (c *DefaultApiService) ListRecording(accountSid string, params *ListRecordingParams) (*ApiV2010AccountRecordingReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Recordings.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) - } - if params != nil && params.DateCreated< != nil { - data.Set("DateCreated<", string(*params.DateCreated<)) - } - if params != nil && params.DateCreated> != nil { - data.Set("DateCreated>", string(*params.DateCreated>)) - } - if params != nil && params.CallSid != nil { - data.Set("CallSid", *params.CallSid) - } - if params != nil && params.ConferenceSid != nil { - data.Set("ConferenceSid", *params.ConferenceSid) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountRecordingReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/Recordings.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateCreated< != nil { + data.Set("DateCreated<", string(*params.DateCreated<)) + } + if params != nil && params.DateCreated> != nil { + data.Set("DateCreated>", string(*params.DateCreated>)) + } + if params != nil && params.CallSid != nil { + data.Set("CallSid", *params.CallSid) + } + if params != nil && params.ConferenceSid != nil { + data.Set("ConferenceSid", *params.ConferenceSid) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountRecordingReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListRecordingAddOnResultParams Optional parameters for the method 'ListRecordingAddOnResult' type ListRecordingAddOnResultParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7143,35 +7141,35 @@ Retrieve a list of results belonging to the recording @return ApiV2010AccountRecordingRecordingAddOnResultReadResponse */ func (c *DefaultApiService) ListRecordingAddOnResult(accountSid string, referenceSid string, params *ListRecordingAddOnResultParams) (*ApiV2010AccountRecordingRecordingAddOnResultReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ReferenceSid"+"}", referenceSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ReferenceSid"+"}", referenceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountRecordingRecordingAddOnResultReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountRecordingRecordingAddOnResultReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListRecordingAddOnResultPayloadParams Optional parameters for the method 'ListRecordingAddOnResultPayload' type ListRecordingAddOnResultPayloadParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7185,36 +7183,36 @@ Retrieve a list of payloads belonging to the AddOnResult @return ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse */ func (c *DefaultApiService) ListRecordingAddOnResultPayload(accountSid string, referenceSid string, addOnResultSid string, params *ListRecordingAddOnResultPayloadParams) (*ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ReferenceSid"+"}", referenceSid, -1) - path = strings.Replace(path, "{"+"AddOnResultSid"+"}", addOnResultSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ReferenceSid"+"}", referenceSid, -1) + path = strings.Replace(path, "{"+"AddOnResultSid"+"}", addOnResultSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListRecordingTranscriptionParams Optional parameters for the method 'ListRecordingTranscription' type ListRecordingTranscriptionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7226,37 +7224,37 @@ ListRecordingTranscription Method for ListRecordingTranscription @return ApiV2010AccountRecordingRecordingTranscriptionReadResponse */ func (c *DefaultApiService) ListRecordingTranscription(accountSid string, recordingSid string, params *ListRecordingTranscriptionParams) (*ApiV2010AccountRecordingRecordingTranscriptionReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"RecordingSid"+"}", recordingSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"RecordingSid"+"}", recordingSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountRecordingRecordingTranscriptionReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountRecordingRecordingTranscriptionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListShortCodeParams Optional parameters for the method 'ListShortCode' type ListShortCodeParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - ShortCode *string `json:"ShortCode,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + ShortCode *string `json:"ShortCode,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7270,40 +7268,40 @@ Retrieve a list of short-codes belonging to the account used to make the request @return ApiV2010AccountShortCodeReadResponse */ func (c *DefaultApiService) ListShortCode(accountSid string, params *ListShortCodeParams) (*ApiV2010AccountShortCodeReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.ShortCode != nil { - data.Set("ShortCode", *params.ShortCode) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.ShortCode != nil { + data.Set("ShortCode", *params.ShortCode) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountShortCodeReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountShortCodeReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListSigningKeyParams Optional parameters for the method 'ListSigningKey' type ListSigningKeyParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7314,34 +7312,34 @@ ListSigningKey Method for ListSigningKey @return ApiV2010AccountSigningKeyReadResponse */ func (c *DefaultApiService) ListSigningKey(accountSid string, params *ListSigningKeyParams) (*ApiV2010AccountSigningKeyReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SigningKeys.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SigningKeys.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountSigningKeyReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountSigningKeyReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListSipAuthCallsCredentialListMappingParams Optional parameters for the method 'ListSipAuthCallsCredentialListMapping' type ListSipAuthCallsCredentialListMappingParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7354,35 +7352,35 @@ Retrieve a list of credential list mappings belonging to the domain used in the @return ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse */ func (c *DefaultApiService) ListSipAuthCallsCredentialListMapping(accountSid string, domainSid string, params *ListSipAuthCallsCredentialListMappingParams) (*ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListSipAuthCallsIpAccessControlListMappingParams Optional parameters for the method 'ListSipAuthCallsIpAccessControlListMapping' type ListSipAuthCallsIpAccessControlListMappingParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7395,35 +7393,35 @@ Retrieve a list of IP Access Control List mappings belonging to the domain used @return ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse */ func (c *DefaultApiService) ListSipAuthCallsIpAccessControlListMapping(accountSid string, domainSid string, params *ListSipAuthCallsIpAccessControlListMappingParams) (*ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListSipAuthRegistrationsCredentialListMappingParams Optional parameters for the method 'ListSipAuthRegistrationsCredentialListMapping' type ListSipAuthRegistrationsCredentialListMappingParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7436,35 +7434,35 @@ Retrieve a list of credential list mappings belonging to the domain used in the @return ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse */ func (c *DefaultApiService) ListSipAuthRegistrationsCredentialListMapping(accountSid string, domainSid string, params *ListSipAuthRegistrationsCredentialListMappingParams) (*ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListSipCredentialParams Optional parameters for the method 'ListSipCredential' type ListSipCredentialParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7477,35 +7475,35 @@ Retrieve a list of credentials. @return ApiV2010AccountSipSipCredentialListSipCredentialReadResponse */ func (c *DefaultApiService) ListSipCredential(accountSid string, credentialListSid string, params *ListSipCredentialParams) (*ApiV2010AccountSipSipCredentialListSipCredentialReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CredentialListSid"+"}", credentialListSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CredentialListSid"+"}", credentialListSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountSipSipCredentialListSipCredentialReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountSipSipCredentialListSipCredentialReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListSipCredentialListParams Optional parameters for the method 'ListSipCredentialList' type ListSipCredentialListParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7517,34 +7515,34 @@ Get All Credential Lists @return ApiV2010AccountSipSipCredentialListReadResponse */ func (c *DefaultApiService) ListSipCredentialList(accountSid string, params *ListSipCredentialListParams) (*ApiV2010AccountSipSipCredentialListReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountSipSipCredentialListReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountSipSipCredentialListReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListSipCredentialListMappingParams Optional parameters for the method 'ListSipCredentialListMapping' type ListSipCredentialListMappingParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7557,35 +7555,35 @@ Read multiple CredentialListMapping resources from an account. @return ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse */ func (c *DefaultApiService) ListSipCredentialListMapping(accountSid string, domainSid string, params *ListSipCredentialListMappingParams) (*ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListSipDomainParams Optional parameters for the method 'ListSipDomain' type ListSipDomainParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7597,34 +7595,34 @@ Retrieve a list of domains belonging to the account used to make the request @return ApiV2010AccountSipSipDomainReadResponse */ func (c *DefaultApiService) ListSipDomain(accountSid string, params *ListSipDomainParams) (*ApiV2010AccountSipSipDomainReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountSipSipDomainReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountSipSipDomainReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListSipIpAccessControlListParams Optional parameters for the method 'ListSipIpAccessControlList' type ListSipIpAccessControlListParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7636,34 +7634,34 @@ Retrieve a list of IpAccessControlLists that belong to the account used to make @return ApiV2010AccountSipSipIpAccessControlListReadResponse */ func (c *DefaultApiService) ListSipIpAccessControlList(accountSid string, params *ListSipIpAccessControlListParams) (*ApiV2010AccountSipSipIpAccessControlListReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountSipSipIpAccessControlListReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountSipSipIpAccessControlListReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListSipIpAccessControlListMappingParams Optional parameters for the method 'ListSipIpAccessControlListMapping' type ListSipIpAccessControlListMappingParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7676,35 +7674,35 @@ Retrieve a list of IpAccessControlListMapping resources. @return ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse */ func (c *DefaultApiService) ListSipIpAccessControlListMapping(accountSid string, domainSid string, params *ListSipIpAccessControlListMappingParams) (*ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListSipIpAddressParams Optional parameters for the method 'ListSipIpAddress' type ListSipIpAddressParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7717,35 +7715,35 @@ Read multiple IpAddress resources. @return ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse */ func (c *DefaultApiService) ListSipIpAddress(accountSid string, ipAccessControlListSid string, params *ListSipIpAddressParams) (*ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"IpAccessControlListSid"+"}", ipAccessControlListSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"IpAccessControlListSid"+"}", ipAccessControlListSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListTranscriptionParams Optional parameters for the method 'ListTranscription' type ListTranscriptionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7757,38 +7755,38 @@ Retrieve a list of transcriptions belonging to the account used to make the requ @return ApiV2010AccountTranscriptionReadResponse */ func (c *DefaultApiService) ListTranscription(accountSid string, params *ListTranscriptionParams) (*ApiV2010AccountTranscriptionReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Transcriptions.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Transcriptions.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountTranscriptionReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountTranscriptionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListUsageRecordParams Optional parameters for the method 'ListUsageRecord' type ListUsageRecordParams struct { - Category *string `json:"Category,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - EndDate *time.Time `json:"EndDate,omitempty"` - IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Category *string `json:"Category,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7804,50 +7802,50 @@ Retrieve a list of usage-records belonging to the account used to make the reque @return ApiV2010AccountUsageUsageRecordReadResponse */ func (c *DefaultApiService) ListUsageRecord(accountSid string, params *ListUsageRecordParams) (*ApiV2010AccountUsageUsageRecordReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Category != nil { - data.Set("Category", *params.Category) - } - if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) - } - if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) - } - if params != nil && params.IncludeSubaccounts != nil { - data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountUsageUsageRecordReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Category != nil { + data.Set("Category", *params.Category) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.IncludeSubaccounts != nil { + data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountUsageUsageRecordReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListUsageRecordAllTimeParams Optional parameters for the method 'ListUsageRecordAllTime' type ListUsageRecordAllTimeParams struct { - Category *string `json:"Category,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - EndDate *time.Time `json:"EndDate,omitempty"` - IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Category *string `json:"Category,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7862,50 +7860,50 @@ ListUsageRecordAllTime Method for ListUsageRecordAllTime @return ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse */ func (c *DefaultApiService) ListUsageRecordAllTime(accountSid string, params *ListUsageRecordAllTimeParams) (*ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/AllTime.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Category != nil { - data.Set("Category", *params.Category) - } - if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) - } - if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) - } - if params != nil && params.IncludeSubaccounts != nil { - data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/AllTime.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Category != nil { + data.Set("Category", *params.Category) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.IncludeSubaccounts != nil { + data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListUsageRecordDailyParams Optional parameters for the method 'ListUsageRecordDaily' type ListUsageRecordDailyParams struct { - Category *string `json:"Category,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - EndDate *time.Time `json:"EndDate,omitempty"` - IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Category *string `json:"Category,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7920,50 +7918,50 @@ ListUsageRecordDaily Method for ListUsageRecordDaily @return ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse */ func (c *DefaultApiService) ListUsageRecordDaily(accountSid string, params *ListUsageRecordDailyParams) (*ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/Daily.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Category != nil { - data.Set("Category", *params.Category) - } - if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) - } - if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) - } - if params != nil && params.IncludeSubaccounts != nil { - data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/Daily.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Category != nil { + data.Set("Category", *params.Category) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.IncludeSubaccounts != nil { + data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListUsageRecordLastMonthParams Optional parameters for the method 'ListUsageRecordLastMonth' type ListUsageRecordLastMonthParams struct { - Category *string `json:"Category,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - EndDate *time.Time `json:"EndDate,omitempty"` - IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Category *string `json:"Category,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7978,50 +7976,50 @@ ListUsageRecordLastMonth Method for ListUsageRecordLastMonth @return ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse */ func (c *DefaultApiService) ListUsageRecordLastMonth(accountSid string, params *ListUsageRecordLastMonthParams) (*ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/LastMonth.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Category != nil { - data.Set("Category", *params.Category) - } - if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) - } - if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) - } - if params != nil && params.IncludeSubaccounts != nil { - data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/LastMonth.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Category != nil { + data.Set("Category", *params.Category) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.IncludeSubaccounts != nil { + data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListUsageRecordMonthlyParams Optional parameters for the method 'ListUsageRecordMonthly' type ListUsageRecordMonthlyParams struct { - Category *string `json:"Category,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - EndDate *time.Time `json:"EndDate,omitempty"` - IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Category *string `json:"Category,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -8036,50 +8034,50 @@ ListUsageRecordMonthly Method for ListUsageRecordMonthly @return ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse */ func (c *DefaultApiService) ListUsageRecordMonthly(accountSid string, params *ListUsageRecordMonthlyParams) (*ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/Monthly.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Category != nil { - data.Set("Category", *params.Category) - } - if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) - } - if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) - } - if params != nil && params.IncludeSubaccounts != nil { - data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/Monthly.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Category != nil { + data.Set("Category", *params.Category) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.IncludeSubaccounts != nil { + data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListUsageRecordThisMonthParams Optional parameters for the method 'ListUsageRecordThisMonth' type ListUsageRecordThisMonthParams struct { - Category *string `json:"Category,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - EndDate *time.Time `json:"EndDate,omitempty"` - IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Category *string `json:"Category,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -8094,50 +8092,50 @@ ListUsageRecordThisMonth Method for ListUsageRecordThisMonth @return ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse */ func (c *DefaultApiService) ListUsageRecordThisMonth(accountSid string, params *ListUsageRecordThisMonthParams) (*ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/ThisMonth.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Category != nil { - data.Set("Category", *params.Category) - } - if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) - } - if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) - } - if params != nil && params.IncludeSubaccounts != nil { - data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/ThisMonth.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Category != nil { + data.Set("Category", *params.Category) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.IncludeSubaccounts != nil { + data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListUsageRecordTodayParams Optional parameters for the method 'ListUsageRecordToday' type ListUsageRecordTodayParams struct { - Category *string `json:"Category,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - EndDate *time.Time `json:"EndDate,omitempty"` - IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Category *string `json:"Category,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -8152,50 +8150,50 @@ ListUsageRecordToday Method for ListUsageRecordToday @return ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse */ func (c *DefaultApiService) ListUsageRecordToday(accountSid string, params *ListUsageRecordTodayParams) (*ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/Today.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Category != nil { - data.Set("Category", *params.Category) - } - if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) - } - if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) - } - if params != nil && params.IncludeSubaccounts != nil { - data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/Today.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Category != nil { + data.Set("Category", *params.Category) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.IncludeSubaccounts != nil { + data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListUsageRecordYearlyParams Optional parameters for the method 'ListUsageRecordYearly' type ListUsageRecordYearlyParams struct { - Category *string `json:"Category,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - EndDate *time.Time `json:"EndDate,omitempty"` - IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Category *string `json:"Category,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -8210,50 +8208,50 @@ ListUsageRecordYearly Method for ListUsageRecordYearly @return ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse */ func (c *DefaultApiService) ListUsageRecordYearly(accountSid string, params *ListUsageRecordYearlyParams) (*ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/Yearly.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Category != nil { - data.Set("Category", *params.Category) - } - if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) - } - if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) - } - if params != nil && params.IncludeSubaccounts != nil { - data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/Yearly.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Category != nil { + data.Set("Category", *params.Category) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.IncludeSubaccounts != nil { + data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListUsageRecordYesterdayParams Optional parameters for the method 'ListUsageRecordYesterday' type ListUsageRecordYesterdayParams struct { - Category *string `json:"Category,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - EndDate *time.Time `json:"EndDate,omitempty"` - IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Category *string `json:"Category,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -8268,49 +8266,49 @@ ListUsageRecordYesterday Method for ListUsageRecordYesterday @return ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse */ func (c *DefaultApiService) ListUsageRecordYesterday(accountSid string, params *ListUsageRecordYesterdayParams) (*ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/Yesterday.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Category != nil { - data.Set("Category", *params.Category) - } - if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) - } - if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) - } - if params != nil && params.IncludeSubaccounts != nil { - data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/Yesterday.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Category != nil { + data.Set("Category", *params.Category) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.IncludeSubaccounts != nil { + data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListUsageTriggerParams Optional parameters for the method 'ListUsageTrigger' type ListUsageTriggerParams struct { - Recurring *string `json:"Recurring,omitempty"` - TriggerBy *string `json:"TriggerBy,omitempty"` - UsageCategory *string `json:"UsageCategory,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Recurring *string `json:"Recurring,omitempty"` + TriggerBy *string `json:"TriggerBy,omitempty"` + UsageCategory *string `json:"UsageCategory,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -8325,44 +8323,44 @@ Retrieve a list of usage-triggers belonging to the account used to make the requ @return ApiV2010AccountUsageUsageTriggerReadResponse */ func (c *DefaultApiService) ListUsageTrigger(accountSid string, params *ListUsageTriggerParams) (*ApiV2010AccountUsageUsageTriggerReadResponse, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Usage/Triggers.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Usage/Triggers.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Recurring != nil { - data.Set("Recurring", *params.Recurring) - } - if params != nil && params.TriggerBy != nil { - data.Set("TriggerBy", *params.TriggerBy) - } - if params != nil && params.UsageCategory != nil { - data.Set("UsageCategory", *params.UsageCategory) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.Recurring != nil { + data.Set("Recurring", *params.Recurring) + } + if params != nil && params.TriggerBy != nil { + data.Set("TriggerBy", *params.TriggerBy) + } + if params != nil && params.UsageCategory != nil { + data.Set("UsageCategory", *params.UsageCategory) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountUsageUsageTriggerReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountUsageUsageTriggerReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateAccountParams Optional parameters for the method 'UpdateAccount' type UpdateAccountParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - Status *string `json:"Status,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Status *string `json:"Status,omitempty"` } /* @@ -8375,44 +8373,44 @@ Modify the properties of a given Account @return ApiV2010Account */ func (c *DefaultApiService) UpdateAccount(sid string, params *UpdateAccountParams) (*ApiV2010Account, error) { - path := "/2010-04-01/Accounts/{Sid}.json" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{Sid}.json" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010Account{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010Account{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateAddressParams Optional parameters for the method 'UpdateAddress' type UpdateAddressParams struct { - AutoCorrectAddress *bool `json:"AutoCorrectAddress,omitempty"` - City *string `json:"City,omitempty"` - CustomerName *string `json:"CustomerName,omitempty"` - EmergencyEnabled *bool `json:"EmergencyEnabled,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PostalCode *string `json:"PostalCode,omitempty"` - Region *string `json:"Region,omitempty"` - Street *string `json:"Street,omitempty"` + AutoCorrectAddress *bool `json:"AutoCorrectAddress,omitempty"` + City *string `json:"City,omitempty"` + CustomerName *string `json:"CustomerName,omitempty"` + EmergencyEnabled *bool `json:"EmergencyEnabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PostalCode *string `json:"PostalCode,omitempty"` + Region *string `json:"Region,omitempty"` + Street *string `json:"Street,omitempty"` } /* @@ -8431,70 +8429,70 @@ UpdateAddress Method for UpdateAddress @return ApiV2010AccountAddress */ func (c *DefaultApiService) UpdateAddress(accountSid string, sid string, params *UpdateAddressParams) (*ApiV2010AccountAddress, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.AutoCorrectAddress != nil { - data.Set("AutoCorrectAddress", string(*params.AutoCorrectAddress)) - } - if params != nil && params.City != nil { - data.Set("City", *params.City) - } - if params != nil && params.CustomerName != nil { - data.Set("CustomerName", *params.CustomerName) - } - if params != nil && params.EmergencyEnabled != nil { - data.Set("EmergencyEnabled", string(*params.EmergencyEnabled)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.PostalCode != nil { - data.Set("PostalCode", *params.PostalCode) - } - if params != nil && params.Region != nil { - data.Set("Region", *params.Region) - } - if params != nil && params.Street != nil { - data.Set("Street", *params.Street) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountAddress{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AutoCorrectAddress != nil { + data.Set("AutoCorrectAddress", string(*params.AutoCorrectAddress)) + } + if params != nil && params.City != nil { + data.Set("City", *params.City) + } + if params != nil && params.CustomerName != nil { + data.Set("CustomerName", *params.CustomerName) + } + if params != nil && params.EmergencyEnabled != nil { + data.Set("EmergencyEnabled", string(*params.EmergencyEnabled)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PostalCode != nil { + data.Set("PostalCode", *params.PostalCode) + } + if params != nil && params.Region != nil { + data.Set("Region", *params.Region) + } + if params != nil && params.Street != nil { + data.Set("Street", *params.Street) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountAddress{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateApplicationParams Optional parameters for the method 'UpdateApplication' type UpdateApplicationParams struct { - ApiVersion *string `json:"ApiVersion,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - MessageStatusCallback *string `json:"MessageStatusCallback,omitempty"` - SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` - SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` - SmsMethod *string `json:"SmsMethod,omitempty"` - SmsStatusCallback *string `json:"SmsStatusCallback,omitempty"` - SmsUrl *string `json:"SmsUrl,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - VoiceCallerIdLookup *bool `json:"VoiceCallerIdLookup,omitempty"` - VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` - VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` - VoiceMethod *string `json:"VoiceMethod,omitempty"` - VoiceUrl *string `json:"VoiceUrl,omitempty"` + ApiVersion *string `json:"ApiVersion,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + MessageStatusCallback *string `json:"MessageStatusCallback,omitempty"` + SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` + SmsMethod *string `json:"SmsMethod,omitempty"` + SmsStatusCallback *string `json:"SmsStatusCallback,omitempty"` + SmsUrl *string `json:"SmsUrl,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + VoiceCallerIdLookup *bool `json:"VoiceCallerIdLookup,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` } /* @@ -8521,84 +8519,84 @@ Updates the application's properties @return ApiV2010AccountApplication */ func (c *DefaultApiService) UpdateApplication(accountSid string, sid string, params *UpdateApplicationParams) (*ApiV2010AccountApplication, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.ApiVersion != nil { - data.Set("ApiVersion", *params.ApiVersion) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.MessageStatusCallback != nil { - data.Set("MessageStatusCallback", *params.MessageStatusCallback) - } - if params != nil && params.SmsFallbackMethod != nil { - data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) - } - if params != nil && params.SmsFallbackUrl != nil { - data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) - } - if params != nil && params.SmsMethod != nil { - data.Set("SmsMethod", *params.SmsMethod) - } - if params != nil && params.SmsStatusCallback != nil { - data.Set("SmsStatusCallback", *params.SmsStatusCallback) - } - if params != nil && params.SmsUrl != nil { - data.Set("SmsUrl", *params.SmsUrl) - } - if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) - } - if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) - } - if params != nil && params.VoiceCallerIdLookup != nil { - data.Set("VoiceCallerIdLookup", string(*params.VoiceCallerIdLookup)) - } - if params != nil && params.VoiceFallbackMethod != nil { - data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) - } - if params != nil && params.VoiceFallbackUrl != nil { - data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) - } - if params != nil && params.VoiceMethod != nil { - data.Set("VoiceMethod", *params.VoiceMethod) - } - if params != nil && params.VoiceUrl != nil { - data.Set("VoiceUrl", *params.VoiceUrl) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountApplication{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ApiVersion != nil { + data.Set("ApiVersion", *params.ApiVersion) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.MessageStatusCallback != nil { + data.Set("MessageStatusCallback", *params.MessageStatusCallback) + } + if params != nil && params.SmsFallbackMethod != nil { + data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) + } + if params != nil && params.SmsFallbackUrl != nil { + data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) + } + if params != nil && params.SmsMethod != nil { + data.Set("SmsMethod", *params.SmsMethod) + } + if params != nil && params.SmsStatusCallback != nil { + data.Set("SmsStatusCallback", *params.SmsStatusCallback) + } + if params != nil && params.SmsUrl != nil { + data.Set("SmsUrl", *params.SmsUrl) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.VoiceCallerIdLookup != nil { + data.Set("VoiceCallerIdLookup", string(*params.VoiceCallerIdLookup)) + } + if params != nil && params.VoiceFallbackMethod != nil { + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + } + if params != nil && params.VoiceFallbackUrl != nil { + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + } + if params != nil && params.VoiceMethod != nil { + data.Set("VoiceMethod", *params.VoiceMethod) + } + if params != nil && params.VoiceUrl != nil { + data.Set("VoiceUrl", *params.VoiceUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountApplication{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateCallParams Optional parameters for the method 'UpdateCall' type UpdateCallParams struct { - FallbackMethod *string `json:"FallbackMethod,omitempty"` - FallbackUrl *string `json:"FallbackUrl,omitempty"` - Method *string `json:"Method,omitempty"` - Status *string `json:"Status,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - Twiml *string `json:"Twiml,omitempty"` - Url *string `json:"Url,omitempty"` + FallbackMethod *string `json:"FallbackMethod,omitempty"` + FallbackUrl *string `json:"FallbackUrl,omitempty"` + Method *string `json:"Method,omitempty"` + Status *string `json:"Status,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + Twiml *string `json:"Twiml,omitempty"` + Url *string `json:"Url,omitempty"` } /* @@ -8618,57 +8616,57 @@ Initiates a call redirect or terminates a call @return ApiV2010AccountCall */ func (c *DefaultApiService) UpdateCall(accountSid string, sid string, params *UpdateCallParams) (*ApiV2010AccountCall, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.FallbackMethod != nil { - data.Set("FallbackMethod", *params.FallbackMethod) - } - if params != nil && params.FallbackUrl != nil { - data.Set("FallbackUrl", *params.FallbackUrl) - } - if params != nil && params.Method != nil { - data.Set("Method", *params.Method) - } - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) - } - if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) - } - if params != nil && params.Twiml != nil { - data.Set("Twiml", *params.Twiml) - } - if params != nil && params.Url != nil { - data.Set("Url", *params.Url) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountCall{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FallbackMethod != nil { + data.Set("FallbackMethod", *params.FallbackMethod) + } + if params != nil && params.FallbackUrl != nil { + data.Set("FallbackUrl", *params.FallbackUrl) + } + if params != nil && params.Method != nil { + data.Set("Method", *params.Method) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.Twiml != nil { + data.Set("Twiml", *params.Twiml) + } + if params != nil && params.Url != nil { + data.Set("Url", *params.Url) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountCall{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateCallFeedbackParams Optional parameters for the method 'UpdateCallFeedback' type UpdateCallFeedbackParams struct { - Issue *[]string `json:"Issue,omitempty"` - QualityScore *int32 `json:"QualityScore,omitempty"` + Issue *[]string `json:"Issue,omitempty"` + QualityScore *int32 `json:"QualityScore,omitempty"` } /* @@ -8682,39 +8680,39 @@ Update a Feedback resource for a call @return ApiV2010AccountCallCallFeedback */ func (c *DefaultApiService) UpdateCallFeedback(accountSid string, callSid string, params *UpdateCallFeedbackParams) (*ApiV2010AccountCallCallFeedback, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Feedback.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Feedback.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Issue != nil { - data.Set("Issue", *params.Issue) - } - if params != nil && params.QualityScore != nil { - data.Set("QualityScore", string(*params.QualityScore)) - } + if params != nil && params.Issue != nil { + data.Set("Issue", *params.Issue) + } + if params != nil && params.QualityScore != nil { + data.Set("QualityScore", string(*params.QualityScore)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountCallCallFeedback{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountCallCallFeedback{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateCallRecordingParams Optional parameters for the method 'UpdateCallRecording' type UpdateCallRecordingParams struct { - PauseBehavior *string `json:"PauseBehavior,omitempty"` - Status *string `json:"Status,omitempty"` + PauseBehavior *string `json:"PauseBehavior,omitempty"` + Status *string `json:"Status,omitempty"` } /* @@ -8729,41 +8727,41 @@ Changes the status of the recording to paused, stopped, or in-progress. Note: Pa @return ApiV2010AccountCallCallRecording */ func (c *DefaultApiService) UpdateCallRecording(accountSid string, callSid string, sid string, params *UpdateCallRecordingParams) (*ApiV2010AccountCallCallRecording, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PauseBehavior != nil { - data.Set("PauseBehavior", *params.PauseBehavior) - } - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } + if params != nil && params.PauseBehavior != nil { + data.Set("PauseBehavior", *params.PauseBehavior) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountCallCallRecording{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountCallCallRecording{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateConferenceParams Optional parameters for the method 'UpdateConference' type UpdateConferenceParams struct { - AnnounceMethod *string `json:"AnnounceMethod,omitempty"` - AnnounceUrl *string `json:"AnnounceUrl,omitempty"` - Status *string `json:"Status,omitempty"` + AnnounceMethod *string `json:"AnnounceMethod,omitempty"` + AnnounceUrl *string `json:"AnnounceUrl,omitempty"` + Status *string `json:"Status,omitempty"` } /* @@ -8777,42 +8775,42 @@ UpdateConference Method for UpdateConference @return ApiV2010AccountConference */ func (c *DefaultApiService) UpdateConference(accountSid string, sid string, params *UpdateConferenceParams) (*ApiV2010AccountConference, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.AnnounceMethod != nil { - data.Set("AnnounceMethod", *params.AnnounceMethod) - } - if params != nil && params.AnnounceUrl != nil { - data.Set("AnnounceUrl", *params.AnnounceUrl) - } - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } + if params != nil && params.AnnounceMethod != nil { + data.Set("AnnounceMethod", *params.AnnounceMethod) + } + if params != nil && params.AnnounceUrl != nil { + data.Set("AnnounceUrl", *params.AnnounceUrl) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountConference{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountConference{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateConferenceRecordingParams Optional parameters for the method 'UpdateConferenceRecording' type UpdateConferenceRecordingParams struct { - PauseBehavior *string `json:"PauseBehavior,omitempty"` - Status *string `json:"Status,omitempty"` + PauseBehavior *string `json:"PauseBehavior,omitempty"` + Status *string `json:"Status,omitempty"` } /* @@ -8827,46 +8825,46 @@ Changes the status of the recording to paused, stopped, or in-progress. Note: To @return ApiV2010AccountConferenceConferenceRecording */ func (c *DefaultApiService) UpdateConferenceRecording(accountSid string, conferenceSid string, sid string, params *UpdateConferenceRecordingParams) (*ApiV2010AccountConferenceConferenceRecording, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ConferenceSid"+"}", conferenceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ConferenceSid"+"}", conferenceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PauseBehavior != nil { - data.Set("PauseBehavior", *params.PauseBehavior) - } - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } + if params != nil && params.PauseBehavior != nil { + data.Set("PauseBehavior", *params.PauseBehavior) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountConferenceConferenceRecording{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountConferenceConferenceRecording{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateConnectAppParams Optional parameters for the method 'UpdateConnectApp' type UpdateConnectAppParams struct { - AuthorizeRedirectUrl *string `json:"AuthorizeRedirectUrl,omitempty"` - CompanyName *string `json:"CompanyName,omitempty"` - DeauthorizeCallbackMethod *string `json:"DeauthorizeCallbackMethod,omitempty"` - DeauthorizeCallbackUrl *string `json:"DeauthorizeCallbackUrl,omitempty"` - Description *string `json:"Description,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - HomepageUrl *string `json:"HomepageUrl,omitempty"` - Permissions *[]string `json:"Permissions,omitempty"` + AuthorizeRedirectUrl *string `json:"AuthorizeRedirectUrl,omitempty"` + CompanyName *string `json:"CompanyName,omitempty"` + DeauthorizeCallbackMethod *string `json:"DeauthorizeCallbackMethod,omitempty"` + DeauthorizeCallbackUrl *string `json:"DeauthorizeCallbackUrl,omitempty"` + Description *string `json:"Description,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + HomepageUrl *string `json:"HomepageUrl,omitempty"` + Permissions *[]string `json:"Permissions,omitempty"` } /* @@ -8886,78 +8884,78 @@ Update a connect-app with the specified parameters @return ApiV2010AccountConnectApp */ func (c *DefaultApiService) UpdateConnectApp(accountSid string, sid string, params *UpdateConnectAppParams) (*ApiV2010AccountConnectApp, error) { - path := "/2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.AuthorizeRedirectUrl != nil { - data.Set("AuthorizeRedirectUrl", *params.AuthorizeRedirectUrl) - } - if params != nil && params.CompanyName != nil { - data.Set("CompanyName", *params.CompanyName) - } - if params != nil && params.DeauthorizeCallbackMethod != nil { - data.Set("DeauthorizeCallbackMethod", *params.DeauthorizeCallbackMethod) - } - if params != nil && params.DeauthorizeCallbackUrl != nil { - data.Set("DeauthorizeCallbackUrl", *params.DeauthorizeCallbackUrl) - } - if params != nil && params.Description != nil { - data.Set("Description", *params.Description) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.HomepageUrl != nil { - data.Set("HomepageUrl", *params.HomepageUrl) - } - if params != nil && params.Permissions != nil { - data.Set("Permissions", *params.Permissions) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountConnectApp{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AuthorizeRedirectUrl != nil { + data.Set("AuthorizeRedirectUrl", *params.AuthorizeRedirectUrl) + } + if params != nil && params.CompanyName != nil { + data.Set("CompanyName", *params.CompanyName) + } + if params != nil && params.DeauthorizeCallbackMethod != nil { + data.Set("DeauthorizeCallbackMethod", *params.DeauthorizeCallbackMethod) + } + if params != nil && params.DeauthorizeCallbackUrl != nil { + data.Set("DeauthorizeCallbackUrl", *params.DeauthorizeCallbackUrl) + } + if params != nil && params.Description != nil { + data.Set("Description", *params.Description) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.HomepageUrl != nil { + data.Set("HomepageUrl", *params.HomepageUrl) + } + if params != nil && params.Permissions != nil { + data.Set("Permissions", *params.Permissions) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountConnectApp{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateIncomingPhoneNumberParams Optional parameters for the method 'UpdateIncomingPhoneNumber' type UpdateIncomingPhoneNumberParams struct { - AccountSid *string `json:"AccountSid,omitempty"` - AddressSid *string `json:"AddressSid,omitempty"` - ApiVersion *string `json:"ApiVersion,omitempty"` - BundleSid *string `json:"BundleSid,omitempty"` - EmergencyAddressSid *string `json:"EmergencyAddressSid,omitempty"` - EmergencyStatus *string `json:"EmergencyStatus,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - IdentitySid *string `json:"IdentitySid,omitempty"` - SmsApplicationSid *string `json:"SmsApplicationSid,omitempty"` - SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` - SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` - SmsMethod *string `json:"SmsMethod,omitempty"` - SmsUrl *string `json:"SmsUrl,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - TrunkSid *string `json:"TrunkSid,omitempty"` - VoiceApplicationSid *string `json:"VoiceApplicationSid,omitempty"` - VoiceCallerIdLookup *bool `json:"VoiceCallerIdLookup,omitempty"` - VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` - VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` - VoiceMethod *string `json:"VoiceMethod,omitempty"` - VoiceReceiveMode *string `json:"VoiceReceiveMode,omitempty"` - VoiceUrl *string `json:"VoiceUrl,omitempty"` + AccountSid *string `json:"AccountSid,omitempty"` + AddressSid *string `json:"AddressSid,omitempty"` + ApiVersion *string `json:"ApiVersion,omitempty"` + BundleSid *string `json:"BundleSid,omitempty"` + EmergencyAddressSid *string `json:"EmergencyAddressSid,omitempty"` + EmergencyStatus *string `json:"EmergencyStatus,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IdentitySid *string `json:"IdentitySid,omitempty"` + SmsApplicationSid *string `json:"SmsApplicationSid,omitempty"` + SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` + SmsMethod *string `json:"SmsMethod,omitempty"` + SmsUrl *string `json:"SmsUrl,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + TrunkSid *string `json:"TrunkSid,omitempty"` + VoiceApplicationSid *string `json:"VoiceApplicationSid,omitempty"` + VoiceCallerIdLookup *bool `json:"VoiceCallerIdLookup,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceReceiveMode *string `json:"VoiceReceiveMode,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` } /* @@ -8992,101 +8990,101 @@ Update an incoming-phone-number instance. @return ApiV2010AccountIncomingPhoneNumber */ func (c *DefaultApiService) UpdateIncomingPhoneNumber(accountSid string, sid string, params *UpdateIncomingPhoneNumberParams) (*ApiV2010AccountIncomingPhoneNumber, error) { - path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.AccountSid != nil { - data.Set("AccountSid", *params.AccountSid) - } - if params != nil && params.AddressSid != nil { - data.Set("AddressSid", *params.AddressSid) - } - if params != nil && params.ApiVersion != nil { - data.Set("ApiVersion", *params.ApiVersion) - } - if params != nil && params.BundleSid != nil { - data.Set("BundleSid", *params.BundleSid) - } - if params != nil && params.EmergencyAddressSid != nil { - data.Set("EmergencyAddressSid", *params.EmergencyAddressSid) - } - if params != nil && params.EmergencyStatus != nil { - data.Set("EmergencyStatus", *params.EmergencyStatus) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.IdentitySid != nil { - data.Set("IdentitySid", *params.IdentitySid) - } - if params != nil && params.SmsApplicationSid != nil { - data.Set("SmsApplicationSid", *params.SmsApplicationSid) - } - if params != nil && params.SmsFallbackMethod != nil { - data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) - } - if params != nil && params.SmsFallbackUrl != nil { - data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) - } - if params != nil && params.SmsMethod != nil { - data.Set("SmsMethod", *params.SmsMethod) - } - if params != nil && params.SmsUrl != nil { - data.Set("SmsUrl", *params.SmsUrl) - } - if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) - } - if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) - } - if params != nil && params.TrunkSid != nil { - data.Set("TrunkSid", *params.TrunkSid) - } - if params != nil && params.VoiceApplicationSid != nil { - data.Set("VoiceApplicationSid", *params.VoiceApplicationSid) - } - if params != nil && params.VoiceCallerIdLookup != nil { - data.Set("VoiceCallerIdLookup", string(*params.VoiceCallerIdLookup)) - } - if params != nil && params.VoiceFallbackMethod != nil { - data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) - } - if params != nil && params.VoiceFallbackUrl != nil { - data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) - } - if params != nil && params.VoiceMethod != nil { - data.Set("VoiceMethod", *params.VoiceMethod) - } - if params != nil && params.VoiceReceiveMode != nil { - data.Set("VoiceReceiveMode", *params.VoiceReceiveMode) - } - if params != nil && params.VoiceUrl != nil { - data.Set("VoiceUrl", *params.VoiceUrl) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountIncomingPhoneNumber{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AccountSid != nil { + data.Set("AccountSid", *params.AccountSid) + } + if params != nil && params.AddressSid != nil { + data.Set("AddressSid", *params.AddressSid) + } + if params != nil && params.ApiVersion != nil { + data.Set("ApiVersion", *params.ApiVersion) + } + if params != nil && params.BundleSid != nil { + data.Set("BundleSid", *params.BundleSid) + } + if params != nil && params.EmergencyAddressSid != nil { + data.Set("EmergencyAddressSid", *params.EmergencyAddressSid) + } + if params != nil && params.EmergencyStatus != nil { + data.Set("EmergencyStatus", *params.EmergencyStatus) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.IdentitySid != nil { + data.Set("IdentitySid", *params.IdentitySid) + } + if params != nil && params.SmsApplicationSid != nil { + data.Set("SmsApplicationSid", *params.SmsApplicationSid) + } + if params != nil && params.SmsFallbackMethod != nil { + data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) + } + if params != nil && params.SmsFallbackUrl != nil { + data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) + } + if params != nil && params.SmsMethod != nil { + data.Set("SmsMethod", *params.SmsMethod) + } + if params != nil && params.SmsUrl != nil { + data.Set("SmsUrl", *params.SmsUrl) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.TrunkSid != nil { + data.Set("TrunkSid", *params.TrunkSid) + } + if params != nil && params.VoiceApplicationSid != nil { + data.Set("VoiceApplicationSid", *params.VoiceApplicationSid) + } + if params != nil && params.VoiceCallerIdLookup != nil { + data.Set("VoiceCallerIdLookup", string(*params.VoiceCallerIdLookup)) + } + if params != nil && params.VoiceFallbackMethod != nil { + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + } + if params != nil && params.VoiceFallbackUrl != nil { + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + } + if params != nil && params.VoiceMethod != nil { + data.Set("VoiceMethod", *params.VoiceMethod) + } + if params != nil && params.VoiceReceiveMode != nil { + data.Set("VoiceReceiveMode", *params.VoiceReceiveMode) + } + if params != nil && params.VoiceUrl != nil { + data.Set("VoiceUrl", *params.VoiceUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountIncomingPhoneNumber{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateKeyParams Optional parameters for the method 'UpdateKey' type UpdateKeyParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -9098,36 +9096,36 @@ UpdateKey Method for UpdateKey @return ApiV2010AccountKey */ func (c *DefaultApiService) UpdateKey(accountSid string, sid string, params *UpdateKeyParams) (*ApiV2010AccountKey, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountKey{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountKey{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateMemberParams Optional parameters for the method 'UpdateMember' type UpdateMemberParams struct { - Method *string `json:"Method,omitempty"` - Url *string `json:"Url,omitempty"` + Method *string `json:"Method,omitempty"` + Url *string `json:"Url,omitempty"` } /* @@ -9142,39 +9140,39 @@ Dequeue a member from a queue and have the member's call begin executing the @return ApiV2010AccountQueueMember */ func (c *DefaultApiService) UpdateMember(accountSid string, queueSid string, callSid string, params *UpdateMemberParams) (*ApiV2010AccountQueueMember, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"QueueSid"+"}", queueSid, -1) - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"QueueSid"+"}", queueSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Method != nil { - data.Set("Method", *params.Method) - } - if params != nil && params.Url != nil { - data.Set("Url", *params.Url) - } + if params != nil && params.Method != nil { + data.Set("Method", *params.Method) + } + if params != nil && params.Url != nil { + data.Set("Url", *params.Url) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountQueueMember{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountQueueMember{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateMessageParams Optional parameters for the method 'UpdateMessage' type UpdateMessageParams struct { - Body *string `json:"Body,omitempty"` + Body *string `json:"Body,omitempty"` } /* @@ -9187,35 +9185,35 @@ To redact a message-body from a post-flight message record, post to the message @return ApiV2010AccountMessage */ func (c *DefaultApiService) UpdateMessage(accountSid string, sid string, params *UpdateMessageParams) (*ApiV2010AccountMessage, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Body != nil { - data.Set("Body", *params.Body) - } + if params != nil && params.Body != nil { + data.Set("Body", *params.Body) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountMessage{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateOutgoingCallerIdParams Optional parameters for the method 'UpdateOutgoingCallerId' type UpdateOutgoingCallerIdParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -9228,46 +9226,46 @@ Updates the caller-id @return ApiV2010AccountOutgoingCallerId */ func (c *DefaultApiService) UpdateOutgoingCallerId(accountSid string, sid string, params *UpdateOutgoingCallerIdParams) (*ApiV2010AccountOutgoingCallerId, error) { - path := "/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountOutgoingCallerId{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountOutgoingCallerId{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateParticipantParams Optional parameters for the method 'UpdateParticipant' type UpdateParticipantParams struct { - AnnounceMethod *string `json:"AnnounceMethod,omitempty"` - AnnounceUrl *string `json:"AnnounceUrl,omitempty"` - BeepOnExit *bool `json:"BeepOnExit,omitempty"` - CallSidToCoach *string `json:"CallSidToCoach,omitempty"` - Coaching *bool `json:"Coaching,omitempty"` - EndConferenceOnExit *bool `json:"EndConferenceOnExit,omitempty"` - Hold *bool `json:"Hold,omitempty"` - HoldMethod *string `json:"HoldMethod,omitempty"` - HoldUrl *string `json:"HoldUrl,omitempty"` - Muted *bool `json:"Muted,omitempty"` - WaitMethod *string `json:"WaitMethod,omitempty"` - WaitUrl *string `json:"WaitUrl,omitempty"` + AnnounceMethod *string `json:"AnnounceMethod,omitempty"` + AnnounceUrl *string `json:"AnnounceUrl,omitempty"` + BeepOnExit *bool `json:"BeepOnExit,omitempty"` + CallSidToCoach *string `json:"CallSidToCoach,omitempty"` + Coaching *bool `json:"Coaching,omitempty"` + EndConferenceOnExit *bool `json:"EndConferenceOnExit,omitempty"` + Hold *bool `json:"Hold,omitempty"` + HoldMethod *string `json:"HoldMethod,omitempty"` + HoldUrl *string `json:"HoldUrl,omitempty"` + Muted *bool `json:"Muted,omitempty"` + WaitMethod *string `json:"WaitMethod,omitempty"` + WaitUrl *string `json:"WaitUrl,omitempty"` } /* @@ -9292,72 +9290,72 @@ Update the properties of the participant @return ApiV2010AccountConferenceParticipant */ func (c *DefaultApiService) UpdateParticipant(accountSid string, conferenceSid string, callSid string, params *UpdateParticipantParams) (*ApiV2010AccountConferenceParticipant, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ConferenceSid"+"}", conferenceSid, -1) - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.AnnounceMethod != nil { - data.Set("AnnounceMethod", *params.AnnounceMethod) - } - if params != nil && params.AnnounceUrl != nil { - data.Set("AnnounceUrl", *params.AnnounceUrl) - } - if params != nil && params.BeepOnExit != nil { - data.Set("BeepOnExit", string(*params.BeepOnExit)) - } - if params != nil && params.CallSidToCoach != nil { - data.Set("CallSidToCoach", *params.CallSidToCoach) - } - if params != nil && params.Coaching != nil { - data.Set("Coaching", string(*params.Coaching)) - } - if params != nil && params.EndConferenceOnExit != nil { - data.Set("EndConferenceOnExit", string(*params.EndConferenceOnExit)) - } - if params != nil && params.Hold != nil { - data.Set("Hold", string(*params.Hold)) - } - if params != nil && params.HoldMethod != nil { - data.Set("HoldMethod", *params.HoldMethod) - } - if params != nil && params.HoldUrl != nil { - data.Set("HoldUrl", *params.HoldUrl) - } - if params != nil && params.Muted != nil { - data.Set("Muted", string(*params.Muted)) - } - if params != nil && params.WaitMethod != nil { - data.Set("WaitMethod", *params.WaitMethod) - } - if params != nil && params.WaitUrl != nil { - data.Set("WaitUrl", *params.WaitUrl) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountConferenceParticipant{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"ConferenceSid"+"}", conferenceSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AnnounceMethod != nil { + data.Set("AnnounceMethod", *params.AnnounceMethod) + } + if params != nil && params.AnnounceUrl != nil { + data.Set("AnnounceUrl", *params.AnnounceUrl) + } + if params != nil && params.BeepOnExit != nil { + data.Set("BeepOnExit", string(*params.BeepOnExit)) + } + if params != nil && params.CallSidToCoach != nil { + data.Set("CallSidToCoach", *params.CallSidToCoach) + } + if params != nil && params.Coaching != nil { + data.Set("Coaching", string(*params.Coaching)) + } + if params != nil && params.EndConferenceOnExit != nil { + data.Set("EndConferenceOnExit", string(*params.EndConferenceOnExit)) + } + if params != nil && params.Hold != nil { + data.Set("Hold", string(*params.Hold)) + } + if params != nil && params.HoldMethod != nil { + data.Set("HoldMethod", *params.HoldMethod) + } + if params != nil && params.HoldUrl != nil { + data.Set("HoldUrl", *params.HoldUrl) + } + if params != nil && params.Muted != nil { + data.Set("Muted", string(*params.Muted)) + } + if params != nil && params.WaitMethod != nil { + data.Set("WaitMethod", *params.WaitMethod) + } + if params != nil && params.WaitUrl != nil { + data.Set("WaitUrl", *params.WaitUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountConferenceParticipant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdatePaymentsParams Optional parameters for the method 'UpdatePayments' type UpdatePaymentsParams struct { - Capture *string `json:"Capture,omitempty"` - IdempotencyKey *string `json:"IdempotencyKey,omitempty"` - Status *string `json:"Status,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` + Capture *string `json:"Capture,omitempty"` + IdempotencyKey *string `json:"IdempotencyKey,omitempty"` + Status *string `json:"Status,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` } /* @@ -9374,46 +9372,46 @@ update an instance of payments with different phases of payment flows. @return ApiV2010AccountCallPayments */ func (c *DefaultApiService) UpdatePayments(accountSid string, callSid string, sid string, params *UpdatePaymentsParams) (*ApiV2010AccountCallPayments, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Capture != nil { - data.Set("Capture", *params.Capture) - } - if params != nil && params.IdempotencyKey != nil { - data.Set("IdempotencyKey", *params.IdempotencyKey) - } - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountCallPayments{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Capture != nil { + data.Set("Capture", *params.Capture) + } + if params != nil && params.IdempotencyKey != nil { + data.Set("IdempotencyKey", *params.IdempotencyKey) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountCallPayments{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateQueueParams Optional parameters for the method 'UpdateQueue' type UpdateQueueParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - MaxSize *int32 `json:"MaxSize,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + MaxSize *int32 `json:"MaxSize,omitempty"` } /* @@ -9427,43 +9425,43 @@ Update the queue with the new parameters @return ApiV2010AccountQueue */ func (c *DefaultApiService) UpdateQueue(accountSid string, sid string, params *UpdateQueueParams) (*ApiV2010AccountQueue, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.MaxSize != nil { - data.Set("MaxSize", string(*params.MaxSize)) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.MaxSize != nil { + data.Set("MaxSize", string(*params.MaxSize)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountQueue{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountQueue{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateShortCodeParams Optional parameters for the method 'UpdateShortCode' type UpdateShortCodeParams struct { - ApiVersion *string `json:"ApiVersion,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` - SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` - SmsMethod *string `json:"SmsMethod,omitempty"` - SmsUrl *string `json:"SmsUrl,omitempty"` + ApiVersion *string `json:"ApiVersion,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` + SmsMethod *string `json:"SmsMethod,omitempty"` + SmsUrl *string `json:"SmsUrl,omitempty"` } /* @@ -9481,50 +9479,50 @@ Update a short code with the following parameters @return ApiV2010AccountShortCode */ func (c *DefaultApiService) UpdateShortCode(accountSid string, sid string, params *UpdateShortCodeParams) (*ApiV2010AccountShortCode, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.ApiVersion != nil { - data.Set("ApiVersion", *params.ApiVersion) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.SmsFallbackMethod != nil { - data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) - } - if params != nil && params.SmsFallbackUrl != nil { - data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) - } - if params != nil && params.SmsMethod != nil { - data.Set("SmsMethod", *params.SmsMethod) - } - if params != nil && params.SmsUrl != nil { - data.Set("SmsUrl", *params.SmsUrl) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountShortCode{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ApiVersion != nil { + data.Set("ApiVersion", *params.ApiVersion) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.SmsFallbackMethod != nil { + data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) + } + if params != nil && params.SmsFallbackUrl != nil { + data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) + } + if params != nil && params.SmsMethod != nil { + data.Set("SmsMethod", *params.SmsMethod) + } + if params != nil && params.SmsUrl != nil { + data.Set("SmsUrl", *params.SmsUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountShortCode{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateSigningKeyParams Optional parameters for the method 'UpdateSigningKey' type UpdateSigningKeyParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -9536,35 +9534,35 @@ UpdateSigningKey Method for UpdateSigningKey @return ApiV2010AccountSigningKey */ func (c *DefaultApiService) UpdateSigningKey(accountSid string, sid string, params *UpdateSigningKeyParams) (*ApiV2010AccountSigningKey, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountSigningKey{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountSigningKey{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateSipCredentialParams Optional parameters for the method 'UpdateSipCredential' type UpdateSipCredentialParams struct { - Password *string `json:"Password,omitempty"` + Password *string `json:"Password,omitempty"` } /* @@ -9578,36 +9576,36 @@ Update a credential resource. @return ApiV2010AccountSipSipCredentialListSipCredential */ func (c *DefaultApiService) UpdateSipCredential(accountSid string, credentialListSid string, sid string, params *UpdateSipCredentialParams) (*ApiV2010AccountSipSipCredentialListSipCredential, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CredentialListSid"+"}", credentialListSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"CredentialListSid"+"}", credentialListSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Password != nil { - data.Set("Password", *params.Password) - } + if params != nil && params.Password != nil { + data.Set("Password", *params.Password) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountSipSipCredentialListSipCredential{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountSipSipCredentialListSipCredential{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateSipCredentialListParams Optional parameters for the method 'UpdateSipCredentialList' type UpdateSipCredentialListParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -9620,47 +9618,47 @@ Update a Credential List @return ApiV2010AccountSipSipCredentialList */ func (c *DefaultApiService) UpdateSipCredentialList(accountSid string, sid string, params *UpdateSipCredentialListParams) (*ApiV2010AccountSipSipCredentialList, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountSipSipCredentialList{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountSipSipCredentialList{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateSipDomainParams Optional parameters for the method 'UpdateSipDomain' type UpdateSipDomainParams struct { - ByocTrunkSid *string `json:"ByocTrunkSid,omitempty"` - DomainName *string `json:"DomainName,omitempty"` - EmergencyCallerSid *string `json:"EmergencyCallerSid,omitempty"` - EmergencyCallingEnabled *bool `json:"EmergencyCallingEnabled,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Secure *bool `json:"Secure,omitempty"` - SipRegistration *bool `json:"SipRegistration,omitempty"` - VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` - VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` - VoiceMethod *string `json:"VoiceMethod,omitempty"` - VoiceStatusCallbackMethod *string `json:"VoiceStatusCallbackMethod,omitempty"` - VoiceStatusCallbackUrl *string `json:"VoiceStatusCallbackUrl,omitempty"` - VoiceUrl *string `json:"VoiceUrl,omitempty"` + ByocTrunkSid *string `json:"ByocTrunkSid,omitempty"` + DomainName *string `json:"DomainName,omitempty"` + EmergencyCallerSid *string `json:"EmergencyCallerSid,omitempty"` + EmergencyCallingEnabled *bool `json:"EmergencyCallingEnabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Secure *bool `json:"Secure,omitempty"` + SipRegistration *bool `json:"SipRegistration,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceStatusCallbackMethod *string `json:"VoiceStatusCallbackMethod,omitempty"` + VoiceStatusCallbackUrl *string `json:"VoiceStatusCallbackUrl,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` } /* @@ -9685,71 +9683,71 @@ Update the attributes of a domain @return ApiV2010AccountSipSipDomain */ func (c *DefaultApiService) UpdateSipDomain(accountSid string, sid string, params *UpdateSipDomainParams) (*ApiV2010AccountSipSipDomain, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.ByocTrunkSid != nil { - data.Set("ByocTrunkSid", *params.ByocTrunkSid) - } - if params != nil && params.DomainName != nil { - data.Set("DomainName", *params.DomainName) - } - if params != nil && params.EmergencyCallerSid != nil { - data.Set("EmergencyCallerSid", *params.EmergencyCallerSid) - } - if params != nil && params.EmergencyCallingEnabled != nil { - data.Set("EmergencyCallingEnabled", string(*params.EmergencyCallingEnabled)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Secure != nil { - data.Set("Secure", string(*params.Secure)) - } - if params != nil && params.SipRegistration != nil { - data.Set("SipRegistration", string(*params.SipRegistration)) - } - if params != nil && params.VoiceFallbackMethod != nil { - data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) - } - if params != nil && params.VoiceFallbackUrl != nil { - data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) - } - if params != nil && params.VoiceMethod != nil { - data.Set("VoiceMethod", *params.VoiceMethod) - } - if params != nil && params.VoiceStatusCallbackMethod != nil { - data.Set("VoiceStatusCallbackMethod", *params.VoiceStatusCallbackMethod) - } - if params != nil && params.VoiceStatusCallbackUrl != nil { - data.Set("VoiceStatusCallbackUrl", *params.VoiceStatusCallbackUrl) - } - if params != nil && params.VoiceUrl != nil { - data.Set("VoiceUrl", *params.VoiceUrl) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ApiV2010AccountSipSipDomain{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ByocTrunkSid != nil { + data.Set("ByocTrunkSid", *params.ByocTrunkSid) + } + if params != nil && params.DomainName != nil { + data.Set("DomainName", *params.DomainName) + } + if params != nil && params.EmergencyCallerSid != nil { + data.Set("EmergencyCallerSid", *params.EmergencyCallerSid) + } + if params != nil && params.EmergencyCallingEnabled != nil { + data.Set("EmergencyCallingEnabled", string(*params.EmergencyCallingEnabled)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Secure != nil { + data.Set("Secure", string(*params.Secure)) + } + if params != nil && params.SipRegistration != nil { + data.Set("SipRegistration", string(*params.SipRegistration)) + } + if params != nil && params.VoiceFallbackMethod != nil { + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + } + if params != nil && params.VoiceFallbackUrl != nil { + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + } + if params != nil && params.VoiceMethod != nil { + data.Set("VoiceMethod", *params.VoiceMethod) + } + if params != nil && params.VoiceStatusCallbackMethod != nil { + data.Set("VoiceStatusCallbackMethod", *params.VoiceStatusCallbackMethod) + } + if params != nil && params.VoiceStatusCallbackUrl != nil { + data.Set("VoiceStatusCallbackUrl", *params.VoiceStatusCallbackUrl) + } + if params != nil && params.VoiceUrl != nil { + data.Set("VoiceUrl", *params.VoiceUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ApiV2010AccountSipSipDomain{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateSipIpAccessControlListParams Optional parameters for the method 'UpdateSipIpAccessControlList' type UpdateSipIpAccessControlListParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -9762,37 +9760,37 @@ Rename an IpAccessControlList @return ApiV2010AccountSipSipIpAccessControlList */ func (c *DefaultApiService) UpdateSipIpAccessControlList(accountSid string, sid string, params *UpdateSipIpAccessControlListParams) (*ApiV2010AccountSipSipIpAccessControlList, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountSipSipIpAccessControlList{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountSipSipIpAccessControlList{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateSipIpAddressParams Optional parameters for the method 'UpdateSipIpAddress' type UpdateSipIpAddressParams struct { - CidrPrefixLength *int32 `json:"CidrPrefixLength,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - IpAddress *string `json:"IpAddress,omitempty"` + CidrPrefixLength *int32 `json:"CidrPrefixLength,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IpAddress *string `json:"IpAddress,omitempty"` } /* @@ -9808,44 +9806,44 @@ Update an IpAddress resource. @return ApiV2010AccountSipSipIpAccessControlListSipIpAddress */ func (c *DefaultApiService) UpdateSipIpAddress(accountSid string, ipAccessControlListSid string, sid string, params *UpdateSipIpAddressParams) (*ApiV2010AccountSipSipIpAccessControlListSipIpAddress, error) { - path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"IpAccessControlListSid"+"}", ipAccessControlListSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"IpAccessControlListSid"+"}", ipAccessControlListSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.CidrPrefixLength != nil { - data.Set("CidrPrefixLength", string(*params.CidrPrefixLength)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.IpAddress != nil { - data.Set("IpAddress", *params.IpAddress) - } + if params != nil && params.CidrPrefixLength != nil { + data.Set("CidrPrefixLength", string(*params.CidrPrefixLength)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.IpAddress != nil { + data.Set("IpAddress", *params.IpAddress) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountSipSipIpAccessControlListSipIpAddress{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountSipSipIpAccessControlListSipIpAddress{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateUsageTriggerParams Optional parameters for the method 'UpdateUsageTrigger' type UpdateUsageTriggerParams struct { - CallbackMethod *string `json:"CallbackMethod,omitempty"` - CallbackUrl *string `json:"CallbackUrl,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` + CallbackMethod *string `json:"CallbackMethod,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -9860,35 +9858,35 @@ Update an instance of a usage trigger @return ApiV2010AccountUsageUsageTrigger */ func (c *DefaultApiService) UpdateUsageTrigger(accountSid string, sid string, params *UpdateUsageTriggerParams) (*ApiV2010AccountUsageUsageTrigger, error) { - path := "/2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json" + path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.CallbackMethod != nil { - data.Set("CallbackMethod", *params.CallbackMethod) - } - if params != nil && params.CallbackUrl != nil { - data.Set("CallbackUrl", *params.CallbackUrl) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + if params != nil && params.CallbackMethod != nil { + data.Set("CallbackMethod", *params.CallbackMethod) + } + if params != nil && params.CallbackUrl != nil { + data.Set("CallbackUrl", *params.CallbackUrl) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ApiV2010AccountUsageUsageTrigger{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ApiV2010AccountUsageUsageTrigger{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } diff --git a/rest/api/v2010/response.go b/rest/api/v2010/response.go index 15c56f9d3..306f2676e 100644 --- a/rest/api/v2010/response.go +++ b/rest/api/v2010/response.go @@ -32,16 +32,14 @@ type APIResponse struct { Payload []byte `json:"-"` } -// Response returns a new APIResponse object. -func Response(r *http.Response) *APIResponse { - +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { response := &APIResponse{Response: r} return response } -// ResponseWithError returns a new APIResponse object with the provided error message. -func ResponseWithError(errorMessage string) *APIResponse { - +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { response := &APIResponse{Message: errorMessage} return response } diff --git a/rest/autopilot/v1/api_default.go b/rest/autopilot/v1/api_default.go index d595e9afe..00bf942c3 100644 --- a/rest/autopilot/v1/api_default.go +++ b/rest/autopilot/v1/api_default.go @@ -13,32 +13,30 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type DefaultApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewDefaultApiService(client *twilio.Client) *DefaultApiService { - return &DefaultApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &DefaultApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } // CreateAssistantParams Optional parameters for the method 'CreateAssistant' type CreateAssistantParams struct { - CallbackEvents *string `json:"CallbackEvents,omitempty"` - CallbackUrl *string `json:"CallbackUrl,omitempty"` - Defaults *map[string]interface{} `json:"Defaults,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - LogQueries *bool `json:"LogQueries,omitempty"` - StyleSheet *map[string]interface{} `json:"StyleSheet,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + CallbackEvents *string `json:"CallbackEvents,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + Defaults *map[string]interface{} `json:"Defaults,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + LogQueries *bool `json:"LogQueries,omitempty"` + StyleSheet *map[string]interface{} `json:"StyleSheet,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -54,64 +52,64 @@ CreateAssistant Method for CreateAssistant @return AutopilotV1Assistant */ func (c *DefaultApiService) CreateAssistant(params *CreateAssistantParams) (*AutopilotV1Assistant, error) { - path := "/v1/Assistants" - - data := url.Values{} - headers := 0 - - if params != nil && params.CallbackEvents != nil { - data.Set("CallbackEvents", *params.CallbackEvents) - } - if params != nil && params.CallbackUrl != nil { - data.Set("CallbackUrl", *params.CallbackUrl) - } - if params != nil && params.Defaults != nil { - v, err := json.Marshal(params.Defaults) - - if err != nil { - return nil, err - } - - data.Set("Defaults", string(v)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.LogQueries != nil { - data.Set("LogQueries", string(*params.LogQueries)) - } - if params != nil && params.StyleSheet != nil { - v, err := json.Marshal(params.StyleSheet) - - if err != nil { - return nil, err - } - - data.Set("StyleSheet", string(v)) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &AutopilotV1Assistant{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Assistants" + + data := url.Values{} + headers := 0 + + if params != nil && params.CallbackEvents != nil { + data.Set("CallbackEvents", *params.CallbackEvents) + } + if params != nil && params.CallbackUrl != nil { + data.Set("CallbackUrl", *params.CallbackUrl) + } + if params != nil && params.Defaults != nil { + v, err := json.Marshal(params.Defaults) + + if err != nil { + return nil, err + } + + data.Set("Defaults", string(v)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.LogQueries != nil { + data.Set("LogQueries", string(*params.LogQueries)) + } + if params != nil && params.StyleSheet != nil { + v, err := json.Marshal(params.StyleSheet) + + if err != nil { + return nil, err + } + + data.Set("StyleSheet", string(v)) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1Assistant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateFieldParams Optional parameters for the method 'CreateField' type CreateFieldParams struct { - FieldType *string `json:"FieldType,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + FieldType *string `json:"FieldType,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -124,39 +122,39 @@ CreateField Method for CreateField @return AutopilotV1AssistantTaskField */ func (c *DefaultApiService) CreateField(assistantSid string, taskSid string, params *CreateFieldParams) (*AutopilotV1AssistantTaskField, error) { - path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FieldType != nil { - data.Set("FieldType", *params.FieldType) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } + if params != nil && params.FieldType != nil { + data.Set("FieldType", *params.FieldType) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantTaskField{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantTaskField{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateFieldTypeParams Optional parameters for the method 'CreateFieldType' type CreateFieldTypeParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -168,39 +166,39 @@ CreateFieldType Method for CreateFieldType @return AutopilotV1AssistantFieldType */ func (c *DefaultApiService) CreateFieldType(assistantSid string, params *CreateFieldTypeParams) (*AutopilotV1AssistantFieldType, error) { - path := "/v1/Assistants/{AssistantSid}/FieldTypes" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path := "/v1/Assistants/{AssistantSid}/FieldTypes" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantFieldType{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantFieldType{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateFieldValueParams Optional parameters for the method 'CreateFieldValue' type CreateFieldValueParams struct { - Language *string `json:"Language,omitempty"` - SynonymOf *string `json:"SynonymOf,omitempty"` - Value *string `json:"Value,omitempty"` + Language *string `json:"Language,omitempty"` + SynonymOf *string `json:"SynonymOf,omitempty"` + Value *string `json:"Value,omitempty"` } /* @@ -214,42 +212,42 @@ CreateFieldValue Method for CreateFieldValue @return AutopilotV1AssistantFieldTypeFieldValue */ func (c *DefaultApiService) CreateFieldValue(assistantSid string, fieldTypeSid string, params *CreateFieldValueParams) (*AutopilotV1AssistantFieldTypeFieldValue, error) { - path := "/v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"FieldTypeSid"+"}", fieldTypeSid, -1) + path := "/v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"FieldTypeSid"+"}", fieldTypeSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Language != nil { - data.Set("Language", *params.Language) - } - if params != nil && params.SynonymOf != nil { - data.Set("SynonymOf", *params.SynonymOf) - } - if params != nil && params.Value != nil { - data.Set("Value", *params.Value) - } + if params != nil && params.Language != nil { + data.Set("Language", *params.Language) + } + if params != nil && params.SynonymOf != nil { + data.Set("SynonymOf", *params.SynonymOf) + } + if params != nil && params.Value != nil { + data.Set("Value", *params.Value) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantFieldTypeFieldValue{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantFieldTypeFieldValue{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateModelBuildParams Optional parameters for the method 'CreateModelBuild' type CreateModelBuildParams struct { - StatusCallback *string `json:"StatusCallback,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -261,40 +259,40 @@ CreateModelBuild Method for CreateModelBuild @return AutopilotV1AssistantModelBuild */ func (c *DefaultApiService) CreateModelBuild(assistantSid string, params *CreateModelBuildParams) (*AutopilotV1AssistantModelBuild, error) { - path := "/v1/Assistants/{AssistantSid}/ModelBuilds" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path := "/v1/Assistants/{AssistantSid}/ModelBuilds" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantModelBuild{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantModelBuild{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateQueryParams Optional parameters for the method 'CreateQuery' type CreateQueryParams struct { - Language *string `json:"Language,omitempty"` - ModelBuild *string `json:"ModelBuild,omitempty"` - Query *string `json:"Query,omitempty"` - Tasks *string `json:"Tasks,omitempty"` + Language *string `json:"Language,omitempty"` + ModelBuild *string `json:"ModelBuild,omitempty"` + Query *string `json:"Query,omitempty"` + Tasks *string `json:"Tasks,omitempty"` } /* @@ -308,45 +306,45 @@ CreateQuery Method for CreateQuery @return AutopilotV1AssistantQuery */ func (c *DefaultApiService) CreateQuery(assistantSid string, params *CreateQueryParams) (*AutopilotV1AssistantQuery, error) { - path := "/v1/Assistants/{AssistantSid}/Queries" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path := "/v1/Assistants/{AssistantSid}/Queries" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Language != nil { - data.Set("Language", *params.Language) - } - if params != nil && params.ModelBuild != nil { - data.Set("ModelBuild", *params.ModelBuild) - } - if params != nil && params.Query != nil { - data.Set("Query", *params.Query) - } - if params != nil && params.Tasks != nil { - data.Set("Tasks", *params.Tasks) - } + if params != nil && params.Language != nil { + data.Set("Language", *params.Language) + } + if params != nil && params.ModelBuild != nil { + data.Set("ModelBuild", *params.ModelBuild) + } + if params != nil && params.Query != nil { + data.Set("Query", *params.Query) + } + if params != nil && params.Tasks != nil { + data.Set("Tasks", *params.Tasks) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantQuery{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantQuery{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateSampleParams Optional parameters for the method 'CreateSample' type CreateSampleParams struct { - Language *string `json:"Language,omitempty"` - SourceChannel *string `json:"SourceChannel,omitempty"` - TaggedText *string `json:"TaggedText,omitempty"` + Language *string `json:"Language,omitempty"` + SourceChannel *string `json:"SourceChannel,omitempty"` + TaggedText *string `json:"TaggedText,omitempty"` } /* @@ -360,44 +358,44 @@ CreateSample Method for CreateSample @return AutopilotV1AssistantTaskSample */ func (c *DefaultApiService) CreateSample(assistantSid string, taskSid string, params *CreateSampleParams) (*AutopilotV1AssistantTaskSample, error) { - path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Language != nil { - data.Set("Language", *params.Language) - } - if params != nil && params.SourceChannel != nil { - data.Set("SourceChannel", *params.SourceChannel) - } - if params != nil && params.TaggedText != nil { - data.Set("TaggedText", *params.TaggedText) - } + if params != nil && params.Language != nil { + data.Set("Language", *params.Language) + } + if params != nil && params.SourceChannel != nil { + data.Set("SourceChannel", *params.SourceChannel) + } + if params != nil && params.TaggedText != nil { + data.Set("TaggedText", *params.TaggedText) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantTaskSample{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantTaskSample{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateTaskParams Optional parameters for the method 'CreateTask' type CreateTaskParams struct { - Actions *map[string]interface{} `json:"Actions,omitempty"` - ActionsUrl *string `json:"ActionsUrl,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + Actions *map[string]interface{} `json:"Actions,omitempty"` + ActionsUrl *string `json:"ActionsUrl,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -411,52 +409,52 @@ CreateTask Method for CreateTask @return AutopilotV1AssistantTask */ func (c *DefaultApiService) CreateTask(assistantSid string, params *CreateTaskParams) (*AutopilotV1AssistantTask, error) { - path := "/v1/Assistants/{AssistantSid}/Tasks" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path := "/v1/Assistants/{AssistantSid}/Tasks" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Actions != nil { - v, err := json.Marshal(params.Actions) + if params != nil && params.Actions != nil { + v, err := json.Marshal(params.Actions) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("Actions", string(v)) - } - if params != nil && params.ActionsUrl != nil { - data.Set("ActionsUrl", *params.ActionsUrl) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } + data.Set("Actions", string(v)) + } + if params != nil && params.ActionsUrl != nil { + data.Set("ActionsUrl", *params.ActionsUrl) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantTask{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantTask{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateWebhookParams Optional parameters for the method 'CreateWebhook' type CreateWebhookParams struct { - Events *string `json:"Events,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` - WebhookMethod *string `json:"WebhookMethod,omitempty"` - WebhookUrl *string `json:"WebhookUrl,omitempty"` + Events *string `json:"Events,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + WebhookMethod *string `json:"WebhookMethod,omitempty"` + WebhookUrl *string `json:"WebhookUrl,omitempty"` } /* @@ -470,39 +468,39 @@ CreateWebhook Method for CreateWebhook @return AutopilotV1AssistantWebhook */ func (c *DefaultApiService) CreateWebhook(assistantSid string, params *CreateWebhookParams) (*AutopilotV1AssistantWebhook, error) { - path := "/v1/Assistants/{AssistantSid}/Webhooks" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path := "/v1/Assistants/{AssistantSid}/Webhooks" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Events != nil { - data.Set("Events", *params.Events) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } - if params != nil && params.WebhookMethod != nil { - data.Set("WebhookMethod", *params.WebhookMethod) - } - if params != nil && params.WebhookUrl != nil { - data.Set("WebhookUrl", *params.WebhookUrl) - } + if params != nil && params.Events != nil { + data.Set("Events", *params.Events) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + if params != nil && params.WebhookMethod != nil { + data.Set("WebhookMethod", *params.WebhookMethod) + } + if params != nil && params.WebhookUrl != nil { + data.Set("WebhookUrl", *params.WebhookUrl) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantWebhook{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -510,22 +508,22 @@ DeleteAssistant Method for DeleteAssistant * @param sid The Twilio-provided string that uniquely identifies the Assistant resource to delete. */ func (c *DefaultApiService) DeleteAssistant(sid string) (error) { - path := "/v1/Assistants/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Assistants/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -535,24 +533,24 @@ DeleteField Method for DeleteField * @param sid The Twilio-provided string that uniquely identifies the Field resource to delete. */ func (c *DefaultApiService) DeleteField(assistantSid string, taskSid string, sid string) (error) { - path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -561,23 +559,23 @@ DeleteFieldType Method for DeleteFieldType * @param sid The Twilio-provided string that uniquely identifies the FieldType resource to delete. */ func (c *DefaultApiService) DeleteFieldType(assistantSid string, sid string) (error) { - path := "/v1/Assistants/{AssistantSid}/FieldTypes/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Assistants/{AssistantSid}/FieldTypes/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -587,24 +585,24 @@ DeleteFieldValue Method for DeleteFieldValue * @param sid The Twilio-provided string that uniquely identifies the FieldValue resource to delete. */ func (c *DefaultApiService) DeleteFieldValue(assistantSid string, fieldTypeSid string, sid string) (error) { - path := "/v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"FieldTypeSid"+"}", fieldTypeSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"FieldTypeSid"+"}", fieldTypeSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -613,23 +611,23 @@ DeleteModelBuild Method for DeleteModelBuild * @param sid The Twilio-provided string that uniquely identifies the ModelBuild resource to delete. */ func (c *DefaultApiService) DeleteModelBuild(assistantSid string, sid string) (error) { - path := "/v1/Assistants/{AssistantSid}/ModelBuilds/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Assistants/{AssistantSid}/ModelBuilds/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -638,23 +636,23 @@ DeleteQuery Method for DeleteQuery * @param sid The Twilio-provided string that uniquely identifies the Query resource to delete. */ func (c *DefaultApiService) DeleteQuery(assistantSid string, sid string) (error) { - path := "/v1/Assistants/{AssistantSid}/Queries/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Assistants/{AssistantSid}/Queries/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -664,24 +662,24 @@ DeleteSample Method for DeleteSample * @param sid The Twilio-provided string that uniquely identifies the Sample resource to delete. */ func (c *DefaultApiService) DeleteSample(assistantSid string, taskSid string, sid string) (error) { - path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -690,23 +688,23 @@ DeleteTask Method for DeleteTask * @param sid The Twilio-provided string that uniquely identifies the Task resource to delete. */ func (c *DefaultApiService) DeleteTask(assistantSid string, sid string) (error) { - path := "/v1/Assistants/{AssistantSid}/Tasks/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Assistants/{AssistantSid}/Tasks/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -715,23 +713,23 @@ DeleteWebhook Method for DeleteWebhook * @param sid The Twilio-provided string that uniquely identifies the Webhook resource to delete. */ func (c *DefaultApiService) DeleteWebhook(assistantSid string, sid string) (error) { - path := "/v1/Assistants/{AssistantSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Assistants/{AssistantSid}/Webhooks/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -740,27 +738,27 @@ FetchAssistant Method for FetchAssistant @return AutopilotV1Assistant */ func (c *DefaultApiService) FetchAssistant(sid string) (*AutopilotV1Assistant, error) { - path := "/v1/Assistants/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Assistants/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1Assistant{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1Assistant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -769,27 +767,27 @@ FetchDefaults Method for FetchDefaults @return AutopilotV1AssistantDefaults */ func (c *DefaultApiService) FetchDefaults(assistantSid string) (*AutopilotV1AssistantDefaults, error) { - path := "/v1/Assistants/{AssistantSid}/Defaults" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path := "/v1/Assistants/{AssistantSid}/Defaults" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantDefaults{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantDefaults{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -799,28 +797,28 @@ FetchDialogue Method for FetchDialogue @return AutopilotV1AssistantDialogue */ func (c *DefaultApiService) FetchDialogue(assistantSid string, sid string) (*AutopilotV1AssistantDialogue, error) { - path := "/v1/Assistants/{AssistantSid}/Dialogues/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Assistants/{AssistantSid}/Dialogues/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantDialogue{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantDialogue{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -831,29 +829,29 @@ FetchField Method for FetchField @return AutopilotV1AssistantTaskField */ func (c *DefaultApiService) FetchField(assistantSid string, taskSid string, sid string) (*AutopilotV1AssistantTaskField, error) { - path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantTaskField{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantTaskField{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -863,28 +861,28 @@ FetchFieldType Method for FetchFieldType @return AutopilotV1AssistantFieldType */ func (c *DefaultApiService) FetchFieldType(assistantSid string, sid string) (*AutopilotV1AssistantFieldType, error) { - path := "/v1/Assistants/{AssistantSid}/FieldTypes/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Assistants/{AssistantSid}/FieldTypes/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantFieldType{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantFieldType{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -895,29 +893,29 @@ FetchFieldValue Method for FetchFieldValue @return AutopilotV1AssistantFieldTypeFieldValue */ func (c *DefaultApiService) FetchFieldValue(assistantSid string, fieldTypeSid string, sid string) (*AutopilotV1AssistantFieldTypeFieldValue, error) { - path := "/v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"FieldTypeSid"+"}", fieldTypeSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"FieldTypeSid"+"}", fieldTypeSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantFieldTypeFieldValue{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantFieldTypeFieldValue{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -927,28 +925,28 @@ FetchModelBuild Method for FetchModelBuild @return AutopilotV1AssistantModelBuild */ func (c *DefaultApiService) FetchModelBuild(assistantSid string, sid string) (*AutopilotV1AssistantModelBuild, error) { - path := "/v1/Assistants/{AssistantSid}/ModelBuilds/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Assistants/{AssistantSid}/ModelBuilds/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantModelBuild{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantModelBuild{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -958,28 +956,28 @@ FetchQuery Method for FetchQuery @return AutopilotV1AssistantQuery */ func (c *DefaultApiService) FetchQuery(assistantSid string, sid string) (*AutopilotV1AssistantQuery, error) { - path := "/v1/Assistants/{AssistantSid}/Queries/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Assistants/{AssistantSid}/Queries/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantQuery{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantQuery{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -990,29 +988,29 @@ FetchSample Method for FetchSample @return AutopilotV1AssistantTaskSample */ func (c *DefaultApiService) FetchSample(assistantSid string, taskSid string, sid string) (*AutopilotV1AssistantTaskSample, error) { - path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantTaskSample{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantTaskSample{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1022,27 +1020,27 @@ Returns Style sheet JSON object for the Assistant @return AutopilotV1AssistantStyleSheet */ func (c *DefaultApiService) FetchStyleSheet(assistantSid string) (*AutopilotV1AssistantStyleSheet, error) { - path := "/v1/Assistants/{AssistantSid}/StyleSheet" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path := "/v1/Assistants/{AssistantSid}/StyleSheet" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantStyleSheet{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantStyleSheet{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1052,28 +1050,28 @@ FetchTask Method for FetchTask @return AutopilotV1AssistantTask */ func (c *DefaultApiService) FetchTask(assistantSid string, sid string) (*AutopilotV1AssistantTask, error) { - path := "/v1/Assistants/{AssistantSid}/Tasks/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Assistants/{AssistantSid}/Tasks/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantTask{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantTask{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1084,28 +1082,28 @@ Returns JSON actions for the Task. @return AutopilotV1AssistantTaskTaskActions */ func (c *DefaultApiService) FetchTaskActions(assistantSid string, taskSid string) (*AutopilotV1AssistantTaskTaskActions, error) { - path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Actions" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Actions" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantTaskTaskActions{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantTaskTaskActions{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1115,28 +1113,28 @@ FetchTaskStatistics Method for FetchTaskStatistics @return AutopilotV1AssistantTaskTaskStatistics */ func (c *DefaultApiService) FetchTaskStatistics(assistantSid string, taskSid string) (*AutopilotV1AssistantTaskTaskStatistics, error) { - path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Statistics" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Statistics" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantTaskTaskStatistics{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantTaskTaskStatistics{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1146,32 +1144,32 @@ FetchWebhook Method for FetchWebhook @return AutopilotV1AssistantWebhook */ func (c *DefaultApiService) FetchWebhook(assistantSid string, sid string) (*AutopilotV1AssistantWebhook, error) { - path := "/v1/Assistants/{AssistantSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Assistants/{AssistantSid}/Webhooks/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantWebhook{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListAssistantParams Optional parameters for the method 'ListAssistant' type ListAssistantParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1181,33 +1179,33 @@ ListAssistant Method for ListAssistant @return AutopilotV1AssistantReadResponse */ func (c *DefaultApiService) ListAssistant(params *ListAssistantParams) (*AutopilotV1AssistantReadResponse, error) { - path := "/v1/Assistants" + path := "/v1/Assistants" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListFieldParams Optional parameters for the method 'ListField' type ListFieldParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1219,35 +1217,35 @@ ListField Method for ListField @return AutopilotV1AssistantTaskFieldReadResponse */ func (c *DefaultApiService) ListField(assistantSid string, taskSid string, params *ListFieldParams) (*AutopilotV1AssistantTaskFieldReadResponse, error) { - path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantTaskFieldReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantTaskFieldReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListFieldTypeParams Optional parameters for the method 'ListFieldType' type ListFieldTypeParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1258,35 +1256,35 @@ ListFieldType Method for ListFieldType @return AutopilotV1AssistantFieldTypeReadResponse */ func (c *DefaultApiService) ListFieldType(assistantSid string, params *ListFieldTypeParams) (*AutopilotV1AssistantFieldTypeReadResponse, error) { - path := "/v1/Assistants/{AssistantSid}/FieldTypes" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path := "/v1/Assistants/{AssistantSid}/FieldTypes" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantFieldTypeReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantFieldTypeReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListFieldValueParams Optional parameters for the method 'ListFieldValue' type ListFieldValueParams struct { - Language *string `json:"Language,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Language *string `json:"Language,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1299,38 +1297,38 @@ ListFieldValue Method for ListFieldValue @return AutopilotV1AssistantFieldTypeFieldValueReadResponse */ func (c *DefaultApiService) ListFieldValue(assistantSid string, fieldTypeSid string, params *ListFieldValueParams) (*AutopilotV1AssistantFieldTypeFieldValueReadResponse, error) { - path := "/v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"FieldTypeSid"+"}", fieldTypeSid, -1) + path := "/v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"FieldTypeSid"+"}", fieldTypeSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Language != nil { - data.Set("Language", *params.Language) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.Language != nil { + data.Set("Language", *params.Language) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantFieldTypeFieldValueReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantFieldTypeFieldValueReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListModelBuildParams Optional parameters for the method 'ListModelBuild' type ListModelBuildParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1341,38 +1339,38 @@ ListModelBuild Method for ListModelBuild @return AutopilotV1AssistantModelBuildReadResponse */ func (c *DefaultApiService) ListModelBuild(assistantSid string, params *ListModelBuildParams) (*AutopilotV1AssistantModelBuildReadResponse, error) { - path := "/v1/Assistants/{AssistantSid}/ModelBuilds" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path := "/v1/Assistants/{AssistantSid}/ModelBuilds" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantModelBuildReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantModelBuildReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListQueryParams Optional parameters for the method 'ListQuery' type ListQueryParams struct { - Language *string `json:"Language,omitempty"` - ModelBuild *string `json:"ModelBuild,omitempty"` - Status *string `json:"Status,omitempty"` - DialogueSid *string `json:"DialogueSid,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Language *string `json:"Language,omitempty"` + ModelBuild *string `json:"ModelBuild,omitempty"` + Status *string `json:"Status,omitempty"` + DialogueSid *string `json:"DialogueSid,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1387,47 +1385,47 @@ ListQuery Method for ListQuery @return AutopilotV1AssistantQueryReadResponse */ func (c *DefaultApiService) ListQuery(assistantSid string, params *ListQueryParams) (*AutopilotV1AssistantQueryReadResponse, error) { - path := "/v1/Assistants/{AssistantSid}/Queries" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Language != nil { - data.Set("Language", *params.Language) - } - if params != nil && params.ModelBuild != nil { - data.Set("ModelBuild", *params.ModelBuild) - } - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - if params != nil && params.DialogueSid != nil { - data.Set("DialogueSid", *params.DialogueSid) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &AutopilotV1AssistantQueryReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Assistants/{AssistantSid}/Queries" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Language != nil { + data.Set("Language", *params.Language) + } + if params != nil && params.ModelBuild != nil { + data.Set("ModelBuild", *params.ModelBuild) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.DialogueSid != nil { + data.Set("DialogueSid", *params.DialogueSid) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantQueryReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListSampleParams Optional parameters for the method 'ListSample' type ListSampleParams struct { - Language *string `json:"Language,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Language *string `json:"Language,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1440,38 +1438,38 @@ ListSample Method for ListSample @return AutopilotV1AssistantTaskSampleReadResponse */ func (c *DefaultApiService) ListSample(assistantSid string, taskSid string, params *ListSampleParams) (*AutopilotV1AssistantTaskSampleReadResponse, error) { - path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Language != nil { - data.Set("Language", *params.Language) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.Language != nil { + data.Set("Language", *params.Language) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantTaskSampleReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantTaskSampleReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListTaskParams Optional parameters for the method 'ListTask' type ListTaskParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1482,34 +1480,34 @@ ListTask Method for ListTask @return AutopilotV1AssistantTaskReadResponse */ func (c *DefaultApiService) ListTask(assistantSid string, params *ListTaskParams) (*AutopilotV1AssistantTaskReadResponse, error) { - path := "/v1/Assistants/{AssistantSid}/Tasks" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path := "/v1/Assistants/{AssistantSid}/Tasks" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantTaskReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantTaskReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListWebhookParams Optional parameters for the method 'ListWebhook' type ListWebhookParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1520,41 +1518,41 @@ ListWebhook Method for ListWebhook @return AutopilotV1AssistantWebhookReadResponse */ func (c *DefaultApiService) ListWebhook(assistantSid string, params *ListWebhookParams) (*AutopilotV1AssistantWebhookReadResponse, error) { - path := "/v1/Assistants/{AssistantSid}/Webhooks" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path := "/v1/Assistants/{AssistantSid}/Webhooks" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantWebhookReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantWebhookReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateAssistantParams Optional parameters for the method 'UpdateAssistant' type UpdateAssistantParams struct { - CallbackEvents *string `json:"CallbackEvents,omitempty"` - CallbackUrl *string `json:"CallbackUrl,omitempty"` - Defaults *map[string]interface{} `json:"Defaults,omitempty"` - DevelopmentStage *string `json:"DevelopmentStage,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - LogQueries *bool `json:"LogQueries,omitempty"` - StyleSheet *map[string]interface{} `json:"StyleSheet,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + CallbackEvents *string `json:"CallbackEvents,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + Defaults *map[string]interface{} `json:"Defaults,omitempty"` + DevelopmentStage *string `json:"DevelopmentStage,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + LogQueries *bool `json:"LogQueries,omitempty"` + StyleSheet *map[string]interface{} `json:"StyleSheet,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -1572,67 +1570,67 @@ UpdateAssistant Method for UpdateAssistant @return AutopilotV1Assistant */ func (c *DefaultApiService) UpdateAssistant(sid string, params *UpdateAssistantParams) (*AutopilotV1Assistant, error) { - path := "/v1/Assistants/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.CallbackEvents != nil { - data.Set("CallbackEvents", *params.CallbackEvents) - } - if params != nil && params.CallbackUrl != nil { - data.Set("CallbackUrl", *params.CallbackUrl) - } - if params != nil && params.Defaults != nil { - v, err := json.Marshal(params.Defaults) - - if err != nil { - return nil, err - } - - data.Set("Defaults", string(v)) - } - if params != nil && params.DevelopmentStage != nil { - data.Set("DevelopmentStage", *params.DevelopmentStage) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.LogQueries != nil { - data.Set("LogQueries", string(*params.LogQueries)) - } - if params != nil && params.StyleSheet != nil { - v, err := json.Marshal(params.StyleSheet) - - if err != nil { - return nil, err - } - - data.Set("StyleSheet", string(v)) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &AutopilotV1Assistant{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Assistants/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CallbackEvents != nil { + data.Set("CallbackEvents", *params.CallbackEvents) + } + if params != nil && params.CallbackUrl != nil { + data.Set("CallbackUrl", *params.CallbackUrl) + } + if params != nil && params.Defaults != nil { + v, err := json.Marshal(params.Defaults) + + if err != nil { + return nil, err + } + + data.Set("Defaults", string(v)) + } + if params != nil && params.DevelopmentStage != nil { + data.Set("DevelopmentStage", *params.DevelopmentStage) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.LogQueries != nil { + data.Set("LogQueries", string(*params.LogQueries)) + } + if params != nil && params.StyleSheet != nil { + v, err := json.Marshal(params.StyleSheet) + + if err != nil { + return nil, err + } + + data.Set("StyleSheet", string(v)) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1Assistant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateDefaultsParams Optional parameters for the method 'UpdateDefaults' type UpdateDefaultsParams struct { - Defaults *map[string]interface{} `json:"Defaults,omitempty"` + Defaults *map[string]interface{} `json:"Defaults,omitempty"` } /* @@ -1643,41 +1641,41 @@ UpdateDefaults Method for UpdateDefaults @return AutopilotV1AssistantDefaults */ func (c *DefaultApiService) UpdateDefaults(assistantSid string, params *UpdateDefaultsParams) (*AutopilotV1AssistantDefaults, error) { - path := "/v1/Assistants/{AssistantSid}/Defaults" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path := "/v1/Assistants/{AssistantSid}/Defaults" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Defaults != nil { - v, err := json.Marshal(params.Defaults) + if params != nil && params.Defaults != nil { + v, err := json.Marshal(params.Defaults) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("Defaults", string(v)) - } + data.Set("Defaults", string(v)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantDefaults{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantDefaults{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateFieldTypeParams Optional parameters for the method 'UpdateFieldType' type UpdateFieldTypeParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -1690,38 +1688,38 @@ UpdateFieldType Method for UpdateFieldType @return AutopilotV1AssistantFieldType */ func (c *DefaultApiService) UpdateFieldType(assistantSid string, sid string, params *UpdateFieldTypeParams) (*AutopilotV1AssistantFieldType, error) { - path := "/v1/Assistants/{AssistantSid}/FieldTypes/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Assistants/{AssistantSid}/FieldTypes/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantFieldType{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantFieldType{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateModelBuildParams Optional parameters for the method 'UpdateModelBuild' type UpdateModelBuildParams struct { - UniqueName *string `json:"UniqueName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -1733,36 +1731,36 @@ UpdateModelBuild Method for UpdateModelBuild @return AutopilotV1AssistantModelBuild */ func (c *DefaultApiService) UpdateModelBuild(assistantSid string, sid string, params *UpdateModelBuildParams) (*AutopilotV1AssistantModelBuild, error) { - path := "/v1/Assistants/{AssistantSid}/ModelBuilds/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Assistants/{AssistantSid}/ModelBuilds/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantModelBuild{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantModelBuild{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateQueryParams Optional parameters for the method 'UpdateQuery' type UpdateQueryParams struct { - SampleSid *string `json:"SampleSid,omitempty"` - Status *string `json:"Status,omitempty"` + SampleSid *string `json:"SampleSid,omitempty"` + Status *string `json:"Status,omitempty"` } /* @@ -1775,38 +1773,38 @@ UpdateQuery Method for UpdateQuery @return AutopilotV1AssistantQuery */ func (c *DefaultApiService) UpdateQuery(assistantSid string, sid string, params *UpdateQueryParams) (*AutopilotV1AssistantQuery, error) { - path := "/v1/Assistants/{AssistantSid}/Queries/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Assistants/{AssistantSid}/Queries/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.SampleSid != nil { - data.Set("SampleSid", *params.SampleSid) - } - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } + if params != nil && params.SampleSid != nil { + data.Set("SampleSid", *params.SampleSid) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantQuery{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantQuery{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateRestoreAssistantParams Optional parameters for the method 'UpdateRestoreAssistant' type UpdateRestoreAssistantParams struct { - Assistant *string `json:"Assistant,omitempty"` + Assistant *string `json:"Assistant,omitempty"` } /* @@ -1816,35 +1814,35 @@ UpdateRestoreAssistant Method for UpdateRestoreAssistant @return AutopilotV1RestoreAssistant */ func (c *DefaultApiService) UpdateRestoreAssistant(params *UpdateRestoreAssistantParams) (*AutopilotV1RestoreAssistant, error) { - path := "/v1/Assistants/Restore" + path := "/v1/Assistants/Restore" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Assistant != nil { - data.Set("Assistant", *params.Assistant) - } + if params != nil && params.Assistant != nil { + data.Set("Assistant", *params.Assistant) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1RestoreAssistant{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1RestoreAssistant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateSampleParams Optional parameters for the method 'UpdateSample' type UpdateSampleParams struct { - Language *string `json:"Language,omitempty"` - SourceChannel *string `json:"SourceChannel,omitempty"` - TaggedText *string `json:"TaggedText,omitempty"` + Language *string `json:"Language,omitempty"` + SourceChannel *string `json:"SourceChannel,omitempty"` + TaggedText *string `json:"TaggedText,omitempty"` } /* @@ -1859,42 +1857,42 @@ UpdateSample Method for UpdateSample @return AutopilotV1AssistantTaskSample */ func (c *DefaultApiService) UpdateSample(assistantSid string, taskSid string, sid string, params *UpdateSampleParams) (*AutopilotV1AssistantTaskSample, error) { - path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Language != nil { - data.Set("Language", *params.Language) - } - if params != nil && params.SourceChannel != nil { - data.Set("SourceChannel", *params.SourceChannel) - } - if params != nil && params.TaggedText != nil { - data.Set("TaggedText", *params.TaggedText) - } + if params != nil && params.Language != nil { + data.Set("Language", *params.Language) + } + if params != nil && params.SourceChannel != nil { + data.Set("SourceChannel", *params.SourceChannel) + } + if params != nil && params.TaggedText != nil { + data.Set("TaggedText", *params.TaggedText) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantTaskSample{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantTaskSample{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateStyleSheetParams Optional parameters for the method 'UpdateStyleSheet' type UpdateStyleSheetParams struct { - StyleSheet *map[string]interface{} `json:"StyleSheet,omitempty"` + StyleSheet *map[string]interface{} `json:"StyleSheet,omitempty"` } /* @@ -1906,43 +1904,43 @@ Updates the style sheet for an Assistant identified by `assistant_sid` @return AutopilotV1AssistantStyleSheet */ func (c *DefaultApiService) UpdateStyleSheet(assistantSid string, params *UpdateStyleSheetParams) (*AutopilotV1AssistantStyleSheet, error) { - path := "/v1/Assistants/{AssistantSid}/StyleSheet" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path := "/v1/Assistants/{AssistantSid}/StyleSheet" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.StyleSheet != nil { - v, err := json.Marshal(params.StyleSheet) + if params != nil && params.StyleSheet != nil { + v, err := json.Marshal(params.StyleSheet) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("StyleSheet", string(v)) - } + data.Set("StyleSheet", string(v)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantStyleSheet{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantStyleSheet{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateTaskParams Optional parameters for the method 'UpdateTask' type UpdateTaskParams struct { - Actions *map[string]interface{} `json:"Actions,omitempty"` - ActionsUrl *string `json:"ActionsUrl,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + Actions *map[string]interface{} `json:"Actions,omitempty"` + ActionsUrl *string `json:"ActionsUrl,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -1957,50 +1955,50 @@ UpdateTask Method for UpdateTask @return AutopilotV1AssistantTask */ func (c *DefaultApiService) UpdateTask(assistantSid string, sid string, params *UpdateTaskParams) (*AutopilotV1AssistantTask, error) { - path := "/v1/Assistants/{AssistantSid}/Tasks/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Assistants/{AssistantSid}/Tasks/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Actions != nil { - v, err := json.Marshal(params.Actions) + if params != nil && params.Actions != nil { + v, err := json.Marshal(params.Actions) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("Actions", string(v)) - } - if params != nil && params.ActionsUrl != nil { - data.Set("ActionsUrl", *params.ActionsUrl) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } + data.Set("Actions", string(v)) + } + if params != nil && params.ActionsUrl != nil { + data.Set("ActionsUrl", *params.ActionsUrl) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantTask{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantTask{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateTaskActionsParams Optional parameters for the method 'UpdateTaskActions' type UpdateTaskActionsParams struct { - Actions *map[string]interface{} `json:"Actions,omitempty"` + Actions *map[string]interface{} `json:"Actions,omitempty"` } /* @@ -2013,44 +2011,44 @@ Updates the actions of an Task identified by {TaskSid} or {TaskUniqueName}. @return AutopilotV1AssistantTaskTaskActions */ func (c *DefaultApiService) UpdateTaskActions(assistantSid string, taskSid string, params *UpdateTaskActionsParams) (*AutopilotV1AssistantTaskTaskActions, error) { - path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Actions" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Actions" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Actions != nil { - v, err := json.Marshal(params.Actions) + if params != nil && params.Actions != nil { + v, err := json.Marshal(params.Actions) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("Actions", string(v)) - } + data.Set("Actions", string(v)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &AutopilotV1AssistantTaskTaskActions{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &AutopilotV1AssistantTaskTaskActions{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateWebhookParams Optional parameters for the method 'UpdateWebhook' type UpdateWebhookParams struct { - Events *string `json:"Events,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` - WebhookMethod *string `json:"WebhookMethod,omitempty"` - WebhookUrl *string `json:"WebhookUrl,omitempty"` + Events *string `json:"Events,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + WebhookMethod *string `json:"WebhookMethod,omitempty"` + WebhookUrl *string `json:"WebhookUrl,omitempty"` } /* @@ -2065,38 +2063,38 @@ UpdateWebhook Method for UpdateWebhook @return AutopilotV1AssistantWebhook */ func (c *DefaultApiService) UpdateWebhook(assistantSid string, sid string, params *UpdateWebhookParams) (*AutopilotV1AssistantWebhook, error) { - path := "/v1/Assistants/{AssistantSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Events != nil { - data.Set("Events", *params.Events) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } - if params != nil && params.WebhookMethod != nil { - data.Set("WebhookMethod", *params.WebhookMethod) - } - if params != nil && params.WebhookUrl != nil { - data.Set("WebhookUrl", *params.WebhookUrl) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &AutopilotV1AssistantWebhook{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Assistants/{AssistantSid}/Webhooks/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Events != nil { + data.Set("Events", *params.Events) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + if params != nil && params.WebhookMethod != nil { + data.Set("WebhookMethod", *params.WebhookMethod) + } + if params != nil && params.WebhookUrl != nil { + data.Set("WebhookUrl", *params.WebhookUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &AutopilotV1AssistantWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } diff --git a/rest/autopilot/v1/response.go b/rest/autopilot/v1/response.go index 52a3382eb..c9f407420 100644 --- a/rest/autopilot/v1/response.go +++ b/rest/autopilot/v1/response.go @@ -32,16 +32,14 @@ type APIResponse struct { Payload []byte `json:"-"` } -// Response returns a new APIResponse object. -func Response(r *http.Response) *APIResponse { - +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { response := &APIResponse{Response: r} return response } -// ResponseWithError returns a new APIResponse object with the provided error message. -func ResponseWithError(errorMessage string) *APIResponse { - +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { response := &APIResponse{Message: errorMessage} return response } diff --git a/rest/bulkexports/v1/api_default.go b/rest/bulkexports/v1/api_default.go index 2aad13366..79b1a4525 100644 --- a/rest/bulkexports/v1/api_default.go +++ b/rest/bulkexports/v1/api_default.go @@ -13,31 +13,29 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type DefaultApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewDefaultApiService(client *twilio.Client) *DefaultApiService { - return &DefaultApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &DefaultApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } // CreateExportCustomJobParams Optional parameters for the method 'CreateExportCustomJob' type CreateExportCustomJobParams struct { - Email *string `json:"Email,omitempty"` - EndDay *string `json:"EndDay,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - StartDay *string `json:"StartDay,omitempty"` - WebhookMethod *string `json:"WebhookMethod,omitempty"` - WebhookUrl *string `json:"WebhookUrl,omitempty"` + Email *string `json:"Email,omitempty"` + EndDay *string `json:"EndDay,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + StartDay *string `json:"StartDay,omitempty"` + WebhookMethod *string `json:"WebhookMethod,omitempty"` + WebhookUrl *string `json:"WebhookUrl,omitempty"` } /* @@ -53,45 +51,45 @@ CreateExportCustomJob Method for CreateExportCustomJob @return BulkexportsV1ExportExportCustomJob */ func (c *DefaultApiService) CreateExportCustomJob(resourceType string, params *CreateExportCustomJobParams) (*BulkexportsV1ExportExportCustomJob, error) { - path := "/v1/Exports/{ResourceType}/Jobs" - path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Email != nil { - data.Set("Email", *params.Email) - } - if params != nil && params.EndDay != nil { - data.Set("EndDay", *params.EndDay) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.StartDay != nil { - data.Set("StartDay", *params.StartDay) - } - if params != nil && params.WebhookMethod != nil { - data.Set("WebhookMethod", *params.WebhookMethod) - } - if params != nil && params.WebhookUrl != nil { - data.Set("WebhookUrl", *params.WebhookUrl) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &BulkexportsV1ExportExportCustomJob{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Exports/{ResourceType}/Jobs" + path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Email != nil { + data.Set("Email", *params.Email) + } + if params != nil && params.EndDay != nil { + data.Set("EndDay", *params.EndDay) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.StartDay != nil { + data.Set("StartDay", *params.StartDay) + } + if params != nil && params.WebhookMethod != nil { + data.Set("WebhookMethod", *params.WebhookMethod) + } + if params != nil && params.WebhookUrl != nil { + data.Set("WebhookUrl", *params.WebhookUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &BulkexportsV1ExportExportCustomJob{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } /* @@ -99,22 +97,22 @@ DeleteJob Method for DeleteJob * @param jobSid The unique string that that we created to identify the Bulk Export job */ func (c *DefaultApiService) DeleteJob(jobSid string) (error) { - path := "/v1/Exports/Jobs/{JobSid}" - path = strings.Replace(path, "{"+"JobSid"+"}", jobSid, -1) + path := "/v1/Exports/Jobs/{JobSid}" + path = strings.Replace(path, "{"+"JobSid"+"}", jobSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -124,23 +122,23 @@ Fetch a specific Day. * @param day The ISO 8601 format date of the resources in the file, for a UTC day */ func (c *DefaultApiService) FetchDay(resourceType string, day string) (error) { - path := "/v1/Exports/{ResourceType}/Days/{Day}" - path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) - path = strings.Replace(path, "{"+"Day"+"}", day, -1) + path := "/v1/Exports/{ResourceType}/Days/{Day}" + path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + path = strings.Replace(path, "{"+"Day"+"}", day, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -150,27 +148,27 @@ Fetch a specific Export. @return BulkexportsV1Export */ func (c *DefaultApiService) FetchExport(resourceType string) (*BulkexportsV1Export, error) { - path := "/v1/Exports/{ResourceType}" - path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + path := "/v1/Exports/{ResourceType}" + path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &BulkexportsV1Export{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &BulkexportsV1Export{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -180,27 +178,27 @@ Fetch a specific Export Configuration. @return BulkexportsV1ExportConfiguration */ func (c *DefaultApiService) FetchExportConfiguration(resourceType string) (*BulkexportsV1ExportConfiguration, error) { - path := "/v1/Exports/{ResourceType}/Configuration" - path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + path := "/v1/Exports/{ResourceType}/Configuration" + path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &BulkexportsV1ExportConfiguration{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &BulkexportsV1ExportConfiguration{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -209,31 +207,31 @@ FetchJob Method for FetchJob @return BulkexportsV1ExportJob */ func (c *DefaultApiService) FetchJob(jobSid string) (*BulkexportsV1ExportJob, error) { - path := "/v1/Exports/Jobs/{JobSid}" - path = strings.Replace(path, "{"+"JobSid"+"}", jobSid, -1) + path := "/v1/Exports/Jobs/{JobSid}" + path = strings.Replace(path, "{"+"JobSid"+"}", jobSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &BulkexportsV1ExportJob{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &BulkexportsV1ExportJob{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListDayParams Optional parameters for the method 'ListDay' type ListDayParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -245,34 +243,34 @@ Retrieve a list of all Days for a resource. @return BulkexportsV1ExportDayReadResponse */ func (c *DefaultApiService) ListDay(resourceType string, params *ListDayParams) (*BulkexportsV1ExportDayReadResponse, error) { - path := "/v1/Exports/{ResourceType}/Days" - path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + path := "/v1/Exports/{ResourceType}/Days" + path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &BulkexportsV1ExportDayReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &BulkexportsV1ExportDayReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListExportCustomJobParams Optional parameters for the method 'ListExportCustomJob' type ListExportCustomJobParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -283,36 +281,36 @@ ListExportCustomJob Method for ListExportCustomJob @return BulkexportsV1ExportExportCustomJobReadResponse */ func (c *DefaultApiService) ListExportCustomJob(resourceType string, params *ListExportCustomJobParams) (*BulkexportsV1ExportExportCustomJobReadResponse, error) { - path := "/v1/Exports/{ResourceType}/Jobs" - path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + path := "/v1/Exports/{ResourceType}/Jobs" + path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &BulkexportsV1ExportExportCustomJobReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &BulkexportsV1ExportExportCustomJobReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateExportConfigurationParams Optional parameters for the method 'UpdateExportConfiguration' type UpdateExportConfigurationParams struct { - Enabled *bool `json:"Enabled,omitempty"` - WebhookMethod *string `json:"WebhookMethod,omitempty"` - WebhookUrl *string `json:"WebhookUrl,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + WebhookMethod *string `json:"WebhookMethod,omitempty"` + WebhookUrl *string `json:"WebhookUrl,omitempty"` } /* @@ -326,34 +324,34 @@ Update a specific Export Configuration. @return BulkexportsV1ExportConfiguration */ func (c *DefaultApiService) UpdateExportConfiguration(resourceType string, params *UpdateExportConfigurationParams) (*BulkexportsV1ExportConfiguration, error) { - path := "/v1/Exports/{ResourceType}/Configuration" - path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + path := "/v1/Exports/{ResourceType}/Configuration" + path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Enabled != nil { - data.Set("Enabled", string(*params.Enabled)) - } - if params != nil && params.WebhookMethod != nil { - data.Set("WebhookMethod", *params.WebhookMethod) - } - if params != nil && params.WebhookUrl != nil { - data.Set("WebhookUrl", *params.WebhookUrl) - } + if params != nil && params.Enabled != nil { + data.Set("Enabled", string(*params.Enabled)) + } + if params != nil && params.WebhookMethod != nil { + data.Set("WebhookMethod", *params.WebhookMethod) + } + if params != nil && params.WebhookUrl != nil { + data.Set("WebhookUrl", *params.WebhookUrl) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &BulkexportsV1ExportConfiguration{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &BulkexportsV1ExportConfiguration{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } diff --git a/rest/bulkexports/v1/response.go b/rest/bulkexports/v1/response.go index 161d32a9a..853e4ec60 100644 --- a/rest/bulkexports/v1/response.go +++ b/rest/bulkexports/v1/response.go @@ -32,16 +32,14 @@ type APIResponse struct { Payload []byte `json:"-"` } -// Response returns a new APIResponse object. -func Response(r *http.Response) *APIResponse { - +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { response := &APIResponse{Response: r} return response } -// ResponseWithError returns a new APIResponse object with the provided error message. -func ResponseWithError(errorMessage string) *APIResponse { - +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { response := &APIResponse{Message: errorMessage} return response } diff --git a/rest/chat/v1/api_default.go b/rest/chat/v1/api_default.go index 2fe7e7598..2f970e3a8 100644 --- a/rest/chat/v1/api_default.go +++ b/rest/chat/v1/api_default.go @@ -13,30 +13,27 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "" - "reflect" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type DefaultApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewDefaultApiService(client *twilio.Client) *DefaultApiService { - return &DefaultApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &DefaultApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } // CreateChannelParams Optional parameters for the method 'CreateChannel' type CreateChannelParams struct { - Attributes *string `json:"Attributes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Type *string `json:"Type,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Type *string `json:"Type,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -50,49 +47,49 @@ CreateChannel Method for CreateChannel @return ChatV1ServiceChannel */ func (c *DefaultApiService) CreateChannel(serviceSid string, params *CreateChannelParams) (*ChatV1ServiceChannel, error) { - path := "/v1/Services/{ServiceSid}/Channels" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v1/Services/{ServiceSid}/Channels" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Type != nil { - data.Set("Type", *params.Type) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV1ServiceChannel{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV1ServiceChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateCredentialParams Optional parameters for the method 'CreateCredential' type CreateCredentialParams struct { - ApiKey *string `json:"ApiKey,omitempty"` - Certificate *string `json:"Certificate,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PrivateKey *string `json:"PrivateKey,omitempty"` - Sandbox *bool `json:"Sandbox,omitempty"` - Secret *string `json:"Secret,omitempty"` - Type *string `json:"Type,omitempty"` + ApiKey *string `json:"ApiKey,omitempty"` + Certificate *string `json:"Certificate,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PrivateKey *string `json:"PrivateKey,omitempty"` + Sandbox *bool `json:"Sandbox,omitempty"` + Secret *string `json:"Secret,omitempty"` + Type *string `json:"Type,omitempty"` } /* @@ -108,52 +105,52 @@ CreateCredential Method for CreateCredential @return ChatV1Credential */ func (c *DefaultApiService) CreateCredential(params *CreateCredentialParams) (*ChatV1Credential, error) { - path := "/v1/Credentials" - - data := url.Values{} - headers := 0 - - if params != nil && params.ApiKey != nil { - data.Set("ApiKey", *params.ApiKey) - } - if params != nil && params.Certificate != nil { - data.Set("Certificate", *params.Certificate) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.PrivateKey != nil { - data.Set("PrivateKey", *params.PrivateKey) - } - if params != nil && params.Sandbox != nil { - data.Set("Sandbox", string(*params.Sandbox)) - } - if params != nil && params.Secret != nil { - data.Set("Secret", *params.Secret) - } - if params != nil && params.Type != nil { - data.Set("Type", *params.Type) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ChatV1Credential{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Credentials" + + data := url.Values{} + headers := 0 + + if params != nil && params.ApiKey != nil { + data.Set("ApiKey", *params.ApiKey) + } + if params != nil && params.Certificate != nil { + data.Set("Certificate", *params.Certificate) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PrivateKey != nil { + data.Set("PrivateKey", *params.PrivateKey) + } + if params != nil && params.Sandbox != nil { + data.Set("Sandbox", string(*params.Sandbox)) + } + if params != nil && params.Secret != nil { + data.Set("Secret", *params.Secret) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV1Credential{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateInviteParams Optional parameters for the method 'CreateInvite' type CreateInviteParams struct { - Identity *string `json:"Identity,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + Identity *string `json:"Identity,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -166,39 +163,39 @@ CreateInvite Method for CreateInvite @return ChatV1ServiceChannelInvite */ func (c *DefaultApiService) CreateInvite(serviceSid string, channelSid string, params *CreateInviteParams) (*ChatV1ServiceChannelInvite, error) { - path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) - } - if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) - } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV1ServiceChannelInvite{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV1ServiceChannelInvite{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateMemberParams Optional parameters for the method 'CreateMember' type CreateMemberParams struct { - Identity *string `json:"Identity,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + Identity *string `json:"Identity,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -211,40 +208,40 @@ CreateMember Method for CreateMember @return ChatV1ServiceChannelMember */ func (c *DefaultApiService) CreateMember(serviceSid string, channelSid string, params *CreateMemberParams) (*ChatV1ServiceChannelMember, error) { - path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) - } - if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) - } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV1ServiceChannelMember{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV1ServiceChannelMember{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateMessageParams Optional parameters for the method 'CreateMessage' type CreateMessageParams struct { - Attributes *string `json:"Attributes,omitempty"` - Body *string `json:"Body,omitempty"` - From *string `json:"From,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + Body *string `json:"Body,omitempty"` + From *string `json:"From,omitempty"` } /* @@ -258,43 +255,43 @@ CreateMessage Method for CreateMessage @return ChatV1ServiceChannelMessage */ func (c *DefaultApiService) CreateMessage(serviceSid string, channelSid string, params *CreateMessageParams) (*ChatV1ServiceChannelMessage, error) { - path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.Body != nil { - data.Set("Body", *params.Body) - } - if params != nil && params.From != nil { - data.Set("From", *params.From) - } + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.Body != nil { + data.Set("Body", *params.Body) + } + if params != nil && params.From != nil { + data.Set("From", *params.From) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV1ServiceChannelMessage{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV1ServiceChannelMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateRoleParams Optional parameters for the method 'CreateRole' type CreateRoleParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - Permission *[]string `json:"Permission,omitempty"` - Type *string `json:"Type,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Permission *[]string `json:"Permission,omitempty"` + Type *string `json:"Type,omitempty"` } /* @@ -307,40 +304,40 @@ CreateRole Method for CreateRole @return ChatV1ServiceRole */ func (c *DefaultApiService) CreateRole(serviceSid string, params *CreateRoleParams) (*ChatV1ServiceRole, error) { - path := "/v1/Services/{ServiceSid}/Roles" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v1/Services/{ServiceSid}/Roles" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Permission != nil { - data.Set("Permission", *params.Permission) - } - if params != nil && params.Type != nil { - data.Set("Type", *params.Type) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Permission != nil { + data.Set("Permission", *params.Permission) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV1ServiceRole{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV1ServiceRole{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateServiceParams Optional parameters for the method 'CreateService' type CreateServiceParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -350,36 +347,36 @@ CreateService Method for CreateService @return ChatV1Service */ func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*ChatV1Service, error) { - path := "/v1/Services" + path := "/v1/Services" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV1Service{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateUserParams Optional parameters for the method 'CreateUser' type CreateUserParams struct { - Attributes *string `json:"Attributes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Identity *string `json:"Identity,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Identity *string `json:"Identity,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -393,39 +390,39 @@ CreateUser Method for CreateUser @return ChatV1ServiceUser */ func (c *DefaultApiService) CreateUser(serviceSid string, params *CreateUserParams) (*ChatV1ServiceUser, error) { - path := "/v1/Services/{ServiceSid}/Users" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v1/Services/{ServiceSid}/Users" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) - } - if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) - } + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV1ServiceUser{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV1ServiceUser{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -434,23 +431,23 @@ DeleteChannel Method for DeleteChannel * @param sid The Twilio-provided string that uniquely identifies the Channel resource to delete. */ func (c *DefaultApiService) DeleteChannel(serviceSid string, sid string) (error) { - path := "/v1/Services/{ServiceSid}/Channels/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Channels/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -458,22 +455,22 @@ DeleteCredential Method for DeleteCredential * @param sid The Twilio-provided string that uniquely identifies the Credential resource to delete. */ func (c *DefaultApiService) DeleteCredential(sid string) (error) { - path := "/v1/Credentials/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Credentials/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -483,24 +480,24 @@ DeleteInvite Method for DeleteInvite * @param sid The Twilio-provided string that uniquely identifies the Invite resource to delete. */ func (c *DefaultApiService) DeleteInvite(serviceSid string, channelSid string, sid string) (error) { - path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -510,24 +507,24 @@ DeleteMember Method for DeleteMember * @param sid The Twilio-provided string that uniquely identifies the Member resource to delete. */ func (c *DefaultApiService) DeleteMember(serviceSid string, channelSid string, sid string) (error) { - path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -537,24 +534,24 @@ DeleteMessage Method for DeleteMessage * @param sid The Twilio-provided string that uniquely identifies the Message resource to delete. */ func (c *DefaultApiService) DeleteMessage(serviceSid string, channelSid string, sid string) (error) { - path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -563,23 +560,23 @@ DeleteRole Method for DeleteRole * @param sid The Twilio-provided string that uniquely identifies the Role resource to delete. */ func (c *DefaultApiService) DeleteRole(serviceSid string, sid string) (error) { - path := "/v1/Services/{ServiceSid}/Roles/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Roles/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -587,22 +584,22 @@ DeleteService Method for DeleteService * @param sid The Twilio-provided string that uniquely identifies the Service resource to delete. */ func (c *DefaultApiService) DeleteService(sid string) (error) { - path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -611,23 +608,23 @@ DeleteUser Method for DeleteUser * @param sid The Twilio-provided string that uniquely identifies the User resource to delete. */ func (c *DefaultApiService) DeleteUser(serviceSid string, sid string) (error) { - path := "/v1/Services/{ServiceSid}/Users/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Users/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -637,28 +634,28 @@ FetchChannel Method for FetchChannel @return ChatV1ServiceChannel */ func (c *DefaultApiService) FetchChannel(serviceSid string, sid string) (*ChatV1ServiceChannel, error) { - path := "/v1/Services/{ServiceSid}/Channels/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Channels/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV1ServiceChannel{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV1ServiceChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -667,27 +664,27 @@ FetchCredential Method for FetchCredential @return ChatV1Credential */ func (c *DefaultApiService) FetchCredential(sid string) (*ChatV1Credential, error) { - path := "/v1/Credentials/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Credentials/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV1Credential{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV1Credential{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -698,29 +695,29 @@ FetchInvite Method for FetchInvite @return ChatV1ServiceChannelInvite */ func (c *DefaultApiService) FetchInvite(serviceSid string, channelSid string, sid string) (*ChatV1ServiceChannelInvite, error) { - path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV1ServiceChannelInvite{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV1ServiceChannelInvite{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -731,29 +728,29 @@ FetchMember Method for FetchMember @return ChatV1ServiceChannelMember */ func (c *DefaultApiService) FetchMember(serviceSid string, channelSid string, sid string) (*ChatV1ServiceChannelMember, error) { - path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV1ServiceChannelMember{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV1ServiceChannelMember{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -764,29 +761,29 @@ FetchMessage Method for FetchMessage @return ChatV1ServiceChannelMessage */ func (c *DefaultApiService) FetchMessage(serviceSid string, channelSid string, sid string) (*ChatV1ServiceChannelMessage, error) { - path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV1ServiceChannelMessage{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV1ServiceChannelMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -796,28 +793,28 @@ FetchRole Method for FetchRole @return ChatV1ServiceRole */ func (c *DefaultApiService) FetchRole(serviceSid string, sid string) (*ChatV1ServiceRole, error) { - path := "/v1/Services/{ServiceSid}/Roles/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Roles/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV1ServiceRole{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV1ServiceRole{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -826,27 +823,27 @@ FetchService Method for FetchService @return ChatV1Service */ func (c *DefaultApiService) FetchService(sid string) (*ChatV1Service, error) { - path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV1Service{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -856,33 +853,33 @@ FetchUser Method for FetchUser @return ChatV1ServiceUser */ func (c *DefaultApiService) FetchUser(serviceSid string, sid string) (*ChatV1ServiceUser, error) { - path := "/v1/Services/{ServiceSid}/Users/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Users/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV1ServiceUser{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV1ServiceUser{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListChannelParams Optional parameters for the method 'ListChannel' type ListChannelParams struct { - Type *[]string `json:"Type,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Type *[]string `json:"Type,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -894,37 +891,37 @@ ListChannel Method for ListChannel @return ChatV1ServiceChannelReadResponse */ func (c *DefaultApiService) ListChannel(serviceSid string, params *ListChannelParams) (*ChatV1ServiceChannelReadResponse, error) { - path := "/v1/Services/{ServiceSid}/Channels" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v1/Services/{ServiceSid}/Channels" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Type != nil { - data.Set("Type", string(*params.Type)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.Type != nil { + data.Set("Type", string(*params.Type)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV1ServiceChannelReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV1ServiceChannelReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListCredentialParams Optional parameters for the method 'ListCredential' type ListCredentialParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -934,34 +931,34 @@ ListCredential Method for ListCredential @return ChatV1CredentialReadResponse */ func (c *DefaultApiService) ListCredential(params *ListCredentialParams) (*ChatV1CredentialReadResponse, error) { - path := "/v1/Credentials" + path := "/v1/Credentials" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV1CredentialReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV1CredentialReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListInviteParams Optional parameters for the method 'ListInvite' type ListInviteParams struct { - Identity *[]string `json:"Identity,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Identity *[]string `json:"Identity,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -974,39 +971,39 @@ ListInvite Method for ListInvite @return ChatV1ServiceChannelInviteReadResponse */ func (c *DefaultApiService) ListInvite(serviceSid string, channelSid string, params *ListInviteParams) (*ChatV1ServiceChannelInviteReadResponse, error) { - path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Identity != nil { - data.Set("Identity", string(*params.Identity)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.Identity != nil { + data.Set("Identity", string(*params.Identity)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV1ServiceChannelInviteReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV1ServiceChannelInviteReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListMemberParams Optional parameters for the method 'ListMember' type ListMemberParams struct { - Identity *[]string `json:"Identity,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Identity *[]string `json:"Identity,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1019,39 +1016,39 @@ ListMember Method for ListMember @return ChatV1ServiceChannelMemberReadResponse */ func (c *DefaultApiService) ListMember(serviceSid string, channelSid string, params *ListMemberParams) (*ChatV1ServiceChannelMemberReadResponse, error) { - path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Identity != nil { - data.Set("Identity", string(*params.Identity)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.Identity != nil { + data.Set("Identity", string(*params.Identity)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV1ServiceChannelMemberReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV1ServiceChannelMemberReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListMessageParams Optional parameters for the method 'ListMessage' type ListMessageParams struct { - Order *string `json:"Order,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Order *string `json:"Order,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1064,38 +1061,38 @@ ListMessage Method for ListMessage @return ChatV1ServiceChannelMessageReadResponse */ func (c *DefaultApiService) ListMessage(serviceSid string, channelSid string, params *ListMessageParams) (*ChatV1ServiceChannelMessageReadResponse, error) { - path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Order != nil { - data.Set("Order", *params.Order) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.Order != nil { + data.Set("Order", *params.Order) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV1ServiceChannelMessageReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV1ServiceChannelMessageReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListRoleParams Optional parameters for the method 'ListRole' type ListRoleParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1106,34 +1103,34 @@ ListRole Method for ListRole @return ChatV1ServiceRoleReadResponse */ func (c *DefaultApiService) ListRole(serviceSid string, params *ListRoleParams) (*ChatV1ServiceRoleReadResponse, error) { - path := "/v1/Services/{ServiceSid}/Roles" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v1/Services/{ServiceSid}/Roles" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV1ServiceRoleReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV1ServiceRoleReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListServiceParams Optional parameters for the method 'ListService' type ListServiceParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1143,33 +1140,33 @@ ListService Method for ListService @return ChatV1ServiceReadResponse */ func (c *DefaultApiService) ListService(params *ListServiceParams) (*ChatV1ServiceReadResponse, error) { - path := "/v1/Services" + path := "/v1/Services" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV1ServiceReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV1ServiceReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListUserParams Optional parameters for the method 'ListUser' type ListUserParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1180,34 +1177,34 @@ ListUser Method for ListUser @return ChatV1ServiceUserReadResponse */ func (c *DefaultApiService) ListUser(serviceSid string, params *ListUserParams) (*ChatV1ServiceUserReadResponse, error) { - path := "/v1/Services/{ServiceSid}/Users" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v1/Services/{ServiceSid}/Users" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV1ServiceUserReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV1ServiceUserReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListUserChannelParams Optional parameters for the method 'ListUserChannel' type ListUserChannelParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1220,37 +1217,37 @@ List all Channels for a given User. @return ChatV1ServiceUserUserChannelReadResponse */ func (c *DefaultApiService) ListUserChannel(serviceSid string, userSid string, params *ListUserChannelParams) (*ChatV1ServiceUserUserChannelReadResponse, error) { - path := "/v1/Services/{ServiceSid}/Users/{UserSid}/Channels" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) + path := "/v1/Services/{ServiceSid}/Users/{UserSid}/Channels" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV1ServiceUserUserChannelReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV1ServiceUserUserChannelReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateChannelParams Optional parameters for the method 'UpdateChannel' type UpdateChannelParams struct { - Attributes *string `json:"Attributes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -1264,46 +1261,46 @@ UpdateChannel Method for UpdateChannel @return ChatV1ServiceChannel */ func (c *DefaultApiService) UpdateChannel(serviceSid string, sid string, params *UpdateChannelParams) (*ChatV1ServiceChannel, error) { - path := "/v1/Services/{ServiceSid}/Channels/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Channels/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV1ServiceChannel{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV1ServiceChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateCredentialParams Optional parameters for the method 'UpdateCredential' type UpdateCredentialParams struct { - ApiKey *string `json:"ApiKey,omitempty"` - Certificate *string `json:"Certificate,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PrivateKey *string `json:"PrivateKey,omitempty"` - Sandbox *bool `json:"Sandbox,omitempty"` - Secret *string `json:"Secret,omitempty"` + ApiKey *string `json:"ApiKey,omitempty"` + Certificate *string `json:"Certificate,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PrivateKey *string `json:"PrivateKey,omitempty"` + Sandbox *bool `json:"Sandbox,omitempty"` + Secret *string `json:"Secret,omitempty"` } /* @@ -1319,50 +1316,50 @@ UpdateCredential Method for UpdateCredential @return ChatV1Credential */ func (c *DefaultApiService) UpdateCredential(sid string, params *UpdateCredentialParams) (*ChatV1Credential, error) { - path := "/v1/Credentials/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.ApiKey != nil { - data.Set("ApiKey", *params.ApiKey) - } - if params != nil && params.Certificate != nil { - data.Set("Certificate", *params.Certificate) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.PrivateKey != nil { - data.Set("PrivateKey", *params.PrivateKey) - } - if params != nil && params.Sandbox != nil { - data.Set("Sandbox", string(*params.Sandbox)) - } - if params != nil && params.Secret != nil { - data.Set("Secret", *params.Secret) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ChatV1Credential{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Credentials/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ApiKey != nil { + data.Set("ApiKey", *params.ApiKey) + } + if params != nil && params.Certificate != nil { + data.Set("Certificate", *params.Certificate) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PrivateKey != nil { + data.Set("PrivateKey", *params.PrivateKey) + } + if params != nil && params.Sandbox != nil { + data.Set("Sandbox", string(*params.Sandbox)) + } + if params != nil && params.Secret != nil { + data.Set("Secret", *params.Secret) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV1Credential{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateMemberParams Optional parameters for the method 'UpdateMember' type UpdateMemberParams struct { - LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -1376,40 +1373,40 @@ UpdateMember Method for UpdateMember @return ChatV1ServiceChannelMember */ func (c *DefaultApiService) UpdateMember(serviceSid string, channelSid string, sid string, params *UpdateMemberParams) (*ChatV1ServiceChannelMember, error) { - path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.LastConsumedMessageIndex != nil { - data.Set("LastConsumedMessageIndex", string(*params.LastConsumedMessageIndex)) - } - if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) - } + if params != nil && params.LastConsumedMessageIndex != nil { + data.Set("LastConsumedMessageIndex", string(*params.LastConsumedMessageIndex)) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV1ServiceChannelMember{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV1ServiceChannelMember{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateMessageParams Optional parameters for the method 'UpdateMessage' type UpdateMessageParams struct { - Attributes *string `json:"Attributes,omitempty"` - Body *string `json:"Body,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + Body *string `json:"Body,omitempty"` } /* @@ -1423,39 +1420,39 @@ UpdateMessage Method for UpdateMessage @return ChatV1ServiceChannelMessage */ func (c *DefaultApiService) UpdateMessage(serviceSid string, channelSid string, sid string, params *UpdateMessageParams) (*ChatV1ServiceChannelMessage, error) { - path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.Body != nil { - data.Set("Body", *params.Body) - } + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.Body != nil { + data.Set("Body", *params.Body) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV1ServiceChannelMessage{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV1ServiceChannelMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateRoleParams Optional parameters for the method 'UpdateRole' type UpdateRoleParams struct { - Permission *[]string `json:"Permission,omitempty"` + Permission *[]string `json:"Permission,omitempty"` } /* @@ -1467,88 +1464,88 @@ UpdateRole Method for UpdateRole @return ChatV1ServiceRole */ func (c *DefaultApiService) UpdateRole(serviceSid string, sid string, params *UpdateRoleParams) (*ChatV1ServiceRole, error) { - path := "/v1/Services/{ServiceSid}/Roles/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Roles/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Permission != nil { - data.Set("Permission", *params.Permission) - } + if params != nil && params.Permission != nil { + data.Set("Permission", *params.Permission) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV1ServiceRole{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV1ServiceRole{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateServiceParams Optional parameters for the method 'UpdateService' type UpdateServiceParams struct { - ConsumptionReportInterval *int32 `json:"ConsumptionReportInterval,omitempty"` - DefaultChannelCreatorRoleSid *string `json:"DefaultChannelCreatorRoleSid,omitempty"` - DefaultChannelRoleSid *string `json:"DefaultChannelRoleSid,omitempty"` - DefaultServiceRoleSid *string `json:"DefaultServiceRoleSid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Limits.ChannelMembers *int32 `json:"Limits.ChannelMembers,omitempty"` - Limits.UserChannels *int32 `json:"Limits.UserChannels,omitempty"` - Notifications.AddedToChannel.Enabled *bool `json:"Notifications.AddedToChannel.Enabled,omitempty"` - Notifications.AddedToChannel.Template *string `json:"Notifications.AddedToChannel.Template,omitempty"` - Notifications.InvitedToChannel.Enabled *bool `json:"Notifications.InvitedToChannel.Enabled,omitempty"` - Notifications.InvitedToChannel.Template *string `json:"Notifications.InvitedToChannel.Template,omitempty"` - Notifications.NewMessage.Enabled *bool `json:"Notifications.NewMessage.Enabled,omitempty"` - Notifications.NewMessage.Template *string `json:"Notifications.NewMessage.Template,omitempty"` - Notifications.RemovedFromChannel.Enabled *bool `json:"Notifications.RemovedFromChannel.Enabled,omitempty"` - Notifications.RemovedFromChannel.Template *string `json:"Notifications.RemovedFromChannel.Template,omitempty"` - PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"` - PreWebhookUrl *string `json:"PreWebhookUrl,omitempty"` - ReachabilityEnabled *bool `json:"ReachabilityEnabled,omitempty"` - ReadStatusEnabled *bool `json:"ReadStatusEnabled,omitempty"` - TypingIndicatorTimeout *int32 `json:"TypingIndicatorTimeout,omitempty"` - WebhookFilters *[]string `json:"WebhookFilters,omitempty"` - WebhookMethod *string `json:"WebhookMethod,omitempty"` - Webhooks.OnChannelAdd.Method *string `json:"Webhooks.OnChannelAdd.Method,omitempty"` - Webhooks.OnChannelAdd.Url *string `json:"Webhooks.OnChannelAdd.Url,omitempty"` - Webhooks.OnChannelAdded.Method *string `json:"Webhooks.OnChannelAdded.Method,omitempty"` - Webhooks.OnChannelAdded.Url *string `json:"Webhooks.OnChannelAdded.Url,omitempty"` - Webhooks.OnChannelDestroy.Method *string `json:"Webhooks.OnChannelDestroy.Method,omitempty"` - Webhooks.OnChannelDestroy.Url *string `json:"Webhooks.OnChannelDestroy.Url,omitempty"` - Webhooks.OnChannelDestroyed.Method *string `json:"Webhooks.OnChannelDestroyed.Method,omitempty"` - Webhooks.OnChannelDestroyed.Url *string `json:"Webhooks.OnChannelDestroyed.Url,omitempty"` - Webhooks.OnChannelUpdate.Method *string `json:"Webhooks.OnChannelUpdate.Method,omitempty"` - Webhooks.OnChannelUpdate.Url *string `json:"Webhooks.OnChannelUpdate.Url,omitempty"` - Webhooks.OnChannelUpdated.Method *string `json:"Webhooks.OnChannelUpdated.Method,omitempty"` - Webhooks.OnChannelUpdated.Url *string `json:"Webhooks.OnChannelUpdated.Url,omitempty"` - Webhooks.OnMemberAdd.Method *string `json:"Webhooks.OnMemberAdd.Method,omitempty"` - Webhooks.OnMemberAdd.Url *string `json:"Webhooks.OnMemberAdd.Url,omitempty"` - Webhooks.OnMemberAdded.Method *string `json:"Webhooks.OnMemberAdded.Method,omitempty"` - Webhooks.OnMemberAdded.Url *string `json:"Webhooks.OnMemberAdded.Url,omitempty"` - Webhooks.OnMemberRemove.Method *string `json:"Webhooks.OnMemberRemove.Method,omitempty"` - Webhooks.OnMemberRemove.Url *string `json:"Webhooks.OnMemberRemove.Url,omitempty"` - Webhooks.OnMemberRemoved.Method *string `json:"Webhooks.OnMemberRemoved.Method,omitempty"` - Webhooks.OnMemberRemoved.Url *string `json:"Webhooks.OnMemberRemoved.Url,omitempty"` - Webhooks.OnMessageRemove.Method *string `json:"Webhooks.OnMessageRemove.Method,omitempty"` - Webhooks.OnMessageRemove.Url *string `json:"Webhooks.OnMessageRemove.Url,omitempty"` - Webhooks.OnMessageRemoved.Method *string `json:"Webhooks.OnMessageRemoved.Method,omitempty"` - Webhooks.OnMessageRemoved.Url *string `json:"Webhooks.OnMessageRemoved.Url,omitempty"` - Webhooks.OnMessageSend.Method *string `json:"Webhooks.OnMessageSend.Method,omitempty"` - Webhooks.OnMessageSend.Url *string `json:"Webhooks.OnMessageSend.Url,omitempty"` - Webhooks.OnMessageSent.Method *string `json:"Webhooks.OnMessageSent.Method,omitempty"` - Webhooks.OnMessageSent.Url *string `json:"Webhooks.OnMessageSent.Url,omitempty"` - Webhooks.OnMessageUpdate.Method *string `json:"Webhooks.OnMessageUpdate.Method,omitempty"` - Webhooks.OnMessageUpdate.Url *string `json:"Webhooks.OnMessageUpdate.Url,omitempty"` - Webhooks.OnMessageUpdated.Method *string `json:"Webhooks.OnMessageUpdated.Method,omitempty"` - Webhooks.OnMessageUpdated.Url *string `json:"Webhooks.OnMessageUpdated.Url,omitempty"` + ConsumptionReportInterval *int32 `json:"ConsumptionReportInterval,omitempty"` + DefaultChannelCreatorRoleSid *string `json:"DefaultChannelCreatorRoleSid,omitempty"` + DefaultChannelRoleSid *string `json:"DefaultChannelRoleSid,omitempty"` + DefaultServiceRoleSid *string `json:"DefaultServiceRoleSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Limits.ChannelMembers *int32 `json:"Limits.ChannelMembers,omitempty"` + Limits.UserChannels *int32 `json:"Limits.UserChannels,omitempty"` + Notifications.AddedToChannel.Enabled *bool `json:"Notifications.AddedToChannel.Enabled,omitempty"` + Notifications.AddedToChannel.Template *string `json:"Notifications.AddedToChannel.Template,omitempty"` + Notifications.InvitedToChannel.Enabled *bool `json:"Notifications.InvitedToChannel.Enabled,omitempty"` + Notifications.InvitedToChannel.Template *string `json:"Notifications.InvitedToChannel.Template,omitempty"` + Notifications.NewMessage.Enabled *bool `json:"Notifications.NewMessage.Enabled,omitempty"` + Notifications.NewMessage.Template *string `json:"Notifications.NewMessage.Template,omitempty"` + Notifications.RemovedFromChannel.Enabled *bool `json:"Notifications.RemovedFromChannel.Enabled,omitempty"` + Notifications.RemovedFromChannel.Template *string `json:"Notifications.RemovedFromChannel.Template,omitempty"` + PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"` + PreWebhookUrl *string `json:"PreWebhookUrl,omitempty"` + ReachabilityEnabled *bool `json:"ReachabilityEnabled,omitempty"` + ReadStatusEnabled *bool `json:"ReadStatusEnabled,omitempty"` + TypingIndicatorTimeout *int32 `json:"TypingIndicatorTimeout,omitempty"` + WebhookFilters *[]string `json:"WebhookFilters,omitempty"` + WebhookMethod *string `json:"WebhookMethod,omitempty"` + Webhooks.OnChannelAdd.Method *string `json:"Webhooks.OnChannelAdd.Method,omitempty"` + Webhooks.OnChannelAdd.Url *string `json:"Webhooks.OnChannelAdd.Url,omitempty"` + Webhooks.OnChannelAdded.Method *string `json:"Webhooks.OnChannelAdded.Method,omitempty"` + Webhooks.OnChannelAdded.Url *string `json:"Webhooks.OnChannelAdded.Url,omitempty"` + Webhooks.OnChannelDestroy.Method *string `json:"Webhooks.OnChannelDestroy.Method,omitempty"` + Webhooks.OnChannelDestroy.Url *string `json:"Webhooks.OnChannelDestroy.Url,omitempty"` + Webhooks.OnChannelDestroyed.Method *string `json:"Webhooks.OnChannelDestroyed.Method,omitempty"` + Webhooks.OnChannelDestroyed.Url *string `json:"Webhooks.OnChannelDestroyed.Url,omitempty"` + Webhooks.OnChannelUpdate.Method *string `json:"Webhooks.OnChannelUpdate.Method,omitempty"` + Webhooks.OnChannelUpdate.Url *string `json:"Webhooks.OnChannelUpdate.Url,omitempty"` + Webhooks.OnChannelUpdated.Method *string `json:"Webhooks.OnChannelUpdated.Method,omitempty"` + Webhooks.OnChannelUpdated.Url *string `json:"Webhooks.OnChannelUpdated.Url,omitempty"` + Webhooks.OnMemberAdd.Method *string `json:"Webhooks.OnMemberAdd.Method,omitempty"` + Webhooks.OnMemberAdd.Url *string `json:"Webhooks.OnMemberAdd.Url,omitempty"` + Webhooks.OnMemberAdded.Method *string `json:"Webhooks.OnMemberAdded.Method,omitempty"` + Webhooks.OnMemberAdded.Url *string `json:"Webhooks.OnMemberAdded.Url,omitempty"` + Webhooks.OnMemberRemove.Method *string `json:"Webhooks.OnMemberRemove.Method,omitempty"` + Webhooks.OnMemberRemove.Url *string `json:"Webhooks.OnMemberRemove.Url,omitempty"` + Webhooks.OnMemberRemoved.Method *string `json:"Webhooks.OnMemberRemoved.Method,omitempty"` + Webhooks.OnMemberRemoved.Url *string `json:"Webhooks.OnMemberRemoved.Url,omitempty"` + Webhooks.OnMessageRemove.Method *string `json:"Webhooks.OnMessageRemove.Method,omitempty"` + Webhooks.OnMessageRemove.Url *string `json:"Webhooks.OnMessageRemove.Url,omitempty"` + Webhooks.OnMessageRemoved.Method *string `json:"Webhooks.OnMessageRemoved.Method,omitempty"` + Webhooks.OnMessageRemoved.Url *string `json:"Webhooks.OnMessageRemoved.Url,omitempty"` + Webhooks.OnMessageSend.Method *string `json:"Webhooks.OnMessageSend.Method,omitempty"` + Webhooks.OnMessageSend.Url *string `json:"Webhooks.OnMessageSend.Url,omitempty"` + Webhooks.OnMessageSent.Method *string `json:"Webhooks.OnMessageSent.Method,omitempty"` + Webhooks.OnMessageSent.Url *string `json:"Webhooks.OnMessageSent.Url,omitempty"` + Webhooks.OnMessageUpdate.Method *string `json:"Webhooks.OnMessageUpdate.Method,omitempty"` + Webhooks.OnMessageUpdate.Url *string `json:"Webhooks.OnMessageUpdate.Url,omitempty"` + Webhooks.OnMessageUpdated.Method *string `json:"Webhooks.OnMessageUpdated.Method,omitempty"` + Webhooks.OnMessageUpdated.Url *string `json:"Webhooks.OnMessageUpdated.Url,omitempty"` } /* @@ -1612,195 +1609,195 @@ UpdateService Method for UpdateService @return ChatV1Service */ func (c *DefaultApiService) UpdateService(sid string, params *UpdateServiceParams) (*ChatV1Service, error) { - path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.ConsumptionReportInterval != nil { - data.Set("ConsumptionReportInterval", string(*params.ConsumptionReportInterval)) - } - if params != nil && params.DefaultChannelCreatorRoleSid != nil { - data.Set("DefaultChannelCreatorRoleSid", *params.DefaultChannelCreatorRoleSid) - } - if params != nil && params.DefaultChannelRoleSid != nil { - data.Set("DefaultChannelRoleSid", *params.DefaultChannelRoleSid) - } - if params != nil && params.DefaultServiceRoleSid != nil { - data.Set("DefaultServiceRoleSid", *params.DefaultServiceRoleSid) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Limits.ChannelMembers != nil { - data.Set("Limits.ChannelMembers", string(*params.Limits.ChannelMembers)) - } - if params != nil && params.Limits.UserChannels != nil { - data.Set("Limits.UserChannels", string(*params.Limits.UserChannels)) - } - if params != nil && params.Notifications.AddedToChannel.Enabled != nil { - data.Set("Notifications.AddedToChannel.Enabled", string(*params.Notifications.AddedToChannel.Enabled)) - } - if params != nil && params.Notifications.AddedToChannel.Template != nil { - data.Set("Notifications.AddedToChannel.Template", *params.Notifications.AddedToChannel.Template) - } - if params != nil && params.Notifications.InvitedToChannel.Enabled != nil { - data.Set("Notifications.InvitedToChannel.Enabled", string(*params.Notifications.InvitedToChannel.Enabled)) - } - if params != nil && params.Notifications.InvitedToChannel.Template != nil { - data.Set("Notifications.InvitedToChannel.Template", *params.Notifications.InvitedToChannel.Template) - } - if params != nil && params.Notifications.NewMessage.Enabled != nil { - data.Set("Notifications.NewMessage.Enabled", string(*params.Notifications.NewMessage.Enabled)) - } - if params != nil && params.Notifications.NewMessage.Template != nil { - data.Set("Notifications.NewMessage.Template", *params.Notifications.NewMessage.Template) - } - if params != nil && params.Notifications.RemovedFromChannel.Enabled != nil { - data.Set("Notifications.RemovedFromChannel.Enabled", string(*params.Notifications.RemovedFromChannel.Enabled)) - } - if params != nil && params.Notifications.RemovedFromChannel.Template != nil { - data.Set("Notifications.RemovedFromChannel.Template", *params.Notifications.RemovedFromChannel.Template) - } - if params != nil && params.PostWebhookUrl != nil { - data.Set("PostWebhookUrl", *params.PostWebhookUrl) - } - if params != nil && params.PreWebhookUrl != nil { - data.Set("PreWebhookUrl", *params.PreWebhookUrl) - } - if params != nil && params.ReachabilityEnabled != nil { - data.Set("ReachabilityEnabled", string(*params.ReachabilityEnabled)) - } - if params != nil && params.ReadStatusEnabled != nil { - data.Set("ReadStatusEnabled", string(*params.ReadStatusEnabled)) - } - if params != nil && params.TypingIndicatorTimeout != nil { - data.Set("TypingIndicatorTimeout", string(*params.TypingIndicatorTimeout)) - } - if params != nil && params.WebhookFilters != nil { - data.Set("WebhookFilters", *params.WebhookFilters) - } - if params != nil && params.WebhookMethod != nil { - data.Set("WebhookMethod", *params.WebhookMethod) - } - if params != nil && params.Webhooks.OnChannelAdd.Method != nil { - data.Set("Webhooks.OnChannelAdd.Method", *params.Webhooks.OnChannelAdd.Method) - } - if params != nil && params.Webhooks.OnChannelAdd.Url != nil { - data.Set("Webhooks.OnChannelAdd.Url", *params.Webhooks.OnChannelAdd.Url) - } - if params != nil && params.Webhooks.OnChannelAdded.Method != nil { - data.Set("Webhooks.OnChannelAdded.Method", *params.Webhooks.OnChannelAdded.Method) - } - if params != nil && params.Webhooks.OnChannelAdded.Url != nil { - data.Set("Webhooks.OnChannelAdded.Url", *params.Webhooks.OnChannelAdded.Url) - } - if params != nil && params.Webhooks.OnChannelDestroy.Method != nil { - data.Set("Webhooks.OnChannelDestroy.Method", *params.Webhooks.OnChannelDestroy.Method) - } - if params != nil && params.Webhooks.OnChannelDestroy.Url != nil { - data.Set("Webhooks.OnChannelDestroy.Url", *params.Webhooks.OnChannelDestroy.Url) - } - if params != nil && params.Webhooks.OnChannelDestroyed.Method != nil { - data.Set("Webhooks.OnChannelDestroyed.Method", *params.Webhooks.OnChannelDestroyed.Method) - } - if params != nil && params.Webhooks.OnChannelDestroyed.Url != nil { - data.Set("Webhooks.OnChannelDestroyed.Url", *params.Webhooks.OnChannelDestroyed.Url) - } - if params != nil && params.Webhooks.OnChannelUpdate.Method != nil { - data.Set("Webhooks.OnChannelUpdate.Method", *params.Webhooks.OnChannelUpdate.Method) - } - if params != nil && params.Webhooks.OnChannelUpdate.Url != nil { - data.Set("Webhooks.OnChannelUpdate.Url", *params.Webhooks.OnChannelUpdate.Url) - } - if params != nil && params.Webhooks.OnChannelUpdated.Method != nil { - data.Set("Webhooks.OnChannelUpdated.Method", *params.Webhooks.OnChannelUpdated.Method) - } - if params != nil && params.Webhooks.OnChannelUpdated.Url != nil { - data.Set("Webhooks.OnChannelUpdated.Url", *params.Webhooks.OnChannelUpdated.Url) - } - if params != nil && params.Webhooks.OnMemberAdd.Method != nil { - data.Set("Webhooks.OnMemberAdd.Method", *params.Webhooks.OnMemberAdd.Method) - } - if params != nil && params.Webhooks.OnMemberAdd.Url != nil { - data.Set("Webhooks.OnMemberAdd.Url", *params.Webhooks.OnMemberAdd.Url) - } - if params != nil && params.Webhooks.OnMemberAdded.Method != nil { - data.Set("Webhooks.OnMemberAdded.Method", *params.Webhooks.OnMemberAdded.Method) - } - if params != nil && params.Webhooks.OnMemberAdded.Url != nil { - data.Set("Webhooks.OnMemberAdded.Url", *params.Webhooks.OnMemberAdded.Url) - } - if params != nil && params.Webhooks.OnMemberRemove.Method != nil { - data.Set("Webhooks.OnMemberRemove.Method", *params.Webhooks.OnMemberRemove.Method) - } - if params != nil && params.Webhooks.OnMemberRemove.Url != nil { - data.Set("Webhooks.OnMemberRemove.Url", *params.Webhooks.OnMemberRemove.Url) - } - if params != nil && params.Webhooks.OnMemberRemoved.Method != nil { - data.Set("Webhooks.OnMemberRemoved.Method", *params.Webhooks.OnMemberRemoved.Method) - } - if params != nil && params.Webhooks.OnMemberRemoved.Url != nil { - data.Set("Webhooks.OnMemberRemoved.Url", *params.Webhooks.OnMemberRemoved.Url) - } - if params != nil && params.Webhooks.OnMessageRemove.Method != nil { - data.Set("Webhooks.OnMessageRemove.Method", *params.Webhooks.OnMessageRemove.Method) - } - if params != nil && params.Webhooks.OnMessageRemove.Url != nil { - data.Set("Webhooks.OnMessageRemove.Url", *params.Webhooks.OnMessageRemove.Url) - } - if params != nil && params.Webhooks.OnMessageRemoved.Method != nil { - data.Set("Webhooks.OnMessageRemoved.Method", *params.Webhooks.OnMessageRemoved.Method) - } - if params != nil && params.Webhooks.OnMessageRemoved.Url != nil { - data.Set("Webhooks.OnMessageRemoved.Url", *params.Webhooks.OnMessageRemoved.Url) - } - if params != nil && params.Webhooks.OnMessageSend.Method != nil { - data.Set("Webhooks.OnMessageSend.Method", *params.Webhooks.OnMessageSend.Method) - } - if params != nil && params.Webhooks.OnMessageSend.Url != nil { - data.Set("Webhooks.OnMessageSend.Url", *params.Webhooks.OnMessageSend.Url) - } - if params != nil && params.Webhooks.OnMessageSent.Method != nil { - data.Set("Webhooks.OnMessageSent.Method", *params.Webhooks.OnMessageSent.Method) - } - if params != nil && params.Webhooks.OnMessageSent.Url != nil { - data.Set("Webhooks.OnMessageSent.Url", *params.Webhooks.OnMessageSent.Url) - } - if params != nil && params.Webhooks.OnMessageUpdate.Method != nil { - data.Set("Webhooks.OnMessageUpdate.Method", *params.Webhooks.OnMessageUpdate.Method) - } - if params != nil && params.Webhooks.OnMessageUpdate.Url != nil { - data.Set("Webhooks.OnMessageUpdate.Url", *params.Webhooks.OnMessageUpdate.Url) - } - if params != nil && params.Webhooks.OnMessageUpdated.Method != nil { - data.Set("Webhooks.OnMessageUpdated.Method", *params.Webhooks.OnMessageUpdated.Method) - } - if params != nil && params.Webhooks.OnMessageUpdated.Url != nil { - data.Set("Webhooks.OnMessageUpdated.Url", *params.Webhooks.OnMessageUpdated.Url) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ChatV1Service{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ConsumptionReportInterval != nil { + data.Set("ConsumptionReportInterval", string(*params.ConsumptionReportInterval)) + } + if params != nil && params.DefaultChannelCreatorRoleSid != nil { + data.Set("DefaultChannelCreatorRoleSid", *params.DefaultChannelCreatorRoleSid) + } + if params != nil && params.DefaultChannelRoleSid != nil { + data.Set("DefaultChannelRoleSid", *params.DefaultChannelRoleSid) + } + if params != nil && params.DefaultServiceRoleSid != nil { + data.Set("DefaultServiceRoleSid", *params.DefaultServiceRoleSid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Limits.ChannelMembers != nil { + data.Set("Limits.ChannelMembers", string(*params.Limits.ChannelMembers)) + } + if params != nil && params.Limits.UserChannels != nil { + data.Set("Limits.UserChannels", string(*params.Limits.UserChannels)) + } + if params != nil && params.Notifications.AddedToChannel.Enabled != nil { + data.Set("Notifications.AddedToChannel.Enabled", string(*params.Notifications.AddedToChannel.Enabled)) + } + if params != nil && params.Notifications.AddedToChannel.Template != nil { + data.Set("Notifications.AddedToChannel.Template", *params.Notifications.AddedToChannel.Template) + } + if params != nil && params.Notifications.InvitedToChannel.Enabled != nil { + data.Set("Notifications.InvitedToChannel.Enabled", string(*params.Notifications.InvitedToChannel.Enabled)) + } + if params != nil && params.Notifications.InvitedToChannel.Template != nil { + data.Set("Notifications.InvitedToChannel.Template", *params.Notifications.InvitedToChannel.Template) + } + if params != nil && params.Notifications.NewMessage.Enabled != nil { + data.Set("Notifications.NewMessage.Enabled", string(*params.Notifications.NewMessage.Enabled)) + } + if params != nil && params.Notifications.NewMessage.Template != nil { + data.Set("Notifications.NewMessage.Template", *params.Notifications.NewMessage.Template) + } + if params != nil && params.Notifications.RemovedFromChannel.Enabled != nil { + data.Set("Notifications.RemovedFromChannel.Enabled", string(*params.Notifications.RemovedFromChannel.Enabled)) + } + if params != nil && params.Notifications.RemovedFromChannel.Template != nil { + data.Set("Notifications.RemovedFromChannel.Template", *params.Notifications.RemovedFromChannel.Template) + } + if params != nil && params.PostWebhookUrl != nil { + data.Set("PostWebhookUrl", *params.PostWebhookUrl) + } + if params != nil && params.PreWebhookUrl != nil { + data.Set("PreWebhookUrl", *params.PreWebhookUrl) + } + if params != nil && params.ReachabilityEnabled != nil { + data.Set("ReachabilityEnabled", string(*params.ReachabilityEnabled)) + } + if params != nil && params.ReadStatusEnabled != nil { + data.Set("ReadStatusEnabled", string(*params.ReadStatusEnabled)) + } + if params != nil && params.TypingIndicatorTimeout != nil { + data.Set("TypingIndicatorTimeout", string(*params.TypingIndicatorTimeout)) + } + if params != nil && params.WebhookFilters != nil { + data.Set("WebhookFilters", *params.WebhookFilters) + } + if params != nil && params.WebhookMethod != nil { + data.Set("WebhookMethod", *params.WebhookMethod) + } + if params != nil && params.Webhooks.OnChannelAdd.Method != nil { + data.Set("Webhooks.OnChannelAdd.Method", *params.Webhooks.OnChannelAdd.Method) + } + if params != nil && params.Webhooks.OnChannelAdd.Url != nil { + data.Set("Webhooks.OnChannelAdd.Url", *params.Webhooks.OnChannelAdd.Url) + } + if params != nil && params.Webhooks.OnChannelAdded.Method != nil { + data.Set("Webhooks.OnChannelAdded.Method", *params.Webhooks.OnChannelAdded.Method) + } + if params != nil && params.Webhooks.OnChannelAdded.Url != nil { + data.Set("Webhooks.OnChannelAdded.Url", *params.Webhooks.OnChannelAdded.Url) + } + if params != nil && params.Webhooks.OnChannelDestroy.Method != nil { + data.Set("Webhooks.OnChannelDestroy.Method", *params.Webhooks.OnChannelDestroy.Method) + } + if params != nil && params.Webhooks.OnChannelDestroy.Url != nil { + data.Set("Webhooks.OnChannelDestroy.Url", *params.Webhooks.OnChannelDestroy.Url) + } + if params != nil && params.Webhooks.OnChannelDestroyed.Method != nil { + data.Set("Webhooks.OnChannelDestroyed.Method", *params.Webhooks.OnChannelDestroyed.Method) + } + if params != nil && params.Webhooks.OnChannelDestroyed.Url != nil { + data.Set("Webhooks.OnChannelDestroyed.Url", *params.Webhooks.OnChannelDestroyed.Url) + } + if params != nil && params.Webhooks.OnChannelUpdate.Method != nil { + data.Set("Webhooks.OnChannelUpdate.Method", *params.Webhooks.OnChannelUpdate.Method) + } + if params != nil && params.Webhooks.OnChannelUpdate.Url != nil { + data.Set("Webhooks.OnChannelUpdate.Url", *params.Webhooks.OnChannelUpdate.Url) + } + if params != nil && params.Webhooks.OnChannelUpdated.Method != nil { + data.Set("Webhooks.OnChannelUpdated.Method", *params.Webhooks.OnChannelUpdated.Method) + } + if params != nil && params.Webhooks.OnChannelUpdated.Url != nil { + data.Set("Webhooks.OnChannelUpdated.Url", *params.Webhooks.OnChannelUpdated.Url) + } + if params != nil && params.Webhooks.OnMemberAdd.Method != nil { + data.Set("Webhooks.OnMemberAdd.Method", *params.Webhooks.OnMemberAdd.Method) + } + if params != nil && params.Webhooks.OnMemberAdd.Url != nil { + data.Set("Webhooks.OnMemberAdd.Url", *params.Webhooks.OnMemberAdd.Url) + } + if params != nil && params.Webhooks.OnMemberAdded.Method != nil { + data.Set("Webhooks.OnMemberAdded.Method", *params.Webhooks.OnMemberAdded.Method) + } + if params != nil && params.Webhooks.OnMemberAdded.Url != nil { + data.Set("Webhooks.OnMemberAdded.Url", *params.Webhooks.OnMemberAdded.Url) + } + if params != nil && params.Webhooks.OnMemberRemove.Method != nil { + data.Set("Webhooks.OnMemberRemove.Method", *params.Webhooks.OnMemberRemove.Method) + } + if params != nil && params.Webhooks.OnMemberRemove.Url != nil { + data.Set("Webhooks.OnMemberRemove.Url", *params.Webhooks.OnMemberRemove.Url) + } + if params != nil && params.Webhooks.OnMemberRemoved.Method != nil { + data.Set("Webhooks.OnMemberRemoved.Method", *params.Webhooks.OnMemberRemoved.Method) + } + if params != nil && params.Webhooks.OnMemberRemoved.Url != nil { + data.Set("Webhooks.OnMemberRemoved.Url", *params.Webhooks.OnMemberRemoved.Url) + } + if params != nil && params.Webhooks.OnMessageRemove.Method != nil { + data.Set("Webhooks.OnMessageRemove.Method", *params.Webhooks.OnMessageRemove.Method) + } + if params != nil && params.Webhooks.OnMessageRemove.Url != nil { + data.Set("Webhooks.OnMessageRemove.Url", *params.Webhooks.OnMessageRemove.Url) + } + if params != nil && params.Webhooks.OnMessageRemoved.Method != nil { + data.Set("Webhooks.OnMessageRemoved.Method", *params.Webhooks.OnMessageRemoved.Method) + } + if params != nil && params.Webhooks.OnMessageRemoved.Url != nil { + data.Set("Webhooks.OnMessageRemoved.Url", *params.Webhooks.OnMessageRemoved.Url) + } + if params != nil && params.Webhooks.OnMessageSend.Method != nil { + data.Set("Webhooks.OnMessageSend.Method", *params.Webhooks.OnMessageSend.Method) + } + if params != nil && params.Webhooks.OnMessageSend.Url != nil { + data.Set("Webhooks.OnMessageSend.Url", *params.Webhooks.OnMessageSend.Url) + } + if params != nil && params.Webhooks.OnMessageSent.Method != nil { + data.Set("Webhooks.OnMessageSent.Method", *params.Webhooks.OnMessageSent.Method) + } + if params != nil && params.Webhooks.OnMessageSent.Url != nil { + data.Set("Webhooks.OnMessageSent.Url", *params.Webhooks.OnMessageSent.Url) + } + if params != nil && params.Webhooks.OnMessageUpdate.Method != nil { + data.Set("Webhooks.OnMessageUpdate.Method", *params.Webhooks.OnMessageUpdate.Method) + } + if params != nil && params.Webhooks.OnMessageUpdate.Url != nil { + data.Set("Webhooks.OnMessageUpdate.Url", *params.Webhooks.OnMessageUpdate.Url) + } + if params != nil && params.Webhooks.OnMessageUpdated.Method != nil { + data.Set("Webhooks.OnMessageUpdated.Method", *params.Webhooks.OnMessageUpdated.Method) + } + if params != nil && params.Webhooks.OnMessageUpdated.Url != nil { + data.Set("Webhooks.OnMessageUpdated.Url", *params.Webhooks.OnMessageUpdated.Url) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateUserParams Optional parameters for the method 'UpdateUser' type UpdateUserParams struct { - Attributes *string `json:"Attributes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -1814,35 +1811,35 @@ UpdateUser Method for UpdateUser @return ChatV1ServiceUser */ func (c *DefaultApiService) UpdateUser(serviceSid string, sid string, params *UpdateUserParams) (*ChatV1ServiceUser, error) { - path := "/v1/Services/{ServiceSid}/Users/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Users/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) - } + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV1ServiceUser{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV1ServiceUser{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } diff --git a/rest/chat/v1/response.go b/rest/chat/v1/response.go index e186e61a0..180073775 100644 --- a/rest/chat/v1/response.go +++ b/rest/chat/v1/response.go @@ -32,16 +32,14 @@ type APIResponse struct { Payload []byte `json:"-"` } -// Response returns a new APIResponse object. -func Response(r *http.Response) *APIResponse { - +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { response := &APIResponse{Response: r} return response } -// ResponseWithError returns a new APIResponse object with the provided error message. -func ResponseWithError(errorMessage string) *APIResponse { - +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { response := &APIResponse{Message: errorMessage} return response } diff --git a/rest/chat/v2/api_default.go b/rest/chat/v2/api_default.go index 3cc91e07e..a7accbaf3 100644 --- a/rest/chat/v2/api_default.go +++ b/rest/chat/v2/api_default.go @@ -13,34 +13,31 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "" - "reflect" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type DefaultApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewDefaultApiService(client *twilio.Client) *DefaultApiService { - return &DefaultApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &DefaultApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } // CreateChannelParams Optional parameters for the method 'CreateChannel' type CreateChannelParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - CreatedBy *string `json:"CreatedBy,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Type *string `json:"Type,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + CreatedBy *string `json:"CreatedBy,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Type *string `json:"Type,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -58,61 +55,61 @@ CreateChannel Method for CreateChannel @return ChatV2ServiceChannel */ func (c *DefaultApiService) CreateChannel(serviceSid string, params *CreateChannelParams) (*ChatV2ServiceChannel, error) { - path := "/v2/Services/{ServiceSid}/Channels" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - - data := url.Values{} - headers := make(map[string]interface{}) - - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.CreatedBy != nil { - data.Set("CreatedBy", *params.CreatedBy) - } - if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) - } - if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Type != nil { - data.Set("Type", *params.Type) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } - - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ChatV2ServiceChannel{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v2/Services/{ServiceSid}/Channels" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.CreatedBy != nil { + data.Set("CreatedBy", *params.CreatedBy) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateChannelWebhookParams Optional parameters for the method 'CreateChannelWebhook' type CreateChannelWebhookParams struct { - Configuration.Filters *[]string `json:"Configuration.Filters,omitempty"` - Configuration.FlowSid *string `json:"Configuration.FlowSid,omitempty"` - Configuration.Method *string `json:"Configuration.Method,omitempty"` - Configuration.RetryCount *int32 `json:"Configuration.RetryCount,omitempty"` - Configuration.Triggers *[]string `json:"Configuration.Triggers,omitempty"` - Configuration.Url *string `json:"Configuration.Url,omitempty"` - Type *string `json:"Type,omitempty"` + Configuration.Filters *[]string `json:"Configuration.Filters,omitempty"` + Configuration.FlowSid *string `json:"Configuration.FlowSid,omitempty"` + Configuration.Method *string `json:"Configuration.Method,omitempty"` + Configuration.RetryCount *int32 `json:"Configuration.RetryCount,omitempty"` + Configuration.Triggers *[]string `json:"Configuration.Triggers,omitempty"` + Configuration.Url *string `json:"Configuration.Url,omitempty"` + Type *string `json:"Type,omitempty"` } /* @@ -130,59 +127,59 @@ CreateChannelWebhook Method for CreateChannelWebhook @return ChatV2ServiceChannelChannelWebhook */ func (c *DefaultApiService) CreateChannelWebhook(serviceSid string, channelSid string, params *CreateChannelWebhookParams) (*ChatV2ServiceChannelChannelWebhook, error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Configuration.Filters != nil { - data.Set("Configuration.Filters", *params.Configuration.Filters) - } - if params != nil && params.Configuration.FlowSid != nil { - data.Set("Configuration.FlowSid", *params.Configuration.FlowSid) - } - if params != nil && params.Configuration.Method != nil { - data.Set("Configuration.Method", *params.Configuration.Method) - } - if params != nil && params.Configuration.RetryCount != nil { - data.Set("Configuration.RetryCount", string(*params.Configuration.RetryCount)) - } - if params != nil && params.Configuration.Triggers != nil { - data.Set("Configuration.Triggers", *params.Configuration.Triggers) - } - if params != nil && params.Configuration.Url != nil { - data.Set("Configuration.Url", *params.Configuration.Url) - } - if params != nil && params.Type != nil { - data.Set("Type", *params.Type) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ChatV2ServiceChannelChannelWebhook{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Configuration.Filters != nil { + data.Set("Configuration.Filters", *params.Configuration.Filters) + } + if params != nil && params.Configuration.FlowSid != nil { + data.Set("Configuration.FlowSid", *params.Configuration.FlowSid) + } + if params != nil && params.Configuration.Method != nil { + data.Set("Configuration.Method", *params.Configuration.Method) + } + if params != nil && params.Configuration.RetryCount != nil { + data.Set("Configuration.RetryCount", string(*params.Configuration.RetryCount)) + } + if params != nil && params.Configuration.Triggers != nil { + data.Set("Configuration.Triggers", *params.Configuration.Triggers) + } + if params != nil && params.Configuration.Url != nil { + data.Set("Configuration.Url", *params.Configuration.Url) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceChannelChannelWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateCredentialParams Optional parameters for the method 'CreateCredential' type CreateCredentialParams struct { - ApiKey *string `json:"ApiKey,omitempty"` - Certificate *string `json:"Certificate,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PrivateKey *string `json:"PrivateKey,omitempty"` - Sandbox *bool `json:"Sandbox,omitempty"` - Secret *string `json:"Secret,omitempty"` - Type *string `json:"Type,omitempty"` + ApiKey *string `json:"ApiKey,omitempty"` + Certificate *string `json:"Certificate,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PrivateKey *string `json:"PrivateKey,omitempty"` + Sandbox *bool `json:"Sandbox,omitempty"` + Secret *string `json:"Secret,omitempty"` + Type *string `json:"Type,omitempty"` } /* @@ -198,52 +195,52 @@ CreateCredential Method for CreateCredential @return ChatV2Credential */ func (c *DefaultApiService) CreateCredential(params *CreateCredentialParams) (*ChatV2Credential, error) { - path := "/v2/Credentials" - - data := url.Values{} - headers := 0 - - if params != nil && params.ApiKey != nil { - data.Set("ApiKey", *params.ApiKey) - } - if params != nil && params.Certificate != nil { - data.Set("Certificate", *params.Certificate) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.PrivateKey != nil { - data.Set("PrivateKey", *params.PrivateKey) - } - if params != nil && params.Sandbox != nil { - data.Set("Sandbox", string(*params.Sandbox)) - } - if params != nil && params.Secret != nil { - data.Set("Secret", *params.Secret) - } - if params != nil && params.Type != nil { - data.Set("Type", *params.Type) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ChatV2Credential{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v2/Credentials" + + data := url.Values{} + headers := 0 + + if params != nil && params.ApiKey != nil { + data.Set("ApiKey", *params.ApiKey) + } + if params != nil && params.Certificate != nil { + data.Set("Certificate", *params.Certificate) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PrivateKey != nil { + data.Set("PrivateKey", *params.PrivateKey) + } + if params != nil && params.Sandbox != nil { + data.Set("Sandbox", string(*params.Sandbox)) + } + if params != nil && params.Secret != nil { + data.Set("Secret", *params.Secret) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2Credential{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateInviteParams Optional parameters for the method 'CreateInvite' type CreateInviteParams struct { - Identity *string `json:"Identity,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + Identity *string `json:"Identity,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -256,45 +253,45 @@ CreateInvite Method for CreateInvite @return ChatV2ServiceChannelInvite */ func (c *DefaultApiService) CreateInvite(serviceSid string, channelSid string, params *CreateInviteParams) (*ChatV2ServiceChannelInvite, error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) - } - if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) - } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV2ServiceChannelInvite{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV2ServiceChannelInvite{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateMemberParams Optional parameters for the method 'CreateMember' type CreateMemberParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - Identity *string `json:"Identity,omitempty"` - LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` - LastConsumptionTimestamp *time.Time `json:"LastConsumptionTimestamp,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + Identity *string `json:"Identity,omitempty"` + LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` + LastConsumptionTimestamp *time.Time `json:"LastConsumptionTimestamp,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -313,63 +310,63 @@ CreateMember Method for CreateMember @return ChatV2ServiceChannelMember */ func (c *DefaultApiService) CreateMember(serviceSid string, channelSid string, params *CreateMemberParams) (*ChatV2ServiceChannelMember, error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - - data := url.Values{} - headers := make(map[string]interface{}) - - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) - } - if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) - } - if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) - } - if params != nil && params.LastConsumedMessageIndex != nil { - data.Set("LastConsumedMessageIndex", string(*params.LastConsumedMessageIndex)) - } - if params != nil && params.LastConsumptionTimestamp != nil { - data.Set("LastConsumptionTimestamp", string(*params.LastConsumptionTimestamp)) - } - if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) - } - - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ChatV2ServiceChannelMember{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.LastConsumedMessageIndex != nil { + data.Set("LastConsumedMessageIndex", string(*params.LastConsumedMessageIndex)) + } + if params != nil && params.LastConsumptionTimestamp != nil { + data.Set("LastConsumptionTimestamp", string(*params.LastConsumptionTimestamp)) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceChannelMember{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateMessageParams Optional parameters for the method 'CreateMessage' type CreateMessageParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - Body *string `json:"Body,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - From *string `json:"From,omitempty"` - LastUpdatedBy *string `json:"LastUpdatedBy,omitempty"` - MediaSid *string `json:"MediaSid,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + Body *string `json:"Body,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + From *string `json:"From,omitempty"` + LastUpdatedBy *string `json:"LastUpdatedBy,omitempty"` + MediaSid *string `json:"MediaSid,omitempty"` } /* @@ -388,58 +385,58 @@ CreateMessage Method for CreateMessage @return ChatV2ServiceChannelMessage */ func (c *DefaultApiService) CreateMessage(serviceSid string, channelSid string, params *CreateMessageParams) (*ChatV2ServiceChannelMessage, error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - - data := url.Values{} - headers := make(map[string]interface{}) - - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.Body != nil { - data.Set("Body", *params.Body) - } - if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) - } - if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) - } - if params != nil && params.From != nil { - data.Set("From", *params.From) - } - if params != nil && params.LastUpdatedBy != nil { - data.Set("LastUpdatedBy", *params.LastUpdatedBy) - } - if params != nil && params.MediaSid != nil { - data.Set("MediaSid", *params.MediaSid) - } - - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ChatV2ServiceChannelMessage{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.Body != nil { + data.Set("Body", *params.Body) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.LastUpdatedBy != nil { + data.Set("LastUpdatedBy", *params.LastUpdatedBy) + } + if params != nil && params.MediaSid != nil { + data.Set("MediaSid", *params.MediaSid) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceChannelMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateRoleParams Optional parameters for the method 'CreateRole' type CreateRoleParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - Permission *[]string `json:"Permission,omitempty"` - Type *string `json:"Type,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Permission *[]string `json:"Permission,omitempty"` + Type *string `json:"Type,omitempty"` } /* @@ -452,40 +449,40 @@ CreateRole Method for CreateRole @return ChatV2ServiceRole */ func (c *DefaultApiService) CreateRole(serviceSid string, params *CreateRoleParams) (*ChatV2ServiceRole, error) { - path := "/v2/Services/{ServiceSid}/Roles" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v2/Services/{ServiceSid}/Roles" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Permission != nil { - data.Set("Permission", *params.Permission) - } - if params != nil && params.Type != nil { - data.Set("Type", *params.Type) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Permission != nil { + data.Set("Permission", *params.Permission) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV2ServiceRole{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV2ServiceRole{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateServiceParams Optional parameters for the method 'CreateService' type CreateServiceParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -495,37 +492,37 @@ CreateService Method for CreateService @return ChatV2Service */ func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*ChatV2Service, error) { - path := "/v2/Services" + path := "/v2/Services" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV2Service{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV2Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateUserParams Optional parameters for the method 'CreateUser' type CreateUserParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Identity *string `json:"Identity,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Identity *string `json:"Identity,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -540,42 +537,42 @@ CreateUser Method for CreateUser @return ChatV2ServiceUser */ func (c *DefaultApiService) CreateUser(serviceSid string, params *CreateUserParams) (*ChatV2ServiceUser, error) { - path := "/v2/Services/{ServiceSid}/Users" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v2/Services/{ServiceSid}/Users" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := make(map[string]interface{}) + data := url.Values{} + headers := make(map[string]interface{}) - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) - } - if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) - } + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV2ServiceUser{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV2ServiceUser{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -584,27 +581,27 @@ DeleteBinding Method for DeleteBinding * @param sid The SID of the Binding resource to delete. */ func (c *DefaultApiService) DeleteBinding(serviceSid string, sid string) (error) { - path := "/v2/Services/{ServiceSid}/Bindings/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Bindings/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } // DeleteChannelParams Optional parameters for the method 'DeleteChannel' type DeleteChannelParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* @@ -615,26 +612,26 @@ DeleteChannel Method for DeleteChannel * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ func (c *DefaultApiService) DeleteChannel(serviceSid string, sid string, params *DeleteChannelParams) (error) { - path := "/v2/Services/{ServiceSid}/Channels/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Channels/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := make(map[string]interface{}) + data := url.Values{} + headers := make(map[string]interface{}) - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -644,24 +641,24 @@ DeleteChannelWebhook Method for DeleteChannelWebhook * @param sid The SID of the Channel Webhook resource to delete. */ func (c *DefaultApiService) DeleteChannelWebhook(serviceSid string, channelSid string, sid string) (error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -669,22 +666,22 @@ DeleteCredential Method for DeleteCredential * @param sid The SID of the Credential resource to delete. */ func (c *DefaultApiService) DeleteCredential(sid string) (error) { - path := "/v2/Credentials/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Credentials/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -694,28 +691,28 @@ DeleteInvite Method for DeleteInvite * @param sid The SID of the Invite resource to delete. */ func (c *DefaultApiService) DeleteInvite(serviceSid string, channelSid string, sid string) (error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } // DeleteMemberParams Optional parameters for the method 'DeleteMember' type DeleteMemberParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* @@ -727,31 +724,31 @@ DeleteMember Method for DeleteMember * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ func (c *DefaultApiService) DeleteMember(serviceSid string, channelSid string, sid string, params *DeleteMemberParams) (error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := make(map[string]interface{}) + data := url.Values{} + headers := make(map[string]interface{}) - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } // DeleteMessageParams Optional parameters for the method 'DeleteMessage' type DeleteMessageParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* @@ -763,27 +760,27 @@ DeleteMessage Method for DeleteMessage * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ func (c *DefaultApiService) DeleteMessage(serviceSid string, channelSid string, sid string, params *DeleteMessageParams) (error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := make(map[string]interface{}) + data := url.Values{} + headers := make(map[string]interface{}) - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -792,23 +789,23 @@ DeleteRole Method for DeleteRole * @param sid The SID of the Role resource to delete. */ func (c *DefaultApiService) DeleteRole(serviceSid string, sid string) (error) { - path := "/v2/Services/{ServiceSid}/Roles/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Roles/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -816,22 +813,22 @@ DeleteService Method for DeleteService * @param sid The SID of the Service resource to delete. */ func (c *DefaultApiService) DeleteService(sid string) (error) { - path := "/v2/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -840,23 +837,23 @@ DeleteUser Method for DeleteUser * @param sid The SID of the User resource to delete. This value can be either the `sid` or the `identity` of the User resource to delete. */ func (c *DefaultApiService) DeleteUser(serviceSid string, sid string) (error) { - path := "/v2/Services/{ServiceSid}/Users/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Users/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -866,24 +863,24 @@ DeleteUserBinding Method for DeleteUserBinding * @param sid The SID of the User Binding resource to delete. */ func (c *DefaultApiService) DeleteUserBinding(serviceSid string, userSid string, sid string) (error) { - path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -894,24 +891,24 @@ Removes User from selected Channel. * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the resource belongs to. */ func (c *DefaultApiService) DeleteUserChannel(serviceSid string, userSid string, channelSid string) (error) { - path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -921,28 +918,28 @@ FetchBinding Method for FetchBinding @return ChatV2ServiceBinding */ func (c *DefaultApiService) FetchBinding(serviceSid string, sid string) (*ChatV2ServiceBinding, error) { - path := "/v2/Services/{ServiceSid}/Bindings/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Bindings/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV2ServiceBinding{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV2ServiceBinding{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -952,28 +949,28 @@ FetchChannel Method for FetchChannel @return ChatV2ServiceChannel */ func (c *DefaultApiService) FetchChannel(serviceSid string, sid string) (*ChatV2ServiceChannel, error) { - path := "/v2/Services/{ServiceSid}/Channels/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Channels/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV2ServiceChannel{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV2ServiceChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -984,29 +981,29 @@ FetchChannelWebhook Method for FetchChannelWebhook @return ChatV2ServiceChannelChannelWebhook */ func (c *DefaultApiService) FetchChannelWebhook(serviceSid string, channelSid string, sid string) (*ChatV2ServiceChannelChannelWebhook, error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV2ServiceChannelChannelWebhook{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV2ServiceChannelChannelWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1015,27 +1012,27 @@ FetchCredential Method for FetchCredential @return ChatV2Credential */ func (c *DefaultApiService) FetchCredential(sid string) (*ChatV2Credential, error) { - path := "/v2/Credentials/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Credentials/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV2Credential{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV2Credential{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1046,29 +1043,29 @@ FetchInvite Method for FetchInvite @return ChatV2ServiceChannelInvite */ func (c *DefaultApiService) FetchInvite(serviceSid string, channelSid string, sid string) (*ChatV2ServiceChannelInvite, error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV2ServiceChannelInvite{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV2ServiceChannelInvite{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1079,29 +1076,29 @@ FetchMember Method for FetchMember @return ChatV2ServiceChannelMember */ func (c *DefaultApiService) FetchMember(serviceSid string, channelSid string, sid string) (*ChatV2ServiceChannelMember, error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV2ServiceChannelMember{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV2ServiceChannelMember{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1112,29 +1109,29 @@ FetchMessage Method for FetchMessage @return ChatV2ServiceChannelMessage */ func (c *DefaultApiService) FetchMessage(serviceSid string, channelSid string, sid string) (*ChatV2ServiceChannelMessage, error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV2ServiceChannelMessage{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV2ServiceChannelMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1144,28 +1141,28 @@ FetchRole Method for FetchRole @return ChatV2ServiceRole */ func (c *DefaultApiService) FetchRole(serviceSid string, sid string) (*ChatV2ServiceRole, error) { - path := "/v2/Services/{ServiceSid}/Roles/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Roles/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV2ServiceRole{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV2ServiceRole{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1174,27 +1171,27 @@ FetchService Method for FetchService @return ChatV2Service */ func (c *DefaultApiService) FetchService(sid string) (*ChatV2Service, error) { - path := "/v2/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV2Service{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV2Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1204,28 +1201,28 @@ FetchUser Method for FetchUser @return ChatV2ServiceUser */ func (c *DefaultApiService) FetchUser(serviceSid string, sid string) (*ChatV2ServiceUser, error) { - path := "/v2/Services/{ServiceSid}/Users/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Users/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV2ServiceUser{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV2ServiceUser{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1236,29 +1233,29 @@ FetchUserBinding Method for FetchUserBinding @return ChatV2ServiceUserUserBinding */ func (c *DefaultApiService) FetchUserBinding(serviceSid string, userSid string, sid string) (*ChatV2ServiceUserUserBinding, error) { - path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV2ServiceUserUserBinding{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV2ServiceUserUserBinding{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1269,35 +1266,35 @@ FetchUserChannel Method for FetchUserChannel @return ChatV2ServiceUserUserChannel */ func (c *DefaultApiService) FetchUserChannel(serviceSid string, userSid string, channelSid string) (*ChatV2ServiceUserUserChannel, error) { - path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV2ServiceUserUserChannel{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV2ServiceUserUserChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListBindingParams Optional parameters for the method 'ListBinding' type ListBindingParams struct { - BindingType *[]string `json:"BindingType,omitempty"` - Identity *[]string `json:"Identity,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + BindingType *[]string `json:"BindingType,omitempty"` + Identity *[]string `json:"Identity,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1310,41 +1307,41 @@ ListBinding Method for ListBinding @return ChatV2ServiceBindingReadResponse */ func (c *DefaultApiService) ListBinding(serviceSid string, params *ListBindingParams) (*ChatV2ServiceBindingReadResponse, error) { - path := "/v2/Services/{ServiceSid}/Bindings" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v2/Services/{ServiceSid}/Bindings" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.BindingType != nil { - data.Set("BindingType", string(*params.BindingType)) - } - if params != nil && params.Identity != nil { - data.Set("Identity", string(*params.Identity)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.BindingType != nil { + data.Set("BindingType", string(*params.BindingType)) + } + if params != nil && params.Identity != nil { + data.Set("Identity", string(*params.Identity)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV2ServiceBindingReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV2ServiceBindingReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListChannelParams Optional parameters for the method 'ListChannel' type ListChannelParams struct { - Type *[]string `json:"Type,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Type *[]string `json:"Type,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1356,37 +1353,37 @@ ListChannel Method for ListChannel @return ChatV2ServiceChannelReadResponse */ func (c *DefaultApiService) ListChannel(serviceSid string, params *ListChannelParams) (*ChatV2ServiceChannelReadResponse, error) { - path := "/v2/Services/{ServiceSid}/Channels" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v2/Services/{ServiceSid}/Channels" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Type != nil { - data.Set("Type", string(*params.Type)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.Type != nil { + data.Set("Type", string(*params.Type)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV2ServiceChannelReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV2ServiceChannelReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListChannelWebhookParams Optional parameters for the method 'ListChannelWebhook' type ListChannelWebhookParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1398,35 +1395,35 @@ ListChannelWebhook Method for ListChannelWebhook @return ChatV2ServiceChannelChannelWebhookReadResponse */ func (c *DefaultApiService) ListChannelWebhook(serviceSid string, channelSid string, params *ListChannelWebhookParams) (*ChatV2ServiceChannelChannelWebhookReadResponse, error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV2ServiceChannelChannelWebhookReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV2ServiceChannelChannelWebhookReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListCredentialParams Optional parameters for the method 'ListCredential' type ListCredentialParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1436,34 +1433,34 @@ ListCredential Method for ListCredential @return ChatV2CredentialReadResponse */ func (c *DefaultApiService) ListCredential(params *ListCredentialParams) (*ChatV2CredentialReadResponse, error) { - path := "/v2/Credentials" + path := "/v2/Credentials" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV2CredentialReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV2CredentialReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListInviteParams Optional parameters for the method 'ListInvite' type ListInviteParams struct { - Identity *[]string `json:"Identity,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Identity *[]string `json:"Identity,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1476,39 +1473,39 @@ ListInvite Method for ListInvite @return ChatV2ServiceChannelInviteReadResponse */ func (c *DefaultApiService) ListInvite(serviceSid string, channelSid string, params *ListInviteParams) (*ChatV2ServiceChannelInviteReadResponse, error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Identity != nil { - data.Set("Identity", string(*params.Identity)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.Identity != nil { + data.Set("Identity", string(*params.Identity)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV2ServiceChannelInviteReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV2ServiceChannelInviteReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListMemberParams Optional parameters for the method 'ListMember' type ListMemberParams struct { - Identity *[]string `json:"Identity,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Identity *[]string `json:"Identity,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1521,39 +1518,39 @@ ListMember Method for ListMember @return ChatV2ServiceChannelMemberReadResponse */ func (c *DefaultApiService) ListMember(serviceSid string, channelSid string, params *ListMemberParams) (*ChatV2ServiceChannelMemberReadResponse, error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Identity != nil { - data.Set("Identity", string(*params.Identity)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.Identity != nil { + data.Set("Identity", string(*params.Identity)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV2ServiceChannelMemberReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV2ServiceChannelMemberReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListMessageParams Optional parameters for the method 'ListMessage' type ListMessageParams struct { - Order *string `json:"Order,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Order *string `json:"Order,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1566,38 +1563,38 @@ ListMessage Method for ListMessage @return ChatV2ServiceChannelMessageReadResponse */ func (c *DefaultApiService) ListMessage(serviceSid string, channelSid string, params *ListMessageParams) (*ChatV2ServiceChannelMessageReadResponse, error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Order != nil { - data.Set("Order", *params.Order) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.Order != nil { + data.Set("Order", *params.Order) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV2ServiceChannelMessageReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV2ServiceChannelMessageReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListRoleParams Optional parameters for the method 'ListRole' type ListRoleParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1608,34 +1605,34 @@ ListRole Method for ListRole @return ChatV2ServiceRoleReadResponse */ func (c *DefaultApiService) ListRole(serviceSid string, params *ListRoleParams) (*ChatV2ServiceRoleReadResponse, error) { - path := "/v2/Services/{ServiceSid}/Roles" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v2/Services/{ServiceSid}/Roles" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV2ServiceRoleReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV2ServiceRoleReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListServiceParams Optional parameters for the method 'ListService' type ListServiceParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1645,33 +1642,33 @@ ListService Method for ListService @return ChatV2ServiceReadResponse */ func (c *DefaultApiService) ListService(params *ListServiceParams) (*ChatV2ServiceReadResponse, error) { - path := "/v2/Services" + path := "/v2/Services" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV2ServiceReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV2ServiceReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListUserParams Optional parameters for the method 'ListUser' type ListUserParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1682,35 +1679,35 @@ ListUser Method for ListUser @return ChatV2ServiceUserReadResponse */ func (c *DefaultApiService) ListUser(serviceSid string, params *ListUserParams) (*ChatV2ServiceUserReadResponse, error) { - path := "/v2/Services/{ServiceSid}/Users" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v2/Services/{ServiceSid}/Users" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV2ServiceUserReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV2ServiceUserReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListUserBindingParams Optional parameters for the method 'ListUserBinding' type ListUserBindingParams struct { - BindingType *[]string `json:"BindingType,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + BindingType *[]string `json:"BindingType,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1723,38 +1720,38 @@ ListUserBinding Method for ListUserBinding @return ChatV2ServiceUserUserBindingReadResponse */ func (c *DefaultApiService) ListUserBinding(serviceSid string, userSid string, params *ListUserBindingParams) (*ChatV2ServiceUserUserBindingReadResponse, error) { - path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) + path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.BindingType != nil { - data.Set("BindingType", string(*params.BindingType)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.BindingType != nil { + data.Set("BindingType", string(*params.BindingType)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV2ServiceUserUserBindingReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV2ServiceUserUserBindingReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListUserChannelParams Optional parameters for the method 'ListUserChannel' type ListUserChannelParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1767,41 +1764,41 @@ List all Channels for a given User. @return ChatV2ServiceUserUserChannelReadResponse */ func (c *DefaultApiService) ListUserChannel(serviceSid string, userSid string, params *ListUserChannelParams) (*ChatV2ServiceUserUserChannelReadResponse, error) { - path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) + path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV2ServiceUserUserChannelReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV2ServiceUserUserChannelReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateChannelParams Optional parameters for the method 'UpdateChannel' type UpdateChannelParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - CreatedBy *string `json:"CreatedBy,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + CreatedBy *string `json:"CreatedBy,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -1819,58 +1816,58 @@ UpdateChannel Method for UpdateChannel @return ChatV2ServiceChannel */ func (c *DefaultApiService) UpdateChannel(serviceSid string, sid string, params *UpdateChannelParams) (*ChatV2ServiceChannel, error) { - path := "/v2/Services/{ServiceSid}/Channels/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := make(map[string]interface{}) - - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.CreatedBy != nil { - data.Set("CreatedBy", *params.CreatedBy) - } - if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) - } - if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } - - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ChatV2ServiceChannel{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v2/Services/{ServiceSid}/Channels/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.CreatedBy != nil { + data.Set("CreatedBy", *params.CreatedBy) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateChannelWebhookParams Optional parameters for the method 'UpdateChannelWebhook' type UpdateChannelWebhookParams struct { - Configuration.Filters *[]string `json:"Configuration.Filters,omitempty"` - Configuration.FlowSid *string `json:"Configuration.FlowSid,omitempty"` - Configuration.Method *string `json:"Configuration.Method,omitempty"` - Configuration.RetryCount *int32 `json:"Configuration.RetryCount,omitempty"` - Configuration.Triggers *[]string `json:"Configuration.Triggers,omitempty"` - Configuration.Url *string `json:"Configuration.Url,omitempty"` + Configuration.Filters *[]string `json:"Configuration.Filters,omitempty"` + Configuration.FlowSid *string `json:"Configuration.FlowSid,omitempty"` + Configuration.Method *string `json:"Configuration.Method,omitempty"` + Configuration.RetryCount *int32 `json:"Configuration.RetryCount,omitempty"` + Configuration.Triggers *[]string `json:"Configuration.Triggers,omitempty"` + Configuration.Url *string `json:"Configuration.Url,omitempty"` } /* @@ -1888,56 +1885,56 @@ UpdateChannelWebhook Method for UpdateChannelWebhook @return ChatV2ServiceChannelChannelWebhook */ func (c *DefaultApiService) UpdateChannelWebhook(serviceSid string, channelSid string, sid string, params *UpdateChannelWebhookParams) (*ChatV2ServiceChannelChannelWebhook, error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Configuration.Filters != nil { - data.Set("Configuration.Filters", *params.Configuration.Filters) - } - if params != nil && params.Configuration.FlowSid != nil { - data.Set("Configuration.FlowSid", *params.Configuration.FlowSid) - } - if params != nil && params.Configuration.Method != nil { - data.Set("Configuration.Method", *params.Configuration.Method) - } - if params != nil && params.Configuration.RetryCount != nil { - data.Set("Configuration.RetryCount", string(*params.Configuration.RetryCount)) - } - if params != nil && params.Configuration.Triggers != nil { - data.Set("Configuration.Triggers", *params.Configuration.Triggers) - } - if params != nil && params.Configuration.Url != nil { - data.Set("Configuration.Url", *params.Configuration.Url) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ChatV2ServiceChannelChannelWebhook{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Configuration.Filters != nil { + data.Set("Configuration.Filters", *params.Configuration.Filters) + } + if params != nil && params.Configuration.FlowSid != nil { + data.Set("Configuration.FlowSid", *params.Configuration.FlowSid) + } + if params != nil && params.Configuration.Method != nil { + data.Set("Configuration.Method", *params.Configuration.Method) + } + if params != nil && params.Configuration.RetryCount != nil { + data.Set("Configuration.RetryCount", string(*params.Configuration.RetryCount)) + } + if params != nil && params.Configuration.Triggers != nil { + data.Set("Configuration.Triggers", *params.Configuration.Triggers) + } + if params != nil && params.Configuration.Url != nil { + data.Set("Configuration.Url", *params.Configuration.Url) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceChannelChannelWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateCredentialParams Optional parameters for the method 'UpdateCredential' type UpdateCredentialParams struct { - ApiKey *string `json:"ApiKey,omitempty"` - Certificate *string `json:"Certificate,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PrivateKey *string `json:"PrivateKey,omitempty"` - Sandbox *bool `json:"Sandbox,omitempty"` - Secret *string `json:"Secret,omitempty"` + ApiKey *string `json:"ApiKey,omitempty"` + Certificate *string `json:"Certificate,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PrivateKey *string `json:"PrivateKey,omitempty"` + Sandbox *bool `json:"Sandbox,omitempty"` + Secret *string `json:"Secret,omitempty"` } /* @@ -1953,55 +1950,55 @@ UpdateCredential Method for UpdateCredential @return ChatV2Credential */ func (c *DefaultApiService) UpdateCredential(sid string, params *UpdateCredentialParams) (*ChatV2Credential, error) { - path := "/v2/Credentials/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.ApiKey != nil { - data.Set("ApiKey", *params.ApiKey) - } - if params != nil && params.Certificate != nil { - data.Set("Certificate", *params.Certificate) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.PrivateKey != nil { - data.Set("PrivateKey", *params.PrivateKey) - } - if params != nil && params.Sandbox != nil { - data.Set("Sandbox", string(*params.Sandbox)) - } - if params != nil && params.Secret != nil { - data.Set("Secret", *params.Secret) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ChatV2Credential{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v2/Credentials/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ApiKey != nil { + data.Set("ApiKey", *params.ApiKey) + } + if params != nil && params.Certificate != nil { + data.Set("Certificate", *params.Certificate) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PrivateKey != nil { + data.Set("PrivateKey", *params.PrivateKey) + } + if params != nil && params.Sandbox != nil { + data.Set("Sandbox", string(*params.Sandbox)) + } + if params != nil && params.Secret != nil { + data.Set("Secret", *params.Secret) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2Credential{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateMemberParams Optional parameters for the method 'UpdateMember' type UpdateMemberParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` - LastConsumptionTimestamp *time.Time `json:"LastConsumptionTimestamp,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` + LastConsumptionTimestamp *time.Time `json:"LastConsumptionTimestamp,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -2020,60 +2017,60 @@ UpdateMember Method for UpdateMember @return ChatV2ServiceChannelMember */ func (c *DefaultApiService) UpdateMember(serviceSid string, channelSid string, sid string, params *UpdateMemberParams) (*ChatV2ServiceChannelMember, error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := make(map[string]interface{}) - - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) - } - if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) - } - if params != nil && params.LastConsumedMessageIndex != nil { - data.Set("LastConsumedMessageIndex", string(*params.LastConsumedMessageIndex)) - } - if params != nil && params.LastConsumptionTimestamp != nil { - data.Set("LastConsumptionTimestamp", string(*params.LastConsumptionTimestamp)) - } - if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) - } - - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ChatV2ServiceChannelMember{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.LastConsumedMessageIndex != nil { + data.Set("LastConsumedMessageIndex", string(*params.LastConsumedMessageIndex)) + } + if params != nil && params.LastConsumptionTimestamp != nil { + data.Set("LastConsumptionTimestamp", string(*params.LastConsumptionTimestamp)) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceChannelMember{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateMessageParams Optional parameters for the method 'UpdateMessage' type UpdateMessageParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - Body *string `json:"Body,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - From *string `json:"From,omitempty"` - LastUpdatedBy *string `json:"LastUpdatedBy,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + Body *string `json:"Body,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + From *string `json:"From,omitempty"` + LastUpdatedBy *string `json:"LastUpdatedBy,omitempty"` } /* @@ -2092,54 +2089,54 @@ UpdateMessage Method for UpdateMessage @return ChatV2ServiceChannelMessage */ func (c *DefaultApiService) UpdateMessage(serviceSid string, channelSid string, sid string, params *UpdateMessageParams) (*ChatV2ServiceChannelMessage, error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := make(map[string]interface{}) - - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.Body != nil { - data.Set("Body", *params.Body) - } - if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) - } - if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) - } - if params != nil && params.From != nil { - data.Set("From", *params.From) - } - if params != nil && params.LastUpdatedBy != nil { - data.Set("LastUpdatedBy", *params.LastUpdatedBy) - } - - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ChatV2ServiceChannelMessage{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.Body != nil { + data.Set("Body", *params.Body) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.LastUpdatedBy != nil { + data.Set("LastUpdatedBy", *params.LastUpdatedBy) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceChannelMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateRoleParams Optional parameters for the method 'UpdateRole' type UpdateRoleParams struct { - Permission *[]string `json:"Permission,omitempty"` + Permission *[]string `json:"Permission,omitempty"` } /* @@ -2151,65 +2148,65 @@ UpdateRole Method for UpdateRole @return ChatV2ServiceRole */ func (c *DefaultApiService) UpdateRole(serviceSid string, sid string, params *UpdateRoleParams) (*ChatV2ServiceRole, error) { - path := "/v2/Services/{ServiceSid}/Roles/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Roles/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Permission != nil { - data.Set("Permission", *params.Permission) - } + if params != nil && params.Permission != nil { + data.Set("Permission", *params.Permission) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV2ServiceRole{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV2ServiceRole{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateServiceParams Optional parameters for the method 'UpdateService' type UpdateServiceParams struct { - ConsumptionReportInterval *int32 `json:"ConsumptionReportInterval,omitempty"` - DefaultChannelCreatorRoleSid *string `json:"DefaultChannelCreatorRoleSid,omitempty"` - DefaultChannelRoleSid *string `json:"DefaultChannelRoleSid,omitempty"` - DefaultServiceRoleSid *string `json:"DefaultServiceRoleSid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Limits.ChannelMembers *int32 `json:"Limits.ChannelMembers,omitempty"` - Limits.UserChannels *int32 `json:"Limits.UserChannels,omitempty"` - Media.CompatibilityMessage *string `json:"Media.CompatibilityMessage,omitempty"` - Notifications.AddedToChannel.Enabled *bool `json:"Notifications.AddedToChannel.Enabled,omitempty"` - Notifications.AddedToChannel.Sound *string `json:"Notifications.AddedToChannel.Sound,omitempty"` - Notifications.AddedToChannel.Template *string `json:"Notifications.AddedToChannel.Template,omitempty"` - Notifications.InvitedToChannel.Enabled *bool `json:"Notifications.InvitedToChannel.Enabled,omitempty"` - Notifications.InvitedToChannel.Sound *string `json:"Notifications.InvitedToChannel.Sound,omitempty"` - Notifications.InvitedToChannel.Template *string `json:"Notifications.InvitedToChannel.Template,omitempty"` - Notifications.LogEnabled *bool `json:"Notifications.LogEnabled,omitempty"` - Notifications.NewMessage.BadgeCountEnabled *bool `json:"Notifications.NewMessage.BadgeCountEnabled,omitempty"` - Notifications.NewMessage.Enabled *bool `json:"Notifications.NewMessage.Enabled,omitempty"` - Notifications.NewMessage.Sound *string `json:"Notifications.NewMessage.Sound,omitempty"` - Notifications.NewMessage.Template *string `json:"Notifications.NewMessage.Template,omitempty"` - Notifications.RemovedFromChannel.Enabled *bool `json:"Notifications.RemovedFromChannel.Enabled,omitempty"` - Notifications.RemovedFromChannel.Sound *string `json:"Notifications.RemovedFromChannel.Sound,omitempty"` - Notifications.RemovedFromChannel.Template *string `json:"Notifications.RemovedFromChannel.Template,omitempty"` - PostWebhookRetryCount *int32 `json:"PostWebhookRetryCount,omitempty"` - PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"` - PreWebhookRetryCount *int32 `json:"PreWebhookRetryCount,omitempty"` - PreWebhookUrl *string `json:"PreWebhookUrl,omitempty"` - ReachabilityEnabled *bool `json:"ReachabilityEnabled,omitempty"` - ReadStatusEnabled *bool `json:"ReadStatusEnabled,omitempty"` - TypingIndicatorTimeout *int32 `json:"TypingIndicatorTimeout,omitempty"` - WebhookFilters *[]string `json:"WebhookFilters,omitempty"` - WebhookMethod *string `json:"WebhookMethod,omitempty"` + ConsumptionReportInterval *int32 `json:"ConsumptionReportInterval,omitempty"` + DefaultChannelCreatorRoleSid *string `json:"DefaultChannelCreatorRoleSid,omitempty"` + DefaultChannelRoleSid *string `json:"DefaultChannelRoleSid,omitempty"` + DefaultServiceRoleSid *string `json:"DefaultServiceRoleSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Limits.ChannelMembers *int32 `json:"Limits.ChannelMembers,omitempty"` + Limits.UserChannels *int32 `json:"Limits.UserChannels,omitempty"` + Media.CompatibilityMessage *string `json:"Media.CompatibilityMessage,omitempty"` + Notifications.AddedToChannel.Enabled *bool `json:"Notifications.AddedToChannel.Enabled,omitempty"` + Notifications.AddedToChannel.Sound *string `json:"Notifications.AddedToChannel.Sound,omitempty"` + Notifications.AddedToChannel.Template *string `json:"Notifications.AddedToChannel.Template,omitempty"` + Notifications.InvitedToChannel.Enabled *bool `json:"Notifications.InvitedToChannel.Enabled,omitempty"` + Notifications.InvitedToChannel.Sound *string `json:"Notifications.InvitedToChannel.Sound,omitempty"` + Notifications.InvitedToChannel.Template *string `json:"Notifications.InvitedToChannel.Template,omitempty"` + Notifications.LogEnabled *bool `json:"Notifications.LogEnabled,omitempty"` + Notifications.NewMessage.BadgeCountEnabled *bool `json:"Notifications.NewMessage.BadgeCountEnabled,omitempty"` + Notifications.NewMessage.Enabled *bool `json:"Notifications.NewMessage.Enabled,omitempty"` + Notifications.NewMessage.Sound *string `json:"Notifications.NewMessage.Sound,omitempty"` + Notifications.NewMessage.Template *string `json:"Notifications.NewMessage.Template,omitempty"` + Notifications.RemovedFromChannel.Enabled *bool `json:"Notifications.RemovedFromChannel.Enabled,omitempty"` + Notifications.RemovedFromChannel.Sound *string `json:"Notifications.RemovedFromChannel.Sound,omitempty"` + Notifications.RemovedFromChannel.Template *string `json:"Notifications.RemovedFromChannel.Template,omitempty"` + PostWebhookRetryCount *int32 `json:"PostWebhookRetryCount,omitempty"` + PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"` + PreWebhookRetryCount *int32 `json:"PreWebhookRetryCount,omitempty"` + PreWebhookUrl *string `json:"PreWebhookUrl,omitempty"` + ReachabilityEnabled *bool `json:"ReachabilityEnabled,omitempty"` + ReadStatusEnabled *bool `json:"ReadStatusEnabled,omitempty"` + TypingIndicatorTimeout *int32 `json:"TypingIndicatorTimeout,omitempty"` + WebhookFilters *[]string `json:"WebhookFilters,omitempty"` + WebhookMethod *string `json:"WebhookMethod,omitempty"` } /* @@ -2250,127 +2247,127 @@ UpdateService Method for UpdateService @return ChatV2Service */ func (c *DefaultApiService) UpdateService(sid string, params *UpdateServiceParams) (*ChatV2Service, error) { - path := "/v2/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.ConsumptionReportInterval != nil { - data.Set("ConsumptionReportInterval", string(*params.ConsumptionReportInterval)) - } - if params != nil && params.DefaultChannelCreatorRoleSid != nil { - data.Set("DefaultChannelCreatorRoleSid", *params.DefaultChannelCreatorRoleSid) - } - if params != nil && params.DefaultChannelRoleSid != nil { - data.Set("DefaultChannelRoleSid", *params.DefaultChannelRoleSid) - } - if params != nil && params.DefaultServiceRoleSid != nil { - data.Set("DefaultServiceRoleSid", *params.DefaultServiceRoleSid) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Limits.ChannelMembers != nil { - data.Set("Limits.ChannelMembers", string(*params.Limits.ChannelMembers)) - } - if params != nil && params.Limits.UserChannels != nil { - data.Set("Limits.UserChannels", string(*params.Limits.UserChannels)) - } - if params != nil && params.Media.CompatibilityMessage != nil { - data.Set("Media.CompatibilityMessage", *params.Media.CompatibilityMessage) - } - if params != nil && params.Notifications.AddedToChannel.Enabled != nil { - data.Set("Notifications.AddedToChannel.Enabled", string(*params.Notifications.AddedToChannel.Enabled)) - } - if params != nil && params.Notifications.AddedToChannel.Sound != nil { - data.Set("Notifications.AddedToChannel.Sound", *params.Notifications.AddedToChannel.Sound) - } - if params != nil && params.Notifications.AddedToChannel.Template != nil { - data.Set("Notifications.AddedToChannel.Template", *params.Notifications.AddedToChannel.Template) - } - if params != nil && params.Notifications.InvitedToChannel.Enabled != nil { - data.Set("Notifications.InvitedToChannel.Enabled", string(*params.Notifications.InvitedToChannel.Enabled)) - } - if params != nil && params.Notifications.InvitedToChannel.Sound != nil { - data.Set("Notifications.InvitedToChannel.Sound", *params.Notifications.InvitedToChannel.Sound) - } - if params != nil && params.Notifications.InvitedToChannel.Template != nil { - data.Set("Notifications.InvitedToChannel.Template", *params.Notifications.InvitedToChannel.Template) - } - if params != nil && params.Notifications.LogEnabled != nil { - data.Set("Notifications.LogEnabled", string(*params.Notifications.LogEnabled)) - } - if params != nil && params.Notifications.NewMessage.BadgeCountEnabled != nil { - data.Set("Notifications.NewMessage.BadgeCountEnabled", string(*params.Notifications.NewMessage.BadgeCountEnabled)) - } - if params != nil && params.Notifications.NewMessage.Enabled != nil { - data.Set("Notifications.NewMessage.Enabled", string(*params.Notifications.NewMessage.Enabled)) - } - if params != nil && params.Notifications.NewMessage.Sound != nil { - data.Set("Notifications.NewMessage.Sound", *params.Notifications.NewMessage.Sound) - } - if params != nil && params.Notifications.NewMessage.Template != nil { - data.Set("Notifications.NewMessage.Template", *params.Notifications.NewMessage.Template) - } - if params != nil && params.Notifications.RemovedFromChannel.Enabled != nil { - data.Set("Notifications.RemovedFromChannel.Enabled", string(*params.Notifications.RemovedFromChannel.Enabled)) - } - if params != nil && params.Notifications.RemovedFromChannel.Sound != nil { - data.Set("Notifications.RemovedFromChannel.Sound", *params.Notifications.RemovedFromChannel.Sound) - } - if params != nil && params.Notifications.RemovedFromChannel.Template != nil { - data.Set("Notifications.RemovedFromChannel.Template", *params.Notifications.RemovedFromChannel.Template) - } - if params != nil && params.PostWebhookRetryCount != nil { - data.Set("PostWebhookRetryCount", string(*params.PostWebhookRetryCount)) - } - if params != nil && params.PostWebhookUrl != nil { - data.Set("PostWebhookUrl", *params.PostWebhookUrl) - } - if params != nil && params.PreWebhookRetryCount != nil { - data.Set("PreWebhookRetryCount", string(*params.PreWebhookRetryCount)) - } - if params != nil && params.PreWebhookUrl != nil { - data.Set("PreWebhookUrl", *params.PreWebhookUrl) - } - if params != nil && params.ReachabilityEnabled != nil { - data.Set("ReachabilityEnabled", string(*params.ReachabilityEnabled)) - } - if params != nil && params.ReadStatusEnabled != nil { - data.Set("ReadStatusEnabled", string(*params.ReadStatusEnabled)) - } - if params != nil && params.TypingIndicatorTimeout != nil { - data.Set("TypingIndicatorTimeout", string(*params.TypingIndicatorTimeout)) - } - if params != nil && params.WebhookFilters != nil { - data.Set("WebhookFilters", *params.WebhookFilters) - } - if params != nil && params.WebhookMethod != nil { - data.Set("WebhookMethod", *params.WebhookMethod) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ChatV2Service{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v2/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ConsumptionReportInterval != nil { + data.Set("ConsumptionReportInterval", string(*params.ConsumptionReportInterval)) + } + if params != nil && params.DefaultChannelCreatorRoleSid != nil { + data.Set("DefaultChannelCreatorRoleSid", *params.DefaultChannelCreatorRoleSid) + } + if params != nil && params.DefaultChannelRoleSid != nil { + data.Set("DefaultChannelRoleSid", *params.DefaultChannelRoleSid) + } + if params != nil && params.DefaultServiceRoleSid != nil { + data.Set("DefaultServiceRoleSid", *params.DefaultServiceRoleSid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Limits.ChannelMembers != nil { + data.Set("Limits.ChannelMembers", string(*params.Limits.ChannelMembers)) + } + if params != nil && params.Limits.UserChannels != nil { + data.Set("Limits.UserChannels", string(*params.Limits.UserChannels)) + } + if params != nil && params.Media.CompatibilityMessage != nil { + data.Set("Media.CompatibilityMessage", *params.Media.CompatibilityMessage) + } + if params != nil && params.Notifications.AddedToChannel.Enabled != nil { + data.Set("Notifications.AddedToChannel.Enabled", string(*params.Notifications.AddedToChannel.Enabled)) + } + if params != nil && params.Notifications.AddedToChannel.Sound != nil { + data.Set("Notifications.AddedToChannel.Sound", *params.Notifications.AddedToChannel.Sound) + } + if params != nil && params.Notifications.AddedToChannel.Template != nil { + data.Set("Notifications.AddedToChannel.Template", *params.Notifications.AddedToChannel.Template) + } + if params != nil && params.Notifications.InvitedToChannel.Enabled != nil { + data.Set("Notifications.InvitedToChannel.Enabled", string(*params.Notifications.InvitedToChannel.Enabled)) + } + if params != nil && params.Notifications.InvitedToChannel.Sound != nil { + data.Set("Notifications.InvitedToChannel.Sound", *params.Notifications.InvitedToChannel.Sound) + } + if params != nil && params.Notifications.InvitedToChannel.Template != nil { + data.Set("Notifications.InvitedToChannel.Template", *params.Notifications.InvitedToChannel.Template) + } + if params != nil && params.Notifications.LogEnabled != nil { + data.Set("Notifications.LogEnabled", string(*params.Notifications.LogEnabled)) + } + if params != nil && params.Notifications.NewMessage.BadgeCountEnabled != nil { + data.Set("Notifications.NewMessage.BadgeCountEnabled", string(*params.Notifications.NewMessage.BadgeCountEnabled)) + } + if params != nil && params.Notifications.NewMessage.Enabled != nil { + data.Set("Notifications.NewMessage.Enabled", string(*params.Notifications.NewMessage.Enabled)) + } + if params != nil && params.Notifications.NewMessage.Sound != nil { + data.Set("Notifications.NewMessage.Sound", *params.Notifications.NewMessage.Sound) + } + if params != nil && params.Notifications.NewMessage.Template != nil { + data.Set("Notifications.NewMessage.Template", *params.Notifications.NewMessage.Template) + } + if params != nil && params.Notifications.RemovedFromChannel.Enabled != nil { + data.Set("Notifications.RemovedFromChannel.Enabled", string(*params.Notifications.RemovedFromChannel.Enabled)) + } + if params != nil && params.Notifications.RemovedFromChannel.Sound != nil { + data.Set("Notifications.RemovedFromChannel.Sound", *params.Notifications.RemovedFromChannel.Sound) + } + if params != nil && params.Notifications.RemovedFromChannel.Template != nil { + data.Set("Notifications.RemovedFromChannel.Template", *params.Notifications.RemovedFromChannel.Template) + } + if params != nil && params.PostWebhookRetryCount != nil { + data.Set("PostWebhookRetryCount", string(*params.PostWebhookRetryCount)) + } + if params != nil && params.PostWebhookUrl != nil { + data.Set("PostWebhookUrl", *params.PostWebhookUrl) + } + if params != nil && params.PreWebhookRetryCount != nil { + data.Set("PreWebhookRetryCount", string(*params.PreWebhookRetryCount)) + } + if params != nil && params.PreWebhookUrl != nil { + data.Set("PreWebhookUrl", *params.PreWebhookUrl) + } + if params != nil && params.ReachabilityEnabled != nil { + data.Set("ReachabilityEnabled", string(*params.ReachabilityEnabled)) + } + if params != nil && params.ReadStatusEnabled != nil { + data.Set("ReadStatusEnabled", string(*params.ReadStatusEnabled)) + } + if params != nil && params.TypingIndicatorTimeout != nil { + data.Set("TypingIndicatorTimeout", string(*params.TypingIndicatorTimeout)) + } + if params != nil && params.WebhookFilters != nil { + data.Set("WebhookFilters", *params.WebhookFilters) + } + if params != nil && params.WebhookMethod != nil { + data.Set("WebhookMethod", *params.WebhookMethod) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateUserParams Optional parameters for the method 'UpdateUser' type UpdateUserParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -2385,46 +2382,46 @@ UpdateUser Method for UpdateUser @return ChatV2ServiceUser */ func (c *DefaultApiService) UpdateUser(serviceSid string, sid string, params *UpdateUserParams) (*ChatV2ServiceUser, error) { - path := "/v2/Services/{ServiceSid}/Users/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Users/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := make(map[string]interface{}) + data := url.Values{} + headers := make(map[string]interface{}) - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) - } + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ChatV2ServiceUser{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ChatV2ServiceUser{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateUserChannelParams Optional parameters for the method 'UpdateUserChannel' type UpdateUserChannelParams struct { - LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` - LastConsumptionTimestamp *time.Time `json:"LastConsumptionTimestamp,omitempty"` - NotificationLevel *string `json:"NotificationLevel,omitempty"` + LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` + LastConsumptionTimestamp *time.Time `json:"LastConsumptionTimestamp,omitempty"` + NotificationLevel *string `json:"NotificationLevel,omitempty"` } /* @@ -2439,36 +2436,36 @@ UpdateUserChannel Method for UpdateUserChannel @return ChatV2ServiceUserUserChannel */ func (c *DefaultApiService) UpdateUserChannel(serviceSid string, userSid string, channelSid string, params *UpdateUserChannelParams) (*ChatV2ServiceUserUserChannel, error) { - path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.LastConsumedMessageIndex != nil { - data.Set("LastConsumedMessageIndex", string(*params.LastConsumedMessageIndex)) - } - if params != nil && params.LastConsumptionTimestamp != nil { - data.Set("LastConsumptionTimestamp", string(*params.LastConsumptionTimestamp)) - } - if params != nil && params.NotificationLevel != nil { - data.Set("NotificationLevel", *params.NotificationLevel) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ChatV2ServiceUserUserChannel{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.LastConsumedMessageIndex != nil { + data.Set("LastConsumedMessageIndex", string(*params.LastConsumedMessageIndex)) + } + if params != nil && params.LastConsumptionTimestamp != nil { + data.Set("LastConsumptionTimestamp", string(*params.LastConsumptionTimestamp)) + } + if params != nil && params.NotificationLevel != nil { + data.Set("NotificationLevel", *params.NotificationLevel) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ChatV2ServiceUserUserChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } diff --git a/rest/chat/v2/response.go b/rest/chat/v2/response.go index e186e61a0..180073775 100644 --- a/rest/chat/v2/response.go +++ b/rest/chat/v2/response.go @@ -32,16 +32,14 @@ type APIResponse struct { Payload []byte `json:"-"` } -// Response returns a new APIResponse object. -func Response(r *http.Response) *APIResponse { - +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { response := &APIResponse{Response: r} return response } -// ResponseWithError returns a new APIResponse object with the provided error message. -func ResponseWithError(errorMessage string) *APIResponse { - +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { response := &APIResponse{Message: errorMessage} return response } diff --git a/rest/conversations/v1/api_default.go b/rest/conversations/v1/api_default.go index 31b235752..7664294f6 100644 --- a/rest/conversations/v1/api_default.go +++ b/rest/conversations/v1/api_default.go @@ -13,36 +13,33 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "" - "reflect" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type DefaultApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewDefaultApiService(client *twilio.Client) *DefaultApiService { - return &DefaultApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &DefaultApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } // CreateConversationParams Optional parameters for the method 'CreateConversation' type CreateConversationParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` - State *string `json:"State,omitempty"` - Timers.Closed *string `json:"Timers.Closed,omitempty"` - Timers.Inactive *string `json:"Timers.Inactive,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` + State *string `json:"State,omitempty"` + Timers.Closed *string `json:"Timers.Closed,omitempty"` + Timers.Inactive *string `json:"Timers.Inactive,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -62,66 +59,66 @@ Create a new conversation in your account's default service @return ConversationsV1Conversation */ func (c *DefaultApiService) CreateConversation(params *CreateConversationParams) (*ConversationsV1Conversation, error) { - path := "/v1/Conversations" - - data := url.Values{} - headers := make(map[string]interface{}) - - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) - } - if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.MessagingServiceSid != nil { - data.Set("MessagingServiceSid", *params.MessagingServiceSid) - } - if params != nil && params.State != nil { - data.Set("State", *params.State) - } - if params != nil && params.Timers.Closed != nil { - data.Set("Timers.Closed", *params.Timers.Closed) - } - if params != nil && params.Timers.Inactive != nil { - data.Set("Timers.Inactive", *params.Timers.Inactive) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } - - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ConversationsV1Conversation{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Conversations" + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.MessagingServiceSid != nil { + data.Set("MessagingServiceSid", *params.MessagingServiceSid) + } + if params != nil && params.State != nil { + data.Set("State", *params.State) + } + if params != nil && params.Timers.Closed != nil { + data.Set("Timers.Closed", *params.Timers.Closed) + } + if params != nil && params.Timers.Inactive != nil { + data.Set("Timers.Inactive", *params.Timers.Inactive) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1Conversation{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateConversationMessageParams Optional parameters for the method 'CreateConversationMessage' type CreateConversationMessageParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - Author *string `json:"Author,omitempty"` - Body *string `json:"Body,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - MediaSid *string `json:"MediaSid,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + Author *string `json:"Author,omitempty"` + Body *string `json:"Body,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + MediaSid *string `json:"MediaSid,omitempty"` } /* @@ -139,60 +136,60 @@ Add a new message to the conversation @return ConversationsV1ConversationConversationMessage */ func (c *DefaultApiService) CreateConversationMessage(conversationSid string, params *CreateConversationMessageParams) (*ConversationsV1ConversationConversationMessage, error) { - path := "/v1/Conversations/{ConversationSid}/Messages" - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - - data := url.Values{} - headers := make(map[string]interface{}) - - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.Author != nil { - data.Set("Author", *params.Author) - } - if params != nil && params.Body != nil { - data.Set("Body", *params.Body) - } - if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) - } - if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) - } - if params != nil && params.MediaSid != nil { - data.Set("MediaSid", *params.MediaSid) - } - - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ConversationsV1ConversationConversationMessage{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Conversations/{ConversationSid}/Messages" + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.Author != nil { + data.Set("Author", *params.Author) + } + if params != nil && params.Body != nil { + data.Set("Body", *params.Body) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.MediaSid != nil { + data.Set("MediaSid", *params.MediaSid) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ConversationConversationMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateConversationParticipantParams Optional parameters for the method 'CreateConversationParticipant' type CreateConversationParticipantParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - Identity *string `json:"Identity,omitempty"` - MessagingBinding.Address *string `json:"MessagingBinding.Address,omitempty"` - MessagingBinding.ProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` - MessagingBinding.ProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + Identity *string `json:"Identity,omitempty"` + MessagingBinding.Address *string `json:"MessagingBinding.Address,omitempty"` + MessagingBinding.ProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` + MessagingBinding.ProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -212,64 +209,64 @@ Add a new participant to the conversation @return ConversationsV1ConversationConversationParticipant */ func (c *DefaultApiService) CreateConversationParticipant(conversationSid string, params *CreateConversationParticipantParams) (*ConversationsV1ConversationConversationParticipant, error) { - path := "/v1/Conversations/{ConversationSid}/Participants" - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - - data := url.Values{} - headers := make(map[string]interface{}) - - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) - } - if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) - } - if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) - } - if params != nil && params.MessagingBinding.Address != nil { - data.Set("MessagingBinding.Address", *params.MessagingBinding.Address) - } - if params != nil && params.MessagingBinding.ProjectedAddress != nil { - data.Set("MessagingBinding.ProjectedAddress", *params.MessagingBinding.ProjectedAddress) - } - if params != nil && params.MessagingBinding.ProxyAddress != nil { - data.Set("MessagingBinding.ProxyAddress", *params.MessagingBinding.ProxyAddress) - } - if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) - } - - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ConversationsV1ConversationConversationParticipant{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Conversations/{ConversationSid}/Participants" + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.MessagingBinding.Address != nil { + data.Set("MessagingBinding.Address", *params.MessagingBinding.Address) + } + if params != nil && params.MessagingBinding.ProjectedAddress != nil { + data.Set("MessagingBinding.ProjectedAddress", *params.MessagingBinding.ProjectedAddress) + } + if params != nil && params.MessagingBinding.ProxyAddress != nil { + data.Set("MessagingBinding.ProxyAddress", *params.MessagingBinding.ProxyAddress) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ConversationConversationParticipant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateConversationScopedWebhookParams Optional parameters for the method 'CreateConversationScopedWebhook' type CreateConversationScopedWebhookParams struct { - Configuration.Filters *[]string `json:"Configuration.Filters,omitempty"` - Configuration.FlowSid *string `json:"Configuration.FlowSid,omitempty"` - Configuration.Method *string `json:"Configuration.Method,omitempty"` - Configuration.ReplayAfter *int32 `json:"Configuration.ReplayAfter,omitempty"` - Configuration.Triggers *[]string `json:"Configuration.Triggers,omitempty"` - Configuration.Url *string `json:"Configuration.Url,omitempty"` - Target *string `json:"Target,omitempty"` + Configuration.Filters *[]string `json:"Configuration.Filters,omitempty"` + Configuration.FlowSid *string `json:"Configuration.FlowSid,omitempty"` + Configuration.Method *string `json:"Configuration.Method,omitempty"` + Configuration.ReplayAfter *int32 `json:"Configuration.ReplayAfter,omitempty"` + Configuration.Triggers *[]string `json:"Configuration.Triggers,omitempty"` + Configuration.Url *string `json:"Configuration.Url,omitempty"` + Target *string `json:"Target,omitempty"` } /* @@ -287,58 +284,58 @@ Create a new webhook scoped to the conversation @return ConversationsV1ConversationConversationScopedWebhook */ func (c *DefaultApiService) CreateConversationScopedWebhook(conversationSid string, params *CreateConversationScopedWebhookParams) (*ConversationsV1ConversationConversationScopedWebhook, error) { - path := "/v1/Conversations/{ConversationSid}/Webhooks" - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Configuration.Filters != nil { - data.Set("Configuration.Filters", *params.Configuration.Filters) - } - if params != nil && params.Configuration.FlowSid != nil { - data.Set("Configuration.FlowSid", *params.Configuration.FlowSid) - } - if params != nil && params.Configuration.Method != nil { - data.Set("Configuration.Method", *params.Configuration.Method) - } - if params != nil && params.Configuration.ReplayAfter != nil { - data.Set("Configuration.ReplayAfter", string(*params.Configuration.ReplayAfter)) - } - if params != nil && params.Configuration.Triggers != nil { - data.Set("Configuration.Triggers", *params.Configuration.Triggers) - } - if params != nil && params.Configuration.Url != nil { - data.Set("Configuration.Url", *params.Configuration.Url) - } - if params != nil && params.Target != nil { - data.Set("Target", *params.Target) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ConversationsV1ConversationConversationScopedWebhook{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Conversations/{ConversationSid}/Webhooks" + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Configuration.Filters != nil { + data.Set("Configuration.Filters", *params.Configuration.Filters) + } + if params != nil && params.Configuration.FlowSid != nil { + data.Set("Configuration.FlowSid", *params.Configuration.FlowSid) + } + if params != nil && params.Configuration.Method != nil { + data.Set("Configuration.Method", *params.Configuration.Method) + } + if params != nil && params.Configuration.ReplayAfter != nil { + data.Set("Configuration.ReplayAfter", string(*params.Configuration.ReplayAfter)) + } + if params != nil && params.Configuration.Triggers != nil { + data.Set("Configuration.Triggers", *params.Configuration.Triggers) + } + if params != nil && params.Configuration.Url != nil { + data.Set("Configuration.Url", *params.Configuration.Url) + } + if params != nil && params.Target != nil { + data.Set("Target", *params.Target) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ConversationConversationScopedWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateCredentialParams Optional parameters for the method 'CreateCredential' type CreateCredentialParams struct { - ApiKey *string `json:"ApiKey,omitempty"` - Certificate *string `json:"Certificate,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PrivateKey *string `json:"PrivateKey,omitempty"` - Sandbox *bool `json:"Sandbox,omitempty"` - Secret *string `json:"Secret,omitempty"` - Type *string `json:"Type,omitempty"` + ApiKey *string `json:"ApiKey,omitempty"` + Certificate *string `json:"Certificate,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PrivateKey *string `json:"PrivateKey,omitempty"` + Sandbox *bool `json:"Sandbox,omitempty"` + Secret *string `json:"Secret,omitempty"` + Type *string `json:"Type,omitempty"` } /* @@ -355,53 +352,53 @@ Add a new push notification credential to your account @return ConversationsV1Credential */ func (c *DefaultApiService) CreateCredential(params *CreateCredentialParams) (*ConversationsV1Credential, error) { - path := "/v1/Credentials" - - data := url.Values{} - headers := 0 - - if params != nil && params.ApiKey != nil { - data.Set("ApiKey", *params.ApiKey) - } - if params != nil && params.Certificate != nil { - data.Set("Certificate", *params.Certificate) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.PrivateKey != nil { - data.Set("PrivateKey", *params.PrivateKey) - } - if params != nil && params.Sandbox != nil { - data.Set("Sandbox", string(*params.Sandbox)) - } - if params != nil && params.Secret != nil { - data.Set("Secret", *params.Secret) - } - if params != nil && params.Type != nil { - data.Set("Type", *params.Type) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ConversationsV1Credential{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Credentials" + + data := url.Values{} + headers := 0 + + if params != nil && params.ApiKey != nil { + data.Set("ApiKey", *params.ApiKey) + } + if params != nil && params.Certificate != nil { + data.Set("Certificate", *params.Certificate) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PrivateKey != nil { + data.Set("PrivateKey", *params.PrivateKey) + } + if params != nil && params.Sandbox != nil { + data.Set("Sandbox", string(*params.Sandbox)) + } + if params != nil && params.Secret != nil { + data.Set("Secret", *params.Secret) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1Credential{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateRoleParams Optional parameters for the method 'CreateRole' type CreateRoleParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - Permission *[]string `json:"Permission,omitempty"` - Type *string `json:"Type,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Permission *[]string `json:"Permission,omitempty"` + Type *string `json:"Type,omitempty"` } /* @@ -414,39 +411,39 @@ Create a new user role in your account's default service @return ConversationsV1Role */ func (c *DefaultApiService) CreateRole(params *CreateRoleParams) (*ConversationsV1Role, error) { - path := "/v1/Roles" + path := "/v1/Roles" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Permission != nil { - data.Set("Permission", *params.Permission) - } - if params != nil && params.Type != nil { - data.Set("Type", *params.Type) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Permission != nil { + data.Set("Permission", *params.Permission) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1Role{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1Role{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateServiceParams Optional parameters for the method 'CreateService' type CreateServiceParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -457,42 +454,42 @@ Create a new conversation service on your account @return ConversationsV1Service */ func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*ConversationsV1Service, error) { - path := "/v1/Services" + path := "/v1/Services" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1Service{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateServiceConversationParams Optional parameters for the method 'CreateServiceConversation' type CreateServiceConversationParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` - State *string `json:"State,omitempty"` - Timers.Closed *string `json:"Timers.Closed,omitempty"` - Timers.Inactive *string `json:"Timers.Inactive,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` + State *string `json:"State,omitempty"` + Timers.Closed *string `json:"Timers.Closed,omitempty"` + Timers.Inactive *string `json:"Timers.Inactive,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -513,67 +510,67 @@ Create a new conversation in your service @return ConversationsV1ServiceServiceConversation */ func (c *DefaultApiService) CreateServiceConversation(chatServiceSid string, params *CreateServiceConversationParams) (*ConversationsV1ServiceServiceConversation, error) { - path := "/v1/Services/{ChatServiceSid}/Conversations" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - - data := url.Values{} - headers := make(map[string]interface{}) - - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) - } - if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.MessagingServiceSid != nil { - data.Set("MessagingServiceSid", *params.MessagingServiceSid) - } - if params != nil && params.State != nil { - data.Set("State", *params.State) - } - if params != nil && params.Timers.Closed != nil { - data.Set("Timers.Closed", *params.Timers.Closed) - } - if params != nil && params.Timers.Inactive != nil { - data.Set("Timers.Inactive", *params.Timers.Inactive) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } - - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ConversationsV1ServiceServiceConversation{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Services/{ChatServiceSid}/Conversations" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.MessagingServiceSid != nil { + data.Set("MessagingServiceSid", *params.MessagingServiceSid) + } + if params != nil && params.State != nil { + data.Set("State", *params.State) + } + if params != nil && params.Timers.Closed != nil { + data.Set("Timers.Closed", *params.Timers.Closed) + } + if params != nil && params.Timers.Inactive != nil { + data.Set("Timers.Inactive", *params.Timers.Inactive) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceConversation{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateServiceConversationMessageParams Optional parameters for the method 'CreateServiceConversationMessage' type CreateServiceConversationMessageParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - Author *string `json:"Author,omitempty"` - Body *string `json:"Body,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - MediaSid *string `json:"MediaSid,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + Author *string `json:"Author,omitempty"` + Body *string `json:"Body,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + MediaSid *string `json:"MediaSid,omitempty"` } /* @@ -592,61 +589,61 @@ Add a new message to the conversation in a specific service @return ConversationsV1ServiceServiceConversationServiceConversationMessage */ func (c *DefaultApiService) CreateServiceConversationMessage(chatServiceSid string, conversationSid string, params *CreateServiceConversationMessageParams) (*ConversationsV1ServiceServiceConversationServiceConversationMessage, error) { - path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - - data := url.Values{} - headers := make(map[string]interface{}) - - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.Author != nil { - data.Set("Author", *params.Author) - } - if params != nil && params.Body != nil { - data.Set("Body", *params.Body) - } - if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) - } - if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) - } - if params != nil && params.MediaSid != nil { - data.Set("MediaSid", *params.MediaSid) - } - - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ConversationsV1ServiceServiceConversationServiceConversationMessage{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.Author != nil { + data.Set("Author", *params.Author) + } + if params != nil && params.Body != nil { + data.Set("Body", *params.Body) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.MediaSid != nil { + data.Set("MediaSid", *params.MediaSid) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceConversationServiceConversationMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateServiceConversationParticipantParams Optional parameters for the method 'CreateServiceConversationParticipant' type CreateServiceConversationParticipantParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - Identity *string `json:"Identity,omitempty"` - MessagingBinding.Address *string `json:"MessagingBinding.Address,omitempty"` - MessagingBinding.ProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` - MessagingBinding.ProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + Identity *string `json:"Identity,omitempty"` + MessagingBinding.Address *string `json:"MessagingBinding.Address,omitempty"` + MessagingBinding.ProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` + MessagingBinding.ProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -667,65 +664,65 @@ Add a new participant to the conversation in a specific service @return ConversationsV1ServiceServiceConversationServiceConversationParticipant */ func (c *DefaultApiService) CreateServiceConversationParticipant(chatServiceSid string, conversationSid string, params *CreateServiceConversationParticipantParams) (*ConversationsV1ServiceServiceConversationServiceConversationParticipant, error) { - path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - - data := url.Values{} - headers := make(map[string]interface{}) - - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) - } - if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) - } - if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) - } - if params != nil && params.MessagingBinding.Address != nil { - data.Set("MessagingBinding.Address", *params.MessagingBinding.Address) - } - if params != nil && params.MessagingBinding.ProjectedAddress != nil { - data.Set("MessagingBinding.ProjectedAddress", *params.MessagingBinding.ProjectedAddress) - } - if params != nil && params.MessagingBinding.ProxyAddress != nil { - data.Set("MessagingBinding.ProxyAddress", *params.MessagingBinding.ProxyAddress) - } - if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) - } - - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ConversationsV1ServiceServiceConversationServiceConversationParticipant{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.MessagingBinding.Address != nil { + data.Set("MessagingBinding.Address", *params.MessagingBinding.Address) + } + if params != nil && params.MessagingBinding.ProjectedAddress != nil { + data.Set("MessagingBinding.ProjectedAddress", *params.MessagingBinding.ProjectedAddress) + } + if params != nil && params.MessagingBinding.ProxyAddress != nil { + data.Set("MessagingBinding.ProxyAddress", *params.MessagingBinding.ProxyAddress) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceConversationServiceConversationParticipant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateServiceConversationScopedWebhookParams Optional parameters for the method 'CreateServiceConversationScopedWebhook' type CreateServiceConversationScopedWebhookParams struct { - Configuration.Filters *[]string `json:"Configuration.Filters,omitempty"` - Configuration.FlowSid *string `json:"Configuration.FlowSid,omitempty"` - Configuration.Method *string `json:"Configuration.Method,omitempty"` - Configuration.ReplayAfter *int32 `json:"Configuration.ReplayAfter,omitempty"` - Configuration.Triggers *[]string `json:"Configuration.Triggers,omitempty"` - Configuration.Url *string `json:"Configuration.Url,omitempty"` - Target *string `json:"Target,omitempty"` + Configuration.Filters *[]string `json:"Configuration.Filters,omitempty"` + Configuration.FlowSid *string `json:"Configuration.FlowSid,omitempty"` + Configuration.Method *string `json:"Configuration.Method,omitempty"` + Configuration.ReplayAfter *int32 `json:"Configuration.ReplayAfter,omitempty"` + Configuration.Triggers *[]string `json:"Configuration.Triggers,omitempty"` + Configuration.Url *string `json:"Configuration.Url,omitempty"` + Target *string `json:"Target,omitempty"` } /* @@ -744,55 +741,55 @@ Create a new webhook scoped to the conversation in a specific service @return ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook */ func (c *DefaultApiService) CreateServiceConversationScopedWebhook(chatServiceSid string, conversationSid string, params *CreateServiceConversationScopedWebhookParams) (*ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook, error) { - path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Configuration.Filters != nil { - data.Set("Configuration.Filters", *params.Configuration.Filters) - } - if params != nil && params.Configuration.FlowSid != nil { - data.Set("Configuration.FlowSid", *params.Configuration.FlowSid) - } - if params != nil && params.Configuration.Method != nil { - data.Set("Configuration.Method", *params.Configuration.Method) - } - if params != nil && params.Configuration.ReplayAfter != nil { - data.Set("Configuration.ReplayAfter", string(*params.Configuration.ReplayAfter)) - } - if params != nil && params.Configuration.Triggers != nil { - data.Set("Configuration.Triggers", *params.Configuration.Triggers) - } - if params != nil && params.Configuration.Url != nil { - data.Set("Configuration.Url", *params.Configuration.Url) - } - if params != nil && params.Target != nil { - data.Set("Target", *params.Target) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Configuration.Filters != nil { + data.Set("Configuration.Filters", *params.Configuration.Filters) + } + if params != nil && params.Configuration.FlowSid != nil { + data.Set("Configuration.FlowSid", *params.Configuration.FlowSid) + } + if params != nil && params.Configuration.Method != nil { + data.Set("Configuration.Method", *params.Configuration.Method) + } + if params != nil && params.Configuration.ReplayAfter != nil { + data.Set("Configuration.ReplayAfter", string(*params.Configuration.ReplayAfter)) + } + if params != nil && params.Configuration.Triggers != nil { + data.Set("Configuration.Triggers", *params.Configuration.Triggers) + } + if params != nil && params.Configuration.Url != nil { + data.Set("Configuration.Url", *params.Configuration.Url) + } + if params != nil && params.Target != nil { + data.Set("Target", *params.Target) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateServiceRoleParams Optional parameters for the method 'CreateServiceRole' type CreateServiceRoleParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - Permission *[]string `json:"Permission,omitempty"` - Type *string `json:"Type,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Permission *[]string `json:"Permission,omitempty"` + Type *string `json:"Type,omitempty"` } /* @@ -806,44 +803,44 @@ Create a new user role in your service @return ConversationsV1ServiceServiceRole */ func (c *DefaultApiService) CreateServiceRole(chatServiceSid string, params *CreateServiceRoleParams) (*ConversationsV1ServiceServiceRole, error) { - path := "/v1/Services/{ChatServiceSid}/Roles" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path := "/v1/Services/{ChatServiceSid}/Roles" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Permission != nil { - data.Set("Permission", *params.Permission) - } - if params != nil && params.Type != nil { - data.Set("Type", *params.Type) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Permission != nil { + data.Set("Permission", *params.Permission) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1ServiceServiceRole{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1ServiceServiceRole{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateServiceUserParams Optional parameters for the method 'CreateServiceUser' type CreateServiceUserParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Identity *string `json:"Identity,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Identity *string `json:"Identity,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -859,50 +856,50 @@ Add a new conversation user to your service @return ConversationsV1ServiceServiceUser */ func (c *DefaultApiService) CreateServiceUser(chatServiceSid string, params *CreateServiceUserParams) (*ConversationsV1ServiceServiceUser, error) { - path := "/v1/Services/{ChatServiceSid}/Users" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - - data := url.Values{} - headers := make(map[string]interface{}) - - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) - } - if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) - } - - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ConversationsV1ServiceServiceUser{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Services/{ChatServiceSid}/Users" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceUser{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateUserParams Optional parameters for the method 'CreateUser' type CreateUserParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Identity *string `json:"Identity,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Identity *string `json:"Identity,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -917,45 +914,45 @@ Add a new conversation user to your account's default service @return ConversationsV1User */ func (c *DefaultApiService) CreateUser(params *CreateUserParams) (*ConversationsV1User, error) { - path := "/v1/Users" - - data := url.Values{} - headers := make(map[string]interface{}) - - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) - } - if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) - } - - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ConversationsV1User{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Users" + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1User{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // DeleteConversationParams Optional parameters for the method 'DeleteConversation' type DeleteConversationParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* @@ -966,29 +963,29 @@ Remove a conversation from your account's default service * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ func (c *DefaultApiService) DeleteConversation(sid string, params *DeleteConversationParams) (error) { - path := "/v1/Conversations/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Conversations/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := make(map[string]interface{}) + data := url.Values{} + headers := make(map[string]interface{}) - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } // DeleteConversationMessageParams Optional parameters for the method 'DeleteConversationMessage' type DeleteConversationMessageParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* @@ -1000,30 +997,30 @@ Remove a message from the conversation * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ func (c *DefaultApiService) DeleteConversationMessage(conversationSid string, sid string, params *DeleteConversationMessageParams) (error) { - path := "/v1/Conversations/{ConversationSid}/Messages/{Sid}" - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Conversations/{ConversationSid}/Messages/{Sid}" + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := make(map[string]interface{}) + data := url.Values{} + headers := make(map[string]interface{}) - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } // DeleteConversationParticipantParams Optional parameters for the method 'DeleteConversationParticipant' type DeleteConversationParticipantParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* @@ -1035,26 +1032,26 @@ Remove a participant from the conversation * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ func (c *DefaultApiService) DeleteConversationParticipant(conversationSid string, sid string, params *DeleteConversationParticipantParams) (error) { - path := "/v1/Conversations/{ConversationSid}/Participants/{Sid}" - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Conversations/{ConversationSid}/Participants/{Sid}" + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := make(map[string]interface{}) + data := url.Values{} + headers := make(map[string]interface{}) - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -1064,23 +1061,23 @@ Remove an existing webhook scoped to the conversation * @param sid A 34 character string that uniquely identifies this resource. */ func (c *DefaultApiService) DeleteConversationScopedWebhook(conversationSid string, sid string) (error) { - path := "/v1/Conversations/{ConversationSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Conversations/{ConversationSid}/Webhooks/{Sid}" + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -1089,22 +1086,22 @@ Remove a push notification credential from your account * @param sid A 34 character string that uniquely identifies this resource. */ func (c *DefaultApiService) DeleteCredential(sid string) (error) { - path := "/v1/Credentials/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Credentials/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -1113,22 +1110,22 @@ Remove a user role from your account's default service * @param sid The SID of the Role resource to delete. */ func (c *DefaultApiService) DeleteRole(sid string) (error) { - path := "/v1/Roles/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Roles/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -1137,22 +1134,22 @@ Remove a conversation service with all its nested resources from your account * @param sid A 34 character string that uniquely identifies this resource. */ func (c *DefaultApiService) DeleteService(sid string) (error) { - path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -1162,27 +1159,27 @@ Remove a push notification binding from the conversation service * @param sid The SID of the Binding resource to delete. */ func (c *DefaultApiService) DeleteServiceBinding(chatServiceSid string, sid string) (error) { - path := "/v1/Services/{ChatServiceSid}/Bindings/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ChatServiceSid}/Bindings/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } // DeleteServiceConversationParams Optional parameters for the method 'DeleteServiceConversation' type DeleteServiceConversationParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* @@ -1194,30 +1191,30 @@ Remove a conversation from your service * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ func (c *DefaultApiService) DeleteServiceConversation(chatServiceSid string, sid string, params *DeleteServiceConversationParams) (error) { - path := "/v1/Services/{ChatServiceSid}/Conversations/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ChatServiceSid}/Conversations/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := make(map[string]interface{}) + data := url.Values{} + headers := make(map[string]interface{}) - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } // DeleteServiceConversationMessageParams Optional parameters for the method 'DeleteServiceConversationMessage' type DeleteServiceConversationMessageParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* @@ -1230,31 +1227,31 @@ Remove a message from the conversation * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ func (c *DefaultApiService) DeleteServiceConversationMessage(chatServiceSid string, conversationSid string, sid string, params *DeleteServiceConversationMessageParams) (error) { - path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := make(map[string]interface{}) + data := url.Values{} + headers := make(map[string]interface{}) - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } // DeleteServiceConversationParticipantParams Optional parameters for the method 'DeleteServiceConversationParticipant' type DeleteServiceConversationParticipantParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* @@ -1267,27 +1264,27 @@ Remove a participant from the conversation * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ func (c *DefaultApiService) DeleteServiceConversationParticipant(chatServiceSid string, conversationSid string, sid string, params *DeleteServiceConversationParticipantParams) (error) { - path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := make(map[string]interface{}) + data := url.Values{} + headers := make(map[string]interface{}) - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -1298,24 +1295,24 @@ Remove an existing webhook scoped to the conversation * @param sid A 34 character string that uniquely identifies this resource. */ func (c *DefaultApiService) DeleteServiceConversationScopedWebhook(chatServiceSid string, conversationSid string, sid string) (error) { - path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -1325,27 +1322,27 @@ Remove a user role from your service * @param sid The SID of the Role resource to delete. */ func (c *DefaultApiService) DeleteServiceRole(chatServiceSid string, sid string) (error) { - path := "/v1/Services/{ChatServiceSid}/Roles/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ChatServiceSid}/Roles/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } // DeleteServiceUserParams Optional parameters for the method 'DeleteServiceUser' type DeleteServiceUserParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* @@ -1357,30 +1354,30 @@ Remove a conversation user from your service * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ func (c *DefaultApiService) DeleteServiceUser(chatServiceSid string, sid string, params *DeleteServiceUserParams) (error) { - path := "/v1/Services/{ChatServiceSid}/Users/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ChatServiceSid}/Users/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := make(map[string]interface{}) + data := url.Values{} + headers := make(map[string]interface{}) - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } // DeleteUserParams Optional parameters for the method 'DeleteUser' type DeleteUserParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* @@ -1391,25 +1388,25 @@ Remove a conversation user from your account's default service * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ func (c *DefaultApiService) DeleteUser(sid string, params *DeleteUserParams) (error) { - path := "/v1/Users/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Users/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := make(map[string]interface{}) + data := url.Values{} + headers := make(map[string]interface{}) - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -1418,26 +1415,26 @@ Fetch the global configuration of conversations on your account @return ConversationsV1Configuration */ func (c *DefaultApiService) FetchConfiguration() (*ConversationsV1Configuration, error) { - path := "/v1/Configuration" + path := "/v1/Configuration" - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1Configuration{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1Configuration{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1445,26 +1442,26 @@ FetchConfigurationWebhook Method for FetchConfigurationWebhook @return ConversationsV1ConfigurationConfigurationWebhook */ func (c *DefaultApiService) FetchConfigurationWebhook() (*ConversationsV1ConfigurationConfigurationWebhook, error) { - path := "/v1/Configuration/Webhooks" + path := "/v1/Configuration/Webhooks" - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1ConfigurationConfigurationWebhook{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1ConfigurationConfigurationWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1474,27 +1471,27 @@ Fetch a conversation from your account's default service @return ConversationsV1Conversation */ func (c *DefaultApiService) FetchConversation(sid string) (*ConversationsV1Conversation, error) { - path := "/v1/Conversations/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Conversations/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1Conversation{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1Conversation{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1505,28 +1502,28 @@ Fetch a message from the conversation @return ConversationsV1ConversationConversationMessage */ func (c *DefaultApiService) FetchConversationMessage(conversationSid string, sid string) (*ConversationsV1ConversationConversationMessage, error) { - path := "/v1/Conversations/{ConversationSid}/Messages/{Sid}" - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Conversations/{ConversationSid}/Messages/{Sid}" + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1ConversationConversationMessage{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1ConversationConversationMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1538,29 +1535,29 @@ Fetch the delivery and read receipts of the conversation message @return ConversationsV1ConversationConversationMessageConversationMessageReceipt */ func (c *DefaultApiService) FetchConversationMessageReceipt(conversationSid string, messageSid string, sid string) (*ConversationsV1ConversationConversationMessageConversationMessageReceipt, error) { - path := "/v1/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts/{Sid}" - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"MessageSid"+"}", messageSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts/{Sid}" + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"MessageSid"+"}", messageSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1ConversationConversationMessageConversationMessageReceipt{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1ConversationConversationMessageConversationMessageReceipt{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1571,28 +1568,28 @@ Fetch a participant of the conversation @return ConversationsV1ConversationConversationParticipant */ func (c *DefaultApiService) FetchConversationParticipant(conversationSid string, sid string) (*ConversationsV1ConversationConversationParticipant, error) { - path := "/v1/Conversations/{ConversationSid}/Participants/{Sid}" - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Conversations/{ConversationSid}/Participants/{Sid}" + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1ConversationConversationParticipant{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1ConversationConversationParticipant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1603,28 +1600,28 @@ Fetch the configuration of a conversation-scoped webhook @return ConversationsV1ConversationConversationScopedWebhook */ func (c *DefaultApiService) FetchConversationScopedWebhook(conversationSid string, sid string) (*ConversationsV1ConversationConversationScopedWebhook, error) { - path := "/v1/Conversations/{ConversationSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Conversations/{ConversationSid}/Webhooks/{Sid}" + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1ConversationConversationScopedWebhook{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1ConversationConversationScopedWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1634,27 +1631,27 @@ Fetch a push notification credential from your account @return ConversationsV1Credential */ func (c *DefaultApiService) FetchCredential(sid string) (*ConversationsV1Credential, error) { - path := "/v1/Credentials/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Credentials/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1Credential{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1Credential{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1664,27 +1661,27 @@ Fetch a user role from your account's default service @return ConversationsV1Role */ func (c *DefaultApiService) FetchRole(sid string) (*ConversationsV1Role, error) { - path := "/v1/Roles/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Roles/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1Role{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1Role{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1694,27 +1691,27 @@ Fetch a conversation service from your account @return ConversationsV1Service */ func (c *DefaultApiService) FetchService(sid string) (*ConversationsV1Service, error) { - path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1Service{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1725,28 +1722,28 @@ Fetch a push notification binding from the conversation service @return ConversationsV1ServiceServiceBinding */ func (c *DefaultApiService) FetchServiceBinding(chatServiceSid string, sid string) (*ConversationsV1ServiceServiceBinding, error) { - path := "/v1/Services/{ChatServiceSid}/Bindings/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ChatServiceSid}/Bindings/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1ServiceServiceBinding{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1ServiceServiceBinding{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1756,27 +1753,27 @@ Fetch the configuration of a conversation service @return ConversationsV1ServiceServiceConfiguration */ func (c *DefaultApiService) FetchServiceConfiguration(chatServiceSid string) (*ConversationsV1ServiceServiceConfiguration, error) { - path := "/v1/Services/{ChatServiceSid}/Configuration" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path := "/v1/Services/{ChatServiceSid}/Configuration" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1ServiceServiceConfiguration{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1ServiceServiceConfiguration{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1787,28 +1784,28 @@ Fetch a conversation from your service @return ConversationsV1ServiceServiceConversation */ func (c *DefaultApiService) FetchServiceConversation(chatServiceSid string, sid string) (*ConversationsV1ServiceServiceConversation, error) { - path := "/v1/Services/{ChatServiceSid}/Conversations/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ChatServiceSid}/Conversations/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1ServiceServiceConversation{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1ServiceServiceConversation{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1820,29 +1817,29 @@ Fetch a message from the conversation @return ConversationsV1ServiceServiceConversationServiceConversationMessage */ func (c *DefaultApiService) FetchServiceConversationMessage(chatServiceSid string, conversationSid string, sid string) (*ConversationsV1ServiceServiceConversationServiceConversationMessage, error) { - path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1ServiceServiceConversationServiceConversationMessage{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1ServiceServiceConversationServiceConversationMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1855,30 +1852,30 @@ Fetch the delivery and read receipts of the conversation message @return ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt */ func (c *DefaultApiService) FetchServiceConversationMessageReceipt(chatServiceSid string, conversationSid string, messageSid string, sid string) (*ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt, error) { - path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"MessageSid"+"}", messageSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"MessageSid"+"}", messageSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1890,29 +1887,29 @@ Fetch a participant of the conversation @return ConversationsV1ServiceServiceConversationServiceConversationParticipant */ func (c *DefaultApiService) FetchServiceConversationParticipant(chatServiceSid string, conversationSid string, sid string) (*ConversationsV1ServiceServiceConversationServiceConversationParticipant, error) { - path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1ServiceServiceConversationServiceConversationParticipant{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1ServiceServiceConversationServiceConversationParticipant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1924,29 +1921,29 @@ Fetch the configuration of a conversation-scoped webhook @return ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook */ func (c *DefaultApiService) FetchServiceConversationScopedWebhook(chatServiceSid string, conversationSid string, sid string) (*ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook, error) { - path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1956,27 +1953,27 @@ Fetch push notification service settings @return ConversationsV1ServiceServiceConfigurationServiceNotification */ func (c *DefaultApiService) FetchServiceNotification(chatServiceSid string) (*ConversationsV1ServiceServiceConfigurationServiceNotification, error) { - path := "/v1/Services/{ChatServiceSid}/Configuration/Notifications" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path := "/v1/Services/{ChatServiceSid}/Configuration/Notifications" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1ServiceServiceConfigurationServiceNotification{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1ServiceServiceConfigurationServiceNotification{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1987,28 +1984,28 @@ Fetch a user role from your service @return ConversationsV1ServiceServiceRole */ func (c *DefaultApiService) FetchServiceRole(chatServiceSid string, sid string) (*ConversationsV1ServiceServiceRole, error) { - path := "/v1/Services/{ChatServiceSid}/Roles/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ChatServiceSid}/Roles/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1ServiceServiceRole{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1ServiceServiceRole{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -2019,28 +2016,28 @@ Fetch a conversation user from your service @return ConversationsV1ServiceServiceUser */ func (c *DefaultApiService) FetchServiceUser(chatServiceSid string, sid string) (*ConversationsV1ServiceServiceUser, error) { - path := "/v1/Services/{ChatServiceSid}/Users/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ChatServiceSid}/Users/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1ServiceServiceUser{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1ServiceServiceUser{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -2050,31 +2047,31 @@ Fetch a conversation user from your account's default service @return ConversationsV1User */ func (c *DefaultApiService) FetchUser(sid string) (*ConversationsV1User, error) { - path := "/v1/Users/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Users/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1User{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1User{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListConversationParams Optional parameters for the method 'ListConversation' type ListConversationParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2085,33 +2082,33 @@ Retrieve a list of conversations in your account's default service @return ConversationsV1ConversationReadResponse */ func (c *DefaultApiService) ListConversation(params *ListConversationParams) (*ConversationsV1ConversationReadResponse, error) { - path := "/v1/Conversations" + path := "/v1/Conversations" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1ConversationReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1ConversationReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListConversationMessageParams Optional parameters for the method 'ListConversationMessage' type ListConversationMessageParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2123,34 +2120,34 @@ Retrieve a list of all messages in the conversation @return ConversationsV1ConversationConversationMessageReadResponse */ func (c *DefaultApiService) ListConversationMessage(conversationSid string, params *ListConversationMessageParams) (*ConversationsV1ConversationConversationMessageReadResponse, error) { - path := "/v1/Conversations/{ConversationSid}/Messages" - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path := "/v1/Conversations/{ConversationSid}/Messages" + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1ConversationConversationMessageReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1ConversationConversationMessageReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListConversationMessageReceiptParams Optional parameters for the method 'ListConversationMessageReceipt' type ListConversationMessageReceiptParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2163,35 +2160,35 @@ Retrieve a list of all delivery and read receipts of the conversation message @return ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse */ func (c *DefaultApiService) ListConversationMessageReceipt(conversationSid string, messageSid string, params *ListConversationMessageReceiptParams) (*ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse, error) { - path := "/v1/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts" - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"MessageSid"+"}", messageSid, -1) + path := "/v1/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts" + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"MessageSid"+"}", messageSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListConversationParticipantParams Optional parameters for the method 'ListConversationParticipant' type ListConversationParticipantParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2203,34 +2200,34 @@ Retrieve a list of all participants of the conversation @return ConversationsV1ConversationConversationParticipantReadResponse */ func (c *DefaultApiService) ListConversationParticipant(conversationSid string, params *ListConversationParticipantParams) (*ConversationsV1ConversationConversationParticipantReadResponse, error) { - path := "/v1/Conversations/{ConversationSid}/Participants" - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path := "/v1/Conversations/{ConversationSid}/Participants" + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1ConversationConversationParticipantReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1ConversationConversationParticipantReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListConversationScopedWebhookParams Optional parameters for the method 'ListConversationScopedWebhook' type ListConversationScopedWebhookParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2242,34 +2239,34 @@ Retrieve a list of all webhooks scoped to the conversation @return ConversationsV1ConversationConversationScopedWebhookReadResponse */ func (c *DefaultApiService) ListConversationScopedWebhook(conversationSid string, params *ListConversationScopedWebhookParams) (*ConversationsV1ConversationConversationScopedWebhookReadResponse, error) { - path := "/v1/Conversations/{ConversationSid}/Webhooks" - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path := "/v1/Conversations/{ConversationSid}/Webhooks" + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1ConversationConversationScopedWebhookReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1ConversationConversationScopedWebhookReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListCredentialParams Optional parameters for the method 'ListCredential' type ListCredentialParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2280,33 +2277,33 @@ Retrieve a list of all push notification credentials on your account @return ConversationsV1CredentialReadResponse */ func (c *DefaultApiService) ListCredential(params *ListCredentialParams) (*ConversationsV1CredentialReadResponse, error) { - path := "/v1/Credentials" + path := "/v1/Credentials" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1CredentialReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1CredentialReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListRoleParams Optional parameters for the method 'ListRole' type ListRoleParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2317,33 +2314,33 @@ Retrieve a list of all user roles in your account's default service @return ConversationsV1RoleReadResponse */ func (c *DefaultApiService) ListRole(params *ListRoleParams) (*ConversationsV1RoleReadResponse, error) { - path := "/v1/Roles" + path := "/v1/Roles" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1RoleReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1RoleReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListServiceParams Optional parameters for the method 'ListService' type ListServiceParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2354,35 +2351,35 @@ Retrieve a list of all conversation services on your account @return ConversationsV1ServiceReadResponse */ func (c *DefaultApiService) ListService(params *ListServiceParams) (*ConversationsV1ServiceReadResponse, error) { - path := "/v1/Services" + path := "/v1/Services" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1ServiceReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1ServiceReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListServiceBindingParams Optional parameters for the method 'ListServiceBinding' type ListServiceBindingParams struct { - BindingType *[]string `json:"BindingType,omitempty"` - Identity *[]string `json:"Identity,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + BindingType *[]string `json:"BindingType,omitempty"` + Identity *[]string `json:"Identity,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2396,40 +2393,40 @@ Retrieve a list of all push notification bindings in the conversation service @return ConversationsV1ServiceServiceBindingReadResponse */ func (c *DefaultApiService) ListServiceBinding(chatServiceSid string, params *ListServiceBindingParams) (*ConversationsV1ServiceServiceBindingReadResponse, error) { - path := "/v1/Services/{ChatServiceSid}/Bindings" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path := "/v1/Services/{ChatServiceSid}/Bindings" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.BindingType != nil { - data.Set("BindingType", string(*params.BindingType)) - } - if params != nil && params.Identity != nil { - data.Set("Identity", string(*params.Identity)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.BindingType != nil { + data.Set("BindingType", string(*params.BindingType)) + } + if params != nil && params.Identity != nil { + data.Set("Identity", string(*params.Identity)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1ServiceServiceBindingReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1ServiceServiceBindingReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListServiceConversationParams Optional parameters for the method 'ListServiceConversation' type ListServiceConversationParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2441,34 +2438,34 @@ Retrieve a list of conversations in your service @return ConversationsV1ServiceServiceConversationReadResponse */ func (c *DefaultApiService) ListServiceConversation(chatServiceSid string, params *ListServiceConversationParams) (*ConversationsV1ServiceServiceConversationReadResponse, error) { - path := "/v1/Services/{ChatServiceSid}/Conversations" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path := "/v1/Services/{ChatServiceSid}/Conversations" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1ServiceServiceConversationReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1ServiceServiceConversationReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListServiceConversationMessageParams Optional parameters for the method 'ListServiceConversationMessage' type ListServiceConversationMessageParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2481,35 +2478,35 @@ Retrieve a list of all messages in the conversation @return ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse */ func (c *DefaultApiService) ListServiceConversationMessage(chatServiceSid string, conversationSid string, params *ListServiceConversationMessageParams) (*ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse, error) { - path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListServiceConversationMessageReceiptParams Optional parameters for the method 'ListServiceConversationMessageReceipt' type ListServiceConversationMessageReceiptParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2523,36 +2520,36 @@ Retrieve a list of all delivery and read receipts of the conversation message @return ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse */ func (c *DefaultApiService) ListServiceConversationMessageReceipt(chatServiceSid string, conversationSid string, messageSid string, params *ListServiceConversationMessageReceiptParams) (*ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse, error) { - path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"MessageSid"+"}", messageSid, -1) + path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"MessageSid"+"}", messageSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListServiceConversationParticipantParams Optional parameters for the method 'ListServiceConversationParticipant' type ListServiceConversationParticipantParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2565,35 +2562,35 @@ Retrieve a list of all participants of the conversation @return ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse */ func (c *DefaultApiService) ListServiceConversationParticipant(chatServiceSid string, conversationSid string, params *ListServiceConversationParticipantParams) (*ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse, error) { - path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListServiceConversationScopedWebhookParams Optional parameters for the method 'ListServiceConversationScopedWebhook' type ListServiceConversationScopedWebhookParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2606,35 +2603,35 @@ Retrieve a list of all webhooks scoped to the conversation @return ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse */ func (c *DefaultApiService) ListServiceConversationScopedWebhook(chatServiceSid string, conversationSid string, params *ListServiceConversationScopedWebhookParams) (*ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse, error) { - path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListServiceRoleParams Optional parameters for the method 'ListServiceRole' type ListServiceRoleParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2646,34 +2643,34 @@ Retrieve a list of all user roles in your service @return ConversationsV1ServiceServiceRoleReadResponse */ func (c *DefaultApiService) ListServiceRole(chatServiceSid string, params *ListServiceRoleParams) (*ConversationsV1ServiceServiceRoleReadResponse, error) { - path := "/v1/Services/{ChatServiceSid}/Roles" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path := "/v1/Services/{ChatServiceSid}/Roles" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1ServiceServiceRoleReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1ServiceServiceRoleReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListServiceUserParams Optional parameters for the method 'ListServiceUser' type ListServiceUserParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2685,34 +2682,34 @@ Retrieve a list of all conversation users in your service @return ConversationsV1ServiceServiceUserReadResponse */ func (c *DefaultApiService) ListServiceUser(chatServiceSid string, params *ListServiceUserParams) (*ConversationsV1ServiceServiceUserReadResponse, error) { - path := "/v1/Services/{ChatServiceSid}/Users" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path := "/v1/Services/{ChatServiceSid}/Users" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1ServiceServiceUserReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1ServiceServiceUserReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListUserParams Optional parameters for the method 'ListUser' type ListUserParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2723,36 +2720,36 @@ Retrieve a list of all conversation users in your account's default service @return ConversationsV1UserReadResponse */ func (c *DefaultApiService) ListUser(params *ListUserParams) (*ConversationsV1UserReadResponse, error) { - path := "/v1/Users" + path := "/v1/Users" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1UserReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1UserReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateConfigurationParams Optional parameters for the method 'UpdateConfiguration' type UpdateConfigurationParams struct { - DefaultChatServiceSid *string `json:"DefaultChatServiceSid,omitempty"` - DefaultClosedTimer *string `json:"DefaultClosedTimer,omitempty"` - DefaultInactiveTimer *string `json:"DefaultInactiveTimer,omitempty"` - DefaultMessagingServiceSid *string `json:"DefaultMessagingServiceSid,omitempty"` + DefaultChatServiceSid *string `json:"DefaultChatServiceSid,omitempty"` + DefaultClosedTimer *string `json:"DefaultClosedTimer,omitempty"` + DefaultInactiveTimer *string `json:"DefaultInactiveTimer,omitempty"` + DefaultMessagingServiceSid *string `json:"DefaultMessagingServiceSid,omitempty"` } /* @@ -2766,46 +2763,46 @@ Update the global configuration of conversations on your account @return ConversationsV1Configuration */ func (c *DefaultApiService) UpdateConfiguration(params *UpdateConfigurationParams) (*ConversationsV1Configuration, error) { - path := "/v1/Configuration" + path := "/v1/Configuration" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.DefaultChatServiceSid != nil { - data.Set("DefaultChatServiceSid", *params.DefaultChatServiceSid) - } - if params != nil && params.DefaultClosedTimer != nil { - data.Set("DefaultClosedTimer", *params.DefaultClosedTimer) - } - if params != nil && params.DefaultInactiveTimer != nil { - data.Set("DefaultInactiveTimer", *params.DefaultInactiveTimer) - } - if params != nil && params.DefaultMessagingServiceSid != nil { - data.Set("DefaultMessagingServiceSid", *params.DefaultMessagingServiceSid) - } + if params != nil && params.DefaultChatServiceSid != nil { + data.Set("DefaultChatServiceSid", *params.DefaultChatServiceSid) + } + if params != nil && params.DefaultClosedTimer != nil { + data.Set("DefaultClosedTimer", *params.DefaultClosedTimer) + } + if params != nil && params.DefaultInactiveTimer != nil { + data.Set("DefaultInactiveTimer", *params.DefaultInactiveTimer) + } + if params != nil && params.DefaultMessagingServiceSid != nil { + data.Set("DefaultMessagingServiceSid", *params.DefaultMessagingServiceSid) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1Configuration{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1Configuration{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateConfigurationWebhookParams Optional parameters for the method 'UpdateConfigurationWebhook' type UpdateConfigurationWebhookParams struct { - Filters *[]string `json:"Filters,omitempty"` - Method *string `json:"Method,omitempty"` - PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"` - PreWebhookUrl *string `json:"PreWebhookUrl,omitempty"` - Target *string `json:"Target,omitempty"` + Filters *[]string `json:"Filters,omitempty"` + Method *string `json:"Method,omitempty"` + PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"` + PreWebhookUrl *string `json:"PreWebhookUrl,omitempty"` + Target *string `json:"Target,omitempty"` } /* @@ -2819,54 +2816,54 @@ UpdateConfigurationWebhook Method for UpdateConfigurationWebhook @return ConversationsV1ConfigurationConfigurationWebhook */ func (c *DefaultApiService) UpdateConfigurationWebhook(params *UpdateConfigurationWebhookParams) (*ConversationsV1ConfigurationConfigurationWebhook, error) { - path := "/v1/Configuration/Webhooks" - - data := url.Values{} - headers := 0 - - if params != nil && params.Filters != nil { - data.Set("Filters", *params.Filters) - } - if params != nil && params.Method != nil { - data.Set("Method", *params.Method) - } - if params != nil && params.PostWebhookUrl != nil { - data.Set("PostWebhookUrl", *params.PostWebhookUrl) - } - if params != nil && params.PreWebhookUrl != nil { - data.Set("PreWebhookUrl", *params.PreWebhookUrl) - } - if params != nil && params.Target != nil { - data.Set("Target", *params.Target) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ConversationsV1ConfigurationConfigurationWebhook{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Configuration/Webhooks" + + data := url.Values{} + headers := 0 + + if params != nil && params.Filters != nil { + data.Set("Filters", *params.Filters) + } + if params != nil && params.Method != nil { + data.Set("Method", *params.Method) + } + if params != nil && params.PostWebhookUrl != nil { + data.Set("PostWebhookUrl", *params.PostWebhookUrl) + } + if params != nil && params.PreWebhookUrl != nil { + data.Set("PreWebhookUrl", *params.PreWebhookUrl) + } + if params != nil && params.Target != nil { + data.Set("Target", *params.Target) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ConfigurationConfigurationWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateConversationParams Optional parameters for the method 'UpdateConversation' type UpdateConversationParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` - State *string `json:"State,omitempty"` - Timers.Closed *string `json:"Timers.Closed,omitempty"` - Timers.Inactive *string `json:"Timers.Inactive,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` + State *string `json:"State,omitempty"` + Timers.Closed *string `json:"Timers.Closed,omitempty"` + Timers.Inactive *string `json:"Timers.Inactive,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -2887,66 +2884,66 @@ Update an existing conversation in your account's default service @return ConversationsV1Conversation */ func (c *DefaultApiService) UpdateConversation(sid string, params *UpdateConversationParams) (*ConversationsV1Conversation, error) { - path := "/v1/Conversations/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := make(map[string]interface{}) - - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) - } - if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.MessagingServiceSid != nil { - data.Set("MessagingServiceSid", *params.MessagingServiceSid) - } - if params != nil && params.State != nil { - data.Set("State", *params.State) - } - if params != nil && params.Timers.Closed != nil { - data.Set("Timers.Closed", *params.Timers.Closed) - } - if params != nil && params.Timers.Inactive != nil { - data.Set("Timers.Inactive", *params.Timers.Inactive) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } - - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ConversationsV1Conversation{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Conversations/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.MessagingServiceSid != nil { + data.Set("MessagingServiceSid", *params.MessagingServiceSid) + } + if params != nil && params.State != nil { + data.Set("State", *params.State) + } + if params != nil && params.Timers.Closed != nil { + data.Set("Timers.Closed", *params.Timers.Closed) + } + if params != nil && params.Timers.Inactive != nil { + data.Set("Timers.Inactive", *params.Timers.Inactive) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1Conversation{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateConversationMessageParams Optional parameters for the method 'UpdateConversationMessage' type UpdateConversationMessageParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - Author *string `json:"Author,omitempty"` - Body *string `json:"Body,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + Author *string `json:"Author,omitempty"` + Body *string `json:"Body,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` } /* @@ -2964,59 +2961,59 @@ Update an existing message in the conversation @return ConversationsV1ConversationConversationMessage */ func (c *DefaultApiService) UpdateConversationMessage(conversationSid string, sid string, params *UpdateConversationMessageParams) (*ConversationsV1ConversationConversationMessage, error) { - path := "/v1/Conversations/{ConversationSid}/Messages/{Sid}" - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := make(map[string]interface{}) - - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.Author != nil { - data.Set("Author", *params.Author) - } - if params != nil && params.Body != nil { - data.Set("Body", *params.Body) - } - if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) - } - if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) - } - - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ConversationsV1ConversationConversationMessage{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Conversations/{ConversationSid}/Messages/{Sid}" + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.Author != nil { + data.Set("Author", *params.Author) + } + if params != nil && params.Body != nil { + data.Set("Body", *params.Body) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ConversationConversationMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateConversationParticipantParams Optional parameters for the method 'UpdateConversationParticipant' type UpdateConversationParticipantParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - Identity *string `json:"Identity,omitempty"` - LastReadMessageIndex *int32 `json:"LastReadMessageIndex,omitempty"` - LastReadTimestamp *string `json:"LastReadTimestamp,omitempty"` - MessagingBinding.ProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` - MessagingBinding.ProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + Identity *string `json:"Identity,omitempty"` + LastReadMessageIndex *int32 `json:"LastReadMessageIndex,omitempty"` + LastReadTimestamp *string `json:"LastReadTimestamp,omitempty"` + MessagingBinding.ProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` + MessagingBinding.ProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -3038,66 +3035,66 @@ Update an existing participant in the conversation @return ConversationsV1ConversationConversationParticipant */ func (c *DefaultApiService) UpdateConversationParticipant(conversationSid string, sid string, params *UpdateConversationParticipantParams) (*ConversationsV1ConversationConversationParticipant, error) { - path := "/v1/Conversations/{ConversationSid}/Participants/{Sid}" - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := make(map[string]interface{}) - - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) - } - if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) - } - if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) - } - if params != nil && params.LastReadMessageIndex != nil { - data.Set("LastReadMessageIndex", string(*params.LastReadMessageIndex)) - } - if params != nil && params.LastReadTimestamp != nil { - data.Set("LastReadTimestamp", *params.LastReadTimestamp) - } - if params != nil && params.MessagingBinding.ProjectedAddress != nil { - data.Set("MessagingBinding.ProjectedAddress", *params.MessagingBinding.ProjectedAddress) - } - if params != nil && params.MessagingBinding.ProxyAddress != nil { - data.Set("MessagingBinding.ProxyAddress", *params.MessagingBinding.ProxyAddress) - } - if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) - } - - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ConversationsV1ConversationConversationParticipant{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Conversations/{ConversationSid}/Participants/{Sid}" + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.LastReadMessageIndex != nil { + data.Set("LastReadMessageIndex", string(*params.LastReadMessageIndex)) + } + if params != nil && params.LastReadTimestamp != nil { + data.Set("LastReadTimestamp", *params.LastReadTimestamp) + } + if params != nil && params.MessagingBinding.ProjectedAddress != nil { + data.Set("MessagingBinding.ProjectedAddress", *params.MessagingBinding.ProjectedAddress) + } + if params != nil && params.MessagingBinding.ProxyAddress != nil { + data.Set("MessagingBinding.ProxyAddress", *params.MessagingBinding.ProxyAddress) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ConversationConversationParticipant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateConversationScopedWebhookParams Optional parameters for the method 'UpdateConversationScopedWebhook' type UpdateConversationScopedWebhookParams struct { - Configuration.Filters *[]string `json:"Configuration.Filters,omitempty"` - Configuration.FlowSid *string `json:"Configuration.FlowSid,omitempty"` - Configuration.Method *string `json:"Configuration.Method,omitempty"` - Configuration.Triggers *[]string `json:"Configuration.Triggers,omitempty"` - Configuration.Url *string `json:"Configuration.Url,omitempty"` + Configuration.Filters *[]string `json:"Configuration.Filters,omitempty"` + Configuration.FlowSid *string `json:"Configuration.FlowSid,omitempty"` + Configuration.Method *string `json:"Configuration.Method,omitempty"` + Configuration.Triggers *[]string `json:"Configuration.Triggers,omitempty"` + Configuration.Url *string `json:"Configuration.Url,omitempty"` } /* @@ -3114,53 +3111,53 @@ Update an existing conversation-scoped webhook @return ConversationsV1ConversationConversationScopedWebhook */ func (c *DefaultApiService) UpdateConversationScopedWebhook(conversationSid string, sid string, params *UpdateConversationScopedWebhookParams) (*ConversationsV1ConversationConversationScopedWebhook, error) { - path := "/v1/Conversations/{ConversationSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Configuration.Filters != nil { - data.Set("Configuration.Filters", *params.Configuration.Filters) - } - if params != nil && params.Configuration.FlowSid != nil { - data.Set("Configuration.FlowSid", *params.Configuration.FlowSid) - } - if params != nil && params.Configuration.Method != nil { - data.Set("Configuration.Method", *params.Configuration.Method) - } - if params != nil && params.Configuration.Triggers != nil { - data.Set("Configuration.Triggers", *params.Configuration.Triggers) - } - if params != nil && params.Configuration.Url != nil { - data.Set("Configuration.Url", *params.Configuration.Url) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ConversationsV1ConversationConversationScopedWebhook{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Conversations/{ConversationSid}/Webhooks/{Sid}" + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Configuration.Filters != nil { + data.Set("Configuration.Filters", *params.Configuration.Filters) + } + if params != nil && params.Configuration.FlowSid != nil { + data.Set("Configuration.FlowSid", *params.Configuration.FlowSid) + } + if params != nil && params.Configuration.Method != nil { + data.Set("Configuration.Method", *params.Configuration.Method) + } + if params != nil && params.Configuration.Triggers != nil { + data.Set("Configuration.Triggers", *params.Configuration.Triggers) + } + if params != nil && params.Configuration.Url != nil { + data.Set("Configuration.Url", *params.Configuration.Url) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ConversationConversationScopedWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateCredentialParams Optional parameters for the method 'UpdateCredential' type UpdateCredentialParams struct { - ApiKey *string `json:"ApiKey,omitempty"` - Certificate *string `json:"Certificate,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PrivateKey *string `json:"PrivateKey,omitempty"` - Sandbox *bool `json:"Sandbox,omitempty"` - Secret *string `json:"Secret,omitempty"` - Type *string `json:"Type,omitempty"` + ApiKey *string `json:"ApiKey,omitempty"` + Certificate *string `json:"Certificate,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PrivateKey *string `json:"PrivateKey,omitempty"` + Sandbox *bool `json:"Sandbox,omitempty"` + Secret *string `json:"Secret,omitempty"` + Type *string `json:"Type,omitempty"` } /* @@ -3178,52 +3175,52 @@ Update an existing push notification credential on your account @return ConversationsV1Credential */ func (c *DefaultApiService) UpdateCredential(sid string, params *UpdateCredentialParams) (*ConversationsV1Credential, error) { - path := "/v1/Credentials/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.ApiKey != nil { - data.Set("ApiKey", *params.ApiKey) - } - if params != nil && params.Certificate != nil { - data.Set("Certificate", *params.Certificate) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.PrivateKey != nil { - data.Set("PrivateKey", *params.PrivateKey) - } - if params != nil && params.Sandbox != nil { - data.Set("Sandbox", string(*params.Sandbox)) - } - if params != nil && params.Secret != nil { - data.Set("Secret", *params.Secret) - } - if params != nil && params.Type != nil { - data.Set("Type", *params.Type) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ConversationsV1Credential{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Credentials/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ApiKey != nil { + data.Set("ApiKey", *params.ApiKey) + } + if params != nil && params.Certificate != nil { + data.Set("Certificate", *params.Certificate) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PrivateKey != nil { + data.Set("PrivateKey", *params.PrivateKey) + } + if params != nil && params.Sandbox != nil { + data.Set("Sandbox", string(*params.Sandbox)) + } + if params != nil && params.Secret != nil { + data.Set("Secret", *params.Secret) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1Credential{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateRoleParams Optional parameters for the method 'UpdateRole' type UpdateRoleParams struct { - Permission *[]string `json:"Permission,omitempty"` + Permission *[]string `json:"Permission,omitempty"` } /* @@ -3235,37 +3232,37 @@ Update an existing user role in your account's default service @return ConversationsV1Role */ func (c *DefaultApiService) UpdateRole(sid string, params *UpdateRoleParams) (*ConversationsV1Role, error) { - path := "/v1/Roles/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Roles/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Permission != nil { - data.Set("Permission", *params.Permission) - } + if params != nil && params.Permission != nil { + data.Set("Permission", *params.Permission) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1Role{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1Role{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateServiceConfigurationParams Optional parameters for the method 'UpdateServiceConfiguration' type UpdateServiceConfigurationParams struct { - DefaultChatServiceRoleSid *string `json:"DefaultChatServiceRoleSid,omitempty"` - DefaultConversationCreatorRoleSid *string `json:"DefaultConversationCreatorRoleSid,omitempty"` - DefaultConversationRoleSid *string `json:"DefaultConversationRoleSid,omitempty"` - ReachabilityEnabled *bool `json:"ReachabilityEnabled,omitempty"` + DefaultChatServiceRoleSid *string `json:"DefaultChatServiceRoleSid,omitempty"` + DefaultConversationCreatorRoleSid *string `json:"DefaultConversationCreatorRoleSid,omitempty"` + DefaultConversationRoleSid *string `json:"DefaultConversationRoleSid,omitempty"` + ReachabilityEnabled *bool `json:"ReachabilityEnabled,omitempty"` } /* @@ -3280,52 +3277,52 @@ Update configuration settings of a conversation service @return ConversationsV1ServiceServiceConfiguration */ func (c *DefaultApiService) UpdateServiceConfiguration(chatServiceSid string, params *UpdateServiceConfigurationParams) (*ConversationsV1ServiceServiceConfiguration, error) { - path := "/v1/Services/{ChatServiceSid}/Configuration" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path := "/v1/Services/{ChatServiceSid}/Configuration" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.DefaultChatServiceRoleSid != nil { - data.Set("DefaultChatServiceRoleSid", *params.DefaultChatServiceRoleSid) - } - if params != nil && params.DefaultConversationCreatorRoleSid != nil { - data.Set("DefaultConversationCreatorRoleSid", *params.DefaultConversationCreatorRoleSid) - } - if params != nil && params.DefaultConversationRoleSid != nil { - data.Set("DefaultConversationRoleSid", *params.DefaultConversationRoleSid) - } - if params != nil && params.ReachabilityEnabled != nil { - data.Set("ReachabilityEnabled", string(*params.ReachabilityEnabled)) - } + if params != nil && params.DefaultChatServiceRoleSid != nil { + data.Set("DefaultChatServiceRoleSid", *params.DefaultChatServiceRoleSid) + } + if params != nil && params.DefaultConversationCreatorRoleSid != nil { + data.Set("DefaultConversationCreatorRoleSid", *params.DefaultConversationCreatorRoleSid) + } + if params != nil && params.DefaultConversationRoleSid != nil { + data.Set("DefaultConversationRoleSid", *params.DefaultConversationRoleSid) + } + if params != nil && params.ReachabilityEnabled != nil { + data.Set("ReachabilityEnabled", string(*params.ReachabilityEnabled)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1ServiceServiceConfiguration{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1ServiceServiceConfiguration{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateServiceConversationParams Optional parameters for the method 'UpdateServiceConversation' type UpdateServiceConversationParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` - State *string `json:"State,omitempty"` - Timers.Closed *string `json:"Timers.Closed,omitempty"` - Timers.Inactive *string `json:"Timers.Inactive,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` + State *string `json:"State,omitempty"` + Timers.Closed *string `json:"Timers.Closed,omitempty"` + Timers.Inactive *string `json:"Timers.Inactive,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -3347,67 +3344,67 @@ Update an existing conversation in your service @return ConversationsV1ServiceServiceConversation */ func (c *DefaultApiService) UpdateServiceConversation(chatServiceSid string, sid string, params *UpdateServiceConversationParams) (*ConversationsV1ServiceServiceConversation, error) { - path := "/v1/Services/{ChatServiceSid}/Conversations/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := make(map[string]interface{}) - - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) - } - if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.MessagingServiceSid != nil { - data.Set("MessagingServiceSid", *params.MessagingServiceSid) - } - if params != nil && params.State != nil { - data.Set("State", *params.State) - } - if params != nil && params.Timers.Closed != nil { - data.Set("Timers.Closed", *params.Timers.Closed) - } - if params != nil && params.Timers.Inactive != nil { - data.Set("Timers.Inactive", *params.Timers.Inactive) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } - - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ConversationsV1ServiceServiceConversation{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Services/{ChatServiceSid}/Conversations/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.MessagingServiceSid != nil { + data.Set("MessagingServiceSid", *params.MessagingServiceSid) + } + if params != nil && params.State != nil { + data.Set("State", *params.State) + } + if params != nil && params.Timers.Closed != nil { + data.Set("Timers.Closed", *params.Timers.Closed) + } + if params != nil && params.Timers.Inactive != nil { + data.Set("Timers.Inactive", *params.Timers.Inactive) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceConversation{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateServiceConversationMessageParams Optional parameters for the method 'UpdateServiceConversationMessage' type UpdateServiceConversationMessageParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - Author *string `json:"Author,omitempty"` - Body *string `json:"Body,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + Author *string `json:"Author,omitempty"` + Body *string `json:"Body,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` } /* @@ -3426,60 +3423,60 @@ Update an existing message in the conversation @return ConversationsV1ServiceServiceConversationServiceConversationMessage */ func (c *DefaultApiService) UpdateServiceConversationMessage(chatServiceSid string, conversationSid string, sid string, params *UpdateServiceConversationMessageParams) (*ConversationsV1ServiceServiceConversationServiceConversationMessage, error) { - path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := make(map[string]interface{}) - - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.Author != nil { - data.Set("Author", *params.Author) - } - if params != nil && params.Body != nil { - data.Set("Body", *params.Body) - } - if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) - } - if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) - } - - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ConversationsV1ServiceServiceConversationServiceConversationMessage{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.Author != nil { + data.Set("Author", *params.Author) + } + if params != nil && params.Body != nil { + data.Set("Body", *params.Body) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceConversationServiceConversationMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateServiceConversationParticipantParams Optional parameters for the method 'UpdateServiceConversationParticipant' type UpdateServiceConversationParticipantParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - Identity *string `json:"Identity,omitempty"` - LastReadMessageIndex *int32 `json:"LastReadMessageIndex,omitempty"` - LastReadTimestamp *string `json:"LastReadTimestamp,omitempty"` - MessagingBinding.ProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` - MessagingBinding.ProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + Identity *string `json:"Identity,omitempty"` + LastReadMessageIndex *int32 `json:"LastReadMessageIndex,omitempty"` + LastReadTimestamp *string `json:"LastReadTimestamp,omitempty"` + MessagingBinding.ProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` + MessagingBinding.ProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -3502,67 +3499,67 @@ Update an existing participant in the conversation @return ConversationsV1ServiceServiceConversationServiceConversationParticipant */ func (c *DefaultApiService) UpdateServiceConversationParticipant(chatServiceSid string, conversationSid string, sid string, params *UpdateServiceConversationParticipantParams) (*ConversationsV1ServiceServiceConversationServiceConversationParticipant, error) { - path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := make(map[string]interface{}) - - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) - } - if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) - } - if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) - } - if params != nil && params.LastReadMessageIndex != nil { - data.Set("LastReadMessageIndex", string(*params.LastReadMessageIndex)) - } - if params != nil && params.LastReadTimestamp != nil { - data.Set("LastReadTimestamp", *params.LastReadTimestamp) - } - if params != nil && params.MessagingBinding.ProjectedAddress != nil { - data.Set("MessagingBinding.ProjectedAddress", *params.MessagingBinding.ProjectedAddress) - } - if params != nil && params.MessagingBinding.ProxyAddress != nil { - data.Set("MessagingBinding.ProxyAddress", *params.MessagingBinding.ProxyAddress) - } - if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) - } - - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ConversationsV1ServiceServiceConversationServiceConversationParticipant{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.LastReadMessageIndex != nil { + data.Set("LastReadMessageIndex", string(*params.LastReadMessageIndex)) + } + if params != nil && params.LastReadTimestamp != nil { + data.Set("LastReadTimestamp", *params.LastReadTimestamp) + } + if params != nil && params.MessagingBinding.ProjectedAddress != nil { + data.Set("MessagingBinding.ProjectedAddress", *params.MessagingBinding.ProjectedAddress) + } + if params != nil && params.MessagingBinding.ProxyAddress != nil { + data.Set("MessagingBinding.ProxyAddress", *params.MessagingBinding.ProxyAddress) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceConversationServiceConversationParticipant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateServiceConversationScopedWebhookParams Optional parameters for the method 'UpdateServiceConversationScopedWebhook' type UpdateServiceConversationScopedWebhookParams struct { - Configuration.Filters *[]string `json:"Configuration.Filters,omitempty"` - Configuration.FlowSid *string `json:"Configuration.FlowSid,omitempty"` - Configuration.Method *string `json:"Configuration.Method,omitempty"` - Configuration.Triggers *[]string `json:"Configuration.Triggers,omitempty"` - Configuration.Url *string `json:"Configuration.Url,omitempty"` + Configuration.Filters *[]string `json:"Configuration.Filters,omitempty"` + Configuration.FlowSid *string `json:"Configuration.FlowSid,omitempty"` + Configuration.Method *string `json:"Configuration.Method,omitempty"` + Configuration.Triggers *[]string `json:"Configuration.Triggers,omitempty"` + Configuration.Url *string `json:"Configuration.Url,omitempty"` } /* @@ -3580,58 +3577,58 @@ Update an existing conversation-scoped webhook @return ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook */ func (c *DefaultApiService) UpdateServiceConversationScopedWebhook(chatServiceSid string, conversationSid string, sid string, params *UpdateServiceConversationScopedWebhookParams) (*ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook, error) { - path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Configuration.Filters != nil { - data.Set("Configuration.Filters", *params.Configuration.Filters) - } - if params != nil && params.Configuration.FlowSid != nil { - data.Set("Configuration.FlowSid", *params.Configuration.FlowSid) - } - if params != nil && params.Configuration.Method != nil { - data.Set("Configuration.Method", *params.Configuration.Method) - } - if params != nil && params.Configuration.Triggers != nil { - data.Set("Configuration.Triggers", *params.Configuration.Triggers) - } - if params != nil && params.Configuration.Url != nil { - data.Set("Configuration.Url", *params.Configuration.Url) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Configuration.Filters != nil { + data.Set("Configuration.Filters", *params.Configuration.Filters) + } + if params != nil && params.Configuration.FlowSid != nil { + data.Set("Configuration.FlowSid", *params.Configuration.FlowSid) + } + if params != nil && params.Configuration.Method != nil { + data.Set("Configuration.Method", *params.Configuration.Method) + } + if params != nil && params.Configuration.Triggers != nil { + data.Set("Configuration.Triggers", *params.Configuration.Triggers) + } + if params != nil && params.Configuration.Url != nil { + data.Set("Configuration.Url", *params.Configuration.Url) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateServiceNotificationParams Optional parameters for the method 'UpdateServiceNotification' type UpdateServiceNotificationParams struct { - AddedToConversation.Enabled *bool `json:"AddedToConversation.Enabled,omitempty"` - AddedToConversation.Sound *string `json:"AddedToConversation.Sound,omitempty"` - AddedToConversation.Template *string `json:"AddedToConversation.Template,omitempty"` - LogEnabled *bool `json:"LogEnabled,omitempty"` - NewMessage.BadgeCountEnabled *bool `json:"NewMessage.BadgeCountEnabled,omitempty"` - NewMessage.Enabled *bool `json:"NewMessage.Enabled,omitempty"` - NewMessage.Sound *string `json:"NewMessage.Sound,omitempty"` - NewMessage.Template *string `json:"NewMessage.Template,omitempty"` - RemovedFromConversation.Enabled *bool `json:"RemovedFromConversation.Enabled,omitempty"` - RemovedFromConversation.Sound *string `json:"RemovedFromConversation.Sound,omitempty"` - RemovedFromConversation.Template *string `json:"RemovedFromConversation.Template,omitempty"` + AddedToConversation.Enabled *bool `json:"AddedToConversation.Enabled,omitempty"` + AddedToConversation.Sound *string `json:"AddedToConversation.Sound,omitempty"` + AddedToConversation.Template *string `json:"AddedToConversation.Template,omitempty"` + LogEnabled *bool `json:"LogEnabled,omitempty"` + NewMessage.BadgeCountEnabled *bool `json:"NewMessage.BadgeCountEnabled,omitempty"` + NewMessage.Enabled *bool `json:"NewMessage.Enabled,omitempty"` + NewMessage.Sound *string `json:"NewMessage.Sound,omitempty"` + NewMessage.Template *string `json:"NewMessage.Template,omitempty"` + RemovedFromConversation.Enabled *bool `json:"RemovedFromConversation.Enabled,omitempty"` + RemovedFromConversation.Sound *string `json:"RemovedFromConversation.Sound,omitempty"` + RemovedFromConversation.Template *string `json:"RemovedFromConversation.Template,omitempty"` } /* @@ -3653,64 +3650,64 @@ Update push notification service settings @return ConversationsV1ServiceServiceConfigurationServiceNotification */ func (c *DefaultApiService) UpdateServiceNotification(chatServiceSid string, params *UpdateServiceNotificationParams) (*ConversationsV1ServiceServiceConfigurationServiceNotification, error) { - path := "/v1/Services/{ChatServiceSid}/Configuration/Notifications" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.AddedToConversation.Enabled != nil { - data.Set("AddedToConversation.Enabled", string(*params.AddedToConversation.Enabled)) - } - if params != nil && params.AddedToConversation.Sound != nil { - data.Set("AddedToConversation.Sound", *params.AddedToConversation.Sound) - } - if params != nil && params.AddedToConversation.Template != nil { - data.Set("AddedToConversation.Template", *params.AddedToConversation.Template) - } - if params != nil && params.LogEnabled != nil { - data.Set("LogEnabled", string(*params.LogEnabled)) - } - if params != nil && params.NewMessage.BadgeCountEnabled != nil { - data.Set("NewMessage.BadgeCountEnabled", string(*params.NewMessage.BadgeCountEnabled)) - } - if params != nil && params.NewMessage.Enabled != nil { - data.Set("NewMessage.Enabled", string(*params.NewMessage.Enabled)) - } - if params != nil && params.NewMessage.Sound != nil { - data.Set("NewMessage.Sound", *params.NewMessage.Sound) - } - if params != nil && params.NewMessage.Template != nil { - data.Set("NewMessage.Template", *params.NewMessage.Template) - } - if params != nil && params.RemovedFromConversation.Enabled != nil { - data.Set("RemovedFromConversation.Enabled", string(*params.RemovedFromConversation.Enabled)) - } - if params != nil && params.RemovedFromConversation.Sound != nil { - data.Set("RemovedFromConversation.Sound", *params.RemovedFromConversation.Sound) - } - if params != nil && params.RemovedFromConversation.Template != nil { - data.Set("RemovedFromConversation.Template", *params.RemovedFromConversation.Template) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ConversationsV1ServiceServiceConfigurationServiceNotification{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Services/{ChatServiceSid}/Configuration/Notifications" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AddedToConversation.Enabled != nil { + data.Set("AddedToConversation.Enabled", string(*params.AddedToConversation.Enabled)) + } + if params != nil && params.AddedToConversation.Sound != nil { + data.Set("AddedToConversation.Sound", *params.AddedToConversation.Sound) + } + if params != nil && params.AddedToConversation.Template != nil { + data.Set("AddedToConversation.Template", *params.AddedToConversation.Template) + } + if params != nil && params.LogEnabled != nil { + data.Set("LogEnabled", string(*params.LogEnabled)) + } + if params != nil && params.NewMessage.BadgeCountEnabled != nil { + data.Set("NewMessage.BadgeCountEnabled", string(*params.NewMessage.BadgeCountEnabled)) + } + if params != nil && params.NewMessage.Enabled != nil { + data.Set("NewMessage.Enabled", string(*params.NewMessage.Enabled)) + } + if params != nil && params.NewMessage.Sound != nil { + data.Set("NewMessage.Sound", *params.NewMessage.Sound) + } + if params != nil && params.NewMessage.Template != nil { + data.Set("NewMessage.Template", *params.NewMessage.Template) + } + if params != nil && params.RemovedFromConversation.Enabled != nil { + data.Set("RemovedFromConversation.Enabled", string(*params.RemovedFromConversation.Enabled)) + } + if params != nil && params.RemovedFromConversation.Sound != nil { + data.Set("RemovedFromConversation.Sound", *params.RemovedFromConversation.Sound) + } + if params != nil && params.RemovedFromConversation.Template != nil { + data.Set("RemovedFromConversation.Template", *params.RemovedFromConversation.Template) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1ServiceServiceConfigurationServiceNotification{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateServiceRoleParams Optional parameters for the method 'UpdateServiceRole' type UpdateServiceRoleParams struct { - Permission *[]string `json:"Permission,omitempty"` + Permission *[]string `json:"Permission,omitempty"` } /* @@ -3723,38 +3720,38 @@ Update an existing user role in your service @return ConversationsV1ServiceServiceRole */ func (c *DefaultApiService) UpdateServiceRole(chatServiceSid string, sid string, params *UpdateServiceRoleParams) (*ConversationsV1ServiceServiceRole, error) { - path := "/v1/Services/{ChatServiceSid}/Roles/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ChatServiceSid}/Roles/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Permission != nil { - data.Set("Permission", *params.Permission) - } + if params != nil && params.Permission != nil { + data.Set("Permission", *params.Permission) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1ServiceServiceRole{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1ServiceServiceRole{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateServiceUserParams Optional parameters for the method 'UpdateServiceUser' type UpdateServiceUserParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -3770,47 +3767,47 @@ Update an existing conversation user in your service @return ConversationsV1ServiceServiceUser */ func (c *DefaultApiService) UpdateServiceUser(chatServiceSid string, sid string, params *UpdateServiceUserParams) (*ConversationsV1ServiceServiceUser, error) { - path := "/v1/Services/{ChatServiceSid}/Users/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ChatServiceSid}/Users/{Sid}" + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := make(map[string]interface{}) + data := url.Values{} + headers := make(map[string]interface{}) - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) - } + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ConversationsV1ServiceServiceUser{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ConversationsV1ServiceServiceUser{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateUserParams Optional parameters for the method 'UpdateUser' type UpdateUserParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -3825,37 +3822,37 @@ Update an existing conversation user in your account's default service @return ConversationsV1User */ func (c *DefaultApiService) UpdateUser(sid string, params *UpdateUserParams) (*ConversationsV1User, error) { - path := "/v1/Users/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := make(map[string]interface{}) - - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) - } - - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ConversationsV1User{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Users/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ConversationsV1User{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } diff --git a/rest/conversations/v1/response.go b/rest/conversations/v1/response.go index 39245d47c..aefcb2cbe 100644 --- a/rest/conversations/v1/response.go +++ b/rest/conversations/v1/response.go @@ -32,16 +32,14 @@ type APIResponse struct { Payload []byte `json:"-"` } -// Response returns a new APIResponse object. -func Response(r *http.Response) *APIResponse { - +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { response := &APIResponse{Response: r} return response } -// ResponseWithError returns a new APIResponse object with the provided error message. -func ResponseWithError(errorMessage string) *APIResponse { - +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { response := &APIResponse{Message: errorMessage} return response } diff --git a/rest/events/v1/api_default.go b/rest/events/v1/api_default.go index 6e1aae004..8e17e6e65 100644 --- a/rest/events/v1/api_default.go +++ b/rest/events/v1/api_default.go @@ -13,28 +13,26 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type DefaultApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewDefaultApiService(client *twilio.Client) *DefaultApiService { - return &DefaultApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &DefaultApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } // CreateSinkParams Optional parameters for the method 'CreateSink' type CreateSinkParams struct { - Description *string `json:"Description,omitempty"` - SinkConfiguration *map[string]interface{} `json:"SinkConfiguration,omitempty"` - SinkType *string `json:"SinkType,omitempty"` + Description *string `json:"Description,omitempty"` + SinkConfiguration *map[string]interface{} `json:"SinkConfiguration,omitempty"` + SinkType *string `json:"SinkType,omitempty"` } /* @@ -47,41 +45,41 @@ Create a new Sink @return EventsV1Sink */ func (c *DefaultApiService) CreateSink(params *CreateSinkParams) (*EventsV1Sink, error) { - path := "/v1/Sinks" + path := "/v1/Sinks" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Description != nil { - data.Set("Description", *params.Description) - } - if params != nil && params.SinkConfiguration != nil { - v, err := json.Marshal(params.SinkConfiguration) + if params != nil && params.Description != nil { + data.Set("Description", *params.Description) + } + if params != nil && params.SinkConfiguration != nil { + v, err := json.Marshal(params.SinkConfiguration) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("SinkConfiguration", string(v)) - } - if params != nil && params.SinkType != nil { - data.Set("SinkType", *params.SinkType) - } + data.Set("SinkConfiguration", string(v)) + } + if params != nil && params.SinkType != nil { + data.Set("SinkType", *params.SinkType) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &EventsV1Sink{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &EventsV1Sink{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -91,31 +89,31 @@ Create a new Sink Test Event for the given Sink. @return EventsV1SinkSinkTest */ func (c *DefaultApiService) CreateSinkTest(sid string) (*EventsV1SinkSinkTest, error) { - path := "/v1/Sinks/{Sid}/Test" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Sinks/{Sid}/Test" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &EventsV1SinkSinkTest{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &EventsV1SinkSinkTest{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateSinkValidateParams Optional parameters for the method 'CreateSinkValidate' type CreateSinkValidateParams struct { - TestId *string `json:"TestId,omitempty"` + TestId *string `json:"TestId,omitempty"` } /* @@ -127,36 +125,36 @@ Validate that a test event for a Sink was received. @return EventsV1SinkSinkValidate */ func (c *DefaultApiService) CreateSinkValidate(sid string, params *CreateSinkValidateParams) (*EventsV1SinkSinkValidate, error) { - path := "/v1/Sinks/{Sid}/Validate" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Sinks/{Sid}/Validate" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.TestId != nil { - data.Set("TestId", *params.TestId) - } + if params != nil && params.TestId != nil { + data.Set("TestId", *params.TestId) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &EventsV1SinkSinkValidate{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &EventsV1SinkSinkValidate{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateSubscriptionParams Optional parameters for the method 'CreateSubscription' type CreateSubscriptionParams struct { - Description *string `json:"Description,omitempty"` - SinkSid *string `json:"SinkSid,omitempty"` - Types *[]map[string]interface{} `json:"Types,omitempty"` + Description *string `json:"Description,omitempty"` + SinkSid *string `json:"SinkSid,omitempty"` + Types *[]map[string]interface{} `json:"Types,omitempty"` } /* @@ -169,41 +167,41 @@ Create a new Subscription. @return EventsV1Subscription */ func (c *DefaultApiService) CreateSubscription(params *CreateSubscriptionParams) (*EventsV1Subscription, error) { - path := "/v1/Subscriptions" + path := "/v1/Subscriptions" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Description != nil { - data.Set("Description", *params.Description) - } - if params != nil && params.SinkSid != nil { - data.Set("SinkSid", *params.SinkSid) - } - if params != nil && params.Types != nil { - v, err := json.Marshal(params.Types) + if params != nil && params.Description != nil { + data.Set("Description", *params.Description) + } + if params != nil && params.SinkSid != nil { + data.Set("SinkSid", *params.SinkSid) + } + if params != nil && params.Types != nil { + v, err := json.Marshal(params.Types) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("Types", string(v)) - } + data.Set("Types", string(v)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &EventsV1Subscription{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &EventsV1Subscription{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -212,22 +210,22 @@ Delete a specific Sink. * @param sid A 34 character string that uniquely identifies this Sink. */ func (c *DefaultApiService) DeleteSink(sid string) (error) { - path := "/v1/Sinks/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Sinks/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -236,22 +234,22 @@ Delete a specific Subscription. * @param sid A 34 character string that uniquely identifies this Subscription. */ func (c *DefaultApiService) DeleteSubscription(sid string) (error) { - path := "/v1/Subscriptions/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Subscriptions/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -261,27 +259,27 @@ Fetch a specific Event Type. @return EventsV1EventType */ func (c *DefaultApiService) FetchEventType(type_ string) (*EventsV1EventType, error) { - path := "/v1/Types/{Type}" - path = strings.Replace(path, "{"+"Type"+"}", type_, -1) + path := "/v1/Types/{Type}" + path = strings.Replace(path, "{"+"Type"+"}", type_, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &EventsV1EventType{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &EventsV1EventType{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -291,27 +289,27 @@ Fetch a specific schema with its nested versions. @return EventsV1Schema */ func (c *DefaultApiService) FetchSchema(id string) (*EventsV1Schema, error) { - path := "/v1/Schemas/{Id}" - path = strings.Replace(path, "{"+"Id"+"}", id, -1) + path := "/v1/Schemas/{Id}" + path = strings.Replace(path, "{"+"Id"+"}", id, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &EventsV1Schema{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &EventsV1Schema{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -321,27 +319,27 @@ Fetch a specific Sink. @return EventsV1Sink */ func (c *DefaultApiService) FetchSink(sid string) (*EventsV1Sink, error) { - path := "/v1/Sinks/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Sinks/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &EventsV1Sink{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &EventsV1Sink{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -351,27 +349,27 @@ Fetch a specific Subscription. @return EventsV1Subscription */ func (c *DefaultApiService) FetchSubscription(sid string) (*EventsV1Subscription, error) { - path := "/v1/Subscriptions/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Subscriptions/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &EventsV1Subscription{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &EventsV1Subscription{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -382,32 +380,32 @@ Fetch a specific schema and version. @return EventsV1SchemaVersion */ func (c *DefaultApiService) FetchVersion(id string, schemaVersion int32) (*EventsV1SchemaVersion, error) { - path := "/v1/Schemas/{Id}/Versions/{SchemaVersion}" - path = strings.Replace(path, "{"+"Id"+"}", id, -1) - path = strings.Replace(path, "{"+"SchemaVersion"+"}", schemaVersion, -1) + path := "/v1/Schemas/{Id}/Versions/{SchemaVersion}" + path = strings.Replace(path, "{"+"Id"+"}", id, -1) + path = strings.Replace(path, "{"+"SchemaVersion"+"}", schemaVersion, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &EventsV1SchemaVersion{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &EventsV1SchemaVersion{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListEventTypeParams Optional parameters for the method 'ListEventType' type ListEventTypeParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -418,33 +416,33 @@ Retrieve a paginated list of all the available Event Types. @return EventsV1EventTypeReadResponse */ func (c *DefaultApiService) ListEventType(params *ListEventTypeParams) (*EventsV1EventTypeReadResponse, error) { - path := "/v1/Types" + path := "/v1/Types" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &EventsV1EventTypeReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &EventsV1EventTypeReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListSinkParams Optional parameters for the method 'ListSink' type ListSinkParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -455,33 +453,33 @@ Retrieve a paginated list of Sinks belonging to the account used to make the req @return EventsV1SinkReadResponse */ func (c *DefaultApiService) ListSink(params *ListSinkParams) (*EventsV1SinkReadResponse, error) { - path := "/v1/Sinks" + path := "/v1/Sinks" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &EventsV1SinkReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &EventsV1SinkReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListSubscribedEventParams Optional parameters for the method 'ListSubscribedEvent' type ListSubscribedEventParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -493,35 +491,35 @@ Retrieve a list of all Subscribed Event types for a Subscription. @return EventsV1SubscriptionSubscribedEventReadResponse */ func (c *DefaultApiService) ListSubscribedEvent(subscriptionSid string, params *ListSubscribedEventParams) (*EventsV1SubscriptionSubscribedEventReadResponse, error) { - path := "/v1/Subscriptions/{SubscriptionSid}/SubscribedEvents" - path = strings.Replace(path, "{"+"SubscriptionSid"+"}", subscriptionSid, -1) + path := "/v1/Subscriptions/{SubscriptionSid}/SubscribedEvents" + path = strings.Replace(path, "{"+"SubscriptionSid"+"}", subscriptionSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &EventsV1SubscriptionSubscribedEventReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &EventsV1SubscriptionSubscribedEventReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListSubscriptionParams Optional parameters for the method 'ListSubscription' type ListSubscriptionParams struct { - SinkSid *string `json:"SinkSid,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + SinkSid *string `json:"SinkSid,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -533,36 +531,36 @@ Retrieve a paginated list of Subscriptions belonging to the account used to make @return EventsV1SubscriptionReadResponse */ func (c *DefaultApiService) ListSubscription(params *ListSubscriptionParams) (*EventsV1SubscriptionReadResponse, error) { - path := "/v1/Subscriptions" + path := "/v1/Subscriptions" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.SinkSid != nil { - data.Set("SinkSid", *params.SinkSid) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.SinkSid != nil { + data.Set("SinkSid", *params.SinkSid) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &EventsV1SubscriptionReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &EventsV1SubscriptionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListVersionParams Optional parameters for the method 'ListVersion' type ListVersionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -574,35 +572,35 @@ Retrieve a paginated list of versions of the schema. @return EventsV1SchemaVersionReadResponse */ func (c *DefaultApiService) ListVersion(id string, params *ListVersionParams) (*EventsV1SchemaVersionReadResponse, error) { - path := "/v1/Schemas/{Id}/Versions" - path = strings.Replace(path, "{"+"Id"+"}", id, -1) + path := "/v1/Schemas/{Id}/Versions" + path = strings.Replace(path, "{"+"Id"+"}", id, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &EventsV1SchemaVersionReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &EventsV1SchemaVersionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateSubscriptionParams Optional parameters for the method 'UpdateSubscription' type UpdateSubscriptionParams struct { - Description *string `json:"Description,omitempty"` - SinkSid *string `json:"SinkSid,omitempty"` + Description *string `json:"Description,omitempty"` + SinkSid *string `json:"SinkSid,omitempty"` } /* @@ -615,31 +613,31 @@ Update a Subscription. @return EventsV1Subscription */ func (c *DefaultApiService) UpdateSubscription(sid string, params *UpdateSubscriptionParams) (*EventsV1Subscription, error) { - path := "/v1/Subscriptions/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Subscriptions/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Description != nil { - data.Set("Description", *params.Description) - } - if params != nil && params.SinkSid != nil { - data.Set("SinkSid", *params.SinkSid) - } + if params != nil && params.Description != nil { + data.Set("Description", *params.Description) + } + if params != nil && params.SinkSid != nil { + data.Set("SinkSid", *params.SinkSid) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &EventsV1Subscription{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &EventsV1Subscription{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } diff --git a/rest/events/v1/response.go b/rest/events/v1/response.go index 15b02391a..e8898f71d 100644 --- a/rest/events/v1/response.go +++ b/rest/events/v1/response.go @@ -32,16 +32,14 @@ type APIResponse struct { Payload []byte `json:"-"` } -// Response returns a new APIResponse object. -func Response(r *http.Response) *APIResponse { - +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { response := &APIResponse{Response: r} return response } -// ResponseWithError returns a new APIResponse object with the provided error message. -func ResponseWithError(errorMessage string) *APIResponse { - +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { response := &APIResponse{Message: errorMessage} return response } diff --git a/rest/fax/v1/api_default.go b/rest/fax/v1/api_default.go index 0662bc803..54260279b 100644 --- a/rest/fax/v1/api_default.go +++ b/rest/fax/v1/api_default.go @@ -13,34 +13,32 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type DefaultApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewDefaultApiService(client *twilio.Client) *DefaultApiService { - return &DefaultApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &DefaultApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } // CreateFaxParams Optional parameters for the method 'CreateFax' type CreateFaxParams struct { - From *string `json:"From,omitempty"` - MediaUrl *string `json:"MediaUrl,omitempty"` - Quality *string `json:"Quality,omitempty"` - SipAuthPassword *string `json:"SipAuthPassword,omitempty"` - SipAuthUsername *string `json:"SipAuthUsername,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StoreMedia *bool `json:"StoreMedia,omitempty"` - To *string `json:"To,omitempty"` - Ttl *int32 `json:"Ttl,omitempty"` + From *string `json:"From,omitempty"` + MediaUrl *string `json:"MediaUrl,omitempty"` + Quality *string `json:"Quality,omitempty"` + SipAuthPassword *string `json:"SipAuthPassword,omitempty"` + SipAuthUsername *string `json:"SipAuthUsername,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StoreMedia *bool `json:"StoreMedia,omitempty"` + To *string `json:"To,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` } /* @@ -59,53 +57,53 @@ Create a new fax to send to a phone number or SIP endpoint. @return FaxV1Fax */ func (c *DefaultApiService) CreateFax(params *CreateFaxParams) (*FaxV1Fax, error) { - path := "/v1/Faxes" - - data := url.Values{} - headers := 0 - - if params != nil && params.From != nil { - data.Set("From", *params.From) - } - if params != nil && params.MediaUrl != nil { - data.Set("MediaUrl", *params.MediaUrl) - } - if params != nil && params.Quality != nil { - data.Set("Quality", *params.Quality) - } - if params != nil && params.SipAuthPassword != nil { - data.Set("SipAuthPassword", *params.SipAuthPassword) - } - if params != nil && params.SipAuthUsername != nil { - data.Set("SipAuthUsername", *params.SipAuthUsername) - } - if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) - } - if params != nil && params.StoreMedia != nil { - data.Set("StoreMedia", string(*params.StoreMedia)) - } - if params != nil && params.To != nil { - data.Set("To", *params.To) - } - if params != nil && params.Ttl != nil { - data.Set("Ttl", string(*params.Ttl)) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &FaxV1Fax{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Faxes" + + data := url.Values{} + headers := 0 + + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.MediaUrl != nil { + data.Set("MediaUrl", *params.MediaUrl) + } + if params != nil && params.Quality != nil { + data.Set("Quality", *params.Quality) + } + if params != nil && params.SipAuthPassword != nil { + data.Set("SipAuthPassword", *params.SipAuthPassword) + } + if params != nil && params.SipAuthUsername != nil { + data.Set("SipAuthUsername", *params.SipAuthUsername) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StoreMedia != nil { + data.Set("StoreMedia", string(*params.StoreMedia)) + } + if params != nil && params.To != nil { + data.Set("To", *params.To) + } + if params != nil && params.Ttl != nil { + data.Set("Ttl", string(*params.Ttl)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FaxV1Fax{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } /* @@ -114,22 +112,22 @@ Delete a specific fax and its associated media. * @param sid The Twilio-provided string that uniquely identifies the Fax resource to delete. */ func (c *DefaultApiService) DeleteFax(sid string) (error) { - path := "/v1/Faxes/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Faxes/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -139,23 +137,23 @@ Delete a specific fax media instance. * @param sid The Twilio-provided string that uniquely identifies the FaxMedia resource to delete. */ func (c *DefaultApiService) DeleteFaxMedia(faxSid string, sid string) (error) { - path := "/v1/Faxes/{FaxSid}/Media/{Sid}" - path = strings.Replace(path, "{"+"FaxSid"+"}", faxSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Faxes/{FaxSid}/Media/{Sid}" + path = strings.Replace(path, "{"+"FaxSid"+"}", faxSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -165,27 +163,27 @@ Fetch a specific fax. @return FaxV1Fax */ func (c *DefaultApiService) FetchFax(sid string) (*FaxV1Fax, error) { - path := "/v1/Faxes/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Faxes/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &FaxV1Fax{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &FaxV1Fax{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -196,36 +194,36 @@ Fetch a specific fax media instance. @return FaxV1FaxFaxMedia */ func (c *DefaultApiService) FetchFaxMedia(faxSid string, sid string) (*FaxV1FaxFaxMedia, error) { - path := "/v1/Faxes/{FaxSid}/Media/{Sid}" - path = strings.Replace(path, "{"+"FaxSid"+"}", faxSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Faxes/{FaxSid}/Media/{Sid}" + path = strings.Replace(path, "{"+"FaxSid"+"}", faxSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &FaxV1FaxFaxMedia{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &FaxV1FaxFaxMedia{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListFaxParams Optional parameters for the method 'ListFax' type ListFaxParams struct { - From *string `json:"From,omitempty"` - To *string `json:"To,omitempty"` - DateCreatedOnOrBefore *time.Time `json:"DateCreatedOnOrBefore,omitempty"` - DateCreatedAfter *time.Time `json:"DateCreatedAfter,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + From *string `json:"From,omitempty"` + To *string `json:"To,omitempty"` + DateCreatedOnOrBefore *time.Time `json:"DateCreatedOnOrBefore,omitempty"` + DateCreatedAfter *time.Time `json:"DateCreatedAfter,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -240,45 +238,45 @@ Retrieve a list of all faxes. @return FaxV1FaxReadResponse */ func (c *DefaultApiService) ListFax(params *ListFaxParams) (*FaxV1FaxReadResponse, error) { - path := "/v1/Faxes" - - data := url.Values{} - headers := 0 - - if params != nil && params.From != nil { - data.Set("From", *params.From) - } - if params != nil && params.To != nil { - data.Set("To", *params.To) - } - if params != nil && params.DateCreatedOnOrBefore != nil { - data.Set("DateCreatedOnOrBefore", string(*params.DateCreatedOnOrBefore)) - } - if params != nil && params.DateCreatedAfter != nil { - data.Set("DateCreatedAfter", string(*params.DateCreatedAfter)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &FaxV1FaxReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Faxes" + + data := url.Values{} + headers := 0 + + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.To != nil { + data.Set("To", *params.To) + } + if params != nil && params.DateCreatedOnOrBefore != nil { + data.Set("DateCreatedOnOrBefore", string(*params.DateCreatedOnOrBefore)) + } + if params != nil && params.DateCreatedAfter != nil { + data.Set("DateCreatedAfter", string(*params.DateCreatedAfter)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FaxV1FaxReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListFaxMediaParams Optional parameters for the method 'ListFaxMedia' type ListFaxMediaParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -290,34 +288,34 @@ Retrieve a list of all fax media instances for the specified fax. @return FaxV1FaxFaxMediaReadResponse */ func (c *DefaultApiService) ListFaxMedia(faxSid string, params *ListFaxMediaParams) (*FaxV1FaxFaxMediaReadResponse, error) { - path := "/v1/Faxes/{FaxSid}/Media" - path = strings.Replace(path, "{"+"FaxSid"+"}", faxSid, -1) + path := "/v1/Faxes/{FaxSid}/Media" + path = strings.Replace(path, "{"+"FaxSid"+"}", faxSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &FaxV1FaxFaxMediaReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &FaxV1FaxFaxMediaReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateFaxParams Optional parameters for the method 'UpdateFax' type UpdateFaxParams struct { - Status *string `json:"Status,omitempty"` + Status *string `json:"Status,omitempty"` } /* @@ -329,28 +327,28 @@ Update a specific fax. @return FaxV1Fax */ func (c *DefaultApiService) UpdateFax(sid string, params *UpdateFaxParams) (*FaxV1Fax, error) { - path := "/v1/Faxes/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Faxes/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &FaxV1Fax{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &FaxV1Fax{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } diff --git a/rest/fax/v1/response.go b/rest/fax/v1/response.go index b544b06db..7d95d0580 100644 --- a/rest/fax/v1/response.go +++ b/rest/fax/v1/response.go @@ -32,16 +32,14 @@ type APIResponse struct { Payload []byte `json:"-"` } -// Response returns a new APIResponse object. -func Response(r *http.Response) *APIResponse { - +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { response := &APIResponse{Response: r} return response } -// ResponseWithError returns a new APIResponse object with the provided error message. -func ResponseWithError(errorMessage string) *APIResponse { - +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { response := &APIResponse{Message: errorMessage} return response } diff --git a/rest/flex/v1/api_default.go b/rest/flex/v1/api_default.go index de33ddb1f..388d7bce6 100644 --- a/rest/flex/v1/api_default.go +++ b/rest/flex/v1/api_default.go @@ -13,35 +13,33 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type DefaultApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewDefaultApiService(client *twilio.Client) *DefaultApiService { - return &DefaultApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &DefaultApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } // CreateChannelParams Optional parameters for the method 'CreateChannel' type CreateChannelParams struct { - ChatFriendlyName *string `json:"ChatFriendlyName,omitempty"` - ChatUniqueName *string `json:"ChatUniqueName,omitempty"` - ChatUserFriendlyName *string `json:"ChatUserFriendlyName,omitempty"` - FlexFlowSid *string `json:"FlexFlowSid,omitempty"` - Identity *string `json:"Identity,omitempty"` - LongLived *bool `json:"LongLived,omitempty"` - PreEngagementData *string `json:"PreEngagementData,omitempty"` - Target *string `json:"Target,omitempty"` - TaskAttributes *string `json:"TaskAttributes,omitempty"` - TaskSid *string `json:"TaskSid,omitempty"` + ChatFriendlyName *string `json:"ChatFriendlyName,omitempty"` + ChatUniqueName *string `json:"ChatUniqueName,omitempty"` + ChatUserFriendlyName *string `json:"ChatUserFriendlyName,omitempty"` + FlexFlowSid *string `json:"FlexFlowSid,omitempty"` + Identity *string `json:"Identity,omitempty"` + LongLived *bool `json:"LongLived,omitempty"` + PreEngagementData *string `json:"PreEngagementData,omitempty"` + Target *string `json:"Target,omitempty"` + TaskAttributes *string `json:"TaskAttributes,omitempty"` + TaskSid *string `json:"TaskSid,omitempty"` } /* @@ -60,76 +58,76 @@ CreateChannel Method for CreateChannel @return FlexV1Channel */ func (c *DefaultApiService) CreateChannel(params *CreateChannelParams) (*FlexV1Channel, error) { - path := "/v1/Channels" - - data := url.Values{} - headers := 0 - - if params != nil && params.ChatFriendlyName != nil { - data.Set("ChatFriendlyName", *params.ChatFriendlyName) - } - if params != nil && params.ChatUniqueName != nil { - data.Set("ChatUniqueName", *params.ChatUniqueName) - } - if params != nil && params.ChatUserFriendlyName != nil { - data.Set("ChatUserFriendlyName", *params.ChatUserFriendlyName) - } - if params != nil && params.FlexFlowSid != nil { - data.Set("FlexFlowSid", *params.FlexFlowSid) - } - if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) - } - if params != nil && params.LongLived != nil { - data.Set("LongLived", string(*params.LongLived)) - } - if params != nil && params.PreEngagementData != nil { - data.Set("PreEngagementData", *params.PreEngagementData) - } - if params != nil && params.Target != nil { - data.Set("Target", *params.Target) - } - if params != nil && params.TaskAttributes != nil { - data.Set("TaskAttributes", *params.TaskAttributes) - } - if params != nil && params.TaskSid != nil { - data.Set("TaskSid", *params.TaskSid) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &FlexV1Channel{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Channels" + + data := url.Values{} + headers := 0 + + if params != nil && params.ChatFriendlyName != nil { + data.Set("ChatFriendlyName", *params.ChatFriendlyName) + } + if params != nil && params.ChatUniqueName != nil { + data.Set("ChatUniqueName", *params.ChatUniqueName) + } + if params != nil && params.ChatUserFriendlyName != nil { + data.Set("ChatUserFriendlyName", *params.ChatUserFriendlyName) + } + if params != nil && params.FlexFlowSid != nil { + data.Set("FlexFlowSid", *params.FlexFlowSid) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.LongLived != nil { + data.Set("LongLived", string(*params.LongLived)) + } + if params != nil && params.PreEngagementData != nil { + data.Set("PreEngagementData", *params.PreEngagementData) + } + if params != nil && params.Target != nil { + data.Set("Target", *params.Target) + } + if params != nil && params.TaskAttributes != nil { + data.Set("TaskAttributes", *params.TaskAttributes) + } + if params != nil && params.TaskSid != nil { + data.Set("TaskSid", *params.TaskSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FlexV1Channel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateFlexFlowParams Optional parameters for the method 'CreateFlexFlow' type CreateFlexFlowParams struct { - ChannelType *string `json:"ChannelType,omitempty"` - ChatServiceSid *string `json:"ChatServiceSid,omitempty"` - ContactIdentity *string `json:"ContactIdentity,omitempty"` - Enabled *bool `json:"Enabled,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Integration.Channel *string `json:"Integration.Channel,omitempty"` - Integration.CreationOnMessage *bool `json:"Integration.CreationOnMessage,omitempty"` - Integration.FlowSid *string `json:"Integration.FlowSid,omitempty"` - Integration.Priority *int32 `json:"Integration.Priority,omitempty"` - Integration.RetryCount *int32 `json:"Integration.RetryCount,omitempty"` - Integration.Timeout *int32 `json:"Integration.Timeout,omitempty"` - Integration.Url *string `json:"Integration.Url,omitempty"` - Integration.WorkflowSid *string `json:"Integration.WorkflowSid,omitempty"` - Integration.WorkspaceSid *string `json:"Integration.WorkspaceSid,omitempty"` - IntegrationType *string `json:"IntegrationType,omitempty"` - JanitorEnabled *bool `json:"JanitorEnabled,omitempty"` - LongLived *bool `json:"LongLived,omitempty"` + ChannelType *string `json:"ChannelType,omitempty"` + ChatServiceSid *string `json:"ChatServiceSid,omitempty"` + ContactIdentity *string `json:"ContactIdentity,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Integration.Channel *string `json:"Integration.Channel,omitempty"` + Integration.CreationOnMessage *bool `json:"Integration.CreationOnMessage,omitempty"` + Integration.FlowSid *string `json:"Integration.FlowSid,omitempty"` + Integration.Priority *int32 `json:"Integration.Priority,omitempty"` + Integration.RetryCount *int32 `json:"Integration.RetryCount,omitempty"` + Integration.Timeout *int32 `json:"Integration.Timeout,omitempty"` + Integration.Url *string `json:"Integration.Url,omitempty"` + Integration.WorkflowSid *string `json:"Integration.WorkflowSid,omitempty"` + Integration.WorkspaceSid *string `json:"Integration.WorkspaceSid,omitempty"` + IntegrationType *string `json:"IntegrationType,omitempty"` + JanitorEnabled *bool `json:"JanitorEnabled,omitempty"` + LongLived *bool `json:"LongLived,omitempty"` } /* @@ -155,86 +153,86 @@ CreateFlexFlow Method for CreateFlexFlow @return FlexV1FlexFlow */ func (c *DefaultApiService) CreateFlexFlow(params *CreateFlexFlowParams) (*FlexV1FlexFlow, error) { - path := "/v1/FlexFlows" - - data := url.Values{} - headers := 0 - - if params != nil && params.ChannelType != nil { - data.Set("ChannelType", *params.ChannelType) - } - if params != nil && params.ChatServiceSid != nil { - data.Set("ChatServiceSid", *params.ChatServiceSid) - } - if params != nil && params.ContactIdentity != nil { - data.Set("ContactIdentity", *params.ContactIdentity) - } - if params != nil && params.Enabled != nil { - data.Set("Enabled", string(*params.Enabled)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Integration.Channel != nil { - data.Set("Integration.Channel", *params.Integration.Channel) - } - if params != nil && params.Integration.CreationOnMessage != nil { - data.Set("Integration.CreationOnMessage", string(*params.Integration.CreationOnMessage)) - } - if params != nil && params.Integration.FlowSid != nil { - data.Set("Integration.FlowSid", *params.Integration.FlowSid) - } - if params != nil && params.Integration.Priority != nil { - data.Set("Integration.Priority", string(*params.Integration.Priority)) - } - if params != nil && params.Integration.RetryCount != nil { - data.Set("Integration.RetryCount", string(*params.Integration.RetryCount)) - } - if params != nil && params.Integration.Timeout != nil { - data.Set("Integration.Timeout", string(*params.Integration.Timeout)) - } - if params != nil && params.Integration.Url != nil { - data.Set("Integration.Url", *params.Integration.Url) - } - if params != nil && params.Integration.WorkflowSid != nil { - data.Set("Integration.WorkflowSid", *params.Integration.WorkflowSid) - } - if params != nil && params.Integration.WorkspaceSid != nil { - data.Set("Integration.WorkspaceSid", *params.Integration.WorkspaceSid) - } - if params != nil && params.IntegrationType != nil { - data.Set("IntegrationType", *params.IntegrationType) - } - if params != nil && params.JanitorEnabled != nil { - data.Set("JanitorEnabled", string(*params.JanitorEnabled)) - } - if params != nil && params.LongLived != nil { - data.Set("LongLived", string(*params.LongLived)) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &FlexV1FlexFlow{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/FlexFlows" + + data := url.Values{} + headers := 0 + + if params != nil && params.ChannelType != nil { + data.Set("ChannelType", *params.ChannelType) + } + if params != nil && params.ChatServiceSid != nil { + data.Set("ChatServiceSid", *params.ChatServiceSid) + } + if params != nil && params.ContactIdentity != nil { + data.Set("ContactIdentity", *params.ContactIdentity) + } + if params != nil && params.Enabled != nil { + data.Set("Enabled", string(*params.Enabled)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Integration.Channel != nil { + data.Set("Integration.Channel", *params.Integration.Channel) + } + if params != nil && params.Integration.CreationOnMessage != nil { + data.Set("Integration.CreationOnMessage", string(*params.Integration.CreationOnMessage)) + } + if params != nil && params.Integration.FlowSid != nil { + data.Set("Integration.FlowSid", *params.Integration.FlowSid) + } + if params != nil && params.Integration.Priority != nil { + data.Set("Integration.Priority", string(*params.Integration.Priority)) + } + if params != nil && params.Integration.RetryCount != nil { + data.Set("Integration.RetryCount", string(*params.Integration.RetryCount)) + } + if params != nil && params.Integration.Timeout != nil { + data.Set("Integration.Timeout", string(*params.Integration.Timeout)) + } + if params != nil && params.Integration.Url != nil { + data.Set("Integration.Url", *params.Integration.Url) + } + if params != nil && params.Integration.WorkflowSid != nil { + data.Set("Integration.WorkflowSid", *params.Integration.WorkflowSid) + } + if params != nil && params.Integration.WorkspaceSid != nil { + data.Set("Integration.WorkspaceSid", *params.Integration.WorkspaceSid) + } + if params != nil && params.IntegrationType != nil { + data.Set("IntegrationType", *params.IntegrationType) + } + if params != nil && params.JanitorEnabled != nil { + data.Set("JanitorEnabled", string(*params.JanitorEnabled)) + } + if params != nil && params.LongLived != nil { + data.Set("LongLived", string(*params.LongLived)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FlexV1FlexFlow{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateWebChannelParams Optional parameters for the method 'CreateWebChannel' type CreateWebChannelParams struct { - ChatFriendlyName *string `json:"ChatFriendlyName,omitempty"` - ChatUniqueName *string `json:"ChatUniqueName,omitempty"` - CustomerFriendlyName *string `json:"CustomerFriendlyName,omitempty"` - FlexFlowSid *string `json:"FlexFlowSid,omitempty"` - Identity *string `json:"Identity,omitempty"` - PreEngagementData *string `json:"PreEngagementData,omitempty"` + ChatFriendlyName *string `json:"ChatFriendlyName,omitempty"` + ChatUniqueName *string `json:"ChatUniqueName,omitempty"` + CustomerFriendlyName *string `json:"CustomerFriendlyName,omitempty"` + FlexFlowSid *string `json:"FlexFlowSid,omitempty"` + Identity *string `json:"Identity,omitempty"` + PreEngagementData *string `json:"PreEngagementData,omitempty"` } /* @@ -249,44 +247,44 @@ CreateWebChannel Method for CreateWebChannel @return FlexV1WebChannel */ func (c *DefaultApiService) CreateWebChannel(params *CreateWebChannelParams) (*FlexV1WebChannel, error) { - path := "/v1/WebChannels" - - data := url.Values{} - headers := 0 - - if params != nil && params.ChatFriendlyName != nil { - data.Set("ChatFriendlyName", *params.ChatFriendlyName) - } - if params != nil && params.ChatUniqueName != nil { - data.Set("ChatUniqueName", *params.ChatUniqueName) - } - if params != nil && params.CustomerFriendlyName != nil { - data.Set("CustomerFriendlyName", *params.CustomerFriendlyName) - } - if params != nil && params.FlexFlowSid != nil { - data.Set("FlexFlowSid", *params.FlexFlowSid) - } - if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) - } - if params != nil && params.PreEngagementData != nil { - data.Set("PreEngagementData", *params.PreEngagementData) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &FlexV1WebChannel{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/WebChannels" + + data := url.Values{} + headers := 0 + + if params != nil && params.ChatFriendlyName != nil { + data.Set("ChatFriendlyName", *params.ChatFriendlyName) + } + if params != nil && params.ChatUniqueName != nil { + data.Set("ChatUniqueName", *params.ChatUniqueName) + } + if params != nil && params.CustomerFriendlyName != nil { + data.Set("CustomerFriendlyName", *params.CustomerFriendlyName) + } + if params != nil && params.FlexFlowSid != nil { + data.Set("FlexFlowSid", *params.FlexFlowSid) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.PreEngagementData != nil { + data.Set("PreEngagementData", *params.PreEngagementData) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FlexV1WebChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } /* @@ -294,22 +292,22 @@ DeleteChannel Method for DeleteChannel * @param sid The SID of the Flex chat channel resource to delete. */ func (c *DefaultApiService) DeleteChannel(sid string) (error) { - path := "/v1/Channels/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Channels/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -317,22 +315,22 @@ DeleteFlexFlow Method for DeleteFlexFlow * @param sid The SID of the Flex Flow resource to delete. */ func (c *DefaultApiService) DeleteFlexFlow(sid string) (error) { - path := "/v1/FlexFlows/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/FlexFlows/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -340,22 +338,22 @@ DeleteWebChannel Method for DeleteWebChannel * @param sid The SID of the WebChannel resource to delete. */ func (c *DefaultApiService) DeleteWebChannel(sid string) (error) { - path := "/v1/WebChannels/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/WebChannels/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -364,31 +362,31 @@ FetchChannel Method for FetchChannel @return FlexV1Channel */ func (c *DefaultApiService) FetchChannel(sid string) (*FlexV1Channel, error) { - path := "/v1/Channels/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Channels/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &FlexV1Channel{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &FlexV1Channel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // FetchConfigurationParams Optional parameters for the method 'FetchConfiguration' type FetchConfigurationParams struct { - UiVersion *string `json:"UiVersion,omitempty"` + UiVersion *string `json:"UiVersion,omitempty"` } /* @@ -398,29 +396,29 @@ FetchConfiguration Method for FetchConfiguration @return FlexV1Configuration */ func (c *DefaultApiService) FetchConfiguration(params *FetchConfigurationParams) (*FlexV1Configuration, error) { - path := "/v1/Configuration" + path := "/v1/Configuration" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.UiVersion != nil { - data.Set("UiVersion", *params.UiVersion) - } + if params != nil && params.UiVersion != nil { + data.Set("UiVersion", *params.UiVersion) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &FlexV1Configuration{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &FlexV1Configuration{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -429,27 +427,27 @@ FetchFlexFlow Method for FetchFlexFlow @return FlexV1FlexFlow */ func (c *DefaultApiService) FetchFlexFlow(sid string) (*FlexV1FlexFlow, error) { - path := "/v1/FlexFlows/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/FlexFlows/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &FlexV1FlexFlow{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &FlexV1FlexFlow{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -458,31 +456,31 @@ FetchWebChannel Method for FetchWebChannel @return FlexV1WebChannel */ func (c *DefaultApiService) FetchWebChannel(sid string) (*FlexV1WebChannel, error) { - path := "/v1/WebChannels/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/WebChannels/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &FlexV1WebChannel{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &FlexV1WebChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListChannelParams Optional parameters for the method 'ListChannel' type ListChannelParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -492,34 +490,34 @@ ListChannel Method for ListChannel @return FlexV1ChannelReadResponse */ func (c *DefaultApiService) ListChannel(params *ListChannelParams) (*FlexV1ChannelReadResponse, error) { - path := "/v1/Channels" + path := "/v1/Channels" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &FlexV1ChannelReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &FlexV1ChannelReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListFlexFlowParams Optional parameters for the method 'ListFlexFlow' type ListFlexFlowParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -530,36 +528,36 @@ ListFlexFlow Method for ListFlexFlow @return FlexV1FlexFlowReadResponse */ func (c *DefaultApiService) ListFlexFlow(params *ListFlexFlowParams) (*FlexV1FlexFlowReadResponse, error) { - path := "/v1/FlexFlows" + path := "/v1/FlexFlows" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &FlexV1FlexFlowReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &FlexV1FlexFlowReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListWebChannelParams Optional parameters for the method 'ListWebChannel' type ListWebChannelParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -569,29 +567,29 @@ ListWebChannel Method for ListWebChannel @return FlexV1WebChannelReadResponse */ func (c *DefaultApiService) ListWebChannel(params *ListWebChannelParams) (*FlexV1WebChannelReadResponse, error) { - path := "/v1/WebChannels" + path := "/v1/WebChannels" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &FlexV1WebChannelReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &FlexV1WebChannelReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -599,46 +597,46 @@ UpdateConfiguration Method for UpdateConfiguration @return FlexV1Configuration */ func (c *DefaultApiService) UpdateConfiguration() (*FlexV1Configuration, error) { - path := "/v1/Configuration" + path := "/v1/Configuration" - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &FlexV1Configuration{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &FlexV1Configuration{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateFlexFlowParams Optional parameters for the method 'UpdateFlexFlow' type UpdateFlexFlowParams struct { - ChannelType *string `json:"ChannelType,omitempty"` - ChatServiceSid *string `json:"ChatServiceSid,omitempty"` - ContactIdentity *string `json:"ContactIdentity,omitempty"` - Enabled *bool `json:"Enabled,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Integration.Channel *string `json:"Integration.Channel,omitempty"` - Integration.CreationOnMessage *bool `json:"Integration.CreationOnMessage,omitempty"` - Integration.FlowSid *string `json:"Integration.FlowSid,omitempty"` - Integration.Priority *int32 `json:"Integration.Priority,omitempty"` - Integration.RetryCount *int32 `json:"Integration.RetryCount,omitempty"` - Integration.Timeout *int32 `json:"Integration.Timeout,omitempty"` - Integration.Url *string `json:"Integration.Url,omitempty"` - Integration.WorkflowSid *string `json:"Integration.WorkflowSid,omitempty"` - Integration.WorkspaceSid *string `json:"Integration.WorkspaceSid,omitempty"` - IntegrationType *string `json:"IntegrationType,omitempty"` - JanitorEnabled *bool `json:"JanitorEnabled,omitempty"` - LongLived *bool `json:"LongLived,omitempty"` + ChannelType *string `json:"ChannelType,omitempty"` + ChatServiceSid *string `json:"ChatServiceSid,omitempty"` + ContactIdentity *string `json:"ContactIdentity,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Integration.Channel *string `json:"Integration.Channel,omitempty"` + Integration.CreationOnMessage *bool `json:"Integration.CreationOnMessage,omitempty"` + Integration.FlowSid *string `json:"Integration.FlowSid,omitempty"` + Integration.Priority *int32 `json:"Integration.Priority,omitempty"` + Integration.RetryCount *int32 `json:"Integration.RetryCount,omitempty"` + Integration.Timeout *int32 `json:"Integration.Timeout,omitempty"` + Integration.Url *string `json:"Integration.Url,omitempty"` + Integration.WorkflowSid *string `json:"Integration.WorkflowSid,omitempty"` + Integration.WorkspaceSid *string `json:"Integration.WorkspaceSid,omitempty"` + IntegrationType *string `json:"IntegrationType,omitempty"` + JanitorEnabled *bool `json:"JanitorEnabled,omitempty"` + LongLived *bool `json:"LongLived,omitempty"` } /* @@ -665,83 +663,83 @@ UpdateFlexFlow Method for UpdateFlexFlow @return FlexV1FlexFlow */ func (c *DefaultApiService) UpdateFlexFlow(sid string, params *UpdateFlexFlowParams) (*FlexV1FlexFlow, error) { - path := "/v1/FlexFlows/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.ChannelType != nil { - data.Set("ChannelType", *params.ChannelType) - } - if params != nil && params.ChatServiceSid != nil { - data.Set("ChatServiceSid", *params.ChatServiceSid) - } - if params != nil && params.ContactIdentity != nil { - data.Set("ContactIdentity", *params.ContactIdentity) - } - if params != nil && params.Enabled != nil { - data.Set("Enabled", string(*params.Enabled)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Integration.Channel != nil { - data.Set("Integration.Channel", *params.Integration.Channel) - } - if params != nil && params.Integration.CreationOnMessage != nil { - data.Set("Integration.CreationOnMessage", string(*params.Integration.CreationOnMessage)) - } - if params != nil && params.Integration.FlowSid != nil { - data.Set("Integration.FlowSid", *params.Integration.FlowSid) - } - if params != nil && params.Integration.Priority != nil { - data.Set("Integration.Priority", string(*params.Integration.Priority)) - } - if params != nil && params.Integration.RetryCount != nil { - data.Set("Integration.RetryCount", string(*params.Integration.RetryCount)) - } - if params != nil && params.Integration.Timeout != nil { - data.Set("Integration.Timeout", string(*params.Integration.Timeout)) - } - if params != nil && params.Integration.Url != nil { - data.Set("Integration.Url", *params.Integration.Url) - } - if params != nil && params.Integration.WorkflowSid != nil { - data.Set("Integration.WorkflowSid", *params.Integration.WorkflowSid) - } - if params != nil && params.Integration.WorkspaceSid != nil { - data.Set("Integration.WorkspaceSid", *params.Integration.WorkspaceSid) - } - if params != nil && params.IntegrationType != nil { - data.Set("IntegrationType", *params.IntegrationType) - } - if params != nil && params.JanitorEnabled != nil { - data.Set("JanitorEnabled", string(*params.JanitorEnabled)) - } - if params != nil && params.LongLived != nil { - data.Set("LongLived", string(*params.LongLived)) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &FlexV1FlexFlow{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/FlexFlows/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ChannelType != nil { + data.Set("ChannelType", *params.ChannelType) + } + if params != nil && params.ChatServiceSid != nil { + data.Set("ChatServiceSid", *params.ChatServiceSid) + } + if params != nil && params.ContactIdentity != nil { + data.Set("ContactIdentity", *params.ContactIdentity) + } + if params != nil && params.Enabled != nil { + data.Set("Enabled", string(*params.Enabled)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Integration.Channel != nil { + data.Set("Integration.Channel", *params.Integration.Channel) + } + if params != nil && params.Integration.CreationOnMessage != nil { + data.Set("Integration.CreationOnMessage", string(*params.Integration.CreationOnMessage)) + } + if params != nil && params.Integration.FlowSid != nil { + data.Set("Integration.FlowSid", *params.Integration.FlowSid) + } + if params != nil && params.Integration.Priority != nil { + data.Set("Integration.Priority", string(*params.Integration.Priority)) + } + if params != nil && params.Integration.RetryCount != nil { + data.Set("Integration.RetryCount", string(*params.Integration.RetryCount)) + } + if params != nil && params.Integration.Timeout != nil { + data.Set("Integration.Timeout", string(*params.Integration.Timeout)) + } + if params != nil && params.Integration.Url != nil { + data.Set("Integration.Url", *params.Integration.Url) + } + if params != nil && params.Integration.WorkflowSid != nil { + data.Set("Integration.WorkflowSid", *params.Integration.WorkflowSid) + } + if params != nil && params.Integration.WorkspaceSid != nil { + data.Set("Integration.WorkspaceSid", *params.Integration.WorkspaceSid) + } + if params != nil && params.IntegrationType != nil { + data.Set("IntegrationType", *params.IntegrationType) + } + if params != nil && params.JanitorEnabled != nil { + data.Set("JanitorEnabled", string(*params.JanitorEnabled)) + } + if params != nil && params.LongLived != nil { + data.Set("LongLived", string(*params.LongLived)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &FlexV1FlexFlow{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateWebChannelParams Optional parameters for the method 'UpdateWebChannel' type UpdateWebChannelParams struct { - ChatStatus *string `json:"ChatStatus,omitempty"` - PostEngagementData *string `json:"PostEngagementData,omitempty"` + ChatStatus *string `json:"ChatStatus,omitempty"` + PostEngagementData *string `json:"PostEngagementData,omitempty"` } /* @@ -753,31 +751,31 @@ UpdateWebChannel Method for UpdateWebChannel @return FlexV1WebChannel */ func (c *DefaultApiService) UpdateWebChannel(sid string, params *UpdateWebChannelParams) (*FlexV1WebChannel, error) { - path := "/v1/WebChannels/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/WebChannels/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.ChatStatus != nil { - data.Set("ChatStatus", *params.ChatStatus) - } - if params != nil && params.PostEngagementData != nil { - data.Set("PostEngagementData", *params.PostEngagementData) - } + if params != nil && params.ChatStatus != nil { + data.Set("ChatStatus", *params.ChatStatus) + } + if params != nil && params.PostEngagementData != nil { + data.Set("PostEngagementData", *params.PostEngagementData) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &FlexV1WebChannel{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &FlexV1WebChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } diff --git a/rest/flex/v1/response.go b/rest/flex/v1/response.go index 82ed472aa..97be2cd3d 100644 --- a/rest/flex/v1/response.go +++ b/rest/flex/v1/response.go @@ -32,16 +32,14 @@ type APIResponse struct { Payload []byte `json:"-"` } -// Response returns a new APIResponse object. -func Response(r *http.Response) *APIResponse { - +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { response := &APIResponse{Response: r} return response } -// ResponseWithError returns a new APIResponse object with the provided error message. -func ResponseWithError(errorMessage string) *APIResponse { - +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { response := &APIResponse{Message: errorMessage} return response } diff --git a/rest/insights/v1/api_call_tag.go b/rest/insights/v1/api_call_tag.go index e90db91aa..a0e630af8 100644 --- a/rest/insights/v1/api_call_tag.go +++ b/rest/insights/v1/api_call_tag.go @@ -13,21 +13,20 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type CallTagApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewCallTagApiService(client *twilio.Client) *CallTagApiService { - return &CallTagApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &CallTagApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } /* @@ -36,25 +35,25 @@ FetchCall Method for FetchCall @return InsightsV1Call */ func (c *CallTagApiService) FetchCall(sid string) (*InsightsV1Call, error) { - path := "/v1/Voice/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Voice/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &InsightsV1Call{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &InsightsV1Call{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } diff --git a/rest/insights/v1/api_events_tag.go b/rest/insights/v1/api_events_tag.go index 830444653..e9d500a33 100644 --- a/rest/insights/v1/api_events_tag.go +++ b/rest/insights/v1/api_events_tag.go @@ -13,27 +13,25 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type EventsTagApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewEventsTagApiService(client *twilio.Client) *EventsTagApiService { - return &EventsTagApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &EventsTagApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } // ListEventParams Optional parameters for the method 'ListEvent' type ListEventParams struct { - Edge *string `json:"Edge,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Edge *string `json:"Edge,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -45,31 +43,31 @@ ListEvent Method for ListEvent @return InsightsV1CallEventReadResponse */ func (c *EventsTagApiService) ListEvent(callSid string, params *ListEventParams) (*InsightsV1CallEventReadResponse, error) { - path := "/v1/Voice/{CallSid}/Events" - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + path := "/v1/Voice/{CallSid}/Events" + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Edge != nil { - data.Set("Edge", *params.Edge) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.Edge != nil { + data.Set("Edge", *params.Edge) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &InsightsV1CallEventReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &InsightsV1CallEventReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } diff --git a/rest/insights/v1/api_metrics_tag.go b/rest/insights/v1/api_metrics_tag.go index a2bf60022..2e906a27c 100644 --- a/rest/insights/v1/api_metrics_tag.go +++ b/rest/insights/v1/api_metrics_tag.go @@ -13,28 +13,26 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type MetricsTagApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewMetricsTagApiService(client *twilio.Client) *MetricsTagApiService { - return &MetricsTagApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &MetricsTagApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } // ListMetricParams Optional parameters for the method 'ListMetric' type ListMetricParams struct { - Edge *string `json:"Edge,omitempty"` - Direction *string `json:"Direction,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Edge *string `json:"Edge,omitempty"` + Direction *string `json:"Direction,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -47,34 +45,34 @@ ListMetric Method for ListMetric @return InsightsV1CallMetricReadResponse */ func (c *MetricsTagApiService) ListMetric(callSid string, params *ListMetricParams) (*InsightsV1CallMetricReadResponse, error) { - path := "/v1/Voice/{CallSid}/Metrics" - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + path := "/v1/Voice/{CallSid}/Metrics" + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Edge != nil { - data.Set("Edge", *params.Edge) - } - if params != nil && params.Direction != nil { - data.Set("Direction", *params.Direction) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.Edge != nil { + data.Set("Edge", *params.Edge) + } + if params != nil && params.Direction != nil { + data.Set("Direction", *params.Direction) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &InsightsV1CallMetricReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &InsightsV1CallMetricReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } diff --git a/rest/insights/v1/api_summary_tag.go b/rest/insights/v1/api_summary_tag.go index f1a484b5c..271566da7 100644 --- a/rest/insights/v1/api_summary_tag.go +++ b/rest/insights/v1/api_summary_tag.go @@ -13,26 +13,24 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type SummaryTagApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewSummaryTagApiService(client *twilio.Client) *SummaryTagApiService { - return &SummaryTagApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &SummaryTagApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } // FetchSummaryParams Optional parameters for the method 'FetchSummary' type FetchSummaryParams struct { - ProcessingState *string `json:"ProcessingState,omitempty"` + ProcessingState *string `json:"ProcessingState,omitempty"` } /* @@ -43,28 +41,28 @@ FetchSummary Method for FetchSummary @return InsightsV1CallSummary */ func (c *SummaryTagApiService) FetchSummary(callSid string, params *FetchSummaryParams) (*InsightsV1CallSummary, error) { - path := "/v1/Voice/{CallSid}/Summary" - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + path := "/v1/Voice/{CallSid}/Summary" + path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.ProcessingState != nil { - data.Set("ProcessingState", *params.ProcessingState) - } + if params != nil && params.ProcessingState != nil { + data.Set("ProcessingState", *params.ProcessingState) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &InsightsV1CallSummary{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &InsightsV1CallSummary{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } diff --git a/rest/insights/v1/api_video_participant_summary_tag.go b/rest/insights/v1/api_video_participant_summary_tag.go index 49121e847..1f6a33954 100644 --- a/rest/insights/v1/api_video_participant_summary_tag.go +++ b/rest/insights/v1/api_video_participant_summary_tag.go @@ -13,22 +13,20 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type VideoParticipantSummaryTagApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewVideoParticipantSummaryTagApiService(client *twilio.Client) *VideoParticipantSummaryTagApiService { - return &VideoParticipantSummaryTagApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &VideoParticipantSummaryTagApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } /* @@ -38,32 +36,32 @@ FetchVideoParticipantSummary Method for FetchVideoParticipantSummary @return InsightsV1VideoRoomSummaryVideoParticipantSummary */ func (c *VideoParticipantSummaryTagApiService) FetchVideoParticipantSummary(roomSid string, participantSid string) (*InsightsV1VideoRoomSummaryVideoParticipantSummary, error) { - path := "/v1/Video/Rooms/{RoomSid}/Participants/{ParticipantSid}" - path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) - path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) + path := "/v1/Video/Rooms/{RoomSid}/Participants/{ParticipantSid}" + path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &InsightsV1VideoRoomSummaryVideoParticipantSummary{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &InsightsV1VideoRoomSummaryVideoParticipantSummary{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListVideoParticipantSummaryParams Optional parameters for the method 'ListVideoParticipantSummary' type ListVideoParticipantSummaryParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -74,28 +72,28 @@ ListVideoParticipantSummary Method for ListVideoParticipantSummary @return InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse */ func (c *VideoParticipantSummaryTagApiService) ListVideoParticipantSummary(roomSid string, params *ListVideoParticipantSummaryParams) (*InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse, error) { - path := "/v1/Video/Rooms/{RoomSid}/Participants" - path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + path := "/v1/Video/Rooms/{RoomSid}/Participants" + path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } diff --git a/rest/insights/v1/api_video_room_summary_tag.go b/rest/insights/v1/api_video_room_summary_tag.go index 7c6882106..e597f5758 100644 --- a/rest/insights/v1/api_video_room_summary_tag.go +++ b/rest/insights/v1/api_video_room_summary_tag.go @@ -13,23 +13,20 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "reflect" - "" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type VideoRoomSummaryTagApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewVideoRoomSummaryTagApiService(client *twilio.Client) *VideoRoomSummaryTagApiService { - return &VideoRoomSummaryTagApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &VideoRoomSummaryTagApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } /* @@ -38,36 +35,36 @@ FetchVideoRoomSummary Method for FetchVideoRoomSummary @return InsightsV1VideoRoomSummary */ func (c *VideoRoomSummaryTagApiService) FetchVideoRoomSummary(roomSid string) (*InsightsV1VideoRoomSummary, error) { - path := "/v1/Video/Rooms/{RoomSid}" - path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + path := "/v1/Video/Rooms/{RoomSid}" + path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &InsightsV1VideoRoomSummary{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &InsightsV1VideoRoomSummary{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListVideoRoomSummaryParams Optional parameters for the method 'ListVideoRoomSummary' type ListVideoRoomSummaryParams struct { - RoomType *[]string `json:"RoomType,omitempty"` - Codec *[]string `json:"Codec,omitempty"` - RoomName *string `json:"RoomName,omitempty"` - CreatedAfter *time.Time `json:"CreatedAfter,omitempty"` - CreatedBefore *time.Time `json:"CreatedBefore,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + RoomType *[]string `json:"RoomType,omitempty"` + Codec *[]string `json:"Codec,omitempty"` + RoomName *string `json:"RoomName,omitempty"` + CreatedAfter *time.Time `json:"CreatedAfter,omitempty"` + CreatedBefore *time.Time `json:"CreatedBefore,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -82,42 +79,42 @@ ListVideoRoomSummary Method for ListVideoRoomSummary @return InsightsV1VideoRoomSummaryReadResponse */ func (c *VideoRoomSummaryTagApiService) ListVideoRoomSummary(params *ListVideoRoomSummaryParams) (*InsightsV1VideoRoomSummaryReadResponse, error) { - path := "/v1/Video/Rooms" - - data := url.Values{} - headers := 0 - - if params != nil && params.RoomType != nil { - data.Set("RoomType", string(*params.RoomType)) - } - if params != nil && params.Codec != nil { - data.Set("Codec", string(*params.Codec)) - } - if params != nil && params.RoomName != nil { - data.Set("RoomName", *params.RoomName) - } - if params != nil && params.CreatedAfter != nil { - data.Set("CreatedAfter", string(*params.CreatedAfter)) - } - if params != nil && params.CreatedBefore != nil { - data.Set("CreatedBefore", string(*params.CreatedBefore)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &InsightsV1VideoRoomSummaryReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Video/Rooms" + + data := url.Values{} + headers := 0 + + if params != nil && params.RoomType != nil { + data.Set("RoomType", string(*params.RoomType)) + } + if params != nil && params.Codec != nil { + data.Set("Codec", string(*params.Codec)) + } + if params != nil && params.RoomName != nil { + data.Set("RoomName", *params.RoomName) + } + if params != nil && params.CreatedAfter != nil { + data.Set("CreatedAfter", string(*params.CreatedAfter)) + } + if params != nil && params.CreatedBefore != nil { + data.Set("CreatedBefore", string(*params.CreatedBefore)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &InsightsV1VideoRoomSummaryReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } diff --git a/rest/insights/v1/response.go b/rest/insights/v1/response.go index 7d40d08d9..267ec5af1 100644 --- a/rest/insights/v1/response.go +++ b/rest/insights/v1/response.go @@ -32,16 +32,14 @@ type APIResponse struct { Payload []byte `json:"-"` } -// Response returns a new APIResponse object. -func Response(r *http.Response) *APIResponse { - +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { response := &APIResponse{Response: r} return response } -// ResponseWithError returns a new APIResponse object with the provided error message. -func ResponseWithError(errorMessage string) *APIResponse { - +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { response := &APIResponse{Message: errorMessage} return response } diff --git a/rest/ip/messaging/api_default.go b/rest/ip/messaging/api_default.go index 10ec02d11..1f72419ad 100644 --- a/rest/ip/messaging/api_default.go +++ b/rest/ip/messaging/api_default.go @@ -13,34 +13,31 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "" - "reflect" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type DefaultApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewDefaultApiService(client *twilio.Client) *DefaultApiService { - return &DefaultApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &DefaultApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } // CreateChannelParams Optional parameters for the method 'CreateChannel' type CreateChannelParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - CreatedBy *string `json:"CreatedBy,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Type *string `json:"Type,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + CreatedBy *string `json:"CreatedBy,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Type *string `json:"Type,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -58,61 +55,61 @@ CreateChannel Method for CreateChannel @return IpMessagingV2ServiceChannel */ func (c *DefaultApiService) CreateChannel(serviceSid string, params *CreateChannelParams) (*IpMessagingV2ServiceChannel, error) { - path := "/v2/Services/{ServiceSid}/Channels" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - - data := url.Values{} - headers := make(map[string]interface{}) - - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.CreatedBy != nil { - data.Set("CreatedBy", *params.CreatedBy) - } - if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) - } - if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Type != nil { - data.Set("Type", *params.Type) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } - - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &IpMessagingV2ServiceChannel{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v2/Services/{ServiceSid}/Channels" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.CreatedBy != nil { + data.Set("CreatedBy", *params.CreatedBy) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateChannelWebhookParams Optional parameters for the method 'CreateChannelWebhook' type CreateChannelWebhookParams struct { - Configuration.Filters *[]string `json:"Configuration.Filters,omitempty"` - Configuration.FlowSid *string `json:"Configuration.FlowSid,omitempty"` - Configuration.Method *string `json:"Configuration.Method,omitempty"` - Configuration.RetryCount *int32 `json:"Configuration.RetryCount,omitempty"` - Configuration.Triggers *[]string `json:"Configuration.Triggers,omitempty"` - Configuration.Url *string `json:"Configuration.Url,omitempty"` - Type *string `json:"Type,omitempty"` + Configuration.Filters *[]string `json:"Configuration.Filters,omitempty"` + Configuration.FlowSid *string `json:"Configuration.FlowSid,omitempty"` + Configuration.Method *string `json:"Configuration.Method,omitempty"` + Configuration.RetryCount *int32 `json:"Configuration.RetryCount,omitempty"` + Configuration.Triggers *[]string `json:"Configuration.Triggers,omitempty"` + Configuration.Url *string `json:"Configuration.Url,omitempty"` + Type *string `json:"Type,omitempty"` } /* @@ -130,59 +127,59 @@ CreateChannelWebhook Method for CreateChannelWebhook @return IpMessagingV2ServiceChannelChannelWebhook */ func (c *DefaultApiService) CreateChannelWebhook(serviceSid string, channelSid string, params *CreateChannelWebhookParams) (*IpMessagingV2ServiceChannelChannelWebhook, error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Configuration.Filters != nil { - data.Set("Configuration.Filters", *params.Configuration.Filters) - } - if params != nil && params.Configuration.FlowSid != nil { - data.Set("Configuration.FlowSid", *params.Configuration.FlowSid) - } - if params != nil && params.Configuration.Method != nil { - data.Set("Configuration.Method", *params.Configuration.Method) - } - if params != nil && params.Configuration.RetryCount != nil { - data.Set("Configuration.RetryCount", string(*params.Configuration.RetryCount)) - } - if params != nil && params.Configuration.Triggers != nil { - data.Set("Configuration.Triggers", *params.Configuration.Triggers) - } - if params != nil && params.Configuration.Url != nil { - data.Set("Configuration.Url", *params.Configuration.Url) - } - if params != nil && params.Type != nil { - data.Set("Type", *params.Type) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &IpMessagingV2ServiceChannelChannelWebhook{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Configuration.Filters != nil { + data.Set("Configuration.Filters", *params.Configuration.Filters) + } + if params != nil && params.Configuration.FlowSid != nil { + data.Set("Configuration.FlowSid", *params.Configuration.FlowSid) + } + if params != nil && params.Configuration.Method != nil { + data.Set("Configuration.Method", *params.Configuration.Method) + } + if params != nil && params.Configuration.RetryCount != nil { + data.Set("Configuration.RetryCount", string(*params.Configuration.RetryCount)) + } + if params != nil && params.Configuration.Triggers != nil { + data.Set("Configuration.Triggers", *params.Configuration.Triggers) + } + if params != nil && params.Configuration.Url != nil { + data.Set("Configuration.Url", *params.Configuration.Url) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceChannelChannelWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateCredentialParams Optional parameters for the method 'CreateCredential' type CreateCredentialParams struct { - ApiKey *string `json:"ApiKey,omitempty"` - Certificate *string `json:"Certificate,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PrivateKey *string `json:"PrivateKey,omitempty"` - Sandbox *bool `json:"Sandbox,omitempty"` - Secret *string `json:"Secret,omitempty"` - Type *string `json:"Type,omitempty"` + ApiKey *string `json:"ApiKey,omitempty"` + Certificate *string `json:"Certificate,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PrivateKey *string `json:"PrivateKey,omitempty"` + Sandbox *bool `json:"Sandbox,omitempty"` + Secret *string `json:"Secret,omitempty"` + Type *string `json:"Type,omitempty"` } /* @@ -198,52 +195,52 @@ CreateCredential Method for CreateCredential @return IpMessagingV2Credential */ func (c *DefaultApiService) CreateCredential(params *CreateCredentialParams) (*IpMessagingV2Credential, error) { - path := "/v2/Credentials" - - data := url.Values{} - headers := 0 - - if params != nil && params.ApiKey != nil { - data.Set("ApiKey", *params.ApiKey) - } - if params != nil && params.Certificate != nil { - data.Set("Certificate", *params.Certificate) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.PrivateKey != nil { - data.Set("PrivateKey", *params.PrivateKey) - } - if params != nil && params.Sandbox != nil { - data.Set("Sandbox", string(*params.Sandbox)) - } - if params != nil && params.Secret != nil { - data.Set("Secret", *params.Secret) - } - if params != nil && params.Type != nil { - data.Set("Type", *params.Type) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &IpMessagingV2Credential{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v2/Credentials" + + data := url.Values{} + headers := 0 + + if params != nil && params.ApiKey != nil { + data.Set("ApiKey", *params.ApiKey) + } + if params != nil && params.Certificate != nil { + data.Set("Certificate", *params.Certificate) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PrivateKey != nil { + data.Set("PrivateKey", *params.PrivateKey) + } + if params != nil && params.Sandbox != nil { + data.Set("Sandbox", string(*params.Sandbox)) + } + if params != nil && params.Secret != nil { + data.Set("Secret", *params.Secret) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2Credential{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateInviteParams Optional parameters for the method 'CreateInvite' type CreateInviteParams struct { - Identity *string `json:"Identity,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + Identity *string `json:"Identity,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -256,45 +253,45 @@ CreateInvite Method for CreateInvite @return IpMessagingV2ServiceChannelInvite */ func (c *DefaultApiService) CreateInvite(serviceSid string, channelSid string, params *CreateInviteParams) (*IpMessagingV2ServiceChannelInvite, error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) - } - if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) - } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &IpMessagingV2ServiceChannelInvite{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &IpMessagingV2ServiceChannelInvite{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateMemberParams Optional parameters for the method 'CreateMember' type CreateMemberParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - Identity *string `json:"Identity,omitempty"` - LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` - LastConsumptionTimestamp *time.Time `json:"LastConsumptionTimestamp,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + Identity *string `json:"Identity,omitempty"` + LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` + LastConsumptionTimestamp *time.Time `json:"LastConsumptionTimestamp,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -313,63 +310,63 @@ CreateMember Method for CreateMember @return IpMessagingV2ServiceChannelMember */ func (c *DefaultApiService) CreateMember(serviceSid string, channelSid string, params *CreateMemberParams) (*IpMessagingV2ServiceChannelMember, error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - - data := url.Values{} - headers := make(map[string]interface{}) - - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) - } - if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) - } - if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) - } - if params != nil && params.LastConsumedMessageIndex != nil { - data.Set("LastConsumedMessageIndex", string(*params.LastConsumedMessageIndex)) - } - if params != nil && params.LastConsumptionTimestamp != nil { - data.Set("LastConsumptionTimestamp", string(*params.LastConsumptionTimestamp)) - } - if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) - } - - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &IpMessagingV2ServiceChannelMember{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.LastConsumedMessageIndex != nil { + data.Set("LastConsumedMessageIndex", string(*params.LastConsumedMessageIndex)) + } + if params != nil && params.LastConsumptionTimestamp != nil { + data.Set("LastConsumptionTimestamp", string(*params.LastConsumptionTimestamp)) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceChannelMember{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateMessageParams Optional parameters for the method 'CreateMessage' type CreateMessageParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - Body *string `json:"Body,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - From *string `json:"From,omitempty"` - LastUpdatedBy *string `json:"LastUpdatedBy,omitempty"` - MediaSid *string `json:"MediaSid,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + Body *string `json:"Body,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + From *string `json:"From,omitempty"` + LastUpdatedBy *string `json:"LastUpdatedBy,omitempty"` + MediaSid *string `json:"MediaSid,omitempty"` } /* @@ -388,58 +385,58 @@ CreateMessage Method for CreateMessage @return IpMessagingV2ServiceChannelMessage */ func (c *DefaultApiService) CreateMessage(serviceSid string, channelSid string, params *CreateMessageParams) (*IpMessagingV2ServiceChannelMessage, error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - - data := url.Values{} - headers := make(map[string]interface{}) - - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.Body != nil { - data.Set("Body", *params.Body) - } - if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) - } - if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) - } - if params != nil && params.From != nil { - data.Set("From", *params.From) - } - if params != nil && params.LastUpdatedBy != nil { - data.Set("LastUpdatedBy", *params.LastUpdatedBy) - } - if params != nil && params.MediaSid != nil { - data.Set("MediaSid", *params.MediaSid) - } - - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &IpMessagingV2ServiceChannelMessage{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.Body != nil { + data.Set("Body", *params.Body) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.LastUpdatedBy != nil { + data.Set("LastUpdatedBy", *params.LastUpdatedBy) + } + if params != nil && params.MediaSid != nil { + data.Set("MediaSid", *params.MediaSid) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceChannelMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateRoleParams Optional parameters for the method 'CreateRole' type CreateRoleParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - Permission *[]string `json:"Permission,omitempty"` - Type *string `json:"Type,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Permission *[]string `json:"Permission,omitempty"` + Type *string `json:"Type,omitempty"` } /* @@ -452,40 +449,40 @@ CreateRole Method for CreateRole @return IpMessagingV2ServiceRole */ func (c *DefaultApiService) CreateRole(serviceSid string, params *CreateRoleParams) (*IpMessagingV2ServiceRole, error) { - path := "/v2/Services/{ServiceSid}/Roles" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v2/Services/{ServiceSid}/Roles" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Permission != nil { - data.Set("Permission", *params.Permission) - } - if params != nil && params.Type != nil { - data.Set("Type", *params.Type) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Permission != nil { + data.Set("Permission", *params.Permission) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &IpMessagingV2ServiceRole{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &IpMessagingV2ServiceRole{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateServiceParams Optional parameters for the method 'CreateService' type CreateServiceParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -495,37 +492,37 @@ CreateService Method for CreateService @return IpMessagingV2Service */ func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*IpMessagingV2Service, error) { - path := "/v2/Services" + path := "/v2/Services" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &IpMessagingV2Service{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &IpMessagingV2Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateUserParams Optional parameters for the method 'CreateUser' type CreateUserParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Identity *string `json:"Identity,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Identity *string `json:"Identity,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -540,42 +537,42 @@ CreateUser Method for CreateUser @return IpMessagingV2ServiceUser */ func (c *DefaultApiService) CreateUser(serviceSid string, params *CreateUserParams) (*IpMessagingV2ServiceUser, error) { - path := "/v2/Services/{ServiceSid}/Users" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v2/Services/{ServiceSid}/Users" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := make(map[string]interface{}) + data := url.Values{} + headers := make(map[string]interface{}) - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) - } - if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) - } + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &IpMessagingV2ServiceUser{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &IpMessagingV2ServiceUser{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -584,27 +581,27 @@ DeleteBinding Method for DeleteBinding * @param sid */ func (c *DefaultApiService) DeleteBinding(serviceSid string, sid string) (error) { - path := "/v2/Services/{ServiceSid}/Bindings/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Bindings/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } // DeleteChannelParams Optional parameters for the method 'DeleteChannel' type DeleteChannelParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* @@ -615,26 +612,26 @@ DeleteChannel Method for DeleteChannel * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ func (c *DefaultApiService) DeleteChannel(serviceSid string, sid string, params *DeleteChannelParams) (error) { - path := "/v2/Services/{ServiceSid}/Channels/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Channels/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := make(map[string]interface{}) + data := url.Values{} + headers := make(map[string]interface{}) - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -644,24 +641,24 @@ DeleteChannelWebhook Method for DeleteChannelWebhook * @param sid */ func (c *DefaultApiService) DeleteChannelWebhook(serviceSid string, channelSid string, sid string) (error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -669,22 +666,22 @@ DeleteCredential Method for DeleteCredential * @param sid */ func (c *DefaultApiService) DeleteCredential(sid string) (error) { - path := "/v2/Credentials/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Credentials/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -694,28 +691,28 @@ DeleteInvite Method for DeleteInvite * @param sid */ func (c *DefaultApiService) DeleteInvite(serviceSid string, channelSid string, sid string) (error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } // DeleteMemberParams Optional parameters for the method 'DeleteMember' type DeleteMemberParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* @@ -727,31 +724,31 @@ DeleteMember Method for DeleteMember * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ func (c *DefaultApiService) DeleteMember(serviceSid string, channelSid string, sid string, params *DeleteMemberParams) (error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := make(map[string]interface{}) + data := url.Values{} + headers := make(map[string]interface{}) - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } // DeleteMessageParams Optional parameters for the method 'DeleteMessage' type DeleteMessageParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* @@ -763,27 +760,27 @@ DeleteMessage Method for DeleteMessage * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ func (c *DefaultApiService) DeleteMessage(serviceSid string, channelSid string, sid string, params *DeleteMessageParams) (error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := make(map[string]interface{}) + data := url.Values{} + headers := make(map[string]interface{}) - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -792,23 +789,23 @@ DeleteRole Method for DeleteRole * @param sid */ func (c *DefaultApiService) DeleteRole(serviceSid string, sid string) (error) { - path := "/v2/Services/{ServiceSid}/Roles/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Roles/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -816,22 +813,22 @@ DeleteService Method for DeleteService * @param sid */ func (c *DefaultApiService) DeleteService(sid string) (error) { - path := "/v2/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -840,23 +837,23 @@ DeleteUser Method for DeleteUser * @param sid */ func (c *DefaultApiService) DeleteUser(serviceSid string, sid string) (error) { - path := "/v2/Services/{ServiceSid}/Users/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Users/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -866,24 +863,24 @@ DeleteUserBinding Method for DeleteUserBinding * @param sid */ func (c *DefaultApiService) DeleteUserBinding(serviceSid string, userSid string, sid string) (error) { - path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -893,24 +890,24 @@ DeleteUserChannel Method for DeleteUserChannel * @param channelSid */ func (c *DefaultApiService) DeleteUserChannel(serviceSid string, userSid string, channelSid string) (error) { - path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -920,28 +917,28 @@ FetchBinding Method for FetchBinding @return IpMessagingV2ServiceBinding */ func (c *DefaultApiService) FetchBinding(serviceSid string, sid string) (*IpMessagingV2ServiceBinding, error) { - path := "/v2/Services/{ServiceSid}/Bindings/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Bindings/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &IpMessagingV2ServiceBinding{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &IpMessagingV2ServiceBinding{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -951,28 +948,28 @@ FetchChannel Method for FetchChannel @return IpMessagingV2ServiceChannel */ func (c *DefaultApiService) FetchChannel(serviceSid string, sid string) (*IpMessagingV2ServiceChannel, error) { - path := "/v2/Services/{ServiceSid}/Channels/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Channels/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &IpMessagingV2ServiceChannel{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &IpMessagingV2ServiceChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -983,29 +980,29 @@ FetchChannelWebhook Method for FetchChannelWebhook @return IpMessagingV2ServiceChannelChannelWebhook */ func (c *DefaultApiService) FetchChannelWebhook(serviceSid string, channelSid string, sid string) (*IpMessagingV2ServiceChannelChannelWebhook, error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &IpMessagingV2ServiceChannelChannelWebhook{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &IpMessagingV2ServiceChannelChannelWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1014,27 +1011,27 @@ FetchCredential Method for FetchCredential @return IpMessagingV2Credential */ func (c *DefaultApiService) FetchCredential(sid string) (*IpMessagingV2Credential, error) { - path := "/v2/Credentials/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Credentials/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &IpMessagingV2Credential{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &IpMessagingV2Credential{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1045,29 +1042,29 @@ FetchInvite Method for FetchInvite @return IpMessagingV2ServiceChannelInvite */ func (c *DefaultApiService) FetchInvite(serviceSid string, channelSid string, sid string) (*IpMessagingV2ServiceChannelInvite, error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &IpMessagingV2ServiceChannelInvite{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &IpMessagingV2ServiceChannelInvite{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1078,29 +1075,29 @@ FetchMember Method for FetchMember @return IpMessagingV2ServiceChannelMember */ func (c *DefaultApiService) FetchMember(serviceSid string, channelSid string, sid string) (*IpMessagingV2ServiceChannelMember, error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &IpMessagingV2ServiceChannelMember{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &IpMessagingV2ServiceChannelMember{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1111,29 +1108,29 @@ FetchMessage Method for FetchMessage @return IpMessagingV2ServiceChannelMessage */ func (c *DefaultApiService) FetchMessage(serviceSid string, channelSid string, sid string) (*IpMessagingV2ServiceChannelMessage, error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &IpMessagingV2ServiceChannelMessage{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &IpMessagingV2ServiceChannelMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1143,28 +1140,28 @@ FetchRole Method for FetchRole @return IpMessagingV2ServiceRole */ func (c *DefaultApiService) FetchRole(serviceSid string, sid string) (*IpMessagingV2ServiceRole, error) { - path := "/v2/Services/{ServiceSid}/Roles/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Roles/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &IpMessagingV2ServiceRole{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &IpMessagingV2ServiceRole{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1173,27 +1170,27 @@ FetchService Method for FetchService @return IpMessagingV2Service */ func (c *DefaultApiService) FetchService(sid string) (*IpMessagingV2Service, error) { - path := "/v2/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &IpMessagingV2Service{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &IpMessagingV2Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1203,28 +1200,28 @@ FetchUser Method for FetchUser @return IpMessagingV2ServiceUser */ func (c *DefaultApiService) FetchUser(serviceSid string, sid string) (*IpMessagingV2ServiceUser, error) { - path := "/v2/Services/{ServiceSid}/Users/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Users/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &IpMessagingV2ServiceUser{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &IpMessagingV2ServiceUser{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1235,29 +1232,29 @@ FetchUserBinding Method for FetchUserBinding @return IpMessagingV2ServiceUserUserBinding */ func (c *DefaultApiService) FetchUserBinding(serviceSid string, userSid string, sid string) (*IpMessagingV2ServiceUserUserBinding, error) { - path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &IpMessagingV2ServiceUserUserBinding{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &IpMessagingV2ServiceUserUserBinding{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1268,35 +1265,35 @@ FetchUserChannel Method for FetchUserChannel @return IpMessagingV2ServiceUserUserChannel */ func (c *DefaultApiService) FetchUserChannel(serviceSid string, userSid string, channelSid string) (*IpMessagingV2ServiceUserUserChannel, error) { - path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &IpMessagingV2ServiceUserUserChannel{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &IpMessagingV2ServiceUserUserChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListBindingParams Optional parameters for the method 'ListBinding' type ListBindingParams struct { - BindingType *[]string `json:"BindingType,omitempty"` - Identity *[]string `json:"Identity,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + BindingType *[]string `json:"BindingType,omitempty"` + Identity *[]string `json:"Identity,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1309,41 +1306,41 @@ ListBinding Method for ListBinding @return IpMessagingV2ServiceBindingReadResponse */ func (c *DefaultApiService) ListBinding(serviceSid string, params *ListBindingParams) (*IpMessagingV2ServiceBindingReadResponse, error) { - path := "/v2/Services/{ServiceSid}/Bindings" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v2/Services/{ServiceSid}/Bindings" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.BindingType != nil { - data.Set("BindingType", string(*params.BindingType)) - } - if params != nil && params.Identity != nil { - data.Set("Identity", string(*params.Identity)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.BindingType != nil { + data.Set("BindingType", string(*params.BindingType)) + } + if params != nil && params.Identity != nil { + data.Set("Identity", string(*params.Identity)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &IpMessagingV2ServiceBindingReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &IpMessagingV2ServiceBindingReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListChannelParams Optional parameters for the method 'ListChannel' type ListChannelParams struct { - Type *[]string `json:"Type,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Type *[]string `json:"Type,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1355,37 +1352,37 @@ ListChannel Method for ListChannel @return IpMessagingV2ServiceChannelReadResponse */ func (c *DefaultApiService) ListChannel(serviceSid string, params *ListChannelParams) (*IpMessagingV2ServiceChannelReadResponse, error) { - path := "/v2/Services/{ServiceSid}/Channels" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v2/Services/{ServiceSid}/Channels" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Type != nil { - data.Set("Type", string(*params.Type)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.Type != nil { + data.Set("Type", string(*params.Type)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &IpMessagingV2ServiceChannelReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &IpMessagingV2ServiceChannelReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListChannelWebhookParams Optional parameters for the method 'ListChannelWebhook' type ListChannelWebhookParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1397,35 +1394,35 @@ ListChannelWebhook Method for ListChannelWebhook @return IpMessagingV2ServiceChannelChannelWebhookReadResponse */ func (c *DefaultApiService) ListChannelWebhook(serviceSid string, channelSid string, params *ListChannelWebhookParams) (*IpMessagingV2ServiceChannelChannelWebhookReadResponse, error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &IpMessagingV2ServiceChannelChannelWebhookReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &IpMessagingV2ServiceChannelChannelWebhookReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListCredentialParams Optional parameters for the method 'ListCredential' type ListCredentialParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1435,34 +1432,34 @@ ListCredential Method for ListCredential @return IpMessagingV2CredentialReadResponse */ func (c *DefaultApiService) ListCredential(params *ListCredentialParams) (*IpMessagingV2CredentialReadResponse, error) { - path := "/v2/Credentials" + path := "/v2/Credentials" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &IpMessagingV2CredentialReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &IpMessagingV2CredentialReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListInviteParams Optional parameters for the method 'ListInvite' type ListInviteParams struct { - Identity *[]string `json:"Identity,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Identity *[]string `json:"Identity,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1475,39 +1472,39 @@ ListInvite Method for ListInvite @return IpMessagingV2ServiceChannelInviteReadResponse */ func (c *DefaultApiService) ListInvite(serviceSid string, channelSid string, params *ListInviteParams) (*IpMessagingV2ServiceChannelInviteReadResponse, error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Identity != nil { - data.Set("Identity", string(*params.Identity)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.Identity != nil { + data.Set("Identity", string(*params.Identity)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &IpMessagingV2ServiceChannelInviteReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &IpMessagingV2ServiceChannelInviteReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListMemberParams Optional parameters for the method 'ListMember' type ListMemberParams struct { - Identity *[]string `json:"Identity,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Identity *[]string `json:"Identity,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1520,39 +1517,39 @@ ListMember Method for ListMember @return IpMessagingV2ServiceChannelMemberReadResponse */ func (c *DefaultApiService) ListMember(serviceSid string, channelSid string, params *ListMemberParams) (*IpMessagingV2ServiceChannelMemberReadResponse, error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Identity != nil { - data.Set("Identity", string(*params.Identity)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.Identity != nil { + data.Set("Identity", string(*params.Identity)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &IpMessagingV2ServiceChannelMemberReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &IpMessagingV2ServiceChannelMemberReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListMessageParams Optional parameters for the method 'ListMessage' type ListMessageParams struct { - Order *string `json:"Order,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Order *string `json:"Order,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1565,38 +1562,38 @@ ListMessage Method for ListMessage @return IpMessagingV2ServiceChannelMessageReadResponse */ func (c *DefaultApiService) ListMessage(serviceSid string, channelSid string, params *ListMessageParams) (*IpMessagingV2ServiceChannelMessageReadResponse, error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Order != nil { - data.Set("Order", *params.Order) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.Order != nil { + data.Set("Order", *params.Order) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &IpMessagingV2ServiceChannelMessageReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &IpMessagingV2ServiceChannelMessageReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListRoleParams Optional parameters for the method 'ListRole' type ListRoleParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1607,34 +1604,34 @@ ListRole Method for ListRole @return IpMessagingV2ServiceRoleReadResponse */ func (c *DefaultApiService) ListRole(serviceSid string, params *ListRoleParams) (*IpMessagingV2ServiceRoleReadResponse, error) { - path := "/v2/Services/{ServiceSid}/Roles" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v2/Services/{ServiceSid}/Roles" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &IpMessagingV2ServiceRoleReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &IpMessagingV2ServiceRoleReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListServiceParams Optional parameters for the method 'ListService' type ListServiceParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1644,33 +1641,33 @@ ListService Method for ListService @return IpMessagingV2ServiceReadResponse */ func (c *DefaultApiService) ListService(params *ListServiceParams) (*IpMessagingV2ServiceReadResponse, error) { - path := "/v2/Services" + path := "/v2/Services" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &IpMessagingV2ServiceReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &IpMessagingV2ServiceReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListUserParams Optional parameters for the method 'ListUser' type ListUserParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1681,35 +1678,35 @@ ListUser Method for ListUser @return IpMessagingV2ServiceUserReadResponse */ func (c *DefaultApiService) ListUser(serviceSid string, params *ListUserParams) (*IpMessagingV2ServiceUserReadResponse, error) { - path := "/v2/Services/{ServiceSid}/Users" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v2/Services/{ServiceSid}/Users" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &IpMessagingV2ServiceUserReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &IpMessagingV2ServiceUserReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListUserBindingParams Optional parameters for the method 'ListUserBinding' type ListUserBindingParams struct { - BindingType *[]string `json:"BindingType,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + BindingType *[]string `json:"BindingType,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1722,38 +1719,38 @@ ListUserBinding Method for ListUserBinding @return IpMessagingV2ServiceUserUserBindingReadResponse */ func (c *DefaultApiService) ListUserBinding(serviceSid string, userSid string, params *ListUserBindingParams) (*IpMessagingV2ServiceUserUserBindingReadResponse, error) { - path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) + path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.BindingType != nil { - data.Set("BindingType", string(*params.BindingType)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.BindingType != nil { + data.Set("BindingType", string(*params.BindingType)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &IpMessagingV2ServiceUserUserBindingReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &IpMessagingV2ServiceUserUserBindingReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListUserChannelParams Optional parameters for the method 'ListUserChannel' type ListUserChannelParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1765,41 +1762,41 @@ ListUserChannel Method for ListUserChannel @return IpMessagingV2ServiceUserUserChannelReadResponse */ func (c *DefaultApiService) ListUserChannel(serviceSid string, userSid string, params *ListUserChannelParams) (*IpMessagingV2ServiceUserUserChannelReadResponse, error) { - path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) + path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &IpMessagingV2ServiceUserUserChannelReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &IpMessagingV2ServiceUserUserChannelReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateChannelParams Optional parameters for the method 'UpdateChannel' type UpdateChannelParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - CreatedBy *string `json:"CreatedBy,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + CreatedBy *string `json:"CreatedBy,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -1817,58 +1814,58 @@ UpdateChannel Method for UpdateChannel @return IpMessagingV2ServiceChannel */ func (c *DefaultApiService) UpdateChannel(serviceSid string, sid string, params *UpdateChannelParams) (*IpMessagingV2ServiceChannel, error) { - path := "/v2/Services/{ServiceSid}/Channels/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := make(map[string]interface{}) - - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.CreatedBy != nil { - data.Set("CreatedBy", *params.CreatedBy) - } - if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) - } - if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } - - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &IpMessagingV2ServiceChannel{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v2/Services/{ServiceSid}/Channels/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.CreatedBy != nil { + data.Set("CreatedBy", *params.CreatedBy) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateChannelWebhookParams Optional parameters for the method 'UpdateChannelWebhook' type UpdateChannelWebhookParams struct { - Configuration.Filters *[]string `json:"Configuration.Filters,omitempty"` - Configuration.FlowSid *string `json:"Configuration.FlowSid,omitempty"` - Configuration.Method *string `json:"Configuration.Method,omitempty"` - Configuration.RetryCount *int32 `json:"Configuration.RetryCount,omitempty"` - Configuration.Triggers *[]string `json:"Configuration.Triggers,omitempty"` - Configuration.Url *string `json:"Configuration.Url,omitempty"` + Configuration.Filters *[]string `json:"Configuration.Filters,omitempty"` + Configuration.FlowSid *string `json:"Configuration.FlowSid,omitempty"` + Configuration.Method *string `json:"Configuration.Method,omitempty"` + Configuration.RetryCount *int32 `json:"Configuration.RetryCount,omitempty"` + Configuration.Triggers *[]string `json:"Configuration.Triggers,omitempty"` + Configuration.Url *string `json:"Configuration.Url,omitempty"` } /* @@ -1886,56 +1883,56 @@ UpdateChannelWebhook Method for UpdateChannelWebhook @return IpMessagingV2ServiceChannelChannelWebhook */ func (c *DefaultApiService) UpdateChannelWebhook(serviceSid string, channelSid string, sid string, params *UpdateChannelWebhookParams) (*IpMessagingV2ServiceChannelChannelWebhook, error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Configuration.Filters != nil { - data.Set("Configuration.Filters", *params.Configuration.Filters) - } - if params != nil && params.Configuration.FlowSid != nil { - data.Set("Configuration.FlowSid", *params.Configuration.FlowSid) - } - if params != nil && params.Configuration.Method != nil { - data.Set("Configuration.Method", *params.Configuration.Method) - } - if params != nil && params.Configuration.RetryCount != nil { - data.Set("Configuration.RetryCount", string(*params.Configuration.RetryCount)) - } - if params != nil && params.Configuration.Triggers != nil { - data.Set("Configuration.Triggers", *params.Configuration.Triggers) - } - if params != nil && params.Configuration.Url != nil { - data.Set("Configuration.Url", *params.Configuration.Url) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &IpMessagingV2ServiceChannelChannelWebhook{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Configuration.Filters != nil { + data.Set("Configuration.Filters", *params.Configuration.Filters) + } + if params != nil && params.Configuration.FlowSid != nil { + data.Set("Configuration.FlowSid", *params.Configuration.FlowSid) + } + if params != nil && params.Configuration.Method != nil { + data.Set("Configuration.Method", *params.Configuration.Method) + } + if params != nil && params.Configuration.RetryCount != nil { + data.Set("Configuration.RetryCount", string(*params.Configuration.RetryCount)) + } + if params != nil && params.Configuration.Triggers != nil { + data.Set("Configuration.Triggers", *params.Configuration.Triggers) + } + if params != nil && params.Configuration.Url != nil { + data.Set("Configuration.Url", *params.Configuration.Url) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceChannelChannelWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateCredentialParams Optional parameters for the method 'UpdateCredential' type UpdateCredentialParams struct { - ApiKey *string `json:"ApiKey,omitempty"` - Certificate *string `json:"Certificate,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PrivateKey *string `json:"PrivateKey,omitempty"` - Sandbox *bool `json:"Sandbox,omitempty"` - Secret *string `json:"Secret,omitempty"` + ApiKey *string `json:"ApiKey,omitempty"` + Certificate *string `json:"Certificate,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PrivateKey *string `json:"PrivateKey,omitempty"` + Sandbox *bool `json:"Sandbox,omitempty"` + Secret *string `json:"Secret,omitempty"` } /* @@ -1951,55 +1948,55 @@ UpdateCredential Method for UpdateCredential @return IpMessagingV2Credential */ func (c *DefaultApiService) UpdateCredential(sid string, params *UpdateCredentialParams) (*IpMessagingV2Credential, error) { - path := "/v2/Credentials/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.ApiKey != nil { - data.Set("ApiKey", *params.ApiKey) - } - if params != nil && params.Certificate != nil { - data.Set("Certificate", *params.Certificate) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.PrivateKey != nil { - data.Set("PrivateKey", *params.PrivateKey) - } - if params != nil && params.Sandbox != nil { - data.Set("Sandbox", string(*params.Sandbox)) - } - if params != nil && params.Secret != nil { - data.Set("Secret", *params.Secret) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &IpMessagingV2Credential{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v2/Credentials/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ApiKey != nil { + data.Set("ApiKey", *params.ApiKey) + } + if params != nil && params.Certificate != nil { + data.Set("Certificate", *params.Certificate) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PrivateKey != nil { + data.Set("PrivateKey", *params.PrivateKey) + } + if params != nil && params.Sandbox != nil { + data.Set("Sandbox", string(*params.Sandbox)) + } + if params != nil && params.Secret != nil { + data.Set("Secret", *params.Secret) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2Credential{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateMemberParams Optional parameters for the method 'UpdateMember' type UpdateMemberParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` - LastConsumptionTimestamp *time.Time `json:"LastConsumptionTimestamp,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` + LastConsumptionTimestamp *time.Time `json:"LastConsumptionTimestamp,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -2018,60 +2015,60 @@ UpdateMember Method for UpdateMember @return IpMessagingV2ServiceChannelMember */ func (c *DefaultApiService) UpdateMember(serviceSid string, channelSid string, sid string, params *UpdateMemberParams) (*IpMessagingV2ServiceChannelMember, error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := make(map[string]interface{}) - - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) - } - if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) - } - if params != nil && params.LastConsumedMessageIndex != nil { - data.Set("LastConsumedMessageIndex", string(*params.LastConsumedMessageIndex)) - } - if params != nil && params.LastConsumptionTimestamp != nil { - data.Set("LastConsumptionTimestamp", string(*params.LastConsumptionTimestamp)) - } - if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) - } - - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &IpMessagingV2ServiceChannelMember{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.LastConsumedMessageIndex != nil { + data.Set("LastConsumedMessageIndex", string(*params.LastConsumedMessageIndex)) + } + if params != nil && params.LastConsumptionTimestamp != nil { + data.Set("LastConsumptionTimestamp", string(*params.LastConsumptionTimestamp)) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceChannelMember{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateMessageParams Optional parameters for the method 'UpdateMessage' type UpdateMessageParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - Body *string `json:"Body,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - From *string `json:"From,omitempty"` - LastUpdatedBy *string `json:"LastUpdatedBy,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + Body *string `json:"Body,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + From *string `json:"From,omitempty"` + LastUpdatedBy *string `json:"LastUpdatedBy,omitempty"` } /* @@ -2090,54 +2087,54 @@ UpdateMessage Method for UpdateMessage @return IpMessagingV2ServiceChannelMessage */ func (c *DefaultApiService) UpdateMessage(serviceSid string, channelSid string, sid string, params *UpdateMessageParams) (*IpMessagingV2ServiceChannelMessage, error) { - path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := make(map[string]interface{}) - - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.Body != nil { - data.Set("Body", *params.Body) - } - if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) - } - if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) - } - if params != nil && params.From != nil { - data.Set("From", *params.From) - } - if params != nil && params.LastUpdatedBy != nil { - data.Set("LastUpdatedBy", *params.LastUpdatedBy) - } - - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &IpMessagingV2ServiceChannelMessage{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.Body != nil { + data.Set("Body", *params.Body) + } + if params != nil && params.DateCreated != nil { + data.Set("DateCreated", string(*params.DateCreated)) + } + if params != nil && params.DateUpdated != nil { + data.Set("DateUpdated", string(*params.DateUpdated)) + } + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.LastUpdatedBy != nil { + data.Set("LastUpdatedBy", *params.LastUpdatedBy) + } + + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceChannelMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateRoleParams Optional parameters for the method 'UpdateRole' type UpdateRoleParams struct { - Permission *[]string `json:"Permission,omitempty"` + Permission *[]string `json:"Permission,omitempty"` } /* @@ -2149,65 +2146,65 @@ UpdateRole Method for UpdateRole @return IpMessagingV2ServiceRole */ func (c *DefaultApiService) UpdateRole(serviceSid string, sid string, params *UpdateRoleParams) (*IpMessagingV2ServiceRole, error) { - path := "/v2/Services/{ServiceSid}/Roles/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Roles/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Permission != nil { - data.Set("Permission", *params.Permission) - } + if params != nil && params.Permission != nil { + data.Set("Permission", *params.Permission) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &IpMessagingV2ServiceRole{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &IpMessagingV2ServiceRole{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateServiceParams Optional parameters for the method 'UpdateService' type UpdateServiceParams struct { - ConsumptionReportInterval *int32 `json:"ConsumptionReportInterval,omitempty"` - DefaultChannelCreatorRoleSid *string `json:"DefaultChannelCreatorRoleSid,omitempty"` - DefaultChannelRoleSid *string `json:"DefaultChannelRoleSid,omitempty"` - DefaultServiceRoleSid *string `json:"DefaultServiceRoleSid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Limits.ChannelMembers *int32 `json:"Limits.ChannelMembers,omitempty"` - Limits.UserChannels *int32 `json:"Limits.UserChannels,omitempty"` - Media.CompatibilityMessage *string `json:"Media.CompatibilityMessage,omitempty"` - Notifications.AddedToChannel.Enabled *bool `json:"Notifications.AddedToChannel.Enabled,omitempty"` - Notifications.AddedToChannel.Sound *string `json:"Notifications.AddedToChannel.Sound,omitempty"` - Notifications.AddedToChannel.Template *string `json:"Notifications.AddedToChannel.Template,omitempty"` - Notifications.InvitedToChannel.Enabled *bool `json:"Notifications.InvitedToChannel.Enabled,omitempty"` - Notifications.InvitedToChannel.Sound *string `json:"Notifications.InvitedToChannel.Sound,omitempty"` - Notifications.InvitedToChannel.Template *string `json:"Notifications.InvitedToChannel.Template,omitempty"` - Notifications.LogEnabled *bool `json:"Notifications.LogEnabled,omitempty"` - Notifications.NewMessage.BadgeCountEnabled *bool `json:"Notifications.NewMessage.BadgeCountEnabled,omitempty"` - Notifications.NewMessage.Enabled *bool `json:"Notifications.NewMessage.Enabled,omitempty"` - Notifications.NewMessage.Sound *string `json:"Notifications.NewMessage.Sound,omitempty"` - Notifications.NewMessage.Template *string `json:"Notifications.NewMessage.Template,omitempty"` - Notifications.RemovedFromChannel.Enabled *bool `json:"Notifications.RemovedFromChannel.Enabled,omitempty"` - Notifications.RemovedFromChannel.Sound *string `json:"Notifications.RemovedFromChannel.Sound,omitempty"` - Notifications.RemovedFromChannel.Template *string `json:"Notifications.RemovedFromChannel.Template,omitempty"` - PostWebhookRetryCount *int32 `json:"PostWebhookRetryCount,omitempty"` - PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"` - PreWebhookRetryCount *int32 `json:"PreWebhookRetryCount,omitempty"` - PreWebhookUrl *string `json:"PreWebhookUrl,omitempty"` - ReachabilityEnabled *bool `json:"ReachabilityEnabled,omitempty"` - ReadStatusEnabled *bool `json:"ReadStatusEnabled,omitempty"` - TypingIndicatorTimeout *int32 `json:"TypingIndicatorTimeout,omitempty"` - WebhookFilters *[]string `json:"WebhookFilters,omitempty"` - WebhookMethod *string `json:"WebhookMethod,omitempty"` + ConsumptionReportInterval *int32 `json:"ConsumptionReportInterval,omitempty"` + DefaultChannelCreatorRoleSid *string `json:"DefaultChannelCreatorRoleSid,omitempty"` + DefaultChannelRoleSid *string `json:"DefaultChannelRoleSid,omitempty"` + DefaultServiceRoleSid *string `json:"DefaultServiceRoleSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Limits.ChannelMembers *int32 `json:"Limits.ChannelMembers,omitempty"` + Limits.UserChannels *int32 `json:"Limits.UserChannels,omitempty"` + Media.CompatibilityMessage *string `json:"Media.CompatibilityMessage,omitempty"` + Notifications.AddedToChannel.Enabled *bool `json:"Notifications.AddedToChannel.Enabled,omitempty"` + Notifications.AddedToChannel.Sound *string `json:"Notifications.AddedToChannel.Sound,omitempty"` + Notifications.AddedToChannel.Template *string `json:"Notifications.AddedToChannel.Template,omitempty"` + Notifications.InvitedToChannel.Enabled *bool `json:"Notifications.InvitedToChannel.Enabled,omitempty"` + Notifications.InvitedToChannel.Sound *string `json:"Notifications.InvitedToChannel.Sound,omitempty"` + Notifications.InvitedToChannel.Template *string `json:"Notifications.InvitedToChannel.Template,omitempty"` + Notifications.LogEnabled *bool `json:"Notifications.LogEnabled,omitempty"` + Notifications.NewMessage.BadgeCountEnabled *bool `json:"Notifications.NewMessage.BadgeCountEnabled,omitempty"` + Notifications.NewMessage.Enabled *bool `json:"Notifications.NewMessage.Enabled,omitempty"` + Notifications.NewMessage.Sound *string `json:"Notifications.NewMessage.Sound,omitempty"` + Notifications.NewMessage.Template *string `json:"Notifications.NewMessage.Template,omitempty"` + Notifications.RemovedFromChannel.Enabled *bool `json:"Notifications.RemovedFromChannel.Enabled,omitempty"` + Notifications.RemovedFromChannel.Sound *string `json:"Notifications.RemovedFromChannel.Sound,omitempty"` + Notifications.RemovedFromChannel.Template *string `json:"Notifications.RemovedFromChannel.Template,omitempty"` + PostWebhookRetryCount *int32 `json:"PostWebhookRetryCount,omitempty"` + PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"` + PreWebhookRetryCount *int32 `json:"PreWebhookRetryCount,omitempty"` + PreWebhookUrl *string `json:"PreWebhookUrl,omitempty"` + ReachabilityEnabled *bool `json:"ReachabilityEnabled,omitempty"` + ReadStatusEnabled *bool `json:"ReadStatusEnabled,omitempty"` + TypingIndicatorTimeout *int32 `json:"TypingIndicatorTimeout,omitempty"` + WebhookFilters *[]string `json:"WebhookFilters,omitempty"` + WebhookMethod *string `json:"WebhookMethod,omitempty"` } /* @@ -2248,127 +2245,127 @@ UpdateService Method for UpdateService @return IpMessagingV2Service */ func (c *DefaultApiService) UpdateService(sid string, params *UpdateServiceParams) (*IpMessagingV2Service, error) { - path := "/v2/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.ConsumptionReportInterval != nil { - data.Set("ConsumptionReportInterval", string(*params.ConsumptionReportInterval)) - } - if params != nil && params.DefaultChannelCreatorRoleSid != nil { - data.Set("DefaultChannelCreatorRoleSid", *params.DefaultChannelCreatorRoleSid) - } - if params != nil && params.DefaultChannelRoleSid != nil { - data.Set("DefaultChannelRoleSid", *params.DefaultChannelRoleSid) - } - if params != nil && params.DefaultServiceRoleSid != nil { - data.Set("DefaultServiceRoleSid", *params.DefaultServiceRoleSid) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Limits.ChannelMembers != nil { - data.Set("Limits.ChannelMembers", string(*params.Limits.ChannelMembers)) - } - if params != nil && params.Limits.UserChannels != nil { - data.Set("Limits.UserChannels", string(*params.Limits.UserChannels)) - } - if params != nil && params.Media.CompatibilityMessage != nil { - data.Set("Media.CompatibilityMessage", *params.Media.CompatibilityMessage) - } - if params != nil && params.Notifications.AddedToChannel.Enabled != nil { - data.Set("Notifications.AddedToChannel.Enabled", string(*params.Notifications.AddedToChannel.Enabled)) - } - if params != nil && params.Notifications.AddedToChannel.Sound != nil { - data.Set("Notifications.AddedToChannel.Sound", *params.Notifications.AddedToChannel.Sound) - } - if params != nil && params.Notifications.AddedToChannel.Template != nil { - data.Set("Notifications.AddedToChannel.Template", *params.Notifications.AddedToChannel.Template) - } - if params != nil && params.Notifications.InvitedToChannel.Enabled != nil { - data.Set("Notifications.InvitedToChannel.Enabled", string(*params.Notifications.InvitedToChannel.Enabled)) - } - if params != nil && params.Notifications.InvitedToChannel.Sound != nil { - data.Set("Notifications.InvitedToChannel.Sound", *params.Notifications.InvitedToChannel.Sound) - } - if params != nil && params.Notifications.InvitedToChannel.Template != nil { - data.Set("Notifications.InvitedToChannel.Template", *params.Notifications.InvitedToChannel.Template) - } - if params != nil && params.Notifications.LogEnabled != nil { - data.Set("Notifications.LogEnabled", string(*params.Notifications.LogEnabled)) - } - if params != nil && params.Notifications.NewMessage.BadgeCountEnabled != nil { - data.Set("Notifications.NewMessage.BadgeCountEnabled", string(*params.Notifications.NewMessage.BadgeCountEnabled)) - } - if params != nil && params.Notifications.NewMessage.Enabled != nil { - data.Set("Notifications.NewMessage.Enabled", string(*params.Notifications.NewMessage.Enabled)) - } - if params != nil && params.Notifications.NewMessage.Sound != nil { - data.Set("Notifications.NewMessage.Sound", *params.Notifications.NewMessage.Sound) - } - if params != nil && params.Notifications.NewMessage.Template != nil { - data.Set("Notifications.NewMessage.Template", *params.Notifications.NewMessage.Template) - } - if params != nil && params.Notifications.RemovedFromChannel.Enabled != nil { - data.Set("Notifications.RemovedFromChannel.Enabled", string(*params.Notifications.RemovedFromChannel.Enabled)) - } - if params != nil && params.Notifications.RemovedFromChannel.Sound != nil { - data.Set("Notifications.RemovedFromChannel.Sound", *params.Notifications.RemovedFromChannel.Sound) - } - if params != nil && params.Notifications.RemovedFromChannel.Template != nil { - data.Set("Notifications.RemovedFromChannel.Template", *params.Notifications.RemovedFromChannel.Template) - } - if params != nil && params.PostWebhookRetryCount != nil { - data.Set("PostWebhookRetryCount", string(*params.PostWebhookRetryCount)) - } - if params != nil && params.PostWebhookUrl != nil { - data.Set("PostWebhookUrl", *params.PostWebhookUrl) - } - if params != nil && params.PreWebhookRetryCount != nil { - data.Set("PreWebhookRetryCount", string(*params.PreWebhookRetryCount)) - } - if params != nil && params.PreWebhookUrl != nil { - data.Set("PreWebhookUrl", *params.PreWebhookUrl) - } - if params != nil && params.ReachabilityEnabled != nil { - data.Set("ReachabilityEnabled", string(*params.ReachabilityEnabled)) - } - if params != nil && params.ReadStatusEnabled != nil { - data.Set("ReadStatusEnabled", string(*params.ReadStatusEnabled)) - } - if params != nil && params.TypingIndicatorTimeout != nil { - data.Set("TypingIndicatorTimeout", string(*params.TypingIndicatorTimeout)) - } - if params != nil && params.WebhookFilters != nil { - data.Set("WebhookFilters", *params.WebhookFilters) - } - if params != nil && params.WebhookMethod != nil { - data.Set("WebhookMethod", *params.WebhookMethod) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &IpMessagingV2Service{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v2/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ConsumptionReportInterval != nil { + data.Set("ConsumptionReportInterval", string(*params.ConsumptionReportInterval)) + } + if params != nil && params.DefaultChannelCreatorRoleSid != nil { + data.Set("DefaultChannelCreatorRoleSid", *params.DefaultChannelCreatorRoleSid) + } + if params != nil && params.DefaultChannelRoleSid != nil { + data.Set("DefaultChannelRoleSid", *params.DefaultChannelRoleSid) + } + if params != nil && params.DefaultServiceRoleSid != nil { + data.Set("DefaultServiceRoleSid", *params.DefaultServiceRoleSid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Limits.ChannelMembers != nil { + data.Set("Limits.ChannelMembers", string(*params.Limits.ChannelMembers)) + } + if params != nil && params.Limits.UserChannels != nil { + data.Set("Limits.UserChannels", string(*params.Limits.UserChannels)) + } + if params != nil && params.Media.CompatibilityMessage != nil { + data.Set("Media.CompatibilityMessage", *params.Media.CompatibilityMessage) + } + if params != nil && params.Notifications.AddedToChannel.Enabled != nil { + data.Set("Notifications.AddedToChannel.Enabled", string(*params.Notifications.AddedToChannel.Enabled)) + } + if params != nil && params.Notifications.AddedToChannel.Sound != nil { + data.Set("Notifications.AddedToChannel.Sound", *params.Notifications.AddedToChannel.Sound) + } + if params != nil && params.Notifications.AddedToChannel.Template != nil { + data.Set("Notifications.AddedToChannel.Template", *params.Notifications.AddedToChannel.Template) + } + if params != nil && params.Notifications.InvitedToChannel.Enabled != nil { + data.Set("Notifications.InvitedToChannel.Enabled", string(*params.Notifications.InvitedToChannel.Enabled)) + } + if params != nil && params.Notifications.InvitedToChannel.Sound != nil { + data.Set("Notifications.InvitedToChannel.Sound", *params.Notifications.InvitedToChannel.Sound) + } + if params != nil && params.Notifications.InvitedToChannel.Template != nil { + data.Set("Notifications.InvitedToChannel.Template", *params.Notifications.InvitedToChannel.Template) + } + if params != nil && params.Notifications.LogEnabled != nil { + data.Set("Notifications.LogEnabled", string(*params.Notifications.LogEnabled)) + } + if params != nil && params.Notifications.NewMessage.BadgeCountEnabled != nil { + data.Set("Notifications.NewMessage.BadgeCountEnabled", string(*params.Notifications.NewMessage.BadgeCountEnabled)) + } + if params != nil && params.Notifications.NewMessage.Enabled != nil { + data.Set("Notifications.NewMessage.Enabled", string(*params.Notifications.NewMessage.Enabled)) + } + if params != nil && params.Notifications.NewMessage.Sound != nil { + data.Set("Notifications.NewMessage.Sound", *params.Notifications.NewMessage.Sound) + } + if params != nil && params.Notifications.NewMessage.Template != nil { + data.Set("Notifications.NewMessage.Template", *params.Notifications.NewMessage.Template) + } + if params != nil && params.Notifications.RemovedFromChannel.Enabled != nil { + data.Set("Notifications.RemovedFromChannel.Enabled", string(*params.Notifications.RemovedFromChannel.Enabled)) + } + if params != nil && params.Notifications.RemovedFromChannel.Sound != nil { + data.Set("Notifications.RemovedFromChannel.Sound", *params.Notifications.RemovedFromChannel.Sound) + } + if params != nil && params.Notifications.RemovedFromChannel.Template != nil { + data.Set("Notifications.RemovedFromChannel.Template", *params.Notifications.RemovedFromChannel.Template) + } + if params != nil && params.PostWebhookRetryCount != nil { + data.Set("PostWebhookRetryCount", string(*params.PostWebhookRetryCount)) + } + if params != nil && params.PostWebhookUrl != nil { + data.Set("PostWebhookUrl", *params.PostWebhookUrl) + } + if params != nil && params.PreWebhookRetryCount != nil { + data.Set("PreWebhookRetryCount", string(*params.PreWebhookRetryCount)) + } + if params != nil && params.PreWebhookUrl != nil { + data.Set("PreWebhookUrl", *params.PreWebhookUrl) + } + if params != nil && params.ReachabilityEnabled != nil { + data.Set("ReachabilityEnabled", string(*params.ReachabilityEnabled)) + } + if params != nil && params.ReadStatusEnabled != nil { + data.Set("ReadStatusEnabled", string(*params.ReadStatusEnabled)) + } + if params != nil && params.TypingIndicatorTimeout != nil { + data.Set("TypingIndicatorTimeout", string(*params.TypingIndicatorTimeout)) + } + if params != nil && params.WebhookFilters != nil { + data.Set("WebhookFilters", *params.WebhookFilters) + } + if params != nil && params.WebhookMethod != nil { + data.Set("WebhookMethod", *params.WebhookMethod) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateUserParams Optional parameters for the method 'UpdateUser' type UpdateUserParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -2383,46 +2380,46 @@ UpdateUser Method for UpdateUser @return IpMessagingV2ServiceUser */ func (c *DefaultApiService) UpdateUser(serviceSid string, sid string, params *UpdateUserParams) (*IpMessagingV2ServiceUser, error) { - path := "/v2/Services/{ServiceSid}/Users/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Users/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := make(map[string]interface{}) + data := url.Values{} + headers := make(map[string]interface{}) - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) - } + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.RoleSid != nil { + data.Set("RoleSid", *params.RoleSid) + } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled - } + if params != nil && params.X-Twilio-Webhook-Enabled != nil { + headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &IpMessagingV2ServiceUser{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &IpMessagingV2ServiceUser{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateUserChannelParams Optional parameters for the method 'UpdateUserChannel' type UpdateUserChannelParams struct { - LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` - LastConsumptionTimestamp *time.Time `json:"LastConsumptionTimestamp,omitempty"` - NotificationLevel *string `json:"NotificationLevel,omitempty"` + LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` + LastConsumptionTimestamp *time.Time `json:"LastConsumptionTimestamp,omitempty"` + NotificationLevel *string `json:"NotificationLevel,omitempty"` } /* @@ -2437,36 +2434,36 @@ UpdateUserChannel Method for UpdateUserChannel @return IpMessagingV2ServiceUserUserChannel */ func (c *DefaultApiService) UpdateUserChannel(serviceSid string, userSid string, channelSid string, params *UpdateUserChannelParams) (*IpMessagingV2ServiceUserUserChannel, error) { - path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.LastConsumedMessageIndex != nil { - data.Set("LastConsumedMessageIndex", string(*params.LastConsumedMessageIndex)) - } - if params != nil && params.LastConsumptionTimestamp != nil { - data.Set("LastConsumptionTimestamp", string(*params.LastConsumptionTimestamp)) - } - if params != nil && params.NotificationLevel != nil { - data.Set("NotificationLevel", *params.NotificationLevel) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &IpMessagingV2ServiceUserUserChannel{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.LastConsumedMessageIndex != nil { + data.Set("LastConsumedMessageIndex", string(*params.LastConsumedMessageIndex)) + } + if params != nil && params.LastConsumptionTimestamp != nil { + data.Set("LastConsumptionTimestamp", string(*params.LastConsumptionTimestamp)) + } + if params != nil && params.NotificationLevel != nil { + data.Set("NotificationLevel", *params.NotificationLevel) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &IpMessagingV2ServiceUserUserChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } diff --git a/rest/ip/messaging/response.go b/rest/ip/messaging/response.go index 9493a1441..05b2f1ede 100644 --- a/rest/ip/messaging/response.go +++ b/rest/ip/messaging/response.go @@ -32,16 +32,14 @@ type APIResponse struct { Payload []byte `json:"-"` } -// Response returns a new APIResponse object. -func Response(r *http.Response) *APIResponse { - +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { response := &APIResponse{Response: r} return response } -// ResponseWithError returns a new APIResponse object with the provided error message. -func ResponseWithError(errorMessage string) *APIResponse { - +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { response := &APIResponse{Message: errorMessage} return response } diff --git a/rest/lookups/v1/api_default.go b/rest/lookups/v1/api_default.go index eaae02782..ad5da9662 100644 --- a/rest/lookups/v1/api_default.go +++ b/rest/lookups/v1/api_default.go @@ -13,30 +13,27 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "" - "reflect" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type DefaultApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewDefaultApiService(client *twilio.Client) *DefaultApiService { - return &DefaultApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &DefaultApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } // FetchPhoneNumberParams Optional parameters for the method 'FetchPhoneNumber' type FetchPhoneNumberParams struct { - CountryCode *string `json:"CountryCode,omitempty"` - Type *[]string `json:"Type,omitempty"` - AddOns *[]string `json:"AddOns,omitempty"` - AddOnsData *map[string]interface{} `json:"AddOnsData,omitempty"` + CountryCode *string `json:"CountryCode,omitempty"` + Type *[]string `json:"Type,omitempty"` + AddOns *[]string `json:"AddOns,omitempty"` + AddOnsData *map[string]interface{} `json:"AddOnsData,omitempty"` } /* @@ -50,43 +47,43 @@ FetchPhoneNumber Method for FetchPhoneNumber @return LookupsV1PhoneNumber */ func (c *DefaultApiService) FetchPhoneNumber(phoneNumber string, params *FetchPhoneNumberParams) (*LookupsV1PhoneNumber, error) { - path := "/v1/PhoneNumbers/{PhoneNumber}" - path = strings.Replace(path, "{"+"PhoneNumber"+"}", phoneNumber, -1) + path := "/v1/PhoneNumbers/{PhoneNumber}" + path = strings.Replace(path, "{"+"PhoneNumber"+"}", phoneNumber, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.CountryCode != nil { - data.Set("CountryCode", *params.CountryCode) - } - if params != nil && params.Type != nil { - data.Set("Type", string(*params.Type)) - } - if params != nil && params.AddOns != nil { - data.Set("AddOns", string(*params.AddOns)) - } - if params != nil && params.AddOnsData != nil { - v, err := json.Marshal(params.AddOnsData) + if params != nil && params.CountryCode != nil { + data.Set("CountryCode", *params.CountryCode) + } + if params != nil && params.Type != nil { + data.Set("Type", string(*params.Type)) + } + if params != nil && params.AddOns != nil { + data.Set("AddOns", string(*params.AddOns)) + } + if params != nil && params.AddOnsData != nil { + v, err := json.Marshal(params.AddOnsData) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("AddOnsData", string(v)) - } + data.Set("AddOnsData", string(v)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &LookupsV1PhoneNumber{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &LookupsV1PhoneNumber{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } diff --git a/rest/lookups/v1/response.go b/rest/lookups/v1/response.go index f73a2c074..3435243e7 100644 --- a/rest/lookups/v1/response.go +++ b/rest/lookups/v1/response.go @@ -32,16 +32,14 @@ type APIResponse struct { Payload []byte `json:"-"` } -// Response returns a new APIResponse object. -func Response(r *http.Response) *APIResponse { - +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { response := &APIResponse{Response: r} return response } -// ResponseWithError returns a new APIResponse object with the provided error message. -func ResponseWithError(errorMessage string) *APIResponse { - +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { response := &APIResponse{Message: errorMessage} return response } diff --git a/rest/messaging/v1/api_default.go b/rest/messaging/v1/api_default.go index 3a7417e74..d3cab2f29 100644 --- a/rest/messaging/v1/api_default.go +++ b/rest/messaging/v1/api_default.go @@ -13,26 +13,24 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type DefaultApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewDefaultApiService(client *twilio.Client) *DefaultApiService { - return &DefaultApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &DefaultApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } // CreateAlphaSenderParams Optional parameters for the method 'CreateAlphaSender' type CreateAlphaSenderParams struct { - AlphaSender *string `json:"AlphaSender,omitempty"` + AlphaSender *string `json:"AlphaSender,omitempty"` } /* @@ -43,34 +41,34 @@ CreateAlphaSender Method for CreateAlphaSender @return MessagingV1ServiceAlphaSender */ func (c *DefaultApiService) CreateAlphaSender(serviceSid string, params *CreateAlphaSenderParams) (*MessagingV1ServiceAlphaSender, error) { - path := "/v1/Services/{ServiceSid}/AlphaSenders" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v1/Services/{ServiceSid}/AlphaSenders" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.AlphaSender != nil { - data.Set("AlphaSender", *params.AlphaSender) - } + if params != nil && params.AlphaSender != nil { + data.Set("AlphaSender", *params.AlphaSender) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &MessagingV1ServiceAlphaSender{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &MessagingV1ServiceAlphaSender{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreatePhoneNumberParams Optional parameters for the method 'CreatePhoneNumber' type CreatePhoneNumberParams struct { - PhoneNumberSid *string `json:"PhoneNumberSid,omitempty"` + PhoneNumberSid *string `json:"PhoneNumberSid,omitempty"` } /* @@ -81,47 +79,47 @@ CreatePhoneNumber Method for CreatePhoneNumber @return MessagingV1ServicePhoneNumber */ func (c *DefaultApiService) CreatePhoneNumber(serviceSid string, params *CreatePhoneNumberParams) (*MessagingV1ServicePhoneNumber, error) { - path := "/v1/Services/{ServiceSid}/PhoneNumbers" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v1/Services/{ServiceSid}/PhoneNumbers" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PhoneNumberSid != nil { - data.Set("PhoneNumberSid", *params.PhoneNumberSid) - } + if params != nil && params.PhoneNumberSid != nil { + data.Set("PhoneNumberSid", *params.PhoneNumberSid) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &MessagingV1ServicePhoneNumber{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &MessagingV1ServicePhoneNumber{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateServiceParams Optional parameters for the method 'CreateService' type CreateServiceParams struct { - AreaCodeGeomatch *bool `json:"AreaCodeGeomatch,omitempty"` - FallbackMethod *string `json:"FallbackMethod,omitempty"` - FallbackToLongCode *bool `json:"FallbackToLongCode,omitempty"` - FallbackUrl *string `json:"FallbackUrl,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - InboundMethod *string `json:"InboundMethod,omitempty"` - InboundRequestUrl *string `json:"InboundRequestUrl,omitempty"` - MmsConverter *bool `json:"MmsConverter,omitempty"` - ScanMessageContent *string `json:"ScanMessageContent,omitempty"` - SmartEncoding *bool `json:"SmartEncoding,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StickySender *bool `json:"StickySender,omitempty"` - SynchronousValidation *bool `json:"SynchronousValidation,omitempty"` - ValidityPeriod *int32 `json:"ValidityPeriod,omitempty"` + AreaCodeGeomatch *bool `json:"AreaCodeGeomatch,omitempty"` + FallbackMethod *string `json:"FallbackMethod,omitempty"` + FallbackToLongCode *bool `json:"FallbackToLongCode,omitempty"` + FallbackUrl *string `json:"FallbackUrl,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + InboundMethod *string `json:"InboundMethod,omitempty"` + InboundRequestUrl *string `json:"InboundRequestUrl,omitempty"` + MmsConverter *bool `json:"MmsConverter,omitempty"` + ScanMessageContent *string `json:"ScanMessageContent,omitempty"` + SmartEncoding *bool `json:"SmartEncoding,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StickySender *bool `json:"StickySender,omitempty"` + SynchronousValidation *bool `json:"SynchronousValidation,omitempty"` + ValidityPeriod *int32 `json:"ValidityPeriod,omitempty"` } /* @@ -144,72 +142,72 @@ CreateService Method for CreateService @return MessagingV1Service */ func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*MessagingV1Service, error) { - path := "/v1/Services" - - data := url.Values{} - headers := 0 - - if params != nil && params.AreaCodeGeomatch != nil { - data.Set("AreaCodeGeomatch", string(*params.AreaCodeGeomatch)) - } - if params != nil && params.FallbackMethod != nil { - data.Set("FallbackMethod", *params.FallbackMethod) - } - if params != nil && params.FallbackToLongCode != nil { - data.Set("FallbackToLongCode", string(*params.FallbackToLongCode)) - } - if params != nil && params.FallbackUrl != nil { - data.Set("FallbackUrl", *params.FallbackUrl) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.InboundMethod != nil { - data.Set("InboundMethod", *params.InboundMethod) - } - if params != nil && params.InboundRequestUrl != nil { - data.Set("InboundRequestUrl", *params.InboundRequestUrl) - } - if params != nil && params.MmsConverter != nil { - data.Set("MmsConverter", string(*params.MmsConverter)) - } - if params != nil && params.ScanMessageContent != nil { - data.Set("ScanMessageContent", *params.ScanMessageContent) - } - if params != nil && params.SmartEncoding != nil { - data.Set("SmartEncoding", string(*params.SmartEncoding)) - } - if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) - } - if params != nil && params.StickySender != nil { - data.Set("StickySender", string(*params.StickySender)) - } - if params != nil && params.SynchronousValidation != nil { - data.Set("SynchronousValidation", string(*params.SynchronousValidation)) - } - if params != nil && params.ValidityPeriod != nil { - data.Set("ValidityPeriod", string(*params.ValidityPeriod)) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &MessagingV1Service{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Services" + + data := url.Values{} + headers := 0 + + if params != nil && params.AreaCodeGeomatch != nil { + data.Set("AreaCodeGeomatch", string(*params.AreaCodeGeomatch)) + } + if params != nil && params.FallbackMethod != nil { + data.Set("FallbackMethod", *params.FallbackMethod) + } + if params != nil && params.FallbackToLongCode != nil { + data.Set("FallbackToLongCode", string(*params.FallbackToLongCode)) + } + if params != nil && params.FallbackUrl != nil { + data.Set("FallbackUrl", *params.FallbackUrl) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.InboundMethod != nil { + data.Set("InboundMethod", *params.InboundMethod) + } + if params != nil && params.InboundRequestUrl != nil { + data.Set("InboundRequestUrl", *params.InboundRequestUrl) + } + if params != nil && params.MmsConverter != nil { + data.Set("MmsConverter", string(*params.MmsConverter)) + } + if params != nil && params.ScanMessageContent != nil { + data.Set("ScanMessageContent", *params.ScanMessageContent) + } + if params != nil && params.SmartEncoding != nil { + data.Set("SmartEncoding", string(*params.SmartEncoding)) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StickySender != nil { + data.Set("StickySender", string(*params.StickySender)) + } + if params != nil && params.SynchronousValidation != nil { + data.Set("SynchronousValidation", string(*params.SynchronousValidation)) + } + if params != nil && params.ValidityPeriod != nil { + data.Set("ValidityPeriod", string(*params.ValidityPeriod)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &MessagingV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateShortCodeParams Optional parameters for the method 'CreateShortCode' type CreateShortCodeParams struct { - ShortCodeSid *string `json:"ShortCodeSid,omitempty"` + ShortCodeSid *string `json:"ShortCodeSid,omitempty"` } /* @@ -220,30 +218,30 @@ CreateShortCode Method for CreateShortCode @return MessagingV1ServiceShortCode */ func (c *DefaultApiService) CreateShortCode(serviceSid string, params *CreateShortCodeParams) (*MessagingV1ServiceShortCode, error) { - path := "/v1/Services/{ServiceSid}/ShortCodes" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v1/Services/{ServiceSid}/ShortCodes" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.ShortCodeSid != nil { - data.Set("ShortCodeSid", *params.ShortCodeSid) - } + if params != nil && params.ShortCodeSid != nil { + data.Set("ShortCodeSid", *params.ShortCodeSid) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &MessagingV1ServiceShortCode{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &MessagingV1ServiceShortCode{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -252,23 +250,23 @@ DeleteAlphaSender Method for DeleteAlphaSender * @param sid The SID of the AlphaSender resource to delete. */ func (c *DefaultApiService) DeleteAlphaSender(serviceSid string, sid string) (error) { - path := "/v1/Services/{ServiceSid}/AlphaSenders/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/AlphaSenders/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -277,23 +275,23 @@ DeletePhoneNumber Method for DeletePhoneNumber * @param sid The SID of the PhoneNumber resource to delete. */ func (c *DefaultApiService) DeletePhoneNumber(serviceSid string, sid string) (error) { - path := "/v1/Services/{ServiceSid}/PhoneNumbers/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/PhoneNumbers/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -301,22 +299,22 @@ DeleteService Method for DeleteService * @param sid The SID of the Service resource to delete. */ func (c *DefaultApiService) DeleteService(sid string) (error) { - path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -325,23 +323,23 @@ DeleteShortCode Method for DeleteShortCode * @param sid The SID of the ShortCode resource to delete. */ func (c *DefaultApiService) DeleteShortCode(serviceSid string, sid string) (error) { - path := "/v1/Services/{ServiceSid}/ShortCodes/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/ShortCodes/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -351,32 +349,32 @@ FetchAlphaSender Method for FetchAlphaSender @return MessagingV1ServiceAlphaSender */ func (c *DefaultApiService) FetchAlphaSender(serviceSid string, sid string) (*MessagingV1ServiceAlphaSender, error) { - path := "/v1/Services/{ServiceSid}/AlphaSenders/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/AlphaSenders/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &MessagingV1ServiceAlphaSender{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &MessagingV1ServiceAlphaSender{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // FetchDeactivationParams Optional parameters for the method 'FetchDeactivation' type FetchDeactivationParams struct { - Date *time.Time `json:"Date,omitempty"` + Date *time.Time `json:"Date,omitempty"` } /* @@ -386,24 +384,24 @@ Fetch a list of all United States numbers that have been deactivated on a specif * @param "Date" (time.Time) - The request will return a list of all United States Phone Numbers that were deactivated on the day specified by this parameter. This date should be specified in YYYY-MM-DD format. */ func (c *DefaultApiService) FetchDeactivation(params *FetchDeactivationParams) (error) { - path := "/v1/Deactivations" + path := "/v1/Deactivations" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Date != nil { - data.Set("Date", string(*params.Date)) - } + if params != nil && params.Date != nil { + data.Set("Date", string(*params.Date)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -413,28 +411,28 @@ FetchPhoneNumber Method for FetchPhoneNumber @return MessagingV1ServicePhoneNumber */ func (c *DefaultApiService) FetchPhoneNumber(serviceSid string, sid string) (*MessagingV1ServicePhoneNumber, error) { - path := "/v1/Services/{ServiceSid}/PhoneNumbers/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/PhoneNumbers/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &MessagingV1ServicePhoneNumber{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &MessagingV1ServicePhoneNumber{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -443,27 +441,27 @@ FetchService Method for FetchService @return MessagingV1Service */ func (c *DefaultApiService) FetchService(sid string) (*MessagingV1Service, error) { - path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &MessagingV1Service{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &MessagingV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -473,32 +471,32 @@ FetchShortCode Method for FetchShortCode @return MessagingV1ServiceShortCode */ func (c *DefaultApiService) FetchShortCode(serviceSid string, sid string) (*MessagingV1ServiceShortCode, error) { - path := "/v1/Services/{ServiceSid}/ShortCodes/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/ShortCodes/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &MessagingV1ServiceShortCode{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &MessagingV1ServiceShortCode{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListAlphaSenderParams Optional parameters for the method 'ListAlphaSender' type ListAlphaSenderParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -509,34 +507,34 @@ ListAlphaSender Method for ListAlphaSender @return MessagingV1ServiceAlphaSenderReadResponse */ func (c *DefaultApiService) ListAlphaSender(serviceSid string, params *ListAlphaSenderParams) (*MessagingV1ServiceAlphaSenderReadResponse, error) { - path := "/v1/Services/{ServiceSid}/AlphaSenders" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v1/Services/{ServiceSid}/AlphaSenders" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &MessagingV1ServiceAlphaSenderReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &MessagingV1ServiceAlphaSenderReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListPhoneNumberParams Optional parameters for the method 'ListPhoneNumber' type ListPhoneNumberParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -547,34 +545,34 @@ ListPhoneNumber Method for ListPhoneNumber @return MessagingV1ServicePhoneNumberReadResponse */ func (c *DefaultApiService) ListPhoneNumber(serviceSid string, params *ListPhoneNumberParams) (*MessagingV1ServicePhoneNumberReadResponse, error) { - path := "/v1/Services/{ServiceSid}/PhoneNumbers" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v1/Services/{ServiceSid}/PhoneNumbers" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &MessagingV1ServicePhoneNumberReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &MessagingV1ServicePhoneNumberReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListServiceParams Optional parameters for the method 'ListService' type ListServiceParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -584,33 +582,33 @@ ListService Method for ListService @return MessagingV1ServiceReadResponse */ func (c *DefaultApiService) ListService(params *ListServiceParams) (*MessagingV1ServiceReadResponse, error) { - path := "/v1/Services" + path := "/v1/Services" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &MessagingV1ServiceReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &MessagingV1ServiceReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListShortCodeParams Optional parameters for the method 'ListShortCode' type ListShortCodeParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -621,47 +619,47 @@ ListShortCode Method for ListShortCode @return MessagingV1ServiceShortCodeReadResponse */ func (c *DefaultApiService) ListShortCode(serviceSid string, params *ListShortCodeParams) (*MessagingV1ServiceShortCodeReadResponse, error) { - path := "/v1/Services/{ServiceSid}/ShortCodes" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v1/Services/{ServiceSid}/ShortCodes" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &MessagingV1ServiceShortCodeReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &MessagingV1ServiceShortCodeReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateServiceParams Optional parameters for the method 'UpdateService' type UpdateServiceParams struct { - AreaCodeGeomatch *bool `json:"AreaCodeGeomatch,omitempty"` - FallbackMethod *string `json:"FallbackMethod,omitempty"` - FallbackToLongCode *bool `json:"FallbackToLongCode,omitempty"` - FallbackUrl *string `json:"FallbackUrl,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - InboundMethod *string `json:"InboundMethod,omitempty"` - InboundRequestUrl *string `json:"InboundRequestUrl,omitempty"` - MmsConverter *bool `json:"MmsConverter,omitempty"` - ScanMessageContent *string `json:"ScanMessageContent,omitempty"` - SmartEncoding *bool `json:"SmartEncoding,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StickySender *bool `json:"StickySender,omitempty"` - SynchronousValidation *bool `json:"SynchronousValidation,omitempty"` - ValidityPeriod *int32 `json:"ValidityPeriod,omitempty"` + AreaCodeGeomatch *bool `json:"AreaCodeGeomatch,omitempty"` + FallbackMethod *string `json:"FallbackMethod,omitempty"` + FallbackToLongCode *bool `json:"FallbackToLongCode,omitempty"` + FallbackUrl *string `json:"FallbackUrl,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + InboundMethod *string `json:"InboundMethod,omitempty"` + InboundRequestUrl *string `json:"InboundRequestUrl,omitempty"` + MmsConverter *bool `json:"MmsConverter,omitempty"` + ScanMessageContent *string `json:"ScanMessageContent,omitempty"` + SmartEncoding *bool `json:"SmartEncoding,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StickySender *bool `json:"StickySender,omitempty"` + SynchronousValidation *bool `json:"SynchronousValidation,omitempty"` + ValidityPeriod *int32 `json:"ValidityPeriod,omitempty"` } /* @@ -685,67 +683,67 @@ UpdateService Method for UpdateService @return MessagingV1Service */ func (c *DefaultApiService) UpdateService(sid string, params *UpdateServiceParams) (*MessagingV1Service, error) { - path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.AreaCodeGeomatch != nil { - data.Set("AreaCodeGeomatch", string(*params.AreaCodeGeomatch)) - } - if params != nil && params.FallbackMethod != nil { - data.Set("FallbackMethod", *params.FallbackMethod) - } - if params != nil && params.FallbackToLongCode != nil { - data.Set("FallbackToLongCode", string(*params.FallbackToLongCode)) - } - if params != nil && params.FallbackUrl != nil { - data.Set("FallbackUrl", *params.FallbackUrl) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.InboundMethod != nil { - data.Set("InboundMethod", *params.InboundMethod) - } - if params != nil && params.InboundRequestUrl != nil { - data.Set("InboundRequestUrl", *params.InboundRequestUrl) - } - if params != nil && params.MmsConverter != nil { - data.Set("MmsConverter", string(*params.MmsConverter)) - } - if params != nil && params.ScanMessageContent != nil { - data.Set("ScanMessageContent", *params.ScanMessageContent) - } - if params != nil && params.SmartEncoding != nil { - data.Set("SmartEncoding", string(*params.SmartEncoding)) - } - if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) - } - if params != nil && params.StickySender != nil { - data.Set("StickySender", string(*params.StickySender)) - } - if params != nil && params.SynchronousValidation != nil { - data.Set("SynchronousValidation", string(*params.SynchronousValidation)) - } - if params != nil && params.ValidityPeriod != nil { - data.Set("ValidityPeriod", string(*params.ValidityPeriod)) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &MessagingV1Service{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AreaCodeGeomatch != nil { + data.Set("AreaCodeGeomatch", string(*params.AreaCodeGeomatch)) + } + if params != nil && params.FallbackMethod != nil { + data.Set("FallbackMethod", *params.FallbackMethod) + } + if params != nil && params.FallbackToLongCode != nil { + data.Set("FallbackToLongCode", string(*params.FallbackToLongCode)) + } + if params != nil && params.FallbackUrl != nil { + data.Set("FallbackUrl", *params.FallbackUrl) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.InboundMethod != nil { + data.Set("InboundMethod", *params.InboundMethod) + } + if params != nil && params.InboundRequestUrl != nil { + data.Set("InboundRequestUrl", *params.InboundRequestUrl) + } + if params != nil && params.MmsConverter != nil { + data.Set("MmsConverter", string(*params.MmsConverter)) + } + if params != nil && params.ScanMessageContent != nil { + data.Set("ScanMessageContent", *params.ScanMessageContent) + } + if params != nil && params.SmartEncoding != nil { + data.Set("SmartEncoding", string(*params.SmartEncoding)) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StickySender != nil { + data.Set("StickySender", string(*params.StickySender)) + } + if params != nil && params.SynchronousValidation != nil { + data.Set("SynchronousValidation", string(*params.SynchronousValidation)) + } + if params != nil && params.ValidityPeriod != nil { + data.Set("ValidityPeriod", string(*params.ValidityPeriod)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &MessagingV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } diff --git a/rest/messaging/v1/response.go b/rest/messaging/v1/response.go index ed1c9d092..7c0cb9f95 100644 --- a/rest/messaging/v1/response.go +++ b/rest/messaging/v1/response.go @@ -32,16 +32,14 @@ type APIResponse struct { Payload []byte `json:"-"` } -// Response returns a new APIResponse object. -func Response(r *http.Response) *APIResponse { - +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { response := &APIResponse{Response: r} return response } -// ResponseWithError returns a new APIResponse object with the provided error message. -func ResponseWithError(errorMessage string) *APIResponse { - +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { response := &APIResponse{Message: errorMessage} return response } diff --git a/rest/monitor/v1/api_default.go b/rest/monitor/v1/api_default.go index 380aedc4a..31346da3a 100644 --- a/rest/monitor/v1/api_default.go +++ b/rest/monitor/v1/api_default.go @@ -13,22 +13,20 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type DefaultApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewDefaultApiService(client *twilio.Client) *DefaultApiService { - return &DefaultApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &DefaultApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } /* @@ -37,27 +35,27 @@ FetchAlert Method for FetchAlert @return MonitorV1AlertInstance */ func (c *DefaultApiService) FetchAlert(sid string) (*MonitorV1AlertInstance, error) { - path := "/v1/Alerts/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Alerts/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &MonitorV1AlertInstance{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &MonitorV1AlertInstance{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -66,34 +64,34 @@ FetchEvent Method for FetchEvent @return MonitorV1Event */ func (c *DefaultApiService) FetchEvent(sid string) (*MonitorV1Event, error) { - path := "/v1/Events/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Events/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &MonitorV1Event{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &MonitorV1Event{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListAlertParams Optional parameters for the method 'ListAlert' type ListAlertParams struct { - LogLevel *string `json:"LogLevel,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - EndDate *time.Time `json:"EndDate,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + LogLevel *string `json:"LogLevel,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -106,48 +104,48 @@ ListAlert Method for ListAlert @return MonitorV1AlertReadResponse */ func (c *DefaultApiService) ListAlert(params *ListAlertParams) (*MonitorV1AlertReadResponse, error) { - path := "/v1/Alerts" - - data := url.Values{} - headers := 0 - - if params != nil && params.LogLevel != nil { - data.Set("LogLevel", *params.LogLevel) - } - if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) - } - if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &MonitorV1AlertReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Alerts" + + data := url.Values{} + headers := 0 + + if params != nil && params.LogLevel != nil { + data.Set("LogLevel", *params.LogLevel) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &MonitorV1AlertReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListEventParams Optional parameters for the method 'ListEvent' type ListEventParams struct { - ActorSid *string `json:"ActorSid,omitempty"` - EventType *string `json:"EventType,omitempty"` - ResourceSid *string `json:"ResourceSid,omitempty"` - SourceIpAddress *string `json:"SourceIpAddress,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - EndDate *time.Time `json:"EndDate,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + ActorSid *string `json:"ActorSid,omitempty"` + EventType *string `json:"EventType,omitempty"` + ResourceSid *string `json:"ResourceSid,omitempty"` + SourceIpAddress *string `json:"SourceIpAddress,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -164,45 +162,45 @@ Returns a list of events in the account, sorted by event-date. @return MonitorV1EventReadResponse */ func (c *DefaultApiService) ListEvent(params *ListEventParams) (*MonitorV1EventReadResponse, error) { - path := "/v1/Events" - - data := url.Values{} - headers := 0 - - if params != nil && params.ActorSid != nil { - data.Set("ActorSid", *params.ActorSid) - } - if params != nil && params.EventType != nil { - data.Set("EventType", *params.EventType) - } - if params != nil && params.ResourceSid != nil { - data.Set("ResourceSid", *params.ResourceSid) - } - if params != nil && params.SourceIpAddress != nil { - data.Set("SourceIpAddress", *params.SourceIpAddress) - } - if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) - } - if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &MonitorV1EventReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Events" + + data := url.Values{} + headers := 0 + + if params != nil && params.ActorSid != nil { + data.Set("ActorSid", *params.ActorSid) + } + if params != nil && params.EventType != nil { + data.Set("EventType", *params.EventType) + } + if params != nil && params.ResourceSid != nil { + data.Set("ResourceSid", *params.ResourceSid) + } + if params != nil && params.SourceIpAddress != nil { + data.Set("SourceIpAddress", *params.SourceIpAddress) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &MonitorV1EventReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } diff --git a/rest/monitor/v1/response.go b/rest/monitor/v1/response.go index 145fd2f20..0b9c18f5c 100644 --- a/rest/monitor/v1/response.go +++ b/rest/monitor/v1/response.go @@ -32,16 +32,14 @@ type APIResponse struct { Payload []byte `json:"-"` } -// Response returns a new APIResponse object. -func Response(r *http.Response) *APIResponse { - +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { response := &APIResponse{Response: r} return response } -// ResponseWithError returns a new APIResponse object with the provided error message. -func ResponseWithError(errorMessage string) *APIResponse { - +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { response := &APIResponse{Message: errorMessage} return response } diff --git a/rest/notify/v1/api_default.go b/rest/notify/v1/api_default.go index 665c68697..794a711d8 100644 --- a/rest/notify/v1/api_default.go +++ b/rest/notify/v1/api_default.go @@ -13,33 +13,30 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "" - "reflect" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type DefaultApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewDefaultApiService(client *twilio.Client) *DefaultApiService { - return &DefaultApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &DefaultApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } // CreateBindingParams Optional parameters for the method 'CreateBinding' type CreateBindingParams struct { - Address *string `json:"Address,omitempty"` - BindingType *string `json:"BindingType,omitempty"` - CredentialSid *string `json:"CredentialSid,omitempty"` - Endpoint *string `json:"Endpoint,omitempty"` - Identity *string `json:"Identity,omitempty"` - NotificationProtocolVersion *string `json:"NotificationProtocolVersion,omitempty"` - Tag *[]string `json:"Tag,omitempty"` + Address *string `json:"Address,omitempty"` + BindingType *string `json:"BindingType,omitempty"` + CredentialSid *string `json:"CredentialSid,omitempty"` + Endpoint *string `json:"Endpoint,omitempty"` + Identity *string `json:"Identity,omitempty"` + NotificationProtocolVersion *string `json:"NotificationProtocolVersion,omitempty"` + Tag *[]string `json:"Tag,omitempty"` } /* @@ -56,58 +53,58 @@ CreateBinding Method for CreateBinding @return NotifyV1ServiceBinding */ func (c *DefaultApiService) CreateBinding(serviceSid string, params *CreateBindingParams) (*NotifyV1ServiceBinding, error) { - path := "/v1/Services/{ServiceSid}/Bindings" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Address != nil { - data.Set("Address", *params.Address) - } - if params != nil && params.BindingType != nil { - data.Set("BindingType", *params.BindingType) - } - if params != nil && params.CredentialSid != nil { - data.Set("CredentialSid", *params.CredentialSid) - } - if params != nil && params.Endpoint != nil { - data.Set("Endpoint", *params.Endpoint) - } - if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) - } - if params != nil && params.NotificationProtocolVersion != nil { - data.Set("NotificationProtocolVersion", *params.NotificationProtocolVersion) - } - if params != nil && params.Tag != nil { - data.Set("Tag", *params.Tag) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &NotifyV1ServiceBinding{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Services/{ServiceSid}/Bindings" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Address != nil { + data.Set("Address", *params.Address) + } + if params != nil && params.BindingType != nil { + data.Set("BindingType", *params.BindingType) + } + if params != nil && params.CredentialSid != nil { + data.Set("CredentialSid", *params.CredentialSid) + } + if params != nil && params.Endpoint != nil { + data.Set("Endpoint", *params.Endpoint) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.NotificationProtocolVersion != nil { + data.Set("NotificationProtocolVersion", *params.NotificationProtocolVersion) + } + if params != nil && params.Tag != nil { + data.Set("Tag", *params.Tag) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NotifyV1ServiceBinding{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateCredentialParams Optional parameters for the method 'CreateCredential' type CreateCredentialParams struct { - ApiKey *string `json:"ApiKey,omitempty"` - Certificate *string `json:"Certificate,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PrivateKey *string `json:"PrivateKey,omitempty"` - Sandbox *bool `json:"Sandbox,omitempty"` - Secret *string `json:"Secret,omitempty"` - Type *string `json:"Type,omitempty"` + ApiKey *string `json:"ApiKey,omitempty"` + Certificate *string `json:"Certificate,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PrivateKey *string `json:"PrivateKey,omitempty"` + Sandbox *bool `json:"Sandbox,omitempty"` + Secret *string `json:"Secret,omitempty"` + Type *string `json:"Type,omitempty"` } /* @@ -123,68 +120,68 @@ CreateCredential Method for CreateCredential @return NotifyV1Credential */ func (c *DefaultApiService) CreateCredential(params *CreateCredentialParams) (*NotifyV1Credential, error) { - path := "/v1/Credentials" - - data := url.Values{} - headers := 0 - - if params != nil && params.ApiKey != nil { - data.Set("ApiKey", *params.ApiKey) - } - if params != nil && params.Certificate != nil { - data.Set("Certificate", *params.Certificate) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.PrivateKey != nil { - data.Set("PrivateKey", *params.PrivateKey) - } - if params != nil && params.Sandbox != nil { - data.Set("Sandbox", string(*params.Sandbox)) - } - if params != nil && params.Secret != nil { - data.Set("Secret", *params.Secret) - } - if params != nil && params.Type != nil { - data.Set("Type", *params.Type) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &NotifyV1Credential{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Credentials" + + data := url.Values{} + headers := 0 + + if params != nil && params.ApiKey != nil { + data.Set("ApiKey", *params.ApiKey) + } + if params != nil && params.Certificate != nil { + data.Set("Certificate", *params.Certificate) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PrivateKey != nil { + data.Set("PrivateKey", *params.PrivateKey) + } + if params != nil && params.Sandbox != nil { + data.Set("Sandbox", string(*params.Sandbox)) + } + if params != nil && params.Secret != nil { + data.Set("Secret", *params.Secret) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NotifyV1Credential{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateNotificationParams Optional parameters for the method 'CreateNotification' type CreateNotificationParams struct { - Action *string `json:"Action,omitempty"` - Alexa *map[string]interface{} `json:"Alexa,omitempty"` - Apn *map[string]interface{} `json:"Apn,omitempty"` - Body *string `json:"Body,omitempty"` - Data *map[string]interface{} `json:"Data,omitempty"` - DeliveryCallbackUrl *string `json:"DeliveryCallbackUrl,omitempty"` - FacebookMessenger *map[string]interface{} `json:"FacebookMessenger,omitempty"` - Fcm *map[string]interface{} `json:"Fcm,omitempty"` - Gcm *map[string]interface{} `json:"Gcm,omitempty"` - Identity *[]string `json:"Identity,omitempty"` - Priority *string `json:"Priority,omitempty"` - Segment *[]string `json:"Segment,omitempty"` - Sms *map[string]interface{} `json:"Sms,omitempty"` - Sound *string `json:"Sound,omitempty"` - Tag *[]string `json:"Tag,omitempty"` - Title *string `json:"Title,omitempty"` - ToBinding *[]string `json:"ToBinding,omitempty"` - Ttl *int32 `json:"Ttl,omitempty"` + Action *string `json:"Action,omitempty"` + Alexa *map[string]interface{} `json:"Alexa,omitempty"` + Apn *map[string]interface{} `json:"Apn,omitempty"` + Body *string `json:"Body,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` + DeliveryCallbackUrl *string `json:"DeliveryCallbackUrl,omitempty"` + FacebookMessenger *map[string]interface{} `json:"FacebookMessenger,omitempty"` + Fcm *map[string]interface{} `json:"Fcm,omitempty"` + Gcm *map[string]interface{} `json:"Gcm,omitempty"` + Identity *[]string `json:"Identity,omitempty"` + Priority *string `json:"Priority,omitempty"` + Segment *[]string `json:"Segment,omitempty"` + Sms *map[string]interface{} `json:"Sms,omitempty"` + Sound *string `json:"Sound,omitempty"` + Tag *[]string `json:"Tag,omitempty"` + Title *string `json:"Title,omitempty"` + ToBinding *[]string `json:"ToBinding,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` } /* @@ -212,140 +209,140 @@ CreateNotification Method for CreateNotification @return NotifyV1ServiceNotification */ func (c *DefaultApiService) CreateNotification(serviceSid string, params *CreateNotificationParams) (*NotifyV1ServiceNotification, error) { - path := "/v1/Services/{ServiceSid}/Notifications" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Action != nil { - data.Set("Action", *params.Action) - } - if params != nil && params.Alexa != nil { - v, err := json.Marshal(params.Alexa) - - if err != nil { - return nil, err - } - - data.Set("Alexa", string(v)) - } - if params != nil && params.Apn != nil { - v, err := json.Marshal(params.Apn) - - if err != nil { - return nil, err - } - - data.Set("Apn", string(v)) - } - if params != nil && params.Body != nil { - data.Set("Body", *params.Body) - } - if params != nil && params.Data != nil { - v, err := json.Marshal(params.Data) - - if err != nil { - return nil, err - } - - data.Set("Data", string(v)) - } - if params != nil && params.DeliveryCallbackUrl != nil { - data.Set("DeliveryCallbackUrl", *params.DeliveryCallbackUrl) - } - if params != nil && params.FacebookMessenger != nil { - v, err := json.Marshal(params.FacebookMessenger) - - if err != nil { - return nil, err - } - - data.Set("FacebookMessenger", string(v)) - } - if params != nil && params.Fcm != nil { - v, err := json.Marshal(params.Fcm) - - if err != nil { - return nil, err - } - - data.Set("Fcm", string(v)) - } - if params != nil && params.Gcm != nil { - v, err := json.Marshal(params.Gcm) - - if err != nil { - return nil, err - } - - data.Set("Gcm", string(v)) - } - if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) - } - if params != nil && params.Priority != nil { - data.Set("Priority", *params.Priority) - } - if params != nil && params.Segment != nil { - data.Set("Segment", *params.Segment) - } - if params != nil && params.Sms != nil { - v, err := json.Marshal(params.Sms) - - if err != nil { - return nil, err - } - - data.Set("Sms", string(v)) - } - if params != nil && params.Sound != nil { - data.Set("Sound", *params.Sound) - } - if params != nil && params.Tag != nil { - data.Set("Tag", *params.Tag) - } - if params != nil && params.Title != nil { - data.Set("Title", *params.Title) - } - if params != nil && params.ToBinding != nil { - data.Set("ToBinding", *params.ToBinding) - } - if params != nil && params.Ttl != nil { - data.Set("Ttl", string(*params.Ttl)) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &NotifyV1ServiceNotification{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Services/{ServiceSid}/Notifications" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Action != nil { + data.Set("Action", *params.Action) + } + if params != nil && params.Alexa != nil { + v, err := json.Marshal(params.Alexa) + + if err != nil { + return nil, err + } + + data.Set("Alexa", string(v)) + } + if params != nil && params.Apn != nil { + v, err := json.Marshal(params.Apn) + + if err != nil { + return nil, err + } + + data.Set("Apn", string(v)) + } + if params != nil && params.Body != nil { + data.Set("Body", *params.Body) + } + if params != nil && params.Data != nil { + v, err := json.Marshal(params.Data) + + if err != nil { + return nil, err + } + + data.Set("Data", string(v)) + } + if params != nil && params.DeliveryCallbackUrl != nil { + data.Set("DeliveryCallbackUrl", *params.DeliveryCallbackUrl) + } + if params != nil && params.FacebookMessenger != nil { + v, err := json.Marshal(params.FacebookMessenger) + + if err != nil { + return nil, err + } + + data.Set("FacebookMessenger", string(v)) + } + if params != nil && params.Fcm != nil { + v, err := json.Marshal(params.Fcm) + + if err != nil { + return nil, err + } + + data.Set("Fcm", string(v)) + } + if params != nil && params.Gcm != nil { + v, err := json.Marshal(params.Gcm) + + if err != nil { + return nil, err + } + + data.Set("Gcm", string(v)) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.Priority != nil { + data.Set("Priority", *params.Priority) + } + if params != nil && params.Segment != nil { + data.Set("Segment", *params.Segment) + } + if params != nil && params.Sms != nil { + v, err := json.Marshal(params.Sms) + + if err != nil { + return nil, err + } + + data.Set("Sms", string(v)) + } + if params != nil && params.Sound != nil { + data.Set("Sound", *params.Sound) + } + if params != nil && params.Tag != nil { + data.Set("Tag", *params.Tag) + } + if params != nil && params.Title != nil { + data.Set("Title", *params.Title) + } + if params != nil && params.ToBinding != nil { + data.Set("ToBinding", *params.ToBinding) + } + if params != nil && params.Ttl != nil { + data.Set("Ttl", string(*params.Ttl)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NotifyV1ServiceNotification{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateServiceParams Optional parameters for the method 'CreateService' type CreateServiceParams struct { - AlexaSkillId *string `json:"AlexaSkillId,omitempty"` - ApnCredentialSid *string `json:"ApnCredentialSid,omitempty"` - DefaultAlexaNotificationProtocolVersion *string `json:"DefaultAlexaNotificationProtocolVersion,omitempty"` - DefaultApnNotificationProtocolVersion *string `json:"DefaultApnNotificationProtocolVersion,omitempty"` - DefaultFcmNotificationProtocolVersion *string `json:"DefaultFcmNotificationProtocolVersion,omitempty"` - DefaultGcmNotificationProtocolVersion *string `json:"DefaultGcmNotificationProtocolVersion,omitempty"` - DeliveryCallbackEnabled *bool `json:"DeliveryCallbackEnabled,omitempty"` - DeliveryCallbackUrl *string `json:"DeliveryCallbackUrl,omitempty"` - FacebookMessengerPageId *string `json:"FacebookMessengerPageId,omitempty"` - FcmCredentialSid *string `json:"FcmCredentialSid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - GcmCredentialSid *string `json:"GcmCredentialSid,omitempty"` - LogEnabled *bool `json:"LogEnabled,omitempty"` - MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` + AlexaSkillId *string `json:"AlexaSkillId,omitempty"` + ApnCredentialSid *string `json:"ApnCredentialSid,omitempty"` + DefaultAlexaNotificationProtocolVersion *string `json:"DefaultAlexaNotificationProtocolVersion,omitempty"` + DefaultApnNotificationProtocolVersion *string `json:"DefaultApnNotificationProtocolVersion,omitempty"` + DefaultFcmNotificationProtocolVersion *string `json:"DefaultFcmNotificationProtocolVersion,omitempty"` + DefaultGcmNotificationProtocolVersion *string `json:"DefaultGcmNotificationProtocolVersion,omitempty"` + DeliveryCallbackEnabled *bool `json:"DeliveryCallbackEnabled,omitempty"` + DeliveryCallbackUrl *string `json:"DeliveryCallbackUrl,omitempty"` + FacebookMessengerPageId *string `json:"FacebookMessengerPageId,omitempty"` + FcmCredentialSid *string `json:"FcmCredentialSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + GcmCredentialSid *string `json:"GcmCredentialSid,omitempty"` + LogEnabled *bool `json:"LogEnabled,omitempty"` + MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` } /* @@ -368,68 +365,68 @@ CreateService Method for CreateService @return NotifyV1Service */ func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*NotifyV1Service, error) { - path := "/v1/Services" - - data := url.Values{} - headers := 0 - - if params != nil && params.AlexaSkillId != nil { - data.Set("AlexaSkillId", *params.AlexaSkillId) - } - if params != nil && params.ApnCredentialSid != nil { - data.Set("ApnCredentialSid", *params.ApnCredentialSid) - } - if params != nil && params.DefaultAlexaNotificationProtocolVersion != nil { - data.Set("DefaultAlexaNotificationProtocolVersion", *params.DefaultAlexaNotificationProtocolVersion) - } - if params != nil && params.DefaultApnNotificationProtocolVersion != nil { - data.Set("DefaultApnNotificationProtocolVersion", *params.DefaultApnNotificationProtocolVersion) - } - if params != nil && params.DefaultFcmNotificationProtocolVersion != nil { - data.Set("DefaultFcmNotificationProtocolVersion", *params.DefaultFcmNotificationProtocolVersion) - } - if params != nil && params.DefaultGcmNotificationProtocolVersion != nil { - data.Set("DefaultGcmNotificationProtocolVersion", *params.DefaultGcmNotificationProtocolVersion) - } - if params != nil && params.DeliveryCallbackEnabled != nil { - data.Set("DeliveryCallbackEnabled", string(*params.DeliveryCallbackEnabled)) - } - if params != nil && params.DeliveryCallbackUrl != nil { - data.Set("DeliveryCallbackUrl", *params.DeliveryCallbackUrl) - } - if params != nil && params.FacebookMessengerPageId != nil { - data.Set("FacebookMessengerPageId", *params.FacebookMessengerPageId) - } - if params != nil && params.FcmCredentialSid != nil { - data.Set("FcmCredentialSid", *params.FcmCredentialSid) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.GcmCredentialSid != nil { - data.Set("GcmCredentialSid", *params.GcmCredentialSid) - } - if params != nil && params.LogEnabled != nil { - data.Set("LogEnabled", string(*params.LogEnabled)) - } - if params != nil && params.MessagingServiceSid != nil { - data.Set("MessagingServiceSid", *params.MessagingServiceSid) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &NotifyV1Service{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Services" + + data := url.Values{} + headers := 0 + + if params != nil && params.AlexaSkillId != nil { + data.Set("AlexaSkillId", *params.AlexaSkillId) + } + if params != nil && params.ApnCredentialSid != nil { + data.Set("ApnCredentialSid", *params.ApnCredentialSid) + } + if params != nil && params.DefaultAlexaNotificationProtocolVersion != nil { + data.Set("DefaultAlexaNotificationProtocolVersion", *params.DefaultAlexaNotificationProtocolVersion) + } + if params != nil && params.DefaultApnNotificationProtocolVersion != nil { + data.Set("DefaultApnNotificationProtocolVersion", *params.DefaultApnNotificationProtocolVersion) + } + if params != nil && params.DefaultFcmNotificationProtocolVersion != nil { + data.Set("DefaultFcmNotificationProtocolVersion", *params.DefaultFcmNotificationProtocolVersion) + } + if params != nil && params.DefaultGcmNotificationProtocolVersion != nil { + data.Set("DefaultGcmNotificationProtocolVersion", *params.DefaultGcmNotificationProtocolVersion) + } + if params != nil && params.DeliveryCallbackEnabled != nil { + data.Set("DeliveryCallbackEnabled", string(*params.DeliveryCallbackEnabled)) + } + if params != nil && params.DeliveryCallbackUrl != nil { + data.Set("DeliveryCallbackUrl", *params.DeliveryCallbackUrl) + } + if params != nil && params.FacebookMessengerPageId != nil { + data.Set("FacebookMessengerPageId", *params.FacebookMessengerPageId) + } + if params != nil && params.FcmCredentialSid != nil { + data.Set("FcmCredentialSid", *params.FcmCredentialSid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.GcmCredentialSid != nil { + data.Set("GcmCredentialSid", *params.GcmCredentialSid) + } + if params != nil && params.LogEnabled != nil { + data.Set("LogEnabled", string(*params.LogEnabled)) + } + if params != nil && params.MessagingServiceSid != nil { + data.Set("MessagingServiceSid", *params.MessagingServiceSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NotifyV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } /* @@ -438,23 +435,23 @@ DeleteBinding Method for DeleteBinding * @param sid The Twilio-provided string that uniquely identifies the Binding resource to delete. */ func (c *DefaultApiService) DeleteBinding(serviceSid string, sid string) (error) { - path := "/v1/Services/{ServiceSid}/Bindings/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Bindings/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -462,22 +459,22 @@ DeleteCredential Method for DeleteCredential * @param sid The Twilio-provided string that uniquely identifies the Credential resource to delete. */ func (c *DefaultApiService) DeleteCredential(sid string) (error) { - path := "/v1/Credentials/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Credentials/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -485,22 +482,22 @@ DeleteService Method for DeleteService * @param sid The Twilio-provided string that uniquely identifies the Service resource to delete. */ func (c *DefaultApiService) DeleteService(sid string) (error) { - path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -510,28 +507,28 @@ FetchBinding Method for FetchBinding @return NotifyV1ServiceBinding */ func (c *DefaultApiService) FetchBinding(serviceSid string, sid string) (*NotifyV1ServiceBinding, error) { - path := "/v1/Services/{ServiceSid}/Bindings/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Bindings/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &NotifyV1ServiceBinding{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &NotifyV1ServiceBinding{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -540,27 +537,27 @@ FetchCredential Method for FetchCredential @return NotifyV1Credential */ func (c *DefaultApiService) FetchCredential(sid string) (*NotifyV1Credential, error) { - path := "/v1/Credentials/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Credentials/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &NotifyV1Credential{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &NotifyV1Credential{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -569,35 +566,35 @@ FetchService Method for FetchService @return NotifyV1Service */ func (c *DefaultApiService) FetchService(sid string) (*NotifyV1Service, error) { - path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &NotifyV1Service{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &NotifyV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListBindingParams Optional parameters for the method 'ListBinding' type ListBindingParams struct { - StartDate *time.Time `json:"StartDate,omitempty"` - EndDate *time.Time `json:"EndDate,omitempty"` - Identity *[]string `json:"Identity,omitempty"` - Tag *[]string `json:"Tag,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + Identity *[]string `json:"Identity,omitempty"` + Tag *[]string `json:"Tag,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -612,46 +609,46 @@ ListBinding Method for ListBinding @return NotifyV1ServiceBindingReadResponse */ func (c *DefaultApiService) ListBinding(serviceSid string, params *ListBindingParams) (*NotifyV1ServiceBindingReadResponse, error) { - path := "/v1/Services/{ServiceSid}/Bindings" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) - } - if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) - } - if params != nil && params.Identity != nil { - data.Set("Identity", string(*params.Identity)) - } - if params != nil && params.Tag != nil { - data.Set("Tag", string(*params.Tag)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &NotifyV1ServiceBindingReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Services/{ServiceSid}/Bindings" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.Identity != nil { + data.Set("Identity", string(*params.Identity)) + } + if params != nil && params.Tag != nil { + data.Set("Tag", string(*params.Tag)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NotifyV1ServiceBindingReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListCredentialParams Optional parameters for the method 'ListCredential' type ListCredentialParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -661,34 +658,34 @@ ListCredential Method for ListCredential @return NotifyV1CredentialReadResponse */ func (c *DefaultApiService) ListCredential(params *ListCredentialParams) (*NotifyV1CredentialReadResponse, error) { - path := "/v1/Credentials" + path := "/v1/Credentials" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &NotifyV1CredentialReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &NotifyV1CredentialReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListServiceParams Optional parameters for the method 'ListService' type ListServiceParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -699,41 +696,41 @@ ListService Method for ListService @return NotifyV1ServiceReadResponse */ func (c *DefaultApiService) ListService(params *ListServiceParams) (*NotifyV1ServiceReadResponse, error) { - path := "/v1/Services" + path := "/v1/Services" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &NotifyV1ServiceReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &NotifyV1ServiceReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateCredentialParams Optional parameters for the method 'UpdateCredential' type UpdateCredentialParams struct { - ApiKey *string `json:"ApiKey,omitempty"` - Certificate *string `json:"Certificate,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PrivateKey *string `json:"PrivateKey,omitempty"` - Sandbox *bool `json:"Sandbox,omitempty"` - Secret *string `json:"Secret,omitempty"` + ApiKey *string `json:"ApiKey,omitempty"` + Certificate *string `json:"Certificate,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PrivateKey *string `json:"PrivateKey,omitempty"` + Sandbox *bool `json:"Sandbox,omitempty"` + Secret *string `json:"Secret,omitempty"` } /* @@ -749,62 +746,62 @@ UpdateCredential Method for UpdateCredential @return NotifyV1Credential */ func (c *DefaultApiService) UpdateCredential(sid string, params *UpdateCredentialParams) (*NotifyV1Credential, error) { - path := "/v1/Credentials/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.ApiKey != nil { - data.Set("ApiKey", *params.ApiKey) - } - if params != nil && params.Certificate != nil { - data.Set("Certificate", *params.Certificate) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.PrivateKey != nil { - data.Set("PrivateKey", *params.PrivateKey) - } - if params != nil && params.Sandbox != nil { - data.Set("Sandbox", string(*params.Sandbox)) - } - if params != nil && params.Secret != nil { - data.Set("Secret", *params.Secret) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &NotifyV1Credential{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Credentials/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ApiKey != nil { + data.Set("ApiKey", *params.ApiKey) + } + if params != nil && params.Certificate != nil { + data.Set("Certificate", *params.Certificate) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PrivateKey != nil { + data.Set("PrivateKey", *params.PrivateKey) + } + if params != nil && params.Sandbox != nil { + data.Set("Sandbox", string(*params.Sandbox)) + } + if params != nil && params.Secret != nil { + data.Set("Secret", *params.Secret) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NotifyV1Credential{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateServiceParams Optional parameters for the method 'UpdateService' type UpdateServiceParams struct { - AlexaSkillId *string `json:"AlexaSkillId,omitempty"` - ApnCredentialSid *string `json:"ApnCredentialSid,omitempty"` - DefaultAlexaNotificationProtocolVersion *string `json:"DefaultAlexaNotificationProtocolVersion,omitempty"` - DefaultApnNotificationProtocolVersion *string `json:"DefaultApnNotificationProtocolVersion,omitempty"` - DefaultFcmNotificationProtocolVersion *string `json:"DefaultFcmNotificationProtocolVersion,omitempty"` - DefaultGcmNotificationProtocolVersion *string `json:"DefaultGcmNotificationProtocolVersion,omitempty"` - DeliveryCallbackEnabled *bool `json:"DeliveryCallbackEnabled,omitempty"` - DeliveryCallbackUrl *string `json:"DeliveryCallbackUrl,omitempty"` - FacebookMessengerPageId *string `json:"FacebookMessengerPageId,omitempty"` - FcmCredentialSid *string `json:"FcmCredentialSid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - GcmCredentialSid *string `json:"GcmCredentialSid,omitempty"` - LogEnabled *bool `json:"LogEnabled,omitempty"` - MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` + AlexaSkillId *string `json:"AlexaSkillId,omitempty"` + ApnCredentialSid *string `json:"ApnCredentialSid,omitempty"` + DefaultAlexaNotificationProtocolVersion *string `json:"DefaultAlexaNotificationProtocolVersion,omitempty"` + DefaultApnNotificationProtocolVersion *string `json:"DefaultApnNotificationProtocolVersion,omitempty"` + DefaultFcmNotificationProtocolVersion *string `json:"DefaultFcmNotificationProtocolVersion,omitempty"` + DefaultGcmNotificationProtocolVersion *string `json:"DefaultGcmNotificationProtocolVersion,omitempty"` + DeliveryCallbackEnabled *bool `json:"DeliveryCallbackEnabled,omitempty"` + DeliveryCallbackUrl *string `json:"DeliveryCallbackUrl,omitempty"` + FacebookMessengerPageId *string `json:"FacebookMessengerPageId,omitempty"` + FcmCredentialSid *string `json:"FcmCredentialSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + GcmCredentialSid *string `json:"GcmCredentialSid,omitempty"` + LogEnabled *bool `json:"LogEnabled,omitempty"` + MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` } /* @@ -828,67 +825,67 @@ UpdateService Method for UpdateService @return NotifyV1Service */ func (c *DefaultApiService) UpdateService(sid string, params *UpdateServiceParams) (*NotifyV1Service, error) { - path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.AlexaSkillId != nil { - data.Set("AlexaSkillId", *params.AlexaSkillId) - } - if params != nil && params.ApnCredentialSid != nil { - data.Set("ApnCredentialSid", *params.ApnCredentialSid) - } - if params != nil && params.DefaultAlexaNotificationProtocolVersion != nil { - data.Set("DefaultAlexaNotificationProtocolVersion", *params.DefaultAlexaNotificationProtocolVersion) - } - if params != nil && params.DefaultApnNotificationProtocolVersion != nil { - data.Set("DefaultApnNotificationProtocolVersion", *params.DefaultApnNotificationProtocolVersion) - } - if params != nil && params.DefaultFcmNotificationProtocolVersion != nil { - data.Set("DefaultFcmNotificationProtocolVersion", *params.DefaultFcmNotificationProtocolVersion) - } - if params != nil && params.DefaultGcmNotificationProtocolVersion != nil { - data.Set("DefaultGcmNotificationProtocolVersion", *params.DefaultGcmNotificationProtocolVersion) - } - if params != nil && params.DeliveryCallbackEnabled != nil { - data.Set("DeliveryCallbackEnabled", string(*params.DeliveryCallbackEnabled)) - } - if params != nil && params.DeliveryCallbackUrl != nil { - data.Set("DeliveryCallbackUrl", *params.DeliveryCallbackUrl) - } - if params != nil && params.FacebookMessengerPageId != nil { - data.Set("FacebookMessengerPageId", *params.FacebookMessengerPageId) - } - if params != nil && params.FcmCredentialSid != nil { - data.Set("FcmCredentialSid", *params.FcmCredentialSid) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.GcmCredentialSid != nil { - data.Set("GcmCredentialSid", *params.GcmCredentialSid) - } - if params != nil && params.LogEnabled != nil { - data.Set("LogEnabled", string(*params.LogEnabled)) - } - if params != nil && params.MessagingServiceSid != nil { - data.Set("MessagingServiceSid", *params.MessagingServiceSid) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &NotifyV1Service{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AlexaSkillId != nil { + data.Set("AlexaSkillId", *params.AlexaSkillId) + } + if params != nil && params.ApnCredentialSid != nil { + data.Set("ApnCredentialSid", *params.ApnCredentialSid) + } + if params != nil && params.DefaultAlexaNotificationProtocolVersion != nil { + data.Set("DefaultAlexaNotificationProtocolVersion", *params.DefaultAlexaNotificationProtocolVersion) + } + if params != nil && params.DefaultApnNotificationProtocolVersion != nil { + data.Set("DefaultApnNotificationProtocolVersion", *params.DefaultApnNotificationProtocolVersion) + } + if params != nil && params.DefaultFcmNotificationProtocolVersion != nil { + data.Set("DefaultFcmNotificationProtocolVersion", *params.DefaultFcmNotificationProtocolVersion) + } + if params != nil && params.DefaultGcmNotificationProtocolVersion != nil { + data.Set("DefaultGcmNotificationProtocolVersion", *params.DefaultGcmNotificationProtocolVersion) + } + if params != nil && params.DeliveryCallbackEnabled != nil { + data.Set("DeliveryCallbackEnabled", string(*params.DeliveryCallbackEnabled)) + } + if params != nil && params.DeliveryCallbackUrl != nil { + data.Set("DeliveryCallbackUrl", *params.DeliveryCallbackUrl) + } + if params != nil && params.FacebookMessengerPageId != nil { + data.Set("FacebookMessengerPageId", *params.FacebookMessengerPageId) + } + if params != nil && params.FcmCredentialSid != nil { + data.Set("FcmCredentialSid", *params.FcmCredentialSid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.GcmCredentialSid != nil { + data.Set("GcmCredentialSid", *params.GcmCredentialSid) + } + if params != nil && params.LogEnabled != nil { + data.Set("LogEnabled", string(*params.LogEnabled)) + } + if params != nil && params.MessagingServiceSid != nil { + data.Set("MessagingServiceSid", *params.MessagingServiceSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NotifyV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } diff --git a/rest/notify/v1/response.go b/rest/notify/v1/response.go index 1b2eb7402..15e8340b3 100644 --- a/rest/notify/v1/response.go +++ b/rest/notify/v1/response.go @@ -32,16 +32,14 @@ type APIResponse struct { Payload []byte `json:"-"` } -// Response returns a new APIResponse object. -func Response(r *http.Response) *APIResponse { - +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { response := &APIResponse{Response: r} return response } -// ResponseWithError returns a new APIResponse object with the provided error message. -func ResponseWithError(errorMessage string) *APIResponse { - +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { response := &APIResponse{Message: errorMessage} return response } diff --git a/rest/numbers/v2/api_default.go b/rest/numbers/v2/api_default.go index ac6ddc960..3f299c112 100644 --- a/rest/numbers/v2/api_default.go +++ b/rest/numbers/v2/api_default.go @@ -13,32 +13,30 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type DefaultApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewDefaultApiService(client *twilio.Client) *DefaultApiService { - return &DefaultApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &DefaultApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } // CreateBundleParams Optional parameters for the method 'CreateBundle' type CreateBundleParams struct { - Email *string `json:"Email,omitempty"` - EndUserType *string `json:"EndUserType,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - IsoCountry *string `json:"IsoCountry,omitempty"` - NumberType *string `json:"NumberType,omitempty"` - RegulationSid *string `json:"RegulationSid,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` + Email *string `json:"Email,omitempty"` + EndUserType *string `json:"EndUserType,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IsoCountry *string `json:"IsoCountry,omitempty"` + NumberType *string `json:"NumberType,omitempty"` + RegulationSid *string `json:"RegulationSid,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` } /* @@ -55,53 +53,53 @@ Create a new Bundle. @return NumbersV2RegulatoryComplianceBundle */ func (c *DefaultApiService) CreateBundle(params *CreateBundleParams) (*NumbersV2RegulatoryComplianceBundle, error) { - path := "/v2/RegulatoryCompliance/Bundles" - - data := url.Values{} - headers := 0 - - if params != nil && params.Email != nil { - data.Set("Email", *params.Email) - } - if params != nil && params.EndUserType != nil { - data.Set("EndUserType", *params.EndUserType) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.IsoCountry != nil { - data.Set("IsoCountry", *params.IsoCountry) - } - if params != nil && params.NumberType != nil { - data.Set("NumberType", *params.NumberType) - } - if params != nil && params.RegulationSid != nil { - data.Set("RegulationSid", *params.RegulationSid) - } - if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &NumbersV2RegulatoryComplianceBundle{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v2/RegulatoryCompliance/Bundles" + + data := url.Values{} + headers := 0 + + if params != nil && params.Email != nil { + data.Set("Email", *params.Email) + } + if params != nil && params.EndUserType != nil { + data.Set("EndUserType", *params.EndUserType) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.IsoCountry != nil { + data.Set("IsoCountry", *params.IsoCountry) + } + if params != nil && params.NumberType != nil { + data.Set("NumberType", *params.NumberType) + } + if params != nil && params.RegulationSid != nil { + data.Set("RegulationSid", *params.RegulationSid) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NumbersV2RegulatoryComplianceBundle{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateEndUserParams Optional parameters for the method 'CreateEndUser' type CreateEndUserParams struct { - Attributes *map[string]interface{} `json:"Attributes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Type *string `json:"Type,omitempty"` + Attributes *map[string]interface{} `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Type *string `json:"Type,omitempty"` } /* @@ -114,41 +112,41 @@ Create a new End User. @return NumbersV2RegulatoryComplianceEndUser */ func (c *DefaultApiService) CreateEndUser(params *CreateEndUserParams) (*NumbersV2RegulatoryComplianceEndUser, error) { - path := "/v2/RegulatoryCompliance/EndUsers" + path := "/v2/RegulatoryCompliance/EndUsers" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Attributes != nil { - v, err := json.Marshal(params.Attributes) + if params != nil && params.Attributes != nil { + v, err := json.Marshal(params.Attributes) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("Attributes", string(v)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Type != nil { - data.Set("Type", *params.Type) - } + data.Set("Attributes", string(v)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &NumbersV2RegulatoryComplianceEndUser{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &NumbersV2RegulatoryComplianceEndUser{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -157,31 +155,31 @@ CreateEvaluation Method for CreateEvaluation @return NumbersV2RegulatoryComplianceBundleEvaluation */ func (c *DefaultApiService) CreateEvaluation(bundleSid string) (*NumbersV2RegulatoryComplianceBundleEvaluation, error) { - path := "/v2/RegulatoryCompliance/Bundles/{BundleSid}/Evaluations" - path = strings.Replace(path, "{"+"BundleSid"+"}", bundleSid, -1) + path := "/v2/RegulatoryCompliance/Bundles/{BundleSid}/Evaluations" + path = strings.Replace(path, "{"+"BundleSid"+"}", bundleSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &NumbersV2RegulatoryComplianceBundleEvaluation{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &NumbersV2RegulatoryComplianceBundleEvaluation{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateItemAssignmentParams Optional parameters for the method 'CreateItemAssignment' type CreateItemAssignmentParams struct { - ObjectSid *string `json:"ObjectSid,omitempty"` + ObjectSid *string `json:"ObjectSid,omitempty"` } /* @@ -193,36 +191,36 @@ Create a new Assigned Item. @return NumbersV2RegulatoryComplianceBundleItemAssignment */ func (c *DefaultApiService) CreateItemAssignment(bundleSid string, params *CreateItemAssignmentParams) (*NumbersV2RegulatoryComplianceBundleItemAssignment, error) { - path := "/v2/RegulatoryCompliance/Bundles/{BundleSid}/ItemAssignments" - path = strings.Replace(path, "{"+"BundleSid"+"}", bundleSid, -1) + path := "/v2/RegulatoryCompliance/Bundles/{BundleSid}/ItemAssignments" + path = strings.Replace(path, "{"+"BundleSid"+"}", bundleSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.ObjectSid != nil { - data.Set("ObjectSid", *params.ObjectSid) - } + if params != nil && params.ObjectSid != nil { + data.Set("ObjectSid", *params.ObjectSid) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &NumbersV2RegulatoryComplianceBundleItemAssignment{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &NumbersV2RegulatoryComplianceBundleItemAssignment{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateSupportingDocumentParams Optional parameters for the method 'CreateSupportingDocument' type CreateSupportingDocumentParams struct { - Attributes *map[string]interface{} `json:"Attributes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Type *string `json:"Type,omitempty"` + Attributes *map[string]interface{} `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Type *string `json:"Type,omitempty"` } /* @@ -235,41 +233,41 @@ Create a new Supporting Document. @return NumbersV2RegulatoryComplianceSupportingDocument */ func (c *DefaultApiService) CreateSupportingDocument(params *CreateSupportingDocumentParams) (*NumbersV2RegulatoryComplianceSupportingDocument, error) { - path := "/v2/RegulatoryCompliance/SupportingDocuments" + path := "/v2/RegulatoryCompliance/SupportingDocuments" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Attributes != nil { - v, err := json.Marshal(params.Attributes) + if params != nil && params.Attributes != nil { + v, err := json.Marshal(params.Attributes) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("Attributes", string(v)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Type != nil { - data.Set("Type", *params.Type) - } + data.Set("Attributes", string(v)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &NumbersV2RegulatoryComplianceSupportingDocument{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &NumbersV2RegulatoryComplianceSupportingDocument{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -278,22 +276,22 @@ Delete a specific Bundle. * @param sid The unique string that we created to identify the Bundle resource. */ func (c *DefaultApiService) DeleteBundle(sid string) (error) { - path := "/v2/RegulatoryCompliance/Bundles/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/RegulatoryCompliance/Bundles/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -302,22 +300,22 @@ Delete a specific End User. * @param sid The unique string created by Twilio to identify the End User resource. */ func (c *DefaultApiService) DeleteEndUser(sid string) (error) { - path := "/v2/RegulatoryCompliance/EndUsers/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/RegulatoryCompliance/EndUsers/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -327,23 +325,23 @@ Remove an Assignment Item Instance. * @param sid The unique string that we created to identify the Identity resource. */ func (c *DefaultApiService) DeleteItemAssignment(bundleSid string, sid string) (error) { - path := "/v2/RegulatoryCompliance/Bundles/{BundleSid}/ItemAssignments/{Sid}" - path = strings.Replace(path, "{"+"BundleSid"+"}", bundleSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/RegulatoryCompliance/Bundles/{BundleSid}/ItemAssignments/{Sid}" + path = strings.Replace(path, "{"+"BundleSid"+"}", bundleSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -352,22 +350,22 @@ Delete a specific Supporting Document. * @param sid The unique string created by Twilio to identify the Supporting Document resource. */ func (c *DefaultApiService) DeleteSupportingDocument(sid string) (error) { - path := "/v2/RegulatoryCompliance/SupportingDocuments/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/RegulatoryCompliance/SupportingDocuments/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -377,27 +375,27 @@ Fetch a specific Bundle instance. @return NumbersV2RegulatoryComplianceBundle */ func (c *DefaultApiService) FetchBundle(sid string) (*NumbersV2RegulatoryComplianceBundle, error) { - path := "/v2/RegulatoryCompliance/Bundles/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/RegulatoryCompliance/Bundles/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &NumbersV2RegulatoryComplianceBundle{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &NumbersV2RegulatoryComplianceBundle{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -407,27 +405,27 @@ Fetch specific End User Instance. @return NumbersV2RegulatoryComplianceEndUser */ func (c *DefaultApiService) FetchEndUser(sid string) (*NumbersV2RegulatoryComplianceEndUser, error) { - path := "/v2/RegulatoryCompliance/EndUsers/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/RegulatoryCompliance/EndUsers/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &NumbersV2RegulatoryComplianceEndUser{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &NumbersV2RegulatoryComplianceEndUser{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -437,27 +435,27 @@ Fetch a specific End-User Type Instance. @return NumbersV2RegulatoryComplianceEndUserType */ func (c *DefaultApiService) FetchEndUserType(sid string) (*NumbersV2RegulatoryComplianceEndUserType, error) { - path := "/v2/RegulatoryCompliance/EndUserTypes/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/RegulatoryCompliance/EndUserTypes/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &NumbersV2RegulatoryComplianceEndUserType{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &NumbersV2RegulatoryComplianceEndUserType{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -468,28 +466,28 @@ Fetch specific Evaluation Instance. @return NumbersV2RegulatoryComplianceBundleEvaluation */ func (c *DefaultApiService) FetchEvaluation(bundleSid string, sid string) (*NumbersV2RegulatoryComplianceBundleEvaluation, error) { - path := "/v2/RegulatoryCompliance/Bundles/{BundleSid}/Evaluations/{Sid}" - path = strings.Replace(path, "{"+"BundleSid"+"}", bundleSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/RegulatoryCompliance/Bundles/{BundleSid}/Evaluations/{Sid}" + path = strings.Replace(path, "{"+"BundleSid"+"}", bundleSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &NumbersV2RegulatoryComplianceBundleEvaluation{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &NumbersV2RegulatoryComplianceBundleEvaluation{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -500,28 +498,28 @@ Fetch specific Assigned Item Instance. @return NumbersV2RegulatoryComplianceBundleItemAssignment */ func (c *DefaultApiService) FetchItemAssignment(bundleSid string, sid string) (*NumbersV2RegulatoryComplianceBundleItemAssignment, error) { - path := "/v2/RegulatoryCompliance/Bundles/{BundleSid}/ItemAssignments/{Sid}" - path = strings.Replace(path, "{"+"BundleSid"+"}", bundleSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/RegulatoryCompliance/Bundles/{BundleSid}/ItemAssignments/{Sid}" + path = strings.Replace(path, "{"+"BundleSid"+"}", bundleSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &NumbersV2RegulatoryComplianceBundleItemAssignment{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &NumbersV2RegulatoryComplianceBundleItemAssignment{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -531,27 +529,27 @@ Fetch specific Regulation Instance. @return NumbersV2RegulatoryComplianceRegulation */ func (c *DefaultApiService) FetchRegulation(sid string) (*NumbersV2RegulatoryComplianceRegulation, error) { - path := "/v2/RegulatoryCompliance/Regulations/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/RegulatoryCompliance/Regulations/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &NumbersV2RegulatoryComplianceRegulation{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &NumbersV2RegulatoryComplianceRegulation{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -561,27 +559,27 @@ Fetch specific Supporting Document Instance. @return NumbersV2RegulatoryComplianceSupportingDocument */ func (c *DefaultApiService) FetchSupportingDocument(sid string) (*NumbersV2RegulatoryComplianceSupportingDocument, error) { - path := "/v2/RegulatoryCompliance/SupportingDocuments/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/RegulatoryCompliance/SupportingDocuments/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &NumbersV2RegulatoryComplianceSupportingDocument{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &NumbersV2RegulatoryComplianceSupportingDocument{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -591,36 +589,36 @@ Fetch a specific Supporting Document Type Instance. @return NumbersV2RegulatoryComplianceSupportingDocumentType */ func (c *DefaultApiService) FetchSupportingDocumentType(sid string) (*NumbersV2RegulatoryComplianceSupportingDocumentType, error) { - path := "/v2/RegulatoryCompliance/SupportingDocumentTypes/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/RegulatoryCompliance/SupportingDocumentTypes/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &NumbersV2RegulatoryComplianceSupportingDocumentType{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &NumbersV2RegulatoryComplianceSupportingDocumentType{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListBundleParams Optional parameters for the method 'ListBundle' type ListBundleParams struct { - Status *string `json:"Status,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - RegulationSid *string `json:"RegulationSid,omitempty"` - IsoCountry *string `json:"IsoCountry,omitempty"` - NumberType *string `json:"NumberType,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Status *string `json:"Status,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + RegulationSid *string `json:"RegulationSid,omitempty"` + IsoCountry *string `json:"IsoCountry,omitempty"` + NumberType *string `json:"NumberType,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -636,48 +634,48 @@ Retrieve a list of all Bundles for an account. @return NumbersV2RegulatoryComplianceBundleReadResponse */ func (c *DefaultApiService) ListBundle(params *ListBundleParams) (*NumbersV2RegulatoryComplianceBundleReadResponse, error) { - path := "/v2/RegulatoryCompliance/Bundles" - - data := url.Values{} - headers := 0 - - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.RegulationSid != nil { - data.Set("RegulationSid", *params.RegulationSid) - } - if params != nil && params.IsoCountry != nil { - data.Set("IsoCountry", *params.IsoCountry) - } - if params != nil && params.NumberType != nil { - data.Set("NumberType", *params.NumberType) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &NumbersV2RegulatoryComplianceBundleReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v2/RegulatoryCompliance/Bundles" + + data := url.Values{} + headers := 0 + + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.RegulationSid != nil { + data.Set("RegulationSid", *params.RegulationSid) + } + if params != nil && params.IsoCountry != nil { + data.Set("IsoCountry", *params.IsoCountry) + } + if params != nil && params.NumberType != nil { + data.Set("NumberType", *params.NumberType) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NumbersV2RegulatoryComplianceBundleReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListEndUserParams Optional parameters for the method 'ListEndUser' type ListEndUserParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -688,33 +686,33 @@ Retrieve a list of all End User for an account. @return NumbersV2RegulatoryComplianceEndUserReadResponse */ func (c *DefaultApiService) ListEndUser(params *ListEndUserParams) (*NumbersV2RegulatoryComplianceEndUserReadResponse, error) { - path := "/v2/RegulatoryCompliance/EndUsers" + path := "/v2/RegulatoryCompliance/EndUsers" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &NumbersV2RegulatoryComplianceEndUserReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &NumbersV2RegulatoryComplianceEndUserReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListEndUserTypeParams Optional parameters for the method 'ListEndUserType' type ListEndUserTypeParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -725,33 +723,33 @@ Retrieve a list of all End-User Types. @return NumbersV2RegulatoryComplianceEndUserTypeReadResponse */ func (c *DefaultApiService) ListEndUserType(params *ListEndUserTypeParams) (*NumbersV2RegulatoryComplianceEndUserTypeReadResponse, error) { - path := "/v2/RegulatoryCompliance/EndUserTypes" + path := "/v2/RegulatoryCompliance/EndUserTypes" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &NumbersV2RegulatoryComplianceEndUserTypeReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &NumbersV2RegulatoryComplianceEndUserTypeReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListEvaluationParams Optional parameters for the method 'ListEvaluation' type ListEvaluationParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -763,34 +761,34 @@ Retrieve a list of Evaluations associated to the Bundle resource. @return NumbersV2RegulatoryComplianceBundleEvaluationReadResponse */ func (c *DefaultApiService) ListEvaluation(bundleSid string, params *ListEvaluationParams) (*NumbersV2RegulatoryComplianceBundleEvaluationReadResponse, error) { - path := "/v2/RegulatoryCompliance/Bundles/{BundleSid}/Evaluations" - path = strings.Replace(path, "{"+"BundleSid"+"}", bundleSid, -1) + path := "/v2/RegulatoryCompliance/Bundles/{BundleSid}/Evaluations" + path = strings.Replace(path, "{"+"BundleSid"+"}", bundleSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &NumbersV2RegulatoryComplianceBundleEvaluationReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &NumbersV2RegulatoryComplianceBundleEvaluationReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListItemAssignmentParams Optional parameters for the method 'ListItemAssignment' type ListItemAssignmentParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -802,37 +800,37 @@ Retrieve a list of all Assigned Items for an account. @return NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse */ func (c *DefaultApiService) ListItemAssignment(bundleSid string, params *ListItemAssignmentParams) (*NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse, error) { - path := "/v2/RegulatoryCompliance/Bundles/{BundleSid}/ItemAssignments" - path = strings.Replace(path, "{"+"BundleSid"+"}", bundleSid, -1) + path := "/v2/RegulatoryCompliance/Bundles/{BundleSid}/ItemAssignments" + path = strings.Replace(path, "{"+"BundleSid"+"}", bundleSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListRegulationParams Optional parameters for the method 'ListRegulation' type ListRegulationParams struct { - EndUserType *string `json:"EndUserType,omitempty"` - IsoCountry *string `json:"IsoCountry,omitempty"` - NumberType *string `json:"NumberType,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + EndUserType *string `json:"EndUserType,omitempty"` + IsoCountry *string `json:"IsoCountry,omitempty"` + NumberType *string `json:"NumberType,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -846,42 +844,42 @@ Retrieve a list of all Regulations. @return NumbersV2RegulatoryComplianceRegulationReadResponse */ func (c *DefaultApiService) ListRegulation(params *ListRegulationParams) (*NumbersV2RegulatoryComplianceRegulationReadResponse, error) { - path := "/v2/RegulatoryCompliance/Regulations" - - data := url.Values{} - headers := 0 - - if params != nil && params.EndUserType != nil { - data.Set("EndUserType", *params.EndUserType) - } - if params != nil && params.IsoCountry != nil { - data.Set("IsoCountry", *params.IsoCountry) - } - if params != nil && params.NumberType != nil { - data.Set("NumberType", *params.NumberType) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &NumbersV2RegulatoryComplianceRegulationReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v2/RegulatoryCompliance/Regulations" + + data := url.Values{} + headers := 0 + + if params != nil && params.EndUserType != nil { + data.Set("EndUserType", *params.EndUserType) + } + if params != nil && params.IsoCountry != nil { + data.Set("IsoCountry", *params.IsoCountry) + } + if params != nil && params.NumberType != nil { + data.Set("NumberType", *params.NumberType) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NumbersV2RegulatoryComplianceRegulationReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListSupportingDocumentParams Optional parameters for the method 'ListSupportingDocument' type ListSupportingDocumentParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -892,33 +890,33 @@ Retrieve a list of all Supporting Document for an account. @return NumbersV2RegulatoryComplianceSupportingDocumentReadResponse */ func (c *DefaultApiService) ListSupportingDocument(params *ListSupportingDocumentParams) (*NumbersV2RegulatoryComplianceSupportingDocumentReadResponse, error) { - path := "/v2/RegulatoryCompliance/SupportingDocuments" + path := "/v2/RegulatoryCompliance/SupportingDocuments" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &NumbersV2RegulatoryComplianceSupportingDocumentReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &NumbersV2RegulatoryComplianceSupportingDocumentReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListSupportingDocumentTypeParams Optional parameters for the method 'ListSupportingDocumentType' type ListSupportingDocumentTypeParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -929,36 +927,36 @@ Retrieve a list of all Supporting Document Types. @return NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse */ func (c *DefaultApiService) ListSupportingDocumentType(params *ListSupportingDocumentTypeParams) (*NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse, error) { - path := "/v2/RegulatoryCompliance/SupportingDocumentTypes" + path := "/v2/RegulatoryCompliance/SupportingDocumentTypes" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateBundleParams Optional parameters for the method 'UpdateBundle' type UpdateBundleParams struct { - Email *string `json:"Email,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Status *string `json:"Status,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` + Email *string `json:"Email,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Status *string `json:"Status,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` } /* @@ -973,44 +971,44 @@ Updates a Bundle in an account. @return NumbersV2RegulatoryComplianceBundle */ func (c *DefaultApiService) UpdateBundle(sid string, params *UpdateBundleParams) (*NumbersV2RegulatoryComplianceBundle, error) { - path := "/v2/RegulatoryCompliance/Bundles/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Email != nil { - data.Set("Email", *params.Email) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &NumbersV2RegulatoryComplianceBundle{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v2/RegulatoryCompliance/Bundles/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Email != nil { + data.Set("Email", *params.Email) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &NumbersV2RegulatoryComplianceBundle{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateEndUserParams Optional parameters for the method 'UpdateEndUser' type UpdateEndUserParams struct { - Attributes *map[string]interface{} `json:"Attributes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` + Attributes *map[string]interface{} `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -1023,44 +1021,44 @@ Update an existing End User. @return NumbersV2RegulatoryComplianceEndUser */ func (c *DefaultApiService) UpdateEndUser(sid string, params *UpdateEndUserParams) (*NumbersV2RegulatoryComplianceEndUser, error) { - path := "/v2/RegulatoryCompliance/EndUsers/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/RegulatoryCompliance/EndUsers/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Attributes != nil { - v, err := json.Marshal(params.Attributes) + if params != nil && params.Attributes != nil { + v, err := json.Marshal(params.Attributes) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("Attributes", string(v)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + data.Set("Attributes", string(v)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &NumbersV2RegulatoryComplianceEndUser{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &NumbersV2RegulatoryComplianceEndUser{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateSupportingDocumentParams Optional parameters for the method 'UpdateSupportingDocument' type UpdateSupportingDocumentParams struct { - Attributes *map[string]interface{} `json:"Attributes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` + Attributes *map[string]interface{} `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -1073,37 +1071,37 @@ Update an existing Supporting Document. @return NumbersV2RegulatoryComplianceSupportingDocument */ func (c *DefaultApiService) UpdateSupportingDocument(sid string, params *UpdateSupportingDocumentParams) (*NumbersV2RegulatoryComplianceSupportingDocument, error) { - path := "/v2/RegulatoryCompliance/SupportingDocuments/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/RegulatoryCompliance/SupportingDocuments/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Attributes != nil { - v, err := json.Marshal(params.Attributes) + if params != nil && params.Attributes != nil { + v, err := json.Marshal(params.Attributes) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("Attributes", string(v)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + data.Set("Attributes", string(v)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &NumbersV2RegulatoryComplianceSupportingDocument{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &NumbersV2RegulatoryComplianceSupportingDocument{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } diff --git a/rest/numbers/v2/response.go b/rest/numbers/v2/response.go index b0c258329..311737f6e 100644 --- a/rest/numbers/v2/response.go +++ b/rest/numbers/v2/response.go @@ -32,16 +32,14 @@ type APIResponse struct { Payload []byte `json:"-"` } -// Response returns a new APIResponse object. -func Response(r *http.Response) *APIResponse { - +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { response := &APIResponse{Response: r} return response } -// ResponseWithError returns a new APIResponse object with the provided error message. -func ResponseWithError(errorMessage string) *APIResponse { - +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { response := &APIResponse{Message: errorMessage} return response } diff --git a/rest/preview/api_default.go b/rest/preview/api_default.go index 0be57ff65..7a5899569 100644 --- a/rest/preview/api_default.go +++ b/rest/preview/api_default.go @@ -13,33 +13,31 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type DefaultApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewDefaultApiService(client *twilio.Client) *DefaultApiService { - return &DefaultApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &DefaultApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } // CreateAssistantParams Optional parameters for the method 'CreateAssistant' type CreateAssistantParams struct { - CallbackEvents *string `json:"CallbackEvents,omitempty"` - CallbackUrl *string `json:"CallbackUrl,omitempty"` - FallbackActions *map[string]interface{} `json:"FallbackActions,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - InitiationActions *map[string]interface{} `json:"InitiationActions,omitempty"` - LogQueries *bool `json:"LogQueries,omitempty"` - StyleSheet *map[string]interface{} `json:"StyleSheet,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + CallbackEvents *string `json:"CallbackEvents,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + FallbackActions *map[string]interface{} `json:"FallbackActions,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + InitiationActions *map[string]interface{} `json:"InitiationActions,omitempty"` + LogQueries *bool `json:"LogQueries,omitempty"` + StyleSheet *map[string]interface{} `json:"StyleSheet,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -56,77 +54,77 @@ CreateAssistant Method for CreateAssistant @return PreviewUnderstandAssistant */ func (c *DefaultApiService) CreateAssistant(params *CreateAssistantParams) (*PreviewUnderstandAssistant, error) { - path := "/understand/Assistants" - - data := url.Values{} - headers := 0 - - if params != nil && params.CallbackEvents != nil { - data.Set("CallbackEvents", *params.CallbackEvents) - } - if params != nil && params.CallbackUrl != nil { - data.Set("CallbackUrl", *params.CallbackUrl) - } - if params != nil && params.FallbackActions != nil { - v, err := json.Marshal(params.FallbackActions) - - if err != nil { - return nil, err - } - - data.Set("FallbackActions", string(v)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.InitiationActions != nil { - v, err := json.Marshal(params.InitiationActions) - - if err != nil { - return nil, err - } - - data.Set("InitiationActions", string(v)) - } - if params != nil && params.LogQueries != nil { - data.Set("LogQueries", string(*params.LogQueries)) - } - if params != nil && params.StyleSheet != nil { - v, err := json.Marshal(params.StyleSheet) - - if err != nil { - return nil, err - } - - data.Set("StyleSheet", string(v)) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &PreviewUnderstandAssistant{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/understand/Assistants" + + data := url.Values{} + headers := 0 + + if params != nil && params.CallbackEvents != nil { + data.Set("CallbackEvents", *params.CallbackEvents) + } + if params != nil && params.CallbackUrl != nil { + data.Set("CallbackUrl", *params.CallbackUrl) + } + if params != nil && params.FallbackActions != nil { + v, err := json.Marshal(params.FallbackActions) + + if err != nil { + return nil, err + } + + data.Set("FallbackActions", string(v)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.InitiationActions != nil { + v, err := json.Marshal(params.InitiationActions) + + if err != nil { + return nil, err + } + + data.Set("InitiationActions", string(v)) + } + if params != nil && params.LogQueries != nil { + data.Set("LogQueries", string(*params.LogQueries)) + } + if params != nil && params.StyleSheet != nil { + v, err := json.Marshal(params.StyleSheet) + + if err != nil { + return nil, err + } + + data.Set("StyleSheet", string(v)) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateAuthorizationDocumentParams Optional parameters for the method 'CreateAuthorizationDocument' type CreateAuthorizationDocumentParams struct { - AddressSid *string `json:"AddressSid,omitempty"` - CcEmails *[]string `json:"CcEmails,omitempty"` - ContactPhoneNumber *string `json:"ContactPhoneNumber,omitempty"` - ContactTitle *string `json:"ContactTitle,omitempty"` - Email *string `json:"Email,omitempty"` - HostedNumberOrderSids *[]string `json:"HostedNumberOrderSids,omitempty"` + AddressSid *string `json:"AddressSid,omitempty"` + CcEmails *[]string `json:"CcEmails,omitempty"` + ContactPhoneNumber *string `json:"ContactPhoneNumber,omitempty"` + ContactTitle *string `json:"ContactTitle,omitempty"` + Email *string `json:"Email,omitempty"` + HostedNumberOrderSids *[]string `json:"HostedNumberOrderSids,omitempty"` } /* @@ -142,50 +140,50 @@ Create an AuthorizationDocument for authorizing the hosting of phone number capa @return PreviewHostedNumbersAuthorizationDocument */ func (c *DefaultApiService) CreateAuthorizationDocument(params *CreateAuthorizationDocumentParams) (*PreviewHostedNumbersAuthorizationDocument, error) { - path := "/HostedNumbers/AuthorizationDocuments" - - data := url.Values{} - headers := 0 - - if params != nil && params.AddressSid != nil { - data.Set("AddressSid", *params.AddressSid) - } - if params != nil && params.CcEmails != nil { - data.Set("CcEmails", *params.CcEmails) - } - if params != nil && params.ContactPhoneNumber != nil { - data.Set("ContactPhoneNumber", *params.ContactPhoneNumber) - } - if params != nil && params.ContactTitle != nil { - data.Set("ContactTitle", *params.ContactTitle) - } - if params != nil && params.Email != nil { - data.Set("Email", *params.Email) - } - if params != nil && params.HostedNumberOrderSids != nil { - data.Set("HostedNumberOrderSids", *params.HostedNumberOrderSids) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &PreviewHostedNumbersAuthorizationDocument{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/HostedNumbers/AuthorizationDocuments" + + data := url.Values{} + headers := 0 + + if params != nil && params.AddressSid != nil { + data.Set("AddressSid", *params.AddressSid) + } + if params != nil && params.CcEmails != nil { + data.Set("CcEmails", *params.CcEmails) + } + if params != nil && params.ContactPhoneNumber != nil { + data.Set("ContactPhoneNumber", *params.ContactPhoneNumber) + } + if params != nil && params.ContactTitle != nil { + data.Set("ContactTitle", *params.ContactTitle) + } + if params != nil && params.Email != nil { + data.Set("Email", *params.Email) + } + if params != nil && params.HostedNumberOrderSids != nil { + data.Set("HostedNumberOrderSids", *params.HostedNumberOrderSids) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewHostedNumbersAuthorizationDocument{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateCertificateParams Optional parameters for the method 'CreateCertificate' type CreateCertificateParams struct { - CertificateData *string `json:"CertificateData,omitempty"` - DeviceSid *string `json:"DeviceSid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` + CertificateData *string `json:"CertificateData,omitempty"` + DeviceSid *string `json:"DeviceSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -199,40 +197,40 @@ Enroll a new Certificate credential to the Fleet, optionally giving it a friendl @return PreviewDeployedDevicesFleetCertificate */ func (c *DefaultApiService) CreateCertificate(fleetSid string, params *CreateCertificateParams) (*PreviewDeployedDevicesFleetCertificate, error) { - path := "/DeployedDevices/Fleets/{FleetSid}/Certificates" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path := "/DeployedDevices/Fleets/{FleetSid}/Certificates" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.CertificateData != nil { - data.Set("CertificateData", *params.CertificateData) - } - if params != nil && params.DeviceSid != nil { - data.Set("DeviceSid", *params.DeviceSid) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + if params != nil && params.CertificateData != nil { + data.Set("CertificateData", *params.CertificateData) + } + if params != nil && params.DeviceSid != nil { + data.Set("DeviceSid", *params.DeviceSid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewDeployedDevicesFleetCertificate{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewDeployedDevicesFleetCertificate{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateChannelParams Optional parameters for the method 'CreateChannel' type CreateChannelParams struct { - PhoneNumberSid *string `json:"PhoneNumberSid,omitempty"` + PhoneNumberSid *string `json:"PhoneNumberSid,omitempty"` } /* @@ -244,40 +242,40 @@ Associate a channel to a branded channel @return PreviewTrustedCommsBrandedChannelChannel */ func (c *DefaultApiService) CreateChannel(brandedChannelSid string, params *CreateChannelParams) (*PreviewTrustedCommsBrandedChannelChannel, error) { - path := "/TrustedComms/BrandedChannels/{BrandedChannelSid}/Channels" - path = strings.Replace(path, "{"+"BrandedChannelSid"+"}", brandedChannelSid, -1) + path := "/TrustedComms/BrandedChannels/{BrandedChannelSid}/Channels" + path = strings.Replace(path, "{"+"BrandedChannelSid"+"}", brandedChannelSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PhoneNumberSid != nil { - data.Set("PhoneNumberSid", *params.PhoneNumberSid) - } + if params != nil && params.PhoneNumberSid != nil { + data.Set("PhoneNumberSid", *params.PhoneNumberSid) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewTrustedCommsBrandedChannelChannel{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewTrustedCommsBrandedChannelChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateCommandParams Optional parameters for the method 'CreateCommand' type CreateCommandParams struct { - CallbackMethod *string `json:"CallbackMethod,omitempty"` - CallbackUrl *string `json:"CallbackUrl,omitempty"` - Command *string `json:"Command,omitempty"` - CommandMode *string `json:"CommandMode,omitempty"` - Device *string `json:"Device,omitempty"` - IncludeSid *string `json:"IncludeSid,omitempty"` - Sim *string `json:"Sim,omitempty"` + CallbackMethod *string `json:"CallbackMethod,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + Command *string `json:"Command,omitempty"` + CommandMode *string `json:"CommandMode,omitempty"` + Device *string `json:"Device,omitempty"` + IncludeSid *string `json:"IncludeSid,omitempty"` + Sim *string `json:"Sim,omitempty"` } /* @@ -293,52 +291,52 @@ CreateCommand Method for CreateCommand @return PreviewWirelessCommand */ func (c *DefaultApiService) CreateCommand(params *CreateCommandParams) (*PreviewWirelessCommand, error) { - path := "/wireless/Commands" - - data := url.Values{} - headers := 0 - - if params != nil && params.CallbackMethod != nil { - data.Set("CallbackMethod", *params.CallbackMethod) - } - if params != nil && params.CallbackUrl != nil { - data.Set("CallbackUrl", *params.CallbackUrl) - } - if params != nil && params.Command != nil { - data.Set("Command", *params.Command) - } - if params != nil && params.CommandMode != nil { - data.Set("CommandMode", *params.CommandMode) - } - if params != nil && params.Device != nil { - data.Set("Device", *params.Device) - } - if params != nil && params.IncludeSid != nil { - data.Set("IncludeSid", *params.IncludeSid) - } - if params != nil && params.Sim != nil { - data.Set("Sim", *params.Sim) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &PreviewWirelessCommand{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/wireless/Commands" + + data := url.Values{} + headers := 0 + + if params != nil && params.CallbackMethod != nil { + data.Set("CallbackMethod", *params.CallbackMethod) + } + if params != nil && params.CallbackUrl != nil { + data.Set("CallbackUrl", *params.CallbackUrl) + } + if params != nil && params.Command != nil { + data.Set("Command", *params.Command) + } + if params != nil && params.CommandMode != nil { + data.Set("CommandMode", *params.CommandMode) + } + if params != nil && params.Device != nil { + data.Set("Device", *params.Device) + } + if params != nil && params.IncludeSid != nil { + data.Set("IncludeSid", *params.IncludeSid) + } + if params != nil && params.Sim != nil { + data.Set("Sim", *params.Sim) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewWirelessCommand{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateDeploymentParams Optional parameters for the method 'CreateDeployment' type CreateDeploymentParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - SyncServiceSid *string `json:"SyncServiceSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + SyncServiceSid *string `json:"SyncServiceSid,omitempty"` } /* @@ -351,41 +349,41 @@ Create a new Deployment in the Fleet, optionally giving it a friendly name and l @return PreviewDeployedDevicesFleetDeployment */ func (c *DefaultApiService) CreateDeployment(fleetSid string, params *CreateDeploymentParams) (*PreviewDeployedDevicesFleetDeployment, error) { - path := "/DeployedDevices/Fleets/{FleetSid}/Deployments" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path := "/DeployedDevices/Fleets/{FleetSid}/Deployments" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.SyncServiceSid != nil { - data.Set("SyncServiceSid", *params.SyncServiceSid) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.SyncServiceSid != nil { + data.Set("SyncServiceSid", *params.SyncServiceSid) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewDeployedDevicesFleetDeployment{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewDeployedDevicesFleetDeployment{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateDeviceParams Optional parameters for the method 'CreateDevice' type CreateDeviceParams struct { - DeploymentSid *string `json:"DeploymentSid,omitempty"` - Enabled *bool `json:"Enabled,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Identity *string `json:"Identity,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + DeploymentSid *string `json:"DeploymentSid,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Identity *string `json:"Identity,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -401,47 +399,47 @@ Create a new Device in the Fleet, optionally giving it a unique name, friendly n @return PreviewDeployedDevicesFleetDevice */ func (c *DefaultApiService) CreateDevice(fleetSid string, params *CreateDeviceParams) (*PreviewDeployedDevicesFleetDevice, error) { - path := "/DeployedDevices/Fleets/{FleetSid}/Devices" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.DeploymentSid != nil { - data.Set("DeploymentSid", *params.DeploymentSid) - } - if params != nil && params.Enabled != nil { - data.Set("Enabled", string(*params.Enabled)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &PreviewDeployedDevicesFleetDevice{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/DeployedDevices/Fleets/{FleetSid}/Devices" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.DeploymentSid != nil { + data.Set("DeploymentSid", *params.DeploymentSid) + } + if params != nil && params.Enabled != nil { + data.Set("Enabled", string(*params.Enabled)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewDeployedDevicesFleetDevice{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateDocumentParams Optional parameters for the method 'CreateDocument' type CreateDocumentParams struct { - Data *map[string]interface{} `json:"Data,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -453,48 +451,48 @@ CreateDocument Method for CreateDocument @return PreviewSyncServiceDocument */ func (c *DefaultApiService) CreateDocument(serviceSid string, params *CreateDocumentParams) (*PreviewSyncServiceDocument, error) { - path := "/Sync/Services/{ServiceSid}/Documents" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/Sync/Services/{ServiceSid}/Documents" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Data != nil { - v, err := json.Marshal(params.Data) + if params != nil && params.Data != nil { + v, err := json.Marshal(params.Data) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("Data", string(v)) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } + data.Set("Data", string(v)) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewSyncServiceDocument{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewSyncServiceDocument{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateExportCustomJobParams Optional parameters for the method 'CreateExportCustomJob' type CreateExportCustomJobParams struct { - Email *string `json:"Email,omitempty"` - EndDay *string `json:"EndDay,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - StartDay *string `json:"StartDay,omitempty"` - WebhookMethod *string `json:"WebhookMethod,omitempty"` - WebhookUrl *string `json:"WebhookUrl,omitempty"` + Email *string `json:"Email,omitempty"` + EndDay *string `json:"EndDay,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + StartDay *string `json:"StartDay,omitempty"` + WebhookMethod *string `json:"WebhookMethod,omitempty"` + WebhookUrl *string `json:"WebhookUrl,omitempty"` } /* @@ -510,50 +508,50 @@ CreateExportCustomJob Method for CreateExportCustomJob @return PreviewBulkExportsExportExportCustomJob */ func (c *DefaultApiService) CreateExportCustomJob(resourceType string, params *CreateExportCustomJobParams) (*PreviewBulkExportsExportExportCustomJob, error) { - path := "/BulkExports/Exports/{ResourceType}/Jobs" - path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Email != nil { - data.Set("Email", *params.Email) - } - if params != nil && params.EndDay != nil { - data.Set("EndDay", *params.EndDay) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.StartDay != nil { - data.Set("StartDay", *params.StartDay) - } - if params != nil && params.WebhookMethod != nil { - data.Set("WebhookMethod", *params.WebhookMethod) - } - if params != nil && params.WebhookUrl != nil { - data.Set("WebhookUrl", *params.WebhookUrl) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &PreviewBulkExportsExportExportCustomJob{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/BulkExports/Exports/{ResourceType}/Jobs" + path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Email != nil { + data.Set("Email", *params.Email) + } + if params != nil && params.EndDay != nil { + data.Set("EndDay", *params.EndDay) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.StartDay != nil { + data.Set("StartDay", *params.StartDay) + } + if params != nil && params.WebhookMethod != nil { + data.Set("WebhookMethod", *params.WebhookMethod) + } + if params != nil && params.WebhookUrl != nil { + data.Set("WebhookUrl", *params.WebhookUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewBulkExportsExportExportCustomJob{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateFieldParams Optional parameters for the method 'CreateField' type CreateFieldParams struct { - FieldType *string `json:"FieldType,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + FieldType *string `json:"FieldType,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -566,39 +564,39 @@ CreateField Method for CreateField @return PreviewUnderstandAssistantTaskField */ func (c *DefaultApiService) CreateField(assistantSid string, taskSid string, params *CreateFieldParams) (*PreviewUnderstandAssistantTaskField, error) { - path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FieldType != nil { - data.Set("FieldType", *params.FieldType) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } + if params != nil && params.FieldType != nil { + data.Set("FieldType", *params.FieldType) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistantTaskField{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistantTaskField{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateFieldTypeParams Optional parameters for the method 'CreateFieldType' type CreateFieldTypeParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -610,39 +608,39 @@ CreateFieldType Method for CreateFieldType @return PreviewUnderstandAssistantFieldType */ func (c *DefaultApiService) CreateFieldType(assistantSid string, params *CreateFieldTypeParams) (*PreviewUnderstandAssistantFieldType, error) { - path := "/understand/Assistants/{AssistantSid}/FieldTypes" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path := "/understand/Assistants/{AssistantSid}/FieldTypes" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistantFieldType{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistantFieldType{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateFieldValueParams Optional parameters for the method 'CreateFieldValue' type CreateFieldValueParams struct { - Language *string `json:"Language,omitempty"` - SynonymOf *string `json:"SynonymOf,omitempty"` - Value *string `json:"Value,omitempty"` + Language *string `json:"Language,omitempty"` + SynonymOf *string `json:"SynonymOf,omitempty"` + Value *string `json:"Value,omitempty"` } /* @@ -656,41 +654,41 @@ CreateFieldValue Method for CreateFieldValue @return PreviewUnderstandAssistantFieldTypeFieldValue */ func (c *DefaultApiService) CreateFieldValue(assistantSid string, fieldTypeSid string, params *CreateFieldValueParams) (*PreviewUnderstandAssistantFieldTypeFieldValue, error) { - path := "/understand/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"FieldTypeSid"+"}", fieldTypeSid, -1) + path := "/understand/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"FieldTypeSid"+"}", fieldTypeSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Language != nil { - data.Set("Language", *params.Language) - } - if params != nil && params.SynonymOf != nil { - data.Set("SynonymOf", *params.SynonymOf) - } - if params != nil && params.Value != nil { - data.Set("Value", *params.Value) - } + if params != nil && params.Language != nil { + data.Set("Language", *params.Language) + } + if params != nil && params.SynonymOf != nil { + data.Set("SynonymOf", *params.SynonymOf) + } + if params != nil && params.Value != nil { + data.Set("Value", *params.Value) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistantFieldTypeFieldValue{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistantFieldTypeFieldValue{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateFleetParams Optional parameters for the method 'CreateFleet' type CreateFleetParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -701,49 +699,49 @@ Create a new Fleet for scoping of deployed devices within your account. @return PreviewDeployedDevicesFleet */ func (c *DefaultApiService) CreateFleet(params *CreateFleetParams) (*PreviewDeployedDevicesFleet, error) { - path := "/DeployedDevices/Fleets" + path := "/DeployedDevices/Fleets" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewDeployedDevicesFleet{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewDeployedDevicesFleet{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateHostedNumberOrderParams Optional parameters for the method 'CreateHostedNumberOrder' type CreateHostedNumberOrderParams struct { - AccountSid *string `json:"AccountSid,omitempty"` - AddressSid *string `json:"AddressSid,omitempty"` - CcEmails *[]string `json:"CcEmails,omitempty"` - Email *string `json:"Email,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PhoneNumber *string `json:"PhoneNumber,omitempty"` - SmsApplicationSid *string `json:"SmsApplicationSid,omitempty"` - SmsCapability *bool `json:"SmsCapability,omitempty"` - SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` - SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` - SmsMethod *string `json:"SmsMethod,omitempty"` - SmsUrl *string `json:"SmsUrl,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - StatusCallbackUrl *string `json:"StatusCallbackUrl,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` - VerificationDocumentSid *string `json:"VerificationDocumentSid,omitempty"` - VerificationType *string `json:"VerificationType,omitempty"` + AccountSid *string `json:"AccountSid,omitempty"` + AddressSid *string `json:"AddressSid,omitempty"` + CcEmails *[]string `json:"CcEmails,omitempty"` + Email *string `json:"Email,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + SmsApplicationSid *string `json:"SmsApplicationSid,omitempty"` + SmsCapability *bool `json:"SmsCapability,omitempty"` + SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` + SmsMethod *string `json:"SmsMethod,omitempty"` + SmsUrl *string `json:"SmsUrl,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + StatusCallbackUrl *string `json:"StatusCallbackUrl,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + VerificationDocumentSid *string `json:"VerificationDocumentSid,omitempty"` + VerificationType *string `json:"VerificationType,omitempty"` } /* @@ -770,84 +768,84 @@ Host a phone number's capability on Twilio's platform. @return PreviewHostedNumbersHostedNumberOrder */ func (c *DefaultApiService) CreateHostedNumberOrder(params *CreateHostedNumberOrderParams) (*PreviewHostedNumbersHostedNumberOrder, error) { - path := "/HostedNumbers/HostedNumberOrders" - - data := url.Values{} - headers := 0 - - if params != nil && params.AccountSid != nil { - data.Set("AccountSid", *params.AccountSid) - } - if params != nil && params.AddressSid != nil { - data.Set("AddressSid", *params.AddressSid) - } - if params != nil && params.CcEmails != nil { - data.Set("CcEmails", *params.CcEmails) - } - if params != nil && params.Email != nil { - data.Set("Email", *params.Email) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.PhoneNumber != nil { - data.Set("PhoneNumber", *params.PhoneNumber) - } - if params != nil && params.SmsApplicationSid != nil { - data.Set("SmsApplicationSid", *params.SmsApplicationSid) - } - if params != nil && params.SmsCapability != nil { - data.Set("SmsCapability", string(*params.SmsCapability)) - } - if params != nil && params.SmsFallbackMethod != nil { - data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) - } - if params != nil && params.SmsFallbackUrl != nil { - data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) - } - if params != nil && params.SmsMethod != nil { - data.Set("SmsMethod", *params.SmsMethod) - } - if params != nil && params.SmsUrl != nil { - data.Set("SmsUrl", *params.SmsUrl) - } - if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) - } - if params != nil && params.StatusCallbackUrl != nil { - data.Set("StatusCallbackUrl", *params.StatusCallbackUrl) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } - if params != nil && params.VerificationDocumentSid != nil { - data.Set("VerificationDocumentSid", *params.VerificationDocumentSid) - } - if params != nil && params.VerificationType != nil { - data.Set("VerificationType", *params.VerificationType) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &PreviewHostedNumbersHostedNumberOrder{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/HostedNumbers/HostedNumberOrders" + + data := url.Values{} + headers := 0 + + if params != nil && params.AccountSid != nil { + data.Set("AccountSid", *params.AccountSid) + } + if params != nil && params.AddressSid != nil { + data.Set("AddressSid", *params.AddressSid) + } + if params != nil && params.CcEmails != nil { + data.Set("CcEmails", *params.CcEmails) + } + if params != nil && params.Email != nil { + data.Set("Email", *params.Email) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PhoneNumber != nil { + data.Set("PhoneNumber", *params.PhoneNumber) + } + if params != nil && params.SmsApplicationSid != nil { + data.Set("SmsApplicationSid", *params.SmsApplicationSid) + } + if params != nil && params.SmsCapability != nil { + data.Set("SmsCapability", string(*params.SmsCapability)) + } + if params != nil && params.SmsFallbackMethod != nil { + data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) + } + if params != nil && params.SmsFallbackUrl != nil { + data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) + } + if params != nil && params.SmsMethod != nil { + data.Set("SmsMethod", *params.SmsMethod) + } + if params != nil && params.SmsUrl != nil { + data.Set("SmsUrl", *params.SmsUrl) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.StatusCallbackUrl != nil { + data.Set("StatusCallbackUrl", *params.StatusCallbackUrl) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + if params != nil && params.VerificationDocumentSid != nil { + data.Set("VerificationDocumentSid", *params.VerificationDocumentSid) + } + if params != nil && params.VerificationType != nil { + data.Set("VerificationType", *params.VerificationType) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewHostedNumbersHostedNumberOrder{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateInstalledAddOnParams Optional parameters for the method 'CreateInstalledAddOn' type CreateInstalledAddOnParams struct { - AcceptTermsOfService *bool `json:"AcceptTermsOfService,omitempty"` - AvailableAddOnSid *string `json:"AvailableAddOnSid,omitempty"` - Configuration *map[string]interface{} `json:"Configuration,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + AcceptTermsOfService *bool `json:"AcceptTermsOfService,omitempty"` + AvailableAddOnSid *string `json:"AvailableAddOnSid,omitempty"` + Configuration *map[string]interface{} `json:"Configuration,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -861,49 +859,49 @@ Install an Add-on for the Account specified. @return PreviewMarketplaceInstalledAddOn */ func (c *DefaultApiService) CreateInstalledAddOn(params *CreateInstalledAddOnParams) (*PreviewMarketplaceInstalledAddOn, error) { - path := "/marketplace/InstalledAddOns" + path := "/marketplace/InstalledAddOns" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.AcceptTermsOfService != nil { - data.Set("AcceptTermsOfService", string(*params.AcceptTermsOfService)) - } - if params != nil && params.AvailableAddOnSid != nil { - data.Set("AvailableAddOnSid", *params.AvailableAddOnSid) - } - if params != nil && params.Configuration != nil { - v, err := json.Marshal(params.Configuration) + if params != nil && params.AcceptTermsOfService != nil { + data.Set("AcceptTermsOfService", string(*params.AcceptTermsOfService)) + } + if params != nil && params.AvailableAddOnSid != nil { + data.Set("AvailableAddOnSid", *params.AvailableAddOnSid) + } + if params != nil && params.Configuration != nil { + v, err := json.Marshal(params.Configuration) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("Configuration", string(v)) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } + data.Set("Configuration", string(v)) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewMarketplaceInstalledAddOn{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewMarketplaceInstalledAddOn{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateKeyParams Optional parameters for the method 'CreateKey' type CreateKeyParams struct { - DeviceSid *string `json:"DeviceSid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` + DeviceSid *string `json:"DeviceSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -916,38 +914,38 @@ Create a new Key credential in the Fleet, optionally giving it a friendly name a @return PreviewDeployedDevicesFleetKey */ func (c *DefaultApiService) CreateKey(fleetSid string, params *CreateKeyParams) (*PreviewDeployedDevicesFleetKey, error) { - path := "/DeployedDevices/Fleets/{FleetSid}/Keys" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path := "/DeployedDevices/Fleets/{FleetSid}/Keys" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.DeviceSid != nil { - data.Set("DeviceSid", *params.DeviceSid) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + if params != nil && params.DeviceSid != nil { + data.Set("DeviceSid", *params.DeviceSid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewDeployedDevicesFleetKey{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewDeployedDevicesFleetKey{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateModelBuildParams Optional parameters for the method 'CreateModelBuild' type CreateModelBuildParams struct { - StatusCallback *string `json:"StatusCallback,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -959,41 +957,41 @@ CreateModelBuild Method for CreateModelBuild @return PreviewUnderstandAssistantModelBuild */ func (c *DefaultApiService) CreateModelBuild(assistantSid string, params *CreateModelBuildParams) (*PreviewUnderstandAssistantModelBuild, error) { - path := "/understand/Assistants/{AssistantSid}/ModelBuilds" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path := "/understand/Assistants/{AssistantSid}/ModelBuilds" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistantModelBuild{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistantModelBuild{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateQueryParams Optional parameters for the method 'CreateQuery' type CreateQueryParams struct { - Field *string `json:"Field,omitempty"` - Language *string `json:"Language,omitempty"` - ModelBuild *string `json:"ModelBuild,omitempty"` - Query *string `json:"Query,omitempty"` - Tasks *string `json:"Tasks,omitempty"` + Field *string `json:"Field,omitempty"` + Language *string `json:"Language,omitempty"` + ModelBuild *string `json:"ModelBuild,omitempty"` + Query *string `json:"Query,omitempty"` + Tasks *string `json:"Tasks,omitempty"` } /* @@ -1008,55 +1006,55 @@ CreateQuery Method for CreateQuery @return PreviewUnderstandAssistantQuery */ func (c *DefaultApiService) CreateQuery(assistantSid string, params *CreateQueryParams) (*PreviewUnderstandAssistantQuery, error) { - path := "/understand/Assistants/{AssistantSid}/Queries" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Field != nil { - data.Set("Field", *params.Field) - } - if params != nil && params.Language != nil { - data.Set("Language", *params.Language) - } - if params != nil && params.ModelBuild != nil { - data.Set("ModelBuild", *params.ModelBuild) - } - if params != nil && params.Query != nil { - data.Set("Query", *params.Query) - } - if params != nil && params.Tasks != nil { - data.Set("Tasks", *params.Tasks) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &PreviewUnderstandAssistantQuery{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/understand/Assistants/{AssistantSid}/Queries" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Field != nil { + data.Set("Field", *params.Field) + } + if params != nil && params.Language != nil { + data.Set("Language", *params.Language) + } + if params != nil && params.ModelBuild != nil { + data.Set("ModelBuild", *params.ModelBuild) + } + if params != nil && params.Query != nil { + data.Set("Query", *params.Query) + } + if params != nil && params.Tasks != nil { + data.Set("Tasks", *params.Tasks) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistantQuery{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateRatePlanParams Optional parameters for the method 'CreateRatePlan' type CreateRatePlanParams struct { - CommandsEnabled *bool `json:"CommandsEnabled,omitempty"` - DataEnabled *bool `json:"DataEnabled,omitempty"` - DataLimit *int32 `json:"DataLimit,omitempty"` - DataMetering *string `json:"DataMetering,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - InternationalRoaming *[]string `json:"InternationalRoaming,omitempty"` - MessagingEnabled *bool `json:"MessagingEnabled,omitempty"` - NationalRoamingEnabled *bool `json:"NationalRoamingEnabled,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` - VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` + CommandsEnabled *bool `json:"CommandsEnabled,omitempty"` + DataEnabled *bool `json:"DataEnabled,omitempty"` + DataLimit *int32 `json:"DataLimit,omitempty"` + DataMetering *string `json:"DataMetering,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + InternationalRoaming *[]string `json:"InternationalRoaming,omitempty"` + MessagingEnabled *bool `json:"MessagingEnabled,omitempty"` + NationalRoamingEnabled *bool `json:"NationalRoamingEnabled,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` } /* @@ -1075,62 +1073,62 @@ CreateRatePlan Method for CreateRatePlan @return PreviewWirelessRatePlan */ func (c *DefaultApiService) CreateRatePlan(params *CreateRatePlanParams) (*PreviewWirelessRatePlan, error) { - path := "/wireless/RatePlans" - - data := url.Values{} - headers := 0 - - if params != nil && params.CommandsEnabled != nil { - data.Set("CommandsEnabled", string(*params.CommandsEnabled)) - } - if params != nil && params.DataEnabled != nil { - data.Set("DataEnabled", string(*params.DataEnabled)) - } - if params != nil && params.DataLimit != nil { - data.Set("DataLimit", string(*params.DataLimit)) - } - if params != nil && params.DataMetering != nil { - data.Set("DataMetering", *params.DataMetering) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.InternationalRoaming != nil { - data.Set("InternationalRoaming", *params.InternationalRoaming) - } - if params != nil && params.MessagingEnabled != nil { - data.Set("MessagingEnabled", string(*params.MessagingEnabled)) - } - if params != nil && params.NationalRoamingEnabled != nil { - data.Set("NationalRoamingEnabled", string(*params.NationalRoamingEnabled)) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } - if params != nil && params.VoiceEnabled != nil { - data.Set("VoiceEnabled", string(*params.VoiceEnabled)) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &PreviewWirelessRatePlan{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/wireless/RatePlans" + + data := url.Values{} + headers := 0 + + if params != nil && params.CommandsEnabled != nil { + data.Set("CommandsEnabled", string(*params.CommandsEnabled)) + } + if params != nil && params.DataEnabled != nil { + data.Set("DataEnabled", string(*params.DataEnabled)) + } + if params != nil && params.DataLimit != nil { + data.Set("DataLimit", string(*params.DataLimit)) + } + if params != nil && params.DataMetering != nil { + data.Set("DataMetering", *params.DataMetering) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.InternationalRoaming != nil { + data.Set("InternationalRoaming", *params.InternationalRoaming) + } + if params != nil && params.MessagingEnabled != nil { + data.Set("MessagingEnabled", string(*params.MessagingEnabled)) + } + if params != nil && params.NationalRoamingEnabled != nil { + data.Set("NationalRoamingEnabled", string(*params.NationalRoamingEnabled)) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + if params != nil && params.VoiceEnabled != nil { + data.Set("VoiceEnabled", string(*params.VoiceEnabled)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewWirelessRatePlan{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateSampleParams Optional parameters for the method 'CreateSample' type CreateSampleParams struct { - Language *string `json:"Language,omitempty"` - SourceChannel *string `json:"SourceChannel,omitempty"` - TaggedText *string `json:"TaggedText,omitempty"` + Language *string `json:"Language,omitempty"` + SourceChannel *string `json:"SourceChannel,omitempty"` + TaggedText *string `json:"TaggedText,omitempty"` } /* @@ -1144,44 +1142,44 @@ CreateSample Method for CreateSample @return PreviewUnderstandAssistantTaskSample */ func (c *DefaultApiService) CreateSample(assistantSid string, taskSid string, params *CreateSampleParams) (*PreviewUnderstandAssistantTaskSample, error) { - path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Language != nil { - data.Set("Language", *params.Language) - } - if params != nil && params.SourceChannel != nil { - data.Set("SourceChannel", *params.SourceChannel) - } - if params != nil && params.TaggedText != nil { - data.Set("TaggedText", *params.TaggedText) - } + if params != nil && params.Language != nil { + data.Set("Language", *params.Language) + } + if params != nil && params.SourceChannel != nil { + data.Set("SourceChannel", *params.SourceChannel) + } + if params != nil && params.TaggedText != nil { + data.Set("TaggedText", *params.TaggedText) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistantTaskSample{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistantTaskSample{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateServiceParams Optional parameters for the method 'CreateService' type CreateServiceParams struct { - AclEnabled *bool `json:"AclEnabled,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - ReachabilityWebhooksEnabled *bool `json:"ReachabilityWebhooksEnabled,omitempty"` - WebhookUrl *string `json:"WebhookUrl,omitempty"` + AclEnabled *bool `json:"AclEnabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + ReachabilityWebhooksEnabled *bool `json:"ReachabilityWebhooksEnabled,omitempty"` + WebhookUrl *string `json:"WebhookUrl,omitempty"` } /* @@ -1194,42 +1192,42 @@ CreateService Method for CreateService @return PreviewSyncService */ func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*PreviewSyncService, error) { - path := "/Sync/Services" + path := "/Sync/Services" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.AclEnabled != nil { - data.Set("AclEnabled", string(*params.AclEnabled)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.ReachabilityWebhooksEnabled != nil { - data.Set("ReachabilityWebhooksEnabled", string(*params.ReachabilityWebhooksEnabled)) - } - if params != nil && params.WebhookUrl != nil { - data.Set("WebhookUrl", *params.WebhookUrl) - } + if params != nil && params.AclEnabled != nil { + data.Set("AclEnabled", string(*params.AclEnabled)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.ReachabilityWebhooksEnabled != nil { + data.Set("ReachabilityWebhooksEnabled", string(*params.ReachabilityWebhooksEnabled)) + } + if params != nil && params.WebhookUrl != nil { + data.Set("WebhookUrl", *params.WebhookUrl) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewSyncService{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewSyncService{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateSyncListParams Optional parameters for the method 'CreateSyncList' type CreateSyncListParams struct { - UniqueName *string `json:"UniqueName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -1240,34 +1238,34 @@ CreateSyncList Method for CreateSyncList @return PreviewSyncServiceSyncList */ func (c *DefaultApiService) CreateSyncList(serviceSid string, params *CreateSyncListParams) (*PreviewSyncServiceSyncList, error) { - path := "/Sync/Services/{ServiceSid}/Lists" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/Sync/Services/{ServiceSid}/Lists" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewSyncServiceSyncList{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewSyncServiceSyncList{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateSyncListItemParams Optional parameters for the method 'CreateSyncListItem' type CreateSyncListItemParams struct { - Data *map[string]interface{} `json:"Data,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` } /* @@ -1279,41 +1277,41 @@ CreateSyncListItem Method for CreateSyncListItem @return PreviewSyncServiceSyncListSyncListItem */ func (c *DefaultApiService) CreateSyncListItem(serviceSid string, listSid string, params *CreateSyncListItemParams) (*PreviewSyncServiceSyncListSyncListItem, error) { - path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Items" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Items" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Data != nil { - v, err := json.Marshal(params.Data) + if params != nil && params.Data != nil { + v, err := json.Marshal(params.Data) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("Data", string(v)) - } + data.Set("Data", string(v)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewSyncServiceSyncListSyncListItem{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewSyncServiceSyncListSyncListItem{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateSyncMapParams Optional parameters for the method 'CreateSyncMap' type CreateSyncMapParams struct { - UniqueName *string `json:"UniqueName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -1324,35 +1322,35 @@ CreateSyncMap Method for CreateSyncMap @return PreviewSyncServiceSyncMap */ func (c *DefaultApiService) CreateSyncMap(serviceSid string, params *CreateSyncMapParams) (*PreviewSyncServiceSyncMap, error) { - path := "/Sync/Services/{ServiceSid}/Maps" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/Sync/Services/{ServiceSid}/Maps" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewSyncServiceSyncMap{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewSyncServiceSyncMap{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateSyncMapItemParams Optional parameters for the method 'CreateSyncMapItem' type CreateSyncMapItemParams struct { - Data *map[string]interface{} `json:"Data,omitempty"` - Key *string `json:"Key,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` + Key *string `json:"Key,omitempty"` } /* @@ -1365,47 +1363,47 @@ CreateSyncMapItem Method for CreateSyncMapItem @return PreviewSyncServiceSyncMapSyncMapItem */ func (c *DefaultApiService) CreateSyncMapItem(serviceSid string, mapSid string, params *CreateSyncMapItemParams) (*PreviewSyncServiceSyncMapSyncMapItem, error) { - path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Items" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Items" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Data != nil { - v, err := json.Marshal(params.Data) + if params != nil && params.Data != nil { + v, err := json.Marshal(params.Data) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("Data", string(v)) - } - if params != nil && params.Key != nil { - data.Set("Key", *params.Key) - } + data.Set("Data", string(v)) + } + if params != nil && params.Key != nil { + data.Set("Key", *params.Key) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewSyncServiceSyncMapSyncMapItem{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewSyncServiceSyncMapSyncMapItem{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateTaskParams Optional parameters for the method 'CreateTask' type CreateTaskParams struct { - Actions *map[string]interface{} `json:"Actions,omitempty"` - ActionsUrl *string `json:"ActionsUrl,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + Actions *map[string]interface{} `json:"Actions,omitempty"` + ActionsUrl *string `json:"ActionsUrl,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -1419,45 +1417,45 @@ CreateTask Method for CreateTask @return PreviewUnderstandAssistantTask */ func (c *DefaultApiService) CreateTask(assistantSid string, params *CreateTaskParams) (*PreviewUnderstandAssistantTask, error) { - path := "/understand/Assistants/{AssistantSid}/Tasks" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path := "/understand/Assistants/{AssistantSid}/Tasks" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Actions != nil { - v, err := json.Marshal(params.Actions) + if params != nil && params.Actions != nil { + v, err := json.Marshal(params.Actions) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("Actions", string(v)) - } - if params != nil && params.ActionsUrl != nil { - data.Set("ActionsUrl", *params.ActionsUrl) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } + data.Set("Actions", string(v)) + } + if params != nil && params.ActionsUrl != nil { + data.Set("ActionsUrl", *params.ActionsUrl) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistantTask{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistantTask{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1465,22 +1463,22 @@ DeleteAssistant Method for DeleteAssistant * @param sid A 34 character string that uniquely identifies this resource. */ func (c *DefaultApiService) DeleteAssistant(sid string) (error) { - path := "/understand/Assistants/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/understand/Assistants/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -1490,23 +1488,23 @@ Unregister a specific Certificate credential from the Fleet, effectively disallo * @param sid Provides a 34 character string that uniquely identifies the requested Certificate credential resource. */ func (c *DefaultApiService) DeleteCertificate(fleetSid string, sid string) (error) { - path := "/DeployedDevices/Fleets/{FleetSid}/Certificates/{Sid}" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/DeployedDevices/Fleets/{FleetSid}/Certificates/{Sid}" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -1516,23 +1514,23 @@ Delete a specific Deployment from the Fleet, leaving associated devices effectiv * @param sid Provides a 34 character string that uniquely identifies the requested Deployment resource. */ func (c *DefaultApiService) DeleteDeployment(fleetSid string, sid string) (error) { - path := "/DeployedDevices/Fleets/{FleetSid}/Deployments/{Sid}" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/DeployedDevices/Fleets/{FleetSid}/Deployments/{Sid}" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -1542,27 +1540,27 @@ Delete a specific Device from the Fleet, also removing it from associated Deploy * @param sid Provides a 34 character string that uniquely identifies the requested Device resource. */ func (c *DefaultApiService) DeleteDevice(fleetSid string, sid string) (error) { - path := "/DeployedDevices/Fleets/{FleetSid}/Devices/{Sid}" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/DeployedDevices/Fleets/{FleetSid}/Devices/{Sid}" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } // DeleteDocumentParams Optional parameters for the method 'DeleteDocument' type DeleteDocumentParams struct { - If-Match *string `json:"If-Match,omitempty"` + If-Match *string `json:"If-Match,omitempty"` } /* @@ -1573,26 +1571,26 @@ DeleteDocument Method for DeleteDocument * @param "If-Match" (string) - The If-Match HTTP request header */ func (c *DefaultApiService) DeleteDocument(serviceSid string, sid string, params *DeleteDocumentParams) (error) { - path := "/Sync/Services/{ServiceSid}/Documents/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/Sync/Services/{ServiceSid}/Documents/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := make(map[string]interface{}) + data := url.Values{} + headers := make(map[string]interface{}) - if params != nil && params.If-Match != nil { - headers["If-Match"] = *params.If-Match - } + if params != nil && params.If-Match != nil { + headers["If-Match"] = *params.If-Match + } - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -1603,24 +1601,24 @@ Delete a specific Sync Document Permission. * @param identity Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. */ func (c *DefaultApiService) DeleteDocumentPermission(serviceSid string, documentSid string, identity string) (error) { - path := "/Sync/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"DocumentSid"+"}", documentSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path := "/Sync/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"DocumentSid"+"}", documentSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -1630,24 +1628,24 @@ DeleteField Method for DeleteField * @param sid A 34 character string that uniquely identifies this resource. */ func (c *DefaultApiService) DeleteField(assistantSid string, taskSid string, sid string) (error) { - path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -1656,23 +1654,23 @@ DeleteFieldType Method for DeleteFieldType * @param sid */ func (c *DefaultApiService) DeleteFieldType(assistantSid string, sid string) (error) { - path := "/understand/Assistants/{AssistantSid}/FieldTypes/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/understand/Assistants/{AssistantSid}/FieldTypes/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -1682,24 +1680,24 @@ DeleteFieldValue Method for DeleteFieldValue * @param sid */ func (c *DefaultApiService) DeleteFieldValue(assistantSid string, fieldTypeSid string, sid string) (error) { - path := "/understand/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"FieldTypeSid"+"}", fieldTypeSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/understand/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"FieldTypeSid"+"}", fieldTypeSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -1708,22 +1706,22 @@ Delete a specific Fleet from your account, also destroys all nested resources: D * @param sid Provides a 34 character string that uniquely identifies the requested Fleet resource. */ func (c *DefaultApiService) DeleteFleet(sid string) (error) { - path := "/DeployedDevices/Fleets/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/DeployedDevices/Fleets/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -1732,22 +1730,22 @@ Cancel the HostedNumberOrder (only available when the status is in `receive * @param sid A 34 character string that uniquely identifies this HostedNumberOrder. */ func (c *DefaultApiService) DeleteHostedNumberOrder(sid string) (error) { - path := "/HostedNumbers/HostedNumberOrders/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/HostedNumbers/HostedNumberOrders/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -1756,22 +1754,22 @@ Remove an Add-on installation from your account * @param sid The SID of the InstalledAddOn resource to delete. */ func (c *DefaultApiService) DeleteInstalledAddOn(sid string) (error) { - path := "/marketplace/InstalledAddOns/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/marketplace/InstalledAddOns/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -1779,22 +1777,22 @@ DeleteJob Method for DeleteJob * @param jobSid The unique string that that we created to identify the Bulk Export job */ func (c *DefaultApiService) DeleteJob(jobSid string) (error) { - path := "/BulkExports/Exports/Jobs/{JobSid}" - path = strings.Replace(path, "{"+"JobSid"+"}", jobSid, -1) + path := "/BulkExports/Exports/Jobs/{JobSid}" + path = strings.Replace(path, "{"+"JobSid"+"}", jobSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -1804,23 +1802,23 @@ Delete a specific Key credential from the Fleet, effectively disallowing any inb * @param sid Provides a 34 character string that uniquely identifies the requested Key credential resource. */ func (c *DefaultApiService) DeleteKey(fleetSid string, sid string) (error) { - path := "/DeployedDevices/Fleets/{FleetSid}/Keys/{Sid}" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/DeployedDevices/Fleets/{FleetSid}/Keys/{Sid}" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -1829,23 +1827,23 @@ DeleteModelBuild Method for DeleteModelBuild * @param sid */ func (c *DefaultApiService) DeleteModelBuild(assistantSid string, sid string) (error) { - path := "/understand/Assistants/{AssistantSid}/ModelBuilds/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/understand/Assistants/{AssistantSid}/ModelBuilds/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -1854,23 +1852,23 @@ DeleteQuery Method for DeleteQuery * @param sid A 34 character string that uniquely identifies this resource. */ func (c *DefaultApiService) DeleteQuery(assistantSid string, sid string) (error) { - path := "/understand/Assistants/{AssistantSid}/Queries/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/understand/Assistants/{AssistantSid}/Queries/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -1878,22 +1876,22 @@ DeleteRatePlan Method for DeleteRatePlan * @param sid */ func (c *DefaultApiService) DeleteRatePlan(sid string) (error) { - path := "/wireless/RatePlans/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/wireless/RatePlans/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -1903,24 +1901,24 @@ DeleteSample Method for DeleteSample * @param sid A 34 character string that uniquely identifies this resource. */ func (c *DefaultApiService) DeleteSample(assistantSid string, taskSid string, sid string) (error) { - path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -1928,22 +1926,22 @@ DeleteService Method for DeleteService * @param sid */ func (c *DefaultApiService) DeleteService(sid string) (error) { - path := "/Sync/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/Sync/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -1952,27 +1950,27 @@ DeleteSyncList Method for DeleteSyncList * @param sid */ func (c *DefaultApiService) DeleteSyncList(serviceSid string, sid string) (error) { - path := "/Sync/Services/{ServiceSid}/Lists/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/Sync/Services/{ServiceSid}/Lists/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } // DeleteSyncListItemParams Optional parameters for the method 'DeleteSyncListItem' type DeleteSyncListItemParams struct { - If-Match *string `json:"If-Match,omitempty"` + If-Match *string `json:"If-Match,omitempty"` } /* @@ -1984,27 +1982,27 @@ DeleteSyncListItem Method for DeleteSyncListItem * @param "If-Match" (string) - The If-Match HTTP request header */ func (c *DefaultApiService) DeleteSyncListItem(serviceSid string, listSid string, index int32, params *DeleteSyncListItemParams) (error) { - path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) - path = strings.Replace(path, "{"+"Index"+"}", index, -1) + path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + path = strings.Replace(path, "{"+"Index"+"}", index, -1) - data := url.Values{} - headers := make(map[string]interface{}) + data := url.Values{} + headers := make(map[string]interface{}) - if params != nil && params.If-Match != nil { - headers["If-Match"] = *params.If-Match - } + if params != nil && params.If-Match != nil { + headers["If-Match"] = *params.If-Match + } - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -2015,24 +2013,24 @@ Delete a specific Sync List Permission. * @param identity Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. */ func (c *DefaultApiService) DeleteSyncListPermission(serviceSid string, listSid string, identity string) (error) { - path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -2041,27 +2039,27 @@ DeleteSyncMap Method for DeleteSyncMap * @param sid */ func (c *DefaultApiService) DeleteSyncMap(serviceSid string, sid string) (error) { - path := "/Sync/Services/{ServiceSid}/Maps/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/Sync/Services/{ServiceSid}/Maps/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } // DeleteSyncMapItemParams Optional parameters for the method 'DeleteSyncMapItem' type DeleteSyncMapItemParams struct { - If-Match *string `json:"If-Match,omitempty"` + If-Match *string `json:"If-Match,omitempty"` } /* @@ -2073,27 +2071,27 @@ DeleteSyncMapItem Method for DeleteSyncMapItem * @param "If-Match" (string) - The If-Match HTTP request header */ func (c *DefaultApiService) DeleteSyncMapItem(serviceSid string, mapSid string, key string, params *DeleteSyncMapItemParams) (error) { - path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) - path = strings.Replace(path, "{"+"Key"+"}", key, -1) + path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + path = strings.Replace(path, "{"+"Key"+"}", key, -1) - data := url.Values{} - headers := make(map[string]interface{}) + data := url.Values{} + headers := make(map[string]interface{}) - if params != nil && params.If-Match != nil { - headers["If-Match"] = *params.If-Match - } + if params != nil && params.If-Match != nil { + headers["If-Match"] = *params.If-Match + } - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -2104,24 +2102,24 @@ Delete a specific Sync Map Permission. * @param identity Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. */ func (c *DefaultApiService) DeleteSyncMapPermission(serviceSid string, mapSid string, identity string) (error) { - path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -2130,23 +2128,23 @@ DeleteTask Method for DeleteTask * @param sid A 34 character string that uniquely identifies this resource. */ func (c *DefaultApiService) DeleteTask(assistantSid string, sid string) (error) { - path := "/understand/Assistants/{AssistantSid}/Tasks/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/understand/Assistants/{AssistantSid}/Tasks/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -2155,27 +2153,27 @@ FetchAssistant Method for FetchAssistant @return PreviewUnderstandAssistant */ func (c *DefaultApiService) FetchAssistant(sid string) (*PreviewUnderstandAssistant, error) { - path := "/understand/Assistants/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/understand/Assistants/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistant{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -2184,27 +2182,27 @@ FetchAssistantFallbackActions Method for FetchAssistantFallbackActions @return PreviewUnderstandAssistantAssistantFallbackActions */ func (c *DefaultApiService) FetchAssistantFallbackActions(assistantSid string) (*PreviewUnderstandAssistantAssistantFallbackActions, error) { - path := "/understand/Assistants/{AssistantSid}/FallbackActions" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path := "/understand/Assistants/{AssistantSid}/FallbackActions" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistantAssistantFallbackActions{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistantAssistantFallbackActions{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -2213,27 +2211,27 @@ FetchAssistantInitiationActions Method for FetchAssistantInitiationActions @return PreviewUnderstandAssistantAssistantInitiationActions */ func (c *DefaultApiService) FetchAssistantInitiationActions(assistantSid string) (*PreviewUnderstandAssistantAssistantInitiationActions, error) { - path := "/understand/Assistants/{AssistantSid}/InitiationActions" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path := "/understand/Assistants/{AssistantSid}/InitiationActions" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistantAssistantInitiationActions{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistantAssistantInitiationActions{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -2243,27 +2241,27 @@ Fetch a specific AuthorizationDocument. @return PreviewHostedNumbersAuthorizationDocument */ func (c *DefaultApiService) FetchAuthorizationDocument(sid string) (*PreviewHostedNumbersAuthorizationDocument, error) { - path := "/HostedNumbers/AuthorizationDocuments/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/HostedNumbers/AuthorizationDocuments/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewHostedNumbersAuthorizationDocument{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewHostedNumbersAuthorizationDocument{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -2273,27 +2271,27 @@ Fetch an instance of an Add-on currently available to be installed. @return PreviewMarketplaceAvailableAddOn */ func (c *DefaultApiService) FetchAvailableAddOn(sid string) (*PreviewMarketplaceAvailableAddOn, error) { - path := "/marketplace/AvailableAddOns/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/marketplace/AvailableAddOns/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewMarketplaceAvailableAddOn{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewMarketplaceAvailableAddOn{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -2304,28 +2302,28 @@ Fetch an instance of an Extension for the Available Add-on. @return PreviewMarketplaceAvailableAddOnAvailableAddOnExtension */ func (c *DefaultApiService) FetchAvailableAddOnExtension(availableAddOnSid string, sid string) (*PreviewMarketplaceAvailableAddOnAvailableAddOnExtension, error) { - path := "/marketplace/AvailableAddOns/{AvailableAddOnSid}/Extensions/{Sid}" - path = strings.Replace(path, "{"+"AvailableAddOnSid"+"}", availableAddOnSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/marketplace/AvailableAddOns/{AvailableAddOnSid}/Extensions/{Sid}" + path = strings.Replace(path, "{"+"AvailableAddOnSid"+"}", availableAddOnSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewMarketplaceAvailableAddOnAvailableAddOnExtension{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewMarketplaceAvailableAddOnAvailableAddOnExtension{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -2335,31 +2333,31 @@ Fetch a specific Branded Channel. @return PreviewTrustedCommsBrandedChannel */ func (c *DefaultApiService) FetchBrandedChannel(sid string) (*PreviewTrustedCommsBrandedChannel, error) { - path := "/TrustedComms/BrandedChannels/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/TrustedComms/BrandedChannels/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewTrustedCommsBrandedChannel{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewTrustedCommsBrandedChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // FetchBrandsInformationParams Optional parameters for the method 'FetchBrandsInformation' type FetchBrandsInformationParams struct { - If-None-Match *string `json:"If-None-Match,omitempty"` + If-None-Match *string `json:"If-None-Match,omitempty"` } /* @@ -2370,29 +2368,29 @@ Retrieve the newest available BrandInformation @return PreviewTrustedCommsBrandsInformation */ func (c *DefaultApiService) FetchBrandsInformation(params *FetchBrandsInformationParams) (*PreviewTrustedCommsBrandsInformation, error) { - path := "/TrustedComms/BrandsInformation" + path := "/TrustedComms/BrandsInformation" - data := url.Values{} - headers := make(map[string]interface{}) + data := url.Values{} + headers := make(map[string]interface{}) - if params != nil && params.If-None-Match != nil { - headers["If-None-Match"] = *params.If-None-Match - } + if params != nil && params.If-None-Match != nil { + headers["If-None-Match"] = *params.If-None-Match + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewTrustedCommsBrandsInformation{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewTrustedCommsBrandsInformation{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -2403,28 +2401,28 @@ Fetch information about a specific Certificate credential in the Fleet. @return PreviewDeployedDevicesFleetCertificate */ func (c *DefaultApiService) FetchCertificate(fleetSid string, sid string) (*PreviewDeployedDevicesFleetCertificate, error) { - path := "/DeployedDevices/Fleets/{FleetSid}/Certificates/{Sid}" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/DeployedDevices/Fleets/{FleetSid}/Certificates/{Sid}" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewDeployedDevicesFleetCertificate{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewDeployedDevicesFleetCertificate{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -2433,31 +2431,31 @@ FetchCommand Method for FetchCommand @return PreviewWirelessCommand */ func (c *DefaultApiService) FetchCommand(sid string) (*PreviewWirelessCommand, error) { - path := "/wireless/Commands/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/wireless/Commands/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewWirelessCommand{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewWirelessCommand{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // FetchCpsParams Optional parameters for the method 'FetchCps' type FetchCpsParams struct { - X-Xcnam-Sensitive-Phone-Number *string `json:"X-Xcnam-Sensitive-Phone-Number,omitempty"` + X-Xcnam-Sensitive-Phone-Number *string `json:"X-Xcnam-Sensitive-Phone-Number,omitempty"` } /* @@ -2468,34 +2466,34 @@ Fetch a specific Call Placement Service (CPS) given a phone number via `X-X @return PreviewTrustedCommsCps */ func (c *DefaultApiService) FetchCps(params *FetchCpsParams) (*PreviewTrustedCommsCps, error) { - path := "/TrustedComms/CPS" + path := "/TrustedComms/CPS" - data := url.Values{} - headers := make(map[string]interface{}) + data := url.Values{} + headers := make(map[string]interface{}) - if params != nil && params.X-Xcnam-Sensitive-Phone-Number != nil { - headers["X-Xcnam-Sensitive-Phone-Number"] = *params.X-Xcnam-Sensitive-Phone-Number - } + if params != nil && params.X-Xcnam-Sensitive-Phone-Number != nil { + headers["X-Xcnam-Sensitive-Phone-Number"] = *params.X-Xcnam-Sensitive-Phone-Number + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewTrustedCommsCps{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewTrustedCommsCps{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // FetchCurrentCallParams Optional parameters for the method 'FetchCurrentCall' type FetchCurrentCallParams struct { - X-Xcnam-Sensitive-Phone-Number-From *string `json:"X-Xcnam-Sensitive-Phone-Number-From,omitempty"` - X-Xcnam-Sensitive-Phone-Number-To *string `json:"X-Xcnam-Sensitive-Phone-Number-To,omitempty"` + X-Xcnam-Sensitive-Phone-Number-From *string `json:"X-Xcnam-Sensitive-Phone-Number-From,omitempty"` + X-Xcnam-Sensitive-Phone-Number-To *string `json:"X-Xcnam-Sensitive-Phone-Number-To,omitempty"` } /* @@ -2507,32 +2505,32 @@ Retrieve a current call given the originating and terminating number via `X @return PreviewTrustedCommsCurrentCall */ func (c *DefaultApiService) FetchCurrentCall(params *FetchCurrentCallParams) (*PreviewTrustedCommsCurrentCall, error) { - path := "/TrustedComms/CurrentCall" + path := "/TrustedComms/CurrentCall" - data := url.Values{} - headers := make(map[string]interface{}) + data := url.Values{} + headers := make(map[string]interface{}) - if params != nil && params.X-Xcnam-Sensitive-Phone-Number-From != nil { - headers["X-Xcnam-Sensitive-Phone-Number-From"] = *params.X-Xcnam-Sensitive-Phone-Number-From - } - if params != nil && params.X-Xcnam-Sensitive-Phone-Number-To != nil { - headers["X-Xcnam-Sensitive-Phone-Number-To"] = *params.X-Xcnam-Sensitive-Phone-Number-To - } + if params != nil && params.X-Xcnam-Sensitive-Phone-Number-From != nil { + headers["X-Xcnam-Sensitive-Phone-Number-From"] = *params.X-Xcnam-Sensitive-Phone-Number-From + } + if params != nil && params.X-Xcnam-Sensitive-Phone-Number-To != nil { + headers["X-Xcnam-Sensitive-Phone-Number-To"] = *params.X-Xcnam-Sensitive-Phone-Number-To + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewTrustedCommsCurrentCall{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewTrustedCommsCurrentCall{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -2542,23 +2540,23 @@ Fetch a specific Day. * @param day The ISO 8601 format date of the resources in the file, for a UTC day */ func (c *DefaultApiService) FetchDay(resourceType string, day string) (error) { - path := "/BulkExports/Exports/{ResourceType}/Days/{Day}" - path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) - path = strings.Replace(path, "{"+"Day"+"}", day, -1) + path := "/BulkExports/Exports/{ResourceType}/Days/{Day}" + path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + path = strings.Replace(path, "{"+"Day"+"}", day, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -2569,28 +2567,28 @@ Fetch information about a specific Deployment in the Fleet. @return PreviewDeployedDevicesFleetDeployment */ func (c *DefaultApiService) FetchDeployment(fleetSid string, sid string) (*PreviewDeployedDevicesFleetDeployment, error) { - path := "/DeployedDevices/Fleets/{FleetSid}/Deployments/{Sid}" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/DeployedDevices/Fleets/{FleetSid}/Deployments/{Sid}" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewDeployedDevicesFleetDeployment{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewDeployedDevicesFleetDeployment{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -2601,28 +2599,28 @@ Fetch information about a specific Device in the Fleet. @return PreviewDeployedDevicesFleetDevice */ func (c *DefaultApiService) FetchDevice(fleetSid string, sid string) (*PreviewDeployedDevicesFleetDevice, error) { - path := "/DeployedDevices/Fleets/{FleetSid}/Devices/{Sid}" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/DeployedDevices/Fleets/{FleetSid}/Devices/{Sid}" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewDeployedDevicesFleetDevice{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewDeployedDevicesFleetDevice{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -2632,28 +2630,28 @@ FetchDialogue Method for FetchDialogue @return PreviewUnderstandAssistantDialogue */ func (c *DefaultApiService) FetchDialogue(assistantSid string, sid string) (*PreviewUnderstandAssistantDialogue, error) { - path := "/understand/Assistants/{AssistantSid}/Dialogues/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/understand/Assistants/{AssistantSid}/Dialogues/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistantDialogue{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistantDialogue{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -2663,28 +2661,28 @@ FetchDocument Method for FetchDocument @return PreviewSyncServiceDocument */ func (c *DefaultApiService) FetchDocument(serviceSid string, sid string) (*PreviewSyncServiceDocument, error) { - path := "/Sync/Services/{ServiceSid}/Documents/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/Sync/Services/{ServiceSid}/Documents/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewSyncServiceDocument{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewSyncServiceDocument{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -2696,29 +2694,29 @@ Fetch a specific Sync Document Permission. @return PreviewSyncServiceDocumentDocumentPermission */ func (c *DefaultApiService) FetchDocumentPermission(serviceSid string, documentSid string, identity string) (*PreviewSyncServiceDocumentDocumentPermission, error) { - path := "/Sync/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"DocumentSid"+"}", documentSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path := "/Sync/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"DocumentSid"+"}", documentSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewSyncServiceDocumentDocumentPermission{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewSyncServiceDocumentDocumentPermission{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -2728,27 +2726,27 @@ Fetch a specific Export. @return PreviewBulkExportsExport */ func (c *DefaultApiService) FetchExport(resourceType string) (*PreviewBulkExportsExport, error) { - path := "/BulkExports/Exports/{ResourceType}" - path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + path := "/BulkExports/Exports/{ResourceType}" + path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewBulkExportsExport{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewBulkExportsExport{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -2758,27 +2756,27 @@ Fetch a specific Export Configuration. @return PreviewBulkExportsExportConfiguration */ func (c *DefaultApiService) FetchExportConfiguration(resourceType string) (*PreviewBulkExportsExportConfiguration, error) { - path := "/BulkExports/Exports/{ResourceType}/Configuration" - path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + path := "/BulkExports/Exports/{ResourceType}/Configuration" + path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewBulkExportsExportConfiguration{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewBulkExportsExportConfiguration{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -2789,29 +2787,29 @@ FetchField Method for FetchField @return PreviewUnderstandAssistantTaskField */ func (c *DefaultApiService) FetchField(assistantSid string, taskSid string, sid string) (*PreviewUnderstandAssistantTaskField, error) { - path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistantTaskField{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistantTaskField{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -2821,28 +2819,28 @@ FetchFieldType Method for FetchFieldType @return PreviewUnderstandAssistantFieldType */ func (c *DefaultApiService) FetchFieldType(assistantSid string, sid string) (*PreviewUnderstandAssistantFieldType, error) { - path := "/understand/Assistants/{AssistantSid}/FieldTypes/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/understand/Assistants/{AssistantSid}/FieldTypes/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistantFieldType{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistantFieldType{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -2853,29 +2851,29 @@ FetchFieldValue Method for FetchFieldValue @return PreviewUnderstandAssistantFieldTypeFieldValue */ func (c *DefaultApiService) FetchFieldValue(assistantSid string, fieldTypeSid string, sid string) (*PreviewUnderstandAssistantFieldTypeFieldValue, error) { - path := "/understand/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"FieldTypeSid"+"}", fieldTypeSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/understand/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"FieldTypeSid"+"}", fieldTypeSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistantFieldTypeFieldValue{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistantFieldTypeFieldValue{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -2885,27 +2883,27 @@ Fetch information about a specific Fleet in your account. @return PreviewDeployedDevicesFleet */ func (c *DefaultApiService) FetchFleet(sid string) (*PreviewDeployedDevicesFleet, error) { - path := "/DeployedDevices/Fleets/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/DeployedDevices/Fleets/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewDeployedDevicesFleet{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewDeployedDevicesFleet{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -2915,27 +2913,27 @@ Fetch a specific HostedNumberOrder. @return PreviewHostedNumbersHostedNumberOrder */ func (c *DefaultApiService) FetchHostedNumberOrder(sid string) (*PreviewHostedNumbersHostedNumberOrder, error) { - path := "/HostedNumbers/HostedNumberOrders/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/HostedNumbers/HostedNumberOrders/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewHostedNumbersHostedNumberOrder{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewHostedNumbersHostedNumberOrder{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -2945,27 +2943,27 @@ Fetch an instance of an Add-on currently installed on this Account. @return PreviewMarketplaceInstalledAddOn */ func (c *DefaultApiService) FetchInstalledAddOn(sid string) (*PreviewMarketplaceInstalledAddOn, error) { - path := "/marketplace/InstalledAddOns/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/marketplace/InstalledAddOns/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewMarketplaceInstalledAddOn{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewMarketplaceInstalledAddOn{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -2976,28 +2974,28 @@ Fetch an instance of an Extension for the Installed Add-on. @return PreviewMarketplaceInstalledAddOnInstalledAddOnExtension */ func (c *DefaultApiService) FetchInstalledAddOnExtension(installedAddOnSid string, sid string) (*PreviewMarketplaceInstalledAddOnInstalledAddOnExtension, error) { - path := "/marketplace/InstalledAddOns/{InstalledAddOnSid}/Extensions/{Sid}" - path = strings.Replace(path, "{"+"InstalledAddOnSid"+"}", installedAddOnSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/marketplace/InstalledAddOns/{InstalledAddOnSid}/Extensions/{Sid}" + path = strings.Replace(path, "{"+"InstalledAddOnSid"+"}", installedAddOnSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewMarketplaceInstalledAddOnInstalledAddOnExtension{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewMarketplaceInstalledAddOnInstalledAddOnExtension{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3006,27 +3004,27 @@ FetchJob Method for FetchJob @return PreviewBulkExportsExportJob */ func (c *DefaultApiService) FetchJob(jobSid string) (*PreviewBulkExportsExportJob, error) { - path := "/BulkExports/Exports/Jobs/{JobSid}" - path = strings.Replace(path, "{"+"JobSid"+"}", jobSid, -1) + path := "/BulkExports/Exports/Jobs/{JobSid}" + path = strings.Replace(path, "{"+"JobSid"+"}", jobSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewBulkExportsExportJob{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewBulkExportsExportJob{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3037,28 +3035,28 @@ Fetch information about a specific Key credential in the Fleet. @return PreviewDeployedDevicesFleetKey */ func (c *DefaultApiService) FetchKey(fleetSid string, sid string) (*PreviewDeployedDevicesFleetKey, error) { - path := "/DeployedDevices/Fleets/{FleetSid}/Keys/{Sid}" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/DeployedDevices/Fleets/{FleetSid}/Keys/{Sid}" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewDeployedDevicesFleetKey{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewDeployedDevicesFleetKey{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3068,28 +3066,28 @@ FetchModelBuild Method for FetchModelBuild @return PreviewUnderstandAssistantModelBuild */ func (c *DefaultApiService) FetchModelBuild(assistantSid string, sid string) (*PreviewUnderstandAssistantModelBuild, error) { - path := "/understand/Assistants/{AssistantSid}/ModelBuilds/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/understand/Assistants/{AssistantSid}/ModelBuilds/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistantModelBuild{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistantModelBuild{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3099,28 +3097,28 @@ FetchQuery Method for FetchQuery @return PreviewUnderstandAssistantQuery */ func (c *DefaultApiService) FetchQuery(assistantSid string, sid string) (*PreviewUnderstandAssistantQuery, error) { - path := "/understand/Assistants/{AssistantSid}/Queries/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/understand/Assistants/{AssistantSid}/Queries/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistantQuery{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistantQuery{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3129,27 +3127,27 @@ FetchRatePlan Method for FetchRatePlan @return PreviewWirelessRatePlan */ func (c *DefaultApiService) FetchRatePlan(sid string) (*PreviewWirelessRatePlan, error) { - path := "/wireless/RatePlans/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/wireless/RatePlans/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewWirelessRatePlan{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewWirelessRatePlan{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3160,29 +3158,29 @@ FetchSample Method for FetchSample @return PreviewUnderstandAssistantTaskSample */ func (c *DefaultApiService) FetchSample(assistantSid string, taskSid string, sid string) (*PreviewUnderstandAssistantTaskSample, error) { - path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistantTaskSample{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistantTaskSample{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3191,27 +3189,27 @@ FetchService Method for FetchService @return PreviewSyncService */ func (c *DefaultApiService) FetchService(sid string) (*PreviewSyncService, error) { - path := "/Sync/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/Sync/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewSyncService{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewSyncService{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3220,27 +3218,27 @@ FetchSim Method for FetchSim @return PreviewWirelessSim */ func (c *DefaultApiService) FetchSim(sid string) (*PreviewWirelessSim, error) { - path := "/wireless/Sims/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/wireless/Sims/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewWirelessSim{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewWirelessSim{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3250,27 +3248,27 @@ Returns Style sheet JSON object for this Assistant @return PreviewUnderstandAssistantStyleSheet */ func (c *DefaultApiService) FetchStyleSheet(assistantSid string) (*PreviewUnderstandAssistantStyleSheet, error) { - path := "/understand/Assistants/{AssistantSid}/StyleSheet" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path := "/understand/Assistants/{AssistantSid}/StyleSheet" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistantStyleSheet{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistantStyleSheet{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3280,28 +3278,28 @@ FetchSyncList Method for FetchSyncList @return PreviewSyncServiceSyncList */ func (c *DefaultApiService) FetchSyncList(serviceSid string, sid string) (*PreviewSyncServiceSyncList, error) { - path := "/Sync/Services/{ServiceSid}/Lists/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/Sync/Services/{ServiceSid}/Lists/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewSyncServiceSyncList{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewSyncServiceSyncList{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3312,29 +3310,29 @@ FetchSyncListItem Method for FetchSyncListItem @return PreviewSyncServiceSyncListSyncListItem */ func (c *DefaultApiService) FetchSyncListItem(serviceSid string, listSid string, index int32) (*PreviewSyncServiceSyncListSyncListItem, error) { - path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) - path = strings.Replace(path, "{"+"Index"+"}", index, -1) + path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + path = strings.Replace(path, "{"+"Index"+"}", index, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewSyncServiceSyncListSyncListItem{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewSyncServiceSyncListSyncListItem{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3346,29 +3344,29 @@ Fetch a specific Sync List Permission. @return PreviewSyncServiceSyncListSyncListPermission */ func (c *DefaultApiService) FetchSyncListPermission(serviceSid string, listSid string, identity string) (*PreviewSyncServiceSyncListSyncListPermission, error) { - path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewSyncServiceSyncListSyncListPermission{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewSyncServiceSyncListSyncListPermission{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3378,28 +3376,28 @@ FetchSyncMap Method for FetchSyncMap @return PreviewSyncServiceSyncMap */ func (c *DefaultApiService) FetchSyncMap(serviceSid string, sid string) (*PreviewSyncServiceSyncMap, error) { - path := "/Sync/Services/{ServiceSid}/Maps/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/Sync/Services/{ServiceSid}/Maps/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewSyncServiceSyncMap{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewSyncServiceSyncMap{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3410,29 +3408,29 @@ FetchSyncMapItem Method for FetchSyncMapItem @return PreviewSyncServiceSyncMapSyncMapItem */ func (c *DefaultApiService) FetchSyncMapItem(serviceSid string, mapSid string, key string) (*PreviewSyncServiceSyncMapSyncMapItem, error) { - path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) - path = strings.Replace(path, "{"+"Key"+"}", key, -1) + path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + path = strings.Replace(path, "{"+"Key"+"}", key, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewSyncServiceSyncMapSyncMapItem{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewSyncServiceSyncMapSyncMapItem{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3444,29 +3442,29 @@ Fetch a specific Sync Map Permission. @return PreviewSyncServiceSyncMapSyncMapPermission */ func (c *DefaultApiService) FetchSyncMapPermission(serviceSid string, mapSid string, identity string) (*PreviewSyncServiceSyncMapSyncMapPermission, error) { - path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewSyncServiceSyncMapSyncMapPermission{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewSyncServiceSyncMapSyncMapPermission{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3476,28 +3474,28 @@ FetchTask Method for FetchTask @return PreviewUnderstandAssistantTask */ func (c *DefaultApiService) FetchTask(assistantSid string, sid string) (*PreviewUnderstandAssistantTask, error) { - path := "/understand/Assistants/{AssistantSid}/Tasks/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/understand/Assistants/{AssistantSid}/Tasks/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistantTask{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistantTask{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3508,28 +3506,28 @@ Returns JSON actions for this Task. @return PreviewUnderstandAssistantTaskTaskActions */ func (c *DefaultApiService) FetchTaskActions(assistantSid string, taskSid string) (*PreviewUnderstandAssistantTaskTaskActions, error) { - path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Actions" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Actions" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistantTaskTaskActions{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistantTaskTaskActions{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -3539,33 +3537,33 @@ FetchTaskStatistics Method for FetchTaskStatistics @return PreviewUnderstandAssistantTaskTaskStatistics */ func (c *DefaultApiService) FetchTaskStatistics(assistantSid string, taskSid string) (*PreviewUnderstandAssistantTaskTaskStatistics, error) { - path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Statistics" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Statistics" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistantTaskTaskStatistics{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistantTaskTaskStatistics{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // FetchUsageParams Optional parameters for the method 'FetchUsage' type FetchUsageParams struct { - End *string `json:"End,omitempty"` - Start *string `json:"Start,omitempty"` + End *string `json:"End,omitempty"` + Start *string `json:"Start,omitempty"` } /* @@ -3577,37 +3575,37 @@ FetchUsage Method for FetchUsage @return PreviewWirelessSimUsage */ func (c *DefaultApiService) FetchUsage(simSid string, params *FetchUsageParams) (*PreviewWirelessSimUsage, error) { - path := "/wireless/Sims/{SimSid}/Usage" - path = strings.Replace(path, "{"+"SimSid"+"}", simSid, -1) + path := "/wireless/Sims/{SimSid}/Usage" + path = strings.Replace(path, "{"+"SimSid"+"}", simSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.End != nil { - data.Set("End", *params.End) - } - if params != nil && params.Start != nil { - data.Set("Start", *params.Start) - } + if params != nil && params.End != nil { + data.Set("End", *params.End) + } + if params != nil && params.Start != nil { + data.Set("Start", *params.Start) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewWirelessSimUsage{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewWirelessSimUsage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListAssistantParams Optional parameters for the method 'ListAssistant' type ListAssistantParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -3617,35 +3615,35 @@ ListAssistant Method for ListAssistant @return PreviewUnderstandAssistantReadResponse */ func (c *DefaultApiService) ListAssistant(params *ListAssistantParams) (*PreviewUnderstandAssistantReadResponse, error) { - path := "/understand/Assistants" + path := "/understand/Assistants" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistantReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistantReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListAuthorizationDocumentParams Optional parameters for the method 'ListAuthorizationDocument' type ListAuthorizationDocumentParams struct { - Email *string `json:"Email,omitempty"` - Status *string `json:"Status,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Email *string `json:"Email,omitempty"` + Status *string `json:"Status,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -3658,39 +3656,39 @@ Retrieve a list of AuthorizationDocuments belonging to the account initiating th @return PreviewHostedNumbersAuthorizationDocumentReadResponse */ func (c *DefaultApiService) ListAuthorizationDocument(params *ListAuthorizationDocumentParams) (*PreviewHostedNumbersAuthorizationDocumentReadResponse, error) { - path := "/HostedNumbers/AuthorizationDocuments" + path := "/HostedNumbers/AuthorizationDocuments" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Email != nil { - data.Set("Email", *params.Email) - } - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.Email != nil { + data.Set("Email", *params.Email) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewHostedNumbersAuthorizationDocumentReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewHostedNumbersAuthorizationDocumentReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListAvailableAddOnParams Optional parameters for the method 'ListAvailableAddOn' type ListAvailableAddOnParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -3701,33 +3699,33 @@ Retrieve a list of Add-ons currently available to be installed. @return PreviewMarketplaceAvailableAddOnReadResponse */ func (c *DefaultApiService) ListAvailableAddOn(params *ListAvailableAddOnParams) (*PreviewMarketplaceAvailableAddOnReadResponse, error) { - path := "/marketplace/AvailableAddOns" + path := "/marketplace/AvailableAddOns" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewMarketplaceAvailableAddOnReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewMarketplaceAvailableAddOnReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListAvailableAddOnExtensionParams Optional parameters for the method 'ListAvailableAddOnExtension' type ListAvailableAddOnExtensionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -3739,35 +3737,35 @@ Retrieve a list of Extensions for the Available Add-on. @return PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse */ func (c *DefaultApiService) ListAvailableAddOnExtension(availableAddOnSid string, params *ListAvailableAddOnExtensionParams) (*PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse, error) { - path := "/marketplace/AvailableAddOns/{AvailableAddOnSid}/Extensions" - path = strings.Replace(path, "{"+"AvailableAddOnSid"+"}", availableAddOnSid, -1) + path := "/marketplace/AvailableAddOns/{AvailableAddOnSid}/Extensions" + path = strings.Replace(path, "{"+"AvailableAddOnSid"+"}", availableAddOnSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListCertificateParams Optional parameters for the method 'ListCertificate' type ListCertificateParams struct { - DeviceSid *string `json:"DeviceSid,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + DeviceSid *string `json:"DeviceSid,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -3780,41 +3778,41 @@ Retrieve a list of all Certificate credentials belonging to the Fleet. @return PreviewDeployedDevicesFleetCertificateReadResponse */ func (c *DefaultApiService) ListCertificate(fleetSid string, params *ListCertificateParams) (*PreviewDeployedDevicesFleetCertificateReadResponse, error) { - path := "/DeployedDevices/Fleets/{FleetSid}/Certificates" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path := "/DeployedDevices/Fleets/{FleetSid}/Certificates" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.DeviceSid != nil { - data.Set("DeviceSid", *params.DeviceSid) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.DeviceSid != nil { + data.Set("DeviceSid", *params.DeviceSid) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewDeployedDevicesFleetCertificateReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewDeployedDevicesFleetCertificateReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListCommandParams Optional parameters for the method 'ListCommand' type ListCommandParams struct { - Device *string `json:"Device,omitempty"` - Sim *string `json:"Sim,omitempty"` - Status *string `json:"Status,omitempty"` - Direction *string `json:"Direction,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Device *string `json:"Device,omitempty"` + Sim *string `json:"Sim,omitempty"` + Status *string `json:"Status,omitempty"` + Direction *string `json:"Direction,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -3828,45 +3826,45 @@ ListCommand Method for ListCommand @return PreviewWirelessCommandReadResponse */ func (c *DefaultApiService) ListCommand(params *ListCommandParams) (*PreviewWirelessCommandReadResponse, error) { - path := "/wireless/Commands" - - data := url.Values{} - headers := 0 - - if params != nil && params.Device != nil { - data.Set("Device", *params.Device) - } - if params != nil && params.Sim != nil { - data.Set("Sim", *params.Sim) - } - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - if params != nil && params.Direction != nil { - data.Set("Direction", *params.Direction) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &PreviewWirelessCommandReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/wireless/Commands" + + data := url.Values{} + headers := 0 + + if params != nil && params.Device != nil { + data.Set("Device", *params.Device) + } + if params != nil && params.Sim != nil { + data.Set("Sim", *params.Sim) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.Direction != nil { + data.Set("Direction", *params.Direction) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewWirelessCommandReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListDayParams Optional parameters for the method 'ListDay' type ListDayParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -3878,39 +3876,39 @@ Retrieve a list of all Days for a resource. @return PreviewBulkExportsExportDayReadResponse */ func (c *DefaultApiService) ListDay(resourceType string, params *ListDayParams) (*PreviewBulkExportsExportDayReadResponse, error) { - path := "/BulkExports/Exports/{ResourceType}/Days" - path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + path := "/BulkExports/Exports/{ResourceType}/Days" + path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewBulkExportsExportDayReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewBulkExportsExportDayReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListDependentHostedNumberOrderParams Optional parameters for the method 'ListDependentHostedNumberOrder' type ListDependentHostedNumberOrderParams struct { - Status *string `json:"Status,omitempty"` - PhoneNumber *string `json:"PhoneNumber,omitempty"` - IncomingPhoneNumberSid *string `json:"IncomingPhoneNumberSid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Status *string `json:"Status,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + IncomingPhoneNumberSid *string `json:"IncomingPhoneNumberSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -3927,49 +3925,49 @@ Retrieve a list of dependent HostedNumberOrders belonging to the AuthorizationDo @return PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse */ func (c *DefaultApiService) ListDependentHostedNumberOrder(signingDocumentSid string, params *ListDependentHostedNumberOrderParams) (*PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse, error) { - path := "/HostedNumbers/AuthorizationDocuments/{SigningDocumentSid}/DependentHostedNumberOrders" - path = strings.Replace(path, "{"+"SigningDocumentSid"+"}", signingDocumentSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - if params != nil && params.PhoneNumber != nil { - data.Set("PhoneNumber", *params.PhoneNumber) - } - if params != nil && params.IncomingPhoneNumberSid != nil { - data.Set("IncomingPhoneNumberSid", *params.IncomingPhoneNumberSid) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/HostedNumbers/AuthorizationDocuments/{SigningDocumentSid}/DependentHostedNumberOrders" + path = strings.Replace(path, "{"+"SigningDocumentSid"+"}", signingDocumentSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.PhoneNumber != nil { + data.Set("PhoneNumber", *params.PhoneNumber) + } + if params != nil && params.IncomingPhoneNumberSid != nil { + data.Set("IncomingPhoneNumberSid", *params.IncomingPhoneNumberSid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListDeploymentParams Optional parameters for the method 'ListDeployment' type ListDeploymentParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -3981,35 +3979,35 @@ Retrieve a list of all Deployments belonging to the Fleet. @return PreviewDeployedDevicesFleetDeploymentReadResponse */ func (c *DefaultApiService) ListDeployment(fleetSid string, params *ListDeploymentParams) (*PreviewDeployedDevicesFleetDeploymentReadResponse, error) { - path := "/DeployedDevices/Fleets/{FleetSid}/Deployments" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path := "/DeployedDevices/Fleets/{FleetSid}/Deployments" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewDeployedDevicesFleetDeploymentReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewDeployedDevicesFleetDeploymentReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListDeviceParams Optional parameters for the method 'ListDevice' type ListDeviceParams struct { - DeploymentSid *string `json:"DeploymentSid,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + DeploymentSid *string `json:"DeploymentSid,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4022,37 +4020,37 @@ Retrieve a list of all Devices belonging to the Fleet. @return PreviewDeployedDevicesFleetDeviceReadResponse */ func (c *DefaultApiService) ListDevice(fleetSid string, params *ListDeviceParams) (*PreviewDeployedDevicesFleetDeviceReadResponse, error) { - path := "/DeployedDevices/Fleets/{FleetSid}/Devices" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path := "/DeployedDevices/Fleets/{FleetSid}/Devices" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.DeploymentSid != nil { - data.Set("DeploymentSid", *params.DeploymentSid) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.DeploymentSid != nil { + data.Set("DeploymentSid", *params.DeploymentSid) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewDeployedDevicesFleetDeviceReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewDeployedDevicesFleetDeviceReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListDocumentParams Optional parameters for the method 'ListDocument' type ListDocumentParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4063,34 +4061,34 @@ ListDocument Method for ListDocument @return PreviewSyncServiceDocumentReadResponse */ func (c *DefaultApiService) ListDocument(serviceSid string, params *ListDocumentParams) (*PreviewSyncServiceDocumentReadResponse, error) { - path := "/Sync/Services/{ServiceSid}/Documents" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/Sync/Services/{ServiceSid}/Documents" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewSyncServiceDocumentReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewSyncServiceDocumentReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListDocumentPermissionParams Optional parameters for the method 'ListDocumentPermission' type ListDocumentPermissionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4103,35 +4101,35 @@ Retrieve a list of all Permissions applying to a Sync Document. @return PreviewSyncServiceDocumentDocumentPermissionReadResponse */ func (c *DefaultApiService) ListDocumentPermission(serviceSid string, documentSid string, params *ListDocumentPermissionParams) (*PreviewSyncServiceDocumentDocumentPermissionReadResponse, error) { - path := "/Sync/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"DocumentSid"+"}", documentSid, -1) + path := "/Sync/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"DocumentSid"+"}", documentSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewSyncServiceDocumentDocumentPermissionReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewSyncServiceDocumentDocumentPermissionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListExportCustomJobParams Optional parameters for the method 'ListExportCustomJob' type ListExportCustomJobParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4142,34 +4140,34 @@ ListExportCustomJob Method for ListExportCustomJob @return PreviewBulkExportsExportExportCustomJobReadResponse */ func (c *DefaultApiService) ListExportCustomJob(resourceType string, params *ListExportCustomJobParams) (*PreviewBulkExportsExportExportCustomJobReadResponse, error) { - path := "/BulkExports/Exports/{ResourceType}/Jobs" - path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + path := "/BulkExports/Exports/{ResourceType}/Jobs" + path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewBulkExportsExportExportCustomJobReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewBulkExportsExportExportCustomJobReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListFieldParams Optional parameters for the method 'ListField' type ListFieldParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4181,35 +4179,35 @@ ListField Method for ListField @return PreviewUnderstandAssistantTaskFieldReadResponse */ func (c *DefaultApiService) ListField(assistantSid string, taskSid string, params *ListFieldParams) (*PreviewUnderstandAssistantTaskFieldReadResponse, error) { - path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistantTaskFieldReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistantTaskFieldReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListFieldTypeParams Optional parameters for the method 'ListFieldType' type ListFieldTypeParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4220,35 +4218,35 @@ ListFieldType Method for ListFieldType @return PreviewUnderstandAssistantFieldTypeReadResponse */ func (c *DefaultApiService) ListFieldType(assistantSid string, params *ListFieldTypeParams) (*PreviewUnderstandAssistantFieldTypeReadResponse, error) { - path := "/understand/Assistants/{AssistantSid}/FieldTypes" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path := "/understand/Assistants/{AssistantSid}/FieldTypes" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistantFieldTypeReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistantFieldTypeReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListFieldValueParams Optional parameters for the method 'ListFieldValue' type ListFieldValueParams struct { - Language *string `json:"Language,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Language *string `json:"Language,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4261,38 +4259,38 @@ ListFieldValue Method for ListFieldValue @return PreviewUnderstandAssistantFieldTypeFieldValueReadResponse */ func (c *DefaultApiService) ListFieldValue(assistantSid string, fieldTypeSid string, params *ListFieldValueParams) (*PreviewUnderstandAssistantFieldTypeFieldValueReadResponse, error) { - path := "/understand/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"FieldTypeSid"+"}", fieldTypeSid, -1) + path := "/understand/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"FieldTypeSid"+"}", fieldTypeSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Language != nil { - data.Set("Language", *params.Language) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.Language != nil { + data.Set("Language", *params.Language) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistantFieldTypeFieldValueReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistantFieldTypeFieldValueReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListFleetParams Optional parameters for the method 'ListFleet' type ListFleetParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4303,38 +4301,38 @@ Retrieve a list of all Fleets belonging to your account. @return PreviewDeployedDevicesFleetReadResponse */ func (c *DefaultApiService) ListFleet(params *ListFleetParams) (*PreviewDeployedDevicesFleetReadResponse, error) { - path := "/DeployedDevices/Fleets" + path := "/DeployedDevices/Fleets" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewDeployedDevicesFleetReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewDeployedDevicesFleetReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListHostedNumberOrderParams Optional parameters for the method 'ListHostedNumberOrder' type ListHostedNumberOrderParams struct { - Status *string `json:"Status,omitempty"` - PhoneNumber *string `json:"PhoneNumber,omitempty"` - IncomingPhoneNumberSid *string `json:"IncomingPhoneNumberSid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Status *string `json:"Status,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + IncomingPhoneNumberSid *string `json:"IncomingPhoneNumberSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4350,48 +4348,48 @@ Retrieve a list of HostedNumberOrders belonging to the account initiating the re @return PreviewHostedNumbersHostedNumberOrderReadResponse */ func (c *DefaultApiService) ListHostedNumberOrder(params *ListHostedNumberOrderParams) (*PreviewHostedNumbersHostedNumberOrderReadResponse, error) { - path := "/HostedNumbers/HostedNumberOrders" - - data := url.Values{} - headers := 0 - - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - if params != nil && params.PhoneNumber != nil { - data.Set("PhoneNumber", *params.PhoneNumber) - } - if params != nil && params.IncomingPhoneNumberSid != nil { - data.Set("IncomingPhoneNumberSid", *params.IncomingPhoneNumberSid) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &PreviewHostedNumbersHostedNumberOrderReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/HostedNumbers/HostedNumberOrders" + + data := url.Values{} + headers := 0 + + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.PhoneNumber != nil { + data.Set("PhoneNumber", *params.PhoneNumber) + } + if params != nil && params.IncomingPhoneNumberSid != nil { + data.Set("IncomingPhoneNumberSid", *params.IncomingPhoneNumberSid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewHostedNumbersHostedNumberOrderReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListInstalledAddOnParams Optional parameters for the method 'ListInstalledAddOn' type ListInstalledAddOnParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4402,33 +4400,33 @@ Retrieve a list of Add-ons currently installed on this Account. @return PreviewMarketplaceInstalledAddOnReadResponse */ func (c *DefaultApiService) ListInstalledAddOn(params *ListInstalledAddOnParams) (*PreviewMarketplaceInstalledAddOnReadResponse, error) { - path := "/marketplace/InstalledAddOns" + path := "/marketplace/InstalledAddOns" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewMarketplaceInstalledAddOnReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewMarketplaceInstalledAddOnReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListInstalledAddOnExtensionParams Optional parameters for the method 'ListInstalledAddOnExtension' type ListInstalledAddOnExtensionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4440,35 +4438,35 @@ Retrieve a list of Extensions for the Installed Add-on. @return PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse */ func (c *DefaultApiService) ListInstalledAddOnExtension(installedAddOnSid string, params *ListInstalledAddOnExtensionParams) (*PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse, error) { - path := "/marketplace/InstalledAddOns/{InstalledAddOnSid}/Extensions" - path = strings.Replace(path, "{"+"InstalledAddOnSid"+"}", installedAddOnSid, -1) + path := "/marketplace/InstalledAddOns/{InstalledAddOnSid}/Extensions" + path = strings.Replace(path, "{"+"InstalledAddOnSid"+"}", installedAddOnSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListKeyParams Optional parameters for the method 'ListKey' type ListKeyParams struct { - DeviceSid *string `json:"DeviceSid,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + DeviceSid *string `json:"DeviceSid,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4481,37 +4479,37 @@ Retrieve a list of all Keys credentials belonging to the Fleet. @return PreviewDeployedDevicesFleetKeyReadResponse */ func (c *DefaultApiService) ListKey(fleetSid string, params *ListKeyParams) (*PreviewDeployedDevicesFleetKeyReadResponse, error) { - path := "/DeployedDevices/Fleets/{FleetSid}/Keys" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path := "/DeployedDevices/Fleets/{FleetSid}/Keys" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.DeviceSid != nil { - data.Set("DeviceSid", *params.DeviceSid) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.DeviceSid != nil { + data.Set("DeviceSid", *params.DeviceSid) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewDeployedDevicesFleetKeyReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewDeployedDevicesFleetKeyReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListModelBuildParams Optional parameters for the method 'ListModelBuild' type ListModelBuildParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4522,37 +4520,37 @@ ListModelBuild Method for ListModelBuild @return PreviewUnderstandAssistantModelBuildReadResponse */ func (c *DefaultApiService) ListModelBuild(assistantSid string, params *ListModelBuildParams) (*PreviewUnderstandAssistantModelBuildReadResponse, error) { - path := "/understand/Assistants/{AssistantSid}/ModelBuilds" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path := "/understand/Assistants/{AssistantSid}/ModelBuilds" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistantModelBuildReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistantModelBuildReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListQueryParams Optional parameters for the method 'ListQuery' type ListQueryParams struct { - Language *string `json:"Language,omitempty"` - ModelBuild *string `json:"ModelBuild,omitempty"` - Status *string `json:"Status,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Language *string `json:"Language,omitempty"` + ModelBuild *string `json:"ModelBuild,omitempty"` + Status *string `json:"Status,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4566,43 +4564,43 @@ ListQuery Method for ListQuery @return PreviewUnderstandAssistantQueryReadResponse */ func (c *DefaultApiService) ListQuery(assistantSid string, params *ListQueryParams) (*PreviewUnderstandAssistantQueryReadResponse, error) { - path := "/understand/Assistants/{AssistantSid}/Queries" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path := "/understand/Assistants/{AssistantSid}/Queries" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Language != nil { - data.Set("Language", *params.Language) - } - if params != nil && params.ModelBuild != nil { - data.Set("ModelBuild", *params.ModelBuild) - } - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.Language != nil { + data.Set("Language", *params.Language) + } + if params != nil && params.ModelBuild != nil { + data.Set("ModelBuild", *params.ModelBuild) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistantQueryReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistantQueryReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListRatePlanParams Optional parameters for the method 'ListRatePlan' type ListRatePlanParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4612,34 +4610,34 @@ ListRatePlan Method for ListRatePlan @return PreviewWirelessRatePlanReadResponse */ func (c *DefaultApiService) ListRatePlan(params *ListRatePlanParams) (*PreviewWirelessRatePlanReadResponse, error) { - path := "/wireless/RatePlans" + path := "/wireless/RatePlans" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewWirelessRatePlanReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewWirelessRatePlanReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListSampleParams Optional parameters for the method 'ListSample' type ListSampleParams struct { - Language *string `json:"Language,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Language *string `json:"Language,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4652,38 +4650,38 @@ ListSample Method for ListSample @return PreviewUnderstandAssistantTaskSampleReadResponse */ func (c *DefaultApiService) ListSample(assistantSid string, taskSid string, params *ListSampleParams) (*PreviewUnderstandAssistantTaskSampleReadResponse, error) { - path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Language != nil { - data.Set("Language", *params.Language) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.Language != nil { + data.Set("Language", *params.Language) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistantTaskSampleReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistantTaskSampleReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListServiceParams Optional parameters for the method 'ListService' type ListServiceParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4693,38 +4691,38 @@ ListService Method for ListService @return PreviewSyncServiceReadResponse */ func (c *DefaultApiService) ListService(params *ListServiceParams) (*PreviewSyncServiceReadResponse, error) { - path := "/Sync/Services" + path := "/Sync/Services" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewSyncServiceReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewSyncServiceReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListSimParams Optional parameters for the method 'ListSim' type ListSimParams struct { - Status *string `json:"Status,omitempty"` - Iccid *string `json:"Iccid,omitempty"` - RatePlan *string `json:"RatePlan,omitempty"` - EId *string `json:"EId,omitempty"` - SimRegistrationCode *string `json:"SimRegistrationCode,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Status *string `json:"Status,omitempty"` + Iccid *string `json:"Iccid,omitempty"` + RatePlan *string `json:"RatePlan,omitempty"` + EId *string `json:"EId,omitempty"` + SimRegistrationCode *string `json:"SimRegistrationCode,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4739,48 +4737,48 @@ ListSim Method for ListSim @return PreviewWirelessSimReadResponse */ func (c *DefaultApiService) ListSim(params *ListSimParams) (*PreviewWirelessSimReadResponse, error) { - path := "/wireless/Sims" - - data := url.Values{} - headers := 0 - - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - if params != nil && params.Iccid != nil { - data.Set("Iccid", *params.Iccid) - } - if params != nil && params.RatePlan != nil { - data.Set("RatePlan", *params.RatePlan) - } - if params != nil && params.EId != nil { - data.Set("EId", *params.EId) - } - if params != nil && params.SimRegistrationCode != nil { - data.Set("SimRegistrationCode", *params.SimRegistrationCode) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &PreviewWirelessSimReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/wireless/Sims" + + data := url.Values{} + headers := 0 + + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.Iccid != nil { + data.Set("Iccid", *params.Iccid) + } + if params != nil && params.RatePlan != nil { + data.Set("RatePlan", *params.RatePlan) + } + if params != nil && params.EId != nil { + data.Set("EId", *params.EId) + } + if params != nil && params.SimRegistrationCode != nil { + data.Set("SimRegistrationCode", *params.SimRegistrationCode) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewWirelessSimReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListSyncListParams Optional parameters for the method 'ListSyncList' type ListSyncListParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4791,37 +4789,37 @@ ListSyncList Method for ListSyncList @return PreviewSyncServiceSyncListReadResponse */ func (c *DefaultApiService) ListSyncList(serviceSid string, params *ListSyncListParams) (*PreviewSyncServiceSyncListReadResponse, error) { - path := "/Sync/Services/{ServiceSid}/Lists" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/Sync/Services/{ServiceSid}/Lists" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewSyncServiceSyncListReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewSyncServiceSyncListReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListSyncListItemParams Optional parameters for the method 'ListSyncListItem' type ListSyncListItemParams struct { - Order *string `json:"Order,omitempty"` - From *string `json:"From,omitempty"` - Bounds *string `json:"Bounds,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Order *string `json:"Order,omitempty"` + From *string `json:"From,omitempty"` + Bounds *string `json:"Bounds,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4836,44 +4834,44 @@ ListSyncListItem Method for ListSyncListItem @return PreviewSyncServiceSyncListSyncListItemReadResponse */ func (c *DefaultApiService) ListSyncListItem(serviceSid string, listSid string, params *ListSyncListItemParams) (*PreviewSyncServiceSyncListSyncListItemReadResponse, error) { - path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Items" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Items" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Order != nil { - data.Set("Order", *params.Order) - } - if params != nil && params.From != nil { - data.Set("From", *params.From) - } - if params != nil && params.Bounds != nil { - data.Set("Bounds", *params.Bounds) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.Order != nil { + data.Set("Order", *params.Order) + } + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.Bounds != nil { + data.Set("Bounds", *params.Bounds) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewSyncServiceSyncListSyncListItemReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewSyncServiceSyncListSyncListItemReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListSyncListPermissionParams Optional parameters for the method 'ListSyncListPermission' type ListSyncListPermissionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4886,35 +4884,35 @@ Retrieve a list of all Permissions applying to a Sync List. @return PreviewSyncServiceSyncListSyncListPermissionReadResponse */ func (c *DefaultApiService) ListSyncListPermission(serviceSid string, listSid string, params *ListSyncListPermissionParams) (*PreviewSyncServiceSyncListSyncListPermissionReadResponse, error) { - path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Permissions" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Permissions" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewSyncServiceSyncListSyncListPermissionReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewSyncServiceSyncListSyncListPermissionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListSyncMapParams Optional parameters for the method 'ListSyncMap' type ListSyncMapParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4925,37 +4923,37 @@ ListSyncMap Method for ListSyncMap @return PreviewSyncServiceSyncMapReadResponse */ func (c *DefaultApiService) ListSyncMap(serviceSid string, params *ListSyncMapParams) (*PreviewSyncServiceSyncMapReadResponse, error) { - path := "/Sync/Services/{ServiceSid}/Maps" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/Sync/Services/{ServiceSid}/Maps" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewSyncServiceSyncMapReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewSyncServiceSyncMapReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListSyncMapItemParams Optional parameters for the method 'ListSyncMapItem' type ListSyncMapItemParams struct { - Order *string `json:"Order,omitempty"` - From *string `json:"From,omitempty"` - Bounds *string `json:"Bounds,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Order *string `json:"Order,omitempty"` + From *string `json:"From,omitempty"` + Bounds *string `json:"Bounds,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4970,44 +4968,44 @@ ListSyncMapItem Method for ListSyncMapItem @return PreviewSyncServiceSyncMapSyncMapItemReadResponse */ func (c *DefaultApiService) ListSyncMapItem(serviceSid string, mapSid string, params *ListSyncMapItemParams) (*PreviewSyncServiceSyncMapSyncMapItemReadResponse, error) { - path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Items" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Items" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Order != nil { - data.Set("Order", *params.Order) - } - if params != nil && params.From != nil { - data.Set("From", *params.From) - } - if params != nil && params.Bounds != nil { - data.Set("Bounds", *params.Bounds) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.Order != nil { + data.Set("Order", *params.Order) + } + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.Bounds != nil { + data.Set("Bounds", *params.Bounds) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewSyncServiceSyncMapSyncMapItemReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewSyncServiceSyncMapSyncMapItemReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListSyncMapPermissionParams Optional parameters for the method 'ListSyncMapPermission' type ListSyncMapPermissionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -5020,35 +5018,35 @@ Retrieve a list of all Permissions applying to a Sync Map. @return PreviewSyncServiceSyncMapSyncMapPermissionReadResponse */ func (c *DefaultApiService) ListSyncMapPermission(serviceSid string, mapSid string, params *ListSyncMapPermissionParams) (*PreviewSyncServiceSyncMapSyncMapPermissionReadResponse, error) { - path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Permissions" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Permissions" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewSyncServiceSyncMapSyncMapPermissionReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewSyncServiceSyncMapSyncMapPermissionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListTaskParams Optional parameters for the method 'ListTask' type ListTaskParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -5059,41 +5057,41 @@ ListTask Method for ListTask @return PreviewUnderstandAssistantTaskReadResponse */ func (c *DefaultApiService) ListTask(assistantSid string, params *ListTaskParams) (*PreviewUnderstandAssistantTaskReadResponse, error) { - path := "/understand/Assistants/{AssistantSid}/Tasks" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path := "/understand/Assistants/{AssistantSid}/Tasks" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistantTaskReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistantTaskReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateAssistantParams Optional parameters for the method 'UpdateAssistant' type UpdateAssistantParams struct { - CallbackEvents *string `json:"CallbackEvents,omitempty"` - CallbackUrl *string `json:"CallbackUrl,omitempty"` - FallbackActions *map[string]interface{} `json:"FallbackActions,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - InitiationActions *map[string]interface{} `json:"InitiationActions,omitempty"` - LogQueries *bool `json:"LogQueries,omitempty"` - StyleSheet *map[string]interface{} `json:"StyleSheet,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + CallbackEvents *string `json:"CallbackEvents,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + FallbackActions *map[string]interface{} `json:"FallbackActions,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + InitiationActions *map[string]interface{} `json:"InitiationActions,omitempty"` + LogQueries *bool `json:"LogQueries,omitempty"` + StyleSheet *map[string]interface{} `json:"StyleSheet,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -5111,73 +5109,73 @@ UpdateAssistant Method for UpdateAssistant @return PreviewUnderstandAssistant */ func (c *DefaultApiService) UpdateAssistant(sid string, params *UpdateAssistantParams) (*PreviewUnderstandAssistant, error) { - path := "/understand/Assistants/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.CallbackEvents != nil { - data.Set("CallbackEvents", *params.CallbackEvents) - } - if params != nil && params.CallbackUrl != nil { - data.Set("CallbackUrl", *params.CallbackUrl) - } - if params != nil && params.FallbackActions != nil { - v, err := json.Marshal(params.FallbackActions) - - if err != nil { - return nil, err - } - - data.Set("FallbackActions", string(v)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.InitiationActions != nil { - v, err := json.Marshal(params.InitiationActions) - - if err != nil { - return nil, err - } - - data.Set("InitiationActions", string(v)) - } - if params != nil && params.LogQueries != nil { - data.Set("LogQueries", string(*params.LogQueries)) - } - if params != nil && params.StyleSheet != nil { - v, err := json.Marshal(params.StyleSheet) - - if err != nil { - return nil, err - } - - data.Set("StyleSheet", string(v)) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &PreviewUnderstandAssistant{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/understand/Assistants/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CallbackEvents != nil { + data.Set("CallbackEvents", *params.CallbackEvents) + } + if params != nil && params.CallbackUrl != nil { + data.Set("CallbackUrl", *params.CallbackUrl) + } + if params != nil && params.FallbackActions != nil { + v, err := json.Marshal(params.FallbackActions) + + if err != nil { + return nil, err + } + + data.Set("FallbackActions", string(v)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.InitiationActions != nil { + v, err := json.Marshal(params.InitiationActions) + + if err != nil { + return nil, err + } + + data.Set("InitiationActions", string(v)) + } + if params != nil && params.LogQueries != nil { + data.Set("LogQueries", string(*params.LogQueries)) + } + if params != nil && params.StyleSheet != nil { + v, err := json.Marshal(params.StyleSheet) + + if err != nil { + return nil, err + } + + data.Set("StyleSheet", string(v)) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewUnderstandAssistant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateAssistantFallbackActionsParams Optional parameters for the method 'UpdateAssistantFallbackActions' type UpdateAssistantFallbackActionsParams struct { - FallbackActions *map[string]interface{} `json:"FallbackActions,omitempty"` + FallbackActions *map[string]interface{} `json:"FallbackActions,omitempty"` } /* @@ -5188,40 +5186,40 @@ UpdateAssistantFallbackActions Method for UpdateAssistantFallbackActions @return PreviewUnderstandAssistantAssistantFallbackActions */ func (c *DefaultApiService) UpdateAssistantFallbackActions(assistantSid string, params *UpdateAssistantFallbackActionsParams) (*PreviewUnderstandAssistantAssistantFallbackActions, error) { - path := "/understand/Assistants/{AssistantSid}/FallbackActions" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path := "/understand/Assistants/{AssistantSid}/FallbackActions" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FallbackActions != nil { - v, err := json.Marshal(params.FallbackActions) + if params != nil && params.FallbackActions != nil { + v, err := json.Marshal(params.FallbackActions) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("FallbackActions", string(v)) - } + data.Set("FallbackActions", string(v)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistantAssistantFallbackActions{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistantAssistantFallbackActions{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateAssistantInitiationActionsParams Optional parameters for the method 'UpdateAssistantInitiationActions' type UpdateAssistantInitiationActionsParams struct { - InitiationActions *map[string]interface{} `json:"InitiationActions,omitempty"` + InitiationActions *map[string]interface{} `json:"InitiationActions,omitempty"` } /* @@ -5232,46 +5230,46 @@ UpdateAssistantInitiationActions Method for UpdateAssistantInitiationActions @return PreviewUnderstandAssistantAssistantInitiationActions */ func (c *DefaultApiService) UpdateAssistantInitiationActions(assistantSid string, params *UpdateAssistantInitiationActionsParams) (*PreviewUnderstandAssistantAssistantInitiationActions, error) { - path := "/understand/Assistants/{AssistantSid}/InitiationActions" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path := "/understand/Assistants/{AssistantSid}/InitiationActions" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.InitiationActions != nil { - v, err := json.Marshal(params.InitiationActions) + if params != nil && params.InitiationActions != nil { + v, err := json.Marshal(params.InitiationActions) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("InitiationActions", string(v)) - } + data.Set("InitiationActions", string(v)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistantAssistantInitiationActions{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistantAssistantInitiationActions{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateAuthorizationDocumentParams Optional parameters for the method 'UpdateAuthorizationDocument' type UpdateAuthorizationDocumentParams struct { - AddressSid *string `json:"AddressSid,omitempty"` - CcEmails *[]string `json:"CcEmails,omitempty"` - ContactPhoneNumber *string `json:"ContactPhoneNumber,omitempty"` - ContactTitle *string `json:"ContactTitle,omitempty"` - Email *string `json:"Email,omitempty"` - HostedNumberOrderSids *[]string `json:"HostedNumberOrderSids,omitempty"` - Status *string `json:"Status,omitempty"` + AddressSid *string `json:"AddressSid,omitempty"` + CcEmails *[]string `json:"CcEmails,omitempty"` + ContactPhoneNumber *string `json:"ContactPhoneNumber,omitempty"` + ContactTitle *string `json:"ContactTitle,omitempty"` + Email *string `json:"Email,omitempty"` + HostedNumberOrderSids *[]string `json:"HostedNumberOrderSids,omitempty"` + Status *string `json:"Status,omitempty"` } /* @@ -5289,53 +5287,53 @@ Updates a specific AuthorizationDocument. @return PreviewHostedNumbersAuthorizationDocument */ func (c *DefaultApiService) UpdateAuthorizationDocument(sid string, params *UpdateAuthorizationDocumentParams) (*PreviewHostedNumbersAuthorizationDocument, error) { - path := "/HostedNumbers/AuthorizationDocuments/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.AddressSid != nil { - data.Set("AddressSid", *params.AddressSid) - } - if params != nil && params.CcEmails != nil { - data.Set("CcEmails", *params.CcEmails) - } - if params != nil && params.ContactPhoneNumber != nil { - data.Set("ContactPhoneNumber", *params.ContactPhoneNumber) - } - if params != nil && params.ContactTitle != nil { - data.Set("ContactTitle", *params.ContactTitle) - } - if params != nil && params.Email != nil { - data.Set("Email", *params.Email) - } - if params != nil && params.HostedNumberOrderSids != nil { - data.Set("HostedNumberOrderSids", *params.HostedNumberOrderSids) - } - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &PreviewHostedNumbersAuthorizationDocument{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/HostedNumbers/AuthorizationDocuments/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AddressSid != nil { + data.Set("AddressSid", *params.AddressSid) + } + if params != nil && params.CcEmails != nil { + data.Set("CcEmails", *params.CcEmails) + } + if params != nil && params.ContactPhoneNumber != nil { + data.Set("ContactPhoneNumber", *params.ContactPhoneNumber) + } + if params != nil && params.ContactTitle != nil { + data.Set("ContactTitle", *params.ContactTitle) + } + if params != nil && params.Email != nil { + data.Set("Email", *params.Email) + } + if params != nil && params.HostedNumberOrderSids != nil { + data.Set("HostedNumberOrderSids", *params.HostedNumberOrderSids) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewHostedNumbersAuthorizationDocument{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateCertificateParams Optional parameters for the method 'UpdateCertificate' type UpdateCertificateParams struct { - DeviceSid *string `json:"DeviceSid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` + DeviceSid *string `json:"DeviceSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -5349,39 +5347,39 @@ Update the given properties of a specific Certificate credential in the Fleet, g @return PreviewDeployedDevicesFleetCertificate */ func (c *DefaultApiService) UpdateCertificate(fleetSid string, sid string, params *UpdateCertificateParams) (*PreviewDeployedDevicesFleetCertificate, error) { - path := "/DeployedDevices/Fleets/{FleetSid}/Certificates/{Sid}" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/DeployedDevices/Fleets/{FleetSid}/Certificates/{Sid}" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.DeviceSid != nil { - data.Set("DeviceSid", *params.DeviceSid) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + if params != nil && params.DeviceSid != nil { + data.Set("DeviceSid", *params.DeviceSid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewDeployedDevicesFleetCertificate{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewDeployedDevicesFleetCertificate{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateDeploymentParams Optional parameters for the method 'UpdateDeployment' type UpdateDeploymentParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - SyncServiceSid *string `json:"SyncServiceSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + SyncServiceSid *string `json:"SyncServiceSid,omitempty"` } /* @@ -5395,41 +5393,41 @@ Update the given properties of a specific Deployment credential in the Fleet, gi @return PreviewDeployedDevicesFleetDeployment */ func (c *DefaultApiService) UpdateDeployment(fleetSid string, sid string, params *UpdateDeploymentParams) (*PreviewDeployedDevicesFleetDeployment, error) { - path := "/DeployedDevices/Fleets/{FleetSid}/Deployments/{Sid}" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/DeployedDevices/Fleets/{FleetSid}/Deployments/{Sid}" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.SyncServiceSid != nil { - data.Set("SyncServiceSid", *params.SyncServiceSid) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.SyncServiceSid != nil { + data.Set("SyncServiceSid", *params.SyncServiceSid) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewDeployedDevicesFleetDeployment{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewDeployedDevicesFleetDeployment{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateDeviceParams Optional parameters for the method 'UpdateDevice' type UpdateDeviceParams struct { - DeploymentSid *string `json:"DeploymentSid,omitempty"` - Enabled *bool `json:"Enabled,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Identity *string `json:"Identity,omitempty"` + DeploymentSid *string `json:"DeploymentSid,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Identity *string `json:"Identity,omitempty"` } /* @@ -5445,45 +5443,45 @@ Update the given properties of a specific Device in the Fleet, giving it a frien @return PreviewDeployedDevicesFleetDevice */ func (c *DefaultApiService) UpdateDevice(fleetSid string, sid string, params *UpdateDeviceParams) (*PreviewDeployedDevicesFleetDevice, error) { - path := "/DeployedDevices/Fleets/{FleetSid}/Devices/{Sid}" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/DeployedDevices/Fleets/{FleetSid}/Devices/{Sid}" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.DeploymentSid != nil { - data.Set("DeploymentSid", *params.DeploymentSid) - } - if params != nil && params.Enabled != nil { - data.Set("Enabled", string(*params.Enabled)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) - } + if params != nil && params.DeploymentSid != nil { + data.Set("DeploymentSid", *params.DeploymentSid) + } + if params != nil && params.Enabled != nil { + data.Set("Enabled", string(*params.Enabled)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewDeployedDevicesFleetDevice{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewDeployedDevicesFleetDevice{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateDocumentParams Optional parameters for the method 'UpdateDocument' type UpdateDocumentParams struct { - If-Match *string `json:"If-Match,omitempty"` - Data *map[string]interface{} `json:"Data,omitempty"` + If-Match *string `json:"If-Match,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` } /* @@ -5496,46 +5494,46 @@ UpdateDocument Method for UpdateDocument @return PreviewSyncServiceDocument */ func (c *DefaultApiService) UpdateDocument(serviceSid string, sid string, params *UpdateDocumentParams) (*PreviewSyncServiceDocument, error) { - path := "/Sync/Services/{ServiceSid}/Documents/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/Sync/Services/{ServiceSid}/Documents/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := make(map[string]interface{}) + data := url.Values{} + headers := make(map[string]interface{}) - if params != nil && params.Data != nil { - v, err := json.Marshal(params.Data) + if params != nil && params.Data != nil { + v, err := json.Marshal(params.Data) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("Data", string(v)) - } + data.Set("Data", string(v)) + } - if params != nil && params.If-Match != nil { - headers["If-Match"] = *params.If-Match - } + if params != nil && params.If-Match != nil { + headers["If-Match"] = *params.If-Match + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewSyncServiceDocument{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewSyncServiceDocument{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateDocumentPermissionParams Optional parameters for the method 'UpdateDocumentPermission' type UpdateDocumentPermissionParams struct { - Manage *bool `json:"Manage,omitempty"` - Read *bool `json:"Read,omitempty"` - Write *bool `json:"Write,omitempty"` + Manage *bool `json:"Manage,omitempty"` + Read *bool `json:"Read,omitempty"` + Write *bool `json:"Write,omitempty"` } /* @@ -5551,44 +5549,44 @@ Update an identity's access to a specific Sync Document. @return PreviewSyncServiceDocumentDocumentPermission */ func (c *DefaultApiService) UpdateDocumentPermission(serviceSid string, documentSid string, identity string, params *UpdateDocumentPermissionParams) (*PreviewSyncServiceDocumentDocumentPermission, error) { - path := "/Sync/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"DocumentSid"+"}", documentSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path := "/Sync/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"DocumentSid"+"}", documentSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Manage != nil { - data.Set("Manage", string(*params.Manage)) - } - if params != nil && params.Read != nil { - data.Set("Read", string(*params.Read)) - } - if params != nil && params.Write != nil { - data.Set("Write", string(*params.Write)) - } + if params != nil && params.Manage != nil { + data.Set("Manage", string(*params.Manage)) + } + if params != nil && params.Read != nil { + data.Set("Read", string(*params.Read)) + } + if params != nil && params.Write != nil { + data.Set("Write", string(*params.Write)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewSyncServiceDocumentDocumentPermission{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewSyncServiceDocumentDocumentPermission{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateExportConfigurationParams Optional parameters for the method 'UpdateExportConfiguration' type UpdateExportConfigurationParams struct { - Enabled *bool `json:"Enabled,omitempty"` - WebhookMethod *string `json:"WebhookMethod,omitempty"` - WebhookUrl *string `json:"WebhookUrl,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + WebhookMethod *string `json:"WebhookMethod,omitempty"` + WebhookUrl *string `json:"WebhookUrl,omitempty"` } /* @@ -5602,41 +5600,41 @@ Update a specific Export Configuration. @return PreviewBulkExportsExportConfiguration */ func (c *DefaultApiService) UpdateExportConfiguration(resourceType string, params *UpdateExportConfigurationParams) (*PreviewBulkExportsExportConfiguration, error) { - path := "/BulkExports/Exports/{ResourceType}/Configuration" - path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + path := "/BulkExports/Exports/{ResourceType}/Configuration" + path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Enabled != nil { - data.Set("Enabled", string(*params.Enabled)) - } - if params != nil && params.WebhookMethod != nil { - data.Set("WebhookMethod", *params.WebhookMethod) - } - if params != nil && params.WebhookUrl != nil { - data.Set("WebhookUrl", *params.WebhookUrl) - } + if params != nil && params.Enabled != nil { + data.Set("Enabled", string(*params.Enabled)) + } + if params != nil && params.WebhookMethod != nil { + data.Set("WebhookMethod", *params.WebhookMethod) + } + if params != nil && params.WebhookUrl != nil { + data.Set("WebhookUrl", *params.WebhookUrl) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewBulkExportsExportConfiguration{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewBulkExportsExportConfiguration{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateFieldTypeParams Optional parameters for the method 'UpdateFieldType' type UpdateFieldTypeParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -5649,39 +5647,39 @@ UpdateFieldType Method for UpdateFieldType @return PreviewUnderstandAssistantFieldType */ func (c *DefaultApiService) UpdateFieldType(assistantSid string, sid string, params *UpdateFieldTypeParams) (*PreviewUnderstandAssistantFieldType, error) { - path := "/understand/Assistants/{AssistantSid}/FieldTypes/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/understand/Assistants/{AssistantSid}/FieldTypes/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistantFieldType{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistantFieldType{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateFleetParams Optional parameters for the method 'UpdateFleet' type UpdateFleetParams struct { - DefaultDeploymentSid *string `json:"DefaultDeploymentSid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` + DefaultDeploymentSid *string `json:"DefaultDeploymentSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -5694,46 +5692,46 @@ Update the friendly name property of a specific Fleet in your account. @return PreviewDeployedDevicesFleet */ func (c *DefaultApiService) UpdateFleet(sid string, params *UpdateFleetParams) (*PreviewDeployedDevicesFleet, error) { - path := "/DeployedDevices/Fleets/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/DeployedDevices/Fleets/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.DefaultDeploymentSid != nil { - data.Set("DefaultDeploymentSid", *params.DefaultDeploymentSid) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + if params != nil && params.DefaultDeploymentSid != nil { + data.Set("DefaultDeploymentSid", *params.DefaultDeploymentSid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewDeployedDevicesFleet{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewDeployedDevicesFleet{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateHostedNumberOrderParams Optional parameters for the method 'UpdateHostedNumberOrder' type UpdateHostedNumberOrderParams struct { - CallDelay *int32 `json:"CallDelay,omitempty"` - CcEmails *[]string `json:"CcEmails,omitempty"` - Email *string `json:"Email,omitempty"` - Extension *string `json:"Extension,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Status *string `json:"Status,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` - VerificationCode *string `json:"VerificationCode,omitempty"` - VerificationDocumentSid *string `json:"VerificationDocumentSid,omitempty"` - VerificationType *string `json:"VerificationType,omitempty"` + CallDelay *int32 `json:"CallDelay,omitempty"` + CcEmails *[]string `json:"CcEmails,omitempty"` + Email *string `json:"Email,omitempty"` + Extension *string `json:"Extension,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Status *string `json:"Status,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + VerificationCode *string `json:"VerificationCode,omitempty"` + VerificationDocumentSid *string `json:"VerificationDocumentSid,omitempty"` + VerificationType *string `json:"VerificationType,omitempty"` } /* @@ -5754,62 +5752,62 @@ Updates a specific HostedNumberOrder. @return PreviewHostedNumbersHostedNumberOrder */ func (c *DefaultApiService) UpdateHostedNumberOrder(sid string, params *UpdateHostedNumberOrderParams) (*PreviewHostedNumbersHostedNumberOrder, error) { - path := "/HostedNumbers/HostedNumberOrders/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.CallDelay != nil { - data.Set("CallDelay", string(*params.CallDelay)) - } - if params != nil && params.CcEmails != nil { - data.Set("CcEmails", *params.CcEmails) - } - if params != nil && params.Email != nil { - data.Set("Email", *params.Email) - } - if params != nil && params.Extension != nil { - data.Set("Extension", *params.Extension) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } - if params != nil && params.VerificationCode != nil { - data.Set("VerificationCode", *params.VerificationCode) - } - if params != nil && params.VerificationDocumentSid != nil { - data.Set("VerificationDocumentSid", *params.VerificationDocumentSid) - } - if params != nil && params.VerificationType != nil { - data.Set("VerificationType", *params.VerificationType) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &PreviewHostedNumbersHostedNumberOrder{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/HostedNumbers/HostedNumberOrders/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CallDelay != nil { + data.Set("CallDelay", string(*params.CallDelay)) + } + if params != nil && params.CcEmails != nil { + data.Set("CcEmails", *params.CcEmails) + } + if params != nil && params.Email != nil { + data.Set("Email", *params.Email) + } + if params != nil && params.Extension != nil { + data.Set("Extension", *params.Extension) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + if params != nil && params.VerificationCode != nil { + data.Set("VerificationCode", *params.VerificationCode) + } + if params != nil && params.VerificationDocumentSid != nil { + data.Set("VerificationDocumentSid", *params.VerificationDocumentSid) + } + if params != nil && params.VerificationType != nil { + data.Set("VerificationType", *params.VerificationType) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewHostedNumbersHostedNumberOrder{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateInstalledAddOnParams Optional parameters for the method 'UpdateInstalledAddOn' type UpdateInstalledAddOnParams struct { - Configuration *map[string]interface{} `json:"Configuration,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + Configuration *map[string]interface{} `json:"Configuration,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -5822,43 +5820,43 @@ Update an Add-on installation for the Account specified. @return PreviewMarketplaceInstalledAddOn */ func (c *DefaultApiService) UpdateInstalledAddOn(sid string, params *UpdateInstalledAddOnParams) (*PreviewMarketplaceInstalledAddOn, error) { - path := "/marketplace/InstalledAddOns/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/marketplace/InstalledAddOns/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Configuration != nil { - v, err := json.Marshal(params.Configuration) + if params != nil && params.Configuration != nil { + v, err := json.Marshal(params.Configuration) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("Configuration", string(v)) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } + data.Set("Configuration", string(v)) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewMarketplaceInstalledAddOn{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewMarketplaceInstalledAddOn{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateInstalledAddOnExtensionParams Optional parameters for the method 'UpdateInstalledAddOnExtension' type UpdateInstalledAddOnExtensionParams struct { - Enabled *bool `json:"Enabled,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` } /* @@ -5871,36 +5869,36 @@ Update an Extension for an Add-on installation. @return PreviewMarketplaceInstalledAddOnInstalledAddOnExtension */ func (c *DefaultApiService) UpdateInstalledAddOnExtension(installedAddOnSid string, sid string, params *UpdateInstalledAddOnExtensionParams) (*PreviewMarketplaceInstalledAddOnInstalledAddOnExtension, error) { - path := "/marketplace/InstalledAddOns/{InstalledAddOnSid}/Extensions/{Sid}" - path = strings.Replace(path, "{"+"InstalledAddOnSid"+"}", installedAddOnSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/marketplace/InstalledAddOns/{InstalledAddOnSid}/Extensions/{Sid}" + path = strings.Replace(path, "{"+"InstalledAddOnSid"+"}", installedAddOnSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Enabled != nil { - data.Set("Enabled", string(*params.Enabled)) - } + if params != nil && params.Enabled != nil { + data.Set("Enabled", string(*params.Enabled)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewMarketplaceInstalledAddOnInstalledAddOnExtension{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewMarketplaceInstalledAddOnInstalledAddOnExtension{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateKeyParams Optional parameters for the method 'UpdateKey' type UpdateKeyParams struct { - DeviceSid *string `json:"DeviceSid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` + DeviceSid *string `json:"DeviceSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -5914,38 +5912,38 @@ Update the given properties of a specific Key credential in the Fleet, giving it @return PreviewDeployedDevicesFleetKey */ func (c *DefaultApiService) UpdateKey(fleetSid string, sid string, params *UpdateKeyParams) (*PreviewDeployedDevicesFleetKey, error) { - path := "/DeployedDevices/Fleets/{FleetSid}/Keys/{Sid}" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/DeployedDevices/Fleets/{FleetSid}/Keys/{Sid}" + path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.DeviceSid != nil { - data.Set("DeviceSid", *params.DeviceSid) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + if params != nil && params.DeviceSid != nil { + data.Set("DeviceSid", *params.DeviceSid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewDeployedDevicesFleetKey{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewDeployedDevicesFleetKey{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateModelBuildParams Optional parameters for the method 'UpdateModelBuild' type UpdateModelBuildParams struct { - UniqueName *string `json:"UniqueName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -5957,36 +5955,36 @@ UpdateModelBuild Method for UpdateModelBuild @return PreviewUnderstandAssistantModelBuild */ func (c *DefaultApiService) UpdateModelBuild(assistantSid string, sid string, params *UpdateModelBuildParams) (*PreviewUnderstandAssistantModelBuild, error) { - path := "/understand/Assistants/{AssistantSid}/ModelBuilds/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/understand/Assistants/{AssistantSid}/ModelBuilds/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistantModelBuild{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistantModelBuild{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateQueryParams Optional parameters for the method 'UpdateQuery' type UpdateQueryParams struct { - SampleSid *string `json:"SampleSid,omitempty"` - Status *string `json:"Status,omitempty"` + SampleSid *string `json:"SampleSid,omitempty"` + Status *string `json:"Status,omitempty"` } /* @@ -5999,39 +5997,39 @@ UpdateQuery Method for UpdateQuery @return PreviewUnderstandAssistantQuery */ func (c *DefaultApiService) UpdateQuery(assistantSid string, sid string, params *UpdateQueryParams) (*PreviewUnderstandAssistantQuery, error) { - path := "/understand/Assistants/{AssistantSid}/Queries/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/understand/Assistants/{AssistantSid}/Queries/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.SampleSid != nil { - data.Set("SampleSid", *params.SampleSid) - } - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } + if params != nil && params.SampleSid != nil { + data.Set("SampleSid", *params.SampleSid) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistantQuery{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistantQuery{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateRatePlanParams Optional parameters for the method 'UpdateRatePlan' type UpdateRatePlanParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -6043,39 +6041,39 @@ UpdateRatePlan Method for UpdateRatePlan @return PreviewWirelessRatePlan */ func (c *DefaultApiService) UpdateRatePlan(sid string, params *UpdateRatePlanParams) (*PreviewWirelessRatePlan, error) { - path := "/wireless/RatePlans/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/wireless/RatePlans/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewWirelessRatePlan{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewWirelessRatePlan{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateSampleParams Optional parameters for the method 'UpdateSample' type UpdateSampleParams struct { - Language *string `json:"Language,omitempty"` - SourceChannel *string `json:"SourceChannel,omitempty"` - TaggedText *string `json:"TaggedText,omitempty"` + Language *string `json:"Language,omitempty"` + SourceChannel *string `json:"SourceChannel,omitempty"` + TaggedText *string `json:"TaggedText,omitempty"` } /* @@ -6090,45 +6088,45 @@ UpdateSample Method for UpdateSample @return PreviewUnderstandAssistantTaskSample */ func (c *DefaultApiService) UpdateSample(assistantSid string, taskSid string, sid string, params *UpdateSampleParams) (*PreviewUnderstandAssistantTaskSample, error) { - path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Language != nil { - data.Set("Language", *params.Language) - } - if params != nil && params.SourceChannel != nil { - data.Set("SourceChannel", *params.SourceChannel) - } - if params != nil && params.TaggedText != nil { - data.Set("TaggedText", *params.TaggedText) - } + if params != nil && params.Language != nil { + data.Set("Language", *params.Language) + } + if params != nil && params.SourceChannel != nil { + data.Set("SourceChannel", *params.SourceChannel) + } + if params != nil && params.TaggedText != nil { + data.Set("TaggedText", *params.TaggedText) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistantTaskSample{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistantTaskSample{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateServiceParams Optional parameters for the method 'UpdateService' type UpdateServiceParams struct { - AclEnabled *bool `json:"AclEnabled,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - ReachabilityWebhooksEnabled *bool `json:"ReachabilityWebhooksEnabled,omitempty"` - WebhookUrl *string `json:"WebhookUrl,omitempty"` + AclEnabled *bool `json:"AclEnabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + ReachabilityWebhooksEnabled *bool `json:"ReachabilityWebhooksEnabled,omitempty"` + WebhookUrl *string `json:"WebhookUrl,omitempty"` } /* @@ -6142,58 +6140,58 @@ UpdateService Method for UpdateService @return PreviewSyncService */ func (c *DefaultApiService) UpdateService(sid string, params *UpdateServiceParams) (*PreviewSyncService, error) { - path := "/Sync/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/Sync/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.AclEnabled != nil { - data.Set("AclEnabled", string(*params.AclEnabled)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.ReachabilityWebhooksEnabled != nil { - data.Set("ReachabilityWebhooksEnabled", string(*params.ReachabilityWebhooksEnabled)) - } - if params != nil && params.WebhookUrl != nil { - data.Set("WebhookUrl", *params.WebhookUrl) - } + if params != nil && params.AclEnabled != nil { + data.Set("AclEnabled", string(*params.AclEnabled)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.ReachabilityWebhooksEnabled != nil { + data.Set("ReachabilityWebhooksEnabled", string(*params.ReachabilityWebhooksEnabled)) + } + if params != nil && params.WebhookUrl != nil { + data.Set("WebhookUrl", *params.WebhookUrl) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewSyncService{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewSyncService{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateSimParams Optional parameters for the method 'UpdateSim' type UpdateSimParams struct { - CallbackMethod *string `json:"CallbackMethod,omitempty"` - CallbackUrl *string `json:"CallbackUrl,omitempty"` - CommandsCallbackMethod *string `json:"CommandsCallbackMethod,omitempty"` - CommandsCallbackUrl *string `json:"CommandsCallbackUrl,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - RatePlan *string `json:"RatePlan,omitempty"` - SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` - SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` - SmsMethod *string `json:"SmsMethod,omitempty"` - SmsUrl *string `json:"SmsUrl,omitempty"` - Status *string `json:"Status,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` - VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` - VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` - VoiceMethod *string `json:"VoiceMethod,omitempty"` - VoiceUrl *string `json:"VoiceUrl,omitempty"` + CallbackMethod *string `json:"CallbackMethod,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + CommandsCallbackMethod *string `json:"CommandsCallbackMethod,omitempty"` + CommandsCallbackUrl *string `json:"CommandsCallbackUrl,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + RatePlan *string `json:"RatePlan,omitempty"` + SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` + SmsMethod *string `json:"SmsMethod,omitempty"` + SmsUrl *string `json:"SmsUrl,omitempty"` + Status *string `json:"Status,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` } /* @@ -6219,79 +6217,79 @@ UpdateSim Method for UpdateSim @return PreviewWirelessSim */ func (c *DefaultApiService) UpdateSim(sid string, params *UpdateSimParams) (*PreviewWirelessSim, error) { - path := "/wireless/Sims/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.CallbackMethod != nil { - data.Set("CallbackMethod", *params.CallbackMethod) - } - if params != nil && params.CallbackUrl != nil { - data.Set("CallbackUrl", *params.CallbackUrl) - } - if params != nil && params.CommandsCallbackMethod != nil { - data.Set("CommandsCallbackMethod", *params.CommandsCallbackMethod) - } - if params != nil && params.CommandsCallbackUrl != nil { - data.Set("CommandsCallbackUrl", *params.CommandsCallbackUrl) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.RatePlan != nil { - data.Set("RatePlan", *params.RatePlan) - } - if params != nil && params.SmsFallbackMethod != nil { - data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) - } - if params != nil && params.SmsFallbackUrl != nil { - data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) - } - if params != nil && params.SmsMethod != nil { - data.Set("SmsMethod", *params.SmsMethod) - } - if params != nil && params.SmsUrl != nil { - data.Set("SmsUrl", *params.SmsUrl) - } - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } - if params != nil && params.VoiceFallbackMethod != nil { - data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) - } - if params != nil && params.VoiceFallbackUrl != nil { - data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) - } - if params != nil && params.VoiceMethod != nil { - data.Set("VoiceMethod", *params.VoiceMethod) - } - if params != nil && params.VoiceUrl != nil { - data.Set("VoiceUrl", *params.VoiceUrl) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &PreviewWirelessSim{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/wireless/Sims/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CallbackMethod != nil { + data.Set("CallbackMethod", *params.CallbackMethod) + } + if params != nil && params.CallbackUrl != nil { + data.Set("CallbackUrl", *params.CallbackUrl) + } + if params != nil && params.CommandsCallbackMethod != nil { + data.Set("CommandsCallbackMethod", *params.CommandsCallbackMethod) + } + if params != nil && params.CommandsCallbackUrl != nil { + data.Set("CommandsCallbackUrl", *params.CommandsCallbackUrl) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.RatePlan != nil { + data.Set("RatePlan", *params.RatePlan) + } + if params != nil && params.SmsFallbackMethod != nil { + data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) + } + if params != nil && params.SmsFallbackUrl != nil { + data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) + } + if params != nil && params.SmsMethod != nil { + data.Set("SmsMethod", *params.SmsMethod) + } + if params != nil && params.SmsUrl != nil { + data.Set("SmsUrl", *params.SmsUrl) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + if params != nil && params.VoiceFallbackMethod != nil { + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + } + if params != nil && params.VoiceFallbackUrl != nil { + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + } + if params != nil && params.VoiceMethod != nil { + data.Set("VoiceMethod", *params.VoiceMethod) + } + if params != nil && params.VoiceUrl != nil { + data.Set("VoiceUrl", *params.VoiceUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &PreviewWirelessSim{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateStyleSheetParams Optional parameters for the method 'UpdateStyleSheet' type UpdateStyleSheetParams struct { - StyleSheet *map[string]interface{} `json:"StyleSheet,omitempty"` + StyleSheet *map[string]interface{} `json:"StyleSheet,omitempty"` } /* @@ -6303,41 +6301,41 @@ Updates the style sheet for an assistant identified by {AssistantSid} or {Assist @return PreviewUnderstandAssistantStyleSheet */ func (c *DefaultApiService) UpdateStyleSheet(assistantSid string, params *UpdateStyleSheetParams) (*PreviewUnderstandAssistantStyleSheet, error) { - path := "/understand/Assistants/{AssistantSid}/StyleSheet" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path := "/understand/Assistants/{AssistantSid}/StyleSheet" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.StyleSheet != nil { - v, err := json.Marshal(params.StyleSheet) + if params != nil && params.StyleSheet != nil { + v, err := json.Marshal(params.StyleSheet) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("StyleSheet", string(v)) - } + data.Set("StyleSheet", string(v)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistantStyleSheet{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistantStyleSheet{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateSyncListItemParams Optional parameters for the method 'UpdateSyncListItem' type UpdateSyncListItemParams struct { - If-Match *string `json:"If-Match,omitempty"` - Data *map[string]interface{} `json:"Data,omitempty"` + If-Match *string `json:"If-Match,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` } /* @@ -6351,47 +6349,47 @@ UpdateSyncListItem Method for UpdateSyncListItem @return PreviewSyncServiceSyncListSyncListItem */ func (c *DefaultApiService) UpdateSyncListItem(serviceSid string, listSid string, index int32, params *UpdateSyncListItemParams) (*PreviewSyncServiceSyncListSyncListItem, error) { - path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) - path = strings.Replace(path, "{"+"Index"+"}", index, -1) + path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + path = strings.Replace(path, "{"+"Index"+"}", index, -1) - data := url.Values{} - headers := make(map[string]interface{}) + data := url.Values{} + headers := make(map[string]interface{}) - if params != nil && params.Data != nil { - v, err := json.Marshal(params.Data) + if params != nil && params.Data != nil { + v, err := json.Marshal(params.Data) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("Data", string(v)) - } + data.Set("Data", string(v)) + } - if params != nil && params.If-Match != nil { - headers["If-Match"] = *params.If-Match - } + if params != nil && params.If-Match != nil { + headers["If-Match"] = *params.If-Match + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewSyncServiceSyncListSyncListItem{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewSyncServiceSyncListSyncListItem{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateSyncListPermissionParams Optional parameters for the method 'UpdateSyncListPermission' type UpdateSyncListPermissionParams struct { - Manage *bool `json:"Manage,omitempty"` - Read *bool `json:"Read,omitempty"` - Write *bool `json:"Write,omitempty"` + Manage *bool `json:"Manage,omitempty"` + Read *bool `json:"Read,omitempty"` + Write *bool `json:"Write,omitempty"` } /* @@ -6407,43 +6405,43 @@ Update an identity's access to a specific Sync List. @return PreviewSyncServiceSyncListSyncListPermission */ func (c *DefaultApiService) UpdateSyncListPermission(serviceSid string, listSid string, identity string, params *UpdateSyncListPermissionParams) (*PreviewSyncServiceSyncListSyncListPermission, error) { - path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Manage != nil { - data.Set("Manage", string(*params.Manage)) - } - if params != nil && params.Read != nil { - data.Set("Read", string(*params.Read)) - } - if params != nil && params.Write != nil { - data.Set("Write", string(*params.Write)) - } + if params != nil && params.Manage != nil { + data.Set("Manage", string(*params.Manage)) + } + if params != nil && params.Read != nil { + data.Set("Read", string(*params.Read)) + } + if params != nil && params.Write != nil { + data.Set("Write", string(*params.Write)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewSyncServiceSyncListSyncListPermission{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewSyncServiceSyncListSyncListPermission{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateSyncMapItemParams Optional parameters for the method 'UpdateSyncMapItem' type UpdateSyncMapItemParams struct { - If-Match *string `json:"If-Match,omitempty"` - Data *map[string]interface{} `json:"Data,omitempty"` + If-Match *string `json:"If-Match,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` } /* @@ -6457,47 +6455,47 @@ UpdateSyncMapItem Method for UpdateSyncMapItem @return PreviewSyncServiceSyncMapSyncMapItem */ func (c *DefaultApiService) UpdateSyncMapItem(serviceSid string, mapSid string, key string, params *UpdateSyncMapItemParams) (*PreviewSyncServiceSyncMapSyncMapItem, error) { - path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) - path = strings.Replace(path, "{"+"Key"+"}", key, -1) + path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + path = strings.Replace(path, "{"+"Key"+"}", key, -1) - data := url.Values{} - headers := make(map[string]interface{}) + data := url.Values{} + headers := make(map[string]interface{}) - if params != nil && params.Data != nil { - v, err := json.Marshal(params.Data) + if params != nil && params.Data != nil { + v, err := json.Marshal(params.Data) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("Data", string(v)) - } + data.Set("Data", string(v)) + } - if params != nil && params.If-Match != nil { - headers["If-Match"] = *params.If-Match - } + if params != nil && params.If-Match != nil { + headers["If-Match"] = *params.If-Match + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewSyncServiceSyncMapSyncMapItem{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewSyncServiceSyncMapSyncMapItem{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateSyncMapPermissionParams Optional parameters for the method 'UpdateSyncMapPermission' type UpdateSyncMapPermissionParams struct { - Manage *bool `json:"Manage,omitempty"` - Read *bool `json:"Read,omitempty"` - Write *bool `json:"Write,omitempty"` + Manage *bool `json:"Manage,omitempty"` + Read *bool `json:"Read,omitempty"` + Write *bool `json:"Write,omitempty"` } /* @@ -6513,45 +6511,45 @@ Update an identity's access to a specific Sync Map. @return PreviewSyncServiceSyncMapSyncMapPermission */ func (c *DefaultApiService) UpdateSyncMapPermission(serviceSid string, mapSid string, identity string, params *UpdateSyncMapPermissionParams) (*PreviewSyncServiceSyncMapSyncMapPermission, error) { - path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Manage != nil { - data.Set("Manage", string(*params.Manage)) - } - if params != nil && params.Read != nil { - data.Set("Read", string(*params.Read)) - } - if params != nil && params.Write != nil { - data.Set("Write", string(*params.Write)) - } + if params != nil && params.Manage != nil { + data.Set("Manage", string(*params.Manage)) + } + if params != nil && params.Read != nil { + data.Set("Read", string(*params.Read)) + } + if params != nil && params.Write != nil { + data.Set("Write", string(*params.Write)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewSyncServiceSyncMapSyncMapPermission{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewSyncServiceSyncMapSyncMapPermission{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateTaskParams Optional parameters for the method 'UpdateTask' type UpdateTaskParams struct { - Actions *map[string]interface{} `json:"Actions,omitempty"` - ActionsUrl *string `json:"ActionsUrl,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + Actions *map[string]interface{} `json:"Actions,omitempty"` + ActionsUrl *string `json:"ActionsUrl,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -6566,50 +6564,50 @@ UpdateTask Method for UpdateTask @return PreviewUnderstandAssistantTask */ func (c *DefaultApiService) UpdateTask(assistantSid string, sid string, params *UpdateTaskParams) (*PreviewUnderstandAssistantTask, error) { - path := "/understand/Assistants/{AssistantSid}/Tasks/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/understand/Assistants/{AssistantSid}/Tasks/{Sid}" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Actions != nil { - v, err := json.Marshal(params.Actions) + if params != nil && params.Actions != nil { + v, err := json.Marshal(params.Actions) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("Actions", string(v)) - } - if params != nil && params.ActionsUrl != nil { - data.Set("ActionsUrl", *params.ActionsUrl) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } + data.Set("Actions", string(v)) + } + if params != nil && params.ActionsUrl != nil { + data.Set("ActionsUrl", *params.ActionsUrl) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistantTask{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistantTask{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateTaskActionsParams Optional parameters for the method 'UpdateTaskActions' type UpdateTaskActionsParams struct { - Actions *map[string]interface{} `json:"Actions,omitempty"` + Actions *map[string]interface{} `json:"Actions,omitempty"` } /* @@ -6622,35 +6620,35 @@ Updates the actions of an Task identified by {TaskSid} or {TaskUniqueName}. @return PreviewUnderstandAssistantTaskTaskActions */ func (c *DefaultApiService) UpdateTaskActions(assistantSid string, taskSid string, params *UpdateTaskActionsParams) (*PreviewUnderstandAssistantTaskTaskActions, error) { - path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Actions" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Actions" + path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Actions != nil { - v, err := json.Marshal(params.Actions) + if params != nil && params.Actions != nil { + v, err := json.Marshal(params.Actions) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("Actions", string(v)) - } + data.Set("Actions", string(v)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PreviewUnderstandAssistantTaskTaskActions{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PreviewUnderstandAssistantTaskTaskActions{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } diff --git a/rest/preview/response.go b/rest/preview/response.go index f7270d6f7..f5b476d47 100644 --- a/rest/preview/response.go +++ b/rest/preview/response.go @@ -32,16 +32,14 @@ type APIResponse struct { Payload []byte `json:"-"` } -// Response returns a new APIResponse object. -func Response(r *http.Response) *APIResponse { - +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { response := &APIResponse{Response: r} return response } -// ResponseWithError returns a new APIResponse object with the provided error message. -func ResponseWithError(errorMessage string) *APIResponse { - +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { response := &APIResponse{Message: errorMessage} return response } diff --git a/rest/pricing/v1/api_default.go b/rest/pricing/v1/api_default.go index 3f5282f2f..710abeec1 100644 --- a/rest/pricing/v1/api_default.go +++ b/rest/pricing/v1/api_default.go @@ -13,22 +13,20 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type DefaultApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewDefaultApiService(client *twilio.Client) *DefaultApiService { - return &DefaultApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &DefaultApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } /* @@ -37,27 +35,27 @@ FetchMessagingCountry Method for FetchMessagingCountry @return PricingV1MessagingMessagingCountryInstance */ func (c *DefaultApiService) FetchMessagingCountry(isoCountry string) (*PricingV1MessagingMessagingCountryInstance, error) { - path := "/v1/Messaging/Countries/{IsoCountry}" - path = strings.Replace(path, "{"+"IsoCountry"+"}", isoCountry, -1) + path := "/v1/Messaging/Countries/{IsoCountry}" + path = strings.Replace(path, "{"+"IsoCountry"+"}", isoCountry, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PricingV1MessagingMessagingCountryInstance{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PricingV1MessagingMessagingCountryInstance{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -66,27 +64,27 @@ FetchPhoneNumberCountry Method for FetchPhoneNumberCountry @return PricingV1PhoneNumberPhoneNumberCountryInstance */ func (c *DefaultApiService) FetchPhoneNumberCountry(isoCountry string) (*PricingV1PhoneNumberPhoneNumberCountryInstance, error) { - path := "/v1/PhoneNumbers/Countries/{IsoCountry}" - path = strings.Replace(path, "{"+"IsoCountry"+"}", isoCountry, -1) + path := "/v1/PhoneNumbers/Countries/{IsoCountry}" + path = strings.Replace(path, "{"+"IsoCountry"+"}", isoCountry, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PricingV1PhoneNumberPhoneNumberCountryInstance{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PricingV1PhoneNumberPhoneNumberCountryInstance{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -95,27 +93,27 @@ FetchVoiceCountry Method for FetchVoiceCountry @return PricingV1VoiceVoiceCountryInstance */ func (c *DefaultApiService) FetchVoiceCountry(isoCountry string) (*PricingV1VoiceVoiceCountryInstance, error) { - path := "/v1/Voice/Countries/{IsoCountry}" - path = strings.Replace(path, "{"+"IsoCountry"+"}", isoCountry, -1) + path := "/v1/Voice/Countries/{IsoCountry}" + path = strings.Replace(path, "{"+"IsoCountry"+"}", isoCountry, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PricingV1VoiceVoiceCountryInstance{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PricingV1VoiceVoiceCountryInstance{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -124,31 +122,31 @@ FetchVoiceNumber Method for FetchVoiceNumber @return PricingV1VoiceVoiceNumber */ func (c *DefaultApiService) FetchVoiceNumber(number string) (*PricingV1VoiceVoiceNumber, error) { - path := "/v1/Voice/Numbers/{Number}" - path = strings.Replace(path, "{"+"Number"+"}", number, -1) + path := "/v1/Voice/Numbers/{Number}" + path = strings.Replace(path, "{"+"Number"+"}", number, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PricingV1VoiceVoiceNumber{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PricingV1VoiceVoiceNumber{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListMessagingCountryParams Optional parameters for the method 'ListMessagingCountry' type ListMessagingCountryParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -158,33 +156,33 @@ ListMessagingCountry Method for ListMessagingCountry @return PricingV1MessagingMessagingCountryReadResponse */ func (c *DefaultApiService) ListMessagingCountry(params *ListMessagingCountryParams) (*PricingV1MessagingMessagingCountryReadResponse, error) { - path := "/v1/Messaging/Countries" + path := "/v1/Messaging/Countries" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PricingV1MessagingMessagingCountryReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PricingV1MessagingMessagingCountryReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListPhoneNumberCountryParams Optional parameters for the method 'ListPhoneNumberCountry' type ListPhoneNumberCountryParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -194,33 +192,33 @@ ListPhoneNumberCountry Method for ListPhoneNumberCountry @return PricingV1PhoneNumberPhoneNumberCountryReadResponse */ func (c *DefaultApiService) ListPhoneNumberCountry(params *ListPhoneNumberCountryParams) (*PricingV1PhoneNumberPhoneNumberCountryReadResponse, error) { - path := "/v1/PhoneNumbers/Countries" + path := "/v1/PhoneNumbers/Countries" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PricingV1PhoneNumberPhoneNumberCountryReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PricingV1PhoneNumberPhoneNumberCountryReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListVoiceCountryParams Optional parameters for the method 'ListVoiceCountry' type ListVoiceCountryParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -230,27 +228,27 @@ ListVoiceCountry Method for ListVoiceCountry @return PricingV1VoiceVoiceCountryReadResponse */ func (c *DefaultApiService) ListVoiceCountry(params *ListVoiceCountryParams) (*PricingV1VoiceVoiceCountryReadResponse, error) { - path := "/v1/Voice/Countries" + path := "/v1/Voice/Countries" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PricingV1VoiceVoiceCountryReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PricingV1VoiceVoiceCountryReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } diff --git a/rest/pricing/v1/response.go b/rest/pricing/v1/response.go index cc22e0481..c111fbe94 100644 --- a/rest/pricing/v1/response.go +++ b/rest/pricing/v1/response.go @@ -32,16 +32,14 @@ type APIResponse struct { Payload []byte `json:"-"` } -// Response returns a new APIResponse object. -func Response(r *http.Response) *APIResponse { - +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { response := &APIResponse{Response: r} return response } -// ResponseWithError returns a new APIResponse object with the provided error message. -func ResponseWithError(errorMessage string) *APIResponse { - +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { response := &APIResponse{Message: errorMessage} return response } diff --git a/rest/pricing/v2/api_default.go b/rest/pricing/v2/api_default.go index c2cd6cb9e..62c1d877f 100644 --- a/rest/pricing/v2/api_default.go +++ b/rest/pricing/v2/api_default.go @@ -13,22 +13,20 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type DefaultApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewDefaultApiService(client *twilio.Client) *DefaultApiService { - return &DefaultApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &DefaultApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } /* @@ -38,31 +36,31 @@ Fetch a specific Country. @return PricingV2VoiceVoiceCountryInstance */ func (c *DefaultApiService) FetchVoiceCountry(isoCountry string) (*PricingV2VoiceVoiceCountryInstance, error) { - path := "/v2/Voice/Countries/{IsoCountry}" - path = strings.Replace(path, "{"+"IsoCountry"+"}", isoCountry, -1) + path := "/v2/Voice/Countries/{IsoCountry}" + path = strings.Replace(path, "{"+"IsoCountry"+"}", isoCountry, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PricingV2VoiceVoiceCountryInstance{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PricingV2VoiceVoiceCountryInstance{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // FetchVoiceNumberParams Optional parameters for the method 'FetchVoiceNumber' type FetchVoiceNumberParams struct { - OriginationNumber *string `json:"OriginationNumber,omitempty"` + OriginationNumber *string `json:"OriginationNumber,omitempty"` } /* @@ -74,34 +72,34 @@ Fetch pricing information for a specific destination and, optionally, originatio @return PricingV2VoiceVoiceNumber */ func (c *DefaultApiService) FetchVoiceNumber(destinationNumber string, params *FetchVoiceNumberParams) (*PricingV2VoiceVoiceNumber, error) { - path := "/v2/Voice/Numbers/{DestinationNumber}" - path = strings.Replace(path, "{"+"DestinationNumber"+"}", destinationNumber, -1) + path := "/v2/Voice/Numbers/{DestinationNumber}" + path = strings.Replace(path, "{"+"DestinationNumber"+"}", destinationNumber, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.OriginationNumber != nil { - data.Set("OriginationNumber", *params.OriginationNumber) - } + if params != nil && params.OriginationNumber != nil { + data.Set("OriginationNumber", *params.OriginationNumber) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PricingV2VoiceVoiceNumber{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PricingV2VoiceVoiceNumber{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListVoiceCountryParams Optional parameters for the method 'ListVoiceCountry' type ListVoiceCountryParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -111,27 +109,27 @@ ListVoiceCountry Method for ListVoiceCountry @return PricingV2VoiceVoiceCountryReadResponse */ func (c *DefaultApiService) ListVoiceCountry(params *ListVoiceCountryParams) (*PricingV2VoiceVoiceCountryReadResponse, error) { - path := "/v2/Voice/Countries" + path := "/v2/Voice/Countries" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &PricingV2VoiceVoiceCountryReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &PricingV2VoiceVoiceCountryReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } diff --git a/rest/pricing/v2/response.go b/rest/pricing/v2/response.go index cc22e0481..c111fbe94 100644 --- a/rest/pricing/v2/response.go +++ b/rest/pricing/v2/response.go @@ -32,16 +32,14 @@ type APIResponse struct { Payload []byte `json:"-"` } -// Response returns a new APIResponse object. -func Response(r *http.Response) *APIResponse { - +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { response := &APIResponse{Response: r} return response } -// ResponseWithError returns a new APIResponse object with the provided error message. -func ResponseWithError(errorMessage string) *APIResponse { - +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { response := &APIResponse{Message: errorMessage} return response } diff --git a/rest/proxy/v1/api_default.go b/rest/proxy/v1/api_default.go index ffe9cefee..94292a00a 100644 --- a/rest/proxy/v1/api_default.go +++ b/rest/proxy/v1/api_default.go @@ -13,27 +13,25 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type DefaultApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewDefaultApiService(client *twilio.Client) *DefaultApiService { - return &DefaultApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &DefaultApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } // CreateMessageInteractionParams Optional parameters for the method 'CreateMessageInteraction' type CreateMessageInteractionParams struct { - Body *string `json:"Body,omitempty"` - MediaUrl *[]string `json:"MediaUrl,omitempty"` + Body *string `json:"Body,omitempty"` + MediaUrl *[]string `json:"MediaUrl,omitempty"` } /* @@ -48,43 +46,43 @@ Create a new message Interaction to send directly from your system to one [Parti @return ProxyV1ServiceSessionParticipantMessageInteraction */ func (c *DefaultApiService) CreateMessageInteraction(serviceSid string, sessionSid string, participantSid string, params *CreateMessageInteractionParams) (*ProxyV1ServiceSessionParticipantMessageInteraction, error) { - path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{ParticipantSid}/MessageInteractions" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) - path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) + path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{ParticipantSid}/MessageInteractions" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) + path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Body != nil { - data.Set("Body", *params.Body) - } - if params != nil && params.MediaUrl != nil { - data.Set("MediaUrl", *params.MediaUrl) - } + if params != nil && params.Body != nil { + data.Set("Body", *params.Body) + } + if params != nil && params.MediaUrl != nil { + data.Set("MediaUrl", *params.MediaUrl) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ProxyV1ServiceSessionParticipantMessageInteraction{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ProxyV1ServiceSessionParticipantMessageInteraction{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateParticipantParams Optional parameters for the method 'CreateParticipant' type CreateParticipantParams struct { - FailOnParticipantConflict *bool `json:"FailOnParticipantConflict,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Identifier *string `json:"Identifier,omitempty"` - ProxyIdentifier *string `json:"ProxyIdentifier,omitempty"` - ProxyIdentifierSid *string `json:"ProxyIdentifierSid,omitempty"` + FailOnParticipantConflict *bool `json:"FailOnParticipantConflict,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Identifier *string `json:"Identifier,omitempty"` + ProxyIdentifier *string `json:"ProxyIdentifier,omitempty"` + ProxyIdentifierSid *string `json:"ProxyIdentifierSid,omitempty"` } /* @@ -101,49 +99,49 @@ Add a new Participant to the Session @return ProxyV1ServiceSessionParticipant */ func (c *DefaultApiService) CreateParticipant(serviceSid string, sessionSid string, params *CreateParticipantParams) (*ProxyV1ServiceSessionParticipant, error) { - path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.FailOnParticipantConflict != nil { - data.Set("FailOnParticipantConflict", string(*params.FailOnParticipantConflict)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Identifier != nil { - data.Set("Identifier", *params.Identifier) - } - if params != nil && params.ProxyIdentifier != nil { - data.Set("ProxyIdentifier", *params.ProxyIdentifier) - } - if params != nil && params.ProxyIdentifierSid != nil { - data.Set("ProxyIdentifierSid", *params.ProxyIdentifierSid) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ProxyV1ServiceSessionParticipant{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FailOnParticipantConflict != nil { + data.Set("FailOnParticipantConflict", string(*params.FailOnParticipantConflict)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Identifier != nil { + data.Set("Identifier", *params.Identifier) + } + if params != nil && params.ProxyIdentifier != nil { + data.Set("ProxyIdentifier", *params.ProxyIdentifier) + } + if params != nil && params.ProxyIdentifierSid != nil { + data.Set("ProxyIdentifierSid", *params.ProxyIdentifierSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ProxyV1ServiceSessionParticipant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreatePhoneNumberParams Optional parameters for the method 'CreatePhoneNumber' type CreatePhoneNumberParams struct { - IsReserved *bool `json:"IsReserved,omitempty"` - PhoneNumber *string `json:"PhoneNumber,omitempty"` - Sid *string `json:"Sid,omitempty"` + IsReserved *bool `json:"IsReserved,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + Sid *string `json:"Sid,omitempty"` } /* @@ -157,47 +155,47 @@ Add a Phone Number to a Service's Proxy Number Pool. @return ProxyV1ServicePhoneNumber */ func (c *DefaultApiService) CreatePhoneNumber(serviceSid string, params *CreatePhoneNumberParams) (*ProxyV1ServicePhoneNumber, error) { - path := "/v1/Services/{ServiceSid}/PhoneNumbers" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v1/Services/{ServiceSid}/PhoneNumbers" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.IsReserved != nil { - data.Set("IsReserved", string(*params.IsReserved)) - } - if params != nil && params.PhoneNumber != nil { - data.Set("PhoneNumber", *params.PhoneNumber) - } - if params != nil && params.Sid != nil { - data.Set("Sid", *params.Sid) - } + if params != nil && params.IsReserved != nil { + data.Set("IsReserved", string(*params.IsReserved)) + } + if params != nil && params.PhoneNumber != nil { + data.Set("PhoneNumber", *params.PhoneNumber) + } + if params != nil && params.Sid != nil { + data.Set("Sid", *params.Sid) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ProxyV1ServicePhoneNumber{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ProxyV1ServicePhoneNumber{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateServiceParams Optional parameters for the method 'CreateService' type CreateServiceParams struct { - CallbackUrl *string `json:"CallbackUrl,omitempty"` - ChatInstanceSid *string `json:"ChatInstanceSid,omitempty"` - DefaultTtl *int32 `json:"DefaultTtl,omitempty"` - GeoMatchLevel *string `json:"GeoMatchLevel,omitempty"` - InterceptCallbackUrl *string `json:"InterceptCallbackUrl,omitempty"` - NumberSelectionBehavior *string `json:"NumberSelectionBehavior,omitempty"` - OutOfSessionCallbackUrl *string `json:"OutOfSessionCallbackUrl,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + ChatInstanceSid *string `json:"ChatInstanceSid,omitempty"` + DefaultTtl *int32 `json:"DefaultTtl,omitempty"` + GeoMatchLevel *string `json:"GeoMatchLevel,omitempty"` + InterceptCallbackUrl *string `json:"InterceptCallbackUrl,omitempty"` + NumberSelectionBehavior *string `json:"NumberSelectionBehavior,omitempty"` + OutOfSessionCallbackUrl *string `json:"OutOfSessionCallbackUrl,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -215,60 +213,60 @@ Create a new Service for Twilio Proxy @return ProxyV1Service */ func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*ProxyV1Service, error) { - path := "/v1/Services" - - data := url.Values{} - headers := 0 - - if params != nil && params.CallbackUrl != nil { - data.Set("CallbackUrl", *params.CallbackUrl) - } - if params != nil && params.ChatInstanceSid != nil { - data.Set("ChatInstanceSid", *params.ChatInstanceSid) - } - if params != nil && params.DefaultTtl != nil { - data.Set("DefaultTtl", string(*params.DefaultTtl)) - } - if params != nil && params.GeoMatchLevel != nil { - data.Set("GeoMatchLevel", *params.GeoMatchLevel) - } - if params != nil && params.InterceptCallbackUrl != nil { - data.Set("InterceptCallbackUrl", *params.InterceptCallbackUrl) - } - if params != nil && params.NumberSelectionBehavior != nil { - data.Set("NumberSelectionBehavior", *params.NumberSelectionBehavior) - } - if params != nil && params.OutOfSessionCallbackUrl != nil { - data.Set("OutOfSessionCallbackUrl", *params.OutOfSessionCallbackUrl) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ProxyV1Service{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Services" + + data := url.Values{} + headers := 0 + + if params != nil && params.CallbackUrl != nil { + data.Set("CallbackUrl", *params.CallbackUrl) + } + if params != nil && params.ChatInstanceSid != nil { + data.Set("ChatInstanceSid", *params.ChatInstanceSid) + } + if params != nil && params.DefaultTtl != nil { + data.Set("DefaultTtl", string(*params.DefaultTtl)) + } + if params != nil && params.GeoMatchLevel != nil { + data.Set("GeoMatchLevel", *params.GeoMatchLevel) + } + if params != nil && params.InterceptCallbackUrl != nil { + data.Set("InterceptCallbackUrl", *params.InterceptCallbackUrl) + } + if params != nil && params.NumberSelectionBehavior != nil { + data.Set("NumberSelectionBehavior", *params.NumberSelectionBehavior) + } + if params != nil && params.OutOfSessionCallbackUrl != nil { + data.Set("OutOfSessionCallbackUrl", *params.OutOfSessionCallbackUrl) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ProxyV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateSessionParams Optional parameters for the method 'CreateSession' type CreateSessionParams struct { - DateExpiry *time.Time `json:"DateExpiry,omitempty"` - FailOnParticipantConflict *bool `json:"FailOnParticipantConflict,omitempty"` - Mode *string `json:"Mode,omitempty"` - Participants *[]map[string]interface{} `json:"Participants,omitempty"` - Status *string `json:"Status,omitempty"` - Ttl *int32 `json:"Ttl,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + DateExpiry *time.Time `json:"DateExpiry,omitempty"` + FailOnParticipantConflict *bool `json:"FailOnParticipantConflict,omitempty"` + Mode *string `json:"Mode,omitempty"` + Participants *[]map[string]interface{} `json:"Participants,omitempty"` + Status *string `json:"Status,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -286,58 +284,58 @@ Create a new Session @return ProxyV1ServiceSession */ func (c *DefaultApiService) CreateSession(serviceSid string, params *CreateSessionParams) (*ProxyV1ServiceSession, error) { - path := "/v1/Services/{ServiceSid}/Sessions" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.DateExpiry != nil { - data.Set("DateExpiry", string(*params.DateExpiry)) - } - if params != nil && params.FailOnParticipantConflict != nil { - data.Set("FailOnParticipantConflict", string(*params.FailOnParticipantConflict)) - } - if params != nil && params.Mode != nil { - data.Set("Mode", *params.Mode) - } - if params != nil && params.Participants != nil { - v, err := json.Marshal(params.Participants) - - if err != nil { - return nil, err - } - - data.Set("Participants", string(v)) - } - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - if params != nil && params.Ttl != nil { - data.Set("Ttl", string(*params.Ttl)) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ProxyV1ServiceSession{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Services/{ServiceSid}/Sessions" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.DateExpiry != nil { + data.Set("DateExpiry", string(*params.DateExpiry)) + } + if params != nil && params.FailOnParticipantConflict != nil { + data.Set("FailOnParticipantConflict", string(*params.FailOnParticipantConflict)) + } + if params != nil && params.Mode != nil { + data.Set("Mode", *params.Mode) + } + if params != nil && params.Participants != nil { + v, err := json.Marshal(params.Participants) + + if err != nil { + return nil, err + } + + data.Set("Participants", string(v)) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.Ttl != nil { + data.Set("Ttl", string(*params.Ttl)) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ProxyV1ServiceSession{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateShortCodeParams Optional parameters for the method 'CreateShortCode' type CreateShortCodeParams struct { - Sid *string `json:"Sid,omitempty"` + Sid *string `json:"Sid,omitempty"` } /* @@ -349,30 +347,30 @@ Add a Short Code to the Proxy Number Pool for the Service. @return ProxyV1ServiceShortCode */ func (c *DefaultApiService) CreateShortCode(serviceSid string, params *CreateShortCodeParams) (*ProxyV1ServiceShortCode, error) { - path := "/v1/Services/{ServiceSid}/ShortCodes" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v1/Services/{ServiceSid}/ShortCodes" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Sid != nil { - data.Set("Sid", *params.Sid) - } + if params != nil && params.Sid != nil { + data.Set("Sid", *params.Sid) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ProxyV1ServiceShortCode{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ProxyV1ServiceShortCode{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -383,24 +381,24 @@ Delete a specific Interaction. * @param sid The Twilio-provided string that uniquely identifies the Interaction resource to delete. */ func (c *DefaultApiService) DeleteInteraction(serviceSid string, sessionSid string, sid string) (error) { - path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Interactions/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Interactions/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -411,24 +409,24 @@ Delete a specific Participant. This is a soft-delete. The participant remains as * @param sid The Twilio-provided string that uniquely identifies the Participant resource to delete. */ func (c *DefaultApiService) DeleteParticipant(serviceSid string, sessionSid string, sid string) (error) { - path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -438,23 +436,23 @@ Delete a specific Phone Number from a Service. * @param sid The Twilio-provided string that uniquely identifies the PhoneNumber resource to delete. */ func (c *DefaultApiService) DeletePhoneNumber(serviceSid string, sid string) (error) { - path := "/v1/Services/{ServiceSid}/PhoneNumbers/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/PhoneNumbers/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -463,22 +461,22 @@ Delete a specific Service. * @param sid The Twilio-provided string that uniquely identifies the Service resource to delete. */ func (c *DefaultApiService) DeleteService(sid string) (error) { - path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -488,23 +486,23 @@ Delete a specific Session. * @param sid The Twilio-provided string that uniquely identifies the Session resource to delete. */ func (c *DefaultApiService) DeleteSession(serviceSid string, sid string) (error) { - path := "/v1/Services/{ServiceSid}/Sessions/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Sessions/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -514,23 +512,23 @@ Delete a specific Short Code from a Service. * @param sid The Twilio-provided string that uniquely identifies the ShortCode resource to delete. */ func (c *DefaultApiService) DeleteShortCode(serviceSid string, sid string) (error) { - path := "/v1/Services/{ServiceSid}/ShortCodes/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/ShortCodes/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -542,29 +540,29 @@ Retrieve a list of Interactions for a given [Session](https://www.twilio.com/doc @return ProxyV1ServiceSessionInteraction */ func (c *DefaultApiService) FetchInteraction(serviceSid string, sessionSid string, sid string) (*ProxyV1ServiceSessionInteraction, error) { - path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Interactions/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Interactions/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ProxyV1ServiceSessionInteraction{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ProxyV1ServiceSessionInteraction{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -576,30 +574,30 @@ FetchMessageInteraction Method for FetchMessageInteraction @return ProxyV1ServiceSessionParticipantMessageInteraction */ func (c *DefaultApiService) FetchMessageInteraction(serviceSid string, sessionSid string, participantSid string, sid string) (*ProxyV1ServiceSessionParticipantMessageInteraction, error) { - path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{ParticipantSid}/MessageInteractions/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) - path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{ParticipantSid}/MessageInteractions/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) + path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ProxyV1ServiceSessionParticipantMessageInteraction{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ProxyV1ServiceSessionParticipantMessageInteraction{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -611,29 +609,29 @@ Fetch a specific Participant. @return ProxyV1ServiceSessionParticipant */ func (c *DefaultApiService) FetchParticipant(serviceSid string, sessionSid string, sid string) (*ProxyV1ServiceSessionParticipant, error) { - path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ProxyV1ServiceSessionParticipant{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ProxyV1ServiceSessionParticipant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -644,28 +642,28 @@ Fetch a specific Phone Number. @return ProxyV1ServicePhoneNumber */ func (c *DefaultApiService) FetchPhoneNumber(serviceSid string, sid string) (*ProxyV1ServicePhoneNumber, error) { - path := "/v1/Services/{ServiceSid}/PhoneNumbers/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/PhoneNumbers/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ProxyV1ServicePhoneNumber{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ProxyV1ServicePhoneNumber{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -675,27 +673,27 @@ Fetch a specific Service. @return ProxyV1Service */ func (c *DefaultApiService) FetchService(sid string) (*ProxyV1Service, error) { - path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ProxyV1Service{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ProxyV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -706,28 +704,28 @@ Fetch a specific Session. @return ProxyV1ServiceSession */ func (c *DefaultApiService) FetchSession(serviceSid string, sid string) (*ProxyV1ServiceSession, error) { - path := "/v1/Services/{ServiceSid}/Sessions/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Sessions/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ProxyV1ServiceSession{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ProxyV1ServiceSession{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -738,32 +736,32 @@ Fetch a specific Short Code. @return ProxyV1ServiceShortCode */ func (c *DefaultApiService) FetchShortCode(serviceSid string, sid string) (*ProxyV1ServiceShortCode, error) { - path := "/v1/Services/{ServiceSid}/ShortCodes/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/ShortCodes/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ProxyV1ServiceShortCode{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ProxyV1ServiceShortCode{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListInteractionParams Optional parameters for the method 'ListInteraction' type ListInteractionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -776,35 +774,35 @@ Retrieve a list of all Interactions for a Session. A maximum of 100 records will @return ProxyV1ServiceSessionInteractionReadResponse */ func (c *DefaultApiService) ListInteraction(serviceSid string, sessionSid string, params *ListInteractionParams) (*ProxyV1ServiceSessionInteractionReadResponse, error) { - path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Interactions" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) + path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Interactions" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ProxyV1ServiceSessionInteractionReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ProxyV1ServiceSessionInteractionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListMessageInteractionParams Optional parameters for the method 'ListMessageInteraction' type ListMessageInteractionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -817,36 +815,36 @@ ListMessageInteraction Method for ListMessageInteraction @return ProxyV1ServiceSessionParticipantMessageInteractionReadResponse */ func (c *DefaultApiService) ListMessageInteraction(serviceSid string, sessionSid string, participantSid string, params *ListMessageInteractionParams) (*ProxyV1ServiceSessionParticipantMessageInteractionReadResponse, error) { - path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{ParticipantSid}/MessageInteractions" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) - path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) + path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{ParticipantSid}/MessageInteractions" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) + path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ProxyV1ServiceSessionParticipantMessageInteractionReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ProxyV1ServiceSessionParticipantMessageInteractionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListParticipantParams Optional parameters for the method 'ListParticipant' type ListParticipantParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -859,35 +857,35 @@ Retrieve a list of all Participants in a Session. @return ProxyV1ServiceSessionParticipantReadResponse */ func (c *DefaultApiService) ListParticipant(serviceSid string, sessionSid string, params *ListParticipantParams) (*ProxyV1ServiceSessionParticipantReadResponse, error) { - path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) + path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ProxyV1ServiceSessionParticipantReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ProxyV1ServiceSessionParticipantReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListPhoneNumberParams Optional parameters for the method 'ListPhoneNumber' type ListPhoneNumberParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -899,34 +897,34 @@ Retrieve a list of all Phone Numbers in the Proxy Number Pool for a Service. A m @return ProxyV1ServicePhoneNumberReadResponse */ func (c *DefaultApiService) ListPhoneNumber(serviceSid string, params *ListPhoneNumberParams) (*ProxyV1ServicePhoneNumberReadResponse, error) { - path := "/v1/Services/{ServiceSid}/PhoneNumbers" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v1/Services/{ServiceSid}/PhoneNumbers" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ProxyV1ServicePhoneNumberReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ProxyV1ServicePhoneNumberReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListServiceParams Optional parameters for the method 'ListService' type ListServiceParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -937,33 +935,33 @@ Retrieve a list of all Services for Twilio Proxy. A maximum of 100 records will @return ProxyV1ServiceReadResponse */ func (c *DefaultApiService) ListService(params *ListServiceParams) (*ProxyV1ServiceReadResponse, error) { - path := "/v1/Services" + path := "/v1/Services" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ProxyV1ServiceReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ProxyV1ServiceReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListSessionParams Optional parameters for the method 'ListSession' type ListSessionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -975,34 +973,34 @@ Retrieve a list of all Sessions for the Service. A maximum of 100 records will b @return ProxyV1ServiceSessionReadResponse */ func (c *DefaultApiService) ListSession(serviceSid string, params *ListSessionParams) (*ProxyV1ServiceSessionReadResponse, error) { - path := "/v1/Services/{ServiceSid}/Sessions" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v1/Services/{ServiceSid}/Sessions" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ProxyV1ServiceSessionReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ProxyV1ServiceSessionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListShortCodeParams Optional parameters for the method 'ListShortCode' type ListShortCodeParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1014,34 +1012,34 @@ Retrieve a list of all Short Codes in the Proxy Number Pool for the Service. A m @return ProxyV1ServiceShortCodeReadResponse */ func (c *DefaultApiService) ListShortCode(serviceSid string, params *ListShortCodeParams) (*ProxyV1ServiceShortCodeReadResponse, error) { - path := "/v1/Services/{ServiceSid}/ShortCodes" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v1/Services/{ServiceSid}/ShortCodes" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ProxyV1ServiceShortCodeReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ProxyV1ServiceShortCodeReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdatePhoneNumberParams Optional parameters for the method 'UpdatePhoneNumber' type UpdatePhoneNumberParams struct { - IsReserved *bool `json:"IsReserved,omitempty"` + IsReserved *bool `json:"IsReserved,omitempty"` } /* @@ -1054,42 +1052,42 @@ Update a specific Proxy Number. @return ProxyV1ServicePhoneNumber */ func (c *DefaultApiService) UpdatePhoneNumber(serviceSid string, sid string, params *UpdatePhoneNumberParams) (*ProxyV1ServicePhoneNumber, error) { - path := "/v1/Services/{ServiceSid}/PhoneNumbers/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/PhoneNumbers/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.IsReserved != nil { - data.Set("IsReserved", string(*params.IsReserved)) - } + if params != nil && params.IsReserved != nil { + data.Set("IsReserved", string(*params.IsReserved)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ProxyV1ServicePhoneNumber{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ProxyV1ServicePhoneNumber{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateServiceParams Optional parameters for the method 'UpdateService' type UpdateServiceParams struct { - CallbackUrl *string `json:"CallbackUrl,omitempty"` - ChatInstanceSid *string `json:"ChatInstanceSid,omitempty"` - DefaultTtl *int32 `json:"DefaultTtl,omitempty"` - GeoMatchLevel *string `json:"GeoMatchLevel,omitempty"` - InterceptCallbackUrl *string `json:"InterceptCallbackUrl,omitempty"` - NumberSelectionBehavior *string `json:"NumberSelectionBehavior,omitempty"` - OutOfSessionCallbackUrl *string `json:"OutOfSessionCallbackUrl,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + ChatInstanceSid *string `json:"ChatInstanceSid,omitempty"` + DefaultTtl *int32 `json:"DefaultTtl,omitempty"` + GeoMatchLevel *string `json:"GeoMatchLevel,omitempty"` + InterceptCallbackUrl *string `json:"InterceptCallbackUrl,omitempty"` + NumberSelectionBehavior *string `json:"NumberSelectionBehavior,omitempty"` + OutOfSessionCallbackUrl *string `json:"OutOfSessionCallbackUrl,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -1108,58 +1106,58 @@ Update a specific Service. @return ProxyV1Service */ func (c *DefaultApiService) UpdateService(sid string, params *UpdateServiceParams) (*ProxyV1Service, error) { - path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.CallbackUrl != nil { - data.Set("CallbackUrl", *params.CallbackUrl) - } - if params != nil && params.ChatInstanceSid != nil { - data.Set("ChatInstanceSid", *params.ChatInstanceSid) - } - if params != nil && params.DefaultTtl != nil { - data.Set("DefaultTtl", string(*params.DefaultTtl)) - } - if params != nil && params.GeoMatchLevel != nil { - data.Set("GeoMatchLevel", *params.GeoMatchLevel) - } - if params != nil && params.InterceptCallbackUrl != nil { - data.Set("InterceptCallbackUrl", *params.InterceptCallbackUrl) - } - if params != nil && params.NumberSelectionBehavior != nil { - data.Set("NumberSelectionBehavior", *params.NumberSelectionBehavior) - } - if params != nil && params.OutOfSessionCallbackUrl != nil { - data.Set("OutOfSessionCallbackUrl", *params.OutOfSessionCallbackUrl) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ProxyV1Service{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CallbackUrl != nil { + data.Set("CallbackUrl", *params.CallbackUrl) + } + if params != nil && params.ChatInstanceSid != nil { + data.Set("ChatInstanceSid", *params.ChatInstanceSid) + } + if params != nil && params.DefaultTtl != nil { + data.Set("DefaultTtl", string(*params.DefaultTtl)) + } + if params != nil && params.GeoMatchLevel != nil { + data.Set("GeoMatchLevel", *params.GeoMatchLevel) + } + if params != nil && params.InterceptCallbackUrl != nil { + data.Set("InterceptCallbackUrl", *params.InterceptCallbackUrl) + } + if params != nil && params.NumberSelectionBehavior != nil { + data.Set("NumberSelectionBehavior", *params.NumberSelectionBehavior) + } + if params != nil && params.OutOfSessionCallbackUrl != nil { + data.Set("OutOfSessionCallbackUrl", *params.OutOfSessionCallbackUrl) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ProxyV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateSessionParams Optional parameters for the method 'UpdateSession' type UpdateSessionParams struct { - DateExpiry *time.Time `json:"DateExpiry,omitempty"` - FailOnParticipantConflict *bool `json:"FailOnParticipantConflict,omitempty"` - Status *string `json:"Status,omitempty"` - Ttl *int32 `json:"Ttl,omitempty"` + DateExpiry *time.Time `json:"DateExpiry,omitempty"` + FailOnParticipantConflict *bool `json:"FailOnParticipantConflict,omitempty"` + Status *string `json:"Status,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` } /* @@ -1175,44 +1173,44 @@ Update a specific Session. @return ProxyV1ServiceSession */ func (c *DefaultApiService) UpdateSession(serviceSid string, sid string, params *UpdateSessionParams) (*ProxyV1ServiceSession, error) { - path := "/v1/Services/{ServiceSid}/Sessions/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.DateExpiry != nil { - data.Set("DateExpiry", string(*params.DateExpiry)) - } - if params != nil && params.FailOnParticipantConflict != nil { - data.Set("FailOnParticipantConflict", string(*params.FailOnParticipantConflict)) - } - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - if params != nil && params.Ttl != nil { - data.Set("Ttl", string(*params.Ttl)) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ProxyV1ServiceSession{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Services/{ServiceSid}/Sessions/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.DateExpiry != nil { + data.Set("DateExpiry", string(*params.DateExpiry)) + } + if params != nil && params.FailOnParticipantConflict != nil { + data.Set("FailOnParticipantConflict", string(*params.FailOnParticipantConflict)) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.Ttl != nil { + data.Set("Ttl", string(*params.Ttl)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ProxyV1ServiceSession{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateShortCodeParams Optional parameters for the method 'UpdateShortCode' type UpdateShortCodeParams struct { - IsReserved *bool `json:"IsReserved,omitempty"` + IsReserved *bool `json:"IsReserved,omitempty"` } /* @@ -1225,29 +1223,29 @@ Update a specific Short Code. @return ProxyV1ServiceShortCode */ func (c *DefaultApiService) UpdateShortCode(serviceSid string, sid string, params *UpdateShortCodeParams) (*ProxyV1ServiceShortCode, error) { - path := "/v1/Services/{ServiceSid}/ShortCodes/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/ShortCodes/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.IsReserved != nil { - data.Set("IsReserved", string(*params.IsReserved)) - } + if params != nil && params.IsReserved != nil { + data.Set("IsReserved", string(*params.IsReserved)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ProxyV1ServiceShortCode{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ProxyV1ServiceShortCode{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } diff --git a/rest/proxy/v1/response.go b/rest/proxy/v1/response.go index 9cab03790..0631700b4 100644 --- a/rest/proxy/v1/response.go +++ b/rest/proxy/v1/response.go @@ -32,16 +32,14 @@ type APIResponse struct { Payload []byte `json:"-"` } -// Response returns a new APIResponse object. -func Response(r *http.Response) *APIResponse { - +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { response := &APIResponse{Response: r} return response } -// ResponseWithError returns a new APIResponse object with the provided error message. -func ResponseWithError(errorMessage string) *APIResponse { - +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { response := &APIResponse{Message: errorMessage} return response } diff --git a/rest/serverless/v1/api_default.go b/rest/serverless/v1/api_default.go index 856af7260..2d288c22d 100644 --- a/rest/serverless/v1/api_default.go +++ b/rest/serverless/v1/api_default.go @@ -13,26 +13,24 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type DefaultApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewDefaultApiService(client *twilio.Client) *DefaultApiService { - return &DefaultApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &DefaultApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } // CreateAssetParams Optional parameters for the method 'CreateAsset' type CreateAssetParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -44,36 +42,36 @@ Create a new Asset resource. @return ServerlessV1ServiceAsset */ func (c *DefaultApiService) CreateAsset(serviceSid string, params *CreateAssetParams) (*ServerlessV1ServiceAsset, error) { - path := "/v1/Services/{ServiceSid}/Assets" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v1/Services/{ServiceSid}/Assets" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ServerlessV1ServiceAsset{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ServerlessV1ServiceAsset{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateBuildParams Optional parameters for the method 'CreateBuild' type CreateBuildParams struct { - AssetVersions *[]string `json:"AssetVersions,omitempty"` - Dependencies *string `json:"Dependencies,omitempty"` - FunctionVersions *[]string `json:"FunctionVersions,omitempty"` + AssetVersions *[]string `json:"AssetVersions,omitempty"` + Dependencies *string `json:"Dependencies,omitempty"` + FunctionVersions *[]string `json:"FunctionVersions,omitempty"` } /* @@ -87,40 +85,40 @@ Create a new Build resource. At least one function version or asset version is r @return ServerlessV1ServiceBuild */ func (c *DefaultApiService) CreateBuild(serviceSid string, params *CreateBuildParams) (*ServerlessV1ServiceBuild, error) { - path := "/v1/Services/{ServiceSid}/Builds" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v1/Services/{ServiceSid}/Builds" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.AssetVersions != nil { - data.Set("AssetVersions", *params.AssetVersions) - } - if params != nil && params.Dependencies != nil { - data.Set("Dependencies", *params.Dependencies) - } - if params != nil && params.FunctionVersions != nil { - data.Set("FunctionVersions", *params.FunctionVersions) - } + if params != nil && params.AssetVersions != nil { + data.Set("AssetVersions", *params.AssetVersions) + } + if params != nil && params.Dependencies != nil { + data.Set("Dependencies", *params.Dependencies) + } + if params != nil && params.FunctionVersions != nil { + data.Set("FunctionVersions", *params.FunctionVersions) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ServerlessV1ServiceBuild{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ServerlessV1ServiceBuild{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateDeploymentParams Optional parameters for the method 'CreateDeployment' type CreateDeploymentParams struct { - BuildSid *string `json:"BuildSid,omitempty"` + BuildSid *string `json:"BuildSid,omitempty"` } /* @@ -133,36 +131,36 @@ Create a new Deployment. @return ServerlessV1ServiceEnvironmentDeployment */ func (c *DefaultApiService) CreateDeployment(serviceSid string, environmentSid string, params *CreateDeploymentParams) (*ServerlessV1ServiceEnvironmentDeployment, error) { - path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) + path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.BuildSid != nil { - data.Set("BuildSid", *params.BuildSid) - } + if params != nil && params.BuildSid != nil { + data.Set("BuildSid", *params.BuildSid) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ServerlessV1ServiceEnvironmentDeployment{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ServerlessV1ServiceEnvironmentDeployment{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateEnvironmentParams Optional parameters for the method 'CreateEnvironment' type CreateEnvironmentParams struct { - DomainSuffix *string `json:"DomainSuffix,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + DomainSuffix *string `json:"DomainSuffix,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -175,37 +173,37 @@ Create a new environment. @return ServerlessV1ServiceEnvironment */ func (c *DefaultApiService) CreateEnvironment(serviceSid string, params *CreateEnvironmentParams) (*ServerlessV1ServiceEnvironment, error) { - path := "/v1/Services/{ServiceSid}/Environments" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v1/Services/{ServiceSid}/Environments" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.DomainSuffix != nil { - data.Set("DomainSuffix", *params.DomainSuffix) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } + if params != nil && params.DomainSuffix != nil { + data.Set("DomainSuffix", *params.DomainSuffix) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ServerlessV1ServiceEnvironment{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ServerlessV1ServiceEnvironment{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateFunctionParams Optional parameters for the method 'CreateFunction' type CreateFunctionParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -217,37 +215,37 @@ Create a new Function resource. @return ServerlessV1ServiceFunction */ func (c *DefaultApiService) CreateFunction(serviceSid string, params *CreateFunctionParams) (*ServerlessV1ServiceFunction, error) { - path := "/v1/Services/{ServiceSid}/Functions" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v1/Services/{ServiceSid}/Functions" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ServerlessV1ServiceFunction{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ServerlessV1ServiceFunction{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateServiceParams Optional parameters for the method 'CreateService' type CreateServiceParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - IncludeCredentials *bool `json:"IncludeCredentials,omitempty"` - UiEditable *bool `json:"UiEditable,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IncludeCredentials *bool `json:"IncludeCredentials,omitempty"` + UiEditable *bool `json:"UiEditable,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -261,43 +259,43 @@ Create a new Service resource. @return ServerlessV1Service */ func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*ServerlessV1Service, error) { - path := "/v1/Services" - - data := url.Values{} - headers := 0 - - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.IncludeCredentials != nil { - data.Set("IncludeCredentials", string(*params.IncludeCredentials)) - } - if params != nil && params.UiEditable != nil { - data.Set("UiEditable", string(*params.UiEditable)) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ServerlessV1Service{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Services" + + data := url.Values{} + headers := 0 + + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.IncludeCredentials != nil { + data.Set("IncludeCredentials", string(*params.IncludeCredentials)) + } + if params != nil && params.UiEditable != nil { + data.Set("UiEditable", string(*params.UiEditable)) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ServerlessV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateVariableParams Optional parameters for the method 'CreateVariable' type CreateVariableParams struct { - Key *string `json:"Key,omitempty"` - Value *string `json:"Value,omitempty"` + Key *string `json:"Key,omitempty"` + Value *string `json:"Value,omitempty"` } /* @@ -311,34 +309,34 @@ Create a new Variable. @return ServerlessV1ServiceEnvironmentVariable */ func (c *DefaultApiService) CreateVariable(serviceSid string, environmentSid string, params *CreateVariableParams) (*ServerlessV1ServiceEnvironmentVariable, error) { - path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) + path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Key != nil { - data.Set("Key", *params.Key) - } - if params != nil && params.Value != nil { - data.Set("Value", *params.Value) - } + if params != nil && params.Key != nil { + data.Set("Key", *params.Key) + } + if params != nil && params.Value != nil { + data.Set("Value", *params.Value) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ServerlessV1ServiceEnvironmentVariable{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ServerlessV1ServiceEnvironmentVariable{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -348,23 +346,23 @@ Delete an Asset resource. * @param sid The SID that identifies the Asset resource to delete. */ func (c *DefaultApiService) DeleteAsset(serviceSid string, sid string) (error) { - path := "/v1/Services/{ServiceSid}/Assets/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Assets/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -374,23 +372,23 @@ Delete a Build resource. * @param sid The SID of the Build resource to delete. */ func (c *DefaultApiService) DeleteBuild(serviceSid string, sid string) (error) { - path := "/v1/Services/{ServiceSid}/Builds/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Builds/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -400,23 +398,23 @@ Delete a specific environment. * @param sid The SID of the Environment resource to delete. */ func (c *DefaultApiService) DeleteEnvironment(serviceSid string, sid string) (error) { - path := "/v1/Services/{ServiceSid}/Environments/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Environments/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -426,23 +424,23 @@ Delete a Function resource. * @param sid The SID of the Function resource to delete. */ func (c *DefaultApiService) DeleteFunction(serviceSid string, sid string) (error) { - path := "/v1/Services/{ServiceSid}/Functions/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Functions/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -451,22 +449,22 @@ Delete a Service resource. * @param sid The `sid` or `unique_name` of the Service resource to delete. */ func (c *DefaultApiService) DeleteService(sid string) (error) { - path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -477,24 +475,24 @@ Delete a specific Variable. * @param sid The SID of the Variable resource to delete. */ func (c *DefaultApiService) DeleteVariable(serviceSid string, environmentSid string, sid string) (error) { - path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -505,28 +503,28 @@ Retrieve a specific Asset resource. @return ServerlessV1ServiceAsset */ func (c *DefaultApiService) FetchAsset(serviceSid string, sid string) (*ServerlessV1ServiceAsset, error) { - path := "/v1/Services/{ServiceSid}/Assets/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Assets/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ServerlessV1ServiceAsset{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ServerlessV1ServiceAsset{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -538,29 +536,29 @@ Retrieve a specific Asset Version. @return ServerlessV1ServiceAssetAssetVersion */ func (c *DefaultApiService) FetchAssetVersion(serviceSid string, assetSid string, sid string) (*ServerlessV1ServiceAssetAssetVersion, error) { - path := "/v1/Services/{ServiceSid}/Assets/{AssetSid}/Versions/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"AssetSid"+"}", assetSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Assets/{AssetSid}/Versions/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"AssetSid"+"}", assetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ServerlessV1ServiceAssetAssetVersion{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ServerlessV1ServiceAssetAssetVersion{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -571,28 +569,28 @@ Retrieve a specific Build resource. @return ServerlessV1ServiceBuild */ func (c *DefaultApiService) FetchBuild(serviceSid string, sid string) (*ServerlessV1ServiceBuild, error) { - path := "/v1/Services/{ServiceSid}/Builds/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Builds/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ServerlessV1ServiceBuild{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ServerlessV1ServiceBuild{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -603,28 +601,28 @@ Retrieve a specific Build resource. @return ServerlessV1ServiceBuildBuildStatus */ func (c *DefaultApiService) FetchBuildStatus(serviceSid string, sid string) (*ServerlessV1ServiceBuildBuildStatus, error) { - path := "/v1/Services/{ServiceSid}/Builds/{Sid}/Status" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Builds/{Sid}/Status" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ServerlessV1ServiceBuildBuildStatus{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ServerlessV1ServiceBuildBuildStatus{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -636,29 +634,29 @@ Retrieve a specific Deployment. @return ServerlessV1ServiceEnvironmentDeployment */ func (c *DefaultApiService) FetchDeployment(serviceSid string, environmentSid string, sid string) (*ServerlessV1ServiceEnvironmentDeployment, error) { - path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ServerlessV1ServiceEnvironmentDeployment{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ServerlessV1ServiceEnvironmentDeployment{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -669,28 +667,28 @@ Retrieve a specific environment. @return ServerlessV1ServiceEnvironment */ func (c *DefaultApiService) FetchEnvironment(serviceSid string, sid string) (*ServerlessV1ServiceEnvironment, error) { - path := "/v1/Services/{ServiceSid}/Environments/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Environments/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ServerlessV1ServiceEnvironment{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ServerlessV1ServiceEnvironment{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -701,28 +699,28 @@ Retrieve a specific Function resource. @return ServerlessV1ServiceFunction */ func (c *DefaultApiService) FetchFunction(serviceSid string, sid string) (*ServerlessV1ServiceFunction, error) { - path := "/v1/Services/{ServiceSid}/Functions/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Functions/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ServerlessV1ServiceFunction{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ServerlessV1ServiceFunction{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -734,29 +732,29 @@ Retrieve a specific Function Version resource. @return ServerlessV1ServiceFunctionFunctionVersion */ func (c *DefaultApiService) FetchFunctionVersion(serviceSid string, functionSid string, sid string) (*ServerlessV1ServiceFunctionFunctionVersion, error) { - path := "/v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"FunctionSid"+"}", functionSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"FunctionSid"+"}", functionSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ServerlessV1ServiceFunctionFunctionVersion{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ServerlessV1ServiceFunctionFunctionVersion{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -768,29 +766,29 @@ Retrieve a the content of a specific Function Version resource. @return ServerlessV1ServiceFunctionFunctionVersionFunctionVersionContent */ func (c *DefaultApiService) FetchFunctionVersionContent(serviceSid string, functionSid string, sid string) (*ServerlessV1ServiceFunctionFunctionVersionFunctionVersionContent, error) { - path := "/v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions/{Sid}/Content" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"FunctionSid"+"}", functionSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions/{Sid}/Content" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"FunctionSid"+"}", functionSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ServerlessV1ServiceFunctionFunctionVersionFunctionVersionContent{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ServerlessV1ServiceFunctionFunctionVersionFunctionVersionContent{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -802,29 +800,29 @@ Retrieve a specific log. @return ServerlessV1ServiceEnvironmentLog */ func (c *DefaultApiService) FetchLog(serviceSid string, environmentSid string, sid string) (*ServerlessV1ServiceEnvironmentLog, error) { - path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Logs/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Logs/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ServerlessV1ServiceEnvironmentLog{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ServerlessV1ServiceEnvironmentLog{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -834,27 +832,27 @@ Retrieve a specific Service resource. @return ServerlessV1Service */ func (c *DefaultApiService) FetchService(sid string) (*ServerlessV1Service, error) { - path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ServerlessV1Service{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ServerlessV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -866,33 +864,33 @@ Retrieve a specific Variable. @return ServerlessV1ServiceEnvironmentVariable */ func (c *DefaultApiService) FetchVariable(serviceSid string, environmentSid string, sid string) (*ServerlessV1ServiceEnvironmentVariable, error) { - path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ServerlessV1ServiceEnvironmentVariable{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ServerlessV1ServiceEnvironmentVariable{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListAssetParams Optional parameters for the method 'ListAsset' type ListAssetParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -904,34 +902,34 @@ Retrieve a list of all Assets. @return ServerlessV1ServiceAssetReadResponse */ func (c *DefaultApiService) ListAsset(serviceSid string, params *ListAssetParams) (*ServerlessV1ServiceAssetReadResponse, error) { - path := "/v1/Services/{ServiceSid}/Assets" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v1/Services/{ServiceSid}/Assets" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ServerlessV1ServiceAssetReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ServerlessV1ServiceAssetReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListAssetVersionParams Optional parameters for the method 'ListAssetVersion' type ListAssetVersionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -944,35 +942,35 @@ Retrieve a list of all Asset Versions. @return ServerlessV1ServiceAssetAssetVersionReadResponse */ func (c *DefaultApiService) ListAssetVersion(serviceSid string, assetSid string, params *ListAssetVersionParams) (*ServerlessV1ServiceAssetAssetVersionReadResponse, error) { - path := "/v1/Services/{ServiceSid}/Assets/{AssetSid}/Versions" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"AssetSid"+"}", assetSid, -1) + path := "/v1/Services/{ServiceSid}/Assets/{AssetSid}/Versions" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"AssetSid"+"}", assetSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ServerlessV1ServiceAssetAssetVersionReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ServerlessV1ServiceAssetAssetVersionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListBuildParams Optional parameters for the method 'ListBuild' type ListBuildParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -984,34 +982,34 @@ Retrieve a list of all Builds. @return ServerlessV1ServiceBuildReadResponse */ func (c *DefaultApiService) ListBuild(serviceSid string, params *ListBuildParams) (*ServerlessV1ServiceBuildReadResponse, error) { - path := "/v1/Services/{ServiceSid}/Builds" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v1/Services/{ServiceSid}/Builds" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ServerlessV1ServiceBuildReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ServerlessV1ServiceBuildReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListDeploymentParams Optional parameters for the method 'ListDeployment' type ListDeploymentParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1024,35 +1022,35 @@ Retrieve a list of all Deployments. @return ServerlessV1ServiceEnvironmentDeploymentReadResponse */ func (c *DefaultApiService) ListDeployment(serviceSid string, environmentSid string, params *ListDeploymentParams) (*ServerlessV1ServiceEnvironmentDeploymentReadResponse, error) { - path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) + path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ServerlessV1ServiceEnvironmentDeploymentReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ServerlessV1ServiceEnvironmentDeploymentReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListEnvironmentParams Optional parameters for the method 'ListEnvironment' type ListEnvironmentParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1064,34 +1062,34 @@ Retrieve a list of all environments. @return ServerlessV1ServiceEnvironmentReadResponse */ func (c *DefaultApiService) ListEnvironment(serviceSid string, params *ListEnvironmentParams) (*ServerlessV1ServiceEnvironmentReadResponse, error) { - path := "/v1/Services/{ServiceSid}/Environments" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v1/Services/{ServiceSid}/Environments" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ServerlessV1ServiceEnvironmentReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ServerlessV1ServiceEnvironmentReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListFunctionParams Optional parameters for the method 'ListFunction' type ListFunctionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1103,34 +1101,34 @@ Retrieve a list of all Functions. @return ServerlessV1ServiceFunctionReadResponse */ func (c *DefaultApiService) ListFunction(serviceSid string, params *ListFunctionParams) (*ServerlessV1ServiceFunctionReadResponse, error) { - path := "/v1/Services/{ServiceSid}/Functions" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v1/Services/{ServiceSid}/Functions" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ServerlessV1ServiceFunctionReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ServerlessV1ServiceFunctionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListFunctionVersionParams Optional parameters for the method 'ListFunctionVersion' type ListFunctionVersionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1143,38 +1141,38 @@ Retrieve a list of all Function Version resources. @return ServerlessV1ServiceFunctionFunctionVersionReadResponse */ func (c *DefaultApiService) ListFunctionVersion(serviceSid string, functionSid string, params *ListFunctionVersionParams) (*ServerlessV1ServiceFunctionFunctionVersionReadResponse, error) { - path := "/v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"FunctionSid"+"}", functionSid, -1) + path := "/v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"FunctionSid"+"}", functionSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ServerlessV1ServiceFunctionFunctionVersionReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ServerlessV1ServiceFunctionFunctionVersionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListLogParams Optional parameters for the method 'ListLog' type ListLogParams struct { - FunctionSid *string `json:"FunctionSid,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - EndDate *time.Time `json:"EndDate,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + FunctionSid *string `json:"FunctionSid,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1190,44 +1188,44 @@ Retrieve a list of all logs. @return ServerlessV1ServiceEnvironmentLogReadResponse */ func (c *DefaultApiService) ListLog(serviceSid string, environmentSid string, params *ListLogParams) (*ServerlessV1ServiceEnvironmentLogReadResponse, error) { - path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Logs" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.FunctionSid != nil { - data.Set("FunctionSid", *params.FunctionSid) - } - if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) - } - if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &ServerlessV1ServiceEnvironmentLogReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Logs" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.FunctionSid != nil { + data.Set("FunctionSid", *params.FunctionSid) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ServerlessV1ServiceEnvironmentLogReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListServiceParams Optional parameters for the method 'ListService' type ListServiceParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1238,33 +1236,33 @@ Retrieve a list of all Services. @return ServerlessV1ServiceReadResponse */ func (c *DefaultApiService) ListService(params *ListServiceParams) (*ServerlessV1ServiceReadResponse, error) { - path := "/v1/Services" + path := "/v1/Services" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ServerlessV1ServiceReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ServerlessV1ServiceReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListVariableParams Optional parameters for the method 'ListVariable' type ListVariableParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1277,35 +1275,35 @@ Retrieve a list of all Variables. @return ServerlessV1ServiceEnvironmentVariableReadResponse */ func (c *DefaultApiService) ListVariable(serviceSid string, environmentSid string, params *ListVariableParams) (*ServerlessV1ServiceEnvironmentVariableReadResponse, error) { - path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) + path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ServerlessV1ServiceEnvironmentVariableReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ServerlessV1ServiceEnvironmentVariableReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateAssetParams Optional parameters for the method 'UpdateAsset' type UpdateAssetParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -1318,35 +1316,35 @@ Update a specific Asset resource. @return ServerlessV1ServiceAsset */ func (c *DefaultApiService) UpdateAsset(serviceSid string, sid string, params *UpdateAssetParams) (*ServerlessV1ServiceAsset, error) { - path := "/v1/Services/{ServiceSid}/Assets/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Assets/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ServerlessV1ServiceAsset{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ServerlessV1ServiceAsset{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateFunctionParams Optional parameters for the method 'UpdateFunction' type UpdateFunctionParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -1359,37 +1357,37 @@ Update a specific Function resource. @return ServerlessV1ServiceFunction */ func (c *DefaultApiService) UpdateFunction(serviceSid string, sid string, params *UpdateFunctionParams) (*ServerlessV1ServiceFunction, error) { - path := "/v1/Services/{ServiceSid}/Functions/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Functions/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ServerlessV1ServiceFunction{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ServerlessV1ServiceFunction{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateServiceParams Optional parameters for the method 'UpdateService' type UpdateServiceParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - IncludeCredentials *bool `json:"IncludeCredentials,omitempty"` - UiEditable *bool `json:"UiEditable,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IncludeCredentials *bool `json:"IncludeCredentials,omitempty"` + UiEditable *bool `json:"UiEditable,omitempty"` } /* @@ -1403,41 +1401,41 @@ Update a specific Service resource. @return ServerlessV1Service */ func (c *DefaultApiService) UpdateService(sid string, params *UpdateServiceParams) (*ServerlessV1Service, error) { - path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.IncludeCredentials != nil { - data.Set("IncludeCredentials", string(*params.IncludeCredentials)) - } - if params != nil && params.UiEditable != nil { - data.Set("UiEditable", string(*params.UiEditable)) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.IncludeCredentials != nil { + data.Set("IncludeCredentials", string(*params.IncludeCredentials)) + } + if params != nil && params.UiEditable != nil { + data.Set("UiEditable", string(*params.UiEditable)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ServerlessV1Service{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ServerlessV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateVariableParams Optional parameters for the method 'UpdateVariable' type UpdateVariableParams struct { - Key *string `json:"Key,omitempty"` - Value *string `json:"Value,omitempty"` + Key *string `json:"Key,omitempty"` + Value *string `json:"Value,omitempty"` } /* @@ -1452,33 +1450,33 @@ Update a specific Variable. @return ServerlessV1ServiceEnvironmentVariable */ func (c *DefaultApiService) UpdateVariable(serviceSid string, environmentSid string, sid string, params *UpdateVariableParams) (*ServerlessV1ServiceEnvironmentVariable, error) { - path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Key != nil { - data.Set("Key", *params.Key) - } - if params != nil && params.Value != nil { - data.Set("Value", *params.Value) - } + if params != nil && params.Key != nil { + data.Set("Key", *params.Key) + } + if params != nil && params.Value != nil { + data.Set("Value", *params.Value) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &ServerlessV1ServiceEnvironmentVariable{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &ServerlessV1ServiceEnvironmentVariable{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } diff --git a/rest/serverless/v1/response.go b/rest/serverless/v1/response.go index 4e4a3b9be..c4f5ba5ee 100644 --- a/rest/serverless/v1/response.go +++ b/rest/serverless/v1/response.go @@ -32,16 +32,14 @@ type APIResponse struct { Payload []byte `json:"-"` } -// Response returns a new APIResponse object. -func Response(r *http.Response) *APIResponse { - +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { response := &APIResponse{Response: r} return response } -// ResponseWithError returns a new APIResponse object with the provided error message. -func ResponseWithError(errorMessage string) *APIResponse { - +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { response := &APIResponse{Message: errorMessage} return response } diff --git a/rest/studio/v1/api_default.go b/rest/studio/v1/api_default.go index 5d399b9b7..0c98d03f2 100644 --- a/rest/studio/v1/api_default.go +++ b/rest/studio/v1/api_default.go @@ -13,28 +13,26 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type DefaultApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewDefaultApiService(client *twilio.Client) *DefaultApiService { - return &DefaultApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &DefaultApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } // CreateEngagementParams Optional parameters for the method 'CreateEngagement' type CreateEngagementParams struct { - From *string `json:"From,omitempty"` - Parameters *map[string]interface{} `json:"Parameters,omitempty"` - To *string `json:"To,omitempty"` + From *string `json:"From,omitempty"` + Parameters *map[string]interface{} `json:"Parameters,omitempty"` + To *string `json:"To,omitempty"` } /* @@ -48,48 +46,48 @@ Triggers a new Engagement for the Flow @return StudioV1FlowEngagement */ func (c *DefaultApiService) CreateEngagement(flowSid string, params *CreateEngagementParams) (*StudioV1FlowEngagement, error) { - path := "/v1/Flows/{FlowSid}/Engagements" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path := "/v1/Flows/{FlowSid}/Engagements" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.From != nil { - data.Set("From", *params.From) - } - if params != nil && params.Parameters != nil { - v, err := json.Marshal(params.Parameters) + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.Parameters != nil { + v, err := json.Marshal(params.Parameters) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("Parameters", string(v)) - } - if params != nil && params.To != nil { - data.Set("To", *params.To) - } + data.Set("Parameters", string(v)) + } + if params != nil && params.To != nil { + data.Set("To", *params.To) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &StudioV1FlowEngagement{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &StudioV1FlowEngagement{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateExecutionParams Optional parameters for the method 'CreateExecution' type CreateExecutionParams struct { - From *string `json:"From,omitempty"` - Parameters *map[string]interface{} `json:"Parameters,omitempty"` - To *string `json:"To,omitempty"` + From *string `json:"From,omitempty"` + Parameters *map[string]interface{} `json:"Parameters,omitempty"` + To *string `json:"To,omitempty"` } /* @@ -103,42 +101,42 @@ Triggers a new Execution for the Flow @return StudioV1FlowExecution */ func (c *DefaultApiService) CreateExecution(flowSid string, params *CreateExecutionParams) (*StudioV1FlowExecution, error) { - path := "/v1/Flows/{FlowSid}/Executions" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path := "/v1/Flows/{FlowSid}/Executions" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.From != nil { - data.Set("From", *params.From) - } - if params != nil && params.Parameters != nil { - v, err := json.Marshal(params.Parameters) + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.Parameters != nil { + v, err := json.Marshal(params.Parameters) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("Parameters", string(v)) - } - if params != nil && params.To != nil { - data.Set("To", *params.To) - } + data.Set("Parameters", string(v)) + } + if params != nil && params.To != nil { + data.Set("To", *params.To) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &StudioV1FlowExecution{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &StudioV1FlowExecution{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -148,23 +146,23 @@ Delete this Engagement and all Steps relating to it. * @param sid The SID of the Engagement resource to delete. */ func (c *DefaultApiService) DeleteEngagement(flowSid string, sid string) (error) { - path := "/v1/Flows/{FlowSid}/Engagements/{Sid}" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Flows/{FlowSid}/Engagements/{Sid}" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -174,23 +172,23 @@ Delete the Execution and all Steps relating to it. * @param sid The SID of the Execution resource to delete. */ func (c *DefaultApiService) DeleteExecution(flowSid string, sid string) (error) { - path := "/v1/Flows/{FlowSid}/Executions/{Sid}" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Flows/{FlowSid}/Executions/{Sid}" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -199,22 +197,22 @@ Delete a specific Flow. * @param sid The SID of the Flow resource to delete. */ func (c *DefaultApiService) DeleteFlow(sid string) (error) { - path := "/v1/Flows/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Flows/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -225,28 +223,28 @@ Retrieve an Engagement @return StudioV1FlowEngagement */ func (c *DefaultApiService) FetchEngagement(flowSid string, sid string) (*StudioV1FlowEngagement, error) { - path := "/v1/Flows/{FlowSid}/Engagements/{Sid}" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Flows/{FlowSid}/Engagements/{Sid}" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &StudioV1FlowEngagement{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &StudioV1FlowEngagement{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -257,28 +255,28 @@ Retrieve the most recent context for an Engagement. @return StudioV1FlowEngagementEngagementContext */ func (c *DefaultApiService) FetchEngagementContext(flowSid string, engagementSid string) (*StudioV1FlowEngagementEngagementContext, error) { - path := "/v1/Flows/{FlowSid}/Engagements/{EngagementSid}/Context" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"EngagementSid"+"}", engagementSid, -1) + path := "/v1/Flows/{FlowSid}/Engagements/{EngagementSid}/Context" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"EngagementSid"+"}", engagementSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &StudioV1FlowEngagementEngagementContext{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &StudioV1FlowEngagementEngagementContext{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -289,28 +287,28 @@ Retrieve an Execution @return StudioV1FlowExecution */ func (c *DefaultApiService) FetchExecution(flowSid string, sid string) (*StudioV1FlowExecution, error) { - path := "/v1/Flows/{FlowSid}/Executions/{Sid}" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Flows/{FlowSid}/Executions/{Sid}" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &StudioV1FlowExecution{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &StudioV1FlowExecution{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -321,28 +319,28 @@ Retrieve the most recent context for an Execution. @return StudioV1FlowExecutionExecutionContext */ func (c *DefaultApiService) FetchExecutionContext(flowSid string, executionSid string) (*StudioV1FlowExecutionExecutionContext, error) { - path := "/v1/Flows/{FlowSid}/Executions/{ExecutionSid}/Context" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"ExecutionSid"+"}", executionSid, -1) + path := "/v1/Flows/{FlowSid}/Executions/{ExecutionSid}/Context" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"ExecutionSid"+"}", executionSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &StudioV1FlowExecutionExecutionContext{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &StudioV1FlowExecutionExecutionContext{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -354,29 +352,29 @@ Retrieve a Step. @return StudioV1FlowExecutionExecutionStep */ func (c *DefaultApiService) FetchExecutionStep(flowSid string, executionSid string, sid string) (*StudioV1FlowExecutionExecutionStep, error) { - path := "/v1/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps/{Sid}" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"ExecutionSid"+"}", executionSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps/{Sid}" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"ExecutionSid"+"}", executionSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &StudioV1FlowExecutionExecutionStep{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &StudioV1FlowExecutionExecutionStep{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -388,29 +386,29 @@ Retrieve the context for an Execution Step. @return StudioV1FlowExecutionExecutionStepExecutionStepContext */ func (c *DefaultApiService) FetchExecutionStepContext(flowSid string, executionSid string, stepSid string) (*StudioV1FlowExecutionExecutionStepExecutionStepContext, error) { - path := "/v1/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps/{StepSid}/Context" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"ExecutionSid"+"}", executionSid, -1) - path = strings.Replace(path, "{"+"StepSid"+"}", stepSid, -1) + path := "/v1/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps/{StepSid}/Context" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"ExecutionSid"+"}", executionSid, -1) + path = strings.Replace(path, "{"+"StepSid"+"}", stepSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &StudioV1FlowExecutionExecutionStepExecutionStepContext{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &StudioV1FlowExecutionExecutionStepExecutionStepContext{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -420,27 +418,27 @@ Retrieve a specific Flow. @return StudioV1Flow */ func (c *DefaultApiService) FetchFlow(sid string) (*StudioV1Flow, error) { - path := "/v1/Flows/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Flows/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &StudioV1Flow{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &StudioV1Flow{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -452,29 +450,29 @@ Retrieve a Step. @return StudioV1FlowEngagementStep */ func (c *DefaultApiService) FetchStep(flowSid string, engagementSid string, sid string) (*StudioV1FlowEngagementStep, error) { - path := "/v1/Flows/{FlowSid}/Engagements/{EngagementSid}/Steps/{Sid}" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"EngagementSid"+"}", engagementSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Flows/{FlowSid}/Engagements/{EngagementSid}/Steps/{Sid}" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"EngagementSid"+"}", engagementSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &StudioV1FlowEngagementStep{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &StudioV1FlowEngagementStep{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -486,33 +484,33 @@ Retrieve the context for an Engagement Step. @return StudioV1FlowEngagementStepStepContext */ func (c *DefaultApiService) FetchStepContext(flowSid string, engagementSid string, stepSid string) (*StudioV1FlowEngagementStepStepContext, error) { - path := "/v1/Flows/{FlowSid}/Engagements/{EngagementSid}/Steps/{StepSid}/Context" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"EngagementSid"+"}", engagementSid, -1) - path = strings.Replace(path, "{"+"StepSid"+"}", stepSid, -1) + path := "/v1/Flows/{FlowSid}/Engagements/{EngagementSid}/Steps/{StepSid}/Context" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"EngagementSid"+"}", engagementSid, -1) + path = strings.Replace(path, "{"+"StepSid"+"}", stepSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &StudioV1FlowEngagementStepStepContext{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &StudioV1FlowEngagementStepStepContext{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListEngagementParams Optional parameters for the method 'ListEngagement' type ListEngagementParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -524,36 +522,36 @@ Retrieve a list of all Engagements for the Flow. @return StudioV1FlowEngagementReadResponse */ func (c *DefaultApiService) ListEngagement(flowSid string, params *ListEngagementParams) (*StudioV1FlowEngagementReadResponse, error) { - path := "/v1/Flows/{FlowSid}/Engagements" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path := "/v1/Flows/{FlowSid}/Engagements" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &StudioV1FlowEngagementReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &StudioV1FlowEngagementReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListExecutionParams Optional parameters for the method 'ListExecution' type ListExecutionParams struct { - DateCreatedFrom *time.Time `json:"DateCreatedFrom,omitempty"` - DateCreatedTo *time.Time `json:"DateCreatedTo,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + DateCreatedFrom *time.Time `json:"DateCreatedFrom,omitempty"` + DateCreatedTo *time.Time `json:"DateCreatedTo,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -567,40 +565,40 @@ Retrieve a list of all Executions for the Flow. @return StudioV1FlowExecutionReadResponse */ func (c *DefaultApiService) ListExecution(flowSid string, params *ListExecutionParams) (*StudioV1FlowExecutionReadResponse, error) { - path := "/v1/Flows/{FlowSid}/Executions" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path := "/v1/Flows/{FlowSid}/Executions" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.DateCreatedFrom != nil { - data.Set("DateCreatedFrom", string(*params.DateCreatedFrom)) - } - if params != nil && params.DateCreatedTo != nil { - data.Set("DateCreatedTo", string(*params.DateCreatedTo)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.DateCreatedFrom != nil { + data.Set("DateCreatedFrom", string(*params.DateCreatedFrom)) + } + if params != nil && params.DateCreatedTo != nil { + data.Set("DateCreatedTo", string(*params.DateCreatedTo)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &StudioV1FlowExecutionReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &StudioV1FlowExecutionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListExecutionStepParams Optional parameters for the method 'ListExecutionStep' type ListExecutionStepParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -613,35 +611,35 @@ Retrieve a list of all Steps for an Execution. @return StudioV1FlowExecutionExecutionStepReadResponse */ func (c *DefaultApiService) ListExecutionStep(flowSid string, executionSid string, params *ListExecutionStepParams) (*StudioV1FlowExecutionExecutionStepReadResponse, error) { - path := "/v1/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"ExecutionSid"+"}", executionSid, -1) + path := "/v1/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"ExecutionSid"+"}", executionSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &StudioV1FlowExecutionExecutionStepReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &StudioV1FlowExecutionExecutionStepReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListFlowParams Optional parameters for the method 'ListFlow' type ListFlowParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -652,33 +650,33 @@ Retrieve a list of all Flows. @return StudioV1FlowReadResponse */ func (c *DefaultApiService) ListFlow(params *ListFlowParams) (*StudioV1FlowReadResponse, error) { - path := "/v1/Flows" + path := "/v1/Flows" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &StudioV1FlowReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &StudioV1FlowReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListStepParams Optional parameters for the method 'ListStep' type ListStepParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -691,35 +689,35 @@ Retrieve a list of all Steps for an Engagement. @return StudioV1FlowEngagementStepReadResponse */ func (c *DefaultApiService) ListStep(flowSid string, engagementSid string, params *ListStepParams) (*StudioV1FlowEngagementStepReadResponse, error) { - path := "/v1/Flows/{FlowSid}/Engagements/{EngagementSid}/Steps" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"EngagementSid"+"}", engagementSid, -1) + path := "/v1/Flows/{FlowSid}/Engagements/{EngagementSid}/Steps" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"EngagementSid"+"}", engagementSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &StudioV1FlowEngagementStepReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &StudioV1FlowEngagementStepReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateExecutionParams Optional parameters for the method 'UpdateExecution' type UpdateExecutionParams struct { - Status *string `json:"Status,omitempty"` + Status *string `json:"Status,omitempty"` } /* @@ -732,29 +730,29 @@ Update the status of an Execution to `ended`. @return StudioV1FlowExecution */ func (c *DefaultApiService) UpdateExecution(flowSid string, sid string, params *UpdateExecutionParams) (*StudioV1FlowExecution, error) { - path := "/v1/Flows/{FlowSid}/Executions/{Sid}" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Flows/{FlowSid}/Executions/{Sid}" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &StudioV1FlowExecution{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &StudioV1FlowExecution{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } diff --git a/rest/studio/v1/response.go b/rest/studio/v1/response.go index 6fe7b4956..a5e963134 100644 --- a/rest/studio/v1/response.go +++ b/rest/studio/v1/response.go @@ -32,16 +32,14 @@ type APIResponse struct { Payload []byte `json:"-"` } -// Response returns a new APIResponse object. -func Response(r *http.Response) *APIResponse { - +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { response := &APIResponse{Response: r} return response } -// ResponseWithError returns a new APIResponse object with the provided error message. -func ResponseWithError(errorMessage string) *APIResponse { - +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { response := &APIResponse{Message: errorMessage} return response } diff --git a/rest/studio/v2/README.md b/rest/studio/v2/README.md index 1c8820eaa..e1e3a6f15 100644 --- a/rest/studio/v2/README.md +++ b/rest/studio/v2/README.md @@ -32,7 +32,6 @@ All URIs are relative to *http://localhost* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *DefaultApi* | [**CreateExecution**](docs/DefaultApi.md#createexecution) | **Post** /v2/Flows/{FlowSid}/Executions | -*DefaultApi* | [**CreateFlow**](docs/DefaultApi.md#createflow) | **Post** /v2/Flows | *DefaultApi* | [**DeleteExecution**](docs/DefaultApi.md#deleteexecution) | **Delete** /v2/Flows/{FlowSid}/Executions/{Sid} | *DefaultApi* | [**DeleteFlow**](docs/DefaultApi.md#deleteflow) | **Delete** /v2/Flows/{Sid} | *DefaultApi* | [**FetchExecution**](docs/DefaultApi.md#fetchexecution) | **Get** /v2/Flows/{FlowSid}/Executions/{Sid} | @@ -44,12 +43,13 @@ Class | Method | HTTP request | Description *DefaultApi* | [**FetchTestUser**](docs/DefaultApi.md#fetchtestuser) | **Get** /v2/Flows/{Sid}/TestUsers | *DefaultApi* | [**ListExecution**](docs/DefaultApi.md#listexecution) | **Get** /v2/Flows/{FlowSid}/Executions | *DefaultApi* | [**ListExecutionStep**](docs/DefaultApi.md#listexecutionstep) | **Get** /v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps | -*DefaultApi* | [**ListFlow**](docs/DefaultApi.md#listflow) | **Get** /v2/Flows | *DefaultApi* | [**ListFlowRevision**](docs/DefaultApi.md#listflowrevision) | **Get** /v2/Flows/{Sid}/Revisions | *DefaultApi* | [**UpdateExecution**](docs/DefaultApi.md#updateexecution) | **Post** /v2/Flows/{FlowSid}/Executions/{Sid} | *DefaultApi* | [**UpdateFlow**](docs/DefaultApi.md#updateflow) | **Post** /v2/Flows/{Sid} | *DefaultApi* | [**UpdateFlowValidate**](docs/DefaultApi.md#updateflowvalidate) | **Post** /v2/Flows/Validate | *DefaultApi* | [**UpdateTestUser**](docs/DefaultApi.md#updatetestuser) | **Post** /v2/Flows/{Sid}/TestUsers | +*FlowsApi* | [**CreateFlow**](docs/FlowsApi.md#createflow) | **Post** /v2/Flows | +*FlowsApi* | [**ListFlow**](docs/FlowsApi.md#listflow) | **Get** /v2/Flows | ## Documentation For Models diff --git a/rest/studio/v2/api_default.go b/rest/studio/v2/api_default.go index 9bd75e967..533dfa2c6 100644 --- a/rest/studio/v2/api_default.go +++ b/rest/studio/v2/api_default.go @@ -13,28 +13,26 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type DefaultApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewDefaultApiService(client *twilio.Client) *DefaultApiService { - return &DefaultApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &DefaultApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } // CreateExecutionParams Optional parameters for the method 'CreateExecution' type CreateExecutionParams struct { - From *string `json:"From,omitempty"` - Parameters *map[string]interface{} `json:"Parameters,omitempty"` - To *string `json:"To,omitempty"` + From *string `json:"From,omitempty"` + Parameters *map[string]interface{} `json:"Parameters,omitempty"` + To *string `json:"To,omitempty"` } /* @@ -48,100 +46,42 @@ Triggers a new Execution for the Flow @return StudioV2FlowExecution */ func (c *DefaultApiService) CreateExecution(flowSid string, params *CreateExecutionParams) (*StudioV2FlowExecution, error) { - path := "/v2/Flows/{FlowSid}/Executions" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path := "/v2/Flows/{FlowSid}/Executions" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.From != nil { - data.Set("From", *params.From) - } - if params != nil && params.Parameters != nil { - v, err := json.Marshal(params.Parameters) + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.Parameters != nil { + v, err := json.Marshal(params.Parameters) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("Parameters", string(v)) - } - if params != nil && params.To != nil { - data.Set("To", *params.To) - } + data.Set("Parameters", string(v)) + } + if params != nil && params.To != nil { + data.Set("To", *params.To) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &StudioV2FlowExecution{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &StudioV2FlowExecution{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err -} -// CreateFlowParams Optional parameters for the method 'CreateFlow' -type CreateFlowParams struct { - CommitMessage *string `json:"CommitMessage,omitempty"` - Definition *map[string]interface{} `json:"Definition,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Status *string `json:"Status,omitempty"` -} - -/* -CreateFlow Method for CreateFlow -Create a Flow. - * @param optional nil or *CreateFlowOpts - Optional Parameters: - * @param "CommitMessage" (string) - Description on change made in the revision. - * @param "Definition" (map[string]interface{}) - JSON representation of flow definition. - * @param "FriendlyName" (string) - The string that you assigned to describe the Flow. - * @param "Status" (string) - The status of the Flow. Can be: `draft` or `published`. -@return StudioV2Flow -*/ -func (c *DefaultApiService) CreateFlow(params *CreateFlowParams) (*StudioV2Flow, error) { - path := "/v2/Flows" - - data := url.Values{} - headers := 0 - - if params != nil && params.CommitMessage != nil { - data.Set("CommitMessage", *params.CommitMessage) - } - if params != nil && params.Definition != nil { - v, err := json.Marshal(params.Definition) - - if err != nil { - return nil, err - } - - data.Set("Definition", string(v)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &StudioV2Flow{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + return ps, err } /* @@ -151,23 +91,23 @@ Delete the Execution and all Steps relating to it. * @param sid The SID of the Execution resource to delete. */ func (c *DefaultApiService) DeleteExecution(flowSid string, sid string) (error) { - path := "/v2/Flows/{FlowSid}/Executions/{Sid}" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Flows/{FlowSid}/Executions/{Sid}" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -176,22 +116,22 @@ Delete a specific Flow. * @param sid The SID of the Flow resource to delete. */ func (c *DefaultApiService) DeleteFlow(sid string) (error) { - path := "/v2/Flows/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Flows/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -202,28 +142,28 @@ Retrieve an Execution @return StudioV2FlowExecution */ func (c *DefaultApiService) FetchExecution(flowSid string, sid string) (*StudioV2FlowExecution, error) { - path := "/v2/Flows/{FlowSid}/Executions/{Sid}" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Flows/{FlowSid}/Executions/{Sid}" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &StudioV2FlowExecution{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &StudioV2FlowExecution{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -234,28 +174,28 @@ Retrieve the most recent context for an Execution. @return StudioV2FlowExecutionExecutionContext */ func (c *DefaultApiService) FetchExecutionContext(flowSid string, executionSid string) (*StudioV2FlowExecutionExecutionContext, error) { - path := "/v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Context" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"ExecutionSid"+"}", executionSid, -1) + path := "/v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Context" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"ExecutionSid"+"}", executionSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &StudioV2FlowExecutionExecutionContext{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &StudioV2FlowExecutionExecutionContext{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -267,29 +207,29 @@ Retrieve a Step. @return StudioV2FlowExecutionExecutionStep */ func (c *DefaultApiService) FetchExecutionStep(flowSid string, executionSid string, sid string) (*StudioV2FlowExecutionExecutionStep, error) { - path := "/v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps/{Sid}" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"ExecutionSid"+"}", executionSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps/{Sid}" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"ExecutionSid"+"}", executionSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &StudioV2FlowExecutionExecutionStep{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &StudioV2FlowExecutionExecutionStep{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -301,29 +241,29 @@ Retrieve the context for an Execution Step. @return StudioV2FlowExecutionExecutionStepExecutionStepContext */ func (c *DefaultApiService) FetchExecutionStepContext(flowSid string, executionSid string, stepSid string) (*StudioV2FlowExecutionExecutionStepExecutionStepContext, error) { - path := "/v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps/{StepSid}/Context" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"ExecutionSid"+"}", executionSid, -1) - path = strings.Replace(path, "{"+"StepSid"+"}", stepSid, -1) + path := "/v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps/{StepSid}/Context" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"ExecutionSid"+"}", executionSid, -1) + path = strings.Replace(path, "{"+"StepSid"+"}", stepSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &StudioV2FlowExecutionExecutionStepExecutionStepContext{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &StudioV2FlowExecutionExecutionStepExecutionStepContext{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -333,27 +273,27 @@ Retrieve a specific Flow. @return StudioV2Flow */ func (c *DefaultApiService) FetchFlow(sid string) (*StudioV2Flow, error) { - path := "/v2/Flows/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Flows/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &StudioV2Flow{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &StudioV2Flow{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -364,28 +304,28 @@ Retrieve a specific Flow revision. @return StudioV2FlowFlowRevision */ func (c *DefaultApiService) FetchFlowRevision(sid string, revision string) (*StudioV2FlowFlowRevision, error) { - path := "/v2/Flows/{Sid}/Revisions/{Revision}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - path = strings.Replace(path, "{"+"Revision"+"}", revision, -1) + path := "/v2/Flows/{Sid}/Revisions/{Revision}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Revision"+"}", revision, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &StudioV2FlowFlowRevision{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &StudioV2FlowFlowRevision{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -394,33 +334,33 @@ FetchTestUser Method for FetchTestUser @return StudioV2FlowTestUser */ func (c *DefaultApiService) FetchTestUser(sid string) (*StudioV2FlowTestUser, error) { - path := "/v2/Flows/{Sid}/TestUsers" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Flows/{Sid}/TestUsers" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &StudioV2FlowTestUser{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &StudioV2FlowTestUser{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListExecutionParams Optional parameters for the method 'ListExecution' type ListExecutionParams struct { - DateCreatedFrom *time.Time `json:"DateCreatedFrom,omitempty"` - DateCreatedTo *time.Time `json:"DateCreatedTo,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + DateCreatedFrom *time.Time `json:"DateCreatedFrom,omitempty"` + DateCreatedTo *time.Time `json:"DateCreatedTo,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -434,40 +374,40 @@ Retrieve a list of all Executions for the Flow. @return StudioV2FlowExecutionReadResponse */ func (c *DefaultApiService) ListExecution(flowSid string, params *ListExecutionParams) (*StudioV2FlowExecutionReadResponse, error) { - path := "/v2/Flows/{FlowSid}/Executions" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path := "/v2/Flows/{FlowSid}/Executions" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.DateCreatedFrom != nil { - data.Set("DateCreatedFrom", string(*params.DateCreatedFrom)) - } - if params != nil && params.DateCreatedTo != nil { - data.Set("DateCreatedTo", string(*params.DateCreatedTo)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.DateCreatedFrom != nil { + data.Set("DateCreatedFrom", string(*params.DateCreatedFrom)) + } + if params != nil && params.DateCreatedTo != nil { + data.Set("DateCreatedTo", string(*params.DateCreatedTo)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &StudioV2FlowExecutionReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &StudioV2FlowExecutionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListExecutionStepParams Optional parameters for the method 'ListExecutionStep' type ListExecutionStepParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -480,72 +420,35 @@ Retrieve a list of all Steps for an Execution. @return StudioV2FlowExecutionExecutionStepReadResponse */ func (c *DefaultApiService) ListExecutionStep(flowSid string, executionSid string, params *ListExecutionStepParams) (*StudioV2FlowExecutionExecutionStepReadResponse, error) { - path := "/v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"ExecutionSid"+"}", executionSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &StudioV2FlowExecutionExecutionStepReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} -// ListFlowParams Optional parameters for the method 'ListFlow' -type ListFlowParams struct { - PageSize *int32 `json:"PageSize,omitempty"` -} - -/* -ListFlow Method for ListFlow -Retrieve a list of all Flows. - * @param optional nil or *ListFlowOpts - Optional Parameters: - * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return StudioV2FlowReadResponse -*/ -func (c *DefaultApiService) ListFlow(params *ListFlowParams) (*StudioV2FlowReadResponse, error) { - path := "/v2/Flows" + path := "/v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"ExecutionSid"+"}", executionSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &StudioV2FlowReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &StudioV2FlowExecutionExecutionStepReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListFlowRevisionParams Optional parameters for the method 'ListFlowRevision' type ListFlowRevisionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -557,34 +460,34 @@ Retrieve a list of all Flows revisions. @return StudioV2FlowFlowRevisionReadResponse */ func (c *DefaultApiService) ListFlowRevision(sid string, params *ListFlowRevisionParams) (*StudioV2FlowFlowRevisionReadResponse, error) { - path := "/v2/Flows/{Sid}/Revisions" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Flows/{Sid}/Revisions" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &StudioV2FlowFlowRevisionReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &StudioV2FlowFlowRevisionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateExecutionParams Optional parameters for the method 'UpdateExecution' type UpdateExecutionParams struct { - Status *string `json:"Status,omitempty"` + Status *string `json:"Status,omitempty"` } /* @@ -597,38 +500,38 @@ Update the status of an Execution to `ended`. @return StudioV2FlowExecution */ func (c *DefaultApiService) UpdateExecution(flowSid string, sid string, params *UpdateExecutionParams) (*StudioV2FlowExecution, error) { - path := "/v2/Flows/{FlowSid}/Executions/{Sid}" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Flows/{FlowSid}/Executions/{Sid}" + path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &StudioV2FlowExecution{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &StudioV2FlowExecution{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateFlowParams Optional parameters for the method 'UpdateFlow' type UpdateFlowParams struct { - CommitMessage *string `json:"CommitMessage,omitempty"` - Definition *map[string]interface{} `json:"Definition,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Status *string `json:"Status,omitempty"` + CommitMessage *string `json:"CommitMessage,omitempty"` + Definition *map[string]interface{} `json:"Definition,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Status *string `json:"Status,omitempty"` } /* @@ -643,52 +546,52 @@ Update a Flow. @return StudioV2Flow */ func (c *DefaultApiService) UpdateFlow(sid string, params *UpdateFlowParams) (*StudioV2Flow, error) { - path := "/v2/Flows/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Flows/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.CommitMessage != nil { - data.Set("CommitMessage", *params.CommitMessage) - } - if params != nil && params.Definition != nil { - v, err := json.Marshal(params.Definition) + if params != nil && params.CommitMessage != nil { + data.Set("CommitMessage", *params.CommitMessage) + } + if params != nil && params.Definition != nil { + v, err := json.Marshal(params.Definition) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("Definition", string(v)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } + data.Set("Definition", string(v)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &StudioV2Flow{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &StudioV2Flow{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateFlowValidateParams Optional parameters for the method 'UpdateFlowValidate' type UpdateFlowValidateParams struct { - CommitMessage *string `json:"CommitMessage,omitempty"` - Definition *map[string]interface{} `json:"Definition,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Status *string `json:"Status,omitempty"` + CommitMessage *string `json:"CommitMessage,omitempty"` + Definition *map[string]interface{} `json:"Definition,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Status *string `json:"Status,omitempty"` } /* @@ -701,48 +604,48 @@ UpdateFlowValidate Method for UpdateFlowValidate @return StudioV2FlowValidate */ func (c *DefaultApiService) UpdateFlowValidate(params *UpdateFlowValidateParams) (*StudioV2FlowValidate, error) { - path := "/v2/Flows/Validate" + path := "/v2/Flows/Validate" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.CommitMessage != nil { - data.Set("CommitMessage", *params.CommitMessage) - } - if params != nil && params.Definition != nil { - v, err := json.Marshal(params.Definition) + if params != nil && params.CommitMessage != nil { + data.Set("CommitMessage", *params.CommitMessage) + } + if params != nil && params.Definition != nil { + v, err := json.Marshal(params.Definition) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("Definition", string(v)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } + data.Set("Definition", string(v)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &StudioV2FlowValidate{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &StudioV2FlowValidate{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateTestUserParams Optional parameters for the method 'UpdateTestUser' type UpdateTestUserParams struct { - TestUsers *[]string `json:"TestUsers,omitempty"` + TestUsers *[]string `json:"TestUsers,omitempty"` } /* @@ -753,28 +656,28 @@ UpdateTestUser Method for UpdateTestUser @return StudioV2FlowTestUser */ func (c *DefaultApiService) UpdateTestUser(sid string, params *UpdateTestUserParams) (*StudioV2FlowTestUser, error) { - path := "/v2/Flows/{Sid}/TestUsers" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Flows/{Sid}/TestUsers" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.TestUsers != nil { - data.Set("TestUsers", *params.TestUsers) - } + if params != nil && params.TestUsers != nil { + data.Set("TestUsers", *params.TestUsers) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &StudioV2FlowTestUser{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &StudioV2FlowTestUser{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } diff --git a/rest/studio/v2/api_flows.go b/rest/studio/v2/api_flows.go new file mode 100644 index 000000000..8988dcd70 --- /dev/null +++ b/rest/studio/v2/api_flows.go @@ -0,0 +1,125 @@ +/* + * Twilio - Studio + * + * This is the public Twilio REST API. + * + * API version: 5.15.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" +) + +type FlowsApiService struct { + baseURL string + client *twilio.Client +} + +func NewFlowsApiService(client *twilio.Client) *FlowsApiService { + return &FlowsApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } +} +// CreateFlowParams Optional parameters for the method 'CreateFlow' +type CreateFlowParams struct { + CommitMessage *string `json:"CommitMessage,omitempty"` + Definition *map[string]interface{} `json:"Definition,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Status *string `json:"Status,omitempty"` +} + +/* +CreateFlow Method for CreateFlow +Create a Flow. + * @param optional nil or *CreateFlowOpts - Optional Parameters: + * @param "CommitMessage" (string) - Description on change made in the revision. + * @param "Definition" (map[string]interface{}) - JSON representation of flow definition. + * @param "FriendlyName" (string) - The string that you assigned to describe the Flow. + * @param "Status" (string) - The status of the Flow. Can be: `draft` or `published`. +@return StudioV2Flow +*/ +func (c *FlowsApiService) CreateFlow(params *CreateFlowParams) (*StudioV2Flow, error) { + path := "/v2/Flows" + + data := url.Values{} + headers := 0 + + if params != nil && params.CommitMessage != nil { + data.Set("CommitMessage", *params.CommitMessage) + } + if params != nil && params.Definition != nil { + v, err := json.Marshal(params.Definition) + + if err != nil { + return nil, err + } + + data.Set("Definition", string(v)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV2Flow{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListFlowParams Optional parameters for the method 'ListFlow' +type ListFlowParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListFlow Method for ListFlow +Retrieve a list of all Flows. + * @param optional nil or *ListFlowOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return StudioV2FlowReadResponse +*/ +func (c *FlowsApiService) ListFlow(params *ListFlowParams) (*StudioV2FlowReadResponse, error) { + path := "/v2/Flows" + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV2FlowReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/studio/v2/docs/DefaultApi.md b/rest/studio/v2/docs/DefaultApi.md index c4f0ca36a..d354fb0c8 100644 --- a/rest/studio/v2/docs/DefaultApi.md +++ b/rest/studio/v2/docs/DefaultApi.md @@ -5,7 +5,6 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- [**CreateExecution**](DefaultApi.md#CreateExecution) | **Post** /v2/Flows/{FlowSid}/Executions | -[**CreateFlow**](DefaultApi.md#CreateFlow) | **Post** /v2/Flows | [**DeleteExecution**](DefaultApi.md#DeleteExecution) | **Delete** /v2/Flows/{FlowSid}/Executions/{Sid} | [**DeleteFlow**](DefaultApi.md#DeleteFlow) | **Delete** /v2/Flows/{Sid} | [**FetchExecution**](DefaultApi.md#FetchExecution) | **Get** /v2/Flows/{FlowSid}/Executions/{Sid} | @@ -17,7 +16,6 @@ Method | HTTP request | Description [**FetchTestUser**](DefaultApi.md#FetchTestUser) | **Get** /v2/Flows/{Sid}/TestUsers | [**ListExecution**](DefaultApi.md#ListExecution) | **Get** /v2/Flows/{FlowSid}/Executions | [**ListExecutionStep**](DefaultApi.md#ListExecutionStep) | **Get** /v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps | -[**ListFlow**](DefaultApi.md#ListFlow) | **Get** /v2/Flows | [**ListFlowRevision**](DefaultApi.md#ListFlowRevision) | **Get** /v2/Flows/{Sid}/Revisions | [**UpdateExecution**](DefaultApi.md#UpdateExecution) | **Post** /v2/Flows/{FlowSid}/Executions/{Sid} | [**UpdateFlow**](DefaultApi.md#UpdateFlow) | **Post** /v2/Flows/{Sid} | @@ -73,52 +71,6 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## CreateFlow - -> StudioV2Flow CreateFlow(ctx, optional) - - - -Create a Flow. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **optional** | ***CreateFlowOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a CreateFlowOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **commitMessage** | **optional.String**| Description on change made in the revision. | - **definition** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| JSON representation of flow definition. | - **friendlyName** | **optional.String**| The string that you assigned to describe the Flow. | - **status** | **optional.String**| The status of the Flow. Can be: `draft` or `published`. | - -### Return type - -[**StudioV2Flow**](studio.v2.flow.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) - - ## DeleteExecution > DeleteExecution(ctx, flowSid, sid) @@ -525,49 +477,6 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ListFlow - -> StudioV2FlowReadResponse ListFlow(ctx, optional) - - - -Retrieve a list of all Flows. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **optional** | ***ListFlowOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a ListFlowOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | - -### Return type - -[**StudioV2FlowReadResponse**](studio_v2_flowReadResponse.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) - - ## ListFlowRevision > StudioV2FlowFlowRevisionReadResponse ListFlowRevision(ctx, sid, optional) diff --git a/rest/studio/v2/docs/FlowsApi.md b/rest/studio/v2/docs/FlowsApi.md new file mode 100644 index 000000000..1e0a6a18c --- /dev/null +++ b/rest/studio/v2/docs/FlowsApi.md @@ -0,0 +1,99 @@ +# \FlowsApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateFlow**](FlowsApi.md#CreateFlow) | **Post** /v2/Flows | +[**ListFlow**](FlowsApi.md#ListFlow) | **Get** /v2/Flows | + + + +## CreateFlow + +> StudioV2Flow CreateFlow(ctx, optional) + + + +Create a Flow. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateFlowOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateFlowOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commitMessage** | **optional.String**| Description on change made in the revision. | + **definition** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| JSON representation of flow definition. | + **friendlyName** | **optional.String**| The string that you assigned to describe the Flow. | + **status** | **optional.String**| The status of the Flow. Can be: `draft` or `published`. | + +### Return type + +[**StudioV2Flow**](studio.v2.flow.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) + + +## ListFlow + +> StudioV2FlowReadResponse ListFlow(ctx, optional) + + + +Retrieve a list of all Flows. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListFlowOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListFlowOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**StudioV2FlowReadResponse**](studio_v2_flowReadResponse.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/rest/studio/v2/response.go b/rest/studio/v2/response.go index 6fe7b4956..a5e963134 100644 --- a/rest/studio/v2/response.go +++ b/rest/studio/v2/response.go @@ -32,16 +32,14 @@ type APIResponse struct { Payload []byte `json:"-"` } -// Response returns a new APIResponse object. -func Response(r *http.Response) *APIResponse { - +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { response := &APIResponse{Response: r} return response } -// ResponseWithError returns a new APIResponse object with the provided error message. -func ResponseWithError(errorMessage string) *APIResponse { - +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { response := &APIResponse{Message: errorMessage} return response } diff --git a/rest/supersim/v1/api_default.go b/rest/supersim/v1/api_default.go index aed746ad8..1a776c5a9 100644 --- a/rest/supersim/v1/api_default.go +++ b/rest/supersim/v1/api_default.go @@ -13,29 +13,27 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type DefaultApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewDefaultApiService(client *twilio.Client) *DefaultApiService { - return &DefaultApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &DefaultApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } // CreateCommandParams Optional parameters for the method 'CreateCommand' type CreateCommandParams struct { - CallbackMethod *string `json:"CallbackMethod,omitempty"` - CallbackUrl *string `json:"CallbackUrl,omitempty"` - Command *string `json:"Command,omitempty"` - Sim *string `json:"Sim,omitempty"` + CallbackMethod *string `json:"CallbackMethod,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + Command *string `json:"Command,omitempty"` + Sim *string `json:"Sim,omitempty"` } /* @@ -49,48 +47,48 @@ Send a Command to a Sim. @return SupersimV1Command */ func (c *DefaultApiService) CreateCommand(params *CreateCommandParams) (*SupersimV1Command, error) { - path := "/v1/Commands" + path := "/v1/Commands" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.CallbackMethod != nil { - data.Set("CallbackMethod", *params.CallbackMethod) - } - if params != nil && params.CallbackUrl != nil { - data.Set("CallbackUrl", *params.CallbackUrl) - } - if params != nil && params.Command != nil { - data.Set("Command", *params.Command) - } - if params != nil && params.Sim != nil { - data.Set("Sim", *params.Sim) - } + if params != nil && params.CallbackMethod != nil { + data.Set("CallbackMethod", *params.CallbackMethod) + } + if params != nil && params.CallbackUrl != nil { + data.Set("CallbackUrl", *params.CallbackUrl) + } + if params != nil && params.Command != nil { + data.Set("Command", *params.Command) + } + if params != nil && params.Sim != nil { + data.Set("Sim", *params.Sim) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SupersimV1Command{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SupersimV1Command{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateFleetParams Optional parameters for the method 'CreateFleet' type CreateFleetParams struct { - CommandsEnabled *bool `json:"CommandsEnabled,omitempty"` - CommandsMethod *string `json:"CommandsMethod,omitempty"` - CommandsUrl *string `json:"CommandsUrl,omitempty"` - DataEnabled *bool `json:"DataEnabled,omitempty"` - DataLimit *int32 `json:"DataLimit,omitempty"` - NetworkAccessProfile *string `json:"NetworkAccessProfile,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + CommandsEnabled *bool `json:"CommandsEnabled,omitempty"` + CommandsMethod *string `json:"CommandsMethod,omitempty"` + CommandsUrl *string `json:"CommandsUrl,omitempty"` + DataEnabled *bool `json:"DataEnabled,omitempty"` + DataLimit *int32 `json:"DataLimit,omitempty"` + NetworkAccessProfile *string `json:"NetworkAccessProfile,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -107,52 +105,52 @@ Create a Fleet @return SupersimV1Fleet */ func (c *DefaultApiService) CreateFleet(params *CreateFleetParams) (*SupersimV1Fleet, error) { - path := "/v1/Fleets" - - data := url.Values{} - headers := 0 - - if params != nil && params.CommandsEnabled != nil { - data.Set("CommandsEnabled", string(*params.CommandsEnabled)) - } - if params != nil && params.CommandsMethod != nil { - data.Set("CommandsMethod", *params.CommandsMethod) - } - if params != nil && params.CommandsUrl != nil { - data.Set("CommandsUrl", *params.CommandsUrl) - } - if params != nil && params.DataEnabled != nil { - data.Set("DataEnabled", string(*params.DataEnabled)) - } - if params != nil && params.DataLimit != nil { - data.Set("DataLimit", string(*params.DataLimit)) - } - if params != nil && params.NetworkAccessProfile != nil { - data.Set("NetworkAccessProfile", *params.NetworkAccessProfile) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &SupersimV1Fleet{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Fleets" + + data := url.Values{} + headers := 0 + + if params != nil && params.CommandsEnabled != nil { + data.Set("CommandsEnabled", string(*params.CommandsEnabled)) + } + if params != nil && params.CommandsMethod != nil { + data.Set("CommandsMethod", *params.CommandsMethod) + } + if params != nil && params.CommandsUrl != nil { + data.Set("CommandsUrl", *params.CommandsUrl) + } + if params != nil && params.DataEnabled != nil { + data.Set("DataEnabled", string(*params.DataEnabled)) + } + if params != nil && params.DataLimit != nil { + data.Set("DataLimit", string(*params.DataLimit)) + } + if params != nil && params.NetworkAccessProfile != nil { + data.Set("NetworkAccessProfile", *params.NetworkAccessProfile) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SupersimV1Fleet{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateNetworkAccessProfileParams Optional parameters for the method 'CreateNetworkAccessProfile' type CreateNetworkAccessProfileParams struct { - Networks *[]string `json:"Networks,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + Networks *[]string `json:"Networks,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -164,36 +162,36 @@ Create a new Network Access Profile @return SupersimV1NetworkAccessProfile */ func (c *DefaultApiService) CreateNetworkAccessProfile(params *CreateNetworkAccessProfileParams) (*SupersimV1NetworkAccessProfile, error) { - path := "/v1/NetworkAccessProfiles" + path := "/v1/NetworkAccessProfiles" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Networks != nil { - data.Set("Networks", *params.Networks) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } + if params != nil && params.Networks != nil { + data.Set("Networks", *params.Networks) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SupersimV1NetworkAccessProfile{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SupersimV1NetworkAccessProfile{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateNetworkAccessProfileNetworkParams Optional parameters for the method 'CreateNetworkAccessProfileNetwork' type CreateNetworkAccessProfileNetworkParams struct { - Network *string `json:"Network,omitempty"` + Network *string `json:"Network,omitempty"` } /* @@ -205,30 +203,30 @@ Add a Network resource to the Network Access Profile resource. @return SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork */ func (c *DefaultApiService) CreateNetworkAccessProfileNetwork(networkAccessProfileSid string, params *CreateNetworkAccessProfileNetworkParams) (*SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork, error) { - path := "/v1/NetworkAccessProfiles/{NetworkAccessProfileSid}/Networks" - path = strings.Replace(path, "{"+"NetworkAccessProfileSid"+"}", networkAccessProfileSid, -1) + path := "/v1/NetworkAccessProfiles/{NetworkAccessProfileSid}/Networks" + path = strings.Replace(path, "{"+"NetworkAccessProfileSid"+"}", networkAccessProfileSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Network != nil { - data.Set("Network", *params.Network) - } + if params != nil && params.Network != nil { + data.Set("Network", *params.Network) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -238,23 +236,23 @@ Remove a Network resource from the Network Access Profile resource's. * @param sid */ func (c *DefaultApiService) DeleteNetworkAccessProfileNetwork(networkAccessProfileSid string, sid string) (error) { - path := "/v1/NetworkAccessProfiles/{NetworkAccessProfileSid}/Networks/{Sid}" - path = strings.Replace(path, "{"+"NetworkAccessProfileSid"+"}", networkAccessProfileSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/NetworkAccessProfiles/{NetworkAccessProfileSid}/Networks/{Sid}" + path = strings.Replace(path, "{"+"NetworkAccessProfileSid"+"}", networkAccessProfileSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -264,27 +262,27 @@ Fetch a Command instance from your account. @return SupersimV1Command */ func (c *DefaultApiService) FetchCommand(sid string) (*SupersimV1Command, error) { - path := "/v1/Commands/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Commands/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SupersimV1Command{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SupersimV1Command{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -294,27 +292,27 @@ Fetch a Fleet instance from your account. @return SupersimV1Fleet */ func (c *DefaultApiService) FetchFleet(sid string) (*SupersimV1Fleet, error) { - path := "/v1/Fleets/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Fleets/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SupersimV1Fleet{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SupersimV1Fleet{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -324,27 +322,27 @@ Fetch a Network resource. @return SupersimV1Network */ func (c *DefaultApiService) FetchNetwork(sid string) (*SupersimV1Network, error) { - path := "/v1/Networks/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Networks/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SupersimV1Network{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SupersimV1Network{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -354,27 +352,27 @@ Fetch a Network Access Profile instance from your account. @return SupersimV1NetworkAccessProfile */ func (c *DefaultApiService) FetchNetworkAccessProfile(sid string) (*SupersimV1NetworkAccessProfile, error) { - path := "/v1/NetworkAccessProfiles/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/NetworkAccessProfiles/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SupersimV1NetworkAccessProfile{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SupersimV1NetworkAccessProfile{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -385,28 +383,28 @@ Fetch a Network Access Profile resource's Network resource. @return SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork */ func (c *DefaultApiService) FetchNetworkAccessProfileNetwork(networkAccessProfileSid string, sid string) (*SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork, error) { - path := "/v1/NetworkAccessProfiles/{NetworkAccessProfileSid}/Networks/{Sid}" - path = strings.Replace(path, "{"+"NetworkAccessProfileSid"+"}", networkAccessProfileSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/NetworkAccessProfiles/{NetworkAccessProfileSid}/Networks/{Sid}" + path = strings.Replace(path, "{"+"NetworkAccessProfileSid"+"}", networkAccessProfileSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -416,34 +414,34 @@ Fetch a Super SIM instance from your account. @return SupersimV1Sim */ func (c *DefaultApiService) FetchSim(sid string) (*SupersimV1Sim, error) { - path := "/v1/Sims/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Sims/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SupersimV1Sim{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SupersimV1Sim{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListCommandParams Optional parameters for the method 'ListCommand' type ListCommandParams struct { - Sim *string `json:"Sim,omitempty"` - Status *string `json:"Status,omitempty"` - Direction *string `json:"Direction,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Sim *string `json:"Sim,omitempty"` + Status *string `json:"Status,omitempty"` + Direction *string `json:"Direction,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -457,43 +455,43 @@ Retrieve a list of Commands from your account. @return SupersimV1CommandReadResponse */ func (c *DefaultApiService) ListCommand(params *ListCommandParams) (*SupersimV1CommandReadResponse, error) { - path := "/v1/Commands" + path := "/v1/Commands" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Sim != nil { - data.Set("Sim", *params.Sim) - } - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - if params != nil && params.Direction != nil { - data.Set("Direction", *params.Direction) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.Sim != nil { + data.Set("Sim", *params.Sim) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.Direction != nil { + data.Set("Direction", *params.Direction) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SupersimV1CommandReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SupersimV1CommandReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListFleetParams Optional parameters for the method 'ListFleet' type ListFleetParams struct { - NetworkAccessProfile *string `json:"NetworkAccessProfile,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + NetworkAccessProfile *string `json:"NetworkAccessProfile,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -505,39 +503,39 @@ Retrieve a list of Fleets from your account. @return SupersimV1FleetReadResponse */ func (c *DefaultApiService) ListFleet(params *ListFleetParams) (*SupersimV1FleetReadResponse, error) { - path := "/v1/Fleets" + path := "/v1/Fleets" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.NetworkAccessProfile != nil { - data.Set("NetworkAccessProfile", *params.NetworkAccessProfile) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.NetworkAccessProfile != nil { + data.Set("NetworkAccessProfile", *params.NetworkAccessProfile) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SupersimV1FleetReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SupersimV1FleetReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListNetworkParams Optional parameters for the method 'ListNetwork' type ListNetworkParams struct { - IsoCountry *string `json:"IsoCountry,omitempty"` - Mcc *string `json:"Mcc,omitempty"` - Mnc *string `json:"Mnc,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + IsoCountry *string `json:"IsoCountry,omitempty"` + Mcc *string `json:"Mcc,omitempty"` + Mnc *string `json:"Mnc,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -551,42 +549,42 @@ Retrieve a list of Network resources. @return SupersimV1NetworkReadResponse */ func (c *DefaultApiService) ListNetwork(params *ListNetworkParams) (*SupersimV1NetworkReadResponse, error) { - path := "/v1/Networks" + path := "/v1/Networks" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.IsoCountry != nil { - data.Set("IsoCountry", *params.IsoCountry) - } - if params != nil && params.Mcc != nil { - data.Set("Mcc", *params.Mcc) - } - if params != nil && params.Mnc != nil { - data.Set("Mnc", *params.Mnc) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.IsoCountry != nil { + data.Set("IsoCountry", *params.IsoCountry) + } + if params != nil && params.Mcc != nil { + data.Set("Mcc", *params.Mcc) + } + if params != nil && params.Mnc != nil { + data.Set("Mnc", *params.Mnc) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SupersimV1NetworkReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SupersimV1NetworkReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListNetworkAccessProfileParams Optional parameters for the method 'ListNetworkAccessProfile' type ListNetworkAccessProfileParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -597,33 +595,33 @@ Retrieve a list of Network Access Profiles from your account. @return SupersimV1NetworkAccessProfileReadResponse */ func (c *DefaultApiService) ListNetworkAccessProfile(params *ListNetworkAccessProfileParams) (*SupersimV1NetworkAccessProfileReadResponse, error) { - path := "/v1/NetworkAccessProfiles" + path := "/v1/NetworkAccessProfiles" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SupersimV1NetworkAccessProfileReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SupersimV1NetworkAccessProfileReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListNetworkAccessProfileNetworkParams Optional parameters for the method 'ListNetworkAccessProfileNetwork' type ListNetworkAccessProfileNetworkParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -635,37 +633,37 @@ Retrieve a list of Network Access Profile resource's Network resource. @return SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse */ func (c *DefaultApiService) ListNetworkAccessProfileNetwork(networkAccessProfileSid string, params *ListNetworkAccessProfileNetworkParams) (*SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse, error) { - path := "/v1/NetworkAccessProfiles/{NetworkAccessProfileSid}/Networks" - path = strings.Replace(path, "{"+"NetworkAccessProfileSid"+"}", networkAccessProfileSid, -1) + path := "/v1/NetworkAccessProfiles/{NetworkAccessProfileSid}/Networks" + path = strings.Replace(path, "{"+"NetworkAccessProfileSid"+"}", networkAccessProfileSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListSimParams Optional parameters for the method 'ListSim' type ListSimParams struct { - Status *string `json:"Status,omitempty"` - Fleet *string `json:"Fleet,omitempty"` - Iccid *string `json:"Iccid,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Status *string `json:"Status,omitempty"` + Fleet *string `json:"Fleet,omitempty"` + Iccid *string `json:"Iccid,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -679,50 +677,50 @@ Retrieve a list of Super SIMs from your account. @return SupersimV1SimReadResponse */ func (c *DefaultApiService) ListSim(params *ListSimParams) (*SupersimV1SimReadResponse, error) { - path := "/v1/Sims" + path := "/v1/Sims" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - if params != nil && params.Fleet != nil { - data.Set("Fleet", *params.Fleet) - } - if params != nil && params.Iccid != nil { - data.Set("Iccid", *params.Iccid) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.Fleet != nil { + data.Set("Fleet", *params.Fleet) + } + if params != nil && params.Iccid != nil { + data.Set("Iccid", *params.Iccid) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SupersimV1SimReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SupersimV1SimReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListUsageRecordParams Optional parameters for the method 'ListUsageRecord' type ListUsageRecordParams struct { - Sim *string `json:"Sim,omitempty"` - Fleet *string `json:"Fleet,omitempty"` - Network *string `json:"Network,omitempty"` - IsoCountry *string `json:"IsoCountry,omitempty"` - Group *string `json:"Group,omitempty"` - Granularity *string `json:"Granularity,omitempty"` - StartTime *time.Time `json:"StartTime,omitempty"` - EndTime *time.Time `json:"EndTime,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Sim *string `json:"Sim,omitempty"` + Fleet *string `json:"Fleet,omitempty"` + Network *string `json:"Network,omitempty"` + IsoCountry *string `json:"IsoCountry,omitempty"` + Group *string `json:"Group,omitempty"` + Granularity *string `json:"Granularity,omitempty"` + StartTime *time.Time `json:"StartTime,omitempty"` + EndTime *time.Time `json:"EndTime,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -741,58 +739,58 @@ List UsageRecords @return SupersimV1UsageRecordReadResponse */ func (c *DefaultApiService) ListUsageRecord(params *ListUsageRecordParams) (*SupersimV1UsageRecordReadResponse, error) { - path := "/v1/UsageRecords" - - data := url.Values{} - headers := 0 - - if params != nil && params.Sim != nil { - data.Set("Sim", *params.Sim) - } - if params != nil && params.Fleet != nil { - data.Set("Fleet", *params.Fleet) - } - if params != nil && params.Network != nil { - data.Set("Network", *params.Network) - } - if params != nil && params.IsoCountry != nil { - data.Set("IsoCountry", *params.IsoCountry) - } - if params != nil && params.Group != nil { - data.Set("Group", *params.Group) - } - if params != nil && params.Granularity != nil { - data.Set("Granularity", *params.Granularity) - } - if params != nil && params.StartTime != nil { - data.Set("StartTime", string(*params.StartTime)) - } - if params != nil && params.EndTime != nil { - data.Set("EndTime", string(*params.EndTime)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &SupersimV1UsageRecordReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/UsageRecords" + + data := url.Values{} + headers := 0 + + if params != nil && params.Sim != nil { + data.Set("Sim", *params.Sim) + } + if params != nil && params.Fleet != nil { + data.Set("Fleet", *params.Fleet) + } + if params != nil && params.Network != nil { + data.Set("Network", *params.Network) + } + if params != nil && params.IsoCountry != nil { + data.Set("IsoCountry", *params.IsoCountry) + } + if params != nil && params.Group != nil { + data.Set("Group", *params.Group) + } + if params != nil && params.Granularity != nil { + data.Set("Granularity", *params.Granularity) + } + if params != nil && params.StartTime != nil { + data.Set("StartTime", string(*params.StartTime)) + } + if params != nil && params.EndTime != nil { + data.Set("EndTime", string(*params.EndTime)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SupersimV1UsageRecordReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateFleetParams Optional parameters for the method 'UpdateFleet' type UpdateFleetParams struct { - NetworkAccessProfile *string `json:"NetworkAccessProfile,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + NetworkAccessProfile *string `json:"NetworkAccessProfile,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -805,37 +803,37 @@ Updates the given properties of a Super SIM Fleet instance from your account. @return SupersimV1Fleet */ func (c *DefaultApiService) UpdateFleet(sid string, params *UpdateFleetParams) (*SupersimV1Fleet, error) { - path := "/v1/Fleets/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Fleets/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.NetworkAccessProfile != nil { - data.Set("NetworkAccessProfile", *params.NetworkAccessProfile) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } + if params != nil && params.NetworkAccessProfile != nil { + data.Set("NetworkAccessProfile", *params.NetworkAccessProfile) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SupersimV1Fleet{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SupersimV1Fleet{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateNetworkAccessProfileParams Optional parameters for the method 'UpdateNetworkAccessProfile' type UpdateNetworkAccessProfileParams struct { - UniqueName *string `json:"UniqueName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -847,39 +845,39 @@ Updates the given properties of a Network Access Profile in your account. @return SupersimV1NetworkAccessProfile */ func (c *DefaultApiService) UpdateNetworkAccessProfile(sid string, params *UpdateNetworkAccessProfileParams) (*SupersimV1NetworkAccessProfile, error) { - path := "/v1/NetworkAccessProfiles/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/NetworkAccessProfiles/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SupersimV1NetworkAccessProfile{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SupersimV1NetworkAccessProfile{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateSimParams Optional parameters for the method 'UpdateSim' type UpdateSimParams struct { - AccountSid *string `json:"AccountSid,omitempty"` - CallbackMethod *string `json:"CallbackMethod,omitempty"` - CallbackUrl *string `json:"CallbackUrl,omitempty"` - Fleet *string `json:"Fleet,omitempty"` - Status *string `json:"Status,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + AccountSid *string `json:"AccountSid,omitempty"` + CallbackMethod *string `json:"CallbackMethod,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + Fleet *string `json:"Fleet,omitempty"` + Status *string `json:"Status,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -896,43 +894,43 @@ Updates the given properties of a Super SIM instance from your account. @return SupersimV1Sim */ func (c *DefaultApiService) UpdateSim(sid string, params *UpdateSimParams) (*SupersimV1Sim, error) { - path := "/v1/Sims/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.AccountSid != nil { - data.Set("AccountSid", *params.AccountSid) - } - if params != nil && params.CallbackMethod != nil { - data.Set("CallbackMethod", *params.CallbackMethod) - } - if params != nil && params.CallbackUrl != nil { - data.Set("CallbackUrl", *params.CallbackUrl) - } - if params != nil && params.Fleet != nil { - data.Set("Fleet", *params.Fleet) - } - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &SupersimV1Sim{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Sims/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AccountSid != nil { + data.Set("AccountSid", *params.AccountSid) + } + if params != nil && params.CallbackMethod != nil { + data.Set("CallbackMethod", *params.CallbackMethod) + } + if params != nil && params.CallbackUrl != nil { + data.Set("CallbackUrl", *params.CallbackUrl) + } + if params != nil && params.Fleet != nil { + data.Set("Fleet", *params.Fleet) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SupersimV1Sim{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } diff --git a/rest/supersim/v1/response.go b/rest/supersim/v1/response.go index 376d599bf..b70447795 100644 --- a/rest/supersim/v1/response.go +++ b/rest/supersim/v1/response.go @@ -32,16 +32,14 @@ type APIResponse struct { Payload []byte `json:"-"` } -// Response returns a new APIResponse object. -func Response(r *http.Response) *APIResponse { - +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { response := &APIResponse{Response: r} return response } -// ResponseWithError returns a new APIResponse object with the provided error message. -func ResponseWithError(errorMessage string) *APIResponse { - +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { response := &APIResponse{Message: errorMessage} return response } diff --git a/rest/sync/v1/api_default.go b/rest/sync/v1/api_default.go index 7b174ee0c..faadb348d 100644 --- a/rest/sync/v1/api_default.go +++ b/rest/sync/v1/api_default.go @@ -13,28 +13,26 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type DefaultApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewDefaultApiService(client *twilio.Client) *DefaultApiService { - return &DefaultApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &DefaultApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } // CreateDocumentParams Optional parameters for the method 'CreateDocument' type CreateDocumentParams struct { - Data *map[string]interface{} `json:"Data,omitempty"` - Ttl *int32 `json:"Ttl,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -47,52 +45,52 @@ CreateDocument Method for CreateDocument @return SyncV1ServiceDocument */ func (c *DefaultApiService) CreateDocument(serviceSid string, params *CreateDocumentParams) (*SyncV1ServiceDocument, error) { - path := "/v1/Services/{ServiceSid}/Documents" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v1/Services/{ServiceSid}/Documents" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Data != nil { - v, err := json.Marshal(params.Data) + if params != nil && params.Data != nil { + v, err := json.Marshal(params.Data) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("Data", string(v)) - } - if params != nil && params.Ttl != nil { - data.Set("Ttl", string(*params.Ttl)) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } + data.Set("Data", string(v)) + } + if params != nil && params.Ttl != nil { + data.Set("Ttl", string(*params.Ttl)) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SyncV1ServiceDocument{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SyncV1ServiceDocument{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateServiceParams Optional parameters for the method 'CreateService' type CreateServiceParams struct { - AclEnabled *bool `json:"AclEnabled,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - ReachabilityDebouncingEnabled *bool `json:"ReachabilityDebouncingEnabled,omitempty"` - ReachabilityDebouncingWindow *int32 `json:"ReachabilityDebouncingWindow,omitempty"` - ReachabilityWebhooksEnabled *bool `json:"ReachabilityWebhooksEnabled,omitempty"` - WebhookUrl *string `json:"WebhookUrl,omitempty"` - WebhooksFromRestEnabled *bool `json:"WebhooksFromRestEnabled,omitempty"` + AclEnabled *bool `json:"AclEnabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + ReachabilityDebouncingEnabled *bool `json:"ReachabilityDebouncingEnabled,omitempty"` + ReachabilityDebouncingWindow *int32 `json:"ReachabilityDebouncingWindow,omitempty"` + ReachabilityWebhooksEnabled *bool `json:"ReachabilityWebhooksEnabled,omitempty"` + WebhookUrl *string `json:"WebhookUrl,omitempty"` + WebhooksFromRestEnabled *bool `json:"WebhooksFromRestEnabled,omitempty"` } /* @@ -108,51 +106,51 @@ CreateService Method for CreateService @return SyncV1Service */ func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*SyncV1Service, error) { - path := "/v1/Services" - - data := url.Values{} - headers := 0 - - if params != nil && params.AclEnabled != nil { - data.Set("AclEnabled", string(*params.AclEnabled)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.ReachabilityDebouncingEnabled != nil { - data.Set("ReachabilityDebouncingEnabled", string(*params.ReachabilityDebouncingEnabled)) - } - if params != nil && params.ReachabilityDebouncingWindow != nil { - data.Set("ReachabilityDebouncingWindow", string(*params.ReachabilityDebouncingWindow)) - } - if params != nil && params.ReachabilityWebhooksEnabled != nil { - data.Set("ReachabilityWebhooksEnabled", string(*params.ReachabilityWebhooksEnabled)) - } - if params != nil && params.WebhookUrl != nil { - data.Set("WebhookUrl", *params.WebhookUrl) - } - if params != nil && params.WebhooksFromRestEnabled != nil { - data.Set("WebhooksFromRestEnabled", string(*params.WebhooksFromRestEnabled)) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &SyncV1Service{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Services" + + data := url.Values{} + headers := 0 + + if params != nil && params.AclEnabled != nil { + data.Set("AclEnabled", string(*params.AclEnabled)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.ReachabilityDebouncingEnabled != nil { + data.Set("ReachabilityDebouncingEnabled", string(*params.ReachabilityDebouncingEnabled)) + } + if params != nil && params.ReachabilityDebouncingWindow != nil { + data.Set("ReachabilityDebouncingWindow", string(*params.ReachabilityDebouncingWindow)) + } + if params != nil && params.ReachabilityWebhooksEnabled != nil { + data.Set("ReachabilityWebhooksEnabled", string(*params.ReachabilityWebhooksEnabled)) + } + if params != nil && params.WebhookUrl != nil { + data.Set("WebhookUrl", *params.WebhookUrl) + } + if params != nil && params.WebhooksFromRestEnabled != nil { + data.Set("WebhooksFromRestEnabled", string(*params.WebhooksFromRestEnabled)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateStreamMessageParams Optional parameters for the method 'CreateStreamMessage' type CreateStreamMessageParams struct { - Data *map[string]interface{} `json:"Data,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` } /* @@ -165,43 +163,43 @@ Create a new Stream Message. @return SyncV1ServiceSyncStreamStreamMessage */ func (c *DefaultApiService) CreateStreamMessage(serviceSid string, streamSid string, params *CreateStreamMessageParams) (*SyncV1ServiceSyncStreamStreamMessage, error) { - path := "/v1/Services/{ServiceSid}/Streams/{StreamSid}/Messages" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"StreamSid"+"}", streamSid, -1) + path := "/v1/Services/{ServiceSid}/Streams/{StreamSid}/Messages" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"StreamSid"+"}", streamSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Data != nil { - v, err := json.Marshal(params.Data) + if params != nil && params.Data != nil { + v, err := json.Marshal(params.Data) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("Data", string(v)) - } + data.Set("Data", string(v)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SyncV1ServiceSyncStreamStreamMessage{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SyncV1ServiceSyncStreamStreamMessage{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateSyncListParams Optional parameters for the method 'CreateSyncList' type CreateSyncListParams struct { - CollectionTtl *int32 `json:"CollectionTtl,omitempty"` - Ttl *int32 `json:"Ttl,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + CollectionTtl *int32 `json:"CollectionTtl,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -214,43 +212,43 @@ CreateSyncList Method for CreateSyncList @return SyncV1ServiceSyncList */ func (c *DefaultApiService) CreateSyncList(serviceSid string, params *CreateSyncListParams) (*SyncV1ServiceSyncList, error) { - path := "/v1/Services/{ServiceSid}/Lists" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v1/Services/{ServiceSid}/Lists" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.CollectionTtl != nil { - data.Set("CollectionTtl", string(*params.CollectionTtl)) - } - if params != nil && params.Ttl != nil { - data.Set("Ttl", string(*params.Ttl)) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } + if params != nil && params.CollectionTtl != nil { + data.Set("CollectionTtl", string(*params.CollectionTtl)) + } + if params != nil && params.Ttl != nil { + data.Set("Ttl", string(*params.Ttl)) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SyncV1ServiceSyncList{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SyncV1ServiceSyncList{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateSyncListItemParams Optional parameters for the method 'CreateSyncListItem' type CreateSyncListItemParams struct { - CollectionTtl *int32 `json:"CollectionTtl,omitempty"` - Data *map[string]interface{} `json:"Data,omitempty"` - ItemTtl *int32 `json:"ItemTtl,omitempty"` - Ttl *int32 `json:"Ttl,omitempty"` + CollectionTtl *int32 `json:"CollectionTtl,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` + ItemTtl *int32 `json:"ItemTtl,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` } /* @@ -265,52 +263,52 @@ CreateSyncListItem Method for CreateSyncListItem @return SyncV1ServiceSyncListSyncListItem */ func (c *DefaultApiService) CreateSyncListItem(serviceSid string, listSid string, params *CreateSyncListItemParams) (*SyncV1ServiceSyncListSyncListItem, error) { - path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Items" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Items" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.CollectionTtl != nil { - data.Set("CollectionTtl", string(*params.CollectionTtl)) - } - if params != nil && params.Data != nil { - v, err := json.Marshal(params.Data) + if params != nil && params.CollectionTtl != nil { + data.Set("CollectionTtl", string(*params.CollectionTtl)) + } + if params != nil && params.Data != nil { + v, err := json.Marshal(params.Data) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("Data", string(v)) - } - if params != nil && params.ItemTtl != nil { - data.Set("ItemTtl", string(*params.ItemTtl)) - } - if params != nil && params.Ttl != nil { - data.Set("Ttl", string(*params.Ttl)) - } + data.Set("Data", string(v)) + } + if params != nil && params.ItemTtl != nil { + data.Set("ItemTtl", string(*params.ItemTtl)) + } + if params != nil && params.Ttl != nil { + data.Set("Ttl", string(*params.Ttl)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SyncV1ServiceSyncListSyncListItem{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SyncV1ServiceSyncListSyncListItem{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateSyncMapParams Optional parameters for the method 'CreateSyncMap' type CreateSyncMapParams struct { - CollectionTtl *int32 `json:"CollectionTtl,omitempty"` - Ttl *int32 `json:"Ttl,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + CollectionTtl *int32 `json:"CollectionTtl,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -323,44 +321,44 @@ CreateSyncMap Method for CreateSyncMap @return SyncV1ServiceSyncMap */ func (c *DefaultApiService) CreateSyncMap(serviceSid string, params *CreateSyncMapParams) (*SyncV1ServiceSyncMap, error) { - path := "/v1/Services/{ServiceSid}/Maps" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v1/Services/{ServiceSid}/Maps" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.CollectionTtl != nil { - data.Set("CollectionTtl", string(*params.CollectionTtl)) - } - if params != nil && params.Ttl != nil { - data.Set("Ttl", string(*params.Ttl)) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } + if params != nil && params.CollectionTtl != nil { + data.Set("CollectionTtl", string(*params.CollectionTtl)) + } + if params != nil && params.Ttl != nil { + data.Set("Ttl", string(*params.Ttl)) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SyncV1ServiceSyncMap{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SyncV1ServiceSyncMap{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateSyncMapItemParams Optional parameters for the method 'CreateSyncMapItem' type CreateSyncMapItemParams struct { - CollectionTtl *int32 `json:"CollectionTtl,omitempty"` - Data *map[string]interface{} `json:"Data,omitempty"` - ItemTtl *int32 `json:"ItemTtl,omitempty"` - Key *string `json:"Key,omitempty"` - Ttl *int32 `json:"Ttl,omitempty"` + CollectionTtl *int32 `json:"CollectionTtl,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` + ItemTtl *int32 `json:"ItemTtl,omitempty"` + Key *string `json:"Key,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` } /* @@ -376,54 +374,54 @@ CreateSyncMapItem Method for CreateSyncMapItem @return SyncV1ServiceSyncMapSyncMapItem */ func (c *DefaultApiService) CreateSyncMapItem(serviceSid string, mapSid string, params *CreateSyncMapItemParams) (*SyncV1ServiceSyncMapSyncMapItem, error) { - path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Items" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.CollectionTtl != nil { - data.Set("CollectionTtl", string(*params.CollectionTtl)) - } - if params != nil && params.Data != nil { - v, err := json.Marshal(params.Data) - - if err != nil { - return nil, err - } - - data.Set("Data", string(v)) - } - if params != nil && params.ItemTtl != nil { - data.Set("ItemTtl", string(*params.ItemTtl)) - } - if params != nil && params.Key != nil { - data.Set("Key", *params.Key) - } - if params != nil && params.Ttl != nil { - data.Set("Ttl", string(*params.Ttl)) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &SyncV1ServiceSyncMapSyncMapItem{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Items" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CollectionTtl != nil { + data.Set("CollectionTtl", string(*params.CollectionTtl)) + } + if params != nil && params.Data != nil { + v, err := json.Marshal(params.Data) + + if err != nil { + return nil, err + } + + data.Set("Data", string(v)) + } + if params != nil && params.ItemTtl != nil { + data.Set("ItemTtl", string(*params.ItemTtl)) + } + if params != nil && params.Key != nil { + data.Set("Key", *params.Key) + } + if params != nil && params.Ttl != nil { + data.Set("Ttl", string(*params.Ttl)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceSyncMapSyncMapItem{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateSyncStreamParams Optional parameters for the method 'CreateSyncStream' type CreateSyncStreamParams struct { - Ttl *int32 `json:"Ttl,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -436,37 +434,37 @@ Create a new Stream. @return SyncV1ServiceSyncStream */ func (c *DefaultApiService) CreateSyncStream(serviceSid string, params *CreateSyncStreamParams) (*SyncV1ServiceSyncStream, error) { - path := "/v1/Services/{ServiceSid}/Streams" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v1/Services/{ServiceSid}/Streams" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Ttl != nil { - data.Set("Ttl", string(*params.Ttl)) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } + if params != nil && params.Ttl != nil { + data.Set("Ttl", string(*params.Ttl)) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SyncV1ServiceSyncStream{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SyncV1ServiceSyncStream{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // DeleteDocumentParams Optional parameters for the method 'DeleteDocument' type DeleteDocumentParams struct { - If-Match *string `json:"If-Match,omitempty"` + If-Match *string `json:"If-Match,omitempty"` } /* @@ -477,26 +475,26 @@ DeleteDocument Method for DeleteDocument * @param "If-Match" (string) - The If-Match HTTP request header */ func (c *DefaultApiService) DeleteDocument(serviceSid string, sid string, params *DeleteDocumentParams) (error) { - path := "/v1/Services/{ServiceSid}/Documents/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Documents/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := make(map[string]interface{}) + data := url.Values{} + headers := make(map[string]interface{}) - if params != nil && params.If-Match != nil { - headers["If-Match"] = *params.If-Match - } + if params != nil && params.If-Match != nil { + headers["If-Match"] = *params.If-Match + } - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -507,24 +505,24 @@ Delete a specific Sync Document Permission. * @param identity The application-defined string that uniquely identifies the User's Document Permission resource to delete. */ func (c *DefaultApiService) DeleteDocumentPermission(serviceSid string, documentSid string, identity string) (error) { - path := "/v1/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"DocumentSid"+"}", documentSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path := "/v1/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"DocumentSid"+"}", documentSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -532,22 +530,22 @@ DeleteService Method for DeleteService * @param sid The SID of the Service resource to delete. */ func (c *DefaultApiService) DeleteService(sid string) (error) { - path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -556,27 +554,27 @@ DeleteSyncList Method for DeleteSyncList * @param sid The SID of the Sync List resource to delete. */ func (c *DefaultApiService) DeleteSyncList(serviceSid string, sid string) (error) { - path := "/v1/Services/{ServiceSid}/Lists/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Lists/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } // DeleteSyncListItemParams Optional parameters for the method 'DeleteSyncListItem' type DeleteSyncListItemParams struct { - If-Match *string `json:"If-Match,omitempty"` + If-Match *string `json:"If-Match,omitempty"` } /* @@ -588,27 +586,27 @@ DeleteSyncListItem Method for DeleteSyncListItem * @param "If-Match" (string) - The If-Match HTTP request header */ func (c *DefaultApiService) DeleteSyncListItem(serviceSid string, listSid string, index int32, params *DeleteSyncListItemParams) (error) { - path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) - path = strings.Replace(path, "{"+"Index"+"}", index, -1) + path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + path = strings.Replace(path, "{"+"Index"+"}", index, -1) - data := url.Values{} - headers := make(map[string]interface{}) + data := url.Values{} + headers := make(map[string]interface{}) - if params != nil && params.If-Match != nil { - headers["If-Match"] = *params.If-Match - } + if params != nil && params.If-Match != nil { + headers["If-Match"] = *params.If-Match + } - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -619,24 +617,24 @@ Delete a specific Sync List Permission. * @param identity The application-defined string that uniquely identifies the User's Sync List Permission resource to delete. */ func (c *DefaultApiService) DeleteSyncListPermission(serviceSid string, listSid string, identity string) (error) { - path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -645,27 +643,27 @@ DeleteSyncMap Method for DeleteSyncMap * @param sid The SID of the Sync Map resource to delete. */ func (c *DefaultApiService) DeleteSyncMap(serviceSid string, sid string) (error) { - path := "/v1/Services/{ServiceSid}/Maps/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Maps/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } // DeleteSyncMapItemParams Optional parameters for the method 'DeleteSyncMapItem' type DeleteSyncMapItemParams struct { - If-Match *string `json:"If-Match,omitempty"` + If-Match *string `json:"If-Match,omitempty"` } /* @@ -677,27 +675,27 @@ DeleteSyncMapItem Method for DeleteSyncMapItem * @param "If-Match" (string) - The If-Match HTTP request header */ func (c *DefaultApiService) DeleteSyncMapItem(serviceSid string, mapSid string, key string, params *DeleteSyncMapItemParams) (error) { - path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) - path = strings.Replace(path, "{"+"Key"+"}", key, -1) + path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + path = strings.Replace(path, "{"+"Key"+"}", key, -1) - data := url.Values{} - headers := make(map[string]interface{}) + data := url.Values{} + headers := make(map[string]interface{}) - if params != nil && params.If-Match != nil { - headers["If-Match"] = *params.If-Match - } + if params != nil && params.If-Match != nil { + headers["If-Match"] = *params.If-Match + } - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -708,24 +706,24 @@ Delete a specific Sync Map Permission. * @param identity The application-defined string that uniquely identifies the User's Sync Map Permission resource to delete. */ func (c *DefaultApiService) DeleteSyncMapPermission(serviceSid string, mapSid string, identity string) (error) { - path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -735,23 +733,23 @@ Delete a specific Stream. * @param sid The SID of the Stream resource to delete. */ func (c *DefaultApiService) DeleteSyncStream(serviceSid string, sid string) (error) { - path := "/v1/Services/{ServiceSid}/Streams/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Streams/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -761,28 +759,28 @@ FetchDocument Method for FetchDocument @return SyncV1ServiceDocument */ func (c *DefaultApiService) FetchDocument(serviceSid string, sid string) (*SyncV1ServiceDocument, error) { - path := "/v1/Services/{ServiceSid}/Documents/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Documents/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SyncV1ServiceDocument{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SyncV1ServiceDocument{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -794,29 +792,29 @@ Fetch a specific Sync Document Permission. @return SyncV1ServiceDocumentDocumentPermission */ func (c *DefaultApiService) FetchDocumentPermission(serviceSid string, documentSid string, identity string) (*SyncV1ServiceDocumentDocumentPermission, error) { - path := "/v1/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"DocumentSid"+"}", documentSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path := "/v1/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"DocumentSid"+"}", documentSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SyncV1ServiceDocumentDocumentPermission{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SyncV1ServiceDocumentDocumentPermission{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -825,27 +823,27 @@ FetchService Method for FetchService @return SyncV1Service */ func (c *DefaultApiService) FetchService(sid string) (*SyncV1Service, error) { - path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SyncV1Service{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SyncV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -855,28 +853,28 @@ FetchSyncList Method for FetchSyncList @return SyncV1ServiceSyncList */ func (c *DefaultApiService) FetchSyncList(serviceSid string, sid string) (*SyncV1ServiceSyncList, error) { - path := "/v1/Services/{ServiceSid}/Lists/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Lists/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SyncV1ServiceSyncList{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SyncV1ServiceSyncList{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -887,29 +885,29 @@ FetchSyncListItem Method for FetchSyncListItem @return SyncV1ServiceSyncListSyncListItem */ func (c *DefaultApiService) FetchSyncListItem(serviceSid string, listSid string, index int32) (*SyncV1ServiceSyncListSyncListItem, error) { - path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) - path = strings.Replace(path, "{"+"Index"+"}", index, -1) + path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + path = strings.Replace(path, "{"+"Index"+"}", index, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SyncV1ServiceSyncListSyncListItem{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SyncV1ServiceSyncListSyncListItem{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -921,29 +919,29 @@ Fetch a specific Sync List Permission. @return SyncV1ServiceSyncListSyncListPermission */ func (c *DefaultApiService) FetchSyncListPermission(serviceSid string, listSid string, identity string) (*SyncV1ServiceSyncListSyncListPermission, error) { - path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SyncV1ServiceSyncListSyncListPermission{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SyncV1ServiceSyncListSyncListPermission{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -953,28 +951,28 @@ FetchSyncMap Method for FetchSyncMap @return SyncV1ServiceSyncMap */ func (c *DefaultApiService) FetchSyncMap(serviceSid string, sid string) (*SyncV1ServiceSyncMap, error) { - path := "/v1/Services/{ServiceSid}/Maps/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Maps/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SyncV1ServiceSyncMap{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SyncV1ServiceSyncMap{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -985,29 +983,29 @@ FetchSyncMapItem Method for FetchSyncMapItem @return SyncV1ServiceSyncMapSyncMapItem */ func (c *DefaultApiService) FetchSyncMapItem(serviceSid string, mapSid string, key string) (*SyncV1ServiceSyncMapSyncMapItem, error) { - path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) - path = strings.Replace(path, "{"+"Key"+"}", key, -1) + path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + path = strings.Replace(path, "{"+"Key"+"}", key, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SyncV1ServiceSyncMapSyncMapItem{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SyncV1ServiceSyncMapSyncMapItem{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1019,29 +1017,29 @@ Fetch a specific Sync Map Permission. @return SyncV1ServiceSyncMapSyncMapPermission */ func (c *DefaultApiService) FetchSyncMapPermission(serviceSid string, mapSid string, identity string) (*SyncV1ServiceSyncMapSyncMapPermission, error) { - path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SyncV1ServiceSyncMapSyncMapPermission{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SyncV1ServiceSyncMapSyncMapPermission{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1052,33 +1050,33 @@ Fetch a specific Stream. @return SyncV1ServiceSyncStream */ func (c *DefaultApiService) FetchSyncStream(serviceSid string, sid string) (*SyncV1ServiceSyncStream, error) { - path := "/v1/Services/{ServiceSid}/Streams/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Streams/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SyncV1ServiceSyncStream{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SyncV1ServiceSyncStream{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListDocumentParams Optional parameters for the method 'ListDocument' type ListDocumentParams struct { - HideExpired *string `json:"HideExpired,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + HideExpired *string `json:"HideExpired,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1090,37 +1088,37 @@ ListDocument Method for ListDocument @return SyncV1ServiceDocumentReadResponse */ func (c *DefaultApiService) ListDocument(serviceSid string, params *ListDocumentParams) (*SyncV1ServiceDocumentReadResponse, error) { - path := "/v1/Services/{ServiceSid}/Documents" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v1/Services/{ServiceSid}/Documents" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.HideExpired != nil { - data.Set("HideExpired", *params.HideExpired) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.HideExpired != nil { + data.Set("HideExpired", *params.HideExpired) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SyncV1ServiceDocumentReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SyncV1ServiceDocumentReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListDocumentPermissionParams Optional parameters for the method 'ListDocumentPermission' type ListDocumentPermissionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1133,35 +1131,35 @@ Retrieve a list of all Permissions applying to a Sync Document. @return SyncV1ServiceDocumentDocumentPermissionReadResponse */ func (c *DefaultApiService) ListDocumentPermission(serviceSid string, documentSid string, params *ListDocumentPermissionParams) (*SyncV1ServiceDocumentDocumentPermissionReadResponse, error) { - path := "/v1/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"DocumentSid"+"}", documentSid, -1) + path := "/v1/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"DocumentSid"+"}", documentSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SyncV1ServiceDocumentDocumentPermissionReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SyncV1ServiceDocumentDocumentPermissionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListServiceParams Optional parameters for the method 'ListService' type ListServiceParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1171,34 +1169,34 @@ ListService Method for ListService @return SyncV1ServiceReadResponse */ func (c *DefaultApiService) ListService(params *ListServiceParams) (*SyncV1ServiceReadResponse, error) { - path := "/v1/Services" + path := "/v1/Services" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SyncV1ServiceReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SyncV1ServiceReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListSyncListParams Optional parameters for the method 'ListSyncList' type ListSyncListParams struct { - HideExpired *string `json:"HideExpired,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + HideExpired *string `json:"HideExpired,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1210,41 +1208,41 @@ ListSyncList Method for ListSyncList @return SyncV1ServiceSyncListReadResponse */ func (c *DefaultApiService) ListSyncList(serviceSid string, params *ListSyncListParams) (*SyncV1ServiceSyncListReadResponse, error) { - path := "/v1/Services/{ServiceSid}/Lists" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v1/Services/{ServiceSid}/Lists" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.HideExpired != nil { - data.Set("HideExpired", *params.HideExpired) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.HideExpired != nil { + data.Set("HideExpired", *params.HideExpired) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SyncV1ServiceSyncListReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SyncV1ServiceSyncListReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListSyncListItemParams Optional parameters for the method 'ListSyncListItem' type ListSyncListItemParams struct { - Order *string `json:"Order,omitempty"` - From *string `json:"From,omitempty"` - Bounds *string `json:"Bounds,omitempty"` - HideExpired *string `json:"HideExpired,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Order *string `json:"Order,omitempty"` + From *string `json:"From,omitempty"` + Bounds *string `json:"Bounds,omitempty"` + HideExpired *string `json:"HideExpired,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1260,47 +1258,47 @@ ListSyncListItem Method for ListSyncListItem @return SyncV1ServiceSyncListSyncListItemReadResponse */ func (c *DefaultApiService) ListSyncListItem(serviceSid string, listSid string, params *ListSyncListItemParams) (*SyncV1ServiceSyncListSyncListItemReadResponse, error) { - path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Items" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Order != nil { - data.Set("Order", *params.Order) - } - if params != nil && params.From != nil { - data.Set("From", *params.From) - } - if params != nil && params.Bounds != nil { - data.Set("Bounds", *params.Bounds) - } - if params != nil && params.HideExpired != nil { - data.Set("HideExpired", *params.HideExpired) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &SyncV1ServiceSyncListSyncListItemReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Items" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Order != nil { + data.Set("Order", *params.Order) + } + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.Bounds != nil { + data.Set("Bounds", *params.Bounds) + } + if params != nil && params.HideExpired != nil { + data.Set("HideExpired", *params.HideExpired) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceSyncListSyncListItemReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListSyncListPermissionParams Optional parameters for the method 'ListSyncListPermission' type ListSyncListPermissionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1313,36 +1311,36 @@ Retrieve a list of all Permissions applying to a Sync List. @return SyncV1ServiceSyncListSyncListPermissionReadResponse */ func (c *DefaultApiService) ListSyncListPermission(serviceSid string, listSid string, params *ListSyncListPermissionParams) (*SyncV1ServiceSyncListSyncListPermissionReadResponse, error) { - path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SyncV1ServiceSyncListSyncListPermissionReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SyncV1ServiceSyncListSyncListPermissionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListSyncMapParams Optional parameters for the method 'ListSyncMap' type ListSyncMapParams struct { - HideExpired *string `json:"HideExpired,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + HideExpired *string `json:"HideExpired,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1354,41 +1352,41 @@ ListSyncMap Method for ListSyncMap @return SyncV1ServiceSyncMapReadResponse */ func (c *DefaultApiService) ListSyncMap(serviceSid string, params *ListSyncMapParams) (*SyncV1ServiceSyncMapReadResponse, error) { - path := "/v1/Services/{ServiceSid}/Maps" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v1/Services/{ServiceSid}/Maps" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.HideExpired != nil { - data.Set("HideExpired", *params.HideExpired) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.HideExpired != nil { + data.Set("HideExpired", *params.HideExpired) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SyncV1ServiceSyncMapReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SyncV1ServiceSyncMapReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListSyncMapItemParams Optional parameters for the method 'ListSyncMapItem' type ListSyncMapItemParams struct { - Order *string `json:"Order,omitempty"` - From *string `json:"From,omitempty"` - Bounds *string `json:"Bounds,omitempty"` - HideExpired *string `json:"HideExpired,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Order *string `json:"Order,omitempty"` + From *string `json:"From,omitempty"` + Bounds *string `json:"Bounds,omitempty"` + HideExpired *string `json:"HideExpired,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1404,47 +1402,47 @@ ListSyncMapItem Method for ListSyncMapItem @return SyncV1ServiceSyncMapSyncMapItemReadResponse */ func (c *DefaultApiService) ListSyncMapItem(serviceSid string, mapSid string, params *ListSyncMapItemParams) (*SyncV1ServiceSyncMapSyncMapItemReadResponse, error) { - path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Items" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Order != nil { - data.Set("Order", *params.Order) - } - if params != nil && params.From != nil { - data.Set("From", *params.From) - } - if params != nil && params.Bounds != nil { - data.Set("Bounds", *params.Bounds) - } - if params != nil && params.HideExpired != nil { - data.Set("HideExpired", *params.HideExpired) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &SyncV1ServiceSyncMapSyncMapItemReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Items" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Order != nil { + data.Set("Order", *params.Order) + } + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.Bounds != nil { + data.Set("Bounds", *params.Bounds) + } + if params != nil && params.HideExpired != nil { + data.Set("HideExpired", *params.HideExpired) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceSyncMapSyncMapItemReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListSyncMapPermissionParams Optional parameters for the method 'ListSyncMapPermission' type ListSyncMapPermissionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1457,36 +1455,36 @@ Retrieve a list of all Permissions applying to a Sync Map. @return SyncV1ServiceSyncMapSyncMapPermissionReadResponse */ func (c *DefaultApiService) ListSyncMapPermission(serviceSid string, mapSid string, params *ListSyncMapPermissionParams) (*SyncV1ServiceSyncMapSyncMapPermissionReadResponse, error) { - path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SyncV1ServiceSyncMapSyncMapPermissionReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SyncV1ServiceSyncMapSyncMapPermissionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListSyncStreamParams Optional parameters for the method 'ListSyncStream' type ListSyncStreamParams struct { - HideExpired *string `json:"HideExpired,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + HideExpired *string `json:"HideExpired,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1499,39 +1497,39 @@ Retrieve a list of all Streams in a Service Instance. @return SyncV1ServiceSyncStreamReadResponse */ func (c *DefaultApiService) ListSyncStream(serviceSid string, params *ListSyncStreamParams) (*SyncV1ServiceSyncStreamReadResponse, error) { - path := "/v1/Services/{ServiceSid}/Streams" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v1/Services/{ServiceSid}/Streams" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.HideExpired != nil { - data.Set("HideExpired", *params.HideExpired) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.HideExpired != nil { + data.Set("HideExpired", *params.HideExpired) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SyncV1ServiceSyncStreamReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SyncV1ServiceSyncStreamReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateDocumentParams Optional parameters for the method 'UpdateDocument' type UpdateDocumentParams struct { - If-Match *string `json:"If-Match,omitempty"` - Data *map[string]interface{} `json:"Data,omitempty"` - Ttl *int32 `json:"Ttl,omitempty"` + If-Match *string `json:"If-Match,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` } /* @@ -1545,49 +1543,49 @@ UpdateDocument Method for UpdateDocument @return SyncV1ServiceDocument */ func (c *DefaultApiService) UpdateDocument(serviceSid string, sid string, params *UpdateDocumentParams) (*SyncV1ServiceDocument, error) { - path := "/v1/Services/{ServiceSid}/Documents/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Documents/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := make(map[string]interface{}) + data := url.Values{} + headers := make(map[string]interface{}) - if params != nil && params.Data != nil { - v, err := json.Marshal(params.Data) + if params != nil && params.Data != nil { + v, err := json.Marshal(params.Data) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("Data", string(v)) - } - if params != nil && params.Ttl != nil { - data.Set("Ttl", string(*params.Ttl)) - } + data.Set("Data", string(v)) + } + if params != nil && params.Ttl != nil { + data.Set("Ttl", string(*params.Ttl)) + } - if params != nil && params.If-Match != nil { - headers["If-Match"] = *params.If-Match - } + if params != nil && params.If-Match != nil { + headers["If-Match"] = *params.If-Match + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SyncV1ServiceDocument{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SyncV1ServiceDocument{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateDocumentPermissionParams Optional parameters for the method 'UpdateDocumentPermission' type UpdateDocumentPermissionParams struct { - Manage *bool `json:"Manage,omitempty"` - Read *bool `json:"Read,omitempty"` - Write *bool `json:"Write,omitempty"` + Manage *bool `json:"Manage,omitempty"` + Read *bool `json:"Read,omitempty"` + Write *bool `json:"Write,omitempty"` } /* @@ -1603,48 +1601,48 @@ Update an identity's access to a specific Sync Document. @return SyncV1ServiceDocumentDocumentPermission */ func (c *DefaultApiService) UpdateDocumentPermission(serviceSid string, documentSid string, identity string, params *UpdateDocumentPermissionParams) (*SyncV1ServiceDocumentDocumentPermission, error) { - path := "/v1/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"DocumentSid"+"}", documentSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path := "/v1/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"DocumentSid"+"}", documentSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Manage != nil { - data.Set("Manage", string(*params.Manage)) - } - if params != nil && params.Read != nil { - data.Set("Read", string(*params.Read)) - } - if params != nil && params.Write != nil { - data.Set("Write", string(*params.Write)) - } + if params != nil && params.Manage != nil { + data.Set("Manage", string(*params.Manage)) + } + if params != nil && params.Read != nil { + data.Set("Read", string(*params.Read)) + } + if params != nil && params.Write != nil { + data.Set("Write", string(*params.Write)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SyncV1ServiceDocumentDocumentPermission{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SyncV1ServiceDocumentDocumentPermission{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateServiceParams Optional parameters for the method 'UpdateService' type UpdateServiceParams struct { - AclEnabled *bool `json:"AclEnabled,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - ReachabilityDebouncingEnabled *bool `json:"ReachabilityDebouncingEnabled,omitempty"` - ReachabilityDebouncingWindow *int32 `json:"ReachabilityDebouncingWindow,omitempty"` - ReachabilityWebhooksEnabled *bool `json:"ReachabilityWebhooksEnabled,omitempty"` - WebhookUrl *string `json:"WebhookUrl,omitempty"` - WebhooksFromRestEnabled *bool `json:"WebhooksFromRestEnabled,omitempty"` + AclEnabled *bool `json:"AclEnabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + ReachabilityDebouncingEnabled *bool `json:"ReachabilityDebouncingEnabled,omitempty"` + ReachabilityDebouncingWindow *int32 `json:"ReachabilityDebouncingWindow,omitempty"` + ReachabilityWebhooksEnabled *bool `json:"ReachabilityWebhooksEnabled,omitempty"` + WebhookUrl *string `json:"WebhookUrl,omitempty"` + WebhooksFromRestEnabled *bool `json:"WebhooksFromRestEnabled,omitempty"` } /* @@ -1661,53 +1659,53 @@ UpdateService Method for UpdateService @return SyncV1Service */ func (c *DefaultApiService) UpdateService(sid string, params *UpdateServiceParams) (*SyncV1Service, error) { - path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.AclEnabled != nil { - data.Set("AclEnabled", string(*params.AclEnabled)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.ReachabilityDebouncingEnabled != nil { - data.Set("ReachabilityDebouncingEnabled", string(*params.ReachabilityDebouncingEnabled)) - } - if params != nil && params.ReachabilityDebouncingWindow != nil { - data.Set("ReachabilityDebouncingWindow", string(*params.ReachabilityDebouncingWindow)) - } - if params != nil && params.ReachabilityWebhooksEnabled != nil { - data.Set("ReachabilityWebhooksEnabled", string(*params.ReachabilityWebhooksEnabled)) - } - if params != nil && params.WebhookUrl != nil { - data.Set("WebhookUrl", *params.WebhookUrl) - } - if params != nil && params.WebhooksFromRestEnabled != nil { - data.Set("WebhooksFromRestEnabled", string(*params.WebhooksFromRestEnabled)) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &SyncV1Service{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AclEnabled != nil { + data.Set("AclEnabled", string(*params.AclEnabled)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.ReachabilityDebouncingEnabled != nil { + data.Set("ReachabilityDebouncingEnabled", string(*params.ReachabilityDebouncingEnabled)) + } + if params != nil && params.ReachabilityDebouncingWindow != nil { + data.Set("ReachabilityDebouncingWindow", string(*params.ReachabilityDebouncingWindow)) + } + if params != nil && params.ReachabilityWebhooksEnabled != nil { + data.Set("ReachabilityWebhooksEnabled", string(*params.ReachabilityWebhooksEnabled)) + } + if params != nil && params.WebhookUrl != nil { + data.Set("WebhookUrl", *params.WebhookUrl) + } + if params != nil && params.WebhooksFromRestEnabled != nil { + data.Set("WebhooksFromRestEnabled", string(*params.WebhooksFromRestEnabled)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateSyncListParams Optional parameters for the method 'UpdateSyncList' type UpdateSyncListParams struct { - CollectionTtl *int32 `json:"CollectionTtl,omitempty"` - Ttl *int32 `json:"Ttl,omitempty"` + CollectionTtl *int32 `json:"CollectionTtl,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` } /* @@ -1720,42 +1718,42 @@ UpdateSyncList Method for UpdateSyncList @return SyncV1ServiceSyncList */ func (c *DefaultApiService) UpdateSyncList(serviceSid string, sid string, params *UpdateSyncListParams) (*SyncV1ServiceSyncList, error) { - path := "/v1/Services/{ServiceSid}/Lists/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Lists/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.CollectionTtl != nil { - data.Set("CollectionTtl", string(*params.CollectionTtl)) - } - if params != nil && params.Ttl != nil { - data.Set("Ttl", string(*params.Ttl)) - } + if params != nil && params.CollectionTtl != nil { + data.Set("CollectionTtl", string(*params.CollectionTtl)) + } + if params != nil && params.Ttl != nil { + data.Set("Ttl", string(*params.Ttl)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SyncV1ServiceSyncList{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SyncV1ServiceSyncList{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateSyncListItemParams Optional parameters for the method 'UpdateSyncListItem' type UpdateSyncListItemParams struct { - If-Match *string `json:"If-Match,omitempty"` - CollectionTtl *int32 `json:"CollectionTtl,omitempty"` - Data *map[string]interface{} `json:"Data,omitempty"` - ItemTtl *int32 `json:"ItemTtl,omitempty"` - Ttl *int32 `json:"Ttl,omitempty"` + If-Match *string `json:"If-Match,omitempty"` + CollectionTtl *int32 `json:"CollectionTtl,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` + ItemTtl *int32 `json:"ItemTtl,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` } /* @@ -1772,56 +1770,56 @@ UpdateSyncListItem Method for UpdateSyncListItem @return SyncV1ServiceSyncListSyncListItem */ func (c *DefaultApiService) UpdateSyncListItem(serviceSid string, listSid string, index int32, params *UpdateSyncListItemParams) (*SyncV1ServiceSyncListSyncListItem, error) { - path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) - path = strings.Replace(path, "{"+"Index"+"}", index, -1) - - data := url.Values{} - headers := make(map[string]interface{}) - - if params != nil && params.CollectionTtl != nil { - data.Set("CollectionTtl", string(*params.CollectionTtl)) - } - if params != nil && params.Data != nil { - v, err := json.Marshal(params.Data) - - if err != nil { - return nil, err - } - - data.Set("Data", string(v)) - } - if params != nil && params.ItemTtl != nil { - data.Set("ItemTtl", string(*params.ItemTtl)) - } - if params != nil && params.Ttl != nil { - data.Set("Ttl", string(*params.Ttl)) - } - - if params != nil && params.If-Match != nil { - headers["If-Match"] = *params.If-Match - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &SyncV1ServiceSyncListSyncListItem{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + path = strings.Replace(path, "{"+"Index"+"}", index, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.CollectionTtl != nil { + data.Set("CollectionTtl", string(*params.CollectionTtl)) + } + if params != nil && params.Data != nil { + v, err := json.Marshal(params.Data) + + if err != nil { + return nil, err + } + + data.Set("Data", string(v)) + } + if params != nil && params.ItemTtl != nil { + data.Set("ItemTtl", string(*params.ItemTtl)) + } + if params != nil && params.Ttl != nil { + data.Set("Ttl", string(*params.Ttl)) + } + + if params != nil && params.If-Match != nil { + headers["If-Match"] = *params.If-Match + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceSyncListSyncListItem{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateSyncListPermissionParams Optional parameters for the method 'UpdateSyncListPermission' type UpdateSyncListPermissionParams struct { - Manage *bool `json:"Manage,omitempty"` - Read *bool `json:"Read,omitempty"` - Write *bool `json:"Write,omitempty"` + Manage *bool `json:"Manage,omitempty"` + Read *bool `json:"Read,omitempty"` + Write *bool `json:"Write,omitempty"` } /* @@ -1837,43 +1835,43 @@ Update an identity's access to a specific Sync List. @return SyncV1ServiceSyncListSyncListPermission */ func (c *DefaultApiService) UpdateSyncListPermission(serviceSid string, listSid string, identity string, params *UpdateSyncListPermissionParams) (*SyncV1ServiceSyncListSyncListPermission, error) { - path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Manage != nil { - data.Set("Manage", string(*params.Manage)) - } - if params != nil && params.Read != nil { - data.Set("Read", string(*params.Read)) - } - if params != nil && params.Write != nil { - data.Set("Write", string(*params.Write)) - } + if params != nil && params.Manage != nil { + data.Set("Manage", string(*params.Manage)) + } + if params != nil && params.Read != nil { + data.Set("Read", string(*params.Read)) + } + if params != nil && params.Write != nil { + data.Set("Write", string(*params.Write)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SyncV1ServiceSyncListSyncListPermission{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SyncV1ServiceSyncListSyncListPermission{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateSyncMapParams Optional parameters for the method 'UpdateSyncMap' type UpdateSyncMapParams struct { - CollectionTtl *int32 `json:"CollectionTtl,omitempty"` - Ttl *int32 `json:"Ttl,omitempty"` + CollectionTtl *int32 `json:"CollectionTtl,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` } /* @@ -1886,42 +1884,42 @@ UpdateSyncMap Method for UpdateSyncMap @return SyncV1ServiceSyncMap */ func (c *DefaultApiService) UpdateSyncMap(serviceSid string, sid string, params *UpdateSyncMapParams) (*SyncV1ServiceSyncMap, error) { - path := "/v1/Services/{ServiceSid}/Maps/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Maps/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.CollectionTtl != nil { - data.Set("CollectionTtl", string(*params.CollectionTtl)) - } - if params != nil && params.Ttl != nil { - data.Set("Ttl", string(*params.Ttl)) - } + if params != nil && params.CollectionTtl != nil { + data.Set("CollectionTtl", string(*params.CollectionTtl)) + } + if params != nil && params.Ttl != nil { + data.Set("Ttl", string(*params.Ttl)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SyncV1ServiceSyncMap{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SyncV1ServiceSyncMap{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateSyncMapItemParams Optional parameters for the method 'UpdateSyncMapItem' type UpdateSyncMapItemParams struct { - If-Match *string `json:"If-Match,omitempty"` - CollectionTtl *int32 `json:"CollectionTtl,omitempty"` - Data *map[string]interface{} `json:"Data,omitempty"` - ItemTtl *int32 `json:"ItemTtl,omitempty"` - Ttl *int32 `json:"Ttl,omitempty"` + If-Match *string `json:"If-Match,omitempty"` + CollectionTtl *int32 `json:"CollectionTtl,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` + ItemTtl *int32 `json:"ItemTtl,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` } /* @@ -1938,56 +1936,56 @@ UpdateSyncMapItem Method for UpdateSyncMapItem @return SyncV1ServiceSyncMapSyncMapItem */ func (c *DefaultApiService) UpdateSyncMapItem(serviceSid string, mapSid string, key string, params *UpdateSyncMapItemParams) (*SyncV1ServiceSyncMapSyncMapItem, error) { - path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) - path = strings.Replace(path, "{"+"Key"+"}", key, -1) - - data := url.Values{} - headers := make(map[string]interface{}) - - if params != nil && params.CollectionTtl != nil { - data.Set("CollectionTtl", string(*params.CollectionTtl)) - } - if params != nil && params.Data != nil { - v, err := json.Marshal(params.Data) - - if err != nil { - return nil, err - } - - data.Set("Data", string(v)) - } - if params != nil && params.ItemTtl != nil { - data.Set("ItemTtl", string(*params.ItemTtl)) - } - if params != nil && params.Ttl != nil { - data.Set("Ttl", string(*params.Ttl)) - } - - if params != nil && params.If-Match != nil { - headers["If-Match"] = *params.If-Match - } - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &SyncV1ServiceSyncMapSyncMapItem{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + path = strings.Replace(path, "{"+"Key"+"}", key, -1) + + data := url.Values{} + headers := make(map[string]interface{}) + + if params != nil && params.CollectionTtl != nil { + data.Set("CollectionTtl", string(*params.CollectionTtl)) + } + if params != nil && params.Data != nil { + v, err := json.Marshal(params.Data) + + if err != nil { + return nil, err + } + + data.Set("Data", string(v)) + } + if params != nil && params.ItemTtl != nil { + data.Set("ItemTtl", string(*params.ItemTtl)) + } + if params != nil && params.Ttl != nil { + data.Set("Ttl", string(*params.Ttl)) + } + + if params != nil && params.If-Match != nil { + headers["If-Match"] = *params.If-Match + } + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &SyncV1ServiceSyncMapSyncMapItem{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateSyncMapPermissionParams Optional parameters for the method 'UpdateSyncMapPermission' type UpdateSyncMapPermissionParams struct { - Manage *bool `json:"Manage,omitempty"` - Read *bool `json:"Read,omitempty"` - Write *bool `json:"Write,omitempty"` + Manage *bool `json:"Manage,omitempty"` + Read *bool `json:"Read,omitempty"` + Write *bool `json:"Write,omitempty"` } /* @@ -2003,42 +2001,42 @@ Update an identity's access to a specific Sync Map. @return SyncV1ServiceSyncMapSyncMapPermission */ func (c *DefaultApiService) UpdateSyncMapPermission(serviceSid string, mapSid string, identity string, params *UpdateSyncMapPermissionParams) (*SyncV1ServiceSyncMapSyncMapPermission, error) { - path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Manage != nil { - data.Set("Manage", string(*params.Manage)) - } - if params != nil && params.Read != nil { - data.Set("Read", string(*params.Read)) - } - if params != nil && params.Write != nil { - data.Set("Write", string(*params.Write)) - } + if params != nil && params.Manage != nil { + data.Set("Manage", string(*params.Manage)) + } + if params != nil && params.Read != nil { + data.Set("Read", string(*params.Read)) + } + if params != nil && params.Write != nil { + data.Set("Write", string(*params.Write)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SyncV1ServiceSyncMapSyncMapPermission{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SyncV1ServiceSyncMapSyncMapPermission{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateSyncStreamParams Optional parameters for the method 'UpdateSyncStream' type UpdateSyncStreamParams struct { - Ttl *int32 `json:"Ttl,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` } /* @@ -2051,29 +2049,29 @@ Update a specific Stream. @return SyncV1ServiceSyncStream */ func (c *DefaultApiService) UpdateSyncStream(serviceSid string, sid string, params *UpdateSyncStreamParams) (*SyncV1ServiceSyncStream, error) { - path := "/v1/Services/{ServiceSid}/Streams/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Services/{ServiceSid}/Streams/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Ttl != nil { - data.Set("Ttl", string(*params.Ttl)) - } + if params != nil && params.Ttl != nil { + data.Set("Ttl", string(*params.Ttl)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &SyncV1ServiceSyncStream{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &SyncV1ServiceSyncStream{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } diff --git a/rest/sync/v1/response.go b/rest/sync/v1/response.go index 4d2996c71..6a3bef27e 100644 --- a/rest/sync/v1/response.go +++ b/rest/sync/v1/response.go @@ -32,16 +32,14 @@ type APIResponse struct { Payload []byte `json:"-"` } -// Response returns a new APIResponse object. -func Response(r *http.Response) *APIResponse { - +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { response := &APIResponse{Response: r} return response } -// ResponseWithError returns a new APIResponse object with the provided error message. -func ResponseWithError(errorMessage string) *APIResponse { - +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { response := &APIResponse{Message: errorMessage} return response } diff --git a/rest/taskrouter/v1/api_default.go b/rest/taskrouter/v1/api_default.go index b26bddb46..fef43899c 100644 --- a/rest/taskrouter/v1/api_default.go +++ b/rest/taskrouter/v1/api_default.go @@ -13,28 +13,25 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "" - "reflect" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type DefaultApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewDefaultApiService(client *twilio.Client) *DefaultApiService { - return &DefaultApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &DefaultApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } // CreateActivityParams Optional parameters for the method 'CreateActivity' type CreateActivityParams struct { - Available *bool `json:"Available,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` + Available *bool `json:"Available,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -46,41 +43,41 @@ CreateActivity Method for CreateActivity @return TaskrouterV1WorkspaceActivity */ func (c *DefaultApiService) CreateActivity(workspaceSid string, params *CreateActivityParams) (*TaskrouterV1WorkspaceActivity, error) { - path := "/v1/Workspaces/{WorkspaceSid}/Activities" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/Activities" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Available != nil { - data.Set("Available", string(*params.Available)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + if params != nil && params.Available != nil { + data.Set("Available", string(*params.Available)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceActivity{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TaskrouterV1WorkspaceActivity{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateTaskParams Optional parameters for the method 'CreateTask' type CreateTaskParams struct { - Attributes *string `json:"Attributes,omitempty"` - Priority *int32 `json:"Priority,omitempty"` - TaskChannel *string `json:"TaskChannel,omitempty"` - Timeout *int32 `json:"Timeout,omitempty"` - WorkflowSid *string `json:"WorkflowSid,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + Priority *int32 `json:"Priority,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` + Timeout *int32 `json:"Timeout,omitempty"` + WorkflowSid *string `json:"WorkflowSid,omitempty"` } /* @@ -95,48 +92,48 @@ CreateTask Method for CreateTask @return TaskrouterV1WorkspaceTask */ func (c *DefaultApiService) CreateTask(workspaceSid string, params *CreateTaskParams) (*TaskrouterV1WorkspaceTask, error) { - path := "/v1/Workspaces/{WorkspaceSid}/Tasks" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.Priority != nil { - data.Set("Priority", string(*params.Priority)) - } - if params != nil && params.TaskChannel != nil { - data.Set("TaskChannel", *params.TaskChannel) - } - if params != nil && params.Timeout != nil { - data.Set("Timeout", string(*params.Timeout)) - } - if params != nil && params.WorkflowSid != nil { - data.Set("WorkflowSid", *params.WorkflowSid) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &TaskrouterV1WorkspaceTask{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Workspaces/{WorkspaceSid}/Tasks" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.Priority != nil { + data.Set("Priority", string(*params.Priority)) + } + if params != nil && params.TaskChannel != nil { + data.Set("TaskChannel", *params.TaskChannel) + } + if params != nil && params.Timeout != nil { + data.Set("Timeout", string(*params.Timeout)) + } + if params != nil && params.WorkflowSid != nil { + data.Set("WorkflowSid", *params.WorkflowSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceTask{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateTaskChannelParams Optional parameters for the method 'CreateTaskChannel' type CreateTaskChannelParams struct { - ChannelOptimizedRouting *bool `json:"ChannelOptimizedRouting,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + ChannelOptimizedRouting *bool `json:"ChannelOptimizedRouting,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -149,45 +146,45 @@ CreateTaskChannel Method for CreateTaskChannel @return TaskrouterV1WorkspaceTaskChannel */ func (c *DefaultApiService) CreateTaskChannel(workspaceSid string, params *CreateTaskChannelParams) (*TaskrouterV1WorkspaceTaskChannel, error) { - path := "/v1/Workspaces/{WorkspaceSid}/TaskChannels" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/TaskChannels" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.ChannelOptimizedRouting != nil { - data.Set("ChannelOptimizedRouting", string(*params.ChannelOptimizedRouting)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } + if params != nil && params.ChannelOptimizedRouting != nil { + data.Set("ChannelOptimizedRouting", string(*params.ChannelOptimizedRouting)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceTaskChannel{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TaskrouterV1WorkspaceTaskChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateTaskQueueParams Optional parameters for the method 'CreateTaskQueue' type CreateTaskQueueParams struct { - AssignmentActivitySid *string `json:"AssignmentActivitySid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - MaxReservedWorkers *int32 `json:"MaxReservedWorkers,omitempty"` - ReservationActivitySid *string `json:"ReservationActivitySid,omitempty"` - TargetWorkers *string `json:"TargetWorkers,omitempty"` - TaskOrder *string `json:"TaskOrder,omitempty"` + AssignmentActivitySid *string `json:"AssignmentActivitySid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + MaxReservedWorkers *int32 `json:"MaxReservedWorkers,omitempty"` + ReservationActivitySid *string `json:"ReservationActivitySid,omitempty"` + TargetWorkers *string `json:"TargetWorkers,omitempty"` + TaskOrder *string `json:"TaskOrder,omitempty"` } /* @@ -203,51 +200,51 @@ CreateTaskQueue Method for CreateTaskQueue @return TaskrouterV1WorkspaceTaskQueue */ func (c *DefaultApiService) CreateTaskQueue(workspaceSid string, params *CreateTaskQueueParams) (*TaskrouterV1WorkspaceTaskQueue, error) { - path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.AssignmentActivitySid != nil { - data.Set("AssignmentActivitySid", *params.AssignmentActivitySid) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.MaxReservedWorkers != nil { - data.Set("MaxReservedWorkers", string(*params.MaxReservedWorkers)) - } - if params != nil && params.ReservationActivitySid != nil { - data.Set("ReservationActivitySid", *params.ReservationActivitySid) - } - if params != nil && params.TargetWorkers != nil { - data.Set("TargetWorkers", *params.TargetWorkers) - } - if params != nil && params.TaskOrder != nil { - data.Set("TaskOrder", *params.TaskOrder) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &TaskrouterV1WorkspaceTaskQueue{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AssignmentActivitySid != nil { + data.Set("AssignmentActivitySid", *params.AssignmentActivitySid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.MaxReservedWorkers != nil { + data.Set("MaxReservedWorkers", string(*params.MaxReservedWorkers)) + } + if params != nil && params.ReservationActivitySid != nil { + data.Set("ReservationActivitySid", *params.ReservationActivitySid) + } + if params != nil && params.TargetWorkers != nil { + data.Set("TargetWorkers", *params.TargetWorkers) + } + if params != nil && params.TaskOrder != nil { + data.Set("TaskOrder", *params.TaskOrder) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceTaskQueue{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateWorkerParams Optional parameters for the method 'CreateWorker' type CreateWorkerParams struct { - ActivitySid *string `json:"ActivitySid,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` + ActivitySid *string `json:"ActivitySid,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -260,44 +257,44 @@ CreateWorker Method for CreateWorker @return TaskrouterV1WorkspaceWorker */ func (c *DefaultApiService) CreateWorker(workspaceSid string, params *CreateWorkerParams) (*TaskrouterV1WorkspaceWorker, error) { - path := "/v1/Workspaces/{WorkspaceSid}/Workers" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/Workers" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.ActivitySid != nil { - data.Set("ActivitySid", *params.ActivitySid) - } - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + if params != nil && params.ActivitySid != nil { + data.Set("ActivitySid", *params.ActivitySid) + } + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceWorker{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TaskrouterV1WorkspaceWorker{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateWorkflowParams Optional parameters for the method 'CreateWorkflow' type CreateWorkflowParams struct { - AssignmentCallbackUrl *string `json:"AssignmentCallbackUrl,omitempty"` - Configuration *string `json:"Configuration,omitempty"` - FallbackAssignmentCallbackUrl *string `json:"FallbackAssignmentCallbackUrl,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - TaskReservationTimeout *int32 `json:"TaskReservationTimeout,omitempty"` + AssignmentCallbackUrl *string `json:"AssignmentCallbackUrl,omitempty"` + Configuration *string `json:"Configuration,omitempty"` + FallbackAssignmentCallbackUrl *string `json:"FallbackAssignmentCallbackUrl,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + TaskReservationTimeout *int32 `json:"TaskReservationTimeout,omitempty"` } /* @@ -312,51 +309,51 @@ CreateWorkflow Method for CreateWorkflow @return TaskrouterV1WorkspaceWorkflow */ func (c *DefaultApiService) CreateWorkflow(workspaceSid string, params *CreateWorkflowParams) (*TaskrouterV1WorkspaceWorkflow, error) { - path := "/v1/Workspaces/{WorkspaceSid}/Workflows" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.AssignmentCallbackUrl != nil { - data.Set("AssignmentCallbackUrl", *params.AssignmentCallbackUrl) - } - if params != nil && params.Configuration != nil { - data.Set("Configuration", *params.Configuration) - } - if params != nil && params.FallbackAssignmentCallbackUrl != nil { - data.Set("FallbackAssignmentCallbackUrl", *params.FallbackAssignmentCallbackUrl) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.TaskReservationTimeout != nil { - data.Set("TaskReservationTimeout", string(*params.TaskReservationTimeout)) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &TaskrouterV1WorkspaceWorkflow{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Workspaces/{WorkspaceSid}/Workflows" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AssignmentCallbackUrl != nil { + data.Set("AssignmentCallbackUrl", *params.AssignmentCallbackUrl) + } + if params != nil && params.Configuration != nil { + data.Set("Configuration", *params.Configuration) + } + if params != nil && params.FallbackAssignmentCallbackUrl != nil { + data.Set("FallbackAssignmentCallbackUrl", *params.FallbackAssignmentCallbackUrl) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.TaskReservationTimeout != nil { + data.Set("TaskReservationTimeout", string(*params.TaskReservationTimeout)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceWorkflow{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateWorkspaceParams Optional parameters for the method 'CreateWorkspace' type CreateWorkspaceParams struct { - EventCallbackUrl *string `json:"EventCallbackUrl,omitempty"` - EventsFilter *string `json:"EventsFilter,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - MultiTaskEnabled *bool `json:"MultiTaskEnabled,omitempty"` - PrioritizeQueueOrder *string `json:"PrioritizeQueueOrder,omitempty"` - Template *string `json:"Template,omitempty"` + EventCallbackUrl *string `json:"EventCallbackUrl,omitempty"` + EventsFilter *string `json:"EventsFilter,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + MultiTaskEnabled *bool `json:"MultiTaskEnabled,omitempty"` + PrioritizeQueueOrder *string `json:"PrioritizeQueueOrder,omitempty"` + Template *string `json:"Template,omitempty"` } /* @@ -371,44 +368,44 @@ CreateWorkspace Method for CreateWorkspace @return TaskrouterV1Workspace */ func (c *DefaultApiService) CreateWorkspace(params *CreateWorkspaceParams) (*TaskrouterV1Workspace, error) { - path := "/v1/Workspaces" - - data := url.Values{} - headers := 0 - - if params != nil && params.EventCallbackUrl != nil { - data.Set("EventCallbackUrl", *params.EventCallbackUrl) - } - if params != nil && params.EventsFilter != nil { - data.Set("EventsFilter", *params.EventsFilter) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.MultiTaskEnabled != nil { - data.Set("MultiTaskEnabled", string(*params.MultiTaskEnabled)) - } - if params != nil && params.PrioritizeQueueOrder != nil { - data.Set("PrioritizeQueueOrder", *params.PrioritizeQueueOrder) - } - if params != nil && params.Template != nil { - data.Set("Template", *params.Template) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &TaskrouterV1Workspace{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Workspaces" + + data := url.Values{} + headers := 0 + + if params != nil && params.EventCallbackUrl != nil { + data.Set("EventCallbackUrl", *params.EventCallbackUrl) + } + if params != nil && params.EventsFilter != nil { + data.Set("EventsFilter", *params.EventsFilter) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.MultiTaskEnabled != nil { + data.Set("MultiTaskEnabled", string(*params.MultiTaskEnabled)) + } + if params != nil && params.PrioritizeQueueOrder != nil { + data.Set("PrioritizeQueueOrder", *params.PrioritizeQueueOrder) + } + if params != nil && params.Template != nil { + data.Set("Template", *params.Template) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1Workspace{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } /* @@ -417,23 +414,23 @@ DeleteActivity Method for DeleteActivity * @param sid The SID of the Activity resource to delete. */ func (c *DefaultApiService) DeleteActivity(workspaceSid string, sid string) (error) { - path := "/v1/Workspaces/{WorkspaceSid}/Activities/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/Activities/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -442,23 +439,23 @@ DeleteTask Method for DeleteTask * @param sid The SID of the Task resource to delete. */ func (c *DefaultApiService) DeleteTask(workspaceSid string, sid string) (error) { - path := "/v1/Workspaces/{WorkspaceSid}/Tasks/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/Tasks/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -467,23 +464,23 @@ DeleteTaskChannel Method for DeleteTaskChannel * @param sid The SID of the Task Channel resource to delete. */ func (c *DefaultApiService) DeleteTaskChannel(workspaceSid string, sid string) (error) { - path := "/v1/Workspaces/{WorkspaceSid}/TaskChannels/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/TaskChannels/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -492,23 +489,23 @@ DeleteTaskQueue Method for DeleteTaskQueue * @param sid The SID of the TaskQueue resource to delete. */ func (c *DefaultApiService) DeleteTaskQueue(workspaceSid string, sid string) (error) { - path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -517,23 +514,23 @@ DeleteWorker Method for DeleteWorker * @param sid The SID of the Worker resource to delete. */ func (c *DefaultApiService) DeleteWorker(workspaceSid string, sid string) (error) { - path := "/v1/Workspaces/{WorkspaceSid}/Workers/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/Workers/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -542,23 +539,23 @@ DeleteWorkflow Method for DeleteWorkflow * @param sid The SID of the Workflow resource to delete. */ func (c *DefaultApiService) DeleteWorkflow(workspaceSid string, sid string) (error) { - path := "/v1/Workspaces/{WorkspaceSid}/Workflows/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/Workflows/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -566,22 +563,22 @@ DeleteWorkspace Method for DeleteWorkspace * @param sid The SID of the Workspace resource to delete. */ func (c *DefaultApiService) DeleteWorkspace(sid string) (error) { - path := "/v1/Workspaces/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Workspaces/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -591,28 +588,28 @@ FetchActivity Method for FetchActivity @return TaskrouterV1WorkspaceActivity */ func (c *DefaultApiService) FetchActivity(workspaceSid string, sid string) (*TaskrouterV1WorkspaceActivity, error) { - path := "/v1/Workspaces/{WorkspaceSid}/Activities/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/Activities/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceActivity{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TaskrouterV1WorkspaceActivity{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -622,28 +619,28 @@ FetchEvent Method for FetchEvent @return TaskrouterV1WorkspaceEvent */ func (c *DefaultApiService) FetchEvent(workspaceSid string, sid string) (*TaskrouterV1WorkspaceEvent, error) { - path := "/v1/Workspaces/{WorkspaceSid}/Events/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/Events/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceEvent{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TaskrouterV1WorkspaceEvent{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -653,28 +650,28 @@ FetchTask Method for FetchTask @return TaskrouterV1WorkspaceTask */ func (c *DefaultApiService) FetchTask(workspaceSid string, sid string) (*TaskrouterV1WorkspaceTask, error) { - path := "/v1/Workspaces/{WorkspaceSid}/Tasks/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/Tasks/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceTask{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TaskrouterV1WorkspaceTask{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -684,28 +681,28 @@ FetchTaskChannel Method for FetchTaskChannel @return TaskrouterV1WorkspaceTaskChannel */ func (c *DefaultApiService) FetchTaskChannel(workspaceSid string, sid string) (*TaskrouterV1WorkspaceTaskChannel, error) { - path := "/v1/Workspaces/{WorkspaceSid}/TaskChannels/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/TaskChannels/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceTaskChannel{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TaskrouterV1WorkspaceTaskChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -715,36 +712,36 @@ FetchTaskQueue Method for FetchTaskQueue @return TaskrouterV1WorkspaceTaskQueue */ func (c *DefaultApiService) FetchTaskQueue(workspaceSid string, sid string) (*TaskrouterV1WorkspaceTaskQueue, error) { - path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceTaskQueue{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TaskrouterV1WorkspaceTaskQueue{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // FetchTaskQueueCumulativeStatisticsParams Optional parameters for the method 'FetchTaskQueueCumulativeStatistics' type FetchTaskQueueCumulativeStatisticsParams struct { - EndDate *time.Time `json:"EndDate,omitempty"` - Minutes *int32 `json:"Minutes,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - TaskChannel *string `json:"TaskChannel,omitempty"` - SplitByWaitTime *string `json:"SplitByWaitTime,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + Minutes *int32 `json:"Minutes,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` + SplitByWaitTime *string `json:"SplitByWaitTime,omitempty"` } /* @@ -760,47 +757,47 @@ FetchTaskQueueCumulativeStatistics Method for FetchTaskQueueCumulativeStatistics @return TaskrouterV1WorkspaceTaskQueueTaskQueueCumulativeStatistics */ func (c *DefaultApiService) FetchTaskQueueCumulativeStatistics(workspaceSid string, taskQueueSid string, params *FetchTaskQueueCumulativeStatisticsParams) (*TaskrouterV1WorkspaceTaskQueueTaskQueueCumulativeStatistics, error) { - path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/CumulativeStatistics" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"TaskQueueSid"+"}", taskQueueSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) - } - if params != nil && params.Minutes != nil { - data.Set("Minutes", string(*params.Minutes)) - } - if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) - } - if params != nil && params.TaskChannel != nil { - data.Set("TaskChannel", *params.TaskChannel) - } - if params != nil && params.SplitByWaitTime != nil { - data.Set("SplitByWaitTime", *params.SplitByWaitTime) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &TaskrouterV1WorkspaceTaskQueueTaskQueueCumulativeStatistics{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/CumulativeStatistics" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"TaskQueueSid"+"}", taskQueueSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.Minutes != nil { + data.Set("Minutes", string(*params.Minutes)) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.TaskChannel != nil { + data.Set("TaskChannel", *params.TaskChannel) + } + if params != nil && params.SplitByWaitTime != nil { + data.Set("SplitByWaitTime", *params.SplitByWaitTime) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceTaskQueueTaskQueueCumulativeStatistics{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // FetchTaskQueueRealTimeStatisticsParams Optional parameters for the method 'FetchTaskQueueRealTimeStatistics' type FetchTaskQueueRealTimeStatisticsParams struct { - TaskChannel *string `json:"TaskChannel,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` } /* @@ -812,39 +809,39 @@ FetchTaskQueueRealTimeStatistics Method for FetchTaskQueueRealTimeStatistics @return TaskrouterV1WorkspaceTaskQueueTaskQueueRealTimeStatistics */ func (c *DefaultApiService) FetchTaskQueueRealTimeStatistics(workspaceSid string, taskQueueSid string, params *FetchTaskQueueRealTimeStatisticsParams) (*TaskrouterV1WorkspaceTaskQueueTaskQueueRealTimeStatistics, error) { - path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/RealTimeStatistics" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"TaskQueueSid"+"}", taskQueueSid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/RealTimeStatistics" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"TaskQueueSid"+"}", taskQueueSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.TaskChannel != nil { - data.Set("TaskChannel", *params.TaskChannel) - } + if params != nil && params.TaskChannel != nil { + data.Set("TaskChannel", *params.TaskChannel) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceTaskQueueTaskQueueRealTimeStatistics{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TaskrouterV1WorkspaceTaskQueueTaskQueueRealTimeStatistics{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // FetchTaskQueueStatisticsParams Optional parameters for the method 'FetchTaskQueueStatistics' type FetchTaskQueueStatisticsParams struct { - EndDate *time.Time `json:"EndDate,omitempty"` - Minutes *int32 `json:"Minutes,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - TaskChannel *string `json:"TaskChannel,omitempty"` - SplitByWaitTime *string `json:"SplitByWaitTime,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + Minutes *int32 `json:"Minutes,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` + SplitByWaitTime *string `json:"SplitByWaitTime,omitempty"` } /* @@ -860,43 +857,43 @@ FetchTaskQueueStatistics Method for FetchTaskQueueStatistics @return TaskrouterV1WorkspaceTaskQueueTaskQueueStatistics */ func (c *DefaultApiService) FetchTaskQueueStatistics(workspaceSid string, taskQueueSid string, params *FetchTaskQueueStatisticsParams) (*TaskrouterV1WorkspaceTaskQueueTaskQueueStatistics, error) { - path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/Statistics" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"TaskQueueSid"+"}", taskQueueSid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/Statistics" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"TaskQueueSid"+"}", taskQueueSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) - } - if params != nil && params.Minutes != nil { - data.Set("Minutes", string(*params.Minutes)) - } - if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) - } - if params != nil && params.TaskChannel != nil { - data.Set("TaskChannel", *params.TaskChannel) - } - if params != nil && params.SplitByWaitTime != nil { - data.Set("SplitByWaitTime", *params.SplitByWaitTime) - } + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.Minutes != nil { + data.Set("Minutes", string(*params.Minutes)) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.TaskChannel != nil { + data.Set("TaskChannel", *params.TaskChannel) + } + if params != nil && params.SplitByWaitTime != nil { + data.Set("SplitByWaitTime", *params.SplitByWaitTime) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceTaskQueueTaskQueueStatistics{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TaskrouterV1WorkspaceTaskQueueTaskQueueStatistics{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -907,29 +904,29 @@ FetchTaskReservation Method for FetchTaskReservation @return TaskrouterV1WorkspaceTaskTaskReservation */ func (c *DefaultApiService) FetchTaskReservation(workspaceSid string, taskSid string, sid string) (*TaskrouterV1WorkspaceTaskTaskReservation, error) { - path := "/v1/Workspaces/{WorkspaceSid}/Tasks/{TaskSid}/Reservations/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/Tasks/{TaskSid}/Reservations/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceTaskTaskReservation{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TaskrouterV1WorkspaceTaskTaskReservation{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -939,28 +936,28 @@ FetchWorker Method for FetchWorker @return TaskrouterV1WorkspaceWorker */ func (c *DefaultApiService) FetchWorker(workspaceSid string, sid string) (*TaskrouterV1WorkspaceWorker, error) { - path := "/v1/Workspaces/{WorkspaceSid}/Workers/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/Workers/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceWorker{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TaskrouterV1WorkspaceWorker{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -971,36 +968,36 @@ FetchWorkerChannel Method for FetchWorkerChannel @return TaskrouterV1WorkspaceWorkerWorkerChannel */ func (c *DefaultApiService) FetchWorkerChannel(workspaceSid string, workerSid string, sid string) (*TaskrouterV1WorkspaceWorkerWorkerChannel, error) { - path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Channels/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"WorkerSid"+"}", workerSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Channels/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkerSid"+"}", workerSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceWorkerWorkerChannel{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TaskrouterV1WorkspaceWorkerWorkerChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // FetchWorkerInstanceStatisticsParams Optional parameters for the method 'FetchWorkerInstanceStatistics' type FetchWorkerInstanceStatisticsParams struct { - Minutes *int32 `json:"Minutes,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - EndDate *time.Time `json:"EndDate,omitempty"` - TaskChannel *string `json:"TaskChannel,omitempty"` + Minutes *int32 `json:"Minutes,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` } /* @@ -1015,40 +1012,40 @@ FetchWorkerInstanceStatistics Method for FetchWorkerInstanceStatistics @return TaskrouterV1WorkspaceWorkerWorkerInstanceStatistics */ func (c *DefaultApiService) FetchWorkerInstanceStatistics(workspaceSid string, workerSid string, params *FetchWorkerInstanceStatisticsParams) (*TaskrouterV1WorkspaceWorkerWorkerInstanceStatistics, error) { - path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Statistics" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"WorkerSid"+"}", workerSid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Statistics" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkerSid"+"}", workerSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Minutes != nil { - data.Set("Minutes", string(*params.Minutes)) - } - if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) - } - if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) - } - if params != nil && params.TaskChannel != nil { - data.Set("TaskChannel", *params.TaskChannel) - } + if params != nil && params.Minutes != nil { + data.Set("Minutes", string(*params.Minutes)) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.TaskChannel != nil { + data.Set("TaskChannel", *params.TaskChannel) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceWorkerWorkerInstanceStatistics{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TaskrouterV1WorkspaceWorkerWorkerInstanceStatistics{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1059,39 +1056,39 @@ FetchWorkerReservation Method for FetchWorkerReservation @return TaskrouterV1WorkspaceWorkerWorkerReservation */ func (c *DefaultApiService) FetchWorkerReservation(workspaceSid string, workerSid string, sid string) (*TaskrouterV1WorkspaceWorkerWorkerReservation, error) { - path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Reservations/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"WorkerSid"+"}", workerSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Reservations/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkerSid"+"}", workerSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceWorkerWorkerReservation{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TaskrouterV1WorkspaceWorkerWorkerReservation{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // FetchWorkerStatisticsParams Optional parameters for the method 'FetchWorkerStatistics' type FetchWorkerStatisticsParams struct { - Minutes *int32 `json:"Minutes,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - EndDate *time.Time `json:"EndDate,omitempty"` - TaskQueueSid *string `json:"TaskQueueSid,omitempty"` - TaskQueueName *string `json:"TaskQueueName,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - TaskChannel *string `json:"TaskChannel,omitempty"` + Minutes *int32 `json:"Minutes,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + TaskQueueSid *string `json:"TaskQueueSid,omitempty"` + TaskQueueName *string `json:"TaskQueueName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` } /* @@ -1108,55 +1105,55 @@ FetchWorkerStatistics Method for FetchWorkerStatistics @return TaskrouterV1WorkspaceWorkerWorkerStatistics */ func (c *DefaultApiService) FetchWorkerStatistics(workspaceSid string, params *FetchWorkerStatisticsParams) (*TaskrouterV1WorkspaceWorkerWorkerStatistics, error) { - path := "/v1/Workspaces/{WorkspaceSid}/Workers/Statistics" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Minutes != nil { - data.Set("Minutes", string(*params.Minutes)) - } - if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) - } - if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) - } - if params != nil && params.TaskQueueSid != nil { - data.Set("TaskQueueSid", *params.TaskQueueSid) - } - if params != nil && params.TaskQueueName != nil { - data.Set("TaskQueueName", *params.TaskQueueName) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.TaskChannel != nil { - data.Set("TaskChannel", *params.TaskChannel) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &TaskrouterV1WorkspaceWorkerWorkerStatistics{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Workspaces/{WorkspaceSid}/Workers/Statistics" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Minutes != nil { + data.Set("Minutes", string(*params.Minutes)) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.TaskQueueSid != nil { + data.Set("TaskQueueSid", *params.TaskQueueSid) + } + if params != nil && params.TaskQueueName != nil { + data.Set("TaskQueueName", *params.TaskQueueName) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.TaskChannel != nil { + data.Set("TaskChannel", *params.TaskChannel) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceWorkerWorkerStatistics{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // FetchWorkersCumulativeStatisticsParams Optional parameters for the method 'FetchWorkersCumulativeStatistics' type FetchWorkersCumulativeStatisticsParams struct { - EndDate *time.Time `json:"EndDate,omitempty"` - Minutes *int32 `json:"Minutes,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - TaskChannel *string `json:"TaskChannel,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + Minutes *int32 `json:"Minutes,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` } /* @@ -1170,43 +1167,43 @@ FetchWorkersCumulativeStatistics Method for FetchWorkersCumulativeStatistics @return TaskrouterV1WorkspaceWorkerWorkersCumulativeStatistics */ func (c *DefaultApiService) FetchWorkersCumulativeStatistics(workspaceSid string, params *FetchWorkersCumulativeStatisticsParams) (*TaskrouterV1WorkspaceWorkerWorkersCumulativeStatistics, error) { - path := "/v1/Workspaces/{WorkspaceSid}/Workers/CumulativeStatistics" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/Workers/CumulativeStatistics" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) - } - if params != nil && params.Minutes != nil { - data.Set("Minutes", string(*params.Minutes)) - } - if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) - } - if params != nil && params.TaskChannel != nil { - data.Set("TaskChannel", *params.TaskChannel) - } + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.Minutes != nil { + data.Set("Minutes", string(*params.Minutes)) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.TaskChannel != nil { + data.Set("TaskChannel", *params.TaskChannel) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceWorkerWorkersCumulativeStatistics{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TaskrouterV1WorkspaceWorkerWorkersCumulativeStatistics{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // FetchWorkersRealTimeStatisticsParams Optional parameters for the method 'FetchWorkersRealTimeStatistics' type FetchWorkersRealTimeStatisticsParams struct { - TaskChannel *string `json:"TaskChannel,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` } /* @@ -1217,30 +1214,30 @@ FetchWorkersRealTimeStatistics Method for FetchWorkersRealTimeStatistics @return TaskrouterV1WorkspaceWorkerWorkersRealTimeStatistics */ func (c *DefaultApiService) FetchWorkersRealTimeStatistics(workspaceSid string, params *FetchWorkersRealTimeStatisticsParams) (*TaskrouterV1WorkspaceWorkerWorkersRealTimeStatistics, error) { - path := "/v1/Workspaces/{WorkspaceSid}/Workers/RealTimeStatistics" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/Workers/RealTimeStatistics" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.TaskChannel != nil { - data.Set("TaskChannel", *params.TaskChannel) - } + if params != nil && params.TaskChannel != nil { + data.Set("TaskChannel", *params.TaskChannel) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceWorkerWorkersRealTimeStatistics{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TaskrouterV1WorkspaceWorkerWorkersRealTimeStatistics{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1250,36 +1247,36 @@ FetchWorkflow Method for FetchWorkflow @return TaskrouterV1WorkspaceWorkflow */ func (c *DefaultApiService) FetchWorkflow(workspaceSid string, sid string) (*TaskrouterV1WorkspaceWorkflow, error) { - path := "/v1/Workspaces/{WorkspaceSid}/Workflows/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/Workflows/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceWorkflow{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TaskrouterV1WorkspaceWorkflow{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // FetchWorkflowCumulativeStatisticsParams Optional parameters for the method 'FetchWorkflowCumulativeStatistics' type FetchWorkflowCumulativeStatisticsParams struct { - EndDate *time.Time `json:"EndDate,omitempty"` - Minutes *int32 `json:"Minutes,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - TaskChannel *string `json:"TaskChannel,omitempty"` - SplitByWaitTime *string `json:"SplitByWaitTime,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + Minutes *int32 `json:"Minutes,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` + SplitByWaitTime *string `json:"SplitByWaitTime,omitempty"` } /* @@ -1295,47 +1292,47 @@ FetchWorkflowCumulativeStatistics Method for FetchWorkflowCumulativeStatistics @return TaskrouterV1WorkspaceWorkflowWorkflowCumulativeStatistics */ func (c *DefaultApiService) FetchWorkflowCumulativeStatistics(workspaceSid string, workflowSid string, params *FetchWorkflowCumulativeStatisticsParams) (*TaskrouterV1WorkspaceWorkflowWorkflowCumulativeStatistics, error) { - path := "/v1/Workspaces/{WorkspaceSid}/Workflows/{WorkflowSid}/CumulativeStatistics" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"WorkflowSid"+"}", workflowSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) - } - if params != nil && params.Minutes != nil { - data.Set("Minutes", string(*params.Minutes)) - } - if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) - } - if params != nil && params.TaskChannel != nil { - data.Set("TaskChannel", *params.TaskChannel) - } - if params != nil && params.SplitByWaitTime != nil { - data.Set("SplitByWaitTime", *params.SplitByWaitTime) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &TaskrouterV1WorkspaceWorkflowWorkflowCumulativeStatistics{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Workspaces/{WorkspaceSid}/Workflows/{WorkflowSid}/CumulativeStatistics" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkflowSid"+"}", workflowSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.Minutes != nil { + data.Set("Minutes", string(*params.Minutes)) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.TaskChannel != nil { + data.Set("TaskChannel", *params.TaskChannel) + } + if params != nil && params.SplitByWaitTime != nil { + data.Set("SplitByWaitTime", *params.SplitByWaitTime) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceWorkflowWorkflowCumulativeStatistics{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // FetchWorkflowRealTimeStatisticsParams Optional parameters for the method 'FetchWorkflowRealTimeStatistics' type FetchWorkflowRealTimeStatisticsParams struct { - TaskChannel *string `json:"TaskChannel,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` } /* @@ -1347,39 +1344,39 @@ FetchWorkflowRealTimeStatistics Method for FetchWorkflowRealTimeStatistics @return TaskrouterV1WorkspaceWorkflowWorkflowRealTimeStatistics */ func (c *DefaultApiService) FetchWorkflowRealTimeStatistics(workspaceSid string, workflowSid string, params *FetchWorkflowRealTimeStatisticsParams) (*TaskrouterV1WorkspaceWorkflowWorkflowRealTimeStatistics, error) { - path := "/v1/Workspaces/{WorkspaceSid}/Workflows/{WorkflowSid}/RealTimeStatistics" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"WorkflowSid"+"}", workflowSid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/Workflows/{WorkflowSid}/RealTimeStatistics" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkflowSid"+"}", workflowSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.TaskChannel != nil { - data.Set("TaskChannel", *params.TaskChannel) - } + if params != nil && params.TaskChannel != nil { + data.Set("TaskChannel", *params.TaskChannel) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceWorkflowWorkflowRealTimeStatistics{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TaskrouterV1WorkspaceWorkflowWorkflowRealTimeStatistics{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // FetchWorkflowStatisticsParams Optional parameters for the method 'FetchWorkflowStatistics' type FetchWorkflowStatisticsParams struct { - Minutes *int32 `json:"Minutes,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - EndDate *time.Time `json:"EndDate,omitempty"` - TaskChannel *string `json:"TaskChannel,omitempty"` - SplitByWaitTime *string `json:"SplitByWaitTime,omitempty"` + Minutes *int32 `json:"Minutes,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` + SplitByWaitTime *string `json:"SplitByWaitTime,omitempty"` } /* @@ -1395,43 +1392,43 @@ FetchWorkflowStatistics Method for FetchWorkflowStatistics @return TaskrouterV1WorkspaceWorkflowWorkflowStatistics */ func (c *DefaultApiService) FetchWorkflowStatistics(workspaceSid string, workflowSid string, params *FetchWorkflowStatisticsParams) (*TaskrouterV1WorkspaceWorkflowWorkflowStatistics, error) { - path := "/v1/Workspaces/{WorkspaceSid}/Workflows/{WorkflowSid}/Statistics" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"WorkflowSid"+"}", workflowSid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/Workflows/{WorkflowSid}/Statistics" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkflowSid"+"}", workflowSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Minutes != nil { - data.Set("Minutes", string(*params.Minutes)) - } - if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) - } - if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) - } - if params != nil && params.TaskChannel != nil { - data.Set("TaskChannel", *params.TaskChannel) - } - if params != nil && params.SplitByWaitTime != nil { - data.Set("SplitByWaitTime", *params.SplitByWaitTime) - } + if params != nil && params.Minutes != nil { + data.Set("Minutes", string(*params.Minutes)) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.TaskChannel != nil { + data.Set("TaskChannel", *params.TaskChannel) + } + if params != nil && params.SplitByWaitTime != nil { + data.Set("SplitByWaitTime", *params.SplitByWaitTime) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceWorkflowWorkflowStatistics{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TaskrouterV1WorkspaceWorkflowWorkflowStatistics{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1440,35 +1437,35 @@ FetchWorkspace Method for FetchWorkspace @return TaskrouterV1Workspace */ func (c *DefaultApiService) FetchWorkspace(sid string) (*TaskrouterV1Workspace, error) { - path := "/v1/Workspaces/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Workspaces/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TaskrouterV1Workspace{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TaskrouterV1Workspace{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // FetchWorkspaceCumulativeStatisticsParams Optional parameters for the method 'FetchWorkspaceCumulativeStatistics' type FetchWorkspaceCumulativeStatisticsParams struct { - EndDate *time.Time `json:"EndDate,omitempty"` - Minutes *int32 `json:"Minutes,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - TaskChannel *string `json:"TaskChannel,omitempty"` - SplitByWaitTime *string `json:"SplitByWaitTime,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + Minutes *int32 `json:"Minutes,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` + SplitByWaitTime *string `json:"SplitByWaitTime,omitempty"` } /* @@ -1483,46 +1480,46 @@ FetchWorkspaceCumulativeStatistics Method for FetchWorkspaceCumulativeStatistics @return TaskrouterV1WorkspaceWorkspaceCumulativeStatistics */ func (c *DefaultApiService) FetchWorkspaceCumulativeStatistics(workspaceSid string, params *FetchWorkspaceCumulativeStatisticsParams) (*TaskrouterV1WorkspaceWorkspaceCumulativeStatistics, error) { - path := "/v1/Workspaces/{WorkspaceSid}/CumulativeStatistics" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) - } - if params != nil && params.Minutes != nil { - data.Set("Minutes", string(*params.Minutes)) - } - if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) - } - if params != nil && params.TaskChannel != nil { - data.Set("TaskChannel", *params.TaskChannel) - } - if params != nil && params.SplitByWaitTime != nil { - data.Set("SplitByWaitTime", *params.SplitByWaitTime) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &TaskrouterV1WorkspaceWorkspaceCumulativeStatistics{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Workspaces/{WorkspaceSid}/CumulativeStatistics" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.Minutes != nil { + data.Set("Minutes", string(*params.Minutes)) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.TaskChannel != nil { + data.Set("TaskChannel", *params.TaskChannel) + } + if params != nil && params.SplitByWaitTime != nil { + data.Set("SplitByWaitTime", *params.SplitByWaitTime) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceWorkspaceCumulativeStatistics{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // FetchWorkspaceRealTimeStatisticsParams Optional parameters for the method 'FetchWorkspaceRealTimeStatistics' type FetchWorkspaceRealTimeStatisticsParams struct { - TaskChannel *string `json:"TaskChannel,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` } /* @@ -1533,38 +1530,38 @@ FetchWorkspaceRealTimeStatistics Method for FetchWorkspaceRealTimeStatistics @return TaskrouterV1WorkspaceWorkspaceRealTimeStatistics */ func (c *DefaultApiService) FetchWorkspaceRealTimeStatistics(workspaceSid string, params *FetchWorkspaceRealTimeStatisticsParams) (*TaskrouterV1WorkspaceWorkspaceRealTimeStatistics, error) { - path := "/v1/Workspaces/{WorkspaceSid}/RealTimeStatistics" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/RealTimeStatistics" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.TaskChannel != nil { - data.Set("TaskChannel", *params.TaskChannel) - } + if params != nil && params.TaskChannel != nil { + data.Set("TaskChannel", *params.TaskChannel) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceWorkspaceRealTimeStatistics{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TaskrouterV1WorkspaceWorkspaceRealTimeStatistics{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // FetchWorkspaceStatisticsParams Optional parameters for the method 'FetchWorkspaceStatistics' type FetchWorkspaceStatisticsParams struct { - Minutes *int32 `json:"Minutes,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - EndDate *time.Time `json:"EndDate,omitempty"` - TaskChannel *string `json:"TaskChannel,omitempty"` - SplitByWaitTime *string `json:"SplitByWaitTime,omitempty"` + Minutes *int32 `json:"Minutes,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` + SplitByWaitTime *string `json:"SplitByWaitTime,omitempty"` } /* @@ -1579,48 +1576,48 @@ FetchWorkspaceStatistics Method for FetchWorkspaceStatistics @return TaskrouterV1WorkspaceWorkspaceStatistics */ func (c *DefaultApiService) FetchWorkspaceStatistics(workspaceSid string, params *FetchWorkspaceStatisticsParams) (*TaskrouterV1WorkspaceWorkspaceStatistics, error) { - path := "/v1/Workspaces/{WorkspaceSid}/Statistics" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Minutes != nil { - data.Set("Minutes", string(*params.Minutes)) - } - if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) - } - if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) - } - if params != nil && params.TaskChannel != nil { - data.Set("TaskChannel", *params.TaskChannel) - } - if params != nil && params.SplitByWaitTime != nil { - data.Set("SplitByWaitTime", *params.SplitByWaitTime) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &TaskrouterV1WorkspaceWorkspaceStatistics{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Workspaces/{WorkspaceSid}/Statistics" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Minutes != nil { + data.Set("Minutes", string(*params.Minutes)) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.TaskChannel != nil { + data.Set("TaskChannel", *params.TaskChannel) + } + if params != nil && params.SplitByWaitTime != nil { + data.Set("SplitByWaitTime", *params.SplitByWaitTime) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceWorkspaceStatistics{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListActivityParams Optional parameters for the method 'ListActivity' type ListActivityParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - Available *string `json:"Available,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Available *string `json:"Available,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1633,51 +1630,51 @@ ListActivity Method for ListActivity @return TaskrouterV1WorkspaceActivityReadResponse */ func (c *DefaultApiService) ListActivity(workspaceSid string, params *ListActivityParams) (*TaskrouterV1WorkspaceActivityReadResponse, error) { - path := "/v1/Workspaces/{WorkspaceSid}/Activities" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/Activities" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Available != nil { - data.Set("Available", *params.Available) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Available != nil { + data.Set("Available", *params.Available) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceActivityReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TaskrouterV1WorkspaceActivityReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListEventParams Optional parameters for the method 'ListEvent' type ListEventParams struct { - EndDate *time.Time `json:"EndDate,omitempty"` - EventType *string `json:"EventType,omitempty"` - Minutes *int32 `json:"Minutes,omitempty"` - ReservationSid *string `json:"ReservationSid,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - TaskQueueSid *string `json:"TaskQueueSid,omitempty"` - TaskSid *string `json:"TaskSid,omitempty"` - WorkerSid *string `json:"WorkerSid,omitempty"` - WorkflowSid *string `json:"WorkflowSid,omitempty"` - TaskChannel *string `json:"TaskChannel,omitempty"` - Sid *string `json:"Sid,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + EventType *string `json:"EventType,omitempty"` + Minutes *int32 `json:"Minutes,omitempty"` + ReservationSid *string `json:"ReservationSid,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + TaskQueueSid *string `json:"TaskQueueSid,omitempty"` + TaskSid *string `json:"TaskSid,omitempty"` + WorkerSid *string `json:"WorkerSid,omitempty"` + WorkflowSid *string `json:"WorkflowSid,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` + Sid *string `json:"Sid,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1699,76 +1696,76 @@ ListEvent Method for ListEvent @return TaskrouterV1WorkspaceEventReadResponse */ func (c *DefaultApiService) ListEvent(workspaceSid string, params *ListEventParams) (*TaskrouterV1WorkspaceEventReadResponse, error) { - path := "/v1/Workspaces/{WorkspaceSid}/Events" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) - } - if params != nil && params.EventType != nil { - data.Set("EventType", *params.EventType) - } - if params != nil && params.Minutes != nil { - data.Set("Minutes", string(*params.Minutes)) - } - if params != nil && params.ReservationSid != nil { - data.Set("ReservationSid", *params.ReservationSid) - } - if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) - } - if params != nil && params.TaskQueueSid != nil { - data.Set("TaskQueueSid", *params.TaskQueueSid) - } - if params != nil && params.TaskSid != nil { - data.Set("TaskSid", *params.TaskSid) - } - if params != nil && params.WorkerSid != nil { - data.Set("WorkerSid", *params.WorkerSid) - } - if params != nil && params.WorkflowSid != nil { - data.Set("WorkflowSid", *params.WorkflowSid) - } - if params != nil && params.TaskChannel != nil { - data.Set("TaskChannel", *params.TaskChannel) - } - if params != nil && params.Sid != nil { - data.Set("Sid", *params.Sid) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &TaskrouterV1WorkspaceEventReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Workspaces/{WorkspaceSid}/Events" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.EventType != nil { + data.Set("EventType", *params.EventType) + } + if params != nil && params.Minutes != nil { + data.Set("Minutes", string(*params.Minutes)) + } + if params != nil && params.ReservationSid != nil { + data.Set("ReservationSid", *params.ReservationSid) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.TaskQueueSid != nil { + data.Set("TaskQueueSid", *params.TaskQueueSid) + } + if params != nil && params.TaskSid != nil { + data.Set("TaskSid", *params.TaskSid) + } + if params != nil && params.WorkerSid != nil { + data.Set("WorkerSid", *params.WorkerSid) + } + if params != nil && params.WorkflowSid != nil { + data.Set("WorkflowSid", *params.WorkflowSid) + } + if params != nil && params.TaskChannel != nil { + data.Set("TaskChannel", *params.TaskChannel) + } + if params != nil && params.Sid != nil { + data.Set("Sid", *params.Sid) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceEventReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListTaskParams Optional parameters for the method 'ListTask' type ListTaskParams struct { - Priority *int32 `json:"Priority,omitempty"` - AssignmentStatus *[]string `json:"AssignmentStatus,omitempty"` - WorkflowSid *string `json:"WorkflowSid,omitempty"` - WorkflowName *string `json:"WorkflowName,omitempty"` - TaskQueueSid *string `json:"TaskQueueSid,omitempty"` - TaskQueueName *string `json:"TaskQueueName,omitempty"` - EvaluateTaskAttributes *string `json:"EvaluateTaskAttributes,omitempty"` - Ordering *string `json:"Ordering,omitempty"` - HasAddons *bool `json:"HasAddons,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Priority *int32 `json:"Priority,omitempty"` + AssignmentStatus *[]string `json:"AssignmentStatus,omitempty"` + WorkflowSid *string `json:"WorkflowSid,omitempty"` + WorkflowName *string `json:"WorkflowName,omitempty"` + TaskQueueSid *string `json:"TaskQueueSid,omitempty"` + TaskQueueName *string `json:"TaskQueueName,omitempty"` + EvaluateTaskAttributes *string `json:"EvaluateTaskAttributes,omitempty"` + Ordering *string `json:"Ordering,omitempty"` + HasAddons *bool `json:"HasAddons,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1788,61 +1785,61 @@ ListTask Method for ListTask @return TaskrouterV1WorkspaceTaskReadResponse */ func (c *DefaultApiService) ListTask(workspaceSid string, params *ListTaskParams) (*TaskrouterV1WorkspaceTaskReadResponse, error) { - path := "/v1/Workspaces/{WorkspaceSid}/Tasks" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Priority != nil { - data.Set("Priority", string(*params.Priority)) - } - if params != nil && params.AssignmentStatus != nil { - data.Set("AssignmentStatus", string(*params.AssignmentStatus)) - } - if params != nil && params.WorkflowSid != nil { - data.Set("WorkflowSid", *params.WorkflowSid) - } - if params != nil && params.WorkflowName != nil { - data.Set("WorkflowName", *params.WorkflowName) - } - if params != nil && params.TaskQueueSid != nil { - data.Set("TaskQueueSid", *params.TaskQueueSid) - } - if params != nil && params.TaskQueueName != nil { - data.Set("TaskQueueName", *params.TaskQueueName) - } - if params != nil && params.EvaluateTaskAttributes != nil { - data.Set("EvaluateTaskAttributes", *params.EvaluateTaskAttributes) - } - if params != nil && params.Ordering != nil { - data.Set("Ordering", *params.Ordering) - } - if params != nil && params.HasAddons != nil { - data.Set("HasAddons", string(*params.HasAddons)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &TaskrouterV1WorkspaceTaskReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Workspaces/{WorkspaceSid}/Tasks" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Priority != nil { + data.Set("Priority", string(*params.Priority)) + } + if params != nil && params.AssignmentStatus != nil { + data.Set("AssignmentStatus", string(*params.AssignmentStatus)) + } + if params != nil && params.WorkflowSid != nil { + data.Set("WorkflowSid", *params.WorkflowSid) + } + if params != nil && params.WorkflowName != nil { + data.Set("WorkflowName", *params.WorkflowName) + } + if params != nil && params.TaskQueueSid != nil { + data.Set("TaskQueueSid", *params.TaskQueueSid) + } + if params != nil && params.TaskQueueName != nil { + data.Set("TaskQueueName", *params.TaskQueueName) + } + if params != nil && params.EvaluateTaskAttributes != nil { + data.Set("EvaluateTaskAttributes", *params.EvaluateTaskAttributes) + } + if params != nil && params.Ordering != nil { + data.Set("Ordering", *params.Ordering) + } + if params != nil && params.HasAddons != nil { + data.Set("HasAddons", string(*params.HasAddons)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceTaskReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListTaskChannelParams Optional parameters for the method 'ListTaskChannel' type ListTaskChannelParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1853,37 +1850,37 @@ ListTaskChannel Method for ListTaskChannel @return TaskrouterV1WorkspaceTaskChannelReadResponse */ func (c *DefaultApiService) ListTaskChannel(workspaceSid string, params *ListTaskChannelParams) (*TaskrouterV1WorkspaceTaskChannelReadResponse, error) { - path := "/v1/Workspaces/{WorkspaceSid}/TaskChannels" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/TaskChannels" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceTaskChannelReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TaskrouterV1WorkspaceTaskChannelReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListTaskQueueParams Optional parameters for the method 'ListTaskQueue' type ListTaskQueueParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - EvaluateWorkerAttributes *string `json:"EvaluateWorkerAttributes,omitempty"` - WorkerSid *string `json:"WorkerSid,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + EvaluateWorkerAttributes *string `json:"EvaluateWorkerAttributes,omitempty"` + WorkerSid *string `json:"WorkerSid,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1897,49 +1894,49 @@ ListTaskQueue Method for ListTaskQueue @return TaskrouterV1WorkspaceTaskQueueReadResponse */ func (c *DefaultApiService) ListTaskQueue(workspaceSid string, params *ListTaskQueueParams) (*TaskrouterV1WorkspaceTaskQueueReadResponse, error) { - path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.EvaluateWorkerAttributes != nil { - data.Set("EvaluateWorkerAttributes", *params.EvaluateWorkerAttributes) - } - if params != nil && params.WorkerSid != nil { - data.Set("WorkerSid", *params.WorkerSid) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.EvaluateWorkerAttributes != nil { + data.Set("EvaluateWorkerAttributes", *params.EvaluateWorkerAttributes) + } + if params != nil && params.WorkerSid != nil { + data.Set("WorkerSid", *params.WorkerSid) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceTaskQueueReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TaskrouterV1WorkspaceTaskQueueReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListTaskQueuesStatisticsParams Optional parameters for the method 'ListTaskQueuesStatistics' type ListTaskQueuesStatisticsParams struct { - EndDate *time.Time `json:"EndDate,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Minutes *int32 `json:"Minutes,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - TaskChannel *string `json:"TaskChannel,omitempty"` - SplitByWaitTime *string `json:"SplitByWaitTime,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Minutes *int32 `json:"Minutes,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` + SplitByWaitTime *string `json:"SplitByWaitTime,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1956,53 +1953,53 @@ ListTaskQueuesStatistics Method for ListTaskQueuesStatistics @return TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse */ func (c *DefaultApiService) ListTaskQueuesStatistics(workspaceSid string, params *ListTaskQueuesStatisticsParams) (*TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse, error) { - path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/Statistics" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Minutes != nil { - data.Set("Minutes", string(*params.Minutes)) - } - if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) - } - if params != nil && params.TaskChannel != nil { - data.Set("TaskChannel", *params.TaskChannel) - } - if params != nil && params.SplitByWaitTime != nil { - data.Set("SplitByWaitTime", *params.SplitByWaitTime) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/Statistics" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.EndDate != nil { + data.Set("EndDate", string(*params.EndDate)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Minutes != nil { + data.Set("Minutes", string(*params.Minutes)) + } + if params != nil && params.StartDate != nil { + data.Set("StartDate", string(*params.StartDate)) + } + if params != nil && params.TaskChannel != nil { + data.Set("TaskChannel", *params.TaskChannel) + } + if params != nil && params.SplitByWaitTime != nil { + data.Set("SplitByWaitTime", *params.SplitByWaitTime) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListTaskReservationParams Optional parameters for the method 'ListTaskReservation' type ListTaskReservationParams struct { - ReservationStatus *string `json:"ReservationStatus,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + ReservationStatus *string `json:"ReservationStatus,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2015,45 +2012,45 @@ ListTaskReservation Method for ListTaskReservation @return TaskrouterV1WorkspaceTaskTaskReservationReadResponse */ func (c *DefaultApiService) ListTaskReservation(workspaceSid string, taskSid string, params *ListTaskReservationParams) (*TaskrouterV1WorkspaceTaskTaskReservationReadResponse, error) { - path := "/v1/Workspaces/{WorkspaceSid}/Tasks/{TaskSid}/Reservations" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/Tasks/{TaskSid}/Reservations" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.ReservationStatus != nil { - data.Set("ReservationStatus", *params.ReservationStatus) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.ReservationStatus != nil { + data.Set("ReservationStatus", *params.ReservationStatus) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceTaskTaskReservationReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TaskrouterV1WorkspaceTaskTaskReservationReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListWorkerParams Optional parameters for the method 'ListWorker' type ListWorkerParams struct { - ActivityName *string `json:"ActivityName,omitempty"` - ActivitySid *string `json:"ActivitySid,omitempty"` - Available *string `json:"Available,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - TargetWorkersExpression *string `json:"TargetWorkersExpression,omitempty"` - TaskQueueName *string `json:"TaskQueueName,omitempty"` - TaskQueueSid *string `json:"TaskQueueSid,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + ActivityName *string `json:"ActivityName,omitempty"` + ActivitySid *string `json:"ActivitySid,omitempty"` + Available *string `json:"Available,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + TargetWorkersExpression *string `json:"TargetWorkersExpression,omitempty"` + TaskQueueName *string `json:"TaskQueueName,omitempty"` + TaskQueueSid *string `json:"TaskQueueSid,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2071,55 +2068,55 @@ ListWorker Method for ListWorker @return TaskrouterV1WorkspaceWorkerReadResponse */ func (c *DefaultApiService) ListWorker(workspaceSid string, params *ListWorkerParams) (*TaskrouterV1WorkspaceWorkerReadResponse, error) { - path := "/v1/Workspaces/{WorkspaceSid}/Workers" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.ActivityName != nil { - data.Set("ActivityName", *params.ActivityName) - } - if params != nil && params.ActivitySid != nil { - data.Set("ActivitySid", *params.ActivitySid) - } - if params != nil && params.Available != nil { - data.Set("Available", *params.Available) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.TargetWorkersExpression != nil { - data.Set("TargetWorkersExpression", *params.TargetWorkersExpression) - } - if params != nil && params.TaskQueueName != nil { - data.Set("TaskQueueName", *params.TaskQueueName) - } - if params != nil && params.TaskQueueSid != nil { - data.Set("TaskQueueSid", *params.TaskQueueSid) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &TaskrouterV1WorkspaceWorkerReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Workspaces/{WorkspaceSid}/Workers" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.ActivityName != nil { + data.Set("ActivityName", *params.ActivityName) + } + if params != nil && params.ActivitySid != nil { + data.Set("ActivitySid", *params.ActivitySid) + } + if params != nil && params.Available != nil { + data.Set("Available", *params.Available) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.TargetWorkersExpression != nil { + data.Set("TargetWorkersExpression", *params.TargetWorkersExpression) + } + if params != nil && params.TaskQueueName != nil { + data.Set("TaskQueueName", *params.TaskQueueName) + } + if params != nil && params.TaskQueueSid != nil { + data.Set("TaskQueueSid", *params.TaskQueueSid) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceWorkerReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListWorkerChannelParams Optional parameters for the method 'ListWorkerChannel' type ListWorkerChannelParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2131,36 +2128,36 @@ ListWorkerChannel Method for ListWorkerChannel @return TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse */ func (c *DefaultApiService) ListWorkerChannel(workspaceSid string, workerSid string, params *ListWorkerChannelParams) (*TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse, error) { - path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Channels" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"WorkerSid"+"}", workerSid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Channels" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkerSid"+"}", workerSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListWorkerReservationParams Optional parameters for the method 'ListWorkerReservation' type ListWorkerReservationParams struct { - ReservationStatus *string `json:"ReservationStatus,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + ReservationStatus *string `json:"ReservationStatus,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2173,39 +2170,39 @@ ListWorkerReservation Method for ListWorkerReservation @return TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse */ func (c *DefaultApiService) ListWorkerReservation(workspaceSid string, workerSid string, params *ListWorkerReservationParams) (*TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse, error) { - path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Reservations" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"WorkerSid"+"}", workerSid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Reservations" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkerSid"+"}", workerSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.ReservationStatus != nil { - data.Set("ReservationStatus", *params.ReservationStatus) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.ReservationStatus != nil { + data.Set("ReservationStatus", *params.ReservationStatus) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListWorkflowParams Optional parameters for the method 'ListWorkflow' type ListWorkflowParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2217,38 +2214,38 @@ ListWorkflow Method for ListWorkflow @return TaskrouterV1WorkspaceWorkflowReadResponse */ func (c *DefaultApiService) ListWorkflow(workspaceSid string, params *ListWorkflowParams) (*TaskrouterV1WorkspaceWorkflowReadResponse, error) { - path := "/v1/Workspaces/{WorkspaceSid}/Workflows" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/Workflows" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceWorkflowReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TaskrouterV1WorkspaceWorkflowReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListWorkspaceParams Optional parameters for the method 'ListWorkspace' type ListWorkspaceParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2259,36 +2256,36 @@ ListWorkspace Method for ListWorkspace @return TaskrouterV1WorkspaceReadResponse */ func (c *DefaultApiService) ListWorkspace(params *ListWorkspaceParams) (*TaskrouterV1WorkspaceReadResponse, error) { - path := "/v1/Workspaces" + path := "/v1/Workspaces" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TaskrouterV1WorkspaceReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateActivityParams Optional parameters for the method 'UpdateActivity' type UpdateActivityParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -2300,39 +2297,39 @@ UpdateActivity Method for UpdateActivity @return TaskrouterV1WorkspaceActivity */ func (c *DefaultApiService) UpdateActivity(workspaceSid string, sid string, params *UpdateActivityParams) (*TaskrouterV1WorkspaceActivity, error) { - path := "/v1/Workspaces/{WorkspaceSid}/Activities/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/Activities/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceActivity{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TaskrouterV1WorkspaceActivity{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateTaskParams Optional parameters for the method 'UpdateTask' type UpdateTaskParams struct { - AssignmentStatus *string `json:"AssignmentStatus,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - Priority *int32 `json:"Priority,omitempty"` - Reason *string `json:"Reason,omitempty"` - TaskChannel *string `json:"TaskChannel,omitempty"` + AssignmentStatus *string `json:"AssignmentStatus,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + Priority *int32 `json:"Priority,omitempty"` + Reason *string `json:"Reason,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` } /* @@ -2348,48 +2345,48 @@ UpdateTask Method for UpdateTask @return TaskrouterV1WorkspaceTask */ func (c *DefaultApiService) UpdateTask(workspaceSid string, sid string, params *UpdateTaskParams) (*TaskrouterV1WorkspaceTask, error) { - path := "/v1/Workspaces/{WorkspaceSid}/Tasks/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.AssignmentStatus != nil { - data.Set("AssignmentStatus", *params.AssignmentStatus) - } - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.Priority != nil { - data.Set("Priority", string(*params.Priority)) - } - if params != nil && params.Reason != nil { - data.Set("Reason", *params.Reason) - } - if params != nil && params.TaskChannel != nil { - data.Set("TaskChannel", *params.TaskChannel) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &TaskrouterV1WorkspaceTask{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Workspaces/{WorkspaceSid}/Tasks/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AssignmentStatus != nil { + data.Set("AssignmentStatus", *params.AssignmentStatus) + } + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.Priority != nil { + data.Set("Priority", string(*params.Priority)) + } + if params != nil && params.Reason != nil { + data.Set("Reason", *params.Reason) + } + if params != nil && params.TaskChannel != nil { + data.Set("TaskChannel", *params.TaskChannel) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceTask{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateTaskChannelParams Optional parameters for the method 'UpdateTaskChannel' type UpdateTaskChannelParams struct { - ChannelOptimizedRouting *bool `json:"ChannelOptimizedRouting,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` + ChannelOptimizedRouting *bool `json:"ChannelOptimizedRouting,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -2402,43 +2399,43 @@ UpdateTaskChannel Method for UpdateTaskChannel @return TaskrouterV1WorkspaceTaskChannel */ func (c *DefaultApiService) UpdateTaskChannel(workspaceSid string, sid string, params *UpdateTaskChannelParams) (*TaskrouterV1WorkspaceTaskChannel, error) { - path := "/v1/Workspaces/{WorkspaceSid}/TaskChannels/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/TaskChannels/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.ChannelOptimizedRouting != nil { - data.Set("ChannelOptimizedRouting", string(*params.ChannelOptimizedRouting)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + if params != nil && params.ChannelOptimizedRouting != nil { + data.Set("ChannelOptimizedRouting", string(*params.ChannelOptimizedRouting)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceTaskChannel{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TaskrouterV1WorkspaceTaskChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateTaskQueueParams Optional parameters for the method 'UpdateTaskQueue' type UpdateTaskQueueParams struct { - AssignmentActivitySid *string `json:"AssignmentActivitySid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - MaxReservedWorkers *int32 `json:"MaxReservedWorkers,omitempty"` - ReservationActivitySid *string `json:"ReservationActivitySid,omitempty"` - TargetWorkers *string `json:"TargetWorkers,omitempty"` - TaskOrder *string `json:"TaskOrder,omitempty"` + AssignmentActivitySid *string `json:"AssignmentActivitySid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + MaxReservedWorkers *int32 `json:"MaxReservedWorkers,omitempty"` + ReservationActivitySid *string `json:"ReservationActivitySid,omitempty"` + TargetWorkers *string `json:"TargetWorkers,omitempty"` + TaskOrder *string `json:"TaskOrder,omitempty"` } /* @@ -2455,102 +2452,102 @@ UpdateTaskQueue Method for UpdateTaskQueue @return TaskrouterV1WorkspaceTaskQueue */ func (c *DefaultApiService) UpdateTaskQueue(workspaceSid string, sid string, params *UpdateTaskQueueParams) (*TaskrouterV1WorkspaceTaskQueue, error) { - path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.AssignmentActivitySid != nil { - data.Set("AssignmentActivitySid", *params.AssignmentActivitySid) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.MaxReservedWorkers != nil { - data.Set("MaxReservedWorkers", string(*params.MaxReservedWorkers)) - } - if params != nil && params.ReservationActivitySid != nil { - data.Set("ReservationActivitySid", *params.ReservationActivitySid) - } - if params != nil && params.TargetWorkers != nil { - data.Set("TargetWorkers", *params.TargetWorkers) - } - if params != nil && params.TaskOrder != nil { - data.Set("TaskOrder", *params.TaskOrder) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &TaskrouterV1WorkspaceTaskQueue{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AssignmentActivitySid != nil { + data.Set("AssignmentActivitySid", *params.AssignmentActivitySid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.MaxReservedWorkers != nil { + data.Set("MaxReservedWorkers", string(*params.MaxReservedWorkers)) + } + if params != nil && params.ReservationActivitySid != nil { + data.Set("ReservationActivitySid", *params.ReservationActivitySid) + } + if params != nil && params.TargetWorkers != nil { + data.Set("TargetWorkers", *params.TargetWorkers) + } + if params != nil && params.TaskOrder != nil { + data.Set("TaskOrder", *params.TaskOrder) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceTaskQueue{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateTaskReservationParams Optional parameters for the method 'UpdateTaskReservation' type UpdateTaskReservationParams struct { - Beep *string `json:"Beep,omitempty"` - BeepOnCustomerEntrance *bool `json:"BeepOnCustomerEntrance,omitempty"` - CallAccept *bool `json:"CallAccept,omitempty"` - CallFrom *string `json:"CallFrom,omitempty"` - CallRecord *string `json:"CallRecord,omitempty"` - CallStatusCallbackUrl *string `json:"CallStatusCallbackUrl,omitempty"` - CallTimeout *int32 `json:"CallTimeout,omitempty"` - CallTo *string `json:"CallTo,omitempty"` - CallUrl *string `json:"CallUrl,omitempty"` - ConferenceRecord *string `json:"ConferenceRecord,omitempty"` - ConferenceRecordingStatusCallback *string `json:"ConferenceRecordingStatusCallback,omitempty"` - ConferenceRecordingStatusCallbackMethod *string `json:"ConferenceRecordingStatusCallbackMethod,omitempty"` - ConferenceStatusCallback *string `json:"ConferenceStatusCallback,omitempty"` - ConferenceStatusCallbackEvent *[]string `json:"ConferenceStatusCallbackEvent,omitempty"` - ConferenceStatusCallbackMethod *string `json:"ConferenceStatusCallbackMethod,omitempty"` - ConferenceTrim *string `json:"ConferenceTrim,omitempty"` - DequeueFrom *string `json:"DequeueFrom,omitempty"` - DequeuePostWorkActivitySid *string `json:"DequeuePostWorkActivitySid,omitempty"` - DequeueRecord *string `json:"DequeueRecord,omitempty"` - DequeueStatusCallbackEvent *[]string `json:"DequeueStatusCallbackEvent,omitempty"` - DequeueStatusCallbackUrl *string `json:"DequeueStatusCallbackUrl,omitempty"` - DequeueTimeout *int32 `json:"DequeueTimeout,omitempty"` - DequeueTo *string `json:"DequeueTo,omitempty"` - EarlyMedia *bool `json:"EarlyMedia,omitempty"` - EndConferenceOnCustomerExit *bool `json:"EndConferenceOnCustomerExit,omitempty"` - EndConferenceOnExit *bool `json:"EndConferenceOnExit,omitempty"` - From *string `json:"From,omitempty"` - Instruction *string `json:"Instruction,omitempty"` - MaxParticipants *int32 `json:"MaxParticipants,omitempty"` - Muted *bool `json:"Muted,omitempty"` - PostWorkActivitySid *string `json:"PostWorkActivitySid,omitempty"` - Record *bool `json:"Record,omitempty"` - RecordingChannels *string `json:"RecordingChannels,omitempty"` - RecordingStatusCallback *string `json:"RecordingStatusCallback,omitempty"` - RecordingStatusCallbackMethod *string `json:"RecordingStatusCallbackMethod,omitempty"` - RedirectAccept *bool `json:"RedirectAccept,omitempty"` - RedirectCallSid *string `json:"RedirectCallSid,omitempty"` - RedirectUrl *string `json:"RedirectUrl,omitempty"` - Region *string `json:"Region,omitempty"` - ReservationStatus *string `json:"ReservationStatus,omitempty"` - SipAuthPassword *string `json:"SipAuthPassword,omitempty"` - SipAuthUsername *string `json:"SipAuthUsername,omitempty"` - StartConferenceOnEnter *bool `json:"StartConferenceOnEnter,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StatusCallbackEvent *[]string `json:"StatusCallbackEvent,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - Supervisor *string `json:"Supervisor,omitempty"` - SupervisorMode *string `json:"SupervisorMode,omitempty"` - Timeout *int32 `json:"Timeout,omitempty"` - To *string `json:"To,omitempty"` - WaitMethod *string `json:"WaitMethod,omitempty"` - WaitUrl *string `json:"WaitUrl,omitempty"` - WorkerActivitySid *string `json:"WorkerActivitySid,omitempty"` + Beep *string `json:"Beep,omitempty"` + BeepOnCustomerEntrance *bool `json:"BeepOnCustomerEntrance,omitempty"` + CallAccept *bool `json:"CallAccept,omitempty"` + CallFrom *string `json:"CallFrom,omitempty"` + CallRecord *string `json:"CallRecord,omitempty"` + CallStatusCallbackUrl *string `json:"CallStatusCallbackUrl,omitempty"` + CallTimeout *int32 `json:"CallTimeout,omitempty"` + CallTo *string `json:"CallTo,omitempty"` + CallUrl *string `json:"CallUrl,omitempty"` + ConferenceRecord *string `json:"ConferenceRecord,omitempty"` + ConferenceRecordingStatusCallback *string `json:"ConferenceRecordingStatusCallback,omitempty"` + ConferenceRecordingStatusCallbackMethod *string `json:"ConferenceRecordingStatusCallbackMethod,omitempty"` + ConferenceStatusCallback *string `json:"ConferenceStatusCallback,omitempty"` + ConferenceStatusCallbackEvent *[]string `json:"ConferenceStatusCallbackEvent,omitempty"` + ConferenceStatusCallbackMethod *string `json:"ConferenceStatusCallbackMethod,omitempty"` + ConferenceTrim *string `json:"ConferenceTrim,omitempty"` + DequeueFrom *string `json:"DequeueFrom,omitempty"` + DequeuePostWorkActivitySid *string `json:"DequeuePostWorkActivitySid,omitempty"` + DequeueRecord *string `json:"DequeueRecord,omitempty"` + DequeueStatusCallbackEvent *[]string `json:"DequeueStatusCallbackEvent,omitempty"` + DequeueStatusCallbackUrl *string `json:"DequeueStatusCallbackUrl,omitempty"` + DequeueTimeout *int32 `json:"DequeueTimeout,omitempty"` + DequeueTo *string `json:"DequeueTo,omitempty"` + EarlyMedia *bool `json:"EarlyMedia,omitempty"` + EndConferenceOnCustomerExit *bool `json:"EndConferenceOnCustomerExit,omitempty"` + EndConferenceOnExit *bool `json:"EndConferenceOnExit,omitempty"` + From *string `json:"From,omitempty"` + Instruction *string `json:"Instruction,omitempty"` + MaxParticipants *int32 `json:"MaxParticipants,omitempty"` + Muted *bool `json:"Muted,omitempty"` + PostWorkActivitySid *string `json:"PostWorkActivitySid,omitempty"` + Record *bool `json:"Record,omitempty"` + RecordingChannels *string `json:"RecordingChannels,omitempty"` + RecordingStatusCallback *string `json:"RecordingStatusCallback,omitempty"` + RecordingStatusCallbackMethod *string `json:"RecordingStatusCallbackMethod,omitempty"` + RedirectAccept *bool `json:"RedirectAccept,omitempty"` + RedirectCallSid *string `json:"RedirectCallSid,omitempty"` + RedirectUrl *string `json:"RedirectUrl,omitempty"` + Region *string `json:"Region,omitempty"` + ReservationStatus *string `json:"ReservationStatus,omitempty"` + SipAuthPassword *string `json:"SipAuthPassword,omitempty"` + SipAuthUsername *string `json:"SipAuthUsername,omitempty"` + StartConferenceOnEnter *bool `json:"StartConferenceOnEnter,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackEvent *[]string `json:"StatusCallbackEvent,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + Supervisor *string `json:"Supervisor,omitempty"` + SupervisorMode *string `json:"SupervisorMode,omitempty"` + Timeout *int32 `json:"Timeout,omitempty"` + To *string `json:"To,omitempty"` + WaitMethod *string `json:"WaitMethod,omitempty"` + WaitUrl *string `json:"WaitUrl,omitempty"` + WorkerActivitySid *string `json:"WorkerActivitySid,omitempty"` } /* @@ -2615,195 +2612,195 @@ UpdateTaskReservation Method for UpdateTaskReservation @return TaskrouterV1WorkspaceTaskTaskReservation */ func (c *DefaultApiService) UpdateTaskReservation(workspaceSid string, taskSid string, sid string, params *UpdateTaskReservationParams) (*TaskrouterV1WorkspaceTaskTaskReservation, error) { - path := "/v1/Workspaces/{WorkspaceSid}/Tasks/{TaskSid}/Reservations/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Beep != nil { - data.Set("Beep", *params.Beep) - } - if params != nil && params.BeepOnCustomerEntrance != nil { - data.Set("BeepOnCustomerEntrance", string(*params.BeepOnCustomerEntrance)) - } - if params != nil && params.CallAccept != nil { - data.Set("CallAccept", string(*params.CallAccept)) - } - if params != nil && params.CallFrom != nil { - data.Set("CallFrom", *params.CallFrom) - } - if params != nil && params.CallRecord != nil { - data.Set("CallRecord", *params.CallRecord) - } - if params != nil && params.CallStatusCallbackUrl != nil { - data.Set("CallStatusCallbackUrl", *params.CallStatusCallbackUrl) - } - if params != nil && params.CallTimeout != nil { - data.Set("CallTimeout", string(*params.CallTimeout)) - } - if params != nil && params.CallTo != nil { - data.Set("CallTo", *params.CallTo) - } - if params != nil && params.CallUrl != nil { - data.Set("CallUrl", *params.CallUrl) - } - if params != nil && params.ConferenceRecord != nil { - data.Set("ConferenceRecord", *params.ConferenceRecord) - } - if params != nil && params.ConferenceRecordingStatusCallback != nil { - data.Set("ConferenceRecordingStatusCallback", *params.ConferenceRecordingStatusCallback) - } - if params != nil && params.ConferenceRecordingStatusCallbackMethod != nil { - data.Set("ConferenceRecordingStatusCallbackMethod", *params.ConferenceRecordingStatusCallbackMethod) - } - if params != nil && params.ConferenceStatusCallback != nil { - data.Set("ConferenceStatusCallback", *params.ConferenceStatusCallback) - } - if params != nil && params.ConferenceStatusCallbackEvent != nil { - data.Set("ConferenceStatusCallbackEvent", *params.ConferenceStatusCallbackEvent) - } - if params != nil && params.ConferenceStatusCallbackMethod != nil { - data.Set("ConferenceStatusCallbackMethod", *params.ConferenceStatusCallbackMethod) - } - if params != nil && params.ConferenceTrim != nil { - data.Set("ConferenceTrim", *params.ConferenceTrim) - } - if params != nil && params.DequeueFrom != nil { - data.Set("DequeueFrom", *params.DequeueFrom) - } - if params != nil && params.DequeuePostWorkActivitySid != nil { - data.Set("DequeuePostWorkActivitySid", *params.DequeuePostWorkActivitySid) - } - if params != nil && params.DequeueRecord != nil { - data.Set("DequeueRecord", *params.DequeueRecord) - } - if params != nil && params.DequeueStatusCallbackEvent != nil { - data.Set("DequeueStatusCallbackEvent", *params.DequeueStatusCallbackEvent) - } - if params != nil && params.DequeueStatusCallbackUrl != nil { - data.Set("DequeueStatusCallbackUrl", *params.DequeueStatusCallbackUrl) - } - if params != nil && params.DequeueTimeout != nil { - data.Set("DequeueTimeout", string(*params.DequeueTimeout)) - } - if params != nil && params.DequeueTo != nil { - data.Set("DequeueTo", *params.DequeueTo) - } - if params != nil && params.EarlyMedia != nil { - data.Set("EarlyMedia", string(*params.EarlyMedia)) - } - if params != nil && params.EndConferenceOnCustomerExit != nil { - data.Set("EndConferenceOnCustomerExit", string(*params.EndConferenceOnCustomerExit)) - } - if params != nil && params.EndConferenceOnExit != nil { - data.Set("EndConferenceOnExit", string(*params.EndConferenceOnExit)) - } - if params != nil && params.From != nil { - data.Set("From", *params.From) - } - if params != nil && params.Instruction != nil { - data.Set("Instruction", *params.Instruction) - } - if params != nil && params.MaxParticipants != nil { - data.Set("MaxParticipants", string(*params.MaxParticipants)) - } - if params != nil && params.Muted != nil { - data.Set("Muted", string(*params.Muted)) - } - if params != nil && params.PostWorkActivitySid != nil { - data.Set("PostWorkActivitySid", *params.PostWorkActivitySid) - } - if params != nil && params.Record != nil { - data.Set("Record", string(*params.Record)) - } - if params != nil && params.RecordingChannels != nil { - data.Set("RecordingChannels", *params.RecordingChannels) - } - if params != nil && params.RecordingStatusCallback != nil { - data.Set("RecordingStatusCallback", *params.RecordingStatusCallback) - } - if params != nil && params.RecordingStatusCallbackMethod != nil { - data.Set("RecordingStatusCallbackMethod", *params.RecordingStatusCallbackMethod) - } - if params != nil && params.RedirectAccept != nil { - data.Set("RedirectAccept", string(*params.RedirectAccept)) - } - if params != nil && params.RedirectCallSid != nil { - data.Set("RedirectCallSid", *params.RedirectCallSid) - } - if params != nil && params.RedirectUrl != nil { - data.Set("RedirectUrl", *params.RedirectUrl) - } - if params != nil && params.Region != nil { - data.Set("Region", *params.Region) - } - if params != nil && params.ReservationStatus != nil { - data.Set("ReservationStatus", *params.ReservationStatus) - } - if params != nil && params.SipAuthPassword != nil { - data.Set("SipAuthPassword", *params.SipAuthPassword) - } - if params != nil && params.SipAuthUsername != nil { - data.Set("SipAuthUsername", *params.SipAuthUsername) - } - if params != nil && params.StartConferenceOnEnter != nil { - data.Set("StartConferenceOnEnter", string(*params.StartConferenceOnEnter)) - } - if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) - } - if params != nil && params.StatusCallbackEvent != nil { - data.Set("StatusCallbackEvent", *params.StatusCallbackEvent) - } - if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) - } - if params != nil && params.Supervisor != nil { - data.Set("Supervisor", *params.Supervisor) - } - if params != nil && params.SupervisorMode != nil { - data.Set("SupervisorMode", *params.SupervisorMode) - } - if params != nil && params.Timeout != nil { - data.Set("Timeout", string(*params.Timeout)) - } - if params != nil && params.To != nil { - data.Set("To", *params.To) - } - if params != nil && params.WaitMethod != nil { - data.Set("WaitMethod", *params.WaitMethod) - } - if params != nil && params.WaitUrl != nil { - data.Set("WaitUrl", *params.WaitUrl) - } - if params != nil && params.WorkerActivitySid != nil { - data.Set("WorkerActivitySid", *params.WorkerActivitySid) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &TaskrouterV1WorkspaceTaskTaskReservation{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Workspaces/{WorkspaceSid}/Tasks/{TaskSid}/Reservations/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Beep != nil { + data.Set("Beep", *params.Beep) + } + if params != nil && params.BeepOnCustomerEntrance != nil { + data.Set("BeepOnCustomerEntrance", string(*params.BeepOnCustomerEntrance)) + } + if params != nil && params.CallAccept != nil { + data.Set("CallAccept", string(*params.CallAccept)) + } + if params != nil && params.CallFrom != nil { + data.Set("CallFrom", *params.CallFrom) + } + if params != nil && params.CallRecord != nil { + data.Set("CallRecord", *params.CallRecord) + } + if params != nil && params.CallStatusCallbackUrl != nil { + data.Set("CallStatusCallbackUrl", *params.CallStatusCallbackUrl) + } + if params != nil && params.CallTimeout != nil { + data.Set("CallTimeout", string(*params.CallTimeout)) + } + if params != nil && params.CallTo != nil { + data.Set("CallTo", *params.CallTo) + } + if params != nil && params.CallUrl != nil { + data.Set("CallUrl", *params.CallUrl) + } + if params != nil && params.ConferenceRecord != nil { + data.Set("ConferenceRecord", *params.ConferenceRecord) + } + if params != nil && params.ConferenceRecordingStatusCallback != nil { + data.Set("ConferenceRecordingStatusCallback", *params.ConferenceRecordingStatusCallback) + } + if params != nil && params.ConferenceRecordingStatusCallbackMethod != nil { + data.Set("ConferenceRecordingStatusCallbackMethod", *params.ConferenceRecordingStatusCallbackMethod) + } + if params != nil && params.ConferenceStatusCallback != nil { + data.Set("ConferenceStatusCallback", *params.ConferenceStatusCallback) + } + if params != nil && params.ConferenceStatusCallbackEvent != nil { + data.Set("ConferenceStatusCallbackEvent", *params.ConferenceStatusCallbackEvent) + } + if params != nil && params.ConferenceStatusCallbackMethod != nil { + data.Set("ConferenceStatusCallbackMethod", *params.ConferenceStatusCallbackMethod) + } + if params != nil && params.ConferenceTrim != nil { + data.Set("ConferenceTrim", *params.ConferenceTrim) + } + if params != nil && params.DequeueFrom != nil { + data.Set("DequeueFrom", *params.DequeueFrom) + } + if params != nil && params.DequeuePostWorkActivitySid != nil { + data.Set("DequeuePostWorkActivitySid", *params.DequeuePostWorkActivitySid) + } + if params != nil && params.DequeueRecord != nil { + data.Set("DequeueRecord", *params.DequeueRecord) + } + if params != nil && params.DequeueStatusCallbackEvent != nil { + data.Set("DequeueStatusCallbackEvent", *params.DequeueStatusCallbackEvent) + } + if params != nil && params.DequeueStatusCallbackUrl != nil { + data.Set("DequeueStatusCallbackUrl", *params.DequeueStatusCallbackUrl) + } + if params != nil && params.DequeueTimeout != nil { + data.Set("DequeueTimeout", string(*params.DequeueTimeout)) + } + if params != nil && params.DequeueTo != nil { + data.Set("DequeueTo", *params.DequeueTo) + } + if params != nil && params.EarlyMedia != nil { + data.Set("EarlyMedia", string(*params.EarlyMedia)) + } + if params != nil && params.EndConferenceOnCustomerExit != nil { + data.Set("EndConferenceOnCustomerExit", string(*params.EndConferenceOnCustomerExit)) + } + if params != nil && params.EndConferenceOnExit != nil { + data.Set("EndConferenceOnExit", string(*params.EndConferenceOnExit)) + } + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.Instruction != nil { + data.Set("Instruction", *params.Instruction) + } + if params != nil && params.MaxParticipants != nil { + data.Set("MaxParticipants", string(*params.MaxParticipants)) + } + if params != nil && params.Muted != nil { + data.Set("Muted", string(*params.Muted)) + } + if params != nil && params.PostWorkActivitySid != nil { + data.Set("PostWorkActivitySid", *params.PostWorkActivitySid) + } + if params != nil && params.Record != nil { + data.Set("Record", string(*params.Record)) + } + if params != nil && params.RecordingChannels != nil { + data.Set("RecordingChannels", *params.RecordingChannels) + } + if params != nil && params.RecordingStatusCallback != nil { + data.Set("RecordingStatusCallback", *params.RecordingStatusCallback) + } + if params != nil && params.RecordingStatusCallbackMethod != nil { + data.Set("RecordingStatusCallbackMethod", *params.RecordingStatusCallbackMethod) + } + if params != nil && params.RedirectAccept != nil { + data.Set("RedirectAccept", string(*params.RedirectAccept)) + } + if params != nil && params.RedirectCallSid != nil { + data.Set("RedirectCallSid", *params.RedirectCallSid) + } + if params != nil && params.RedirectUrl != nil { + data.Set("RedirectUrl", *params.RedirectUrl) + } + if params != nil && params.Region != nil { + data.Set("Region", *params.Region) + } + if params != nil && params.ReservationStatus != nil { + data.Set("ReservationStatus", *params.ReservationStatus) + } + if params != nil && params.SipAuthPassword != nil { + data.Set("SipAuthPassword", *params.SipAuthPassword) + } + if params != nil && params.SipAuthUsername != nil { + data.Set("SipAuthUsername", *params.SipAuthUsername) + } + if params != nil && params.StartConferenceOnEnter != nil { + data.Set("StartConferenceOnEnter", string(*params.StartConferenceOnEnter)) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StatusCallbackEvent != nil { + data.Set("StatusCallbackEvent", *params.StatusCallbackEvent) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.Supervisor != nil { + data.Set("Supervisor", *params.Supervisor) + } + if params != nil && params.SupervisorMode != nil { + data.Set("SupervisorMode", *params.SupervisorMode) + } + if params != nil && params.Timeout != nil { + data.Set("Timeout", string(*params.Timeout)) + } + if params != nil && params.To != nil { + data.Set("To", *params.To) + } + if params != nil && params.WaitMethod != nil { + data.Set("WaitMethod", *params.WaitMethod) + } + if params != nil && params.WaitUrl != nil { + data.Set("WaitUrl", *params.WaitUrl) + } + if params != nil && params.WorkerActivitySid != nil { + data.Set("WorkerActivitySid", *params.WorkerActivitySid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceTaskTaskReservation{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateWorkerParams Optional parameters for the method 'UpdateWorker' type UpdateWorkerParams struct { - ActivitySid *string `json:"ActivitySid,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - RejectPendingReservations *bool `json:"RejectPendingReservations,omitempty"` + ActivitySid *string `json:"ActivitySid,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + RejectPendingReservations *bool `json:"RejectPendingReservations,omitempty"` } /* @@ -2818,45 +2815,45 @@ UpdateWorker Method for UpdateWorker @return TaskrouterV1WorkspaceWorker */ func (c *DefaultApiService) UpdateWorker(workspaceSid string, sid string, params *UpdateWorkerParams) (*TaskrouterV1WorkspaceWorker, error) { - path := "/v1/Workspaces/{WorkspaceSid}/Workers/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/Workers/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.ActivitySid != nil { - data.Set("ActivitySid", *params.ActivitySid) - } - if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.RejectPendingReservations != nil { - data.Set("RejectPendingReservations", string(*params.RejectPendingReservations)) - } + if params != nil && params.ActivitySid != nil { + data.Set("ActivitySid", *params.ActivitySid) + } + if params != nil && params.Attributes != nil { + data.Set("Attributes", *params.Attributes) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.RejectPendingReservations != nil { + data.Set("RejectPendingReservations", string(*params.RejectPendingReservations)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceWorker{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TaskrouterV1WorkspaceWorker{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateWorkerChannelParams Optional parameters for the method 'UpdateWorkerChannel' type UpdateWorkerChannelParams struct { - Available *bool `json:"Available,omitempty"` - Capacity *int32 `json:"Capacity,omitempty"` + Available *bool `json:"Available,omitempty"` + Capacity *int32 `json:"Capacity,omitempty"` } /* @@ -2870,89 +2867,89 @@ UpdateWorkerChannel Method for UpdateWorkerChannel @return TaskrouterV1WorkspaceWorkerWorkerChannel */ func (c *DefaultApiService) UpdateWorkerChannel(workspaceSid string, workerSid string, sid string, params *UpdateWorkerChannelParams) (*TaskrouterV1WorkspaceWorkerWorkerChannel, error) { - path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Channels/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"WorkerSid"+"}", workerSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Channels/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkerSid"+"}", workerSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Available != nil { - data.Set("Available", string(*params.Available)) - } - if params != nil && params.Capacity != nil { - data.Set("Capacity", string(*params.Capacity)) - } + if params != nil && params.Available != nil { + data.Set("Available", string(*params.Available)) + } + if params != nil && params.Capacity != nil { + data.Set("Capacity", string(*params.Capacity)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceWorkerWorkerChannel{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TaskrouterV1WorkspaceWorkerWorkerChannel{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateWorkerReservationParams Optional parameters for the method 'UpdateWorkerReservation' type UpdateWorkerReservationParams struct { - Beep *string `json:"Beep,omitempty"` - BeepOnCustomerEntrance *bool `json:"BeepOnCustomerEntrance,omitempty"` - CallAccept *bool `json:"CallAccept,omitempty"` - CallFrom *string `json:"CallFrom,omitempty"` - CallRecord *string `json:"CallRecord,omitempty"` - CallStatusCallbackUrl *string `json:"CallStatusCallbackUrl,omitempty"` - CallTimeout *int32 `json:"CallTimeout,omitempty"` - CallTo *string `json:"CallTo,omitempty"` - CallUrl *string `json:"CallUrl,omitempty"` - ConferenceRecord *string `json:"ConferenceRecord,omitempty"` - ConferenceRecordingStatusCallback *string `json:"ConferenceRecordingStatusCallback,omitempty"` - ConferenceRecordingStatusCallbackMethod *string `json:"ConferenceRecordingStatusCallbackMethod,omitempty"` - ConferenceStatusCallback *string `json:"ConferenceStatusCallback,omitempty"` - ConferenceStatusCallbackEvent *[]string `json:"ConferenceStatusCallbackEvent,omitempty"` - ConferenceStatusCallbackMethod *string `json:"ConferenceStatusCallbackMethod,omitempty"` - ConferenceTrim *string `json:"ConferenceTrim,omitempty"` - DequeueFrom *string `json:"DequeueFrom,omitempty"` - DequeuePostWorkActivitySid *string `json:"DequeuePostWorkActivitySid,omitempty"` - DequeueRecord *string `json:"DequeueRecord,omitempty"` - DequeueStatusCallbackEvent *[]string `json:"DequeueStatusCallbackEvent,omitempty"` - DequeueStatusCallbackUrl *string `json:"DequeueStatusCallbackUrl,omitempty"` - DequeueTimeout *int32 `json:"DequeueTimeout,omitempty"` - DequeueTo *string `json:"DequeueTo,omitempty"` - EarlyMedia *bool `json:"EarlyMedia,omitempty"` - EndConferenceOnCustomerExit *bool `json:"EndConferenceOnCustomerExit,omitempty"` - EndConferenceOnExit *bool `json:"EndConferenceOnExit,omitempty"` - From *string `json:"From,omitempty"` - Instruction *string `json:"Instruction,omitempty"` - MaxParticipants *int32 `json:"MaxParticipants,omitempty"` - Muted *bool `json:"Muted,omitempty"` - PostWorkActivitySid *string `json:"PostWorkActivitySid,omitempty"` - Record *bool `json:"Record,omitempty"` - RecordingChannels *string `json:"RecordingChannels,omitempty"` - RecordingStatusCallback *string `json:"RecordingStatusCallback,omitempty"` - RecordingStatusCallbackMethod *string `json:"RecordingStatusCallbackMethod,omitempty"` - RedirectAccept *bool `json:"RedirectAccept,omitempty"` - RedirectCallSid *string `json:"RedirectCallSid,omitempty"` - RedirectUrl *string `json:"RedirectUrl,omitempty"` - Region *string `json:"Region,omitempty"` - ReservationStatus *string `json:"ReservationStatus,omitempty"` - SipAuthPassword *string `json:"SipAuthPassword,omitempty"` - SipAuthUsername *string `json:"SipAuthUsername,omitempty"` - StartConferenceOnEnter *bool `json:"StartConferenceOnEnter,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StatusCallbackEvent *[]string `json:"StatusCallbackEvent,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - Timeout *int32 `json:"Timeout,omitempty"` - To *string `json:"To,omitempty"` - WaitMethod *string `json:"WaitMethod,omitempty"` - WaitUrl *string `json:"WaitUrl,omitempty"` - WorkerActivitySid *string `json:"WorkerActivitySid,omitempty"` + Beep *string `json:"Beep,omitempty"` + BeepOnCustomerEntrance *bool `json:"BeepOnCustomerEntrance,omitempty"` + CallAccept *bool `json:"CallAccept,omitempty"` + CallFrom *string `json:"CallFrom,omitempty"` + CallRecord *string `json:"CallRecord,omitempty"` + CallStatusCallbackUrl *string `json:"CallStatusCallbackUrl,omitempty"` + CallTimeout *int32 `json:"CallTimeout,omitempty"` + CallTo *string `json:"CallTo,omitempty"` + CallUrl *string `json:"CallUrl,omitempty"` + ConferenceRecord *string `json:"ConferenceRecord,omitempty"` + ConferenceRecordingStatusCallback *string `json:"ConferenceRecordingStatusCallback,omitempty"` + ConferenceRecordingStatusCallbackMethod *string `json:"ConferenceRecordingStatusCallbackMethod,omitempty"` + ConferenceStatusCallback *string `json:"ConferenceStatusCallback,omitempty"` + ConferenceStatusCallbackEvent *[]string `json:"ConferenceStatusCallbackEvent,omitempty"` + ConferenceStatusCallbackMethod *string `json:"ConferenceStatusCallbackMethod,omitempty"` + ConferenceTrim *string `json:"ConferenceTrim,omitempty"` + DequeueFrom *string `json:"DequeueFrom,omitempty"` + DequeuePostWorkActivitySid *string `json:"DequeuePostWorkActivitySid,omitempty"` + DequeueRecord *string `json:"DequeueRecord,omitempty"` + DequeueStatusCallbackEvent *[]string `json:"DequeueStatusCallbackEvent,omitempty"` + DequeueStatusCallbackUrl *string `json:"DequeueStatusCallbackUrl,omitempty"` + DequeueTimeout *int32 `json:"DequeueTimeout,omitempty"` + DequeueTo *string `json:"DequeueTo,omitempty"` + EarlyMedia *bool `json:"EarlyMedia,omitempty"` + EndConferenceOnCustomerExit *bool `json:"EndConferenceOnCustomerExit,omitempty"` + EndConferenceOnExit *bool `json:"EndConferenceOnExit,omitempty"` + From *string `json:"From,omitempty"` + Instruction *string `json:"Instruction,omitempty"` + MaxParticipants *int32 `json:"MaxParticipants,omitempty"` + Muted *bool `json:"Muted,omitempty"` + PostWorkActivitySid *string `json:"PostWorkActivitySid,omitempty"` + Record *bool `json:"Record,omitempty"` + RecordingChannels *string `json:"RecordingChannels,omitempty"` + RecordingStatusCallback *string `json:"RecordingStatusCallback,omitempty"` + RecordingStatusCallbackMethod *string `json:"RecordingStatusCallbackMethod,omitempty"` + RedirectAccept *bool `json:"RedirectAccept,omitempty"` + RedirectCallSid *string `json:"RedirectCallSid,omitempty"` + RedirectUrl *string `json:"RedirectUrl,omitempty"` + Region *string `json:"Region,omitempty"` + ReservationStatus *string `json:"ReservationStatus,omitempty"` + SipAuthPassword *string `json:"SipAuthPassword,omitempty"` + SipAuthUsername *string `json:"SipAuthUsername,omitempty"` + StartConferenceOnEnter *bool `json:"StartConferenceOnEnter,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackEvent *[]string `json:"StatusCallbackEvent,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + Timeout *int32 `json:"Timeout,omitempty"` + To *string `json:"To,omitempty"` + WaitMethod *string `json:"WaitMethod,omitempty"` + WaitUrl *string `json:"WaitUrl,omitempty"` + WorkerActivitySid *string `json:"WorkerActivitySid,omitempty"` } /* @@ -3015,191 +3012,191 @@ UpdateWorkerReservation Method for UpdateWorkerReservation @return TaskrouterV1WorkspaceWorkerWorkerReservation */ func (c *DefaultApiService) UpdateWorkerReservation(workspaceSid string, workerSid string, sid string, params *UpdateWorkerReservationParams) (*TaskrouterV1WorkspaceWorkerWorkerReservation, error) { - path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Reservations/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"WorkerSid"+"}", workerSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Beep != nil { - data.Set("Beep", *params.Beep) - } - if params != nil && params.BeepOnCustomerEntrance != nil { - data.Set("BeepOnCustomerEntrance", string(*params.BeepOnCustomerEntrance)) - } - if params != nil && params.CallAccept != nil { - data.Set("CallAccept", string(*params.CallAccept)) - } - if params != nil && params.CallFrom != nil { - data.Set("CallFrom", *params.CallFrom) - } - if params != nil && params.CallRecord != nil { - data.Set("CallRecord", *params.CallRecord) - } - if params != nil && params.CallStatusCallbackUrl != nil { - data.Set("CallStatusCallbackUrl", *params.CallStatusCallbackUrl) - } - if params != nil && params.CallTimeout != nil { - data.Set("CallTimeout", string(*params.CallTimeout)) - } - if params != nil && params.CallTo != nil { - data.Set("CallTo", *params.CallTo) - } - if params != nil && params.CallUrl != nil { - data.Set("CallUrl", *params.CallUrl) - } - if params != nil && params.ConferenceRecord != nil { - data.Set("ConferenceRecord", *params.ConferenceRecord) - } - if params != nil && params.ConferenceRecordingStatusCallback != nil { - data.Set("ConferenceRecordingStatusCallback", *params.ConferenceRecordingStatusCallback) - } - if params != nil && params.ConferenceRecordingStatusCallbackMethod != nil { - data.Set("ConferenceRecordingStatusCallbackMethod", *params.ConferenceRecordingStatusCallbackMethod) - } - if params != nil && params.ConferenceStatusCallback != nil { - data.Set("ConferenceStatusCallback", *params.ConferenceStatusCallback) - } - if params != nil && params.ConferenceStatusCallbackEvent != nil { - data.Set("ConferenceStatusCallbackEvent", *params.ConferenceStatusCallbackEvent) - } - if params != nil && params.ConferenceStatusCallbackMethod != nil { - data.Set("ConferenceStatusCallbackMethod", *params.ConferenceStatusCallbackMethod) - } - if params != nil && params.ConferenceTrim != nil { - data.Set("ConferenceTrim", *params.ConferenceTrim) - } - if params != nil && params.DequeueFrom != nil { - data.Set("DequeueFrom", *params.DequeueFrom) - } - if params != nil && params.DequeuePostWorkActivitySid != nil { - data.Set("DequeuePostWorkActivitySid", *params.DequeuePostWorkActivitySid) - } - if params != nil && params.DequeueRecord != nil { - data.Set("DequeueRecord", *params.DequeueRecord) - } - if params != nil && params.DequeueStatusCallbackEvent != nil { - data.Set("DequeueStatusCallbackEvent", *params.DequeueStatusCallbackEvent) - } - if params != nil && params.DequeueStatusCallbackUrl != nil { - data.Set("DequeueStatusCallbackUrl", *params.DequeueStatusCallbackUrl) - } - if params != nil && params.DequeueTimeout != nil { - data.Set("DequeueTimeout", string(*params.DequeueTimeout)) - } - if params != nil && params.DequeueTo != nil { - data.Set("DequeueTo", *params.DequeueTo) - } - if params != nil && params.EarlyMedia != nil { - data.Set("EarlyMedia", string(*params.EarlyMedia)) - } - if params != nil && params.EndConferenceOnCustomerExit != nil { - data.Set("EndConferenceOnCustomerExit", string(*params.EndConferenceOnCustomerExit)) - } - if params != nil && params.EndConferenceOnExit != nil { - data.Set("EndConferenceOnExit", string(*params.EndConferenceOnExit)) - } - if params != nil && params.From != nil { - data.Set("From", *params.From) - } - if params != nil && params.Instruction != nil { - data.Set("Instruction", *params.Instruction) - } - if params != nil && params.MaxParticipants != nil { - data.Set("MaxParticipants", string(*params.MaxParticipants)) - } - if params != nil && params.Muted != nil { - data.Set("Muted", string(*params.Muted)) - } - if params != nil && params.PostWorkActivitySid != nil { - data.Set("PostWorkActivitySid", *params.PostWorkActivitySid) - } - if params != nil && params.Record != nil { - data.Set("Record", string(*params.Record)) - } - if params != nil && params.RecordingChannels != nil { - data.Set("RecordingChannels", *params.RecordingChannels) - } - if params != nil && params.RecordingStatusCallback != nil { - data.Set("RecordingStatusCallback", *params.RecordingStatusCallback) - } - if params != nil && params.RecordingStatusCallbackMethod != nil { - data.Set("RecordingStatusCallbackMethod", *params.RecordingStatusCallbackMethod) - } - if params != nil && params.RedirectAccept != nil { - data.Set("RedirectAccept", string(*params.RedirectAccept)) - } - if params != nil && params.RedirectCallSid != nil { - data.Set("RedirectCallSid", *params.RedirectCallSid) - } - if params != nil && params.RedirectUrl != nil { - data.Set("RedirectUrl", *params.RedirectUrl) - } - if params != nil && params.Region != nil { - data.Set("Region", *params.Region) - } - if params != nil && params.ReservationStatus != nil { - data.Set("ReservationStatus", *params.ReservationStatus) - } - if params != nil && params.SipAuthPassword != nil { - data.Set("SipAuthPassword", *params.SipAuthPassword) - } - if params != nil && params.SipAuthUsername != nil { - data.Set("SipAuthUsername", *params.SipAuthUsername) - } - if params != nil && params.StartConferenceOnEnter != nil { - data.Set("StartConferenceOnEnter", string(*params.StartConferenceOnEnter)) - } - if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) - } - if params != nil && params.StatusCallbackEvent != nil { - data.Set("StatusCallbackEvent", *params.StatusCallbackEvent) - } - if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) - } - if params != nil && params.Timeout != nil { - data.Set("Timeout", string(*params.Timeout)) - } - if params != nil && params.To != nil { - data.Set("To", *params.To) - } - if params != nil && params.WaitMethod != nil { - data.Set("WaitMethod", *params.WaitMethod) - } - if params != nil && params.WaitUrl != nil { - data.Set("WaitUrl", *params.WaitUrl) - } - if params != nil && params.WorkerActivitySid != nil { - data.Set("WorkerActivitySid", *params.WorkerActivitySid) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &TaskrouterV1WorkspaceWorkerWorkerReservation{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Reservations/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkerSid"+"}", workerSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Beep != nil { + data.Set("Beep", *params.Beep) + } + if params != nil && params.BeepOnCustomerEntrance != nil { + data.Set("BeepOnCustomerEntrance", string(*params.BeepOnCustomerEntrance)) + } + if params != nil && params.CallAccept != nil { + data.Set("CallAccept", string(*params.CallAccept)) + } + if params != nil && params.CallFrom != nil { + data.Set("CallFrom", *params.CallFrom) + } + if params != nil && params.CallRecord != nil { + data.Set("CallRecord", *params.CallRecord) + } + if params != nil && params.CallStatusCallbackUrl != nil { + data.Set("CallStatusCallbackUrl", *params.CallStatusCallbackUrl) + } + if params != nil && params.CallTimeout != nil { + data.Set("CallTimeout", string(*params.CallTimeout)) + } + if params != nil && params.CallTo != nil { + data.Set("CallTo", *params.CallTo) + } + if params != nil && params.CallUrl != nil { + data.Set("CallUrl", *params.CallUrl) + } + if params != nil && params.ConferenceRecord != nil { + data.Set("ConferenceRecord", *params.ConferenceRecord) + } + if params != nil && params.ConferenceRecordingStatusCallback != nil { + data.Set("ConferenceRecordingStatusCallback", *params.ConferenceRecordingStatusCallback) + } + if params != nil && params.ConferenceRecordingStatusCallbackMethod != nil { + data.Set("ConferenceRecordingStatusCallbackMethod", *params.ConferenceRecordingStatusCallbackMethod) + } + if params != nil && params.ConferenceStatusCallback != nil { + data.Set("ConferenceStatusCallback", *params.ConferenceStatusCallback) + } + if params != nil && params.ConferenceStatusCallbackEvent != nil { + data.Set("ConferenceStatusCallbackEvent", *params.ConferenceStatusCallbackEvent) + } + if params != nil && params.ConferenceStatusCallbackMethod != nil { + data.Set("ConferenceStatusCallbackMethod", *params.ConferenceStatusCallbackMethod) + } + if params != nil && params.ConferenceTrim != nil { + data.Set("ConferenceTrim", *params.ConferenceTrim) + } + if params != nil && params.DequeueFrom != nil { + data.Set("DequeueFrom", *params.DequeueFrom) + } + if params != nil && params.DequeuePostWorkActivitySid != nil { + data.Set("DequeuePostWorkActivitySid", *params.DequeuePostWorkActivitySid) + } + if params != nil && params.DequeueRecord != nil { + data.Set("DequeueRecord", *params.DequeueRecord) + } + if params != nil && params.DequeueStatusCallbackEvent != nil { + data.Set("DequeueStatusCallbackEvent", *params.DequeueStatusCallbackEvent) + } + if params != nil && params.DequeueStatusCallbackUrl != nil { + data.Set("DequeueStatusCallbackUrl", *params.DequeueStatusCallbackUrl) + } + if params != nil && params.DequeueTimeout != nil { + data.Set("DequeueTimeout", string(*params.DequeueTimeout)) + } + if params != nil && params.DequeueTo != nil { + data.Set("DequeueTo", *params.DequeueTo) + } + if params != nil && params.EarlyMedia != nil { + data.Set("EarlyMedia", string(*params.EarlyMedia)) + } + if params != nil && params.EndConferenceOnCustomerExit != nil { + data.Set("EndConferenceOnCustomerExit", string(*params.EndConferenceOnCustomerExit)) + } + if params != nil && params.EndConferenceOnExit != nil { + data.Set("EndConferenceOnExit", string(*params.EndConferenceOnExit)) + } + if params != nil && params.From != nil { + data.Set("From", *params.From) + } + if params != nil && params.Instruction != nil { + data.Set("Instruction", *params.Instruction) + } + if params != nil && params.MaxParticipants != nil { + data.Set("MaxParticipants", string(*params.MaxParticipants)) + } + if params != nil && params.Muted != nil { + data.Set("Muted", string(*params.Muted)) + } + if params != nil && params.PostWorkActivitySid != nil { + data.Set("PostWorkActivitySid", *params.PostWorkActivitySid) + } + if params != nil && params.Record != nil { + data.Set("Record", string(*params.Record)) + } + if params != nil && params.RecordingChannels != nil { + data.Set("RecordingChannels", *params.RecordingChannels) + } + if params != nil && params.RecordingStatusCallback != nil { + data.Set("RecordingStatusCallback", *params.RecordingStatusCallback) + } + if params != nil && params.RecordingStatusCallbackMethod != nil { + data.Set("RecordingStatusCallbackMethod", *params.RecordingStatusCallbackMethod) + } + if params != nil && params.RedirectAccept != nil { + data.Set("RedirectAccept", string(*params.RedirectAccept)) + } + if params != nil && params.RedirectCallSid != nil { + data.Set("RedirectCallSid", *params.RedirectCallSid) + } + if params != nil && params.RedirectUrl != nil { + data.Set("RedirectUrl", *params.RedirectUrl) + } + if params != nil && params.Region != nil { + data.Set("Region", *params.Region) + } + if params != nil && params.ReservationStatus != nil { + data.Set("ReservationStatus", *params.ReservationStatus) + } + if params != nil && params.SipAuthPassword != nil { + data.Set("SipAuthPassword", *params.SipAuthPassword) + } + if params != nil && params.SipAuthUsername != nil { + data.Set("SipAuthUsername", *params.SipAuthUsername) + } + if params != nil && params.StartConferenceOnEnter != nil { + data.Set("StartConferenceOnEnter", string(*params.StartConferenceOnEnter)) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StatusCallbackEvent != nil { + data.Set("StatusCallbackEvent", *params.StatusCallbackEvent) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.Timeout != nil { + data.Set("Timeout", string(*params.Timeout)) + } + if params != nil && params.To != nil { + data.Set("To", *params.To) + } + if params != nil && params.WaitMethod != nil { + data.Set("WaitMethod", *params.WaitMethod) + } + if params != nil && params.WaitUrl != nil { + data.Set("WaitUrl", *params.WaitUrl) + } + if params != nil && params.WorkerActivitySid != nil { + data.Set("WorkerActivitySid", *params.WorkerActivitySid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceWorkerWorkerReservation{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateWorkflowParams Optional parameters for the method 'UpdateWorkflow' type UpdateWorkflowParams struct { - AssignmentCallbackUrl *string `json:"AssignmentCallbackUrl,omitempty"` - Configuration *string `json:"Configuration,omitempty"` - FallbackAssignmentCallbackUrl *string `json:"FallbackAssignmentCallbackUrl,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - ReEvaluateTasks *string `json:"ReEvaluateTasks,omitempty"` - TaskReservationTimeout *int32 `json:"TaskReservationTimeout,omitempty"` + AssignmentCallbackUrl *string `json:"AssignmentCallbackUrl,omitempty"` + Configuration *string `json:"Configuration,omitempty"` + FallbackAssignmentCallbackUrl *string `json:"FallbackAssignmentCallbackUrl,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + ReEvaluateTasks *string `json:"ReEvaluateTasks,omitempty"` + TaskReservationTimeout *int32 `json:"TaskReservationTimeout,omitempty"` } /* @@ -3216,56 +3213,56 @@ UpdateWorkflow Method for UpdateWorkflow @return TaskrouterV1WorkspaceWorkflow */ func (c *DefaultApiService) UpdateWorkflow(workspaceSid string, sid string, params *UpdateWorkflowParams) (*TaskrouterV1WorkspaceWorkflow, error) { - path := "/v1/Workspaces/{WorkspaceSid}/Workflows/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.AssignmentCallbackUrl != nil { - data.Set("AssignmentCallbackUrl", *params.AssignmentCallbackUrl) - } - if params != nil && params.Configuration != nil { - data.Set("Configuration", *params.Configuration) - } - if params != nil && params.FallbackAssignmentCallbackUrl != nil { - data.Set("FallbackAssignmentCallbackUrl", *params.FallbackAssignmentCallbackUrl) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.ReEvaluateTasks != nil { - data.Set("ReEvaluateTasks", *params.ReEvaluateTasks) - } - if params != nil && params.TaskReservationTimeout != nil { - data.Set("TaskReservationTimeout", string(*params.TaskReservationTimeout)) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &TaskrouterV1WorkspaceWorkflow{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Workspaces/{WorkspaceSid}/Workflows/{Sid}" + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AssignmentCallbackUrl != nil { + data.Set("AssignmentCallbackUrl", *params.AssignmentCallbackUrl) + } + if params != nil && params.Configuration != nil { + data.Set("Configuration", *params.Configuration) + } + if params != nil && params.FallbackAssignmentCallbackUrl != nil { + data.Set("FallbackAssignmentCallbackUrl", *params.FallbackAssignmentCallbackUrl) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.ReEvaluateTasks != nil { + data.Set("ReEvaluateTasks", *params.ReEvaluateTasks) + } + if params != nil && params.TaskReservationTimeout != nil { + data.Set("TaskReservationTimeout", string(*params.TaskReservationTimeout)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1WorkspaceWorkflow{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateWorkspaceParams Optional parameters for the method 'UpdateWorkspace' type UpdateWorkspaceParams struct { - DefaultActivitySid *string `json:"DefaultActivitySid,omitempty"` - EventCallbackUrl *string `json:"EventCallbackUrl,omitempty"` - EventsFilter *string `json:"EventsFilter,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - MultiTaskEnabled *bool `json:"MultiTaskEnabled,omitempty"` - PrioritizeQueueOrder *string `json:"PrioritizeQueueOrder,omitempty"` - TimeoutActivitySid *string `json:"TimeoutActivitySid,omitempty"` + DefaultActivitySid *string `json:"DefaultActivitySid,omitempty"` + EventCallbackUrl *string `json:"EventCallbackUrl,omitempty"` + EventsFilter *string `json:"EventsFilter,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + MultiTaskEnabled *bool `json:"MultiTaskEnabled,omitempty"` + PrioritizeQueueOrder *string `json:"PrioritizeQueueOrder,omitempty"` + TimeoutActivitySid *string `json:"TimeoutActivitySid,omitempty"` } /* @@ -3282,46 +3279,46 @@ UpdateWorkspace Method for UpdateWorkspace @return TaskrouterV1Workspace */ func (c *DefaultApiService) UpdateWorkspace(sid string, params *UpdateWorkspaceParams) (*TaskrouterV1Workspace, error) { - path := "/v1/Workspaces/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.DefaultActivitySid != nil { - data.Set("DefaultActivitySid", *params.DefaultActivitySid) - } - if params != nil && params.EventCallbackUrl != nil { - data.Set("EventCallbackUrl", *params.EventCallbackUrl) - } - if params != nil && params.EventsFilter != nil { - data.Set("EventsFilter", *params.EventsFilter) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.MultiTaskEnabled != nil { - data.Set("MultiTaskEnabled", string(*params.MultiTaskEnabled)) - } - if params != nil && params.PrioritizeQueueOrder != nil { - data.Set("PrioritizeQueueOrder", *params.PrioritizeQueueOrder) - } - if params != nil && params.TimeoutActivitySid != nil { - data.Set("TimeoutActivitySid", *params.TimeoutActivitySid) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &TaskrouterV1Workspace{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Workspaces/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.DefaultActivitySid != nil { + data.Set("DefaultActivitySid", *params.DefaultActivitySid) + } + if params != nil && params.EventCallbackUrl != nil { + data.Set("EventCallbackUrl", *params.EventCallbackUrl) + } + if params != nil && params.EventsFilter != nil { + data.Set("EventsFilter", *params.EventsFilter) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.MultiTaskEnabled != nil { + data.Set("MultiTaskEnabled", string(*params.MultiTaskEnabled)) + } + if params != nil && params.PrioritizeQueueOrder != nil { + data.Set("PrioritizeQueueOrder", *params.PrioritizeQueueOrder) + } + if params != nil && params.TimeoutActivitySid != nil { + data.Set("TimeoutActivitySid", *params.TimeoutActivitySid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TaskrouterV1Workspace{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } diff --git a/rest/taskrouter/v1/response.go b/rest/taskrouter/v1/response.go index 14d13b3ea..a6a80b614 100644 --- a/rest/taskrouter/v1/response.go +++ b/rest/taskrouter/v1/response.go @@ -32,16 +32,14 @@ type APIResponse struct { Payload []byte `json:"-"` } -// Response returns a new APIResponse object. -func Response(r *http.Response) *APIResponse { - +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { response := &APIResponse{Response: r} return response } -// ResponseWithError returns a new APIResponse object with the provided error message. -func ResponseWithError(errorMessage string) *APIResponse { - +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { response := &APIResponse{Message: errorMessage} return response } diff --git a/rest/trunking/v1/api_default.go b/rest/trunking/v1/api_default.go index a01409550..b739ead27 100644 --- a/rest/trunking/v1/api_default.go +++ b/rest/trunking/v1/api_default.go @@ -13,26 +13,24 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type DefaultApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewDefaultApiService(client *twilio.Client) *DefaultApiService { - return &DefaultApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &DefaultApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } // CreateCredentialListParams Optional parameters for the method 'CreateCredentialList' type CreateCredentialListParams struct { - CredentialListSid *string `json:"CredentialListSid,omitempty"` + CredentialListSid *string `json:"CredentialListSid,omitempty"` } /* @@ -43,34 +41,34 @@ CreateCredentialList Method for CreateCredentialList @return TrunkingV1TrunkCredentialList */ func (c *DefaultApiService) CreateCredentialList(trunkSid string, params *CreateCredentialListParams) (*TrunkingV1TrunkCredentialList, error) { - path := "/v1/Trunks/{TrunkSid}/CredentialLists" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path := "/v1/Trunks/{TrunkSid}/CredentialLists" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.CredentialListSid != nil { - data.Set("CredentialListSid", *params.CredentialListSid) - } + if params != nil && params.CredentialListSid != nil { + data.Set("CredentialListSid", *params.CredentialListSid) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TrunkingV1TrunkCredentialList{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TrunkingV1TrunkCredentialList{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateIpAccessControlListParams Optional parameters for the method 'CreateIpAccessControlList' type CreateIpAccessControlListParams struct { - IpAccessControlListSid *string `json:"IpAccessControlListSid,omitempty"` + IpAccessControlListSid *string `json:"IpAccessControlListSid,omitempty"` } /* @@ -82,38 +80,38 @@ Associate an IP Access Control List with a Trunk @return TrunkingV1TrunkIpAccessControlList */ func (c *DefaultApiService) CreateIpAccessControlList(trunkSid string, params *CreateIpAccessControlListParams) (*TrunkingV1TrunkIpAccessControlList, error) { - path := "/v1/Trunks/{TrunkSid}/IpAccessControlLists" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path := "/v1/Trunks/{TrunkSid}/IpAccessControlLists" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.IpAccessControlListSid != nil { - data.Set("IpAccessControlListSid", *params.IpAccessControlListSid) - } + if params != nil && params.IpAccessControlListSid != nil { + data.Set("IpAccessControlListSid", *params.IpAccessControlListSid) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TrunkingV1TrunkIpAccessControlList{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TrunkingV1TrunkIpAccessControlList{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateOriginationUrlParams Optional parameters for the method 'CreateOriginationUrl' type CreateOriginationUrlParams struct { - Enabled *bool `json:"Enabled,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Priority *int32 `json:"Priority,omitempty"` - SipUrl *string `json:"SipUrl,omitempty"` - Weight *int32 `json:"Weight,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Priority *int32 `json:"Priority,omitempty"` + SipUrl *string `json:"SipUrl,omitempty"` + Weight *int32 `json:"Weight,omitempty"` } /* @@ -128,46 +126,46 @@ CreateOriginationUrl Method for CreateOriginationUrl @return TrunkingV1TrunkOriginationUrl */ func (c *DefaultApiService) CreateOriginationUrl(trunkSid string, params *CreateOriginationUrlParams) (*TrunkingV1TrunkOriginationUrl, error) { - path := "/v1/Trunks/{TrunkSid}/OriginationUrls" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Enabled != nil { - data.Set("Enabled", string(*params.Enabled)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Priority != nil { - data.Set("Priority", string(*params.Priority)) - } - if params != nil && params.SipUrl != nil { - data.Set("SipUrl", *params.SipUrl) - } - if params != nil && params.Weight != nil { - data.Set("Weight", string(*params.Weight)) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &TrunkingV1TrunkOriginationUrl{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Trunks/{TrunkSid}/OriginationUrls" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Enabled != nil { + data.Set("Enabled", string(*params.Enabled)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Priority != nil { + data.Set("Priority", string(*params.Priority)) + } + if params != nil && params.SipUrl != nil { + data.Set("SipUrl", *params.SipUrl) + } + if params != nil && params.Weight != nil { + data.Set("Weight", string(*params.Weight)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TrunkingV1TrunkOriginationUrl{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreatePhoneNumberParams Optional parameters for the method 'CreatePhoneNumber' type CreatePhoneNumberParams struct { - PhoneNumberSid *string `json:"PhoneNumberSid,omitempty"` + PhoneNumberSid *string `json:"PhoneNumberSid,omitempty"` } /* @@ -178,40 +176,40 @@ CreatePhoneNumber Method for CreatePhoneNumber @return TrunkingV1TrunkPhoneNumber */ func (c *DefaultApiService) CreatePhoneNumber(trunkSid string, params *CreatePhoneNumberParams) (*TrunkingV1TrunkPhoneNumber, error) { - path := "/v1/Trunks/{TrunkSid}/PhoneNumbers" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path := "/v1/Trunks/{TrunkSid}/PhoneNumbers" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PhoneNumberSid != nil { - data.Set("PhoneNumberSid", *params.PhoneNumberSid) - } + if params != nil && params.PhoneNumberSid != nil { + data.Set("PhoneNumberSid", *params.PhoneNumberSid) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TrunkingV1TrunkPhoneNumber{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TrunkingV1TrunkPhoneNumber{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateTrunkParams Optional parameters for the method 'CreateTrunk' type CreateTrunkParams struct { - CnamLookupEnabled *bool `json:"CnamLookupEnabled,omitempty"` - DisasterRecoveryMethod *string `json:"DisasterRecoveryMethod,omitempty"` - DisasterRecoveryUrl *string `json:"DisasterRecoveryUrl,omitempty"` - DomainName *string `json:"DomainName,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Secure *bool `json:"Secure,omitempty"` - TransferMode *string `json:"TransferMode,omitempty"` + CnamLookupEnabled *bool `json:"CnamLookupEnabled,omitempty"` + DisasterRecoveryMethod *string `json:"DisasterRecoveryMethod,omitempty"` + DisasterRecoveryUrl *string `json:"DisasterRecoveryUrl,omitempty"` + DomainName *string `json:"DomainName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Secure *bool `json:"Secure,omitempty"` + TransferMode *string `json:"TransferMode,omitempty"` } /* @@ -227,47 +225,47 @@ CreateTrunk Method for CreateTrunk @return TrunkingV1Trunk */ func (c *DefaultApiService) CreateTrunk(params *CreateTrunkParams) (*TrunkingV1Trunk, error) { - path := "/v1/Trunks" - - data := url.Values{} - headers := 0 - - if params != nil && params.CnamLookupEnabled != nil { - data.Set("CnamLookupEnabled", string(*params.CnamLookupEnabled)) - } - if params != nil && params.DisasterRecoveryMethod != nil { - data.Set("DisasterRecoveryMethod", *params.DisasterRecoveryMethod) - } - if params != nil && params.DisasterRecoveryUrl != nil { - data.Set("DisasterRecoveryUrl", *params.DisasterRecoveryUrl) - } - if params != nil && params.DomainName != nil { - data.Set("DomainName", *params.DomainName) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Secure != nil { - data.Set("Secure", string(*params.Secure)) - } - if params != nil && params.TransferMode != nil { - data.Set("TransferMode", *params.TransferMode) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &TrunkingV1Trunk{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Trunks" + + data := url.Values{} + headers := 0 + + if params != nil && params.CnamLookupEnabled != nil { + data.Set("CnamLookupEnabled", string(*params.CnamLookupEnabled)) + } + if params != nil && params.DisasterRecoveryMethod != nil { + data.Set("DisasterRecoveryMethod", *params.DisasterRecoveryMethod) + } + if params != nil && params.DisasterRecoveryUrl != nil { + data.Set("DisasterRecoveryUrl", *params.DisasterRecoveryUrl) + } + if params != nil && params.DomainName != nil { + data.Set("DomainName", *params.DomainName) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Secure != nil { + data.Set("Secure", string(*params.Secure)) + } + if params != nil && params.TransferMode != nil { + data.Set("TransferMode", *params.TransferMode) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TrunkingV1Trunk{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } /* @@ -276,23 +274,23 @@ DeleteCredentialList Method for DeleteCredentialList * @param sid The unique string that we created to identify the CredentialList resource to delete. */ func (c *DefaultApiService) DeleteCredentialList(trunkSid string, sid string) (error) { - path := "/v1/Trunks/{TrunkSid}/CredentialLists/{Sid}" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Trunks/{TrunkSid}/CredentialLists/{Sid}" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -302,23 +300,23 @@ Remove an associated IP Access Control List from a Trunk * @param sid The unique string that we created to identify the IpAccessControlList resource to delete. */ func (c *DefaultApiService) DeleteIpAccessControlList(trunkSid string, sid string) (error) { - path := "/v1/Trunks/{TrunkSid}/IpAccessControlLists/{Sid}" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Trunks/{TrunkSid}/IpAccessControlLists/{Sid}" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -327,23 +325,23 @@ DeleteOriginationUrl Method for DeleteOriginationUrl * @param sid The unique string that we created to identify the OriginationUrl resource to delete. */ func (c *DefaultApiService) DeleteOriginationUrl(trunkSid string, sid string) (error) { - path := "/v1/Trunks/{TrunkSid}/OriginationUrls/{Sid}" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Trunks/{TrunkSid}/OriginationUrls/{Sid}" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -352,23 +350,23 @@ DeletePhoneNumber Method for DeletePhoneNumber * @param sid The unique string that we created to identify the PhoneNumber resource to delete. */ func (c *DefaultApiService) DeletePhoneNumber(trunkSid string, sid string) (error) { - path := "/v1/Trunks/{TrunkSid}/PhoneNumbers/{Sid}" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Trunks/{TrunkSid}/PhoneNumbers/{Sid}" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -376,22 +374,22 @@ DeleteTrunk Method for DeleteTrunk * @param sid The unique string that we created to identify the Trunk resource to delete. */ func (c *DefaultApiService) DeleteTrunk(sid string) (error) { - path := "/v1/Trunks/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Trunks/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -401,28 +399,28 @@ FetchCredentialList Method for FetchCredentialList @return TrunkingV1TrunkCredentialList */ func (c *DefaultApiService) FetchCredentialList(trunkSid string, sid string) (*TrunkingV1TrunkCredentialList, error) { - path := "/v1/Trunks/{TrunkSid}/CredentialLists/{Sid}" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Trunks/{TrunkSid}/CredentialLists/{Sid}" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TrunkingV1TrunkCredentialList{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TrunkingV1TrunkCredentialList{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -432,28 +430,28 @@ FetchIpAccessControlList Method for FetchIpAccessControlList @return TrunkingV1TrunkIpAccessControlList */ func (c *DefaultApiService) FetchIpAccessControlList(trunkSid string, sid string) (*TrunkingV1TrunkIpAccessControlList, error) { - path := "/v1/Trunks/{TrunkSid}/IpAccessControlLists/{Sid}" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Trunks/{TrunkSid}/IpAccessControlLists/{Sid}" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TrunkingV1TrunkIpAccessControlList{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TrunkingV1TrunkIpAccessControlList{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -463,28 +461,28 @@ FetchOriginationUrl Method for FetchOriginationUrl @return TrunkingV1TrunkOriginationUrl */ func (c *DefaultApiService) FetchOriginationUrl(trunkSid string, sid string) (*TrunkingV1TrunkOriginationUrl, error) { - path := "/v1/Trunks/{TrunkSid}/OriginationUrls/{Sid}" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Trunks/{TrunkSid}/OriginationUrls/{Sid}" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TrunkingV1TrunkOriginationUrl{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TrunkingV1TrunkOriginationUrl{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -494,28 +492,28 @@ FetchPhoneNumber Method for FetchPhoneNumber @return TrunkingV1TrunkPhoneNumber */ func (c *DefaultApiService) FetchPhoneNumber(trunkSid string, sid string) (*TrunkingV1TrunkPhoneNumber, error) { - path := "/v1/Trunks/{TrunkSid}/PhoneNumbers/{Sid}" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Trunks/{TrunkSid}/PhoneNumbers/{Sid}" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TrunkingV1TrunkPhoneNumber{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TrunkingV1TrunkPhoneNumber{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -524,27 +522,27 @@ FetchRecording Method for FetchRecording @return TrunkingV1TrunkRecording */ func (c *DefaultApiService) FetchRecording(trunkSid string) (*TrunkingV1TrunkRecording, error) { - path := "/v1/Trunks/{TrunkSid}/Recording" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path := "/v1/Trunks/{TrunkSid}/Recording" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TrunkingV1TrunkRecording{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TrunkingV1TrunkRecording{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -553,31 +551,31 @@ FetchTrunk Method for FetchTrunk @return TrunkingV1Trunk */ func (c *DefaultApiService) FetchTrunk(sid string) (*TrunkingV1Trunk, error) { - path := "/v1/Trunks/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Trunks/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TrunkingV1Trunk{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TrunkingV1Trunk{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListCredentialListParams Optional parameters for the method 'ListCredentialList' type ListCredentialListParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -588,34 +586,34 @@ ListCredentialList Method for ListCredentialList @return TrunkingV1TrunkCredentialListReadResponse */ func (c *DefaultApiService) ListCredentialList(trunkSid string, params *ListCredentialListParams) (*TrunkingV1TrunkCredentialListReadResponse, error) { - path := "/v1/Trunks/{TrunkSid}/CredentialLists" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path := "/v1/Trunks/{TrunkSid}/CredentialLists" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TrunkingV1TrunkCredentialListReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TrunkingV1TrunkCredentialListReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListIpAccessControlListParams Optional parameters for the method 'ListIpAccessControlList' type ListIpAccessControlListParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -627,34 +625,34 @@ List all IP Access Control Lists for a Trunk @return TrunkingV1TrunkIpAccessControlListReadResponse */ func (c *DefaultApiService) ListIpAccessControlList(trunkSid string, params *ListIpAccessControlListParams) (*TrunkingV1TrunkIpAccessControlListReadResponse, error) { - path := "/v1/Trunks/{TrunkSid}/IpAccessControlLists" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path := "/v1/Trunks/{TrunkSid}/IpAccessControlLists" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TrunkingV1TrunkIpAccessControlListReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TrunkingV1TrunkIpAccessControlListReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListOriginationUrlParams Optional parameters for the method 'ListOriginationUrl' type ListOriginationUrlParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -665,34 +663,34 @@ ListOriginationUrl Method for ListOriginationUrl @return TrunkingV1TrunkOriginationUrlReadResponse */ func (c *DefaultApiService) ListOriginationUrl(trunkSid string, params *ListOriginationUrlParams) (*TrunkingV1TrunkOriginationUrlReadResponse, error) { - path := "/v1/Trunks/{TrunkSid}/OriginationUrls" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path := "/v1/Trunks/{TrunkSid}/OriginationUrls" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TrunkingV1TrunkOriginationUrlReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TrunkingV1TrunkOriginationUrlReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListPhoneNumberParams Optional parameters for the method 'ListPhoneNumber' type ListPhoneNumberParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -703,34 +701,34 @@ ListPhoneNumber Method for ListPhoneNumber @return TrunkingV1TrunkPhoneNumberReadResponse */ func (c *DefaultApiService) ListPhoneNumber(trunkSid string, params *ListPhoneNumberParams) (*TrunkingV1TrunkPhoneNumberReadResponse, error) { - path := "/v1/Trunks/{TrunkSid}/PhoneNumbers" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path := "/v1/Trunks/{TrunkSid}/PhoneNumbers" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TrunkingV1TrunkPhoneNumberReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TrunkingV1TrunkPhoneNumberReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListTrunkParams Optional parameters for the method 'ListTrunk' type ListTrunkParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -740,37 +738,37 @@ ListTrunk Method for ListTrunk @return TrunkingV1TrunkReadResponse */ func (c *DefaultApiService) ListTrunk(params *ListTrunkParams) (*TrunkingV1TrunkReadResponse, error) { - path := "/v1/Trunks" + path := "/v1/Trunks" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TrunkingV1TrunkReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TrunkingV1TrunkReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateOriginationUrlParams Optional parameters for the method 'UpdateOriginationUrl' type UpdateOriginationUrlParams struct { - Enabled *bool `json:"Enabled,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Priority *int32 `json:"Priority,omitempty"` - SipUrl *string `json:"SipUrl,omitempty"` - Weight *int32 `json:"Weight,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Priority *int32 `json:"Priority,omitempty"` + SipUrl *string `json:"SipUrl,omitempty"` + Weight *int32 `json:"Weight,omitempty"` } /* @@ -786,48 +784,48 @@ UpdateOriginationUrl Method for UpdateOriginationUrl @return TrunkingV1TrunkOriginationUrl */ func (c *DefaultApiService) UpdateOriginationUrl(trunkSid string, sid string, params *UpdateOriginationUrlParams) (*TrunkingV1TrunkOriginationUrl, error) { - path := "/v1/Trunks/{TrunkSid}/OriginationUrls/{Sid}" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Enabled != nil { - data.Set("Enabled", string(*params.Enabled)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Priority != nil { - data.Set("Priority", string(*params.Priority)) - } - if params != nil && params.SipUrl != nil { - data.Set("SipUrl", *params.SipUrl) - } - if params != nil && params.Weight != nil { - data.Set("Weight", string(*params.Weight)) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &TrunkingV1TrunkOriginationUrl{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Trunks/{TrunkSid}/OriginationUrls/{Sid}" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Enabled != nil { + data.Set("Enabled", string(*params.Enabled)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Priority != nil { + data.Set("Priority", string(*params.Priority)) + } + if params != nil && params.SipUrl != nil { + data.Set("SipUrl", *params.SipUrl) + } + if params != nil && params.Weight != nil { + data.Set("Weight", string(*params.Weight)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TrunkingV1TrunkOriginationUrl{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateRecordingParams Optional parameters for the method 'UpdateRecording' type UpdateRecordingParams struct { - Mode *string `json:"Mode,omitempty"` - Trim *string `json:"Trim,omitempty"` + Mode *string `json:"Mode,omitempty"` + Trim *string `json:"Trim,omitempty"` } /* @@ -839,43 +837,43 @@ UpdateRecording Method for UpdateRecording @return TrunkingV1TrunkRecording */ func (c *DefaultApiService) UpdateRecording(trunkSid string, params *UpdateRecordingParams) (*TrunkingV1TrunkRecording, error) { - path := "/v1/Trunks/{TrunkSid}/Recording" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path := "/v1/Trunks/{TrunkSid}/Recording" + path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Mode != nil { - data.Set("Mode", *params.Mode) - } - if params != nil && params.Trim != nil { - data.Set("Trim", *params.Trim) - } + if params != nil && params.Mode != nil { + data.Set("Mode", *params.Mode) + } + if params != nil && params.Trim != nil { + data.Set("Trim", *params.Trim) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &TrunkingV1TrunkRecording{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &TrunkingV1TrunkRecording{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateTrunkParams Optional parameters for the method 'UpdateTrunk' type UpdateTrunkParams struct { - CnamLookupEnabled *bool `json:"CnamLookupEnabled,omitempty"` - DisasterRecoveryMethod *string `json:"DisasterRecoveryMethod,omitempty"` - DisasterRecoveryUrl *string `json:"DisasterRecoveryUrl,omitempty"` - DomainName *string `json:"DomainName,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Secure *bool `json:"Secure,omitempty"` - TransferMode *string `json:"TransferMode,omitempty"` + CnamLookupEnabled *bool `json:"CnamLookupEnabled,omitempty"` + DisasterRecoveryMethod *string `json:"DisasterRecoveryMethod,omitempty"` + DisasterRecoveryUrl *string `json:"DisasterRecoveryUrl,omitempty"` + DomainName *string `json:"DomainName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Secure *bool `json:"Secure,omitempty"` + TransferMode *string `json:"TransferMode,omitempty"` } /* @@ -892,46 +890,46 @@ UpdateTrunk Method for UpdateTrunk @return TrunkingV1Trunk */ func (c *DefaultApiService) UpdateTrunk(sid string, params *UpdateTrunkParams) (*TrunkingV1Trunk, error) { - path := "/v1/Trunks/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.CnamLookupEnabled != nil { - data.Set("CnamLookupEnabled", string(*params.CnamLookupEnabled)) - } - if params != nil && params.DisasterRecoveryMethod != nil { - data.Set("DisasterRecoveryMethod", *params.DisasterRecoveryMethod) - } - if params != nil && params.DisasterRecoveryUrl != nil { - data.Set("DisasterRecoveryUrl", *params.DisasterRecoveryUrl) - } - if params != nil && params.DomainName != nil { - data.Set("DomainName", *params.DomainName) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Secure != nil { - data.Set("Secure", string(*params.Secure)) - } - if params != nil && params.TransferMode != nil { - data.Set("TransferMode", *params.TransferMode) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &TrunkingV1Trunk{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Trunks/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CnamLookupEnabled != nil { + data.Set("CnamLookupEnabled", string(*params.CnamLookupEnabled)) + } + if params != nil && params.DisasterRecoveryMethod != nil { + data.Set("DisasterRecoveryMethod", *params.DisasterRecoveryMethod) + } + if params != nil && params.DisasterRecoveryUrl != nil { + data.Set("DisasterRecoveryUrl", *params.DisasterRecoveryUrl) + } + if params != nil && params.DomainName != nil { + data.Set("DomainName", *params.DomainName) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Secure != nil { + data.Set("Secure", string(*params.Secure)) + } + if params != nil && params.TransferMode != nil { + data.Set("TransferMode", *params.TransferMode) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &TrunkingV1Trunk{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } diff --git a/rest/trunking/v1/response.go b/rest/trunking/v1/response.go index 4fdda56e9..15628f098 100644 --- a/rest/trunking/v1/response.go +++ b/rest/trunking/v1/response.go @@ -32,16 +32,14 @@ type APIResponse struct { Payload []byte `json:"-"` } -// Response returns a new APIResponse object. -func Response(r *http.Response) *APIResponse { - +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { response := &APIResponse{Response: r} return response } -// ResponseWithError returns a new APIResponse object with the provided error message. -func ResponseWithError(errorMessage string) *APIResponse { - +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { response := &APIResponse{Message: errorMessage} return response } diff --git a/rest/verify/v2/api_default.go b/rest/verify/v2/api_default.go index 7f9b07111..cf6fde6e4 100644 --- a/rest/verify/v2/api_default.go +++ b/rest/verify/v2/api_default.go @@ -13,27 +13,25 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type DefaultApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewDefaultApiService(client *twilio.Client) *DefaultApiService { - return &DefaultApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &DefaultApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } // CreateAccessTokenParams Optional parameters for the method 'CreateAccessToken' type CreateAccessTokenParams struct { - FactorType *string `json:"FactorType,omitempty"` - Identity *string `json:"Identity,omitempty"` + FactorType *string `json:"FactorType,omitempty"` + Identity *string `json:"Identity,omitempty"` } /* @@ -46,38 +44,38 @@ Create a new enrollment Access Token for the Entity @return VerifyV2ServiceAccessToken */ func (c *DefaultApiService) CreateAccessToken(serviceSid string, params *CreateAccessTokenParams) (*VerifyV2ServiceAccessToken, error) { - path := "/v2/Services/{ServiceSid}/AccessTokens" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v2/Services/{ServiceSid}/AccessTokens" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FactorType != nil { - data.Set("FactorType", *params.FactorType) - } - if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) - } + if params != nil && params.FactorType != nil { + data.Set("FactorType", *params.FactorType) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VerifyV2ServiceAccessToken{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VerifyV2ServiceAccessToken{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateBucketParams Optional parameters for the method 'CreateBucket' type CreateBucketParams struct { - Interval *int32 `json:"Interval,omitempty"` - Max *int32 `json:"Max,omitempty"` + Interval *int32 `json:"Interval,omitempty"` + Max *int32 `json:"Max,omitempty"` } /* @@ -91,42 +89,42 @@ Create a new Bucket for a Rate Limit @return VerifyV2ServiceRateLimitBucket */ func (c *DefaultApiService) CreateBucket(serviceSid string, rateLimitSid string, params *CreateBucketParams) (*VerifyV2ServiceRateLimitBucket, error) { - path := "/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"RateLimitSid"+"}", rateLimitSid, -1) + path := "/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"RateLimitSid"+"}", rateLimitSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Interval != nil { - data.Set("Interval", string(*params.Interval)) - } - if params != nil && params.Max != nil { - data.Set("Max", string(*params.Max)) - } + if params != nil && params.Interval != nil { + data.Set("Interval", string(*params.Interval)) + } + if params != nil && params.Max != nil { + data.Set("Max", string(*params.Max)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VerifyV2ServiceRateLimitBucket{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VerifyV2ServiceRateLimitBucket{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateChallengeParams Optional parameters for the method 'CreateChallenge' type CreateChallengeParams struct { - Details.Fields *[]map[string]interface{} `json:"Details.Fields,omitempty"` - Details.Message *string `json:"Details.Message,omitempty"` - ExpirationDate *time.Time `json:"ExpirationDate,omitempty"` - FactorSid *string `json:"FactorSid,omitempty"` - HiddenDetails *map[string]interface{} `json:"HiddenDetails,omitempty"` + Details.Fields *[]map[string]interface{} `json:"Details.Fields,omitempty"` + Details.Message *string `json:"Details.Message,omitempty"` + ExpirationDate *time.Time `json:"ExpirationDate,omitempty"` + FactorSid *string `json:"FactorSid,omitempty"` + HiddenDetails *map[string]interface{} `json:"HiddenDetails,omitempty"` } /* @@ -143,59 +141,59 @@ Create a new Challenge for the Factor @return VerifyV2ServiceEntityChallenge */ func (c *DefaultApiService) CreateChallenge(serviceSid string, identity string, params *CreateChallengeParams) (*VerifyV2ServiceEntityChallenge, error) { - path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Details.Fields != nil { - v, err := json.Marshal(params.Details.Fields) + if params != nil && params.Details.Fields != nil { + v, err := json.Marshal(params.Details.Fields) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("Details.Fields", string(v)) - } - if params != nil && params.Details.Message != nil { - data.Set("Details.Message", *params.Details.Message) - } - if params != nil && params.ExpirationDate != nil { - data.Set("ExpirationDate", string(*params.ExpirationDate)) - } - if params != nil && params.FactorSid != nil { - data.Set("FactorSid", *params.FactorSid) - } - if params != nil && params.HiddenDetails != nil { - v, err := json.Marshal(params.HiddenDetails) + data.Set("Details.Fields", string(v)) + } + if params != nil && params.Details.Message != nil { + data.Set("Details.Message", *params.Details.Message) + } + if params != nil && params.ExpirationDate != nil { + data.Set("ExpirationDate", string(*params.ExpirationDate)) + } + if params != nil && params.FactorSid != nil { + data.Set("FactorSid", *params.FactorSid) + } + if params != nil && params.HiddenDetails != nil { + v, err := json.Marshal(params.HiddenDetails) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("HiddenDetails", string(v)) - } + data.Set("HiddenDetails", string(v)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VerifyV2ServiceEntityChallenge{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VerifyV2ServiceEntityChallenge{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateEntityParams Optional parameters for the method 'CreateEntity' type CreateEntityParams struct { - Identity *string `json:"Identity,omitempty"` + Identity *string `json:"Identity,omitempty"` } /* @@ -207,41 +205,41 @@ Create a new Entity for the Service @return VerifyV2ServiceEntity */ func (c *DefaultApiService) CreateEntity(serviceSid string, params *CreateEntityParams) (*VerifyV2ServiceEntity, error) { - path := "/v2/Services/{ServiceSid}/Entities" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v2/Services/{ServiceSid}/Entities" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) - } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VerifyV2ServiceEntity{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VerifyV2ServiceEntity{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateFactorParams Optional parameters for the method 'CreateFactor' type CreateFactorParams struct { - Binding.Alg *string `json:"Binding.Alg,omitempty"` - Binding.PublicKey *string `json:"Binding.PublicKey,omitempty"` - Config.AppId *string `json:"Config.AppId,omitempty"` - Config.NotificationPlatform *string `json:"Config.NotificationPlatform,omitempty"` - Config.NotificationToken *string `json:"Config.NotificationToken,omitempty"` - Config.SdkVersion *string `json:"Config.SdkVersion,omitempty"` - FactorType *string `json:"FactorType,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` + Binding.Alg *string `json:"Binding.Alg,omitempty"` + Binding.PublicKey *string `json:"Binding.PublicKey,omitempty"` + Config.AppId *string `json:"Config.AppId,omitempty"` + Config.NotificationPlatform *string `json:"Config.NotificationPlatform,omitempty"` + Config.NotificationToken *string `json:"Config.NotificationToken,omitempty"` + Config.SdkVersion *string `json:"Config.SdkVersion,omitempty"` + FactorType *string `json:"FactorType,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -261,57 +259,57 @@ Create a new Factor for the Entity @return VerifyV2ServiceEntityFactor */ func (c *DefaultApiService) CreateFactor(serviceSid string, identity string, params *CreateFactorParams) (*VerifyV2ServiceEntityFactor, error) { - path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Factors" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Binding.Alg != nil { - data.Set("Binding.Alg", *params.Binding.Alg) - } - if params != nil && params.Binding.PublicKey != nil { - data.Set("Binding.PublicKey", *params.Binding.PublicKey) - } - if params != nil && params.Config.AppId != nil { - data.Set("Config.AppId", *params.Config.AppId) - } - if params != nil && params.Config.NotificationPlatform != nil { - data.Set("Config.NotificationPlatform", *params.Config.NotificationPlatform) - } - if params != nil && params.Config.NotificationToken != nil { - data.Set("Config.NotificationToken", *params.Config.NotificationToken) - } - if params != nil && params.Config.SdkVersion != nil { - data.Set("Config.SdkVersion", *params.Config.SdkVersion) - } - if params != nil && params.FactorType != nil { - data.Set("FactorType", *params.FactorType) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VerifyV2ServiceEntityFactor{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Factors" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Binding.Alg != nil { + data.Set("Binding.Alg", *params.Binding.Alg) + } + if params != nil && params.Binding.PublicKey != nil { + data.Set("Binding.PublicKey", *params.Binding.PublicKey) + } + if params != nil && params.Config.AppId != nil { + data.Set("Config.AppId", *params.Config.AppId) + } + if params != nil && params.Config.NotificationPlatform != nil { + data.Set("Config.NotificationPlatform", *params.Config.NotificationPlatform) + } + if params != nil && params.Config.NotificationToken != nil { + data.Set("Config.NotificationToken", *params.Config.NotificationToken) + } + if params != nil && params.Config.SdkVersion != nil { + data.Set("Config.SdkVersion", *params.Config.SdkVersion) + } + if params != nil && params.FactorType != nil { + data.Set("FactorType", *params.FactorType) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceEntityFactor{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateMessagingConfigurationParams Optional parameters for the method 'CreateMessagingConfiguration' type CreateMessagingConfigurationParams struct { - Country *string `json:"Country,omitempty"` - MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` + Country *string `json:"Country,omitempty"` + MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` } /* @@ -324,38 +322,38 @@ Create a new MessagingConfiguration for a service. @return VerifyV2ServiceMessagingConfiguration */ func (c *DefaultApiService) CreateMessagingConfiguration(serviceSid string, params *CreateMessagingConfigurationParams) (*VerifyV2ServiceMessagingConfiguration, error) { - path := "/v2/Services/{ServiceSid}/MessagingConfigurations" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v2/Services/{ServiceSid}/MessagingConfigurations" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Country != nil { - data.Set("Country", *params.Country) - } - if params != nil && params.MessagingServiceSid != nil { - data.Set("MessagingServiceSid", *params.MessagingServiceSid) - } + if params != nil && params.Country != nil { + data.Set("Country", *params.Country) + } + if params != nil && params.MessagingServiceSid != nil { + data.Set("MessagingServiceSid", *params.MessagingServiceSid) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VerifyV2ServiceMessagingConfiguration{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VerifyV2ServiceMessagingConfiguration{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateRateLimitParams Optional parameters for the method 'CreateRateLimit' type CreateRateLimitParams struct { - Description *string `json:"Description,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + Description *string `json:"Description,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -368,48 +366,48 @@ Create a new Rate Limit for a Service @return VerifyV2ServiceRateLimit */ func (c *DefaultApiService) CreateRateLimit(serviceSid string, params *CreateRateLimitParams) (*VerifyV2ServiceRateLimit, error) { - path := "/v2/Services/{ServiceSid}/RateLimits" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v2/Services/{ServiceSid}/RateLimits" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Description != nil { - data.Set("Description", *params.Description) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } + if params != nil && params.Description != nil { + data.Set("Description", *params.Description) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VerifyV2ServiceRateLimit{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VerifyV2ServiceRateLimit{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateServiceParams Optional parameters for the method 'CreateService' type CreateServiceParams struct { - CodeLength *int32 `json:"CodeLength,omitempty"` - CustomCodeEnabled *bool `json:"CustomCodeEnabled,omitempty"` - DoNotShareWarningEnabled *bool `json:"DoNotShareWarningEnabled,omitempty"` - DtmfInputRequired *bool `json:"DtmfInputRequired,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - LookupEnabled *bool `json:"LookupEnabled,omitempty"` - Psd2Enabled *bool `json:"Psd2Enabled,omitempty"` - Push.ApnCredentialSid *string `json:"Push.ApnCredentialSid,omitempty"` - Push.FcmCredentialSid *string `json:"Push.FcmCredentialSid,omitempty"` - Push.IncludeDate *bool `json:"Push.IncludeDate,omitempty"` - SkipSmsToLandlines *bool `json:"SkipSmsToLandlines,omitempty"` - TtsName *string `json:"TtsName,omitempty"` + CodeLength *int32 `json:"CodeLength,omitempty"` + CustomCodeEnabled *bool `json:"CustomCodeEnabled,omitempty"` + DoNotShareWarningEnabled *bool `json:"DoNotShareWarningEnabled,omitempty"` + DtmfInputRequired *bool `json:"DtmfInputRequired,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + LookupEnabled *bool `json:"LookupEnabled,omitempty"` + Psd2Enabled *bool `json:"Psd2Enabled,omitempty"` + Push.ApnCredentialSid *string `json:"Push.ApnCredentialSid,omitempty"` + Push.FcmCredentialSid *string `json:"Push.FcmCredentialSid,omitempty"` + Push.IncludeDate *bool `json:"Push.IncludeDate,omitempty"` + SkipSmsToLandlines *bool `json:"SkipSmsToLandlines,omitempty"` + TtsName *string `json:"TtsName,omitempty"` } /* @@ -431,77 +429,77 @@ Create a new Verification Service. @return VerifyV2Service */ func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*VerifyV2Service, error) { - path := "/v2/Services" - - data := url.Values{} - headers := 0 - - if params != nil && params.CodeLength != nil { - data.Set("CodeLength", string(*params.CodeLength)) - } - if params != nil && params.CustomCodeEnabled != nil { - data.Set("CustomCodeEnabled", string(*params.CustomCodeEnabled)) - } - if params != nil && params.DoNotShareWarningEnabled != nil { - data.Set("DoNotShareWarningEnabled", string(*params.DoNotShareWarningEnabled)) - } - if params != nil && params.DtmfInputRequired != nil { - data.Set("DtmfInputRequired", string(*params.DtmfInputRequired)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.LookupEnabled != nil { - data.Set("LookupEnabled", string(*params.LookupEnabled)) - } - if params != nil && params.Psd2Enabled != nil { - data.Set("Psd2Enabled", string(*params.Psd2Enabled)) - } - if params != nil && params.Push.ApnCredentialSid != nil { - data.Set("Push.ApnCredentialSid", *params.Push.ApnCredentialSid) - } - if params != nil && params.Push.FcmCredentialSid != nil { - data.Set("Push.FcmCredentialSid", *params.Push.FcmCredentialSid) - } - if params != nil && params.Push.IncludeDate != nil { - data.Set("Push.IncludeDate", string(*params.Push.IncludeDate)) - } - if params != nil && params.SkipSmsToLandlines != nil { - data.Set("SkipSmsToLandlines", string(*params.SkipSmsToLandlines)) - } - if params != nil && params.TtsName != nil { - data.Set("TtsName", *params.TtsName) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VerifyV2Service{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v2/Services" + + data := url.Values{} + headers := 0 + + if params != nil && params.CodeLength != nil { + data.Set("CodeLength", string(*params.CodeLength)) + } + if params != nil && params.CustomCodeEnabled != nil { + data.Set("CustomCodeEnabled", string(*params.CustomCodeEnabled)) + } + if params != nil && params.DoNotShareWarningEnabled != nil { + data.Set("DoNotShareWarningEnabled", string(*params.DoNotShareWarningEnabled)) + } + if params != nil && params.DtmfInputRequired != nil { + data.Set("DtmfInputRequired", string(*params.DtmfInputRequired)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.LookupEnabled != nil { + data.Set("LookupEnabled", string(*params.LookupEnabled)) + } + if params != nil && params.Psd2Enabled != nil { + data.Set("Psd2Enabled", string(*params.Psd2Enabled)) + } + if params != nil && params.Push.ApnCredentialSid != nil { + data.Set("Push.ApnCredentialSid", *params.Push.ApnCredentialSid) + } + if params != nil && params.Push.FcmCredentialSid != nil { + data.Set("Push.FcmCredentialSid", *params.Push.FcmCredentialSid) + } + if params != nil && params.Push.IncludeDate != nil { + data.Set("Push.IncludeDate", string(*params.Push.IncludeDate)) + } + if params != nil && params.SkipSmsToLandlines != nil { + data.Set("SkipSmsToLandlines", string(*params.SkipSmsToLandlines)) + } + if params != nil && params.TtsName != nil { + data.Set("TtsName", *params.TtsName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateVerificationParams Optional parameters for the method 'CreateVerification' type CreateVerificationParams struct { - Amount *string `json:"Amount,omitempty"` - AppHash *string `json:"AppHash,omitempty"` - Channel *string `json:"Channel,omitempty"` - ChannelConfiguration *map[string]interface{} `json:"ChannelConfiguration,omitempty"` - CustomCode *string `json:"CustomCode,omitempty"` - CustomFriendlyName *string `json:"CustomFriendlyName,omitempty"` - CustomMessage *string `json:"CustomMessage,omitempty"` - Locale *string `json:"Locale,omitempty"` - Payee *string `json:"Payee,omitempty"` - RateLimits *map[string]interface{} `json:"RateLimits,omitempty"` - SendDigits *string `json:"SendDigits,omitempty"` - To *string `json:"To,omitempty"` + Amount *string `json:"Amount,omitempty"` + AppHash *string `json:"AppHash,omitempty"` + Channel *string `json:"Channel,omitempty"` + ChannelConfiguration *map[string]interface{} `json:"ChannelConfiguration,omitempty"` + CustomCode *string `json:"CustomCode,omitempty"` + CustomFriendlyName *string `json:"CustomFriendlyName,omitempty"` + CustomMessage *string `json:"CustomMessage,omitempty"` + Locale *string `json:"Locale,omitempty"` + Payee *string `json:"Payee,omitempty"` + RateLimits *map[string]interface{} `json:"RateLimits,omitempty"` + SendDigits *string `json:"SendDigits,omitempty"` + To *string `json:"To,omitempty"` } /* @@ -524,83 +522,83 @@ Create a new Verification using a Service @return VerifyV2ServiceVerification */ func (c *DefaultApiService) CreateVerification(serviceSid string, params *CreateVerificationParams) (*VerifyV2ServiceVerification, error) { - path := "/v2/Services/{ServiceSid}/Verifications" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Amount != nil { - data.Set("Amount", *params.Amount) - } - if params != nil && params.AppHash != nil { - data.Set("AppHash", *params.AppHash) - } - if params != nil && params.Channel != nil { - data.Set("Channel", *params.Channel) - } - if params != nil && params.ChannelConfiguration != nil { - v, err := json.Marshal(params.ChannelConfiguration) - - if err != nil { - return nil, err - } - - data.Set("ChannelConfiguration", string(v)) - } - if params != nil && params.CustomCode != nil { - data.Set("CustomCode", *params.CustomCode) - } - if params != nil && params.CustomFriendlyName != nil { - data.Set("CustomFriendlyName", *params.CustomFriendlyName) - } - if params != nil && params.CustomMessage != nil { - data.Set("CustomMessage", *params.CustomMessage) - } - if params != nil && params.Locale != nil { - data.Set("Locale", *params.Locale) - } - if params != nil && params.Payee != nil { - data.Set("Payee", *params.Payee) - } - if params != nil && params.RateLimits != nil { - v, err := json.Marshal(params.RateLimits) - - if err != nil { - return nil, err - } - - data.Set("RateLimits", string(v)) - } - if params != nil && params.SendDigits != nil { - data.Set("SendDigits", *params.SendDigits) - } - if params != nil && params.To != nil { - data.Set("To", *params.To) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VerifyV2ServiceVerification{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v2/Services/{ServiceSid}/Verifications" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Amount != nil { + data.Set("Amount", *params.Amount) + } + if params != nil && params.AppHash != nil { + data.Set("AppHash", *params.AppHash) + } + if params != nil && params.Channel != nil { + data.Set("Channel", *params.Channel) + } + if params != nil && params.ChannelConfiguration != nil { + v, err := json.Marshal(params.ChannelConfiguration) + + if err != nil { + return nil, err + } + + data.Set("ChannelConfiguration", string(v)) + } + if params != nil && params.CustomCode != nil { + data.Set("CustomCode", *params.CustomCode) + } + if params != nil && params.CustomFriendlyName != nil { + data.Set("CustomFriendlyName", *params.CustomFriendlyName) + } + if params != nil && params.CustomMessage != nil { + data.Set("CustomMessage", *params.CustomMessage) + } + if params != nil && params.Locale != nil { + data.Set("Locale", *params.Locale) + } + if params != nil && params.Payee != nil { + data.Set("Payee", *params.Payee) + } + if params != nil && params.RateLimits != nil { + v, err := json.Marshal(params.RateLimits) + + if err != nil { + return nil, err + } + + data.Set("RateLimits", string(v)) + } + if params != nil && params.SendDigits != nil { + data.Set("SendDigits", *params.SendDigits) + } + if params != nil && params.To != nil { + data.Set("To", *params.To) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceVerification{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateVerificationCheckParams Optional parameters for the method 'CreateVerificationCheck' type CreateVerificationCheckParams struct { - Amount *string `json:"Amount,omitempty"` - Code *string `json:"Code,omitempty"` - Payee *string `json:"Payee,omitempty"` - To *string `json:"To,omitempty"` - VerificationSid *string `json:"VerificationSid,omitempty"` + Amount *string `json:"Amount,omitempty"` + Code *string `json:"Code,omitempty"` + Payee *string `json:"Payee,omitempty"` + To *string `json:"To,omitempty"` + VerificationSid *string `json:"VerificationSid,omitempty"` } /* @@ -616,49 +614,49 @@ challenge a specific Verification Check. @return VerifyV2ServiceVerificationCheck */ func (c *DefaultApiService) CreateVerificationCheck(serviceSid string, params *CreateVerificationCheckParams) (*VerifyV2ServiceVerificationCheck, error) { - path := "/v2/Services/{ServiceSid}/VerificationCheck" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Amount != nil { - data.Set("Amount", *params.Amount) - } - if params != nil && params.Code != nil { - data.Set("Code", *params.Code) - } - if params != nil && params.Payee != nil { - data.Set("Payee", *params.Payee) - } - if params != nil && params.To != nil { - data.Set("To", *params.To) - } - if params != nil && params.VerificationSid != nil { - data.Set("VerificationSid", *params.VerificationSid) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VerifyV2ServiceVerificationCheck{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v2/Services/{ServiceSid}/VerificationCheck" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Amount != nil { + data.Set("Amount", *params.Amount) + } + if params != nil && params.Code != nil { + data.Set("Code", *params.Code) + } + if params != nil && params.Payee != nil { + data.Set("Payee", *params.Payee) + } + if params != nil && params.To != nil { + data.Set("To", *params.To) + } + if params != nil && params.VerificationSid != nil { + data.Set("VerificationSid", *params.VerificationSid) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceVerificationCheck{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateWebhookParams Optional parameters for the method 'CreateWebhook' type CreateWebhookParams struct { - EventTypes *[]string `json:"EventTypes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Status *string `json:"Status,omitempty"` - WebhookUrl *string `json:"WebhookUrl,omitempty"` + EventTypes *[]string `json:"EventTypes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Status *string `json:"Status,omitempty"` + WebhookUrl *string `json:"WebhookUrl,omitempty"` } /* @@ -673,39 +671,39 @@ Create a new Webhook for the Service @return VerifyV2ServiceWebhook */ func (c *DefaultApiService) CreateWebhook(serviceSid string, params *CreateWebhookParams) (*VerifyV2ServiceWebhook, error) { - path := "/v2/Services/{ServiceSid}/Webhooks" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v2/Services/{ServiceSid}/Webhooks" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.EventTypes != nil { - data.Set("EventTypes", *params.EventTypes) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - if params != nil && params.WebhookUrl != nil { - data.Set("WebhookUrl", *params.WebhookUrl) - } + if params != nil && params.EventTypes != nil { + data.Set("EventTypes", *params.EventTypes) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.WebhookUrl != nil { + data.Set("WebhookUrl", *params.WebhookUrl) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VerifyV2ServiceWebhook{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VerifyV2ServiceWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -716,24 +714,24 @@ Delete a specific Bucket. * @param sid A 34 character string that uniquely identifies this Bucket. */ func (c *DefaultApiService) DeleteBucket(serviceSid string, rateLimitSid string, sid string) (error) { - path := "/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"RateLimitSid"+"}", rateLimitSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"RateLimitSid"+"}", rateLimitSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -743,23 +741,23 @@ Delete a specific Entity. * @param identity The unique external identifier for the Entity of the Service */ func (c *DefaultApiService) DeleteEntity(serviceSid string, identity string) (error) { - path := "/v2/Services/{ServiceSid}/Entities/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path := "/v2/Services/{ServiceSid}/Entities/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -770,24 +768,24 @@ Delete a specific Factor. * @param sid A 34 character string that uniquely identifies this Factor. */ func (c *DefaultApiService) DeleteFactor(serviceSid string, identity string, sid string) (error) { - path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -797,23 +795,23 @@ Delete a specific MessagingConfiguration. * @param country The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. */ func (c *DefaultApiService) DeleteMessagingConfiguration(serviceSid string, country string) (error) { - path := "/v2/Services/{ServiceSid}/MessagingConfigurations/{Country}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Country"+"}", country, -1) + path := "/v2/Services/{ServiceSid}/MessagingConfigurations/{Country}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Country"+"}", country, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -823,23 +821,23 @@ Delete a specific Rate Limit. * @param sid The Twilio-provided string that uniquely identifies the Rate Limit resource to fetch. */ func (c *DefaultApiService) DeleteRateLimit(serviceSid string, sid string) (error) { - path := "/v2/Services/{ServiceSid}/RateLimits/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/RateLimits/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -848,22 +846,22 @@ Delete a specific Verification Service Instance. * @param sid The Twilio-provided string that uniquely identifies the Verification Service resource to delete. */ func (c *DefaultApiService) DeleteService(sid string) (error) { - path := "/v2/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -873,23 +871,23 @@ Delete a specific Webhook. * @param sid The Twilio-provided string that uniquely identifies the Webhook resource to delete. */ func (c *DefaultApiService) DeleteWebhook(serviceSid string, sid string) (error) { - path := "/v2/Services/{ServiceSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Webhooks/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -901,29 +899,29 @@ Fetch a specific Bucket. @return VerifyV2ServiceRateLimitBucket */ func (c *DefaultApiService) FetchBucket(serviceSid string, rateLimitSid string, sid string) (*VerifyV2ServiceRateLimitBucket, error) { - path := "/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"RateLimitSid"+"}", rateLimitSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"RateLimitSid"+"}", rateLimitSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VerifyV2ServiceRateLimitBucket{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VerifyV2ServiceRateLimitBucket{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -935,29 +933,29 @@ Fetch a specific Challenge. @return VerifyV2ServiceEntityChallenge */ func (c *DefaultApiService) FetchChallenge(serviceSid string, identity string, sid string) (*VerifyV2ServiceEntityChallenge, error) { - path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VerifyV2ServiceEntityChallenge{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VerifyV2ServiceEntityChallenge{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -968,28 +966,28 @@ Fetch a specific Entity. @return VerifyV2ServiceEntity */ func (c *DefaultApiService) FetchEntity(serviceSid string, identity string) (*VerifyV2ServiceEntity, error) { - path := "/v2/Services/{ServiceSid}/Entities/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path := "/v2/Services/{ServiceSid}/Entities/{Identity}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VerifyV2ServiceEntity{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VerifyV2ServiceEntity{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1001,29 +999,29 @@ Fetch a specific Factor. @return VerifyV2ServiceEntityFactor */ func (c *DefaultApiService) FetchFactor(serviceSid string, identity string, sid string) (*VerifyV2ServiceEntityFactor, error) { - path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VerifyV2ServiceEntityFactor{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VerifyV2ServiceEntityFactor{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1033,27 +1031,27 @@ Fetch the forms for a specific Form Type. @return VerifyV2Form */ func (c *DefaultApiService) FetchForm(formType string) (*VerifyV2Form, error) { - path := "/v2/Forms/{FormType}" - path = strings.Replace(path, "{"+"FormType"+"}", formType, -1) + path := "/v2/Forms/{FormType}" + path = strings.Replace(path, "{"+"FormType"+"}", formType, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VerifyV2Form{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VerifyV2Form{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1064,28 +1062,28 @@ Fetch a specific MessagingConfiguration. @return VerifyV2ServiceMessagingConfiguration */ func (c *DefaultApiService) FetchMessagingConfiguration(serviceSid string, country string) (*VerifyV2ServiceMessagingConfiguration, error) { - path := "/v2/Services/{ServiceSid}/MessagingConfigurations/{Country}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Country"+"}", country, -1) + path := "/v2/Services/{ServiceSid}/MessagingConfigurations/{Country}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Country"+"}", country, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VerifyV2ServiceMessagingConfiguration{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VerifyV2ServiceMessagingConfiguration{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1096,28 +1094,28 @@ Fetch a specific Rate Limit. @return VerifyV2ServiceRateLimit */ func (c *DefaultApiService) FetchRateLimit(serviceSid string, sid string) (*VerifyV2ServiceRateLimit, error) { - path := "/v2/Services/{ServiceSid}/RateLimits/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/RateLimits/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VerifyV2ServiceRateLimit{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VerifyV2ServiceRateLimit{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1127,27 +1125,27 @@ Fetch specific Verification Service Instance. @return VerifyV2Service */ func (c *DefaultApiService) FetchService(sid string) (*VerifyV2Service, error) { - path := "/v2/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VerifyV2Service{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VerifyV2Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1158,28 +1156,28 @@ Fetch a specific Verification @return VerifyV2ServiceVerification */ func (c *DefaultApiService) FetchVerification(serviceSid string, sid string) (*VerifyV2ServiceVerification, error) { - path := "/v2/Services/{ServiceSid}/Verifications/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Verifications/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VerifyV2ServiceVerification{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VerifyV2ServiceVerification{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -1190,32 +1188,32 @@ Fetch a specific Webhook. @return VerifyV2ServiceWebhook */ func (c *DefaultApiService) FetchWebhook(serviceSid string, sid string) (*VerifyV2ServiceWebhook, error) { - path := "/v2/Services/{ServiceSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Webhooks/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VerifyV2ServiceWebhook{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VerifyV2ServiceWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListBucketParams Optional parameters for the method 'ListBucket' type ListBucketParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1228,37 +1226,37 @@ Retrieve a list of all Buckets for a Rate Limit. @return VerifyV2ServiceRateLimitBucketReadResponse */ func (c *DefaultApiService) ListBucket(serviceSid string, rateLimitSid string, params *ListBucketParams) (*VerifyV2ServiceRateLimitBucketReadResponse, error) { - path := "/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"RateLimitSid"+"}", rateLimitSid, -1) + path := "/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"RateLimitSid"+"}", rateLimitSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VerifyV2ServiceRateLimitBucketReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VerifyV2ServiceRateLimitBucketReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListChallengeParams Optional parameters for the method 'ListChallenge' type ListChallengeParams struct { - FactorSid *string `json:"FactorSid,omitempty"` - Status *string `json:"Status,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + FactorSid *string `json:"FactorSid,omitempty"` + Status *string `json:"Status,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1273,41 +1271,41 @@ Retrieve a list of all Challenges for a Factor. @return VerifyV2ServiceEntityChallengeReadResponse */ func (c *DefaultApiService) ListChallenge(serviceSid string, identity string, params *ListChallengeParams) (*VerifyV2ServiceEntityChallengeReadResponse, error) { - path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FactorSid != nil { - data.Set("FactorSid", *params.FactorSid) - } - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.FactorSid != nil { + data.Set("FactorSid", *params.FactorSid) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VerifyV2ServiceEntityChallengeReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VerifyV2ServiceEntityChallengeReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListEntityParams Optional parameters for the method 'ListEntity' type ListEntityParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1319,34 +1317,34 @@ Retrieve a list of all Entities for a Service. @return VerifyV2ServiceEntityReadResponse */ func (c *DefaultApiService) ListEntity(serviceSid string, params *ListEntityParams) (*VerifyV2ServiceEntityReadResponse, error) { - path := "/v2/Services/{ServiceSid}/Entities" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v2/Services/{ServiceSid}/Entities" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VerifyV2ServiceEntityReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VerifyV2ServiceEntityReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListFactorParams Optional parameters for the method 'ListFactor' type ListFactorParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1359,35 +1357,35 @@ Retrieve a list of all Factors for an Entity. @return VerifyV2ServiceEntityFactorReadResponse */ func (c *DefaultApiService) ListFactor(serviceSid string, identity string, params *ListFactorParams) (*VerifyV2ServiceEntityFactorReadResponse, error) { - path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Factors" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Factors" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VerifyV2ServiceEntityFactorReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VerifyV2ServiceEntityFactorReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListMessagingConfigurationParams Optional parameters for the method 'ListMessagingConfiguration' type ListMessagingConfigurationParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1399,34 +1397,34 @@ Retrieve a list of all Messaging Configurations for a Service. @return VerifyV2ServiceMessagingConfigurationReadResponse */ func (c *DefaultApiService) ListMessagingConfiguration(serviceSid string, params *ListMessagingConfigurationParams) (*VerifyV2ServiceMessagingConfigurationReadResponse, error) { - path := "/v2/Services/{ServiceSid}/MessagingConfigurations" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v2/Services/{ServiceSid}/MessagingConfigurations" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VerifyV2ServiceMessagingConfigurationReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VerifyV2ServiceMessagingConfigurationReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListRateLimitParams Optional parameters for the method 'ListRateLimit' type ListRateLimitParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1438,34 +1436,34 @@ Retrieve a list of all Rate Limits for a service. @return VerifyV2ServiceRateLimitReadResponse */ func (c *DefaultApiService) ListRateLimit(serviceSid string, params *ListRateLimitParams) (*VerifyV2ServiceRateLimitReadResponse, error) { - path := "/v2/Services/{ServiceSid}/RateLimits" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v2/Services/{ServiceSid}/RateLimits" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VerifyV2ServiceRateLimitReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VerifyV2ServiceRateLimitReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListServiceParams Optional parameters for the method 'ListService' type ListServiceParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1476,33 +1474,33 @@ Retrieve a list of all Verification Services for an account. @return VerifyV2ServiceReadResponse */ func (c *DefaultApiService) ListService(params *ListServiceParams) (*VerifyV2ServiceReadResponse, error) { - path := "/v2/Services" + path := "/v2/Services" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VerifyV2ServiceReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VerifyV2ServiceReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListWebhookParams Optional parameters for the method 'ListWebhook' type ListWebhookParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1514,35 +1512,35 @@ Retrieve a list of all Webhooks for a Service. @return VerifyV2ServiceWebhookReadResponse */ func (c *DefaultApiService) ListWebhook(serviceSid string, params *ListWebhookParams) (*VerifyV2ServiceWebhookReadResponse, error) { - path := "/v2/Services/{ServiceSid}/Webhooks" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path := "/v2/Services/{ServiceSid}/Webhooks" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VerifyV2ServiceWebhookReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VerifyV2ServiceWebhookReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateBucketParams Optional parameters for the method 'UpdateBucket' type UpdateBucketParams struct { - Interval *int32 `json:"Interval,omitempty"` - Max *int32 `json:"Max,omitempty"` + Interval *int32 `json:"Interval,omitempty"` + Max *int32 `json:"Max,omitempty"` } /* @@ -1557,39 +1555,39 @@ Update a specific Bucket. @return VerifyV2ServiceRateLimitBucket */ func (c *DefaultApiService) UpdateBucket(serviceSid string, rateLimitSid string, sid string, params *UpdateBucketParams) (*VerifyV2ServiceRateLimitBucket, error) { - path := "/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"RateLimitSid"+"}", rateLimitSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"RateLimitSid"+"}", rateLimitSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Interval != nil { - data.Set("Interval", string(*params.Interval)) - } - if params != nil && params.Max != nil { - data.Set("Max", string(*params.Max)) - } + if params != nil && params.Interval != nil { + data.Set("Interval", string(*params.Interval)) + } + if params != nil && params.Max != nil { + data.Set("Max", string(*params.Max)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VerifyV2ServiceRateLimitBucket{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VerifyV2ServiceRateLimitBucket{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateChallengeParams Optional parameters for the method 'UpdateChallenge' type UpdateChallengeParams struct { - AuthPayload *string `json:"AuthPayload,omitempty"` + AuthPayload *string `json:"AuthPayload,omitempty"` } /* @@ -1603,39 +1601,39 @@ Verify a specific Challenge. @return VerifyV2ServiceEntityChallenge */ func (c *DefaultApiService) UpdateChallenge(serviceSid string, identity string, sid string, params *UpdateChallengeParams) (*VerifyV2ServiceEntityChallenge, error) { - path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.AuthPayload != nil { - data.Set("AuthPayload", *params.AuthPayload) - } + if params != nil && params.AuthPayload != nil { + data.Set("AuthPayload", *params.AuthPayload) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VerifyV2ServiceEntityChallenge{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VerifyV2ServiceEntityChallenge{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateFactorParams Optional parameters for the method 'UpdateFactor' type UpdateFactorParams struct { - AuthPayload *string `json:"AuthPayload,omitempty"` - Config.NotificationToken *string `json:"Config.NotificationToken,omitempty"` - Config.SdkVersion *string `json:"Config.SdkVersion,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` + AuthPayload *string `json:"AuthPayload,omitempty"` + Config.NotificationToken *string `json:"Config.NotificationToken,omitempty"` + Config.SdkVersion *string `json:"Config.SdkVersion,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -1652,45 +1650,45 @@ Update a specific Factor. This endpoint can be used to Verify a Factor if passed @return VerifyV2ServiceEntityFactor */ func (c *DefaultApiService) UpdateFactor(serviceSid string, identity string, sid string, params *UpdateFactorParams) (*VerifyV2ServiceEntityFactor, error) { - path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.AuthPayload != nil { - data.Set("AuthPayload", *params.AuthPayload) - } - if params != nil && params.Config.NotificationToken != nil { - data.Set("Config.NotificationToken", *params.Config.NotificationToken) - } - if params != nil && params.Config.SdkVersion != nil { - data.Set("Config.SdkVersion", *params.Config.SdkVersion) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VerifyV2ServiceEntityFactor{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AuthPayload != nil { + data.Set("AuthPayload", *params.AuthPayload) + } + if params != nil && params.Config.NotificationToken != nil { + data.Set("Config.NotificationToken", *params.Config.NotificationToken) + } + if params != nil && params.Config.SdkVersion != nil { + data.Set("Config.SdkVersion", *params.Config.SdkVersion) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceEntityFactor{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateMessagingConfigurationParams Optional parameters for the method 'UpdateMessagingConfiguration' type UpdateMessagingConfigurationParams struct { - MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` + MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` } /* @@ -1703,35 +1701,35 @@ Update a specific MessagingConfiguration @return VerifyV2ServiceMessagingConfiguration */ func (c *DefaultApiService) UpdateMessagingConfiguration(serviceSid string, country string, params *UpdateMessagingConfigurationParams) (*VerifyV2ServiceMessagingConfiguration, error) { - path := "/v2/Services/{ServiceSid}/MessagingConfigurations/{Country}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Country"+"}", country, -1) + path := "/v2/Services/{ServiceSid}/MessagingConfigurations/{Country}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Country"+"}", country, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.MessagingServiceSid != nil { - data.Set("MessagingServiceSid", *params.MessagingServiceSid) - } + if params != nil && params.MessagingServiceSid != nil { + data.Set("MessagingServiceSid", *params.MessagingServiceSid) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VerifyV2ServiceMessagingConfiguration{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VerifyV2ServiceMessagingConfiguration{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateRateLimitParams Optional parameters for the method 'UpdateRateLimit' type UpdateRateLimitParams struct { - Description *string `json:"Description,omitempty"` + Description *string `json:"Description,omitempty"` } /* @@ -1744,46 +1742,46 @@ Update a specific Rate Limit. @return VerifyV2ServiceRateLimit */ func (c *DefaultApiService) UpdateRateLimit(serviceSid string, sid string, params *UpdateRateLimitParams) (*VerifyV2ServiceRateLimit, error) { - path := "/v2/Services/{ServiceSid}/RateLimits/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/RateLimits/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Description != nil { - data.Set("Description", *params.Description) - } + if params != nil && params.Description != nil { + data.Set("Description", *params.Description) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VerifyV2ServiceRateLimit{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VerifyV2ServiceRateLimit{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateServiceParams Optional parameters for the method 'UpdateService' type UpdateServiceParams struct { - CodeLength *int32 `json:"CodeLength,omitempty"` - CustomCodeEnabled *bool `json:"CustomCodeEnabled,omitempty"` - DoNotShareWarningEnabled *bool `json:"DoNotShareWarningEnabled,omitempty"` - DtmfInputRequired *bool `json:"DtmfInputRequired,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - LookupEnabled *bool `json:"LookupEnabled,omitempty"` - Psd2Enabled *bool `json:"Psd2Enabled,omitempty"` - Push.ApnCredentialSid *string `json:"Push.ApnCredentialSid,omitempty"` - Push.FcmCredentialSid *string `json:"Push.FcmCredentialSid,omitempty"` - Push.IncludeDate *bool `json:"Push.IncludeDate,omitempty"` - SkipSmsToLandlines *bool `json:"SkipSmsToLandlines,omitempty"` - TtsName *string `json:"TtsName,omitempty"` + CodeLength *int32 `json:"CodeLength,omitempty"` + CustomCodeEnabled *bool `json:"CustomCodeEnabled,omitempty"` + DoNotShareWarningEnabled *bool `json:"DoNotShareWarningEnabled,omitempty"` + DtmfInputRequired *bool `json:"DtmfInputRequired,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + LookupEnabled *bool `json:"LookupEnabled,omitempty"` + Psd2Enabled *bool `json:"Psd2Enabled,omitempty"` + Push.ApnCredentialSid *string `json:"Push.ApnCredentialSid,omitempty"` + Push.FcmCredentialSid *string `json:"Push.FcmCredentialSid,omitempty"` + Push.IncludeDate *bool `json:"Push.IncludeDate,omitempty"` + SkipSmsToLandlines *bool `json:"SkipSmsToLandlines,omitempty"` + TtsName *string `json:"TtsName,omitempty"` } /* @@ -1806,67 +1804,67 @@ Update a specific Verification Service. @return VerifyV2Service */ func (c *DefaultApiService) UpdateService(sid string, params *UpdateServiceParams) (*VerifyV2Service, error) { - path := "/v2/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.CodeLength != nil { - data.Set("CodeLength", string(*params.CodeLength)) - } - if params != nil && params.CustomCodeEnabled != nil { - data.Set("CustomCodeEnabled", string(*params.CustomCodeEnabled)) - } - if params != nil && params.DoNotShareWarningEnabled != nil { - data.Set("DoNotShareWarningEnabled", string(*params.DoNotShareWarningEnabled)) - } - if params != nil && params.DtmfInputRequired != nil { - data.Set("DtmfInputRequired", string(*params.DtmfInputRequired)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.LookupEnabled != nil { - data.Set("LookupEnabled", string(*params.LookupEnabled)) - } - if params != nil && params.Psd2Enabled != nil { - data.Set("Psd2Enabled", string(*params.Psd2Enabled)) - } - if params != nil && params.Push.ApnCredentialSid != nil { - data.Set("Push.ApnCredentialSid", *params.Push.ApnCredentialSid) - } - if params != nil && params.Push.FcmCredentialSid != nil { - data.Set("Push.FcmCredentialSid", *params.Push.FcmCredentialSid) - } - if params != nil && params.Push.IncludeDate != nil { - data.Set("Push.IncludeDate", string(*params.Push.IncludeDate)) - } - if params != nil && params.SkipSmsToLandlines != nil { - data.Set("SkipSmsToLandlines", string(*params.SkipSmsToLandlines)) - } - if params != nil && params.TtsName != nil { - data.Set("TtsName", *params.TtsName) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VerifyV2Service{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v2/Services/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CodeLength != nil { + data.Set("CodeLength", string(*params.CodeLength)) + } + if params != nil && params.CustomCodeEnabled != nil { + data.Set("CustomCodeEnabled", string(*params.CustomCodeEnabled)) + } + if params != nil && params.DoNotShareWarningEnabled != nil { + data.Set("DoNotShareWarningEnabled", string(*params.DoNotShareWarningEnabled)) + } + if params != nil && params.DtmfInputRequired != nil { + data.Set("DtmfInputRequired", string(*params.DtmfInputRequired)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.LookupEnabled != nil { + data.Set("LookupEnabled", string(*params.LookupEnabled)) + } + if params != nil && params.Psd2Enabled != nil { + data.Set("Psd2Enabled", string(*params.Psd2Enabled)) + } + if params != nil && params.Push.ApnCredentialSid != nil { + data.Set("Push.ApnCredentialSid", *params.Push.ApnCredentialSid) + } + if params != nil && params.Push.FcmCredentialSid != nil { + data.Set("Push.FcmCredentialSid", *params.Push.FcmCredentialSid) + } + if params != nil && params.Push.IncludeDate != nil { + data.Set("Push.IncludeDate", string(*params.Push.IncludeDate)) + } + if params != nil && params.SkipSmsToLandlines != nil { + data.Set("SkipSmsToLandlines", string(*params.SkipSmsToLandlines)) + } + if params != nil && params.TtsName != nil { + data.Set("TtsName", *params.TtsName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2Service{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateVerificationParams Optional parameters for the method 'UpdateVerification' type UpdateVerificationParams struct { - Status *string `json:"Status,omitempty"` + Status *string `json:"Status,omitempty"` } /* @@ -1879,38 +1877,38 @@ Update a Verification status @return VerifyV2ServiceVerification */ func (c *DefaultApiService) UpdateVerification(serviceSid string, sid string, params *UpdateVerificationParams) (*VerifyV2ServiceVerification, error) { - path := "/v2/Services/{ServiceSid}/Verifications/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v2/Services/{ServiceSid}/Verifications/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VerifyV2ServiceVerification{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VerifyV2ServiceVerification{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateWebhookParams Optional parameters for the method 'UpdateWebhook' type UpdateWebhookParams struct { - EventTypes *[]string `json:"EventTypes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Status *string `json:"Status,omitempty"` - WebhookUrl *string `json:"WebhookUrl,omitempty"` + EventTypes *[]string `json:"EventTypes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Status *string `json:"Status,omitempty"` + WebhookUrl *string `json:"WebhookUrl,omitempty"` } /* @@ -1925,38 +1923,38 @@ UpdateWebhook Method for UpdateWebhook @return VerifyV2ServiceWebhook */ func (c *DefaultApiService) UpdateWebhook(serviceSid string, sid string, params *UpdateWebhookParams) (*VerifyV2ServiceWebhook, error) { - path := "/v2/Services/{ServiceSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.EventTypes != nil { - data.Set("EventTypes", *params.EventTypes) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - if params != nil && params.WebhookUrl != nil { - data.Set("WebhookUrl", *params.WebhookUrl) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VerifyV2ServiceWebhook{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v2/Services/{ServiceSid}/Webhooks/{Sid}" + path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.EventTypes != nil { + data.Set("EventTypes", *params.EventTypes) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.WebhookUrl != nil { + data.Set("WebhookUrl", *params.WebhookUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VerifyV2ServiceWebhook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } diff --git a/rest/verify/v2/response.go b/rest/verify/v2/response.go index fef4286db..6061faaa3 100644 --- a/rest/verify/v2/response.go +++ b/rest/verify/v2/response.go @@ -32,16 +32,14 @@ type APIResponse struct { Payload []byte `json:"-"` } -// Response returns a new APIResponse object. -func Response(r *http.Response) *APIResponse { - +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { response := &APIResponse{Response: r} return response } -// ResponseWithError returns a new APIResponse object with the provided error message. -func ResponseWithError(errorMessage string) *APIResponse { - +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { response := &APIResponse{Message: errorMessage} return response } diff --git a/rest/video/v1/api_default.go b/rest/video/v1/api_default.go index 6d6784fe8..095db942b 100644 --- a/rest/video/v1/api_default.go +++ b/rest/video/v1/api_default.go @@ -13,35 +13,32 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "" - "reflect" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type DefaultApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewDefaultApiService(client *twilio.Client) *DefaultApiService { - return &DefaultApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &DefaultApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } // CreateCompositionParams Optional parameters for the method 'CreateComposition' type CreateCompositionParams struct { - AudioSources *[]string `json:"AudioSources,omitempty"` - AudioSourcesExcluded *[]string `json:"AudioSourcesExcluded,omitempty"` - Format *string `json:"Format,omitempty"` - Resolution *string `json:"Resolution,omitempty"` - RoomSid *string `json:"RoomSid,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - Trim *bool `json:"Trim,omitempty"` - VideoLayout *map[string]interface{} `json:"VideoLayout,omitempty"` + AudioSources *[]string `json:"AudioSources,omitempty"` + AudioSourcesExcluded *[]string `json:"AudioSourcesExcluded,omitempty"` + Format *string `json:"Format,omitempty"` + Resolution *string `json:"Resolution,omitempty"` + RoomSid *string `json:"RoomSid,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + Trim *bool `json:"Trim,omitempty"` + VideoLayout *map[string]interface{} `json:"VideoLayout,omitempty"` } /* @@ -59,72 +56,72 @@ CreateComposition Method for CreateComposition @return VideoV1Composition */ func (c *DefaultApiService) CreateComposition(params *CreateCompositionParams) (*VideoV1Composition, error) { - path := "/v1/Compositions" - - data := url.Values{} - headers := 0 - - if params != nil && params.AudioSources != nil { - data.Set("AudioSources", *params.AudioSources) - } - if params != nil && params.AudioSourcesExcluded != nil { - data.Set("AudioSourcesExcluded", *params.AudioSourcesExcluded) - } - if params != nil && params.Format != nil { - data.Set("Format", *params.Format) - } - if params != nil && params.Resolution != nil { - data.Set("Resolution", *params.Resolution) - } - if params != nil && params.RoomSid != nil { - data.Set("RoomSid", *params.RoomSid) - } - if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) - } - if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) - } - if params != nil && params.Trim != nil { - data.Set("Trim", string(*params.Trim)) - } - if params != nil && params.VideoLayout != nil { - v, err := json.Marshal(params.VideoLayout) - - if err != nil { - return nil, err - } - - data.Set("VideoLayout", string(v)) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VideoV1Composition{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Compositions" + + data := url.Values{} + headers := 0 + + if params != nil && params.AudioSources != nil { + data.Set("AudioSources", *params.AudioSources) + } + if params != nil && params.AudioSourcesExcluded != nil { + data.Set("AudioSourcesExcluded", *params.AudioSourcesExcluded) + } + if params != nil && params.Format != nil { + data.Set("Format", *params.Format) + } + if params != nil && params.Resolution != nil { + data.Set("Resolution", *params.Resolution) + } + if params != nil && params.RoomSid != nil { + data.Set("RoomSid", *params.RoomSid) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.Trim != nil { + data.Set("Trim", string(*params.Trim)) + } + if params != nil && params.VideoLayout != nil { + v, err := json.Marshal(params.VideoLayout) + + if err != nil { + return nil, err + } + + data.Set("VideoLayout", string(v)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1Composition{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateCompositionHookParams Optional parameters for the method 'CreateCompositionHook' type CreateCompositionHookParams struct { - AudioSources *[]string `json:"AudioSources,omitempty"` - AudioSourcesExcluded *[]string `json:"AudioSourcesExcluded,omitempty"` - Enabled *bool `json:"Enabled,omitempty"` - Format *string `json:"Format,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Resolution *string `json:"Resolution,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - Trim *bool `json:"Trim,omitempty"` - VideoLayout *map[string]interface{} `json:"VideoLayout,omitempty"` + AudioSources *[]string `json:"AudioSources,omitempty"` + AudioSourcesExcluded *[]string `json:"AudioSourcesExcluded,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + Format *string `json:"Format,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Resolution *string `json:"Resolution,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + Trim *bool `json:"Trim,omitempty"` + VideoLayout *map[string]interface{} `json:"VideoLayout,omitempty"` } /* @@ -143,71 +140,71 @@ CreateCompositionHook Method for CreateCompositionHook @return VideoV1CompositionHook */ func (c *DefaultApiService) CreateCompositionHook(params *CreateCompositionHookParams) (*VideoV1CompositionHook, error) { - path := "/v1/CompositionHooks" - - data := url.Values{} - headers := 0 - - if params != nil && params.AudioSources != nil { - data.Set("AudioSources", *params.AudioSources) - } - if params != nil && params.AudioSourcesExcluded != nil { - data.Set("AudioSourcesExcluded", *params.AudioSourcesExcluded) - } - if params != nil && params.Enabled != nil { - data.Set("Enabled", string(*params.Enabled)) - } - if params != nil && params.Format != nil { - data.Set("Format", *params.Format) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Resolution != nil { - data.Set("Resolution", *params.Resolution) - } - if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) - } - if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) - } - if params != nil && params.Trim != nil { - data.Set("Trim", string(*params.Trim)) - } - if params != nil && params.VideoLayout != nil { - v, err := json.Marshal(params.VideoLayout) - - if err != nil { - return nil, err - } - - data.Set("VideoLayout", string(v)) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VideoV1CompositionHook{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/CompositionHooks" + + data := url.Values{} + headers := 0 + + if params != nil && params.AudioSources != nil { + data.Set("AudioSources", *params.AudioSources) + } + if params != nil && params.AudioSourcesExcluded != nil { + data.Set("AudioSourcesExcluded", *params.AudioSourcesExcluded) + } + if params != nil && params.Enabled != nil { + data.Set("Enabled", string(*params.Enabled)) + } + if params != nil && params.Format != nil { + data.Set("Format", *params.Format) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Resolution != nil { + data.Set("Resolution", *params.Resolution) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.Trim != nil { + data.Set("Trim", string(*params.Trim)) + } + if params != nil && params.VideoLayout != nil { + v, err := json.Marshal(params.VideoLayout) + + if err != nil { + return nil, err + } + + data.Set("VideoLayout", string(v)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1CompositionHook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateCompositionSettingsParams Optional parameters for the method 'CreateCompositionSettings' type CreateCompositionSettingsParams struct { - AwsCredentialsSid *string `json:"AwsCredentialsSid,omitempty"` - AwsS3Url *string `json:"AwsS3Url,omitempty"` - AwsStorageEnabled *bool `json:"AwsStorageEnabled,omitempty"` - EncryptionEnabled *bool `json:"EncryptionEnabled,omitempty"` - EncryptionKeySid *string `json:"EncryptionKeySid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` + AwsCredentialsSid *string `json:"AwsCredentialsSid,omitempty"` + AwsS3Url *string `json:"AwsS3Url,omitempty"` + AwsStorageEnabled *bool `json:"AwsStorageEnabled,omitempty"` + EncryptionEnabled *bool `json:"EncryptionEnabled,omitempty"` + EncryptionKeySid *string `json:"EncryptionKeySid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -222,53 +219,53 @@ CreateCompositionSettings Method for CreateCompositionSettings @return VideoV1CompositionSettings */ func (c *DefaultApiService) CreateCompositionSettings(params *CreateCompositionSettingsParams) (*VideoV1CompositionSettings, error) { - path := "/v1/CompositionSettings/Default" - - data := url.Values{} - headers := 0 - - if params != nil && params.AwsCredentialsSid != nil { - data.Set("AwsCredentialsSid", *params.AwsCredentialsSid) - } - if params != nil && params.AwsS3Url != nil { - data.Set("AwsS3Url", *params.AwsS3Url) - } - if params != nil && params.AwsStorageEnabled != nil { - data.Set("AwsStorageEnabled", string(*params.AwsStorageEnabled)) - } - if params != nil && params.EncryptionEnabled != nil { - data.Set("EncryptionEnabled", string(*params.EncryptionEnabled)) - } - if params != nil && params.EncryptionKeySid != nil { - data.Set("EncryptionKeySid", *params.EncryptionKeySid) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VideoV1CompositionSettings{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/CompositionSettings/Default" + + data := url.Values{} + headers := 0 + + if params != nil && params.AwsCredentialsSid != nil { + data.Set("AwsCredentialsSid", *params.AwsCredentialsSid) + } + if params != nil && params.AwsS3Url != nil { + data.Set("AwsS3Url", *params.AwsS3Url) + } + if params != nil && params.AwsStorageEnabled != nil { + data.Set("AwsStorageEnabled", string(*params.AwsStorageEnabled)) + } + if params != nil && params.EncryptionEnabled != nil { + data.Set("EncryptionEnabled", string(*params.EncryptionEnabled)) + } + if params != nil && params.EncryptionKeySid != nil { + data.Set("EncryptionKeySid", *params.EncryptionKeySid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1CompositionSettings{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateRecordingSettingsParams Optional parameters for the method 'CreateRecordingSettings' type CreateRecordingSettingsParams struct { - AwsCredentialsSid *string `json:"AwsCredentialsSid,omitempty"` - AwsS3Url *string `json:"AwsS3Url,omitempty"` - AwsStorageEnabled *bool `json:"AwsStorageEnabled,omitempty"` - EncryptionEnabled *bool `json:"EncryptionEnabled,omitempty"` - EncryptionKeySid *string `json:"EncryptionKeySid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` + AwsCredentialsSid *string `json:"AwsCredentialsSid,omitempty"` + AwsS3Url *string `json:"AwsS3Url,omitempty"` + AwsStorageEnabled *bool `json:"AwsStorageEnabled,omitempty"` + EncryptionEnabled *bool `json:"EncryptionEnabled,omitempty"` + EncryptionKeySid *string `json:"EncryptionKeySid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -283,56 +280,56 @@ CreateRecordingSettings Method for CreateRecordingSettings @return VideoV1RecordingSettings */ func (c *DefaultApiService) CreateRecordingSettings(params *CreateRecordingSettingsParams) (*VideoV1RecordingSettings, error) { - path := "/v1/RecordingSettings/Default" - - data := url.Values{} - headers := 0 - - if params != nil && params.AwsCredentialsSid != nil { - data.Set("AwsCredentialsSid", *params.AwsCredentialsSid) - } - if params != nil && params.AwsS3Url != nil { - data.Set("AwsS3Url", *params.AwsS3Url) - } - if params != nil && params.AwsStorageEnabled != nil { - data.Set("AwsStorageEnabled", string(*params.AwsStorageEnabled)) - } - if params != nil && params.EncryptionEnabled != nil { - data.Set("EncryptionEnabled", string(*params.EncryptionEnabled)) - } - if params != nil && params.EncryptionKeySid != nil { - data.Set("EncryptionKeySid", *params.EncryptionKeySid) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VideoV1RecordingSettings{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/RecordingSettings/Default" + + data := url.Values{} + headers := 0 + + if params != nil && params.AwsCredentialsSid != nil { + data.Set("AwsCredentialsSid", *params.AwsCredentialsSid) + } + if params != nil && params.AwsS3Url != nil { + data.Set("AwsS3Url", *params.AwsS3Url) + } + if params != nil && params.AwsStorageEnabled != nil { + data.Set("AwsStorageEnabled", string(*params.AwsStorageEnabled)) + } + if params != nil && params.EncryptionEnabled != nil { + data.Set("EncryptionEnabled", string(*params.EncryptionEnabled)) + } + if params != nil && params.EncryptionKeySid != nil { + data.Set("EncryptionKeySid", *params.EncryptionKeySid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1RecordingSettings{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateRoomParams Optional parameters for the method 'CreateRoom' type CreateRoomParams struct { - EnableTurn *bool `json:"EnableTurn,omitempty"` - MaxParticipants *int32 `json:"MaxParticipants,omitempty"` - MediaRegion *string `json:"MediaRegion,omitempty"` - RecordParticipantsOnConnect *bool `json:"RecordParticipantsOnConnect,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - Type *string `json:"Type,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` - VideoCodecs *[]string `json:"VideoCodecs,omitempty"` + EnableTurn *bool `json:"EnableTurn,omitempty"` + MaxParticipants *int32 `json:"MaxParticipants,omitempty"` + MediaRegion *string `json:"MediaRegion,omitempty"` + RecordParticipantsOnConnect *bool `json:"RecordParticipantsOnConnect,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + Type *string `json:"Type,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + VideoCodecs *[]string `json:"VideoCodecs,omitempty"` } /* @@ -350,53 +347,53 @@ CreateRoom Method for CreateRoom @return VideoV1Room */ func (c *DefaultApiService) CreateRoom(params *CreateRoomParams) (*VideoV1Room, error) { - path := "/v1/Rooms" - - data := url.Values{} - headers := 0 - - if params != nil && params.EnableTurn != nil { - data.Set("EnableTurn", string(*params.EnableTurn)) - } - if params != nil && params.MaxParticipants != nil { - data.Set("MaxParticipants", string(*params.MaxParticipants)) - } - if params != nil && params.MediaRegion != nil { - data.Set("MediaRegion", *params.MediaRegion) - } - if params != nil && params.RecordParticipantsOnConnect != nil { - data.Set("RecordParticipantsOnConnect", string(*params.RecordParticipantsOnConnect)) - } - if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) - } - if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) - } - if params != nil && params.Type != nil { - data.Set("Type", *params.Type) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } - if params != nil && params.VideoCodecs != nil { - data.Set("VideoCodecs", *params.VideoCodecs) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VideoV1Room{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Rooms" + + data := url.Values{} + headers := 0 + + if params != nil && params.EnableTurn != nil { + data.Set("EnableTurn", string(*params.EnableTurn)) + } + if params != nil && params.MaxParticipants != nil { + data.Set("MaxParticipants", string(*params.MaxParticipants)) + } + if params != nil && params.MediaRegion != nil { + data.Set("MediaRegion", *params.MediaRegion) + } + if params != nil && params.RecordParticipantsOnConnect != nil { + data.Set("RecordParticipantsOnConnect", string(*params.RecordParticipantsOnConnect)) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.Type != nil { + data.Set("Type", *params.Type) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + if params != nil && params.VideoCodecs != nil { + data.Set("VideoCodecs", *params.VideoCodecs) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1Room{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } /* @@ -405,22 +402,22 @@ Delete a Recording Composition resource identified by a Composition SID. * @param sid The SID of the Composition resource to delete. */ func (c *DefaultApiService) DeleteComposition(sid string) (error) { - path := "/v1/Compositions/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Compositions/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -429,22 +426,22 @@ Delete a Recording CompositionHook resource identified by a `CompositionHoo * @param sid The SID of the CompositionHook resource to delete. */ func (c *DefaultApiService) DeleteCompositionHook(sid string) (error) { - path := "/v1/CompositionHooks/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/CompositionHooks/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -453,22 +450,22 @@ Delete a Recording resource identified by a Recording SID. * @param sid The SID of the Recording resource to delete. */ func (c *DefaultApiService) DeleteRecording(sid string) (error) { - path := "/v1/Recordings/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Recordings/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -477,23 +474,23 @@ DeleteRoomRecording Method for DeleteRoomRecording * @param sid The SID of the RoomRecording resource to delete. */ func (c *DefaultApiService) DeleteRoomRecording(roomSid string, sid string) (error) { - path := "/v1/Rooms/{RoomSid}/Recordings/{Sid}" - path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Rooms/{RoomSid}/Recordings/{Sid}" + path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -503,27 +500,27 @@ Returns a single Composition resource identified by a Composition SID. @return VideoV1Composition */ func (c *DefaultApiService) FetchComposition(sid string) (*VideoV1Composition, error) { - path := "/v1/Compositions/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Compositions/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VideoV1Composition{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VideoV1Composition{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -533,27 +530,27 @@ Returns a single CompositionHook resource identified by a CompositionHook SID. @return VideoV1CompositionHook */ func (c *DefaultApiService) FetchCompositionHook(sid string) (*VideoV1CompositionHook, error) { - path := "/v1/CompositionHooks/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/CompositionHooks/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VideoV1CompositionHook{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VideoV1CompositionHook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -561,26 +558,26 @@ FetchCompositionSettings Method for FetchCompositionSettings @return VideoV1CompositionSettings */ func (c *DefaultApiService) FetchCompositionSettings() (*VideoV1CompositionSettings, error) { - path := "/v1/CompositionSettings/Default" + path := "/v1/CompositionSettings/Default" - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VideoV1CompositionSettings{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VideoV1CompositionSettings{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -590,27 +587,27 @@ Returns a single Recording resource identified by a Recording SID. @return VideoV1Recording */ func (c *DefaultApiService) FetchRecording(sid string) (*VideoV1Recording, error) { - path := "/v1/Recordings/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Recordings/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VideoV1Recording{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VideoV1Recording{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -618,26 +615,26 @@ FetchRecordingSettings Method for FetchRecordingSettings @return VideoV1RecordingSettings */ func (c *DefaultApiService) FetchRecordingSettings() (*VideoV1RecordingSettings, error) { - path := "/v1/RecordingSettings/Default" + path := "/v1/RecordingSettings/Default" - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VideoV1RecordingSettings{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VideoV1RecordingSettings{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -646,27 +643,27 @@ FetchRoom Method for FetchRoom @return VideoV1Room */ func (c *DefaultApiService) FetchRoom(sid string) (*VideoV1Room, error) { - path := "/v1/Rooms/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Rooms/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VideoV1Room{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VideoV1Room{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -676,28 +673,28 @@ FetchRoomParticipant Method for FetchRoomParticipant @return VideoV1RoomRoomParticipant */ func (c *DefaultApiService) FetchRoomParticipant(roomSid string, sid string) (*VideoV1RoomRoomParticipant, error) { - path := "/v1/Rooms/{RoomSid}/Participants/{Sid}" - path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Rooms/{RoomSid}/Participants/{Sid}" + path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VideoV1RoomRoomParticipant{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VideoV1RoomRoomParticipant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -709,29 +706,29 @@ Returns a single Track resource represented by TrackName or SID. @return VideoV1RoomRoomParticipantRoomParticipantPublishedTrack */ func (c *DefaultApiService) FetchRoomParticipantPublishedTrack(roomSid string, participantSid string, sid string) (*VideoV1RoomRoomParticipantRoomParticipantPublishedTrack, error) { - path := "/v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/PublishedTracks/{Sid}" - path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) - path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/PublishedTracks/{Sid}" + path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VideoV1RoomRoomParticipantRoomParticipantPublishedTrack{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VideoV1RoomRoomParticipantRoomParticipantPublishedTrack{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -742,28 +739,28 @@ Returns a list of Subscribe Rules for the Participant. @return VideoV1RoomRoomParticipantRoomParticipantSubscribeRule */ func (c *DefaultApiService) FetchRoomParticipantSubscribeRule(roomSid string, participantSid string) (*VideoV1RoomRoomParticipantRoomParticipantSubscribeRule, error) { - path := "/v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/SubscribeRules" - path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) - path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) + path := "/v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/SubscribeRules" + path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VideoV1RoomRoomParticipantRoomParticipantSubscribeRule{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VideoV1RoomRoomParticipantRoomParticipantSubscribeRule{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -775,29 +772,29 @@ Returns a single Track resource represented by `track_sid`. Note: Thi @return VideoV1RoomRoomParticipantRoomParticipantSubscribedTrack */ func (c *DefaultApiService) FetchRoomParticipantSubscribedTrack(roomSid string, participantSid string, sid string) (*VideoV1RoomRoomParticipantRoomParticipantSubscribedTrack, error) { - path := "/v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/SubscribedTracks/{Sid}" - path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) - path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/SubscribedTracks/{Sid}" + path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VideoV1RoomRoomParticipantRoomParticipantSubscribedTrack{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VideoV1RoomRoomParticipantRoomParticipantSubscribedTrack{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -807,28 +804,28 @@ FetchRoomRecording Method for FetchRoomRecording @return VideoV1RoomRoomRecording */ func (c *DefaultApiService) FetchRoomRecording(roomSid string, sid string) (*VideoV1RoomRoomRecording, error) { - path := "/v1/Rooms/{RoomSid}/Recordings/{Sid}" - path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Rooms/{RoomSid}/Recordings/{Sid}" + path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VideoV1RoomRoomRecording{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VideoV1RoomRoomRecording{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -838,35 +835,35 @@ Returns a list of Recording Rules for the Room. @return VideoV1RoomRoomRecordingRule */ func (c *DefaultApiService) FetchRoomRecordingRule(roomSid string) (*VideoV1RoomRoomRecordingRule, error) { - path := "/v1/Rooms/{RoomSid}/RecordingRules" - path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + path := "/v1/Rooms/{RoomSid}/RecordingRules" + path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VideoV1RoomRoomRecordingRule{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VideoV1RoomRoomRecordingRule{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListCompositionParams Optional parameters for the method 'ListComposition' type ListCompositionParams struct { - Status *string `json:"Status,omitempty"` - DateCreatedAfter *time.Time `json:"DateCreatedAfter,omitempty"` - DateCreatedBefore *time.Time `json:"DateCreatedBefore,omitempty"` - RoomSid *string `json:"RoomSid,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Status *string `json:"Status,omitempty"` + DateCreatedAfter *time.Time `json:"DateCreatedAfter,omitempty"` + DateCreatedBefore *time.Time `json:"DateCreatedBefore,omitempty"` + RoomSid *string `json:"RoomSid,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -881,49 +878,49 @@ List of all Recording compositions. @return VideoV1CompositionReadResponse */ func (c *DefaultApiService) ListComposition(params *ListCompositionParams) (*VideoV1CompositionReadResponse, error) { - path := "/v1/Compositions" - - data := url.Values{} - headers := 0 - - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - if params != nil && params.DateCreatedAfter != nil { - data.Set("DateCreatedAfter", string(*params.DateCreatedAfter)) - } - if params != nil && params.DateCreatedBefore != nil { - data.Set("DateCreatedBefore", string(*params.DateCreatedBefore)) - } - if params != nil && params.RoomSid != nil { - data.Set("RoomSid", *params.RoomSid) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VideoV1CompositionReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Compositions" + + data := url.Values{} + headers := 0 + + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.DateCreatedAfter != nil { + data.Set("DateCreatedAfter", string(*params.DateCreatedAfter)) + } + if params != nil && params.DateCreatedBefore != nil { + data.Set("DateCreatedBefore", string(*params.DateCreatedBefore)) + } + if params != nil && params.RoomSid != nil { + data.Set("RoomSid", *params.RoomSid) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1CompositionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListCompositionHookParams Optional parameters for the method 'ListCompositionHook' type ListCompositionHookParams struct { - Enabled *bool `json:"Enabled,omitempty"` - DateCreatedAfter *time.Time `json:"DateCreatedAfter,omitempty"` - DateCreatedBefore *time.Time `json:"DateCreatedBefore,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + DateCreatedAfter *time.Time `json:"DateCreatedAfter,omitempty"` + DateCreatedBefore *time.Time `json:"DateCreatedBefore,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -938,51 +935,51 @@ List of all Recording CompositionHook resources. @return VideoV1CompositionHookReadResponse */ func (c *DefaultApiService) ListCompositionHook(params *ListCompositionHookParams) (*VideoV1CompositionHookReadResponse, error) { - path := "/v1/CompositionHooks" - - data := url.Values{} - headers := 0 - - if params != nil && params.Enabled != nil { - data.Set("Enabled", string(*params.Enabled)) - } - if params != nil && params.DateCreatedAfter != nil { - data.Set("DateCreatedAfter", string(*params.DateCreatedAfter)) - } - if params != nil && params.DateCreatedBefore != nil { - data.Set("DateCreatedBefore", string(*params.DateCreatedBefore)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VideoV1CompositionHookReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/CompositionHooks" + + data := url.Values{} + headers := 0 + + if params != nil && params.Enabled != nil { + data.Set("Enabled", string(*params.Enabled)) + } + if params != nil && params.DateCreatedAfter != nil { + data.Set("DateCreatedAfter", string(*params.DateCreatedAfter)) + } + if params != nil && params.DateCreatedBefore != nil { + data.Set("DateCreatedBefore", string(*params.DateCreatedBefore)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1CompositionHookReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListRecordingParams Optional parameters for the method 'ListRecording' type ListRecordingParams struct { - Status *string `json:"Status,omitempty"` - SourceSid *string `json:"SourceSid,omitempty"` - GroupingSid *[]string `json:"GroupingSid,omitempty"` - DateCreatedAfter *time.Time `json:"DateCreatedAfter,omitempty"` - DateCreatedBefore *time.Time `json:"DateCreatedBefore,omitempty"` - MediaType *string `json:"MediaType,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Status *string `json:"Status,omitempty"` + SourceSid *string `json:"SourceSid,omitempty"` + GroupingSid *[]string `json:"GroupingSid,omitempty"` + DateCreatedAfter *time.Time `json:"DateCreatedAfter,omitempty"` + DateCreatedBefore *time.Time `json:"DateCreatedBefore,omitempty"` + MediaType *string `json:"MediaType,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -999,55 +996,55 @@ List of all Track recordings. @return VideoV1RecordingReadResponse */ func (c *DefaultApiService) ListRecording(params *ListRecordingParams) (*VideoV1RecordingReadResponse, error) { - path := "/v1/Recordings" - - data := url.Values{} - headers := 0 - - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - if params != nil && params.SourceSid != nil { - data.Set("SourceSid", *params.SourceSid) - } - if params != nil && params.GroupingSid != nil { - data.Set("GroupingSid", string(*params.GroupingSid)) - } - if params != nil && params.DateCreatedAfter != nil { - data.Set("DateCreatedAfter", string(*params.DateCreatedAfter)) - } - if params != nil && params.DateCreatedBefore != nil { - data.Set("DateCreatedBefore", string(*params.DateCreatedBefore)) - } - if params != nil && params.MediaType != nil { - data.Set("MediaType", *params.MediaType) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VideoV1RecordingReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Recordings" + + data := url.Values{} + headers := 0 + + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.SourceSid != nil { + data.Set("SourceSid", *params.SourceSid) + } + if params != nil && params.GroupingSid != nil { + data.Set("GroupingSid", string(*params.GroupingSid)) + } + if params != nil && params.DateCreatedAfter != nil { + data.Set("DateCreatedAfter", string(*params.DateCreatedAfter)) + } + if params != nil && params.DateCreatedBefore != nil { + data.Set("DateCreatedBefore", string(*params.DateCreatedBefore)) + } + if params != nil && params.MediaType != nil { + data.Set("MediaType", *params.MediaType) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1RecordingReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListRoomParams Optional parameters for the method 'ListRoom' type ListRoomParams struct { - Status *string `json:"Status,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` - DateCreatedAfter *time.Time `json:"DateCreatedAfter,omitempty"` - DateCreatedBefore *time.Time `json:"DateCreatedBefore,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Status *string `json:"Status,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + DateCreatedAfter *time.Time `json:"DateCreatedAfter,omitempty"` + DateCreatedBefore *time.Time `json:"DateCreatedBefore,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1061,49 +1058,49 @@ ListRoom Method for ListRoom @return VideoV1RoomReadResponse */ func (c *DefaultApiService) ListRoom(params *ListRoomParams) (*VideoV1RoomReadResponse, error) { - path := "/v1/Rooms" - - data := url.Values{} - headers := 0 - - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } - if params != nil && params.DateCreatedAfter != nil { - data.Set("DateCreatedAfter", string(*params.DateCreatedAfter)) - } - if params != nil && params.DateCreatedBefore != nil { - data.Set("DateCreatedBefore", string(*params.DateCreatedBefore)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VideoV1RoomReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Rooms" + + data := url.Values{} + headers := 0 + + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + if params != nil && params.DateCreatedAfter != nil { + data.Set("DateCreatedAfter", string(*params.DateCreatedAfter)) + } + if params != nil && params.DateCreatedBefore != nil { + data.Set("DateCreatedBefore", string(*params.DateCreatedBefore)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1RoomReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListRoomParticipantParams Optional parameters for the method 'ListRoomParticipant' type ListRoomParticipantParams struct { - Status *string `json:"Status,omitempty"` - Identity *string `json:"Identity,omitempty"` - DateCreatedAfter *time.Time `json:"DateCreatedAfter,omitempty"` - DateCreatedBefore *time.Time `json:"DateCreatedBefore,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Status *string `json:"Status,omitempty"` + Identity *string `json:"Identity,omitempty"` + DateCreatedAfter *time.Time `json:"DateCreatedAfter,omitempty"` + DateCreatedBefore *time.Time `json:"DateCreatedBefore,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1118,46 +1115,46 @@ ListRoomParticipant Method for ListRoomParticipant @return VideoV1RoomRoomParticipantReadResponse */ func (c *DefaultApiService) ListRoomParticipant(roomSid string, params *ListRoomParticipantParams) (*VideoV1RoomRoomParticipantReadResponse, error) { - path := "/v1/Rooms/{RoomSid}/Participants" - path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) - } - if params != nil && params.DateCreatedAfter != nil { - data.Set("DateCreatedAfter", string(*params.DateCreatedAfter)) - } - if params != nil && params.DateCreatedBefore != nil { - data.Set("DateCreatedBefore", string(*params.DateCreatedBefore)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VideoV1RoomRoomParticipantReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Rooms/{RoomSid}/Participants" + path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.Identity != nil { + data.Set("Identity", *params.Identity) + } + if params != nil && params.DateCreatedAfter != nil { + data.Set("DateCreatedAfter", string(*params.DateCreatedAfter)) + } + if params != nil && params.DateCreatedBefore != nil { + data.Set("DateCreatedBefore", string(*params.DateCreatedBefore)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1RoomRoomParticipantReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListRoomParticipantPublishedTrackParams Optional parameters for the method 'ListRoomParticipantPublishedTrack' type ListRoomParticipantPublishedTrackParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1170,35 +1167,35 @@ Returns a list of tracks associated with a given Participant. Only `current @return VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse */ func (c *DefaultApiService) ListRoomParticipantPublishedTrack(roomSid string, participantSid string, params *ListRoomParticipantPublishedTrackParams) (*VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse, error) { - path := "/v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/PublishedTracks" - path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) - path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) + path := "/v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/PublishedTracks" + path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListRoomParticipantSubscribedTrackParams Optional parameters for the method 'ListRoomParticipantSubscribedTrack' type ListRoomParticipantSubscribedTrackParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1211,39 +1208,39 @@ Returns a list of tracks that are subscribed for the participant. @return VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse */ func (c *DefaultApiService) ListRoomParticipantSubscribedTrack(roomSid string, participantSid string, params *ListRoomParticipantSubscribedTrackParams) (*VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse, error) { - path := "/v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/SubscribedTracks" - path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) - path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) + path := "/v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/SubscribedTracks" + path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListRoomRecordingParams Optional parameters for the method 'ListRoomRecording' type ListRoomRecordingParams struct { - Status *string `json:"Status,omitempty"` - SourceSid *string `json:"SourceSid,omitempty"` - DateCreatedAfter *time.Time `json:"DateCreatedAfter,omitempty"` - DateCreatedBefore *time.Time `json:"DateCreatedBefore,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Status *string `json:"Status,omitempty"` + SourceSid *string `json:"SourceSid,omitempty"` + DateCreatedAfter *time.Time `json:"DateCreatedAfter,omitempty"` + DateCreatedBefore *time.Time `json:"DateCreatedBefore,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1258,55 +1255,55 @@ ListRoomRecording Method for ListRoomRecording @return VideoV1RoomRoomRecordingReadResponse */ func (c *DefaultApiService) ListRoomRecording(roomSid string, params *ListRoomRecordingParams) (*VideoV1RoomRoomRecordingReadResponse, error) { - path := "/v1/Rooms/{RoomSid}/Recordings" - path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - if params != nil && params.SourceSid != nil { - data.Set("SourceSid", *params.SourceSid) - } - if params != nil && params.DateCreatedAfter != nil { - data.Set("DateCreatedAfter", string(*params.DateCreatedAfter)) - } - if params != nil && params.DateCreatedBefore != nil { - data.Set("DateCreatedBefore", string(*params.DateCreatedBefore)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VideoV1RoomRoomRecordingReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Rooms/{RoomSid}/Recordings" + path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.SourceSid != nil { + data.Set("SourceSid", *params.SourceSid) + } + if params != nil && params.DateCreatedAfter != nil { + data.Set("DateCreatedAfter", string(*params.DateCreatedAfter)) + } + if params != nil && params.DateCreatedBefore != nil { + data.Set("DateCreatedBefore", string(*params.DateCreatedBefore)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1RoomRoomRecordingReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateCompositionHookParams Optional parameters for the method 'UpdateCompositionHook' type UpdateCompositionHookParams struct { - AudioSources *[]string `json:"AudioSources,omitempty"` - AudioSourcesExcluded *[]string `json:"AudioSourcesExcluded,omitempty"` - Enabled *bool `json:"Enabled,omitempty"` - Format *string `json:"Format,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Resolution *string `json:"Resolution,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - Trim *bool `json:"Trim,omitempty"` - VideoLayout *map[string]interface{} `json:"VideoLayout,omitempty"` + AudioSources *[]string `json:"AudioSources,omitempty"` + AudioSourcesExcluded *[]string `json:"AudioSourcesExcluded,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + Format *string `json:"Format,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Resolution *string `json:"Resolution,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + Trim *bool `json:"Trim,omitempty"` + VideoLayout *map[string]interface{} `json:"VideoLayout,omitempty"` } /* @@ -1326,67 +1323,67 @@ UpdateCompositionHook Method for UpdateCompositionHook @return VideoV1CompositionHook */ func (c *DefaultApiService) UpdateCompositionHook(sid string, params *UpdateCompositionHookParams) (*VideoV1CompositionHook, error) { - path := "/v1/CompositionHooks/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.AudioSources != nil { - data.Set("AudioSources", *params.AudioSources) - } - if params != nil && params.AudioSourcesExcluded != nil { - data.Set("AudioSourcesExcluded", *params.AudioSourcesExcluded) - } - if params != nil && params.Enabled != nil { - data.Set("Enabled", string(*params.Enabled)) - } - if params != nil && params.Format != nil { - data.Set("Format", *params.Format) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Resolution != nil { - data.Set("Resolution", *params.Resolution) - } - if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) - } - if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) - } - if params != nil && params.Trim != nil { - data.Set("Trim", string(*params.Trim)) - } - if params != nil && params.VideoLayout != nil { - v, err := json.Marshal(params.VideoLayout) - - if err != nil { - return nil, err - } - - data.Set("VideoLayout", string(v)) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VideoV1CompositionHook{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/CompositionHooks/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AudioSources != nil { + data.Set("AudioSources", *params.AudioSources) + } + if params != nil && params.AudioSourcesExcluded != nil { + data.Set("AudioSourcesExcluded", *params.AudioSourcesExcluded) + } + if params != nil && params.Enabled != nil { + data.Set("Enabled", string(*params.Enabled)) + } + if params != nil && params.Format != nil { + data.Set("Format", *params.Format) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Resolution != nil { + data.Set("Resolution", *params.Resolution) + } + if params != nil && params.StatusCallback != nil { + data.Set("StatusCallback", *params.StatusCallback) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.Trim != nil { + data.Set("Trim", string(*params.Trim)) + } + if params != nil && params.VideoLayout != nil { + v, err := json.Marshal(params.VideoLayout) + + if err != nil { + return nil, err + } + + data.Set("VideoLayout", string(v)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VideoV1CompositionHook{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateRoomParams Optional parameters for the method 'UpdateRoom' type UpdateRoomParams struct { - Status *string `json:"Status,omitempty"` + Status *string `json:"Status,omitempty"` } /* @@ -1397,34 +1394,34 @@ UpdateRoom Method for UpdateRoom @return VideoV1Room */ func (c *DefaultApiService) UpdateRoom(sid string, params *UpdateRoomParams) (*VideoV1Room, error) { - path := "/v1/Rooms/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Rooms/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VideoV1Room{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VideoV1Room{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateRoomParticipantParams Optional parameters for the method 'UpdateRoomParticipant' type UpdateRoomParticipantParams struct { - Status *string `json:"Status,omitempty"` + Status *string `json:"Status,omitempty"` } /* @@ -1436,35 +1433,35 @@ UpdateRoomParticipant Method for UpdateRoomParticipant @return VideoV1RoomRoomParticipant */ func (c *DefaultApiService) UpdateRoomParticipant(roomSid string, sid string, params *UpdateRoomParticipantParams) (*VideoV1RoomRoomParticipant, error) { - path := "/v1/Rooms/{RoomSid}/Participants/{Sid}" - path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Rooms/{RoomSid}/Participants/{Sid}" + path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VideoV1RoomRoomParticipant{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VideoV1RoomRoomParticipant{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateRoomParticipantSubscribeRuleParams Optional parameters for the method 'UpdateRoomParticipantSubscribeRule' type UpdateRoomParticipantSubscribeRuleParams struct { - Rules *map[string]interface{} `json:"Rules,omitempty"` + Rules *map[string]interface{} `json:"Rules,omitempty"` } /* @@ -1477,41 +1474,41 @@ Update the Subscribe Rules for the Participant @return VideoV1RoomRoomParticipantRoomParticipantSubscribeRule */ func (c *DefaultApiService) UpdateRoomParticipantSubscribeRule(roomSid string, participantSid string, params *UpdateRoomParticipantSubscribeRuleParams) (*VideoV1RoomRoomParticipantRoomParticipantSubscribeRule, error) { - path := "/v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/SubscribeRules" - path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) - path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) + path := "/v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/SubscribeRules" + path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Rules != nil { - v, err := json.Marshal(params.Rules) + if params != nil && params.Rules != nil { + v, err := json.Marshal(params.Rules) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("Rules", string(v)) - } + data.Set("Rules", string(v)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VideoV1RoomRoomParticipantRoomParticipantSubscribeRule{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VideoV1RoomRoomParticipantRoomParticipantSubscribeRule{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateRoomRecordingRuleParams Optional parameters for the method 'UpdateRoomRecordingRule' type UpdateRoomRecordingRuleParams struct { - Rules *map[string]interface{} `json:"Rules,omitempty"` + Rules *map[string]interface{} `json:"Rules,omitempty"` } /* @@ -1523,34 +1520,34 @@ Update the Recording Rules for the Room @return VideoV1RoomRoomRecordingRule */ func (c *DefaultApiService) UpdateRoomRecordingRule(roomSid string, params *UpdateRoomRecordingRuleParams) (*VideoV1RoomRoomRecordingRule, error) { - path := "/v1/Rooms/{RoomSid}/RecordingRules" - path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + path := "/v1/Rooms/{RoomSid}/RecordingRules" + path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.Rules != nil { - v, err := json.Marshal(params.Rules) + if params != nil && params.Rules != nil { + v, err := json.Marshal(params.Rules) - if err != nil { - return nil, err - } + if err != nil { + return nil, err + } - data.Set("Rules", string(v)) - } + data.Set("Rules", string(v)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VideoV1RoomRoomRecordingRule{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VideoV1RoomRoomRecordingRule{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } diff --git a/rest/video/v1/response.go b/rest/video/v1/response.go index ce49feb5a..483d6ae37 100644 --- a/rest/video/v1/response.go +++ b/rest/video/v1/response.go @@ -32,16 +32,14 @@ type APIResponse struct { Payload []byte `json:"-"` } -// Response returns a new APIResponse object. -func Response(r *http.Response) *APIResponse { - +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { response := &APIResponse{Response: r} return response } -// ResponseWithError returns a new APIResponse object with the provided error message. -func ResponseWithError(errorMessage string) *APIResponse { - +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { response := &APIResponse{Message: errorMessage} return response } diff --git a/rest/voice/v1/api_default.go b/rest/voice/v1/api_default.go index 81486cb5b..05aebfd3e 100644 --- a/rest/voice/v1/api_default.go +++ b/rest/voice/v1/api_default.go @@ -13,35 +13,33 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type DefaultApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewDefaultApiService(client *twilio.Client) *DefaultApiService { - return &DefaultApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &DefaultApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } // CreateByocTrunkParams Optional parameters for the method 'CreateByocTrunk' type CreateByocTrunkParams struct { - CnamLookupEnabled *bool `json:"CnamLookupEnabled,omitempty"` - ConnectionPolicySid *string `json:"ConnectionPolicySid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - FromDomainSid *string `json:"FromDomainSid,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - StatusCallbackUrl *string `json:"StatusCallbackUrl,omitempty"` - VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` - VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` - VoiceMethod *string `json:"VoiceMethod,omitempty"` - VoiceUrl *string `json:"VoiceUrl,omitempty"` + CnamLookupEnabled *bool `json:"CnamLookupEnabled,omitempty"` + ConnectionPolicySid *string `json:"ConnectionPolicySid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + FromDomainSid *string `json:"FromDomainSid,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + StatusCallbackUrl *string `json:"StatusCallbackUrl,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` } /* @@ -60,60 +58,60 @@ CreateByocTrunk Method for CreateByocTrunk @return VoiceV1ByocTrunk */ func (c *DefaultApiService) CreateByocTrunk(params *CreateByocTrunkParams) (*VoiceV1ByocTrunk, error) { - path := "/v1/ByocTrunks" - - data := url.Values{} - headers := 0 - - if params != nil && params.CnamLookupEnabled != nil { - data.Set("CnamLookupEnabled", string(*params.CnamLookupEnabled)) - } - if params != nil && params.ConnectionPolicySid != nil { - data.Set("ConnectionPolicySid", *params.ConnectionPolicySid) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.FromDomainSid != nil { - data.Set("FromDomainSid", *params.FromDomainSid) - } - if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) - } - if params != nil && params.StatusCallbackUrl != nil { - data.Set("StatusCallbackUrl", *params.StatusCallbackUrl) - } - if params != nil && params.VoiceFallbackMethod != nil { - data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) - } - if params != nil && params.VoiceFallbackUrl != nil { - data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) - } - if params != nil && params.VoiceMethod != nil { - data.Set("VoiceMethod", *params.VoiceMethod) - } - if params != nil && params.VoiceUrl != nil { - data.Set("VoiceUrl", *params.VoiceUrl) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VoiceV1ByocTrunk{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/ByocTrunks" + + data := url.Values{} + headers := 0 + + if params != nil && params.CnamLookupEnabled != nil { + data.Set("CnamLookupEnabled", string(*params.CnamLookupEnabled)) + } + if params != nil && params.ConnectionPolicySid != nil { + data.Set("ConnectionPolicySid", *params.ConnectionPolicySid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.FromDomainSid != nil { + data.Set("FromDomainSid", *params.FromDomainSid) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.StatusCallbackUrl != nil { + data.Set("StatusCallbackUrl", *params.StatusCallbackUrl) + } + if params != nil && params.VoiceFallbackMethod != nil { + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + } + if params != nil && params.VoiceFallbackUrl != nil { + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + } + if params != nil && params.VoiceMethod != nil { + data.Set("VoiceMethod", *params.VoiceMethod) + } + if params != nil && params.VoiceUrl != nil { + data.Set("VoiceUrl", *params.VoiceUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VoiceV1ByocTrunk{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateConnectionPolicyParams Optional parameters for the method 'CreateConnectionPolicy' type CreateConnectionPolicyParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -123,37 +121,37 @@ CreateConnectionPolicy Method for CreateConnectionPolicy @return VoiceV1ConnectionPolicy */ func (c *DefaultApiService) CreateConnectionPolicy(params *CreateConnectionPolicyParams) (*VoiceV1ConnectionPolicy, error) { - path := "/v1/ConnectionPolicies" + path := "/v1/ConnectionPolicies" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VoiceV1ConnectionPolicy{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VoiceV1ConnectionPolicy{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateConnectionPolicyTargetParams Optional parameters for the method 'CreateConnectionPolicyTarget' type CreateConnectionPolicyTargetParams struct { - Enabled *bool `json:"Enabled,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Priority *int32 `json:"Priority,omitempty"` - Target *string `json:"Target,omitempty"` - Weight *int32 `json:"Weight,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Priority *int32 `json:"Priority,omitempty"` + Target *string `json:"Target,omitempty"` + Weight *int32 `json:"Weight,omitempty"` } /* @@ -168,46 +166,46 @@ CreateConnectionPolicyTarget Method for CreateConnectionPolicyTarget @return VoiceV1ConnectionPolicyConnectionPolicyTarget */ func (c *DefaultApiService) CreateConnectionPolicyTarget(connectionPolicySid string, params *CreateConnectionPolicyTargetParams) (*VoiceV1ConnectionPolicyConnectionPolicyTarget, error) { - path := "/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets" - path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", connectionPolicySid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Enabled != nil { - data.Set("Enabled", string(*params.Enabled)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Priority != nil { - data.Set("Priority", string(*params.Priority)) - } - if params != nil && params.Target != nil { - data.Set("Target", *params.Target) - } - if params != nil && params.Weight != nil { - data.Set("Weight", string(*params.Weight)) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VoiceV1ConnectionPolicyConnectionPolicyTarget{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets" + path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", connectionPolicySid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Enabled != nil { + data.Set("Enabled", string(*params.Enabled)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Priority != nil { + data.Set("Priority", string(*params.Priority)) + } + if params != nil && params.Target != nil { + data.Set("Target", *params.Target) + } + if params != nil && params.Weight != nil { + data.Set("Weight", string(*params.Weight)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VoiceV1ConnectionPolicyConnectionPolicyTarget{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateDialingPermissionsCountryBulkUpdateParams Optional parameters for the method 'CreateDialingPermissionsCountryBulkUpdate' type CreateDialingPermissionsCountryBulkUpdateParams struct { - UpdateRequest *string `json:"UpdateRequest,omitempty"` + UpdateRequest *string `json:"UpdateRequest,omitempty"` } /* @@ -218,35 +216,35 @@ Create a bulk update request to change voice dialing country permissions of one @return VoiceV1DialingPermissionsDialingPermissionsCountryBulkUpdate */ func (c *DefaultApiService) CreateDialingPermissionsCountryBulkUpdate(params *CreateDialingPermissionsCountryBulkUpdateParams) (*VoiceV1DialingPermissionsDialingPermissionsCountryBulkUpdate, error) { - path := "/v1/DialingPermissions/BulkCountryUpdates" + path := "/v1/DialingPermissions/BulkCountryUpdates" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.UpdateRequest != nil { - data.Set("UpdateRequest", *params.UpdateRequest) - } + if params != nil && params.UpdateRequest != nil { + data.Set("UpdateRequest", *params.UpdateRequest) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VoiceV1DialingPermissionsDialingPermissionsCountryBulkUpdate{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VoiceV1DialingPermissionsDialingPermissionsCountryBulkUpdate{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateIpRecordParams Optional parameters for the method 'CreateIpRecord' type CreateIpRecordParams struct { - CidrPrefixLength *int32 `json:"CidrPrefixLength,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - IpAddress *string `json:"IpAddress,omitempty"` + CidrPrefixLength *int32 `json:"CidrPrefixLength,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IpAddress *string `json:"IpAddress,omitempty"` } /* @@ -258,40 +256,40 @@ CreateIpRecord Method for CreateIpRecord @return VoiceV1IpRecord */ func (c *DefaultApiService) CreateIpRecord(params *CreateIpRecordParams) (*VoiceV1IpRecord, error) { - path := "/v1/IpRecords" + path := "/v1/IpRecords" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.CidrPrefixLength != nil { - data.Set("CidrPrefixLength", string(*params.CidrPrefixLength)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.IpAddress != nil { - data.Set("IpAddress", *params.IpAddress) - } + if params != nil && params.CidrPrefixLength != nil { + data.Set("CidrPrefixLength", string(*params.CidrPrefixLength)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.IpAddress != nil { + data.Set("IpAddress", *params.IpAddress) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VoiceV1IpRecord{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VoiceV1IpRecord{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // CreateSourceIpMappingParams Optional parameters for the method 'CreateSourceIpMapping' type CreateSourceIpMappingParams struct { - IpRecordSid *string `json:"IpRecordSid,omitempty"` - SipDomainSid *string `json:"SipDomainSid,omitempty"` + IpRecordSid *string `json:"IpRecordSid,omitempty"` + SipDomainSid *string `json:"SipDomainSid,omitempty"` } /* @@ -302,32 +300,32 @@ CreateSourceIpMapping Method for CreateSourceIpMapping @return VoiceV1SourceIpMapping */ func (c *DefaultApiService) CreateSourceIpMapping(params *CreateSourceIpMappingParams) (*VoiceV1SourceIpMapping, error) { - path := "/v1/SourceIpMappings" + path := "/v1/SourceIpMappings" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.IpRecordSid != nil { - data.Set("IpRecordSid", *params.IpRecordSid) - } - if params != nil && params.SipDomainSid != nil { - data.Set("SipDomainSid", *params.SipDomainSid) - } + if params != nil && params.IpRecordSid != nil { + data.Set("IpRecordSid", *params.IpRecordSid) + } + if params != nil && params.SipDomainSid != nil { + data.Set("SipDomainSid", *params.SipDomainSid) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VoiceV1SourceIpMapping{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VoiceV1SourceIpMapping{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -335,22 +333,22 @@ DeleteByocTrunk Method for DeleteByocTrunk * @param sid The Twilio-provided string that uniquely identifies the BYOC Trunk resource to delete. */ func (c *DefaultApiService) DeleteByocTrunk(sid string) (error) { - path := "/v1/ByocTrunks/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/ByocTrunks/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -358,22 +356,22 @@ DeleteConnectionPolicy Method for DeleteConnectionPolicy * @param sid The unique string that we created to identify the Connection Policy resource to delete. */ func (c *DefaultApiService) DeleteConnectionPolicy(sid string) (error) { - path := "/v1/ConnectionPolicies/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/ConnectionPolicies/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -382,23 +380,23 @@ DeleteConnectionPolicyTarget Method for DeleteConnectionPolicyTarget * @param sid The unique string that we created to identify the Target resource to delete. */ func (c *DefaultApiService) DeleteConnectionPolicyTarget(connectionPolicySid string, sid string) (error) { - path := "/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets/{Sid}" - path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", connectionPolicySid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets/{Sid}" + path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", connectionPolicySid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -406,22 +404,22 @@ DeleteIpRecord Method for DeleteIpRecord * @param sid The Twilio-provided string that uniquely identifies the IP Record resource to delete. */ func (c *DefaultApiService) DeleteIpRecord(sid string) (error) { - path := "/v1/IpRecords/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/IpRecords/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -429,22 +427,22 @@ DeleteSourceIpMapping Method for DeleteSourceIpMapping * @param sid The Twilio-provided string that uniquely identifies the IP Record resource to delete. */ func (c *DefaultApiService) DeleteSourceIpMapping(sid string) (error) { - path := "/v1/SourceIpMappings/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/SourceIpMappings/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -453,27 +451,27 @@ FetchByocTrunk Method for FetchByocTrunk @return VoiceV1ByocTrunk */ func (c *DefaultApiService) FetchByocTrunk(sid string) (*VoiceV1ByocTrunk, error) { - path := "/v1/ByocTrunks/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/ByocTrunks/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VoiceV1ByocTrunk{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VoiceV1ByocTrunk{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -482,27 +480,27 @@ FetchConnectionPolicy Method for FetchConnectionPolicy @return VoiceV1ConnectionPolicy */ func (c *DefaultApiService) FetchConnectionPolicy(sid string) (*VoiceV1ConnectionPolicy, error) { - path := "/v1/ConnectionPolicies/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/ConnectionPolicies/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VoiceV1ConnectionPolicy{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VoiceV1ConnectionPolicy{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -512,28 +510,28 @@ FetchConnectionPolicyTarget Method for FetchConnectionPolicyTarget @return VoiceV1ConnectionPolicyConnectionPolicyTarget */ func (c *DefaultApiService) FetchConnectionPolicyTarget(connectionPolicySid string, sid string) (*VoiceV1ConnectionPolicyConnectionPolicyTarget, error) { - path := "/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets/{Sid}" - path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", connectionPolicySid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets/{Sid}" + path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", connectionPolicySid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VoiceV1ConnectionPolicyConnectionPolicyTarget{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VoiceV1ConnectionPolicyConnectionPolicyTarget{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -543,27 +541,27 @@ Retrieve voice dialing country permissions identified by the given ISO country c @return VoiceV1DialingPermissionsDialingPermissionsCountryInstance */ func (c *DefaultApiService) FetchDialingPermissionsCountry(isoCode string) (*VoiceV1DialingPermissionsDialingPermissionsCountryInstance, error) { - path := "/v1/DialingPermissions/Countries/{IsoCode}" - path = strings.Replace(path, "{"+"IsoCode"+"}", isoCode, -1) + path := "/v1/DialingPermissions/Countries/{IsoCode}" + path = strings.Replace(path, "{"+"IsoCode"+"}", isoCode, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VoiceV1DialingPermissionsDialingPermissionsCountryInstance{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VoiceV1DialingPermissionsDialingPermissionsCountryInstance{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -572,26 +570,26 @@ Retrieve voice dialing permissions inheritance for the sub-account @return VoiceV1DialingPermissionsDialingPermissionsSettings */ func (c *DefaultApiService) FetchDialingPermissionsSettings() (*VoiceV1DialingPermissionsDialingPermissionsSettings, error) { - path := "/v1/Settings" + path := "/v1/Settings" - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VoiceV1DialingPermissionsDialingPermissionsSettings{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VoiceV1DialingPermissionsDialingPermissionsSettings{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -600,27 +598,27 @@ FetchIpRecord Method for FetchIpRecord @return VoiceV1IpRecord */ func (c *DefaultApiService) FetchIpRecord(sid string) (*VoiceV1IpRecord, error) { - path := "/v1/IpRecords/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/IpRecords/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VoiceV1IpRecord{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VoiceV1IpRecord{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -629,31 +627,31 @@ FetchSourceIpMapping Method for FetchSourceIpMapping @return VoiceV1SourceIpMapping */ func (c *DefaultApiService) FetchSourceIpMapping(sid string) (*VoiceV1SourceIpMapping, error) { - path := "/v1/SourceIpMappings/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/SourceIpMappings/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VoiceV1SourceIpMapping{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VoiceV1SourceIpMapping{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListByocTrunkParams Optional parameters for the method 'ListByocTrunk' type ListByocTrunkParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -663,33 +661,33 @@ ListByocTrunk Method for ListByocTrunk @return VoiceV1ByocTrunkReadResponse */ func (c *DefaultApiService) ListByocTrunk(params *ListByocTrunkParams) (*VoiceV1ByocTrunkReadResponse, error) { - path := "/v1/ByocTrunks" + path := "/v1/ByocTrunks" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VoiceV1ByocTrunkReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VoiceV1ByocTrunkReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListConnectionPolicyParams Optional parameters for the method 'ListConnectionPolicy' type ListConnectionPolicyParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -699,33 +697,33 @@ ListConnectionPolicy Method for ListConnectionPolicy @return VoiceV1ConnectionPolicyReadResponse */ func (c *DefaultApiService) ListConnectionPolicy(params *ListConnectionPolicyParams) (*VoiceV1ConnectionPolicyReadResponse, error) { - path := "/v1/ConnectionPolicies" + path := "/v1/ConnectionPolicies" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VoiceV1ConnectionPolicyReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VoiceV1ConnectionPolicyReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListConnectionPolicyTargetParams Optional parameters for the method 'ListConnectionPolicyTarget' type ListConnectionPolicyTargetParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -736,40 +734,40 @@ ListConnectionPolicyTarget Method for ListConnectionPolicyTarget @return VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse */ func (c *DefaultApiService) ListConnectionPolicyTarget(connectionPolicySid string, params *ListConnectionPolicyTargetParams) (*VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse, error) { - path := "/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets" - path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", connectionPolicySid, -1) + path := "/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets" + path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", connectionPolicySid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListDialingPermissionsCountryParams Optional parameters for the method 'ListDialingPermissionsCountry' type ListDialingPermissionsCountryParams struct { - IsoCode *string `json:"IsoCode,omitempty"` - Continent *string `json:"Continent,omitempty"` - CountryCode *string `json:"CountryCode,omitempty"` - LowRiskNumbersEnabled *bool `json:"LowRiskNumbersEnabled,omitempty"` - HighRiskSpecialNumbersEnabled *bool `json:"HighRiskSpecialNumbersEnabled,omitempty"` - HighRiskTollfraudNumbersEnabled *bool `json:"HighRiskTollfraudNumbersEnabled,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + IsoCode *string `json:"IsoCode,omitempty"` + Continent *string `json:"Continent,omitempty"` + CountryCode *string `json:"CountryCode,omitempty"` + LowRiskNumbersEnabled *bool `json:"LowRiskNumbersEnabled,omitempty"` + HighRiskSpecialNumbersEnabled *bool `json:"HighRiskSpecialNumbersEnabled,omitempty"` + HighRiskTollfraudNumbersEnabled *bool `json:"HighRiskTollfraudNumbersEnabled,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -786,51 +784,51 @@ Retrieve all voice dialing country permissions for this account @return VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse */ func (c *DefaultApiService) ListDialingPermissionsCountry(params *ListDialingPermissionsCountryParams) (*VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse, error) { - path := "/v1/DialingPermissions/Countries" - - data := url.Values{} - headers := 0 - - if params != nil && params.IsoCode != nil { - data.Set("IsoCode", *params.IsoCode) - } - if params != nil && params.Continent != nil { - data.Set("Continent", *params.Continent) - } - if params != nil && params.CountryCode != nil { - data.Set("CountryCode", *params.CountryCode) - } - if params != nil && params.LowRiskNumbersEnabled != nil { - data.Set("LowRiskNumbersEnabled", string(*params.LowRiskNumbersEnabled)) - } - if params != nil && params.HighRiskSpecialNumbersEnabled != nil { - data.Set("HighRiskSpecialNumbersEnabled", string(*params.HighRiskSpecialNumbersEnabled)) - } - if params != nil && params.HighRiskTollfraudNumbersEnabled != nil { - data.Set("HighRiskTollfraudNumbersEnabled", string(*params.HighRiskTollfraudNumbersEnabled)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/DialingPermissions/Countries" + + data := url.Values{} + headers := 0 + + if params != nil && params.IsoCode != nil { + data.Set("IsoCode", *params.IsoCode) + } + if params != nil && params.Continent != nil { + data.Set("Continent", *params.Continent) + } + if params != nil && params.CountryCode != nil { + data.Set("CountryCode", *params.CountryCode) + } + if params != nil && params.LowRiskNumbersEnabled != nil { + data.Set("LowRiskNumbersEnabled", string(*params.LowRiskNumbersEnabled)) + } + if params != nil && params.HighRiskSpecialNumbersEnabled != nil { + data.Set("HighRiskSpecialNumbersEnabled", string(*params.HighRiskSpecialNumbersEnabled)) + } + if params != nil && params.HighRiskTollfraudNumbersEnabled != nil { + data.Set("HighRiskTollfraudNumbersEnabled", string(*params.HighRiskTollfraudNumbersEnabled)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListDialingPermissionsHrsPrefixesParams Optional parameters for the method 'ListDialingPermissionsHrsPrefixes' type ListDialingPermissionsHrsPrefixesParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -842,34 +840,34 @@ Fetch the high-risk special services prefixes from the country resource correspo @return VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse */ func (c *DefaultApiService) ListDialingPermissionsHrsPrefixes(isoCode string, params *ListDialingPermissionsHrsPrefixesParams) (*VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse, error) { - path := "/v1/DialingPermissions/Countries/{IsoCode}/HighRiskSpecialPrefixes" - path = strings.Replace(path, "{"+"IsoCode"+"}", isoCode, -1) + path := "/v1/DialingPermissions/Countries/{IsoCode}/HighRiskSpecialPrefixes" + path = strings.Replace(path, "{"+"IsoCode"+"}", isoCode, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListIpRecordParams Optional parameters for the method 'ListIpRecord' type ListIpRecordParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -879,33 +877,33 @@ ListIpRecord Method for ListIpRecord @return VoiceV1IpRecordReadResponse */ func (c *DefaultApiService) ListIpRecord(params *ListIpRecordParams) (*VoiceV1IpRecordReadResponse, error) { - path := "/v1/IpRecords" + path := "/v1/IpRecords" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VoiceV1IpRecordReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VoiceV1IpRecordReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListSourceIpMappingParams Optional parameters for the method 'ListSourceIpMapping' type ListSourceIpMappingParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -915,42 +913,42 @@ ListSourceIpMapping Method for ListSourceIpMapping @return VoiceV1SourceIpMappingReadResponse */ func (c *DefaultApiService) ListSourceIpMapping(params *ListSourceIpMappingParams) (*VoiceV1SourceIpMappingReadResponse, error) { - path := "/v1/SourceIpMappings" + path := "/v1/SourceIpMappings" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VoiceV1SourceIpMappingReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VoiceV1SourceIpMappingReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateByocTrunkParams Optional parameters for the method 'UpdateByocTrunk' type UpdateByocTrunkParams struct { - CnamLookupEnabled *bool `json:"CnamLookupEnabled,omitempty"` - ConnectionPolicySid *string `json:"ConnectionPolicySid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - FromDomainSid *string `json:"FromDomainSid,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - StatusCallbackUrl *string `json:"StatusCallbackUrl,omitempty"` - VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` - VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` - VoiceMethod *string `json:"VoiceMethod,omitempty"` - VoiceUrl *string `json:"VoiceUrl,omitempty"` + CnamLookupEnabled *bool `json:"CnamLookupEnabled,omitempty"` + ConnectionPolicySid *string `json:"ConnectionPolicySid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + FromDomainSid *string `json:"FromDomainSid,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + StatusCallbackUrl *string `json:"StatusCallbackUrl,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` } /* @@ -970,61 +968,61 @@ UpdateByocTrunk Method for UpdateByocTrunk @return VoiceV1ByocTrunk */ func (c *DefaultApiService) UpdateByocTrunk(sid string, params *UpdateByocTrunkParams) (*VoiceV1ByocTrunk, error) { - path := "/v1/ByocTrunks/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.CnamLookupEnabled != nil { - data.Set("CnamLookupEnabled", string(*params.CnamLookupEnabled)) - } - if params != nil && params.ConnectionPolicySid != nil { - data.Set("ConnectionPolicySid", *params.ConnectionPolicySid) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.FromDomainSid != nil { - data.Set("FromDomainSid", *params.FromDomainSid) - } - if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) - } - if params != nil && params.StatusCallbackUrl != nil { - data.Set("StatusCallbackUrl", *params.StatusCallbackUrl) - } - if params != nil && params.VoiceFallbackMethod != nil { - data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) - } - if params != nil && params.VoiceFallbackUrl != nil { - data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) - } - if params != nil && params.VoiceMethod != nil { - data.Set("VoiceMethod", *params.VoiceMethod) - } - if params != nil && params.VoiceUrl != nil { - data.Set("VoiceUrl", *params.VoiceUrl) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VoiceV1ByocTrunk{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/ByocTrunks/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.CnamLookupEnabled != nil { + data.Set("CnamLookupEnabled", string(*params.CnamLookupEnabled)) + } + if params != nil && params.ConnectionPolicySid != nil { + data.Set("ConnectionPolicySid", *params.ConnectionPolicySid) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.FromDomainSid != nil { + data.Set("FromDomainSid", *params.FromDomainSid) + } + if params != nil && params.StatusCallbackMethod != nil { + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + } + if params != nil && params.StatusCallbackUrl != nil { + data.Set("StatusCallbackUrl", *params.StatusCallbackUrl) + } + if params != nil && params.VoiceFallbackMethod != nil { + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + } + if params != nil && params.VoiceFallbackUrl != nil { + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + } + if params != nil && params.VoiceMethod != nil { + data.Set("VoiceMethod", *params.VoiceMethod) + } + if params != nil && params.VoiceUrl != nil { + data.Set("VoiceUrl", *params.VoiceUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VoiceV1ByocTrunk{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateConnectionPolicyParams Optional parameters for the method 'UpdateConnectionPolicy' type UpdateConnectionPolicyParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -1035,38 +1033,38 @@ UpdateConnectionPolicy Method for UpdateConnectionPolicy @return VoiceV1ConnectionPolicy */ func (c *DefaultApiService) UpdateConnectionPolicy(sid string, params *UpdateConnectionPolicyParams) (*VoiceV1ConnectionPolicy, error) { - path := "/v1/ConnectionPolicies/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/ConnectionPolicies/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VoiceV1ConnectionPolicy{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VoiceV1ConnectionPolicy{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateConnectionPolicyTargetParams Optional parameters for the method 'UpdateConnectionPolicyTarget' type UpdateConnectionPolicyTargetParams struct { - Enabled *bool `json:"Enabled,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Priority *int32 `json:"Priority,omitempty"` - Target *string `json:"Target,omitempty"` - Weight *int32 `json:"Weight,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Priority *int32 `json:"Priority,omitempty"` + Target *string `json:"Target,omitempty"` + Weight *int32 `json:"Weight,omitempty"` } /* @@ -1082,47 +1080,47 @@ UpdateConnectionPolicyTarget Method for UpdateConnectionPolicyTarget @return VoiceV1ConnectionPolicyConnectionPolicyTarget */ func (c *DefaultApiService) UpdateConnectionPolicyTarget(connectionPolicySid string, sid string, params *UpdateConnectionPolicyTargetParams) (*VoiceV1ConnectionPolicyConnectionPolicyTarget, error) { - path := "/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets/{Sid}" - path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", connectionPolicySid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.Enabled != nil { - data.Set("Enabled", string(*params.Enabled)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Priority != nil { - data.Set("Priority", string(*params.Priority)) - } - if params != nil && params.Target != nil { - data.Set("Target", *params.Target) - } - if params != nil && params.Weight != nil { - data.Set("Weight", string(*params.Weight)) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &VoiceV1ConnectionPolicyConnectionPolicyTarget{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets/{Sid}" + path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", connectionPolicySid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.Enabled != nil { + data.Set("Enabled", string(*params.Enabled)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Priority != nil { + data.Set("Priority", string(*params.Priority)) + } + if params != nil && params.Target != nil { + data.Set("Target", *params.Target) + } + if params != nil && params.Weight != nil { + data.Set("Weight", string(*params.Weight)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &VoiceV1ConnectionPolicyConnectionPolicyTarget{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateDialingPermissionsSettingsParams Optional parameters for the method 'UpdateDialingPermissionsSettings' type UpdateDialingPermissionsSettingsParams struct { - DialingPermissionsInheritance *bool `json:"DialingPermissionsInheritance,omitempty"` + DialingPermissionsInheritance *bool `json:"DialingPermissionsInheritance,omitempty"` } /* @@ -1133,33 +1131,33 @@ Update voice dialing permissions inheritance for the sub-account @return VoiceV1DialingPermissionsDialingPermissionsSettings */ func (c *DefaultApiService) UpdateDialingPermissionsSettings(params *UpdateDialingPermissionsSettingsParams) (*VoiceV1DialingPermissionsDialingPermissionsSettings, error) { - path := "/v1/Settings" + path := "/v1/Settings" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.DialingPermissionsInheritance != nil { - data.Set("DialingPermissionsInheritance", string(*params.DialingPermissionsInheritance)) - } + if params != nil && params.DialingPermissionsInheritance != nil { + data.Set("DialingPermissionsInheritance", string(*params.DialingPermissionsInheritance)) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VoiceV1DialingPermissionsDialingPermissionsSettings{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VoiceV1DialingPermissionsDialingPermissionsSettings{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateIpRecordParams Optional parameters for the method 'UpdateIpRecord' type UpdateIpRecordParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -1170,34 +1168,34 @@ UpdateIpRecord Method for UpdateIpRecord @return VoiceV1IpRecord */ func (c *DefaultApiService) UpdateIpRecord(sid string, params *UpdateIpRecordParams) (*VoiceV1IpRecord, error) { - path := "/v1/IpRecords/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/IpRecords/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VoiceV1IpRecord{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VoiceV1IpRecord{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateSourceIpMappingParams Optional parameters for the method 'UpdateSourceIpMapping' type UpdateSourceIpMappingParams struct { - SipDomainSid *string `json:"SipDomainSid,omitempty"` + SipDomainSid *string `json:"SipDomainSid,omitempty"` } /* @@ -1208,28 +1206,28 @@ UpdateSourceIpMapping Method for UpdateSourceIpMapping @return VoiceV1SourceIpMapping */ func (c *DefaultApiService) UpdateSourceIpMapping(sid string, params *UpdateSourceIpMappingParams) (*VoiceV1SourceIpMapping, error) { - path := "/v1/SourceIpMappings/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/SourceIpMappings/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.SipDomainSid != nil { - data.Set("SipDomainSid", *params.SipDomainSid) - } + if params != nil && params.SipDomainSid != nil { + data.Set("SipDomainSid", *params.SipDomainSid) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &VoiceV1SourceIpMapping{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &VoiceV1SourceIpMapping{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } diff --git a/rest/voice/v1/response.go b/rest/voice/v1/response.go index f60b8e29e..3d6450c20 100644 --- a/rest/voice/v1/response.go +++ b/rest/voice/v1/response.go @@ -32,16 +32,14 @@ type APIResponse struct { Payload []byte `json:"-"` } -// Response returns a new APIResponse object. -func Response(r *http.Response) *APIResponse { - +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { response := &APIResponse{Response: r} return response } -// ResponseWithError returns a new APIResponse object with the provided error message. -func ResponseWithError(errorMessage string) *APIResponse { - +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { response := &APIResponse{Message: errorMessage} return response } diff --git a/rest/wireless/v1/api_default.go b/rest/wireless/v1/api_default.go index 0b1925306..aa9fe9345 100644 --- a/rest/wireless/v1/api_default.go +++ b/rest/wireless/v1/api_default.go @@ -13,32 +13,30 @@ package openapi import ( "encoding/json" "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "" + twilio "github.com/twilio/twilio-go/client" + "net/url" ) type DefaultApiService struct { - baseURL string - client *twilio.Client + baseURL string + client *twilio.Client } func NewDefaultApiService(client *twilio.Client) *DefaultApiService { - return &DefaultApiService{ - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } + return &DefaultApiService { + client: client, + baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + } } // CreateCommandParams Optional parameters for the method 'CreateCommand' type CreateCommandParams struct { - CallbackMethod *string `json:"CallbackMethod,omitempty"` - CallbackUrl *string `json:"CallbackUrl,omitempty"` - Command *string `json:"Command,omitempty"` - CommandMode *string `json:"CommandMode,omitempty"` - DeliveryReceiptRequested *bool `json:"DeliveryReceiptRequested,omitempty"` - IncludeSid *string `json:"IncludeSid,omitempty"` - Sim *string `json:"Sim,omitempty"` + CallbackMethod *string `json:"CallbackMethod,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + Command *string `json:"Command,omitempty"` + CommandMode *string `json:"CommandMode,omitempty"` + DeliveryReceiptRequested *bool `json:"DeliveryReceiptRequested,omitempty"` + IncludeSid *string `json:"IncludeSid,omitempty"` + Sim *string `json:"Sim,omitempty"` } /* @@ -55,61 +53,61 @@ Send a Command to a Sim. @return WirelessV1Command */ func (c *DefaultApiService) CreateCommand(params *CreateCommandParams) (*WirelessV1Command, error) { - path := "/v1/Commands" - - data := url.Values{} - headers := 0 - - if params != nil && params.CallbackMethod != nil { - data.Set("CallbackMethod", *params.CallbackMethod) - } - if params != nil && params.CallbackUrl != nil { - data.Set("CallbackUrl", *params.CallbackUrl) - } - if params != nil && params.Command != nil { - data.Set("Command", *params.Command) - } - if params != nil && params.CommandMode != nil { - data.Set("CommandMode", *params.CommandMode) - } - if params != nil && params.DeliveryReceiptRequested != nil { - data.Set("DeliveryReceiptRequested", string(*params.DeliveryReceiptRequested)) - } - if params != nil && params.IncludeSid != nil { - data.Set("IncludeSid", *params.IncludeSid) - } - if params != nil && params.Sim != nil { - data.Set("Sim", *params.Sim) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &WirelessV1Command{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Commands" + + data := url.Values{} + headers := 0 + + if params != nil && params.CallbackMethod != nil { + data.Set("CallbackMethod", *params.CallbackMethod) + } + if params != nil && params.CallbackUrl != nil { + data.Set("CallbackUrl", *params.CallbackUrl) + } + if params != nil && params.Command != nil { + data.Set("Command", *params.Command) + } + if params != nil && params.CommandMode != nil { + data.Set("CommandMode", *params.CommandMode) + } + if params != nil && params.DeliveryReceiptRequested != nil { + data.Set("DeliveryReceiptRequested", string(*params.DeliveryReceiptRequested)) + } + if params != nil && params.IncludeSid != nil { + data.Set("IncludeSid", *params.IncludeSid) + } + if params != nil && params.Sim != nil { + data.Set("Sim", *params.Sim) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &WirelessV1Command{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // CreateRatePlanParams Optional parameters for the method 'CreateRatePlan' type CreateRatePlanParams struct { - DataEnabled *bool `json:"DataEnabled,omitempty"` - DataLimit *int32 `json:"DataLimit,omitempty"` - DataMetering *string `json:"DataMetering,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - InternationalRoaming *[]string `json:"InternationalRoaming,omitempty"` - InternationalRoamingDataLimit *int32 `json:"InternationalRoamingDataLimit,omitempty"` - MessagingEnabled *bool `json:"MessagingEnabled,omitempty"` - NationalRoamingDataLimit *int32 `json:"NationalRoamingDataLimit,omitempty"` - NationalRoamingEnabled *bool `json:"NationalRoamingEnabled,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` - VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` + DataEnabled *bool `json:"DataEnabled,omitempty"` + DataLimit *int32 `json:"DataLimit,omitempty"` + DataMetering *string `json:"DataMetering,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + InternationalRoaming *[]string `json:"InternationalRoaming,omitempty"` + InternationalRoamingDataLimit *int32 `json:"InternationalRoamingDataLimit,omitempty"` + MessagingEnabled *bool `json:"MessagingEnabled,omitempty"` + NationalRoamingDataLimit *int32 `json:"NationalRoamingDataLimit,omitempty"` + NationalRoamingEnabled *bool `json:"NationalRoamingEnabled,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` } /* @@ -129,59 +127,59 @@ CreateRatePlan Method for CreateRatePlan @return WirelessV1RatePlan */ func (c *DefaultApiService) CreateRatePlan(params *CreateRatePlanParams) (*WirelessV1RatePlan, error) { - path := "/v1/RatePlans" - - data := url.Values{} - headers := 0 - - if params != nil && params.DataEnabled != nil { - data.Set("DataEnabled", string(*params.DataEnabled)) - } - if params != nil && params.DataLimit != nil { - data.Set("DataLimit", string(*params.DataLimit)) - } - if params != nil && params.DataMetering != nil { - data.Set("DataMetering", *params.DataMetering) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.InternationalRoaming != nil { - data.Set("InternationalRoaming", *params.InternationalRoaming) - } - if params != nil && params.InternationalRoamingDataLimit != nil { - data.Set("InternationalRoamingDataLimit", string(*params.InternationalRoamingDataLimit)) - } - if params != nil && params.MessagingEnabled != nil { - data.Set("MessagingEnabled", string(*params.MessagingEnabled)) - } - if params != nil && params.NationalRoamingDataLimit != nil { - data.Set("NationalRoamingDataLimit", string(*params.NationalRoamingDataLimit)) - } - if params != nil && params.NationalRoamingEnabled != nil { - data.Set("NationalRoamingEnabled", string(*params.NationalRoamingEnabled)) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } - if params != nil && params.VoiceEnabled != nil { - data.Set("VoiceEnabled", string(*params.VoiceEnabled)) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &WirelessV1RatePlan{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/RatePlans" + + data := url.Values{} + headers := 0 + + if params != nil && params.DataEnabled != nil { + data.Set("DataEnabled", string(*params.DataEnabled)) + } + if params != nil && params.DataLimit != nil { + data.Set("DataLimit", string(*params.DataLimit)) + } + if params != nil && params.DataMetering != nil { + data.Set("DataMetering", *params.DataMetering) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.InternationalRoaming != nil { + data.Set("InternationalRoaming", *params.InternationalRoaming) + } + if params != nil && params.InternationalRoamingDataLimit != nil { + data.Set("InternationalRoamingDataLimit", string(*params.InternationalRoamingDataLimit)) + } + if params != nil && params.MessagingEnabled != nil { + data.Set("MessagingEnabled", string(*params.MessagingEnabled)) + } + if params != nil && params.NationalRoamingDataLimit != nil { + data.Set("NationalRoamingDataLimit", string(*params.NationalRoamingDataLimit)) + } + if params != nil && params.NationalRoamingEnabled != nil { + data.Set("NationalRoamingEnabled", string(*params.NationalRoamingEnabled)) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + if params != nil && params.VoiceEnabled != nil { + data.Set("VoiceEnabled", string(*params.VoiceEnabled)) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &WirelessV1RatePlan{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } /* @@ -190,22 +188,22 @@ Delete a Command instance from your account. * @param sid The SID of the Command resource to delete. */ func (c *DefaultApiService) DeleteCommand(sid string) (error) { - path := "/v1/Commands/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Commands/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -213,22 +211,22 @@ DeleteRatePlan Method for DeleteRatePlan * @param sid The SID of the RatePlan resource to delete. */ func (c *DefaultApiService) DeleteRatePlan(sid string) (error) { - path := "/v1/RatePlans/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/RatePlans/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -237,22 +235,22 @@ Delete a Sim resource on your Account. * @param sid The SID or the `unique_name` of the Sim resource to delete. */ func (c *DefaultApiService) DeleteSim(sid string) (error) { - path := "/v1/Sims/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Sims/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Delete(c.baseURL+path, data, headers) - if err != nil { - return err - } + resp, err := c.client.Delete(c.baseURL+path, data, headers) + if err != nil { + return err + } - defer resp.Body.Close() + defer resp.Body.Close() - return nil + return nil } /* @@ -262,27 +260,27 @@ Fetch a Command instance from your account. @return WirelessV1Command */ func (c *DefaultApiService) FetchCommand(sid string) (*WirelessV1Command, error) { - path := "/v1/Commands/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Commands/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &WirelessV1Command{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &WirelessV1Command{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -291,27 +289,27 @@ FetchRatePlan Method for FetchRatePlan @return WirelessV1RatePlan */ func (c *DefaultApiService) FetchRatePlan(sid string) (*WirelessV1RatePlan, error) { - path := "/v1/RatePlans/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/RatePlans/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &WirelessV1RatePlan{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &WirelessV1RatePlan{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } /* @@ -321,34 +319,34 @@ Fetch a Sim resource on your Account. @return WirelessV1Sim */ func (c *DefaultApiService) FetchSim(sid string) (*WirelessV1Sim, error) { - path := "/v1/Sims/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/Sims/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := 0 - headers := 0 + data := 0 + headers := 0 - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &WirelessV1Sim{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &WirelessV1Sim{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListAccountUsageRecordParams Optional parameters for the method 'ListAccountUsageRecord' type ListAccountUsageRecordParams struct { - End *time.Time `json:"End,omitempty"` - Start *time.Time `json:"Start,omitempty"` - Granularity *string `json:"Granularity,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + End *time.Time `json:"End,omitempty"` + Start *time.Time `json:"Start,omitempty"` + Granularity *string `json:"Granularity,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -361,46 +359,46 @@ ListAccountUsageRecord Method for ListAccountUsageRecord @return WirelessV1AccountUsageRecordReadResponse */ func (c *DefaultApiService) ListAccountUsageRecord(params *ListAccountUsageRecordParams) (*WirelessV1AccountUsageRecordReadResponse, error) { - path := "/v1/UsageRecords" - - data := url.Values{} - headers := 0 - - if params != nil && params.End != nil { - data.Set("End", string(*params.End)) - } - if params != nil && params.Start != nil { - data.Set("Start", string(*params.Start)) - } - if params != nil && params.Granularity != nil { - data.Set("Granularity", *params.Granularity) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &WirelessV1AccountUsageRecordReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/UsageRecords" + + data := url.Values{} + headers := 0 + + if params != nil && params.End != nil { + data.Set("End", string(*params.End)) + } + if params != nil && params.Start != nil { + data.Set("Start", string(*params.Start)) + } + if params != nil && params.Granularity != nil { + data.Set("Granularity", *params.Granularity) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &WirelessV1AccountUsageRecordReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListCommandParams Optional parameters for the method 'ListCommand' type ListCommandParams struct { - Sim *string `json:"Sim,omitempty"` - Status *string `json:"Status,omitempty"` - Direction *string `json:"Direction,omitempty"` - Transport *string `json:"Transport,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Sim *string `json:"Sim,omitempty"` + Status *string `json:"Status,omitempty"` + Direction *string `json:"Direction,omitempty"` + Transport *string `json:"Transport,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -415,45 +413,45 @@ Retrieve a list of Commands from your account. @return WirelessV1CommandReadResponse */ func (c *DefaultApiService) ListCommand(params *ListCommandParams) (*WirelessV1CommandReadResponse, error) { - path := "/v1/Commands" - - data := url.Values{} - headers := 0 - - if params != nil && params.Sim != nil { - data.Set("Sim", *params.Sim) - } - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - if params != nil && params.Direction != nil { - data.Set("Direction", *params.Direction) - } - if params != nil && params.Transport != nil { - data.Set("Transport", *params.Transport) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &WirelessV1CommandReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Commands" + + data := url.Values{} + headers := 0 + + if params != nil && params.Sim != nil { + data.Set("Sim", *params.Sim) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.Direction != nil { + data.Set("Direction", *params.Direction) + } + if params != nil && params.Transport != nil { + data.Set("Transport", *params.Transport) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &WirelessV1CommandReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListDataSessionParams Optional parameters for the method 'ListDataSession' type ListDataSessionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -464,34 +462,34 @@ ListDataSession Method for ListDataSession @return WirelessV1SimDataSessionReadResponse */ func (c *DefaultApiService) ListDataSession(simSid string, params *ListDataSessionParams) (*WirelessV1SimDataSessionReadResponse, error) { - path := "/v1/Sims/{SimSid}/DataSessions" - path = strings.Replace(path, "{"+"SimSid"+"}", simSid, -1) + path := "/v1/Sims/{SimSid}/DataSessions" + path = strings.Replace(path, "{"+"SimSid"+"}", simSid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &WirelessV1SimDataSessionReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &WirelessV1SimDataSessionReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListRatePlanParams Optional parameters for the method 'ListRatePlan' type ListRatePlanParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -501,38 +499,38 @@ ListRatePlan Method for ListRatePlan @return WirelessV1RatePlanReadResponse */ func (c *DefaultApiService) ListRatePlan(params *ListRatePlanParams) (*WirelessV1RatePlanReadResponse, error) { - path := "/v1/RatePlans" + path := "/v1/RatePlans" - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &WirelessV1RatePlanReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &WirelessV1RatePlanReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // ListSimParams Optional parameters for the method 'ListSim' type ListSimParams struct { - Status *string `json:"Status,omitempty"` - Iccid *string `json:"Iccid,omitempty"` - RatePlan *string `json:"RatePlan,omitempty"` - EId *string `json:"EId,omitempty"` - SimRegistrationCode *string `json:"SimRegistrationCode,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Status *string `json:"Status,omitempty"` + Iccid *string `json:"Iccid,omitempty"` + RatePlan *string `json:"RatePlan,omitempty"` + EId *string `json:"EId,omitempty"` + SimRegistrationCode *string `json:"SimRegistrationCode,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -548,51 +546,51 @@ Retrieve a list of Sim resources on your Account. @return WirelessV1SimReadResponse */ func (c *DefaultApiService) ListSim(params *ListSimParams) (*WirelessV1SimReadResponse, error) { - path := "/v1/Sims" - - data := url.Values{} - headers := 0 - - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - if params != nil && params.Iccid != nil { - data.Set("Iccid", *params.Iccid) - } - if params != nil && params.RatePlan != nil { - data.Set("RatePlan", *params.RatePlan) - } - if params != nil && params.EId != nil { - data.Set("EId", *params.EId) - } - if params != nil && params.SimRegistrationCode != nil { - data.Set("SimRegistrationCode", *params.SimRegistrationCode) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &WirelessV1SimReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Sims" + + data := url.Values{} + headers := 0 + + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.Iccid != nil { + data.Set("Iccid", *params.Iccid) + } + if params != nil && params.RatePlan != nil { + data.Set("RatePlan", *params.RatePlan) + } + if params != nil && params.EId != nil { + data.Set("EId", *params.EId) + } + if params != nil && params.SimRegistrationCode != nil { + data.Set("SimRegistrationCode", *params.SimRegistrationCode) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &WirelessV1SimReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // ListUsageRecordParams Optional parameters for the method 'ListUsageRecord' type ListUsageRecordParams struct { - End *time.Time `json:"End,omitempty"` - Start *time.Time `json:"Start,omitempty"` - Granularity *string `json:"Granularity,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + End *time.Time `json:"End,omitempty"` + Start *time.Time `json:"Start,omitempty"` + Granularity *string `json:"Granularity,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -606,44 +604,44 @@ ListUsageRecord Method for ListUsageRecord @return WirelessV1SimUsageRecordReadResponse */ func (c *DefaultApiService) ListUsageRecord(simSid string, params *ListUsageRecordParams) (*WirelessV1SimUsageRecordReadResponse, error) { - path := "/v1/Sims/{SimSid}/UsageRecords" - path = strings.Replace(path, "{"+"SimSid"+"}", simSid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.End != nil { - data.Set("End", string(*params.End)) - } - if params != nil && params.Start != nil { - data.Set("Start", string(*params.Start)) - } - if params != nil && params.Granularity != nil { - data.Set("Granularity", *params.Granularity) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &WirelessV1SimUsageRecordReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Sims/{SimSid}/UsageRecords" + path = strings.Replace(path, "{"+"SimSid"+"}", simSid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.End != nil { + data.Set("End", string(*params.End)) + } + if params != nil && params.Start != nil { + data.Set("Start", string(*params.Start)) + } + if params != nil && params.Granularity != nil { + data.Set("Granularity", *params.Granularity) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", string(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &WirelessV1SimUsageRecordReadResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } // UpdateRatePlanParams Optional parameters for the method 'UpdateRatePlan' type UpdateRatePlanParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -655,54 +653,54 @@ UpdateRatePlan Method for UpdateRatePlan @return WirelessV1RatePlan */ func (c *DefaultApiService) UpdateRatePlan(sid string, params *UpdateRatePlanParams) (*WirelessV1RatePlan, error) { - path := "/v1/RatePlans/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path := "/v1/RatePlans/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - data := url.Values{} - headers := 0 + data := url.Values{} + headers := 0 - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } - defer resp.Body.Close() + defer resp.Body.Close() - ps := &WirelessV1RatePlan{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } + ps := &WirelessV1RatePlan{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } - return ps, err + return ps, err } // UpdateSimParams Optional parameters for the method 'UpdateSim' type UpdateSimParams struct { - AccountSid *string `json:"AccountSid,omitempty"` - CallbackMethod *string `json:"CallbackMethod,omitempty"` - CallbackUrl *string `json:"CallbackUrl,omitempty"` - CommandsCallbackMethod *string `json:"CommandsCallbackMethod,omitempty"` - CommandsCallbackUrl *string `json:"CommandsCallbackUrl,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - RatePlan *string `json:"RatePlan,omitempty"` - ResetStatus *string `json:"ResetStatus,omitempty"` - SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` - SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` - SmsMethod *string `json:"SmsMethod,omitempty"` - SmsUrl *string `json:"SmsUrl,omitempty"` - Status *string `json:"Status,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` - VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` - VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` - VoiceMethod *string `json:"VoiceMethod,omitempty"` - VoiceUrl *string `json:"VoiceUrl,omitempty"` + AccountSid *string `json:"AccountSid,omitempty"` + CallbackMethod *string `json:"CallbackMethod,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + CommandsCallbackMethod *string `json:"CommandsCallbackMethod,omitempty"` + CommandsCallbackUrl *string `json:"CommandsCallbackUrl,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + RatePlan *string `json:"RatePlan,omitempty"` + ResetStatus *string `json:"ResetStatus,omitempty"` + SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` + SmsMethod *string `json:"SmsMethod,omitempty"` + SmsUrl *string `json:"SmsUrl,omitempty"` + Status *string `json:"Status,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` } /* @@ -731,79 +729,79 @@ Updates the given properties of a Sim resource on your Account. @return WirelessV1Sim */ func (c *DefaultApiService) UpdateSim(sid string, params *UpdateSimParams) (*WirelessV1Sim, error) { - path := "/v1/Sims/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - - data := url.Values{} - headers := 0 - - if params != nil && params.AccountSid != nil { - data.Set("AccountSid", *params.AccountSid) - } - if params != nil && params.CallbackMethod != nil { - data.Set("CallbackMethod", *params.CallbackMethod) - } - if params != nil && params.CallbackUrl != nil { - data.Set("CallbackUrl", *params.CallbackUrl) - } - if params != nil && params.CommandsCallbackMethod != nil { - data.Set("CommandsCallbackMethod", *params.CommandsCallbackMethod) - } - if params != nil && params.CommandsCallbackUrl != nil { - data.Set("CommandsCallbackUrl", *params.CommandsCallbackUrl) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.RatePlan != nil { - data.Set("RatePlan", *params.RatePlan) - } - if params != nil && params.ResetStatus != nil { - data.Set("ResetStatus", *params.ResetStatus) - } - if params != nil && params.SmsFallbackMethod != nil { - data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) - } - if params != nil && params.SmsFallbackUrl != nil { - data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) - } - if params != nil && params.SmsMethod != nil { - data.Set("SmsMethod", *params.SmsMethod) - } - if params != nil && params.SmsUrl != nil { - data.Set("SmsUrl", *params.SmsUrl) - } - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) - } - if params != nil && params.VoiceFallbackMethod != nil { - data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) - } - if params != nil && params.VoiceFallbackUrl != nil { - data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) - } - if params != nil && params.VoiceMethod != nil { - data.Set("VoiceMethod", *params.VoiceMethod) - } - if params != nil && params.VoiceUrl != nil { - data.Set("VoiceUrl", *params.VoiceUrl) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &WirelessV1Sim{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err + path := "/v1/Sims/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + + data := url.Values{} + headers := 0 + + if params != nil && params.AccountSid != nil { + data.Set("AccountSid", *params.AccountSid) + } + if params != nil && params.CallbackMethod != nil { + data.Set("CallbackMethod", *params.CallbackMethod) + } + if params != nil && params.CallbackUrl != nil { + data.Set("CallbackUrl", *params.CallbackUrl) + } + if params != nil && params.CommandsCallbackMethod != nil { + data.Set("CommandsCallbackMethod", *params.CommandsCallbackMethod) + } + if params != nil && params.CommandsCallbackUrl != nil { + data.Set("CommandsCallbackUrl", *params.CommandsCallbackUrl) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.RatePlan != nil { + data.Set("RatePlan", *params.RatePlan) + } + if params != nil && params.ResetStatus != nil { + data.Set("ResetStatus", *params.ResetStatus) + } + if params != nil && params.SmsFallbackMethod != nil { + data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) + } + if params != nil && params.SmsFallbackUrl != nil { + data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) + } + if params != nil && params.SmsMethod != nil { + data.Set("SmsMethod", *params.SmsMethod) + } + if params != nil && params.SmsUrl != nil { + data.Set("SmsUrl", *params.SmsUrl) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + if params != nil && params.UniqueName != nil { + data.Set("UniqueName", *params.UniqueName) + } + if params != nil && params.VoiceFallbackMethod != nil { + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + } + if params != nil && params.VoiceFallbackUrl != nil { + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + } + if params != nil && params.VoiceMethod != nil { + data.Set("VoiceMethod", *params.VoiceMethod) + } + if params != nil && params.VoiceUrl != nil { + data.Set("VoiceUrl", *params.VoiceUrl) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &WirelessV1Sim{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err } diff --git a/rest/wireless/v1/response.go b/rest/wireless/v1/response.go index a30e90343..cfe81a2c0 100644 --- a/rest/wireless/v1/response.go +++ b/rest/wireless/v1/response.go @@ -32,16 +32,14 @@ type APIResponse struct { Payload []byte `json:"-"` } -// Response returns a new APIResponse object. -func Response(r *http.Response) *APIResponse { - +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { response := &APIResponse{Response: r} return response } -// ResponseWithError returns a new APIResponse object with the provided error message. -func ResponseWithError(errorMessage string) *APIResponse { - +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { response := &APIResponse{Message: errorMessage} return response } From 674a38ea1d827299111b35045daca2be9a28d4d9 Mon Sep 17 00:00:00 2001 From: Shwetha Radhakrishna Date: Wed, 20 Jan 2021 11:45:46 -0700 Subject: [PATCH 04/20] Updated workflow --- .github/workflows/go.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 8d532ea4f..1dabe8a36 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -26,6 +26,8 @@ jobs: - name: Build run: go build -v ./... + with: + github_token: ${{ secrets.github_token }} - name: Test run: go test ./... From 14a1bcfddee3542124e2a07a211979fb85734406 Mon Sep 17 00:00:00 2001 From: Shwetha Radhakrishna Date: Wed, 20 Jan 2021 11:48:52 -0700 Subject: [PATCH 05/20] Revert --- .github/workflows/go.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 8d532ea4f..1dabe8a36 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -26,6 +26,8 @@ jobs: - name: Build run: go build -v ./... + with: + github_token: ${{ secrets.github_token }} - name: Test run: go test ./... From fa2a269d81a7ae2cb0b2391be7ee9d5fa467f963 Mon Sep 17 00:00:00 2001 From: Shwetha Radhakrishna Date: Wed, 20 Jan 2021 11:50:16 -0700 Subject: [PATCH 06/20] Revert change --- .github/workflows/go.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 1dabe8a36..8d532ea4f 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -26,8 +26,6 @@ jobs: - name: Build run: go build -v ./... - with: - github_token: ${{ secrets.github_token }} - name: Test run: go test ./... From 41a086681c25ae18c2f0ed1054da53ee91505074 Mon Sep 17 00:00:00 2001 From: Shwetha Radhakrishna Date: Wed, 20 Jan 2021 11:58:21 -0700 Subject: [PATCH 07/20] Adding token to checkout step --- .github/workflows/go.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 8d532ea4f..41a0e6a8e 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -15,6 +15,8 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@v2 + with: + github_token: ${{ secrets.github_token }} - name: Get dependencies run: | From 3952d9ebcb0c3848d8dcd391983f318f4427d269 Mon Sep 17 00:00:00 2001 From: Shwetha Radhakrishna Date: Wed, 20 Jan 2021 11:59:17 -0700 Subject: [PATCH 08/20] Renamed token --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 41a0e6a8e..c3eb58150 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -16,7 +16,7 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@v2 with: - github_token: ${{ secrets.github_token }} + token: ${{ secrets.github_token }} - name: Get dependencies run: | From 6f054b1fe59e9035b4e70df540ba8ce9f918d396 Mon Sep 17 00:00:00 2001 From: Shwetha Radhakrishna Date: Wed, 20 Jan 2021 12:12:02 -0700 Subject: [PATCH 09/20] Ignoring openapi-generator metadata --- .gitignore | 2 ++ rest/accounts/v1/.openapi-generator/VERSION | 1 - rest/api/v2010/.openapi-generator/VERSION | 1 - rest/autopilot/v1/.openapi-generator/VERSION | 1 - rest/bulkexports/v1/.openapi-generator/VERSION | 1 - rest/chat/v1/.openapi-generator/VERSION | 1 - rest/chat/v2/.openapi-generator/VERSION | 1 - rest/conversations/v1/.openapi-generator/VERSION | 1 - rest/events/v1/.openapi-generator/VERSION | 1 - rest/fax/v1/.openapi-generator/VERSION | 1 - rest/flex/v1/.openapi-generator/VERSION | 1 - rest/insights/v1/.openapi-generator/VERSION | 1 - rest/ip/messaging/.openapi-generator/VERSION | 1 - rest/lookups/v1/.openapi-generator/VERSION | 1 - rest/messaging/v1/.openapi-generator/VERSION | 1 - rest/monitor/v1/.openapi-generator/VERSION | 1 - rest/notify/v1/.openapi-generator/VERSION | 1 - rest/numbers/v2/.openapi-generator/VERSION | 1 - rest/preview/.openapi-generator/VERSION | 1 - rest/pricing/v1/.openapi-generator/VERSION | 1 - rest/pricing/v2/.openapi-generator/VERSION | 1 - rest/proxy/v1/.openapi-generator/VERSION | 1 - rest/serverless/v1/.openapi-generator/VERSION | 1 - rest/studio/v1/.openapi-generator/VERSION | 1 - rest/studio/v2/.openapi-generator/VERSION | 1 - rest/supersim/v1/.openapi-generator/VERSION | 1 - rest/sync/v1/.openapi-generator/VERSION | 1 - rest/taskrouter/v1/.openapi-generator/VERSION | 1 - rest/trunking/v1/.openapi-generator/VERSION | 1 - rest/verify/v2/.openapi-generator/VERSION | 1 - rest/video/v1/.openapi-generator/VERSION | 1 - rest/voice/v1/.openapi-generator/VERSION | 1 - rest/wireless/v1/.openapi-generator/VERSION | 1 - 33 files changed, 2 insertions(+), 32 deletions(-) delete mode 100644 rest/accounts/v1/.openapi-generator/VERSION delete mode 100644 rest/api/v2010/.openapi-generator/VERSION delete mode 100644 rest/autopilot/v1/.openapi-generator/VERSION delete mode 100644 rest/bulkexports/v1/.openapi-generator/VERSION delete mode 100644 rest/chat/v1/.openapi-generator/VERSION delete mode 100644 rest/chat/v2/.openapi-generator/VERSION delete mode 100644 rest/conversations/v1/.openapi-generator/VERSION delete mode 100644 rest/events/v1/.openapi-generator/VERSION delete mode 100644 rest/fax/v1/.openapi-generator/VERSION delete mode 100644 rest/flex/v1/.openapi-generator/VERSION delete mode 100644 rest/insights/v1/.openapi-generator/VERSION delete mode 100644 rest/ip/messaging/.openapi-generator/VERSION delete mode 100644 rest/lookups/v1/.openapi-generator/VERSION delete mode 100644 rest/messaging/v1/.openapi-generator/VERSION delete mode 100644 rest/monitor/v1/.openapi-generator/VERSION delete mode 100644 rest/notify/v1/.openapi-generator/VERSION delete mode 100644 rest/numbers/v2/.openapi-generator/VERSION delete mode 100644 rest/preview/.openapi-generator/VERSION delete mode 100644 rest/pricing/v1/.openapi-generator/VERSION delete mode 100644 rest/pricing/v2/.openapi-generator/VERSION delete mode 100644 rest/proxy/v1/.openapi-generator/VERSION delete mode 100644 rest/serverless/v1/.openapi-generator/VERSION delete mode 100644 rest/studio/v1/.openapi-generator/VERSION delete mode 100644 rest/studio/v2/.openapi-generator/VERSION delete mode 100644 rest/supersim/v1/.openapi-generator/VERSION delete mode 100644 rest/sync/v1/.openapi-generator/VERSION delete mode 100644 rest/taskrouter/v1/.openapi-generator/VERSION delete mode 100644 rest/trunking/v1/.openapi-generator/VERSION delete mode 100644 rest/verify/v2/.openapi-generator/VERSION delete mode 100644 rest/video/v1/.openapi-generator/VERSION delete mode 100644 rest/voice/v1/.openapi-generator/VERSION delete mode 100644 rest/wireless/v1/.openapi-generator/VERSION diff --git a/.gitignore b/.gitignore index 9acd6677f..cb197658d 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,8 @@ *.dylib .idea +**/.openapi-generator + # Test binary, built with `go test -c` *.test diff --git a/rest/accounts/v1/.openapi-generator/VERSION b/rest/accounts/v1/.openapi-generator/VERSION deleted file mode 100644 index ecedc98d1..000000000 --- a/rest/accounts/v1/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -4.3.1 \ No newline at end of file diff --git a/rest/api/v2010/.openapi-generator/VERSION b/rest/api/v2010/.openapi-generator/VERSION deleted file mode 100644 index ecedc98d1..000000000 --- a/rest/api/v2010/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -4.3.1 \ No newline at end of file diff --git a/rest/autopilot/v1/.openapi-generator/VERSION b/rest/autopilot/v1/.openapi-generator/VERSION deleted file mode 100644 index ecedc98d1..000000000 --- a/rest/autopilot/v1/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -4.3.1 \ No newline at end of file diff --git a/rest/bulkexports/v1/.openapi-generator/VERSION b/rest/bulkexports/v1/.openapi-generator/VERSION deleted file mode 100644 index ecedc98d1..000000000 --- a/rest/bulkexports/v1/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -4.3.1 \ No newline at end of file diff --git a/rest/chat/v1/.openapi-generator/VERSION b/rest/chat/v1/.openapi-generator/VERSION deleted file mode 100644 index ecedc98d1..000000000 --- a/rest/chat/v1/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -4.3.1 \ No newline at end of file diff --git a/rest/chat/v2/.openapi-generator/VERSION b/rest/chat/v2/.openapi-generator/VERSION deleted file mode 100644 index ecedc98d1..000000000 --- a/rest/chat/v2/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -4.3.1 \ No newline at end of file diff --git a/rest/conversations/v1/.openapi-generator/VERSION b/rest/conversations/v1/.openapi-generator/VERSION deleted file mode 100644 index ecedc98d1..000000000 --- a/rest/conversations/v1/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -4.3.1 \ No newline at end of file diff --git a/rest/events/v1/.openapi-generator/VERSION b/rest/events/v1/.openapi-generator/VERSION deleted file mode 100644 index ecedc98d1..000000000 --- a/rest/events/v1/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -4.3.1 \ No newline at end of file diff --git a/rest/fax/v1/.openapi-generator/VERSION b/rest/fax/v1/.openapi-generator/VERSION deleted file mode 100644 index ecedc98d1..000000000 --- a/rest/fax/v1/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -4.3.1 \ No newline at end of file diff --git a/rest/flex/v1/.openapi-generator/VERSION b/rest/flex/v1/.openapi-generator/VERSION deleted file mode 100644 index ecedc98d1..000000000 --- a/rest/flex/v1/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -4.3.1 \ No newline at end of file diff --git a/rest/insights/v1/.openapi-generator/VERSION b/rest/insights/v1/.openapi-generator/VERSION deleted file mode 100644 index ecedc98d1..000000000 --- a/rest/insights/v1/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -4.3.1 \ No newline at end of file diff --git a/rest/ip/messaging/.openapi-generator/VERSION b/rest/ip/messaging/.openapi-generator/VERSION deleted file mode 100644 index ecedc98d1..000000000 --- a/rest/ip/messaging/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -4.3.1 \ No newline at end of file diff --git a/rest/lookups/v1/.openapi-generator/VERSION b/rest/lookups/v1/.openapi-generator/VERSION deleted file mode 100644 index ecedc98d1..000000000 --- a/rest/lookups/v1/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -4.3.1 \ No newline at end of file diff --git a/rest/messaging/v1/.openapi-generator/VERSION b/rest/messaging/v1/.openapi-generator/VERSION deleted file mode 100644 index ecedc98d1..000000000 --- a/rest/messaging/v1/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -4.3.1 \ No newline at end of file diff --git a/rest/monitor/v1/.openapi-generator/VERSION b/rest/monitor/v1/.openapi-generator/VERSION deleted file mode 100644 index ecedc98d1..000000000 --- a/rest/monitor/v1/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -4.3.1 \ No newline at end of file diff --git a/rest/notify/v1/.openapi-generator/VERSION b/rest/notify/v1/.openapi-generator/VERSION deleted file mode 100644 index ecedc98d1..000000000 --- a/rest/notify/v1/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -4.3.1 \ No newline at end of file diff --git a/rest/numbers/v2/.openapi-generator/VERSION b/rest/numbers/v2/.openapi-generator/VERSION deleted file mode 100644 index ecedc98d1..000000000 --- a/rest/numbers/v2/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -4.3.1 \ No newline at end of file diff --git a/rest/preview/.openapi-generator/VERSION b/rest/preview/.openapi-generator/VERSION deleted file mode 100644 index ecedc98d1..000000000 --- a/rest/preview/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -4.3.1 \ No newline at end of file diff --git a/rest/pricing/v1/.openapi-generator/VERSION b/rest/pricing/v1/.openapi-generator/VERSION deleted file mode 100644 index ecedc98d1..000000000 --- a/rest/pricing/v1/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -4.3.1 \ No newline at end of file diff --git a/rest/pricing/v2/.openapi-generator/VERSION b/rest/pricing/v2/.openapi-generator/VERSION deleted file mode 100644 index ecedc98d1..000000000 --- a/rest/pricing/v2/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -4.3.1 \ No newline at end of file diff --git a/rest/proxy/v1/.openapi-generator/VERSION b/rest/proxy/v1/.openapi-generator/VERSION deleted file mode 100644 index ecedc98d1..000000000 --- a/rest/proxy/v1/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -4.3.1 \ No newline at end of file diff --git a/rest/serverless/v1/.openapi-generator/VERSION b/rest/serverless/v1/.openapi-generator/VERSION deleted file mode 100644 index ecedc98d1..000000000 --- a/rest/serverless/v1/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -4.3.1 \ No newline at end of file diff --git a/rest/studio/v1/.openapi-generator/VERSION b/rest/studio/v1/.openapi-generator/VERSION deleted file mode 100644 index ecedc98d1..000000000 --- a/rest/studio/v1/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -4.3.1 \ No newline at end of file diff --git a/rest/studio/v2/.openapi-generator/VERSION b/rest/studio/v2/.openapi-generator/VERSION deleted file mode 100644 index ecedc98d1..000000000 --- a/rest/studio/v2/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -4.3.1 \ No newline at end of file diff --git a/rest/supersim/v1/.openapi-generator/VERSION b/rest/supersim/v1/.openapi-generator/VERSION deleted file mode 100644 index ecedc98d1..000000000 --- a/rest/supersim/v1/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -4.3.1 \ No newline at end of file diff --git a/rest/sync/v1/.openapi-generator/VERSION b/rest/sync/v1/.openapi-generator/VERSION deleted file mode 100644 index ecedc98d1..000000000 --- a/rest/sync/v1/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -4.3.1 \ No newline at end of file diff --git a/rest/taskrouter/v1/.openapi-generator/VERSION b/rest/taskrouter/v1/.openapi-generator/VERSION deleted file mode 100644 index ecedc98d1..000000000 --- a/rest/taskrouter/v1/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -4.3.1 \ No newline at end of file diff --git a/rest/trunking/v1/.openapi-generator/VERSION b/rest/trunking/v1/.openapi-generator/VERSION deleted file mode 100644 index ecedc98d1..000000000 --- a/rest/trunking/v1/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -4.3.1 \ No newline at end of file diff --git a/rest/verify/v2/.openapi-generator/VERSION b/rest/verify/v2/.openapi-generator/VERSION deleted file mode 100644 index ecedc98d1..000000000 --- a/rest/verify/v2/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -4.3.1 \ No newline at end of file diff --git a/rest/video/v1/.openapi-generator/VERSION b/rest/video/v1/.openapi-generator/VERSION deleted file mode 100644 index ecedc98d1..000000000 --- a/rest/video/v1/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -4.3.1 \ No newline at end of file diff --git a/rest/voice/v1/.openapi-generator/VERSION b/rest/voice/v1/.openapi-generator/VERSION deleted file mode 100644 index ecedc98d1..000000000 --- a/rest/voice/v1/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -4.3.1 \ No newline at end of file diff --git a/rest/wireless/v1/.openapi-generator/VERSION b/rest/wireless/v1/.openapi-generator/VERSION deleted file mode 100644 index ecedc98d1..000000000 --- a/rest/wireless/v1/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -4.3.1 \ No newline at end of file From 837d67686ef3a35acad0dc6e58650ea8d2a0325a Mon Sep 17 00:00:00 2001 From: Shwetha Radhakrishna Date: Fri, 22 Jan 2021 14:00:41 -0700 Subject: [PATCH 10/20] fixing multiple codegen issues --- rest/accounts/v1/api_default.go | 84 +- rest/accounts/v1/docs/DefaultApi.md | 44 +- .../model_accounts_v1_auth_token_promotion.go | 10 +- ...l_accounts_v1_credential_credential_aws.go | 12 +- ...credential_credential_aws_read_response.go | 4 +- ...ntial_credential_aws_read_response_meta.go | 14 +- ...nts_v1_credential_credential_public_key.go | 12 +- ...ial_credential_public_key_read_response.go | 4 +- .../model_accounts_v1_secondary_auth_token.go | 10 +- rest/api/v2010/api_default.go | 3700 +++++++++-------- rest/api/v2010/docs/DefaultApi.md | 2526 +++++------ rest/api/v2010/model_api_v2010_account.go | 20 +- .../v2010/model_api_v2010_account_address.go | 30 +- ..._account_address_dependent_phone_number.go | 52 +- ...ss_dependent_phone_number_read_response.go | 18 +- ...api_v2010_account_address_read_response.go | 18 +- .../model_api_v2010_account_application.go | 40 +- ...v2010_account_application_read_response.go | 18 +- ...pi_v2010_account_authorized_connect_app.go | 20 +- ...nt_authorized_connect_app_read_response.go | 18 +- ..._account_available_phone_number_country.go | 10 +- ...er_country_available_phone_number_local.go | 26 +- ...ilable_phone_number_local_read_response.go | 18 +- ...ailable_phone_number_machine_to_machine.go | 26 +- ...number_machine_to_machine_read_response.go | 18 +- ...r_country_available_phone_number_mobile.go | 26 +- ...lable_phone_number_mobile_read_response.go | 18 +- ...country_available_phone_number_national.go | 26 +- ...ble_phone_number_national_read_response.go | 18 +- ...ntry_available_phone_number_shared_cost.go | 26 +- ..._phone_number_shared_cost_read_response.go | 18 +- ...ountry_available_phone_number_toll_free.go | 26 +- ...le_phone_number_toll_free_read_response.go | 18 +- ...ber_country_available_phone_number_voip.go | 26 +- ...ailable_phone_number_voip_read_response.go | 18 +- ...able_phone_number_country_read_response.go | 18 +- .../v2010/model_api_v2010_account_balance.go | 6 +- .../api/v2010/model_api_v2010_account_call.go | 54 +- ...model_api_v2010_account_call_call_event.go | 4 +- ...0_account_call_call_event_read_response.go | 18 +- ...el_api_v2010_account_call_call_feedback.go | 12 +- ...2010_account_call_call_feedback_summary.go | 28 +- ...pi_v2010_account_call_call_notification.go | 28 +- ...account_call_call_notification_instance.go | 34 +- ...nt_call_call_notification_read_response.go | 18 +- ...l_api_v2010_account_call_call_recording.go | 36 +- ...count_call_call_recording_read_response.go | 18 +- .../model_api_v2010_account_call_payments.go | 12 +- ...el_api_v2010_account_call_read_response.go | 18 +- .../model_api_v2010_account_conference.go | 24 +- ...account_conference_conference_recording.go | 34 +- ...ence_conference_recording_read_response.go | 18 +- ...pi_v2010_account_conference_participant.go | 28 +- ...nt_conference_participant_read_response.go | 18 +- ..._v2010_account_conference_read_response.go | 18 +- .../model_api_v2010_account_connect_app.go | 22 +- ...v2010_account_connect_app_read_response.go | 18 +- ...api_v2010_account_incoming_phone_number.go | 66 +- ...r_incoming_phone_number_assigned_add_on.go | 22 +- ..._phone_number_assigned_add_on_extension.go | 18 +- ...assigned_add_on_extension_read_response.go | 18 +- ...ne_number_assigned_add_on_read_response.go | 18 +- ...hone_number_incoming_phone_number_local.go | 66 +- ...coming_phone_number_local_read_response.go | 18 +- ...one_number_incoming_phone_number_mobile.go | 66 +- ...oming_phone_number_mobile_read_response.go | 18 +- ..._number_incoming_phone_number_toll_free.go | 66 +- ...ng_phone_number_toll_free_read_response.go | 18 +- ...unt_incoming_phone_number_read_response.go | 18 +- rest/api/v2010/model_api_v2010_account_key.go | 8 +- ...del_api_v2010_account_key_read_response.go | 18 +- .../v2010/model_api_v2010_account_message.go | 40 +- .../model_api_v2010_account_message_media.go | 14 +- ...010_account_message_media_read_response.go | 18 +- ..._v2010_account_message_message_feedback.go | 12 +- ...api_v2010_account_message_read_response.go | 18 +- .../v2010/model_api_v2010_account_new_key.go | 10 +- ...model_api_v2010_account_new_signing_key.go | 10 +- .../model_api_v2010_account_notification.go | 28 +- ...api_v2010_account_notification_instance.go | 34 +- ...2010_account_notification_read_response.go | 18 +- ...el_api_v2010_account_outgoing_caller_id.go | 14 +- ...ccount_outgoing_caller_id_read_response.go | 18 +- .../v2010/model_api_v2010_account_queue.go | 18 +- .../model_api_v2010_account_queue_member.go | 12 +- ...2010_account_queue_member_read_response.go | 18 +- ...l_api_v2010_account_queue_read_response.go | 18 +- .../model_api_v2010_account_read_response.go | 18 +- .../model_api_v2010_account_recording.go | 36 +- ...i_v2010_account_recording_read_response.go | 18 +- ...count_recording_recording_add_on_result.go | 20 +- ...g_recording_add_on_result_read_response.go | 18 +- ..._result_recording_add_on_result_payload.go | 22 +- ...ing_add_on_result_payload_read_response.go | 18 +- ...count_recording_recording_transcription.go | 26 +- ...g_recording_transcription_read_response.go | 18 +- .../model_api_v2010_account_short_code.go | 24 +- ..._v2010_account_short_code_read_response.go | 18 +- .../model_api_v2010_account_signing_key.go | 8 +- ...v2010_account_signing_key_read_response.go | 18 +- ...i_v2010_account_sip_sip_credential_list.go | 14 +- ...t_sip_sip_credential_list_read_response.go | 18 +- ..._sip_sip_credential_list_sip_credential.go | 14 +- ...ntial_list_sip_credential_read_response.go | 18 +- .../model_api_v2010_account_sip_sip_domain.go | 42 +- ...10_account_sip_sip_domain_read_response.go | 18 +- ..._sip_auth_calls_credential_list_mapping.go | 10 +- ...s_credential_list_mapping_read_response.go | 18 +- ...th_calls_ip_access_control_list_mapping.go | 10 +- ...cess_control_list_mapping_read_response.go | 18 +- ...h_registrations_credential_list_mapping.go | 10 +- ...s_credential_list_mapping_read_response.go | 18 +- ..._sip_domain_sip_credential_list_mapping.go | 14 +- ...p_credential_list_mapping_read_response.go | 18 +- ...main_sip_ip_access_control_list_mapping.go | 14 +- ...cess_control_list_mapping_read_response.go | 18 +- ..._account_sip_sip_ip_access_control_list.go | 14 +- ...ip_ip_access_control_list_read_response.go | 18 +- ...p_ip_access_control_list_sip_ip_address.go | 18 +- ...ntrol_list_sip_ip_address_read_response.go | 18 +- .../v2010/model_api_v2010_account_token.go | 14 +- .../model_api_v2010_account_transcription.go | 26 +- ...010_account_transcription_read_response.go | 18 +- ...el_api_v2010_account_usage_usage_record.go | 30 +- ...ccount_usage_usage_record_read_response.go | 18 +- ...sage_usage_record_usage_record_all_time.go | 30 +- ...ord_usage_record_all_time_read_response.go | 18 +- ...t_usage_usage_record_usage_record_daily.go | 30 +- ...record_usage_record_daily_read_response.go | 18 +- ...ge_usage_record_usage_record_last_month.go | 30 +- ...d_usage_record_last_month_read_response.go | 18 +- ...usage_usage_record_usage_record_monthly.go | 30 +- ...cord_usage_record_monthly_read_response.go | 18 +- ...ge_usage_record_usage_record_this_month.go | 30 +- ...d_usage_record_this_month_read_response.go | 18 +- ...t_usage_usage_record_usage_record_today.go | 30 +- ...record_usage_record_today_read_response.go | 18 +- ..._usage_usage_record_usage_record_yearly.go | 30 +- ...ecord_usage_record_yearly_read_response.go | 18 +- ...age_usage_record_usage_record_yesterday.go | 30 +- ...rd_usage_record_yesterday_read_response.go | 18 +- ...l_api_v2010_account_usage_usage_trigger.go | 32 +- ...count_usage_usage_trigger_read_response.go | 18 +- ...el_api_v2010_account_validation_request.go | 10 +- rest/autopilot/v1/api_default.go | 697 ++-- rest/autopilot/v1/docs/DefaultApi.md | 422 +- .../v1/model_autopilot_v1_assistant.go | 28 +- .../model_autopilot_v1_assistant_defaults.go | 8 +- .../model_autopilot_v1_assistant_dialogue.go | 10 +- ...model_autopilot_v1_assistant_field_type.go | 18 +- ...lot_v1_assistant_field_type_field_value.go | 20 +- ...nt_field_type_field_value_read_response.go | 4 +- ...t_v1_assistant_field_type_read_response.go | 4 +- ...odel_autopilot_v1_assistant_model_build.go | 20 +- ..._v1_assistant_model_build_read_response.go | 4 +- .../v1/model_autopilot_v1_assistant_query.go | 28 +- ...opilot_v1_assistant_query_read_response.go | 4 +- ...el_autopilot_v1_assistant_read_response.go | 4 +- ...topilot_v1_assistant_read_response_meta.go | 14 +- ...odel_autopilot_v1_assistant_style_sheet.go | 8 +- .../v1/model_autopilot_v1_assistant_task.go | 20 +- ...model_autopilot_v1_assistant_task_field.go | 18 +- ...t_v1_assistant_task_field_read_response.go | 4 +- ...topilot_v1_assistant_task_read_response.go | 4 +- ...odel_autopilot_v1_assistant_task_sample.go | 20 +- ..._v1_assistant_task_sample_read_response.go | 4 +- ...utopilot_v1_assistant_task_task_actions.go | 10 +- ...pilot_v1_assistant_task_task_statistics.go | 12 +- .../model_autopilot_v1_assistant_webhook.go | 20 +- ...ilot_v1_assistant_webhook_read_response.go | 4 +- .../model_autopilot_v1_restore_assistant.go | 24 +- rest/bulkexports/v1/api_default.go | 100 +- rest/bulkexports/v1/docs/DefaultApi.md | 60 +- .../v1/model_bulkexports_v1_export.go | 6 +- ...del_bulkexports_v1_export_configuration.go | 10 +- .../v1/model_bulkexports_v1_export_day.go | 10 +- ...odel_bulkexports_v1_export_day_instance.go | 2 +- ...bulkexports_v1_export_day_read_response.go | 4 +- ...xports_v1_export_day_read_response_meta.go | 14 +- ...bulkexports_v1_export_export_custom_job.go | 18 +- ..._export_export_custom_job_read_response.go | 4 +- .../v1/model_bulkexports_v1_export_job.go | 20 +- rest/chat/v1/api_default.go | 889 ++-- rest/chat/v1/docs/DefaultApi.md | 428 +- rest/chat/v1/model_chat_v1_credential.go | 16 +- .../model_chat_v1_credential_read_response.go | 4 +- ...l_chat_v1_credential_read_response_meta.go | 14 +- rest/chat/v1/model_chat_v1_service.go | 42 +- rest/chat/v1/model_chat_v1_service_channel.go | 28 +- .../model_chat_v1_service_channel_invite.go | 20 +- ...v1_service_channel_invite_read_response.go | 4 +- .../model_chat_v1_service_channel_member.go | 22 +- ...v1_service_channel_member_read_response.go | 4 +- .../model_chat_v1_service_channel_message.go | 26 +- ...1_service_channel_message_read_response.go | 4 +- ...l_chat_v1_service_channel_read_response.go | 4 +- .../v1/model_chat_v1_service_read_response.go | 4 +- rest/chat/v1/model_chat_v1_service_role.go | 18 +- ...odel_chat_v1_service_role_read_response.go | 4 +- rest/chat/v1/model_chat_v1_service_user.go | 28 +- ...odel_chat_v1_service_user_read_response.go | 4 +- ...model_chat_v1_service_user_user_channel.go | 16 +- ...service_user_user_channel_read_response.go | 4 +- rest/chat/v1/model_update_service_request.go | 84 +- rest/chat/v2/api_default.go | 1114 ++--- rest/chat/v2/docs/DefaultApi.md | 592 +-- rest/chat/v2/model_chat_v2_credential.go | 16 +- .../model_chat_v2_credential_read_response.go | 4 +- ...l_chat_v2_credential_read_response_meta.go | 14 +- rest/chat/v2/model_chat_v2_service.go | 46 +- rest/chat/v2/model_chat_v2_service_binding.go | 24 +- ...l_chat_v2_service_binding_read_response.go | 4 +- rest/chat/v2/model_chat_v2_service_channel.go | 28 +- ...chat_v2_service_channel_channel_webhook.go | 18 +- ...e_channel_channel_webhook_read_response.go | 4 +- .../model_chat_v2_service_channel_invite.go | 20 +- ...v2_service_channel_invite_read_response.go | 4 +- .../model_chat_v2_service_channel_member.go | 24 +- ...v2_service_channel_member_read_response.go | 4 +- .../model_chat_v2_service_channel_message.go | 32 +- ...2_service_channel_message_read_response.go | 4 +- ...l_chat_v2_service_channel_read_response.go | 4 +- .../v2/model_chat_v2_service_read_response.go | 4 +- rest/chat/v2/model_chat_v2_service_role.go | 18 +- ...odel_chat_v2_service_role_read_response.go | 4 +- rest/chat/v2/model_chat_v2_service_user.go | 28 +- ...odel_chat_v2_service_user_read_response.go | 4 +- ...model_chat_v2_service_user_user_binding.go | 24 +- ...service_user_user_binding_read_response.go | 4 +- ...model_chat_v2_service_user_user_channel.go | 22 +- ...service_user_user_channel_read_response.go | 4 +- .../model_create_channel_webhook_request.go | 12 +- .../model_update_channel_webhook_request.go | 12 +- rest/chat/v2/model_update_service_request.go | 34 +- rest/conversations/v1/api_default.go | 1606 +++---- rest/conversations/v1/docs/DefaultApi.md | 824 ++-- .../model_conversations_v1_configuration.go | 14 +- ..._v1_configuration_configuration_webhook.go | 14 +- .../v1/model_conversations_v1_conversation.go | 26 +- ...ns_v1_conversation_conversation_message.go | 28 +- ...on_message_conversation_message_receipt.go | 22 +- ...versation_message_receipt_read_response.go | 4 +- ...tion_conversation_message_read_response.go | 4 +- ...1_conversation_conversation_participant.go | 24 +- ..._conversation_participant_read_response.go | 4 +- ...onversation_conversation_scoped_webhook.go | 16 +- ...nversation_scoped_webhook_read_response.go | 4 +- ...ersations_v1_conversation_read_response.go | 4 +- ...ions_v1_conversation_read_response_meta.go | 14 +- .../v1/model_conversations_v1_credential.go | 16 +- ...nversations_v1_credential_read_response.go | 4 +- .../v1/model_conversations_v1_role.go | 18 +- ...del_conversations_v1_role_read_response.go | 4 +- .../v1/model_conversations_v1_service.go | 14 +- ..._conversations_v1_service_read_response.go | 4 +- ...onversations_v1_service_service_binding.go | 22 +- ...1_service_service_binding_read_response.go | 4 +- ...ations_v1_service_service_configuration.go | 14 +- ...vice_configuration_service_notification.go | 14 +- ...sations_v1_service_service_conversation.go | 26 +- ...vice_service_conversation_read_response.go | 4 +- ...nversation_service_conversation_message.go | 30 +- ...vice_conversation_message_read_response.go | 4 +- ...ge_service_conversation_message_receipt.go | 24 +- ...versation_message_receipt_read_response.go | 4 +- ...sation_service_conversation_participant.go | 26 +- ..._conversation_participant_read_response.go | 4 +- ...ion_service_conversation_scoped_webhook.go | 18 +- ...nversation_scoped_webhook_read_response.go | 4 +- ...l_conversations_v1_service_service_role.go | 18 +- ...s_v1_service_service_role_read_response.go | 4 +- ...l_conversations_v1_service_service_user.go | 24 +- ...s_v1_service_service_user_read_response.go | 4 +- .../v1/model_conversations_v1_user.go | 24 +- ...del_conversations_v1_user_read_response.go | 4 +- ...create_conversation_participant_request.go | 6 +- .../v1/model_create_conversation_request.go | 4 +- ...ate_conversation_scoped_webhook_request.go | 12 +- ...ervice_conversation_participant_request.go | 6 +- ...del_create_service_conversation_request.go | 4 +- ...ice_conversation_scoped_webhook_request.go | 12 +- ...update_conversation_participant_request.go | 4 +- .../v1/model_update_conversation_request.go | 4 +- ...ate_conversation_scoped_webhook_request.go | 10 +- ...ervice_conversation_participant_request.go | 4 +- ...del_update_service_conversation_request.go | 4 +- ...ice_conversation_scoped_webhook_request.go | 10 +- ...del_update_service_notification_request.go | 20 +- rest/events/v1/api_default.go | 140 +- rest/events/v1/docs/DefaultApi.md | 80 +- rest/events/v1/model_events_v1_event_type.go | 14 +- ...odel_events_v1_event_type_read_response.go | 4 +- rest/events/v1/model_events_v1_schema.go | 10 +- .../v1/model_events_v1_schema_version.go | 10 +- ..._events_v1_schema_version_read_response.go | 4 +- ...ts_v1_schema_version_read_response_meta.go | 14 +- rest/events/v1/model_events_v1_sink.go | 18 +- .../v1/model_events_v1_sink_read_response.go | 4 +- .../v1/model_events_v1_sink_sink_test_.go | 2 +- .../v1/model_events_v1_sink_sink_validate.go | 2 +- .../events/v1/model_events_v1_subscription.go | 16 +- ...el_events_v1_subscription_read_response.go | 4 +- ...events_v1_subscription_subscribed_event.go | 10 +- ...cription_subscribed_event_read_response.go | 4 +- rest/fax/v1/api_default.go | 94 +- rest/fax/v1/docs/DefaultApi.md | 60 +- rest/fax/v1/model_fax_v1_fax.go | 36 +- rest/fax/v1/model_fax_v1_fax_fax_media.go | 14 +- ...odel_fax_v1_fax_fax_media_read_response.go | 4 +- rest/fax/v1/model_fax_v1_fax_read_response.go | 4 +- .../v1/model_fax_v1_fax_read_response_meta.go | 14 +- rest/flex/v1/api_default.go | 301 +- rest/flex/v1/docs/DefaultApi.md | 146 +- .../flex/v1/model_create_flex_flow_request.go | 18 +- rest/flex/v1/model_flex_v1_channel.go | 16 +- .../v1/model_flex_v1_channel_read_response.go | 4 +- ...odel_flex_v1_channel_read_response_meta.go | 14 +- rest/flex/v1/model_flex_v1_configuration.go | 74 +- rest/flex/v1/model_flex_v1_flex_flow.go | 28 +- .../model_flex_v1_flex_flow_read_response.go | 4 +- rest/flex/v1/model_flex_v1_web_channel.go | 12 +- ...model_flex_v1_web_channel_read_response.go | 4 +- .../flex/v1/model_update_flex_flow_request.go | 18 +- rest/insights/v1/api_call_tag.go | 10 +- rest/insights/v1/api_events_tag.go | 12 +- rest/insights/v1/api_metrics_tag.go | 14 +- rest/insights/v1/api_summary_tag.go | 10 +- .../v1/api_video_participant_summary_tag.go | 23 +- .../insights/v1/api_video_room_summary_tag.go | 24 +- rest/insights/v1/docs/CallTagApi.md | 4 +- rest/insights/v1/docs/EventsTagApi.md | 8 +- rest/insights/v1/docs/MetricsTagApi.md | 10 +- rest/insights/v1/docs/SummaryTagApi.md | 6 +- .../v1/docs/VideoParticipantSummaryTagApi.md | 12 +- .../v1/docs/VideoRoomSummaryTagApi.md | 16 +- rest/insights/v1/model_insights_v1_call.go | 6 +- .../v1/model_insights_v1_call_event.go | 22 +- ...el_insights_v1_call_event_read_response.go | 4 +- .../v1/model_insights_v1_call_metric.go | 18 +- ...l_insights_v1_call_metric_read_response.go | 4 +- .../v1/model_insights_v1_call_summary.go | 40 +- .../model_insights_v1_video_room_summary.go | 52 +- ...hts_v1_video_room_summary_read_response.go | 4 +- ...1_video_room_summary_read_response_meta.go | 14 +- ..._room_summary_video_participant_summary.go | 34 +- ...video_participant_summary_read_response.go | 4 +- rest/ip/messaging/api_default.go | 1114 ++--- rest/ip/messaging/docs/DefaultApi.md | 592 +-- .../model_create_channel_webhook_request.go | 12 +- .../model_ip_messaging_v1_credential.go | 16 +- ...p_messaging_v1_credential_read_response.go | 4 +- ...saging_v1_credential_read_response_meta.go | 14 +- .../model_ip_messaging_v1_service.go | 42 +- .../model_ip_messaging_v1_service_channel.go | 28 +- ..._ip_messaging_v1_service_channel_invite.go | 20 +- ...v1_service_channel_invite_read_response.go | 4 +- ..._ip_messaging_v1_service_channel_member.go | 22 +- ...v1_service_channel_member_read_response.go | 4 +- ...ip_messaging_v1_service_channel_message.go | 26 +- ...1_service_channel_message_read_response.go | 4 +- ...saging_v1_service_channel_read_response.go | 4 +- ...l_ip_messaging_v1_service_read_response.go | 4 +- .../model_ip_messaging_v1_service_role.go | 18 +- ...messaging_v1_service_role_read_response.go | 4 +- .../model_ip_messaging_v1_service_user.go | 28 +- ...messaging_v1_service_user_read_response.go | 4 +- ..._messaging_v1_service_user_user_channel.go | 16 +- ...service_user_user_channel_read_response.go | 4 +- .../model_ip_messaging_v2_credential.go | 16 +- ...p_messaging_v2_credential_read_response.go | 4 +- ...saging_v2_credential_read_response_meta.go | 14 +- .../model_ip_messaging_v2_service.go | 46 +- .../model_ip_messaging_v2_service_binding.go | 24 +- ...saging_v2_service_binding_read_response.go | 4 +- .../model_ip_messaging_v2_service_channel.go | 28 +- ...ging_v2_service_channel_channel_webhook.go | 18 +- ...e_channel_channel_webhook_read_response.go | 4 +- ..._ip_messaging_v2_service_channel_invite.go | 20 +- ...v2_service_channel_invite_read_response.go | 4 +- ..._ip_messaging_v2_service_channel_member.go | 24 +- ...v2_service_channel_member_read_response.go | 4 +- ...ip_messaging_v2_service_channel_message.go | 32 +- ...2_service_channel_message_read_response.go | 4 +- ...saging_v2_service_channel_read_response.go | 4 +- ...l_ip_messaging_v2_service_read_response.go | 4 +- .../model_ip_messaging_v2_service_role.go | 18 +- ...messaging_v2_service_role_read_response.go | 4 +- .../model_ip_messaging_v2_service_user.go | 28 +- ...messaging_v2_service_user_read_response.go | 4 +- ..._messaging_v2_service_user_user_binding.go | 24 +- ...service_user_user_binding_read_response.go | 4 +- ..._messaging_v2_service_user_user_channel.go | 22 +- ...service_user_user_channel_read_response.go | 4 +- .../model_update_channel_webhook_request.go | 12 +- .../messaging/model_update_service_request.go | 34 +- rest/lookups/v1/api_default.go | 16 +- rest/lookups/v1/docs/DefaultApi.md | 12 +- .../v1/model_lookups_v1_phone_number.go | 14 +- rest/messaging/v1/api_default.go | 222 +- rest/messaging/v1/docs/DefaultApi.md | 144 +- .../v1/model_messaging_v1_deactivation.go | 2 +- .../v1/model_messaging_v1_service.go | 40 +- ...model_messaging_v1_service_alpha_sender.go | 16 +- ...g_v1_service_alpha_sender_read_response.go | 4 +- ...model_messaging_v1_service_phone_number.go | 18 +- ...g_v1_service_phone_number_read_response.go | 4 +- ...odel_messaging_v1_service_read_response.go | 4 +- ...messaging_v1_service_read_response_meta.go | 14 +- .../model_messaging_v1_service_short_code.go | 18 +- ...ing_v1_service_short_code_read_response.go | 4 +- rest/monitor/v1/api_default.go | 44 +- rest/monitor/v1/docs/DefaultApi.md | 30 +- rest/monitor/v1/model_monitor_v1_alert.go | 30 +- .../v1/model_monitor_v1_alert_instance.go | 38 +- .../model_monitor_v1_alert_read_response.go | 4 +- ...del_monitor_v1_alert_read_response_meta.go | 14 +- rest/monitor/v1/model_monitor_v1_event.go | 28 +- .../model_monitor_v1_event_read_response.go | 4 +- rest/notify/v1/api_default.go | 251 +- rest/notify/v1/docs/DefaultApi.md | 196 +- rest/notify/v1/model_notify_v1_credential.go | 16 +- ...odel_notify_v1_credential_read_response.go | 4 +- ...notify_v1_credential_read_response_meta.go | 14 +- rest/notify/v1/model_notify_v1_service.go | 40 +- .../v1/model_notify_v1_service_binding.go | 28 +- ...notify_v1_service_binding_read_response.go | 4 +- .../model_notify_v1_service_notification.go | 40 +- .../model_notify_v1_service_read_response.go | 4 +- rest/numbers/v2/api_default.go | 257 +- rest/numbers/v2/docs/DefaultApi.md | 158 +- ...numbers_v2_regulatory_compliance_bundle.go | 24 +- ...regulatory_compliance_bundle_evaluation.go | 16 +- ...pliance_bundle_evaluation_read_response.go | 4 +- ...atory_compliance_bundle_item_assignment.go | 12 +- ...ce_bundle_item_assignment_read_response.go | 4 +- ...ulatory_compliance_bundle_read_response.go | 4 +- ...ry_compliance_bundle_read_response_meta.go | 14 +- ...mbers_v2_regulatory_compliance_end_user.go | 16 +- ...atory_compliance_end_user_read_response.go | 4 +- ..._v2_regulatory_compliance_end_user_type.go | 10 +- ..._compliance_end_user_type_read_response.go | 4 +- ...ers_v2_regulatory_compliance_regulation.go | 14 +- ...ory_compliance_regulation_read_response.go | 4 +- ...gulatory_compliance_supporting_document.go | 20 +- ...iance_supporting_document_read_response.go | 4 +- ...ory_compliance_supporting_document_type.go | 10 +- ..._supporting_document_type_read_response.go | 4 +- rest/preview/api_default.go | 2112 +++++----- rest/preview/docs/DefaultApi.md | 1308 +++--- .../model_preview_bulk_exports_export.go | 6 +- ...eview_bulk_exports_export_configuration.go | 10 +- .../model_preview_bulk_exports_export_day.go | 10 +- ...review_bulk_exports_export_day_instance.go | 2 +- ...w_bulk_exports_export_day_read_response.go | 4 +- ...k_exports_export_day_read_response_meta.go | 14 +- ...w_bulk_exports_export_export_custom_job.go | 18 +- ..._export_export_custom_job_read_response.go | 4 +- .../model_preview_bulk_exports_export_job.go | 20 +- .../model_preview_deployed_devices_fleet.go | 18 +- ...view_deployed_devices_fleet_certificate.go | 18 +- ...devices_fleet_certificate_read_response.go | 4 +- ...eview_deployed_devices_fleet_deployment.go | 16 +- ..._devices_fleet_deployment_read_response.go | 4 +- ...l_preview_deployed_devices_fleet_device.go | 24 +- ...oyed_devices_fleet_device_read_response.go | 4 +- ...odel_preview_deployed_devices_fleet_key.go | 18 +- ...eployed_devices_fleet_key_read_response.go | 4 +- ...ew_deployed_devices_fleet_read_response.go | 4 +- ...w_hosted_numbers_authorization_document.go | 18 +- ..._document_dependent_hosted_number_order.go | 44 +- ...ndent_hosted_number_order_read_response.go | 4 +- ...rs_authorization_document_read_response.go | 4 +- ...view_hosted_numbers_hosted_number_order.go | 46 +- ...mbers_hosted_number_order_read_response.go | 4 +- ...el_preview_marketplace_available_add_on.go | 14 +- ...lable_add_on_available_add_on_extension.go | 12 +- ...vailable_add_on_extension_read_response.go | 4 +- ...ketplace_available_add_on_read_response.go | 4 +- ...el_preview_marketplace_installed_add_on.go | 20 +- ...alled_add_on_installed_add_on_extension.go | 14 +- ...nstalled_add_on_extension_read_response.go | 4 +- ...ketplace_installed_add_on_read_response.go | 4 +- rest/preview/model_preview_sync_service.go | 20 +- .../model_preview_sync_service_document.go | 22 +- ...nc_service_document_document_permission.go | 16 +- ...ument_document_permission_read_response.go | 4 +- ...iew_sync_service_document_read_response.go | 4 +- ...odel_preview_sync_service_read_response.go | 4 +- .../model_preview_sync_service_sync_list.go | 20 +- ...ew_sync_service_sync_list_read_response.go | 4 +- ...w_sync_service_sync_list_sync_list_item.go | 20 +- ..._sync_list_sync_list_item_read_response.go | 4 +- ..._service_sync_list_sync_list_permission.go | 16 +- ...list_sync_list_permission_read_response.go | 4 +- .../model_preview_sync_service_sync_map.go | 20 +- ...iew_sync_service_sync_map_read_response.go | 4 +- ...iew_sync_service_sync_map_sync_map_item.go | 20 +- ...ce_sync_map_sync_map_item_read_response.go | 4 +- ...nc_service_sync_map_sync_map_permission.go | 16 +- ...c_map_sync_map_permission_read_response.go | 4 +- ...l_preview_trusted_comms_branded_channel.go | 12 +- ...w_trusted_comms_branded_channel_channel.go | 14 +- ...review_trusted_comms_brands_information.go | 8 +- .../model_preview_trusted_comms_cps.go | 6 +- ...odel_preview_trusted_comms_current_call.go | 28 +- .../model_preview_understand_assistant.go | 24 +- ...nd_assistant_assistant_fallback_actions.go | 8 +- ..._assistant_assistant_initiation_actions.go | 8 +- ...l_preview_understand_assistant_dialogue.go | 10 +- ...preview_understand_assistant_field_type.go | 18 +- ...rstand_assistant_field_type_field_value.go | 20 +- ...nt_field_type_field_value_read_response.go | 4 +- ...tand_assistant_field_type_read_response.go | 4 +- ...review_understand_assistant_model_build.go | 20 +- ...and_assistant_model_build_read_response.go | 4 +- ...odel_preview_understand_assistant_query.go | 26 +- ...nderstand_assistant_query_read_response.go | 4 +- ...view_understand_assistant_read_response.go | 4 +- ...review_understand_assistant_style_sheet.go | 8 +- ...model_preview_understand_assistant_task.go | 20 +- ...preview_understand_assistant_task_field.go | 18 +- ...tand_assistant_task_field_read_response.go | 4 +- ...understand_assistant_task_read_response.go | 4 +- ...review_understand_assistant_task_sample.go | 20 +- ...and_assistant_task_sample_read_response.go | 4 +- ..._understand_assistant_task_task_actions.go | 10 +- ...derstand_assistant_task_task_statistics.go | 12 +- .../preview/model_preview_wireless_command.go | 22 +- ..._preview_wireless_command_read_response.go | 4 +- .../model_preview_wireless_rate_plan.go | 28 +- ...review_wireless_rate_plan_read_response.go | 4 +- rest/preview/model_preview_wireless_sim.go | 44 +- ...odel_preview_wireless_sim_read_response.go | 4 +- .../model_preview_wireless_sim_usage.go | 18 +- rest/pricing/v1/api_default.go | 46 +- rest/pricing/v1/docs/DefaultApi.md | 22 +- rest/pricing/v1/model_pricing_v1_messaging.go | 6 +- ..._pricing_v1_messaging_messaging_country.go | 6 +- ...v1_messaging_messaging_country_instance.go | 12 +- ...ing_country_instance_inbound_sms_prices.go | 6 +- ...ng_country_instance_outbound_sms_prices.go | 8 +- ...ssaging_messaging_country_read_response.go | 4 +- ...ng_messaging_country_read_response_meta.go | 14 +- .../v1/model_pricing_v1_phone_number.go | 6 +- ...ng_v1_phone_number_phone_number_country.go | 6 +- ...ne_number_phone_number_country_instance.go | 10 +- ...mber_phone_number_country_read_response.go | 4 +- rest/pricing/v1/model_pricing_v1_voice.go | 6 +- .../model_pricing_v1_voice_voice_country.go | 6 +- ...pricing_v1_voice_voice_country_instance.go | 12 +- ...country_instance_outbound_prefix_prices.go | 8 +- ...ng_v1_voice_voice_country_read_response.go | 4 +- .../v1/model_pricing_v1_voice_voice_number.go | 14 +- ..._voice_voice_number_outbound_call_price.go | 4 +- rest/pricing/v2/api_default.go | 22 +- rest/pricing/v2/docs/DefaultApi.md | 12 +- rest/pricing/v2/model_pricing_v2_voice.go | 6 +- .../model_pricing_v2_voice_voice_country.go | 6 +- ...pricing_v2_voice_voice_country_instance.go | 12 +- ...ce_country_instance_inbound_call_prices.go | 6 +- ...country_instance_outbound_prefix_prices.go | 10 +- ...ng_v2_voice_voice_country_read_response.go | 4 +- ..._voice_voice_country_read_response_meta.go | 14 +- .../v2/model_pricing_v2_voice_voice_number.go | 16 +- ...voice_voice_number_outbound_call_prices.go | 6 +- rest/proxy/v1/api_default.go | 428 +- rest/proxy/v1/docs/DefaultApi.md | 260 +- rest/proxy/v1/model_proxy_v1_service.go | 28 +- .../v1/model_proxy_v1_service_phone_number.go | 24 +- ...y_v1_service_phone_number_read_response.go | 4 +- .../model_proxy_v1_service_read_response.go | 4 +- ...del_proxy_v1_service_read_response_meta.go | 14 +- .../v1/model_proxy_v1_service_session.go | 32 +- ...el_proxy_v1_service_session_interaction.go | 38 +- ...rvice_session_interaction_read_response.go | 4 +- ...el_proxy_v1_service_session_participant.go | 26 +- ...session_participant_message_interaction.go | 40 +- ...ipant_message_interaction_read_response.go | 4 +- ...rvice_session_participant_read_response.go | 4 +- ..._proxy_v1_service_session_read_response.go | 4 +- .../v1/model_proxy_v1_service_short_code.go | 20 +- ...oxy_v1_service_short_code_read_response.go | 4 +- rest/serverless/v1/api_default.go | 503 ++- rest/serverless/v1/docs/DefaultApi.md | 284 +- .../v1/model_serverless_v1_service.go | 20 +- .../v1/model_serverless_v1_service_asset.go | 16 +- ...rverless_v1_service_asset_asset_version.go | 16 +- ...rvice_asset_asset_version_read_response.go | 4 +- ...rverless_v1_service_asset_read_response.go | 4 +- .../v1/model_serverless_v1_service_build.go | 22 +- ...erverless_v1_service_build_build_status.go | 10 +- ...rverless_v1_service_build_read_response.go | 4 +- ...model_serverless_v1_service_environment.go | 22 +- ...rless_v1_service_environment_deployment.go | 16 +- ...ce_environment_deployment_read_response.go | 4 +- ...l_serverless_v1_service_environment_log.go | 24 +- ...1_service_environment_log_read_response.go | 4 +- ...ss_v1_service_environment_read_response.go | 4 +- ...verless_v1_service_environment_variable.go | 18 +- ...vice_environment_variable_read_response.go | 4 +- .../model_serverless_v1_service_function.go | 16 +- ...ss_v1_service_function_function_version.go | 18 +- ...nction_version_function_version_content.go | 12 +- ...function_function_version_read_response.go | 4 +- ...rless_v1_service_function_read_response.go | 4 +- ...del_serverless_v1_service_read_response.go | 4 +- ...erverless_v1_service_read_response_meta.go | 14 +- rest/studio/v1/api_default.go | 256 +- rest/studio/v1/docs/DefaultApi.md | 138 +- rest/studio/v1/model_studio_v1_flow.go | 18 +- .../v1/model_studio_v1_flow_engagement.go | 22 +- ...o_v1_flow_engagement_engagement_context.go | 10 +- ...studio_v1_flow_engagement_read_response.go | 4 +- .../model_studio_v1_flow_engagement_step.go | 24 +- ...o_v1_flow_engagement_step_read_response.go | 4 +- ...io_v1_flow_engagement_step_step_context.go | 12 +- .../v1/model_studio_v1_flow_execution.go | 22 +- ...dio_v1_flow_execution_execution_context.go | 10 +- ...studio_v1_flow_execution_execution_step.go | 24 +- ...n_execution_step_execution_step_context.go | 12 +- ..._execution_execution_step_read_response.go | 4 +- ..._studio_v1_flow_execution_read_response.go | 4 +- .../v1/model_studio_v1_flow_read_response.go | 4 +- ...model_studio_v1_flow_read_response_meta.go | 14 +- rest/studio/v2/api_default.go | 209 +- rest/studio/v2/api_flows.go | 12 +- rest/studio/v2/docs/DefaultApi.md | 120 +- rest/studio/v2/docs/FlowsApi.md | 10 +- rest/studio/v2/model_studio_v2_flow.go | 30 +- .../v2/model_studio_v2_flow_execution.go | 20 +- ...dio_v2_flow_execution_execution_context.go | 10 +- ...studio_v2_flow_execution_execution_step.go | 24 +- ...n_execution_step_execution_step_context.go | 12 +- ..._execution_execution_step_read_response.go | 4 +- ..._studio_v2_flow_execution_read_response.go | 4 +- .../v2/model_studio_v2_flow_flow_revision.go | 24 +- ...dio_v2_flow_flow_revision_read_response.go | 4 +- .../v2/model_studio_v2_flow_read_response.go | 4 +- ...model_studio_v2_flow_read_response_meta.go | 14 +- .../v2/model_studio_v2_flow_test_user.go | 6 +- .../v2/model_studio_v2_flow_validate.go | 2 +- rest/supersim/v1/api_default.go | 213 +- rest/supersim/v1/docs/DefaultApi.md | 148 +- rest/supersim/v1/model_supersim_v1_command.go | 18 +- ...model_supersim_v1_command_read_response.go | 4 +- ..._supersim_v1_command_read_response_meta.go | 14 +- rest/supersim/v1/model_supersim_v1_fleet.go | 26 +- .../model_supersim_v1_fleet_read_response.go | 4 +- rest/supersim/v1/model_supersim_v1_network.go | 10 +- ...odel_supersim_v1_network_access_profile.go | 14 +- ..._profile_network_access_profile_network.go | 12 +- ...rk_access_profile_network_read_response.go | 4 +- ...v1_network_access_profile_read_response.go | 4 +- ...model_supersim_v1_network_read_response.go | 4 +- rest/supersim/v1/model_supersim_v1_sim.go | 18 +- .../v1/model_supersim_v1_sim_read_response.go | 4 +- .../v1/model_supersim_v1_usage_record.go | 18 +- ..._supersim_v1_usage_record_read_response.go | 4 +- rest/sync/v1/api_default.go | 757 ++-- rest/sync/v1/docs/DefaultApi.md | 458 +- rest/sync/v1/model_sync_v1_service.go | 28 +- .../sync/v1/model_sync_v1_service_document.go | 24 +- ...v1_service_document_document_permission.go | 16 +- ...ument_document_permission_read_response.go | 4 +- ..._sync_v1_service_document_read_response.go | 4 +- .../v1/model_sync_v1_service_read_response.go | 4 +- ...odel_sync_v1_service_read_response_meta.go | 14 +- .../v1/model_sync_v1_service_sync_list.go | 22 +- ...sync_v1_service_sync_list_read_response.go | 4 +- ...ync_v1_service_sync_list_sync_list_item.go | 22 +- ..._sync_list_sync_list_item_read_response.go | 4 +- ..._service_sync_list_sync_list_permission.go | 16 +- ...list_sync_list_permission_read_response.go | 4 +- .../sync/v1/model_sync_v1_service_sync_map.go | 22 +- ..._sync_v1_service_sync_map_read_response.go | 4 +- ..._sync_v1_service_sync_map_sync_map_item.go | 22 +- ...ce_sync_map_sync_map_item_read_response.go | 4 +- ...v1_service_sync_map_sync_map_permission.go | 16 +- ...c_map_sync_map_permission_read_response.go | 4 +- .../v1/model_sync_v1_service_sync_stream.go | 20 +- ...nc_v1_service_sync_stream_read_response.go | 4 +- ...c_v1_service_sync_stream_stream_message.go | 4 +- rest/taskrouter/v1/api_default.go | 1150 ++--- rest/taskrouter/v1/docs/DefaultApi.md | 854 ++-- .../v1/model_taskrouter_v1_workspace.go | 30 +- .../model_taskrouter_v1_workspace_activity.go | 16 +- ...ter_v1_workspace_activity_read_response.go | 4 +- .../v1/model_taskrouter_v1_workspace_event.go | 34 +- ...router_v1_workspace_event_read_response.go | 4 +- ...l_taskrouter_v1_workspace_read_response.go | 4 +- ...krouter_v1_workspace_read_response_meta.go | 14 +- .../v1/model_taskrouter_v1_workspace_task.go | 42 +- ...el_taskrouter_v1_workspace_task_channel.go | 20 +- ...v1_workspace_task_channel_read_response.go | 4 +- ...odel_taskrouter_v1_workspace_task_queue.go | 30 +- ...r_v1_workspace_task_queue_read_response.go | 4 +- ..._queue_task_queue_cumulative_statistics.go | 44 +- ...k_queue_task_queue_real_time_statistics.go | 28 +- ...kspace_task_queue_task_queue_statistics.go | 12 +- ...space_task_queue_task_queues_statistics.go | 10 +- ...ue_task_queues_statistics_read_response.go | 4 +- ...krouter_v1_workspace_task_read_response.go | 4 +- ...uter_v1_workspace_task_task_reservation.go | 22 +- ...ace_task_task_reservation_read_response.go | 4 +- .../model_taskrouter_v1_workspace_worker.go | 26 +- ...outer_v1_workspace_worker_read_response.go | 4 +- ...uter_v1_workspace_worker_worker_channel.go | 26 +- ...ace_worker_worker_channel_read_response.go | 4 +- ...space_worker_worker_instance_statistics.go | 10 +- ..._v1_workspace_worker_worker_reservation.go | 22 +- ...worker_worker_reservation_read_response.go | 4 +- ...r_v1_workspace_worker_worker_statistics.go | 10 +- ...ce_worker_workers_cumulative_statistics.go | 24 +- ...ace_worker_workers_real_time_statistics.go | 10 +- .../model_taskrouter_v1_workspace_workflow.go | 26 +- ...ter_v1_workspace_workflow_read_response.go | 4 +- ...workflow_workflow_cumulative_statistics.go | 44 +- ..._workflow_workflow_real_time_statistics.go | 18 +- ..._workspace_workflow_workflow_statistics.go | 12 +- ...rkspace_workspace_cumulative_statistics.go | 42 +- ...orkspace_workspace_real_time_statistics.go | 20 +- ...outer_v1_workspace_workspace_statistics.go | 10 +- rest/trunking/v1/api_default.go | 283 +- rest/trunking/v1/docs/DefaultApi.md | 174 +- rest/trunking/v1/model_trunking_v1_trunk.go | 32 +- ...model_trunking_v1_trunk_credential_list.go | 14 +- ..._v1_trunk_credential_list_read_response.go | 4 +- ...runking_v1_trunk_ip_access_control_list.go | 14 +- ...nk_ip_access_control_list_read_response.go | 4 +- ...model_trunking_v1_trunk_origination_url.go | 22 +- ..._v1_trunk_origination_url_read_response.go | 4 +- .../model_trunking_v1_trunk_phone_number.go | 52 +- ...ing_v1_trunk_phone_number_read_response.go | 4 +- .../model_trunking_v1_trunk_read_response.go | 4 +- ...el_trunking_v1_trunk_read_response_meta.go | 14 +- .../v1/model_trunking_v1_trunk_recording.go | 4 +- rest/verify/v2/api_default.go | 752 ++-- rest/verify/v2/docs/DefaultApi.md | 420 +- .../v2/model_create_challenge_request.go | 4 +- rest/verify/v2/model_create_factor_request.go | 12 +- .../verify/v2/model_create_service_request.go | 6 +- rest/verify/v2/model_update_factor_request.go | 4 +- .../verify/v2/model_update_service_request.go | 6 +- rest/verify/v2/model_verify_v2_form.go | 8 +- rest/verify/v2/model_verify_v2_service.go | 32 +- .../model_verify_v2_service_access_token.go | 2 +- .../v2/model_verify_v2_service_entity.go | 16 +- ...odel_verify_v2_service_entity_challenge.go | 32 +- ..._service_entity_challenge_read_response.go | 4 +- .../model_verify_v2_service_entity_factor.go | 24 +- ..._v2_service_entity_factor_read_response.go | 4 +- ..._verify_v2_service_entity_read_response.go | 4 +- ...rify_v2_service_messaging_configuration.go | 14 +- ...e_messaging_configuration_read_response.go | 4 +- .../v2/model_verify_v2_service_rate_limit.go | 18 +- ...del_verify_v2_service_rate_limit_bucket.go | 18 +- ...service_rate_limit_bucket_read_response.go | 4 +- ...ify_v2_service_rate_limit_read_response.go | 4 +- .../model_verify_v2_service_read_response.go | 4 +- ...el_verify_v2_service_read_response_meta.go | 14 +- .../model_verify_v2_service_verification.go | 28 +- ...el_verify_v2_service_verification_check.go | 22 +- .../v2/model_verify_v2_service_webhook.go | 22 +- ...verify_v2_service_webhook_read_response.go | 4 +- rest/video/v1/api_default.go | 430 +- rest/video/v1/docs/DefaultApi.md | 292 +- rest/video/v1/model_video_v1_composition.go | 36 +- .../v1/model_video_v1_composition_hook.go | 30 +- ...video_v1_composition_hook_read_response.go | 4 +- ..._v1_composition_hook_read_response_meta.go | 14 +- ...odel_video_v1_composition_read_response.go | 4 +- .../v1/model_video_v1_composition_settings.go | 16 +- rest/video/v1/model_video_v1_recording.go | 30 +- .../model_video_v1_recording_read_response.go | 4 +- .../v1/model_video_v1_recording_settings.go | 16 +- rest/video/v1/model_video_v1_room.go | 36 +- .../v1/model_video_v1_room_read_response.go | 4 +- .../model_video_v1_room_room_participant.go | 24 +- ..._v1_room_room_participant_read_response.go | 4 +- ...cipant_room_participant_published_track.go | 18 +- ...rticipant_published_track_read_response.go | 4 +- ...icipant_room_participant_subscribe_rule.go | 10 +- ...ipant_room_participant_subscribed_track.go | 20 +- ...ticipant_subscribed_track_read_response.go | 4 +- .../v1/model_video_v1_room_room_recording.go | 32 +- ...eo_v1_room_room_recording_read_response.go | 4 +- ...model_video_v1_room_room_recording_rule.go | 8 +- rest/voice/v1/api_default.go | 290 +- rest/voice/v1/docs/DefaultApi.md | 190 +- rest/voice/v1/model_voice_v1_byoc_trunk.go | 30 +- ...model_voice_v1_byoc_trunk_read_response.go | 4 +- ..._voice_v1_byoc_trunk_read_response_meta.go | 14 +- .../v1/model_voice_v1_connection_policy.go | 14 +- ...nection_policy_connection_policy_target.go | 22 +- ..._connection_policy_target_read_response.go | 4 +- ...oice_v1_connection_policy_read_response.go | 4 +- ...permissions_dialing_permissions_country.go | 18 +- ...dialing_permissions_country_bulk_update.go | 4 +- ...ountry_dialing_permissions_hrs_prefixes.go | 2 +- ..._permissions_hrs_prefixes_read_response.go | 4 +- ...ns_dialing_permissions_country_instance.go | 18 +- ...aling_permissions_country_read_response.go | 4 +- ...ermissions_dialing_permissions_settings.go | 4 +- rest/voice/v1/model_voice_v1_ip_record.go | 16 +- .../model_voice_v1_ip_record_read_response.go | 4 +- .../v1/model_voice_v1_source_ip_mapping.go | 12 +- ...oice_v1_source_ip_mapping_read_response.go | 4 +- rest/wireless/v1/api_default.go | 208 +- rest/wireless/v1/docs/DefaultApi.md | 158 +- .../model_wireless_v1_account_usage_record.go | 8 +- ...s_v1_account_usage_record_read_response.go | 4 +- rest/wireless/v1/model_wireless_v1_command.go | 24 +- ...model_wireless_v1_command_read_response.go | 4 +- ..._wireless_v1_command_read_response_meta.go | 14 +- .../v1/model_wireless_v1_rate_plan.go | 32 +- ...del_wireless_v1_rate_plan_read_response.go | 4 +- rest/wireless/v1/model_wireless_v1_sim.go | 48 +- .../v1/model_wireless_v1_sim_data_session.go | 32 +- ...eless_v1_sim_data_session_read_response.go | 4 +- .../v1/model_wireless_v1_sim_read_response.go | 4 +- .../v1/model_wireless_v1_sim_usage_record.go | 10 +- ...eless_v1_sim_usage_record_read_response.go | 4 +- twilio/twilio.go | 2 +- 823 files changed, 20920 insertions(+), 19695 deletions(-) diff --git a/rest/accounts/v1/api_default.go b/rest/accounts/v1/api_default.go index 2b4b441a2..f440dbef7 100644 --- a/rest/accounts/v1/api_default.go +++ b/rest/accounts/v1/api_default.go @@ -15,6 +15,7 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" ) type DefaultApiService struct { @@ -47,17 +48,18 @@ Create a new AWS Credential func (c *DefaultApiService) CreateCredentialAws(params *CreateCredentialAwsParams) (*AccountsV1CredentialCredentialAws, error) { path := "/v1/Credentials/AWS" + data := url.Values{} headers := 0 if params != nil && params.AccountSid != nil { - data.Set("AccountSid", *params.AccountSid) + data.Set("AccountSid", *params.AccountSid) } if params != nil && params.Credentials != nil { - data.Set("Credentials", *params.Credentials) + data.Set("Credentials", *params.Credentials) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -94,17 +96,18 @@ Create a new Public Key Credential func (c *DefaultApiService) CreateCredentialPublicKey(params *CreateCredentialPublicKeyParams) (*AccountsV1CredentialCredentialPublicKey, error) { path := "/v1/Credentials/PublicKeys" + data := url.Values{} headers := 0 if params != nil && params.AccountSid != nil { - data.Set("AccountSid", *params.AccountSid) + data.Set("AccountSid", *params.AccountSid) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.PublicKey != nil { - data.Set("PublicKey", *params.PublicKey) + data.Set("PublicKey", *params.PublicKey) } @@ -131,7 +134,8 @@ Create a new secondary Auth Token func (c *DefaultApiService) CreateSecondaryAuthToken() (*AccountsV1SecondaryAuthToken, error) { path := "/v1/AuthTokens/Secondary" - data := 0 + + data := url.Values{} headers := 0 @@ -154,13 +158,14 @@ func (c *DefaultApiService) CreateSecondaryAuthToken() (*AccountsV1SecondaryAuth /* DeleteCredentialAws Method for DeleteCredentialAws Delete a Credential from your account - * @param sid The Twilio-provided string that uniquely identifies the AWS resource to delete. + * @param Sid The Twilio-provided string that uniquely identifies the AWS resource to delete. */ -func (c *DefaultApiService) DeleteCredentialAws(sid string) (error) { +func (c *DefaultApiService) DeleteCredentialAws(Sid string) (error) { path := "/v1/Credentials/AWS/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -178,13 +183,14 @@ func (c *DefaultApiService) DeleteCredentialAws(sid string) (error) { /* DeleteCredentialPublicKey Method for DeleteCredentialPublicKey Delete a Credential from your account - * @param sid The Twilio-provided string that uniquely identifies the PublicKey resource to delete. + * @param Sid The Twilio-provided string that uniquely identifies the PublicKey resource to delete. */ -func (c *DefaultApiService) DeleteCredentialPublicKey(sid string) (error) { +func (c *DefaultApiService) DeleteCredentialPublicKey(Sid string) (error) { path := "/v1/Credentials/PublicKeys/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -206,7 +212,8 @@ Delete the secondary Auth Token from your account func (c *DefaultApiService) DeleteSecondaryAuthToken() (error) { path := "/v1/AuthTokens/Secondary" - data := 0 + + data := url.Values{} headers := 0 @@ -224,14 +231,15 @@ func (c *DefaultApiService) DeleteSecondaryAuthToken() (error) { /* FetchCredentialAws Method for FetchCredentialAws Fetch the AWS credentials specified by the provided Credential Sid - * @param sid The Twilio-provided string that uniquely identifies the AWS resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the AWS resource to fetch. @return AccountsV1CredentialCredentialAws */ -func (c *DefaultApiService) FetchCredentialAws(sid string) (*AccountsV1CredentialCredentialAws, error) { +func (c *DefaultApiService) FetchCredentialAws(Sid string) (*AccountsV1CredentialCredentialAws, error) { path := "/v1/Credentials/AWS/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -254,14 +262,15 @@ func (c *DefaultApiService) FetchCredentialAws(sid string) (*AccountsV1Credentia /* FetchCredentialPublicKey Method for FetchCredentialPublicKey Fetch the public key specified by the provided Credential Sid - * @param sid The Twilio-provided string that uniquely identifies the PublicKey resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the PublicKey resource to fetch. @return AccountsV1CredentialCredentialPublicKey */ -func (c *DefaultApiService) FetchCredentialPublicKey(sid string) (*AccountsV1CredentialCredentialPublicKey, error) { +func (c *DefaultApiService) FetchCredentialPublicKey(Sid string) (*AccountsV1CredentialCredentialPublicKey, error) { path := "/v1/Credentials/PublicKeys/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -295,11 +304,12 @@ Retrieves a collection of AWS Credentials belonging to the account used to make func (c *DefaultApiService) ListCredentialAws(params *ListCredentialAwsParams) (*AccountsV1CredentialCredentialAwsReadResponse, error) { path := "/v1/Credentials/AWS" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -332,11 +342,12 @@ Retrieves a collection of Public Key Credentials belonging to the account used t func (c *DefaultApiService) ListCredentialPublicKey(params *ListCredentialPublicKeyParams) (*AccountsV1CredentialCredentialPublicKeyReadResponse, error) { path := "/v1/Credentials/PublicKeys" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -363,7 +374,8 @@ Promote the secondary Auth Token to primary. After promoting the new token, all func (c *DefaultApiService) UpdateAuthTokenPromotion() (*AccountsV1AuthTokenPromotion, error) { path := "/v1/AuthTokens/Promote" - data := 0 + + data := url.Values{} headers := 0 @@ -390,20 +402,21 @@ type UpdateCredentialAwsParams struct { /* UpdateCredentialAws Method for UpdateCredentialAws Modify the properties of a given Account - * @param sid The Twilio-provided string that uniquely identifies the AWS resource to update. + * @param Sid The Twilio-provided string that uniquely identifies the AWS resource to update. * @param optional nil or *UpdateCredentialAwsOpts - Optional Parameters: * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. @return AccountsV1CredentialCredentialAws */ -func (c *DefaultApiService) UpdateCredentialAws(sid string, params *UpdateCredentialAwsParams) (*AccountsV1CredentialCredentialAws, error) { +func (c *DefaultApiService) UpdateCredentialAws(Sid string, params *UpdateCredentialAwsParams) (*AccountsV1CredentialCredentialAws, error) { path := "/v1/Credentials/AWS/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -429,20 +442,21 @@ type UpdateCredentialPublicKeyParams struct { /* UpdateCredentialPublicKey Method for UpdateCredentialPublicKey Modify the properties of a given Account - * @param sid The Twilio-provided string that uniquely identifies the PublicKey resource to update. + * @param Sid The Twilio-provided string that uniquely identifies the PublicKey resource to update. * @param optional nil or *UpdateCredentialPublicKeyOpts - Optional Parameters: * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. @return AccountsV1CredentialCredentialPublicKey */ -func (c *DefaultApiService) UpdateCredentialPublicKey(sid string, params *UpdateCredentialPublicKeyParams) (*AccountsV1CredentialCredentialPublicKey, error) { +func (c *DefaultApiService) UpdateCredentialPublicKey(Sid string, params *UpdateCredentialPublicKeyParams) (*AccountsV1CredentialCredentialPublicKey, error) { path := "/v1/Credentials/PublicKeys/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } diff --git a/rest/accounts/v1/docs/DefaultApi.md b/rest/accounts/v1/docs/DefaultApi.md index b10eea993..c6d32d3d3 100644 --- a/rest/accounts/v1/docs/DefaultApi.md +++ b/rest/accounts/v1/docs/DefaultApi.md @@ -43,9 +43,9 @@ Optional parameters are passed through a pointer to a CreateCredentialAwsOpts st Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **accountSid** | **optional.String**| The SID of the Subaccount that this Credential should be associated with. Must be a valid Subaccount of the account issuing the request. | - **credentials** | **optional.String**| A string that contains the AWS access credentials in the format `<AWS_ACCESS_KEY_ID>:<AWS_SECRET_ACCESS_KEY>`. For example, `AKIAIOSFODNN7EXAMPLE:wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY` | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **AccountSid** | **optional.String**| The SID of the Subaccount that this Credential should be associated with. Must be a valid Subaccount of the account issuing the request. | + **Credentials** | **optional.String**| A string that contains the AWS access credentials in the format `<AWS_ACCESS_KEY_ID>:<AWS_SECRET_ACCESS_KEY>`. For example, `AKIAIOSFODNN7EXAMPLE:wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY` | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | ### Return type @@ -88,9 +88,9 @@ Optional parameters are passed through a pointer to a CreateCredentialPublicKeyO Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **accountSid** | **optional.String**| The SID of the Subaccount that this Credential should be associated with. Must be a valid Subaccount of the account issuing the request | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | - **publicKey** | **optional.String**| A URL encoded representation of the public key. For example, `-----BEGIN PUBLIC KEY-----MIIBIjANB.pa9xQIDAQAB-----END PUBLIC KEY-----` | + **AccountSid** | **optional.String**| The SID of the Subaccount that this Credential should be associated with. Must be a valid Subaccount of the account issuing the request | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **PublicKey** | **optional.String**| A URL encoded representation of the public key. For example, `-----BEGIN PUBLIC KEY-----MIIBIjANB.pa9xQIDAQAB-----END PUBLIC KEY-----` | ### Return type @@ -142,7 +142,7 @@ This endpoint does not need any parameter. ## DeleteCredentialAws -> DeleteCredentialAws(ctx, sid) +> DeleteCredentialAws(ctx, Sid) @@ -154,7 +154,7 @@ Delete a Credential from your account Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the AWS resource to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the AWS resource to delete. | ### Return type @@ -176,7 +176,7 @@ Name | Type | Description | Notes ## DeleteCredentialPublicKey -> DeleteCredentialPublicKey(ctx, sid) +> DeleteCredentialPublicKey(ctx, Sid) @@ -188,7 +188,7 @@ Delete a Credential from your account Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the PublicKey resource to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the PublicKey resource to delete. | ### Return type @@ -240,7 +240,7 @@ This endpoint does not need any parameter. ## FetchCredentialAws -> AccountsV1CredentialCredentialAws FetchCredentialAws(ctx, sid) +> AccountsV1CredentialCredentialAws FetchCredentialAws(ctx, Sid) @@ -252,7 +252,7 @@ Fetch the AWS credentials specified by the provided Credential Sid Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the AWS resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the AWS resource to fetch. | ### Return type @@ -274,7 +274,7 @@ Name | Type | Description | Notes ## FetchCredentialPublicKey -> AccountsV1CredentialCredentialPublicKey FetchCredentialPublicKey(ctx, sid) +> AccountsV1CredentialCredentialPublicKey FetchCredentialPublicKey(ctx, Sid) @@ -286,7 +286,7 @@ Fetch the public key specified by the provided Credential Sid Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the PublicKey resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the PublicKey resource to fetch. | ### Return type @@ -329,7 +329,7 @@ Optional parameters are passed through a pointer to a ListCredentialAwsOpts stru Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -372,7 +372,7 @@ Optional parameters are passed through a pointer to a ListCredentialPublicKeyOpt Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -424,7 +424,7 @@ This endpoint does not need any parameter. ## UpdateCredentialAws -> AccountsV1CredentialCredentialAws UpdateCredentialAws(ctx, sid, optional) +> AccountsV1CredentialCredentialAws UpdateCredentialAws(ctx, Sid, optional) @@ -436,7 +436,7 @@ Modify the properties of a given Account Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the AWS resource to update. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the AWS resource to update. | **optional** | ***UpdateCredentialAwsOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -447,7 +447,7 @@ Optional parameters are passed through a pointer to a UpdateCredentialAwsOpts st Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | ### Return type @@ -469,7 +469,7 @@ Name | Type | Description | Notes ## UpdateCredentialPublicKey -> AccountsV1CredentialCredentialPublicKey UpdateCredentialPublicKey(ctx, sid, optional) +> AccountsV1CredentialCredentialPublicKey UpdateCredentialPublicKey(ctx, Sid, optional) @@ -481,7 +481,7 @@ Modify the properties of a given Account Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the PublicKey resource to update. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the PublicKey resource to update. | **optional** | ***UpdateCredentialPublicKeyOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -492,7 +492,7 @@ Optional parameters are passed through a pointer to a UpdateCredentialPublicKeyO Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | ### Return type diff --git a/rest/accounts/v1/model_accounts_v1_auth_token_promotion.go b/rest/accounts/v1/model_accounts_v1_auth_token_promotion.go index d04452419..b33f38d88 100644 --- a/rest/accounts/v1/model_accounts_v1_auth_token_promotion.go +++ b/rest/accounts/v1/model_accounts_v1_auth_token_promotion.go @@ -14,9 +14,9 @@ import ( ) // AccountsV1AuthTokenPromotion struct for AccountsV1AuthTokenPromotion type AccountsV1AuthTokenPromotion struct { - AccountSid string `json:"account_sid,omitempty"` - AuthToken string `json:"auth_token,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AuthToken string `json:"AuthToken,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/accounts/v1/model_accounts_v1_credential_credential_aws.go b/rest/accounts/v1/model_accounts_v1_credential_credential_aws.go index b96e2c145..432f276a1 100644 --- a/rest/accounts/v1/model_accounts_v1_credential_credential_aws.go +++ b/rest/accounts/v1/model_accounts_v1_credential_credential_aws.go @@ -14,10 +14,10 @@ import ( ) // AccountsV1CredentialCredentialAws struct for AccountsV1CredentialCredentialAws type AccountsV1CredentialCredentialAws struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/accounts/v1/model_accounts_v1_credential_credential_aws_read_response.go b/rest/accounts/v1/model_accounts_v1_credential_credential_aws_read_response.go index ac41a02ed..77e44fcf7 100644 --- a/rest/accounts/v1/model_accounts_v1_credential_credential_aws_read_response.go +++ b/rest/accounts/v1/model_accounts_v1_credential_credential_aws_read_response.go @@ -11,6 +11,6 @@ package openapi // AccountsV1CredentialCredentialAwsReadResponse struct for AccountsV1CredentialCredentialAwsReadResponse type AccountsV1CredentialCredentialAwsReadResponse struct { - Credentials []AccountsV1CredentialCredentialAws `json:"credentials,omitempty"` - Meta AccountsV1CredentialCredentialAwsReadResponseMeta `json:"meta,omitempty"` + Credentials []AccountsV1CredentialCredentialAws `json:"Credentials,omitempty"` + Meta AccountsV1CredentialCredentialAwsReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/accounts/v1/model_accounts_v1_credential_credential_aws_read_response_meta.go b/rest/accounts/v1/model_accounts_v1_credential_credential_aws_read_response_meta.go index 8b779051d..f98116ac2 100644 --- a/rest/accounts/v1/model_accounts_v1_credential_credential_aws_read_response_meta.go +++ b/rest/accounts/v1/model_accounts_v1_credential_credential_aws_read_response_meta.go @@ -11,11 +11,11 @@ package openapi // AccountsV1CredentialCredentialAwsReadResponseMeta struct for AccountsV1CredentialCredentialAwsReadResponseMeta type AccountsV1CredentialCredentialAwsReadResponseMeta struct { - FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` - NextPageUrl string `json:"next_page_url,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUrl string `json:"previous_page_url,omitempty"` - Url string `json:"url,omitempty"` + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/accounts/v1/model_accounts_v1_credential_credential_public_key.go b/rest/accounts/v1/model_accounts_v1_credential_credential_public_key.go index 1a00e381f..6ec1290d5 100644 --- a/rest/accounts/v1/model_accounts_v1_credential_credential_public_key.go +++ b/rest/accounts/v1/model_accounts_v1_credential_credential_public_key.go @@ -14,10 +14,10 @@ import ( ) // AccountsV1CredentialCredentialPublicKey struct for AccountsV1CredentialCredentialPublicKey type AccountsV1CredentialCredentialPublicKey struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/accounts/v1/model_accounts_v1_credential_credential_public_key_read_response.go b/rest/accounts/v1/model_accounts_v1_credential_credential_public_key_read_response.go index cf42da46b..2c792f4c4 100644 --- a/rest/accounts/v1/model_accounts_v1_credential_credential_public_key_read_response.go +++ b/rest/accounts/v1/model_accounts_v1_credential_credential_public_key_read_response.go @@ -11,6 +11,6 @@ package openapi // AccountsV1CredentialCredentialPublicKeyReadResponse struct for AccountsV1CredentialCredentialPublicKeyReadResponse type AccountsV1CredentialCredentialPublicKeyReadResponse struct { - Credentials []AccountsV1CredentialCredentialPublicKey `json:"credentials,omitempty"` - Meta AccountsV1CredentialCredentialAwsReadResponseMeta `json:"meta,omitempty"` + Credentials []AccountsV1CredentialCredentialPublicKey `json:"Credentials,omitempty"` + Meta AccountsV1CredentialCredentialAwsReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/accounts/v1/model_accounts_v1_secondary_auth_token.go b/rest/accounts/v1/model_accounts_v1_secondary_auth_token.go index 4bdcf4a3d..80450a104 100644 --- a/rest/accounts/v1/model_accounts_v1_secondary_auth_token.go +++ b/rest/accounts/v1/model_accounts_v1_secondary_auth_token.go @@ -14,9 +14,9 @@ import ( ) // AccountsV1SecondaryAuthToken struct for AccountsV1SecondaryAuthToken type AccountsV1SecondaryAuthToken struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - SecondaryAuthToken string `json:"secondary_auth_token,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + SecondaryAuthToken string `json:"SecondaryAuthToken,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/api/v2010/api_default.go b/rest/api/v2010/api_default.go index 0be43ed56..61cbc99bc 100644 --- a/rest/api/v2010/api_default.go +++ b/rest/api/v2010/api_default.go @@ -15,6 +15,8 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" + "time" ) type DefaultApiService struct { @@ -43,11 +45,12 @@ Create a new Twilio Subaccount from the account making the request func (c *DefaultApiService) CreateAccount(params *CreateAccountParams) (*ApiV2010Account, error) { path := "/2010-04-01/Accounts.json" + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -80,7 +83,7 @@ type CreateAddressParams struct { /* CreateAddress Method for CreateAddress - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will be responsible for the new Address resource. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will be responsible for the new Address resource. * @param optional nil or *CreateAddressOpts - Optional Parameters: * @param "AutoCorrectAddress" (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. * @param "City" (string) - The city of the new address. @@ -93,39 +96,40 @@ CreateAddress Method for CreateAddress * @param "Street" (string) - The number and street address of the new address. @return ApiV2010AccountAddress */ -func (c *DefaultApiService) CreateAddress(accountSid string, params *CreateAddressParams) (*ApiV2010AccountAddress, error) { +func (c *DefaultApiService) CreateAddress(AccountSid string, params *CreateAddressParams) (*ApiV2010AccountAddress, error) { path := "/2010-04-01/Accounts/{AccountSid}/Addresses.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.AutoCorrectAddress != nil { - data.Set("AutoCorrectAddress", string(*params.AutoCorrectAddress)) + data.Set("AutoCorrectAddress", fmt.Sprint(*params.AutoCorrectAddress)) } if params != nil && params.City != nil { - data.Set("City", *params.City) + data.Set("City", *params.City) } if params != nil && params.CustomerName != nil { - data.Set("CustomerName", *params.CustomerName) + data.Set("CustomerName", *params.CustomerName) } if params != nil && params.EmergencyEnabled != nil { - data.Set("EmergencyEnabled", string(*params.EmergencyEnabled)) + data.Set("EmergencyEnabled", fmt.Sprint(*params.EmergencyEnabled)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.IsoCountry != nil { - data.Set("IsoCountry", *params.IsoCountry) + data.Set("IsoCountry", *params.IsoCountry) } if params != nil && params.PostalCode != nil { - data.Set("PostalCode", *params.PostalCode) + data.Set("PostalCode", *params.PostalCode) } if params != nil && params.Region != nil { - data.Set("Region", *params.Region) + data.Set("Region", *params.Region) } if params != nil && params.Street != nil { - data.Set("Street", *params.Street) + data.Set("Street", *params.Street) } @@ -165,7 +169,7 @@ type CreateApplicationParams struct { /* CreateApplication Method for CreateApplication Create a new application within your account - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. * @param optional nil or *CreateApplicationOpts - Optional Parameters: * @param "ApiVersion" (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. * @param "FriendlyName" (string) - A descriptive string that you create to describe the new application. It can be up to 64 characters long. @@ -184,57 +188,58 @@ Create a new application within your account * @param "VoiceUrl" (string) - The URL we should call when the phone number assigned to this application receives a call. @return ApiV2010AccountApplication */ -func (c *DefaultApiService) CreateApplication(accountSid string, params *CreateApplicationParams) (*ApiV2010AccountApplication, error) { +func (c *DefaultApiService) CreateApplication(AccountSid string, params *CreateApplicationParams) (*ApiV2010AccountApplication, error) { path := "/2010-04-01/Accounts/{AccountSid}/Applications.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.ApiVersion != nil { - data.Set("ApiVersion", *params.ApiVersion) + data.Set("ApiVersion", *params.ApiVersion) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.MessageStatusCallback != nil { - data.Set("MessageStatusCallback", *params.MessageStatusCallback) + data.Set("MessageStatusCallback", *params.MessageStatusCallback) } if params != nil && params.SmsFallbackMethod != nil { - data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) + data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) } if params != nil && params.SmsFallbackUrl != nil { - data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) + data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) } if params != nil && params.SmsMethod != nil { - data.Set("SmsMethod", *params.SmsMethod) + data.Set("SmsMethod", *params.SmsMethod) } if params != nil && params.SmsStatusCallback != nil { - data.Set("SmsStatusCallback", *params.SmsStatusCallback) + data.Set("SmsStatusCallback", *params.SmsStatusCallback) } if params != nil && params.SmsUrl != nil { - data.Set("SmsUrl", *params.SmsUrl) + data.Set("SmsUrl", *params.SmsUrl) } if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) + data.Set("StatusCallback", *params.StatusCallback) } if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) } if params != nil && params.VoiceCallerIdLookup != nil { - data.Set("VoiceCallerIdLookup", string(*params.VoiceCallerIdLookup)) + data.Set("VoiceCallerIdLookup", fmt.Sprint(*params.VoiceCallerIdLookup)) } if params != nil && params.VoiceFallbackMethod != nil { - data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) } if params != nil && params.VoiceFallbackUrl != nil { - data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) } if params != nil && params.VoiceMethod != nil { - data.Set("VoiceMethod", *params.VoiceMethod) + data.Set("VoiceMethod", *params.VoiceMethod) } if params != nil && params.VoiceUrl != nil { - data.Set("VoiceUrl", *params.VoiceUrl) + data.Set("VoiceUrl", *params.VoiceUrl) } @@ -292,7 +297,7 @@ type CreateCallParams struct { /* CreateCall Method for CreateCall Create a new outgoing call to phones, SIP-enabled endpoints or Twilio Client connections - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. * @param optional nil or *CreateCallOpts - Optional Parameters: * @param "ApplicationSid" (string) - The SID of the Application resource that will handle the call, if the call will be handled by an application. * @param "AsyncAmd" (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`. @@ -329,111 +334,112 @@ Create a new outgoing call to phones, SIP-enabled endpoints or Twilio Client con * @param "Url" (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). @return ApiV2010AccountCall */ -func (c *DefaultApiService) CreateCall(accountSid string, params *CreateCallParams) (*ApiV2010AccountCall, error) { +func (c *DefaultApiService) CreateCall(AccountSid string, params *CreateCallParams) (*ApiV2010AccountCall, error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.ApplicationSid != nil { - data.Set("ApplicationSid", *params.ApplicationSid) + data.Set("ApplicationSid", *params.ApplicationSid) } if params != nil && params.AsyncAmd != nil { - data.Set("AsyncAmd", *params.AsyncAmd) + data.Set("AsyncAmd", *params.AsyncAmd) } if params != nil && params.AsyncAmdStatusCallback != nil { - data.Set("AsyncAmdStatusCallback", *params.AsyncAmdStatusCallback) + data.Set("AsyncAmdStatusCallback", *params.AsyncAmdStatusCallback) } if params != nil && params.AsyncAmdStatusCallbackMethod != nil { - data.Set("AsyncAmdStatusCallbackMethod", *params.AsyncAmdStatusCallbackMethod) + data.Set("AsyncAmdStatusCallbackMethod", *params.AsyncAmdStatusCallbackMethod) } if params != nil && params.Byoc != nil { - data.Set("Byoc", *params.Byoc) + data.Set("Byoc", *params.Byoc) } if params != nil && params.CallReason != nil { - data.Set("CallReason", *params.CallReason) + data.Set("CallReason", *params.CallReason) } if params != nil && params.CallerId != nil { - data.Set("CallerId", *params.CallerId) + data.Set("CallerId", *params.CallerId) } if params != nil && params.FallbackMethod != nil { - data.Set("FallbackMethod", *params.FallbackMethod) + data.Set("FallbackMethod", *params.FallbackMethod) } if params != nil && params.FallbackUrl != nil { - data.Set("FallbackUrl", *params.FallbackUrl) + data.Set("FallbackUrl", *params.FallbackUrl) } if params != nil && params.From != nil { - data.Set("From", *params.From) + data.Set("From", *params.From) } if params != nil && params.MachineDetection != nil { - data.Set("MachineDetection", *params.MachineDetection) + data.Set("MachineDetection", *params.MachineDetection) } if params != nil && params.MachineDetectionSilenceTimeout != nil { - data.Set("MachineDetectionSilenceTimeout", string(*params.MachineDetectionSilenceTimeout)) + data.Set("MachineDetectionSilenceTimeout", fmt.Sprint(*params.MachineDetectionSilenceTimeout)) } if params != nil && params.MachineDetectionSpeechEndThreshold != nil { - data.Set("MachineDetectionSpeechEndThreshold", string(*params.MachineDetectionSpeechEndThreshold)) + data.Set("MachineDetectionSpeechEndThreshold", fmt.Sprint(*params.MachineDetectionSpeechEndThreshold)) } if params != nil && params.MachineDetectionSpeechThreshold != nil { - data.Set("MachineDetectionSpeechThreshold", string(*params.MachineDetectionSpeechThreshold)) + data.Set("MachineDetectionSpeechThreshold", fmt.Sprint(*params.MachineDetectionSpeechThreshold)) } if params != nil && params.MachineDetectionTimeout != nil { - data.Set("MachineDetectionTimeout", string(*params.MachineDetectionTimeout)) + data.Set("MachineDetectionTimeout", fmt.Sprint(*params.MachineDetectionTimeout)) } if params != nil && params.Method != nil { - data.Set("Method", *params.Method) + data.Set("Method", *params.Method) } if params != nil && params.Record != nil { - data.Set("Record", string(*params.Record)) + data.Set("Record", fmt.Sprint(*params.Record)) } if params != nil && params.RecordingChannels != nil { - data.Set("RecordingChannels", *params.RecordingChannels) + data.Set("RecordingChannels", *params.RecordingChannels) } if params != nil && params.RecordingStatusCallback != nil { - data.Set("RecordingStatusCallback", *params.RecordingStatusCallback) + data.Set("RecordingStatusCallback", *params.RecordingStatusCallback) } if params != nil && params.RecordingStatusCallbackEvent != nil { - data.Set("RecordingStatusCallbackEvent", *params.RecordingStatusCallbackEvent) + data.Set("RecordingStatusCallbackEvent", strings.Join(*params.RecordingStatusCallbackEvent, ",")) } if params != nil && params.RecordingStatusCallbackMethod != nil { - data.Set("RecordingStatusCallbackMethod", *params.RecordingStatusCallbackMethod) + data.Set("RecordingStatusCallbackMethod", *params.RecordingStatusCallbackMethod) } if params != nil && params.RecordingTrack != nil { - data.Set("RecordingTrack", *params.RecordingTrack) + data.Set("RecordingTrack", *params.RecordingTrack) } if params != nil && params.SendDigits != nil { - data.Set("SendDigits", *params.SendDigits) + data.Set("SendDigits", *params.SendDigits) } if params != nil && params.SipAuthPassword != nil { - data.Set("SipAuthPassword", *params.SipAuthPassword) + data.Set("SipAuthPassword", *params.SipAuthPassword) } if params != nil && params.SipAuthUsername != nil { - data.Set("SipAuthUsername", *params.SipAuthUsername) + data.Set("SipAuthUsername", *params.SipAuthUsername) } if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) + data.Set("StatusCallback", *params.StatusCallback) } if params != nil && params.StatusCallbackEvent != nil { - data.Set("StatusCallbackEvent", *params.StatusCallbackEvent) + data.Set("StatusCallbackEvent", strings.Join(*params.StatusCallbackEvent, ",")) } if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) } if params != nil && params.Timeout != nil { - data.Set("Timeout", string(*params.Timeout)) + data.Set("Timeout", fmt.Sprint(*params.Timeout)) } if params != nil && params.To != nil { - data.Set("To", *params.To) + data.Set("To", *params.To) } if params != nil && params.Trim != nil { - data.Set("Trim", *params.Trim) + data.Set("Trim", *params.Trim) } if params != nil && params.Twiml != nil { - data.Set("Twiml", *params.Twiml) + data.Set("Twiml", *params.Twiml) } if params != nil && params.Url != nil { - data.Set("Url", *params.Url) + data.Set("Url", *params.Url) } @@ -463,7 +469,7 @@ type CreateCallFeedbackSummaryParams struct { /* CreateCallFeedbackSummary Method for CreateCallFeedbackSummary Create a FeedbackSummary resource for a call - * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param AccountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. * @param optional nil or *CreateCallFeedbackSummaryOpts - Optional Parameters: * @param "EndDate" (time.Time) - Only include feedback given on or before this date. Format is `YYYY-MM-DD` and specified in UTC. * @param "IncludeSubaccounts" (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. @@ -472,27 +478,28 @@ Create a FeedbackSummary resource for a call * @param "StatusCallbackMethod" (string) - The HTTP method (`GET` or `POST`) we use to make the request to the `StatusCallback` URL. @return ApiV2010AccountCallCallFeedbackSummary */ -func (c *DefaultApiService) CreateCallFeedbackSummary(accountSid string, params *CreateCallFeedbackSummaryParams) (*ApiV2010AccountCallCallFeedbackSummary, error) { +func (c *DefaultApiService) CreateCallFeedbackSummary(AccountSid string, params *CreateCallFeedbackSummaryParams) (*ApiV2010AccountCallCallFeedbackSummary, error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) + data.Set("EndDate", fmt.Sprint(*params.EndDate)) } if params != nil && params.IncludeSubaccounts != nil { - data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) + data.Set("IncludeSubaccounts", fmt.Sprint(*params.IncludeSubaccounts)) } if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) + data.Set("StartDate", fmt.Sprint(*params.StartDate)) } if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) + data.Set("StatusCallback", *params.StatusCallback) } if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) } @@ -523,8 +530,8 @@ type CreateCallRecordingParams struct { /* CreateCallRecording Method for CreateCallRecording Create a recording for the call - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. - * @param callSid The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) to associate the resource with. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param CallSid The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) to associate the resource with. * @param optional nil or *CreateCallRecordingOpts - Optional Parameters: * @param "RecordingChannels" (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. * @param "RecordingStatusCallback" (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). @@ -534,31 +541,32 @@ Create a recording for the call * @param "Trim" (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. @return ApiV2010AccountCallCallRecording */ -func (c *DefaultApiService) CreateCallRecording(accountSid string, callSid string, params *CreateCallRecordingParams) (*ApiV2010AccountCallCallRecording, error) { +func (c *DefaultApiService) CreateCallRecording(AccountSid string, CallSid string, params *CreateCallRecordingParams) (*ApiV2010AccountCallCallRecording, error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", CallSid, -1) + data := url.Values{} headers := 0 if params != nil && params.RecordingChannels != nil { - data.Set("RecordingChannels", *params.RecordingChannels) + data.Set("RecordingChannels", *params.RecordingChannels) } if params != nil && params.RecordingStatusCallback != nil { - data.Set("RecordingStatusCallback", *params.RecordingStatusCallback) + data.Set("RecordingStatusCallback", *params.RecordingStatusCallback) } if params != nil && params.RecordingStatusCallbackEvent != nil { - data.Set("RecordingStatusCallbackEvent", *params.RecordingStatusCallbackEvent) + data.Set("RecordingStatusCallbackEvent", strings.Join(*params.RecordingStatusCallbackEvent, ",")) } if params != nil && params.RecordingStatusCallbackMethod != nil { - data.Set("RecordingStatusCallbackMethod", *params.RecordingStatusCallbackMethod) + data.Set("RecordingStatusCallbackMethod", *params.RecordingStatusCallbackMethod) } if params != nil && params.RecordingTrack != nil { - data.Set("RecordingTrack", *params.RecordingTrack) + data.Set("RecordingTrack", *params.RecordingTrack) } if params != nil && params.Trim != nil { - data.Set("Trim", *params.Trim) + data.Set("Trim", *params.Trim) } @@ -607,7 +615,7 @@ type CreateIncomingPhoneNumberParams struct { /* CreateIncomingPhoneNumber Method for CreateIncomingPhoneNumber Purchase a phone-number for the account. - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. * @param optional nil or *CreateIncomingPhoneNumberOpts - Optional Parameters: * @param "AddressSid" (string) - The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. * @param "ApiVersion" (string) - The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. @@ -635,84 +643,85 @@ Purchase a phone-number for the account. * @param "VoiceUrl" (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. @return ApiV2010AccountIncomingPhoneNumber */ -func (c *DefaultApiService) CreateIncomingPhoneNumber(accountSid string, params *CreateIncomingPhoneNumberParams) (*ApiV2010AccountIncomingPhoneNumber, error) { +func (c *DefaultApiService) CreateIncomingPhoneNumber(AccountSid string, params *CreateIncomingPhoneNumberParams) (*ApiV2010AccountIncomingPhoneNumber, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.AddressSid != nil { - data.Set("AddressSid", *params.AddressSid) + data.Set("AddressSid", *params.AddressSid) } if params != nil && params.ApiVersion != nil { - data.Set("ApiVersion", *params.ApiVersion) + data.Set("ApiVersion", *params.ApiVersion) } if params != nil && params.AreaCode != nil { - data.Set("AreaCode", *params.AreaCode) + data.Set("AreaCode", *params.AreaCode) } if params != nil && params.BundleSid != nil { - data.Set("BundleSid", *params.BundleSid) + data.Set("BundleSid", *params.BundleSid) } if params != nil && params.EmergencyAddressSid != nil { - data.Set("EmergencyAddressSid", *params.EmergencyAddressSid) + data.Set("EmergencyAddressSid", *params.EmergencyAddressSid) } if params != nil && params.EmergencyStatus != nil { - data.Set("EmergencyStatus", *params.EmergencyStatus) + data.Set("EmergencyStatus", *params.EmergencyStatus) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.IdentitySid != nil { - data.Set("IdentitySid", *params.IdentitySid) + data.Set("IdentitySid", *params.IdentitySid) } if params != nil && params.PhoneNumber != nil { - data.Set("PhoneNumber", *params.PhoneNumber) + data.Set("PhoneNumber", *params.PhoneNumber) } if params != nil && params.SmsApplicationSid != nil { - data.Set("SmsApplicationSid", *params.SmsApplicationSid) + data.Set("SmsApplicationSid", *params.SmsApplicationSid) } if params != nil && params.SmsFallbackMethod != nil { - data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) + data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) } if params != nil && params.SmsFallbackUrl != nil { - data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) + data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) } if params != nil && params.SmsMethod != nil { - data.Set("SmsMethod", *params.SmsMethod) + data.Set("SmsMethod", *params.SmsMethod) } if params != nil && params.SmsUrl != nil { - data.Set("SmsUrl", *params.SmsUrl) + data.Set("SmsUrl", *params.SmsUrl) } if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) + data.Set("StatusCallback", *params.StatusCallback) } if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) } if params != nil && params.TrunkSid != nil { - data.Set("TrunkSid", *params.TrunkSid) + data.Set("TrunkSid", *params.TrunkSid) } if params != nil && params.VoiceApplicationSid != nil { - data.Set("VoiceApplicationSid", *params.VoiceApplicationSid) + data.Set("VoiceApplicationSid", *params.VoiceApplicationSid) } if params != nil && params.VoiceCallerIdLookup != nil { - data.Set("VoiceCallerIdLookup", string(*params.VoiceCallerIdLookup)) + data.Set("VoiceCallerIdLookup", fmt.Sprint(*params.VoiceCallerIdLookup)) } if params != nil && params.VoiceFallbackMethod != nil { - data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) } if params != nil && params.VoiceFallbackUrl != nil { - data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) } if params != nil && params.VoiceMethod != nil { - data.Set("VoiceMethod", *params.VoiceMethod) + data.Set("VoiceMethod", *params.VoiceMethod) } if params != nil && params.VoiceReceiveMode != nil { - data.Set("VoiceReceiveMode", *params.VoiceReceiveMode) + data.Set("VoiceReceiveMode", *params.VoiceReceiveMode) } if params != nil && params.VoiceUrl != nil { - data.Set("VoiceUrl", *params.VoiceUrl) + data.Set("VoiceUrl", *params.VoiceUrl) } @@ -738,22 +747,23 @@ type CreateIncomingPhoneNumberAssignedAddOnParams struct { /* CreateIncomingPhoneNumberAssignedAddOn Method for CreateIncomingPhoneNumberAssignedAddOn Assign an Add-on installation to the Number specified. - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. - * @param resourceSid The SID of the Phone Number to assign the Add-on. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param ResourceSid The SID of the Phone Number to assign the Add-on. * @param optional nil or *CreateIncomingPhoneNumberAssignedAddOnOpts - Optional Parameters: * @param "InstalledAddOnSid" (string) - The SID that identifies the Add-on installation. @return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn */ -func (c *DefaultApiService) CreateIncomingPhoneNumberAssignedAddOn(accountSid string, resourceSid string, params *CreateIncomingPhoneNumberAssignedAddOnParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn, error) { +func (c *DefaultApiService) CreateIncomingPhoneNumberAssignedAddOn(AccountSid string, ResourceSid string, params *CreateIncomingPhoneNumberAssignedAddOnParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ResourceSid"+"}", resourceSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"ResourceSid"+"}", ResourceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.InstalledAddOnSid != nil { - data.Set("InstalledAddOnSid", *params.InstalledAddOnSid) + data.Set("InstalledAddOnSid", *params.InstalledAddOnSid) } @@ -800,7 +810,7 @@ type CreateIncomingPhoneNumberLocalParams struct { /* CreateIncomingPhoneNumberLocal Method for CreateIncomingPhoneNumberLocal - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. * @param optional nil or *CreateIncomingPhoneNumberLocalOpts - Optional Parameters: * @param "AddressSid" (string) - The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. * @param "ApiVersion" (string) - The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. @@ -827,81 +837,82 @@ CreateIncomingPhoneNumberLocal Method for CreateIncomingPhoneNumberLocal * @param "VoiceUrl" (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. @return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocal */ -func (c *DefaultApiService) CreateIncomingPhoneNumberLocal(accountSid string, params *CreateIncomingPhoneNumberLocalParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocal, error) { +func (c *DefaultApiService) CreateIncomingPhoneNumberLocal(AccountSid string, params *CreateIncomingPhoneNumberLocalParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocal, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.AddressSid != nil { - data.Set("AddressSid", *params.AddressSid) + data.Set("AddressSid", *params.AddressSid) } if params != nil && params.ApiVersion != nil { - data.Set("ApiVersion", *params.ApiVersion) + data.Set("ApiVersion", *params.ApiVersion) } if params != nil && params.BundleSid != nil { - data.Set("BundleSid", *params.BundleSid) + data.Set("BundleSid", *params.BundleSid) } if params != nil && params.EmergencyAddressSid != nil { - data.Set("EmergencyAddressSid", *params.EmergencyAddressSid) + data.Set("EmergencyAddressSid", *params.EmergencyAddressSid) } if params != nil && params.EmergencyStatus != nil { - data.Set("EmergencyStatus", *params.EmergencyStatus) + data.Set("EmergencyStatus", *params.EmergencyStatus) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.IdentitySid != nil { - data.Set("IdentitySid", *params.IdentitySid) + data.Set("IdentitySid", *params.IdentitySid) } if params != nil && params.PhoneNumber != nil { - data.Set("PhoneNumber", *params.PhoneNumber) + data.Set("PhoneNumber", *params.PhoneNumber) } if params != nil && params.SmsApplicationSid != nil { - data.Set("SmsApplicationSid", *params.SmsApplicationSid) + data.Set("SmsApplicationSid", *params.SmsApplicationSid) } if params != nil && params.SmsFallbackMethod != nil { - data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) + data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) } if params != nil && params.SmsFallbackUrl != nil { - data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) + data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) } if params != nil && params.SmsMethod != nil { - data.Set("SmsMethod", *params.SmsMethod) + data.Set("SmsMethod", *params.SmsMethod) } if params != nil && params.SmsUrl != nil { - data.Set("SmsUrl", *params.SmsUrl) + data.Set("SmsUrl", *params.SmsUrl) } if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) + data.Set("StatusCallback", *params.StatusCallback) } if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) } if params != nil && params.TrunkSid != nil { - data.Set("TrunkSid", *params.TrunkSid) + data.Set("TrunkSid", *params.TrunkSid) } if params != nil && params.VoiceApplicationSid != nil { - data.Set("VoiceApplicationSid", *params.VoiceApplicationSid) + data.Set("VoiceApplicationSid", *params.VoiceApplicationSid) } if params != nil && params.VoiceCallerIdLookup != nil { - data.Set("VoiceCallerIdLookup", string(*params.VoiceCallerIdLookup)) + data.Set("VoiceCallerIdLookup", fmt.Sprint(*params.VoiceCallerIdLookup)) } if params != nil && params.VoiceFallbackMethod != nil { - data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) } if params != nil && params.VoiceFallbackUrl != nil { - data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) } if params != nil && params.VoiceMethod != nil { - data.Set("VoiceMethod", *params.VoiceMethod) + data.Set("VoiceMethod", *params.VoiceMethod) } if params != nil && params.VoiceReceiveMode != nil { - data.Set("VoiceReceiveMode", *params.VoiceReceiveMode) + data.Set("VoiceReceiveMode", *params.VoiceReceiveMode) } if params != nil && params.VoiceUrl != nil { - data.Set("VoiceUrl", *params.VoiceUrl) + data.Set("VoiceUrl", *params.VoiceUrl) } @@ -948,7 +959,7 @@ type CreateIncomingPhoneNumberMobileParams struct { /* CreateIncomingPhoneNumberMobile Method for CreateIncomingPhoneNumberMobile - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. * @param optional nil or *CreateIncomingPhoneNumberMobileOpts - Optional Parameters: * @param "AddressSid" (string) - The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. * @param "ApiVersion" (string) - The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. @@ -975,81 +986,82 @@ CreateIncomingPhoneNumberMobile Method for CreateIncomingPhoneNumberMobile * @param "VoiceUrl" (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. @return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobile */ -func (c *DefaultApiService) CreateIncomingPhoneNumberMobile(accountSid string, params *CreateIncomingPhoneNumberMobileParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobile, error) { +func (c *DefaultApiService) CreateIncomingPhoneNumberMobile(AccountSid string, params *CreateIncomingPhoneNumberMobileParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobile, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.AddressSid != nil { - data.Set("AddressSid", *params.AddressSid) + data.Set("AddressSid", *params.AddressSid) } if params != nil && params.ApiVersion != nil { - data.Set("ApiVersion", *params.ApiVersion) + data.Set("ApiVersion", *params.ApiVersion) } if params != nil && params.BundleSid != nil { - data.Set("BundleSid", *params.BundleSid) + data.Set("BundleSid", *params.BundleSid) } if params != nil && params.EmergencyAddressSid != nil { - data.Set("EmergencyAddressSid", *params.EmergencyAddressSid) + data.Set("EmergencyAddressSid", *params.EmergencyAddressSid) } if params != nil && params.EmergencyStatus != nil { - data.Set("EmergencyStatus", *params.EmergencyStatus) + data.Set("EmergencyStatus", *params.EmergencyStatus) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.IdentitySid != nil { - data.Set("IdentitySid", *params.IdentitySid) + data.Set("IdentitySid", *params.IdentitySid) } if params != nil && params.PhoneNumber != nil { - data.Set("PhoneNumber", *params.PhoneNumber) + data.Set("PhoneNumber", *params.PhoneNumber) } if params != nil && params.SmsApplicationSid != nil { - data.Set("SmsApplicationSid", *params.SmsApplicationSid) + data.Set("SmsApplicationSid", *params.SmsApplicationSid) } if params != nil && params.SmsFallbackMethod != nil { - data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) + data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) } if params != nil && params.SmsFallbackUrl != nil { - data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) + data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) } if params != nil && params.SmsMethod != nil { - data.Set("SmsMethod", *params.SmsMethod) + data.Set("SmsMethod", *params.SmsMethod) } if params != nil && params.SmsUrl != nil { - data.Set("SmsUrl", *params.SmsUrl) + data.Set("SmsUrl", *params.SmsUrl) } if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) + data.Set("StatusCallback", *params.StatusCallback) } if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) } if params != nil && params.TrunkSid != nil { - data.Set("TrunkSid", *params.TrunkSid) + data.Set("TrunkSid", *params.TrunkSid) } if params != nil && params.VoiceApplicationSid != nil { - data.Set("VoiceApplicationSid", *params.VoiceApplicationSid) + data.Set("VoiceApplicationSid", *params.VoiceApplicationSid) } if params != nil && params.VoiceCallerIdLookup != nil { - data.Set("VoiceCallerIdLookup", string(*params.VoiceCallerIdLookup)) + data.Set("VoiceCallerIdLookup", fmt.Sprint(*params.VoiceCallerIdLookup)) } if params != nil && params.VoiceFallbackMethod != nil { - data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) } if params != nil && params.VoiceFallbackUrl != nil { - data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) } if params != nil && params.VoiceMethod != nil { - data.Set("VoiceMethod", *params.VoiceMethod) + data.Set("VoiceMethod", *params.VoiceMethod) } if params != nil && params.VoiceReceiveMode != nil { - data.Set("VoiceReceiveMode", *params.VoiceReceiveMode) + data.Set("VoiceReceiveMode", *params.VoiceReceiveMode) } if params != nil && params.VoiceUrl != nil { - data.Set("VoiceUrl", *params.VoiceUrl) + data.Set("VoiceUrl", *params.VoiceUrl) } @@ -1096,7 +1108,7 @@ type CreateIncomingPhoneNumberTollFreeParams struct { /* CreateIncomingPhoneNumberTollFree Method for CreateIncomingPhoneNumberTollFree - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. * @param optional nil or *CreateIncomingPhoneNumberTollFreeOpts - Optional Parameters: * @param "AddressSid" (string) - The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. * @param "ApiVersion" (string) - The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. @@ -1123,81 +1135,82 @@ CreateIncomingPhoneNumberTollFree Method for CreateIncomingPhoneNumberTollFree * @param "VoiceUrl" (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. @return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFree */ -func (c *DefaultApiService) CreateIncomingPhoneNumberTollFree(accountSid string, params *CreateIncomingPhoneNumberTollFreeParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFree, error) { +func (c *DefaultApiService) CreateIncomingPhoneNumberTollFree(AccountSid string, params *CreateIncomingPhoneNumberTollFreeParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFree, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.AddressSid != nil { - data.Set("AddressSid", *params.AddressSid) + data.Set("AddressSid", *params.AddressSid) } if params != nil && params.ApiVersion != nil { - data.Set("ApiVersion", *params.ApiVersion) + data.Set("ApiVersion", *params.ApiVersion) } if params != nil && params.BundleSid != nil { - data.Set("BundleSid", *params.BundleSid) + data.Set("BundleSid", *params.BundleSid) } if params != nil && params.EmergencyAddressSid != nil { - data.Set("EmergencyAddressSid", *params.EmergencyAddressSid) + data.Set("EmergencyAddressSid", *params.EmergencyAddressSid) } if params != nil && params.EmergencyStatus != nil { - data.Set("EmergencyStatus", *params.EmergencyStatus) + data.Set("EmergencyStatus", *params.EmergencyStatus) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.IdentitySid != nil { - data.Set("IdentitySid", *params.IdentitySid) + data.Set("IdentitySid", *params.IdentitySid) } if params != nil && params.PhoneNumber != nil { - data.Set("PhoneNumber", *params.PhoneNumber) + data.Set("PhoneNumber", *params.PhoneNumber) } if params != nil && params.SmsApplicationSid != nil { - data.Set("SmsApplicationSid", *params.SmsApplicationSid) + data.Set("SmsApplicationSid", *params.SmsApplicationSid) } if params != nil && params.SmsFallbackMethod != nil { - data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) + data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) } if params != nil && params.SmsFallbackUrl != nil { - data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) + data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) } if params != nil && params.SmsMethod != nil { - data.Set("SmsMethod", *params.SmsMethod) + data.Set("SmsMethod", *params.SmsMethod) } if params != nil && params.SmsUrl != nil { - data.Set("SmsUrl", *params.SmsUrl) + data.Set("SmsUrl", *params.SmsUrl) } if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) + data.Set("StatusCallback", *params.StatusCallback) } if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) } if params != nil && params.TrunkSid != nil { - data.Set("TrunkSid", *params.TrunkSid) + data.Set("TrunkSid", *params.TrunkSid) } if params != nil && params.VoiceApplicationSid != nil { - data.Set("VoiceApplicationSid", *params.VoiceApplicationSid) + data.Set("VoiceApplicationSid", *params.VoiceApplicationSid) } if params != nil && params.VoiceCallerIdLookup != nil { - data.Set("VoiceCallerIdLookup", string(*params.VoiceCallerIdLookup)) + data.Set("VoiceCallerIdLookup", fmt.Sprint(*params.VoiceCallerIdLookup)) } if params != nil && params.VoiceFallbackMethod != nil { - data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) } if params != nil && params.VoiceFallbackUrl != nil { - data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) } if params != nil && params.VoiceMethod != nil { - data.Set("VoiceMethod", *params.VoiceMethod) + data.Set("VoiceMethod", *params.VoiceMethod) } if params != nil && params.VoiceReceiveMode != nil { - data.Set("VoiceReceiveMode", *params.VoiceReceiveMode) + data.Set("VoiceReceiveMode", *params.VoiceReceiveMode) } if params != nil && params.VoiceUrl != nil { - data.Set("VoiceUrl", *params.VoiceUrl) + data.Set("VoiceUrl", *params.VoiceUrl) } @@ -1238,7 +1251,7 @@ type CreateMessageParams struct { /* CreateMessage Method for CreateMessage Send a message from the account used to make the request - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. * @param optional nil or *CreateMessageOpts - Optional Parameters: * @param "AddressRetention" (string) - Determines if the address can be stored or obfuscated based on privacy settings * @param "ApplicationSid" (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. @@ -1258,60 +1271,61 @@ Send a message from the account used to make the request * @param "ValidityPeriod" (int32) - 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. @return ApiV2010AccountMessage */ -func (c *DefaultApiService) CreateMessage(accountSid string, params *CreateMessageParams) (*ApiV2010AccountMessage, error) { +func (c *DefaultApiService) CreateMessage(AccountSid string, params *CreateMessageParams) (*ApiV2010AccountMessage, error) { path := "/2010-04-01/Accounts/{AccountSid}/Messages.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.AddressRetention != nil { - data.Set("AddressRetention", *params.AddressRetention) + data.Set("AddressRetention", *params.AddressRetention) } if params != nil && params.ApplicationSid != nil { - data.Set("ApplicationSid", *params.ApplicationSid) + data.Set("ApplicationSid", *params.ApplicationSid) } if params != nil && params.Attempt != nil { - data.Set("Attempt", string(*params.Attempt)) + data.Set("Attempt", fmt.Sprint(*params.Attempt)) } if params != nil && params.Body != nil { - data.Set("Body", *params.Body) + data.Set("Body", *params.Body) } if params != nil && params.ContentRetention != nil { - data.Set("ContentRetention", *params.ContentRetention) + data.Set("ContentRetention", *params.ContentRetention) } if params != nil && params.ForceDelivery != nil { - data.Set("ForceDelivery", string(*params.ForceDelivery)) + data.Set("ForceDelivery", fmt.Sprint(*params.ForceDelivery)) } if params != nil && params.From != nil { - data.Set("From", *params.From) + data.Set("From", *params.From) } if params != nil && params.MaxPrice != nil { - data.Set("MaxPrice", string(*params.MaxPrice)) + data.Set("MaxPrice", fmt.Sprint(*params.MaxPrice)) } if params != nil && params.MediaUrl != nil { - data.Set("MediaUrl", *params.MediaUrl) + data.Set("MediaUrl", strings.Join(*params.MediaUrl, ",")) } if params != nil && params.MessagingServiceSid != nil { - data.Set("MessagingServiceSid", *params.MessagingServiceSid) + data.Set("MessagingServiceSid", *params.MessagingServiceSid) } if params != nil && params.PersistentAction != nil { - data.Set("PersistentAction", *params.PersistentAction) + data.Set("PersistentAction", strings.Join(*params.PersistentAction, ",")) } if params != nil && params.ProvideFeedback != nil { - data.Set("ProvideFeedback", string(*params.ProvideFeedback)) + data.Set("ProvideFeedback", fmt.Sprint(*params.ProvideFeedback)) } if params != nil && params.SmartEncoded != nil { - data.Set("SmartEncoded", string(*params.SmartEncoded)) + data.Set("SmartEncoded", fmt.Sprint(*params.SmartEncoded)) } if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) + data.Set("StatusCallback", *params.StatusCallback) } if params != nil && params.To != nil { - data.Set("To", *params.To) + data.Set("To", *params.To) } if params != nil && params.ValidityPeriod != nil { - data.Set("ValidityPeriod", string(*params.ValidityPeriod)) + data.Set("ValidityPeriod", fmt.Sprint(*params.ValidityPeriod)) } @@ -1336,22 +1350,23 @@ type CreateMessageFeedbackParams struct { /* CreateMessageFeedback Method for CreateMessageFeedback - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. - * @param messageSid The SID of the Message resource for which the feedback was provided. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param MessageSid The SID of the Message resource for which the feedback was provided. * @param optional nil or *CreateMessageFeedbackOpts - Optional Parameters: * @param "Outcome" (string) - Whether the feedback has arrived. Can be: `unconfirmed` or `confirmed`. If `provide_feedback`=`true` in [the initial HTTP POST](https://www.twilio.com/docs/sms/api/message-resource#create-a-message-resource), the initial value of this property is `unconfirmed`. After the message arrives, update the value to `confirmed`. @return ApiV2010AccountMessageMessageFeedback */ -func (c *DefaultApiService) CreateMessageFeedback(accountSid string, messageSid string, params *CreateMessageFeedbackParams) (*ApiV2010AccountMessageMessageFeedback, error) { +func (c *DefaultApiService) CreateMessageFeedback(AccountSid string, MessageSid string, params *CreateMessageFeedbackParams) (*ApiV2010AccountMessageMessageFeedback, error) { path := "/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Feedback.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"MessageSid"+"}", messageSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"MessageSid"+"}", MessageSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Outcome != nil { - data.Set("Outcome", *params.Outcome) + data.Set("Outcome", *params.Outcome) } @@ -1376,20 +1391,21 @@ type CreateNewKeyParams struct { /* CreateNewKey Method for CreateNewKey - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will be responsible for the new Key resource. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will be responsible for the new Key resource. * @param optional nil or *CreateNewKeyOpts - Optional Parameters: * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. @return ApiV2010AccountNewKey */ -func (c *DefaultApiService) CreateNewKey(accountSid string, params *CreateNewKeyParams) (*ApiV2010AccountNewKey, error) { +func (c *DefaultApiService) CreateNewKey(AccountSid string, params *CreateNewKeyParams) (*ApiV2010AccountNewKey, error) { path := "/2010-04-01/Accounts/{AccountSid}/Keys.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -1415,20 +1431,21 @@ type CreateNewSigningKeyParams struct { /* CreateNewSigningKey Method for CreateNewSigningKey Create a new Signing Key for the account making the request. - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will be responsible for the new Key resource. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will be responsible for the new Key resource. * @param optional nil or *CreateNewSigningKeyOpts - Optional Parameters: * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. @return ApiV2010AccountNewSigningKey */ -func (c *DefaultApiService) CreateNewSigningKey(accountSid string, params *CreateNewSigningKeyParams) (*ApiV2010AccountNewSigningKey, error) { +func (c *DefaultApiService) CreateNewSigningKey(AccountSid string, params *CreateNewSigningKeyParams) (*ApiV2010AccountNewSigningKey, error) { path := "/2010-04-01/Accounts/{AccountSid}/SigningKeys.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -1490,8 +1507,8 @@ type CreateParticipantParams struct { /* CreateParticipant Method for CreateParticipant - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. - * @param conferenceSid The SID of the participant's conference. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param ConferenceSid The SID of the participant's conference. * @param optional nil or *CreateParticipantOpts - Optional Parameters: * @param "Beep" (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`. * @param "Byoc" (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) @@ -1533,127 +1550,128 @@ CreateParticipant Method for CreateParticipant * @param "WaitUrl" (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). @return ApiV2010AccountConferenceParticipant */ -func (c *DefaultApiService) CreateParticipant(accountSid string, conferenceSid string, params *CreateParticipantParams) (*ApiV2010AccountConferenceParticipant, error) { +func (c *DefaultApiService) CreateParticipant(AccountSid string, ConferenceSid string, params *CreateParticipantParams) (*ApiV2010AccountConferenceParticipant, error) { path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ConferenceSid"+"}", conferenceSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"ConferenceSid"+"}", ConferenceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Beep != nil { - data.Set("Beep", *params.Beep) + data.Set("Beep", *params.Beep) } if params != nil && params.Byoc != nil { - data.Set("Byoc", *params.Byoc) + data.Set("Byoc", *params.Byoc) } if params != nil && params.CallReason != nil { - data.Set("CallReason", *params.CallReason) + data.Set("CallReason", *params.CallReason) } if params != nil && params.CallSidToCoach != nil { - data.Set("CallSidToCoach", *params.CallSidToCoach) + data.Set("CallSidToCoach", *params.CallSidToCoach) } if params != nil && params.CallerId != nil { - data.Set("CallerId", *params.CallerId) + data.Set("CallerId", *params.CallerId) } if params != nil && params.Coaching != nil { - data.Set("Coaching", string(*params.Coaching)) + data.Set("Coaching", fmt.Sprint(*params.Coaching)) } if params != nil && params.ConferenceRecord != nil { - data.Set("ConferenceRecord", *params.ConferenceRecord) + data.Set("ConferenceRecord", *params.ConferenceRecord) } if params != nil && params.ConferenceRecordingStatusCallback != nil { - data.Set("ConferenceRecordingStatusCallback", *params.ConferenceRecordingStatusCallback) + data.Set("ConferenceRecordingStatusCallback", *params.ConferenceRecordingStatusCallback) } if params != nil && params.ConferenceRecordingStatusCallbackEvent != nil { - data.Set("ConferenceRecordingStatusCallbackEvent", *params.ConferenceRecordingStatusCallbackEvent) + data.Set("ConferenceRecordingStatusCallbackEvent", strings.Join(*params.ConferenceRecordingStatusCallbackEvent, ",")) } if params != nil && params.ConferenceRecordingStatusCallbackMethod != nil { - data.Set("ConferenceRecordingStatusCallbackMethod", *params.ConferenceRecordingStatusCallbackMethod) + data.Set("ConferenceRecordingStatusCallbackMethod", *params.ConferenceRecordingStatusCallbackMethod) } if params != nil && params.ConferenceStatusCallback != nil { - data.Set("ConferenceStatusCallback", *params.ConferenceStatusCallback) + data.Set("ConferenceStatusCallback", *params.ConferenceStatusCallback) } if params != nil && params.ConferenceStatusCallbackEvent != nil { - data.Set("ConferenceStatusCallbackEvent", *params.ConferenceStatusCallbackEvent) + data.Set("ConferenceStatusCallbackEvent", strings.Join(*params.ConferenceStatusCallbackEvent, ",")) } if params != nil && params.ConferenceStatusCallbackMethod != nil { - data.Set("ConferenceStatusCallbackMethod", *params.ConferenceStatusCallbackMethod) + data.Set("ConferenceStatusCallbackMethod", *params.ConferenceStatusCallbackMethod) } if params != nil && params.ConferenceTrim != nil { - data.Set("ConferenceTrim", *params.ConferenceTrim) + data.Set("ConferenceTrim", *params.ConferenceTrim) } if params != nil && params.EarlyMedia != nil { - data.Set("EarlyMedia", string(*params.EarlyMedia)) + data.Set("EarlyMedia", fmt.Sprint(*params.EarlyMedia)) } if params != nil && params.EndConferenceOnExit != nil { - data.Set("EndConferenceOnExit", string(*params.EndConferenceOnExit)) + data.Set("EndConferenceOnExit", fmt.Sprint(*params.EndConferenceOnExit)) } if params != nil && params.From != nil { - data.Set("From", *params.From) + data.Set("From", *params.From) } if params != nil && params.JitterBufferSize != nil { - data.Set("JitterBufferSize", *params.JitterBufferSize) + data.Set("JitterBufferSize", *params.JitterBufferSize) } if params != nil && params.Label != nil { - data.Set("Label", *params.Label) + data.Set("Label", *params.Label) } if params != nil && params.MaxParticipants != nil { - data.Set("MaxParticipants", string(*params.MaxParticipants)) + data.Set("MaxParticipants", fmt.Sprint(*params.MaxParticipants)) } if params != nil && params.Muted != nil { - data.Set("Muted", string(*params.Muted)) + data.Set("Muted", fmt.Sprint(*params.Muted)) } if params != nil && params.Record != nil { - data.Set("Record", string(*params.Record)) + data.Set("Record", fmt.Sprint(*params.Record)) } if params != nil && params.RecordingChannels != nil { - data.Set("RecordingChannels", *params.RecordingChannels) + data.Set("RecordingChannels", *params.RecordingChannels) } if params != nil && params.RecordingStatusCallback != nil { - data.Set("RecordingStatusCallback", *params.RecordingStatusCallback) + data.Set("RecordingStatusCallback", *params.RecordingStatusCallback) } if params != nil && params.RecordingStatusCallbackEvent != nil { - data.Set("RecordingStatusCallbackEvent", *params.RecordingStatusCallbackEvent) + data.Set("RecordingStatusCallbackEvent", strings.Join(*params.RecordingStatusCallbackEvent, ",")) } if params != nil && params.RecordingStatusCallbackMethod != nil { - data.Set("RecordingStatusCallbackMethod", *params.RecordingStatusCallbackMethod) + data.Set("RecordingStatusCallbackMethod", *params.RecordingStatusCallbackMethod) } if params != nil && params.RecordingTrack != nil { - data.Set("RecordingTrack", *params.RecordingTrack) + data.Set("RecordingTrack", *params.RecordingTrack) } if params != nil && params.Region != nil { - data.Set("Region", *params.Region) + data.Set("Region", *params.Region) } if params != nil && params.SipAuthPassword != nil { - data.Set("SipAuthPassword", *params.SipAuthPassword) + data.Set("SipAuthPassword", *params.SipAuthPassword) } if params != nil && params.SipAuthUsername != nil { - data.Set("SipAuthUsername", *params.SipAuthUsername) + data.Set("SipAuthUsername", *params.SipAuthUsername) } if params != nil && params.StartConferenceOnEnter != nil { - data.Set("StartConferenceOnEnter", string(*params.StartConferenceOnEnter)) + data.Set("StartConferenceOnEnter", fmt.Sprint(*params.StartConferenceOnEnter)) } if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) + data.Set("StatusCallback", *params.StatusCallback) } if params != nil && params.StatusCallbackEvent != nil { - data.Set("StatusCallbackEvent", *params.StatusCallbackEvent) + data.Set("StatusCallbackEvent", strings.Join(*params.StatusCallbackEvent, ",")) } if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) } if params != nil && params.Timeout != nil { - data.Set("Timeout", string(*params.Timeout)) + data.Set("Timeout", fmt.Sprint(*params.Timeout)) } if params != nil && params.To != nil { - data.Set("To", *params.To) + data.Set("To", *params.To) } if params != nil && params.WaitMethod != nil { - data.Set("WaitMethod", *params.WaitMethod) + data.Set("WaitMethod", *params.WaitMethod) } if params != nil && params.WaitUrl != nil { - data.Set("WaitUrl", *params.WaitUrl) + data.Set("WaitUrl", *params.WaitUrl) } @@ -1694,8 +1712,8 @@ type CreatePaymentsParams struct { /* CreatePayments Method for CreatePayments create an instance of payments. This will start a new payments session - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. - * @param callSid The SID of the call that will create the resource. Call leg associated with this sid is expected to provide payment information thru DTMF. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param CallSid The SID of the call that will create the resource. Call leg associated with this sid is expected to provide payment information thru DTMF. * @param optional nil or *CreatePaymentsOpts - Optional Parameters: * @param "BankAccountType" (string) - Type of bank account if payment source is ACH. One of `consumer-checking`, `consumer-savings`, or `commercial-checking`. The default value is `consumer-checking`. * @param "ChargeAmount" (float32) - 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. @@ -1715,34 +1733,35 @@ create an instance of payments. This will start a new payments session * @param "ValidCardTypes" (string) - Credit card types separated by space that Pay should accept. The default value is `visa mastercard amex` @return ApiV2010AccountCallPayments */ -func (c *DefaultApiService) CreatePayments(accountSid string, callSid string, params *CreatePaymentsParams) (*ApiV2010AccountCallPayments, error) { +func (c *DefaultApiService) CreatePayments(AccountSid string, CallSid string, params *CreatePaymentsParams) (*ApiV2010AccountCallPayments, error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", CallSid, -1) + data := url.Values{} headers := 0 if params != nil && params.BankAccountType != nil { - data.Set("BankAccountType", *params.BankAccountType) + data.Set("BankAccountType", *params.BankAccountType) } if params != nil && params.ChargeAmount != nil { - data.Set("ChargeAmount", string(*params.ChargeAmount)) + data.Set("ChargeAmount", fmt.Sprint(*params.ChargeAmount)) } if params != nil && params.Currency != nil { - data.Set("Currency", *params.Currency) + data.Set("Currency", *params.Currency) } if params != nil && params.Description != nil { - data.Set("Description", *params.Description) + data.Set("Description", *params.Description) } if params != nil && params.IdempotencyKey != nil { - data.Set("IdempotencyKey", *params.IdempotencyKey) + data.Set("IdempotencyKey", *params.IdempotencyKey) } if params != nil && params.Input != nil { - data.Set("Input", *params.Input) + data.Set("Input", *params.Input) } if params != nil && params.MinPostalCodeLength != nil { - data.Set("MinPostalCodeLength", string(*params.MinPostalCodeLength)) + data.Set("MinPostalCodeLength", fmt.Sprint(*params.MinPostalCodeLength)) } if params != nil && params.Parameter != nil { v, err := json.Marshal(params.Parameter) @@ -1751,31 +1770,31 @@ func (c *DefaultApiService) CreatePayments(accountSid string, callSid string, pa return nil, err } - data.Set("Parameter", string(v)) + data.Set("Parameter", fmt.Sprint(v)) } if params != nil && params.PaymentConnector != nil { - data.Set("PaymentConnector", *params.PaymentConnector) + data.Set("PaymentConnector", *params.PaymentConnector) } if params != nil && params.PaymentMethod != nil { - data.Set("PaymentMethod", *params.PaymentMethod) + data.Set("PaymentMethod", *params.PaymentMethod) } if params != nil && params.PostalCode != nil { - data.Set("PostalCode", string(*params.PostalCode)) + data.Set("PostalCode", fmt.Sprint(*params.PostalCode)) } if params != nil && params.SecurityCode != nil { - data.Set("SecurityCode", string(*params.SecurityCode)) + data.Set("SecurityCode", fmt.Sprint(*params.SecurityCode)) } if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) + data.Set("StatusCallback", *params.StatusCallback) } if params != nil && params.Timeout != nil { - data.Set("Timeout", string(*params.Timeout)) + data.Set("Timeout", fmt.Sprint(*params.Timeout)) } if params != nil && params.TokenType != nil { - data.Set("TokenType", *params.TokenType) + data.Set("TokenType", *params.TokenType) } if params != nil && params.ValidCardTypes != nil { - data.Set("ValidCardTypes", *params.ValidCardTypes) + data.Set("ValidCardTypes", *params.ValidCardTypes) } @@ -1802,24 +1821,25 @@ type CreateQueueParams struct { /* CreateQueue Method for CreateQueue Create a queue - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. * @param optional nil or *CreateQueueOpts - Optional Parameters: * @param "FriendlyName" (string) - A descriptive string that you created to describe this resource. It can be up to 64 characters long. * @param "MaxSize" (int32) - The maximum number of calls allowed to be in the queue. The default is 100. The maximum is 5000. @return ApiV2010AccountQueue */ -func (c *DefaultApiService) CreateQueue(accountSid string, params *CreateQueueParams) (*ApiV2010AccountQueue, error) { +func (c *DefaultApiService) CreateQueue(AccountSid string, params *CreateQueueParams) (*ApiV2010AccountQueue, error) { path := "/2010-04-01/Accounts/{AccountSid}/Queues.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.MaxSize != nil { - data.Set("MaxSize", string(*params.MaxSize)) + data.Set("MaxSize", fmt.Sprint(*params.MaxSize)) } @@ -1845,22 +1865,23 @@ type CreateSipAuthCallsCredentialListMappingParams struct { /* CreateSipAuthCallsCredentialListMapping Method for CreateSipAuthCallsCredentialListMapping Create a new credential list mapping resource - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. - * @param domainSid The SID of the SIP domain that will contain the new resource. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param DomainSid The SID of the SIP domain that will contain the new resource. * @param optional nil or *CreateSipAuthCallsCredentialListMappingOpts - Optional Parameters: * @param "CredentialListSid" (string) - The SID of the CredentialList resource to map to the SIP domain. @return ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping */ -func (c *DefaultApiService) CreateSipAuthCallsCredentialListMapping(accountSid string, domainSid string, params *CreateSipAuthCallsCredentialListMappingParams) (*ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping, error) { +func (c *DefaultApiService) CreateSipAuthCallsCredentialListMapping(AccountSid string, DomainSid string, params *CreateSipAuthCallsCredentialListMappingParams) (*ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) + data := url.Values{} headers := 0 if params != nil && params.CredentialListSid != nil { - data.Set("CredentialListSid", *params.CredentialListSid) + data.Set("CredentialListSid", *params.CredentialListSid) } @@ -1886,22 +1907,23 @@ type CreateSipAuthCallsIpAccessControlListMappingParams struct { /* CreateSipAuthCallsIpAccessControlListMapping Method for CreateSipAuthCallsIpAccessControlListMapping Create a new IP Access Control List mapping - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. - * @param domainSid The SID of the SIP domain that will contain the new resource. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param DomainSid The SID of the SIP domain that will contain the new resource. * @param optional nil or *CreateSipAuthCallsIpAccessControlListMappingOpts - Optional Parameters: * @param "IpAccessControlListSid" (string) - The SID of the IpAccessControlList resource to map to the SIP domain. @return ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping */ -func (c *DefaultApiService) CreateSipAuthCallsIpAccessControlListMapping(accountSid string, domainSid string, params *CreateSipAuthCallsIpAccessControlListMappingParams) (*ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping, error) { +func (c *DefaultApiService) CreateSipAuthCallsIpAccessControlListMapping(AccountSid string, DomainSid string, params *CreateSipAuthCallsIpAccessControlListMappingParams) (*ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) + data := url.Values{} headers := 0 if params != nil && params.IpAccessControlListSid != nil { - data.Set("IpAccessControlListSid", *params.IpAccessControlListSid) + data.Set("IpAccessControlListSid", *params.IpAccessControlListSid) } @@ -1927,22 +1949,23 @@ type CreateSipAuthRegistrationsCredentialListMappingParams struct { /* CreateSipAuthRegistrationsCredentialListMapping Method for CreateSipAuthRegistrationsCredentialListMapping Create a new credential list mapping resource - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. - * @param domainSid The SID of the SIP domain that will contain the new resource. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param DomainSid The SID of the SIP domain that will contain the new resource. * @param optional nil or *CreateSipAuthRegistrationsCredentialListMappingOpts - Optional Parameters: * @param "CredentialListSid" (string) - The SID of the CredentialList resource to map to the SIP domain. @return ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping */ -func (c *DefaultApiService) CreateSipAuthRegistrationsCredentialListMapping(accountSid string, domainSid string, params *CreateSipAuthRegistrationsCredentialListMappingParams) (*ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping, error) { +func (c *DefaultApiService) CreateSipAuthRegistrationsCredentialListMapping(AccountSid string, DomainSid string, params *CreateSipAuthRegistrationsCredentialListMappingParams) (*ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) + data := url.Values{} headers := 0 if params != nil && params.CredentialListSid != nil { - data.Set("CredentialListSid", *params.CredentialListSid) + data.Set("CredentialListSid", *params.CredentialListSid) } @@ -1969,26 +1992,27 @@ type CreateSipCredentialParams struct { /* CreateSipCredential Method for CreateSipCredential Create a new credential resource. - * @param accountSid The unique id of the Account that is responsible for this resource. - * @param credentialListSid The unique id that identifies the credential list to include the created credential. + * @param AccountSid The unique id of the Account that is responsible for this resource. + * @param CredentialListSid The unique id that identifies the credential list to include the created credential. * @param optional nil or *CreateSipCredentialOpts - Optional Parameters: * @param "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`) * @param "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. @return ApiV2010AccountSipSipCredentialListSipCredential */ -func (c *DefaultApiService) CreateSipCredential(accountSid string, credentialListSid string, params *CreateSipCredentialParams) (*ApiV2010AccountSipSipCredentialListSipCredential, error) { +func (c *DefaultApiService) CreateSipCredential(AccountSid string, CredentialListSid string, params *CreateSipCredentialParams) (*ApiV2010AccountSipSipCredentialListSipCredential, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CredentialListSid"+"}", credentialListSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"CredentialListSid"+"}", CredentialListSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Password != nil { - data.Set("Password", *params.Password) + data.Set("Password", *params.Password) } if params != nil && params.Username != nil { - data.Set("Username", *params.Username) + data.Set("Username", *params.Username) } @@ -2014,20 +2038,21 @@ type CreateSipCredentialListParams struct { /* CreateSipCredentialList Method for CreateSipCredentialList Create a Credential List - * @param accountSid The unique id of the Account that is responsible for this resource. + * @param AccountSid The unique id of the Account that is responsible for this resource. * @param optional nil or *CreateSipCredentialListOpts - Optional Parameters: * @param "FriendlyName" (string) - A human readable descriptive text that describes the CredentialList, up to 64 characters long. @return ApiV2010AccountSipSipCredentialList */ -func (c *DefaultApiService) CreateSipCredentialList(accountSid string, params *CreateSipCredentialListParams) (*ApiV2010AccountSipSipCredentialList, error) { +func (c *DefaultApiService) CreateSipCredentialList(AccountSid string, params *CreateSipCredentialListParams) (*ApiV2010AccountSipSipCredentialList, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -2053,22 +2078,23 @@ type CreateSipCredentialListMappingParams struct { /* CreateSipCredentialListMapping Method for CreateSipCredentialListMapping Create a CredentialListMapping resource for an account. - * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. - * @param domainSid A 34 character string that uniquely identifies the SIP Domain for which the CredentialList resource will be mapped. + * @param AccountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param DomainSid A 34 character string that uniquely identifies the SIP Domain for which the CredentialList resource will be mapped. * @param optional nil or *CreateSipCredentialListMappingOpts - Optional Parameters: * @param "CredentialListSid" (string) - A 34 character string that uniquely identifies the CredentialList resource to map to the SIP domain. @return ApiV2010AccountSipSipDomainSipCredentialListMapping */ -func (c *DefaultApiService) CreateSipCredentialListMapping(accountSid string, domainSid string, params *CreateSipCredentialListMappingParams) (*ApiV2010AccountSipSipDomainSipCredentialListMapping, error) { +func (c *DefaultApiService) CreateSipCredentialListMapping(AccountSid string, DomainSid string, params *CreateSipCredentialListMappingParams) (*ApiV2010AccountSipSipDomainSipCredentialListMapping, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) + data := url.Values{} headers := 0 if params != nil && params.CredentialListSid != nil { - data.Set("CredentialListSid", *params.CredentialListSid) + data.Set("CredentialListSid", *params.CredentialListSid) } @@ -2106,7 +2132,7 @@ type CreateSipDomainParams struct { /* CreateSipDomain Method for CreateSipDomain Create a new Domain - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. * @param optional nil or *CreateSipDomainOpts - Optional Parameters: * @param "ByocTrunkSid" (string) - The SID of the BYOC Trunk(Bring Your Own Carrier) resource that the Sip Domain will be associated with. * @param "DomainName" (string) - The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and \\\"-\\\". @@ -2123,51 +2149,52 @@ Create a new Domain * @param "VoiceUrl" (string) - The URL we should when the domain receives a call. @return ApiV2010AccountSipSipDomain */ -func (c *DefaultApiService) CreateSipDomain(accountSid string, params *CreateSipDomainParams) (*ApiV2010AccountSipSipDomain, error) { +func (c *DefaultApiService) CreateSipDomain(AccountSid string, params *CreateSipDomainParams) (*ApiV2010AccountSipSipDomain, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.ByocTrunkSid != nil { - data.Set("ByocTrunkSid", *params.ByocTrunkSid) + data.Set("ByocTrunkSid", *params.ByocTrunkSid) } if params != nil && params.DomainName != nil { - data.Set("DomainName", *params.DomainName) + data.Set("DomainName", *params.DomainName) } if params != nil && params.EmergencyCallerSid != nil { - data.Set("EmergencyCallerSid", *params.EmergencyCallerSid) + data.Set("EmergencyCallerSid", *params.EmergencyCallerSid) } if params != nil && params.EmergencyCallingEnabled != nil { - data.Set("EmergencyCallingEnabled", string(*params.EmergencyCallingEnabled)) + data.Set("EmergencyCallingEnabled", fmt.Sprint(*params.EmergencyCallingEnabled)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Secure != nil { - data.Set("Secure", string(*params.Secure)) + data.Set("Secure", fmt.Sprint(*params.Secure)) } if params != nil && params.SipRegistration != nil { - data.Set("SipRegistration", string(*params.SipRegistration)) + data.Set("SipRegistration", fmt.Sprint(*params.SipRegistration)) } if params != nil && params.VoiceFallbackMethod != nil { - data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) } if params != nil && params.VoiceFallbackUrl != nil { - data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) } if params != nil && params.VoiceMethod != nil { - data.Set("VoiceMethod", *params.VoiceMethod) + data.Set("VoiceMethod", *params.VoiceMethod) } if params != nil && params.VoiceStatusCallbackMethod != nil { - data.Set("VoiceStatusCallbackMethod", *params.VoiceStatusCallbackMethod) + data.Set("VoiceStatusCallbackMethod", *params.VoiceStatusCallbackMethod) } if params != nil && params.VoiceStatusCallbackUrl != nil { - data.Set("VoiceStatusCallbackUrl", *params.VoiceStatusCallbackUrl) + data.Set("VoiceStatusCallbackUrl", *params.VoiceStatusCallbackUrl) } if params != nil && params.VoiceUrl != nil { - data.Set("VoiceUrl", *params.VoiceUrl) + data.Set("VoiceUrl", *params.VoiceUrl) } @@ -2193,20 +2220,21 @@ type CreateSipIpAccessControlListParams struct { /* CreateSipIpAccessControlList Method for CreateSipIpAccessControlList Create a new IpAccessControlList resource - * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param AccountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. * @param optional nil or *CreateSipIpAccessControlListOpts - Optional Parameters: * @param "FriendlyName" (string) - A human readable descriptive text that describes the IpAccessControlList, up to 64 characters long. @return ApiV2010AccountSipSipIpAccessControlList */ -func (c *DefaultApiService) CreateSipIpAccessControlList(accountSid string, params *CreateSipIpAccessControlListParams) (*ApiV2010AccountSipSipIpAccessControlList, error) { +func (c *DefaultApiService) CreateSipIpAccessControlList(AccountSid string, params *CreateSipIpAccessControlListParams) (*ApiV2010AccountSipSipIpAccessControlList, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -2232,22 +2260,23 @@ type CreateSipIpAccessControlListMappingParams struct { /* CreateSipIpAccessControlListMapping Method for CreateSipIpAccessControlListMapping Create a new IpAccessControlListMapping resource. - * @param accountSid The unique id of the Account that is responsible for this resource. - * @param domainSid A 34 character string that uniquely identifies the SIP domain. + * @param AccountSid The unique id of the Account that is responsible for this resource. + * @param DomainSid A 34 character string that uniquely identifies the SIP domain. * @param optional nil or *CreateSipIpAccessControlListMappingOpts - Optional Parameters: * @param "IpAccessControlListSid" (string) - The unique id of the IP access control list to map to the SIP domain. @return ApiV2010AccountSipSipDomainSipIpAccessControlListMapping */ -func (c *DefaultApiService) CreateSipIpAccessControlListMapping(accountSid string, domainSid string, params *CreateSipIpAccessControlListMappingParams) (*ApiV2010AccountSipSipDomainSipIpAccessControlListMapping, error) { +func (c *DefaultApiService) CreateSipIpAccessControlListMapping(AccountSid string, DomainSid string, params *CreateSipIpAccessControlListMappingParams) (*ApiV2010AccountSipSipDomainSipIpAccessControlListMapping, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) + data := url.Values{} headers := 0 if params != nil && params.IpAccessControlListSid != nil { - data.Set("IpAccessControlListSid", *params.IpAccessControlListSid) + data.Set("IpAccessControlListSid", *params.IpAccessControlListSid) } @@ -2275,30 +2304,31 @@ type CreateSipIpAddressParams struct { /* CreateSipIpAddress Method for CreateSipIpAddress Create a new IpAddress resource. - * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. - * @param ipAccessControlListSid The IpAccessControlList Sid with which to associate the created IpAddress resource. + * @param AccountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param IpAccessControlListSid The IpAccessControlList Sid with which to associate the created IpAddress resource. * @param optional nil or *CreateSipIpAddressOpts - Optional Parameters: * @param "CidrPrefixLength" (int32) - 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. * @param "FriendlyName" (string) - A human readable descriptive text for this resource, up to 64 characters long. * @param "IpAddress" (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. @return ApiV2010AccountSipSipIpAccessControlListSipIpAddress */ -func (c *DefaultApiService) CreateSipIpAddress(accountSid string, ipAccessControlListSid string, params *CreateSipIpAddressParams) (*ApiV2010AccountSipSipIpAccessControlListSipIpAddress, error) { +func (c *DefaultApiService) CreateSipIpAddress(AccountSid string, IpAccessControlListSid string, params *CreateSipIpAddressParams) (*ApiV2010AccountSipSipIpAccessControlListSipIpAddress, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"IpAccessControlListSid"+"}", ipAccessControlListSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"IpAccessControlListSid"+"}", IpAccessControlListSid, -1) + data := url.Values{} headers := 0 if params != nil && params.CidrPrefixLength != nil { - data.Set("CidrPrefixLength", string(*params.CidrPrefixLength)) + data.Set("CidrPrefixLength", fmt.Sprint(*params.CidrPrefixLength)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.IpAddress != nil { - data.Set("IpAddress", *params.IpAddress) + data.Set("IpAddress", *params.IpAddress) } @@ -2324,20 +2354,21 @@ type CreateTokenParams struct { /* CreateToken Method for CreateToken Create a new token for ICE servers - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. * @param optional nil or *CreateTokenOpts - Optional Parameters: * @param "Ttl" (int32) - The duration in seconds for which the generated credentials are valid. The default value is 86400 (24 hours). @return ApiV2010AccountToken */ -func (c *DefaultApiService) CreateToken(accountSid string, params *CreateTokenParams) (*ApiV2010AccountToken, error) { +func (c *DefaultApiService) CreateToken(AccountSid string, params *CreateTokenParams) (*ApiV2010AccountToken, error) { path := "/2010-04-01/Accounts/{AccountSid}/Tokens.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Ttl != nil { - data.Set("Ttl", string(*params.Ttl)) + data.Set("Ttl", fmt.Sprint(*params.Ttl)) } @@ -2369,7 +2400,7 @@ type CreateUsageTriggerParams struct { /* CreateUsageTrigger Method for CreateUsageTrigger Create a new UsageTrigger - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. * @param optional nil or *CreateUsageTriggerOpts - Optional Parameters: * @param "CallbackMethod" (string) - The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is `POST`. * @param "CallbackUrl" (string) - The URL we should call using `callback_method` when the trigger fires. @@ -2380,33 +2411,34 @@ Create a new UsageTrigger * @param "UsageCategory" (string) - The usage category that the trigger should watch. Use one of the supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) for this value. @return ApiV2010AccountUsageUsageTrigger */ -func (c *DefaultApiService) CreateUsageTrigger(accountSid string, params *CreateUsageTriggerParams) (*ApiV2010AccountUsageUsageTrigger, error) { +func (c *DefaultApiService) CreateUsageTrigger(AccountSid string, params *CreateUsageTriggerParams) (*ApiV2010AccountUsageUsageTrigger, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Triggers.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.CallbackMethod != nil { - data.Set("CallbackMethod", *params.CallbackMethod) + data.Set("CallbackMethod", *params.CallbackMethod) } if params != nil && params.CallbackUrl != nil { - data.Set("CallbackUrl", *params.CallbackUrl) + data.Set("CallbackUrl", *params.CallbackUrl) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Recurring != nil { - data.Set("Recurring", *params.Recurring) + data.Set("Recurring", *params.Recurring) } if params != nil && params.TriggerBy != nil { - data.Set("TriggerBy", *params.TriggerBy) + data.Set("TriggerBy", *params.TriggerBy) } if params != nil && params.TriggerValue != nil { - data.Set("TriggerValue", *params.TriggerValue) + data.Set("TriggerValue", *params.TriggerValue) } if params != nil && params.UsageCategory != nil { - data.Set("UsageCategory", *params.UsageCategory) + data.Set("UsageCategory", *params.UsageCategory) } @@ -2436,7 +2468,7 @@ type CreateValidationRequestParams struct { /* CreateValidationRequest Method for CreateValidationRequest - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for the new caller ID resource. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for the new caller ID resource. * @param optional nil or *CreateValidationRequestOpts - Optional Parameters: * @param "CallDelay" (int32) - The number of seconds to delay before initiating the verification call. Can be an integer between `0` and `60`, inclusive. The default is `0`. * @param "Extension" (string) - The digits to dial after connecting the verification call. @@ -2446,30 +2478,31 @@ CreateValidationRequest Method for CreateValidationRequest * @param "StatusCallbackMethod" (string) - The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST`, and the default is `POST`. @return ApiV2010AccountValidationRequest */ -func (c *DefaultApiService) CreateValidationRequest(accountSid string, params *CreateValidationRequestParams) (*ApiV2010AccountValidationRequest, error) { +func (c *DefaultApiService) CreateValidationRequest(AccountSid string, params *CreateValidationRequestParams) (*ApiV2010AccountValidationRequest, error) { path := "/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.CallDelay != nil { - data.Set("CallDelay", string(*params.CallDelay)) + data.Set("CallDelay", fmt.Sprint(*params.CallDelay)) } if params != nil && params.Extension != nil { - data.Set("Extension", *params.Extension) + data.Set("Extension", *params.Extension) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.PhoneNumber != nil { - data.Set("PhoneNumber", *params.PhoneNumber) + data.Set("PhoneNumber", *params.PhoneNumber) } if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) + data.Set("StatusCallback", *params.StatusCallback) } if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) } @@ -2490,15 +2523,16 @@ func (c *DefaultApiService) CreateValidationRequest(accountSid string, params *C /* DeleteAddress Method for DeleteAddress - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to delete. - * @param sid The Twilio-provided string that uniquely identifies the Address resource to delete. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to delete. + * @param Sid The Twilio-provided string that uniquely identifies the Address resource to delete. */ -func (c *DefaultApiService) DeleteAddress(accountSid string, sid string) (error) { +func (c *DefaultApiService) DeleteAddress(AccountSid string, Sid string) (error) { path := "/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -2516,15 +2550,16 @@ func (c *DefaultApiService) DeleteAddress(accountSid string, sid string) (error) /* DeleteApplication Method for DeleteApplication Delete the application by the specified application sid - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resources to delete. - * @param sid The Twilio-provided string that uniquely identifies the Application resource to delete. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resources to delete. + * @param Sid The Twilio-provided string that uniquely identifies the Application resource to delete. */ -func (c *DefaultApiService) DeleteApplication(accountSid string, sid string) (error) { +func (c *DefaultApiService) DeleteApplication(AccountSid string, Sid string) (error) { path := "/2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -2542,15 +2577,16 @@ func (c *DefaultApiService) DeleteApplication(accountSid string, sid string) (er /* DeleteCall Method for DeleteCall Delete a Call record from your account. Once the record is deleted, it will no longer appear in the API and Account Portal logs. - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to delete. - * @param sid The Twilio-provided Call SID that uniquely identifies the Call resource to delete + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to delete. + * @param Sid The Twilio-provided Call SID that uniquely identifies the Call resource to delete */ -func (c *DefaultApiService) DeleteCall(accountSid string, sid string) (error) { +func (c *DefaultApiService) DeleteCall(AccountSid string, Sid string) (error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -2568,15 +2604,16 @@ func (c *DefaultApiService) DeleteCall(accountSid string, sid string) (error) { /* DeleteCallFeedbackSummary Method for DeleteCallFeedbackSummary Delete a FeedbackSummary resource from a call - * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. - * @param sid A 34 character string that uniquely identifies this resource. + * @param AccountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param Sid A 34 character string that uniquely identifies this resource. */ -func (c *DefaultApiService) DeleteCallFeedbackSummary(accountSid string, sid string) (error) { +func (c *DefaultApiService) DeleteCallFeedbackSummary(AccountSid string, Sid string) (error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -2594,17 +2631,18 @@ func (c *DefaultApiService) DeleteCallFeedbackSummary(accountSid string, sid str /* DeleteCallRecording Method for DeleteCallRecording Delete a recording from your account - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to delete. - * @param callSid The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resources to delete. - * @param sid The Twilio-provided string that uniquely identifies the Recording resource to delete. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to delete. + * @param CallSid The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resources to delete. + * @param Sid The Twilio-provided string that uniquely identifies the Recording resource to delete. */ -func (c *DefaultApiService) DeleteCallRecording(accountSid string, callSid string, sid string) (error) { +func (c *DefaultApiService) DeleteCallRecording(AccountSid string, CallSid string, Sid string) (error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", CallSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -2622,17 +2660,18 @@ func (c *DefaultApiService) DeleteCallRecording(accountSid string, callSid strin /* DeleteConferenceRecording Method for DeleteConferenceRecording Delete a recording from your account - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resources to delete. - * @param conferenceSid The Conference SID that identifies the conference associated with the recording to delete. - * @param sid The Twilio-provided string that uniquely identifies the Conference Recording resource to delete. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resources to delete. + * @param ConferenceSid The Conference SID that identifies the conference associated with the recording to delete. + * @param Sid The Twilio-provided string that uniquely identifies the Conference Recording resource to delete. */ -func (c *DefaultApiService) DeleteConferenceRecording(accountSid string, conferenceSid string, sid string) (error) { +func (c *DefaultApiService) DeleteConferenceRecording(AccountSid string, ConferenceSid string, Sid string) (error) { path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ConferenceSid"+"}", conferenceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"ConferenceSid"+"}", ConferenceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -2650,15 +2689,16 @@ func (c *DefaultApiService) DeleteConferenceRecording(accountSid string, confere /* DeleteConnectApp Method for DeleteConnectApp Delete an instance of a connect-app - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resource to fetch. - * @param sid The Twilio-provided string that uniquely identifies the ConnectApp resource to fetch. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the ConnectApp resource to fetch. */ -func (c *DefaultApiService) DeleteConnectApp(accountSid string, sid string) (error) { +func (c *DefaultApiService) DeleteConnectApp(AccountSid string, Sid string) (error) { path := "/2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -2676,15 +2716,16 @@ func (c *DefaultApiService) DeleteConnectApp(accountSid string, sid string) (err /* DeleteIncomingPhoneNumber Method for DeleteIncomingPhoneNumber Delete a phone-numbers belonging to the account used to make the request. - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IncomingPhoneNumber resources to delete. - * @param sid The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to delete. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IncomingPhoneNumber resources to delete. + * @param Sid The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to delete. */ -func (c *DefaultApiService) DeleteIncomingPhoneNumber(accountSid string, sid string) (error) { +func (c *DefaultApiService) DeleteIncomingPhoneNumber(AccountSid string, Sid string) (error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -2702,17 +2743,18 @@ func (c *DefaultApiService) DeleteIncomingPhoneNumber(accountSid string, sid str /* DeleteIncomingPhoneNumberAssignedAddOn Method for DeleteIncomingPhoneNumberAssignedAddOn Remove the assignment of an Add-on installation from the Number specified. - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to delete. - * @param resourceSid The SID of the Phone Number to which the Add-on is assigned. - * @param sid The Twilio-provided string that uniquely identifies the resource to delete. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to delete. + * @param ResourceSid The SID of the Phone Number to which the Add-on is assigned. + * @param Sid The Twilio-provided string that uniquely identifies the resource to delete. */ -func (c *DefaultApiService) DeleteIncomingPhoneNumberAssignedAddOn(accountSid string, resourceSid string, sid string) (error) { +func (c *DefaultApiService) DeleteIncomingPhoneNumberAssignedAddOn(AccountSid string, ResourceSid string, Sid string) (error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ResourceSid"+"}", resourceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"ResourceSid"+"}", ResourceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -2729,15 +2771,16 @@ func (c *DefaultApiService) DeleteIncomingPhoneNumberAssignedAddOn(accountSid st /* DeleteKey Method for DeleteKey - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resources to delete. - * @param sid The Twilio-provided string that uniquely identifies the Key resource to delete. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resources to delete. + * @param Sid The Twilio-provided string that uniquely identifies the Key resource to delete. */ -func (c *DefaultApiService) DeleteKey(accountSid string, sid string) (error) { +func (c *DefaultApiService) DeleteKey(AccountSid string, Sid string) (error) { path := "/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -2755,17 +2798,18 @@ func (c *DefaultApiService) DeleteKey(accountSid string, sid string) (error) { /* DeleteMedia Method for DeleteMedia Delete media from your account. Once delete, you will no longer be billed - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Media resource(s) to delete. - * @param messageSid The SID of the Message resource that this Media resource belongs to. - * @param sid The Twilio-provided string that uniquely identifies the Media resource to delete + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Media resource(s) to delete. + * @param MessageSid The SID of the Message resource that this Media resource belongs to. + * @param Sid The Twilio-provided string that uniquely identifies the Media resource to delete */ -func (c *DefaultApiService) DeleteMedia(accountSid string, messageSid string, sid string) (error) { +func (c *DefaultApiService) DeleteMedia(AccountSid string, MessageSid string, Sid string) (error) { path := "/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"MessageSid"+"}", messageSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"MessageSid"+"}", MessageSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -2783,15 +2827,16 @@ func (c *DefaultApiService) DeleteMedia(accountSid string, messageSid string, si /* DeleteMessage Method for DeleteMessage Deletes a message record from your account - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Message resources to delete. - * @param sid The Twilio-provided string that uniquely identifies the Message resource to delete. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Message resources to delete. + * @param Sid The Twilio-provided string that uniquely identifies the Message resource to delete. */ -func (c *DefaultApiService) DeleteMessage(accountSid string, sid string) (error) { +func (c *DefaultApiService) DeleteMessage(AccountSid string, Sid string) (error) { path := "/2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -2809,15 +2854,16 @@ func (c *DefaultApiService) DeleteMessage(accountSid string, sid string) (error) /* DeleteOutgoingCallerId Method for DeleteOutgoingCallerId Delete the caller-id specified from the account - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resources to delete. - * @param sid The Twilio-provided string that uniquely identifies the OutgoingCallerId resource to delete. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resources to delete. + * @param Sid The Twilio-provided string that uniquely identifies the OutgoingCallerId resource to delete. */ -func (c *DefaultApiService) DeleteOutgoingCallerId(accountSid string, sid string) (error) { +func (c *DefaultApiService) DeleteOutgoingCallerId(AccountSid string, Sid string) (error) { path := "/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -2835,17 +2881,18 @@ func (c *DefaultApiService) DeleteOutgoingCallerId(accountSid string, sid string /* DeleteParticipant Method for DeleteParticipant Kick a participant from a given conference - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resources to delete. - * @param conferenceSid The SID of the conference with the participants to delete. - * @param callSid 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. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resources to delete. + * @param ConferenceSid The SID of the conference with the participants to delete. + * @param CallSid 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. */ -func (c *DefaultApiService) DeleteParticipant(accountSid string, conferenceSid string, callSid string) (error) { +func (c *DefaultApiService) DeleteParticipant(AccountSid string, ConferenceSid string, CallSid string) (error) { path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ConferenceSid"+"}", conferenceSid, -1) - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"ConferenceSid"+"}", ConferenceSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", CallSid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -2863,15 +2910,16 @@ func (c *DefaultApiService) DeleteParticipant(accountSid string, conferenceSid s /* DeleteQueue Method for DeleteQueue Remove an empty queue - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resource to delete. - * @param sid The Twilio-provided string that uniquely identifies the Queue resource to delete + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resource to delete. + * @param Sid The Twilio-provided string that uniquely identifies the Queue resource to delete */ -func (c *DefaultApiService) DeleteQueue(accountSid string, sid string) (error) { +func (c *DefaultApiService) DeleteQueue(AccountSid string, Sid string) (error) { path := "/2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -2889,15 +2937,16 @@ func (c *DefaultApiService) DeleteQueue(accountSid string, sid string) (error) { /* DeleteRecording Method for DeleteRecording Delete a recording from your account - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to delete. - * @param sid The Twilio-provided string that uniquely identifies the Recording resource to delete. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to delete. + * @param Sid The Twilio-provided string that uniquely identifies the Recording resource to delete. */ -func (c *DefaultApiService) DeleteRecording(accountSid string, sid string) (error) { +func (c *DefaultApiService) DeleteRecording(AccountSid string, Sid string) (error) { path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -2915,17 +2964,18 @@ func (c *DefaultApiService) DeleteRecording(accountSid string, sid string) (erro /* DeleteRecordingAddOnResult Method for DeleteRecordingAddOnResult Delete a result and purge all associated Payloads - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult resources to delete. - * @param referenceSid The SID of the recording to which the result to delete belongs. - * @param sid The Twilio-provided string that uniquely identifies the Recording AddOnResult resource to delete. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult resources to delete. + * @param ReferenceSid The SID of the recording to which the result to delete belongs. + * @param Sid The Twilio-provided string that uniquely identifies the Recording AddOnResult resource to delete. */ -func (c *DefaultApiService) DeleteRecordingAddOnResult(accountSid string, referenceSid string, sid string) (error) { +func (c *DefaultApiService) DeleteRecordingAddOnResult(AccountSid string, ReferenceSid string, Sid string) (error) { path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ReferenceSid"+"}", referenceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"ReferenceSid"+"}", ReferenceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -2943,19 +2993,20 @@ func (c *DefaultApiService) DeleteRecordingAddOnResult(accountSid string, refere /* DeleteRecordingAddOnResultPayload Method for DeleteRecordingAddOnResultPayload Delete a payload from the result along with all associated Data - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resources to delete. - * @param referenceSid The SID of the recording to which the AddOnResult resource that contains the payloads to delete belongs. - * @param addOnResultSid The SID of the AddOnResult to which the payloads to delete belongs. - * @param sid The Twilio-provided string that uniquely identifies the Recording AddOnResult Payload resource to delete. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resources to delete. + * @param ReferenceSid The SID of the recording to which the AddOnResult resource that contains the payloads to delete belongs. + * @param AddOnResultSid The SID of the AddOnResult to which the payloads to delete belongs. + * @param Sid The Twilio-provided string that uniquely identifies the Recording AddOnResult Payload resource to delete. */ -func (c *DefaultApiService) DeleteRecordingAddOnResultPayload(accountSid string, referenceSid string, addOnResultSid string, sid string) (error) { +func (c *DefaultApiService) DeleteRecordingAddOnResultPayload(AccountSid string, ReferenceSid string, AddOnResultSid string, Sid string) (error) { path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ReferenceSid"+"}", referenceSid, -1) - path = strings.Replace(path, "{"+"AddOnResultSid"+"}", addOnResultSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"ReferenceSid"+"}", ReferenceSid, -1) + path = strings.Replace(path, "{"+"AddOnResultSid"+"}", AddOnResultSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -2972,17 +3023,18 @@ func (c *DefaultApiService) DeleteRecordingAddOnResultPayload(accountSid string, /* DeleteRecordingTranscription Method for DeleteRecordingTranscription - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to delete. - * @param recordingSid The SID of the [Recording](https://www.twilio.com/docs/voice/api/recording) that created the transcription to delete. - * @param sid The Twilio-provided string that uniquely identifies the Transcription resource to delete. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to delete. + * @param RecordingSid The SID of the [Recording](https://www.twilio.com/docs/voice/api/recording) that created the transcription to delete. + * @param Sid The Twilio-provided string that uniquely identifies the Transcription resource to delete. */ -func (c *DefaultApiService) DeleteRecordingTranscription(accountSid string, recordingSid string, sid string) (error) { +func (c *DefaultApiService) DeleteRecordingTranscription(AccountSid string, RecordingSid string, Sid string) (error) { path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"RecordingSid"+"}", recordingSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"RecordingSid"+"}", RecordingSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -2999,15 +3051,16 @@ func (c *DefaultApiService) DeleteRecordingTranscription(accountSid string, reco /* DeleteSigningKey Method for DeleteSigningKey - * @param accountSid - * @param sid + * @param AccountSid + * @param Sid */ -func (c *DefaultApiService) DeleteSigningKey(accountSid string, sid string) (error) { +func (c *DefaultApiService) DeleteSigningKey(AccountSid string, Sid string) (error) { path := "/2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -3025,17 +3078,18 @@ func (c *DefaultApiService) DeleteSigningKey(accountSid string, sid string) (err /* DeleteSipAuthCallsCredentialListMapping Method for DeleteSipAuthCallsCredentialListMapping Delete a credential list mapping from the requested domain - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to delete. - * @param domainSid The SID of the SIP domain that contains the resource to delete. - * @param sid The Twilio-provided string that uniquely identifies the CredentialListMapping resource to delete. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to delete. + * @param DomainSid The SID of the SIP domain that contains the resource to delete. + * @param Sid The Twilio-provided string that uniquely identifies the CredentialListMapping resource to delete. */ -func (c *DefaultApiService) DeleteSipAuthCallsCredentialListMapping(accountSid string, domainSid string, sid string) (error) { +func (c *DefaultApiService) DeleteSipAuthCallsCredentialListMapping(AccountSid string, DomainSid string, Sid string) (error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -3053,17 +3107,18 @@ func (c *DefaultApiService) DeleteSipAuthCallsCredentialListMapping(accountSid s /* DeleteSipAuthCallsIpAccessControlListMapping Method for DeleteSipAuthCallsIpAccessControlListMapping Delete an IP Access Control List mapping from the requested domain - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IpAccessControlListMapping resources to delete. - * @param domainSid The SID of the SIP domain that contains the resources to delete. - * @param sid The Twilio-provided string that uniquely identifies the IpAccessControlListMapping resource to delete. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IpAccessControlListMapping resources to delete. + * @param DomainSid The SID of the SIP domain that contains the resources to delete. + * @param Sid The Twilio-provided string that uniquely identifies the IpAccessControlListMapping resource to delete. */ -func (c *DefaultApiService) DeleteSipAuthCallsIpAccessControlListMapping(accountSid string, domainSid string, sid string) (error) { +func (c *DefaultApiService) DeleteSipAuthCallsIpAccessControlListMapping(AccountSid string, DomainSid string, Sid string) (error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -3081,17 +3136,18 @@ func (c *DefaultApiService) DeleteSipAuthCallsIpAccessControlListMapping(account /* DeleteSipAuthRegistrationsCredentialListMapping Method for DeleteSipAuthRegistrationsCredentialListMapping Delete a credential list mapping from the requested domain - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to delete. - * @param domainSid The SID of the SIP domain that contains the resources to delete. - * @param sid The Twilio-provided string that uniquely identifies the CredentialListMapping resource to delete. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to delete. + * @param DomainSid The SID of the SIP domain that contains the resources to delete. + * @param Sid The Twilio-provided string that uniquely identifies the CredentialListMapping resource to delete. */ -func (c *DefaultApiService) DeleteSipAuthRegistrationsCredentialListMapping(accountSid string, domainSid string, sid string) (error) { +func (c *DefaultApiService) DeleteSipAuthRegistrationsCredentialListMapping(AccountSid string, DomainSid string, Sid string) (error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -3109,17 +3165,18 @@ func (c *DefaultApiService) DeleteSipAuthRegistrationsCredentialListMapping(acco /* DeleteSipCredential Method for DeleteSipCredential Delete a credential resource. - * @param accountSid The unique id of the Account that is responsible for this resource. - * @param credentialListSid The unique id that identifies the credential list that contains the desired credentials. - * @param sid The unique id that identifies the resource to delete. + * @param AccountSid The unique id of the Account that is responsible for this resource. + * @param CredentialListSid The unique id that identifies the credential list that contains the desired credentials. + * @param Sid The unique id that identifies the resource to delete. */ -func (c *DefaultApiService) DeleteSipCredential(accountSid string, credentialListSid string, sid string) (error) { +func (c *DefaultApiService) DeleteSipCredential(AccountSid string, CredentialListSid string, Sid string) (error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CredentialListSid"+"}", credentialListSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"CredentialListSid"+"}", CredentialListSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -3137,15 +3194,16 @@ func (c *DefaultApiService) DeleteSipCredential(accountSid string, credentialLis /* DeleteSipCredentialList Method for DeleteSipCredentialList Delete a Credential List - * @param accountSid The unique id of the Account that is responsible for this resource. - * @param sid The credential list Sid that uniquely identifies this resource + * @param AccountSid The unique id of the Account that is responsible for this resource. + * @param Sid The credential list Sid that uniquely identifies this resource */ -func (c *DefaultApiService) DeleteSipCredentialList(accountSid string, sid string) (error) { +func (c *DefaultApiService) DeleteSipCredentialList(AccountSid string, Sid string) (error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -3163,17 +3221,18 @@ func (c *DefaultApiService) DeleteSipCredentialList(accountSid string, sid strin /* DeleteSipCredentialListMapping Method for DeleteSipCredentialListMapping Delete a CredentialListMapping resource from an account. - * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. - * @param domainSid A 34 character string that uniquely identifies the SIP Domain that includes the resource to delete. - * @param sid A 34 character string that uniquely identifies the resource to delete. + * @param AccountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param DomainSid A 34 character string that uniquely identifies the SIP Domain that includes the resource to delete. + * @param Sid A 34 character string that uniquely identifies the resource to delete. */ -func (c *DefaultApiService) DeleteSipCredentialListMapping(accountSid string, domainSid string, sid string) (error) { +func (c *DefaultApiService) DeleteSipCredentialListMapping(AccountSid string, DomainSid string, Sid string) (error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -3191,15 +3250,16 @@ func (c *DefaultApiService) DeleteSipCredentialListMapping(accountSid string, do /* DeleteSipDomain Method for DeleteSipDomain Delete an instance of a Domain - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resources to delete. - * @param sid The Twilio-provided string that uniquely identifies the SipDomain resource to delete. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resources to delete. + * @param Sid The Twilio-provided string that uniquely identifies the SipDomain resource to delete. */ -func (c *DefaultApiService) DeleteSipDomain(accountSid string, sid string) (error) { +func (c *DefaultApiService) DeleteSipDomain(AccountSid string, Sid string) (error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -3217,15 +3277,16 @@ func (c *DefaultApiService) DeleteSipDomain(accountSid string, sid string) (erro /* DeleteSipIpAccessControlList Method for DeleteSipIpAccessControlList Delete an IpAccessControlList from the requested account - * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. - * @param sid A 34 character string that uniquely identifies the resource to delete. + * @param AccountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param Sid A 34 character string that uniquely identifies the resource to delete. */ -func (c *DefaultApiService) DeleteSipIpAccessControlList(accountSid string, sid string) (error) { +func (c *DefaultApiService) DeleteSipIpAccessControlList(AccountSid string, Sid string) (error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -3243,17 +3304,18 @@ func (c *DefaultApiService) DeleteSipIpAccessControlList(accountSid string, sid /* DeleteSipIpAccessControlListMapping Method for DeleteSipIpAccessControlListMapping Delete an IpAccessControlListMapping resource. - * @param accountSid The unique id of the Account that is responsible for this resource. - * @param domainSid A 34 character string that uniquely identifies the SIP domain. - * @param sid A 34 character string that uniquely identifies the resource to delete. + * @param AccountSid The unique id of the Account that is responsible for this resource. + * @param DomainSid A 34 character string that uniquely identifies the SIP domain. + * @param Sid A 34 character string that uniquely identifies the resource to delete. */ -func (c *DefaultApiService) DeleteSipIpAccessControlListMapping(accountSid string, domainSid string, sid string) (error) { +func (c *DefaultApiService) DeleteSipIpAccessControlListMapping(AccountSid string, DomainSid string, Sid string) (error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -3271,17 +3333,18 @@ func (c *DefaultApiService) DeleteSipIpAccessControlListMapping(accountSid strin /* DeleteSipIpAddress Method for DeleteSipIpAddress Delete an IpAddress resource. - * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. - * @param ipAccessControlListSid The IpAccessControlList Sid that identifies the IpAddress resources to delete. - * @param sid A 34 character string that uniquely identifies the resource to delete. + * @param AccountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param IpAccessControlListSid The IpAccessControlList Sid that identifies the IpAddress resources to delete. + * @param Sid A 34 character string that uniquely identifies the resource to delete. */ -func (c *DefaultApiService) DeleteSipIpAddress(accountSid string, ipAccessControlListSid string, sid string) (error) { +func (c *DefaultApiService) DeleteSipIpAddress(AccountSid string, IpAccessControlListSid string, Sid string) (error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"IpAccessControlListSid"+"}", ipAccessControlListSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"IpAccessControlListSid"+"}", IpAccessControlListSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -3299,15 +3362,16 @@ func (c *DefaultApiService) DeleteSipIpAddress(accountSid string, ipAccessContro /* DeleteTranscription Method for DeleteTranscription Delete a transcription from the account used to make the request - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to delete. - * @param sid The Twilio-provided string that uniquely identifies the Transcription resource to delete. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to delete. + * @param Sid The Twilio-provided string that uniquely identifies the Transcription resource to delete. */ -func (c *DefaultApiService) DeleteTranscription(accountSid string, sid string) (error) { +func (c *DefaultApiService) DeleteTranscription(AccountSid string, Sid string) (error) { path := "/2010-04-01/Accounts/{AccountSid}/Transcriptions/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -3324,15 +3388,16 @@ func (c *DefaultApiService) DeleteTranscription(accountSid string, sid string) ( /* DeleteUsageTrigger Method for DeleteUsageTrigger - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resources to delete. - * @param sid The Twilio-provided string that uniquely identifies the UsageTrigger resource to delete. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resources to delete. + * @param Sid The Twilio-provided string that uniquely identifies the UsageTrigger resource to delete. */ -func (c *DefaultApiService) DeleteUsageTrigger(accountSid string, sid string) (error) { +func (c *DefaultApiService) DeleteUsageTrigger(AccountSid string, Sid string) (error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -3350,14 +3415,15 @@ func (c *DefaultApiService) DeleteUsageTrigger(accountSid string, sid string) (e /* FetchAccount Method for FetchAccount Fetch the account specified by the provided Account Sid - * @param sid The Account Sid that uniquely identifies the account to fetch + * @param Sid The Account Sid that uniquely identifies the account to fetch @return ApiV2010Account */ -func (c *DefaultApiService) FetchAccount(sid string) (*ApiV2010Account, error) { +func (c *DefaultApiService) FetchAccount(Sid string) (*ApiV2010Account, error) { path := "/2010-04-01/Accounts/{Sid}.json" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -3379,16 +3445,17 @@ func (c *DefaultApiService) FetchAccount(sid string) (*ApiV2010Account, error) { /* FetchAddress Method for FetchAddress - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to fetch. - * @param sid The Twilio-provided string that uniquely identifies the Address resource to fetch. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the Address resource to fetch. @return ApiV2010AccountAddress */ -func (c *DefaultApiService) FetchAddress(accountSid string, sid string) (*ApiV2010AccountAddress, error) { +func (c *DefaultApiService) FetchAddress(AccountSid string, Sid string) (*ApiV2010AccountAddress, error) { path := "/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -3411,16 +3478,17 @@ func (c *DefaultApiService) FetchAddress(accountSid string, sid string) (*ApiV20 /* FetchApplication Method for FetchApplication Fetch the application specified by the provided sid - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resource to fetch. - * @param sid The Twilio-provided string that uniquely identifies the Application resource to fetch. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the Application resource to fetch. @return ApiV2010AccountApplication */ -func (c *DefaultApiService) FetchApplication(accountSid string, sid string) (*ApiV2010AccountApplication, error) { +func (c *DefaultApiService) FetchApplication(AccountSid string, Sid string) (*ApiV2010AccountApplication, error) { path := "/2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -3443,16 +3511,17 @@ func (c *DefaultApiService) FetchApplication(accountSid string, sid string) (*Ap /* FetchAuthorizedConnectApp Method for FetchAuthorizedConnectApp Fetch an instance of an authorized-connect-app - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the AuthorizedConnectApp resource to fetch. - * @param connectAppSid The SID of the Connect App to fetch. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the AuthorizedConnectApp resource to fetch. + * @param ConnectAppSid The SID of the Connect App to fetch. @return ApiV2010AccountAuthorizedConnectApp */ -func (c *DefaultApiService) FetchAuthorizedConnectApp(accountSid string, connectAppSid string) (*ApiV2010AccountAuthorizedConnectApp, error) { +func (c *DefaultApiService) FetchAuthorizedConnectApp(AccountSid string, ConnectAppSid string) (*ApiV2010AccountAuthorizedConnectApp, error) { path := "/2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps/{ConnectAppSid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ConnectAppSid"+"}", connectAppSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"ConnectAppSid"+"}", ConnectAppSid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -3474,16 +3543,17 @@ func (c *DefaultApiService) FetchAuthorizedConnectApp(accountSid string, connect /* FetchAvailablePhoneNumberCountry Method for FetchAvailablePhoneNumberCountry - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the available phone number Country resource. - * @param countryCode 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. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the available phone number Country resource. + * @param CountryCode 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. @return ApiV2010AccountAvailablePhoneNumberCountry */ -func (c *DefaultApiService) FetchAvailablePhoneNumberCountry(accountSid string, countryCode string) (*ApiV2010AccountAvailablePhoneNumberCountry, error) { +func (c *DefaultApiService) FetchAvailablePhoneNumberCountry(AccountSid string, CountryCode string) (*ApiV2010AccountAvailablePhoneNumberCountry, error) { path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CountryCode"+"}", countryCode, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"CountryCode"+"}", CountryCode, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -3506,14 +3576,15 @@ func (c *DefaultApiService) FetchAvailablePhoneNumberCountry(accountSid string, /* FetchBalance Method for FetchBalance Fetch the balance for an Account based on Account Sid. Balance changes may not be reflected immediately. Child accounts do not contain balance information - * @param accountSid The unique SID identifier of the Account. + * @param AccountSid The unique SID identifier of the Account. @return ApiV2010AccountBalance */ -func (c *DefaultApiService) FetchBalance(accountSid string) (*ApiV2010AccountBalance, error) { +func (c *DefaultApiService) FetchBalance(AccountSid string) (*ApiV2010AccountBalance, error) { path := "/2010-04-01/Accounts/{AccountSid}/Balance.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -3536,16 +3607,17 @@ func (c *DefaultApiService) FetchBalance(accountSid string) (*ApiV2010AccountBal /* FetchCall Method for FetchCall Fetch the call specified by the provided Call SID - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to fetch. - * @param sid The SID of the Call resource to fetch. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to fetch. + * @param Sid The SID of the Call resource to fetch. @return ApiV2010AccountCall */ -func (c *DefaultApiService) FetchCall(accountSid string, sid string) (*ApiV2010AccountCall, error) { +func (c *DefaultApiService) FetchCall(AccountSid string, Sid string) (*ApiV2010AccountCall, error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -3568,16 +3640,17 @@ func (c *DefaultApiService) FetchCall(accountSid string, sid string) (*ApiV2010A /* FetchCallFeedback Method for FetchCallFeedback Fetch a Feedback resource from a call - * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. - * @param callSid The call sid that uniquely identifies the call + * @param AccountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param CallSid The call sid that uniquely identifies the call @return ApiV2010AccountCallCallFeedback */ -func (c *DefaultApiService) FetchCallFeedback(accountSid string, callSid string) (*ApiV2010AccountCallCallFeedback, error) { +func (c *DefaultApiService) FetchCallFeedback(AccountSid string, CallSid string) (*ApiV2010AccountCallCallFeedback, error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Feedback.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", CallSid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -3600,16 +3673,17 @@ func (c *DefaultApiService) FetchCallFeedback(accountSid string, callSid string) /* FetchCallFeedbackSummary Method for FetchCallFeedbackSummary Fetch a FeedbackSummary resource from a call - * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. - * @param sid A 34 character string that uniquely identifies this resource. + * @param AccountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param Sid A 34 character string that uniquely identifies this resource. @return ApiV2010AccountCallCallFeedbackSummary */ -func (c *DefaultApiService) FetchCallFeedbackSummary(accountSid string, sid string) (*ApiV2010AccountCallCallFeedbackSummary, error) { +func (c *DefaultApiService) FetchCallFeedbackSummary(AccountSid string, Sid string) (*ApiV2010AccountCallCallFeedbackSummary, error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls/FeedbackSummary/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -3631,18 +3705,19 @@ func (c *DefaultApiService) FetchCallFeedbackSummary(accountSid string, sid stri /* FetchCallNotification Method for FetchCallNotification - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call Notification resource to fetch. - * @param callSid The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the Call Notification resource to fetch. - * @param sid The Twilio-provided string that uniquely identifies the Call Notification resource to fetch. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call Notification resource to fetch. + * @param CallSid The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the Call Notification resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the Call Notification resource to fetch. @return ApiV2010AccountCallCallNotificationInstance */ -func (c *DefaultApiService) FetchCallNotification(accountSid string, callSid string, sid string) (*ApiV2010AccountCallCallNotificationInstance, error) { +func (c *DefaultApiService) FetchCallNotification(AccountSid string, CallSid string, Sid string) (*ApiV2010AccountCallCallNotificationInstance, error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", CallSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -3665,18 +3740,19 @@ func (c *DefaultApiService) FetchCallNotification(accountSid string, callSid str /* FetchCallRecording Method for FetchCallRecording Fetch an instance of a recording for a call - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource to fetch. - * @param callSid The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource to fetch. - * @param sid The Twilio-provided string that uniquely identifies the Recording resource to fetch. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource to fetch. + * @param CallSid The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the Recording resource to fetch. @return ApiV2010AccountCallCallRecording */ -func (c *DefaultApiService) FetchCallRecording(accountSid string, callSid string, sid string) (*ApiV2010AccountCallCallRecording, error) { +func (c *DefaultApiService) FetchCallRecording(AccountSid string, CallSid string, Sid string) (*ApiV2010AccountCallCallRecording, error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", CallSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -3699,16 +3775,17 @@ func (c *DefaultApiService) FetchCallRecording(accountSid string, callSid string /* FetchConference Method for FetchConference Fetch an instance of a conference - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference resource(s) to fetch. - * @param sid The Twilio-provided string that uniquely identifies the Conference resource to fetch + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference resource(s) to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the Conference resource to fetch @return ApiV2010AccountConference */ -func (c *DefaultApiService) FetchConference(accountSid string, sid string) (*ApiV2010AccountConference, error) { +func (c *DefaultApiService) FetchConference(AccountSid string, Sid string) (*ApiV2010AccountConference, error) { path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -3731,18 +3808,19 @@ func (c *DefaultApiService) FetchConference(accountSid string, sid string) (*Api /* FetchConferenceRecording Method for FetchConferenceRecording Fetch an instance of a recording for a call - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resource to fetch. - * @param conferenceSid The Conference SID that identifies the conference associated with the recording to fetch. - * @param sid The Twilio-provided string that uniquely identifies the Conference Recording resource to fetch. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resource to fetch. + * @param ConferenceSid The Conference SID that identifies the conference associated with the recording to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the Conference Recording resource to fetch. @return ApiV2010AccountConferenceConferenceRecording */ -func (c *DefaultApiService) FetchConferenceRecording(accountSid string, conferenceSid string, sid string) (*ApiV2010AccountConferenceConferenceRecording, error) { +func (c *DefaultApiService) FetchConferenceRecording(AccountSid string, ConferenceSid string, Sid string) (*ApiV2010AccountConferenceConferenceRecording, error) { path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ConferenceSid"+"}", conferenceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"ConferenceSid"+"}", ConferenceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -3765,16 +3843,17 @@ func (c *DefaultApiService) FetchConferenceRecording(accountSid string, conferen /* FetchConnectApp Method for FetchConnectApp Fetch an instance of a connect-app - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resource to fetch. - * @param sid The Twilio-provided string that uniquely identifies the ConnectApp resource to fetch. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the ConnectApp resource to fetch. @return ApiV2010AccountConnectApp */ -func (c *DefaultApiService) FetchConnectApp(accountSid string, sid string) (*ApiV2010AccountConnectApp, error) { +func (c *DefaultApiService) FetchConnectApp(AccountSid string, Sid string) (*ApiV2010AccountConnectApp, error) { path := "/2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -3797,16 +3876,17 @@ func (c *DefaultApiService) FetchConnectApp(accountSid string, sid string) (*Api /* FetchIncomingPhoneNumber Method for FetchIncomingPhoneNumber Fetch an incoming-phone-number belonging to the account used to make the request. - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IncomingPhoneNumber resource to fetch. - * @param sid The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to fetch. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IncomingPhoneNumber resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to fetch. @return ApiV2010AccountIncomingPhoneNumber */ -func (c *DefaultApiService) FetchIncomingPhoneNumber(accountSid string, sid string) (*ApiV2010AccountIncomingPhoneNumber, error) { +func (c *DefaultApiService) FetchIncomingPhoneNumber(AccountSid string, Sid string) (*ApiV2010AccountIncomingPhoneNumber, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -3829,18 +3909,19 @@ func (c *DefaultApiService) FetchIncomingPhoneNumber(accountSid string, sid stri /* FetchIncomingPhoneNumberAssignedAddOn Method for FetchIncomingPhoneNumberAssignedAddOn Fetch an instance of an Add-on installation currently assigned to this Number. - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource to fetch. - * @param resourceSid The SID of the Phone Number to which the Add-on is assigned. - * @param sid The Twilio-provided string that uniquely identifies the resource to fetch. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource to fetch. + * @param ResourceSid The SID of the Phone Number to which the Add-on is assigned. + * @param Sid The Twilio-provided string that uniquely identifies the resource to fetch. @return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn */ -func (c *DefaultApiService) FetchIncomingPhoneNumberAssignedAddOn(accountSid string, resourceSid string, sid string) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn, error) { +func (c *DefaultApiService) FetchIncomingPhoneNumberAssignedAddOn(AccountSid string, ResourceSid string, Sid string) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ResourceSid"+"}", resourceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"ResourceSid"+"}", ResourceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -3863,20 +3944,21 @@ func (c *DefaultApiService) FetchIncomingPhoneNumberAssignedAddOn(accountSid str /* FetchIncomingPhoneNumberAssignedAddOnExtension Method for FetchIncomingPhoneNumberAssignedAddOnExtension Fetch an instance of an Extension for the Assigned Add-on. - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource to fetch. - * @param resourceSid The SID of the Phone Number to which the Add-on is assigned. - * @param assignedAddOnSid The SID that uniquely identifies the assigned Add-on installation. - * @param sid The Twilio-provided string that uniquely identifies the resource to fetch. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource to fetch. + * @param ResourceSid The SID of the Phone Number to which the Add-on is assigned. + * @param AssignedAddOnSid The SID that uniquely identifies the assigned Add-on installation. + * @param Sid The Twilio-provided string that uniquely identifies the resource to fetch. @return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension */ -func (c *DefaultApiService) FetchIncomingPhoneNumberAssignedAddOnExtension(accountSid string, resourceSid string, assignedAddOnSid string, sid string) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension, error) { +func (c *DefaultApiService) FetchIncomingPhoneNumberAssignedAddOnExtension(AccountSid string, ResourceSid string, AssignedAddOnSid string, Sid string) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ResourceSid"+"}", resourceSid, -1) - path = strings.Replace(path, "{"+"AssignedAddOnSid"+"}", assignedAddOnSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"ResourceSid"+"}", ResourceSid, -1) + path = strings.Replace(path, "{"+"AssignedAddOnSid"+"}", AssignedAddOnSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -3898,16 +3980,17 @@ func (c *DefaultApiService) FetchIncomingPhoneNumberAssignedAddOnExtension(accou /* FetchKey Method for FetchKey - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resource to fetch. - * @param sid The Twilio-provided string that uniquely identifies the Key resource to fetch. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the Key resource to fetch. @return ApiV2010AccountKey */ -func (c *DefaultApiService) FetchKey(accountSid string, sid string) (*ApiV2010AccountKey, error) { +func (c *DefaultApiService) FetchKey(AccountSid string, Sid string) (*ApiV2010AccountKey, error) { path := "/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -3930,18 +4013,19 @@ func (c *DefaultApiService) FetchKey(accountSid string, sid string) (*ApiV2010Ac /* FetchMedia Method for FetchMedia Fetch a single media instance belonging to the account used to make the request - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Media resource(s) to fetch. - * @param messageSid The SID of the Message resource that this Media resource belongs to. - * @param sid The Twilio-provided string that uniquely identifies the Media resource to fetch + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Media resource(s) to fetch. + * @param MessageSid The SID of the Message resource that this Media resource belongs to. + * @param Sid The Twilio-provided string that uniquely identifies the Media resource to fetch @return ApiV2010AccountMessageMedia */ -func (c *DefaultApiService) FetchMedia(accountSid string, messageSid string, sid string) (*ApiV2010AccountMessageMedia, error) { +func (c *DefaultApiService) FetchMedia(AccountSid string, MessageSid string, Sid string) (*ApiV2010AccountMessageMedia, error) { path := "/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"MessageSid"+"}", messageSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"MessageSid"+"}", MessageSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -3964,18 +4048,19 @@ func (c *DefaultApiService) FetchMedia(accountSid string, messageSid string, sid /* FetchMember Method for FetchMember Fetch a specific member from the queue - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Member resource(s) to fetch. - * @param queueSid The SID of the Queue in which to find the members to fetch. - * @param callSid The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource(s) to fetch. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Member resource(s) to fetch. + * @param QueueSid The SID of the Queue in which to find the members to fetch. + * @param CallSid The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource(s) to fetch. @return ApiV2010AccountQueueMember */ -func (c *DefaultApiService) FetchMember(accountSid string, queueSid string, callSid string) (*ApiV2010AccountQueueMember, error) { +func (c *DefaultApiService) FetchMember(AccountSid string, QueueSid string, CallSid string) (*ApiV2010AccountQueueMember, error) { path := "/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"QueueSid"+"}", queueSid, -1) - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"QueueSid"+"}", QueueSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", CallSid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -3998,16 +4083,17 @@ func (c *DefaultApiService) FetchMember(accountSid string, queueSid string, call /* FetchMessage Method for FetchMessage Fetch a message belonging to the account used to make the request - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Message resource to fetch. - * @param sid The Twilio-provided string that uniquely identifies the Message resource to fetch. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Message resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the Message resource to fetch. @return ApiV2010AccountMessage */ -func (c *DefaultApiService) FetchMessage(accountSid string, sid string) (*ApiV2010AccountMessage, error) { +func (c *DefaultApiService) FetchMessage(AccountSid string, Sid string) (*ApiV2010AccountMessage, error) { path := "/2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -4030,16 +4116,17 @@ func (c *DefaultApiService) FetchMessage(accountSid string, sid string) (*ApiV20 /* FetchNotification Method for FetchNotification Fetch a notification belonging to the account used to make the request - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Notification resource to fetch. - * @param sid The Twilio-provided string that uniquely identifies the Notification resource to fetch. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Notification resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the Notification resource to fetch. @return ApiV2010AccountNotificationInstance */ -func (c *DefaultApiService) FetchNotification(accountSid string, sid string) (*ApiV2010AccountNotificationInstance, error) { +func (c *DefaultApiService) FetchNotification(AccountSid string, Sid string) (*ApiV2010AccountNotificationInstance, error) { path := "/2010-04-01/Accounts/{AccountSid}/Notifications/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -4062,16 +4149,17 @@ func (c *DefaultApiService) FetchNotification(accountSid string, sid string) (*A /* FetchOutgoingCallerId Method for FetchOutgoingCallerId Fetch an outgoing-caller-id belonging to the account used to make the request - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resource to fetch. - * @param sid The Twilio-provided string that uniquely identifies the OutgoingCallerId resource to fetch. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the OutgoingCallerId resource to fetch. @return ApiV2010AccountOutgoingCallerId */ -func (c *DefaultApiService) FetchOutgoingCallerId(accountSid string, sid string) (*ApiV2010AccountOutgoingCallerId, error) { +func (c *DefaultApiService) FetchOutgoingCallerId(AccountSid string, Sid string) (*ApiV2010AccountOutgoingCallerId, error) { path := "/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -4094,18 +4182,19 @@ func (c *DefaultApiService) FetchOutgoingCallerId(accountSid string, sid string) /* FetchParticipant Method for FetchParticipant Fetch an instance of a participant - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resource to fetch. - * @param conferenceSid The SID of the conference with the participant to fetch. - * @param callSid 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. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resource to fetch. + * @param ConferenceSid The SID of the conference with the participant to fetch. + * @param CallSid 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. @return ApiV2010AccountConferenceParticipant */ -func (c *DefaultApiService) FetchParticipant(accountSid string, conferenceSid string, callSid string) (*ApiV2010AccountConferenceParticipant, error) { +func (c *DefaultApiService) FetchParticipant(AccountSid string, ConferenceSid string, CallSid string) (*ApiV2010AccountConferenceParticipant, error) { path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ConferenceSid"+"}", conferenceSid, -1) - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"ConferenceSid"+"}", ConferenceSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", CallSid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -4128,16 +4217,17 @@ func (c *DefaultApiService) FetchParticipant(accountSid string, conferenceSid st /* FetchQueue Method for FetchQueue Fetch an instance of a queue identified by the QueueSid - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resource to fetch. - * @param sid The Twilio-provided string that uniquely identifies the Queue resource to fetch + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the Queue resource to fetch @return ApiV2010AccountQueue */ -func (c *DefaultApiService) FetchQueue(accountSid string, sid string) (*ApiV2010AccountQueue, error) { +func (c *DefaultApiService) FetchQueue(AccountSid string, Sid string) (*ApiV2010AccountQueue, error) { path := "/2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -4160,16 +4250,17 @@ func (c *DefaultApiService) FetchQueue(accountSid string, sid string) (*ApiV2010 /* FetchRecording Method for FetchRecording Fetch an instance of a recording - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource to fetch. - * @param sid The Twilio-provided string that uniquely identifies the Recording resource to fetch. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the Recording resource to fetch. @return ApiV2010AccountRecording */ -func (c *DefaultApiService) FetchRecording(accountSid string, sid string) (*ApiV2010AccountRecording, error) { +func (c *DefaultApiService) FetchRecording(AccountSid string, Sid string) (*ApiV2010AccountRecording, error) { path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -4192,18 +4283,19 @@ func (c *DefaultApiService) FetchRecording(accountSid string, sid string) (*ApiV /* FetchRecordingAddOnResult Method for FetchRecordingAddOnResult Fetch an instance of an AddOnResult - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult resource to fetch. - * @param referenceSid The SID of the recording to which the result to fetch belongs. - * @param sid The Twilio-provided string that uniquely identifies the Recording AddOnResult resource to fetch. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult resource to fetch. + * @param ReferenceSid The SID of the recording to which the result to fetch belongs. + * @param Sid The Twilio-provided string that uniquely identifies the Recording AddOnResult resource to fetch. @return ApiV2010AccountRecordingRecordingAddOnResult */ -func (c *DefaultApiService) FetchRecordingAddOnResult(accountSid string, referenceSid string, sid string) (*ApiV2010AccountRecordingRecordingAddOnResult, error) { +func (c *DefaultApiService) FetchRecordingAddOnResult(AccountSid string, ReferenceSid string, Sid string) (*ApiV2010AccountRecordingRecordingAddOnResult, error) { path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ReferenceSid"+"}", referenceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"ReferenceSid"+"}", ReferenceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -4226,20 +4318,21 @@ func (c *DefaultApiService) FetchRecordingAddOnResult(accountSid string, referen /* FetchRecordingAddOnResultPayload Method for FetchRecordingAddOnResultPayload Fetch an instance of a result payload - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resource to fetch. - * @param referenceSid The SID of the recording to which the AddOnResult resource that contains the payload to fetch belongs. - * @param addOnResultSid The SID of the AddOnResult to which the payload to fetch belongs. - * @param sid The Twilio-provided string that uniquely identifies the Recording AddOnResult Payload resource to fetch. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resource to fetch. + * @param ReferenceSid The SID of the recording to which the AddOnResult resource that contains the payload to fetch belongs. + * @param AddOnResultSid The SID of the AddOnResult to which the payload to fetch belongs. + * @param Sid The Twilio-provided string that uniquely identifies the Recording AddOnResult Payload resource to fetch. @return ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayload */ -func (c *DefaultApiService) FetchRecordingAddOnResultPayload(accountSid string, referenceSid string, addOnResultSid string, sid string) (*ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayload, error) { +func (c *DefaultApiService) FetchRecordingAddOnResultPayload(AccountSid string, ReferenceSid string, AddOnResultSid string, Sid string) (*ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayload, error) { path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ReferenceSid"+"}", referenceSid, -1) - path = strings.Replace(path, "{"+"AddOnResultSid"+"}", addOnResultSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"ReferenceSid"+"}", ReferenceSid, -1) + path = strings.Replace(path, "{"+"AddOnResultSid"+"}", AddOnResultSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -4261,18 +4354,19 @@ func (c *DefaultApiService) FetchRecordingAddOnResultPayload(accountSid string, /* FetchRecordingTranscription Method for FetchRecordingTranscription - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resource to fetch. - * @param recordingSid The SID of the [Recording](https://www.twilio.com/docs/voice/api/recording) that created the transcription to fetch. - * @param sid The Twilio-provided string that uniquely identifies the Transcription resource to fetch. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resource to fetch. + * @param RecordingSid The SID of the [Recording](https://www.twilio.com/docs/voice/api/recording) that created the transcription to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the Transcription resource to fetch. @return ApiV2010AccountRecordingRecordingTranscription */ -func (c *DefaultApiService) FetchRecordingTranscription(accountSid string, recordingSid string, sid string) (*ApiV2010AccountRecordingRecordingTranscription, error) { +func (c *DefaultApiService) FetchRecordingTranscription(AccountSid string, RecordingSid string, Sid string) (*ApiV2010AccountRecordingRecordingTranscription, error) { path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"RecordingSid"+"}", recordingSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"RecordingSid"+"}", RecordingSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -4295,16 +4389,17 @@ func (c *DefaultApiService) FetchRecordingTranscription(accountSid string, recor /* FetchShortCode Method for FetchShortCode Fetch an instance of a short code - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ShortCode resource(s) to fetch. - * @param sid The Twilio-provided string that uniquely identifies the ShortCode resource to fetch + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ShortCode resource(s) to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the ShortCode resource to fetch @return ApiV2010AccountShortCode */ -func (c *DefaultApiService) FetchShortCode(accountSid string, sid string) (*ApiV2010AccountShortCode, error) { +func (c *DefaultApiService) FetchShortCode(AccountSid string, Sid string) (*ApiV2010AccountShortCode, error) { path := "/2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -4326,16 +4421,17 @@ func (c *DefaultApiService) FetchShortCode(accountSid string, sid string) (*ApiV /* FetchSigningKey Method for FetchSigningKey - * @param accountSid - * @param sid + * @param AccountSid + * @param Sid @return ApiV2010AccountSigningKey */ -func (c *DefaultApiService) FetchSigningKey(accountSid string, sid string) (*ApiV2010AccountSigningKey, error) { +func (c *DefaultApiService) FetchSigningKey(AccountSid string, Sid string) (*ApiV2010AccountSigningKey, error) { path := "/2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -4358,18 +4454,19 @@ func (c *DefaultApiService) FetchSigningKey(accountSid string, sid string) (*Api /* FetchSipAuthCallsCredentialListMapping Method for FetchSipAuthCallsCredentialListMapping Fetch a specific instance of a credential list mapping - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resource to fetch. - * @param domainSid The SID of the SIP domain that contains the resource to fetch. - * @param sid The Twilio-provided string that uniquely identifies the CredentialListMapping resource to fetch. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resource to fetch. + * @param DomainSid The SID of the SIP domain that contains the resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the CredentialListMapping resource to fetch. @return ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping */ -func (c *DefaultApiService) FetchSipAuthCallsCredentialListMapping(accountSid string, domainSid string, sid string) (*ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping, error) { +func (c *DefaultApiService) FetchSipAuthCallsCredentialListMapping(AccountSid string, DomainSid string, Sid string) (*ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -4392,18 +4489,19 @@ func (c *DefaultApiService) FetchSipAuthCallsCredentialListMapping(accountSid st /* FetchSipAuthCallsIpAccessControlListMapping Method for FetchSipAuthCallsIpAccessControlListMapping Fetch a specific instance of an IP Access Control List mapping - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IpAccessControlListMapping resource to fetch. - * @param domainSid The SID of the SIP domain that contains the resource to fetch. - * @param sid The Twilio-provided string that uniquely identifies the IpAccessControlListMapping resource to fetch. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IpAccessControlListMapping resource to fetch. + * @param DomainSid The SID of the SIP domain that contains the resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the IpAccessControlListMapping resource to fetch. @return ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping */ -func (c *DefaultApiService) FetchSipAuthCallsIpAccessControlListMapping(accountSid string, domainSid string, sid string) (*ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping, error) { +func (c *DefaultApiService) FetchSipAuthCallsIpAccessControlListMapping(AccountSid string, DomainSid string, Sid string) (*ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -4426,18 +4524,19 @@ func (c *DefaultApiService) FetchSipAuthCallsIpAccessControlListMapping(accountS /* FetchSipAuthRegistrationsCredentialListMapping Method for FetchSipAuthRegistrationsCredentialListMapping Fetch a specific instance of a credential list mapping - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resource to fetch. - * @param domainSid The SID of the SIP domain that contains the resource to fetch. - * @param sid The Twilio-provided string that uniquely identifies the CredentialListMapping resource to fetch. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resource to fetch. + * @param DomainSid The SID of the SIP domain that contains the resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the CredentialListMapping resource to fetch. @return ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping */ -func (c *DefaultApiService) FetchSipAuthRegistrationsCredentialListMapping(accountSid string, domainSid string, sid string) (*ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping, error) { +func (c *DefaultApiService) FetchSipAuthRegistrationsCredentialListMapping(AccountSid string, DomainSid string, Sid string) (*ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -4460,18 +4559,19 @@ func (c *DefaultApiService) FetchSipAuthRegistrationsCredentialListMapping(accou /* FetchSipCredential Method for FetchSipCredential Fetch a single credential. - * @param accountSid The unique id of the Account that is responsible for this resource. - * @param credentialListSid The unique id that identifies the credential list that contains the desired credential. - * @param sid The unique id that identifies the resource to fetch. + * @param AccountSid The unique id of the Account that is responsible for this resource. + * @param CredentialListSid The unique id that identifies the credential list that contains the desired credential. + * @param Sid The unique id that identifies the resource to fetch. @return ApiV2010AccountSipSipCredentialListSipCredential */ -func (c *DefaultApiService) FetchSipCredential(accountSid string, credentialListSid string, sid string) (*ApiV2010AccountSipSipCredentialListSipCredential, error) { +func (c *DefaultApiService) FetchSipCredential(AccountSid string, CredentialListSid string, Sid string) (*ApiV2010AccountSipSipCredentialListSipCredential, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CredentialListSid"+"}", credentialListSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"CredentialListSid"+"}", CredentialListSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -4494,16 +4594,17 @@ func (c *DefaultApiService) FetchSipCredential(accountSid string, credentialList /* FetchSipCredentialList Method for FetchSipCredentialList Get a Credential List - * @param accountSid The unique id of the Account that is responsible for this resource. - * @param sid The credential list Sid that uniquely identifies this resource + * @param AccountSid The unique id of the Account that is responsible for this resource. + * @param Sid The credential list Sid that uniquely identifies this resource @return ApiV2010AccountSipSipCredentialList */ -func (c *DefaultApiService) FetchSipCredentialList(accountSid string, sid string) (*ApiV2010AccountSipSipCredentialList, error) { +func (c *DefaultApiService) FetchSipCredentialList(AccountSid string, Sid string) (*ApiV2010AccountSipSipCredentialList, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -4526,18 +4627,19 @@ func (c *DefaultApiService) FetchSipCredentialList(accountSid string, sid string /* FetchSipCredentialListMapping Method for FetchSipCredentialListMapping Fetch a single CredentialListMapping resource from an account. - * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. - * @param domainSid A 34 character string that uniquely identifies the SIP Domain that includes the resource to fetch. - * @param sid A 34 character string that uniquely identifies the resource to fetch. + * @param AccountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param DomainSid A 34 character string that uniquely identifies the SIP Domain that includes the resource to fetch. + * @param Sid A 34 character string that uniquely identifies the resource to fetch. @return ApiV2010AccountSipSipDomainSipCredentialListMapping */ -func (c *DefaultApiService) FetchSipCredentialListMapping(accountSid string, domainSid string, sid string) (*ApiV2010AccountSipSipDomainSipCredentialListMapping, error) { +func (c *DefaultApiService) FetchSipCredentialListMapping(AccountSid string, DomainSid string, Sid string) (*ApiV2010AccountSipSipDomainSipCredentialListMapping, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -4560,16 +4662,17 @@ func (c *DefaultApiService) FetchSipCredentialListMapping(accountSid string, dom /* FetchSipDomain Method for FetchSipDomain Fetch an instance of a Domain - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resource to fetch. - * @param sid The Twilio-provided string that uniquely identifies the SipDomain resource to fetch. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the SipDomain resource to fetch. @return ApiV2010AccountSipSipDomain */ -func (c *DefaultApiService) FetchSipDomain(accountSid string, sid string) (*ApiV2010AccountSipSipDomain, error) { +func (c *DefaultApiService) FetchSipDomain(AccountSid string, Sid string) (*ApiV2010AccountSipSipDomain, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -4592,16 +4695,17 @@ func (c *DefaultApiService) FetchSipDomain(accountSid string, sid string) (*ApiV /* FetchSipIpAccessControlList Method for FetchSipIpAccessControlList Fetch a specific instance of an IpAccessControlList - * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. - * @param sid A 34 character string that uniquely identifies the resource to fetch. + * @param AccountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param Sid A 34 character string that uniquely identifies the resource to fetch. @return ApiV2010AccountSipSipIpAccessControlList */ -func (c *DefaultApiService) FetchSipIpAccessControlList(accountSid string, sid string) (*ApiV2010AccountSipSipIpAccessControlList, error) { +func (c *DefaultApiService) FetchSipIpAccessControlList(AccountSid string, Sid string) (*ApiV2010AccountSipSipIpAccessControlList, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -4624,18 +4728,19 @@ func (c *DefaultApiService) FetchSipIpAccessControlList(accountSid string, sid s /* FetchSipIpAccessControlListMapping Method for FetchSipIpAccessControlListMapping Fetch an IpAccessControlListMapping resource. - * @param accountSid The unique id of the Account that is responsible for this resource. - * @param domainSid A 34 character string that uniquely identifies the SIP domain. - * @param sid A 34 character string that uniquely identifies the resource to fetch. + * @param AccountSid The unique id of the Account that is responsible for this resource. + * @param DomainSid A 34 character string that uniquely identifies the SIP domain. + * @param Sid A 34 character string that uniquely identifies the resource to fetch. @return ApiV2010AccountSipSipDomainSipIpAccessControlListMapping */ -func (c *DefaultApiService) FetchSipIpAccessControlListMapping(accountSid string, domainSid string, sid string) (*ApiV2010AccountSipSipDomainSipIpAccessControlListMapping, error) { +func (c *DefaultApiService) FetchSipIpAccessControlListMapping(AccountSid string, DomainSid string, Sid string) (*ApiV2010AccountSipSipDomainSipIpAccessControlListMapping, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -4658,18 +4763,19 @@ func (c *DefaultApiService) FetchSipIpAccessControlListMapping(accountSid string /* FetchSipIpAddress Method for FetchSipIpAddress Read one IpAddress resource. - * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. - * @param ipAccessControlListSid The IpAccessControlList Sid that identifies the IpAddress resources to fetch. - * @param sid A 34 character string that uniquely identifies the IpAddress resource to fetch. + * @param AccountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param IpAccessControlListSid The IpAccessControlList Sid that identifies the IpAddress resources to fetch. + * @param Sid A 34 character string that uniquely identifies the IpAddress resource to fetch. @return ApiV2010AccountSipSipIpAccessControlListSipIpAddress */ -func (c *DefaultApiService) FetchSipIpAddress(accountSid string, ipAccessControlListSid string, sid string) (*ApiV2010AccountSipSipIpAccessControlListSipIpAddress, error) { +func (c *DefaultApiService) FetchSipIpAddress(AccountSid string, IpAccessControlListSid string, Sid string) (*ApiV2010AccountSipSipIpAccessControlListSipIpAddress, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"IpAccessControlListSid"+"}", ipAccessControlListSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"IpAccessControlListSid"+"}", IpAccessControlListSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -4692,16 +4798,17 @@ func (c *DefaultApiService) FetchSipIpAddress(accountSid string, ipAccessControl /* FetchTranscription Method for FetchTranscription Fetch an instance of a Transcription - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resource to fetch. - * @param sid The Twilio-provided string that uniquely identifies the Transcription resource to fetch. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the Transcription resource to fetch. @return ApiV2010AccountTranscription */ -func (c *DefaultApiService) FetchTranscription(accountSid string, sid string) (*ApiV2010AccountTranscription, error) { +func (c *DefaultApiService) FetchTranscription(AccountSid string, Sid string) (*ApiV2010AccountTranscription, error) { path := "/2010-04-01/Accounts/{AccountSid}/Transcriptions/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -4724,16 +4831,17 @@ func (c *DefaultApiService) FetchTranscription(accountSid string, sid string) (* /* FetchUsageTrigger Method for FetchUsageTrigger Fetch and instance of a usage-trigger - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resource to fetch. - * @param sid The Twilio-provided string that uniquely identifies the UsageTrigger resource to fetch. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the UsageTrigger resource to fetch. @return ApiV2010AccountUsageUsageTrigger */ -func (c *DefaultApiService) FetchUsageTrigger(accountSid string, sid string) (*ApiV2010AccountUsageUsageTrigger, error) { +func (c *DefaultApiService) FetchUsageTrigger(AccountSid string, Sid string) (*ApiV2010AccountUsageUsageTrigger, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -4771,17 +4879,18 @@ Retrieves a collection of Accounts belonging to the account used to make the req func (c *DefaultApiService) ListAccount(params *ListAccountParams) (*ApiV2010AccountReadResponse, error) { path := "/2010-04-01/Accounts.json" + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -4809,7 +4918,7 @@ type ListAddressParams struct { /* ListAddress Method for ListAddress - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to read. * @param optional nil or *ListAddressOpts - Optional Parameters: * @param "CustomerName" (string) - The `customer_name` of the Address resources to read. * @param "FriendlyName" (string) - The string that identifies the Address resources to read. @@ -4817,24 +4926,25 @@ ListAddress Method for ListAddress * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountAddressReadResponse */ -func (c *DefaultApiService) ListAddress(accountSid string, params *ListAddressParams) (*ApiV2010AccountAddressReadResponse, error) { +func (c *DefaultApiService) ListAddress(AccountSid string, params *ListAddressParams) (*ApiV2010AccountAddressReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Addresses.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.CustomerName != nil { - data.Set("CustomerName", *params.CustomerName) + data.Set("CustomerName", *params.CustomerName) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.IsoCountry != nil { - data.Set("IsoCountry", *params.IsoCountry) + data.Set("IsoCountry", *params.IsoCountry) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -4861,24 +4971,25 @@ type ListApplicationParams struct { /* ListApplication Method for ListApplication Retrieve a list of applications representing an application within the requesting account - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resources to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resources to read. * @param optional nil or *ListApplicationOpts - Optional Parameters: * @param "FriendlyName" (string) - The string that identifies the Application resources to read. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountApplicationReadResponse */ -func (c *DefaultApiService) ListApplication(accountSid string, params *ListApplicationParams) (*ApiV2010AccountApplicationReadResponse, error) { +func (c *DefaultApiService) ListApplication(AccountSid string, params *ListApplicationParams) (*ApiV2010AccountApplicationReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Applications.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -4904,20 +5015,21 @@ type ListAuthorizedConnectAppParams struct { /* ListAuthorizedConnectApp Method for ListAuthorizedConnectApp Retrieve a list of authorized-connect-apps belonging to the account used to make the request - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the AuthorizedConnectApp resources to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the AuthorizedConnectApp resources to read. * @param optional nil or *ListAuthorizedConnectAppOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountAuthorizedConnectAppReadResponse */ -func (c *DefaultApiService) ListAuthorizedConnectApp(accountSid string, params *ListAuthorizedConnectAppParams) (*ApiV2010AccountAuthorizedConnectAppReadResponse, error) { +func (c *DefaultApiService) ListAuthorizedConnectApp(AccountSid string, params *ListAuthorizedConnectAppParams) (*ApiV2010AccountAuthorizedConnectAppReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -4942,20 +5054,21 @@ type ListAvailablePhoneNumberCountryParams struct { /* ListAvailablePhoneNumberCountry Method for ListAvailablePhoneNumberCountry - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the available phone number Country resources. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the available phone number Country resources. * @param optional nil or *ListAvailablePhoneNumberCountryOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountAvailablePhoneNumberCountryReadResponse */ -func (c *DefaultApiService) ListAvailablePhoneNumberCountry(accountSid string, params *ListAvailablePhoneNumberCountryParams) (*ApiV2010AccountAvailablePhoneNumberCountryReadResponse, error) { +func (c *DefaultApiService) ListAvailablePhoneNumberCountry(AccountSid string, params *ListAvailablePhoneNumberCountryParams) (*ApiV2010AccountAvailablePhoneNumberCountryReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -4998,8 +5111,8 @@ type ListAvailablePhoneNumberLocalParams struct { /* ListAvailablePhoneNumberLocal Method for ListAvailablePhoneNumberLocal - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. - * @param countryCode 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. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. + * @param CountryCode 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. * @param optional nil or *ListAvailablePhoneNumberLocalOpts - Optional Parameters: * @param "AreaCode" (int32) - The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. * @param "Contains" (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. @@ -5022,70 +5135,71 @@ ListAvailablePhoneNumberLocal Method for ListAvailablePhoneNumberLocal * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse */ -func (c *DefaultApiService) ListAvailablePhoneNumberLocal(accountSid string, countryCode string, params *ListAvailablePhoneNumberLocalParams) (*ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse, error) { +func (c *DefaultApiService) ListAvailablePhoneNumberLocal(AccountSid string, CountryCode string, params *ListAvailablePhoneNumberLocalParams) (*ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Local.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CountryCode"+"}", countryCode, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"CountryCode"+"}", CountryCode, -1) + data := url.Values{} headers := 0 if params != nil && params.AreaCode != nil { - data.Set("AreaCode", string(*params.AreaCode)) + data.Set("AreaCode", fmt.Sprint(*params.AreaCode)) } if params != nil && params.Contains != nil { - data.Set("Contains", *params.Contains) + data.Set("Contains", *params.Contains) } if params != nil && params.SmsEnabled != nil { - data.Set("SmsEnabled", string(*params.SmsEnabled)) + data.Set("SmsEnabled", fmt.Sprint(*params.SmsEnabled)) } if params != nil && params.MmsEnabled != nil { - data.Set("MmsEnabled", string(*params.MmsEnabled)) + data.Set("MmsEnabled", fmt.Sprint(*params.MmsEnabled)) } if params != nil && params.VoiceEnabled != nil { - data.Set("VoiceEnabled", string(*params.VoiceEnabled)) + data.Set("VoiceEnabled", fmt.Sprint(*params.VoiceEnabled)) } if params != nil && params.ExcludeAllAddressRequired != nil { - data.Set("ExcludeAllAddressRequired", string(*params.ExcludeAllAddressRequired)) + data.Set("ExcludeAllAddressRequired", fmt.Sprint(*params.ExcludeAllAddressRequired)) } if params != nil && params.ExcludeLocalAddressRequired != nil { - data.Set("ExcludeLocalAddressRequired", string(*params.ExcludeLocalAddressRequired)) + data.Set("ExcludeLocalAddressRequired", fmt.Sprint(*params.ExcludeLocalAddressRequired)) } if params != nil && params.ExcludeForeignAddressRequired != nil { - data.Set("ExcludeForeignAddressRequired", string(*params.ExcludeForeignAddressRequired)) + data.Set("ExcludeForeignAddressRequired", fmt.Sprint(*params.ExcludeForeignAddressRequired)) } if params != nil && params.Beta != nil { - data.Set("Beta", string(*params.Beta)) + data.Set("Beta", fmt.Sprint(*params.Beta)) } if params != nil && params.NearNumber != nil { - data.Set("NearNumber", *params.NearNumber) + data.Set("NearNumber", *params.NearNumber) } if params != nil && params.NearLatLong != nil { - data.Set("NearLatLong", *params.NearLatLong) + data.Set("NearLatLong", *params.NearLatLong) } if params != nil && params.Distance != nil { - data.Set("Distance", string(*params.Distance)) + data.Set("Distance", fmt.Sprint(*params.Distance)) } if params != nil && params.InPostalCode != nil { - data.Set("InPostalCode", *params.InPostalCode) + data.Set("InPostalCode", *params.InPostalCode) } if params != nil && params.InRegion != nil { - data.Set("InRegion", *params.InRegion) + data.Set("InRegion", *params.InRegion) } if params != nil && params.InRateCenter != nil { - data.Set("InRateCenter", *params.InRateCenter) + data.Set("InRateCenter", *params.InRateCenter) } if params != nil && params.InLata != nil { - data.Set("InLata", *params.InLata) + data.Set("InLata", *params.InLata) } if params != nil && params.InLocality != nil { - data.Set("InLocality", *params.InLocality) + data.Set("InLocality", *params.InLocality) } if params != nil && params.FaxEnabled != nil { - data.Set("FaxEnabled", string(*params.FaxEnabled)) + data.Set("FaxEnabled", fmt.Sprint(*params.FaxEnabled)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -5128,8 +5242,8 @@ type ListAvailablePhoneNumberMachineToMachineParams struct { /* ListAvailablePhoneNumberMachineToMachine Method for ListAvailablePhoneNumberMachineToMachine - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. - * @param countryCode 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. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. + * @param CountryCode 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. * @param optional nil or *ListAvailablePhoneNumberMachineToMachineOpts - Optional Parameters: * @param "AreaCode" (int32) - The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. * @param "Contains" (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. @@ -5152,70 +5266,71 @@ ListAvailablePhoneNumberMachineToMachine Method for ListAvailablePhoneNumberMach * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse */ -func (c *DefaultApiService) ListAvailablePhoneNumberMachineToMachine(accountSid string, countryCode string, params *ListAvailablePhoneNumberMachineToMachineParams) (*ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse, error) { +func (c *DefaultApiService) ListAvailablePhoneNumberMachineToMachine(AccountSid string, CountryCode string, params *ListAvailablePhoneNumberMachineToMachineParams) (*ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/MachineToMachine.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CountryCode"+"}", countryCode, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"CountryCode"+"}", CountryCode, -1) + data := url.Values{} headers := 0 if params != nil && params.AreaCode != nil { - data.Set("AreaCode", string(*params.AreaCode)) + data.Set("AreaCode", fmt.Sprint(*params.AreaCode)) } if params != nil && params.Contains != nil { - data.Set("Contains", *params.Contains) + data.Set("Contains", *params.Contains) } if params != nil && params.SmsEnabled != nil { - data.Set("SmsEnabled", string(*params.SmsEnabled)) + data.Set("SmsEnabled", fmt.Sprint(*params.SmsEnabled)) } if params != nil && params.MmsEnabled != nil { - data.Set("MmsEnabled", string(*params.MmsEnabled)) + data.Set("MmsEnabled", fmt.Sprint(*params.MmsEnabled)) } if params != nil && params.VoiceEnabled != nil { - data.Set("VoiceEnabled", string(*params.VoiceEnabled)) + data.Set("VoiceEnabled", fmt.Sprint(*params.VoiceEnabled)) } if params != nil && params.ExcludeAllAddressRequired != nil { - data.Set("ExcludeAllAddressRequired", string(*params.ExcludeAllAddressRequired)) + data.Set("ExcludeAllAddressRequired", fmt.Sprint(*params.ExcludeAllAddressRequired)) } if params != nil && params.ExcludeLocalAddressRequired != nil { - data.Set("ExcludeLocalAddressRequired", string(*params.ExcludeLocalAddressRequired)) + data.Set("ExcludeLocalAddressRequired", fmt.Sprint(*params.ExcludeLocalAddressRequired)) } if params != nil && params.ExcludeForeignAddressRequired != nil { - data.Set("ExcludeForeignAddressRequired", string(*params.ExcludeForeignAddressRequired)) + data.Set("ExcludeForeignAddressRequired", fmt.Sprint(*params.ExcludeForeignAddressRequired)) } if params != nil && params.Beta != nil { - data.Set("Beta", string(*params.Beta)) + data.Set("Beta", fmt.Sprint(*params.Beta)) } if params != nil && params.NearNumber != nil { - data.Set("NearNumber", *params.NearNumber) + data.Set("NearNumber", *params.NearNumber) } if params != nil && params.NearLatLong != nil { - data.Set("NearLatLong", *params.NearLatLong) + data.Set("NearLatLong", *params.NearLatLong) } if params != nil && params.Distance != nil { - data.Set("Distance", string(*params.Distance)) + data.Set("Distance", fmt.Sprint(*params.Distance)) } if params != nil && params.InPostalCode != nil { - data.Set("InPostalCode", *params.InPostalCode) + data.Set("InPostalCode", *params.InPostalCode) } if params != nil && params.InRegion != nil { - data.Set("InRegion", *params.InRegion) + data.Set("InRegion", *params.InRegion) } if params != nil && params.InRateCenter != nil { - data.Set("InRateCenter", *params.InRateCenter) + data.Set("InRateCenter", *params.InRateCenter) } if params != nil && params.InLata != nil { - data.Set("InLata", *params.InLata) + data.Set("InLata", *params.InLata) } if params != nil && params.InLocality != nil { - data.Set("InLocality", *params.InLocality) + data.Set("InLocality", *params.InLocality) } if params != nil && params.FaxEnabled != nil { - data.Set("FaxEnabled", string(*params.FaxEnabled)) + data.Set("FaxEnabled", fmt.Sprint(*params.FaxEnabled)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -5258,8 +5373,8 @@ type ListAvailablePhoneNumberMobileParams struct { /* ListAvailablePhoneNumberMobile Method for ListAvailablePhoneNumberMobile - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. - * @param countryCode 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. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. + * @param CountryCode 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. * @param optional nil or *ListAvailablePhoneNumberMobileOpts - Optional Parameters: * @param "AreaCode" (int32) - The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. * @param "Contains" (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. @@ -5282,70 +5397,71 @@ ListAvailablePhoneNumberMobile Method for ListAvailablePhoneNumberMobile * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse */ -func (c *DefaultApiService) ListAvailablePhoneNumberMobile(accountSid string, countryCode string, params *ListAvailablePhoneNumberMobileParams) (*ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse, error) { +func (c *DefaultApiService) ListAvailablePhoneNumberMobile(AccountSid string, CountryCode string, params *ListAvailablePhoneNumberMobileParams) (*ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Mobile.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CountryCode"+"}", countryCode, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"CountryCode"+"}", CountryCode, -1) + data := url.Values{} headers := 0 if params != nil && params.AreaCode != nil { - data.Set("AreaCode", string(*params.AreaCode)) + data.Set("AreaCode", fmt.Sprint(*params.AreaCode)) } if params != nil && params.Contains != nil { - data.Set("Contains", *params.Contains) + data.Set("Contains", *params.Contains) } if params != nil && params.SmsEnabled != nil { - data.Set("SmsEnabled", string(*params.SmsEnabled)) + data.Set("SmsEnabled", fmt.Sprint(*params.SmsEnabled)) } if params != nil && params.MmsEnabled != nil { - data.Set("MmsEnabled", string(*params.MmsEnabled)) + data.Set("MmsEnabled", fmt.Sprint(*params.MmsEnabled)) } if params != nil && params.VoiceEnabled != nil { - data.Set("VoiceEnabled", string(*params.VoiceEnabled)) + data.Set("VoiceEnabled", fmt.Sprint(*params.VoiceEnabled)) } if params != nil && params.ExcludeAllAddressRequired != nil { - data.Set("ExcludeAllAddressRequired", string(*params.ExcludeAllAddressRequired)) + data.Set("ExcludeAllAddressRequired", fmt.Sprint(*params.ExcludeAllAddressRequired)) } if params != nil && params.ExcludeLocalAddressRequired != nil { - data.Set("ExcludeLocalAddressRequired", string(*params.ExcludeLocalAddressRequired)) + data.Set("ExcludeLocalAddressRequired", fmt.Sprint(*params.ExcludeLocalAddressRequired)) } if params != nil && params.ExcludeForeignAddressRequired != nil { - data.Set("ExcludeForeignAddressRequired", string(*params.ExcludeForeignAddressRequired)) + data.Set("ExcludeForeignAddressRequired", fmt.Sprint(*params.ExcludeForeignAddressRequired)) } if params != nil && params.Beta != nil { - data.Set("Beta", string(*params.Beta)) + data.Set("Beta", fmt.Sprint(*params.Beta)) } if params != nil && params.NearNumber != nil { - data.Set("NearNumber", *params.NearNumber) + data.Set("NearNumber", *params.NearNumber) } if params != nil && params.NearLatLong != nil { - data.Set("NearLatLong", *params.NearLatLong) + data.Set("NearLatLong", *params.NearLatLong) } if params != nil && params.Distance != nil { - data.Set("Distance", string(*params.Distance)) + data.Set("Distance", fmt.Sprint(*params.Distance)) } if params != nil && params.InPostalCode != nil { - data.Set("InPostalCode", *params.InPostalCode) + data.Set("InPostalCode", *params.InPostalCode) } if params != nil && params.InRegion != nil { - data.Set("InRegion", *params.InRegion) + data.Set("InRegion", *params.InRegion) } if params != nil && params.InRateCenter != nil { - data.Set("InRateCenter", *params.InRateCenter) + data.Set("InRateCenter", *params.InRateCenter) } if params != nil && params.InLata != nil { - data.Set("InLata", *params.InLata) + data.Set("InLata", *params.InLata) } if params != nil && params.InLocality != nil { - data.Set("InLocality", *params.InLocality) + data.Set("InLocality", *params.InLocality) } if params != nil && params.FaxEnabled != nil { - data.Set("FaxEnabled", string(*params.FaxEnabled)) + data.Set("FaxEnabled", fmt.Sprint(*params.FaxEnabled)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -5388,8 +5504,8 @@ type ListAvailablePhoneNumberNationalParams struct { /* ListAvailablePhoneNumberNational Method for ListAvailablePhoneNumberNational - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. - * @param countryCode 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. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. + * @param CountryCode 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. * @param optional nil or *ListAvailablePhoneNumberNationalOpts - Optional Parameters: * @param "AreaCode" (int32) - The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. * @param "Contains" (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. @@ -5412,70 +5528,71 @@ ListAvailablePhoneNumberNational Method for ListAvailablePhoneNumberNational * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse */ -func (c *DefaultApiService) ListAvailablePhoneNumberNational(accountSid string, countryCode string, params *ListAvailablePhoneNumberNationalParams) (*ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse, error) { +func (c *DefaultApiService) ListAvailablePhoneNumberNational(AccountSid string, CountryCode string, params *ListAvailablePhoneNumberNationalParams) (*ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/National.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CountryCode"+"}", countryCode, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"CountryCode"+"}", CountryCode, -1) + data := url.Values{} headers := 0 if params != nil && params.AreaCode != nil { - data.Set("AreaCode", string(*params.AreaCode)) + data.Set("AreaCode", fmt.Sprint(*params.AreaCode)) } if params != nil && params.Contains != nil { - data.Set("Contains", *params.Contains) + data.Set("Contains", *params.Contains) } if params != nil && params.SmsEnabled != nil { - data.Set("SmsEnabled", string(*params.SmsEnabled)) + data.Set("SmsEnabled", fmt.Sprint(*params.SmsEnabled)) } if params != nil && params.MmsEnabled != nil { - data.Set("MmsEnabled", string(*params.MmsEnabled)) + data.Set("MmsEnabled", fmt.Sprint(*params.MmsEnabled)) } if params != nil && params.VoiceEnabled != nil { - data.Set("VoiceEnabled", string(*params.VoiceEnabled)) + data.Set("VoiceEnabled", fmt.Sprint(*params.VoiceEnabled)) } if params != nil && params.ExcludeAllAddressRequired != nil { - data.Set("ExcludeAllAddressRequired", string(*params.ExcludeAllAddressRequired)) + data.Set("ExcludeAllAddressRequired", fmt.Sprint(*params.ExcludeAllAddressRequired)) } if params != nil && params.ExcludeLocalAddressRequired != nil { - data.Set("ExcludeLocalAddressRequired", string(*params.ExcludeLocalAddressRequired)) + data.Set("ExcludeLocalAddressRequired", fmt.Sprint(*params.ExcludeLocalAddressRequired)) } if params != nil && params.ExcludeForeignAddressRequired != nil { - data.Set("ExcludeForeignAddressRequired", string(*params.ExcludeForeignAddressRequired)) + data.Set("ExcludeForeignAddressRequired", fmt.Sprint(*params.ExcludeForeignAddressRequired)) } if params != nil && params.Beta != nil { - data.Set("Beta", string(*params.Beta)) + data.Set("Beta", fmt.Sprint(*params.Beta)) } if params != nil && params.NearNumber != nil { - data.Set("NearNumber", *params.NearNumber) + data.Set("NearNumber", *params.NearNumber) } if params != nil && params.NearLatLong != nil { - data.Set("NearLatLong", *params.NearLatLong) + data.Set("NearLatLong", *params.NearLatLong) } if params != nil && params.Distance != nil { - data.Set("Distance", string(*params.Distance)) + data.Set("Distance", fmt.Sprint(*params.Distance)) } if params != nil && params.InPostalCode != nil { - data.Set("InPostalCode", *params.InPostalCode) + data.Set("InPostalCode", *params.InPostalCode) } if params != nil && params.InRegion != nil { - data.Set("InRegion", *params.InRegion) + data.Set("InRegion", *params.InRegion) } if params != nil && params.InRateCenter != nil { - data.Set("InRateCenter", *params.InRateCenter) + data.Set("InRateCenter", *params.InRateCenter) } if params != nil && params.InLata != nil { - data.Set("InLata", *params.InLata) + data.Set("InLata", *params.InLata) } if params != nil && params.InLocality != nil { - data.Set("InLocality", *params.InLocality) + data.Set("InLocality", *params.InLocality) } if params != nil && params.FaxEnabled != nil { - data.Set("FaxEnabled", string(*params.FaxEnabled)) + data.Set("FaxEnabled", fmt.Sprint(*params.FaxEnabled)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -5518,8 +5635,8 @@ type ListAvailablePhoneNumberSharedCostParams struct { /* ListAvailablePhoneNumberSharedCost Method for ListAvailablePhoneNumberSharedCost - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. - * @param countryCode 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. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. + * @param CountryCode 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. * @param optional nil or *ListAvailablePhoneNumberSharedCostOpts - Optional Parameters: * @param "AreaCode" (int32) - The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. * @param "Contains" (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. @@ -5542,70 +5659,71 @@ ListAvailablePhoneNumberSharedCost Method for ListAvailablePhoneNumberSharedCost * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse */ -func (c *DefaultApiService) ListAvailablePhoneNumberSharedCost(accountSid string, countryCode string, params *ListAvailablePhoneNumberSharedCostParams) (*ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse, error) { +func (c *DefaultApiService) ListAvailablePhoneNumberSharedCost(AccountSid string, CountryCode string, params *ListAvailablePhoneNumberSharedCostParams) (*ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/SharedCost.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CountryCode"+"}", countryCode, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"CountryCode"+"}", CountryCode, -1) + data := url.Values{} headers := 0 if params != nil && params.AreaCode != nil { - data.Set("AreaCode", string(*params.AreaCode)) + data.Set("AreaCode", fmt.Sprint(*params.AreaCode)) } if params != nil && params.Contains != nil { - data.Set("Contains", *params.Contains) + data.Set("Contains", *params.Contains) } if params != nil && params.SmsEnabled != nil { - data.Set("SmsEnabled", string(*params.SmsEnabled)) + data.Set("SmsEnabled", fmt.Sprint(*params.SmsEnabled)) } if params != nil && params.MmsEnabled != nil { - data.Set("MmsEnabled", string(*params.MmsEnabled)) + data.Set("MmsEnabled", fmt.Sprint(*params.MmsEnabled)) } if params != nil && params.VoiceEnabled != nil { - data.Set("VoiceEnabled", string(*params.VoiceEnabled)) + data.Set("VoiceEnabled", fmt.Sprint(*params.VoiceEnabled)) } if params != nil && params.ExcludeAllAddressRequired != nil { - data.Set("ExcludeAllAddressRequired", string(*params.ExcludeAllAddressRequired)) + data.Set("ExcludeAllAddressRequired", fmt.Sprint(*params.ExcludeAllAddressRequired)) } if params != nil && params.ExcludeLocalAddressRequired != nil { - data.Set("ExcludeLocalAddressRequired", string(*params.ExcludeLocalAddressRequired)) + data.Set("ExcludeLocalAddressRequired", fmt.Sprint(*params.ExcludeLocalAddressRequired)) } if params != nil && params.ExcludeForeignAddressRequired != nil { - data.Set("ExcludeForeignAddressRequired", string(*params.ExcludeForeignAddressRequired)) + data.Set("ExcludeForeignAddressRequired", fmt.Sprint(*params.ExcludeForeignAddressRequired)) } if params != nil && params.Beta != nil { - data.Set("Beta", string(*params.Beta)) + data.Set("Beta", fmt.Sprint(*params.Beta)) } if params != nil && params.NearNumber != nil { - data.Set("NearNumber", *params.NearNumber) + data.Set("NearNumber", *params.NearNumber) } if params != nil && params.NearLatLong != nil { - data.Set("NearLatLong", *params.NearLatLong) + data.Set("NearLatLong", *params.NearLatLong) } if params != nil && params.Distance != nil { - data.Set("Distance", string(*params.Distance)) + data.Set("Distance", fmt.Sprint(*params.Distance)) } if params != nil && params.InPostalCode != nil { - data.Set("InPostalCode", *params.InPostalCode) + data.Set("InPostalCode", *params.InPostalCode) } if params != nil && params.InRegion != nil { - data.Set("InRegion", *params.InRegion) + data.Set("InRegion", *params.InRegion) } if params != nil && params.InRateCenter != nil { - data.Set("InRateCenter", *params.InRateCenter) + data.Set("InRateCenter", *params.InRateCenter) } if params != nil && params.InLata != nil { - data.Set("InLata", *params.InLata) + data.Set("InLata", *params.InLata) } if params != nil && params.InLocality != nil { - data.Set("InLocality", *params.InLocality) + data.Set("InLocality", *params.InLocality) } if params != nil && params.FaxEnabled != nil { - data.Set("FaxEnabled", string(*params.FaxEnabled)) + data.Set("FaxEnabled", fmt.Sprint(*params.FaxEnabled)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -5648,8 +5766,8 @@ type ListAvailablePhoneNumberTollFreeParams struct { /* ListAvailablePhoneNumberTollFree Method for ListAvailablePhoneNumberTollFree - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. - * @param countryCode 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. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. + * @param CountryCode 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. * @param optional nil or *ListAvailablePhoneNumberTollFreeOpts - Optional Parameters: * @param "AreaCode" (int32) - The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. * @param "Contains" (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. @@ -5672,70 +5790,71 @@ ListAvailablePhoneNumberTollFree Method for ListAvailablePhoneNumberTollFree * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse */ -func (c *DefaultApiService) ListAvailablePhoneNumberTollFree(accountSid string, countryCode string, params *ListAvailablePhoneNumberTollFreeParams) (*ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse, error) { +func (c *DefaultApiService) ListAvailablePhoneNumberTollFree(AccountSid string, CountryCode string, params *ListAvailablePhoneNumberTollFreeParams) (*ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/TollFree.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CountryCode"+"}", countryCode, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"CountryCode"+"}", CountryCode, -1) + data := url.Values{} headers := 0 if params != nil && params.AreaCode != nil { - data.Set("AreaCode", string(*params.AreaCode)) + data.Set("AreaCode", fmt.Sprint(*params.AreaCode)) } if params != nil && params.Contains != nil { - data.Set("Contains", *params.Contains) + data.Set("Contains", *params.Contains) } if params != nil && params.SmsEnabled != nil { - data.Set("SmsEnabled", string(*params.SmsEnabled)) + data.Set("SmsEnabled", fmt.Sprint(*params.SmsEnabled)) } if params != nil && params.MmsEnabled != nil { - data.Set("MmsEnabled", string(*params.MmsEnabled)) + data.Set("MmsEnabled", fmt.Sprint(*params.MmsEnabled)) } if params != nil && params.VoiceEnabled != nil { - data.Set("VoiceEnabled", string(*params.VoiceEnabled)) + data.Set("VoiceEnabled", fmt.Sprint(*params.VoiceEnabled)) } if params != nil && params.ExcludeAllAddressRequired != nil { - data.Set("ExcludeAllAddressRequired", string(*params.ExcludeAllAddressRequired)) + data.Set("ExcludeAllAddressRequired", fmt.Sprint(*params.ExcludeAllAddressRequired)) } if params != nil && params.ExcludeLocalAddressRequired != nil { - data.Set("ExcludeLocalAddressRequired", string(*params.ExcludeLocalAddressRequired)) + data.Set("ExcludeLocalAddressRequired", fmt.Sprint(*params.ExcludeLocalAddressRequired)) } if params != nil && params.ExcludeForeignAddressRequired != nil { - data.Set("ExcludeForeignAddressRequired", string(*params.ExcludeForeignAddressRequired)) + data.Set("ExcludeForeignAddressRequired", fmt.Sprint(*params.ExcludeForeignAddressRequired)) } if params != nil && params.Beta != nil { - data.Set("Beta", string(*params.Beta)) + data.Set("Beta", fmt.Sprint(*params.Beta)) } if params != nil && params.NearNumber != nil { - data.Set("NearNumber", *params.NearNumber) + data.Set("NearNumber", *params.NearNumber) } if params != nil && params.NearLatLong != nil { - data.Set("NearLatLong", *params.NearLatLong) + data.Set("NearLatLong", *params.NearLatLong) } if params != nil && params.Distance != nil { - data.Set("Distance", string(*params.Distance)) + data.Set("Distance", fmt.Sprint(*params.Distance)) } if params != nil && params.InPostalCode != nil { - data.Set("InPostalCode", *params.InPostalCode) + data.Set("InPostalCode", *params.InPostalCode) } if params != nil && params.InRegion != nil { - data.Set("InRegion", *params.InRegion) + data.Set("InRegion", *params.InRegion) } if params != nil && params.InRateCenter != nil { - data.Set("InRateCenter", *params.InRateCenter) + data.Set("InRateCenter", *params.InRateCenter) } if params != nil && params.InLata != nil { - data.Set("InLata", *params.InLata) + data.Set("InLata", *params.InLata) } if params != nil && params.InLocality != nil { - data.Set("InLocality", *params.InLocality) + data.Set("InLocality", *params.InLocality) } if params != nil && params.FaxEnabled != nil { - data.Set("FaxEnabled", string(*params.FaxEnabled)) + data.Set("FaxEnabled", fmt.Sprint(*params.FaxEnabled)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -5778,8 +5897,8 @@ type ListAvailablePhoneNumberVoipParams struct { /* ListAvailablePhoneNumberVoip Method for ListAvailablePhoneNumberVoip - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. - * @param countryCode 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. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. + * @param CountryCode 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. * @param optional nil or *ListAvailablePhoneNumberVoipOpts - Optional Parameters: * @param "AreaCode" (int32) - The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. * @param "Contains" (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. @@ -5802,70 +5921,71 @@ ListAvailablePhoneNumberVoip Method for ListAvailablePhoneNumberVoip * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse */ -func (c *DefaultApiService) ListAvailablePhoneNumberVoip(accountSid string, countryCode string, params *ListAvailablePhoneNumberVoipParams) (*ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse, error) { +func (c *DefaultApiService) ListAvailablePhoneNumberVoip(AccountSid string, CountryCode string, params *ListAvailablePhoneNumberVoipParams) (*ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Voip.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CountryCode"+"}", countryCode, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"CountryCode"+"}", CountryCode, -1) + data := url.Values{} headers := 0 if params != nil && params.AreaCode != nil { - data.Set("AreaCode", string(*params.AreaCode)) + data.Set("AreaCode", fmt.Sprint(*params.AreaCode)) } if params != nil && params.Contains != nil { - data.Set("Contains", *params.Contains) + data.Set("Contains", *params.Contains) } if params != nil && params.SmsEnabled != nil { - data.Set("SmsEnabled", string(*params.SmsEnabled)) + data.Set("SmsEnabled", fmt.Sprint(*params.SmsEnabled)) } if params != nil && params.MmsEnabled != nil { - data.Set("MmsEnabled", string(*params.MmsEnabled)) + data.Set("MmsEnabled", fmt.Sprint(*params.MmsEnabled)) } if params != nil && params.VoiceEnabled != nil { - data.Set("VoiceEnabled", string(*params.VoiceEnabled)) + data.Set("VoiceEnabled", fmt.Sprint(*params.VoiceEnabled)) } if params != nil && params.ExcludeAllAddressRequired != nil { - data.Set("ExcludeAllAddressRequired", string(*params.ExcludeAllAddressRequired)) + data.Set("ExcludeAllAddressRequired", fmt.Sprint(*params.ExcludeAllAddressRequired)) } if params != nil && params.ExcludeLocalAddressRequired != nil { - data.Set("ExcludeLocalAddressRequired", string(*params.ExcludeLocalAddressRequired)) + data.Set("ExcludeLocalAddressRequired", fmt.Sprint(*params.ExcludeLocalAddressRequired)) } if params != nil && params.ExcludeForeignAddressRequired != nil { - data.Set("ExcludeForeignAddressRequired", string(*params.ExcludeForeignAddressRequired)) + data.Set("ExcludeForeignAddressRequired", fmt.Sprint(*params.ExcludeForeignAddressRequired)) } if params != nil && params.Beta != nil { - data.Set("Beta", string(*params.Beta)) + data.Set("Beta", fmt.Sprint(*params.Beta)) } if params != nil && params.NearNumber != nil { - data.Set("NearNumber", *params.NearNumber) + data.Set("NearNumber", *params.NearNumber) } if params != nil && params.NearLatLong != nil { - data.Set("NearLatLong", *params.NearLatLong) + data.Set("NearLatLong", *params.NearLatLong) } if params != nil && params.Distance != nil { - data.Set("Distance", string(*params.Distance)) + data.Set("Distance", fmt.Sprint(*params.Distance)) } if params != nil && params.InPostalCode != nil { - data.Set("InPostalCode", *params.InPostalCode) + data.Set("InPostalCode", *params.InPostalCode) } if params != nil && params.InRegion != nil { - data.Set("InRegion", *params.InRegion) + data.Set("InRegion", *params.InRegion) } if params != nil && params.InRateCenter != nil { - data.Set("InRateCenter", *params.InRateCenter) + data.Set("InRateCenter", *params.InRateCenter) } if params != nil && params.InLata != nil { - data.Set("InLata", *params.InLata) + data.Set("InLata", *params.InLata) } if params != nil && params.InLocality != nil { - data.Set("InLocality", *params.InLocality) + data.Set("InLocality", *params.InLocality) } if params != nil && params.FaxEnabled != nil { - data.Set("FaxEnabled", string(*params.FaxEnabled)) + data.Set("FaxEnabled", fmt.Sprint(*params.FaxEnabled)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -5890,18 +6010,18 @@ type ListCallParams struct { ParentCallSid *string `json:"ParentCallSid,omitempty"` Status *string `json:"Status,omitempty"` StartTime *time.Time `json:"StartTime,omitempty"` - StartTime< *time.Time `json:"StartTime<,omitempty"` - StartTime> *time.Time `json:"StartTime>,omitempty"` + StartTimelesserThan *time.Time `json:"StartTime<,omitempty"` + StartTimegreaterThan *time.Time `json:"StartTime>,omitempty"` EndTime *time.Time `json:"EndTime,omitempty"` - EndTime< *time.Time `json:"EndTime<,omitempty"` - EndTime> *time.Time `json:"EndTime>,omitempty"` + EndTimelesserThan *time.Time `json:"EndTime<,omitempty"` + EndTimegreaterThan *time.Time `json:"EndTime>,omitempty"` PageSize *int32 `json:"PageSize,omitempty"` } /* ListCall Method for ListCall Retrieves a collection of calls made to and from your account - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to read. * @param optional nil or *ListCallOpts - Optional Parameters: * @param "To" (string) - Only show calls made to this phone number, SIP address, Client identifier or SIM SID. * @param "From" (string) - Only include calls from this phone number, SIP address, Client identifier or SIM SID. @@ -5916,45 +6036,46 @@ Retrieves a collection of calls made to and from your account * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountCallReadResponse */ -func (c *DefaultApiService) ListCall(accountSid string, params *ListCallParams) (*ApiV2010AccountCallReadResponse, error) { +func (c *DefaultApiService) ListCall(AccountSid string, params *ListCallParams) (*ApiV2010AccountCallReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.To != nil { - data.Set("To", *params.To) + data.Set("To", *params.To) } if params != nil && params.From != nil { - data.Set("From", *params.From) + data.Set("From", *params.From) } if params != nil && params.ParentCallSid != nil { - data.Set("ParentCallSid", *params.ParentCallSid) + data.Set("ParentCallSid", *params.ParentCallSid) } if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } if params != nil && params.StartTime != nil { - data.Set("StartTime", string(*params.StartTime)) + data.Set("StartTime", fmt.Sprint(*params.StartTime)) } - if params != nil && params.StartTime< != nil { - data.Set("StartTime<", string(*params.StartTime<)) + if params != nil && params.StartTimelesserThan != nil { + data.Set("StartTimelesserThan", fmt.Sprint(*params.StartTimelesserThan)) } - if params != nil && params.StartTime> != nil { - data.Set("StartTime>", string(*params.StartTime>)) + if params != nil && params.StartTimegreaterThan != nil { + data.Set("StartTimegreaterThan", fmt.Sprint(*params.StartTimegreaterThan)) } if params != nil && params.EndTime != nil { - data.Set("EndTime", string(*params.EndTime)) + data.Set("EndTime", fmt.Sprint(*params.EndTime)) } - if params != nil && params.EndTime< != nil { - data.Set("EndTime<", string(*params.EndTime<)) + if params != nil && params.EndTimelesserThan != nil { + data.Set("EndTimelesserThan", fmt.Sprint(*params.EndTimelesserThan)) } - if params != nil && params.EndTime> != nil { - data.Set("EndTime>", string(*params.EndTime>)) + if params != nil && params.EndTimegreaterThan != nil { + data.Set("EndTimegreaterThan", fmt.Sprint(*params.EndTimegreaterThan)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -5980,22 +6101,23 @@ type ListCallEventParams struct { /* ListCallEvent Method for ListCallEvent Retrieve a list of all events for a call. - * @param accountSid The unique SID identifier of the Account. - * @param callSid The unique SID identifier of the Call. + * @param AccountSid The unique SID identifier of the Account. + * @param CallSid The unique SID identifier of the Call. * @param optional nil or *ListCallEventOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountCallCallEventReadResponse */ -func (c *DefaultApiService) ListCallEvent(accountSid string, callSid string, params *ListCallEventParams) (*ApiV2010AccountCallCallEventReadResponse, error) { +func (c *DefaultApiService) ListCallEvent(AccountSid string, CallSid string, params *ListCallEventParams) (*ApiV2010AccountCallCallEventReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Events.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", CallSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -6017,15 +6139,15 @@ func (c *DefaultApiService) ListCallEvent(accountSid string, callSid string, par type ListCallNotificationParams struct { Log *int32 `json:"Log,omitempty"` MessageDate *time.Time `json:"MessageDate,omitempty"` - MessageDate< *time.Time `json:"MessageDate<,omitempty"` - MessageDate> *time.Time `json:"MessageDate>,omitempty"` + MessageDatelesserThan *time.Time `json:"MessageDate<,omitempty"` + MessageDategreaterThan *time.Time `json:"MessageDate>,omitempty"` PageSize *int32 `json:"PageSize,omitempty"` } /* ListCallNotification Method for ListCallNotification - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call Notification resources to read. - * @param callSid The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the Call Notification resources to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call Notification resources to read. + * @param CallSid The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the Call Notification resources to read. * @param optional nil or *ListCallNotificationOpts - Optional Parameters: * @param "Log" (int32) - 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. * @param "MessageDate" (time.Time) - 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. @@ -6034,28 +6156,29 @@ ListCallNotification Method for ListCallNotification * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountCallCallNotificationReadResponse */ -func (c *DefaultApiService) ListCallNotification(accountSid string, callSid string, params *ListCallNotificationParams) (*ApiV2010AccountCallCallNotificationReadResponse, error) { +func (c *DefaultApiService) ListCallNotification(AccountSid string, CallSid string, params *ListCallNotificationParams) (*ApiV2010AccountCallCallNotificationReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", CallSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Log != nil { - data.Set("Log", string(*params.Log)) + data.Set("Log", fmt.Sprint(*params.Log)) } if params != nil && params.MessageDate != nil { - data.Set("MessageDate", string(*params.MessageDate)) + data.Set("MessageDate", fmt.Sprint(*params.MessageDate)) } - if params != nil && params.MessageDate< != nil { - data.Set("MessageDate<", string(*params.MessageDate<)) + if params != nil && params.MessageDatelesserThan != nil { + data.Set("MessageDatelesserThan", fmt.Sprint(*params.MessageDatelesserThan)) } - if params != nil && params.MessageDate> != nil { - data.Set("MessageDate>", string(*params.MessageDate>)) + if params != nil && params.MessageDategreaterThan != nil { + data.Set("MessageDategreaterThan", fmt.Sprint(*params.MessageDategreaterThan)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -6076,16 +6199,16 @@ func (c *DefaultApiService) ListCallNotification(accountSid string, callSid stri // ListCallRecordingParams Optional parameters for the method 'ListCallRecording' type ListCallRecordingParams struct { DateCreated *time.Time `json:"DateCreated,omitempty"` - DateCreated< *time.Time `json:"DateCreated<,omitempty"` - DateCreated> *time.Time `json:"DateCreated>,omitempty"` + DateCreatedlesserThan *time.Time `json:"DateCreated<,omitempty"` + DateCreatedgreaterThan *time.Time `json:"DateCreated>,omitempty"` PageSize *int32 `json:"PageSize,omitempty"` } /* ListCallRecording Method for ListCallRecording Retrieve a list of recordings belonging to the call used to make the request - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to read. - * @param callSid The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resources to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to read. + * @param CallSid The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resources to read. * @param optional nil or *ListCallRecordingOpts - Optional Parameters: * @param "DateCreated" (time.Time) - 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. * @param "DateCreated<" (time.Time) - 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. @@ -6093,25 +6216,26 @@ Retrieve a list of recordings belonging to the call used to make the request * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountCallCallRecordingReadResponse */ -func (c *DefaultApiService) ListCallRecording(accountSid string, callSid string, params *ListCallRecordingParams) (*ApiV2010AccountCallCallRecordingReadResponse, error) { +func (c *DefaultApiService) ListCallRecording(AccountSid string, CallSid string, params *ListCallRecordingParams) (*ApiV2010AccountCallCallRecordingReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", CallSid, -1) + data := url.Values{} headers := 0 if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) + data.Set("DateCreated", fmt.Sprint(*params.DateCreated)) } - if params != nil && params.DateCreated< != nil { - data.Set("DateCreated<", string(*params.DateCreated<)) + if params != nil && params.DateCreatedlesserThan != nil { + data.Set("DateCreatedlesserThan", fmt.Sprint(*params.DateCreatedlesserThan)) } - if params != nil && params.DateCreated> != nil { - data.Set("DateCreated>", string(*params.DateCreated>)) + if params != nil && params.DateCreatedgreaterThan != nil { + data.Set("DateCreatedgreaterThan", fmt.Sprint(*params.DateCreatedgreaterThan)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -6132,11 +6256,11 @@ func (c *DefaultApiService) ListCallRecording(accountSid string, callSid string, // ListConferenceParams Optional parameters for the method 'ListConference' type ListConferenceParams struct { DateCreated *time.Time `json:"DateCreated,omitempty"` - DateCreated< *time.Time `json:"DateCreated<,omitempty"` - DateCreated> *time.Time `json:"DateCreated>,omitempty"` + DateCreatedlesserThan *time.Time `json:"DateCreated<,omitempty"` + DateCreatedgreaterThan *time.Time `json:"DateCreated>,omitempty"` DateUpdated *time.Time `json:"DateUpdated,omitempty"` - DateUpdated< *time.Time `json:"DateUpdated<,omitempty"` - DateUpdated> *time.Time `json:"DateUpdated>,omitempty"` + DateUpdatedlesserThan *time.Time `json:"DateUpdated<,omitempty"` + DateUpdatedgreaterThan *time.Time `json:"DateUpdated>,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` Status *string `json:"Status,omitempty"` PageSize *int32 `json:"PageSize,omitempty"` @@ -6145,7 +6269,7 @@ type ListConferenceParams struct { /* ListConference Method for ListConference Retrieve a list of conferences belonging to the account used to make the request - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference resource(s) to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference resource(s) to read. * @param optional nil or *ListConferenceOpts - Optional Parameters: * @param "DateCreated" (time.Time) - 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`. * @param "DateCreated<" (time.Time) - 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`. @@ -6158,39 +6282,40 @@ Retrieve a list of conferences belonging to the account used to make the request * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountConferenceReadResponse */ -func (c *DefaultApiService) ListConference(accountSid string, params *ListConferenceParams) (*ApiV2010AccountConferenceReadResponse, error) { +func (c *DefaultApiService) ListConference(AccountSid string, params *ListConferenceParams) (*ApiV2010AccountConferenceReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Conferences.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) + data.Set("DateCreated", fmt.Sprint(*params.DateCreated)) } - if params != nil && params.DateCreated< != nil { - data.Set("DateCreated<", string(*params.DateCreated<)) + if params != nil && params.DateCreatedlesserThan != nil { + data.Set("DateCreatedlesserThan", fmt.Sprint(*params.DateCreatedlesserThan)) } - if params != nil && params.DateCreated> != nil { - data.Set("DateCreated>", string(*params.DateCreated>)) + if params != nil && params.DateCreatedgreaterThan != nil { + data.Set("DateCreatedgreaterThan", fmt.Sprint(*params.DateCreatedgreaterThan)) } if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) + data.Set("DateUpdated", fmt.Sprint(*params.DateUpdated)) } - if params != nil && params.DateUpdated< != nil { - data.Set("DateUpdated<", string(*params.DateUpdated<)) + if params != nil && params.DateUpdatedlesserThan != nil { + data.Set("DateUpdatedlesserThan", fmt.Sprint(*params.DateUpdatedlesserThan)) } - if params != nil && params.DateUpdated> != nil { - data.Set("DateUpdated>", string(*params.DateUpdated>)) + if params != nil && params.DateUpdatedgreaterThan != nil { + data.Set("DateUpdatedgreaterThan", fmt.Sprint(*params.DateUpdatedgreaterThan)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -6211,16 +6336,16 @@ func (c *DefaultApiService) ListConference(accountSid string, params *ListConfer // ListConferenceRecordingParams Optional parameters for the method 'ListConferenceRecording' type ListConferenceRecordingParams struct { DateCreated *time.Time `json:"DateCreated,omitempty"` - DateCreated< *time.Time `json:"DateCreated<,omitempty"` - DateCreated> *time.Time `json:"DateCreated>,omitempty"` + DateCreatedlesserThan *time.Time `json:"DateCreated<,omitempty"` + DateCreatedgreaterThan *time.Time `json:"DateCreated>,omitempty"` PageSize *int32 `json:"PageSize,omitempty"` } /* ListConferenceRecording Method for ListConferenceRecording Retrieve a list of recordings belonging to the call used to make the request - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resources to read. - * @param conferenceSid The Conference SID that identifies the conference associated with the recording to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resources to read. + * @param ConferenceSid The Conference SID that identifies the conference associated with the recording to read. * @param optional nil or *ListConferenceRecordingOpts - Optional Parameters: * @param "DateCreated" (time.Time) - 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. * @param "DateCreated<" (time.Time) - 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. @@ -6228,25 +6353,26 @@ Retrieve a list of recordings belonging to the call used to make the request * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountConferenceConferenceRecordingReadResponse */ -func (c *DefaultApiService) ListConferenceRecording(accountSid string, conferenceSid string, params *ListConferenceRecordingParams) (*ApiV2010AccountConferenceConferenceRecordingReadResponse, error) { +func (c *DefaultApiService) ListConferenceRecording(AccountSid string, ConferenceSid string, params *ListConferenceRecordingParams) (*ApiV2010AccountConferenceConferenceRecordingReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ConferenceSid"+"}", conferenceSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"ConferenceSid"+"}", ConferenceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) + data.Set("DateCreated", fmt.Sprint(*params.DateCreated)) } - if params != nil && params.DateCreated< != nil { - data.Set("DateCreated<", string(*params.DateCreated<)) + if params != nil && params.DateCreatedlesserThan != nil { + data.Set("DateCreatedlesserThan", fmt.Sprint(*params.DateCreatedlesserThan)) } - if params != nil && params.DateCreated> != nil { - data.Set("DateCreated>", string(*params.DateCreated>)) + if params != nil && params.DateCreatedgreaterThan != nil { + data.Set("DateCreatedgreaterThan", fmt.Sprint(*params.DateCreatedgreaterThan)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -6272,20 +6398,21 @@ type ListConnectAppParams struct { /* ListConnectApp Method for ListConnectApp Retrieve a list of connect-apps belonging to the account used to make the request - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resources to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resources to read. * @param optional nil or *ListConnectAppOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountConnectAppReadResponse */ -func (c *DefaultApiService) ListConnectApp(accountSid string, params *ListConnectAppParams) (*ApiV2010AccountConnectAppReadResponse, error) { +func (c *DefaultApiService) ListConnectApp(AccountSid string, params *ListConnectAppParams) (*ApiV2010AccountConnectAppReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/ConnectApps.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -6310,22 +6437,23 @@ type ListDependentPhoneNumberParams struct { /* ListDependentPhoneNumber Method for ListDependentPhoneNumber - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the DependentPhoneNumber resources to read. - * @param addressSid The SID of the Address resource associated with the phone number. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the DependentPhoneNumber resources to read. + * @param AddressSid The SID of the Address resource associated with the phone number. * @param optional nil or *ListDependentPhoneNumberOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountAddressDependentPhoneNumberReadResponse */ -func (c *DefaultApiService) ListDependentPhoneNumber(accountSid string, addressSid string, params *ListDependentPhoneNumberParams) (*ApiV2010AccountAddressDependentPhoneNumberReadResponse, error) { +func (c *DefaultApiService) ListDependentPhoneNumber(AccountSid string, AddressSid string, params *ListDependentPhoneNumberParams) (*ApiV2010AccountAddressDependentPhoneNumberReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Addresses/{AddressSid}/DependentPhoneNumbers.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"AddressSid"+"}", addressSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"AddressSid"+"}", AddressSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -6355,7 +6483,7 @@ type ListIncomingPhoneNumberParams struct { /* ListIncomingPhoneNumber Method for ListIncomingPhoneNumber Retrieve a list of incoming-phone-numbers belonging to the account used to make the request. - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IncomingPhoneNumber resources to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IncomingPhoneNumber resources to read. * @param optional nil or *ListIncomingPhoneNumberOpts - Optional Parameters: * @param "Beta" (bool) - Whether to include phone numbers new to the Twilio platform. Can be: `true` or `false` and the default is `true`. * @param "FriendlyName" (string) - A string that identifies the IncomingPhoneNumber resources to read. @@ -6364,27 +6492,28 @@ Retrieve a list of incoming-phone-numbers belonging to the account used to make * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountIncomingPhoneNumberReadResponse */ -func (c *DefaultApiService) ListIncomingPhoneNumber(accountSid string, params *ListIncomingPhoneNumberParams) (*ApiV2010AccountIncomingPhoneNumberReadResponse, error) { +func (c *DefaultApiService) ListIncomingPhoneNumber(AccountSid string, params *ListIncomingPhoneNumberParams) (*ApiV2010AccountIncomingPhoneNumberReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Beta != nil { - data.Set("Beta", string(*params.Beta)) + data.Set("Beta", fmt.Sprint(*params.Beta)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.PhoneNumber != nil { - data.Set("PhoneNumber", *params.PhoneNumber) + data.Set("PhoneNumber", *params.PhoneNumber) } if params != nil && params.Origin != nil { - data.Set("Origin", *params.Origin) + data.Set("Origin", *params.Origin) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -6410,22 +6539,23 @@ type ListIncomingPhoneNumberAssignedAddOnParams struct { /* ListIncomingPhoneNumberAssignedAddOn Method for ListIncomingPhoneNumberAssignedAddOn Retrieve a list of Add-on installations currently assigned to this Number. - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. - * @param resourceSid The SID of the Phone Number to which the Add-on is assigned. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. + * @param ResourceSid The SID of the Phone Number to which the Add-on is assigned. * @param optional nil or *ListIncomingPhoneNumberAssignedAddOnOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse */ -func (c *DefaultApiService) ListIncomingPhoneNumberAssignedAddOn(accountSid string, resourceSid string, params *ListIncomingPhoneNumberAssignedAddOnParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse, error) { +func (c *DefaultApiService) ListIncomingPhoneNumberAssignedAddOn(AccountSid string, ResourceSid string, params *ListIncomingPhoneNumberAssignedAddOnParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ResourceSid"+"}", resourceSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"ResourceSid"+"}", ResourceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -6451,24 +6581,25 @@ type ListIncomingPhoneNumberAssignedAddOnExtensionParams struct { /* ListIncomingPhoneNumberAssignedAddOnExtension Method for ListIncomingPhoneNumberAssignedAddOnExtension Retrieve a list of Extensions for the Assigned Add-on. - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. - * @param resourceSid The SID of the Phone Number to which the Add-on is assigned. - * @param assignedAddOnSid The SID that uniquely identifies the assigned Add-on installation. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. + * @param ResourceSid The SID of the Phone Number to which the Add-on is assigned. + * @param AssignedAddOnSid The SID that uniquely identifies the assigned Add-on installation. * @param optional nil or *ListIncomingPhoneNumberAssignedAddOnExtensionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse */ -func (c *DefaultApiService) ListIncomingPhoneNumberAssignedAddOnExtension(accountSid string, resourceSid string, assignedAddOnSid string, params *ListIncomingPhoneNumberAssignedAddOnExtensionParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse, error) { +func (c *DefaultApiService) ListIncomingPhoneNumberAssignedAddOnExtension(AccountSid string, ResourceSid string, AssignedAddOnSid string, params *ListIncomingPhoneNumberAssignedAddOnExtensionParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ResourceSid"+"}", resourceSid, -1) - path = strings.Replace(path, "{"+"AssignedAddOnSid"+"}", assignedAddOnSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"ResourceSid"+"}", ResourceSid, -1) + path = strings.Replace(path, "{"+"AssignedAddOnSid"+"}", AssignedAddOnSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -6497,7 +6628,7 @@ type ListIncomingPhoneNumberLocalParams struct { /* ListIncomingPhoneNumberLocal Method for ListIncomingPhoneNumberLocal - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. * @param optional nil or *ListIncomingPhoneNumberLocalOpts - Optional Parameters: * @param "Beta" (bool) - Whether to include phone numbers new to the Twilio platform. Can be: `true` or `false` and the default is `true`. * @param "FriendlyName" (string) - A string that identifies the resources to read. @@ -6506,27 +6637,28 @@ ListIncomingPhoneNumberLocal Method for ListIncomingPhoneNumberLocal * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse */ -func (c *DefaultApiService) ListIncomingPhoneNumberLocal(accountSid string, params *ListIncomingPhoneNumberLocalParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse, error) { +func (c *DefaultApiService) ListIncomingPhoneNumberLocal(AccountSid string, params *ListIncomingPhoneNumberLocalParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Beta != nil { - data.Set("Beta", string(*params.Beta)) + data.Set("Beta", fmt.Sprint(*params.Beta)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.PhoneNumber != nil { - data.Set("PhoneNumber", *params.PhoneNumber) + data.Set("PhoneNumber", *params.PhoneNumber) } if params != nil && params.Origin != nil { - data.Set("Origin", *params.Origin) + data.Set("Origin", *params.Origin) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -6555,7 +6687,7 @@ type ListIncomingPhoneNumberMobileParams struct { /* ListIncomingPhoneNumberMobile Method for ListIncomingPhoneNumberMobile - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. * @param optional nil or *ListIncomingPhoneNumberMobileOpts - Optional Parameters: * @param "Beta" (bool) - Whether to include phone numbers new to the Twilio platform. Can be: `true` or `false` and the default is `true`. * @param "FriendlyName" (string) - A string that identifies the resources to read. @@ -6564,27 +6696,28 @@ ListIncomingPhoneNumberMobile Method for ListIncomingPhoneNumberMobile * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse */ -func (c *DefaultApiService) ListIncomingPhoneNumberMobile(accountSid string, params *ListIncomingPhoneNumberMobileParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse, error) { +func (c *DefaultApiService) ListIncomingPhoneNumberMobile(AccountSid string, params *ListIncomingPhoneNumberMobileParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Beta != nil { - data.Set("Beta", string(*params.Beta)) + data.Set("Beta", fmt.Sprint(*params.Beta)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.PhoneNumber != nil { - data.Set("PhoneNumber", *params.PhoneNumber) + data.Set("PhoneNumber", *params.PhoneNumber) } if params != nil && params.Origin != nil { - data.Set("Origin", *params.Origin) + data.Set("Origin", *params.Origin) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -6613,7 +6746,7 @@ type ListIncomingPhoneNumberTollFreeParams struct { /* ListIncomingPhoneNumberTollFree Method for ListIncomingPhoneNumberTollFree - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. * @param optional nil or *ListIncomingPhoneNumberTollFreeOpts - Optional Parameters: * @param "Beta" (bool) - Whether to include phone numbers new to the Twilio platform. Can be: `true` or `false` and the default is `true`. * @param "FriendlyName" (string) - A string that identifies the resources to read. @@ -6622,27 +6755,28 @@ ListIncomingPhoneNumberTollFree Method for ListIncomingPhoneNumberTollFree * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse */ -func (c *DefaultApiService) ListIncomingPhoneNumberTollFree(accountSid string, params *ListIncomingPhoneNumberTollFreeParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse, error) { +func (c *DefaultApiService) ListIncomingPhoneNumberTollFree(AccountSid string, params *ListIncomingPhoneNumberTollFreeParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Beta != nil { - data.Set("Beta", string(*params.Beta)) + data.Set("Beta", fmt.Sprint(*params.Beta)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.PhoneNumber != nil { - data.Set("PhoneNumber", *params.PhoneNumber) + data.Set("PhoneNumber", *params.PhoneNumber) } if params != nil && params.Origin != nil { - data.Set("Origin", *params.Origin) + data.Set("Origin", *params.Origin) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -6667,20 +6801,21 @@ type ListKeyParams struct { /* ListKey Method for ListKey - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resources to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resources to read. * @param optional nil or *ListKeyOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountKeyReadResponse */ -func (c *DefaultApiService) ListKey(accountSid string, params *ListKeyParams) (*ApiV2010AccountKeyReadResponse, error) { +func (c *DefaultApiService) ListKey(AccountSid string, params *ListKeyParams) (*ApiV2010AccountKeyReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Keys.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -6701,16 +6836,16 @@ func (c *DefaultApiService) ListKey(accountSid string, params *ListKeyParams) (* // ListMediaParams Optional parameters for the method 'ListMedia' type ListMediaParams struct { DateCreated *time.Time `json:"DateCreated,omitempty"` - DateCreated< *time.Time `json:"DateCreated<,omitempty"` - DateCreated> *time.Time `json:"DateCreated>,omitempty"` + DateCreatedlesserThan *time.Time `json:"DateCreated<,omitempty"` + DateCreatedgreaterThan *time.Time `json:"DateCreated>,omitempty"` PageSize *int32 `json:"PageSize,omitempty"` } /* ListMedia Method for ListMedia Retrieve a list of Media resources belonging to the account used to make the request - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Media resource(s) to read. - * @param messageSid The SID of the Message resource that this Media resource belongs to. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Media resource(s) to read. + * @param MessageSid The SID of the Message resource that this Media resource belongs to. * @param optional nil or *ListMediaOpts - Optional Parameters: * @param "DateCreated" (time.Time) - 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. * @param "DateCreated<" (time.Time) - 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. @@ -6718,25 +6853,26 @@ Retrieve a list of Media resources belonging to the account used to make the req * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountMessageMediaReadResponse */ -func (c *DefaultApiService) ListMedia(accountSid string, messageSid string, params *ListMediaParams) (*ApiV2010AccountMessageMediaReadResponse, error) { +func (c *DefaultApiService) ListMedia(AccountSid string, MessageSid string, params *ListMediaParams) (*ApiV2010AccountMessageMediaReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"MessageSid"+"}", messageSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"MessageSid"+"}", MessageSid, -1) + data := url.Values{} headers := 0 if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) + data.Set("DateCreated", fmt.Sprint(*params.DateCreated)) } - if params != nil && params.DateCreated< != nil { - data.Set("DateCreated<", string(*params.DateCreated<)) + if params != nil && params.DateCreatedlesserThan != nil { + data.Set("DateCreatedlesserThan", fmt.Sprint(*params.DateCreatedlesserThan)) } - if params != nil && params.DateCreated> != nil { - data.Set("DateCreated>", string(*params.DateCreated>)) + if params != nil && params.DateCreatedgreaterThan != nil { + data.Set("DateCreatedgreaterThan", fmt.Sprint(*params.DateCreatedgreaterThan)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -6762,22 +6898,23 @@ type ListMemberParams struct { /* ListMember Method for ListMember Retrieve the members of the queue - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Member resource(s) to read. - * @param queueSid The SID of the Queue in which to find the members + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Member resource(s) to read. + * @param QueueSid The SID of the Queue in which to find the members * @param optional nil or *ListMemberOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountQueueMemberReadResponse */ -func (c *DefaultApiService) ListMember(accountSid string, queueSid string, params *ListMemberParams) (*ApiV2010AccountQueueMemberReadResponse, error) { +func (c *DefaultApiService) ListMember(AccountSid string, QueueSid string, params *ListMemberParams) (*ApiV2010AccountQueueMemberReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"QueueSid"+"}", queueSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"QueueSid"+"}", QueueSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -6800,15 +6937,15 @@ type ListMessageParams struct { To *string `json:"To,omitempty"` From *string `json:"From,omitempty"` DateSent *time.Time `json:"DateSent,omitempty"` - DateSent< *time.Time `json:"DateSent<,omitempty"` - DateSent> *time.Time `json:"DateSent>,omitempty"` + DateSentlesserThan *time.Time `json:"DateSent<,omitempty"` + DateSentgreaterThan *time.Time `json:"DateSent>,omitempty"` PageSize *int32 `json:"PageSize,omitempty"` } /* ListMessage Method for ListMessage Retrieve a list of messages belonging to the account used to make the request - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Message resources to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Message resources to read. * @param optional nil or *ListMessageOpts - Optional Parameters: * @param "To" (string) - Read messages sent to only this phone number. * @param "From" (string) - Read messages sent from only this phone number or alphanumeric sender ID. @@ -6818,30 +6955,31 @@ Retrieve a list of messages belonging to the account used to make the request * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountMessageReadResponse */ -func (c *DefaultApiService) ListMessage(accountSid string, params *ListMessageParams) (*ApiV2010AccountMessageReadResponse, error) { +func (c *DefaultApiService) ListMessage(AccountSid string, params *ListMessageParams) (*ApiV2010AccountMessageReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Messages.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.To != nil { - data.Set("To", *params.To) + data.Set("To", *params.To) } if params != nil && params.From != nil { - data.Set("From", *params.From) + data.Set("From", *params.From) } if params != nil && params.DateSent != nil { - data.Set("DateSent", string(*params.DateSent)) + data.Set("DateSent", fmt.Sprint(*params.DateSent)) } - if params != nil && params.DateSent< != nil { - data.Set("DateSent<", string(*params.DateSent<)) + if params != nil && params.DateSentlesserThan != nil { + data.Set("DateSentlesserThan", fmt.Sprint(*params.DateSentlesserThan)) } - if params != nil && params.DateSent> != nil { - data.Set("DateSent>", string(*params.DateSent>)) + if params != nil && params.DateSentgreaterThan != nil { + data.Set("DateSentgreaterThan", fmt.Sprint(*params.DateSentgreaterThan)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -6863,15 +7001,15 @@ func (c *DefaultApiService) ListMessage(accountSid string, params *ListMessagePa type ListNotificationParams struct { Log *int32 `json:"Log,omitempty"` MessageDate *time.Time `json:"MessageDate,omitempty"` - MessageDate< *time.Time `json:"MessageDate<,omitempty"` - MessageDate> *time.Time `json:"MessageDate>,omitempty"` + MessageDatelesserThan *time.Time `json:"MessageDate<,omitempty"` + MessageDategreaterThan *time.Time `json:"MessageDate>,omitempty"` PageSize *int32 `json:"PageSize,omitempty"` } /* ListNotification Method for ListNotification Retrieve a list of notifications belonging to the account used to make the request - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Notification resources to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Notification resources to read. * @param optional nil or *ListNotificationOpts - Optional Parameters: * @param "Log" (int32) - 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. * @param "MessageDate" (time.Time) - 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. @@ -6880,27 +7018,28 @@ Retrieve a list of notifications belonging to the account used to make the reque * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountNotificationReadResponse */ -func (c *DefaultApiService) ListNotification(accountSid string, params *ListNotificationParams) (*ApiV2010AccountNotificationReadResponse, error) { +func (c *DefaultApiService) ListNotification(AccountSid string, params *ListNotificationParams) (*ApiV2010AccountNotificationReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Notifications.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Log != nil { - data.Set("Log", string(*params.Log)) + data.Set("Log", fmt.Sprint(*params.Log)) } if params != nil && params.MessageDate != nil { - data.Set("MessageDate", string(*params.MessageDate)) + data.Set("MessageDate", fmt.Sprint(*params.MessageDate)) } - if params != nil && params.MessageDate< != nil { - data.Set("MessageDate<", string(*params.MessageDate<)) + if params != nil && params.MessageDatelesserThan != nil { + data.Set("MessageDatelesserThan", fmt.Sprint(*params.MessageDatelesserThan)) } - if params != nil && params.MessageDate> != nil { - data.Set("MessageDate>", string(*params.MessageDate>)) + if params != nil && params.MessageDategreaterThan != nil { + data.Set("MessageDategreaterThan", fmt.Sprint(*params.MessageDategreaterThan)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -6928,28 +7067,29 @@ type ListOutgoingCallerIdParams struct { /* ListOutgoingCallerId Method for ListOutgoingCallerId Retrieve a list of outgoing-caller-ids belonging to the account used to make the request - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resources to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resources to read. * @param optional nil or *ListOutgoingCallerIdOpts - Optional Parameters: * @param "PhoneNumber" (string) - The phone number of the OutgoingCallerId resources to read. * @param "FriendlyName" (string) - The string that identifies the OutgoingCallerId resources to read. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountOutgoingCallerIdReadResponse */ -func (c *DefaultApiService) ListOutgoingCallerId(accountSid string, params *ListOutgoingCallerIdParams) (*ApiV2010AccountOutgoingCallerIdReadResponse, error) { +func (c *DefaultApiService) ListOutgoingCallerId(AccountSid string, params *ListOutgoingCallerIdParams) (*ApiV2010AccountOutgoingCallerIdReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PhoneNumber != nil { - data.Set("PhoneNumber", *params.PhoneNumber) + data.Set("PhoneNumber", *params.PhoneNumber) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -6978,8 +7118,8 @@ type ListParticipantParams struct { /* ListParticipant Method for ListParticipant Retrieve a list of participants belonging to the account used to make the request - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resources to read. - * @param conferenceSid The SID of the conference with the participants to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resources to read. + * @param ConferenceSid The SID of the conference with the participants to read. * @param optional nil or *ListParticipantOpts - Optional Parameters: * @param "Muted" (bool) - Whether to return only participants that are muted. Can be: `true` or `false`. * @param "Hold" (bool) - Whether to return only participants that are on hold. Can be: `true` or `false`. @@ -6987,25 +7127,26 @@ Retrieve a list of participants belonging to the account used to make the reques * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountConferenceParticipantReadResponse */ -func (c *DefaultApiService) ListParticipant(accountSid string, conferenceSid string, params *ListParticipantParams) (*ApiV2010AccountConferenceParticipantReadResponse, error) { +func (c *DefaultApiService) ListParticipant(AccountSid string, ConferenceSid string, params *ListParticipantParams) (*ApiV2010AccountConferenceParticipantReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ConferenceSid"+"}", conferenceSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"ConferenceSid"+"}", ConferenceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Muted != nil { - data.Set("Muted", string(*params.Muted)) + data.Set("Muted", fmt.Sprint(*params.Muted)) } if params != nil && params.Hold != nil { - data.Set("Hold", string(*params.Hold)) + data.Set("Hold", fmt.Sprint(*params.Hold)) } if params != nil && params.Coaching != nil { - data.Set("Coaching", string(*params.Coaching)) + data.Set("Coaching", fmt.Sprint(*params.Coaching)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -7031,20 +7172,21 @@ type ListQueueParams struct { /* ListQueue Method for ListQueue Retrieve a list of queues belonging to the account used to make the request - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resources to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resources to read. * @param optional nil or *ListQueueOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountQueueReadResponse */ -func (c *DefaultApiService) ListQueue(accountSid string, params *ListQueueParams) (*ApiV2010AccountQueueReadResponse, error) { +func (c *DefaultApiService) ListQueue(AccountSid string, params *ListQueueParams) (*ApiV2010AccountQueueReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Queues.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -7065,8 +7207,8 @@ func (c *DefaultApiService) ListQueue(accountSid string, params *ListQueueParams // ListRecordingParams Optional parameters for the method 'ListRecording' type ListRecordingParams struct { DateCreated *time.Time `json:"DateCreated,omitempty"` - DateCreated< *time.Time `json:"DateCreated<,omitempty"` - DateCreated> *time.Time `json:"DateCreated>,omitempty"` + DateCreatedlesserThan *time.Time `json:"DateCreated<,omitempty"` + DateCreatedgreaterThan *time.Time `json:"DateCreated>,omitempty"` CallSid *string `json:"CallSid,omitempty"` ConferenceSid *string `json:"ConferenceSid,omitempty"` PageSize *int32 `json:"PageSize,omitempty"` @@ -7075,7 +7217,7 @@ type ListRecordingParams struct { /* ListRecording Method for ListRecording Retrieve a list of recordings belonging to the account used to make the request - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to read. * @param optional nil or *ListRecordingOpts - Optional Parameters: * @param "DateCreated" (time.Time) - 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. * @param "DateCreated<" (time.Time) - 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. @@ -7085,30 +7227,31 @@ Retrieve a list of recordings belonging to the account used to make the request * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountRecordingReadResponse */ -func (c *DefaultApiService) ListRecording(accountSid string, params *ListRecordingParams) (*ApiV2010AccountRecordingReadResponse, error) { +func (c *DefaultApiService) ListRecording(AccountSid string, params *ListRecordingParams) (*ApiV2010AccountRecordingReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Recordings.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) + data.Set("DateCreated", fmt.Sprint(*params.DateCreated)) } - if params != nil && params.DateCreated< != nil { - data.Set("DateCreated<", string(*params.DateCreated<)) + if params != nil && params.DateCreatedlesserThan != nil { + data.Set("DateCreatedlesserThan", fmt.Sprint(*params.DateCreatedlesserThan)) } - if params != nil && params.DateCreated> != nil { - data.Set("DateCreated>", string(*params.DateCreated>)) + if params != nil && params.DateCreatedgreaterThan != nil { + data.Set("DateCreatedgreaterThan", fmt.Sprint(*params.DateCreatedgreaterThan)) } if params != nil && params.CallSid != nil { - data.Set("CallSid", *params.CallSid) + data.Set("CallSid", *params.CallSid) } if params != nil && params.ConferenceSid != nil { - data.Set("ConferenceSid", *params.ConferenceSid) + data.Set("ConferenceSid", *params.ConferenceSid) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -7134,22 +7277,23 @@ type ListRecordingAddOnResultParams struct { /* ListRecordingAddOnResult Method for ListRecordingAddOnResult Retrieve a list of results belonging to the recording - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult resources to read. - * @param referenceSid The SID of the recording to which the result to read belongs. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult resources to read. + * @param ReferenceSid The SID of the recording to which the result to read belongs. * @param optional nil or *ListRecordingAddOnResultOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountRecordingRecordingAddOnResultReadResponse */ -func (c *DefaultApiService) ListRecordingAddOnResult(accountSid string, referenceSid string, params *ListRecordingAddOnResultParams) (*ApiV2010AccountRecordingRecordingAddOnResultReadResponse, error) { +func (c *DefaultApiService) ListRecordingAddOnResult(AccountSid string, ReferenceSid string, params *ListRecordingAddOnResultParams) (*ApiV2010AccountRecordingRecordingAddOnResultReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ReferenceSid"+"}", referenceSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"ReferenceSid"+"}", ReferenceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -7175,24 +7319,25 @@ type ListRecordingAddOnResultPayloadParams struct { /* ListRecordingAddOnResultPayload Method for ListRecordingAddOnResultPayload Retrieve a list of payloads belonging to the AddOnResult - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resources to read. - * @param referenceSid The SID of the recording to which the AddOnResult resource that contains the payloads to read belongs. - * @param addOnResultSid The SID of the AddOnResult to which the payloads to read belongs. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resources to read. + * @param ReferenceSid The SID of the recording to which the AddOnResult resource that contains the payloads to read belongs. + * @param AddOnResultSid The SID of the AddOnResult to which the payloads to read belongs. * @param optional nil or *ListRecordingAddOnResultPayloadOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse */ -func (c *DefaultApiService) ListRecordingAddOnResultPayload(accountSid string, referenceSid string, addOnResultSid string, params *ListRecordingAddOnResultPayloadParams) (*ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse, error) { +func (c *DefaultApiService) ListRecordingAddOnResultPayload(AccountSid string, ReferenceSid string, AddOnResultSid string, params *ListRecordingAddOnResultPayloadParams) (*ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ReferenceSid"+"}", referenceSid, -1) - path = strings.Replace(path, "{"+"AddOnResultSid"+"}", addOnResultSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"ReferenceSid"+"}", ReferenceSid, -1) + path = strings.Replace(path, "{"+"AddOnResultSid"+"}", AddOnResultSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -7217,22 +7362,23 @@ type ListRecordingTranscriptionParams struct { /* ListRecordingTranscription Method for ListRecordingTranscription - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to read. - * @param recordingSid The SID of the [Recording](https://www.twilio.com/docs/voice/api/recording) that created the transcriptions to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to read. + * @param RecordingSid The SID of the [Recording](https://www.twilio.com/docs/voice/api/recording) that created the transcriptions to read. * @param optional nil or *ListRecordingTranscriptionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountRecordingRecordingTranscriptionReadResponse */ -func (c *DefaultApiService) ListRecordingTranscription(accountSid string, recordingSid string, params *ListRecordingTranscriptionParams) (*ApiV2010AccountRecordingRecordingTranscriptionReadResponse, error) { +func (c *DefaultApiService) ListRecordingTranscription(AccountSid string, RecordingSid string, params *ListRecordingTranscriptionParams) (*ApiV2010AccountRecordingRecordingTranscriptionReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"RecordingSid"+"}", recordingSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"RecordingSid"+"}", RecordingSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -7260,28 +7406,29 @@ type ListShortCodeParams struct { /* ListShortCode Method for ListShortCode Retrieve a list of short-codes belonging to the account used to make the request - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ShortCode resource(s) to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ShortCode resource(s) to read. * @param optional nil or *ListShortCodeOpts - Optional Parameters: * @param "FriendlyName" (string) - The string that identifies the ShortCode resources to read. * @param "ShortCode" (string) - Only show the ShortCode resources that match this pattern. You can specify partial numbers and use '*' as a wildcard for any digit. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountShortCodeReadResponse */ -func (c *DefaultApiService) ListShortCode(accountSid string, params *ListShortCodeParams) (*ApiV2010AccountShortCodeReadResponse, error) { +func (c *DefaultApiService) ListShortCode(AccountSid string, params *ListShortCodeParams) (*ApiV2010AccountShortCodeReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.ShortCode != nil { - data.Set("ShortCode", *params.ShortCode) + data.Set("ShortCode", *params.ShortCode) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -7306,20 +7453,21 @@ type ListSigningKeyParams struct { /* ListSigningKey Method for ListSigningKey - * @param accountSid + * @param AccountSid * @param optional nil or *ListSigningKeyOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountSigningKeyReadResponse */ -func (c *DefaultApiService) ListSigningKey(accountSid string, params *ListSigningKeyParams) (*ApiV2010AccountSigningKeyReadResponse, error) { +func (c *DefaultApiService) ListSigningKey(AccountSid string, params *ListSigningKeyParams) (*ApiV2010AccountSigningKeyReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SigningKeys.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -7345,22 +7493,23 @@ type ListSipAuthCallsCredentialListMappingParams struct { /* ListSipAuthCallsCredentialListMapping Method for ListSipAuthCallsCredentialListMapping Retrieve a list of credential list mappings belonging to the domain used in the request - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to read. - * @param domainSid The SID of the SIP domain that contains the resources to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to read. + * @param DomainSid The SID of the SIP domain that contains the resources to read. * @param optional nil or *ListSipAuthCallsCredentialListMappingOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse */ -func (c *DefaultApiService) ListSipAuthCallsCredentialListMapping(accountSid string, domainSid string, params *ListSipAuthCallsCredentialListMappingParams) (*ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse, error) { +func (c *DefaultApiService) ListSipAuthCallsCredentialListMapping(AccountSid string, DomainSid string, params *ListSipAuthCallsCredentialListMappingParams) (*ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -7386,22 +7535,23 @@ type ListSipAuthCallsIpAccessControlListMappingParams struct { /* ListSipAuthCallsIpAccessControlListMapping Method for ListSipAuthCallsIpAccessControlListMapping Retrieve a list of IP Access Control List mappings belonging to the domain used in the request - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IpAccessControlListMapping resources to read. - * @param domainSid The SID of the SIP domain that contains the resources to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IpAccessControlListMapping resources to read. + * @param DomainSid The SID of the SIP domain that contains the resources to read. * @param optional nil or *ListSipAuthCallsIpAccessControlListMappingOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse */ -func (c *DefaultApiService) ListSipAuthCallsIpAccessControlListMapping(accountSid string, domainSid string, params *ListSipAuthCallsIpAccessControlListMappingParams) (*ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse, error) { +func (c *DefaultApiService) ListSipAuthCallsIpAccessControlListMapping(AccountSid string, DomainSid string, params *ListSipAuthCallsIpAccessControlListMappingParams) (*ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -7427,22 +7577,23 @@ type ListSipAuthRegistrationsCredentialListMappingParams struct { /* ListSipAuthRegistrationsCredentialListMapping Method for ListSipAuthRegistrationsCredentialListMapping Retrieve a list of credential list mappings belonging to the domain used in the request - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to read. - * @param domainSid The SID of the SIP domain that contains the resources to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to read. + * @param DomainSid The SID of the SIP domain that contains the resources to read. * @param optional nil or *ListSipAuthRegistrationsCredentialListMappingOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse */ -func (c *DefaultApiService) ListSipAuthRegistrationsCredentialListMapping(accountSid string, domainSid string, params *ListSipAuthRegistrationsCredentialListMappingParams) (*ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse, error) { +func (c *DefaultApiService) ListSipAuthRegistrationsCredentialListMapping(AccountSid string, DomainSid string, params *ListSipAuthRegistrationsCredentialListMappingParams) (*ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -7468,22 +7619,23 @@ type ListSipCredentialParams struct { /* ListSipCredential Method for ListSipCredential Retrieve a list of credentials. - * @param accountSid The unique id of the Account that is responsible for this resource. - * @param credentialListSid The unique id that identifies the credential list that contains the desired credentials. + * @param AccountSid The unique id of the Account that is responsible for this resource. + * @param CredentialListSid The unique id that identifies the credential list that contains the desired credentials. * @param optional nil or *ListSipCredentialOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountSipSipCredentialListSipCredentialReadResponse */ -func (c *DefaultApiService) ListSipCredential(accountSid string, credentialListSid string, params *ListSipCredentialParams) (*ApiV2010AccountSipSipCredentialListSipCredentialReadResponse, error) { +func (c *DefaultApiService) ListSipCredential(AccountSid string, CredentialListSid string, params *ListSipCredentialParams) (*ApiV2010AccountSipSipCredentialListSipCredentialReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CredentialListSid"+"}", credentialListSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"CredentialListSid"+"}", CredentialListSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -7509,20 +7661,21 @@ type ListSipCredentialListParams struct { /* ListSipCredentialList Method for ListSipCredentialList Get All Credential Lists - * @param accountSid The unique id of the Account that is responsible for this resource. + * @param AccountSid The unique id of the Account that is responsible for this resource. * @param optional nil or *ListSipCredentialListOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountSipSipCredentialListReadResponse */ -func (c *DefaultApiService) ListSipCredentialList(accountSid string, params *ListSipCredentialListParams) (*ApiV2010AccountSipSipCredentialListReadResponse, error) { +func (c *DefaultApiService) ListSipCredentialList(AccountSid string, params *ListSipCredentialListParams) (*ApiV2010AccountSipSipCredentialListReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -7548,22 +7701,23 @@ type ListSipCredentialListMappingParams struct { /* ListSipCredentialListMapping Method for ListSipCredentialListMapping Read multiple CredentialListMapping resources from an account. - * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. - * @param domainSid A 34 character string that uniquely identifies the SIP Domain that includes the resource to read. + * @param AccountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param DomainSid A 34 character string that uniquely identifies the SIP Domain that includes the resource to read. * @param optional nil or *ListSipCredentialListMappingOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse */ -func (c *DefaultApiService) ListSipCredentialListMapping(accountSid string, domainSid string, params *ListSipCredentialListMappingParams) (*ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse, error) { +func (c *DefaultApiService) ListSipCredentialListMapping(AccountSid string, DomainSid string, params *ListSipCredentialListMappingParams) (*ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -7589,20 +7743,21 @@ type ListSipDomainParams struct { /* ListSipDomain Method for ListSipDomain Retrieve a list of domains belonging to the account used to make the request - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resources to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resources to read. * @param optional nil or *ListSipDomainOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountSipSipDomainReadResponse */ -func (c *DefaultApiService) ListSipDomain(accountSid string, params *ListSipDomainParams) (*ApiV2010AccountSipSipDomainReadResponse, error) { +func (c *DefaultApiService) ListSipDomain(AccountSid string, params *ListSipDomainParams) (*ApiV2010AccountSipSipDomainReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -7628,20 +7783,21 @@ type ListSipIpAccessControlListParams struct { /* ListSipIpAccessControlList Method for ListSipIpAccessControlList Retrieve a list of IpAccessControlLists that belong to the account used to make the request - * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param AccountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. * @param optional nil or *ListSipIpAccessControlListOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountSipSipIpAccessControlListReadResponse */ -func (c *DefaultApiService) ListSipIpAccessControlList(accountSid string, params *ListSipIpAccessControlListParams) (*ApiV2010AccountSipSipIpAccessControlListReadResponse, error) { +func (c *DefaultApiService) ListSipIpAccessControlList(AccountSid string, params *ListSipIpAccessControlListParams) (*ApiV2010AccountSipSipIpAccessControlListReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -7667,22 +7823,23 @@ type ListSipIpAccessControlListMappingParams struct { /* ListSipIpAccessControlListMapping Method for ListSipIpAccessControlListMapping Retrieve a list of IpAccessControlListMapping resources. - * @param accountSid The unique id of the Account that is responsible for this resource. - * @param domainSid A 34 character string that uniquely identifies the SIP domain. + * @param AccountSid The unique id of the Account that is responsible for this resource. + * @param DomainSid A 34 character string that uniquely identifies the SIP domain. * @param optional nil or *ListSipIpAccessControlListMappingOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse */ -func (c *DefaultApiService) ListSipIpAccessControlListMapping(accountSid string, domainSid string, params *ListSipIpAccessControlListMappingParams) (*ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse, error) { +func (c *DefaultApiService) ListSipIpAccessControlListMapping(AccountSid string, DomainSid string, params *ListSipIpAccessControlListMappingParams) (*ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"DomainSid"+"}", domainSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -7708,22 +7865,23 @@ type ListSipIpAddressParams struct { /* ListSipIpAddress Method for ListSipIpAddress Read multiple IpAddress resources. - * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. - * @param ipAccessControlListSid The IpAccessControlList Sid that identifies the IpAddress resources to read. + * @param AccountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param IpAccessControlListSid The IpAccessControlList Sid that identifies the IpAddress resources to read. * @param optional nil or *ListSipIpAddressOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse */ -func (c *DefaultApiService) ListSipIpAddress(accountSid string, ipAccessControlListSid string, params *ListSipIpAddressParams) (*ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse, error) { +func (c *DefaultApiService) ListSipIpAddress(AccountSid string, IpAccessControlListSid string, params *ListSipIpAddressParams) (*ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"IpAccessControlListSid"+"}", ipAccessControlListSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"IpAccessControlListSid"+"}", IpAccessControlListSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -7749,20 +7907,21 @@ type ListTranscriptionParams struct { /* ListTranscription Method for ListTranscription Retrieve a list of transcriptions belonging to the account used to make the request - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to read. * @param optional nil or *ListTranscriptionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountTranscriptionReadResponse */ -func (c *DefaultApiService) ListTranscription(accountSid string, params *ListTranscriptionParams) (*ApiV2010AccountTranscriptionReadResponse, error) { +func (c *DefaultApiService) ListTranscription(AccountSid string, params *ListTranscriptionParams) (*ApiV2010AccountTranscriptionReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Transcriptions.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -7792,7 +7951,7 @@ type ListUsageRecordParams struct { /* ListUsageRecord Method for ListUsageRecord Retrieve a list of usage-records belonging to the account used to make the request - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. * @param optional nil or *ListUsageRecordOpts - Optional Parameters: * @param "Category" (string) - 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. * @param "StartDate" (time.Time) - 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. @@ -7801,27 +7960,28 @@ Retrieve a list of usage-records belonging to the account used to make the reque * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountUsageUsageRecordReadResponse */ -func (c *DefaultApiService) ListUsageRecord(accountSid string, params *ListUsageRecordParams) (*ApiV2010AccountUsageUsageRecordReadResponse, error) { +func (c *DefaultApiService) ListUsageRecord(AccountSid string, params *ListUsageRecordParams) (*ApiV2010AccountUsageUsageRecordReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Category != nil { - data.Set("Category", *params.Category) + data.Set("Category", *params.Category) } if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) + data.Set("StartDate", fmt.Sprint(*params.StartDate)) } if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) + data.Set("EndDate", fmt.Sprint(*params.EndDate)) } if params != nil && params.IncludeSubaccounts != nil { - data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) + data.Set("IncludeSubaccounts", fmt.Sprint(*params.IncludeSubaccounts)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -7850,7 +8010,7 @@ type ListUsageRecordAllTimeParams struct { /* ListUsageRecordAllTime Method for ListUsageRecordAllTime - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. * @param optional nil or *ListUsageRecordAllTimeOpts - Optional Parameters: * @param "Category" (string) - 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. * @param "StartDate" (time.Time) - 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. @@ -7859,27 +8019,28 @@ ListUsageRecordAllTime Method for ListUsageRecordAllTime * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse */ -func (c *DefaultApiService) ListUsageRecordAllTime(accountSid string, params *ListUsageRecordAllTimeParams) (*ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse, error) { +func (c *DefaultApiService) ListUsageRecordAllTime(AccountSid string, params *ListUsageRecordAllTimeParams) (*ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/AllTime.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Category != nil { - data.Set("Category", *params.Category) + data.Set("Category", *params.Category) } if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) + data.Set("StartDate", fmt.Sprint(*params.StartDate)) } if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) + data.Set("EndDate", fmt.Sprint(*params.EndDate)) } if params != nil && params.IncludeSubaccounts != nil { - data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) + data.Set("IncludeSubaccounts", fmt.Sprint(*params.IncludeSubaccounts)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -7908,7 +8069,7 @@ type ListUsageRecordDailyParams struct { /* ListUsageRecordDaily Method for ListUsageRecordDaily - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. * @param optional nil or *ListUsageRecordDailyOpts - Optional Parameters: * @param "Category" (string) - 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. * @param "StartDate" (time.Time) - 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. @@ -7917,27 +8078,28 @@ ListUsageRecordDaily Method for ListUsageRecordDaily * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse */ -func (c *DefaultApiService) ListUsageRecordDaily(accountSid string, params *ListUsageRecordDailyParams) (*ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse, error) { +func (c *DefaultApiService) ListUsageRecordDaily(AccountSid string, params *ListUsageRecordDailyParams) (*ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/Daily.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Category != nil { - data.Set("Category", *params.Category) + data.Set("Category", *params.Category) } if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) + data.Set("StartDate", fmt.Sprint(*params.StartDate)) } if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) + data.Set("EndDate", fmt.Sprint(*params.EndDate)) } if params != nil && params.IncludeSubaccounts != nil { - data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) + data.Set("IncludeSubaccounts", fmt.Sprint(*params.IncludeSubaccounts)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -7966,7 +8128,7 @@ type ListUsageRecordLastMonthParams struct { /* ListUsageRecordLastMonth Method for ListUsageRecordLastMonth - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. * @param optional nil or *ListUsageRecordLastMonthOpts - Optional Parameters: * @param "Category" (string) - 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. * @param "StartDate" (time.Time) - 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. @@ -7975,27 +8137,28 @@ ListUsageRecordLastMonth Method for ListUsageRecordLastMonth * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse */ -func (c *DefaultApiService) ListUsageRecordLastMonth(accountSid string, params *ListUsageRecordLastMonthParams) (*ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse, error) { +func (c *DefaultApiService) ListUsageRecordLastMonth(AccountSid string, params *ListUsageRecordLastMonthParams) (*ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/LastMonth.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Category != nil { - data.Set("Category", *params.Category) + data.Set("Category", *params.Category) } if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) + data.Set("StartDate", fmt.Sprint(*params.StartDate)) } if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) + data.Set("EndDate", fmt.Sprint(*params.EndDate)) } if params != nil && params.IncludeSubaccounts != nil { - data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) + data.Set("IncludeSubaccounts", fmt.Sprint(*params.IncludeSubaccounts)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -8024,7 +8187,7 @@ type ListUsageRecordMonthlyParams struct { /* ListUsageRecordMonthly Method for ListUsageRecordMonthly - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. * @param optional nil or *ListUsageRecordMonthlyOpts - Optional Parameters: * @param "Category" (string) - 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. * @param "StartDate" (time.Time) - 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. @@ -8033,27 +8196,28 @@ ListUsageRecordMonthly Method for ListUsageRecordMonthly * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse */ -func (c *DefaultApiService) ListUsageRecordMonthly(accountSid string, params *ListUsageRecordMonthlyParams) (*ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse, error) { +func (c *DefaultApiService) ListUsageRecordMonthly(AccountSid string, params *ListUsageRecordMonthlyParams) (*ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/Monthly.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Category != nil { - data.Set("Category", *params.Category) + data.Set("Category", *params.Category) } if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) + data.Set("StartDate", fmt.Sprint(*params.StartDate)) } if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) + data.Set("EndDate", fmt.Sprint(*params.EndDate)) } if params != nil && params.IncludeSubaccounts != nil { - data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) + data.Set("IncludeSubaccounts", fmt.Sprint(*params.IncludeSubaccounts)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -8082,7 +8246,7 @@ type ListUsageRecordThisMonthParams struct { /* ListUsageRecordThisMonth Method for ListUsageRecordThisMonth - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. * @param optional nil or *ListUsageRecordThisMonthOpts - Optional Parameters: * @param "Category" (string) - 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. * @param "StartDate" (time.Time) - 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. @@ -8091,27 +8255,28 @@ ListUsageRecordThisMonth Method for ListUsageRecordThisMonth * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse */ -func (c *DefaultApiService) ListUsageRecordThisMonth(accountSid string, params *ListUsageRecordThisMonthParams) (*ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse, error) { +func (c *DefaultApiService) ListUsageRecordThisMonth(AccountSid string, params *ListUsageRecordThisMonthParams) (*ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/ThisMonth.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Category != nil { - data.Set("Category", *params.Category) + data.Set("Category", *params.Category) } if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) + data.Set("StartDate", fmt.Sprint(*params.StartDate)) } if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) + data.Set("EndDate", fmt.Sprint(*params.EndDate)) } if params != nil && params.IncludeSubaccounts != nil { - data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) + data.Set("IncludeSubaccounts", fmt.Sprint(*params.IncludeSubaccounts)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -8140,7 +8305,7 @@ type ListUsageRecordTodayParams struct { /* ListUsageRecordToday Method for ListUsageRecordToday - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. * @param optional nil or *ListUsageRecordTodayOpts - Optional Parameters: * @param "Category" (string) - 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. * @param "StartDate" (time.Time) - 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. @@ -8149,27 +8314,28 @@ ListUsageRecordToday Method for ListUsageRecordToday * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse */ -func (c *DefaultApiService) ListUsageRecordToday(accountSid string, params *ListUsageRecordTodayParams) (*ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse, error) { +func (c *DefaultApiService) ListUsageRecordToday(AccountSid string, params *ListUsageRecordTodayParams) (*ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/Today.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Category != nil { - data.Set("Category", *params.Category) + data.Set("Category", *params.Category) } if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) + data.Set("StartDate", fmt.Sprint(*params.StartDate)) } if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) + data.Set("EndDate", fmt.Sprint(*params.EndDate)) } if params != nil && params.IncludeSubaccounts != nil { - data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) + data.Set("IncludeSubaccounts", fmt.Sprint(*params.IncludeSubaccounts)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -8198,7 +8364,7 @@ type ListUsageRecordYearlyParams struct { /* ListUsageRecordYearly Method for ListUsageRecordYearly - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. * @param optional nil or *ListUsageRecordYearlyOpts - Optional Parameters: * @param "Category" (string) - 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. * @param "StartDate" (time.Time) - 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. @@ -8207,27 +8373,28 @@ ListUsageRecordYearly Method for ListUsageRecordYearly * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse */ -func (c *DefaultApiService) ListUsageRecordYearly(accountSid string, params *ListUsageRecordYearlyParams) (*ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse, error) { +func (c *DefaultApiService) ListUsageRecordYearly(AccountSid string, params *ListUsageRecordYearlyParams) (*ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/Yearly.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Category != nil { - data.Set("Category", *params.Category) + data.Set("Category", *params.Category) } if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) + data.Set("StartDate", fmt.Sprint(*params.StartDate)) } if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) + data.Set("EndDate", fmt.Sprint(*params.EndDate)) } if params != nil && params.IncludeSubaccounts != nil { - data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) + data.Set("IncludeSubaccounts", fmt.Sprint(*params.IncludeSubaccounts)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -8256,7 +8423,7 @@ type ListUsageRecordYesterdayParams struct { /* ListUsageRecordYesterday Method for ListUsageRecordYesterday - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. * @param optional nil or *ListUsageRecordYesterdayOpts - Optional Parameters: * @param "Category" (string) - 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. * @param "StartDate" (time.Time) - 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. @@ -8265,27 +8432,28 @@ ListUsageRecordYesterday Method for ListUsageRecordYesterday * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse */ -func (c *DefaultApiService) ListUsageRecordYesterday(accountSid string, params *ListUsageRecordYesterdayParams) (*ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse, error) { +func (c *DefaultApiService) ListUsageRecordYesterday(AccountSid string, params *ListUsageRecordYesterdayParams) (*ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/Yesterday.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Category != nil { - data.Set("Category", *params.Category) + data.Set("Category", *params.Category) } if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) + data.Set("StartDate", fmt.Sprint(*params.StartDate)) } if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) + data.Set("EndDate", fmt.Sprint(*params.EndDate)) } if params != nil && params.IncludeSubaccounts != nil { - data.Set("IncludeSubaccounts", string(*params.IncludeSubaccounts)) + data.Set("IncludeSubaccounts", fmt.Sprint(*params.IncludeSubaccounts)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -8314,7 +8482,7 @@ type ListUsageTriggerParams struct { /* ListUsageTrigger Method for ListUsageTrigger Retrieve a list of usage-triggers belonging to the account used to make the request - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resources to read. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resources to read. * @param optional nil or *ListUsageTriggerOpts - Optional Parameters: * @param "Recurring" (string) - 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. * @param "TriggerBy" (string) - 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). @@ -8322,24 +8490,25 @@ Retrieve a list of usage-triggers belonging to the account used to make the requ * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountUsageUsageTriggerReadResponse */ -func (c *DefaultApiService) ListUsageTrigger(accountSid string, params *ListUsageTriggerParams) (*ApiV2010AccountUsageUsageTriggerReadResponse, error) { +func (c *DefaultApiService) ListUsageTrigger(AccountSid string, params *ListUsageTriggerParams) (*ApiV2010AccountUsageUsageTriggerReadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Triggers.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Recurring != nil { - data.Set("Recurring", *params.Recurring) + data.Set("Recurring", *params.Recurring) } if params != nil && params.TriggerBy != nil { - data.Set("TriggerBy", *params.TriggerBy) + data.Set("TriggerBy", *params.TriggerBy) } if params != nil && params.UsageCategory != nil { - data.Set("UsageCategory", *params.UsageCategory) + data.Set("UsageCategory", *params.UsageCategory) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -8366,24 +8535,25 @@ type UpdateAccountParams struct { /* UpdateAccount Method for UpdateAccount Modify the properties of a given Account - * @param sid The Account Sid that uniquely identifies the account to update + * @param Sid The Account Sid that uniquely identifies the account to update * @param optional nil or *UpdateAccountOpts - Optional Parameters: * @param "FriendlyName" (string) - Update the human-readable description of this Account * @param "Status" (string) - Alter the status of this account: use `closed` to irreversibly close this account, `suspended` to temporarily suspend it, or `active` to reactivate it. @return ApiV2010Account */ -func (c *DefaultApiService) UpdateAccount(sid string, params *UpdateAccountParams) (*ApiV2010Account, error) { +func (c *DefaultApiService) UpdateAccount(Sid string, params *UpdateAccountParams) (*ApiV2010Account, error) { path := "/2010-04-01/Accounts/{Sid}.json" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } @@ -8415,8 +8585,8 @@ type UpdateAddressParams struct { /* UpdateAddress Method for UpdateAddress - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to update. - * @param sid The Twilio-provided string that uniquely identifies the Address resource to update. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to update. + * @param Sid The Twilio-provided string that uniquely identifies the Address resource to update. * @param optional nil or *UpdateAddressOpts - Optional Parameters: * @param "AutoCorrectAddress" (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. * @param "City" (string) - The city of the address. @@ -8428,37 +8598,38 @@ UpdateAddress Method for UpdateAddress * @param "Street" (string) - The number and street address of the address. @return ApiV2010AccountAddress */ -func (c *DefaultApiService) UpdateAddress(accountSid string, sid string, params *UpdateAddressParams) (*ApiV2010AccountAddress, error) { +func (c *DefaultApiService) UpdateAddress(AccountSid string, Sid string, params *UpdateAddressParams) (*ApiV2010AccountAddress, error) { path := "/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.AutoCorrectAddress != nil { - data.Set("AutoCorrectAddress", string(*params.AutoCorrectAddress)) + data.Set("AutoCorrectAddress", fmt.Sprint(*params.AutoCorrectAddress)) } if params != nil && params.City != nil { - data.Set("City", *params.City) + data.Set("City", *params.City) } if params != nil && params.CustomerName != nil { - data.Set("CustomerName", *params.CustomerName) + data.Set("CustomerName", *params.CustomerName) } if params != nil && params.EmergencyEnabled != nil { - data.Set("EmergencyEnabled", string(*params.EmergencyEnabled)) + data.Set("EmergencyEnabled", fmt.Sprint(*params.EmergencyEnabled)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.PostalCode != nil { - data.Set("PostalCode", *params.PostalCode) + data.Set("PostalCode", *params.PostalCode) } if params != nil && params.Region != nil { - data.Set("Region", *params.Region) + data.Set("Region", *params.Region) } if params != nil && params.Street != nil { - data.Set("Street", *params.Street) + data.Set("Street", *params.Street) } @@ -8498,8 +8669,8 @@ type UpdateApplicationParams struct { /* UpdateApplication Method for UpdateApplication Updates the application's properties - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resources to update. - * @param sid The Twilio-provided string that uniquely identifies the Application resource to update. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resources to update. + * @param Sid The Twilio-provided string that uniquely identifies the Application resource to update. * @param optional nil or *UpdateApplicationOpts - Optional Parameters: * @param "ApiVersion" (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. * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. @@ -8518,58 +8689,59 @@ Updates the application's properties * @param "VoiceUrl" (string) - The URL we should call when the phone number assigned to this application receives a call. @return ApiV2010AccountApplication */ -func (c *DefaultApiService) UpdateApplication(accountSid string, sid string, params *UpdateApplicationParams) (*ApiV2010AccountApplication, error) { +func (c *DefaultApiService) UpdateApplication(AccountSid string, Sid string, params *UpdateApplicationParams) (*ApiV2010AccountApplication, error) { path := "/2010-04-01/Accounts/{AccountSid}/Applications/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.ApiVersion != nil { - data.Set("ApiVersion", *params.ApiVersion) + data.Set("ApiVersion", *params.ApiVersion) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.MessageStatusCallback != nil { - data.Set("MessageStatusCallback", *params.MessageStatusCallback) + data.Set("MessageStatusCallback", *params.MessageStatusCallback) } if params != nil && params.SmsFallbackMethod != nil { - data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) + data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) } if params != nil && params.SmsFallbackUrl != nil { - data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) + data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) } if params != nil && params.SmsMethod != nil { - data.Set("SmsMethod", *params.SmsMethod) + data.Set("SmsMethod", *params.SmsMethod) } if params != nil && params.SmsStatusCallback != nil { - data.Set("SmsStatusCallback", *params.SmsStatusCallback) + data.Set("SmsStatusCallback", *params.SmsStatusCallback) } if params != nil && params.SmsUrl != nil { - data.Set("SmsUrl", *params.SmsUrl) + data.Set("SmsUrl", *params.SmsUrl) } if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) + data.Set("StatusCallback", *params.StatusCallback) } if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) } if params != nil && params.VoiceCallerIdLookup != nil { - data.Set("VoiceCallerIdLookup", string(*params.VoiceCallerIdLookup)) + data.Set("VoiceCallerIdLookup", fmt.Sprint(*params.VoiceCallerIdLookup)) } if params != nil && params.VoiceFallbackMethod != nil { - data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) } if params != nil && params.VoiceFallbackUrl != nil { - data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) } if params != nil && params.VoiceMethod != nil { - data.Set("VoiceMethod", *params.VoiceMethod) + data.Set("VoiceMethod", *params.VoiceMethod) } if params != nil && params.VoiceUrl != nil { - data.Set("VoiceUrl", *params.VoiceUrl) + data.Set("VoiceUrl", *params.VoiceUrl) } @@ -8602,8 +8774,8 @@ type UpdateCallParams struct { /* UpdateCall Method for UpdateCall Initiates a call redirect or terminates a call - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to update. - * @param sid The Twilio-provided string that uniquely identifies the Call resource to update + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to update. + * @param Sid The Twilio-provided string that uniquely identifies the Call resource to update * @param optional nil or *UpdateCallOpts - Optional Parameters: * @param "FallbackMethod" (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. * @param "FallbackUrl" (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. @@ -8615,37 +8787,38 @@ Initiates a call redirect or terminates a call * @param "Url" (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). @return ApiV2010AccountCall */ -func (c *DefaultApiService) UpdateCall(accountSid string, sid string, params *UpdateCallParams) (*ApiV2010AccountCall, error) { +func (c *DefaultApiService) UpdateCall(AccountSid string, Sid string, params *UpdateCallParams) (*ApiV2010AccountCall, error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.FallbackMethod != nil { - data.Set("FallbackMethod", *params.FallbackMethod) + data.Set("FallbackMethod", *params.FallbackMethod) } if params != nil && params.FallbackUrl != nil { - data.Set("FallbackUrl", *params.FallbackUrl) + data.Set("FallbackUrl", *params.FallbackUrl) } if params != nil && params.Method != nil { - data.Set("Method", *params.Method) + data.Set("Method", *params.Method) } if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) + data.Set("StatusCallback", *params.StatusCallback) } if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) } if params != nil && params.Twiml != nil { - data.Set("Twiml", *params.Twiml) + data.Set("Twiml", *params.Twiml) } if params != nil && params.Url != nil { - data.Set("Url", *params.Url) + data.Set("Url", *params.Url) } @@ -8672,26 +8845,27 @@ type UpdateCallFeedbackParams struct { /* UpdateCallFeedback Method for UpdateCallFeedback Update a Feedback resource for a call - * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. - * @param callSid The call sid that uniquely identifies the call + * @param AccountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param CallSid The call sid that uniquely identifies the call * @param optional nil or *UpdateCallFeedbackOpts - Optional Parameters: * @param "Issue" ([]string) - 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`. * @param "QualityScore" (int32) - The call quality expressed as an integer from `1` to `5` where `1` represents very poor call quality and `5` represents a perfect call. @return ApiV2010AccountCallCallFeedback */ -func (c *DefaultApiService) UpdateCallFeedback(accountSid string, callSid string, params *UpdateCallFeedbackParams) (*ApiV2010AccountCallCallFeedback, error) { +func (c *DefaultApiService) UpdateCallFeedback(AccountSid string, CallSid string, params *UpdateCallFeedbackParams) (*ApiV2010AccountCallCallFeedback, error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Feedback.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", CallSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Issue != nil { - data.Set("Issue", *params.Issue) + data.Set("Issue", strings.Join(*params.Issue, ",")) } if params != nil && params.QualityScore != nil { - data.Set("QualityScore", string(*params.QualityScore)) + data.Set("QualityScore", fmt.Sprint(*params.QualityScore)) } @@ -8718,28 +8892,29 @@ type UpdateCallRecordingParams struct { /* UpdateCallRecording Method for UpdateCallRecording 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. - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource to update. - * @param callSid The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource to update. - * @param sid The Twilio-provided string that uniquely identifies the Recording resource to update. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource to update. + * @param CallSid The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource to update. + * @param Sid The Twilio-provided string that uniquely identifies the Recording resource to update. * @param optional nil or *UpdateCallRecordingOpts - Optional Parameters: * @param "PauseBehavior" (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`. * @param "Status" (string) - The new status of the recording. Can be: `stopped`, `paused`, `in-progress`. @return ApiV2010AccountCallCallRecording */ -func (c *DefaultApiService) UpdateCallRecording(accountSid string, callSid string, sid string, params *UpdateCallRecordingParams) (*ApiV2010AccountCallCallRecording, error) { +func (c *DefaultApiService) UpdateCallRecording(AccountSid string, CallSid string, Sid string, params *UpdateCallRecordingParams) (*ApiV2010AccountCallCallRecording, error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", CallSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.PauseBehavior != nil { - data.Set("PauseBehavior", *params.PauseBehavior) + data.Set("PauseBehavior", *params.PauseBehavior) } if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } @@ -8766,30 +8941,31 @@ type UpdateConferenceParams struct { /* UpdateConference Method for UpdateConference - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference resource(s) to update. - * @param sid The Twilio-provided string that uniquely identifies the Conference resource to update + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference resource(s) to update. + * @param Sid The Twilio-provided string that uniquely identifies the Conference resource to update * @param optional nil or *UpdateConferenceOpts - Optional Parameters: * @param "AnnounceMethod" (string) - The HTTP method used to call `announce_url`. Can be: `GET` or `POST` and the default is `POST` * @param "AnnounceUrl" (string) - The URL we should call to announce something into the conference. The URL can return an MP3, a WAV, or a TwiML document with `` or ``. * @param "Status" (string) - The new status of the resource. Can be: Can be: `init`, `in-progress`, or `completed`. Specifying `completed` will end the conference and hang up all participants @return ApiV2010AccountConference */ -func (c *DefaultApiService) UpdateConference(accountSid string, sid string, params *UpdateConferenceParams) (*ApiV2010AccountConference, error) { +func (c *DefaultApiService) UpdateConference(AccountSid string, Sid string, params *UpdateConferenceParams) (*ApiV2010AccountConference, error) { path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.AnnounceMethod != nil { - data.Set("AnnounceMethod", *params.AnnounceMethod) + data.Set("AnnounceMethod", *params.AnnounceMethod) } if params != nil && params.AnnounceUrl != nil { - data.Set("AnnounceUrl", *params.AnnounceUrl) + data.Set("AnnounceUrl", *params.AnnounceUrl) } if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } @@ -8816,28 +8992,29 @@ type UpdateConferenceRecordingParams struct { /* UpdateConferenceRecording Method for UpdateConferenceRecording Changes the status of the recording to paused, stopped, or in-progress. Note: To use `Twilio.CURRENT`, pass it as recording sid. - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resource to update. - * @param conferenceSid The Conference SID that identifies the conference associated with the recording to update. - * @param sid The Twilio-provided string that uniquely identifies the Conference Recording resource to update. Use `Twilio.CURRENT` to reference the current active recording. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resource to update. + * @param ConferenceSid The Conference SID that identifies the conference associated with the recording to update. + * @param Sid The Twilio-provided string that uniquely identifies the Conference Recording resource to update. Use `Twilio.CURRENT` to reference the current active recording. * @param optional nil or *UpdateConferenceRecordingOpts - Optional Parameters: * @param "PauseBehavior" (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`. * @param "Status" (string) - The new status of the recording. Can be: `stopped`, `paused`, `in-progress`. @return ApiV2010AccountConferenceConferenceRecording */ -func (c *DefaultApiService) UpdateConferenceRecording(accountSid string, conferenceSid string, sid string, params *UpdateConferenceRecordingParams) (*ApiV2010AccountConferenceConferenceRecording, error) { +func (c *DefaultApiService) UpdateConferenceRecording(AccountSid string, ConferenceSid string, Sid string, params *UpdateConferenceRecordingParams) (*ApiV2010AccountConferenceConferenceRecording, error) { path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ConferenceSid"+"}", conferenceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"ConferenceSid"+"}", ConferenceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.PauseBehavior != nil { - data.Set("PauseBehavior", *params.PauseBehavior) + data.Set("PauseBehavior", *params.PauseBehavior) } if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } @@ -8870,8 +9047,8 @@ type UpdateConnectAppParams struct { /* UpdateConnectApp Method for UpdateConnectApp Update a connect-app with the specified parameters - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resources to update. - * @param sid The Twilio-provided string that uniquely identifies the ConnectApp resource to update. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resources to update. + * @param Sid The Twilio-provided string that uniquely identifies the ConnectApp resource to update. * @param optional nil or *UpdateConnectAppOpts - Optional Parameters: * @param "AuthorizeRedirectUrl" (string) - The URL to redirect the user to after we authenticate the user and obtain authorization to access the Connect App. * @param "CompanyName" (string) - The company name to set for the Connect App. @@ -8883,37 +9060,38 @@ Update a connect-app with the specified parameters * @param "Permissions" ([]string) - A comma-separated list of the permissions you will request from the users of this ConnectApp. Can include: `get-all` and `post-all`. @return ApiV2010AccountConnectApp */ -func (c *DefaultApiService) UpdateConnectApp(accountSid string, sid string, params *UpdateConnectAppParams) (*ApiV2010AccountConnectApp, error) { +func (c *DefaultApiService) UpdateConnectApp(AccountSid string, Sid string, params *UpdateConnectAppParams) (*ApiV2010AccountConnectApp, error) { path := "/2010-04-01/Accounts/{AccountSid}/ConnectApps/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.AuthorizeRedirectUrl != nil { - data.Set("AuthorizeRedirectUrl", *params.AuthorizeRedirectUrl) + data.Set("AuthorizeRedirectUrl", *params.AuthorizeRedirectUrl) } if params != nil && params.CompanyName != nil { - data.Set("CompanyName", *params.CompanyName) + data.Set("CompanyName", *params.CompanyName) } if params != nil && params.DeauthorizeCallbackMethod != nil { - data.Set("DeauthorizeCallbackMethod", *params.DeauthorizeCallbackMethod) + data.Set("DeauthorizeCallbackMethod", *params.DeauthorizeCallbackMethod) } if params != nil && params.DeauthorizeCallbackUrl != nil { - data.Set("DeauthorizeCallbackUrl", *params.DeauthorizeCallbackUrl) + data.Set("DeauthorizeCallbackUrl", *params.DeauthorizeCallbackUrl) } if params != nil && params.Description != nil { - data.Set("Description", *params.Description) + data.Set("Description", *params.Description) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.HomepageUrl != nil { - data.Set("HomepageUrl", *params.HomepageUrl) + data.Set("HomepageUrl", *params.HomepageUrl) } if params != nil && params.Permissions != nil { - data.Set("Permissions", *params.Permissions) + data.Set("Permissions", strings.Join(*params.Permissions, ",")) } @@ -8961,8 +9139,8 @@ type UpdateIncomingPhoneNumberParams struct { /* UpdateIncomingPhoneNumber Method for UpdateIncomingPhoneNumber Update an incoming-phone-number instance. - * @param accountSid 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). - * @param sid The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to update. + * @param AccountSid 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). + * @param Sid The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to update. * @param optional nil or *UpdateIncomingPhoneNumberOpts - Optional Parameters: * @param "AccountSid" (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). * @param "AddressSid" (string) - The SID of the Address resource we should associate with the phone number. Some regions require addresses to meet local regulations. @@ -8989,82 +9167,83 @@ Update an incoming-phone-number instance. * @param "VoiceUrl" (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. @return ApiV2010AccountIncomingPhoneNumber */ -func (c *DefaultApiService) UpdateIncomingPhoneNumber(accountSid string, sid string, params *UpdateIncomingPhoneNumberParams) (*ApiV2010AccountIncomingPhoneNumber, error) { +func (c *DefaultApiService) UpdateIncomingPhoneNumber(AccountSid string, Sid string, params *UpdateIncomingPhoneNumberParams) (*ApiV2010AccountIncomingPhoneNumber, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.AccountSid != nil { - data.Set("AccountSid", *params.AccountSid) + data.Set("AccountSid", *params.AccountSid) } if params != nil && params.AddressSid != nil { - data.Set("AddressSid", *params.AddressSid) + data.Set("AddressSid", *params.AddressSid) } if params != nil && params.ApiVersion != nil { - data.Set("ApiVersion", *params.ApiVersion) + data.Set("ApiVersion", *params.ApiVersion) } if params != nil && params.BundleSid != nil { - data.Set("BundleSid", *params.BundleSid) + data.Set("BundleSid", *params.BundleSid) } if params != nil && params.EmergencyAddressSid != nil { - data.Set("EmergencyAddressSid", *params.EmergencyAddressSid) + data.Set("EmergencyAddressSid", *params.EmergencyAddressSid) } if params != nil && params.EmergencyStatus != nil { - data.Set("EmergencyStatus", *params.EmergencyStatus) + data.Set("EmergencyStatus", *params.EmergencyStatus) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.IdentitySid != nil { - data.Set("IdentitySid", *params.IdentitySid) + data.Set("IdentitySid", *params.IdentitySid) } if params != nil && params.SmsApplicationSid != nil { - data.Set("SmsApplicationSid", *params.SmsApplicationSid) + data.Set("SmsApplicationSid", *params.SmsApplicationSid) } if params != nil && params.SmsFallbackMethod != nil { - data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) + data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) } if params != nil && params.SmsFallbackUrl != nil { - data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) + data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) } if params != nil && params.SmsMethod != nil { - data.Set("SmsMethod", *params.SmsMethod) + data.Set("SmsMethod", *params.SmsMethod) } if params != nil && params.SmsUrl != nil { - data.Set("SmsUrl", *params.SmsUrl) + data.Set("SmsUrl", *params.SmsUrl) } if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) + data.Set("StatusCallback", *params.StatusCallback) } if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) } if params != nil && params.TrunkSid != nil { - data.Set("TrunkSid", *params.TrunkSid) + data.Set("TrunkSid", *params.TrunkSid) } if params != nil && params.VoiceApplicationSid != nil { - data.Set("VoiceApplicationSid", *params.VoiceApplicationSid) + data.Set("VoiceApplicationSid", *params.VoiceApplicationSid) } if params != nil && params.VoiceCallerIdLookup != nil { - data.Set("VoiceCallerIdLookup", string(*params.VoiceCallerIdLookup)) + data.Set("VoiceCallerIdLookup", fmt.Sprint(*params.VoiceCallerIdLookup)) } if params != nil && params.VoiceFallbackMethod != nil { - data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) } if params != nil && params.VoiceFallbackUrl != nil { - data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) } if params != nil && params.VoiceMethod != nil { - data.Set("VoiceMethod", *params.VoiceMethod) + data.Set("VoiceMethod", *params.VoiceMethod) } if params != nil && params.VoiceReceiveMode != nil { - data.Set("VoiceReceiveMode", *params.VoiceReceiveMode) + data.Set("VoiceReceiveMode", *params.VoiceReceiveMode) } if params != nil && params.VoiceUrl != nil { - data.Set("VoiceUrl", *params.VoiceUrl) + data.Set("VoiceUrl", *params.VoiceUrl) } @@ -9089,22 +9268,23 @@ type UpdateKeyParams struct { /* UpdateKey Method for UpdateKey - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resources to update. - * @param sid The Twilio-provided string that uniquely identifies the Key resource to update. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resources to update. + * @param Sid The Twilio-provided string that uniquely identifies the Key resource to update. * @param optional nil or *UpdateKeyOpts - Optional Parameters: * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. @return ApiV2010AccountKey */ -func (c *DefaultApiService) UpdateKey(accountSid string, sid string, params *UpdateKeyParams) (*ApiV2010AccountKey, error) { +func (c *DefaultApiService) UpdateKey(AccountSid string, Sid string, params *UpdateKeyParams) (*ApiV2010AccountKey, error) { path := "/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -9131,28 +9311,29 @@ type UpdateMemberParams struct { /* UpdateMember Method for UpdateMember Dequeue a member from a queue and have the member's call begin executing the TwiML document at that URL - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Member resource(s) to update. - * @param queueSid The SID of the Queue in which to find the members to update. - * @param callSid The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource(s) to update. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Member resource(s) to update. + * @param QueueSid The SID of the Queue in which to find the members to update. + * @param CallSid The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource(s) to update. * @param optional nil or *UpdateMemberOpts - Optional Parameters: * @param "Method" (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. * @param "Url" (string) - The absolute URL of the Queue resource. @return ApiV2010AccountQueueMember */ -func (c *DefaultApiService) UpdateMember(accountSid string, queueSid string, callSid string, params *UpdateMemberParams) (*ApiV2010AccountQueueMember, error) { +func (c *DefaultApiService) UpdateMember(AccountSid string, QueueSid string, CallSid string, params *UpdateMemberParams) (*ApiV2010AccountQueueMember, error) { path := "/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"QueueSid"+"}", queueSid, -1) - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"QueueSid"+"}", QueueSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", CallSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Method != nil { - data.Set("Method", *params.Method) + data.Set("Method", *params.Method) } if params != nil && params.Url != nil { - data.Set("Url", *params.Url) + data.Set("Url", *params.Url) } @@ -9178,22 +9359,23 @@ type UpdateMessageParams struct { /* UpdateMessage Method for UpdateMessage To redact a message-body from a post-flight message record, post to the message instance resource with an empty body - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Message resources to update. - * @param sid The Twilio-provided string that uniquely identifies the Message resource to update. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Message resources to update. + * @param Sid The Twilio-provided string that uniquely identifies the Message resource to update. * @param optional nil or *UpdateMessageOpts - Optional Parameters: * @param "Body" (string) - The text of the message you want to send. Can be up to 1,600 characters long. @return ApiV2010AccountMessage */ -func (c *DefaultApiService) UpdateMessage(accountSid string, sid string, params *UpdateMessageParams) (*ApiV2010AccountMessage, error) { +func (c *DefaultApiService) UpdateMessage(AccountSid string, Sid string, params *UpdateMessageParams) (*ApiV2010AccountMessage, error) { path := "/2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.Body != nil { - data.Set("Body", *params.Body) + data.Set("Body", *params.Body) } @@ -9219,22 +9401,23 @@ type UpdateOutgoingCallerIdParams struct { /* UpdateOutgoingCallerId Method for UpdateOutgoingCallerId Updates the caller-id - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resources to update. - * @param sid The Twilio-provided string that uniquely identifies the OutgoingCallerId resource to update. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resources to update. + * @param Sid The Twilio-provided string that uniquely identifies the OutgoingCallerId resource to update. * @param optional nil or *UpdateOutgoingCallerIdOpts - Optional Parameters: * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. @return ApiV2010AccountOutgoingCallerId */ -func (c *DefaultApiService) UpdateOutgoingCallerId(accountSid string, sid string, params *UpdateOutgoingCallerIdParams) (*ApiV2010AccountOutgoingCallerId, error) { +func (c *DefaultApiService) UpdateOutgoingCallerId(AccountSid string, Sid string, params *UpdateOutgoingCallerIdParams) (*ApiV2010AccountOutgoingCallerId, error) { path := "/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -9271,9 +9454,9 @@ type UpdateParticipantParams struct { /* UpdateParticipant Method for UpdateParticipant Update the properties of the participant - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resources to update. - * @param conferenceSid The SID of the conference with the participant to update. - * @param callSid 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. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resources to update. + * @param ConferenceSid The SID of the conference with the participant to update. + * @param CallSid 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. * @param optional nil or *UpdateParticipantOpts - Optional Parameters: * @param "AnnounceMethod" (string) - The HTTP method we should use to call `announce_url`. Can be: `GET` or `POST` and defaults to `POST`. * @param "AnnounceUrl" (string) - The URL we call using the `announce_method` for an announcement to the participant. The URL must return an MP3 file, a WAV file, or a TwiML document that contains `` or `` commands. @@ -9289,50 +9472,51 @@ Update the properties of the participant * @param "WaitUrl" (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). @return ApiV2010AccountConferenceParticipant */ -func (c *DefaultApiService) UpdateParticipant(accountSid string, conferenceSid string, callSid string, params *UpdateParticipantParams) (*ApiV2010AccountConferenceParticipant, error) { +func (c *DefaultApiService) UpdateParticipant(AccountSid string, ConferenceSid string, CallSid string, params *UpdateParticipantParams) (*ApiV2010AccountConferenceParticipant, error) { path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants/{CallSid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"ConferenceSid"+"}", conferenceSid, -1) - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"ConferenceSid"+"}", ConferenceSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", CallSid, -1) + data := url.Values{} headers := 0 if params != nil && params.AnnounceMethod != nil { - data.Set("AnnounceMethod", *params.AnnounceMethod) + data.Set("AnnounceMethod", *params.AnnounceMethod) } if params != nil && params.AnnounceUrl != nil { - data.Set("AnnounceUrl", *params.AnnounceUrl) + data.Set("AnnounceUrl", *params.AnnounceUrl) } if params != nil && params.BeepOnExit != nil { - data.Set("BeepOnExit", string(*params.BeepOnExit)) + data.Set("BeepOnExit", fmt.Sprint(*params.BeepOnExit)) } if params != nil && params.CallSidToCoach != nil { - data.Set("CallSidToCoach", *params.CallSidToCoach) + data.Set("CallSidToCoach", *params.CallSidToCoach) } if params != nil && params.Coaching != nil { - data.Set("Coaching", string(*params.Coaching)) + data.Set("Coaching", fmt.Sprint(*params.Coaching)) } if params != nil && params.EndConferenceOnExit != nil { - data.Set("EndConferenceOnExit", string(*params.EndConferenceOnExit)) + data.Set("EndConferenceOnExit", fmt.Sprint(*params.EndConferenceOnExit)) } if params != nil && params.Hold != nil { - data.Set("Hold", string(*params.Hold)) + data.Set("Hold", fmt.Sprint(*params.Hold)) } if params != nil && params.HoldMethod != nil { - data.Set("HoldMethod", *params.HoldMethod) + data.Set("HoldMethod", *params.HoldMethod) } if params != nil && params.HoldUrl != nil { - data.Set("HoldUrl", *params.HoldUrl) + data.Set("HoldUrl", *params.HoldUrl) } if params != nil && params.Muted != nil { - data.Set("Muted", string(*params.Muted)) + data.Set("Muted", fmt.Sprint(*params.Muted)) } if params != nil && params.WaitMethod != nil { - data.Set("WaitMethod", *params.WaitMethod) + data.Set("WaitMethod", *params.WaitMethod) } if params != nil && params.WaitUrl != nil { - data.Set("WaitUrl", *params.WaitUrl) + data.Set("WaitUrl", *params.WaitUrl) } @@ -9361,9 +9545,9 @@ type UpdatePaymentsParams struct { /* UpdatePayments Method for UpdatePayments update an instance of payments with different phases of payment flows. - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will update the resource. - * @param callSid The SID of the call that will update the resource. This should be the same call sid that was used to create payments resource. - * @param sid The SID of Payments session that needs to be updated. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will update the resource. + * @param CallSid The SID of the call that will update the resource. This should be the same call sid that was used to create payments resource. + * @param Sid The SID of Payments session that needs to be updated. * @param optional nil or *UpdatePaymentsOpts - Optional Parameters: * @param "Capture" (string) - The piece of payment information that you wish the caller to enter. Must be one of `payment-card-number`, `expiration-date`, `security-code`, `postal-code`, `bank-routing-number`, or `bank-account-number`. * @param "IdempotencyKey" (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. @@ -9371,26 +9555,27 @@ update an instance of payments with different phases of payment flows. * @param "StatusCallback" (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. @return ApiV2010AccountCallPayments */ -func (c *DefaultApiService) UpdatePayments(accountSid string, callSid string, sid string, params *UpdatePaymentsParams) (*ApiV2010AccountCallPayments, error) { +func (c *DefaultApiService) UpdatePayments(AccountSid string, CallSid string, Sid string, params *UpdatePaymentsParams) (*ApiV2010AccountCallPayments, error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", CallSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.Capture != nil { - data.Set("Capture", *params.Capture) + data.Set("Capture", *params.Capture) } if params != nil && params.IdempotencyKey != nil { - data.Set("IdempotencyKey", *params.IdempotencyKey) + data.Set("IdempotencyKey", *params.IdempotencyKey) } if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) + data.Set("StatusCallback", *params.StatusCallback) } @@ -9417,26 +9602,27 @@ type UpdateQueueParams struct { /* UpdateQueue Method for UpdateQueue Update the queue with the new parameters - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resource to update. - * @param sid The Twilio-provided string that uniquely identifies the Queue resource to update + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resource to update. + * @param Sid The Twilio-provided string that uniquely identifies the Queue resource to update * @param optional nil or *UpdateQueueOpts - Optional Parameters: * @param "FriendlyName" (string) - A descriptive string that you created to describe this resource. It can be up to 64 characters long. * @param "MaxSize" (int32) - The maximum number of calls allowed to be in the queue. The default is 100. The maximum is 5000. @return ApiV2010AccountQueue */ -func (c *DefaultApiService) UpdateQueue(accountSid string, sid string, params *UpdateQueueParams) (*ApiV2010AccountQueue, error) { +func (c *DefaultApiService) UpdateQueue(AccountSid string, Sid string, params *UpdateQueueParams) (*ApiV2010AccountQueue, error) { path := "/2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.MaxSize != nil { - data.Set("MaxSize", string(*params.MaxSize)) + data.Set("MaxSize", fmt.Sprint(*params.MaxSize)) } @@ -9467,8 +9653,8 @@ type UpdateShortCodeParams struct { /* UpdateShortCode Method for UpdateShortCode Update a short code with the following parameters - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ShortCode resource(s) to update. - * @param sid The Twilio-provided string that uniquely identifies the ShortCode resource to update + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ShortCode resource(s) to update. + * @param Sid The Twilio-provided string that uniquely identifies the ShortCode resource to update * @param optional nil or *UpdateShortCodeOpts - Optional Parameters: * @param "ApiVersion" (string) - The API version to use to start a new TwiML session. Can be: `2010-04-01` or `2008-08-01`. * @param "FriendlyName" (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. @@ -9478,31 +9664,32 @@ Update a short code with the following parameters * @param "SmsUrl" (string) - The URL we should call when receiving an incoming SMS message to this short code. @return ApiV2010AccountShortCode */ -func (c *DefaultApiService) UpdateShortCode(accountSid string, sid string, params *UpdateShortCodeParams) (*ApiV2010AccountShortCode, error) { +func (c *DefaultApiService) UpdateShortCode(AccountSid string, Sid string, params *UpdateShortCodeParams) (*ApiV2010AccountShortCode, error) { path := "/2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.ApiVersion != nil { - data.Set("ApiVersion", *params.ApiVersion) + data.Set("ApiVersion", *params.ApiVersion) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.SmsFallbackMethod != nil { - data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) + data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) } if params != nil && params.SmsFallbackUrl != nil { - data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) + data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) } if params != nil && params.SmsMethod != nil { - data.Set("SmsMethod", *params.SmsMethod) + data.Set("SmsMethod", *params.SmsMethod) } if params != nil && params.SmsUrl != nil { - data.Set("SmsUrl", *params.SmsUrl) + data.Set("SmsUrl", *params.SmsUrl) } @@ -9527,22 +9714,23 @@ type UpdateSigningKeyParams struct { /* UpdateSigningKey Method for UpdateSigningKey - * @param accountSid - * @param sid + * @param AccountSid + * @param Sid * @param optional nil or *UpdateSigningKeyOpts - Optional Parameters: * @param "FriendlyName" (string) - @return ApiV2010AccountSigningKey */ -func (c *DefaultApiService) UpdateSigningKey(accountSid string, sid string, params *UpdateSigningKeyParams) (*ApiV2010AccountSigningKey, error) { +func (c *DefaultApiService) UpdateSigningKey(AccountSid string, Sid string, params *UpdateSigningKeyParams) (*ApiV2010AccountSigningKey, error) { path := "/2010-04-01/Accounts/{AccountSid}/SigningKeys/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -9568,24 +9756,25 @@ type UpdateSipCredentialParams struct { /* UpdateSipCredential Method for UpdateSipCredential Update a credential resource. - * @param accountSid The unique id of the Account that is responsible for this resource. - * @param credentialListSid The unique id that identifies the credential list that includes this credential. - * @param sid The unique id that identifies the resource to update. + * @param AccountSid The unique id of the Account that is responsible for this resource. + * @param CredentialListSid The unique id that identifies the credential list that includes this credential. + * @param Sid The unique id that identifies the resource to update. * @param optional nil or *UpdateSipCredentialOpts - Optional Parameters: * @param "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`) @return ApiV2010AccountSipSipCredentialListSipCredential */ -func (c *DefaultApiService) UpdateSipCredential(accountSid string, credentialListSid string, sid string, params *UpdateSipCredentialParams) (*ApiV2010AccountSipSipCredentialListSipCredential, error) { +func (c *DefaultApiService) UpdateSipCredential(AccountSid string, CredentialListSid string, Sid string, params *UpdateSipCredentialParams) (*ApiV2010AccountSipSipCredentialListSipCredential, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"CredentialListSid"+"}", credentialListSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"CredentialListSid"+"}", CredentialListSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.Password != nil { - data.Set("Password", *params.Password) + data.Set("Password", *params.Password) } @@ -9611,22 +9800,23 @@ type UpdateSipCredentialListParams struct { /* UpdateSipCredentialList Method for UpdateSipCredentialList Update a Credential List - * @param accountSid The unique id of the Account that is responsible for this resource. - * @param sid The credential list Sid that uniquely identifies this resource + * @param AccountSid The unique id of the Account that is responsible for this resource. + * @param Sid The credential list Sid that uniquely identifies this resource * @param optional nil or *UpdateSipCredentialListOpts - Optional Parameters: * @param "FriendlyName" (string) - A human readable descriptive text for a CredentialList, up to 64 characters long. @return ApiV2010AccountSipSipCredentialList */ -func (c *DefaultApiService) UpdateSipCredentialList(accountSid string, sid string, params *UpdateSipCredentialListParams) (*ApiV2010AccountSipSipCredentialList, error) { +func (c *DefaultApiService) UpdateSipCredentialList(AccountSid string, Sid string, params *UpdateSipCredentialListParams) (*ApiV2010AccountSipSipCredentialList, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -9664,8 +9854,8 @@ type UpdateSipDomainParams struct { /* UpdateSipDomain Method for UpdateSipDomain Update the attributes of a domain - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resource to update. - * @param sid The Twilio-provided string that uniquely identifies the SipDomain resource to update. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resource to update. + * @param Sid The Twilio-provided string that uniquely identifies the SipDomain resource to update. * @param optional nil or *UpdateSipDomainOpts - Optional Parameters: * @param "ByocTrunkSid" (string) - The SID of the BYOC Trunk(Bring Your Own Carrier) resource that the Sip Domain will be associated with. * @param "DomainName" (string) - The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and \\\"-\\\". @@ -9682,52 +9872,53 @@ Update the attributes of a domain * @param "VoiceUrl" (string) - The URL we should call when the domain receives a call. @return ApiV2010AccountSipSipDomain */ -func (c *DefaultApiService) UpdateSipDomain(accountSid string, sid string, params *UpdateSipDomainParams) (*ApiV2010AccountSipSipDomain, error) { +func (c *DefaultApiService) UpdateSipDomain(AccountSid string, Sid string, params *UpdateSipDomainParams) (*ApiV2010AccountSipSipDomain, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.ByocTrunkSid != nil { - data.Set("ByocTrunkSid", *params.ByocTrunkSid) + data.Set("ByocTrunkSid", *params.ByocTrunkSid) } if params != nil && params.DomainName != nil { - data.Set("DomainName", *params.DomainName) + data.Set("DomainName", *params.DomainName) } if params != nil && params.EmergencyCallerSid != nil { - data.Set("EmergencyCallerSid", *params.EmergencyCallerSid) + data.Set("EmergencyCallerSid", *params.EmergencyCallerSid) } if params != nil && params.EmergencyCallingEnabled != nil { - data.Set("EmergencyCallingEnabled", string(*params.EmergencyCallingEnabled)) + data.Set("EmergencyCallingEnabled", fmt.Sprint(*params.EmergencyCallingEnabled)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Secure != nil { - data.Set("Secure", string(*params.Secure)) + data.Set("Secure", fmt.Sprint(*params.Secure)) } if params != nil && params.SipRegistration != nil { - data.Set("SipRegistration", string(*params.SipRegistration)) + data.Set("SipRegistration", fmt.Sprint(*params.SipRegistration)) } if params != nil && params.VoiceFallbackMethod != nil { - data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) } if params != nil && params.VoiceFallbackUrl != nil { - data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) } if params != nil && params.VoiceMethod != nil { - data.Set("VoiceMethod", *params.VoiceMethod) + data.Set("VoiceMethod", *params.VoiceMethod) } if params != nil && params.VoiceStatusCallbackMethod != nil { - data.Set("VoiceStatusCallbackMethod", *params.VoiceStatusCallbackMethod) + data.Set("VoiceStatusCallbackMethod", *params.VoiceStatusCallbackMethod) } if params != nil && params.VoiceStatusCallbackUrl != nil { - data.Set("VoiceStatusCallbackUrl", *params.VoiceStatusCallbackUrl) + data.Set("VoiceStatusCallbackUrl", *params.VoiceStatusCallbackUrl) } if params != nil && params.VoiceUrl != nil { - data.Set("VoiceUrl", *params.VoiceUrl) + data.Set("VoiceUrl", *params.VoiceUrl) } @@ -9753,22 +9944,23 @@ type UpdateSipIpAccessControlListParams struct { /* UpdateSipIpAccessControlList Method for UpdateSipIpAccessControlList Rename an IpAccessControlList - * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. - * @param sid A 34 character string that uniquely identifies the resource to udpate. + * @param AccountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param Sid A 34 character string that uniquely identifies the resource to udpate. * @param optional nil or *UpdateSipIpAccessControlListOpts - Optional Parameters: * @param "FriendlyName" (string) - A human readable descriptive text, up to 64 characters long. @return ApiV2010AccountSipSipIpAccessControlList */ -func (c *DefaultApiService) UpdateSipIpAccessControlList(accountSid string, sid string, params *UpdateSipIpAccessControlListParams) (*ApiV2010AccountSipSipIpAccessControlList, error) { +func (c *DefaultApiService) UpdateSipIpAccessControlList(AccountSid string, Sid string, params *UpdateSipIpAccessControlListParams) (*ApiV2010AccountSipSipIpAccessControlList, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -9796,32 +9988,33 @@ type UpdateSipIpAddressParams struct { /* UpdateSipIpAddress Method for UpdateSipIpAddress Update an IpAddress resource. - * @param accountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. - * @param ipAccessControlListSid The IpAccessControlList Sid that identifies the IpAddress resources to update. - * @param sid A 34 character string that identifies the IpAddress resource to update. + * @param AccountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. + * @param IpAccessControlListSid The IpAccessControlList Sid that identifies the IpAddress resources to update. + * @param Sid A 34 character string that identifies the IpAddress resource to update. * @param optional nil or *UpdateSipIpAddressOpts - Optional Parameters: * @param "CidrPrefixLength" (int32) - 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. * @param "FriendlyName" (string) - A human readable descriptive text for this resource, up to 64 characters long. * @param "IpAddress" (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. @return ApiV2010AccountSipSipIpAccessControlListSipIpAddress */ -func (c *DefaultApiService) UpdateSipIpAddress(accountSid string, ipAccessControlListSid string, sid string, params *UpdateSipIpAddressParams) (*ApiV2010AccountSipSipIpAccessControlListSipIpAddress, error) { +func (c *DefaultApiService) UpdateSipIpAddress(AccountSid string, IpAccessControlListSid string, Sid string, params *UpdateSipIpAddressParams) (*ApiV2010AccountSipSipIpAccessControlListSipIpAddress, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"IpAccessControlListSid"+"}", ipAccessControlListSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"IpAccessControlListSid"+"}", IpAccessControlListSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.CidrPrefixLength != nil { - data.Set("CidrPrefixLength", string(*params.CidrPrefixLength)) + data.Set("CidrPrefixLength", fmt.Sprint(*params.CidrPrefixLength)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.IpAddress != nil { - data.Set("IpAddress", *params.IpAddress) + data.Set("IpAddress", *params.IpAddress) } @@ -9849,30 +10042,31 @@ type UpdateUsageTriggerParams struct { /* UpdateUsageTrigger Method for UpdateUsageTrigger Update an instance of a usage trigger - * @param accountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resources to update. - * @param sid The Twilio-provided string that uniquely identifies the UsageTrigger resource to update. + * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resources to update. + * @param Sid The Twilio-provided string that uniquely identifies the UsageTrigger resource to update. * @param optional nil or *UpdateUsageTriggerOpts - Optional Parameters: * @param "CallbackMethod" (string) - The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is `POST`. * @param "CallbackUrl" (string) - The URL we should call using `callback_method` when the trigger fires. * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. @return ApiV2010AccountUsageUsageTrigger */ -func (c *DefaultApiService) UpdateUsageTrigger(accountSid string, sid string, params *UpdateUsageTriggerParams) (*ApiV2010AccountUsageUsageTrigger, error) { +func (c *DefaultApiService) UpdateUsageTrigger(AccountSid string, Sid string, params *UpdateUsageTriggerParams) (*ApiV2010AccountUsageUsageTrigger, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Triggers/{Sid}.json" - path = strings.Replace(path, "{"+"AccountSid"+"}", accountSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.CallbackMethod != nil { - data.Set("CallbackMethod", *params.CallbackMethod) + data.Set("CallbackMethod", *params.CallbackMethod) } if params != nil && params.CallbackUrl != nil { - data.Set("CallbackUrl", *params.CallbackUrl) + data.Set("CallbackUrl", *params.CallbackUrl) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } diff --git a/rest/api/v2010/docs/DefaultApi.md b/rest/api/v2010/docs/DefaultApi.md index bdf139264..df41fa60a 100644 --- a/rest/api/v2010/docs/DefaultApi.md +++ b/rest/api/v2010/docs/DefaultApi.md @@ -222,7 +222,7 @@ Optional parameters are passed through a pointer to a CreateAccountOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| A human readable description of the account to create, defaults to `SubAccount Created at {YYYY-MM-DD HH:MM meridian}` | + **FriendlyName** | **optional.String**| A human readable description of the account to create, defaults to `SubAccount Created at {YYYY-MM-DD HH:MM meridian}` | ### Return type @@ -244,7 +244,7 @@ Name | Type | Description | Notes ## CreateAddress -> ApiV2010AccountAddress CreateAddress(ctx, accountSid, optional) +> ApiV2010AccountAddress CreateAddress(ctx, AccountSid, optional) @@ -254,7 +254,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will be responsible for the new Address resource. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will be responsible for the new Address resource. | **optional** | ***CreateAddressOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -265,15 +265,15 @@ Optional parameters are passed through a pointer to a CreateAddressOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **autoCorrectAddress** | **optional.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. | - **city** | **optional.String**| The city of the new address. | - **customerName** | **optional.String**| The name to associate with the new address. | - **emergencyEnabled** | **optional.Bool**| Whether to enable emergency calling on the new address. Can be: `true` or `false`. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the new address. It can be up to 64 characters long. | - **isoCountry** | **optional.String**| The ISO country code of the new address. | - **postalCode** | **optional.String**| The postal code of the new address. | - **region** | **optional.String**| The state or region of the new address. | - **street** | **optional.String**| The number and street address of the new address. | + **AutoCorrectAddress** | **optional.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. | + **City** | **optional.String**| The city of the new address. | + **CustomerName** | **optional.String**| The name to associate with the new address. | + **EmergencyEnabled** | **optional.Bool**| Whether to enable emergency calling on the new address. Can be: `true` or `false`. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the new address. It can be up to 64 characters long. | + **IsoCountry** | **optional.String**| The ISO country code of the new address. | + **PostalCode** | **optional.String**| The postal code of the new address. | + **Region** | **optional.String**| The state or region of the new address. | + **Street** | **optional.String**| The number and street address of the new address. | ### Return type @@ -295,7 +295,7 @@ Name | Type | Description | Notes ## CreateApplication -> ApiV2010AccountApplication CreateApplication(ctx, accountSid, optional) +> ApiV2010AccountApplication CreateApplication(ctx, AccountSid, optional) @@ -307,7 +307,7 @@ Create a new application within your account Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | **optional** | ***CreateApplicationOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -318,21 +318,21 @@ Optional parameters are passed through a pointer to a CreateApplicationOpts stru Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiVersion** | **optional.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. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the new application. It can be up to 64 characters long. | - **messageStatusCallback** | **optional.String**| The URL we should call using a POST method to send message status information to your application. | - **smsFallbackMethod** | **optional.String**| The HTTP method we should use to call `sms_fallback_url`. Can be: `GET` or `POST`. | - **smsFallbackUrl** | **optional.String**| The URL that we should call when an error occurs while retrieving or executing the TwiML from `sms_url`. | - **smsMethod** | **optional.String**| The HTTP method we should use to call `sms_url`. Can be: `GET` or `POST`. | - **smsStatusCallback** | **optional.String**| The URL we should call using a POST method to send status information about SMS messages sent by the application. | - **smsUrl** | **optional.String**| The URL we should call when the phone number receives an incoming SMS message. | - **statusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application. | - **statusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST`. | - **voiceCallerIdLookup** | **optional.Bool**| Whether we should look up the caller's caller-ID name from the CNAM database (additional charges apply). Can be: `true` or `false`. | - **voiceFallbackMethod** | **optional.String**| The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. | - **voiceFallbackUrl** | **optional.String**| The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | - **voiceMethod** | **optional.String**| The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`. | - **voiceUrl** | **optional.String**| The URL we should call when the phone number assigned to this application receives a call. | + **ApiVersion** | **optional.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. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the new application. It can be up to 64 characters long. | + **MessageStatusCallback** | **optional.String**| The URL we should call using a POST method to send message status information to your application. | + **SmsFallbackMethod** | **optional.String**| The HTTP method we should use to call `sms_fallback_url`. Can be: `GET` or `POST`. | + **SmsFallbackUrl** | **optional.String**| The URL that we should call when an error occurs while retrieving or executing the TwiML from `sms_url`. | + **SmsMethod** | **optional.String**| The HTTP method we should use to call `sms_url`. Can be: `GET` or `POST`. | + **SmsStatusCallback** | **optional.String**| The URL we should call using a POST method to send status information about SMS messages sent by the application. | + **SmsUrl** | **optional.String**| The URL we should call when the phone number receives an incoming SMS message. | + **StatusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application. | + **StatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST`. | + **VoiceCallerIdLookup** | **optional.Bool**| Whether we should look up the caller's caller-ID name from the CNAM database (additional charges apply). Can be: `true` or `false`. | + **VoiceFallbackMethod** | **optional.String**| The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. | + **VoiceFallbackUrl** | **optional.String**| The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | + **VoiceMethod** | **optional.String**| The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`. | + **VoiceUrl** | **optional.String**| The URL we should call when the phone number assigned to this application receives a call. | ### Return type @@ -354,7 +354,7 @@ Name | Type | Description | Notes ## CreateCall -> ApiV2010AccountCall CreateCall(ctx, accountSid, optional) +> ApiV2010AccountCall CreateCall(ctx, AccountSid, optional) @@ -366,7 +366,7 @@ Create a new outgoing call to phones, SIP-enabled endpoints or Twilio Client con Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | **optional** | ***CreateCallOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -377,39 +377,39 @@ Optional parameters are passed through a pointer to a CreateCallOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **applicationSid** | **optional.String**| The SID of the Application resource that will handle the call, if the call will be handled by an application. | - **asyncAmd** | **optional.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`. | - **asyncAmdStatusCallback** | **optional.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. | - **asyncAmdStatusCallbackMethod** | **optional.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** | **optional.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) | - **callReason** | **optional.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) | - **callerId** | **optional.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`. | - **fallbackMethod** | **optional.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. | - **fallbackUrl** | **optional.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. | - **from** | **optional.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. | - **machineDetection** | **optional.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). | - **machineDetectionSilenceTimeout** | **optional.Int32**| The number of milliseconds of initial silence after which an `unknown` AnsweredBy result will be returned. Possible Values: 2000-10000. Default: 5000. | - **machineDetectionSpeechEndThreshold** | **optional.Int32**| The number of milliseconds of silence after speech activity at which point the speech activity is considered complete. Possible Values: 500-5000. Default: 1200. | - **machineDetectionSpeechThreshold** | **optional.Int32**| 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. | - **machineDetectionTimeout** | **optional.Int32**| 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. | - **method** | **optional.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. | - **record** | **optional.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. | - **recordingChannels** | **optional.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. | - **recordingStatusCallback** | **optional.String**| The URL that we call when the recording is available to be accessed. | - **recordingStatusCallbackEvent** | [**optional.Interface of []string**](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. | - **recordingStatusCallbackMethod** | **optional.String**| The HTTP method we should use when calling the `recording_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. | - **recordingTrack** | **optional.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. | - **sendDigits** | **optional.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. | - **sipAuthPassword** | **optional.String**| The password required to authenticate the user account specified in `sip_auth_username`. | - **sipAuthUsername** | **optional.String**| The username used to authenticate the caller making a SIP call. | - **statusCallback** | **optional.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). | - **statusCallbackEvent** | [**optional.Interface of []string**](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. | - **statusCallbackMethod** | **optional.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. | - **timeout** | **optional.Int32**| 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. | - **to** | **optional.String**| The phone number, SIP address, or client identifier to call. | - **trim** | **optional.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`. | - **twiml** | **optional.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. | - **url** | **optional.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). | + **ApplicationSid** | **optional.String**| The SID of the Application resource that will handle the call, if the call will be handled by an application. | + **AsyncAmd** | **optional.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`. | + **AsyncAmdStatusCallback** | **optional.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. | + **AsyncAmdStatusCallbackMethod** | **optional.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** | **optional.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) | + **CallReason** | **optional.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) | + **CallerId** | **optional.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`. | + **FallbackMethod** | **optional.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. | + **FallbackUrl** | **optional.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. | + **From** | **optional.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. | + **MachineDetection** | **optional.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). | + **MachineDetectionSilenceTimeout** | **optional.Int32**| The number of milliseconds of initial silence after which an `unknown` AnsweredBy result will be returned. Possible Values: 2000-10000. Default: 5000. | + **MachineDetectionSpeechEndThreshold** | **optional.Int32**| The number of milliseconds of silence after speech activity at which point the speech activity is considered complete. Possible Values: 500-5000. Default: 1200. | + **MachineDetectionSpeechThreshold** | **optional.Int32**| 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. | + **MachineDetectionTimeout** | **optional.Int32**| 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. | + **Method** | **optional.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. | + **Record** | **optional.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. | + **RecordingChannels** | **optional.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. | + **RecordingStatusCallback** | **optional.String**| The URL that we call when the recording is available to be accessed. | + **RecordingStatusCallbackEvent** | [**optional.Interface of []string**](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. | + **RecordingStatusCallbackMethod** | **optional.String**| The HTTP method we should use when calling the `recording_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. | + **RecordingTrack** | **optional.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. | + **SendDigits** | **optional.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. | + **SipAuthPassword** | **optional.String**| The password required to authenticate the user account specified in `sip_auth_username`. | + **SipAuthUsername** | **optional.String**| The username used to authenticate the caller making a SIP call. | + **StatusCallback** | **optional.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). | + **StatusCallbackEvent** | [**optional.Interface of []string**](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. | + **StatusCallbackMethod** | **optional.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. | + **Timeout** | **optional.Int32**| 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. | + **To** | **optional.String**| The phone number, SIP address, or client identifier to call. | + **Trim** | **optional.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`. | + **Twiml** | **optional.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. | + **Url** | **optional.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). | ### Return type @@ -431,7 +431,7 @@ Name | Type | Description | Notes ## CreateCallFeedbackSummary -> ApiV2010AccountCallCallFeedbackSummary CreateCallFeedbackSummary(ctx, accountSid, optional) +> ApiV2010AccountCallCallFeedbackSummary CreateCallFeedbackSummary(ctx, AccountSid, optional) @@ -443,7 +443,7 @@ Create a FeedbackSummary resource for a call Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | +**AccountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | **optional** | ***CreateCallFeedbackSummaryOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -454,11 +454,11 @@ Optional parameters are passed through a pointer to a CreateCallFeedbackSummaryO Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **endDate** | **optional.Time**| Only include feedback given on or before this date. Format is `YYYY-MM-DD` and specified in UTC. | - **includeSubaccounts** | **optional.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. | - **startDate** | **optional.Time**| Only include feedback given on or after this date. Format is `YYYY-MM-DD` and specified in UTC. | - **statusCallback** | **optional.String**| The URL that we will request when the feedback summary is complete. | - **statusCallbackMethod** | **optional.String**| The HTTP method (`GET` or `POST`) we use to make the request to the `StatusCallback` URL. | + **EndDate** | **optional.Time**| Only include feedback given on or before this date. Format is `YYYY-MM-DD` and specified in UTC. | + **IncludeSubaccounts** | **optional.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. | + **StartDate** | **optional.Time**| Only include feedback given on or after this date. Format is `YYYY-MM-DD` and specified in UTC. | + **StatusCallback** | **optional.String**| The URL that we will request when the feedback summary is complete. | + **StatusCallbackMethod** | **optional.String**| The HTTP method (`GET` or `POST`) we use to make the request to the `StatusCallback` URL. | ### Return type @@ -480,7 +480,7 @@ Name | Type | Description | Notes ## CreateCallRecording -> ApiV2010AccountCallCallRecording CreateCallRecording(ctx, accountSid, callSid, optional) +> ApiV2010AccountCallCallRecording CreateCallRecording(ctx, AccountSid, CallSid, optional) @@ -492,8 +492,8 @@ Create a recording for the call Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | -**callSid** | **string**| The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) to associate the resource with. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | +**CallSid** | **string**| The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) to associate the resource with. | **optional** | ***CreateCallRecordingOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -505,12 +505,12 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **recordingChannels** | **optional.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. | - **recordingStatusCallback** | **optional.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). | - **recordingStatusCallbackEvent** | [**optional.Interface of []string**](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. | - **recordingStatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `recording_status_callback`. Can be: `GET` or `POST` and the default is `POST`. | - **recordingTrack** | **optional.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. | - **trim** | **optional.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. | + **RecordingChannels** | **optional.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. | + **RecordingStatusCallback** | **optional.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). | + **RecordingStatusCallbackEvent** | [**optional.Interface of []string**](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. | + **RecordingStatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `recording_status_callback`. Can be: `GET` or `POST` and the default is `POST`. | + **RecordingTrack** | **optional.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. | + **Trim** | **optional.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. | ### Return type @@ -532,7 +532,7 @@ Name | Type | Description | Notes ## CreateIncomingPhoneNumber -> ApiV2010AccountIncomingPhoneNumber CreateIncomingPhoneNumber(ctx, accountSid, optional) +> ApiV2010AccountIncomingPhoneNumber CreateIncomingPhoneNumber(ctx, AccountSid, optional) @@ -544,7 +544,7 @@ Purchase a phone-number for the account. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | **optional** | ***CreateIncomingPhoneNumberOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -555,30 +555,30 @@ Optional parameters are passed through a pointer to a CreateIncomingPhoneNumberO Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **addressSid** | **optional.String**| The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. | - **apiVersion** | **optional.String**| The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. | - **areaCode** | **optional.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). | - **bundleSid** | **optional.String**| The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | - **emergencyAddressSid** | **optional.String**| The SID of the emergency address configuration to use for emergency calling from the new phone number. | - **emergencyStatus** | **optional.String**| The configuration status parameter that determines whether the new phone number is enabled for emergency calling. | - **friendlyName** | **optional.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. | - **identitySid** | **optional.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. | - **phoneNumber** | **optional.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. | - **smsApplicationSid** | **optional.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. | - **smsFallbackMethod** | **optional.String**| The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | - **smsFallbackUrl** | **optional.String**| The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. | - **smsMethod** | **optional.String**| The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. | - **smsUrl** | **optional.String**| The URL we should call when the new phone number receives an incoming SMS message. | - **statusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application. | - **statusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | - **trunkSid** | **optional.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. | - **voiceApplicationSid** | **optional.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. | - **voiceCallerIdLookup** | **optional.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`. | - **voiceFallbackMethod** | **optional.String**| The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | - **voiceFallbackUrl** | **optional.String**| The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | - **voiceMethod** | **optional.String**| The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. | - **voiceReceiveMode** | **optional.String**| The configuration parameter for the new phone number to receive incoming voice calls or faxes. Can be: `fax` or `voice` and defaults to `voice`. | - **voiceUrl** | **optional.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. | + **AddressSid** | **optional.String**| The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. | + **ApiVersion** | **optional.String**| The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. | + **AreaCode** | **optional.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). | + **BundleSid** | **optional.String**| The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | + **EmergencyAddressSid** | **optional.String**| The SID of the emergency address configuration to use for emergency calling from the new phone number. | + **EmergencyStatus** | **optional.String**| The configuration status parameter that determines whether the new phone number is enabled for emergency calling. | + **FriendlyName** | **optional.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. | + **IdentitySid** | **optional.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. | + **PhoneNumber** | **optional.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. | + **SmsApplicationSid** | **optional.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. | + **SmsFallbackMethod** | **optional.String**| The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **SmsFallbackUrl** | **optional.String**| The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. | + **SmsMethod** | **optional.String**| The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **SmsUrl** | **optional.String**| The URL we should call when the new phone number receives an incoming SMS message. | + **StatusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application. | + **StatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | + **TrunkSid** | **optional.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. | + **VoiceApplicationSid** | **optional.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. | + **VoiceCallerIdLookup** | **optional.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`. | + **VoiceFallbackMethod** | **optional.String**| The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **VoiceFallbackUrl** | **optional.String**| The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | + **VoiceMethod** | **optional.String**| The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **VoiceReceiveMode** | **optional.String**| The configuration parameter for the new phone number to receive incoming voice calls or faxes. Can be: `fax` or `voice` and defaults to `voice`. | + **VoiceUrl** | **optional.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. | ### Return type @@ -600,7 +600,7 @@ Name | Type | Description | Notes ## CreateIncomingPhoneNumberAssignedAddOn -> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn CreateIncomingPhoneNumberAssignedAddOn(ctx, accountSid, resourceSid, optional) +> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn CreateIncomingPhoneNumberAssignedAddOn(ctx, AccountSid, ResourceSid, optional) @@ -612,8 +612,8 @@ Assign an Add-on installation to the Number specified. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | -**resourceSid** | **string**| The SID of the Phone Number to assign the Add-on. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | +**ResourceSid** | **string**| The SID of the Phone Number to assign the Add-on. | **optional** | ***CreateIncomingPhoneNumberAssignedAddOnOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -625,7 +625,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **installedAddOnSid** | **optional.String**| The SID that identifies the Add-on installation. | + **InstalledAddOnSid** | **optional.String**| The SID that identifies the Add-on installation. | ### Return type @@ -647,7 +647,7 @@ Name | Type | Description | Notes ## CreateIncomingPhoneNumberLocal -> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocal CreateIncomingPhoneNumberLocal(ctx, accountSid, optional) +> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocal CreateIncomingPhoneNumberLocal(ctx, AccountSid, optional) @@ -657,7 +657,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | **optional** | ***CreateIncomingPhoneNumberLocalOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -668,29 +668,29 @@ Optional parameters are passed through a pointer to a CreateIncomingPhoneNumberL Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **addressSid** | **optional.String**| The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. | - **apiVersion** | **optional.String**| The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. | - **bundleSid** | **optional.String**| The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | - **emergencyAddressSid** | **optional.String**| The SID of the emergency address configuration to use for emergency calling from the new phone number. | - **emergencyStatus** | **optional.String**| The configuration status parameter that determines whether the new phone number is enabled for emergency calling. | - **friendlyName** | **optional.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. | - **identitySid** | **optional.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. | - **phoneNumber** | **optional.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. | - **smsApplicationSid** | **optional.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. | - **smsFallbackMethod** | **optional.String**| The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | - **smsFallbackUrl** | **optional.String**| The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. | - **smsMethod** | **optional.String**| The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. | - **smsUrl** | **optional.String**| The URL we should call when the new phone number receives an incoming SMS message. | - **statusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application. | - **statusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | - **trunkSid** | **optional.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. | - **voiceApplicationSid** | **optional.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. | - **voiceCallerIdLookup** | **optional.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`. | - **voiceFallbackMethod** | **optional.String**| The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | - **voiceFallbackUrl** | **optional.String**| The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | - **voiceMethod** | **optional.String**| The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. | - **voiceReceiveMode** | **optional.String**| The configuration parameter for the new phone number to receive incoming voice calls or faxes. Can be: `fax` or `voice` and defaults to `voice`. | - **voiceUrl** | **optional.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. | + **AddressSid** | **optional.String**| The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. | + **ApiVersion** | **optional.String**| The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. | + **BundleSid** | **optional.String**| The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | + **EmergencyAddressSid** | **optional.String**| The SID of the emergency address configuration to use for emergency calling from the new phone number. | + **EmergencyStatus** | **optional.String**| The configuration status parameter that determines whether the new phone number is enabled for emergency calling. | + **FriendlyName** | **optional.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. | + **IdentitySid** | **optional.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. | + **PhoneNumber** | **optional.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. | + **SmsApplicationSid** | **optional.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. | + **SmsFallbackMethod** | **optional.String**| The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **SmsFallbackUrl** | **optional.String**| The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. | + **SmsMethod** | **optional.String**| The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **SmsUrl** | **optional.String**| The URL we should call when the new phone number receives an incoming SMS message. | + **StatusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application. | + **StatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | + **TrunkSid** | **optional.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. | + **VoiceApplicationSid** | **optional.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. | + **VoiceCallerIdLookup** | **optional.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`. | + **VoiceFallbackMethod** | **optional.String**| The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **VoiceFallbackUrl** | **optional.String**| The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | + **VoiceMethod** | **optional.String**| The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **VoiceReceiveMode** | **optional.String**| The configuration parameter for the new phone number to receive incoming voice calls or faxes. Can be: `fax` or `voice` and defaults to `voice`. | + **VoiceUrl** | **optional.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. | ### Return type @@ -712,7 +712,7 @@ Name | Type | Description | Notes ## CreateIncomingPhoneNumberMobile -> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobile CreateIncomingPhoneNumberMobile(ctx, accountSid, optional) +> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobile CreateIncomingPhoneNumberMobile(ctx, AccountSid, optional) @@ -722,7 +722,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | **optional** | ***CreateIncomingPhoneNumberMobileOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -733,29 +733,29 @@ Optional parameters are passed through a pointer to a CreateIncomingPhoneNumberM Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **addressSid** | **optional.String**| The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. | - **apiVersion** | **optional.String**| The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. | - **bundleSid** | **optional.String**| The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | - **emergencyAddressSid** | **optional.String**| The SID of the emergency address configuration to use for emergency calling from the new phone number. | - **emergencyStatus** | **optional.String**| The configuration status parameter that determines whether the new phone number is enabled for emergency calling. | - **friendlyName** | **optional.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. | - **identitySid** | **optional.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. | - **phoneNumber** | **optional.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. | - **smsApplicationSid** | **optional.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. | - **smsFallbackMethod** | **optional.String**| The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | - **smsFallbackUrl** | **optional.String**| The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. | - **smsMethod** | **optional.String**| The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. | - **smsUrl** | **optional.String**| The URL we should call when the new phone number receives an incoming SMS message. | - **statusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application. | - **statusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | - **trunkSid** | **optional.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. | - **voiceApplicationSid** | **optional.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. | - **voiceCallerIdLookup** | **optional.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`. | - **voiceFallbackMethod** | **optional.String**| The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | - **voiceFallbackUrl** | **optional.String**| The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | - **voiceMethod** | **optional.String**| The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. | - **voiceReceiveMode** | **optional.String**| The configuration parameter for the new phone number to receive incoming voice calls or faxes. Can be: `fax` or `voice` and defaults to `voice`. | - **voiceUrl** | **optional.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. | + **AddressSid** | **optional.String**| The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. | + **ApiVersion** | **optional.String**| The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. | + **BundleSid** | **optional.String**| The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | + **EmergencyAddressSid** | **optional.String**| The SID of the emergency address configuration to use for emergency calling from the new phone number. | + **EmergencyStatus** | **optional.String**| The configuration status parameter that determines whether the new phone number is enabled for emergency calling. | + **FriendlyName** | **optional.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. | + **IdentitySid** | **optional.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. | + **PhoneNumber** | **optional.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. | + **SmsApplicationSid** | **optional.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. | + **SmsFallbackMethod** | **optional.String**| The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **SmsFallbackUrl** | **optional.String**| The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. | + **SmsMethod** | **optional.String**| The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **SmsUrl** | **optional.String**| The URL we should call when the new phone number receives an incoming SMS message. | + **StatusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application. | + **StatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | + **TrunkSid** | **optional.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. | + **VoiceApplicationSid** | **optional.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. | + **VoiceCallerIdLookup** | **optional.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`. | + **VoiceFallbackMethod** | **optional.String**| The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **VoiceFallbackUrl** | **optional.String**| The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | + **VoiceMethod** | **optional.String**| The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **VoiceReceiveMode** | **optional.String**| The configuration parameter for the new phone number to receive incoming voice calls or faxes. Can be: `fax` or `voice` and defaults to `voice`. | + **VoiceUrl** | **optional.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. | ### Return type @@ -777,7 +777,7 @@ Name | Type | Description | Notes ## CreateIncomingPhoneNumberTollFree -> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFree CreateIncomingPhoneNumberTollFree(ctx, accountSid, optional) +> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFree CreateIncomingPhoneNumberTollFree(ctx, AccountSid, optional) @@ -787,7 +787,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | **optional** | ***CreateIncomingPhoneNumberTollFreeOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -798,29 +798,29 @@ Optional parameters are passed through a pointer to a CreateIncomingPhoneNumberT Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **addressSid** | **optional.String**| The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. | - **apiVersion** | **optional.String**| The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. | - **bundleSid** | **optional.String**| The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | - **emergencyAddressSid** | **optional.String**| The SID of the emergency address configuration to use for emergency calling from the new phone number. | - **emergencyStatus** | **optional.String**| The configuration status parameter that determines whether the new phone number is enabled for emergency calling. | - **friendlyName** | **optional.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. | - **identitySid** | **optional.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. | - **phoneNumber** | **optional.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. | - **smsApplicationSid** | **optional.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. | - **smsFallbackMethod** | **optional.String**| The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | - **smsFallbackUrl** | **optional.String**| The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. | - **smsMethod** | **optional.String**| The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. | - **smsUrl** | **optional.String**| The URL we should call when the new phone number receives an incoming SMS message. | - **statusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application. | - **statusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | - **trunkSid** | **optional.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. | - **voiceApplicationSid** | **optional.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. | - **voiceCallerIdLookup** | **optional.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`. | - **voiceFallbackMethod** | **optional.String**| The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | - **voiceFallbackUrl** | **optional.String**| The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | - **voiceMethod** | **optional.String**| The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. | - **voiceReceiveMode** | **optional.String**| The configuration parameter for the new phone number to receive incoming voice calls or faxes. Can be: `fax` or `voice` and defaults to `voice`. | - **voiceUrl** | **optional.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. | + **AddressSid** | **optional.String**| The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. | + **ApiVersion** | **optional.String**| The API version to use for incoming calls made to the new phone number. The default is `2010-04-01`. | + **BundleSid** | **optional.String**| The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | + **EmergencyAddressSid** | **optional.String**| The SID of the emergency address configuration to use for emergency calling from the new phone number. | + **EmergencyStatus** | **optional.String**| The configuration status parameter that determines whether the new phone number is enabled for emergency calling. | + **FriendlyName** | **optional.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. | + **IdentitySid** | **optional.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. | + **PhoneNumber** | **optional.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. | + **SmsApplicationSid** | **optional.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. | + **SmsFallbackMethod** | **optional.String**| The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **SmsFallbackUrl** | **optional.String**| The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. | + **SmsMethod** | **optional.String**| The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **SmsUrl** | **optional.String**| The URL we should call when the new phone number receives an incoming SMS message. | + **StatusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application. | + **StatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | + **TrunkSid** | **optional.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. | + **VoiceApplicationSid** | **optional.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. | + **VoiceCallerIdLookup** | **optional.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`. | + **VoiceFallbackMethod** | **optional.String**| The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **VoiceFallbackUrl** | **optional.String**| The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | + **VoiceMethod** | **optional.String**| The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **VoiceReceiveMode** | **optional.String**| The configuration parameter for the new phone number to receive incoming voice calls or faxes. Can be: `fax` or `voice` and defaults to `voice`. | + **VoiceUrl** | **optional.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. | ### Return type @@ -842,7 +842,7 @@ Name | Type | Description | Notes ## CreateMessage -> ApiV2010AccountMessage CreateMessage(ctx, accountSid, optional) +> ApiV2010AccountMessage CreateMessage(ctx, AccountSid, optional) @@ -854,7 +854,7 @@ Send a message from the account used to make the request Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | **optional** | ***CreateMessageOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -865,22 +865,22 @@ Optional parameters are passed through a pointer to a CreateMessageOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **addressRetention** | **optional.String**| Determines if the address can be stored or obfuscated based on privacy settings | - **applicationSid** | **optional.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. | - **attempt** | **optional.Int32**| Total number of attempts made ( including this ) to send out the message regardless of the provider used | - **body** | **optional.String**| The text of the message you want to send. Can be up to 1,600 characters in length. | - **contentRetention** | **optional.String**| Determines if the message content can be stored or redacted based on privacy settings | - **forceDelivery** | **optional.Bool**| Reserved | - **from** | **optional.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. | - **maxPrice** | **optional.Float32**| 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. | - **mediaUrl** | [**optional.Interface of []string**](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. | - **messagingServiceSid** | **optional.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. | - **persistentAction** | [**optional.Interface of []string**](string.md)| Rich actions for Channels Messages. | - **provideFeedback** | **optional.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. | - **smartEncoded** | **optional.Bool**| Whether to detect Unicode characters that have a similar GSM-7 character and replace them. Can be: `true` or `false`. | - **statusCallback** | **optional.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. | - **to** | **optional.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. | - **validityPeriod** | **optional.Int32**| 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. | + **AddressRetention** | **optional.String**| Determines if the address can be stored or obfuscated based on privacy settings | + **ApplicationSid** | **optional.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. | + **Attempt** | **optional.Int32**| Total number of attempts made ( including this ) to send out the message regardless of the provider used | + **Body** | **optional.String**| The text of the message you want to send. Can be up to 1,600 characters in length. | + **ContentRetention** | **optional.String**| Determines if the message content can be stored or redacted based on privacy settings | + **ForceDelivery** | **optional.Bool**| Reserved | + **From** | **optional.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. | + **MaxPrice** | **optional.Float32**| 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. | + **MediaUrl** | [**optional.Interface of []string**](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. | + **MessagingServiceSid** | **optional.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. | + **PersistentAction** | [**optional.Interface of []string**](string.md)| Rich actions for Channels Messages. | + **ProvideFeedback** | **optional.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. | + **SmartEncoded** | **optional.Bool**| Whether to detect Unicode characters that have a similar GSM-7 character and replace them. Can be: `true` or `false`. | + **StatusCallback** | **optional.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. | + **To** | **optional.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. | + **ValidityPeriod** | **optional.Int32**| 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. | ### Return type @@ -902,7 +902,7 @@ Name | Type | Description | Notes ## CreateMessageFeedback -> ApiV2010AccountMessageMessageFeedback CreateMessageFeedback(ctx, accountSid, messageSid, optional) +> ApiV2010AccountMessageMessageFeedback CreateMessageFeedback(ctx, AccountSid, MessageSid, optional) @@ -912,8 +912,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | -**messageSid** | **string**| The SID of the Message resource for which the feedback was provided. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | +**MessageSid** | **string**| The SID of the Message resource for which the feedback was provided. | **optional** | ***CreateMessageFeedbackOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -925,7 +925,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **outcome** | **optional.String**| Whether the feedback has arrived. Can be: `unconfirmed` or `confirmed`. If `provide_feedback`=`true` in [the initial HTTP POST](https://www.twilio.com/docs/sms/api/message-resource#create-a-message-resource), the initial value of this property is `unconfirmed`. After the message arrives, update the value to `confirmed`. | + **Outcome** | **optional.String**| Whether the feedback has arrived. Can be: `unconfirmed` or `confirmed`. If `provide_feedback`=`true` in [the initial HTTP POST](https://www.twilio.com/docs/sms/api/message-resource#create-a-message-resource), the initial value of this property is `unconfirmed`. After the message arrives, update the value to `confirmed`. | ### Return type @@ -947,7 +947,7 @@ Name | Type | Description | Notes ## CreateNewKey -> ApiV2010AccountNewKey CreateNewKey(ctx, accountSid, optional) +> ApiV2010AccountNewKey CreateNewKey(ctx, AccountSid, optional) @@ -957,7 +957,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will be responsible for the new Key resource. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will be responsible for the new Key resource. | **optional** | ***CreateNewKeyOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -968,7 +968,7 @@ Optional parameters are passed through a pointer to a CreateNewKeyOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | ### Return type @@ -990,7 +990,7 @@ Name | Type | Description | Notes ## CreateNewSigningKey -> ApiV2010AccountNewSigningKey CreateNewSigningKey(ctx, accountSid, optional) +> ApiV2010AccountNewSigningKey CreateNewSigningKey(ctx, AccountSid, optional) @@ -1002,7 +1002,7 @@ Create a new Signing Key for the account making the request. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will be responsible for the new Key resource. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will be responsible for the new Key resource. | **optional** | ***CreateNewSigningKeyOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1013,7 +1013,7 @@ Optional parameters are passed through a pointer to a CreateNewSigningKeyOpts st Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | ### Return type @@ -1035,7 +1035,7 @@ Name | Type | Description | Notes ## CreateParticipant -> ApiV2010AccountConferenceParticipant CreateParticipant(ctx, accountSid, conferenceSid, optional) +> ApiV2010AccountConferenceParticipant CreateParticipant(ctx, AccountSid, ConferenceSid, optional) @@ -1045,8 +1045,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | -**conferenceSid** | **string**| The SID of the participant's conference. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | +**ConferenceSid** | **string**| The SID of the participant's conference. | **optional** | ***CreateParticipantOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1058,44 +1058,44 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **beep** | **optional.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`. | - **byoc** | **optional.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) | - **callReason** | **optional.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) | - **callSidToCoach** | **optional.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`. | - **callerId** | **optional.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. | - **coaching** | **optional.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. | - **conferenceRecord** | **optional.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`. | - **conferenceRecordingStatusCallback** | **optional.String**| The URL we should call using the `conference_recording_status_callback_method` when the conference recording is available. | - **conferenceRecordingStatusCallbackEvent** | [**optional.Interface of []string**](string.md)| The conference recording state changes that generate a call to `conference_recording_status_callback`. Can be: `in-progress`, `completed`, and `failed`. Separate multiple values with a space. The default value is `in-progress completed failed`. | - **conferenceRecordingStatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `conference_recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | - **conferenceStatusCallback** | **optional.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. | - **conferenceStatusCallbackEvent** | [**optional.Interface of []string**](string.md)| The conference state changes that should generate a call to `conference_status_callback`. Can be: `start`, `end`, `join`, `leave`, `mute`, `hold`, and `speaker`. Separate multiple values with a space. Defaults to `start end`. | - **conferenceStatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | - **conferenceTrim** | **optional.String**| Whether to trim leading and trailing silence from your recorded conference audio files. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. | - **earlyMedia** | **optional.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`. | - **endConferenceOnExit** | **optional.Bool**| Whether to end the conference when the participant leaves. Can be: `true` or `false` and defaults to `false`. | - **from** | **optional.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. | - **jitterBufferSize** | **optional.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`. | - **label** | **optional.String**| A label for this participant. If one is supplied, it may subsequently be used to fetch, update or delete the participant. | - **maxParticipants** | **optional.Int32**| The maximum number of participants in the conference. Can be a positive integer from `2` to `250`. The default value is `250`. | - **muted** | **optional.Bool**| Whether the agent is muted in the conference. Can be `true` or `false` and the default is `false`. | - **record** | **optional.Bool**| Whether to record the participant and their conferences, including the time between conferences. Can be `true` or `false` and the default is `false`. | - **recordingChannels** | **optional.String**| The recording channels for the final recording. Can be: `mono` or `dual` and the default is `mono`. | - **recordingStatusCallback** | **optional.String**| The URL that we should call using the `recording_status_callback_method` when the recording status changes. | - **recordingStatusCallbackEvent** | [**optional.Interface of []string**](string.md)| The recording state changes that should generate a call to `recording_status_callback`. Can be: `in-progress`, `completed`, and `failed`. Separate multiple values with a space. The default value is `in-progress completed failed`. | - **recordingStatusCallbackMethod** | **optional.String**| The HTTP method we should use when we call `recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | - **recordingTrack** | **optional.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. | - **region** | **optional.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`. | - **sipAuthPassword** | **optional.String**| The SIP password for authentication. | - **sipAuthUsername** | **optional.String**| The SIP username used for authentication. | - **startConferenceOnEnter** | **optional.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. | - **statusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application. | - **statusCallbackEvent** | [**optional.Interface of []string**](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`. | - **statusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `GET` and `POST` and defaults to `POST`. | - **timeout** | **optional.Int32**| 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. | - **to** | **optional.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. | - **waitMethod** | **optional.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. | - **waitUrl** | **optional.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). | + **Beep** | **optional.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`. | + **Byoc** | **optional.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) | + **CallReason** | **optional.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) | + **CallSidToCoach** | **optional.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`. | + **CallerId** | **optional.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. | + **Coaching** | **optional.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. | + **ConferenceRecord** | **optional.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`. | + **ConferenceRecordingStatusCallback** | **optional.String**| The URL we should call using the `conference_recording_status_callback_method` when the conference recording is available. | + **ConferenceRecordingStatusCallbackEvent** | [**optional.Interface of []string**](string.md)| The conference recording state changes that generate a call to `conference_recording_status_callback`. Can be: `in-progress`, `completed`, and `failed`. Separate multiple values with a space. The default value is `in-progress completed failed`. | + **ConferenceRecordingStatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `conference_recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | + **ConferenceStatusCallback** | **optional.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. | + **ConferenceStatusCallbackEvent** | [**optional.Interface of []string**](string.md)| The conference state changes that should generate a call to `conference_status_callback`. Can be: `start`, `end`, `join`, `leave`, `mute`, `hold`, and `speaker`. Separate multiple values with a space. Defaults to `start end`. | + **ConferenceStatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | + **ConferenceTrim** | **optional.String**| Whether to trim leading and trailing silence from your recorded conference audio files. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. | + **EarlyMedia** | **optional.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`. | + **EndConferenceOnExit** | **optional.Bool**| Whether to end the conference when the participant leaves. Can be: `true` or `false` and defaults to `false`. | + **From** | **optional.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. | + **JitterBufferSize** | **optional.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`. | + **Label** | **optional.String**| A label for this participant. If one is supplied, it may subsequently be used to fetch, update or delete the participant. | + **MaxParticipants** | **optional.Int32**| The maximum number of participants in the conference. Can be a positive integer from `2` to `250`. The default value is `250`. | + **Muted** | **optional.Bool**| Whether the agent is muted in the conference. Can be `true` or `false` and the default is `false`. | + **Record** | **optional.Bool**| Whether to record the participant and their conferences, including the time between conferences. Can be `true` or `false` and the default is `false`. | + **RecordingChannels** | **optional.String**| The recording channels for the final recording. Can be: `mono` or `dual` and the default is `mono`. | + **RecordingStatusCallback** | **optional.String**| The URL that we should call using the `recording_status_callback_method` when the recording status changes. | + **RecordingStatusCallbackEvent** | [**optional.Interface of []string**](string.md)| The recording state changes that should generate a call to `recording_status_callback`. Can be: `in-progress`, `completed`, and `failed`. Separate multiple values with a space. The default value is `in-progress completed failed`. | + **RecordingStatusCallbackMethod** | **optional.String**| The HTTP method we should use when we call `recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | + **RecordingTrack** | **optional.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. | + **Region** | **optional.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`. | + **SipAuthPassword** | **optional.String**| The SIP password for authentication. | + **SipAuthUsername** | **optional.String**| The SIP username used for authentication. | + **StartConferenceOnEnter** | **optional.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. | + **StatusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application. | + **StatusCallbackEvent** | [**optional.Interface of []string**](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`. | + **StatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `GET` and `POST` and defaults to `POST`. | + **Timeout** | **optional.Int32**| 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. | + **To** | **optional.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. | + **WaitMethod** | **optional.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. | + **WaitUrl** | **optional.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). | ### Return type @@ -1117,7 +1117,7 @@ Name | Type | Description | Notes ## CreatePayments -> ApiV2010AccountCallPayments CreatePayments(ctx, accountSid, callSid, optional) +> ApiV2010AccountCallPayments CreatePayments(ctx, AccountSid, CallSid, optional) @@ -1129,8 +1129,8 @@ create an instance of payments. This will start a new payments session Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | -**callSid** | **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. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | +**CallSid** | **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. | **optional** | ***CreatePaymentsOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1142,22 +1142,22 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **bankAccountType** | **optional.String**| Type of bank account if payment source is ACH. One of `consumer-checking`, `consumer-savings`, or `commercial-checking`. The default value is `consumer-checking`. | - **chargeAmount** | **optional.Float32**| 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** | **optional.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** | **optional.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. | - **idempotencyKey** | **optional.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. | - **input** | **optional.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. | - **minPostalCodeLength** | **optional.Int32**| A positive integer that is used to validate the length of the `PostalCode` inputted by the user. User must enter this many digits. | - **parameter** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A single level JSON string that is required when accepting certain information specific only to ACH payments. The information that has to be included here depends on the <Pay> Connector. [Read more](https://www.twilio.com/console/voice/pay-connectors). | - **paymentConnector** | **optional.String**| This is the unique name corresponding to the Payment Gateway Connector installed in the Twilio Add-ons. Learn more about [<Pay> Connectors](https://www.twilio.com/console/voice/pay-connectors). The default value is `Default`. | - **paymentMethod** | **optional.String**| Type of payment being captured. One of `credit-card` or `ach-debit`. The default value is `credit-card`. | - **postalCode** | **optional.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`. | - **securityCode** | **optional.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`. | - **statusCallback** | **optional.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) | - **timeout** | **optional.Int32**| The number of seconds that <Pay> 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`. | - **tokenType** | **optional.String**| Indicates whether the payment method should be tokenized as a `one-time` or `reusable` token. The default value is `reusable`. Do not enter a charge amount when tokenizing. If a charge amount is entered, the payment method will be charged and not tokenized. | - **validCardTypes** | **optional.String**| Credit card types separated by space that Pay should accept. The default value is `visa mastercard amex` | + **BankAccountType** | **optional.String**| Type of bank account if payment source is ACH. One of `consumer-checking`, `consumer-savings`, or `commercial-checking`. The default value is `consumer-checking`. | + **ChargeAmount** | **optional.Float32**| 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** | **optional.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** | **optional.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. | + **IdempotencyKey** | **optional.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. | + **Input** | **optional.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. | + **MinPostalCodeLength** | **optional.Int32**| A positive integer that is used to validate the length of the `PostalCode` inputted by the user. User must enter this many digits. | + **Parameter** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A single level JSON string that is required when accepting certain information specific only to ACH payments. The information that has to be included here depends on the <Pay> Connector. [Read more](https://www.twilio.com/console/voice/pay-connectors). | + **PaymentConnector** | **optional.String**| This is the unique name corresponding to the Payment Gateway Connector installed in the Twilio Add-ons. Learn more about [<Pay> Connectors](https://www.twilio.com/console/voice/pay-connectors). The default value is `Default`. | + **PaymentMethod** | **optional.String**| Type of payment being captured. One of `credit-card` or `ach-debit`. The default value is `credit-card`. | + **PostalCode** | **optional.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`. | + **SecurityCode** | **optional.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`. | + **StatusCallback** | **optional.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) | + **Timeout** | **optional.Int32**| The number of seconds that <Pay> 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`. | + **TokenType** | **optional.String**| Indicates whether the payment method should be tokenized as a `one-time` or `reusable` token. The default value is `reusable`. Do not enter a charge amount when tokenizing. If a charge amount is entered, the payment method will be charged and not tokenized. | + **ValidCardTypes** | **optional.String**| Credit card types separated by space that Pay should accept. The default value is `visa mastercard amex` | ### Return type @@ -1179,7 +1179,7 @@ Name | Type | Description | Notes ## CreateQueue -> ApiV2010AccountQueue CreateQueue(ctx, accountSid, optional) +> ApiV2010AccountQueue CreateQueue(ctx, AccountSid, optional) @@ -1191,7 +1191,7 @@ Create a queue Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | **optional** | ***CreateQueueOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1202,8 +1202,8 @@ Optional parameters are passed through a pointer to a CreateQueueOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| A descriptive string that you created to describe this resource. It can be up to 64 characters long. | - **maxSize** | **optional.Int32**| The maximum number of calls allowed to be in the queue. The default is 100. The maximum is 5000. | + **FriendlyName** | **optional.String**| A descriptive string that you created to describe this resource. It can be up to 64 characters long. | + **MaxSize** | **optional.Int32**| The maximum number of calls allowed to be in the queue. The default is 100. The maximum is 5000. | ### Return type @@ -1225,7 +1225,7 @@ Name | Type | Description | Notes ## CreateSipAuthCallsCredentialListMapping -> ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping CreateSipAuthCallsCredentialListMapping(ctx, accountSid, domainSid, optional) +> ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping CreateSipAuthCallsCredentialListMapping(ctx, AccountSid, DomainSid, optional) @@ -1237,8 +1237,8 @@ Create a new credential list mapping resource Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | -**domainSid** | **string**| The SID of the SIP domain that will contain the new resource. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | +**DomainSid** | **string**| The SID of the SIP domain that will contain the new resource. | **optional** | ***CreateSipAuthCallsCredentialListMappingOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1250,7 +1250,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **credentialListSid** | **optional.String**| The SID of the CredentialList resource to map to the SIP domain. | + **CredentialListSid** | **optional.String**| The SID of the CredentialList resource to map to the SIP domain. | ### Return type @@ -1272,7 +1272,7 @@ Name | Type | Description | Notes ## CreateSipAuthCallsIpAccessControlListMapping -> ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping CreateSipAuthCallsIpAccessControlListMapping(ctx, accountSid, domainSid, optional) +> ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping CreateSipAuthCallsIpAccessControlListMapping(ctx, AccountSid, DomainSid, optional) @@ -1284,8 +1284,8 @@ Create a new IP Access Control List mapping Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | -**domainSid** | **string**| The SID of the SIP domain that will contain the new resource. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | +**DomainSid** | **string**| The SID of the SIP domain that will contain the new resource. | **optional** | ***CreateSipAuthCallsIpAccessControlListMappingOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1297,7 +1297,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ipAccessControlListSid** | **optional.String**| The SID of the IpAccessControlList resource to map to the SIP domain. | + **IpAccessControlListSid** | **optional.String**| The SID of the IpAccessControlList resource to map to the SIP domain. | ### Return type @@ -1319,7 +1319,7 @@ Name | Type | Description | Notes ## CreateSipAuthRegistrationsCredentialListMapping -> ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping CreateSipAuthRegistrationsCredentialListMapping(ctx, accountSid, domainSid, optional) +> ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping CreateSipAuthRegistrationsCredentialListMapping(ctx, AccountSid, DomainSid, optional) @@ -1331,8 +1331,8 @@ Create a new credential list mapping resource Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | -**domainSid** | **string**| The SID of the SIP domain that will contain the new resource. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | +**DomainSid** | **string**| The SID of the SIP domain that will contain the new resource. | **optional** | ***CreateSipAuthRegistrationsCredentialListMappingOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1344,7 +1344,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **credentialListSid** | **optional.String**| The SID of the CredentialList resource to map to the SIP domain. | + **CredentialListSid** | **optional.String**| The SID of the CredentialList resource to map to the SIP domain. | ### Return type @@ -1366,7 +1366,7 @@ Name | Type | Description | Notes ## CreateSipCredential -> ApiV2010AccountSipSipCredentialListSipCredential CreateSipCredential(ctx, accountSid, credentialListSid, optional) +> ApiV2010AccountSipSipCredentialListSipCredential CreateSipCredential(ctx, AccountSid, CredentialListSid, optional) @@ -1378,8 +1378,8 @@ Create a new credential resource. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The unique id of the Account that is responsible for this resource. | -**credentialListSid** | **string**| The unique id that identifies the credential list to include the created credential. | +**AccountSid** | **string**| The unique id of the Account that is responsible for this resource. | +**CredentialListSid** | **string**| The unique id that identifies the credential list to include the created credential. | **optional** | ***CreateSipCredentialOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1391,8 +1391,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **password** | **optional.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`) | - **username** | **optional.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. | + **Password** | **optional.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`) | + **Username** | **optional.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. | ### Return type @@ -1414,7 +1414,7 @@ Name | Type | Description | Notes ## CreateSipCredentialList -> ApiV2010AccountSipSipCredentialList CreateSipCredentialList(ctx, accountSid, optional) +> ApiV2010AccountSipSipCredentialList CreateSipCredentialList(ctx, AccountSid, optional) @@ -1426,7 +1426,7 @@ Create a Credential List Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The unique id of the Account that is responsible for this resource. | +**AccountSid** | **string**| The unique id of the Account that is responsible for this resource. | **optional** | ***CreateSipCredentialListOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1437,7 +1437,7 @@ Optional parameters are passed through a pointer to a CreateSipCredentialListOpt Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| A human readable descriptive text that describes the CredentialList, up to 64 characters long. | + **FriendlyName** | **optional.String**| A human readable descriptive text that describes the CredentialList, up to 64 characters long. | ### Return type @@ -1459,7 +1459,7 @@ Name | Type | Description | Notes ## CreateSipCredentialListMapping -> ApiV2010AccountSipSipDomainSipCredentialListMapping CreateSipCredentialListMapping(ctx, accountSid, domainSid, optional) +> ApiV2010AccountSipSipDomainSipCredentialListMapping CreateSipCredentialListMapping(ctx, AccountSid, DomainSid, optional) @@ -1471,8 +1471,8 @@ Create a CredentialListMapping resource for an account. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | -**domainSid** | **string**| A 34 character string that uniquely identifies the SIP Domain for which the CredentialList resource will be mapped. | +**AccountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | +**DomainSid** | **string**| A 34 character string that uniquely identifies the SIP Domain for which the CredentialList resource will be mapped. | **optional** | ***CreateSipCredentialListMappingOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1484,7 +1484,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **credentialListSid** | **optional.String**| A 34 character string that uniquely identifies the CredentialList resource to map to the SIP domain. | + **CredentialListSid** | **optional.String**| A 34 character string that uniquely identifies the CredentialList resource to map to the SIP domain. | ### Return type @@ -1506,7 +1506,7 @@ Name | Type | Description | Notes ## CreateSipDomain -> ApiV2010AccountSipSipDomain CreateSipDomain(ctx, accountSid, optional) +> ApiV2010AccountSipSipDomain CreateSipDomain(ctx, AccountSid, optional) @@ -1518,7 +1518,7 @@ Create a new Domain Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | **optional** | ***CreateSipDomainOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1529,19 +1529,19 @@ Optional parameters are passed through a pointer to a CreateSipDomainOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **byocTrunkSid** | **optional.String**| The SID of the BYOC Trunk(Bring Your Own Carrier) resource that the Sip Domain will be associated with. | - **domainName** | **optional.String**| The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and \\\"-\\\". | - **emergencyCallerSid** | **optional.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. | - **emergencyCallingEnabled** | **optional.Bool**| Whether emergency calling is enabled for the domain. If enabled, allows emergency calls on the domain from phone numbers with validated addresses. | - **friendlyName** | **optional.String**| A descriptive string that you created to describe the resource. It can be up to 64 characters long. | - **secure** | **optional.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. | - **sipRegistration** | **optional.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. | - **voiceFallbackMethod** | **optional.String**| The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. | - **voiceFallbackUrl** | **optional.String**| The URL that we should call when an error occurs while retrieving or executing the TwiML from `voice_url`. | - **voiceMethod** | **optional.String**| The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`. | - **voiceStatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `voice_status_callback_url`. Can be: `GET` or `POST`. | - **voiceStatusCallbackUrl** | **optional.String**| The URL that we should call to pass status parameters (such as call ended) to your application. | - **voiceUrl** | **optional.String**| The URL we should when the domain receives a call. | + **ByocTrunkSid** | **optional.String**| The SID of the BYOC Trunk(Bring Your Own Carrier) resource that the Sip Domain will be associated with. | + **DomainName** | **optional.String**| The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and \\\"-\\\". | + **EmergencyCallerSid** | **optional.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. | + **EmergencyCallingEnabled** | **optional.Bool**| Whether emergency calling is enabled for the domain. If enabled, allows emergency calls on the domain from phone numbers with validated addresses. | + **FriendlyName** | **optional.String**| A descriptive string that you created to describe the resource. It can be up to 64 characters long. | + **Secure** | **optional.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. | + **SipRegistration** | **optional.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. | + **VoiceFallbackMethod** | **optional.String**| The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. | + **VoiceFallbackUrl** | **optional.String**| The URL that we should call when an error occurs while retrieving or executing the TwiML from `voice_url`. | + **VoiceMethod** | **optional.String**| The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`. | + **VoiceStatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `voice_status_callback_url`. Can be: `GET` or `POST`. | + **VoiceStatusCallbackUrl** | **optional.String**| The URL that we should call to pass status parameters (such as call ended) to your application. | + **VoiceUrl** | **optional.String**| The URL we should when the domain receives a call. | ### Return type @@ -1563,7 +1563,7 @@ Name | Type | Description | Notes ## CreateSipIpAccessControlList -> ApiV2010AccountSipSipIpAccessControlList CreateSipIpAccessControlList(ctx, accountSid, optional) +> ApiV2010AccountSipSipIpAccessControlList CreateSipIpAccessControlList(ctx, AccountSid, optional) @@ -1575,7 +1575,7 @@ Create a new IpAccessControlList resource Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | +**AccountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | **optional** | ***CreateSipIpAccessControlListOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1586,7 +1586,7 @@ Optional parameters are passed through a pointer to a CreateSipIpAccessControlLi Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| A human readable descriptive text that describes the IpAccessControlList, up to 64 characters long. | + **FriendlyName** | **optional.String**| A human readable descriptive text that describes the IpAccessControlList, up to 64 characters long. | ### Return type @@ -1608,7 +1608,7 @@ Name | Type | Description | Notes ## CreateSipIpAccessControlListMapping -> ApiV2010AccountSipSipDomainSipIpAccessControlListMapping CreateSipIpAccessControlListMapping(ctx, accountSid, domainSid, optional) +> ApiV2010AccountSipSipDomainSipIpAccessControlListMapping CreateSipIpAccessControlListMapping(ctx, AccountSid, DomainSid, optional) @@ -1620,8 +1620,8 @@ Create a new IpAccessControlListMapping resource. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The unique id of the Account that is responsible for this resource. | -**domainSid** | **string**| A 34 character string that uniquely identifies the SIP domain. | +**AccountSid** | **string**| The unique id of the Account that is responsible for this resource. | +**DomainSid** | **string**| A 34 character string that uniquely identifies the SIP domain. | **optional** | ***CreateSipIpAccessControlListMappingOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1633,7 +1633,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ipAccessControlListSid** | **optional.String**| The unique id of the IP access control list to map to the SIP domain. | + **IpAccessControlListSid** | **optional.String**| The unique id of the IP access control list to map to the SIP domain. | ### Return type @@ -1655,7 +1655,7 @@ Name | Type | Description | Notes ## CreateSipIpAddress -> ApiV2010AccountSipSipIpAccessControlListSipIpAddress CreateSipIpAddress(ctx, accountSid, ipAccessControlListSid, optional) +> ApiV2010AccountSipSipIpAccessControlListSipIpAddress CreateSipIpAddress(ctx, AccountSid, IpAccessControlListSid, optional) @@ -1667,8 +1667,8 @@ Create a new IpAddress resource. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | -**ipAccessControlListSid** | **string**| The IpAccessControlList Sid with which to associate the created IpAddress resource. | +**AccountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | +**IpAccessControlListSid** | **string**| The IpAccessControlList Sid with which to associate the created IpAddress resource. | **optional** | ***CreateSipIpAddressOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1680,9 +1680,9 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **cidrPrefixLength** | **optional.Int32**| 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. | - **friendlyName** | **optional.String**| A human readable descriptive text for this resource, up to 64 characters long. | - **ipAddress** | **optional.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. | + **CidrPrefixLength** | **optional.Int32**| 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. | + **FriendlyName** | **optional.String**| A human readable descriptive text for this resource, up to 64 characters long. | + **IpAddress** | **optional.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. | ### Return type @@ -1704,7 +1704,7 @@ Name | Type | Description | Notes ## CreateToken -> ApiV2010AccountToken CreateToken(ctx, accountSid, optional) +> ApiV2010AccountToken CreateToken(ctx, AccountSid, optional) @@ -1716,7 +1716,7 @@ Create a new token for ICE servers Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | **optional** | ***CreateTokenOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1727,7 +1727,7 @@ Optional parameters are passed through a pointer to a CreateTokenOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ttl** | **optional.Int32**| The duration in seconds for which the generated credentials are valid. The default value is 86400 (24 hours). | + **Ttl** | **optional.Int32**| The duration in seconds for which the generated credentials are valid. The default value is 86400 (24 hours). | ### Return type @@ -1749,7 +1749,7 @@ Name | Type | Description | Notes ## CreateUsageTrigger -> ApiV2010AccountUsageUsageTrigger CreateUsageTrigger(ctx, accountSid, optional) +> ApiV2010AccountUsageUsageTrigger CreateUsageTrigger(ctx, AccountSid, optional) @@ -1761,7 +1761,7 @@ Create a new UsageTrigger Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. | **optional** | ***CreateUsageTriggerOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1772,13 +1772,13 @@ Optional parameters are passed through a pointer to a CreateUsageTriggerOpts str Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **callbackMethod** | **optional.String**| The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is `POST`. | - **callbackUrl** | **optional.String**| The URL we should call using `callback_method` when the trigger fires. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | - **recurring** | **optional.String**| The frequency of a recurring UsageTrigger. Can be: `daily`, `monthly`, or `yearly` for recurring triggers or empty for non-recurring triggers. A trigger will only fire once during each period. Recurring times are in GMT. | - **triggerBy** | **optional.String**| The field in the [UsageRecord](https://www.twilio.com/docs/usage/api/usage-record) resource that should fire the trigger. Can be: `count`, `usage`, or `price` as described in the [UsageRecords documentation](https://www.twilio.com/docs/usage/api/usage-record#usage-count-price). The default is `usage`. | - **triggerValue** | **optional.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`. | - **usageCategory** | **optional.String**| The usage category that the trigger should watch. Use one of the supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) for this value. | + **CallbackMethod** | **optional.String**| The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is `POST`. | + **CallbackUrl** | **optional.String**| The URL we should call using `callback_method` when the trigger fires. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **Recurring** | **optional.String**| The frequency of a recurring UsageTrigger. Can be: `daily`, `monthly`, or `yearly` for recurring triggers or empty for non-recurring triggers. A trigger will only fire once during each period. Recurring times are in GMT. | + **TriggerBy** | **optional.String**| The field in the [UsageRecord](https://www.twilio.com/docs/usage/api/usage-record) resource that should fire the trigger. Can be: `count`, `usage`, or `price` as described in the [UsageRecords documentation](https://www.twilio.com/docs/usage/api/usage-record#usage-count-price). The default is `usage`. | + **TriggerValue** | **optional.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`. | + **UsageCategory** | **optional.String**| The usage category that the trigger should watch. Use one of the supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) for this value. | ### Return type @@ -1800,7 +1800,7 @@ Name | Type | Description | Notes ## CreateValidationRequest -> ApiV2010AccountValidationRequest CreateValidationRequest(ctx, accountSid, optional) +> ApiV2010AccountValidationRequest CreateValidationRequest(ctx, AccountSid, optional) @@ -1810,7 +1810,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for the new caller ID resource. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for the new caller ID resource. | **optional** | ***CreateValidationRequestOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1821,12 +1821,12 @@ Optional parameters are passed through a pointer to a CreateValidationRequestOpt Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **callDelay** | **optional.Int32**| 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** | **optional.String**| The digits to dial after connecting the verification call. | - **friendlyName** | **optional.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. | - **phoneNumber** | **optional.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. | - **statusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information about the verification process to your application. | - **statusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST`, and the default is `POST`. | + **CallDelay** | **optional.Int32**| 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** | **optional.String**| The digits to dial after connecting the verification call. | + **FriendlyName** | **optional.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. | + **PhoneNumber** | **optional.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. | + **StatusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information about the verification process to your application. | + **StatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST`, and the default is `POST`. | ### Return type @@ -1848,7 +1848,7 @@ Name | Type | Description | Notes ## DeleteAddress -> DeleteAddress(ctx, accountSid, sid) +> DeleteAddress(ctx, AccountSid, Sid) @@ -1858,8 +1858,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to delete. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Address resource to delete. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Address resource to delete. | ### Return type @@ -1881,7 +1881,7 @@ Name | Type | Description | Notes ## DeleteApplication -> DeleteApplication(ctx, accountSid, sid) +> DeleteApplication(ctx, AccountSid, Sid) @@ -1893,8 +1893,8 @@ Delete the application by the specified application sid Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resources to delete. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Application resource to delete. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resources to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Application resource to delete. | ### Return type @@ -1916,7 +1916,7 @@ Name | Type | Description | Notes ## DeleteCall -> DeleteCall(ctx, accountSid, sid) +> DeleteCall(ctx, AccountSid, Sid) @@ -1928,8 +1928,8 @@ Delete a Call record from your account. Once the record is deleted, it will no l Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to delete. | -**sid** | **string**| The Twilio-provided Call SID that uniquely identifies the Call resource to delete | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to delete. | +**Sid** | **string**| The Twilio-provided Call SID that uniquely identifies the Call resource to delete | ### Return type @@ -1951,7 +1951,7 @@ Name | Type | Description | Notes ## DeleteCallFeedbackSummary -> DeleteCallFeedbackSummary(ctx, accountSid, sid) +> DeleteCallFeedbackSummary(ctx, AccountSid, Sid) @@ -1963,8 +1963,8 @@ Delete a FeedbackSummary resource from a call Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**AccountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | ### Return type @@ -1986,7 +1986,7 @@ Name | Type | Description | Notes ## DeleteCallRecording -> DeleteCallRecording(ctx, accountSid, callSid, sid) +> DeleteCallRecording(ctx, AccountSid, CallSid, Sid) @@ -1998,9 +1998,9 @@ Delete a recording from your account Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to delete. | -**callSid** | **string**| The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resources to delete. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Recording resource to delete. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to delete. | +**CallSid** | **string**| The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resources to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Recording resource to delete. | ### Return type @@ -2022,7 +2022,7 @@ Name | Type | Description | Notes ## DeleteConferenceRecording -> DeleteConferenceRecording(ctx, accountSid, conferenceSid, sid) +> DeleteConferenceRecording(ctx, AccountSid, ConferenceSid, Sid) @@ -2034,9 +2034,9 @@ Delete a recording from your account Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resources to delete. | -**conferenceSid** | **string**| The Conference SID that identifies the conference associated with the recording to delete. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Conference Recording resource to delete. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resources to delete. | +**ConferenceSid** | **string**| The Conference SID that identifies the conference associated with the recording to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Conference Recording resource to delete. | ### Return type @@ -2058,7 +2058,7 @@ Name | Type | Description | Notes ## DeleteConnectApp -> DeleteConnectApp(ctx, accountSid, sid) +> DeleteConnectApp(ctx, AccountSid, Sid) @@ -2070,8 +2070,8 @@ Delete an instance of a connect-app Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resource to fetch. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the ConnectApp resource to fetch. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the ConnectApp resource to fetch. | ### Return type @@ -2093,7 +2093,7 @@ Name | Type | Description | Notes ## DeleteIncomingPhoneNumber -> DeleteIncomingPhoneNumber(ctx, accountSid, sid) +> DeleteIncomingPhoneNumber(ctx, AccountSid, Sid) @@ -2105,8 +2105,8 @@ Delete a phone-numbers belonging to the account used to make the request. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IncomingPhoneNumber resources to delete. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to delete. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IncomingPhoneNumber resources to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to delete. | ### Return type @@ -2128,7 +2128,7 @@ Name | Type | Description | Notes ## DeleteIncomingPhoneNumberAssignedAddOn -> DeleteIncomingPhoneNumberAssignedAddOn(ctx, accountSid, resourceSid, sid) +> DeleteIncomingPhoneNumberAssignedAddOn(ctx, AccountSid, ResourceSid, Sid) @@ -2140,9 +2140,9 @@ Remove the assignment of an Add-on installation from the Number specified. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to delete. | -**resourceSid** | **string**| The SID of the Phone Number to which the Add-on is assigned. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the resource to delete. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to delete. | +**ResourceSid** | **string**| The SID of the Phone Number to which the Add-on is assigned. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the resource to delete. | ### Return type @@ -2164,7 +2164,7 @@ Name | Type | Description | Notes ## DeleteKey -> DeleteKey(ctx, accountSid, sid) +> DeleteKey(ctx, AccountSid, Sid) @@ -2174,8 +2174,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resources to delete. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Key resource to delete. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resources to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Key resource to delete. | ### Return type @@ -2197,7 +2197,7 @@ Name | Type | Description | Notes ## DeleteMedia -> DeleteMedia(ctx, accountSid, messageSid, sid) +> DeleteMedia(ctx, AccountSid, MessageSid, Sid) @@ -2209,9 +2209,9 @@ Delete media from your account. Once delete, you will no longer be billed Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Media resource(s) to delete. | -**messageSid** | **string**| The SID of the Message resource that this Media resource belongs to. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Media resource to delete | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Media resource(s) to delete. | +**MessageSid** | **string**| The SID of the Message resource that this Media resource belongs to. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Media resource to delete | ### Return type @@ -2233,7 +2233,7 @@ Name | Type | Description | Notes ## DeleteMessage -> DeleteMessage(ctx, accountSid, sid) +> DeleteMessage(ctx, AccountSid, Sid) @@ -2245,8 +2245,8 @@ Deletes a message record from your account Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Message resources to delete. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Message resource to delete. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Message resources to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Message resource to delete. | ### Return type @@ -2268,7 +2268,7 @@ Name | Type | Description | Notes ## DeleteOutgoingCallerId -> DeleteOutgoingCallerId(ctx, accountSid, sid) +> DeleteOutgoingCallerId(ctx, AccountSid, Sid) @@ -2280,8 +2280,8 @@ Delete the caller-id specified from the account Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resources to delete. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the OutgoingCallerId resource to delete. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resources to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the OutgoingCallerId resource to delete. | ### Return type @@ -2303,7 +2303,7 @@ Name | Type | Description | Notes ## DeleteParticipant -> DeleteParticipant(ctx, accountSid, conferenceSid, callSid) +> DeleteParticipant(ctx, AccountSid, ConferenceSid, CallSid) @@ -2315,9 +2315,9 @@ Kick a participant from a given conference Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resources to delete. | -**conferenceSid** | **string**| The SID of the conference with the participants to delete. | -**callSid** | **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. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resources to delete. | +**ConferenceSid** | **string**| The SID of the conference with the participants to delete. | +**CallSid** | **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. | ### Return type @@ -2339,7 +2339,7 @@ Name | Type | Description | Notes ## DeleteQueue -> DeleteQueue(ctx, accountSid, sid) +> DeleteQueue(ctx, AccountSid, Sid) @@ -2351,8 +2351,8 @@ Remove an empty queue Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resource to delete. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Queue resource to delete | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resource to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Queue resource to delete | ### Return type @@ -2374,7 +2374,7 @@ Name | Type | Description | Notes ## DeleteRecording -> DeleteRecording(ctx, accountSid, sid) +> DeleteRecording(ctx, AccountSid, Sid) @@ -2386,8 +2386,8 @@ Delete a recording from your account Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to delete. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Recording resource to delete. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Recording resource to delete. | ### Return type @@ -2409,7 +2409,7 @@ Name | Type | Description | Notes ## DeleteRecordingAddOnResult -> DeleteRecordingAddOnResult(ctx, accountSid, referenceSid, sid) +> DeleteRecordingAddOnResult(ctx, AccountSid, ReferenceSid, Sid) @@ -2421,9 +2421,9 @@ Delete a result and purge all associated Payloads Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult resources to delete. | -**referenceSid** | **string**| The SID of the recording to which the result to delete belongs. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Recording AddOnResult resource to delete. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult resources to delete. | +**ReferenceSid** | **string**| The SID of the recording to which the result to delete belongs. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Recording AddOnResult resource to delete. | ### Return type @@ -2445,7 +2445,7 @@ Name | Type | Description | Notes ## DeleteRecordingAddOnResultPayload -> DeleteRecordingAddOnResultPayload(ctx, accountSid, referenceSid, addOnResultSid, sid) +> DeleteRecordingAddOnResultPayload(ctx, AccountSid, ReferenceSid, AddOnResultSid, Sid) @@ -2457,10 +2457,10 @@ Delete a payload from the result along with all associated Data Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resources to delete. | -**referenceSid** | **string**| The SID of the recording to which the AddOnResult resource that contains the payloads to delete belongs. | -**addOnResultSid** | **string**| The SID of the AddOnResult to which the payloads to delete belongs. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Recording AddOnResult Payload resource to delete. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resources to delete. | +**ReferenceSid** | **string**| The SID of the recording to which the AddOnResult resource that contains the payloads to delete belongs. | +**AddOnResultSid** | **string**| The SID of the AddOnResult to which the payloads to delete belongs. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Recording AddOnResult Payload resource to delete. | ### Return type @@ -2482,7 +2482,7 @@ Name | Type | Description | Notes ## DeleteRecordingTranscription -> DeleteRecordingTranscription(ctx, accountSid, recordingSid, sid) +> DeleteRecordingTranscription(ctx, AccountSid, RecordingSid, Sid) @@ -2492,9 +2492,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to delete. | -**recordingSid** | **string**| The SID of the [Recording](https://www.twilio.com/docs/voice/api/recording) that created the transcription to delete. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Transcription resource to delete. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to delete. | +**RecordingSid** | **string**| The SID of the [Recording](https://www.twilio.com/docs/voice/api/recording) that created the transcription to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Transcription resource to delete. | ### Return type @@ -2516,7 +2516,7 @@ Name | Type | Description | Notes ## DeleteSigningKey -> DeleteSigningKey(ctx, accountSid, sid) +> DeleteSigningKey(ctx, AccountSid, Sid) @@ -2526,8 +2526,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| | -**sid** | **string**| | +**AccountSid** | **string**| | +**Sid** | **string**| | ### Return type @@ -2549,7 +2549,7 @@ Name | Type | Description | Notes ## DeleteSipAuthCallsCredentialListMapping -> DeleteSipAuthCallsCredentialListMapping(ctx, accountSid, domainSid, sid) +> DeleteSipAuthCallsCredentialListMapping(ctx, AccountSid, DomainSid, Sid) @@ -2561,9 +2561,9 @@ Delete a credential list mapping from the requested domain Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to delete. | -**domainSid** | **string**| The SID of the SIP domain that contains the resource to delete. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the CredentialListMapping resource to delete. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to delete. | +**DomainSid** | **string**| The SID of the SIP domain that contains the resource to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the CredentialListMapping resource to delete. | ### Return type @@ -2585,7 +2585,7 @@ Name | Type | Description | Notes ## DeleteSipAuthCallsIpAccessControlListMapping -> DeleteSipAuthCallsIpAccessControlListMapping(ctx, accountSid, domainSid, sid) +> DeleteSipAuthCallsIpAccessControlListMapping(ctx, AccountSid, DomainSid, Sid) @@ -2597,9 +2597,9 @@ Delete an IP Access Control List mapping from the requested domain Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IpAccessControlListMapping resources to delete. | -**domainSid** | **string**| The SID of the SIP domain that contains the resources to delete. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the IpAccessControlListMapping resource to delete. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IpAccessControlListMapping resources to delete. | +**DomainSid** | **string**| The SID of the SIP domain that contains the resources to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the IpAccessControlListMapping resource to delete. | ### Return type @@ -2621,7 +2621,7 @@ Name | Type | Description | Notes ## DeleteSipAuthRegistrationsCredentialListMapping -> DeleteSipAuthRegistrationsCredentialListMapping(ctx, accountSid, domainSid, sid) +> DeleteSipAuthRegistrationsCredentialListMapping(ctx, AccountSid, DomainSid, Sid) @@ -2633,9 +2633,9 @@ Delete a credential list mapping from the requested domain Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to delete. | -**domainSid** | **string**| The SID of the SIP domain that contains the resources to delete. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the CredentialListMapping resource to delete. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to delete. | +**DomainSid** | **string**| The SID of the SIP domain that contains the resources to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the CredentialListMapping resource to delete. | ### Return type @@ -2657,7 +2657,7 @@ Name | Type | Description | Notes ## DeleteSipCredential -> DeleteSipCredential(ctx, accountSid, credentialListSid, sid) +> DeleteSipCredential(ctx, AccountSid, CredentialListSid, Sid) @@ -2669,9 +2669,9 @@ Delete a credential resource. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The unique id of the Account that is responsible for this resource. | -**credentialListSid** | **string**| The unique id that identifies the credential list that contains the desired credentials. | -**sid** | **string**| The unique id that identifies the resource to delete. | +**AccountSid** | **string**| The unique id of the Account that is responsible for this resource. | +**CredentialListSid** | **string**| The unique id that identifies the credential list that contains the desired credentials. | +**Sid** | **string**| The unique id that identifies the resource to delete. | ### Return type @@ -2693,7 +2693,7 @@ Name | Type | Description | Notes ## DeleteSipCredentialList -> DeleteSipCredentialList(ctx, accountSid, sid) +> DeleteSipCredentialList(ctx, AccountSid, Sid) @@ -2705,8 +2705,8 @@ Delete a Credential List Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The unique id of the Account that is responsible for this resource. | -**sid** | **string**| The credential list Sid that uniquely identifies this resource | +**AccountSid** | **string**| The unique id of the Account that is responsible for this resource. | +**Sid** | **string**| The credential list Sid that uniquely identifies this resource | ### Return type @@ -2728,7 +2728,7 @@ Name | Type | Description | Notes ## DeleteSipCredentialListMapping -> DeleteSipCredentialListMapping(ctx, accountSid, domainSid, sid) +> DeleteSipCredentialListMapping(ctx, AccountSid, DomainSid, Sid) @@ -2740,9 +2740,9 @@ Delete a CredentialListMapping resource from an account. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | -**domainSid** | **string**| A 34 character string that uniquely identifies the SIP Domain that includes the resource to delete. | -**sid** | **string**| A 34 character string that uniquely identifies the resource to delete. | +**AccountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | +**DomainSid** | **string**| A 34 character string that uniquely identifies the SIP Domain that includes the resource to delete. | +**Sid** | **string**| A 34 character string that uniquely identifies the resource to delete. | ### Return type @@ -2764,7 +2764,7 @@ Name | Type | Description | Notes ## DeleteSipDomain -> DeleteSipDomain(ctx, accountSid, sid) +> DeleteSipDomain(ctx, AccountSid, Sid) @@ -2776,8 +2776,8 @@ Delete an instance of a Domain Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resources to delete. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the SipDomain resource to delete. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resources to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the SipDomain resource to delete. | ### Return type @@ -2799,7 +2799,7 @@ Name | Type | Description | Notes ## DeleteSipIpAccessControlList -> DeleteSipIpAccessControlList(ctx, accountSid, sid) +> DeleteSipIpAccessControlList(ctx, AccountSid, Sid) @@ -2811,8 +2811,8 @@ Delete an IpAccessControlList from the requested account Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | -**sid** | **string**| A 34 character string that uniquely identifies the resource to delete. | +**AccountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | +**Sid** | **string**| A 34 character string that uniquely identifies the resource to delete. | ### Return type @@ -2834,7 +2834,7 @@ Name | Type | Description | Notes ## DeleteSipIpAccessControlListMapping -> DeleteSipIpAccessControlListMapping(ctx, accountSid, domainSid, sid) +> DeleteSipIpAccessControlListMapping(ctx, AccountSid, DomainSid, Sid) @@ -2846,9 +2846,9 @@ Delete an IpAccessControlListMapping resource. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The unique id of the Account that is responsible for this resource. | -**domainSid** | **string**| A 34 character string that uniquely identifies the SIP domain. | -**sid** | **string**| A 34 character string that uniquely identifies the resource to delete. | +**AccountSid** | **string**| The unique id of the Account that is responsible for this resource. | +**DomainSid** | **string**| A 34 character string that uniquely identifies the SIP domain. | +**Sid** | **string**| A 34 character string that uniquely identifies the resource to delete. | ### Return type @@ -2870,7 +2870,7 @@ Name | Type | Description | Notes ## DeleteSipIpAddress -> DeleteSipIpAddress(ctx, accountSid, ipAccessControlListSid, sid) +> DeleteSipIpAddress(ctx, AccountSid, IpAccessControlListSid, Sid) @@ -2882,9 +2882,9 @@ Delete an IpAddress resource. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | -**ipAccessControlListSid** | **string**| The IpAccessControlList Sid that identifies the IpAddress resources to delete. | -**sid** | **string**| A 34 character string that uniquely identifies the resource to delete. | +**AccountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | +**IpAccessControlListSid** | **string**| The IpAccessControlList Sid that identifies the IpAddress resources to delete. | +**Sid** | **string**| A 34 character string that uniquely identifies the resource to delete. | ### Return type @@ -2906,7 +2906,7 @@ Name | Type | Description | Notes ## DeleteTranscription -> DeleteTranscription(ctx, accountSid, sid) +> DeleteTranscription(ctx, AccountSid, Sid) @@ -2918,8 +2918,8 @@ Delete a transcription from the account used to make the request Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to delete. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Transcription resource to delete. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Transcription resource to delete. | ### Return type @@ -2941,7 +2941,7 @@ Name | Type | Description | Notes ## DeleteUsageTrigger -> DeleteUsageTrigger(ctx, accountSid, sid) +> DeleteUsageTrigger(ctx, AccountSid, Sid) @@ -2951,8 +2951,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resources to delete. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the UsageTrigger resource to delete. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resources to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the UsageTrigger resource to delete. | ### Return type @@ -2974,7 +2974,7 @@ Name | Type | Description | Notes ## FetchAccount -> ApiV2010Account FetchAccount(ctx, sid) +> ApiV2010Account FetchAccount(ctx, Sid) @@ -2986,7 +2986,7 @@ Fetch the account specified by the provided Account Sid Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Account Sid that uniquely identifies the account to fetch | +**Sid** | **string**| The Account Sid that uniquely identifies the account to fetch | ### Return type @@ -3008,7 +3008,7 @@ Name | Type | Description | Notes ## FetchAddress -> ApiV2010AccountAddress FetchAddress(ctx, accountSid, sid) +> ApiV2010AccountAddress FetchAddress(ctx, AccountSid, Sid) @@ -3018,8 +3018,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to fetch. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Address resource to fetch. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Address resource to fetch. | ### Return type @@ -3041,7 +3041,7 @@ Name | Type | Description | Notes ## FetchApplication -> ApiV2010AccountApplication FetchApplication(ctx, accountSid, sid) +> ApiV2010AccountApplication FetchApplication(ctx, AccountSid, Sid) @@ -3053,8 +3053,8 @@ Fetch the application specified by the provided sid Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resource to fetch. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Application resource to fetch. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Application resource to fetch. | ### Return type @@ -3076,7 +3076,7 @@ Name | Type | Description | Notes ## FetchAuthorizedConnectApp -> ApiV2010AccountAuthorizedConnectApp FetchAuthorizedConnectApp(ctx, accountSid, connectAppSid) +> ApiV2010AccountAuthorizedConnectApp FetchAuthorizedConnectApp(ctx, AccountSid, ConnectAppSid) @@ -3088,8 +3088,8 @@ Fetch an instance of an authorized-connect-app Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the AuthorizedConnectApp resource to fetch. | -**connectAppSid** | **string**| The SID of the Connect App to fetch. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the AuthorizedConnectApp resource to fetch. | +**ConnectAppSid** | **string**| The SID of the Connect App to fetch. | ### Return type @@ -3111,7 +3111,7 @@ Name | Type | Description | Notes ## FetchAvailablePhoneNumberCountry -> ApiV2010AccountAvailablePhoneNumberCountry FetchAvailablePhoneNumberCountry(ctx, accountSid, countryCode) +> ApiV2010AccountAvailablePhoneNumberCountry FetchAvailablePhoneNumberCountry(ctx, AccountSid, CountryCode) @@ -3121,8 +3121,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the available phone number Country resource. | -**countryCode** | **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. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the available phone number Country resource. | +**CountryCode** | **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. | ### Return type @@ -3144,7 +3144,7 @@ Name | Type | Description | Notes ## FetchBalance -> ApiV2010AccountBalance FetchBalance(ctx, accountSid) +> ApiV2010AccountBalance FetchBalance(ctx, AccountSid) @@ -3156,7 +3156,7 @@ Fetch the balance for an Account based on Account Sid. Balance changes may not b Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The unique SID identifier of the Account. | +**AccountSid** | **string**| The unique SID identifier of the Account. | ### Return type @@ -3178,7 +3178,7 @@ Name | Type | Description | Notes ## FetchCall -> ApiV2010AccountCall FetchCall(ctx, accountSid, sid) +> ApiV2010AccountCall FetchCall(ctx, AccountSid, Sid) @@ -3190,8 +3190,8 @@ Fetch the call specified by the provided Call SID Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to fetch. | -**sid** | **string**| The SID of the Call resource to fetch. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to fetch. | +**Sid** | **string**| The SID of the Call resource to fetch. | ### Return type @@ -3213,7 +3213,7 @@ Name | Type | Description | Notes ## FetchCallFeedback -> ApiV2010AccountCallCallFeedback FetchCallFeedback(ctx, accountSid, callSid) +> ApiV2010AccountCallCallFeedback FetchCallFeedback(ctx, AccountSid, CallSid) @@ -3225,8 +3225,8 @@ Fetch a Feedback resource from a call Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | -**callSid** | **string**| The call sid that uniquely identifies the call | +**AccountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | +**CallSid** | **string**| The call sid that uniquely identifies the call | ### Return type @@ -3248,7 +3248,7 @@ Name | Type | Description | Notes ## FetchCallFeedbackSummary -> ApiV2010AccountCallCallFeedbackSummary FetchCallFeedbackSummary(ctx, accountSid, sid) +> ApiV2010AccountCallCallFeedbackSummary FetchCallFeedbackSummary(ctx, AccountSid, Sid) @@ -3260,8 +3260,8 @@ Fetch a FeedbackSummary resource from a call Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**AccountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | ### Return type @@ -3283,7 +3283,7 @@ Name | Type | Description | Notes ## FetchCallNotification -> ApiV2010AccountCallCallNotificationInstance FetchCallNotification(ctx, accountSid, callSid, sid) +> ApiV2010AccountCallCallNotificationInstance FetchCallNotification(ctx, AccountSid, CallSid, Sid) @@ -3293,9 +3293,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call Notification resource to fetch. | -**callSid** | **string**| The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the Call Notification resource to fetch. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Call Notification resource to fetch. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call Notification resource to fetch. | +**CallSid** | **string**| The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the Call Notification resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Call Notification resource to fetch. | ### Return type @@ -3317,7 +3317,7 @@ Name | Type | Description | Notes ## FetchCallRecording -> ApiV2010AccountCallCallRecording FetchCallRecording(ctx, accountSid, callSid, sid) +> ApiV2010AccountCallCallRecording FetchCallRecording(ctx, AccountSid, CallSid, Sid) @@ -3329,9 +3329,9 @@ Fetch an instance of a recording for a call Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource to fetch. | -**callSid** | **string**| The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource to fetch. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Recording resource to fetch. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource to fetch. | +**CallSid** | **string**| The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Recording resource to fetch. | ### Return type @@ -3353,7 +3353,7 @@ Name | Type | Description | Notes ## FetchConference -> ApiV2010AccountConference FetchConference(ctx, accountSid, sid) +> ApiV2010AccountConference FetchConference(ctx, AccountSid, Sid) @@ -3365,8 +3365,8 @@ Fetch an instance of a conference Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference resource(s) to fetch. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Conference resource to fetch | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference resource(s) to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Conference resource to fetch | ### Return type @@ -3388,7 +3388,7 @@ Name | Type | Description | Notes ## FetchConferenceRecording -> ApiV2010AccountConferenceConferenceRecording FetchConferenceRecording(ctx, accountSid, conferenceSid, sid) +> ApiV2010AccountConferenceConferenceRecording FetchConferenceRecording(ctx, AccountSid, ConferenceSid, Sid) @@ -3400,9 +3400,9 @@ Fetch an instance of a recording for a call Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resource to fetch. | -**conferenceSid** | **string**| The Conference SID that identifies the conference associated with the recording to fetch. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Conference Recording resource to fetch. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resource to fetch. | +**ConferenceSid** | **string**| The Conference SID that identifies the conference associated with the recording to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Conference Recording resource to fetch. | ### Return type @@ -3424,7 +3424,7 @@ Name | Type | Description | Notes ## FetchConnectApp -> ApiV2010AccountConnectApp FetchConnectApp(ctx, accountSid, sid) +> ApiV2010AccountConnectApp FetchConnectApp(ctx, AccountSid, Sid) @@ -3436,8 +3436,8 @@ Fetch an instance of a connect-app Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resource to fetch. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the ConnectApp resource to fetch. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the ConnectApp resource to fetch. | ### Return type @@ -3459,7 +3459,7 @@ Name | Type | Description | Notes ## FetchIncomingPhoneNumber -> ApiV2010AccountIncomingPhoneNumber FetchIncomingPhoneNumber(ctx, accountSid, sid) +> ApiV2010AccountIncomingPhoneNumber FetchIncomingPhoneNumber(ctx, AccountSid, Sid) @@ -3471,8 +3471,8 @@ Fetch an incoming-phone-number belonging to the account used to make the request Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IncomingPhoneNumber resource to fetch. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to fetch. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IncomingPhoneNumber resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to fetch. | ### Return type @@ -3494,7 +3494,7 @@ Name | Type | Description | Notes ## FetchIncomingPhoneNumberAssignedAddOn -> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn FetchIncomingPhoneNumberAssignedAddOn(ctx, accountSid, resourceSid, sid) +> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn FetchIncomingPhoneNumberAssignedAddOn(ctx, AccountSid, ResourceSid, Sid) @@ -3506,9 +3506,9 @@ Fetch an instance of an Add-on installation currently assigned to this Number. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource to fetch. | -**resourceSid** | **string**| The SID of the Phone Number to which the Add-on is assigned. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the resource to fetch. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource to fetch. | +**ResourceSid** | **string**| The SID of the Phone Number to which the Add-on is assigned. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the resource to fetch. | ### Return type @@ -3530,7 +3530,7 @@ Name | Type | Description | Notes ## FetchIncomingPhoneNumberAssignedAddOnExtension -> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension FetchIncomingPhoneNumberAssignedAddOnExtension(ctx, accountSid, resourceSid, assignedAddOnSid, sid) +> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension FetchIncomingPhoneNumberAssignedAddOnExtension(ctx, AccountSid, ResourceSid, AssignedAddOnSid, Sid) @@ -3542,10 +3542,10 @@ Fetch an instance of an Extension for the Assigned Add-on. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource to fetch. | -**resourceSid** | **string**| The SID of the Phone Number to which the Add-on is assigned. | -**assignedAddOnSid** | **string**| The SID that uniquely identifies the assigned Add-on installation. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the resource to fetch. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource to fetch. | +**ResourceSid** | **string**| The SID of the Phone Number to which the Add-on is assigned. | +**AssignedAddOnSid** | **string**| The SID that uniquely identifies the assigned Add-on installation. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the resource to fetch. | ### Return type @@ -3567,7 +3567,7 @@ Name | Type | Description | Notes ## FetchKey -> ApiV2010AccountKey FetchKey(ctx, accountSid, sid) +> ApiV2010AccountKey FetchKey(ctx, AccountSid, Sid) @@ -3577,8 +3577,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resource to fetch. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Key resource to fetch. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Key resource to fetch. | ### Return type @@ -3600,7 +3600,7 @@ Name | Type | Description | Notes ## FetchMedia -> ApiV2010AccountMessageMedia FetchMedia(ctx, accountSid, messageSid, sid) +> ApiV2010AccountMessageMedia FetchMedia(ctx, AccountSid, MessageSid, Sid) @@ -3612,9 +3612,9 @@ Fetch a single media instance belonging to the account used to make the request Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Media resource(s) to fetch. | -**messageSid** | **string**| The SID of the Message resource that this Media resource belongs to. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Media resource to fetch | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Media resource(s) to fetch. | +**MessageSid** | **string**| The SID of the Message resource that this Media resource belongs to. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Media resource to fetch | ### Return type @@ -3636,7 +3636,7 @@ Name | Type | Description | Notes ## FetchMember -> ApiV2010AccountQueueMember FetchMember(ctx, accountSid, queueSid, callSid) +> ApiV2010AccountQueueMember FetchMember(ctx, AccountSid, QueueSid, CallSid) @@ -3648,9 +3648,9 @@ Fetch a specific member from the queue Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Member resource(s) to fetch. | -**queueSid** | **string**| The SID of the Queue in which to find the members to fetch. | -**callSid** | **string**| The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource(s) to fetch. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Member resource(s) to fetch. | +**QueueSid** | **string**| The SID of the Queue in which to find the members to fetch. | +**CallSid** | **string**| The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource(s) to fetch. | ### Return type @@ -3672,7 +3672,7 @@ Name | Type | Description | Notes ## FetchMessage -> ApiV2010AccountMessage FetchMessage(ctx, accountSid, sid) +> ApiV2010AccountMessage FetchMessage(ctx, AccountSid, Sid) @@ -3684,8 +3684,8 @@ Fetch a message belonging to the account used to make the request Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Message resource to fetch. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Message resource to fetch. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Message resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Message resource to fetch. | ### Return type @@ -3707,7 +3707,7 @@ Name | Type | Description | Notes ## FetchNotification -> ApiV2010AccountNotificationInstance FetchNotification(ctx, accountSid, sid) +> ApiV2010AccountNotificationInstance FetchNotification(ctx, AccountSid, Sid) @@ -3719,8 +3719,8 @@ Fetch a notification belonging to the account used to make the request Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Notification resource to fetch. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Notification resource to fetch. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Notification resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Notification resource to fetch. | ### Return type @@ -3742,7 +3742,7 @@ Name | Type | Description | Notes ## FetchOutgoingCallerId -> ApiV2010AccountOutgoingCallerId FetchOutgoingCallerId(ctx, accountSid, sid) +> ApiV2010AccountOutgoingCallerId FetchOutgoingCallerId(ctx, AccountSid, Sid) @@ -3754,8 +3754,8 @@ Fetch an outgoing-caller-id belonging to the account used to make the request Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resource to fetch. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the OutgoingCallerId resource to fetch. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the OutgoingCallerId resource to fetch. | ### Return type @@ -3777,7 +3777,7 @@ Name | Type | Description | Notes ## FetchParticipant -> ApiV2010AccountConferenceParticipant FetchParticipant(ctx, accountSid, conferenceSid, callSid) +> ApiV2010AccountConferenceParticipant FetchParticipant(ctx, AccountSid, ConferenceSid, CallSid) @@ -3789,9 +3789,9 @@ Fetch an instance of a participant Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resource to fetch. | -**conferenceSid** | **string**| The SID of the conference with the participant to fetch. | -**callSid** | **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. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resource to fetch. | +**ConferenceSid** | **string**| The SID of the conference with the participant to fetch. | +**CallSid** | **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. | ### Return type @@ -3813,7 +3813,7 @@ Name | Type | Description | Notes ## FetchQueue -> ApiV2010AccountQueue FetchQueue(ctx, accountSid, sid) +> ApiV2010AccountQueue FetchQueue(ctx, AccountSid, Sid) @@ -3825,8 +3825,8 @@ Fetch an instance of a queue identified by the QueueSid Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resource to fetch. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Queue resource to fetch | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Queue resource to fetch | ### Return type @@ -3848,7 +3848,7 @@ Name | Type | Description | Notes ## FetchRecording -> ApiV2010AccountRecording FetchRecording(ctx, accountSid, sid) +> ApiV2010AccountRecording FetchRecording(ctx, AccountSid, Sid) @@ -3860,8 +3860,8 @@ Fetch an instance of a recording Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource to fetch. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Recording resource to fetch. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Recording resource to fetch. | ### Return type @@ -3883,7 +3883,7 @@ Name | Type | Description | Notes ## FetchRecordingAddOnResult -> ApiV2010AccountRecordingRecordingAddOnResult FetchRecordingAddOnResult(ctx, accountSid, referenceSid, sid) +> ApiV2010AccountRecordingRecordingAddOnResult FetchRecordingAddOnResult(ctx, AccountSid, ReferenceSid, Sid) @@ -3895,9 +3895,9 @@ Fetch an instance of an AddOnResult Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult resource to fetch. | -**referenceSid** | **string**| The SID of the recording to which the result to fetch belongs. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Recording AddOnResult resource to fetch. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult resource to fetch. | +**ReferenceSid** | **string**| The SID of the recording to which the result to fetch belongs. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Recording AddOnResult resource to fetch. | ### Return type @@ -3919,7 +3919,7 @@ Name | Type | Description | Notes ## FetchRecordingAddOnResultPayload -> ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayload FetchRecordingAddOnResultPayload(ctx, accountSid, referenceSid, addOnResultSid, sid) +> ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayload FetchRecordingAddOnResultPayload(ctx, AccountSid, ReferenceSid, AddOnResultSid, Sid) @@ -3931,10 +3931,10 @@ Fetch an instance of a result payload Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resource to fetch. | -**referenceSid** | **string**| The SID of the recording to which the AddOnResult resource that contains the payload to fetch belongs. | -**addOnResultSid** | **string**| The SID of the AddOnResult to which the payload to fetch belongs. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Recording AddOnResult Payload resource to fetch. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resource to fetch. | +**ReferenceSid** | **string**| The SID of the recording to which the AddOnResult resource that contains the payload to fetch belongs. | +**AddOnResultSid** | **string**| The SID of the AddOnResult to which the payload to fetch belongs. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Recording AddOnResult Payload resource to fetch. | ### Return type @@ -3956,7 +3956,7 @@ Name | Type | Description | Notes ## FetchRecordingTranscription -> ApiV2010AccountRecordingRecordingTranscription FetchRecordingTranscription(ctx, accountSid, recordingSid, sid) +> ApiV2010AccountRecordingRecordingTranscription FetchRecordingTranscription(ctx, AccountSid, RecordingSid, Sid) @@ -3966,9 +3966,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resource to fetch. | -**recordingSid** | **string**| The SID of the [Recording](https://www.twilio.com/docs/voice/api/recording) that created the transcription to fetch. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Transcription resource to fetch. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resource to fetch. | +**RecordingSid** | **string**| The SID of the [Recording](https://www.twilio.com/docs/voice/api/recording) that created the transcription to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Transcription resource to fetch. | ### Return type @@ -3990,7 +3990,7 @@ Name | Type | Description | Notes ## FetchShortCode -> ApiV2010AccountShortCode FetchShortCode(ctx, accountSid, sid) +> ApiV2010AccountShortCode FetchShortCode(ctx, AccountSid, Sid) @@ -4002,8 +4002,8 @@ Fetch an instance of a short code Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ShortCode resource(s) to fetch. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the ShortCode resource to fetch | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ShortCode resource(s) to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the ShortCode resource to fetch | ### Return type @@ -4025,7 +4025,7 @@ Name | Type | Description | Notes ## FetchSigningKey -> ApiV2010AccountSigningKey FetchSigningKey(ctx, accountSid, sid) +> ApiV2010AccountSigningKey FetchSigningKey(ctx, AccountSid, Sid) @@ -4035,8 +4035,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| | -**sid** | **string**| | +**AccountSid** | **string**| | +**Sid** | **string**| | ### Return type @@ -4058,7 +4058,7 @@ Name | Type | Description | Notes ## FetchSipAuthCallsCredentialListMapping -> ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping FetchSipAuthCallsCredentialListMapping(ctx, accountSid, domainSid, sid) +> ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping FetchSipAuthCallsCredentialListMapping(ctx, AccountSid, DomainSid, Sid) @@ -4070,9 +4070,9 @@ Fetch a specific instance of a credential list mapping Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resource to fetch. | -**domainSid** | **string**| The SID of the SIP domain that contains the resource to fetch. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the CredentialListMapping resource to fetch. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resource to fetch. | +**DomainSid** | **string**| The SID of the SIP domain that contains the resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the CredentialListMapping resource to fetch. | ### Return type @@ -4094,7 +4094,7 @@ Name | Type | Description | Notes ## FetchSipAuthCallsIpAccessControlListMapping -> ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping FetchSipAuthCallsIpAccessControlListMapping(ctx, accountSid, domainSid, sid) +> ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping FetchSipAuthCallsIpAccessControlListMapping(ctx, AccountSid, DomainSid, Sid) @@ -4106,9 +4106,9 @@ Fetch a specific instance of an IP Access Control List mapping Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IpAccessControlListMapping resource to fetch. | -**domainSid** | **string**| The SID of the SIP domain that contains the resource to fetch. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the IpAccessControlListMapping resource to fetch. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IpAccessControlListMapping resource to fetch. | +**DomainSid** | **string**| The SID of the SIP domain that contains the resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the IpAccessControlListMapping resource to fetch. | ### Return type @@ -4130,7 +4130,7 @@ Name | Type | Description | Notes ## FetchSipAuthRegistrationsCredentialListMapping -> ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping FetchSipAuthRegistrationsCredentialListMapping(ctx, accountSid, domainSid, sid) +> ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping FetchSipAuthRegistrationsCredentialListMapping(ctx, AccountSid, DomainSid, Sid) @@ -4142,9 +4142,9 @@ Fetch a specific instance of a credential list mapping Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resource to fetch. | -**domainSid** | **string**| The SID of the SIP domain that contains the resource to fetch. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the CredentialListMapping resource to fetch. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resource to fetch. | +**DomainSid** | **string**| The SID of the SIP domain that contains the resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the CredentialListMapping resource to fetch. | ### Return type @@ -4166,7 +4166,7 @@ Name | Type | Description | Notes ## FetchSipCredential -> ApiV2010AccountSipSipCredentialListSipCredential FetchSipCredential(ctx, accountSid, credentialListSid, sid) +> ApiV2010AccountSipSipCredentialListSipCredential FetchSipCredential(ctx, AccountSid, CredentialListSid, Sid) @@ -4178,9 +4178,9 @@ Fetch a single credential. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The unique id of the Account that is responsible for this resource. | -**credentialListSid** | **string**| The unique id that identifies the credential list that contains the desired credential. | -**sid** | **string**| The unique id that identifies the resource to fetch. | +**AccountSid** | **string**| The unique id of the Account that is responsible for this resource. | +**CredentialListSid** | **string**| The unique id that identifies the credential list that contains the desired credential. | +**Sid** | **string**| The unique id that identifies the resource to fetch. | ### Return type @@ -4202,7 +4202,7 @@ Name | Type | Description | Notes ## FetchSipCredentialList -> ApiV2010AccountSipSipCredentialList FetchSipCredentialList(ctx, accountSid, sid) +> ApiV2010AccountSipSipCredentialList FetchSipCredentialList(ctx, AccountSid, Sid) @@ -4214,8 +4214,8 @@ Get a Credential List Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The unique id of the Account that is responsible for this resource. | -**sid** | **string**| The credential list Sid that uniquely identifies this resource | +**AccountSid** | **string**| The unique id of the Account that is responsible for this resource. | +**Sid** | **string**| The credential list Sid that uniquely identifies this resource | ### Return type @@ -4237,7 +4237,7 @@ Name | Type | Description | Notes ## FetchSipCredentialListMapping -> ApiV2010AccountSipSipDomainSipCredentialListMapping FetchSipCredentialListMapping(ctx, accountSid, domainSid, sid) +> ApiV2010AccountSipSipDomainSipCredentialListMapping FetchSipCredentialListMapping(ctx, AccountSid, DomainSid, Sid) @@ -4249,9 +4249,9 @@ Fetch a single CredentialListMapping resource from an account. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | -**domainSid** | **string**| A 34 character string that uniquely identifies the SIP Domain that includes the resource to fetch. | -**sid** | **string**| A 34 character string that uniquely identifies the resource to fetch. | +**AccountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | +**DomainSid** | **string**| A 34 character string that uniquely identifies the SIP Domain that includes the resource to fetch. | +**Sid** | **string**| A 34 character string that uniquely identifies the resource to fetch. | ### Return type @@ -4273,7 +4273,7 @@ Name | Type | Description | Notes ## FetchSipDomain -> ApiV2010AccountSipSipDomain FetchSipDomain(ctx, accountSid, sid) +> ApiV2010AccountSipSipDomain FetchSipDomain(ctx, AccountSid, Sid) @@ -4285,8 +4285,8 @@ Fetch an instance of a Domain Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resource to fetch. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the SipDomain resource to fetch. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the SipDomain resource to fetch. | ### Return type @@ -4308,7 +4308,7 @@ Name | Type | Description | Notes ## FetchSipIpAccessControlList -> ApiV2010AccountSipSipIpAccessControlList FetchSipIpAccessControlList(ctx, accountSid, sid) +> ApiV2010AccountSipSipIpAccessControlList FetchSipIpAccessControlList(ctx, AccountSid, Sid) @@ -4320,8 +4320,8 @@ Fetch a specific instance of an IpAccessControlList Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | -**sid** | **string**| A 34 character string that uniquely identifies the resource to fetch. | +**AccountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | +**Sid** | **string**| A 34 character string that uniquely identifies the resource to fetch. | ### Return type @@ -4343,7 +4343,7 @@ Name | Type | Description | Notes ## FetchSipIpAccessControlListMapping -> ApiV2010AccountSipSipDomainSipIpAccessControlListMapping FetchSipIpAccessControlListMapping(ctx, accountSid, domainSid, sid) +> ApiV2010AccountSipSipDomainSipIpAccessControlListMapping FetchSipIpAccessControlListMapping(ctx, AccountSid, DomainSid, Sid) @@ -4355,9 +4355,9 @@ Fetch an IpAccessControlListMapping resource. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The unique id of the Account that is responsible for this resource. | -**domainSid** | **string**| A 34 character string that uniquely identifies the SIP domain. | -**sid** | **string**| A 34 character string that uniquely identifies the resource to fetch. | +**AccountSid** | **string**| The unique id of the Account that is responsible for this resource. | +**DomainSid** | **string**| A 34 character string that uniquely identifies the SIP domain. | +**Sid** | **string**| A 34 character string that uniquely identifies the resource to fetch. | ### Return type @@ -4379,7 +4379,7 @@ Name | Type | Description | Notes ## FetchSipIpAddress -> ApiV2010AccountSipSipIpAccessControlListSipIpAddress FetchSipIpAddress(ctx, accountSid, ipAccessControlListSid, sid) +> ApiV2010AccountSipSipIpAccessControlListSipIpAddress FetchSipIpAddress(ctx, AccountSid, IpAccessControlListSid, Sid) @@ -4391,9 +4391,9 @@ Read one IpAddress resource. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | -**ipAccessControlListSid** | **string**| The IpAccessControlList Sid that identifies the IpAddress resources to fetch. | -**sid** | **string**| A 34 character string that uniquely identifies the IpAddress resource to fetch. | +**AccountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | +**IpAccessControlListSid** | **string**| The IpAccessControlList Sid that identifies the IpAddress resources to fetch. | +**Sid** | **string**| A 34 character string that uniquely identifies the IpAddress resource to fetch. | ### Return type @@ -4415,7 +4415,7 @@ Name | Type | Description | Notes ## FetchTranscription -> ApiV2010AccountTranscription FetchTranscription(ctx, accountSid, sid) +> ApiV2010AccountTranscription FetchTranscription(ctx, AccountSid, Sid) @@ -4427,8 +4427,8 @@ Fetch an instance of a Transcription Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resource to fetch. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Transcription resource to fetch. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Transcription resource to fetch. | ### Return type @@ -4450,7 +4450,7 @@ Name | Type | Description | Notes ## FetchUsageTrigger -> ApiV2010AccountUsageUsageTrigger FetchUsageTrigger(ctx, accountSid, sid) +> ApiV2010AccountUsageUsageTrigger FetchUsageTrigger(ctx, AccountSid, Sid) @@ -4462,8 +4462,8 @@ Fetch and instance of a usage-trigger Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resource to fetch. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the UsageTrigger resource to fetch. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the UsageTrigger resource to fetch. | ### Return type @@ -4506,9 +4506,9 @@ Optional parameters are passed through a pointer to a ListAccountOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| Only return the Account resources with friendly names that exactly match this name. | - **status** | **optional.String**| Only return Account resources with the given status. Can be `closed`, `suspended` or `active`. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **FriendlyName** | **optional.String**| Only return the Account resources with friendly names that exactly match this name. | + **Status** | **optional.String**| Only return Account resources with the given status. Can be `closed`, `suspended` or `active`. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -4530,7 +4530,7 @@ Name | Type | Description | Notes ## ListAddress -> ApiV2010AccountAddressReadResponse ListAddress(ctx, accountSid, optional) +> ApiV2010AccountAddressReadResponse ListAddress(ctx, AccountSid, optional) @@ -4540,7 +4540,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to read. | **optional** | ***ListAddressOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -4551,10 +4551,10 @@ Optional parameters are passed through a pointer to a ListAddressOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **customerName** | **optional.String**| The `customer_name` of the Address resources to read. | - **friendlyName** | **optional.String**| The string that identifies the Address resources to read. | - **isoCountry** | **optional.String**| The ISO country code of the Address resources to read. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **CustomerName** | **optional.String**| The `customer_name` of the Address resources to read. | + **FriendlyName** | **optional.String**| The string that identifies the Address resources to read. | + **IsoCountry** | **optional.String**| The ISO country code of the Address resources to read. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -4576,7 +4576,7 @@ Name | Type | Description | Notes ## ListApplication -> ApiV2010AccountApplicationReadResponse ListApplication(ctx, accountSid, optional) +> ApiV2010AccountApplicationReadResponse ListApplication(ctx, AccountSid, optional) @@ -4588,7 +4588,7 @@ Retrieve a list of applications representing an application within the requestin Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resources to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resources to read. | **optional** | ***ListApplicationOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -4599,8 +4599,8 @@ Optional parameters are passed through a pointer to a ListApplicationOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| The string that identifies the Application resources to read. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **FriendlyName** | **optional.String**| The string that identifies the Application resources to read. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -4622,7 +4622,7 @@ Name | Type | Description | Notes ## ListAuthorizedConnectApp -> ApiV2010AccountAuthorizedConnectAppReadResponse ListAuthorizedConnectApp(ctx, accountSid, optional) +> ApiV2010AccountAuthorizedConnectAppReadResponse ListAuthorizedConnectApp(ctx, AccountSid, optional) @@ -4634,7 +4634,7 @@ Retrieve a list of authorized-connect-apps belonging to the account used to make Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the AuthorizedConnectApp resources to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the AuthorizedConnectApp resources to read. | **optional** | ***ListAuthorizedConnectAppOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -4645,7 +4645,7 @@ Optional parameters are passed through a pointer to a ListAuthorizedConnectAppOp Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -4667,7 +4667,7 @@ Name | Type | Description | Notes ## ListAvailablePhoneNumberCountry -> ApiV2010AccountAvailablePhoneNumberCountryReadResponse ListAvailablePhoneNumberCountry(ctx, accountSid, optional) +> ApiV2010AccountAvailablePhoneNumberCountryReadResponse ListAvailablePhoneNumberCountry(ctx, AccountSid, optional) @@ -4677,7 +4677,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the available phone number Country resources. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the available phone number Country resources. | **optional** | ***ListAvailablePhoneNumberCountryOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -4688,7 +4688,7 @@ Optional parameters are passed through a pointer to a ListAvailablePhoneNumberCo Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -4710,7 +4710,7 @@ Name | Type | Description | Notes ## ListAvailablePhoneNumberLocal -> ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse ListAvailablePhoneNumberLocal(ctx, accountSid, countryCode, optional) +> ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse ListAvailablePhoneNumberLocal(ctx, AccountSid, CountryCode, optional) @@ -4720,8 +4720,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. | -**countryCode** | **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. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. | +**CountryCode** | **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. | **optional** | ***ListAvailablePhoneNumberLocalOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -4733,25 +4733,25 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **areaCode** | **optional.Int32**| The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. | - **contains** | **optional.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. | - **smsEnabled** | **optional.Bool**| Whether the phone numbers can receive text messages. Can be: `true` or `false`. | - **mmsEnabled** | **optional.Bool**| Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. | - **voiceEnabled** | **optional.Bool**| Whether the phone numbers can receive calls. Can be: `true` or `false`. | - **excludeAllAddressRequired** | **optional.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`. | - **excludeLocalAddressRequired** | **optional.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`. | - **excludeForeignAddressRequired** | **optional.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** | **optional.Bool**| Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | - **nearNumber** | **optional.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. | - **nearLatLong** | **optional.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** | **optional.Int32**| 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. | - **inPostalCode** | **optional.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. | - **inRegion** | **optional.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. | - **inRateCenter** | **optional.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. | - **inLata** | **optional.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. | - **inLocality** | **optional.String**| Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. | - **faxEnabled** | **optional.Bool**| Whether the phone numbers can receive faxes. Can be: `true` or `false`. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **AreaCode** | **optional.Int32**| The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. | + **Contains** | **optional.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. | + **SmsEnabled** | **optional.Bool**| Whether the phone numbers can receive text messages. Can be: `true` or `false`. | + **MmsEnabled** | **optional.Bool**| Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. | + **VoiceEnabled** | **optional.Bool**| Whether the phone numbers can receive calls. Can be: `true` or `false`. | + **ExcludeAllAddressRequired** | **optional.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`. | + **ExcludeLocalAddressRequired** | **optional.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`. | + **ExcludeForeignAddressRequired** | **optional.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** | **optional.Bool**| Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | + **NearNumber** | **optional.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. | + **NearLatLong** | **optional.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** | **optional.Int32**| 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. | + **InPostalCode** | **optional.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. | + **InRegion** | **optional.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. | + **InRateCenter** | **optional.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. | + **InLata** | **optional.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. | + **InLocality** | **optional.String**| Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. | + **FaxEnabled** | **optional.Bool**| Whether the phone numbers can receive faxes. Can be: `true` or `false`. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -4773,7 +4773,7 @@ Name | Type | Description | Notes ## ListAvailablePhoneNumberMachineToMachine -> ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse ListAvailablePhoneNumberMachineToMachine(ctx, accountSid, countryCode, optional) +> ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse ListAvailablePhoneNumberMachineToMachine(ctx, AccountSid, CountryCode, optional) @@ -4783,8 +4783,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. | -**countryCode** | **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. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. | +**CountryCode** | **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. | **optional** | ***ListAvailablePhoneNumberMachineToMachineOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -4796,25 +4796,25 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **areaCode** | **optional.Int32**| The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. | - **contains** | **optional.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. | - **smsEnabled** | **optional.Bool**| Whether the phone numbers can receive text messages. Can be: `true` or `false`. | - **mmsEnabled** | **optional.Bool**| Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. | - **voiceEnabled** | **optional.Bool**| Whether the phone numbers can receive calls. Can be: `true` or `false`. | - **excludeAllAddressRequired** | **optional.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`. | - **excludeLocalAddressRequired** | **optional.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`. | - **excludeForeignAddressRequired** | **optional.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** | **optional.Bool**| Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | - **nearNumber** | **optional.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. | - **nearLatLong** | **optional.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** | **optional.Int32**| 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. | - **inPostalCode** | **optional.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. | - **inRegion** | **optional.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. | - **inRateCenter** | **optional.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. | - **inLata** | **optional.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. | - **inLocality** | **optional.String**| Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. | - **faxEnabled** | **optional.Bool**| Whether the phone numbers can receive faxes. Can be: `true` or `false`. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **AreaCode** | **optional.Int32**| The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. | + **Contains** | **optional.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. | + **SmsEnabled** | **optional.Bool**| Whether the phone numbers can receive text messages. Can be: `true` or `false`. | + **MmsEnabled** | **optional.Bool**| Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. | + **VoiceEnabled** | **optional.Bool**| Whether the phone numbers can receive calls. Can be: `true` or `false`. | + **ExcludeAllAddressRequired** | **optional.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`. | + **ExcludeLocalAddressRequired** | **optional.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`. | + **ExcludeForeignAddressRequired** | **optional.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** | **optional.Bool**| Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | + **NearNumber** | **optional.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. | + **NearLatLong** | **optional.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** | **optional.Int32**| 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. | + **InPostalCode** | **optional.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. | + **InRegion** | **optional.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. | + **InRateCenter** | **optional.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. | + **InLata** | **optional.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. | + **InLocality** | **optional.String**| Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. | + **FaxEnabled** | **optional.Bool**| Whether the phone numbers can receive faxes. Can be: `true` or `false`. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -4836,7 +4836,7 @@ Name | Type | Description | Notes ## ListAvailablePhoneNumberMobile -> ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse ListAvailablePhoneNumberMobile(ctx, accountSid, countryCode, optional) +> ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse ListAvailablePhoneNumberMobile(ctx, AccountSid, CountryCode, optional) @@ -4846,8 +4846,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. | -**countryCode** | **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. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. | +**CountryCode** | **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. | **optional** | ***ListAvailablePhoneNumberMobileOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -4859,25 +4859,25 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **areaCode** | **optional.Int32**| The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. | - **contains** | **optional.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. | - **smsEnabled** | **optional.Bool**| Whether the phone numbers can receive text messages. Can be: `true` or `false`. | - **mmsEnabled** | **optional.Bool**| Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. | - **voiceEnabled** | **optional.Bool**| Whether the phone numbers can receive calls. Can be: `true` or `false`. | - **excludeAllAddressRequired** | **optional.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`. | - **excludeLocalAddressRequired** | **optional.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`. | - **excludeForeignAddressRequired** | **optional.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** | **optional.Bool**| Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | - **nearNumber** | **optional.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. | - **nearLatLong** | **optional.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** | **optional.Int32**| 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. | - **inPostalCode** | **optional.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. | - **inRegion** | **optional.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. | - **inRateCenter** | **optional.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. | - **inLata** | **optional.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. | - **inLocality** | **optional.String**| Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. | - **faxEnabled** | **optional.Bool**| Whether the phone numbers can receive faxes. Can be: `true` or `false`. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **AreaCode** | **optional.Int32**| The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. | + **Contains** | **optional.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. | + **SmsEnabled** | **optional.Bool**| Whether the phone numbers can receive text messages. Can be: `true` or `false`. | + **MmsEnabled** | **optional.Bool**| Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. | + **VoiceEnabled** | **optional.Bool**| Whether the phone numbers can receive calls. Can be: `true` or `false`. | + **ExcludeAllAddressRequired** | **optional.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`. | + **ExcludeLocalAddressRequired** | **optional.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`. | + **ExcludeForeignAddressRequired** | **optional.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** | **optional.Bool**| Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | + **NearNumber** | **optional.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. | + **NearLatLong** | **optional.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** | **optional.Int32**| 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. | + **InPostalCode** | **optional.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. | + **InRegion** | **optional.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. | + **InRateCenter** | **optional.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. | + **InLata** | **optional.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. | + **InLocality** | **optional.String**| Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. | + **FaxEnabled** | **optional.Bool**| Whether the phone numbers can receive faxes. Can be: `true` or `false`. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -4899,7 +4899,7 @@ Name | Type | Description | Notes ## ListAvailablePhoneNumberNational -> ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse ListAvailablePhoneNumberNational(ctx, accountSid, countryCode, optional) +> ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse ListAvailablePhoneNumberNational(ctx, AccountSid, CountryCode, optional) @@ -4909,8 +4909,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. | -**countryCode** | **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. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. | +**CountryCode** | **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. | **optional** | ***ListAvailablePhoneNumberNationalOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -4922,25 +4922,25 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **areaCode** | **optional.Int32**| The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. | - **contains** | **optional.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. | - **smsEnabled** | **optional.Bool**| Whether the phone numbers can receive text messages. Can be: `true` or `false`. | - **mmsEnabled** | **optional.Bool**| Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. | - **voiceEnabled** | **optional.Bool**| Whether the phone numbers can receive calls. Can be: `true` or `false`. | - **excludeAllAddressRequired** | **optional.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`. | - **excludeLocalAddressRequired** | **optional.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`. | - **excludeForeignAddressRequired** | **optional.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** | **optional.Bool**| Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | - **nearNumber** | **optional.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. | - **nearLatLong** | **optional.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** | **optional.Int32**| 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. | - **inPostalCode** | **optional.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. | - **inRegion** | **optional.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. | - **inRateCenter** | **optional.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. | - **inLata** | **optional.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. | - **inLocality** | **optional.String**| Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. | - **faxEnabled** | **optional.Bool**| Whether the phone numbers can receive faxes. Can be: `true` or `false`. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **AreaCode** | **optional.Int32**| The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. | + **Contains** | **optional.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. | + **SmsEnabled** | **optional.Bool**| Whether the phone numbers can receive text messages. Can be: `true` or `false`. | + **MmsEnabled** | **optional.Bool**| Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. | + **VoiceEnabled** | **optional.Bool**| Whether the phone numbers can receive calls. Can be: `true` or `false`. | + **ExcludeAllAddressRequired** | **optional.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`. | + **ExcludeLocalAddressRequired** | **optional.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`. | + **ExcludeForeignAddressRequired** | **optional.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** | **optional.Bool**| Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | + **NearNumber** | **optional.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. | + **NearLatLong** | **optional.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** | **optional.Int32**| 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. | + **InPostalCode** | **optional.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. | + **InRegion** | **optional.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. | + **InRateCenter** | **optional.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. | + **InLata** | **optional.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. | + **InLocality** | **optional.String**| Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. | + **FaxEnabled** | **optional.Bool**| Whether the phone numbers can receive faxes. Can be: `true` or `false`. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -4962,7 +4962,7 @@ Name | Type | Description | Notes ## ListAvailablePhoneNumberSharedCost -> ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse ListAvailablePhoneNumberSharedCost(ctx, accountSid, countryCode, optional) +> ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse ListAvailablePhoneNumberSharedCost(ctx, AccountSid, CountryCode, optional) @@ -4972,8 +4972,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. | -**countryCode** | **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. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. | +**CountryCode** | **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. | **optional** | ***ListAvailablePhoneNumberSharedCostOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -4985,25 +4985,25 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **areaCode** | **optional.Int32**| The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. | - **contains** | **optional.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. | - **smsEnabled** | **optional.Bool**| Whether the phone numbers can receive text messages. Can be: `true` or `false`. | - **mmsEnabled** | **optional.Bool**| Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. | - **voiceEnabled** | **optional.Bool**| Whether the phone numbers can receive calls. Can be: `true` or `false`. | - **excludeAllAddressRequired** | **optional.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`. | - **excludeLocalAddressRequired** | **optional.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`. | - **excludeForeignAddressRequired** | **optional.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** | **optional.Bool**| Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | - **nearNumber** | **optional.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. | - **nearLatLong** | **optional.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** | **optional.Int32**| 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. | - **inPostalCode** | **optional.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. | - **inRegion** | **optional.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. | - **inRateCenter** | **optional.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. | - **inLata** | **optional.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. | - **inLocality** | **optional.String**| Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. | - **faxEnabled** | **optional.Bool**| Whether the phone numbers can receive faxes. Can be: `true` or `false`. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **AreaCode** | **optional.Int32**| The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. | + **Contains** | **optional.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. | + **SmsEnabled** | **optional.Bool**| Whether the phone numbers can receive text messages. Can be: `true` or `false`. | + **MmsEnabled** | **optional.Bool**| Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. | + **VoiceEnabled** | **optional.Bool**| Whether the phone numbers can receive calls. Can be: `true` or `false`. | + **ExcludeAllAddressRequired** | **optional.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`. | + **ExcludeLocalAddressRequired** | **optional.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`. | + **ExcludeForeignAddressRequired** | **optional.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** | **optional.Bool**| Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | + **NearNumber** | **optional.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. | + **NearLatLong** | **optional.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** | **optional.Int32**| 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. | + **InPostalCode** | **optional.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. | + **InRegion** | **optional.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. | + **InRateCenter** | **optional.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. | + **InLata** | **optional.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. | + **InLocality** | **optional.String**| Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. | + **FaxEnabled** | **optional.Bool**| Whether the phone numbers can receive faxes. Can be: `true` or `false`. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -5025,7 +5025,7 @@ Name | Type | Description | Notes ## ListAvailablePhoneNumberTollFree -> ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse ListAvailablePhoneNumberTollFree(ctx, accountSid, countryCode, optional) +> ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse ListAvailablePhoneNumberTollFree(ctx, AccountSid, CountryCode, optional) @@ -5035,8 +5035,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. | -**countryCode** | **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. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. | +**CountryCode** | **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. | **optional** | ***ListAvailablePhoneNumberTollFreeOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5048,25 +5048,25 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **areaCode** | **optional.Int32**| The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. | - **contains** | **optional.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. | - **smsEnabled** | **optional.Bool**| Whether the phone numbers can receive text messages. Can be: `true` or `false`. | - **mmsEnabled** | **optional.Bool**| Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. | - **voiceEnabled** | **optional.Bool**| Whether the phone numbers can receive calls. Can be: `true` or `false`. | - **excludeAllAddressRequired** | **optional.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`. | - **excludeLocalAddressRequired** | **optional.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`. | - **excludeForeignAddressRequired** | **optional.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** | **optional.Bool**| Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | - **nearNumber** | **optional.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. | - **nearLatLong** | **optional.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** | **optional.Int32**| 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. | - **inPostalCode** | **optional.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. | - **inRegion** | **optional.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. | - **inRateCenter** | **optional.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. | - **inLata** | **optional.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. | - **inLocality** | **optional.String**| Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. | - **faxEnabled** | **optional.Bool**| Whether the phone numbers can receive faxes. Can be: `true` or `false`. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **AreaCode** | **optional.Int32**| The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. | + **Contains** | **optional.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. | + **SmsEnabled** | **optional.Bool**| Whether the phone numbers can receive text messages. Can be: `true` or `false`. | + **MmsEnabled** | **optional.Bool**| Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. | + **VoiceEnabled** | **optional.Bool**| Whether the phone numbers can receive calls. Can be: `true` or `false`. | + **ExcludeAllAddressRequired** | **optional.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`. | + **ExcludeLocalAddressRequired** | **optional.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`. | + **ExcludeForeignAddressRequired** | **optional.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** | **optional.Bool**| Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | + **NearNumber** | **optional.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. | + **NearLatLong** | **optional.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** | **optional.Int32**| 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. | + **InPostalCode** | **optional.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. | + **InRegion** | **optional.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. | + **InRateCenter** | **optional.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. | + **InLata** | **optional.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. | + **InLocality** | **optional.String**| Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. | + **FaxEnabled** | **optional.Bool**| Whether the phone numbers can receive faxes. Can be: `true` or `false`. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -5088,7 +5088,7 @@ Name | Type | Description | Notes ## ListAvailablePhoneNumberVoip -> ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse ListAvailablePhoneNumberVoip(ctx, accountSid, countryCode, optional) +> ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse ListAvailablePhoneNumberVoip(ctx, AccountSid, CountryCode, optional) @@ -5098,8 +5098,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. | -**countryCode** | **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. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the AvailablePhoneNumber resources. | +**CountryCode** | **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. | **optional** | ***ListAvailablePhoneNumberVoipOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5111,25 +5111,25 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **areaCode** | **optional.Int32**| The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. | - **contains** | **optional.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. | - **smsEnabled** | **optional.Bool**| Whether the phone numbers can receive text messages. Can be: `true` or `false`. | - **mmsEnabled** | **optional.Bool**| Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. | - **voiceEnabled** | **optional.Bool**| Whether the phone numbers can receive calls. Can be: `true` or `false`. | - **excludeAllAddressRequired** | **optional.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`. | - **excludeLocalAddressRequired** | **optional.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`. | - **excludeForeignAddressRequired** | **optional.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** | **optional.Bool**| Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | - **nearNumber** | **optional.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. | - **nearLatLong** | **optional.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** | **optional.Int32**| 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. | - **inPostalCode** | **optional.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. | - **inRegion** | **optional.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. | - **inRateCenter** | **optional.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. | - **inLata** | **optional.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. | - **inLocality** | **optional.String**| Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. | - **faxEnabled** | **optional.Bool**| Whether the phone numbers can receive faxes. Can be: `true` or `false`. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **AreaCode** | **optional.Int32**| The area code of the phone numbers to read. Applies to only phone numbers in the US and Canada. | + **Contains** | **optional.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. | + **SmsEnabled** | **optional.Bool**| Whether the phone numbers can receive text messages. Can be: `true` or `false`. | + **MmsEnabled** | **optional.Bool**| Whether the phone numbers can receive MMS messages. Can be: `true` or `false`. | + **VoiceEnabled** | **optional.Bool**| Whether the phone numbers can receive calls. Can be: `true` or `false`. | + **ExcludeAllAddressRequired** | **optional.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`. | + **ExcludeLocalAddressRequired** | **optional.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`. | + **ExcludeForeignAddressRequired** | **optional.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** | **optional.Bool**| Whether to read phone numbers that are new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | + **NearNumber** | **optional.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. | + **NearLatLong** | **optional.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** | **optional.Int32**| 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. | + **InPostalCode** | **optional.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. | + **InRegion** | **optional.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. | + **InRateCenter** | **optional.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. | + **InLata** | **optional.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. | + **InLocality** | **optional.String**| Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. | + **FaxEnabled** | **optional.Bool**| Whether the phone numbers can receive faxes. Can be: `true` or `false`. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -5151,7 +5151,7 @@ Name | Type | Description | Notes ## ListCall -> ApiV2010AccountCallReadResponse ListCall(ctx, accountSid, optional) +> ApiV2010AccountCallReadResponse ListCall(ctx, AccountSid, optional) @@ -5163,7 +5163,7 @@ Retrieves a collection of calls made to and from your account Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to read. | **optional** | ***ListCallOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5174,17 +5174,17 @@ Optional parameters are passed through a pointer to a ListCallOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **to** | **optional.String**| Only show calls made to this phone number, SIP address, Client identifier or SIM SID. | - **from** | **optional.String**| Only include calls from this phone number, SIP address, Client identifier or SIM SID. | - **parentCallSid** | **optional.String**| Only include calls spawned by calls with this SID. | - **status** | **optional.String**| The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`. | - **startTime** | **optional.Time**| 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. | - **startTime2** | **optional.Time**| 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. | - **startTime2** | **optional.Time**| 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. | - **endTime** | **optional.Time**| 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. | - **endTime2** | **optional.Time**| 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. | - **endTime2** | **optional.Time**| 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. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **To** | **optional.String**| Only show calls made to this phone number, SIP address, Client identifier or SIM SID. | + **From** | **optional.String**| Only include calls from this phone number, SIP address, Client identifier or SIM SID. | + **ParentCallSid** | **optional.String**| Only include calls spawned by calls with this SID. | + **Status** | **optional.String**| The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`. | + **StartTime** | **optional.Time**| 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. | + **StartTimelesserThan** | **optional.Time**| 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. | + **StartTimegreaterThan** | **optional.Time**| 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. | + **EndTime** | **optional.Time**| 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. | + **EndTimelesserThan** | **optional.Time**| 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. | + **EndTimegreaterThan** | **optional.Time**| 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. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -5206,7 +5206,7 @@ Name | Type | Description | Notes ## ListCallEvent -> ApiV2010AccountCallCallEventReadResponse ListCallEvent(ctx, accountSid, callSid, optional) +> ApiV2010AccountCallCallEventReadResponse ListCallEvent(ctx, AccountSid, CallSid, optional) @@ -5218,8 +5218,8 @@ Retrieve a list of all events for a call. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The unique SID identifier of the Account. | -**callSid** | **string**| The unique SID identifier of the Call. | +**AccountSid** | **string**| The unique SID identifier of the Account. | +**CallSid** | **string**| The unique SID identifier of the Call. | **optional** | ***ListCallEventOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5231,7 +5231,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -5253,7 +5253,7 @@ Name | Type | Description | Notes ## ListCallNotification -> ApiV2010AccountCallCallNotificationReadResponse ListCallNotification(ctx, accountSid, callSid, optional) +> ApiV2010AccountCallCallNotificationReadResponse ListCallNotification(ctx, AccountSid, CallSid, optional) @@ -5263,8 +5263,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call Notification resources to read. | -**callSid** | **string**| The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the Call Notification resources to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call Notification resources to read. | +**CallSid** | **string**| The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the Call Notification resources to read. | **optional** | ***ListCallNotificationOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5276,11 +5276,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **log** | **optional.Int32**| 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. | - **messageDate** | **optional.Time**| 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. | - **messageDate2** | **optional.Time**| 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. | - **messageDate2** | **optional.Time**| 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. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Log** | **optional.Int32**| 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. | + **MessageDate** | **optional.Time**| 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. | + **MessageDatelesserThan** | **optional.Time**| 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. | + **MessageDategreaterThan** | **optional.Time**| 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. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -5302,7 +5302,7 @@ Name | Type | Description | Notes ## ListCallRecording -> ApiV2010AccountCallCallRecordingReadResponse ListCallRecording(ctx, accountSid, callSid, optional) +> ApiV2010AccountCallCallRecordingReadResponse ListCallRecording(ctx, AccountSid, CallSid, optional) @@ -5314,8 +5314,8 @@ Retrieve a list of recordings belonging to the call used to make the request Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to read. | -**callSid** | **string**| The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resources to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to read. | +**CallSid** | **string**| The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resources to read. | **optional** | ***ListCallRecordingOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5327,10 +5327,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **dateCreated** | **optional.Time**| 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. | - **dateCreated2** | **optional.Time**| 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. | - **dateCreated2** | **optional.Time**| 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. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **DateCreated** | **optional.Time**| 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. | + **DateCreatedlesserThan** | **optional.Time**| 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. | + **DateCreatedgreaterThan** | **optional.Time**| 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. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -5352,7 +5352,7 @@ Name | Type | Description | Notes ## ListConference -> ApiV2010AccountConferenceReadResponse ListConference(ctx, accountSid, optional) +> ApiV2010AccountConferenceReadResponse ListConference(ctx, AccountSid, optional) @@ -5364,7 +5364,7 @@ Retrieve a list of conferences belonging to the account used to make the request Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference resource(s) to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference resource(s) to read. | **optional** | ***ListConferenceOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5375,15 +5375,15 @@ Optional parameters are passed through a pointer to a ListConferenceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **dateCreated** | **optional.Time**| 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`. | - **dateCreated2** | **optional.Time**| 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`. | - **dateCreated2** | **optional.Time**| 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`. | - **dateUpdated** | **optional.Time**| 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`. | - **dateUpdated2** | **optional.Time**| 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`. | - **dateUpdated2** | **optional.Time**| 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`. | - **friendlyName** | **optional.String**| The string that identifies the Conference resources to read. | - **status** | **optional.String**| The status of the resources to read. Can be: `init`, `in-progress`, or `completed`. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **DateCreated** | **optional.Time**| 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`. | + **DateCreatedlesserThan** | **optional.Time**| 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`. | + **DateCreatedgreaterThan** | **optional.Time**| 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`. | + **DateUpdated** | **optional.Time**| 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`. | + **DateUpdatedlesserThan** | **optional.Time**| 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`. | + **DateUpdatedgreaterThan** | **optional.Time**| 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`. | + **FriendlyName** | **optional.String**| The string that identifies the Conference resources to read. | + **Status** | **optional.String**| The status of the resources to read. Can be: `init`, `in-progress`, or `completed`. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -5405,7 +5405,7 @@ Name | Type | Description | Notes ## ListConferenceRecording -> ApiV2010AccountConferenceConferenceRecordingReadResponse ListConferenceRecording(ctx, accountSid, conferenceSid, optional) +> ApiV2010AccountConferenceConferenceRecordingReadResponse ListConferenceRecording(ctx, AccountSid, ConferenceSid, optional) @@ -5417,8 +5417,8 @@ Retrieve a list of recordings belonging to the call used to make the request Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resources to read. | -**conferenceSid** | **string**| The Conference SID that identifies the conference associated with the recording to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resources to read. | +**ConferenceSid** | **string**| The Conference SID that identifies the conference associated with the recording to read. | **optional** | ***ListConferenceRecordingOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5430,10 +5430,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **dateCreated** | **optional.Time**| 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. | - **dateCreated2** | **optional.Time**| 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. | - **dateCreated2** | **optional.Time**| 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. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **DateCreated** | **optional.Time**| 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. | + **DateCreatedlesserThan** | **optional.Time**| 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. | + **DateCreatedgreaterThan** | **optional.Time**| 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. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -5455,7 +5455,7 @@ Name | Type | Description | Notes ## ListConnectApp -> ApiV2010AccountConnectAppReadResponse ListConnectApp(ctx, accountSid, optional) +> ApiV2010AccountConnectAppReadResponse ListConnectApp(ctx, AccountSid, optional) @@ -5467,7 +5467,7 @@ Retrieve a list of connect-apps belonging to the account used to make the reques Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resources to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resources to read. | **optional** | ***ListConnectAppOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5478,7 +5478,7 @@ Optional parameters are passed through a pointer to a ListConnectAppOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -5500,7 +5500,7 @@ Name | Type | Description | Notes ## ListDependentPhoneNumber -> ApiV2010AccountAddressDependentPhoneNumberReadResponse ListDependentPhoneNumber(ctx, accountSid, addressSid, optional) +> ApiV2010AccountAddressDependentPhoneNumberReadResponse ListDependentPhoneNumber(ctx, AccountSid, AddressSid, optional) @@ -5510,8 +5510,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the DependentPhoneNumber resources to read. | -**addressSid** | **string**| The SID of the Address resource associated with the phone number. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the DependentPhoneNumber resources to read. | +**AddressSid** | **string**| The SID of the Address resource associated with the phone number. | **optional** | ***ListDependentPhoneNumberOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5523,7 +5523,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -5545,7 +5545,7 @@ Name | Type | Description | Notes ## ListIncomingPhoneNumber -> ApiV2010AccountIncomingPhoneNumberReadResponse ListIncomingPhoneNumber(ctx, accountSid, optional) +> ApiV2010AccountIncomingPhoneNumberReadResponse ListIncomingPhoneNumber(ctx, AccountSid, optional) @@ -5557,7 +5557,7 @@ Retrieve a list of incoming-phone-numbers belonging to the account used to make Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IncomingPhoneNumber resources to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IncomingPhoneNumber resources to read. | **optional** | ***ListIncomingPhoneNumberOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5568,11 +5568,11 @@ Optional parameters are passed through a pointer to a ListIncomingPhoneNumberOpt Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **beta** | **optional.Bool**| Whether to include phone numbers new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | - **friendlyName** | **optional.String**| A string that identifies the IncomingPhoneNumber resources to read. | - **phoneNumber** | **optional.String**| The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. | - **origin** | **optional.String**| Whether to include phone numbers based on their origin. Can be: `twilio` or `hosted`. By default, phone numbers of all origin are included. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Beta** | **optional.Bool**| Whether to include phone numbers new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | + **FriendlyName** | **optional.String**| A string that identifies the IncomingPhoneNumber resources to read. | + **PhoneNumber** | **optional.String**| The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. | + **Origin** | **optional.String**| Whether to include phone numbers based on their origin. Can be: `twilio` or `hosted`. By default, phone numbers of all origin are included. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -5594,7 +5594,7 @@ Name | Type | Description | Notes ## ListIncomingPhoneNumberAssignedAddOn -> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse ListIncomingPhoneNumberAssignedAddOn(ctx, accountSid, resourceSid, optional) +> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse ListIncomingPhoneNumberAssignedAddOn(ctx, AccountSid, ResourceSid, optional) @@ -5606,8 +5606,8 @@ Retrieve a list of Add-on installations currently assigned to this Number. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. | -**resourceSid** | **string**| The SID of the Phone Number to which the Add-on is assigned. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. | +**ResourceSid** | **string**| The SID of the Phone Number to which the Add-on is assigned. | **optional** | ***ListIncomingPhoneNumberAssignedAddOnOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5619,7 +5619,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -5641,7 +5641,7 @@ Name | Type | Description | Notes ## ListIncomingPhoneNumberAssignedAddOnExtension -> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse ListIncomingPhoneNumberAssignedAddOnExtension(ctx, accountSid, resourceSid, assignedAddOnSid, optional) +> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse ListIncomingPhoneNumberAssignedAddOnExtension(ctx, AccountSid, ResourceSid, AssignedAddOnSid, optional) @@ -5653,9 +5653,9 @@ Retrieve a list of Extensions for the Assigned Add-on. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. | -**resourceSid** | **string**| The SID of the Phone Number to which the Add-on is assigned. | -**assignedAddOnSid** | **string**| The SID that uniquely identifies the assigned Add-on installation. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. | +**ResourceSid** | **string**| The SID of the Phone Number to which the Add-on is assigned. | +**AssignedAddOnSid** | **string**| The SID that uniquely identifies the assigned Add-on installation. | **optional** | ***ListIncomingPhoneNumberAssignedAddOnExtensionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5668,7 +5668,7 @@ Name | Type | Description | Notes - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -5690,7 +5690,7 @@ Name | Type | Description | Notes ## ListIncomingPhoneNumberLocal -> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse ListIncomingPhoneNumberLocal(ctx, accountSid, optional) +> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse ListIncomingPhoneNumberLocal(ctx, AccountSid, optional) @@ -5700,7 +5700,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. | **optional** | ***ListIncomingPhoneNumberLocalOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5711,11 +5711,11 @@ Optional parameters are passed through a pointer to a ListIncomingPhoneNumberLoc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **beta** | **optional.Bool**| Whether to include phone numbers new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | - **friendlyName** | **optional.String**| A string that identifies the resources to read. | - **phoneNumber** | **optional.String**| The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. | - **origin** | **optional.String**| Whether to include phone numbers based on their origin. Can be: `twilio` or `hosted`. By default, phone numbers of all origin are included. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Beta** | **optional.Bool**| Whether to include phone numbers new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | + **FriendlyName** | **optional.String**| A string that identifies the resources to read. | + **PhoneNumber** | **optional.String**| The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. | + **Origin** | **optional.String**| Whether to include phone numbers based on their origin. Can be: `twilio` or `hosted`. By default, phone numbers of all origin are included. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -5737,7 +5737,7 @@ Name | Type | Description | Notes ## ListIncomingPhoneNumberMobile -> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse ListIncomingPhoneNumberMobile(ctx, accountSid, optional) +> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse ListIncomingPhoneNumberMobile(ctx, AccountSid, optional) @@ -5747,7 +5747,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. | **optional** | ***ListIncomingPhoneNumberMobileOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5758,11 +5758,11 @@ Optional parameters are passed through a pointer to a ListIncomingPhoneNumberMob Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **beta** | **optional.Bool**| Whether to include phone numbers new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | - **friendlyName** | **optional.String**| A string that identifies the resources to read. | - **phoneNumber** | **optional.String**| The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. | - **origin** | **optional.String**| Whether to include phone numbers based on their origin. Can be: `twilio` or `hosted`. By default, phone numbers of all origin are included. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Beta** | **optional.Bool**| Whether to include phone numbers new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | + **FriendlyName** | **optional.String**| A string that identifies the resources to read. | + **PhoneNumber** | **optional.String**| The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. | + **Origin** | **optional.String**| Whether to include phone numbers based on their origin. Can be: `twilio` or `hosted`. By default, phone numbers of all origin are included. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -5784,7 +5784,7 @@ Name | Type | Description | Notes ## ListIncomingPhoneNumberTollFree -> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse ListIncomingPhoneNumberTollFree(ctx, accountSid, optional) +> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse ListIncomingPhoneNumberTollFree(ctx, AccountSid, optional) @@ -5794,7 +5794,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resources to read. | **optional** | ***ListIncomingPhoneNumberTollFreeOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5805,11 +5805,11 @@ Optional parameters are passed through a pointer to a ListIncomingPhoneNumberTol Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **beta** | **optional.Bool**| Whether to include phone numbers new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | - **friendlyName** | **optional.String**| A string that identifies the resources to read. | - **phoneNumber** | **optional.String**| The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. | - **origin** | **optional.String**| Whether to include phone numbers based on their origin. Can be: `twilio` or `hosted`. By default, phone numbers of all origin are included. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Beta** | **optional.Bool**| Whether to include phone numbers new to the Twilio platform. Can be: `true` or `false` and the default is `true`. | + **FriendlyName** | **optional.String**| A string that identifies the resources to read. | + **PhoneNumber** | **optional.String**| The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. | + **Origin** | **optional.String**| Whether to include phone numbers based on their origin. Can be: `twilio` or `hosted`. By default, phone numbers of all origin are included. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -5831,7 +5831,7 @@ Name | Type | Description | Notes ## ListKey -> ApiV2010AccountKeyReadResponse ListKey(ctx, accountSid, optional) +> ApiV2010AccountKeyReadResponse ListKey(ctx, AccountSid, optional) @@ -5841,7 +5841,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resources to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resources to read. | **optional** | ***ListKeyOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5852,7 +5852,7 @@ Optional parameters are passed through a pointer to a ListKeyOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -5874,7 +5874,7 @@ Name | Type | Description | Notes ## ListMedia -> ApiV2010AccountMessageMediaReadResponse ListMedia(ctx, accountSid, messageSid, optional) +> ApiV2010AccountMessageMediaReadResponse ListMedia(ctx, AccountSid, MessageSid, optional) @@ -5886,8 +5886,8 @@ Retrieve a list of Media resources belonging to the account used to make the req Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Media resource(s) to read. | -**messageSid** | **string**| The SID of the Message resource that this Media resource belongs to. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Media resource(s) to read. | +**MessageSid** | **string**| The SID of the Message resource that this Media resource belongs to. | **optional** | ***ListMediaOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5899,10 +5899,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **dateCreated** | **optional.Time**| 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. | - **dateCreated2** | **optional.Time**| 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. | - **dateCreated2** | **optional.Time**| 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. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **DateCreated** | **optional.Time**| 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. | + **DateCreatedlesserThan** | **optional.Time**| 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. | + **DateCreatedgreaterThan** | **optional.Time**| 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. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -5924,7 +5924,7 @@ Name | Type | Description | Notes ## ListMember -> ApiV2010AccountQueueMemberReadResponse ListMember(ctx, accountSid, queueSid, optional) +> ApiV2010AccountQueueMemberReadResponse ListMember(ctx, AccountSid, QueueSid, optional) @@ -5936,8 +5936,8 @@ Retrieve the members of the queue Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Member resource(s) to read. | -**queueSid** | **string**| The SID of the Queue in which to find the members | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Member resource(s) to read. | +**QueueSid** | **string**| The SID of the Queue in which to find the members | **optional** | ***ListMemberOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5949,7 +5949,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -5971,7 +5971,7 @@ Name | Type | Description | Notes ## ListMessage -> ApiV2010AccountMessageReadResponse ListMessage(ctx, accountSid, optional) +> ApiV2010AccountMessageReadResponse ListMessage(ctx, AccountSid, optional) @@ -5983,7 +5983,7 @@ Retrieve a list of messages belonging to the account used to make the request Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Message resources to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Message resources to read. | **optional** | ***ListMessageOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5994,12 +5994,12 @@ Optional parameters are passed through a pointer to a ListMessageOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **to** | **optional.String**| Read messages sent to only this phone number. | - **from** | **optional.String**| Read messages sent from only this phone number or alphanumeric sender ID. | - **dateSent** | **optional.Time**| 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. | - **dateSent2** | **optional.Time**| 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. | - **dateSent2** | **optional.Time**| 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. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **To** | **optional.String**| Read messages sent to only this phone number. | + **From** | **optional.String**| Read messages sent from only this phone number or alphanumeric sender ID. | + **DateSent** | **optional.Time**| 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. | + **DateSentlesserThan** | **optional.Time**| 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. | + **DateSentgreaterThan** | **optional.Time**| 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. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -6021,7 +6021,7 @@ Name | Type | Description | Notes ## ListNotification -> ApiV2010AccountNotificationReadResponse ListNotification(ctx, accountSid, optional) +> ApiV2010AccountNotificationReadResponse ListNotification(ctx, AccountSid, optional) @@ -6033,7 +6033,7 @@ Retrieve a list of notifications belonging to the account used to make the reque Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Notification resources to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Notification resources to read. | **optional** | ***ListNotificationOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6044,11 +6044,11 @@ Optional parameters are passed through a pointer to a ListNotificationOpts struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **log** | **optional.Int32**| 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. | - **messageDate** | **optional.Time**| 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. | - **messageDate2** | **optional.Time**| 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. | - **messageDate2** | **optional.Time**| 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. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Log** | **optional.Int32**| 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. | + **MessageDate** | **optional.Time**| 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. | + **MessageDatelesserThan** | **optional.Time**| 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. | + **MessageDategreaterThan** | **optional.Time**| 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. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -6070,7 +6070,7 @@ Name | Type | Description | Notes ## ListOutgoingCallerId -> ApiV2010AccountOutgoingCallerIdReadResponse ListOutgoingCallerId(ctx, accountSid, optional) +> ApiV2010AccountOutgoingCallerIdReadResponse ListOutgoingCallerId(ctx, AccountSid, optional) @@ -6082,7 +6082,7 @@ Retrieve a list of outgoing-caller-ids belonging to the account used to make the Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resources to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resources to read. | **optional** | ***ListOutgoingCallerIdOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6093,9 +6093,9 @@ Optional parameters are passed through a pointer to a ListOutgoingCallerIdOpts s Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **phoneNumber** | **optional.String**| The phone number of the OutgoingCallerId resources to read. | - **friendlyName** | **optional.String**| The string that identifies the OutgoingCallerId resources to read. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PhoneNumber** | **optional.String**| The phone number of the OutgoingCallerId resources to read. | + **FriendlyName** | **optional.String**| The string that identifies the OutgoingCallerId resources to read. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -6117,7 +6117,7 @@ Name | Type | Description | Notes ## ListParticipant -> ApiV2010AccountConferenceParticipantReadResponse ListParticipant(ctx, accountSid, conferenceSid, optional) +> ApiV2010AccountConferenceParticipantReadResponse ListParticipant(ctx, AccountSid, ConferenceSid, optional) @@ -6129,8 +6129,8 @@ Retrieve a list of participants belonging to the account used to make the reques Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resources to read. | -**conferenceSid** | **string**| The SID of the conference with the participants to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resources to read. | +**ConferenceSid** | **string**| The SID of the conference with the participants to read. | **optional** | ***ListParticipantOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6142,10 +6142,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **muted** | **optional.Bool**| Whether to return only participants that are muted. Can be: `true` or `false`. | - **hold** | **optional.Bool**| Whether to return only participants that are on hold. Can be: `true` or `false`. | - **coaching** | **optional.Bool**| Whether to return only participants who are coaching another call. Can be: `true` or `false`. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Muted** | **optional.Bool**| Whether to return only participants that are muted. Can be: `true` or `false`. | + **Hold** | **optional.Bool**| Whether to return only participants that are on hold. Can be: `true` or `false`. | + **Coaching** | **optional.Bool**| Whether to return only participants who are coaching another call. Can be: `true` or `false`. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -6167,7 +6167,7 @@ Name | Type | Description | Notes ## ListQueue -> ApiV2010AccountQueueReadResponse ListQueue(ctx, accountSid, optional) +> ApiV2010AccountQueueReadResponse ListQueue(ctx, AccountSid, optional) @@ -6179,7 +6179,7 @@ Retrieve a list of queues belonging to the account used to make the request Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resources to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resources to read. | **optional** | ***ListQueueOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6190,7 +6190,7 @@ Optional parameters are passed through a pointer to a ListQueueOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -6212,7 +6212,7 @@ Name | Type | Description | Notes ## ListRecording -> ApiV2010AccountRecordingReadResponse ListRecording(ctx, accountSid, optional) +> ApiV2010AccountRecordingReadResponse ListRecording(ctx, AccountSid, optional) @@ -6224,7 +6224,7 @@ Retrieve a list of recordings belonging to the account used to make the request Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to read. | **optional** | ***ListRecordingOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6235,12 +6235,12 @@ Optional parameters are passed through a pointer to a ListRecordingOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **dateCreated** | **optional.Time**| 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. | - **dateCreated2** | **optional.Time**| 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. | - **dateCreated2** | **optional.Time**| 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. | - **callSid** | **optional.String**| The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resources to read. | - **conferenceSid** | **optional.String**| The Conference SID that identifies the conference associated with the recording to read. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **DateCreated** | **optional.Time**| 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. | + **DateCreatedlesserThan** | **optional.Time**| 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. | + **DateCreatedgreaterThan** | **optional.Time**| 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. | + **CallSid** | **optional.String**| The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resources to read. | + **ConferenceSid** | **optional.String**| The Conference SID that identifies the conference associated with the recording to read. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -6262,7 +6262,7 @@ Name | Type | Description | Notes ## ListRecordingAddOnResult -> ApiV2010AccountRecordingRecordingAddOnResultReadResponse ListRecordingAddOnResult(ctx, accountSid, referenceSid, optional) +> ApiV2010AccountRecordingRecordingAddOnResultReadResponse ListRecordingAddOnResult(ctx, AccountSid, ReferenceSid, optional) @@ -6274,8 +6274,8 @@ Retrieve a list of results belonging to the recording Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult resources to read. | -**referenceSid** | **string**| The SID of the recording to which the result to read belongs. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult resources to read. | +**ReferenceSid** | **string**| The SID of the recording to which the result to read belongs. | **optional** | ***ListRecordingAddOnResultOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6287,7 +6287,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -6309,7 +6309,7 @@ Name | Type | Description | Notes ## ListRecordingAddOnResultPayload -> ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse ListRecordingAddOnResultPayload(ctx, accountSid, referenceSid, addOnResultSid, optional) +> ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse ListRecordingAddOnResultPayload(ctx, AccountSid, ReferenceSid, AddOnResultSid, optional) @@ -6321,9 +6321,9 @@ Retrieve a list of payloads belonging to the AddOnResult Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resources to read. | -**referenceSid** | **string**| The SID of the recording to which the AddOnResult resource that contains the payloads to read belongs. | -**addOnResultSid** | **string**| The SID of the AddOnResult to which the payloads to read belongs. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resources to read. | +**ReferenceSid** | **string**| The SID of the recording to which the AddOnResult resource that contains the payloads to read belongs. | +**AddOnResultSid** | **string**| The SID of the AddOnResult to which the payloads to read belongs. | **optional** | ***ListRecordingAddOnResultPayloadOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6336,7 +6336,7 @@ Name | Type | Description | Notes - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -6358,7 +6358,7 @@ Name | Type | Description | Notes ## ListRecordingTranscription -> ApiV2010AccountRecordingRecordingTranscriptionReadResponse ListRecordingTranscription(ctx, accountSid, recordingSid, optional) +> ApiV2010AccountRecordingRecordingTranscriptionReadResponse ListRecordingTranscription(ctx, AccountSid, RecordingSid, optional) @@ -6368,8 +6368,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to read. | -**recordingSid** | **string**| The SID of the [Recording](https://www.twilio.com/docs/voice/api/recording) that created the transcriptions to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to read. | +**RecordingSid** | **string**| The SID of the [Recording](https://www.twilio.com/docs/voice/api/recording) that created the transcriptions to read. | **optional** | ***ListRecordingTranscriptionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6381,7 +6381,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -6403,7 +6403,7 @@ Name | Type | Description | Notes ## ListShortCode -> ApiV2010AccountShortCodeReadResponse ListShortCode(ctx, accountSid, optional) +> ApiV2010AccountShortCodeReadResponse ListShortCode(ctx, AccountSid, optional) @@ -6415,7 +6415,7 @@ Retrieve a list of short-codes belonging to the account used to make the request Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ShortCode resource(s) to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ShortCode resource(s) to read. | **optional** | ***ListShortCodeOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6426,9 +6426,9 @@ Optional parameters are passed through a pointer to a ListShortCodeOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| The string that identifies the ShortCode resources to read. | - **shortCode** | **optional.String**| Only show the ShortCode resources that match this pattern. You can specify partial numbers and use '*' as a wildcard for any digit. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **FriendlyName** | **optional.String**| The string that identifies the ShortCode resources to read. | + **ShortCode** | **optional.String**| Only show the ShortCode resources that match this pattern. You can specify partial numbers and use '*' as a wildcard for any digit. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -6450,7 +6450,7 @@ Name | Type | Description | Notes ## ListSigningKey -> ApiV2010AccountSigningKeyReadResponse ListSigningKey(ctx, accountSid, optional) +> ApiV2010AccountSigningKeyReadResponse ListSigningKey(ctx, AccountSid, optional) @@ -6460,7 +6460,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| | +**AccountSid** | **string**| | **optional** | ***ListSigningKeyOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6471,7 +6471,7 @@ Optional parameters are passed through a pointer to a ListSigningKeyOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -6493,7 +6493,7 @@ Name | Type | Description | Notes ## ListSipAuthCallsCredentialListMapping -> ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse ListSipAuthCallsCredentialListMapping(ctx, accountSid, domainSid, optional) +> ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse ListSipAuthCallsCredentialListMapping(ctx, AccountSid, DomainSid, optional) @@ -6505,8 +6505,8 @@ Retrieve a list of credential list mappings belonging to the domain used in the Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to read. | -**domainSid** | **string**| The SID of the SIP domain that contains the resources to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to read. | +**DomainSid** | **string**| The SID of the SIP domain that contains the resources to read. | **optional** | ***ListSipAuthCallsCredentialListMappingOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6518,7 +6518,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -6540,7 +6540,7 @@ Name | Type | Description | Notes ## ListSipAuthCallsIpAccessControlListMapping -> ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse ListSipAuthCallsIpAccessControlListMapping(ctx, accountSid, domainSid, optional) +> ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse ListSipAuthCallsIpAccessControlListMapping(ctx, AccountSid, DomainSid, optional) @@ -6552,8 +6552,8 @@ Retrieve a list of IP Access Control List mappings belonging to the domain used Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IpAccessControlListMapping resources to read. | -**domainSid** | **string**| The SID of the SIP domain that contains the resources to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the IpAccessControlListMapping resources to read. | +**DomainSid** | **string**| The SID of the SIP domain that contains the resources to read. | **optional** | ***ListSipAuthCallsIpAccessControlListMappingOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6565,7 +6565,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -6587,7 +6587,7 @@ Name | Type | Description | Notes ## ListSipAuthRegistrationsCredentialListMapping -> ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse ListSipAuthRegistrationsCredentialListMapping(ctx, accountSid, domainSid, optional) +> ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse ListSipAuthRegistrationsCredentialListMapping(ctx, AccountSid, DomainSid, optional) @@ -6599,8 +6599,8 @@ Retrieve a list of credential list mappings belonging to the domain used in the Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to read. | -**domainSid** | **string**| The SID of the SIP domain that contains the resources to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the CredentialListMapping resources to read. | +**DomainSid** | **string**| The SID of the SIP domain that contains the resources to read. | **optional** | ***ListSipAuthRegistrationsCredentialListMappingOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6612,7 +6612,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -6634,7 +6634,7 @@ Name | Type | Description | Notes ## ListSipCredential -> ApiV2010AccountSipSipCredentialListSipCredentialReadResponse ListSipCredential(ctx, accountSid, credentialListSid, optional) +> ApiV2010AccountSipSipCredentialListSipCredentialReadResponse ListSipCredential(ctx, AccountSid, CredentialListSid, optional) @@ -6646,8 +6646,8 @@ Retrieve a list of credentials. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The unique id of the Account that is responsible for this resource. | -**credentialListSid** | **string**| The unique id that identifies the credential list that contains the desired credentials. | +**AccountSid** | **string**| The unique id of the Account that is responsible for this resource. | +**CredentialListSid** | **string**| The unique id that identifies the credential list that contains the desired credentials. | **optional** | ***ListSipCredentialOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6659,7 +6659,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -6681,7 +6681,7 @@ Name | Type | Description | Notes ## ListSipCredentialList -> ApiV2010AccountSipSipCredentialListReadResponse ListSipCredentialList(ctx, accountSid, optional) +> ApiV2010AccountSipSipCredentialListReadResponse ListSipCredentialList(ctx, AccountSid, optional) @@ -6693,7 +6693,7 @@ Get All Credential Lists Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The unique id of the Account that is responsible for this resource. | +**AccountSid** | **string**| The unique id of the Account that is responsible for this resource. | **optional** | ***ListSipCredentialListOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6704,7 +6704,7 @@ Optional parameters are passed through a pointer to a ListSipCredentialListOpts Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -6726,7 +6726,7 @@ Name | Type | Description | Notes ## ListSipCredentialListMapping -> ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse ListSipCredentialListMapping(ctx, accountSid, domainSid, optional) +> ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse ListSipCredentialListMapping(ctx, AccountSid, DomainSid, optional) @@ -6738,8 +6738,8 @@ Read multiple CredentialListMapping resources from an account. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | -**domainSid** | **string**| A 34 character string that uniquely identifies the SIP Domain that includes the resource to read. | +**AccountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | +**DomainSid** | **string**| A 34 character string that uniquely identifies the SIP Domain that includes the resource to read. | **optional** | ***ListSipCredentialListMappingOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6751,7 +6751,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -6773,7 +6773,7 @@ Name | Type | Description | Notes ## ListSipDomain -> ApiV2010AccountSipSipDomainReadResponse ListSipDomain(ctx, accountSid, optional) +> ApiV2010AccountSipSipDomainReadResponse ListSipDomain(ctx, AccountSid, optional) @@ -6785,7 +6785,7 @@ Retrieve a list of domains belonging to the account used to make the request Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resources to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resources to read. | **optional** | ***ListSipDomainOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6796,7 +6796,7 @@ Optional parameters are passed through a pointer to a ListSipDomainOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -6818,7 +6818,7 @@ Name | Type | Description | Notes ## ListSipIpAccessControlList -> ApiV2010AccountSipSipIpAccessControlListReadResponse ListSipIpAccessControlList(ctx, accountSid, optional) +> ApiV2010AccountSipSipIpAccessControlListReadResponse ListSipIpAccessControlList(ctx, AccountSid, optional) @@ -6830,7 +6830,7 @@ Retrieve a list of IpAccessControlLists that belong to the account used to make Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | +**AccountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | **optional** | ***ListSipIpAccessControlListOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6841,7 +6841,7 @@ Optional parameters are passed through a pointer to a ListSipIpAccessControlList Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -6863,7 +6863,7 @@ Name | Type | Description | Notes ## ListSipIpAccessControlListMapping -> ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse ListSipIpAccessControlListMapping(ctx, accountSid, domainSid, optional) +> ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse ListSipIpAccessControlListMapping(ctx, AccountSid, DomainSid, optional) @@ -6875,8 +6875,8 @@ Retrieve a list of IpAccessControlListMapping resources. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The unique id of the Account that is responsible for this resource. | -**domainSid** | **string**| A 34 character string that uniquely identifies the SIP domain. | +**AccountSid** | **string**| The unique id of the Account that is responsible for this resource. | +**DomainSid** | **string**| A 34 character string that uniquely identifies the SIP domain. | **optional** | ***ListSipIpAccessControlListMappingOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6888,7 +6888,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -6910,7 +6910,7 @@ Name | Type | Description | Notes ## ListSipIpAddress -> ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse ListSipIpAddress(ctx, accountSid, ipAccessControlListSid, optional) +> ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse ListSipIpAddress(ctx, AccountSid, IpAccessControlListSid, optional) @@ -6922,8 +6922,8 @@ Read multiple IpAddress resources. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | -**ipAccessControlListSid** | **string**| The IpAccessControlList Sid that identifies the IpAddress resources to read. | +**AccountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | +**IpAccessControlListSid** | **string**| The IpAccessControlList Sid that identifies the IpAddress resources to read. | **optional** | ***ListSipIpAddressOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6935,7 +6935,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -6957,7 +6957,7 @@ Name | Type | Description | Notes ## ListTranscription -> ApiV2010AccountTranscriptionReadResponse ListTranscription(ctx, accountSid, optional) +> ApiV2010AccountTranscriptionReadResponse ListTranscription(ctx, AccountSid, optional) @@ -6969,7 +6969,7 @@ Retrieve a list of transcriptions belonging to the account used to make the requ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to read. | **optional** | ***ListTranscriptionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6980,7 +6980,7 @@ Optional parameters are passed through a pointer to a ListTranscriptionOpts stru Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -7002,7 +7002,7 @@ Name | Type | Description | Notes ## ListUsageRecord -> ApiV2010AccountUsageUsageRecordReadResponse ListUsageRecord(ctx, accountSid, optional) +> ApiV2010AccountUsageUsageRecordReadResponse ListUsageRecord(ctx, AccountSid, optional) @@ -7014,7 +7014,7 @@ Retrieve a list of usage-records belonging to the account used to make the reque Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | **optional** | ***ListUsageRecordOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -7025,11 +7025,11 @@ Optional parameters are passed through a pointer to a ListUsageRecordOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **category** | **optional.String**| 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. | - **startDate** | **optional.Time**| 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. | - **endDate** | **optional.Time**| 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. | - **includeSubaccounts** | **optional.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. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Category** | **optional.String**| 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. | + **StartDate** | **optional.Time**| 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. | + **EndDate** | **optional.Time**| 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. | + **IncludeSubaccounts** | **optional.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. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -7051,7 +7051,7 @@ Name | Type | Description | Notes ## ListUsageRecordAllTime -> ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse ListUsageRecordAllTime(ctx, accountSid, optional) +> ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse ListUsageRecordAllTime(ctx, AccountSid, optional) @@ -7061,7 +7061,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | **optional** | ***ListUsageRecordAllTimeOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -7072,11 +7072,11 @@ Optional parameters are passed through a pointer to a ListUsageRecordAllTimeOpts Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **category** | **optional.String**| 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. | - **startDate** | **optional.Time**| 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. | - **endDate** | **optional.Time**| 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. | - **includeSubaccounts** | **optional.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. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Category** | **optional.String**| 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. | + **StartDate** | **optional.Time**| 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. | + **EndDate** | **optional.Time**| 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. | + **IncludeSubaccounts** | **optional.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. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -7098,7 +7098,7 @@ Name | Type | Description | Notes ## ListUsageRecordDaily -> ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse ListUsageRecordDaily(ctx, accountSid, optional) +> ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse ListUsageRecordDaily(ctx, AccountSid, optional) @@ -7108,7 +7108,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | **optional** | ***ListUsageRecordDailyOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -7119,11 +7119,11 @@ Optional parameters are passed through a pointer to a ListUsageRecordDailyOpts s Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **category** | **optional.String**| 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. | - **startDate** | **optional.Time**| 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. | - **endDate** | **optional.Time**| 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. | - **includeSubaccounts** | **optional.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. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Category** | **optional.String**| 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. | + **StartDate** | **optional.Time**| 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. | + **EndDate** | **optional.Time**| 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. | + **IncludeSubaccounts** | **optional.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. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -7145,7 +7145,7 @@ Name | Type | Description | Notes ## ListUsageRecordLastMonth -> ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse ListUsageRecordLastMonth(ctx, accountSid, optional) +> ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse ListUsageRecordLastMonth(ctx, AccountSid, optional) @@ -7155,7 +7155,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | **optional** | ***ListUsageRecordLastMonthOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -7166,11 +7166,11 @@ Optional parameters are passed through a pointer to a ListUsageRecordLastMonthOp Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **category** | **optional.String**| 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. | - **startDate** | **optional.Time**| 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. | - **endDate** | **optional.Time**| 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. | - **includeSubaccounts** | **optional.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. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Category** | **optional.String**| 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. | + **StartDate** | **optional.Time**| 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. | + **EndDate** | **optional.Time**| 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. | + **IncludeSubaccounts** | **optional.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. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -7192,7 +7192,7 @@ Name | Type | Description | Notes ## ListUsageRecordMonthly -> ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse ListUsageRecordMonthly(ctx, accountSid, optional) +> ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse ListUsageRecordMonthly(ctx, AccountSid, optional) @@ -7202,7 +7202,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | **optional** | ***ListUsageRecordMonthlyOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -7213,11 +7213,11 @@ Optional parameters are passed through a pointer to a ListUsageRecordMonthlyOpts Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **category** | **optional.String**| 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. | - **startDate** | **optional.Time**| 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. | - **endDate** | **optional.Time**| 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. | - **includeSubaccounts** | **optional.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. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Category** | **optional.String**| 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. | + **StartDate** | **optional.Time**| 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. | + **EndDate** | **optional.Time**| 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. | + **IncludeSubaccounts** | **optional.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. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -7239,7 +7239,7 @@ Name | Type | Description | Notes ## ListUsageRecordThisMonth -> ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse ListUsageRecordThisMonth(ctx, accountSid, optional) +> ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse ListUsageRecordThisMonth(ctx, AccountSid, optional) @@ -7249,7 +7249,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | **optional** | ***ListUsageRecordThisMonthOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -7260,11 +7260,11 @@ Optional parameters are passed through a pointer to a ListUsageRecordThisMonthOp Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **category** | **optional.String**| 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. | - **startDate** | **optional.Time**| 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. | - **endDate** | **optional.Time**| 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. | - **includeSubaccounts** | **optional.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. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Category** | **optional.String**| 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. | + **StartDate** | **optional.Time**| 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. | + **EndDate** | **optional.Time**| 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. | + **IncludeSubaccounts** | **optional.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. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -7286,7 +7286,7 @@ Name | Type | Description | Notes ## ListUsageRecordToday -> ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse ListUsageRecordToday(ctx, accountSid, optional) +> ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse ListUsageRecordToday(ctx, AccountSid, optional) @@ -7296,7 +7296,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | **optional** | ***ListUsageRecordTodayOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -7307,11 +7307,11 @@ Optional parameters are passed through a pointer to a ListUsageRecordTodayOpts s Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **category** | **optional.String**| 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. | - **startDate** | **optional.Time**| 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. | - **endDate** | **optional.Time**| 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. | - **includeSubaccounts** | **optional.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. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Category** | **optional.String**| 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. | + **StartDate** | **optional.Time**| 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. | + **EndDate** | **optional.Time**| 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. | + **IncludeSubaccounts** | **optional.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. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -7333,7 +7333,7 @@ Name | Type | Description | Notes ## ListUsageRecordYearly -> ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse ListUsageRecordYearly(ctx, accountSid, optional) +> ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse ListUsageRecordYearly(ctx, AccountSid, optional) @@ -7343,7 +7343,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | **optional** | ***ListUsageRecordYearlyOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -7354,11 +7354,11 @@ Optional parameters are passed through a pointer to a ListUsageRecordYearlyOpts Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **category** | **optional.String**| 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. | - **startDate** | **optional.Time**| 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. | - **endDate** | **optional.Time**| 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. | - **includeSubaccounts** | **optional.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. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Category** | **optional.String**| 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. | + **StartDate** | **optional.Time**| 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. | + **EndDate** | **optional.Time**| 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. | + **IncludeSubaccounts** | **optional.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. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -7380,7 +7380,7 @@ Name | Type | Description | Notes ## ListUsageRecordYesterday -> ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse ListUsageRecordYesterday(ctx, accountSid, optional) +> ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse ListUsageRecordYesterday(ctx, AccountSid, optional) @@ -7390,7 +7390,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageRecord resources to read. | **optional** | ***ListUsageRecordYesterdayOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -7401,11 +7401,11 @@ Optional parameters are passed through a pointer to a ListUsageRecordYesterdayOp Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **category** | **optional.String**| 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. | - **startDate** | **optional.Time**| 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. | - **endDate** | **optional.Time**| 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. | - **includeSubaccounts** | **optional.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. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Category** | **optional.String**| 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. | + **StartDate** | **optional.Time**| 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. | + **EndDate** | **optional.Time**| 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. | + **IncludeSubaccounts** | **optional.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. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -7427,7 +7427,7 @@ Name | Type | Description | Notes ## ListUsageTrigger -> ApiV2010AccountUsageUsageTriggerReadResponse ListUsageTrigger(ctx, accountSid, optional) +> ApiV2010AccountUsageUsageTriggerReadResponse ListUsageTrigger(ctx, AccountSid, optional) @@ -7439,7 +7439,7 @@ Retrieve a list of usage-triggers belonging to the account used to make the requ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resources to read. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resources to read. | **optional** | ***ListUsageTriggerOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -7450,10 +7450,10 @@ Optional parameters are passed through a pointer to a ListUsageTriggerOpts struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **recurring** | **optional.String**| 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. | - **triggerBy** | **optional.String**| 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). | - **usageCategory** | **optional.String**| 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). | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Recurring** | **optional.String**| 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. | + **TriggerBy** | **optional.String**| 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). | + **UsageCategory** | **optional.String**| 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). | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -7475,7 +7475,7 @@ Name | Type | Description | Notes ## UpdateAccount -> ApiV2010Account UpdateAccount(ctx, sid, optional) +> ApiV2010Account UpdateAccount(ctx, Sid, optional) @@ -7487,7 +7487,7 @@ Modify the properties of a given Account Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Account Sid that uniquely identifies the account to update | +**Sid** | **string**| The Account Sid that uniquely identifies the account to update | **optional** | ***UpdateAccountOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -7498,8 +7498,8 @@ Optional parameters are passed through a pointer to a UpdateAccountOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| Update the human-readable description of this Account | - **status** | **optional.String**| Alter the status of this account: use `closed` to irreversibly close this account, `suspended` to temporarily suspend it, or `active` to reactivate it. | + **FriendlyName** | **optional.String**| Update the human-readable description of this Account | + **Status** | **optional.String**| Alter the status of this account: use `closed` to irreversibly close this account, `suspended` to temporarily suspend it, or `active` to reactivate it. | ### Return type @@ -7521,7 +7521,7 @@ Name | Type | Description | Notes ## UpdateAddress -> ApiV2010AccountAddress UpdateAddress(ctx, accountSid, sid, optional) +> ApiV2010AccountAddress UpdateAddress(ctx, AccountSid, Sid, optional) @@ -7531,8 +7531,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to update. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Address resource to update. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is responsible for the Address resource to update. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Address resource to update. | **optional** | ***UpdateAddressOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -7544,14 +7544,14 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **autoCorrectAddress** | **optional.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. | - **city** | **optional.String**| The city of the address. | - **customerName** | **optional.String**| The name to associate with the address. | - **emergencyEnabled** | **optional.Bool**| Whether to enable emergency calling on the address. Can be: `true` or `false`. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the address. It can be up to 64 characters long. | - **postalCode** | **optional.String**| The postal code of the address. | - **region** | **optional.String**| The state or region of the address. | - **street** | **optional.String**| The number and street address of the address. | + **AutoCorrectAddress** | **optional.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. | + **City** | **optional.String**| The city of the address. | + **CustomerName** | **optional.String**| The name to associate with the address. | + **EmergencyEnabled** | **optional.Bool**| Whether to enable emergency calling on the address. Can be: `true` or `false`. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the address. It can be up to 64 characters long. | + **PostalCode** | **optional.String**| The postal code of the address. | + **Region** | **optional.String**| The state or region of the address. | + **Street** | **optional.String**| The number and street address of the address. | ### Return type @@ -7573,7 +7573,7 @@ Name | Type | Description | Notes ## UpdateApplication -> ApiV2010AccountApplication UpdateApplication(ctx, accountSid, sid, optional) +> ApiV2010AccountApplication UpdateApplication(ctx, AccountSid, Sid, optional) @@ -7585,8 +7585,8 @@ Updates the application's properties Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resources to update. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Application resource to update. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resources to update. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Application resource to update. | **optional** | ***UpdateApplicationOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -7598,21 +7598,21 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiVersion** | **optional.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. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | - **messageStatusCallback** | **optional.String**| The URL we should call using a POST method to send message status information to your application. | - **smsFallbackMethod** | **optional.String**| The HTTP method we should use to call `sms_fallback_url`. Can be: `GET` or `POST`. | - **smsFallbackUrl** | **optional.String**| The URL that we should call when an error occurs while retrieving or executing the TwiML from `sms_url`. | - **smsMethod** | **optional.String**| The HTTP method we should use to call `sms_url`. Can be: `GET` or `POST`. | - **smsStatusCallback** | **optional.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. | - **smsUrl** | **optional.String**| The URL we should call when the phone number receives an incoming SMS message. | - **statusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application. | - **statusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST`. | - **voiceCallerIdLookup** | **optional.Bool**| Whether we should look up the caller's caller-ID name from the CNAM database (additional charges apply). Can be: `true` or `false`. | - **voiceFallbackMethod** | **optional.String**| The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. | - **voiceFallbackUrl** | **optional.String**| The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | - **voiceMethod** | **optional.String**| The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`. | - **voiceUrl** | **optional.String**| The URL we should call when the phone number assigned to this application receives a call. | + **ApiVersion** | **optional.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. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **MessageStatusCallback** | **optional.String**| The URL we should call using a POST method to send message status information to your application. | + **SmsFallbackMethod** | **optional.String**| The HTTP method we should use to call `sms_fallback_url`. Can be: `GET` or `POST`. | + **SmsFallbackUrl** | **optional.String**| The URL that we should call when an error occurs while retrieving or executing the TwiML from `sms_url`. | + **SmsMethod** | **optional.String**| The HTTP method we should use to call `sms_url`. Can be: `GET` or `POST`. | + **SmsStatusCallback** | **optional.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. | + **SmsUrl** | **optional.String**| The URL we should call when the phone number receives an incoming SMS message. | + **StatusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application. | + **StatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST`. | + **VoiceCallerIdLookup** | **optional.Bool**| Whether we should look up the caller's caller-ID name from the CNAM database (additional charges apply). Can be: `true` or `false`. | + **VoiceFallbackMethod** | **optional.String**| The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. | + **VoiceFallbackUrl** | **optional.String**| The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | + **VoiceMethod** | **optional.String**| The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`. | + **VoiceUrl** | **optional.String**| The URL we should call when the phone number assigned to this application receives a call. | ### Return type @@ -7634,7 +7634,7 @@ Name | Type | Description | Notes ## UpdateCall -> ApiV2010AccountCall UpdateCall(ctx, accountSid, sid, optional) +> ApiV2010AccountCall UpdateCall(ctx, AccountSid, Sid, optional) @@ -7646,8 +7646,8 @@ Initiates a call redirect or terminates a call Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to update. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Call resource to update | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to update. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Call resource to update | **optional** | ***UpdateCallOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -7659,14 +7659,14 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **fallbackMethod** | **optional.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. | - **fallbackUrl** | **optional.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. | - **method** | **optional.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** | **optional.String**| The new status of the resource. Can be: `canceled` or `completed`. Specifying `canceled` will attempt to hang up calls that are queued or ringing; however, it will not affect calls already in progress. Specifying `completed` will attempt to hang up a call even if it's already in progress. | - **statusCallback** | **optional.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). | - **statusCallbackMethod** | **optional.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** | **optional.String**| TwiML instructions for the call Twilio will use without fetching Twiml from url. Twiml and url parameters are mutually exclusive | - **url** | **optional.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). | + **FallbackMethod** | **optional.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. | + **FallbackUrl** | **optional.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. | + **Method** | **optional.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** | **optional.String**| The new status of the resource. Can be: `canceled` or `completed`. Specifying `canceled` will attempt to hang up calls that are queued or ringing; however, it will not affect calls already in progress. Specifying `completed` will attempt to hang up a call even if it's already in progress. | + **StatusCallback** | **optional.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). | + **StatusCallbackMethod** | **optional.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** | **optional.String**| TwiML instructions for the call Twilio will use without fetching Twiml from url. Twiml and url parameters are mutually exclusive | + **Url** | **optional.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). | ### Return type @@ -7688,7 +7688,7 @@ Name | Type | Description | Notes ## UpdateCallFeedback -> ApiV2010AccountCallCallFeedback UpdateCallFeedback(ctx, accountSid, callSid, optional) +> ApiV2010AccountCallCallFeedback UpdateCallFeedback(ctx, AccountSid, CallSid, optional) @@ -7700,8 +7700,8 @@ Update a Feedback resource for a call Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | -**callSid** | **string**| The call sid that uniquely identifies the call | +**AccountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | +**CallSid** | **string**| The call sid that uniquely identifies the call | **optional** | ***UpdateCallFeedbackOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -7713,8 +7713,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **issue** | [**optional.Interface of []string**](string.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`. | - **qualityScore** | **optional.Int32**| 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** | [**optional.Interface of []string**](string.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`. | + **QualityScore** | **optional.Int32**| The call quality expressed as an integer from `1` to `5` where `1` represents very poor call quality and `5` represents a perfect call. | ### Return type @@ -7736,7 +7736,7 @@ Name | Type | Description | Notes ## UpdateCallRecording -> ApiV2010AccountCallCallRecording UpdateCallRecording(ctx, accountSid, callSid, sid, optional) +> ApiV2010AccountCallCallRecording UpdateCallRecording(ctx, AccountSid, CallSid, Sid, optional) @@ -7748,9 +7748,9 @@ Changes the status of the recording to paused, stopped, or in-progress. Note: Pa Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource to update. | -**callSid** | **string**| The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource to update. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Recording resource to update. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resource to update. | +**CallSid** | **string**| The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource to update. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Recording resource to update. | **optional** | ***UpdateCallRecordingOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -7763,8 +7763,8 @@ Name | Type | Description | Notes - **pauseBehavior** | **optional.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`. | - **status** | **optional.String**| The new status of the recording. Can be: `stopped`, `paused`, `in-progress`. | + **PauseBehavior** | **optional.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`. | + **Status** | **optional.String**| The new status of the recording. Can be: `stopped`, `paused`, `in-progress`. | ### Return type @@ -7786,7 +7786,7 @@ Name | Type | Description | Notes ## UpdateConference -> ApiV2010AccountConference UpdateConference(ctx, accountSid, sid, optional) +> ApiV2010AccountConference UpdateConference(ctx, AccountSid, Sid, optional) @@ -7796,8 +7796,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference resource(s) to update. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Conference resource to update | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference resource(s) to update. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Conference resource to update | **optional** | ***UpdateConferenceOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -7809,9 +7809,9 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **announceMethod** | **optional.String**| The HTTP method used to call `announce_url`. Can be: `GET` or `POST` and the default is `POST` | - **announceUrl** | **optional.String**| The URL we should call to announce something into the conference. The URL can return an MP3, a WAV, or a TwiML document with `<Play>` or `<Say>`. | - **status** | **optional.String**| The new status of the resource. Can be: Can be: `init`, `in-progress`, or `completed`. Specifying `completed` will end the conference and hang up all participants | + **AnnounceMethod** | **optional.String**| The HTTP method used to call `announce_url`. Can be: `GET` or `POST` and the default is `POST` | + **AnnounceUrl** | **optional.String**| The URL we should call to announce something into the conference. The URL can return an MP3, a WAV, or a TwiML document with `<Play>` or `<Say>`. | + **Status** | **optional.String**| The new status of the resource. Can be: Can be: `init`, `in-progress`, or `completed`. Specifying `completed` will end the conference and hang up all participants | ### Return type @@ -7833,7 +7833,7 @@ Name | Type | Description | Notes ## UpdateConferenceRecording -> ApiV2010AccountConferenceConferenceRecording UpdateConferenceRecording(ctx, accountSid, conferenceSid, sid, optional) +> ApiV2010AccountConferenceConferenceRecording UpdateConferenceRecording(ctx, AccountSid, ConferenceSid, Sid, optional) @@ -7845,9 +7845,9 @@ Changes the status of the recording to paused, stopped, or in-progress. Note: To Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resource to update. | -**conferenceSid** | **string**| The Conference SID that identifies the conference associated with the recording to update. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Conference Recording resource to update. Use `Twilio.CURRENT` to reference the current active recording. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference Recording resource to update. | +**ConferenceSid** | **string**| The Conference SID that identifies the conference associated with the recording to update. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Conference Recording resource to update. Use `Twilio.CURRENT` to reference the current active recording. | **optional** | ***UpdateConferenceRecordingOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -7860,8 +7860,8 @@ Name | Type | Description | Notes - **pauseBehavior** | **optional.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`. | - **status** | **optional.String**| The new status of the recording. Can be: `stopped`, `paused`, `in-progress`. | + **PauseBehavior** | **optional.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`. | + **Status** | **optional.String**| The new status of the recording. Can be: `stopped`, `paused`, `in-progress`. | ### Return type @@ -7883,7 +7883,7 @@ Name | Type | Description | Notes ## UpdateConnectApp -> ApiV2010AccountConnectApp UpdateConnectApp(ctx, accountSid, sid, optional) +> ApiV2010AccountConnectApp UpdateConnectApp(ctx, AccountSid, Sid, optional) @@ -7895,8 +7895,8 @@ Update a connect-app with the specified parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resources to update. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the ConnectApp resource to update. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resources to update. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the ConnectApp resource to update. | **optional** | ***UpdateConnectAppOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -7908,14 +7908,14 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **authorizeRedirectUrl** | **optional.String**| The URL to redirect the user to after we authenticate the user and obtain authorization to access the Connect App. | - **companyName** | **optional.String**| The company name to set for the Connect App. | - **deauthorizeCallbackMethod** | **optional.String**| The HTTP method to use when calling `deauthorize_callback_url`. | - **deauthorizeCallbackUrl** | **optional.String**| The URL to call using the `deauthorize_callback_method` to de-authorize the Connect App. | - **description** | **optional.String**| A description of the Connect App. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | - **homepageUrl** | **optional.String**| A public URL where users can obtain more information about this Connect App. | - **permissions** | [**optional.Interface of []string**](string.md)| A comma-separated list of the permissions you will request from the users of this ConnectApp. Can include: `get-all` and `post-all`. | + **AuthorizeRedirectUrl** | **optional.String**| The URL to redirect the user to after we authenticate the user and obtain authorization to access the Connect App. | + **CompanyName** | **optional.String**| The company name to set for the Connect App. | + **DeauthorizeCallbackMethod** | **optional.String**| The HTTP method to use when calling `deauthorize_callback_url`. | + **DeauthorizeCallbackUrl** | **optional.String**| The URL to call using the `deauthorize_callback_method` to de-authorize the Connect App. | + **Description** | **optional.String**| A description of the Connect App. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **HomepageUrl** | **optional.String**| A public URL where users can obtain more information about this Connect App. | + **Permissions** | [**optional.Interface of []string**](string.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 @@ -7937,7 +7937,7 @@ Name | Type | Description | Notes ## UpdateIncomingPhoneNumber -> ApiV2010AccountIncomingPhoneNumber UpdateIncomingPhoneNumber(ctx, accountSid, sid, optional) +> ApiV2010AccountIncomingPhoneNumber UpdateIncomingPhoneNumber(ctx, AccountSid, Sid, optional) @@ -7949,8 +7949,8 @@ Update an incoming-phone-number instance. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **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). | -**sid** | **string**| The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to update. | +**AccountSid** | **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). | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to update. | **optional** | ***UpdateIncomingPhoneNumberOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -7962,29 +7962,29 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **accountSid** | **optional.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). | - **addressSid** | **optional.String**| The SID of the Address resource we should associate with the phone number. Some regions require addresses to meet local regulations. | - **apiVersion** | **optional.String**| The API version to use for incoming calls made to the phone number. The default is `2010-04-01`. | - **bundleSid** | **optional.String**| The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | - **emergencyAddressSid** | **optional.String**| The SID of the emergency address configuration to use for emergency calling from this phone number. | - **emergencyStatus** | **optional.String**| The configuration status parameter that determines whether the phone number is enabled for emergency calling. | - **friendlyName** | **optional.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. | - **identitySid** | **optional.String**| The SID of the Identity resource that we should associate with the phone number. Some regions require an identity to meet local regulations. | - **smsApplicationSid** | **optional.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. | - **smsFallbackMethod** | **optional.String**| The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | - **smsFallbackUrl** | **optional.String**| The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. | - **smsMethod** | **optional.String**| The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. | - **smsUrl** | **optional.String**| The URL we should call when the phone number receives an incoming SMS message. | - **statusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application. | - **statusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | - **trunkSid** | **optional.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. | - **voiceApplicationSid** | **optional.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. | - **voiceCallerIdLookup** | **optional.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`. | - **voiceFallbackMethod** | **optional.String**| The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | - **voiceFallbackUrl** | **optional.String**| The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | - **voiceMethod** | **optional.String**| The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. | - **voiceReceiveMode** | **optional.String**| The configuration parameter for the phone number to receive incoming voice calls or faxes. Can be: `fax` or `voice` and defaults to `voice`. | - **voiceUrl** | **optional.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. | + **AccountSid** | **optional.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). | + **AddressSid** | **optional.String**| The SID of the Address resource we should associate with the phone number. Some regions require addresses to meet local regulations. | + **ApiVersion** | **optional.String**| The API version to use for incoming calls made to the phone number. The default is `2010-04-01`. | + **BundleSid** | **optional.String**| The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. | + **EmergencyAddressSid** | **optional.String**| The SID of the emergency address configuration to use for emergency calling from this phone number. | + **EmergencyStatus** | **optional.String**| The configuration status parameter that determines whether the phone number is enabled for emergency calling. | + **FriendlyName** | **optional.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. | + **IdentitySid** | **optional.String**| The SID of the Identity resource that we should associate with the phone number. Some regions require an identity to meet local regulations. | + **SmsApplicationSid** | **optional.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. | + **SmsFallbackMethod** | **optional.String**| The HTTP method that we should use to call `sms_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **SmsFallbackUrl** | **optional.String**| The URL that we should call when an error occurs while requesting or executing the TwiML defined by `sms_url`. | + **SmsMethod** | **optional.String**| The HTTP method that we should use to call `sms_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **SmsUrl** | **optional.String**| The URL we should call when the phone number receives an incoming SMS message. | + **StatusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application. | + **StatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | + **TrunkSid** | **optional.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. | + **VoiceApplicationSid** | **optional.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. | + **VoiceCallerIdLookup** | **optional.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`. | + **VoiceFallbackMethod** | **optional.String**| The HTTP method that we should use to call `voice_fallback_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **VoiceFallbackUrl** | **optional.String**| The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`. | + **VoiceMethod** | **optional.String**| The HTTP method that we should use to call `voice_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **VoiceReceiveMode** | **optional.String**| The configuration parameter for the phone number to receive incoming voice calls or faxes. Can be: `fax` or `voice` and defaults to `voice`. | + **VoiceUrl** | **optional.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. | ### Return type @@ -8006,7 +8006,7 @@ Name | Type | Description | Notes ## UpdateKey -> ApiV2010AccountKey UpdateKey(ctx, accountSid, sid, optional) +> ApiV2010AccountKey UpdateKey(ctx, AccountSid, Sid, optional) @@ -8016,8 +8016,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resources to update. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Key resource to update. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resources to update. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Key resource to update. | **optional** | ***UpdateKeyOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -8029,7 +8029,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | ### Return type @@ -8051,7 +8051,7 @@ Name | Type | Description | Notes ## UpdateMember -> ApiV2010AccountQueueMember UpdateMember(ctx, accountSid, queueSid, callSid, optional) +> ApiV2010AccountQueueMember UpdateMember(ctx, AccountSid, QueueSid, CallSid, optional) @@ -8063,9 +8063,9 @@ Dequeue a member from a queue and have the member's call begin executing the Twi Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Member resource(s) to update. | -**queueSid** | **string**| The SID of the Queue in which to find the members to update. | -**callSid** | **string**| The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource(s) to update. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Member resource(s) to update. | +**QueueSid** | **string**| The SID of the Queue in which to find the members to update. | +**CallSid** | **string**| The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resource(s) to update. | **optional** | ***UpdateMemberOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -8078,8 +8078,8 @@ Name | Type | Description | Notes - **method** | **optional.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. | - **url** | **optional.String**| The absolute URL of the Queue resource. | + **Method** | **optional.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. | + **Url** | **optional.String**| The absolute URL of the Queue resource. | ### Return type @@ -8101,7 +8101,7 @@ Name | Type | Description | Notes ## UpdateMessage -> ApiV2010AccountMessage UpdateMessage(ctx, accountSid, sid, optional) +> ApiV2010AccountMessage UpdateMessage(ctx, AccountSid, Sid, optional) @@ -8113,8 +8113,8 @@ To redact a message-body from a post-flight message record, post to the message Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Message resources to update. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Message resource to update. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Message resources to update. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Message resource to update. | **optional** | ***UpdateMessageOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -8126,7 +8126,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **optional.String**| The text of the message you want to send. Can be up to 1,600 characters long. | + **Body** | **optional.String**| The text of the message you want to send. Can be up to 1,600 characters long. | ### Return type @@ -8148,7 +8148,7 @@ Name | Type | Description | Notes ## UpdateOutgoingCallerId -> ApiV2010AccountOutgoingCallerId UpdateOutgoingCallerId(ctx, accountSid, sid, optional) +> ApiV2010AccountOutgoingCallerId UpdateOutgoingCallerId(ctx, AccountSid, Sid, optional) @@ -8160,8 +8160,8 @@ Updates the caller-id Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resources to update. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the OutgoingCallerId resource to update. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the OutgoingCallerId resources to update. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the OutgoingCallerId resource to update. | **optional** | ***UpdateOutgoingCallerIdOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -8173,7 +8173,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | ### Return type @@ -8195,7 +8195,7 @@ Name | Type | Description | Notes ## UpdateParticipant -> ApiV2010AccountConferenceParticipant UpdateParticipant(ctx, accountSid, conferenceSid, callSid, optional) +> ApiV2010AccountConferenceParticipant UpdateParticipant(ctx, AccountSid, ConferenceSid, CallSid, optional) @@ -8207,9 +8207,9 @@ Update the properties of the participant Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resources to update. | -**conferenceSid** | **string**| The SID of the conference with the participant to update. | -**callSid** | **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. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Participant resources to update. | +**ConferenceSid** | **string**| The SID of the conference with the participant to update. | +**CallSid** | **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. | **optional** | ***UpdateParticipantOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -8222,18 +8222,18 @@ Name | Type | Description | Notes - **announceMethod** | **optional.String**| The HTTP method we should use to call `announce_url`. Can be: `GET` or `POST` and defaults to `POST`. | - **announceUrl** | **optional.String**| The URL we call using the `announce_method` for an announcement to the participant. The URL must return an MP3 file, a WAV file, or a TwiML document that contains `<Play>` or `<Say>` commands. | - **beepOnExit** | **optional.Bool**| Whether to play a notification beep to the conference when the participant exits. Can be: `true` or `false`. | - **callSidToCoach** | **optional.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`. | - **coaching** | **optional.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. | - **endConferenceOnExit** | **optional.Bool**| Whether to end the conference when the participant leaves. Can be: `true` or `false` and defaults to `false`. | - **hold** | **optional.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. | - **holdMethod** | **optional.String**| The HTTP method we should use to call `hold_url`. Can be: `GET` or `POST` and the default is `GET`. | - **holdUrl** | **optional.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 the `<Play>`, `<Say>` or `<Redirect>` commands. | - **muted** | **optional.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`. | - **waitMethod** | **optional.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. | - **waitUrl** | **optional.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). | + **AnnounceMethod** | **optional.String**| The HTTP method we should use to call `announce_url`. Can be: `GET` or `POST` and defaults to `POST`. | + **AnnounceUrl** | **optional.String**| The URL we call using the `announce_method` for an announcement to the participant. The URL must return an MP3 file, a WAV file, or a TwiML document that contains `<Play>` or `<Say>` commands. | + **BeepOnExit** | **optional.Bool**| Whether to play a notification beep to the conference when the participant exits. Can be: `true` or `false`. | + **CallSidToCoach** | **optional.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`. | + **Coaching** | **optional.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. | + **EndConferenceOnExit** | **optional.Bool**| Whether to end the conference when the participant leaves. Can be: `true` or `false` and defaults to `false`. | + **Hold** | **optional.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. | + **HoldMethod** | **optional.String**| The HTTP method we should use to call `hold_url`. Can be: `GET` or `POST` and the default is `GET`. | + **HoldUrl** | **optional.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 the `<Play>`, `<Say>` or `<Redirect>` commands. | + **Muted** | **optional.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`. | + **WaitMethod** | **optional.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. | + **WaitUrl** | **optional.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). | ### Return type @@ -8255,7 +8255,7 @@ Name | Type | Description | Notes ## UpdatePayments -> ApiV2010AccountCallPayments UpdatePayments(ctx, accountSid, callSid, sid, optional) +> ApiV2010AccountCallPayments UpdatePayments(ctx, AccountSid, CallSid, Sid, optional) @@ -8267,9 +8267,9 @@ update an instance of payments with different phases of payment flows. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will update the resource. | -**callSid** | **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. | -**sid** | **string**| The SID of Payments session that needs to be updated. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will update the resource. | +**CallSid** | **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. | +**Sid** | **string**| The SID of Payments session that needs to be updated. | **optional** | ***UpdatePaymentsOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -8282,10 +8282,10 @@ Name | Type | Description | Notes - **capture** | **optional.String**| The piece of payment information that you wish the caller to enter. Must be one of `payment-card-number`, `expiration-date`, `security-code`, `postal-code`, `bank-routing-number`, or `bank-account-number`. | - **idempotencyKey** | **optional.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. | - **status** | **optional.String**| Indicates whether the current payment session should be cancelled or completed. When `cancel` the payment session is cancelled. When `complete`, Twilio sends the payment information to the selected <Pay> connector for processing. | - **statusCallback** | **optional.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. | + **Capture** | **optional.String**| The piece of payment information that you wish the caller to enter. Must be one of `payment-card-number`, `expiration-date`, `security-code`, `postal-code`, `bank-routing-number`, or `bank-account-number`. | + **IdempotencyKey** | **optional.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. | + **Status** | **optional.String**| Indicates whether the current payment session should be cancelled or completed. When `cancel` the payment session is cancelled. When `complete`, Twilio sends the payment information to the selected <Pay> connector for processing. | + **StatusCallback** | **optional.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. | ### Return type @@ -8307,7 +8307,7 @@ Name | Type | Description | Notes ## UpdateQueue -> ApiV2010AccountQueue UpdateQueue(ctx, accountSid, sid, optional) +> ApiV2010AccountQueue UpdateQueue(ctx, AccountSid, Sid, optional) @@ -8319,8 +8319,8 @@ Update the queue with the new parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resource to update. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Queue resource to update | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resource to update. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Queue resource to update | **optional** | ***UpdateQueueOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -8332,8 +8332,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| A descriptive string that you created to describe this resource. It can be up to 64 characters long. | - **maxSize** | **optional.Int32**| The maximum number of calls allowed to be in the queue. The default is 100. The maximum is 5000. | + **FriendlyName** | **optional.String**| A descriptive string that you created to describe this resource. It can be up to 64 characters long. | + **MaxSize** | **optional.Int32**| The maximum number of calls allowed to be in the queue. The default is 100. The maximum is 5000. | ### Return type @@ -8355,7 +8355,7 @@ Name | Type | Description | Notes ## UpdateShortCode -> ApiV2010AccountShortCode UpdateShortCode(ctx, accountSid, sid, optional) +> ApiV2010AccountShortCode UpdateShortCode(ctx, AccountSid, Sid, optional) @@ -8367,8 +8367,8 @@ Update a short code with the following parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ShortCode resource(s) to update. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the ShortCode resource to update | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ShortCode resource(s) to update. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the ShortCode resource to update | **optional** | ***UpdateShortCodeOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -8380,12 +8380,12 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiVersion** | **optional.String**| The API version to use to start a new TwiML session. Can be: `2010-04-01` or `2008-08-01`. | - **friendlyName** | **optional.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. | - **smsFallbackMethod** | **optional.String**| The HTTP method that we should use to call the `sms_fallback_url`. Can be: `GET` or `POST`. | - **smsFallbackUrl** | **optional.String**| The URL that we should call if an error occurs while retrieving or executing the TwiML from `sms_url`. | - **smsMethod** | **optional.String**| The HTTP method we should use when calling the `sms_url`. Can be: `GET` or `POST`. | - **smsUrl** | **optional.String**| The URL we should call when receiving an incoming SMS message to this short code. | + **ApiVersion** | **optional.String**| The API version to use to start a new TwiML session. Can be: `2010-04-01` or `2008-08-01`. | + **FriendlyName** | **optional.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. | + **SmsFallbackMethod** | **optional.String**| The HTTP method that we should use to call the `sms_fallback_url`. Can be: `GET` or `POST`. | + **SmsFallbackUrl** | **optional.String**| The URL that we should call if an error occurs while retrieving or executing the TwiML from `sms_url`. | + **SmsMethod** | **optional.String**| The HTTP method we should use when calling the `sms_url`. Can be: `GET` or `POST`. | + **SmsUrl** | **optional.String**| The URL we should call when receiving an incoming SMS message to this short code. | ### Return type @@ -8407,7 +8407,7 @@ Name | Type | Description | Notes ## UpdateSigningKey -> ApiV2010AccountSigningKey UpdateSigningKey(ctx, accountSid, sid, optional) +> ApiV2010AccountSigningKey UpdateSigningKey(ctx, AccountSid, Sid, optional) @@ -8417,8 +8417,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| | -**sid** | **string**| | +**AccountSid** | **string**| | +**Sid** | **string**| | **optional** | ***UpdateSigningKeyOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -8430,7 +8430,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| | + **FriendlyName** | **optional.String**| | ### Return type @@ -8452,7 +8452,7 @@ Name | Type | Description | Notes ## UpdateSipCredential -> ApiV2010AccountSipSipCredentialListSipCredential UpdateSipCredential(ctx, accountSid, credentialListSid, sid, optional) +> ApiV2010AccountSipSipCredentialListSipCredential UpdateSipCredential(ctx, AccountSid, CredentialListSid, Sid, optional) @@ -8464,9 +8464,9 @@ Update a credential resource. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The unique id of the Account that is responsible for this resource. | -**credentialListSid** | **string**| The unique id that identifies the credential list that includes this credential. | -**sid** | **string**| The unique id that identifies the resource to update. | +**AccountSid** | **string**| The unique id of the Account that is responsible for this resource. | +**CredentialListSid** | **string**| The unique id that identifies the credential list that includes this credential. | +**Sid** | **string**| The unique id that identifies the resource to update. | **optional** | ***UpdateSipCredentialOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -8479,7 +8479,7 @@ Name | Type | Description | Notes - **password** | **optional.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`) | + **Password** | **optional.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 @@ -8501,7 +8501,7 @@ Name | Type | Description | Notes ## UpdateSipCredentialList -> ApiV2010AccountSipSipCredentialList UpdateSipCredentialList(ctx, accountSid, sid, optional) +> ApiV2010AccountSipSipCredentialList UpdateSipCredentialList(ctx, AccountSid, Sid, optional) @@ -8513,8 +8513,8 @@ Update a Credential List Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The unique id of the Account that is responsible for this resource. | -**sid** | **string**| The credential list Sid that uniquely identifies this resource | +**AccountSid** | **string**| The unique id of the Account that is responsible for this resource. | +**Sid** | **string**| The credential list Sid that uniquely identifies this resource | **optional** | ***UpdateSipCredentialListOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -8526,7 +8526,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| A human readable descriptive text for a CredentialList, up to 64 characters long. | + **FriendlyName** | **optional.String**| A human readable descriptive text for a CredentialList, up to 64 characters long. | ### Return type @@ -8548,7 +8548,7 @@ Name | Type | Description | Notes ## UpdateSipDomain -> ApiV2010AccountSipSipDomain UpdateSipDomain(ctx, accountSid, sid, optional) +> ApiV2010AccountSipSipDomain UpdateSipDomain(ctx, AccountSid, Sid, optional) @@ -8560,8 +8560,8 @@ Update the attributes of a domain Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resource to update. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the SipDomain resource to update. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resource to update. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the SipDomain resource to update. | **optional** | ***UpdateSipDomainOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -8573,19 +8573,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **byocTrunkSid** | **optional.String**| The SID of the BYOC Trunk(Bring Your Own Carrier) resource that the Sip Domain will be associated with. | - **domainName** | **optional.String**| The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and \\\"-\\\". | - **emergencyCallerSid** | **optional.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. | - **emergencyCallingEnabled** | **optional.Bool**| Whether emergency calling is enabled for the domain. If enabled, allows emergency calls on the domain from phone numbers with validated addresses. | - **friendlyName** | **optional.String**| A descriptive string that you created to describe the resource. It can be up to 64 characters long. | - **secure** | **optional.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. | - **sipRegistration** | **optional.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. | - **voiceFallbackMethod** | **optional.String**| The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. | - **voiceFallbackUrl** | **optional.String**| The URL that we should call when an error occurs while retrieving or executing the TwiML requested by `voice_url`. | - **voiceMethod** | **optional.String**| The HTTP method we should use to call `voice_url` | - **voiceStatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `voice_status_callback_url`. Can be: `GET` or `POST`. | - **voiceStatusCallbackUrl** | **optional.String**| The URL that we should call to pass status parameters (such as call ended) to your application. | - **voiceUrl** | **optional.String**| The URL we should call when the domain receives a call. | + **ByocTrunkSid** | **optional.String**| The SID of the BYOC Trunk(Bring Your Own Carrier) resource that the Sip Domain will be associated with. | + **DomainName** | **optional.String**| The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and \\\"-\\\". | + **EmergencyCallerSid** | **optional.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. | + **EmergencyCallingEnabled** | **optional.Bool**| Whether emergency calling is enabled for the domain. If enabled, allows emergency calls on the domain from phone numbers with validated addresses. | + **FriendlyName** | **optional.String**| A descriptive string that you created to describe the resource. It can be up to 64 characters long. | + **Secure** | **optional.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. | + **SipRegistration** | **optional.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. | + **VoiceFallbackMethod** | **optional.String**| The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. | + **VoiceFallbackUrl** | **optional.String**| The URL that we should call when an error occurs while retrieving or executing the TwiML requested by `voice_url`. | + **VoiceMethod** | **optional.String**| The HTTP method we should use to call `voice_url` | + **VoiceStatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `voice_status_callback_url`. Can be: `GET` or `POST`. | + **VoiceStatusCallbackUrl** | **optional.String**| The URL that we should call to pass status parameters (such as call ended) to your application. | + **VoiceUrl** | **optional.String**| The URL we should call when the domain receives a call. | ### Return type @@ -8607,7 +8607,7 @@ Name | Type | Description | Notes ## UpdateSipIpAccessControlList -> ApiV2010AccountSipSipIpAccessControlList UpdateSipIpAccessControlList(ctx, accountSid, sid, optional) +> ApiV2010AccountSipSipIpAccessControlList UpdateSipIpAccessControlList(ctx, AccountSid, Sid, optional) @@ -8619,8 +8619,8 @@ Rename an IpAccessControlList Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | -**sid** | **string**| A 34 character string that uniquely identifies the resource to udpate. | +**AccountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | +**Sid** | **string**| A 34 character string that uniquely identifies the resource to udpate. | **optional** | ***UpdateSipIpAccessControlListOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -8632,7 +8632,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| A human readable descriptive text, up to 64 characters long. | + **FriendlyName** | **optional.String**| A human readable descriptive text, up to 64 characters long. | ### Return type @@ -8654,7 +8654,7 @@ Name | Type | Description | Notes ## UpdateSipIpAddress -> ApiV2010AccountSipSipIpAccessControlListSipIpAddress UpdateSipIpAddress(ctx, accountSid, ipAccessControlListSid, sid, optional) +> ApiV2010AccountSipSipIpAccessControlListSipIpAddress UpdateSipIpAddress(ctx, AccountSid, IpAccessControlListSid, Sid, optional) @@ -8666,9 +8666,9 @@ Update an IpAddress resource. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | -**ipAccessControlListSid** | **string**| The IpAccessControlList Sid that identifies the IpAddress resources to update. | -**sid** | **string**| A 34 character string that identifies the IpAddress resource to update. | +**AccountSid** | **string**| The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. | +**IpAccessControlListSid** | **string**| The IpAccessControlList Sid that identifies the IpAddress resources to update. | +**Sid** | **string**| A 34 character string that identifies the IpAddress resource to update. | **optional** | ***UpdateSipIpAddressOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -8681,9 +8681,9 @@ Name | Type | Description | Notes - **cidrPrefixLength** | **optional.Int32**| 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. | - **friendlyName** | **optional.String**| A human readable descriptive text for this resource, up to 64 characters long. | - **ipAddress** | **optional.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. | + **CidrPrefixLength** | **optional.Int32**| 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. | + **FriendlyName** | **optional.String**| A human readable descriptive text for this resource, up to 64 characters long. | + **IpAddress** | **optional.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. | ### Return type @@ -8705,7 +8705,7 @@ Name | Type | Description | Notes ## UpdateUsageTrigger -> ApiV2010AccountUsageUsageTrigger UpdateUsageTrigger(ctx, accountSid, sid, optional) +> ApiV2010AccountUsageUsageTrigger UpdateUsageTrigger(ctx, AccountSid, Sid, optional) @@ -8717,8 +8717,8 @@ Update an instance of a usage trigger Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resources to update. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the UsageTrigger resource to update. | +**AccountSid** | **string**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the UsageTrigger resources to update. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the UsageTrigger resource to update. | **optional** | ***UpdateUsageTriggerOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -8730,9 +8730,9 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **callbackMethod** | **optional.String**| The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is `POST`. | - **callbackUrl** | **optional.String**| The URL we should call using `callback_method` when the trigger fires. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **CallbackMethod** | **optional.String**| The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is `POST`. | + **CallbackUrl** | **optional.String**| The URL we should call using `callback_method` when the trigger fires. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | ### Return type diff --git a/rest/api/v2010/model_api_v2010_account.go b/rest/api/v2010/model_api_v2010_account.go index dc709e9c3..f9cc968ec 100644 --- a/rest/api/v2010/model_api_v2010_account.go +++ b/rest/api/v2010/model_api_v2010_account.go @@ -11,14 +11,14 @@ package openapi // ApiV2010Account struct for ApiV2010Account type ApiV2010Account struct { - AuthToken string `json:"auth_token,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - OwnerAccountSid string `json:"owner_account_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` - Type string `json:"type,omitempty"` - Uri string `json:"uri,omitempty"` + AuthToken string `json:"AuthToken,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + OwnerAccountSid string `json:"OwnerAccountSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Status string `json:"Status,omitempty"` + SubresourceUris map[string]interface{} `json:"SubresourceUris,omitempty"` + Type string `json:"Type,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_address.go b/rest/api/v2010/model_api_v2010_account_address.go index 607dc0199..8049a3679 100644 --- a/rest/api/v2010/model_api_v2010_account_address.go +++ b/rest/api/v2010/model_api_v2010_account_address.go @@ -11,19 +11,19 @@ package openapi // ApiV2010AccountAddress struct for ApiV2010AccountAddress type ApiV2010AccountAddress struct { - AccountSid string `json:"account_sid,omitempty"` - City string `json:"city,omitempty"` - CustomerName string `json:"customer_name,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - EmergencyEnabled bool `json:"emergency_enabled,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - IsoCountry string `json:"iso_country,omitempty"` - PostalCode string `json:"postal_code,omitempty"` - Region string `json:"region,omitempty"` - Sid string `json:"sid,omitempty"` - Street string `json:"street,omitempty"` - Uri string `json:"uri,omitempty"` - Validated bool `json:"validated,omitempty"` - Verified bool `json:"verified,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + City string `json:"City,omitempty"` + CustomerName string `json:"CustomerName,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + EmergencyEnabled bool `json:"EmergencyEnabled,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + IsoCountry string `json:"IsoCountry,omitempty"` + PostalCode string `json:"PostalCode,omitempty"` + Region string `json:"Region,omitempty"` + Sid string `json:"Sid,omitempty"` + Street string `json:"Street,omitempty"` + Uri string `json:"Uri,omitempty"` + Validated bool `json:"Validated,omitempty"` + Verified bool `json:"Verified,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_address_dependent_phone_number.go b/rest/api/v2010/model_api_v2010_account_address_dependent_phone_number.go index ad436f1f1..51e0a2e98 100644 --- a/rest/api/v2010/model_api_v2010_account_address_dependent_phone_number.go +++ b/rest/api/v2010/model_api_v2010_account_address_dependent_phone_number.go @@ -11,30 +11,30 @@ package openapi // ApiV2010AccountAddressDependentPhoneNumber struct for ApiV2010AccountAddressDependentPhoneNumber type ApiV2010AccountAddressDependentPhoneNumber struct { - AccountSid string `json:"account_sid,omitempty"` - AddressRequirements string `json:"address_requirements,omitempty"` - ApiVersion string `json:"api_version,omitempty"` - Capabilities map[string]interface{} `json:"capabilities,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - EmergencyAddressSid string `json:"emergency_address_sid,omitempty"` - EmergencyStatus string `json:"emergency_status,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - PhoneNumber string `json:"phone_number,omitempty"` - Sid string `json:"sid,omitempty"` - SmsApplicationSid string `json:"sms_application_sid,omitempty"` - SmsFallbackMethod string `json:"sms_fallback_method,omitempty"` - SmsFallbackUrl string `json:"sms_fallback_url,omitempty"` - SmsMethod string `json:"sms_method,omitempty"` - SmsUrl string `json:"sms_url,omitempty"` - StatusCallback string `json:"status_callback,omitempty"` - StatusCallbackMethod string `json:"status_callback_method,omitempty"` - TrunkSid string `json:"trunk_sid,omitempty"` - Uri string `json:"uri,omitempty"` - VoiceApplicationSid string `json:"voice_application_sid,omitempty"` - VoiceCallerIdLookup bool `json:"voice_caller_id_lookup,omitempty"` - VoiceFallbackMethod string `json:"voice_fallback_method,omitempty"` - VoiceFallbackUrl string `json:"voice_fallback_url,omitempty"` - VoiceMethod string `json:"voice_method,omitempty"` - VoiceUrl string `json:"voice_url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AddressRequirements string `json:"AddressRequirements,omitempty"` + ApiVersion string `json:"ApiVersion,omitempty"` + Capabilities map[string]interface{} `json:"Capabilities,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + EmergencyAddressSid string `json:"EmergencyAddressSid,omitempty"` + EmergencyStatus string `json:"EmergencyStatus,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + PhoneNumber string `json:"PhoneNumber,omitempty"` + Sid string `json:"Sid,omitempty"` + SmsApplicationSid string `json:"SmsApplicationSid,omitempty"` + SmsFallbackMethod string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl string `json:"SmsFallbackUrl,omitempty"` + SmsMethod string `json:"SmsMethod,omitempty"` + SmsUrl string `json:"SmsUrl,omitempty"` + StatusCallback string `json:"StatusCallback,omitempty"` + StatusCallbackMethod string `json:"StatusCallbackMethod,omitempty"` + TrunkSid string `json:"TrunkSid,omitempty"` + Uri string `json:"Uri,omitempty"` + VoiceApplicationSid string `json:"VoiceApplicationSid,omitempty"` + VoiceCallerIdLookup bool `json:"VoiceCallerIdLookup,omitempty"` + VoiceFallbackMethod string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod string `json:"VoiceMethod,omitempty"` + VoiceUrl string `json:"VoiceUrl,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_address_dependent_phone_number_read_response.go b/rest/api/v2010/model_api_v2010_account_address_dependent_phone_number_read_response.go index 5573cb6f8..a633166b5 100644 --- a/rest/api/v2010/model_api_v2010_account_address_dependent_phone_number_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_address_dependent_phone_number_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountAddressDependentPhoneNumberReadResponse struct for ApiV2010AccountAddressDependentPhoneNumberReadResponse type ApiV2010AccountAddressDependentPhoneNumberReadResponse struct { - DependentPhoneNumbers []ApiV2010AccountAddressDependentPhoneNumber `json:"dependent_phone_numbers,omitempty"` - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + DependentPhoneNumbers []ApiV2010AccountAddressDependentPhoneNumber `json:"DependentPhoneNumbers,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_address_read_response.go b/rest/api/v2010/model_api_v2010_account_address_read_response.go index b4ace4b1c..d865474b2 100644 --- a/rest/api/v2010/model_api_v2010_account_address_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_address_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountAddressReadResponse struct for ApiV2010AccountAddressReadResponse type ApiV2010AccountAddressReadResponse struct { - Addresses []ApiV2010AccountAddress `json:"addresses,omitempty"` - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + Addresses []ApiV2010AccountAddress `json:"Addresses,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_application.go b/rest/api/v2010/model_api_v2010_account_application.go index 79cf5efad..e0e456af4 100644 --- a/rest/api/v2010/model_api_v2010_account_application.go +++ b/rest/api/v2010/model_api_v2010_account_application.go @@ -11,24 +11,24 @@ package openapi // ApiV2010AccountApplication struct for ApiV2010AccountApplication type ApiV2010AccountApplication struct { - AccountSid string `json:"account_sid,omitempty"` - ApiVersion string `json:"api_version,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - MessageStatusCallback string `json:"message_status_callback,omitempty"` - Sid string `json:"sid,omitempty"` - SmsFallbackMethod string `json:"sms_fallback_method,omitempty"` - SmsFallbackUrl string `json:"sms_fallback_url,omitempty"` - SmsMethod string `json:"sms_method,omitempty"` - SmsStatusCallback string `json:"sms_status_callback,omitempty"` - SmsUrl string `json:"sms_url,omitempty"` - StatusCallback string `json:"status_callback,omitempty"` - StatusCallbackMethod string `json:"status_callback_method,omitempty"` - Uri string `json:"uri,omitempty"` - VoiceCallerIdLookup bool `json:"voice_caller_id_lookup,omitempty"` - VoiceFallbackMethod string `json:"voice_fallback_method,omitempty"` - VoiceFallbackUrl string `json:"voice_fallback_url,omitempty"` - VoiceMethod string `json:"voice_method,omitempty"` - VoiceUrl string `json:"voice_url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ApiVersion string `json:"ApiVersion,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + MessageStatusCallback string `json:"MessageStatusCallback,omitempty"` + Sid string `json:"Sid,omitempty"` + SmsFallbackMethod string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl string `json:"SmsFallbackUrl,omitempty"` + SmsMethod string `json:"SmsMethod,omitempty"` + SmsStatusCallback string `json:"SmsStatusCallback,omitempty"` + SmsUrl string `json:"SmsUrl,omitempty"` + StatusCallback string `json:"StatusCallback,omitempty"` + StatusCallbackMethod string `json:"StatusCallbackMethod,omitempty"` + Uri string `json:"Uri,omitempty"` + VoiceCallerIdLookup bool `json:"VoiceCallerIdLookup,omitempty"` + VoiceFallbackMethod string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod string `json:"VoiceMethod,omitempty"` + VoiceUrl string `json:"VoiceUrl,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_application_read_response.go b/rest/api/v2010/model_api_v2010_account_application_read_response.go index 8da786e8a..c2374c8eb 100644 --- a/rest/api/v2010/model_api_v2010_account_application_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_application_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountApplicationReadResponse struct for ApiV2010AccountApplicationReadResponse type ApiV2010AccountApplicationReadResponse struct { - Applications []ApiV2010AccountApplication `json:"applications,omitempty"` - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + Applications []ApiV2010AccountApplication `json:"Applications,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_authorized_connect_app.go b/rest/api/v2010/model_api_v2010_account_authorized_connect_app.go index 88e2592b2..79350e512 100644 --- a/rest/api/v2010/model_api_v2010_account_authorized_connect_app.go +++ b/rest/api/v2010/model_api_v2010_account_authorized_connect_app.go @@ -11,14 +11,14 @@ package openapi // ApiV2010AccountAuthorizedConnectApp struct for ApiV2010AccountAuthorizedConnectApp type ApiV2010AccountAuthorizedConnectApp struct { - AccountSid string `json:"account_sid,omitempty"` - ConnectAppCompanyName string `json:"connect_app_company_name,omitempty"` - ConnectAppDescription string `json:"connect_app_description,omitempty"` - ConnectAppFriendlyName string `json:"connect_app_friendly_name,omitempty"` - ConnectAppHomepageUrl string `json:"connect_app_homepage_url,omitempty"` - ConnectAppSid string `json:"connect_app_sid,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - Permissions []string `json:"permissions,omitempty"` - Uri string `json:"uri,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ConnectAppCompanyName string `json:"ConnectAppCompanyName,omitempty"` + ConnectAppDescription string `json:"ConnectAppDescription,omitempty"` + ConnectAppFriendlyName string `json:"ConnectAppFriendlyName,omitempty"` + ConnectAppHomepageUrl string `json:"ConnectAppHomepageUrl,omitempty"` + ConnectAppSid string `json:"ConnectAppSid,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + Permissions []string `json:"Permissions,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_authorized_connect_app_read_response.go b/rest/api/v2010/model_api_v2010_account_authorized_connect_app_read_response.go index c1172d9fa..1c2931c7d 100644 --- a/rest/api/v2010/model_api_v2010_account_authorized_connect_app_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_authorized_connect_app_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountAuthorizedConnectAppReadResponse struct for ApiV2010AccountAuthorizedConnectAppReadResponse type ApiV2010AccountAuthorizedConnectAppReadResponse struct { - AuthorizedConnectApps []ApiV2010AccountAuthorizedConnectApp `json:"authorized_connect_apps,omitempty"` - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + AuthorizedConnectApps []ApiV2010AccountAuthorizedConnectApp `json:"AuthorizedConnectApps,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country.go index 09b0d7d71..dfd58bf51 100644 --- a/rest/api/v2010/model_api_v2010_account_available_phone_number_country.go +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country.go @@ -11,9 +11,9 @@ package openapi // ApiV2010AccountAvailablePhoneNumberCountry struct for ApiV2010AccountAvailablePhoneNumberCountry type ApiV2010AccountAvailablePhoneNumberCountry struct { - Beta bool `json:"beta,omitempty"` - Country string `json:"country,omitempty"` - CountryCode string `json:"country_code,omitempty"` - SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` - Uri string `json:"uri,omitempty"` + Beta bool `json:"Beta,omitempty"` + Country string `json:"Country,omitempty"` + CountryCode string `json:"CountryCode,omitempty"` + SubresourceUris map[string]interface{} `json:"SubresourceUris,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_local.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_local.go index b35e7c874..79fa799ed 100644 --- a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_local.go +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_local.go @@ -11,17 +11,17 @@ package openapi // ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocal struct for ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocal type ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocal struct { - AddressRequirements string `json:"address_requirements,omitempty"` - Beta bool `json:"beta,omitempty"` - Capabilities map[string]interface{} `json:"capabilities,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - IsoCountry string `json:"iso_country,omitempty"` - Lata string `json:"lata,omitempty"` - Latitude float32 `json:"latitude,omitempty"` - Locality string `json:"locality,omitempty"` - Longitude float32 `json:"longitude,omitempty"` - PhoneNumber string `json:"phone_number,omitempty"` - PostalCode string `json:"postal_code,omitempty"` - RateCenter string `json:"rate_center,omitempty"` - Region string `json:"region,omitempty"` + AddressRequirements string `json:"AddressRequirements,omitempty"` + Beta bool `json:"Beta,omitempty"` + Capabilities map[string]interface{} `json:"Capabilities,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + IsoCountry string `json:"IsoCountry,omitempty"` + Lata string `json:"Lata,omitempty"` + Latitude float32 `json:"Latitude,omitempty"` + Locality string `json:"Locality,omitempty"` + Longitude float32 `json:"Longitude,omitempty"` + PhoneNumber string `json:"PhoneNumber,omitempty"` + PostalCode string `json:"PostalCode,omitempty"` + RateCenter string `json:"RateCenter,omitempty"` + Region string `json:"Region,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_local_read_response.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_local_read_response.go index c6426d51c..953ac5dc3 100644 --- a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_local_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_local_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse struct for ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse type ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse struct { - AvailablePhoneNumbers []ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocal `json:"available_phone_numbers,omitempty"` - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + AvailablePhoneNumbers []ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocal `json:"AvailablePhoneNumbers,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_machine_to_machine.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_machine_to_machine.go index e478362e5..1fa84b639 100644 --- a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_machine_to_machine.go +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_machine_to_machine.go @@ -11,17 +11,17 @@ package openapi // ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachine struct for ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachine type ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachine struct { - AddressRequirements string `json:"address_requirements,omitempty"` - Beta bool `json:"beta,omitempty"` - Capabilities map[string]interface{} `json:"capabilities,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - IsoCountry string `json:"iso_country,omitempty"` - Lata string `json:"lata,omitempty"` - Latitude float32 `json:"latitude,omitempty"` - Locality string `json:"locality,omitempty"` - Longitude float32 `json:"longitude,omitempty"` - PhoneNumber string `json:"phone_number,omitempty"` - PostalCode string `json:"postal_code,omitempty"` - RateCenter string `json:"rate_center,omitempty"` - Region string `json:"region,omitempty"` + AddressRequirements string `json:"AddressRequirements,omitempty"` + Beta bool `json:"Beta,omitempty"` + Capabilities map[string]interface{} `json:"Capabilities,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + IsoCountry string `json:"IsoCountry,omitempty"` + Lata string `json:"Lata,omitempty"` + Latitude float32 `json:"Latitude,omitempty"` + Locality string `json:"Locality,omitempty"` + Longitude float32 `json:"Longitude,omitempty"` + PhoneNumber string `json:"PhoneNumber,omitempty"` + PostalCode string `json:"PostalCode,omitempty"` + RateCenter string `json:"RateCenter,omitempty"` + Region string `json:"Region,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_machine_to_machine_read_response.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_machine_to_machine_read_response.go index 4df08a68d..7a8b4d7f3 100644 --- a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_machine_to_machine_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_machine_to_machine_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse struct for ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse type ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse struct { - AvailablePhoneNumbers []ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachine `json:"available_phone_numbers,omitempty"` - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + AvailablePhoneNumbers []ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachine `json:"AvailablePhoneNumbers,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_mobile.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_mobile.go index a42894fe1..48bf51f72 100644 --- a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_mobile.go +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_mobile.go @@ -11,17 +11,17 @@ package openapi // ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobile struct for ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobile type ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobile struct { - AddressRequirements string `json:"address_requirements,omitempty"` - Beta bool `json:"beta,omitempty"` - Capabilities map[string]interface{} `json:"capabilities,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - IsoCountry string `json:"iso_country,omitempty"` - Lata string `json:"lata,omitempty"` - Latitude float32 `json:"latitude,omitempty"` - Locality string `json:"locality,omitempty"` - Longitude float32 `json:"longitude,omitempty"` - PhoneNumber string `json:"phone_number,omitempty"` - PostalCode string `json:"postal_code,omitempty"` - RateCenter string `json:"rate_center,omitempty"` - Region string `json:"region,omitempty"` + AddressRequirements string `json:"AddressRequirements,omitempty"` + Beta bool `json:"Beta,omitempty"` + Capabilities map[string]interface{} `json:"Capabilities,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + IsoCountry string `json:"IsoCountry,omitempty"` + Lata string `json:"Lata,omitempty"` + Latitude float32 `json:"Latitude,omitempty"` + Locality string `json:"Locality,omitempty"` + Longitude float32 `json:"Longitude,omitempty"` + PhoneNumber string `json:"PhoneNumber,omitempty"` + PostalCode string `json:"PostalCode,omitempty"` + RateCenter string `json:"RateCenter,omitempty"` + Region string `json:"Region,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_mobile_read_response.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_mobile_read_response.go index 192c4fb06..2e1a99df5 100644 --- a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_mobile_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_mobile_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse struct for ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse type ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse struct { - AvailablePhoneNumbers []ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobile `json:"available_phone_numbers,omitempty"` - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + AvailablePhoneNumbers []ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobile `json:"AvailablePhoneNumbers,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_national.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_national.go index a4152549c..733f3a3c7 100644 --- a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_national.go +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_national.go @@ -11,17 +11,17 @@ package openapi // ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNational struct for ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNational type ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNational struct { - AddressRequirements string `json:"address_requirements,omitempty"` - Beta bool `json:"beta,omitempty"` - Capabilities map[string]interface{} `json:"capabilities,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - IsoCountry string `json:"iso_country,omitempty"` - Lata string `json:"lata,omitempty"` - Latitude float32 `json:"latitude,omitempty"` - Locality string `json:"locality,omitempty"` - Longitude float32 `json:"longitude,omitempty"` - PhoneNumber string `json:"phone_number,omitempty"` - PostalCode string `json:"postal_code,omitempty"` - RateCenter string `json:"rate_center,omitempty"` - Region string `json:"region,omitempty"` + AddressRequirements string `json:"AddressRequirements,omitempty"` + Beta bool `json:"Beta,omitempty"` + Capabilities map[string]interface{} `json:"Capabilities,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + IsoCountry string `json:"IsoCountry,omitempty"` + Lata string `json:"Lata,omitempty"` + Latitude float32 `json:"Latitude,omitempty"` + Locality string `json:"Locality,omitempty"` + Longitude float32 `json:"Longitude,omitempty"` + PhoneNumber string `json:"PhoneNumber,omitempty"` + PostalCode string `json:"PostalCode,omitempty"` + RateCenter string `json:"RateCenter,omitempty"` + Region string `json:"Region,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_national_read_response.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_national_read_response.go index 9a51ccf45..3a533a76d 100644 --- a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_national_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_national_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse struct for ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse type ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse struct { - AvailablePhoneNumbers []ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNational `json:"available_phone_numbers,omitempty"` - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + AvailablePhoneNumbers []ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNational `json:"AvailablePhoneNumbers,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_shared_cost.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_shared_cost.go index c088bc9bc..bcc22c8c3 100644 --- a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_shared_cost.go +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_shared_cost.go @@ -11,17 +11,17 @@ package openapi // ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCost struct for ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCost type ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCost struct { - AddressRequirements string `json:"address_requirements,omitempty"` - Beta bool `json:"beta,omitempty"` - Capabilities map[string]interface{} `json:"capabilities,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - IsoCountry string `json:"iso_country,omitempty"` - Lata string `json:"lata,omitempty"` - Latitude float32 `json:"latitude,omitempty"` - Locality string `json:"locality,omitempty"` - Longitude float32 `json:"longitude,omitempty"` - PhoneNumber string `json:"phone_number,omitempty"` - PostalCode string `json:"postal_code,omitempty"` - RateCenter string `json:"rate_center,omitempty"` - Region string `json:"region,omitempty"` + AddressRequirements string `json:"AddressRequirements,omitempty"` + Beta bool `json:"Beta,omitempty"` + Capabilities map[string]interface{} `json:"Capabilities,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + IsoCountry string `json:"IsoCountry,omitempty"` + Lata string `json:"Lata,omitempty"` + Latitude float32 `json:"Latitude,omitempty"` + Locality string `json:"Locality,omitempty"` + Longitude float32 `json:"Longitude,omitempty"` + PhoneNumber string `json:"PhoneNumber,omitempty"` + PostalCode string `json:"PostalCode,omitempty"` + RateCenter string `json:"RateCenter,omitempty"` + Region string `json:"Region,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_shared_cost_read_response.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_shared_cost_read_response.go index 806b29422..a1cf8b6b4 100644 --- a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_shared_cost_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_shared_cost_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse struct for ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse type ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse struct { - AvailablePhoneNumbers []ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCost `json:"available_phone_numbers,omitempty"` - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + AvailablePhoneNumbers []ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCost `json:"AvailablePhoneNumbers,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_toll_free.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_toll_free.go index 977b3e716..9c0613a55 100644 --- a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_toll_free.go +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_toll_free.go @@ -11,17 +11,17 @@ package openapi // ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFree struct for ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFree type ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFree struct { - AddressRequirements string `json:"address_requirements,omitempty"` - Beta bool `json:"beta,omitempty"` - Capabilities map[string]interface{} `json:"capabilities,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - IsoCountry string `json:"iso_country,omitempty"` - Lata string `json:"lata,omitempty"` - Latitude float32 `json:"latitude,omitempty"` - Locality string `json:"locality,omitempty"` - Longitude float32 `json:"longitude,omitempty"` - PhoneNumber string `json:"phone_number,omitempty"` - PostalCode string `json:"postal_code,omitempty"` - RateCenter string `json:"rate_center,omitempty"` - Region string `json:"region,omitempty"` + AddressRequirements string `json:"AddressRequirements,omitempty"` + Beta bool `json:"Beta,omitempty"` + Capabilities map[string]interface{} `json:"Capabilities,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + IsoCountry string `json:"IsoCountry,omitempty"` + Lata string `json:"Lata,omitempty"` + Latitude float32 `json:"Latitude,omitempty"` + Locality string `json:"Locality,omitempty"` + Longitude float32 `json:"Longitude,omitempty"` + PhoneNumber string `json:"PhoneNumber,omitempty"` + PostalCode string `json:"PostalCode,omitempty"` + RateCenter string `json:"RateCenter,omitempty"` + Region string `json:"Region,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_toll_free_read_response.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_toll_free_read_response.go index fa35aa81e..bca283de9 100644 --- a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_toll_free_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_toll_free_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse struct for ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse type ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse struct { - AvailablePhoneNumbers []ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFree `json:"available_phone_numbers,omitempty"` - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + AvailablePhoneNumbers []ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFree `json:"AvailablePhoneNumbers,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_voip.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_voip.go index 7313eecaa..60acb4c7b 100644 --- a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_voip.go +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_voip.go @@ -11,17 +11,17 @@ package openapi // ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoip struct for ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoip type ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoip struct { - AddressRequirements string `json:"address_requirements,omitempty"` - Beta bool `json:"beta,omitempty"` - Capabilities map[string]interface{} `json:"capabilities,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - IsoCountry string `json:"iso_country,omitempty"` - Lata string `json:"lata,omitempty"` - Latitude float32 `json:"latitude,omitempty"` - Locality string `json:"locality,omitempty"` - Longitude float32 `json:"longitude,omitempty"` - PhoneNumber string `json:"phone_number,omitempty"` - PostalCode string `json:"postal_code,omitempty"` - RateCenter string `json:"rate_center,omitempty"` - Region string `json:"region,omitempty"` + AddressRequirements string `json:"AddressRequirements,omitempty"` + Beta bool `json:"Beta,omitempty"` + Capabilities map[string]interface{} `json:"Capabilities,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + IsoCountry string `json:"IsoCountry,omitempty"` + Lata string `json:"Lata,omitempty"` + Latitude float32 `json:"Latitude,omitempty"` + Locality string `json:"Locality,omitempty"` + Longitude float32 `json:"Longitude,omitempty"` + PhoneNumber string `json:"PhoneNumber,omitempty"` + PostalCode string `json:"PostalCode,omitempty"` + RateCenter string `json:"RateCenter,omitempty"` + Region string `json:"Region,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_voip_read_response.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_voip_read_response.go index 03022c7a1..79474a628 100644 --- a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_voip_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_voip_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse struct for ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse type ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse struct { - AvailablePhoneNumbers []ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoip `json:"available_phone_numbers,omitempty"` - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + AvailablePhoneNumbers []ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoip `json:"AvailablePhoneNumbers,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_read_response.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_read_response.go index 898d31016..7a1525af8 100644 --- a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountAvailablePhoneNumberCountryReadResponse struct for ApiV2010AccountAvailablePhoneNumberCountryReadResponse type ApiV2010AccountAvailablePhoneNumberCountryReadResponse struct { - Countries []ApiV2010AccountAvailablePhoneNumberCountry `json:"countries,omitempty"` - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + Countries []ApiV2010AccountAvailablePhoneNumberCountry `json:"Countries,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_balance.go b/rest/api/v2010/model_api_v2010_account_balance.go index ca02baf68..5e06184bf 100644 --- a/rest/api/v2010/model_api_v2010_account_balance.go +++ b/rest/api/v2010/model_api_v2010_account_balance.go @@ -11,7 +11,7 @@ package openapi // ApiV2010AccountBalance struct for ApiV2010AccountBalance type ApiV2010AccountBalance struct { - AccountSid string `json:"account_sid,omitempty"` - Balance string `json:"balance,omitempty"` - Currency string `json:"currency,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Balance string `json:"Balance,omitempty"` + Currency string `json:"Currency,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_call.go b/rest/api/v2010/model_api_v2010_account_call.go index d2601daaa..ac2b280c0 100644 --- a/rest/api/v2010/model_api_v2010_account_call.go +++ b/rest/api/v2010/model_api_v2010_account_call.go @@ -11,31 +11,31 @@ package openapi // ApiV2010AccountCall struct for ApiV2010AccountCall type ApiV2010AccountCall struct { - AccountSid string `json:"account_sid,omitempty"` - Annotation string `json:"annotation,omitempty"` - AnsweredBy string `json:"answered_by,omitempty"` - ApiVersion string `json:"api_version,omitempty"` - CallerName string `json:"caller_name,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - Direction *string `json:"direction,omitempty"` - Duration string `json:"duration,omitempty"` - EndTime string `json:"end_time,omitempty"` - ForwardedFrom string `json:"forwarded_from,omitempty"` - From string `json:"from,omitempty"` - FromFormatted string `json:"from_formatted,omitempty"` - GroupSid string `json:"group_sid,omitempty"` - ParentCallSid string `json:"parent_call_sid,omitempty"` - PhoneNumberSid string `json:"phone_number_sid,omitempty"` - Price *string `json:"price,omitempty"` - PriceUnit string `json:"price_unit,omitempty"` - QueueTime string `json:"queue_time,omitempty"` - Sid string `json:"sid,omitempty"` - StartTime string `json:"start_time,omitempty"` - Status string `json:"status,omitempty"` - SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` - To string `json:"to,omitempty"` - ToFormatted string `json:"to_formatted,omitempty"` - TrunkSid string `json:"trunk_sid,omitempty"` - Uri string `json:"uri,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Annotation string `json:"Annotation,omitempty"` + AnsweredBy string `json:"AnsweredBy,omitempty"` + ApiVersion string `json:"ApiVersion,omitempty"` + CallerName string `json:"CallerName,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + Direction *string `json:"Direction,omitempty"` + Duration string `json:"Duration,omitempty"` + EndTime string `json:"EndTime,omitempty"` + ForwardedFrom string `json:"ForwardedFrom,omitempty"` + From string `json:"From,omitempty"` + FromFormatted string `json:"FromFormatted,omitempty"` + GroupSid string `json:"GroupSid,omitempty"` + ParentCallSid string `json:"ParentCallSid,omitempty"` + PhoneNumberSid string `json:"PhoneNumberSid,omitempty"` + Price *string `json:"Price,omitempty"` + PriceUnit string `json:"PriceUnit,omitempty"` + QueueTime string `json:"QueueTime,omitempty"` + Sid string `json:"Sid,omitempty"` + StartTime string `json:"StartTime,omitempty"` + Status string `json:"Status,omitempty"` + SubresourceUris map[string]interface{} `json:"SubresourceUris,omitempty"` + To string `json:"To,omitempty"` + ToFormatted string `json:"ToFormatted,omitempty"` + TrunkSid string `json:"TrunkSid,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_call_call_event.go b/rest/api/v2010/model_api_v2010_account_call_call_event.go index 0ec3a3b91..5dc01853c 100644 --- a/rest/api/v2010/model_api_v2010_account_call_call_event.go +++ b/rest/api/v2010/model_api_v2010_account_call_call_event.go @@ -11,6 +11,6 @@ package openapi // ApiV2010AccountCallCallEvent struct for ApiV2010AccountCallCallEvent type ApiV2010AccountCallCallEvent struct { - Request map[string]interface{} `json:"request,omitempty"` - Response map[string]interface{} `json:"response,omitempty"` + Request map[string]interface{} `json:"Request,omitempty"` + Response map[string]interface{} `json:"Response,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_call_call_event_read_response.go b/rest/api/v2010/model_api_v2010_account_call_call_event_read_response.go index 25a47be30..80f1e353b 100644 --- a/rest/api/v2010/model_api_v2010_account_call_call_event_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_call_call_event_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountCallCallEventReadResponse struct for ApiV2010AccountCallCallEventReadResponse type ApiV2010AccountCallCallEventReadResponse struct { - End int32 `json:"end,omitempty"` - Events []ApiV2010AccountCallCallEvent `json:"events,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + End int32 `json:"End,omitempty"` + Events []ApiV2010AccountCallCallEvent `json:"Events,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_call_call_feedback.go b/rest/api/v2010/model_api_v2010_account_call_call_feedback.go index c5aae43e7..6aae1927f 100644 --- a/rest/api/v2010/model_api_v2010_account_call_call_feedback.go +++ b/rest/api/v2010/model_api_v2010_account_call_call_feedback.go @@ -11,10 +11,10 @@ package openapi // ApiV2010AccountCallCallFeedback struct for ApiV2010AccountCallCallFeedback type ApiV2010AccountCallCallFeedback struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - Issues []string `json:"issues,omitempty"` - QualityScore int32 `json:"quality_score,omitempty"` - Sid string `json:"sid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + Issues []string `json:"Issues,omitempty"` + QualityScore int32 `json:"QualityScore,omitempty"` + Sid string `json:"Sid,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_call_call_feedback_summary.go b/rest/api/v2010/model_api_v2010_account_call_call_feedback_summary.go index 7be0fb833..5af60fdf5 100644 --- a/rest/api/v2010/model_api_v2010_account_call_call_feedback_summary.go +++ b/rest/api/v2010/model_api_v2010_account_call_call_feedback_summary.go @@ -14,18 +14,18 @@ import ( ) // ApiV2010AccountCallCallFeedbackSummary struct for ApiV2010AccountCallCallFeedbackSummary type ApiV2010AccountCallCallFeedbackSummary struct { - AccountSid string `json:"account_sid,omitempty"` - CallCount int32 `json:"call_count,omitempty"` - CallFeedbackCount int32 `json:"call_feedback_count,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - EndDate time.Time `json:"end_date,omitempty"` - IncludeSubaccounts bool `json:"include_subaccounts,omitempty"` - Issues []map[string]interface{} `json:"issues,omitempty"` - QualityScoreAverage float32 `json:"quality_score_average,omitempty"` - QualityScoreMedian float32 `json:"quality_score_median,omitempty"` - QualityScoreStandardDeviation float32 `json:"quality_score_standard_deviation,omitempty"` - Sid string `json:"sid,omitempty"` - StartDate time.Time `json:"start_date,omitempty"` - Status string `json:"status,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + CallCount int32 `json:"CallCount,omitempty"` + CallFeedbackCount int32 `json:"CallFeedbackCount,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + EndDate time.Time `json:"EndDate,omitempty"` + IncludeSubaccounts bool `json:"IncludeSubaccounts,omitempty"` + Issues []map[string]interface{} `json:"Issues,omitempty"` + QualityScoreAverage float32 `json:"QualityScoreAverage,omitempty"` + QualityScoreMedian float32 `json:"QualityScoreMedian,omitempty"` + QualityScoreStandardDeviation float32 `json:"QualityScoreStandardDeviation,omitempty"` + Sid string `json:"Sid,omitempty"` + StartDate time.Time `json:"StartDate,omitempty"` + Status string `json:"Status,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_call_call_notification.go b/rest/api/v2010/model_api_v2010_account_call_call_notification.go index dbbdc30bb..662c388d8 100644 --- a/rest/api/v2010/model_api_v2010_account_call_call_notification.go +++ b/rest/api/v2010/model_api_v2010_account_call_call_notification.go @@ -11,18 +11,18 @@ package openapi // ApiV2010AccountCallCallNotification struct for ApiV2010AccountCallCallNotification type ApiV2010AccountCallCallNotification struct { - AccountSid string `json:"account_sid,omitempty"` - ApiVersion string `json:"api_version,omitempty"` - CallSid string `json:"call_sid,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - ErrorCode string `json:"error_code,omitempty"` - Log string `json:"log,omitempty"` - MessageDate string `json:"message_date,omitempty"` - MessageText string `json:"message_text,omitempty"` - MoreInfo string `json:"more_info,omitempty"` - RequestMethod string `json:"request_method,omitempty"` - RequestUrl string `json:"request_url,omitempty"` - Sid string `json:"sid,omitempty"` - Uri string `json:"uri,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ApiVersion string `json:"ApiVersion,omitempty"` + CallSid string `json:"CallSid,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + ErrorCode string `json:"ErrorCode,omitempty"` + Log string `json:"Log,omitempty"` + MessageDate string `json:"MessageDate,omitempty"` + MessageText string `json:"MessageText,omitempty"` + MoreInfo string `json:"MoreInfo,omitempty"` + RequestMethod string `json:"RequestMethod,omitempty"` + RequestUrl string `json:"RequestUrl,omitempty"` + Sid string `json:"Sid,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_call_call_notification_instance.go b/rest/api/v2010/model_api_v2010_account_call_call_notification_instance.go index b78d8fa12..9cbe3d9ec 100644 --- a/rest/api/v2010/model_api_v2010_account_call_call_notification_instance.go +++ b/rest/api/v2010/model_api_v2010_account_call_call_notification_instance.go @@ -11,21 +11,21 @@ package openapi // ApiV2010AccountCallCallNotificationInstance struct for ApiV2010AccountCallCallNotificationInstance type ApiV2010AccountCallCallNotificationInstance struct { - AccountSid string `json:"account_sid,omitempty"` - ApiVersion string `json:"api_version,omitempty"` - CallSid string `json:"call_sid,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - ErrorCode string `json:"error_code,omitempty"` - Log string `json:"log,omitempty"` - MessageDate string `json:"message_date,omitempty"` - MessageText string `json:"message_text,omitempty"` - MoreInfo string `json:"more_info,omitempty"` - RequestMethod string `json:"request_method,omitempty"` - RequestUrl string `json:"request_url,omitempty"` - RequestVariables string `json:"request_variables,omitempty"` - ResponseBody string `json:"response_body,omitempty"` - ResponseHeaders string `json:"response_headers,omitempty"` - Sid string `json:"sid,omitempty"` - Uri string `json:"uri,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ApiVersion string `json:"ApiVersion,omitempty"` + CallSid string `json:"CallSid,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + ErrorCode string `json:"ErrorCode,omitempty"` + Log string `json:"Log,omitempty"` + MessageDate string `json:"MessageDate,omitempty"` + MessageText string `json:"MessageText,omitempty"` + MoreInfo string `json:"MoreInfo,omitempty"` + RequestMethod string `json:"RequestMethod,omitempty"` + RequestUrl string `json:"RequestUrl,omitempty"` + RequestVariables string `json:"RequestVariables,omitempty"` + ResponseBody string `json:"ResponseBody,omitempty"` + ResponseHeaders string `json:"ResponseHeaders,omitempty"` + Sid string `json:"Sid,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_call_call_notification_read_response.go b/rest/api/v2010/model_api_v2010_account_call_call_notification_read_response.go index 4e1a57918..7ba821da4 100644 --- a/rest/api/v2010/model_api_v2010_account_call_call_notification_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_call_call_notification_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountCallCallNotificationReadResponse struct for ApiV2010AccountCallCallNotificationReadResponse type ApiV2010AccountCallCallNotificationReadResponse struct { - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Notifications []ApiV2010AccountCallCallNotification `json:"notifications,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Notifications []ApiV2010AccountCallCallNotification `json:"Notifications,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_call_call_recording.go b/rest/api/v2010/model_api_v2010_account_call_call_recording.go index 0ceeda43b..8e87c61f7 100644 --- a/rest/api/v2010/model_api_v2010_account_call_call_recording.go +++ b/rest/api/v2010/model_api_v2010_account_call_call_recording.go @@ -11,22 +11,22 @@ package openapi // ApiV2010AccountCallCallRecording struct for ApiV2010AccountCallCallRecording type ApiV2010AccountCallCallRecording struct { - AccountSid string `json:"account_sid,omitempty"` - ApiVersion string `json:"api_version,omitempty"` - CallSid string `json:"call_sid,omitempty"` - Channels int32 `json:"channels,omitempty"` - ConferenceSid string `json:"conference_sid,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - Duration string `json:"duration,omitempty"` - EncryptionDetails map[string]interface{} `json:"encryption_details,omitempty"` - ErrorCode *int32 `json:"error_code,omitempty"` - Price float32 `json:"price,omitempty"` - PriceUnit string `json:"price_unit,omitempty"` - Sid string `json:"sid,omitempty"` - Source string `json:"source,omitempty"` - StartTime string `json:"start_time,omitempty"` - Status string `json:"status,omitempty"` - Track string `json:"track,omitempty"` - Uri string `json:"uri,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ApiVersion string `json:"ApiVersion,omitempty"` + CallSid string `json:"CallSid,omitempty"` + Channels int32 `json:"Channels,omitempty"` + ConferenceSid string `json:"ConferenceSid,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + Duration string `json:"Duration,omitempty"` + EncryptionDetails map[string]interface{} `json:"EncryptionDetails,omitempty"` + ErrorCode *int32 `json:"ErrorCode,omitempty"` + Price float32 `json:"Price,omitempty"` + PriceUnit string `json:"PriceUnit,omitempty"` + Sid string `json:"Sid,omitempty"` + Source string `json:"Source,omitempty"` + StartTime string `json:"StartTime,omitempty"` + Status string `json:"Status,omitempty"` + Track string `json:"Track,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_call_call_recording_read_response.go b/rest/api/v2010/model_api_v2010_account_call_call_recording_read_response.go index 8bbfbc19b..1a00fbca0 100644 --- a/rest/api/v2010/model_api_v2010_account_call_call_recording_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_call_call_recording_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountCallCallRecordingReadResponse struct for ApiV2010AccountCallCallRecordingReadResponse type ApiV2010AccountCallCallRecordingReadResponse struct { - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Recordings []ApiV2010AccountCallCallRecording `json:"recordings,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Recordings []ApiV2010AccountCallCallRecording `json:"Recordings,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_call_payments.go b/rest/api/v2010/model_api_v2010_account_call_payments.go index 8085ef7ce..268b51ed8 100644 --- a/rest/api/v2010/model_api_v2010_account_call_payments.go +++ b/rest/api/v2010/model_api_v2010_account_call_payments.go @@ -11,10 +11,10 @@ package openapi // ApiV2010AccountCallPayments struct for ApiV2010AccountCallPayments type ApiV2010AccountCallPayments struct { - AccountSid string `json:"account_sid,omitempty"` - CallSid string `json:"call_sid,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - Sid string `json:"sid,omitempty"` - Uri string `json:"uri,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + CallSid string `json:"CallSid,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + Sid string `json:"Sid,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_call_read_response.go b/rest/api/v2010/model_api_v2010_account_call_read_response.go index f9aa85428..692b237ae 100644 --- a/rest/api/v2010/model_api_v2010_account_call_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_call_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountCallReadResponse struct for ApiV2010AccountCallReadResponse type ApiV2010AccountCallReadResponse struct { - Calls []ApiV2010AccountCall `json:"calls,omitempty"` - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + Calls []ApiV2010AccountCall `json:"Calls,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_conference.go b/rest/api/v2010/model_api_v2010_account_conference.go index a1bb9febc..853ef6524 100644 --- a/rest/api/v2010/model_api_v2010_account_conference.go +++ b/rest/api/v2010/model_api_v2010_account_conference.go @@ -11,16 +11,16 @@ package openapi // ApiV2010AccountConference struct for ApiV2010AccountConference type ApiV2010AccountConference struct { - AccountSid string `json:"account_sid,omitempty"` - ApiVersion string `json:"api_version,omitempty"` - CallSidEndingConference string `json:"call_sid_ending_conference,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - ReasonConferenceEnded string `json:"reason_conference_ended,omitempty"` - Region string `json:"region,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` - Uri string `json:"uri,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ApiVersion string `json:"ApiVersion,omitempty"` + CallSidEndingConference string `json:"CallSidEndingConference,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + ReasonConferenceEnded string `json:"ReasonConferenceEnded,omitempty"` + Region string `json:"Region,omitempty"` + Sid string `json:"Sid,omitempty"` + Status string `json:"Status,omitempty"` + SubresourceUris map[string]interface{} `json:"SubresourceUris,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_conference_conference_recording.go b/rest/api/v2010/model_api_v2010_account_conference_conference_recording.go index 1a3b988d5..3518ae55a 100644 --- a/rest/api/v2010/model_api_v2010_account_conference_conference_recording.go +++ b/rest/api/v2010/model_api_v2010_account_conference_conference_recording.go @@ -11,21 +11,21 @@ package openapi // ApiV2010AccountConferenceConferenceRecording struct for ApiV2010AccountConferenceConferenceRecording type ApiV2010AccountConferenceConferenceRecording struct { - AccountSid string `json:"account_sid,omitempty"` - ApiVersion string `json:"api_version,omitempty"` - CallSid string `json:"call_sid,omitempty"` - Channels int32 `json:"channels,omitempty"` - ConferenceSid string `json:"conference_sid,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - Duration string `json:"duration,omitempty"` - EncryptionDetails map[string]interface{} `json:"encryption_details,omitempty"` - ErrorCode *int32 `json:"error_code,omitempty"` - Price float32 `json:"price,omitempty"` - PriceUnit string `json:"price_unit,omitempty"` - Sid string `json:"sid,omitempty"` - Source string `json:"source,omitempty"` - StartTime string `json:"start_time,omitempty"` - Status string `json:"status,omitempty"` - Uri string `json:"uri,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ApiVersion string `json:"ApiVersion,omitempty"` + CallSid string `json:"CallSid,omitempty"` + Channels int32 `json:"Channels,omitempty"` + ConferenceSid string `json:"ConferenceSid,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + Duration string `json:"Duration,omitempty"` + EncryptionDetails map[string]interface{} `json:"EncryptionDetails,omitempty"` + ErrorCode *int32 `json:"ErrorCode,omitempty"` + Price float32 `json:"Price,omitempty"` + PriceUnit string `json:"PriceUnit,omitempty"` + Sid string `json:"Sid,omitempty"` + Source string `json:"Source,omitempty"` + StartTime string `json:"StartTime,omitempty"` + Status string `json:"Status,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_conference_conference_recording_read_response.go b/rest/api/v2010/model_api_v2010_account_conference_conference_recording_read_response.go index 405079169..fd6fbcf20 100644 --- a/rest/api/v2010/model_api_v2010_account_conference_conference_recording_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_conference_conference_recording_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountConferenceConferenceRecordingReadResponse struct for ApiV2010AccountConferenceConferenceRecordingReadResponse type ApiV2010AccountConferenceConferenceRecordingReadResponse struct { - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Recordings []ApiV2010AccountConferenceConferenceRecording `json:"recordings,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Recordings []ApiV2010AccountConferenceConferenceRecording `json:"Recordings,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_conference_participant.go b/rest/api/v2010/model_api_v2010_account_conference_participant.go index 5ee0f8202..7ebb0bf13 100644 --- a/rest/api/v2010/model_api_v2010_account_conference_participant.go +++ b/rest/api/v2010/model_api_v2010_account_conference_participant.go @@ -11,18 +11,18 @@ package openapi // ApiV2010AccountConferenceParticipant struct for ApiV2010AccountConferenceParticipant type ApiV2010AccountConferenceParticipant struct { - AccountSid string `json:"account_sid,omitempty"` - CallSid string `json:"call_sid,omitempty"` - CallSidToCoach string `json:"call_sid_to_coach,omitempty"` - Coaching bool `json:"coaching,omitempty"` - ConferenceSid string `json:"conference_sid,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - EndConferenceOnExit bool `json:"end_conference_on_exit,omitempty"` - Hold bool `json:"hold,omitempty"` - Label string `json:"label,omitempty"` - Muted bool `json:"muted,omitempty"` - StartConferenceOnEnter bool `json:"start_conference_on_enter,omitempty"` - Status string `json:"status,omitempty"` - Uri string `json:"uri,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + CallSid string `json:"CallSid,omitempty"` + CallSidToCoach string `json:"CallSidToCoach,omitempty"` + Coaching bool `json:"Coaching,omitempty"` + ConferenceSid string `json:"ConferenceSid,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + EndConferenceOnExit bool `json:"EndConferenceOnExit,omitempty"` + Hold bool `json:"Hold,omitempty"` + Label string `json:"Label,omitempty"` + Muted bool `json:"Muted,omitempty"` + StartConferenceOnEnter bool `json:"StartConferenceOnEnter,omitempty"` + Status string `json:"Status,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_conference_participant_read_response.go b/rest/api/v2010/model_api_v2010_account_conference_participant_read_response.go index 5ab827879..c9a8fb0dd 100644 --- a/rest/api/v2010/model_api_v2010_account_conference_participant_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_conference_participant_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountConferenceParticipantReadResponse struct for ApiV2010AccountConferenceParticipantReadResponse type ApiV2010AccountConferenceParticipantReadResponse struct { - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - Participants []ApiV2010AccountConferenceParticipant `json:"participants,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + Participants []ApiV2010AccountConferenceParticipant `json:"Participants,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_conference_read_response.go b/rest/api/v2010/model_api_v2010_account_conference_read_response.go index aa7c8d724..80920ea81 100644 --- a/rest/api/v2010/model_api_v2010_account_conference_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_conference_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountConferenceReadResponse struct for ApiV2010AccountConferenceReadResponse type ApiV2010AccountConferenceReadResponse struct { - Conferences []ApiV2010AccountConference `json:"conferences,omitempty"` - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + Conferences []ApiV2010AccountConference `json:"Conferences,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_connect_app.go b/rest/api/v2010/model_api_v2010_account_connect_app.go index f1d98e670..da8dbef93 100644 --- a/rest/api/v2010/model_api_v2010_account_connect_app.go +++ b/rest/api/v2010/model_api_v2010_account_connect_app.go @@ -11,15 +11,15 @@ package openapi // ApiV2010AccountConnectApp struct for ApiV2010AccountConnectApp type ApiV2010AccountConnectApp struct { - AccountSid string `json:"account_sid,omitempty"` - AuthorizeRedirectUrl string `json:"authorize_redirect_url,omitempty"` - CompanyName string `json:"company_name,omitempty"` - DeauthorizeCallbackMethod string `json:"deauthorize_callback_method,omitempty"` - DeauthorizeCallbackUrl string `json:"deauthorize_callback_url,omitempty"` - Description string `json:"description,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - HomepageUrl string `json:"homepage_url,omitempty"` - Permissions []string `json:"permissions,omitempty"` - Sid string `json:"sid,omitempty"` - Uri string `json:"uri,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AuthorizeRedirectUrl string `json:"AuthorizeRedirectUrl,omitempty"` + CompanyName string `json:"CompanyName,omitempty"` + DeauthorizeCallbackMethod string `json:"DeauthorizeCallbackMethod,omitempty"` + DeauthorizeCallbackUrl string `json:"DeauthorizeCallbackUrl,omitempty"` + Description string `json:"Description,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + HomepageUrl string `json:"HomepageUrl,omitempty"` + Permissions []string `json:"Permissions,omitempty"` + Sid string `json:"Sid,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_connect_app_read_response.go b/rest/api/v2010/model_api_v2010_account_connect_app_read_response.go index db241d50d..ed0fc75c6 100644 --- a/rest/api/v2010/model_api_v2010_account_connect_app_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_connect_app_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountConnectAppReadResponse struct for ApiV2010AccountConnectAppReadResponse type ApiV2010AccountConnectAppReadResponse struct { - ConnectApps []ApiV2010AccountConnectApp `json:"connect_apps,omitempty"` - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + ConnectApps []ApiV2010AccountConnectApp `json:"ConnectApps,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_incoming_phone_number.go b/rest/api/v2010/model_api_v2010_account_incoming_phone_number.go index 9a2623a93..60288d394 100644 --- a/rest/api/v2010/model_api_v2010_account_incoming_phone_number.go +++ b/rest/api/v2010/model_api_v2010_account_incoming_phone_number.go @@ -11,37 +11,37 @@ package openapi // ApiV2010AccountIncomingPhoneNumber struct for ApiV2010AccountIncomingPhoneNumber type ApiV2010AccountIncomingPhoneNumber struct { - AccountSid string `json:"account_sid,omitempty"` - AddressRequirements string `json:"address_requirements,omitempty"` - AddressSid string `json:"address_sid,omitempty"` - ApiVersion string `json:"api_version,omitempty"` - Beta bool `json:"beta,omitempty"` - BundleSid string `json:"bundle_sid,omitempty"` - Capabilities map[string]interface{} `json:"capabilities,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - EmergencyAddressSid string `json:"emergency_address_sid,omitempty"` - EmergencyStatus string `json:"emergency_status,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - IdentitySid string `json:"identity_sid,omitempty"` - Origin string `json:"origin,omitempty"` - PhoneNumber string `json:"phone_number,omitempty"` - Sid string `json:"sid,omitempty"` - SmsApplicationSid string `json:"sms_application_sid,omitempty"` - SmsFallbackMethod string `json:"sms_fallback_method,omitempty"` - SmsFallbackUrl string `json:"sms_fallback_url,omitempty"` - SmsMethod string `json:"sms_method,omitempty"` - SmsUrl string `json:"sms_url,omitempty"` - Status string `json:"status,omitempty"` - StatusCallback string `json:"status_callback,omitempty"` - StatusCallbackMethod string `json:"status_callback_method,omitempty"` - TrunkSid string `json:"trunk_sid,omitempty"` - Uri string `json:"uri,omitempty"` - VoiceApplicationSid string `json:"voice_application_sid,omitempty"` - VoiceCallerIdLookup bool `json:"voice_caller_id_lookup,omitempty"` - VoiceFallbackMethod string `json:"voice_fallback_method,omitempty"` - VoiceFallbackUrl string `json:"voice_fallback_url,omitempty"` - VoiceMethod string `json:"voice_method,omitempty"` - VoiceReceiveMode string `json:"voice_receive_mode,omitempty"` - VoiceUrl string `json:"voice_url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AddressRequirements string `json:"AddressRequirements,omitempty"` + AddressSid string `json:"AddressSid,omitempty"` + ApiVersion string `json:"ApiVersion,omitempty"` + Beta bool `json:"Beta,omitempty"` + BundleSid string `json:"BundleSid,omitempty"` + Capabilities map[string]interface{} `json:"Capabilities,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + EmergencyAddressSid string `json:"EmergencyAddressSid,omitempty"` + EmergencyStatus string `json:"EmergencyStatus,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + IdentitySid string `json:"IdentitySid,omitempty"` + Origin string `json:"Origin,omitempty"` + PhoneNumber string `json:"PhoneNumber,omitempty"` + Sid string `json:"Sid,omitempty"` + SmsApplicationSid string `json:"SmsApplicationSid,omitempty"` + SmsFallbackMethod string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl string `json:"SmsFallbackUrl,omitempty"` + SmsMethod string `json:"SmsMethod,omitempty"` + SmsUrl string `json:"SmsUrl,omitempty"` + Status string `json:"Status,omitempty"` + StatusCallback string `json:"StatusCallback,omitempty"` + StatusCallbackMethod string `json:"StatusCallbackMethod,omitempty"` + TrunkSid string `json:"TrunkSid,omitempty"` + Uri string `json:"Uri,omitempty"` + VoiceApplicationSid string `json:"VoiceApplicationSid,omitempty"` + VoiceCallerIdLookup bool `json:"VoiceCallerIdLookup,omitempty"` + VoiceFallbackMethod string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod string `json:"VoiceMethod,omitempty"` + VoiceReceiveMode string `json:"VoiceReceiveMode,omitempty"` + VoiceUrl string `json:"VoiceUrl,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on.go b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on.go index 727f57241..ce78d64e5 100644 --- a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on.go +++ b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on.go @@ -11,15 +11,15 @@ package openapi // ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn struct for ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn type ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn struct { - AccountSid string `json:"account_sid,omitempty"` - Configuration map[string]interface{} `json:"configuration,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - Description string `json:"description,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - ResourceSid string `json:"resource_sid,omitempty"` - Sid string `json:"sid,omitempty"` - SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Uri string `json:"uri,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Configuration map[string]interface{} `json:"Configuration,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + Description string `json:"Description,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + ResourceSid string `json:"ResourceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + SubresourceUris map[string]interface{} `json:"SubresourceUris,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_incoming_phone_number_assigned_add_on_extension.go b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_incoming_phone_number_assigned_add_on_extension.go index 3044727f3..ef3aef03d 100644 --- a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_incoming_phone_number_assigned_add_on_extension.go +++ b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_incoming_phone_number_assigned_add_on_extension.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension struct for ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension type ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension struct { - AccountSid string `json:"account_sid,omitempty"` - AssignedAddOnSid string `json:"assigned_add_on_sid,omitempty"` - Enabled bool `json:"enabled,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - ProductName string `json:"product_name,omitempty"` - ResourceSid string `json:"resource_sid,omitempty"` - Sid string `json:"sid,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Uri string `json:"uri,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AssignedAddOnSid string `json:"AssignedAddOnSid,omitempty"` + Enabled bool `json:"Enabled,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + ProductName string `json:"ProductName,omitempty"` + ResourceSid string `json:"ResourceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_incoming_phone_number_assigned_add_on_extension_read_response.go b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_incoming_phone_number_assigned_add_on_extension_read_response.go index 3c72f2d95..df989d248 100644 --- a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_incoming_phone_number_assigned_add_on_extension_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_incoming_phone_number_assigned_add_on_extension_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse struct for ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse type ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse struct { - End int32 `json:"end,omitempty"` - Extensions []ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension `json:"extensions,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + End int32 `json:"End,omitempty"` + Extensions []ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension `json:"Extensions,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_read_response.go b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_read_response.go index cecc11f05..8595413e8 100644 --- a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse struct for ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse type ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse struct { - AssignedAddOns []ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn `json:"assigned_add_ons,omitempty"` - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + AssignedAddOns []ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn `json:"AssignedAddOns,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_local.go b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_local.go index 6d8346731..292c8e332 100644 --- a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_local.go +++ b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_local.go @@ -11,37 +11,37 @@ package openapi // ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocal struct for ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocal type ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocal struct { - AccountSid string `json:"account_sid,omitempty"` - AddressRequirements string `json:"address_requirements,omitempty"` - AddressSid string `json:"address_sid,omitempty"` - ApiVersion string `json:"api_version,omitempty"` - Beta bool `json:"beta,omitempty"` - BundleSid string `json:"bundle_sid,omitempty"` - Capabilities map[string]interface{} `json:"capabilities,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - EmergencyAddressSid string `json:"emergency_address_sid,omitempty"` - EmergencyStatus string `json:"emergency_status,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - IdentitySid string `json:"identity_sid,omitempty"` - Origin string `json:"origin,omitempty"` - PhoneNumber string `json:"phone_number,omitempty"` - Sid string `json:"sid,omitempty"` - SmsApplicationSid string `json:"sms_application_sid,omitempty"` - SmsFallbackMethod string `json:"sms_fallback_method,omitempty"` - SmsFallbackUrl string `json:"sms_fallback_url,omitempty"` - SmsMethod string `json:"sms_method,omitempty"` - SmsUrl string `json:"sms_url,omitempty"` - Status string `json:"status,omitempty"` - StatusCallback string `json:"status_callback,omitempty"` - StatusCallbackMethod string `json:"status_callback_method,omitempty"` - TrunkSid string `json:"trunk_sid,omitempty"` - Uri string `json:"uri,omitempty"` - VoiceApplicationSid string `json:"voice_application_sid,omitempty"` - VoiceCallerIdLookup bool `json:"voice_caller_id_lookup,omitempty"` - VoiceFallbackMethod string `json:"voice_fallback_method,omitempty"` - VoiceFallbackUrl string `json:"voice_fallback_url,omitempty"` - VoiceMethod string `json:"voice_method,omitempty"` - VoiceReceiveMode string `json:"voice_receive_mode,omitempty"` - VoiceUrl string `json:"voice_url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AddressRequirements string `json:"AddressRequirements,omitempty"` + AddressSid string `json:"AddressSid,omitempty"` + ApiVersion string `json:"ApiVersion,omitempty"` + Beta bool `json:"Beta,omitempty"` + BundleSid string `json:"BundleSid,omitempty"` + Capabilities map[string]interface{} `json:"Capabilities,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + EmergencyAddressSid string `json:"EmergencyAddressSid,omitempty"` + EmergencyStatus string `json:"EmergencyStatus,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + IdentitySid string `json:"IdentitySid,omitempty"` + Origin string `json:"Origin,omitempty"` + PhoneNumber string `json:"PhoneNumber,omitempty"` + Sid string `json:"Sid,omitempty"` + SmsApplicationSid string `json:"SmsApplicationSid,omitempty"` + SmsFallbackMethod string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl string `json:"SmsFallbackUrl,omitempty"` + SmsMethod string `json:"SmsMethod,omitempty"` + SmsUrl string `json:"SmsUrl,omitempty"` + Status string `json:"Status,omitempty"` + StatusCallback string `json:"StatusCallback,omitempty"` + StatusCallbackMethod string `json:"StatusCallbackMethod,omitempty"` + TrunkSid string `json:"TrunkSid,omitempty"` + Uri string `json:"Uri,omitempty"` + VoiceApplicationSid string `json:"VoiceApplicationSid,omitempty"` + VoiceCallerIdLookup bool `json:"VoiceCallerIdLookup,omitempty"` + VoiceFallbackMethod string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod string `json:"VoiceMethod,omitempty"` + VoiceReceiveMode string `json:"VoiceReceiveMode,omitempty"` + VoiceUrl string `json:"VoiceUrl,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_local_read_response.go b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_local_read_response.go index 2a34860b2..3af700235 100644 --- a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_local_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_local_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse struct for ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse type ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse struct { - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - IncomingPhoneNumbers []ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocal `json:"incoming_phone_numbers,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + IncomingPhoneNumbers []ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocal `json:"IncomingPhoneNumbers,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_mobile.go b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_mobile.go index 4a0584a8d..2a3706531 100644 --- a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_mobile.go +++ b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_mobile.go @@ -11,37 +11,37 @@ package openapi // ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobile struct for ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobile type ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobile struct { - AccountSid string `json:"account_sid,omitempty"` - AddressRequirements string `json:"address_requirements,omitempty"` - AddressSid string `json:"address_sid,omitempty"` - ApiVersion string `json:"api_version,omitempty"` - Beta bool `json:"beta,omitempty"` - BundleSid string `json:"bundle_sid,omitempty"` - Capabilities map[string]interface{} `json:"capabilities,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - EmergencyAddressSid string `json:"emergency_address_sid,omitempty"` - EmergencyStatus string `json:"emergency_status,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - IdentitySid string `json:"identity_sid,omitempty"` - Origin string `json:"origin,omitempty"` - PhoneNumber string `json:"phone_number,omitempty"` - Sid string `json:"sid,omitempty"` - SmsApplicationSid string `json:"sms_application_sid,omitempty"` - SmsFallbackMethod string `json:"sms_fallback_method,omitempty"` - SmsFallbackUrl string `json:"sms_fallback_url,omitempty"` - SmsMethod string `json:"sms_method,omitempty"` - SmsUrl string `json:"sms_url,omitempty"` - Status string `json:"status,omitempty"` - StatusCallback string `json:"status_callback,omitempty"` - StatusCallbackMethod string `json:"status_callback_method,omitempty"` - TrunkSid string `json:"trunk_sid,omitempty"` - Uri string `json:"uri,omitempty"` - VoiceApplicationSid string `json:"voice_application_sid,omitempty"` - VoiceCallerIdLookup bool `json:"voice_caller_id_lookup,omitempty"` - VoiceFallbackMethod string `json:"voice_fallback_method,omitempty"` - VoiceFallbackUrl string `json:"voice_fallback_url,omitempty"` - VoiceMethod string `json:"voice_method,omitempty"` - VoiceReceiveMode string `json:"voice_receive_mode,omitempty"` - VoiceUrl string `json:"voice_url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AddressRequirements string `json:"AddressRequirements,omitempty"` + AddressSid string `json:"AddressSid,omitempty"` + ApiVersion string `json:"ApiVersion,omitempty"` + Beta bool `json:"Beta,omitempty"` + BundleSid string `json:"BundleSid,omitempty"` + Capabilities map[string]interface{} `json:"Capabilities,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + EmergencyAddressSid string `json:"EmergencyAddressSid,omitempty"` + EmergencyStatus string `json:"EmergencyStatus,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + IdentitySid string `json:"IdentitySid,omitempty"` + Origin string `json:"Origin,omitempty"` + PhoneNumber string `json:"PhoneNumber,omitempty"` + Sid string `json:"Sid,omitempty"` + SmsApplicationSid string `json:"SmsApplicationSid,omitempty"` + SmsFallbackMethod string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl string `json:"SmsFallbackUrl,omitempty"` + SmsMethod string `json:"SmsMethod,omitempty"` + SmsUrl string `json:"SmsUrl,omitempty"` + Status string `json:"Status,omitempty"` + StatusCallback string `json:"StatusCallback,omitempty"` + StatusCallbackMethod string `json:"StatusCallbackMethod,omitempty"` + TrunkSid string `json:"TrunkSid,omitempty"` + Uri string `json:"Uri,omitempty"` + VoiceApplicationSid string `json:"VoiceApplicationSid,omitempty"` + VoiceCallerIdLookup bool `json:"VoiceCallerIdLookup,omitempty"` + VoiceFallbackMethod string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod string `json:"VoiceMethod,omitempty"` + VoiceReceiveMode string `json:"VoiceReceiveMode,omitempty"` + VoiceUrl string `json:"VoiceUrl,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_mobile_read_response.go b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_mobile_read_response.go index e5e8fe081..b597b288f 100644 --- a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_mobile_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_mobile_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse struct for ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse type ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse struct { - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - IncomingPhoneNumbers []ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobile `json:"incoming_phone_numbers,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + IncomingPhoneNumbers []ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobile `json:"IncomingPhoneNumbers,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_toll_free.go b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_toll_free.go index 89cdf97e2..2a84ea7d0 100644 --- a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_toll_free.go +++ b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_toll_free.go @@ -11,37 +11,37 @@ package openapi // ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFree struct for ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFree type ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFree struct { - AccountSid string `json:"account_sid,omitempty"` - AddressRequirements string `json:"address_requirements,omitempty"` - AddressSid string `json:"address_sid,omitempty"` - ApiVersion string `json:"api_version,omitempty"` - Beta bool `json:"beta,omitempty"` - BundleSid string `json:"bundle_sid,omitempty"` - Capabilities map[string]interface{} `json:"capabilities,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - EmergencyAddressSid string `json:"emergency_address_sid,omitempty"` - EmergencyStatus string `json:"emergency_status,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - IdentitySid string `json:"identity_sid,omitempty"` - Origin string `json:"origin,omitempty"` - PhoneNumber string `json:"phone_number,omitempty"` - Sid string `json:"sid,omitempty"` - SmsApplicationSid string `json:"sms_application_sid,omitempty"` - SmsFallbackMethod string `json:"sms_fallback_method,omitempty"` - SmsFallbackUrl string `json:"sms_fallback_url,omitempty"` - SmsMethod string `json:"sms_method,omitempty"` - SmsUrl string `json:"sms_url,omitempty"` - Status string `json:"status,omitempty"` - StatusCallback string `json:"status_callback,omitempty"` - StatusCallbackMethod string `json:"status_callback_method,omitempty"` - TrunkSid string `json:"trunk_sid,omitempty"` - Uri string `json:"uri,omitempty"` - VoiceApplicationSid string `json:"voice_application_sid,omitempty"` - VoiceCallerIdLookup bool `json:"voice_caller_id_lookup,omitempty"` - VoiceFallbackMethod string `json:"voice_fallback_method,omitempty"` - VoiceFallbackUrl string `json:"voice_fallback_url,omitempty"` - VoiceMethod string `json:"voice_method,omitempty"` - VoiceReceiveMode string `json:"voice_receive_mode,omitempty"` - VoiceUrl string `json:"voice_url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AddressRequirements string `json:"AddressRequirements,omitempty"` + AddressSid string `json:"AddressSid,omitempty"` + ApiVersion string `json:"ApiVersion,omitempty"` + Beta bool `json:"Beta,omitempty"` + BundleSid string `json:"BundleSid,omitempty"` + Capabilities map[string]interface{} `json:"Capabilities,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + EmergencyAddressSid string `json:"EmergencyAddressSid,omitempty"` + EmergencyStatus string `json:"EmergencyStatus,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + IdentitySid string `json:"IdentitySid,omitempty"` + Origin string `json:"Origin,omitempty"` + PhoneNumber string `json:"PhoneNumber,omitempty"` + Sid string `json:"Sid,omitempty"` + SmsApplicationSid string `json:"SmsApplicationSid,omitempty"` + SmsFallbackMethod string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl string `json:"SmsFallbackUrl,omitempty"` + SmsMethod string `json:"SmsMethod,omitempty"` + SmsUrl string `json:"SmsUrl,omitempty"` + Status string `json:"Status,omitempty"` + StatusCallback string `json:"StatusCallback,omitempty"` + StatusCallbackMethod string `json:"StatusCallbackMethod,omitempty"` + TrunkSid string `json:"TrunkSid,omitempty"` + Uri string `json:"Uri,omitempty"` + VoiceApplicationSid string `json:"VoiceApplicationSid,omitempty"` + VoiceCallerIdLookup bool `json:"VoiceCallerIdLookup,omitempty"` + VoiceFallbackMethod string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod string `json:"VoiceMethod,omitempty"` + VoiceReceiveMode string `json:"VoiceReceiveMode,omitempty"` + VoiceUrl string `json:"VoiceUrl,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_toll_free_read_response.go b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_toll_free_read_response.go index 374af79b8..b906497eb 100644 --- a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_toll_free_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_toll_free_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse struct for ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse type ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse struct { - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - IncomingPhoneNumbers []ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFree `json:"incoming_phone_numbers,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + IncomingPhoneNumbers []ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFree `json:"IncomingPhoneNumbers,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_read_response.go b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_read_response.go index 103b92a0e..2f8fe523e 100644 --- a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountIncomingPhoneNumberReadResponse struct for ApiV2010AccountIncomingPhoneNumberReadResponse type ApiV2010AccountIncomingPhoneNumberReadResponse struct { - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - IncomingPhoneNumbers []ApiV2010AccountIncomingPhoneNumber `json:"incoming_phone_numbers,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + IncomingPhoneNumbers []ApiV2010AccountIncomingPhoneNumber `json:"IncomingPhoneNumbers,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_key.go b/rest/api/v2010/model_api_v2010_account_key.go index 85c23e163..85bc0bbe9 100644 --- a/rest/api/v2010/model_api_v2010_account_key.go +++ b/rest/api/v2010/model_api_v2010_account_key.go @@ -11,8 +11,8 @@ package openapi // ApiV2010AccountKey struct for ApiV2010AccountKey type ApiV2010AccountKey struct { - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Sid string `json:"sid,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Sid string `json:"Sid,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_key_read_response.go b/rest/api/v2010/model_api_v2010_account_key_read_response.go index 9c007f902..fcdb22b0f 100644 --- a/rest/api/v2010/model_api_v2010_account_key_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_key_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountKeyReadResponse struct for ApiV2010AccountKeyReadResponse type ApiV2010AccountKeyReadResponse struct { - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - Keys []ApiV2010AccountKey `json:"keys,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + Keys []ApiV2010AccountKey `json:"Keys,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_message.go b/rest/api/v2010/model_api_v2010_account_message.go index 03068b95d..4a6d21817 100644 --- a/rest/api/v2010/model_api_v2010_account_message.go +++ b/rest/api/v2010/model_api_v2010_account_message.go @@ -11,24 +11,24 @@ package openapi // ApiV2010AccountMessage struct for ApiV2010AccountMessage type ApiV2010AccountMessage struct { - AccountSid string `json:"account_sid,omitempty"` - ApiVersion string `json:"api_version,omitempty"` - Body string `json:"body,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateSent string `json:"date_sent,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - Direction string `json:"direction,omitempty"` - ErrorCode *int32 `json:"error_code,omitempty"` - ErrorMessage string `json:"error_message,omitempty"` - From string `json:"from,omitempty"` - MessagingServiceSid string `json:"messaging_service_sid,omitempty"` - NumMedia string `json:"num_media,omitempty"` - NumSegments string `json:"num_segments,omitempty"` - Price string `json:"price,omitempty"` - PriceUnit string `json:"price_unit,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` - To string `json:"to,omitempty"` - Uri string `json:"uri,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ApiVersion string `json:"ApiVersion,omitempty"` + Body string `json:"Body,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateSent string `json:"DateSent,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + Direction string `json:"Direction,omitempty"` + ErrorCode *int32 `json:"ErrorCode,omitempty"` + ErrorMessage string `json:"ErrorMessage,omitempty"` + From string `json:"From,omitempty"` + MessagingServiceSid string `json:"MessagingServiceSid,omitempty"` + NumMedia string `json:"NumMedia,omitempty"` + NumSegments string `json:"NumSegments,omitempty"` + Price string `json:"Price,omitempty"` + PriceUnit string `json:"PriceUnit,omitempty"` + Sid string `json:"Sid,omitempty"` + Status string `json:"Status,omitempty"` + SubresourceUris map[string]interface{} `json:"SubresourceUris,omitempty"` + To string `json:"To,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_message_media.go b/rest/api/v2010/model_api_v2010_account_message_media.go index 4429e4fe2..3ffb405c0 100644 --- a/rest/api/v2010/model_api_v2010_account_message_media.go +++ b/rest/api/v2010/model_api_v2010_account_message_media.go @@ -11,11 +11,11 @@ package openapi // ApiV2010AccountMessageMedia struct for ApiV2010AccountMessageMedia type ApiV2010AccountMessageMedia struct { - AccountSid string `json:"account_sid,omitempty"` - ContentType string `json:"content_type,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - ParentSid string `json:"parent_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Uri string `json:"uri,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ContentType string `json:"ContentType,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + ParentSid string `json:"ParentSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_message_media_read_response.go b/rest/api/v2010/model_api_v2010_account_message_media_read_response.go index 186a03203..a7bd0d47f 100644 --- a/rest/api/v2010/model_api_v2010_account_message_media_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_message_media_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountMessageMediaReadResponse struct for ApiV2010AccountMessageMediaReadResponse type ApiV2010AccountMessageMediaReadResponse struct { - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - MediaList []ApiV2010AccountMessageMedia `json:"media_list,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + MediaList []ApiV2010AccountMessageMedia `json:"MediaList,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_message_message_feedback.go b/rest/api/v2010/model_api_v2010_account_message_message_feedback.go index 43d666ca5..9f707dee7 100644 --- a/rest/api/v2010/model_api_v2010_account_message_message_feedback.go +++ b/rest/api/v2010/model_api_v2010_account_message_message_feedback.go @@ -11,10 +11,10 @@ package openapi // ApiV2010AccountMessageMessageFeedback struct for ApiV2010AccountMessageMessageFeedback type ApiV2010AccountMessageMessageFeedback struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - MessageSid string `json:"message_sid,omitempty"` - Outcome string `json:"outcome,omitempty"` - Uri string `json:"uri,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + MessageSid string `json:"MessageSid,omitempty"` + Outcome string `json:"Outcome,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_message_read_response.go b/rest/api/v2010/model_api_v2010_account_message_read_response.go index 5024ba48e..038185fac 100644 --- a/rest/api/v2010/model_api_v2010_account_message_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_message_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountMessageReadResponse struct for ApiV2010AccountMessageReadResponse type ApiV2010AccountMessageReadResponse struct { - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - Messages []ApiV2010AccountMessage `json:"messages,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + Messages []ApiV2010AccountMessage `json:"Messages,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_new_key.go b/rest/api/v2010/model_api_v2010_account_new_key.go index e816fb367..40597ed1c 100644 --- a/rest/api/v2010/model_api_v2010_account_new_key.go +++ b/rest/api/v2010/model_api_v2010_account_new_key.go @@ -11,9 +11,9 @@ package openapi // ApiV2010AccountNewKey struct for ApiV2010AccountNewKey type ApiV2010AccountNewKey struct { - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Secret string `json:"secret,omitempty"` - Sid string `json:"sid,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Secret string `json:"Secret,omitempty"` + Sid string `json:"Sid,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_new_signing_key.go b/rest/api/v2010/model_api_v2010_account_new_signing_key.go index 2983cef27..944f3d2fd 100644 --- a/rest/api/v2010/model_api_v2010_account_new_signing_key.go +++ b/rest/api/v2010/model_api_v2010_account_new_signing_key.go @@ -11,9 +11,9 @@ package openapi // ApiV2010AccountNewSigningKey struct for ApiV2010AccountNewSigningKey type ApiV2010AccountNewSigningKey struct { - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Secret string `json:"secret,omitempty"` - Sid string `json:"sid,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Secret string `json:"Secret,omitempty"` + Sid string `json:"Sid,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_notification.go b/rest/api/v2010/model_api_v2010_account_notification.go index 7992faf71..202f60e15 100644 --- a/rest/api/v2010/model_api_v2010_account_notification.go +++ b/rest/api/v2010/model_api_v2010_account_notification.go @@ -11,18 +11,18 @@ package openapi // ApiV2010AccountNotification struct for ApiV2010AccountNotification type ApiV2010AccountNotification struct { - AccountSid string `json:"account_sid,omitempty"` - ApiVersion string `json:"api_version,omitempty"` - CallSid string `json:"call_sid,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - ErrorCode string `json:"error_code,omitempty"` - Log string `json:"log,omitempty"` - MessageDate string `json:"message_date,omitempty"` - MessageText string `json:"message_text,omitempty"` - MoreInfo string `json:"more_info,omitempty"` - RequestMethod string `json:"request_method,omitempty"` - RequestUrl string `json:"request_url,omitempty"` - Sid string `json:"sid,omitempty"` - Uri string `json:"uri,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ApiVersion string `json:"ApiVersion,omitempty"` + CallSid string `json:"CallSid,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + ErrorCode string `json:"ErrorCode,omitempty"` + Log string `json:"Log,omitempty"` + MessageDate string `json:"MessageDate,omitempty"` + MessageText string `json:"MessageText,omitempty"` + MoreInfo string `json:"MoreInfo,omitempty"` + RequestMethod string `json:"RequestMethod,omitempty"` + RequestUrl string `json:"RequestUrl,omitempty"` + Sid string `json:"Sid,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_notification_instance.go b/rest/api/v2010/model_api_v2010_account_notification_instance.go index cfc558c63..cdc5012ae 100644 --- a/rest/api/v2010/model_api_v2010_account_notification_instance.go +++ b/rest/api/v2010/model_api_v2010_account_notification_instance.go @@ -11,21 +11,21 @@ package openapi // ApiV2010AccountNotificationInstance struct for ApiV2010AccountNotificationInstance type ApiV2010AccountNotificationInstance struct { - AccountSid string `json:"account_sid,omitempty"` - ApiVersion string `json:"api_version,omitempty"` - CallSid string `json:"call_sid,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - ErrorCode string `json:"error_code,omitempty"` - Log string `json:"log,omitempty"` - MessageDate string `json:"message_date,omitempty"` - MessageText string `json:"message_text,omitempty"` - MoreInfo string `json:"more_info,omitempty"` - RequestMethod string `json:"request_method,omitempty"` - RequestUrl string `json:"request_url,omitempty"` - RequestVariables string `json:"request_variables,omitempty"` - ResponseBody string `json:"response_body,omitempty"` - ResponseHeaders string `json:"response_headers,omitempty"` - Sid string `json:"sid,omitempty"` - Uri string `json:"uri,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ApiVersion string `json:"ApiVersion,omitempty"` + CallSid string `json:"CallSid,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + ErrorCode string `json:"ErrorCode,omitempty"` + Log string `json:"Log,omitempty"` + MessageDate string `json:"MessageDate,omitempty"` + MessageText string `json:"MessageText,omitempty"` + MoreInfo string `json:"MoreInfo,omitempty"` + RequestMethod string `json:"RequestMethod,omitempty"` + RequestUrl string `json:"RequestUrl,omitempty"` + RequestVariables string `json:"RequestVariables,omitempty"` + ResponseBody string `json:"ResponseBody,omitempty"` + ResponseHeaders string `json:"ResponseHeaders,omitempty"` + Sid string `json:"Sid,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_notification_read_response.go b/rest/api/v2010/model_api_v2010_account_notification_read_response.go index 115ff2b00..db0a2f65b 100644 --- a/rest/api/v2010/model_api_v2010_account_notification_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_notification_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountNotificationReadResponse struct for ApiV2010AccountNotificationReadResponse type ApiV2010AccountNotificationReadResponse struct { - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Notifications []ApiV2010AccountNotification `json:"notifications,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Notifications []ApiV2010AccountNotification `json:"Notifications,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_outgoing_caller_id.go b/rest/api/v2010/model_api_v2010_account_outgoing_caller_id.go index fc922f35b..71d794e8e 100644 --- a/rest/api/v2010/model_api_v2010_account_outgoing_caller_id.go +++ b/rest/api/v2010/model_api_v2010_account_outgoing_caller_id.go @@ -11,11 +11,11 @@ package openapi // ApiV2010AccountOutgoingCallerId struct for ApiV2010AccountOutgoingCallerId type ApiV2010AccountOutgoingCallerId struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - PhoneNumber string `json:"phone_number,omitempty"` - Sid string `json:"sid,omitempty"` - Uri string `json:"uri,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + PhoneNumber string `json:"PhoneNumber,omitempty"` + Sid string `json:"Sid,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_outgoing_caller_id_read_response.go b/rest/api/v2010/model_api_v2010_account_outgoing_caller_id_read_response.go index ea2c2ac33..66709dcec 100644 --- a/rest/api/v2010/model_api_v2010_account_outgoing_caller_id_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_outgoing_caller_id_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountOutgoingCallerIdReadResponse struct for ApiV2010AccountOutgoingCallerIdReadResponse type ApiV2010AccountOutgoingCallerIdReadResponse struct { - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - OutgoingCallerIds []ApiV2010AccountOutgoingCallerId `json:"outgoing_caller_ids,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + OutgoingCallerIds []ApiV2010AccountOutgoingCallerId `json:"OutgoingCallerIds,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_queue.go b/rest/api/v2010/model_api_v2010_account_queue.go index f7a90c8e8..6aa7e0de5 100644 --- a/rest/api/v2010/model_api_v2010_account_queue.go +++ b/rest/api/v2010/model_api_v2010_account_queue.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountQueue struct for ApiV2010AccountQueue type ApiV2010AccountQueue struct { - AccountSid string `json:"account_sid,omitempty"` - AverageWaitTime int32 `json:"average_wait_time,omitempty"` - CurrentSize int32 `json:"current_size,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - MaxSize int32 `json:"max_size,omitempty"` - Sid string `json:"sid,omitempty"` - Uri string `json:"uri,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AverageWaitTime int32 `json:"AverageWaitTime,omitempty"` + CurrentSize int32 `json:"CurrentSize,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + MaxSize int32 `json:"MaxSize,omitempty"` + Sid string `json:"Sid,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_queue_member.go b/rest/api/v2010/model_api_v2010_account_queue_member.go index 06d2f68d0..622cc8a67 100644 --- a/rest/api/v2010/model_api_v2010_account_queue_member.go +++ b/rest/api/v2010/model_api_v2010_account_queue_member.go @@ -11,10 +11,10 @@ package openapi // ApiV2010AccountQueueMember struct for ApiV2010AccountQueueMember type ApiV2010AccountQueueMember struct { - CallSid string `json:"call_sid,omitempty"` - DateEnqueued string `json:"date_enqueued,omitempty"` - Position int32 `json:"position,omitempty"` - QueueSid string `json:"queue_sid,omitempty"` - Uri string `json:"uri,omitempty"` - WaitTime int32 `json:"wait_time,omitempty"` + CallSid string `json:"CallSid,omitempty"` + DateEnqueued string `json:"DateEnqueued,omitempty"` + Position int32 `json:"Position,omitempty"` + QueueSid string `json:"QueueSid,omitempty"` + Uri string `json:"Uri,omitempty"` + WaitTime int32 `json:"WaitTime,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_queue_member_read_response.go b/rest/api/v2010/model_api_v2010_account_queue_member_read_response.go index d24b12bf7..f5c2b7f25 100644 --- a/rest/api/v2010/model_api_v2010_account_queue_member_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_queue_member_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountQueueMemberReadResponse struct for ApiV2010AccountQueueMemberReadResponse type ApiV2010AccountQueueMemberReadResponse struct { - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - QueueMembers []ApiV2010AccountQueueMember `json:"queue_members,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + QueueMembers []ApiV2010AccountQueueMember `json:"QueueMembers,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_queue_read_response.go b/rest/api/v2010/model_api_v2010_account_queue_read_response.go index 11850d0e2..384a8d72a 100644 --- a/rest/api/v2010/model_api_v2010_account_queue_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_queue_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountQueueReadResponse struct for ApiV2010AccountQueueReadResponse type ApiV2010AccountQueueReadResponse struct { - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Queues []ApiV2010AccountQueue `json:"queues,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Queues []ApiV2010AccountQueue `json:"Queues,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_read_response.go b/rest/api/v2010/model_api_v2010_account_read_response.go index 611a0a306..86bd7a484 100644 --- a/rest/api/v2010/model_api_v2010_account_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountReadResponse struct for ApiV2010AccountReadResponse type ApiV2010AccountReadResponse struct { - Accounts []ApiV2010Account `json:"accounts,omitempty"` - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + Accounts []ApiV2010Account `json:"Accounts,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_recording.go b/rest/api/v2010/model_api_v2010_account_recording.go index ffb6ecfd5..0ff36806c 100644 --- a/rest/api/v2010/model_api_v2010_account_recording.go +++ b/rest/api/v2010/model_api_v2010_account_recording.go @@ -11,22 +11,22 @@ package openapi // ApiV2010AccountRecording struct for ApiV2010AccountRecording type ApiV2010AccountRecording struct { - AccountSid string `json:"account_sid,omitempty"` - ApiVersion string `json:"api_version,omitempty"` - CallSid string `json:"call_sid,omitempty"` - Channels int32 `json:"channels,omitempty"` - ConferenceSid string `json:"conference_sid,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - Duration string `json:"duration,omitempty"` - EncryptionDetails map[string]interface{} `json:"encryption_details,omitempty"` - ErrorCode *int32 `json:"error_code,omitempty"` - Price string `json:"price,omitempty"` - PriceUnit string `json:"price_unit,omitempty"` - Sid string `json:"sid,omitempty"` - Source string `json:"source,omitempty"` - StartTime string `json:"start_time,omitempty"` - Status string `json:"status,omitempty"` - SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` - Uri string `json:"uri,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ApiVersion string `json:"ApiVersion,omitempty"` + CallSid string `json:"CallSid,omitempty"` + Channels int32 `json:"Channels,omitempty"` + ConferenceSid string `json:"ConferenceSid,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + Duration string `json:"Duration,omitempty"` + EncryptionDetails map[string]interface{} `json:"EncryptionDetails,omitempty"` + ErrorCode *int32 `json:"ErrorCode,omitempty"` + Price string `json:"Price,omitempty"` + PriceUnit string `json:"PriceUnit,omitempty"` + Sid string `json:"Sid,omitempty"` + Source string `json:"Source,omitempty"` + StartTime string `json:"StartTime,omitempty"` + Status string `json:"Status,omitempty"` + SubresourceUris map[string]interface{} `json:"SubresourceUris,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_recording_read_response.go b/rest/api/v2010/model_api_v2010_account_recording_read_response.go index 89fddb1e7..8287cd4d6 100644 --- a/rest/api/v2010/model_api_v2010_account_recording_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_recording_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountRecordingReadResponse struct for ApiV2010AccountRecordingReadResponse type ApiV2010AccountRecordingReadResponse struct { - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Recordings []ApiV2010AccountRecording `json:"recordings,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Recordings []ApiV2010AccountRecording `json:"Recordings,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result.go b/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result.go index 63630f35e..e563b3cae 100644 --- a/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result.go +++ b/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result.go @@ -11,14 +11,14 @@ package openapi // ApiV2010AccountRecordingRecordingAddOnResult struct for ApiV2010AccountRecordingRecordingAddOnResult type ApiV2010AccountRecordingRecordingAddOnResult struct { - AccountSid string `json:"account_sid,omitempty"` - AddOnConfigurationSid string `json:"add_on_configuration_sid,omitempty"` - AddOnSid string `json:"add_on_sid,omitempty"` - DateCompleted string `json:"date_completed,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - ReferenceSid string `json:"reference_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AddOnConfigurationSid string `json:"AddOnConfigurationSid,omitempty"` + AddOnSid string `json:"AddOnSid,omitempty"` + DateCompleted string `json:"DateCompleted,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + ReferenceSid string `json:"ReferenceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Status string `json:"Status,omitempty"` + SubresourceUris map[string]interface{} `json:"SubresourceUris,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result_read_response.go b/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result_read_response.go index 84f7c3e31..93377d71e 100644 --- a/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountRecordingRecordingAddOnResultReadResponse struct for ApiV2010AccountRecordingRecordingAddOnResultReadResponse type ApiV2010AccountRecordingRecordingAddOnResultReadResponse struct { - AddOnResults []ApiV2010AccountRecordingRecordingAddOnResult `json:"add_on_results,omitempty"` - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + AddOnResults []ApiV2010AccountRecordingRecordingAddOnResult `json:"AddOnResults,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result_recording_add_on_result_payload.go b/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result_recording_add_on_result_payload.go index 94f553fb3..fe7da22ee 100644 --- a/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result_recording_add_on_result_payload.go +++ b/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result_recording_add_on_result_payload.go @@ -11,15 +11,15 @@ package openapi // ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayload struct for ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayload type ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayload struct { - AccountSid string `json:"account_sid,omitempty"` - AddOnConfigurationSid string `json:"add_on_configuration_sid,omitempty"` - AddOnResultSid string `json:"add_on_result_sid,omitempty"` - AddOnSid string `json:"add_on_sid,omitempty"` - ContentType string `json:"content_type,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - Label string `json:"label,omitempty"` - ReferenceSid string `json:"reference_sid,omitempty"` - Sid string `json:"sid,omitempty"` - SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AddOnConfigurationSid string `json:"AddOnConfigurationSid,omitempty"` + AddOnResultSid string `json:"AddOnResultSid,omitempty"` + AddOnSid string `json:"AddOnSid,omitempty"` + ContentType string `json:"ContentType,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + Label string `json:"Label,omitempty"` + ReferenceSid string `json:"ReferenceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + SubresourceUris map[string]interface{} `json:"SubresourceUris,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result_recording_add_on_result_payload_read_response.go b/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result_recording_add_on_result_payload_read_response.go index 9b6046524..7d7fc99be 100644 --- a/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result_recording_add_on_result_payload_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result_recording_add_on_result_payload_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse struct for ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse type ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse struct { - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - Payloads []ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayload `json:"payloads,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + Payloads []ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayload `json:"Payloads,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_recording_recording_transcription.go b/rest/api/v2010/model_api_v2010_account_recording_recording_transcription.go index b0faaf75f..e3139ac69 100644 --- a/rest/api/v2010/model_api_v2010_account_recording_recording_transcription.go +++ b/rest/api/v2010/model_api_v2010_account_recording_recording_transcription.go @@ -11,17 +11,17 @@ package openapi // ApiV2010AccountRecordingRecordingTranscription struct for ApiV2010AccountRecordingRecordingTranscription type ApiV2010AccountRecordingRecordingTranscription struct { - AccountSid string `json:"account_sid,omitempty"` - ApiVersion string `json:"api_version,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - Duration string `json:"duration,omitempty"` - Price float32 `json:"price,omitempty"` - PriceUnit string `json:"price_unit,omitempty"` - RecordingSid string `json:"recording_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - TranscriptionText string `json:"transcription_text,omitempty"` - Type string `json:"type,omitempty"` - Uri string `json:"uri,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ApiVersion string `json:"ApiVersion,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + Duration string `json:"Duration,omitempty"` + Price float32 `json:"Price,omitempty"` + PriceUnit string `json:"PriceUnit,omitempty"` + RecordingSid string `json:"RecordingSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Status string `json:"Status,omitempty"` + TranscriptionText string `json:"TranscriptionText,omitempty"` + Type string `json:"Type,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_recording_recording_transcription_read_response.go b/rest/api/v2010/model_api_v2010_account_recording_recording_transcription_read_response.go index cb0e69df8..d30a209e3 100644 --- a/rest/api/v2010/model_api_v2010_account_recording_recording_transcription_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_recording_recording_transcription_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountRecordingRecordingTranscriptionReadResponse struct for ApiV2010AccountRecordingRecordingTranscriptionReadResponse type ApiV2010AccountRecordingRecordingTranscriptionReadResponse struct { - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Transcriptions []ApiV2010AccountRecordingRecordingTranscription `json:"transcriptions,omitempty"` - Uri string `json:"uri,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Transcriptions []ApiV2010AccountRecordingRecordingTranscription `json:"Transcriptions,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_short_code.go b/rest/api/v2010/model_api_v2010_account_short_code.go index c43ec74dd..5deffd761 100644 --- a/rest/api/v2010/model_api_v2010_account_short_code.go +++ b/rest/api/v2010/model_api_v2010_account_short_code.go @@ -11,16 +11,16 @@ package openapi // ApiV2010AccountShortCode struct for ApiV2010AccountShortCode type ApiV2010AccountShortCode struct { - AccountSid string `json:"account_sid,omitempty"` - ApiVersion string `json:"api_version,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - ShortCode string `json:"short_code,omitempty"` - Sid string `json:"sid,omitempty"` - SmsFallbackMethod string `json:"sms_fallback_method,omitempty"` - SmsFallbackUrl string `json:"sms_fallback_url,omitempty"` - SmsMethod string `json:"sms_method,omitempty"` - SmsUrl string `json:"sms_url,omitempty"` - Uri string `json:"uri,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ApiVersion string `json:"ApiVersion,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + ShortCode string `json:"ShortCode,omitempty"` + Sid string `json:"Sid,omitempty"` + SmsFallbackMethod string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl string `json:"SmsFallbackUrl,omitempty"` + SmsMethod string `json:"SmsMethod,omitempty"` + SmsUrl string `json:"SmsUrl,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_short_code_read_response.go b/rest/api/v2010/model_api_v2010_account_short_code_read_response.go index 7150eac0a..3ea0f8e48 100644 --- a/rest/api/v2010/model_api_v2010_account_short_code_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_short_code_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountShortCodeReadResponse struct for ApiV2010AccountShortCodeReadResponse type ApiV2010AccountShortCodeReadResponse struct { - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - ShortCodes []ApiV2010AccountShortCode `json:"short_codes,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + ShortCodes []ApiV2010AccountShortCode `json:"ShortCodes,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_signing_key.go b/rest/api/v2010/model_api_v2010_account_signing_key.go index 16883ed95..79b409d5d 100644 --- a/rest/api/v2010/model_api_v2010_account_signing_key.go +++ b/rest/api/v2010/model_api_v2010_account_signing_key.go @@ -11,8 +11,8 @@ package openapi // ApiV2010AccountSigningKey struct for ApiV2010AccountSigningKey type ApiV2010AccountSigningKey struct { - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Sid string `json:"sid,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Sid string `json:"Sid,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_signing_key_read_response.go b/rest/api/v2010/model_api_v2010_account_signing_key_read_response.go index bdca3df78..090cf0fa8 100644 --- a/rest/api/v2010/model_api_v2010_account_signing_key_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_signing_key_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountSigningKeyReadResponse struct for ApiV2010AccountSigningKeyReadResponse type ApiV2010AccountSigningKeyReadResponse struct { - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - SigningKeys []ApiV2010AccountSigningKey `json:"signing_keys,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + SigningKeys []ApiV2010AccountSigningKey `json:"SigningKeys,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list.go b/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list.go index 9171fbb73..ddcb612a1 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list.go +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list.go @@ -11,11 +11,11 @@ package openapi // ApiV2010AccountSipSipCredentialList struct for ApiV2010AccountSipSipCredentialList type ApiV2010AccountSipSipCredentialList struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Sid string `json:"sid,omitempty"` - SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` - Uri string `json:"uri,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Sid string `json:"Sid,omitempty"` + SubresourceUris map[string]interface{} `json:"SubresourceUris,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list_read_response.go b/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list_read_response.go index 663af6e10..305338da5 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountSipSipCredentialListReadResponse struct for ApiV2010AccountSipSipCredentialListReadResponse type ApiV2010AccountSipSipCredentialListReadResponse struct { - CredentialLists []ApiV2010AccountSipSipCredentialList `json:"credential_lists,omitempty"` - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + CredentialLists []ApiV2010AccountSipSipCredentialList `json:"CredentialLists,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list_sip_credential.go b/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list_sip_credential.go index 83159b5af..d5d370945 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list_sip_credential.go +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list_sip_credential.go @@ -11,11 +11,11 @@ package openapi // ApiV2010AccountSipSipCredentialListSipCredential struct for ApiV2010AccountSipSipCredentialListSipCredential type ApiV2010AccountSipSipCredentialListSipCredential struct { - AccountSid string `json:"account_sid,omitempty"` - CredentialListSid string `json:"credential_list_sid,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - Sid string `json:"sid,omitempty"` - Uri string `json:"uri,omitempty"` - Username string `json:"username,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + CredentialListSid string `json:"CredentialListSid,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + Sid string `json:"Sid,omitempty"` + Uri string `json:"Uri,omitempty"` + Username string `json:"Username,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list_sip_credential_read_response.go b/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list_sip_credential_read_response.go index f6cfb1f37..e20ff7fa6 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list_sip_credential_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list_sip_credential_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountSipSipCredentialListSipCredentialReadResponse struct for ApiV2010AccountSipSipCredentialListSipCredentialReadResponse type ApiV2010AccountSipSipCredentialListSipCredentialReadResponse struct { - Credentials []ApiV2010AccountSipSipCredentialListSipCredential `json:"credentials,omitempty"` - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + Credentials []ApiV2010AccountSipSipCredentialListSipCredential `json:"Credentials,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_domain.go b/rest/api/v2010/model_api_v2010_account_sip_sip_domain.go index 40faf7499..d00025b87 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_domain.go +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_domain.go @@ -11,25 +11,25 @@ package openapi // ApiV2010AccountSipSipDomain struct for ApiV2010AccountSipSipDomain type ApiV2010AccountSipSipDomain struct { - AccountSid string `json:"account_sid,omitempty"` - ApiVersion string `json:"api_version,omitempty"` - AuthType string `json:"auth_type,omitempty"` - ByocTrunkSid string `json:"byoc_trunk_sid,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - DomainName string `json:"domain_name,omitempty"` - EmergencyCallerSid string `json:"emergency_caller_sid,omitempty"` - EmergencyCallingEnabled bool `json:"emergency_calling_enabled,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Secure bool `json:"secure,omitempty"` - Sid string `json:"sid,omitempty"` - SipRegistration bool `json:"sip_registration,omitempty"` - SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` - Uri string `json:"uri,omitempty"` - VoiceFallbackMethod string `json:"voice_fallback_method,omitempty"` - VoiceFallbackUrl string `json:"voice_fallback_url,omitempty"` - VoiceMethod string `json:"voice_method,omitempty"` - VoiceStatusCallbackMethod string `json:"voice_status_callback_method,omitempty"` - VoiceStatusCallbackUrl string `json:"voice_status_callback_url,omitempty"` - VoiceUrl string `json:"voice_url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ApiVersion string `json:"ApiVersion,omitempty"` + AuthType string `json:"AuthType,omitempty"` + ByocTrunkSid string `json:"ByocTrunkSid,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + DomainName string `json:"DomainName,omitempty"` + EmergencyCallerSid string `json:"EmergencyCallerSid,omitempty"` + EmergencyCallingEnabled bool `json:"EmergencyCallingEnabled,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Secure bool `json:"Secure,omitempty"` + Sid string `json:"Sid,omitempty"` + SipRegistration bool `json:"SipRegistration,omitempty"` + SubresourceUris map[string]interface{} `json:"SubresourceUris,omitempty"` + Uri string `json:"Uri,omitempty"` + VoiceFallbackMethod string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod string `json:"VoiceMethod,omitempty"` + VoiceStatusCallbackMethod string `json:"VoiceStatusCallbackMethod,omitempty"` + VoiceStatusCallbackUrl string `json:"VoiceStatusCallbackUrl,omitempty"` + VoiceUrl string `json:"VoiceUrl,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_read_response.go b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_read_response.go index 4f07cd654..51b4ae5cc 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountSipSipDomainReadResponse struct for ApiV2010AccountSipSipDomainReadResponse type ApiV2010AccountSipSipDomainReadResponse struct { - Domains []ApiV2010AccountSipSipDomain `json:"domains,omitempty"` - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + Domains []ApiV2010AccountSipSipDomain `json:"Domains,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_credential_list_mapping.go b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_credential_list_mapping.go index 23ecb3e5c..000b1c531 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_credential_list_mapping.go +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_credential_list_mapping.go @@ -11,9 +11,9 @@ package openapi // ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping struct for ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping type ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Sid string `json:"sid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Sid string `json:"Sid,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_credential_list_mapping_read_response.go b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_credential_list_mapping_read_response.go index c70536afb..ecbab0ea9 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_credential_list_mapping_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_credential_list_mapping_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse struct for ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse type ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse struct { - Contents []ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping `json:"contents,omitempty"` - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + Contents []ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping `json:"Contents,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_ip_access_control_list_mapping.go b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_ip_access_control_list_mapping.go index 74589e96b..2f5270b9a 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_ip_access_control_list_mapping.go +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_ip_access_control_list_mapping.go @@ -11,9 +11,9 @@ package openapi // ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping struct for ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping type ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Sid string `json:"sid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Sid string `json:"Sid,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_ip_access_control_list_mapping_read_response.go b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_ip_access_control_list_mapping_read_response.go index cdf792ba3..9971874b6 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_ip_access_control_list_mapping_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_ip_access_control_list_mapping_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse struct for ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse type ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse struct { - Contents []ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping `json:"contents,omitempty"` - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + Contents []ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping `json:"Contents,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_registrations_sip_auth_registrations_credential_list_mapping.go b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_registrations_sip_auth_registrations_credential_list_mapping.go index 89ad8f0f5..5c0f2a860 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_registrations_sip_auth_registrations_credential_list_mapping.go +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_registrations_sip_auth_registrations_credential_list_mapping.go @@ -11,9 +11,9 @@ package openapi // ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping struct for ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping type ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Sid string `json:"sid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Sid string `json:"Sid,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_registrations_sip_auth_registrations_credential_list_mapping_read_response.go b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_registrations_sip_auth_registrations_credential_list_mapping_read_response.go index c7eccf109..384741e0e 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_registrations_sip_auth_registrations_credential_list_mapping_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_registrations_sip_auth_registrations_credential_list_mapping_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse struct for ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse type ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse struct { - Contents []ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping `json:"contents,omitempty"` - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + Contents []ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping `json:"Contents,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_credential_list_mapping.go b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_credential_list_mapping.go index 5428b320d..82fbb5fa7 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_credential_list_mapping.go +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_credential_list_mapping.go @@ -11,11 +11,11 @@ package openapi // ApiV2010AccountSipSipDomainSipCredentialListMapping struct for ApiV2010AccountSipSipDomainSipCredentialListMapping type ApiV2010AccountSipSipDomainSipCredentialListMapping struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Sid string `json:"sid,omitempty"` - SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` - Uri string `json:"uri,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Sid string `json:"Sid,omitempty"` + SubresourceUris map[string]interface{} `json:"SubresourceUris,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_credential_list_mapping_read_response.go b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_credential_list_mapping_read_response.go index bf419ab9e..78f3e893b 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_credential_list_mapping_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_credential_list_mapping_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse struct for ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse type ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse struct { - CredentialListMappings []ApiV2010AccountSipSipDomainSipCredentialListMapping `json:"credential_list_mappings,omitempty"` - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + CredentialListMappings []ApiV2010AccountSipSipDomainSipCredentialListMapping `json:"CredentialListMappings,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_ip_access_control_list_mapping.go b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_ip_access_control_list_mapping.go index 4634f41fc..a7256187b 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_ip_access_control_list_mapping.go +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_ip_access_control_list_mapping.go @@ -11,11 +11,11 @@ package openapi // ApiV2010AccountSipSipDomainSipIpAccessControlListMapping struct for ApiV2010AccountSipSipDomainSipIpAccessControlListMapping type ApiV2010AccountSipSipDomainSipIpAccessControlListMapping struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Sid string `json:"sid,omitempty"` - SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` - Uri string `json:"uri,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Sid string `json:"Sid,omitempty"` + SubresourceUris map[string]interface{} `json:"SubresourceUris,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_ip_access_control_list_mapping_read_response.go b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_ip_access_control_list_mapping_read_response.go index 12dcaa209..cc11e7469 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_ip_access_control_list_mapping_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_ip_access_control_list_mapping_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse struct for ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse type ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse struct { - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - IpAccessControlListMappings []ApiV2010AccountSipSipDomainSipIpAccessControlListMapping `json:"ip_access_control_list_mappings,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + IpAccessControlListMappings []ApiV2010AccountSipSipDomainSipIpAccessControlListMapping `json:"IpAccessControlListMappings,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list.go b/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list.go index f142b837a..8bfcb50c4 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list.go +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list.go @@ -11,11 +11,11 @@ package openapi // ApiV2010AccountSipSipIpAccessControlList struct for ApiV2010AccountSipSipIpAccessControlList type ApiV2010AccountSipSipIpAccessControlList struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Sid string `json:"sid,omitempty"` - SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` - Uri string `json:"uri,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Sid string `json:"Sid,omitempty"` + SubresourceUris map[string]interface{} `json:"SubresourceUris,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list_read_response.go b/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list_read_response.go index a3b454aa3..56f092fed 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountSipSipIpAccessControlListReadResponse struct for ApiV2010AccountSipSipIpAccessControlListReadResponse type ApiV2010AccountSipSipIpAccessControlListReadResponse struct { - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - IpAccessControlLists []ApiV2010AccountSipSipIpAccessControlList `json:"ip_access_control_lists,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + IpAccessControlLists []ApiV2010AccountSipSipIpAccessControlList `json:"IpAccessControlLists,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list_sip_ip_address.go b/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list_sip_ip_address.go index cdff3f2d5..080f6ae73 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list_sip_ip_address.go +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list_sip_ip_address.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountSipSipIpAccessControlListSipIpAddress struct for ApiV2010AccountSipSipIpAccessControlListSipIpAddress type ApiV2010AccountSipSipIpAccessControlListSipIpAddress struct { - AccountSid string `json:"account_sid,omitempty"` - CidrPrefixLength int32 `json:"cidr_prefix_length,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - IpAccessControlListSid string `json:"ip_access_control_list_sid,omitempty"` - IpAddress string `json:"ip_address,omitempty"` - Sid string `json:"sid,omitempty"` - Uri string `json:"uri,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + CidrPrefixLength int32 `json:"CidrPrefixLength,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + IpAccessControlListSid string `json:"IpAccessControlListSid,omitempty"` + IpAddress string `json:"IpAddress,omitempty"` + Sid string `json:"Sid,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list_sip_ip_address_read_response.go b/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list_sip_ip_address_read_response.go index 2da052569..f4638bc87 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list_sip_ip_address_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list_sip_ip_address_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse struct for ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse type ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse struct { - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - IpAddresses []ApiV2010AccountSipSipIpAccessControlListSipIpAddress `json:"ip_addresses,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + IpAddresses []ApiV2010AccountSipSipIpAccessControlListSipIpAddress `json:"IpAddresses,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_token.go b/rest/api/v2010/model_api_v2010_account_token.go index 5047a004b..b5cd4a869 100644 --- a/rest/api/v2010/model_api_v2010_account_token.go +++ b/rest/api/v2010/model_api_v2010_account_token.go @@ -11,11 +11,11 @@ package openapi // ApiV2010AccountToken struct for ApiV2010AccountToken type ApiV2010AccountToken struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - IceServers []map[string]interface{} `json:"ice_servers,omitempty"` - Password string `json:"password,omitempty"` - Ttl string `json:"ttl,omitempty"` - Username string `json:"username,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + IceServers []map[string]interface{} `json:"IceServers,omitempty"` + Password string `json:"Password,omitempty"` + Ttl string `json:"Ttl,omitempty"` + Username string `json:"Username,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_transcription.go b/rest/api/v2010/model_api_v2010_account_transcription.go index 1bb22e5be..ee30ec184 100644 --- a/rest/api/v2010/model_api_v2010_account_transcription.go +++ b/rest/api/v2010/model_api_v2010_account_transcription.go @@ -11,17 +11,17 @@ package openapi // ApiV2010AccountTranscription struct for ApiV2010AccountTranscription type ApiV2010AccountTranscription struct { - AccountSid string `json:"account_sid,omitempty"` - ApiVersion string `json:"api_version,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - Duration string `json:"duration,omitempty"` - Price float32 `json:"price,omitempty"` - PriceUnit string `json:"price_unit,omitempty"` - RecordingSid string `json:"recording_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - TranscriptionText string `json:"transcription_text,omitempty"` - Type string `json:"type,omitempty"` - Uri string `json:"uri,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ApiVersion string `json:"ApiVersion,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + Duration string `json:"Duration,omitempty"` + Price float32 `json:"Price,omitempty"` + PriceUnit string `json:"PriceUnit,omitempty"` + RecordingSid string `json:"RecordingSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Status string `json:"Status,omitempty"` + TranscriptionText string `json:"TranscriptionText,omitempty"` + Type string `json:"Type,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_transcription_read_response.go b/rest/api/v2010/model_api_v2010_account_transcription_read_response.go index 810ce538c..8bbd8aee8 100644 --- a/rest/api/v2010/model_api_v2010_account_transcription_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_transcription_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountTranscriptionReadResponse struct for ApiV2010AccountTranscriptionReadResponse type ApiV2010AccountTranscriptionReadResponse struct { - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Transcriptions []ApiV2010AccountTranscription `json:"transcriptions,omitempty"` - Uri string `json:"uri,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Transcriptions []ApiV2010AccountTranscription `json:"Transcriptions,omitempty"` + Uri string `json:"Uri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record.go index 1c08a9726..79c9a60f1 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_record.go +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record.go @@ -14,19 +14,19 @@ import ( ) // ApiV2010AccountUsageUsageRecord struct for ApiV2010AccountUsageUsageRecord type ApiV2010AccountUsageUsageRecord struct { - AccountSid string `json:"account_sid,omitempty"` - ApiVersion string `json:"api_version,omitempty"` - AsOf string `json:"as_of,omitempty"` - Category string `json:"category,omitempty"` - Count string `json:"count,omitempty"` - CountUnit string `json:"count_unit,omitempty"` - Description string `json:"description,omitempty"` - EndDate time.Time `json:"end_date,omitempty"` - Price float32 `json:"price,omitempty"` - PriceUnit string `json:"price_unit,omitempty"` - StartDate time.Time `json:"start_date,omitempty"` - SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` - Uri string `json:"uri,omitempty"` - Usage string `json:"usage,omitempty"` - UsageUnit string `json:"usage_unit,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ApiVersion string `json:"ApiVersion,omitempty"` + AsOf string `json:"AsOf,omitempty"` + Category string `json:"Category,omitempty"` + Count string `json:"Count,omitempty"` + CountUnit string `json:"CountUnit,omitempty"` + Description string `json:"Description,omitempty"` + EndDate time.Time `json:"EndDate,omitempty"` + Price float32 `json:"Price,omitempty"` + PriceUnit string `json:"PriceUnit,omitempty"` + StartDate time.Time `json:"StartDate,omitempty"` + SubresourceUris map[string]interface{} `json:"SubresourceUris,omitempty"` + Uri string `json:"Uri,omitempty"` + Usage string `json:"Usage,omitempty"` + UsageUnit string `json:"UsageUnit,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_read_response.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_read_response.go index 2bbec9d1d..f8f4c74ab 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_record_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountUsageUsageRecordReadResponse struct for ApiV2010AccountUsageUsageRecordReadResponse type ApiV2010AccountUsageUsageRecordReadResponse struct { - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` - UsageRecords []ApiV2010AccountUsageUsageRecord `json:"usage_records,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` + UsageRecords []ApiV2010AccountUsageUsageRecord `json:"UsageRecords,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_all_time.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_all_time.go index 0daec31c1..5e8425557 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_all_time.go +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_all_time.go @@ -14,19 +14,19 @@ import ( ) // ApiV2010AccountUsageUsageRecordUsageRecordAllTime struct for ApiV2010AccountUsageUsageRecordUsageRecordAllTime type ApiV2010AccountUsageUsageRecordUsageRecordAllTime struct { - AccountSid string `json:"account_sid,omitempty"` - ApiVersion string `json:"api_version,omitempty"` - AsOf string `json:"as_of,omitempty"` - Category string `json:"category,omitempty"` - Count string `json:"count,omitempty"` - CountUnit string `json:"count_unit,omitempty"` - Description string `json:"description,omitempty"` - EndDate time.Time `json:"end_date,omitempty"` - Price float32 `json:"price,omitempty"` - PriceUnit string `json:"price_unit,omitempty"` - StartDate time.Time `json:"start_date,omitempty"` - SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` - Uri string `json:"uri,omitempty"` - Usage string `json:"usage,omitempty"` - UsageUnit string `json:"usage_unit,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ApiVersion string `json:"ApiVersion,omitempty"` + AsOf string `json:"AsOf,omitempty"` + Category string `json:"Category,omitempty"` + Count string `json:"Count,omitempty"` + CountUnit string `json:"CountUnit,omitempty"` + Description string `json:"Description,omitempty"` + EndDate time.Time `json:"EndDate,omitempty"` + Price float32 `json:"Price,omitempty"` + PriceUnit string `json:"PriceUnit,omitempty"` + StartDate time.Time `json:"StartDate,omitempty"` + SubresourceUris map[string]interface{} `json:"SubresourceUris,omitempty"` + Uri string `json:"Uri,omitempty"` + Usage string `json:"Usage,omitempty"` + UsageUnit string `json:"UsageUnit,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_all_time_read_response.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_all_time_read_response.go index 56877432a..35d559530 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_all_time_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_all_time_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse struct for ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse type ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse struct { - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` - UsageRecords []ApiV2010AccountUsageUsageRecordUsageRecordAllTime `json:"usage_records,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` + UsageRecords []ApiV2010AccountUsageUsageRecordUsageRecordAllTime `json:"UsageRecords,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_daily.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_daily.go index ac036e86d..b0ac69d12 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_daily.go +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_daily.go @@ -14,19 +14,19 @@ import ( ) // ApiV2010AccountUsageUsageRecordUsageRecordDaily struct for ApiV2010AccountUsageUsageRecordUsageRecordDaily type ApiV2010AccountUsageUsageRecordUsageRecordDaily struct { - AccountSid string `json:"account_sid,omitempty"` - ApiVersion string `json:"api_version,omitempty"` - AsOf string `json:"as_of,omitempty"` - Category string `json:"category,omitempty"` - Count string `json:"count,omitempty"` - CountUnit string `json:"count_unit,omitempty"` - Description string `json:"description,omitempty"` - EndDate time.Time `json:"end_date,omitempty"` - Price float32 `json:"price,omitempty"` - PriceUnit string `json:"price_unit,omitempty"` - StartDate time.Time `json:"start_date,omitempty"` - SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` - Uri string `json:"uri,omitempty"` - Usage string `json:"usage,omitempty"` - UsageUnit string `json:"usage_unit,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ApiVersion string `json:"ApiVersion,omitempty"` + AsOf string `json:"AsOf,omitempty"` + Category string `json:"Category,omitempty"` + Count string `json:"Count,omitempty"` + CountUnit string `json:"CountUnit,omitempty"` + Description string `json:"Description,omitempty"` + EndDate time.Time `json:"EndDate,omitempty"` + Price float32 `json:"Price,omitempty"` + PriceUnit string `json:"PriceUnit,omitempty"` + StartDate time.Time `json:"StartDate,omitempty"` + SubresourceUris map[string]interface{} `json:"SubresourceUris,omitempty"` + Uri string `json:"Uri,omitempty"` + Usage string `json:"Usage,omitempty"` + UsageUnit string `json:"UsageUnit,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_daily_read_response.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_daily_read_response.go index baedf62cc..d9630b6af 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_daily_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_daily_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse struct for ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse type ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse struct { - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` - UsageRecords []ApiV2010AccountUsageUsageRecordUsageRecordDaily `json:"usage_records,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` + UsageRecords []ApiV2010AccountUsageUsageRecordUsageRecordDaily `json:"UsageRecords,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_last_month.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_last_month.go index c8307b438..0b6a9fec4 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_last_month.go +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_last_month.go @@ -14,19 +14,19 @@ import ( ) // ApiV2010AccountUsageUsageRecordUsageRecordLastMonth struct for ApiV2010AccountUsageUsageRecordUsageRecordLastMonth type ApiV2010AccountUsageUsageRecordUsageRecordLastMonth struct { - AccountSid string `json:"account_sid,omitempty"` - ApiVersion string `json:"api_version,omitempty"` - AsOf string `json:"as_of,omitempty"` - Category string `json:"category,omitempty"` - Count string `json:"count,omitempty"` - CountUnit string `json:"count_unit,omitempty"` - Description string `json:"description,omitempty"` - EndDate time.Time `json:"end_date,omitempty"` - Price float32 `json:"price,omitempty"` - PriceUnit string `json:"price_unit,omitempty"` - StartDate time.Time `json:"start_date,omitempty"` - SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` - Uri string `json:"uri,omitempty"` - Usage string `json:"usage,omitempty"` - UsageUnit string `json:"usage_unit,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ApiVersion string `json:"ApiVersion,omitempty"` + AsOf string `json:"AsOf,omitempty"` + Category string `json:"Category,omitempty"` + Count string `json:"Count,omitempty"` + CountUnit string `json:"CountUnit,omitempty"` + Description string `json:"Description,omitempty"` + EndDate time.Time `json:"EndDate,omitempty"` + Price float32 `json:"Price,omitempty"` + PriceUnit string `json:"PriceUnit,omitempty"` + StartDate time.Time `json:"StartDate,omitempty"` + SubresourceUris map[string]interface{} `json:"SubresourceUris,omitempty"` + Uri string `json:"Uri,omitempty"` + Usage string `json:"Usage,omitempty"` + UsageUnit string `json:"UsageUnit,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_last_month_read_response.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_last_month_read_response.go index ef4768cd5..879eeca39 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_last_month_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_last_month_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse struct for ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse type ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse struct { - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` - UsageRecords []ApiV2010AccountUsageUsageRecordUsageRecordLastMonth `json:"usage_records,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` + UsageRecords []ApiV2010AccountUsageUsageRecordUsageRecordLastMonth `json:"UsageRecords,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_monthly.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_monthly.go index 2fd9404d3..9f277ec16 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_monthly.go +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_monthly.go @@ -14,19 +14,19 @@ import ( ) // ApiV2010AccountUsageUsageRecordUsageRecordMonthly struct for ApiV2010AccountUsageUsageRecordUsageRecordMonthly type ApiV2010AccountUsageUsageRecordUsageRecordMonthly struct { - AccountSid string `json:"account_sid,omitempty"` - ApiVersion string `json:"api_version,omitempty"` - AsOf string `json:"as_of,omitempty"` - Category string `json:"category,omitempty"` - Count string `json:"count,omitempty"` - CountUnit string `json:"count_unit,omitempty"` - Description string `json:"description,omitempty"` - EndDate time.Time `json:"end_date,omitempty"` - Price float32 `json:"price,omitempty"` - PriceUnit string `json:"price_unit,omitempty"` - StartDate time.Time `json:"start_date,omitempty"` - SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` - Uri string `json:"uri,omitempty"` - Usage string `json:"usage,omitempty"` - UsageUnit string `json:"usage_unit,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ApiVersion string `json:"ApiVersion,omitempty"` + AsOf string `json:"AsOf,omitempty"` + Category string `json:"Category,omitempty"` + Count string `json:"Count,omitempty"` + CountUnit string `json:"CountUnit,omitempty"` + Description string `json:"Description,omitempty"` + EndDate time.Time `json:"EndDate,omitempty"` + Price float32 `json:"Price,omitempty"` + PriceUnit string `json:"PriceUnit,omitempty"` + StartDate time.Time `json:"StartDate,omitempty"` + SubresourceUris map[string]interface{} `json:"SubresourceUris,omitempty"` + Uri string `json:"Uri,omitempty"` + Usage string `json:"Usage,omitempty"` + UsageUnit string `json:"UsageUnit,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_monthly_read_response.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_monthly_read_response.go index a712c125c..5bc3f4b2f 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_monthly_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_monthly_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse struct for ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse type ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse struct { - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` - UsageRecords []ApiV2010AccountUsageUsageRecordUsageRecordMonthly `json:"usage_records,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` + UsageRecords []ApiV2010AccountUsageUsageRecordUsageRecordMonthly `json:"UsageRecords,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_this_month.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_this_month.go index 1e3bcc967..f31958e73 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_this_month.go +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_this_month.go @@ -14,19 +14,19 @@ import ( ) // ApiV2010AccountUsageUsageRecordUsageRecordThisMonth struct for ApiV2010AccountUsageUsageRecordUsageRecordThisMonth type ApiV2010AccountUsageUsageRecordUsageRecordThisMonth struct { - AccountSid string `json:"account_sid,omitempty"` - ApiVersion string `json:"api_version,omitempty"` - AsOf string `json:"as_of,omitempty"` - Category string `json:"category,omitempty"` - Count string `json:"count,omitempty"` - CountUnit string `json:"count_unit,omitempty"` - Description string `json:"description,omitempty"` - EndDate time.Time `json:"end_date,omitempty"` - Price float32 `json:"price,omitempty"` - PriceUnit string `json:"price_unit,omitempty"` - StartDate time.Time `json:"start_date,omitempty"` - SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` - Uri string `json:"uri,omitempty"` - Usage string `json:"usage,omitempty"` - UsageUnit string `json:"usage_unit,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ApiVersion string `json:"ApiVersion,omitempty"` + AsOf string `json:"AsOf,omitempty"` + Category string `json:"Category,omitempty"` + Count string `json:"Count,omitempty"` + CountUnit string `json:"CountUnit,omitempty"` + Description string `json:"Description,omitempty"` + EndDate time.Time `json:"EndDate,omitempty"` + Price float32 `json:"Price,omitempty"` + PriceUnit string `json:"PriceUnit,omitempty"` + StartDate time.Time `json:"StartDate,omitempty"` + SubresourceUris map[string]interface{} `json:"SubresourceUris,omitempty"` + Uri string `json:"Uri,omitempty"` + Usage string `json:"Usage,omitempty"` + UsageUnit string `json:"UsageUnit,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_this_month_read_response.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_this_month_read_response.go index 902b2764a..0ce72bfd9 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_this_month_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_this_month_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse struct for ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse type ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse struct { - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` - UsageRecords []ApiV2010AccountUsageUsageRecordUsageRecordThisMonth `json:"usage_records,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` + UsageRecords []ApiV2010AccountUsageUsageRecordUsageRecordThisMonth `json:"UsageRecords,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_today.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_today.go index de12deb57..425dab5d7 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_today.go +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_today.go @@ -14,19 +14,19 @@ import ( ) // ApiV2010AccountUsageUsageRecordUsageRecordToday struct for ApiV2010AccountUsageUsageRecordUsageRecordToday type ApiV2010AccountUsageUsageRecordUsageRecordToday struct { - AccountSid string `json:"account_sid,omitempty"` - ApiVersion string `json:"api_version,omitempty"` - AsOf string `json:"as_of,omitempty"` - Category string `json:"category,omitempty"` - Count string `json:"count,omitempty"` - CountUnit string `json:"count_unit,omitempty"` - Description string `json:"description,omitempty"` - EndDate time.Time `json:"end_date,omitempty"` - Price float32 `json:"price,omitempty"` - PriceUnit string `json:"price_unit,omitempty"` - StartDate time.Time `json:"start_date,omitempty"` - SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` - Uri string `json:"uri,omitempty"` - Usage string `json:"usage,omitempty"` - UsageUnit string `json:"usage_unit,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ApiVersion string `json:"ApiVersion,omitempty"` + AsOf string `json:"AsOf,omitempty"` + Category string `json:"Category,omitempty"` + Count string `json:"Count,omitempty"` + CountUnit string `json:"CountUnit,omitempty"` + Description string `json:"Description,omitempty"` + EndDate time.Time `json:"EndDate,omitempty"` + Price float32 `json:"Price,omitempty"` + PriceUnit string `json:"PriceUnit,omitempty"` + StartDate time.Time `json:"StartDate,omitempty"` + SubresourceUris map[string]interface{} `json:"SubresourceUris,omitempty"` + Uri string `json:"Uri,omitempty"` + Usage string `json:"Usage,omitempty"` + UsageUnit string `json:"UsageUnit,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_today_read_response.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_today_read_response.go index d0e299185..38bcef90b 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_today_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_today_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse struct for ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse type ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse struct { - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` - UsageRecords []ApiV2010AccountUsageUsageRecordUsageRecordToday `json:"usage_records,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` + UsageRecords []ApiV2010AccountUsageUsageRecordUsageRecordToday `json:"UsageRecords,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yearly.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yearly.go index 74a76960a..4dbddf22b 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yearly.go +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yearly.go @@ -14,19 +14,19 @@ import ( ) // ApiV2010AccountUsageUsageRecordUsageRecordYearly struct for ApiV2010AccountUsageUsageRecordUsageRecordYearly type ApiV2010AccountUsageUsageRecordUsageRecordYearly struct { - AccountSid string `json:"account_sid,omitempty"` - ApiVersion string `json:"api_version,omitempty"` - AsOf string `json:"as_of,omitempty"` - Category string `json:"category,omitempty"` - Count string `json:"count,omitempty"` - CountUnit string `json:"count_unit,omitempty"` - Description string `json:"description,omitempty"` - EndDate time.Time `json:"end_date,omitempty"` - Price float32 `json:"price,omitempty"` - PriceUnit string `json:"price_unit,omitempty"` - StartDate time.Time `json:"start_date,omitempty"` - SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` - Uri string `json:"uri,omitempty"` - Usage string `json:"usage,omitempty"` - UsageUnit string `json:"usage_unit,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ApiVersion string `json:"ApiVersion,omitempty"` + AsOf string `json:"AsOf,omitempty"` + Category string `json:"Category,omitempty"` + Count string `json:"Count,omitempty"` + CountUnit string `json:"CountUnit,omitempty"` + Description string `json:"Description,omitempty"` + EndDate time.Time `json:"EndDate,omitempty"` + Price float32 `json:"Price,omitempty"` + PriceUnit string `json:"PriceUnit,omitempty"` + StartDate time.Time `json:"StartDate,omitempty"` + SubresourceUris map[string]interface{} `json:"SubresourceUris,omitempty"` + Uri string `json:"Uri,omitempty"` + Usage string `json:"Usage,omitempty"` + UsageUnit string `json:"UsageUnit,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yearly_read_response.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yearly_read_response.go index 9099b3456..81a0a0cec 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yearly_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yearly_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse struct for ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse type ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse struct { - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` - UsageRecords []ApiV2010AccountUsageUsageRecordUsageRecordYearly `json:"usage_records,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` + UsageRecords []ApiV2010AccountUsageUsageRecordUsageRecordYearly `json:"UsageRecords,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yesterday.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yesterday.go index 6b5fdf732..c90b62b5d 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yesterday.go +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yesterday.go @@ -14,19 +14,19 @@ import ( ) // ApiV2010AccountUsageUsageRecordUsageRecordYesterday struct for ApiV2010AccountUsageUsageRecordUsageRecordYesterday type ApiV2010AccountUsageUsageRecordUsageRecordYesterday struct { - AccountSid string `json:"account_sid,omitempty"` - ApiVersion string `json:"api_version,omitempty"` - AsOf string `json:"as_of,omitempty"` - Category string `json:"category,omitempty"` - Count string `json:"count,omitempty"` - CountUnit string `json:"count_unit,omitempty"` - Description string `json:"description,omitempty"` - EndDate time.Time `json:"end_date,omitempty"` - Price float32 `json:"price,omitempty"` - PriceUnit string `json:"price_unit,omitempty"` - StartDate time.Time `json:"start_date,omitempty"` - SubresourceUris map[string]interface{} `json:"subresource_uris,omitempty"` - Uri string `json:"uri,omitempty"` - Usage string `json:"usage,omitempty"` - UsageUnit string `json:"usage_unit,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ApiVersion string `json:"ApiVersion,omitempty"` + AsOf string `json:"AsOf,omitempty"` + Category string `json:"Category,omitempty"` + Count string `json:"Count,omitempty"` + CountUnit string `json:"CountUnit,omitempty"` + Description string `json:"Description,omitempty"` + EndDate time.Time `json:"EndDate,omitempty"` + Price float32 `json:"Price,omitempty"` + PriceUnit string `json:"PriceUnit,omitempty"` + StartDate time.Time `json:"StartDate,omitempty"` + SubresourceUris map[string]interface{} `json:"SubresourceUris,omitempty"` + Uri string `json:"Uri,omitempty"` + Usage string `json:"Usage,omitempty"` + UsageUnit string `json:"UsageUnit,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yesterday_read_response.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yesterday_read_response.go index 4ca881c88..d8f2f8135 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yesterday_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yesterday_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse struct for ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse type ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse struct { - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` - UsageRecords []ApiV2010AccountUsageUsageRecordUsageRecordYesterday `json:"usage_records,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` + UsageRecords []ApiV2010AccountUsageUsageRecordUsageRecordYesterday `json:"UsageRecords,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_trigger.go b/rest/api/v2010/model_api_v2010_account_usage_usage_trigger.go index 8fe0ce854..0dd1cbf7b 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_trigger.go +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_trigger.go @@ -11,20 +11,20 @@ package openapi // ApiV2010AccountUsageUsageTrigger struct for ApiV2010AccountUsageUsageTrigger type ApiV2010AccountUsageUsageTrigger struct { - AccountSid string `json:"account_sid,omitempty"` - ApiVersion string `json:"api_version,omitempty"` - CallbackMethod string `json:"callback_method,omitempty"` - CallbackUrl string `json:"callback_url,omitempty"` - CurrentValue string `json:"current_value,omitempty"` - DateCreated string `json:"date_created,omitempty"` - DateFired string `json:"date_fired,omitempty"` - DateUpdated string `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Recurring string `json:"recurring,omitempty"` - Sid string `json:"sid,omitempty"` - TriggerBy string `json:"trigger_by,omitempty"` - TriggerValue string `json:"trigger_value,omitempty"` - Uri string `json:"uri,omitempty"` - UsageCategory string `json:"usage_category,omitempty"` - UsageRecordUri string `json:"usage_record_uri,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ApiVersion string `json:"ApiVersion,omitempty"` + CallbackMethod string `json:"CallbackMethod,omitempty"` + CallbackUrl string `json:"CallbackUrl,omitempty"` + CurrentValue string `json:"CurrentValue,omitempty"` + DateCreated string `json:"DateCreated,omitempty"` + DateFired string `json:"DateFired,omitempty"` + DateUpdated string `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Recurring string `json:"Recurring,omitempty"` + Sid string `json:"Sid,omitempty"` + TriggerBy string `json:"TriggerBy,omitempty"` + TriggerValue string `json:"TriggerValue,omitempty"` + Uri string `json:"Uri,omitempty"` + UsageCategory string `json:"UsageCategory,omitempty"` + UsageRecordUri string `json:"UsageRecordUri,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_trigger_read_response.go b/rest/api/v2010/model_api_v2010_account_usage_usage_trigger_read_response.go index 267f44dd4..99ac9c5e9 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_trigger_read_response.go +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_trigger_read_response.go @@ -11,13 +11,13 @@ package openapi // ApiV2010AccountUsageUsageTriggerReadResponse struct for ApiV2010AccountUsageUsageTriggerReadResponse type ApiV2010AccountUsageUsageTriggerReadResponse struct { - End int32 `json:"end,omitempty"` - FirstPageUri string `json:"first_page_uri,omitempty"` - NextPageUri string `json:"next_page_uri,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUri string `json:"previous_page_uri,omitempty"` - Start int32 `json:"start,omitempty"` - Uri string `json:"uri,omitempty"` - UsageTriggers []ApiV2010AccountUsageUsageTrigger `json:"usage_triggers,omitempty"` + End int32 `json:"End,omitempty"` + FirstPageUri string `json:"FirstPageUri,omitempty"` + NextPageUri string `json:"NextPageUri,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUri string `json:"PreviousPageUri,omitempty"` + Start int32 `json:"Start,omitempty"` + Uri string `json:"Uri,omitempty"` + UsageTriggers []ApiV2010AccountUsageUsageTrigger `json:"UsageTriggers,omitempty"` } diff --git a/rest/api/v2010/model_api_v2010_account_validation_request.go b/rest/api/v2010/model_api_v2010_account_validation_request.go index 700be2c14..467e3af58 100644 --- a/rest/api/v2010/model_api_v2010_account_validation_request.go +++ b/rest/api/v2010/model_api_v2010_account_validation_request.go @@ -11,9 +11,9 @@ package openapi // ApiV2010AccountValidationRequest struct for ApiV2010AccountValidationRequest type ApiV2010AccountValidationRequest struct { - AccountSid string `json:"account_sid,omitempty"` - CallSid string `json:"call_sid,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - PhoneNumber string `json:"phone_number,omitempty"` - ValidationCode string `json:"validation_code,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + CallSid string `json:"CallSid,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + PhoneNumber string `json:"PhoneNumber,omitempty"` + ValidationCode string `json:"ValidationCode,omitempty"` } diff --git a/rest/autopilot/v1/api_default.go b/rest/autopilot/v1/api_default.go index 00bf942c3..e53df8a73 100644 --- a/rest/autopilot/v1/api_default.go +++ b/rest/autopilot/v1/api_default.go @@ -15,6 +15,7 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" ) type DefaultApiService struct { @@ -54,14 +55,15 @@ CreateAssistant Method for CreateAssistant func (c *DefaultApiService) CreateAssistant(params *CreateAssistantParams) (*AutopilotV1Assistant, error) { path := "/v1/Assistants" + data := url.Values{} headers := 0 if params != nil && params.CallbackEvents != nil { - data.Set("CallbackEvents", *params.CallbackEvents) + data.Set("CallbackEvents", *params.CallbackEvents) } if params != nil && params.CallbackUrl != nil { - data.Set("CallbackUrl", *params.CallbackUrl) + data.Set("CallbackUrl", *params.CallbackUrl) } if params != nil && params.Defaults != nil { v, err := json.Marshal(params.Defaults) @@ -70,13 +72,13 @@ func (c *DefaultApiService) CreateAssistant(params *CreateAssistantParams) (*Aut return nil, err } - data.Set("Defaults", string(v)) + data.Set("Defaults", fmt.Sprint(v)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.LogQueries != nil { - data.Set("LogQueries", string(*params.LogQueries)) + data.Set("LogQueries", fmt.Sprint(*params.LogQueries)) } if params != nil && params.StyleSheet != nil { v, err := json.Marshal(params.StyleSheet) @@ -85,10 +87,10 @@ func (c *DefaultApiService) CreateAssistant(params *CreateAssistantParams) (*Aut return nil, err } - data.Set("StyleSheet", string(v)) + data.Set("StyleSheet", fmt.Sprint(v)) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -114,26 +116,27 @@ type CreateFieldParams struct { /* CreateField Method for CreateField - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the new resource. - * @param taskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) resource associated with the new Field resource. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the new resource. + * @param TaskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) resource associated with the new Field resource. * @param optional nil or *CreateFieldOpts - Optional Parameters: * @param "FieldType" (string) - The Field Type of the new field. Can be: a [Built-in Field Type](https://www.twilio.com/docs/autopilot/built-in-field-types), the `unique_name`, or the `sid` of a custom Field Type. * @param "UniqueName" (string) - An application-defined string that uniquely identifies the new resource. This value must be a unique string of no more than 64 characters. It can be used as an alternative to the `sid` in the URL path to address the resource. @return AutopilotV1AssistantTaskField */ -func (c *DefaultApiService) CreateField(assistantSid string, taskSid string, params *CreateFieldParams) (*AutopilotV1AssistantTaskField, error) { +func (c *DefaultApiService) CreateField(AssistantSid string, TaskSid string, params *CreateFieldParams) (*AutopilotV1AssistantTaskField, error) { path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", TaskSid, -1) + data := url.Values{} headers := 0 if params != nil && params.FieldType != nil { - data.Set("FieldType", *params.FieldType) + data.Set("FieldType", *params.FieldType) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -159,24 +162,25 @@ type CreateFieldTypeParams struct { /* CreateFieldType Method for CreateFieldType - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the new resource. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the new resource. * @param optional nil or *CreateFieldTypeOpts - Optional Parameters: * @param "FriendlyName" (string) - A descriptive string that you create to describe the new resource. It is not unique and can be up to 255 characters long. * @param "UniqueName" (string) - An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. The first 64 characters must be unique. @return AutopilotV1AssistantFieldType */ -func (c *DefaultApiService) CreateFieldType(assistantSid string, params *CreateFieldTypeParams) (*AutopilotV1AssistantFieldType, error) { +func (c *DefaultApiService) CreateFieldType(AssistantSid string, params *CreateFieldTypeParams) (*AutopilotV1AssistantFieldType, error) { path := "/v1/Assistants/{AssistantSid}/FieldTypes" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -203,30 +207,31 @@ type CreateFieldValueParams struct { /* CreateFieldValue Method for CreateFieldValue - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the FieldType associated with the new resource. - * @param fieldTypeSid The SID of the Field Type associated with the Field Value. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the FieldType associated with the new resource. + * @param FieldTypeSid The SID of the Field Type associated with the Field Value. * @param optional nil or *CreateFieldValueOpts - Optional Parameters: * @param "Language" (string) - The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) tag that specifies the language of the value. Currently supported tags: `en-US` * @param "SynonymOf" (string) - The string value that indicates which word the field value is a synonym of. * @param "Value" (string) - The Field Value data. @return AutopilotV1AssistantFieldTypeFieldValue */ -func (c *DefaultApiService) CreateFieldValue(assistantSid string, fieldTypeSid string, params *CreateFieldValueParams) (*AutopilotV1AssistantFieldTypeFieldValue, error) { +func (c *DefaultApiService) CreateFieldValue(AssistantSid string, FieldTypeSid string, params *CreateFieldValueParams) (*AutopilotV1AssistantFieldTypeFieldValue, error) { path := "/v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"FieldTypeSid"+"}", fieldTypeSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"FieldTypeSid"+"}", FieldTypeSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Language != nil { - data.Set("Language", *params.Language) + data.Set("Language", *params.Language) } if params != nil && params.SynonymOf != nil { - data.Set("SynonymOf", *params.SynonymOf) + data.Set("SynonymOf", *params.SynonymOf) } if params != nil && params.Value != nil { - data.Set("Value", *params.Value) + data.Set("Value", *params.Value) } @@ -252,24 +257,25 @@ type CreateModelBuildParams struct { /* CreateModelBuild Method for CreateModelBuild - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the new resource. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the new resource. * @param optional nil or *CreateModelBuildOpts - Optional Parameters: * @param "StatusCallback" (string) - The URL we should call using a POST method to send status information to your application. * @param "UniqueName" (string) - An application-defined string that uniquely identifies the new resource. This value must be a unique string of no more than 64 characters. It can be used as an alternative to the `sid` in the URL path to address the resource. @return AutopilotV1AssistantModelBuild */ -func (c *DefaultApiService) CreateModelBuild(assistantSid string, params *CreateModelBuildParams) (*AutopilotV1AssistantModelBuild, error) { +func (c *DefaultApiService) CreateModelBuild(AssistantSid string, params *CreateModelBuildParams) (*AutopilotV1AssistantModelBuild, error) { path := "/v1/Assistants/{AssistantSid}/ModelBuilds" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + data := url.Values{} headers := 0 if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) + data.Set("StatusCallback", *params.StatusCallback) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -297,7 +303,7 @@ type CreateQueryParams struct { /* CreateQuery Method for CreateQuery - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the new resource. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the new resource. * @param optional nil or *CreateQueryOpts - Optional Parameters: * @param "Language" (string) - The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the new query. For example: `en-US`. * @param "ModelBuild" (string) - The SID or unique name of the [Model Build](https://www.twilio.com/docs/autopilot/api/model-build) to be queried. @@ -305,24 +311,25 @@ CreateQuery Method for CreateQuery * @param "Tasks" (string) - The list of tasks to limit the new query to. Tasks are expressed as a comma-separated list of task `unique_name` values. For example, `task-unique_name-1, task-unique_name-2`. Listing specific tasks is useful to constrain the paths that a user can take. @return AutopilotV1AssistantQuery */ -func (c *DefaultApiService) CreateQuery(assistantSid string, params *CreateQueryParams) (*AutopilotV1AssistantQuery, error) { +func (c *DefaultApiService) CreateQuery(AssistantSid string, params *CreateQueryParams) (*AutopilotV1AssistantQuery, error) { path := "/v1/Assistants/{AssistantSid}/Queries" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Language != nil { - data.Set("Language", *params.Language) + data.Set("Language", *params.Language) } if params != nil && params.ModelBuild != nil { - data.Set("ModelBuild", *params.ModelBuild) + data.Set("ModelBuild", *params.ModelBuild) } if params != nil && params.Query != nil { - data.Set("Query", *params.Query) + data.Set("Query", *params.Query) } if params != nil && params.Tasks != nil { - data.Set("Tasks", *params.Tasks) + data.Set("Tasks", *params.Tasks) } @@ -349,30 +356,31 @@ type CreateSampleParams struct { /* CreateSample Method for CreateSample - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the new resource. - * @param taskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the Sample resource to create. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the new resource. + * @param TaskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the Sample resource to create. * @param optional nil or *CreateSampleOpts - Optional Parameters: * @param "Language" (string) - The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the new sample. For example: `en-US`. * @param "SourceChannel" (string) - The communication channel from which the new sample was captured. Can be: `voice`, `sms`, `chat`, `alexa`, `google-assistant`, `slack`, or null if not included. * @param "TaggedText" (string) - The text example of how end users might express the task. The sample can contain [Field tag blocks](https://www.twilio.com/docs/autopilot/api/task-sample#field-tagging). @return AutopilotV1AssistantTaskSample */ -func (c *DefaultApiService) CreateSample(assistantSid string, taskSid string, params *CreateSampleParams) (*AutopilotV1AssistantTaskSample, error) { +func (c *DefaultApiService) CreateSample(AssistantSid string, TaskSid string, params *CreateSampleParams) (*AutopilotV1AssistantTaskSample, error) { path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", TaskSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Language != nil { - data.Set("Language", *params.Language) + data.Set("Language", *params.Language) } if params != nil && params.SourceChannel != nil { - data.Set("SourceChannel", *params.SourceChannel) + data.Set("SourceChannel", *params.SourceChannel) } if params != nil && params.TaggedText != nil { - data.Set("TaggedText", *params.TaggedText) + data.Set("TaggedText", *params.TaggedText) } @@ -400,7 +408,7 @@ type CreateTaskParams struct { /* CreateTask Method for CreateTask - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the new resource. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the new resource. * @param optional nil or *CreateTaskOpts - Optional Parameters: * @param "Actions" (map[string]interface{}) - The JSON string that specifies the [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the Assistant on how to perform the task. It is optional and not unique. * @param "ActionsUrl" (string) - The URL from which the Assistant can fetch actions. @@ -408,9 +416,10 @@ CreateTask Method for CreateTask * @param "UniqueName" (string) - An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. This value must be unique and 64 characters or less in length. @return AutopilotV1AssistantTask */ -func (c *DefaultApiService) CreateTask(assistantSid string, params *CreateTaskParams) (*AutopilotV1AssistantTask, error) { +func (c *DefaultApiService) CreateTask(AssistantSid string, params *CreateTaskParams) (*AutopilotV1AssistantTask, error) { path := "/v1/Assistants/{AssistantSid}/Tasks" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + data := url.Values{} headers := 0 @@ -422,16 +431,16 @@ func (c *DefaultApiService) CreateTask(assistantSid string, params *CreateTaskPa return nil, err } - data.Set("Actions", string(v)) + data.Set("Actions", fmt.Sprint(v)) } if params != nil && params.ActionsUrl != nil { - data.Set("ActionsUrl", *params.ActionsUrl) + data.Set("ActionsUrl", *params.ActionsUrl) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -459,7 +468,7 @@ type CreateWebhookParams struct { /* CreateWebhook Method for CreateWebhook - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the new resource. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the new resource. * @param optional nil or *CreateWebhookOpts - Optional Parameters: * @param "Events" (string) - The list of space-separated events that this Webhook will subscribe to. * @param "UniqueName" (string) - An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. This value must be unique and 64 characters or less in length. @@ -467,24 +476,25 @@ CreateWebhook Method for CreateWebhook * @param "WebhookUrl" (string) - The URL associated with this Webhook. @return AutopilotV1AssistantWebhook */ -func (c *DefaultApiService) CreateWebhook(assistantSid string, params *CreateWebhookParams) (*AutopilotV1AssistantWebhook, error) { +func (c *DefaultApiService) CreateWebhook(AssistantSid string, params *CreateWebhookParams) (*AutopilotV1AssistantWebhook, error) { path := "/v1/Assistants/{AssistantSid}/Webhooks" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Events != nil { - data.Set("Events", *params.Events) + data.Set("Events", *params.Events) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } if params != nil && params.WebhookMethod != nil { - data.Set("WebhookMethod", *params.WebhookMethod) + data.Set("WebhookMethod", *params.WebhookMethod) } if params != nil && params.WebhookUrl != nil { - data.Set("WebhookUrl", *params.WebhookUrl) + data.Set("WebhookUrl", *params.WebhookUrl) } @@ -505,13 +515,14 @@ func (c *DefaultApiService) CreateWebhook(assistantSid string, params *CreateWeb /* DeleteAssistant Method for DeleteAssistant - * @param sid The Twilio-provided string that uniquely identifies the Assistant resource to delete. + * @param Sid The Twilio-provided string that uniquely identifies the Assistant resource to delete. */ -func (c *DefaultApiService) DeleteAssistant(sid string) (error) { +func (c *DefaultApiService) DeleteAssistant(Sid string) (error) { path := "/v1/Assistants/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -528,17 +539,18 @@ func (c *DefaultApiService) DeleteAssistant(sid string) (error) { /* DeleteField Method for DeleteField - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resources to delete. - * @param taskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) resource associated with the Field resource to delete. - * @param sid The Twilio-provided string that uniquely identifies the Field resource to delete. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resources to delete. + * @param TaskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) resource associated with the Field resource to delete. + * @param Sid The Twilio-provided string that uniquely identifies the Field resource to delete. */ -func (c *DefaultApiService) DeleteField(assistantSid string, taskSid string, sid string) (error) { +func (c *DefaultApiService) DeleteField(AssistantSid string, TaskSid string, Sid string) (error) { path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", TaskSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -555,15 +567,16 @@ func (c *DefaultApiService) DeleteField(assistantSid string, taskSid string, sid /* DeleteFieldType Method for DeleteFieldType - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to delete. - * @param sid The Twilio-provided string that uniquely identifies the FieldType resource to delete. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to delete. + * @param Sid The Twilio-provided string that uniquely identifies the FieldType resource to delete. */ -func (c *DefaultApiService) DeleteFieldType(assistantSid string, sid string) (error) { +func (c *DefaultApiService) DeleteFieldType(AssistantSid string, Sid string) (error) { path := "/v1/Assistants/{AssistantSid}/FieldTypes/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -580,17 +593,18 @@ func (c *DefaultApiService) DeleteFieldType(assistantSid string, sid string) (er /* DeleteFieldValue Method for DeleteFieldValue - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the FieldType associated with the resources to delete. - * @param fieldTypeSid The SID of the Field Type associated with the Field Value to delete. - * @param sid The Twilio-provided string that uniquely identifies the FieldValue resource to delete. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the FieldType associated with the resources to delete. + * @param FieldTypeSid The SID of the Field Type associated with the Field Value to delete. + * @param Sid The Twilio-provided string that uniquely identifies the FieldValue resource to delete. */ -func (c *DefaultApiService) DeleteFieldValue(assistantSid string, fieldTypeSid string, sid string) (error) { +func (c *DefaultApiService) DeleteFieldValue(AssistantSid string, FieldTypeSid string, Sid string) (error) { path := "/v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"FieldTypeSid"+"}", fieldTypeSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"FieldTypeSid"+"}", FieldTypeSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -607,15 +621,16 @@ func (c *DefaultApiService) DeleteFieldValue(assistantSid string, fieldTypeSid s /* DeleteModelBuild Method for DeleteModelBuild - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to delete. - * @param sid The Twilio-provided string that uniquely identifies the ModelBuild resource to delete. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to delete. + * @param Sid The Twilio-provided string that uniquely identifies the ModelBuild resource to delete. */ -func (c *DefaultApiService) DeleteModelBuild(assistantSid string, sid string) (error) { +func (c *DefaultApiService) DeleteModelBuild(AssistantSid string, Sid string) (error) { path := "/v1/Assistants/{AssistantSid}/ModelBuilds/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -632,15 +647,16 @@ func (c *DefaultApiService) DeleteModelBuild(assistantSid string, sid string) (e /* DeleteQuery Method for DeleteQuery - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to delete. - * @param sid The Twilio-provided string that uniquely identifies the Query resource to delete. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to delete. + * @param Sid The Twilio-provided string that uniquely identifies the Query resource to delete. */ -func (c *DefaultApiService) DeleteQuery(assistantSid string, sid string) (error) { +func (c *DefaultApiService) DeleteQuery(AssistantSid string, Sid string) (error) { path := "/v1/Assistants/{AssistantSid}/Queries/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -657,17 +673,18 @@ func (c *DefaultApiService) DeleteQuery(assistantSid string, sid string) (error) /* DeleteSample Method for DeleteSample - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resources to delete. - * @param taskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the Sample resource to delete. - * @param sid The Twilio-provided string that uniquely identifies the Sample resource to delete. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resources to delete. + * @param TaskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the Sample resource to delete. + * @param Sid The Twilio-provided string that uniquely identifies the Sample resource to delete. */ -func (c *DefaultApiService) DeleteSample(assistantSid string, taskSid string, sid string) (error) { +func (c *DefaultApiService) DeleteSample(AssistantSid string, TaskSid string, Sid string) (error) { path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", TaskSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -684,15 +701,16 @@ func (c *DefaultApiService) DeleteSample(assistantSid string, taskSid string, si /* DeleteTask Method for DeleteTask - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to delete. - * @param sid The Twilio-provided string that uniquely identifies the Task resource to delete. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to delete. + * @param Sid The Twilio-provided string that uniquely identifies the Task resource to delete. */ -func (c *DefaultApiService) DeleteTask(assistantSid string, sid string) (error) { +func (c *DefaultApiService) DeleteTask(AssistantSid string, Sid string) (error) { path := "/v1/Assistants/{AssistantSid}/Tasks/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -709,15 +727,16 @@ func (c *DefaultApiService) DeleteTask(assistantSid string, sid string) (error) /* DeleteWebhook Method for DeleteWebhook - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to delete. - * @param sid The Twilio-provided string that uniquely identifies the Webhook resource to delete. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to delete. + * @param Sid The Twilio-provided string that uniquely identifies the Webhook resource to delete. */ -func (c *DefaultApiService) DeleteWebhook(assistantSid string, sid string) (error) { +func (c *DefaultApiService) DeleteWebhook(AssistantSid string, Sid string) (error) { path := "/v1/Assistants/{AssistantSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -734,14 +753,15 @@ func (c *DefaultApiService) DeleteWebhook(assistantSid string, sid string) (erro /* FetchAssistant Method for FetchAssistant - * @param sid The Twilio-provided string that uniquely identifies the Assistant resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the Assistant resource to fetch. @return AutopilotV1Assistant */ -func (c *DefaultApiService) FetchAssistant(sid string) (*AutopilotV1Assistant, error) { +func (c *DefaultApiService) FetchAssistant(Sid string) (*AutopilotV1Assistant, error) { path := "/v1/Assistants/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -763,14 +783,15 @@ func (c *DefaultApiService) FetchAssistant(sid string) (*AutopilotV1Assistant, e /* FetchDefaults Method for FetchDefaults - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. @return AutopilotV1AssistantDefaults */ -func (c *DefaultApiService) FetchDefaults(assistantSid string) (*AutopilotV1AssistantDefaults, error) { +func (c *DefaultApiService) FetchDefaults(AssistantSid string) (*AutopilotV1AssistantDefaults, error) { path := "/v1/Assistants/{AssistantSid}/Defaults" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -792,16 +813,17 @@ func (c *DefaultApiService) FetchDefaults(assistantSid string) (*AutopilotV1Assi /* FetchDialogue Method for FetchDialogue - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. - * @param sid The Twilio-provided string that uniquely identifies the Dialogue resource to fetch. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the Dialogue resource to fetch. @return AutopilotV1AssistantDialogue */ -func (c *DefaultApiService) FetchDialogue(assistantSid string, sid string) (*AutopilotV1AssistantDialogue, error) { +func (c *DefaultApiService) FetchDialogue(AssistantSid string, Sid string) (*AutopilotV1AssistantDialogue, error) { path := "/v1/Assistants/{AssistantSid}/Dialogues/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -823,18 +845,19 @@ func (c *DefaultApiService) FetchDialogue(assistantSid string, sid string) (*Aut /* FetchField Method for FetchField - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resource to fetch. - * @param taskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) resource associated with the Field resource to fetch. - * @param sid The Twilio-provided string that uniquely identifies the Field resource to fetch. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resource to fetch. + * @param TaskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) resource associated with the Field resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the Field resource to fetch. @return AutopilotV1AssistantTaskField */ -func (c *DefaultApiService) FetchField(assistantSid string, taskSid string, sid string) (*AutopilotV1AssistantTaskField, error) { +func (c *DefaultApiService) FetchField(AssistantSid string, TaskSid string, Sid string) (*AutopilotV1AssistantTaskField, error) { path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", TaskSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -856,16 +879,17 @@ func (c *DefaultApiService) FetchField(assistantSid string, taskSid string, sid /* FetchFieldType Method for FetchFieldType - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. - * @param sid The Twilio-provided string that uniquely identifies the FieldType resource to fetch. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the FieldType resource to fetch. @return AutopilotV1AssistantFieldType */ -func (c *DefaultApiService) FetchFieldType(assistantSid string, sid string) (*AutopilotV1AssistantFieldType, error) { +func (c *DefaultApiService) FetchFieldType(AssistantSid string, Sid string) (*AutopilotV1AssistantFieldType, error) { path := "/v1/Assistants/{AssistantSid}/FieldTypes/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -887,18 +911,19 @@ func (c *DefaultApiService) FetchFieldType(assistantSid string, sid string) (*Au /* FetchFieldValue Method for FetchFieldValue - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the FieldType associated with the resource to fetch. - * @param fieldTypeSid The SID of the Field Type associated with the Field Value to fetch. - * @param sid The Twilio-provided string that uniquely identifies the FieldValue resource to fetch. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the FieldType associated with the resource to fetch. + * @param FieldTypeSid The SID of the Field Type associated with the Field Value to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the FieldValue resource to fetch. @return AutopilotV1AssistantFieldTypeFieldValue */ -func (c *DefaultApiService) FetchFieldValue(assistantSid string, fieldTypeSid string, sid string) (*AutopilotV1AssistantFieldTypeFieldValue, error) { +func (c *DefaultApiService) FetchFieldValue(AssistantSid string, FieldTypeSid string, Sid string) (*AutopilotV1AssistantFieldTypeFieldValue, error) { path := "/v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"FieldTypeSid"+"}", fieldTypeSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"FieldTypeSid"+"}", FieldTypeSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -920,16 +945,17 @@ func (c *DefaultApiService) FetchFieldValue(assistantSid string, fieldTypeSid st /* FetchModelBuild Method for FetchModelBuild - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. - * @param sid The Twilio-provided string that uniquely identifies the ModelBuild resource to fetch. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the ModelBuild resource to fetch. @return AutopilotV1AssistantModelBuild */ -func (c *DefaultApiService) FetchModelBuild(assistantSid string, sid string) (*AutopilotV1AssistantModelBuild, error) { +func (c *DefaultApiService) FetchModelBuild(AssistantSid string, Sid string) (*AutopilotV1AssistantModelBuild, error) { path := "/v1/Assistants/{AssistantSid}/ModelBuilds/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -951,16 +977,17 @@ func (c *DefaultApiService) FetchModelBuild(assistantSid string, sid string) (*A /* FetchQuery Method for FetchQuery - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. - * @param sid The Twilio-provided string that uniquely identifies the Query resource to fetch. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the Query resource to fetch. @return AutopilotV1AssistantQuery */ -func (c *DefaultApiService) FetchQuery(assistantSid string, sid string) (*AutopilotV1AssistantQuery, error) { +func (c *DefaultApiService) FetchQuery(AssistantSid string, Sid string) (*AutopilotV1AssistantQuery, error) { path := "/v1/Assistants/{AssistantSid}/Queries/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -982,18 +1009,19 @@ func (c *DefaultApiService) FetchQuery(assistantSid string, sid string) (*Autopi /* FetchSample Method for FetchSample - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resource to fetch. - * @param taskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the Sample resource to create. - * @param sid The Twilio-provided string that uniquely identifies the Sample resource to fetch. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resource to fetch. + * @param TaskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the Sample resource to create. + * @param Sid The Twilio-provided string that uniquely identifies the Sample resource to fetch. @return AutopilotV1AssistantTaskSample */ -func (c *DefaultApiService) FetchSample(assistantSid string, taskSid string, sid string) (*AutopilotV1AssistantTaskSample, error) { +func (c *DefaultApiService) FetchSample(AssistantSid string, TaskSid string, Sid string) (*AutopilotV1AssistantTaskSample, error) { path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", TaskSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1016,14 +1044,15 @@ func (c *DefaultApiService) FetchSample(assistantSid string, taskSid string, sid /* FetchStyleSheet Method for FetchStyleSheet Returns Style sheet JSON object for the Assistant - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. @return AutopilotV1AssistantStyleSheet */ -func (c *DefaultApiService) FetchStyleSheet(assistantSid string) (*AutopilotV1AssistantStyleSheet, error) { +func (c *DefaultApiService) FetchStyleSheet(AssistantSid string) (*AutopilotV1AssistantStyleSheet, error) { path := "/v1/Assistants/{AssistantSid}/StyleSheet" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1045,16 +1074,17 @@ func (c *DefaultApiService) FetchStyleSheet(assistantSid string) (*AutopilotV1As /* FetchTask Method for FetchTask - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. - * @param sid The Twilio-provided string that uniquely identifies the Task resource to fetch. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the Task resource to fetch. @return AutopilotV1AssistantTask */ -func (c *DefaultApiService) FetchTask(assistantSid string, sid string) (*AutopilotV1AssistantTask, error) { +func (c *DefaultApiService) FetchTask(AssistantSid string, Sid string) (*AutopilotV1AssistantTask, error) { path := "/v1/Assistants/{AssistantSid}/Tasks/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1077,16 +1107,17 @@ func (c *DefaultApiService) FetchTask(assistantSid string, sid string) (*Autopil /* FetchTaskActions Method for FetchTaskActions Returns JSON actions for the Task. - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task for which the task actions to fetch were defined. - * @param taskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) for which the task actions to fetch were defined. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task for which the task actions to fetch were defined. + * @param TaskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) for which the task actions to fetch were defined. @return AutopilotV1AssistantTaskTaskActions */ -func (c *DefaultApiService) FetchTaskActions(assistantSid string, taskSid string) (*AutopilotV1AssistantTaskTaskActions, error) { +func (c *DefaultApiService) FetchTaskActions(AssistantSid string, TaskSid string) (*AutopilotV1AssistantTaskTaskActions, error) { path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Actions" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", TaskSid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1108,16 +1139,17 @@ func (c *DefaultApiService) FetchTaskActions(assistantSid string, taskSid string /* FetchTaskStatistics Method for FetchTaskStatistics - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. - * @param taskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) that is associated with the resource to fetch. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. + * @param TaskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) that is associated with the resource to fetch. @return AutopilotV1AssistantTaskTaskStatistics */ -func (c *DefaultApiService) FetchTaskStatistics(assistantSid string, taskSid string) (*AutopilotV1AssistantTaskTaskStatistics, error) { +func (c *DefaultApiService) FetchTaskStatistics(AssistantSid string, TaskSid string) (*AutopilotV1AssistantTaskTaskStatistics, error) { path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Statistics" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", TaskSid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1139,16 +1171,17 @@ func (c *DefaultApiService) FetchTaskStatistics(assistantSid string, taskSid str /* FetchWebhook Method for FetchWebhook - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. - * @param sid The Twilio-provided string that uniquely identifies the Webhook resource to fetch. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the Webhook resource to fetch. @return AutopilotV1AssistantWebhook */ -func (c *DefaultApiService) FetchWebhook(assistantSid string, sid string) (*AutopilotV1AssistantWebhook, error) { +func (c *DefaultApiService) FetchWebhook(AssistantSid string, Sid string) (*AutopilotV1AssistantWebhook, error) { path := "/v1/Assistants/{AssistantSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1181,11 +1214,12 @@ ListAssistant Method for ListAssistant func (c *DefaultApiService) ListAssistant(params *ListAssistantParams) (*AutopilotV1AssistantReadResponse, error) { path := "/v1/Assistants" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1210,22 +1244,23 @@ type ListFieldParams struct { /* ListField Method for ListField - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resources to read. - * @param taskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) resource associated with the Field resources to read. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resources to read. + * @param TaskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) resource associated with the Field resources to read. * @param optional nil or *ListFieldOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return AutopilotV1AssistantTaskFieldReadResponse */ -func (c *DefaultApiService) ListField(assistantSid string, taskSid string, params *ListFieldParams) (*AutopilotV1AssistantTaskFieldReadResponse, error) { +func (c *DefaultApiService) ListField(AssistantSid string, TaskSid string, params *ListFieldParams) (*AutopilotV1AssistantTaskFieldReadResponse, error) { path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", TaskSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1250,20 +1285,21 @@ type ListFieldTypeParams struct { /* ListFieldType Method for ListFieldType - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to read. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to read. * @param optional nil or *ListFieldTypeOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return AutopilotV1AssistantFieldTypeReadResponse */ -func (c *DefaultApiService) ListFieldType(assistantSid string, params *ListFieldTypeParams) (*AutopilotV1AssistantFieldTypeReadResponse, error) { +func (c *DefaultApiService) ListFieldType(AssistantSid string, params *ListFieldTypeParams) (*AutopilotV1AssistantFieldTypeReadResponse, error) { path := "/v1/Assistants/{AssistantSid}/FieldTypes" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1289,26 +1325,27 @@ type ListFieldValueParams struct { /* ListFieldValue Method for ListFieldValue - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the FieldType associated with the resources to read. - * @param fieldTypeSid The SID of the Field Type associated with the Field Value to read. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the FieldType associated with the resources to read. + * @param FieldTypeSid The SID of the Field Type associated with the Field Value to read. * @param optional nil or *ListFieldValueOpts - Optional Parameters: * @param "Language" (string) - The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) tag that specifies the language of the value. Currently supported tags: `en-US` * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return AutopilotV1AssistantFieldTypeFieldValueReadResponse */ -func (c *DefaultApiService) ListFieldValue(assistantSid string, fieldTypeSid string, params *ListFieldValueParams) (*AutopilotV1AssistantFieldTypeFieldValueReadResponse, error) { +func (c *DefaultApiService) ListFieldValue(AssistantSid string, FieldTypeSid string, params *ListFieldValueParams) (*AutopilotV1AssistantFieldTypeFieldValueReadResponse, error) { path := "/v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"FieldTypeSid"+"}", fieldTypeSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"FieldTypeSid"+"}", FieldTypeSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Language != nil { - data.Set("Language", *params.Language) + data.Set("Language", *params.Language) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1333,20 +1370,21 @@ type ListModelBuildParams struct { /* ListModelBuild Method for ListModelBuild - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to read. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to read. * @param optional nil or *ListModelBuildOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return AutopilotV1AssistantModelBuildReadResponse */ -func (c *DefaultApiService) ListModelBuild(assistantSid string, params *ListModelBuildParams) (*AutopilotV1AssistantModelBuildReadResponse, error) { +func (c *DefaultApiService) ListModelBuild(AssistantSid string, params *ListModelBuildParams) (*AutopilotV1AssistantModelBuildReadResponse, error) { path := "/v1/Assistants/{AssistantSid}/ModelBuilds" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1375,7 +1413,7 @@ type ListQueryParams struct { /* ListQuery Method for ListQuery - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to read. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to read. * @param optional nil or *ListQueryOpts - Optional Parameters: * @param "Language" (string) - The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used by the Query resources to read. For example: `en-US`. * @param "ModelBuild" (string) - The SID or unique name of the [Model Build](https://www.twilio.com/docs/autopilot/api/model-build) to be queried. @@ -1384,27 +1422,28 @@ ListQuery Method for ListQuery * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return AutopilotV1AssistantQueryReadResponse */ -func (c *DefaultApiService) ListQuery(assistantSid string, params *ListQueryParams) (*AutopilotV1AssistantQueryReadResponse, error) { +func (c *DefaultApiService) ListQuery(AssistantSid string, params *ListQueryParams) (*AutopilotV1AssistantQueryReadResponse, error) { path := "/v1/Assistants/{AssistantSid}/Queries" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Language != nil { - data.Set("Language", *params.Language) + data.Set("Language", *params.Language) } if params != nil && params.ModelBuild != nil { - data.Set("ModelBuild", *params.ModelBuild) + data.Set("ModelBuild", *params.ModelBuild) } if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } if params != nil && params.DialogueSid != nil { - data.Set("DialogueSid", *params.DialogueSid) + data.Set("DialogueSid", *params.DialogueSid) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1430,26 +1469,27 @@ type ListSampleParams struct { /* ListSample Method for ListSample - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resources to read. - * @param taskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the Sample resources to read. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resources to read. + * @param TaskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the Sample resources to read. * @param optional nil or *ListSampleOpts - Optional Parameters: * @param "Language" (string) - The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the sample. For example: `en-US`. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return AutopilotV1AssistantTaskSampleReadResponse */ -func (c *DefaultApiService) ListSample(assistantSid string, taskSid string, params *ListSampleParams) (*AutopilotV1AssistantTaskSampleReadResponse, error) { +func (c *DefaultApiService) ListSample(AssistantSid string, TaskSid string, params *ListSampleParams) (*AutopilotV1AssistantTaskSampleReadResponse, error) { path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", TaskSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Language != nil { - data.Set("Language", *params.Language) + data.Set("Language", *params.Language) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1474,20 +1514,21 @@ type ListTaskParams struct { /* ListTask Method for ListTask - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to read. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to read. * @param optional nil or *ListTaskOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return AutopilotV1AssistantTaskReadResponse */ -func (c *DefaultApiService) ListTask(assistantSid string, params *ListTaskParams) (*AutopilotV1AssistantTaskReadResponse, error) { +func (c *DefaultApiService) ListTask(AssistantSid string, params *ListTaskParams) (*AutopilotV1AssistantTaskReadResponse, error) { path := "/v1/Assistants/{AssistantSid}/Tasks" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1512,20 +1553,21 @@ type ListWebhookParams struct { /* ListWebhook Method for ListWebhook - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to read. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to read. * @param optional nil or *ListWebhookOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return AutopilotV1AssistantWebhookReadResponse */ -func (c *DefaultApiService) ListWebhook(assistantSid string, params *ListWebhookParams) (*AutopilotV1AssistantWebhookReadResponse, error) { +func (c *DefaultApiService) ListWebhook(AssistantSid string, params *ListWebhookParams) (*AutopilotV1AssistantWebhookReadResponse, error) { path := "/v1/Assistants/{AssistantSid}/Webhooks" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1557,7 +1599,7 @@ type UpdateAssistantParams struct { /* UpdateAssistant Method for UpdateAssistant - * @param sid The Twilio-provided string that uniquely identifies the Assistant resource to update. + * @param Sid The Twilio-provided string that uniquely identifies the Assistant resource to update. * @param optional nil or *UpdateAssistantOpts - Optional Parameters: * @param "CallbackEvents" (string) - Reserved. * @param "CallbackUrl" (string) - Reserved. @@ -1569,18 +1611,19 @@ UpdateAssistant Method for UpdateAssistant * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. It can be used as an alternative to the `sid` in the URL path to address the resource. The first 64 characters must be unique. @return AutopilotV1Assistant */ -func (c *DefaultApiService) UpdateAssistant(sid string, params *UpdateAssistantParams) (*AutopilotV1Assistant, error) { +func (c *DefaultApiService) UpdateAssistant(Sid string, params *UpdateAssistantParams) (*AutopilotV1Assistant, error) { path := "/v1/Assistants/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.CallbackEvents != nil { - data.Set("CallbackEvents", *params.CallbackEvents) + data.Set("CallbackEvents", *params.CallbackEvents) } if params != nil && params.CallbackUrl != nil { - data.Set("CallbackUrl", *params.CallbackUrl) + data.Set("CallbackUrl", *params.CallbackUrl) } if params != nil && params.Defaults != nil { v, err := json.Marshal(params.Defaults) @@ -1589,16 +1632,16 @@ func (c *DefaultApiService) UpdateAssistant(sid string, params *UpdateAssistantP return nil, err } - data.Set("Defaults", string(v)) + data.Set("Defaults", fmt.Sprint(v)) } if params != nil && params.DevelopmentStage != nil { - data.Set("DevelopmentStage", *params.DevelopmentStage) + data.Set("DevelopmentStage", *params.DevelopmentStage) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.LogQueries != nil { - data.Set("LogQueries", string(*params.LogQueries)) + data.Set("LogQueries", fmt.Sprint(*params.LogQueries)) } if params != nil && params.StyleSheet != nil { v, err := json.Marshal(params.StyleSheet) @@ -1607,10 +1650,10 @@ func (c *DefaultApiService) UpdateAssistant(sid string, params *UpdateAssistantP return nil, err } - data.Set("StyleSheet", string(v)) + data.Set("StyleSheet", fmt.Sprint(v)) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -1635,14 +1678,15 @@ type UpdateDefaultsParams struct { /* UpdateDefaults Method for UpdateDefaults - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update. * @param optional nil or *UpdateDefaultsOpts - Optional Parameters: * @param "Defaults" (map[string]interface{}) - A JSON string that describes the default task links for the `assistant_initiation`, `collect`, and `fallback` situations. @return AutopilotV1AssistantDefaults */ -func (c *DefaultApiService) UpdateDefaults(assistantSid string, params *UpdateDefaultsParams) (*AutopilotV1AssistantDefaults, error) { +func (c *DefaultApiService) UpdateDefaults(AssistantSid string, params *UpdateDefaultsParams) (*AutopilotV1AssistantDefaults, error) { path := "/v1/Assistants/{AssistantSid}/Defaults" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + data := url.Values{} headers := 0 @@ -1654,7 +1698,7 @@ func (c *DefaultApiService) UpdateDefaults(assistantSid string, params *UpdateDe return nil, err } - data.Set("Defaults", string(v)) + data.Set("Defaults", fmt.Sprint(v)) } @@ -1680,26 +1724,27 @@ type UpdateFieldTypeParams struct { /* UpdateFieldType Method for UpdateFieldType - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the to update. - * @param sid The Twilio-provided string that uniquely identifies the FieldType resource to update. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the to update. + * @param Sid The Twilio-provided string that uniquely identifies the FieldType resource to update. * @param optional nil or *UpdateFieldTypeOpts - Optional Parameters: * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. It can be used as an alternative to the `sid` in the URL path to address the resource. The first 64 characters must be unique. @return AutopilotV1AssistantFieldType */ -func (c *DefaultApiService) UpdateFieldType(assistantSid string, sid string, params *UpdateFieldTypeParams) (*AutopilotV1AssistantFieldType, error) { +func (c *DefaultApiService) UpdateFieldType(AssistantSid string, Sid string, params *UpdateFieldTypeParams) (*AutopilotV1AssistantFieldType, error) { path := "/v1/Assistants/{AssistantSid}/FieldTypes/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -1724,22 +1769,23 @@ type UpdateModelBuildParams struct { /* UpdateModelBuild Method for UpdateModelBuild - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update. - * @param sid The Twilio-provided string that uniquely identifies the ModelBuild resource to update. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update. + * @param Sid The Twilio-provided string that uniquely identifies the ModelBuild resource to update. * @param optional nil or *UpdateModelBuildOpts - Optional Parameters: * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. This value must be a unique string of no more than 64 characters. It can be used as an alternative to the `sid` in the URL path to address the resource. @return AutopilotV1AssistantModelBuild */ -func (c *DefaultApiService) UpdateModelBuild(assistantSid string, sid string, params *UpdateModelBuildParams) (*AutopilotV1AssistantModelBuild, error) { +func (c *DefaultApiService) UpdateModelBuild(AssistantSid string, Sid string, params *UpdateModelBuildParams) (*AutopilotV1AssistantModelBuild, error) { path := "/v1/Assistants/{AssistantSid}/ModelBuilds/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -1765,26 +1811,27 @@ type UpdateQueryParams struct { /* UpdateQuery Method for UpdateQuery - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update. - * @param sid The Twilio-provided string that uniquely identifies the Query resource to update. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update. + * @param Sid The Twilio-provided string that uniquely identifies the Query resource to update. * @param optional nil or *UpdateQueryOpts - Optional Parameters: * @param "SampleSid" (string) - The SID of an optional reference to the [Sample](https://www.twilio.com/docs/autopilot/api/task-sample) created from the query. * @param "Status" (string) - The new status of the resource. Can be: `pending-review`, `reviewed`, or `discarded` @return AutopilotV1AssistantQuery */ -func (c *DefaultApiService) UpdateQuery(assistantSid string, sid string, params *UpdateQueryParams) (*AutopilotV1AssistantQuery, error) { +func (c *DefaultApiService) UpdateQuery(AssistantSid string, Sid string, params *UpdateQueryParams) (*AutopilotV1AssistantQuery, error) { path := "/v1/Assistants/{AssistantSid}/Queries/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.SampleSid != nil { - data.Set("SampleSid", *params.SampleSid) + data.Set("SampleSid", *params.SampleSid) } if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } @@ -1816,11 +1863,12 @@ UpdateRestoreAssistant Method for UpdateRestoreAssistant func (c *DefaultApiService) UpdateRestoreAssistant(params *UpdateRestoreAssistantParams) (*AutopilotV1RestoreAssistant, error) { path := "/v1/Assistants/Restore" + data := url.Values{} headers := 0 if params != nil && params.Assistant != nil { - data.Set("Assistant", *params.Assistant) + data.Set("Assistant", *params.Assistant) } @@ -1847,32 +1895,33 @@ type UpdateSampleParams struct { /* UpdateSample Method for UpdateSample - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resource to update. - * @param taskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the Sample resource to update. - * @param sid The Twilio-provided string that uniquely identifies the Sample resource to update. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resource to update. + * @param TaskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the Sample resource to update. + * @param Sid The Twilio-provided string that uniquely identifies the Sample resource to update. * @param optional nil or *UpdateSampleOpts - Optional Parameters: * @param "Language" (string) - The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the sample. For example: `en-US`. * @param "SourceChannel" (string) - The communication channel from which the sample was captured. Can be: `voice`, `sms`, `chat`, `alexa`, `google-assistant`, `slack`, or null if not included. * @param "TaggedText" (string) - The text example of how end users might express the task. The sample can contain [Field tag blocks](https://www.twilio.com/docs/autopilot/api/task-sample#field-tagging). @return AutopilotV1AssistantTaskSample */ -func (c *DefaultApiService) UpdateSample(assistantSid string, taskSid string, sid string, params *UpdateSampleParams) (*AutopilotV1AssistantTaskSample, error) { +func (c *DefaultApiService) UpdateSample(AssistantSid string, TaskSid string, Sid string, params *UpdateSampleParams) (*AutopilotV1AssistantTaskSample, error) { path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", TaskSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.Language != nil { - data.Set("Language", *params.Language) + data.Set("Language", *params.Language) } if params != nil && params.SourceChannel != nil { - data.Set("SourceChannel", *params.SourceChannel) + data.Set("SourceChannel", *params.SourceChannel) } if params != nil && params.TaggedText != nil { - data.Set("TaggedText", *params.TaggedText) + data.Set("TaggedText", *params.TaggedText) } @@ -1898,14 +1947,15 @@ type UpdateStyleSheetParams struct { /* UpdateStyleSheet Method for UpdateStyleSheet Updates the style sheet for an Assistant identified by `assistant_sid`. - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update. * @param optional nil or *UpdateStyleSheetOpts - Optional Parameters: * @param "StyleSheet" (map[string]interface{}) - The JSON string that describes the style sheet object. @return AutopilotV1AssistantStyleSheet */ -func (c *DefaultApiService) UpdateStyleSheet(assistantSid string, params *UpdateStyleSheetParams) (*AutopilotV1AssistantStyleSheet, error) { +func (c *DefaultApiService) UpdateStyleSheet(AssistantSid string, params *UpdateStyleSheetParams) (*AutopilotV1AssistantStyleSheet, error) { path := "/v1/Assistants/{AssistantSid}/StyleSheet" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + data := url.Values{} headers := 0 @@ -1917,7 +1967,7 @@ func (c *DefaultApiService) UpdateStyleSheet(assistantSid string, params *Update return nil, err } - data.Set("StyleSheet", string(v)) + data.Set("StyleSheet", fmt.Sprint(v)) } @@ -1945,8 +1995,8 @@ type UpdateTaskParams struct { /* UpdateTask Method for UpdateTask - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update. - * @param sid The Twilio-provided string that uniquely identifies the Task resource to update. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update. + * @param Sid The Twilio-provided string that uniquely identifies the Task resource to update. * @param optional nil or *UpdateTaskOpts - Optional Parameters: * @param "Actions" (map[string]interface{}) - The JSON string that specifies the [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the Assistant on how to perform the task. * @param "ActionsUrl" (string) - The URL from which the Assistant can fetch actions. @@ -1954,10 +2004,11 @@ UpdateTask Method for UpdateTask * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. This value must be 64 characters or less in length and be unique. It can be used as an alternative to the `sid` in the URL path to address the resource. @return AutopilotV1AssistantTask */ -func (c *DefaultApiService) UpdateTask(assistantSid string, sid string, params *UpdateTaskParams) (*AutopilotV1AssistantTask, error) { +func (c *DefaultApiService) UpdateTask(AssistantSid string, Sid string, params *UpdateTaskParams) (*AutopilotV1AssistantTask, error) { path := "/v1/Assistants/{AssistantSid}/Tasks/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 @@ -1969,16 +2020,16 @@ func (c *DefaultApiService) UpdateTask(assistantSid string, sid string, params * return nil, err } - data.Set("Actions", string(v)) + data.Set("Actions", fmt.Sprint(v)) } if params != nil && params.ActionsUrl != nil { - data.Set("ActionsUrl", *params.ActionsUrl) + data.Set("ActionsUrl", *params.ActionsUrl) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -2004,16 +2055,17 @@ type UpdateTaskActionsParams struct { /* UpdateTaskActions Method for UpdateTaskActions Updates the actions of an Task identified by {TaskSid} or {TaskUniqueName}. - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task for which the task actions to update were defined. - * @param taskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) for which the task actions to update were defined. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task for which the task actions to update were defined. + * @param TaskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) for which the task actions to update were defined. * @param optional nil or *UpdateTaskActionsOpts - Optional Parameters: * @param "Actions" (map[string]interface{}) - The JSON string that specifies the [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the Assistant on how to perform the task. @return AutopilotV1AssistantTaskTaskActions */ -func (c *DefaultApiService) UpdateTaskActions(assistantSid string, taskSid string, params *UpdateTaskActionsParams) (*AutopilotV1AssistantTaskTaskActions, error) { +func (c *DefaultApiService) UpdateTaskActions(AssistantSid string, TaskSid string, params *UpdateTaskActionsParams) (*AutopilotV1AssistantTaskTaskActions, error) { path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Actions" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", TaskSid, -1) + data := url.Values{} headers := 0 @@ -2025,7 +2077,7 @@ func (c *DefaultApiService) UpdateTaskActions(assistantSid string, taskSid strin return nil, err } - data.Set("Actions", string(v)) + data.Set("Actions", fmt.Sprint(v)) } @@ -2053,8 +2105,8 @@ type UpdateWebhookParams struct { /* UpdateWebhook Method for UpdateWebhook - * @param assistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update. - * @param sid The Twilio-provided string that uniquely identifies the Webhook resource to update. + * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update. + * @param Sid The Twilio-provided string that uniquely identifies the Webhook resource to update. * @param optional nil or *UpdateWebhookOpts - Optional Parameters: * @param "Events" (string) - The list of space-separated events that this Webhook will subscribe to. * @param "UniqueName" (string) - An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. This value must be unique and 64 characters or less in length. @@ -2062,25 +2114,26 @@ UpdateWebhook Method for UpdateWebhook * @param "WebhookUrl" (string) - The URL associated with this Webhook. @return AutopilotV1AssistantWebhook */ -func (c *DefaultApiService) UpdateWebhook(assistantSid string, sid string, params *UpdateWebhookParams) (*AutopilotV1AssistantWebhook, error) { +func (c *DefaultApiService) UpdateWebhook(AssistantSid string, Sid string, params *UpdateWebhookParams) (*AutopilotV1AssistantWebhook, error) { path := "/v1/Assistants/{AssistantSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.Events != nil { - data.Set("Events", *params.Events) + data.Set("Events", *params.Events) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } if params != nil && params.WebhookMethod != nil { - data.Set("WebhookMethod", *params.WebhookMethod) + data.Set("WebhookMethod", *params.WebhookMethod) } if params != nil && params.WebhookUrl != nil { - data.Set("WebhookUrl", *params.WebhookUrl) + data.Set("WebhookUrl", *params.WebhookUrl) } diff --git a/rest/autopilot/v1/docs/DefaultApi.md b/rest/autopilot/v1/docs/DefaultApi.md index b8af24bfb..d819146f1 100644 --- a/rest/autopilot/v1/docs/DefaultApi.md +++ b/rest/autopilot/v1/docs/DefaultApi.md @@ -80,13 +80,13 @@ Optional parameters are passed through a pointer to a CreateAssistantOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **callbackEvents** | **optional.String**| Reserved. | - **callbackUrl** | **optional.String**| Reserved. | - **defaults** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON object that defines the Assistant's [default tasks](https://www.twilio.com/docs/autopilot/api/assistant/defaults) for various scenarios, including initiation actions and fallback tasks. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It is not unique and can be up to 255 characters long. | - **logQueries** | **optional.Bool**| Whether queries should be logged and kept after training. Can be: `true` or `false` and defaults to `true`. If `true`, queries are stored for 30 days, and then deleted. If `false`, no queries are stored. | - **styleSheet** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON string that defines the Assistant's [style sheet](https://www.twilio.com/docs/autopilot/api/assistant/stylesheet) | - **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. The first 64 characters must be unique. | + **CallbackEvents** | **optional.String**| Reserved. | + **CallbackUrl** | **optional.String**| Reserved. | + **Defaults** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON object that defines the Assistant's [default tasks](https://www.twilio.com/docs/autopilot/api/assistant/defaults) for various scenarios, including initiation actions and fallback tasks. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It is not unique and can be up to 255 characters long. | + **LogQueries** | **optional.Bool**| Whether queries should be logged and kept after training. Can be: `true` or `false` and defaults to `true`. If `true`, queries are stored for 30 days, and then deleted. If `false`, no queries are stored. | + **StyleSheet** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON string that defines the Assistant's [style sheet](https://www.twilio.com/docs/autopilot/api/assistant/stylesheet) | + **UniqueName** | **optional.String**| An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. The first 64 characters must be unique. | ### Return type @@ -108,7 +108,7 @@ Name | Type | Description | Notes ## CreateField -> AutopilotV1AssistantTaskField CreateField(ctx, assistantSid, taskSid, optional) +> AutopilotV1AssistantTaskField CreateField(ctx, AssistantSid, TaskSid, optional) @@ -118,8 +118,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the new resource. | -**taskSid** | **string**| The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) resource associated with the new Field resource. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the new resource. | +**TaskSid** | **string**| The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) resource associated with the new Field resource. | **optional** | ***CreateFieldOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -131,8 +131,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **fieldType** | **optional.String**| The Field Type of the new field. Can be: a [Built-in Field Type](https://www.twilio.com/docs/autopilot/built-in-field-types), the `unique_name`, or the `sid` of a custom Field Type. | - **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the new resource. This value must be a unique string of no more than 64 characters. It can be used as an alternative to the `sid` in the URL path to address the resource. | + **FieldType** | **optional.String**| The Field Type of the new field. Can be: a [Built-in Field Type](https://www.twilio.com/docs/autopilot/built-in-field-types), the `unique_name`, or the `sid` of a custom Field Type. | + **UniqueName** | **optional.String**| An application-defined string that uniquely identifies the new resource. This value must be a unique string of no more than 64 characters. It can be used as an alternative to the `sid` in the URL path to address the resource. | ### Return type @@ -154,7 +154,7 @@ Name | Type | Description | Notes ## CreateFieldType -> AutopilotV1AssistantFieldType CreateFieldType(ctx, assistantSid, optional) +> AutopilotV1AssistantFieldType CreateFieldType(ctx, AssistantSid, optional) @@ -164,7 +164,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the new resource. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the new resource. | **optional** | ***CreateFieldTypeOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -175,8 +175,8 @@ Optional parameters are passed through a pointer to a CreateFieldTypeOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It is not unique and can be up to 255 characters long. | - **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. The first 64 characters must be unique. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It is not unique and can be up to 255 characters long. | + **UniqueName** | **optional.String**| An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. The first 64 characters must be unique. | ### Return type @@ -198,7 +198,7 @@ Name | Type | Description | Notes ## CreateFieldValue -> AutopilotV1AssistantFieldTypeFieldValue CreateFieldValue(ctx, assistantSid, fieldTypeSid, optional) +> AutopilotV1AssistantFieldTypeFieldValue CreateFieldValue(ctx, AssistantSid, FieldTypeSid, optional) @@ -208,8 +208,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the FieldType associated with the new resource. | -**fieldTypeSid** | **string**| The SID of the Field Type associated with the Field Value. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the FieldType associated with the new resource. | +**FieldTypeSid** | **string**| The SID of the Field Type associated with the Field Value. | **optional** | ***CreateFieldValueOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -221,9 +221,9 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **language** | **optional.String**| The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) tag that specifies the language of the value. Currently supported tags: `en-US` | - **synonymOf** | **optional.String**| The string value that indicates which word the field value is a synonym of. | - **value** | **optional.String**| The Field Value data. | + **Language** | **optional.String**| The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) tag that specifies the language of the value. Currently supported tags: `en-US` | + **SynonymOf** | **optional.String**| The string value that indicates which word the field value is a synonym of. | + **Value** | **optional.String**| The Field Value data. | ### Return type @@ -245,7 +245,7 @@ Name | Type | Description | Notes ## CreateModelBuild -> AutopilotV1AssistantModelBuild CreateModelBuild(ctx, assistantSid, optional) +> AutopilotV1AssistantModelBuild CreateModelBuild(ctx, AssistantSid, optional) @@ -255,7 +255,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the new resource. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the new resource. | **optional** | ***CreateModelBuildOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -266,8 +266,8 @@ Optional parameters are passed through a pointer to a CreateModelBuildOpts struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **statusCallback** | **optional.String**| The URL we should call using a POST method to send status information to your application. | - **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the new resource. This value must be a unique string of no more than 64 characters. It can be used as an alternative to the `sid` in the URL path to address the resource. | + **StatusCallback** | **optional.String**| The URL we should call using a POST method to send status information to your application. | + **UniqueName** | **optional.String**| An application-defined string that uniquely identifies the new resource. This value must be a unique string of no more than 64 characters. It can be used as an alternative to the `sid` in the URL path to address the resource. | ### Return type @@ -289,7 +289,7 @@ Name | Type | Description | Notes ## CreateQuery -> AutopilotV1AssistantQuery CreateQuery(ctx, assistantSid, optional) +> AutopilotV1AssistantQuery CreateQuery(ctx, AssistantSid, optional) @@ -299,7 +299,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the new resource. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the new resource. | **optional** | ***CreateQueryOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -310,10 +310,10 @@ Optional parameters are passed through a pointer to a CreateQueryOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **language** | **optional.String**| The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the new query. For example: `en-US`. | - **modelBuild** | **optional.String**| The SID or unique name of the [Model Build](https://www.twilio.com/docs/autopilot/api/model-build) to be queried. | - **query** | **optional.String**| The end-user's natural language input. It can be up to 2048 characters long. | - **tasks** | **optional.String**| The list of tasks to limit the new query to. Tasks are expressed as a comma-separated list of task `unique_name` values. For example, `task-unique_name-1, task-unique_name-2`. Listing specific tasks is useful to constrain the paths that a user can take. | + **Language** | **optional.String**| The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the new query. For example: `en-US`. | + **ModelBuild** | **optional.String**| The SID or unique name of the [Model Build](https://www.twilio.com/docs/autopilot/api/model-build) to be queried. | + **Query** | **optional.String**| The end-user's natural language input. It can be up to 2048 characters long. | + **Tasks** | **optional.String**| The list of tasks to limit the new query to. Tasks are expressed as a comma-separated list of task `unique_name` values. For example, `task-unique_name-1, task-unique_name-2`. Listing specific tasks is useful to constrain the paths that a user can take. | ### Return type @@ -335,7 +335,7 @@ Name | Type | Description | Notes ## CreateSample -> AutopilotV1AssistantTaskSample CreateSample(ctx, assistantSid, taskSid, optional) +> AutopilotV1AssistantTaskSample CreateSample(ctx, AssistantSid, TaskSid, optional) @@ -345,8 +345,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the new resource. | -**taskSid** | **string**| The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the Sample resource to create. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the new resource. | +**TaskSid** | **string**| The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the Sample resource to create. | **optional** | ***CreateSampleOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -358,9 +358,9 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **language** | **optional.String**| The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the new sample. For example: `en-US`. | - **sourceChannel** | **optional.String**| The communication channel from which the new sample was captured. Can be: `voice`, `sms`, `chat`, `alexa`, `google-assistant`, `slack`, or null if not included. | - **taggedText** | **optional.String**| The text example of how end users might express the task. The sample can contain [Field tag blocks](https://www.twilio.com/docs/autopilot/api/task-sample#field-tagging). | + **Language** | **optional.String**| The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the new sample. For example: `en-US`. | + **SourceChannel** | **optional.String**| The communication channel from which the new sample was captured. Can be: `voice`, `sms`, `chat`, `alexa`, `google-assistant`, `slack`, or null if not included. | + **TaggedText** | **optional.String**| The text example of how end users might express the task. The sample can contain [Field tag blocks](https://www.twilio.com/docs/autopilot/api/task-sample#field-tagging). | ### Return type @@ -382,7 +382,7 @@ Name | Type | Description | Notes ## CreateTask -> AutopilotV1AssistantTask CreateTask(ctx, assistantSid, optional) +> AutopilotV1AssistantTask CreateTask(ctx, AssistantSid, optional) @@ -392,7 +392,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the new resource. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the new resource. | **optional** | ***CreateTaskOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -403,10 +403,10 @@ Optional parameters are passed through a pointer to a CreateTaskOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **actions** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON string that specifies the [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the Assistant on how to perform the task. It is optional and not unique. | - **actionsUrl** | **optional.String**| The URL from which the Assistant can fetch actions. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It is not unique and can be up to 255 characters long. | - **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. This value must be unique and 64 characters or less in length. | + **Actions** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON string that specifies the [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the Assistant on how to perform the task. It is optional and not unique. | + **ActionsUrl** | **optional.String**| The URL from which the Assistant can fetch actions. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It is not unique and can be up to 255 characters long. | + **UniqueName** | **optional.String**| An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. This value must be unique and 64 characters or less in length. | ### Return type @@ -428,7 +428,7 @@ Name | Type | Description | Notes ## CreateWebhook -> AutopilotV1AssistantWebhook CreateWebhook(ctx, assistantSid, optional) +> AutopilotV1AssistantWebhook CreateWebhook(ctx, AssistantSid, optional) @@ -438,7 +438,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the new resource. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the new resource. | **optional** | ***CreateWebhookOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -449,10 +449,10 @@ Optional parameters are passed through a pointer to a CreateWebhookOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **events** | **optional.String**| The list of space-separated events that this Webhook will subscribe to. | - **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. This value must be unique and 64 characters or less in length. | - **webhookMethod** | **optional.String**| The method to be used when calling the webhook's URL. | - **webhookUrl** | **optional.String**| The URL associated with this Webhook. | + **Events** | **optional.String**| The list of space-separated events that this Webhook will subscribe to. | + **UniqueName** | **optional.String**| An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. This value must be unique and 64 characters or less in length. | + **WebhookMethod** | **optional.String**| The method to be used when calling the webhook's URL. | + **WebhookUrl** | **optional.String**| The URL associated with this Webhook. | ### Return type @@ -474,7 +474,7 @@ Name | Type | Description | Notes ## DeleteAssistant -> DeleteAssistant(ctx, sid) +> DeleteAssistant(ctx, Sid) @@ -484,7 +484,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the Assistant resource to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Assistant resource to delete. | ### Return type @@ -506,7 +506,7 @@ Name | Type | Description | Notes ## DeleteField -> DeleteField(ctx, assistantSid, taskSid, sid) +> DeleteField(ctx, AssistantSid, TaskSid, Sid) @@ -516,9 +516,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resources to delete. | -**taskSid** | **string**| The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) resource associated with the Field resource to delete. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Field resource to delete. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resources to delete. | +**TaskSid** | **string**| The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) resource associated with the Field resource to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Field resource to delete. | ### Return type @@ -540,7 +540,7 @@ Name | Type | Description | Notes ## DeleteFieldType -> DeleteFieldType(ctx, assistantSid, sid) +> DeleteFieldType(ctx, AssistantSid, Sid) @@ -550,8 +550,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to delete. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the FieldType resource to delete. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the FieldType resource to delete. | ### Return type @@ -573,7 +573,7 @@ Name | Type | Description | Notes ## DeleteFieldValue -> DeleteFieldValue(ctx, assistantSid, fieldTypeSid, sid) +> DeleteFieldValue(ctx, AssistantSid, FieldTypeSid, Sid) @@ -583,9 +583,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the FieldType associated with the resources to delete. | -**fieldTypeSid** | **string**| The SID of the Field Type associated with the Field Value to delete. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the FieldValue resource to delete. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the FieldType associated with the resources to delete. | +**FieldTypeSid** | **string**| The SID of the Field Type associated with the Field Value to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the FieldValue resource to delete. | ### Return type @@ -607,7 +607,7 @@ Name | Type | Description | Notes ## DeleteModelBuild -> DeleteModelBuild(ctx, assistantSid, sid) +> DeleteModelBuild(ctx, AssistantSid, Sid) @@ -617,8 +617,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to delete. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the ModelBuild resource to delete. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the ModelBuild resource to delete. | ### Return type @@ -640,7 +640,7 @@ Name | Type | Description | Notes ## DeleteQuery -> DeleteQuery(ctx, assistantSid, sid) +> DeleteQuery(ctx, AssistantSid, Sid) @@ -650,8 +650,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to delete. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Query resource to delete. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Query resource to delete. | ### Return type @@ -673,7 +673,7 @@ Name | Type | Description | Notes ## DeleteSample -> DeleteSample(ctx, assistantSid, taskSid, sid) +> DeleteSample(ctx, AssistantSid, TaskSid, Sid) @@ -683,9 +683,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resources to delete. | -**taskSid** | **string**| The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the Sample resource to delete. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Sample resource to delete. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resources to delete. | +**TaskSid** | **string**| The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the Sample resource to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Sample resource to delete. | ### Return type @@ -707,7 +707,7 @@ Name | Type | Description | Notes ## DeleteTask -> DeleteTask(ctx, assistantSid, sid) +> DeleteTask(ctx, AssistantSid, Sid) @@ -717,8 +717,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to delete. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Task resource to delete. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Task resource to delete. | ### Return type @@ -740,7 +740,7 @@ Name | Type | Description | Notes ## DeleteWebhook -> DeleteWebhook(ctx, assistantSid, sid) +> DeleteWebhook(ctx, AssistantSid, Sid) @@ -750,8 +750,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to delete. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Webhook resource to delete. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Webhook resource to delete. | ### Return type @@ -773,7 +773,7 @@ Name | Type | Description | Notes ## FetchAssistant -> AutopilotV1Assistant FetchAssistant(ctx, sid) +> AutopilotV1Assistant FetchAssistant(ctx, Sid) @@ -783,7 +783,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the Assistant resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Assistant resource to fetch. | ### Return type @@ -805,7 +805,7 @@ Name | Type | Description | Notes ## FetchDefaults -> AutopilotV1AssistantDefaults FetchDefaults(ctx, assistantSid) +> AutopilotV1AssistantDefaults FetchDefaults(ctx, AssistantSid) @@ -815,7 +815,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. | ### Return type @@ -837,7 +837,7 @@ Name | Type | Description | Notes ## FetchDialogue -> AutopilotV1AssistantDialogue FetchDialogue(ctx, assistantSid, sid) +> AutopilotV1AssistantDialogue FetchDialogue(ctx, AssistantSid, Sid) @@ -847,8 +847,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Dialogue resource to fetch. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Dialogue resource to fetch. | ### Return type @@ -870,7 +870,7 @@ Name | Type | Description | Notes ## FetchField -> AutopilotV1AssistantTaskField FetchField(ctx, assistantSid, taskSid, sid) +> AutopilotV1AssistantTaskField FetchField(ctx, AssistantSid, TaskSid, Sid) @@ -880,9 +880,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resource to fetch. | -**taskSid** | **string**| The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) resource associated with the Field resource to fetch. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Field resource to fetch. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resource to fetch. | +**TaskSid** | **string**| The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) resource associated with the Field resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Field resource to fetch. | ### Return type @@ -904,7 +904,7 @@ Name | Type | Description | Notes ## FetchFieldType -> AutopilotV1AssistantFieldType FetchFieldType(ctx, assistantSid, sid) +> AutopilotV1AssistantFieldType FetchFieldType(ctx, AssistantSid, Sid) @@ -914,8 +914,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the FieldType resource to fetch. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the FieldType resource to fetch. | ### Return type @@ -937,7 +937,7 @@ Name | Type | Description | Notes ## FetchFieldValue -> AutopilotV1AssistantFieldTypeFieldValue FetchFieldValue(ctx, assistantSid, fieldTypeSid, sid) +> AutopilotV1AssistantFieldTypeFieldValue FetchFieldValue(ctx, AssistantSid, FieldTypeSid, Sid) @@ -947,9 +947,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the FieldType associated with the resource to fetch. | -**fieldTypeSid** | **string**| The SID of the Field Type associated with the Field Value to fetch. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the FieldValue resource to fetch. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the FieldType associated with the resource to fetch. | +**FieldTypeSid** | **string**| The SID of the Field Type associated with the Field Value to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the FieldValue resource to fetch. | ### Return type @@ -971,7 +971,7 @@ Name | Type | Description | Notes ## FetchModelBuild -> AutopilotV1AssistantModelBuild FetchModelBuild(ctx, assistantSid, sid) +> AutopilotV1AssistantModelBuild FetchModelBuild(ctx, AssistantSid, Sid) @@ -981,8 +981,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the ModelBuild resource to fetch. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the ModelBuild resource to fetch. | ### Return type @@ -1004,7 +1004,7 @@ Name | Type | Description | Notes ## FetchQuery -> AutopilotV1AssistantQuery FetchQuery(ctx, assistantSid, sid) +> AutopilotV1AssistantQuery FetchQuery(ctx, AssistantSid, Sid) @@ -1014,8 +1014,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Query resource to fetch. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Query resource to fetch. | ### Return type @@ -1037,7 +1037,7 @@ Name | Type | Description | Notes ## FetchSample -> AutopilotV1AssistantTaskSample FetchSample(ctx, assistantSid, taskSid, sid) +> AutopilotV1AssistantTaskSample FetchSample(ctx, AssistantSid, TaskSid, Sid) @@ -1047,9 +1047,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resource to fetch. | -**taskSid** | **string**| The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the Sample resource to create. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Sample resource to fetch. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resource to fetch. | +**TaskSid** | **string**| The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the Sample resource to create. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Sample resource to fetch. | ### Return type @@ -1071,7 +1071,7 @@ Name | Type | Description | Notes ## FetchStyleSheet -> AutopilotV1AssistantStyleSheet FetchStyleSheet(ctx, assistantSid) +> AutopilotV1AssistantStyleSheet FetchStyleSheet(ctx, AssistantSid) @@ -1083,7 +1083,7 @@ Returns Style sheet JSON object for the Assistant Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. | ### Return type @@ -1105,7 +1105,7 @@ Name | Type | Description | Notes ## FetchTask -> AutopilotV1AssistantTask FetchTask(ctx, assistantSid, sid) +> AutopilotV1AssistantTask FetchTask(ctx, AssistantSid, Sid) @@ -1115,8 +1115,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Task resource to fetch. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Task resource to fetch. | ### Return type @@ -1138,7 +1138,7 @@ Name | Type | Description | Notes ## FetchTaskActions -> AutopilotV1AssistantTaskTaskActions FetchTaskActions(ctx, assistantSid, taskSid) +> AutopilotV1AssistantTaskTaskActions FetchTaskActions(ctx, AssistantSid, TaskSid) @@ -1150,8 +1150,8 @@ Returns JSON actions for the Task. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task for which the task actions to fetch were defined. | -**taskSid** | **string**| The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) for which the task actions to fetch were defined. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task for which the task actions to fetch were defined. | +**TaskSid** | **string**| The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) for which the task actions to fetch were defined. | ### Return type @@ -1173,7 +1173,7 @@ Name | Type | Description | Notes ## FetchTaskStatistics -> AutopilotV1AssistantTaskTaskStatistics FetchTaskStatistics(ctx, assistantSid, taskSid) +> AutopilotV1AssistantTaskTaskStatistics FetchTaskStatistics(ctx, AssistantSid, TaskSid) @@ -1183,8 +1183,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. | -**taskSid** | **string**| The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) that is associated with the resource to fetch. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. | +**TaskSid** | **string**| The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) that is associated with the resource to fetch. | ### Return type @@ -1206,7 +1206,7 @@ Name | Type | Description | Notes ## FetchWebhook -> AutopilotV1AssistantWebhook FetchWebhook(ctx, assistantSid, sid) +> AutopilotV1AssistantWebhook FetchWebhook(ctx, AssistantSid, Sid) @@ -1216,8 +1216,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Webhook resource to fetch. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Webhook resource to fetch. | ### Return type @@ -1258,7 +1258,7 @@ Optional parameters are passed through a pointer to a ListAssistantOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1280,7 +1280,7 @@ Name | Type | Description | Notes ## ListField -> AutopilotV1AssistantTaskFieldReadResponse ListField(ctx, assistantSid, taskSid, optional) +> AutopilotV1AssistantTaskFieldReadResponse ListField(ctx, AssistantSid, TaskSid, optional) @@ -1290,8 +1290,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resources to read. | -**taskSid** | **string**| The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) resource associated with the Field resources to read. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resources to read. | +**TaskSid** | **string**| The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) resource associated with the Field resources to read. | **optional** | ***ListFieldOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1303,7 +1303,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1325,7 +1325,7 @@ Name | Type | Description | Notes ## ListFieldType -> AutopilotV1AssistantFieldTypeReadResponse ListFieldType(ctx, assistantSid, optional) +> AutopilotV1AssistantFieldTypeReadResponse ListFieldType(ctx, AssistantSid, optional) @@ -1335,7 +1335,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to read. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to read. | **optional** | ***ListFieldTypeOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1346,7 +1346,7 @@ Optional parameters are passed through a pointer to a ListFieldTypeOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1368,7 +1368,7 @@ Name | Type | Description | Notes ## ListFieldValue -> AutopilotV1AssistantFieldTypeFieldValueReadResponse ListFieldValue(ctx, assistantSid, fieldTypeSid, optional) +> AutopilotV1AssistantFieldTypeFieldValueReadResponse ListFieldValue(ctx, AssistantSid, FieldTypeSid, optional) @@ -1378,8 +1378,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the FieldType associated with the resources to read. | -**fieldTypeSid** | **string**| The SID of the Field Type associated with the Field Value to read. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the FieldType associated with the resources to read. | +**FieldTypeSid** | **string**| The SID of the Field Type associated with the Field Value to read. | **optional** | ***ListFieldValueOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1391,8 +1391,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **language** | **optional.String**| The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) tag that specifies the language of the value. Currently supported tags: `en-US` | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Language** | **optional.String**| The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) tag that specifies the language of the value. Currently supported tags: `en-US` | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1414,7 +1414,7 @@ Name | Type | Description | Notes ## ListModelBuild -> AutopilotV1AssistantModelBuildReadResponse ListModelBuild(ctx, assistantSid, optional) +> AutopilotV1AssistantModelBuildReadResponse ListModelBuild(ctx, AssistantSid, optional) @@ -1424,7 +1424,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to read. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to read. | **optional** | ***ListModelBuildOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1435,7 +1435,7 @@ Optional parameters are passed through a pointer to a ListModelBuildOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1457,7 +1457,7 @@ Name | Type | Description | Notes ## ListQuery -> AutopilotV1AssistantQueryReadResponse ListQuery(ctx, assistantSid, optional) +> AutopilotV1AssistantQueryReadResponse ListQuery(ctx, AssistantSid, optional) @@ -1467,7 +1467,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to read. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to read. | **optional** | ***ListQueryOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1478,11 +1478,11 @@ Optional parameters are passed through a pointer to a ListQueryOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **language** | **optional.String**| The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used by the Query resources to read. For example: `en-US`. | - **modelBuild** | **optional.String**| The SID or unique name of the [Model Build](https://www.twilio.com/docs/autopilot/api/model-build) to be queried. | - **status** | **optional.String**| The status of the resources to read. Can be: `pending-review`, `reviewed`, or `discarded` | - **dialogueSid** | **optional.String**| The SID of the [Dialogue](https://www.twilio.com/docs/autopilot/api/dialogue). | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Language** | **optional.String**| The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used by the Query resources to read. For example: `en-US`. | + **ModelBuild** | **optional.String**| The SID or unique name of the [Model Build](https://www.twilio.com/docs/autopilot/api/model-build) to be queried. | + **Status** | **optional.String**| The status of the resources to read. Can be: `pending-review`, `reviewed`, or `discarded` | + **DialogueSid** | **optional.String**| The SID of the [Dialogue](https://www.twilio.com/docs/autopilot/api/dialogue). | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1504,7 +1504,7 @@ Name | Type | Description | Notes ## ListSample -> AutopilotV1AssistantTaskSampleReadResponse ListSample(ctx, assistantSid, taskSid, optional) +> AutopilotV1AssistantTaskSampleReadResponse ListSample(ctx, AssistantSid, TaskSid, optional) @@ -1514,8 +1514,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resources to read. | -**taskSid** | **string**| The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the Sample resources to read. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resources to read. | +**TaskSid** | **string**| The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the Sample resources to read. | **optional** | ***ListSampleOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1527,8 +1527,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **language** | **optional.String**| The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the sample. For example: `en-US`. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Language** | **optional.String**| The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the sample. For example: `en-US`. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1550,7 +1550,7 @@ Name | Type | Description | Notes ## ListTask -> AutopilotV1AssistantTaskReadResponse ListTask(ctx, assistantSid, optional) +> AutopilotV1AssistantTaskReadResponse ListTask(ctx, AssistantSid, optional) @@ -1560,7 +1560,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to read. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to read. | **optional** | ***ListTaskOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1571,7 +1571,7 @@ Optional parameters are passed through a pointer to a ListTaskOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1593,7 +1593,7 @@ Name | Type | Description | Notes ## ListWebhook -> AutopilotV1AssistantWebhookReadResponse ListWebhook(ctx, assistantSid, optional) +> AutopilotV1AssistantWebhookReadResponse ListWebhook(ctx, AssistantSid, optional) @@ -1603,7 +1603,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to read. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to read. | **optional** | ***ListWebhookOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1614,7 +1614,7 @@ Optional parameters are passed through a pointer to a ListWebhookOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1636,7 +1636,7 @@ Name | Type | Description | Notes ## UpdateAssistant -> AutopilotV1Assistant UpdateAssistant(ctx, sid, optional) +> AutopilotV1Assistant UpdateAssistant(ctx, Sid, optional) @@ -1646,7 +1646,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the Assistant resource to update. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Assistant resource to update. | **optional** | ***UpdateAssistantOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1657,14 +1657,14 @@ Optional parameters are passed through a pointer to a UpdateAssistantOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **callbackEvents** | **optional.String**| Reserved. | - **callbackUrl** | **optional.String**| Reserved. | - **defaults** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON object that defines the Assistant's [default tasks](https://www.twilio.com/docs/autopilot/api/assistant/defaults) for various scenarios, including initiation actions and fallback tasks. | - **developmentStage** | **optional.String**| A string describing the state of the assistant. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | - **logQueries** | **optional.Bool**| Whether queries should be logged and kept after training. Can be: `true` or `false` and defaults to `true`. If `true`, queries are stored for 30 days, and then deleted. If `false`, no queries are stored. | - **styleSheet** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON string that defines the Assistant's [style sheet](https://www.twilio.com/docs/autopilot/api/assistant/stylesheet) | - **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used as an alternative to the `sid` in the URL path to address the resource. The first 64 characters must be unique. | + **CallbackEvents** | **optional.String**| Reserved. | + **CallbackUrl** | **optional.String**| Reserved. | + **Defaults** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON object that defines the Assistant's [default tasks](https://www.twilio.com/docs/autopilot/api/assistant/defaults) for various scenarios, including initiation actions and fallback tasks. | + **DevelopmentStage** | **optional.String**| A string describing the state of the assistant. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | + **LogQueries** | **optional.Bool**| Whether queries should be logged and kept after training. Can be: `true` or `false` and defaults to `true`. If `true`, queries are stored for 30 days, and then deleted. If `false`, no queries are stored. | + **StyleSheet** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON string that defines the Assistant's [style sheet](https://www.twilio.com/docs/autopilot/api/assistant/stylesheet) | + **UniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used as an alternative to the `sid` in the URL path to address the resource. The first 64 characters must be unique. | ### Return type @@ -1686,7 +1686,7 @@ Name | Type | Description | Notes ## UpdateDefaults -> AutopilotV1AssistantDefaults UpdateDefaults(ctx, assistantSid, optional) +> AutopilotV1AssistantDefaults UpdateDefaults(ctx, AssistantSid, optional) @@ -1696,7 +1696,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update. | **optional** | ***UpdateDefaultsOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1707,7 +1707,7 @@ Optional parameters are passed through a pointer to a UpdateDefaultsOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **defaults** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that describes the default task links for the `assistant_initiation`, `collect`, and `fallback` situations. | + **Defaults** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that describes the default task links for the `assistant_initiation`, `collect`, and `fallback` situations. | ### Return type @@ -1729,7 +1729,7 @@ Name | Type | Description | Notes ## UpdateFieldType -> AutopilotV1AssistantFieldType UpdateFieldType(ctx, assistantSid, sid, optional) +> AutopilotV1AssistantFieldType UpdateFieldType(ctx, AssistantSid, Sid, optional) @@ -1739,8 +1739,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the to update. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the FieldType resource to update. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the to update. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the FieldType resource to update. | **optional** | ***UpdateFieldTypeOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1752,8 +1752,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | - **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used as an alternative to the `sid` in the URL path to address the resource. The first 64 characters must be unique. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | + **UniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used as an alternative to the `sid` in the URL path to address the resource. The first 64 characters must be unique. | ### Return type @@ -1775,7 +1775,7 @@ Name | Type | Description | Notes ## UpdateModelBuild -> AutopilotV1AssistantModelBuild UpdateModelBuild(ctx, assistantSid, sid, optional) +> AutopilotV1AssistantModelBuild UpdateModelBuild(ctx, AssistantSid, Sid, optional) @@ -1785,8 +1785,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the ModelBuild resource to update. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the ModelBuild resource to update. | **optional** | ***UpdateModelBuildOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1798,7 +1798,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. This value must be a unique string of no more than 64 characters. It can be used as an alternative to the `sid` in the URL path to address the resource. | + **UniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. This value must be a unique string of no more than 64 characters. It can be used as an alternative to the `sid` in the URL path to address the resource. | ### Return type @@ -1820,7 +1820,7 @@ Name | Type | Description | Notes ## UpdateQuery -> AutopilotV1AssistantQuery UpdateQuery(ctx, assistantSid, sid, optional) +> AutopilotV1AssistantQuery UpdateQuery(ctx, AssistantSid, Sid, optional) @@ -1830,8 +1830,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Query resource to update. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Query resource to update. | **optional** | ***UpdateQueryOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1843,8 +1843,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **sampleSid** | **optional.String**| The SID of an optional reference to the [Sample](https://www.twilio.com/docs/autopilot/api/task-sample) created from the query. | - **status** | **optional.String**| The new status of the resource. Can be: `pending-review`, `reviewed`, or `discarded` | + **SampleSid** | **optional.String**| The SID of an optional reference to the [Sample](https://www.twilio.com/docs/autopilot/api/task-sample) created from the query. | + **Status** | **optional.String**| The new status of the resource. Can be: `pending-review`, `reviewed`, or `discarded` | ### Return type @@ -1885,7 +1885,7 @@ Optional parameters are passed through a pointer to a UpdateRestoreAssistantOpts Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **assistant** | **optional.String**| The Twilio-provided string that uniquely identifies the Assistant resource to restore. | + **Assistant** | **optional.String**| The Twilio-provided string that uniquely identifies the Assistant resource to restore. | ### Return type @@ -1907,7 +1907,7 @@ Name | Type | Description | Notes ## UpdateSample -> AutopilotV1AssistantTaskSample UpdateSample(ctx, assistantSid, taskSid, sid, optional) +> AutopilotV1AssistantTaskSample UpdateSample(ctx, AssistantSid, TaskSid, Sid, optional) @@ -1917,9 +1917,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resource to update. | -**taskSid** | **string**| The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the Sample resource to update. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Sample resource to update. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task associated with the resource to update. | +**TaskSid** | **string**| The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) associated with the Sample resource to update. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Sample resource to update. | **optional** | ***UpdateSampleOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1932,9 +1932,9 @@ Name | Type | Description | Notes - **language** | **optional.String**| The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the sample. For example: `en-US`. | - **sourceChannel** | **optional.String**| The communication channel from which the sample was captured. Can be: `voice`, `sms`, `chat`, `alexa`, `google-assistant`, `slack`, or null if not included. | - **taggedText** | **optional.String**| The text example of how end users might express the task. The sample can contain [Field tag blocks](https://www.twilio.com/docs/autopilot/api/task-sample#field-tagging). | + **Language** | **optional.String**| The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the sample. For example: `en-US`. | + **SourceChannel** | **optional.String**| The communication channel from which the sample was captured. Can be: `voice`, `sms`, `chat`, `alexa`, `google-assistant`, `slack`, or null if not included. | + **TaggedText** | **optional.String**| The text example of how end users might express the task. The sample can contain [Field tag blocks](https://www.twilio.com/docs/autopilot/api/task-sample#field-tagging). | ### Return type @@ -1956,7 +1956,7 @@ Name | Type | Description | Notes ## UpdateStyleSheet -> AutopilotV1AssistantStyleSheet UpdateStyleSheet(ctx, assistantSid, optional) +> AutopilotV1AssistantStyleSheet UpdateStyleSheet(ctx, AssistantSid, optional) @@ -1968,7 +1968,7 @@ Updates the style sheet for an Assistant identified by `assistant_sid`. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update. | **optional** | ***UpdateStyleSheetOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1979,7 +1979,7 @@ Optional parameters are passed through a pointer to a UpdateStyleSheetOpts struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **styleSheet** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON string that describes the style sheet object. | + **StyleSheet** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON string that describes the style sheet object. | ### Return type @@ -2001,7 +2001,7 @@ Name | Type | Description | Notes ## UpdateTask -> AutopilotV1AssistantTask UpdateTask(ctx, assistantSid, sid, optional) +> AutopilotV1AssistantTask UpdateTask(ctx, AssistantSid, Sid, optional) @@ -2011,8 +2011,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Task resource to update. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Task resource to update. | **optional** | ***UpdateTaskOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2024,10 +2024,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **actions** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON string that specifies the [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the Assistant on how to perform the task. | - **actionsUrl** | **optional.String**| The URL from which the Assistant can fetch actions. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | - **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. This value must be 64 characters or less in length and be unique. It can be used as an alternative to the `sid` in the URL path to address the resource. | + **Actions** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON string that specifies the [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the Assistant on how to perform the task. | + **ActionsUrl** | **optional.String**| The URL from which the Assistant can fetch actions. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | + **UniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. This value must be 64 characters or less in length and be unique. It can be used as an alternative to the `sid` in the URL path to address the resource. | ### Return type @@ -2049,7 +2049,7 @@ Name | Type | Description | Notes ## UpdateTaskActions -> AutopilotV1AssistantTaskTaskActions UpdateTaskActions(ctx, assistantSid, taskSid, optional) +> AutopilotV1AssistantTaskTaskActions UpdateTaskActions(ctx, AssistantSid, TaskSid, optional) @@ -2061,8 +2061,8 @@ Updates the actions of an Task identified by {TaskSid} or {TaskUniqueName}. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task for which the task actions to update were defined. | -**taskSid** | **string**| The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) for which the task actions to update were defined. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the Task for which the task actions to update were defined. | +**TaskSid** | **string**| The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) for which the task actions to update were defined. | **optional** | ***UpdateTaskActionsOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2074,7 +2074,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **actions** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON string that specifies the [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the Assistant on how to perform the task. | + **Actions** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON string that specifies the [actions](https://www.twilio.com/docs/autopilot/actions) that instruct the Assistant on how to perform the task. | ### Return type @@ -2096,7 +2096,7 @@ Name | Type | Description | Notes ## UpdateWebhook -> AutopilotV1AssistantWebhook UpdateWebhook(ctx, assistantSid, sid, optional) +> AutopilotV1AssistantWebhook UpdateWebhook(ctx, AssistantSid, Sid, optional) @@ -2106,8 +2106,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Webhook resource to update. | +**AssistantSid** | **string**| The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resource to update. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Webhook resource to update. | **optional** | ***UpdateWebhookOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2119,10 +2119,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **events** | **optional.String**| The list of space-separated events that this Webhook will subscribe to. | - **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. This value must be unique and 64 characters or less in length. | - **webhookMethod** | **optional.String**| The method to be used when calling the webhook's URL. | - **webhookUrl** | **optional.String**| The URL associated with this Webhook. | + **Events** | **optional.String**| The list of space-separated events that this Webhook will subscribe to. | + **UniqueName** | **optional.String**| An application-defined string that uniquely identifies the new resource. It can be used as an alternative to the `sid` in the URL path to address the resource. This value must be unique and 64 characters or less in length. | + **WebhookMethod** | **optional.String**| The method to be used when calling the webhook's URL. | + **WebhookUrl** | **optional.String**| The URL associated with this Webhook. | ### Return type diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant.go b/rest/autopilot/v1/model_autopilot_v1_assistant.go index 0cdaf2049..98dbcc64e 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant.go @@ -14,18 +14,18 @@ import ( ) // AutopilotV1Assistant struct for AutopilotV1Assistant type AutopilotV1Assistant struct { - AccountSid string `json:"account_sid,omitempty"` - CallbackEvents string `json:"callback_events,omitempty"` - CallbackUrl string `json:"callback_url,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - DevelopmentStage string `json:"development_stage,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - LatestModelBuildSid string `json:"latest_model_build_sid,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - LogQueries bool `json:"log_queries,omitempty"` - NeedsModelBuild bool `json:"needs_model_build,omitempty"` - Sid string `json:"sid,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + CallbackEvents string `json:"CallbackEvents,omitempty"` + CallbackUrl string `json:"CallbackUrl,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + DevelopmentStage string `json:"DevelopmentStage,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + LatestModelBuildSid string `json:"LatestModelBuildSid,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + LogQueries bool `json:"LogQueries,omitempty"` + NeedsModelBuild bool `json:"NeedsModelBuild,omitempty"` + Sid string `json:"Sid,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_defaults.go b/rest/autopilot/v1/model_autopilot_v1_assistant_defaults.go index 6c90d6fe5..4200a83c1 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_defaults.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_defaults.go @@ -11,8 +11,8 @@ package openapi // AutopilotV1AssistantDefaults struct for AutopilotV1AssistantDefaults type AutopilotV1AssistantDefaults struct { - AccountSid string `json:"account_sid,omitempty"` - AssistantSid string `json:"assistant_sid,omitempty"` - Data map[string]interface{} `json:"data,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AssistantSid string `json:"AssistantSid,omitempty"` + Data map[string]interface{} `json:"Data,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_dialogue.go b/rest/autopilot/v1/model_autopilot_v1_assistant_dialogue.go index 587d0dec1..cf4b529ab 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_dialogue.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_dialogue.go @@ -11,9 +11,9 @@ package openapi // AutopilotV1AssistantDialogue struct for AutopilotV1AssistantDialogue type AutopilotV1AssistantDialogue struct { - AccountSid string `json:"account_sid,omitempty"` - AssistantSid string `json:"assistant_sid,omitempty"` - Data map[string]interface{} `json:"data,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AssistantSid string `json:"AssistantSid,omitempty"` + Data map[string]interface{} `json:"Data,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_field_type.go b/rest/autopilot/v1/model_autopilot_v1_assistant_field_type.go index c5cf9ba98..ab7620bb8 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_field_type.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_field_type.go @@ -14,13 +14,13 @@ import ( ) // AutopilotV1AssistantFieldType struct for AutopilotV1AssistantFieldType type AutopilotV1AssistantFieldType struct { - AccountSid string `json:"account_sid,omitempty"` - AssistantSid string `json:"assistant_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Sid string `json:"sid,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AssistantSid string `json:"AssistantSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Sid string `json:"Sid,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_field_type_field_value.go b/rest/autopilot/v1/model_autopilot_v1_assistant_field_type_field_value.go index 20f0a5582..96eceb44d 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_field_type_field_value.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_field_type_field_value.go @@ -14,14 +14,14 @@ import ( ) // AutopilotV1AssistantFieldTypeFieldValue struct for AutopilotV1AssistantFieldTypeFieldValue type AutopilotV1AssistantFieldTypeFieldValue struct { - AccountSid string `json:"account_sid,omitempty"` - AssistantSid string `json:"assistant_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FieldTypeSid string `json:"field_type_sid,omitempty"` - Language string `json:"language,omitempty"` - Sid string `json:"sid,omitempty"` - SynonymOf string `json:"synonym_of,omitempty"` - Url string `json:"url,omitempty"` - Value string `json:"value,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AssistantSid string `json:"AssistantSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FieldTypeSid string `json:"FieldTypeSid,omitempty"` + Language string `json:"Language,omitempty"` + Sid string `json:"Sid,omitempty"` + SynonymOf string `json:"SynonymOf,omitempty"` + Url string `json:"Url,omitempty"` + Value string `json:"Value,omitempty"` } diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_field_type_field_value_read_response.go b/rest/autopilot/v1/model_autopilot_v1_assistant_field_type_field_value_read_response.go index 59af8ff31..e09a82493 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_field_type_field_value_read_response.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_field_type_field_value_read_response.go @@ -11,6 +11,6 @@ package openapi // AutopilotV1AssistantFieldTypeFieldValueReadResponse struct for AutopilotV1AssistantFieldTypeFieldValueReadResponse type AutopilotV1AssistantFieldTypeFieldValueReadResponse struct { - FieldValues []AutopilotV1AssistantFieldTypeFieldValue `json:"field_values,omitempty"` - Meta AutopilotV1AssistantReadResponseMeta `json:"meta,omitempty"` + FieldValues []AutopilotV1AssistantFieldTypeFieldValue `json:"FieldValues,omitempty"` + Meta AutopilotV1AssistantReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_field_type_read_response.go b/rest/autopilot/v1/model_autopilot_v1_assistant_field_type_read_response.go index 2039c72ab..41183cd3e 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_field_type_read_response.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_field_type_read_response.go @@ -11,6 +11,6 @@ package openapi // AutopilotV1AssistantFieldTypeReadResponse struct for AutopilotV1AssistantFieldTypeReadResponse type AutopilotV1AssistantFieldTypeReadResponse struct { - FieldTypes []AutopilotV1AssistantFieldType `json:"field_types,omitempty"` - Meta AutopilotV1AssistantReadResponseMeta `json:"meta,omitempty"` + FieldTypes []AutopilotV1AssistantFieldType `json:"FieldTypes,omitempty"` + Meta AutopilotV1AssistantReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_model_build.go b/rest/autopilot/v1/model_autopilot_v1_assistant_model_build.go index e3dd7e630..88038dc88 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_model_build.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_model_build.go @@ -14,14 +14,14 @@ import ( ) // AutopilotV1AssistantModelBuild struct for AutopilotV1AssistantModelBuild type AutopilotV1AssistantModelBuild struct { - AccountSid string `json:"account_sid,omitempty"` - AssistantSid string `json:"assistant_sid,omitempty"` - BuildDuration *int32 `json:"build_duration,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - ErrorCode *int32 `json:"error_code,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AssistantSid string `json:"AssistantSid,omitempty"` + BuildDuration *int32 `json:"BuildDuration,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + ErrorCode *int32 `json:"ErrorCode,omitempty"` + Sid string `json:"Sid,omitempty"` + Status string `json:"Status,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_model_build_read_response.go b/rest/autopilot/v1/model_autopilot_v1_assistant_model_build_read_response.go index a2cd52258..c137fd677 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_model_build_read_response.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_model_build_read_response.go @@ -11,6 +11,6 @@ package openapi // AutopilotV1AssistantModelBuildReadResponse struct for AutopilotV1AssistantModelBuildReadResponse type AutopilotV1AssistantModelBuildReadResponse struct { - Meta AutopilotV1AssistantReadResponseMeta `json:"meta,omitempty"` - ModelBuilds []AutopilotV1AssistantModelBuild `json:"model_builds,omitempty"` + Meta AutopilotV1AssistantReadResponseMeta `json:"Meta,omitempty"` + ModelBuilds []AutopilotV1AssistantModelBuild `json:"ModelBuilds,omitempty"` } diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_query.go b/rest/autopilot/v1/model_autopilot_v1_assistant_query.go index f8f145a7f..0a914500c 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_query.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_query.go @@ -14,18 +14,18 @@ import ( ) // AutopilotV1AssistantQuery struct for AutopilotV1AssistantQuery type AutopilotV1AssistantQuery struct { - AccountSid string `json:"account_sid,omitempty"` - AssistantSid string `json:"assistant_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - DialogueSid string `json:"dialogue_sid,omitempty"` - Language string `json:"language,omitempty"` - ModelBuildSid string `json:"model_build_sid,omitempty"` - Query string `json:"query,omitempty"` - Results map[string]interface{} `json:"results,omitempty"` - SampleSid string `json:"sample_sid,omitempty"` - Sid string `json:"sid,omitempty"` - SourceChannel string `json:"source_channel,omitempty"` - Status string `json:"status,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AssistantSid string `json:"AssistantSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + DialogueSid string `json:"DialogueSid,omitempty"` + Language string `json:"Language,omitempty"` + ModelBuildSid string `json:"ModelBuildSid,omitempty"` + Query string `json:"Query,omitempty"` + Results map[string]interface{} `json:"Results,omitempty"` + SampleSid string `json:"SampleSid,omitempty"` + Sid string `json:"Sid,omitempty"` + SourceChannel string `json:"SourceChannel,omitempty"` + Status string `json:"Status,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_query_read_response.go b/rest/autopilot/v1/model_autopilot_v1_assistant_query_read_response.go index 60736063a..ce9670fcb 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_query_read_response.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_query_read_response.go @@ -11,6 +11,6 @@ package openapi // AutopilotV1AssistantQueryReadResponse struct for AutopilotV1AssistantQueryReadResponse type AutopilotV1AssistantQueryReadResponse struct { - Meta AutopilotV1AssistantReadResponseMeta `json:"meta,omitempty"` - Queries []AutopilotV1AssistantQuery `json:"queries,omitempty"` + Meta AutopilotV1AssistantReadResponseMeta `json:"Meta,omitempty"` + Queries []AutopilotV1AssistantQuery `json:"Queries,omitempty"` } diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_read_response.go b/rest/autopilot/v1/model_autopilot_v1_assistant_read_response.go index 0c86431e8..8d01974a0 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_read_response.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_read_response.go @@ -11,6 +11,6 @@ package openapi // AutopilotV1AssistantReadResponse struct for AutopilotV1AssistantReadResponse type AutopilotV1AssistantReadResponse struct { - Assistants []AutopilotV1Assistant `json:"assistants,omitempty"` - Meta AutopilotV1AssistantReadResponseMeta `json:"meta,omitempty"` + Assistants []AutopilotV1Assistant `json:"Assistants,omitempty"` + Meta AutopilotV1AssistantReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_read_response_meta.go b/rest/autopilot/v1/model_autopilot_v1_assistant_read_response_meta.go index 297985c3b..b30723f68 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_read_response_meta.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_read_response_meta.go @@ -11,11 +11,11 @@ package openapi // AutopilotV1AssistantReadResponseMeta struct for AutopilotV1AssistantReadResponseMeta type AutopilotV1AssistantReadResponseMeta struct { - FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` - NextPageUrl string `json:"next_page_url,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUrl string `json:"previous_page_url,omitempty"` - Url string `json:"url,omitempty"` + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_style_sheet.go b/rest/autopilot/v1/model_autopilot_v1_assistant_style_sheet.go index 4e4a4021c..1cb5bf4bd 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_style_sheet.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_style_sheet.go @@ -11,8 +11,8 @@ package openapi // AutopilotV1AssistantStyleSheet struct for AutopilotV1AssistantStyleSheet type AutopilotV1AssistantStyleSheet struct { - AccountSid string `json:"account_sid,omitempty"` - AssistantSid string `json:"assistant_sid,omitempty"` - Data map[string]interface{} `json:"data,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AssistantSid string `json:"AssistantSid,omitempty"` + Data map[string]interface{} `json:"Data,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_task.go b/rest/autopilot/v1/model_autopilot_v1_assistant_task.go index 6ef8e9cdd..29bf528e0 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_task.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_task.go @@ -14,14 +14,14 @@ import ( ) // AutopilotV1AssistantTask struct for AutopilotV1AssistantTask type AutopilotV1AssistantTask struct { - AccountSid string `json:"account_sid,omitempty"` - ActionsUrl string `json:"actions_url,omitempty"` - AssistantSid string `json:"assistant_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Sid string `json:"sid,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ActionsUrl string `json:"ActionsUrl,omitempty"` + AssistantSid string `json:"AssistantSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Sid string `json:"Sid,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_task_field.go b/rest/autopilot/v1/model_autopilot_v1_assistant_task_field.go index 61247df36..2830506c6 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_task_field.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_task_field.go @@ -14,13 +14,13 @@ import ( ) // AutopilotV1AssistantTaskField struct for AutopilotV1AssistantTaskField type AutopilotV1AssistantTaskField struct { - AccountSid string `json:"account_sid,omitempty"` - AssistantSid string `json:"assistant_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FieldType string `json:"field_type,omitempty"` - Sid string `json:"sid,omitempty"` - TaskSid string `json:"task_sid,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AssistantSid string `json:"AssistantSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FieldType string `json:"FieldType,omitempty"` + Sid string `json:"Sid,omitempty"` + TaskSid string `json:"TaskSid,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_task_field_read_response.go b/rest/autopilot/v1/model_autopilot_v1_assistant_task_field_read_response.go index 4c59efc93..2301e3b2f 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_task_field_read_response.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_task_field_read_response.go @@ -11,6 +11,6 @@ package openapi // AutopilotV1AssistantTaskFieldReadResponse struct for AutopilotV1AssistantTaskFieldReadResponse type AutopilotV1AssistantTaskFieldReadResponse struct { - Fields []AutopilotV1AssistantTaskField `json:"fields,omitempty"` - Meta AutopilotV1AssistantReadResponseMeta `json:"meta,omitempty"` + Fields []AutopilotV1AssistantTaskField `json:"Fields,omitempty"` + Meta AutopilotV1AssistantReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_task_read_response.go b/rest/autopilot/v1/model_autopilot_v1_assistant_task_read_response.go index b9ce79047..ec12d992c 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_task_read_response.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_task_read_response.go @@ -11,6 +11,6 @@ package openapi // AutopilotV1AssistantTaskReadResponse struct for AutopilotV1AssistantTaskReadResponse type AutopilotV1AssistantTaskReadResponse struct { - Meta AutopilotV1AssistantReadResponseMeta `json:"meta,omitempty"` - Tasks []AutopilotV1AssistantTask `json:"tasks,omitempty"` + Meta AutopilotV1AssistantReadResponseMeta `json:"Meta,omitempty"` + Tasks []AutopilotV1AssistantTask `json:"Tasks,omitempty"` } diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_task_sample.go b/rest/autopilot/v1/model_autopilot_v1_assistant_task_sample.go index 87650f28a..8fe4eb5c9 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_task_sample.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_task_sample.go @@ -14,14 +14,14 @@ import ( ) // AutopilotV1AssistantTaskSample struct for AutopilotV1AssistantTaskSample type AutopilotV1AssistantTaskSample struct { - AccountSid string `json:"account_sid,omitempty"` - AssistantSid string `json:"assistant_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Language string `json:"language,omitempty"` - Sid string `json:"sid,omitempty"` - SourceChannel string `json:"source_channel,omitempty"` - TaggedText string `json:"tagged_text,omitempty"` - TaskSid string `json:"task_sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AssistantSid string `json:"AssistantSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Language string `json:"Language,omitempty"` + Sid string `json:"Sid,omitempty"` + SourceChannel string `json:"SourceChannel,omitempty"` + TaggedText string `json:"TaggedText,omitempty"` + TaskSid string `json:"TaskSid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_task_sample_read_response.go b/rest/autopilot/v1/model_autopilot_v1_assistant_task_sample_read_response.go index 69558c673..f27cd5003 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_task_sample_read_response.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_task_sample_read_response.go @@ -11,6 +11,6 @@ package openapi // AutopilotV1AssistantTaskSampleReadResponse struct for AutopilotV1AssistantTaskSampleReadResponse type AutopilotV1AssistantTaskSampleReadResponse struct { - Meta AutopilotV1AssistantReadResponseMeta `json:"meta,omitempty"` - Samples []AutopilotV1AssistantTaskSample `json:"samples,omitempty"` + Meta AutopilotV1AssistantReadResponseMeta `json:"Meta,omitempty"` + Samples []AutopilotV1AssistantTaskSample `json:"Samples,omitempty"` } diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_task_task_actions.go b/rest/autopilot/v1/model_autopilot_v1_assistant_task_task_actions.go index aecddfb85..f7bb56eca 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_task_task_actions.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_task_task_actions.go @@ -11,9 +11,9 @@ package openapi // AutopilotV1AssistantTaskTaskActions struct for AutopilotV1AssistantTaskTaskActions type AutopilotV1AssistantTaskTaskActions struct { - AccountSid string `json:"account_sid,omitempty"` - AssistantSid string `json:"assistant_sid,omitempty"` - Data map[string]interface{} `json:"data,omitempty"` - TaskSid string `json:"task_sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AssistantSid string `json:"AssistantSid,omitempty"` + Data map[string]interface{} `json:"Data,omitempty"` + TaskSid string `json:"TaskSid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_task_task_statistics.go b/rest/autopilot/v1/model_autopilot_v1_assistant_task_task_statistics.go index f371b65f4..e45ea3347 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_task_task_statistics.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_task_task_statistics.go @@ -11,10 +11,10 @@ package openapi // AutopilotV1AssistantTaskTaskStatistics struct for AutopilotV1AssistantTaskTaskStatistics type AutopilotV1AssistantTaskTaskStatistics struct { - AccountSid string `json:"account_sid,omitempty"` - AssistantSid string `json:"assistant_sid,omitempty"` - FieldsCount int32 `json:"fields_count,omitempty"` - SamplesCount int32 `json:"samples_count,omitempty"` - TaskSid string `json:"task_sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AssistantSid string `json:"AssistantSid,omitempty"` + FieldsCount int32 `json:"FieldsCount,omitempty"` + SamplesCount int32 `json:"SamplesCount,omitempty"` + TaskSid string `json:"TaskSid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_webhook.go b/rest/autopilot/v1/model_autopilot_v1_assistant_webhook.go index afa8625fd..8d35a599c 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_webhook.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_webhook.go @@ -14,14 +14,14 @@ import ( ) // AutopilotV1AssistantWebhook struct for AutopilotV1AssistantWebhook type AutopilotV1AssistantWebhook struct { - AccountSid string `json:"account_sid,omitempty"` - AssistantSid string `json:"assistant_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Events string `json:"events,omitempty"` - Sid string `json:"sid,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` - WebhookMethod string `json:"webhook_method,omitempty"` - WebhookUrl string `json:"webhook_url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AssistantSid string `json:"AssistantSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Events string `json:"Events,omitempty"` + Sid string `json:"Sid,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` + WebhookMethod string `json:"WebhookMethod,omitempty"` + WebhookUrl string `json:"WebhookUrl,omitempty"` } diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_webhook_read_response.go b/rest/autopilot/v1/model_autopilot_v1_assistant_webhook_read_response.go index 29a703144..6758b43cc 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_webhook_read_response.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_webhook_read_response.go @@ -11,6 +11,6 @@ package openapi // AutopilotV1AssistantWebhookReadResponse struct for AutopilotV1AssistantWebhookReadResponse type AutopilotV1AssistantWebhookReadResponse struct { - Meta AutopilotV1AssistantReadResponseMeta `json:"meta,omitempty"` - Webhooks []AutopilotV1AssistantWebhook `json:"webhooks,omitempty"` + Meta AutopilotV1AssistantReadResponseMeta `json:"Meta,omitempty"` + Webhooks []AutopilotV1AssistantWebhook `json:"Webhooks,omitempty"` } diff --git a/rest/autopilot/v1/model_autopilot_v1_restore_assistant.go b/rest/autopilot/v1/model_autopilot_v1_restore_assistant.go index 7fbc43a7a..9daea4189 100644 --- a/rest/autopilot/v1/model_autopilot_v1_restore_assistant.go +++ b/rest/autopilot/v1/model_autopilot_v1_restore_assistant.go @@ -14,16 +14,16 @@ import ( ) // AutopilotV1RestoreAssistant struct for AutopilotV1RestoreAssistant type AutopilotV1RestoreAssistant struct { - AccountSid string `json:"account_sid,omitempty"` - CallbackEvents string `json:"callback_events,omitempty"` - CallbackUrl string `json:"callback_url,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - DevelopmentStage string `json:"development_stage,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - LatestModelBuildSid string `json:"latest_model_build_sid,omitempty"` - LogQueries bool `json:"log_queries,omitempty"` - NeedsModelBuild bool `json:"needs_model_build,omitempty"` - Sid string `json:"sid,omitempty"` - UniqueName string `json:"unique_name,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + CallbackEvents string `json:"CallbackEvents,omitempty"` + CallbackUrl string `json:"CallbackUrl,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + DevelopmentStage string `json:"DevelopmentStage,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + LatestModelBuildSid string `json:"LatestModelBuildSid,omitempty"` + LogQueries bool `json:"LogQueries,omitempty"` + NeedsModelBuild bool `json:"NeedsModelBuild,omitempty"` + Sid string `json:"Sid,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` } diff --git a/rest/bulkexports/v1/api_default.go b/rest/bulkexports/v1/api_default.go index 79b1a4525..54c58ee57 100644 --- a/rest/bulkexports/v1/api_default.go +++ b/rest/bulkexports/v1/api_default.go @@ -15,6 +15,7 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" ) type DefaultApiService struct { @@ -40,7 +41,7 @@ type CreateExportCustomJobParams struct { /* CreateExportCustomJob Method for CreateExportCustomJob - * @param resourceType The type of communication – Messages or Calls + * @param ResourceType The type of communication – Messages or Calls * @param optional nil or *CreateExportCustomJobOpts - Optional Parameters: * @param "Email" (string) - The optional email to send the completion notification to. You can set both webhook, and email, or one or the other. If you set neither, the job will run but you will have to query to determine your job's status. * @param "EndDay" (string) - The end day for the custom export specified as a string in the format of yyyy-mm-dd. End day is inclusive and must be 2 days earlier than the current UTC day. @@ -50,30 +51,31 @@ CreateExportCustomJob Method for CreateExportCustomJob * @param "WebhookUrl" (string) - The optional webhook url called on completion of the job. If this is supplied, `WebhookMethod` must also be supplied. If you set neither webhook nor email, you will have to check your job's status manually. @return BulkexportsV1ExportExportCustomJob */ -func (c *DefaultApiService) CreateExportCustomJob(resourceType string, params *CreateExportCustomJobParams) (*BulkexportsV1ExportExportCustomJob, error) { +func (c *DefaultApiService) CreateExportCustomJob(ResourceType string, params *CreateExportCustomJobParams) (*BulkexportsV1ExportExportCustomJob, error) { path := "/v1/Exports/{ResourceType}/Jobs" - path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + path = strings.Replace(path, "{"+"ResourceType"+"}", ResourceType, -1) + data := url.Values{} headers := 0 if params != nil && params.Email != nil { - data.Set("Email", *params.Email) + data.Set("Email", *params.Email) } if params != nil && params.EndDay != nil { - data.Set("EndDay", *params.EndDay) + data.Set("EndDay", *params.EndDay) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.StartDay != nil { - data.Set("StartDay", *params.StartDay) + data.Set("StartDay", *params.StartDay) } if params != nil && params.WebhookMethod != nil { - data.Set("WebhookMethod", *params.WebhookMethod) + data.Set("WebhookMethod", *params.WebhookMethod) } if params != nil && params.WebhookUrl != nil { - data.Set("WebhookUrl", *params.WebhookUrl) + data.Set("WebhookUrl", *params.WebhookUrl) } @@ -94,13 +96,14 @@ func (c *DefaultApiService) CreateExportCustomJob(resourceType string, params *C /* DeleteJob Method for DeleteJob - * @param jobSid The unique string that that we created to identify the Bulk Export job + * @param JobSid The unique string that that we created to identify the Bulk Export job */ -func (c *DefaultApiService) DeleteJob(jobSid string) (error) { +func (c *DefaultApiService) DeleteJob(JobSid string) (error) { path := "/v1/Exports/Jobs/{JobSid}" - path = strings.Replace(path, "{"+"JobSid"+"}", jobSid, -1) + path = strings.Replace(path, "{"+"JobSid"+"}", JobSid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -118,15 +121,16 @@ func (c *DefaultApiService) DeleteJob(jobSid string) (error) { /* FetchDay Method for FetchDay Fetch a specific Day. - * @param resourceType The type of communication – Messages, Calls - * @param day The ISO 8601 format date of the resources in the file, for a UTC day + * @param ResourceType The type of communication – Messages, Calls + * @param Day The ISO 8601 format date of the resources in the file, for a UTC day */ -func (c *DefaultApiService) FetchDay(resourceType string, day string) (error) { +func (c *DefaultApiService) FetchDay(ResourceType string, Day string) (error) { path := "/v1/Exports/{ResourceType}/Days/{Day}" - path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) - path = strings.Replace(path, "{"+"Day"+"}", day, -1) + path = strings.Replace(path, "{"+"ResourceType"+"}", ResourceType, -1) + path = strings.Replace(path, "{"+"Day"+"}", Day, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -144,14 +148,15 @@ func (c *DefaultApiService) FetchDay(resourceType string, day string) (error) { /* FetchExport Method for FetchExport Fetch a specific Export. - * @param resourceType The type of communication – Messages, Calls + * @param ResourceType The type of communication – Messages, Calls @return BulkexportsV1Export */ -func (c *DefaultApiService) FetchExport(resourceType string) (*BulkexportsV1Export, error) { +func (c *DefaultApiService) FetchExport(ResourceType string) (*BulkexportsV1Export, error) { path := "/v1/Exports/{ResourceType}" - path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + path = strings.Replace(path, "{"+"ResourceType"+"}", ResourceType, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -174,14 +179,15 @@ func (c *DefaultApiService) FetchExport(resourceType string) (*BulkexportsV1Expo /* FetchExportConfiguration Method for FetchExportConfiguration Fetch a specific Export Configuration. - * @param resourceType The type of communication – Messages, Calls + * @param ResourceType The type of communication – Messages, Calls @return BulkexportsV1ExportConfiguration */ -func (c *DefaultApiService) FetchExportConfiguration(resourceType string) (*BulkexportsV1ExportConfiguration, error) { +func (c *DefaultApiService) FetchExportConfiguration(ResourceType string) (*BulkexportsV1ExportConfiguration, error) { path := "/v1/Exports/{ResourceType}/Configuration" - path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + path = strings.Replace(path, "{"+"ResourceType"+"}", ResourceType, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -203,14 +209,15 @@ func (c *DefaultApiService) FetchExportConfiguration(resourceType string) (*Bulk /* FetchJob Method for FetchJob - * @param jobSid + * @param JobSid @return BulkexportsV1ExportJob */ -func (c *DefaultApiService) FetchJob(jobSid string) (*BulkexportsV1ExportJob, error) { +func (c *DefaultApiService) FetchJob(JobSid string) (*BulkexportsV1ExportJob, error) { path := "/v1/Exports/Jobs/{JobSid}" - path = strings.Replace(path, "{"+"JobSid"+"}", jobSid, -1) + path = strings.Replace(path, "{"+"JobSid"+"}", JobSid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -237,20 +244,21 @@ type ListDayParams struct { /* ListDay Method for ListDay Retrieve a list of all Days for a resource. - * @param resourceType The type of communication – Messages, Calls + * @param ResourceType The type of communication – Messages, Calls * @param optional nil or *ListDayOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return BulkexportsV1ExportDayReadResponse */ -func (c *DefaultApiService) ListDay(resourceType string, params *ListDayParams) (*BulkexportsV1ExportDayReadResponse, error) { +func (c *DefaultApiService) ListDay(ResourceType string, params *ListDayParams) (*BulkexportsV1ExportDayReadResponse, error) { path := "/v1/Exports/{ResourceType}/Days" - path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + path = strings.Replace(path, "{"+"ResourceType"+"}", ResourceType, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -275,20 +283,21 @@ type ListExportCustomJobParams struct { /* ListExportCustomJob Method for ListExportCustomJob - * @param resourceType The type of communication – Messages, Calls + * @param ResourceType The type of communication – Messages, Calls * @param optional nil or *ListExportCustomJobOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return BulkexportsV1ExportExportCustomJobReadResponse */ -func (c *DefaultApiService) ListExportCustomJob(resourceType string, params *ListExportCustomJobParams) (*BulkexportsV1ExportExportCustomJobReadResponse, error) { +func (c *DefaultApiService) ListExportCustomJob(ResourceType string, params *ListExportCustomJobParams) (*BulkexportsV1ExportExportCustomJobReadResponse, error) { path := "/v1/Exports/{ResourceType}/Jobs" - path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + path = strings.Replace(path, "{"+"ResourceType"+"}", ResourceType, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -316,28 +325,29 @@ type UpdateExportConfigurationParams struct { /* UpdateExportConfiguration Method for UpdateExportConfiguration Update a specific Export Configuration. - * @param resourceType The type of communication – Messages, Calls + * @param ResourceType The type of communication – Messages, Calls * @param optional nil or *UpdateExportConfigurationOpts - Optional Parameters: * @param "Enabled" (bool) - If true, Twilio will automatically generate every day's file when the day is over. * @param "WebhookMethod" (string) - Sets whether Twilio should call a webhook URL when the automatic generation is complete, using GET or POST. The actual destination is set in the webhook_url * @param "WebhookUrl" (string) - Stores the URL destination for the method specified in webhook_method. @return BulkexportsV1ExportConfiguration */ -func (c *DefaultApiService) UpdateExportConfiguration(resourceType string, params *UpdateExportConfigurationParams) (*BulkexportsV1ExportConfiguration, error) { +func (c *DefaultApiService) UpdateExportConfiguration(ResourceType string, params *UpdateExportConfigurationParams) (*BulkexportsV1ExportConfiguration, error) { path := "/v1/Exports/{ResourceType}/Configuration" - path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + path = strings.Replace(path, "{"+"ResourceType"+"}", ResourceType, -1) + data := url.Values{} headers := 0 if params != nil && params.Enabled != nil { - data.Set("Enabled", string(*params.Enabled)) + data.Set("Enabled", fmt.Sprint(*params.Enabled)) } if params != nil && params.WebhookMethod != nil { - data.Set("WebhookMethod", *params.WebhookMethod) + data.Set("WebhookMethod", *params.WebhookMethod) } if params != nil && params.WebhookUrl != nil { - data.Set("WebhookUrl", *params.WebhookUrl) + data.Set("WebhookUrl", *params.WebhookUrl) } diff --git a/rest/bulkexports/v1/docs/DefaultApi.md b/rest/bulkexports/v1/docs/DefaultApi.md index b634cf469..600b2a919 100644 --- a/rest/bulkexports/v1/docs/DefaultApi.md +++ b/rest/bulkexports/v1/docs/DefaultApi.md @@ -18,7 +18,7 @@ Method | HTTP request | Description ## CreateExportCustomJob -> BulkexportsV1ExportExportCustomJob CreateExportCustomJob(ctx, resourceType, optional) +> BulkexportsV1ExportExportCustomJob CreateExportCustomJob(ctx, ResourceType, optional) @@ -28,7 +28,7 @@ Method | HTTP request | Description Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**resourceType** | **string**| The type of communication – Messages or Calls | +**ResourceType** | **string**| The type of communication – Messages or Calls | **optional** | ***CreateExportCustomJobOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -39,12 +39,12 @@ Optional parameters are passed through a pointer to a CreateExportCustomJobOpts Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **email** | **optional.String**| The optional email to send the completion notification to. You can set both webhook, and email, or one or the other. If you set neither, the job will run but you will have to query to determine your job's status. | - **endDay** | **optional.String**| The end day for the custom export specified as a string in the format of yyyy-mm-dd. End day is inclusive and must be 2 days earlier than the current UTC day. | - **friendlyName** | **optional.String**| The friendly name specified when creating the job | - **startDay** | **optional.String**| The start day for the custom export specified as a string in the format of yyyy-mm-dd | - **webhookMethod** | **optional.String**| This is the method used to call the webhook on completion of the job. If this is supplied, `WebhookUrl` must also be supplied. | - **webhookUrl** | **optional.String**| The optional webhook url called on completion of the job. If this is supplied, `WebhookMethod` must also be supplied. If you set neither webhook nor email, you will have to check your job's status manually. | + **Email** | **optional.String**| The optional email to send the completion notification to. You can set both webhook, and email, or one or the other. If you set neither, the job will run but you will have to query to determine your job's status. | + **EndDay** | **optional.String**| The end day for the custom export specified as a string in the format of yyyy-mm-dd. End day is inclusive and must be 2 days earlier than the current UTC day. | + **FriendlyName** | **optional.String**| The friendly name specified when creating the job | + **StartDay** | **optional.String**| The start day for the custom export specified as a string in the format of yyyy-mm-dd | + **WebhookMethod** | **optional.String**| This is the method used to call the webhook on completion of the job. If this is supplied, `WebhookUrl` must also be supplied. | + **WebhookUrl** | **optional.String**| The optional webhook url called on completion of the job. If this is supplied, `WebhookMethod` must also be supplied. If you set neither webhook nor email, you will have to check your job's status manually. | ### Return type @@ -66,7 +66,7 @@ Name | Type | Description | Notes ## DeleteJob -> DeleteJob(ctx, jobSid) +> DeleteJob(ctx, JobSid) @@ -76,7 +76,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**jobSid** | **string**| The unique string that that we created to identify the Bulk Export job | +**JobSid** | **string**| The unique string that that we created to identify the Bulk Export job | ### Return type @@ -98,7 +98,7 @@ Name | Type | Description | Notes ## FetchDay -> FetchDay(ctx, resourceType, day) +> FetchDay(ctx, ResourceType, Day) @@ -110,8 +110,8 @@ Fetch a specific Day. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**resourceType** | **string**| The type of communication – Messages, Calls | -**day** | **string**| The ISO 8601 format date of the resources in the file, for a UTC day | +**ResourceType** | **string**| The type of communication – Messages, Calls | +**Day** | **string**| The ISO 8601 format date of the resources in the file, for a UTC day | ### Return type @@ -133,7 +133,7 @@ Name | Type | Description | Notes ## FetchExport -> BulkexportsV1Export FetchExport(ctx, resourceType) +> BulkexportsV1Export FetchExport(ctx, ResourceType) @@ -145,7 +145,7 @@ Fetch a specific Export. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**resourceType** | **string**| The type of communication – Messages, Calls | +**ResourceType** | **string**| The type of communication – Messages, Calls | ### Return type @@ -167,7 +167,7 @@ Name | Type | Description | Notes ## FetchExportConfiguration -> BulkexportsV1ExportConfiguration FetchExportConfiguration(ctx, resourceType) +> BulkexportsV1ExportConfiguration FetchExportConfiguration(ctx, ResourceType) @@ -179,7 +179,7 @@ Fetch a specific Export Configuration. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**resourceType** | **string**| The type of communication – Messages, Calls | +**ResourceType** | **string**| The type of communication – Messages, Calls | ### Return type @@ -201,7 +201,7 @@ Name | Type | Description | Notes ## FetchJob -> BulkexportsV1ExportJob FetchJob(ctx, jobSid) +> BulkexportsV1ExportJob FetchJob(ctx, JobSid) @@ -211,7 +211,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**jobSid** | **string**| | +**JobSid** | **string**| | ### Return type @@ -233,7 +233,7 @@ Name | Type | Description | Notes ## ListDay -> BulkexportsV1ExportDayReadResponse ListDay(ctx, resourceType, optional) +> BulkexportsV1ExportDayReadResponse ListDay(ctx, ResourceType, optional) @@ -245,7 +245,7 @@ Retrieve a list of all Days for a resource. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**resourceType** | **string**| The type of communication – Messages, Calls | +**ResourceType** | **string**| The type of communication – Messages, Calls | **optional** | ***ListDayOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -256,7 +256,7 @@ Optional parameters are passed through a pointer to a ListDayOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -278,7 +278,7 @@ Name | Type | Description | Notes ## ListExportCustomJob -> BulkexportsV1ExportExportCustomJobReadResponse ListExportCustomJob(ctx, resourceType, optional) +> BulkexportsV1ExportExportCustomJobReadResponse ListExportCustomJob(ctx, ResourceType, optional) @@ -288,7 +288,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**resourceType** | **string**| The type of communication – Messages, Calls | +**ResourceType** | **string**| The type of communication – Messages, Calls | **optional** | ***ListExportCustomJobOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -299,7 +299,7 @@ Optional parameters are passed through a pointer to a ListExportCustomJobOpts st Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -321,7 +321,7 @@ Name | Type | Description | Notes ## UpdateExportConfiguration -> BulkexportsV1ExportConfiguration UpdateExportConfiguration(ctx, resourceType, optional) +> BulkexportsV1ExportConfiguration UpdateExportConfiguration(ctx, ResourceType, optional) @@ -333,7 +333,7 @@ Update a specific Export Configuration. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**resourceType** | **string**| The type of communication – Messages, Calls | +**ResourceType** | **string**| The type of communication – Messages, Calls | **optional** | ***UpdateExportConfigurationOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -344,9 +344,9 @@ Optional parameters are passed through a pointer to a UpdateExportConfigurationO Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **enabled** | **optional.Bool**| If true, Twilio will automatically generate every day's file when the day is over. | - **webhookMethod** | **optional.String**| Sets whether Twilio should call a webhook URL when the automatic generation is complete, using GET or POST. The actual destination is set in the webhook_url | - **webhookUrl** | **optional.String**| Stores the URL destination for the method specified in webhook_method. | + **Enabled** | **optional.Bool**| If true, Twilio will automatically generate every day's file when the day is over. | + **WebhookMethod** | **optional.String**| Sets whether Twilio should call a webhook URL when the automatic generation is complete, using GET or POST. The actual destination is set in the webhook_url | + **WebhookUrl** | **optional.String**| Stores the URL destination for the method specified in webhook_method. | ### Return type diff --git a/rest/bulkexports/v1/model_bulkexports_v1_export.go b/rest/bulkexports/v1/model_bulkexports_v1_export.go index a02cc8fc9..449859315 100644 --- a/rest/bulkexports/v1/model_bulkexports_v1_export.go +++ b/rest/bulkexports/v1/model_bulkexports_v1_export.go @@ -11,7 +11,7 @@ package openapi // BulkexportsV1Export struct for BulkexportsV1Export type BulkexportsV1Export struct { - Links map[string]interface{} `json:"links,omitempty"` - ResourceType string `json:"resource_type,omitempty"` - Url string `json:"url,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + ResourceType string `json:"ResourceType,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/bulkexports/v1/model_bulkexports_v1_export_configuration.go b/rest/bulkexports/v1/model_bulkexports_v1_export_configuration.go index e58accbcf..ee98b2e75 100644 --- a/rest/bulkexports/v1/model_bulkexports_v1_export_configuration.go +++ b/rest/bulkexports/v1/model_bulkexports_v1_export_configuration.go @@ -11,9 +11,9 @@ package openapi // BulkexportsV1ExportConfiguration struct for BulkexportsV1ExportConfiguration type BulkexportsV1ExportConfiguration struct { - Enabled bool `json:"enabled,omitempty"` - ResourceType string `json:"resource_type,omitempty"` - Url string `json:"url,omitempty"` - WebhookMethod string `json:"webhook_method,omitempty"` - WebhookUrl string `json:"webhook_url,omitempty"` + Enabled bool `json:"Enabled,omitempty"` + ResourceType string `json:"ResourceType,omitempty"` + Url string `json:"Url,omitempty"` + WebhookMethod string `json:"WebhookMethod,omitempty"` + WebhookUrl string `json:"WebhookUrl,omitempty"` } diff --git a/rest/bulkexports/v1/model_bulkexports_v1_export_day.go b/rest/bulkexports/v1/model_bulkexports_v1_export_day.go index ef9ec7b3a..6fb81ff55 100644 --- a/rest/bulkexports/v1/model_bulkexports_v1_export_day.go +++ b/rest/bulkexports/v1/model_bulkexports_v1_export_day.go @@ -11,9 +11,9 @@ package openapi // BulkexportsV1ExportDay struct for BulkexportsV1ExportDay type BulkexportsV1ExportDay struct { - CreateDate string `json:"create_date,omitempty"` - Day string `json:"day,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - ResourceType string `json:"resource_type,omitempty"` - Size int32 `json:"size,omitempty"` + CreateDate string `json:"CreateDate,omitempty"` + Day string `json:"Day,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + ResourceType string `json:"ResourceType,omitempty"` + Size int32 `json:"Size,omitempty"` } diff --git a/rest/bulkexports/v1/model_bulkexports_v1_export_day_instance.go b/rest/bulkexports/v1/model_bulkexports_v1_export_day_instance.go index 99e225191..10110ce60 100644 --- a/rest/bulkexports/v1/model_bulkexports_v1_export_day_instance.go +++ b/rest/bulkexports/v1/model_bulkexports_v1_export_day_instance.go @@ -11,5 +11,5 @@ package openapi // BulkexportsV1ExportDayInstance struct for BulkexportsV1ExportDayInstance type BulkexportsV1ExportDayInstance struct { - RedirectTo string `json:"redirect_to,omitempty"` + RedirectTo string `json:"RedirectTo,omitempty"` } diff --git a/rest/bulkexports/v1/model_bulkexports_v1_export_day_read_response.go b/rest/bulkexports/v1/model_bulkexports_v1_export_day_read_response.go index b7711708e..057cfabbe 100644 --- a/rest/bulkexports/v1/model_bulkexports_v1_export_day_read_response.go +++ b/rest/bulkexports/v1/model_bulkexports_v1_export_day_read_response.go @@ -11,6 +11,6 @@ package openapi // BulkexportsV1ExportDayReadResponse struct for BulkexportsV1ExportDayReadResponse type BulkexportsV1ExportDayReadResponse struct { - Days []BulkexportsV1ExportDay `json:"days,omitempty"` - Meta BulkexportsV1ExportDayReadResponseMeta `json:"meta,omitempty"` + Days []BulkexportsV1ExportDay `json:"Days,omitempty"` + Meta BulkexportsV1ExportDayReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/bulkexports/v1/model_bulkexports_v1_export_day_read_response_meta.go b/rest/bulkexports/v1/model_bulkexports_v1_export_day_read_response_meta.go index 6be51a9be..3a618225c 100644 --- a/rest/bulkexports/v1/model_bulkexports_v1_export_day_read_response_meta.go +++ b/rest/bulkexports/v1/model_bulkexports_v1_export_day_read_response_meta.go @@ -11,11 +11,11 @@ package openapi // BulkexportsV1ExportDayReadResponseMeta struct for BulkexportsV1ExportDayReadResponseMeta type BulkexportsV1ExportDayReadResponseMeta struct { - FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` - NextPageUrl string `json:"next_page_url,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUrl string `json:"previous_page_url,omitempty"` - Url string `json:"url,omitempty"` + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/bulkexports/v1/model_bulkexports_v1_export_export_custom_job.go b/rest/bulkexports/v1/model_bulkexports_v1_export_export_custom_job.go index 93b770913..9a0da4cf1 100644 --- a/rest/bulkexports/v1/model_bulkexports_v1_export_export_custom_job.go +++ b/rest/bulkexports/v1/model_bulkexports_v1_export_export_custom_job.go @@ -11,13 +11,13 @@ package openapi // BulkexportsV1ExportExportCustomJob struct for BulkexportsV1ExportExportCustomJob type BulkexportsV1ExportExportCustomJob struct { - Details map[string]interface{} `json:"details,omitempty"` - Email string `json:"email,omitempty"` - EndDay string `json:"end_day,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - JobSid string `json:"job_sid,omitempty"` - ResourceType string `json:"resource_type,omitempty"` - StartDay string `json:"start_day,omitempty"` - WebhookMethod string `json:"webhook_method,omitempty"` - WebhookUrl string `json:"webhook_url,omitempty"` + Details map[string]interface{} `json:"Details,omitempty"` + Email string `json:"Email,omitempty"` + EndDay string `json:"EndDay,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + JobSid string `json:"JobSid,omitempty"` + ResourceType string `json:"ResourceType,omitempty"` + StartDay string `json:"StartDay,omitempty"` + WebhookMethod string `json:"WebhookMethod,omitempty"` + WebhookUrl string `json:"WebhookUrl,omitempty"` } diff --git a/rest/bulkexports/v1/model_bulkexports_v1_export_export_custom_job_read_response.go b/rest/bulkexports/v1/model_bulkexports_v1_export_export_custom_job_read_response.go index bdaa6f6b9..ce78abde1 100644 --- a/rest/bulkexports/v1/model_bulkexports_v1_export_export_custom_job_read_response.go +++ b/rest/bulkexports/v1/model_bulkexports_v1_export_export_custom_job_read_response.go @@ -11,6 +11,6 @@ package openapi // BulkexportsV1ExportExportCustomJobReadResponse struct for BulkexportsV1ExportExportCustomJobReadResponse type BulkexportsV1ExportExportCustomJobReadResponse struct { - Jobs []BulkexportsV1ExportExportCustomJob `json:"jobs,omitempty"` - Meta BulkexportsV1ExportDayReadResponseMeta `json:"meta,omitempty"` + Jobs []BulkexportsV1ExportExportCustomJob `json:"Jobs,omitempty"` + Meta BulkexportsV1ExportDayReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/bulkexports/v1/model_bulkexports_v1_export_job.go b/rest/bulkexports/v1/model_bulkexports_v1_export_job.go index 26c46b6ac..759470c07 100644 --- a/rest/bulkexports/v1/model_bulkexports_v1_export_job.go +++ b/rest/bulkexports/v1/model_bulkexports_v1_export_job.go @@ -11,14 +11,14 @@ package openapi // BulkexportsV1ExportJob struct for BulkexportsV1ExportJob type BulkexportsV1ExportJob struct { - Details map[string]interface{} `json:"details,omitempty"` - Email string `json:"email,omitempty"` - EndDay string `json:"end_day,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - JobSid string `json:"job_sid,omitempty"` - ResourceType string `json:"resource_type,omitempty"` - StartDay string `json:"start_day,omitempty"` - Url string `json:"url,omitempty"` - WebhookMethod string `json:"webhook_method,omitempty"` - WebhookUrl string `json:"webhook_url,omitempty"` + Details map[string]interface{} `json:"Details,omitempty"` + Email string `json:"Email,omitempty"` + EndDay string `json:"EndDay,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + JobSid string `json:"JobSid,omitempty"` + ResourceType string `json:"ResourceType,omitempty"` + StartDay string `json:"StartDay,omitempty"` + Url string `json:"Url,omitempty"` + WebhookMethod string `json:"WebhookMethod,omitempty"` + WebhookUrl string `json:"WebhookUrl,omitempty"` } diff --git a/rest/chat/v1/api_default.go b/rest/chat/v1/api_default.go index 2f970e3a8..aa41aa2e4 100644 --- a/rest/chat/v1/api_default.go +++ b/rest/chat/v1/api_default.go @@ -15,6 +15,7 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" ) type DefaultApiService struct { @@ -38,7 +39,7 @@ type CreateChannelParams struct { /* CreateChannel Method for CreateChannel - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under. * @param optional nil or *CreateChannelOpts - Optional Parameters: * @param "Attributes" (string) - A valid JSON string that contains application-specific data. * @param "FriendlyName" (string) - A descriptive string that you create to describe the new resource. It can be up to 64 characters long. @@ -46,24 +47,25 @@ CreateChannel Method for CreateChannel * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. This value must be 64 characters or less in length and be unique within the Service. @return ChatV1ServiceChannel */ -func (c *DefaultApiService) CreateChannel(serviceSid string, params *CreateChannelParams) (*ChatV1ServiceChannel, error) { +func (c *DefaultApiService) CreateChannel(ServiceSid string, params *CreateChannelParams) (*ChatV1ServiceChannel, error) { path := "/v1/Services/{ServiceSid}/Channels" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Type != nil { - data.Set("Type", *params.Type) + data.Set("Type", *params.Type) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -107,29 +109,30 @@ CreateCredential Method for CreateCredential func (c *DefaultApiService) CreateCredential(params *CreateCredentialParams) (*ChatV1Credential, error) { path := "/v1/Credentials" + data := url.Values{} headers := 0 if params != nil && params.ApiKey != nil { - data.Set("ApiKey", *params.ApiKey) + data.Set("ApiKey", *params.ApiKey) } if params != nil && params.Certificate != nil { - data.Set("Certificate", *params.Certificate) + data.Set("Certificate", *params.Certificate) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.PrivateKey != nil { - data.Set("PrivateKey", *params.PrivateKey) + data.Set("PrivateKey", *params.PrivateKey) } if params != nil && params.Sandbox != nil { - data.Set("Sandbox", string(*params.Sandbox)) + data.Set("Sandbox", fmt.Sprint(*params.Sandbox)) } if params != nil && params.Secret != nil { - data.Set("Secret", *params.Secret) + data.Set("Secret", *params.Secret) } if params != nil && params.Type != nil { - data.Set("Type", *params.Type) + data.Set("Type", *params.Type) } @@ -155,26 +158,27 @@ type CreateInviteParams struct { /* CreateInvite Method for CreateInvite - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under. - * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the new resource belongs to. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under. + * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the new resource belongs to. * @param optional nil or *CreateInviteOpts - Optional Parameters: * @param "Identity" (string) - The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/api/chat/rest/v1/user) within the [Service](https://www.twilio.com/docs/api/chat/rest/v1/service). See [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) for more info. * @param "RoleSid" (string) - The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) assigned to the new member. @return ChatV1ServiceChannelInvite */ -func (c *DefaultApiService) CreateInvite(serviceSid string, channelSid string, params *CreateInviteParams) (*ChatV1ServiceChannelInvite, error) { +func (c *DefaultApiService) CreateInvite(ServiceSid string, ChannelSid string, params *CreateInviteParams) (*ChatV1ServiceChannelInvite, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) + data.Set("Identity", *params.Identity) } if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) + data.Set("RoleSid", *params.RoleSid) } @@ -200,26 +204,27 @@ type CreateMemberParams struct { /* CreateMember Method for CreateMember - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under. - * @param channelSid The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the new member belongs to. Can be the Channel resource's `sid` or `unique_name`. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under. + * @param ChannelSid The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the new member belongs to. Can be the Channel resource's `sid` or `unique_name`. * @param optional nil or *CreateMemberOpts - Optional Parameters: * @param "Identity" (string) - The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/api/chat/rest/v1/user) within the [Service](https://www.twilio.com/docs/api/chat/rest/services). See [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) for more details. * @param "RoleSid" (string) - The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/api/services). @return ChatV1ServiceChannelMember */ -func (c *DefaultApiService) CreateMember(serviceSid string, channelSid string, params *CreateMemberParams) (*ChatV1ServiceChannelMember, error) { +func (c *DefaultApiService) CreateMember(ServiceSid string, ChannelSid string, params *CreateMemberParams) (*ChatV1ServiceChannelMember, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) + data.Set("Identity", *params.Identity) } if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) + data.Set("RoleSid", *params.RoleSid) } @@ -246,30 +251,31 @@ type CreateMessageParams struct { /* CreateMessage Method for CreateMessage - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under. - * @param channelSid The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the new resource belongs to. Can be the Channel resource's `sid` or `unique_name`. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under. + * @param ChannelSid The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the new resource belongs to. Can be the Channel resource's `sid` or `unique_name`. * @param optional nil or *CreateMessageOpts - Optional Parameters: * @param "Attributes" (string) - A valid JSON string that contains application-specific data. * @param "Body" (string) - The message to send to the channel. Can also be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string. * @param "From" (string) - The [identity](https://www.twilio.com/docs/api/chat/guides/identity) of the new message's author. The default value is `system`. @return ChatV1ServiceChannelMessage */ -func (c *DefaultApiService) CreateMessage(serviceSid string, channelSid string, params *CreateMessageParams) (*ChatV1ServiceChannelMessage, error) { +func (c *DefaultApiService) CreateMessage(ServiceSid string, ChannelSid string, params *CreateMessageParams) (*ChatV1ServiceChannelMessage, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.Body != nil { - data.Set("Body", *params.Body) + data.Set("Body", *params.Body) } if params != nil && params.From != nil { - data.Set("From", *params.From) + data.Set("From", *params.From) } @@ -296,28 +302,29 @@ type CreateRoleParams struct { /* CreateRole Method for CreateRole - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under. * @param optional nil or *CreateRoleOpts - Optional Parameters: * @param "FriendlyName" (string) - A descriptive string that you create to describe the new resource. It can be up to 64 characters long. * @param "Permission" ([]string) - A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type` and are described in the documentation. * @param "Type" (string) - The type of role. Can be: `channel` for [Channel](https://www.twilio.com/docs/chat/api/channels) roles or `deployment` for [Service](https://www.twilio.com/docs/chat/api/services) roles. @return ChatV1ServiceRole */ -func (c *DefaultApiService) CreateRole(serviceSid string, params *CreateRoleParams) (*ChatV1ServiceRole, error) { +func (c *DefaultApiService) CreateRole(ServiceSid string, params *CreateRoleParams) (*ChatV1ServiceRole, error) { path := "/v1/Services/{ServiceSid}/Roles" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Permission != nil { - data.Set("Permission", *params.Permission) + data.Set("Permission", strings.Join(*params.Permission, ",")) } if params != nil && params.Type != nil { - data.Set("Type", *params.Type) + data.Set("Type", *params.Type) } @@ -349,11 +356,12 @@ CreateService Method for CreateService func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*ChatV1Service, error) { path := "/v1/Services" + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -381,7 +389,7 @@ type CreateUserParams struct { /* CreateUser Method for CreateUser - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under. * @param optional nil or *CreateUserOpts - Optional Parameters: * @param "Attributes" (string) - A valid JSON string that contains application-specific data. * @param "FriendlyName" (string) - A descriptive string that you create to describe the new resource. This value is often used for display purposes. @@ -389,24 +397,25 @@ CreateUser Method for CreateUser * @param "RoleSid" (string) - The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) assigned to the new User. @return ChatV1ServiceUser */ -func (c *DefaultApiService) CreateUser(serviceSid string, params *CreateUserParams) (*ChatV1ServiceUser, error) { +func (c *DefaultApiService) CreateUser(ServiceSid string, params *CreateUserParams) (*ChatV1ServiceUser, error) { path := "/v1/Services/{ServiceSid}/Users" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) + data.Set("Identity", *params.Identity) } if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) + data.Set("RoleSid", *params.RoleSid) } @@ -427,15 +436,16 @@ func (c *DefaultApiService) CreateUser(serviceSid string, params *CreateUserPara /* DeleteChannel Method for DeleteChannel - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from. - * @param sid The Twilio-provided string that uniquely identifies the Channel resource to delete. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from. + * @param Sid The Twilio-provided string that uniquely identifies the Channel resource to delete. */ -func (c *DefaultApiService) DeleteChannel(serviceSid string, sid string) (error) { +func (c *DefaultApiService) DeleteChannel(ServiceSid string, Sid string) (error) { path := "/v1/Services/{ServiceSid}/Channels/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -452,13 +462,14 @@ func (c *DefaultApiService) DeleteChannel(serviceSid string, sid string) (error) /* DeleteCredential Method for DeleteCredential - * @param sid The Twilio-provided string that uniquely identifies the Credential resource to delete. + * @param Sid The Twilio-provided string that uniquely identifies the Credential resource to delete. */ -func (c *DefaultApiService) DeleteCredential(sid string) (error) { +func (c *DefaultApiService) DeleteCredential(Sid string) (error) { path := "/v1/Credentials/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -475,17 +486,18 @@ func (c *DefaultApiService) DeleteCredential(sid string) (error) { /* DeleteInvite Method for DeleteInvite - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from. - * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the resource to delete belongs to. - * @param sid The Twilio-provided string that uniquely identifies the Invite resource to delete. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from. + * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the resource to delete belongs to. + * @param Sid The Twilio-provided string that uniquely identifies the Invite resource to delete. */ -func (c *DefaultApiService) DeleteInvite(serviceSid string, channelSid string, sid string) (error) { +func (c *DefaultApiService) DeleteInvite(ServiceSid string, ChannelSid string, Sid string) (error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -502,17 +514,18 @@ func (c *DefaultApiService) DeleteInvite(serviceSid string, channelSid string, s /* DeleteMember Method for DeleteMember - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from. - * @param channelSid The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message belongs to. Can be the Channel's `sid` or `unique_name`. - * @param sid The Twilio-provided string that uniquely identifies the Member resource to delete. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from. + * @param ChannelSid The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message belongs to. Can be the Channel's `sid` or `unique_name`. + * @param Sid The Twilio-provided string that uniquely identifies the Member resource to delete. */ -func (c *DefaultApiService) DeleteMember(serviceSid string, channelSid string, sid string) (error) { +func (c *DefaultApiService) DeleteMember(ServiceSid string, ChannelSid string, Sid string) (error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -529,17 +542,18 @@ func (c *DefaultApiService) DeleteMember(serviceSid string, channelSid string, s /* DeleteMessage Method for DeleteMessage - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from. - * @param channelSid The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message to delete belongs to. Can be the Channel resource's `sid` or `unique_name`. - * @param sid The Twilio-provided string that uniquely identifies the Message resource to delete. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from. + * @param ChannelSid The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message to delete belongs to. Can be the Channel resource's `sid` or `unique_name`. + * @param Sid The Twilio-provided string that uniquely identifies the Message resource to delete. */ -func (c *DefaultApiService) DeleteMessage(serviceSid string, channelSid string, sid string) (error) { +func (c *DefaultApiService) DeleteMessage(ServiceSid string, ChannelSid string, Sid string) (error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -556,15 +570,16 @@ func (c *DefaultApiService) DeleteMessage(serviceSid string, channelSid string, /* DeleteRole Method for DeleteRole - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from. - * @param sid The Twilio-provided string that uniquely identifies the Role resource to delete. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from. + * @param Sid The Twilio-provided string that uniquely identifies the Role resource to delete. */ -func (c *DefaultApiService) DeleteRole(serviceSid string, sid string) (error) { +func (c *DefaultApiService) DeleteRole(ServiceSid string, Sid string) (error) { path := "/v1/Services/{ServiceSid}/Roles/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -581,13 +596,14 @@ func (c *DefaultApiService) DeleteRole(serviceSid string, sid string) (error) { /* DeleteService Method for DeleteService - * @param sid The Twilio-provided string that uniquely identifies the Service resource to delete. + * @param Sid The Twilio-provided string that uniquely identifies the Service resource to delete. */ -func (c *DefaultApiService) DeleteService(sid string) (error) { +func (c *DefaultApiService) DeleteService(Sid string) (error) { path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -604,15 +620,16 @@ func (c *DefaultApiService) DeleteService(sid string) (error) { /* DeleteUser Method for DeleteUser - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from. - * @param sid The Twilio-provided string that uniquely identifies the User resource to delete. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from. + * @param Sid The Twilio-provided string that uniquely identifies the User resource to delete. */ -func (c *DefaultApiService) DeleteUser(serviceSid string, sid string) (error) { +func (c *DefaultApiService) DeleteUser(ServiceSid string, Sid string) (error) { path := "/v1/Services/{ServiceSid}/Users/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -629,16 +646,17 @@ func (c *DefaultApiService) DeleteUser(serviceSid string, sid string) (error) { /* FetchChannel Method for FetchChannel - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from. - * @param sid The Twilio-provided string that uniquely identifies the Channel resource to fetch. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from. + * @param Sid The Twilio-provided string that uniquely identifies the Channel resource to fetch. @return ChatV1ServiceChannel */ -func (c *DefaultApiService) FetchChannel(serviceSid string, sid string) (*ChatV1ServiceChannel, error) { +func (c *DefaultApiService) FetchChannel(ServiceSid string, Sid string) (*ChatV1ServiceChannel, error) { path := "/v1/Services/{ServiceSid}/Channels/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -660,14 +678,15 @@ func (c *DefaultApiService) FetchChannel(serviceSid string, sid string) (*ChatV1 /* FetchCredential Method for FetchCredential - * @param sid The Twilio-provided string that uniquely identifies the Credential resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the Credential resource to fetch. @return ChatV1Credential */ -func (c *DefaultApiService) FetchCredential(sid string) (*ChatV1Credential, error) { +func (c *DefaultApiService) FetchCredential(Sid string) (*ChatV1Credential, error) { path := "/v1/Credentials/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -689,18 +708,19 @@ func (c *DefaultApiService) FetchCredential(sid string) (*ChatV1Credential, erro /* FetchInvite Method for FetchInvite - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from. - * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the resource to fetch belongs to. - * @param sid The Twilio-provided string that uniquely identifies the Invite resource to fetch. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from. + * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the resource to fetch belongs to. + * @param Sid The Twilio-provided string that uniquely identifies the Invite resource to fetch. @return ChatV1ServiceChannelInvite */ -func (c *DefaultApiService) FetchInvite(serviceSid string, channelSid string, sid string) (*ChatV1ServiceChannelInvite, error) { +func (c *DefaultApiService) FetchInvite(ServiceSid string, ChannelSid string, Sid string) (*ChatV1ServiceChannelInvite, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -722,18 +742,19 @@ func (c *DefaultApiService) FetchInvite(serviceSid string, channelSid string, si /* FetchMember Method for FetchMember - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from. - * @param channelSid The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the member to fetch belongs to. Can be the Channel resource's `sid` or `unique_name` value. - * @param sid The Twilio-provided string that uniquely identifies the Member resource to fetch. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from. + * @param ChannelSid The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the member to fetch belongs to. Can be the Channel resource's `sid` or `unique_name` value. + * @param Sid The Twilio-provided string that uniquely identifies the Member resource to fetch. @return ChatV1ServiceChannelMember */ -func (c *DefaultApiService) FetchMember(serviceSid string, channelSid string, sid string) (*ChatV1ServiceChannelMember, error) { +func (c *DefaultApiService) FetchMember(ServiceSid string, ChannelSid string, Sid string) (*ChatV1ServiceChannelMember, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -755,18 +776,19 @@ func (c *DefaultApiService) FetchMember(serviceSid string, channelSid string, si /* FetchMessage Method for FetchMessage - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from. - * @param channelSid The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message to fetch belongs to. Can be the Channel's `sid` or `unique_name`. - * @param sid The Twilio-provided string that uniquely identifies the Message resource to fetch. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from. + * @param ChannelSid The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message to fetch belongs to. Can be the Channel's `sid` or `unique_name`. + * @param Sid The Twilio-provided string that uniquely identifies the Message resource to fetch. @return ChatV1ServiceChannelMessage */ -func (c *DefaultApiService) FetchMessage(serviceSid string, channelSid string, sid string) (*ChatV1ServiceChannelMessage, error) { +func (c *DefaultApiService) FetchMessage(ServiceSid string, ChannelSid string, Sid string) (*ChatV1ServiceChannelMessage, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -788,16 +810,17 @@ func (c *DefaultApiService) FetchMessage(serviceSid string, channelSid string, s /* FetchRole Method for FetchRole - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from. - * @param sid The Twilio-provided string that uniquely identifies the Role resource to fetch. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from. + * @param Sid The Twilio-provided string that uniquely identifies the Role resource to fetch. @return ChatV1ServiceRole */ -func (c *DefaultApiService) FetchRole(serviceSid string, sid string) (*ChatV1ServiceRole, error) { +func (c *DefaultApiService) FetchRole(ServiceSid string, Sid string) (*ChatV1ServiceRole, error) { path := "/v1/Services/{ServiceSid}/Roles/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -819,14 +842,15 @@ func (c *DefaultApiService) FetchRole(serviceSid string, sid string) (*ChatV1Ser /* FetchService Method for FetchService - * @param sid The Twilio-provided string that uniquely identifies the Service resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the Service resource to fetch. @return ChatV1Service */ -func (c *DefaultApiService) FetchService(sid string) (*ChatV1Service, error) { +func (c *DefaultApiService) FetchService(Sid string) (*ChatV1Service, error) { path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -848,16 +872,17 @@ func (c *DefaultApiService) FetchService(sid string) (*ChatV1Service, error) { /* FetchUser Method for FetchUser - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from. - * @param sid The Twilio-provided string that uniquely identifies the User resource to fetch. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from. + * @param Sid The Twilio-provided string that uniquely identifies the User resource to fetch. @return ChatV1ServiceUser */ -func (c *DefaultApiService) FetchUser(serviceSid string, sid string) (*ChatV1ServiceUser, error) { +func (c *DefaultApiService) FetchUser(ServiceSid string, Sid string) (*ChatV1ServiceUser, error) { path := "/v1/Services/{ServiceSid}/Users/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -884,24 +909,25 @@ type ListChannelParams struct { /* ListChannel Method for ListChannel - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. * @param optional nil or *ListChannelOpts - Optional Parameters: * @param "Type" ([]string) - The visibility of the Channels to read. Can be: `public` or `private` and defaults to `public`. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ChatV1ServiceChannelReadResponse */ -func (c *DefaultApiService) ListChannel(serviceSid string, params *ListChannelParams) (*ChatV1ServiceChannelReadResponse, error) { +func (c *DefaultApiService) ListChannel(ServiceSid string, params *ListChannelParams) (*ChatV1ServiceChannelReadResponse, error) { path := "/v1/Services/{ServiceSid}/Channels" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Type != nil { - data.Set("Type", string(*params.Type)) + data.Set("Type", strings.Join(*params.Type, ",")) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -933,11 +959,12 @@ ListCredential Method for ListCredential func (c *DefaultApiService) ListCredential(params *ListCredentialParams) (*ChatV1CredentialReadResponse, error) { path := "/v1/Credentials" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -963,26 +990,27 @@ type ListInviteParams struct { /* ListInvite Method for ListInvite - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. - * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the resources to read belong to. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. + * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the resources to read belong to. * @param optional nil or *ListInviteOpts - Optional Parameters: * @param "Identity" ([]string) - The [User](https://www.twilio.com/docs/api/chat/rest/v1/user)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) for more details. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ChatV1ServiceChannelInviteReadResponse */ -func (c *DefaultApiService) ListInvite(serviceSid string, channelSid string, params *ListInviteParams) (*ChatV1ServiceChannelInviteReadResponse, error) { +func (c *DefaultApiService) ListInvite(ServiceSid string, ChannelSid string, params *ListInviteParams) (*ChatV1ServiceChannelInviteReadResponse, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Identity != nil { - data.Set("Identity", string(*params.Identity)) + data.Set("Identity", strings.Join(*params.Identity, ",")) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1008,26 +1036,27 @@ type ListMemberParams struct { /* ListMember Method for ListMember - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. - * @param channelSid The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the members to read belong to. Can be the Channel resource's `sid` or `unique_name` value. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. + * @param ChannelSid The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the members to read belong to. Can be the Channel resource's `sid` or `unique_name` value. * @param optional nil or *ListMemberOpts - Optional Parameters: * @param "Identity" ([]string) - The [User](https://www.twilio.com/docs/api/chat/rest/v1/user)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) for more details. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ChatV1ServiceChannelMemberReadResponse */ -func (c *DefaultApiService) ListMember(serviceSid string, channelSid string, params *ListMemberParams) (*ChatV1ServiceChannelMemberReadResponse, error) { +func (c *DefaultApiService) ListMember(ServiceSid string, ChannelSid string, params *ListMemberParams) (*ChatV1ServiceChannelMemberReadResponse, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Identity != nil { - data.Set("Identity", string(*params.Identity)) + data.Set("Identity", strings.Join(*params.Identity, ",")) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1053,26 +1082,27 @@ type ListMessageParams struct { /* ListMessage Method for ListMessage - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. - * @param channelSid The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message to read belongs to. Can be the Channel's `sid` or `unique_name`. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. + * @param ChannelSid The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message to read belongs to. Can be the Channel's `sid` or `unique_name`. * @param optional nil or *ListMessageOpts - Optional Parameters: * @param "Order" (string) - The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending) with `asc` as the default. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ChatV1ServiceChannelMessageReadResponse */ -func (c *DefaultApiService) ListMessage(serviceSid string, channelSid string, params *ListMessageParams) (*ChatV1ServiceChannelMessageReadResponse, error) { +func (c *DefaultApiService) ListMessage(ServiceSid string, ChannelSid string, params *ListMessageParams) (*ChatV1ServiceChannelMessageReadResponse, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Order != nil { - data.Set("Order", *params.Order) + data.Set("Order", *params.Order) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1097,20 +1127,21 @@ type ListRoleParams struct { /* ListRole Method for ListRole - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. * @param optional nil or *ListRoleOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ChatV1ServiceRoleReadResponse */ -func (c *DefaultApiService) ListRole(serviceSid string, params *ListRoleParams) (*ChatV1ServiceRoleReadResponse, error) { +func (c *DefaultApiService) ListRole(ServiceSid string, params *ListRoleParams) (*ChatV1ServiceRoleReadResponse, error) { path := "/v1/Services/{ServiceSid}/Roles" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1142,11 +1173,12 @@ ListService Method for ListService func (c *DefaultApiService) ListService(params *ListServiceParams) (*ChatV1ServiceReadResponse, error) { path := "/v1/Services" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1171,20 +1203,21 @@ type ListUserParams struct { /* ListUser Method for ListUser - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. * @param optional nil or *ListUserOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ChatV1ServiceUserReadResponse */ -func (c *DefaultApiService) ListUser(serviceSid string, params *ListUserParams) (*ChatV1ServiceUserReadResponse, error) { +func (c *DefaultApiService) ListUser(ServiceSid string, params *ListUserParams) (*ChatV1ServiceUserReadResponse, error) { path := "/v1/Services/{ServiceSid}/Users" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1210,22 +1243,23 @@ type ListUserChannelParams struct { /* ListUserChannel Method for ListUserChannel List all Channels for a given User. - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. - * @param userSid The SID of the [User](https://www.twilio.com/docs/api/chat/rest/users) to read the User Channel resources from. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. + * @param UserSid The SID of the [User](https://www.twilio.com/docs/api/chat/rest/users) to read the User Channel resources from. * @param optional nil or *ListUserChannelOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ChatV1ServiceUserUserChannelReadResponse */ -func (c *DefaultApiService) ListUserChannel(serviceSid string, userSid string, params *ListUserChannelParams) (*ChatV1ServiceUserUserChannelReadResponse, error) { +func (c *DefaultApiService) ListUserChannel(ServiceSid string, UserSid string, params *ListUserChannelParams) (*ChatV1ServiceUserUserChannelReadResponse, error) { path := "/v1/Services/{ServiceSid}/Users/{UserSid}/Channels" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", UserSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1252,30 +1286,31 @@ type UpdateChannelParams struct { /* UpdateChannel Method for UpdateChannel - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to update the resource from. - * @param sid The Twilio-provided string that uniquely identifies the Channel resource to update. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to update the resource from. + * @param Sid The Twilio-provided string that uniquely identifies the Channel resource to update. * @param optional nil or *UpdateChannelOpts - Optional Parameters: * @param "Attributes" (string) - A valid JSON string that contains application-specific data. * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. This value must be 64 characters or less in length and be unique within the Service. @return ChatV1ServiceChannel */ -func (c *DefaultApiService) UpdateChannel(serviceSid string, sid string, params *UpdateChannelParams) (*ChatV1ServiceChannel, error) { +func (c *DefaultApiService) UpdateChannel(ServiceSid string, Sid string, params *UpdateChannelParams) (*ChatV1ServiceChannel, error) { path := "/v1/Services/{ServiceSid}/Channels/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -1305,7 +1340,7 @@ type UpdateCredentialParams struct { /* UpdateCredential Method for UpdateCredential - * @param sid The Twilio-provided string that uniquely identifies the Credential resource to update. + * @param Sid The Twilio-provided string that uniquely identifies the Credential resource to update. * @param optional nil or *UpdateCredentialOpts - Optional Parameters: * @param "ApiKey" (string) - [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. * @param "Certificate" (string) - [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A== -----END CERTIFICATE-----` @@ -1315,30 +1350,31 @@ UpdateCredential Method for UpdateCredential * @param "Secret" (string) - [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. @return ChatV1Credential */ -func (c *DefaultApiService) UpdateCredential(sid string, params *UpdateCredentialParams) (*ChatV1Credential, error) { +func (c *DefaultApiService) UpdateCredential(Sid string, params *UpdateCredentialParams) (*ChatV1Credential, error) { path := "/v1/Credentials/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.ApiKey != nil { - data.Set("ApiKey", *params.ApiKey) + data.Set("ApiKey", *params.ApiKey) } if params != nil && params.Certificate != nil { - data.Set("Certificate", *params.Certificate) + data.Set("Certificate", *params.Certificate) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.PrivateKey != nil { - data.Set("PrivateKey", *params.PrivateKey) + data.Set("PrivateKey", *params.PrivateKey) } if params != nil && params.Sandbox != nil { - data.Set("Sandbox", string(*params.Sandbox)) + data.Set("Sandbox", fmt.Sprint(*params.Sandbox)) } if params != nil && params.Secret != nil { - data.Set("Secret", *params.Secret) + data.Set("Secret", *params.Secret) } @@ -1364,28 +1400,29 @@ type UpdateMemberParams struct { /* UpdateMember Method for UpdateMember - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to update the resource from. - * @param channelSid The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the member to update belongs to. Can be the Channel resource's `sid` or `unique_name`. - * @param sid The Twilio-provided string that uniquely identifies the Member resource to update. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to update the resource from. + * @param ChannelSid The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the member to update belongs to. Can be the Channel resource's `sid` or `unique_name`. + * @param Sid The Twilio-provided string that uniquely identifies the Member resource to update. * @param optional nil or *UpdateMemberOpts - Optional Parameters: * @param "LastConsumedMessageIndex" (*int32) - The index of the last [Message](https://www.twilio.com/docs/api/chat/rest/messages) that the Member has read within the [Channel](https://www.twilio.com/docs/api/chat/rest/channels). * @param "RoleSid" (string) - The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/api/services). @return ChatV1ServiceChannelMember */ -func (c *DefaultApiService) UpdateMember(serviceSid string, channelSid string, sid string, params *UpdateMemberParams) (*ChatV1ServiceChannelMember, error) { +func (c *DefaultApiService) UpdateMember(ServiceSid string, ChannelSid string, Sid string, params *UpdateMemberParams) (*ChatV1ServiceChannelMember, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.LastConsumedMessageIndex != nil { - data.Set("LastConsumedMessageIndex", string(*params.LastConsumedMessageIndex)) + data.Set("LastConsumedMessageIndex", fmt.Sprint(*params.LastConsumedMessageIndex)) } if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) + data.Set("RoleSid", *params.RoleSid) } @@ -1411,28 +1448,29 @@ type UpdateMessageParams struct { /* UpdateMessage Method for UpdateMessage - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to update the resource from. - * @param channelSid The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message belongs to. Can be the Channel's `sid` or `unique_name`. - * @param sid The Twilio-provided string that uniquely identifies the Message resource to update. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to update the resource from. + * @param ChannelSid The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message belongs to. Can be the Channel's `sid` or `unique_name`. + * @param Sid The Twilio-provided string that uniquely identifies the Message resource to update. * @param optional nil or *UpdateMessageOpts - Optional Parameters: * @param "Attributes" (string) - A valid JSON string that contains application-specific data. * @param "Body" (string) - The message to send to the channel. Can also be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string. @return ChatV1ServiceChannelMessage */ -func (c *DefaultApiService) UpdateMessage(serviceSid string, channelSid string, sid string, params *UpdateMessageParams) (*ChatV1ServiceChannelMessage, error) { +func (c *DefaultApiService) UpdateMessage(ServiceSid string, ChannelSid string, Sid string, params *UpdateMessageParams) (*ChatV1ServiceChannelMessage, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.Body != nil { - data.Set("Body", *params.Body) + data.Set("Body", *params.Body) } @@ -1457,22 +1495,23 @@ type UpdateRoleParams struct { /* UpdateRole Method for UpdateRole - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to update the resource from. - * @param sid The Twilio-provided string that uniquely identifies the Role resource to update. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to update the resource from. + * @param Sid The Twilio-provided string that uniquely identifies the Role resource to update. * @param optional nil or *UpdateRoleOpts - Optional Parameters: * @param "Permission" ([]string) - A permission that you grant to the role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type` and are described in the documentation. @return ChatV1ServiceRole */ -func (c *DefaultApiService) UpdateRole(serviceSid string, sid string, params *UpdateRoleParams) (*ChatV1ServiceRole, error) { +func (c *DefaultApiService) UpdateRole(ServiceSid string, Sid string, params *UpdateRoleParams) (*ChatV1ServiceRole, error) { path := "/v1/Services/{ServiceSid}/Roles/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.Permission != nil { - data.Set("Permission", *params.Permission) + data.Set("Permission", strings.Join(*params.Permission, ",")) } @@ -1497,16 +1536,16 @@ type UpdateServiceParams struct { DefaultChannelRoleSid *string `json:"DefaultChannelRoleSid,omitempty"` DefaultServiceRoleSid *string `json:"DefaultServiceRoleSid,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` - Limits.ChannelMembers *int32 `json:"Limits.ChannelMembers,omitempty"` - Limits.UserChannels *int32 `json:"Limits.UserChannels,omitempty"` - Notifications.AddedToChannel.Enabled *bool `json:"Notifications.AddedToChannel.Enabled,omitempty"` - Notifications.AddedToChannel.Template *string `json:"Notifications.AddedToChannel.Template,omitempty"` - Notifications.InvitedToChannel.Enabled *bool `json:"Notifications.InvitedToChannel.Enabled,omitempty"` - Notifications.InvitedToChannel.Template *string `json:"Notifications.InvitedToChannel.Template,omitempty"` - Notifications.NewMessage.Enabled *bool `json:"Notifications.NewMessage.Enabled,omitempty"` - Notifications.NewMessage.Template *string `json:"Notifications.NewMessage.Template,omitempty"` - Notifications.RemovedFromChannel.Enabled *bool `json:"Notifications.RemovedFromChannel.Enabled,omitempty"` - Notifications.RemovedFromChannel.Template *string `json:"Notifications.RemovedFromChannel.Template,omitempty"` + LimitsChannelMembers *int32 `json:"LimitsChannelMembers,omitempty"` + LimitsUserChannels *int32 `json:"LimitsUserChannels,omitempty"` + NotificationsAddedToChannelEnabled *bool `json:"NotificationsAddedToChannelEnabled,omitempty"` + NotificationsAddedToChannelTemplate *string `json:"NotificationsAddedToChannelTemplate,omitempty"` + NotificationsInvitedToChannelEnabled *bool `json:"NotificationsInvitedToChannelEnabled,omitempty"` + NotificationsInvitedToChannelTemplate *string `json:"NotificationsInvitedToChannelTemplate,omitempty"` + NotificationsNewMessageEnabled *bool `json:"NotificationsNewMessageEnabled,omitempty"` + NotificationsNewMessageTemplate *string `json:"NotificationsNewMessageTemplate,omitempty"` + NotificationsRemovedFromChannelEnabled *bool `json:"NotificationsRemovedFromChannelEnabled,omitempty"` + NotificationsRemovedFromChannelTemplate *string `json:"NotificationsRemovedFromChannelTemplate,omitempty"` PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"` PreWebhookUrl *string `json:"PreWebhookUrl,omitempty"` ReachabilityEnabled *bool `json:"ReachabilityEnabled,omitempty"` @@ -1514,59 +1553,59 @@ type UpdateServiceParams struct { TypingIndicatorTimeout *int32 `json:"TypingIndicatorTimeout,omitempty"` WebhookFilters *[]string `json:"WebhookFilters,omitempty"` WebhookMethod *string `json:"WebhookMethod,omitempty"` - Webhooks.OnChannelAdd.Method *string `json:"Webhooks.OnChannelAdd.Method,omitempty"` - Webhooks.OnChannelAdd.Url *string `json:"Webhooks.OnChannelAdd.Url,omitempty"` - Webhooks.OnChannelAdded.Method *string `json:"Webhooks.OnChannelAdded.Method,omitempty"` - Webhooks.OnChannelAdded.Url *string `json:"Webhooks.OnChannelAdded.Url,omitempty"` - Webhooks.OnChannelDestroy.Method *string `json:"Webhooks.OnChannelDestroy.Method,omitempty"` - Webhooks.OnChannelDestroy.Url *string `json:"Webhooks.OnChannelDestroy.Url,omitempty"` - Webhooks.OnChannelDestroyed.Method *string `json:"Webhooks.OnChannelDestroyed.Method,omitempty"` - Webhooks.OnChannelDestroyed.Url *string `json:"Webhooks.OnChannelDestroyed.Url,omitempty"` - Webhooks.OnChannelUpdate.Method *string `json:"Webhooks.OnChannelUpdate.Method,omitempty"` - Webhooks.OnChannelUpdate.Url *string `json:"Webhooks.OnChannelUpdate.Url,omitempty"` - Webhooks.OnChannelUpdated.Method *string `json:"Webhooks.OnChannelUpdated.Method,omitempty"` - Webhooks.OnChannelUpdated.Url *string `json:"Webhooks.OnChannelUpdated.Url,omitempty"` - Webhooks.OnMemberAdd.Method *string `json:"Webhooks.OnMemberAdd.Method,omitempty"` - Webhooks.OnMemberAdd.Url *string `json:"Webhooks.OnMemberAdd.Url,omitempty"` - Webhooks.OnMemberAdded.Method *string `json:"Webhooks.OnMemberAdded.Method,omitempty"` - Webhooks.OnMemberAdded.Url *string `json:"Webhooks.OnMemberAdded.Url,omitempty"` - Webhooks.OnMemberRemove.Method *string `json:"Webhooks.OnMemberRemove.Method,omitempty"` - Webhooks.OnMemberRemove.Url *string `json:"Webhooks.OnMemberRemove.Url,omitempty"` - Webhooks.OnMemberRemoved.Method *string `json:"Webhooks.OnMemberRemoved.Method,omitempty"` - Webhooks.OnMemberRemoved.Url *string `json:"Webhooks.OnMemberRemoved.Url,omitempty"` - Webhooks.OnMessageRemove.Method *string `json:"Webhooks.OnMessageRemove.Method,omitempty"` - Webhooks.OnMessageRemove.Url *string `json:"Webhooks.OnMessageRemove.Url,omitempty"` - Webhooks.OnMessageRemoved.Method *string `json:"Webhooks.OnMessageRemoved.Method,omitempty"` - Webhooks.OnMessageRemoved.Url *string `json:"Webhooks.OnMessageRemoved.Url,omitempty"` - Webhooks.OnMessageSend.Method *string `json:"Webhooks.OnMessageSend.Method,omitempty"` - Webhooks.OnMessageSend.Url *string `json:"Webhooks.OnMessageSend.Url,omitempty"` - Webhooks.OnMessageSent.Method *string `json:"Webhooks.OnMessageSent.Method,omitempty"` - Webhooks.OnMessageSent.Url *string `json:"Webhooks.OnMessageSent.Url,omitempty"` - Webhooks.OnMessageUpdate.Method *string `json:"Webhooks.OnMessageUpdate.Method,omitempty"` - Webhooks.OnMessageUpdate.Url *string `json:"Webhooks.OnMessageUpdate.Url,omitempty"` - Webhooks.OnMessageUpdated.Method *string `json:"Webhooks.OnMessageUpdated.Method,omitempty"` - Webhooks.OnMessageUpdated.Url *string `json:"Webhooks.OnMessageUpdated.Url,omitempty"` + WebhooksOnChannelAddMethod *string `json:"WebhooksOnChannelAddMethod,omitempty"` + WebhooksOnChannelAddUrl *string `json:"WebhooksOnChannelAddUrl,omitempty"` + WebhooksOnChannelAddedMethod *string `json:"WebhooksOnChannelAddedMethod,omitempty"` + WebhooksOnChannelAddedUrl *string `json:"WebhooksOnChannelAddedUrl,omitempty"` + WebhooksOnChannelDestroyMethod *string `json:"WebhooksOnChannelDestroyMethod,omitempty"` + WebhooksOnChannelDestroyUrl *string `json:"WebhooksOnChannelDestroyUrl,omitempty"` + WebhooksOnChannelDestroyedMethod *string `json:"WebhooksOnChannelDestroyedMethod,omitempty"` + WebhooksOnChannelDestroyedUrl *string `json:"WebhooksOnChannelDestroyedUrl,omitempty"` + WebhooksOnChannelUpdateMethod *string `json:"WebhooksOnChannelUpdateMethod,omitempty"` + WebhooksOnChannelUpdateUrl *string `json:"WebhooksOnChannelUpdateUrl,omitempty"` + WebhooksOnChannelUpdatedMethod *string `json:"WebhooksOnChannelUpdatedMethod,omitempty"` + WebhooksOnChannelUpdatedUrl *string `json:"WebhooksOnChannelUpdatedUrl,omitempty"` + WebhooksOnMemberAddMethod *string `json:"WebhooksOnMemberAddMethod,omitempty"` + WebhooksOnMemberAddUrl *string `json:"WebhooksOnMemberAddUrl,omitempty"` + WebhooksOnMemberAddedMethod *string `json:"WebhooksOnMemberAddedMethod,omitempty"` + WebhooksOnMemberAddedUrl *string `json:"WebhooksOnMemberAddedUrl,omitempty"` + WebhooksOnMemberRemoveMethod *string `json:"WebhooksOnMemberRemoveMethod,omitempty"` + WebhooksOnMemberRemoveUrl *string `json:"WebhooksOnMemberRemoveUrl,omitempty"` + WebhooksOnMemberRemovedMethod *string `json:"WebhooksOnMemberRemovedMethod,omitempty"` + WebhooksOnMemberRemovedUrl *string `json:"WebhooksOnMemberRemovedUrl,omitempty"` + WebhooksOnMessageRemoveMethod *string `json:"WebhooksOnMessageRemoveMethod,omitempty"` + WebhooksOnMessageRemoveUrl *string `json:"WebhooksOnMessageRemoveUrl,omitempty"` + WebhooksOnMessageRemovedMethod *string `json:"WebhooksOnMessageRemovedMethod,omitempty"` + WebhooksOnMessageRemovedUrl *string `json:"WebhooksOnMessageRemovedUrl,omitempty"` + WebhooksOnMessageSendMethod *string `json:"WebhooksOnMessageSendMethod,omitempty"` + WebhooksOnMessageSendUrl *string `json:"WebhooksOnMessageSendUrl,omitempty"` + WebhooksOnMessageSentMethod *string `json:"WebhooksOnMessageSentMethod,omitempty"` + WebhooksOnMessageSentUrl *string `json:"WebhooksOnMessageSentUrl,omitempty"` + WebhooksOnMessageUpdateMethod *string `json:"WebhooksOnMessageUpdateMethod,omitempty"` + WebhooksOnMessageUpdateUrl *string `json:"WebhooksOnMessageUpdateUrl,omitempty"` + WebhooksOnMessageUpdatedMethod *string `json:"WebhooksOnMessageUpdatedMethod,omitempty"` + WebhooksOnMessageUpdatedUrl *string `json:"WebhooksOnMessageUpdatedUrl,omitempty"` } /* UpdateService Method for UpdateService - * @param sid The Twilio-provided string that uniquely identifies the Service resource to update. + * @param Sid The Twilio-provided string that uniquely identifies the Service resource to update. * @param optional nil or *UpdateServiceOpts - Optional Parameters: * @param "ConsumptionReportInterval" (int32) - DEPRECATED. The interval in seconds between consumption reports submission batches from client endpoints. * @param "DefaultChannelCreatorRoleSid" (string) - The channel role assigned to a channel creator when they join a new channel. See the [Roles endpoint](https://www.twilio.com/docs/chat/api/roles) for more details. * @param "DefaultChannelRoleSid" (string) - The channel role assigned to users when they are added to a channel. See the [Roles endpoint](https://www.twilio.com/docs/chat/api/roles) for more details. * @param "DefaultServiceRoleSid" (string) - The service role assigned to users when they are added to the service. See the [Roles endpoint](https://www.twilio.com/docs/chat/api/roles) for more details. * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. - * @param "Limits.ChannelMembers" (int32) - The maximum number of Members that can be added to Channels within this Service. Can be up to 1,000. - * @param "Limits.UserChannels" (int32) - The maximum number of Channels Users can be a Member of within this Service. Can be up to 1,000. - * @param "Notifications.AddedToChannel.Enabled" (bool) - Whether to send a notification when a member is added to a channel. Can be: `true` or `false` and the default is `false`. - * @param "Notifications.AddedToChannel.Template" (string) - The template to use to create the notification text displayed when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. - * @param "Notifications.InvitedToChannel.Enabled" (bool) - Whether to send a notification when a user is invited to a channel. Can be: `true` or `false` and the default is `false`. - * @param "Notifications.InvitedToChannel.Template" (string) - The template to use to create the notification text displayed when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. - * @param "Notifications.NewMessage.Enabled" (bool) - Whether to send a notification when a new message is added to a channel. Can be: `true` or `false` and the default is `false`. - * @param "Notifications.NewMessage.Template" (string) - The template to use to create the notification text displayed when a new message is added to a channel and `notifications.new_message.enabled` is `true`. - * @param "Notifications.RemovedFromChannel.Enabled" (bool) - Whether to send a notification to a user when they are removed from a channel. Can be: `true` or `false` and the default is `false`. - * @param "Notifications.RemovedFromChannel.Template" (string) - The template to use to create the notification text displayed to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. + * @param "LimitsChannelMembers" (int32) - The maximum number of Members that can be added to Channels within this Service. Can be up to 1,000. + * @param "LimitsUserChannels" (int32) - The maximum number of Channels Users can be a Member of within this Service. Can be up to 1,000. + * @param "NotificationsAddedToChannelEnabled" (bool) - Whether to send a notification when a member is added to a channel. Can be: `true` or `false` and the default is `false`. + * @param "NotificationsAddedToChannelTemplate" (string) - The template to use to create the notification text displayed when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. + * @param "NotificationsInvitedToChannelEnabled" (bool) - Whether to send a notification when a user is invited to a channel. Can be: `true` or `false` and the default is `false`. + * @param "NotificationsInvitedToChannelTemplate" (string) - The template to use to create the notification text displayed when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. + * @param "NotificationsNewMessageEnabled" (bool) - Whether to send a notification when a new message is added to a channel. Can be: `true` or `false` and the default is `false`. + * @param "NotificationsNewMessageTemplate" (string) - The template to use to create the notification text displayed when a new message is added to a channel and `notifications.new_message.enabled` is `true`. + * @param "NotificationsRemovedFromChannelEnabled" (bool) - Whether to send a notification to a user when they are removed from a channel. Can be: `true` or `false` and the default is `false`. + * @param "NotificationsRemovedFromChannelTemplate" (string) - The template to use to create the notification text displayed to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. * @param "PostWebhookUrl" (string) - The URL for post-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more details. * @param "PreWebhookUrl" (string) - The URL for pre-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more details. * @param "ReachabilityEnabled" (bool) - Whether to enable the [Reachability Indicator](https://www.twilio.com/docs/chat/reachability-indicator) for this Service instance. The default is `false`. @@ -1574,208 +1613,209 @@ UpdateService Method for UpdateService * @param "TypingIndicatorTimeout" (int32) - How long in seconds after a `started typing` event until clients should assume that user is no longer typing, even if no `ended typing` message was received. The default is 5 seconds. * @param "WebhookFilters" ([]string) - The list of WebHook events that are enabled for this Service instance. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. * @param "WebhookMethod" (string) - The HTTP method to use for calls to the `pre_webhook_url` and `post_webhook_url` webhooks. Can be: `POST` or `GET` and the default is `POST`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. - * @param "Webhooks.OnChannelAdd.Method" (string) - The HTTP method to use when calling the `webhooks.on_channel_add.url`. - * @param "Webhooks.OnChannelAdd.Url" (string) - The URL of the webhook to call in response to the `on_channel_add` event using the `webhooks.on_channel_add.method` HTTP method. - * @param "Webhooks.OnChannelAdded.Method" (string) - The URL of the webhook to call in response to the `on_channel_added` event`. - * @param "Webhooks.OnChannelAdded.Url" (string) - The URL of the webhook to call in response to the `on_channel_added` event using the `webhooks.on_channel_added.method` HTTP method. - * @param "Webhooks.OnChannelDestroy.Method" (string) - The HTTP method to use when calling the `webhooks.on_channel_destroy.url`. - * @param "Webhooks.OnChannelDestroy.Url" (string) - The URL of the webhook to call in response to the `on_channel_destroy` event using the `webhooks.on_channel_destroy.method` HTTP method. - * @param "Webhooks.OnChannelDestroyed.Method" (string) - The HTTP method to use when calling the `webhooks.on_channel_destroyed.url`. - * @param "Webhooks.OnChannelDestroyed.Url" (string) - The URL of the webhook to call in response to the `on_channel_added` event using the `webhooks.on_channel_destroyed.method` HTTP method. - * @param "Webhooks.OnChannelUpdate.Method" (string) - The HTTP method to use when calling the `webhooks.on_channel_update.url`. - * @param "Webhooks.OnChannelUpdate.Url" (string) - The URL of the webhook to call in response to the `on_channel_update` event using the `webhooks.on_channel_update.method` HTTP method. - * @param "Webhooks.OnChannelUpdated.Method" (string) - The HTTP method to use when calling the `webhooks.on_channel_updated.url`. - * @param "Webhooks.OnChannelUpdated.Url" (string) - The URL of the webhook to call in response to the `on_channel_updated` event using the `webhooks.on_channel_updated.method` HTTP method. - * @param "Webhooks.OnMemberAdd.Method" (string) - The HTTP method to use when calling the `webhooks.on_member_add.url`. - * @param "Webhooks.OnMemberAdd.Url" (string) - The URL of the webhook to call in response to the `on_member_add` event using the `webhooks.on_member_add.method` HTTP method. - * @param "Webhooks.OnMemberAdded.Method" (string) - The HTTP method to use when calling the `webhooks.on_channel_updated.url`. - * @param "Webhooks.OnMemberAdded.Url" (string) - The URL of the webhook to call in response to the `on_channel_updated` event using the `webhooks.on_channel_updated.method` HTTP method. - * @param "Webhooks.OnMemberRemove.Method" (string) - The HTTP method to use when calling the `webhooks.on_member_remove.url`. - * @param "Webhooks.OnMemberRemove.Url" (string) - The URL of the webhook to call in response to the `on_member_remove` event using the `webhooks.on_member_remove.method` HTTP method. - * @param "Webhooks.OnMemberRemoved.Method" (string) - The HTTP method to use when calling the `webhooks.on_member_removed.url`. - * @param "Webhooks.OnMemberRemoved.Url" (string) - The URL of the webhook to call in response to the `on_member_removed` event using the `webhooks.on_member_removed.method` HTTP method. - * @param "Webhooks.OnMessageRemove.Method" (string) - The HTTP method to use when calling the `webhooks.on_message_remove.url`. - * @param "Webhooks.OnMessageRemove.Url" (string) - The URL of the webhook to call in response to the `on_message_remove` event using the `webhooks.on_message_remove.method` HTTP method. - * @param "Webhooks.OnMessageRemoved.Method" (string) - The HTTP method to use when calling the `webhooks.on_message_removed.url`. - * @param "Webhooks.OnMessageRemoved.Url" (string) - The URL of the webhook to call in response to the `on_message_removed` event using the `webhooks.on_message_removed.method` HTTP method. - * @param "Webhooks.OnMessageSend.Method" (string) - The HTTP method to use when calling the `webhooks.on_message_send.url`. - * @param "Webhooks.OnMessageSend.Url" (string) - The URL of the webhook to call in response to the `on_message_send` event using the `webhooks.on_message_send.method` HTTP method. - * @param "Webhooks.OnMessageSent.Method" (string) - The URL of the webhook to call in response to the `on_message_sent` event`. - * @param "Webhooks.OnMessageSent.Url" (string) - The URL of the webhook to call in response to the `on_message_sent` event using the `webhooks.on_message_sent.method` HTTP method. - * @param "Webhooks.OnMessageUpdate.Method" (string) - The HTTP method to use when calling the `webhooks.on_message_update.url`. - * @param "Webhooks.OnMessageUpdate.Url" (string) - The URL of the webhook to call in response to the `on_message_update` event using the `webhooks.on_message_update.method` HTTP method. - * @param "Webhooks.OnMessageUpdated.Method" (string) - The HTTP method to use when calling the `webhooks.on_message_updated.url`. - * @param "Webhooks.OnMessageUpdated.Url" (string) - The URL of the webhook to call in response to the `on_message_updated` event using the `webhooks.on_message_updated.method` HTTP method. + * @param "WebhooksOnChannelAddMethod" (string) - The HTTP method to use when calling the `webhooks.on_channel_add.url`. + * @param "WebhooksOnChannelAddUrl" (string) - The URL of the webhook to call in response to the `on_channel_add` event using the `webhooks.on_channel_add.method` HTTP method. + * @param "WebhooksOnChannelAddedMethod" (string) - The URL of the webhook to call in response to the `on_channel_added` event`. + * @param "WebhooksOnChannelAddedUrl" (string) - The URL of the webhook to call in response to the `on_channel_added` event using the `webhooks.on_channel_added.method` HTTP method. + * @param "WebhooksOnChannelDestroyMethod" (string) - The HTTP method to use when calling the `webhooks.on_channel_destroy.url`. + * @param "WebhooksOnChannelDestroyUrl" (string) - The URL of the webhook to call in response to the `on_channel_destroy` event using the `webhooks.on_channel_destroy.method` HTTP method. + * @param "WebhooksOnChannelDestroyedMethod" (string) - The HTTP method to use when calling the `webhooks.on_channel_destroyed.url`. + * @param "WebhooksOnChannelDestroyedUrl" (string) - The URL of the webhook to call in response to the `on_channel_added` event using the `webhooks.on_channel_destroyed.method` HTTP method. + * @param "WebhooksOnChannelUpdateMethod" (string) - The HTTP method to use when calling the `webhooks.on_channel_update.url`. + * @param "WebhooksOnChannelUpdateUrl" (string) - The URL of the webhook to call in response to the `on_channel_update` event using the `webhooks.on_channel_update.method` HTTP method. + * @param "WebhooksOnChannelUpdatedMethod" (string) - The HTTP method to use when calling the `webhooks.on_channel_updated.url`. + * @param "WebhooksOnChannelUpdatedUrl" (string) - The URL of the webhook to call in response to the `on_channel_updated` event using the `webhooks.on_channel_updated.method` HTTP method. + * @param "WebhooksOnMemberAddMethod" (string) - The HTTP method to use when calling the `webhooks.on_member_add.url`. + * @param "WebhooksOnMemberAddUrl" (string) - The URL of the webhook to call in response to the `on_member_add` event using the `webhooks.on_member_add.method` HTTP method. + * @param "WebhooksOnMemberAddedMethod" (string) - The HTTP method to use when calling the `webhooks.on_channel_updated.url`. + * @param "WebhooksOnMemberAddedUrl" (string) - The URL of the webhook to call in response to the `on_channel_updated` event using the `webhooks.on_channel_updated.method` HTTP method. + * @param "WebhooksOnMemberRemoveMethod" (string) - The HTTP method to use when calling the `webhooks.on_member_remove.url`. + * @param "WebhooksOnMemberRemoveUrl" (string) - The URL of the webhook to call in response to the `on_member_remove` event using the `webhooks.on_member_remove.method` HTTP method. + * @param "WebhooksOnMemberRemovedMethod" (string) - The HTTP method to use when calling the `webhooks.on_member_removed.url`. + * @param "WebhooksOnMemberRemovedUrl" (string) - The URL of the webhook to call in response to the `on_member_removed` event using the `webhooks.on_member_removed.method` HTTP method. + * @param "WebhooksOnMessageRemoveMethod" (string) - The HTTP method to use when calling the `webhooks.on_message_remove.url`. + * @param "WebhooksOnMessageRemoveUrl" (string) - The URL of the webhook to call in response to the `on_message_remove` event using the `webhooks.on_message_remove.method` HTTP method. + * @param "WebhooksOnMessageRemovedMethod" (string) - The HTTP method to use when calling the `webhooks.on_message_removed.url`. + * @param "WebhooksOnMessageRemovedUrl" (string) - The URL of the webhook to call in response to the `on_message_removed` event using the `webhooks.on_message_removed.method` HTTP method. + * @param "WebhooksOnMessageSendMethod" (string) - The HTTP method to use when calling the `webhooks.on_message_send.url`. + * @param "WebhooksOnMessageSendUrl" (string) - The URL of the webhook to call in response to the `on_message_send` event using the `webhooks.on_message_send.method` HTTP method. + * @param "WebhooksOnMessageSentMethod" (string) - The URL of the webhook to call in response to the `on_message_sent` event`. + * @param "WebhooksOnMessageSentUrl" (string) - The URL of the webhook to call in response to the `on_message_sent` event using the `webhooks.on_message_sent.method` HTTP method. + * @param "WebhooksOnMessageUpdateMethod" (string) - The HTTP method to use when calling the `webhooks.on_message_update.url`. + * @param "WebhooksOnMessageUpdateUrl" (string) - The URL of the webhook to call in response to the `on_message_update` event using the `webhooks.on_message_update.method` HTTP method. + * @param "WebhooksOnMessageUpdatedMethod" (string) - The HTTP method to use when calling the `webhooks.on_message_updated.url`. + * @param "WebhooksOnMessageUpdatedUrl" (string) - The URL of the webhook to call in response to the `on_message_updated` event using the `webhooks.on_message_updated.method` HTTP method. @return ChatV1Service */ -func (c *DefaultApiService) UpdateService(sid string, params *UpdateServiceParams) (*ChatV1Service, error) { +func (c *DefaultApiService) UpdateService(Sid string, params *UpdateServiceParams) (*ChatV1Service, error) { path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.ConsumptionReportInterval != nil { - data.Set("ConsumptionReportInterval", string(*params.ConsumptionReportInterval)) + data.Set("ConsumptionReportInterval", fmt.Sprint(*params.ConsumptionReportInterval)) } if params != nil && params.DefaultChannelCreatorRoleSid != nil { - data.Set("DefaultChannelCreatorRoleSid", *params.DefaultChannelCreatorRoleSid) + data.Set("DefaultChannelCreatorRoleSid", *params.DefaultChannelCreatorRoleSid) } if params != nil && params.DefaultChannelRoleSid != nil { - data.Set("DefaultChannelRoleSid", *params.DefaultChannelRoleSid) + data.Set("DefaultChannelRoleSid", *params.DefaultChannelRoleSid) } if params != nil && params.DefaultServiceRoleSid != nil { - data.Set("DefaultServiceRoleSid", *params.DefaultServiceRoleSid) + data.Set("DefaultServiceRoleSid", *params.DefaultServiceRoleSid) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } - if params != nil && params.Limits.ChannelMembers != nil { - data.Set("Limits.ChannelMembers", string(*params.Limits.ChannelMembers)) + if params != nil && params.LimitsChannelMembers != nil { + data.Set("LimitsChannelMembers", fmt.Sprint(*params.LimitsChannelMembers)) } - if params != nil && params.Limits.UserChannels != nil { - data.Set("Limits.UserChannels", string(*params.Limits.UserChannels)) + if params != nil && params.LimitsUserChannels != nil { + data.Set("LimitsUserChannels", fmt.Sprint(*params.LimitsUserChannels)) } - if params != nil && params.Notifications.AddedToChannel.Enabled != nil { - data.Set("Notifications.AddedToChannel.Enabled", string(*params.Notifications.AddedToChannel.Enabled)) + if params != nil && params.NotificationsAddedToChannelEnabled != nil { + data.Set("NotificationsAddedToChannelEnabled", fmt.Sprint(*params.NotificationsAddedToChannelEnabled)) } - if params != nil && params.Notifications.AddedToChannel.Template != nil { - data.Set("Notifications.AddedToChannel.Template", *params.Notifications.AddedToChannel.Template) + if params != nil && params.NotificationsAddedToChannelTemplate != nil { + data.Set("NotificationsAddedToChannelTemplate", *params.NotificationsAddedToChannelTemplate) } - if params != nil && params.Notifications.InvitedToChannel.Enabled != nil { - data.Set("Notifications.InvitedToChannel.Enabled", string(*params.Notifications.InvitedToChannel.Enabled)) + if params != nil && params.NotificationsInvitedToChannelEnabled != nil { + data.Set("NotificationsInvitedToChannelEnabled", fmt.Sprint(*params.NotificationsInvitedToChannelEnabled)) } - if params != nil && params.Notifications.InvitedToChannel.Template != nil { - data.Set("Notifications.InvitedToChannel.Template", *params.Notifications.InvitedToChannel.Template) + if params != nil && params.NotificationsInvitedToChannelTemplate != nil { + data.Set("NotificationsInvitedToChannelTemplate", *params.NotificationsInvitedToChannelTemplate) } - if params != nil && params.Notifications.NewMessage.Enabled != nil { - data.Set("Notifications.NewMessage.Enabled", string(*params.Notifications.NewMessage.Enabled)) + if params != nil && params.NotificationsNewMessageEnabled != nil { + data.Set("NotificationsNewMessageEnabled", fmt.Sprint(*params.NotificationsNewMessageEnabled)) } - if params != nil && params.Notifications.NewMessage.Template != nil { - data.Set("Notifications.NewMessage.Template", *params.Notifications.NewMessage.Template) + if params != nil && params.NotificationsNewMessageTemplate != nil { + data.Set("NotificationsNewMessageTemplate", *params.NotificationsNewMessageTemplate) } - if params != nil && params.Notifications.RemovedFromChannel.Enabled != nil { - data.Set("Notifications.RemovedFromChannel.Enabled", string(*params.Notifications.RemovedFromChannel.Enabled)) + if params != nil && params.NotificationsRemovedFromChannelEnabled != nil { + data.Set("NotificationsRemovedFromChannelEnabled", fmt.Sprint(*params.NotificationsRemovedFromChannelEnabled)) } - if params != nil && params.Notifications.RemovedFromChannel.Template != nil { - data.Set("Notifications.RemovedFromChannel.Template", *params.Notifications.RemovedFromChannel.Template) + if params != nil && params.NotificationsRemovedFromChannelTemplate != nil { + data.Set("NotificationsRemovedFromChannelTemplate", *params.NotificationsRemovedFromChannelTemplate) } if params != nil && params.PostWebhookUrl != nil { - data.Set("PostWebhookUrl", *params.PostWebhookUrl) + data.Set("PostWebhookUrl", *params.PostWebhookUrl) } if params != nil && params.PreWebhookUrl != nil { - data.Set("PreWebhookUrl", *params.PreWebhookUrl) + data.Set("PreWebhookUrl", *params.PreWebhookUrl) } if params != nil && params.ReachabilityEnabled != nil { - data.Set("ReachabilityEnabled", string(*params.ReachabilityEnabled)) + data.Set("ReachabilityEnabled", fmt.Sprint(*params.ReachabilityEnabled)) } if params != nil && params.ReadStatusEnabled != nil { - data.Set("ReadStatusEnabled", string(*params.ReadStatusEnabled)) + data.Set("ReadStatusEnabled", fmt.Sprint(*params.ReadStatusEnabled)) } if params != nil && params.TypingIndicatorTimeout != nil { - data.Set("TypingIndicatorTimeout", string(*params.TypingIndicatorTimeout)) + data.Set("TypingIndicatorTimeout", fmt.Sprint(*params.TypingIndicatorTimeout)) } if params != nil && params.WebhookFilters != nil { - data.Set("WebhookFilters", *params.WebhookFilters) + data.Set("WebhookFilters", strings.Join(*params.WebhookFilters, ",")) } if params != nil && params.WebhookMethod != nil { - data.Set("WebhookMethod", *params.WebhookMethod) + data.Set("WebhookMethod", *params.WebhookMethod) } - if params != nil && params.Webhooks.OnChannelAdd.Method != nil { - data.Set("Webhooks.OnChannelAdd.Method", *params.Webhooks.OnChannelAdd.Method) + if params != nil && params.WebhooksOnChannelAddMethod != nil { + data.Set("WebhooksOnChannelAddMethod", *params.WebhooksOnChannelAddMethod) } - if params != nil && params.Webhooks.OnChannelAdd.Url != nil { - data.Set("Webhooks.OnChannelAdd.Url", *params.Webhooks.OnChannelAdd.Url) + if params != nil && params.WebhooksOnChannelAddUrl != nil { + data.Set("WebhooksOnChannelAddUrl", *params.WebhooksOnChannelAddUrl) } - if params != nil && params.Webhooks.OnChannelAdded.Method != nil { - data.Set("Webhooks.OnChannelAdded.Method", *params.Webhooks.OnChannelAdded.Method) + if params != nil && params.WebhooksOnChannelAddedMethod != nil { + data.Set("WebhooksOnChannelAddedMethod", *params.WebhooksOnChannelAddedMethod) } - if params != nil && params.Webhooks.OnChannelAdded.Url != nil { - data.Set("Webhooks.OnChannelAdded.Url", *params.Webhooks.OnChannelAdded.Url) + if params != nil && params.WebhooksOnChannelAddedUrl != nil { + data.Set("WebhooksOnChannelAddedUrl", *params.WebhooksOnChannelAddedUrl) } - if params != nil && params.Webhooks.OnChannelDestroy.Method != nil { - data.Set("Webhooks.OnChannelDestroy.Method", *params.Webhooks.OnChannelDestroy.Method) + if params != nil && params.WebhooksOnChannelDestroyMethod != nil { + data.Set("WebhooksOnChannelDestroyMethod", *params.WebhooksOnChannelDestroyMethod) } - if params != nil && params.Webhooks.OnChannelDestroy.Url != nil { - data.Set("Webhooks.OnChannelDestroy.Url", *params.Webhooks.OnChannelDestroy.Url) + if params != nil && params.WebhooksOnChannelDestroyUrl != nil { + data.Set("WebhooksOnChannelDestroyUrl", *params.WebhooksOnChannelDestroyUrl) } - if params != nil && params.Webhooks.OnChannelDestroyed.Method != nil { - data.Set("Webhooks.OnChannelDestroyed.Method", *params.Webhooks.OnChannelDestroyed.Method) + if params != nil && params.WebhooksOnChannelDestroyedMethod != nil { + data.Set("WebhooksOnChannelDestroyedMethod", *params.WebhooksOnChannelDestroyedMethod) } - if params != nil && params.Webhooks.OnChannelDestroyed.Url != nil { - data.Set("Webhooks.OnChannelDestroyed.Url", *params.Webhooks.OnChannelDestroyed.Url) + if params != nil && params.WebhooksOnChannelDestroyedUrl != nil { + data.Set("WebhooksOnChannelDestroyedUrl", *params.WebhooksOnChannelDestroyedUrl) } - if params != nil && params.Webhooks.OnChannelUpdate.Method != nil { - data.Set("Webhooks.OnChannelUpdate.Method", *params.Webhooks.OnChannelUpdate.Method) + if params != nil && params.WebhooksOnChannelUpdateMethod != nil { + data.Set("WebhooksOnChannelUpdateMethod", *params.WebhooksOnChannelUpdateMethod) } - if params != nil && params.Webhooks.OnChannelUpdate.Url != nil { - data.Set("Webhooks.OnChannelUpdate.Url", *params.Webhooks.OnChannelUpdate.Url) + if params != nil && params.WebhooksOnChannelUpdateUrl != nil { + data.Set("WebhooksOnChannelUpdateUrl", *params.WebhooksOnChannelUpdateUrl) } - if params != nil && params.Webhooks.OnChannelUpdated.Method != nil { - data.Set("Webhooks.OnChannelUpdated.Method", *params.Webhooks.OnChannelUpdated.Method) + if params != nil && params.WebhooksOnChannelUpdatedMethod != nil { + data.Set("WebhooksOnChannelUpdatedMethod", *params.WebhooksOnChannelUpdatedMethod) } - if params != nil && params.Webhooks.OnChannelUpdated.Url != nil { - data.Set("Webhooks.OnChannelUpdated.Url", *params.Webhooks.OnChannelUpdated.Url) + if params != nil && params.WebhooksOnChannelUpdatedUrl != nil { + data.Set("WebhooksOnChannelUpdatedUrl", *params.WebhooksOnChannelUpdatedUrl) } - if params != nil && params.Webhooks.OnMemberAdd.Method != nil { - data.Set("Webhooks.OnMemberAdd.Method", *params.Webhooks.OnMemberAdd.Method) + if params != nil && params.WebhooksOnMemberAddMethod != nil { + data.Set("WebhooksOnMemberAddMethod", *params.WebhooksOnMemberAddMethod) } - if params != nil && params.Webhooks.OnMemberAdd.Url != nil { - data.Set("Webhooks.OnMemberAdd.Url", *params.Webhooks.OnMemberAdd.Url) + if params != nil && params.WebhooksOnMemberAddUrl != nil { + data.Set("WebhooksOnMemberAddUrl", *params.WebhooksOnMemberAddUrl) } - if params != nil && params.Webhooks.OnMemberAdded.Method != nil { - data.Set("Webhooks.OnMemberAdded.Method", *params.Webhooks.OnMemberAdded.Method) + if params != nil && params.WebhooksOnMemberAddedMethod != nil { + data.Set("WebhooksOnMemberAddedMethod", *params.WebhooksOnMemberAddedMethod) } - if params != nil && params.Webhooks.OnMemberAdded.Url != nil { - data.Set("Webhooks.OnMemberAdded.Url", *params.Webhooks.OnMemberAdded.Url) + if params != nil && params.WebhooksOnMemberAddedUrl != nil { + data.Set("WebhooksOnMemberAddedUrl", *params.WebhooksOnMemberAddedUrl) } - if params != nil && params.Webhooks.OnMemberRemove.Method != nil { - data.Set("Webhooks.OnMemberRemove.Method", *params.Webhooks.OnMemberRemove.Method) + if params != nil && params.WebhooksOnMemberRemoveMethod != nil { + data.Set("WebhooksOnMemberRemoveMethod", *params.WebhooksOnMemberRemoveMethod) } - if params != nil && params.Webhooks.OnMemberRemove.Url != nil { - data.Set("Webhooks.OnMemberRemove.Url", *params.Webhooks.OnMemberRemove.Url) + if params != nil && params.WebhooksOnMemberRemoveUrl != nil { + data.Set("WebhooksOnMemberRemoveUrl", *params.WebhooksOnMemberRemoveUrl) } - if params != nil && params.Webhooks.OnMemberRemoved.Method != nil { - data.Set("Webhooks.OnMemberRemoved.Method", *params.Webhooks.OnMemberRemoved.Method) + if params != nil && params.WebhooksOnMemberRemovedMethod != nil { + data.Set("WebhooksOnMemberRemovedMethod", *params.WebhooksOnMemberRemovedMethod) } - if params != nil && params.Webhooks.OnMemberRemoved.Url != nil { - data.Set("Webhooks.OnMemberRemoved.Url", *params.Webhooks.OnMemberRemoved.Url) + if params != nil && params.WebhooksOnMemberRemovedUrl != nil { + data.Set("WebhooksOnMemberRemovedUrl", *params.WebhooksOnMemberRemovedUrl) } - if params != nil && params.Webhooks.OnMessageRemove.Method != nil { - data.Set("Webhooks.OnMessageRemove.Method", *params.Webhooks.OnMessageRemove.Method) + if params != nil && params.WebhooksOnMessageRemoveMethod != nil { + data.Set("WebhooksOnMessageRemoveMethod", *params.WebhooksOnMessageRemoveMethod) } - if params != nil && params.Webhooks.OnMessageRemove.Url != nil { - data.Set("Webhooks.OnMessageRemove.Url", *params.Webhooks.OnMessageRemove.Url) + if params != nil && params.WebhooksOnMessageRemoveUrl != nil { + data.Set("WebhooksOnMessageRemoveUrl", *params.WebhooksOnMessageRemoveUrl) } - if params != nil && params.Webhooks.OnMessageRemoved.Method != nil { - data.Set("Webhooks.OnMessageRemoved.Method", *params.Webhooks.OnMessageRemoved.Method) + if params != nil && params.WebhooksOnMessageRemovedMethod != nil { + data.Set("WebhooksOnMessageRemovedMethod", *params.WebhooksOnMessageRemovedMethod) } - if params != nil && params.Webhooks.OnMessageRemoved.Url != nil { - data.Set("Webhooks.OnMessageRemoved.Url", *params.Webhooks.OnMessageRemoved.Url) + if params != nil && params.WebhooksOnMessageRemovedUrl != nil { + data.Set("WebhooksOnMessageRemovedUrl", *params.WebhooksOnMessageRemovedUrl) } - if params != nil && params.Webhooks.OnMessageSend.Method != nil { - data.Set("Webhooks.OnMessageSend.Method", *params.Webhooks.OnMessageSend.Method) + if params != nil && params.WebhooksOnMessageSendMethod != nil { + data.Set("WebhooksOnMessageSendMethod", *params.WebhooksOnMessageSendMethod) } - if params != nil && params.Webhooks.OnMessageSend.Url != nil { - data.Set("Webhooks.OnMessageSend.Url", *params.Webhooks.OnMessageSend.Url) + if params != nil && params.WebhooksOnMessageSendUrl != nil { + data.Set("WebhooksOnMessageSendUrl", *params.WebhooksOnMessageSendUrl) } - if params != nil && params.Webhooks.OnMessageSent.Method != nil { - data.Set("Webhooks.OnMessageSent.Method", *params.Webhooks.OnMessageSent.Method) + if params != nil && params.WebhooksOnMessageSentMethod != nil { + data.Set("WebhooksOnMessageSentMethod", *params.WebhooksOnMessageSentMethod) } - if params != nil && params.Webhooks.OnMessageSent.Url != nil { - data.Set("Webhooks.OnMessageSent.Url", *params.Webhooks.OnMessageSent.Url) + if params != nil && params.WebhooksOnMessageSentUrl != nil { + data.Set("WebhooksOnMessageSentUrl", *params.WebhooksOnMessageSentUrl) } - if params != nil && params.Webhooks.OnMessageUpdate.Method != nil { - data.Set("Webhooks.OnMessageUpdate.Method", *params.Webhooks.OnMessageUpdate.Method) + if params != nil && params.WebhooksOnMessageUpdateMethod != nil { + data.Set("WebhooksOnMessageUpdateMethod", *params.WebhooksOnMessageUpdateMethod) } - if params != nil && params.Webhooks.OnMessageUpdate.Url != nil { - data.Set("Webhooks.OnMessageUpdate.Url", *params.Webhooks.OnMessageUpdate.Url) + if params != nil && params.WebhooksOnMessageUpdateUrl != nil { + data.Set("WebhooksOnMessageUpdateUrl", *params.WebhooksOnMessageUpdateUrl) } - if params != nil && params.Webhooks.OnMessageUpdated.Method != nil { - data.Set("Webhooks.OnMessageUpdated.Method", *params.Webhooks.OnMessageUpdated.Method) + if params != nil && params.WebhooksOnMessageUpdatedMethod != nil { + data.Set("WebhooksOnMessageUpdatedMethod", *params.WebhooksOnMessageUpdatedMethod) } - if params != nil && params.Webhooks.OnMessageUpdated.Url != nil { - data.Set("Webhooks.OnMessageUpdated.Url", *params.Webhooks.OnMessageUpdated.Url) + if params != nil && params.WebhooksOnMessageUpdatedUrl != nil { + data.Set("WebhooksOnMessageUpdatedUrl", *params.WebhooksOnMessageUpdatedUrl) } @@ -1802,30 +1842,31 @@ type UpdateUserParams struct { /* UpdateUser Method for UpdateUser - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to update the resource from. - * @param sid The Twilio-provided string that uniquely identifies the User resource to update. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to update the resource from. + * @param Sid The Twilio-provided string that uniquely identifies the User resource to update. * @param optional nil or *UpdateUserOpts - Optional Parameters: * @param "Attributes" (string) - A valid JSON string that contains application-specific data. * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It is often used for display purposes. * @param "RoleSid" (string) - The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) assigned to this user. @return ChatV1ServiceUser */ -func (c *DefaultApiService) UpdateUser(serviceSid string, sid string, params *UpdateUserParams) (*ChatV1ServiceUser, error) { +func (c *DefaultApiService) UpdateUser(ServiceSid string, Sid string, params *UpdateUserParams) (*ChatV1ServiceUser, error) { path := "/v1/Services/{ServiceSid}/Users/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) + data.Set("RoleSid", *params.RoleSid) } diff --git a/rest/chat/v1/docs/DefaultApi.md b/rest/chat/v1/docs/DefaultApi.md index ae991a359..84dcda24b 100644 --- a/rest/chat/v1/docs/DefaultApi.md +++ b/rest/chat/v1/docs/DefaultApi.md @@ -49,7 +49,7 @@ Method | HTTP request | Description ## CreateChannel -> ChatV1ServiceChannel CreateChannel(ctx, serviceSid, optional) +> ChatV1ServiceChannel CreateChannel(ctx, ServiceSid, optional) @@ -59,7 +59,7 @@ Method | HTTP request | Description Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under. | **optional** | ***CreateChannelOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -70,10 +70,10 @@ Optional parameters are passed through a pointer to a CreateChannelOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **attributes** | **optional.String**| A valid JSON string that contains application-specific data. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | - **type_** | **optional.String**| The visibility of the channel. Can be: `public` or `private` and defaults to `public`. | - **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. This value must be 64 characters or less in length and be unique within the Service. | + **Attributes** | **optional.String**| A valid JSON string that contains application-specific data. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | + **Type** | **optional.String**| The visibility of the channel. Can be: `public` or `private` and defaults to `public`. | + **UniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. This value must be 64 characters or less in length and be unique within the Service. | ### Return type @@ -114,13 +114,13 @@ Optional parameters are passed through a pointer to a CreateCredentialOpts struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiKey** | **optional.String**| [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. | - **certificate** | **optional.String**| [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A== -----END CERTIFICATE-----` | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | - **privateKey** | **optional.String**| [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR. -----END RSA PRIVATE KEY-----` | - **sandbox** | **optional.Bool**| [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. | - **secret** | **optional.String**| [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. | - **type_** | **optional.String**| The type of push-notification service the credential is for. Can be: `gcm`, `fcm`, or `apn`. | + **ApiKey** | **optional.String**| [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. | + **Certificate** | **optional.String**| [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A== -----END CERTIFICATE-----` | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | + **PrivateKey** | **optional.String**| [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR. -----END RSA PRIVATE KEY-----` | + **Sandbox** | **optional.Bool**| [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. | + **Secret** | **optional.String**| [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. | + **Type** | **optional.String**| The type of push-notification service the credential is for. Can be: `gcm`, `fcm`, or `apn`. | ### Return type @@ -142,7 +142,7 @@ Name | Type | Description | Notes ## CreateInvite -> ChatV1ServiceChannelInvite CreateInvite(ctx, serviceSid, channelSid, optional) +> ChatV1ServiceChannelInvite CreateInvite(ctx, ServiceSid, ChannelSid, optional) @@ -152,8 +152,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under. | -**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the new resource belongs to. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under. | +**ChannelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the new resource belongs to. | **optional** | ***CreateInviteOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -165,8 +165,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **identity** | **optional.String**| The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/api/chat/rest/v1/user) within the [Service](https://www.twilio.com/docs/api/chat/rest/v1/service). See [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) for more info. | - **roleSid** | **optional.String**| The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) assigned to the new member. | + **Identity** | **optional.String**| The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/api/chat/rest/v1/user) within the [Service](https://www.twilio.com/docs/api/chat/rest/v1/service). See [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) for more info. | + **RoleSid** | **optional.String**| The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) assigned to the new member. | ### Return type @@ -188,7 +188,7 @@ Name | Type | Description | Notes ## CreateMember -> ChatV1ServiceChannelMember CreateMember(ctx, serviceSid, channelSid, optional) +> ChatV1ServiceChannelMember CreateMember(ctx, ServiceSid, ChannelSid, optional) @@ -198,8 +198,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under. | -**channelSid** | **string**| The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the new member belongs to. Can be the Channel resource's `sid` or `unique_name`. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under. | +**ChannelSid** | **string**| The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the new member belongs to. Can be the Channel resource's `sid` or `unique_name`. | **optional** | ***CreateMemberOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -211,8 +211,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **identity** | **optional.String**| The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/api/chat/rest/v1/user) within the [Service](https://www.twilio.com/docs/api/chat/rest/services). See [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) for more details. | - **roleSid** | **optional.String**| The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/api/services). | + **Identity** | **optional.String**| The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/api/chat/rest/v1/user) within the [Service](https://www.twilio.com/docs/api/chat/rest/services). See [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) for more details. | + **RoleSid** | **optional.String**| The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/api/services). | ### Return type @@ -234,7 +234,7 @@ Name | Type | Description | Notes ## CreateMessage -> ChatV1ServiceChannelMessage CreateMessage(ctx, serviceSid, channelSid, optional) +> ChatV1ServiceChannelMessage CreateMessage(ctx, ServiceSid, ChannelSid, optional) @@ -244,8 +244,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under. | -**channelSid** | **string**| The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the new resource belongs to. Can be the Channel resource's `sid` or `unique_name`. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under. | +**ChannelSid** | **string**| The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the new resource belongs to. Can be the Channel resource's `sid` or `unique_name`. | **optional** | ***CreateMessageOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -257,9 +257,9 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **attributes** | **optional.String**| A valid JSON string that contains application-specific data. | - **body** | **optional.String**| The message to send to the channel. Can also be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string. | - **from** | **optional.String**| The [identity](https://www.twilio.com/docs/api/chat/guides/identity) of the new message's author. The default value is `system`. | + **Attributes** | **optional.String**| A valid JSON string that contains application-specific data. | + **Body** | **optional.String**| The message to send to the channel. Can also be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string. | + **From** | **optional.String**| The [identity](https://www.twilio.com/docs/api/chat/guides/identity) of the new message's author. The default value is `system`. | ### Return type @@ -281,7 +281,7 @@ Name | Type | Description | Notes ## CreateRole -> ChatV1ServiceRole CreateRole(ctx, serviceSid, optional) +> ChatV1ServiceRole CreateRole(ctx, ServiceSid, optional) @@ -291,7 +291,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under. | **optional** | ***CreateRoleOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -302,9 +302,9 @@ Optional parameters are passed through a pointer to a CreateRoleOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | - **permission** | [**optional.Interface of []string**](string.md)| A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type` and are described in the documentation. | - **type_** | **optional.String**| The type of role. Can be: `channel` for [Channel](https://www.twilio.com/docs/chat/api/channels) roles or `deployment` for [Service](https://www.twilio.com/docs/chat/api/services) roles. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | + **Permission** | [**optional.Interface of []string**](string.md)| A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type` and are described in the documentation. | + **Type** | **optional.String**| The type of role. Can be: `channel` for [Channel](https://www.twilio.com/docs/chat/api/channels) roles or `deployment` for [Service](https://www.twilio.com/docs/chat/api/services) roles. | ### Return type @@ -345,7 +345,7 @@ Optional parameters are passed through a pointer to a CreateServiceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | ### Return type @@ -367,7 +367,7 @@ Name | Type | Description | Notes ## CreateUser -> ChatV1ServiceUser CreateUser(ctx, serviceSid, optional) +> ChatV1ServiceUser CreateUser(ctx, ServiceSid, optional) @@ -377,7 +377,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to create the resource under. | **optional** | ***CreateUserOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -388,10 +388,10 @@ Optional parameters are passed through a pointer to a CreateUserOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **attributes** | **optional.String**| A valid JSON string that contains application-specific data. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. This value is often used for display purposes. | - **identity** | **optional.String**| The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/api/chat/rest/v1/user) within the [Service](https://www.twilio.com/docs/api/chat/rest/v1/service). This value is often a username or email address. See the Identity documentation for more details. | - **roleSid** | **optional.String**| The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) assigned to the new User. | + **Attributes** | **optional.String**| A valid JSON string that contains application-specific data. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. This value is often used for display purposes. | + **Identity** | **optional.String**| The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/api/chat/rest/v1/user) within the [Service](https://www.twilio.com/docs/api/chat/rest/v1/service). This value is often a username or email address. See the Identity documentation for more details. | + **RoleSid** | **optional.String**| The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) assigned to the new User. | ### Return type @@ -413,7 +413,7 @@ Name | Type | Description | Notes ## DeleteChannel -> DeleteChannel(ctx, serviceSid, sid) +> DeleteChannel(ctx, ServiceSid, Sid) @@ -423,8 +423,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Channel resource to delete. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Channel resource to delete. | ### Return type @@ -446,7 +446,7 @@ Name | Type | Description | Notes ## DeleteCredential -> DeleteCredential(ctx, sid) +> DeleteCredential(ctx, Sid) @@ -456,7 +456,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the Credential resource to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Credential resource to delete. | ### Return type @@ -478,7 +478,7 @@ Name | Type | Description | Notes ## DeleteInvite -> DeleteInvite(ctx, serviceSid, channelSid, sid) +> DeleteInvite(ctx, ServiceSid, ChannelSid, Sid) @@ -488,9 +488,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from. | -**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the resource to delete belongs to. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Invite resource to delete. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from. | +**ChannelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the resource to delete belongs to. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Invite resource to delete. | ### Return type @@ -512,7 +512,7 @@ Name | Type | Description | Notes ## DeleteMember -> DeleteMember(ctx, serviceSid, channelSid, sid) +> DeleteMember(ctx, ServiceSid, ChannelSid, Sid) @@ -522,9 +522,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from. | -**channelSid** | **string**| The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message belongs to. Can be the Channel's `sid` or `unique_name`. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Member resource to delete. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from. | +**ChannelSid** | **string**| The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message belongs to. Can be the Channel's `sid` or `unique_name`. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Member resource to delete. | ### Return type @@ -546,7 +546,7 @@ Name | Type | Description | Notes ## DeleteMessage -> DeleteMessage(ctx, serviceSid, channelSid, sid) +> DeleteMessage(ctx, ServiceSid, ChannelSid, Sid) @@ -556,9 +556,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from. | -**channelSid** | **string**| The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message to delete belongs to. Can be the Channel resource's `sid` or `unique_name`. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Message resource to delete. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from. | +**ChannelSid** | **string**| The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message to delete belongs to. Can be the Channel resource's `sid` or `unique_name`. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Message resource to delete. | ### Return type @@ -580,7 +580,7 @@ Name | Type | Description | Notes ## DeleteRole -> DeleteRole(ctx, serviceSid, sid) +> DeleteRole(ctx, ServiceSid, Sid) @@ -590,8 +590,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Role resource to delete. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Role resource to delete. | ### Return type @@ -613,7 +613,7 @@ Name | Type | Description | Notes ## DeleteService -> DeleteService(ctx, sid) +> DeleteService(ctx, Sid) @@ -623,7 +623,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the Service resource to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Service resource to delete. | ### Return type @@ -645,7 +645,7 @@ Name | Type | Description | Notes ## DeleteUser -> DeleteUser(ctx, serviceSid, sid) +> DeleteUser(ctx, ServiceSid, Sid) @@ -655,8 +655,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the User resource to delete. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to delete the resource from. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the User resource to delete. | ### Return type @@ -678,7 +678,7 @@ Name | Type | Description | Notes ## FetchChannel -> ChatV1ServiceChannel FetchChannel(ctx, serviceSid, sid) +> ChatV1ServiceChannel FetchChannel(ctx, ServiceSid, Sid) @@ -688,8 +688,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Channel resource to fetch. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Channel resource to fetch. | ### Return type @@ -711,7 +711,7 @@ Name | Type | Description | Notes ## FetchCredential -> ChatV1Credential FetchCredential(ctx, sid) +> ChatV1Credential FetchCredential(ctx, Sid) @@ -721,7 +721,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the Credential resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Credential resource to fetch. | ### Return type @@ -743,7 +743,7 @@ Name | Type | Description | Notes ## FetchInvite -> ChatV1ServiceChannelInvite FetchInvite(ctx, serviceSid, channelSid, sid) +> ChatV1ServiceChannelInvite FetchInvite(ctx, ServiceSid, ChannelSid, Sid) @@ -753,9 +753,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from. | -**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the resource to fetch belongs to. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Invite resource to fetch. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from. | +**ChannelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the resource to fetch belongs to. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Invite resource to fetch. | ### Return type @@ -777,7 +777,7 @@ Name | Type | Description | Notes ## FetchMember -> ChatV1ServiceChannelMember FetchMember(ctx, serviceSid, channelSid, sid) +> ChatV1ServiceChannelMember FetchMember(ctx, ServiceSid, ChannelSid, Sid) @@ -787,9 +787,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from. | -**channelSid** | **string**| The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the member to fetch belongs to. Can be the Channel resource's `sid` or `unique_name` value. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Member resource to fetch. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from. | +**ChannelSid** | **string**| The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the member to fetch belongs to. Can be the Channel resource's `sid` or `unique_name` value. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Member resource to fetch. | ### Return type @@ -811,7 +811,7 @@ Name | Type | Description | Notes ## FetchMessage -> ChatV1ServiceChannelMessage FetchMessage(ctx, serviceSid, channelSid, sid) +> ChatV1ServiceChannelMessage FetchMessage(ctx, ServiceSid, ChannelSid, Sid) @@ -821,9 +821,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from. | -**channelSid** | **string**| The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message to fetch belongs to. Can be the Channel's `sid` or `unique_name`. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Message resource to fetch. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from. | +**ChannelSid** | **string**| The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message to fetch belongs to. Can be the Channel's `sid` or `unique_name`. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Message resource to fetch. | ### Return type @@ -845,7 +845,7 @@ Name | Type | Description | Notes ## FetchRole -> ChatV1ServiceRole FetchRole(ctx, serviceSid, sid) +> ChatV1ServiceRole FetchRole(ctx, ServiceSid, Sid) @@ -855,8 +855,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Role resource to fetch. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Role resource to fetch. | ### Return type @@ -878,7 +878,7 @@ Name | Type | Description | Notes ## FetchService -> ChatV1Service FetchService(ctx, sid) +> ChatV1Service FetchService(ctx, Sid) @@ -888,7 +888,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the Service resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Service resource to fetch. | ### Return type @@ -910,7 +910,7 @@ Name | Type | Description | Notes ## FetchUser -> ChatV1ServiceUser FetchUser(ctx, serviceSid, sid) +> ChatV1ServiceUser FetchUser(ctx, ServiceSid, Sid) @@ -920,8 +920,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the User resource to fetch. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to fetch the resource from. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the User resource to fetch. | ### Return type @@ -943,7 +943,7 @@ Name | Type | Description | Notes ## ListChannel -> ChatV1ServiceChannelReadResponse ListChannel(ctx, serviceSid, optional) +> ChatV1ServiceChannelReadResponse ListChannel(ctx, ServiceSid, optional) @@ -953,7 +953,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. | **optional** | ***ListChannelOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -964,8 +964,8 @@ Optional parameters are passed through a pointer to a ListChannelOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **type_** | [**optional.Interface of []string**](string.md)| The visibility of the Channels to read. Can be: `public` or `private` and defaults to `public`. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Type** | [**optional.Interface of []string**](string.md)| The visibility of the Channels to read. Can be: `public` or `private` and defaults to `public`. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1006,7 +1006,7 @@ Optional parameters are passed through a pointer to a ListCredentialOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1028,7 +1028,7 @@ Name | Type | Description | Notes ## ListInvite -> ChatV1ServiceChannelInviteReadResponse ListInvite(ctx, serviceSid, channelSid, optional) +> ChatV1ServiceChannelInviteReadResponse ListInvite(ctx, ServiceSid, ChannelSid, optional) @@ -1038,8 +1038,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. | -**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the resources to read belong to. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. | +**ChannelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the resources to read belong to. | **optional** | ***ListInviteOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1051,8 +1051,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **identity** | [**optional.Interface of []string**](string.md)| The [User](https://www.twilio.com/docs/api/chat/rest/v1/user)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) for more details. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Identity** | [**optional.Interface of []string**](string.md)| The [User](https://www.twilio.com/docs/api/chat/rest/v1/user)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) for more details. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1074,7 +1074,7 @@ Name | Type | Description | Notes ## ListMember -> ChatV1ServiceChannelMemberReadResponse ListMember(ctx, serviceSid, channelSid, optional) +> ChatV1ServiceChannelMemberReadResponse ListMember(ctx, ServiceSid, ChannelSid, optional) @@ -1084,8 +1084,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. | -**channelSid** | **string**| The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the members to read belong to. Can be the Channel resource's `sid` or `unique_name` value. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. | +**ChannelSid** | **string**| The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the members to read belong to. Can be the Channel resource's `sid` or `unique_name` value. | **optional** | ***ListMemberOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1097,8 +1097,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **identity** | [**optional.Interface of []string**](string.md)| The [User](https://www.twilio.com/docs/api/chat/rest/v1/user)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) for more details. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Identity** | [**optional.Interface of []string**](string.md)| The [User](https://www.twilio.com/docs/api/chat/rest/v1/user)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) for more details. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1120,7 +1120,7 @@ Name | Type | Description | Notes ## ListMessage -> ChatV1ServiceChannelMessageReadResponse ListMessage(ctx, serviceSid, channelSid, optional) +> ChatV1ServiceChannelMessageReadResponse ListMessage(ctx, ServiceSid, ChannelSid, optional) @@ -1130,8 +1130,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. | -**channelSid** | **string**| The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message to read belongs to. Can be the Channel's `sid` or `unique_name`. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. | +**ChannelSid** | **string**| The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message to read belongs to. Can be the Channel's `sid` or `unique_name`. | **optional** | ***ListMessageOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1143,8 +1143,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **order** | **optional.String**| The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending) with `asc` as the default. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Order** | **optional.String**| The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending) with `asc` as the default. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1166,7 +1166,7 @@ Name | Type | Description | Notes ## ListRole -> ChatV1ServiceRoleReadResponse ListRole(ctx, serviceSid, optional) +> ChatV1ServiceRoleReadResponse ListRole(ctx, ServiceSid, optional) @@ -1176,7 +1176,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. | **optional** | ***ListRoleOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1187,7 +1187,7 @@ Optional parameters are passed through a pointer to a ListRoleOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1228,7 +1228,7 @@ Optional parameters are passed through a pointer to a ListServiceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1250,7 +1250,7 @@ Name | Type | Description | Notes ## ListUser -> ChatV1ServiceUserReadResponse ListUser(ctx, serviceSid, optional) +> ChatV1ServiceUserReadResponse ListUser(ctx, ServiceSid, optional) @@ -1260,7 +1260,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. | **optional** | ***ListUserOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1271,7 +1271,7 @@ Optional parameters are passed through a pointer to a ListUserOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1293,7 +1293,7 @@ Name | Type | Description | Notes ## ListUserChannel -> ChatV1ServiceUserUserChannelReadResponse ListUserChannel(ctx, serviceSid, userSid, optional) +> ChatV1ServiceUserUserChannelReadResponse ListUserChannel(ctx, ServiceSid, UserSid, optional) @@ -1305,8 +1305,8 @@ List all Channels for a given User. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. | -**userSid** | **string**| The SID of the [User](https://www.twilio.com/docs/api/chat/rest/users) to read the User Channel resources from. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. | +**UserSid** | **string**| The SID of the [User](https://www.twilio.com/docs/api/chat/rest/users) to read the User Channel resources from. | **optional** | ***ListUserChannelOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1318,7 +1318,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1340,7 +1340,7 @@ Name | Type | Description | Notes ## UpdateChannel -> ChatV1ServiceChannel UpdateChannel(ctx, serviceSid, sid, optional) +> ChatV1ServiceChannel UpdateChannel(ctx, ServiceSid, Sid, optional) @@ -1350,8 +1350,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to update the resource from. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Channel resource to update. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to update the resource from. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Channel resource to update. | **optional** | ***UpdateChannelOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1363,9 +1363,9 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **attributes** | **optional.String**| A valid JSON string that contains application-specific data. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | - **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. This value must be 64 characters or less in length and be unique within the Service. | + **Attributes** | **optional.String**| A valid JSON string that contains application-specific data. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **UniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. This value must be 64 characters or less in length and be unique within the Service. | ### Return type @@ -1387,7 +1387,7 @@ Name | Type | Description | Notes ## UpdateCredential -> ChatV1Credential UpdateCredential(ctx, sid, optional) +> ChatV1Credential UpdateCredential(ctx, Sid, optional) @@ -1397,7 +1397,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the Credential resource to update. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Credential resource to update. | **optional** | ***UpdateCredentialOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1408,12 +1408,12 @@ Optional parameters are passed through a pointer to a UpdateCredentialOpts struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiKey** | **optional.String**| [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. | - **certificate** | **optional.String**| [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A== -----END CERTIFICATE-----` | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | - **privateKey** | **optional.String**| [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR. -----END RSA PRIVATE KEY-----` | - **sandbox** | **optional.Bool**| [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. | - **secret** | **optional.String**| [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. | + **ApiKey** | **optional.String**| [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. | + **Certificate** | **optional.String**| [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A== -----END CERTIFICATE-----` | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **PrivateKey** | **optional.String**| [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR. -----END RSA PRIVATE KEY-----` | + **Sandbox** | **optional.Bool**| [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. | + **Secret** | **optional.String**| [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. | ### Return type @@ -1435,7 +1435,7 @@ Name | Type | Description | Notes ## UpdateMember -> ChatV1ServiceChannelMember UpdateMember(ctx, serviceSid, channelSid, sid, optional) +> ChatV1ServiceChannelMember UpdateMember(ctx, ServiceSid, ChannelSid, Sid, optional) @@ -1445,9 +1445,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to update the resource from. | -**channelSid** | **string**| The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the member to update belongs to. Can be the Channel resource's `sid` or `unique_name`. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Member resource to update. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to update the resource from. | +**ChannelSid** | **string**| The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the member to update belongs to. Can be the Channel resource's `sid` or `unique_name`. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Member resource to update. | **optional** | ***UpdateMemberOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1460,8 +1460,8 @@ Name | Type | Description | Notes - **lastConsumedMessageIndex** | **optional.Int32**| The index of the last [Message](https://www.twilio.com/docs/api/chat/rest/messages) that the Member has read within the [Channel](https://www.twilio.com/docs/api/chat/rest/channels). | - **roleSid** | **optional.String**| The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/api/services). | + **LastConsumedMessageIndex** | **optional.Int32**| The index of the last [Message](https://www.twilio.com/docs/api/chat/rest/messages) that the Member has read within the [Channel](https://www.twilio.com/docs/api/chat/rest/channels). | + **RoleSid** | **optional.String**| The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/api/services). | ### Return type @@ -1483,7 +1483,7 @@ Name | Type | Description | Notes ## UpdateMessage -> ChatV1ServiceChannelMessage UpdateMessage(ctx, serviceSid, channelSid, sid, optional) +> ChatV1ServiceChannelMessage UpdateMessage(ctx, ServiceSid, ChannelSid, Sid, optional) @@ -1493,9 +1493,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to update the resource from. | -**channelSid** | **string**| The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message belongs to. Can be the Channel's `sid` or `unique_name`. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Message resource to update. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to update the resource from. | +**ChannelSid** | **string**| The unique ID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the message belongs to. Can be the Channel's `sid` or `unique_name`. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Message resource to update. | **optional** | ***UpdateMessageOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1508,8 +1508,8 @@ Name | Type | Description | Notes - **attributes** | **optional.String**| A valid JSON string that contains application-specific data. | - **body** | **optional.String**| The message to send to the channel. Can also be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string. | + **Attributes** | **optional.String**| A valid JSON string that contains application-specific data. | + **Body** | **optional.String**| The message to send to the channel. Can also be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string. | ### Return type @@ -1531,7 +1531,7 @@ Name | Type | Description | Notes ## UpdateRole -> ChatV1ServiceRole UpdateRole(ctx, serviceSid, sid, optional) +> ChatV1ServiceRole UpdateRole(ctx, ServiceSid, Sid, optional) @@ -1541,8 +1541,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to update the resource from. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Role resource to update. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to update the resource from. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Role resource to update. | **optional** | ***UpdateRoleOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1554,7 +1554,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **permission** | [**optional.Interface of []string**](string.md)| A permission that you grant to the role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type` and are described in the documentation. | + **Permission** | [**optional.Interface of []string**](string.md)| A permission that you grant to the role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type` and are described in the documentation. | ### Return type @@ -1576,7 +1576,7 @@ Name | Type | Description | Notes ## UpdateService -> ChatV1Service UpdateService(ctx, sid, optional) +> ChatV1Service UpdateService(ctx, Sid, optional) @@ -1586,7 +1586,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the Service resource to update. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Service resource to update. | **optional** | ***UpdateServiceOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1597,60 +1597,60 @@ Optional parameters are passed through a pointer to a UpdateServiceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **consumptionReportInterval** | **optional.Int32**| DEPRECATED. The interval in seconds between consumption reports submission batches from client endpoints. | - **defaultChannelCreatorRoleSid** | **optional.String**| The channel role assigned to a channel creator when they join a new channel. See the [Roles endpoint](https://www.twilio.com/docs/chat/api/roles) for more details. | - **defaultChannelRoleSid** | **optional.String**| The channel role assigned to users when they are added to a channel. See the [Roles endpoint](https://www.twilio.com/docs/chat/api/roles) for more details. | - **defaultServiceRoleSid** | **optional.String**| The service role assigned to users when they are added to the service. See the [Roles endpoint](https://www.twilio.com/docs/chat/api/roles) for more details. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | - **limitsChannelMembers** | **optional.Int32**| The maximum number of Members that can be added to Channels within this Service. Can be up to 1,000. | - **limitsUserChannels** | **optional.Int32**| The maximum number of Channels Users can be a Member of within this Service. Can be up to 1,000. | - **notificationsAddedToChannelEnabled** | **optional.Bool**| Whether to send a notification when a member is added to a channel. Can be: `true` or `false` and the default is `false`. | - **notificationsAddedToChannelTemplate** | **optional.String**| The template to use to create the notification text displayed when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. | - **notificationsInvitedToChannelEnabled** | **optional.Bool**| Whether to send a notification when a user is invited to a channel. Can be: `true` or `false` and the default is `false`. | - **notificationsInvitedToChannelTemplate** | **optional.String**| The template to use to create the notification text displayed when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. | - **notificationsNewMessageEnabled** | **optional.Bool**| Whether to send a notification when a new message is added to a channel. Can be: `true` or `false` and the default is `false`. | - **notificationsNewMessageTemplate** | **optional.String**| The template to use to create the notification text displayed when a new message is added to a channel and `notifications.new_message.enabled` is `true`. | - **notificationsRemovedFromChannelEnabled** | **optional.Bool**| Whether to send a notification to a user when they are removed from a channel. Can be: `true` or `false` and the default is `false`. | - **notificationsRemovedFromChannelTemplate** | **optional.String**| The template to use to create the notification text displayed to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. | - **postWebhookUrl** | **optional.String**| The URL for post-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more details. | - **preWebhookUrl** | **optional.String**| The URL for pre-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more details. | - **reachabilityEnabled** | **optional.Bool**| Whether to enable the [Reachability Indicator](https://www.twilio.com/docs/chat/reachability-indicator) for this Service instance. The default is `false`. | - **readStatusEnabled** | **optional.Bool**| Whether to enable the [Message Consumption Horizon](https://www.twilio.com/docs/chat/consumption-horizon) feature. The default is `true`. | - **typingIndicatorTimeout** | **optional.Int32**| How long in seconds after a `started typing` event until clients should assume that user is no longer typing, even if no `ended typing` message was received. The default is 5 seconds. | - **webhookFilters** | [**optional.Interface of []string**](string.md)| The list of WebHook events that are enabled for this Service instance. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. | - **webhookMethod** | **optional.String**| The HTTP method to use for calls to the `pre_webhook_url` and `post_webhook_url` webhooks. Can be: `POST` or `GET` and the default is `POST`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. | - **webhooksOnChannelAddMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_channel_add.url`. | - **webhooksOnChannelAddUrl** | **optional.String**| The URL of the webhook to call in response to the `on_channel_add` event using the `webhooks.on_channel_add.method` HTTP method. | - **webhooksOnChannelAddedMethod** | **optional.String**| The URL of the webhook to call in response to the `on_channel_added` event`. | - **webhooksOnChannelAddedUrl** | **optional.String**| The URL of the webhook to call in response to the `on_channel_added` event using the `webhooks.on_channel_added.method` HTTP method. | - **webhooksOnChannelDestroyMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_channel_destroy.url`. | - **webhooksOnChannelDestroyUrl** | **optional.String**| The URL of the webhook to call in response to the `on_channel_destroy` event using the `webhooks.on_channel_destroy.method` HTTP method. | - **webhooksOnChannelDestroyedMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_channel_destroyed.url`. | - **webhooksOnChannelDestroyedUrl** | **optional.String**| The URL of the webhook to call in response to the `on_channel_added` event using the `webhooks.on_channel_destroyed.method` HTTP method. | - **webhooksOnChannelUpdateMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_channel_update.url`. | - **webhooksOnChannelUpdateUrl** | **optional.String**| The URL of the webhook to call in response to the `on_channel_update` event using the `webhooks.on_channel_update.method` HTTP method. | - **webhooksOnChannelUpdatedMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_channel_updated.url`. | - **webhooksOnChannelUpdatedUrl** | **optional.String**| The URL of the webhook to call in response to the `on_channel_updated` event using the `webhooks.on_channel_updated.method` HTTP method. | - **webhooksOnMemberAddMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_member_add.url`. | - **webhooksOnMemberAddUrl** | **optional.String**| The URL of the webhook to call in response to the `on_member_add` event using the `webhooks.on_member_add.method` HTTP method. | - **webhooksOnMemberAddedMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_channel_updated.url`. | - **webhooksOnMemberAddedUrl** | **optional.String**| The URL of the webhook to call in response to the `on_channel_updated` event using the `webhooks.on_channel_updated.method` HTTP method. | - **webhooksOnMemberRemoveMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_member_remove.url`. | - **webhooksOnMemberRemoveUrl** | **optional.String**| The URL of the webhook to call in response to the `on_member_remove` event using the `webhooks.on_member_remove.method` HTTP method. | - **webhooksOnMemberRemovedMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_member_removed.url`. | - **webhooksOnMemberRemovedUrl** | **optional.String**| The URL of the webhook to call in response to the `on_member_removed` event using the `webhooks.on_member_removed.method` HTTP method. | - **webhooksOnMessageRemoveMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_message_remove.url`. | - **webhooksOnMessageRemoveUrl** | **optional.String**| The URL of the webhook to call in response to the `on_message_remove` event using the `webhooks.on_message_remove.method` HTTP method. | - **webhooksOnMessageRemovedMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_message_removed.url`. | - **webhooksOnMessageRemovedUrl** | **optional.String**| The URL of the webhook to call in response to the `on_message_removed` event using the `webhooks.on_message_removed.method` HTTP method. | - **webhooksOnMessageSendMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_message_send.url`. | - **webhooksOnMessageSendUrl** | **optional.String**| The URL of the webhook to call in response to the `on_message_send` event using the `webhooks.on_message_send.method` HTTP method. | - **webhooksOnMessageSentMethod** | **optional.String**| The URL of the webhook to call in response to the `on_message_sent` event`. | - **webhooksOnMessageSentUrl** | **optional.String**| The URL of the webhook to call in response to the `on_message_sent` event using the `webhooks.on_message_sent.method` HTTP method. | - **webhooksOnMessageUpdateMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_message_update.url`. | - **webhooksOnMessageUpdateUrl** | **optional.String**| The URL of the webhook to call in response to the `on_message_update` event using the `webhooks.on_message_update.method` HTTP method. | - **webhooksOnMessageUpdatedMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_message_updated.url`. | - **webhooksOnMessageUpdatedUrl** | **optional.String**| The URL of the webhook to call in response to the `on_message_updated` event using the `webhooks.on_message_updated.method` HTTP method. | + **ConsumptionReportInterval** | **optional.Int32**| DEPRECATED. The interval in seconds between consumption reports submission batches from client endpoints. | + **DefaultChannelCreatorRoleSid** | **optional.String**| The channel role assigned to a channel creator when they join a new channel. See the [Roles endpoint](https://www.twilio.com/docs/chat/api/roles) for more details. | + **DefaultChannelRoleSid** | **optional.String**| The channel role assigned to users when they are added to a channel. See the [Roles endpoint](https://www.twilio.com/docs/chat/api/roles) for more details. | + **DefaultServiceRoleSid** | **optional.String**| The service role assigned to users when they are added to the service. See the [Roles endpoint](https://www.twilio.com/docs/chat/api/roles) for more details. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **LimitsChannelMembers** | **optional.Int32**| The maximum number of Members that can be added to Channels within this Service. Can be up to 1,000. | + **LimitsUserChannels** | **optional.Int32**| The maximum number of Channels Users can be a Member of within this Service. Can be up to 1,000. | + **NotificationsAddedToChannelEnabled** | **optional.Bool**| Whether to send a notification when a member is added to a channel. Can be: `true` or `false` and the default is `false`. | + **NotificationsAddedToChannelTemplate** | **optional.String**| The template to use to create the notification text displayed when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. | + **NotificationsInvitedToChannelEnabled** | **optional.Bool**| Whether to send a notification when a user is invited to a channel. Can be: `true` or `false` and the default is `false`. | + **NotificationsInvitedToChannelTemplate** | **optional.String**| The template to use to create the notification text displayed when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. | + **NotificationsNewMessageEnabled** | **optional.Bool**| Whether to send a notification when a new message is added to a channel. Can be: `true` or `false` and the default is `false`. | + **NotificationsNewMessageTemplate** | **optional.String**| The template to use to create the notification text displayed when a new message is added to a channel and `notifications.new_message.enabled` is `true`. | + **NotificationsRemovedFromChannelEnabled** | **optional.Bool**| Whether to send a notification to a user when they are removed from a channel. Can be: `true` or `false` and the default is `false`. | + **NotificationsRemovedFromChannelTemplate** | **optional.String**| The template to use to create the notification text displayed to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. | + **PostWebhookUrl** | **optional.String**| The URL for post-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more details. | + **PreWebhookUrl** | **optional.String**| The URL for pre-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more details. | + **ReachabilityEnabled** | **optional.Bool**| Whether to enable the [Reachability Indicator](https://www.twilio.com/docs/chat/reachability-indicator) for this Service instance. The default is `false`. | + **ReadStatusEnabled** | **optional.Bool**| Whether to enable the [Message Consumption Horizon](https://www.twilio.com/docs/chat/consumption-horizon) feature. The default is `true`. | + **TypingIndicatorTimeout** | **optional.Int32**| How long in seconds after a `started typing` event until clients should assume that user is no longer typing, even if no `ended typing` message was received. The default is 5 seconds. | + **WebhookFilters** | [**optional.Interface of []string**](string.md)| The list of WebHook events that are enabled for this Service instance. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. | + **WebhookMethod** | **optional.String**| The HTTP method to use for calls to the `pre_webhook_url` and `post_webhook_url` webhooks. Can be: `POST` or `GET` and the default is `POST`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. | + **WebhooksOnChannelAddMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_channel_add.url`. | + **WebhooksOnChannelAddUrl** | **optional.String**| The URL of the webhook to call in response to the `on_channel_add` event using the `webhooks.on_channel_add.method` HTTP method. | + **WebhooksOnChannelAddedMethod** | **optional.String**| The URL of the webhook to call in response to the `on_channel_added` event`. | + **WebhooksOnChannelAddedUrl** | **optional.String**| The URL of the webhook to call in response to the `on_channel_added` event using the `webhooks.on_channel_added.method` HTTP method. | + **WebhooksOnChannelDestroyMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_channel_destroy.url`. | + **WebhooksOnChannelDestroyUrl** | **optional.String**| The URL of the webhook to call in response to the `on_channel_destroy` event using the `webhooks.on_channel_destroy.method` HTTP method. | + **WebhooksOnChannelDestroyedMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_channel_destroyed.url`. | + **WebhooksOnChannelDestroyedUrl** | **optional.String**| The URL of the webhook to call in response to the `on_channel_added` event using the `webhooks.on_channel_destroyed.method` HTTP method. | + **WebhooksOnChannelUpdateMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_channel_update.url`. | + **WebhooksOnChannelUpdateUrl** | **optional.String**| The URL of the webhook to call in response to the `on_channel_update` event using the `webhooks.on_channel_update.method` HTTP method. | + **WebhooksOnChannelUpdatedMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_channel_updated.url`. | + **WebhooksOnChannelUpdatedUrl** | **optional.String**| The URL of the webhook to call in response to the `on_channel_updated` event using the `webhooks.on_channel_updated.method` HTTP method. | + **WebhooksOnMemberAddMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_member_add.url`. | + **WebhooksOnMemberAddUrl** | **optional.String**| The URL of the webhook to call in response to the `on_member_add` event using the `webhooks.on_member_add.method` HTTP method. | + **WebhooksOnMemberAddedMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_channel_updated.url`. | + **WebhooksOnMemberAddedUrl** | **optional.String**| The URL of the webhook to call in response to the `on_channel_updated` event using the `webhooks.on_channel_updated.method` HTTP method. | + **WebhooksOnMemberRemoveMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_member_remove.url`. | + **WebhooksOnMemberRemoveUrl** | **optional.String**| The URL of the webhook to call in response to the `on_member_remove` event using the `webhooks.on_member_remove.method` HTTP method. | + **WebhooksOnMemberRemovedMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_member_removed.url`. | + **WebhooksOnMemberRemovedUrl** | **optional.String**| The URL of the webhook to call in response to the `on_member_removed` event using the `webhooks.on_member_removed.method` HTTP method. | + **WebhooksOnMessageRemoveMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_message_remove.url`. | + **WebhooksOnMessageRemoveUrl** | **optional.String**| The URL of the webhook to call in response to the `on_message_remove` event using the `webhooks.on_message_remove.method` HTTP method. | + **WebhooksOnMessageRemovedMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_message_removed.url`. | + **WebhooksOnMessageRemovedUrl** | **optional.String**| The URL of the webhook to call in response to the `on_message_removed` event using the `webhooks.on_message_removed.method` HTTP method. | + **WebhooksOnMessageSendMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_message_send.url`. | + **WebhooksOnMessageSendUrl** | **optional.String**| The URL of the webhook to call in response to the `on_message_send` event using the `webhooks.on_message_send.method` HTTP method. | + **WebhooksOnMessageSentMethod** | **optional.String**| The URL of the webhook to call in response to the `on_message_sent` event`. | + **WebhooksOnMessageSentUrl** | **optional.String**| The URL of the webhook to call in response to the `on_message_sent` event using the `webhooks.on_message_sent.method` HTTP method. | + **WebhooksOnMessageUpdateMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_message_update.url`. | + **WebhooksOnMessageUpdateUrl** | **optional.String**| The URL of the webhook to call in response to the `on_message_update` event using the `webhooks.on_message_update.method` HTTP method. | + **WebhooksOnMessageUpdatedMethod** | **optional.String**| The HTTP method to use when calling the `webhooks.on_message_updated.url`. | + **WebhooksOnMessageUpdatedUrl** | **optional.String**| The URL of the webhook to call in response to the `on_message_updated` event using the `webhooks.on_message_updated.method` HTTP method. | ### Return type @@ -1672,7 +1672,7 @@ Name | Type | Description | Notes ## UpdateUser -> ChatV1ServiceUser UpdateUser(ctx, serviceSid, sid, optional) +> ChatV1ServiceUser UpdateUser(ctx, ServiceSid, Sid, optional) @@ -1682,8 +1682,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to update the resource from. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the User resource to update. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to update the resource from. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the User resource to update. | **optional** | ***UpdateUserOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1695,9 +1695,9 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **attributes** | **optional.String**| A valid JSON string that contains application-specific data. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is often used for display purposes. | - **roleSid** | **optional.String**| The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) assigned to this user. | + **Attributes** | **optional.String**| A valid JSON string that contains application-specific data. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is often used for display purposes. | + **RoleSid** | **optional.String**| The SID of the [Role](https://www.twilio.com/docs/api/chat/rest/roles) assigned to this user. | ### Return type diff --git a/rest/chat/v1/model_chat_v1_credential.go b/rest/chat/v1/model_chat_v1_credential.go index 85e9b6608..a8a9f34bc 100644 --- a/rest/chat/v1/model_chat_v1_credential.go +++ b/rest/chat/v1/model_chat_v1_credential.go @@ -14,12 +14,12 @@ import ( ) // ChatV1Credential struct for ChatV1Credential type ChatV1Credential struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Sandbox string `json:"sandbox,omitempty"` - Sid string `json:"sid,omitempty"` - Type string `json:"type,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Sandbox string `json:"Sandbox,omitempty"` + Sid string `json:"Sid,omitempty"` + Type string `json:"Type,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/chat/v1/model_chat_v1_credential_read_response.go b/rest/chat/v1/model_chat_v1_credential_read_response.go index 6dba2c2a7..8fbfda4b5 100644 --- a/rest/chat/v1/model_chat_v1_credential_read_response.go +++ b/rest/chat/v1/model_chat_v1_credential_read_response.go @@ -11,6 +11,6 @@ package openapi // ChatV1CredentialReadResponse struct for ChatV1CredentialReadResponse type ChatV1CredentialReadResponse struct { - Credentials []ChatV1Credential `json:"credentials,omitempty"` - Meta ChatV1CredentialReadResponseMeta `json:"meta,omitempty"` + Credentials []ChatV1Credential `json:"Credentials,omitempty"` + Meta ChatV1CredentialReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/chat/v1/model_chat_v1_credential_read_response_meta.go b/rest/chat/v1/model_chat_v1_credential_read_response_meta.go index 7978110cd..11c4678dc 100644 --- a/rest/chat/v1/model_chat_v1_credential_read_response_meta.go +++ b/rest/chat/v1/model_chat_v1_credential_read_response_meta.go @@ -11,11 +11,11 @@ package openapi // ChatV1CredentialReadResponseMeta struct for ChatV1CredentialReadResponseMeta type ChatV1CredentialReadResponseMeta struct { - FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` - NextPageUrl string `json:"next_page_url,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUrl string `json:"previous_page_url,omitempty"` - Url string `json:"url,omitempty"` + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/chat/v1/model_chat_v1_service.go b/rest/chat/v1/model_chat_v1_service.go index 97c5aa338..2c83d169e 100644 --- a/rest/chat/v1/model_chat_v1_service.go +++ b/rest/chat/v1/model_chat_v1_service.go @@ -14,25 +14,25 @@ import ( ) // ChatV1Service struct for ChatV1Service type ChatV1Service struct { - AccountSid string `json:"account_sid,omitempty"` - ConsumptionReportInterval int32 `json:"consumption_report_interval,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - DefaultChannelCreatorRoleSid string `json:"default_channel_creator_role_sid,omitempty"` - DefaultChannelRoleSid string `json:"default_channel_role_sid,omitempty"` - DefaultServiceRoleSid string `json:"default_service_role_sid,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Limits map[string]interface{} `json:"limits,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Notifications map[string]interface{} `json:"notifications,omitempty"` - PostWebhookUrl string `json:"post_webhook_url,omitempty"` - PreWebhookUrl string `json:"pre_webhook_url,omitempty"` - ReachabilityEnabled bool `json:"reachability_enabled,omitempty"` - ReadStatusEnabled bool `json:"read_status_enabled,omitempty"` - Sid string `json:"sid,omitempty"` - TypingIndicatorTimeout int32 `json:"typing_indicator_timeout,omitempty"` - Url string `json:"url,omitempty"` - WebhookFilters []string `json:"webhook_filters,omitempty"` - WebhookMethod string `json:"webhook_method,omitempty"` - Webhooks map[string]interface{} `json:"webhooks,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ConsumptionReportInterval int32 `json:"ConsumptionReportInterval,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + DefaultChannelCreatorRoleSid string `json:"DefaultChannelCreatorRoleSid,omitempty"` + DefaultChannelRoleSid string `json:"DefaultChannelRoleSid,omitempty"` + DefaultServiceRoleSid string `json:"DefaultServiceRoleSid,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Limits map[string]interface{} `json:"Limits,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Notifications map[string]interface{} `json:"Notifications,omitempty"` + PostWebhookUrl string `json:"PostWebhookUrl,omitempty"` + PreWebhookUrl string `json:"PreWebhookUrl,omitempty"` + ReachabilityEnabled bool `json:"ReachabilityEnabled,omitempty"` + ReadStatusEnabled bool `json:"ReadStatusEnabled,omitempty"` + Sid string `json:"Sid,omitempty"` + TypingIndicatorTimeout int32 `json:"TypingIndicatorTimeout,omitempty"` + Url string `json:"Url,omitempty"` + WebhookFilters []string `json:"WebhookFilters,omitempty"` + WebhookMethod string `json:"WebhookMethod,omitempty"` + Webhooks map[string]interface{} `json:"Webhooks,omitempty"` } diff --git a/rest/chat/v1/model_chat_v1_service_channel.go b/rest/chat/v1/model_chat_v1_service_channel.go index 7fbdb4921..0b20d6e96 100644 --- a/rest/chat/v1/model_chat_v1_service_channel.go +++ b/rest/chat/v1/model_chat_v1_service_channel.go @@ -14,18 +14,18 @@ import ( ) // ChatV1ServiceChannel struct for ChatV1ServiceChannel type ChatV1ServiceChannel struct { - AccountSid string `json:"account_sid,omitempty"` - Attributes string `json:"attributes,omitempty"` - CreatedBy string `json:"created_by,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - MembersCount int32 `json:"members_count,omitempty"` - MessagesCount int32 `json:"messages_count,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Type string `json:"type,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Attributes string `json:"Attributes,omitempty"` + CreatedBy string `json:"CreatedBy,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + MembersCount int32 `json:"MembersCount,omitempty"` + MessagesCount int32 `json:"MessagesCount,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Type string `json:"Type,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/chat/v1/model_chat_v1_service_channel_invite.go b/rest/chat/v1/model_chat_v1_service_channel_invite.go index 110775174..6c79595de 100644 --- a/rest/chat/v1/model_chat_v1_service_channel_invite.go +++ b/rest/chat/v1/model_chat_v1_service_channel_invite.go @@ -14,14 +14,14 @@ import ( ) // ChatV1ServiceChannelInvite struct for ChatV1ServiceChannelInvite type ChatV1ServiceChannelInvite struct { - AccountSid string `json:"account_sid,omitempty"` - ChannelSid string `json:"channel_sid,omitempty"` - CreatedBy string `json:"created_by,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Identity string `json:"identity,omitempty"` - RoleSid string `json:"role_sid,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ChannelSid string `json:"ChannelSid,omitempty"` + CreatedBy string `json:"CreatedBy,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Identity string `json:"Identity,omitempty"` + RoleSid string `json:"RoleSid,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/chat/v1/model_chat_v1_service_channel_invite_read_response.go b/rest/chat/v1/model_chat_v1_service_channel_invite_read_response.go index 6cccc8275..ec68b2872 100644 --- a/rest/chat/v1/model_chat_v1_service_channel_invite_read_response.go +++ b/rest/chat/v1/model_chat_v1_service_channel_invite_read_response.go @@ -11,6 +11,6 @@ package openapi // ChatV1ServiceChannelInviteReadResponse struct for ChatV1ServiceChannelInviteReadResponse type ChatV1ServiceChannelInviteReadResponse struct { - Invites []ChatV1ServiceChannelInvite `json:"invites,omitempty"` - Meta ChatV1CredentialReadResponseMeta `json:"meta,omitempty"` + Invites []ChatV1ServiceChannelInvite `json:"Invites,omitempty"` + Meta ChatV1CredentialReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/chat/v1/model_chat_v1_service_channel_member.go b/rest/chat/v1/model_chat_v1_service_channel_member.go index 173f6c04d..2b1ca2e2d 100644 --- a/rest/chat/v1/model_chat_v1_service_channel_member.go +++ b/rest/chat/v1/model_chat_v1_service_channel_member.go @@ -14,15 +14,15 @@ import ( ) // ChatV1ServiceChannelMember struct for ChatV1ServiceChannelMember type ChatV1ServiceChannelMember struct { - AccountSid string `json:"account_sid,omitempty"` - ChannelSid string `json:"channel_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Identity string `json:"identity,omitempty"` - LastConsumedMessageIndex *int32 `json:"last_consumed_message_index,omitempty"` - LastConsumptionTimestamp time.Time `json:"last_consumption_timestamp,omitempty"` - RoleSid string `json:"role_sid,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ChannelSid string `json:"ChannelSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Identity string `json:"Identity,omitempty"` + LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` + LastConsumptionTimestamp time.Time `json:"LastConsumptionTimestamp,omitempty"` + RoleSid string `json:"RoleSid,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/chat/v1/model_chat_v1_service_channel_member_read_response.go b/rest/chat/v1/model_chat_v1_service_channel_member_read_response.go index e1a94ece8..8e06d004f 100644 --- a/rest/chat/v1/model_chat_v1_service_channel_member_read_response.go +++ b/rest/chat/v1/model_chat_v1_service_channel_member_read_response.go @@ -11,6 +11,6 @@ package openapi // ChatV1ServiceChannelMemberReadResponse struct for ChatV1ServiceChannelMemberReadResponse type ChatV1ServiceChannelMemberReadResponse struct { - Members []ChatV1ServiceChannelMember `json:"members,omitempty"` - Meta ChatV1CredentialReadResponseMeta `json:"meta,omitempty"` + Members []ChatV1ServiceChannelMember `json:"Members,omitempty"` + Meta ChatV1CredentialReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/chat/v1/model_chat_v1_service_channel_message.go b/rest/chat/v1/model_chat_v1_service_channel_message.go index 98b323d68..f4e0b6d08 100644 --- a/rest/chat/v1/model_chat_v1_service_channel_message.go +++ b/rest/chat/v1/model_chat_v1_service_channel_message.go @@ -14,17 +14,17 @@ import ( ) // ChatV1ServiceChannelMessage struct for ChatV1ServiceChannelMessage type ChatV1ServiceChannelMessage struct { - AccountSid string `json:"account_sid,omitempty"` - Attributes string `json:"attributes,omitempty"` - Body string `json:"body,omitempty"` - ChannelSid string `json:"channel_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - From string `json:"from,omitempty"` - Index int32 `json:"index,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - To string `json:"to,omitempty"` - Url string `json:"url,omitempty"` - WasEdited bool `json:"was_edited,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Attributes string `json:"Attributes,omitempty"` + Body string `json:"Body,omitempty"` + ChannelSid string `json:"ChannelSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + From string `json:"From,omitempty"` + Index int32 `json:"Index,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + To string `json:"To,omitempty"` + Url string `json:"Url,omitempty"` + WasEdited bool `json:"WasEdited,omitempty"` } diff --git a/rest/chat/v1/model_chat_v1_service_channel_message_read_response.go b/rest/chat/v1/model_chat_v1_service_channel_message_read_response.go index b39670fe3..d61b0a231 100644 --- a/rest/chat/v1/model_chat_v1_service_channel_message_read_response.go +++ b/rest/chat/v1/model_chat_v1_service_channel_message_read_response.go @@ -11,6 +11,6 @@ package openapi // ChatV1ServiceChannelMessageReadResponse struct for ChatV1ServiceChannelMessageReadResponse type ChatV1ServiceChannelMessageReadResponse struct { - Messages []ChatV1ServiceChannelMessage `json:"messages,omitempty"` - Meta ChatV1CredentialReadResponseMeta `json:"meta,omitempty"` + Messages []ChatV1ServiceChannelMessage `json:"Messages,omitempty"` + Meta ChatV1CredentialReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/chat/v1/model_chat_v1_service_channel_read_response.go b/rest/chat/v1/model_chat_v1_service_channel_read_response.go index f975eaeb1..45adeb90c 100644 --- a/rest/chat/v1/model_chat_v1_service_channel_read_response.go +++ b/rest/chat/v1/model_chat_v1_service_channel_read_response.go @@ -11,6 +11,6 @@ package openapi // ChatV1ServiceChannelReadResponse struct for ChatV1ServiceChannelReadResponse type ChatV1ServiceChannelReadResponse struct { - Channels []ChatV1ServiceChannel `json:"channels,omitempty"` - Meta ChatV1CredentialReadResponseMeta `json:"meta,omitempty"` + Channels []ChatV1ServiceChannel `json:"Channels,omitempty"` + Meta ChatV1CredentialReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/chat/v1/model_chat_v1_service_read_response.go b/rest/chat/v1/model_chat_v1_service_read_response.go index 4142019b8..b27e3f079 100644 --- a/rest/chat/v1/model_chat_v1_service_read_response.go +++ b/rest/chat/v1/model_chat_v1_service_read_response.go @@ -11,6 +11,6 @@ package openapi // ChatV1ServiceReadResponse struct for ChatV1ServiceReadResponse type ChatV1ServiceReadResponse struct { - Meta ChatV1CredentialReadResponseMeta `json:"meta,omitempty"` - Services []ChatV1Service `json:"services,omitempty"` + Meta ChatV1CredentialReadResponseMeta `json:"Meta,omitempty"` + Services []ChatV1Service `json:"Services,omitempty"` } diff --git a/rest/chat/v1/model_chat_v1_service_role.go b/rest/chat/v1/model_chat_v1_service_role.go index fb23834ea..8c2d568a7 100644 --- a/rest/chat/v1/model_chat_v1_service_role.go +++ b/rest/chat/v1/model_chat_v1_service_role.go @@ -14,13 +14,13 @@ import ( ) // ChatV1ServiceRole struct for ChatV1ServiceRole type ChatV1ServiceRole struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Permissions []string `json:"permissions,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Type string `json:"type,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Permissions []string `json:"Permissions,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Type string `json:"Type,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/chat/v1/model_chat_v1_service_role_read_response.go b/rest/chat/v1/model_chat_v1_service_role_read_response.go index 159fcc3b1..730798b8a 100644 --- a/rest/chat/v1/model_chat_v1_service_role_read_response.go +++ b/rest/chat/v1/model_chat_v1_service_role_read_response.go @@ -11,6 +11,6 @@ package openapi // ChatV1ServiceRoleReadResponse struct for ChatV1ServiceRoleReadResponse type ChatV1ServiceRoleReadResponse struct { - Meta ChatV1CredentialReadResponseMeta `json:"meta,omitempty"` - Roles []ChatV1ServiceRole `json:"roles,omitempty"` + Meta ChatV1CredentialReadResponseMeta `json:"Meta,omitempty"` + Roles []ChatV1ServiceRole `json:"Roles,omitempty"` } diff --git a/rest/chat/v1/model_chat_v1_service_user.go b/rest/chat/v1/model_chat_v1_service_user.go index 719b4651d..d232f92aa 100644 --- a/rest/chat/v1/model_chat_v1_service_user.go +++ b/rest/chat/v1/model_chat_v1_service_user.go @@ -14,18 +14,18 @@ import ( ) // ChatV1ServiceUser struct for ChatV1ServiceUser type ChatV1ServiceUser struct { - AccountSid string `json:"account_sid,omitempty"` - Attributes string `json:"attributes,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Identity string `json:"identity,omitempty"` - IsNotifiable bool `json:"is_notifiable,omitempty"` - IsOnline bool `json:"is_online,omitempty"` - JoinedChannelsCount int32 `json:"joined_channels_count,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - RoleSid string `json:"role_sid,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Attributes string `json:"Attributes,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Identity string `json:"Identity,omitempty"` + IsNotifiable bool `json:"IsNotifiable,omitempty"` + IsOnline bool `json:"IsOnline,omitempty"` + JoinedChannelsCount int32 `json:"JoinedChannelsCount,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + RoleSid string `json:"RoleSid,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/chat/v1/model_chat_v1_service_user_read_response.go b/rest/chat/v1/model_chat_v1_service_user_read_response.go index cb175619b..0d71a8ae4 100644 --- a/rest/chat/v1/model_chat_v1_service_user_read_response.go +++ b/rest/chat/v1/model_chat_v1_service_user_read_response.go @@ -11,6 +11,6 @@ package openapi // ChatV1ServiceUserReadResponse struct for ChatV1ServiceUserReadResponse type ChatV1ServiceUserReadResponse struct { - Meta ChatV1CredentialReadResponseMeta `json:"meta,omitempty"` - Users []ChatV1ServiceUser `json:"users,omitempty"` + Meta ChatV1CredentialReadResponseMeta `json:"Meta,omitempty"` + Users []ChatV1ServiceUser `json:"Users,omitempty"` } diff --git a/rest/chat/v1/model_chat_v1_service_user_user_channel.go b/rest/chat/v1/model_chat_v1_service_user_user_channel.go index c103e3f26..80792a8d9 100644 --- a/rest/chat/v1/model_chat_v1_service_user_user_channel.go +++ b/rest/chat/v1/model_chat_v1_service_user_user_channel.go @@ -11,12 +11,12 @@ package openapi // ChatV1ServiceUserUserChannel struct for ChatV1ServiceUserUserChannel type ChatV1ServiceUserUserChannel struct { - AccountSid string `json:"account_sid,omitempty"` - ChannelSid string `json:"channel_sid,omitempty"` - LastConsumedMessageIndex *int32 `json:"last_consumed_message_index,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - MemberSid string `json:"member_sid,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Status string `json:"status,omitempty"` - UnreadMessagesCount *int32 `json:"unread_messages_count,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ChannelSid string `json:"ChannelSid,omitempty"` + LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + MemberSid string `json:"MemberSid,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Status string `json:"Status,omitempty"` + UnreadMessagesCount *int32 `json:"UnreadMessagesCount,omitempty"` } diff --git a/rest/chat/v1/model_chat_v1_service_user_user_channel_read_response.go b/rest/chat/v1/model_chat_v1_service_user_user_channel_read_response.go index 690c57660..f68661026 100644 --- a/rest/chat/v1/model_chat_v1_service_user_user_channel_read_response.go +++ b/rest/chat/v1/model_chat_v1_service_user_user_channel_read_response.go @@ -11,6 +11,6 @@ package openapi // ChatV1ServiceUserUserChannelReadResponse struct for ChatV1ServiceUserUserChannelReadResponse type ChatV1ServiceUserUserChannelReadResponse struct { - Channels []ChatV1ServiceUserUserChannel `json:"channels,omitempty"` - Meta ChatV1CredentialReadResponseMeta `json:"meta,omitempty"` + Channels []ChatV1ServiceUserUserChannel `json:"Channels,omitempty"` + Meta ChatV1CredentialReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/chat/v1/model_update_service_request.go b/rest/chat/v1/model_update_service_request.go index 408d1abbd..0bd6ddfa5 100644 --- a/rest/chat/v1/model_update_service_request.go +++ b/rest/chat/v1/model_update_service_request.go @@ -22,25 +22,25 @@ type UpdateServiceRequest struct { // A descriptive string that you create to describe the resource. It can be up to 64 characters long. FriendlyName string `json:"FriendlyName,omitempty"` // The maximum number of Members that can be added to Channels within this Service. Can be up to 1,000. - LimitsChannelMembers int32 `json:"Limits.ChannelMembers,omitempty"` + LimitsChannelMembers int32 `json:"LimitsChannelMembers,omitempty"` // The maximum number of Channels Users can be a Member of within this Service. Can be up to 1,000. - LimitsUserChannels int32 `json:"Limits.UserChannels,omitempty"` + LimitsUserChannels int32 `json:"LimitsUserChannels,omitempty"` // Whether to send a notification when a member is added to a channel. Can be: `true` or `false` and the default is `false`. - NotificationsAddedToChannelEnabled bool `json:"Notifications.AddedToChannel.Enabled,omitempty"` + NotificationsAddedToChannelEnabled bool `json:"NotificationsAddedToChannelEnabled,omitempty"` // The template to use to create the notification text displayed when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. - NotificationsAddedToChannelTemplate string `json:"Notifications.AddedToChannel.Template,omitempty"` + NotificationsAddedToChannelTemplate string `json:"NotificationsAddedToChannelTemplate,omitempty"` // Whether to send a notification when a user is invited to a channel. Can be: `true` or `false` and the default is `false`. - NotificationsInvitedToChannelEnabled bool `json:"Notifications.InvitedToChannel.Enabled,omitempty"` + NotificationsInvitedToChannelEnabled bool `json:"NotificationsInvitedToChannelEnabled,omitempty"` // The template to use to create the notification text displayed when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. - NotificationsInvitedToChannelTemplate string `json:"Notifications.InvitedToChannel.Template,omitempty"` + NotificationsInvitedToChannelTemplate string `json:"NotificationsInvitedToChannelTemplate,omitempty"` // Whether to send a notification when a new message is added to a channel. Can be: `true` or `false` and the default is `false`. - NotificationsNewMessageEnabled bool `json:"Notifications.NewMessage.Enabled,omitempty"` + NotificationsNewMessageEnabled bool `json:"NotificationsNewMessageEnabled,omitempty"` // The template to use to create the notification text displayed when a new message is added to a channel and `notifications.new_message.enabled` is `true`. - NotificationsNewMessageTemplate string `json:"Notifications.NewMessage.Template,omitempty"` + NotificationsNewMessageTemplate string `json:"NotificationsNewMessageTemplate,omitempty"` // Whether to send a notification to a user when they are removed from a channel. Can be: `true` or `false` and the default is `false`. - NotificationsRemovedFromChannelEnabled bool `json:"Notifications.RemovedFromChannel.Enabled,omitempty"` + NotificationsRemovedFromChannelEnabled bool `json:"NotificationsRemovedFromChannelEnabled,omitempty"` // The template to use to create the notification text displayed to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. - NotificationsRemovedFromChannelTemplate string `json:"Notifications.RemovedFromChannel.Template,omitempty"` + NotificationsRemovedFromChannelTemplate string `json:"NotificationsRemovedFromChannelTemplate,omitempty"` // The URL for post-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more details. PostWebhookUrl string `json:"PostWebhookUrl,omitempty"` // The URL for pre-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more details. @@ -56,67 +56,67 @@ type UpdateServiceRequest struct { // The HTTP method to use for calls to the `pre_webhook_url` and `post_webhook_url` webhooks. Can be: `POST` or `GET` and the default is `POST`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. WebhookMethod string `json:"WebhookMethod,omitempty"` // The HTTP method to use when calling the `webhooks.on_channel_add.url`. - WebhooksOnChannelAddMethod string `json:"Webhooks.OnChannelAdd.Method,omitempty"` + WebhooksOnChannelAddMethod string `json:"WebhooksOnChannelAddMethod,omitempty"` // The URL of the webhook to call in response to the `on_channel_add` event using the `webhooks.on_channel_add.method` HTTP method. - WebhooksOnChannelAddUrl string `json:"Webhooks.OnChannelAdd.Url,omitempty"` + WebhooksOnChannelAddUrl string `json:"WebhooksOnChannelAddUrl,omitempty"` // The URL of the webhook to call in response to the `on_channel_added` event`. - WebhooksOnChannelAddedMethod string `json:"Webhooks.OnChannelAdded.Method,omitempty"` + WebhooksOnChannelAddedMethod string `json:"WebhooksOnChannelAddedMethod,omitempty"` // The URL of the webhook to call in response to the `on_channel_added` event using the `webhooks.on_channel_added.method` HTTP method. - WebhooksOnChannelAddedUrl string `json:"Webhooks.OnChannelAdded.Url,omitempty"` + WebhooksOnChannelAddedUrl string `json:"WebhooksOnChannelAddedUrl,omitempty"` // The HTTP method to use when calling the `webhooks.on_channel_destroy.url`. - WebhooksOnChannelDestroyMethod string `json:"Webhooks.OnChannelDestroy.Method,omitempty"` + WebhooksOnChannelDestroyMethod string `json:"WebhooksOnChannelDestroyMethod,omitempty"` // The URL of the webhook to call in response to the `on_channel_destroy` event using the `webhooks.on_channel_destroy.method` HTTP method. - WebhooksOnChannelDestroyUrl string `json:"Webhooks.OnChannelDestroy.Url,omitempty"` + WebhooksOnChannelDestroyUrl string `json:"WebhooksOnChannelDestroyUrl,omitempty"` // The HTTP method to use when calling the `webhooks.on_channel_destroyed.url`. - WebhooksOnChannelDestroyedMethod string `json:"Webhooks.OnChannelDestroyed.Method,omitempty"` + WebhooksOnChannelDestroyedMethod string `json:"WebhooksOnChannelDestroyedMethod,omitempty"` // The URL of the webhook to call in response to the `on_channel_added` event using the `webhooks.on_channel_destroyed.method` HTTP method. - WebhooksOnChannelDestroyedUrl string `json:"Webhooks.OnChannelDestroyed.Url,omitempty"` + WebhooksOnChannelDestroyedUrl string `json:"WebhooksOnChannelDestroyedUrl,omitempty"` // The HTTP method to use when calling the `webhooks.on_channel_update.url`. - WebhooksOnChannelUpdateMethod string `json:"Webhooks.OnChannelUpdate.Method,omitempty"` + WebhooksOnChannelUpdateMethod string `json:"WebhooksOnChannelUpdateMethod,omitempty"` // The URL of the webhook to call in response to the `on_channel_update` event using the `webhooks.on_channel_update.method` HTTP method. - WebhooksOnChannelUpdateUrl string `json:"Webhooks.OnChannelUpdate.Url,omitempty"` + WebhooksOnChannelUpdateUrl string `json:"WebhooksOnChannelUpdateUrl,omitempty"` // The HTTP method to use when calling the `webhooks.on_channel_updated.url`. - WebhooksOnChannelUpdatedMethod string `json:"Webhooks.OnChannelUpdated.Method,omitempty"` + WebhooksOnChannelUpdatedMethod string `json:"WebhooksOnChannelUpdatedMethod,omitempty"` // The URL of the webhook to call in response to the `on_channel_updated` event using the `webhooks.on_channel_updated.method` HTTP method. - WebhooksOnChannelUpdatedUrl string `json:"Webhooks.OnChannelUpdated.Url,omitempty"` + WebhooksOnChannelUpdatedUrl string `json:"WebhooksOnChannelUpdatedUrl,omitempty"` // The HTTP method to use when calling the `webhooks.on_member_add.url`. - WebhooksOnMemberAddMethod string `json:"Webhooks.OnMemberAdd.Method,omitempty"` + WebhooksOnMemberAddMethod string `json:"WebhooksOnMemberAddMethod,omitempty"` // The URL of the webhook to call in response to the `on_member_add` event using the `webhooks.on_member_add.method` HTTP method. - WebhooksOnMemberAddUrl string `json:"Webhooks.OnMemberAdd.Url,omitempty"` + WebhooksOnMemberAddUrl string `json:"WebhooksOnMemberAddUrl,omitempty"` // The HTTP method to use when calling the `webhooks.on_channel_updated.url`. - WebhooksOnMemberAddedMethod string `json:"Webhooks.OnMemberAdded.Method,omitempty"` + WebhooksOnMemberAddedMethod string `json:"WebhooksOnMemberAddedMethod,omitempty"` // The URL of the webhook to call in response to the `on_channel_updated` event using the `webhooks.on_channel_updated.method` HTTP method. - WebhooksOnMemberAddedUrl string `json:"Webhooks.OnMemberAdded.Url,omitempty"` + WebhooksOnMemberAddedUrl string `json:"WebhooksOnMemberAddedUrl,omitempty"` // The HTTP method to use when calling the `webhooks.on_member_remove.url`. - WebhooksOnMemberRemoveMethod string `json:"Webhooks.OnMemberRemove.Method,omitempty"` + WebhooksOnMemberRemoveMethod string `json:"WebhooksOnMemberRemoveMethod,omitempty"` // The URL of the webhook to call in response to the `on_member_remove` event using the `webhooks.on_member_remove.method` HTTP method. - WebhooksOnMemberRemoveUrl string `json:"Webhooks.OnMemberRemove.Url,omitempty"` + WebhooksOnMemberRemoveUrl string `json:"WebhooksOnMemberRemoveUrl,omitempty"` // The HTTP method to use when calling the `webhooks.on_member_removed.url`. - WebhooksOnMemberRemovedMethod string `json:"Webhooks.OnMemberRemoved.Method,omitempty"` + WebhooksOnMemberRemovedMethod string `json:"WebhooksOnMemberRemovedMethod,omitempty"` // The URL of the webhook to call in response to the `on_member_removed` event using the `webhooks.on_member_removed.method` HTTP method. - WebhooksOnMemberRemovedUrl string `json:"Webhooks.OnMemberRemoved.Url,omitempty"` + WebhooksOnMemberRemovedUrl string `json:"WebhooksOnMemberRemovedUrl,omitempty"` // The HTTP method to use when calling the `webhooks.on_message_remove.url`. - WebhooksOnMessageRemoveMethod string `json:"Webhooks.OnMessageRemove.Method,omitempty"` + WebhooksOnMessageRemoveMethod string `json:"WebhooksOnMessageRemoveMethod,omitempty"` // The URL of the webhook to call in response to the `on_message_remove` event using the `webhooks.on_message_remove.method` HTTP method. - WebhooksOnMessageRemoveUrl string `json:"Webhooks.OnMessageRemove.Url,omitempty"` + WebhooksOnMessageRemoveUrl string `json:"WebhooksOnMessageRemoveUrl,omitempty"` // The HTTP method to use when calling the `webhooks.on_message_removed.url`. - WebhooksOnMessageRemovedMethod string `json:"Webhooks.OnMessageRemoved.Method,omitempty"` + WebhooksOnMessageRemovedMethod string `json:"WebhooksOnMessageRemovedMethod,omitempty"` // The URL of the webhook to call in response to the `on_message_removed` event using the `webhooks.on_message_removed.method` HTTP method. - WebhooksOnMessageRemovedUrl string `json:"Webhooks.OnMessageRemoved.Url,omitempty"` + WebhooksOnMessageRemovedUrl string `json:"WebhooksOnMessageRemovedUrl,omitempty"` // The HTTP method to use when calling the `webhooks.on_message_send.url`. - WebhooksOnMessageSendMethod string `json:"Webhooks.OnMessageSend.Method,omitempty"` + WebhooksOnMessageSendMethod string `json:"WebhooksOnMessageSendMethod,omitempty"` // The URL of the webhook to call in response to the `on_message_send` event using the `webhooks.on_message_send.method` HTTP method. - WebhooksOnMessageSendUrl string `json:"Webhooks.OnMessageSend.Url,omitempty"` + WebhooksOnMessageSendUrl string `json:"WebhooksOnMessageSendUrl,omitempty"` // The URL of the webhook to call in response to the `on_message_sent` event`. - WebhooksOnMessageSentMethod string `json:"Webhooks.OnMessageSent.Method,omitempty"` + WebhooksOnMessageSentMethod string `json:"WebhooksOnMessageSentMethod,omitempty"` // The URL of the webhook to call in response to the `on_message_sent` event using the `webhooks.on_message_sent.method` HTTP method. - WebhooksOnMessageSentUrl string `json:"Webhooks.OnMessageSent.Url,omitempty"` + WebhooksOnMessageSentUrl string `json:"WebhooksOnMessageSentUrl,omitempty"` // The HTTP method to use when calling the `webhooks.on_message_update.url`. - WebhooksOnMessageUpdateMethod string `json:"Webhooks.OnMessageUpdate.Method,omitempty"` + WebhooksOnMessageUpdateMethod string `json:"WebhooksOnMessageUpdateMethod,omitempty"` // The URL of the webhook to call in response to the `on_message_update` event using the `webhooks.on_message_update.method` HTTP method. - WebhooksOnMessageUpdateUrl string `json:"Webhooks.OnMessageUpdate.Url,omitempty"` + WebhooksOnMessageUpdateUrl string `json:"WebhooksOnMessageUpdateUrl,omitempty"` // The HTTP method to use when calling the `webhooks.on_message_updated.url`. - WebhooksOnMessageUpdatedMethod string `json:"Webhooks.OnMessageUpdated.Method,omitempty"` + WebhooksOnMessageUpdatedMethod string `json:"WebhooksOnMessageUpdatedMethod,omitempty"` // The URL of the webhook to call in response to the `on_message_updated` event using the `webhooks.on_message_updated.method` HTTP method. - WebhooksOnMessageUpdatedUrl string `json:"Webhooks.OnMessageUpdated.Url,omitempty"` + WebhooksOnMessageUpdatedUrl string `json:"WebhooksOnMessageUpdatedUrl,omitempty"` } diff --git a/rest/chat/v2/api_default.go b/rest/chat/v2/api_default.go index a7accbaf3..36ca2ff96 100644 --- a/rest/chat/v2/api_default.go +++ b/rest/chat/v2/api_default.go @@ -15,6 +15,8 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" + "time" ) type DefaultApiService struct { @@ -30,7 +32,7 @@ func NewDefaultApiService(client *twilio.Client) *DefaultApiService { } // CreateChannelParams Optional parameters for the method 'CreateChannel' type CreateChannelParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` Attributes *string `json:"Attributes,omitempty"` CreatedBy *string `json:"CreatedBy,omitempty"` DateCreated *time.Time `json:"DateCreated,omitempty"` @@ -42,7 +44,7 @@ type CreateChannelParams struct { /* CreateChannel Method for CreateChannel - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Channel resource under. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Channel resource under. * @param optional nil or *CreateChannelOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - A valid JSON string that contains application-specific data. @@ -54,37 +56,38 @@ CreateChannel Method for CreateChannel * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the Channel resource's `sid` in the URL. This value must be 64 characters or less in length and be unique within the Service. @return ChatV2ServiceChannel */ -func (c *DefaultApiService) CreateChannel(serviceSid string, params *CreateChannelParams) (*ChatV2ServiceChannel, error) { +func (c *DefaultApiService) CreateChannel(ServiceSid string, params *CreateChannelParams) (*ChatV2ServiceChannel, error) { path := "/v2/Services/{ServiceSid}/Channels" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := make(map[string]interface{}) if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.CreatedBy != nil { - data.Set("CreatedBy", *params.CreatedBy) + data.Set("CreatedBy", *params.CreatedBy) } if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) + data.Set("DateCreated", fmt.Sprint(*params.DateCreated)) } if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) + data.Set("DateUpdated", fmt.Sprint(*params.DateUpdated)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Type != nil { - data.Set("Type", *params.Type) + data.Set("Type", *params.Type) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -103,57 +106,58 @@ func (c *DefaultApiService) CreateChannel(serviceSid string, params *CreateChann } // CreateChannelWebhookParams Optional parameters for the method 'CreateChannelWebhook' type CreateChannelWebhookParams struct { - Configuration.Filters *[]string `json:"Configuration.Filters,omitempty"` - Configuration.FlowSid *string `json:"Configuration.FlowSid,omitempty"` - Configuration.Method *string `json:"Configuration.Method,omitempty"` - Configuration.RetryCount *int32 `json:"Configuration.RetryCount,omitempty"` - Configuration.Triggers *[]string `json:"Configuration.Triggers,omitempty"` - Configuration.Url *string `json:"Configuration.Url,omitempty"` + ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` + ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` + ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` + ConfigurationRetryCount *int32 `json:"ConfigurationRetryCount,omitempty"` + ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` + ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` Type *string `json:"Type,omitempty"` } /* CreateChannelWebhook Method for CreateChannelWebhook - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel to create the Webhook resource under. - * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the new Channel Webhook resource belongs to. This value can be the Channel resource's `sid` or `unique_name`. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel to create the Webhook resource under. + * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the new Channel Webhook resource belongs to. This value can be the Channel resource's `sid` or `unique_name`. * @param optional nil or *CreateChannelWebhookOpts - Optional Parameters: - * @param "Configuration.Filters" ([]string) - The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger). - * @param "Configuration.FlowSid" (string) - The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` is `studio`. - * @param "Configuration.Method" (string) - The HTTP method used to call `configuration.url`. Can be: `GET` or `POST` and the default is `POST`. - * @param "Configuration.RetryCount" (int32) - The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0. - * @param "Configuration.Triggers" ([]string) - A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`. - * @param "Configuration.Url" (string) - The URL of the webhook to call using the `configuration.method`. + * @param "ConfigurationFilters" ([]string) - The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger). + * @param "ConfigurationFlowSid" (string) - The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` is `studio`. + * @param "ConfigurationMethod" (string) - The HTTP method used to call `configuration.url`. Can be: `GET` or `POST` and the default is `POST`. + * @param "ConfigurationRetryCount" (int32) - The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0. + * @param "ConfigurationTriggers" ([]string) - A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`. + * @param "ConfigurationUrl" (string) - The URL of the webhook to call using the `configuration.method`. * @param "Type" (string) - The type of webhook. Can be: `webhook`, `studio`, or `trigger`. @return ChatV2ServiceChannelChannelWebhook */ -func (c *DefaultApiService) CreateChannelWebhook(serviceSid string, channelSid string, params *CreateChannelWebhookParams) (*ChatV2ServiceChannelChannelWebhook, error) { +func (c *DefaultApiService) CreateChannelWebhook(ServiceSid string, ChannelSid string, params *CreateChannelWebhookParams) (*ChatV2ServiceChannelChannelWebhook, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + data := url.Values{} headers := 0 - if params != nil && params.Configuration.Filters != nil { - data.Set("Configuration.Filters", *params.Configuration.Filters) + if params != nil && params.ConfigurationFilters != nil { + data.Set("ConfigurationFilters", strings.Join(*params.ConfigurationFilters, ",")) } - if params != nil && params.Configuration.FlowSid != nil { - data.Set("Configuration.FlowSid", *params.Configuration.FlowSid) + if params != nil && params.ConfigurationFlowSid != nil { + data.Set("ConfigurationFlowSid", *params.ConfigurationFlowSid) } - if params != nil && params.Configuration.Method != nil { - data.Set("Configuration.Method", *params.Configuration.Method) + if params != nil && params.ConfigurationMethod != nil { + data.Set("ConfigurationMethod", *params.ConfigurationMethod) } - if params != nil && params.Configuration.RetryCount != nil { - data.Set("Configuration.RetryCount", string(*params.Configuration.RetryCount)) + if params != nil && params.ConfigurationRetryCount != nil { + data.Set("ConfigurationRetryCount", fmt.Sprint(*params.ConfigurationRetryCount)) } - if params != nil && params.Configuration.Triggers != nil { - data.Set("Configuration.Triggers", *params.Configuration.Triggers) + if params != nil && params.ConfigurationTriggers != nil { + data.Set("ConfigurationTriggers", strings.Join(*params.ConfigurationTriggers, ",")) } - if params != nil && params.Configuration.Url != nil { - data.Set("Configuration.Url", *params.Configuration.Url) + if params != nil && params.ConfigurationUrl != nil { + data.Set("ConfigurationUrl", *params.ConfigurationUrl) } if params != nil && params.Type != nil { - data.Set("Type", *params.Type) + data.Set("Type", *params.Type) } @@ -197,29 +201,30 @@ CreateCredential Method for CreateCredential func (c *DefaultApiService) CreateCredential(params *CreateCredentialParams) (*ChatV2Credential, error) { path := "/v2/Credentials" + data := url.Values{} headers := 0 if params != nil && params.ApiKey != nil { - data.Set("ApiKey", *params.ApiKey) + data.Set("ApiKey", *params.ApiKey) } if params != nil && params.Certificate != nil { - data.Set("Certificate", *params.Certificate) + data.Set("Certificate", *params.Certificate) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.PrivateKey != nil { - data.Set("PrivateKey", *params.PrivateKey) + data.Set("PrivateKey", *params.PrivateKey) } if params != nil && params.Sandbox != nil { - data.Set("Sandbox", string(*params.Sandbox)) + data.Set("Sandbox", fmt.Sprint(*params.Sandbox)) } if params != nil && params.Secret != nil { - data.Set("Secret", *params.Secret) + data.Set("Secret", *params.Secret) } if params != nil && params.Type != nil { - data.Set("Type", *params.Type) + data.Set("Type", *params.Type) } @@ -245,26 +250,27 @@ type CreateInviteParams struct { /* CreateInvite Method for CreateInvite - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Invite resource under. - * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the new Invite resource belongs to. This value can be the Channel resource's `sid` or `unique_name`. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Invite resource under. + * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the new Invite resource belongs to. This value can be the Channel resource's `sid` or `unique_name`. * @param optional nil or *CreateInviteOpts - Optional Parameters: * @param "Identity" (string) - The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/chat/rest/service-resource). See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more info. * @param "RoleSid" (string) - The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) assigned to the new member. @return ChatV2ServiceChannelInvite */ -func (c *DefaultApiService) CreateInvite(serviceSid string, channelSid string, params *CreateInviteParams) (*ChatV2ServiceChannelInvite, error) { +func (c *DefaultApiService) CreateInvite(ServiceSid string, ChannelSid string, params *CreateInviteParams) (*ChatV2ServiceChannelInvite, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) + data.Set("Identity", *params.Identity) } if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) + data.Set("RoleSid", *params.RoleSid) } @@ -284,7 +290,7 @@ func (c *DefaultApiService) CreateInvite(serviceSid string, channelSid string, p } // CreateMemberParams Optional parameters for the method 'CreateMember' type CreateMemberParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` Attributes *string `json:"Attributes,omitempty"` DateCreated *time.Time `json:"DateCreated,omitempty"` DateUpdated *time.Time `json:"DateUpdated,omitempty"` @@ -296,8 +302,8 @@ type CreateMemberParams struct { /* CreateMember Method for CreateMember - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Member resource under. - * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the new Member resource belongs to. This value can be the Channel resource's `sid` or `unique_name`. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Member resource under. + * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the new Member resource belongs to. This value can be the Channel resource's `sid` or `unique_name`. * @param optional nil or *CreateMemberOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - A valid JSON string that contains application-specific data. @@ -309,38 +315,39 @@ CreateMember Method for CreateMember * @param "RoleSid" (string) - The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/rest/service-resource). @return ChatV2ServiceChannelMember */ -func (c *DefaultApiService) CreateMember(serviceSid string, channelSid string, params *CreateMemberParams) (*ChatV2ServiceChannelMember, error) { +func (c *DefaultApiService) CreateMember(ServiceSid string, ChannelSid string, params *CreateMemberParams) (*ChatV2ServiceChannelMember, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + data := url.Values{} headers := make(map[string]interface{}) if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) + data.Set("DateCreated", fmt.Sprint(*params.DateCreated)) } if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) + data.Set("DateUpdated", fmt.Sprint(*params.DateUpdated)) } if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) + data.Set("Identity", *params.Identity) } if params != nil && params.LastConsumedMessageIndex != nil { - data.Set("LastConsumedMessageIndex", string(*params.LastConsumedMessageIndex)) + data.Set("LastConsumedMessageIndex", fmt.Sprint(*params.LastConsumedMessageIndex)) } if params != nil && params.LastConsumptionTimestamp != nil { - data.Set("LastConsumptionTimestamp", string(*params.LastConsumptionTimestamp)) + data.Set("LastConsumptionTimestamp", fmt.Sprint(*params.LastConsumptionTimestamp)) } if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) + data.Set("RoleSid", *params.RoleSid) } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -359,7 +366,7 @@ func (c *DefaultApiService) CreateMember(serviceSid string, channelSid string, p } // CreateMessageParams Optional parameters for the method 'CreateMessage' type CreateMessageParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` Attributes *string `json:"Attributes,omitempty"` Body *string `json:"Body,omitempty"` DateCreated *time.Time `json:"DateCreated,omitempty"` @@ -371,8 +378,8 @@ type CreateMessageParams struct { /* CreateMessage Method for CreateMessage - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Message resource under. - * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the new Message resource belongs to. This value can be the Channel resource's `sid` or `unique_name`. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Message resource under. + * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the new Message resource belongs to. This value can be the Channel resource's `sid` or `unique_name`. * @param optional nil or *CreateMessageOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - A valid JSON string that contains application-specific data. @@ -384,38 +391,39 @@ CreateMessage Method for CreateMessage * @param "MediaSid" (string) - The SID of the [Media](https://www.twilio.com/docs/chat/rest/media) to attach to the new Message. @return ChatV2ServiceChannelMessage */ -func (c *DefaultApiService) CreateMessage(serviceSid string, channelSid string, params *CreateMessageParams) (*ChatV2ServiceChannelMessage, error) { +func (c *DefaultApiService) CreateMessage(ServiceSid string, ChannelSid string, params *CreateMessageParams) (*ChatV2ServiceChannelMessage, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + data := url.Values{} headers := make(map[string]interface{}) if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.Body != nil { - data.Set("Body", *params.Body) + data.Set("Body", *params.Body) } if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) + data.Set("DateCreated", fmt.Sprint(*params.DateCreated)) } if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) + data.Set("DateUpdated", fmt.Sprint(*params.DateUpdated)) } if params != nil && params.From != nil { - data.Set("From", *params.From) + data.Set("From", *params.From) } if params != nil && params.LastUpdatedBy != nil { - data.Set("LastUpdatedBy", *params.LastUpdatedBy) + data.Set("LastUpdatedBy", *params.LastUpdatedBy) } if params != nil && params.MediaSid != nil { - data.Set("MediaSid", *params.MediaSid) + data.Set("MediaSid", *params.MediaSid) } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -441,28 +449,29 @@ type CreateRoleParams struct { /* CreateRole Method for CreateRole - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Role resource under. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Role resource under. * @param optional nil or *CreateRoleOpts - Optional Parameters: * @param "FriendlyName" (string) - A descriptive string that you create to describe the new resource. It can be up to 64 characters long. * @param "Permission" ([]string) - A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type`. * @param "Type" (string) - The type of role. Can be: `channel` for [Channel](https://www.twilio.com/docs/chat/channels) roles or `deployment` for [Service](https://www.twilio.com/docs/chat/rest/service-resource) roles. @return ChatV2ServiceRole */ -func (c *DefaultApiService) CreateRole(serviceSid string, params *CreateRoleParams) (*ChatV2ServiceRole, error) { +func (c *DefaultApiService) CreateRole(ServiceSid string, params *CreateRoleParams) (*ChatV2ServiceRole, error) { path := "/v2/Services/{ServiceSid}/Roles" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Permission != nil { - data.Set("Permission", *params.Permission) + data.Set("Permission", strings.Join(*params.Permission, ",")) } if params != nil && params.Type != nil { - data.Set("Type", *params.Type) + data.Set("Type", *params.Type) } @@ -494,11 +503,12 @@ CreateService Method for CreateService func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*ChatV2Service, error) { path := "/v2/Services" + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -518,7 +528,7 @@ func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*ChatV2S } // CreateUserParams Optional parameters for the method 'CreateUser' type CreateUserParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` Attributes *string `json:"Attributes,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` Identity *string `json:"Identity,omitempty"` @@ -527,7 +537,7 @@ type CreateUserParams struct { /* CreateUser Method for CreateUser - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the User resource under. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the User resource under. * @param optional nil or *CreateUserOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - A valid JSON string that contains application-specific data. @@ -536,28 +546,29 @@ CreateUser Method for CreateUser * @param "RoleSid" (string) - The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the new User. @return ChatV2ServiceUser */ -func (c *DefaultApiService) CreateUser(serviceSid string, params *CreateUserParams) (*ChatV2ServiceUser, error) { +func (c *DefaultApiService) CreateUser(ServiceSid string, params *CreateUserParams) (*ChatV2ServiceUser, error) { path := "/v2/Services/{ServiceSid}/Users" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := make(map[string]interface{}) if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) + data.Set("Identity", *params.Identity) } if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) + data.Set("RoleSid", *params.RoleSid) } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -577,15 +588,16 @@ func (c *DefaultApiService) CreateUser(serviceSid string, params *CreateUserPara /* DeleteBinding Method for DeleteBinding - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the Binding resource from. - * @param sid The SID of the Binding resource to delete. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the Binding resource from. + * @param Sid The SID of the Binding resource to delete. */ -func (c *DefaultApiService) DeleteBinding(serviceSid string, sid string) (error) { +func (c *DefaultApiService) DeleteBinding(ServiceSid string, Sid string) (error) { path := "/v2/Services/{ServiceSid}/Bindings/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -601,27 +613,28 @@ func (c *DefaultApiService) DeleteBinding(serviceSid string, sid string) (error) } // DeleteChannelParams Optional parameters for the method 'DeleteChannel' type DeleteChannelParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* DeleteChannel Method for DeleteChannel - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the resource from. - * @param sid The SID of the Channel resource to delete. This value can be either the `sid` or the `unique_name` of the Channel resource to delete. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the resource from. + * @param Sid The SID of the Channel resource to delete. This value can be either the `sid` or the `unique_name` of the Channel resource to delete. * @param optional nil or *DeleteChannelOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ -func (c *DefaultApiService) DeleteChannel(serviceSid string, sid string, params *DeleteChannelParams) (error) { +func (c *DefaultApiService) DeleteChannel(ServiceSid string, Sid string, params *DeleteChannelParams) (error) { path := "/v2/Services/{ServiceSid}/Channels/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := make(map[string]interface{}) - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Delete(c.baseURL+path, data, headers) @@ -636,17 +649,18 @@ func (c *DefaultApiService) DeleteChannel(serviceSid string, sid string, params /* DeleteChannelWebhook Method for DeleteChannelWebhook - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel to delete the Webhook resource from. - * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook resource to delete belongs to. This value can be the Channel resource's `sid` or `unique_name`. - * @param sid The SID of the Channel Webhook resource to delete. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel to delete the Webhook resource from. + * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook resource to delete belongs to. This value can be the Channel resource's `sid` or `unique_name`. + * @param Sid The SID of the Channel Webhook resource to delete. */ -func (c *DefaultApiService) DeleteChannelWebhook(serviceSid string, channelSid string, sid string) (error) { +func (c *DefaultApiService) DeleteChannelWebhook(ServiceSid string, ChannelSid string, Sid string) (error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -663,13 +677,14 @@ func (c *DefaultApiService) DeleteChannelWebhook(serviceSid string, channelSid s /* DeleteCredential Method for DeleteCredential - * @param sid The SID of the Credential resource to delete. + * @param Sid The SID of the Credential resource to delete. */ -func (c *DefaultApiService) DeleteCredential(sid string) (error) { +func (c *DefaultApiService) DeleteCredential(Sid string) (error) { path := "/v2/Credentials/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -686,17 +701,18 @@ func (c *DefaultApiService) DeleteCredential(sid string) (error) { /* DeleteInvite Method for DeleteInvite - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the Invite resource from. - * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Invite resource to delete belongs to. This value can be the Channel resource's `sid` or `unique_name`. - * @param sid The SID of the Invite resource to delete. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the Invite resource from. + * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Invite resource to delete belongs to. This value can be the Channel resource's `sid` or `unique_name`. + * @param Sid The SID of the Invite resource to delete. */ -func (c *DefaultApiService) DeleteInvite(serviceSid string, channelSid string, sid string) (error) { +func (c *DefaultApiService) DeleteInvite(ServiceSid string, ChannelSid string, Sid string) (error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -712,29 +728,30 @@ func (c *DefaultApiService) DeleteInvite(serviceSid string, channelSid string, s } // DeleteMemberParams Optional parameters for the method 'DeleteMember' type DeleteMemberParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* DeleteMember Method for DeleteMember - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the Member resource from. - * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Member resource to delete belongs to. This value can be the Channel resource's `sid` or `unique_name`. - * @param sid The SID of the Member resource to delete. This value can be either the Member's `sid` or its `identity` value. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the Member resource from. + * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Member resource to delete belongs to. This value can be the Channel resource's `sid` or `unique_name`. + * @param Sid The SID of the Member resource to delete. This value can be either the Member's `sid` or its `identity` value. * @param optional nil or *DeleteMemberOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ -func (c *DefaultApiService) DeleteMember(serviceSid string, channelSid string, sid string, params *DeleteMemberParams) (error) { +func (c *DefaultApiService) DeleteMember(ServiceSid string, ChannelSid string, Sid string, params *DeleteMemberParams) (error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := make(map[string]interface{}) - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Delete(c.baseURL+path, data, headers) @@ -748,29 +765,30 @@ func (c *DefaultApiService) DeleteMember(serviceSid string, channelSid string, s } // DeleteMessageParams Optional parameters for the method 'DeleteMessage' type DeleteMessageParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* DeleteMessage Method for DeleteMessage - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the Message resource from. - * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Message resource to delete belongs to. This value can be the Channel resource's `sid` or `unique_name`. - * @param sid The SID of the Message resource to delete. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the Message resource from. + * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Message resource to delete belongs to. This value can be the Channel resource's `sid` or `unique_name`. + * @param Sid The SID of the Message resource to delete. * @param optional nil or *DeleteMessageOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ -func (c *DefaultApiService) DeleteMessage(serviceSid string, channelSid string, sid string, params *DeleteMessageParams) (error) { +func (c *DefaultApiService) DeleteMessage(ServiceSid string, ChannelSid string, Sid string, params *DeleteMessageParams) (error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := make(map[string]interface{}) - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Delete(c.baseURL+path, data, headers) @@ -785,15 +803,16 @@ func (c *DefaultApiService) DeleteMessage(serviceSid string, channelSid string, /* DeleteRole Method for DeleteRole - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the Role resource from. - * @param sid The SID of the Role resource to delete. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the Role resource from. + * @param Sid The SID of the Role resource to delete. */ -func (c *DefaultApiService) DeleteRole(serviceSid string, sid string) (error) { +func (c *DefaultApiService) DeleteRole(ServiceSid string, Sid string) (error) { path := "/v2/Services/{ServiceSid}/Roles/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -810,13 +829,14 @@ func (c *DefaultApiService) DeleteRole(serviceSid string, sid string) (error) { /* DeleteService Method for DeleteService - * @param sid The SID of the Service resource to delete. + * @param Sid The SID of the Service resource to delete. */ -func (c *DefaultApiService) DeleteService(sid string) (error) { +func (c *DefaultApiService) DeleteService(Sid string) (error) { path := "/v2/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -833,15 +853,16 @@ func (c *DefaultApiService) DeleteService(sid string) (error) { /* DeleteUser Method for DeleteUser - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the User resource from. - * @param sid The SID of the User resource to delete. This value can be either the `sid` or the `identity` of the User resource to delete. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the User resource from. + * @param Sid The SID of the User resource to delete. This value can be either the `sid` or the `identity` of the User resource to delete. */ -func (c *DefaultApiService) DeleteUser(serviceSid string, sid string) (error) { +func (c *DefaultApiService) DeleteUser(ServiceSid string, Sid string) (error) { path := "/v2/Services/{ServiceSid}/Users/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -858,17 +879,18 @@ func (c *DefaultApiService) DeleteUser(serviceSid string, sid string) (error) { /* DeleteUserBinding Method for DeleteUserBinding - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the User Binding resource from. - * @param userSid The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) with the User Binding resources to delete. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. - * @param sid The SID of the User Binding resource to delete. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the User Binding resource from. + * @param UserSid The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) with the User Binding resources to delete. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. + * @param Sid The SID of the User Binding resource to delete. */ -func (c *DefaultApiService) DeleteUserBinding(serviceSid string, userSid string, sid string) (error) { +func (c *DefaultApiService) DeleteUserBinding(ServiceSid string, UserSid string, Sid string) (error) { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", UserSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -886,17 +908,18 @@ func (c *DefaultApiService) DeleteUserBinding(serviceSid string, userSid string, /* DeleteUserChannel Method for DeleteUserChannel Removes User from selected Channel. - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. - * @param userSid The SID of the [User](https://www.twilio.com/docs/api/chat/rest/users) to read the User Channel resources from. - * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the resource belongs to. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. + * @param UserSid The SID of the [User](https://www.twilio.com/docs/api/chat/rest/users) to read the User Channel resources from. + * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the resource belongs to. */ -func (c *DefaultApiService) DeleteUserChannel(serviceSid string, userSid string, channelSid string) (error) { +func (c *DefaultApiService) DeleteUserChannel(ServiceSid string, UserSid string, ChannelSid string) (error) { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", UserSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -913,16 +936,17 @@ func (c *DefaultApiService) DeleteUserChannel(serviceSid string, userSid string, /* FetchBinding Method for FetchBinding - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Binding resource from. - * @param sid The SID of the Binding resource to fetch. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Binding resource from. + * @param Sid The SID of the Binding resource to fetch. @return ChatV2ServiceBinding */ -func (c *DefaultApiService) FetchBinding(serviceSid string, sid string) (*ChatV2ServiceBinding, error) { +func (c *DefaultApiService) FetchBinding(ServiceSid string, Sid string) (*ChatV2ServiceBinding, error) { path := "/v2/Services/{ServiceSid}/Bindings/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -944,16 +968,17 @@ func (c *DefaultApiService) FetchBinding(serviceSid string, sid string) (*ChatV2 /* FetchChannel Method for FetchChannel - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Channel resource from. - * @param sid The SID of the Channel resource to fetch. This value can be either the `sid` or the `unique_name` of the Channel resource to fetch. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Channel resource from. + * @param Sid The SID of the Channel resource to fetch. This value can be either the `sid` or the `unique_name` of the Channel resource to fetch. @return ChatV2ServiceChannel */ -func (c *DefaultApiService) FetchChannel(serviceSid string, sid string) (*ChatV2ServiceChannel, error) { +func (c *DefaultApiService) FetchChannel(ServiceSid string, Sid string) (*ChatV2ServiceChannel, error) { path := "/v2/Services/{ServiceSid}/Channels/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -975,18 +1000,19 @@ func (c *DefaultApiService) FetchChannel(serviceSid string, sid string) (*ChatV2 /* FetchChannelWebhook Method for FetchChannelWebhook - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel to fetch the Webhook resource from. - * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook resource to fetch belongs to. This value can be the Channel resource's `sid` or `unique_name`. - * @param sid The SID of the Channel Webhook resource to fetch. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel to fetch the Webhook resource from. + * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook resource to fetch belongs to. This value can be the Channel resource's `sid` or `unique_name`. + * @param Sid The SID of the Channel Webhook resource to fetch. @return ChatV2ServiceChannelChannelWebhook */ -func (c *DefaultApiService) FetchChannelWebhook(serviceSid string, channelSid string, sid string) (*ChatV2ServiceChannelChannelWebhook, error) { +func (c *DefaultApiService) FetchChannelWebhook(ServiceSid string, ChannelSid string, Sid string) (*ChatV2ServiceChannelChannelWebhook, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1008,14 +1034,15 @@ func (c *DefaultApiService) FetchChannelWebhook(serviceSid string, channelSid st /* FetchCredential Method for FetchCredential - * @param sid The SID of the Credential resource to fetch. + * @param Sid The SID of the Credential resource to fetch. @return ChatV2Credential */ -func (c *DefaultApiService) FetchCredential(sid string) (*ChatV2Credential, error) { +func (c *DefaultApiService) FetchCredential(Sid string) (*ChatV2Credential, error) { path := "/v2/Credentials/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1037,18 +1064,19 @@ func (c *DefaultApiService) FetchCredential(sid string) (*ChatV2Credential, erro /* FetchInvite Method for FetchInvite - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Invite resource from. - * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Invite resource to fetch belongs to. This value can be the Channel resource's `sid` or `unique_name`. - * @param sid The SID of the Invite resource to fetch. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Invite resource from. + * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Invite resource to fetch belongs to. This value can be the Channel resource's `sid` or `unique_name`. + * @param Sid The SID of the Invite resource to fetch. @return ChatV2ServiceChannelInvite */ -func (c *DefaultApiService) FetchInvite(serviceSid string, channelSid string, sid string) (*ChatV2ServiceChannelInvite, error) { +func (c *DefaultApiService) FetchInvite(ServiceSid string, ChannelSid string, Sid string) (*ChatV2ServiceChannelInvite, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1070,18 +1098,19 @@ func (c *DefaultApiService) FetchInvite(serviceSid string, channelSid string, si /* FetchMember Method for FetchMember - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Member resource from. - * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Member resource to fetch belongs to. This value can be the Channel resource's `sid` or `unique_name`. - * @param sid The SID of the Member resource to fetch. This value can be either the Member's `sid` or its `identity` value. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Member resource from. + * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Member resource to fetch belongs to. This value can be the Channel resource's `sid` or `unique_name`. + * @param Sid The SID of the Member resource to fetch. This value can be either the Member's `sid` or its `identity` value. @return ChatV2ServiceChannelMember */ -func (c *DefaultApiService) FetchMember(serviceSid string, channelSid string, sid string) (*ChatV2ServiceChannelMember, error) { +func (c *DefaultApiService) FetchMember(ServiceSid string, ChannelSid string, Sid string) (*ChatV2ServiceChannelMember, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1103,18 +1132,19 @@ func (c *DefaultApiService) FetchMember(serviceSid string, channelSid string, si /* FetchMessage Method for FetchMessage - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Message resource from. - * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Message resource to fetch belongs to. This value can be the Channel resource's `sid` or `unique_name`. - * @param sid The SID of the Message resource to fetch. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Message resource from. + * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Message resource to fetch belongs to. This value can be the Channel resource's `sid` or `unique_name`. + * @param Sid The SID of the Message resource to fetch. @return ChatV2ServiceChannelMessage */ -func (c *DefaultApiService) FetchMessage(serviceSid string, channelSid string, sid string) (*ChatV2ServiceChannelMessage, error) { +func (c *DefaultApiService) FetchMessage(ServiceSid string, ChannelSid string, Sid string) (*ChatV2ServiceChannelMessage, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1136,16 +1166,17 @@ func (c *DefaultApiService) FetchMessage(serviceSid string, channelSid string, s /* FetchRole Method for FetchRole - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Role resource from. - * @param sid The SID of the Role resource to fetch. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Role resource from. + * @param Sid The SID of the Role resource to fetch. @return ChatV2ServiceRole */ -func (c *DefaultApiService) FetchRole(serviceSid string, sid string) (*ChatV2ServiceRole, error) { +func (c *DefaultApiService) FetchRole(ServiceSid string, Sid string) (*ChatV2ServiceRole, error) { path := "/v2/Services/{ServiceSid}/Roles/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1167,14 +1198,15 @@ func (c *DefaultApiService) FetchRole(serviceSid string, sid string) (*ChatV2Ser /* FetchService Method for FetchService - * @param sid The SID of the Service resource to fetch. + * @param Sid The SID of the Service resource to fetch. @return ChatV2Service */ -func (c *DefaultApiService) FetchService(sid string) (*ChatV2Service, error) { +func (c *DefaultApiService) FetchService(Sid string) (*ChatV2Service, error) { path := "/v2/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1196,16 +1228,17 @@ func (c *DefaultApiService) FetchService(sid string) (*ChatV2Service, error) { /* FetchUser Method for FetchUser - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the User resource from. - * @param sid The SID of the User resource to fetch. This value can be either the `sid` or the `identity` of the User resource to fetch. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the User resource from. + * @param Sid The SID of the User resource to fetch. This value can be either the `sid` or the `identity` of the User resource to fetch. @return ChatV2ServiceUser */ -func (c *DefaultApiService) FetchUser(serviceSid string, sid string) (*ChatV2ServiceUser, error) { +func (c *DefaultApiService) FetchUser(ServiceSid string, Sid string) (*ChatV2ServiceUser, error) { path := "/v2/Services/{ServiceSid}/Users/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1227,18 +1260,19 @@ func (c *DefaultApiService) FetchUser(serviceSid string, sid string) (*ChatV2Ser /* FetchUserBinding Method for FetchUserBinding - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the User Binding resource from. - * @param userSid The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) with the User Binding resource to fetch. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. - * @param sid The SID of the User Binding resource to fetch. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the User Binding resource from. + * @param UserSid The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) with the User Binding resource to fetch. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. + * @param Sid The SID of the User Binding resource to fetch. @return ChatV2ServiceUserUserBinding */ -func (c *DefaultApiService) FetchUserBinding(serviceSid string, userSid string, sid string) (*ChatV2ServiceUserUserBinding, error) { +func (c *DefaultApiService) FetchUserBinding(ServiceSid string, UserSid string, Sid string) (*ChatV2ServiceUserUserBinding, error) { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", UserSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1260,18 +1294,19 @@ func (c *DefaultApiService) FetchUserBinding(serviceSid string, userSid string, /* FetchUserChannel Method for FetchUserChannel - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the User Channel resource from. - * @param userSid The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) to fetch the User Channel resource from. This value can be either the `sid` or the `identity` of the User resource. - * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) that has the User Channel to fetch. This value can be either the `sid` or the `unique_name` of the Channel to fetch. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the User Channel resource from. + * @param UserSid The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) to fetch the User Channel resource from. This value can be either the `sid` or the `identity` of the User resource. + * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) that has the User Channel to fetch. This value can be either the `sid` or the `unique_name` of the Channel to fetch. @return ChatV2ServiceUserUserChannel */ -func (c *DefaultApiService) FetchUserChannel(serviceSid string, userSid string, channelSid string) (*ChatV2ServiceUserUserChannel, error) { +func (c *DefaultApiService) FetchUserChannel(ServiceSid string, UserSid string, ChannelSid string) (*ChatV2ServiceUserUserChannel, error) { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", UserSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1299,28 +1334,29 @@ type ListBindingParams struct { /* ListBinding Method for ListBinding - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Binding resources from. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Binding resources from. * @param optional nil or *ListBindingOpts - Optional Parameters: * @param "BindingType" ([]string) - The push technology used by the Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. * @param "Identity" ([]string) - The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ChatV2ServiceBindingReadResponse */ -func (c *DefaultApiService) ListBinding(serviceSid string, params *ListBindingParams) (*ChatV2ServiceBindingReadResponse, error) { +func (c *DefaultApiService) ListBinding(ServiceSid string, params *ListBindingParams) (*ChatV2ServiceBindingReadResponse, error) { path := "/v2/Services/{ServiceSid}/Bindings" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.BindingType != nil { - data.Set("BindingType", string(*params.BindingType)) + data.Set("BindingType", strings.Join(*params.BindingType, ",")) } if params != nil && params.Identity != nil { - data.Set("Identity", string(*params.Identity)) + data.Set("Identity", strings.Join(*params.Identity, ",")) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1346,24 +1382,25 @@ type ListChannelParams struct { /* ListChannel Method for ListChannel - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Channel resources from. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Channel resources from. * @param optional nil or *ListChannelOpts - Optional Parameters: * @param "Type" ([]string) - The visibility of the Channels to read. Can be: `public` or `private` and defaults to `public`. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ChatV2ServiceChannelReadResponse */ -func (c *DefaultApiService) ListChannel(serviceSid string, params *ListChannelParams) (*ChatV2ServiceChannelReadResponse, error) { +func (c *DefaultApiService) ListChannel(ServiceSid string, params *ListChannelParams) (*ChatV2ServiceChannelReadResponse, error) { path := "/v2/Services/{ServiceSid}/Channels" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Type != nil { - data.Set("Type", string(*params.Type)) + data.Set("Type", strings.Join(*params.Type, ",")) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1388,22 +1425,23 @@ type ListChannelWebhookParams struct { /* ListChannelWebhook Method for ListChannelWebhook - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel to read the resources from. - * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook resources to read belong to. This value can be the Channel resource's `sid` or `unique_name`. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel to read the resources from. + * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook resources to read belong to. This value can be the Channel resource's `sid` or `unique_name`. * @param optional nil or *ListChannelWebhookOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ChatV2ServiceChannelChannelWebhookReadResponse */ -func (c *DefaultApiService) ListChannelWebhook(serviceSid string, channelSid string, params *ListChannelWebhookParams) (*ChatV2ServiceChannelChannelWebhookReadResponse, error) { +func (c *DefaultApiService) ListChannelWebhook(ServiceSid string, ChannelSid string, params *ListChannelWebhookParams) (*ChatV2ServiceChannelChannelWebhookReadResponse, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1435,11 +1473,12 @@ ListCredential Method for ListCredential func (c *DefaultApiService) ListCredential(params *ListCredentialParams) (*ChatV2CredentialReadResponse, error) { path := "/v2/Credentials" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1465,26 +1504,27 @@ type ListInviteParams struct { /* ListInvite Method for ListInvite - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Invite resources from. - * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Invite resources to read belong to. This value can be the Channel resource's `sid` or `unique_name`. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Invite resources from. + * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Invite resources to read belong to. This value can be the Channel resource's `sid` or `unique_name`. * @param optional nil or *ListInviteOpts - Optional Parameters: * @param "Identity" ([]string) - The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ChatV2ServiceChannelInviteReadResponse */ -func (c *DefaultApiService) ListInvite(serviceSid string, channelSid string, params *ListInviteParams) (*ChatV2ServiceChannelInviteReadResponse, error) { +func (c *DefaultApiService) ListInvite(ServiceSid string, ChannelSid string, params *ListInviteParams) (*ChatV2ServiceChannelInviteReadResponse, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Identity != nil { - data.Set("Identity", string(*params.Identity)) + data.Set("Identity", strings.Join(*params.Identity, ",")) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1510,26 +1550,27 @@ type ListMemberParams struct { /* ListMember Method for ListMember - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Member resources from. - * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Member resources to read belong to. This value can be the Channel resource's `sid` or `unique_name`. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Member resources from. + * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Member resources to read belong to. This value can be the Channel resource's `sid` or `unique_name`. * @param optional nil or *ListMemberOpts - Optional Parameters: * @param "Identity" ([]string) - The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the Member resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ChatV2ServiceChannelMemberReadResponse */ -func (c *DefaultApiService) ListMember(serviceSid string, channelSid string, params *ListMemberParams) (*ChatV2ServiceChannelMemberReadResponse, error) { +func (c *DefaultApiService) ListMember(ServiceSid string, ChannelSid string, params *ListMemberParams) (*ChatV2ServiceChannelMemberReadResponse, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Identity != nil { - data.Set("Identity", string(*params.Identity)) + data.Set("Identity", strings.Join(*params.Identity, ",")) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1555,26 +1596,27 @@ type ListMessageParams struct { /* ListMessage Method for ListMessage - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Message resources from. - * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Message resource to read belongs to. This value can be the Channel resource's `sid` or `unique_name`. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Message resources from. + * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Message resource to read belongs to. This value can be the Channel resource's `sid` or `unique_name`. * @param optional nil or *ListMessageOpts - Optional Parameters: * @param "Order" (string) - The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending) with `asc` as the default. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ChatV2ServiceChannelMessageReadResponse */ -func (c *DefaultApiService) ListMessage(serviceSid string, channelSid string, params *ListMessageParams) (*ChatV2ServiceChannelMessageReadResponse, error) { +func (c *DefaultApiService) ListMessage(ServiceSid string, ChannelSid string, params *ListMessageParams) (*ChatV2ServiceChannelMessageReadResponse, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Order != nil { - data.Set("Order", *params.Order) + data.Set("Order", *params.Order) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1599,20 +1641,21 @@ type ListRoleParams struct { /* ListRole Method for ListRole - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Role resources from. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Role resources from. * @param optional nil or *ListRoleOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ChatV2ServiceRoleReadResponse */ -func (c *DefaultApiService) ListRole(serviceSid string, params *ListRoleParams) (*ChatV2ServiceRoleReadResponse, error) { +func (c *DefaultApiService) ListRole(ServiceSid string, params *ListRoleParams) (*ChatV2ServiceRoleReadResponse, error) { path := "/v2/Services/{ServiceSid}/Roles" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1644,11 +1687,12 @@ ListService Method for ListService func (c *DefaultApiService) ListService(params *ListServiceParams) (*ChatV2ServiceReadResponse, error) { path := "/v2/Services" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1673,20 +1717,21 @@ type ListUserParams struct { /* ListUser Method for ListUser - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the User resources from. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the User resources from. * @param optional nil or *ListUserOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ChatV2ServiceUserReadResponse */ -func (c *DefaultApiService) ListUser(serviceSid string, params *ListUserParams) (*ChatV2ServiceUserReadResponse, error) { +func (c *DefaultApiService) ListUser(ServiceSid string, params *ListUserParams) (*ChatV2ServiceUserReadResponse, error) { path := "/v2/Services/{ServiceSid}/Users" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1712,26 +1757,27 @@ type ListUserBindingParams struct { /* ListUserBinding Method for ListUserBinding - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the User Binding resources from. - * @param userSid The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) with the User Binding resources to read. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the User Binding resources from. + * @param UserSid The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) with the User Binding resources to read. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. * @param optional nil or *ListUserBindingOpts - Optional Parameters: * @param "BindingType" ([]string) - The push technology used by the User Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ChatV2ServiceUserUserBindingReadResponse */ -func (c *DefaultApiService) ListUserBinding(serviceSid string, userSid string, params *ListUserBindingParams) (*ChatV2ServiceUserUserBindingReadResponse, error) { +func (c *DefaultApiService) ListUserBinding(ServiceSid string, UserSid string, params *ListUserBindingParams) (*ChatV2ServiceUserUserBindingReadResponse, error) { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", UserSid, -1) + data := url.Values{} headers := 0 if params != nil && params.BindingType != nil { - data.Set("BindingType", string(*params.BindingType)) + data.Set("BindingType", strings.Join(*params.BindingType, ",")) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1757,22 +1803,23 @@ type ListUserChannelParams struct { /* ListUserChannel Method for ListUserChannel List all Channels for a given User. - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the User Channel resources from. - * @param userSid The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) to read the User Channel resources from. This value can be either the `sid` or the `identity` of the User resource. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the User Channel resources from. + * @param UserSid The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) to read the User Channel resources from. This value can be either the `sid` or the `identity` of the User resource. * @param optional nil or *ListUserChannelOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ChatV2ServiceUserUserChannelReadResponse */ -func (c *DefaultApiService) ListUserChannel(serviceSid string, userSid string, params *ListUserChannelParams) (*ChatV2ServiceUserUserChannelReadResponse, error) { +func (c *DefaultApiService) ListUserChannel(ServiceSid string, UserSid string, params *ListUserChannelParams) (*ChatV2ServiceUserUserChannelReadResponse, error) { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", UserSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1792,7 +1839,7 @@ func (c *DefaultApiService) ListUserChannel(serviceSid string, userSid string, p } // UpdateChannelParams Optional parameters for the method 'UpdateChannel' type UpdateChannelParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` Attributes *string `json:"Attributes,omitempty"` CreatedBy *string `json:"CreatedBy,omitempty"` DateCreated *time.Time `json:"DateCreated,omitempty"` @@ -1803,8 +1850,8 @@ type UpdateChannelParams struct { /* UpdateChannel Method for UpdateChannel - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the Channel resource in. - * @param sid The SID of the Channel resource to update. This value can be either the `sid` or the `unique_name` of the Channel resource to update. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the Channel resource in. + * @param Sid The SID of the Channel resource to update. This value can be either the `sid` or the `unique_name` of the Channel resource to update. * @param optional nil or *UpdateChannelOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - A valid JSON string that contains application-specific data. @@ -1815,35 +1862,36 @@ UpdateChannel Method for UpdateChannel * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. This value must be 256 characters or less in length and unique within the Service. @return ChatV2ServiceChannel */ -func (c *DefaultApiService) UpdateChannel(serviceSid string, sid string, params *UpdateChannelParams) (*ChatV2ServiceChannel, error) { +func (c *DefaultApiService) UpdateChannel(ServiceSid string, Sid string, params *UpdateChannelParams) (*ChatV2ServiceChannel, error) { path := "/v2/Services/{ServiceSid}/Channels/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := make(map[string]interface{}) if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.CreatedBy != nil { - data.Set("CreatedBy", *params.CreatedBy) + data.Set("CreatedBy", *params.CreatedBy) } if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) + data.Set("DateCreated", fmt.Sprint(*params.DateCreated)) } if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) + data.Set("DateUpdated", fmt.Sprint(*params.DateUpdated)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -1862,54 +1910,55 @@ func (c *DefaultApiService) UpdateChannel(serviceSid string, sid string, params } // UpdateChannelWebhookParams Optional parameters for the method 'UpdateChannelWebhook' type UpdateChannelWebhookParams struct { - Configuration.Filters *[]string `json:"Configuration.Filters,omitempty"` - Configuration.FlowSid *string `json:"Configuration.FlowSid,omitempty"` - Configuration.Method *string `json:"Configuration.Method,omitempty"` - Configuration.RetryCount *int32 `json:"Configuration.RetryCount,omitempty"` - Configuration.Triggers *[]string `json:"Configuration.Triggers,omitempty"` - Configuration.Url *string `json:"Configuration.Url,omitempty"` + ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` + ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` + ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` + ConfigurationRetryCount *int32 `json:"ConfigurationRetryCount,omitempty"` + ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` + ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` } /* UpdateChannelWebhook Method for UpdateChannelWebhook - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel that has the Webhook resource to update. - * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook resource to update belongs to. This value can be the Channel resource's `sid` or `unique_name`. - * @param sid The SID of the Channel Webhook resource to update. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel that has the Webhook resource to update. + * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook resource to update belongs to. This value can be the Channel resource's `sid` or `unique_name`. + * @param Sid The SID of the Channel Webhook resource to update. * @param optional nil or *UpdateChannelWebhookOpts - Optional Parameters: - * @param "Configuration.Filters" ([]string) - The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger). - * @param "Configuration.FlowSid" (string) - The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` = `studio`. - * @param "Configuration.Method" (string) - The HTTP method used to call `configuration.url`. Can be: `GET` or `POST` and the default is `POST`. - * @param "Configuration.RetryCount" (int32) - The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0. - * @param "Configuration.Triggers" ([]string) - A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`. - * @param "Configuration.Url" (string) - The URL of the webhook to call using the `configuration.method`. + * @param "ConfigurationFilters" ([]string) - The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger). + * @param "ConfigurationFlowSid" (string) - The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` = `studio`. + * @param "ConfigurationMethod" (string) - The HTTP method used to call `configuration.url`. Can be: `GET` or `POST` and the default is `POST`. + * @param "ConfigurationRetryCount" (int32) - The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0. + * @param "ConfigurationTriggers" ([]string) - A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`. + * @param "ConfigurationUrl" (string) - The URL of the webhook to call using the `configuration.method`. @return ChatV2ServiceChannelChannelWebhook */ -func (c *DefaultApiService) UpdateChannelWebhook(serviceSid string, channelSid string, sid string, params *UpdateChannelWebhookParams) (*ChatV2ServiceChannelChannelWebhook, error) { +func (c *DefaultApiService) UpdateChannelWebhook(ServiceSid string, ChannelSid string, Sid string, params *UpdateChannelWebhookParams) (*ChatV2ServiceChannelChannelWebhook, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 - if params != nil && params.Configuration.Filters != nil { - data.Set("Configuration.Filters", *params.Configuration.Filters) + if params != nil && params.ConfigurationFilters != nil { + data.Set("ConfigurationFilters", strings.Join(*params.ConfigurationFilters, ",")) } - if params != nil && params.Configuration.FlowSid != nil { - data.Set("Configuration.FlowSid", *params.Configuration.FlowSid) + if params != nil && params.ConfigurationFlowSid != nil { + data.Set("ConfigurationFlowSid", *params.ConfigurationFlowSid) } - if params != nil && params.Configuration.Method != nil { - data.Set("Configuration.Method", *params.Configuration.Method) + if params != nil && params.ConfigurationMethod != nil { + data.Set("ConfigurationMethod", *params.ConfigurationMethod) } - if params != nil && params.Configuration.RetryCount != nil { - data.Set("Configuration.RetryCount", string(*params.Configuration.RetryCount)) + if params != nil && params.ConfigurationRetryCount != nil { + data.Set("ConfigurationRetryCount", fmt.Sprint(*params.ConfigurationRetryCount)) } - if params != nil && params.Configuration.Triggers != nil { - data.Set("Configuration.Triggers", *params.Configuration.Triggers) + if params != nil && params.ConfigurationTriggers != nil { + data.Set("ConfigurationTriggers", strings.Join(*params.ConfigurationTriggers, ",")) } - if params != nil && params.Configuration.Url != nil { - data.Set("Configuration.Url", *params.Configuration.Url) + if params != nil && params.ConfigurationUrl != nil { + data.Set("ConfigurationUrl", *params.ConfigurationUrl) } @@ -1939,7 +1988,7 @@ type UpdateCredentialParams struct { /* UpdateCredential Method for UpdateCredential - * @param sid The SID of the Credential resource to update. + * @param Sid The SID of the Credential resource to update. * @param optional nil or *UpdateCredentialOpts - Optional Parameters: * @param "ApiKey" (string) - [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. * @param "Certificate" (string) - [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== -----END CERTIFICATE-----` @@ -1949,30 +1998,31 @@ UpdateCredential Method for UpdateCredential * @param "Secret" (string) - [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. @return ChatV2Credential */ -func (c *DefaultApiService) UpdateCredential(sid string, params *UpdateCredentialParams) (*ChatV2Credential, error) { +func (c *DefaultApiService) UpdateCredential(Sid string, params *UpdateCredentialParams) (*ChatV2Credential, error) { path := "/v2/Credentials/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.ApiKey != nil { - data.Set("ApiKey", *params.ApiKey) + data.Set("ApiKey", *params.ApiKey) } if params != nil && params.Certificate != nil { - data.Set("Certificate", *params.Certificate) + data.Set("Certificate", *params.Certificate) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.PrivateKey != nil { - data.Set("PrivateKey", *params.PrivateKey) + data.Set("PrivateKey", *params.PrivateKey) } if params != nil && params.Sandbox != nil { - data.Set("Sandbox", string(*params.Sandbox)) + data.Set("Sandbox", fmt.Sprint(*params.Sandbox)) } if params != nil && params.Secret != nil { - data.Set("Secret", *params.Secret) + data.Set("Secret", *params.Secret) } @@ -1992,7 +2042,7 @@ func (c *DefaultApiService) UpdateCredential(sid string, params *UpdateCredentia } // UpdateMemberParams Optional parameters for the method 'UpdateMember' type UpdateMemberParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` Attributes *string `json:"Attributes,omitempty"` DateCreated *time.Time `json:"DateCreated,omitempty"` DateUpdated *time.Time `json:"DateUpdated,omitempty"` @@ -2003,9 +2053,9 @@ type UpdateMemberParams struct { /* UpdateMember Method for UpdateMember - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the Member resource in. - * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Member resource to update belongs to. This value can be the Channel resource's `sid` or `unique_name`. - * @param sid The SID of the Member resource to update. This value can be either the Member's `sid` or its `identity` value. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the Member resource in. + * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Member resource to update belongs to. This value can be the Channel resource's `sid` or `unique_name`. + * @param Sid The SID of the Member resource to update. This value can be either the Member's `sid` or its `identity` value. * @param optional nil or *UpdateMemberOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - A valid JSON string that contains application-specific data. @@ -2016,36 +2066,37 @@ UpdateMember Method for UpdateMember * @param "RoleSid" (string) - The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/rest/service-resource). @return ChatV2ServiceChannelMember */ -func (c *DefaultApiService) UpdateMember(serviceSid string, channelSid string, sid string, params *UpdateMemberParams) (*ChatV2ServiceChannelMember, error) { +func (c *DefaultApiService) UpdateMember(ServiceSid string, ChannelSid string, Sid string, params *UpdateMemberParams) (*ChatV2ServiceChannelMember, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := make(map[string]interface{}) if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) + data.Set("DateCreated", fmt.Sprint(*params.DateCreated)) } if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) + data.Set("DateUpdated", fmt.Sprint(*params.DateUpdated)) } if params != nil && params.LastConsumedMessageIndex != nil { - data.Set("LastConsumedMessageIndex", string(*params.LastConsumedMessageIndex)) + data.Set("LastConsumedMessageIndex", fmt.Sprint(*params.LastConsumedMessageIndex)) } if params != nil && params.LastConsumptionTimestamp != nil { - data.Set("LastConsumptionTimestamp", string(*params.LastConsumptionTimestamp)) + data.Set("LastConsumptionTimestamp", fmt.Sprint(*params.LastConsumptionTimestamp)) } if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) + data.Set("RoleSid", *params.RoleSid) } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -2064,7 +2115,7 @@ func (c *DefaultApiService) UpdateMember(serviceSid string, channelSid string, s } // UpdateMessageParams Optional parameters for the method 'UpdateMessage' type UpdateMessageParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` Attributes *string `json:"Attributes,omitempty"` Body *string `json:"Body,omitempty"` DateCreated *time.Time `json:"DateCreated,omitempty"` @@ -2075,9 +2126,9 @@ type UpdateMessageParams struct { /* UpdateMessage Method for UpdateMessage - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the Message resource in. - * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Message resource to update belongs to. This value can be the Channel resource's `sid` or `unique_name`. - * @param sid The SID of the Message resource to update. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the Message resource in. + * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Message resource to update belongs to. This value can be the Channel resource's `sid` or `unique_name`. + * @param Sid The SID of the Message resource to update. * @param optional nil or *UpdateMessageOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - A valid JSON string that contains application-specific data. @@ -2088,36 +2139,37 @@ UpdateMessage Method for UpdateMessage * @param "LastUpdatedBy" (string) - The [Identity](https://www.twilio.com/docs/chat/identity) of the User who last updated the Message, if applicable. @return ChatV2ServiceChannelMessage */ -func (c *DefaultApiService) UpdateMessage(serviceSid string, channelSid string, sid string, params *UpdateMessageParams) (*ChatV2ServiceChannelMessage, error) { +func (c *DefaultApiService) UpdateMessage(ServiceSid string, ChannelSid string, Sid string, params *UpdateMessageParams) (*ChatV2ServiceChannelMessage, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := make(map[string]interface{}) if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.Body != nil { - data.Set("Body", *params.Body) + data.Set("Body", *params.Body) } if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) + data.Set("DateCreated", fmt.Sprint(*params.DateCreated)) } if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) + data.Set("DateUpdated", fmt.Sprint(*params.DateUpdated)) } if params != nil && params.From != nil { - data.Set("From", *params.From) + data.Set("From", *params.From) } if params != nil && params.LastUpdatedBy != nil { - data.Set("LastUpdatedBy", *params.LastUpdatedBy) + data.Set("LastUpdatedBy", *params.LastUpdatedBy) } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -2141,22 +2193,23 @@ type UpdateRoleParams struct { /* UpdateRole Method for UpdateRole - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the Role resource in. - * @param sid The SID of the Role resource to update. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the Role resource in. + * @param Sid The SID of the Role resource to update. * @param optional nil or *UpdateRoleOpts - Optional Parameters: * @param "Permission" ([]string) - A permission that you grant to the role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. Note that the update action replaces all previously assigned permissions with those defined in the update action. To remove a permission, do not include it in the subsequent update action. The values for this parameter depend on the role's `type`. @return ChatV2ServiceRole */ -func (c *DefaultApiService) UpdateRole(serviceSid string, sid string, params *UpdateRoleParams) (*ChatV2ServiceRole, error) { +func (c *DefaultApiService) UpdateRole(ServiceSid string, Sid string, params *UpdateRoleParams) (*ChatV2ServiceRole, error) { path := "/v2/Services/{ServiceSid}/Roles/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.Permission != nil { - data.Set("Permission", *params.Permission) + data.Set("Permission", strings.Join(*params.Permission, ",")) } @@ -2181,23 +2234,23 @@ type UpdateServiceParams struct { DefaultChannelRoleSid *string `json:"DefaultChannelRoleSid,omitempty"` DefaultServiceRoleSid *string `json:"DefaultServiceRoleSid,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` - Limits.ChannelMembers *int32 `json:"Limits.ChannelMembers,omitempty"` - Limits.UserChannels *int32 `json:"Limits.UserChannels,omitempty"` - Media.CompatibilityMessage *string `json:"Media.CompatibilityMessage,omitempty"` - Notifications.AddedToChannel.Enabled *bool `json:"Notifications.AddedToChannel.Enabled,omitempty"` - Notifications.AddedToChannel.Sound *string `json:"Notifications.AddedToChannel.Sound,omitempty"` - Notifications.AddedToChannel.Template *string `json:"Notifications.AddedToChannel.Template,omitempty"` - Notifications.InvitedToChannel.Enabled *bool `json:"Notifications.InvitedToChannel.Enabled,omitempty"` - Notifications.InvitedToChannel.Sound *string `json:"Notifications.InvitedToChannel.Sound,omitempty"` - Notifications.InvitedToChannel.Template *string `json:"Notifications.InvitedToChannel.Template,omitempty"` - Notifications.LogEnabled *bool `json:"Notifications.LogEnabled,omitempty"` - Notifications.NewMessage.BadgeCountEnabled *bool `json:"Notifications.NewMessage.BadgeCountEnabled,omitempty"` - Notifications.NewMessage.Enabled *bool `json:"Notifications.NewMessage.Enabled,omitempty"` - Notifications.NewMessage.Sound *string `json:"Notifications.NewMessage.Sound,omitempty"` - Notifications.NewMessage.Template *string `json:"Notifications.NewMessage.Template,omitempty"` - Notifications.RemovedFromChannel.Enabled *bool `json:"Notifications.RemovedFromChannel.Enabled,omitempty"` - Notifications.RemovedFromChannel.Sound *string `json:"Notifications.RemovedFromChannel.Sound,omitempty"` - Notifications.RemovedFromChannel.Template *string `json:"Notifications.RemovedFromChannel.Template,omitempty"` + LimitsChannelMembers *int32 `json:"LimitsChannelMembers,omitempty"` + LimitsUserChannels *int32 `json:"LimitsUserChannels,omitempty"` + MediaCompatibilityMessage *string `json:"MediaCompatibilityMessage,omitempty"` + NotificationsAddedToChannelEnabled *bool `json:"NotificationsAddedToChannelEnabled,omitempty"` + NotificationsAddedToChannelSound *string `json:"NotificationsAddedToChannelSound,omitempty"` + NotificationsAddedToChannelTemplate *string `json:"NotificationsAddedToChannelTemplate,omitempty"` + NotificationsInvitedToChannelEnabled *bool `json:"NotificationsInvitedToChannelEnabled,omitempty"` + NotificationsInvitedToChannelSound *string `json:"NotificationsInvitedToChannelSound,omitempty"` + NotificationsInvitedToChannelTemplate *string `json:"NotificationsInvitedToChannelTemplate,omitempty"` + NotificationsLogEnabled *bool `json:"NotificationsLogEnabled,omitempty"` + NotificationsNewMessageBadgeCountEnabled *bool `json:"NotificationsNewMessageBadgeCountEnabled,omitempty"` + NotificationsNewMessageEnabled *bool `json:"NotificationsNewMessageEnabled,omitempty"` + NotificationsNewMessageSound *string `json:"NotificationsNewMessageSound,omitempty"` + NotificationsNewMessageTemplate *string `json:"NotificationsNewMessageTemplate,omitempty"` + NotificationsRemovedFromChannelEnabled *bool `json:"NotificationsRemovedFromChannelEnabled,omitempty"` + NotificationsRemovedFromChannelSound *string `json:"NotificationsRemovedFromChannelSound,omitempty"` + NotificationsRemovedFromChannelTemplate *string `json:"NotificationsRemovedFromChannelTemplate,omitempty"` PostWebhookRetryCount *int32 `json:"PostWebhookRetryCount,omitempty"` PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"` PreWebhookRetryCount *int32 `json:"PreWebhookRetryCount,omitempty"` @@ -2211,30 +2264,30 @@ type UpdateServiceParams struct { /* UpdateService Method for UpdateService - * @param sid The SID of the Service resource to update. + * @param Sid The SID of the Service resource to update. * @param optional nil or *UpdateServiceOpts - Optional Parameters: * @param "ConsumptionReportInterval" (int32) - DEPRECATED. The interval in seconds between consumption reports submission batches from client endpoints. * @param "DefaultChannelCreatorRoleSid" (string) - The channel role assigned to a channel creator when they join a new channel. See the [Role resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info about roles. * @param "DefaultChannelRoleSid" (string) - The channel role assigned to users when they are added to a channel. See the [Role resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info about roles. * @param "DefaultServiceRoleSid" (string) - The service role assigned to users when they are added to the service. See the [Role resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info about roles. * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. - * @param "Limits.ChannelMembers" (int32) - The maximum number of Members that can be added to Channels within this Service. Can be up to 1,000. - * @param "Limits.UserChannels" (int32) - The maximum number of Channels Users can be a Member of within this Service. Can be up to 1,000. - * @param "Media.CompatibilityMessage" (string) - The message to send when a media message has no text. Can be used as placeholder message. - * @param "Notifications.AddedToChannel.Enabled" (bool) - Whether to send a notification when a member is added to a channel. The default is `false`. - * @param "Notifications.AddedToChannel.Sound" (string) - The name of the sound to play when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. - * @param "Notifications.AddedToChannel.Template" (string) - The template to use to create the notification text displayed when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. - * @param "Notifications.InvitedToChannel.Enabled" (bool) - Whether to send a notification when a user is invited to a channel. The default is `false`. - * @param "Notifications.InvitedToChannel.Sound" (string) - The name of the sound to play when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. - * @param "Notifications.InvitedToChannel.Template" (string) - The template to use to create the notification text displayed when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. - * @param "Notifications.LogEnabled" (bool) - Whether to log notifications. The default is `false`. - * @param "Notifications.NewMessage.BadgeCountEnabled" (bool) - Whether the new message badge is enabled. The default is `false`. - * @param "Notifications.NewMessage.Enabled" (bool) - Whether to send a notification when a new message is added to a channel. The default is `false`. - * @param "Notifications.NewMessage.Sound" (string) - The name of the sound to play when a new message is added to a channel and `notifications.new_message.enabled` is `true`. - * @param "Notifications.NewMessage.Template" (string) - The template to use to create the notification text displayed when a new message is added to a channel and `notifications.new_message.enabled` is `true`. - * @param "Notifications.RemovedFromChannel.Enabled" (bool) - Whether to send a notification to a user when they are removed from a channel. The default is `false`. - * @param "Notifications.RemovedFromChannel.Sound" (string) - The name of the sound to play to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. - * @param "Notifications.RemovedFromChannel.Template" (string) - The template to use to create the notification text displayed to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. + * @param "LimitsChannelMembers" (int32) - The maximum number of Members that can be added to Channels within this Service. Can be up to 1,000. + * @param "LimitsUserChannels" (int32) - The maximum number of Channels Users can be a Member of within this Service. Can be up to 1,000. + * @param "MediaCompatibilityMessage" (string) - The message to send when a media message has no text. Can be used as placeholder message. + * @param "NotificationsAddedToChannelEnabled" (bool) - Whether to send a notification when a member is added to a channel. The default is `false`. + * @param "NotificationsAddedToChannelSound" (string) - The name of the sound to play when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. + * @param "NotificationsAddedToChannelTemplate" (string) - The template to use to create the notification text displayed when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. + * @param "NotificationsInvitedToChannelEnabled" (bool) - Whether to send a notification when a user is invited to a channel. The default is `false`. + * @param "NotificationsInvitedToChannelSound" (string) - The name of the sound to play when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. + * @param "NotificationsInvitedToChannelTemplate" (string) - The template to use to create the notification text displayed when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. + * @param "NotificationsLogEnabled" (bool) - Whether to log notifications. The default is `false`. + * @param "NotificationsNewMessageBadgeCountEnabled" (bool) - Whether the new message badge is enabled. The default is `false`. + * @param "NotificationsNewMessageEnabled" (bool) - Whether to send a notification when a new message is added to a channel. The default is `false`. + * @param "NotificationsNewMessageSound" (string) - The name of the sound to play when a new message is added to a channel and `notifications.new_message.enabled` is `true`. + * @param "NotificationsNewMessageTemplate" (string) - The template to use to create the notification text displayed when a new message is added to a channel and `notifications.new_message.enabled` is `true`. + * @param "NotificationsRemovedFromChannelEnabled" (bool) - Whether to send a notification to a user when they are removed from a channel. The default is `false`. + * @param "NotificationsRemovedFromChannelSound" (string) - The name of the sound to play to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. + * @param "NotificationsRemovedFromChannelTemplate" (string) - The template to use to create the notification text displayed to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. * @param "PostWebhookRetryCount" (int32) - The number of times to retry a call to the `post_webhook_url` if the request times out (after 5 seconds) or it receives a 429, 503, or 504 HTTP response. The default is 0, which means the call won't be retried. * @param "PostWebhookUrl" (string) - The URL for post-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. * @param "PreWebhookRetryCount" (int32) - The number of times to retry a call to the `pre_webhook_url` if the request times out (after 5 seconds) or it receives a 429, 503, or 504 HTTP response. Default retry count is 0 times, which means the call won't be retried. @@ -2246,105 +2299,106 @@ UpdateService Method for UpdateService * @param "WebhookMethod" (string) - The HTTP method to use for calls to the `pre_webhook_url` and `post_webhook_url` webhooks. Can be: `POST` or `GET` and the default is `POST`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. @return ChatV2Service */ -func (c *DefaultApiService) UpdateService(sid string, params *UpdateServiceParams) (*ChatV2Service, error) { +func (c *DefaultApiService) UpdateService(Sid string, params *UpdateServiceParams) (*ChatV2Service, error) { path := "/v2/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.ConsumptionReportInterval != nil { - data.Set("ConsumptionReportInterval", string(*params.ConsumptionReportInterval)) + data.Set("ConsumptionReportInterval", fmt.Sprint(*params.ConsumptionReportInterval)) } if params != nil && params.DefaultChannelCreatorRoleSid != nil { - data.Set("DefaultChannelCreatorRoleSid", *params.DefaultChannelCreatorRoleSid) + data.Set("DefaultChannelCreatorRoleSid", *params.DefaultChannelCreatorRoleSid) } if params != nil && params.DefaultChannelRoleSid != nil { - data.Set("DefaultChannelRoleSid", *params.DefaultChannelRoleSid) + data.Set("DefaultChannelRoleSid", *params.DefaultChannelRoleSid) } if params != nil && params.DefaultServiceRoleSid != nil { - data.Set("DefaultServiceRoleSid", *params.DefaultServiceRoleSid) + data.Set("DefaultServiceRoleSid", *params.DefaultServiceRoleSid) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } - if params != nil && params.Limits.ChannelMembers != nil { - data.Set("Limits.ChannelMembers", string(*params.Limits.ChannelMembers)) + if params != nil && params.LimitsChannelMembers != nil { + data.Set("LimitsChannelMembers", fmt.Sprint(*params.LimitsChannelMembers)) } - if params != nil && params.Limits.UserChannels != nil { - data.Set("Limits.UserChannels", string(*params.Limits.UserChannels)) + if params != nil && params.LimitsUserChannels != nil { + data.Set("LimitsUserChannels", fmt.Sprint(*params.LimitsUserChannels)) } - if params != nil && params.Media.CompatibilityMessage != nil { - data.Set("Media.CompatibilityMessage", *params.Media.CompatibilityMessage) + if params != nil && params.MediaCompatibilityMessage != nil { + data.Set("MediaCompatibilityMessage", *params.MediaCompatibilityMessage) } - if params != nil && params.Notifications.AddedToChannel.Enabled != nil { - data.Set("Notifications.AddedToChannel.Enabled", string(*params.Notifications.AddedToChannel.Enabled)) + if params != nil && params.NotificationsAddedToChannelEnabled != nil { + data.Set("NotificationsAddedToChannelEnabled", fmt.Sprint(*params.NotificationsAddedToChannelEnabled)) } - if params != nil && params.Notifications.AddedToChannel.Sound != nil { - data.Set("Notifications.AddedToChannel.Sound", *params.Notifications.AddedToChannel.Sound) + if params != nil && params.NotificationsAddedToChannelSound != nil { + data.Set("NotificationsAddedToChannelSound", *params.NotificationsAddedToChannelSound) } - if params != nil && params.Notifications.AddedToChannel.Template != nil { - data.Set("Notifications.AddedToChannel.Template", *params.Notifications.AddedToChannel.Template) + if params != nil && params.NotificationsAddedToChannelTemplate != nil { + data.Set("NotificationsAddedToChannelTemplate", *params.NotificationsAddedToChannelTemplate) } - if params != nil && params.Notifications.InvitedToChannel.Enabled != nil { - data.Set("Notifications.InvitedToChannel.Enabled", string(*params.Notifications.InvitedToChannel.Enabled)) + if params != nil && params.NotificationsInvitedToChannelEnabled != nil { + data.Set("NotificationsInvitedToChannelEnabled", fmt.Sprint(*params.NotificationsInvitedToChannelEnabled)) } - if params != nil && params.Notifications.InvitedToChannel.Sound != nil { - data.Set("Notifications.InvitedToChannel.Sound", *params.Notifications.InvitedToChannel.Sound) + if params != nil && params.NotificationsInvitedToChannelSound != nil { + data.Set("NotificationsInvitedToChannelSound", *params.NotificationsInvitedToChannelSound) } - if params != nil && params.Notifications.InvitedToChannel.Template != nil { - data.Set("Notifications.InvitedToChannel.Template", *params.Notifications.InvitedToChannel.Template) + if params != nil && params.NotificationsInvitedToChannelTemplate != nil { + data.Set("NotificationsInvitedToChannelTemplate", *params.NotificationsInvitedToChannelTemplate) } - if params != nil && params.Notifications.LogEnabled != nil { - data.Set("Notifications.LogEnabled", string(*params.Notifications.LogEnabled)) + if params != nil && params.NotificationsLogEnabled != nil { + data.Set("NotificationsLogEnabled", fmt.Sprint(*params.NotificationsLogEnabled)) } - if params != nil && params.Notifications.NewMessage.BadgeCountEnabled != nil { - data.Set("Notifications.NewMessage.BadgeCountEnabled", string(*params.Notifications.NewMessage.BadgeCountEnabled)) + if params != nil && params.NotificationsNewMessageBadgeCountEnabled != nil { + data.Set("NotificationsNewMessageBadgeCountEnabled", fmt.Sprint(*params.NotificationsNewMessageBadgeCountEnabled)) } - if params != nil && params.Notifications.NewMessage.Enabled != nil { - data.Set("Notifications.NewMessage.Enabled", string(*params.Notifications.NewMessage.Enabled)) + if params != nil && params.NotificationsNewMessageEnabled != nil { + data.Set("NotificationsNewMessageEnabled", fmt.Sprint(*params.NotificationsNewMessageEnabled)) } - if params != nil && params.Notifications.NewMessage.Sound != nil { - data.Set("Notifications.NewMessage.Sound", *params.Notifications.NewMessage.Sound) + if params != nil && params.NotificationsNewMessageSound != nil { + data.Set("NotificationsNewMessageSound", *params.NotificationsNewMessageSound) } - if params != nil && params.Notifications.NewMessage.Template != nil { - data.Set("Notifications.NewMessage.Template", *params.Notifications.NewMessage.Template) + if params != nil && params.NotificationsNewMessageTemplate != nil { + data.Set("NotificationsNewMessageTemplate", *params.NotificationsNewMessageTemplate) } - if params != nil && params.Notifications.RemovedFromChannel.Enabled != nil { - data.Set("Notifications.RemovedFromChannel.Enabled", string(*params.Notifications.RemovedFromChannel.Enabled)) + if params != nil && params.NotificationsRemovedFromChannelEnabled != nil { + data.Set("NotificationsRemovedFromChannelEnabled", fmt.Sprint(*params.NotificationsRemovedFromChannelEnabled)) } - if params != nil && params.Notifications.RemovedFromChannel.Sound != nil { - data.Set("Notifications.RemovedFromChannel.Sound", *params.Notifications.RemovedFromChannel.Sound) + if params != nil && params.NotificationsRemovedFromChannelSound != nil { + data.Set("NotificationsRemovedFromChannelSound", *params.NotificationsRemovedFromChannelSound) } - if params != nil && params.Notifications.RemovedFromChannel.Template != nil { - data.Set("Notifications.RemovedFromChannel.Template", *params.Notifications.RemovedFromChannel.Template) + if params != nil && params.NotificationsRemovedFromChannelTemplate != nil { + data.Set("NotificationsRemovedFromChannelTemplate", *params.NotificationsRemovedFromChannelTemplate) } if params != nil && params.PostWebhookRetryCount != nil { - data.Set("PostWebhookRetryCount", string(*params.PostWebhookRetryCount)) + data.Set("PostWebhookRetryCount", fmt.Sprint(*params.PostWebhookRetryCount)) } if params != nil && params.PostWebhookUrl != nil { - data.Set("PostWebhookUrl", *params.PostWebhookUrl) + data.Set("PostWebhookUrl", *params.PostWebhookUrl) } if params != nil && params.PreWebhookRetryCount != nil { - data.Set("PreWebhookRetryCount", string(*params.PreWebhookRetryCount)) + data.Set("PreWebhookRetryCount", fmt.Sprint(*params.PreWebhookRetryCount)) } if params != nil && params.PreWebhookUrl != nil { - data.Set("PreWebhookUrl", *params.PreWebhookUrl) + data.Set("PreWebhookUrl", *params.PreWebhookUrl) } if params != nil && params.ReachabilityEnabled != nil { - data.Set("ReachabilityEnabled", string(*params.ReachabilityEnabled)) + data.Set("ReachabilityEnabled", fmt.Sprint(*params.ReachabilityEnabled)) } if params != nil && params.ReadStatusEnabled != nil { - data.Set("ReadStatusEnabled", string(*params.ReadStatusEnabled)) + data.Set("ReadStatusEnabled", fmt.Sprint(*params.ReadStatusEnabled)) } if params != nil && params.TypingIndicatorTimeout != nil { - data.Set("TypingIndicatorTimeout", string(*params.TypingIndicatorTimeout)) + data.Set("TypingIndicatorTimeout", fmt.Sprint(*params.TypingIndicatorTimeout)) } if params != nil && params.WebhookFilters != nil { - data.Set("WebhookFilters", *params.WebhookFilters) + data.Set("WebhookFilters", strings.Join(*params.WebhookFilters, ",")) } if params != nil && params.WebhookMethod != nil { - data.Set("WebhookMethod", *params.WebhookMethod) + data.Set("WebhookMethod", *params.WebhookMethod) } @@ -2364,7 +2418,7 @@ func (c *DefaultApiService) UpdateService(sid string, params *UpdateServiceParam } // UpdateUserParams Optional parameters for the method 'UpdateUser' type UpdateUserParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` Attributes *string `json:"Attributes,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` RoleSid *string `json:"RoleSid,omitempty"` @@ -2372,8 +2426,8 @@ type UpdateUserParams struct { /* UpdateUser Method for UpdateUser - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the User resource in. - * @param sid The SID of the User resource to update. This value can be either the `sid` or the `identity` of the User resource to update. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the User resource in. + * @param Sid The SID of the User resource to update. This value can be either the `sid` or the `identity` of the User resource to update. * @param optional nil or *UpdateUserOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - A valid JSON string that contains application-specific data. @@ -2381,26 +2435,27 @@ UpdateUser Method for UpdateUser * @param "RoleSid" (string) - The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the User. @return ChatV2ServiceUser */ -func (c *DefaultApiService) UpdateUser(serviceSid string, sid string, params *UpdateUserParams) (*ChatV2ServiceUser, error) { +func (c *DefaultApiService) UpdateUser(ServiceSid string, Sid string, params *UpdateUserParams) (*ChatV2ServiceUser, error) { path := "/v2/Services/{ServiceSid}/Users/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := make(map[string]interface{}) if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) + data.Set("RoleSid", *params.RoleSid) } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -2426,32 +2481,33 @@ type UpdateUserChannelParams struct { /* UpdateUserChannel Method for UpdateUserChannel - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the User Channel resource in. - * @param userSid The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) to update the User Channel resource from. This value can be either the `sid` or the `identity` of the User resource. - * @param channelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) with the User Channel resource to update. This value can be the Channel resource's `sid` or `unique_name`. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the User Channel resource in. + * @param UserSid The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) to update the User Channel resource from. This value can be either the `sid` or the `identity` of the User resource. + * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) with the User Channel resource to update. This value can be the Channel resource's `sid` or `unique_name`. * @param optional nil or *UpdateUserChannelOpts - Optional Parameters: * @param "LastConsumedMessageIndex" (*int32) - The index of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) in the [Channel](https://www.twilio.com/docs/chat/channels) that the Member has read. * @param "LastConsumptionTimestamp" (time.Time) - The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) read event for the Member within the [Channel](https://www.twilio.com/docs/chat/channels). * @param "NotificationLevel" (string) - The push notification level to assign to the User Channel. Can be: `default` or `muted`. @return ChatV2ServiceUserUserChannel */ -func (c *DefaultApiService) UpdateUserChannel(serviceSid string, userSid string, channelSid string, params *UpdateUserChannelParams) (*ChatV2ServiceUserUserChannel, error) { +func (c *DefaultApiService) UpdateUserChannel(ServiceSid string, UserSid string, ChannelSid string, params *UpdateUserChannelParams) (*ChatV2ServiceUserUserChannel, error) { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", UserSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + data := url.Values{} headers := 0 if params != nil && params.LastConsumedMessageIndex != nil { - data.Set("LastConsumedMessageIndex", string(*params.LastConsumedMessageIndex)) + data.Set("LastConsumedMessageIndex", fmt.Sprint(*params.LastConsumedMessageIndex)) } if params != nil && params.LastConsumptionTimestamp != nil { - data.Set("LastConsumptionTimestamp", string(*params.LastConsumptionTimestamp)) + data.Set("LastConsumptionTimestamp", fmt.Sprint(*params.LastConsumptionTimestamp)) } if params != nil && params.NotificationLevel != nil { - data.Set("NotificationLevel", *params.NotificationLevel) + data.Set("NotificationLevel", *params.NotificationLevel) } diff --git a/rest/chat/v2/docs/DefaultApi.md b/rest/chat/v2/docs/DefaultApi.md index 90307affd..5b015cb03 100644 --- a/rest/chat/v2/docs/DefaultApi.md +++ b/rest/chat/v2/docs/DefaultApi.md @@ -63,7 +63,7 @@ Method | HTTP request | Description ## CreateChannel -> ChatV2ServiceChannel CreateChannel(ctx, serviceSid, optional) +> ChatV2ServiceChannel CreateChannel(ctx, ServiceSid, optional) @@ -73,7 +73,7 @@ Method | HTTP request | Description Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Channel resource under. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Channel resource under. | **optional** | ***CreateChannelOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -84,14 +84,14 @@ Optional parameters are passed through a pointer to a CreateChannelOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | - **attributes** | **optional.String**| A valid JSON string that contains application-specific data. | - **createdBy** | **optional.String**| The `identity` of the User that created the channel. Default is: `system`. | - **dateCreated** | **optional.Time**| The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. Note that this should only be used in cases where a Channel is being recreated from a backup/separate source. | - **dateUpdated** | **optional.Time**| The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. The default value is `null`. Note that this parameter should only be used in cases where a Channel is being recreated from a backup/separate source and where a Message was previously updated. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | - **type_** | **optional.String**| The visibility of the channel. Can be: `public` or `private` and defaults to `public`. | - **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the Channel resource's `sid` in the URL. This value must be 64 characters or less in length and be unique within the Service. | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **Attributes** | **optional.String**| A valid JSON string that contains application-specific data. | + **CreatedBy** | **optional.String**| The `identity` of the User that created the channel. Default is: `system`. | + **DateCreated** | **optional.Time**| The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. Note that this should only be used in cases where a Channel is being recreated from a backup/separate source. | + **DateUpdated** | **optional.Time**| The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. The default value is `null`. Note that this parameter should only be used in cases where a Channel is being recreated from a backup/separate source and where a Message was previously updated. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | + **Type** | **optional.String**| The visibility of the channel. Can be: `public` or `private` and defaults to `public`. | + **UniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the Channel resource's `sid` in the URL. This value must be 64 characters or less in length and be unique within the Service. | ### Return type @@ -113,7 +113,7 @@ Name | Type | Description | Notes ## CreateChannelWebhook -> ChatV2ServiceChannelChannelWebhook CreateChannelWebhook(ctx, serviceSid, channelSid, optional) +> ChatV2ServiceChannelChannelWebhook CreateChannelWebhook(ctx, ServiceSid, ChannelSid, optional) @@ -123,8 +123,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel to create the Webhook resource under. | -**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the new Channel Webhook resource belongs to. This value can be the Channel resource's `sid` or `unique_name`. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel to create the Webhook resource under. | +**ChannelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the new Channel Webhook resource belongs to. This value can be the Channel resource's `sid` or `unique_name`. | **optional** | ***CreateChannelWebhookOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -136,13 +136,13 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **configurationFilters** | [**optional.Interface of []string**](string.md)| The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger). | - **configurationFlowSid** | **optional.String**| The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` is `studio`. | - **configurationMethod** | **optional.String**| The HTTP method used to call `configuration.url`. Can be: `GET` or `POST` and the default is `POST`. | - **configurationRetryCount** | **optional.Int32**| The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0. | - **configurationTriggers** | [**optional.Interface of []string**](string.md)| A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`. | - **configurationUrl** | **optional.String**| The URL of the webhook to call using the `configuration.method`. | - **type_** | **optional.String**| The type of webhook. Can be: `webhook`, `studio`, or `trigger`. | + **ConfigurationFilters** | [**optional.Interface of []string**](string.md)| The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger). | + **ConfigurationFlowSid** | **optional.String**| The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` is `studio`. | + **ConfigurationMethod** | **optional.String**| The HTTP method used to call `configuration.url`. Can be: `GET` or `POST` and the default is `POST`. | + **ConfigurationRetryCount** | **optional.Int32**| The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0. | + **ConfigurationTriggers** | [**optional.Interface of []string**](string.md)| A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`. | + **ConfigurationUrl** | **optional.String**| The URL of the webhook to call using the `configuration.method`. | + **Type** | **optional.String**| The type of webhook. Can be: `webhook`, `studio`, or `trigger`. | ### Return type @@ -183,13 +183,13 @@ Optional parameters are passed through a pointer to a CreateCredentialOpts struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiKey** | **optional.String**| [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. | - **certificate** | **optional.String**| [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== -----END CERTIFICATE-----` | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | - **privateKey** | **optional.String**| [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fG... -----END RSA PRIVATE KEY-----` | - **sandbox** | **optional.Bool**| [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. | - **secret** | **optional.String**| [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. | - **type_** | **optional.String**| The type of push-notification service the credential is for. Can be: `gcm`, `fcm`, or `apn`. | + **ApiKey** | **optional.String**| [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. | + **Certificate** | **optional.String**| [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== -----END CERTIFICATE-----` | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | + **PrivateKey** | **optional.String**| [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fG... -----END RSA PRIVATE KEY-----` | + **Sandbox** | **optional.Bool**| [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. | + **Secret** | **optional.String**| [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. | + **Type** | **optional.String**| The type of push-notification service the credential is for. Can be: `gcm`, `fcm`, or `apn`. | ### Return type @@ -211,7 +211,7 @@ Name | Type | Description | Notes ## CreateInvite -> ChatV2ServiceChannelInvite CreateInvite(ctx, serviceSid, channelSid, optional) +> ChatV2ServiceChannelInvite CreateInvite(ctx, ServiceSid, ChannelSid, optional) @@ -221,8 +221,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Invite resource under. | -**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the new Invite resource belongs to. This value can be the Channel resource's `sid` or `unique_name`. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Invite resource under. | +**ChannelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the new Invite resource belongs to. This value can be the Channel resource's `sid` or `unique_name`. | **optional** | ***CreateInviteOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -234,8 +234,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **identity** | **optional.String**| The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/chat/rest/service-resource). See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more info. | - **roleSid** | **optional.String**| The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) assigned to the new member. | + **Identity** | **optional.String**| The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/chat/rest/service-resource). See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more info. | + **RoleSid** | **optional.String**| The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) assigned to the new member. | ### Return type @@ -257,7 +257,7 @@ Name | Type | Description | Notes ## CreateMember -> ChatV2ServiceChannelMember CreateMember(ctx, serviceSid, channelSid, optional) +> ChatV2ServiceChannelMember CreateMember(ctx, ServiceSid, ChannelSid, optional) @@ -267,8 +267,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Member resource under. | -**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the new Member resource belongs to. This value can be the Channel resource's `sid` or `unique_name`. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Member resource under. | +**ChannelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the new Member resource belongs to. This value can be the Channel resource's `sid` or `unique_name`. | **optional** | ***CreateMemberOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -280,14 +280,14 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | - **attributes** | **optional.String**| A valid JSON string that contains application-specific data. | - **dateCreated** | **optional.Time**| The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. Note that this parameter should only be used when a Member is being recreated from a backup/separate source. | - **dateUpdated** | **optional.Time**| The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. The default value is `null`. Note that this parameter should only be used when a Member is being recreated from a backup/separate source and where a Member was previously updated. | - **identity** | **optional.String**| The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/chat/rest/service-resource). See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more info. | - **lastConsumedMessageIndex** | **optional.Int32**| The index of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) in the [Channel](https://www.twilio.com/docs/chat/channels) that the Member has read. This parameter should only be used when recreating a Member from a backup/separate source. | - **lastConsumptionTimestamp** | **optional.Time**| The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) read event for the Member within the [Channel](https://www.twilio.com/docs/chat/channels). | - **roleSid** | **optional.String**| The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/rest/service-resource). | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **Attributes** | **optional.String**| A valid JSON string that contains application-specific data. | + **DateCreated** | **optional.Time**| The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. Note that this parameter should only be used when a Member is being recreated from a backup/separate source. | + **DateUpdated** | **optional.Time**| The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. The default value is `null`. Note that this parameter should only be used when a Member is being recreated from a backup/separate source and where a Member was previously updated. | + **Identity** | **optional.String**| The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/chat/rest/service-resource). See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more info. | + **LastConsumedMessageIndex** | **optional.Int32**| The index of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) in the [Channel](https://www.twilio.com/docs/chat/channels) that the Member has read. This parameter should only be used when recreating a Member from a backup/separate source. | + **LastConsumptionTimestamp** | **optional.Time**| The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) read event for the Member within the [Channel](https://www.twilio.com/docs/chat/channels). | + **RoleSid** | **optional.String**| The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/rest/service-resource). | ### Return type @@ -309,7 +309,7 @@ Name | Type | Description | Notes ## CreateMessage -> ChatV2ServiceChannelMessage CreateMessage(ctx, serviceSid, channelSid, optional) +> ChatV2ServiceChannelMessage CreateMessage(ctx, ServiceSid, ChannelSid, optional) @@ -319,8 +319,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Message resource under. | -**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the new Message resource belongs to. This value can be the Channel resource's `sid` or `unique_name`. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Message resource under. | +**ChannelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the new Message resource belongs to. This value can be the Channel resource's `sid` or `unique_name`. | **optional** | ***CreateMessageOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -332,14 +332,14 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | - **attributes** | **optional.String**| A valid JSON string that contains application-specific data. | - **body** | **optional.String**| The message to send to the channel. Can be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string. | - **dateCreated** | **optional.Time**| The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. This parameter should only be used when a Chat's history is being recreated from a backup/separate source. | - **dateUpdated** | **optional.Time**| The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. | - **from** | **optional.String**| The [Identity](https://www.twilio.com/docs/chat/identity) of the new message's author. The default value is `system`. | - **lastUpdatedBy** | **optional.String**| The [Identity](https://www.twilio.com/docs/chat/identity) of the User who last updated the Message, if applicable. | - **mediaSid** | **optional.String**| The SID of the [Media](https://www.twilio.com/docs/chat/rest/media) to attach to the new Message. | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **Attributes** | **optional.String**| A valid JSON string that contains application-specific data. | + **Body** | **optional.String**| The message to send to the channel. Can be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string. | + **DateCreated** | **optional.Time**| The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. This parameter should only be used when a Chat's history is being recreated from a backup/separate source. | + **DateUpdated** | **optional.Time**| The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. | + **From** | **optional.String**| The [Identity](https://www.twilio.com/docs/chat/identity) of the new message's author. The default value is `system`. | + **LastUpdatedBy** | **optional.String**| The [Identity](https://www.twilio.com/docs/chat/identity) of the User who last updated the Message, if applicable. | + **MediaSid** | **optional.String**| The SID of the [Media](https://www.twilio.com/docs/chat/rest/media) to attach to the new Message. | ### Return type @@ -361,7 +361,7 @@ Name | Type | Description | Notes ## CreateRole -> ChatV2ServiceRole CreateRole(ctx, serviceSid, optional) +> ChatV2ServiceRole CreateRole(ctx, ServiceSid, optional) @@ -371,7 +371,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Role resource under. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Role resource under. | **optional** | ***CreateRoleOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -382,9 +382,9 @@ Optional parameters are passed through a pointer to a CreateRoleOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | - **permission** | [**optional.Interface of []string**](string.md)| A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type`. | - **type_** | **optional.String**| The type of role. Can be: `channel` for [Channel](https://www.twilio.com/docs/chat/channels) roles or `deployment` for [Service](https://www.twilio.com/docs/chat/rest/service-resource) roles. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | + **Permission** | [**optional.Interface of []string**](string.md)| A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type`. | + **Type** | **optional.String**| The type of role. Can be: `channel` for [Channel](https://www.twilio.com/docs/chat/channels) roles or `deployment` for [Service](https://www.twilio.com/docs/chat/rest/service-resource) roles. | ### Return type @@ -425,7 +425,7 @@ Optional parameters are passed through a pointer to a CreateServiceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. | ### Return type @@ -447,7 +447,7 @@ Name | Type | Description | Notes ## CreateUser -> ChatV2ServiceUser CreateUser(ctx, serviceSid, optional) +> ChatV2ServiceUser CreateUser(ctx, ServiceSid, optional) @@ -457,7 +457,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the User resource under. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the User resource under. | **optional** | ***CreateUserOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -468,11 +468,11 @@ Optional parameters are passed through a pointer to a CreateUserOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | - **attributes** | **optional.String**| A valid JSON string that contains application-specific data. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. This value is often used for display purposes. | - **identity** | **optional.String**| The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/chat/rest/service-resource). This value is often a username or email address. See the Identity documentation for more info. | - **roleSid** | **optional.String**| The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the new User. | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **Attributes** | **optional.String**| A valid JSON string that contains application-specific data. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. This value is often used for display purposes. | + **Identity** | **optional.String**| The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/chat/rest/service-resource). This value is often a username or email address. See the Identity documentation for more info. | + **RoleSid** | **optional.String**| The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the new User. | ### Return type @@ -494,7 +494,7 @@ Name | Type | Description | Notes ## DeleteBinding -> DeleteBinding(ctx, serviceSid, sid) +> DeleteBinding(ctx, ServiceSid, Sid) @@ -504,8 +504,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the Binding resource from. | -**sid** | **string**| The SID of the Binding resource to delete. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the Binding resource from. | +**Sid** | **string**| The SID of the Binding resource to delete. | ### Return type @@ -527,7 +527,7 @@ Name | Type | Description | Notes ## DeleteChannel -> DeleteChannel(ctx, serviceSid, sid, optional) +> DeleteChannel(ctx, ServiceSid, Sid, optional) @@ -537,8 +537,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the resource from. | -**sid** | **string**| The SID of the Channel resource to delete. This value can be either the `sid` or the `unique_name` of the Channel resource to delete. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the resource from. | +**Sid** | **string**| The SID of the Channel resource to delete. This value can be either the `sid` or the `unique_name` of the Channel resource to delete. | **optional** | ***DeleteChannelOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -550,7 +550,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | ### Return type @@ -572,7 +572,7 @@ Name | Type | Description | Notes ## DeleteChannelWebhook -> DeleteChannelWebhook(ctx, serviceSid, channelSid, sid) +> DeleteChannelWebhook(ctx, ServiceSid, ChannelSid, Sid) @@ -582,9 +582,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel to delete the Webhook resource from. | -**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook resource to delete belongs to. This value can be the Channel resource's `sid` or `unique_name`. | -**sid** | **string**| The SID of the Channel Webhook resource to delete. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel to delete the Webhook resource from. | +**ChannelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook resource to delete belongs to. This value can be the Channel resource's `sid` or `unique_name`. | +**Sid** | **string**| The SID of the Channel Webhook resource to delete. | ### Return type @@ -606,7 +606,7 @@ Name | Type | Description | Notes ## DeleteCredential -> DeleteCredential(ctx, sid) +> DeleteCredential(ctx, Sid) @@ -616,7 +616,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Credential resource to delete. | +**Sid** | **string**| The SID of the Credential resource to delete. | ### Return type @@ -638,7 +638,7 @@ Name | Type | Description | Notes ## DeleteInvite -> DeleteInvite(ctx, serviceSid, channelSid, sid) +> DeleteInvite(ctx, ServiceSid, ChannelSid, Sid) @@ -648,9 +648,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the Invite resource from. | -**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Invite resource to delete belongs to. This value can be the Channel resource's `sid` or `unique_name`. | -**sid** | **string**| The SID of the Invite resource to delete. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the Invite resource from. | +**ChannelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Invite resource to delete belongs to. This value can be the Channel resource's `sid` or `unique_name`. | +**Sid** | **string**| The SID of the Invite resource to delete. | ### Return type @@ -672,7 +672,7 @@ Name | Type | Description | Notes ## DeleteMember -> DeleteMember(ctx, serviceSid, channelSid, sid, optional) +> DeleteMember(ctx, ServiceSid, ChannelSid, Sid, optional) @@ -682,9 +682,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the Member resource from. | -**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Member resource to delete belongs to. This value can be the Channel resource's `sid` or `unique_name`. | -**sid** | **string**| The SID of the Member resource to delete. This value can be either the Member's `sid` or its `identity` value. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the Member resource from. | +**ChannelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Member resource to delete belongs to. This value can be the Channel resource's `sid` or `unique_name`. | +**Sid** | **string**| The SID of the Member resource to delete. This value can be either the Member's `sid` or its `identity` value. | **optional** | ***DeleteMemberOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -697,7 +697,7 @@ Name | Type | Description | Notes - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | ### Return type @@ -719,7 +719,7 @@ Name | Type | Description | Notes ## DeleteMessage -> DeleteMessage(ctx, serviceSid, channelSid, sid, optional) +> DeleteMessage(ctx, ServiceSid, ChannelSid, Sid, optional) @@ -729,9 +729,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the Message resource from. | -**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Message resource to delete belongs to. This value can be the Channel resource's `sid` or `unique_name`. | -**sid** | **string**| The SID of the Message resource to delete. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the Message resource from. | +**ChannelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Message resource to delete belongs to. This value can be the Channel resource's `sid` or `unique_name`. | +**Sid** | **string**| The SID of the Message resource to delete. | **optional** | ***DeleteMessageOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -744,7 +744,7 @@ Name | Type | Description | Notes - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | ### Return type @@ -766,7 +766,7 @@ Name | Type | Description | Notes ## DeleteRole -> DeleteRole(ctx, serviceSid, sid) +> DeleteRole(ctx, ServiceSid, Sid) @@ -776,8 +776,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the Role resource from. | -**sid** | **string**| The SID of the Role resource to delete. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the Role resource from. | +**Sid** | **string**| The SID of the Role resource to delete. | ### Return type @@ -799,7 +799,7 @@ Name | Type | Description | Notes ## DeleteService -> DeleteService(ctx, sid) +> DeleteService(ctx, Sid) @@ -809,7 +809,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Service resource to delete. | +**Sid** | **string**| The SID of the Service resource to delete. | ### Return type @@ -831,7 +831,7 @@ Name | Type | Description | Notes ## DeleteUser -> DeleteUser(ctx, serviceSid, sid) +> DeleteUser(ctx, ServiceSid, Sid) @@ -841,8 +841,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the User resource from. | -**sid** | **string**| The SID of the User resource to delete. This value can be either the `sid` or the `identity` of the User resource to delete. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the User resource from. | +**Sid** | **string**| The SID of the User resource to delete. This value can be either the `sid` or the `identity` of the User resource to delete. | ### Return type @@ -864,7 +864,7 @@ Name | Type | Description | Notes ## DeleteUserBinding -> DeleteUserBinding(ctx, serviceSid, userSid, sid) +> DeleteUserBinding(ctx, ServiceSid, UserSid, Sid) @@ -874,9 +874,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the User Binding resource from. | -**userSid** | **string**| The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) with the User Binding resources to delete. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. | -**sid** | **string**| The SID of the User Binding resource to delete. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the User Binding resource from. | +**UserSid** | **string**| The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) with the User Binding resources to delete. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. | +**Sid** | **string**| The SID of the User Binding resource to delete. | ### Return type @@ -898,7 +898,7 @@ Name | Type | Description | Notes ## DeleteUserChannel -> DeleteUserChannel(ctx, serviceSid, userSid, channelSid) +> DeleteUserChannel(ctx, ServiceSid, UserSid, ChannelSid) @@ -910,9 +910,9 @@ Removes User from selected Channel. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. | -**userSid** | **string**| The SID of the [User](https://www.twilio.com/docs/api/chat/rest/users) to read the User Channel resources from. | -**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the resource belongs to. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. | +**UserSid** | **string**| The SID of the [User](https://www.twilio.com/docs/api/chat/rest/users) to read the User Channel resources from. | +**ChannelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/api/chat/rest/channels) the resource belongs to. | ### Return type @@ -934,7 +934,7 @@ Name | Type | Description | Notes ## FetchBinding -> ChatV2ServiceBinding FetchBinding(ctx, serviceSid, sid) +> ChatV2ServiceBinding FetchBinding(ctx, ServiceSid, Sid) @@ -944,8 +944,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Binding resource from. | -**sid** | **string**| The SID of the Binding resource to fetch. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Binding resource from. | +**Sid** | **string**| The SID of the Binding resource to fetch. | ### Return type @@ -967,7 +967,7 @@ Name | Type | Description | Notes ## FetchChannel -> ChatV2ServiceChannel FetchChannel(ctx, serviceSid, sid) +> ChatV2ServiceChannel FetchChannel(ctx, ServiceSid, Sid) @@ -977,8 +977,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Channel resource from. | -**sid** | **string**| The SID of the Channel resource to fetch. This value can be either the `sid` or the `unique_name` of the Channel resource to fetch. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Channel resource from. | +**Sid** | **string**| The SID of the Channel resource to fetch. This value can be either the `sid` or the `unique_name` of the Channel resource to fetch. | ### Return type @@ -1000,7 +1000,7 @@ Name | Type | Description | Notes ## FetchChannelWebhook -> ChatV2ServiceChannelChannelWebhook FetchChannelWebhook(ctx, serviceSid, channelSid, sid) +> ChatV2ServiceChannelChannelWebhook FetchChannelWebhook(ctx, ServiceSid, ChannelSid, Sid) @@ -1010,9 +1010,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel to fetch the Webhook resource from. | -**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook resource to fetch belongs to. This value can be the Channel resource's `sid` or `unique_name`. | -**sid** | **string**| The SID of the Channel Webhook resource to fetch. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel to fetch the Webhook resource from. | +**ChannelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook resource to fetch belongs to. This value can be the Channel resource's `sid` or `unique_name`. | +**Sid** | **string**| The SID of the Channel Webhook resource to fetch. | ### Return type @@ -1034,7 +1034,7 @@ Name | Type | Description | Notes ## FetchCredential -> ChatV2Credential FetchCredential(ctx, sid) +> ChatV2Credential FetchCredential(ctx, Sid) @@ -1044,7 +1044,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Credential resource to fetch. | +**Sid** | **string**| The SID of the Credential resource to fetch. | ### Return type @@ -1066,7 +1066,7 @@ Name | Type | Description | Notes ## FetchInvite -> ChatV2ServiceChannelInvite FetchInvite(ctx, serviceSid, channelSid, sid) +> ChatV2ServiceChannelInvite FetchInvite(ctx, ServiceSid, ChannelSid, Sid) @@ -1076,9 +1076,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Invite resource from. | -**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Invite resource to fetch belongs to. This value can be the Channel resource's `sid` or `unique_name`. | -**sid** | **string**| The SID of the Invite resource to fetch. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Invite resource from. | +**ChannelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Invite resource to fetch belongs to. This value can be the Channel resource's `sid` or `unique_name`. | +**Sid** | **string**| The SID of the Invite resource to fetch. | ### Return type @@ -1100,7 +1100,7 @@ Name | Type | Description | Notes ## FetchMember -> ChatV2ServiceChannelMember FetchMember(ctx, serviceSid, channelSid, sid) +> ChatV2ServiceChannelMember FetchMember(ctx, ServiceSid, ChannelSid, Sid) @@ -1110,9 +1110,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Member resource from. | -**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Member resource to fetch belongs to. This value can be the Channel resource's `sid` or `unique_name`. | -**sid** | **string**| The SID of the Member resource to fetch. This value can be either the Member's `sid` or its `identity` value. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Member resource from. | +**ChannelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Member resource to fetch belongs to. This value can be the Channel resource's `sid` or `unique_name`. | +**Sid** | **string**| The SID of the Member resource to fetch. This value can be either the Member's `sid` or its `identity` value. | ### Return type @@ -1134,7 +1134,7 @@ Name | Type | Description | Notes ## FetchMessage -> ChatV2ServiceChannelMessage FetchMessage(ctx, serviceSid, channelSid, sid) +> ChatV2ServiceChannelMessage FetchMessage(ctx, ServiceSid, ChannelSid, Sid) @@ -1144,9 +1144,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Message resource from. | -**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Message resource to fetch belongs to. This value can be the Channel resource's `sid` or `unique_name`. | -**sid** | **string**| The SID of the Message resource to fetch. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Message resource from. | +**ChannelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Message resource to fetch belongs to. This value can be the Channel resource's `sid` or `unique_name`. | +**Sid** | **string**| The SID of the Message resource to fetch. | ### Return type @@ -1168,7 +1168,7 @@ Name | Type | Description | Notes ## FetchRole -> ChatV2ServiceRole FetchRole(ctx, serviceSid, sid) +> ChatV2ServiceRole FetchRole(ctx, ServiceSid, Sid) @@ -1178,8 +1178,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Role resource from. | -**sid** | **string**| The SID of the Role resource to fetch. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the Role resource from. | +**Sid** | **string**| The SID of the Role resource to fetch. | ### Return type @@ -1201,7 +1201,7 @@ Name | Type | Description | Notes ## FetchService -> ChatV2Service FetchService(ctx, sid) +> ChatV2Service FetchService(ctx, Sid) @@ -1211,7 +1211,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Service resource to fetch. | +**Sid** | **string**| The SID of the Service resource to fetch. | ### Return type @@ -1233,7 +1233,7 @@ Name | Type | Description | Notes ## FetchUser -> ChatV2ServiceUser FetchUser(ctx, serviceSid, sid) +> ChatV2ServiceUser FetchUser(ctx, ServiceSid, Sid) @@ -1243,8 +1243,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the User resource from. | -**sid** | **string**| The SID of the User resource to fetch. This value can be either the `sid` or the `identity` of the User resource to fetch. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the User resource from. | +**Sid** | **string**| The SID of the User resource to fetch. This value can be either the `sid` or the `identity` of the User resource to fetch. | ### Return type @@ -1266,7 +1266,7 @@ Name | Type | Description | Notes ## FetchUserBinding -> ChatV2ServiceUserUserBinding FetchUserBinding(ctx, serviceSid, userSid, sid) +> ChatV2ServiceUserUserBinding FetchUserBinding(ctx, ServiceSid, UserSid, Sid) @@ -1276,9 +1276,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the User Binding resource from. | -**userSid** | **string**| The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) with the User Binding resource to fetch. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. | -**sid** | **string**| The SID of the User Binding resource to fetch. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the User Binding resource from. | +**UserSid** | **string**| The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) with the User Binding resource to fetch. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. | +**Sid** | **string**| The SID of the User Binding resource to fetch. | ### Return type @@ -1300,7 +1300,7 @@ Name | Type | Description | Notes ## FetchUserChannel -> ChatV2ServiceUserUserChannel FetchUserChannel(ctx, serviceSid, userSid, channelSid) +> ChatV2ServiceUserUserChannel FetchUserChannel(ctx, ServiceSid, UserSid, ChannelSid) @@ -1310,9 +1310,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the User Channel resource from. | -**userSid** | **string**| The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) to fetch the User Channel resource from. This value can be either the `sid` or the `identity` of the User resource. | -**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) that has the User Channel to fetch. This value can be either the `sid` or the `unique_name` of the Channel to fetch. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the User Channel resource from. | +**UserSid** | **string**| The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) to fetch the User Channel resource from. This value can be either the `sid` or the `identity` of the User resource. | +**ChannelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) that has the User Channel to fetch. This value can be either the `sid` or the `unique_name` of the Channel to fetch. | ### Return type @@ -1334,7 +1334,7 @@ Name | Type | Description | Notes ## ListBinding -> ChatV2ServiceBindingReadResponse ListBinding(ctx, serviceSid, optional) +> ChatV2ServiceBindingReadResponse ListBinding(ctx, ServiceSid, optional) @@ -1344,7 +1344,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Binding resources from. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Binding resources from. | **optional** | ***ListBindingOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1355,9 +1355,9 @@ Optional parameters are passed through a pointer to a ListBindingOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **bindingType** | [**optional.Interface of []string**](string.md)| The push technology used by the Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. | - **identity** | [**optional.Interface of []string**](string.md)| The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **BindingType** | [**optional.Interface of []string**](string.md)| The push technology used by the Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. | + **Identity** | [**optional.Interface of []string**](string.md)| The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1379,7 +1379,7 @@ Name | Type | Description | Notes ## ListChannel -> ChatV2ServiceChannelReadResponse ListChannel(ctx, serviceSid, optional) +> ChatV2ServiceChannelReadResponse ListChannel(ctx, ServiceSid, optional) @@ -1389,7 +1389,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Channel resources from. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Channel resources from. | **optional** | ***ListChannelOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1400,8 +1400,8 @@ Optional parameters are passed through a pointer to a ListChannelOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **type_** | [**optional.Interface of []string**](string.md)| The visibility of the Channels to read. Can be: `public` or `private` and defaults to `public`. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Type** | [**optional.Interface of []string**](string.md)| The visibility of the Channels to read. Can be: `public` or `private` and defaults to `public`. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1423,7 +1423,7 @@ Name | Type | Description | Notes ## ListChannelWebhook -> ChatV2ServiceChannelChannelWebhookReadResponse ListChannelWebhook(ctx, serviceSid, channelSid, optional) +> ChatV2ServiceChannelChannelWebhookReadResponse ListChannelWebhook(ctx, ServiceSid, ChannelSid, optional) @@ -1433,8 +1433,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel to read the resources from. | -**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook resources to read belong to. This value can be the Channel resource's `sid` or `unique_name`. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel to read the resources from. | +**ChannelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook resources to read belong to. This value can be the Channel resource's `sid` or `unique_name`. | **optional** | ***ListChannelWebhookOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1446,7 +1446,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1487,7 +1487,7 @@ Optional parameters are passed through a pointer to a ListCredentialOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1509,7 +1509,7 @@ Name | Type | Description | Notes ## ListInvite -> ChatV2ServiceChannelInviteReadResponse ListInvite(ctx, serviceSid, channelSid, optional) +> ChatV2ServiceChannelInviteReadResponse ListInvite(ctx, ServiceSid, ChannelSid, optional) @@ -1519,8 +1519,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Invite resources from. | -**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Invite resources to read belong to. This value can be the Channel resource's `sid` or `unique_name`. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Invite resources from. | +**ChannelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Invite resources to read belong to. This value can be the Channel resource's `sid` or `unique_name`. | **optional** | ***ListInviteOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1532,8 +1532,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **identity** | [**optional.Interface of []string**](string.md)| The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Identity** | [**optional.Interface of []string**](string.md)| The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1555,7 +1555,7 @@ Name | Type | Description | Notes ## ListMember -> ChatV2ServiceChannelMemberReadResponse ListMember(ctx, serviceSid, channelSid, optional) +> ChatV2ServiceChannelMemberReadResponse ListMember(ctx, ServiceSid, ChannelSid, optional) @@ -1565,8 +1565,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Member resources from. | -**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Member resources to read belong to. This value can be the Channel resource's `sid` or `unique_name`. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Member resources from. | +**ChannelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Member resources to read belong to. This value can be the Channel resource's `sid` or `unique_name`. | **optional** | ***ListMemberOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1578,8 +1578,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **identity** | [**optional.Interface of []string**](string.md)| The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the Member resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Identity** | [**optional.Interface of []string**](string.md)| The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the Member resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1601,7 +1601,7 @@ Name | Type | Description | Notes ## ListMessage -> ChatV2ServiceChannelMessageReadResponse ListMessage(ctx, serviceSid, channelSid, optional) +> ChatV2ServiceChannelMessageReadResponse ListMessage(ctx, ServiceSid, ChannelSid, optional) @@ -1611,8 +1611,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Message resources from. | -**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Message resource to read belongs to. This value can be the Channel resource's `sid` or `unique_name`. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Message resources from. | +**ChannelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Message resource to read belongs to. This value can be the Channel resource's `sid` or `unique_name`. | **optional** | ***ListMessageOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1624,8 +1624,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **order** | **optional.String**| The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending) with `asc` as the default. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Order** | **optional.String**| The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending) with `asc` as the default. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1647,7 +1647,7 @@ Name | Type | Description | Notes ## ListRole -> ChatV2ServiceRoleReadResponse ListRole(ctx, serviceSid, optional) +> ChatV2ServiceRoleReadResponse ListRole(ctx, ServiceSid, optional) @@ -1657,7 +1657,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Role resources from. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Role resources from. | **optional** | ***ListRoleOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1668,7 +1668,7 @@ Optional parameters are passed through a pointer to a ListRoleOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1709,7 +1709,7 @@ Optional parameters are passed through a pointer to a ListServiceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1731,7 +1731,7 @@ Name | Type | Description | Notes ## ListUser -> ChatV2ServiceUserReadResponse ListUser(ctx, serviceSid, optional) +> ChatV2ServiceUserReadResponse ListUser(ctx, ServiceSid, optional) @@ -1741,7 +1741,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the User resources from. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the User resources from. | **optional** | ***ListUserOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1752,7 +1752,7 @@ Optional parameters are passed through a pointer to a ListUserOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1774,7 +1774,7 @@ Name | Type | Description | Notes ## ListUserBinding -> ChatV2ServiceUserUserBindingReadResponse ListUserBinding(ctx, serviceSid, userSid, optional) +> ChatV2ServiceUserUserBindingReadResponse ListUserBinding(ctx, ServiceSid, UserSid, optional) @@ -1784,8 +1784,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the User Binding resources from. | -**userSid** | **string**| The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) with the User Binding resources to read. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the User Binding resources from. | +**UserSid** | **string**| The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) with the User Binding resources to read. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. | **optional** | ***ListUserBindingOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1797,8 +1797,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **bindingType** | [**optional.Interface of []string**](string.md)| The push technology used by the User Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **BindingType** | [**optional.Interface of []string**](string.md)| The push technology used by the User Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1820,7 +1820,7 @@ Name | Type | Description | Notes ## ListUserChannel -> ChatV2ServiceUserUserChannelReadResponse ListUserChannel(ctx, serviceSid, userSid, optional) +> ChatV2ServiceUserUserChannelReadResponse ListUserChannel(ctx, ServiceSid, UserSid, optional) @@ -1832,8 +1832,8 @@ List all Channels for a given User. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the User Channel resources from. | -**userSid** | **string**| The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) to read the User Channel resources from. This value can be either the `sid` or the `identity` of the User resource. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the User Channel resources from. | +**UserSid** | **string**| The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) to read the User Channel resources from. This value can be either the `sid` or the `identity` of the User resource. | **optional** | ***ListUserChannelOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1845,7 +1845,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1867,7 +1867,7 @@ Name | Type | Description | Notes ## UpdateChannel -> ChatV2ServiceChannel UpdateChannel(ctx, serviceSid, sid, optional) +> ChatV2ServiceChannel UpdateChannel(ctx, ServiceSid, Sid, optional) @@ -1877,8 +1877,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the Channel resource in. | -**sid** | **string**| The SID of the Channel resource to update. This value can be either the `sid` or the `unique_name` of the Channel resource to update. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the Channel resource in. | +**Sid** | **string**| The SID of the Channel resource to update. This value can be either the `sid` or the `unique_name` of the Channel resource to update. | **optional** | ***UpdateChannelOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1890,13 +1890,13 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | - **attributes** | **optional.String**| A valid JSON string that contains application-specific data. | - **createdBy** | **optional.String**| The `identity` of the User that created the channel. Default is: `system`. | - **dateCreated** | **optional.Time**| The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. Note that this should only be used in cases where a Channel is being recreated from a backup/separate source. | - **dateUpdated** | **optional.Time**| The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 256 characters long. | - **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. This value must be 256 characters or less in length and unique within the Service. | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **Attributes** | **optional.String**| A valid JSON string that contains application-specific data. | + **CreatedBy** | **optional.String**| The `identity` of the User that created the channel. Default is: `system`. | + **DateCreated** | **optional.Time**| The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. Note that this should only be used in cases where a Channel is being recreated from a backup/separate source. | + **DateUpdated** | **optional.Time**| The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 256 characters long. | + **UniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. This value must be 256 characters or less in length and unique within the Service. | ### Return type @@ -1918,7 +1918,7 @@ Name | Type | Description | Notes ## UpdateChannelWebhook -> ChatV2ServiceChannelChannelWebhook UpdateChannelWebhook(ctx, serviceSid, channelSid, sid, optional) +> ChatV2ServiceChannelChannelWebhook UpdateChannelWebhook(ctx, ServiceSid, ChannelSid, Sid, optional) @@ -1928,9 +1928,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel that has the Webhook resource to update. | -**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook resource to update belongs to. This value can be the Channel resource's `sid` or `unique_name`. | -**sid** | **string**| The SID of the Channel Webhook resource to update. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel that has the Webhook resource to update. | +**ChannelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook resource to update belongs to. This value can be the Channel resource's `sid` or `unique_name`. | +**Sid** | **string**| The SID of the Channel Webhook resource to update. | **optional** | ***UpdateChannelWebhookOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1943,12 +1943,12 @@ Name | Type | Description | Notes - **configurationFilters** | [**optional.Interface of []string**](string.md)| The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger). | - **configurationFlowSid** | **optional.String**| The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` = `studio`. | - **configurationMethod** | **optional.String**| The HTTP method used to call `configuration.url`. Can be: `GET` or `POST` and the default is `POST`. | - **configurationRetryCount** | **optional.Int32**| The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0. | - **configurationTriggers** | [**optional.Interface of []string**](string.md)| A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`. | - **configurationUrl** | **optional.String**| The URL of the webhook to call using the `configuration.method`. | + **ConfigurationFilters** | [**optional.Interface of []string**](string.md)| The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger). | + **ConfigurationFlowSid** | **optional.String**| The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` = `studio`. | + **ConfigurationMethod** | **optional.String**| The HTTP method used to call `configuration.url`. Can be: `GET` or `POST` and the default is `POST`. | + **ConfigurationRetryCount** | **optional.Int32**| The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0. | + **ConfigurationTriggers** | [**optional.Interface of []string**](string.md)| A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`. | + **ConfigurationUrl** | **optional.String**| The URL of the webhook to call using the `configuration.method`. | ### Return type @@ -1970,7 +1970,7 @@ Name | Type | Description | Notes ## UpdateCredential -> ChatV2Credential UpdateCredential(ctx, sid, optional) +> ChatV2Credential UpdateCredential(ctx, Sid, optional) @@ -1980,7 +1980,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Credential resource to update. | +**Sid** | **string**| The SID of the Credential resource to update. | **optional** | ***UpdateCredentialOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1991,12 +1991,12 @@ Optional parameters are passed through a pointer to a UpdateCredentialOpts struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiKey** | **optional.String**| [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. | - **certificate** | **optional.String**| [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== -----END CERTIFICATE-----` | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | - **privateKey** | **optional.String**| [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fG... -----END RSA PRIVATE KEY-----` | - **sandbox** | **optional.Bool**| [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. | - **secret** | **optional.String**| [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. | + **ApiKey** | **optional.String**| [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. | + **Certificate** | **optional.String**| [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== -----END CERTIFICATE-----` | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **PrivateKey** | **optional.String**| [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fG... -----END RSA PRIVATE KEY-----` | + **Sandbox** | **optional.Bool**| [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. | + **Secret** | **optional.String**| [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. | ### Return type @@ -2018,7 +2018,7 @@ Name | Type | Description | Notes ## UpdateMember -> ChatV2ServiceChannelMember UpdateMember(ctx, serviceSid, channelSid, sid, optional) +> ChatV2ServiceChannelMember UpdateMember(ctx, ServiceSid, ChannelSid, Sid, optional) @@ -2028,9 +2028,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the Member resource in. | -**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Member resource to update belongs to. This value can be the Channel resource's `sid` or `unique_name`. | -**sid** | **string**| The SID of the Member resource to update. This value can be either the Member's `sid` or its `identity` value. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the Member resource in. | +**ChannelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Member resource to update belongs to. This value can be the Channel resource's `sid` or `unique_name`. | +**Sid** | **string**| The SID of the Member resource to update. This value can be either the Member's `sid` or its `identity` value. | **optional** | ***UpdateMemberOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2043,13 +2043,13 @@ Name | Type | Description | Notes - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | - **attributes** | **optional.String**| A valid JSON string that contains application-specific data. | - **dateCreated** | **optional.Time**| The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. Note that this parameter should only be used when a Member is being recreated from a backup/separate source. | - **dateUpdated** | **optional.Time**| The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. | - **lastConsumedMessageIndex** | **optional.Int32**| The index of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) that the Member has read within the [Channel](https://www.twilio.com/docs/chat/channels). | - **lastConsumptionTimestamp** | **optional.Time**| The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) read event for the Member within the [Channel](https://www.twilio.com/docs/chat/channels). | - **roleSid** | **optional.String**| The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/rest/service-resource). | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **Attributes** | **optional.String**| A valid JSON string that contains application-specific data. | + **DateCreated** | **optional.Time**| The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. Note that this parameter should only be used when a Member is being recreated from a backup/separate source. | + **DateUpdated** | **optional.Time**| The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. | + **LastConsumedMessageIndex** | **optional.Int32**| The index of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) that the Member has read within the [Channel](https://www.twilio.com/docs/chat/channels). | + **LastConsumptionTimestamp** | **optional.Time**| The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) read event for the Member within the [Channel](https://www.twilio.com/docs/chat/channels). | + **RoleSid** | **optional.String**| The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the member. The default roles are those specified on the [Service](https://www.twilio.com/docs/chat/rest/service-resource). | ### Return type @@ -2071,7 +2071,7 @@ Name | Type | Description | Notes ## UpdateMessage -> ChatV2ServiceChannelMessage UpdateMessage(ctx, serviceSid, channelSid, sid, optional) +> ChatV2ServiceChannelMessage UpdateMessage(ctx, ServiceSid, ChannelSid, Sid, optional) @@ -2081,9 +2081,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the Message resource in. | -**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Message resource to update belongs to. This value can be the Channel resource's `sid` or `unique_name`. | -**sid** | **string**| The SID of the Message resource to update. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the Message resource in. | +**ChannelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Message resource to update belongs to. This value can be the Channel resource's `sid` or `unique_name`. | +**Sid** | **string**| The SID of the Message resource to update. | **optional** | ***UpdateMessageOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2096,13 +2096,13 @@ Name | Type | Description | Notes - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | - **attributes** | **optional.String**| A valid JSON string that contains application-specific data. | - **body** | **optional.String**| The message to send to the channel. Can be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string. | - **dateCreated** | **optional.Time**| The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. This parameter should only be used when a Chat's history is being recreated from a backup/separate source. | - **dateUpdated** | **optional.Time**| The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. | - **from** | **optional.String**| The [Identity](https://www.twilio.com/docs/chat/identity) of the message's author. | - **lastUpdatedBy** | **optional.String**| The [Identity](https://www.twilio.com/docs/chat/identity) of the User who last updated the Message, if applicable. | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **Attributes** | **optional.String**| A valid JSON string that contains application-specific data. | + **Body** | **optional.String**| The message to send to the channel. Can be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string. | + **DateCreated** | **optional.Time**| The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. This parameter should only be used when a Chat's history is being recreated from a backup/separate source. | + **DateUpdated** | **optional.Time**| The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. | + **From** | **optional.String**| The [Identity](https://www.twilio.com/docs/chat/identity) of the message's author. | + **LastUpdatedBy** | **optional.String**| The [Identity](https://www.twilio.com/docs/chat/identity) of the User who last updated the Message, if applicable. | ### Return type @@ -2124,7 +2124,7 @@ Name | Type | Description | Notes ## UpdateRole -> ChatV2ServiceRole UpdateRole(ctx, serviceSid, sid, optional) +> ChatV2ServiceRole UpdateRole(ctx, ServiceSid, Sid, optional) @@ -2134,8 +2134,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the Role resource in. | -**sid** | **string**| The SID of the Role resource to update. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the Role resource in. | +**Sid** | **string**| The SID of the Role resource to update. | **optional** | ***UpdateRoleOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2147,7 +2147,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **permission** | [**optional.Interface of []string**](string.md)| A permission that you grant to the role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. Note that the update action replaces all previously assigned permissions with those defined in the update action. To remove a permission, do not include it in the subsequent update action. The values for this parameter depend on the role's `type`. | + **Permission** | [**optional.Interface of []string**](string.md)| A permission that you grant to the role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. Note that the update action replaces all previously assigned permissions with those defined in the update action. To remove a permission, do not include it in the subsequent update action. The values for this parameter depend on the role's `type`. | ### Return type @@ -2169,7 +2169,7 @@ Name | Type | Description | Notes ## UpdateService -> ChatV2Service UpdateService(ctx, sid, optional) +> ChatV2Service UpdateService(ctx, Sid, optional) @@ -2179,7 +2179,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Service resource to update. | +**Sid** | **string**| The SID of the Service resource to update. | **optional** | ***UpdateServiceOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2190,37 +2190,37 @@ Optional parameters are passed through a pointer to a UpdateServiceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **consumptionReportInterval** | **optional.Int32**| DEPRECATED. The interval in seconds between consumption reports submission batches from client endpoints. | - **defaultChannelCreatorRoleSid** | **optional.String**| The channel role assigned to a channel creator when they join a new channel. See the [Role resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info about roles. | - **defaultChannelRoleSid** | **optional.String**| The channel role assigned to users when they are added to a channel. See the [Role resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info about roles. | - **defaultServiceRoleSid** | **optional.String**| The service role assigned to users when they are added to the service. See the [Role resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info about roles. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. | - **limitsChannelMembers** | **optional.Int32**| The maximum number of Members that can be added to Channels within this Service. Can be up to 1,000. | - **limitsUserChannels** | **optional.Int32**| The maximum number of Channels Users can be a Member of within this Service. Can be up to 1,000. | - **mediaCompatibilityMessage** | **optional.String**| The message to send when a media message has no text. Can be used as placeholder message. | - **notificationsAddedToChannelEnabled** | **optional.Bool**| Whether to send a notification when a member is added to a channel. The default is `false`. | - **notificationsAddedToChannelSound** | **optional.String**| The name of the sound to play when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. | - **notificationsAddedToChannelTemplate** | **optional.String**| The template to use to create the notification text displayed when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. | - **notificationsInvitedToChannelEnabled** | **optional.Bool**| Whether to send a notification when a user is invited to a channel. The default is `false`. | - **notificationsInvitedToChannelSound** | **optional.String**| The name of the sound to play when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. | - **notificationsInvitedToChannelTemplate** | **optional.String**| The template to use to create the notification text displayed when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. | - **notificationsLogEnabled** | **optional.Bool**| Whether to log notifications. The default is `false`. | - **notificationsNewMessageBadgeCountEnabled** | **optional.Bool**| Whether the new message badge is enabled. The default is `false`. | - **notificationsNewMessageEnabled** | **optional.Bool**| Whether to send a notification when a new message is added to a channel. The default is `false`. | - **notificationsNewMessageSound** | **optional.String**| The name of the sound to play when a new message is added to a channel and `notifications.new_message.enabled` is `true`. | - **notificationsNewMessageTemplate** | **optional.String**| The template to use to create the notification text displayed when a new message is added to a channel and `notifications.new_message.enabled` is `true`. | - **notificationsRemovedFromChannelEnabled** | **optional.Bool**| Whether to send a notification to a user when they are removed from a channel. The default is `false`. | - **notificationsRemovedFromChannelSound** | **optional.String**| The name of the sound to play to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. | - **notificationsRemovedFromChannelTemplate** | **optional.String**| The template to use to create the notification text displayed to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. | - **postWebhookRetryCount** | **optional.Int32**| The number of times to retry a call to the `post_webhook_url` if the request times out (after 5 seconds) or it receives a 429, 503, or 504 HTTP response. The default is 0, which means the call won't be retried. | - **postWebhookUrl** | **optional.String**| The URL for post-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. | - **preWebhookRetryCount** | **optional.Int32**| The number of times to retry a call to the `pre_webhook_url` if the request times out (after 5 seconds) or it receives a 429, 503, or 504 HTTP response. Default retry count is 0 times, which means the call won't be retried. | - **preWebhookUrl** | **optional.String**| The URL for pre-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. | - **reachabilityEnabled** | **optional.Bool**| Whether to enable the [Reachability Indicator](https://www.twilio.com/docs/chat/reachability-indicator) for this Service instance. The default is `false`. | - **readStatusEnabled** | **optional.Bool**| Whether to enable the [Message Consumption Horizon](https://www.twilio.com/docs/chat/consumption-horizon) feature. The default is `true`. | - **typingIndicatorTimeout** | **optional.Int32**| How long in seconds after a `started typing` event until clients should assume that user is no longer typing, even if no `ended typing` message was received. The default is 5 seconds. | - **webhookFilters** | [**optional.Interface of []string**](string.md)| The list of webhook events that are enabled for this Service instance. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. | - **webhookMethod** | **optional.String**| The HTTP method to use for calls to the `pre_webhook_url` and `post_webhook_url` webhooks. Can be: `POST` or `GET` and the default is `POST`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. | + **ConsumptionReportInterval** | **optional.Int32**| DEPRECATED. The interval in seconds between consumption reports submission batches from client endpoints. | + **DefaultChannelCreatorRoleSid** | **optional.String**| The channel role assigned to a channel creator when they join a new channel. See the [Role resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info about roles. | + **DefaultChannelRoleSid** | **optional.String**| The channel role assigned to users when they are added to a channel. See the [Role resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info about roles. | + **DefaultServiceRoleSid** | **optional.String**| The service role assigned to users when they are added to the service. See the [Role resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info about roles. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. | + **LimitsChannelMembers** | **optional.Int32**| The maximum number of Members that can be added to Channels within this Service. Can be up to 1,000. | + **LimitsUserChannels** | **optional.Int32**| The maximum number of Channels Users can be a Member of within this Service. Can be up to 1,000. | + **MediaCompatibilityMessage** | **optional.String**| The message to send when a media message has no text. Can be used as placeholder message. | + **NotificationsAddedToChannelEnabled** | **optional.Bool**| Whether to send a notification when a member is added to a channel. The default is `false`. | + **NotificationsAddedToChannelSound** | **optional.String**| The name of the sound to play when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. | + **NotificationsAddedToChannelTemplate** | **optional.String**| The template to use to create the notification text displayed when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. | + **NotificationsInvitedToChannelEnabled** | **optional.Bool**| Whether to send a notification when a user is invited to a channel. The default is `false`. | + **NotificationsInvitedToChannelSound** | **optional.String**| The name of the sound to play when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. | + **NotificationsInvitedToChannelTemplate** | **optional.String**| The template to use to create the notification text displayed when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. | + **NotificationsLogEnabled** | **optional.Bool**| Whether to log notifications. The default is `false`. | + **NotificationsNewMessageBadgeCountEnabled** | **optional.Bool**| Whether the new message badge is enabled. The default is `false`. | + **NotificationsNewMessageEnabled** | **optional.Bool**| Whether to send a notification when a new message is added to a channel. The default is `false`. | + **NotificationsNewMessageSound** | **optional.String**| The name of the sound to play when a new message is added to a channel and `notifications.new_message.enabled` is `true`. | + **NotificationsNewMessageTemplate** | **optional.String**| The template to use to create the notification text displayed when a new message is added to a channel and `notifications.new_message.enabled` is `true`. | + **NotificationsRemovedFromChannelEnabled** | **optional.Bool**| Whether to send a notification to a user when they are removed from a channel. The default is `false`. | + **NotificationsRemovedFromChannelSound** | **optional.String**| The name of the sound to play to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. | + **NotificationsRemovedFromChannelTemplate** | **optional.String**| The template to use to create the notification text displayed to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. | + **PostWebhookRetryCount** | **optional.Int32**| The number of times to retry a call to the `post_webhook_url` if the request times out (after 5 seconds) or it receives a 429, 503, or 504 HTTP response. The default is 0, which means the call won't be retried. | + **PostWebhookUrl** | **optional.String**| The URL for post-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. | + **PreWebhookRetryCount** | **optional.Int32**| The number of times to retry a call to the `pre_webhook_url` if the request times out (after 5 seconds) or it receives a 429, 503, or 504 HTTP response. Default retry count is 0 times, which means the call won't be retried. | + **PreWebhookUrl** | **optional.String**| The URL for pre-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. | + **ReachabilityEnabled** | **optional.Bool**| Whether to enable the [Reachability Indicator](https://www.twilio.com/docs/chat/reachability-indicator) for this Service instance. The default is `false`. | + **ReadStatusEnabled** | **optional.Bool**| Whether to enable the [Message Consumption Horizon](https://www.twilio.com/docs/chat/consumption-horizon) feature. The default is `true`. | + **TypingIndicatorTimeout** | **optional.Int32**| How long in seconds after a `started typing` event until clients should assume that user is no longer typing, even if no `ended typing` message was received. The default is 5 seconds. | + **WebhookFilters** | [**optional.Interface of []string**](string.md)| The list of webhook events that are enabled for this Service instance. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. | + **WebhookMethod** | **optional.String**| The HTTP method to use for calls to the `pre_webhook_url` and `post_webhook_url` webhooks. Can be: `POST` or `GET` and the default is `POST`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. | ### Return type @@ -2242,7 +2242,7 @@ Name | Type | Description | Notes ## UpdateUser -> ChatV2ServiceUser UpdateUser(ctx, serviceSid, sid, optional) +> ChatV2ServiceUser UpdateUser(ctx, ServiceSid, Sid, optional) @@ -2252,8 +2252,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the User resource in. | -**sid** | **string**| The SID of the User resource to update. This value can be either the `sid` or the `identity` of the User resource to update. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the User resource in. | +**Sid** | **string**| The SID of the User resource to update. This value can be either the `sid` or the `identity` of the User resource to update. | **optional** | ***UpdateUserOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2265,10 +2265,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | - **attributes** | **optional.String**| A valid JSON string that contains application-specific data. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is often used for display purposes. | - **roleSid** | **optional.String**| The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the User. | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **Attributes** | **optional.String**| A valid JSON string that contains application-specific data. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is often used for display purposes. | + **RoleSid** | **optional.String**| The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the User. | ### Return type @@ -2290,7 +2290,7 @@ Name | Type | Description | Notes ## UpdateUserChannel -> ChatV2ServiceUserUserChannel UpdateUserChannel(ctx, serviceSid, userSid, channelSid, optional) +> ChatV2ServiceUserUserChannel UpdateUserChannel(ctx, ServiceSid, UserSid, ChannelSid, optional) @@ -2300,9 +2300,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the User Channel resource in. | -**userSid** | **string**| The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) to update the User Channel resource from. This value can be either the `sid` or the `identity` of the User resource. | -**channelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) with the User Channel resource to update. This value can be the Channel resource's `sid` or `unique_name`. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the User Channel resource in. | +**UserSid** | **string**| The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) to update the User Channel resource from. This value can be either the `sid` or the `identity` of the User resource. | +**ChannelSid** | **string**| The SID of the [Channel](https://www.twilio.com/docs/chat/channels) with the User Channel resource to update. This value can be the Channel resource's `sid` or `unique_name`. | **optional** | ***UpdateUserChannelOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2315,9 +2315,9 @@ Name | Type | Description | Notes - **lastConsumedMessageIndex** | **optional.Int32**| The index of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) in the [Channel](https://www.twilio.com/docs/chat/channels) that the Member has read. | - **lastConsumptionTimestamp** | **optional.Time**| The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) read event for the Member within the [Channel](https://www.twilio.com/docs/chat/channels). | - **notificationLevel** | **optional.String**| The push notification level to assign to the User Channel. Can be: `default` or `muted`. | + **LastConsumedMessageIndex** | **optional.Int32**| The index of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) in the [Channel](https://www.twilio.com/docs/chat/channels) that the Member has read. | + **LastConsumptionTimestamp** | **optional.Time**| The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp of the last [Message](https://www.twilio.com/docs/chat/rest/message-resource) read event for the Member within the [Channel](https://www.twilio.com/docs/chat/channels). | + **NotificationLevel** | **optional.String**| The push notification level to assign to the User Channel. Can be: `default` or `muted`. | ### Return type diff --git a/rest/chat/v2/model_chat_v2_credential.go b/rest/chat/v2/model_chat_v2_credential.go index e6221b960..dc430e638 100644 --- a/rest/chat/v2/model_chat_v2_credential.go +++ b/rest/chat/v2/model_chat_v2_credential.go @@ -14,12 +14,12 @@ import ( ) // ChatV2Credential struct for ChatV2Credential type ChatV2Credential struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Sandbox string `json:"sandbox,omitempty"` - Sid string `json:"sid,omitempty"` - Type string `json:"type,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Sandbox string `json:"Sandbox,omitempty"` + Sid string `json:"Sid,omitempty"` + Type string `json:"Type,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/chat/v2/model_chat_v2_credential_read_response.go b/rest/chat/v2/model_chat_v2_credential_read_response.go index e11a0e477..399b64534 100644 --- a/rest/chat/v2/model_chat_v2_credential_read_response.go +++ b/rest/chat/v2/model_chat_v2_credential_read_response.go @@ -11,6 +11,6 @@ package openapi // ChatV2CredentialReadResponse struct for ChatV2CredentialReadResponse type ChatV2CredentialReadResponse struct { - Credentials []ChatV2Credential `json:"credentials,omitempty"` - Meta ChatV2CredentialReadResponseMeta `json:"meta,omitempty"` + Credentials []ChatV2Credential `json:"Credentials,omitempty"` + Meta ChatV2CredentialReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/chat/v2/model_chat_v2_credential_read_response_meta.go b/rest/chat/v2/model_chat_v2_credential_read_response_meta.go index 56c923fa1..fb82f202b 100644 --- a/rest/chat/v2/model_chat_v2_credential_read_response_meta.go +++ b/rest/chat/v2/model_chat_v2_credential_read_response_meta.go @@ -11,11 +11,11 @@ package openapi // ChatV2CredentialReadResponseMeta struct for ChatV2CredentialReadResponseMeta type ChatV2CredentialReadResponseMeta struct { - FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` - NextPageUrl string `json:"next_page_url,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUrl string `json:"previous_page_url,omitempty"` - Url string `json:"url,omitempty"` + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/chat/v2/model_chat_v2_service.go b/rest/chat/v2/model_chat_v2_service.go index 522de53b6..9aa378d8f 100644 --- a/rest/chat/v2/model_chat_v2_service.go +++ b/rest/chat/v2/model_chat_v2_service.go @@ -14,27 +14,27 @@ import ( ) // ChatV2Service struct for ChatV2Service type ChatV2Service struct { - AccountSid string `json:"account_sid,omitempty"` - ConsumptionReportInterval int32 `json:"consumption_report_interval,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - DefaultChannelCreatorRoleSid string `json:"default_channel_creator_role_sid,omitempty"` - DefaultChannelRoleSid string `json:"default_channel_role_sid,omitempty"` - DefaultServiceRoleSid string `json:"default_service_role_sid,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Limits map[string]interface{} `json:"limits,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Media map[string]interface{} `json:"media,omitempty"` - Notifications map[string]interface{} `json:"notifications,omitempty"` - PostWebhookRetryCount int32 `json:"post_webhook_retry_count,omitempty"` - PostWebhookUrl string `json:"post_webhook_url,omitempty"` - PreWebhookRetryCount int32 `json:"pre_webhook_retry_count,omitempty"` - PreWebhookUrl string `json:"pre_webhook_url,omitempty"` - ReachabilityEnabled bool `json:"reachability_enabled,omitempty"` - ReadStatusEnabled bool `json:"read_status_enabled,omitempty"` - Sid string `json:"sid,omitempty"` - TypingIndicatorTimeout int32 `json:"typing_indicator_timeout,omitempty"` - Url string `json:"url,omitempty"` - WebhookFilters []string `json:"webhook_filters,omitempty"` - WebhookMethod string `json:"webhook_method,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ConsumptionReportInterval int32 `json:"ConsumptionReportInterval,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + DefaultChannelCreatorRoleSid string `json:"DefaultChannelCreatorRoleSid,omitempty"` + DefaultChannelRoleSid string `json:"DefaultChannelRoleSid,omitempty"` + DefaultServiceRoleSid string `json:"DefaultServiceRoleSid,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Limits map[string]interface{} `json:"Limits,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Media map[string]interface{} `json:"Media,omitempty"` + Notifications map[string]interface{} `json:"Notifications,omitempty"` + PostWebhookRetryCount int32 `json:"PostWebhookRetryCount,omitempty"` + PostWebhookUrl string `json:"PostWebhookUrl,omitempty"` + PreWebhookRetryCount int32 `json:"PreWebhookRetryCount,omitempty"` + PreWebhookUrl string `json:"PreWebhookUrl,omitempty"` + ReachabilityEnabled bool `json:"ReachabilityEnabled,omitempty"` + ReadStatusEnabled bool `json:"ReadStatusEnabled,omitempty"` + Sid string `json:"Sid,omitempty"` + TypingIndicatorTimeout int32 `json:"TypingIndicatorTimeout,omitempty"` + Url string `json:"Url,omitempty"` + WebhookFilters []string `json:"WebhookFilters,omitempty"` + WebhookMethod string `json:"WebhookMethod,omitempty"` } diff --git a/rest/chat/v2/model_chat_v2_service_binding.go b/rest/chat/v2/model_chat_v2_service_binding.go index cdae7e25f..8bcf3af04 100644 --- a/rest/chat/v2/model_chat_v2_service_binding.go +++ b/rest/chat/v2/model_chat_v2_service_binding.go @@ -14,16 +14,16 @@ import ( ) // ChatV2ServiceBinding struct for ChatV2ServiceBinding type ChatV2ServiceBinding struct { - AccountSid string `json:"account_sid,omitempty"` - BindingType string `json:"binding_type,omitempty"` - CredentialSid string `json:"credential_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Endpoint string `json:"endpoint,omitempty"` - Identity string `json:"identity,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - MessageTypes []string `json:"message_types,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + BindingType string `json:"BindingType,omitempty"` + CredentialSid string `json:"CredentialSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Endpoint string `json:"Endpoint,omitempty"` + Identity string `json:"Identity,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + MessageTypes []string `json:"MessageTypes,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/chat/v2/model_chat_v2_service_binding_read_response.go b/rest/chat/v2/model_chat_v2_service_binding_read_response.go index 9f8e5e637..3a9c638f2 100644 --- a/rest/chat/v2/model_chat_v2_service_binding_read_response.go +++ b/rest/chat/v2/model_chat_v2_service_binding_read_response.go @@ -11,6 +11,6 @@ package openapi // ChatV2ServiceBindingReadResponse struct for ChatV2ServiceBindingReadResponse type ChatV2ServiceBindingReadResponse struct { - Bindings []ChatV2ServiceBinding `json:"bindings,omitempty"` - Meta ChatV2CredentialReadResponseMeta `json:"meta,omitempty"` + Bindings []ChatV2ServiceBinding `json:"Bindings,omitempty"` + Meta ChatV2CredentialReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/chat/v2/model_chat_v2_service_channel.go b/rest/chat/v2/model_chat_v2_service_channel.go index 4dd7e75c5..8030f304f 100644 --- a/rest/chat/v2/model_chat_v2_service_channel.go +++ b/rest/chat/v2/model_chat_v2_service_channel.go @@ -14,18 +14,18 @@ import ( ) // ChatV2ServiceChannel struct for ChatV2ServiceChannel type ChatV2ServiceChannel struct { - AccountSid string `json:"account_sid,omitempty"` - Attributes string `json:"attributes,omitempty"` - CreatedBy string `json:"created_by,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - MembersCount int32 `json:"members_count,omitempty"` - MessagesCount int32 `json:"messages_count,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Type string `json:"type,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Attributes string `json:"Attributes,omitempty"` + CreatedBy string `json:"CreatedBy,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + MembersCount int32 `json:"MembersCount,omitempty"` + MessagesCount int32 `json:"MessagesCount,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Type string `json:"Type,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/chat/v2/model_chat_v2_service_channel_channel_webhook.go b/rest/chat/v2/model_chat_v2_service_channel_channel_webhook.go index 87c593e5b..c6694c39b 100644 --- a/rest/chat/v2/model_chat_v2_service_channel_channel_webhook.go +++ b/rest/chat/v2/model_chat_v2_service_channel_channel_webhook.go @@ -14,13 +14,13 @@ import ( ) // ChatV2ServiceChannelChannelWebhook struct for ChatV2ServiceChannelChannelWebhook type ChatV2ServiceChannelChannelWebhook struct { - AccountSid string `json:"account_sid,omitempty"` - ChannelSid string `json:"channel_sid,omitempty"` - Configuration map[string]interface{} `json:"configuration,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Type string `json:"type,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ChannelSid string `json:"ChannelSid,omitempty"` + Configuration map[string]interface{} `json:"Configuration,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Type string `json:"Type,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/chat/v2/model_chat_v2_service_channel_channel_webhook_read_response.go b/rest/chat/v2/model_chat_v2_service_channel_channel_webhook_read_response.go index b27151944..709aad94d 100644 --- a/rest/chat/v2/model_chat_v2_service_channel_channel_webhook_read_response.go +++ b/rest/chat/v2/model_chat_v2_service_channel_channel_webhook_read_response.go @@ -11,6 +11,6 @@ package openapi // ChatV2ServiceChannelChannelWebhookReadResponse struct for ChatV2ServiceChannelChannelWebhookReadResponse type ChatV2ServiceChannelChannelWebhookReadResponse struct { - Meta ChatV2CredentialReadResponseMeta `json:"meta,omitempty"` - Webhooks []ChatV2ServiceChannelChannelWebhook `json:"webhooks,omitempty"` + Meta ChatV2CredentialReadResponseMeta `json:"Meta,omitempty"` + Webhooks []ChatV2ServiceChannelChannelWebhook `json:"Webhooks,omitempty"` } diff --git a/rest/chat/v2/model_chat_v2_service_channel_invite.go b/rest/chat/v2/model_chat_v2_service_channel_invite.go index d280b3e5c..035fb0fb1 100644 --- a/rest/chat/v2/model_chat_v2_service_channel_invite.go +++ b/rest/chat/v2/model_chat_v2_service_channel_invite.go @@ -14,14 +14,14 @@ import ( ) // ChatV2ServiceChannelInvite struct for ChatV2ServiceChannelInvite type ChatV2ServiceChannelInvite struct { - AccountSid string `json:"account_sid,omitempty"` - ChannelSid string `json:"channel_sid,omitempty"` - CreatedBy string `json:"created_by,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Identity string `json:"identity,omitempty"` - RoleSid string `json:"role_sid,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ChannelSid string `json:"ChannelSid,omitempty"` + CreatedBy string `json:"CreatedBy,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Identity string `json:"Identity,omitempty"` + RoleSid string `json:"RoleSid,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/chat/v2/model_chat_v2_service_channel_invite_read_response.go b/rest/chat/v2/model_chat_v2_service_channel_invite_read_response.go index f5eae68df..230eafa0b 100644 --- a/rest/chat/v2/model_chat_v2_service_channel_invite_read_response.go +++ b/rest/chat/v2/model_chat_v2_service_channel_invite_read_response.go @@ -11,6 +11,6 @@ package openapi // ChatV2ServiceChannelInviteReadResponse struct for ChatV2ServiceChannelInviteReadResponse type ChatV2ServiceChannelInviteReadResponse struct { - Invites []ChatV2ServiceChannelInvite `json:"invites,omitempty"` - Meta ChatV2CredentialReadResponseMeta `json:"meta,omitempty"` + Invites []ChatV2ServiceChannelInvite `json:"Invites,omitempty"` + Meta ChatV2CredentialReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/chat/v2/model_chat_v2_service_channel_member.go b/rest/chat/v2/model_chat_v2_service_channel_member.go index 952ed554b..b80317906 100644 --- a/rest/chat/v2/model_chat_v2_service_channel_member.go +++ b/rest/chat/v2/model_chat_v2_service_channel_member.go @@ -14,16 +14,16 @@ import ( ) // ChatV2ServiceChannelMember struct for ChatV2ServiceChannelMember type ChatV2ServiceChannelMember struct { - AccountSid string `json:"account_sid,omitempty"` - Attributes string `json:"attributes,omitempty"` - ChannelSid string `json:"channel_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Identity string `json:"identity,omitempty"` - LastConsumedMessageIndex *int32 `json:"last_consumed_message_index,omitempty"` - LastConsumptionTimestamp time.Time `json:"last_consumption_timestamp,omitempty"` - RoleSid string `json:"role_sid,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Attributes string `json:"Attributes,omitempty"` + ChannelSid string `json:"ChannelSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Identity string `json:"Identity,omitempty"` + LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` + LastConsumptionTimestamp time.Time `json:"LastConsumptionTimestamp,omitempty"` + RoleSid string `json:"RoleSid,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/chat/v2/model_chat_v2_service_channel_member_read_response.go b/rest/chat/v2/model_chat_v2_service_channel_member_read_response.go index 4675eb796..faa70c2f0 100644 --- a/rest/chat/v2/model_chat_v2_service_channel_member_read_response.go +++ b/rest/chat/v2/model_chat_v2_service_channel_member_read_response.go @@ -11,6 +11,6 @@ package openapi // ChatV2ServiceChannelMemberReadResponse struct for ChatV2ServiceChannelMemberReadResponse type ChatV2ServiceChannelMemberReadResponse struct { - Members []ChatV2ServiceChannelMember `json:"members,omitempty"` - Meta ChatV2CredentialReadResponseMeta `json:"meta,omitempty"` + Members []ChatV2ServiceChannelMember `json:"Members,omitempty"` + Meta ChatV2CredentialReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/chat/v2/model_chat_v2_service_channel_message.go b/rest/chat/v2/model_chat_v2_service_channel_message.go index 7dbb3bc65..d318d43de 100644 --- a/rest/chat/v2/model_chat_v2_service_channel_message.go +++ b/rest/chat/v2/model_chat_v2_service_channel_message.go @@ -14,20 +14,20 @@ import ( ) // ChatV2ServiceChannelMessage struct for ChatV2ServiceChannelMessage type ChatV2ServiceChannelMessage struct { - AccountSid string `json:"account_sid,omitempty"` - Attributes string `json:"attributes,omitempty"` - Body string `json:"body,omitempty"` - ChannelSid string `json:"channel_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - From string `json:"from,omitempty"` - Index int32 `json:"index,omitempty"` - LastUpdatedBy string `json:"last_updated_by,omitempty"` - Media map[string]interface{} `json:"media,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - To string `json:"to,omitempty"` - Type string `json:"type,omitempty"` - Url string `json:"url,omitempty"` - WasEdited bool `json:"was_edited,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Attributes string `json:"Attributes,omitempty"` + Body string `json:"Body,omitempty"` + ChannelSid string `json:"ChannelSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + From string `json:"From,omitempty"` + Index int32 `json:"Index,omitempty"` + LastUpdatedBy string `json:"LastUpdatedBy,omitempty"` + Media map[string]interface{} `json:"Media,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + To string `json:"To,omitempty"` + Type string `json:"Type,omitempty"` + Url string `json:"Url,omitempty"` + WasEdited bool `json:"WasEdited,omitempty"` } diff --git a/rest/chat/v2/model_chat_v2_service_channel_message_read_response.go b/rest/chat/v2/model_chat_v2_service_channel_message_read_response.go index 567211b84..45275d636 100644 --- a/rest/chat/v2/model_chat_v2_service_channel_message_read_response.go +++ b/rest/chat/v2/model_chat_v2_service_channel_message_read_response.go @@ -11,6 +11,6 @@ package openapi // ChatV2ServiceChannelMessageReadResponse struct for ChatV2ServiceChannelMessageReadResponse type ChatV2ServiceChannelMessageReadResponse struct { - Messages []ChatV2ServiceChannelMessage `json:"messages,omitempty"` - Meta ChatV2CredentialReadResponseMeta `json:"meta,omitempty"` + Messages []ChatV2ServiceChannelMessage `json:"Messages,omitempty"` + Meta ChatV2CredentialReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/chat/v2/model_chat_v2_service_channel_read_response.go b/rest/chat/v2/model_chat_v2_service_channel_read_response.go index f70f62abe..d5cb1b35f 100644 --- a/rest/chat/v2/model_chat_v2_service_channel_read_response.go +++ b/rest/chat/v2/model_chat_v2_service_channel_read_response.go @@ -11,6 +11,6 @@ package openapi // ChatV2ServiceChannelReadResponse struct for ChatV2ServiceChannelReadResponse type ChatV2ServiceChannelReadResponse struct { - Channels []ChatV2ServiceChannel `json:"channels,omitempty"` - Meta ChatV2CredentialReadResponseMeta `json:"meta,omitempty"` + Channels []ChatV2ServiceChannel `json:"Channels,omitempty"` + Meta ChatV2CredentialReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/chat/v2/model_chat_v2_service_read_response.go b/rest/chat/v2/model_chat_v2_service_read_response.go index 9b4fe980b..44815d4b2 100644 --- a/rest/chat/v2/model_chat_v2_service_read_response.go +++ b/rest/chat/v2/model_chat_v2_service_read_response.go @@ -11,6 +11,6 @@ package openapi // ChatV2ServiceReadResponse struct for ChatV2ServiceReadResponse type ChatV2ServiceReadResponse struct { - Meta ChatV2CredentialReadResponseMeta `json:"meta,omitempty"` - Services []ChatV2Service `json:"services,omitempty"` + Meta ChatV2CredentialReadResponseMeta `json:"Meta,omitempty"` + Services []ChatV2Service `json:"Services,omitempty"` } diff --git a/rest/chat/v2/model_chat_v2_service_role.go b/rest/chat/v2/model_chat_v2_service_role.go index 584881943..d88069fd5 100644 --- a/rest/chat/v2/model_chat_v2_service_role.go +++ b/rest/chat/v2/model_chat_v2_service_role.go @@ -14,13 +14,13 @@ import ( ) // ChatV2ServiceRole struct for ChatV2ServiceRole type ChatV2ServiceRole struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Permissions []string `json:"permissions,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Type string `json:"type,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Permissions []string `json:"Permissions,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Type string `json:"Type,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/chat/v2/model_chat_v2_service_role_read_response.go b/rest/chat/v2/model_chat_v2_service_role_read_response.go index 5f2953a55..4d31a5d3a 100644 --- a/rest/chat/v2/model_chat_v2_service_role_read_response.go +++ b/rest/chat/v2/model_chat_v2_service_role_read_response.go @@ -11,6 +11,6 @@ package openapi // ChatV2ServiceRoleReadResponse struct for ChatV2ServiceRoleReadResponse type ChatV2ServiceRoleReadResponse struct { - Meta ChatV2CredentialReadResponseMeta `json:"meta,omitempty"` - Roles []ChatV2ServiceRole `json:"roles,omitempty"` + Meta ChatV2CredentialReadResponseMeta `json:"Meta,omitempty"` + Roles []ChatV2ServiceRole `json:"Roles,omitempty"` } diff --git a/rest/chat/v2/model_chat_v2_service_user.go b/rest/chat/v2/model_chat_v2_service_user.go index 79f460ef3..e6bd1fc1b 100644 --- a/rest/chat/v2/model_chat_v2_service_user.go +++ b/rest/chat/v2/model_chat_v2_service_user.go @@ -14,18 +14,18 @@ import ( ) // ChatV2ServiceUser struct for ChatV2ServiceUser type ChatV2ServiceUser struct { - AccountSid string `json:"account_sid,omitempty"` - Attributes string `json:"attributes,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Identity string `json:"identity,omitempty"` - IsNotifiable bool `json:"is_notifiable,omitempty"` - IsOnline bool `json:"is_online,omitempty"` - JoinedChannelsCount int32 `json:"joined_channels_count,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - RoleSid string `json:"role_sid,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Attributes string `json:"Attributes,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Identity string `json:"Identity,omitempty"` + IsNotifiable bool `json:"IsNotifiable,omitempty"` + IsOnline bool `json:"IsOnline,omitempty"` + JoinedChannelsCount int32 `json:"JoinedChannelsCount,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + RoleSid string `json:"RoleSid,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/chat/v2/model_chat_v2_service_user_read_response.go b/rest/chat/v2/model_chat_v2_service_user_read_response.go index 0e45b9f12..3e6308bee 100644 --- a/rest/chat/v2/model_chat_v2_service_user_read_response.go +++ b/rest/chat/v2/model_chat_v2_service_user_read_response.go @@ -11,6 +11,6 @@ package openapi // ChatV2ServiceUserReadResponse struct for ChatV2ServiceUserReadResponse type ChatV2ServiceUserReadResponse struct { - Meta ChatV2CredentialReadResponseMeta `json:"meta,omitempty"` - Users []ChatV2ServiceUser `json:"users,omitempty"` + Meta ChatV2CredentialReadResponseMeta `json:"Meta,omitempty"` + Users []ChatV2ServiceUser `json:"Users,omitempty"` } diff --git a/rest/chat/v2/model_chat_v2_service_user_user_binding.go b/rest/chat/v2/model_chat_v2_service_user_user_binding.go index 3758a29a2..38b0acc59 100644 --- a/rest/chat/v2/model_chat_v2_service_user_user_binding.go +++ b/rest/chat/v2/model_chat_v2_service_user_user_binding.go @@ -14,16 +14,16 @@ import ( ) // ChatV2ServiceUserUserBinding struct for ChatV2ServiceUserUserBinding type ChatV2ServiceUserUserBinding struct { - AccountSid string `json:"account_sid,omitempty"` - BindingType string `json:"binding_type,omitempty"` - CredentialSid string `json:"credential_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Endpoint string `json:"endpoint,omitempty"` - Identity string `json:"identity,omitempty"` - MessageTypes []string `json:"message_types,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` - UserSid string `json:"user_sid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + BindingType string `json:"BindingType,omitempty"` + CredentialSid string `json:"CredentialSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Endpoint string `json:"Endpoint,omitempty"` + Identity string `json:"Identity,omitempty"` + MessageTypes []string `json:"MessageTypes,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` + UserSid string `json:"UserSid,omitempty"` } diff --git a/rest/chat/v2/model_chat_v2_service_user_user_binding_read_response.go b/rest/chat/v2/model_chat_v2_service_user_user_binding_read_response.go index 65bd02a3f..879353583 100644 --- a/rest/chat/v2/model_chat_v2_service_user_user_binding_read_response.go +++ b/rest/chat/v2/model_chat_v2_service_user_user_binding_read_response.go @@ -11,6 +11,6 @@ package openapi // ChatV2ServiceUserUserBindingReadResponse struct for ChatV2ServiceUserUserBindingReadResponse type ChatV2ServiceUserUserBindingReadResponse struct { - Bindings []ChatV2ServiceUserUserBinding `json:"bindings,omitempty"` - Meta ChatV2CredentialReadResponseMeta `json:"meta,omitempty"` + Bindings []ChatV2ServiceUserUserBinding `json:"Bindings,omitempty"` + Meta ChatV2CredentialReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/chat/v2/model_chat_v2_service_user_user_channel.go b/rest/chat/v2/model_chat_v2_service_user_user_channel.go index 5432dfe20..e6aad44ac 100644 --- a/rest/chat/v2/model_chat_v2_service_user_user_channel.go +++ b/rest/chat/v2/model_chat_v2_service_user_user_channel.go @@ -11,15 +11,15 @@ package openapi // ChatV2ServiceUserUserChannel struct for ChatV2ServiceUserUserChannel type ChatV2ServiceUserUserChannel struct { - AccountSid string `json:"account_sid,omitempty"` - ChannelSid string `json:"channel_sid,omitempty"` - LastConsumedMessageIndex *int32 `json:"last_consumed_message_index,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - MemberSid string `json:"member_sid,omitempty"` - NotificationLevel string `json:"notification_level,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Status string `json:"status,omitempty"` - UnreadMessagesCount *int32 `json:"unread_messages_count,omitempty"` - Url string `json:"url,omitempty"` - UserSid string `json:"user_sid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ChannelSid string `json:"ChannelSid,omitempty"` + LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + MemberSid string `json:"MemberSid,omitempty"` + NotificationLevel string `json:"NotificationLevel,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Status string `json:"Status,omitempty"` + UnreadMessagesCount *int32 `json:"UnreadMessagesCount,omitempty"` + Url string `json:"Url,omitempty"` + UserSid string `json:"UserSid,omitempty"` } diff --git a/rest/chat/v2/model_chat_v2_service_user_user_channel_read_response.go b/rest/chat/v2/model_chat_v2_service_user_user_channel_read_response.go index 405c45937..138e9ade9 100644 --- a/rest/chat/v2/model_chat_v2_service_user_user_channel_read_response.go +++ b/rest/chat/v2/model_chat_v2_service_user_user_channel_read_response.go @@ -11,6 +11,6 @@ package openapi // ChatV2ServiceUserUserChannelReadResponse struct for ChatV2ServiceUserUserChannelReadResponse type ChatV2ServiceUserUserChannelReadResponse struct { - Channels []ChatV2ServiceUserUserChannel `json:"channels,omitempty"` - Meta ChatV2CredentialReadResponseMeta `json:"meta,omitempty"` + Channels []ChatV2ServiceUserUserChannel `json:"Channels,omitempty"` + Meta ChatV2CredentialReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/chat/v2/model_create_channel_webhook_request.go b/rest/chat/v2/model_create_channel_webhook_request.go index 8abff84e7..bb0ac2c4a 100644 --- a/rest/chat/v2/model_create_channel_webhook_request.go +++ b/rest/chat/v2/model_create_channel_webhook_request.go @@ -12,17 +12,17 @@ package openapi // CreateChannelWebhookRequest struct for CreateChannelWebhookRequest type CreateChannelWebhookRequest struct { // The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger). - ConfigurationFilters []string `json:"Configuration.Filters,omitempty"` + ConfigurationFilters []string `json:"ConfigurationFilters,omitempty"` // The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` is `studio`. - ConfigurationFlowSid string `json:"Configuration.FlowSid,omitempty"` + ConfigurationFlowSid string `json:"ConfigurationFlowSid,omitempty"` // The HTTP method used to call `configuration.url`. Can be: `GET` or `POST` and the default is `POST`. - ConfigurationMethod string `json:"Configuration.Method,omitempty"` + ConfigurationMethod string `json:"ConfigurationMethod,omitempty"` // The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0. - ConfigurationRetryCount int32 `json:"Configuration.RetryCount,omitempty"` + ConfigurationRetryCount int32 `json:"ConfigurationRetryCount,omitempty"` // A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`. - ConfigurationTriggers []string `json:"Configuration.Triggers,omitempty"` + ConfigurationTriggers []string `json:"ConfigurationTriggers,omitempty"` // The URL of the webhook to call using the `configuration.method`. - ConfigurationUrl string `json:"Configuration.Url,omitempty"` + ConfigurationUrl string `json:"ConfigurationUrl,omitempty"` // The type of webhook. Can be: `webhook`, `studio`, or `trigger`. Type string `json:"Type"` } diff --git a/rest/chat/v2/model_update_channel_webhook_request.go b/rest/chat/v2/model_update_channel_webhook_request.go index bce8ba0e1..6b183b360 100644 --- a/rest/chat/v2/model_update_channel_webhook_request.go +++ b/rest/chat/v2/model_update_channel_webhook_request.go @@ -12,15 +12,15 @@ package openapi // UpdateChannelWebhookRequest struct for UpdateChannelWebhookRequest type UpdateChannelWebhookRequest struct { // The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger). - ConfigurationFilters []string `json:"Configuration.Filters,omitempty"` + ConfigurationFilters []string `json:"ConfigurationFilters,omitempty"` // The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` = `studio`. - ConfigurationFlowSid string `json:"Configuration.FlowSid,omitempty"` + ConfigurationFlowSid string `json:"ConfigurationFlowSid,omitempty"` // The HTTP method used to call `configuration.url`. Can be: `GET` or `POST` and the default is `POST`. - ConfigurationMethod string `json:"Configuration.Method,omitempty"` + ConfigurationMethod string `json:"ConfigurationMethod,omitempty"` // The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0. - ConfigurationRetryCount int32 `json:"Configuration.RetryCount,omitempty"` + ConfigurationRetryCount int32 `json:"ConfigurationRetryCount,omitempty"` // A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`. - ConfigurationTriggers []string `json:"Configuration.Triggers,omitempty"` + ConfigurationTriggers []string `json:"ConfigurationTriggers,omitempty"` // The URL of the webhook to call using the `configuration.method`. - ConfigurationUrl string `json:"Configuration.Url,omitempty"` + ConfigurationUrl string `json:"ConfigurationUrl,omitempty"` } diff --git a/rest/chat/v2/model_update_service_request.go b/rest/chat/v2/model_update_service_request.go index 6e3c4b46a..5b2e4a3d8 100644 --- a/rest/chat/v2/model_update_service_request.go +++ b/rest/chat/v2/model_update_service_request.go @@ -22,39 +22,39 @@ type UpdateServiceRequest struct { // A descriptive string that you create to describe the resource. FriendlyName string `json:"FriendlyName,omitempty"` // The maximum number of Members that can be added to Channels within this Service. Can be up to 1,000. - LimitsChannelMembers int32 `json:"Limits.ChannelMembers,omitempty"` + LimitsChannelMembers int32 `json:"LimitsChannelMembers,omitempty"` // The maximum number of Channels Users can be a Member of within this Service. Can be up to 1,000. - LimitsUserChannels int32 `json:"Limits.UserChannels,omitempty"` + LimitsUserChannels int32 `json:"LimitsUserChannels,omitempty"` // The message to send when a media message has no text. Can be used as placeholder message. - MediaCompatibilityMessage string `json:"Media.CompatibilityMessage,omitempty"` + MediaCompatibilityMessage string `json:"MediaCompatibilityMessage,omitempty"` // Whether to send a notification when a member is added to a channel. The default is `false`. - NotificationsAddedToChannelEnabled bool `json:"Notifications.AddedToChannel.Enabled,omitempty"` + NotificationsAddedToChannelEnabled bool `json:"NotificationsAddedToChannelEnabled,omitempty"` // The name of the sound to play when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. - NotificationsAddedToChannelSound string `json:"Notifications.AddedToChannel.Sound,omitempty"` + NotificationsAddedToChannelSound string `json:"NotificationsAddedToChannelSound,omitempty"` // The template to use to create the notification text displayed when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. - NotificationsAddedToChannelTemplate string `json:"Notifications.AddedToChannel.Template,omitempty"` + NotificationsAddedToChannelTemplate string `json:"NotificationsAddedToChannelTemplate,omitempty"` // Whether to send a notification when a user is invited to a channel. The default is `false`. - NotificationsInvitedToChannelEnabled bool `json:"Notifications.InvitedToChannel.Enabled,omitempty"` + NotificationsInvitedToChannelEnabled bool `json:"NotificationsInvitedToChannelEnabled,omitempty"` // The name of the sound to play when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. - NotificationsInvitedToChannelSound string `json:"Notifications.InvitedToChannel.Sound,omitempty"` + NotificationsInvitedToChannelSound string `json:"NotificationsInvitedToChannelSound,omitempty"` // The template to use to create the notification text displayed when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. - NotificationsInvitedToChannelTemplate string `json:"Notifications.InvitedToChannel.Template,omitempty"` + NotificationsInvitedToChannelTemplate string `json:"NotificationsInvitedToChannelTemplate,omitempty"` // Whether to log notifications. The default is `false`. - NotificationsLogEnabled bool `json:"Notifications.LogEnabled,omitempty"` + NotificationsLogEnabled bool `json:"NotificationsLogEnabled,omitempty"` // Whether the new message badge is enabled. The default is `false`. - NotificationsNewMessageBadgeCountEnabled bool `json:"Notifications.NewMessage.BadgeCountEnabled,omitempty"` + NotificationsNewMessageBadgeCountEnabled bool `json:"NotificationsNewMessageBadgeCountEnabled,omitempty"` // Whether to send a notification when a new message is added to a channel. The default is `false`. - NotificationsNewMessageEnabled bool `json:"Notifications.NewMessage.Enabled,omitempty"` + NotificationsNewMessageEnabled bool `json:"NotificationsNewMessageEnabled,omitempty"` // The name of the sound to play when a new message is added to a channel and `notifications.new_message.enabled` is `true`. - NotificationsNewMessageSound string `json:"Notifications.NewMessage.Sound,omitempty"` + NotificationsNewMessageSound string `json:"NotificationsNewMessageSound,omitempty"` // The template to use to create the notification text displayed when a new message is added to a channel and `notifications.new_message.enabled` is `true`. - NotificationsNewMessageTemplate string `json:"Notifications.NewMessage.Template,omitempty"` + NotificationsNewMessageTemplate string `json:"NotificationsNewMessageTemplate,omitempty"` // Whether to send a notification to a user when they are removed from a channel. The default is `false`. - NotificationsRemovedFromChannelEnabled bool `json:"Notifications.RemovedFromChannel.Enabled,omitempty"` + NotificationsRemovedFromChannelEnabled bool `json:"NotificationsRemovedFromChannelEnabled,omitempty"` // The name of the sound to play to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. - NotificationsRemovedFromChannelSound string `json:"Notifications.RemovedFromChannel.Sound,omitempty"` + NotificationsRemovedFromChannelSound string `json:"NotificationsRemovedFromChannelSound,omitempty"` // The template to use to create the notification text displayed to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. - NotificationsRemovedFromChannelTemplate string `json:"Notifications.RemovedFromChannel.Template,omitempty"` + NotificationsRemovedFromChannelTemplate string `json:"NotificationsRemovedFromChannelTemplate,omitempty"` // The number of times to retry a call to the `post_webhook_url` if the request times out (after 5 seconds) or it receives a 429, 503, or 504 HTTP response. The default is 0, which means the call won't be retried. PostWebhookRetryCount int32 `json:"PostWebhookRetryCount,omitempty"` // The URL for post-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. diff --git a/rest/conversations/v1/api_default.go b/rest/conversations/v1/api_default.go index 7664294f6..587f9b2c1 100644 --- a/rest/conversations/v1/api_default.go +++ b/rest/conversations/v1/api_default.go @@ -15,6 +15,8 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" + "time" ) type DefaultApiService struct { @@ -30,15 +32,15 @@ func NewDefaultApiService(client *twilio.Client) *DefaultApiService { } // CreateConversationParams Optional parameters for the method 'CreateConversation' type CreateConversationParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` Attributes *string `json:"Attributes,omitempty"` DateCreated *time.Time `json:"DateCreated,omitempty"` DateUpdated *time.Time `json:"DateUpdated,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` State *string `json:"State,omitempty"` - Timers.Closed *string `json:"Timers.Closed,omitempty"` - Timers.Inactive *string `json:"Timers.Inactive,omitempty"` + TimersClosed *string `json:"TimersClosed,omitempty"` + TimersInactive *string `json:"TimersInactive,omitempty"` UniqueName *string `json:"UniqueName,omitempty"` } @@ -53,47 +55,48 @@ Create a new conversation in your account's default service * @param "FriendlyName" (string) - The human-readable name of this conversation, limited to 256 characters. Optional. * @param "MessagingServiceSid" (string) - The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. * @param "State" (string) - Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` - * @param "Timers.Closed" (string) - ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. - * @param "Timers.Inactive" (string) - ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. + * @param "TimersClosed" (string) - ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. + * @param "TimersInactive" (string) - ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. @return ConversationsV1Conversation */ func (c *DefaultApiService) CreateConversation(params *CreateConversationParams) (*ConversationsV1Conversation, error) { path := "/v1/Conversations" + data := url.Values{} headers := make(map[string]interface{}) if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) + data.Set("DateCreated", fmt.Sprint(*params.DateCreated)) } if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) + data.Set("DateUpdated", fmt.Sprint(*params.DateUpdated)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.MessagingServiceSid != nil { - data.Set("MessagingServiceSid", *params.MessagingServiceSid) + data.Set("MessagingServiceSid", *params.MessagingServiceSid) } if params != nil && params.State != nil { - data.Set("State", *params.State) + data.Set("State", *params.State) } - if params != nil && params.Timers.Closed != nil { - data.Set("Timers.Closed", *params.Timers.Closed) + if params != nil && params.TimersClosed != nil { + data.Set("TimersClosed", *params.TimersClosed) } - if params != nil && params.Timers.Inactive != nil { - data.Set("Timers.Inactive", *params.Timers.Inactive) + if params != nil && params.TimersInactive != nil { + data.Set("TimersInactive", *params.TimersInactive) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -112,7 +115,7 @@ func (c *DefaultApiService) CreateConversation(params *CreateConversationParams) } // CreateConversationMessageParams Optional parameters for the method 'CreateConversationMessage' type CreateConversationMessageParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` Attributes *string `json:"Attributes,omitempty"` Author *string `json:"Author,omitempty"` Body *string `json:"Body,omitempty"` @@ -124,7 +127,7 @@ type CreateConversationMessageParams struct { /* CreateConversationMessage Method for CreateConversationMessage Add a new message to the conversation - * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. + * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. * @param optional nil or *CreateConversationMessageOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. @@ -135,34 +138,35 @@ Add a new message to the conversation * @param "MediaSid" (string) - The Media SID to be attached to the new Message. @return ConversationsV1ConversationConversationMessage */ -func (c *DefaultApiService) CreateConversationMessage(conversationSid string, params *CreateConversationMessageParams) (*ConversationsV1ConversationConversationMessage, error) { +func (c *DefaultApiService) CreateConversationMessage(ConversationSid string, params *CreateConversationMessageParams) (*ConversationsV1ConversationConversationMessage, error) { path := "/v1/Conversations/{ConversationSid}/Messages" - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) + data := url.Values{} headers := make(map[string]interface{}) if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.Author != nil { - data.Set("Author", *params.Author) + data.Set("Author", *params.Author) } if params != nil && params.Body != nil { - data.Set("Body", *params.Body) + data.Set("Body", *params.Body) } if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) + data.Set("DateCreated", fmt.Sprint(*params.DateCreated)) } if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) + data.Set("DateUpdated", fmt.Sprint(*params.DateUpdated)) } if params != nil && params.MediaSid != nil { - data.Set("MediaSid", *params.MediaSid) + data.Set("MediaSid", *params.MediaSid) } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -181,67 +185,68 @@ func (c *DefaultApiService) CreateConversationMessage(conversationSid string, pa } // CreateConversationParticipantParams Optional parameters for the method 'CreateConversationParticipant' type CreateConversationParticipantParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` Attributes *string `json:"Attributes,omitempty"` DateCreated *time.Time `json:"DateCreated,omitempty"` DateUpdated *time.Time `json:"DateUpdated,omitempty"` Identity *string `json:"Identity,omitempty"` - MessagingBinding.Address *string `json:"MessagingBinding.Address,omitempty"` - MessagingBinding.ProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` - MessagingBinding.ProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` + MessagingBindingAddress *string `json:"MessagingBindingAddress,omitempty"` + MessagingBindingProjectedAddress *string `json:"MessagingBindingProjectedAddress,omitempty"` + MessagingBindingProxyAddress *string `json:"MessagingBindingProxyAddress,omitempty"` RoleSid *string `json:"RoleSid,omitempty"` } /* CreateConversationParticipant Method for CreateConversationParticipant Add a new participant to the conversation - * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. + * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. * @param optional nil or *CreateConversationParticipantOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. * @param "DateCreated" (time.Time) - The date that this resource was created. * @param "DateUpdated" (time.Time) - The date that this resource was last updated. * @param "Identity" (string) - A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters. - * @param "MessagingBinding.Address" (string) - The address of the participant's device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). - * @param "MessagingBinding.ProjectedAddress" (string) - The address of the Twilio phone number that is used in Group MMS. Communication mask for the Conversation participant with Identity. - * @param "MessagingBinding.ProxyAddress" (string) - The address of the Twilio phone number (or WhatsApp number) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). + * @param "MessagingBindingAddress" (string) - The address of the participant's device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). + * @param "MessagingBindingProjectedAddress" (string) - The address of the Twilio phone number that is used in Group MMS. Communication mask for the Conversation participant with Identity. + * @param "MessagingBindingProxyAddress" (string) - The address of the Twilio phone number (or WhatsApp number) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). * @param "RoleSid" (string) - The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. @return ConversationsV1ConversationConversationParticipant */ -func (c *DefaultApiService) CreateConversationParticipant(conversationSid string, params *CreateConversationParticipantParams) (*ConversationsV1ConversationConversationParticipant, error) { +func (c *DefaultApiService) CreateConversationParticipant(ConversationSid string, params *CreateConversationParticipantParams) (*ConversationsV1ConversationConversationParticipant, error) { path := "/v1/Conversations/{ConversationSid}/Participants" - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) + data := url.Values{} headers := make(map[string]interface{}) if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) + data.Set("DateCreated", fmt.Sprint(*params.DateCreated)) } if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) + data.Set("DateUpdated", fmt.Sprint(*params.DateUpdated)) } if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) + data.Set("Identity", *params.Identity) } - if params != nil && params.MessagingBinding.Address != nil { - data.Set("MessagingBinding.Address", *params.MessagingBinding.Address) + if params != nil && params.MessagingBindingAddress != nil { + data.Set("MessagingBindingAddress", *params.MessagingBindingAddress) } - if params != nil && params.MessagingBinding.ProjectedAddress != nil { - data.Set("MessagingBinding.ProjectedAddress", *params.MessagingBinding.ProjectedAddress) + if params != nil && params.MessagingBindingProjectedAddress != nil { + data.Set("MessagingBindingProjectedAddress", *params.MessagingBindingProjectedAddress) } - if params != nil && params.MessagingBinding.ProxyAddress != nil { - data.Set("MessagingBinding.ProxyAddress", *params.MessagingBinding.ProxyAddress) + if params != nil && params.MessagingBindingProxyAddress != nil { + data.Set("MessagingBindingProxyAddress", *params.MessagingBindingProxyAddress) } if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) + data.Set("RoleSid", *params.RoleSid) } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -260,56 +265,57 @@ func (c *DefaultApiService) CreateConversationParticipant(conversationSid string } // CreateConversationScopedWebhookParams Optional parameters for the method 'CreateConversationScopedWebhook' type CreateConversationScopedWebhookParams struct { - Configuration.Filters *[]string `json:"Configuration.Filters,omitempty"` - Configuration.FlowSid *string `json:"Configuration.FlowSid,omitempty"` - Configuration.Method *string `json:"Configuration.Method,omitempty"` - Configuration.ReplayAfter *int32 `json:"Configuration.ReplayAfter,omitempty"` - Configuration.Triggers *[]string `json:"Configuration.Triggers,omitempty"` - Configuration.Url *string `json:"Configuration.Url,omitempty"` + ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` + ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` + ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` + ConfigurationReplayAfter *int32 `json:"ConfigurationReplayAfter,omitempty"` + ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` + ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` Target *string `json:"Target,omitempty"` } /* CreateConversationScopedWebhook Method for CreateConversationScopedWebhook Create a new webhook scoped to the conversation - * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. + * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. * @param optional nil or *CreateConversationScopedWebhookOpts - Optional Parameters: - * @param "Configuration.Filters" ([]string) - The list of events, firing webhook event for this Conversation. - * @param "Configuration.FlowSid" (string) - The studio flow SID, where the webhook should be sent to. - * @param "Configuration.Method" (string) - The HTTP method to be used when sending a webhook request. - * @param "Configuration.ReplayAfter" (int32) - The message index for which and it's successors the webhook will be replayed. Not set by default - * @param "Configuration.Triggers" ([]string) - The list of keywords, firing webhook event for this Conversation. - * @param "Configuration.Url" (string) - The absolute url the webhook request should be sent to. + * @param "ConfigurationFilters" ([]string) - The list of events, firing webhook event for this Conversation. + * @param "ConfigurationFlowSid" (string) - The studio flow SID, where the webhook should be sent to. + * @param "ConfigurationMethod" (string) - The HTTP method to be used when sending a webhook request. + * @param "ConfigurationReplayAfter" (int32) - The message index for which and it's successors the webhook will be replayed. Not set by default + * @param "ConfigurationTriggers" ([]string) - The list of keywords, firing webhook event for this Conversation. + * @param "ConfigurationUrl" (string) - The absolute url the webhook request should be sent to. * @param "Target" (string) - The target of this webhook: `webhook`, `studio`, `trigger` @return ConversationsV1ConversationConversationScopedWebhook */ -func (c *DefaultApiService) CreateConversationScopedWebhook(conversationSid string, params *CreateConversationScopedWebhookParams) (*ConversationsV1ConversationConversationScopedWebhook, error) { +func (c *DefaultApiService) CreateConversationScopedWebhook(ConversationSid string, params *CreateConversationScopedWebhookParams) (*ConversationsV1ConversationConversationScopedWebhook, error) { path := "/v1/Conversations/{ConversationSid}/Webhooks" - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) + data := url.Values{} headers := 0 - if params != nil && params.Configuration.Filters != nil { - data.Set("Configuration.Filters", *params.Configuration.Filters) + if params != nil && params.ConfigurationFilters != nil { + data.Set("ConfigurationFilters", strings.Join(*params.ConfigurationFilters, ",")) } - if params != nil && params.Configuration.FlowSid != nil { - data.Set("Configuration.FlowSid", *params.Configuration.FlowSid) + if params != nil && params.ConfigurationFlowSid != nil { + data.Set("ConfigurationFlowSid", *params.ConfigurationFlowSid) } - if params != nil && params.Configuration.Method != nil { - data.Set("Configuration.Method", *params.Configuration.Method) + if params != nil && params.ConfigurationMethod != nil { + data.Set("ConfigurationMethod", *params.ConfigurationMethod) } - if params != nil && params.Configuration.ReplayAfter != nil { - data.Set("Configuration.ReplayAfter", string(*params.Configuration.ReplayAfter)) + if params != nil && params.ConfigurationReplayAfter != nil { + data.Set("ConfigurationReplayAfter", fmt.Sprint(*params.ConfigurationReplayAfter)) } - if params != nil && params.Configuration.Triggers != nil { - data.Set("Configuration.Triggers", *params.Configuration.Triggers) + if params != nil && params.ConfigurationTriggers != nil { + data.Set("ConfigurationTriggers", strings.Join(*params.ConfigurationTriggers, ",")) } - if params != nil && params.Configuration.Url != nil { - data.Set("Configuration.Url", *params.Configuration.Url) + if params != nil && params.ConfigurationUrl != nil { + data.Set("ConfigurationUrl", *params.ConfigurationUrl) } if params != nil && params.Target != nil { - data.Set("Target", *params.Target) + data.Set("Target", *params.Target) } @@ -354,29 +360,30 @@ Add a new push notification credential to your account func (c *DefaultApiService) CreateCredential(params *CreateCredentialParams) (*ConversationsV1Credential, error) { path := "/v1/Credentials" + data := url.Values{} headers := 0 if params != nil && params.ApiKey != nil { - data.Set("ApiKey", *params.ApiKey) + data.Set("ApiKey", *params.ApiKey) } if params != nil && params.Certificate != nil { - data.Set("Certificate", *params.Certificate) + data.Set("Certificate", *params.Certificate) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.PrivateKey != nil { - data.Set("PrivateKey", *params.PrivateKey) + data.Set("PrivateKey", *params.PrivateKey) } if params != nil && params.Sandbox != nil { - data.Set("Sandbox", string(*params.Sandbox)) + data.Set("Sandbox", fmt.Sprint(*params.Sandbox)) } if params != nil && params.Secret != nil { - data.Set("Secret", *params.Secret) + data.Set("Secret", *params.Secret) } if params != nil && params.Type != nil { - data.Set("Type", *params.Type) + data.Set("Type", *params.Type) } @@ -413,17 +420,18 @@ Create a new user role in your account's default service func (c *DefaultApiService) CreateRole(params *CreateRoleParams) (*ConversationsV1Role, error) { path := "/v1/Roles" + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Permission != nil { - data.Set("Permission", *params.Permission) + data.Set("Permission", strings.Join(*params.Permission, ",")) } if params != nil && params.Type != nil { - data.Set("Type", *params.Type) + data.Set("Type", *params.Type) } @@ -456,11 +464,12 @@ Create a new conversation service on your account func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*ConversationsV1Service, error) { path := "/v1/Services" + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -480,22 +489,22 @@ func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*Convers } // CreateServiceConversationParams Optional parameters for the method 'CreateServiceConversation' type CreateServiceConversationParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` Attributes *string `json:"Attributes,omitempty"` DateCreated *time.Time `json:"DateCreated,omitempty"` DateUpdated *time.Time `json:"DateUpdated,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` State *string `json:"State,omitempty"` - Timers.Closed *string `json:"Timers.Closed,omitempty"` - Timers.Inactive *string `json:"Timers.Inactive,omitempty"` + TimersClosed *string `json:"TimersClosed,omitempty"` + TimersInactive *string `json:"TimersInactive,omitempty"` UniqueName *string `json:"UniqueName,omitempty"` } /* CreateServiceConversation Method for CreateServiceConversation Create a new conversation in your service - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. * @param optional nil or *CreateServiceConversationOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. @@ -504,48 +513,49 @@ Create a new conversation in your service * @param "FriendlyName" (string) - The human-readable name of this conversation, limited to 256 characters. Optional. * @param "MessagingServiceSid" (string) - The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. * @param "State" (string) - Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` - * @param "Timers.Closed" (string) - ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. - * @param "Timers.Inactive" (string) - ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. + * @param "TimersClosed" (string) - ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. + * @param "TimersInactive" (string) - ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. @return ConversationsV1ServiceServiceConversation */ -func (c *DefaultApiService) CreateServiceConversation(chatServiceSid string, params *CreateServiceConversationParams) (*ConversationsV1ServiceServiceConversation, error) { +func (c *DefaultApiService) CreateServiceConversation(ChatServiceSid string, params *CreateServiceConversationParams) (*ConversationsV1ServiceServiceConversation, error) { path := "/v1/Services/{ChatServiceSid}/Conversations" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + data := url.Values{} headers := make(map[string]interface{}) if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) + data.Set("DateCreated", fmt.Sprint(*params.DateCreated)) } if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) + data.Set("DateUpdated", fmt.Sprint(*params.DateUpdated)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.MessagingServiceSid != nil { - data.Set("MessagingServiceSid", *params.MessagingServiceSid) + data.Set("MessagingServiceSid", *params.MessagingServiceSid) } if params != nil && params.State != nil { - data.Set("State", *params.State) + data.Set("State", *params.State) } - if params != nil && params.Timers.Closed != nil { - data.Set("Timers.Closed", *params.Timers.Closed) + if params != nil && params.TimersClosed != nil { + data.Set("TimersClosed", *params.TimersClosed) } - if params != nil && params.Timers.Inactive != nil { - data.Set("Timers.Inactive", *params.Timers.Inactive) + if params != nil && params.TimersInactive != nil { + data.Set("TimersInactive", *params.TimersInactive) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -564,7 +574,7 @@ func (c *DefaultApiService) CreateServiceConversation(chatServiceSid string, par } // CreateServiceConversationMessageParams Optional parameters for the method 'CreateServiceConversationMessage' type CreateServiceConversationMessageParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` Attributes *string `json:"Attributes,omitempty"` Author *string `json:"Author,omitempty"` Body *string `json:"Body,omitempty"` @@ -576,8 +586,8 @@ type CreateServiceConversationMessageParams struct { /* CreateServiceConversationMessage Method for CreateServiceConversationMessage Add a new message to the conversation in a specific service - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. - * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. + * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. * @param optional nil or *CreateServiceConversationMessageOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. @@ -588,35 +598,36 @@ Add a new message to the conversation in a specific service * @param "MediaSid" (string) - The Media SID to be attached to the new Message. @return ConversationsV1ServiceServiceConversationServiceConversationMessage */ -func (c *DefaultApiService) CreateServiceConversationMessage(chatServiceSid string, conversationSid string, params *CreateServiceConversationMessageParams) (*ConversationsV1ServiceServiceConversationServiceConversationMessage, error) { +func (c *DefaultApiService) CreateServiceConversationMessage(ChatServiceSid string, ConversationSid string, params *CreateServiceConversationMessageParams) (*ConversationsV1ServiceServiceConversationServiceConversationMessage, error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) + data := url.Values{} headers := make(map[string]interface{}) if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.Author != nil { - data.Set("Author", *params.Author) + data.Set("Author", *params.Author) } if params != nil && params.Body != nil { - data.Set("Body", *params.Body) + data.Set("Body", *params.Body) } if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) + data.Set("DateCreated", fmt.Sprint(*params.DateCreated)) } if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) + data.Set("DateUpdated", fmt.Sprint(*params.DateUpdated)) } if params != nil && params.MediaSid != nil { - data.Set("MediaSid", *params.MediaSid) + data.Set("MediaSid", *params.MediaSid) } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -635,69 +646,70 @@ func (c *DefaultApiService) CreateServiceConversationMessage(chatServiceSid stri } // CreateServiceConversationParticipantParams Optional parameters for the method 'CreateServiceConversationParticipant' type CreateServiceConversationParticipantParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` Attributes *string `json:"Attributes,omitempty"` DateCreated *time.Time `json:"DateCreated,omitempty"` DateUpdated *time.Time `json:"DateUpdated,omitempty"` Identity *string `json:"Identity,omitempty"` - MessagingBinding.Address *string `json:"MessagingBinding.Address,omitempty"` - MessagingBinding.ProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` - MessagingBinding.ProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` + MessagingBindingAddress *string `json:"MessagingBindingAddress,omitempty"` + MessagingBindingProjectedAddress *string `json:"MessagingBindingProjectedAddress,omitempty"` + MessagingBindingProxyAddress *string `json:"MessagingBindingProxyAddress,omitempty"` RoleSid *string `json:"RoleSid,omitempty"` } /* CreateServiceConversationParticipant Method for CreateServiceConversationParticipant Add a new participant to the conversation in a specific service - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. - * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. + * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. * @param optional nil or *CreateServiceConversationParticipantOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. * @param "DateCreated" (time.Time) - The date that this resource was created. * @param "DateUpdated" (time.Time) - The date that this resource was last updated. * @param "Identity" (string) - A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversation SDK to communicate. Limited to 256 characters. - * @param "MessagingBinding.Address" (string) - The address of the participant's device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). - * @param "MessagingBinding.ProjectedAddress" (string) - The address of the Twilio phone number that is used in Group MMS. Communication mask for the Conversation participant with Identity. - * @param "MessagingBinding.ProxyAddress" (string) - The address of the Twilio phone number (or WhatsApp number) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). + * @param "MessagingBindingAddress" (string) - The address of the participant's device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). + * @param "MessagingBindingProjectedAddress" (string) - The address of the Twilio phone number that is used in Group MMS. Communication mask for the Conversation participant with Identity. + * @param "MessagingBindingProxyAddress" (string) - The address of the Twilio phone number (or WhatsApp number) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). * @param "RoleSid" (string) - The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. @return ConversationsV1ServiceServiceConversationServiceConversationParticipant */ -func (c *DefaultApiService) CreateServiceConversationParticipant(chatServiceSid string, conversationSid string, params *CreateServiceConversationParticipantParams) (*ConversationsV1ServiceServiceConversationServiceConversationParticipant, error) { +func (c *DefaultApiService) CreateServiceConversationParticipant(ChatServiceSid string, ConversationSid string, params *CreateServiceConversationParticipantParams) (*ConversationsV1ServiceServiceConversationServiceConversationParticipant, error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) + data := url.Values{} headers := make(map[string]interface{}) if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) + data.Set("DateCreated", fmt.Sprint(*params.DateCreated)) } if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) + data.Set("DateUpdated", fmt.Sprint(*params.DateUpdated)) } if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) + data.Set("Identity", *params.Identity) } - if params != nil && params.MessagingBinding.Address != nil { - data.Set("MessagingBinding.Address", *params.MessagingBinding.Address) + if params != nil && params.MessagingBindingAddress != nil { + data.Set("MessagingBindingAddress", *params.MessagingBindingAddress) } - if params != nil && params.MessagingBinding.ProjectedAddress != nil { - data.Set("MessagingBinding.ProjectedAddress", *params.MessagingBinding.ProjectedAddress) + if params != nil && params.MessagingBindingProjectedAddress != nil { + data.Set("MessagingBindingProjectedAddress", *params.MessagingBindingProjectedAddress) } - if params != nil && params.MessagingBinding.ProxyAddress != nil { - data.Set("MessagingBinding.ProxyAddress", *params.MessagingBinding.ProxyAddress) + if params != nil && params.MessagingBindingProxyAddress != nil { + data.Set("MessagingBindingProxyAddress", *params.MessagingBindingProxyAddress) } if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) + data.Set("RoleSid", *params.RoleSid) } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -716,58 +728,59 @@ func (c *DefaultApiService) CreateServiceConversationParticipant(chatServiceSid } // CreateServiceConversationScopedWebhookParams Optional parameters for the method 'CreateServiceConversationScopedWebhook' type CreateServiceConversationScopedWebhookParams struct { - Configuration.Filters *[]string `json:"Configuration.Filters,omitempty"` - Configuration.FlowSid *string `json:"Configuration.FlowSid,omitempty"` - Configuration.Method *string `json:"Configuration.Method,omitempty"` - Configuration.ReplayAfter *int32 `json:"Configuration.ReplayAfter,omitempty"` - Configuration.Triggers *[]string `json:"Configuration.Triggers,omitempty"` - Configuration.Url *string `json:"Configuration.Url,omitempty"` + ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` + ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` + ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` + ConfigurationReplayAfter *int32 `json:"ConfigurationReplayAfter,omitempty"` + ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` + ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` Target *string `json:"Target,omitempty"` } /* CreateServiceConversationScopedWebhook Method for CreateServiceConversationScopedWebhook Create a new webhook scoped to the conversation in a specific service - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. - * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. + * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. * @param optional nil or *CreateServiceConversationScopedWebhookOpts - Optional Parameters: - * @param "Configuration.Filters" ([]string) - The list of events, firing webhook event for this Conversation. - * @param "Configuration.FlowSid" (string) - The studio flow SID, where the webhook should be sent to. - * @param "Configuration.Method" (string) - The HTTP method to be used when sending a webhook request. - * @param "Configuration.ReplayAfter" (int32) - The message index for which and it's successors the webhook will be replayed. Not set by default - * @param "Configuration.Triggers" ([]string) - The list of keywords, firing webhook event for this Conversation. - * @param "Configuration.Url" (string) - The absolute url the webhook request should be sent to. + * @param "ConfigurationFilters" ([]string) - The list of events, firing webhook event for this Conversation. + * @param "ConfigurationFlowSid" (string) - The studio flow SID, where the webhook should be sent to. + * @param "ConfigurationMethod" (string) - The HTTP method to be used when sending a webhook request. + * @param "ConfigurationReplayAfter" (int32) - The message index for which and it's successors the webhook will be replayed. Not set by default + * @param "ConfigurationTriggers" ([]string) - The list of keywords, firing webhook event for this Conversation. + * @param "ConfigurationUrl" (string) - The absolute url the webhook request should be sent to. * @param "Target" (string) - The target of this webhook: `webhook`, `studio`, `trigger` @return ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook */ -func (c *DefaultApiService) CreateServiceConversationScopedWebhook(chatServiceSid string, conversationSid string, params *CreateServiceConversationScopedWebhookParams) (*ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook, error) { +func (c *DefaultApiService) CreateServiceConversationScopedWebhook(ChatServiceSid string, ConversationSid string, params *CreateServiceConversationScopedWebhookParams) (*ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook, error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) + data := url.Values{} headers := 0 - if params != nil && params.Configuration.Filters != nil { - data.Set("Configuration.Filters", *params.Configuration.Filters) + if params != nil && params.ConfigurationFilters != nil { + data.Set("ConfigurationFilters", strings.Join(*params.ConfigurationFilters, ",")) } - if params != nil && params.Configuration.FlowSid != nil { - data.Set("Configuration.FlowSid", *params.Configuration.FlowSid) + if params != nil && params.ConfigurationFlowSid != nil { + data.Set("ConfigurationFlowSid", *params.ConfigurationFlowSid) } - if params != nil && params.Configuration.Method != nil { - data.Set("Configuration.Method", *params.Configuration.Method) + if params != nil && params.ConfigurationMethod != nil { + data.Set("ConfigurationMethod", *params.ConfigurationMethod) } - if params != nil && params.Configuration.ReplayAfter != nil { - data.Set("Configuration.ReplayAfter", string(*params.Configuration.ReplayAfter)) + if params != nil && params.ConfigurationReplayAfter != nil { + data.Set("ConfigurationReplayAfter", fmt.Sprint(*params.ConfigurationReplayAfter)) } - if params != nil && params.Configuration.Triggers != nil { - data.Set("Configuration.Triggers", *params.Configuration.Triggers) + if params != nil && params.ConfigurationTriggers != nil { + data.Set("ConfigurationTriggers", strings.Join(*params.ConfigurationTriggers, ",")) } - if params != nil && params.Configuration.Url != nil { - data.Set("Configuration.Url", *params.Configuration.Url) + if params != nil && params.ConfigurationUrl != nil { + data.Set("ConfigurationUrl", *params.ConfigurationUrl) } if params != nil && params.Target != nil { - data.Set("Target", *params.Target) + data.Set("Target", *params.Target) } @@ -795,28 +808,29 @@ type CreateServiceRoleParams struct { /* CreateServiceRole Method for CreateServiceRole Create a new user role in your service - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to create the Role resource under. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to create the Role resource under. * @param optional nil or *CreateServiceRoleOpts - Optional Parameters: * @param "FriendlyName" (string) - A descriptive string that you create to describe the new resource. It can be up to 64 characters long. * @param "Permission" ([]string) - A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type`. * @param "Type" (string) - The type of role. Can be: `conversation` for [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) roles or `service` for [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) roles. @return ConversationsV1ServiceServiceRole */ -func (c *DefaultApiService) CreateServiceRole(chatServiceSid string, params *CreateServiceRoleParams) (*ConversationsV1ServiceServiceRole, error) { +func (c *DefaultApiService) CreateServiceRole(ChatServiceSid string, params *CreateServiceRoleParams) (*ConversationsV1ServiceServiceRole, error) { path := "/v1/Services/{ChatServiceSid}/Roles" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Permission != nil { - data.Set("Permission", *params.Permission) + data.Set("Permission", strings.Join(*params.Permission, ",")) } if params != nil && params.Type != nil { - data.Set("Type", *params.Type) + data.Set("Type", *params.Type) } @@ -836,7 +850,7 @@ func (c *DefaultApiService) CreateServiceRole(chatServiceSid string, params *Cre } // CreateServiceUserParams Optional parameters for the method 'CreateServiceUser' type CreateServiceUserParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` Attributes *string `json:"Attributes,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` Identity *string `json:"Identity,omitempty"` @@ -846,7 +860,7 @@ type CreateServiceUserParams struct { /* CreateServiceUser Method for CreateServiceUser Add a new conversation user to your service - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the User resource is associated with. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the User resource is associated with. * @param optional nil or *CreateServiceUserOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned. @@ -855,28 +869,29 @@ Add a new conversation user to your service * @param "RoleSid" (string) - The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user. @return ConversationsV1ServiceServiceUser */ -func (c *DefaultApiService) CreateServiceUser(chatServiceSid string, params *CreateServiceUserParams) (*ConversationsV1ServiceServiceUser, error) { +func (c *DefaultApiService) CreateServiceUser(ChatServiceSid string, params *CreateServiceUserParams) (*ConversationsV1ServiceServiceUser, error) { path := "/v1/Services/{ChatServiceSid}/Users" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + data := url.Values{} headers := make(map[string]interface{}) if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) + data.Set("Identity", *params.Identity) } if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) + data.Set("RoleSid", *params.RoleSid) } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -895,7 +910,7 @@ func (c *DefaultApiService) CreateServiceUser(chatServiceSid string, params *Cre } // CreateUserParams Optional parameters for the method 'CreateUser' type CreateUserParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` Attributes *string `json:"Attributes,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` Identity *string `json:"Identity,omitempty"` @@ -916,24 +931,25 @@ Add a new conversation user to your account's default service func (c *DefaultApiService) CreateUser(params *CreateUserParams) (*ConversationsV1User, error) { path := "/v1/Users" + data := url.Values{} headers := make(map[string]interface{}) if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) + data.Set("Identity", *params.Identity) } if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) + data.Set("RoleSid", *params.RoleSid) } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -952,26 +968,27 @@ func (c *DefaultApiService) CreateUser(params *CreateUserParams) (*Conversations } // DeleteConversationParams Optional parameters for the method 'DeleteConversation' type DeleteConversationParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* DeleteConversation Method for DeleteConversation Remove a conversation from your account's default service - * @param sid A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. + * @param Sid A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. * @param optional nil or *DeleteConversationOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ -func (c *DefaultApiService) DeleteConversation(sid string, params *DeleteConversationParams) (error) { +func (c *DefaultApiService) DeleteConversation(Sid string, params *DeleteConversationParams) (error) { path := "/v1/Conversations/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := make(map[string]interface{}) - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Delete(c.baseURL+path, data, headers) @@ -985,28 +1002,29 @@ func (c *DefaultApiService) DeleteConversation(sid string, params *DeleteConvers } // DeleteConversationMessageParams Optional parameters for the method 'DeleteConversationMessage' type DeleteConversationMessageParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* DeleteConversationMessage Method for DeleteConversationMessage Remove a message from the conversation - * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. - * @param sid A 34 character string that uniquely identifies this resource. + * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. + * @param Sid A 34 character string that uniquely identifies this resource. * @param optional nil or *DeleteConversationMessageOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ -func (c *DefaultApiService) DeleteConversationMessage(conversationSid string, sid string, params *DeleteConversationMessageParams) (error) { +func (c *DefaultApiService) DeleteConversationMessage(ConversationSid string, Sid string, params *DeleteConversationMessageParams) (error) { path := "/v1/Conversations/{ConversationSid}/Messages/{Sid}" - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := make(map[string]interface{}) - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Delete(c.baseURL+path, data, headers) @@ -1020,28 +1038,29 @@ func (c *DefaultApiService) DeleteConversationMessage(conversationSid string, si } // DeleteConversationParticipantParams Optional parameters for the method 'DeleteConversationParticipant' type DeleteConversationParticipantParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* DeleteConversationParticipant Method for DeleteConversationParticipant Remove a participant from the conversation - * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. - * @param sid A 34 character string that uniquely identifies this resource. + * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. + * @param Sid A 34 character string that uniquely identifies this resource. * @param optional nil or *DeleteConversationParticipantOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ -func (c *DefaultApiService) DeleteConversationParticipant(conversationSid string, sid string, params *DeleteConversationParticipantParams) (error) { +func (c *DefaultApiService) DeleteConversationParticipant(ConversationSid string, Sid string, params *DeleteConversationParticipantParams) (error) { path := "/v1/Conversations/{ConversationSid}/Participants/{Sid}" - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := make(map[string]interface{}) - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Delete(c.baseURL+path, data, headers) @@ -1057,15 +1076,16 @@ func (c *DefaultApiService) DeleteConversationParticipant(conversationSid string /* DeleteConversationScopedWebhook Method for DeleteConversationScopedWebhook Remove an existing webhook scoped to the conversation - * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. - * @param sid A 34 character string that uniquely identifies this resource. + * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. + * @param Sid A 34 character string that uniquely identifies this resource. */ -func (c *DefaultApiService) DeleteConversationScopedWebhook(conversationSid string, sid string) (error) { +func (c *DefaultApiService) DeleteConversationScopedWebhook(ConversationSid string, Sid string) (error) { path := "/v1/Conversations/{ConversationSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1083,13 +1103,14 @@ func (c *DefaultApiService) DeleteConversationScopedWebhook(conversationSid stri /* DeleteCredential Method for DeleteCredential Remove a push notification credential from your account - * @param sid A 34 character string that uniquely identifies this resource. + * @param Sid A 34 character string that uniquely identifies this resource. */ -func (c *DefaultApiService) DeleteCredential(sid string) (error) { +func (c *DefaultApiService) DeleteCredential(Sid string) (error) { path := "/v1/Credentials/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1107,13 +1128,14 @@ func (c *DefaultApiService) DeleteCredential(sid string) (error) { /* DeleteRole Method for DeleteRole Remove a user role from your account's default service - * @param sid The SID of the Role resource to delete. + * @param Sid The SID of the Role resource to delete. */ -func (c *DefaultApiService) DeleteRole(sid string) (error) { +func (c *DefaultApiService) DeleteRole(Sid string) (error) { path := "/v1/Roles/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1131,13 +1153,14 @@ func (c *DefaultApiService) DeleteRole(sid string) (error) { /* DeleteService Method for DeleteService Remove a conversation service with all its nested resources from your account - * @param sid A 34 character string that uniquely identifies this resource. + * @param Sid A 34 character string that uniquely identifies this resource. */ -func (c *DefaultApiService) DeleteService(sid string) (error) { +func (c *DefaultApiService) DeleteService(Sid string) (error) { path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1155,15 +1178,16 @@ func (c *DefaultApiService) DeleteService(sid string) (error) { /* DeleteServiceBinding Method for DeleteServiceBinding Remove a push notification binding from the conversation service - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to delete the Binding resource from. - * @param sid The SID of the Binding resource to delete. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to delete the Binding resource from. + * @param Sid The SID of the Binding resource to delete. */ -func (c *DefaultApiService) DeleteServiceBinding(chatServiceSid string, sid string) (error) { +func (c *DefaultApiService) DeleteServiceBinding(ChatServiceSid string, Sid string) (error) { path := "/v1/Services/{ChatServiceSid}/Bindings/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1179,28 +1203,29 @@ func (c *DefaultApiService) DeleteServiceBinding(chatServiceSid string, sid stri } // DeleteServiceConversationParams Optional parameters for the method 'DeleteServiceConversation' type DeleteServiceConversationParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* DeleteServiceConversation Method for DeleteServiceConversation Remove a conversation from your service - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. - * @param sid A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. + * @param Sid A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. * @param optional nil or *DeleteServiceConversationOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ -func (c *DefaultApiService) DeleteServiceConversation(chatServiceSid string, sid string, params *DeleteServiceConversationParams) (error) { +func (c *DefaultApiService) DeleteServiceConversation(ChatServiceSid string, Sid string, params *DeleteServiceConversationParams) (error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := make(map[string]interface{}) - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Delete(c.baseURL+path, data, headers) @@ -1214,30 +1239,31 @@ func (c *DefaultApiService) DeleteServiceConversation(chatServiceSid string, sid } // DeleteServiceConversationMessageParams Optional parameters for the method 'DeleteServiceConversationMessage' type DeleteServiceConversationMessageParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* DeleteServiceConversationMessage Method for DeleteServiceConversationMessage Remove a message from the conversation - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. - * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. - * @param sid A 34 character string that uniquely identifies this resource. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. + * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. + * @param Sid A 34 character string that uniquely identifies this resource. * @param optional nil or *DeleteServiceConversationMessageOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ -func (c *DefaultApiService) DeleteServiceConversationMessage(chatServiceSid string, conversationSid string, sid string, params *DeleteServiceConversationMessageParams) (error) { +func (c *DefaultApiService) DeleteServiceConversationMessage(ChatServiceSid string, ConversationSid string, Sid string, params *DeleteServiceConversationMessageParams) (error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := make(map[string]interface{}) - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Delete(c.baseURL+path, data, headers) @@ -1251,30 +1277,31 @@ func (c *DefaultApiService) DeleteServiceConversationMessage(chatServiceSid stri } // DeleteServiceConversationParticipantParams Optional parameters for the method 'DeleteServiceConversationParticipant' type DeleteServiceConversationParticipantParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* DeleteServiceConversationParticipant Method for DeleteServiceConversationParticipant Remove a participant from the conversation - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. - * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. - * @param sid A 34 character string that uniquely identifies this resource. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. + * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. + * @param Sid A 34 character string that uniquely identifies this resource. * @param optional nil or *DeleteServiceConversationParticipantOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ -func (c *DefaultApiService) DeleteServiceConversationParticipant(chatServiceSid string, conversationSid string, sid string, params *DeleteServiceConversationParticipantParams) (error) { +func (c *DefaultApiService) DeleteServiceConversationParticipant(ChatServiceSid string, ConversationSid string, Sid string, params *DeleteServiceConversationParticipantParams) (error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := make(map[string]interface{}) - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Delete(c.baseURL+path, data, headers) @@ -1290,17 +1317,18 @@ func (c *DefaultApiService) DeleteServiceConversationParticipant(chatServiceSid /* DeleteServiceConversationScopedWebhook Method for DeleteServiceConversationScopedWebhook Remove an existing webhook scoped to the conversation - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. - * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. - * @param sid A 34 character string that uniquely identifies this resource. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. + * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. + * @param Sid A 34 character string that uniquely identifies this resource. */ -func (c *DefaultApiService) DeleteServiceConversationScopedWebhook(chatServiceSid string, conversationSid string, sid string) (error) { +func (c *DefaultApiService) DeleteServiceConversationScopedWebhook(ChatServiceSid string, ConversationSid string, Sid string) (error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1318,15 +1346,16 @@ func (c *DefaultApiService) DeleteServiceConversationScopedWebhook(chatServiceSi /* DeleteServiceRole Method for DeleteServiceRole Remove a user role from your service - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to delete the Role resource from. - * @param sid The SID of the Role resource to delete. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to delete the Role resource from. + * @param Sid The SID of the Role resource to delete. */ -func (c *DefaultApiService) DeleteServiceRole(chatServiceSid string, sid string) (error) { +func (c *DefaultApiService) DeleteServiceRole(ChatServiceSid string, Sid string) (error) { path := "/v1/Services/{ChatServiceSid}/Roles/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1342,28 +1371,29 @@ func (c *DefaultApiService) DeleteServiceRole(chatServiceSid string, sid string) } // DeleteServiceUserParams Optional parameters for the method 'DeleteServiceUser' type DeleteServiceUserParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* DeleteServiceUser Method for DeleteServiceUser Remove a conversation user from your service - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to delete the User resource from. - * @param sid The SID of the User resource to delete. This value can be either the `sid` or the `identity` of the User resource to delete. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to delete the User resource from. + * @param Sid The SID of the User resource to delete. This value can be either the `sid` or the `identity` of the User resource to delete. * @param optional nil or *DeleteServiceUserOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ -func (c *DefaultApiService) DeleteServiceUser(chatServiceSid string, sid string, params *DeleteServiceUserParams) (error) { +func (c *DefaultApiService) DeleteServiceUser(ChatServiceSid string, Sid string, params *DeleteServiceUserParams) (error) { path := "/v1/Services/{ChatServiceSid}/Users/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := make(map[string]interface{}) - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Delete(c.baseURL+path, data, headers) @@ -1377,26 +1407,27 @@ func (c *DefaultApiService) DeleteServiceUser(chatServiceSid string, sid string, } // DeleteUserParams Optional parameters for the method 'DeleteUser' type DeleteUserParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* DeleteUser Method for DeleteUser Remove a conversation user from your account's default service - * @param sid The SID of the User resource to delete. This value can be either the `sid` or the `identity` of the User resource to delete. + * @param Sid The SID of the User resource to delete. This value can be either the `sid` or the `identity` of the User resource to delete. * @param optional nil or *DeleteUserOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ -func (c *DefaultApiService) DeleteUser(sid string, params *DeleteUserParams) (error) { +func (c *DefaultApiService) DeleteUser(Sid string, params *DeleteUserParams) (error) { path := "/v1/Users/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := make(map[string]interface{}) - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Delete(c.baseURL+path, data, headers) @@ -1417,7 +1448,8 @@ Fetch the global configuration of conversations on your account func (c *DefaultApiService) FetchConfiguration() (*ConversationsV1Configuration, error) { path := "/v1/Configuration" - data := 0 + + data := url.Values{} headers := 0 @@ -1444,7 +1476,8 @@ FetchConfigurationWebhook Method for FetchConfigurationWebhook func (c *DefaultApiService) FetchConfigurationWebhook() (*ConversationsV1ConfigurationConfigurationWebhook, error) { path := "/v1/Configuration/Webhooks" - data := 0 + + data := url.Values{} headers := 0 @@ -1467,14 +1500,15 @@ func (c *DefaultApiService) FetchConfigurationWebhook() (*ConversationsV1Configu /* FetchConversation Method for FetchConversation Fetch a conversation from your account's default service - * @param sid A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. + * @param Sid A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. @return ConversationsV1Conversation */ -func (c *DefaultApiService) FetchConversation(sid string) (*ConversationsV1Conversation, error) { +func (c *DefaultApiService) FetchConversation(Sid string) (*ConversationsV1Conversation, error) { path := "/v1/Conversations/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1497,16 +1531,17 @@ func (c *DefaultApiService) FetchConversation(sid string) (*ConversationsV1Conve /* FetchConversationMessage Method for FetchConversationMessage Fetch a message from the conversation - * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. - * @param sid A 34 character string that uniquely identifies this resource. + * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. + * @param Sid A 34 character string that uniquely identifies this resource. @return ConversationsV1ConversationConversationMessage */ -func (c *DefaultApiService) FetchConversationMessage(conversationSid string, sid string) (*ConversationsV1ConversationConversationMessage, error) { +func (c *DefaultApiService) FetchConversationMessage(ConversationSid string, Sid string) (*ConversationsV1ConversationConversationMessage, error) { path := "/v1/Conversations/{ConversationSid}/Messages/{Sid}" - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1529,18 +1564,19 @@ func (c *DefaultApiService) FetchConversationMessage(conversationSid string, sid /* FetchConversationMessageReceipt Method for FetchConversationMessageReceipt Fetch the delivery and read receipts of the conversation message - * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. - * @param messageSid The SID of the message within a [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) the delivery receipt belongs to. - * @param sid A 34 character string that uniquely identifies this resource. + * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. + * @param MessageSid The SID of the message within a [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) the delivery receipt belongs to. + * @param Sid A 34 character string that uniquely identifies this resource. @return ConversationsV1ConversationConversationMessageConversationMessageReceipt */ -func (c *DefaultApiService) FetchConversationMessageReceipt(conversationSid string, messageSid string, sid string) (*ConversationsV1ConversationConversationMessageConversationMessageReceipt, error) { +func (c *DefaultApiService) FetchConversationMessageReceipt(ConversationSid string, MessageSid string, Sid string) (*ConversationsV1ConversationConversationMessageConversationMessageReceipt, error) { path := "/v1/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts/{Sid}" - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"MessageSid"+"}", messageSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) + path = strings.Replace(path, "{"+"MessageSid"+"}", MessageSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1563,16 +1599,17 @@ func (c *DefaultApiService) FetchConversationMessageReceipt(conversationSid stri /* FetchConversationParticipant Method for FetchConversationParticipant Fetch a participant of the conversation - * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. - * @param sid A 34 character string that uniquely identifies this resource. + * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. + * @param Sid A 34 character string that uniquely identifies this resource. @return ConversationsV1ConversationConversationParticipant */ -func (c *DefaultApiService) FetchConversationParticipant(conversationSid string, sid string) (*ConversationsV1ConversationConversationParticipant, error) { +func (c *DefaultApiService) FetchConversationParticipant(ConversationSid string, Sid string) (*ConversationsV1ConversationConversationParticipant, error) { path := "/v1/Conversations/{ConversationSid}/Participants/{Sid}" - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1595,16 +1632,17 @@ func (c *DefaultApiService) FetchConversationParticipant(conversationSid string, /* FetchConversationScopedWebhook Method for FetchConversationScopedWebhook Fetch the configuration of a conversation-scoped webhook - * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. - * @param sid A 34 character string that uniquely identifies this resource. + * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. + * @param Sid A 34 character string that uniquely identifies this resource. @return ConversationsV1ConversationConversationScopedWebhook */ -func (c *DefaultApiService) FetchConversationScopedWebhook(conversationSid string, sid string) (*ConversationsV1ConversationConversationScopedWebhook, error) { +func (c *DefaultApiService) FetchConversationScopedWebhook(ConversationSid string, Sid string) (*ConversationsV1ConversationConversationScopedWebhook, error) { path := "/v1/Conversations/{ConversationSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1627,14 +1665,15 @@ func (c *DefaultApiService) FetchConversationScopedWebhook(conversationSid strin /* FetchCredential Method for FetchCredential Fetch a push notification credential from your account - * @param sid A 34 character string that uniquely identifies this resource. + * @param Sid A 34 character string that uniquely identifies this resource. @return ConversationsV1Credential */ -func (c *DefaultApiService) FetchCredential(sid string) (*ConversationsV1Credential, error) { +func (c *DefaultApiService) FetchCredential(Sid string) (*ConversationsV1Credential, error) { path := "/v1/Credentials/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1657,14 +1696,15 @@ func (c *DefaultApiService) FetchCredential(sid string) (*ConversationsV1Credent /* FetchRole Method for FetchRole Fetch a user role from your account's default service - * @param sid The SID of the Role resource to fetch. + * @param Sid The SID of the Role resource to fetch. @return ConversationsV1Role */ -func (c *DefaultApiService) FetchRole(sid string) (*ConversationsV1Role, error) { +func (c *DefaultApiService) FetchRole(Sid string) (*ConversationsV1Role, error) { path := "/v1/Roles/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1687,14 +1727,15 @@ func (c *DefaultApiService) FetchRole(sid string) (*ConversationsV1Role, error) /* FetchService Method for FetchService Fetch a conversation service from your account - * @param sid A 34 character string that uniquely identifies this resource. + * @param Sid A 34 character string that uniquely identifies this resource. @return ConversationsV1Service */ -func (c *DefaultApiService) FetchService(sid string) (*ConversationsV1Service, error) { +func (c *DefaultApiService) FetchService(Sid string) (*ConversationsV1Service, error) { path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1717,16 +1758,17 @@ func (c *DefaultApiService) FetchService(sid string) (*ConversationsV1Service, e /* FetchServiceBinding Method for FetchServiceBinding Fetch a push notification binding from the conversation service - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Binding resource is associated with. - * @param sid A 34 character string that uniquely identifies this resource. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Binding resource is associated with. + * @param Sid A 34 character string that uniquely identifies this resource. @return ConversationsV1ServiceServiceBinding */ -func (c *DefaultApiService) FetchServiceBinding(chatServiceSid string, sid string) (*ConversationsV1ServiceServiceBinding, error) { +func (c *DefaultApiService) FetchServiceBinding(ChatServiceSid string, Sid string) (*ConversationsV1ServiceServiceBinding, error) { path := "/v1/Services/{ChatServiceSid}/Bindings/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1749,14 +1791,15 @@ func (c *DefaultApiService) FetchServiceBinding(chatServiceSid string, sid strin /* FetchServiceConfiguration Method for FetchServiceConfiguration Fetch the configuration of a conversation service - * @param chatServiceSid The SID of the Service configuration resource to fetch. + * @param ChatServiceSid The SID of the Service configuration resource to fetch. @return ConversationsV1ServiceServiceConfiguration */ -func (c *DefaultApiService) FetchServiceConfiguration(chatServiceSid string) (*ConversationsV1ServiceServiceConfiguration, error) { +func (c *DefaultApiService) FetchServiceConfiguration(ChatServiceSid string) (*ConversationsV1ServiceServiceConfiguration, error) { path := "/v1/Services/{ChatServiceSid}/Configuration" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1779,16 +1822,17 @@ func (c *DefaultApiService) FetchServiceConfiguration(chatServiceSid string) (*C /* FetchServiceConversation Method for FetchServiceConversation Fetch a conversation from your service - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. - * @param sid A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. + * @param Sid A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. @return ConversationsV1ServiceServiceConversation */ -func (c *DefaultApiService) FetchServiceConversation(chatServiceSid string, sid string) (*ConversationsV1ServiceServiceConversation, error) { +func (c *DefaultApiService) FetchServiceConversation(ChatServiceSid string, Sid string) (*ConversationsV1ServiceServiceConversation, error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1811,18 +1855,19 @@ func (c *DefaultApiService) FetchServiceConversation(chatServiceSid string, sid /* FetchServiceConversationMessage Method for FetchServiceConversationMessage Fetch a message from the conversation - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. - * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. - * @param sid A 34 character string that uniquely identifies this resource. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. + * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. + * @param Sid A 34 character string that uniquely identifies this resource. @return ConversationsV1ServiceServiceConversationServiceConversationMessage */ -func (c *DefaultApiService) FetchServiceConversationMessage(chatServiceSid string, conversationSid string, sid string) (*ConversationsV1ServiceServiceConversationServiceConversationMessage, error) { +func (c *DefaultApiService) FetchServiceConversationMessage(ChatServiceSid string, ConversationSid string, Sid string) (*ConversationsV1ServiceServiceConversationServiceConversationMessage, error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1845,20 +1890,21 @@ func (c *DefaultApiService) FetchServiceConversationMessage(chatServiceSid strin /* FetchServiceConversationMessageReceipt Method for FetchServiceConversationMessageReceipt Fetch the delivery and read receipts of the conversation message - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Message resource is associated with. - * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. - * @param messageSid The SID of the message within a [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) the delivery receipt belongs to. - * @param sid A 34 character string that uniquely identifies this resource. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Message resource is associated with. + * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. + * @param MessageSid The SID of the message within a [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) the delivery receipt belongs to. + * @param Sid A 34 character string that uniquely identifies this resource. @return ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt */ -func (c *DefaultApiService) FetchServiceConversationMessageReceipt(chatServiceSid string, conversationSid string, messageSid string, sid string) (*ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt, error) { +func (c *DefaultApiService) FetchServiceConversationMessageReceipt(ChatServiceSid string, ConversationSid string, MessageSid string, Sid string) (*ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt, error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"MessageSid"+"}", messageSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) + path = strings.Replace(path, "{"+"MessageSid"+"}", MessageSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1881,18 +1927,19 @@ func (c *DefaultApiService) FetchServiceConversationMessageReceipt(chatServiceSi /* FetchServiceConversationParticipant Method for FetchServiceConversationParticipant Fetch a participant of the conversation - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. - * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. - * @param sid A 34 character string that uniquely identifies this resource. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. + * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. + * @param Sid A 34 character string that uniquely identifies this resource. @return ConversationsV1ServiceServiceConversationServiceConversationParticipant */ -func (c *DefaultApiService) FetchServiceConversationParticipant(chatServiceSid string, conversationSid string, sid string) (*ConversationsV1ServiceServiceConversationServiceConversationParticipant, error) { +func (c *DefaultApiService) FetchServiceConversationParticipant(ChatServiceSid string, ConversationSid string, Sid string) (*ConversationsV1ServiceServiceConversationServiceConversationParticipant, error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1915,18 +1962,19 @@ func (c *DefaultApiService) FetchServiceConversationParticipant(chatServiceSid s /* FetchServiceConversationScopedWebhook Method for FetchServiceConversationScopedWebhook Fetch the configuration of a conversation-scoped webhook - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. - * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. - * @param sid A 34 character string that uniquely identifies this resource. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. + * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. + * @param Sid A 34 character string that uniquely identifies this resource. @return ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook */ -func (c *DefaultApiService) FetchServiceConversationScopedWebhook(chatServiceSid string, conversationSid string, sid string) (*ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook, error) { +func (c *DefaultApiService) FetchServiceConversationScopedWebhook(ChatServiceSid string, ConversationSid string, Sid string) (*ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook, error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1949,14 +1997,15 @@ func (c *DefaultApiService) FetchServiceConversationScopedWebhook(chatServiceSid /* FetchServiceNotification Method for FetchServiceNotification Fetch push notification service settings - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Configuration applies to. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Configuration applies to. @return ConversationsV1ServiceServiceConfigurationServiceNotification */ -func (c *DefaultApiService) FetchServiceNotification(chatServiceSid string) (*ConversationsV1ServiceServiceConfigurationServiceNotification, error) { +func (c *DefaultApiService) FetchServiceNotification(ChatServiceSid string) (*ConversationsV1ServiceServiceConfigurationServiceNotification, error) { path := "/v1/Services/{ChatServiceSid}/Configuration/Notifications" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1979,16 +2028,17 @@ func (c *DefaultApiService) FetchServiceNotification(chatServiceSid string) (*Co /* FetchServiceRole Method for FetchServiceRole Fetch a user role from your service - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to fetch the Role resource from. - * @param sid The SID of the Role resource to fetch. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to fetch the Role resource from. + * @param Sid The SID of the Role resource to fetch. @return ConversationsV1ServiceServiceRole */ -func (c *DefaultApiService) FetchServiceRole(chatServiceSid string, sid string) (*ConversationsV1ServiceServiceRole, error) { +func (c *DefaultApiService) FetchServiceRole(ChatServiceSid string, Sid string) (*ConversationsV1ServiceServiceRole, error) { path := "/v1/Services/{ChatServiceSid}/Roles/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -2011,16 +2061,17 @@ func (c *DefaultApiService) FetchServiceRole(chatServiceSid string, sid string) /* FetchServiceUser Method for FetchServiceUser Fetch a conversation user from your service - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to fetch the User resource from. - * @param sid The SID of the User resource to fetch. This value can be either the `sid` or the `identity` of the User resource to fetch. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to fetch the User resource from. + * @param Sid The SID of the User resource to fetch. This value can be either the `sid` or the `identity` of the User resource to fetch. @return ConversationsV1ServiceServiceUser */ -func (c *DefaultApiService) FetchServiceUser(chatServiceSid string, sid string) (*ConversationsV1ServiceServiceUser, error) { +func (c *DefaultApiService) FetchServiceUser(ChatServiceSid string, Sid string) (*ConversationsV1ServiceServiceUser, error) { path := "/v1/Services/{ChatServiceSid}/Users/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -2043,14 +2094,15 @@ func (c *DefaultApiService) FetchServiceUser(chatServiceSid string, sid string) /* FetchUser Method for FetchUser Fetch a conversation user from your account's default service - * @param sid The SID of the User resource to fetch. This value can be either the `sid` or the `identity` of the User resource to fetch. + * @param Sid The SID of the User resource to fetch. This value can be either the `sid` or the `identity` of the User resource to fetch. @return ConversationsV1User */ -func (c *DefaultApiService) FetchUser(sid string) (*ConversationsV1User, error) { +func (c *DefaultApiService) FetchUser(Sid string) (*ConversationsV1User, error) { path := "/v1/Users/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -2084,11 +2136,12 @@ Retrieve a list of conversations in your account's default service func (c *DefaultApiService) ListConversation(params *ListConversationParams) (*ConversationsV1ConversationReadResponse, error) { path := "/v1/Conversations" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -2114,20 +2167,21 @@ type ListConversationMessageParams struct { /* ListConversationMessage Method for ListConversationMessage Retrieve a list of all messages in the conversation - * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for messages. + * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for messages. * @param optional nil or *ListConversationMessageOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ConversationsV1ConversationConversationMessageReadResponse */ -func (c *DefaultApiService) ListConversationMessage(conversationSid string, params *ListConversationMessageParams) (*ConversationsV1ConversationConversationMessageReadResponse, error) { +func (c *DefaultApiService) ListConversationMessage(ConversationSid string, params *ListConversationMessageParams) (*ConversationsV1ConversationConversationMessageReadResponse, error) { path := "/v1/Conversations/{ConversationSid}/Messages" - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -2153,22 +2207,23 @@ type ListConversationMessageReceiptParams struct { /* ListConversationMessageReceipt Method for ListConversationMessageReceipt Retrieve a list of all delivery and read receipts of the conversation message - * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. - * @param messageSid The SID of the message within a [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) the delivery receipt belongs to. + * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. + * @param MessageSid The SID of the message within a [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) the delivery receipt belongs to. * @param optional nil or *ListConversationMessageReceiptOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse */ -func (c *DefaultApiService) ListConversationMessageReceipt(conversationSid string, messageSid string, params *ListConversationMessageReceiptParams) (*ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse, error) { +func (c *DefaultApiService) ListConversationMessageReceipt(ConversationSid string, MessageSid string, params *ListConversationMessageReceiptParams) (*ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse, error) { path := "/v1/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts" - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"MessageSid"+"}", messageSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) + path = strings.Replace(path, "{"+"MessageSid"+"}", MessageSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -2194,20 +2249,21 @@ type ListConversationParticipantParams struct { /* ListConversationParticipant Method for ListConversationParticipant Retrieve a list of all participants of the conversation - * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for participants. + * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for participants. * @param optional nil or *ListConversationParticipantOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ConversationsV1ConversationConversationParticipantReadResponse */ -func (c *DefaultApiService) ListConversationParticipant(conversationSid string, params *ListConversationParticipantParams) (*ConversationsV1ConversationConversationParticipantReadResponse, error) { +func (c *DefaultApiService) ListConversationParticipant(ConversationSid string, params *ListConversationParticipantParams) (*ConversationsV1ConversationConversationParticipantReadResponse, error) { path := "/v1/Conversations/{ConversationSid}/Participants" - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -2233,20 +2289,21 @@ type ListConversationScopedWebhookParams struct { /* ListConversationScopedWebhook Method for ListConversationScopedWebhook Retrieve a list of all webhooks scoped to the conversation - * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. + * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. * @param optional nil or *ListConversationScopedWebhookOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ConversationsV1ConversationConversationScopedWebhookReadResponse */ -func (c *DefaultApiService) ListConversationScopedWebhook(conversationSid string, params *ListConversationScopedWebhookParams) (*ConversationsV1ConversationConversationScopedWebhookReadResponse, error) { +func (c *DefaultApiService) ListConversationScopedWebhook(ConversationSid string, params *ListConversationScopedWebhookParams) (*ConversationsV1ConversationConversationScopedWebhookReadResponse, error) { path := "/v1/Conversations/{ConversationSid}/Webhooks" - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -2279,11 +2336,12 @@ Retrieve a list of all push notification credentials on your account func (c *DefaultApiService) ListCredential(params *ListCredentialParams) (*ConversationsV1CredentialReadResponse, error) { path := "/v1/Credentials" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -2316,11 +2374,12 @@ Retrieve a list of all user roles in your account's default service func (c *DefaultApiService) ListRole(params *ListRoleParams) (*ConversationsV1RoleReadResponse, error) { path := "/v1/Roles" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -2353,11 +2412,12 @@ Retrieve a list of all conversation services on your account func (c *DefaultApiService) ListService(params *ListServiceParams) (*ConversationsV1ServiceReadResponse, error) { path := "/v1/Services" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -2385,28 +2445,29 @@ type ListServiceBindingParams struct { /* ListServiceBinding Method for ListServiceBinding Retrieve a list of all push notification bindings in the conversation service - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Binding resource is associated with. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Binding resource is associated with. * @param optional nil or *ListServiceBindingOpts - Optional Parameters: * @param "BindingType" ([]string) - The push technology used by the Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. * @param "Identity" ([]string) - The identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more details. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ConversationsV1ServiceServiceBindingReadResponse */ -func (c *DefaultApiService) ListServiceBinding(chatServiceSid string, params *ListServiceBindingParams) (*ConversationsV1ServiceServiceBindingReadResponse, error) { +func (c *DefaultApiService) ListServiceBinding(ChatServiceSid string, params *ListServiceBindingParams) (*ConversationsV1ServiceServiceBindingReadResponse, error) { path := "/v1/Services/{ChatServiceSid}/Bindings" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.BindingType != nil { - data.Set("BindingType", string(*params.BindingType)) + data.Set("BindingType", strings.Join(*params.BindingType, ",")) } if params != nil && params.Identity != nil { - data.Set("Identity", string(*params.Identity)) + data.Set("Identity", strings.Join(*params.Identity, ",")) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -2432,20 +2493,21 @@ type ListServiceConversationParams struct { /* ListServiceConversation Method for ListServiceConversation Retrieve a list of conversations in your service - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. * @param optional nil or *ListServiceConversationOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ConversationsV1ServiceServiceConversationReadResponse */ -func (c *DefaultApiService) ListServiceConversation(chatServiceSid string, params *ListServiceConversationParams) (*ConversationsV1ServiceServiceConversationReadResponse, error) { +func (c *DefaultApiService) ListServiceConversation(ChatServiceSid string, params *ListServiceConversationParams) (*ConversationsV1ServiceServiceConversationReadResponse, error) { path := "/v1/Services/{ChatServiceSid}/Conversations" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -2471,22 +2533,23 @@ type ListServiceConversationMessageParams struct { /* ListServiceConversationMessage Method for ListServiceConversationMessage Retrieve a list of all messages in the conversation - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. - * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for messages. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. + * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for messages. * @param optional nil or *ListServiceConversationMessageOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse */ -func (c *DefaultApiService) ListServiceConversationMessage(chatServiceSid string, conversationSid string, params *ListServiceConversationMessageParams) (*ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse, error) { +func (c *DefaultApiService) ListServiceConversationMessage(ChatServiceSid string, ConversationSid string, params *ListServiceConversationMessageParams) (*ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse, error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -2512,24 +2575,25 @@ type ListServiceConversationMessageReceiptParams struct { /* ListServiceConversationMessageReceipt Method for ListServiceConversationMessageReceipt Retrieve a list of all delivery and read receipts of the conversation message - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Message resource is associated with. - * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. - * @param messageSid The SID of the message within a [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) the delivery receipt belongs to. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Message resource is associated with. + * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. + * @param MessageSid The SID of the message within a [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) the delivery receipt belongs to. * @param optional nil or *ListServiceConversationMessageReceiptOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse */ -func (c *DefaultApiService) ListServiceConversationMessageReceipt(chatServiceSid string, conversationSid string, messageSid string, params *ListServiceConversationMessageReceiptParams) (*ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse, error) { +func (c *DefaultApiService) ListServiceConversationMessageReceipt(ChatServiceSid string, ConversationSid string, MessageSid string, params *ListServiceConversationMessageReceiptParams) (*ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse, error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"MessageSid"+"}", messageSid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) + path = strings.Replace(path, "{"+"MessageSid"+"}", MessageSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -2555,22 +2619,23 @@ type ListServiceConversationParticipantParams struct { /* ListServiceConversationParticipant Method for ListServiceConversationParticipant Retrieve a list of all participants of the conversation - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. - * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for participants. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. + * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for participants. * @param optional nil or *ListServiceConversationParticipantOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse */ -func (c *DefaultApiService) ListServiceConversationParticipant(chatServiceSid string, conversationSid string, params *ListServiceConversationParticipantParams) (*ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse, error) { +func (c *DefaultApiService) ListServiceConversationParticipant(ChatServiceSid string, ConversationSid string, params *ListServiceConversationParticipantParams) (*ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse, error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -2596,22 +2661,23 @@ type ListServiceConversationScopedWebhookParams struct { /* ListServiceConversationScopedWebhook Method for ListServiceConversationScopedWebhook Retrieve a list of all webhooks scoped to the conversation - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. - * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. + * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. * @param optional nil or *ListServiceConversationScopedWebhookOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse */ -func (c *DefaultApiService) ListServiceConversationScopedWebhook(chatServiceSid string, conversationSid string, params *ListServiceConversationScopedWebhookParams) (*ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse, error) { +func (c *DefaultApiService) ListServiceConversationScopedWebhook(ChatServiceSid string, ConversationSid string, params *ListServiceConversationScopedWebhookParams) (*ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse, error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -2637,20 +2703,21 @@ type ListServiceRoleParams struct { /* ListServiceRole Method for ListServiceRole Retrieve a list of all user roles in your service - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to read the Role resources from. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to read the Role resources from. * @param optional nil or *ListServiceRoleOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ConversationsV1ServiceServiceRoleReadResponse */ -func (c *DefaultApiService) ListServiceRole(chatServiceSid string, params *ListServiceRoleParams) (*ConversationsV1ServiceServiceRoleReadResponse, error) { +func (c *DefaultApiService) ListServiceRole(ChatServiceSid string, params *ListServiceRoleParams) (*ConversationsV1ServiceServiceRoleReadResponse, error) { path := "/v1/Services/{ChatServiceSid}/Roles" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -2676,20 +2743,21 @@ type ListServiceUserParams struct { /* ListServiceUser Method for ListServiceUser Retrieve a list of all conversation users in your service - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to read the User resources from. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to read the User resources from. * @param optional nil or *ListServiceUserOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ConversationsV1ServiceServiceUserReadResponse */ -func (c *DefaultApiService) ListServiceUser(chatServiceSid string, params *ListServiceUserParams) (*ConversationsV1ServiceServiceUserReadResponse, error) { +func (c *DefaultApiService) ListServiceUser(ChatServiceSid string, params *ListServiceUserParams) (*ConversationsV1ServiceServiceUserReadResponse, error) { path := "/v1/Services/{ChatServiceSid}/Users" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -2722,11 +2790,12 @@ Retrieve a list of all conversation users in your account's default service func (c *DefaultApiService) ListUser(params *ListUserParams) (*ConversationsV1UserReadResponse, error) { path := "/v1/Users" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -2765,20 +2834,21 @@ Update the global configuration of conversations on your account func (c *DefaultApiService) UpdateConfiguration(params *UpdateConfigurationParams) (*ConversationsV1Configuration, error) { path := "/v1/Configuration" + data := url.Values{} headers := 0 if params != nil && params.DefaultChatServiceSid != nil { - data.Set("DefaultChatServiceSid", *params.DefaultChatServiceSid) + data.Set("DefaultChatServiceSid", *params.DefaultChatServiceSid) } if params != nil && params.DefaultClosedTimer != nil { - data.Set("DefaultClosedTimer", *params.DefaultClosedTimer) + data.Set("DefaultClosedTimer", *params.DefaultClosedTimer) } if params != nil && params.DefaultInactiveTimer != nil { - data.Set("DefaultInactiveTimer", *params.DefaultInactiveTimer) + data.Set("DefaultInactiveTimer", *params.DefaultInactiveTimer) } if params != nil && params.DefaultMessagingServiceSid != nil { - data.Set("DefaultMessagingServiceSid", *params.DefaultMessagingServiceSid) + data.Set("DefaultMessagingServiceSid", *params.DefaultMessagingServiceSid) } @@ -2818,23 +2888,24 @@ UpdateConfigurationWebhook Method for UpdateConfigurationWebhook func (c *DefaultApiService) UpdateConfigurationWebhook(params *UpdateConfigurationWebhookParams) (*ConversationsV1ConfigurationConfigurationWebhook, error) { path := "/v1/Configuration/Webhooks" + data := url.Values{} headers := 0 if params != nil && params.Filters != nil { - data.Set("Filters", *params.Filters) + data.Set("Filters", strings.Join(*params.Filters, ",")) } if params != nil && params.Method != nil { - data.Set("Method", *params.Method) + data.Set("Method", *params.Method) } if params != nil && params.PostWebhookUrl != nil { - data.Set("PostWebhookUrl", *params.PostWebhookUrl) + data.Set("PostWebhookUrl", *params.PostWebhookUrl) } if params != nil && params.PreWebhookUrl != nil { - data.Set("PreWebhookUrl", *params.PreWebhookUrl) + data.Set("PreWebhookUrl", *params.PreWebhookUrl) } if params != nil && params.Target != nil { - data.Set("Target", *params.Target) + data.Set("Target", *params.Target) } @@ -2854,22 +2925,22 @@ func (c *DefaultApiService) UpdateConfigurationWebhook(params *UpdateConfigurati } // UpdateConversationParams Optional parameters for the method 'UpdateConversation' type UpdateConversationParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` Attributes *string `json:"Attributes,omitempty"` DateCreated *time.Time `json:"DateCreated,omitempty"` DateUpdated *time.Time `json:"DateUpdated,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` State *string `json:"State,omitempty"` - Timers.Closed *string `json:"Timers.Closed,omitempty"` - Timers.Inactive *string `json:"Timers.Inactive,omitempty"` + TimersClosed *string `json:"TimersClosed,omitempty"` + TimersInactive *string `json:"TimersInactive,omitempty"` UniqueName *string `json:"UniqueName,omitempty"` } /* UpdateConversation Method for UpdateConversation Update an existing conversation in your account's default service - * @param sid A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. + * @param Sid A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. * @param optional nil or *UpdateConversationOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. @@ -2878,48 +2949,49 @@ Update an existing conversation in your account's default service * @param "FriendlyName" (string) - The human-readable name of this conversation, limited to 256 characters. Optional. * @param "MessagingServiceSid" (string) - The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. * @param "State" (string) - Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` - * @param "Timers.Closed" (string) - ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. - * @param "Timers.Inactive" (string) - ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. + * @param "TimersClosed" (string) - ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. + * @param "TimersInactive" (string) - ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. @return ConversationsV1Conversation */ -func (c *DefaultApiService) UpdateConversation(sid string, params *UpdateConversationParams) (*ConversationsV1Conversation, error) { +func (c *DefaultApiService) UpdateConversation(Sid string, params *UpdateConversationParams) (*ConversationsV1Conversation, error) { path := "/v1/Conversations/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := make(map[string]interface{}) if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) + data.Set("DateCreated", fmt.Sprint(*params.DateCreated)) } if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) + data.Set("DateUpdated", fmt.Sprint(*params.DateUpdated)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.MessagingServiceSid != nil { - data.Set("MessagingServiceSid", *params.MessagingServiceSid) + data.Set("MessagingServiceSid", *params.MessagingServiceSid) } if params != nil && params.State != nil { - data.Set("State", *params.State) + data.Set("State", *params.State) } - if params != nil && params.Timers.Closed != nil { - data.Set("Timers.Closed", *params.Timers.Closed) + if params != nil && params.TimersClosed != nil { + data.Set("TimersClosed", *params.TimersClosed) } - if params != nil && params.Timers.Inactive != nil { - data.Set("Timers.Inactive", *params.Timers.Inactive) + if params != nil && params.TimersInactive != nil { + data.Set("TimersInactive", *params.TimersInactive) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -2938,7 +3010,7 @@ func (c *DefaultApiService) UpdateConversation(sid string, params *UpdateConvers } // UpdateConversationMessageParams Optional parameters for the method 'UpdateConversationMessage' type UpdateConversationMessageParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` Attributes *string `json:"Attributes,omitempty"` Author *string `json:"Author,omitempty"` Body *string `json:"Body,omitempty"` @@ -2949,8 +3021,8 @@ type UpdateConversationMessageParams struct { /* UpdateConversationMessage Method for UpdateConversationMessage Update an existing message in the conversation - * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. - * @param sid A 34 character string that uniquely identifies this resource. + * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. + * @param Sid A 34 character string that uniquely identifies this resource. * @param optional nil or *UpdateConversationMessageOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. @@ -2960,32 +3032,33 @@ Update an existing message in the conversation * @param "DateUpdated" (time.Time) - The date that this resource was last updated. `null` if the message has not been edited. @return ConversationsV1ConversationConversationMessage */ -func (c *DefaultApiService) UpdateConversationMessage(conversationSid string, sid string, params *UpdateConversationMessageParams) (*ConversationsV1ConversationConversationMessage, error) { +func (c *DefaultApiService) UpdateConversationMessage(ConversationSid string, Sid string, params *UpdateConversationMessageParams) (*ConversationsV1ConversationConversationMessage, error) { path := "/v1/Conversations/{ConversationSid}/Messages/{Sid}" - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := make(map[string]interface{}) if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.Author != nil { - data.Set("Author", *params.Author) + data.Set("Author", *params.Author) } if params != nil && params.Body != nil { - data.Set("Body", *params.Body) + data.Set("Body", *params.Body) } if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) + data.Set("DateCreated", fmt.Sprint(*params.DateCreated)) } if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) + data.Set("DateUpdated", fmt.Sprint(*params.DateUpdated)) } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -3004,23 +3077,23 @@ func (c *DefaultApiService) UpdateConversationMessage(conversationSid string, si } // UpdateConversationParticipantParams Optional parameters for the method 'UpdateConversationParticipant' type UpdateConversationParticipantParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` Attributes *string `json:"Attributes,omitempty"` DateCreated *time.Time `json:"DateCreated,omitempty"` DateUpdated *time.Time `json:"DateUpdated,omitempty"` Identity *string `json:"Identity,omitempty"` LastReadMessageIndex *int32 `json:"LastReadMessageIndex,omitempty"` LastReadTimestamp *string `json:"LastReadTimestamp,omitempty"` - MessagingBinding.ProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` - MessagingBinding.ProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` + MessagingBindingProjectedAddress *string `json:"MessagingBindingProjectedAddress,omitempty"` + MessagingBindingProxyAddress *string `json:"MessagingBindingProxyAddress,omitempty"` RoleSid *string `json:"RoleSid,omitempty"` } /* UpdateConversationParticipant Method for UpdateConversationParticipant Update an existing participant in the conversation - * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. - * @param sid A 34 character string that uniquely identifies this resource. + * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. + * @param Sid A 34 character string that uniquely identifies this resource. * @param optional nil or *UpdateConversationParticipantOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. @@ -3029,49 +3102,50 @@ Update an existing participant in the conversation * @param "Identity" (string) - A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters. * @param "LastReadMessageIndex" (*int32) - Index of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. * @param "LastReadTimestamp" (string) - Timestamp of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. - * @param "MessagingBinding.ProjectedAddress" (string) - The address of the Twilio phone number that is used in Group MMS. 'null' value will remove it. - * @param "MessagingBinding.ProxyAddress" (string) - The address of the Twilio phone number that the participant is in contact with. 'null' value will remove it. + * @param "MessagingBindingProjectedAddress" (string) - The address of the Twilio phone number that is used in Group MMS. 'null' value will remove it. + * @param "MessagingBindingProxyAddress" (string) - The address of the Twilio phone number that the participant is in contact with. 'null' value will remove it. * @param "RoleSid" (string) - The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. @return ConversationsV1ConversationConversationParticipant */ -func (c *DefaultApiService) UpdateConversationParticipant(conversationSid string, sid string, params *UpdateConversationParticipantParams) (*ConversationsV1ConversationConversationParticipant, error) { +func (c *DefaultApiService) UpdateConversationParticipant(ConversationSid string, Sid string, params *UpdateConversationParticipantParams) (*ConversationsV1ConversationConversationParticipant, error) { path := "/v1/Conversations/{ConversationSid}/Participants/{Sid}" - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := make(map[string]interface{}) if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) + data.Set("DateCreated", fmt.Sprint(*params.DateCreated)) } if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) + data.Set("DateUpdated", fmt.Sprint(*params.DateUpdated)) } if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) + data.Set("Identity", *params.Identity) } if params != nil && params.LastReadMessageIndex != nil { - data.Set("LastReadMessageIndex", string(*params.LastReadMessageIndex)) + data.Set("LastReadMessageIndex", fmt.Sprint(*params.LastReadMessageIndex)) } if params != nil && params.LastReadTimestamp != nil { - data.Set("LastReadTimestamp", *params.LastReadTimestamp) + data.Set("LastReadTimestamp", *params.LastReadTimestamp) } - if params != nil && params.MessagingBinding.ProjectedAddress != nil { - data.Set("MessagingBinding.ProjectedAddress", *params.MessagingBinding.ProjectedAddress) + if params != nil && params.MessagingBindingProjectedAddress != nil { + data.Set("MessagingBindingProjectedAddress", *params.MessagingBindingProjectedAddress) } - if params != nil && params.MessagingBinding.ProxyAddress != nil { - data.Set("MessagingBinding.ProxyAddress", *params.MessagingBinding.ProxyAddress) + if params != nil && params.MessagingBindingProxyAddress != nil { + data.Set("MessagingBindingProxyAddress", *params.MessagingBindingProxyAddress) } if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) + data.Set("RoleSid", *params.RoleSid) } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -3090,48 +3164,49 @@ func (c *DefaultApiService) UpdateConversationParticipant(conversationSid string } // UpdateConversationScopedWebhookParams Optional parameters for the method 'UpdateConversationScopedWebhook' type UpdateConversationScopedWebhookParams struct { - Configuration.Filters *[]string `json:"Configuration.Filters,omitempty"` - Configuration.FlowSid *string `json:"Configuration.FlowSid,omitempty"` - Configuration.Method *string `json:"Configuration.Method,omitempty"` - Configuration.Triggers *[]string `json:"Configuration.Triggers,omitempty"` - Configuration.Url *string `json:"Configuration.Url,omitempty"` + ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` + ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` + ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` + ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` + ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` } /* UpdateConversationScopedWebhook Method for UpdateConversationScopedWebhook Update an existing conversation-scoped webhook - * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. - * @param sid A 34 character string that uniquely identifies this resource. + * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. + * @param Sid A 34 character string that uniquely identifies this resource. * @param optional nil or *UpdateConversationScopedWebhookOpts - Optional Parameters: - * @param "Configuration.Filters" ([]string) - The list of events, firing webhook event for this Conversation. - * @param "Configuration.FlowSid" (string) - The studio flow SID, where the webhook should be sent to. - * @param "Configuration.Method" (string) - The HTTP method to be used when sending a webhook request. - * @param "Configuration.Triggers" ([]string) - The list of keywords, firing webhook event for this Conversation. - * @param "Configuration.Url" (string) - The absolute url the webhook request should be sent to. + * @param "ConfigurationFilters" ([]string) - The list of events, firing webhook event for this Conversation. + * @param "ConfigurationFlowSid" (string) - The studio flow SID, where the webhook should be sent to. + * @param "ConfigurationMethod" (string) - The HTTP method to be used when sending a webhook request. + * @param "ConfigurationTriggers" ([]string) - The list of keywords, firing webhook event for this Conversation. + * @param "ConfigurationUrl" (string) - The absolute url the webhook request should be sent to. @return ConversationsV1ConversationConversationScopedWebhook */ -func (c *DefaultApiService) UpdateConversationScopedWebhook(conversationSid string, sid string, params *UpdateConversationScopedWebhookParams) (*ConversationsV1ConversationConversationScopedWebhook, error) { +func (c *DefaultApiService) UpdateConversationScopedWebhook(ConversationSid string, Sid string, params *UpdateConversationScopedWebhookParams) (*ConversationsV1ConversationConversationScopedWebhook, error) { path := "/v1/Conversations/{ConversationSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 - if params != nil && params.Configuration.Filters != nil { - data.Set("Configuration.Filters", *params.Configuration.Filters) + if params != nil && params.ConfigurationFilters != nil { + data.Set("ConfigurationFilters", strings.Join(*params.ConfigurationFilters, ",")) } - if params != nil && params.Configuration.FlowSid != nil { - data.Set("Configuration.FlowSid", *params.Configuration.FlowSid) + if params != nil && params.ConfigurationFlowSid != nil { + data.Set("ConfigurationFlowSid", *params.ConfigurationFlowSid) } - if params != nil && params.Configuration.Method != nil { - data.Set("Configuration.Method", *params.Configuration.Method) + if params != nil && params.ConfigurationMethod != nil { + data.Set("ConfigurationMethod", *params.ConfigurationMethod) } - if params != nil && params.Configuration.Triggers != nil { - data.Set("Configuration.Triggers", *params.Configuration.Triggers) + if params != nil && params.ConfigurationTriggers != nil { + data.Set("ConfigurationTriggers", strings.Join(*params.ConfigurationTriggers, ",")) } - if params != nil && params.Configuration.Url != nil { - data.Set("Configuration.Url", *params.Configuration.Url) + if params != nil && params.ConfigurationUrl != nil { + data.Set("ConfigurationUrl", *params.ConfigurationUrl) } @@ -3163,7 +3238,7 @@ type UpdateCredentialParams struct { /* UpdateCredential Method for UpdateCredential Update an existing push notification credential on your account - * @param sid A 34 character string that uniquely identifies this resource. + * @param Sid A 34 character string that uniquely identifies this resource. * @param optional nil or *UpdateCredentialOpts - Optional Parameters: * @param "ApiKey" (string) - [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. * @param "Certificate" (string) - [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== -----END CERTIFICATE-----`. @@ -3174,33 +3249,34 @@ Update an existing push notification credential on your account * @param "Type" (string) - The type of push-notification service the credential is for. Can be: `fcm`, `gcm`, or `apn`. @return ConversationsV1Credential */ -func (c *DefaultApiService) UpdateCredential(sid string, params *UpdateCredentialParams) (*ConversationsV1Credential, error) { +func (c *DefaultApiService) UpdateCredential(Sid string, params *UpdateCredentialParams) (*ConversationsV1Credential, error) { path := "/v1/Credentials/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.ApiKey != nil { - data.Set("ApiKey", *params.ApiKey) + data.Set("ApiKey", *params.ApiKey) } if params != nil && params.Certificate != nil { - data.Set("Certificate", *params.Certificate) + data.Set("Certificate", *params.Certificate) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.PrivateKey != nil { - data.Set("PrivateKey", *params.PrivateKey) + data.Set("PrivateKey", *params.PrivateKey) } if params != nil && params.Sandbox != nil { - data.Set("Sandbox", string(*params.Sandbox)) + data.Set("Sandbox", fmt.Sprint(*params.Sandbox)) } if params != nil && params.Secret != nil { - data.Set("Secret", *params.Secret) + data.Set("Secret", *params.Secret) } if params != nil && params.Type != nil { - data.Set("Type", *params.Type) + data.Set("Type", *params.Type) } @@ -3226,20 +3302,21 @@ type UpdateRoleParams struct { /* UpdateRole Method for UpdateRole Update an existing user role in your account's default service - * @param sid The SID of the Role resource to update. + * @param Sid The SID of the Role resource to update. * @param optional nil or *UpdateRoleOpts - Optional Parameters: * @param "Permission" ([]string) - A permission that you grant to the role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. Note that the update action replaces all previously assigned permissions with those defined in the update action. To remove a permission, do not include it in the subsequent update action. The values for this parameter depend on the role's `type`. @return ConversationsV1Role */ -func (c *DefaultApiService) UpdateRole(sid string, params *UpdateRoleParams) (*ConversationsV1Role, error) { +func (c *DefaultApiService) UpdateRole(Sid string, params *UpdateRoleParams) (*ConversationsV1Role, error) { path := "/v1/Roles/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.Permission != nil { - data.Set("Permission", *params.Permission) + data.Set("Permission", strings.Join(*params.Permission, ",")) } @@ -3268,7 +3345,7 @@ type UpdateServiceConfigurationParams struct { /* UpdateServiceConfiguration Method for UpdateServiceConfiguration Update configuration settings of a conversation service - * @param chatServiceSid The SID of the Service configuration resource to update. + * @param ChatServiceSid The SID of the Service configuration resource to update. * @param optional nil or *UpdateServiceConfigurationOpts - Optional Parameters: * @param "DefaultChatServiceRoleSid" (string) - The service-level role assigned to users when they are added to the service. See the [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles. * @param "DefaultConversationCreatorRoleSid" (string) - The conversation-level role assigned to a conversation creator when they join a new conversation. See the [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles. @@ -3276,24 +3353,25 @@ Update configuration settings of a conversation service * @param "ReachabilityEnabled" (bool) - Whether the [Reachability Indicator](https://www.twilio.com/docs/chat/reachability-indicator) is enabled for this Conversations Service. The default is `false`. @return ConversationsV1ServiceServiceConfiguration */ -func (c *DefaultApiService) UpdateServiceConfiguration(chatServiceSid string, params *UpdateServiceConfigurationParams) (*ConversationsV1ServiceServiceConfiguration, error) { +func (c *DefaultApiService) UpdateServiceConfiguration(ChatServiceSid string, params *UpdateServiceConfigurationParams) (*ConversationsV1ServiceServiceConfiguration, error) { path := "/v1/Services/{ChatServiceSid}/Configuration" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.DefaultChatServiceRoleSid != nil { - data.Set("DefaultChatServiceRoleSid", *params.DefaultChatServiceRoleSid) + data.Set("DefaultChatServiceRoleSid", *params.DefaultChatServiceRoleSid) } if params != nil && params.DefaultConversationCreatorRoleSid != nil { - data.Set("DefaultConversationCreatorRoleSid", *params.DefaultConversationCreatorRoleSid) + data.Set("DefaultConversationCreatorRoleSid", *params.DefaultConversationCreatorRoleSid) } if params != nil && params.DefaultConversationRoleSid != nil { - data.Set("DefaultConversationRoleSid", *params.DefaultConversationRoleSid) + data.Set("DefaultConversationRoleSid", *params.DefaultConversationRoleSid) } if params != nil && params.ReachabilityEnabled != nil { - data.Set("ReachabilityEnabled", string(*params.ReachabilityEnabled)) + data.Set("ReachabilityEnabled", fmt.Sprint(*params.ReachabilityEnabled)) } @@ -3313,23 +3391,23 @@ func (c *DefaultApiService) UpdateServiceConfiguration(chatServiceSid string, pa } // UpdateServiceConversationParams Optional parameters for the method 'UpdateServiceConversation' type UpdateServiceConversationParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` Attributes *string `json:"Attributes,omitempty"` DateCreated *time.Time `json:"DateCreated,omitempty"` DateUpdated *time.Time `json:"DateUpdated,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` State *string `json:"State,omitempty"` - Timers.Closed *string `json:"Timers.Closed,omitempty"` - Timers.Inactive *string `json:"Timers.Inactive,omitempty"` + TimersClosed *string `json:"TimersClosed,omitempty"` + TimersInactive *string `json:"TimersInactive,omitempty"` UniqueName *string `json:"UniqueName,omitempty"` } /* UpdateServiceConversation Method for UpdateServiceConversation Update an existing conversation in your service - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. - * @param sid A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. + * @param Sid A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. * @param optional nil or *UpdateServiceConversationOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. @@ -3338,49 +3416,50 @@ Update an existing conversation in your service * @param "FriendlyName" (string) - The human-readable name of this conversation, limited to 256 characters. Optional. * @param "MessagingServiceSid" (string) - The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. * @param "State" (string) - Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` - * @param "Timers.Closed" (string) - ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. - * @param "Timers.Inactive" (string) - ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. + * @param "TimersClosed" (string) - ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. + * @param "TimersInactive" (string) - ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. @return ConversationsV1ServiceServiceConversation */ -func (c *DefaultApiService) UpdateServiceConversation(chatServiceSid string, sid string, params *UpdateServiceConversationParams) (*ConversationsV1ServiceServiceConversation, error) { +func (c *DefaultApiService) UpdateServiceConversation(ChatServiceSid string, Sid string, params *UpdateServiceConversationParams) (*ConversationsV1ServiceServiceConversation, error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := make(map[string]interface{}) if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) + data.Set("DateCreated", fmt.Sprint(*params.DateCreated)) } if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) + data.Set("DateUpdated", fmt.Sprint(*params.DateUpdated)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.MessagingServiceSid != nil { - data.Set("MessagingServiceSid", *params.MessagingServiceSid) + data.Set("MessagingServiceSid", *params.MessagingServiceSid) } if params != nil && params.State != nil { - data.Set("State", *params.State) + data.Set("State", *params.State) } - if params != nil && params.Timers.Closed != nil { - data.Set("Timers.Closed", *params.Timers.Closed) + if params != nil && params.TimersClosed != nil { + data.Set("TimersClosed", *params.TimersClosed) } - if params != nil && params.Timers.Inactive != nil { - data.Set("Timers.Inactive", *params.Timers.Inactive) + if params != nil && params.TimersInactive != nil { + data.Set("TimersInactive", *params.TimersInactive) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -3399,7 +3478,7 @@ func (c *DefaultApiService) UpdateServiceConversation(chatServiceSid string, sid } // UpdateServiceConversationMessageParams Optional parameters for the method 'UpdateServiceConversationMessage' type UpdateServiceConversationMessageParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` Attributes *string `json:"Attributes,omitempty"` Author *string `json:"Author,omitempty"` Body *string `json:"Body,omitempty"` @@ -3410,9 +3489,9 @@ type UpdateServiceConversationMessageParams struct { /* UpdateServiceConversationMessage Method for UpdateServiceConversationMessage Update an existing message in the conversation - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. - * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. - * @param sid A 34 character string that uniquely identifies this resource. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. + * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. + * @param Sid A 34 character string that uniquely identifies this resource. * @param optional nil or *UpdateServiceConversationMessageOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. @@ -3422,33 +3501,34 @@ Update an existing message in the conversation * @param "DateUpdated" (time.Time) - The date that this resource was last updated. `null` if the message has not been edited. @return ConversationsV1ServiceServiceConversationServiceConversationMessage */ -func (c *DefaultApiService) UpdateServiceConversationMessage(chatServiceSid string, conversationSid string, sid string, params *UpdateServiceConversationMessageParams) (*ConversationsV1ServiceServiceConversationServiceConversationMessage, error) { +func (c *DefaultApiService) UpdateServiceConversationMessage(ChatServiceSid string, ConversationSid string, Sid string, params *UpdateServiceConversationMessageParams) (*ConversationsV1ServiceServiceConversationServiceConversationMessage, error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := make(map[string]interface{}) if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.Author != nil { - data.Set("Author", *params.Author) + data.Set("Author", *params.Author) } if params != nil && params.Body != nil { - data.Set("Body", *params.Body) + data.Set("Body", *params.Body) } if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) + data.Set("DateCreated", fmt.Sprint(*params.DateCreated)) } if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) + data.Set("DateUpdated", fmt.Sprint(*params.DateUpdated)) } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -3467,24 +3547,24 @@ func (c *DefaultApiService) UpdateServiceConversationMessage(chatServiceSid stri } // UpdateServiceConversationParticipantParams Optional parameters for the method 'UpdateServiceConversationParticipant' type UpdateServiceConversationParticipantParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` Attributes *string `json:"Attributes,omitempty"` DateCreated *time.Time `json:"DateCreated,omitempty"` DateUpdated *time.Time `json:"DateUpdated,omitempty"` Identity *string `json:"Identity,omitempty"` LastReadMessageIndex *int32 `json:"LastReadMessageIndex,omitempty"` LastReadTimestamp *string `json:"LastReadTimestamp,omitempty"` - MessagingBinding.ProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` - MessagingBinding.ProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` + MessagingBindingProjectedAddress *string `json:"MessagingBindingProjectedAddress,omitempty"` + MessagingBindingProxyAddress *string `json:"MessagingBindingProxyAddress,omitempty"` RoleSid *string `json:"RoleSid,omitempty"` } /* UpdateServiceConversationParticipant Method for UpdateServiceConversationParticipant Update an existing participant in the conversation - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. - * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. - * @param sid A 34 character string that uniquely identifies this resource. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. + * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. + * @param Sid A 34 character string that uniquely identifies this resource. * @param optional nil or *UpdateServiceConversationParticipantOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. @@ -3493,50 +3573,51 @@ Update an existing participant in the conversation * @param "Identity" (string) - A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversation SDK to communicate. Limited to 256 characters. * @param "LastReadMessageIndex" (*int32) - Index of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. * @param "LastReadTimestamp" (string) - Timestamp of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. - * @param "MessagingBinding.ProjectedAddress" (string) - The address of the Twilio phone number that is used in Group MMS. 'null' value will remove it. - * @param "MessagingBinding.ProxyAddress" (string) - The address of the Twilio phone number that the participant is in contact with. 'null' value will remove it. + * @param "MessagingBindingProjectedAddress" (string) - The address of the Twilio phone number that is used in Group MMS. 'null' value will remove it. + * @param "MessagingBindingProxyAddress" (string) - The address of the Twilio phone number that the participant is in contact with. 'null' value will remove it. * @param "RoleSid" (string) - The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. @return ConversationsV1ServiceServiceConversationServiceConversationParticipant */ -func (c *DefaultApiService) UpdateServiceConversationParticipant(chatServiceSid string, conversationSid string, sid string, params *UpdateServiceConversationParticipantParams) (*ConversationsV1ServiceServiceConversationServiceConversationParticipant, error) { +func (c *DefaultApiService) UpdateServiceConversationParticipant(ChatServiceSid string, ConversationSid string, Sid string, params *UpdateServiceConversationParticipantParams) (*ConversationsV1ServiceServiceConversationServiceConversationParticipant, error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := make(map[string]interface{}) if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) + data.Set("DateCreated", fmt.Sprint(*params.DateCreated)) } if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) + data.Set("DateUpdated", fmt.Sprint(*params.DateUpdated)) } if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) + data.Set("Identity", *params.Identity) } if params != nil && params.LastReadMessageIndex != nil { - data.Set("LastReadMessageIndex", string(*params.LastReadMessageIndex)) + data.Set("LastReadMessageIndex", fmt.Sprint(*params.LastReadMessageIndex)) } if params != nil && params.LastReadTimestamp != nil { - data.Set("LastReadTimestamp", *params.LastReadTimestamp) + data.Set("LastReadTimestamp", *params.LastReadTimestamp) } - if params != nil && params.MessagingBinding.ProjectedAddress != nil { - data.Set("MessagingBinding.ProjectedAddress", *params.MessagingBinding.ProjectedAddress) + if params != nil && params.MessagingBindingProjectedAddress != nil { + data.Set("MessagingBindingProjectedAddress", *params.MessagingBindingProjectedAddress) } - if params != nil && params.MessagingBinding.ProxyAddress != nil { - data.Set("MessagingBinding.ProxyAddress", *params.MessagingBinding.ProxyAddress) + if params != nil && params.MessagingBindingProxyAddress != nil { + data.Set("MessagingBindingProxyAddress", *params.MessagingBindingProxyAddress) } if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) + data.Set("RoleSid", *params.RoleSid) } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -3555,50 +3636,51 @@ func (c *DefaultApiService) UpdateServiceConversationParticipant(chatServiceSid } // UpdateServiceConversationScopedWebhookParams Optional parameters for the method 'UpdateServiceConversationScopedWebhook' type UpdateServiceConversationScopedWebhookParams struct { - Configuration.Filters *[]string `json:"Configuration.Filters,omitempty"` - Configuration.FlowSid *string `json:"Configuration.FlowSid,omitempty"` - Configuration.Method *string `json:"Configuration.Method,omitempty"` - Configuration.Triggers *[]string `json:"Configuration.Triggers,omitempty"` - Configuration.Url *string `json:"Configuration.Url,omitempty"` + ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` + ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` + ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` + ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` + ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` } /* UpdateServiceConversationScopedWebhook Method for UpdateServiceConversationScopedWebhook Update an existing conversation-scoped webhook - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. - * @param conversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. - * @param sid A 34 character string that uniquely identifies this resource. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. + * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. + * @param Sid A 34 character string that uniquely identifies this resource. * @param optional nil or *UpdateServiceConversationScopedWebhookOpts - Optional Parameters: - * @param "Configuration.Filters" ([]string) - The list of events, firing webhook event for this Conversation. - * @param "Configuration.FlowSid" (string) - The studio flow SID, where the webhook should be sent to. - * @param "Configuration.Method" (string) - The HTTP method to be used when sending a webhook request. - * @param "Configuration.Triggers" ([]string) - The list of keywords, firing webhook event for this Conversation. - * @param "Configuration.Url" (string) - The absolute url the webhook request should be sent to. + * @param "ConfigurationFilters" ([]string) - The list of events, firing webhook event for this Conversation. + * @param "ConfigurationFlowSid" (string) - The studio flow SID, where the webhook should be sent to. + * @param "ConfigurationMethod" (string) - The HTTP method to be used when sending a webhook request. + * @param "ConfigurationTriggers" ([]string) - The list of keywords, firing webhook event for this Conversation. + * @param "ConfigurationUrl" (string) - The absolute url the webhook request should be sent to. @return ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook */ -func (c *DefaultApiService) UpdateServiceConversationScopedWebhook(chatServiceSid string, conversationSid string, sid string, params *UpdateServiceConversationScopedWebhookParams) (*ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook, error) { +func (c *DefaultApiService) UpdateServiceConversationScopedWebhook(ChatServiceSid string, ConversationSid string, Sid string, params *UpdateServiceConversationScopedWebhookParams) (*ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook, error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"ConversationSid"+"}", conversationSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 - if params != nil && params.Configuration.Filters != nil { - data.Set("Configuration.Filters", *params.Configuration.Filters) + if params != nil && params.ConfigurationFilters != nil { + data.Set("ConfigurationFilters", strings.Join(*params.ConfigurationFilters, ",")) } - if params != nil && params.Configuration.FlowSid != nil { - data.Set("Configuration.FlowSid", *params.Configuration.FlowSid) + if params != nil && params.ConfigurationFlowSid != nil { + data.Set("ConfigurationFlowSid", *params.ConfigurationFlowSid) } - if params != nil && params.Configuration.Method != nil { - data.Set("Configuration.Method", *params.Configuration.Method) + if params != nil && params.ConfigurationMethod != nil { + data.Set("ConfigurationMethod", *params.ConfigurationMethod) } - if params != nil && params.Configuration.Triggers != nil { - data.Set("Configuration.Triggers", *params.Configuration.Triggers) + if params != nil && params.ConfigurationTriggers != nil { + data.Set("ConfigurationTriggers", strings.Join(*params.ConfigurationTriggers, ",")) } - if params != nil && params.Configuration.Url != nil { - data.Set("Configuration.Url", *params.Configuration.Url) + if params != nil && params.ConfigurationUrl != nil { + data.Set("ConfigurationUrl", *params.ConfigurationUrl) } @@ -3618,76 +3700,77 @@ func (c *DefaultApiService) UpdateServiceConversationScopedWebhook(chatServiceSi } // UpdateServiceNotificationParams Optional parameters for the method 'UpdateServiceNotification' type UpdateServiceNotificationParams struct { - AddedToConversation.Enabled *bool `json:"AddedToConversation.Enabled,omitempty"` - AddedToConversation.Sound *string `json:"AddedToConversation.Sound,omitempty"` - AddedToConversation.Template *string `json:"AddedToConversation.Template,omitempty"` + AddedToConversationEnabled *bool `json:"AddedToConversationEnabled,omitempty"` + AddedToConversationSound *string `json:"AddedToConversationSound,omitempty"` + AddedToConversationTemplate *string `json:"AddedToConversationTemplate,omitempty"` LogEnabled *bool `json:"LogEnabled,omitempty"` - NewMessage.BadgeCountEnabled *bool `json:"NewMessage.BadgeCountEnabled,omitempty"` - NewMessage.Enabled *bool `json:"NewMessage.Enabled,omitempty"` - NewMessage.Sound *string `json:"NewMessage.Sound,omitempty"` - NewMessage.Template *string `json:"NewMessage.Template,omitempty"` - RemovedFromConversation.Enabled *bool `json:"RemovedFromConversation.Enabled,omitempty"` - RemovedFromConversation.Sound *string `json:"RemovedFromConversation.Sound,omitempty"` - RemovedFromConversation.Template *string `json:"RemovedFromConversation.Template,omitempty"` + NewMessageBadgeCountEnabled *bool `json:"NewMessageBadgeCountEnabled,omitempty"` + NewMessageEnabled *bool `json:"NewMessageEnabled,omitempty"` + NewMessageSound *string `json:"NewMessageSound,omitempty"` + NewMessageTemplate *string `json:"NewMessageTemplate,omitempty"` + RemovedFromConversationEnabled *bool `json:"RemovedFromConversationEnabled,omitempty"` + RemovedFromConversationSound *string `json:"RemovedFromConversationSound,omitempty"` + RemovedFromConversationTemplate *string `json:"RemovedFromConversationTemplate,omitempty"` } /* UpdateServiceNotification Method for UpdateServiceNotification Update push notification service settings - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Configuration applies to. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Configuration applies to. * @param optional nil or *UpdateServiceNotificationOpts - Optional Parameters: - * @param "AddedToConversation.Enabled" (bool) - Whether to send a notification when a participant is added to a conversation. The default is `false`. - * @param "AddedToConversation.Sound" (string) - The name of the sound to play when a participant is added to a conversation and `added_to_conversation.enabled` is `true`. - * @param "AddedToConversation.Template" (string) - The template to use to create the notification text displayed when a participant is added to a conversation and `added_to_conversation.enabled` is `true`. + * @param "AddedToConversationEnabled" (bool) - Whether to send a notification when a participant is added to a conversation. The default is `false`. + * @param "AddedToConversationSound" (string) - The name of the sound to play when a participant is added to a conversation and `added_to_conversation.enabled` is `true`. + * @param "AddedToConversationTemplate" (string) - The template to use to create the notification text displayed when a participant is added to a conversation and `added_to_conversation.enabled` is `true`. * @param "LogEnabled" (bool) - Weather the notification logging is enabled. - * @param "NewMessage.BadgeCountEnabled" (bool) - Whether the new message badge is enabled. The default is `false`. - * @param "NewMessage.Enabled" (bool) - Whether to send a notification when a new message is added to a conversation. The default is `false`. - * @param "NewMessage.Sound" (string) - The name of the sound to play when a new message is added to a conversation and `new_message.enabled` is `true`. - * @param "NewMessage.Template" (string) - The template to use to create the notification text displayed when a new message is added to a conversation and `new_message.enabled` is `true`. - * @param "RemovedFromConversation.Enabled" (bool) - Whether to send a notification to a user when they are removed from a conversation. The default is `false`. - * @param "RemovedFromConversation.Sound" (string) - The name of the sound to play to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`. - * @param "RemovedFromConversation.Template" (string) - The template to use to create the notification text displayed to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`. + * @param "NewMessageBadgeCountEnabled" (bool) - Whether the new message badge is enabled. The default is `false`. + * @param "NewMessageEnabled" (bool) - Whether to send a notification when a new message is added to a conversation. The default is `false`. + * @param "NewMessageSound" (string) - The name of the sound to play when a new message is added to a conversation and `new_message.enabled` is `true`. + * @param "NewMessageTemplate" (string) - The template to use to create the notification text displayed when a new message is added to a conversation and `new_message.enabled` is `true`. + * @param "RemovedFromConversationEnabled" (bool) - Whether to send a notification to a user when they are removed from a conversation. The default is `false`. + * @param "RemovedFromConversationSound" (string) - The name of the sound to play to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`. + * @param "RemovedFromConversationTemplate" (string) - The template to use to create the notification text displayed to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`. @return ConversationsV1ServiceServiceConfigurationServiceNotification */ -func (c *DefaultApiService) UpdateServiceNotification(chatServiceSid string, params *UpdateServiceNotificationParams) (*ConversationsV1ServiceServiceConfigurationServiceNotification, error) { +func (c *DefaultApiService) UpdateServiceNotification(ChatServiceSid string, params *UpdateServiceNotificationParams) (*ConversationsV1ServiceServiceConfigurationServiceNotification, error) { path := "/v1/Services/{ChatServiceSid}/Configuration/Notifications" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + data := url.Values{} headers := 0 - if params != nil && params.AddedToConversation.Enabled != nil { - data.Set("AddedToConversation.Enabled", string(*params.AddedToConversation.Enabled)) + if params != nil && params.AddedToConversationEnabled != nil { + data.Set("AddedToConversationEnabled", fmt.Sprint(*params.AddedToConversationEnabled)) } - if params != nil && params.AddedToConversation.Sound != nil { - data.Set("AddedToConversation.Sound", *params.AddedToConversation.Sound) + if params != nil && params.AddedToConversationSound != nil { + data.Set("AddedToConversationSound", *params.AddedToConversationSound) } - if params != nil && params.AddedToConversation.Template != nil { - data.Set("AddedToConversation.Template", *params.AddedToConversation.Template) + if params != nil && params.AddedToConversationTemplate != nil { + data.Set("AddedToConversationTemplate", *params.AddedToConversationTemplate) } if params != nil && params.LogEnabled != nil { - data.Set("LogEnabled", string(*params.LogEnabled)) + data.Set("LogEnabled", fmt.Sprint(*params.LogEnabled)) } - if params != nil && params.NewMessage.BadgeCountEnabled != nil { - data.Set("NewMessage.BadgeCountEnabled", string(*params.NewMessage.BadgeCountEnabled)) + if params != nil && params.NewMessageBadgeCountEnabled != nil { + data.Set("NewMessageBadgeCountEnabled", fmt.Sprint(*params.NewMessageBadgeCountEnabled)) } - if params != nil && params.NewMessage.Enabled != nil { - data.Set("NewMessage.Enabled", string(*params.NewMessage.Enabled)) + if params != nil && params.NewMessageEnabled != nil { + data.Set("NewMessageEnabled", fmt.Sprint(*params.NewMessageEnabled)) } - if params != nil && params.NewMessage.Sound != nil { - data.Set("NewMessage.Sound", *params.NewMessage.Sound) + if params != nil && params.NewMessageSound != nil { + data.Set("NewMessageSound", *params.NewMessageSound) } - if params != nil && params.NewMessage.Template != nil { - data.Set("NewMessage.Template", *params.NewMessage.Template) + if params != nil && params.NewMessageTemplate != nil { + data.Set("NewMessageTemplate", *params.NewMessageTemplate) } - if params != nil && params.RemovedFromConversation.Enabled != nil { - data.Set("RemovedFromConversation.Enabled", string(*params.RemovedFromConversation.Enabled)) + if params != nil && params.RemovedFromConversationEnabled != nil { + data.Set("RemovedFromConversationEnabled", fmt.Sprint(*params.RemovedFromConversationEnabled)) } - if params != nil && params.RemovedFromConversation.Sound != nil { - data.Set("RemovedFromConversation.Sound", *params.RemovedFromConversation.Sound) + if params != nil && params.RemovedFromConversationSound != nil { + data.Set("RemovedFromConversationSound", *params.RemovedFromConversationSound) } - if params != nil && params.RemovedFromConversation.Template != nil { - data.Set("RemovedFromConversation.Template", *params.RemovedFromConversation.Template) + if params != nil && params.RemovedFromConversationTemplate != nil { + data.Set("RemovedFromConversationTemplate", *params.RemovedFromConversationTemplate) } @@ -3713,22 +3796,23 @@ type UpdateServiceRoleParams struct { /* UpdateServiceRole Method for UpdateServiceRole Update an existing user role in your service - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to update the Role resource in. - * @param sid The SID of the Role resource to update. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to update the Role resource in. + * @param Sid The SID of the Role resource to update. * @param optional nil or *UpdateServiceRoleOpts - Optional Parameters: * @param "Permission" ([]string) - A permission that you grant to the role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. Note that the update action replaces all previously assigned permissions with those defined in the update action. To remove a permission, do not include it in the subsequent update action. The values for this parameter depend on the role's `type`. @return ConversationsV1ServiceServiceRole */ -func (c *DefaultApiService) UpdateServiceRole(chatServiceSid string, sid string, params *UpdateServiceRoleParams) (*ConversationsV1ServiceServiceRole, error) { +func (c *DefaultApiService) UpdateServiceRole(ChatServiceSid string, Sid string, params *UpdateServiceRoleParams) (*ConversationsV1ServiceServiceRole, error) { path := "/v1/Services/{ChatServiceSid}/Roles/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.Permission != nil { - data.Set("Permission", *params.Permission) + data.Set("Permission", strings.Join(*params.Permission, ",")) } @@ -3748,7 +3832,7 @@ func (c *DefaultApiService) UpdateServiceRole(chatServiceSid string, sid string, } // UpdateServiceUserParams Optional parameters for the method 'UpdateServiceUser' type UpdateServiceUserParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` Attributes *string `json:"Attributes,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` RoleSid *string `json:"RoleSid,omitempty"` @@ -3757,8 +3841,8 @@ type UpdateServiceUserParams struct { /* UpdateServiceUser Method for UpdateServiceUser Update an existing conversation user in your service - * @param chatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the User resource is associated with. - * @param sid The SID of the User resource to update. This value can be either the `sid` or the `identity` of the User resource to update. + * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the User resource is associated with. + * @param Sid The SID of the User resource to update. This value can be either the `sid` or the `identity` of the User resource to update. * @param optional nil or *UpdateServiceUserOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned. @@ -3766,26 +3850,27 @@ Update an existing conversation user in your service * @param "RoleSid" (string) - The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user. @return ConversationsV1ServiceServiceUser */ -func (c *DefaultApiService) UpdateServiceUser(chatServiceSid string, sid string, params *UpdateServiceUserParams) (*ConversationsV1ServiceServiceUser, error) { +func (c *DefaultApiService) UpdateServiceUser(ChatServiceSid string, Sid string, params *UpdateServiceUserParams) (*ConversationsV1ServiceServiceUser, error) { path := "/v1/Services/{ChatServiceSid}/Users/{Sid}" - path = strings.Replace(path, "{"+"ChatServiceSid"+"}", chatServiceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := make(map[string]interface{}) if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) + data.Set("RoleSid", *params.RoleSid) } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -3804,7 +3889,7 @@ func (c *DefaultApiService) UpdateServiceUser(chatServiceSid string, sid string, } // UpdateUserParams Optional parameters for the method 'UpdateUser' type UpdateUserParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` Attributes *string `json:"Attributes,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` RoleSid *string `json:"RoleSid,omitempty"` @@ -3813,7 +3898,7 @@ type UpdateUserParams struct { /* UpdateUser Method for UpdateUser Update an existing conversation user in your account's default service - * @param sid The SID of the User resource to update. This value can be either the `sid` or the `identity` of the User resource to update. + * @param Sid The SID of the User resource to update. This value can be either the `sid` or the `identity` of the User resource to update. * @param optional nil or *UpdateUserOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned. @@ -3821,25 +3906,26 @@ Update an existing conversation user in your account's default service * @param "RoleSid" (string) - The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user. @return ConversationsV1User */ -func (c *DefaultApiService) UpdateUser(sid string, params *UpdateUserParams) (*ConversationsV1User, error) { +func (c *DefaultApiService) UpdateUser(Sid string, params *UpdateUserParams) (*ConversationsV1User, error) { path := "/v1/Users/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := make(map[string]interface{}) if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) + data.Set("RoleSid", *params.RoleSid) } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Post(c.baseURL+path, data, headers) diff --git a/rest/conversations/v1/docs/DefaultApi.md b/rest/conversations/v1/docs/DefaultApi.md index b38336039..40aa0657a 100644 --- a/rest/conversations/v1/docs/DefaultApi.md +++ b/rest/conversations/v1/docs/DefaultApi.md @@ -114,16 +114,16 @@ Optional parameters are passed through a pointer to a CreateConversationOpts str Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | - **attributes** | **optional.String**| An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. | - **dateCreated** | **optional.Time**| The date that this resource was created. | - **dateUpdated** | **optional.Time**| The date that this resource was last updated. | - **friendlyName** | **optional.String**| The human-readable name of this conversation, limited to 256 characters. Optional. | - **messagingServiceSid** | **optional.String**| The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. | - **state** | **optional.String**| Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` | - **timersClosed** | **optional.String**| ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. | - **timersInactive** | **optional.String**| ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. | - **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **Attributes** | **optional.String**| An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. | + **DateCreated** | **optional.Time**| The date that this resource was created. | + **DateUpdated** | **optional.Time**| The date that this resource was last updated. | + **FriendlyName** | **optional.String**| The human-readable name of this conversation, limited to 256 characters. Optional. | + **MessagingServiceSid** | **optional.String**| The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. | + **State** | **optional.String**| Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` | + **TimersClosed** | **optional.String**| ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. | + **TimersInactive** | **optional.String**| ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. | + **UniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. | ### Return type @@ -145,7 +145,7 @@ Name | Type | Description | Notes ## CreateConversationMessage -> ConversationsV1ConversationConversationMessage CreateConversationMessage(ctx, conversationSid, optional) +> ConversationsV1ConversationConversationMessage CreateConversationMessage(ctx, ConversationSid, optional) @@ -157,7 +157,7 @@ Add a new message to the conversation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. | +**ConversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. | **optional** | ***CreateConversationMessageOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -168,13 +168,13 @@ Optional parameters are passed through a pointer to a CreateConversationMessageO Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | - **attributes** | **optional.String**| A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. | - **author** | **optional.String**| The channel specific identifier of the message's author. Defaults to `system`. | - **body** | **optional.String**| The content of the message, can be up to 1,600 characters long. | - **dateCreated** | **optional.Time**| The date that this resource was created. | - **dateUpdated** | **optional.Time**| The date that this resource was last updated. `null` if the message has not been edited. | - **mediaSid** | **optional.String**| The Media SID to be attached to the new Message. | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **Attributes** | **optional.String**| A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. | + **Author** | **optional.String**| The channel specific identifier of the message's author. Defaults to `system`. | + **Body** | **optional.String**| The content of the message, can be up to 1,600 characters long. | + **DateCreated** | **optional.Time**| The date that this resource was created. | + **DateUpdated** | **optional.Time**| The date that this resource was last updated. `null` if the message has not been edited. | + **MediaSid** | **optional.String**| The Media SID to be attached to the new Message. | ### Return type @@ -196,7 +196,7 @@ Name | Type | Description | Notes ## CreateConversationParticipant -> ConversationsV1ConversationConversationParticipant CreateConversationParticipant(ctx, conversationSid, optional) +> ConversationsV1ConversationConversationParticipant CreateConversationParticipant(ctx, ConversationSid, optional) @@ -208,7 +208,7 @@ Add a new participant to the conversation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. | +**ConversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. | **optional** | ***CreateConversationParticipantOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -219,15 +219,15 @@ Optional parameters are passed through a pointer to a CreateConversationParticip Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | - **attributes** | **optional.String**| An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. | - **dateCreated** | **optional.Time**| The date that this resource was created. | - **dateUpdated** | **optional.Time**| The date that this resource was last updated. | - **identity** | **optional.String**| A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters. | - **messagingBindingAddress** | **optional.String**| The address of the participant's device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). | - **messagingBindingProjectedAddress** | **optional.String**| The address of the Twilio phone number that is used in Group MMS. Communication mask for the Conversation participant with Identity. | - **messagingBindingProxyAddress** | **optional.String**| The address of the Twilio phone number (or WhatsApp number) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). | - **roleSid** | **optional.String**| The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **Attributes** | **optional.String**| An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. | + **DateCreated** | **optional.Time**| The date that this resource was created. | + **DateUpdated** | **optional.Time**| The date that this resource was last updated. | + **Identity** | **optional.String**| A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters. | + **MessagingBindingAddress** | **optional.String**| The address of the participant's device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). | + **MessagingBindingProjectedAddress** | **optional.String**| The address of the Twilio phone number that is used in Group MMS. Communication mask for the Conversation participant with Identity. | + **MessagingBindingProxyAddress** | **optional.String**| The address of the Twilio phone number (or WhatsApp number) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). | + **RoleSid** | **optional.String**| The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. | ### Return type @@ -249,7 +249,7 @@ Name | Type | Description | Notes ## CreateConversationScopedWebhook -> ConversationsV1ConversationConversationScopedWebhook CreateConversationScopedWebhook(ctx, conversationSid, optional) +> ConversationsV1ConversationConversationScopedWebhook CreateConversationScopedWebhook(ctx, ConversationSid, optional) @@ -261,7 +261,7 @@ Create a new webhook scoped to the conversation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. | +**ConversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. | **optional** | ***CreateConversationScopedWebhookOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -272,13 +272,13 @@ Optional parameters are passed through a pointer to a CreateConversationScopedWe Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **configurationFilters** | [**optional.Interface of []string**](string.md)| The list of events, firing webhook event for this Conversation. | - **configurationFlowSid** | **optional.String**| The studio flow SID, where the webhook should be sent to. | - **configurationMethod** | **optional.String**| The HTTP method to be used when sending a webhook request. | - **configurationReplayAfter** | **optional.Int32**| The message index for which and it's successors the webhook will be replayed. Not set by default | - **configurationTriggers** | [**optional.Interface of []string**](string.md)| The list of keywords, firing webhook event for this Conversation. | - **configurationUrl** | **optional.String**| The absolute url the webhook request should be sent to. | - **target** | **optional.String**| The target of this webhook: `webhook`, `studio`, `trigger` | + **ConfigurationFilters** | [**optional.Interface of []string**](string.md)| The list of events, firing webhook event for this Conversation. | + **ConfigurationFlowSid** | **optional.String**| The studio flow SID, where the webhook should be sent to. | + **ConfigurationMethod** | **optional.String**| The HTTP method to be used when sending a webhook request. | + **ConfigurationReplayAfter** | **optional.Int32**| The message index for which and it's successors the webhook will be replayed. Not set by default | + **ConfigurationTriggers** | [**optional.Interface of []string**](string.md)| The list of keywords, firing webhook event for this Conversation. | + **ConfigurationUrl** | **optional.String**| The absolute url the webhook request should be sent to. | + **Target** | **optional.String**| The target of this webhook: `webhook`, `studio`, `trigger` | ### Return type @@ -321,13 +321,13 @@ Optional parameters are passed through a pointer to a CreateCredentialOpts struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiKey** | **optional.String**| [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. | - **certificate** | **optional.String**| [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== -----END CERTIFICATE-----`. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | - **privateKey** | **optional.String**| [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fG... -----END RSA PRIVATE KEY-----`. | - **sandbox** | **optional.Bool**| [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. | - **secret** | **optional.String**| [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. | - **type_** | **optional.String**| The type of push-notification service the credential is for. Can be: `fcm`, `gcm`, or `apn`. | + **ApiKey** | **optional.String**| [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. | + **Certificate** | **optional.String**| [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== -----END CERTIFICATE-----`. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | + **PrivateKey** | **optional.String**| [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fG... -----END RSA PRIVATE KEY-----`. | + **Sandbox** | **optional.Bool**| [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. | + **Secret** | **optional.String**| [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. | + **Type** | **optional.String**| The type of push-notification service the credential is for. Can be: `fcm`, `gcm`, or `apn`. | ### Return type @@ -370,9 +370,9 @@ Optional parameters are passed through a pointer to a CreateRoleOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | - **permission** | [**optional.Interface of []string**](string.md)| A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type`. | - **type_** | **optional.String**| The type of role. Can be: `conversation` for [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) roles or `service` for [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) roles. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | + **Permission** | [**optional.Interface of []string**](string.md)| A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type`. | + **Type** | **optional.String**| The type of role. Can be: `conversation` for [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) roles or `service` for [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) roles. | ### Return type @@ -415,7 +415,7 @@ Optional parameters are passed through a pointer to a CreateServiceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| The human-readable name of this service, limited to 256 characters. Optional. | + **FriendlyName** | **optional.String**| The human-readable name of this service, limited to 256 characters. Optional. | ### Return type @@ -437,7 +437,7 @@ Name | Type | Description | Notes ## CreateServiceConversation -> ConversationsV1ServiceServiceConversation CreateServiceConversation(ctx, chatServiceSid, optional) +> ConversationsV1ServiceServiceConversation CreateServiceConversation(ctx, ChatServiceSid, optional) @@ -449,7 +449,7 @@ Create a new conversation in your service Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. | **optional** | ***CreateServiceConversationOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -460,16 +460,16 @@ Optional parameters are passed through a pointer to a CreateServiceConversationO Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | - **attributes** | **optional.String**| An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. | - **dateCreated** | **optional.Time**| The date that this resource was created. | - **dateUpdated** | **optional.Time**| The date that this resource was last updated. | - **friendlyName** | **optional.String**| The human-readable name of this conversation, limited to 256 characters. Optional. | - **messagingServiceSid** | **optional.String**| The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. | - **state** | **optional.String**| Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` | - **timersClosed** | **optional.String**| ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. | - **timersInactive** | **optional.String**| ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. | - **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **Attributes** | **optional.String**| An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. | + **DateCreated** | **optional.Time**| The date that this resource was created. | + **DateUpdated** | **optional.Time**| The date that this resource was last updated. | + **FriendlyName** | **optional.String**| The human-readable name of this conversation, limited to 256 characters. Optional. | + **MessagingServiceSid** | **optional.String**| The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. | + **State** | **optional.String**| Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` | + **TimersClosed** | **optional.String**| ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. | + **TimersInactive** | **optional.String**| ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. | + **UniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. | ### Return type @@ -491,7 +491,7 @@ Name | Type | Description | Notes ## CreateServiceConversationMessage -> ConversationsV1ServiceServiceConversationServiceConversationMessage CreateServiceConversationMessage(ctx, chatServiceSid, conversationSid, optional) +> ConversationsV1ServiceServiceConversationServiceConversationMessage CreateServiceConversationMessage(ctx, ChatServiceSid, ConversationSid, optional) @@ -503,8 +503,8 @@ Add a new message to the conversation in a specific service Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | -**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | +**ConversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. | **optional** | ***CreateServiceConversationMessageOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -516,13 +516,13 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | - **attributes** | **optional.String**| A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. | - **author** | **optional.String**| The channel specific identifier of the message's author. Defaults to `system`. | - **body** | **optional.String**| The content of the message, can be up to 1,600 characters long. | - **dateCreated** | **optional.Time**| The date that this resource was created. | - **dateUpdated** | **optional.Time**| The date that this resource was last updated. `null` if the message has not been edited. | - **mediaSid** | **optional.String**| The Media SID to be attached to the new Message. | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **Attributes** | **optional.String**| A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. | + **Author** | **optional.String**| The channel specific identifier of the message's author. Defaults to `system`. | + **Body** | **optional.String**| The content of the message, can be up to 1,600 characters long. | + **DateCreated** | **optional.Time**| The date that this resource was created. | + **DateUpdated** | **optional.Time**| The date that this resource was last updated. `null` if the message has not been edited. | + **MediaSid** | **optional.String**| The Media SID to be attached to the new Message. | ### Return type @@ -544,7 +544,7 @@ Name | Type | Description | Notes ## CreateServiceConversationParticipant -> ConversationsV1ServiceServiceConversationServiceConversationParticipant CreateServiceConversationParticipant(ctx, chatServiceSid, conversationSid, optional) +> ConversationsV1ServiceServiceConversationServiceConversationParticipant CreateServiceConversationParticipant(ctx, ChatServiceSid, ConversationSid, optional) @@ -556,8 +556,8 @@ Add a new participant to the conversation in a specific service Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | -**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | +**ConversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. | **optional** | ***CreateServiceConversationParticipantOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -569,15 +569,15 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | - **attributes** | **optional.String**| An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. | - **dateCreated** | **optional.Time**| The date that this resource was created. | - **dateUpdated** | **optional.Time**| The date that this resource was last updated. | - **identity** | **optional.String**| A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversation SDK to communicate. Limited to 256 characters. | - **messagingBindingAddress** | **optional.String**| The address of the participant's device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). | - **messagingBindingProjectedAddress** | **optional.String**| The address of the Twilio phone number that is used in Group MMS. Communication mask for the Conversation participant with Identity. | - **messagingBindingProxyAddress** | **optional.String**| The address of the Twilio phone number (or WhatsApp number) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). | - **roleSid** | **optional.String**| The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **Attributes** | **optional.String**| An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. | + **DateCreated** | **optional.Time**| The date that this resource was created. | + **DateUpdated** | **optional.Time**| The date that this resource was last updated. | + **Identity** | **optional.String**| A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversation SDK to communicate. Limited to 256 characters. | + **MessagingBindingAddress** | **optional.String**| The address of the participant's device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). | + **MessagingBindingProjectedAddress** | **optional.String**| The address of the Twilio phone number that is used in Group MMS. Communication mask for the Conversation participant with Identity. | + **MessagingBindingProxyAddress** | **optional.String**| The address of the Twilio phone number (or WhatsApp number) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). | + **RoleSid** | **optional.String**| The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. | ### Return type @@ -599,7 +599,7 @@ Name | Type | Description | Notes ## CreateServiceConversationScopedWebhook -> ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook CreateServiceConversationScopedWebhook(ctx, chatServiceSid, conversationSid, optional) +> ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook CreateServiceConversationScopedWebhook(ctx, ChatServiceSid, ConversationSid, optional) @@ -611,8 +611,8 @@ Create a new webhook scoped to the conversation in a specific service Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | -**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | +**ConversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. | **optional** | ***CreateServiceConversationScopedWebhookOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -624,13 +624,13 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **configurationFilters** | [**optional.Interface of []string**](string.md)| The list of events, firing webhook event for this Conversation. | - **configurationFlowSid** | **optional.String**| The studio flow SID, where the webhook should be sent to. | - **configurationMethod** | **optional.String**| The HTTP method to be used when sending a webhook request. | - **configurationReplayAfter** | **optional.Int32**| The message index for which and it's successors the webhook will be replayed. Not set by default | - **configurationTriggers** | [**optional.Interface of []string**](string.md)| The list of keywords, firing webhook event for this Conversation. | - **configurationUrl** | **optional.String**| The absolute url the webhook request should be sent to. | - **target** | **optional.String**| The target of this webhook: `webhook`, `studio`, `trigger` | + **ConfigurationFilters** | [**optional.Interface of []string**](string.md)| The list of events, firing webhook event for this Conversation. | + **ConfigurationFlowSid** | **optional.String**| The studio flow SID, where the webhook should be sent to. | + **ConfigurationMethod** | **optional.String**| The HTTP method to be used when sending a webhook request. | + **ConfigurationReplayAfter** | **optional.Int32**| The message index for which and it's successors the webhook will be replayed. Not set by default | + **ConfigurationTriggers** | [**optional.Interface of []string**](string.md)| The list of keywords, firing webhook event for this Conversation. | + **ConfigurationUrl** | **optional.String**| The absolute url the webhook request should be sent to. | + **Target** | **optional.String**| The target of this webhook: `webhook`, `studio`, `trigger` | ### Return type @@ -652,7 +652,7 @@ Name | Type | Description | Notes ## CreateServiceRole -> ConversationsV1ServiceServiceRole CreateServiceRole(ctx, chatServiceSid, optional) +> ConversationsV1ServiceServiceRole CreateServiceRole(ctx, ChatServiceSid, optional) @@ -664,7 +664,7 @@ Create a new user role in your service Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to create the Role resource under. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to create the Role resource under. | **optional** | ***CreateServiceRoleOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -675,9 +675,9 @@ Optional parameters are passed through a pointer to a CreateServiceRoleOpts stru Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | - **permission** | [**optional.Interface of []string**](string.md)| A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type`. | - **type_** | **optional.String**| The type of role. Can be: `conversation` for [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) roles or `service` for [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) roles. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | + **Permission** | [**optional.Interface of []string**](string.md)| A permission that you grant to the new role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. The values for this parameter depend on the role's `type`. | + **Type** | **optional.String**| The type of role. Can be: `conversation` for [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) roles or `service` for [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) roles. | ### Return type @@ -699,7 +699,7 @@ Name | Type | Description | Notes ## CreateServiceUser -> ConversationsV1ServiceServiceUser CreateServiceUser(ctx, chatServiceSid, optional) +> ConversationsV1ServiceServiceUser CreateServiceUser(ctx, ChatServiceSid, optional) @@ -711,7 +711,7 @@ Add a new conversation user to your service Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the User resource is associated with. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the User resource is associated with. | **optional** | ***CreateServiceUserOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -722,11 +722,11 @@ Optional parameters are passed through a pointer to a CreateServiceUserOpts stru Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | - **attributes** | **optional.String**| The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned. | - **friendlyName** | **optional.String**| The string that you assigned to describe the resource. | - **identity** | **optional.String**| The application-defined string that uniquely identifies the resource's User within the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource). This value is often a username or an email address, and is case-sensitive. | - **roleSid** | **optional.String**| The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user. | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **Attributes** | **optional.String**| The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned. | + **FriendlyName** | **optional.String**| The string that you assigned to describe the resource. | + **Identity** | **optional.String**| The application-defined string that uniquely identifies the resource's User within the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource). This value is often a username or an email address, and is case-sensitive. | + **RoleSid** | **optional.String**| The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user. | ### Return type @@ -769,11 +769,11 @@ Optional parameters are passed through a pointer to a CreateUserOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | - **attributes** | **optional.String**| The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned. | - **friendlyName** | **optional.String**| The string that you assigned to describe the resource. | - **identity** | **optional.String**| The application-defined string that uniquely identifies the resource's User within the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource). This value is often a username or an email address, and is case-sensitive. | - **roleSid** | **optional.String**| The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user. | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **Attributes** | **optional.String**| The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned. | + **FriendlyName** | **optional.String**| The string that you assigned to describe the resource. | + **Identity** | **optional.String**| The application-defined string that uniquely identifies the resource's User within the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource). This value is often a username or an email address, and is case-sensitive. | + **RoleSid** | **optional.String**| The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user. | ### Return type @@ -795,7 +795,7 @@ Name | Type | Description | Notes ## DeleteConversation -> DeleteConversation(ctx, sid, optional) +> DeleteConversation(ctx, Sid, optional) @@ -807,7 +807,7 @@ Remove a conversation from your account's default service Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. | **optional** | ***DeleteConversationOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -818,7 +818,7 @@ Optional parameters are passed through a pointer to a DeleteConversationOpts str Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | ### Return type @@ -840,7 +840,7 @@ Name | Type | Description | Notes ## DeleteConversationMessage -> DeleteConversationMessage(ctx, conversationSid, sid, optional) +> DeleteConversationMessage(ctx, ConversationSid, Sid, optional) @@ -852,8 +852,8 @@ Remove a message from the conversation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**ConversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | **optional** | ***DeleteConversationMessageOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -865,7 +865,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | ### Return type @@ -887,7 +887,7 @@ Name | Type | Description | Notes ## DeleteConversationParticipant -> DeleteConversationParticipant(ctx, conversationSid, sid, optional) +> DeleteConversationParticipant(ctx, ConversationSid, Sid, optional) @@ -899,8 +899,8 @@ Remove a participant from the conversation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**ConversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | **optional** | ***DeleteConversationParticipantOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -912,7 +912,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | ### Return type @@ -934,7 +934,7 @@ Name | Type | Description | Notes ## DeleteConversationScopedWebhook -> DeleteConversationScopedWebhook(ctx, conversationSid, sid) +> DeleteConversationScopedWebhook(ctx, ConversationSid, Sid) @@ -946,8 +946,8 @@ Remove an existing webhook scoped to the conversation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**ConversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | ### Return type @@ -969,7 +969,7 @@ Name | Type | Description | Notes ## DeleteCredential -> DeleteCredential(ctx, sid) +> DeleteCredential(ctx, Sid) @@ -981,7 +981,7 @@ Remove a push notification credential from your account Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | ### Return type @@ -1003,7 +1003,7 @@ Name | Type | Description | Notes ## DeleteRole -> DeleteRole(ctx, sid) +> DeleteRole(ctx, Sid) @@ -1015,7 +1015,7 @@ Remove a user role from your account's default service Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Role resource to delete. | +**Sid** | **string**| The SID of the Role resource to delete. | ### Return type @@ -1037,7 +1037,7 @@ Name | Type | Description | Notes ## DeleteService -> DeleteService(ctx, sid) +> DeleteService(ctx, Sid) @@ -1049,7 +1049,7 @@ Remove a conversation service with all its nested resources from your account Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | ### Return type @@ -1071,7 +1071,7 @@ Name | Type | Description | Notes ## DeleteServiceBinding -> DeleteServiceBinding(ctx, chatServiceSid, sid) +> DeleteServiceBinding(ctx, ChatServiceSid, Sid) @@ -1083,8 +1083,8 @@ Remove a push notification binding from the conversation service Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to delete the Binding resource from. | -**sid** | **string**| The SID of the Binding resource to delete. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to delete the Binding resource from. | +**Sid** | **string**| The SID of the Binding resource to delete. | ### Return type @@ -1106,7 +1106,7 @@ Name | Type | Description | Notes ## DeleteServiceConversation -> DeleteServiceConversation(ctx, chatServiceSid, sid, optional) +> DeleteServiceConversation(ctx, ChatServiceSid, Sid, optional) @@ -1118,8 +1118,8 @@ Remove a conversation from your service Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. | **optional** | ***DeleteServiceConversationOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1131,7 +1131,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | ### Return type @@ -1153,7 +1153,7 @@ Name | Type | Description | Notes ## DeleteServiceConversationMessage -> DeleteServiceConversationMessage(ctx, chatServiceSid, conversationSid, sid, optional) +> DeleteServiceConversationMessage(ctx, ChatServiceSid, ConversationSid, Sid, optional) @@ -1165,9 +1165,9 @@ Remove a message from the conversation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | -**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | +**ConversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | **optional** | ***DeleteServiceConversationMessageOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1180,7 +1180,7 @@ Name | Type | Description | Notes - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | ### Return type @@ -1202,7 +1202,7 @@ Name | Type | Description | Notes ## DeleteServiceConversationParticipant -> DeleteServiceConversationParticipant(ctx, chatServiceSid, conversationSid, sid, optional) +> DeleteServiceConversationParticipant(ctx, ChatServiceSid, ConversationSid, Sid, optional) @@ -1214,9 +1214,9 @@ Remove a participant from the conversation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | -**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | +**ConversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | **optional** | ***DeleteServiceConversationParticipantOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1229,7 +1229,7 @@ Name | Type | Description | Notes - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | ### Return type @@ -1251,7 +1251,7 @@ Name | Type | Description | Notes ## DeleteServiceConversationScopedWebhook -> DeleteServiceConversationScopedWebhook(ctx, chatServiceSid, conversationSid, sid) +> DeleteServiceConversationScopedWebhook(ctx, ChatServiceSid, ConversationSid, Sid) @@ -1263,9 +1263,9 @@ Remove an existing webhook scoped to the conversation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | -**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | +**ConversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | ### Return type @@ -1287,7 +1287,7 @@ Name | Type | Description | Notes ## DeleteServiceRole -> DeleteServiceRole(ctx, chatServiceSid, sid) +> DeleteServiceRole(ctx, ChatServiceSid, Sid) @@ -1299,8 +1299,8 @@ Remove a user role from your service Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to delete the Role resource from. | -**sid** | **string**| The SID of the Role resource to delete. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to delete the Role resource from. | +**Sid** | **string**| The SID of the Role resource to delete. | ### Return type @@ -1322,7 +1322,7 @@ Name | Type | Description | Notes ## DeleteServiceUser -> DeleteServiceUser(ctx, chatServiceSid, sid, optional) +> DeleteServiceUser(ctx, ChatServiceSid, Sid, optional) @@ -1334,8 +1334,8 @@ Remove a conversation user from your service Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to delete the User resource from. | -**sid** | **string**| The SID of the User resource to delete. This value can be either the `sid` or the `identity` of the User resource to delete. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to delete the User resource from. | +**Sid** | **string**| The SID of the User resource to delete. This value can be either the `sid` or the `identity` of the User resource to delete. | **optional** | ***DeleteServiceUserOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1347,7 +1347,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | ### Return type @@ -1369,7 +1369,7 @@ Name | Type | Description | Notes ## DeleteUser -> DeleteUser(ctx, sid, optional) +> DeleteUser(ctx, Sid, optional) @@ -1381,7 +1381,7 @@ Remove a conversation user from your account's default service Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the User resource to delete. This value can be either the `sid` or the `identity` of the User resource to delete. | +**Sid** | **string**| The SID of the User resource to delete. This value can be either the `sid` or the `identity` of the User resource to delete. | **optional** | ***DeleteUserOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1392,7 +1392,7 @@ Optional parameters are passed through a pointer to a DeleteUserOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | ### Return type @@ -1472,7 +1472,7 @@ This endpoint does not need any parameter. ## FetchConversation -> ConversationsV1Conversation FetchConversation(ctx, sid) +> ConversationsV1Conversation FetchConversation(ctx, Sid) @@ -1484,7 +1484,7 @@ Fetch a conversation from your account's default service Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. | ### Return type @@ -1506,7 +1506,7 @@ Name | Type | Description | Notes ## FetchConversationMessage -> ConversationsV1ConversationConversationMessage FetchConversationMessage(ctx, conversationSid, sid) +> ConversationsV1ConversationConversationMessage FetchConversationMessage(ctx, ConversationSid, Sid) @@ -1518,8 +1518,8 @@ Fetch a message from the conversation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**ConversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | ### Return type @@ -1541,7 +1541,7 @@ Name | Type | Description | Notes ## FetchConversationMessageReceipt -> ConversationsV1ConversationConversationMessageConversationMessageReceipt FetchConversationMessageReceipt(ctx, conversationSid, messageSid, sid) +> ConversationsV1ConversationConversationMessageConversationMessageReceipt FetchConversationMessageReceipt(ctx, ConversationSid, MessageSid, Sid) @@ -1553,9 +1553,9 @@ Fetch the delivery and read receipts of the conversation message Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. | -**messageSid** | **string**| The SID of the message within a [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) the delivery receipt belongs to. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**ConversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. | +**MessageSid** | **string**| The SID of the message within a [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) the delivery receipt belongs to. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | ### Return type @@ -1577,7 +1577,7 @@ Name | Type | Description | Notes ## FetchConversationParticipant -> ConversationsV1ConversationConversationParticipant FetchConversationParticipant(ctx, conversationSid, sid) +> ConversationsV1ConversationConversationParticipant FetchConversationParticipant(ctx, ConversationSid, Sid) @@ -1589,8 +1589,8 @@ Fetch a participant of the conversation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**ConversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | ### Return type @@ -1612,7 +1612,7 @@ Name | Type | Description | Notes ## FetchConversationScopedWebhook -> ConversationsV1ConversationConversationScopedWebhook FetchConversationScopedWebhook(ctx, conversationSid, sid) +> ConversationsV1ConversationConversationScopedWebhook FetchConversationScopedWebhook(ctx, ConversationSid, Sid) @@ -1624,8 +1624,8 @@ Fetch the configuration of a conversation-scoped webhook Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**ConversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | ### Return type @@ -1647,7 +1647,7 @@ Name | Type | Description | Notes ## FetchCredential -> ConversationsV1Credential FetchCredential(ctx, sid) +> ConversationsV1Credential FetchCredential(ctx, Sid) @@ -1659,7 +1659,7 @@ Fetch a push notification credential from your account Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | ### Return type @@ -1681,7 +1681,7 @@ Name | Type | Description | Notes ## FetchRole -> ConversationsV1Role FetchRole(ctx, sid) +> ConversationsV1Role FetchRole(ctx, Sid) @@ -1693,7 +1693,7 @@ Fetch a user role from your account's default service Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Role resource to fetch. | +**Sid** | **string**| The SID of the Role resource to fetch. | ### Return type @@ -1715,7 +1715,7 @@ Name | Type | Description | Notes ## FetchService -> ConversationsV1Service FetchService(ctx, sid) +> ConversationsV1Service FetchService(ctx, Sid) @@ -1727,7 +1727,7 @@ Fetch a conversation service from your account Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | ### Return type @@ -1749,7 +1749,7 @@ Name | Type | Description | Notes ## FetchServiceBinding -> ConversationsV1ServiceServiceBinding FetchServiceBinding(ctx, chatServiceSid, sid) +> ConversationsV1ServiceServiceBinding FetchServiceBinding(ctx, ChatServiceSid, Sid) @@ -1761,8 +1761,8 @@ Fetch a push notification binding from the conversation service Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Binding resource is associated with. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Binding resource is associated with. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | ### Return type @@ -1784,7 +1784,7 @@ Name | Type | Description | Notes ## FetchServiceConfiguration -> ConversationsV1ServiceServiceConfiguration FetchServiceConfiguration(ctx, chatServiceSid) +> ConversationsV1ServiceServiceConfiguration FetchServiceConfiguration(ctx, ChatServiceSid) @@ -1796,7 +1796,7 @@ Fetch the configuration of a conversation service Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the Service configuration resource to fetch. | +**ChatServiceSid** | **string**| The SID of the Service configuration resource to fetch. | ### Return type @@ -1818,7 +1818,7 @@ Name | Type | Description | Notes ## FetchServiceConversation -> ConversationsV1ServiceServiceConversation FetchServiceConversation(ctx, chatServiceSid, sid) +> ConversationsV1ServiceServiceConversation FetchServiceConversation(ctx, ChatServiceSid, Sid) @@ -1830,8 +1830,8 @@ Fetch a conversation from your service Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. | ### Return type @@ -1853,7 +1853,7 @@ Name | Type | Description | Notes ## FetchServiceConversationMessage -> ConversationsV1ServiceServiceConversationServiceConversationMessage FetchServiceConversationMessage(ctx, chatServiceSid, conversationSid, sid) +> ConversationsV1ServiceServiceConversationServiceConversationMessage FetchServiceConversationMessage(ctx, ChatServiceSid, ConversationSid, Sid) @@ -1865,9 +1865,9 @@ Fetch a message from the conversation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | -**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | +**ConversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | ### Return type @@ -1889,7 +1889,7 @@ Name | Type | Description | Notes ## FetchServiceConversationMessageReceipt -> ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt FetchServiceConversationMessageReceipt(ctx, chatServiceSid, conversationSid, messageSid, sid) +> ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt FetchServiceConversationMessageReceipt(ctx, ChatServiceSid, ConversationSid, MessageSid, Sid) @@ -1901,10 +1901,10 @@ Fetch the delivery and read receipts of the conversation message Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Message resource is associated with. | -**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. | -**messageSid** | **string**| The SID of the message within a [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) the delivery receipt belongs to. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Message resource is associated with. | +**ConversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. | +**MessageSid** | **string**| The SID of the message within a [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) the delivery receipt belongs to. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | ### Return type @@ -1926,7 +1926,7 @@ Name | Type | Description | Notes ## FetchServiceConversationParticipant -> ConversationsV1ServiceServiceConversationServiceConversationParticipant FetchServiceConversationParticipant(ctx, chatServiceSid, conversationSid, sid) +> ConversationsV1ServiceServiceConversationServiceConversationParticipant FetchServiceConversationParticipant(ctx, ChatServiceSid, ConversationSid, Sid) @@ -1938,9 +1938,9 @@ Fetch a participant of the conversation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | -**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | +**ConversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | ### Return type @@ -1962,7 +1962,7 @@ Name | Type | Description | Notes ## FetchServiceConversationScopedWebhook -> ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook FetchServiceConversationScopedWebhook(ctx, chatServiceSid, conversationSid, sid) +> ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook FetchServiceConversationScopedWebhook(ctx, ChatServiceSid, ConversationSid, Sid) @@ -1974,9 +1974,9 @@ Fetch the configuration of a conversation-scoped webhook Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | -**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | +**ConversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | ### Return type @@ -1998,7 +1998,7 @@ Name | Type | Description | Notes ## FetchServiceNotification -> ConversationsV1ServiceServiceConfigurationServiceNotification FetchServiceNotification(ctx, chatServiceSid) +> ConversationsV1ServiceServiceConfigurationServiceNotification FetchServiceNotification(ctx, ChatServiceSid) @@ -2010,7 +2010,7 @@ Fetch push notification service settings Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Configuration applies to. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Configuration applies to. | ### Return type @@ -2032,7 +2032,7 @@ Name | Type | Description | Notes ## FetchServiceRole -> ConversationsV1ServiceServiceRole FetchServiceRole(ctx, chatServiceSid, sid) +> ConversationsV1ServiceServiceRole FetchServiceRole(ctx, ChatServiceSid, Sid) @@ -2044,8 +2044,8 @@ Fetch a user role from your service Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to fetch the Role resource from. | -**sid** | **string**| The SID of the Role resource to fetch. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to fetch the Role resource from. | +**Sid** | **string**| The SID of the Role resource to fetch. | ### Return type @@ -2067,7 +2067,7 @@ Name | Type | Description | Notes ## FetchServiceUser -> ConversationsV1ServiceServiceUser FetchServiceUser(ctx, chatServiceSid, sid) +> ConversationsV1ServiceServiceUser FetchServiceUser(ctx, ChatServiceSid, Sid) @@ -2079,8 +2079,8 @@ Fetch a conversation user from your service Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to fetch the User resource from. | -**sid** | **string**| The SID of the User resource to fetch. This value can be either the `sid` or the `identity` of the User resource to fetch. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to fetch the User resource from. | +**Sid** | **string**| The SID of the User resource to fetch. This value can be either the `sid` or the `identity` of the User resource to fetch. | ### Return type @@ -2102,7 +2102,7 @@ Name | Type | Description | Notes ## FetchUser -> ConversationsV1User FetchUser(ctx, sid) +> ConversationsV1User FetchUser(ctx, Sid) @@ -2114,7 +2114,7 @@ Fetch a conversation user from your account's default service Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the User resource to fetch. This value can be either the `sid` or the `identity` of the User resource to fetch. | +**Sid** | **string**| The SID of the User resource to fetch. This value can be either the `sid` or the `identity` of the User resource to fetch. | ### Return type @@ -2157,7 +2157,7 @@ Optional parameters are passed through a pointer to a ListConversationOpts struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -2179,7 +2179,7 @@ Name | Type | Description | Notes ## ListConversationMessage -> ConversationsV1ConversationConversationMessageReadResponse ListConversationMessage(ctx, conversationSid, optional) +> ConversationsV1ConversationConversationMessageReadResponse ListConversationMessage(ctx, ConversationSid, optional) @@ -2191,7 +2191,7 @@ Retrieve a list of all messages in the conversation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for messages. | +**ConversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for messages. | **optional** | ***ListConversationMessageOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2202,7 +2202,7 @@ Optional parameters are passed through a pointer to a ListConversationMessageOpt Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -2224,7 +2224,7 @@ Name | Type | Description | Notes ## ListConversationMessageReceipt -> ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse ListConversationMessageReceipt(ctx, conversationSid, messageSid, optional) +> ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse ListConversationMessageReceipt(ctx, ConversationSid, MessageSid, optional) @@ -2236,8 +2236,8 @@ Retrieve a list of all delivery and read receipts of the conversation message Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. | -**messageSid** | **string**| The SID of the message within a [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) the delivery receipt belongs to. | +**ConversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. | +**MessageSid** | **string**| The SID of the message within a [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) the delivery receipt belongs to. | **optional** | ***ListConversationMessageReceiptOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2249,7 +2249,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -2271,7 +2271,7 @@ Name | Type | Description | Notes ## ListConversationParticipant -> ConversationsV1ConversationConversationParticipantReadResponse ListConversationParticipant(ctx, conversationSid, optional) +> ConversationsV1ConversationConversationParticipantReadResponse ListConversationParticipant(ctx, ConversationSid, optional) @@ -2283,7 +2283,7 @@ Retrieve a list of all participants of the conversation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for participants. | +**ConversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for participants. | **optional** | ***ListConversationParticipantOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2294,7 +2294,7 @@ Optional parameters are passed through a pointer to a ListConversationParticipan Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -2316,7 +2316,7 @@ Name | Type | Description | Notes ## ListConversationScopedWebhook -> ConversationsV1ConversationConversationScopedWebhookReadResponse ListConversationScopedWebhook(ctx, conversationSid, optional) +> ConversationsV1ConversationConversationScopedWebhookReadResponse ListConversationScopedWebhook(ctx, ConversationSid, optional) @@ -2328,7 +2328,7 @@ Retrieve a list of all webhooks scoped to the conversation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. | +**ConversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. | **optional** | ***ListConversationScopedWebhookOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2339,7 +2339,7 @@ Optional parameters are passed through a pointer to a ListConversationScopedWebh Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -2382,7 +2382,7 @@ Optional parameters are passed through a pointer to a ListCredentialOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -2425,7 +2425,7 @@ Optional parameters are passed through a pointer to a ListRoleOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -2468,7 +2468,7 @@ Optional parameters are passed through a pointer to a ListServiceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -2490,7 +2490,7 @@ Name | Type | Description | Notes ## ListServiceBinding -> ConversationsV1ServiceServiceBindingReadResponse ListServiceBinding(ctx, chatServiceSid, optional) +> ConversationsV1ServiceServiceBindingReadResponse ListServiceBinding(ctx, ChatServiceSid, optional) @@ -2502,7 +2502,7 @@ Retrieve a list of all push notification bindings in the conversation service Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Binding resource is associated with. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Binding resource is associated with. | **optional** | ***ListServiceBindingOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2513,9 +2513,9 @@ Optional parameters are passed through a pointer to a ListServiceBindingOpts str Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **bindingType** | [**optional.Interface of []string**](string.md)| The push technology used by the Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. | - **identity** | [**optional.Interface of []string**](string.md)| The identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more details. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **BindingType** | [**optional.Interface of []string**](string.md)| The push technology used by the Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. | + **Identity** | [**optional.Interface of []string**](string.md)| The identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more details. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -2537,7 +2537,7 @@ Name | Type | Description | Notes ## ListServiceConversation -> ConversationsV1ServiceServiceConversationReadResponse ListServiceConversation(ctx, chatServiceSid, optional) +> ConversationsV1ServiceServiceConversationReadResponse ListServiceConversation(ctx, ChatServiceSid, optional) @@ -2549,7 +2549,7 @@ Retrieve a list of conversations in your service Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. | **optional** | ***ListServiceConversationOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2560,7 +2560,7 @@ Optional parameters are passed through a pointer to a ListServiceConversationOpt Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -2582,7 +2582,7 @@ Name | Type | Description | Notes ## ListServiceConversationMessage -> ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse ListServiceConversationMessage(ctx, chatServiceSid, conversationSid, optional) +> ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse ListServiceConversationMessage(ctx, ChatServiceSid, ConversationSid, optional) @@ -2594,8 +2594,8 @@ Retrieve a list of all messages in the conversation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | -**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for messages. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | +**ConversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for messages. | **optional** | ***ListServiceConversationMessageOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2607,7 +2607,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -2629,7 +2629,7 @@ Name | Type | Description | Notes ## ListServiceConversationMessageReceipt -> ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse ListServiceConversationMessageReceipt(ctx, chatServiceSid, conversationSid, messageSid, optional) +> ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse ListServiceConversationMessageReceipt(ctx, ChatServiceSid, ConversationSid, MessageSid, optional) @@ -2641,9 +2641,9 @@ Retrieve a list of all delivery and read receipts of the conversation message Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Message resource is associated with. | -**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. | -**messageSid** | **string**| The SID of the message within a [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) the delivery receipt belongs to. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Message resource is associated with. | +**ConversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. | +**MessageSid** | **string**| The SID of the message within a [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) the delivery receipt belongs to. | **optional** | ***ListServiceConversationMessageReceiptOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2656,7 +2656,7 @@ Name | Type | Description | Notes - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -2678,7 +2678,7 @@ Name | Type | Description | Notes ## ListServiceConversationParticipant -> ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse ListServiceConversationParticipant(ctx, chatServiceSid, conversationSid, optional) +> ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse ListServiceConversationParticipant(ctx, ChatServiceSid, ConversationSid, optional) @@ -2690,8 +2690,8 @@ Retrieve a list of all participants of the conversation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | -**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for participants. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | +**ConversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for participants. | **optional** | ***ListServiceConversationParticipantOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2703,7 +2703,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -2725,7 +2725,7 @@ Name | Type | Description | Notes ## ListServiceConversationScopedWebhook -> ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse ListServiceConversationScopedWebhook(ctx, chatServiceSid, conversationSid, optional) +> ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse ListServiceConversationScopedWebhook(ctx, ChatServiceSid, ConversationSid, optional) @@ -2737,8 +2737,8 @@ Retrieve a list of all webhooks scoped to the conversation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | -**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | +**ConversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. | **optional** | ***ListServiceConversationScopedWebhookOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2750,7 +2750,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -2772,7 +2772,7 @@ Name | Type | Description | Notes ## ListServiceRole -> ConversationsV1ServiceServiceRoleReadResponse ListServiceRole(ctx, chatServiceSid, optional) +> ConversationsV1ServiceServiceRoleReadResponse ListServiceRole(ctx, ChatServiceSid, optional) @@ -2784,7 +2784,7 @@ Retrieve a list of all user roles in your service Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to read the Role resources from. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to read the Role resources from. | **optional** | ***ListServiceRoleOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2795,7 +2795,7 @@ Optional parameters are passed through a pointer to a ListServiceRoleOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -2817,7 +2817,7 @@ Name | Type | Description | Notes ## ListServiceUser -> ConversationsV1ServiceServiceUserReadResponse ListServiceUser(ctx, chatServiceSid, optional) +> ConversationsV1ServiceServiceUserReadResponse ListServiceUser(ctx, ChatServiceSid, optional) @@ -2829,7 +2829,7 @@ Retrieve a list of all conversation users in your service Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to read the User resources from. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to read the User resources from. | **optional** | ***ListServiceUserOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2840,7 +2840,7 @@ Optional parameters are passed through a pointer to a ListServiceUserOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -2883,7 +2883,7 @@ Optional parameters are passed through a pointer to a ListUserOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -2926,10 +2926,10 @@ Optional parameters are passed through a pointer to a UpdateConfigurationOpts st Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **defaultChatServiceSid** | **optional.String**| The SID of the default [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to use when creating a conversation. | - **defaultClosedTimer** | **optional.String**| Default ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. | - **defaultInactiveTimer** | **optional.String**| Default ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. | - **defaultMessagingServiceSid** | **optional.String**| The SID of the default [Messaging Service](https://www.twilio.com/docs/sms/services/api) to use when creating a conversation. | + **DefaultChatServiceSid** | **optional.String**| The SID of the default [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to use when creating a conversation. | + **DefaultClosedTimer** | **optional.String**| Default ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. | + **DefaultInactiveTimer** | **optional.String**| Default ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. | + **DefaultMessagingServiceSid** | **optional.String**| The SID of the default [Messaging Service](https://www.twilio.com/docs/sms/services/api) to use when creating a conversation. | ### Return type @@ -2970,11 +2970,11 @@ Optional parameters are passed through a pointer to a UpdateConfigurationWebhook Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **filters** | [**optional.Interface of []string**](string.md)| The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved` | - **method** | **optional.String**| The HTTP method to be used when sending a webhook request. | - **postWebhookUrl** | **optional.String**| The absolute url the post-event webhook request should be sent to. | - **preWebhookUrl** | **optional.String**| The absolute url the pre-event webhook request should be sent to. | - **target** | **optional.String**| The routing target of the webhook. | + **Filters** | [**optional.Interface of []string**](string.md)| The list of webhook event triggers that are enabled for this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved` | + **Method** | **optional.String**| The HTTP method to be used when sending a webhook request. | + **PostWebhookUrl** | **optional.String**| The absolute url the post-event webhook request should be sent to. | + **PreWebhookUrl** | **optional.String**| The absolute url the pre-event webhook request should be sent to. | + **Target** | **optional.String**| The routing target of the webhook. | ### Return type @@ -2996,7 +2996,7 @@ Name | Type | Description | Notes ## UpdateConversation -> ConversationsV1Conversation UpdateConversation(ctx, sid, optional) +> ConversationsV1Conversation UpdateConversation(ctx, Sid, optional) @@ -3008,7 +3008,7 @@ Update an existing conversation in your account's default service Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. | **optional** | ***UpdateConversationOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -3019,16 +3019,16 @@ Optional parameters are passed through a pointer to a UpdateConversationOpts str Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | - **attributes** | **optional.String**| An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. | - **dateCreated** | **optional.Time**| The date that this resource was created. | - **dateUpdated** | **optional.Time**| The date that this resource was last updated. | - **friendlyName** | **optional.String**| The human-readable name of this conversation, limited to 256 characters. Optional. | - **messagingServiceSid** | **optional.String**| The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. | - **state** | **optional.String**| Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` | - **timersClosed** | **optional.String**| ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. | - **timersInactive** | **optional.String**| ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. | - **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **Attributes** | **optional.String**| An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. | + **DateCreated** | **optional.Time**| The date that this resource was created. | + **DateUpdated** | **optional.Time**| The date that this resource was last updated. | + **FriendlyName** | **optional.String**| The human-readable name of this conversation, limited to 256 characters. Optional. | + **MessagingServiceSid** | **optional.String**| The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. | + **State** | **optional.String**| Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` | + **TimersClosed** | **optional.String**| ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. | + **TimersInactive** | **optional.String**| ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. | + **UniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. | ### Return type @@ -3050,7 +3050,7 @@ Name | Type | Description | Notes ## UpdateConversationMessage -> ConversationsV1ConversationConversationMessage UpdateConversationMessage(ctx, conversationSid, sid, optional) +> ConversationsV1ConversationConversationMessage UpdateConversationMessage(ctx, ConversationSid, Sid, optional) @@ -3062,8 +3062,8 @@ Update an existing message in the conversation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**ConversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | **optional** | ***UpdateConversationMessageOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -3075,12 +3075,12 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | - **attributes** | **optional.String**| A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. | - **author** | **optional.String**| The channel specific identifier of the message's author. Defaults to `system`. | - **body** | **optional.String**| The content of the message, can be up to 1,600 characters long. | - **dateCreated** | **optional.Time**| The date that this resource was created. | - **dateUpdated** | **optional.Time**| The date that this resource was last updated. `null` if the message has not been edited. | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **Attributes** | **optional.String**| A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. | + **Author** | **optional.String**| The channel specific identifier of the message's author. Defaults to `system`. | + **Body** | **optional.String**| The content of the message, can be up to 1,600 characters long. | + **DateCreated** | **optional.Time**| The date that this resource was created. | + **DateUpdated** | **optional.Time**| The date that this resource was last updated. `null` if the message has not been edited. | ### Return type @@ -3102,7 +3102,7 @@ Name | Type | Description | Notes ## UpdateConversationParticipant -> ConversationsV1ConversationConversationParticipant UpdateConversationParticipant(ctx, conversationSid, sid, optional) +> ConversationsV1ConversationConversationParticipant UpdateConversationParticipant(ctx, ConversationSid, Sid, optional) @@ -3114,8 +3114,8 @@ Update an existing participant in the conversation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**ConversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | **optional** | ***UpdateConversationParticipantOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -3127,16 +3127,16 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | - **attributes** | **optional.String**| An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. | - **dateCreated** | **optional.Time**| The date that this resource was created. | - **dateUpdated** | **optional.Time**| The date that this resource was last updated. | - **identity** | **optional.String**| A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters. | - **lastReadMessageIndex** | **optional.Int32**| Index of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. | - **lastReadTimestamp** | **optional.String**| Timestamp of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. | - **messagingBindingProjectedAddress** | **optional.String**| The address of the Twilio phone number that is used in Group MMS. 'null' value will remove it. | - **messagingBindingProxyAddress** | **optional.String**| The address of the Twilio phone number that the participant is in contact with. 'null' value will remove it. | - **roleSid** | **optional.String**| The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **Attributes** | **optional.String**| An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. | + **DateCreated** | **optional.Time**| The date that this resource was created. | + **DateUpdated** | **optional.Time**| The date that this resource was last updated. | + **Identity** | **optional.String**| A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters. | + **LastReadMessageIndex** | **optional.Int32**| Index of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. | + **LastReadTimestamp** | **optional.String**| Timestamp of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. | + **MessagingBindingProjectedAddress** | **optional.String**| The address of the Twilio phone number that is used in Group MMS. 'null' value will remove it. | + **MessagingBindingProxyAddress** | **optional.String**| The address of the Twilio phone number that the participant is in contact with. 'null' value will remove it. | + **RoleSid** | **optional.String**| The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. | ### Return type @@ -3158,7 +3158,7 @@ Name | Type | Description | Notes ## UpdateConversationScopedWebhook -> ConversationsV1ConversationConversationScopedWebhook UpdateConversationScopedWebhook(ctx, conversationSid, sid, optional) +> ConversationsV1ConversationConversationScopedWebhook UpdateConversationScopedWebhook(ctx, ConversationSid, Sid, optional) @@ -3170,8 +3170,8 @@ Update an existing conversation-scoped webhook Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**ConversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | **optional** | ***UpdateConversationScopedWebhookOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -3183,11 +3183,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **configurationFilters** | [**optional.Interface of []string**](string.md)| The list of events, firing webhook event for this Conversation. | - **configurationFlowSid** | **optional.String**| The studio flow SID, where the webhook should be sent to. | - **configurationMethod** | **optional.String**| The HTTP method to be used when sending a webhook request. | - **configurationTriggers** | [**optional.Interface of []string**](string.md)| The list of keywords, firing webhook event for this Conversation. | - **configurationUrl** | **optional.String**| The absolute url the webhook request should be sent to. | + **ConfigurationFilters** | [**optional.Interface of []string**](string.md)| The list of events, firing webhook event for this Conversation. | + **ConfigurationFlowSid** | **optional.String**| The studio flow SID, where the webhook should be sent to. | + **ConfigurationMethod** | **optional.String**| The HTTP method to be used when sending a webhook request. | + **ConfigurationTriggers** | [**optional.Interface of []string**](string.md)| The list of keywords, firing webhook event for this Conversation. | + **ConfigurationUrl** | **optional.String**| The absolute url the webhook request should be sent to. | ### Return type @@ -3209,7 +3209,7 @@ Name | Type | Description | Notes ## UpdateCredential -> ConversationsV1Credential UpdateCredential(ctx, sid, optional) +> ConversationsV1Credential UpdateCredential(ctx, Sid, optional) @@ -3221,7 +3221,7 @@ Update an existing push notification credential on your account Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | **optional** | ***UpdateCredentialOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -3232,13 +3232,13 @@ Optional parameters are passed through a pointer to a UpdateCredentialOpts struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiKey** | **optional.String**| [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. | - **certificate** | **optional.String**| [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== -----END CERTIFICATE-----`. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | - **privateKey** | **optional.String**| [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fG... -----END RSA PRIVATE KEY-----`. | - **sandbox** | **optional.Bool**| [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. | - **secret** | **optional.String**| [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. | - **type_** | **optional.String**| The type of push-notification service the credential is for. Can be: `fcm`, `gcm`, or `apn`. | + **ApiKey** | **optional.String**| [GCM only] The API key for the project that was obtained from the Google Developer console for your GCM Service application credential. | + **Certificate** | **optional.String**| [APN only] The URL encoded representation of the certificate. For example, `-----BEGIN CERTIFICATE----- MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEF.....A== -----END CERTIFICATE-----`. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the new resource. It can be up to 64 characters long. | + **PrivateKey** | **optional.String**| [APN only] The URL encoded representation of the private key. For example, `-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fG... -----END RSA PRIVATE KEY-----`. | + **Sandbox** | **optional.Bool**| [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. | + **Secret** | **optional.String**| [FCM only] The **Server key** of your project from the Firebase console, found under Settings / Cloud messaging. | + **Type** | **optional.String**| The type of push-notification service the credential is for. Can be: `fcm`, `gcm`, or `apn`. | ### Return type @@ -3260,7 +3260,7 @@ Name | Type | Description | Notes ## UpdateRole -> ConversationsV1Role UpdateRole(ctx, sid, optional) +> ConversationsV1Role UpdateRole(ctx, Sid, optional) @@ -3272,7 +3272,7 @@ Update an existing user role in your account's default service Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Role resource to update. | +**Sid** | **string**| The SID of the Role resource to update. | **optional** | ***UpdateRoleOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -3283,7 +3283,7 @@ Optional parameters are passed through a pointer to a UpdateRoleOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **permission** | [**optional.Interface of []string**](string.md)| A permission that you grant to the role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. Note that the update action replaces all previously assigned permissions with those defined in the update action. To remove a permission, do not include it in the subsequent update action. The values for this parameter depend on the role's `type`. | + **Permission** | [**optional.Interface of []string**](string.md)| A permission that you grant to the role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. Note that the update action replaces all previously assigned permissions with those defined in the update action. To remove a permission, do not include it in the subsequent update action. The values for this parameter depend on the role's `type`. | ### Return type @@ -3305,7 +3305,7 @@ Name | Type | Description | Notes ## UpdateServiceConfiguration -> ConversationsV1ServiceServiceConfiguration UpdateServiceConfiguration(ctx, chatServiceSid, optional) +> ConversationsV1ServiceServiceConfiguration UpdateServiceConfiguration(ctx, ChatServiceSid, optional) @@ -3317,7 +3317,7 @@ Update configuration settings of a conversation service Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the Service configuration resource to update. | +**ChatServiceSid** | **string**| The SID of the Service configuration resource to update. | **optional** | ***UpdateServiceConfigurationOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -3328,10 +3328,10 @@ Optional parameters are passed through a pointer to a UpdateServiceConfiguration Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **defaultChatServiceRoleSid** | **optional.String**| The service-level role assigned to users when they are added to the service. See the [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles. | - **defaultConversationCreatorRoleSid** | **optional.String**| The conversation-level role assigned to a conversation creator when they join a new conversation. See the [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles. | - **defaultConversationRoleSid** | **optional.String**| The conversation-level role assigned to users when they are added to a conversation. See the [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles. | - **reachabilityEnabled** | **optional.Bool**| Whether the [Reachability Indicator](https://www.twilio.com/docs/chat/reachability-indicator) is enabled for this Conversations Service. The default is `false`. | + **DefaultChatServiceRoleSid** | **optional.String**| The service-level role assigned to users when they are added to the service. See the [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles. | + **DefaultConversationCreatorRoleSid** | **optional.String**| The conversation-level role assigned to a conversation creator when they join a new conversation. See the [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles. | + **DefaultConversationRoleSid** | **optional.String**| The conversation-level role assigned to users when they are added to a conversation. See the [Conversation Role](https://www.twilio.com/docs/conversations/api/role-resource) for more info about roles. | + **ReachabilityEnabled** | **optional.Bool**| Whether the [Reachability Indicator](https://www.twilio.com/docs/chat/reachability-indicator) is enabled for this Conversations Service. The default is `false`. | ### Return type @@ -3353,7 +3353,7 @@ Name | Type | Description | Notes ## UpdateServiceConversation -> ConversationsV1ServiceServiceConversation UpdateServiceConversation(ctx, chatServiceSid, sid, optional) +> ConversationsV1ServiceServiceConversation UpdateServiceConversation(ctx, ChatServiceSid, Sid, optional) @@ -3365,8 +3365,8 @@ Update an existing conversation in your service Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. | **optional** | ***UpdateServiceConversationOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -3378,16 +3378,16 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | - **attributes** | **optional.String**| An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. | - **dateCreated** | **optional.Time**| The date that this resource was created. | - **dateUpdated** | **optional.Time**| The date that this resource was last updated. | - **friendlyName** | **optional.String**| The human-readable name of this conversation, limited to 256 characters. Optional. | - **messagingServiceSid** | **optional.String**| The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. | - **state** | **optional.String**| Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` | - **timersClosed** | **optional.String**| ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. | - **timersInactive** | **optional.String**| ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. | - **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **Attributes** | **optional.String**| An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. | + **DateCreated** | **optional.Time**| The date that this resource was created. | + **DateUpdated** | **optional.Time**| The date that this resource was last updated. | + **FriendlyName** | **optional.String**| The human-readable name of this conversation, limited to 256 characters. Optional. | + **MessagingServiceSid** | **optional.String**| The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. | + **State** | **optional.String**| Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` | + **TimersClosed** | **optional.String**| ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. | + **TimersInactive** | **optional.String**| ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. | + **UniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. | ### Return type @@ -3409,7 +3409,7 @@ Name | Type | Description | Notes ## UpdateServiceConversationMessage -> ConversationsV1ServiceServiceConversationServiceConversationMessage UpdateServiceConversationMessage(ctx, chatServiceSid, conversationSid, sid, optional) +> ConversationsV1ServiceServiceConversationServiceConversationMessage UpdateServiceConversationMessage(ctx, ChatServiceSid, ConversationSid, Sid, optional) @@ -3421,9 +3421,9 @@ Update an existing message in the conversation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | -**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | +**ConversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | **optional** | ***UpdateServiceConversationMessageOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -3436,12 +3436,12 @@ Name | Type | Description | Notes - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | - **attributes** | **optional.String**| A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. | - **author** | **optional.String**| The channel specific identifier of the message's author. Defaults to `system`. | - **body** | **optional.String**| The content of the message, can be up to 1,600 characters long. | - **dateCreated** | **optional.Time**| The date that this resource was created. | - **dateUpdated** | **optional.Time**| The date that this resource was last updated. `null` if the message has not been edited. | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **Attributes** | **optional.String**| A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. | + **Author** | **optional.String**| The channel specific identifier of the message's author. Defaults to `system`. | + **Body** | **optional.String**| The content of the message, can be up to 1,600 characters long. | + **DateCreated** | **optional.Time**| The date that this resource was created. | + **DateUpdated** | **optional.Time**| The date that this resource was last updated. `null` if the message has not been edited. | ### Return type @@ -3463,7 +3463,7 @@ Name | Type | Description | Notes ## UpdateServiceConversationParticipant -> ConversationsV1ServiceServiceConversationServiceConversationParticipant UpdateServiceConversationParticipant(ctx, chatServiceSid, conversationSid, sid, optional) +> ConversationsV1ServiceServiceConversationServiceConversationParticipant UpdateServiceConversationParticipant(ctx, ChatServiceSid, ConversationSid, Sid, optional) @@ -3475,9 +3475,9 @@ Update an existing participant in the conversation Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | -**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | +**ConversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | **optional** | ***UpdateServiceConversationParticipantOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -3490,16 +3490,16 @@ Name | Type | Description | Notes - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | - **attributes** | **optional.String**| An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. | - **dateCreated** | **optional.Time**| The date that this resource was created. | - **dateUpdated** | **optional.Time**| The date that this resource was last updated. | - **identity** | **optional.String**| A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversation SDK to communicate. Limited to 256 characters. | - **lastReadMessageIndex** | **optional.Int32**| Index of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. | - **lastReadTimestamp** | **optional.String**| Timestamp of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. | - **messagingBindingProjectedAddress** | **optional.String**| The address of the Twilio phone number that is used in Group MMS. 'null' value will remove it. | - **messagingBindingProxyAddress** | **optional.String**| The address of the Twilio phone number that the participant is in contact with. 'null' value will remove it. | - **roleSid** | **optional.String**| The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **Attributes** | **optional.String**| An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. | + **DateCreated** | **optional.Time**| The date that this resource was created. | + **DateUpdated** | **optional.Time**| The date that this resource was last updated. | + **Identity** | **optional.String**| A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversation SDK to communicate. Limited to 256 characters. | + **LastReadMessageIndex** | **optional.Int32**| Index of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. | + **LastReadTimestamp** | **optional.String**| Timestamp of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. | + **MessagingBindingProjectedAddress** | **optional.String**| The address of the Twilio phone number that is used in Group MMS. 'null' value will remove it. | + **MessagingBindingProxyAddress** | **optional.String**| The address of the Twilio phone number that the participant is in contact with. 'null' value will remove it. | + **RoleSid** | **optional.String**| The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. | ### Return type @@ -3521,7 +3521,7 @@ Name | Type | Description | Notes ## UpdateServiceConversationScopedWebhook -> ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook UpdateServiceConversationScopedWebhook(ctx, chatServiceSid, conversationSid, sid, optional) +> ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook UpdateServiceConversationScopedWebhook(ctx, ChatServiceSid, ConversationSid, Sid, optional) @@ -3533,9 +3533,9 @@ Update an existing conversation-scoped webhook Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | -**conversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. | +**ConversationSid** | **string**| The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | **optional** | ***UpdateServiceConversationScopedWebhookOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -3548,11 +3548,11 @@ Name | Type | Description | Notes - **configurationFilters** | [**optional.Interface of []string**](string.md)| The list of events, firing webhook event for this Conversation. | - **configurationFlowSid** | **optional.String**| The studio flow SID, where the webhook should be sent to. | - **configurationMethod** | **optional.String**| The HTTP method to be used when sending a webhook request. | - **configurationTriggers** | [**optional.Interface of []string**](string.md)| The list of keywords, firing webhook event for this Conversation. | - **configurationUrl** | **optional.String**| The absolute url the webhook request should be sent to. | + **ConfigurationFilters** | [**optional.Interface of []string**](string.md)| The list of events, firing webhook event for this Conversation. | + **ConfigurationFlowSid** | **optional.String**| The studio flow SID, where the webhook should be sent to. | + **ConfigurationMethod** | **optional.String**| The HTTP method to be used when sending a webhook request. | + **ConfigurationTriggers** | [**optional.Interface of []string**](string.md)| The list of keywords, firing webhook event for this Conversation. | + **ConfigurationUrl** | **optional.String**| The absolute url the webhook request should be sent to. | ### Return type @@ -3574,7 +3574,7 @@ Name | Type | Description | Notes ## UpdateServiceNotification -> ConversationsV1ServiceServiceConfigurationServiceNotification UpdateServiceNotification(ctx, chatServiceSid, optional) +> ConversationsV1ServiceServiceConfigurationServiceNotification UpdateServiceNotification(ctx, ChatServiceSid, optional) @@ -3586,7 +3586,7 @@ Update push notification service settings Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Configuration applies to. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Configuration applies to. | **optional** | ***UpdateServiceNotificationOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -3597,17 +3597,17 @@ Optional parameters are passed through a pointer to a UpdateServiceNotificationO Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **addedToConversationEnabled** | **optional.Bool**| Whether to send a notification when a participant is added to a conversation. The default is `false`. | - **addedToConversationSound** | **optional.String**| The name of the sound to play when a participant is added to a conversation and `added_to_conversation.enabled` is `true`. | - **addedToConversationTemplate** | **optional.String**| The template to use to create the notification text displayed when a participant is added to a conversation and `added_to_conversation.enabled` is `true`. | - **logEnabled** | **optional.Bool**| Weather the notification logging is enabled. | - **newMessageBadgeCountEnabled** | **optional.Bool**| Whether the new message badge is enabled. The default is `false`. | - **newMessageEnabled** | **optional.Bool**| Whether to send a notification when a new message is added to a conversation. The default is `false`. | - **newMessageSound** | **optional.String**| The name of the sound to play when a new message is added to a conversation and `new_message.enabled` is `true`. | - **newMessageTemplate** | **optional.String**| The template to use to create the notification text displayed when a new message is added to a conversation and `new_message.enabled` is `true`. | - **removedFromConversationEnabled** | **optional.Bool**| Whether to send a notification to a user when they are removed from a conversation. The default is `false`. | - **removedFromConversationSound** | **optional.String**| The name of the sound to play to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`. | - **removedFromConversationTemplate** | **optional.String**| The template to use to create the notification text displayed to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`. | + **AddedToConversationEnabled** | **optional.Bool**| Whether to send a notification when a participant is added to a conversation. The default is `false`. | + **AddedToConversationSound** | **optional.String**| The name of the sound to play when a participant is added to a conversation and `added_to_conversation.enabled` is `true`. | + **AddedToConversationTemplate** | **optional.String**| The template to use to create the notification text displayed when a participant is added to a conversation and `added_to_conversation.enabled` is `true`. | + **LogEnabled** | **optional.Bool**| Weather the notification logging is enabled. | + **NewMessageBadgeCountEnabled** | **optional.Bool**| Whether the new message badge is enabled. The default is `false`. | + **NewMessageEnabled** | **optional.Bool**| Whether to send a notification when a new message is added to a conversation. The default is `false`. | + **NewMessageSound** | **optional.String**| The name of the sound to play when a new message is added to a conversation and `new_message.enabled` is `true`. | + **NewMessageTemplate** | **optional.String**| The template to use to create the notification text displayed when a new message is added to a conversation and `new_message.enabled` is `true`. | + **RemovedFromConversationEnabled** | **optional.Bool**| Whether to send a notification to a user when they are removed from a conversation. The default is `false`. | + **RemovedFromConversationSound** | **optional.String**| The name of the sound to play to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`. | + **RemovedFromConversationTemplate** | **optional.String**| The template to use to create the notification text displayed to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`. | ### Return type @@ -3629,7 +3629,7 @@ Name | Type | Description | Notes ## UpdateServiceRole -> ConversationsV1ServiceServiceRole UpdateServiceRole(ctx, chatServiceSid, sid, optional) +> ConversationsV1ServiceServiceRole UpdateServiceRole(ctx, ChatServiceSid, Sid, optional) @@ -3641,8 +3641,8 @@ Update an existing user role in your service Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to update the Role resource in. | -**sid** | **string**| The SID of the Role resource to update. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to update the Role resource in. | +**Sid** | **string**| The SID of the Role resource to update. | **optional** | ***UpdateServiceRoleOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -3654,7 +3654,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **permission** | [**optional.Interface of []string**](string.md)| A permission that you grant to the role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. Note that the update action replaces all previously assigned permissions with those defined in the update action. To remove a permission, do not include it in the subsequent update action. The values for this parameter depend on the role's `type`. | + **Permission** | [**optional.Interface of []string**](string.md)| A permission that you grant to the role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. Note that the update action replaces all previously assigned permissions with those defined in the update action. To remove a permission, do not include it in the subsequent update action. The values for this parameter depend on the role's `type`. | ### Return type @@ -3676,7 +3676,7 @@ Name | Type | Description | Notes ## UpdateServiceUser -> ConversationsV1ServiceServiceUser UpdateServiceUser(ctx, chatServiceSid, sid, optional) +> ConversationsV1ServiceServiceUser UpdateServiceUser(ctx, ChatServiceSid, Sid, optional) @@ -3688,8 +3688,8 @@ Update an existing conversation user in your service Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**chatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the User resource is associated with. | -**sid** | **string**| The SID of the User resource to update. This value can be either the `sid` or the `identity` of the User resource to update. | +**ChatServiceSid** | **string**| The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the User resource is associated with. | +**Sid** | **string**| The SID of the User resource to update. This value can be either the `sid` or the `identity` of the User resource to update. | **optional** | ***UpdateServiceUserOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -3701,10 +3701,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | - **attributes** | **optional.String**| The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned. | - **friendlyName** | **optional.String**| The string that you assigned to describe the resource. | - **roleSid** | **optional.String**| The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user. | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **Attributes** | **optional.String**| The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned. | + **FriendlyName** | **optional.String**| The string that you assigned to describe the resource. | + **RoleSid** | **optional.String**| The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user. | ### Return type @@ -3726,7 +3726,7 @@ Name | Type | Description | Notes ## UpdateUser -> ConversationsV1User UpdateUser(ctx, sid, optional) +> ConversationsV1User UpdateUser(ctx, Sid, optional) @@ -3738,7 +3738,7 @@ Update an existing conversation user in your account's default service Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the User resource to update. This value can be either the `sid` or the `identity` of the User resource to update. | +**Sid** | **string**| The SID of the User resource to update. This value can be either the `sid` or the `identity` of the User resource to update. | **optional** | ***UpdateUserOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -3749,10 +3749,10 @@ Optional parameters are passed through a pointer to a UpdateUserOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | - **attributes** | **optional.String**| The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned. | - **friendlyName** | **optional.String**| The string that you assigned to describe the resource. | - **roleSid** | **optional.String**| The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user. | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **Attributes** | **optional.String**| The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned. | + **FriendlyName** | **optional.String**| The string that you assigned to describe the resource. | + **RoleSid** | **optional.String**| The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user. | ### Return type diff --git a/rest/conversations/v1/model_conversations_v1_configuration.go b/rest/conversations/v1/model_conversations_v1_configuration.go index 220bc1fe5..3e4dc2b9d 100644 --- a/rest/conversations/v1/model_conversations_v1_configuration.go +++ b/rest/conversations/v1/model_conversations_v1_configuration.go @@ -11,11 +11,11 @@ package openapi // ConversationsV1Configuration struct for ConversationsV1Configuration type ConversationsV1Configuration struct { - AccountSid string `json:"account_sid,omitempty"` - DefaultChatServiceSid string `json:"default_chat_service_sid,omitempty"` - DefaultClosedTimer string `json:"default_closed_timer,omitempty"` - DefaultInactiveTimer string `json:"default_inactive_timer,omitempty"` - DefaultMessagingServiceSid string `json:"default_messaging_service_sid,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DefaultChatServiceSid string `json:"DefaultChatServiceSid,omitempty"` + DefaultClosedTimer string `json:"DefaultClosedTimer,omitempty"` + DefaultInactiveTimer string `json:"DefaultInactiveTimer,omitempty"` + DefaultMessagingServiceSid string `json:"DefaultMessagingServiceSid,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_configuration_configuration_webhook.go b/rest/conversations/v1/model_conversations_v1_configuration_configuration_webhook.go index 5011ed8ea..dd0dc2282 100644 --- a/rest/conversations/v1/model_conversations_v1_configuration_configuration_webhook.go +++ b/rest/conversations/v1/model_conversations_v1_configuration_configuration_webhook.go @@ -11,11 +11,11 @@ package openapi // ConversationsV1ConfigurationConfigurationWebhook struct for ConversationsV1ConfigurationConfigurationWebhook type ConversationsV1ConfigurationConfigurationWebhook struct { - AccountSid string `json:"account_sid,omitempty"` - Filters []string `json:"filters,omitempty"` - Method string `json:"method,omitempty"` - PostWebhookUrl string `json:"post_webhook_url,omitempty"` - PreWebhookUrl string `json:"pre_webhook_url,omitempty"` - Target string `json:"target,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Filters []string `json:"Filters,omitempty"` + Method string `json:"Method,omitempty"` + PostWebhookUrl string `json:"PostWebhookUrl,omitempty"` + PreWebhookUrl string `json:"PreWebhookUrl,omitempty"` + Target string `json:"Target,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_conversation.go b/rest/conversations/v1/model_conversations_v1_conversation.go index 2c42d339d..f86e1ffa8 100644 --- a/rest/conversations/v1/model_conversations_v1_conversation.go +++ b/rest/conversations/v1/model_conversations_v1_conversation.go @@ -14,17 +14,17 @@ import ( ) // ConversationsV1Conversation struct for ConversationsV1Conversation type ConversationsV1Conversation struct { - AccountSid string `json:"account_sid,omitempty"` - Attributes string `json:"attributes,omitempty"` - ChatServiceSid string `json:"chat_service_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - MessagingServiceSid string `json:"messaging_service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - State string `json:"state,omitempty"` - Timers map[string]interface{} `json:"timers,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Attributes string `json:"Attributes,omitempty"` + ChatServiceSid string `json:"ChatServiceSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + MessagingServiceSid string `json:"MessagingServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + State string `json:"State,omitempty"` + Timers map[string]interface{} `json:"Timers,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_conversation_conversation_message.go b/rest/conversations/v1/model_conversations_v1_conversation_conversation_message.go index 01f7cbc0b..e7fd61260 100644 --- a/rest/conversations/v1/model_conversations_v1_conversation_conversation_message.go +++ b/rest/conversations/v1/model_conversations_v1_conversation_conversation_message.go @@ -14,18 +14,18 @@ import ( ) // ConversationsV1ConversationConversationMessage struct for ConversationsV1ConversationConversationMessage type ConversationsV1ConversationConversationMessage struct { - AccountSid string `json:"account_sid,omitempty"` - Attributes string `json:"attributes,omitempty"` - Author string `json:"author,omitempty"` - Body string `json:"body,omitempty"` - ConversationSid string `json:"conversation_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Delivery map[string]interface{} `json:"delivery,omitempty"` - Index int32 `json:"index,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Media []map[string]interface{} `json:"media,omitempty"` - ParticipantSid string `json:"participant_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Attributes string `json:"Attributes,omitempty"` + Author string `json:"Author,omitempty"` + Body string `json:"Body,omitempty"` + ConversationSid string `json:"ConversationSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Delivery map[string]interface{} `json:"Delivery,omitempty"` + Index int32 `json:"Index,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Media []map[string]interface{} `json:"Media,omitempty"` + ParticipantSid string `json:"ParticipantSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_conversation_conversation_message_conversation_message_receipt.go b/rest/conversations/v1/model_conversations_v1_conversation_conversation_message_conversation_message_receipt.go index 9f223a66d..96c77f71f 100644 --- a/rest/conversations/v1/model_conversations_v1_conversation_conversation_message_conversation_message_receipt.go +++ b/rest/conversations/v1/model_conversations_v1_conversation_conversation_message_conversation_message_receipt.go @@ -14,15 +14,15 @@ import ( ) // ConversationsV1ConversationConversationMessageConversationMessageReceipt struct for ConversationsV1ConversationConversationMessageConversationMessageReceipt type ConversationsV1ConversationConversationMessageConversationMessageReceipt struct { - AccountSid string `json:"account_sid,omitempty"` - ChannelMessageSid string `json:"channel_message_sid,omitempty"` - ConversationSid string `json:"conversation_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - ErrorCode int32 `json:"error_code,omitempty"` - MessageSid string `json:"message_sid,omitempty"` - ParticipantSid string `json:"participant_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ChannelMessageSid string `json:"ChannelMessageSid,omitempty"` + ConversationSid string `json:"ConversationSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + ErrorCode int32 `json:"ErrorCode,omitempty"` + MessageSid string `json:"MessageSid,omitempty"` + ParticipantSid string `json:"ParticipantSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Status string `json:"Status,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_conversation_conversation_message_conversation_message_receipt_read_response.go b/rest/conversations/v1/model_conversations_v1_conversation_conversation_message_conversation_message_receipt_read_response.go index 754d6d1a7..ace621737 100644 --- a/rest/conversations/v1/model_conversations_v1_conversation_conversation_message_conversation_message_receipt_read_response.go +++ b/rest/conversations/v1/model_conversations_v1_conversation_conversation_message_conversation_message_receipt_read_response.go @@ -11,6 +11,6 @@ package openapi // ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse struct for ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse type ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse struct { - DeliveryReceipts []ConversationsV1ConversationConversationMessageConversationMessageReceipt `json:"delivery_receipts,omitempty"` - Meta ConversationsV1ConversationReadResponseMeta `json:"meta,omitempty"` + DeliveryReceipts []ConversationsV1ConversationConversationMessageConversationMessageReceipt `json:"DeliveryReceipts,omitempty"` + Meta ConversationsV1ConversationReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_conversation_conversation_message_read_response.go b/rest/conversations/v1/model_conversations_v1_conversation_conversation_message_read_response.go index d22067e19..af1053bd8 100644 --- a/rest/conversations/v1/model_conversations_v1_conversation_conversation_message_read_response.go +++ b/rest/conversations/v1/model_conversations_v1_conversation_conversation_message_read_response.go @@ -11,6 +11,6 @@ package openapi // ConversationsV1ConversationConversationMessageReadResponse struct for ConversationsV1ConversationConversationMessageReadResponse type ConversationsV1ConversationConversationMessageReadResponse struct { - Messages []ConversationsV1ConversationConversationMessage `json:"messages,omitempty"` - Meta ConversationsV1ConversationReadResponseMeta `json:"meta,omitempty"` + Messages []ConversationsV1ConversationConversationMessage `json:"Messages,omitempty"` + Meta ConversationsV1ConversationReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_conversation_conversation_participant.go b/rest/conversations/v1/model_conversations_v1_conversation_conversation_participant.go index bd5e14cb3..2ee39a7e6 100644 --- a/rest/conversations/v1/model_conversations_v1_conversation_conversation_participant.go +++ b/rest/conversations/v1/model_conversations_v1_conversation_conversation_participant.go @@ -14,16 +14,16 @@ import ( ) // ConversationsV1ConversationConversationParticipant struct for ConversationsV1ConversationConversationParticipant type ConversationsV1ConversationConversationParticipant struct { - AccountSid string `json:"account_sid,omitempty"` - Attributes string `json:"attributes,omitempty"` - ConversationSid string `json:"conversation_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Identity string `json:"identity,omitempty"` - LastReadMessageIndex *int32 `json:"last_read_message_index,omitempty"` - LastReadTimestamp string `json:"last_read_timestamp,omitempty"` - MessagingBinding map[string]interface{} `json:"messaging_binding,omitempty"` - RoleSid string `json:"role_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Attributes string `json:"Attributes,omitempty"` + ConversationSid string `json:"ConversationSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Identity string `json:"Identity,omitempty"` + LastReadMessageIndex *int32 `json:"LastReadMessageIndex,omitempty"` + LastReadTimestamp string `json:"LastReadTimestamp,omitempty"` + MessagingBinding map[string]interface{} `json:"MessagingBinding,omitempty"` + RoleSid string `json:"RoleSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_conversation_conversation_participant_read_response.go b/rest/conversations/v1/model_conversations_v1_conversation_conversation_participant_read_response.go index 96c31bc2b..a1beae9b6 100644 --- a/rest/conversations/v1/model_conversations_v1_conversation_conversation_participant_read_response.go +++ b/rest/conversations/v1/model_conversations_v1_conversation_conversation_participant_read_response.go @@ -11,6 +11,6 @@ package openapi // ConversationsV1ConversationConversationParticipantReadResponse struct for ConversationsV1ConversationConversationParticipantReadResponse type ConversationsV1ConversationConversationParticipantReadResponse struct { - Meta ConversationsV1ConversationReadResponseMeta `json:"meta,omitempty"` - Participants []ConversationsV1ConversationConversationParticipant `json:"participants,omitempty"` + Meta ConversationsV1ConversationReadResponseMeta `json:"Meta,omitempty"` + Participants []ConversationsV1ConversationConversationParticipant `json:"Participants,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_conversation_conversation_scoped_webhook.go b/rest/conversations/v1/model_conversations_v1_conversation_conversation_scoped_webhook.go index fe1835c78..3819901e6 100644 --- a/rest/conversations/v1/model_conversations_v1_conversation_conversation_scoped_webhook.go +++ b/rest/conversations/v1/model_conversations_v1_conversation_conversation_scoped_webhook.go @@ -14,12 +14,12 @@ import ( ) // ConversationsV1ConversationConversationScopedWebhook struct for ConversationsV1ConversationConversationScopedWebhook type ConversationsV1ConversationConversationScopedWebhook struct { - AccountSid string `json:"account_sid,omitempty"` - Configuration map[string]interface{} `json:"configuration,omitempty"` - ConversationSid string `json:"conversation_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Sid string `json:"sid,omitempty"` - Target string `json:"target,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Configuration map[string]interface{} `json:"Configuration,omitempty"` + ConversationSid string `json:"ConversationSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Sid string `json:"Sid,omitempty"` + Target string `json:"Target,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_conversation_conversation_scoped_webhook_read_response.go b/rest/conversations/v1/model_conversations_v1_conversation_conversation_scoped_webhook_read_response.go index d0338333e..6e666bc52 100644 --- a/rest/conversations/v1/model_conversations_v1_conversation_conversation_scoped_webhook_read_response.go +++ b/rest/conversations/v1/model_conversations_v1_conversation_conversation_scoped_webhook_read_response.go @@ -11,6 +11,6 @@ package openapi // ConversationsV1ConversationConversationScopedWebhookReadResponse struct for ConversationsV1ConversationConversationScopedWebhookReadResponse type ConversationsV1ConversationConversationScopedWebhookReadResponse struct { - Meta ConversationsV1ConversationReadResponseMeta `json:"meta,omitempty"` - Webhooks []ConversationsV1ConversationConversationScopedWebhook `json:"webhooks,omitempty"` + Meta ConversationsV1ConversationReadResponseMeta `json:"Meta,omitempty"` + Webhooks []ConversationsV1ConversationConversationScopedWebhook `json:"Webhooks,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_conversation_read_response.go b/rest/conversations/v1/model_conversations_v1_conversation_read_response.go index a54affa64..4c2e77aa7 100644 --- a/rest/conversations/v1/model_conversations_v1_conversation_read_response.go +++ b/rest/conversations/v1/model_conversations_v1_conversation_read_response.go @@ -11,6 +11,6 @@ package openapi // ConversationsV1ConversationReadResponse struct for ConversationsV1ConversationReadResponse type ConversationsV1ConversationReadResponse struct { - Conversations []ConversationsV1Conversation `json:"conversations,omitempty"` - Meta ConversationsV1ConversationReadResponseMeta `json:"meta,omitempty"` + Conversations []ConversationsV1Conversation `json:"Conversations,omitempty"` + Meta ConversationsV1ConversationReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_conversation_read_response_meta.go b/rest/conversations/v1/model_conversations_v1_conversation_read_response_meta.go index 99e2ce076..f5382c1ab 100644 --- a/rest/conversations/v1/model_conversations_v1_conversation_read_response_meta.go +++ b/rest/conversations/v1/model_conversations_v1_conversation_read_response_meta.go @@ -11,11 +11,11 @@ package openapi // ConversationsV1ConversationReadResponseMeta struct for ConversationsV1ConversationReadResponseMeta type ConversationsV1ConversationReadResponseMeta struct { - FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` - NextPageUrl string `json:"next_page_url,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUrl string `json:"previous_page_url,omitempty"` - Url string `json:"url,omitempty"` + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_credential.go b/rest/conversations/v1/model_conversations_v1_credential.go index f01b5e44f..ef05baf76 100644 --- a/rest/conversations/v1/model_conversations_v1_credential.go +++ b/rest/conversations/v1/model_conversations_v1_credential.go @@ -14,12 +14,12 @@ import ( ) // ConversationsV1Credential struct for ConversationsV1Credential type ConversationsV1Credential struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Sandbox string `json:"sandbox,omitempty"` - Sid string `json:"sid,omitempty"` - Type string `json:"type,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Sandbox string `json:"Sandbox,omitempty"` + Sid string `json:"Sid,omitempty"` + Type string `json:"Type,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_credential_read_response.go b/rest/conversations/v1/model_conversations_v1_credential_read_response.go index fc71dfb22..28c9faae3 100644 --- a/rest/conversations/v1/model_conversations_v1_credential_read_response.go +++ b/rest/conversations/v1/model_conversations_v1_credential_read_response.go @@ -11,6 +11,6 @@ package openapi // ConversationsV1CredentialReadResponse struct for ConversationsV1CredentialReadResponse type ConversationsV1CredentialReadResponse struct { - Credentials []ConversationsV1Credential `json:"credentials,omitempty"` - Meta ConversationsV1ConversationReadResponseMeta `json:"meta,omitempty"` + Credentials []ConversationsV1Credential `json:"Credentials,omitempty"` + Meta ConversationsV1ConversationReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_role.go b/rest/conversations/v1/model_conversations_v1_role.go index 874328c57..bc37db2e8 100644 --- a/rest/conversations/v1/model_conversations_v1_role.go +++ b/rest/conversations/v1/model_conversations_v1_role.go @@ -14,13 +14,13 @@ import ( ) // ConversationsV1Role struct for ConversationsV1Role type ConversationsV1Role struct { - AccountSid string `json:"account_sid,omitempty"` - ChatServiceSid string `json:"chat_service_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Permissions []string `json:"permissions,omitempty"` - Sid string `json:"sid,omitempty"` - Type string `json:"type,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ChatServiceSid string `json:"ChatServiceSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Permissions []string `json:"Permissions,omitempty"` + Sid string `json:"Sid,omitempty"` + Type string `json:"Type,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_role_read_response.go b/rest/conversations/v1/model_conversations_v1_role_read_response.go index e5916d60b..e8fc2447c 100644 --- a/rest/conversations/v1/model_conversations_v1_role_read_response.go +++ b/rest/conversations/v1/model_conversations_v1_role_read_response.go @@ -11,6 +11,6 @@ package openapi // ConversationsV1RoleReadResponse struct for ConversationsV1RoleReadResponse type ConversationsV1RoleReadResponse struct { - Meta ConversationsV1ConversationReadResponseMeta `json:"meta,omitempty"` - Roles []ConversationsV1Role `json:"roles,omitempty"` + Meta ConversationsV1ConversationReadResponseMeta `json:"Meta,omitempty"` + Roles []ConversationsV1Role `json:"Roles,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_service.go b/rest/conversations/v1/model_conversations_v1_service.go index d22b0093c..49a8ca8ec 100644 --- a/rest/conversations/v1/model_conversations_v1_service.go +++ b/rest/conversations/v1/model_conversations_v1_service.go @@ -14,11 +14,11 @@ import ( ) // ConversationsV1Service struct for ConversationsV1Service type ConversationsV1Service struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_service_read_response.go b/rest/conversations/v1/model_conversations_v1_service_read_response.go index a769b16a7..f0b25b929 100644 --- a/rest/conversations/v1/model_conversations_v1_service_read_response.go +++ b/rest/conversations/v1/model_conversations_v1_service_read_response.go @@ -11,6 +11,6 @@ package openapi // ConversationsV1ServiceReadResponse struct for ConversationsV1ServiceReadResponse type ConversationsV1ServiceReadResponse struct { - Meta ConversationsV1ConversationReadResponseMeta `json:"meta,omitempty"` - Services []ConversationsV1Service `json:"services,omitempty"` + Meta ConversationsV1ConversationReadResponseMeta `json:"Meta,omitempty"` + Services []ConversationsV1Service `json:"Services,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_service_service_binding.go b/rest/conversations/v1/model_conversations_v1_service_service_binding.go index db457aee1..9adce4eca 100644 --- a/rest/conversations/v1/model_conversations_v1_service_service_binding.go +++ b/rest/conversations/v1/model_conversations_v1_service_service_binding.go @@ -14,15 +14,15 @@ import ( ) // ConversationsV1ServiceServiceBinding struct for ConversationsV1ServiceServiceBinding type ConversationsV1ServiceServiceBinding struct { - AccountSid string `json:"account_sid,omitempty"` - BindingType string `json:"binding_type,omitempty"` - ChatServiceSid string `json:"chat_service_sid,omitempty"` - CredentialSid string `json:"credential_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Endpoint string `json:"endpoint,omitempty"` - Identity string `json:"identity,omitempty"` - MessageTypes []string `json:"message_types,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + BindingType string `json:"BindingType,omitempty"` + ChatServiceSid string `json:"ChatServiceSid,omitempty"` + CredentialSid string `json:"CredentialSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Endpoint string `json:"Endpoint,omitempty"` + Identity string `json:"Identity,omitempty"` + MessageTypes []string `json:"MessageTypes,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_service_service_binding_read_response.go b/rest/conversations/v1/model_conversations_v1_service_service_binding_read_response.go index 95972662c..421a5baab 100644 --- a/rest/conversations/v1/model_conversations_v1_service_service_binding_read_response.go +++ b/rest/conversations/v1/model_conversations_v1_service_service_binding_read_response.go @@ -11,6 +11,6 @@ package openapi // ConversationsV1ServiceServiceBindingReadResponse struct for ConversationsV1ServiceServiceBindingReadResponse type ConversationsV1ServiceServiceBindingReadResponse struct { - Bindings []ConversationsV1ServiceServiceBinding `json:"bindings,omitempty"` - Meta ConversationsV1ConversationReadResponseMeta `json:"meta,omitempty"` + Bindings []ConversationsV1ServiceServiceBinding `json:"Bindings,omitempty"` + Meta ConversationsV1ConversationReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_service_service_configuration.go b/rest/conversations/v1/model_conversations_v1_service_service_configuration.go index 24b1207ce..64ea66106 100644 --- a/rest/conversations/v1/model_conversations_v1_service_service_configuration.go +++ b/rest/conversations/v1/model_conversations_v1_service_service_configuration.go @@ -11,11 +11,11 @@ package openapi // ConversationsV1ServiceServiceConfiguration struct for ConversationsV1ServiceServiceConfiguration type ConversationsV1ServiceServiceConfiguration struct { - ChatServiceSid string `json:"chat_service_sid,omitempty"` - DefaultChatServiceRoleSid string `json:"default_chat_service_role_sid,omitempty"` - DefaultConversationCreatorRoleSid string `json:"default_conversation_creator_role_sid,omitempty"` - DefaultConversationRoleSid string `json:"default_conversation_role_sid,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - ReachabilityEnabled bool `json:"reachability_enabled,omitempty"` - Url string `json:"url,omitempty"` + ChatServiceSid string `json:"ChatServiceSid,omitempty"` + DefaultChatServiceRoleSid string `json:"DefaultChatServiceRoleSid,omitempty"` + DefaultConversationCreatorRoleSid string `json:"DefaultConversationCreatorRoleSid,omitempty"` + DefaultConversationRoleSid string `json:"DefaultConversationRoleSid,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + ReachabilityEnabled bool `json:"ReachabilityEnabled,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_service_service_configuration_service_notification.go b/rest/conversations/v1/model_conversations_v1_service_service_configuration_service_notification.go index 825c176aa..6a846ed1c 100644 --- a/rest/conversations/v1/model_conversations_v1_service_service_configuration_service_notification.go +++ b/rest/conversations/v1/model_conversations_v1_service_service_configuration_service_notification.go @@ -11,11 +11,11 @@ package openapi // ConversationsV1ServiceServiceConfigurationServiceNotification struct for ConversationsV1ServiceServiceConfigurationServiceNotification type ConversationsV1ServiceServiceConfigurationServiceNotification struct { - AccountSid string `json:"account_sid,omitempty"` - AddedToConversation map[string]interface{} `json:"added_to_conversation,omitempty"` - ChatServiceSid string `json:"chat_service_sid,omitempty"` - LogEnabled bool `json:"log_enabled,omitempty"` - NewMessage map[string]interface{} `json:"new_message,omitempty"` - RemovedFromConversation map[string]interface{} `json:"removed_from_conversation,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AddedToConversation map[string]interface{} `json:"AddedToConversation,omitempty"` + ChatServiceSid string `json:"ChatServiceSid,omitempty"` + LogEnabled bool `json:"LogEnabled,omitempty"` + NewMessage map[string]interface{} `json:"NewMessage,omitempty"` + RemovedFromConversation map[string]interface{} `json:"RemovedFromConversation,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_service_service_conversation.go b/rest/conversations/v1/model_conversations_v1_service_service_conversation.go index fc5835482..f365813c0 100644 --- a/rest/conversations/v1/model_conversations_v1_service_service_conversation.go +++ b/rest/conversations/v1/model_conversations_v1_service_service_conversation.go @@ -14,17 +14,17 @@ import ( ) // ConversationsV1ServiceServiceConversation struct for ConversationsV1ServiceServiceConversation type ConversationsV1ServiceServiceConversation struct { - AccountSid string `json:"account_sid,omitempty"` - Attributes string `json:"attributes,omitempty"` - ChatServiceSid string `json:"chat_service_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - MessagingServiceSid string `json:"messaging_service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - State string `json:"state,omitempty"` - Timers map[string]interface{} `json:"timers,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Attributes string `json:"Attributes,omitempty"` + ChatServiceSid string `json:"ChatServiceSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + MessagingServiceSid string `json:"MessagingServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + State string `json:"State,omitempty"` + Timers map[string]interface{} `json:"Timers,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_service_service_conversation_read_response.go b/rest/conversations/v1/model_conversations_v1_service_service_conversation_read_response.go index e05ed85b4..91bb6a336 100644 --- a/rest/conversations/v1/model_conversations_v1_service_service_conversation_read_response.go +++ b/rest/conversations/v1/model_conversations_v1_service_service_conversation_read_response.go @@ -11,6 +11,6 @@ package openapi // ConversationsV1ServiceServiceConversationReadResponse struct for ConversationsV1ServiceServiceConversationReadResponse type ConversationsV1ServiceServiceConversationReadResponse struct { - Conversations []ConversationsV1ServiceServiceConversation `json:"conversations,omitempty"` - Meta ConversationsV1ConversationReadResponseMeta `json:"meta,omitempty"` + Conversations []ConversationsV1ServiceServiceConversation `json:"Conversations,omitempty"` + Meta ConversationsV1ConversationReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message.go b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message.go index 9c03558bb..60daa3360 100644 --- a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message.go +++ b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message.go @@ -14,19 +14,19 @@ import ( ) // ConversationsV1ServiceServiceConversationServiceConversationMessage struct for ConversationsV1ServiceServiceConversationServiceConversationMessage type ConversationsV1ServiceServiceConversationServiceConversationMessage struct { - AccountSid string `json:"account_sid,omitempty"` - Attributes string `json:"attributes,omitempty"` - Author string `json:"author,omitempty"` - Body string `json:"body,omitempty"` - ChatServiceSid string `json:"chat_service_sid,omitempty"` - ConversationSid string `json:"conversation_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Delivery map[string]interface{} `json:"delivery,omitempty"` - Index int32 `json:"index,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Media []map[string]interface{} `json:"media,omitempty"` - ParticipantSid string `json:"participant_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Attributes string `json:"Attributes,omitempty"` + Author string `json:"Author,omitempty"` + Body string `json:"Body,omitempty"` + ChatServiceSid string `json:"ChatServiceSid,omitempty"` + ConversationSid string `json:"ConversationSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Delivery map[string]interface{} `json:"Delivery,omitempty"` + Index int32 `json:"Index,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Media []map[string]interface{} `json:"Media,omitempty"` + ParticipantSid string `json:"ParticipantSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message_read_response.go b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message_read_response.go index 642b92b40..e078314dc 100644 --- a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message_read_response.go +++ b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message_read_response.go @@ -11,6 +11,6 @@ package openapi // ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse struct for ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse type ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse struct { - Messages []ConversationsV1ServiceServiceConversationServiceConversationMessage `json:"messages,omitempty"` - Meta ConversationsV1ConversationReadResponseMeta `json:"meta,omitempty"` + Messages []ConversationsV1ServiceServiceConversationServiceConversationMessage `json:"Messages,omitempty"` + Meta ConversationsV1ConversationReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message_service_conversation_message_receipt.go b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message_service_conversation_message_receipt.go index 3dcb47f9f..f6dec5a0c 100644 --- a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message_service_conversation_message_receipt.go +++ b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message_service_conversation_message_receipt.go @@ -14,16 +14,16 @@ import ( ) // ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt struct for ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt type ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt struct { - AccountSid string `json:"account_sid,omitempty"` - ChannelMessageSid string `json:"channel_message_sid,omitempty"` - ChatServiceSid string `json:"chat_service_sid,omitempty"` - ConversationSid string `json:"conversation_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - ErrorCode int32 `json:"error_code,omitempty"` - MessageSid string `json:"message_sid,omitempty"` - ParticipantSid string `json:"participant_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ChannelMessageSid string `json:"ChannelMessageSid,omitempty"` + ChatServiceSid string `json:"ChatServiceSid,omitempty"` + ConversationSid string `json:"ConversationSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + ErrorCode int32 `json:"ErrorCode,omitempty"` + MessageSid string `json:"MessageSid,omitempty"` + ParticipantSid string `json:"ParticipantSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Status string `json:"Status,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message_service_conversation_message_receipt_read_response.go b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message_service_conversation_message_receipt_read_response.go index 63d3459af..292f54bd8 100644 --- a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message_service_conversation_message_receipt_read_response.go +++ b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message_service_conversation_message_receipt_read_response.go @@ -11,6 +11,6 @@ package openapi // ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse struct for ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse type ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse struct { - DeliveryReceipts []ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt `json:"delivery_receipts,omitempty"` - Meta ConversationsV1ConversationReadResponseMeta `json:"meta,omitempty"` + DeliveryReceipts []ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt `json:"DeliveryReceipts,omitempty"` + Meta ConversationsV1ConversationReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_participant.go b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_participant.go index 9cfcbca1b..38a53ed85 100644 --- a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_participant.go +++ b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_participant.go @@ -14,17 +14,17 @@ import ( ) // ConversationsV1ServiceServiceConversationServiceConversationParticipant struct for ConversationsV1ServiceServiceConversationServiceConversationParticipant type ConversationsV1ServiceServiceConversationServiceConversationParticipant struct { - AccountSid string `json:"account_sid,omitempty"` - Attributes string `json:"attributes,omitempty"` - ChatServiceSid string `json:"chat_service_sid,omitempty"` - ConversationSid string `json:"conversation_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Identity string `json:"identity,omitempty"` - LastReadMessageIndex *int32 `json:"last_read_message_index,omitempty"` - LastReadTimestamp string `json:"last_read_timestamp,omitempty"` - MessagingBinding map[string]interface{} `json:"messaging_binding,omitempty"` - RoleSid string `json:"role_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Attributes string `json:"Attributes,omitempty"` + ChatServiceSid string `json:"ChatServiceSid,omitempty"` + ConversationSid string `json:"ConversationSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Identity string `json:"Identity,omitempty"` + LastReadMessageIndex *int32 `json:"LastReadMessageIndex,omitempty"` + LastReadTimestamp string `json:"LastReadTimestamp,omitempty"` + MessagingBinding map[string]interface{} `json:"MessagingBinding,omitempty"` + RoleSid string `json:"RoleSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_participant_read_response.go b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_participant_read_response.go index ea145ff43..5600a8b5f 100644 --- a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_participant_read_response.go +++ b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_participant_read_response.go @@ -11,6 +11,6 @@ package openapi // ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse struct for ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse type ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse struct { - Meta ConversationsV1ConversationReadResponseMeta `json:"meta,omitempty"` - Participants []ConversationsV1ServiceServiceConversationServiceConversationParticipant `json:"participants,omitempty"` + Meta ConversationsV1ConversationReadResponseMeta `json:"Meta,omitempty"` + Participants []ConversationsV1ServiceServiceConversationServiceConversationParticipant `json:"Participants,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_scoped_webhook.go b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_scoped_webhook.go index d6ab996dc..7d7ee2b6f 100644 --- a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_scoped_webhook.go +++ b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_scoped_webhook.go @@ -14,13 +14,13 @@ import ( ) // ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook struct for ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook type ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook struct { - AccountSid string `json:"account_sid,omitempty"` - ChatServiceSid string `json:"chat_service_sid,omitempty"` - Configuration map[string]interface{} `json:"configuration,omitempty"` - ConversationSid string `json:"conversation_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Sid string `json:"sid,omitempty"` - Target string `json:"target,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ChatServiceSid string `json:"ChatServiceSid,omitempty"` + Configuration map[string]interface{} `json:"Configuration,omitempty"` + ConversationSid string `json:"ConversationSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Sid string `json:"Sid,omitempty"` + Target string `json:"Target,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_scoped_webhook_read_response.go b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_scoped_webhook_read_response.go index d6e42e3a7..67d8cde71 100644 --- a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_scoped_webhook_read_response.go +++ b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_scoped_webhook_read_response.go @@ -11,6 +11,6 @@ package openapi // ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse struct for ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse type ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse struct { - Meta ConversationsV1ConversationReadResponseMeta `json:"meta,omitempty"` - Webhooks []ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook `json:"webhooks,omitempty"` + Meta ConversationsV1ConversationReadResponseMeta `json:"Meta,omitempty"` + Webhooks []ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook `json:"Webhooks,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_service_service_role.go b/rest/conversations/v1/model_conversations_v1_service_service_role.go index 577cdd68e..daf7bb8f0 100644 --- a/rest/conversations/v1/model_conversations_v1_service_service_role.go +++ b/rest/conversations/v1/model_conversations_v1_service_service_role.go @@ -14,13 +14,13 @@ import ( ) // ConversationsV1ServiceServiceRole struct for ConversationsV1ServiceServiceRole type ConversationsV1ServiceServiceRole struct { - AccountSid string `json:"account_sid,omitempty"` - ChatServiceSid string `json:"chat_service_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Permissions []string `json:"permissions,omitempty"` - Sid string `json:"sid,omitempty"` - Type string `json:"type,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ChatServiceSid string `json:"ChatServiceSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Permissions []string `json:"Permissions,omitempty"` + Sid string `json:"Sid,omitempty"` + Type string `json:"Type,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_service_service_role_read_response.go b/rest/conversations/v1/model_conversations_v1_service_service_role_read_response.go index 24b9b5e33..734707979 100644 --- a/rest/conversations/v1/model_conversations_v1_service_service_role_read_response.go +++ b/rest/conversations/v1/model_conversations_v1_service_service_role_read_response.go @@ -11,6 +11,6 @@ package openapi // ConversationsV1ServiceServiceRoleReadResponse struct for ConversationsV1ServiceServiceRoleReadResponse type ConversationsV1ServiceServiceRoleReadResponse struct { - Meta ConversationsV1ConversationReadResponseMeta `json:"meta,omitempty"` - Roles []ConversationsV1ServiceServiceRole `json:"roles,omitempty"` + Meta ConversationsV1ConversationReadResponseMeta `json:"Meta,omitempty"` + Roles []ConversationsV1ServiceServiceRole `json:"Roles,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_service_service_user.go b/rest/conversations/v1/model_conversations_v1_service_service_user.go index 0d89d13ca..99f08ab2a 100644 --- a/rest/conversations/v1/model_conversations_v1_service_service_user.go +++ b/rest/conversations/v1/model_conversations_v1_service_service_user.go @@ -14,16 +14,16 @@ import ( ) // ConversationsV1ServiceServiceUser struct for ConversationsV1ServiceServiceUser type ConversationsV1ServiceServiceUser struct { - AccountSid string `json:"account_sid,omitempty"` - Attributes string `json:"attributes,omitempty"` - ChatServiceSid string `json:"chat_service_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Identity string `json:"identity,omitempty"` - IsNotifiable bool `json:"is_notifiable,omitempty"` - IsOnline bool `json:"is_online,omitempty"` - RoleSid string `json:"role_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Attributes string `json:"Attributes,omitempty"` + ChatServiceSid string `json:"ChatServiceSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Identity string `json:"Identity,omitempty"` + IsNotifiable bool `json:"IsNotifiable,omitempty"` + IsOnline bool `json:"IsOnline,omitempty"` + RoleSid string `json:"RoleSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_service_service_user_read_response.go b/rest/conversations/v1/model_conversations_v1_service_service_user_read_response.go index 836baf670..6eba835bf 100644 --- a/rest/conversations/v1/model_conversations_v1_service_service_user_read_response.go +++ b/rest/conversations/v1/model_conversations_v1_service_service_user_read_response.go @@ -11,6 +11,6 @@ package openapi // ConversationsV1ServiceServiceUserReadResponse struct for ConversationsV1ServiceServiceUserReadResponse type ConversationsV1ServiceServiceUserReadResponse struct { - Meta ConversationsV1ConversationReadResponseMeta `json:"meta,omitempty"` - Users []ConversationsV1ServiceServiceUser `json:"users,omitempty"` + Meta ConversationsV1ConversationReadResponseMeta `json:"Meta,omitempty"` + Users []ConversationsV1ServiceServiceUser `json:"Users,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_user.go b/rest/conversations/v1/model_conversations_v1_user.go index 30ad6ec84..39e443fb7 100644 --- a/rest/conversations/v1/model_conversations_v1_user.go +++ b/rest/conversations/v1/model_conversations_v1_user.go @@ -14,16 +14,16 @@ import ( ) // ConversationsV1User struct for ConversationsV1User type ConversationsV1User struct { - AccountSid string `json:"account_sid,omitempty"` - Attributes string `json:"attributes,omitempty"` - ChatServiceSid string `json:"chat_service_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Identity string `json:"identity,omitempty"` - IsNotifiable bool `json:"is_notifiable,omitempty"` - IsOnline bool `json:"is_online,omitempty"` - RoleSid string `json:"role_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Attributes string `json:"Attributes,omitempty"` + ChatServiceSid string `json:"ChatServiceSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Identity string `json:"Identity,omitempty"` + IsNotifiable bool `json:"IsNotifiable,omitempty"` + IsOnline bool `json:"IsOnline,omitempty"` + RoleSid string `json:"RoleSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_user_read_response.go b/rest/conversations/v1/model_conversations_v1_user_read_response.go index 7ec09b989..26988dbaa 100644 --- a/rest/conversations/v1/model_conversations_v1_user_read_response.go +++ b/rest/conversations/v1/model_conversations_v1_user_read_response.go @@ -11,6 +11,6 @@ package openapi // ConversationsV1UserReadResponse struct for ConversationsV1UserReadResponse type ConversationsV1UserReadResponse struct { - Meta ConversationsV1ConversationReadResponseMeta `json:"meta,omitempty"` - Users []ConversationsV1User `json:"users,omitempty"` + Meta ConversationsV1ConversationReadResponseMeta `json:"Meta,omitempty"` + Users []ConversationsV1User `json:"Users,omitempty"` } diff --git a/rest/conversations/v1/model_create_conversation_participant_request.go b/rest/conversations/v1/model_create_conversation_participant_request.go index 535c5396d..a816ef999 100644 --- a/rest/conversations/v1/model_create_conversation_participant_request.go +++ b/rest/conversations/v1/model_create_conversation_participant_request.go @@ -23,11 +23,11 @@ type CreateConversationParticipantRequest struct { // A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters. Identity string `json:"Identity,omitempty"` // The address of the participant's device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). - MessagingBindingAddress string `json:"MessagingBinding.Address,omitempty"` + MessagingBindingAddress string `json:"MessagingBindingAddress,omitempty"` // The address of the Twilio phone number that is used in Group MMS. Communication mask for the Conversation participant with Identity. - MessagingBindingProjectedAddress string `json:"MessagingBinding.ProjectedAddress,omitempty"` + MessagingBindingProjectedAddress string `json:"MessagingBindingProjectedAddress,omitempty"` // The address of the Twilio phone number (or WhatsApp number) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). - MessagingBindingProxyAddress string `json:"MessagingBinding.ProxyAddress,omitempty"` + MessagingBindingProxyAddress string `json:"MessagingBindingProxyAddress,omitempty"` // The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. RoleSid string `json:"RoleSid,omitempty"` } diff --git a/rest/conversations/v1/model_create_conversation_request.go b/rest/conversations/v1/model_create_conversation_request.go index a5aae014a..205887bad 100644 --- a/rest/conversations/v1/model_create_conversation_request.go +++ b/rest/conversations/v1/model_create_conversation_request.go @@ -27,9 +27,9 @@ type CreateConversationRequest struct { // Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` State string `json:"State,omitempty"` // ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. - TimersClosed string `json:"Timers.Closed,omitempty"` + TimersClosed string `json:"TimersClosed,omitempty"` // ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. - TimersInactive string `json:"Timers.Inactive,omitempty"` + TimersInactive string `json:"TimersInactive,omitempty"` // An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. UniqueName string `json:"UniqueName,omitempty"` } diff --git a/rest/conversations/v1/model_create_conversation_scoped_webhook_request.go b/rest/conversations/v1/model_create_conversation_scoped_webhook_request.go index 3fbf9e82c..64a1258fe 100644 --- a/rest/conversations/v1/model_create_conversation_scoped_webhook_request.go +++ b/rest/conversations/v1/model_create_conversation_scoped_webhook_request.go @@ -12,17 +12,17 @@ package openapi // CreateConversationScopedWebhookRequest struct for CreateConversationScopedWebhookRequest type CreateConversationScopedWebhookRequest struct { // The list of events, firing webhook event for this Conversation. - ConfigurationFilters []string `json:"Configuration.Filters,omitempty"` + ConfigurationFilters []string `json:"ConfigurationFilters,omitempty"` // The studio flow SID, where the webhook should be sent to. - ConfigurationFlowSid string `json:"Configuration.FlowSid,omitempty"` + ConfigurationFlowSid string `json:"ConfigurationFlowSid,omitempty"` // The HTTP method to be used when sending a webhook request. - ConfigurationMethod string `json:"Configuration.Method,omitempty"` + ConfigurationMethod string `json:"ConfigurationMethod,omitempty"` // The message index for which and it's successors the webhook will be replayed. Not set by default - ConfigurationReplayAfter int32 `json:"Configuration.ReplayAfter,omitempty"` + ConfigurationReplayAfter int32 `json:"ConfigurationReplayAfter,omitempty"` // The list of keywords, firing webhook event for this Conversation. - ConfigurationTriggers []string `json:"Configuration.Triggers,omitempty"` + ConfigurationTriggers []string `json:"ConfigurationTriggers,omitempty"` // The absolute url the webhook request should be sent to. - ConfigurationUrl string `json:"Configuration.Url,omitempty"` + ConfigurationUrl string `json:"ConfigurationUrl,omitempty"` // The target of this webhook: `webhook`, `studio`, `trigger` Target string `json:"Target"` } diff --git a/rest/conversations/v1/model_create_service_conversation_participant_request.go b/rest/conversations/v1/model_create_service_conversation_participant_request.go index ea9177c5b..24985a83b 100644 --- a/rest/conversations/v1/model_create_service_conversation_participant_request.go +++ b/rest/conversations/v1/model_create_service_conversation_participant_request.go @@ -23,11 +23,11 @@ type CreateServiceConversationParticipantRequest struct { // A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversation SDK to communicate. Limited to 256 characters. Identity string `json:"Identity,omitempty"` // The address of the participant's device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). - MessagingBindingAddress string `json:"MessagingBinding.Address,omitempty"` + MessagingBindingAddress string `json:"MessagingBindingAddress,omitempty"` // The address of the Twilio phone number that is used in Group MMS. Communication mask for the Conversation participant with Identity. - MessagingBindingProjectedAddress string `json:"MessagingBinding.ProjectedAddress,omitempty"` + MessagingBindingProjectedAddress string `json:"MessagingBindingProjectedAddress,omitempty"` // The address of the Twilio phone number (or WhatsApp number) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). - MessagingBindingProxyAddress string `json:"MessagingBinding.ProxyAddress,omitempty"` + MessagingBindingProxyAddress string `json:"MessagingBindingProxyAddress,omitempty"` // The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. RoleSid string `json:"RoleSid,omitempty"` } diff --git a/rest/conversations/v1/model_create_service_conversation_request.go b/rest/conversations/v1/model_create_service_conversation_request.go index c10d0b40a..7c6c26063 100644 --- a/rest/conversations/v1/model_create_service_conversation_request.go +++ b/rest/conversations/v1/model_create_service_conversation_request.go @@ -27,9 +27,9 @@ type CreateServiceConversationRequest struct { // Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` State string `json:"State,omitempty"` // ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. - TimersClosed string `json:"Timers.Closed,omitempty"` + TimersClosed string `json:"TimersClosed,omitempty"` // ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. - TimersInactive string `json:"Timers.Inactive,omitempty"` + TimersInactive string `json:"TimersInactive,omitempty"` // An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. UniqueName string `json:"UniqueName,omitempty"` } diff --git a/rest/conversations/v1/model_create_service_conversation_scoped_webhook_request.go b/rest/conversations/v1/model_create_service_conversation_scoped_webhook_request.go index f19acb8bb..46dd879af 100644 --- a/rest/conversations/v1/model_create_service_conversation_scoped_webhook_request.go +++ b/rest/conversations/v1/model_create_service_conversation_scoped_webhook_request.go @@ -12,17 +12,17 @@ package openapi // CreateServiceConversationScopedWebhookRequest struct for CreateServiceConversationScopedWebhookRequest type CreateServiceConversationScopedWebhookRequest struct { // The list of events, firing webhook event for this Conversation. - ConfigurationFilters []string `json:"Configuration.Filters,omitempty"` + ConfigurationFilters []string `json:"ConfigurationFilters,omitempty"` // The studio flow SID, where the webhook should be sent to. - ConfigurationFlowSid string `json:"Configuration.FlowSid,omitempty"` + ConfigurationFlowSid string `json:"ConfigurationFlowSid,omitempty"` // The HTTP method to be used when sending a webhook request. - ConfigurationMethod string `json:"Configuration.Method,omitempty"` + ConfigurationMethod string `json:"ConfigurationMethod,omitempty"` // The message index for which and it's successors the webhook will be replayed. Not set by default - ConfigurationReplayAfter int32 `json:"Configuration.ReplayAfter,omitempty"` + ConfigurationReplayAfter int32 `json:"ConfigurationReplayAfter,omitempty"` // The list of keywords, firing webhook event for this Conversation. - ConfigurationTriggers []string `json:"Configuration.Triggers,omitempty"` + ConfigurationTriggers []string `json:"ConfigurationTriggers,omitempty"` // The absolute url the webhook request should be sent to. - ConfigurationUrl string `json:"Configuration.Url,omitempty"` + ConfigurationUrl string `json:"ConfigurationUrl,omitempty"` // The target of this webhook: `webhook`, `studio`, `trigger` Target string `json:"Target"` } diff --git a/rest/conversations/v1/model_update_conversation_participant_request.go b/rest/conversations/v1/model_update_conversation_participant_request.go index 669704fec..cdd0556d6 100644 --- a/rest/conversations/v1/model_update_conversation_participant_request.go +++ b/rest/conversations/v1/model_update_conversation_participant_request.go @@ -27,9 +27,9 @@ type UpdateConversationParticipantRequest struct { // Timestamp of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. LastReadTimestamp string `json:"LastReadTimestamp,omitempty"` // The address of the Twilio phone number that is used in Group MMS. 'null' value will remove it. - MessagingBindingProjectedAddress string `json:"MessagingBinding.ProjectedAddress,omitempty"` + MessagingBindingProjectedAddress string `json:"MessagingBindingProjectedAddress,omitempty"` // The address of the Twilio phone number that the participant is in contact with. 'null' value will remove it. - MessagingBindingProxyAddress string `json:"MessagingBinding.ProxyAddress,omitempty"` + MessagingBindingProxyAddress string `json:"MessagingBindingProxyAddress,omitempty"` // The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. RoleSid string `json:"RoleSid,omitempty"` } diff --git a/rest/conversations/v1/model_update_conversation_request.go b/rest/conversations/v1/model_update_conversation_request.go index 834d0a919..255193dc0 100644 --- a/rest/conversations/v1/model_update_conversation_request.go +++ b/rest/conversations/v1/model_update_conversation_request.go @@ -27,9 +27,9 @@ type UpdateConversationRequest struct { // Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` State string `json:"State,omitempty"` // ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. - TimersClosed string `json:"Timers.Closed,omitempty"` + TimersClosed string `json:"TimersClosed,omitempty"` // ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. - TimersInactive string `json:"Timers.Inactive,omitempty"` + TimersInactive string `json:"TimersInactive,omitempty"` // An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. UniqueName string `json:"UniqueName,omitempty"` } diff --git a/rest/conversations/v1/model_update_conversation_scoped_webhook_request.go b/rest/conversations/v1/model_update_conversation_scoped_webhook_request.go index a9242cefe..317254ce1 100644 --- a/rest/conversations/v1/model_update_conversation_scoped_webhook_request.go +++ b/rest/conversations/v1/model_update_conversation_scoped_webhook_request.go @@ -12,13 +12,13 @@ package openapi // UpdateConversationScopedWebhookRequest struct for UpdateConversationScopedWebhookRequest type UpdateConversationScopedWebhookRequest struct { // The list of events, firing webhook event for this Conversation. - ConfigurationFilters []string `json:"Configuration.Filters,omitempty"` + ConfigurationFilters []string `json:"ConfigurationFilters,omitempty"` // The studio flow SID, where the webhook should be sent to. - ConfigurationFlowSid string `json:"Configuration.FlowSid,omitempty"` + ConfigurationFlowSid string `json:"ConfigurationFlowSid,omitempty"` // The HTTP method to be used when sending a webhook request. - ConfigurationMethod string `json:"Configuration.Method,omitempty"` + ConfigurationMethod string `json:"ConfigurationMethod,omitempty"` // The list of keywords, firing webhook event for this Conversation. - ConfigurationTriggers []string `json:"Configuration.Triggers,omitempty"` + ConfigurationTriggers []string `json:"ConfigurationTriggers,omitempty"` // The absolute url the webhook request should be sent to. - ConfigurationUrl string `json:"Configuration.Url,omitempty"` + ConfigurationUrl string `json:"ConfigurationUrl,omitempty"` } diff --git a/rest/conversations/v1/model_update_service_conversation_participant_request.go b/rest/conversations/v1/model_update_service_conversation_participant_request.go index c0c422021..f8fc1a74f 100644 --- a/rest/conversations/v1/model_update_service_conversation_participant_request.go +++ b/rest/conversations/v1/model_update_service_conversation_participant_request.go @@ -27,9 +27,9 @@ type UpdateServiceConversationParticipantRequest struct { // Timestamp of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. LastReadTimestamp string `json:"LastReadTimestamp,omitempty"` // The address of the Twilio phone number that is used in Group MMS. 'null' value will remove it. - MessagingBindingProjectedAddress string `json:"MessagingBinding.ProjectedAddress,omitempty"` + MessagingBindingProjectedAddress string `json:"MessagingBindingProjectedAddress,omitempty"` // The address of the Twilio phone number that the participant is in contact with. 'null' value will remove it. - MessagingBindingProxyAddress string `json:"MessagingBinding.ProxyAddress,omitempty"` + MessagingBindingProxyAddress string `json:"MessagingBindingProxyAddress,omitempty"` // The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. RoleSid string `json:"RoleSid,omitempty"` } diff --git a/rest/conversations/v1/model_update_service_conversation_request.go b/rest/conversations/v1/model_update_service_conversation_request.go index dabe25232..089e22e85 100644 --- a/rest/conversations/v1/model_update_service_conversation_request.go +++ b/rest/conversations/v1/model_update_service_conversation_request.go @@ -27,9 +27,9 @@ type UpdateServiceConversationRequest struct { // Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` State string `json:"State,omitempty"` // ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. - TimersClosed string `json:"Timers.Closed,omitempty"` + TimersClosed string `json:"TimersClosed,omitempty"` // ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. - TimersInactive string `json:"Timers.Inactive,omitempty"` + TimersInactive string `json:"TimersInactive,omitempty"` // An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. UniqueName string `json:"UniqueName,omitempty"` } diff --git a/rest/conversations/v1/model_update_service_conversation_scoped_webhook_request.go b/rest/conversations/v1/model_update_service_conversation_scoped_webhook_request.go index 4b7e80790..6c2f0a4d2 100644 --- a/rest/conversations/v1/model_update_service_conversation_scoped_webhook_request.go +++ b/rest/conversations/v1/model_update_service_conversation_scoped_webhook_request.go @@ -12,13 +12,13 @@ package openapi // UpdateServiceConversationScopedWebhookRequest struct for UpdateServiceConversationScopedWebhookRequest type UpdateServiceConversationScopedWebhookRequest struct { // The list of events, firing webhook event for this Conversation. - ConfigurationFilters []string `json:"Configuration.Filters,omitempty"` + ConfigurationFilters []string `json:"ConfigurationFilters,omitempty"` // The studio flow SID, where the webhook should be sent to. - ConfigurationFlowSid string `json:"Configuration.FlowSid,omitempty"` + ConfigurationFlowSid string `json:"ConfigurationFlowSid,omitempty"` // The HTTP method to be used when sending a webhook request. - ConfigurationMethod string `json:"Configuration.Method,omitempty"` + ConfigurationMethod string `json:"ConfigurationMethod,omitempty"` // The list of keywords, firing webhook event for this Conversation. - ConfigurationTriggers []string `json:"Configuration.Triggers,omitempty"` + ConfigurationTriggers []string `json:"ConfigurationTriggers,omitempty"` // The absolute url the webhook request should be sent to. - ConfigurationUrl string `json:"Configuration.Url,omitempty"` + ConfigurationUrl string `json:"ConfigurationUrl,omitempty"` } diff --git a/rest/conversations/v1/model_update_service_notification_request.go b/rest/conversations/v1/model_update_service_notification_request.go index 6df07de02..0309aff0c 100644 --- a/rest/conversations/v1/model_update_service_notification_request.go +++ b/rest/conversations/v1/model_update_service_notification_request.go @@ -12,25 +12,25 @@ package openapi // UpdateServiceNotificationRequest struct for UpdateServiceNotificationRequest type UpdateServiceNotificationRequest struct { // Whether to send a notification when a participant is added to a conversation. The default is `false`. - AddedToConversationEnabled bool `json:"AddedToConversation.Enabled,omitempty"` + AddedToConversationEnabled bool `json:"AddedToConversationEnabled,omitempty"` // The name of the sound to play when a participant is added to a conversation and `added_to_conversation.enabled` is `true`. - AddedToConversationSound string `json:"AddedToConversation.Sound,omitempty"` + AddedToConversationSound string `json:"AddedToConversationSound,omitempty"` // The template to use to create the notification text displayed when a participant is added to a conversation and `added_to_conversation.enabled` is `true`. - AddedToConversationTemplate string `json:"AddedToConversation.Template,omitempty"` + AddedToConversationTemplate string `json:"AddedToConversationTemplate,omitempty"` // Weather the notification logging is enabled. LogEnabled bool `json:"LogEnabled,omitempty"` // Whether the new message badge is enabled. The default is `false`. - NewMessageBadgeCountEnabled bool `json:"NewMessage.BadgeCountEnabled,omitempty"` + NewMessageBadgeCountEnabled bool `json:"NewMessageBadgeCountEnabled,omitempty"` // Whether to send a notification when a new message is added to a conversation. The default is `false`. - NewMessageEnabled bool `json:"NewMessage.Enabled,omitempty"` + NewMessageEnabled bool `json:"NewMessageEnabled,omitempty"` // The name of the sound to play when a new message is added to a conversation and `new_message.enabled` is `true`. - NewMessageSound string `json:"NewMessage.Sound,omitempty"` + NewMessageSound string `json:"NewMessageSound,omitempty"` // The template to use to create the notification text displayed when a new message is added to a conversation and `new_message.enabled` is `true`. - NewMessageTemplate string `json:"NewMessage.Template,omitempty"` + NewMessageTemplate string `json:"NewMessageTemplate,omitempty"` // Whether to send a notification to a user when they are removed from a conversation. The default is `false`. - RemovedFromConversationEnabled bool `json:"RemovedFromConversation.Enabled,omitempty"` + RemovedFromConversationEnabled bool `json:"RemovedFromConversationEnabled,omitempty"` // The name of the sound to play to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`. - RemovedFromConversationSound string `json:"RemovedFromConversation.Sound,omitempty"` + RemovedFromConversationSound string `json:"RemovedFromConversationSound,omitempty"` // The template to use to create the notification text displayed to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`. - RemovedFromConversationTemplate string `json:"RemovedFromConversation.Template,omitempty"` + RemovedFromConversationTemplate string `json:"RemovedFromConversationTemplate,omitempty"` } diff --git a/rest/events/v1/api_default.go b/rest/events/v1/api_default.go index 8e17e6e65..edfcfdc54 100644 --- a/rest/events/v1/api_default.go +++ b/rest/events/v1/api_default.go @@ -15,6 +15,7 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" ) type DefaultApiService struct { @@ -47,11 +48,12 @@ Create a new Sink func (c *DefaultApiService) CreateSink(params *CreateSinkParams) (*EventsV1Sink, error) { path := "/v1/Sinks" + data := url.Values{} headers := 0 if params != nil && params.Description != nil { - data.Set("Description", *params.Description) + data.Set("Description", *params.Description) } if params != nil && params.SinkConfiguration != nil { v, err := json.Marshal(params.SinkConfiguration) @@ -60,10 +62,10 @@ func (c *DefaultApiService) CreateSink(params *CreateSinkParams) (*EventsV1Sink, return nil, err } - data.Set("SinkConfiguration", string(v)) + data.Set("SinkConfiguration", fmt.Sprint(v)) } if params != nil && params.SinkType != nil { - data.Set("SinkType", *params.SinkType) + data.Set("SinkType", *params.SinkType) } @@ -85,14 +87,15 @@ func (c *DefaultApiService) CreateSink(params *CreateSinkParams) (*EventsV1Sink, /* CreateSinkTest Method for CreateSinkTest Create a new Sink Test Event for the given Sink. - * @param sid A 34 character string that uniquely identifies the Sink to be Tested. + * @param Sid A 34 character string that uniquely identifies the Sink to be Tested. @return EventsV1SinkSinkTest */ -func (c *DefaultApiService) CreateSinkTest(sid string) (*EventsV1SinkSinkTest, error) { +func (c *DefaultApiService) CreateSinkTest(Sid string) (*EventsV1SinkSinkTest, error) { path := "/v1/Sinks/{Sid}/Test" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -119,20 +122,21 @@ type CreateSinkValidateParams struct { /* CreateSinkValidate Method for CreateSinkValidate Validate that a test event for a Sink was received. - * @param sid + * @param Sid * @param optional nil or *CreateSinkValidateOpts - Optional Parameters: * @param "TestId" (string) - A 34 character string that uniquely identifies the test event for a Sink being validated. @return EventsV1SinkSinkValidate */ -func (c *DefaultApiService) CreateSinkValidate(sid string, params *CreateSinkValidateParams) (*EventsV1SinkSinkValidate, error) { +func (c *DefaultApiService) CreateSinkValidate(Sid string, params *CreateSinkValidateParams) (*EventsV1SinkSinkValidate, error) { path := "/v1/Sinks/{Sid}/Validate" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.TestId != nil { - data.Set("TestId", *params.TestId) + data.Set("TestId", *params.TestId) } @@ -169,14 +173,15 @@ Create a new Subscription. func (c *DefaultApiService) CreateSubscription(params *CreateSubscriptionParams) (*EventsV1Subscription, error) { path := "/v1/Subscriptions" + data := url.Values{} headers := 0 if params != nil && params.Description != nil { - data.Set("Description", *params.Description) + data.Set("Description", *params.Description) } if params != nil && params.SinkSid != nil { - data.Set("SinkSid", *params.SinkSid) + data.Set("SinkSid", *params.SinkSid) } if params != nil && params.Types != nil { v, err := json.Marshal(params.Types) @@ -185,7 +190,7 @@ func (c *DefaultApiService) CreateSubscription(params *CreateSubscriptionParams) return nil, err } - data.Set("Types", string(v)) + data.Set("Types", fmt.Sprint(v)) } @@ -207,13 +212,14 @@ func (c *DefaultApiService) CreateSubscription(params *CreateSubscriptionParams) /* DeleteSink Method for DeleteSink Delete a specific Sink. - * @param sid A 34 character string that uniquely identifies this Sink. + * @param Sid A 34 character string that uniquely identifies this Sink. */ -func (c *DefaultApiService) DeleteSink(sid string) (error) { +func (c *DefaultApiService) DeleteSink(Sid string) (error) { path := "/v1/Sinks/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -231,13 +237,14 @@ func (c *DefaultApiService) DeleteSink(sid string) (error) { /* DeleteSubscription Method for DeleteSubscription Delete a specific Subscription. - * @param sid A 34 character string that uniquely identifies this Subscription. + * @param Sid A 34 character string that uniquely identifies this Subscription. */ -func (c *DefaultApiService) DeleteSubscription(sid string) (error) { +func (c *DefaultApiService) DeleteSubscription(Sid string) (error) { path := "/v1/Subscriptions/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -255,14 +262,15 @@ func (c *DefaultApiService) DeleteSubscription(sid string) (error) { /* FetchEventType Method for FetchEventType Fetch a specific Event Type. - * @param type_ A string that uniquely identifies this Event Type. + * @param Type A string that uniquely identifies this Event Type. @return EventsV1EventType */ -func (c *DefaultApiService) FetchEventType(type_ string) (*EventsV1EventType, error) { +func (c *DefaultApiService) FetchEventType(Type string) (*EventsV1EventType, error) { path := "/v1/Types/{Type}" - path = strings.Replace(path, "{"+"Type"+"}", type_, -1) + path = strings.Replace(path, "{"+"Type"+"}", Type, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -285,14 +293,15 @@ func (c *DefaultApiService) FetchEventType(type_ string) (*EventsV1EventType, er /* FetchSchema Method for FetchSchema Fetch a specific schema with its nested versions. - * @param id The unique identifier of the schema. Each schema can have multiple versions, that share the same id. + * @param Id The unique identifier of the schema. Each schema can have multiple versions, that share the same id. @return EventsV1Schema */ -func (c *DefaultApiService) FetchSchema(id string) (*EventsV1Schema, error) { +func (c *DefaultApiService) FetchSchema(Id string) (*EventsV1Schema, error) { path := "/v1/Schemas/{Id}" - path = strings.Replace(path, "{"+"Id"+"}", id, -1) + path = strings.Replace(path, "{"+"Id"+"}", Id, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -315,14 +324,15 @@ func (c *DefaultApiService) FetchSchema(id string) (*EventsV1Schema, error) { /* FetchSink Method for FetchSink Fetch a specific Sink. - * @param sid A 34 character string that uniquely identifies this Sink. + * @param Sid A 34 character string that uniquely identifies this Sink. @return EventsV1Sink */ -func (c *DefaultApiService) FetchSink(sid string) (*EventsV1Sink, error) { +func (c *DefaultApiService) FetchSink(Sid string) (*EventsV1Sink, error) { path := "/v1/Sinks/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -345,14 +355,15 @@ func (c *DefaultApiService) FetchSink(sid string) (*EventsV1Sink, error) { /* FetchSubscription Method for FetchSubscription Fetch a specific Subscription. - * @param sid A 34 character string that uniquely identifies this Subscription. + * @param Sid A 34 character string that uniquely identifies this Subscription. @return EventsV1Subscription */ -func (c *DefaultApiService) FetchSubscription(sid string) (*EventsV1Subscription, error) { +func (c *DefaultApiService) FetchSubscription(Sid string) (*EventsV1Subscription, error) { path := "/v1/Subscriptions/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -375,16 +386,17 @@ func (c *DefaultApiService) FetchSubscription(sid string) (*EventsV1Subscription /* FetchVersion Method for FetchVersion Fetch a specific schema and version. - * @param id The unique identifier of the schema. Each schema can have multiple versions, that share the same id. - * @param schemaVersion The version of the schema + * @param Id The unique identifier of the schema. Each schema can have multiple versions, that share the same id. + * @param SchemaVersion The version of the schema @return EventsV1SchemaVersion */ -func (c *DefaultApiService) FetchVersion(id string, schemaVersion int32) (*EventsV1SchemaVersion, error) { +func (c *DefaultApiService) FetchVersion(Id string, SchemaVersion int32) (*EventsV1SchemaVersion, error) { path := "/v1/Schemas/{Id}/Versions/{SchemaVersion}" - path = strings.Replace(path, "{"+"Id"+"}", id, -1) - path = strings.Replace(path, "{"+"SchemaVersion"+"}", schemaVersion, -1) + path = strings.Replace(path, "{"+"Id"+"}", Id, -1) + path = strings.Replace(path, "{"+"SchemaVersion"+"}", fmt.Sprint(SchemaVersion), -1) + - data := 0 + data := url.Values{} headers := 0 @@ -418,11 +430,12 @@ Retrieve a paginated list of all the available Event Types. func (c *DefaultApiService) ListEventType(params *ListEventTypeParams) (*EventsV1EventTypeReadResponse, error) { path := "/v1/Types" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -455,11 +468,12 @@ Retrieve a paginated list of Sinks belonging to the account used to make the req func (c *DefaultApiService) ListSink(params *ListSinkParams) (*EventsV1SinkReadResponse, error) { path := "/v1/Sinks" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -485,20 +499,21 @@ type ListSubscribedEventParams struct { /* ListSubscribedEvent Method for ListSubscribedEvent Retrieve a list of all Subscribed Event types for a Subscription. - * @param subscriptionSid The unique SID identifier of the Subscription. + * @param SubscriptionSid The unique SID identifier of the Subscription. * @param optional nil or *ListSubscribedEventOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return EventsV1SubscriptionSubscribedEventReadResponse */ -func (c *DefaultApiService) ListSubscribedEvent(subscriptionSid string, params *ListSubscribedEventParams) (*EventsV1SubscriptionSubscribedEventReadResponse, error) { +func (c *DefaultApiService) ListSubscribedEvent(SubscriptionSid string, params *ListSubscribedEventParams) (*EventsV1SubscriptionSubscribedEventReadResponse, error) { path := "/v1/Subscriptions/{SubscriptionSid}/SubscribedEvents" - path = strings.Replace(path, "{"+"SubscriptionSid"+"}", subscriptionSid, -1) + path = strings.Replace(path, "{"+"SubscriptionSid"+"}", SubscriptionSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -533,14 +548,15 @@ Retrieve a paginated list of Subscriptions belonging to the account used to make func (c *DefaultApiService) ListSubscription(params *ListSubscriptionParams) (*EventsV1SubscriptionReadResponse, error) { path := "/v1/Subscriptions" + data := url.Values{} headers := 0 if params != nil && params.SinkSid != nil { - data.Set("SinkSid", *params.SinkSid) + data.Set("SinkSid", *params.SinkSid) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -566,20 +582,21 @@ type ListVersionParams struct { /* ListVersion Method for ListVersion Retrieve a paginated list of versions of the schema. - * @param id The unique identifier of the schema. Each schema can have multiple versions, that share the same id. + * @param Id The unique identifier of the schema. Each schema can have multiple versions, that share the same id. * @param optional nil or *ListVersionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return EventsV1SchemaVersionReadResponse */ -func (c *DefaultApiService) ListVersion(id string, params *ListVersionParams) (*EventsV1SchemaVersionReadResponse, error) { +func (c *DefaultApiService) ListVersion(Id string, params *ListVersionParams) (*EventsV1SchemaVersionReadResponse, error) { path := "/v1/Schemas/{Id}/Versions" - path = strings.Replace(path, "{"+"Id"+"}", id, -1) + path = strings.Replace(path, "{"+"Id"+"}", Id, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -606,24 +623,25 @@ type UpdateSubscriptionParams struct { /* UpdateSubscription Method for UpdateSubscription Update a Subscription. - * @param sid A 34 character string that uniquely identifies this Subscription. + * @param Sid A 34 character string that uniquely identifies this Subscription. * @param optional nil or *UpdateSubscriptionOpts - Optional Parameters: * @param "Description" (string) - A human readable description for the Subscription. * @param "SinkSid" (string) - The SID of the sink that events selected by this subscription should be sent to. Sink must be active for the subscription to be created. @return EventsV1Subscription */ -func (c *DefaultApiService) UpdateSubscription(sid string, params *UpdateSubscriptionParams) (*EventsV1Subscription, error) { +func (c *DefaultApiService) UpdateSubscription(Sid string, params *UpdateSubscriptionParams) (*EventsV1Subscription, error) { path := "/v1/Subscriptions/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.Description != nil { - data.Set("Description", *params.Description) + data.Set("Description", *params.Description) } if params != nil && params.SinkSid != nil { - data.Set("SinkSid", *params.SinkSid) + data.Set("SinkSid", *params.SinkSid) } diff --git a/rest/events/v1/docs/DefaultApi.md b/rest/events/v1/docs/DefaultApi.md index 66a465226..cce3a2a96 100644 --- a/rest/events/v1/docs/DefaultApi.md +++ b/rest/events/v1/docs/DefaultApi.md @@ -47,9 +47,9 @@ Optional parameters are passed through a pointer to a CreateSinkOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **description** | **optional.String**| A human readable description for the Sink | - **sinkConfiguration** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The information required for Twilio to connect to the provided Sink encoded as JSON. | - **sinkType** | **optional.String**| The Sink type. Can only be \\\"kinesis\\\" currently. | + **Description** | **optional.String**| A human readable description for the Sink | + **SinkConfiguration** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The information required for Twilio to connect to the provided Sink encoded as JSON. | + **SinkType** | **optional.String**| The Sink type. Can only be \\\"kinesis\\\" currently. | ### Return type @@ -71,7 +71,7 @@ Name | Type | Description | Notes ## CreateSinkTest -> EventsV1SinkSinkTest CreateSinkTest(ctx, sid) +> EventsV1SinkSinkTest CreateSinkTest(ctx, Sid) @@ -83,7 +83,7 @@ Create a new Sink Test Event for the given Sink. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| A 34 character string that uniquely identifies the Sink to be Tested. | +**Sid** | **string**| A 34 character string that uniquely identifies the Sink to be Tested. | ### Return type @@ -105,7 +105,7 @@ Name | Type | Description | Notes ## CreateSinkValidate -> EventsV1SinkSinkValidate CreateSinkValidate(ctx, sid, optional) +> EventsV1SinkSinkValidate CreateSinkValidate(ctx, Sid, optional) @@ -117,7 +117,7 @@ Validate that a test event for a Sink was received. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| | +**Sid** | **string**| | **optional** | ***CreateSinkValidateOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -128,7 +128,7 @@ Optional parameters are passed through a pointer to a CreateSinkValidateOpts str Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **testId** | **optional.String**| A 34 character string that uniquely identifies the test event for a Sink being validated. | + **TestId** | **optional.String**| A 34 character string that uniquely identifies the test event for a Sink being validated. | ### Return type @@ -171,9 +171,9 @@ Optional parameters are passed through a pointer to a CreateSubscriptionOpts str Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **description** | **optional.String**| A human readable description for the Subscription | - **sinkSid** | **optional.String**| The SID of the sink that events selected by this subscription should be sent to. Sink must be active for the subscription to be created. | - **types** | [**optional.Interface of []map[string]interface{}**](map[string]interface{}.md)| Contains a dictionary of URL links to nested resources of this Subscription. | + **Description** | **optional.String**| A human readable description for the Subscription | + **SinkSid** | **optional.String**| The SID of the sink that events selected by this subscription should be sent to. Sink must be active for the subscription to be created. | + **Types** | [**optional.Interface of []map[string]interface{}**](map[string]interface{}.md)| Contains a dictionary of URL links to nested resources of this Subscription. | ### Return type @@ -195,7 +195,7 @@ Name | Type | Description | Notes ## DeleteSink -> DeleteSink(ctx, sid) +> DeleteSink(ctx, Sid) @@ -207,7 +207,7 @@ Delete a specific Sink. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| A 34 character string that uniquely identifies this Sink. | +**Sid** | **string**| A 34 character string that uniquely identifies this Sink. | ### Return type @@ -229,7 +229,7 @@ Name | Type | Description | Notes ## DeleteSubscription -> DeleteSubscription(ctx, sid) +> DeleteSubscription(ctx, Sid) @@ -241,7 +241,7 @@ Delete a specific Subscription. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| A 34 character string that uniquely identifies this Subscription. | +**Sid** | **string**| A 34 character string that uniquely identifies this Subscription. | ### Return type @@ -263,7 +263,7 @@ Name | Type | Description | Notes ## FetchEventType -> EventsV1EventType FetchEventType(ctx, type_) +> EventsV1EventType FetchEventType(ctx, Type) @@ -275,7 +275,7 @@ Fetch a specific Event Type. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**type_** | **string**| A string that uniquely identifies this Event Type. | +**Type** | **string**| A string that uniquely identifies this Event Type. | ### Return type @@ -297,7 +297,7 @@ Name | Type | Description | Notes ## FetchSchema -> EventsV1Schema FetchSchema(ctx, id) +> EventsV1Schema FetchSchema(ctx, Id) @@ -309,7 +309,7 @@ Fetch a specific schema with its nested versions. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string**| The unique identifier of the schema. Each schema can have multiple versions, that share the same id. | +**Id** | **string**| The unique identifier of the schema. Each schema can have multiple versions, that share the same id. | ### Return type @@ -331,7 +331,7 @@ Name | Type | Description | Notes ## FetchSink -> EventsV1Sink FetchSink(ctx, sid) +> EventsV1Sink FetchSink(ctx, Sid) @@ -343,7 +343,7 @@ Fetch a specific Sink. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| A 34 character string that uniquely identifies this Sink. | +**Sid** | **string**| A 34 character string that uniquely identifies this Sink. | ### Return type @@ -365,7 +365,7 @@ Name | Type | Description | Notes ## FetchSubscription -> EventsV1Subscription FetchSubscription(ctx, sid) +> EventsV1Subscription FetchSubscription(ctx, Sid) @@ -377,7 +377,7 @@ Fetch a specific Subscription. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| A 34 character string that uniquely identifies this Subscription. | +**Sid** | **string**| A 34 character string that uniquely identifies this Subscription. | ### Return type @@ -399,7 +399,7 @@ Name | Type | Description | Notes ## FetchVersion -> EventsV1SchemaVersion FetchVersion(ctx, id, schemaVersion) +> EventsV1SchemaVersion FetchVersion(ctx, Id, SchemaVersion) @@ -411,8 +411,8 @@ Fetch a specific schema and version. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string**| The unique identifier of the schema. Each schema can have multiple versions, that share the same id. | -**schemaVersion** | **int32**| The version of the schema | +**Id** | **string**| The unique identifier of the schema. Each schema can have multiple versions, that share the same id. | +**SchemaVersion** | **int32**| The version of the schema | ### Return type @@ -455,7 +455,7 @@ Optional parameters are passed through a pointer to a ListEventTypeOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -498,7 +498,7 @@ Optional parameters are passed through a pointer to a ListSinkOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -520,7 +520,7 @@ Name | Type | Description | Notes ## ListSubscribedEvent -> EventsV1SubscriptionSubscribedEventReadResponse ListSubscribedEvent(ctx, subscriptionSid, optional) +> EventsV1SubscriptionSubscribedEventReadResponse ListSubscribedEvent(ctx, SubscriptionSid, optional) @@ -532,7 +532,7 @@ Retrieve a list of all Subscribed Event types for a Subscription. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**subscriptionSid** | **string**| The unique SID identifier of the Subscription. | +**SubscriptionSid** | **string**| The unique SID identifier of the Subscription. | **optional** | ***ListSubscribedEventOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -543,7 +543,7 @@ Optional parameters are passed through a pointer to a ListSubscribedEventOpts st Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -586,8 +586,8 @@ Optional parameters are passed through a pointer to a ListSubscriptionOpts struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **sinkSid** | **optional.String**| The SID of the sink that the list of Subscriptions should be filtered by. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **SinkSid** | **optional.String**| The SID of the sink that the list of Subscriptions should be filtered by. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -609,7 +609,7 @@ Name | Type | Description | Notes ## ListVersion -> EventsV1SchemaVersionReadResponse ListVersion(ctx, id, optional) +> EventsV1SchemaVersionReadResponse ListVersion(ctx, Id, optional) @@ -621,7 +621,7 @@ Retrieve a paginated list of versions of the schema. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string**| The unique identifier of the schema. Each schema can have multiple versions, that share the same id. | +**Id** | **string**| The unique identifier of the schema. Each schema can have multiple versions, that share the same id. | **optional** | ***ListVersionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -632,7 +632,7 @@ Optional parameters are passed through a pointer to a ListVersionOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -654,7 +654,7 @@ Name | Type | Description | Notes ## UpdateSubscription -> EventsV1Subscription UpdateSubscription(ctx, sid, optional) +> EventsV1Subscription UpdateSubscription(ctx, Sid, optional) @@ -666,7 +666,7 @@ Update a Subscription. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| A 34 character string that uniquely identifies this Subscription. | +**Sid** | **string**| A 34 character string that uniquely identifies this Subscription. | **optional** | ***UpdateSubscriptionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -677,8 +677,8 @@ Optional parameters are passed through a pointer to a UpdateSubscriptionOpts str Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **description** | **optional.String**| A human readable description for the Subscription. | - **sinkSid** | **optional.String**| The SID of the sink that events selected by this subscription should be sent to. Sink must be active for the subscription to be created. | + **Description** | **optional.String**| A human readable description for the Subscription. | + **SinkSid** | **optional.String**| The SID of the sink that events selected by this subscription should be sent to. Sink must be active for the subscription to be created. | ### Return type diff --git a/rest/events/v1/model_events_v1_event_type.go b/rest/events/v1/model_events_v1_event_type.go index 1a16b6986..e133beaec 100644 --- a/rest/events/v1/model_events_v1_event_type.go +++ b/rest/events/v1/model_events_v1_event_type.go @@ -14,11 +14,11 @@ import ( ) // EventsV1EventType struct for EventsV1EventType type EventsV1EventType struct { - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Description string `json:"description,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - SchemaId string `json:"schema_id,omitempty"` - Type string `json:"type,omitempty"` - Url string `json:"url,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Description string `json:"Description,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + SchemaId string `json:"SchemaId,omitempty"` + Type string `json:"Type,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/events/v1/model_events_v1_event_type_read_response.go b/rest/events/v1/model_events_v1_event_type_read_response.go index 508821eeb..0bc9835c8 100644 --- a/rest/events/v1/model_events_v1_event_type_read_response.go +++ b/rest/events/v1/model_events_v1_event_type_read_response.go @@ -11,6 +11,6 @@ package openapi // EventsV1EventTypeReadResponse struct for EventsV1EventTypeReadResponse type EventsV1EventTypeReadResponse struct { - Meta EventsV1SchemaVersionReadResponseMeta `json:"meta,omitempty"` - Types []EventsV1EventType `json:"types,omitempty"` + Meta EventsV1SchemaVersionReadResponseMeta `json:"Meta,omitempty"` + Types []EventsV1EventType `json:"Types,omitempty"` } diff --git a/rest/events/v1/model_events_v1_schema.go b/rest/events/v1/model_events_v1_schema.go index f71c23f6c..82be0faec 100644 --- a/rest/events/v1/model_events_v1_schema.go +++ b/rest/events/v1/model_events_v1_schema.go @@ -14,9 +14,9 @@ import ( ) // EventsV1Schema struct for EventsV1Schema type EventsV1Schema struct { - Id string `json:"id,omitempty"` - LastCreated time.Time `json:"last_created,omitempty"` - LastVersion int32 `json:"last_version,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Url string `json:"url,omitempty"` + Id string `json:"Id,omitempty"` + LastCreated time.Time `json:"LastCreated,omitempty"` + LastVersion int32 `json:"LastVersion,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/events/v1/model_events_v1_schema_version.go b/rest/events/v1/model_events_v1_schema_version.go index f539631c3..655702dab 100644 --- a/rest/events/v1/model_events_v1_schema_version.go +++ b/rest/events/v1/model_events_v1_schema_version.go @@ -14,9 +14,9 @@ import ( ) // EventsV1SchemaVersion struct for EventsV1SchemaVersion type EventsV1SchemaVersion struct { - DateCreated time.Time `json:"date_created,omitempty"` - Id string `json:"id,omitempty"` - Raw string `json:"raw,omitempty"` - SchemaVersion int32 `json:"schema_version,omitempty"` - Url string `json:"url,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + Id string `json:"Id,omitempty"` + Raw string `json:"Raw,omitempty"` + SchemaVersion int32 `json:"SchemaVersion,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/events/v1/model_events_v1_schema_version_read_response.go b/rest/events/v1/model_events_v1_schema_version_read_response.go index 8db1df6d2..f3d5bddb8 100644 --- a/rest/events/v1/model_events_v1_schema_version_read_response.go +++ b/rest/events/v1/model_events_v1_schema_version_read_response.go @@ -11,6 +11,6 @@ package openapi // EventsV1SchemaVersionReadResponse struct for EventsV1SchemaVersionReadResponse type EventsV1SchemaVersionReadResponse struct { - Meta EventsV1SchemaVersionReadResponseMeta `json:"meta,omitempty"` - SchemaVersions []EventsV1SchemaVersion `json:"schema_versions,omitempty"` + Meta EventsV1SchemaVersionReadResponseMeta `json:"Meta,omitempty"` + SchemaVersions []EventsV1SchemaVersion `json:"SchemaVersions,omitempty"` } diff --git a/rest/events/v1/model_events_v1_schema_version_read_response_meta.go b/rest/events/v1/model_events_v1_schema_version_read_response_meta.go index 2cf7e5cc7..3936e36f7 100644 --- a/rest/events/v1/model_events_v1_schema_version_read_response_meta.go +++ b/rest/events/v1/model_events_v1_schema_version_read_response_meta.go @@ -11,11 +11,11 @@ package openapi // EventsV1SchemaVersionReadResponseMeta struct for EventsV1SchemaVersionReadResponseMeta type EventsV1SchemaVersionReadResponseMeta struct { - FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` - NextPageUrl string `json:"next_page_url,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUrl string `json:"previous_page_url,omitempty"` - Url string `json:"url,omitempty"` + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/events/v1/model_events_v1_sink.go b/rest/events/v1/model_events_v1_sink.go index 927839732..90c4c0eab 100644 --- a/rest/events/v1/model_events_v1_sink.go +++ b/rest/events/v1/model_events_v1_sink.go @@ -14,13 +14,13 @@ import ( ) // EventsV1Sink struct for EventsV1Sink type EventsV1Sink struct { - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Description string `json:"description,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Sid string `json:"sid,omitempty"` - SinkConfiguration map[string]interface{} `json:"sink_configuration,omitempty"` - SinkType string `json:"sink_type,omitempty"` - Status string `json:"status,omitempty"` - Url string `json:"url,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Description string `json:"Description,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Sid string `json:"Sid,omitempty"` + SinkConfiguration map[string]interface{} `json:"SinkConfiguration,omitempty"` + SinkType string `json:"SinkType,omitempty"` + Status string `json:"Status,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/events/v1/model_events_v1_sink_read_response.go b/rest/events/v1/model_events_v1_sink_read_response.go index 53d8940e6..b39527c2e 100644 --- a/rest/events/v1/model_events_v1_sink_read_response.go +++ b/rest/events/v1/model_events_v1_sink_read_response.go @@ -11,6 +11,6 @@ package openapi // EventsV1SinkReadResponse struct for EventsV1SinkReadResponse type EventsV1SinkReadResponse struct { - Meta EventsV1SchemaVersionReadResponseMeta `json:"meta,omitempty"` - Sinks []EventsV1Sink `json:"sinks,omitempty"` + Meta EventsV1SchemaVersionReadResponseMeta `json:"Meta,omitempty"` + Sinks []EventsV1Sink `json:"Sinks,omitempty"` } diff --git a/rest/events/v1/model_events_v1_sink_sink_test_.go b/rest/events/v1/model_events_v1_sink_sink_test_.go index f4e77481c..cb6950b84 100644 --- a/rest/events/v1/model_events_v1_sink_sink_test_.go +++ b/rest/events/v1/model_events_v1_sink_sink_test_.go @@ -11,5 +11,5 @@ package openapi // EventsV1SinkSinkTest struct for EventsV1SinkSinkTest type EventsV1SinkSinkTest struct { - Result string `json:"result,omitempty"` + Result string `json:"Result,omitempty"` } diff --git a/rest/events/v1/model_events_v1_sink_sink_validate.go b/rest/events/v1/model_events_v1_sink_sink_validate.go index 4032fe134..544e42bfc 100644 --- a/rest/events/v1/model_events_v1_sink_sink_validate.go +++ b/rest/events/v1/model_events_v1_sink_sink_validate.go @@ -11,5 +11,5 @@ package openapi // EventsV1SinkSinkValidate struct for EventsV1SinkSinkValidate type EventsV1SinkSinkValidate struct { - Result string `json:"result,omitempty"` + Result string `json:"Result,omitempty"` } diff --git a/rest/events/v1/model_events_v1_subscription.go b/rest/events/v1/model_events_v1_subscription.go index b722f64b3..23534c32d 100644 --- a/rest/events/v1/model_events_v1_subscription.go +++ b/rest/events/v1/model_events_v1_subscription.go @@ -14,12 +14,12 @@ import ( ) // EventsV1Subscription struct for EventsV1Subscription type EventsV1Subscription struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Description string `json:"description,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Sid string `json:"sid,omitempty"` - SinkSid string `json:"sink_sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Description string `json:"Description,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Sid string `json:"Sid,omitempty"` + SinkSid string `json:"SinkSid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/events/v1/model_events_v1_subscription_read_response.go b/rest/events/v1/model_events_v1_subscription_read_response.go index 7a9f80efd..d597425cf 100644 --- a/rest/events/v1/model_events_v1_subscription_read_response.go +++ b/rest/events/v1/model_events_v1_subscription_read_response.go @@ -11,6 +11,6 @@ package openapi // EventsV1SubscriptionReadResponse struct for EventsV1SubscriptionReadResponse type EventsV1SubscriptionReadResponse struct { - Meta EventsV1SchemaVersionReadResponseMeta `json:"meta,omitempty"` - Subscriptions []EventsV1Subscription `json:"subscriptions,omitempty"` + Meta EventsV1SchemaVersionReadResponseMeta `json:"Meta,omitempty"` + Subscriptions []EventsV1Subscription `json:"Subscriptions,omitempty"` } diff --git a/rest/events/v1/model_events_v1_subscription_subscribed_event.go b/rest/events/v1/model_events_v1_subscription_subscribed_event.go index 520d6e2fa..c026fd444 100644 --- a/rest/events/v1/model_events_v1_subscription_subscribed_event.go +++ b/rest/events/v1/model_events_v1_subscription_subscribed_event.go @@ -11,9 +11,9 @@ package openapi // EventsV1SubscriptionSubscribedEvent struct for EventsV1SubscriptionSubscribedEvent type EventsV1SubscriptionSubscribedEvent struct { - AccountSid string `json:"account_sid,omitempty"` - SubscriptionSid string `json:"subscription_sid,omitempty"` - Type string `json:"type,omitempty"` - Url string `json:"url,omitempty"` - Version int32 `json:"version,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + SubscriptionSid string `json:"SubscriptionSid,omitempty"` + Type string `json:"Type,omitempty"` + Url string `json:"Url,omitempty"` + Version int32 `json:"Version,omitempty"` } diff --git a/rest/events/v1/model_events_v1_subscription_subscribed_event_read_response.go b/rest/events/v1/model_events_v1_subscription_subscribed_event_read_response.go index 68f27f0d3..3d798cbfe 100644 --- a/rest/events/v1/model_events_v1_subscription_subscribed_event_read_response.go +++ b/rest/events/v1/model_events_v1_subscription_subscribed_event_read_response.go @@ -11,6 +11,6 @@ package openapi // EventsV1SubscriptionSubscribedEventReadResponse struct for EventsV1SubscriptionSubscribedEventReadResponse type EventsV1SubscriptionSubscribedEventReadResponse struct { - Meta EventsV1SchemaVersionReadResponseMeta `json:"meta,omitempty"` - Types []EventsV1SubscriptionSubscribedEvent `json:"types,omitempty"` + Meta EventsV1SchemaVersionReadResponseMeta `json:"Meta,omitempty"` + Types []EventsV1SubscriptionSubscribedEvent `json:"Types,omitempty"` } diff --git a/rest/fax/v1/api_default.go b/rest/fax/v1/api_default.go index 54260279b..635b16ee9 100644 --- a/rest/fax/v1/api_default.go +++ b/rest/fax/v1/api_default.go @@ -15,6 +15,8 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" + "time" ) type DefaultApiService struct { @@ -59,35 +61,36 @@ Create a new fax to send to a phone number or SIP endpoint. func (c *DefaultApiService) CreateFax(params *CreateFaxParams) (*FaxV1Fax, error) { path := "/v1/Faxes" + data := url.Values{} headers := 0 if params != nil && params.From != nil { - data.Set("From", *params.From) + data.Set("From", *params.From) } if params != nil && params.MediaUrl != nil { - data.Set("MediaUrl", *params.MediaUrl) + data.Set("MediaUrl", *params.MediaUrl) } if params != nil && params.Quality != nil { - data.Set("Quality", *params.Quality) + data.Set("Quality", *params.Quality) } if params != nil && params.SipAuthPassword != nil { - data.Set("SipAuthPassword", *params.SipAuthPassword) + data.Set("SipAuthPassword", *params.SipAuthPassword) } if params != nil && params.SipAuthUsername != nil { - data.Set("SipAuthUsername", *params.SipAuthUsername) + data.Set("SipAuthUsername", *params.SipAuthUsername) } if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) + data.Set("StatusCallback", *params.StatusCallback) } if params != nil && params.StoreMedia != nil { - data.Set("StoreMedia", string(*params.StoreMedia)) + data.Set("StoreMedia", fmt.Sprint(*params.StoreMedia)) } if params != nil && params.To != nil { - data.Set("To", *params.To) + data.Set("To", *params.To) } if params != nil && params.Ttl != nil { - data.Set("Ttl", string(*params.Ttl)) + data.Set("Ttl", fmt.Sprint(*params.Ttl)) } @@ -109,13 +112,14 @@ func (c *DefaultApiService) CreateFax(params *CreateFaxParams) (*FaxV1Fax, error /* DeleteFax Method for DeleteFax Delete a specific fax and its associated media. - * @param sid The Twilio-provided string that uniquely identifies the Fax resource to delete. + * @param Sid The Twilio-provided string that uniquely identifies the Fax resource to delete. */ -func (c *DefaultApiService) DeleteFax(sid string) (error) { +func (c *DefaultApiService) DeleteFax(Sid string) (error) { path := "/v1/Faxes/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -133,15 +137,16 @@ func (c *DefaultApiService) DeleteFax(sid string) (error) { /* DeleteFaxMedia Method for DeleteFaxMedia Delete a specific fax media instance. - * @param faxSid The SID of the fax with the FaxMedia resource to delete. - * @param sid The Twilio-provided string that uniquely identifies the FaxMedia resource to delete. + * @param FaxSid The SID of the fax with the FaxMedia resource to delete. + * @param Sid The Twilio-provided string that uniquely identifies the FaxMedia resource to delete. */ -func (c *DefaultApiService) DeleteFaxMedia(faxSid string, sid string) (error) { +func (c *DefaultApiService) DeleteFaxMedia(FaxSid string, Sid string) (error) { path := "/v1/Faxes/{FaxSid}/Media/{Sid}" - path = strings.Replace(path, "{"+"FaxSid"+"}", faxSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"FaxSid"+"}", FaxSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -159,14 +164,15 @@ func (c *DefaultApiService) DeleteFaxMedia(faxSid string, sid string) (error) { /* FetchFax Method for FetchFax Fetch a specific fax. - * @param sid The Twilio-provided string that uniquely identifies the Fax resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the Fax resource to fetch. @return FaxV1Fax */ -func (c *DefaultApiService) FetchFax(sid string) (*FaxV1Fax, error) { +func (c *DefaultApiService) FetchFax(Sid string) (*FaxV1Fax, error) { path := "/v1/Faxes/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -189,16 +195,17 @@ func (c *DefaultApiService) FetchFax(sid string) (*FaxV1Fax, error) { /* FetchFaxMedia Method for FetchFaxMedia Fetch a specific fax media instance. - * @param faxSid The SID of the fax with the FaxMedia resource to fetch. - * @param sid The Twilio-provided string that uniquely identifies the FaxMedia resource to fetch. + * @param FaxSid The SID of the fax with the FaxMedia resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the FaxMedia resource to fetch. @return FaxV1FaxFaxMedia */ -func (c *DefaultApiService) FetchFaxMedia(faxSid string, sid string) (*FaxV1FaxFaxMedia, error) { +func (c *DefaultApiService) FetchFaxMedia(FaxSid string, Sid string) (*FaxV1FaxFaxMedia, error) { path := "/v1/Faxes/{FaxSid}/Media/{Sid}" - path = strings.Replace(path, "{"+"FaxSid"+"}", faxSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"FaxSid"+"}", FaxSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -240,23 +247,24 @@ Retrieve a list of all faxes. func (c *DefaultApiService) ListFax(params *ListFaxParams) (*FaxV1FaxReadResponse, error) { path := "/v1/Faxes" + data := url.Values{} headers := 0 if params != nil && params.From != nil { - data.Set("From", *params.From) + data.Set("From", *params.From) } if params != nil && params.To != nil { - data.Set("To", *params.To) + data.Set("To", *params.To) } if params != nil && params.DateCreatedOnOrBefore != nil { - data.Set("DateCreatedOnOrBefore", string(*params.DateCreatedOnOrBefore)) + data.Set("DateCreatedOnOrBefore", fmt.Sprint(*params.DateCreatedOnOrBefore)) } if params != nil && params.DateCreatedAfter != nil { - data.Set("DateCreatedAfter", string(*params.DateCreatedAfter)) + data.Set("DateCreatedAfter", fmt.Sprint(*params.DateCreatedAfter)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -282,20 +290,21 @@ type ListFaxMediaParams struct { /* ListFaxMedia Method for ListFaxMedia Retrieve a list of all fax media instances for the specified fax. - * @param faxSid The SID of the fax with the FaxMedia resources to read. + * @param FaxSid The SID of the fax with the FaxMedia resources to read. * @param optional nil or *ListFaxMediaOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return FaxV1FaxFaxMediaReadResponse */ -func (c *DefaultApiService) ListFaxMedia(faxSid string, params *ListFaxMediaParams) (*FaxV1FaxFaxMediaReadResponse, error) { +func (c *DefaultApiService) ListFaxMedia(FaxSid string, params *ListFaxMediaParams) (*FaxV1FaxFaxMediaReadResponse, error) { path := "/v1/Faxes/{FaxSid}/Media" - path = strings.Replace(path, "{"+"FaxSid"+"}", faxSid, -1) + path = strings.Replace(path, "{"+"FaxSid"+"}", FaxSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -321,20 +330,21 @@ type UpdateFaxParams struct { /* UpdateFax Method for UpdateFax Update a specific fax. - * @param sid The Twilio-provided string that uniquely identifies the Fax resource to update. + * @param Sid The Twilio-provided string that uniquely identifies the Fax resource to update. * @param optional nil or *UpdateFaxOpts - Optional Parameters: * @param "Status" (string) - The new [status](https://www.twilio.com/docs/fax/api/fax-resource#fax-status-values) of the resource. Can be only `canceled`. This may fail if transmission has already started. @return FaxV1Fax */ -func (c *DefaultApiService) UpdateFax(sid string, params *UpdateFaxParams) (*FaxV1Fax, error) { +func (c *DefaultApiService) UpdateFax(Sid string, params *UpdateFaxParams) (*FaxV1Fax, error) { path := "/v1/Faxes/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } diff --git a/rest/fax/v1/docs/DefaultApi.md b/rest/fax/v1/docs/DefaultApi.md index c78454193..6c3052d03 100644 --- a/rest/fax/v1/docs/DefaultApi.md +++ b/rest/fax/v1/docs/DefaultApi.md @@ -38,15 +38,15 @@ Optional parameters are passed through a pointer to a CreateFaxOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **from** | **optional.String**| The number the fax was sent from. Can be the phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format or the SIP `from` value. The caller ID displayed to the recipient uses this value. If this is a phone number, it must be a Twilio number or a verified outgoing caller id from your account. If `to` is a SIP address, this can be any alphanumeric string (and also the characters `+`, `_`, `.`, and `-`), which will be used in the `from` header of the SIP request. | - **mediaUrl** | **optional.String**| The URL of the PDF that contains the fax. See our [security](https://www.twilio.com/docs/usage/security) page for information on how to ensure the request for your media comes from Twilio. | - **quality** | **optional.String**| The [Fax Quality value](https://www.twilio.com/docs/fax/api/fax-resource#fax-quality-values) that describes the fax quality. Can be: `standard`, `fine`, or `superfine` and defaults to `fine`. | - **sipAuthPassword** | **optional.String**| The password to use with `sip_auth_username` to authenticate faxes sent to a SIP address. | - **sipAuthUsername** | **optional.String**| The username to use with the `sip_auth_password` to authenticate faxes sent to a SIP address. | - **statusCallback** | **optional.String**| The URL we should call using the `POST` method to send [status information](https://www.twilio.com/docs/fax/api/fax-resource#fax-status-callback) to your application when the status of the fax changes. | - **storeMedia** | **optional.Bool**| Whether to store a copy of the sent media on our servers for later retrieval. Can be: `true` or `false` and the default is `true`. | - **to** | **optional.String**| The phone number to receive the fax in [E.164](https://www.twilio.com/docs/glossary/what-e164) format or the recipient's SIP URI. | - **ttl** | **optional.Int32**| How long in minutes from when the fax is initiated that we should try to send the fax. | + **From** | **optional.String**| The number the fax was sent from. Can be the phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format or the SIP `from` value. The caller ID displayed to the recipient uses this value. If this is a phone number, it must be a Twilio number or a verified outgoing caller id from your account. If `to` is a SIP address, this can be any alphanumeric string (and also the characters `+`, `_`, `.`, and `-`), which will be used in the `from` header of the SIP request. | + **MediaUrl** | **optional.String**| The URL of the PDF that contains the fax. See our [security](https://www.twilio.com/docs/usage/security) page for information on how to ensure the request for your media comes from Twilio. | + **Quality** | **optional.String**| The [Fax Quality value](https://www.twilio.com/docs/fax/api/fax-resource#fax-quality-values) that describes the fax quality. Can be: `standard`, `fine`, or `superfine` and defaults to `fine`. | + **SipAuthPassword** | **optional.String**| The password to use with `sip_auth_username` to authenticate faxes sent to a SIP address. | + **SipAuthUsername** | **optional.String**| The username to use with the `sip_auth_password` to authenticate faxes sent to a SIP address. | + **StatusCallback** | **optional.String**| The URL we should call using the `POST` method to send [status information](https://www.twilio.com/docs/fax/api/fax-resource#fax-status-callback) to your application when the status of the fax changes. | + **StoreMedia** | **optional.Bool**| Whether to store a copy of the sent media on our servers for later retrieval. Can be: `true` or `false` and the default is `true`. | + **To** | **optional.String**| The phone number to receive the fax in [E.164](https://www.twilio.com/docs/glossary/what-e164) format or the recipient's SIP URI. | + **Ttl** | **optional.Int32**| How long in minutes from when the fax is initiated that we should try to send the fax. | ### Return type @@ -68,7 +68,7 @@ Name | Type | Description | Notes ## DeleteFax -> DeleteFax(ctx, sid) +> DeleteFax(ctx, Sid) @@ -80,7 +80,7 @@ Delete a specific fax and its associated media. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the Fax resource to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Fax resource to delete. | ### Return type @@ -102,7 +102,7 @@ Name | Type | Description | Notes ## DeleteFaxMedia -> DeleteFaxMedia(ctx, faxSid, sid) +> DeleteFaxMedia(ctx, FaxSid, Sid) @@ -114,8 +114,8 @@ Delete a specific fax media instance. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**faxSid** | **string**| The SID of the fax with the FaxMedia resource to delete. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the FaxMedia resource to delete. | +**FaxSid** | **string**| The SID of the fax with the FaxMedia resource to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the FaxMedia resource to delete. | ### Return type @@ -137,7 +137,7 @@ Name | Type | Description | Notes ## FetchFax -> FaxV1Fax FetchFax(ctx, sid) +> FaxV1Fax FetchFax(ctx, Sid) @@ -149,7 +149,7 @@ Fetch a specific fax. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the Fax resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Fax resource to fetch. | ### Return type @@ -171,7 +171,7 @@ Name | Type | Description | Notes ## FetchFaxMedia -> FaxV1FaxFaxMedia FetchFaxMedia(ctx, faxSid, sid) +> FaxV1FaxFaxMedia FetchFaxMedia(ctx, FaxSid, Sid) @@ -183,8 +183,8 @@ Fetch a specific fax media instance. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**faxSid** | **string**| The SID of the fax with the FaxMedia resource to fetch. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the FaxMedia resource to fetch. | +**FaxSid** | **string**| The SID of the fax with the FaxMedia resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the FaxMedia resource to fetch. | ### Return type @@ -227,11 +227,11 @@ Optional parameters are passed through a pointer to a ListFaxOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **from** | **optional.String**| Retrieve only those faxes sent from this phone number, specified in [E.164](https://www.twilio.com/docs/glossary/what-e164) format. | - **to** | **optional.String**| Retrieve only those faxes sent to this phone number, specified in [E.164](https://www.twilio.com/docs/glossary/what-e164) format. | - **dateCreatedOnOrBefore** | **optional.Time**| Retrieve only those faxes with a `date_created` that is before or equal to this value, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | - **dateCreatedAfter** | **optional.Time**| Retrieve only those faxes with a `date_created` that is later than this value, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **From** | **optional.String**| Retrieve only those faxes sent from this phone number, specified in [E.164](https://www.twilio.com/docs/glossary/what-e164) format. | + **To** | **optional.String**| Retrieve only those faxes sent to this phone number, specified in [E.164](https://www.twilio.com/docs/glossary/what-e164) format. | + **DateCreatedOnOrBefore** | **optional.Time**| Retrieve only those faxes with a `date_created` that is before or equal to this value, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | + **DateCreatedAfter** | **optional.Time**| Retrieve only those faxes with a `date_created` that is later than this value, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -253,7 +253,7 @@ Name | Type | Description | Notes ## ListFaxMedia -> FaxV1FaxFaxMediaReadResponse ListFaxMedia(ctx, faxSid, optional) +> FaxV1FaxFaxMediaReadResponse ListFaxMedia(ctx, FaxSid, optional) @@ -265,7 +265,7 @@ Retrieve a list of all fax media instances for the specified fax. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**faxSid** | **string**| The SID of the fax with the FaxMedia resources to read. | +**FaxSid** | **string**| The SID of the fax with the FaxMedia resources to read. | **optional** | ***ListFaxMediaOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -276,7 +276,7 @@ Optional parameters are passed through a pointer to a ListFaxMediaOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -298,7 +298,7 @@ Name | Type | Description | Notes ## UpdateFax -> FaxV1Fax UpdateFax(ctx, sid, optional) +> FaxV1Fax UpdateFax(ctx, Sid, optional) @@ -310,7 +310,7 @@ Update a specific fax. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the Fax resource to update. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Fax resource to update. | **optional** | ***UpdateFaxOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -321,7 +321,7 @@ Optional parameters are passed through a pointer to a UpdateFaxOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | **optional.String**| The new [status](https://www.twilio.com/docs/fax/api/fax-resource#fax-status-values) of the resource. Can be only `canceled`. This may fail if transmission has already started. | + **Status** | **optional.String**| The new [status](https://www.twilio.com/docs/fax/api/fax-resource#fax-status-values) of the resource. Can be only `canceled`. This may fail if transmission has already started. | ### Return type diff --git a/rest/fax/v1/model_fax_v1_fax.go b/rest/fax/v1/model_fax_v1_fax.go index f4e6811c9..adc516c95 100644 --- a/rest/fax/v1/model_fax_v1_fax.go +++ b/rest/fax/v1/model_fax_v1_fax.go @@ -14,22 +14,22 @@ import ( ) // FaxV1Fax struct for FaxV1Fax type FaxV1Fax struct { - AccountSid string `json:"account_sid,omitempty"` - ApiVersion string `json:"api_version,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Direction string `json:"direction,omitempty"` - Duration *int32 `json:"duration,omitempty"` - From string `json:"from,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - MediaSid string `json:"media_sid,omitempty"` - MediaUrl string `json:"media_url,omitempty"` - NumPages *int32 `json:"num_pages,omitempty"` - Price float32 `json:"price,omitempty"` - PriceUnit string `json:"price_unit,omitempty"` - Quality string `json:"quality,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - To string `json:"to,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ApiVersion string `json:"ApiVersion,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Direction string `json:"Direction,omitempty"` + Duration *int32 `json:"Duration,omitempty"` + From string `json:"From,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + MediaSid string `json:"MediaSid,omitempty"` + MediaUrl string `json:"MediaUrl,omitempty"` + NumPages *int32 `json:"NumPages,omitempty"` + Price float32 `json:"Price,omitempty"` + PriceUnit string `json:"PriceUnit,omitempty"` + Quality string `json:"Quality,omitempty"` + Sid string `json:"Sid,omitempty"` + Status string `json:"Status,omitempty"` + To string `json:"To,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/fax/v1/model_fax_v1_fax_fax_media.go b/rest/fax/v1/model_fax_v1_fax_fax_media.go index 18c056811..241172eff 100644 --- a/rest/fax/v1/model_fax_v1_fax_fax_media.go +++ b/rest/fax/v1/model_fax_v1_fax_fax_media.go @@ -14,11 +14,11 @@ import ( ) // FaxV1FaxFaxMedia struct for FaxV1FaxFaxMedia type FaxV1FaxFaxMedia struct { - AccountSid string `json:"account_sid,omitempty"` - ContentType string `json:"content_type,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FaxSid string `json:"fax_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ContentType string `json:"ContentType,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FaxSid string `json:"FaxSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/fax/v1/model_fax_v1_fax_fax_media_read_response.go b/rest/fax/v1/model_fax_v1_fax_fax_media_read_response.go index d5a246f21..2d552ea7c 100644 --- a/rest/fax/v1/model_fax_v1_fax_fax_media_read_response.go +++ b/rest/fax/v1/model_fax_v1_fax_fax_media_read_response.go @@ -11,6 +11,6 @@ package openapi // FaxV1FaxFaxMediaReadResponse struct for FaxV1FaxFaxMediaReadResponse type FaxV1FaxFaxMediaReadResponse struct { - Media []FaxV1FaxFaxMedia `json:"media,omitempty"` - Meta FaxV1FaxReadResponseMeta `json:"meta,omitempty"` + Media []FaxV1FaxFaxMedia `json:"Media,omitempty"` + Meta FaxV1FaxReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/fax/v1/model_fax_v1_fax_read_response.go b/rest/fax/v1/model_fax_v1_fax_read_response.go index cb386af54..4dda965ba 100644 --- a/rest/fax/v1/model_fax_v1_fax_read_response.go +++ b/rest/fax/v1/model_fax_v1_fax_read_response.go @@ -11,6 +11,6 @@ package openapi // FaxV1FaxReadResponse struct for FaxV1FaxReadResponse type FaxV1FaxReadResponse struct { - Faxes []FaxV1Fax `json:"faxes,omitempty"` - Meta FaxV1FaxReadResponseMeta `json:"meta,omitempty"` + Faxes []FaxV1Fax `json:"Faxes,omitempty"` + Meta FaxV1FaxReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/fax/v1/model_fax_v1_fax_read_response_meta.go b/rest/fax/v1/model_fax_v1_fax_read_response_meta.go index f5bb3f96f..5c9551412 100644 --- a/rest/fax/v1/model_fax_v1_fax_read_response_meta.go +++ b/rest/fax/v1/model_fax_v1_fax_read_response_meta.go @@ -11,11 +11,11 @@ package openapi // FaxV1FaxReadResponseMeta struct for FaxV1FaxReadResponseMeta type FaxV1FaxReadResponseMeta struct { - FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` - NextPageUrl string `json:"next_page_url,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUrl string `json:"previous_page_url,omitempty"` - Url string `json:"url,omitempty"` + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/flex/v1/api_default.go b/rest/flex/v1/api_default.go index 388d7bce6..b05b21bfa 100644 --- a/rest/flex/v1/api_default.go +++ b/rest/flex/v1/api_default.go @@ -15,6 +15,7 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" ) type DefaultApiService struct { @@ -60,38 +61,39 @@ CreateChannel Method for CreateChannel func (c *DefaultApiService) CreateChannel(params *CreateChannelParams) (*FlexV1Channel, error) { path := "/v1/Channels" + data := url.Values{} headers := 0 if params != nil && params.ChatFriendlyName != nil { - data.Set("ChatFriendlyName", *params.ChatFriendlyName) + data.Set("ChatFriendlyName", *params.ChatFriendlyName) } if params != nil && params.ChatUniqueName != nil { - data.Set("ChatUniqueName", *params.ChatUniqueName) + data.Set("ChatUniqueName", *params.ChatUniqueName) } if params != nil && params.ChatUserFriendlyName != nil { - data.Set("ChatUserFriendlyName", *params.ChatUserFriendlyName) + data.Set("ChatUserFriendlyName", *params.ChatUserFriendlyName) } if params != nil && params.FlexFlowSid != nil { - data.Set("FlexFlowSid", *params.FlexFlowSid) + data.Set("FlexFlowSid", *params.FlexFlowSid) } if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) + data.Set("Identity", *params.Identity) } if params != nil && params.LongLived != nil { - data.Set("LongLived", string(*params.LongLived)) + data.Set("LongLived", fmt.Sprint(*params.LongLived)) } if params != nil && params.PreEngagementData != nil { - data.Set("PreEngagementData", *params.PreEngagementData) + data.Set("PreEngagementData", *params.PreEngagementData) } if params != nil && params.Target != nil { - data.Set("Target", *params.Target) + data.Set("Target", *params.Target) } if params != nil && params.TaskAttributes != nil { - data.Set("TaskAttributes", *params.TaskAttributes) + data.Set("TaskAttributes", *params.TaskAttributes) } if params != nil && params.TaskSid != nil { - data.Set("TaskSid", *params.TaskSid) + data.Set("TaskSid", *params.TaskSid) } @@ -116,15 +118,15 @@ type CreateFlexFlowParams struct { ContactIdentity *string `json:"ContactIdentity,omitempty"` Enabled *bool `json:"Enabled,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` - Integration.Channel *string `json:"Integration.Channel,omitempty"` - Integration.CreationOnMessage *bool `json:"Integration.CreationOnMessage,omitempty"` - Integration.FlowSid *string `json:"Integration.FlowSid,omitempty"` - Integration.Priority *int32 `json:"Integration.Priority,omitempty"` - Integration.RetryCount *int32 `json:"Integration.RetryCount,omitempty"` - Integration.Timeout *int32 `json:"Integration.Timeout,omitempty"` - Integration.Url *string `json:"Integration.Url,omitempty"` - Integration.WorkflowSid *string `json:"Integration.WorkflowSid,omitempty"` - Integration.WorkspaceSid *string `json:"Integration.WorkspaceSid,omitempty"` + IntegrationChannel *string `json:"IntegrationChannel,omitempty"` + IntegrationCreationOnMessage *bool `json:"IntegrationCreationOnMessage,omitempty"` + IntegrationFlowSid *string `json:"IntegrationFlowSid,omitempty"` + IntegrationPriority *int32 `json:"IntegrationPriority,omitempty"` + IntegrationRetryCount *int32 `json:"IntegrationRetryCount,omitempty"` + IntegrationTimeout *int32 `json:"IntegrationTimeout,omitempty"` + IntegrationUrl *string `json:"IntegrationUrl,omitempty"` + IntegrationWorkflowSid *string `json:"IntegrationWorkflowSid,omitempty"` + IntegrationWorkspaceSid *string `json:"IntegrationWorkspaceSid,omitempty"` IntegrationType *string `json:"IntegrationType,omitempty"` JanitorEnabled *bool `json:"JanitorEnabled,omitempty"` LongLived *bool `json:"LongLived,omitempty"` @@ -138,15 +140,15 @@ CreateFlexFlow Method for CreateFlexFlow * @param "ContactIdentity" (string) - The channel contact's Identity. * @param "Enabled" (bool) - Whether the new Flex Flow is enabled. * @param "FriendlyName" (string) - A descriptive string that you create to describe the Flex Flow resource. - * @param "Integration.Channel" (string) - The Task Channel for the TaskRouter Task that will be created. Applicable and required when integrationType is `task`. Set to `sms` for SMS, and to `chat` otherwise. The default value is `default` - * @param "Integration.CreationOnMessage" (bool) - In the context of outbound messaging, defines whether to create a Task immediately (and therefore reserve the conversation to current agent), or delay Task creation until the customer sends the first response. Set to false to create immediately, true to delay Task creation. This setting is only applicable for outbound messaging. - * @param "Integration.FlowSid" (string) - The SID of the Studio Flow. Required when `integrationType` is `studio`. - * @param "Integration.Priority" (int32) - The Task priority of a new Task. The default priority is 0. Optional when `integrationType` is `task`, not applicable otherwise. - * @param "Integration.RetryCount" (int32) - The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3 (included), default is 0. Optional when integrationType is `external`, not applicable otherwise. - * @param "Integration.Timeout" (int32) - The Task timeout in seconds for a new Task. Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`, not applicable otherwise. - * @param "Integration.Url" (string) - The URL of the external webhook. Required when `integrationType` is `external`. - * @param "Integration.WorkflowSid" (string) - The Workflow SID for a new Task. Required when `integrationType` is `task`. - * @param "Integration.WorkspaceSid" (string) - The Workspace SID for a new Task. Required when `integrationType` is `task`. + * @param "IntegrationChannel" (string) - The Task Channel for the TaskRouter Task that will be created. Applicable and required when integrationType is `task`. Set to `sms` for SMS, and to `chat` otherwise. The default value is `default` + * @param "IntegrationCreationOnMessage" (bool) - In the context of outbound messaging, defines whether to create a Task immediately (and therefore reserve the conversation to current agent), or delay Task creation until the customer sends the first response. Set to false to create immediately, true to delay Task creation. This setting is only applicable for outbound messaging. + * @param "IntegrationFlowSid" (string) - The SID of the Studio Flow. Required when `integrationType` is `studio`. + * @param "IntegrationPriority" (int32) - The Task priority of a new Task. The default priority is 0. Optional when `integrationType` is `task`, not applicable otherwise. + * @param "IntegrationRetryCount" (int32) - The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3 (included), default is 0. Optional when integrationType is `external`, not applicable otherwise. + * @param "IntegrationTimeout" (int32) - The Task timeout in seconds for a new Task. Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`, not applicable otherwise. + * @param "IntegrationUrl" (string) - The URL of the external webhook. Required when `integrationType` is `external`. + * @param "IntegrationWorkflowSid" (string) - The Workflow SID for a new Task. Required when `integrationType` is `task`. + * @param "IntegrationWorkspaceSid" (string) - The Workspace SID for a new Task. Required when `integrationType` is `task`. * @param "IntegrationType" (string) - The integration type. Can be: `studio`, `external`, or `task`. * @param "JanitorEnabled" (bool) - When enabled, the Messaging Channel Janitor will remove active Proxy sessions if the associated Task is deleted outside of the Flex UI. Defaults to `false`. * @param "LongLived" (bool) - When enabled, Flex will keep the chat channel active so that it may be used for subsequent interactions with a contact identity. Defaults to `false`. @@ -155,59 +157,60 @@ CreateFlexFlow Method for CreateFlexFlow func (c *DefaultApiService) CreateFlexFlow(params *CreateFlexFlowParams) (*FlexV1FlexFlow, error) { path := "/v1/FlexFlows" + data := url.Values{} headers := 0 if params != nil && params.ChannelType != nil { - data.Set("ChannelType", *params.ChannelType) + data.Set("ChannelType", *params.ChannelType) } if params != nil && params.ChatServiceSid != nil { - data.Set("ChatServiceSid", *params.ChatServiceSid) + data.Set("ChatServiceSid", *params.ChatServiceSid) } if params != nil && params.ContactIdentity != nil { - data.Set("ContactIdentity", *params.ContactIdentity) + data.Set("ContactIdentity", *params.ContactIdentity) } if params != nil && params.Enabled != nil { - data.Set("Enabled", string(*params.Enabled)) + data.Set("Enabled", fmt.Sprint(*params.Enabled)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } - if params != nil && params.Integration.Channel != nil { - data.Set("Integration.Channel", *params.Integration.Channel) + if params != nil && params.IntegrationChannel != nil { + data.Set("IntegrationChannel", *params.IntegrationChannel) } - if params != nil && params.Integration.CreationOnMessage != nil { - data.Set("Integration.CreationOnMessage", string(*params.Integration.CreationOnMessage)) + if params != nil && params.IntegrationCreationOnMessage != nil { + data.Set("IntegrationCreationOnMessage", fmt.Sprint(*params.IntegrationCreationOnMessage)) } - if params != nil && params.Integration.FlowSid != nil { - data.Set("Integration.FlowSid", *params.Integration.FlowSid) + if params != nil && params.IntegrationFlowSid != nil { + data.Set("IntegrationFlowSid", *params.IntegrationFlowSid) } - if params != nil && params.Integration.Priority != nil { - data.Set("Integration.Priority", string(*params.Integration.Priority)) + if params != nil && params.IntegrationPriority != nil { + data.Set("IntegrationPriority", fmt.Sprint(*params.IntegrationPriority)) } - if params != nil && params.Integration.RetryCount != nil { - data.Set("Integration.RetryCount", string(*params.Integration.RetryCount)) + if params != nil && params.IntegrationRetryCount != nil { + data.Set("IntegrationRetryCount", fmt.Sprint(*params.IntegrationRetryCount)) } - if params != nil && params.Integration.Timeout != nil { - data.Set("Integration.Timeout", string(*params.Integration.Timeout)) + if params != nil && params.IntegrationTimeout != nil { + data.Set("IntegrationTimeout", fmt.Sprint(*params.IntegrationTimeout)) } - if params != nil && params.Integration.Url != nil { - data.Set("Integration.Url", *params.Integration.Url) + if params != nil && params.IntegrationUrl != nil { + data.Set("IntegrationUrl", *params.IntegrationUrl) } - if params != nil && params.Integration.WorkflowSid != nil { - data.Set("Integration.WorkflowSid", *params.Integration.WorkflowSid) + if params != nil && params.IntegrationWorkflowSid != nil { + data.Set("IntegrationWorkflowSid", *params.IntegrationWorkflowSid) } - if params != nil && params.Integration.WorkspaceSid != nil { - data.Set("Integration.WorkspaceSid", *params.Integration.WorkspaceSid) + if params != nil && params.IntegrationWorkspaceSid != nil { + data.Set("IntegrationWorkspaceSid", *params.IntegrationWorkspaceSid) } if params != nil && params.IntegrationType != nil { - data.Set("IntegrationType", *params.IntegrationType) + data.Set("IntegrationType", *params.IntegrationType) } if params != nil && params.JanitorEnabled != nil { - data.Set("JanitorEnabled", string(*params.JanitorEnabled)) + data.Set("JanitorEnabled", fmt.Sprint(*params.JanitorEnabled)) } if params != nil && params.LongLived != nil { - data.Set("LongLived", string(*params.LongLived)) + data.Set("LongLived", fmt.Sprint(*params.LongLived)) } @@ -249,26 +252,27 @@ CreateWebChannel Method for CreateWebChannel func (c *DefaultApiService) CreateWebChannel(params *CreateWebChannelParams) (*FlexV1WebChannel, error) { path := "/v1/WebChannels" + data := url.Values{} headers := 0 if params != nil && params.ChatFriendlyName != nil { - data.Set("ChatFriendlyName", *params.ChatFriendlyName) + data.Set("ChatFriendlyName", *params.ChatFriendlyName) } if params != nil && params.ChatUniqueName != nil { - data.Set("ChatUniqueName", *params.ChatUniqueName) + data.Set("ChatUniqueName", *params.ChatUniqueName) } if params != nil && params.CustomerFriendlyName != nil { - data.Set("CustomerFriendlyName", *params.CustomerFriendlyName) + data.Set("CustomerFriendlyName", *params.CustomerFriendlyName) } if params != nil && params.FlexFlowSid != nil { - data.Set("FlexFlowSid", *params.FlexFlowSid) + data.Set("FlexFlowSid", *params.FlexFlowSid) } if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) + data.Set("Identity", *params.Identity) } if params != nil && params.PreEngagementData != nil { - data.Set("PreEngagementData", *params.PreEngagementData) + data.Set("PreEngagementData", *params.PreEngagementData) } @@ -289,13 +293,14 @@ func (c *DefaultApiService) CreateWebChannel(params *CreateWebChannelParams) (*F /* DeleteChannel Method for DeleteChannel - * @param sid The SID of the Flex chat channel resource to delete. + * @param Sid The SID of the Flex chat channel resource to delete. */ -func (c *DefaultApiService) DeleteChannel(sid string) (error) { +func (c *DefaultApiService) DeleteChannel(Sid string) (error) { path := "/v1/Channels/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -312,13 +317,14 @@ func (c *DefaultApiService) DeleteChannel(sid string) (error) { /* DeleteFlexFlow Method for DeleteFlexFlow - * @param sid The SID of the Flex Flow resource to delete. + * @param Sid The SID of the Flex Flow resource to delete. */ -func (c *DefaultApiService) DeleteFlexFlow(sid string) (error) { +func (c *DefaultApiService) DeleteFlexFlow(Sid string) (error) { path := "/v1/FlexFlows/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -335,13 +341,14 @@ func (c *DefaultApiService) DeleteFlexFlow(sid string) (error) { /* DeleteWebChannel Method for DeleteWebChannel - * @param sid The SID of the WebChannel resource to delete. + * @param Sid The SID of the WebChannel resource to delete. */ -func (c *DefaultApiService) DeleteWebChannel(sid string) (error) { +func (c *DefaultApiService) DeleteWebChannel(Sid string) (error) { path := "/v1/WebChannels/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -358,14 +365,15 @@ func (c *DefaultApiService) DeleteWebChannel(sid string) (error) { /* FetchChannel Method for FetchChannel - * @param sid The SID of the Flex chat channel resource to fetch. + * @param Sid The SID of the Flex chat channel resource to fetch. @return FlexV1Channel */ -func (c *DefaultApiService) FetchChannel(sid string) (*FlexV1Channel, error) { +func (c *DefaultApiService) FetchChannel(Sid string) (*FlexV1Channel, error) { path := "/v1/Channels/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -398,11 +406,12 @@ FetchConfiguration Method for FetchConfiguration func (c *DefaultApiService) FetchConfiguration(params *FetchConfigurationParams) (*FlexV1Configuration, error) { path := "/v1/Configuration" + data := url.Values{} headers := 0 if params != nil && params.UiVersion != nil { - data.Set("UiVersion", *params.UiVersion) + data.Set("UiVersion", *params.UiVersion) } @@ -423,14 +432,15 @@ func (c *DefaultApiService) FetchConfiguration(params *FetchConfigurationParams) /* FetchFlexFlow Method for FetchFlexFlow - * @param sid The SID of the Flex Flow resource to fetch. + * @param Sid The SID of the Flex Flow resource to fetch. @return FlexV1FlexFlow */ -func (c *DefaultApiService) FetchFlexFlow(sid string) (*FlexV1FlexFlow, error) { +func (c *DefaultApiService) FetchFlexFlow(Sid string) (*FlexV1FlexFlow, error) { path := "/v1/FlexFlows/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -452,14 +462,15 @@ func (c *DefaultApiService) FetchFlexFlow(sid string) (*FlexV1FlexFlow, error) { /* FetchWebChannel Method for FetchWebChannel - * @param sid The SID of the WebChannel resource to fetch. + * @param Sid The SID of the WebChannel resource to fetch. @return FlexV1WebChannel */ -func (c *DefaultApiService) FetchWebChannel(sid string) (*FlexV1WebChannel, error) { +func (c *DefaultApiService) FetchWebChannel(Sid string) (*FlexV1WebChannel, error) { path := "/v1/WebChannels/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -492,11 +503,12 @@ ListChannel Method for ListChannel func (c *DefaultApiService) ListChannel(params *ListChannelParams) (*FlexV1ChannelReadResponse, error) { path := "/v1/Channels" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -530,14 +542,15 @@ ListFlexFlow Method for ListFlexFlow func (c *DefaultApiService) ListFlexFlow(params *ListFlexFlowParams) (*FlexV1FlexFlowReadResponse, error) { path := "/v1/FlexFlows" + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -569,11 +582,12 @@ ListWebChannel Method for ListWebChannel func (c *DefaultApiService) ListWebChannel(params *ListWebChannelParams) (*FlexV1WebChannelReadResponse, error) { path := "/v1/WebChannels" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -599,7 +613,8 @@ UpdateConfiguration Method for UpdateConfiguration func (c *DefaultApiService) UpdateConfiguration() (*FlexV1Configuration, error) { path := "/v1/Configuration" - data := 0 + + data := url.Values{} headers := 0 @@ -625,15 +640,15 @@ type UpdateFlexFlowParams struct { ContactIdentity *string `json:"ContactIdentity,omitempty"` Enabled *bool `json:"Enabled,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` - Integration.Channel *string `json:"Integration.Channel,omitempty"` - Integration.CreationOnMessage *bool `json:"Integration.CreationOnMessage,omitempty"` - Integration.FlowSid *string `json:"Integration.FlowSid,omitempty"` - Integration.Priority *int32 `json:"Integration.Priority,omitempty"` - Integration.RetryCount *int32 `json:"Integration.RetryCount,omitempty"` - Integration.Timeout *int32 `json:"Integration.Timeout,omitempty"` - Integration.Url *string `json:"Integration.Url,omitempty"` - Integration.WorkflowSid *string `json:"Integration.WorkflowSid,omitempty"` - Integration.WorkspaceSid *string `json:"Integration.WorkspaceSid,omitempty"` + IntegrationChannel *string `json:"IntegrationChannel,omitempty"` + IntegrationCreationOnMessage *bool `json:"IntegrationCreationOnMessage,omitempty"` + IntegrationFlowSid *string `json:"IntegrationFlowSid,omitempty"` + IntegrationPriority *int32 `json:"IntegrationPriority,omitempty"` + IntegrationRetryCount *int32 `json:"IntegrationRetryCount,omitempty"` + IntegrationTimeout *int32 `json:"IntegrationTimeout,omitempty"` + IntegrationUrl *string `json:"IntegrationUrl,omitempty"` + IntegrationWorkflowSid *string `json:"IntegrationWorkflowSid,omitempty"` + IntegrationWorkspaceSid *string `json:"IntegrationWorkspaceSid,omitempty"` IntegrationType *string `json:"IntegrationType,omitempty"` JanitorEnabled *bool `json:"JanitorEnabled,omitempty"` LongLived *bool `json:"LongLived,omitempty"` @@ -641,84 +656,85 @@ type UpdateFlexFlowParams struct { /* UpdateFlexFlow Method for UpdateFlexFlow - * @param sid The SID of the Flex Flow resource to update. + * @param Sid The SID of the Flex Flow resource to update. * @param optional nil or *UpdateFlexFlowOpts - Optional Parameters: * @param "ChannelType" (string) - The channel type. Can be: `web`, `facebook`, `sms`, `whatsapp`, `line` or `custom`. * @param "ChatServiceSid" (string) - The SID of the chat service. * @param "ContactIdentity" (string) - The channel contact's Identity. * @param "Enabled" (bool) - Whether the new Flex Flow is enabled. * @param "FriendlyName" (string) - A descriptive string that you create to describe the Flex Flow resource. - * @param "Integration.Channel" (string) - The Task Channel for the TaskRouter Task that will be created. Applicable and required when integrationType is `task`. Set to `sms` for SMS, and to `chat` otherwise. The default value is `default` - * @param "Integration.CreationOnMessage" (bool) - In the context of outbound messaging, defines whether to create a Task immediately (and therefore reserve the conversation to current agent), or delay Task creation until the customer sends the first response. Set to false to create immediately, true to delay Task creation. This setting is only applicable for outbound messaging. - * @param "Integration.FlowSid" (string) - The SID of the Studio Flow. Required when `integrationType` is `studio`. - * @param "Integration.Priority" (int32) - The Task priority of a new Task. The default priority is 0. Optional when `integrationType` is `task`, not applicable otherwise. - * @param "Integration.RetryCount" (int32) - The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3 (included), default is 0. Optional when integrationType is `external`, not applicable otherwise. - * @param "Integration.Timeout" (int32) - The Task timeout in seconds for a new Task. Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`, not applicable otherwise. - * @param "Integration.Url" (string) - The URL of the external webhook. Required when `integrationType` is `external`. - * @param "Integration.WorkflowSid" (string) - The Workflow SID for a new Task. Required when `integrationType` is `task`. - * @param "Integration.WorkspaceSid" (string) - The Workspace SID for a new Task. Required when `integrationType` is `task`. + * @param "IntegrationChannel" (string) - The Task Channel for the TaskRouter Task that will be created. Applicable and required when integrationType is `task`. Set to `sms` for SMS, and to `chat` otherwise. The default value is `default` + * @param "IntegrationCreationOnMessage" (bool) - In the context of outbound messaging, defines whether to create a Task immediately (and therefore reserve the conversation to current agent), or delay Task creation until the customer sends the first response. Set to false to create immediately, true to delay Task creation. This setting is only applicable for outbound messaging. + * @param "IntegrationFlowSid" (string) - The SID of the Studio Flow. Required when `integrationType` is `studio`. + * @param "IntegrationPriority" (int32) - The Task priority of a new Task. The default priority is 0. Optional when `integrationType` is `task`, not applicable otherwise. + * @param "IntegrationRetryCount" (int32) - The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3 (included), default is 0. Optional when integrationType is `external`, not applicable otherwise. + * @param "IntegrationTimeout" (int32) - The Task timeout in seconds for a new Task. Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`, not applicable otherwise. + * @param "IntegrationUrl" (string) - The URL of the external webhook. Required when `integrationType` is `external`. + * @param "IntegrationWorkflowSid" (string) - The Workflow SID for a new Task. Required when `integrationType` is `task`. + * @param "IntegrationWorkspaceSid" (string) - The Workspace SID for a new Task. Required when `integrationType` is `task`. * @param "IntegrationType" (string) - The integration type. Can be: `studio`, `external`, or `task`. * @param "JanitorEnabled" (bool) - When enabled, the Messaging Channel Janitor will remove active Proxy sessions if the associated Task is deleted outside of the Flex UI. Defaults to `false`. * @param "LongLived" (bool) - When enabled, Flex will keep the chat channel active so that it may be used for subsequent interactions with a contact identity. Defaults to `false`. @return FlexV1FlexFlow */ -func (c *DefaultApiService) UpdateFlexFlow(sid string, params *UpdateFlexFlowParams) (*FlexV1FlexFlow, error) { +func (c *DefaultApiService) UpdateFlexFlow(Sid string, params *UpdateFlexFlowParams) (*FlexV1FlexFlow, error) { path := "/v1/FlexFlows/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.ChannelType != nil { - data.Set("ChannelType", *params.ChannelType) + data.Set("ChannelType", *params.ChannelType) } if params != nil && params.ChatServiceSid != nil { - data.Set("ChatServiceSid", *params.ChatServiceSid) + data.Set("ChatServiceSid", *params.ChatServiceSid) } if params != nil && params.ContactIdentity != nil { - data.Set("ContactIdentity", *params.ContactIdentity) + data.Set("ContactIdentity", *params.ContactIdentity) } if params != nil && params.Enabled != nil { - data.Set("Enabled", string(*params.Enabled)) + data.Set("Enabled", fmt.Sprint(*params.Enabled)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } - if params != nil && params.Integration.Channel != nil { - data.Set("Integration.Channel", *params.Integration.Channel) + if params != nil && params.IntegrationChannel != nil { + data.Set("IntegrationChannel", *params.IntegrationChannel) } - if params != nil && params.Integration.CreationOnMessage != nil { - data.Set("Integration.CreationOnMessage", string(*params.Integration.CreationOnMessage)) + if params != nil && params.IntegrationCreationOnMessage != nil { + data.Set("IntegrationCreationOnMessage", fmt.Sprint(*params.IntegrationCreationOnMessage)) } - if params != nil && params.Integration.FlowSid != nil { - data.Set("Integration.FlowSid", *params.Integration.FlowSid) + if params != nil && params.IntegrationFlowSid != nil { + data.Set("IntegrationFlowSid", *params.IntegrationFlowSid) } - if params != nil && params.Integration.Priority != nil { - data.Set("Integration.Priority", string(*params.Integration.Priority)) + if params != nil && params.IntegrationPriority != nil { + data.Set("IntegrationPriority", fmt.Sprint(*params.IntegrationPriority)) } - if params != nil && params.Integration.RetryCount != nil { - data.Set("Integration.RetryCount", string(*params.Integration.RetryCount)) + if params != nil && params.IntegrationRetryCount != nil { + data.Set("IntegrationRetryCount", fmt.Sprint(*params.IntegrationRetryCount)) } - if params != nil && params.Integration.Timeout != nil { - data.Set("Integration.Timeout", string(*params.Integration.Timeout)) + if params != nil && params.IntegrationTimeout != nil { + data.Set("IntegrationTimeout", fmt.Sprint(*params.IntegrationTimeout)) } - if params != nil && params.Integration.Url != nil { - data.Set("Integration.Url", *params.Integration.Url) + if params != nil && params.IntegrationUrl != nil { + data.Set("IntegrationUrl", *params.IntegrationUrl) } - if params != nil && params.Integration.WorkflowSid != nil { - data.Set("Integration.WorkflowSid", *params.Integration.WorkflowSid) + if params != nil && params.IntegrationWorkflowSid != nil { + data.Set("IntegrationWorkflowSid", *params.IntegrationWorkflowSid) } - if params != nil && params.Integration.WorkspaceSid != nil { - data.Set("Integration.WorkspaceSid", *params.Integration.WorkspaceSid) + if params != nil && params.IntegrationWorkspaceSid != nil { + data.Set("IntegrationWorkspaceSid", *params.IntegrationWorkspaceSid) } if params != nil && params.IntegrationType != nil { - data.Set("IntegrationType", *params.IntegrationType) + data.Set("IntegrationType", *params.IntegrationType) } if params != nil && params.JanitorEnabled != nil { - data.Set("JanitorEnabled", string(*params.JanitorEnabled)) + data.Set("JanitorEnabled", fmt.Sprint(*params.JanitorEnabled)) } if params != nil && params.LongLived != nil { - data.Set("LongLived", string(*params.LongLived)) + data.Set("LongLived", fmt.Sprint(*params.LongLived)) } @@ -744,24 +760,25 @@ type UpdateWebChannelParams struct { /* UpdateWebChannel Method for UpdateWebChannel - * @param sid The SID of the WebChannel resource to update. + * @param Sid The SID of the WebChannel resource to update. * @param optional nil or *UpdateWebChannelOpts - Optional Parameters: * @param "ChatStatus" (string) - The chat status. Can only be `inactive`. * @param "PostEngagementData" (string) - The post-engagement data. @return FlexV1WebChannel */ -func (c *DefaultApiService) UpdateWebChannel(sid string, params *UpdateWebChannelParams) (*FlexV1WebChannel, error) { +func (c *DefaultApiService) UpdateWebChannel(Sid string, params *UpdateWebChannelParams) (*FlexV1WebChannel, error) { path := "/v1/WebChannels/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.ChatStatus != nil { - data.Set("ChatStatus", *params.ChatStatus) + data.Set("ChatStatus", *params.ChatStatus) } if params != nil && params.PostEngagementData != nil { - data.Set("PostEngagementData", *params.PostEngagementData) + data.Set("PostEngagementData", *params.PostEngagementData) } diff --git a/rest/flex/v1/docs/DefaultApi.md b/rest/flex/v1/docs/DefaultApi.md index f9cbb845d..18adff410 100644 --- a/rest/flex/v1/docs/DefaultApi.md +++ b/rest/flex/v1/docs/DefaultApi.md @@ -44,16 +44,16 @@ Optional parameters are passed through a pointer to a CreateChannelOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **chatFriendlyName** | **optional.String**| The chat channel's friendly name. | - **chatUniqueName** | **optional.String**| The chat channel's unique name. | - **chatUserFriendlyName** | **optional.String**| The chat participant's friendly name. | - **flexFlowSid** | **optional.String**| The SID of the Flex Flow. | - **identity** | **optional.String**| The `identity` value that uniquely identifies the new resource's chat User. | - **longLived** | **optional.Bool**| Whether to create the channel as long-lived. | - **preEngagementData** | **optional.String**| The pre-engagement data. | - **target** | **optional.String**| The Target Contact Identity, for example the phone number of an SMS. | - **taskAttributes** | **optional.String**| The Task attributes to be added for the TaskRouter Task. | - **taskSid** | **optional.String**| The SID of the TaskRouter Task. Only valid when integration type is `task`. `null` for integration types `studio` & `external` | + **ChatFriendlyName** | **optional.String**| The chat channel's friendly name. | + **ChatUniqueName** | **optional.String**| The chat channel's unique name. | + **ChatUserFriendlyName** | **optional.String**| The chat participant's friendly name. | + **FlexFlowSid** | **optional.String**| The SID of the Flex Flow. | + **Identity** | **optional.String**| The `identity` value that uniquely identifies the new resource's chat User. | + **LongLived** | **optional.Bool**| Whether to create the channel as long-lived. | + **PreEngagementData** | **optional.String**| The pre-engagement data. | + **Target** | **optional.String**| The Target Contact Identity, for example the phone number of an SMS. | + **TaskAttributes** | **optional.String**| The Task attributes to be added for the TaskRouter Task. | + **TaskSid** | **optional.String**| The SID of the TaskRouter Task. Only valid when integration type is `task`. `null` for integration types `studio` & `external` | ### Return type @@ -94,23 +94,23 @@ Optional parameters are passed through a pointer to a CreateFlexFlowOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **channelType** | **optional.String**| The channel type. Can be: `web`, `facebook`, `sms`, `whatsapp`, `line` or `custom`. | - **chatServiceSid** | **optional.String**| The SID of the chat service. | - **contactIdentity** | **optional.String**| The channel contact's Identity. | - **enabled** | **optional.Bool**| Whether the new Flex Flow is enabled. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the Flex Flow resource. | - **integrationChannel** | **optional.String**| The Task Channel for the TaskRouter Task that will be created. Applicable and required when integrationType is `task`. Set to `sms` for SMS, and to `chat` otherwise. The default value is `default` | - **integrationCreationOnMessage** | **optional.Bool**| In the context of outbound messaging, defines whether to create a Task immediately (and therefore reserve the conversation to current agent), or delay Task creation until the customer sends the first response. Set to false to create immediately, true to delay Task creation. This setting is only applicable for outbound messaging. | - **integrationFlowSid** | **optional.String**| The SID of the Studio Flow. Required when `integrationType` is `studio`. | - **integrationPriority** | **optional.Int32**| The Task priority of a new Task. The default priority is 0. Optional when `integrationType` is `task`, not applicable otherwise. | - **integrationRetryCount** | **optional.Int32**| The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3 (included), default is 0. Optional when integrationType is `external`, not applicable otherwise. | - **integrationTimeout** | **optional.Int32**| The Task timeout in seconds for a new Task. Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`, not applicable otherwise. | - **integrationUrl** | **optional.String**| The URL of the external webhook. Required when `integrationType` is `external`. | - **integrationWorkflowSid** | **optional.String**| The Workflow SID for a new Task. Required when `integrationType` is `task`. | - **integrationWorkspaceSid** | **optional.String**| The Workspace SID for a new Task. Required when `integrationType` is `task`. | - **integrationType** | **optional.String**| The integration type. Can be: `studio`, `external`, or `task`. | - **janitorEnabled** | **optional.Bool**| When enabled, the Messaging Channel Janitor will remove active Proxy sessions if the associated Task is deleted outside of the Flex UI. Defaults to `false`. | - **longLived** | **optional.Bool**| When enabled, Flex will keep the chat channel active so that it may be used for subsequent interactions with a contact identity. Defaults to `false`. | + **ChannelType** | **optional.String**| The channel type. Can be: `web`, `facebook`, `sms`, `whatsapp`, `line` or `custom`. | + **ChatServiceSid** | **optional.String**| The SID of the chat service. | + **ContactIdentity** | **optional.String**| The channel contact's Identity. | + **Enabled** | **optional.Bool**| Whether the new Flex Flow is enabled. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the Flex Flow resource. | + **IntegrationChannel** | **optional.String**| The Task Channel for the TaskRouter Task that will be created. Applicable and required when integrationType is `task`. Set to `sms` for SMS, and to `chat` otherwise. The default value is `default` | + **IntegrationCreationOnMessage** | **optional.Bool**| In the context of outbound messaging, defines whether to create a Task immediately (and therefore reserve the conversation to current agent), or delay Task creation until the customer sends the first response. Set to false to create immediately, true to delay Task creation. This setting is only applicable for outbound messaging. | + **IntegrationFlowSid** | **optional.String**| The SID of the Studio Flow. Required when `integrationType` is `studio`. | + **IntegrationPriority** | **optional.Int32**| The Task priority of a new Task. The default priority is 0. Optional when `integrationType` is `task`, not applicable otherwise. | + **IntegrationRetryCount** | **optional.Int32**| The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3 (included), default is 0. Optional when integrationType is `external`, not applicable otherwise. | + **IntegrationTimeout** | **optional.Int32**| The Task timeout in seconds for a new Task. Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`, not applicable otherwise. | + **IntegrationUrl** | **optional.String**| The URL of the external webhook. Required when `integrationType` is `external`. | + **IntegrationWorkflowSid** | **optional.String**| The Workflow SID for a new Task. Required when `integrationType` is `task`. | + **IntegrationWorkspaceSid** | **optional.String**| The Workspace SID for a new Task. Required when `integrationType` is `task`. | + **IntegrationType** | **optional.String**| The integration type. Can be: `studio`, `external`, or `task`. | + **JanitorEnabled** | **optional.Bool**| When enabled, the Messaging Channel Janitor will remove active Proxy sessions if the associated Task is deleted outside of the Flex UI. Defaults to `false`. | + **LongLived** | **optional.Bool**| When enabled, Flex will keep the chat channel active so that it may be used for subsequent interactions with a contact identity. Defaults to `false`. | ### Return type @@ -151,12 +151,12 @@ Optional parameters are passed through a pointer to a CreateWebChannelOpts struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **chatFriendlyName** | **optional.String**| The chat channel's friendly name. | - **chatUniqueName** | **optional.String**| The chat channel's unique name. | - **customerFriendlyName** | **optional.String**| The chat participant's friendly name. | - **flexFlowSid** | **optional.String**| The SID of the Flex Flow. | - **identity** | **optional.String**| The chat identity. | - **preEngagementData** | **optional.String**| The pre-engagement data. | + **ChatFriendlyName** | **optional.String**| The chat channel's friendly name. | + **ChatUniqueName** | **optional.String**| The chat channel's unique name. | + **CustomerFriendlyName** | **optional.String**| The chat participant's friendly name. | + **FlexFlowSid** | **optional.String**| The SID of the Flex Flow. | + **Identity** | **optional.String**| The chat identity. | + **PreEngagementData** | **optional.String**| The pre-engagement data. | ### Return type @@ -178,7 +178,7 @@ Name | Type | Description | Notes ## DeleteChannel -> DeleteChannel(ctx, sid) +> DeleteChannel(ctx, Sid) @@ -188,7 +188,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Flex chat channel resource to delete. | +**Sid** | **string**| The SID of the Flex chat channel resource to delete. | ### Return type @@ -210,7 +210,7 @@ Name | Type | Description | Notes ## DeleteFlexFlow -> DeleteFlexFlow(ctx, sid) +> DeleteFlexFlow(ctx, Sid) @@ -220,7 +220,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Flex Flow resource to delete. | +**Sid** | **string**| The SID of the Flex Flow resource to delete. | ### Return type @@ -242,7 +242,7 @@ Name | Type | Description | Notes ## DeleteWebChannel -> DeleteWebChannel(ctx, sid) +> DeleteWebChannel(ctx, Sid) @@ -252,7 +252,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the WebChannel resource to delete. | +**Sid** | **string**| The SID of the WebChannel resource to delete. | ### Return type @@ -274,7 +274,7 @@ Name | Type | Description | Notes ## FetchChannel -> FlexV1Channel FetchChannel(ctx, sid) +> FlexV1Channel FetchChannel(ctx, Sid) @@ -284,7 +284,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Flex chat channel resource to fetch. | +**Sid** | **string**| The SID of the Flex chat channel resource to fetch. | ### Return type @@ -325,7 +325,7 @@ Optional parameters are passed through a pointer to a FetchConfigurationOpts str Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **uiVersion** | **optional.String**| The Pinned UI version of the Configuration resource to fetch. | + **UiVersion** | **optional.String**| The Pinned UI version of the Configuration resource to fetch. | ### Return type @@ -347,7 +347,7 @@ Name | Type | Description | Notes ## FetchFlexFlow -> FlexV1FlexFlow FetchFlexFlow(ctx, sid) +> FlexV1FlexFlow FetchFlexFlow(ctx, Sid) @@ -357,7 +357,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Flex Flow resource to fetch. | +**Sid** | **string**| The SID of the Flex Flow resource to fetch. | ### Return type @@ -379,7 +379,7 @@ Name | Type | Description | Notes ## FetchWebChannel -> FlexV1WebChannel FetchWebChannel(ctx, sid) +> FlexV1WebChannel FetchWebChannel(ctx, Sid) @@ -389,7 +389,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the WebChannel resource to fetch. | +**Sid** | **string**| The SID of the WebChannel resource to fetch. | ### Return type @@ -430,7 +430,7 @@ Optional parameters are passed through a pointer to a ListChannelOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -471,8 +471,8 @@ Optional parameters are passed through a pointer to a ListFlexFlowOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| The `friendly_name` of the Flex Flow resources to read. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **FriendlyName** | **optional.String**| The `friendly_name` of the Flex Flow resources to read. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -513,7 +513,7 @@ Optional parameters are passed through a pointer to a ListWebChannelOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -563,7 +563,7 @@ This endpoint does not need any parameter. ## UpdateFlexFlow -> FlexV1FlexFlow UpdateFlexFlow(ctx, sid, optional) +> FlexV1FlexFlow UpdateFlexFlow(ctx, Sid, optional) @@ -573,7 +573,7 @@ This endpoint does not need any parameter. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Flex Flow resource to update. | +**Sid** | **string**| The SID of the Flex Flow resource to update. | **optional** | ***UpdateFlexFlowOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -584,23 +584,23 @@ Optional parameters are passed through a pointer to a UpdateFlexFlowOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **channelType** | **optional.String**| The channel type. Can be: `web`, `facebook`, `sms`, `whatsapp`, `line` or `custom`. | - **chatServiceSid** | **optional.String**| The SID of the chat service. | - **contactIdentity** | **optional.String**| The channel contact's Identity. | - **enabled** | **optional.Bool**| Whether the new Flex Flow is enabled. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the Flex Flow resource. | - **integrationChannel** | **optional.String**| The Task Channel for the TaskRouter Task that will be created. Applicable and required when integrationType is `task`. Set to `sms` for SMS, and to `chat` otherwise. The default value is `default` | - **integrationCreationOnMessage** | **optional.Bool**| In the context of outbound messaging, defines whether to create a Task immediately (and therefore reserve the conversation to current agent), or delay Task creation until the customer sends the first response. Set to false to create immediately, true to delay Task creation. This setting is only applicable for outbound messaging. | - **integrationFlowSid** | **optional.String**| The SID of the Studio Flow. Required when `integrationType` is `studio`. | - **integrationPriority** | **optional.Int32**| The Task priority of a new Task. The default priority is 0. Optional when `integrationType` is `task`, not applicable otherwise. | - **integrationRetryCount** | **optional.Int32**| The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3 (included), default is 0. Optional when integrationType is `external`, not applicable otherwise. | - **integrationTimeout** | **optional.Int32**| The Task timeout in seconds for a new Task. Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`, not applicable otherwise. | - **integrationUrl** | **optional.String**| The URL of the external webhook. Required when `integrationType` is `external`. | - **integrationWorkflowSid** | **optional.String**| The Workflow SID for a new Task. Required when `integrationType` is `task`. | - **integrationWorkspaceSid** | **optional.String**| The Workspace SID for a new Task. Required when `integrationType` is `task`. | - **integrationType** | **optional.String**| The integration type. Can be: `studio`, `external`, or `task`. | - **janitorEnabled** | **optional.Bool**| When enabled, the Messaging Channel Janitor will remove active Proxy sessions if the associated Task is deleted outside of the Flex UI. Defaults to `false`. | - **longLived** | **optional.Bool**| When enabled, Flex will keep the chat channel active so that it may be used for subsequent interactions with a contact identity. Defaults to `false`. | + **ChannelType** | **optional.String**| The channel type. Can be: `web`, `facebook`, `sms`, `whatsapp`, `line` or `custom`. | + **ChatServiceSid** | **optional.String**| The SID of the chat service. | + **ContactIdentity** | **optional.String**| The channel contact's Identity. | + **Enabled** | **optional.Bool**| Whether the new Flex Flow is enabled. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the Flex Flow resource. | + **IntegrationChannel** | **optional.String**| The Task Channel for the TaskRouter Task that will be created. Applicable and required when integrationType is `task`. Set to `sms` for SMS, and to `chat` otherwise. The default value is `default` | + **IntegrationCreationOnMessage** | **optional.Bool**| In the context of outbound messaging, defines whether to create a Task immediately (and therefore reserve the conversation to current agent), or delay Task creation until the customer sends the first response. Set to false to create immediately, true to delay Task creation. This setting is only applicable for outbound messaging. | + **IntegrationFlowSid** | **optional.String**| The SID of the Studio Flow. Required when `integrationType` is `studio`. | + **IntegrationPriority** | **optional.Int32**| The Task priority of a new Task. The default priority is 0. Optional when `integrationType` is `task`, not applicable otherwise. | + **IntegrationRetryCount** | **optional.Int32**| The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3 (included), default is 0. Optional when integrationType is `external`, not applicable otherwise. | + **IntegrationTimeout** | **optional.Int32**| The Task timeout in seconds for a new Task. Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`, not applicable otherwise. | + **IntegrationUrl** | **optional.String**| The URL of the external webhook. Required when `integrationType` is `external`. | + **IntegrationWorkflowSid** | **optional.String**| The Workflow SID for a new Task. Required when `integrationType` is `task`. | + **IntegrationWorkspaceSid** | **optional.String**| The Workspace SID for a new Task. Required when `integrationType` is `task`. | + **IntegrationType** | **optional.String**| The integration type. Can be: `studio`, `external`, or `task`. | + **JanitorEnabled** | **optional.Bool**| When enabled, the Messaging Channel Janitor will remove active Proxy sessions if the associated Task is deleted outside of the Flex UI. Defaults to `false`. | + **LongLived** | **optional.Bool**| When enabled, Flex will keep the chat channel active so that it may be used for subsequent interactions with a contact identity. Defaults to `false`. | ### Return type @@ -622,7 +622,7 @@ Name | Type | Description | Notes ## UpdateWebChannel -> FlexV1WebChannel UpdateWebChannel(ctx, sid, optional) +> FlexV1WebChannel UpdateWebChannel(ctx, Sid, optional) @@ -632,7 +632,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the WebChannel resource to update. | +**Sid** | **string**| The SID of the WebChannel resource to update. | **optional** | ***UpdateWebChannelOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -643,8 +643,8 @@ Optional parameters are passed through a pointer to a UpdateWebChannelOpts struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **chatStatus** | **optional.String**| The chat status. Can only be `inactive`. | - **postEngagementData** | **optional.String**| The post-engagement data. | + **ChatStatus** | **optional.String**| The chat status. Can only be `inactive`. | + **PostEngagementData** | **optional.String**| The post-engagement data. | ### Return type diff --git a/rest/flex/v1/model_create_flex_flow_request.go b/rest/flex/v1/model_create_flex_flow_request.go index 4dc65d827..1bda60138 100644 --- a/rest/flex/v1/model_create_flex_flow_request.go +++ b/rest/flex/v1/model_create_flex_flow_request.go @@ -22,23 +22,23 @@ type CreateFlexFlowRequest struct { // A descriptive string that you create to describe the Flex Flow resource. FriendlyName string `json:"FriendlyName"` // The Task Channel for the TaskRouter Task that will be created. Applicable and required when integrationType is `task`. Set to `sms` for SMS, and to `chat` otherwise. The default value is `default` - IntegrationChannel string `json:"Integration.Channel,omitempty"` + IntegrationChannel string `json:"IntegrationChannel,omitempty"` // In the context of outbound messaging, defines whether to create a Task immediately (and therefore reserve the conversation to current agent), or delay Task creation until the customer sends the first response. Set to false to create immediately, true to delay Task creation. This setting is only applicable for outbound messaging. - IntegrationCreationOnMessage bool `json:"Integration.CreationOnMessage,omitempty"` + IntegrationCreationOnMessage bool `json:"IntegrationCreationOnMessage,omitempty"` // The SID of the Studio Flow. Required when `integrationType` is `studio`. - IntegrationFlowSid string `json:"Integration.FlowSid,omitempty"` + IntegrationFlowSid string `json:"IntegrationFlowSid,omitempty"` // The Task priority of a new Task. The default priority is 0. Optional when `integrationType` is `task`, not applicable otherwise. - IntegrationPriority int32 `json:"Integration.Priority,omitempty"` + IntegrationPriority int32 `json:"IntegrationPriority,omitempty"` // The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3 (included), default is 0. Optional when integrationType is `external`, not applicable otherwise. - IntegrationRetryCount int32 `json:"Integration.RetryCount,omitempty"` + IntegrationRetryCount int32 `json:"IntegrationRetryCount,omitempty"` // The Task timeout in seconds for a new Task. Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`, not applicable otherwise. - IntegrationTimeout int32 `json:"Integration.Timeout,omitempty"` + IntegrationTimeout int32 `json:"IntegrationTimeout,omitempty"` // The URL of the external webhook. Required when `integrationType` is `external`. - IntegrationUrl string `json:"Integration.Url,omitempty"` + IntegrationUrl string `json:"IntegrationUrl,omitempty"` // The Workflow SID for a new Task. Required when `integrationType` is `task`. - IntegrationWorkflowSid string `json:"Integration.WorkflowSid,omitempty"` + IntegrationWorkflowSid string `json:"IntegrationWorkflowSid,omitempty"` // The Workspace SID for a new Task. Required when `integrationType` is `task`. - IntegrationWorkspaceSid string `json:"Integration.WorkspaceSid,omitempty"` + IntegrationWorkspaceSid string `json:"IntegrationWorkspaceSid,omitempty"` // The integration type. Can be: `studio`, `external`, or `task`. IntegrationType string `json:"IntegrationType,omitempty"` // When enabled, the Messaging Channel Janitor will remove active Proxy sessions if the associated Task is deleted outside of the Flex UI. Defaults to `false`. diff --git a/rest/flex/v1/model_flex_v1_channel.go b/rest/flex/v1/model_flex_v1_channel.go index f47f7e4d9..012e897d0 100644 --- a/rest/flex/v1/model_flex_v1_channel.go +++ b/rest/flex/v1/model_flex_v1_channel.go @@ -14,12 +14,12 @@ import ( ) // FlexV1Channel struct for FlexV1Channel type FlexV1Channel struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FlexFlowSid string `json:"flex_flow_sid,omitempty"` - Sid string `json:"sid,omitempty"` - TaskSid string `json:"task_sid,omitempty"` - Url string `json:"url,omitempty"` - UserSid string `json:"user_sid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FlexFlowSid string `json:"FlexFlowSid,omitempty"` + Sid string `json:"Sid,omitempty"` + TaskSid string `json:"TaskSid,omitempty"` + Url string `json:"Url,omitempty"` + UserSid string `json:"UserSid,omitempty"` } diff --git a/rest/flex/v1/model_flex_v1_channel_read_response.go b/rest/flex/v1/model_flex_v1_channel_read_response.go index 1182fefca..0941750f8 100644 --- a/rest/flex/v1/model_flex_v1_channel_read_response.go +++ b/rest/flex/v1/model_flex_v1_channel_read_response.go @@ -11,6 +11,6 @@ package openapi // FlexV1ChannelReadResponse struct for FlexV1ChannelReadResponse type FlexV1ChannelReadResponse struct { - FlexChatChannels []FlexV1Channel `json:"flex_chat_channels,omitempty"` - Meta FlexV1ChannelReadResponseMeta `json:"meta,omitempty"` + FlexChatChannels []FlexV1Channel `json:"FlexChatChannels,omitempty"` + Meta FlexV1ChannelReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/flex/v1/model_flex_v1_channel_read_response_meta.go b/rest/flex/v1/model_flex_v1_channel_read_response_meta.go index 014b9ec81..6837a3bfb 100644 --- a/rest/flex/v1/model_flex_v1_channel_read_response_meta.go +++ b/rest/flex/v1/model_flex_v1_channel_read_response_meta.go @@ -11,11 +11,11 @@ package openapi // FlexV1ChannelReadResponseMeta struct for FlexV1ChannelReadResponseMeta type FlexV1ChannelReadResponseMeta struct { - FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` - NextPageUrl string `json:"next_page_url,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUrl string `json:"previous_page_url,omitempty"` - Url string `json:"url,omitempty"` + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/flex/v1/model_flex_v1_configuration.go b/rest/flex/v1/model_flex_v1_configuration.go index 1ef03c526..d269967d7 100644 --- a/rest/flex/v1/model_flex_v1_configuration.go +++ b/rest/flex/v1/model_flex_v1_configuration.go @@ -14,41 +14,41 @@ import ( ) // FlexV1Configuration struct for FlexV1Configuration type FlexV1Configuration struct { - AccountSid string `json:"account_sid,omitempty"` - Attributes map[string]interface{} `json:"attributes,omitempty"` - CallRecordingEnabled bool `json:"call_recording_enabled,omitempty"` - CallRecordingWebhookUrl string `json:"call_recording_webhook_url,omitempty"` - ChatServiceInstanceSid string `json:"chat_service_instance_sid,omitempty"` - CrmAttributes map[string]interface{} `json:"crm_attributes,omitempty"` - CrmCallbackUrl string `json:"crm_callback_url,omitempty"` - CrmEnabled bool `json:"crm_enabled,omitempty"` - CrmFallbackUrl string `json:"crm_fallback_url,omitempty"` - CrmType string `json:"crm_type,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FlexServiceInstanceSid string `json:"flex_service_instance_sid,omitempty"` - Integrations []map[string]interface{} `json:"integrations,omitempty"` - MessagingServiceInstanceSid string `json:"messaging_service_instance_sid,omitempty"` - OutboundCallFlows map[string]interface{} `json:"outbound_call_flows,omitempty"` - PluginServiceAttributes map[string]interface{} `json:"plugin_service_attributes,omitempty"` - PluginServiceEnabled bool `json:"plugin_service_enabled,omitempty"` - PublicAttributes map[string]interface{} `json:"public_attributes,omitempty"` - QueueStatsConfiguration map[string]interface{} `json:"queue_stats_configuration,omitempty"` - RuntimeDomain string `json:"runtime_domain,omitempty"` - ServerlessServiceSids []string `json:"serverless_service_sids,omitempty"` - ServiceVersion string `json:"service_version,omitempty"` - Status string `json:"status,omitempty"` - TaskrouterOfflineActivitySid string `json:"taskrouter_offline_activity_sid,omitempty"` - TaskrouterSkills []map[string]interface{} `json:"taskrouter_skills,omitempty"` - TaskrouterTargetTaskqueueSid string `json:"taskrouter_target_taskqueue_sid,omitempty"` - TaskrouterTargetWorkflowSid string `json:"taskrouter_target_workflow_sid,omitempty"` - TaskrouterTaskqueues []map[string]interface{} `json:"taskrouter_taskqueues,omitempty"` - TaskrouterWorkerAttributes map[string]interface{} `json:"taskrouter_worker_attributes,omitempty"` - TaskrouterWorkerChannels map[string]interface{} `json:"taskrouter_worker_channels,omitempty"` - TaskrouterWorkspaceSid string `json:"taskrouter_workspace_sid,omitempty"` - UiAttributes map[string]interface{} `json:"ui_attributes,omitempty"` - UiDependencies map[string]interface{} `json:"ui_dependencies,omitempty"` - UiLanguage string `json:"ui_language,omitempty"` - UiVersion string `json:"ui_version,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Attributes map[string]interface{} `json:"Attributes,omitempty"` + CallRecordingEnabled bool `json:"CallRecordingEnabled,omitempty"` + CallRecordingWebhookUrl string `json:"CallRecordingWebhookUrl,omitempty"` + ChatServiceInstanceSid string `json:"ChatServiceInstanceSid,omitempty"` + CrmAttributes map[string]interface{} `json:"CrmAttributes,omitempty"` + CrmCallbackUrl string `json:"CrmCallbackUrl,omitempty"` + CrmEnabled bool `json:"CrmEnabled,omitempty"` + CrmFallbackUrl string `json:"CrmFallbackUrl,omitempty"` + CrmType string `json:"CrmType,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FlexServiceInstanceSid string `json:"FlexServiceInstanceSid,omitempty"` + Integrations []map[string]interface{} `json:"Integrations,omitempty"` + MessagingServiceInstanceSid string `json:"MessagingServiceInstanceSid,omitempty"` + OutboundCallFlows map[string]interface{} `json:"OutboundCallFlows,omitempty"` + PluginServiceAttributes map[string]interface{} `json:"PluginServiceAttributes,omitempty"` + PluginServiceEnabled bool `json:"PluginServiceEnabled,omitempty"` + PublicAttributes map[string]interface{} `json:"PublicAttributes,omitempty"` + QueueStatsConfiguration map[string]interface{} `json:"QueueStatsConfiguration,omitempty"` + RuntimeDomain string `json:"RuntimeDomain,omitempty"` + ServerlessServiceSids []string `json:"ServerlessServiceSids,omitempty"` + ServiceVersion string `json:"ServiceVersion,omitempty"` + Status string `json:"Status,omitempty"` + TaskrouterOfflineActivitySid string `json:"TaskrouterOfflineActivitySid,omitempty"` + TaskrouterSkills []map[string]interface{} `json:"TaskrouterSkills,omitempty"` + TaskrouterTargetTaskqueueSid string `json:"TaskrouterTargetTaskqueueSid,omitempty"` + TaskrouterTargetWorkflowSid string `json:"TaskrouterTargetWorkflowSid,omitempty"` + TaskrouterTaskqueues []map[string]interface{} `json:"TaskrouterTaskqueues,omitempty"` + TaskrouterWorkerAttributes map[string]interface{} `json:"TaskrouterWorkerAttributes,omitempty"` + TaskrouterWorkerChannels map[string]interface{} `json:"TaskrouterWorkerChannels,omitempty"` + TaskrouterWorkspaceSid string `json:"TaskrouterWorkspaceSid,omitempty"` + UiAttributes map[string]interface{} `json:"UiAttributes,omitempty"` + UiDependencies map[string]interface{} `json:"UiDependencies,omitempty"` + UiLanguage string `json:"UiLanguage,omitempty"` + UiVersion string `json:"UiVersion,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/flex/v1/model_flex_v1_flex_flow.go b/rest/flex/v1/model_flex_v1_flex_flow.go index 693b89758..213debb8f 100644 --- a/rest/flex/v1/model_flex_v1_flex_flow.go +++ b/rest/flex/v1/model_flex_v1_flex_flow.go @@ -14,18 +14,18 @@ import ( ) // FlexV1FlexFlow struct for FlexV1FlexFlow type FlexV1FlexFlow struct { - AccountSid string `json:"account_sid,omitempty"` - ChannelType string `json:"channel_type,omitempty"` - ChatServiceSid string `json:"chat_service_sid,omitempty"` - ContactIdentity string `json:"contact_identity,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Enabled bool `json:"enabled,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Integration map[string]interface{} `json:"integration,omitempty"` - IntegrationType string `json:"integration_type,omitempty"` - JanitorEnabled bool `json:"janitor_enabled,omitempty"` - LongLived bool `json:"long_lived,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ChannelType string `json:"ChannelType,omitempty"` + ChatServiceSid string `json:"ChatServiceSid,omitempty"` + ContactIdentity string `json:"ContactIdentity,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Enabled bool `json:"Enabled,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Integration map[string]interface{} `json:"Integration,omitempty"` + IntegrationType string `json:"IntegrationType,omitempty"` + JanitorEnabled bool `json:"JanitorEnabled,omitempty"` + LongLived bool `json:"LongLived,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/flex/v1/model_flex_v1_flex_flow_read_response.go b/rest/flex/v1/model_flex_v1_flex_flow_read_response.go index 30da30d84..abac87c87 100644 --- a/rest/flex/v1/model_flex_v1_flex_flow_read_response.go +++ b/rest/flex/v1/model_flex_v1_flex_flow_read_response.go @@ -11,6 +11,6 @@ package openapi // FlexV1FlexFlowReadResponse struct for FlexV1FlexFlowReadResponse type FlexV1FlexFlowReadResponse struct { - FlexFlows []FlexV1FlexFlow `json:"flex_flows,omitempty"` - Meta FlexV1ChannelReadResponseMeta `json:"meta,omitempty"` + FlexFlows []FlexV1FlexFlow `json:"FlexFlows,omitempty"` + Meta FlexV1ChannelReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/flex/v1/model_flex_v1_web_channel.go b/rest/flex/v1/model_flex_v1_web_channel.go index f9fe5448a..5e13bd807 100644 --- a/rest/flex/v1/model_flex_v1_web_channel.go +++ b/rest/flex/v1/model_flex_v1_web_channel.go @@ -14,10 +14,10 @@ import ( ) // FlexV1WebChannel struct for FlexV1WebChannel type FlexV1WebChannel struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FlexFlowSid string `json:"flex_flow_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FlexFlowSid string `json:"FlexFlowSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/flex/v1/model_flex_v1_web_channel_read_response.go b/rest/flex/v1/model_flex_v1_web_channel_read_response.go index b756403e8..932d5fb76 100644 --- a/rest/flex/v1/model_flex_v1_web_channel_read_response.go +++ b/rest/flex/v1/model_flex_v1_web_channel_read_response.go @@ -11,6 +11,6 @@ package openapi // FlexV1WebChannelReadResponse struct for FlexV1WebChannelReadResponse type FlexV1WebChannelReadResponse struct { - FlexChatChannels []FlexV1WebChannel `json:"flex_chat_channels,omitempty"` - Meta FlexV1ChannelReadResponseMeta `json:"meta,omitempty"` + FlexChatChannels []FlexV1WebChannel `json:"FlexChatChannels,omitempty"` + Meta FlexV1ChannelReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/flex/v1/model_update_flex_flow_request.go b/rest/flex/v1/model_update_flex_flow_request.go index 365ef376a..991ee1002 100644 --- a/rest/flex/v1/model_update_flex_flow_request.go +++ b/rest/flex/v1/model_update_flex_flow_request.go @@ -22,23 +22,23 @@ type UpdateFlexFlowRequest struct { // A descriptive string that you create to describe the Flex Flow resource. FriendlyName string `json:"FriendlyName,omitempty"` // The Task Channel for the TaskRouter Task that will be created. Applicable and required when integrationType is `task`. Set to `sms` for SMS, and to `chat` otherwise. The default value is `default` - IntegrationChannel string `json:"Integration.Channel,omitempty"` + IntegrationChannel string `json:"IntegrationChannel,omitempty"` // In the context of outbound messaging, defines whether to create a Task immediately (and therefore reserve the conversation to current agent), or delay Task creation until the customer sends the first response. Set to false to create immediately, true to delay Task creation. This setting is only applicable for outbound messaging. - IntegrationCreationOnMessage bool `json:"Integration.CreationOnMessage,omitempty"` + IntegrationCreationOnMessage bool `json:"IntegrationCreationOnMessage,omitempty"` // The SID of the Studio Flow. Required when `integrationType` is `studio`. - IntegrationFlowSid string `json:"Integration.FlowSid,omitempty"` + IntegrationFlowSid string `json:"IntegrationFlowSid,omitempty"` // The Task priority of a new Task. The default priority is 0. Optional when `integrationType` is `task`, not applicable otherwise. - IntegrationPriority int32 `json:"Integration.Priority,omitempty"` + IntegrationPriority int32 `json:"IntegrationPriority,omitempty"` // The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3 (included), default is 0. Optional when integrationType is `external`, not applicable otherwise. - IntegrationRetryCount int32 `json:"Integration.RetryCount,omitempty"` + IntegrationRetryCount int32 `json:"IntegrationRetryCount,omitempty"` // The Task timeout in seconds for a new Task. Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`, not applicable otherwise. - IntegrationTimeout int32 `json:"Integration.Timeout,omitempty"` + IntegrationTimeout int32 `json:"IntegrationTimeout,omitempty"` // The URL of the external webhook. Required when `integrationType` is `external`. - IntegrationUrl string `json:"Integration.Url,omitempty"` + IntegrationUrl string `json:"IntegrationUrl,omitempty"` // The Workflow SID for a new Task. Required when `integrationType` is `task`. - IntegrationWorkflowSid string `json:"Integration.WorkflowSid,omitempty"` + IntegrationWorkflowSid string `json:"IntegrationWorkflowSid,omitempty"` // The Workspace SID for a new Task. Required when `integrationType` is `task`. - IntegrationWorkspaceSid string `json:"Integration.WorkspaceSid,omitempty"` + IntegrationWorkspaceSid string `json:"IntegrationWorkspaceSid,omitempty"` // The integration type. Can be: `studio`, `external`, or `task`. IntegrationType string `json:"IntegrationType,omitempty"` // When enabled, the Messaging Channel Janitor will remove active Proxy sessions if the associated Task is deleted outside of the Flex UI. Defaults to `false`. diff --git a/rest/insights/v1/api_call_tag.go b/rest/insights/v1/api_call_tag.go index a0e630af8..51cfdd199 100644 --- a/rest/insights/v1/api_call_tag.go +++ b/rest/insights/v1/api_call_tag.go @@ -15,6 +15,7 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" ) type CallTagApiService struct { @@ -31,14 +32,15 @@ func NewCallTagApiService(client *twilio.Client) *CallTagApiService { /* FetchCall Method for FetchCall - * @param sid + * @param Sid @return InsightsV1Call */ -func (c *CallTagApiService) FetchCall(sid string) (*InsightsV1Call, error) { +func (c *CallTagApiService) FetchCall(Sid string) (*InsightsV1Call, error) { path := "/v1/Voice/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 diff --git a/rest/insights/v1/api_events_tag.go b/rest/insights/v1/api_events_tag.go index e9d500a33..b07ca8971 100644 --- a/rest/insights/v1/api_events_tag.go +++ b/rest/insights/v1/api_events_tag.go @@ -15,6 +15,7 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" ) type EventsTagApiService struct { @@ -36,24 +37,25 @@ type ListEventParams struct { /* ListEvent Method for ListEvent - * @param callSid + * @param CallSid * @param optional nil or *ListEventOpts - Optional Parameters: * @param "Edge" (string) - * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return InsightsV1CallEventReadResponse */ -func (c *EventsTagApiService) ListEvent(callSid string, params *ListEventParams) (*InsightsV1CallEventReadResponse, error) { +func (c *EventsTagApiService) ListEvent(CallSid string, params *ListEventParams) (*InsightsV1CallEventReadResponse, error) { path := "/v1/Voice/{CallSid}/Events" - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", CallSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Edge != nil { - data.Set("Edge", *params.Edge) + data.Set("Edge", *params.Edge) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } diff --git a/rest/insights/v1/api_metrics_tag.go b/rest/insights/v1/api_metrics_tag.go index 2e906a27c..14fc77b35 100644 --- a/rest/insights/v1/api_metrics_tag.go +++ b/rest/insights/v1/api_metrics_tag.go @@ -15,6 +15,7 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" ) type MetricsTagApiService struct { @@ -37,28 +38,29 @@ type ListMetricParams struct { /* ListMetric Method for ListMetric - * @param callSid + * @param CallSid * @param optional nil or *ListMetricOpts - Optional Parameters: * @param "Edge" (string) - * @param "Direction" (string) - * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return InsightsV1CallMetricReadResponse */ -func (c *MetricsTagApiService) ListMetric(callSid string, params *ListMetricParams) (*InsightsV1CallMetricReadResponse, error) { +func (c *MetricsTagApiService) ListMetric(CallSid string, params *ListMetricParams) (*InsightsV1CallMetricReadResponse, error) { path := "/v1/Voice/{CallSid}/Metrics" - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", CallSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Edge != nil { - data.Set("Edge", *params.Edge) + data.Set("Edge", *params.Edge) } if params != nil && params.Direction != nil { - data.Set("Direction", *params.Direction) + data.Set("Direction", *params.Direction) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } diff --git a/rest/insights/v1/api_summary_tag.go b/rest/insights/v1/api_summary_tag.go index 271566da7..b0763d55d 100644 --- a/rest/insights/v1/api_summary_tag.go +++ b/rest/insights/v1/api_summary_tag.go @@ -15,6 +15,7 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" ) type SummaryTagApiService struct { @@ -35,20 +36,21 @@ type FetchSummaryParams struct { /* FetchSummary Method for FetchSummary - * @param callSid + * @param CallSid * @param optional nil or *FetchSummaryOpts - Optional Parameters: * @param "ProcessingState" (string) - @return InsightsV1CallSummary */ -func (c *SummaryTagApiService) FetchSummary(callSid string, params *FetchSummaryParams) (*InsightsV1CallSummary, error) { +func (c *SummaryTagApiService) FetchSummary(CallSid string, params *FetchSummaryParams) (*InsightsV1CallSummary, error) { path := "/v1/Voice/{CallSid}/Summary" - path = strings.Replace(path, "{"+"CallSid"+"}", callSid, -1) + path = strings.Replace(path, "{"+"CallSid"+"}", CallSid, -1) + data := url.Values{} headers := 0 if params != nil && params.ProcessingState != nil { - data.Set("ProcessingState", *params.ProcessingState) + data.Set("ProcessingState", *params.ProcessingState) } diff --git a/rest/insights/v1/api_video_participant_summary_tag.go b/rest/insights/v1/api_video_participant_summary_tag.go index 1f6a33954..cbe6a195e 100644 --- a/rest/insights/v1/api_video_participant_summary_tag.go +++ b/rest/insights/v1/api_video_participant_summary_tag.go @@ -15,6 +15,7 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" ) type VideoParticipantSummaryTagApiService struct { @@ -31,16 +32,17 @@ func NewVideoParticipantSummaryTagApiService(client *twilio.Client) *VideoPartic /* FetchVideoParticipantSummary Method for FetchVideoParticipantSummary - * @param roomSid - * @param participantSid + * @param RoomSid + * @param ParticipantSid @return InsightsV1VideoRoomSummaryVideoParticipantSummary */ -func (c *VideoParticipantSummaryTagApiService) FetchVideoParticipantSummary(roomSid string, participantSid string) (*InsightsV1VideoRoomSummaryVideoParticipantSummary, error) { +func (c *VideoParticipantSummaryTagApiService) FetchVideoParticipantSummary(RoomSid string, ParticipantSid string) (*InsightsV1VideoRoomSummaryVideoParticipantSummary, error) { path := "/v1/Video/Rooms/{RoomSid}/Participants/{ParticipantSid}" - path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) - path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) + path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) + path = strings.Replace(path, "{"+"ParticipantSid"+"}", ParticipantSid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -66,20 +68,21 @@ type ListVideoParticipantSummaryParams struct { /* ListVideoParticipantSummary Method for ListVideoParticipantSummary - * @param roomSid + * @param RoomSid * @param optional nil or *ListVideoParticipantSummaryOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse */ -func (c *VideoParticipantSummaryTagApiService) ListVideoParticipantSummary(roomSid string, params *ListVideoParticipantSummaryParams) (*InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse, error) { +func (c *VideoParticipantSummaryTagApiService) ListVideoParticipantSummary(RoomSid string, params *ListVideoParticipantSummaryParams) (*InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse, error) { path := "/v1/Video/Rooms/{RoomSid}/Participants" - path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } diff --git a/rest/insights/v1/api_video_room_summary_tag.go b/rest/insights/v1/api_video_room_summary_tag.go index e597f5758..0fca291b6 100644 --- a/rest/insights/v1/api_video_room_summary_tag.go +++ b/rest/insights/v1/api_video_room_summary_tag.go @@ -15,6 +15,8 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" + "time" ) type VideoRoomSummaryTagApiService struct { @@ -31,14 +33,15 @@ func NewVideoRoomSummaryTagApiService(client *twilio.Client) *VideoRoomSummaryTa /* FetchVideoRoomSummary Method for FetchVideoRoomSummary - * @param roomSid + * @param RoomSid @return InsightsV1VideoRoomSummary */ -func (c *VideoRoomSummaryTagApiService) FetchVideoRoomSummary(roomSid string) (*InsightsV1VideoRoomSummary, error) { +func (c *VideoRoomSummaryTagApiService) FetchVideoRoomSummary(RoomSid string) (*InsightsV1VideoRoomSummary, error) { path := "/v1/Video/Rooms/{RoomSid}" - path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -81,26 +84,27 @@ ListVideoRoomSummary Method for ListVideoRoomSummary func (c *VideoRoomSummaryTagApiService) ListVideoRoomSummary(params *ListVideoRoomSummaryParams) (*InsightsV1VideoRoomSummaryReadResponse, error) { path := "/v1/Video/Rooms" + data := url.Values{} headers := 0 if params != nil && params.RoomType != nil { - data.Set("RoomType", string(*params.RoomType)) + data.Set("RoomType", strings.Join(*params.RoomType, ",")) } if params != nil && params.Codec != nil { - data.Set("Codec", string(*params.Codec)) + data.Set("Codec", strings.Join(*params.Codec, ",")) } if params != nil && params.RoomName != nil { - data.Set("RoomName", *params.RoomName) + data.Set("RoomName", *params.RoomName) } if params != nil && params.CreatedAfter != nil { - data.Set("CreatedAfter", string(*params.CreatedAfter)) + data.Set("CreatedAfter", fmt.Sprint(*params.CreatedAfter)) } if params != nil && params.CreatedBefore != nil { - data.Set("CreatedBefore", string(*params.CreatedBefore)) + data.Set("CreatedBefore", fmt.Sprint(*params.CreatedBefore)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } diff --git a/rest/insights/v1/docs/CallTagApi.md b/rest/insights/v1/docs/CallTagApi.md index 620924ed0..721f70b8f 100644 --- a/rest/insights/v1/docs/CallTagApi.md +++ b/rest/insights/v1/docs/CallTagApi.md @@ -10,7 +10,7 @@ Method | HTTP request | Description ## FetchCall -> InsightsV1Call FetchCall(ctx, sid) +> InsightsV1Call FetchCall(ctx, Sid) @@ -20,7 +20,7 @@ Method | HTTP request | Description Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| | +**Sid** | **string**| | ### Return type diff --git a/rest/insights/v1/docs/EventsTagApi.md b/rest/insights/v1/docs/EventsTagApi.md index 5969e87e6..8bf7e091e 100644 --- a/rest/insights/v1/docs/EventsTagApi.md +++ b/rest/insights/v1/docs/EventsTagApi.md @@ -10,7 +10,7 @@ Method | HTTP request | Description ## ListEvent -> InsightsV1CallEventReadResponse ListEvent(ctx, callSid, optional) +> InsightsV1CallEventReadResponse ListEvent(ctx, CallSid, optional) @@ -20,7 +20,7 @@ Method | HTTP request | Description Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**callSid** | **string**| | +**CallSid** | **string**| | **optional** | ***ListEventOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -31,8 +31,8 @@ Optional parameters are passed through a pointer to a ListEventOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **edge** | **optional.String**| | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Edge** | **optional.String**| | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type diff --git a/rest/insights/v1/docs/MetricsTagApi.md b/rest/insights/v1/docs/MetricsTagApi.md index bd6031954..7e1ca5107 100644 --- a/rest/insights/v1/docs/MetricsTagApi.md +++ b/rest/insights/v1/docs/MetricsTagApi.md @@ -10,7 +10,7 @@ Method | HTTP request | Description ## ListMetric -> InsightsV1CallMetricReadResponse ListMetric(ctx, callSid, optional) +> InsightsV1CallMetricReadResponse ListMetric(ctx, CallSid, optional) @@ -20,7 +20,7 @@ Method | HTTP request | Description Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**callSid** | **string**| | +**CallSid** | **string**| | **optional** | ***ListMetricOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -31,9 +31,9 @@ Optional parameters are passed through a pointer to a ListMetricOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **edge** | **optional.String**| | - **direction** | **optional.String**| | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Edge** | **optional.String**| | + **Direction** | **optional.String**| | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type diff --git a/rest/insights/v1/docs/SummaryTagApi.md b/rest/insights/v1/docs/SummaryTagApi.md index e455ea7de..1eba03e6d 100644 --- a/rest/insights/v1/docs/SummaryTagApi.md +++ b/rest/insights/v1/docs/SummaryTagApi.md @@ -10,7 +10,7 @@ Method | HTTP request | Description ## FetchSummary -> InsightsV1CallSummary FetchSummary(ctx, callSid, optional) +> InsightsV1CallSummary FetchSummary(ctx, CallSid, optional) @@ -20,7 +20,7 @@ Method | HTTP request | Description Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**callSid** | **string**| | +**CallSid** | **string**| | **optional** | ***FetchSummaryOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -31,7 +31,7 @@ Optional parameters are passed through a pointer to a FetchSummaryOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **processingState** | **optional.String**| | + **ProcessingState** | **optional.String**| | ### Return type diff --git a/rest/insights/v1/docs/VideoParticipantSummaryTagApi.md b/rest/insights/v1/docs/VideoParticipantSummaryTagApi.md index 945e95202..5ba699107 100644 --- a/rest/insights/v1/docs/VideoParticipantSummaryTagApi.md +++ b/rest/insights/v1/docs/VideoParticipantSummaryTagApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description ## FetchVideoParticipantSummary -> InsightsV1VideoRoomSummaryVideoParticipantSummary FetchVideoParticipantSummary(ctx, roomSid, participantSid) +> InsightsV1VideoRoomSummaryVideoParticipantSummary FetchVideoParticipantSummary(ctx, RoomSid, ParticipantSid) @@ -21,8 +21,8 @@ Method | HTTP request | Description Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**roomSid** | **string**| | -**participantSid** | **string**| | +**RoomSid** | **string**| | +**ParticipantSid** | **string**| | ### Return type @@ -44,7 +44,7 @@ Name | Type | Description | Notes ## ListVideoParticipantSummary -> InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse ListVideoParticipantSummary(ctx, roomSid, optional) +> InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse ListVideoParticipantSummary(ctx, RoomSid, optional) @@ -54,7 +54,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**roomSid** | **string**| | +**RoomSid** | **string**| | **optional** | ***ListVideoParticipantSummaryOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -65,7 +65,7 @@ Optional parameters are passed through a pointer to a ListVideoParticipantSummar Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type diff --git a/rest/insights/v1/docs/VideoRoomSummaryTagApi.md b/rest/insights/v1/docs/VideoRoomSummaryTagApi.md index 74709bef8..7fd101f71 100644 --- a/rest/insights/v1/docs/VideoRoomSummaryTagApi.md +++ b/rest/insights/v1/docs/VideoRoomSummaryTagApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description ## FetchVideoRoomSummary -> InsightsV1VideoRoomSummary FetchVideoRoomSummary(ctx, roomSid) +> InsightsV1VideoRoomSummary FetchVideoRoomSummary(ctx, RoomSid) @@ -21,7 +21,7 @@ Method | HTTP request | Description Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**roomSid** | **string**| | +**RoomSid** | **string**| | ### Return type @@ -62,12 +62,12 @@ Optional parameters are passed through a pointer to a ListVideoRoomSummaryOpts s Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **roomType** | [**optional.Interface of []string**](string.md)| | - **codec** | [**optional.Interface of []string**](string.md)| | - **roomName** | **optional.String**| | - **createdAfter** | **optional.Time**| | - **createdBefore** | **optional.Time**| | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **RoomType** | [**optional.Interface of []string**](string.md)| | + **Codec** | [**optional.Interface of []string**](string.md)| | + **RoomName** | **optional.String**| | + **CreatedAfter** | **optional.Time**| | + **CreatedBefore** | **optional.Time**| | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type diff --git a/rest/insights/v1/model_insights_v1_call.go b/rest/insights/v1/model_insights_v1_call.go index 2b3ee9356..f89b6ac42 100644 --- a/rest/insights/v1/model_insights_v1_call.go +++ b/rest/insights/v1/model_insights_v1_call.go @@ -11,7 +11,7 @@ package openapi // InsightsV1Call struct for InsightsV1Call type InsightsV1Call struct { - Links map[string]interface{} `json:"links,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/insights/v1/model_insights_v1_call_event.go b/rest/insights/v1/model_insights_v1_call_event.go index bda8166e8..0cf6e3bd3 100644 --- a/rest/insights/v1/model_insights_v1_call_event.go +++ b/rest/insights/v1/model_insights_v1_call_event.go @@ -11,15 +11,15 @@ package openapi // InsightsV1CallEvent struct for InsightsV1CallEvent type InsightsV1CallEvent struct { - AccountSid string `json:"account_sid,omitempty"` - CallSid string `json:"call_sid,omitempty"` - CarrierEdge map[string]interface{} `json:"carrier_edge,omitempty"` - ClientEdge map[string]interface{} `json:"client_edge,omitempty"` - Edge string `json:"edge,omitempty"` - Group string `json:"group,omitempty"` - Level string `json:"level,omitempty"` - Name string `json:"name,omitempty"` - SdkEdge map[string]interface{} `json:"sdk_edge,omitempty"` - SipEdge map[string]interface{} `json:"sip_edge,omitempty"` - Timestamp string `json:"timestamp,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + CallSid string `json:"CallSid,omitempty"` + CarrierEdge map[string]interface{} `json:"CarrierEdge,omitempty"` + ClientEdge map[string]interface{} `json:"ClientEdge,omitempty"` + Edge string `json:"Edge,omitempty"` + Group string `json:"Group,omitempty"` + Level string `json:"Level,omitempty"` + Name string `json:"Name,omitempty"` + SdkEdge map[string]interface{} `json:"SdkEdge,omitempty"` + SipEdge map[string]interface{} `json:"SipEdge,omitempty"` + Timestamp string `json:"Timestamp,omitempty"` } diff --git a/rest/insights/v1/model_insights_v1_call_event_read_response.go b/rest/insights/v1/model_insights_v1_call_event_read_response.go index aa6d45c69..5b2cd64c1 100644 --- a/rest/insights/v1/model_insights_v1_call_event_read_response.go +++ b/rest/insights/v1/model_insights_v1_call_event_read_response.go @@ -11,6 +11,6 @@ package openapi // InsightsV1CallEventReadResponse struct for InsightsV1CallEventReadResponse type InsightsV1CallEventReadResponse struct { - Events []InsightsV1CallEvent `json:"events,omitempty"` - Meta InsightsV1VideoRoomSummaryReadResponseMeta `json:"meta,omitempty"` + Events []InsightsV1CallEvent `json:"Events,omitempty"` + Meta InsightsV1VideoRoomSummaryReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/insights/v1/model_insights_v1_call_metric.go b/rest/insights/v1/model_insights_v1_call_metric.go index b24c31df8..6a2d05727 100644 --- a/rest/insights/v1/model_insights_v1_call_metric.go +++ b/rest/insights/v1/model_insights_v1_call_metric.go @@ -11,13 +11,13 @@ package openapi // InsightsV1CallMetric struct for InsightsV1CallMetric type InsightsV1CallMetric struct { - AccountSid string `json:"account_sid,omitempty"` - CallSid string `json:"call_sid,omitempty"` - CarrierEdge map[string]interface{} `json:"carrier_edge,omitempty"` - ClientEdge map[string]interface{} `json:"client_edge,omitempty"` - Direction string `json:"direction,omitempty"` - Edge string `json:"edge,omitempty"` - SdkEdge map[string]interface{} `json:"sdk_edge,omitempty"` - SipEdge map[string]interface{} `json:"sip_edge,omitempty"` - Timestamp string `json:"timestamp,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + CallSid string `json:"CallSid,omitempty"` + CarrierEdge map[string]interface{} `json:"CarrierEdge,omitempty"` + ClientEdge map[string]interface{} `json:"ClientEdge,omitempty"` + Direction string `json:"Direction,omitempty"` + Edge string `json:"Edge,omitempty"` + SdkEdge map[string]interface{} `json:"SdkEdge,omitempty"` + SipEdge map[string]interface{} `json:"SipEdge,omitempty"` + Timestamp string `json:"Timestamp,omitempty"` } diff --git a/rest/insights/v1/model_insights_v1_call_metric_read_response.go b/rest/insights/v1/model_insights_v1_call_metric_read_response.go index 622477e3b..676a621ac 100644 --- a/rest/insights/v1/model_insights_v1_call_metric_read_response.go +++ b/rest/insights/v1/model_insights_v1_call_metric_read_response.go @@ -11,6 +11,6 @@ package openapi // InsightsV1CallMetricReadResponse struct for InsightsV1CallMetricReadResponse type InsightsV1CallMetricReadResponse struct { - Meta InsightsV1VideoRoomSummaryReadResponseMeta `json:"meta,omitempty"` - Metrics []InsightsV1CallMetric `json:"metrics,omitempty"` + Meta InsightsV1VideoRoomSummaryReadResponseMeta `json:"Meta,omitempty"` + Metrics []InsightsV1CallMetric `json:"Metrics,omitempty"` } diff --git a/rest/insights/v1/model_insights_v1_call_summary.go b/rest/insights/v1/model_insights_v1_call_summary.go index 9bd282425..373663b50 100644 --- a/rest/insights/v1/model_insights_v1_call_summary.go +++ b/rest/insights/v1/model_insights_v1_call_summary.go @@ -14,24 +14,24 @@ import ( ) // InsightsV1CallSummary struct for InsightsV1CallSummary type InsightsV1CallSummary struct { - AccountSid string `json:"account_sid,omitempty"` - Attributes map[string]interface{} `json:"attributes,omitempty"` - CallSid string `json:"call_sid,omitempty"` - CallState string `json:"call_state,omitempty"` - CallType string `json:"call_type,omitempty"` - CarrierEdge map[string]interface{} `json:"carrier_edge,omitempty"` - ClientEdge map[string]interface{} `json:"client_edge,omitempty"` - ConnectDuration *int32 `json:"connect_duration,omitempty"` - Duration *int32 `json:"duration,omitempty"` - EndTime time.Time `json:"end_time,omitempty"` - From map[string]interface{} `json:"from,omitempty"` - ProcessingState string `json:"processing_state,omitempty"` - Properties map[string]interface{} `json:"properties,omitempty"` - SdkEdge map[string]interface{} `json:"sdk_edge,omitempty"` - SipEdge map[string]interface{} `json:"sip_edge,omitempty"` - StartTime time.Time `json:"start_time,omitempty"` - Tags []string `json:"tags,omitempty"` - To map[string]interface{} `json:"to,omitempty"` - Trust map[string]interface{} `json:"trust,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Attributes map[string]interface{} `json:"Attributes,omitempty"` + CallSid string `json:"CallSid,omitempty"` + CallState string `json:"CallState,omitempty"` + CallType string `json:"CallType,omitempty"` + CarrierEdge map[string]interface{} `json:"CarrierEdge,omitempty"` + ClientEdge map[string]interface{} `json:"ClientEdge,omitempty"` + ConnectDuration *int32 `json:"ConnectDuration,omitempty"` + Duration *int32 `json:"Duration,omitempty"` + EndTime time.Time `json:"EndTime,omitempty"` + From map[string]interface{} `json:"From,omitempty"` + ProcessingState string `json:"ProcessingState,omitempty"` + Properties map[string]interface{} `json:"Properties,omitempty"` + SdkEdge map[string]interface{} `json:"SdkEdge,omitempty"` + SipEdge map[string]interface{} `json:"SipEdge,omitempty"` + StartTime time.Time `json:"StartTime,omitempty"` + Tags []string `json:"Tags,omitempty"` + To map[string]interface{} `json:"To,omitempty"` + Trust map[string]interface{} `json:"Trust,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/insights/v1/model_insights_v1_video_room_summary.go b/rest/insights/v1/model_insights_v1_video_room_summary.go index 040e114fe..12acb4cb9 100644 --- a/rest/insights/v1/model_insights_v1_video_room_summary.go +++ b/rest/insights/v1/model_insights_v1_video_room_summary.go @@ -14,30 +14,30 @@ import ( ) // InsightsV1VideoRoomSummary struct for InsightsV1VideoRoomSummary type InsightsV1VideoRoomSummary struct { - AccountSid string `json:"account_sid,omitempty"` - Codecs []string `json:"codecs,omitempty"` - ConcurrentParticipants *int32 `json:"concurrent_participants,omitempty"` - CreateTime time.Time `json:"create_time,omitempty"` - CreatedMethod string `json:"created_method,omitempty"` - DurationSec int32 `json:"duration_sec,omitempty"` - EdgeLocation string `json:"edge_location,omitempty"` - EndReason string `json:"end_reason,omitempty"` - EndTime time.Time `json:"end_time,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - MaxConcurrentParticipants *int32 `json:"max_concurrent_participants,omitempty"` - MaxParticipants *int32 `json:"max_participants,omitempty"` - MediaRegion string `json:"media_region,omitempty"` - ProcessingState string `json:"processing_state,omitempty"` - RecordingEnabled bool `json:"recording_enabled,omitempty"` - RoomName string `json:"room_name,omitempty"` - RoomSid string `json:"room_sid,omitempty"` - RoomStatus string `json:"room_status,omitempty"` - RoomType string `json:"room_type,omitempty"` - StatusCallback string `json:"status_callback,omitempty"` - StatusCallbackMethod string `json:"status_callback_method,omitempty"` - TotalParticipantDurationSec int32 `json:"total_participant_duration_sec,omitempty"` - TotalRecordingDurationSec int32 `json:"total_recording_duration_sec,omitempty"` - UniqueParticipantIdentities *int32 `json:"unique_participant_identities,omitempty"` - UniqueParticipants *int32 `json:"unique_participants,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Codecs []string `json:"Codecs,omitempty"` + ConcurrentParticipants *int32 `json:"ConcurrentParticipants,omitempty"` + CreateTime time.Time `json:"CreateTime,omitempty"` + CreatedMethod string `json:"CreatedMethod,omitempty"` + DurationSec int32 `json:"DurationSec,omitempty"` + EdgeLocation string `json:"EdgeLocation,omitempty"` + EndReason string `json:"EndReason,omitempty"` + EndTime time.Time `json:"EndTime,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + MaxConcurrentParticipants *int32 `json:"MaxConcurrentParticipants,omitempty"` + MaxParticipants *int32 `json:"MaxParticipants,omitempty"` + MediaRegion string `json:"MediaRegion,omitempty"` + ProcessingState string `json:"ProcessingState,omitempty"` + RecordingEnabled bool `json:"RecordingEnabled,omitempty"` + RoomName string `json:"RoomName,omitempty"` + RoomSid string `json:"RoomSid,omitempty"` + RoomStatus string `json:"RoomStatus,omitempty"` + RoomType string `json:"RoomType,omitempty"` + StatusCallback string `json:"StatusCallback,omitempty"` + StatusCallbackMethod string `json:"StatusCallbackMethod,omitempty"` + TotalParticipantDurationSec int32 `json:"TotalParticipantDurationSec,omitempty"` + TotalRecordingDurationSec int32 `json:"TotalRecordingDurationSec,omitempty"` + UniqueParticipantIdentities *int32 `json:"UniqueParticipantIdentities,omitempty"` + UniqueParticipants *int32 `json:"UniqueParticipants,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/insights/v1/model_insights_v1_video_room_summary_read_response.go b/rest/insights/v1/model_insights_v1_video_room_summary_read_response.go index cf1728d89..eb589eb2b 100644 --- a/rest/insights/v1/model_insights_v1_video_room_summary_read_response.go +++ b/rest/insights/v1/model_insights_v1_video_room_summary_read_response.go @@ -11,6 +11,6 @@ package openapi // InsightsV1VideoRoomSummaryReadResponse struct for InsightsV1VideoRoomSummaryReadResponse type InsightsV1VideoRoomSummaryReadResponse struct { - Meta InsightsV1VideoRoomSummaryReadResponseMeta `json:"meta,omitempty"` - Rooms []InsightsV1VideoRoomSummary `json:"rooms,omitempty"` + Meta InsightsV1VideoRoomSummaryReadResponseMeta `json:"Meta,omitempty"` + Rooms []InsightsV1VideoRoomSummary `json:"Rooms,omitempty"` } diff --git a/rest/insights/v1/model_insights_v1_video_room_summary_read_response_meta.go b/rest/insights/v1/model_insights_v1_video_room_summary_read_response_meta.go index 7eb74d3f3..b4050661e 100644 --- a/rest/insights/v1/model_insights_v1_video_room_summary_read_response_meta.go +++ b/rest/insights/v1/model_insights_v1_video_room_summary_read_response_meta.go @@ -11,11 +11,11 @@ package openapi // InsightsV1VideoRoomSummaryReadResponseMeta struct for InsightsV1VideoRoomSummaryReadResponseMeta type InsightsV1VideoRoomSummaryReadResponseMeta struct { - FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` - NextPageUrl string `json:"next_page_url,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUrl string `json:"previous_page_url,omitempty"` - Url string `json:"url,omitempty"` + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/insights/v1/model_insights_v1_video_room_summary_video_participant_summary.go b/rest/insights/v1/model_insights_v1_video_room_summary_video_participant_summary.go index aff3ce355..728803376 100644 --- a/rest/insights/v1/model_insights_v1_video_room_summary_video_participant_summary.go +++ b/rest/insights/v1/model_insights_v1_video_room_summary_video_participant_summary.go @@ -14,21 +14,21 @@ import ( ) // InsightsV1VideoRoomSummaryVideoParticipantSummary struct for InsightsV1VideoRoomSummaryVideoParticipantSummary type InsightsV1VideoRoomSummaryVideoParticipantSummary struct { - AccountSid string `json:"account_sid,omitempty"` - Codecs []string `json:"codecs,omitempty"` - DurationSec int32 `json:"duration_sec,omitempty"` - EdgeLocation string `json:"edge_location,omitempty"` - EndReason string `json:"end_reason,omitempty"` - ErrorCode *int32 `json:"error_code,omitempty"` - ErrorCodeUrl string `json:"error_code_url,omitempty"` - JoinTime time.Time `json:"join_time,omitempty"` - LeaveTime time.Time `json:"leave_time,omitempty"` - MediaRegion string `json:"media_region,omitempty"` - ParticipantIdentity string `json:"participant_identity,omitempty"` - ParticipantSid string `json:"participant_sid,omitempty"` - Properties map[string]interface{} `json:"properties,omitempty"` - PublisherInfo map[string]interface{} `json:"publisher_info,omitempty"` - RoomSid string `json:"room_sid,omitempty"` - Status string `json:"status,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Codecs []string `json:"Codecs,omitempty"` + DurationSec int32 `json:"DurationSec,omitempty"` + EdgeLocation string `json:"EdgeLocation,omitempty"` + EndReason string `json:"EndReason,omitempty"` + ErrorCode *int32 `json:"ErrorCode,omitempty"` + ErrorCodeUrl string `json:"ErrorCodeUrl,omitempty"` + JoinTime time.Time `json:"JoinTime,omitempty"` + LeaveTime time.Time `json:"LeaveTime,omitempty"` + MediaRegion string `json:"MediaRegion,omitempty"` + ParticipantIdentity string `json:"ParticipantIdentity,omitempty"` + ParticipantSid string `json:"ParticipantSid,omitempty"` + Properties map[string]interface{} `json:"Properties,omitempty"` + PublisherInfo map[string]interface{} `json:"PublisherInfo,omitempty"` + RoomSid string `json:"RoomSid,omitempty"` + Status string `json:"Status,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/insights/v1/model_insights_v1_video_room_summary_video_participant_summary_read_response.go b/rest/insights/v1/model_insights_v1_video_room_summary_video_participant_summary_read_response.go index 80fadaf50..996d6d2d3 100644 --- a/rest/insights/v1/model_insights_v1_video_room_summary_video_participant_summary_read_response.go +++ b/rest/insights/v1/model_insights_v1_video_room_summary_video_participant_summary_read_response.go @@ -11,6 +11,6 @@ package openapi // InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse struct for InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse type InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse struct { - Meta InsightsV1VideoRoomSummaryReadResponseMeta `json:"meta,omitempty"` - Participants []InsightsV1VideoRoomSummaryVideoParticipantSummary `json:"participants,omitempty"` + Meta InsightsV1VideoRoomSummaryReadResponseMeta `json:"Meta,omitempty"` + Participants []InsightsV1VideoRoomSummaryVideoParticipantSummary `json:"Participants,omitempty"` } diff --git a/rest/ip/messaging/api_default.go b/rest/ip/messaging/api_default.go index 1f72419ad..005dd9aa9 100644 --- a/rest/ip/messaging/api_default.go +++ b/rest/ip/messaging/api_default.go @@ -15,6 +15,8 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" + "time" ) type DefaultApiService struct { @@ -30,7 +32,7 @@ func NewDefaultApiService(client *twilio.Client) *DefaultApiService { } // CreateChannelParams Optional parameters for the method 'CreateChannel' type CreateChannelParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` Attributes *string `json:"Attributes,omitempty"` CreatedBy *string `json:"CreatedBy,omitempty"` DateCreated *time.Time `json:"DateCreated,omitempty"` @@ -42,7 +44,7 @@ type CreateChannelParams struct { /* CreateChannel Method for CreateChannel - * @param serviceSid + * @param ServiceSid * @param optional nil or *CreateChannelOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - @@ -54,37 +56,38 @@ CreateChannel Method for CreateChannel * @param "UniqueName" (string) - @return IpMessagingV2ServiceChannel */ -func (c *DefaultApiService) CreateChannel(serviceSid string, params *CreateChannelParams) (*IpMessagingV2ServiceChannel, error) { +func (c *DefaultApiService) CreateChannel(ServiceSid string, params *CreateChannelParams) (*IpMessagingV2ServiceChannel, error) { path := "/v2/Services/{ServiceSid}/Channels" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := make(map[string]interface{}) if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.CreatedBy != nil { - data.Set("CreatedBy", *params.CreatedBy) + data.Set("CreatedBy", *params.CreatedBy) } if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) + data.Set("DateCreated", fmt.Sprint(*params.DateCreated)) } if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) + data.Set("DateUpdated", fmt.Sprint(*params.DateUpdated)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Type != nil { - data.Set("Type", *params.Type) + data.Set("Type", *params.Type) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -103,57 +106,58 @@ func (c *DefaultApiService) CreateChannel(serviceSid string, params *CreateChann } // CreateChannelWebhookParams Optional parameters for the method 'CreateChannelWebhook' type CreateChannelWebhookParams struct { - Configuration.Filters *[]string `json:"Configuration.Filters,omitempty"` - Configuration.FlowSid *string `json:"Configuration.FlowSid,omitempty"` - Configuration.Method *string `json:"Configuration.Method,omitempty"` - Configuration.RetryCount *int32 `json:"Configuration.RetryCount,omitempty"` - Configuration.Triggers *[]string `json:"Configuration.Triggers,omitempty"` - Configuration.Url *string `json:"Configuration.Url,omitempty"` + ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` + ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` + ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` + ConfigurationRetryCount *int32 `json:"ConfigurationRetryCount,omitempty"` + ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` + ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` Type *string `json:"Type,omitempty"` } /* CreateChannelWebhook Method for CreateChannelWebhook - * @param serviceSid - * @param channelSid + * @param ServiceSid + * @param ChannelSid * @param optional nil or *CreateChannelWebhookOpts - Optional Parameters: - * @param "Configuration.Filters" ([]string) - - * @param "Configuration.FlowSid" (string) - - * @param "Configuration.Method" (string) - - * @param "Configuration.RetryCount" (int32) - - * @param "Configuration.Triggers" ([]string) - - * @param "Configuration.Url" (string) - + * @param "ConfigurationFilters" ([]string) - + * @param "ConfigurationFlowSid" (string) - + * @param "ConfigurationMethod" (string) - + * @param "ConfigurationRetryCount" (int32) - + * @param "ConfigurationTriggers" ([]string) - + * @param "ConfigurationUrl" (string) - * @param "Type" (string) - @return IpMessagingV2ServiceChannelChannelWebhook */ -func (c *DefaultApiService) CreateChannelWebhook(serviceSid string, channelSid string, params *CreateChannelWebhookParams) (*IpMessagingV2ServiceChannelChannelWebhook, error) { +func (c *DefaultApiService) CreateChannelWebhook(ServiceSid string, ChannelSid string, params *CreateChannelWebhookParams) (*IpMessagingV2ServiceChannelChannelWebhook, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + data := url.Values{} headers := 0 - if params != nil && params.Configuration.Filters != nil { - data.Set("Configuration.Filters", *params.Configuration.Filters) + if params != nil && params.ConfigurationFilters != nil { + data.Set("ConfigurationFilters", strings.Join(*params.ConfigurationFilters, ",")) } - if params != nil && params.Configuration.FlowSid != nil { - data.Set("Configuration.FlowSid", *params.Configuration.FlowSid) + if params != nil && params.ConfigurationFlowSid != nil { + data.Set("ConfigurationFlowSid", *params.ConfigurationFlowSid) } - if params != nil && params.Configuration.Method != nil { - data.Set("Configuration.Method", *params.Configuration.Method) + if params != nil && params.ConfigurationMethod != nil { + data.Set("ConfigurationMethod", *params.ConfigurationMethod) } - if params != nil && params.Configuration.RetryCount != nil { - data.Set("Configuration.RetryCount", string(*params.Configuration.RetryCount)) + if params != nil && params.ConfigurationRetryCount != nil { + data.Set("ConfigurationRetryCount", fmt.Sprint(*params.ConfigurationRetryCount)) } - if params != nil && params.Configuration.Triggers != nil { - data.Set("Configuration.Triggers", *params.Configuration.Triggers) + if params != nil && params.ConfigurationTriggers != nil { + data.Set("ConfigurationTriggers", strings.Join(*params.ConfigurationTriggers, ",")) } - if params != nil && params.Configuration.Url != nil { - data.Set("Configuration.Url", *params.Configuration.Url) + if params != nil && params.ConfigurationUrl != nil { + data.Set("ConfigurationUrl", *params.ConfigurationUrl) } if params != nil && params.Type != nil { - data.Set("Type", *params.Type) + data.Set("Type", *params.Type) } @@ -197,29 +201,30 @@ CreateCredential Method for CreateCredential func (c *DefaultApiService) CreateCredential(params *CreateCredentialParams) (*IpMessagingV2Credential, error) { path := "/v2/Credentials" + data := url.Values{} headers := 0 if params != nil && params.ApiKey != nil { - data.Set("ApiKey", *params.ApiKey) + data.Set("ApiKey", *params.ApiKey) } if params != nil && params.Certificate != nil { - data.Set("Certificate", *params.Certificate) + data.Set("Certificate", *params.Certificate) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.PrivateKey != nil { - data.Set("PrivateKey", *params.PrivateKey) + data.Set("PrivateKey", *params.PrivateKey) } if params != nil && params.Sandbox != nil { - data.Set("Sandbox", string(*params.Sandbox)) + data.Set("Sandbox", fmt.Sprint(*params.Sandbox)) } if params != nil && params.Secret != nil { - data.Set("Secret", *params.Secret) + data.Set("Secret", *params.Secret) } if params != nil && params.Type != nil { - data.Set("Type", *params.Type) + data.Set("Type", *params.Type) } @@ -245,26 +250,27 @@ type CreateInviteParams struct { /* CreateInvite Method for CreateInvite - * @param serviceSid - * @param channelSid + * @param ServiceSid + * @param ChannelSid * @param optional nil or *CreateInviteOpts - Optional Parameters: * @param "Identity" (string) - * @param "RoleSid" (string) - @return IpMessagingV2ServiceChannelInvite */ -func (c *DefaultApiService) CreateInvite(serviceSid string, channelSid string, params *CreateInviteParams) (*IpMessagingV2ServiceChannelInvite, error) { +func (c *DefaultApiService) CreateInvite(ServiceSid string, ChannelSid string, params *CreateInviteParams) (*IpMessagingV2ServiceChannelInvite, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) + data.Set("Identity", *params.Identity) } if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) + data.Set("RoleSid", *params.RoleSid) } @@ -284,7 +290,7 @@ func (c *DefaultApiService) CreateInvite(serviceSid string, channelSid string, p } // CreateMemberParams Optional parameters for the method 'CreateMember' type CreateMemberParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` Attributes *string `json:"Attributes,omitempty"` DateCreated *time.Time `json:"DateCreated,omitempty"` DateUpdated *time.Time `json:"DateUpdated,omitempty"` @@ -296,8 +302,8 @@ type CreateMemberParams struct { /* CreateMember Method for CreateMember - * @param serviceSid - * @param channelSid + * @param ServiceSid + * @param ChannelSid * @param optional nil or *CreateMemberOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - @@ -309,38 +315,39 @@ CreateMember Method for CreateMember * @param "RoleSid" (string) - @return IpMessagingV2ServiceChannelMember */ -func (c *DefaultApiService) CreateMember(serviceSid string, channelSid string, params *CreateMemberParams) (*IpMessagingV2ServiceChannelMember, error) { +func (c *DefaultApiService) CreateMember(ServiceSid string, ChannelSid string, params *CreateMemberParams) (*IpMessagingV2ServiceChannelMember, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + data := url.Values{} headers := make(map[string]interface{}) if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) + data.Set("DateCreated", fmt.Sprint(*params.DateCreated)) } if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) + data.Set("DateUpdated", fmt.Sprint(*params.DateUpdated)) } if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) + data.Set("Identity", *params.Identity) } if params != nil && params.LastConsumedMessageIndex != nil { - data.Set("LastConsumedMessageIndex", string(*params.LastConsumedMessageIndex)) + data.Set("LastConsumedMessageIndex", fmt.Sprint(*params.LastConsumedMessageIndex)) } if params != nil && params.LastConsumptionTimestamp != nil { - data.Set("LastConsumptionTimestamp", string(*params.LastConsumptionTimestamp)) + data.Set("LastConsumptionTimestamp", fmt.Sprint(*params.LastConsumptionTimestamp)) } if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) + data.Set("RoleSid", *params.RoleSid) } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -359,7 +366,7 @@ func (c *DefaultApiService) CreateMember(serviceSid string, channelSid string, p } // CreateMessageParams Optional parameters for the method 'CreateMessage' type CreateMessageParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` Attributes *string `json:"Attributes,omitempty"` Body *string `json:"Body,omitempty"` DateCreated *time.Time `json:"DateCreated,omitempty"` @@ -371,8 +378,8 @@ type CreateMessageParams struct { /* CreateMessage Method for CreateMessage - * @param serviceSid - * @param channelSid + * @param ServiceSid + * @param ChannelSid * @param optional nil or *CreateMessageOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - @@ -384,38 +391,39 @@ CreateMessage Method for CreateMessage * @param "MediaSid" (string) - @return IpMessagingV2ServiceChannelMessage */ -func (c *DefaultApiService) CreateMessage(serviceSid string, channelSid string, params *CreateMessageParams) (*IpMessagingV2ServiceChannelMessage, error) { +func (c *DefaultApiService) CreateMessage(ServiceSid string, ChannelSid string, params *CreateMessageParams) (*IpMessagingV2ServiceChannelMessage, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + data := url.Values{} headers := make(map[string]interface{}) if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.Body != nil { - data.Set("Body", *params.Body) + data.Set("Body", *params.Body) } if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) + data.Set("DateCreated", fmt.Sprint(*params.DateCreated)) } if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) + data.Set("DateUpdated", fmt.Sprint(*params.DateUpdated)) } if params != nil && params.From != nil { - data.Set("From", *params.From) + data.Set("From", *params.From) } if params != nil && params.LastUpdatedBy != nil { - data.Set("LastUpdatedBy", *params.LastUpdatedBy) + data.Set("LastUpdatedBy", *params.LastUpdatedBy) } if params != nil && params.MediaSid != nil { - data.Set("MediaSid", *params.MediaSid) + data.Set("MediaSid", *params.MediaSid) } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -441,28 +449,29 @@ type CreateRoleParams struct { /* CreateRole Method for CreateRole - * @param serviceSid + * @param ServiceSid * @param optional nil or *CreateRoleOpts - Optional Parameters: * @param "FriendlyName" (string) - * @param "Permission" ([]string) - * @param "Type" (string) - @return IpMessagingV2ServiceRole */ -func (c *DefaultApiService) CreateRole(serviceSid string, params *CreateRoleParams) (*IpMessagingV2ServiceRole, error) { +func (c *DefaultApiService) CreateRole(ServiceSid string, params *CreateRoleParams) (*IpMessagingV2ServiceRole, error) { path := "/v2/Services/{ServiceSid}/Roles" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Permission != nil { - data.Set("Permission", *params.Permission) + data.Set("Permission", strings.Join(*params.Permission, ",")) } if params != nil && params.Type != nil { - data.Set("Type", *params.Type) + data.Set("Type", *params.Type) } @@ -494,11 +503,12 @@ CreateService Method for CreateService func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*IpMessagingV2Service, error) { path := "/v2/Services" + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -518,7 +528,7 @@ func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*IpMessa } // CreateUserParams Optional parameters for the method 'CreateUser' type CreateUserParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` Attributes *string `json:"Attributes,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` Identity *string `json:"Identity,omitempty"` @@ -527,7 +537,7 @@ type CreateUserParams struct { /* CreateUser Method for CreateUser - * @param serviceSid + * @param ServiceSid * @param optional nil or *CreateUserOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - @@ -536,28 +546,29 @@ CreateUser Method for CreateUser * @param "RoleSid" (string) - @return IpMessagingV2ServiceUser */ -func (c *DefaultApiService) CreateUser(serviceSid string, params *CreateUserParams) (*IpMessagingV2ServiceUser, error) { +func (c *DefaultApiService) CreateUser(ServiceSid string, params *CreateUserParams) (*IpMessagingV2ServiceUser, error) { path := "/v2/Services/{ServiceSid}/Users" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := make(map[string]interface{}) if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) + data.Set("Identity", *params.Identity) } if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) + data.Set("RoleSid", *params.RoleSid) } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -577,15 +588,16 @@ func (c *DefaultApiService) CreateUser(serviceSid string, params *CreateUserPara /* DeleteBinding Method for DeleteBinding - * @param serviceSid - * @param sid + * @param ServiceSid + * @param Sid */ -func (c *DefaultApiService) DeleteBinding(serviceSid string, sid string) (error) { +func (c *DefaultApiService) DeleteBinding(ServiceSid string, Sid string) (error) { path := "/v2/Services/{ServiceSid}/Bindings/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -601,27 +613,28 @@ func (c *DefaultApiService) DeleteBinding(serviceSid string, sid string) (error) } // DeleteChannelParams Optional parameters for the method 'DeleteChannel' type DeleteChannelParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* DeleteChannel Method for DeleteChannel - * @param serviceSid - * @param sid + * @param ServiceSid + * @param Sid * @param optional nil or *DeleteChannelOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ -func (c *DefaultApiService) DeleteChannel(serviceSid string, sid string, params *DeleteChannelParams) (error) { +func (c *DefaultApiService) DeleteChannel(ServiceSid string, Sid string, params *DeleteChannelParams) (error) { path := "/v2/Services/{ServiceSid}/Channels/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := make(map[string]interface{}) - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Delete(c.baseURL+path, data, headers) @@ -636,17 +649,18 @@ func (c *DefaultApiService) DeleteChannel(serviceSid string, sid string, params /* DeleteChannelWebhook Method for DeleteChannelWebhook - * @param serviceSid - * @param channelSid - * @param sid + * @param ServiceSid + * @param ChannelSid + * @param Sid */ -func (c *DefaultApiService) DeleteChannelWebhook(serviceSid string, channelSid string, sid string) (error) { +func (c *DefaultApiService) DeleteChannelWebhook(ServiceSid string, ChannelSid string, Sid string) (error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -663,13 +677,14 @@ func (c *DefaultApiService) DeleteChannelWebhook(serviceSid string, channelSid s /* DeleteCredential Method for DeleteCredential - * @param sid + * @param Sid */ -func (c *DefaultApiService) DeleteCredential(sid string) (error) { +func (c *DefaultApiService) DeleteCredential(Sid string) (error) { path := "/v2/Credentials/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -686,17 +701,18 @@ func (c *DefaultApiService) DeleteCredential(sid string) (error) { /* DeleteInvite Method for DeleteInvite - * @param serviceSid - * @param channelSid - * @param sid + * @param ServiceSid + * @param ChannelSid + * @param Sid */ -func (c *DefaultApiService) DeleteInvite(serviceSid string, channelSid string, sid string) (error) { +func (c *DefaultApiService) DeleteInvite(ServiceSid string, ChannelSid string, Sid string) (error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -712,29 +728,30 @@ func (c *DefaultApiService) DeleteInvite(serviceSid string, channelSid string, s } // DeleteMemberParams Optional parameters for the method 'DeleteMember' type DeleteMemberParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* DeleteMember Method for DeleteMember - * @param serviceSid - * @param channelSid - * @param sid + * @param ServiceSid + * @param ChannelSid + * @param Sid * @param optional nil or *DeleteMemberOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ -func (c *DefaultApiService) DeleteMember(serviceSid string, channelSid string, sid string, params *DeleteMemberParams) (error) { +func (c *DefaultApiService) DeleteMember(ServiceSid string, ChannelSid string, Sid string, params *DeleteMemberParams) (error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := make(map[string]interface{}) - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Delete(c.baseURL+path, data, headers) @@ -748,29 +765,30 @@ func (c *DefaultApiService) DeleteMember(serviceSid string, channelSid string, s } // DeleteMessageParams Optional parameters for the method 'DeleteMessage' type DeleteMessageParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* DeleteMessage Method for DeleteMessage - * @param serviceSid - * @param channelSid - * @param sid + * @param ServiceSid + * @param ChannelSid + * @param Sid * @param optional nil or *DeleteMessageOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ -func (c *DefaultApiService) DeleteMessage(serviceSid string, channelSid string, sid string, params *DeleteMessageParams) (error) { +func (c *DefaultApiService) DeleteMessage(ServiceSid string, ChannelSid string, Sid string, params *DeleteMessageParams) (error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := make(map[string]interface{}) - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Delete(c.baseURL+path, data, headers) @@ -785,15 +803,16 @@ func (c *DefaultApiService) DeleteMessage(serviceSid string, channelSid string, /* DeleteRole Method for DeleteRole - * @param serviceSid - * @param sid + * @param ServiceSid + * @param Sid */ -func (c *DefaultApiService) DeleteRole(serviceSid string, sid string) (error) { +func (c *DefaultApiService) DeleteRole(ServiceSid string, Sid string) (error) { path := "/v2/Services/{ServiceSid}/Roles/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -810,13 +829,14 @@ func (c *DefaultApiService) DeleteRole(serviceSid string, sid string) (error) { /* DeleteService Method for DeleteService - * @param sid + * @param Sid */ -func (c *DefaultApiService) DeleteService(sid string) (error) { +func (c *DefaultApiService) DeleteService(Sid string) (error) { path := "/v2/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -833,15 +853,16 @@ func (c *DefaultApiService) DeleteService(sid string) (error) { /* DeleteUser Method for DeleteUser - * @param serviceSid - * @param sid + * @param ServiceSid + * @param Sid */ -func (c *DefaultApiService) DeleteUser(serviceSid string, sid string) (error) { +func (c *DefaultApiService) DeleteUser(ServiceSid string, Sid string) (error) { path := "/v2/Services/{ServiceSid}/Users/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -858,17 +879,18 @@ func (c *DefaultApiService) DeleteUser(serviceSid string, sid string) (error) { /* DeleteUserBinding Method for DeleteUserBinding - * @param serviceSid - * @param userSid - * @param sid + * @param ServiceSid + * @param UserSid + * @param Sid */ -func (c *DefaultApiService) DeleteUserBinding(serviceSid string, userSid string, sid string) (error) { +func (c *DefaultApiService) DeleteUserBinding(ServiceSid string, UserSid string, Sid string) (error) { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", UserSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -885,17 +907,18 @@ func (c *DefaultApiService) DeleteUserBinding(serviceSid string, userSid string, /* DeleteUserChannel Method for DeleteUserChannel - * @param serviceSid - * @param userSid - * @param channelSid + * @param ServiceSid + * @param UserSid + * @param ChannelSid */ -func (c *DefaultApiService) DeleteUserChannel(serviceSid string, userSid string, channelSid string) (error) { +func (c *DefaultApiService) DeleteUserChannel(ServiceSid string, UserSid string, ChannelSid string) (error) { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", UserSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -912,16 +935,17 @@ func (c *DefaultApiService) DeleteUserChannel(serviceSid string, userSid string, /* FetchBinding Method for FetchBinding - * @param serviceSid - * @param sid + * @param ServiceSid + * @param Sid @return IpMessagingV2ServiceBinding */ -func (c *DefaultApiService) FetchBinding(serviceSid string, sid string) (*IpMessagingV2ServiceBinding, error) { +func (c *DefaultApiService) FetchBinding(ServiceSid string, Sid string) (*IpMessagingV2ServiceBinding, error) { path := "/v2/Services/{ServiceSid}/Bindings/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -943,16 +967,17 @@ func (c *DefaultApiService) FetchBinding(serviceSid string, sid string) (*IpMess /* FetchChannel Method for FetchChannel - * @param serviceSid - * @param sid + * @param ServiceSid + * @param Sid @return IpMessagingV2ServiceChannel */ -func (c *DefaultApiService) FetchChannel(serviceSid string, sid string) (*IpMessagingV2ServiceChannel, error) { +func (c *DefaultApiService) FetchChannel(ServiceSid string, Sid string) (*IpMessagingV2ServiceChannel, error) { path := "/v2/Services/{ServiceSid}/Channels/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -974,18 +999,19 @@ func (c *DefaultApiService) FetchChannel(serviceSid string, sid string) (*IpMess /* FetchChannelWebhook Method for FetchChannelWebhook - * @param serviceSid - * @param channelSid - * @param sid + * @param ServiceSid + * @param ChannelSid + * @param Sid @return IpMessagingV2ServiceChannelChannelWebhook */ -func (c *DefaultApiService) FetchChannelWebhook(serviceSid string, channelSid string, sid string) (*IpMessagingV2ServiceChannelChannelWebhook, error) { +func (c *DefaultApiService) FetchChannelWebhook(ServiceSid string, ChannelSid string, Sid string) (*IpMessagingV2ServiceChannelChannelWebhook, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1007,14 +1033,15 @@ func (c *DefaultApiService) FetchChannelWebhook(serviceSid string, channelSid st /* FetchCredential Method for FetchCredential - * @param sid + * @param Sid @return IpMessagingV2Credential */ -func (c *DefaultApiService) FetchCredential(sid string) (*IpMessagingV2Credential, error) { +func (c *DefaultApiService) FetchCredential(Sid string) (*IpMessagingV2Credential, error) { path := "/v2/Credentials/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1036,18 +1063,19 @@ func (c *DefaultApiService) FetchCredential(sid string) (*IpMessagingV2Credentia /* FetchInvite Method for FetchInvite - * @param serviceSid - * @param channelSid - * @param sid + * @param ServiceSid + * @param ChannelSid + * @param Sid @return IpMessagingV2ServiceChannelInvite */ -func (c *DefaultApiService) FetchInvite(serviceSid string, channelSid string, sid string) (*IpMessagingV2ServiceChannelInvite, error) { +func (c *DefaultApiService) FetchInvite(ServiceSid string, ChannelSid string, Sid string) (*IpMessagingV2ServiceChannelInvite, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1069,18 +1097,19 @@ func (c *DefaultApiService) FetchInvite(serviceSid string, channelSid string, si /* FetchMember Method for FetchMember - * @param serviceSid - * @param channelSid - * @param sid + * @param ServiceSid + * @param ChannelSid + * @param Sid @return IpMessagingV2ServiceChannelMember */ -func (c *DefaultApiService) FetchMember(serviceSid string, channelSid string, sid string) (*IpMessagingV2ServiceChannelMember, error) { +func (c *DefaultApiService) FetchMember(ServiceSid string, ChannelSid string, Sid string) (*IpMessagingV2ServiceChannelMember, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1102,18 +1131,19 @@ func (c *DefaultApiService) FetchMember(serviceSid string, channelSid string, si /* FetchMessage Method for FetchMessage - * @param serviceSid - * @param channelSid - * @param sid + * @param ServiceSid + * @param ChannelSid + * @param Sid @return IpMessagingV2ServiceChannelMessage */ -func (c *DefaultApiService) FetchMessage(serviceSid string, channelSid string, sid string) (*IpMessagingV2ServiceChannelMessage, error) { +func (c *DefaultApiService) FetchMessage(ServiceSid string, ChannelSid string, Sid string) (*IpMessagingV2ServiceChannelMessage, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1135,16 +1165,17 @@ func (c *DefaultApiService) FetchMessage(serviceSid string, channelSid string, s /* FetchRole Method for FetchRole - * @param serviceSid - * @param sid + * @param ServiceSid + * @param Sid @return IpMessagingV2ServiceRole */ -func (c *DefaultApiService) FetchRole(serviceSid string, sid string) (*IpMessagingV2ServiceRole, error) { +func (c *DefaultApiService) FetchRole(ServiceSid string, Sid string) (*IpMessagingV2ServiceRole, error) { path := "/v2/Services/{ServiceSid}/Roles/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1166,14 +1197,15 @@ func (c *DefaultApiService) FetchRole(serviceSid string, sid string) (*IpMessagi /* FetchService Method for FetchService - * @param sid + * @param Sid @return IpMessagingV2Service */ -func (c *DefaultApiService) FetchService(sid string) (*IpMessagingV2Service, error) { +func (c *DefaultApiService) FetchService(Sid string) (*IpMessagingV2Service, error) { path := "/v2/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1195,16 +1227,17 @@ func (c *DefaultApiService) FetchService(sid string) (*IpMessagingV2Service, err /* FetchUser Method for FetchUser - * @param serviceSid - * @param sid + * @param ServiceSid + * @param Sid @return IpMessagingV2ServiceUser */ -func (c *DefaultApiService) FetchUser(serviceSid string, sid string) (*IpMessagingV2ServiceUser, error) { +func (c *DefaultApiService) FetchUser(ServiceSid string, Sid string) (*IpMessagingV2ServiceUser, error) { path := "/v2/Services/{ServiceSid}/Users/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1226,18 +1259,19 @@ func (c *DefaultApiService) FetchUser(serviceSid string, sid string) (*IpMessagi /* FetchUserBinding Method for FetchUserBinding - * @param serviceSid - * @param userSid - * @param sid + * @param ServiceSid + * @param UserSid + * @param Sid @return IpMessagingV2ServiceUserUserBinding */ -func (c *DefaultApiService) FetchUserBinding(serviceSid string, userSid string, sid string) (*IpMessagingV2ServiceUserUserBinding, error) { +func (c *DefaultApiService) FetchUserBinding(ServiceSid string, UserSid string, Sid string) (*IpMessagingV2ServiceUserUserBinding, error) { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", UserSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1259,18 +1293,19 @@ func (c *DefaultApiService) FetchUserBinding(serviceSid string, userSid string, /* FetchUserChannel Method for FetchUserChannel - * @param serviceSid - * @param userSid - * @param channelSid + * @param ServiceSid + * @param UserSid + * @param ChannelSid @return IpMessagingV2ServiceUserUserChannel */ -func (c *DefaultApiService) FetchUserChannel(serviceSid string, userSid string, channelSid string) (*IpMessagingV2ServiceUserUserChannel, error) { +func (c *DefaultApiService) FetchUserChannel(ServiceSid string, UserSid string, ChannelSid string) (*IpMessagingV2ServiceUserUserChannel, error) { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", UserSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1298,28 +1333,29 @@ type ListBindingParams struct { /* ListBinding Method for ListBinding - * @param serviceSid + * @param ServiceSid * @param optional nil or *ListBindingOpts - Optional Parameters: * @param "BindingType" ([]string) - * @param "Identity" ([]string) - * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return IpMessagingV2ServiceBindingReadResponse */ -func (c *DefaultApiService) ListBinding(serviceSid string, params *ListBindingParams) (*IpMessagingV2ServiceBindingReadResponse, error) { +func (c *DefaultApiService) ListBinding(ServiceSid string, params *ListBindingParams) (*IpMessagingV2ServiceBindingReadResponse, error) { path := "/v2/Services/{ServiceSid}/Bindings" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.BindingType != nil { - data.Set("BindingType", string(*params.BindingType)) + data.Set("BindingType", strings.Join(*params.BindingType, ",")) } if params != nil && params.Identity != nil { - data.Set("Identity", string(*params.Identity)) + data.Set("Identity", strings.Join(*params.Identity, ",")) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1345,24 +1381,25 @@ type ListChannelParams struct { /* ListChannel Method for ListChannel - * @param serviceSid + * @param ServiceSid * @param optional nil or *ListChannelOpts - Optional Parameters: * @param "Type" ([]string) - * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return IpMessagingV2ServiceChannelReadResponse */ -func (c *DefaultApiService) ListChannel(serviceSid string, params *ListChannelParams) (*IpMessagingV2ServiceChannelReadResponse, error) { +func (c *DefaultApiService) ListChannel(ServiceSid string, params *ListChannelParams) (*IpMessagingV2ServiceChannelReadResponse, error) { path := "/v2/Services/{ServiceSid}/Channels" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Type != nil { - data.Set("Type", string(*params.Type)) + data.Set("Type", strings.Join(*params.Type, ",")) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1387,22 +1424,23 @@ type ListChannelWebhookParams struct { /* ListChannelWebhook Method for ListChannelWebhook - * @param serviceSid - * @param channelSid + * @param ServiceSid + * @param ChannelSid * @param optional nil or *ListChannelWebhookOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return IpMessagingV2ServiceChannelChannelWebhookReadResponse */ -func (c *DefaultApiService) ListChannelWebhook(serviceSid string, channelSid string, params *ListChannelWebhookParams) (*IpMessagingV2ServiceChannelChannelWebhookReadResponse, error) { +func (c *DefaultApiService) ListChannelWebhook(ServiceSid string, ChannelSid string, params *ListChannelWebhookParams) (*IpMessagingV2ServiceChannelChannelWebhookReadResponse, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1434,11 +1472,12 @@ ListCredential Method for ListCredential func (c *DefaultApiService) ListCredential(params *ListCredentialParams) (*IpMessagingV2CredentialReadResponse, error) { path := "/v2/Credentials" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1464,26 +1503,27 @@ type ListInviteParams struct { /* ListInvite Method for ListInvite - * @param serviceSid - * @param channelSid + * @param ServiceSid + * @param ChannelSid * @param optional nil or *ListInviteOpts - Optional Parameters: * @param "Identity" ([]string) - * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return IpMessagingV2ServiceChannelInviteReadResponse */ -func (c *DefaultApiService) ListInvite(serviceSid string, channelSid string, params *ListInviteParams) (*IpMessagingV2ServiceChannelInviteReadResponse, error) { +func (c *DefaultApiService) ListInvite(ServiceSid string, ChannelSid string, params *ListInviteParams) (*IpMessagingV2ServiceChannelInviteReadResponse, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Identity != nil { - data.Set("Identity", string(*params.Identity)) + data.Set("Identity", strings.Join(*params.Identity, ",")) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1509,26 +1549,27 @@ type ListMemberParams struct { /* ListMember Method for ListMember - * @param serviceSid - * @param channelSid + * @param ServiceSid + * @param ChannelSid * @param optional nil or *ListMemberOpts - Optional Parameters: * @param "Identity" ([]string) - * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return IpMessagingV2ServiceChannelMemberReadResponse */ -func (c *DefaultApiService) ListMember(serviceSid string, channelSid string, params *ListMemberParams) (*IpMessagingV2ServiceChannelMemberReadResponse, error) { +func (c *DefaultApiService) ListMember(ServiceSid string, ChannelSid string, params *ListMemberParams) (*IpMessagingV2ServiceChannelMemberReadResponse, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Identity != nil { - data.Set("Identity", string(*params.Identity)) + data.Set("Identity", strings.Join(*params.Identity, ",")) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1554,26 +1595,27 @@ type ListMessageParams struct { /* ListMessage Method for ListMessage - * @param serviceSid - * @param channelSid + * @param ServiceSid + * @param ChannelSid * @param optional nil or *ListMessageOpts - Optional Parameters: * @param "Order" (string) - * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return IpMessagingV2ServiceChannelMessageReadResponse */ -func (c *DefaultApiService) ListMessage(serviceSid string, channelSid string, params *ListMessageParams) (*IpMessagingV2ServiceChannelMessageReadResponse, error) { +func (c *DefaultApiService) ListMessage(ServiceSid string, ChannelSid string, params *ListMessageParams) (*IpMessagingV2ServiceChannelMessageReadResponse, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Order != nil { - data.Set("Order", *params.Order) + data.Set("Order", *params.Order) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1598,20 +1640,21 @@ type ListRoleParams struct { /* ListRole Method for ListRole - * @param serviceSid + * @param ServiceSid * @param optional nil or *ListRoleOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return IpMessagingV2ServiceRoleReadResponse */ -func (c *DefaultApiService) ListRole(serviceSid string, params *ListRoleParams) (*IpMessagingV2ServiceRoleReadResponse, error) { +func (c *DefaultApiService) ListRole(ServiceSid string, params *ListRoleParams) (*IpMessagingV2ServiceRoleReadResponse, error) { path := "/v2/Services/{ServiceSid}/Roles" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1643,11 +1686,12 @@ ListService Method for ListService func (c *DefaultApiService) ListService(params *ListServiceParams) (*IpMessagingV2ServiceReadResponse, error) { path := "/v2/Services" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1672,20 +1716,21 @@ type ListUserParams struct { /* ListUser Method for ListUser - * @param serviceSid + * @param ServiceSid * @param optional nil or *ListUserOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return IpMessagingV2ServiceUserReadResponse */ -func (c *DefaultApiService) ListUser(serviceSid string, params *ListUserParams) (*IpMessagingV2ServiceUserReadResponse, error) { +func (c *DefaultApiService) ListUser(ServiceSid string, params *ListUserParams) (*IpMessagingV2ServiceUserReadResponse, error) { path := "/v2/Services/{ServiceSid}/Users" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1711,26 +1756,27 @@ type ListUserBindingParams struct { /* ListUserBinding Method for ListUserBinding - * @param serviceSid - * @param userSid + * @param ServiceSid + * @param UserSid * @param optional nil or *ListUserBindingOpts - Optional Parameters: * @param "BindingType" ([]string) - * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return IpMessagingV2ServiceUserUserBindingReadResponse */ -func (c *DefaultApiService) ListUserBinding(serviceSid string, userSid string, params *ListUserBindingParams) (*IpMessagingV2ServiceUserUserBindingReadResponse, error) { +func (c *DefaultApiService) ListUserBinding(ServiceSid string, UserSid string, params *ListUserBindingParams) (*IpMessagingV2ServiceUserUserBindingReadResponse, error) { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", UserSid, -1) + data := url.Values{} headers := 0 if params != nil && params.BindingType != nil { - data.Set("BindingType", string(*params.BindingType)) + data.Set("BindingType", strings.Join(*params.BindingType, ",")) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1755,22 +1801,23 @@ type ListUserChannelParams struct { /* ListUserChannel Method for ListUserChannel - * @param serviceSid - * @param userSid + * @param ServiceSid + * @param UserSid * @param optional nil or *ListUserChannelOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return IpMessagingV2ServiceUserUserChannelReadResponse */ -func (c *DefaultApiService) ListUserChannel(serviceSid string, userSid string, params *ListUserChannelParams) (*IpMessagingV2ServiceUserUserChannelReadResponse, error) { +func (c *DefaultApiService) ListUserChannel(ServiceSid string, UserSid string, params *ListUserChannelParams) (*IpMessagingV2ServiceUserUserChannelReadResponse, error) { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", UserSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1790,7 +1837,7 @@ func (c *DefaultApiService) ListUserChannel(serviceSid string, userSid string, p } // UpdateChannelParams Optional parameters for the method 'UpdateChannel' type UpdateChannelParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` Attributes *string `json:"Attributes,omitempty"` CreatedBy *string `json:"CreatedBy,omitempty"` DateCreated *time.Time `json:"DateCreated,omitempty"` @@ -1801,8 +1848,8 @@ type UpdateChannelParams struct { /* UpdateChannel Method for UpdateChannel - * @param serviceSid - * @param sid + * @param ServiceSid + * @param Sid * @param optional nil or *UpdateChannelOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - @@ -1813,35 +1860,36 @@ UpdateChannel Method for UpdateChannel * @param "UniqueName" (string) - @return IpMessagingV2ServiceChannel */ -func (c *DefaultApiService) UpdateChannel(serviceSid string, sid string, params *UpdateChannelParams) (*IpMessagingV2ServiceChannel, error) { +func (c *DefaultApiService) UpdateChannel(ServiceSid string, Sid string, params *UpdateChannelParams) (*IpMessagingV2ServiceChannel, error) { path := "/v2/Services/{ServiceSid}/Channels/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := make(map[string]interface{}) if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.CreatedBy != nil { - data.Set("CreatedBy", *params.CreatedBy) + data.Set("CreatedBy", *params.CreatedBy) } if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) + data.Set("DateCreated", fmt.Sprint(*params.DateCreated)) } if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) + data.Set("DateUpdated", fmt.Sprint(*params.DateUpdated)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -1860,54 +1908,55 @@ func (c *DefaultApiService) UpdateChannel(serviceSid string, sid string, params } // UpdateChannelWebhookParams Optional parameters for the method 'UpdateChannelWebhook' type UpdateChannelWebhookParams struct { - Configuration.Filters *[]string `json:"Configuration.Filters,omitempty"` - Configuration.FlowSid *string `json:"Configuration.FlowSid,omitempty"` - Configuration.Method *string `json:"Configuration.Method,omitempty"` - Configuration.RetryCount *int32 `json:"Configuration.RetryCount,omitempty"` - Configuration.Triggers *[]string `json:"Configuration.Triggers,omitempty"` - Configuration.Url *string `json:"Configuration.Url,omitempty"` + ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` + ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` + ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` + ConfigurationRetryCount *int32 `json:"ConfigurationRetryCount,omitempty"` + ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` + ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` } /* UpdateChannelWebhook Method for UpdateChannelWebhook - * @param serviceSid - * @param channelSid - * @param sid + * @param ServiceSid + * @param ChannelSid + * @param Sid * @param optional nil or *UpdateChannelWebhookOpts - Optional Parameters: - * @param "Configuration.Filters" ([]string) - - * @param "Configuration.FlowSid" (string) - - * @param "Configuration.Method" (string) - - * @param "Configuration.RetryCount" (int32) - - * @param "Configuration.Triggers" ([]string) - - * @param "Configuration.Url" (string) - + * @param "ConfigurationFilters" ([]string) - + * @param "ConfigurationFlowSid" (string) - + * @param "ConfigurationMethod" (string) - + * @param "ConfigurationRetryCount" (int32) - + * @param "ConfigurationTriggers" ([]string) - + * @param "ConfigurationUrl" (string) - @return IpMessagingV2ServiceChannelChannelWebhook */ -func (c *DefaultApiService) UpdateChannelWebhook(serviceSid string, channelSid string, sid string, params *UpdateChannelWebhookParams) (*IpMessagingV2ServiceChannelChannelWebhook, error) { +func (c *DefaultApiService) UpdateChannelWebhook(ServiceSid string, ChannelSid string, Sid string, params *UpdateChannelWebhookParams) (*IpMessagingV2ServiceChannelChannelWebhook, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 - if params != nil && params.Configuration.Filters != nil { - data.Set("Configuration.Filters", *params.Configuration.Filters) + if params != nil && params.ConfigurationFilters != nil { + data.Set("ConfigurationFilters", strings.Join(*params.ConfigurationFilters, ",")) } - if params != nil && params.Configuration.FlowSid != nil { - data.Set("Configuration.FlowSid", *params.Configuration.FlowSid) + if params != nil && params.ConfigurationFlowSid != nil { + data.Set("ConfigurationFlowSid", *params.ConfigurationFlowSid) } - if params != nil && params.Configuration.Method != nil { - data.Set("Configuration.Method", *params.Configuration.Method) + if params != nil && params.ConfigurationMethod != nil { + data.Set("ConfigurationMethod", *params.ConfigurationMethod) } - if params != nil && params.Configuration.RetryCount != nil { - data.Set("Configuration.RetryCount", string(*params.Configuration.RetryCount)) + if params != nil && params.ConfigurationRetryCount != nil { + data.Set("ConfigurationRetryCount", fmt.Sprint(*params.ConfigurationRetryCount)) } - if params != nil && params.Configuration.Triggers != nil { - data.Set("Configuration.Triggers", *params.Configuration.Triggers) + if params != nil && params.ConfigurationTriggers != nil { + data.Set("ConfigurationTriggers", strings.Join(*params.ConfigurationTriggers, ",")) } - if params != nil && params.Configuration.Url != nil { - data.Set("Configuration.Url", *params.Configuration.Url) + if params != nil && params.ConfigurationUrl != nil { + data.Set("ConfigurationUrl", *params.ConfigurationUrl) } @@ -1937,7 +1986,7 @@ type UpdateCredentialParams struct { /* UpdateCredential Method for UpdateCredential - * @param sid + * @param Sid * @param optional nil or *UpdateCredentialOpts - Optional Parameters: * @param "ApiKey" (string) - * @param "Certificate" (string) - @@ -1947,30 +1996,31 @@ UpdateCredential Method for UpdateCredential * @param "Secret" (string) - @return IpMessagingV2Credential */ -func (c *DefaultApiService) UpdateCredential(sid string, params *UpdateCredentialParams) (*IpMessagingV2Credential, error) { +func (c *DefaultApiService) UpdateCredential(Sid string, params *UpdateCredentialParams) (*IpMessagingV2Credential, error) { path := "/v2/Credentials/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.ApiKey != nil { - data.Set("ApiKey", *params.ApiKey) + data.Set("ApiKey", *params.ApiKey) } if params != nil && params.Certificate != nil { - data.Set("Certificate", *params.Certificate) + data.Set("Certificate", *params.Certificate) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.PrivateKey != nil { - data.Set("PrivateKey", *params.PrivateKey) + data.Set("PrivateKey", *params.PrivateKey) } if params != nil && params.Sandbox != nil { - data.Set("Sandbox", string(*params.Sandbox)) + data.Set("Sandbox", fmt.Sprint(*params.Sandbox)) } if params != nil && params.Secret != nil { - data.Set("Secret", *params.Secret) + data.Set("Secret", *params.Secret) } @@ -1990,7 +2040,7 @@ func (c *DefaultApiService) UpdateCredential(sid string, params *UpdateCredentia } // UpdateMemberParams Optional parameters for the method 'UpdateMember' type UpdateMemberParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` Attributes *string `json:"Attributes,omitempty"` DateCreated *time.Time `json:"DateCreated,omitempty"` DateUpdated *time.Time `json:"DateUpdated,omitempty"` @@ -2001,9 +2051,9 @@ type UpdateMemberParams struct { /* UpdateMember Method for UpdateMember - * @param serviceSid - * @param channelSid - * @param sid + * @param ServiceSid + * @param ChannelSid + * @param Sid * @param optional nil or *UpdateMemberOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - @@ -2014,36 +2064,37 @@ UpdateMember Method for UpdateMember * @param "RoleSid" (string) - @return IpMessagingV2ServiceChannelMember */ -func (c *DefaultApiService) UpdateMember(serviceSid string, channelSid string, sid string, params *UpdateMemberParams) (*IpMessagingV2ServiceChannelMember, error) { +func (c *DefaultApiService) UpdateMember(ServiceSid string, ChannelSid string, Sid string, params *UpdateMemberParams) (*IpMessagingV2ServiceChannelMember, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := make(map[string]interface{}) if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) + data.Set("DateCreated", fmt.Sprint(*params.DateCreated)) } if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) + data.Set("DateUpdated", fmt.Sprint(*params.DateUpdated)) } if params != nil && params.LastConsumedMessageIndex != nil { - data.Set("LastConsumedMessageIndex", string(*params.LastConsumedMessageIndex)) + data.Set("LastConsumedMessageIndex", fmt.Sprint(*params.LastConsumedMessageIndex)) } if params != nil && params.LastConsumptionTimestamp != nil { - data.Set("LastConsumptionTimestamp", string(*params.LastConsumptionTimestamp)) + data.Set("LastConsumptionTimestamp", fmt.Sprint(*params.LastConsumptionTimestamp)) } if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) + data.Set("RoleSid", *params.RoleSid) } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -2062,7 +2113,7 @@ func (c *DefaultApiService) UpdateMember(serviceSid string, channelSid string, s } // UpdateMessageParams Optional parameters for the method 'UpdateMessage' type UpdateMessageParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` Attributes *string `json:"Attributes,omitempty"` Body *string `json:"Body,omitempty"` DateCreated *time.Time `json:"DateCreated,omitempty"` @@ -2073,9 +2124,9 @@ type UpdateMessageParams struct { /* UpdateMessage Method for UpdateMessage - * @param serviceSid - * @param channelSid - * @param sid + * @param ServiceSid + * @param ChannelSid + * @param Sid * @param optional nil or *UpdateMessageOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - @@ -2086,36 +2137,37 @@ UpdateMessage Method for UpdateMessage * @param "LastUpdatedBy" (string) - @return IpMessagingV2ServiceChannelMessage */ -func (c *DefaultApiService) UpdateMessage(serviceSid string, channelSid string, sid string, params *UpdateMessageParams) (*IpMessagingV2ServiceChannelMessage, error) { +func (c *DefaultApiService) UpdateMessage(ServiceSid string, ChannelSid string, Sid string, params *UpdateMessageParams) (*IpMessagingV2ServiceChannelMessage, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := make(map[string]interface{}) if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.Body != nil { - data.Set("Body", *params.Body) + data.Set("Body", *params.Body) } if params != nil && params.DateCreated != nil { - data.Set("DateCreated", string(*params.DateCreated)) + data.Set("DateCreated", fmt.Sprint(*params.DateCreated)) } if params != nil && params.DateUpdated != nil { - data.Set("DateUpdated", string(*params.DateUpdated)) + data.Set("DateUpdated", fmt.Sprint(*params.DateUpdated)) } if params != nil && params.From != nil { - data.Set("From", *params.From) + data.Set("From", *params.From) } if params != nil && params.LastUpdatedBy != nil { - data.Set("LastUpdatedBy", *params.LastUpdatedBy) + data.Set("LastUpdatedBy", *params.LastUpdatedBy) } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -2139,22 +2191,23 @@ type UpdateRoleParams struct { /* UpdateRole Method for UpdateRole - * @param serviceSid - * @param sid + * @param ServiceSid + * @param Sid * @param optional nil or *UpdateRoleOpts - Optional Parameters: * @param "Permission" ([]string) - @return IpMessagingV2ServiceRole */ -func (c *DefaultApiService) UpdateRole(serviceSid string, sid string, params *UpdateRoleParams) (*IpMessagingV2ServiceRole, error) { +func (c *DefaultApiService) UpdateRole(ServiceSid string, Sid string, params *UpdateRoleParams) (*IpMessagingV2ServiceRole, error) { path := "/v2/Services/{ServiceSid}/Roles/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.Permission != nil { - data.Set("Permission", *params.Permission) + data.Set("Permission", strings.Join(*params.Permission, ",")) } @@ -2179,23 +2232,23 @@ type UpdateServiceParams struct { DefaultChannelRoleSid *string `json:"DefaultChannelRoleSid,omitempty"` DefaultServiceRoleSid *string `json:"DefaultServiceRoleSid,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` - Limits.ChannelMembers *int32 `json:"Limits.ChannelMembers,omitempty"` - Limits.UserChannels *int32 `json:"Limits.UserChannels,omitempty"` - Media.CompatibilityMessage *string `json:"Media.CompatibilityMessage,omitempty"` - Notifications.AddedToChannel.Enabled *bool `json:"Notifications.AddedToChannel.Enabled,omitempty"` - Notifications.AddedToChannel.Sound *string `json:"Notifications.AddedToChannel.Sound,omitempty"` - Notifications.AddedToChannel.Template *string `json:"Notifications.AddedToChannel.Template,omitempty"` - Notifications.InvitedToChannel.Enabled *bool `json:"Notifications.InvitedToChannel.Enabled,omitempty"` - Notifications.InvitedToChannel.Sound *string `json:"Notifications.InvitedToChannel.Sound,omitempty"` - Notifications.InvitedToChannel.Template *string `json:"Notifications.InvitedToChannel.Template,omitempty"` - Notifications.LogEnabled *bool `json:"Notifications.LogEnabled,omitempty"` - Notifications.NewMessage.BadgeCountEnabled *bool `json:"Notifications.NewMessage.BadgeCountEnabled,omitempty"` - Notifications.NewMessage.Enabled *bool `json:"Notifications.NewMessage.Enabled,omitempty"` - Notifications.NewMessage.Sound *string `json:"Notifications.NewMessage.Sound,omitempty"` - Notifications.NewMessage.Template *string `json:"Notifications.NewMessage.Template,omitempty"` - Notifications.RemovedFromChannel.Enabled *bool `json:"Notifications.RemovedFromChannel.Enabled,omitempty"` - Notifications.RemovedFromChannel.Sound *string `json:"Notifications.RemovedFromChannel.Sound,omitempty"` - Notifications.RemovedFromChannel.Template *string `json:"Notifications.RemovedFromChannel.Template,omitempty"` + LimitsChannelMembers *int32 `json:"LimitsChannelMembers,omitempty"` + LimitsUserChannels *int32 `json:"LimitsUserChannels,omitempty"` + MediaCompatibilityMessage *string `json:"MediaCompatibilityMessage,omitempty"` + NotificationsAddedToChannelEnabled *bool `json:"NotificationsAddedToChannelEnabled,omitempty"` + NotificationsAddedToChannelSound *string `json:"NotificationsAddedToChannelSound,omitempty"` + NotificationsAddedToChannelTemplate *string `json:"NotificationsAddedToChannelTemplate,omitempty"` + NotificationsInvitedToChannelEnabled *bool `json:"NotificationsInvitedToChannelEnabled,omitempty"` + NotificationsInvitedToChannelSound *string `json:"NotificationsInvitedToChannelSound,omitempty"` + NotificationsInvitedToChannelTemplate *string `json:"NotificationsInvitedToChannelTemplate,omitempty"` + NotificationsLogEnabled *bool `json:"NotificationsLogEnabled,omitempty"` + NotificationsNewMessageBadgeCountEnabled *bool `json:"NotificationsNewMessageBadgeCountEnabled,omitempty"` + NotificationsNewMessageEnabled *bool `json:"NotificationsNewMessageEnabled,omitempty"` + NotificationsNewMessageSound *string `json:"NotificationsNewMessageSound,omitempty"` + NotificationsNewMessageTemplate *string `json:"NotificationsNewMessageTemplate,omitempty"` + NotificationsRemovedFromChannelEnabled *bool `json:"NotificationsRemovedFromChannelEnabled,omitempty"` + NotificationsRemovedFromChannelSound *string `json:"NotificationsRemovedFromChannelSound,omitempty"` + NotificationsRemovedFromChannelTemplate *string `json:"NotificationsRemovedFromChannelTemplate,omitempty"` PostWebhookRetryCount *int32 `json:"PostWebhookRetryCount,omitempty"` PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"` PreWebhookRetryCount *int32 `json:"PreWebhookRetryCount,omitempty"` @@ -2209,30 +2262,30 @@ type UpdateServiceParams struct { /* UpdateService Method for UpdateService - * @param sid + * @param Sid * @param optional nil or *UpdateServiceOpts - Optional Parameters: * @param "ConsumptionReportInterval" (int32) - * @param "DefaultChannelCreatorRoleSid" (string) - * @param "DefaultChannelRoleSid" (string) - * @param "DefaultServiceRoleSid" (string) - * @param "FriendlyName" (string) - - * @param "Limits.ChannelMembers" (int32) - - * @param "Limits.UserChannels" (int32) - - * @param "Media.CompatibilityMessage" (string) - - * @param "Notifications.AddedToChannel.Enabled" (bool) - - * @param "Notifications.AddedToChannel.Sound" (string) - - * @param "Notifications.AddedToChannel.Template" (string) - - * @param "Notifications.InvitedToChannel.Enabled" (bool) - - * @param "Notifications.InvitedToChannel.Sound" (string) - - * @param "Notifications.InvitedToChannel.Template" (string) - - * @param "Notifications.LogEnabled" (bool) - - * @param "Notifications.NewMessage.BadgeCountEnabled" (bool) - - * @param "Notifications.NewMessage.Enabled" (bool) - - * @param "Notifications.NewMessage.Sound" (string) - - * @param "Notifications.NewMessage.Template" (string) - - * @param "Notifications.RemovedFromChannel.Enabled" (bool) - - * @param "Notifications.RemovedFromChannel.Sound" (string) - - * @param "Notifications.RemovedFromChannel.Template" (string) - + * @param "LimitsChannelMembers" (int32) - + * @param "LimitsUserChannels" (int32) - + * @param "MediaCompatibilityMessage" (string) - + * @param "NotificationsAddedToChannelEnabled" (bool) - + * @param "NotificationsAddedToChannelSound" (string) - + * @param "NotificationsAddedToChannelTemplate" (string) - + * @param "NotificationsInvitedToChannelEnabled" (bool) - + * @param "NotificationsInvitedToChannelSound" (string) - + * @param "NotificationsInvitedToChannelTemplate" (string) - + * @param "NotificationsLogEnabled" (bool) - + * @param "NotificationsNewMessageBadgeCountEnabled" (bool) - + * @param "NotificationsNewMessageEnabled" (bool) - + * @param "NotificationsNewMessageSound" (string) - + * @param "NotificationsNewMessageTemplate" (string) - + * @param "NotificationsRemovedFromChannelEnabled" (bool) - + * @param "NotificationsRemovedFromChannelSound" (string) - + * @param "NotificationsRemovedFromChannelTemplate" (string) - * @param "PostWebhookRetryCount" (int32) - * @param "PostWebhookUrl" (string) - * @param "PreWebhookRetryCount" (int32) - @@ -2244,105 +2297,106 @@ UpdateService Method for UpdateService * @param "WebhookMethod" (string) - @return IpMessagingV2Service */ -func (c *DefaultApiService) UpdateService(sid string, params *UpdateServiceParams) (*IpMessagingV2Service, error) { +func (c *DefaultApiService) UpdateService(Sid string, params *UpdateServiceParams) (*IpMessagingV2Service, error) { path := "/v2/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.ConsumptionReportInterval != nil { - data.Set("ConsumptionReportInterval", string(*params.ConsumptionReportInterval)) + data.Set("ConsumptionReportInterval", fmt.Sprint(*params.ConsumptionReportInterval)) } if params != nil && params.DefaultChannelCreatorRoleSid != nil { - data.Set("DefaultChannelCreatorRoleSid", *params.DefaultChannelCreatorRoleSid) + data.Set("DefaultChannelCreatorRoleSid", *params.DefaultChannelCreatorRoleSid) } if params != nil && params.DefaultChannelRoleSid != nil { - data.Set("DefaultChannelRoleSid", *params.DefaultChannelRoleSid) + data.Set("DefaultChannelRoleSid", *params.DefaultChannelRoleSid) } if params != nil && params.DefaultServiceRoleSid != nil { - data.Set("DefaultServiceRoleSid", *params.DefaultServiceRoleSid) + data.Set("DefaultServiceRoleSid", *params.DefaultServiceRoleSid) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } - if params != nil && params.Limits.ChannelMembers != nil { - data.Set("Limits.ChannelMembers", string(*params.Limits.ChannelMembers)) + if params != nil && params.LimitsChannelMembers != nil { + data.Set("LimitsChannelMembers", fmt.Sprint(*params.LimitsChannelMembers)) } - if params != nil && params.Limits.UserChannels != nil { - data.Set("Limits.UserChannels", string(*params.Limits.UserChannels)) + if params != nil && params.LimitsUserChannels != nil { + data.Set("LimitsUserChannels", fmt.Sprint(*params.LimitsUserChannels)) } - if params != nil && params.Media.CompatibilityMessage != nil { - data.Set("Media.CompatibilityMessage", *params.Media.CompatibilityMessage) + if params != nil && params.MediaCompatibilityMessage != nil { + data.Set("MediaCompatibilityMessage", *params.MediaCompatibilityMessage) } - if params != nil && params.Notifications.AddedToChannel.Enabled != nil { - data.Set("Notifications.AddedToChannel.Enabled", string(*params.Notifications.AddedToChannel.Enabled)) + if params != nil && params.NotificationsAddedToChannelEnabled != nil { + data.Set("NotificationsAddedToChannelEnabled", fmt.Sprint(*params.NotificationsAddedToChannelEnabled)) } - if params != nil && params.Notifications.AddedToChannel.Sound != nil { - data.Set("Notifications.AddedToChannel.Sound", *params.Notifications.AddedToChannel.Sound) + if params != nil && params.NotificationsAddedToChannelSound != nil { + data.Set("NotificationsAddedToChannelSound", *params.NotificationsAddedToChannelSound) } - if params != nil && params.Notifications.AddedToChannel.Template != nil { - data.Set("Notifications.AddedToChannel.Template", *params.Notifications.AddedToChannel.Template) + if params != nil && params.NotificationsAddedToChannelTemplate != nil { + data.Set("NotificationsAddedToChannelTemplate", *params.NotificationsAddedToChannelTemplate) } - if params != nil && params.Notifications.InvitedToChannel.Enabled != nil { - data.Set("Notifications.InvitedToChannel.Enabled", string(*params.Notifications.InvitedToChannel.Enabled)) + if params != nil && params.NotificationsInvitedToChannelEnabled != nil { + data.Set("NotificationsInvitedToChannelEnabled", fmt.Sprint(*params.NotificationsInvitedToChannelEnabled)) } - if params != nil && params.Notifications.InvitedToChannel.Sound != nil { - data.Set("Notifications.InvitedToChannel.Sound", *params.Notifications.InvitedToChannel.Sound) + if params != nil && params.NotificationsInvitedToChannelSound != nil { + data.Set("NotificationsInvitedToChannelSound", *params.NotificationsInvitedToChannelSound) } - if params != nil && params.Notifications.InvitedToChannel.Template != nil { - data.Set("Notifications.InvitedToChannel.Template", *params.Notifications.InvitedToChannel.Template) + if params != nil && params.NotificationsInvitedToChannelTemplate != nil { + data.Set("NotificationsInvitedToChannelTemplate", *params.NotificationsInvitedToChannelTemplate) } - if params != nil && params.Notifications.LogEnabled != nil { - data.Set("Notifications.LogEnabled", string(*params.Notifications.LogEnabled)) + if params != nil && params.NotificationsLogEnabled != nil { + data.Set("NotificationsLogEnabled", fmt.Sprint(*params.NotificationsLogEnabled)) } - if params != nil && params.Notifications.NewMessage.BadgeCountEnabled != nil { - data.Set("Notifications.NewMessage.BadgeCountEnabled", string(*params.Notifications.NewMessage.BadgeCountEnabled)) + if params != nil && params.NotificationsNewMessageBadgeCountEnabled != nil { + data.Set("NotificationsNewMessageBadgeCountEnabled", fmt.Sprint(*params.NotificationsNewMessageBadgeCountEnabled)) } - if params != nil && params.Notifications.NewMessage.Enabled != nil { - data.Set("Notifications.NewMessage.Enabled", string(*params.Notifications.NewMessage.Enabled)) + if params != nil && params.NotificationsNewMessageEnabled != nil { + data.Set("NotificationsNewMessageEnabled", fmt.Sprint(*params.NotificationsNewMessageEnabled)) } - if params != nil && params.Notifications.NewMessage.Sound != nil { - data.Set("Notifications.NewMessage.Sound", *params.Notifications.NewMessage.Sound) + if params != nil && params.NotificationsNewMessageSound != nil { + data.Set("NotificationsNewMessageSound", *params.NotificationsNewMessageSound) } - if params != nil && params.Notifications.NewMessage.Template != nil { - data.Set("Notifications.NewMessage.Template", *params.Notifications.NewMessage.Template) + if params != nil && params.NotificationsNewMessageTemplate != nil { + data.Set("NotificationsNewMessageTemplate", *params.NotificationsNewMessageTemplate) } - if params != nil && params.Notifications.RemovedFromChannel.Enabled != nil { - data.Set("Notifications.RemovedFromChannel.Enabled", string(*params.Notifications.RemovedFromChannel.Enabled)) + if params != nil && params.NotificationsRemovedFromChannelEnabled != nil { + data.Set("NotificationsRemovedFromChannelEnabled", fmt.Sprint(*params.NotificationsRemovedFromChannelEnabled)) } - if params != nil && params.Notifications.RemovedFromChannel.Sound != nil { - data.Set("Notifications.RemovedFromChannel.Sound", *params.Notifications.RemovedFromChannel.Sound) + if params != nil && params.NotificationsRemovedFromChannelSound != nil { + data.Set("NotificationsRemovedFromChannelSound", *params.NotificationsRemovedFromChannelSound) } - if params != nil && params.Notifications.RemovedFromChannel.Template != nil { - data.Set("Notifications.RemovedFromChannel.Template", *params.Notifications.RemovedFromChannel.Template) + if params != nil && params.NotificationsRemovedFromChannelTemplate != nil { + data.Set("NotificationsRemovedFromChannelTemplate", *params.NotificationsRemovedFromChannelTemplate) } if params != nil && params.PostWebhookRetryCount != nil { - data.Set("PostWebhookRetryCount", string(*params.PostWebhookRetryCount)) + data.Set("PostWebhookRetryCount", fmt.Sprint(*params.PostWebhookRetryCount)) } if params != nil && params.PostWebhookUrl != nil { - data.Set("PostWebhookUrl", *params.PostWebhookUrl) + data.Set("PostWebhookUrl", *params.PostWebhookUrl) } if params != nil && params.PreWebhookRetryCount != nil { - data.Set("PreWebhookRetryCount", string(*params.PreWebhookRetryCount)) + data.Set("PreWebhookRetryCount", fmt.Sprint(*params.PreWebhookRetryCount)) } if params != nil && params.PreWebhookUrl != nil { - data.Set("PreWebhookUrl", *params.PreWebhookUrl) + data.Set("PreWebhookUrl", *params.PreWebhookUrl) } if params != nil && params.ReachabilityEnabled != nil { - data.Set("ReachabilityEnabled", string(*params.ReachabilityEnabled)) + data.Set("ReachabilityEnabled", fmt.Sprint(*params.ReachabilityEnabled)) } if params != nil && params.ReadStatusEnabled != nil { - data.Set("ReadStatusEnabled", string(*params.ReadStatusEnabled)) + data.Set("ReadStatusEnabled", fmt.Sprint(*params.ReadStatusEnabled)) } if params != nil && params.TypingIndicatorTimeout != nil { - data.Set("TypingIndicatorTimeout", string(*params.TypingIndicatorTimeout)) + data.Set("TypingIndicatorTimeout", fmt.Sprint(*params.TypingIndicatorTimeout)) } if params != nil && params.WebhookFilters != nil { - data.Set("WebhookFilters", *params.WebhookFilters) + data.Set("WebhookFilters", strings.Join(*params.WebhookFilters, ",")) } if params != nil && params.WebhookMethod != nil { - data.Set("WebhookMethod", *params.WebhookMethod) + data.Set("WebhookMethod", *params.WebhookMethod) } @@ -2362,7 +2416,7 @@ func (c *DefaultApiService) UpdateService(sid string, params *UpdateServiceParam } // UpdateUserParams Optional parameters for the method 'UpdateUser' type UpdateUserParams struct { - X-Twilio-Webhook-Enabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` Attributes *string `json:"Attributes,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` RoleSid *string `json:"RoleSid,omitempty"` @@ -2370,8 +2424,8 @@ type UpdateUserParams struct { /* UpdateUser Method for UpdateUser - * @param serviceSid - * @param sid + * @param ServiceSid + * @param Sid * @param optional nil or *UpdateUserOpts - Optional Parameters: * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - @@ -2379,26 +2433,27 @@ UpdateUser Method for UpdateUser * @param "RoleSid" (string) - @return IpMessagingV2ServiceUser */ -func (c *DefaultApiService) UpdateUser(serviceSid string, sid string, params *UpdateUserParams) (*IpMessagingV2ServiceUser, error) { +func (c *DefaultApiService) UpdateUser(ServiceSid string, Sid string, params *UpdateUserParams) (*IpMessagingV2ServiceUser, error) { path := "/v2/Services/{ServiceSid}/Users/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := make(map[string]interface{}) if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.RoleSid != nil { - data.Set("RoleSid", *params.RoleSid) + data.Set("RoleSid", *params.RoleSid) } - if params != nil && params.X-Twilio-Webhook-Enabled != nil { - headers["X-Twilio-Webhook-Enabled"] = *params.X-Twilio-Webhook-Enabled + if params != nil && params.XTwilioWebhookEnabled != nil { + headers["XTwilioWebhookEnabled"] = *params.XTwilioWebhookEnabled } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -2424,32 +2479,33 @@ type UpdateUserChannelParams struct { /* UpdateUserChannel Method for UpdateUserChannel - * @param serviceSid - * @param userSid - * @param channelSid + * @param ServiceSid + * @param UserSid + * @param ChannelSid * @param optional nil or *UpdateUserChannelOpts - Optional Parameters: * @param "LastConsumedMessageIndex" (*int32) - * @param "LastConsumptionTimestamp" (time.Time) - * @param "NotificationLevel" (string) - @return IpMessagingV2ServiceUserUserChannel */ -func (c *DefaultApiService) UpdateUserChannel(serviceSid string, userSid string, channelSid string, params *UpdateUserChannelParams) (*IpMessagingV2ServiceUserUserChannel, error) { +func (c *DefaultApiService) UpdateUserChannel(ServiceSid string, UserSid string, ChannelSid string, params *UpdateUserChannelParams) (*IpMessagingV2ServiceUserUserChannel, error) { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"UserSid"+"}", userSid, -1) - path = strings.Replace(path, "{"+"ChannelSid"+"}", channelSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"UserSid"+"}", UserSid, -1) + path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) + data := url.Values{} headers := 0 if params != nil && params.LastConsumedMessageIndex != nil { - data.Set("LastConsumedMessageIndex", string(*params.LastConsumedMessageIndex)) + data.Set("LastConsumedMessageIndex", fmt.Sprint(*params.LastConsumedMessageIndex)) } if params != nil && params.LastConsumptionTimestamp != nil { - data.Set("LastConsumptionTimestamp", string(*params.LastConsumptionTimestamp)) + data.Set("LastConsumptionTimestamp", fmt.Sprint(*params.LastConsumptionTimestamp)) } if params != nil && params.NotificationLevel != nil { - data.Set("NotificationLevel", *params.NotificationLevel) + data.Set("NotificationLevel", *params.NotificationLevel) } diff --git a/rest/ip/messaging/docs/DefaultApi.md b/rest/ip/messaging/docs/DefaultApi.md index b7b3c5542..240856abb 100644 --- a/rest/ip/messaging/docs/DefaultApi.md +++ b/rest/ip/messaging/docs/DefaultApi.md @@ -63,7 +63,7 @@ Method | HTTP request | Description ## CreateChannel -> IpMessagingV2ServiceChannel CreateChannel(ctx, serviceSid, optional) +> IpMessagingV2ServiceChannel CreateChannel(ctx, ServiceSid, optional) @@ -73,7 +73,7 @@ Method | HTTP request | Description Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | +**ServiceSid** | **string**| | **optional** | ***CreateChannelOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -84,14 +84,14 @@ Optional parameters are passed through a pointer to a CreateChannelOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | - **attributes** | **optional.String**| | - **createdBy** | **optional.String**| | - **dateCreated** | **optional.Time**| | - **dateUpdated** | **optional.Time**| | - **friendlyName** | **optional.String**| | - **type_** | **optional.String**| | - **uniqueName** | **optional.String**| | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **Attributes** | **optional.String**| | + **CreatedBy** | **optional.String**| | + **DateCreated** | **optional.Time**| | + **DateUpdated** | **optional.Time**| | + **FriendlyName** | **optional.String**| | + **Type** | **optional.String**| | + **UniqueName** | **optional.String**| | ### Return type @@ -113,7 +113,7 @@ Name | Type | Description | Notes ## CreateChannelWebhook -> IpMessagingV2ServiceChannelChannelWebhook CreateChannelWebhook(ctx, serviceSid, channelSid, optional) +> IpMessagingV2ServiceChannelChannelWebhook CreateChannelWebhook(ctx, ServiceSid, ChannelSid, optional) @@ -123,8 +123,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**channelSid** | **string**| | +**ServiceSid** | **string**| | +**ChannelSid** | **string**| | **optional** | ***CreateChannelWebhookOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -136,13 +136,13 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **configurationFilters** | [**optional.Interface of []string**](string.md)| | - **configurationFlowSid** | **optional.String**| | - **configurationMethod** | **optional.String**| | - **configurationRetryCount** | **optional.Int32**| | - **configurationTriggers** | [**optional.Interface of []string**](string.md)| | - **configurationUrl** | **optional.String**| | - **type_** | **optional.String**| | + **ConfigurationFilters** | [**optional.Interface of []string**](string.md)| | + **ConfigurationFlowSid** | **optional.String**| | + **ConfigurationMethod** | **optional.String**| | + **ConfigurationRetryCount** | **optional.Int32**| | + **ConfigurationTriggers** | [**optional.Interface of []string**](string.md)| | + **ConfigurationUrl** | **optional.String**| | + **Type** | **optional.String**| | ### Return type @@ -183,13 +183,13 @@ Optional parameters are passed through a pointer to a CreateCredentialOpts struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiKey** | **optional.String**| | - **certificate** | **optional.String**| | - **friendlyName** | **optional.String**| | - **privateKey** | **optional.String**| | - **sandbox** | **optional.Bool**| | - **secret** | **optional.String**| | - **type_** | **optional.String**| | + **ApiKey** | **optional.String**| | + **Certificate** | **optional.String**| | + **FriendlyName** | **optional.String**| | + **PrivateKey** | **optional.String**| | + **Sandbox** | **optional.Bool**| | + **Secret** | **optional.String**| | + **Type** | **optional.String**| | ### Return type @@ -211,7 +211,7 @@ Name | Type | Description | Notes ## CreateInvite -> IpMessagingV2ServiceChannelInvite CreateInvite(ctx, serviceSid, channelSid, optional) +> IpMessagingV2ServiceChannelInvite CreateInvite(ctx, ServiceSid, ChannelSid, optional) @@ -221,8 +221,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**channelSid** | **string**| | +**ServiceSid** | **string**| | +**ChannelSid** | **string**| | **optional** | ***CreateInviteOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -234,8 +234,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **identity** | **optional.String**| | - **roleSid** | **optional.String**| | + **Identity** | **optional.String**| | + **RoleSid** | **optional.String**| | ### Return type @@ -257,7 +257,7 @@ Name | Type | Description | Notes ## CreateMember -> IpMessagingV2ServiceChannelMember CreateMember(ctx, serviceSid, channelSid, optional) +> IpMessagingV2ServiceChannelMember CreateMember(ctx, ServiceSid, ChannelSid, optional) @@ -267,8 +267,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**channelSid** | **string**| | +**ServiceSid** | **string**| | +**ChannelSid** | **string**| | **optional** | ***CreateMemberOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -280,14 +280,14 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | - **attributes** | **optional.String**| | - **dateCreated** | **optional.Time**| | - **dateUpdated** | **optional.Time**| | - **identity** | **optional.String**| | - **lastConsumedMessageIndex** | **optional.Int32**| | - **lastConsumptionTimestamp** | **optional.Time**| | - **roleSid** | **optional.String**| | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **Attributes** | **optional.String**| | + **DateCreated** | **optional.Time**| | + **DateUpdated** | **optional.Time**| | + **Identity** | **optional.String**| | + **LastConsumedMessageIndex** | **optional.Int32**| | + **LastConsumptionTimestamp** | **optional.Time**| | + **RoleSid** | **optional.String**| | ### Return type @@ -309,7 +309,7 @@ Name | Type | Description | Notes ## CreateMessage -> IpMessagingV2ServiceChannelMessage CreateMessage(ctx, serviceSid, channelSid, optional) +> IpMessagingV2ServiceChannelMessage CreateMessage(ctx, ServiceSid, ChannelSid, optional) @@ -319,8 +319,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**channelSid** | **string**| | +**ServiceSid** | **string**| | +**ChannelSid** | **string**| | **optional** | ***CreateMessageOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -332,14 +332,14 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | - **attributes** | **optional.String**| | - **body** | **optional.String**| | - **dateCreated** | **optional.Time**| | - **dateUpdated** | **optional.Time**| | - **from** | **optional.String**| | - **lastUpdatedBy** | **optional.String**| | - **mediaSid** | **optional.String**| | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **Attributes** | **optional.String**| | + **Body** | **optional.String**| | + **DateCreated** | **optional.Time**| | + **DateUpdated** | **optional.Time**| | + **From** | **optional.String**| | + **LastUpdatedBy** | **optional.String**| | + **MediaSid** | **optional.String**| | ### Return type @@ -361,7 +361,7 @@ Name | Type | Description | Notes ## CreateRole -> IpMessagingV2ServiceRole CreateRole(ctx, serviceSid, optional) +> IpMessagingV2ServiceRole CreateRole(ctx, ServiceSid, optional) @@ -371,7 +371,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | +**ServiceSid** | **string**| | **optional** | ***CreateRoleOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -382,9 +382,9 @@ Optional parameters are passed through a pointer to a CreateRoleOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| | - **permission** | [**optional.Interface of []string**](string.md)| | - **type_** | **optional.String**| | + **FriendlyName** | **optional.String**| | + **Permission** | [**optional.Interface of []string**](string.md)| | + **Type** | **optional.String**| | ### Return type @@ -425,7 +425,7 @@ Optional parameters are passed through a pointer to a CreateServiceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| | + **FriendlyName** | **optional.String**| | ### Return type @@ -447,7 +447,7 @@ Name | Type | Description | Notes ## CreateUser -> IpMessagingV2ServiceUser CreateUser(ctx, serviceSid, optional) +> IpMessagingV2ServiceUser CreateUser(ctx, ServiceSid, optional) @@ -457,7 +457,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | +**ServiceSid** | **string**| | **optional** | ***CreateUserOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -468,11 +468,11 @@ Optional parameters are passed through a pointer to a CreateUserOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | - **attributes** | **optional.String**| | - **friendlyName** | **optional.String**| | - **identity** | **optional.String**| | - **roleSid** | **optional.String**| | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **Attributes** | **optional.String**| | + **FriendlyName** | **optional.String**| | + **Identity** | **optional.String**| | + **RoleSid** | **optional.String**| | ### Return type @@ -494,7 +494,7 @@ Name | Type | Description | Notes ## DeleteBinding -> DeleteBinding(ctx, serviceSid, sid) +> DeleteBinding(ctx, ServiceSid, Sid) @@ -504,8 +504,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**sid** | **string**| | +**ServiceSid** | **string**| | +**Sid** | **string**| | ### Return type @@ -527,7 +527,7 @@ Name | Type | Description | Notes ## DeleteChannel -> DeleteChannel(ctx, serviceSid, sid, optional) +> DeleteChannel(ctx, ServiceSid, Sid, optional) @@ -537,8 +537,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**sid** | **string**| | +**ServiceSid** | **string**| | +**Sid** | **string**| | **optional** | ***DeleteChannelOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -550,7 +550,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | ### Return type @@ -572,7 +572,7 @@ Name | Type | Description | Notes ## DeleteChannelWebhook -> DeleteChannelWebhook(ctx, serviceSid, channelSid, sid) +> DeleteChannelWebhook(ctx, ServiceSid, ChannelSid, Sid) @@ -582,9 +582,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**channelSid** | **string**| | -**sid** | **string**| | +**ServiceSid** | **string**| | +**ChannelSid** | **string**| | +**Sid** | **string**| | ### Return type @@ -606,7 +606,7 @@ Name | Type | Description | Notes ## DeleteCredential -> DeleteCredential(ctx, sid) +> DeleteCredential(ctx, Sid) @@ -616,7 +616,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| | +**Sid** | **string**| | ### Return type @@ -638,7 +638,7 @@ Name | Type | Description | Notes ## DeleteInvite -> DeleteInvite(ctx, serviceSid, channelSid, sid) +> DeleteInvite(ctx, ServiceSid, ChannelSid, Sid) @@ -648,9 +648,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**channelSid** | **string**| | -**sid** | **string**| | +**ServiceSid** | **string**| | +**ChannelSid** | **string**| | +**Sid** | **string**| | ### Return type @@ -672,7 +672,7 @@ Name | Type | Description | Notes ## DeleteMember -> DeleteMember(ctx, serviceSid, channelSid, sid, optional) +> DeleteMember(ctx, ServiceSid, ChannelSid, Sid, optional) @@ -682,9 +682,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**channelSid** | **string**| | -**sid** | **string**| | +**ServiceSid** | **string**| | +**ChannelSid** | **string**| | +**Sid** | **string**| | **optional** | ***DeleteMemberOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -697,7 +697,7 @@ Name | Type | Description | Notes - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | ### Return type @@ -719,7 +719,7 @@ Name | Type | Description | Notes ## DeleteMessage -> DeleteMessage(ctx, serviceSid, channelSid, sid, optional) +> DeleteMessage(ctx, ServiceSid, ChannelSid, Sid, optional) @@ -729,9 +729,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**channelSid** | **string**| | -**sid** | **string**| | +**ServiceSid** | **string**| | +**ChannelSid** | **string**| | +**Sid** | **string**| | **optional** | ***DeleteMessageOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -744,7 +744,7 @@ Name | Type | Description | Notes - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | ### Return type @@ -766,7 +766,7 @@ Name | Type | Description | Notes ## DeleteRole -> DeleteRole(ctx, serviceSid, sid) +> DeleteRole(ctx, ServiceSid, Sid) @@ -776,8 +776,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**sid** | **string**| | +**ServiceSid** | **string**| | +**Sid** | **string**| | ### Return type @@ -799,7 +799,7 @@ Name | Type | Description | Notes ## DeleteService -> DeleteService(ctx, sid) +> DeleteService(ctx, Sid) @@ -809,7 +809,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| | +**Sid** | **string**| | ### Return type @@ -831,7 +831,7 @@ Name | Type | Description | Notes ## DeleteUser -> DeleteUser(ctx, serviceSid, sid) +> DeleteUser(ctx, ServiceSid, Sid) @@ -841,8 +841,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**sid** | **string**| | +**ServiceSid** | **string**| | +**Sid** | **string**| | ### Return type @@ -864,7 +864,7 @@ Name | Type | Description | Notes ## DeleteUserBinding -> DeleteUserBinding(ctx, serviceSid, userSid, sid) +> DeleteUserBinding(ctx, ServiceSid, UserSid, Sid) @@ -874,9 +874,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**userSid** | **string**| | -**sid** | **string**| | +**ServiceSid** | **string**| | +**UserSid** | **string**| | +**Sid** | **string**| | ### Return type @@ -898,7 +898,7 @@ Name | Type | Description | Notes ## DeleteUserChannel -> DeleteUserChannel(ctx, serviceSid, userSid, channelSid) +> DeleteUserChannel(ctx, ServiceSid, UserSid, ChannelSid) @@ -908,9 +908,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**userSid** | **string**| | -**channelSid** | **string**| | +**ServiceSid** | **string**| | +**UserSid** | **string**| | +**ChannelSid** | **string**| | ### Return type @@ -932,7 +932,7 @@ Name | Type | Description | Notes ## FetchBinding -> IpMessagingV2ServiceBinding FetchBinding(ctx, serviceSid, sid) +> IpMessagingV2ServiceBinding FetchBinding(ctx, ServiceSid, Sid) @@ -942,8 +942,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**sid** | **string**| | +**ServiceSid** | **string**| | +**Sid** | **string**| | ### Return type @@ -965,7 +965,7 @@ Name | Type | Description | Notes ## FetchChannel -> IpMessagingV2ServiceChannel FetchChannel(ctx, serviceSid, sid) +> IpMessagingV2ServiceChannel FetchChannel(ctx, ServiceSid, Sid) @@ -975,8 +975,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**sid** | **string**| | +**ServiceSid** | **string**| | +**Sid** | **string**| | ### Return type @@ -998,7 +998,7 @@ Name | Type | Description | Notes ## FetchChannelWebhook -> IpMessagingV2ServiceChannelChannelWebhook FetchChannelWebhook(ctx, serviceSid, channelSid, sid) +> IpMessagingV2ServiceChannelChannelWebhook FetchChannelWebhook(ctx, ServiceSid, ChannelSid, Sid) @@ -1008,9 +1008,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**channelSid** | **string**| | -**sid** | **string**| | +**ServiceSid** | **string**| | +**ChannelSid** | **string**| | +**Sid** | **string**| | ### Return type @@ -1032,7 +1032,7 @@ Name | Type | Description | Notes ## FetchCredential -> IpMessagingV2Credential FetchCredential(ctx, sid) +> IpMessagingV2Credential FetchCredential(ctx, Sid) @@ -1042,7 +1042,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| | +**Sid** | **string**| | ### Return type @@ -1064,7 +1064,7 @@ Name | Type | Description | Notes ## FetchInvite -> IpMessagingV2ServiceChannelInvite FetchInvite(ctx, serviceSid, channelSid, sid) +> IpMessagingV2ServiceChannelInvite FetchInvite(ctx, ServiceSid, ChannelSid, Sid) @@ -1074,9 +1074,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**channelSid** | **string**| | -**sid** | **string**| | +**ServiceSid** | **string**| | +**ChannelSid** | **string**| | +**Sid** | **string**| | ### Return type @@ -1098,7 +1098,7 @@ Name | Type | Description | Notes ## FetchMember -> IpMessagingV2ServiceChannelMember FetchMember(ctx, serviceSid, channelSid, sid) +> IpMessagingV2ServiceChannelMember FetchMember(ctx, ServiceSid, ChannelSid, Sid) @@ -1108,9 +1108,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**channelSid** | **string**| | -**sid** | **string**| | +**ServiceSid** | **string**| | +**ChannelSid** | **string**| | +**Sid** | **string**| | ### Return type @@ -1132,7 +1132,7 @@ Name | Type | Description | Notes ## FetchMessage -> IpMessagingV2ServiceChannelMessage FetchMessage(ctx, serviceSid, channelSid, sid) +> IpMessagingV2ServiceChannelMessage FetchMessage(ctx, ServiceSid, ChannelSid, Sid) @@ -1142,9 +1142,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**channelSid** | **string**| | -**sid** | **string**| | +**ServiceSid** | **string**| | +**ChannelSid** | **string**| | +**Sid** | **string**| | ### Return type @@ -1166,7 +1166,7 @@ Name | Type | Description | Notes ## FetchRole -> IpMessagingV2ServiceRole FetchRole(ctx, serviceSid, sid) +> IpMessagingV2ServiceRole FetchRole(ctx, ServiceSid, Sid) @@ -1176,8 +1176,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**sid** | **string**| | +**ServiceSid** | **string**| | +**Sid** | **string**| | ### Return type @@ -1199,7 +1199,7 @@ Name | Type | Description | Notes ## FetchService -> IpMessagingV2Service FetchService(ctx, sid) +> IpMessagingV2Service FetchService(ctx, Sid) @@ -1209,7 +1209,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| | +**Sid** | **string**| | ### Return type @@ -1231,7 +1231,7 @@ Name | Type | Description | Notes ## FetchUser -> IpMessagingV2ServiceUser FetchUser(ctx, serviceSid, sid) +> IpMessagingV2ServiceUser FetchUser(ctx, ServiceSid, Sid) @@ -1241,8 +1241,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**sid** | **string**| | +**ServiceSid** | **string**| | +**Sid** | **string**| | ### Return type @@ -1264,7 +1264,7 @@ Name | Type | Description | Notes ## FetchUserBinding -> IpMessagingV2ServiceUserUserBinding FetchUserBinding(ctx, serviceSid, userSid, sid) +> IpMessagingV2ServiceUserUserBinding FetchUserBinding(ctx, ServiceSid, UserSid, Sid) @@ -1274,9 +1274,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**userSid** | **string**| | -**sid** | **string**| | +**ServiceSid** | **string**| | +**UserSid** | **string**| | +**Sid** | **string**| | ### Return type @@ -1298,7 +1298,7 @@ Name | Type | Description | Notes ## FetchUserChannel -> IpMessagingV2ServiceUserUserChannel FetchUserChannel(ctx, serviceSid, userSid, channelSid) +> IpMessagingV2ServiceUserUserChannel FetchUserChannel(ctx, ServiceSid, UserSid, ChannelSid) @@ -1308,9 +1308,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**userSid** | **string**| | -**channelSid** | **string**| | +**ServiceSid** | **string**| | +**UserSid** | **string**| | +**ChannelSid** | **string**| | ### Return type @@ -1332,7 +1332,7 @@ Name | Type | Description | Notes ## ListBinding -> IpMessagingV2ServiceBindingReadResponse ListBinding(ctx, serviceSid, optional) +> IpMessagingV2ServiceBindingReadResponse ListBinding(ctx, ServiceSid, optional) @@ -1342,7 +1342,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | +**ServiceSid** | **string**| | **optional** | ***ListBindingOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1353,9 +1353,9 @@ Optional parameters are passed through a pointer to a ListBindingOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **bindingType** | [**optional.Interface of []string**](string.md)| | - **identity** | [**optional.Interface of []string**](string.md)| | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **BindingType** | [**optional.Interface of []string**](string.md)| | + **Identity** | [**optional.Interface of []string**](string.md)| | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1377,7 +1377,7 @@ Name | Type | Description | Notes ## ListChannel -> IpMessagingV2ServiceChannelReadResponse ListChannel(ctx, serviceSid, optional) +> IpMessagingV2ServiceChannelReadResponse ListChannel(ctx, ServiceSid, optional) @@ -1387,7 +1387,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | +**ServiceSid** | **string**| | **optional** | ***ListChannelOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1398,8 +1398,8 @@ Optional parameters are passed through a pointer to a ListChannelOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **type_** | [**optional.Interface of []string**](string.md)| | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Type** | [**optional.Interface of []string**](string.md)| | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1421,7 +1421,7 @@ Name | Type | Description | Notes ## ListChannelWebhook -> IpMessagingV2ServiceChannelChannelWebhookReadResponse ListChannelWebhook(ctx, serviceSid, channelSid, optional) +> IpMessagingV2ServiceChannelChannelWebhookReadResponse ListChannelWebhook(ctx, ServiceSid, ChannelSid, optional) @@ -1431,8 +1431,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**channelSid** | **string**| | +**ServiceSid** | **string**| | +**ChannelSid** | **string**| | **optional** | ***ListChannelWebhookOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1444,7 +1444,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1485,7 +1485,7 @@ Optional parameters are passed through a pointer to a ListCredentialOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1507,7 +1507,7 @@ Name | Type | Description | Notes ## ListInvite -> IpMessagingV2ServiceChannelInviteReadResponse ListInvite(ctx, serviceSid, channelSid, optional) +> IpMessagingV2ServiceChannelInviteReadResponse ListInvite(ctx, ServiceSid, ChannelSid, optional) @@ -1517,8 +1517,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**channelSid** | **string**| | +**ServiceSid** | **string**| | +**ChannelSid** | **string**| | **optional** | ***ListInviteOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1530,8 +1530,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **identity** | [**optional.Interface of []string**](string.md)| | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Identity** | [**optional.Interface of []string**](string.md)| | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1553,7 +1553,7 @@ Name | Type | Description | Notes ## ListMember -> IpMessagingV2ServiceChannelMemberReadResponse ListMember(ctx, serviceSid, channelSid, optional) +> IpMessagingV2ServiceChannelMemberReadResponse ListMember(ctx, ServiceSid, ChannelSid, optional) @@ -1563,8 +1563,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**channelSid** | **string**| | +**ServiceSid** | **string**| | +**ChannelSid** | **string**| | **optional** | ***ListMemberOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1576,8 +1576,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **identity** | [**optional.Interface of []string**](string.md)| | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Identity** | [**optional.Interface of []string**](string.md)| | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1599,7 +1599,7 @@ Name | Type | Description | Notes ## ListMessage -> IpMessagingV2ServiceChannelMessageReadResponse ListMessage(ctx, serviceSid, channelSid, optional) +> IpMessagingV2ServiceChannelMessageReadResponse ListMessage(ctx, ServiceSid, ChannelSid, optional) @@ -1609,8 +1609,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**channelSid** | **string**| | +**ServiceSid** | **string**| | +**ChannelSid** | **string**| | **optional** | ***ListMessageOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1622,8 +1622,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **order** | **optional.String**| | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Order** | **optional.String**| | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1645,7 +1645,7 @@ Name | Type | Description | Notes ## ListRole -> IpMessagingV2ServiceRoleReadResponse ListRole(ctx, serviceSid, optional) +> IpMessagingV2ServiceRoleReadResponse ListRole(ctx, ServiceSid, optional) @@ -1655,7 +1655,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | +**ServiceSid** | **string**| | **optional** | ***ListRoleOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1666,7 +1666,7 @@ Optional parameters are passed through a pointer to a ListRoleOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1707,7 +1707,7 @@ Optional parameters are passed through a pointer to a ListServiceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1729,7 +1729,7 @@ Name | Type | Description | Notes ## ListUser -> IpMessagingV2ServiceUserReadResponse ListUser(ctx, serviceSid, optional) +> IpMessagingV2ServiceUserReadResponse ListUser(ctx, ServiceSid, optional) @@ -1739,7 +1739,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | +**ServiceSid** | **string**| | **optional** | ***ListUserOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1750,7 +1750,7 @@ Optional parameters are passed through a pointer to a ListUserOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1772,7 +1772,7 @@ Name | Type | Description | Notes ## ListUserBinding -> IpMessagingV2ServiceUserUserBindingReadResponse ListUserBinding(ctx, serviceSid, userSid, optional) +> IpMessagingV2ServiceUserUserBindingReadResponse ListUserBinding(ctx, ServiceSid, UserSid, optional) @@ -1782,8 +1782,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**userSid** | **string**| | +**ServiceSid** | **string**| | +**UserSid** | **string**| | **optional** | ***ListUserBindingOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1795,8 +1795,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **bindingType** | [**optional.Interface of []string**](string.md)| | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **BindingType** | [**optional.Interface of []string**](string.md)| | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1818,7 +1818,7 @@ Name | Type | Description | Notes ## ListUserChannel -> IpMessagingV2ServiceUserUserChannelReadResponse ListUserChannel(ctx, serviceSid, userSid, optional) +> IpMessagingV2ServiceUserUserChannelReadResponse ListUserChannel(ctx, ServiceSid, UserSid, optional) @@ -1828,8 +1828,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**userSid** | **string**| | +**ServiceSid** | **string**| | +**UserSid** | **string**| | **optional** | ***ListUserChannelOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1841,7 +1841,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1863,7 +1863,7 @@ Name | Type | Description | Notes ## UpdateChannel -> IpMessagingV2ServiceChannel UpdateChannel(ctx, serviceSid, sid, optional) +> IpMessagingV2ServiceChannel UpdateChannel(ctx, ServiceSid, Sid, optional) @@ -1873,8 +1873,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**sid** | **string**| | +**ServiceSid** | **string**| | +**Sid** | **string**| | **optional** | ***UpdateChannelOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1886,13 +1886,13 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | - **attributes** | **optional.String**| | - **createdBy** | **optional.String**| | - **dateCreated** | **optional.Time**| | - **dateUpdated** | **optional.Time**| | - **friendlyName** | **optional.String**| | - **uniqueName** | **optional.String**| | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **Attributes** | **optional.String**| | + **CreatedBy** | **optional.String**| | + **DateCreated** | **optional.Time**| | + **DateUpdated** | **optional.Time**| | + **FriendlyName** | **optional.String**| | + **UniqueName** | **optional.String**| | ### Return type @@ -1914,7 +1914,7 @@ Name | Type | Description | Notes ## UpdateChannelWebhook -> IpMessagingV2ServiceChannelChannelWebhook UpdateChannelWebhook(ctx, serviceSid, channelSid, sid, optional) +> IpMessagingV2ServiceChannelChannelWebhook UpdateChannelWebhook(ctx, ServiceSid, ChannelSid, Sid, optional) @@ -1924,9 +1924,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**channelSid** | **string**| | -**sid** | **string**| | +**ServiceSid** | **string**| | +**ChannelSid** | **string**| | +**Sid** | **string**| | **optional** | ***UpdateChannelWebhookOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1939,12 +1939,12 @@ Name | Type | Description | Notes - **configurationFilters** | [**optional.Interface of []string**](string.md)| | - **configurationFlowSid** | **optional.String**| | - **configurationMethod** | **optional.String**| | - **configurationRetryCount** | **optional.Int32**| | - **configurationTriggers** | [**optional.Interface of []string**](string.md)| | - **configurationUrl** | **optional.String**| | + **ConfigurationFilters** | [**optional.Interface of []string**](string.md)| | + **ConfigurationFlowSid** | **optional.String**| | + **ConfigurationMethod** | **optional.String**| | + **ConfigurationRetryCount** | **optional.Int32**| | + **ConfigurationTriggers** | [**optional.Interface of []string**](string.md)| | + **ConfigurationUrl** | **optional.String**| | ### Return type @@ -1966,7 +1966,7 @@ Name | Type | Description | Notes ## UpdateCredential -> IpMessagingV2Credential UpdateCredential(ctx, sid, optional) +> IpMessagingV2Credential UpdateCredential(ctx, Sid, optional) @@ -1976,7 +1976,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| | +**Sid** | **string**| | **optional** | ***UpdateCredentialOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1987,12 +1987,12 @@ Optional parameters are passed through a pointer to a UpdateCredentialOpts struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiKey** | **optional.String**| | - **certificate** | **optional.String**| | - **friendlyName** | **optional.String**| | - **privateKey** | **optional.String**| | - **sandbox** | **optional.Bool**| | - **secret** | **optional.String**| | + **ApiKey** | **optional.String**| | + **Certificate** | **optional.String**| | + **FriendlyName** | **optional.String**| | + **PrivateKey** | **optional.String**| | + **Sandbox** | **optional.Bool**| | + **Secret** | **optional.String**| | ### Return type @@ -2014,7 +2014,7 @@ Name | Type | Description | Notes ## UpdateMember -> IpMessagingV2ServiceChannelMember UpdateMember(ctx, serviceSid, channelSid, sid, optional) +> IpMessagingV2ServiceChannelMember UpdateMember(ctx, ServiceSid, ChannelSid, Sid, optional) @@ -2024,9 +2024,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**channelSid** | **string**| | -**sid** | **string**| | +**ServiceSid** | **string**| | +**ChannelSid** | **string**| | +**Sid** | **string**| | **optional** | ***UpdateMemberOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2039,13 +2039,13 @@ Name | Type | Description | Notes - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | - **attributes** | **optional.String**| | - **dateCreated** | **optional.Time**| | - **dateUpdated** | **optional.Time**| | - **lastConsumedMessageIndex** | **optional.Int32**| | - **lastConsumptionTimestamp** | **optional.Time**| | - **roleSid** | **optional.String**| | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **Attributes** | **optional.String**| | + **DateCreated** | **optional.Time**| | + **DateUpdated** | **optional.Time**| | + **LastConsumedMessageIndex** | **optional.Int32**| | + **LastConsumptionTimestamp** | **optional.Time**| | + **RoleSid** | **optional.String**| | ### Return type @@ -2067,7 +2067,7 @@ Name | Type | Description | Notes ## UpdateMessage -> IpMessagingV2ServiceChannelMessage UpdateMessage(ctx, serviceSid, channelSid, sid, optional) +> IpMessagingV2ServiceChannelMessage UpdateMessage(ctx, ServiceSid, ChannelSid, Sid, optional) @@ -2077,9 +2077,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**channelSid** | **string**| | -**sid** | **string**| | +**ServiceSid** | **string**| | +**ChannelSid** | **string**| | +**Sid** | **string**| | **optional** | ***UpdateMessageOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2092,13 +2092,13 @@ Name | Type | Description | Notes - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | - **attributes** | **optional.String**| | - **body** | **optional.String**| | - **dateCreated** | **optional.Time**| | - **dateUpdated** | **optional.Time**| | - **from** | **optional.String**| | - **lastUpdatedBy** | **optional.String**| | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **Attributes** | **optional.String**| | + **Body** | **optional.String**| | + **DateCreated** | **optional.Time**| | + **DateUpdated** | **optional.Time**| | + **From** | **optional.String**| | + **LastUpdatedBy** | **optional.String**| | ### Return type @@ -2120,7 +2120,7 @@ Name | Type | Description | Notes ## UpdateRole -> IpMessagingV2ServiceRole UpdateRole(ctx, serviceSid, sid, optional) +> IpMessagingV2ServiceRole UpdateRole(ctx, ServiceSid, Sid, optional) @@ -2130,8 +2130,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**sid** | **string**| | +**ServiceSid** | **string**| | +**Sid** | **string**| | **optional** | ***UpdateRoleOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2143,7 +2143,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **permission** | [**optional.Interface of []string**](string.md)| | + **Permission** | [**optional.Interface of []string**](string.md)| | ### Return type @@ -2165,7 +2165,7 @@ Name | Type | Description | Notes ## UpdateService -> IpMessagingV2Service UpdateService(ctx, sid, optional) +> IpMessagingV2Service UpdateService(ctx, Sid, optional) @@ -2175,7 +2175,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| | +**Sid** | **string**| | **optional** | ***UpdateServiceOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2186,37 +2186,37 @@ Optional parameters are passed through a pointer to a UpdateServiceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **consumptionReportInterval** | **optional.Int32**| | - **defaultChannelCreatorRoleSid** | **optional.String**| | - **defaultChannelRoleSid** | **optional.String**| | - **defaultServiceRoleSid** | **optional.String**| | - **friendlyName** | **optional.String**| | - **limitsChannelMembers** | **optional.Int32**| | - **limitsUserChannels** | **optional.Int32**| | - **mediaCompatibilityMessage** | **optional.String**| | - **notificationsAddedToChannelEnabled** | **optional.Bool**| | - **notificationsAddedToChannelSound** | **optional.String**| | - **notificationsAddedToChannelTemplate** | **optional.String**| | - **notificationsInvitedToChannelEnabled** | **optional.Bool**| | - **notificationsInvitedToChannelSound** | **optional.String**| | - **notificationsInvitedToChannelTemplate** | **optional.String**| | - **notificationsLogEnabled** | **optional.Bool**| | - **notificationsNewMessageBadgeCountEnabled** | **optional.Bool**| | - **notificationsNewMessageEnabled** | **optional.Bool**| | - **notificationsNewMessageSound** | **optional.String**| | - **notificationsNewMessageTemplate** | **optional.String**| | - **notificationsRemovedFromChannelEnabled** | **optional.Bool**| | - **notificationsRemovedFromChannelSound** | **optional.String**| | - **notificationsRemovedFromChannelTemplate** | **optional.String**| | - **postWebhookRetryCount** | **optional.Int32**| | - **postWebhookUrl** | **optional.String**| | - **preWebhookRetryCount** | **optional.Int32**| | - **preWebhookUrl** | **optional.String**| | - **reachabilityEnabled** | **optional.Bool**| | - **readStatusEnabled** | **optional.Bool**| | - **typingIndicatorTimeout** | **optional.Int32**| | - **webhookFilters** | [**optional.Interface of []string**](string.md)| | - **webhookMethod** | **optional.String**| | + **ConsumptionReportInterval** | **optional.Int32**| | + **DefaultChannelCreatorRoleSid** | **optional.String**| | + **DefaultChannelRoleSid** | **optional.String**| | + **DefaultServiceRoleSid** | **optional.String**| | + **FriendlyName** | **optional.String**| | + **LimitsChannelMembers** | **optional.Int32**| | + **LimitsUserChannels** | **optional.Int32**| | + **MediaCompatibilityMessage** | **optional.String**| | + **NotificationsAddedToChannelEnabled** | **optional.Bool**| | + **NotificationsAddedToChannelSound** | **optional.String**| | + **NotificationsAddedToChannelTemplate** | **optional.String**| | + **NotificationsInvitedToChannelEnabled** | **optional.Bool**| | + **NotificationsInvitedToChannelSound** | **optional.String**| | + **NotificationsInvitedToChannelTemplate** | **optional.String**| | + **NotificationsLogEnabled** | **optional.Bool**| | + **NotificationsNewMessageBadgeCountEnabled** | **optional.Bool**| | + **NotificationsNewMessageEnabled** | **optional.Bool**| | + **NotificationsNewMessageSound** | **optional.String**| | + **NotificationsNewMessageTemplate** | **optional.String**| | + **NotificationsRemovedFromChannelEnabled** | **optional.Bool**| | + **NotificationsRemovedFromChannelSound** | **optional.String**| | + **NotificationsRemovedFromChannelTemplate** | **optional.String**| | + **PostWebhookRetryCount** | **optional.Int32**| | + **PostWebhookUrl** | **optional.String**| | + **PreWebhookRetryCount** | **optional.Int32**| | + **PreWebhookUrl** | **optional.String**| | + **ReachabilityEnabled** | **optional.Bool**| | + **ReadStatusEnabled** | **optional.Bool**| | + **TypingIndicatorTimeout** | **optional.Int32**| | + **WebhookFilters** | [**optional.Interface of []string**](string.md)| | + **WebhookMethod** | **optional.String**| | ### Return type @@ -2238,7 +2238,7 @@ Name | Type | Description | Notes ## UpdateUser -> IpMessagingV2ServiceUser UpdateUser(ctx, serviceSid, sid, optional) +> IpMessagingV2ServiceUser UpdateUser(ctx, ServiceSid, Sid, optional) @@ -2248,8 +2248,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**sid** | **string**| | +**ServiceSid** | **string**| | +**Sid** | **string**| | **optional** | ***UpdateUserOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2261,10 +2261,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | - **attributes** | **optional.String**| | - **friendlyName** | **optional.String**| | - **roleSid** | **optional.String**| | + **XTwilioWebhookEnabled** | **optional.String**| The X-Twilio-Webhook-Enabled HTTP request header | + **Attributes** | **optional.String**| | + **FriendlyName** | **optional.String**| | + **RoleSid** | **optional.String**| | ### Return type @@ -2286,7 +2286,7 @@ Name | Type | Description | Notes ## UpdateUserChannel -> IpMessagingV2ServiceUserUserChannel UpdateUserChannel(ctx, serviceSid, userSid, channelSid, optional) +> IpMessagingV2ServiceUserUserChannel UpdateUserChannel(ctx, ServiceSid, UserSid, ChannelSid, optional) @@ -2296,9 +2296,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**userSid** | **string**| | -**channelSid** | **string**| | +**ServiceSid** | **string**| | +**UserSid** | **string**| | +**ChannelSid** | **string**| | **optional** | ***UpdateUserChannelOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2311,9 +2311,9 @@ Name | Type | Description | Notes - **lastConsumedMessageIndex** | **optional.Int32**| | - **lastConsumptionTimestamp** | **optional.Time**| | - **notificationLevel** | **optional.String**| | + **LastConsumedMessageIndex** | **optional.Int32**| | + **LastConsumptionTimestamp** | **optional.Time**| | + **NotificationLevel** | **optional.String**| | ### Return type diff --git a/rest/ip/messaging/model_create_channel_webhook_request.go b/rest/ip/messaging/model_create_channel_webhook_request.go index 918681a75..129054f7f 100644 --- a/rest/ip/messaging/model_create_channel_webhook_request.go +++ b/rest/ip/messaging/model_create_channel_webhook_request.go @@ -11,11 +11,11 @@ package openapi // CreateChannelWebhookRequest struct for CreateChannelWebhookRequest type CreateChannelWebhookRequest struct { - ConfigurationFilters []string `json:"Configuration.Filters,omitempty"` - ConfigurationFlowSid string `json:"Configuration.FlowSid,omitempty"` - ConfigurationMethod string `json:"Configuration.Method,omitempty"` - ConfigurationRetryCount int32 `json:"Configuration.RetryCount,omitempty"` - ConfigurationTriggers []string `json:"Configuration.Triggers,omitempty"` - ConfigurationUrl string `json:"Configuration.Url,omitempty"` + ConfigurationFilters []string `json:"ConfigurationFilters,omitempty"` + ConfigurationFlowSid string `json:"ConfigurationFlowSid,omitempty"` + ConfigurationMethod string `json:"ConfigurationMethod,omitempty"` + ConfigurationRetryCount int32 `json:"ConfigurationRetryCount,omitempty"` + ConfigurationTriggers []string `json:"ConfigurationTriggers,omitempty"` + ConfigurationUrl string `json:"ConfigurationUrl,omitempty"` Type string `json:"Type"` } diff --git a/rest/ip/messaging/model_ip_messaging_v1_credential.go b/rest/ip/messaging/model_ip_messaging_v1_credential.go index 239f9d95e..e3301b05d 100644 --- a/rest/ip/messaging/model_ip_messaging_v1_credential.go +++ b/rest/ip/messaging/model_ip_messaging_v1_credential.go @@ -14,12 +14,12 @@ import ( ) // IpMessagingV1Credential struct for IpMessagingV1Credential type IpMessagingV1Credential struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Sandbox string `json:"sandbox,omitempty"` - Sid string `json:"sid,omitempty"` - Type string `json:"type,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Sandbox string `json:"Sandbox,omitempty"` + Sid string `json:"Sid,omitempty"` + Type string `json:"Type,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v1_credential_read_response.go b/rest/ip/messaging/model_ip_messaging_v1_credential_read_response.go index ecebc9d4f..13e9c25a6 100644 --- a/rest/ip/messaging/model_ip_messaging_v1_credential_read_response.go +++ b/rest/ip/messaging/model_ip_messaging_v1_credential_read_response.go @@ -11,6 +11,6 @@ package openapi // IpMessagingV1CredentialReadResponse struct for IpMessagingV1CredentialReadResponse type IpMessagingV1CredentialReadResponse struct { - Credentials []IpMessagingV1Credential `json:"credentials,omitempty"` - Meta IpMessagingV1CredentialReadResponseMeta `json:"meta,omitempty"` + Credentials []IpMessagingV1Credential `json:"Credentials,omitempty"` + Meta IpMessagingV1CredentialReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v1_credential_read_response_meta.go b/rest/ip/messaging/model_ip_messaging_v1_credential_read_response_meta.go index b992c1e10..a3c0662a9 100644 --- a/rest/ip/messaging/model_ip_messaging_v1_credential_read_response_meta.go +++ b/rest/ip/messaging/model_ip_messaging_v1_credential_read_response_meta.go @@ -11,11 +11,11 @@ package openapi // IpMessagingV1CredentialReadResponseMeta struct for IpMessagingV1CredentialReadResponseMeta type IpMessagingV1CredentialReadResponseMeta struct { - FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` - NextPageUrl string `json:"next_page_url,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUrl string `json:"previous_page_url,omitempty"` - Url string `json:"url,omitempty"` + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v1_service.go b/rest/ip/messaging/model_ip_messaging_v1_service.go index 271b573de..b89af0d25 100644 --- a/rest/ip/messaging/model_ip_messaging_v1_service.go +++ b/rest/ip/messaging/model_ip_messaging_v1_service.go @@ -14,25 +14,25 @@ import ( ) // IpMessagingV1Service struct for IpMessagingV1Service type IpMessagingV1Service struct { - AccountSid string `json:"account_sid,omitempty"` - ConsumptionReportInterval int32 `json:"consumption_report_interval,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - DefaultChannelCreatorRoleSid string `json:"default_channel_creator_role_sid,omitempty"` - DefaultChannelRoleSid string `json:"default_channel_role_sid,omitempty"` - DefaultServiceRoleSid string `json:"default_service_role_sid,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Limits map[string]interface{} `json:"limits,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Notifications map[string]interface{} `json:"notifications,omitempty"` - PostWebhookUrl string `json:"post_webhook_url,omitempty"` - PreWebhookUrl string `json:"pre_webhook_url,omitempty"` - ReachabilityEnabled bool `json:"reachability_enabled,omitempty"` - ReadStatusEnabled bool `json:"read_status_enabled,omitempty"` - Sid string `json:"sid,omitempty"` - TypingIndicatorTimeout int32 `json:"typing_indicator_timeout,omitempty"` - Url string `json:"url,omitempty"` - WebhookFilters []string `json:"webhook_filters,omitempty"` - WebhookMethod string `json:"webhook_method,omitempty"` - Webhooks map[string]interface{} `json:"webhooks,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ConsumptionReportInterval int32 `json:"ConsumptionReportInterval,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + DefaultChannelCreatorRoleSid string `json:"DefaultChannelCreatorRoleSid,omitempty"` + DefaultChannelRoleSid string `json:"DefaultChannelRoleSid,omitempty"` + DefaultServiceRoleSid string `json:"DefaultServiceRoleSid,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Limits map[string]interface{} `json:"Limits,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Notifications map[string]interface{} `json:"Notifications,omitempty"` + PostWebhookUrl string `json:"PostWebhookUrl,omitempty"` + PreWebhookUrl string `json:"PreWebhookUrl,omitempty"` + ReachabilityEnabled bool `json:"ReachabilityEnabled,omitempty"` + ReadStatusEnabled bool `json:"ReadStatusEnabled,omitempty"` + Sid string `json:"Sid,omitempty"` + TypingIndicatorTimeout int32 `json:"TypingIndicatorTimeout,omitempty"` + Url string `json:"Url,omitempty"` + WebhookFilters []string `json:"WebhookFilters,omitempty"` + WebhookMethod string `json:"WebhookMethod,omitempty"` + Webhooks map[string]interface{} `json:"Webhooks,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_channel.go b/rest/ip/messaging/model_ip_messaging_v1_service_channel.go index a0b44ab55..da9d71684 100644 --- a/rest/ip/messaging/model_ip_messaging_v1_service_channel.go +++ b/rest/ip/messaging/model_ip_messaging_v1_service_channel.go @@ -14,18 +14,18 @@ import ( ) // IpMessagingV1ServiceChannel struct for IpMessagingV1ServiceChannel type IpMessagingV1ServiceChannel struct { - AccountSid string `json:"account_sid,omitempty"` - Attributes string `json:"attributes,omitempty"` - CreatedBy string `json:"created_by,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - MembersCount int32 `json:"members_count,omitempty"` - MessagesCount int32 `json:"messages_count,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Type string `json:"type,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Attributes string `json:"Attributes,omitempty"` + CreatedBy string `json:"CreatedBy,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + MembersCount int32 `json:"MembersCount,omitempty"` + MessagesCount int32 `json:"MessagesCount,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Type string `json:"Type,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_channel_invite.go b/rest/ip/messaging/model_ip_messaging_v1_service_channel_invite.go index 60fc1a163..26c4039d3 100644 --- a/rest/ip/messaging/model_ip_messaging_v1_service_channel_invite.go +++ b/rest/ip/messaging/model_ip_messaging_v1_service_channel_invite.go @@ -14,14 +14,14 @@ import ( ) // IpMessagingV1ServiceChannelInvite struct for IpMessagingV1ServiceChannelInvite type IpMessagingV1ServiceChannelInvite struct { - AccountSid string `json:"account_sid,omitempty"` - ChannelSid string `json:"channel_sid,omitempty"` - CreatedBy string `json:"created_by,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Identity string `json:"identity,omitempty"` - RoleSid string `json:"role_sid,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ChannelSid string `json:"ChannelSid,omitempty"` + CreatedBy string `json:"CreatedBy,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Identity string `json:"Identity,omitempty"` + RoleSid string `json:"RoleSid,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_channel_invite_read_response.go b/rest/ip/messaging/model_ip_messaging_v1_service_channel_invite_read_response.go index af93b0b5f..9c70d3bad 100644 --- a/rest/ip/messaging/model_ip_messaging_v1_service_channel_invite_read_response.go +++ b/rest/ip/messaging/model_ip_messaging_v1_service_channel_invite_read_response.go @@ -11,6 +11,6 @@ package openapi // IpMessagingV1ServiceChannelInviteReadResponse struct for IpMessagingV1ServiceChannelInviteReadResponse type IpMessagingV1ServiceChannelInviteReadResponse struct { - Invites []IpMessagingV1ServiceChannelInvite `json:"invites,omitempty"` - Meta IpMessagingV1CredentialReadResponseMeta `json:"meta,omitempty"` + Invites []IpMessagingV1ServiceChannelInvite `json:"Invites,omitempty"` + Meta IpMessagingV1CredentialReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_channel_member.go b/rest/ip/messaging/model_ip_messaging_v1_service_channel_member.go index 684b266a5..9979a4382 100644 --- a/rest/ip/messaging/model_ip_messaging_v1_service_channel_member.go +++ b/rest/ip/messaging/model_ip_messaging_v1_service_channel_member.go @@ -14,15 +14,15 @@ import ( ) // IpMessagingV1ServiceChannelMember struct for IpMessagingV1ServiceChannelMember type IpMessagingV1ServiceChannelMember struct { - AccountSid string `json:"account_sid,omitempty"` - ChannelSid string `json:"channel_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Identity string `json:"identity,omitempty"` - LastConsumedMessageIndex *int32 `json:"last_consumed_message_index,omitempty"` - LastConsumptionTimestamp time.Time `json:"last_consumption_timestamp,omitempty"` - RoleSid string `json:"role_sid,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ChannelSid string `json:"ChannelSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Identity string `json:"Identity,omitempty"` + LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` + LastConsumptionTimestamp time.Time `json:"LastConsumptionTimestamp,omitempty"` + RoleSid string `json:"RoleSid,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_channel_member_read_response.go b/rest/ip/messaging/model_ip_messaging_v1_service_channel_member_read_response.go index 08719365d..81961eae3 100644 --- a/rest/ip/messaging/model_ip_messaging_v1_service_channel_member_read_response.go +++ b/rest/ip/messaging/model_ip_messaging_v1_service_channel_member_read_response.go @@ -11,6 +11,6 @@ package openapi // IpMessagingV1ServiceChannelMemberReadResponse struct for IpMessagingV1ServiceChannelMemberReadResponse type IpMessagingV1ServiceChannelMemberReadResponse struct { - Members []IpMessagingV1ServiceChannelMember `json:"members,omitempty"` - Meta IpMessagingV1CredentialReadResponseMeta `json:"meta,omitempty"` + Members []IpMessagingV1ServiceChannelMember `json:"Members,omitempty"` + Meta IpMessagingV1CredentialReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_channel_message.go b/rest/ip/messaging/model_ip_messaging_v1_service_channel_message.go index df27a9c76..268125a01 100644 --- a/rest/ip/messaging/model_ip_messaging_v1_service_channel_message.go +++ b/rest/ip/messaging/model_ip_messaging_v1_service_channel_message.go @@ -14,17 +14,17 @@ import ( ) // IpMessagingV1ServiceChannelMessage struct for IpMessagingV1ServiceChannelMessage type IpMessagingV1ServiceChannelMessage struct { - AccountSid string `json:"account_sid,omitempty"` - Attributes string `json:"attributes,omitempty"` - Body string `json:"body,omitempty"` - ChannelSid string `json:"channel_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - From string `json:"from,omitempty"` - Index int32 `json:"index,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - To string `json:"to,omitempty"` - Url string `json:"url,omitempty"` - WasEdited bool `json:"was_edited,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Attributes string `json:"Attributes,omitempty"` + Body string `json:"Body,omitempty"` + ChannelSid string `json:"ChannelSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + From string `json:"From,omitempty"` + Index int32 `json:"Index,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + To string `json:"To,omitempty"` + Url string `json:"Url,omitempty"` + WasEdited bool `json:"WasEdited,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_channel_message_read_response.go b/rest/ip/messaging/model_ip_messaging_v1_service_channel_message_read_response.go index bb8d434e0..7a63ecc45 100644 --- a/rest/ip/messaging/model_ip_messaging_v1_service_channel_message_read_response.go +++ b/rest/ip/messaging/model_ip_messaging_v1_service_channel_message_read_response.go @@ -11,6 +11,6 @@ package openapi // IpMessagingV1ServiceChannelMessageReadResponse struct for IpMessagingV1ServiceChannelMessageReadResponse type IpMessagingV1ServiceChannelMessageReadResponse struct { - Messages []IpMessagingV1ServiceChannelMessage `json:"messages,omitempty"` - Meta IpMessagingV1CredentialReadResponseMeta `json:"meta,omitempty"` + Messages []IpMessagingV1ServiceChannelMessage `json:"Messages,omitempty"` + Meta IpMessagingV1CredentialReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_channel_read_response.go b/rest/ip/messaging/model_ip_messaging_v1_service_channel_read_response.go index b749838b5..cb6208d76 100644 --- a/rest/ip/messaging/model_ip_messaging_v1_service_channel_read_response.go +++ b/rest/ip/messaging/model_ip_messaging_v1_service_channel_read_response.go @@ -11,6 +11,6 @@ package openapi // IpMessagingV1ServiceChannelReadResponse struct for IpMessagingV1ServiceChannelReadResponse type IpMessagingV1ServiceChannelReadResponse struct { - Channels []IpMessagingV1ServiceChannel `json:"channels,omitempty"` - Meta IpMessagingV1CredentialReadResponseMeta `json:"meta,omitempty"` + Channels []IpMessagingV1ServiceChannel `json:"Channels,omitempty"` + Meta IpMessagingV1CredentialReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_read_response.go b/rest/ip/messaging/model_ip_messaging_v1_service_read_response.go index c04385ec0..87b5e9003 100644 --- a/rest/ip/messaging/model_ip_messaging_v1_service_read_response.go +++ b/rest/ip/messaging/model_ip_messaging_v1_service_read_response.go @@ -11,6 +11,6 @@ package openapi // IpMessagingV1ServiceReadResponse struct for IpMessagingV1ServiceReadResponse type IpMessagingV1ServiceReadResponse struct { - Meta IpMessagingV1CredentialReadResponseMeta `json:"meta,omitempty"` - Services []IpMessagingV1Service `json:"services,omitempty"` + Meta IpMessagingV1CredentialReadResponseMeta `json:"Meta,omitempty"` + Services []IpMessagingV1Service `json:"Services,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_role.go b/rest/ip/messaging/model_ip_messaging_v1_service_role.go index 2711e3127..7fed3d654 100644 --- a/rest/ip/messaging/model_ip_messaging_v1_service_role.go +++ b/rest/ip/messaging/model_ip_messaging_v1_service_role.go @@ -14,13 +14,13 @@ import ( ) // IpMessagingV1ServiceRole struct for IpMessagingV1ServiceRole type IpMessagingV1ServiceRole struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Permissions []string `json:"permissions,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Type string `json:"type,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Permissions []string `json:"Permissions,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Type string `json:"Type,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_role_read_response.go b/rest/ip/messaging/model_ip_messaging_v1_service_role_read_response.go index 9b26ea403..680ede560 100644 --- a/rest/ip/messaging/model_ip_messaging_v1_service_role_read_response.go +++ b/rest/ip/messaging/model_ip_messaging_v1_service_role_read_response.go @@ -11,6 +11,6 @@ package openapi // IpMessagingV1ServiceRoleReadResponse struct for IpMessagingV1ServiceRoleReadResponse type IpMessagingV1ServiceRoleReadResponse struct { - Meta IpMessagingV1CredentialReadResponseMeta `json:"meta,omitempty"` - Roles []IpMessagingV1ServiceRole `json:"roles,omitempty"` + Meta IpMessagingV1CredentialReadResponseMeta `json:"Meta,omitempty"` + Roles []IpMessagingV1ServiceRole `json:"Roles,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_user.go b/rest/ip/messaging/model_ip_messaging_v1_service_user.go index 1471c1cec..e2339d2be 100644 --- a/rest/ip/messaging/model_ip_messaging_v1_service_user.go +++ b/rest/ip/messaging/model_ip_messaging_v1_service_user.go @@ -14,18 +14,18 @@ import ( ) // IpMessagingV1ServiceUser struct for IpMessagingV1ServiceUser type IpMessagingV1ServiceUser struct { - AccountSid string `json:"account_sid,omitempty"` - Attributes string `json:"attributes,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Identity string `json:"identity,omitempty"` - IsNotifiable bool `json:"is_notifiable,omitempty"` - IsOnline bool `json:"is_online,omitempty"` - JoinedChannelsCount int32 `json:"joined_channels_count,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - RoleSid string `json:"role_sid,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Attributes string `json:"Attributes,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Identity string `json:"Identity,omitempty"` + IsNotifiable bool `json:"IsNotifiable,omitempty"` + IsOnline bool `json:"IsOnline,omitempty"` + JoinedChannelsCount int32 `json:"JoinedChannelsCount,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + RoleSid string `json:"RoleSid,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_user_read_response.go b/rest/ip/messaging/model_ip_messaging_v1_service_user_read_response.go index 865c8df07..4c1f9a3b0 100644 --- a/rest/ip/messaging/model_ip_messaging_v1_service_user_read_response.go +++ b/rest/ip/messaging/model_ip_messaging_v1_service_user_read_response.go @@ -11,6 +11,6 @@ package openapi // IpMessagingV1ServiceUserReadResponse struct for IpMessagingV1ServiceUserReadResponse type IpMessagingV1ServiceUserReadResponse struct { - Meta IpMessagingV1CredentialReadResponseMeta `json:"meta,omitempty"` - Users []IpMessagingV1ServiceUser `json:"users,omitempty"` + Meta IpMessagingV1CredentialReadResponseMeta `json:"Meta,omitempty"` + Users []IpMessagingV1ServiceUser `json:"Users,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_user_user_channel.go b/rest/ip/messaging/model_ip_messaging_v1_service_user_user_channel.go index 97fa6e243..89acc36e8 100644 --- a/rest/ip/messaging/model_ip_messaging_v1_service_user_user_channel.go +++ b/rest/ip/messaging/model_ip_messaging_v1_service_user_user_channel.go @@ -11,12 +11,12 @@ package openapi // IpMessagingV1ServiceUserUserChannel struct for IpMessagingV1ServiceUserUserChannel type IpMessagingV1ServiceUserUserChannel struct { - AccountSid string `json:"account_sid,omitempty"` - ChannelSid string `json:"channel_sid,omitempty"` - LastConsumedMessageIndex *int32 `json:"last_consumed_message_index,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - MemberSid string `json:"member_sid,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Status string `json:"status,omitempty"` - UnreadMessagesCount *int32 `json:"unread_messages_count,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ChannelSid string `json:"ChannelSid,omitempty"` + LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + MemberSid string `json:"MemberSid,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Status string `json:"Status,omitempty"` + UnreadMessagesCount *int32 `json:"UnreadMessagesCount,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_user_user_channel_read_response.go b/rest/ip/messaging/model_ip_messaging_v1_service_user_user_channel_read_response.go index 816c362f8..4f08582f3 100644 --- a/rest/ip/messaging/model_ip_messaging_v1_service_user_user_channel_read_response.go +++ b/rest/ip/messaging/model_ip_messaging_v1_service_user_user_channel_read_response.go @@ -11,6 +11,6 @@ package openapi // IpMessagingV1ServiceUserUserChannelReadResponse struct for IpMessagingV1ServiceUserUserChannelReadResponse type IpMessagingV1ServiceUserUserChannelReadResponse struct { - Channels []IpMessagingV1ServiceUserUserChannel `json:"channels,omitempty"` - Meta IpMessagingV1CredentialReadResponseMeta `json:"meta,omitempty"` + Channels []IpMessagingV1ServiceUserUserChannel `json:"Channels,omitempty"` + Meta IpMessagingV1CredentialReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v2_credential.go b/rest/ip/messaging/model_ip_messaging_v2_credential.go index b8c83ba35..733129b69 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_credential.go +++ b/rest/ip/messaging/model_ip_messaging_v2_credential.go @@ -14,12 +14,12 @@ import ( ) // IpMessagingV2Credential struct for IpMessagingV2Credential type IpMessagingV2Credential struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Sandbox string `json:"sandbox,omitempty"` - Sid string `json:"sid,omitempty"` - Type string `json:"type,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Sandbox string `json:"Sandbox,omitempty"` + Sid string `json:"Sid,omitempty"` + Type string `json:"Type,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v2_credential_read_response.go b/rest/ip/messaging/model_ip_messaging_v2_credential_read_response.go index 796cebd36..816671ae4 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_credential_read_response.go +++ b/rest/ip/messaging/model_ip_messaging_v2_credential_read_response.go @@ -11,6 +11,6 @@ package openapi // IpMessagingV2CredentialReadResponse struct for IpMessagingV2CredentialReadResponse type IpMessagingV2CredentialReadResponse struct { - Credentials []IpMessagingV2Credential `json:"credentials,omitempty"` - Meta IpMessagingV2CredentialReadResponseMeta `json:"meta,omitempty"` + Credentials []IpMessagingV2Credential `json:"Credentials,omitempty"` + Meta IpMessagingV2CredentialReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v2_credential_read_response_meta.go b/rest/ip/messaging/model_ip_messaging_v2_credential_read_response_meta.go index 558cb5312..147dcc54c 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_credential_read_response_meta.go +++ b/rest/ip/messaging/model_ip_messaging_v2_credential_read_response_meta.go @@ -11,11 +11,11 @@ package openapi // IpMessagingV2CredentialReadResponseMeta struct for IpMessagingV2CredentialReadResponseMeta type IpMessagingV2CredentialReadResponseMeta struct { - FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` - NextPageUrl string `json:"next_page_url,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUrl string `json:"previous_page_url,omitempty"` - Url string `json:"url,omitempty"` + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v2_service.go b/rest/ip/messaging/model_ip_messaging_v2_service.go index 45881da4c..5ed2d7fc0 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service.go +++ b/rest/ip/messaging/model_ip_messaging_v2_service.go @@ -14,27 +14,27 @@ import ( ) // IpMessagingV2Service struct for IpMessagingV2Service type IpMessagingV2Service struct { - AccountSid string `json:"account_sid,omitempty"` - ConsumptionReportInterval int32 `json:"consumption_report_interval,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - DefaultChannelCreatorRoleSid string `json:"default_channel_creator_role_sid,omitempty"` - DefaultChannelRoleSid string `json:"default_channel_role_sid,omitempty"` - DefaultServiceRoleSid string `json:"default_service_role_sid,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Limits map[string]interface{} `json:"limits,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Media map[string]interface{} `json:"media,omitempty"` - Notifications map[string]interface{} `json:"notifications,omitempty"` - PostWebhookRetryCount int32 `json:"post_webhook_retry_count,omitempty"` - PostWebhookUrl string `json:"post_webhook_url,omitempty"` - PreWebhookRetryCount int32 `json:"pre_webhook_retry_count,omitempty"` - PreWebhookUrl string `json:"pre_webhook_url,omitempty"` - ReachabilityEnabled bool `json:"reachability_enabled,omitempty"` - ReadStatusEnabled bool `json:"read_status_enabled,omitempty"` - Sid string `json:"sid,omitempty"` - TypingIndicatorTimeout int32 `json:"typing_indicator_timeout,omitempty"` - Url string `json:"url,omitempty"` - WebhookFilters []string `json:"webhook_filters,omitempty"` - WebhookMethod string `json:"webhook_method,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ConsumptionReportInterval int32 `json:"ConsumptionReportInterval,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + DefaultChannelCreatorRoleSid string `json:"DefaultChannelCreatorRoleSid,omitempty"` + DefaultChannelRoleSid string `json:"DefaultChannelRoleSid,omitempty"` + DefaultServiceRoleSid string `json:"DefaultServiceRoleSid,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Limits map[string]interface{} `json:"Limits,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Media map[string]interface{} `json:"Media,omitempty"` + Notifications map[string]interface{} `json:"Notifications,omitempty"` + PostWebhookRetryCount int32 `json:"PostWebhookRetryCount,omitempty"` + PostWebhookUrl string `json:"PostWebhookUrl,omitempty"` + PreWebhookRetryCount int32 `json:"PreWebhookRetryCount,omitempty"` + PreWebhookUrl string `json:"PreWebhookUrl,omitempty"` + ReachabilityEnabled bool `json:"ReachabilityEnabled,omitempty"` + ReadStatusEnabled bool `json:"ReadStatusEnabled,omitempty"` + Sid string `json:"Sid,omitempty"` + TypingIndicatorTimeout int32 `json:"TypingIndicatorTimeout,omitempty"` + Url string `json:"Url,omitempty"` + WebhookFilters []string `json:"WebhookFilters,omitempty"` + WebhookMethod string `json:"WebhookMethod,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_binding.go b/rest/ip/messaging/model_ip_messaging_v2_service_binding.go index e2350587b..8fac850dd 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_binding.go +++ b/rest/ip/messaging/model_ip_messaging_v2_service_binding.go @@ -14,16 +14,16 @@ import ( ) // IpMessagingV2ServiceBinding struct for IpMessagingV2ServiceBinding type IpMessagingV2ServiceBinding struct { - AccountSid string `json:"account_sid,omitempty"` - BindingType string `json:"binding_type,omitempty"` - CredentialSid string `json:"credential_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Endpoint string `json:"endpoint,omitempty"` - Identity string `json:"identity,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - MessageTypes []string `json:"message_types,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + BindingType string `json:"BindingType,omitempty"` + CredentialSid string `json:"CredentialSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Endpoint string `json:"Endpoint,omitempty"` + Identity string `json:"Identity,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + MessageTypes []string `json:"MessageTypes,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_binding_read_response.go b/rest/ip/messaging/model_ip_messaging_v2_service_binding_read_response.go index ce97da89d..10508dc81 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_binding_read_response.go +++ b/rest/ip/messaging/model_ip_messaging_v2_service_binding_read_response.go @@ -11,6 +11,6 @@ package openapi // IpMessagingV2ServiceBindingReadResponse struct for IpMessagingV2ServiceBindingReadResponse type IpMessagingV2ServiceBindingReadResponse struct { - Bindings []IpMessagingV2ServiceBinding `json:"bindings,omitempty"` - Meta IpMessagingV2CredentialReadResponseMeta `json:"meta,omitempty"` + Bindings []IpMessagingV2ServiceBinding `json:"Bindings,omitempty"` + Meta IpMessagingV2CredentialReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_channel.go b/rest/ip/messaging/model_ip_messaging_v2_service_channel.go index 223727592..85304e0f9 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_channel.go +++ b/rest/ip/messaging/model_ip_messaging_v2_service_channel.go @@ -14,18 +14,18 @@ import ( ) // IpMessagingV2ServiceChannel struct for IpMessagingV2ServiceChannel type IpMessagingV2ServiceChannel struct { - AccountSid string `json:"account_sid,omitempty"` - Attributes string `json:"attributes,omitempty"` - CreatedBy string `json:"created_by,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - MembersCount int32 `json:"members_count,omitempty"` - MessagesCount int32 `json:"messages_count,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Type string `json:"type,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Attributes string `json:"Attributes,omitempty"` + CreatedBy string `json:"CreatedBy,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + MembersCount int32 `json:"MembersCount,omitempty"` + MessagesCount int32 `json:"MessagesCount,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Type string `json:"Type,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_channel_channel_webhook.go b/rest/ip/messaging/model_ip_messaging_v2_service_channel_channel_webhook.go index 30f7c91f8..847ad3f06 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_channel_channel_webhook.go +++ b/rest/ip/messaging/model_ip_messaging_v2_service_channel_channel_webhook.go @@ -14,13 +14,13 @@ import ( ) // IpMessagingV2ServiceChannelChannelWebhook struct for IpMessagingV2ServiceChannelChannelWebhook type IpMessagingV2ServiceChannelChannelWebhook struct { - AccountSid string `json:"account_sid,omitempty"` - ChannelSid string `json:"channel_sid,omitempty"` - Configuration map[string]interface{} `json:"configuration,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Type string `json:"type,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ChannelSid string `json:"ChannelSid,omitempty"` + Configuration map[string]interface{} `json:"Configuration,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Type string `json:"Type,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_channel_channel_webhook_read_response.go b/rest/ip/messaging/model_ip_messaging_v2_service_channel_channel_webhook_read_response.go index 48b4a7563..4e9d490e3 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_channel_channel_webhook_read_response.go +++ b/rest/ip/messaging/model_ip_messaging_v2_service_channel_channel_webhook_read_response.go @@ -11,6 +11,6 @@ package openapi // IpMessagingV2ServiceChannelChannelWebhookReadResponse struct for IpMessagingV2ServiceChannelChannelWebhookReadResponse type IpMessagingV2ServiceChannelChannelWebhookReadResponse struct { - Meta IpMessagingV2CredentialReadResponseMeta `json:"meta,omitempty"` - Webhooks []IpMessagingV2ServiceChannelChannelWebhook `json:"webhooks,omitempty"` + Meta IpMessagingV2CredentialReadResponseMeta `json:"Meta,omitempty"` + Webhooks []IpMessagingV2ServiceChannelChannelWebhook `json:"Webhooks,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_channel_invite.go b/rest/ip/messaging/model_ip_messaging_v2_service_channel_invite.go index bafc708f3..606e9d0a0 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_channel_invite.go +++ b/rest/ip/messaging/model_ip_messaging_v2_service_channel_invite.go @@ -14,14 +14,14 @@ import ( ) // IpMessagingV2ServiceChannelInvite struct for IpMessagingV2ServiceChannelInvite type IpMessagingV2ServiceChannelInvite struct { - AccountSid string `json:"account_sid,omitempty"` - ChannelSid string `json:"channel_sid,omitempty"` - CreatedBy string `json:"created_by,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Identity string `json:"identity,omitempty"` - RoleSid string `json:"role_sid,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ChannelSid string `json:"ChannelSid,omitempty"` + CreatedBy string `json:"CreatedBy,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Identity string `json:"Identity,omitempty"` + RoleSid string `json:"RoleSid,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_channel_invite_read_response.go b/rest/ip/messaging/model_ip_messaging_v2_service_channel_invite_read_response.go index 4948366aa..89c7a72a2 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_channel_invite_read_response.go +++ b/rest/ip/messaging/model_ip_messaging_v2_service_channel_invite_read_response.go @@ -11,6 +11,6 @@ package openapi // IpMessagingV2ServiceChannelInviteReadResponse struct for IpMessagingV2ServiceChannelInviteReadResponse type IpMessagingV2ServiceChannelInviteReadResponse struct { - Invites []IpMessagingV2ServiceChannelInvite `json:"invites,omitempty"` - Meta IpMessagingV2CredentialReadResponseMeta `json:"meta,omitempty"` + Invites []IpMessagingV2ServiceChannelInvite `json:"Invites,omitempty"` + Meta IpMessagingV2CredentialReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_channel_member.go b/rest/ip/messaging/model_ip_messaging_v2_service_channel_member.go index da4365575..93fcf3e77 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_channel_member.go +++ b/rest/ip/messaging/model_ip_messaging_v2_service_channel_member.go @@ -14,16 +14,16 @@ import ( ) // IpMessagingV2ServiceChannelMember struct for IpMessagingV2ServiceChannelMember type IpMessagingV2ServiceChannelMember struct { - AccountSid string `json:"account_sid,omitempty"` - Attributes string `json:"attributes,omitempty"` - ChannelSid string `json:"channel_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Identity string `json:"identity,omitempty"` - LastConsumedMessageIndex *int32 `json:"last_consumed_message_index,omitempty"` - LastConsumptionTimestamp time.Time `json:"last_consumption_timestamp,omitempty"` - RoleSid string `json:"role_sid,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Attributes string `json:"Attributes,omitempty"` + ChannelSid string `json:"ChannelSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Identity string `json:"Identity,omitempty"` + LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` + LastConsumptionTimestamp time.Time `json:"LastConsumptionTimestamp,omitempty"` + RoleSid string `json:"RoleSid,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_channel_member_read_response.go b/rest/ip/messaging/model_ip_messaging_v2_service_channel_member_read_response.go index 31e2daad3..63a053f03 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_channel_member_read_response.go +++ b/rest/ip/messaging/model_ip_messaging_v2_service_channel_member_read_response.go @@ -11,6 +11,6 @@ package openapi // IpMessagingV2ServiceChannelMemberReadResponse struct for IpMessagingV2ServiceChannelMemberReadResponse type IpMessagingV2ServiceChannelMemberReadResponse struct { - Members []IpMessagingV2ServiceChannelMember `json:"members,omitempty"` - Meta IpMessagingV2CredentialReadResponseMeta `json:"meta,omitempty"` + Members []IpMessagingV2ServiceChannelMember `json:"Members,omitempty"` + Meta IpMessagingV2CredentialReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_channel_message.go b/rest/ip/messaging/model_ip_messaging_v2_service_channel_message.go index 88d5bae02..840c9d858 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_channel_message.go +++ b/rest/ip/messaging/model_ip_messaging_v2_service_channel_message.go @@ -14,20 +14,20 @@ import ( ) // IpMessagingV2ServiceChannelMessage struct for IpMessagingV2ServiceChannelMessage type IpMessagingV2ServiceChannelMessage struct { - AccountSid string `json:"account_sid,omitempty"` - Attributes string `json:"attributes,omitempty"` - Body string `json:"body,omitempty"` - ChannelSid string `json:"channel_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - From string `json:"from,omitempty"` - Index int32 `json:"index,omitempty"` - LastUpdatedBy string `json:"last_updated_by,omitempty"` - Media map[string]interface{} `json:"media,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - To string `json:"to,omitempty"` - Type string `json:"type,omitempty"` - Url string `json:"url,omitempty"` - WasEdited bool `json:"was_edited,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Attributes string `json:"Attributes,omitempty"` + Body string `json:"Body,omitempty"` + ChannelSid string `json:"ChannelSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + From string `json:"From,omitempty"` + Index int32 `json:"Index,omitempty"` + LastUpdatedBy string `json:"LastUpdatedBy,omitempty"` + Media map[string]interface{} `json:"Media,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + To string `json:"To,omitempty"` + Type string `json:"Type,omitempty"` + Url string `json:"Url,omitempty"` + WasEdited bool `json:"WasEdited,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_channel_message_read_response.go b/rest/ip/messaging/model_ip_messaging_v2_service_channel_message_read_response.go index aff10b898..1031c917d 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_channel_message_read_response.go +++ b/rest/ip/messaging/model_ip_messaging_v2_service_channel_message_read_response.go @@ -11,6 +11,6 @@ package openapi // IpMessagingV2ServiceChannelMessageReadResponse struct for IpMessagingV2ServiceChannelMessageReadResponse type IpMessagingV2ServiceChannelMessageReadResponse struct { - Messages []IpMessagingV2ServiceChannelMessage `json:"messages,omitempty"` - Meta IpMessagingV2CredentialReadResponseMeta `json:"meta,omitempty"` + Messages []IpMessagingV2ServiceChannelMessage `json:"Messages,omitempty"` + Meta IpMessagingV2CredentialReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_channel_read_response.go b/rest/ip/messaging/model_ip_messaging_v2_service_channel_read_response.go index efb659eb2..8ad412595 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_channel_read_response.go +++ b/rest/ip/messaging/model_ip_messaging_v2_service_channel_read_response.go @@ -11,6 +11,6 @@ package openapi // IpMessagingV2ServiceChannelReadResponse struct for IpMessagingV2ServiceChannelReadResponse type IpMessagingV2ServiceChannelReadResponse struct { - Channels []IpMessagingV2ServiceChannel `json:"channels,omitempty"` - Meta IpMessagingV2CredentialReadResponseMeta `json:"meta,omitempty"` + Channels []IpMessagingV2ServiceChannel `json:"Channels,omitempty"` + Meta IpMessagingV2CredentialReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_read_response.go b/rest/ip/messaging/model_ip_messaging_v2_service_read_response.go index 1ef29f4dd..de11ab51f 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_read_response.go +++ b/rest/ip/messaging/model_ip_messaging_v2_service_read_response.go @@ -11,6 +11,6 @@ package openapi // IpMessagingV2ServiceReadResponse struct for IpMessagingV2ServiceReadResponse type IpMessagingV2ServiceReadResponse struct { - Meta IpMessagingV2CredentialReadResponseMeta `json:"meta,omitempty"` - Services []IpMessagingV2Service `json:"services,omitempty"` + Meta IpMessagingV2CredentialReadResponseMeta `json:"Meta,omitempty"` + Services []IpMessagingV2Service `json:"Services,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_role.go b/rest/ip/messaging/model_ip_messaging_v2_service_role.go index 0f1009286..79a02f745 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_role.go +++ b/rest/ip/messaging/model_ip_messaging_v2_service_role.go @@ -14,13 +14,13 @@ import ( ) // IpMessagingV2ServiceRole struct for IpMessagingV2ServiceRole type IpMessagingV2ServiceRole struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Permissions []string `json:"permissions,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Type string `json:"type,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Permissions []string `json:"Permissions,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Type string `json:"Type,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_role_read_response.go b/rest/ip/messaging/model_ip_messaging_v2_service_role_read_response.go index 2ae16a86c..a80995e38 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_role_read_response.go +++ b/rest/ip/messaging/model_ip_messaging_v2_service_role_read_response.go @@ -11,6 +11,6 @@ package openapi // IpMessagingV2ServiceRoleReadResponse struct for IpMessagingV2ServiceRoleReadResponse type IpMessagingV2ServiceRoleReadResponse struct { - Meta IpMessagingV2CredentialReadResponseMeta `json:"meta,omitempty"` - Roles []IpMessagingV2ServiceRole `json:"roles,omitempty"` + Meta IpMessagingV2CredentialReadResponseMeta `json:"Meta,omitempty"` + Roles []IpMessagingV2ServiceRole `json:"Roles,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_user.go b/rest/ip/messaging/model_ip_messaging_v2_service_user.go index 28996d0e6..e12f9d81e 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_user.go +++ b/rest/ip/messaging/model_ip_messaging_v2_service_user.go @@ -14,18 +14,18 @@ import ( ) // IpMessagingV2ServiceUser struct for IpMessagingV2ServiceUser type IpMessagingV2ServiceUser struct { - AccountSid string `json:"account_sid,omitempty"` - Attributes string `json:"attributes,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Identity string `json:"identity,omitempty"` - IsNotifiable bool `json:"is_notifiable,omitempty"` - IsOnline bool `json:"is_online,omitempty"` - JoinedChannelsCount int32 `json:"joined_channels_count,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - RoleSid string `json:"role_sid,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Attributes string `json:"Attributes,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Identity string `json:"Identity,omitempty"` + IsNotifiable bool `json:"IsNotifiable,omitempty"` + IsOnline bool `json:"IsOnline,omitempty"` + JoinedChannelsCount int32 `json:"JoinedChannelsCount,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + RoleSid string `json:"RoleSid,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_user_read_response.go b/rest/ip/messaging/model_ip_messaging_v2_service_user_read_response.go index e6c24f9af..d5abc94be 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_user_read_response.go +++ b/rest/ip/messaging/model_ip_messaging_v2_service_user_read_response.go @@ -11,6 +11,6 @@ package openapi // IpMessagingV2ServiceUserReadResponse struct for IpMessagingV2ServiceUserReadResponse type IpMessagingV2ServiceUserReadResponse struct { - Meta IpMessagingV2CredentialReadResponseMeta `json:"meta,omitempty"` - Users []IpMessagingV2ServiceUser `json:"users,omitempty"` + Meta IpMessagingV2CredentialReadResponseMeta `json:"Meta,omitempty"` + Users []IpMessagingV2ServiceUser `json:"Users,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_user_user_binding.go b/rest/ip/messaging/model_ip_messaging_v2_service_user_user_binding.go index 05a433a66..efad3f0ca 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_user_user_binding.go +++ b/rest/ip/messaging/model_ip_messaging_v2_service_user_user_binding.go @@ -14,16 +14,16 @@ import ( ) // IpMessagingV2ServiceUserUserBinding struct for IpMessagingV2ServiceUserUserBinding type IpMessagingV2ServiceUserUserBinding struct { - AccountSid string `json:"account_sid,omitempty"` - BindingType string `json:"binding_type,omitempty"` - CredentialSid string `json:"credential_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Endpoint string `json:"endpoint,omitempty"` - Identity string `json:"identity,omitempty"` - MessageTypes []string `json:"message_types,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` - UserSid string `json:"user_sid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + BindingType string `json:"BindingType,omitempty"` + CredentialSid string `json:"CredentialSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Endpoint string `json:"Endpoint,omitempty"` + Identity string `json:"Identity,omitempty"` + MessageTypes []string `json:"MessageTypes,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` + UserSid string `json:"UserSid,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_user_user_binding_read_response.go b/rest/ip/messaging/model_ip_messaging_v2_service_user_user_binding_read_response.go index 1fa9f3126..05ce6a813 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_user_user_binding_read_response.go +++ b/rest/ip/messaging/model_ip_messaging_v2_service_user_user_binding_read_response.go @@ -11,6 +11,6 @@ package openapi // IpMessagingV2ServiceUserUserBindingReadResponse struct for IpMessagingV2ServiceUserUserBindingReadResponse type IpMessagingV2ServiceUserUserBindingReadResponse struct { - Bindings []IpMessagingV2ServiceUserUserBinding `json:"bindings,omitempty"` - Meta IpMessagingV2CredentialReadResponseMeta `json:"meta,omitempty"` + Bindings []IpMessagingV2ServiceUserUserBinding `json:"Bindings,omitempty"` + Meta IpMessagingV2CredentialReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_user_user_channel.go b/rest/ip/messaging/model_ip_messaging_v2_service_user_user_channel.go index b4d4863c3..238f7e95a 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_user_user_channel.go +++ b/rest/ip/messaging/model_ip_messaging_v2_service_user_user_channel.go @@ -11,15 +11,15 @@ package openapi // IpMessagingV2ServiceUserUserChannel struct for IpMessagingV2ServiceUserUserChannel type IpMessagingV2ServiceUserUserChannel struct { - AccountSid string `json:"account_sid,omitempty"` - ChannelSid string `json:"channel_sid,omitempty"` - LastConsumedMessageIndex *int32 `json:"last_consumed_message_index,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - MemberSid string `json:"member_sid,omitempty"` - NotificationLevel string `json:"notification_level,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Status string `json:"status,omitempty"` - UnreadMessagesCount *int32 `json:"unread_messages_count,omitempty"` - Url string `json:"url,omitempty"` - UserSid string `json:"user_sid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ChannelSid string `json:"ChannelSid,omitempty"` + LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + MemberSid string `json:"MemberSid,omitempty"` + NotificationLevel string `json:"NotificationLevel,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Status string `json:"Status,omitempty"` + UnreadMessagesCount *int32 `json:"UnreadMessagesCount,omitempty"` + Url string `json:"Url,omitempty"` + UserSid string `json:"UserSid,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_user_user_channel_read_response.go b/rest/ip/messaging/model_ip_messaging_v2_service_user_user_channel_read_response.go index c1bec80da..16216df55 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_user_user_channel_read_response.go +++ b/rest/ip/messaging/model_ip_messaging_v2_service_user_user_channel_read_response.go @@ -11,6 +11,6 @@ package openapi // IpMessagingV2ServiceUserUserChannelReadResponse struct for IpMessagingV2ServiceUserUserChannelReadResponse type IpMessagingV2ServiceUserUserChannelReadResponse struct { - Channels []IpMessagingV2ServiceUserUserChannel `json:"channels,omitempty"` - Meta IpMessagingV2CredentialReadResponseMeta `json:"meta,omitempty"` + Channels []IpMessagingV2ServiceUserUserChannel `json:"Channels,omitempty"` + Meta IpMessagingV2CredentialReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/ip/messaging/model_update_channel_webhook_request.go b/rest/ip/messaging/model_update_channel_webhook_request.go index e82b7ef0c..7fd8dad99 100644 --- a/rest/ip/messaging/model_update_channel_webhook_request.go +++ b/rest/ip/messaging/model_update_channel_webhook_request.go @@ -11,10 +11,10 @@ package openapi // UpdateChannelWebhookRequest struct for UpdateChannelWebhookRequest type UpdateChannelWebhookRequest struct { - ConfigurationFilters []string `json:"Configuration.Filters,omitempty"` - ConfigurationFlowSid string `json:"Configuration.FlowSid,omitempty"` - ConfigurationMethod string `json:"Configuration.Method,omitempty"` - ConfigurationRetryCount int32 `json:"Configuration.RetryCount,omitempty"` - ConfigurationTriggers []string `json:"Configuration.Triggers,omitempty"` - ConfigurationUrl string `json:"Configuration.Url,omitempty"` + ConfigurationFilters []string `json:"ConfigurationFilters,omitempty"` + ConfigurationFlowSid string `json:"ConfigurationFlowSid,omitempty"` + ConfigurationMethod string `json:"ConfigurationMethod,omitempty"` + ConfigurationRetryCount int32 `json:"ConfigurationRetryCount,omitempty"` + ConfigurationTriggers []string `json:"ConfigurationTriggers,omitempty"` + ConfigurationUrl string `json:"ConfigurationUrl,omitempty"` } diff --git a/rest/ip/messaging/model_update_service_request.go b/rest/ip/messaging/model_update_service_request.go index b5f2a0df1..81e121461 100644 --- a/rest/ip/messaging/model_update_service_request.go +++ b/rest/ip/messaging/model_update_service_request.go @@ -16,23 +16,23 @@ type UpdateServiceRequest struct { DefaultChannelRoleSid string `json:"DefaultChannelRoleSid,omitempty"` DefaultServiceRoleSid string `json:"DefaultServiceRoleSid,omitempty"` FriendlyName string `json:"FriendlyName,omitempty"` - LimitsChannelMembers int32 `json:"Limits.ChannelMembers,omitempty"` - LimitsUserChannels int32 `json:"Limits.UserChannels,omitempty"` - MediaCompatibilityMessage string `json:"Media.CompatibilityMessage,omitempty"` - NotificationsAddedToChannelEnabled bool `json:"Notifications.AddedToChannel.Enabled,omitempty"` - NotificationsAddedToChannelSound string `json:"Notifications.AddedToChannel.Sound,omitempty"` - NotificationsAddedToChannelTemplate string `json:"Notifications.AddedToChannel.Template,omitempty"` - NotificationsInvitedToChannelEnabled bool `json:"Notifications.InvitedToChannel.Enabled,omitempty"` - NotificationsInvitedToChannelSound string `json:"Notifications.InvitedToChannel.Sound,omitempty"` - NotificationsInvitedToChannelTemplate string `json:"Notifications.InvitedToChannel.Template,omitempty"` - NotificationsLogEnabled bool `json:"Notifications.LogEnabled,omitempty"` - NotificationsNewMessageBadgeCountEnabled bool `json:"Notifications.NewMessage.BadgeCountEnabled,omitempty"` - NotificationsNewMessageEnabled bool `json:"Notifications.NewMessage.Enabled,omitempty"` - NotificationsNewMessageSound string `json:"Notifications.NewMessage.Sound,omitempty"` - NotificationsNewMessageTemplate string `json:"Notifications.NewMessage.Template,omitempty"` - NotificationsRemovedFromChannelEnabled bool `json:"Notifications.RemovedFromChannel.Enabled,omitempty"` - NotificationsRemovedFromChannelSound string `json:"Notifications.RemovedFromChannel.Sound,omitempty"` - NotificationsRemovedFromChannelTemplate string `json:"Notifications.RemovedFromChannel.Template,omitempty"` + LimitsChannelMembers int32 `json:"LimitsChannelMembers,omitempty"` + LimitsUserChannels int32 `json:"LimitsUserChannels,omitempty"` + MediaCompatibilityMessage string `json:"MediaCompatibilityMessage,omitempty"` + NotificationsAddedToChannelEnabled bool `json:"NotificationsAddedToChannelEnabled,omitempty"` + NotificationsAddedToChannelSound string `json:"NotificationsAddedToChannelSound,omitempty"` + NotificationsAddedToChannelTemplate string `json:"NotificationsAddedToChannelTemplate,omitempty"` + NotificationsInvitedToChannelEnabled bool `json:"NotificationsInvitedToChannelEnabled,omitempty"` + NotificationsInvitedToChannelSound string `json:"NotificationsInvitedToChannelSound,omitempty"` + NotificationsInvitedToChannelTemplate string `json:"NotificationsInvitedToChannelTemplate,omitempty"` + NotificationsLogEnabled bool `json:"NotificationsLogEnabled,omitempty"` + NotificationsNewMessageBadgeCountEnabled bool `json:"NotificationsNewMessageBadgeCountEnabled,omitempty"` + NotificationsNewMessageEnabled bool `json:"NotificationsNewMessageEnabled,omitempty"` + NotificationsNewMessageSound string `json:"NotificationsNewMessageSound,omitempty"` + NotificationsNewMessageTemplate string `json:"NotificationsNewMessageTemplate,omitempty"` + NotificationsRemovedFromChannelEnabled bool `json:"NotificationsRemovedFromChannelEnabled,omitempty"` + NotificationsRemovedFromChannelSound string `json:"NotificationsRemovedFromChannelSound,omitempty"` + NotificationsRemovedFromChannelTemplate string `json:"NotificationsRemovedFromChannelTemplate,omitempty"` PostWebhookRetryCount int32 `json:"PostWebhookRetryCount,omitempty"` PostWebhookUrl string `json:"PostWebhookUrl,omitempty"` PreWebhookRetryCount int32 `json:"PreWebhookRetryCount,omitempty"` diff --git a/rest/lookups/v1/api_default.go b/rest/lookups/v1/api_default.go index ad5da9662..d8836909e 100644 --- a/rest/lookups/v1/api_default.go +++ b/rest/lookups/v1/api_default.go @@ -15,6 +15,7 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" ) type DefaultApiService struct { @@ -38,7 +39,7 @@ type FetchPhoneNumberParams struct { /* FetchPhoneNumber Method for FetchPhoneNumber - * @param phoneNumber The phone number to lookup in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. + * @param PhoneNumber The phone number to lookup in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. * @param optional nil or *FetchPhoneNumberOpts - Optional Parameters: * @param "CountryCode" (string) - The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the phone number to fetch. This is used to specify the country when the phone number is provided in a national format. * @param "Type" ([]string) - The type of information to return. Can be: `carrier` or `caller-name`. The default is null. Carrier information costs $0.005 per phone number looked up. Caller Name information is currently available only in the US and costs $0.01 per phone number looked up. To retrieve both types on information, specify this parameter twice; once with `carrier` and once with `caller-name` as the value. @@ -46,21 +47,22 @@ FetchPhoneNumber Method for FetchPhoneNumber * @param "AddOnsData" (map[string]interface{}) - Data specific to the add-on you would like to invoke. The content and format of this value depends on the add-on. @return LookupsV1PhoneNumber */ -func (c *DefaultApiService) FetchPhoneNumber(phoneNumber string, params *FetchPhoneNumberParams) (*LookupsV1PhoneNumber, error) { +func (c *DefaultApiService) FetchPhoneNumber(PhoneNumber string, params *FetchPhoneNumberParams) (*LookupsV1PhoneNumber, error) { path := "/v1/PhoneNumbers/{PhoneNumber}" - path = strings.Replace(path, "{"+"PhoneNumber"+"}", phoneNumber, -1) + path = strings.Replace(path, "{"+"PhoneNumber"+"}", PhoneNumber, -1) + data := url.Values{} headers := 0 if params != nil && params.CountryCode != nil { - data.Set("CountryCode", *params.CountryCode) + data.Set("CountryCode", *params.CountryCode) } if params != nil && params.Type != nil { - data.Set("Type", string(*params.Type)) + data.Set("Type", strings.Join(*params.Type, ",")) } if params != nil && params.AddOns != nil { - data.Set("AddOns", string(*params.AddOns)) + data.Set("AddOns", strings.Join(*params.AddOns, ",")) } if params != nil && params.AddOnsData != nil { v, err := json.Marshal(params.AddOnsData) @@ -69,7 +71,7 @@ func (c *DefaultApiService) FetchPhoneNumber(phoneNumber string, params *FetchPh return nil, err } - data.Set("AddOnsData", string(v)) + data.Set("AddOnsData", fmt.Sprint(v)) } diff --git a/rest/lookups/v1/docs/DefaultApi.md b/rest/lookups/v1/docs/DefaultApi.md index 11dbd655c..e5d97e027 100644 --- a/rest/lookups/v1/docs/DefaultApi.md +++ b/rest/lookups/v1/docs/DefaultApi.md @@ -10,7 +10,7 @@ Method | HTTP request | Description ## FetchPhoneNumber -> LookupsV1PhoneNumber FetchPhoneNumber(ctx, phoneNumber, optional) +> LookupsV1PhoneNumber FetchPhoneNumber(ctx, PhoneNumber, optional) @@ -20,7 +20,7 @@ Method | HTTP request | Description Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**phoneNumber** | **string**| The phone number to lookup in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. | +**PhoneNumber** | **string**| The phone number to lookup 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** | ***FetchPhoneNumberOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -31,10 +31,10 @@ Optional parameters are passed through a pointer to a FetchPhoneNumberOpts struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **countryCode** | **optional.String**| The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the phone number to fetch. This is used to specify the country when the phone number is provided in a national format. | - **type_** | [**optional.Interface of []string**](string.md)| The type of information to return. Can be: `carrier` or `caller-name`. The default is null. Carrier information costs $0.005 per phone number looked up. Caller Name information is currently available only in the US and costs $0.01 per phone number looked up. To retrieve both types on information, specify this parameter twice; once with `carrier` and once with `caller-name` as the value. | - **addOns** | [**optional.Interface of []string**](string.md)| The `unique_name` of an Add-on you would like to invoke. Can be the `unique_name` of an Add-on that is installed on your account. You can specify multiple instances of this parameter to invoke multiple Add-ons. For more information about Add-ons, see the [Add-ons documentation](https://www.twilio.com/docs/add-ons). | - **addOnsData** | [**optional.Interface of map[string]interface{}**](.md)| Data specific to the add-on you would like to invoke. The content and format of this value depends on the add-on. | + **CountryCode** | **optional.String**| The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the phone number to fetch. This is used to specify the country when the phone number is provided in a national format. | + **Type** | [**optional.Interface of []string**](string.md)| The type of information to return. Can be: `carrier` or `caller-name`. The default is null. Carrier information costs $0.005 per phone number looked up. Caller Name information is currently available only in the US and costs $0.01 per phone number looked up. To retrieve both types on information, specify this parameter twice; once with `carrier` and once with `caller-name` as the value. | + **AddOns** | [**optional.Interface of []string**](string.md)| The `unique_name` of an Add-on you would like to invoke. Can be the `unique_name` of an Add-on that is installed on your account. You can specify multiple instances of this parameter to invoke multiple Add-ons. For more information about Add-ons, see the [Add-ons documentation](https://www.twilio.com/docs/add-ons). | + **AddOnsData** | [**optional.Interface of map[string]interface{}**](.md)| Data specific to the add-on you would like to invoke. The content and format of this value depends on the add-on. | ### Return type diff --git a/rest/lookups/v1/model_lookups_v1_phone_number.go b/rest/lookups/v1/model_lookups_v1_phone_number.go index e8859d034..7b007d883 100644 --- a/rest/lookups/v1/model_lookups_v1_phone_number.go +++ b/rest/lookups/v1/model_lookups_v1_phone_number.go @@ -11,11 +11,11 @@ package openapi // LookupsV1PhoneNumber struct for LookupsV1PhoneNumber type LookupsV1PhoneNumber struct { - AddOns map[string]interface{} `json:"add_ons,omitempty"` - CallerName map[string]interface{} `json:"caller_name,omitempty"` - Carrier map[string]interface{} `json:"carrier,omitempty"` - CountryCode string `json:"country_code,omitempty"` - NationalFormat string `json:"national_format,omitempty"` - PhoneNumber string `json:"phone_number,omitempty"` - Url string `json:"url,omitempty"` + AddOns map[string]interface{} `json:"AddOns,omitempty"` + CallerName map[string]interface{} `json:"CallerName,omitempty"` + Carrier map[string]interface{} `json:"Carrier,omitempty"` + CountryCode string `json:"CountryCode,omitempty"` + NationalFormat string `json:"NationalFormat,omitempty"` + PhoneNumber string `json:"PhoneNumber,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/messaging/v1/api_default.go b/rest/messaging/v1/api_default.go index d3cab2f29..ae7db44c8 100644 --- a/rest/messaging/v1/api_default.go +++ b/rest/messaging/v1/api_default.go @@ -15,6 +15,8 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" + "time" ) type DefaultApiService struct { @@ -35,20 +37,21 @@ type CreateAlphaSenderParams struct { /* CreateAlphaSender Method for CreateAlphaSender - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the resource under. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the resource under. * @param optional nil or *CreateAlphaSenderOpts - Optional Parameters: * @param "AlphaSender" (string) - The Alphanumeric Sender ID string. Can be up to 11 characters long. Valid characters are A-Z, a-z, 0-9, space, and hyphen `-`. This value cannot contain only numbers. @return MessagingV1ServiceAlphaSender */ -func (c *DefaultApiService) CreateAlphaSender(serviceSid string, params *CreateAlphaSenderParams) (*MessagingV1ServiceAlphaSender, error) { +func (c *DefaultApiService) CreateAlphaSender(ServiceSid string, params *CreateAlphaSenderParams) (*MessagingV1ServiceAlphaSender, error) { path := "/v1/Services/{ServiceSid}/AlphaSenders" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.AlphaSender != nil { - data.Set("AlphaSender", *params.AlphaSender) + data.Set("AlphaSender", *params.AlphaSender) } @@ -73,20 +76,21 @@ type CreatePhoneNumberParams struct { /* CreatePhoneNumber Method for CreatePhoneNumber - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the resource under. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the resource under. * @param optional nil or *CreatePhoneNumberOpts - Optional Parameters: * @param "PhoneNumberSid" (string) - The SID of the Phone Number being added to the Service. @return MessagingV1ServicePhoneNumber */ -func (c *DefaultApiService) CreatePhoneNumber(serviceSid string, params *CreatePhoneNumberParams) (*MessagingV1ServicePhoneNumber, error) { +func (c *DefaultApiService) CreatePhoneNumber(ServiceSid string, params *CreatePhoneNumberParams) (*MessagingV1ServicePhoneNumber, error) { path := "/v1/Services/{ServiceSid}/PhoneNumbers" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PhoneNumberSid != nil { - data.Set("PhoneNumberSid", *params.PhoneNumberSid) + data.Set("PhoneNumberSid", *params.PhoneNumberSid) } @@ -144,50 +148,51 @@ CreateService Method for CreateService func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*MessagingV1Service, error) { path := "/v1/Services" + data := url.Values{} headers := 0 if params != nil && params.AreaCodeGeomatch != nil { - data.Set("AreaCodeGeomatch", string(*params.AreaCodeGeomatch)) + data.Set("AreaCodeGeomatch", fmt.Sprint(*params.AreaCodeGeomatch)) } if params != nil && params.FallbackMethod != nil { - data.Set("FallbackMethod", *params.FallbackMethod) + data.Set("FallbackMethod", *params.FallbackMethod) } if params != nil && params.FallbackToLongCode != nil { - data.Set("FallbackToLongCode", string(*params.FallbackToLongCode)) + data.Set("FallbackToLongCode", fmt.Sprint(*params.FallbackToLongCode)) } if params != nil && params.FallbackUrl != nil { - data.Set("FallbackUrl", *params.FallbackUrl) + data.Set("FallbackUrl", *params.FallbackUrl) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.InboundMethod != nil { - data.Set("InboundMethod", *params.InboundMethod) + data.Set("InboundMethod", *params.InboundMethod) } if params != nil && params.InboundRequestUrl != nil { - data.Set("InboundRequestUrl", *params.InboundRequestUrl) + data.Set("InboundRequestUrl", *params.InboundRequestUrl) } if params != nil && params.MmsConverter != nil { - data.Set("MmsConverter", string(*params.MmsConverter)) + data.Set("MmsConverter", fmt.Sprint(*params.MmsConverter)) } if params != nil && params.ScanMessageContent != nil { - data.Set("ScanMessageContent", *params.ScanMessageContent) + data.Set("ScanMessageContent", *params.ScanMessageContent) } if params != nil && params.SmartEncoding != nil { - data.Set("SmartEncoding", string(*params.SmartEncoding)) + data.Set("SmartEncoding", fmt.Sprint(*params.SmartEncoding)) } if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) + data.Set("StatusCallback", *params.StatusCallback) } if params != nil && params.StickySender != nil { - data.Set("StickySender", string(*params.StickySender)) + data.Set("StickySender", fmt.Sprint(*params.StickySender)) } if params != nil && params.SynchronousValidation != nil { - data.Set("SynchronousValidation", string(*params.SynchronousValidation)) + data.Set("SynchronousValidation", fmt.Sprint(*params.SynchronousValidation)) } if params != nil && params.ValidityPeriod != nil { - data.Set("ValidityPeriod", string(*params.ValidityPeriod)) + data.Set("ValidityPeriod", fmt.Sprint(*params.ValidityPeriod)) } @@ -212,20 +217,21 @@ type CreateShortCodeParams struct { /* CreateShortCode Method for CreateShortCode - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the resource under. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the resource under. * @param optional nil or *CreateShortCodeOpts - Optional Parameters: * @param "ShortCodeSid" (string) - The SID of the ShortCode resource being added to the Service. @return MessagingV1ServiceShortCode */ -func (c *DefaultApiService) CreateShortCode(serviceSid string, params *CreateShortCodeParams) (*MessagingV1ServiceShortCode, error) { +func (c *DefaultApiService) CreateShortCode(ServiceSid string, params *CreateShortCodeParams) (*MessagingV1ServiceShortCode, error) { path := "/v1/Services/{ServiceSid}/ShortCodes" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.ShortCodeSid != nil { - data.Set("ShortCodeSid", *params.ShortCodeSid) + data.Set("ShortCodeSid", *params.ShortCodeSid) } @@ -246,15 +252,16 @@ func (c *DefaultApiService) CreateShortCode(serviceSid string, params *CreateSho /* DeleteAlphaSender Method for DeleteAlphaSender - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the resource from. - * @param sid The SID of the AlphaSender resource to delete. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the resource from. + * @param Sid The SID of the AlphaSender resource to delete. */ -func (c *DefaultApiService) DeleteAlphaSender(serviceSid string, sid string) (error) { +func (c *DefaultApiService) DeleteAlphaSender(ServiceSid string, Sid string) (error) { path := "/v1/Services/{ServiceSid}/AlphaSenders/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -271,15 +278,16 @@ func (c *DefaultApiService) DeleteAlphaSender(serviceSid string, sid string) (er /* DeletePhoneNumber Method for DeletePhoneNumber - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the resource from. - * @param sid The SID of the PhoneNumber resource to delete. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the resource from. + * @param Sid The SID of the PhoneNumber resource to delete. */ -func (c *DefaultApiService) DeletePhoneNumber(serviceSid string, sid string) (error) { +func (c *DefaultApiService) DeletePhoneNumber(ServiceSid string, Sid string) (error) { path := "/v1/Services/{ServiceSid}/PhoneNumbers/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -296,13 +304,14 @@ func (c *DefaultApiService) DeletePhoneNumber(serviceSid string, sid string) (er /* DeleteService Method for DeleteService - * @param sid The SID of the Service resource to delete. + * @param Sid The SID of the Service resource to delete. */ -func (c *DefaultApiService) DeleteService(sid string) (error) { +func (c *DefaultApiService) DeleteService(Sid string) (error) { path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -319,15 +328,16 @@ func (c *DefaultApiService) DeleteService(sid string) (error) { /* DeleteShortCode Method for DeleteShortCode - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the resource from. - * @param sid The SID of the ShortCode resource to delete. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the resource from. + * @param Sid The SID of the ShortCode resource to delete. */ -func (c *DefaultApiService) DeleteShortCode(serviceSid string, sid string) (error) { +func (c *DefaultApiService) DeleteShortCode(ServiceSid string, Sid string) (error) { path := "/v1/Services/{ServiceSid}/ShortCodes/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -344,16 +354,17 @@ func (c *DefaultApiService) DeleteShortCode(serviceSid string, sid string) (erro /* FetchAlphaSender Method for FetchAlphaSender - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the resource from. - * @param sid The SID of the AlphaSender resource to fetch. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the resource from. + * @param Sid The SID of the AlphaSender resource to fetch. @return MessagingV1ServiceAlphaSender */ -func (c *DefaultApiService) FetchAlphaSender(serviceSid string, sid string) (*MessagingV1ServiceAlphaSender, error) { +func (c *DefaultApiService) FetchAlphaSender(ServiceSid string, Sid string) (*MessagingV1ServiceAlphaSender, error) { path := "/v1/Services/{ServiceSid}/AlphaSenders/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -386,11 +397,12 @@ Fetch a list of all United States numbers that have been deactivated on a specif func (c *DefaultApiService) FetchDeactivation(params *FetchDeactivationParams) (error) { path := "/v1/Deactivations" + data := url.Values{} headers := 0 if params != nil && params.Date != nil { - data.Set("Date", string(*params.Date)) + data.Set("Date", fmt.Sprint(*params.Date)) } @@ -406,16 +418,17 @@ func (c *DefaultApiService) FetchDeactivation(params *FetchDeactivationParams) ( /* FetchPhoneNumber Method for FetchPhoneNumber - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the resource from. - * @param sid The SID of the PhoneNumber resource to fetch. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the resource from. + * @param Sid The SID of the PhoneNumber resource to fetch. @return MessagingV1ServicePhoneNumber */ -func (c *DefaultApiService) FetchPhoneNumber(serviceSid string, sid string) (*MessagingV1ServicePhoneNumber, error) { +func (c *DefaultApiService) FetchPhoneNumber(ServiceSid string, Sid string) (*MessagingV1ServicePhoneNumber, error) { path := "/v1/Services/{ServiceSid}/PhoneNumbers/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -437,14 +450,15 @@ func (c *DefaultApiService) FetchPhoneNumber(serviceSid string, sid string) (*Me /* FetchService Method for FetchService - * @param sid The SID of the Service resource to fetch. + * @param Sid The SID of the Service resource to fetch. @return MessagingV1Service */ -func (c *DefaultApiService) FetchService(sid string) (*MessagingV1Service, error) { +func (c *DefaultApiService) FetchService(Sid string) (*MessagingV1Service, error) { path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -466,16 +480,17 @@ func (c *DefaultApiService) FetchService(sid string) (*MessagingV1Service, error /* FetchShortCode Method for FetchShortCode - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the resource from. - * @param sid The SID of the ShortCode resource to fetch. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the resource from. + * @param Sid The SID of the ShortCode resource to fetch. @return MessagingV1ServiceShortCode */ -func (c *DefaultApiService) FetchShortCode(serviceSid string, sid string) (*MessagingV1ServiceShortCode, error) { +func (c *DefaultApiService) FetchShortCode(ServiceSid string, Sid string) (*MessagingV1ServiceShortCode, error) { path := "/v1/Services/{ServiceSid}/ShortCodes/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -501,20 +516,21 @@ type ListAlphaSenderParams struct { /* ListAlphaSender Method for ListAlphaSender - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the resources from. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the resources from. * @param optional nil or *ListAlphaSenderOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return MessagingV1ServiceAlphaSenderReadResponse */ -func (c *DefaultApiService) ListAlphaSender(serviceSid string, params *ListAlphaSenderParams) (*MessagingV1ServiceAlphaSenderReadResponse, error) { +func (c *DefaultApiService) ListAlphaSender(ServiceSid string, params *ListAlphaSenderParams) (*MessagingV1ServiceAlphaSenderReadResponse, error) { path := "/v1/Services/{ServiceSid}/AlphaSenders" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -539,20 +555,21 @@ type ListPhoneNumberParams struct { /* ListPhoneNumber Method for ListPhoneNumber - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the resources from. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the resources from. * @param optional nil or *ListPhoneNumberOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return MessagingV1ServicePhoneNumberReadResponse */ -func (c *DefaultApiService) ListPhoneNumber(serviceSid string, params *ListPhoneNumberParams) (*MessagingV1ServicePhoneNumberReadResponse, error) { +func (c *DefaultApiService) ListPhoneNumber(ServiceSid string, params *ListPhoneNumberParams) (*MessagingV1ServicePhoneNumberReadResponse, error) { path := "/v1/Services/{ServiceSid}/PhoneNumbers" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -584,11 +601,12 @@ ListService Method for ListService func (c *DefaultApiService) ListService(params *ListServiceParams) (*MessagingV1ServiceReadResponse, error) { path := "/v1/Services" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -613,20 +631,21 @@ type ListShortCodeParams struct { /* ListShortCode Method for ListShortCode - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the resources from. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the resources from. * @param optional nil or *ListShortCodeOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return MessagingV1ServiceShortCodeReadResponse */ -func (c *DefaultApiService) ListShortCode(serviceSid string, params *ListShortCodeParams) (*MessagingV1ServiceShortCodeReadResponse, error) { +func (c *DefaultApiService) ListShortCode(ServiceSid string, params *ListShortCodeParams) (*MessagingV1ServiceShortCodeReadResponse, error) { path := "/v1/Services/{ServiceSid}/ShortCodes" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -664,7 +683,7 @@ type UpdateServiceParams struct { /* UpdateService Method for UpdateService - * @param sid The SID of the Service resource to update. + * @param Sid The SID of the Service resource to update. * @param optional nil or *UpdateServiceOpts - Optional Parameters: * @param "AreaCodeGeomatch" (bool) - Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/sms/services#area-code-geomatch) on the Service Instance. * @param "FallbackMethod" (string) - The HTTP method we should use to call `fallback_url`. Can be: `GET` or `POST`. @@ -682,54 +701,55 @@ UpdateService Method for UpdateService * @param "ValidityPeriod" (int32) - How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`. @return MessagingV1Service */ -func (c *DefaultApiService) UpdateService(sid string, params *UpdateServiceParams) (*MessagingV1Service, error) { +func (c *DefaultApiService) UpdateService(Sid string, params *UpdateServiceParams) (*MessagingV1Service, error) { path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.AreaCodeGeomatch != nil { - data.Set("AreaCodeGeomatch", string(*params.AreaCodeGeomatch)) + data.Set("AreaCodeGeomatch", fmt.Sprint(*params.AreaCodeGeomatch)) } if params != nil && params.FallbackMethod != nil { - data.Set("FallbackMethod", *params.FallbackMethod) + data.Set("FallbackMethod", *params.FallbackMethod) } if params != nil && params.FallbackToLongCode != nil { - data.Set("FallbackToLongCode", string(*params.FallbackToLongCode)) + data.Set("FallbackToLongCode", fmt.Sprint(*params.FallbackToLongCode)) } if params != nil && params.FallbackUrl != nil { - data.Set("FallbackUrl", *params.FallbackUrl) + data.Set("FallbackUrl", *params.FallbackUrl) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.InboundMethod != nil { - data.Set("InboundMethod", *params.InboundMethod) + data.Set("InboundMethod", *params.InboundMethod) } if params != nil && params.InboundRequestUrl != nil { - data.Set("InboundRequestUrl", *params.InboundRequestUrl) + data.Set("InboundRequestUrl", *params.InboundRequestUrl) } if params != nil && params.MmsConverter != nil { - data.Set("MmsConverter", string(*params.MmsConverter)) + data.Set("MmsConverter", fmt.Sprint(*params.MmsConverter)) } if params != nil && params.ScanMessageContent != nil { - data.Set("ScanMessageContent", *params.ScanMessageContent) + data.Set("ScanMessageContent", *params.ScanMessageContent) } if params != nil && params.SmartEncoding != nil { - data.Set("SmartEncoding", string(*params.SmartEncoding)) + data.Set("SmartEncoding", fmt.Sprint(*params.SmartEncoding)) } if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) + data.Set("StatusCallback", *params.StatusCallback) } if params != nil && params.StickySender != nil { - data.Set("StickySender", string(*params.StickySender)) + data.Set("StickySender", fmt.Sprint(*params.StickySender)) } if params != nil && params.SynchronousValidation != nil { - data.Set("SynchronousValidation", string(*params.SynchronousValidation)) + data.Set("SynchronousValidation", fmt.Sprint(*params.SynchronousValidation)) } if params != nil && params.ValidityPeriod != nil { - data.Set("ValidityPeriod", string(*params.ValidityPeriod)) + data.Set("ValidityPeriod", fmt.Sprint(*params.ValidityPeriod)) } diff --git a/rest/messaging/v1/docs/DefaultApi.md b/rest/messaging/v1/docs/DefaultApi.md index a997321b8..2999c492e 100644 --- a/rest/messaging/v1/docs/DefaultApi.md +++ b/rest/messaging/v1/docs/DefaultApi.md @@ -27,7 +27,7 @@ Method | HTTP request | Description ## CreateAlphaSender -> MessagingV1ServiceAlphaSender CreateAlphaSender(ctx, serviceSid, optional) +> MessagingV1ServiceAlphaSender CreateAlphaSender(ctx, ServiceSid, optional) @@ -37,7 +37,7 @@ Method | HTTP request | Description Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the resource under. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the resource under. | **optional** | ***CreateAlphaSenderOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -48,7 +48,7 @@ Optional parameters are passed through a pointer to a CreateAlphaSenderOpts stru Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **alphaSender** | **optional.String**| The Alphanumeric Sender ID string. Can be up to 11 characters long. Valid characters are A-Z, a-z, 0-9, space, and hyphen `-`. This value cannot contain only numbers. | + **AlphaSender** | **optional.String**| The Alphanumeric Sender ID string. Can be up to 11 characters long. Valid characters are A-Z, a-z, 0-9, space, and hyphen `-`. This value cannot contain only numbers. | ### Return type @@ -70,7 +70,7 @@ Name | Type | Description | Notes ## CreatePhoneNumber -> MessagingV1ServicePhoneNumber CreatePhoneNumber(ctx, serviceSid, optional) +> MessagingV1ServicePhoneNumber CreatePhoneNumber(ctx, ServiceSid, optional) @@ -80,7 +80,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the resource under. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the resource under. | **optional** | ***CreatePhoneNumberOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -91,7 +91,7 @@ Optional parameters are passed through a pointer to a CreatePhoneNumberOpts stru Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **phoneNumberSid** | **optional.String**| The SID of the Phone Number being added to the Service. | + **PhoneNumberSid** | **optional.String**| The SID of the Phone Number being added to the Service. | ### Return type @@ -132,20 +132,20 @@ Optional parameters are passed through a pointer to a CreateServiceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **areaCodeGeomatch** | **optional.Bool**| Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/sms/services#area-code-geomatch) on the Service Instance. | - **fallbackMethod** | **optional.String**| The HTTP method we should use to call `fallback_url`. Can be: `GET` or `POST`. | - **fallbackToLongCode** | **optional.Bool**| Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/sms/services#fallback-to-long-code) for messages sent through the Service instance. | - **fallbackUrl** | **optional.String**| The URL that we should call using `fallback_method` if an error occurs while retrieving or executing the TwiML from the Inbound Request URL. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | - **inboundMethod** | **optional.String**| The HTTP method we should use to call `inbound_request_url`. Can be `GET` or `POST` and the default is `POST`. | - **inboundRequestUrl** | **optional.String**| The URL we should call using `inbound_method` when a message is received by any phone number or short code in the Service. When this property is `null`, receiving inbound messages is disabled. | - **mmsConverter** | **optional.Bool**| Whether to enable the [MMS Converter](https://www.twilio.com/docs/sms/services#mms-converter) for messages sent through the Service instance. | - **scanMessageContent** | **optional.String**| Reserved. | - **smartEncoding** | **optional.Bool**| Whether to enable [Smart Encoding](https://www.twilio.com/docs/sms/services#smart-encoding) for messages sent through the Service instance. | - **statusCallback** | **optional.String**| The URL we should call to [pass status updates](https://www.twilio.com/docs/sms/api/message-resource#message-status-values) about message delivery. | - **stickySender** | **optional.Bool**| Whether to enable [Sticky Sender](https://www.twilio.com/docs/sms/services#sticky-sender) on the Service instance. | - **synchronousValidation** | **optional.Bool**| Reserved. | - **validityPeriod** | **optional.Int32**| How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`. | + **AreaCodeGeomatch** | **optional.Bool**| Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/sms/services#area-code-geomatch) on the Service Instance. | + **FallbackMethod** | **optional.String**| The HTTP method we should use to call `fallback_url`. Can be: `GET` or `POST`. | + **FallbackToLongCode** | **optional.Bool**| Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/sms/services#fallback-to-long-code) for messages sent through the Service instance. | + **FallbackUrl** | **optional.String**| The URL that we should call using `fallback_method` if an error occurs while retrieving or executing the TwiML from the Inbound Request URL. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **InboundMethod** | **optional.String**| The HTTP method we should use to call `inbound_request_url`. Can be `GET` or `POST` and the default is `POST`. | + **InboundRequestUrl** | **optional.String**| The URL we should call using `inbound_method` when a message is received by any phone number or short code in the Service. When this property is `null`, receiving inbound messages is disabled. | + **MmsConverter** | **optional.Bool**| Whether to enable the [MMS Converter](https://www.twilio.com/docs/sms/services#mms-converter) for messages sent through the Service instance. | + **ScanMessageContent** | **optional.String**| Reserved. | + **SmartEncoding** | **optional.Bool**| Whether to enable [Smart Encoding](https://www.twilio.com/docs/sms/services#smart-encoding) for messages sent through the Service instance. | + **StatusCallback** | **optional.String**| The URL we should call to [pass status updates](https://www.twilio.com/docs/sms/api/message-resource#message-status-values) about message delivery. | + **StickySender** | **optional.Bool**| Whether to enable [Sticky Sender](https://www.twilio.com/docs/sms/services#sticky-sender) on the Service instance. | + **SynchronousValidation** | **optional.Bool**| Reserved. | + **ValidityPeriod** | **optional.Int32**| How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`. | ### Return type @@ -167,7 +167,7 @@ Name | Type | Description | Notes ## CreateShortCode -> MessagingV1ServiceShortCode CreateShortCode(ctx, serviceSid, optional) +> MessagingV1ServiceShortCode CreateShortCode(ctx, ServiceSid, optional) @@ -177,7 +177,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the resource under. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the resource under. | **optional** | ***CreateShortCodeOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -188,7 +188,7 @@ Optional parameters are passed through a pointer to a CreateShortCodeOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **shortCodeSid** | **optional.String**| The SID of the ShortCode resource being added to the Service. | + **ShortCodeSid** | **optional.String**| The SID of the ShortCode resource being added to the Service. | ### Return type @@ -210,7 +210,7 @@ Name | Type | Description | Notes ## DeleteAlphaSender -> DeleteAlphaSender(ctx, serviceSid, sid) +> DeleteAlphaSender(ctx, ServiceSid, Sid) @@ -220,8 +220,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the resource from. | -**sid** | **string**| The SID of the AlphaSender resource to delete. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the resource from. | +**Sid** | **string**| The SID of the AlphaSender resource to delete. | ### Return type @@ -243,7 +243,7 @@ Name | Type | Description | Notes ## DeletePhoneNumber -> DeletePhoneNumber(ctx, serviceSid, sid) +> DeletePhoneNumber(ctx, ServiceSid, Sid) @@ -253,8 +253,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the resource from. | -**sid** | **string**| The SID of the PhoneNumber resource to delete. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the resource from. | +**Sid** | **string**| The SID of the PhoneNumber resource to delete. | ### Return type @@ -276,7 +276,7 @@ Name | Type | Description | Notes ## DeleteService -> DeleteService(ctx, sid) +> DeleteService(ctx, Sid) @@ -286,7 +286,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Service resource to delete. | +**Sid** | **string**| The SID of the Service resource to delete. | ### Return type @@ -308,7 +308,7 @@ Name | Type | Description | Notes ## DeleteShortCode -> DeleteShortCode(ctx, serviceSid, sid) +> DeleteShortCode(ctx, ServiceSid, Sid) @@ -318,8 +318,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the resource from. | -**sid** | **string**| The SID of the ShortCode resource to delete. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the resource from. | +**Sid** | **string**| The SID of the ShortCode resource to delete. | ### Return type @@ -341,7 +341,7 @@ Name | Type | Description | Notes ## FetchAlphaSender -> MessagingV1ServiceAlphaSender FetchAlphaSender(ctx, serviceSid, sid) +> MessagingV1ServiceAlphaSender FetchAlphaSender(ctx, ServiceSid, Sid) @@ -351,8 +351,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the resource from. | -**sid** | **string**| The SID of the AlphaSender resource to fetch. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the resource from. | +**Sid** | **string**| The SID of the AlphaSender resource to fetch. | ### Return type @@ -395,7 +395,7 @@ Optional parameters are passed through a pointer to a FetchDeactivationOpts stru Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **date** | **optional.Time**| The request will return a list of all United States Phone Numbers that were deactivated on the day specified by this parameter. This date should be specified in YYYY-MM-DD format. | + **Date** | **optional.Time**| The request will return a list of all United States Phone Numbers that were deactivated on the day specified by this parameter. This date should be specified in YYYY-MM-DD format. | ### Return type @@ -417,7 +417,7 @@ Name | Type | Description | Notes ## FetchPhoneNumber -> MessagingV1ServicePhoneNumber FetchPhoneNumber(ctx, serviceSid, sid) +> MessagingV1ServicePhoneNumber FetchPhoneNumber(ctx, ServiceSid, Sid) @@ -427,8 +427,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the resource from. | -**sid** | **string**| The SID of the PhoneNumber resource to fetch. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the resource from. | +**Sid** | **string**| The SID of the PhoneNumber resource to fetch. | ### Return type @@ -450,7 +450,7 @@ Name | Type | Description | Notes ## FetchService -> MessagingV1Service FetchService(ctx, sid) +> MessagingV1Service FetchService(ctx, Sid) @@ -460,7 +460,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Service resource to fetch. | +**Sid** | **string**| The SID of the Service resource to fetch. | ### Return type @@ -482,7 +482,7 @@ Name | Type | Description | Notes ## FetchShortCode -> MessagingV1ServiceShortCode FetchShortCode(ctx, serviceSid, sid) +> MessagingV1ServiceShortCode FetchShortCode(ctx, ServiceSid, Sid) @@ -492,8 +492,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the resource from. | -**sid** | **string**| The SID of the ShortCode resource to fetch. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to fetch the resource from. | +**Sid** | **string**| The SID of the ShortCode resource to fetch. | ### Return type @@ -515,7 +515,7 @@ Name | Type | Description | Notes ## ListAlphaSender -> MessagingV1ServiceAlphaSenderReadResponse ListAlphaSender(ctx, serviceSid, optional) +> MessagingV1ServiceAlphaSenderReadResponse ListAlphaSender(ctx, ServiceSid, optional) @@ -525,7 +525,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the resources from. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the resources from. | **optional** | ***ListAlphaSenderOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -536,7 +536,7 @@ Optional parameters are passed through a pointer to a ListAlphaSenderOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -558,7 +558,7 @@ Name | Type | Description | Notes ## ListPhoneNumber -> MessagingV1ServicePhoneNumberReadResponse ListPhoneNumber(ctx, serviceSid, optional) +> MessagingV1ServicePhoneNumberReadResponse ListPhoneNumber(ctx, ServiceSid, optional) @@ -568,7 +568,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the resources from. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the resources from. | **optional** | ***ListPhoneNumberOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -579,7 +579,7 @@ Optional parameters are passed through a pointer to a ListPhoneNumberOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -620,7 +620,7 @@ Optional parameters are passed through a pointer to a ListServiceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -642,7 +642,7 @@ Name | Type | Description | Notes ## ListShortCode -> MessagingV1ServiceShortCodeReadResponse ListShortCode(ctx, serviceSid, optional) +> MessagingV1ServiceShortCodeReadResponse ListShortCode(ctx, ServiceSid, optional) @@ -652,7 +652,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the resources from. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the resources from. | **optional** | ***ListShortCodeOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -663,7 +663,7 @@ Optional parameters are passed through a pointer to a ListShortCodeOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -685,7 +685,7 @@ Name | Type | Description | Notes ## UpdateService -> MessagingV1Service UpdateService(ctx, sid, optional) +> MessagingV1Service UpdateService(ctx, Sid, optional) @@ -695,7 +695,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Service resource to update. | +**Sid** | **string**| The SID of the Service resource to update. | **optional** | ***UpdateServiceOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -706,20 +706,20 @@ Optional parameters are passed through a pointer to a UpdateServiceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **areaCodeGeomatch** | **optional.Bool**| Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/sms/services#area-code-geomatch) on the Service Instance. | - **fallbackMethod** | **optional.String**| The HTTP method we should use to call `fallback_url`. Can be: `GET` or `POST`. | - **fallbackToLongCode** | **optional.Bool**| Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/sms/services#fallback-to-long-code) for messages sent through the Service instance. | - **fallbackUrl** | **optional.String**| The URL that we should call using `fallback_method` if an error occurs while retrieving or executing the TwiML from the Inbound Request URL. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | - **inboundMethod** | **optional.String**| The HTTP method we should use to call `inbound_request_url`. Can be `GET` or `POST` and the default is `POST`. | - **inboundRequestUrl** | **optional.String**| The URL we should call using `inbound_method` when a message is received by any phone number or short code in the Service. When this property is `null`, receiving inbound messages is disabled. | - **mmsConverter** | **optional.Bool**| Whether to enable the [MMS Converter](https://www.twilio.com/docs/sms/services#mms-converter) for messages sent through the Service instance. | - **scanMessageContent** | **optional.String**| Reserved. | - **smartEncoding** | **optional.Bool**| Whether to enable [Smart Encoding](https://www.twilio.com/docs/sms/services#smart-encoding) for messages sent through the Service instance. | - **statusCallback** | **optional.String**| The URL we should call to [pass status updates](https://www.twilio.com/docs/sms/api/message-resource#message-status-values) about message delivery. | - **stickySender** | **optional.Bool**| Whether to enable [Sticky Sender](https://www.twilio.com/docs/sms/services#sticky-sender) on the Service instance. | - **synchronousValidation** | **optional.Bool**| Reserved. | - **validityPeriod** | **optional.Int32**| How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`. | + **AreaCodeGeomatch** | **optional.Bool**| Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/sms/services#area-code-geomatch) on the Service Instance. | + **FallbackMethod** | **optional.String**| The HTTP method we should use to call `fallback_url`. Can be: `GET` or `POST`. | + **FallbackToLongCode** | **optional.Bool**| Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/sms/services#fallback-to-long-code) for messages sent through the Service instance. | + **FallbackUrl** | **optional.String**| The URL that we should call using `fallback_method` if an error occurs while retrieving or executing the TwiML from the Inbound Request URL. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **InboundMethod** | **optional.String**| The HTTP method we should use to call `inbound_request_url`. Can be `GET` or `POST` and the default is `POST`. | + **InboundRequestUrl** | **optional.String**| The URL we should call using `inbound_method` when a message is received by any phone number or short code in the Service. When this property is `null`, receiving inbound messages is disabled. | + **MmsConverter** | **optional.Bool**| Whether to enable the [MMS Converter](https://www.twilio.com/docs/sms/services#mms-converter) for messages sent through the Service instance. | + **ScanMessageContent** | **optional.String**| Reserved. | + **SmartEncoding** | **optional.Bool**| Whether to enable [Smart Encoding](https://www.twilio.com/docs/sms/services#smart-encoding) for messages sent through the Service instance. | + **StatusCallback** | **optional.String**| The URL we should call to [pass status updates](https://www.twilio.com/docs/sms/api/message-resource#message-status-values) about message delivery. | + **StickySender** | **optional.Bool**| Whether to enable [Sticky Sender](https://www.twilio.com/docs/sms/services#sticky-sender) on the Service instance. | + **SynchronousValidation** | **optional.Bool**| Reserved. | + **ValidityPeriod** | **optional.Int32**| How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`. | ### Return type diff --git a/rest/messaging/v1/model_messaging_v1_deactivation.go b/rest/messaging/v1/model_messaging_v1_deactivation.go index bfd684742..4a933a07a 100644 --- a/rest/messaging/v1/model_messaging_v1_deactivation.go +++ b/rest/messaging/v1/model_messaging_v1_deactivation.go @@ -11,5 +11,5 @@ package openapi // MessagingV1Deactivation struct for MessagingV1Deactivation type MessagingV1Deactivation struct { - RedirectTo string `json:"redirect_to,omitempty"` + RedirectTo string `json:"RedirectTo,omitempty"` } diff --git a/rest/messaging/v1/model_messaging_v1_service.go b/rest/messaging/v1/model_messaging_v1_service.go index 734104de4..e05444f7c 100644 --- a/rest/messaging/v1/model_messaging_v1_service.go +++ b/rest/messaging/v1/model_messaging_v1_service.go @@ -14,24 +14,24 @@ import ( ) // MessagingV1Service struct for MessagingV1Service type MessagingV1Service struct { - AccountSid string `json:"account_sid,omitempty"` - AreaCodeGeomatch bool `json:"area_code_geomatch,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FallbackMethod string `json:"fallback_method,omitempty"` - FallbackToLongCode bool `json:"fallback_to_long_code,omitempty"` - FallbackUrl string `json:"fallback_url,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - InboundMethod string `json:"inbound_method,omitempty"` - InboundRequestUrl string `json:"inbound_request_url,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - MmsConverter bool `json:"mms_converter,omitempty"` - ScanMessageContent string `json:"scan_message_content,omitempty"` - Sid string `json:"sid,omitempty"` - SmartEncoding bool `json:"smart_encoding,omitempty"` - StatusCallback string `json:"status_callback,omitempty"` - StickySender bool `json:"sticky_sender,omitempty"` - SynchronousValidation bool `json:"synchronous_validation,omitempty"` - Url string `json:"url,omitempty"` - ValidityPeriod int32 `json:"validity_period,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AreaCodeGeomatch bool `json:"AreaCodeGeomatch,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FallbackMethod string `json:"FallbackMethod,omitempty"` + FallbackToLongCode bool `json:"FallbackToLongCode,omitempty"` + FallbackUrl string `json:"FallbackUrl,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + InboundMethod string `json:"InboundMethod,omitempty"` + InboundRequestUrl string `json:"InboundRequestUrl,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + MmsConverter bool `json:"MmsConverter,omitempty"` + ScanMessageContent string `json:"ScanMessageContent,omitempty"` + Sid string `json:"Sid,omitempty"` + SmartEncoding bool `json:"SmartEncoding,omitempty"` + StatusCallback string `json:"StatusCallback,omitempty"` + StickySender bool `json:"StickySender,omitempty"` + SynchronousValidation bool `json:"SynchronousValidation,omitempty"` + Url string `json:"Url,omitempty"` + ValidityPeriod int32 `json:"ValidityPeriod,omitempty"` } diff --git a/rest/messaging/v1/model_messaging_v1_service_alpha_sender.go b/rest/messaging/v1/model_messaging_v1_service_alpha_sender.go index d7a549d18..a8a29dbde 100644 --- a/rest/messaging/v1/model_messaging_v1_service_alpha_sender.go +++ b/rest/messaging/v1/model_messaging_v1_service_alpha_sender.go @@ -14,12 +14,12 @@ import ( ) // MessagingV1ServiceAlphaSender struct for MessagingV1ServiceAlphaSender type MessagingV1ServiceAlphaSender struct { - AccountSid string `json:"account_sid,omitempty"` - AlphaSender string `json:"alpha_sender,omitempty"` - Capabilities []string `json:"capabilities,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AlphaSender string `json:"AlphaSender,omitempty"` + Capabilities []string `json:"Capabilities,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/messaging/v1/model_messaging_v1_service_alpha_sender_read_response.go b/rest/messaging/v1/model_messaging_v1_service_alpha_sender_read_response.go index 185d87e74..8fbbc5708 100644 --- a/rest/messaging/v1/model_messaging_v1_service_alpha_sender_read_response.go +++ b/rest/messaging/v1/model_messaging_v1_service_alpha_sender_read_response.go @@ -11,6 +11,6 @@ package openapi // MessagingV1ServiceAlphaSenderReadResponse struct for MessagingV1ServiceAlphaSenderReadResponse type MessagingV1ServiceAlphaSenderReadResponse struct { - AlphaSenders []MessagingV1ServiceAlphaSender `json:"alpha_senders,omitempty"` - Meta MessagingV1ServiceReadResponseMeta `json:"meta,omitempty"` + AlphaSenders []MessagingV1ServiceAlphaSender `json:"AlphaSenders,omitempty"` + Meta MessagingV1ServiceReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/messaging/v1/model_messaging_v1_service_phone_number.go b/rest/messaging/v1/model_messaging_v1_service_phone_number.go index 592079bbc..13a2338c9 100644 --- a/rest/messaging/v1/model_messaging_v1_service_phone_number.go +++ b/rest/messaging/v1/model_messaging_v1_service_phone_number.go @@ -14,13 +14,13 @@ import ( ) // MessagingV1ServicePhoneNumber struct for MessagingV1ServicePhoneNumber type MessagingV1ServicePhoneNumber struct { - AccountSid string `json:"account_sid,omitempty"` - Capabilities []string `json:"capabilities,omitempty"` - CountryCode string `json:"country_code,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - PhoneNumber string `json:"phone_number,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Capabilities []string `json:"Capabilities,omitempty"` + CountryCode string `json:"CountryCode,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + PhoneNumber string `json:"PhoneNumber,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/messaging/v1/model_messaging_v1_service_phone_number_read_response.go b/rest/messaging/v1/model_messaging_v1_service_phone_number_read_response.go index c863d7c70..5c078b54b 100644 --- a/rest/messaging/v1/model_messaging_v1_service_phone_number_read_response.go +++ b/rest/messaging/v1/model_messaging_v1_service_phone_number_read_response.go @@ -11,6 +11,6 @@ package openapi // MessagingV1ServicePhoneNumberReadResponse struct for MessagingV1ServicePhoneNumberReadResponse type MessagingV1ServicePhoneNumberReadResponse struct { - Meta MessagingV1ServiceReadResponseMeta `json:"meta,omitempty"` - PhoneNumbers []MessagingV1ServicePhoneNumber `json:"phone_numbers,omitempty"` + Meta MessagingV1ServiceReadResponseMeta `json:"Meta,omitempty"` + PhoneNumbers []MessagingV1ServicePhoneNumber `json:"PhoneNumbers,omitempty"` } diff --git a/rest/messaging/v1/model_messaging_v1_service_read_response.go b/rest/messaging/v1/model_messaging_v1_service_read_response.go index 1bde4dcbe..12fb6ee89 100644 --- a/rest/messaging/v1/model_messaging_v1_service_read_response.go +++ b/rest/messaging/v1/model_messaging_v1_service_read_response.go @@ -11,6 +11,6 @@ package openapi // MessagingV1ServiceReadResponse struct for MessagingV1ServiceReadResponse type MessagingV1ServiceReadResponse struct { - Meta MessagingV1ServiceReadResponseMeta `json:"meta,omitempty"` - Services []MessagingV1Service `json:"services,omitempty"` + Meta MessagingV1ServiceReadResponseMeta `json:"Meta,omitempty"` + Services []MessagingV1Service `json:"Services,omitempty"` } diff --git a/rest/messaging/v1/model_messaging_v1_service_read_response_meta.go b/rest/messaging/v1/model_messaging_v1_service_read_response_meta.go index b075e56b2..47defd263 100644 --- a/rest/messaging/v1/model_messaging_v1_service_read_response_meta.go +++ b/rest/messaging/v1/model_messaging_v1_service_read_response_meta.go @@ -11,11 +11,11 @@ package openapi // MessagingV1ServiceReadResponseMeta struct for MessagingV1ServiceReadResponseMeta type MessagingV1ServiceReadResponseMeta struct { - FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` - NextPageUrl string `json:"next_page_url,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUrl string `json:"previous_page_url,omitempty"` - Url string `json:"url,omitempty"` + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/messaging/v1/model_messaging_v1_service_short_code.go b/rest/messaging/v1/model_messaging_v1_service_short_code.go index 570982c9b..01d2a0fc5 100644 --- a/rest/messaging/v1/model_messaging_v1_service_short_code.go +++ b/rest/messaging/v1/model_messaging_v1_service_short_code.go @@ -14,13 +14,13 @@ import ( ) // MessagingV1ServiceShortCode struct for MessagingV1ServiceShortCode type MessagingV1ServiceShortCode struct { - AccountSid string `json:"account_sid,omitempty"` - Capabilities []string `json:"capabilities,omitempty"` - CountryCode string `json:"country_code,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - ShortCode string `json:"short_code,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Capabilities []string `json:"Capabilities,omitempty"` + CountryCode string `json:"CountryCode,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + ShortCode string `json:"ShortCode,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/messaging/v1/model_messaging_v1_service_short_code_read_response.go b/rest/messaging/v1/model_messaging_v1_service_short_code_read_response.go index 3956e6e7b..338784285 100644 --- a/rest/messaging/v1/model_messaging_v1_service_short_code_read_response.go +++ b/rest/messaging/v1/model_messaging_v1_service_short_code_read_response.go @@ -11,6 +11,6 @@ package openapi // MessagingV1ServiceShortCodeReadResponse struct for MessagingV1ServiceShortCodeReadResponse type MessagingV1ServiceShortCodeReadResponse struct { - Meta MessagingV1ServiceReadResponseMeta `json:"meta,omitempty"` - ShortCodes []MessagingV1ServiceShortCode `json:"short_codes,omitempty"` + Meta MessagingV1ServiceReadResponseMeta `json:"Meta,omitempty"` + ShortCodes []MessagingV1ServiceShortCode `json:"ShortCodes,omitempty"` } diff --git a/rest/monitor/v1/api_default.go b/rest/monitor/v1/api_default.go index 31346da3a..234df68b3 100644 --- a/rest/monitor/v1/api_default.go +++ b/rest/monitor/v1/api_default.go @@ -15,6 +15,8 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" + "time" ) type DefaultApiService struct { @@ -31,14 +33,15 @@ func NewDefaultApiService(client *twilio.Client) *DefaultApiService { /* FetchAlert Method for FetchAlert - * @param sid The SID of the Alert resource to fetch. + * @param Sid The SID of the Alert resource to fetch. @return MonitorV1AlertInstance */ -func (c *DefaultApiService) FetchAlert(sid string) (*MonitorV1AlertInstance, error) { +func (c *DefaultApiService) FetchAlert(Sid string) (*MonitorV1AlertInstance, error) { path := "/v1/Alerts/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -60,14 +63,15 @@ func (c *DefaultApiService) FetchAlert(sid string) (*MonitorV1AlertInstance, err /* FetchEvent Method for FetchEvent - * @param sid The SID of the Event resource to fetch. + * @param Sid The SID of the Event resource to fetch. @return MonitorV1Event */ -func (c *DefaultApiService) FetchEvent(sid string) (*MonitorV1Event, error) { +func (c *DefaultApiService) FetchEvent(Sid string) (*MonitorV1Event, error) { path := "/v1/Events/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -106,20 +110,21 @@ ListAlert Method for ListAlert func (c *DefaultApiService) ListAlert(params *ListAlertParams) (*MonitorV1AlertReadResponse, error) { path := "/v1/Alerts" + data := url.Values{} headers := 0 if params != nil && params.LogLevel != nil { - data.Set("LogLevel", *params.LogLevel) + data.Set("LogLevel", *params.LogLevel) } if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) + data.Set("StartDate", fmt.Sprint(*params.StartDate)) } if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) + data.Set("EndDate", fmt.Sprint(*params.EndDate)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -164,29 +169,30 @@ Returns a list of events in the account, sorted by event-date. func (c *DefaultApiService) ListEvent(params *ListEventParams) (*MonitorV1EventReadResponse, error) { path := "/v1/Events" + data := url.Values{} headers := 0 if params != nil && params.ActorSid != nil { - data.Set("ActorSid", *params.ActorSid) + data.Set("ActorSid", *params.ActorSid) } if params != nil && params.EventType != nil { - data.Set("EventType", *params.EventType) + data.Set("EventType", *params.EventType) } if params != nil && params.ResourceSid != nil { - data.Set("ResourceSid", *params.ResourceSid) + data.Set("ResourceSid", *params.ResourceSid) } if params != nil && params.SourceIpAddress != nil { - data.Set("SourceIpAddress", *params.SourceIpAddress) + data.Set("SourceIpAddress", *params.SourceIpAddress) } if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) + data.Set("StartDate", fmt.Sprint(*params.StartDate)) } if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) + data.Set("EndDate", fmt.Sprint(*params.EndDate)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } diff --git a/rest/monitor/v1/docs/DefaultApi.md b/rest/monitor/v1/docs/DefaultApi.md index c3a125fd8..1f89e703e 100644 --- a/rest/monitor/v1/docs/DefaultApi.md +++ b/rest/monitor/v1/docs/DefaultApi.md @@ -13,7 +13,7 @@ Method | HTTP request | Description ## FetchAlert -> MonitorV1AlertInstance FetchAlert(ctx, sid) +> MonitorV1AlertInstance FetchAlert(ctx, Sid) @@ -23,7 +23,7 @@ Method | HTTP request | Description Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Alert resource to fetch. | +**Sid** | **string**| The SID of the Alert resource to fetch. | ### Return type @@ -45,7 +45,7 @@ Name | Type | Description | Notes ## FetchEvent -> MonitorV1Event FetchEvent(ctx, sid) +> MonitorV1Event FetchEvent(ctx, Sid) @@ -55,7 +55,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Event resource to fetch. | +**Sid** | **string**| The SID of the Event resource to fetch. | ### Return type @@ -96,10 +96,10 @@ Optional parameters are passed through a pointer to a ListAlertOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **logLevel** | **optional.String**| Only show alerts for this log-level. Can be: `error`, `warning`, `notice`, or `debug`. | - **startDate** | **optional.Time**| Only include alerts that occurred on or after this date and time. Specify the date and time in GMT and format as `YYYY-MM-DD` or `YYYY-MM-DDThh:mm:ssZ`. Queries for alerts older than 30 days are not supported. | - **endDate** | **optional.Time**| Only include alerts that occurred on or before this date and time. Specify the date and time in GMT and format as `YYYY-MM-DD` or `YYYY-MM-DDThh:mm:ssZ`. Queries for alerts older than 30 days are not supported. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **LogLevel** | **optional.String**| Only show alerts for this log-level. Can be: `error`, `warning`, `notice`, or `debug`. | + **StartDate** | **optional.Time**| Only include alerts that occurred on or after this date and time. Specify the date and time in GMT and format as `YYYY-MM-DD` or `YYYY-MM-DDThh:mm:ssZ`. Queries for alerts older than 30 days are not supported. | + **EndDate** | **optional.Time**| Only include alerts that occurred on or before this date and time. Specify the date and time in GMT and format as `YYYY-MM-DD` or `YYYY-MM-DDThh:mm:ssZ`. Queries for alerts older than 30 days are not supported. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -142,13 +142,13 @@ Optional parameters are passed through a pointer to a ListEventOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **actorSid** | **optional.String**| Only include events initiated by this Actor. Useful for auditing actions taken by specific users or API credentials. | - **eventType** | **optional.String**| Only include events of this [Event Type](https://www.twilio.com/docs/usage/monitor-events#event-types). | - **resourceSid** | **optional.String**| Only include events that refer to this resource. Useful for discovering the history of a specific resource. | - **sourceIpAddress** | **optional.String**| Only include events that originated from this IP address. Useful for tracking suspicious activity originating from the API or the Twilio Console. | - **startDate** | **optional.Time**| Only include events that occurred on or after this date. Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | - **endDate** | **optional.Time**| Only include events that occurred on or before this date. Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **ActorSid** | **optional.String**| Only include events initiated by this Actor. Useful for auditing actions taken by specific users or API credentials. | + **EventType** | **optional.String**| Only include events of this [Event Type](https://www.twilio.com/docs/usage/monitor-events#event-types). | + **ResourceSid** | **optional.String**| Only include events that refer to this resource. Useful for discovering the history of a specific resource. | + **SourceIpAddress** | **optional.String**| Only include events that originated from this IP address. Useful for tracking suspicious activity originating from the API or the Twilio Console. | + **StartDate** | **optional.Time**| Only include events that occurred on or after this date. Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | + **EndDate** | **optional.Time**| Only include events that occurred on or before this date. Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type diff --git a/rest/monitor/v1/model_monitor_v1_alert.go b/rest/monitor/v1/model_monitor_v1_alert.go index de4efe7eb..39fce56d5 100644 --- a/rest/monitor/v1/model_monitor_v1_alert.go +++ b/rest/monitor/v1/model_monitor_v1_alert.go @@ -14,19 +14,19 @@ import ( ) // MonitorV1Alert struct for MonitorV1Alert type MonitorV1Alert struct { - AccountSid string `json:"account_sid,omitempty"` - AlertText string `json:"alert_text,omitempty"` - ApiVersion string `json:"api_version,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateGenerated time.Time `json:"date_generated,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - ErrorCode string `json:"error_code,omitempty"` - LogLevel string `json:"log_level,omitempty"` - MoreInfo string `json:"more_info,omitempty"` - RequestMethod string `json:"request_method,omitempty"` - RequestUrl string `json:"request_url,omitempty"` - ResourceSid string `json:"resource_sid,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AlertText string `json:"AlertText,omitempty"` + ApiVersion string `json:"ApiVersion,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateGenerated time.Time `json:"DateGenerated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + ErrorCode string `json:"ErrorCode,omitempty"` + LogLevel string `json:"LogLevel,omitempty"` + MoreInfo string `json:"MoreInfo,omitempty"` + RequestMethod string `json:"RequestMethod,omitempty"` + RequestUrl string `json:"RequestUrl,omitempty"` + ResourceSid string `json:"ResourceSid,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/monitor/v1/model_monitor_v1_alert_instance.go b/rest/monitor/v1/model_monitor_v1_alert_instance.go index 07428cc8d..6a12bf9f4 100644 --- a/rest/monitor/v1/model_monitor_v1_alert_instance.go +++ b/rest/monitor/v1/model_monitor_v1_alert_instance.go @@ -14,23 +14,23 @@ import ( ) // MonitorV1AlertInstance struct for MonitorV1AlertInstance type MonitorV1AlertInstance struct { - AccountSid string `json:"account_sid,omitempty"` - AlertText string `json:"alert_text,omitempty"` - ApiVersion string `json:"api_version,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateGenerated time.Time `json:"date_generated,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - ErrorCode string `json:"error_code,omitempty"` - LogLevel string `json:"log_level,omitempty"` - MoreInfo string `json:"more_info,omitempty"` - RequestHeaders string `json:"request_headers,omitempty"` - RequestMethod string `json:"request_method,omitempty"` - RequestUrl string `json:"request_url,omitempty"` - RequestVariables string `json:"request_variables,omitempty"` - ResourceSid string `json:"resource_sid,omitempty"` - ResponseBody string `json:"response_body,omitempty"` - ResponseHeaders string `json:"response_headers,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AlertText string `json:"AlertText,omitempty"` + ApiVersion string `json:"ApiVersion,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateGenerated time.Time `json:"DateGenerated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + ErrorCode string `json:"ErrorCode,omitempty"` + LogLevel string `json:"LogLevel,omitempty"` + MoreInfo string `json:"MoreInfo,omitempty"` + RequestHeaders string `json:"RequestHeaders,omitempty"` + RequestMethod string `json:"RequestMethod,omitempty"` + RequestUrl string `json:"RequestUrl,omitempty"` + RequestVariables string `json:"RequestVariables,omitempty"` + ResourceSid string `json:"ResourceSid,omitempty"` + ResponseBody string `json:"ResponseBody,omitempty"` + ResponseHeaders string `json:"ResponseHeaders,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/monitor/v1/model_monitor_v1_alert_read_response.go b/rest/monitor/v1/model_monitor_v1_alert_read_response.go index 3de48a3c0..bb4ae901f 100644 --- a/rest/monitor/v1/model_monitor_v1_alert_read_response.go +++ b/rest/monitor/v1/model_monitor_v1_alert_read_response.go @@ -11,6 +11,6 @@ package openapi // MonitorV1AlertReadResponse struct for MonitorV1AlertReadResponse type MonitorV1AlertReadResponse struct { - Alerts []MonitorV1Alert `json:"alerts,omitempty"` - Meta MonitorV1AlertReadResponseMeta `json:"meta,omitempty"` + Alerts []MonitorV1Alert `json:"Alerts,omitempty"` + Meta MonitorV1AlertReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/monitor/v1/model_monitor_v1_alert_read_response_meta.go b/rest/monitor/v1/model_monitor_v1_alert_read_response_meta.go index 904a0e721..4ceb2a5df 100644 --- a/rest/monitor/v1/model_monitor_v1_alert_read_response_meta.go +++ b/rest/monitor/v1/model_monitor_v1_alert_read_response_meta.go @@ -11,11 +11,11 @@ package openapi // MonitorV1AlertReadResponseMeta struct for MonitorV1AlertReadResponseMeta type MonitorV1AlertReadResponseMeta struct { - FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` - NextPageUrl string `json:"next_page_url,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUrl string `json:"previous_page_url,omitempty"` - Url string `json:"url,omitempty"` + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/monitor/v1/model_monitor_v1_event.go b/rest/monitor/v1/model_monitor_v1_event.go index a1b93cbef..7b43d572c 100644 --- a/rest/monitor/v1/model_monitor_v1_event.go +++ b/rest/monitor/v1/model_monitor_v1_event.go @@ -14,18 +14,18 @@ import ( ) // MonitorV1Event struct for MonitorV1Event type MonitorV1Event struct { - AccountSid string `json:"account_sid,omitempty"` - ActorSid string `json:"actor_sid,omitempty"` - ActorType string `json:"actor_type,omitempty"` - Description string `json:"description,omitempty"` - EventData map[string]interface{} `json:"event_data,omitempty"` - EventDate time.Time `json:"event_date,omitempty"` - EventType string `json:"event_type,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - ResourceSid string `json:"resource_sid,omitempty"` - ResourceType string `json:"resource_type,omitempty"` - Sid string `json:"sid,omitempty"` - Source string `json:"source,omitempty"` - SourceIpAddress string `json:"source_ip_address,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ActorSid string `json:"ActorSid,omitempty"` + ActorType string `json:"ActorType,omitempty"` + Description string `json:"Description,omitempty"` + EventData map[string]interface{} `json:"EventData,omitempty"` + EventDate time.Time `json:"EventDate,omitempty"` + EventType string `json:"EventType,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + ResourceSid string `json:"ResourceSid,omitempty"` + ResourceType string `json:"ResourceType,omitempty"` + Sid string `json:"Sid,omitempty"` + Source string `json:"Source,omitempty"` + SourceIpAddress string `json:"SourceIpAddress,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/monitor/v1/model_monitor_v1_event_read_response.go b/rest/monitor/v1/model_monitor_v1_event_read_response.go index d575b21c0..a2e5ce013 100644 --- a/rest/monitor/v1/model_monitor_v1_event_read_response.go +++ b/rest/monitor/v1/model_monitor_v1_event_read_response.go @@ -11,6 +11,6 @@ package openapi // MonitorV1EventReadResponse struct for MonitorV1EventReadResponse type MonitorV1EventReadResponse struct { - Events []MonitorV1Event `json:"events,omitempty"` - Meta MonitorV1AlertReadResponseMeta `json:"meta,omitempty"` + Events []MonitorV1Event `json:"Events,omitempty"` + Meta MonitorV1AlertReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/notify/v1/api_default.go b/rest/notify/v1/api_default.go index 794a711d8..0c3599ac8 100644 --- a/rest/notify/v1/api_default.go +++ b/rest/notify/v1/api_default.go @@ -15,6 +15,8 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" + "time" ) type DefaultApiService struct { @@ -41,7 +43,7 @@ type CreateBindingParams struct { /* CreateBinding Method for CreateBinding - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/notify/api/service-resource) to create the resource under. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/notify/api/service-resource) to create the resource under. * @param optional nil or *CreateBindingOpts - Optional Parameters: * @param "Address" (string) - The channel-specific address. For APNS, the device token. For FCM and GCM, the registration token. For SMS, a phone number in E.164 format. For Facebook Messenger, the Messenger ID of the user or a phone number in E.164 format. * @param "BindingType" (string) - The transport technology to use for the Binding. Can be: `apn`, `fcm`, `gcm`, `sms`, or `facebook-messenger`. @@ -52,33 +54,34 @@ CreateBinding Method for CreateBinding * @param "Tag" ([]string) - A tag that can be used to select the Bindings to notify. Repeat this parameter to specify more than one tag, up to a total of 20 tags. @return NotifyV1ServiceBinding */ -func (c *DefaultApiService) CreateBinding(serviceSid string, params *CreateBindingParams) (*NotifyV1ServiceBinding, error) { +func (c *DefaultApiService) CreateBinding(ServiceSid string, params *CreateBindingParams) (*NotifyV1ServiceBinding, error) { path := "/v1/Services/{ServiceSid}/Bindings" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Address != nil { - data.Set("Address", *params.Address) + data.Set("Address", *params.Address) } if params != nil && params.BindingType != nil { - data.Set("BindingType", *params.BindingType) + data.Set("BindingType", *params.BindingType) } if params != nil && params.CredentialSid != nil { - data.Set("CredentialSid", *params.CredentialSid) + data.Set("CredentialSid", *params.CredentialSid) } if params != nil && params.Endpoint != nil { - data.Set("Endpoint", *params.Endpoint) + data.Set("Endpoint", *params.Endpoint) } if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) + data.Set("Identity", *params.Identity) } if params != nil && params.NotificationProtocolVersion != nil { - data.Set("NotificationProtocolVersion", *params.NotificationProtocolVersion) + data.Set("NotificationProtocolVersion", *params.NotificationProtocolVersion) } if params != nil && params.Tag != nil { - data.Set("Tag", *params.Tag) + data.Set("Tag", strings.Join(*params.Tag, ",")) } @@ -122,29 +125,30 @@ CreateCredential Method for CreateCredential func (c *DefaultApiService) CreateCredential(params *CreateCredentialParams) (*NotifyV1Credential, error) { path := "/v1/Credentials" + data := url.Values{} headers := 0 if params != nil && params.ApiKey != nil { - data.Set("ApiKey", *params.ApiKey) + data.Set("ApiKey", *params.ApiKey) } if params != nil && params.Certificate != nil { - data.Set("Certificate", *params.Certificate) + data.Set("Certificate", *params.Certificate) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.PrivateKey != nil { - data.Set("PrivateKey", *params.PrivateKey) + data.Set("PrivateKey", *params.PrivateKey) } if params != nil && params.Sandbox != nil { - data.Set("Sandbox", string(*params.Sandbox)) + data.Set("Sandbox", fmt.Sprint(*params.Sandbox)) } if params != nil && params.Secret != nil { - data.Set("Secret", *params.Secret) + data.Set("Secret", *params.Secret) } if params != nil && params.Type != nil { - data.Set("Type", *params.Type) + data.Set("Type", *params.Type) } @@ -186,7 +190,7 @@ type CreateNotificationParams struct { /* CreateNotification Method for CreateNotification - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/notify/api/service-resource) to create the resource under. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/notify/api/service-resource) to create the resource under. * @param optional nil or *CreateNotificationOpts - Optional Parameters: * @param "Action" (string) - The actions to display for the notification. For APNS, translates to the `aps.category` value. For GCM, translates to the `data.twi_action` value. For SMS, this parameter is not supported and is omitted from deliveries to those channels. * @param "Alexa" (map[string]interface{}) - Deprecated. @@ -208,15 +212,16 @@ CreateNotification Method for CreateNotification * @param "Ttl" (int32) - How long, in seconds, the notification is valid. Can be an integer between 0 and 2,419,200, which is 4 weeks, the default and the maximum supported time to live (TTL). Delivery should be attempted if the device is offline until the TTL elapses. Zero means that the notification delivery is attempted immediately, only once, and is not stored for future delivery. SMS does not support this property. @return NotifyV1ServiceNotification */ -func (c *DefaultApiService) CreateNotification(serviceSid string, params *CreateNotificationParams) (*NotifyV1ServiceNotification, error) { +func (c *DefaultApiService) CreateNotification(ServiceSid string, params *CreateNotificationParams) (*NotifyV1ServiceNotification, error) { path := "/v1/Services/{ServiceSid}/Notifications" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Action != nil { - data.Set("Action", *params.Action) + data.Set("Action", *params.Action) } if params != nil && params.Alexa != nil { v, err := json.Marshal(params.Alexa) @@ -225,7 +230,7 @@ func (c *DefaultApiService) CreateNotification(serviceSid string, params *Create return nil, err } - data.Set("Alexa", string(v)) + data.Set("Alexa", fmt.Sprint(v)) } if params != nil && params.Apn != nil { v, err := json.Marshal(params.Apn) @@ -234,10 +239,10 @@ func (c *DefaultApiService) CreateNotification(serviceSid string, params *Create return nil, err } - data.Set("Apn", string(v)) + data.Set("Apn", fmt.Sprint(v)) } if params != nil && params.Body != nil { - data.Set("Body", *params.Body) + data.Set("Body", *params.Body) } if params != nil && params.Data != nil { v, err := json.Marshal(params.Data) @@ -246,10 +251,10 @@ func (c *DefaultApiService) CreateNotification(serviceSid string, params *Create return nil, err } - data.Set("Data", string(v)) + data.Set("Data", fmt.Sprint(v)) } if params != nil && params.DeliveryCallbackUrl != nil { - data.Set("DeliveryCallbackUrl", *params.DeliveryCallbackUrl) + data.Set("DeliveryCallbackUrl", *params.DeliveryCallbackUrl) } if params != nil && params.FacebookMessenger != nil { v, err := json.Marshal(params.FacebookMessenger) @@ -258,7 +263,7 @@ func (c *DefaultApiService) CreateNotification(serviceSid string, params *Create return nil, err } - data.Set("FacebookMessenger", string(v)) + data.Set("FacebookMessenger", fmt.Sprint(v)) } if params != nil && params.Fcm != nil { v, err := json.Marshal(params.Fcm) @@ -267,7 +272,7 @@ func (c *DefaultApiService) CreateNotification(serviceSid string, params *Create return nil, err } - data.Set("Fcm", string(v)) + data.Set("Fcm", fmt.Sprint(v)) } if params != nil && params.Gcm != nil { v, err := json.Marshal(params.Gcm) @@ -276,16 +281,16 @@ func (c *DefaultApiService) CreateNotification(serviceSid string, params *Create return nil, err } - data.Set("Gcm", string(v)) + data.Set("Gcm", fmt.Sprint(v)) } if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) + data.Set("Identity", strings.Join(*params.Identity, ",")) } if params != nil && params.Priority != nil { - data.Set("Priority", *params.Priority) + data.Set("Priority", *params.Priority) } if params != nil && params.Segment != nil { - data.Set("Segment", *params.Segment) + data.Set("Segment", strings.Join(*params.Segment, ",")) } if params != nil && params.Sms != nil { v, err := json.Marshal(params.Sms) @@ -294,22 +299,22 @@ func (c *DefaultApiService) CreateNotification(serviceSid string, params *Create return nil, err } - data.Set("Sms", string(v)) + data.Set("Sms", fmt.Sprint(v)) } if params != nil && params.Sound != nil { - data.Set("Sound", *params.Sound) + data.Set("Sound", *params.Sound) } if params != nil && params.Tag != nil { - data.Set("Tag", *params.Tag) + data.Set("Tag", strings.Join(*params.Tag, ",")) } if params != nil && params.Title != nil { - data.Set("Title", *params.Title) + data.Set("Title", *params.Title) } if params != nil && params.ToBinding != nil { - data.Set("ToBinding", *params.ToBinding) + data.Set("ToBinding", strings.Join(*params.ToBinding, ",")) } if params != nil && params.Ttl != nil { - data.Set("Ttl", string(*params.Ttl)) + data.Set("Ttl", fmt.Sprint(*params.Ttl)) } @@ -367,50 +372,51 @@ CreateService Method for CreateService func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*NotifyV1Service, error) { path := "/v1/Services" + data := url.Values{} headers := 0 if params != nil && params.AlexaSkillId != nil { - data.Set("AlexaSkillId", *params.AlexaSkillId) + data.Set("AlexaSkillId", *params.AlexaSkillId) } if params != nil && params.ApnCredentialSid != nil { - data.Set("ApnCredentialSid", *params.ApnCredentialSid) + data.Set("ApnCredentialSid", *params.ApnCredentialSid) } if params != nil && params.DefaultAlexaNotificationProtocolVersion != nil { - data.Set("DefaultAlexaNotificationProtocolVersion", *params.DefaultAlexaNotificationProtocolVersion) + data.Set("DefaultAlexaNotificationProtocolVersion", *params.DefaultAlexaNotificationProtocolVersion) } if params != nil && params.DefaultApnNotificationProtocolVersion != nil { - data.Set("DefaultApnNotificationProtocolVersion", *params.DefaultApnNotificationProtocolVersion) + data.Set("DefaultApnNotificationProtocolVersion", *params.DefaultApnNotificationProtocolVersion) } if params != nil && params.DefaultFcmNotificationProtocolVersion != nil { - data.Set("DefaultFcmNotificationProtocolVersion", *params.DefaultFcmNotificationProtocolVersion) + data.Set("DefaultFcmNotificationProtocolVersion", *params.DefaultFcmNotificationProtocolVersion) } if params != nil && params.DefaultGcmNotificationProtocolVersion != nil { - data.Set("DefaultGcmNotificationProtocolVersion", *params.DefaultGcmNotificationProtocolVersion) + data.Set("DefaultGcmNotificationProtocolVersion", *params.DefaultGcmNotificationProtocolVersion) } if params != nil && params.DeliveryCallbackEnabled != nil { - data.Set("DeliveryCallbackEnabled", string(*params.DeliveryCallbackEnabled)) + data.Set("DeliveryCallbackEnabled", fmt.Sprint(*params.DeliveryCallbackEnabled)) } if params != nil && params.DeliveryCallbackUrl != nil { - data.Set("DeliveryCallbackUrl", *params.DeliveryCallbackUrl) + data.Set("DeliveryCallbackUrl", *params.DeliveryCallbackUrl) } if params != nil && params.FacebookMessengerPageId != nil { - data.Set("FacebookMessengerPageId", *params.FacebookMessengerPageId) + data.Set("FacebookMessengerPageId", *params.FacebookMessengerPageId) } if params != nil && params.FcmCredentialSid != nil { - data.Set("FcmCredentialSid", *params.FcmCredentialSid) + data.Set("FcmCredentialSid", *params.FcmCredentialSid) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.GcmCredentialSid != nil { - data.Set("GcmCredentialSid", *params.GcmCredentialSid) + data.Set("GcmCredentialSid", *params.GcmCredentialSid) } if params != nil && params.LogEnabled != nil { - data.Set("LogEnabled", string(*params.LogEnabled)) + data.Set("LogEnabled", fmt.Sprint(*params.LogEnabled)) } if params != nil && params.MessagingServiceSid != nil { - data.Set("MessagingServiceSid", *params.MessagingServiceSid) + data.Set("MessagingServiceSid", *params.MessagingServiceSid) } @@ -431,15 +437,16 @@ func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*NotifyV /* DeleteBinding Method for DeleteBinding - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/notify/api/service-resource) to delete the resource from. - * @param sid The Twilio-provided string that uniquely identifies the Binding resource to delete. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/notify/api/service-resource) to delete the resource from. + * @param Sid The Twilio-provided string that uniquely identifies the Binding resource to delete. */ -func (c *DefaultApiService) DeleteBinding(serviceSid string, sid string) (error) { +func (c *DefaultApiService) DeleteBinding(ServiceSid string, Sid string) (error) { path := "/v1/Services/{ServiceSid}/Bindings/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -456,13 +463,14 @@ func (c *DefaultApiService) DeleteBinding(serviceSid string, sid string) (error) /* DeleteCredential Method for DeleteCredential - * @param sid The Twilio-provided string that uniquely identifies the Credential resource to delete. + * @param Sid The Twilio-provided string that uniquely identifies the Credential resource to delete. */ -func (c *DefaultApiService) DeleteCredential(sid string) (error) { +func (c *DefaultApiService) DeleteCredential(Sid string) (error) { path := "/v1/Credentials/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -479,13 +487,14 @@ func (c *DefaultApiService) DeleteCredential(sid string) (error) { /* DeleteService Method for DeleteService - * @param sid The Twilio-provided string that uniquely identifies the Service resource to delete. + * @param Sid The Twilio-provided string that uniquely identifies the Service resource to delete. */ -func (c *DefaultApiService) DeleteService(sid string) (error) { +func (c *DefaultApiService) DeleteService(Sid string) (error) { path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -502,16 +511,17 @@ func (c *DefaultApiService) DeleteService(sid string) (error) { /* FetchBinding Method for FetchBinding - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/notify/api/service-resource) to fetch the resource from. - * @param sid The Twilio-provided string that uniquely identifies the Binding resource to fetch. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/notify/api/service-resource) to fetch the resource from. + * @param Sid The Twilio-provided string that uniquely identifies the Binding resource to fetch. @return NotifyV1ServiceBinding */ -func (c *DefaultApiService) FetchBinding(serviceSid string, sid string) (*NotifyV1ServiceBinding, error) { +func (c *DefaultApiService) FetchBinding(ServiceSid string, Sid string) (*NotifyV1ServiceBinding, error) { path := "/v1/Services/{ServiceSid}/Bindings/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -533,14 +543,15 @@ func (c *DefaultApiService) FetchBinding(serviceSid string, sid string) (*Notify /* FetchCredential Method for FetchCredential - * @param sid The Twilio-provided string that uniquely identifies the Credential resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the Credential resource to fetch. @return NotifyV1Credential */ -func (c *DefaultApiService) FetchCredential(sid string) (*NotifyV1Credential, error) { +func (c *DefaultApiService) FetchCredential(Sid string) (*NotifyV1Credential, error) { path := "/v1/Credentials/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -562,14 +573,15 @@ func (c *DefaultApiService) FetchCredential(sid string) (*NotifyV1Credential, er /* FetchService Method for FetchService - * @param sid The Twilio-provided string that uniquely identifies the Service resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the Service resource to fetch. @return NotifyV1Service */ -func (c *DefaultApiService) FetchService(sid string) (*NotifyV1Service, error) { +func (c *DefaultApiService) FetchService(Sid string) (*NotifyV1Service, error) { path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -599,7 +611,7 @@ type ListBindingParams struct { /* ListBinding Method for ListBinding - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/notify/api/service-resource) to read the resource from. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/notify/api/service-resource) to read the resource from. * @param optional nil or *ListBindingOpts - Optional Parameters: * @param "StartDate" (time.Time) - Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. * @param "EndDate" (time.Time) - Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. @@ -608,27 +620,28 @@ ListBinding Method for ListBinding * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return NotifyV1ServiceBindingReadResponse */ -func (c *DefaultApiService) ListBinding(serviceSid string, params *ListBindingParams) (*NotifyV1ServiceBindingReadResponse, error) { +func (c *DefaultApiService) ListBinding(ServiceSid string, params *ListBindingParams) (*NotifyV1ServiceBindingReadResponse, error) { path := "/v1/Services/{ServiceSid}/Bindings" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) + data.Set("StartDate", fmt.Sprint(*params.StartDate)) } if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) + data.Set("EndDate", fmt.Sprint(*params.EndDate)) } if params != nil && params.Identity != nil { - data.Set("Identity", string(*params.Identity)) + data.Set("Identity", strings.Join(*params.Identity, ",")) } if params != nil && params.Tag != nil { - data.Set("Tag", string(*params.Tag)) + data.Set("Tag", strings.Join(*params.Tag, ",")) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -660,11 +673,12 @@ ListCredential Method for ListCredential func (c *DefaultApiService) ListCredential(params *ListCredentialParams) (*NotifyV1CredentialReadResponse, error) { path := "/v1/Credentials" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -698,14 +712,15 @@ ListService Method for ListService func (c *DefaultApiService) ListService(params *ListServiceParams) (*NotifyV1ServiceReadResponse, error) { path := "/v1/Services" + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -735,7 +750,7 @@ type UpdateCredentialParams struct { /* UpdateCredential Method for UpdateCredential - * @param sid The Twilio-provided string that uniquely identifies the Credential resource to update. + * @param Sid The Twilio-provided string that uniquely identifies the Credential resource to update. * @param optional nil or *UpdateCredentialOpts - Optional Parameters: * @param "ApiKey" (string) - [GCM only] The `Server key` of your project from Firebase console under Settings / Cloud messaging. * @param "Certificate" (string) - [APN only] The URL-encoded representation of the certificate. Strip everything outside of the headers, e.g. `-----BEGIN CERTIFICATE-----MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==-----END CERTIFICATE-----` @@ -745,30 +760,31 @@ UpdateCredential Method for UpdateCredential * @param "Secret" (string) - [FCM only] The `Server key` of your project from Firebase console under Settings / Cloud messaging. @return NotifyV1Credential */ -func (c *DefaultApiService) UpdateCredential(sid string, params *UpdateCredentialParams) (*NotifyV1Credential, error) { +func (c *DefaultApiService) UpdateCredential(Sid string, params *UpdateCredentialParams) (*NotifyV1Credential, error) { path := "/v1/Credentials/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.ApiKey != nil { - data.Set("ApiKey", *params.ApiKey) + data.Set("ApiKey", *params.ApiKey) } if params != nil && params.Certificate != nil { - data.Set("Certificate", *params.Certificate) + data.Set("Certificate", *params.Certificate) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.PrivateKey != nil { - data.Set("PrivateKey", *params.PrivateKey) + data.Set("PrivateKey", *params.PrivateKey) } if params != nil && params.Sandbox != nil { - data.Set("Sandbox", string(*params.Sandbox)) + data.Set("Sandbox", fmt.Sprint(*params.Sandbox)) } if params != nil && params.Secret != nil { - data.Set("Secret", *params.Secret) + data.Set("Secret", *params.Secret) } @@ -806,7 +822,7 @@ type UpdateServiceParams struct { /* UpdateService Method for UpdateService - * @param sid The Twilio-provided string that uniquely identifies the Service resource to update. + * @param Sid The Twilio-provided string that uniquely identifies the Service resource to update. * @param optional nil or *UpdateServiceOpts - Optional Parameters: * @param "AlexaSkillId" (string) - Deprecated. * @param "ApnCredentialSid" (string) - The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for APN Bindings. @@ -824,54 +840,55 @@ UpdateService Method for UpdateService * @param "MessagingServiceSid" (string) - The SID of the [Messaging Service](https://www.twilio.com/docs/sms/send-messages#messaging-services) to use for SMS Bindings. This parameter must be set in order to send SMS notifications. @return NotifyV1Service */ -func (c *DefaultApiService) UpdateService(sid string, params *UpdateServiceParams) (*NotifyV1Service, error) { +func (c *DefaultApiService) UpdateService(Sid string, params *UpdateServiceParams) (*NotifyV1Service, error) { path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.AlexaSkillId != nil { - data.Set("AlexaSkillId", *params.AlexaSkillId) + data.Set("AlexaSkillId", *params.AlexaSkillId) } if params != nil && params.ApnCredentialSid != nil { - data.Set("ApnCredentialSid", *params.ApnCredentialSid) + data.Set("ApnCredentialSid", *params.ApnCredentialSid) } if params != nil && params.DefaultAlexaNotificationProtocolVersion != nil { - data.Set("DefaultAlexaNotificationProtocolVersion", *params.DefaultAlexaNotificationProtocolVersion) + data.Set("DefaultAlexaNotificationProtocolVersion", *params.DefaultAlexaNotificationProtocolVersion) } if params != nil && params.DefaultApnNotificationProtocolVersion != nil { - data.Set("DefaultApnNotificationProtocolVersion", *params.DefaultApnNotificationProtocolVersion) + data.Set("DefaultApnNotificationProtocolVersion", *params.DefaultApnNotificationProtocolVersion) } if params != nil && params.DefaultFcmNotificationProtocolVersion != nil { - data.Set("DefaultFcmNotificationProtocolVersion", *params.DefaultFcmNotificationProtocolVersion) + data.Set("DefaultFcmNotificationProtocolVersion", *params.DefaultFcmNotificationProtocolVersion) } if params != nil && params.DefaultGcmNotificationProtocolVersion != nil { - data.Set("DefaultGcmNotificationProtocolVersion", *params.DefaultGcmNotificationProtocolVersion) + data.Set("DefaultGcmNotificationProtocolVersion", *params.DefaultGcmNotificationProtocolVersion) } if params != nil && params.DeliveryCallbackEnabled != nil { - data.Set("DeliveryCallbackEnabled", string(*params.DeliveryCallbackEnabled)) + data.Set("DeliveryCallbackEnabled", fmt.Sprint(*params.DeliveryCallbackEnabled)) } if params != nil && params.DeliveryCallbackUrl != nil { - data.Set("DeliveryCallbackUrl", *params.DeliveryCallbackUrl) + data.Set("DeliveryCallbackUrl", *params.DeliveryCallbackUrl) } if params != nil && params.FacebookMessengerPageId != nil { - data.Set("FacebookMessengerPageId", *params.FacebookMessengerPageId) + data.Set("FacebookMessengerPageId", *params.FacebookMessengerPageId) } if params != nil && params.FcmCredentialSid != nil { - data.Set("FcmCredentialSid", *params.FcmCredentialSid) + data.Set("FcmCredentialSid", *params.FcmCredentialSid) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.GcmCredentialSid != nil { - data.Set("GcmCredentialSid", *params.GcmCredentialSid) + data.Set("GcmCredentialSid", *params.GcmCredentialSid) } if params != nil && params.LogEnabled != nil { - data.Set("LogEnabled", string(*params.LogEnabled)) + data.Set("LogEnabled", fmt.Sprint(*params.LogEnabled)) } if params != nil && params.MessagingServiceSid != nil { - data.Set("MessagingServiceSid", *params.MessagingServiceSid) + data.Set("MessagingServiceSid", *params.MessagingServiceSid) } diff --git a/rest/notify/v1/docs/DefaultApi.md b/rest/notify/v1/docs/DefaultApi.md index b7699b618..7ac352244 100644 --- a/rest/notify/v1/docs/DefaultApi.md +++ b/rest/notify/v1/docs/DefaultApi.md @@ -24,7 +24,7 @@ Method | HTTP request | Description ## CreateBinding -> NotifyV1ServiceBinding CreateBinding(ctx, serviceSid, optional) +> NotifyV1ServiceBinding CreateBinding(ctx, ServiceSid, optional) @@ -34,7 +34,7 @@ Method | HTTP request | Description Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/notify/api/service-resource) to create the resource under. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/notify/api/service-resource) to create the resource under. | **optional** | ***CreateBindingOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -45,13 +45,13 @@ Optional parameters are passed through a pointer to a CreateBindingOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **address** | **optional.String**| The channel-specific address. For APNS, the device token. For FCM and GCM, the registration token. For SMS, a phone number in E.164 format. For Facebook Messenger, the Messenger ID of the user or a phone number in E.164 format. | - **bindingType** | **optional.String**| The transport technology to use for the Binding. Can be: `apn`, `fcm`, `gcm`, `sms`, or `facebook-messenger`. | - **credentialSid** | **optional.String**| The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) resource to be used to send notifications to this Binding. If present, this overrides the Credential specified in the Service resource. Applies to only `apn`, `fcm`, and `gcm` type Bindings. | - **endpoint** | **optional.String**| Deprecated. | - **identity** | **optional.String**| The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/notify/api/service-resource). Up to 20 Bindings can be created for the same Identity in a given Service. | - **notificationProtocolVersion** | **optional.String**| The protocol version to use to send the notification. This defaults to the value of `default_xxxx_notification_protocol_version` for the protocol in the [Service](https://www.twilio.com/docs/notify/api/service-resource). The current version is `\\\"3\\\"` for `apn`, `fcm`, and `gcm` type Bindings. The parameter is not applicable to `sms` and `facebook-messenger` type Bindings as the data format is fixed. | - **tag** | [**optional.Interface of []string**](string.md)| A tag that can be used to select the Bindings to notify. Repeat this parameter to specify more than one tag, up to a total of 20 tags. | + **Address** | **optional.String**| The channel-specific address. For APNS, the device token. For FCM and GCM, the registration token. For SMS, a phone number in E.164 format. For Facebook Messenger, the Messenger ID of the user or a phone number in E.164 format. | + **BindingType** | **optional.String**| The transport technology to use for the Binding. Can be: `apn`, `fcm`, `gcm`, `sms`, or `facebook-messenger`. | + **CredentialSid** | **optional.String**| The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) resource to be used to send notifications to this Binding. If present, this overrides the Credential specified in the Service resource. Applies to only `apn`, `fcm`, and `gcm` type Bindings. | + **Endpoint** | **optional.String**| Deprecated. | + **Identity** | **optional.String**| The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/notify/api/service-resource). Up to 20 Bindings can be created for the same Identity in a given Service. | + **NotificationProtocolVersion** | **optional.String**| The protocol version to use to send the notification. This defaults to the value of `default_xxxx_notification_protocol_version` for the protocol in the [Service](https://www.twilio.com/docs/notify/api/service-resource). The current version is `\\\"3\\\"` for `apn`, `fcm`, and `gcm` type Bindings. The parameter is not applicable to `sms` and `facebook-messenger` type Bindings as the data format is fixed. | + **Tag** | [**optional.Interface of []string**](string.md)| A tag that can be used to select the Bindings to notify. Repeat this parameter to specify more than one tag, up to a total of 20 tags. | ### Return type @@ -92,13 +92,13 @@ Optional parameters are passed through a pointer to a CreateCredentialOpts struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiKey** | **optional.String**| [GCM only] The `Server key` of your project from Firebase console under Settings / Cloud messaging. | - **certificate** | **optional.String**| [APN only] The URL-encoded representation of the certificate. Strip everything outside of the headers, e.g. `-----BEGIN CERTIFICATE-----MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==-----END CERTIFICATE-----` | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | - **privateKey** | **optional.String**| [APN only] The URL-encoded representation of the private key. Strip everything outside of the headers, e.g. `-----BEGIN RSA PRIVATE KEY-----MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR\\\\n.-----END RSA PRIVATE KEY-----` | - **sandbox** | **optional.Bool**| [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. | - **secret** | **optional.String**| [FCM only] The `Server key` of your project from Firebase console under Settings / Cloud messaging. | - **type_** | **optional.String**| The Credential type. Can be: `gcm`, `fcm`, or `apn`. | + **ApiKey** | **optional.String**| [GCM only] The `Server key` of your project from Firebase console under Settings / Cloud messaging. | + **Certificate** | **optional.String**| [APN only] The URL-encoded representation of the certificate. Strip everything outside of the headers, e.g. `-----BEGIN CERTIFICATE-----MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==-----END CERTIFICATE-----` | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **PrivateKey** | **optional.String**| [APN only] The URL-encoded representation of the private key. Strip everything outside of the headers, e.g. `-----BEGIN RSA PRIVATE KEY-----MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR\\\\n.-----END RSA PRIVATE KEY-----` | + **Sandbox** | **optional.Bool**| [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. | + **Secret** | **optional.String**| [FCM only] The `Server key` of your project from Firebase console under Settings / Cloud messaging. | + **Type** | **optional.String**| The Credential type. Can be: `gcm`, `fcm`, or `apn`. | ### Return type @@ -120,7 +120,7 @@ Name | Type | Description | Notes ## CreateNotification -> NotifyV1ServiceNotification CreateNotification(ctx, serviceSid, optional) +> NotifyV1ServiceNotification CreateNotification(ctx, ServiceSid, optional) @@ -130,7 +130,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/notify/api/service-resource) to create the resource under. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/notify/api/service-resource) to create the resource under. | **optional** | ***CreateNotificationOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -141,24 +141,24 @@ Optional parameters are passed through a pointer to a CreateNotificationOpts str Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **action** | **optional.String**| The actions to display for the notification. For APNS, translates to the `aps.category` value. For GCM, translates to the `data.twi_action` value. For SMS, this parameter is not supported and is omitted from deliveries to those channels. | - **alexa** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| Deprecated. | - **apn** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The APNS-specific payload that overrides corresponding attributes in the generic payload for APNS Bindings. This property maps to the APNS `Payload` item, therefore the `aps` key must be used to change standard attributes. Adds custom key-value pairs to the root of the dictionary. See the [APNS documentation](https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingwithAPNs.html) for more details. We reserve keys that start with `twi_` for future use. Custom keys that start with `twi_` are not allowed. | - **body** | **optional.String**| The notification text. For FCM and GCM, translates to `data.twi_body`. For APNS, translates to `aps.alert.body`. For SMS, translates to `body`. SMS requires either this `body` value, or `media_urls` attribute defined in the `sms` parameter of the notification. | - **data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The custom key-value pairs of the notification's payload. For FCM and GCM, this value translates to `data` in the FCM and GCM payloads. FCM and GCM [reserve certain keys](https://firebase.google.com/docs/cloud-messaging/http-server-ref) that cannot be used in those channels. For APNS, attributes of `data` are inserted into the APNS payload as custom properties outside of the `aps` dictionary. In all channels, we reserve keys that start with `twi_` for future use. Custom keys that start with `twi_` are not allowed and are rejected as 400 Bad request with no delivery attempted. For SMS, this parameter is not supported and is omitted from deliveries to those channels. | - **deliveryCallbackUrl** | **optional.String**| URL to send webhooks. | - **facebookMessenger** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| Deprecated. | - **fcm** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The FCM-specific payload that overrides corresponding attributes in the generic payload for FCM Bindings. This property maps to the root JSON dictionary. See the [FCM documentation](https://firebase.google.com/docs/cloud-messaging/http-server-ref#downstream) for more details. Target parameters `to`, `registration_ids`, `condition`, and `notification_key` are not allowed in this parameter. We reserve keys that start with `twi_` for future use. Custom keys that start with `twi_` are not allowed. FCM also [reserves certain keys](https://firebase.google.com/docs/cloud-messaging/http-server-ref), which cannot be used in that channel. | - **gcm** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The GCM-specific payload that overrides corresponding attributes in the generic payload for GCM Bindings. This property maps to the root JSON dictionary. See the [GCM documentation](https://firebase.google.com/docs/cloud-messaging/http-server-ref) for more details. Target parameters `to`, `registration_ids`, and `notification_key` are not allowed. We reserve keys that start with `twi_` for future use. Custom keys that start with `twi_` are not allowed. GCM also [reserves certain keys](https://firebase.google.com/docs/cloud-messaging/http-server-ref). | - **identity** | [**optional.Interface of []string**](string.md)| The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/notify/api/service-resource). Delivery will be attempted only to Bindings with an Identity in this list. No more than 20 items are allowed in this list. | - **priority** | **optional.String**| The priority of the notification. Can be: `low` or `high` and the default is `high`. A value of `low` optimizes the client app's battery consumption; however, notifications may be delivered with unspecified delay. For FCM and GCM, `low` priority is the same as `Normal` priority. For APNS `low` priority is the same as `5`. A value of `high` sends the notification immediately, and can wake up a sleeping device. For FCM and GCM, `high` is the same as `High` priority. For APNS, `high` is a priority `10`. SMS does not support this property. | - **segment** | [**optional.Interface of []string**](string.md)| The Segment resource is deprecated. Use the `tag` parameter, instead. | - **sms** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The SMS-specific payload that overrides corresponding attributes in the generic payload for SMS Bindings. Each attribute in this value maps to the corresponding `form` parameter of the Twilio [Message](https://www.twilio.com/docs/sms/send-messages) resource. These parameters of the Message resource are supported in snake case format: `body`, `media_urls`, `status_callback`, and `max_price`. The `status_callback` parameter overrides the corresponding parameter in the messaging service, if configured. The `media_urls` property expects a JSON array. | - **sound** | **optional.String**| The name of the sound to be played for the notification. For FCM and GCM, this Translates to `data.twi_sound`. For APNS, this translates to `aps.sound`. SMS does not support this property. | - **tag** | [**optional.Interface of []string**](string.md)| A tag that selects the Bindings to notify. Repeat this parameter to specify more than one tag, up to a total of 5 tags. The implicit tag `all` is available to notify all Bindings in a Service instance. Similarly, the implicit tags `apn`, `fcm`, `gcm`, `sms` and `facebook-messenger` are available to notify all Bindings in a specific channel. | - **title** | **optional.String**| The notification title. For FCM and GCM, this translates to the `data.twi_title` value. For APNS, this translates to the `aps.alert.title` value. SMS does not support this property. This field is not visible on iOS phones and tablets but appears on Apple Watch and Android devices. | - **toBinding** | [**optional.Interface of []string**](string.md)| The destination address specified as a JSON string. Multiple `to_binding` parameters can be included but the total size of the request entity should not exceed 1MB. This is typically sufficient for 10,000 phone numbers. | - **ttl** | **optional.Int32**| How long, in seconds, the notification is valid. Can be an integer between 0 and 2,419,200, which is 4 weeks, the default and the maximum supported time to live (TTL). Delivery should be attempted if the device is offline until the TTL elapses. Zero means that the notification delivery is attempted immediately, only once, and is not stored for future delivery. SMS does not support this property. | + **Action** | **optional.String**| The actions to display for the notification. For APNS, translates to the `aps.category` value. For GCM, translates to the `data.twi_action` value. For SMS, this parameter is not supported and is omitted from deliveries to those channels. | + **Alexa** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| Deprecated. | + **Apn** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The APNS-specific payload that overrides corresponding attributes in the generic payload for APNS Bindings. This property maps to the APNS `Payload` item, therefore the `aps` key must be used to change standard attributes. Adds custom key-value pairs to the root of the dictionary. See the [APNS documentation](https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingwithAPNs.html) for more details. We reserve keys that start with `twi_` for future use. Custom keys that start with `twi_` are not allowed. | + **Body** | **optional.String**| The notification text. For FCM and GCM, translates to `data.twi_body`. For APNS, translates to `aps.alert.body`. For SMS, translates to `body`. SMS requires either this `body` value, or `media_urls` attribute defined in the `sms` parameter of the notification. | + **Data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The custom key-value pairs of the notification's payload. For FCM and GCM, this value translates to `data` in the FCM and GCM payloads. FCM and GCM [reserve certain keys](https://firebase.google.com/docs/cloud-messaging/http-server-ref) that cannot be used in those channels. For APNS, attributes of `data` are inserted into the APNS payload as custom properties outside of the `aps` dictionary. In all channels, we reserve keys that start with `twi_` for future use. Custom keys that start with `twi_` are not allowed and are rejected as 400 Bad request with no delivery attempted. For SMS, this parameter is not supported and is omitted from deliveries to those channels. | + **DeliveryCallbackUrl** | **optional.String**| URL to send webhooks. | + **FacebookMessenger** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| Deprecated. | + **Fcm** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The FCM-specific payload that overrides corresponding attributes in the generic payload for FCM Bindings. This property maps to the root JSON dictionary. See the [FCM documentation](https://firebase.google.com/docs/cloud-messaging/http-server-ref#downstream) for more details. Target parameters `to`, `registration_ids`, `condition`, and `notification_key` are not allowed in this parameter. We reserve keys that start with `twi_` for future use. Custom keys that start with `twi_` are not allowed. FCM also [reserves certain keys](https://firebase.google.com/docs/cloud-messaging/http-server-ref), which cannot be used in that channel. | + **Gcm** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The GCM-specific payload that overrides corresponding attributes in the generic payload for GCM Bindings. This property maps to the root JSON dictionary. See the [GCM documentation](https://firebase.google.com/docs/cloud-messaging/http-server-ref) for more details. Target parameters `to`, `registration_ids`, and `notification_key` are not allowed. We reserve keys that start with `twi_` for future use. Custom keys that start with `twi_` are not allowed. GCM also [reserves certain keys](https://firebase.google.com/docs/cloud-messaging/http-server-ref). | + **Identity** | [**optional.Interface of []string**](string.md)| The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/notify/api/service-resource). Delivery will be attempted only to Bindings with an Identity in this list. No more than 20 items are allowed in this list. | + **Priority** | **optional.String**| The priority of the notification. Can be: `low` or `high` and the default is `high`. A value of `low` optimizes the client app's battery consumption; however, notifications may be delivered with unspecified delay. For FCM and GCM, `low` priority is the same as `Normal` priority. For APNS `low` priority is the same as `5`. A value of `high` sends the notification immediately, and can wake up a sleeping device. For FCM and GCM, `high` is the same as `High` priority. For APNS, `high` is a priority `10`. SMS does not support this property. | + **Segment** | [**optional.Interface of []string**](string.md)| The Segment resource is deprecated. Use the `tag` parameter, instead. | + **Sms** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The SMS-specific payload that overrides corresponding attributes in the generic payload for SMS Bindings. Each attribute in this value maps to the corresponding `form` parameter of the Twilio [Message](https://www.twilio.com/docs/sms/send-messages) resource. These parameters of the Message resource are supported in snake case format: `body`, `media_urls`, `status_callback`, and `max_price`. The `status_callback` parameter overrides the corresponding parameter in the messaging service, if configured. The `media_urls` property expects a JSON array. | + **Sound** | **optional.String**| The name of the sound to be played for the notification. For FCM and GCM, this Translates to `data.twi_sound`. For APNS, this translates to `aps.sound`. SMS does not support this property. | + **Tag** | [**optional.Interface of []string**](string.md)| A tag that selects the Bindings to notify. Repeat this parameter to specify more than one tag, up to a total of 5 tags. The implicit tag `all` is available to notify all Bindings in a Service instance. Similarly, the implicit tags `apn`, `fcm`, `gcm`, `sms` and `facebook-messenger` are available to notify all Bindings in a specific channel. | + **Title** | **optional.String**| The notification title. For FCM and GCM, this translates to the `data.twi_title` value. For APNS, this translates to the `aps.alert.title` value. SMS does not support this property. This field is not visible on iOS phones and tablets but appears on Apple Watch and Android devices. | + **ToBinding** | [**optional.Interface of []string**](string.md)| The destination address specified as a JSON string. Multiple `to_binding` parameters can be included but the total size of the request entity should not exceed 1MB. This is typically sufficient for 10,000 phone numbers. | + **Ttl** | **optional.Int32**| How long, in seconds, the notification is valid. Can be an integer between 0 and 2,419,200, which is 4 weeks, the default and the maximum supported time to live (TTL). Delivery should be attempted if the device is offline until the TTL elapses. Zero means that the notification delivery is attempted immediately, only once, and is not stored for future delivery. SMS does not support this property. | ### Return type @@ -199,20 +199,20 @@ Optional parameters are passed through a pointer to a CreateServiceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **alexaSkillId** | **optional.String**| Deprecated. | - **apnCredentialSid** | **optional.String**| The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for APN Bindings. | - **defaultAlexaNotificationProtocolVersion** | **optional.String**| Deprecated. | - **defaultApnNotificationProtocolVersion** | **optional.String**| The protocol version to use for sending APNS notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource. | - **defaultFcmNotificationProtocolVersion** | **optional.String**| The protocol version to use for sending FCM notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource. | - **defaultGcmNotificationProtocolVersion** | **optional.String**| The protocol version to use for sending GCM notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource. | - **deliveryCallbackEnabled** | **optional.Bool**| Callback configuration that enables delivery callbacks, default false | - **deliveryCallbackUrl** | **optional.String**| URL to send delivery status callback. | - **facebookMessengerPageId** | **optional.String**| Deprecated. | - **fcmCredentialSid** | **optional.String**| The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for FCM Bindings. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | - **gcmCredentialSid** | **optional.String**| The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for GCM Bindings. | - **logEnabled** | **optional.Bool**| Whether to log notifications. Can be: `true` or `false` and the default is `true`. | - **messagingServiceSid** | **optional.String**| The SID of the [Messaging Service](https://www.twilio.com/docs/sms/send-messages#messaging-services) to use for SMS Bindings. This parameter must be set in order to send SMS notifications. | + **AlexaSkillId** | **optional.String**| Deprecated. | + **ApnCredentialSid** | **optional.String**| The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for APN Bindings. | + **DefaultAlexaNotificationProtocolVersion** | **optional.String**| Deprecated. | + **DefaultApnNotificationProtocolVersion** | **optional.String**| The protocol version to use for sending APNS notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource. | + **DefaultFcmNotificationProtocolVersion** | **optional.String**| The protocol version to use for sending FCM notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource. | + **DefaultGcmNotificationProtocolVersion** | **optional.String**| The protocol version to use for sending GCM notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource. | + **DeliveryCallbackEnabled** | **optional.Bool**| Callback configuration that enables delivery callbacks, default false | + **DeliveryCallbackUrl** | **optional.String**| URL to send delivery status callback. | + **FacebookMessengerPageId** | **optional.String**| Deprecated. | + **FcmCredentialSid** | **optional.String**| The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for FCM Bindings. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **GcmCredentialSid** | **optional.String**| The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for GCM Bindings. | + **LogEnabled** | **optional.Bool**| Whether to log notifications. Can be: `true` or `false` and the default is `true`. | + **MessagingServiceSid** | **optional.String**| The SID of the [Messaging Service](https://www.twilio.com/docs/sms/send-messages#messaging-services) to use for SMS Bindings. This parameter must be set in order to send SMS notifications. | ### Return type @@ -234,7 +234,7 @@ Name | Type | Description | Notes ## DeleteBinding -> DeleteBinding(ctx, serviceSid, sid) +> DeleteBinding(ctx, ServiceSid, Sid) @@ -244,8 +244,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/notify/api/service-resource) to delete the resource from. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Binding resource to delete. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/notify/api/service-resource) to delete the resource from. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Binding resource to delete. | ### Return type @@ -267,7 +267,7 @@ Name | Type | Description | Notes ## DeleteCredential -> DeleteCredential(ctx, sid) +> DeleteCredential(ctx, Sid) @@ -277,7 +277,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the Credential resource to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Credential resource to delete. | ### Return type @@ -299,7 +299,7 @@ Name | Type | Description | Notes ## DeleteService -> DeleteService(ctx, sid) +> DeleteService(ctx, Sid) @@ -309,7 +309,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the Service resource to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Service resource to delete. | ### Return type @@ -331,7 +331,7 @@ Name | Type | Description | Notes ## FetchBinding -> NotifyV1ServiceBinding FetchBinding(ctx, serviceSid, sid) +> NotifyV1ServiceBinding FetchBinding(ctx, ServiceSid, Sid) @@ -341,8 +341,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/notify/api/service-resource) to fetch the resource from. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Binding resource to fetch. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/notify/api/service-resource) to fetch the resource from. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Binding resource to fetch. | ### Return type @@ -364,7 +364,7 @@ Name | Type | Description | Notes ## FetchCredential -> NotifyV1Credential FetchCredential(ctx, sid) +> NotifyV1Credential FetchCredential(ctx, Sid) @@ -374,7 +374,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the Credential resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Credential resource to fetch. | ### Return type @@ -396,7 +396,7 @@ Name | Type | Description | Notes ## FetchService -> NotifyV1Service FetchService(ctx, sid) +> NotifyV1Service FetchService(ctx, Sid) @@ -406,7 +406,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the Service resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Service resource to fetch. | ### Return type @@ -428,7 +428,7 @@ Name | Type | Description | Notes ## ListBinding -> NotifyV1ServiceBindingReadResponse ListBinding(ctx, serviceSid, optional) +> NotifyV1ServiceBindingReadResponse ListBinding(ctx, ServiceSid, optional) @@ -438,7 +438,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/notify/api/service-resource) to read the resource from. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/notify/api/service-resource) to read the resource from. | **optional** | ***ListBindingOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -449,11 +449,11 @@ Optional parameters are passed through a pointer to a ListBindingOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **startDate** | **optional.Time**| Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. | - **endDate** | **optional.Time**| Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. | - **identity** | [**optional.Interface of []string**](string.md)| The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. | - **tag** | [**optional.Interface of []string**](string.md)| Only list Bindings that have all of the specified Tags. The following implicit tags are available: `all`, `apn`, `fcm`, `gcm`, `sms`, `facebook-messenger`. Up to 5 tags are allowed. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **StartDate** | **optional.Time**| Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. | + **EndDate** | **optional.Time**| Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. | + **Identity** | [**optional.Interface of []string**](string.md)| The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. | + **Tag** | [**optional.Interface of []string**](string.md)| Only list Bindings that have all of the specified Tags. The following implicit tags are available: `all`, `apn`, `fcm`, `gcm`, `sms`, `facebook-messenger`. Up to 5 tags are allowed. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -494,7 +494,7 @@ Optional parameters are passed through a pointer to a ListCredentialOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -535,8 +535,8 @@ Optional parameters are passed through a pointer to a ListServiceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| The string that identifies the Service resources to read. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **FriendlyName** | **optional.String**| The string that identifies the Service resources to read. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -558,7 +558,7 @@ Name | Type | Description | Notes ## UpdateCredential -> NotifyV1Credential UpdateCredential(ctx, sid, optional) +> NotifyV1Credential UpdateCredential(ctx, Sid, optional) @@ -568,7 +568,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the Credential resource to update. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Credential resource to update. | **optional** | ***UpdateCredentialOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -579,12 +579,12 @@ Optional parameters are passed through a pointer to a UpdateCredentialOpts struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiKey** | **optional.String**| [GCM only] The `Server key` of your project from Firebase console under Settings / Cloud messaging. | - **certificate** | **optional.String**| [APN only] The URL-encoded representation of the certificate. Strip everything outside of the headers, e.g. `-----BEGIN CERTIFICATE-----MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==-----END CERTIFICATE-----` | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | - **privateKey** | **optional.String**| [APN only] The URL-encoded representation of the private key. Strip everything outside of the headers, e.g. `-----BEGIN RSA PRIVATE KEY-----MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR\\\\n.-----END RSA PRIVATE KEY-----` | - **sandbox** | **optional.Bool**| [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. | - **secret** | **optional.String**| [FCM only] The `Server key` of your project from Firebase console under Settings / Cloud messaging. | + **ApiKey** | **optional.String**| [GCM only] The `Server key` of your project from Firebase console under Settings / Cloud messaging. | + **Certificate** | **optional.String**| [APN only] The URL-encoded representation of the certificate. Strip everything outside of the headers, e.g. `-----BEGIN CERTIFICATE-----MIIFnTCCBIWgAwIBAgIIAjy9H849+E8wDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNV.....A==-----END CERTIFICATE-----` | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **PrivateKey** | **optional.String**| [APN only] The URL-encoded representation of the private key. Strip everything outside of the headers, e.g. `-----BEGIN RSA PRIVATE KEY-----MIIEpQIBAAKCAQEAuyf/lNrH9ck8DmNyo3fGgvCI1l9s+cmBY3WIz+cUDqmxiieR\\\\n.-----END RSA PRIVATE KEY-----` | + **Sandbox** | **optional.Bool**| [APN only] Whether to send the credential to sandbox APNs. Can be `true` to send to sandbox APNs or `false` to send to production. | + **Secret** | **optional.String**| [FCM only] The `Server key` of your project from Firebase console under Settings / Cloud messaging. | ### Return type @@ -606,7 +606,7 @@ Name | Type | Description | Notes ## UpdateService -> NotifyV1Service UpdateService(ctx, sid, optional) +> NotifyV1Service UpdateService(ctx, Sid, optional) @@ -616,7 +616,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the Service resource to update. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Service resource to update. | **optional** | ***UpdateServiceOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -627,20 +627,20 @@ Optional parameters are passed through a pointer to a UpdateServiceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **alexaSkillId** | **optional.String**| Deprecated. | - **apnCredentialSid** | **optional.String**| The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for APN Bindings. | - **defaultAlexaNotificationProtocolVersion** | **optional.String**| Deprecated. | - **defaultApnNotificationProtocolVersion** | **optional.String**| The protocol version to use for sending APNS notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource. | - **defaultFcmNotificationProtocolVersion** | **optional.String**| The protocol version to use for sending FCM notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource. | - **defaultGcmNotificationProtocolVersion** | **optional.String**| The protocol version to use for sending GCM notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource. | - **deliveryCallbackEnabled** | **optional.Bool**| Callback configuration that enables delivery callbacks, default false | - **deliveryCallbackUrl** | **optional.String**| URL to send delivery status callback. | - **facebookMessengerPageId** | **optional.String**| Deprecated. | - **fcmCredentialSid** | **optional.String**| The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for FCM Bindings. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | - **gcmCredentialSid** | **optional.String**| The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for GCM Bindings. | - **logEnabled** | **optional.Bool**| Whether to log notifications. Can be: `true` or `false` and the default is `true`. | - **messagingServiceSid** | **optional.String**| The SID of the [Messaging Service](https://www.twilio.com/docs/sms/send-messages#messaging-services) to use for SMS Bindings. This parameter must be set in order to send SMS notifications. | + **AlexaSkillId** | **optional.String**| Deprecated. | + **ApnCredentialSid** | **optional.String**| The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for APN Bindings. | + **DefaultAlexaNotificationProtocolVersion** | **optional.String**| Deprecated. | + **DefaultApnNotificationProtocolVersion** | **optional.String**| The protocol version to use for sending APNS notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource. | + **DefaultFcmNotificationProtocolVersion** | **optional.String**| The protocol version to use for sending FCM notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource. | + **DefaultGcmNotificationProtocolVersion** | **optional.String**| The protocol version to use for sending GCM notifications. Can be overridden on a Binding by Binding basis when creating a [Binding](https://www.twilio.com/docs/notify/api/binding-resource) resource. | + **DeliveryCallbackEnabled** | **optional.Bool**| Callback configuration that enables delivery callbacks, default false | + **DeliveryCallbackUrl** | **optional.String**| URL to send delivery status callback. | + **FacebookMessengerPageId** | **optional.String**| Deprecated. | + **FcmCredentialSid** | **optional.String**| The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for FCM Bindings. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **GcmCredentialSid** | **optional.String**| The SID of the [Credential](https://www.twilio.com/docs/notify/api/credential-resource) to use for GCM Bindings. | + **LogEnabled** | **optional.Bool**| Whether to log notifications. Can be: `true` or `false` and the default is `true`. | + **MessagingServiceSid** | **optional.String**| The SID of the [Messaging Service](https://www.twilio.com/docs/sms/send-messages#messaging-services) to use for SMS Bindings. This parameter must be set in order to send SMS notifications. | ### Return type diff --git a/rest/notify/v1/model_notify_v1_credential.go b/rest/notify/v1/model_notify_v1_credential.go index 279e44c71..3ea268062 100644 --- a/rest/notify/v1/model_notify_v1_credential.go +++ b/rest/notify/v1/model_notify_v1_credential.go @@ -14,12 +14,12 @@ import ( ) // NotifyV1Credential struct for NotifyV1Credential type NotifyV1Credential struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Sandbox string `json:"sandbox,omitempty"` - Sid string `json:"sid,omitempty"` - Type string `json:"type,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Sandbox string `json:"Sandbox,omitempty"` + Sid string `json:"Sid,omitempty"` + Type string `json:"Type,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/notify/v1/model_notify_v1_credential_read_response.go b/rest/notify/v1/model_notify_v1_credential_read_response.go index e92565102..f7de416b4 100644 --- a/rest/notify/v1/model_notify_v1_credential_read_response.go +++ b/rest/notify/v1/model_notify_v1_credential_read_response.go @@ -11,6 +11,6 @@ package openapi // NotifyV1CredentialReadResponse struct for NotifyV1CredentialReadResponse type NotifyV1CredentialReadResponse struct { - Credentials []NotifyV1Credential `json:"credentials,omitempty"` - Meta NotifyV1CredentialReadResponseMeta `json:"meta,omitempty"` + Credentials []NotifyV1Credential `json:"Credentials,omitempty"` + Meta NotifyV1CredentialReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/notify/v1/model_notify_v1_credential_read_response_meta.go b/rest/notify/v1/model_notify_v1_credential_read_response_meta.go index d7b686a39..11a7efe83 100644 --- a/rest/notify/v1/model_notify_v1_credential_read_response_meta.go +++ b/rest/notify/v1/model_notify_v1_credential_read_response_meta.go @@ -11,11 +11,11 @@ package openapi // NotifyV1CredentialReadResponseMeta struct for NotifyV1CredentialReadResponseMeta type NotifyV1CredentialReadResponseMeta struct { - FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` - NextPageUrl string `json:"next_page_url,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUrl string `json:"previous_page_url,omitempty"` - Url string `json:"url,omitempty"` + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/notify/v1/model_notify_v1_service.go b/rest/notify/v1/model_notify_v1_service.go index 8bac1f4af..fa913b075 100644 --- a/rest/notify/v1/model_notify_v1_service.go +++ b/rest/notify/v1/model_notify_v1_service.go @@ -14,24 +14,24 @@ import ( ) // NotifyV1Service struct for NotifyV1Service type NotifyV1Service struct { - AccountSid string `json:"account_sid,omitempty"` - AlexaSkillId string `json:"alexa_skill_id,omitempty"` - ApnCredentialSid string `json:"apn_credential_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - DefaultAlexaNotificationProtocolVersion string `json:"default_alexa_notification_protocol_version,omitempty"` - DefaultApnNotificationProtocolVersion string `json:"default_apn_notification_protocol_version,omitempty"` - DefaultFcmNotificationProtocolVersion string `json:"default_fcm_notification_protocol_version,omitempty"` - DefaultGcmNotificationProtocolVersion string `json:"default_gcm_notification_protocol_version,omitempty"` - DeliveryCallbackEnabled bool `json:"delivery_callback_enabled,omitempty"` - DeliveryCallbackUrl string `json:"delivery_callback_url,omitempty"` - FacebookMessengerPageId string `json:"facebook_messenger_page_id,omitempty"` - FcmCredentialSid string `json:"fcm_credential_sid,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - GcmCredentialSid string `json:"gcm_credential_sid,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - LogEnabled bool `json:"log_enabled,omitempty"` - MessagingServiceSid string `json:"messaging_service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AlexaSkillId string `json:"AlexaSkillId,omitempty"` + ApnCredentialSid string `json:"ApnCredentialSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + DefaultAlexaNotificationProtocolVersion string `json:"DefaultAlexaNotificationProtocolVersion,omitempty"` + DefaultApnNotificationProtocolVersion string `json:"DefaultApnNotificationProtocolVersion,omitempty"` + DefaultFcmNotificationProtocolVersion string `json:"DefaultFcmNotificationProtocolVersion,omitempty"` + DefaultGcmNotificationProtocolVersion string `json:"DefaultGcmNotificationProtocolVersion,omitempty"` + DeliveryCallbackEnabled bool `json:"DeliveryCallbackEnabled,omitempty"` + DeliveryCallbackUrl string `json:"DeliveryCallbackUrl,omitempty"` + FacebookMessengerPageId string `json:"FacebookMessengerPageId,omitempty"` + FcmCredentialSid string `json:"FcmCredentialSid,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + GcmCredentialSid string `json:"GcmCredentialSid,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + LogEnabled bool `json:"LogEnabled,omitempty"` + MessagingServiceSid string `json:"MessagingServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/notify/v1/model_notify_v1_service_binding.go b/rest/notify/v1/model_notify_v1_service_binding.go index 1fc2b9c4b..a28109922 100644 --- a/rest/notify/v1/model_notify_v1_service_binding.go +++ b/rest/notify/v1/model_notify_v1_service_binding.go @@ -14,18 +14,18 @@ import ( ) // NotifyV1ServiceBinding struct for NotifyV1ServiceBinding type NotifyV1ServiceBinding struct { - AccountSid string `json:"account_sid,omitempty"` - Address string `json:"address,omitempty"` - BindingType string `json:"binding_type,omitempty"` - CredentialSid string `json:"credential_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Endpoint string `json:"endpoint,omitempty"` - Identity string `json:"identity,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - NotificationProtocolVersion string `json:"notification_protocol_version,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Tags []string `json:"tags,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Address string `json:"Address,omitempty"` + BindingType string `json:"BindingType,omitempty"` + CredentialSid string `json:"CredentialSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Endpoint string `json:"Endpoint,omitempty"` + Identity string `json:"Identity,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + NotificationProtocolVersion string `json:"NotificationProtocolVersion,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Tags []string `json:"Tags,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/notify/v1/model_notify_v1_service_binding_read_response.go b/rest/notify/v1/model_notify_v1_service_binding_read_response.go index f65220af9..ebd3356c2 100644 --- a/rest/notify/v1/model_notify_v1_service_binding_read_response.go +++ b/rest/notify/v1/model_notify_v1_service_binding_read_response.go @@ -11,6 +11,6 @@ package openapi // NotifyV1ServiceBindingReadResponse struct for NotifyV1ServiceBindingReadResponse type NotifyV1ServiceBindingReadResponse struct { - Bindings []NotifyV1ServiceBinding `json:"bindings,omitempty"` - Meta NotifyV1CredentialReadResponseMeta `json:"meta,omitempty"` + Bindings []NotifyV1ServiceBinding `json:"Bindings,omitempty"` + Meta NotifyV1CredentialReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/notify/v1/model_notify_v1_service_notification.go b/rest/notify/v1/model_notify_v1_service_notification.go index d3947e9ba..1f59d77f1 100644 --- a/rest/notify/v1/model_notify_v1_service_notification.go +++ b/rest/notify/v1/model_notify_v1_service_notification.go @@ -14,24 +14,24 @@ import ( ) // NotifyV1ServiceNotification struct for NotifyV1ServiceNotification type NotifyV1ServiceNotification struct { - AccountSid string `json:"account_sid,omitempty"` - Action string `json:"action,omitempty"` - Alexa map[string]interface{} `json:"alexa,omitempty"` - Apn map[string]interface{} `json:"apn,omitempty"` - Body string `json:"body,omitempty"` - Data map[string]interface{} `json:"data,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - FacebookMessenger map[string]interface{} `json:"facebook_messenger,omitempty"` - Fcm map[string]interface{} `json:"fcm,omitempty"` - Gcm map[string]interface{} `json:"gcm,omitempty"` - Identities []string `json:"identities,omitempty"` - Priority string `json:"priority,omitempty"` - Segments []string `json:"segments,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Sms map[string]interface{} `json:"sms,omitempty"` - Sound string `json:"sound,omitempty"` - Tags []string `json:"tags,omitempty"` - Title string `json:"title,omitempty"` - Ttl int32 `json:"ttl,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Action string `json:"Action,omitempty"` + Alexa map[string]interface{} `json:"Alexa,omitempty"` + Apn map[string]interface{} `json:"Apn,omitempty"` + Body string `json:"Body,omitempty"` + Data map[string]interface{} `json:"Data,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + FacebookMessenger map[string]interface{} `json:"FacebookMessenger,omitempty"` + Fcm map[string]interface{} `json:"Fcm,omitempty"` + Gcm map[string]interface{} `json:"Gcm,omitempty"` + Identities []string `json:"Identities,omitempty"` + Priority string `json:"Priority,omitempty"` + Segments []string `json:"Segments,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Sms map[string]interface{} `json:"Sms,omitempty"` + Sound string `json:"Sound,omitempty"` + Tags []string `json:"Tags,omitempty"` + Title string `json:"Title,omitempty"` + Ttl int32 `json:"Ttl,omitempty"` } diff --git a/rest/notify/v1/model_notify_v1_service_read_response.go b/rest/notify/v1/model_notify_v1_service_read_response.go index ef19bd5b8..6cac8669f 100644 --- a/rest/notify/v1/model_notify_v1_service_read_response.go +++ b/rest/notify/v1/model_notify_v1_service_read_response.go @@ -11,6 +11,6 @@ package openapi // NotifyV1ServiceReadResponse struct for NotifyV1ServiceReadResponse type NotifyV1ServiceReadResponse struct { - Meta NotifyV1CredentialReadResponseMeta `json:"meta,omitempty"` - Services []NotifyV1Service `json:"services,omitempty"` + Meta NotifyV1CredentialReadResponseMeta `json:"Meta,omitempty"` + Services []NotifyV1Service `json:"Services,omitempty"` } diff --git a/rest/numbers/v2/api_default.go b/rest/numbers/v2/api_default.go index 3f299c112..a476564d9 100644 --- a/rest/numbers/v2/api_default.go +++ b/rest/numbers/v2/api_default.go @@ -15,6 +15,7 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" ) type DefaultApiService struct { @@ -55,29 +56,30 @@ Create a new Bundle. func (c *DefaultApiService) CreateBundle(params *CreateBundleParams) (*NumbersV2RegulatoryComplianceBundle, error) { path := "/v2/RegulatoryCompliance/Bundles" + data := url.Values{} headers := 0 if params != nil && params.Email != nil { - data.Set("Email", *params.Email) + data.Set("Email", *params.Email) } if params != nil && params.EndUserType != nil { - data.Set("EndUserType", *params.EndUserType) + data.Set("EndUserType", *params.EndUserType) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.IsoCountry != nil { - data.Set("IsoCountry", *params.IsoCountry) + data.Set("IsoCountry", *params.IsoCountry) } if params != nil && params.NumberType != nil { - data.Set("NumberType", *params.NumberType) + data.Set("NumberType", *params.NumberType) } if params != nil && params.RegulationSid != nil { - data.Set("RegulationSid", *params.RegulationSid) + data.Set("RegulationSid", *params.RegulationSid) } if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) + data.Set("StatusCallback", *params.StatusCallback) } @@ -114,6 +116,7 @@ Create a new End User. func (c *DefaultApiService) CreateEndUser(params *CreateEndUserParams) (*NumbersV2RegulatoryComplianceEndUser, error) { path := "/v2/RegulatoryCompliance/EndUsers" + data := url.Values{} headers := 0 @@ -124,13 +127,13 @@ func (c *DefaultApiService) CreateEndUser(params *CreateEndUserParams) (*Numbers return nil, err } - data.Set("Attributes", string(v)) + data.Set("Attributes", fmt.Sprint(v)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Type != nil { - data.Set("Type", *params.Type) + data.Set("Type", *params.Type) } @@ -151,14 +154,15 @@ func (c *DefaultApiService) CreateEndUser(params *CreateEndUserParams) (*Numbers /* CreateEvaluation Method for CreateEvaluation - * @param bundleSid + * @param BundleSid @return NumbersV2RegulatoryComplianceBundleEvaluation */ -func (c *DefaultApiService) CreateEvaluation(bundleSid string) (*NumbersV2RegulatoryComplianceBundleEvaluation, error) { +func (c *DefaultApiService) CreateEvaluation(BundleSid string) (*NumbersV2RegulatoryComplianceBundleEvaluation, error) { path := "/v2/RegulatoryCompliance/Bundles/{BundleSid}/Evaluations" - path = strings.Replace(path, "{"+"BundleSid"+"}", bundleSid, -1) + path = strings.Replace(path, "{"+"BundleSid"+"}", BundleSid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -185,20 +189,21 @@ type CreateItemAssignmentParams struct { /* CreateItemAssignment Method for CreateItemAssignment Create a new Assigned Item. - * @param bundleSid The unique string that we created to identify the Bundle resource. + * @param BundleSid The unique string that we created to identify the Bundle resource. * @param optional nil or *CreateItemAssignmentOpts - Optional Parameters: * @param "ObjectSid" (string) - The SID of an object bag that holds information of the different items. @return NumbersV2RegulatoryComplianceBundleItemAssignment */ -func (c *DefaultApiService) CreateItemAssignment(bundleSid string, params *CreateItemAssignmentParams) (*NumbersV2RegulatoryComplianceBundleItemAssignment, error) { +func (c *DefaultApiService) CreateItemAssignment(BundleSid string, params *CreateItemAssignmentParams) (*NumbersV2RegulatoryComplianceBundleItemAssignment, error) { path := "/v2/RegulatoryCompliance/Bundles/{BundleSid}/ItemAssignments" - path = strings.Replace(path, "{"+"BundleSid"+"}", bundleSid, -1) + path = strings.Replace(path, "{"+"BundleSid"+"}", BundleSid, -1) + data := url.Values{} headers := 0 if params != nil && params.ObjectSid != nil { - data.Set("ObjectSid", *params.ObjectSid) + data.Set("ObjectSid", *params.ObjectSid) } @@ -235,6 +240,7 @@ Create a new Supporting Document. func (c *DefaultApiService) CreateSupportingDocument(params *CreateSupportingDocumentParams) (*NumbersV2RegulatoryComplianceSupportingDocument, error) { path := "/v2/RegulatoryCompliance/SupportingDocuments" + data := url.Values{} headers := 0 @@ -245,13 +251,13 @@ func (c *DefaultApiService) CreateSupportingDocument(params *CreateSupportingDoc return nil, err } - data.Set("Attributes", string(v)) + data.Set("Attributes", fmt.Sprint(v)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Type != nil { - data.Set("Type", *params.Type) + data.Set("Type", *params.Type) } @@ -273,13 +279,14 @@ func (c *DefaultApiService) CreateSupportingDocument(params *CreateSupportingDoc /* DeleteBundle Method for DeleteBundle Delete a specific Bundle. - * @param sid The unique string that we created to identify the Bundle resource. + * @param Sid The unique string that we created to identify the Bundle resource. */ -func (c *DefaultApiService) DeleteBundle(sid string) (error) { +func (c *DefaultApiService) DeleteBundle(Sid string) (error) { path := "/v2/RegulatoryCompliance/Bundles/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -297,13 +304,14 @@ func (c *DefaultApiService) DeleteBundle(sid string) (error) { /* DeleteEndUser Method for DeleteEndUser Delete a specific End User. - * @param sid The unique string created by Twilio to identify the End User resource. + * @param Sid The unique string created by Twilio to identify the End User resource. */ -func (c *DefaultApiService) DeleteEndUser(sid string) (error) { +func (c *DefaultApiService) DeleteEndUser(Sid string) (error) { path := "/v2/RegulatoryCompliance/EndUsers/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -321,15 +329,16 @@ func (c *DefaultApiService) DeleteEndUser(sid string) (error) { /* DeleteItemAssignment Method for DeleteItemAssignment Remove an Assignment Item Instance. - * @param bundleSid The unique string that we created to identify the Bundle resource. - * @param sid The unique string that we created to identify the Identity resource. + * @param BundleSid The unique string that we created to identify the Bundle resource. + * @param Sid The unique string that we created to identify the Identity resource. */ -func (c *DefaultApiService) DeleteItemAssignment(bundleSid string, sid string) (error) { +func (c *DefaultApiService) DeleteItemAssignment(BundleSid string, Sid string) (error) { path := "/v2/RegulatoryCompliance/Bundles/{BundleSid}/ItemAssignments/{Sid}" - path = strings.Replace(path, "{"+"BundleSid"+"}", bundleSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"BundleSid"+"}", BundleSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -347,13 +356,14 @@ func (c *DefaultApiService) DeleteItemAssignment(bundleSid string, sid string) ( /* DeleteSupportingDocument Method for DeleteSupportingDocument Delete a specific Supporting Document. - * @param sid The unique string created by Twilio to identify the Supporting Document resource. + * @param Sid The unique string created by Twilio to identify the Supporting Document resource. */ -func (c *DefaultApiService) DeleteSupportingDocument(sid string) (error) { +func (c *DefaultApiService) DeleteSupportingDocument(Sid string) (error) { path := "/v2/RegulatoryCompliance/SupportingDocuments/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -371,14 +381,15 @@ func (c *DefaultApiService) DeleteSupportingDocument(sid string) (error) { /* FetchBundle Method for FetchBundle Fetch a specific Bundle instance. - * @param sid The unique string that we created to identify the Bundle resource. + * @param Sid The unique string that we created to identify the Bundle resource. @return NumbersV2RegulatoryComplianceBundle */ -func (c *DefaultApiService) FetchBundle(sid string) (*NumbersV2RegulatoryComplianceBundle, error) { +func (c *DefaultApiService) FetchBundle(Sid string) (*NumbersV2RegulatoryComplianceBundle, error) { path := "/v2/RegulatoryCompliance/Bundles/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -401,14 +412,15 @@ func (c *DefaultApiService) FetchBundle(sid string) (*NumbersV2RegulatoryComplia /* FetchEndUser Method for FetchEndUser Fetch specific End User Instance. - * @param sid The unique string created by Twilio to identify the End User resource. + * @param Sid The unique string created by Twilio to identify the End User resource. @return NumbersV2RegulatoryComplianceEndUser */ -func (c *DefaultApiService) FetchEndUser(sid string) (*NumbersV2RegulatoryComplianceEndUser, error) { +func (c *DefaultApiService) FetchEndUser(Sid string) (*NumbersV2RegulatoryComplianceEndUser, error) { path := "/v2/RegulatoryCompliance/EndUsers/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -431,14 +443,15 @@ func (c *DefaultApiService) FetchEndUser(sid string) (*NumbersV2RegulatoryCompli /* FetchEndUserType Method for FetchEndUserType Fetch a specific End-User Type Instance. - * @param sid The unique string that identifies the End-User Type resource. + * @param Sid The unique string that identifies the End-User Type resource. @return NumbersV2RegulatoryComplianceEndUserType */ -func (c *DefaultApiService) FetchEndUserType(sid string) (*NumbersV2RegulatoryComplianceEndUserType, error) { +func (c *DefaultApiService) FetchEndUserType(Sid string) (*NumbersV2RegulatoryComplianceEndUserType, error) { path := "/v2/RegulatoryCompliance/EndUserTypes/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -461,16 +474,17 @@ func (c *DefaultApiService) FetchEndUserType(sid string) (*NumbersV2RegulatoryCo /* FetchEvaluation Method for FetchEvaluation Fetch specific Evaluation Instance. - * @param bundleSid The unique string that we created to identify the Bundle resource. - * @param sid The unique string that identifies the Evaluation resource. + * @param BundleSid The unique string that we created to identify the Bundle resource. + * @param Sid The unique string that identifies the Evaluation resource. @return NumbersV2RegulatoryComplianceBundleEvaluation */ -func (c *DefaultApiService) FetchEvaluation(bundleSid string, sid string) (*NumbersV2RegulatoryComplianceBundleEvaluation, error) { +func (c *DefaultApiService) FetchEvaluation(BundleSid string, Sid string) (*NumbersV2RegulatoryComplianceBundleEvaluation, error) { path := "/v2/RegulatoryCompliance/Bundles/{BundleSid}/Evaluations/{Sid}" - path = strings.Replace(path, "{"+"BundleSid"+"}", bundleSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"BundleSid"+"}", BundleSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -493,16 +507,17 @@ func (c *DefaultApiService) FetchEvaluation(bundleSid string, sid string) (*Numb /* FetchItemAssignment Method for FetchItemAssignment Fetch specific Assigned Item Instance. - * @param bundleSid The unique string that we created to identify the Bundle resource. - * @param sid The unique string that we created to identify the Identity resource. + * @param BundleSid The unique string that we created to identify the Bundle resource. + * @param Sid The unique string that we created to identify the Identity resource. @return NumbersV2RegulatoryComplianceBundleItemAssignment */ -func (c *DefaultApiService) FetchItemAssignment(bundleSid string, sid string) (*NumbersV2RegulatoryComplianceBundleItemAssignment, error) { +func (c *DefaultApiService) FetchItemAssignment(BundleSid string, Sid string) (*NumbersV2RegulatoryComplianceBundleItemAssignment, error) { path := "/v2/RegulatoryCompliance/Bundles/{BundleSid}/ItemAssignments/{Sid}" - path = strings.Replace(path, "{"+"BundleSid"+"}", bundleSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"BundleSid"+"}", BundleSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -525,14 +540,15 @@ func (c *DefaultApiService) FetchItemAssignment(bundleSid string, sid string) (* /* FetchRegulation Method for FetchRegulation Fetch specific Regulation Instance. - * @param sid The unique string that identifies the Regulation resource. + * @param Sid The unique string that identifies the Regulation resource. @return NumbersV2RegulatoryComplianceRegulation */ -func (c *DefaultApiService) FetchRegulation(sid string) (*NumbersV2RegulatoryComplianceRegulation, error) { +func (c *DefaultApiService) FetchRegulation(Sid string) (*NumbersV2RegulatoryComplianceRegulation, error) { path := "/v2/RegulatoryCompliance/Regulations/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -555,14 +571,15 @@ func (c *DefaultApiService) FetchRegulation(sid string) (*NumbersV2RegulatoryCom /* FetchSupportingDocument Method for FetchSupportingDocument Fetch specific Supporting Document Instance. - * @param sid The unique string created by Twilio to identify the Supporting Document resource. + * @param Sid The unique string created by Twilio to identify the Supporting Document resource. @return NumbersV2RegulatoryComplianceSupportingDocument */ -func (c *DefaultApiService) FetchSupportingDocument(sid string) (*NumbersV2RegulatoryComplianceSupportingDocument, error) { +func (c *DefaultApiService) FetchSupportingDocument(Sid string) (*NumbersV2RegulatoryComplianceSupportingDocument, error) { path := "/v2/RegulatoryCompliance/SupportingDocuments/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -585,14 +602,15 @@ func (c *DefaultApiService) FetchSupportingDocument(sid string) (*NumbersV2Regul /* FetchSupportingDocumentType Method for FetchSupportingDocumentType Fetch a specific Supporting Document Type Instance. - * @param sid The unique string that identifies the Supporting Document Type resource. + * @param Sid The unique string that identifies the Supporting Document Type resource. @return NumbersV2RegulatoryComplianceSupportingDocumentType */ -func (c *DefaultApiService) FetchSupportingDocumentType(sid string) (*NumbersV2RegulatoryComplianceSupportingDocumentType, error) { +func (c *DefaultApiService) FetchSupportingDocumentType(Sid string) (*NumbersV2RegulatoryComplianceSupportingDocumentType, error) { path := "/v2/RegulatoryCompliance/SupportingDocumentTypes/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -636,26 +654,27 @@ Retrieve a list of all Bundles for an account. func (c *DefaultApiService) ListBundle(params *ListBundleParams) (*NumbersV2RegulatoryComplianceBundleReadResponse, error) { path := "/v2/RegulatoryCompliance/Bundles" + data := url.Values{} headers := 0 if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.RegulationSid != nil { - data.Set("RegulationSid", *params.RegulationSid) + data.Set("RegulationSid", *params.RegulationSid) } if params != nil && params.IsoCountry != nil { - data.Set("IsoCountry", *params.IsoCountry) + data.Set("IsoCountry", *params.IsoCountry) } if params != nil && params.NumberType != nil { - data.Set("NumberType", *params.NumberType) + data.Set("NumberType", *params.NumberType) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -688,11 +707,12 @@ Retrieve a list of all End User for an account. func (c *DefaultApiService) ListEndUser(params *ListEndUserParams) (*NumbersV2RegulatoryComplianceEndUserReadResponse, error) { path := "/v2/RegulatoryCompliance/EndUsers" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -725,11 +745,12 @@ Retrieve a list of all End-User Types. func (c *DefaultApiService) ListEndUserType(params *ListEndUserTypeParams) (*NumbersV2RegulatoryComplianceEndUserTypeReadResponse, error) { path := "/v2/RegulatoryCompliance/EndUserTypes" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -755,20 +776,21 @@ type ListEvaluationParams struct { /* ListEvaluation Method for ListEvaluation Retrieve a list of Evaluations associated to the Bundle resource. - * @param bundleSid + * @param BundleSid * @param optional nil or *ListEvaluationOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return NumbersV2RegulatoryComplianceBundleEvaluationReadResponse */ -func (c *DefaultApiService) ListEvaluation(bundleSid string, params *ListEvaluationParams) (*NumbersV2RegulatoryComplianceBundleEvaluationReadResponse, error) { +func (c *DefaultApiService) ListEvaluation(BundleSid string, params *ListEvaluationParams) (*NumbersV2RegulatoryComplianceBundleEvaluationReadResponse, error) { path := "/v2/RegulatoryCompliance/Bundles/{BundleSid}/Evaluations" - path = strings.Replace(path, "{"+"BundleSid"+"}", bundleSid, -1) + path = strings.Replace(path, "{"+"BundleSid"+"}", BundleSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -794,20 +816,21 @@ type ListItemAssignmentParams struct { /* ListItemAssignment Method for ListItemAssignment Retrieve a list of all Assigned Items for an account. - * @param bundleSid The unique string that we created to identify the Bundle resource. + * @param BundleSid The unique string that we created to identify the Bundle resource. * @param optional nil or *ListItemAssignmentOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse */ -func (c *DefaultApiService) ListItemAssignment(bundleSid string, params *ListItemAssignmentParams) (*NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse, error) { +func (c *DefaultApiService) ListItemAssignment(BundleSid string, params *ListItemAssignmentParams) (*NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse, error) { path := "/v2/RegulatoryCompliance/Bundles/{BundleSid}/ItemAssignments" - path = strings.Replace(path, "{"+"BundleSid"+"}", bundleSid, -1) + path = strings.Replace(path, "{"+"BundleSid"+"}", BundleSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -846,20 +869,21 @@ Retrieve a list of all Regulations. func (c *DefaultApiService) ListRegulation(params *ListRegulationParams) (*NumbersV2RegulatoryComplianceRegulationReadResponse, error) { path := "/v2/RegulatoryCompliance/Regulations" + data := url.Values{} headers := 0 if params != nil && params.EndUserType != nil { - data.Set("EndUserType", *params.EndUserType) + data.Set("EndUserType", *params.EndUserType) } if params != nil && params.IsoCountry != nil { - data.Set("IsoCountry", *params.IsoCountry) + data.Set("IsoCountry", *params.IsoCountry) } if params != nil && params.NumberType != nil { - data.Set("NumberType", *params.NumberType) + data.Set("NumberType", *params.NumberType) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -892,11 +916,12 @@ Retrieve a list of all Supporting Document for an account. func (c *DefaultApiService) ListSupportingDocument(params *ListSupportingDocumentParams) (*NumbersV2RegulatoryComplianceSupportingDocumentReadResponse, error) { path := "/v2/RegulatoryCompliance/SupportingDocuments" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -929,11 +954,12 @@ Retrieve a list of all Supporting Document Types. func (c *DefaultApiService) ListSupportingDocumentType(params *ListSupportingDocumentTypeParams) (*NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse, error) { path := "/v2/RegulatoryCompliance/SupportingDocumentTypes" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -962,7 +988,7 @@ type UpdateBundleParams struct { /* UpdateBundle Method for UpdateBundle Updates a Bundle in an account. - * @param sid The unique string that we created to identify the Bundle resource. + * @param Sid The unique string that we created to identify the Bundle resource. * @param optional nil or *UpdateBundleOpts - Optional Parameters: * @param "Email" (string) - The email address that will receive updates when the Bundle resource changes status. * @param "FriendlyName" (string) - The string that you assigned to describe the resource. @@ -970,24 +996,25 @@ Updates a Bundle in an account. * @param "StatusCallback" (string) - The URL we call to inform your application of status changes. @return NumbersV2RegulatoryComplianceBundle */ -func (c *DefaultApiService) UpdateBundle(sid string, params *UpdateBundleParams) (*NumbersV2RegulatoryComplianceBundle, error) { +func (c *DefaultApiService) UpdateBundle(Sid string, params *UpdateBundleParams) (*NumbersV2RegulatoryComplianceBundle, error) { path := "/v2/RegulatoryCompliance/Bundles/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.Email != nil { - data.Set("Email", *params.Email) + data.Set("Email", *params.Email) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) + data.Set("StatusCallback", *params.StatusCallback) } @@ -1014,15 +1041,16 @@ type UpdateEndUserParams struct { /* UpdateEndUser Method for UpdateEndUser Update an existing End User. - * @param sid The unique string created by Twilio to identify the End User resource. + * @param Sid The unique string created by Twilio to identify the End User resource. * @param optional nil or *UpdateEndUserOpts - Optional Parameters: * @param "Attributes" (map[string]interface{}) - The set of parameters that are the attributes of the End User resource which are derived End User Types. * @param "FriendlyName" (string) - The string that you assigned to describe the resource. @return NumbersV2RegulatoryComplianceEndUser */ -func (c *DefaultApiService) UpdateEndUser(sid string, params *UpdateEndUserParams) (*NumbersV2RegulatoryComplianceEndUser, error) { +func (c *DefaultApiService) UpdateEndUser(Sid string, params *UpdateEndUserParams) (*NumbersV2RegulatoryComplianceEndUser, error) { path := "/v2/RegulatoryCompliance/EndUsers/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 @@ -1034,10 +1062,10 @@ func (c *DefaultApiService) UpdateEndUser(sid string, params *UpdateEndUserParam return nil, err } - data.Set("Attributes", string(v)) + data.Set("Attributes", fmt.Sprint(v)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -1064,15 +1092,16 @@ type UpdateSupportingDocumentParams struct { /* UpdateSupportingDocument Method for UpdateSupportingDocument Update an existing Supporting Document. - * @param sid The unique string created by Twilio to identify the Supporting Document resource. + * @param Sid The unique string created by Twilio to identify the Supporting Document resource. * @param optional nil or *UpdateSupportingDocumentOpts - Optional Parameters: * @param "Attributes" (map[string]interface{}) - The set of parameters that are the attributes of the Supporting Document resource which are derived Supporting Document Types. * @param "FriendlyName" (string) - The string that you assigned to describe the resource. @return NumbersV2RegulatoryComplianceSupportingDocument */ -func (c *DefaultApiService) UpdateSupportingDocument(sid string, params *UpdateSupportingDocumentParams) (*NumbersV2RegulatoryComplianceSupportingDocument, error) { +func (c *DefaultApiService) UpdateSupportingDocument(Sid string, params *UpdateSupportingDocumentParams) (*NumbersV2RegulatoryComplianceSupportingDocument, error) { path := "/v2/RegulatoryCompliance/SupportingDocuments/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 @@ -1084,10 +1113,10 @@ func (c *DefaultApiService) UpdateSupportingDocument(sid string, params *UpdateS return nil, err } - data.Set("Attributes", string(v)) + data.Set("Attributes", fmt.Sprint(v)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } diff --git a/rest/numbers/v2/docs/DefaultApi.md b/rest/numbers/v2/docs/DefaultApi.md index 904c923f4..f4d6298ee 100644 --- a/rest/numbers/v2/docs/DefaultApi.md +++ b/rest/numbers/v2/docs/DefaultApi.md @@ -58,13 +58,13 @@ Optional parameters are passed through a pointer to a CreateBundleOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **email** | **optional.String**| The email address that will receive updates when the Bundle resource changes status. | - **endUserType** | **optional.String**| The type of End User of the Bundle resource. | - **friendlyName** | **optional.String**| The string that you assigned to describe the resource. | - **isoCountry** | **optional.String**| The ISO country code of the Bundle's phone number country ownership request. | - **numberType** | **optional.String**| The type of phone number of the Bundle's ownership request. | - **regulationSid** | **optional.String**| The unique string of a regulation that is associated to the Bundle resource. | - **statusCallback** | **optional.String**| The URL we call to inform your application of status changes. | + **Email** | **optional.String**| The email address that will receive updates when the Bundle resource changes status. | + **EndUserType** | **optional.String**| The type of End User of the Bundle resource. | + **FriendlyName** | **optional.String**| The string that you assigned to describe the resource. | + **IsoCountry** | **optional.String**| The ISO country code of the Bundle's phone number country ownership request. | + **NumberType** | **optional.String**| The type of phone number of the Bundle's ownership request. | + **RegulationSid** | **optional.String**| The unique string of a regulation that is associated to the Bundle resource. | + **StatusCallback** | **optional.String**| The URL we call to inform your application of status changes. | ### Return type @@ -107,9 +107,9 @@ Optional parameters are passed through a pointer to a CreateEndUserOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **attributes** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The set of parameters that are the attributes of the End User resource which are derived End User Types. | - **friendlyName** | **optional.String**| The string that you assigned to describe the resource. | - **type_** | **optional.String**| The type of end user of the Bundle resource - can be `individual` or `business`. | + **Attributes** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The set of parameters that are the attributes of the End User resource which are derived End User Types. | + **FriendlyName** | **optional.String**| The string that you assigned to describe the resource. | + **Type** | **optional.String**| The type of end user of the Bundle resource - can be `individual` or `business`. | ### Return type @@ -131,7 +131,7 @@ Name | Type | Description | Notes ## CreateEvaluation -> NumbersV2RegulatoryComplianceBundleEvaluation CreateEvaluation(ctx, bundleSid) +> NumbersV2RegulatoryComplianceBundleEvaluation CreateEvaluation(ctx, BundleSid) @@ -141,7 +141,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**bundleSid** | **string**| | +**BundleSid** | **string**| | ### Return type @@ -163,7 +163,7 @@ Name | Type | Description | Notes ## CreateItemAssignment -> NumbersV2RegulatoryComplianceBundleItemAssignment CreateItemAssignment(ctx, bundleSid, optional) +> NumbersV2RegulatoryComplianceBundleItemAssignment CreateItemAssignment(ctx, BundleSid, optional) @@ -175,7 +175,7 @@ Create a new Assigned Item. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**bundleSid** | **string**| The unique string that we created to identify the Bundle resource. | +**BundleSid** | **string**| The unique string that we created to identify the Bundle resource. | **optional** | ***CreateItemAssignmentOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -186,7 +186,7 @@ Optional parameters are passed through a pointer to a CreateItemAssignmentOpts s Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **objectSid** | **optional.String**| The SID of an object bag that holds information of the different items. | + **ObjectSid** | **optional.String**| The SID of an object bag that holds information of the different items. | ### Return type @@ -229,9 +229,9 @@ Optional parameters are passed through a pointer to a CreateSupportingDocumentOp Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **attributes** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The set of parameters that are the attributes of the Supporting Documents resource which are derived Supporting Document Types. | - **friendlyName** | **optional.String**| The string that you assigned to describe the resource. | - **type_** | **optional.String**| The type of the Supporting Document. | + **Attributes** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The set of parameters that are the attributes of the Supporting Documents resource which are derived Supporting Document Types. | + **FriendlyName** | **optional.String**| The string that you assigned to describe the resource. | + **Type** | **optional.String**| The type of the Supporting Document. | ### Return type @@ -253,7 +253,7 @@ Name | Type | Description | Notes ## DeleteBundle -> DeleteBundle(ctx, sid) +> DeleteBundle(ctx, Sid) @@ -265,7 +265,7 @@ Delete a specific Bundle. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The unique string that we created to identify the Bundle resource. | +**Sid** | **string**| The unique string that we created to identify the Bundle resource. | ### Return type @@ -287,7 +287,7 @@ Name | Type | Description | Notes ## DeleteEndUser -> DeleteEndUser(ctx, sid) +> DeleteEndUser(ctx, Sid) @@ -299,7 +299,7 @@ Delete a specific End User. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The unique string created by Twilio to identify the End User resource. | +**Sid** | **string**| The unique string created by Twilio to identify the End User resource. | ### Return type @@ -321,7 +321,7 @@ Name | Type | Description | Notes ## DeleteItemAssignment -> DeleteItemAssignment(ctx, bundleSid, sid) +> DeleteItemAssignment(ctx, BundleSid, Sid) @@ -333,8 +333,8 @@ Remove an Assignment Item Instance. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**bundleSid** | **string**| The unique string that we created to identify the Bundle resource. | -**sid** | **string**| The unique string that we created to identify the Identity resource. | +**BundleSid** | **string**| The unique string that we created to identify the Bundle resource. | +**Sid** | **string**| The unique string that we created to identify the Identity resource. | ### Return type @@ -356,7 +356,7 @@ Name | Type | Description | Notes ## DeleteSupportingDocument -> DeleteSupportingDocument(ctx, sid) +> DeleteSupportingDocument(ctx, Sid) @@ -368,7 +368,7 @@ Delete a specific Supporting Document. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The unique string created by Twilio to identify the Supporting Document resource. | +**Sid** | **string**| The unique string created by Twilio to identify the Supporting Document resource. | ### Return type @@ -390,7 +390,7 @@ Name | Type | Description | Notes ## FetchBundle -> NumbersV2RegulatoryComplianceBundle FetchBundle(ctx, sid) +> NumbersV2RegulatoryComplianceBundle FetchBundle(ctx, Sid) @@ -402,7 +402,7 @@ Fetch a specific Bundle instance. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The unique string that we created to identify the Bundle resource. | +**Sid** | **string**| The unique string that we created to identify the Bundle resource. | ### Return type @@ -424,7 +424,7 @@ Name | Type | Description | Notes ## FetchEndUser -> NumbersV2RegulatoryComplianceEndUser FetchEndUser(ctx, sid) +> NumbersV2RegulatoryComplianceEndUser FetchEndUser(ctx, Sid) @@ -436,7 +436,7 @@ Fetch specific End User Instance. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The unique string created by Twilio to identify the End User resource. | +**Sid** | **string**| The unique string created by Twilio to identify the End User resource. | ### Return type @@ -458,7 +458,7 @@ Name | Type | Description | Notes ## FetchEndUserType -> NumbersV2RegulatoryComplianceEndUserType FetchEndUserType(ctx, sid) +> NumbersV2RegulatoryComplianceEndUserType FetchEndUserType(ctx, Sid) @@ -470,7 +470,7 @@ Fetch a specific End-User Type Instance. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The unique string that identifies the End-User Type resource. | +**Sid** | **string**| The unique string that identifies the End-User Type resource. | ### Return type @@ -492,7 +492,7 @@ Name | Type | Description | Notes ## FetchEvaluation -> NumbersV2RegulatoryComplianceBundleEvaluation FetchEvaluation(ctx, bundleSid, sid) +> NumbersV2RegulatoryComplianceBundleEvaluation FetchEvaluation(ctx, BundleSid, Sid) @@ -504,8 +504,8 @@ Fetch specific Evaluation Instance. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**bundleSid** | **string**| The unique string that we created to identify the Bundle resource. | -**sid** | **string**| The unique string that identifies the Evaluation resource. | +**BundleSid** | **string**| The unique string that we created to identify the Bundle resource. | +**Sid** | **string**| The unique string that identifies the Evaluation resource. | ### Return type @@ -527,7 +527,7 @@ Name | Type | Description | Notes ## FetchItemAssignment -> NumbersV2RegulatoryComplianceBundleItemAssignment FetchItemAssignment(ctx, bundleSid, sid) +> NumbersV2RegulatoryComplianceBundleItemAssignment FetchItemAssignment(ctx, BundleSid, Sid) @@ -539,8 +539,8 @@ Fetch specific Assigned Item Instance. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**bundleSid** | **string**| The unique string that we created to identify the Bundle resource. | -**sid** | **string**| The unique string that we created to identify the Identity resource. | +**BundleSid** | **string**| The unique string that we created to identify the Bundle resource. | +**Sid** | **string**| The unique string that we created to identify the Identity resource. | ### Return type @@ -562,7 +562,7 @@ Name | Type | Description | Notes ## FetchRegulation -> NumbersV2RegulatoryComplianceRegulation FetchRegulation(ctx, sid) +> NumbersV2RegulatoryComplianceRegulation FetchRegulation(ctx, Sid) @@ -574,7 +574,7 @@ Fetch specific Regulation Instance. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The unique string that identifies the Regulation resource. | +**Sid** | **string**| The unique string that identifies the Regulation resource. | ### Return type @@ -596,7 +596,7 @@ Name | Type | Description | Notes ## FetchSupportingDocument -> NumbersV2RegulatoryComplianceSupportingDocument FetchSupportingDocument(ctx, sid) +> NumbersV2RegulatoryComplianceSupportingDocument FetchSupportingDocument(ctx, Sid) @@ -608,7 +608,7 @@ Fetch specific Supporting Document Instance. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The unique string created by Twilio to identify the Supporting Document resource. | +**Sid** | **string**| The unique string created by Twilio to identify the Supporting Document resource. | ### Return type @@ -630,7 +630,7 @@ Name | Type | Description | Notes ## FetchSupportingDocumentType -> NumbersV2RegulatoryComplianceSupportingDocumentType FetchSupportingDocumentType(ctx, sid) +> NumbersV2RegulatoryComplianceSupportingDocumentType FetchSupportingDocumentType(ctx, Sid) @@ -642,7 +642,7 @@ Fetch a specific Supporting Document Type Instance. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The unique string that identifies the Supporting Document Type resource. | +**Sid** | **string**| The unique string that identifies the Supporting Document Type resource. | ### Return type @@ -685,12 +685,12 @@ Optional parameters are passed through a pointer to a ListBundleOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | **optional.String**| The verification status of the Bundle resource. | - **friendlyName** | **optional.String**| The string that you assigned to describe the resource. | - **regulationSid** | **optional.String**| The unique string of a regulation that is associated to the Bundle resource. | - **isoCountry** | **optional.String**| The ISO country code of the Bundle's phone number country ownership request. | - **numberType** | **optional.String**| The type of phone number of the Bundle's ownership request. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Status** | **optional.String**| The verification status of the Bundle resource. | + **FriendlyName** | **optional.String**| The string that you assigned to describe the resource. | + **RegulationSid** | **optional.String**| The unique string of a regulation that is associated to the Bundle resource. | + **IsoCountry** | **optional.String**| The ISO country code of the Bundle's phone number country ownership request. | + **NumberType** | **optional.String**| The type of phone number of the Bundle's ownership request. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -733,7 +733,7 @@ Optional parameters are passed through a pointer to a ListEndUserOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -776,7 +776,7 @@ Optional parameters are passed through a pointer to a ListEndUserTypeOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -798,7 +798,7 @@ Name | Type | Description | Notes ## ListEvaluation -> NumbersV2RegulatoryComplianceBundleEvaluationReadResponse ListEvaluation(ctx, bundleSid, optional) +> NumbersV2RegulatoryComplianceBundleEvaluationReadResponse ListEvaluation(ctx, BundleSid, optional) @@ -810,7 +810,7 @@ Retrieve a list of Evaluations associated to the Bundle resource. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**bundleSid** | **string**| | +**BundleSid** | **string**| | **optional** | ***ListEvaluationOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -821,7 +821,7 @@ Optional parameters are passed through a pointer to a ListEvaluationOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -843,7 +843,7 @@ Name | Type | Description | Notes ## ListItemAssignment -> NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse ListItemAssignment(ctx, bundleSid, optional) +> NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse ListItemAssignment(ctx, BundleSid, optional) @@ -855,7 +855,7 @@ Retrieve a list of all Assigned Items for an account. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**bundleSid** | **string**| The unique string that we created to identify the Bundle resource. | +**BundleSid** | **string**| The unique string that we created to identify the Bundle resource. | **optional** | ***ListItemAssignmentOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -866,7 +866,7 @@ Optional parameters are passed through a pointer to a ListItemAssignmentOpts str Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -909,10 +909,10 @@ Optional parameters are passed through a pointer to a ListRegulationOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **endUserType** | **optional.String**| The type of End User the regulation requires - can be `individual` or `business`. | - **isoCountry** | **optional.String**| The ISO country code of the phone number's country. | - **numberType** | **optional.String**| The type of phone number that the regulatory requiremnt is restricting. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **EndUserType** | **optional.String**| The type of End User the regulation requires - can be `individual` or `business`. | + **IsoCountry** | **optional.String**| The ISO country code of the phone number's country. | + **NumberType** | **optional.String**| The type of phone number that the regulatory requiremnt is restricting. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -955,7 +955,7 @@ Optional parameters are passed through a pointer to a ListSupportingDocumentOpts Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -998,7 +998,7 @@ Optional parameters are passed through a pointer to a ListSupportingDocumentType Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1020,7 +1020,7 @@ Name | Type | Description | Notes ## UpdateBundle -> NumbersV2RegulatoryComplianceBundle UpdateBundle(ctx, sid, optional) +> NumbersV2RegulatoryComplianceBundle UpdateBundle(ctx, Sid, optional) @@ -1032,7 +1032,7 @@ Updates a Bundle in an account. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The unique string that we created to identify the Bundle resource. | +**Sid** | **string**| The unique string that we created to identify the Bundle resource. | **optional** | ***UpdateBundleOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1043,10 +1043,10 @@ Optional parameters are passed through a pointer to a UpdateBundleOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **email** | **optional.String**| The email address that will receive updates when the Bundle resource changes status. | - **friendlyName** | **optional.String**| The string that you assigned to describe the resource. | - **status** | **optional.String**| The verification status of the Bundle resource. | - **statusCallback** | **optional.String**| The URL we call to inform your application of status changes. | + **Email** | **optional.String**| The email address that will receive updates when the Bundle resource changes status. | + **FriendlyName** | **optional.String**| The string that you assigned to describe the resource. | + **Status** | **optional.String**| The verification status of the Bundle resource. | + **StatusCallback** | **optional.String**| The URL we call to inform your application of status changes. | ### Return type @@ -1068,7 +1068,7 @@ Name | Type | Description | Notes ## UpdateEndUser -> NumbersV2RegulatoryComplianceEndUser UpdateEndUser(ctx, sid, optional) +> NumbersV2RegulatoryComplianceEndUser UpdateEndUser(ctx, Sid, optional) @@ -1080,7 +1080,7 @@ Update an existing End User. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The unique string created by Twilio to identify the End User resource. | +**Sid** | **string**| The unique string created by Twilio to identify the End User resource. | **optional** | ***UpdateEndUserOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1091,8 +1091,8 @@ Optional parameters are passed through a pointer to a UpdateEndUserOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **attributes** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The set of parameters that are the attributes of the End User resource which are derived End User Types. | - **friendlyName** | **optional.String**| The string that you assigned to describe the resource. | + **Attributes** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The set of parameters that are the attributes of the End User resource which are derived End User Types. | + **FriendlyName** | **optional.String**| The string that you assigned to describe the resource. | ### Return type @@ -1114,7 +1114,7 @@ Name | Type | Description | Notes ## UpdateSupportingDocument -> NumbersV2RegulatoryComplianceSupportingDocument UpdateSupportingDocument(ctx, sid, optional) +> NumbersV2RegulatoryComplianceSupportingDocument UpdateSupportingDocument(ctx, Sid, optional) @@ -1126,7 +1126,7 @@ Update an existing Supporting Document. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The unique string created by Twilio to identify the Supporting Document resource. | +**Sid** | **string**| The unique string created by Twilio to identify the Supporting Document resource. | **optional** | ***UpdateSupportingDocumentOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1137,8 +1137,8 @@ Optional parameters are passed through a pointer to a UpdateSupportingDocumentOp Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **attributes** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The set of parameters that are the attributes of the Supporting Document resource which are derived Supporting Document Types. | - **friendlyName** | **optional.String**| The string that you assigned to describe the resource. | + **Attributes** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The set of parameters that are the attributes of the Supporting Document resource which are derived Supporting Document Types. | + **FriendlyName** | **optional.String**| The string that you assigned to describe the resource. | ### Return type diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle.go index bb7423008..d4271e0b4 100644 --- a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle.go +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle.go @@ -14,16 +14,16 @@ import ( ) // NumbersV2RegulatoryComplianceBundle struct for NumbersV2RegulatoryComplianceBundle type NumbersV2RegulatoryComplianceBundle struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Email string `json:"email,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - RegulationSid string `json:"regulation_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - StatusCallback string `json:"status_callback,omitempty"` - Url string `json:"url,omitempty"` - ValidUntil time.Time `json:"valid_until,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Email string `json:"Email,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + RegulationSid string `json:"RegulationSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Status string `json:"Status,omitempty"` + StatusCallback string `json:"StatusCallback,omitempty"` + Url string `json:"Url,omitempty"` + ValidUntil time.Time `json:"ValidUntil,omitempty"` } diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_evaluation.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_evaluation.go index d2b88feec..25994fe28 100644 --- a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_evaluation.go +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_evaluation.go @@ -14,12 +14,12 @@ import ( ) // NumbersV2RegulatoryComplianceBundleEvaluation struct for NumbersV2RegulatoryComplianceBundleEvaluation type NumbersV2RegulatoryComplianceBundleEvaluation struct { - AccountSid string `json:"account_sid,omitempty"` - BundleSid string `json:"bundle_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - RegulationSid string `json:"regulation_sid,omitempty"` - Results []map[string]interface{} `json:"results,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + BundleSid string `json:"BundleSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + RegulationSid string `json:"RegulationSid,omitempty"` + Results []map[string]interface{} `json:"Results,omitempty"` + Sid string `json:"Sid,omitempty"` + Status string `json:"Status,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_evaluation_read_response.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_evaluation_read_response.go index 75f06c10c..3ac6ace6f 100644 --- a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_evaluation_read_response.go +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_evaluation_read_response.go @@ -11,6 +11,6 @@ package openapi // NumbersV2RegulatoryComplianceBundleEvaluationReadResponse struct for NumbersV2RegulatoryComplianceBundleEvaluationReadResponse type NumbersV2RegulatoryComplianceBundleEvaluationReadResponse struct { - Meta NumbersV2RegulatoryComplianceBundleReadResponseMeta `json:"meta,omitempty"` - Results []NumbersV2RegulatoryComplianceBundleEvaluation `json:"results,omitempty"` + Meta NumbersV2RegulatoryComplianceBundleReadResponseMeta `json:"Meta,omitempty"` + Results []NumbersV2RegulatoryComplianceBundleEvaluation `json:"Results,omitempty"` } diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_item_assignment.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_item_assignment.go index 1d657f434..781129c2a 100644 --- a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_item_assignment.go +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_item_assignment.go @@ -14,10 +14,10 @@ import ( ) // NumbersV2RegulatoryComplianceBundleItemAssignment struct for NumbersV2RegulatoryComplianceBundleItemAssignment type NumbersV2RegulatoryComplianceBundleItemAssignment struct { - AccountSid string `json:"account_sid,omitempty"` - BundleSid string `json:"bundle_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - ObjectSid string `json:"object_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + BundleSid string `json:"BundleSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + ObjectSid string `json:"ObjectSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_item_assignment_read_response.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_item_assignment_read_response.go index 1b611be6a..6b0c9e5ef 100644 --- a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_item_assignment_read_response.go +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_item_assignment_read_response.go @@ -11,6 +11,6 @@ package openapi // NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse struct for NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse type NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse struct { - Meta NumbersV2RegulatoryComplianceBundleReadResponseMeta `json:"meta,omitempty"` - Results []NumbersV2RegulatoryComplianceBundleItemAssignment `json:"results,omitempty"` + Meta NumbersV2RegulatoryComplianceBundleReadResponseMeta `json:"Meta,omitempty"` + Results []NumbersV2RegulatoryComplianceBundleItemAssignment `json:"Results,omitempty"` } diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_read_response.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_read_response.go index 4556ccab9..470c9a58e 100644 --- a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_read_response.go +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_read_response.go @@ -11,6 +11,6 @@ package openapi // NumbersV2RegulatoryComplianceBundleReadResponse struct for NumbersV2RegulatoryComplianceBundleReadResponse type NumbersV2RegulatoryComplianceBundleReadResponse struct { - Meta NumbersV2RegulatoryComplianceBundleReadResponseMeta `json:"meta,omitempty"` - Results []NumbersV2RegulatoryComplianceBundle `json:"results,omitempty"` + Meta NumbersV2RegulatoryComplianceBundleReadResponseMeta `json:"Meta,omitempty"` + Results []NumbersV2RegulatoryComplianceBundle `json:"Results,omitempty"` } diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_read_response_meta.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_read_response_meta.go index 7d35a8776..89ee62659 100644 --- a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_read_response_meta.go +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_read_response_meta.go @@ -11,11 +11,11 @@ package openapi // NumbersV2RegulatoryComplianceBundleReadResponseMeta struct for NumbersV2RegulatoryComplianceBundleReadResponseMeta type NumbersV2RegulatoryComplianceBundleReadResponseMeta struct { - FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` - NextPageUrl string `json:"next_page_url,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUrl string `json:"previous_page_url,omitempty"` - Url string `json:"url,omitempty"` + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user.go index 46cb40b46..39ca909f3 100644 --- a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user.go +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user.go @@ -14,12 +14,12 @@ import ( ) // NumbersV2RegulatoryComplianceEndUser struct for NumbersV2RegulatoryComplianceEndUser type NumbersV2RegulatoryComplianceEndUser struct { - AccountSid string `json:"account_sid,omitempty"` - Attributes map[string]interface{} `json:"attributes,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Sid string `json:"sid,omitempty"` - Type string `json:"type,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Attributes map[string]interface{} `json:"Attributes,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Sid string `json:"Sid,omitempty"` + Type string `json:"Type,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user_read_response.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user_read_response.go index 53033f7a7..25f40046d 100644 --- a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user_read_response.go +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user_read_response.go @@ -11,6 +11,6 @@ package openapi // NumbersV2RegulatoryComplianceEndUserReadResponse struct for NumbersV2RegulatoryComplianceEndUserReadResponse type NumbersV2RegulatoryComplianceEndUserReadResponse struct { - Meta NumbersV2RegulatoryComplianceBundleReadResponseMeta `json:"meta,omitempty"` - Results []NumbersV2RegulatoryComplianceEndUser `json:"results,omitempty"` + Meta NumbersV2RegulatoryComplianceBundleReadResponseMeta `json:"Meta,omitempty"` + Results []NumbersV2RegulatoryComplianceEndUser `json:"Results,omitempty"` } diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user_type.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user_type.go index 8bac1cedd..bec24d972 100644 --- a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user_type.go +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user_type.go @@ -11,9 +11,9 @@ package openapi // NumbersV2RegulatoryComplianceEndUserType struct for NumbersV2RegulatoryComplianceEndUserType type NumbersV2RegulatoryComplianceEndUserType struct { - Fields []map[string]interface{} `json:"fields,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - MachineName string `json:"machine_name,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + Fields []map[string]interface{} `json:"Fields,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + MachineName string `json:"MachineName,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user_type_read_response.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user_type_read_response.go index a016dcf74..93a87dc9e 100644 --- a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user_type_read_response.go +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user_type_read_response.go @@ -11,6 +11,6 @@ package openapi // NumbersV2RegulatoryComplianceEndUserTypeReadResponse struct for NumbersV2RegulatoryComplianceEndUserTypeReadResponse type NumbersV2RegulatoryComplianceEndUserTypeReadResponse struct { - EndUserTypes []NumbersV2RegulatoryComplianceEndUserType `json:"end_user_types,omitempty"` - Meta NumbersV2RegulatoryComplianceBundleReadResponseMeta `json:"meta,omitempty"` + EndUserTypes []NumbersV2RegulatoryComplianceEndUserType `json:"EndUserTypes,omitempty"` + Meta NumbersV2RegulatoryComplianceBundleReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_regulation.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_regulation.go index 3030f3b8d..9fe245aef 100644 --- a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_regulation.go +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_regulation.go @@ -11,11 +11,11 @@ package openapi // NumbersV2RegulatoryComplianceRegulation struct for NumbersV2RegulatoryComplianceRegulation type NumbersV2RegulatoryComplianceRegulation struct { - EndUserType string `json:"end_user_type,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - IsoCountry string `json:"iso_country,omitempty"` - NumberType string `json:"number_type,omitempty"` - Requirements map[string]interface{} `json:"requirements,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + EndUserType string `json:"EndUserType,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + IsoCountry string `json:"IsoCountry,omitempty"` + NumberType string `json:"NumberType,omitempty"` + Requirements map[string]interface{} `json:"Requirements,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_regulation_read_response.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_regulation_read_response.go index 7bcb5bc24..b560d9acb 100644 --- a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_regulation_read_response.go +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_regulation_read_response.go @@ -11,6 +11,6 @@ package openapi // NumbersV2RegulatoryComplianceRegulationReadResponse struct for NumbersV2RegulatoryComplianceRegulationReadResponse type NumbersV2RegulatoryComplianceRegulationReadResponse struct { - Meta NumbersV2RegulatoryComplianceBundleReadResponseMeta `json:"meta,omitempty"` - Results []NumbersV2RegulatoryComplianceRegulation `json:"results,omitempty"` + Meta NumbersV2RegulatoryComplianceBundleReadResponseMeta `json:"Meta,omitempty"` + Results []NumbersV2RegulatoryComplianceRegulation `json:"Results,omitempty"` } diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document.go index 0feee1d16..f0b464021 100644 --- a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document.go +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document.go @@ -14,14 +14,14 @@ import ( ) // NumbersV2RegulatoryComplianceSupportingDocument struct for NumbersV2RegulatoryComplianceSupportingDocument type NumbersV2RegulatoryComplianceSupportingDocument struct { - AccountSid string `json:"account_sid,omitempty"` - Attributes map[string]interface{} `json:"attributes,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - MimeType string `json:"mime_type,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - Type string `json:"type,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Attributes map[string]interface{} `json:"Attributes,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + MimeType string `json:"MimeType,omitempty"` + Sid string `json:"Sid,omitempty"` + Status string `json:"Status,omitempty"` + Type string `json:"Type,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document_read_response.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document_read_response.go index 6de07d71b..e1158f011 100644 --- a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document_read_response.go +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document_read_response.go @@ -11,6 +11,6 @@ package openapi // NumbersV2RegulatoryComplianceSupportingDocumentReadResponse struct for NumbersV2RegulatoryComplianceSupportingDocumentReadResponse type NumbersV2RegulatoryComplianceSupportingDocumentReadResponse struct { - Meta NumbersV2RegulatoryComplianceBundleReadResponseMeta `json:"meta,omitempty"` - Results []NumbersV2RegulatoryComplianceSupportingDocument `json:"results,omitempty"` + Meta NumbersV2RegulatoryComplianceBundleReadResponseMeta `json:"Meta,omitempty"` + Results []NumbersV2RegulatoryComplianceSupportingDocument `json:"Results,omitempty"` } diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document_type.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document_type.go index d351180af..4df890ca4 100644 --- a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document_type.go +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document_type.go @@ -11,9 +11,9 @@ package openapi // NumbersV2RegulatoryComplianceSupportingDocumentType struct for NumbersV2RegulatoryComplianceSupportingDocumentType type NumbersV2RegulatoryComplianceSupportingDocumentType struct { - Fields []map[string]interface{} `json:"fields,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - MachineName string `json:"machine_name,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + Fields []map[string]interface{} `json:"Fields,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + MachineName string `json:"MachineName,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document_type_read_response.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document_type_read_response.go index 1d70efb24..f3099a3c7 100644 --- a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document_type_read_response.go +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document_type_read_response.go @@ -11,6 +11,6 @@ package openapi // NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse struct for NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse type NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse struct { - Meta NumbersV2RegulatoryComplianceBundleReadResponseMeta `json:"meta,omitempty"` - SupportingDocumentTypes []NumbersV2RegulatoryComplianceSupportingDocumentType `json:"supporting_document_types,omitempty"` + Meta NumbersV2RegulatoryComplianceBundleReadResponseMeta `json:"Meta,omitempty"` + SupportingDocumentTypes []NumbersV2RegulatoryComplianceSupportingDocumentType `json:"SupportingDocumentTypes,omitempty"` } diff --git a/rest/preview/api_default.go b/rest/preview/api_default.go index 7a5899569..7dcda75bf 100644 --- a/rest/preview/api_default.go +++ b/rest/preview/api_default.go @@ -15,6 +15,7 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" ) type DefaultApiService struct { @@ -56,14 +57,15 @@ CreateAssistant Method for CreateAssistant func (c *DefaultApiService) CreateAssistant(params *CreateAssistantParams) (*PreviewUnderstandAssistant, error) { path := "/understand/Assistants" + data := url.Values{} headers := 0 if params != nil && params.CallbackEvents != nil { - data.Set("CallbackEvents", *params.CallbackEvents) + data.Set("CallbackEvents", *params.CallbackEvents) } if params != nil && params.CallbackUrl != nil { - data.Set("CallbackUrl", *params.CallbackUrl) + data.Set("CallbackUrl", *params.CallbackUrl) } if params != nil && params.FallbackActions != nil { v, err := json.Marshal(params.FallbackActions) @@ -72,10 +74,10 @@ func (c *DefaultApiService) CreateAssistant(params *CreateAssistantParams) (*Pre return nil, err } - data.Set("FallbackActions", string(v)) + data.Set("FallbackActions", fmt.Sprint(v)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.InitiationActions != nil { v, err := json.Marshal(params.InitiationActions) @@ -84,10 +86,10 @@ func (c *DefaultApiService) CreateAssistant(params *CreateAssistantParams) (*Pre return nil, err } - data.Set("InitiationActions", string(v)) + data.Set("InitiationActions", fmt.Sprint(v)) } if params != nil && params.LogQueries != nil { - data.Set("LogQueries", string(*params.LogQueries)) + data.Set("LogQueries", fmt.Sprint(*params.LogQueries)) } if params != nil && params.StyleSheet != nil { v, err := json.Marshal(params.StyleSheet) @@ -96,10 +98,10 @@ func (c *DefaultApiService) CreateAssistant(params *CreateAssistantParams) (*Pre return nil, err } - data.Set("StyleSheet", string(v)) + data.Set("StyleSheet", fmt.Sprint(v)) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -142,26 +144,27 @@ Create an AuthorizationDocument for authorizing the hosting of phone number capa func (c *DefaultApiService) CreateAuthorizationDocument(params *CreateAuthorizationDocumentParams) (*PreviewHostedNumbersAuthorizationDocument, error) { path := "/HostedNumbers/AuthorizationDocuments" + data := url.Values{} headers := 0 if params != nil && params.AddressSid != nil { - data.Set("AddressSid", *params.AddressSid) + data.Set("AddressSid", *params.AddressSid) } if params != nil && params.CcEmails != nil { - data.Set("CcEmails", *params.CcEmails) + data.Set("CcEmails", strings.Join(*params.CcEmails, ",")) } if params != nil && params.ContactPhoneNumber != nil { - data.Set("ContactPhoneNumber", *params.ContactPhoneNumber) + data.Set("ContactPhoneNumber", *params.ContactPhoneNumber) } if params != nil && params.ContactTitle != nil { - data.Set("ContactTitle", *params.ContactTitle) + data.Set("ContactTitle", *params.ContactTitle) } if params != nil && params.Email != nil { - data.Set("Email", *params.Email) + data.Set("Email", *params.Email) } if params != nil && params.HostedNumberOrderSids != nil { - data.Set("HostedNumberOrderSids", *params.HostedNumberOrderSids) + data.Set("HostedNumberOrderSids", strings.Join(*params.HostedNumberOrderSids, ",")) } @@ -189,28 +192,29 @@ type CreateCertificateParams struct { /* CreateCertificate Method for CreateCertificate Enroll a new Certificate credential to the Fleet, optionally giving it a friendly name and assigning to a Device. - * @param fleetSid + * @param FleetSid * @param optional nil or *CreateCertificateOpts - Optional Parameters: * @param "CertificateData" (string) - Provides a URL encoded representation of the public certificate in PEM format. * @param "DeviceSid" (string) - Provides the unique string identifier of an existing Device to become authenticated with this Certificate credential. * @param "FriendlyName" (string) - Provides a human readable descriptive text for this Certificate credential, up to 256 characters long. @return PreviewDeployedDevicesFleetCertificate */ -func (c *DefaultApiService) CreateCertificate(fleetSid string, params *CreateCertificateParams) (*PreviewDeployedDevicesFleetCertificate, error) { +func (c *DefaultApiService) CreateCertificate(FleetSid string, params *CreateCertificateParams) (*PreviewDeployedDevicesFleetCertificate, error) { path := "/DeployedDevices/Fleets/{FleetSid}/Certificates" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path = strings.Replace(path, "{"+"FleetSid"+"}", FleetSid, -1) + data := url.Values{} headers := 0 if params != nil && params.CertificateData != nil { - data.Set("CertificateData", *params.CertificateData) + data.Set("CertificateData", *params.CertificateData) } if params != nil && params.DeviceSid != nil { - data.Set("DeviceSid", *params.DeviceSid) + data.Set("DeviceSid", *params.DeviceSid) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -236,20 +240,21 @@ type CreateChannelParams struct { /* CreateChannel Method for CreateChannel Associate a channel to a branded channel - * @param brandedChannelSid The unique SID identifier of the Branded Channel. The given phone number is going to be assigned to this Branded Channel + * @param BrandedChannelSid The unique SID identifier of the Branded Channel. The given phone number is going to be assigned to this Branded Channel * @param optional nil or *CreateChannelOpts - Optional Parameters: * @param "PhoneNumberSid" (string) - The unique SID identifier of the Phone Number of the Phone number to be assigned to the Branded Channel. @return PreviewTrustedCommsBrandedChannelChannel */ -func (c *DefaultApiService) CreateChannel(brandedChannelSid string, params *CreateChannelParams) (*PreviewTrustedCommsBrandedChannelChannel, error) { +func (c *DefaultApiService) CreateChannel(BrandedChannelSid string, params *CreateChannelParams) (*PreviewTrustedCommsBrandedChannelChannel, error) { path := "/TrustedComms/BrandedChannels/{BrandedChannelSid}/Channels" - path = strings.Replace(path, "{"+"BrandedChannelSid"+"}", brandedChannelSid, -1) + path = strings.Replace(path, "{"+"BrandedChannelSid"+"}", BrandedChannelSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PhoneNumberSid != nil { - data.Set("PhoneNumberSid", *params.PhoneNumberSid) + data.Set("PhoneNumberSid", *params.PhoneNumberSid) } @@ -293,29 +298,30 @@ CreateCommand Method for CreateCommand func (c *DefaultApiService) CreateCommand(params *CreateCommandParams) (*PreviewWirelessCommand, error) { path := "/wireless/Commands" + data := url.Values{} headers := 0 if params != nil && params.CallbackMethod != nil { - data.Set("CallbackMethod", *params.CallbackMethod) + data.Set("CallbackMethod", *params.CallbackMethod) } if params != nil && params.CallbackUrl != nil { - data.Set("CallbackUrl", *params.CallbackUrl) + data.Set("CallbackUrl", *params.CallbackUrl) } if params != nil && params.Command != nil { - data.Set("Command", *params.Command) + data.Set("Command", *params.Command) } if params != nil && params.CommandMode != nil { - data.Set("CommandMode", *params.CommandMode) + data.Set("CommandMode", *params.CommandMode) } if params != nil && params.Device != nil { - data.Set("Device", *params.Device) + data.Set("Device", *params.Device) } if params != nil && params.IncludeSid != nil { - data.Set("IncludeSid", *params.IncludeSid) + data.Set("IncludeSid", *params.IncludeSid) } if params != nil && params.Sim != nil { - data.Set("Sim", *params.Sim) + data.Set("Sim", *params.Sim) } @@ -342,24 +348,25 @@ type CreateDeploymentParams struct { /* CreateDeployment Method for CreateDeployment Create a new Deployment in the Fleet, optionally giving it a friendly name and linking to a specific Twilio Sync service instance. - * @param fleetSid + * @param FleetSid * @param optional nil or *CreateDeploymentOpts - Optional Parameters: * @param "FriendlyName" (string) - Provides a human readable descriptive text for this Deployment, up to 256 characters long. * @param "SyncServiceSid" (string) - Provides the unique string identifier of the Twilio Sync service instance that will be linked to and accessible by this Deployment. @return PreviewDeployedDevicesFleetDeployment */ -func (c *DefaultApiService) CreateDeployment(fleetSid string, params *CreateDeploymentParams) (*PreviewDeployedDevicesFleetDeployment, error) { +func (c *DefaultApiService) CreateDeployment(FleetSid string, params *CreateDeploymentParams) (*PreviewDeployedDevicesFleetDeployment, error) { path := "/DeployedDevices/Fleets/{FleetSid}/Deployments" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path = strings.Replace(path, "{"+"FleetSid"+"}", FleetSid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.SyncServiceSid != nil { - data.Set("SyncServiceSid", *params.SyncServiceSid) + data.Set("SyncServiceSid", *params.SyncServiceSid) } @@ -389,7 +396,7 @@ type CreateDeviceParams struct { /* CreateDevice Method for CreateDevice Create a new Device in the Fleet, optionally giving it a unique name, friendly name, and assigning to a Deployment and/or human identity. - * @param fleetSid + * @param FleetSid * @param optional nil or *CreateDeviceOpts - Optional Parameters: * @param "DeploymentSid" (string) - Specifies the unique string identifier of the Deployment group that this Device is going to be associated with. * @param "Enabled" (bool) - @@ -398,27 +405,28 @@ Create a new Device in the Fleet, optionally giving it a unique name, friendly n * @param "UniqueName" (string) - Provides a unique and addressable name to be assigned to this Device, to be used in addition to SID, up to 128 characters long. @return PreviewDeployedDevicesFleetDevice */ -func (c *DefaultApiService) CreateDevice(fleetSid string, params *CreateDeviceParams) (*PreviewDeployedDevicesFleetDevice, error) { +func (c *DefaultApiService) CreateDevice(FleetSid string, params *CreateDeviceParams) (*PreviewDeployedDevicesFleetDevice, error) { path := "/DeployedDevices/Fleets/{FleetSid}/Devices" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path = strings.Replace(path, "{"+"FleetSid"+"}", FleetSid, -1) + data := url.Values{} headers := 0 if params != nil && params.DeploymentSid != nil { - data.Set("DeploymentSid", *params.DeploymentSid) + data.Set("DeploymentSid", *params.DeploymentSid) } if params != nil && params.Enabled != nil { - data.Set("Enabled", string(*params.Enabled)) + data.Set("Enabled", fmt.Sprint(*params.Enabled)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) + data.Set("Identity", *params.Identity) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -444,15 +452,16 @@ type CreateDocumentParams struct { /* CreateDocument Method for CreateDocument - * @param serviceSid + * @param ServiceSid * @param optional nil or *CreateDocumentOpts - Optional Parameters: * @param "Data" (map[string]interface{}) - * @param "UniqueName" (string) - @return PreviewSyncServiceDocument */ -func (c *DefaultApiService) CreateDocument(serviceSid string, params *CreateDocumentParams) (*PreviewSyncServiceDocument, error) { +func (c *DefaultApiService) CreateDocument(ServiceSid string, params *CreateDocumentParams) (*PreviewSyncServiceDocument, error) { path := "/Sync/Services/{ServiceSid}/Documents" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 @@ -464,10 +473,10 @@ func (c *DefaultApiService) CreateDocument(serviceSid string, params *CreateDocu return nil, err } - data.Set("Data", string(v)) + data.Set("Data", fmt.Sprint(v)) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -497,7 +506,7 @@ type CreateExportCustomJobParams struct { /* CreateExportCustomJob Method for CreateExportCustomJob - * @param resourceType The type of communication – Messages or Calls + * @param ResourceType The type of communication – Messages or Calls * @param optional nil or *CreateExportCustomJobOpts - Optional Parameters: * @param "Email" (string) - The optional email to send the completion notification to * @param "EndDay" (string) - The end day for the custom export specified as a string in the format of yyyy-mm-dd. End day is inclusive and must be 2 days earlier than the current UTC day. @@ -507,30 +516,31 @@ CreateExportCustomJob Method for CreateExportCustomJob * @param "WebhookUrl" (string) - The optional webhook url called on completion of the job. If this is supplied, `WebhookMethod` must also be supplied. @return PreviewBulkExportsExportExportCustomJob */ -func (c *DefaultApiService) CreateExportCustomJob(resourceType string, params *CreateExportCustomJobParams) (*PreviewBulkExportsExportExportCustomJob, error) { +func (c *DefaultApiService) CreateExportCustomJob(ResourceType string, params *CreateExportCustomJobParams) (*PreviewBulkExportsExportExportCustomJob, error) { path := "/BulkExports/Exports/{ResourceType}/Jobs" - path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + path = strings.Replace(path, "{"+"ResourceType"+"}", ResourceType, -1) + data := url.Values{} headers := 0 if params != nil && params.Email != nil { - data.Set("Email", *params.Email) + data.Set("Email", *params.Email) } if params != nil && params.EndDay != nil { - data.Set("EndDay", *params.EndDay) + data.Set("EndDay", *params.EndDay) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.StartDay != nil { - data.Set("StartDay", *params.StartDay) + data.Set("StartDay", *params.StartDay) } if params != nil && params.WebhookMethod != nil { - data.Set("WebhookMethod", *params.WebhookMethod) + data.Set("WebhookMethod", *params.WebhookMethod) } if params != nil && params.WebhookUrl != nil { - data.Set("WebhookUrl", *params.WebhookUrl) + data.Set("WebhookUrl", *params.WebhookUrl) } @@ -556,26 +566,27 @@ type CreateFieldParams struct { /* CreateField Method for CreateField - * @param assistantSid The unique ID of the parent Assistant. - * @param taskSid The unique ID of the Task associated with this Field. + * @param AssistantSid The unique ID of the parent Assistant. + * @param TaskSid The unique ID of the Task associated with this Field. * @param optional nil or *CreateFieldOpts - Optional Parameters: * @param "FieldType" (string) - The unique name or sid of the FieldType. It can be any [Built-in Field Type](https://www.twilio.com/docs/assistant/api/built-in-field-types) or the unique_name or the Field Type sid of a custom Field Type. * @param "UniqueName" (string) - A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. @return PreviewUnderstandAssistantTaskField */ -func (c *DefaultApiService) CreateField(assistantSid string, taskSid string, params *CreateFieldParams) (*PreviewUnderstandAssistantTaskField, error) { +func (c *DefaultApiService) CreateField(AssistantSid string, TaskSid string, params *CreateFieldParams) (*PreviewUnderstandAssistantTaskField, error) { path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", TaskSid, -1) + data := url.Values{} headers := 0 if params != nil && params.FieldType != nil { - data.Set("FieldType", *params.FieldType) + data.Set("FieldType", *params.FieldType) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -601,24 +612,25 @@ type CreateFieldTypeParams struct { /* CreateFieldType Method for CreateFieldType - * @param assistantSid + * @param AssistantSid * @param optional nil or *CreateFieldTypeOpts - Optional Parameters: * @param "FriendlyName" (string) - A user-provided string that identifies this resource. It is non-unique and can up to 255 characters long. * @param "UniqueName" (string) - A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. @return PreviewUnderstandAssistantFieldType */ -func (c *DefaultApiService) CreateFieldType(assistantSid string, params *CreateFieldTypeParams) (*PreviewUnderstandAssistantFieldType, error) { +func (c *DefaultApiService) CreateFieldType(AssistantSid string, params *CreateFieldTypeParams) (*PreviewUnderstandAssistantFieldType, error) { path := "/understand/Assistants/{AssistantSid}/FieldTypes" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -645,30 +657,31 @@ type CreateFieldValueParams struct { /* CreateFieldValue Method for CreateFieldValue - * @param assistantSid - * @param fieldTypeSid + * @param AssistantSid + * @param FieldTypeSid * @param optional nil or *CreateFieldValueOpts - Optional Parameters: * @param "Language" (string) - An ISO language-country string of the value. * @param "SynonymOf" (string) - A value that indicates this field value is a synonym of. Empty if the value is not a synonym. * @param "Value" (string) - A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. @return PreviewUnderstandAssistantFieldTypeFieldValue */ -func (c *DefaultApiService) CreateFieldValue(assistantSid string, fieldTypeSid string, params *CreateFieldValueParams) (*PreviewUnderstandAssistantFieldTypeFieldValue, error) { +func (c *DefaultApiService) CreateFieldValue(AssistantSid string, FieldTypeSid string, params *CreateFieldValueParams) (*PreviewUnderstandAssistantFieldTypeFieldValue, error) { path := "/understand/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"FieldTypeSid"+"}", fieldTypeSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"FieldTypeSid"+"}", FieldTypeSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Language != nil { - data.Set("Language", *params.Language) + data.Set("Language", *params.Language) } if params != nil && params.SynonymOf != nil { - data.Set("SynonymOf", *params.SynonymOf) + data.Set("SynonymOf", *params.SynonymOf) } if params != nil && params.Value != nil { - data.Set("Value", *params.Value) + data.Set("Value", *params.Value) } @@ -701,11 +714,12 @@ Create a new Fleet for scoping of deployed devices within your account. func (c *DefaultApiService) CreateFleet(params *CreateFleetParams) (*PreviewDeployedDevicesFleet, error) { path := "/DeployedDevices/Fleets" + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -770,59 +784,60 @@ Host a phone number's capability on Twilio's platform. func (c *DefaultApiService) CreateHostedNumberOrder(params *CreateHostedNumberOrderParams) (*PreviewHostedNumbersHostedNumberOrder, error) { path := "/HostedNumbers/HostedNumberOrders" + data := url.Values{} headers := 0 if params != nil && params.AccountSid != nil { - data.Set("AccountSid", *params.AccountSid) + data.Set("AccountSid", *params.AccountSid) } if params != nil && params.AddressSid != nil { - data.Set("AddressSid", *params.AddressSid) + data.Set("AddressSid", *params.AddressSid) } if params != nil && params.CcEmails != nil { - data.Set("CcEmails", *params.CcEmails) + data.Set("CcEmails", strings.Join(*params.CcEmails, ",")) } if params != nil && params.Email != nil { - data.Set("Email", *params.Email) + data.Set("Email", *params.Email) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.PhoneNumber != nil { - data.Set("PhoneNumber", *params.PhoneNumber) + data.Set("PhoneNumber", *params.PhoneNumber) } if params != nil && params.SmsApplicationSid != nil { - data.Set("SmsApplicationSid", *params.SmsApplicationSid) + data.Set("SmsApplicationSid", *params.SmsApplicationSid) } if params != nil && params.SmsCapability != nil { - data.Set("SmsCapability", string(*params.SmsCapability)) + data.Set("SmsCapability", fmt.Sprint(*params.SmsCapability)) } if params != nil && params.SmsFallbackMethod != nil { - data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) + data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) } if params != nil && params.SmsFallbackUrl != nil { - data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) + data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) } if params != nil && params.SmsMethod != nil { - data.Set("SmsMethod", *params.SmsMethod) + data.Set("SmsMethod", *params.SmsMethod) } if params != nil && params.SmsUrl != nil { - data.Set("SmsUrl", *params.SmsUrl) + data.Set("SmsUrl", *params.SmsUrl) } if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) } if params != nil && params.StatusCallbackUrl != nil { - data.Set("StatusCallbackUrl", *params.StatusCallbackUrl) + data.Set("StatusCallbackUrl", *params.StatusCallbackUrl) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } if params != nil && params.VerificationDocumentSid != nil { - data.Set("VerificationDocumentSid", *params.VerificationDocumentSid) + data.Set("VerificationDocumentSid", *params.VerificationDocumentSid) } if params != nil && params.VerificationType != nil { - data.Set("VerificationType", *params.VerificationType) + data.Set("VerificationType", *params.VerificationType) } @@ -861,14 +876,15 @@ Install an Add-on for the Account specified. func (c *DefaultApiService) CreateInstalledAddOn(params *CreateInstalledAddOnParams) (*PreviewMarketplaceInstalledAddOn, error) { path := "/marketplace/InstalledAddOns" + data := url.Values{} headers := 0 if params != nil && params.AcceptTermsOfService != nil { - data.Set("AcceptTermsOfService", string(*params.AcceptTermsOfService)) + data.Set("AcceptTermsOfService", fmt.Sprint(*params.AcceptTermsOfService)) } if params != nil && params.AvailableAddOnSid != nil { - data.Set("AvailableAddOnSid", *params.AvailableAddOnSid) + data.Set("AvailableAddOnSid", *params.AvailableAddOnSid) } if params != nil && params.Configuration != nil { v, err := json.Marshal(params.Configuration) @@ -877,10 +893,10 @@ func (c *DefaultApiService) CreateInstalledAddOn(params *CreateInstalledAddOnPar return nil, err } - data.Set("Configuration", string(v)) + data.Set("Configuration", fmt.Sprint(v)) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -907,24 +923,25 @@ type CreateKeyParams struct { /* CreateKey Method for CreateKey Create a new Key credential in the Fleet, optionally giving it a friendly name and assigning to a Device. - * @param fleetSid + * @param FleetSid * @param optional nil or *CreateKeyOpts - Optional Parameters: * @param "DeviceSid" (string) - Provides the unique string identifier of an existing Device to become authenticated with this Key credential. * @param "FriendlyName" (string) - Provides a human readable descriptive text for this Key credential, up to 256 characters long. @return PreviewDeployedDevicesFleetKey */ -func (c *DefaultApiService) CreateKey(fleetSid string, params *CreateKeyParams) (*PreviewDeployedDevicesFleetKey, error) { +func (c *DefaultApiService) CreateKey(FleetSid string, params *CreateKeyParams) (*PreviewDeployedDevicesFleetKey, error) { path := "/DeployedDevices/Fleets/{FleetSid}/Keys" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path = strings.Replace(path, "{"+"FleetSid"+"}", FleetSid, -1) + data := url.Values{} headers := 0 if params != nil && params.DeviceSid != nil { - data.Set("DeviceSid", *params.DeviceSid) + data.Set("DeviceSid", *params.DeviceSid) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -950,24 +967,25 @@ type CreateModelBuildParams struct { /* CreateModelBuild Method for CreateModelBuild - * @param assistantSid + * @param AssistantSid * @param optional nil or *CreateModelBuildOpts - Optional Parameters: * @param "StatusCallback" (string) - * @param "UniqueName" (string) - A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. For example: v0.1 @return PreviewUnderstandAssistantModelBuild */ -func (c *DefaultApiService) CreateModelBuild(assistantSid string, params *CreateModelBuildParams) (*PreviewUnderstandAssistantModelBuild, error) { +func (c *DefaultApiService) CreateModelBuild(AssistantSid string, params *CreateModelBuildParams) (*PreviewUnderstandAssistantModelBuild, error) { path := "/understand/Assistants/{AssistantSid}/ModelBuilds" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + data := url.Values{} headers := 0 if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) + data.Set("StatusCallback", *params.StatusCallback) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -996,7 +1014,7 @@ type CreateQueryParams struct { /* CreateQuery Method for CreateQuery - * @param assistantSid The unique ID of the parent Assistant. + * @param AssistantSid The unique ID of the parent Assistant. * @param optional nil or *CreateQueryOpts - Optional Parameters: * @param "Field" (string) - Constraints the query to a given Field with an task. Useful when you know the Field you are expecting. It accepts one field in the format *task-unique-name-1*:*field-unique-name* * @param "Language" (string) - An ISO language-country string of the sample. @@ -1005,27 +1023,28 @@ CreateQuery Method for CreateQuery * @param "Tasks" (string) - Constraints the query to a set of tasks. Useful when you need to constrain the paths the user can take. Tasks should be comma separated *task-unique-name-1*, *task-unique-name-2* @return PreviewUnderstandAssistantQuery */ -func (c *DefaultApiService) CreateQuery(assistantSid string, params *CreateQueryParams) (*PreviewUnderstandAssistantQuery, error) { +func (c *DefaultApiService) CreateQuery(AssistantSid string, params *CreateQueryParams) (*PreviewUnderstandAssistantQuery, error) { path := "/understand/Assistants/{AssistantSid}/Queries" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Field != nil { - data.Set("Field", *params.Field) + data.Set("Field", *params.Field) } if params != nil && params.Language != nil { - data.Set("Language", *params.Language) + data.Set("Language", *params.Language) } if params != nil && params.ModelBuild != nil { - data.Set("ModelBuild", *params.ModelBuild) + data.Set("ModelBuild", *params.ModelBuild) } if params != nil && params.Query != nil { - data.Set("Query", *params.Query) + data.Set("Query", *params.Query) } if params != nil && params.Tasks != nil { - data.Set("Tasks", *params.Tasks) + data.Set("Tasks", *params.Tasks) } @@ -1075,38 +1094,39 @@ CreateRatePlan Method for CreateRatePlan func (c *DefaultApiService) CreateRatePlan(params *CreateRatePlanParams) (*PreviewWirelessRatePlan, error) { path := "/wireless/RatePlans" + data := url.Values{} headers := 0 if params != nil && params.CommandsEnabled != nil { - data.Set("CommandsEnabled", string(*params.CommandsEnabled)) + data.Set("CommandsEnabled", fmt.Sprint(*params.CommandsEnabled)) } if params != nil && params.DataEnabled != nil { - data.Set("DataEnabled", string(*params.DataEnabled)) + data.Set("DataEnabled", fmt.Sprint(*params.DataEnabled)) } if params != nil && params.DataLimit != nil { - data.Set("DataLimit", string(*params.DataLimit)) + data.Set("DataLimit", fmt.Sprint(*params.DataLimit)) } if params != nil && params.DataMetering != nil { - data.Set("DataMetering", *params.DataMetering) + data.Set("DataMetering", *params.DataMetering) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.InternationalRoaming != nil { - data.Set("InternationalRoaming", *params.InternationalRoaming) + data.Set("InternationalRoaming", strings.Join(*params.InternationalRoaming, ",")) } if params != nil && params.MessagingEnabled != nil { - data.Set("MessagingEnabled", string(*params.MessagingEnabled)) + data.Set("MessagingEnabled", fmt.Sprint(*params.MessagingEnabled)) } if params != nil && params.NationalRoamingEnabled != nil { - data.Set("NationalRoamingEnabled", string(*params.NationalRoamingEnabled)) + data.Set("NationalRoamingEnabled", fmt.Sprint(*params.NationalRoamingEnabled)) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } if params != nil && params.VoiceEnabled != nil { - data.Set("VoiceEnabled", string(*params.VoiceEnabled)) + data.Set("VoiceEnabled", fmt.Sprint(*params.VoiceEnabled)) } @@ -1133,30 +1153,31 @@ type CreateSampleParams struct { /* CreateSample Method for CreateSample - * @param assistantSid The unique ID of the Assistant. - * @param taskSid The unique ID of the Task associated with this Sample. + * @param AssistantSid The unique ID of the Assistant. + * @param TaskSid The unique ID of the Task associated with this Sample. * @param optional nil or *CreateSampleOpts - Optional Parameters: * @param "Language" (string) - An ISO language-country string of the sample. * @param "SourceChannel" (string) - The communication channel the sample was captured. It can be: *voice*, *sms*, *chat*, *alexa*, *google-assistant*, or *slack*. If not included the value will be null * @param "TaggedText" (string) - The text example of how end-users may express this task. The sample may contain Field tag blocks. @return PreviewUnderstandAssistantTaskSample */ -func (c *DefaultApiService) CreateSample(assistantSid string, taskSid string, params *CreateSampleParams) (*PreviewUnderstandAssistantTaskSample, error) { +func (c *DefaultApiService) CreateSample(AssistantSid string, TaskSid string, params *CreateSampleParams) (*PreviewUnderstandAssistantTaskSample, error) { path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", TaskSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Language != nil { - data.Set("Language", *params.Language) + data.Set("Language", *params.Language) } if params != nil && params.SourceChannel != nil { - data.Set("SourceChannel", *params.SourceChannel) + data.Set("SourceChannel", *params.SourceChannel) } if params != nil && params.TaggedText != nil { - data.Set("TaggedText", *params.TaggedText) + data.Set("TaggedText", *params.TaggedText) } @@ -1194,20 +1215,21 @@ CreateService Method for CreateService func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*PreviewSyncService, error) { path := "/Sync/Services" + data := url.Values{} headers := 0 if params != nil && params.AclEnabled != nil { - data.Set("AclEnabled", string(*params.AclEnabled)) + data.Set("AclEnabled", fmt.Sprint(*params.AclEnabled)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.ReachabilityWebhooksEnabled != nil { - data.Set("ReachabilityWebhooksEnabled", string(*params.ReachabilityWebhooksEnabled)) + data.Set("ReachabilityWebhooksEnabled", fmt.Sprint(*params.ReachabilityWebhooksEnabled)) } if params != nil && params.WebhookUrl != nil { - data.Set("WebhookUrl", *params.WebhookUrl) + data.Set("WebhookUrl", *params.WebhookUrl) } @@ -1232,20 +1254,21 @@ type CreateSyncListParams struct { /* CreateSyncList Method for CreateSyncList - * @param serviceSid + * @param ServiceSid * @param optional nil or *CreateSyncListOpts - Optional Parameters: * @param "UniqueName" (string) - @return PreviewSyncServiceSyncList */ -func (c *DefaultApiService) CreateSyncList(serviceSid string, params *CreateSyncListParams) (*PreviewSyncServiceSyncList, error) { +func (c *DefaultApiService) CreateSyncList(ServiceSid string, params *CreateSyncListParams) (*PreviewSyncServiceSyncList, error) { path := "/Sync/Services/{ServiceSid}/Lists" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -1270,16 +1293,17 @@ type CreateSyncListItemParams struct { /* CreateSyncListItem Method for CreateSyncListItem - * @param serviceSid - * @param listSid + * @param ServiceSid + * @param ListSid * @param optional nil or *CreateSyncListItemOpts - Optional Parameters: * @param "Data" (map[string]interface{}) - @return PreviewSyncServiceSyncListSyncListItem */ -func (c *DefaultApiService) CreateSyncListItem(serviceSid string, listSid string, params *CreateSyncListItemParams) (*PreviewSyncServiceSyncListSyncListItem, error) { +func (c *DefaultApiService) CreateSyncListItem(ServiceSid string, ListSid string, params *CreateSyncListItemParams) (*PreviewSyncServiceSyncListSyncListItem, error) { path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Items" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", ListSid, -1) + data := url.Values{} headers := 0 @@ -1291,7 +1315,7 @@ func (c *DefaultApiService) CreateSyncListItem(serviceSid string, listSid string return nil, err } - data.Set("Data", string(v)) + data.Set("Data", fmt.Sprint(v)) } @@ -1316,20 +1340,21 @@ type CreateSyncMapParams struct { /* CreateSyncMap Method for CreateSyncMap - * @param serviceSid + * @param ServiceSid * @param optional nil or *CreateSyncMapOpts - Optional Parameters: * @param "UniqueName" (string) - @return PreviewSyncServiceSyncMap */ -func (c *DefaultApiService) CreateSyncMap(serviceSid string, params *CreateSyncMapParams) (*PreviewSyncServiceSyncMap, error) { +func (c *DefaultApiService) CreateSyncMap(ServiceSid string, params *CreateSyncMapParams) (*PreviewSyncServiceSyncMap, error) { path := "/Sync/Services/{ServiceSid}/Maps" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -1355,17 +1380,18 @@ type CreateSyncMapItemParams struct { /* CreateSyncMapItem Method for CreateSyncMapItem - * @param serviceSid - * @param mapSid + * @param ServiceSid + * @param MapSid * @param optional nil or *CreateSyncMapItemOpts - Optional Parameters: * @param "Data" (map[string]interface{}) - * @param "Key" (string) - @return PreviewSyncServiceSyncMapSyncMapItem */ -func (c *DefaultApiService) CreateSyncMapItem(serviceSid string, mapSid string, params *CreateSyncMapItemParams) (*PreviewSyncServiceSyncMapSyncMapItem, error) { +func (c *DefaultApiService) CreateSyncMapItem(ServiceSid string, MapSid string, params *CreateSyncMapItemParams) (*PreviewSyncServiceSyncMapSyncMapItem, error) { path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Items" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", MapSid, -1) + data := url.Values{} headers := 0 @@ -1377,10 +1403,10 @@ func (c *DefaultApiService) CreateSyncMapItem(serviceSid string, mapSid string, return nil, err } - data.Set("Data", string(v)) + data.Set("Data", fmt.Sprint(v)) } if params != nil && params.Key != nil { - data.Set("Key", *params.Key) + data.Set("Key", *params.Key) } @@ -1408,7 +1434,7 @@ type CreateTaskParams struct { /* CreateTask Method for CreateTask - * @param assistantSid The unique ID of the Assistant. + * @param AssistantSid The unique ID of the Assistant. * @param optional nil or *CreateTaskOpts - Optional Parameters: * @param "Actions" (map[string]interface{}) - A user-provided JSON object encoded as a string to specify the actions for this task. It is optional and non-unique. * @param "ActionsUrl" (string) - User-provided HTTP endpoint where from the assistant fetches actions @@ -1416,9 +1442,10 @@ CreateTask Method for CreateTask * @param "UniqueName" (string) - A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. @return PreviewUnderstandAssistantTask */ -func (c *DefaultApiService) CreateTask(assistantSid string, params *CreateTaskParams) (*PreviewUnderstandAssistantTask, error) { +func (c *DefaultApiService) CreateTask(AssistantSid string, params *CreateTaskParams) (*PreviewUnderstandAssistantTask, error) { path := "/understand/Assistants/{AssistantSid}/Tasks" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + data := url.Values{} headers := 0 @@ -1430,16 +1457,16 @@ func (c *DefaultApiService) CreateTask(assistantSid string, params *CreateTaskPa return nil, err } - data.Set("Actions", string(v)) + data.Set("Actions", fmt.Sprint(v)) } if params != nil && params.ActionsUrl != nil { - data.Set("ActionsUrl", *params.ActionsUrl) + data.Set("ActionsUrl", *params.ActionsUrl) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -1460,13 +1487,14 @@ func (c *DefaultApiService) CreateTask(assistantSid string, params *CreateTaskPa /* DeleteAssistant Method for DeleteAssistant - * @param sid A 34 character string that uniquely identifies this resource. + * @param Sid A 34 character string that uniquely identifies this resource. */ -func (c *DefaultApiService) DeleteAssistant(sid string) (error) { +func (c *DefaultApiService) DeleteAssistant(Sid string) (error) { path := "/understand/Assistants/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1484,15 +1512,16 @@ func (c *DefaultApiService) DeleteAssistant(sid string) (error) { /* DeleteCertificate Method for DeleteCertificate Unregister a specific Certificate credential from the Fleet, effectively disallowing any inbound client connections that are presenting it. - * @param fleetSid - * @param sid Provides a 34 character string that uniquely identifies the requested Certificate credential resource. + * @param FleetSid + * @param Sid Provides a 34 character string that uniquely identifies the requested Certificate credential resource. */ -func (c *DefaultApiService) DeleteCertificate(fleetSid string, sid string) (error) { +func (c *DefaultApiService) DeleteCertificate(FleetSid string, Sid string) (error) { path := "/DeployedDevices/Fleets/{FleetSid}/Certificates/{Sid}" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"FleetSid"+"}", FleetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1510,15 +1539,16 @@ func (c *DefaultApiService) DeleteCertificate(fleetSid string, sid string) (erro /* DeleteDeployment Method for DeleteDeployment Delete a specific Deployment from the Fleet, leaving associated devices effectively undeployed. - * @param fleetSid - * @param sid Provides a 34 character string that uniquely identifies the requested Deployment resource. + * @param FleetSid + * @param Sid Provides a 34 character string that uniquely identifies the requested Deployment resource. */ -func (c *DefaultApiService) DeleteDeployment(fleetSid string, sid string) (error) { +func (c *DefaultApiService) DeleteDeployment(FleetSid string, Sid string) (error) { path := "/DeployedDevices/Fleets/{FleetSid}/Deployments/{Sid}" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"FleetSid"+"}", FleetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1536,15 +1566,16 @@ func (c *DefaultApiService) DeleteDeployment(fleetSid string, sid string) (error /* DeleteDevice Method for DeleteDevice Delete a specific Device from the Fleet, also removing it from associated Deployments. - * @param fleetSid - * @param sid Provides a 34 character string that uniquely identifies the requested Device resource. + * @param FleetSid + * @param Sid Provides a 34 character string that uniquely identifies the requested Device resource. */ -func (c *DefaultApiService) DeleteDevice(fleetSid string, sid string) (error) { +func (c *DefaultApiService) DeleteDevice(FleetSid string, Sid string) (error) { path := "/DeployedDevices/Fleets/{FleetSid}/Devices/{Sid}" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"FleetSid"+"}", FleetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1560,27 +1591,28 @@ func (c *DefaultApiService) DeleteDevice(fleetSid string, sid string) (error) { } // DeleteDocumentParams Optional parameters for the method 'DeleteDocument' type DeleteDocumentParams struct { - If-Match *string `json:"If-Match,omitempty"` + IfMatch *string `json:"If-Match,omitempty"` } /* DeleteDocument Method for DeleteDocument - * @param serviceSid - * @param sid + * @param ServiceSid + * @param Sid * @param optional nil or *DeleteDocumentOpts - Optional Parameters: * @param "If-Match" (string) - The If-Match HTTP request header */ -func (c *DefaultApiService) DeleteDocument(serviceSid string, sid string, params *DeleteDocumentParams) (error) { +func (c *DefaultApiService) DeleteDocument(ServiceSid string, Sid string, params *DeleteDocumentParams) (error) { path := "/Sync/Services/{ServiceSid}/Documents/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := make(map[string]interface{}) - if params != nil && params.If-Match != nil { - headers["If-Match"] = *params.If-Match + if params != nil && params.IfMatch != nil { + headers["IfMatch"] = *params.IfMatch } resp, err := c.client.Delete(c.baseURL+path, data, headers) @@ -1596,17 +1628,18 @@ func (c *DefaultApiService) DeleteDocument(serviceSid string, sid string, params /* DeleteDocumentPermission Method for DeleteDocumentPermission Delete a specific Sync Document Permission. - * @param serviceSid - * @param documentSid Identifier of the Sync Document. Either a SID or a unique name. - * @param identity Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. + * @param ServiceSid + * @param DocumentSid Identifier of the Sync Document. Either a SID or a unique name. + * @param Identity Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. */ -func (c *DefaultApiService) DeleteDocumentPermission(serviceSid string, documentSid string, identity string) (error) { +func (c *DefaultApiService) DeleteDocumentPermission(ServiceSid string, DocumentSid string, Identity string) (error) { path := "/Sync/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"DocumentSid"+"}", documentSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"DocumentSid"+"}", DocumentSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", Identity, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1623,17 +1656,18 @@ func (c *DefaultApiService) DeleteDocumentPermission(serviceSid string, document /* DeleteField Method for DeleteField - * @param assistantSid The unique ID of the Assistant. - * @param taskSid The unique ID of the Task associated with this Field. - * @param sid A 34 character string that uniquely identifies this resource. + * @param AssistantSid The unique ID of the Assistant. + * @param TaskSid The unique ID of the Task associated with this Field. + * @param Sid A 34 character string that uniquely identifies this resource. */ -func (c *DefaultApiService) DeleteField(assistantSid string, taskSid string, sid string) (error) { +func (c *DefaultApiService) DeleteField(AssistantSid string, TaskSid string, Sid string) (error) { path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", TaskSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1650,15 +1684,16 @@ func (c *DefaultApiService) DeleteField(assistantSid string, taskSid string, sid /* DeleteFieldType Method for DeleteFieldType - * @param assistantSid - * @param sid + * @param AssistantSid + * @param Sid */ -func (c *DefaultApiService) DeleteFieldType(assistantSid string, sid string) (error) { +func (c *DefaultApiService) DeleteFieldType(AssistantSid string, Sid string) (error) { path := "/understand/Assistants/{AssistantSid}/FieldTypes/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1675,17 +1710,18 @@ func (c *DefaultApiService) DeleteFieldType(assistantSid string, sid string) (er /* DeleteFieldValue Method for DeleteFieldValue - * @param assistantSid - * @param fieldTypeSid - * @param sid + * @param AssistantSid + * @param FieldTypeSid + * @param Sid */ -func (c *DefaultApiService) DeleteFieldValue(assistantSid string, fieldTypeSid string, sid string) (error) { +func (c *DefaultApiService) DeleteFieldValue(AssistantSid string, FieldTypeSid string, Sid string) (error) { path := "/understand/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"FieldTypeSid"+"}", fieldTypeSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"FieldTypeSid"+"}", FieldTypeSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1703,13 +1739,14 @@ func (c *DefaultApiService) DeleteFieldValue(assistantSid string, fieldTypeSid s /* DeleteFleet Method for DeleteFleet Delete a specific Fleet from your account, also destroys all nested resources: Devices, Deployments, Certificates, Keys. - * @param sid Provides a 34 character string that uniquely identifies the requested Fleet resource. + * @param Sid Provides a 34 character string that uniquely identifies the requested Fleet resource. */ -func (c *DefaultApiService) DeleteFleet(sid string) (error) { +func (c *DefaultApiService) DeleteFleet(Sid string) (error) { path := "/DeployedDevices/Fleets/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1727,13 +1764,14 @@ func (c *DefaultApiService) DeleteFleet(sid string) (error) { /* DeleteHostedNumberOrder Method for DeleteHostedNumberOrder Cancel the HostedNumberOrder (only available when the status is in `received`). - * @param sid A 34 character string that uniquely identifies this HostedNumberOrder. + * @param Sid A 34 character string that uniquely identifies this HostedNumberOrder. */ -func (c *DefaultApiService) DeleteHostedNumberOrder(sid string) (error) { +func (c *DefaultApiService) DeleteHostedNumberOrder(Sid string) (error) { path := "/HostedNumbers/HostedNumberOrders/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1751,13 +1789,14 @@ func (c *DefaultApiService) DeleteHostedNumberOrder(sid string) (error) { /* DeleteInstalledAddOn Method for DeleteInstalledAddOn Remove an Add-on installation from your account - * @param sid The SID of the InstalledAddOn resource to delete. + * @param Sid The SID of the InstalledAddOn resource to delete. */ -func (c *DefaultApiService) DeleteInstalledAddOn(sid string) (error) { +func (c *DefaultApiService) DeleteInstalledAddOn(Sid string) (error) { path := "/marketplace/InstalledAddOns/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1774,13 +1813,14 @@ func (c *DefaultApiService) DeleteInstalledAddOn(sid string) (error) { /* DeleteJob Method for DeleteJob - * @param jobSid The unique string that that we created to identify the Bulk Export job + * @param JobSid The unique string that that we created to identify the Bulk Export job */ -func (c *DefaultApiService) DeleteJob(jobSid string) (error) { +func (c *DefaultApiService) DeleteJob(JobSid string) (error) { path := "/BulkExports/Exports/Jobs/{JobSid}" - path = strings.Replace(path, "{"+"JobSid"+"}", jobSid, -1) + path = strings.Replace(path, "{"+"JobSid"+"}", JobSid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1798,15 +1838,16 @@ func (c *DefaultApiService) DeleteJob(jobSid string) (error) { /* DeleteKey Method for DeleteKey Delete a specific Key credential from the Fleet, effectively disallowing any inbound client connections that are presenting it. - * @param fleetSid - * @param sid Provides a 34 character string that uniquely identifies the requested Key credential resource. + * @param FleetSid + * @param Sid Provides a 34 character string that uniquely identifies the requested Key credential resource. */ -func (c *DefaultApiService) DeleteKey(fleetSid string, sid string) (error) { +func (c *DefaultApiService) DeleteKey(FleetSid string, Sid string) (error) { path := "/DeployedDevices/Fleets/{FleetSid}/Keys/{Sid}" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"FleetSid"+"}", FleetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1823,15 +1864,16 @@ func (c *DefaultApiService) DeleteKey(fleetSid string, sid string) (error) { /* DeleteModelBuild Method for DeleteModelBuild - * @param assistantSid - * @param sid + * @param AssistantSid + * @param Sid */ -func (c *DefaultApiService) DeleteModelBuild(assistantSid string, sid string) (error) { +func (c *DefaultApiService) DeleteModelBuild(AssistantSid string, Sid string) (error) { path := "/understand/Assistants/{AssistantSid}/ModelBuilds/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1848,15 +1890,16 @@ func (c *DefaultApiService) DeleteModelBuild(assistantSid string, sid string) (e /* DeleteQuery Method for DeleteQuery - * @param assistantSid The unique ID of the Assistant. - * @param sid A 34 character string that uniquely identifies this resource. + * @param AssistantSid The unique ID of the Assistant. + * @param Sid A 34 character string that uniquely identifies this resource. */ -func (c *DefaultApiService) DeleteQuery(assistantSid string, sid string) (error) { +func (c *DefaultApiService) DeleteQuery(AssistantSid string, Sid string) (error) { path := "/understand/Assistants/{AssistantSid}/Queries/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1873,13 +1916,14 @@ func (c *DefaultApiService) DeleteQuery(assistantSid string, sid string) (error) /* DeleteRatePlan Method for DeleteRatePlan - * @param sid + * @param Sid */ -func (c *DefaultApiService) DeleteRatePlan(sid string) (error) { +func (c *DefaultApiService) DeleteRatePlan(Sid string) (error) { path := "/wireless/RatePlans/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1896,17 +1940,18 @@ func (c *DefaultApiService) DeleteRatePlan(sid string) (error) { /* DeleteSample Method for DeleteSample - * @param assistantSid The unique ID of the Assistant. - * @param taskSid The unique ID of the Task associated with this Sample. - * @param sid A 34 character string that uniquely identifies this resource. + * @param AssistantSid The unique ID of the Assistant. + * @param TaskSid The unique ID of the Task associated with this Sample. + * @param Sid A 34 character string that uniquely identifies this resource. */ -func (c *DefaultApiService) DeleteSample(assistantSid string, taskSid string, sid string) (error) { +func (c *DefaultApiService) DeleteSample(AssistantSid string, TaskSid string, Sid string) (error) { path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", TaskSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1923,13 +1968,14 @@ func (c *DefaultApiService) DeleteSample(assistantSid string, taskSid string, si /* DeleteService Method for DeleteService - * @param sid + * @param Sid */ -func (c *DefaultApiService) DeleteService(sid string) (error) { +func (c *DefaultApiService) DeleteService(Sid string) (error) { path := "/Sync/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1946,15 +1992,16 @@ func (c *DefaultApiService) DeleteService(sid string) (error) { /* DeleteSyncList Method for DeleteSyncList - * @param serviceSid - * @param sid + * @param ServiceSid + * @param Sid */ -func (c *DefaultApiService) DeleteSyncList(serviceSid string, sid string) (error) { +func (c *DefaultApiService) DeleteSyncList(ServiceSid string, Sid string) (error) { path := "/Sync/Services/{ServiceSid}/Lists/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1970,29 +2017,30 @@ func (c *DefaultApiService) DeleteSyncList(serviceSid string, sid string) (error } // DeleteSyncListItemParams Optional parameters for the method 'DeleteSyncListItem' type DeleteSyncListItemParams struct { - If-Match *string `json:"If-Match,omitempty"` + IfMatch *string `json:"If-Match,omitempty"` } /* DeleteSyncListItem Method for DeleteSyncListItem - * @param serviceSid - * @param listSid - * @param index + * @param ServiceSid + * @param ListSid + * @param Index * @param optional nil or *DeleteSyncListItemOpts - Optional Parameters: * @param "If-Match" (string) - The If-Match HTTP request header */ -func (c *DefaultApiService) DeleteSyncListItem(serviceSid string, listSid string, index int32, params *DeleteSyncListItemParams) (error) { +func (c *DefaultApiService) DeleteSyncListItem(ServiceSid string, ListSid string, Index int32, params *DeleteSyncListItemParams) (error) { path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) - path = strings.Replace(path, "{"+"Index"+"}", index, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", ListSid, -1) + path = strings.Replace(path, "{"+"Index"+"}", fmt.Sprint(Index), -1) + data := url.Values{} headers := make(map[string]interface{}) - if params != nil && params.If-Match != nil { - headers["If-Match"] = *params.If-Match + if params != nil && params.IfMatch != nil { + headers["IfMatch"] = *params.IfMatch } resp, err := c.client.Delete(c.baseURL+path, data, headers) @@ -2008,17 +2056,18 @@ func (c *DefaultApiService) DeleteSyncListItem(serviceSid string, listSid string /* DeleteSyncListPermission Method for DeleteSyncListPermission Delete a specific Sync List Permission. - * @param serviceSid - * @param listSid Identifier of the Sync List. Either a SID or a unique name. - * @param identity Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. + * @param ServiceSid + * @param ListSid Identifier of the Sync List. Either a SID or a unique name. + * @param Identity Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. */ -func (c *DefaultApiService) DeleteSyncListPermission(serviceSid string, listSid string, identity string) (error) { +func (c *DefaultApiService) DeleteSyncListPermission(ServiceSid string, ListSid string, Identity string) (error) { path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", ListSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", Identity, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -2035,15 +2084,16 @@ func (c *DefaultApiService) DeleteSyncListPermission(serviceSid string, listSid /* DeleteSyncMap Method for DeleteSyncMap - * @param serviceSid - * @param sid + * @param ServiceSid + * @param Sid */ -func (c *DefaultApiService) DeleteSyncMap(serviceSid string, sid string) (error) { +func (c *DefaultApiService) DeleteSyncMap(ServiceSid string, Sid string) (error) { path := "/Sync/Services/{ServiceSid}/Maps/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -2059,29 +2109,30 @@ func (c *DefaultApiService) DeleteSyncMap(serviceSid string, sid string) (error) } // DeleteSyncMapItemParams Optional parameters for the method 'DeleteSyncMapItem' type DeleteSyncMapItemParams struct { - If-Match *string `json:"If-Match,omitempty"` + IfMatch *string `json:"If-Match,omitempty"` } /* DeleteSyncMapItem Method for DeleteSyncMapItem - * @param serviceSid - * @param mapSid - * @param key + * @param ServiceSid + * @param MapSid + * @param Key * @param optional nil or *DeleteSyncMapItemOpts - Optional Parameters: * @param "If-Match" (string) - The If-Match HTTP request header */ -func (c *DefaultApiService) DeleteSyncMapItem(serviceSid string, mapSid string, key string, params *DeleteSyncMapItemParams) (error) { +func (c *DefaultApiService) DeleteSyncMapItem(ServiceSid string, MapSid string, Key string, params *DeleteSyncMapItemParams) (error) { path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) - path = strings.Replace(path, "{"+"Key"+"}", key, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", MapSid, -1) + path = strings.Replace(path, "{"+"Key"+"}", Key, -1) + data := url.Values{} headers := make(map[string]interface{}) - if params != nil && params.If-Match != nil { - headers["If-Match"] = *params.If-Match + if params != nil && params.IfMatch != nil { + headers["IfMatch"] = *params.IfMatch } resp, err := c.client.Delete(c.baseURL+path, data, headers) @@ -2097,17 +2148,18 @@ func (c *DefaultApiService) DeleteSyncMapItem(serviceSid string, mapSid string, /* DeleteSyncMapPermission Method for DeleteSyncMapPermission Delete a specific Sync Map Permission. - * @param serviceSid - * @param mapSid Identifier of the Sync Map. Either a SID or a unique name. - * @param identity Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. + * @param ServiceSid + * @param MapSid Identifier of the Sync Map. Either a SID or a unique name. + * @param Identity Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. */ -func (c *DefaultApiService) DeleteSyncMapPermission(serviceSid string, mapSid string, identity string) (error) { +func (c *DefaultApiService) DeleteSyncMapPermission(ServiceSid string, MapSid string, Identity string) (error) { path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", MapSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", Identity, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -2124,15 +2176,16 @@ func (c *DefaultApiService) DeleteSyncMapPermission(serviceSid string, mapSid st /* DeleteTask Method for DeleteTask - * @param assistantSid The unique ID of the Assistant. - * @param sid A 34 character string that uniquely identifies this resource. + * @param AssistantSid The unique ID of the Assistant. + * @param Sid A 34 character string that uniquely identifies this resource. */ -func (c *DefaultApiService) DeleteTask(assistantSid string, sid string) (error) { +func (c *DefaultApiService) DeleteTask(AssistantSid string, Sid string) (error) { path := "/understand/Assistants/{AssistantSid}/Tasks/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -2149,14 +2202,15 @@ func (c *DefaultApiService) DeleteTask(assistantSid string, sid string) (error) /* FetchAssistant Method for FetchAssistant - * @param sid A 34 character string that uniquely identifies this resource. + * @param Sid A 34 character string that uniquely identifies this resource. @return PreviewUnderstandAssistant */ -func (c *DefaultApiService) FetchAssistant(sid string) (*PreviewUnderstandAssistant, error) { +func (c *DefaultApiService) FetchAssistant(Sid string) (*PreviewUnderstandAssistant, error) { path := "/understand/Assistants/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -2178,14 +2232,15 @@ func (c *DefaultApiService) FetchAssistant(sid string) (*PreviewUnderstandAssist /* FetchAssistantFallbackActions Method for FetchAssistantFallbackActions - * @param assistantSid + * @param AssistantSid @return PreviewUnderstandAssistantAssistantFallbackActions */ -func (c *DefaultApiService) FetchAssistantFallbackActions(assistantSid string) (*PreviewUnderstandAssistantAssistantFallbackActions, error) { +func (c *DefaultApiService) FetchAssistantFallbackActions(AssistantSid string) (*PreviewUnderstandAssistantAssistantFallbackActions, error) { path := "/understand/Assistants/{AssistantSid}/FallbackActions" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -2207,14 +2262,15 @@ func (c *DefaultApiService) FetchAssistantFallbackActions(assistantSid string) ( /* FetchAssistantInitiationActions Method for FetchAssistantInitiationActions - * @param assistantSid + * @param AssistantSid @return PreviewUnderstandAssistantAssistantInitiationActions */ -func (c *DefaultApiService) FetchAssistantInitiationActions(assistantSid string) (*PreviewUnderstandAssistantAssistantInitiationActions, error) { +func (c *DefaultApiService) FetchAssistantInitiationActions(AssistantSid string) (*PreviewUnderstandAssistantAssistantInitiationActions, error) { path := "/understand/Assistants/{AssistantSid}/InitiationActions" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -2237,14 +2293,15 @@ func (c *DefaultApiService) FetchAssistantInitiationActions(assistantSid string) /* FetchAuthorizationDocument Method for FetchAuthorizationDocument Fetch a specific AuthorizationDocument. - * @param sid A 34 character string that uniquely identifies this AuthorizationDocument. + * @param Sid A 34 character string that uniquely identifies this AuthorizationDocument. @return PreviewHostedNumbersAuthorizationDocument */ -func (c *DefaultApiService) FetchAuthorizationDocument(sid string) (*PreviewHostedNumbersAuthorizationDocument, error) { +func (c *DefaultApiService) FetchAuthorizationDocument(Sid string) (*PreviewHostedNumbersAuthorizationDocument, error) { path := "/HostedNumbers/AuthorizationDocuments/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -2267,14 +2324,15 @@ func (c *DefaultApiService) FetchAuthorizationDocument(sid string) (*PreviewHost /* FetchAvailableAddOn Method for FetchAvailableAddOn Fetch an instance of an Add-on currently available to be installed. - * @param sid The SID of the AvailableAddOn resource to fetch. + * @param Sid The SID of the AvailableAddOn resource to fetch. @return PreviewMarketplaceAvailableAddOn */ -func (c *DefaultApiService) FetchAvailableAddOn(sid string) (*PreviewMarketplaceAvailableAddOn, error) { +func (c *DefaultApiService) FetchAvailableAddOn(Sid string) (*PreviewMarketplaceAvailableAddOn, error) { path := "/marketplace/AvailableAddOns/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -2297,16 +2355,17 @@ func (c *DefaultApiService) FetchAvailableAddOn(sid string) (*PreviewMarketplace /* FetchAvailableAddOnExtension Method for FetchAvailableAddOnExtension Fetch an instance of an Extension for the Available Add-on. - * @param availableAddOnSid The SID of the AvailableAddOn resource with the extension to fetch. - * @param sid The SID of the AvailableAddOn Extension resource to fetch. + * @param AvailableAddOnSid The SID of the AvailableAddOn resource with the extension to fetch. + * @param Sid The SID of the AvailableAddOn Extension resource to fetch. @return PreviewMarketplaceAvailableAddOnAvailableAddOnExtension */ -func (c *DefaultApiService) FetchAvailableAddOnExtension(availableAddOnSid string, sid string) (*PreviewMarketplaceAvailableAddOnAvailableAddOnExtension, error) { +func (c *DefaultApiService) FetchAvailableAddOnExtension(AvailableAddOnSid string, Sid string) (*PreviewMarketplaceAvailableAddOnAvailableAddOnExtension, error) { path := "/marketplace/AvailableAddOns/{AvailableAddOnSid}/Extensions/{Sid}" - path = strings.Replace(path, "{"+"AvailableAddOnSid"+"}", availableAddOnSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AvailableAddOnSid"+"}", AvailableAddOnSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -2329,14 +2388,15 @@ func (c *DefaultApiService) FetchAvailableAddOnExtension(availableAddOnSid strin /* FetchBrandedChannel Method for FetchBrandedChannel Fetch a specific Branded Channel. - * @param sid The unique SID identifier of the Branded Channel. + * @param Sid The unique SID identifier of the Branded Channel. @return PreviewTrustedCommsBrandedChannel */ -func (c *DefaultApiService) FetchBrandedChannel(sid string) (*PreviewTrustedCommsBrandedChannel, error) { +func (c *DefaultApiService) FetchBrandedChannel(Sid string) (*PreviewTrustedCommsBrandedChannel, error) { path := "/TrustedComms/BrandedChannels/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -2357,7 +2417,7 @@ func (c *DefaultApiService) FetchBrandedChannel(sid string) (*PreviewTrustedComm } // FetchBrandsInformationParams Optional parameters for the method 'FetchBrandsInformation' type FetchBrandsInformationParams struct { - If-None-Match *string `json:"If-None-Match,omitempty"` + IfNoneMatch *string `json:"If-None-Match,omitempty"` } /* @@ -2370,12 +2430,13 @@ Retrieve the newest available BrandInformation func (c *DefaultApiService) FetchBrandsInformation(params *FetchBrandsInformationParams) (*PreviewTrustedCommsBrandsInformation, error) { path := "/TrustedComms/BrandsInformation" + data := url.Values{} headers := make(map[string]interface{}) - if params != nil && params.If-None-Match != nil { - headers["If-None-Match"] = *params.If-None-Match + if params != nil && params.IfNoneMatch != nil { + headers["IfNoneMatch"] = *params.IfNoneMatch } resp, err := c.client.Get(c.baseURL+path, data, headers) @@ -2396,16 +2457,17 @@ func (c *DefaultApiService) FetchBrandsInformation(params *FetchBrandsInformatio /* FetchCertificate Method for FetchCertificate Fetch information about a specific Certificate credential in the Fleet. - * @param fleetSid - * @param sid Provides a 34 character string that uniquely identifies the requested Certificate credential resource. + * @param FleetSid + * @param Sid Provides a 34 character string that uniquely identifies the requested Certificate credential resource. @return PreviewDeployedDevicesFleetCertificate */ -func (c *DefaultApiService) FetchCertificate(fleetSid string, sid string) (*PreviewDeployedDevicesFleetCertificate, error) { +func (c *DefaultApiService) FetchCertificate(FleetSid string, Sid string) (*PreviewDeployedDevicesFleetCertificate, error) { path := "/DeployedDevices/Fleets/{FleetSid}/Certificates/{Sid}" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"FleetSid"+"}", FleetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -2427,14 +2489,15 @@ func (c *DefaultApiService) FetchCertificate(fleetSid string, sid string) (*Prev /* FetchCommand Method for FetchCommand - * @param sid + * @param Sid @return PreviewWirelessCommand */ -func (c *DefaultApiService) FetchCommand(sid string) (*PreviewWirelessCommand, error) { +func (c *DefaultApiService) FetchCommand(Sid string) (*PreviewWirelessCommand, error) { path := "/wireless/Commands/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -2455,7 +2518,7 @@ func (c *DefaultApiService) FetchCommand(sid string) (*PreviewWirelessCommand, e } // FetchCpsParams Optional parameters for the method 'FetchCps' type FetchCpsParams struct { - X-Xcnam-Sensitive-Phone-Number *string `json:"X-Xcnam-Sensitive-Phone-Number,omitempty"` + XXcnamSensitivePhoneNumber *string `json:"X-Xcnam-Sensitive-Phone-Number,omitempty"` } /* @@ -2468,12 +2531,13 @@ Fetch a specific Call Placement Service (CPS) given a phone number via `X-X func (c *DefaultApiService) FetchCps(params *FetchCpsParams) (*PreviewTrustedCommsCps, error) { path := "/TrustedComms/CPS" + data := url.Values{} headers := make(map[string]interface{}) - if params != nil && params.X-Xcnam-Sensitive-Phone-Number != nil { - headers["X-Xcnam-Sensitive-Phone-Number"] = *params.X-Xcnam-Sensitive-Phone-Number + if params != nil && params.XXcnamSensitivePhoneNumber != nil { + headers["XXcnamSensitivePhoneNumber"] = *params.XXcnamSensitivePhoneNumber } resp, err := c.client.Get(c.baseURL+path, data, headers) @@ -2492,8 +2556,8 @@ func (c *DefaultApiService) FetchCps(params *FetchCpsParams) (*PreviewTrustedCom } // FetchCurrentCallParams Optional parameters for the method 'FetchCurrentCall' type FetchCurrentCallParams struct { - X-Xcnam-Sensitive-Phone-Number-From *string `json:"X-Xcnam-Sensitive-Phone-Number-From,omitempty"` - X-Xcnam-Sensitive-Phone-Number-To *string `json:"X-Xcnam-Sensitive-Phone-Number-To,omitempty"` + XXcnamSensitivePhoneNumberFrom *string `json:"X-Xcnam-Sensitive-Phone-Number-From,omitempty"` + XXcnamSensitivePhoneNumberTo *string `json:"X-Xcnam-Sensitive-Phone-Number-To,omitempty"` } /* @@ -2507,15 +2571,16 @@ Retrieve a current call given the originating and terminating number via `X func (c *DefaultApiService) FetchCurrentCall(params *FetchCurrentCallParams) (*PreviewTrustedCommsCurrentCall, error) { path := "/TrustedComms/CurrentCall" + data := url.Values{} headers := make(map[string]interface{}) - if params != nil && params.X-Xcnam-Sensitive-Phone-Number-From != nil { - headers["X-Xcnam-Sensitive-Phone-Number-From"] = *params.X-Xcnam-Sensitive-Phone-Number-From + if params != nil && params.XXcnamSensitivePhoneNumberFrom != nil { + headers["XXcnamSensitivePhoneNumberFrom"] = *params.XXcnamSensitivePhoneNumberFrom } - if params != nil && params.X-Xcnam-Sensitive-Phone-Number-To != nil { - headers["X-Xcnam-Sensitive-Phone-Number-To"] = *params.X-Xcnam-Sensitive-Phone-Number-To + if params != nil && params.XXcnamSensitivePhoneNumberTo != nil { + headers["XXcnamSensitivePhoneNumberTo"] = *params.XXcnamSensitivePhoneNumberTo } resp, err := c.client.Get(c.baseURL+path, data, headers) @@ -2536,15 +2601,16 @@ func (c *DefaultApiService) FetchCurrentCall(params *FetchCurrentCallParams) (*P /* FetchDay Method for FetchDay Fetch a specific Day. - * @param resourceType The type of communication – Messages, Calls - * @param day The ISO 8601 format date of the resources in the file, for a UTC day + * @param ResourceType The type of communication – Messages, Calls + * @param Day The ISO 8601 format date of the resources in the file, for a UTC day */ -func (c *DefaultApiService) FetchDay(resourceType string, day string) (error) { +func (c *DefaultApiService) FetchDay(ResourceType string, Day string) (error) { path := "/BulkExports/Exports/{ResourceType}/Days/{Day}" - path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) - path = strings.Replace(path, "{"+"Day"+"}", day, -1) + path = strings.Replace(path, "{"+"ResourceType"+"}", ResourceType, -1) + path = strings.Replace(path, "{"+"Day"+"}", Day, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -2562,16 +2628,17 @@ func (c *DefaultApiService) FetchDay(resourceType string, day string) (error) { /* FetchDeployment Method for FetchDeployment Fetch information about a specific Deployment in the Fleet. - * @param fleetSid - * @param sid Provides a 34 character string that uniquely identifies the requested Deployment resource. + * @param FleetSid + * @param Sid Provides a 34 character string that uniquely identifies the requested Deployment resource. @return PreviewDeployedDevicesFleetDeployment */ -func (c *DefaultApiService) FetchDeployment(fleetSid string, sid string) (*PreviewDeployedDevicesFleetDeployment, error) { +func (c *DefaultApiService) FetchDeployment(FleetSid string, Sid string) (*PreviewDeployedDevicesFleetDeployment, error) { path := "/DeployedDevices/Fleets/{FleetSid}/Deployments/{Sid}" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"FleetSid"+"}", FleetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -2594,16 +2661,17 @@ func (c *DefaultApiService) FetchDeployment(fleetSid string, sid string) (*Previ /* FetchDevice Method for FetchDevice Fetch information about a specific Device in the Fleet. - * @param fleetSid - * @param sid Provides a 34 character string that uniquely identifies the requested Device resource. + * @param FleetSid + * @param Sid Provides a 34 character string that uniquely identifies the requested Device resource. @return PreviewDeployedDevicesFleetDevice */ -func (c *DefaultApiService) FetchDevice(fleetSid string, sid string) (*PreviewDeployedDevicesFleetDevice, error) { +func (c *DefaultApiService) FetchDevice(FleetSid string, Sid string) (*PreviewDeployedDevicesFleetDevice, error) { path := "/DeployedDevices/Fleets/{FleetSid}/Devices/{Sid}" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"FleetSid"+"}", FleetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -2625,16 +2693,17 @@ func (c *DefaultApiService) FetchDevice(fleetSid string, sid string) (*PreviewDe /* FetchDialogue Method for FetchDialogue - * @param assistantSid - * @param sid + * @param AssistantSid + * @param Sid @return PreviewUnderstandAssistantDialogue */ -func (c *DefaultApiService) FetchDialogue(assistantSid string, sid string) (*PreviewUnderstandAssistantDialogue, error) { +func (c *DefaultApiService) FetchDialogue(AssistantSid string, Sid string) (*PreviewUnderstandAssistantDialogue, error) { path := "/understand/Assistants/{AssistantSid}/Dialogues/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -2656,16 +2725,17 @@ func (c *DefaultApiService) FetchDialogue(assistantSid string, sid string) (*Pre /* FetchDocument Method for FetchDocument - * @param serviceSid - * @param sid + * @param ServiceSid + * @param Sid @return PreviewSyncServiceDocument */ -func (c *DefaultApiService) FetchDocument(serviceSid string, sid string) (*PreviewSyncServiceDocument, error) { +func (c *DefaultApiService) FetchDocument(ServiceSid string, Sid string) (*PreviewSyncServiceDocument, error) { path := "/Sync/Services/{ServiceSid}/Documents/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -2688,18 +2758,19 @@ func (c *DefaultApiService) FetchDocument(serviceSid string, sid string) (*Previ /* FetchDocumentPermission Method for FetchDocumentPermission Fetch a specific Sync Document Permission. - * @param serviceSid - * @param documentSid Identifier of the Sync Document. Either a SID or a unique name. - * @param identity Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. + * @param ServiceSid + * @param DocumentSid Identifier of the Sync Document. Either a SID or a unique name. + * @param Identity Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. @return PreviewSyncServiceDocumentDocumentPermission */ -func (c *DefaultApiService) FetchDocumentPermission(serviceSid string, documentSid string, identity string) (*PreviewSyncServiceDocumentDocumentPermission, error) { +func (c *DefaultApiService) FetchDocumentPermission(ServiceSid string, DocumentSid string, Identity string) (*PreviewSyncServiceDocumentDocumentPermission, error) { path := "/Sync/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"DocumentSid"+"}", documentSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"DocumentSid"+"}", DocumentSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", Identity, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -2722,14 +2793,15 @@ func (c *DefaultApiService) FetchDocumentPermission(serviceSid string, documentS /* FetchExport Method for FetchExport Fetch a specific Export. - * @param resourceType The type of communication – Messages, Calls + * @param ResourceType The type of communication – Messages, Calls @return PreviewBulkExportsExport */ -func (c *DefaultApiService) FetchExport(resourceType string) (*PreviewBulkExportsExport, error) { +func (c *DefaultApiService) FetchExport(ResourceType string) (*PreviewBulkExportsExport, error) { path := "/BulkExports/Exports/{ResourceType}" - path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + path = strings.Replace(path, "{"+"ResourceType"+"}", ResourceType, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -2752,14 +2824,15 @@ func (c *DefaultApiService) FetchExport(resourceType string) (*PreviewBulkExport /* FetchExportConfiguration Method for FetchExportConfiguration Fetch a specific Export Configuration. - * @param resourceType The type of communication – Messages, Calls + * @param ResourceType The type of communication – Messages, Calls @return PreviewBulkExportsExportConfiguration */ -func (c *DefaultApiService) FetchExportConfiguration(resourceType string) (*PreviewBulkExportsExportConfiguration, error) { +func (c *DefaultApiService) FetchExportConfiguration(ResourceType string) (*PreviewBulkExportsExportConfiguration, error) { path := "/BulkExports/Exports/{ResourceType}/Configuration" - path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + path = strings.Replace(path, "{"+"ResourceType"+"}", ResourceType, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -2781,18 +2854,19 @@ func (c *DefaultApiService) FetchExportConfiguration(resourceType string) (*Prev /* FetchField Method for FetchField - * @param assistantSid The unique ID of the Assistant. - * @param taskSid The unique ID of the Task associated with this Field. - * @param sid A 34 character string that uniquely identifies this resource. + * @param AssistantSid The unique ID of the Assistant. + * @param TaskSid The unique ID of the Task associated with this Field. + * @param Sid A 34 character string that uniquely identifies this resource. @return PreviewUnderstandAssistantTaskField */ -func (c *DefaultApiService) FetchField(assistantSid string, taskSid string, sid string) (*PreviewUnderstandAssistantTaskField, error) { +func (c *DefaultApiService) FetchField(AssistantSid string, TaskSid string, Sid string) (*PreviewUnderstandAssistantTaskField, error) { path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", TaskSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -2814,16 +2888,17 @@ func (c *DefaultApiService) FetchField(assistantSid string, taskSid string, sid /* FetchFieldType Method for FetchFieldType - * @param assistantSid - * @param sid + * @param AssistantSid + * @param Sid @return PreviewUnderstandAssistantFieldType */ -func (c *DefaultApiService) FetchFieldType(assistantSid string, sid string) (*PreviewUnderstandAssistantFieldType, error) { +func (c *DefaultApiService) FetchFieldType(AssistantSid string, Sid string) (*PreviewUnderstandAssistantFieldType, error) { path := "/understand/Assistants/{AssistantSid}/FieldTypes/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -2845,18 +2920,19 @@ func (c *DefaultApiService) FetchFieldType(assistantSid string, sid string) (*Pr /* FetchFieldValue Method for FetchFieldValue - * @param assistantSid - * @param fieldTypeSid - * @param sid + * @param AssistantSid + * @param FieldTypeSid + * @param Sid @return PreviewUnderstandAssistantFieldTypeFieldValue */ -func (c *DefaultApiService) FetchFieldValue(assistantSid string, fieldTypeSid string, sid string) (*PreviewUnderstandAssistantFieldTypeFieldValue, error) { +func (c *DefaultApiService) FetchFieldValue(AssistantSid string, FieldTypeSid string, Sid string) (*PreviewUnderstandAssistantFieldTypeFieldValue, error) { path := "/understand/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"FieldTypeSid"+"}", fieldTypeSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"FieldTypeSid"+"}", FieldTypeSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -2879,14 +2955,15 @@ func (c *DefaultApiService) FetchFieldValue(assistantSid string, fieldTypeSid st /* FetchFleet Method for FetchFleet Fetch information about a specific Fleet in your account. - * @param sid Provides a 34 character string that uniquely identifies the requested Fleet resource. + * @param Sid Provides a 34 character string that uniquely identifies the requested Fleet resource. @return PreviewDeployedDevicesFleet */ -func (c *DefaultApiService) FetchFleet(sid string) (*PreviewDeployedDevicesFleet, error) { +func (c *DefaultApiService) FetchFleet(Sid string) (*PreviewDeployedDevicesFleet, error) { path := "/DeployedDevices/Fleets/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -2909,14 +2986,15 @@ func (c *DefaultApiService) FetchFleet(sid string) (*PreviewDeployedDevicesFleet /* FetchHostedNumberOrder Method for FetchHostedNumberOrder Fetch a specific HostedNumberOrder. - * @param sid A 34 character string that uniquely identifies this HostedNumberOrder. + * @param Sid A 34 character string that uniquely identifies this HostedNumberOrder. @return PreviewHostedNumbersHostedNumberOrder */ -func (c *DefaultApiService) FetchHostedNumberOrder(sid string) (*PreviewHostedNumbersHostedNumberOrder, error) { +func (c *DefaultApiService) FetchHostedNumberOrder(Sid string) (*PreviewHostedNumbersHostedNumberOrder, error) { path := "/HostedNumbers/HostedNumberOrders/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -2939,14 +3017,15 @@ func (c *DefaultApiService) FetchHostedNumberOrder(sid string) (*PreviewHostedNu /* FetchInstalledAddOn Method for FetchInstalledAddOn Fetch an instance of an Add-on currently installed on this Account. - * @param sid The SID of the InstalledAddOn resource to fetch. + * @param Sid The SID of the InstalledAddOn resource to fetch. @return PreviewMarketplaceInstalledAddOn */ -func (c *DefaultApiService) FetchInstalledAddOn(sid string) (*PreviewMarketplaceInstalledAddOn, error) { +func (c *DefaultApiService) FetchInstalledAddOn(Sid string) (*PreviewMarketplaceInstalledAddOn, error) { path := "/marketplace/InstalledAddOns/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -2969,16 +3048,17 @@ func (c *DefaultApiService) FetchInstalledAddOn(sid string) (*PreviewMarketplace /* FetchInstalledAddOnExtension Method for FetchInstalledAddOnExtension Fetch an instance of an Extension for the Installed Add-on. - * @param installedAddOnSid The SID of the InstalledAddOn resource with the extension to fetch. - * @param sid The SID of the InstalledAddOn Extension resource to fetch. + * @param InstalledAddOnSid The SID of the InstalledAddOn resource with the extension to fetch. + * @param Sid The SID of the InstalledAddOn Extension resource to fetch. @return PreviewMarketplaceInstalledAddOnInstalledAddOnExtension */ -func (c *DefaultApiService) FetchInstalledAddOnExtension(installedAddOnSid string, sid string) (*PreviewMarketplaceInstalledAddOnInstalledAddOnExtension, error) { +func (c *DefaultApiService) FetchInstalledAddOnExtension(InstalledAddOnSid string, Sid string) (*PreviewMarketplaceInstalledAddOnInstalledAddOnExtension, error) { path := "/marketplace/InstalledAddOns/{InstalledAddOnSid}/Extensions/{Sid}" - path = strings.Replace(path, "{"+"InstalledAddOnSid"+"}", installedAddOnSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"InstalledAddOnSid"+"}", InstalledAddOnSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -3000,14 +3080,15 @@ func (c *DefaultApiService) FetchInstalledAddOnExtension(installedAddOnSid strin /* FetchJob Method for FetchJob - * @param jobSid + * @param JobSid @return PreviewBulkExportsExportJob */ -func (c *DefaultApiService) FetchJob(jobSid string) (*PreviewBulkExportsExportJob, error) { +func (c *DefaultApiService) FetchJob(JobSid string) (*PreviewBulkExportsExportJob, error) { path := "/BulkExports/Exports/Jobs/{JobSid}" - path = strings.Replace(path, "{"+"JobSid"+"}", jobSid, -1) + path = strings.Replace(path, "{"+"JobSid"+"}", JobSid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -3030,16 +3111,17 @@ func (c *DefaultApiService) FetchJob(jobSid string) (*PreviewBulkExportsExportJo /* FetchKey Method for FetchKey Fetch information about a specific Key credential in the Fleet. - * @param fleetSid - * @param sid Provides a 34 character string that uniquely identifies the requested Key credential resource. + * @param FleetSid + * @param Sid Provides a 34 character string that uniquely identifies the requested Key credential resource. @return PreviewDeployedDevicesFleetKey */ -func (c *DefaultApiService) FetchKey(fleetSid string, sid string) (*PreviewDeployedDevicesFleetKey, error) { +func (c *DefaultApiService) FetchKey(FleetSid string, Sid string) (*PreviewDeployedDevicesFleetKey, error) { path := "/DeployedDevices/Fleets/{FleetSid}/Keys/{Sid}" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"FleetSid"+"}", FleetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -3061,16 +3143,17 @@ func (c *DefaultApiService) FetchKey(fleetSid string, sid string) (*PreviewDeplo /* FetchModelBuild Method for FetchModelBuild - * @param assistantSid - * @param sid + * @param AssistantSid + * @param Sid @return PreviewUnderstandAssistantModelBuild */ -func (c *DefaultApiService) FetchModelBuild(assistantSid string, sid string) (*PreviewUnderstandAssistantModelBuild, error) { +func (c *DefaultApiService) FetchModelBuild(AssistantSid string, Sid string) (*PreviewUnderstandAssistantModelBuild, error) { path := "/understand/Assistants/{AssistantSid}/ModelBuilds/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -3092,16 +3175,17 @@ func (c *DefaultApiService) FetchModelBuild(assistantSid string, sid string) (*P /* FetchQuery Method for FetchQuery - * @param assistantSid The unique ID of the Assistant. - * @param sid A 34 character string that uniquely identifies this resource. + * @param AssistantSid The unique ID of the Assistant. + * @param Sid A 34 character string that uniquely identifies this resource. @return PreviewUnderstandAssistantQuery */ -func (c *DefaultApiService) FetchQuery(assistantSid string, sid string) (*PreviewUnderstandAssistantQuery, error) { +func (c *DefaultApiService) FetchQuery(AssistantSid string, Sid string) (*PreviewUnderstandAssistantQuery, error) { path := "/understand/Assistants/{AssistantSid}/Queries/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -3123,14 +3207,15 @@ func (c *DefaultApiService) FetchQuery(assistantSid string, sid string) (*Previe /* FetchRatePlan Method for FetchRatePlan - * @param sid + * @param Sid @return PreviewWirelessRatePlan */ -func (c *DefaultApiService) FetchRatePlan(sid string) (*PreviewWirelessRatePlan, error) { +func (c *DefaultApiService) FetchRatePlan(Sid string) (*PreviewWirelessRatePlan, error) { path := "/wireless/RatePlans/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -3152,18 +3237,19 @@ func (c *DefaultApiService) FetchRatePlan(sid string) (*PreviewWirelessRatePlan, /* FetchSample Method for FetchSample - * @param assistantSid The unique ID of the Assistant. - * @param taskSid The unique ID of the Task associated with this Sample. - * @param sid A 34 character string that uniquely identifies this resource. + * @param AssistantSid The unique ID of the Assistant. + * @param TaskSid The unique ID of the Task associated with this Sample. + * @param Sid A 34 character string that uniquely identifies this resource. @return PreviewUnderstandAssistantTaskSample */ -func (c *DefaultApiService) FetchSample(assistantSid string, taskSid string, sid string) (*PreviewUnderstandAssistantTaskSample, error) { +func (c *DefaultApiService) FetchSample(AssistantSid string, TaskSid string, Sid string) (*PreviewUnderstandAssistantTaskSample, error) { path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", TaskSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -3185,14 +3271,15 @@ func (c *DefaultApiService) FetchSample(assistantSid string, taskSid string, sid /* FetchService Method for FetchService - * @param sid + * @param Sid @return PreviewSyncService */ -func (c *DefaultApiService) FetchService(sid string) (*PreviewSyncService, error) { +func (c *DefaultApiService) FetchService(Sid string) (*PreviewSyncService, error) { path := "/Sync/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -3214,14 +3301,15 @@ func (c *DefaultApiService) FetchService(sid string) (*PreviewSyncService, error /* FetchSim Method for FetchSim - * @param sid + * @param Sid @return PreviewWirelessSim */ -func (c *DefaultApiService) FetchSim(sid string) (*PreviewWirelessSim, error) { +func (c *DefaultApiService) FetchSim(Sid string) (*PreviewWirelessSim, error) { path := "/wireless/Sims/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -3244,14 +3332,15 @@ func (c *DefaultApiService) FetchSim(sid string) (*PreviewWirelessSim, error) { /* FetchStyleSheet Method for FetchStyleSheet Returns Style sheet JSON object for this Assistant - * @param assistantSid The unique ID of the Assistant + * @param AssistantSid The unique ID of the Assistant @return PreviewUnderstandAssistantStyleSheet */ -func (c *DefaultApiService) FetchStyleSheet(assistantSid string) (*PreviewUnderstandAssistantStyleSheet, error) { +func (c *DefaultApiService) FetchStyleSheet(AssistantSid string) (*PreviewUnderstandAssistantStyleSheet, error) { path := "/understand/Assistants/{AssistantSid}/StyleSheet" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -3273,16 +3362,17 @@ func (c *DefaultApiService) FetchStyleSheet(assistantSid string) (*PreviewUnders /* FetchSyncList Method for FetchSyncList - * @param serviceSid - * @param sid + * @param ServiceSid + * @param Sid @return PreviewSyncServiceSyncList */ -func (c *DefaultApiService) FetchSyncList(serviceSid string, sid string) (*PreviewSyncServiceSyncList, error) { +func (c *DefaultApiService) FetchSyncList(ServiceSid string, Sid string) (*PreviewSyncServiceSyncList, error) { path := "/Sync/Services/{ServiceSid}/Lists/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -3304,18 +3394,19 @@ func (c *DefaultApiService) FetchSyncList(serviceSid string, sid string) (*Previ /* FetchSyncListItem Method for FetchSyncListItem - * @param serviceSid - * @param listSid - * @param index + * @param ServiceSid + * @param ListSid + * @param Index @return PreviewSyncServiceSyncListSyncListItem */ -func (c *DefaultApiService) FetchSyncListItem(serviceSid string, listSid string, index int32) (*PreviewSyncServiceSyncListSyncListItem, error) { +func (c *DefaultApiService) FetchSyncListItem(ServiceSid string, ListSid string, Index int32) (*PreviewSyncServiceSyncListSyncListItem, error) { path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) - path = strings.Replace(path, "{"+"Index"+"}", index, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", ListSid, -1) + path = strings.Replace(path, "{"+"Index"+"}", fmt.Sprint(Index), -1) - data := 0 + + data := url.Values{} headers := 0 @@ -3338,18 +3429,19 @@ func (c *DefaultApiService) FetchSyncListItem(serviceSid string, listSid string, /* FetchSyncListPermission Method for FetchSyncListPermission Fetch a specific Sync List Permission. - * @param serviceSid - * @param listSid Identifier of the Sync List. Either a SID or a unique name. - * @param identity Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. + * @param ServiceSid + * @param ListSid Identifier of the Sync List. Either a SID or a unique name. + * @param Identity Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. @return PreviewSyncServiceSyncListSyncListPermission */ -func (c *DefaultApiService) FetchSyncListPermission(serviceSid string, listSid string, identity string) (*PreviewSyncServiceSyncListSyncListPermission, error) { +func (c *DefaultApiService) FetchSyncListPermission(ServiceSid string, ListSid string, Identity string) (*PreviewSyncServiceSyncListSyncListPermission, error) { path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", ListSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", Identity, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -3371,16 +3463,17 @@ func (c *DefaultApiService) FetchSyncListPermission(serviceSid string, listSid s /* FetchSyncMap Method for FetchSyncMap - * @param serviceSid - * @param sid + * @param ServiceSid + * @param Sid @return PreviewSyncServiceSyncMap */ -func (c *DefaultApiService) FetchSyncMap(serviceSid string, sid string) (*PreviewSyncServiceSyncMap, error) { +func (c *DefaultApiService) FetchSyncMap(ServiceSid string, Sid string) (*PreviewSyncServiceSyncMap, error) { path := "/Sync/Services/{ServiceSid}/Maps/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -3402,18 +3495,19 @@ func (c *DefaultApiService) FetchSyncMap(serviceSid string, sid string) (*Previe /* FetchSyncMapItem Method for FetchSyncMapItem - * @param serviceSid - * @param mapSid - * @param key + * @param ServiceSid + * @param MapSid + * @param Key @return PreviewSyncServiceSyncMapSyncMapItem */ -func (c *DefaultApiService) FetchSyncMapItem(serviceSid string, mapSid string, key string) (*PreviewSyncServiceSyncMapSyncMapItem, error) { +func (c *DefaultApiService) FetchSyncMapItem(ServiceSid string, MapSid string, Key string) (*PreviewSyncServiceSyncMapSyncMapItem, error) { path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) - path = strings.Replace(path, "{"+"Key"+"}", key, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", MapSid, -1) + path = strings.Replace(path, "{"+"Key"+"}", Key, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -3436,18 +3530,19 @@ func (c *DefaultApiService) FetchSyncMapItem(serviceSid string, mapSid string, k /* FetchSyncMapPermission Method for FetchSyncMapPermission Fetch a specific Sync Map Permission. - * @param serviceSid - * @param mapSid Identifier of the Sync Map. Either a SID or a unique name. - * @param identity Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. + * @param ServiceSid + * @param MapSid Identifier of the Sync Map. Either a SID or a unique name. + * @param Identity Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. @return PreviewSyncServiceSyncMapSyncMapPermission */ -func (c *DefaultApiService) FetchSyncMapPermission(serviceSid string, mapSid string, identity string) (*PreviewSyncServiceSyncMapSyncMapPermission, error) { +func (c *DefaultApiService) FetchSyncMapPermission(ServiceSid string, MapSid string, Identity string) (*PreviewSyncServiceSyncMapSyncMapPermission, error) { path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", MapSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", Identity, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -3469,16 +3564,17 @@ func (c *DefaultApiService) FetchSyncMapPermission(serviceSid string, mapSid str /* FetchTask Method for FetchTask - * @param assistantSid The unique ID of the Assistant. - * @param sid A 34 character string that uniquely identifies this resource. + * @param AssistantSid The unique ID of the Assistant. + * @param Sid A 34 character string that uniquely identifies this resource. @return PreviewUnderstandAssistantTask */ -func (c *DefaultApiService) FetchTask(assistantSid string, sid string) (*PreviewUnderstandAssistantTask, error) { +func (c *DefaultApiService) FetchTask(AssistantSid string, Sid string) (*PreviewUnderstandAssistantTask, error) { path := "/understand/Assistants/{AssistantSid}/Tasks/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -3501,16 +3597,17 @@ func (c *DefaultApiService) FetchTask(assistantSid string, sid string) (*Preview /* FetchTaskActions Method for FetchTaskActions Returns JSON actions for this Task. - * @param assistantSid The unique ID of the parent Assistant. - * @param taskSid The unique ID of the Task. + * @param AssistantSid The unique ID of the parent Assistant. + * @param TaskSid The unique ID of the Task. @return PreviewUnderstandAssistantTaskTaskActions */ -func (c *DefaultApiService) FetchTaskActions(assistantSid string, taskSid string) (*PreviewUnderstandAssistantTaskTaskActions, error) { +func (c *DefaultApiService) FetchTaskActions(AssistantSid string, TaskSid string) (*PreviewUnderstandAssistantTaskTaskActions, error) { path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Actions" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", TaskSid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -3532,16 +3629,17 @@ func (c *DefaultApiService) FetchTaskActions(assistantSid string, taskSid string /* FetchTaskStatistics Method for FetchTaskStatistics - * @param assistantSid The unique ID of the parent Assistant. - * @param taskSid The unique ID of the Task associated with this Field. + * @param AssistantSid The unique ID of the parent Assistant. + * @param TaskSid The unique ID of the Task associated with this Field. @return PreviewUnderstandAssistantTaskTaskStatistics */ -func (c *DefaultApiService) FetchTaskStatistics(assistantSid string, taskSid string) (*PreviewUnderstandAssistantTaskTaskStatistics, error) { +func (c *DefaultApiService) FetchTaskStatistics(AssistantSid string, TaskSid string) (*PreviewUnderstandAssistantTaskTaskStatistics, error) { path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Statistics" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", TaskSid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -3568,24 +3666,25 @@ type FetchUsageParams struct { /* FetchUsage Method for FetchUsage - * @param simSid + * @param SimSid * @param optional nil or *FetchUsageOpts - Optional Parameters: * @param "End" (string) - * @param "Start" (string) - @return PreviewWirelessSimUsage */ -func (c *DefaultApiService) FetchUsage(simSid string, params *FetchUsageParams) (*PreviewWirelessSimUsage, error) { +func (c *DefaultApiService) FetchUsage(SimSid string, params *FetchUsageParams) (*PreviewWirelessSimUsage, error) { path := "/wireless/Sims/{SimSid}/Usage" - path = strings.Replace(path, "{"+"SimSid"+"}", simSid, -1) + path = strings.Replace(path, "{"+"SimSid"+"}", SimSid, -1) + data := url.Values{} headers := 0 if params != nil && params.End != nil { - data.Set("End", *params.End) + data.Set("End", *params.End) } if params != nil && params.Start != nil { - data.Set("Start", *params.Start) + data.Set("Start", *params.Start) } @@ -3617,11 +3716,12 @@ ListAssistant Method for ListAssistant func (c *DefaultApiService) ListAssistant(params *ListAssistantParams) (*PreviewUnderstandAssistantReadResponse, error) { path := "/understand/Assistants" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -3658,17 +3758,18 @@ Retrieve a list of AuthorizationDocuments belonging to the account initiating th func (c *DefaultApiService) ListAuthorizationDocument(params *ListAuthorizationDocumentParams) (*PreviewHostedNumbersAuthorizationDocumentReadResponse, error) { path := "/HostedNumbers/AuthorizationDocuments" + data := url.Values{} headers := 0 if params != nil && params.Email != nil { - data.Set("Email", *params.Email) + data.Set("Email", *params.Email) } if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -3701,11 +3802,12 @@ Retrieve a list of Add-ons currently available to be installed. func (c *DefaultApiService) ListAvailableAddOn(params *ListAvailableAddOnParams) (*PreviewMarketplaceAvailableAddOnReadResponse, error) { path := "/marketplace/AvailableAddOns" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -3731,20 +3833,21 @@ type ListAvailableAddOnExtensionParams struct { /* ListAvailableAddOnExtension Method for ListAvailableAddOnExtension Retrieve a list of Extensions for the Available Add-on. - * @param availableAddOnSid The SID of the AvailableAddOn resource with the extensions to read. + * @param AvailableAddOnSid The SID of the AvailableAddOn resource with the extensions to read. * @param optional nil or *ListAvailableAddOnExtensionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse */ -func (c *DefaultApiService) ListAvailableAddOnExtension(availableAddOnSid string, params *ListAvailableAddOnExtensionParams) (*PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse, error) { +func (c *DefaultApiService) ListAvailableAddOnExtension(AvailableAddOnSid string, params *ListAvailableAddOnExtensionParams) (*PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse, error) { path := "/marketplace/AvailableAddOns/{AvailableAddOnSid}/Extensions" - path = strings.Replace(path, "{"+"AvailableAddOnSid"+"}", availableAddOnSid, -1) + path = strings.Replace(path, "{"+"AvailableAddOnSid"+"}", AvailableAddOnSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -3771,24 +3874,25 @@ type ListCertificateParams struct { /* ListCertificate Method for ListCertificate Retrieve a list of all Certificate credentials belonging to the Fleet. - * @param fleetSid + * @param FleetSid * @param optional nil or *ListCertificateOpts - Optional Parameters: * @param "DeviceSid" (string) - Filters the resulting list of Certificates by a unique string identifier of an authenticated Device. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return PreviewDeployedDevicesFleetCertificateReadResponse */ -func (c *DefaultApiService) ListCertificate(fleetSid string, params *ListCertificateParams) (*PreviewDeployedDevicesFleetCertificateReadResponse, error) { +func (c *DefaultApiService) ListCertificate(FleetSid string, params *ListCertificateParams) (*PreviewDeployedDevicesFleetCertificateReadResponse, error) { path := "/DeployedDevices/Fleets/{FleetSid}/Certificates" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path = strings.Replace(path, "{"+"FleetSid"+"}", FleetSid, -1) + data := url.Values{} headers := 0 if params != nil && params.DeviceSid != nil { - data.Set("DeviceSid", *params.DeviceSid) + data.Set("DeviceSid", *params.DeviceSid) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -3828,23 +3932,24 @@ ListCommand Method for ListCommand func (c *DefaultApiService) ListCommand(params *ListCommandParams) (*PreviewWirelessCommandReadResponse, error) { path := "/wireless/Commands" + data := url.Values{} headers := 0 if params != nil && params.Device != nil { - data.Set("Device", *params.Device) + data.Set("Device", *params.Device) } if params != nil && params.Sim != nil { - data.Set("Sim", *params.Sim) + data.Set("Sim", *params.Sim) } if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } if params != nil && params.Direction != nil { - data.Set("Direction", *params.Direction) + data.Set("Direction", *params.Direction) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -3870,20 +3975,21 @@ type ListDayParams struct { /* ListDay Method for ListDay Retrieve a list of all Days for a resource. - * @param resourceType The type of communication – Messages, Calls + * @param ResourceType The type of communication – Messages, Calls * @param optional nil or *ListDayOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return PreviewBulkExportsExportDayReadResponse */ -func (c *DefaultApiService) ListDay(resourceType string, params *ListDayParams) (*PreviewBulkExportsExportDayReadResponse, error) { +func (c *DefaultApiService) ListDay(ResourceType string, params *ListDayParams) (*PreviewBulkExportsExportDayReadResponse, error) { path := "/BulkExports/Exports/{ResourceType}/Days" - path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + path = strings.Replace(path, "{"+"ResourceType"+"}", ResourceType, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -3914,7 +4020,7 @@ type ListDependentHostedNumberOrderParams struct { /* ListDependentHostedNumberOrder Method for ListDependentHostedNumberOrder Retrieve a list of dependent HostedNumberOrders belonging to the AuthorizationDocument. - * @param signingDocumentSid + * @param SigningDocumentSid * @param optional nil or *ListDependentHostedNumberOrderOpts - Optional Parameters: * @param "Status" (string) - Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/api/phone-numbers/hosted-number-authorization-documents#status-values) for more information on each of these statuses. * @param "PhoneNumber" (string) - An E164 formatted phone number hosted by this HostedNumberOrder. @@ -3924,30 +4030,31 @@ Retrieve a list of dependent HostedNumberOrders belonging to the AuthorizationDo * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse */ -func (c *DefaultApiService) ListDependentHostedNumberOrder(signingDocumentSid string, params *ListDependentHostedNumberOrderParams) (*PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse, error) { +func (c *DefaultApiService) ListDependentHostedNumberOrder(SigningDocumentSid string, params *ListDependentHostedNumberOrderParams) (*PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse, error) { path := "/HostedNumbers/AuthorizationDocuments/{SigningDocumentSid}/DependentHostedNumberOrders" - path = strings.Replace(path, "{"+"SigningDocumentSid"+"}", signingDocumentSid, -1) + path = strings.Replace(path, "{"+"SigningDocumentSid"+"}", SigningDocumentSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } if params != nil && params.PhoneNumber != nil { - data.Set("PhoneNumber", *params.PhoneNumber) + data.Set("PhoneNumber", *params.PhoneNumber) } if params != nil && params.IncomingPhoneNumberSid != nil { - data.Set("IncomingPhoneNumberSid", *params.IncomingPhoneNumberSid) + data.Set("IncomingPhoneNumberSid", *params.IncomingPhoneNumberSid) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -3973,20 +4080,21 @@ type ListDeploymentParams struct { /* ListDeployment Method for ListDeployment Retrieve a list of all Deployments belonging to the Fleet. - * @param fleetSid + * @param FleetSid * @param optional nil or *ListDeploymentOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return PreviewDeployedDevicesFleetDeploymentReadResponse */ -func (c *DefaultApiService) ListDeployment(fleetSid string, params *ListDeploymentParams) (*PreviewDeployedDevicesFleetDeploymentReadResponse, error) { +func (c *DefaultApiService) ListDeployment(FleetSid string, params *ListDeploymentParams) (*PreviewDeployedDevicesFleetDeploymentReadResponse, error) { path := "/DeployedDevices/Fleets/{FleetSid}/Deployments" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path = strings.Replace(path, "{"+"FleetSid"+"}", FleetSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -4013,24 +4121,25 @@ type ListDeviceParams struct { /* ListDevice Method for ListDevice Retrieve a list of all Devices belonging to the Fleet. - * @param fleetSid + * @param FleetSid * @param optional nil or *ListDeviceOpts - Optional Parameters: * @param "DeploymentSid" (string) - Filters the resulting list of Devices by a unique string identifier of the Deployment they are associated with. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return PreviewDeployedDevicesFleetDeviceReadResponse */ -func (c *DefaultApiService) ListDevice(fleetSid string, params *ListDeviceParams) (*PreviewDeployedDevicesFleetDeviceReadResponse, error) { +func (c *DefaultApiService) ListDevice(FleetSid string, params *ListDeviceParams) (*PreviewDeployedDevicesFleetDeviceReadResponse, error) { path := "/DeployedDevices/Fleets/{FleetSid}/Devices" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path = strings.Replace(path, "{"+"FleetSid"+"}", FleetSid, -1) + data := url.Values{} headers := 0 if params != nil && params.DeploymentSid != nil { - data.Set("DeploymentSid", *params.DeploymentSid) + data.Set("DeploymentSid", *params.DeploymentSid) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -4055,20 +4164,21 @@ type ListDocumentParams struct { /* ListDocument Method for ListDocument - * @param serviceSid + * @param ServiceSid * @param optional nil or *ListDocumentOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return PreviewSyncServiceDocumentReadResponse */ -func (c *DefaultApiService) ListDocument(serviceSid string, params *ListDocumentParams) (*PreviewSyncServiceDocumentReadResponse, error) { +func (c *DefaultApiService) ListDocument(ServiceSid string, params *ListDocumentParams) (*PreviewSyncServiceDocumentReadResponse, error) { path := "/Sync/Services/{ServiceSid}/Documents" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -4094,22 +4204,23 @@ type ListDocumentPermissionParams struct { /* ListDocumentPermission Method for ListDocumentPermission Retrieve a list of all Permissions applying to a Sync Document. - * @param serviceSid - * @param documentSid Identifier of the Sync Document. Either a SID or a unique name. + * @param ServiceSid + * @param DocumentSid Identifier of the Sync Document. Either a SID or a unique name. * @param optional nil or *ListDocumentPermissionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return PreviewSyncServiceDocumentDocumentPermissionReadResponse */ -func (c *DefaultApiService) ListDocumentPermission(serviceSid string, documentSid string, params *ListDocumentPermissionParams) (*PreviewSyncServiceDocumentDocumentPermissionReadResponse, error) { +func (c *DefaultApiService) ListDocumentPermission(ServiceSid string, DocumentSid string, params *ListDocumentPermissionParams) (*PreviewSyncServiceDocumentDocumentPermissionReadResponse, error) { path := "/Sync/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"DocumentSid"+"}", documentSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"DocumentSid"+"}", DocumentSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -4134,20 +4245,21 @@ type ListExportCustomJobParams struct { /* ListExportCustomJob Method for ListExportCustomJob - * @param resourceType The type of communication – Messages, Calls + * @param ResourceType The type of communication – Messages, Calls * @param optional nil or *ListExportCustomJobOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return PreviewBulkExportsExportExportCustomJobReadResponse */ -func (c *DefaultApiService) ListExportCustomJob(resourceType string, params *ListExportCustomJobParams) (*PreviewBulkExportsExportExportCustomJobReadResponse, error) { +func (c *DefaultApiService) ListExportCustomJob(ResourceType string, params *ListExportCustomJobParams) (*PreviewBulkExportsExportExportCustomJobReadResponse, error) { path := "/BulkExports/Exports/{ResourceType}/Jobs" - path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + path = strings.Replace(path, "{"+"ResourceType"+"}", ResourceType, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -4172,22 +4284,23 @@ type ListFieldParams struct { /* ListField Method for ListField - * @param assistantSid The unique ID of the Assistant. - * @param taskSid The unique ID of the Task associated with this Field. + * @param AssistantSid The unique ID of the Assistant. + * @param TaskSid The unique ID of the Task associated with this Field. * @param optional nil or *ListFieldOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return PreviewUnderstandAssistantTaskFieldReadResponse */ -func (c *DefaultApiService) ListField(assistantSid string, taskSid string, params *ListFieldParams) (*PreviewUnderstandAssistantTaskFieldReadResponse, error) { +func (c *DefaultApiService) ListField(AssistantSid string, TaskSid string, params *ListFieldParams) (*PreviewUnderstandAssistantTaskFieldReadResponse, error) { path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", TaskSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -4212,20 +4325,21 @@ type ListFieldTypeParams struct { /* ListFieldType Method for ListFieldType - * @param assistantSid + * @param AssistantSid * @param optional nil or *ListFieldTypeOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return PreviewUnderstandAssistantFieldTypeReadResponse */ -func (c *DefaultApiService) ListFieldType(assistantSid string, params *ListFieldTypeParams) (*PreviewUnderstandAssistantFieldTypeReadResponse, error) { +func (c *DefaultApiService) ListFieldType(AssistantSid string, params *ListFieldTypeParams) (*PreviewUnderstandAssistantFieldTypeReadResponse, error) { path := "/understand/Assistants/{AssistantSid}/FieldTypes" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -4251,26 +4365,27 @@ type ListFieldValueParams struct { /* ListFieldValue Method for ListFieldValue - * @param assistantSid - * @param fieldTypeSid + * @param AssistantSid + * @param FieldTypeSid * @param optional nil or *ListFieldValueOpts - Optional Parameters: * @param "Language" (string) - An ISO language-country string of the value. For example: *en-US* * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return PreviewUnderstandAssistantFieldTypeFieldValueReadResponse */ -func (c *DefaultApiService) ListFieldValue(assistantSid string, fieldTypeSid string, params *ListFieldValueParams) (*PreviewUnderstandAssistantFieldTypeFieldValueReadResponse, error) { +func (c *DefaultApiService) ListFieldValue(AssistantSid string, FieldTypeSid string, params *ListFieldValueParams) (*PreviewUnderstandAssistantFieldTypeFieldValueReadResponse, error) { path := "/understand/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"FieldTypeSid"+"}", fieldTypeSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"FieldTypeSid"+"}", FieldTypeSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Language != nil { - data.Set("Language", *params.Language) + data.Set("Language", *params.Language) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -4303,11 +4418,12 @@ Retrieve a list of all Fleets belonging to your account. func (c *DefaultApiService) ListFleet(params *ListFleetParams) (*PreviewDeployedDevicesFleetReadResponse, error) { path := "/DeployedDevices/Fleets" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -4350,26 +4466,27 @@ Retrieve a list of HostedNumberOrders belonging to the account initiating the re func (c *DefaultApiService) ListHostedNumberOrder(params *ListHostedNumberOrderParams) (*PreviewHostedNumbersHostedNumberOrderReadResponse, error) { path := "/HostedNumbers/HostedNumberOrders" + data := url.Values{} headers := 0 if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } if params != nil && params.PhoneNumber != nil { - data.Set("PhoneNumber", *params.PhoneNumber) + data.Set("PhoneNumber", *params.PhoneNumber) } if params != nil && params.IncomingPhoneNumberSid != nil { - data.Set("IncomingPhoneNumberSid", *params.IncomingPhoneNumberSid) + data.Set("IncomingPhoneNumberSid", *params.IncomingPhoneNumberSid) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -4402,11 +4519,12 @@ Retrieve a list of Add-ons currently installed on this Account. func (c *DefaultApiService) ListInstalledAddOn(params *ListInstalledAddOnParams) (*PreviewMarketplaceInstalledAddOnReadResponse, error) { path := "/marketplace/InstalledAddOns" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -4432,20 +4550,21 @@ type ListInstalledAddOnExtensionParams struct { /* ListInstalledAddOnExtension Method for ListInstalledAddOnExtension Retrieve a list of Extensions for the Installed Add-on. - * @param installedAddOnSid The SID of the InstalledAddOn resource with the extensions to read. + * @param InstalledAddOnSid The SID of the InstalledAddOn resource with the extensions to read. * @param optional nil or *ListInstalledAddOnExtensionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse */ -func (c *DefaultApiService) ListInstalledAddOnExtension(installedAddOnSid string, params *ListInstalledAddOnExtensionParams) (*PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse, error) { +func (c *DefaultApiService) ListInstalledAddOnExtension(InstalledAddOnSid string, params *ListInstalledAddOnExtensionParams) (*PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse, error) { path := "/marketplace/InstalledAddOns/{InstalledAddOnSid}/Extensions" - path = strings.Replace(path, "{"+"InstalledAddOnSid"+"}", installedAddOnSid, -1) + path = strings.Replace(path, "{"+"InstalledAddOnSid"+"}", InstalledAddOnSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -4472,24 +4591,25 @@ type ListKeyParams struct { /* ListKey Method for ListKey Retrieve a list of all Keys credentials belonging to the Fleet. - * @param fleetSid + * @param FleetSid * @param optional nil or *ListKeyOpts - Optional Parameters: * @param "DeviceSid" (string) - Filters the resulting list of Keys by a unique string identifier of an authenticated Device. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return PreviewDeployedDevicesFleetKeyReadResponse */ -func (c *DefaultApiService) ListKey(fleetSid string, params *ListKeyParams) (*PreviewDeployedDevicesFleetKeyReadResponse, error) { +func (c *DefaultApiService) ListKey(FleetSid string, params *ListKeyParams) (*PreviewDeployedDevicesFleetKeyReadResponse, error) { path := "/DeployedDevices/Fleets/{FleetSid}/Keys" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) + path = strings.Replace(path, "{"+"FleetSid"+"}", FleetSid, -1) + data := url.Values{} headers := 0 if params != nil && params.DeviceSid != nil { - data.Set("DeviceSid", *params.DeviceSid) + data.Set("DeviceSid", *params.DeviceSid) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -4514,20 +4634,21 @@ type ListModelBuildParams struct { /* ListModelBuild Method for ListModelBuild - * @param assistantSid + * @param AssistantSid * @param optional nil or *ListModelBuildOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return PreviewUnderstandAssistantModelBuildReadResponse */ -func (c *DefaultApiService) ListModelBuild(assistantSid string, params *ListModelBuildParams) (*PreviewUnderstandAssistantModelBuildReadResponse, error) { +func (c *DefaultApiService) ListModelBuild(AssistantSid string, params *ListModelBuildParams) (*PreviewUnderstandAssistantModelBuildReadResponse, error) { path := "/understand/Assistants/{AssistantSid}/ModelBuilds" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -4555,7 +4676,7 @@ type ListQueryParams struct { /* ListQuery Method for ListQuery - * @param assistantSid The unique ID of the parent Assistant. + * @param AssistantSid The unique ID of the parent Assistant. * @param optional nil or *ListQueryOpts - Optional Parameters: * @param "Language" (string) - An ISO language-country string of the sample. * @param "ModelBuild" (string) - The Model Build Sid or unique name of the Model Build to be queried. @@ -4563,24 +4684,25 @@ ListQuery Method for ListQuery * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return PreviewUnderstandAssistantQueryReadResponse */ -func (c *DefaultApiService) ListQuery(assistantSid string, params *ListQueryParams) (*PreviewUnderstandAssistantQueryReadResponse, error) { +func (c *DefaultApiService) ListQuery(AssistantSid string, params *ListQueryParams) (*PreviewUnderstandAssistantQueryReadResponse, error) { path := "/understand/Assistants/{AssistantSid}/Queries" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Language != nil { - data.Set("Language", *params.Language) + data.Set("Language", *params.Language) } if params != nil && params.ModelBuild != nil { - data.Set("ModelBuild", *params.ModelBuild) + data.Set("ModelBuild", *params.ModelBuild) } if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -4612,11 +4734,12 @@ ListRatePlan Method for ListRatePlan func (c *DefaultApiService) ListRatePlan(params *ListRatePlanParams) (*PreviewWirelessRatePlanReadResponse, error) { path := "/wireless/RatePlans" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -4642,26 +4765,27 @@ type ListSampleParams struct { /* ListSample Method for ListSample - * @param assistantSid The unique ID of the Assistant. - * @param taskSid The unique ID of the Task associated with this Sample. + * @param AssistantSid The unique ID of the Assistant. + * @param TaskSid The unique ID of the Task associated with this Sample. * @param optional nil or *ListSampleOpts - Optional Parameters: * @param "Language" (string) - An ISO language-country string of the sample. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return PreviewUnderstandAssistantTaskSampleReadResponse */ -func (c *DefaultApiService) ListSample(assistantSid string, taskSid string, params *ListSampleParams) (*PreviewUnderstandAssistantTaskSampleReadResponse, error) { +func (c *DefaultApiService) ListSample(AssistantSid string, TaskSid string, params *ListSampleParams) (*PreviewUnderstandAssistantTaskSampleReadResponse, error) { path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", TaskSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Language != nil { - data.Set("Language", *params.Language) + data.Set("Language", *params.Language) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -4693,11 +4817,12 @@ ListService Method for ListService func (c *DefaultApiService) ListService(params *ListServiceParams) (*PreviewSyncServiceReadResponse, error) { path := "/Sync/Services" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -4739,26 +4864,27 @@ ListSim Method for ListSim func (c *DefaultApiService) ListSim(params *ListSimParams) (*PreviewWirelessSimReadResponse, error) { path := "/wireless/Sims" + data := url.Values{} headers := 0 if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } if params != nil && params.Iccid != nil { - data.Set("Iccid", *params.Iccid) + data.Set("Iccid", *params.Iccid) } if params != nil && params.RatePlan != nil { - data.Set("RatePlan", *params.RatePlan) + data.Set("RatePlan", *params.RatePlan) } if params != nil && params.EId != nil { - data.Set("EId", *params.EId) + data.Set("EId", *params.EId) } if params != nil && params.SimRegistrationCode != nil { - data.Set("SimRegistrationCode", *params.SimRegistrationCode) + data.Set("SimRegistrationCode", *params.SimRegistrationCode) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -4783,20 +4909,21 @@ type ListSyncListParams struct { /* ListSyncList Method for ListSyncList - * @param serviceSid + * @param ServiceSid * @param optional nil or *ListSyncListOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return PreviewSyncServiceSyncListReadResponse */ -func (c *DefaultApiService) ListSyncList(serviceSid string, params *ListSyncListParams) (*PreviewSyncServiceSyncListReadResponse, error) { +func (c *DefaultApiService) ListSyncList(ServiceSid string, params *ListSyncListParams) (*PreviewSyncServiceSyncListReadResponse, error) { path := "/Sync/Services/{ServiceSid}/Lists" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -4824,8 +4951,8 @@ type ListSyncListItemParams struct { /* ListSyncListItem Method for ListSyncListItem - * @param serviceSid - * @param listSid + * @param ServiceSid + * @param ListSid * @param optional nil or *ListSyncListItemOpts - Optional Parameters: * @param "Order" (string) - * @param "From" (string) - @@ -4833,25 +4960,26 @@ ListSyncListItem Method for ListSyncListItem * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return PreviewSyncServiceSyncListSyncListItemReadResponse */ -func (c *DefaultApiService) ListSyncListItem(serviceSid string, listSid string, params *ListSyncListItemParams) (*PreviewSyncServiceSyncListSyncListItemReadResponse, error) { +func (c *DefaultApiService) ListSyncListItem(ServiceSid string, ListSid string, params *ListSyncListItemParams) (*PreviewSyncServiceSyncListSyncListItemReadResponse, error) { path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Items" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", ListSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Order != nil { - data.Set("Order", *params.Order) + data.Set("Order", *params.Order) } if params != nil && params.From != nil { - data.Set("From", *params.From) + data.Set("From", *params.From) } if params != nil && params.Bounds != nil { - data.Set("Bounds", *params.Bounds) + data.Set("Bounds", *params.Bounds) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -4877,22 +5005,23 @@ type ListSyncListPermissionParams struct { /* ListSyncListPermission Method for ListSyncListPermission Retrieve a list of all Permissions applying to a Sync List. - * @param serviceSid - * @param listSid Identifier of the Sync List. Either a SID or a unique name. + * @param ServiceSid + * @param ListSid Identifier of the Sync List. Either a SID or a unique name. * @param optional nil or *ListSyncListPermissionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return PreviewSyncServiceSyncListSyncListPermissionReadResponse */ -func (c *DefaultApiService) ListSyncListPermission(serviceSid string, listSid string, params *ListSyncListPermissionParams) (*PreviewSyncServiceSyncListSyncListPermissionReadResponse, error) { +func (c *DefaultApiService) ListSyncListPermission(ServiceSid string, ListSid string, params *ListSyncListPermissionParams) (*PreviewSyncServiceSyncListSyncListPermissionReadResponse, error) { path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Permissions" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", ListSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -4917,20 +5046,21 @@ type ListSyncMapParams struct { /* ListSyncMap Method for ListSyncMap - * @param serviceSid + * @param ServiceSid * @param optional nil or *ListSyncMapOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return PreviewSyncServiceSyncMapReadResponse */ -func (c *DefaultApiService) ListSyncMap(serviceSid string, params *ListSyncMapParams) (*PreviewSyncServiceSyncMapReadResponse, error) { +func (c *DefaultApiService) ListSyncMap(ServiceSid string, params *ListSyncMapParams) (*PreviewSyncServiceSyncMapReadResponse, error) { path := "/Sync/Services/{ServiceSid}/Maps" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -4958,8 +5088,8 @@ type ListSyncMapItemParams struct { /* ListSyncMapItem Method for ListSyncMapItem - * @param serviceSid - * @param mapSid + * @param ServiceSid + * @param MapSid * @param optional nil or *ListSyncMapItemOpts - Optional Parameters: * @param "Order" (string) - * @param "From" (string) - @@ -4967,25 +5097,26 @@ ListSyncMapItem Method for ListSyncMapItem * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return PreviewSyncServiceSyncMapSyncMapItemReadResponse */ -func (c *DefaultApiService) ListSyncMapItem(serviceSid string, mapSid string, params *ListSyncMapItemParams) (*PreviewSyncServiceSyncMapSyncMapItemReadResponse, error) { +func (c *DefaultApiService) ListSyncMapItem(ServiceSid string, MapSid string, params *ListSyncMapItemParams) (*PreviewSyncServiceSyncMapSyncMapItemReadResponse, error) { path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Items" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", MapSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Order != nil { - data.Set("Order", *params.Order) + data.Set("Order", *params.Order) } if params != nil && params.From != nil { - data.Set("From", *params.From) + data.Set("From", *params.From) } if params != nil && params.Bounds != nil { - data.Set("Bounds", *params.Bounds) + data.Set("Bounds", *params.Bounds) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -5011,22 +5142,23 @@ type ListSyncMapPermissionParams struct { /* ListSyncMapPermission Method for ListSyncMapPermission Retrieve a list of all Permissions applying to a Sync Map. - * @param serviceSid - * @param mapSid Identifier of the Sync Map. Either a SID or a unique name. + * @param ServiceSid + * @param MapSid Identifier of the Sync Map. Either a SID or a unique name. * @param optional nil or *ListSyncMapPermissionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return PreviewSyncServiceSyncMapSyncMapPermissionReadResponse */ -func (c *DefaultApiService) ListSyncMapPermission(serviceSid string, mapSid string, params *ListSyncMapPermissionParams) (*PreviewSyncServiceSyncMapSyncMapPermissionReadResponse, error) { +func (c *DefaultApiService) ListSyncMapPermission(ServiceSid string, MapSid string, params *ListSyncMapPermissionParams) (*PreviewSyncServiceSyncMapSyncMapPermissionReadResponse, error) { path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Permissions" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", MapSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -5051,20 +5183,21 @@ type ListTaskParams struct { /* ListTask Method for ListTask - * @param assistantSid The unique ID of the Assistant. + * @param AssistantSid The unique ID of the Assistant. * @param optional nil or *ListTaskOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return PreviewUnderstandAssistantTaskReadResponse */ -func (c *DefaultApiService) ListTask(assistantSid string, params *ListTaskParams) (*PreviewUnderstandAssistantTaskReadResponse, error) { +func (c *DefaultApiService) ListTask(AssistantSid string, params *ListTaskParams) (*PreviewUnderstandAssistantTaskReadResponse, error) { path := "/understand/Assistants/{AssistantSid}/Tasks" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -5096,7 +5229,7 @@ type UpdateAssistantParams struct { /* UpdateAssistant Method for UpdateAssistant - * @param sid A 34 character string that uniquely identifies this resource. + * @param Sid A 34 character string that uniquely identifies this resource. * @param optional nil or *UpdateAssistantOpts - Optional Parameters: * @param "CallbackEvents" (string) - Space-separated list of callback events that will trigger callbacks. * @param "CallbackUrl" (string) - A user-provided URL to send event callbacks to. @@ -5108,18 +5241,19 @@ UpdateAssistant Method for UpdateAssistant * @param "UniqueName" (string) - A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. @return PreviewUnderstandAssistant */ -func (c *DefaultApiService) UpdateAssistant(sid string, params *UpdateAssistantParams) (*PreviewUnderstandAssistant, error) { +func (c *DefaultApiService) UpdateAssistant(Sid string, params *UpdateAssistantParams) (*PreviewUnderstandAssistant, error) { path := "/understand/Assistants/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.CallbackEvents != nil { - data.Set("CallbackEvents", *params.CallbackEvents) + data.Set("CallbackEvents", *params.CallbackEvents) } if params != nil && params.CallbackUrl != nil { - data.Set("CallbackUrl", *params.CallbackUrl) + data.Set("CallbackUrl", *params.CallbackUrl) } if params != nil && params.FallbackActions != nil { v, err := json.Marshal(params.FallbackActions) @@ -5128,10 +5262,10 @@ func (c *DefaultApiService) UpdateAssistant(sid string, params *UpdateAssistantP return nil, err } - data.Set("FallbackActions", string(v)) + data.Set("FallbackActions", fmt.Sprint(v)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.InitiationActions != nil { v, err := json.Marshal(params.InitiationActions) @@ -5140,10 +5274,10 @@ func (c *DefaultApiService) UpdateAssistant(sid string, params *UpdateAssistantP return nil, err } - data.Set("InitiationActions", string(v)) + data.Set("InitiationActions", fmt.Sprint(v)) } if params != nil && params.LogQueries != nil { - data.Set("LogQueries", string(*params.LogQueries)) + data.Set("LogQueries", fmt.Sprint(*params.LogQueries)) } if params != nil && params.StyleSheet != nil { v, err := json.Marshal(params.StyleSheet) @@ -5152,10 +5286,10 @@ func (c *DefaultApiService) UpdateAssistant(sid string, params *UpdateAssistantP return nil, err } - data.Set("StyleSheet", string(v)) + data.Set("StyleSheet", fmt.Sprint(v)) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -5180,14 +5314,15 @@ type UpdateAssistantFallbackActionsParams struct { /* UpdateAssistantFallbackActions Method for UpdateAssistantFallbackActions - * @param assistantSid + * @param AssistantSid * @param optional nil or *UpdateAssistantFallbackActionsOpts - Optional Parameters: * @param "FallbackActions" (map[string]interface{}) - @return PreviewUnderstandAssistantAssistantFallbackActions */ -func (c *DefaultApiService) UpdateAssistantFallbackActions(assistantSid string, params *UpdateAssistantFallbackActionsParams) (*PreviewUnderstandAssistantAssistantFallbackActions, error) { +func (c *DefaultApiService) UpdateAssistantFallbackActions(AssistantSid string, params *UpdateAssistantFallbackActionsParams) (*PreviewUnderstandAssistantAssistantFallbackActions, error) { path := "/understand/Assistants/{AssistantSid}/FallbackActions" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + data := url.Values{} headers := 0 @@ -5199,7 +5334,7 @@ func (c *DefaultApiService) UpdateAssistantFallbackActions(assistantSid string, return nil, err } - data.Set("FallbackActions", string(v)) + data.Set("FallbackActions", fmt.Sprint(v)) } @@ -5224,14 +5359,15 @@ type UpdateAssistantInitiationActionsParams struct { /* UpdateAssistantInitiationActions Method for UpdateAssistantInitiationActions - * @param assistantSid + * @param AssistantSid * @param optional nil or *UpdateAssistantInitiationActionsOpts - Optional Parameters: * @param "InitiationActions" (map[string]interface{}) - @return PreviewUnderstandAssistantAssistantInitiationActions */ -func (c *DefaultApiService) UpdateAssistantInitiationActions(assistantSid string, params *UpdateAssistantInitiationActionsParams) (*PreviewUnderstandAssistantAssistantInitiationActions, error) { +func (c *DefaultApiService) UpdateAssistantInitiationActions(AssistantSid string, params *UpdateAssistantInitiationActionsParams) (*PreviewUnderstandAssistantAssistantInitiationActions, error) { path := "/understand/Assistants/{AssistantSid}/InitiationActions" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + data := url.Values{} headers := 0 @@ -5243,7 +5379,7 @@ func (c *DefaultApiService) UpdateAssistantInitiationActions(assistantSid string return nil, err } - data.Set("InitiationActions", string(v)) + data.Set("InitiationActions", fmt.Sprint(v)) } @@ -5275,7 +5411,7 @@ type UpdateAuthorizationDocumentParams struct { /* UpdateAuthorizationDocument Method for UpdateAuthorizationDocument Updates a specific AuthorizationDocument. - * @param sid + * @param Sid * @param optional nil or *UpdateAuthorizationDocumentOpts - Optional Parameters: * @param "AddressSid" (string) - A 34 character string that uniquely identifies the Address resource that is associated with this AuthorizationDocument. * @param "CcEmails" ([]string) - Email recipients who will be informed when an Authorization Document has been sent and signed @@ -5286,33 +5422,34 @@ Updates a specific AuthorizationDocument. * @param "Status" (string) - Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/api/phone-numbers/hosted-number-authorization-documents#status-values) for more information on each of these statuses. @return PreviewHostedNumbersAuthorizationDocument */ -func (c *DefaultApiService) UpdateAuthorizationDocument(sid string, params *UpdateAuthorizationDocumentParams) (*PreviewHostedNumbersAuthorizationDocument, error) { +func (c *DefaultApiService) UpdateAuthorizationDocument(Sid string, params *UpdateAuthorizationDocumentParams) (*PreviewHostedNumbersAuthorizationDocument, error) { path := "/HostedNumbers/AuthorizationDocuments/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.AddressSid != nil { - data.Set("AddressSid", *params.AddressSid) + data.Set("AddressSid", *params.AddressSid) } if params != nil && params.CcEmails != nil { - data.Set("CcEmails", *params.CcEmails) + data.Set("CcEmails", strings.Join(*params.CcEmails, ",")) } if params != nil && params.ContactPhoneNumber != nil { - data.Set("ContactPhoneNumber", *params.ContactPhoneNumber) + data.Set("ContactPhoneNumber", *params.ContactPhoneNumber) } if params != nil && params.ContactTitle != nil { - data.Set("ContactTitle", *params.ContactTitle) + data.Set("ContactTitle", *params.ContactTitle) } if params != nil && params.Email != nil { - data.Set("Email", *params.Email) + data.Set("Email", *params.Email) } if params != nil && params.HostedNumberOrderSids != nil { - data.Set("HostedNumberOrderSids", *params.HostedNumberOrderSids) + data.Set("HostedNumberOrderSids", strings.Join(*params.HostedNumberOrderSids, ",")) } if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } @@ -5339,26 +5476,27 @@ type UpdateCertificateParams struct { /* UpdateCertificate Method for UpdateCertificate Update the given properties of a specific Certificate credential in the Fleet, giving it a friendly name or assigning to a Device. - * @param fleetSid - * @param sid Provides a 34 character string that uniquely identifies the requested Certificate credential resource. + * @param FleetSid + * @param Sid Provides a 34 character string that uniquely identifies the requested Certificate credential resource. * @param optional nil or *UpdateCertificateOpts - Optional Parameters: * @param "DeviceSid" (string) - Provides the unique string identifier of an existing Device to become authenticated with this Certificate credential. * @param "FriendlyName" (string) - Provides a human readable descriptive text for this Certificate credential, up to 256 characters long. @return PreviewDeployedDevicesFleetCertificate */ -func (c *DefaultApiService) UpdateCertificate(fleetSid string, sid string, params *UpdateCertificateParams) (*PreviewDeployedDevicesFleetCertificate, error) { +func (c *DefaultApiService) UpdateCertificate(FleetSid string, Sid string, params *UpdateCertificateParams) (*PreviewDeployedDevicesFleetCertificate, error) { path := "/DeployedDevices/Fleets/{FleetSid}/Certificates/{Sid}" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"FleetSid"+"}", FleetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.DeviceSid != nil { - data.Set("DeviceSid", *params.DeviceSid) + data.Set("DeviceSid", *params.DeviceSid) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -5385,26 +5523,27 @@ type UpdateDeploymentParams struct { /* UpdateDeployment Method for UpdateDeployment Update the given properties of a specific Deployment credential in the Fleet, giving it a friendly name or linking to a specific Twilio Sync service instance. - * @param fleetSid - * @param sid Provides a 34 character string that uniquely identifies the requested Deployment resource. + * @param FleetSid + * @param Sid Provides a 34 character string that uniquely identifies the requested Deployment resource. * @param optional nil or *UpdateDeploymentOpts - Optional Parameters: * @param "FriendlyName" (string) - Provides a human readable descriptive text for this Deployment, up to 64 characters long * @param "SyncServiceSid" (string) - Provides the unique string identifier of the Twilio Sync service instance that will be linked to and accessible by this Deployment. @return PreviewDeployedDevicesFleetDeployment */ -func (c *DefaultApiService) UpdateDeployment(fleetSid string, sid string, params *UpdateDeploymentParams) (*PreviewDeployedDevicesFleetDeployment, error) { +func (c *DefaultApiService) UpdateDeployment(FleetSid string, Sid string, params *UpdateDeploymentParams) (*PreviewDeployedDevicesFleetDeployment, error) { path := "/DeployedDevices/Fleets/{FleetSid}/Deployments/{Sid}" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"FleetSid"+"}", FleetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.SyncServiceSid != nil { - data.Set("SyncServiceSid", *params.SyncServiceSid) + data.Set("SyncServiceSid", *params.SyncServiceSid) } @@ -5433,8 +5572,8 @@ type UpdateDeviceParams struct { /* UpdateDevice Method for UpdateDevice Update the given properties of a specific Device in the Fleet, giving it a friendly name, assigning to a Deployment, or a human identity. - * @param fleetSid - * @param sid Provides a 34 character string that uniquely identifies the requested Device resource. + * @param FleetSid + * @param Sid Provides a 34 character string that uniquely identifies the requested Device resource. * @param optional nil or *UpdateDeviceOpts - Optional Parameters: * @param "DeploymentSid" (string) - Specifies the unique string identifier of the Deployment group that this Device is going to be associated with. * @param "Enabled" (bool) - @@ -5442,25 +5581,26 @@ Update the given properties of a specific Device in the Fleet, giving it a frien * @param "Identity" (string) - Provides an arbitrary string identifier representing a human user to be associated with this Device, up to 256 characters long. @return PreviewDeployedDevicesFleetDevice */ -func (c *DefaultApiService) UpdateDevice(fleetSid string, sid string, params *UpdateDeviceParams) (*PreviewDeployedDevicesFleetDevice, error) { +func (c *DefaultApiService) UpdateDevice(FleetSid string, Sid string, params *UpdateDeviceParams) (*PreviewDeployedDevicesFleetDevice, error) { path := "/DeployedDevices/Fleets/{FleetSid}/Devices/{Sid}" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"FleetSid"+"}", FleetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.DeploymentSid != nil { - data.Set("DeploymentSid", *params.DeploymentSid) + data.Set("DeploymentSid", *params.DeploymentSid) } if params != nil && params.Enabled != nil { - data.Set("Enabled", string(*params.Enabled)) + data.Set("Enabled", fmt.Sprint(*params.Enabled)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) + data.Set("Identity", *params.Identity) } @@ -5480,23 +5620,24 @@ func (c *DefaultApiService) UpdateDevice(fleetSid string, sid string, params *Up } // UpdateDocumentParams Optional parameters for the method 'UpdateDocument' type UpdateDocumentParams struct { - If-Match *string `json:"If-Match,omitempty"` + IfMatch *string `json:"If-Match,omitempty"` Data *map[string]interface{} `json:"Data,omitempty"` } /* UpdateDocument Method for UpdateDocument - * @param serviceSid - * @param sid + * @param ServiceSid + * @param Sid * @param optional nil or *UpdateDocumentOpts - Optional Parameters: * @param "If-Match" (string) - The If-Match HTTP request header * @param "Data" (map[string]interface{}) - @return PreviewSyncServiceDocument */ -func (c *DefaultApiService) UpdateDocument(serviceSid string, sid string, params *UpdateDocumentParams) (*PreviewSyncServiceDocument, error) { +func (c *DefaultApiService) UpdateDocument(ServiceSid string, Sid string, params *UpdateDocumentParams) (*PreviewSyncServiceDocument, error) { path := "/Sync/Services/{ServiceSid}/Documents/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := make(map[string]interface{}) @@ -5508,11 +5649,11 @@ func (c *DefaultApiService) UpdateDocument(serviceSid string, sid string, params return nil, err } - data.Set("Data", string(v)) + data.Set("Data", fmt.Sprint(v)) } - if params != nil && params.If-Match != nil { - headers["If-Match"] = *params.If-Match + if params != nil && params.IfMatch != nil { + headers["IfMatch"] = *params.IfMatch } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -5539,32 +5680,33 @@ type UpdateDocumentPermissionParams struct { /* UpdateDocumentPermission Method for UpdateDocumentPermission Update an identity's access to a specific Sync Document. - * @param serviceSid The unique SID identifier of the Sync Service Instance. - * @param documentSid Identifier of the Sync Document. Either a SID or a unique name. - * @param identity Arbitrary string identifier representing a human user associated with an FPA token, assigned by the developer. + * @param ServiceSid The unique SID identifier of the Sync Service Instance. + * @param DocumentSid Identifier of the Sync Document. Either a SID or a unique name. + * @param Identity Arbitrary string identifier representing a human user associated with an FPA token, assigned by the developer. * @param optional nil or *UpdateDocumentPermissionOpts - Optional Parameters: * @param "Manage" (bool) - Boolean flag specifying whether the identity can delete the Sync Document. * @param "Read" (bool) - Boolean flag specifying whether the identity can read the Sync Document. * @param "Write" (bool) - Boolean flag specifying whether the identity can update the Sync Document. @return PreviewSyncServiceDocumentDocumentPermission */ -func (c *DefaultApiService) UpdateDocumentPermission(serviceSid string, documentSid string, identity string, params *UpdateDocumentPermissionParams) (*PreviewSyncServiceDocumentDocumentPermission, error) { +func (c *DefaultApiService) UpdateDocumentPermission(ServiceSid string, DocumentSid string, Identity string, params *UpdateDocumentPermissionParams) (*PreviewSyncServiceDocumentDocumentPermission, error) { path := "/Sync/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"DocumentSid"+"}", documentSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"DocumentSid"+"}", DocumentSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", Identity, -1) + data := url.Values{} headers := 0 if params != nil && params.Manage != nil { - data.Set("Manage", string(*params.Manage)) + data.Set("Manage", fmt.Sprint(*params.Manage)) } if params != nil && params.Read != nil { - data.Set("Read", string(*params.Read)) + data.Set("Read", fmt.Sprint(*params.Read)) } if params != nil && params.Write != nil { - data.Set("Write", string(*params.Write)) + data.Set("Write", fmt.Sprint(*params.Write)) } @@ -5592,28 +5734,29 @@ type UpdateExportConfigurationParams struct { /* UpdateExportConfiguration Method for UpdateExportConfiguration Update a specific Export Configuration. - * @param resourceType The type of communication – Messages, Calls + * @param ResourceType The type of communication – Messages, Calls * @param optional nil or *UpdateExportConfigurationOpts - Optional Parameters: * @param "Enabled" (bool) - If true, Twilio will automatically generate every day's file when the day is over. * @param "WebhookMethod" (string) - Sets whether Twilio should call a webhook URL when the automatic generation is complete, using GET or POST. The actual destination is set in the webhook_url * @param "WebhookUrl" (string) - Stores the URL destination for the method specified in webhook_method. @return PreviewBulkExportsExportConfiguration */ -func (c *DefaultApiService) UpdateExportConfiguration(resourceType string, params *UpdateExportConfigurationParams) (*PreviewBulkExportsExportConfiguration, error) { +func (c *DefaultApiService) UpdateExportConfiguration(ResourceType string, params *UpdateExportConfigurationParams) (*PreviewBulkExportsExportConfiguration, error) { path := "/BulkExports/Exports/{ResourceType}/Configuration" - path = strings.Replace(path, "{"+"ResourceType"+"}", resourceType, -1) + path = strings.Replace(path, "{"+"ResourceType"+"}", ResourceType, -1) + data := url.Values{} headers := 0 if params != nil && params.Enabled != nil { - data.Set("Enabled", string(*params.Enabled)) + data.Set("Enabled", fmt.Sprint(*params.Enabled)) } if params != nil && params.WebhookMethod != nil { - data.Set("WebhookMethod", *params.WebhookMethod) + data.Set("WebhookMethod", *params.WebhookMethod) } if params != nil && params.WebhookUrl != nil { - data.Set("WebhookUrl", *params.WebhookUrl) + data.Set("WebhookUrl", *params.WebhookUrl) } @@ -5639,26 +5782,27 @@ type UpdateFieldTypeParams struct { /* UpdateFieldType Method for UpdateFieldType - * @param assistantSid - * @param sid + * @param AssistantSid + * @param Sid * @param optional nil or *UpdateFieldTypeOpts - Optional Parameters: * @param "FriendlyName" (string) - A user-provided string that identifies this resource. It is non-unique and can up to 255 characters long. * @param "UniqueName" (string) - A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. @return PreviewUnderstandAssistantFieldType */ -func (c *DefaultApiService) UpdateFieldType(assistantSid string, sid string, params *UpdateFieldTypeParams) (*PreviewUnderstandAssistantFieldType, error) { +func (c *DefaultApiService) UpdateFieldType(AssistantSid string, Sid string, params *UpdateFieldTypeParams) (*PreviewUnderstandAssistantFieldType, error) { path := "/understand/Assistants/{AssistantSid}/FieldTypes/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -5685,24 +5829,25 @@ type UpdateFleetParams struct { /* UpdateFleet Method for UpdateFleet Update the friendly name property of a specific Fleet in your account. - * @param sid Provides a 34 character string that uniquely identifies the requested Fleet resource. + * @param Sid Provides a 34 character string that uniquely identifies the requested Fleet resource. * @param optional nil or *UpdateFleetOpts - Optional Parameters: * @param "DefaultDeploymentSid" (string) - Provides a string identifier of a Deployment that is going to be used as a default one for this Fleet. * @param "FriendlyName" (string) - Provides a human readable descriptive text for this Fleet, up to 256 characters long. @return PreviewDeployedDevicesFleet */ -func (c *DefaultApiService) UpdateFleet(sid string, params *UpdateFleetParams) (*PreviewDeployedDevicesFleet, error) { +func (c *DefaultApiService) UpdateFleet(Sid string, params *UpdateFleetParams) (*PreviewDeployedDevicesFleet, error) { path := "/DeployedDevices/Fleets/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.DefaultDeploymentSid != nil { - data.Set("DefaultDeploymentSid", *params.DefaultDeploymentSid) + data.Set("DefaultDeploymentSid", *params.DefaultDeploymentSid) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -5737,7 +5882,7 @@ type UpdateHostedNumberOrderParams struct { /* UpdateHostedNumberOrder Method for UpdateHostedNumberOrder Updates a specific HostedNumberOrder. - * @param sid + * @param Sid * @param optional nil or *UpdateHostedNumberOrderOpts - Optional Parameters: * @param "CallDelay" (int32) - The number of seconds, between 0 and 60, to delay before initiating the verification call. Defaults to 0. * @param "CcEmails" ([]string) - Optional. A list of emails that LOA document for this HostedNumberOrder will be carbon copied to. @@ -5751,42 +5896,43 @@ Updates a specific HostedNumberOrder. * @param "VerificationType" (string) - Optional. The method used for verifying ownership of the number to be hosted. One of phone-call (default) or phone-bill. @return PreviewHostedNumbersHostedNumberOrder */ -func (c *DefaultApiService) UpdateHostedNumberOrder(sid string, params *UpdateHostedNumberOrderParams) (*PreviewHostedNumbersHostedNumberOrder, error) { +func (c *DefaultApiService) UpdateHostedNumberOrder(Sid string, params *UpdateHostedNumberOrderParams) (*PreviewHostedNumbersHostedNumberOrder, error) { path := "/HostedNumbers/HostedNumberOrders/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.CallDelay != nil { - data.Set("CallDelay", string(*params.CallDelay)) + data.Set("CallDelay", fmt.Sprint(*params.CallDelay)) } if params != nil && params.CcEmails != nil { - data.Set("CcEmails", *params.CcEmails) + data.Set("CcEmails", strings.Join(*params.CcEmails, ",")) } if params != nil && params.Email != nil { - data.Set("Email", *params.Email) + data.Set("Email", *params.Email) } if params != nil && params.Extension != nil { - data.Set("Extension", *params.Extension) + data.Set("Extension", *params.Extension) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } if params != nil && params.VerificationCode != nil { - data.Set("VerificationCode", *params.VerificationCode) + data.Set("VerificationCode", *params.VerificationCode) } if params != nil && params.VerificationDocumentSid != nil { - data.Set("VerificationDocumentSid", *params.VerificationDocumentSid) + data.Set("VerificationDocumentSid", *params.VerificationDocumentSid) } if params != nil && params.VerificationType != nil { - data.Set("VerificationType", *params.VerificationType) + data.Set("VerificationType", *params.VerificationType) } @@ -5813,15 +5959,16 @@ type UpdateInstalledAddOnParams struct { /* UpdateInstalledAddOn Method for UpdateInstalledAddOn Update an Add-on installation for the Account specified. - * @param sid The SID of the InstalledAddOn resource to update. + * @param Sid The SID of the InstalledAddOn resource to update. * @param optional nil or *UpdateInstalledAddOnOpts - Optional Parameters: * @param "Configuration" (map[string]interface{}) - Valid JSON object that conform to the configuration schema exposed by the associated AvailableAddOn resource. This is only required by Add-ons that need to be configured * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. This value must be unique within the Account. @return PreviewMarketplaceInstalledAddOn */ -func (c *DefaultApiService) UpdateInstalledAddOn(sid string, params *UpdateInstalledAddOnParams) (*PreviewMarketplaceInstalledAddOn, error) { +func (c *DefaultApiService) UpdateInstalledAddOn(Sid string, params *UpdateInstalledAddOnParams) (*PreviewMarketplaceInstalledAddOn, error) { path := "/marketplace/InstalledAddOns/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 @@ -5833,10 +5980,10 @@ func (c *DefaultApiService) UpdateInstalledAddOn(sid string, params *UpdateInsta return nil, err } - data.Set("Configuration", string(v)) + data.Set("Configuration", fmt.Sprint(v)) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -5862,22 +6009,23 @@ type UpdateInstalledAddOnExtensionParams struct { /* UpdateInstalledAddOnExtension Method for UpdateInstalledAddOnExtension Update an Extension for an Add-on installation. - * @param installedAddOnSid The SID of the InstalledAddOn resource with the extension to update. - * @param sid The SID of the InstalledAddOn Extension resource to update. + * @param InstalledAddOnSid The SID of the InstalledAddOn resource with the extension to update. + * @param Sid The SID of the InstalledAddOn Extension resource to update. * @param optional nil or *UpdateInstalledAddOnExtensionOpts - Optional Parameters: * @param "Enabled" (bool) - Whether the Extension should be invoked. @return PreviewMarketplaceInstalledAddOnInstalledAddOnExtension */ -func (c *DefaultApiService) UpdateInstalledAddOnExtension(installedAddOnSid string, sid string, params *UpdateInstalledAddOnExtensionParams) (*PreviewMarketplaceInstalledAddOnInstalledAddOnExtension, error) { +func (c *DefaultApiService) UpdateInstalledAddOnExtension(InstalledAddOnSid string, Sid string, params *UpdateInstalledAddOnExtensionParams) (*PreviewMarketplaceInstalledAddOnInstalledAddOnExtension, error) { path := "/marketplace/InstalledAddOns/{InstalledAddOnSid}/Extensions/{Sid}" - path = strings.Replace(path, "{"+"InstalledAddOnSid"+"}", installedAddOnSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"InstalledAddOnSid"+"}", InstalledAddOnSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.Enabled != nil { - data.Set("Enabled", string(*params.Enabled)) + data.Set("Enabled", fmt.Sprint(*params.Enabled)) } @@ -5904,26 +6052,27 @@ type UpdateKeyParams struct { /* UpdateKey Method for UpdateKey Update the given properties of a specific Key credential in the Fleet, giving it a friendly name or assigning to a Device. - * @param fleetSid - * @param sid Provides a 34 character string that uniquely identifies the requested Key credential resource. + * @param FleetSid + * @param Sid Provides a 34 character string that uniquely identifies the requested Key credential resource. * @param optional nil or *UpdateKeyOpts - Optional Parameters: * @param "DeviceSid" (string) - Provides the unique string identifier of an existing Device to become authenticated with this Key credential. * @param "FriendlyName" (string) - Provides a human readable descriptive text for this Key credential, up to 256 characters long. @return PreviewDeployedDevicesFleetKey */ -func (c *DefaultApiService) UpdateKey(fleetSid string, sid string, params *UpdateKeyParams) (*PreviewDeployedDevicesFleetKey, error) { +func (c *DefaultApiService) UpdateKey(FleetSid string, Sid string, params *UpdateKeyParams) (*PreviewDeployedDevicesFleetKey, error) { path := "/DeployedDevices/Fleets/{FleetSid}/Keys/{Sid}" - path = strings.Replace(path, "{"+"FleetSid"+"}", fleetSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"FleetSid"+"}", FleetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.DeviceSid != nil { - data.Set("DeviceSid", *params.DeviceSid) + data.Set("DeviceSid", *params.DeviceSid) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -5948,22 +6097,23 @@ type UpdateModelBuildParams struct { /* UpdateModelBuild Method for UpdateModelBuild - * @param assistantSid - * @param sid + * @param AssistantSid + * @param Sid * @param optional nil or *UpdateModelBuildOpts - Optional Parameters: * @param "UniqueName" (string) - A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. For example: v0.1 @return PreviewUnderstandAssistantModelBuild */ -func (c *DefaultApiService) UpdateModelBuild(assistantSid string, sid string, params *UpdateModelBuildParams) (*PreviewUnderstandAssistantModelBuild, error) { +func (c *DefaultApiService) UpdateModelBuild(AssistantSid string, Sid string, params *UpdateModelBuildParams) (*PreviewUnderstandAssistantModelBuild, error) { path := "/understand/Assistants/{AssistantSid}/ModelBuilds/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -5989,26 +6139,27 @@ type UpdateQueryParams struct { /* UpdateQuery Method for UpdateQuery - * @param assistantSid The unique ID of the parent Assistant. - * @param sid A 34 character string that uniquely identifies this resource. + * @param AssistantSid The unique ID of the parent Assistant. + * @param Sid A 34 character string that uniquely identifies this resource. * @param optional nil or *UpdateQueryOpts - Optional Parameters: * @param "SampleSid" (string) - An optional reference to the Sample created from this query. * @param "Status" (string) - A string that described the query status. The values can be: pending_review, reviewed, discarded @return PreviewUnderstandAssistantQuery */ -func (c *DefaultApiService) UpdateQuery(assistantSid string, sid string, params *UpdateQueryParams) (*PreviewUnderstandAssistantQuery, error) { +func (c *DefaultApiService) UpdateQuery(AssistantSid string, Sid string, params *UpdateQueryParams) (*PreviewUnderstandAssistantQuery, error) { path := "/understand/Assistants/{AssistantSid}/Queries/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.SampleSid != nil { - data.Set("SampleSid", *params.SampleSid) + data.Set("SampleSid", *params.SampleSid) } if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } @@ -6034,24 +6185,25 @@ type UpdateRatePlanParams struct { /* UpdateRatePlan Method for UpdateRatePlan - * @param sid + * @param Sid * @param optional nil or *UpdateRatePlanOpts - Optional Parameters: * @param "FriendlyName" (string) - * @param "UniqueName" (string) - @return PreviewWirelessRatePlan */ -func (c *DefaultApiService) UpdateRatePlan(sid string, params *UpdateRatePlanParams) (*PreviewWirelessRatePlan, error) { +func (c *DefaultApiService) UpdateRatePlan(Sid string, params *UpdateRatePlanParams) (*PreviewWirelessRatePlan, error) { path := "/wireless/RatePlans/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -6078,32 +6230,33 @@ type UpdateSampleParams struct { /* UpdateSample Method for UpdateSample - * @param assistantSid The unique ID of the Assistant. - * @param taskSid The unique ID of the Task associated with this Sample. - * @param sid A 34 character string that uniquely identifies this resource. + * @param AssistantSid The unique ID of the Assistant. + * @param TaskSid The unique ID of the Task associated with this Sample. + * @param Sid A 34 character string that uniquely identifies this resource. * @param optional nil or *UpdateSampleOpts - Optional Parameters: * @param "Language" (string) - An ISO language-country string of the sample. * @param "SourceChannel" (string) - The communication channel the sample was captured. It can be: *voice*, *sms*, *chat*, *alexa*, *google-assistant*, or *slack*. If not included the value will be null * @param "TaggedText" (string) - The text example of how end-users may express this task. The sample may contain Field tag blocks. @return PreviewUnderstandAssistantTaskSample */ -func (c *DefaultApiService) UpdateSample(assistantSid string, taskSid string, sid string, params *UpdateSampleParams) (*PreviewUnderstandAssistantTaskSample, error) { +func (c *DefaultApiService) UpdateSample(AssistantSid string, TaskSid string, Sid string, params *UpdateSampleParams) (*PreviewUnderstandAssistantTaskSample, error) { path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", TaskSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.Language != nil { - data.Set("Language", *params.Language) + data.Set("Language", *params.Language) } if params != nil && params.SourceChannel != nil { - data.Set("SourceChannel", *params.SourceChannel) + data.Set("SourceChannel", *params.SourceChannel) } if params != nil && params.TaggedText != nil { - data.Set("TaggedText", *params.TaggedText) + data.Set("TaggedText", *params.TaggedText) } @@ -6131,7 +6284,7 @@ type UpdateServiceParams struct { /* UpdateService Method for UpdateService - * @param sid + * @param Sid * @param optional nil or *UpdateServiceOpts - Optional Parameters: * @param "AclEnabled" (bool) - * @param "FriendlyName" (string) - @@ -6139,24 +6292,25 @@ UpdateService Method for UpdateService * @param "WebhookUrl" (string) - @return PreviewSyncService */ -func (c *DefaultApiService) UpdateService(sid string, params *UpdateServiceParams) (*PreviewSyncService, error) { +func (c *DefaultApiService) UpdateService(Sid string, params *UpdateServiceParams) (*PreviewSyncService, error) { path := "/Sync/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.AclEnabled != nil { - data.Set("AclEnabled", string(*params.AclEnabled)) + data.Set("AclEnabled", fmt.Sprint(*params.AclEnabled)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.ReachabilityWebhooksEnabled != nil { - data.Set("ReachabilityWebhooksEnabled", string(*params.ReachabilityWebhooksEnabled)) + data.Set("ReachabilityWebhooksEnabled", fmt.Sprint(*params.ReachabilityWebhooksEnabled)) } if params != nil && params.WebhookUrl != nil { - data.Set("WebhookUrl", *params.WebhookUrl) + data.Set("WebhookUrl", *params.WebhookUrl) } @@ -6196,7 +6350,7 @@ type UpdateSimParams struct { /* UpdateSim Method for UpdateSim - * @param sid + * @param Sid * @param optional nil or *UpdateSimOpts - Optional Parameters: * @param "CallbackMethod" (string) - * @param "CallbackUrl" (string) - @@ -6216,60 +6370,61 @@ UpdateSim Method for UpdateSim * @param "VoiceUrl" (string) - @return PreviewWirelessSim */ -func (c *DefaultApiService) UpdateSim(sid string, params *UpdateSimParams) (*PreviewWirelessSim, error) { +func (c *DefaultApiService) UpdateSim(Sid string, params *UpdateSimParams) (*PreviewWirelessSim, error) { path := "/wireless/Sims/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.CallbackMethod != nil { - data.Set("CallbackMethod", *params.CallbackMethod) + data.Set("CallbackMethod", *params.CallbackMethod) } if params != nil && params.CallbackUrl != nil { - data.Set("CallbackUrl", *params.CallbackUrl) + data.Set("CallbackUrl", *params.CallbackUrl) } if params != nil && params.CommandsCallbackMethod != nil { - data.Set("CommandsCallbackMethod", *params.CommandsCallbackMethod) + data.Set("CommandsCallbackMethod", *params.CommandsCallbackMethod) } if params != nil && params.CommandsCallbackUrl != nil { - data.Set("CommandsCallbackUrl", *params.CommandsCallbackUrl) + data.Set("CommandsCallbackUrl", *params.CommandsCallbackUrl) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.RatePlan != nil { - data.Set("RatePlan", *params.RatePlan) + data.Set("RatePlan", *params.RatePlan) } if params != nil && params.SmsFallbackMethod != nil { - data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) + data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) } if params != nil && params.SmsFallbackUrl != nil { - data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) + data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) } if params != nil && params.SmsMethod != nil { - data.Set("SmsMethod", *params.SmsMethod) + data.Set("SmsMethod", *params.SmsMethod) } if params != nil && params.SmsUrl != nil { - data.Set("SmsUrl", *params.SmsUrl) + data.Set("SmsUrl", *params.SmsUrl) } if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } if params != nil && params.VoiceFallbackMethod != nil { - data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) } if params != nil && params.VoiceFallbackUrl != nil { - data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) } if params != nil && params.VoiceMethod != nil { - data.Set("VoiceMethod", *params.VoiceMethod) + data.Set("VoiceMethod", *params.VoiceMethod) } if params != nil && params.VoiceUrl != nil { - data.Set("VoiceUrl", *params.VoiceUrl) + data.Set("VoiceUrl", *params.VoiceUrl) } @@ -6295,14 +6450,15 @@ type UpdateStyleSheetParams struct { /* UpdateStyleSheet Method for UpdateStyleSheet Updates the style sheet for an assistant identified by {AssistantSid} or {AssistantUniqueName}. - * @param assistantSid The unique ID of the Assistant + * @param AssistantSid The unique ID of the Assistant * @param optional nil or *UpdateStyleSheetOpts - Optional Parameters: * @param "StyleSheet" (map[string]interface{}) - The JSON Style sheet string @return PreviewUnderstandAssistantStyleSheet */ -func (c *DefaultApiService) UpdateStyleSheet(assistantSid string, params *UpdateStyleSheetParams) (*PreviewUnderstandAssistantStyleSheet, error) { +func (c *DefaultApiService) UpdateStyleSheet(AssistantSid string, params *UpdateStyleSheetParams) (*PreviewUnderstandAssistantStyleSheet, error) { path := "/understand/Assistants/{AssistantSid}/StyleSheet" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + data := url.Values{} headers := 0 @@ -6314,7 +6470,7 @@ func (c *DefaultApiService) UpdateStyleSheet(assistantSid string, params *Update return nil, err } - data.Set("StyleSheet", string(v)) + data.Set("StyleSheet", fmt.Sprint(v)) } @@ -6334,25 +6490,26 @@ func (c *DefaultApiService) UpdateStyleSheet(assistantSid string, params *Update } // UpdateSyncListItemParams Optional parameters for the method 'UpdateSyncListItem' type UpdateSyncListItemParams struct { - If-Match *string `json:"If-Match,omitempty"` + IfMatch *string `json:"If-Match,omitempty"` Data *map[string]interface{} `json:"Data,omitempty"` } /* UpdateSyncListItem Method for UpdateSyncListItem - * @param serviceSid - * @param listSid - * @param index + * @param ServiceSid + * @param ListSid + * @param Index * @param optional nil or *UpdateSyncListItemOpts - Optional Parameters: * @param "If-Match" (string) - The If-Match HTTP request header * @param "Data" (map[string]interface{}) - @return PreviewSyncServiceSyncListSyncListItem */ -func (c *DefaultApiService) UpdateSyncListItem(serviceSid string, listSid string, index int32, params *UpdateSyncListItemParams) (*PreviewSyncServiceSyncListSyncListItem, error) { +func (c *DefaultApiService) UpdateSyncListItem(ServiceSid string, ListSid string, Index int32, params *UpdateSyncListItemParams) (*PreviewSyncServiceSyncListSyncListItem, error) { path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) - path = strings.Replace(path, "{"+"Index"+"}", index, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", ListSid, -1) + path = strings.Replace(path, "{"+"Index"+"}", fmt.Sprint(Index), -1) + data := url.Values{} headers := make(map[string]interface{}) @@ -6364,11 +6521,11 @@ func (c *DefaultApiService) UpdateSyncListItem(serviceSid string, listSid string return nil, err } - data.Set("Data", string(v)) + data.Set("Data", fmt.Sprint(v)) } - if params != nil && params.If-Match != nil { - headers["If-Match"] = *params.If-Match + if params != nil && params.IfMatch != nil { + headers["IfMatch"] = *params.IfMatch } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -6395,32 +6552,33 @@ type UpdateSyncListPermissionParams struct { /* UpdateSyncListPermission Method for UpdateSyncListPermission Update an identity's access to a specific Sync List. - * @param serviceSid The unique SID identifier of the Sync Service Instance. - * @param listSid Identifier of the Sync List. Either a SID or a unique name. - * @param identity Arbitrary string identifier representing a human user associated with an FPA token, assigned by the developer. + * @param ServiceSid The unique SID identifier of the Sync Service Instance. + * @param ListSid Identifier of the Sync List. Either a SID or a unique name. + * @param Identity Arbitrary string identifier representing a human user associated with an FPA token, assigned by the developer. * @param optional nil or *UpdateSyncListPermissionOpts - Optional Parameters: * @param "Manage" (bool) - Boolean flag specifying whether the identity can delete the Sync List. * @param "Read" (bool) - Boolean flag specifying whether the identity can read the Sync List. * @param "Write" (bool) - Boolean flag specifying whether the identity can create, update and delete Items of the Sync List. @return PreviewSyncServiceSyncListSyncListPermission */ -func (c *DefaultApiService) UpdateSyncListPermission(serviceSid string, listSid string, identity string, params *UpdateSyncListPermissionParams) (*PreviewSyncServiceSyncListSyncListPermission, error) { +func (c *DefaultApiService) UpdateSyncListPermission(ServiceSid string, ListSid string, Identity string, params *UpdateSyncListPermissionParams) (*PreviewSyncServiceSyncListSyncListPermission, error) { path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", ListSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", Identity, -1) + data := url.Values{} headers := 0 if params != nil && params.Manage != nil { - data.Set("Manage", string(*params.Manage)) + data.Set("Manage", fmt.Sprint(*params.Manage)) } if params != nil && params.Read != nil { - data.Set("Read", string(*params.Read)) + data.Set("Read", fmt.Sprint(*params.Read)) } if params != nil && params.Write != nil { - data.Set("Write", string(*params.Write)) + data.Set("Write", fmt.Sprint(*params.Write)) } @@ -6440,25 +6598,26 @@ func (c *DefaultApiService) UpdateSyncListPermission(serviceSid string, listSid } // UpdateSyncMapItemParams Optional parameters for the method 'UpdateSyncMapItem' type UpdateSyncMapItemParams struct { - If-Match *string `json:"If-Match,omitempty"` + IfMatch *string `json:"If-Match,omitempty"` Data *map[string]interface{} `json:"Data,omitempty"` } /* UpdateSyncMapItem Method for UpdateSyncMapItem - * @param serviceSid - * @param mapSid - * @param key + * @param ServiceSid + * @param MapSid + * @param Key * @param optional nil or *UpdateSyncMapItemOpts - Optional Parameters: * @param "If-Match" (string) - The If-Match HTTP request header * @param "Data" (map[string]interface{}) - @return PreviewSyncServiceSyncMapSyncMapItem */ -func (c *DefaultApiService) UpdateSyncMapItem(serviceSid string, mapSid string, key string, params *UpdateSyncMapItemParams) (*PreviewSyncServiceSyncMapSyncMapItem, error) { +func (c *DefaultApiService) UpdateSyncMapItem(ServiceSid string, MapSid string, Key string, params *UpdateSyncMapItemParams) (*PreviewSyncServiceSyncMapSyncMapItem, error) { path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) - path = strings.Replace(path, "{"+"Key"+"}", key, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", MapSid, -1) + path = strings.Replace(path, "{"+"Key"+"}", Key, -1) + data := url.Values{} headers := make(map[string]interface{}) @@ -6470,11 +6629,11 @@ func (c *DefaultApiService) UpdateSyncMapItem(serviceSid string, mapSid string, return nil, err } - data.Set("Data", string(v)) + data.Set("Data", fmt.Sprint(v)) } - if params != nil && params.If-Match != nil { - headers["If-Match"] = *params.If-Match + if params != nil && params.IfMatch != nil { + headers["IfMatch"] = *params.IfMatch } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -6501,32 +6660,33 @@ type UpdateSyncMapPermissionParams struct { /* UpdateSyncMapPermission Method for UpdateSyncMapPermission Update an identity's access to a specific Sync Map. - * @param serviceSid The unique SID identifier of the Sync Service Instance. - * @param mapSid Identifier of the Sync Map. Either a SID or a unique name. - * @param identity Arbitrary string identifier representing a human user associated with an FPA token, assigned by the developer. + * @param ServiceSid The unique SID identifier of the Sync Service Instance. + * @param MapSid Identifier of the Sync Map. Either a SID or a unique name. + * @param Identity Arbitrary string identifier representing a human user associated with an FPA token, assigned by the developer. * @param optional nil or *UpdateSyncMapPermissionOpts - Optional Parameters: * @param "Manage" (bool) - Boolean flag specifying whether the identity can delete the Sync Map. * @param "Read" (bool) - Boolean flag specifying whether the identity can read the Sync Map. * @param "Write" (bool) - Boolean flag specifying whether the identity can create, update and delete Items of the Sync Map. @return PreviewSyncServiceSyncMapSyncMapPermission */ -func (c *DefaultApiService) UpdateSyncMapPermission(serviceSid string, mapSid string, identity string, params *UpdateSyncMapPermissionParams) (*PreviewSyncServiceSyncMapSyncMapPermission, error) { +func (c *DefaultApiService) UpdateSyncMapPermission(ServiceSid string, MapSid string, Identity string, params *UpdateSyncMapPermissionParams) (*PreviewSyncServiceSyncMapSyncMapPermission, error) { path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", MapSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", Identity, -1) + data := url.Values{} headers := 0 if params != nil && params.Manage != nil { - data.Set("Manage", string(*params.Manage)) + data.Set("Manage", fmt.Sprint(*params.Manage)) } if params != nil && params.Read != nil { - data.Set("Read", string(*params.Read)) + data.Set("Read", fmt.Sprint(*params.Read)) } if params != nil && params.Write != nil { - data.Set("Write", string(*params.Write)) + data.Set("Write", fmt.Sprint(*params.Write)) } @@ -6554,8 +6714,8 @@ type UpdateTaskParams struct { /* UpdateTask Method for UpdateTask - * @param assistantSid The unique ID of the Assistant. - * @param sid A 34 character string that uniquely identifies this resource. + * @param AssistantSid The unique ID of the Assistant. + * @param Sid A 34 character string that uniquely identifies this resource. * @param optional nil or *UpdateTaskOpts - Optional Parameters: * @param "Actions" (map[string]interface{}) - A user-provided JSON object encoded as a string to specify the actions for this task. It is optional and non-unique. * @param "ActionsUrl" (string) - User-provided HTTP endpoint where from the assistant fetches actions @@ -6563,10 +6723,11 @@ UpdateTask Method for UpdateTask * @param "UniqueName" (string) - A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. @return PreviewUnderstandAssistantTask */ -func (c *DefaultApiService) UpdateTask(assistantSid string, sid string, params *UpdateTaskParams) (*PreviewUnderstandAssistantTask, error) { +func (c *DefaultApiService) UpdateTask(AssistantSid string, Sid string, params *UpdateTaskParams) (*PreviewUnderstandAssistantTask, error) { path := "/understand/Assistants/{AssistantSid}/Tasks/{Sid}" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 @@ -6578,16 +6739,16 @@ func (c *DefaultApiService) UpdateTask(assistantSid string, sid string, params * return nil, err } - data.Set("Actions", string(v)) + data.Set("Actions", fmt.Sprint(v)) } if params != nil && params.ActionsUrl != nil { - data.Set("ActionsUrl", *params.ActionsUrl) + data.Set("ActionsUrl", *params.ActionsUrl) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -6613,16 +6774,17 @@ type UpdateTaskActionsParams struct { /* UpdateTaskActions Method for UpdateTaskActions Updates the actions of an Task identified by {TaskSid} or {TaskUniqueName}. - * @param assistantSid The unique ID of the parent Assistant. - * @param taskSid The unique ID of the Task. + * @param AssistantSid The unique ID of the parent Assistant. + * @param TaskSid The unique ID of the Task. * @param optional nil or *UpdateTaskActionsOpts - Optional Parameters: * @param "Actions" (map[string]interface{}) - The JSON actions that instruct the Assistant how to perform this task. @return PreviewUnderstandAssistantTaskTaskActions */ -func (c *DefaultApiService) UpdateTaskActions(assistantSid string, taskSid string, params *UpdateTaskActionsParams) (*PreviewUnderstandAssistantTaskTaskActions, error) { +func (c *DefaultApiService) UpdateTaskActions(AssistantSid string, TaskSid string, params *UpdateTaskActionsParams) (*PreviewUnderstandAssistantTaskTaskActions, error) { path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Actions" - path = strings.Replace(path, "{"+"AssistantSid"+"}", assistantSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", TaskSid, -1) + data := url.Values{} headers := 0 @@ -6634,7 +6796,7 @@ func (c *DefaultApiService) UpdateTaskActions(assistantSid string, taskSid strin return nil, err } - data.Set("Actions", string(v)) + data.Set("Actions", fmt.Sprint(v)) } diff --git a/rest/preview/docs/DefaultApi.md b/rest/preview/docs/DefaultApi.md index c82265694..d1b391998 100644 --- a/rest/preview/docs/DefaultApi.md +++ b/rest/preview/docs/DefaultApi.md @@ -189,14 +189,14 @@ Optional parameters are passed through a pointer to a CreateAssistantOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **callbackEvents** | **optional.String**| Space-separated list of callback events that will trigger callbacks. | - **callbackUrl** | **optional.String**| A user-provided URL to send event callbacks to. | - **fallbackActions** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON actions to be executed when the user's input is not recognized as matching any Task. | - **friendlyName** | **optional.String**| A text description for the Assistant. It is non-unique and can up to 255 characters long. | - **initiationActions** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON actions to be executed on inbound phone calls when the Assistant has to say something first. | - **logQueries** | **optional.Bool**| A boolean that specifies whether queries should be logged for 30 days further training. If false, no queries will be stored, if true, queries will be stored for 30 days and deleted thereafter. Defaults to true if no value is provided. | - **styleSheet** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON object that holds the style sheet for the assistant | - **uniqueName** | **optional.String**| A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. | + **CallbackEvents** | **optional.String**| Space-separated list of callback events that will trigger callbacks. | + **CallbackUrl** | **optional.String**| A user-provided URL to send event callbacks to. | + **FallbackActions** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON actions to be executed when the user's input is not recognized as matching any Task. | + **FriendlyName** | **optional.String**| A text description for the Assistant. It is non-unique and can up to 255 characters long. | + **InitiationActions** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON actions to be executed on inbound phone calls when the Assistant has to say something first. | + **LogQueries** | **optional.Bool**| A boolean that specifies whether queries should be logged for 30 days further training. If false, no queries will be stored, if true, queries will be stored for 30 days and deleted thereafter. Defaults to true if no value is provided. | + **StyleSheet** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON object that holds the style sheet for the assistant | + **UniqueName** | **optional.String**| A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. | ### Return type @@ -239,12 +239,12 @@ Optional parameters are passed through a pointer to a CreateAuthorizationDocumen Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **addressSid** | **optional.String**| A 34 character string that uniquely identifies the Address resource that is associated with this AuthorizationDocument. | - **ccEmails** | [**optional.Interface of []string**](string.md)| Email recipients who will be informed when an Authorization Document has been sent and signed. | - **contactPhoneNumber** | **optional.String**| The contact phone number of the person authorized to sign the Authorization Document. | - **contactTitle** | **optional.String**| The title of the person authorized to sign the Authorization Document for this phone number. | - **email** | **optional.String**| Email that this AuthorizationDocument will be sent to for signing. | - **hostedNumberOrderSids** | [**optional.Interface of []string**](string.md)| A list of HostedNumberOrder sids that this AuthorizationDocument will authorize for hosting phone number capabilities on Twilio's platform. | + **AddressSid** | **optional.String**| A 34 character string that uniquely identifies the Address resource that is associated with this AuthorizationDocument. | + **CcEmails** | [**optional.Interface of []string**](string.md)| Email recipients who will be informed when an Authorization Document has been sent and signed. | + **ContactPhoneNumber** | **optional.String**| The contact phone number of the person authorized to sign the Authorization Document. | + **ContactTitle** | **optional.String**| The title of the person authorized to sign the Authorization Document for this phone number. | + **Email** | **optional.String**| Email that this AuthorizationDocument will be sent to for signing. | + **HostedNumberOrderSids** | [**optional.Interface of []string**](string.md)| A list of HostedNumberOrder sids that this AuthorizationDocument will authorize for hosting phone number capabilities on Twilio's platform. | ### Return type @@ -266,7 +266,7 @@ Name | Type | Description | Notes ## CreateCertificate -> PreviewDeployedDevicesFleetCertificate CreateCertificate(ctx, fleetSid, optional) +> PreviewDeployedDevicesFleetCertificate CreateCertificate(ctx, FleetSid, optional) @@ -278,7 +278,7 @@ Enroll a new Certificate credential to the Fleet, optionally giving it a friendl Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fleetSid** | **string**| | +**FleetSid** | **string**| | **optional** | ***CreateCertificateOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -289,9 +289,9 @@ Optional parameters are passed through a pointer to a CreateCertificateOpts stru Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **certificateData** | **optional.String**| Provides a URL encoded representation of the public certificate in PEM format. | - **deviceSid** | **optional.String**| Provides the unique string identifier of an existing Device to become authenticated with this Certificate credential. | - **friendlyName** | **optional.String**| Provides a human readable descriptive text for this Certificate credential, up to 256 characters long. | + **CertificateData** | **optional.String**| Provides a URL encoded representation of the public certificate in PEM format. | + **DeviceSid** | **optional.String**| Provides the unique string identifier of an existing Device to become authenticated with this Certificate credential. | + **FriendlyName** | **optional.String**| Provides a human readable descriptive text for this Certificate credential, up to 256 characters long. | ### Return type @@ -313,7 +313,7 @@ Name | Type | Description | Notes ## CreateChannel -> PreviewTrustedCommsBrandedChannelChannel CreateChannel(ctx, brandedChannelSid, optional) +> PreviewTrustedCommsBrandedChannelChannel CreateChannel(ctx, BrandedChannelSid, optional) @@ -325,7 +325,7 @@ Associate a channel to a branded channel Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**brandedChannelSid** | **string**| The unique SID identifier of the Branded Channel. The given phone number is going to be assigned to this Branded Channel | +**BrandedChannelSid** | **string**| The unique SID identifier of the Branded Channel. The given phone number is going to be assigned to this Branded Channel | **optional** | ***CreateChannelOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -336,7 +336,7 @@ Optional parameters are passed through a pointer to a CreateChannelOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **phoneNumberSid** | **optional.String**| The unique SID identifier of the Phone Number of the Phone number to be assigned to the Branded Channel. | + **PhoneNumberSid** | **optional.String**| The unique SID identifier of the Phone Number of the Phone number to be assigned to the Branded Channel. | ### Return type @@ -377,13 +377,13 @@ Optional parameters are passed through a pointer to a CreateCommandOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **callbackMethod** | **optional.String**| | - **callbackUrl** | **optional.String**| | - **command** | **optional.String**| | - **commandMode** | **optional.String**| | - **device** | **optional.String**| | - **includeSid** | **optional.String**| | - **sim** | **optional.String**| | + **CallbackMethod** | **optional.String**| | + **CallbackUrl** | **optional.String**| | + **Command** | **optional.String**| | + **CommandMode** | **optional.String**| | + **Device** | **optional.String**| | + **IncludeSid** | **optional.String**| | + **Sim** | **optional.String**| | ### Return type @@ -405,7 +405,7 @@ Name | Type | Description | Notes ## CreateDeployment -> PreviewDeployedDevicesFleetDeployment CreateDeployment(ctx, fleetSid, optional) +> PreviewDeployedDevicesFleetDeployment CreateDeployment(ctx, FleetSid, optional) @@ -417,7 +417,7 @@ Create a new Deployment in the Fleet, optionally giving it a friendly name and l Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fleetSid** | **string**| | +**FleetSid** | **string**| | **optional** | ***CreateDeploymentOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -428,8 +428,8 @@ Optional parameters are passed through a pointer to a CreateDeploymentOpts struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| Provides a human readable descriptive text for this Deployment, up to 256 characters long. | - **syncServiceSid** | **optional.String**| Provides the unique string identifier of the Twilio Sync service instance that will be linked to and accessible by this Deployment. | + **FriendlyName** | **optional.String**| Provides a human readable descriptive text for this Deployment, up to 256 characters long. | + **SyncServiceSid** | **optional.String**| Provides the unique string identifier of the Twilio Sync service instance that will be linked to and accessible by this Deployment. | ### Return type @@ -451,7 +451,7 @@ Name | Type | Description | Notes ## CreateDevice -> PreviewDeployedDevicesFleetDevice CreateDevice(ctx, fleetSid, optional) +> PreviewDeployedDevicesFleetDevice CreateDevice(ctx, FleetSid, optional) @@ -463,7 +463,7 @@ Create a new Device in the Fleet, optionally giving it a unique name, friendly n Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fleetSid** | **string**| | +**FleetSid** | **string**| | **optional** | ***CreateDeviceOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -474,11 +474,11 @@ Optional parameters are passed through a pointer to a CreateDeviceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **deploymentSid** | **optional.String**| Specifies the unique string identifier of the Deployment group that this Device is going to be associated with. | - **enabled** | **optional.Bool**| | - **friendlyName** | **optional.String**| Provides a human readable descriptive text to be assigned to this Device, up to 256 characters long. | - **identity** | **optional.String**| Provides an arbitrary string identifier representing a human user to be associated with this Device, up to 256 characters long. | - **uniqueName** | **optional.String**| Provides a unique and addressable name to be assigned to this Device, to be used in addition to SID, up to 128 characters long. | + **DeploymentSid** | **optional.String**| Specifies the unique string identifier of the Deployment group that this Device is going to be associated with. | + **Enabled** | **optional.Bool**| | + **FriendlyName** | **optional.String**| Provides a human readable descriptive text to be assigned to this Device, up to 256 characters long. | + **Identity** | **optional.String**| Provides an arbitrary string identifier representing a human user to be associated with this Device, up to 256 characters long. | + **UniqueName** | **optional.String**| Provides a unique and addressable name to be assigned to this Device, to be used in addition to SID, up to 128 characters long. | ### Return type @@ -500,7 +500,7 @@ Name | Type | Description | Notes ## CreateDocument -> PreviewSyncServiceDocument CreateDocument(ctx, serviceSid, optional) +> PreviewSyncServiceDocument CreateDocument(ctx, ServiceSid, optional) @@ -510,7 +510,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | +**ServiceSid** | **string**| | **optional** | ***CreateDocumentOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -521,8 +521,8 @@ Optional parameters are passed through a pointer to a CreateDocumentOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| | - **uniqueName** | **optional.String**| | + **Data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| | + **UniqueName** | **optional.String**| | ### Return type @@ -544,7 +544,7 @@ Name | Type | Description | Notes ## CreateExportCustomJob -> PreviewBulkExportsExportExportCustomJob CreateExportCustomJob(ctx, resourceType, optional) +> PreviewBulkExportsExportExportCustomJob CreateExportCustomJob(ctx, ResourceType, optional) @@ -554,7 +554,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**resourceType** | **string**| The type of communication – Messages or Calls | +**ResourceType** | **string**| The type of communication – Messages or Calls | **optional** | ***CreateExportCustomJobOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -565,12 +565,12 @@ Optional parameters are passed through a pointer to a CreateExportCustomJobOpts Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **email** | **optional.String**| The optional email to send the completion notification to | - **endDay** | **optional.String**| The end day for the custom export specified as a string in the format of yyyy-mm-dd. End day is inclusive and must be 2 days earlier than the current UTC day. | - **friendlyName** | **optional.String**| The friendly name specified when creating the job | - **startDay** | **optional.String**| The start day for the custom export specified as a string in the format of yyyy-mm-dd | - **webhookMethod** | **optional.String**| This is the method used to call the webhook on completion of the job. If this is supplied, `WebhookUrl` must also be supplied. | - **webhookUrl** | **optional.String**| The optional webhook url called on completion of the job. If this is supplied, `WebhookMethod` must also be supplied. | + **Email** | **optional.String**| The optional email to send the completion notification to | + **EndDay** | **optional.String**| The end day for the custom export specified as a string in the format of yyyy-mm-dd. End day is inclusive and must be 2 days earlier than the current UTC day. | + **FriendlyName** | **optional.String**| The friendly name specified when creating the job | + **StartDay** | **optional.String**| The start day for the custom export specified as a string in the format of yyyy-mm-dd | + **WebhookMethod** | **optional.String**| This is the method used to call the webhook on completion of the job. If this is supplied, `WebhookUrl` must also be supplied. | + **WebhookUrl** | **optional.String**| The optional webhook url called on completion of the job. If this is supplied, `WebhookMethod` must also be supplied. | ### Return type @@ -592,7 +592,7 @@ Name | Type | Description | Notes ## CreateField -> PreviewUnderstandAssistantTaskField CreateField(ctx, assistantSid, taskSid, optional) +> PreviewUnderstandAssistantTaskField CreateField(ctx, AssistantSid, TaskSid, optional) @@ -602,8 +602,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The unique ID of the parent Assistant. | -**taskSid** | **string**| The unique ID of the Task associated with this Field. | +**AssistantSid** | **string**| The unique ID of the parent Assistant. | +**TaskSid** | **string**| The unique ID of the Task associated with this Field. | **optional** | ***CreateFieldOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -615,8 +615,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **fieldType** | **optional.String**| The unique name or sid of the FieldType. It can be any [Built-in Field Type](https://www.twilio.com/docs/assistant/api/built-in-field-types) or the unique_name or the Field Type sid of a custom Field Type. | - **uniqueName** | **optional.String**| A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. | + **FieldType** | **optional.String**| The unique name or sid of the FieldType. It can be any [Built-in Field Type](https://www.twilio.com/docs/assistant/api/built-in-field-types) or the unique_name or the Field Type sid of a custom Field Type. | + **UniqueName** | **optional.String**| A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. | ### Return type @@ -638,7 +638,7 @@ Name | Type | Description | Notes ## CreateFieldType -> PreviewUnderstandAssistantFieldType CreateFieldType(ctx, assistantSid, optional) +> PreviewUnderstandAssistantFieldType CreateFieldType(ctx, AssistantSid, optional) @@ -648,7 +648,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| | +**AssistantSid** | **string**| | **optional** | ***CreateFieldTypeOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -659,8 +659,8 @@ Optional parameters are passed through a pointer to a CreateFieldTypeOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| A user-provided string that identifies this resource. It is non-unique and can up to 255 characters long. | - **uniqueName** | **optional.String**| A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. | + **FriendlyName** | **optional.String**| A user-provided string that identifies this resource. It is non-unique and can up to 255 characters long. | + **UniqueName** | **optional.String**| A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. | ### Return type @@ -682,7 +682,7 @@ Name | Type | Description | Notes ## CreateFieldValue -> PreviewUnderstandAssistantFieldTypeFieldValue CreateFieldValue(ctx, assistantSid, fieldTypeSid, optional) +> PreviewUnderstandAssistantFieldTypeFieldValue CreateFieldValue(ctx, AssistantSid, FieldTypeSid, optional) @@ -692,8 +692,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| | -**fieldTypeSid** | **string**| | +**AssistantSid** | **string**| | +**FieldTypeSid** | **string**| | **optional** | ***CreateFieldValueOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -705,9 +705,9 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **language** | **optional.String**| An ISO language-country string of the value. | - **synonymOf** | **optional.String**| A value that indicates this field value is a synonym of. Empty if the value is not a synonym. | - **value** | **optional.String**| A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. | + **Language** | **optional.String**| An ISO language-country string of the value. | + **SynonymOf** | **optional.String**| A value that indicates this field value is a synonym of. Empty if the value is not a synonym. | + **Value** | **optional.String**| A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. | ### Return type @@ -750,7 +750,7 @@ Optional parameters are passed through a pointer to a CreateFleetOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| Provides a human readable descriptive text for this Fleet, up to 256 characters long. | + **FriendlyName** | **optional.String**| Provides a human readable descriptive text for this Fleet, up to 256 characters long. | ### Return type @@ -793,23 +793,23 @@ Optional parameters are passed through a pointer to a CreateHostedNumberOrderOpt Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **accountSid** | **optional.String**| This defaults to the AccountSid of the authorization the user is using. This can be provided to specify a subaccount to add the HostedNumberOrder to. | - **addressSid** | **optional.String**| Optional. A 34 character string that uniquely identifies the Address resource that represents the address of the owner of this phone number. | - **ccEmails** | [**optional.Interface of []string**](string.md)| Optional. A list of emails that the LOA document for this HostedNumberOrder will be carbon copied to. | - **email** | **optional.String**| Optional. Email of the owner of this phone number that is being hosted. | - **friendlyName** | **optional.String**| A 64 character string that is a human readable text that describes this resource. | - **phoneNumber** | **optional.String**| The number to host in [+E.164](https://en.wikipedia.org/wiki/E.164) format | - **smsApplicationSid** | **optional.String**| Optional. The 34 character sid of the application Twilio should use to handle SMS messages sent to this number. If a `SmsApplicationSid` is present, Twilio will ignore all of the SMS urls above and use those set on the application. | - **smsCapability** | **optional.Bool**| Used to specify that the SMS capability will be hosted on Twilio's platform. | - **smsFallbackMethod** | **optional.String**| The HTTP method that should be used to request the SmsFallbackUrl. Must be either `GET` or `POST`. This will be copied onto the IncomingPhoneNumber resource. | - **smsFallbackUrl** | **optional.String**| A URL that Twilio will request if an error occurs requesting or executing the TwiML defined by SmsUrl. This will be copied onto the IncomingPhoneNumber resource. | - **smsMethod** | **optional.String**| The HTTP method that should be used to request the SmsUrl. Must be either `GET` or `POST`. This will be copied onto the IncomingPhoneNumber resource. | - **smsUrl** | **optional.String**| The URL that Twilio should request when somebody sends an SMS to the phone number. This will be copied onto the IncomingPhoneNumber resource. | - **statusCallbackMethod** | **optional.String**| Optional. The Status Callback Method attached to the IncomingPhoneNumber resource. | - **statusCallbackUrl** | **optional.String**| Optional. The Status Callback URL attached to the IncomingPhoneNumber resource. | - **uniqueName** | **optional.String**| Optional. Provides a unique and addressable name to be assigned to this HostedNumberOrder, assigned by the developer, to be optionally used in addition to SID. | - **verificationDocumentSid** | **optional.String**| Optional. The unique sid identifier of the Identity Document that represents the document for verifying ownership of the number to be hosted. Required when VerificationType is phone-bill. | - **verificationType** | **optional.String**| Optional. The method used for verifying ownership of the number to be hosted. One of phone-call (default) or phone-bill. | + **AccountSid** | **optional.String**| This defaults to the AccountSid of the authorization the user is using. This can be provided to specify a subaccount to add the HostedNumberOrder to. | + **AddressSid** | **optional.String**| Optional. A 34 character string that uniquely identifies the Address resource that represents the address of the owner of this phone number. | + **CcEmails** | [**optional.Interface of []string**](string.md)| Optional. A list of emails that the LOA document for this HostedNumberOrder will be carbon copied to. | + **Email** | **optional.String**| Optional. Email of the owner of this phone number that is being hosted. | + **FriendlyName** | **optional.String**| A 64 character string that is a human readable text that describes this resource. | + **PhoneNumber** | **optional.String**| The number to host in [+E.164](https://en.wikipedia.org/wiki/E.164) format | + **SmsApplicationSid** | **optional.String**| Optional. The 34 character sid of the application Twilio should use to handle SMS messages sent to this number. If a `SmsApplicationSid` is present, Twilio will ignore all of the SMS urls above and use those set on the application. | + **SmsCapability** | **optional.Bool**| Used to specify that the SMS capability will be hosted on Twilio's platform. | + **SmsFallbackMethod** | **optional.String**| The HTTP method that should be used to request the SmsFallbackUrl. Must be either `GET` or `POST`. This will be copied onto the IncomingPhoneNumber resource. | + **SmsFallbackUrl** | **optional.String**| A URL that Twilio will request if an error occurs requesting or executing the TwiML defined by SmsUrl. This will be copied onto the IncomingPhoneNumber resource. | + **SmsMethod** | **optional.String**| The HTTP method that should be used to request the SmsUrl. Must be either `GET` or `POST`. This will be copied onto the IncomingPhoneNumber resource. | + **SmsUrl** | **optional.String**| The URL that Twilio should request when somebody sends an SMS to the phone number. This will be copied onto the IncomingPhoneNumber resource. | + **StatusCallbackMethod** | **optional.String**| Optional. The Status Callback Method attached to the IncomingPhoneNumber resource. | + **StatusCallbackUrl** | **optional.String**| Optional. The Status Callback URL attached to the IncomingPhoneNumber resource. | + **UniqueName** | **optional.String**| Optional. Provides a unique and addressable name to be assigned to this HostedNumberOrder, assigned by the developer, to be optionally used in addition to SID. | + **VerificationDocumentSid** | **optional.String**| Optional. The unique sid identifier of the Identity Document that represents the document for verifying ownership of the number to be hosted. Required when VerificationType is phone-bill. | + **VerificationType** | **optional.String**| Optional. The method used for verifying ownership of the number to be hosted. One of phone-call (default) or phone-bill. | ### Return type @@ -852,10 +852,10 @@ Optional parameters are passed through a pointer to a CreateInstalledAddOnOpts s Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **acceptTermsOfService** | **optional.Bool**| Whether the Terms of Service were accepted. | - **availableAddOnSid** | **optional.String**| The SID of the AvaliableAddOn to install. | - **configuration** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON object that represents the configuration of the new Add-on being installed. | - **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. This value must be unique within the Account. | + **AcceptTermsOfService** | **optional.Bool**| Whether the Terms of Service were accepted. | + **AvailableAddOnSid** | **optional.String**| The SID of the AvaliableAddOn to install. | + **Configuration** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON object that represents the configuration of the new Add-on being installed. | + **UniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. This value must be unique within the Account. | ### Return type @@ -877,7 +877,7 @@ Name | Type | Description | Notes ## CreateKey -> PreviewDeployedDevicesFleetKey CreateKey(ctx, fleetSid, optional) +> PreviewDeployedDevicesFleetKey CreateKey(ctx, FleetSid, optional) @@ -889,7 +889,7 @@ Create a new Key credential in the Fleet, optionally giving it a friendly name a Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fleetSid** | **string**| | +**FleetSid** | **string**| | **optional** | ***CreateKeyOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -900,8 +900,8 @@ Optional parameters are passed through a pointer to a CreateKeyOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **deviceSid** | **optional.String**| Provides the unique string identifier of an existing Device to become authenticated with this Key credential. | - **friendlyName** | **optional.String**| Provides a human readable descriptive text for this Key credential, up to 256 characters long. | + **DeviceSid** | **optional.String**| Provides the unique string identifier of an existing Device to become authenticated with this Key credential. | + **FriendlyName** | **optional.String**| Provides a human readable descriptive text for this Key credential, up to 256 characters long. | ### Return type @@ -923,7 +923,7 @@ Name | Type | Description | Notes ## CreateModelBuild -> PreviewUnderstandAssistantModelBuild CreateModelBuild(ctx, assistantSid, optional) +> PreviewUnderstandAssistantModelBuild CreateModelBuild(ctx, AssistantSid, optional) @@ -933,7 +933,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| | +**AssistantSid** | **string**| | **optional** | ***CreateModelBuildOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -944,8 +944,8 @@ Optional parameters are passed through a pointer to a CreateModelBuildOpts struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **statusCallback** | **optional.String**| | - **uniqueName** | **optional.String**| A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. For example: v0.1 | + **StatusCallback** | **optional.String**| | + **UniqueName** | **optional.String**| A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. For example: v0.1 | ### Return type @@ -967,7 +967,7 @@ Name | Type | Description | Notes ## CreateQuery -> PreviewUnderstandAssistantQuery CreateQuery(ctx, assistantSid, optional) +> PreviewUnderstandAssistantQuery CreateQuery(ctx, AssistantSid, optional) @@ -977,7 +977,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The unique ID of the parent Assistant. | +**AssistantSid** | **string**| The unique ID of the parent Assistant. | **optional** | ***CreateQueryOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -988,11 +988,11 @@ Optional parameters are passed through a pointer to a CreateQueryOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **field** | **optional.String**| Constraints the query to a given Field with an task. Useful when you know the Field you are expecting. It accepts one field in the format *task-unique-name-1*:*field-unique-name* | - **language** | **optional.String**| An ISO language-country string of the sample. | - **modelBuild** | **optional.String**| The Model Build Sid or unique name of the Model Build to be queried. | - **query** | **optional.String**| A user-provided string that uniquely identifies this resource as an alternative to the sid. It can be up to 2048 characters long. | - **tasks** | **optional.String**| Constraints the query to a set of tasks. Useful when you need to constrain the paths the user can take. Tasks should be comma separated *task-unique-name-1*, *task-unique-name-2* | + **Field** | **optional.String**| Constraints the query to a given Field with an task. Useful when you know the Field you are expecting. It accepts one field in the format *task-unique-name-1*:*field-unique-name* | + **Language** | **optional.String**| An ISO language-country string of the sample. | + **ModelBuild** | **optional.String**| The Model Build Sid or unique name of the Model Build to be queried. | + **Query** | **optional.String**| A user-provided string that uniquely identifies this resource as an alternative to the sid. It can be up to 2048 characters long. | + **Tasks** | **optional.String**| Constraints the query to a set of tasks. Useful when you need to constrain the paths the user can take. Tasks should be comma separated *task-unique-name-1*, *task-unique-name-2* | ### Return type @@ -1033,16 +1033,16 @@ Optional parameters are passed through a pointer to a CreateRatePlanOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **commandsEnabled** | **optional.Bool**| | - **dataEnabled** | **optional.Bool**| | - **dataLimit** | **optional.Int32**| | - **dataMetering** | **optional.String**| | - **friendlyName** | **optional.String**| | - **internationalRoaming** | [**optional.Interface of []string**](string.md)| | - **messagingEnabled** | **optional.Bool**| | - **nationalRoamingEnabled** | **optional.Bool**| | - **uniqueName** | **optional.String**| | - **voiceEnabled** | **optional.Bool**| | + **CommandsEnabled** | **optional.Bool**| | + **DataEnabled** | **optional.Bool**| | + **DataLimit** | **optional.Int32**| | + **DataMetering** | **optional.String**| | + **FriendlyName** | **optional.String**| | + **InternationalRoaming** | [**optional.Interface of []string**](string.md)| | + **MessagingEnabled** | **optional.Bool**| | + **NationalRoamingEnabled** | **optional.Bool**| | + **UniqueName** | **optional.String**| | + **VoiceEnabled** | **optional.Bool**| | ### Return type @@ -1064,7 +1064,7 @@ Name | Type | Description | Notes ## CreateSample -> PreviewUnderstandAssistantTaskSample CreateSample(ctx, assistantSid, taskSid, optional) +> PreviewUnderstandAssistantTaskSample CreateSample(ctx, AssistantSid, TaskSid, optional) @@ -1074,8 +1074,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The unique ID of the Assistant. | -**taskSid** | **string**| The unique ID of the Task associated with this Sample. | +**AssistantSid** | **string**| The unique ID of the Assistant. | +**TaskSid** | **string**| The unique ID of the Task associated with this Sample. | **optional** | ***CreateSampleOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1087,9 +1087,9 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **language** | **optional.String**| An ISO language-country string of the sample. | - **sourceChannel** | **optional.String**| The communication channel the sample was captured. It can be: *voice*, *sms*, *chat*, *alexa*, *google-assistant*, or *slack*. If not included the value will be null | - **taggedText** | **optional.String**| The text example of how end-users may express this task. The sample may contain Field tag blocks. | + **Language** | **optional.String**| An ISO language-country string of the sample. | + **SourceChannel** | **optional.String**| The communication channel the sample was captured. It can be: *voice*, *sms*, *chat*, *alexa*, *google-assistant*, or *slack*. If not included the value will be null | + **TaggedText** | **optional.String**| The text example of how end-users may express this task. The sample may contain Field tag blocks. | ### Return type @@ -1130,10 +1130,10 @@ Optional parameters are passed through a pointer to a CreateServiceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **aclEnabled** | **optional.Bool**| | - **friendlyName** | **optional.String**| | - **reachabilityWebhooksEnabled** | **optional.Bool**| | - **webhookUrl** | **optional.String**| | + **AclEnabled** | **optional.Bool**| | + **FriendlyName** | **optional.String**| | + **ReachabilityWebhooksEnabled** | **optional.Bool**| | + **WebhookUrl** | **optional.String**| | ### Return type @@ -1155,7 +1155,7 @@ Name | Type | Description | Notes ## CreateSyncList -> PreviewSyncServiceSyncList CreateSyncList(ctx, serviceSid, optional) +> PreviewSyncServiceSyncList CreateSyncList(ctx, ServiceSid, optional) @@ -1165,7 +1165,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | +**ServiceSid** | **string**| | **optional** | ***CreateSyncListOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1176,7 +1176,7 @@ Optional parameters are passed through a pointer to a CreateSyncListOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **uniqueName** | **optional.String**| | + **UniqueName** | **optional.String**| | ### Return type @@ -1198,7 +1198,7 @@ Name | Type | Description | Notes ## CreateSyncListItem -> PreviewSyncServiceSyncListSyncListItem CreateSyncListItem(ctx, serviceSid, listSid, optional) +> PreviewSyncServiceSyncListSyncListItem CreateSyncListItem(ctx, ServiceSid, ListSid, optional) @@ -1208,8 +1208,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**listSid** | **string**| | +**ServiceSid** | **string**| | +**ListSid** | **string**| | **optional** | ***CreateSyncListItemOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1221,7 +1221,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| | + **Data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| | ### Return type @@ -1243,7 +1243,7 @@ Name | Type | Description | Notes ## CreateSyncMap -> PreviewSyncServiceSyncMap CreateSyncMap(ctx, serviceSid, optional) +> PreviewSyncServiceSyncMap CreateSyncMap(ctx, ServiceSid, optional) @@ -1253,7 +1253,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | +**ServiceSid** | **string**| | **optional** | ***CreateSyncMapOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1264,7 +1264,7 @@ Optional parameters are passed through a pointer to a CreateSyncMapOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **uniqueName** | **optional.String**| | + **UniqueName** | **optional.String**| | ### Return type @@ -1286,7 +1286,7 @@ Name | Type | Description | Notes ## CreateSyncMapItem -> PreviewSyncServiceSyncMapSyncMapItem CreateSyncMapItem(ctx, serviceSid, mapSid, optional) +> PreviewSyncServiceSyncMapSyncMapItem CreateSyncMapItem(ctx, ServiceSid, MapSid, optional) @@ -1296,8 +1296,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**mapSid** | **string**| | +**ServiceSid** | **string**| | +**MapSid** | **string**| | **optional** | ***CreateSyncMapItemOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1309,8 +1309,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| | - **key** | **optional.String**| | + **Data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| | + **Key** | **optional.String**| | ### Return type @@ -1332,7 +1332,7 @@ Name | Type | Description | Notes ## CreateTask -> PreviewUnderstandAssistantTask CreateTask(ctx, assistantSid, optional) +> PreviewUnderstandAssistantTask CreateTask(ctx, AssistantSid, optional) @@ -1342,7 +1342,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The unique ID of the Assistant. | +**AssistantSid** | **string**| The unique ID of the Assistant. | **optional** | ***CreateTaskOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1353,10 +1353,10 @@ Optional parameters are passed through a pointer to a CreateTaskOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **actions** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A user-provided JSON object encoded as a string to specify the actions for this task. It is optional and non-unique. | - **actionsUrl** | **optional.String**| User-provided HTTP endpoint where from the assistant fetches actions | - **friendlyName** | **optional.String**| A user-provided string that identifies this resource. It is non-unique and can up to 255 characters long. | - **uniqueName** | **optional.String**| A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. | + **Actions** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A user-provided JSON object encoded as a string to specify the actions for this task. It is optional and non-unique. | + **ActionsUrl** | **optional.String**| User-provided HTTP endpoint where from the assistant fetches actions | + **FriendlyName** | **optional.String**| A user-provided string that identifies this resource. It is non-unique and can up to 255 characters long. | + **UniqueName** | **optional.String**| A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. | ### Return type @@ -1378,7 +1378,7 @@ Name | Type | Description | Notes ## DeleteAssistant -> DeleteAssistant(ctx, sid) +> DeleteAssistant(ctx, Sid) @@ -1388,7 +1388,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | ### Return type @@ -1410,7 +1410,7 @@ Name | Type | Description | Notes ## DeleteCertificate -> DeleteCertificate(ctx, fleetSid, sid) +> DeleteCertificate(ctx, FleetSid, Sid) @@ -1422,8 +1422,8 @@ Unregister a specific Certificate credential from the Fleet, effectively disallo Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fleetSid** | **string**| | -**sid** | **string**| Provides a 34 character string that uniquely identifies the requested Certificate credential resource. | +**FleetSid** | **string**| | +**Sid** | **string**| Provides a 34 character string that uniquely identifies the requested Certificate credential resource. | ### Return type @@ -1445,7 +1445,7 @@ Name | Type | Description | Notes ## DeleteDeployment -> DeleteDeployment(ctx, fleetSid, sid) +> DeleteDeployment(ctx, FleetSid, Sid) @@ -1457,8 +1457,8 @@ Delete a specific Deployment from the Fleet, leaving associated devices effectiv Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fleetSid** | **string**| | -**sid** | **string**| Provides a 34 character string that uniquely identifies the requested Deployment resource. | +**FleetSid** | **string**| | +**Sid** | **string**| Provides a 34 character string that uniquely identifies the requested Deployment resource. | ### Return type @@ -1480,7 +1480,7 @@ Name | Type | Description | Notes ## DeleteDevice -> DeleteDevice(ctx, fleetSid, sid) +> DeleteDevice(ctx, FleetSid, Sid) @@ -1492,8 +1492,8 @@ Delete a specific Device from the Fleet, also removing it from associated Deploy Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fleetSid** | **string**| | -**sid** | **string**| Provides a 34 character string that uniquely identifies the requested Device resource. | +**FleetSid** | **string**| | +**Sid** | **string**| Provides a 34 character string that uniquely identifies the requested Device resource. | ### Return type @@ -1515,7 +1515,7 @@ Name | Type | Description | Notes ## DeleteDocument -> DeleteDocument(ctx, serviceSid, sid, optional) +> DeleteDocument(ctx, ServiceSid, Sid, optional) @@ -1525,8 +1525,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**sid** | **string**| | +**ServiceSid** | **string**| | +**Sid** | **string**| | **optional** | ***DeleteDocumentOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1538,7 +1538,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ifMatch** | **optional.String**| The If-Match HTTP request header | + **IfMatch** | **optional.String**| The If-Match HTTP request header | ### Return type @@ -1560,7 +1560,7 @@ Name | Type | Description | Notes ## DeleteDocumentPermission -> DeleteDocumentPermission(ctx, serviceSid, documentSid, identity) +> DeleteDocumentPermission(ctx, ServiceSid, DocumentSid, Identity) @@ -1572,9 +1572,9 @@ Delete a specific Sync Document Permission. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**documentSid** | **string**| Identifier of the Sync Document. Either a SID or a unique name. | -**identity** | **string**| Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. | +**ServiceSid** | **string**| | +**DocumentSid** | **string**| Identifier of the Sync Document. Either a SID or a unique name. | +**Identity** | **string**| Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. | ### Return type @@ -1596,7 +1596,7 @@ Name | Type | Description | Notes ## DeleteField -> DeleteField(ctx, assistantSid, taskSid, sid) +> DeleteField(ctx, AssistantSid, TaskSid, Sid) @@ -1606,9 +1606,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The unique ID of the Assistant. | -**taskSid** | **string**| The unique ID of the Task associated with this Field. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**AssistantSid** | **string**| The unique ID of the Assistant. | +**TaskSid** | **string**| The unique ID of the Task associated with this Field. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | ### Return type @@ -1630,7 +1630,7 @@ Name | Type | Description | Notes ## DeleteFieldType -> DeleteFieldType(ctx, assistantSid, sid) +> DeleteFieldType(ctx, AssistantSid, Sid) @@ -1640,8 +1640,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| | -**sid** | **string**| | +**AssistantSid** | **string**| | +**Sid** | **string**| | ### Return type @@ -1663,7 +1663,7 @@ Name | Type | Description | Notes ## DeleteFieldValue -> DeleteFieldValue(ctx, assistantSid, fieldTypeSid, sid) +> DeleteFieldValue(ctx, AssistantSid, FieldTypeSid, Sid) @@ -1673,9 +1673,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| | -**fieldTypeSid** | **string**| | -**sid** | **string**| | +**AssistantSid** | **string**| | +**FieldTypeSid** | **string**| | +**Sid** | **string**| | ### Return type @@ -1697,7 +1697,7 @@ Name | Type | Description | Notes ## DeleteFleet -> DeleteFleet(ctx, sid) +> DeleteFleet(ctx, Sid) @@ -1709,7 +1709,7 @@ Delete a specific Fleet from your account, also destroys all nested resources: D Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| Provides a 34 character string that uniquely identifies the requested Fleet resource. | +**Sid** | **string**| Provides a 34 character string that uniquely identifies the requested Fleet resource. | ### Return type @@ -1731,7 +1731,7 @@ Name | Type | Description | Notes ## DeleteHostedNumberOrder -> DeleteHostedNumberOrder(ctx, sid) +> DeleteHostedNumberOrder(ctx, Sid) @@ -1743,7 +1743,7 @@ Cancel the HostedNumberOrder (only available when the status is in `received`). Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| A 34 character string that uniquely identifies this HostedNumberOrder. | +**Sid** | **string**| A 34 character string that uniquely identifies this HostedNumberOrder. | ### Return type @@ -1765,7 +1765,7 @@ Name | Type | Description | Notes ## DeleteInstalledAddOn -> DeleteInstalledAddOn(ctx, sid) +> DeleteInstalledAddOn(ctx, Sid) @@ -1777,7 +1777,7 @@ Remove an Add-on installation from your account Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the InstalledAddOn resource to delete. | +**Sid** | **string**| The SID of the InstalledAddOn resource to delete. | ### Return type @@ -1799,7 +1799,7 @@ Name | Type | Description | Notes ## DeleteJob -> DeleteJob(ctx, jobSid) +> DeleteJob(ctx, JobSid) @@ -1809,7 +1809,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**jobSid** | **string**| The unique string that that we created to identify the Bulk Export job | +**JobSid** | **string**| The unique string that that we created to identify the Bulk Export job | ### Return type @@ -1831,7 +1831,7 @@ Name | Type | Description | Notes ## DeleteKey -> DeleteKey(ctx, fleetSid, sid) +> DeleteKey(ctx, FleetSid, Sid) @@ -1843,8 +1843,8 @@ Delete a specific Key credential from the Fleet, effectively disallowing any inb Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fleetSid** | **string**| | -**sid** | **string**| Provides a 34 character string that uniquely identifies the requested Key credential resource. | +**FleetSid** | **string**| | +**Sid** | **string**| Provides a 34 character string that uniquely identifies the requested Key credential resource. | ### Return type @@ -1866,7 +1866,7 @@ Name | Type | Description | Notes ## DeleteModelBuild -> DeleteModelBuild(ctx, assistantSid, sid) +> DeleteModelBuild(ctx, AssistantSid, Sid) @@ -1876,8 +1876,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| | -**sid** | **string**| | +**AssistantSid** | **string**| | +**Sid** | **string**| | ### Return type @@ -1899,7 +1899,7 @@ Name | Type | Description | Notes ## DeleteQuery -> DeleteQuery(ctx, assistantSid, sid) +> DeleteQuery(ctx, AssistantSid, Sid) @@ -1909,8 +1909,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The unique ID of the Assistant. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**AssistantSid** | **string**| The unique ID of the Assistant. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | ### Return type @@ -1932,7 +1932,7 @@ Name | Type | Description | Notes ## DeleteRatePlan -> DeleteRatePlan(ctx, sid) +> DeleteRatePlan(ctx, Sid) @@ -1942,7 +1942,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| | +**Sid** | **string**| | ### Return type @@ -1964,7 +1964,7 @@ Name | Type | Description | Notes ## DeleteSample -> DeleteSample(ctx, assistantSid, taskSid, sid) +> DeleteSample(ctx, AssistantSid, TaskSid, Sid) @@ -1974,9 +1974,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The unique ID of the Assistant. | -**taskSid** | **string**| The unique ID of the Task associated with this Sample. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**AssistantSid** | **string**| The unique ID of the Assistant. | +**TaskSid** | **string**| The unique ID of the Task associated with this Sample. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | ### Return type @@ -1998,7 +1998,7 @@ Name | Type | Description | Notes ## DeleteService -> DeleteService(ctx, sid) +> DeleteService(ctx, Sid) @@ -2008,7 +2008,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| | +**Sid** | **string**| | ### Return type @@ -2030,7 +2030,7 @@ Name | Type | Description | Notes ## DeleteSyncList -> DeleteSyncList(ctx, serviceSid, sid) +> DeleteSyncList(ctx, ServiceSid, Sid) @@ -2040,8 +2040,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**sid** | **string**| | +**ServiceSid** | **string**| | +**Sid** | **string**| | ### Return type @@ -2063,7 +2063,7 @@ Name | Type | Description | Notes ## DeleteSyncListItem -> DeleteSyncListItem(ctx, serviceSid, listSid, index, optional) +> DeleteSyncListItem(ctx, ServiceSid, ListSid, Index, optional) @@ -2073,9 +2073,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**listSid** | **string**| | -**index** | **int32**| | +**ServiceSid** | **string**| | +**ListSid** | **string**| | +**Index** | **int32**| | **optional** | ***DeleteSyncListItemOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2088,7 +2088,7 @@ Name | Type | Description | Notes - **ifMatch** | **optional.String**| The If-Match HTTP request header | + **IfMatch** | **optional.String**| The If-Match HTTP request header | ### Return type @@ -2110,7 +2110,7 @@ Name | Type | Description | Notes ## DeleteSyncListPermission -> DeleteSyncListPermission(ctx, serviceSid, listSid, identity) +> DeleteSyncListPermission(ctx, ServiceSid, ListSid, Identity) @@ -2122,9 +2122,9 @@ Delete a specific Sync List Permission. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**listSid** | **string**| Identifier of the Sync List. Either a SID or a unique name. | -**identity** | **string**| Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. | +**ServiceSid** | **string**| | +**ListSid** | **string**| Identifier of the Sync List. Either a SID or a unique name. | +**Identity** | **string**| Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. | ### Return type @@ -2146,7 +2146,7 @@ Name | Type | Description | Notes ## DeleteSyncMap -> DeleteSyncMap(ctx, serviceSid, sid) +> DeleteSyncMap(ctx, ServiceSid, Sid) @@ -2156,8 +2156,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**sid** | **string**| | +**ServiceSid** | **string**| | +**Sid** | **string**| | ### Return type @@ -2179,7 +2179,7 @@ Name | Type | Description | Notes ## DeleteSyncMapItem -> DeleteSyncMapItem(ctx, serviceSid, mapSid, key, optional) +> DeleteSyncMapItem(ctx, ServiceSid, MapSid, Key, optional) @@ -2189,9 +2189,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**mapSid** | **string**| | -**key** | **string**| | +**ServiceSid** | **string**| | +**MapSid** | **string**| | +**Key** | **string**| | **optional** | ***DeleteSyncMapItemOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2204,7 +2204,7 @@ Name | Type | Description | Notes - **ifMatch** | **optional.String**| The If-Match HTTP request header | + **IfMatch** | **optional.String**| The If-Match HTTP request header | ### Return type @@ -2226,7 +2226,7 @@ Name | Type | Description | Notes ## DeleteSyncMapPermission -> DeleteSyncMapPermission(ctx, serviceSid, mapSid, identity) +> DeleteSyncMapPermission(ctx, ServiceSid, MapSid, Identity) @@ -2238,9 +2238,9 @@ Delete a specific Sync Map Permission. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**mapSid** | **string**| Identifier of the Sync Map. Either a SID or a unique name. | -**identity** | **string**| Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. | +**ServiceSid** | **string**| | +**MapSid** | **string**| Identifier of the Sync Map. Either a SID or a unique name. | +**Identity** | **string**| Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. | ### Return type @@ -2262,7 +2262,7 @@ Name | Type | Description | Notes ## DeleteTask -> DeleteTask(ctx, assistantSid, sid) +> DeleteTask(ctx, AssistantSid, Sid) @@ -2272,8 +2272,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The unique ID of the Assistant. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**AssistantSid** | **string**| The unique ID of the Assistant. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | ### Return type @@ -2295,7 +2295,7 @@ Name | Type | Description | Notes ## FetchAssistant -> PreviewUnderstandAssistant FetchAssistant(ctx, sid) +> PreviewUnderstandAssistant FetchAssistant(ctx, Sid) @@ -2305,7 +2305,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | ### Return type @@ -2327,7 +2327,7 @@ Name | Type | Description | Notes ## FetchAssistantFallbackActions -> PreviewUnderstandAssistantAssistantFallbackActions FetchAssistantFallbackActions(ctx, assistantSid) +> PreviewUnderstandAssistantAssistantFallbackActions FetchAssistantFallbackActions(ctx, AssistantSid) @@ -2337,7 +2337,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| | +**AssistantSid** | **string**| | ### Return type @@ -2359,7 +2359,7 @@ Name | Type | Description | Notes ## FetchAssistantInitiationActions -> PreviewUnderstandAssistantAssistantInitiationActions FetchAssistantInitiationActions(ctx, assistantSid) +> PreviewUnderstandAssistantAssistantInitiationActions FetchAssistantInitiationActions(ctx, AssistantSid) @@ -2369,7 +2369,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| | +**AssistantSid** | **string**| | ### Return type @@ -2391,7 +2391,7 @@ Name | Type | Description | Notes ## FetchAuthorizationDocument -> PreviewHostedNumbersAuthorizationDocument FetchAuthorizationDocument(ctx, sid) +> PreviewHostedNumbersAuthorizationDocument FetchAuthorizationDocument(ctx, Sid) @@ -2403,7 +2403,7 @@ Fetch a specific AuthorizationDocument. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| A 34 character string that uniquely identifies this AuthorizationDocument. | +**Sid** | **string**| A 34 character string that uniquely identifies this AuthorizationDocument. | ### Return type @@ -2425,7 +2425,7 @@ Name | Type | Description | Notes ## FetchAvailableAddOn -> PreviewMarketplaceAvailableAddOn FetchAvailableAddOn(ctx, sid) +> PreviewMarketplaceAvailableAddOn FetchAvailableAddOn(ctx, Sid) @@ -2437,7 +2437,7 @@ Fetch an instance of an Add-on currently available to be installed. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the AvailableAddOn resource to fetch. | +**Sid** | **string**| The SID of the AvailableAddOn resource to fetch. | ### Return type @@ -2459,7 +2459,7 @@ Name | Type | Description | Notes ## FetchAvailableAddOnExtension -> PreviewMarketplaceAvailableAddOnAvailableAddOnExtension FetchAvailableAddOnExtension(ctx, availableAddOnSid, sid) +> PreviewMarketplaceAvailableAddOnAvailableAddOnExtension FetchAvailableAddOnExtension(ctx, AvailableAddOnSid, Sid) @@ -2471,8 +2471,8 @@ Fetch an instance of an Extension for the Available Add-on. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**availableAddOnSid** | **string**| The SID of the AvailableAddOn resource with the extension to fetch. | -**sid** | **string**| The SID of the AvailableAddOn Extension resource to fetch. | +**AvailableAddOnSid** | **string**| The SID of the AvailableAddOn resource with the extension to fetch. | +**Sid** | **string**| The SID of the AvailableAddOn Extension resource to fetch. | ### Return type @@ -2494,7 +2494,7 @@ Name | Type | Description | Notes ## FetchBrandedChannel -> PreviewTrustedCommsBrandedChannel FetchBrandedChannel(ctx, sid) +> PreviewTrustedCommsBrandedChannel FetchBrandedChannel(ctx, Sid) @@ -2506,7 +2506,7 @@ Fetch a specific Branded Channel. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The unique SID identifier of the Branded Channel. | +**Sid** | **string**| The unique SID identifier of the Branded Channel. | ### Return type @@ -2549,7 +2549,7 @@ Optional parameters are passed through a pointer to a FetchBrandsInformationOpts Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ifNoneMatch** | **optional.String**| The If-None-Match HTTP request header | + **IfNoneMatch** | **optional.String**| The If-None-Match HTTP request header | ### Return type @@ -2571,7 +2571,7 @@ Name | Type | Description | Notes ## FetchCertificate -> PreviewDeployedDevicesFleetCertificate FetchCertificate(ctx, fleetSid, sid) +> PreviewDeployedDevicesFleetCertificate FetchCertificate(ctx, FleetSid, Sid) @@ -2583,8 +2583,8 @@ Fetch information about a specific Certificate credential in the Fleet. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fleetSid** | **string**| | -**sid** | **string**| Provides a 34 character string that uniquely identifies the requested Certificate credential resource. | +**FleetSid** | **string**| | +**Sid** | **string**| Provides a 34 character string that uniquely identifies the requested Certificate credential resource. | ### Return type @@ -2606,7 +2606,7 @@ Name | Type | Description | Notes ## FetchCommand -> PreviewWirelessCommand FetchCommand(ctx, sid) +> PreviewWirelessCommand FetchCommand(ctx, Sid) @@ -2616,7 +2616,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| | +**Sid** | **string**| | ### Return type @@ -2659,7 +2659,7 @@ Optional parameters are passed through a pointer to a FetchCpsOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xXcnamSensitivePhoneNumber** | **optional.String**| The X-Xcnam-Sensitive-Phone-Number HTTP request header | + **XXcnamSensitivePhoneNumber** | **optional.String**| The X-Xcnam-Sensitive-Phone-Number HTTP request header | ### Return type @@ -2702,8 +2702,8 @@ Optional parameters are passed through a pointer to a FetchCurrentCallOpts struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **xXcnamSensitivePhoneNumberFrom** | **optional.String**| The X-Xcnam-Sensitive-Phone-Number-From HTTP request header | - **xXcnamSensitivePhoneNumberTo** | **optional.String**| The X-Xcnam-Sensitive-Phone-Number-To HTTP request header | + **XXcnamSensitivePhoneNumberFrom** | **optional.String**| The X-Xcnam-Sensitive-Phone-Number-From HTTP request header | + **XXcnamSensitivePhoneNumberTo** | **optional.String**| The X-Xcnam-Sensitive-Phone-Number-To HTTP request header | ### Return type @@ -2725,7 +2725,7 @@ Name | Type | Description | Notes ## FetchDay -> FetchDay(ctx, resourceType, day) +> FetchDay(ctx, ResourceType, Day) @@ -2737,8 +2737,8 @@ Fetch a specific Day. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**resourceType** | **string**| The type of communication – Messages, Calls | -**day** | **string**| The ISO 8601 format date of the resources in the file, for a UTC day | +**ResourceType** | **string**| The type of communication – Messages, Calls | +**Day** | **string**| The ISO 8601 format date of the resources in the file, for a UTC day | ### Return type @@ -2760,7 +2760,7 @@ Name | Type | Description | Notes ## FetchDeployment -> PreviewDeployedDevicesFleetDeployment FetchDeployment(ctx, fleetSid, sid) +> PreviewDeployedDevicesFleetDeployment FetchDeployment(ctx, FleetSid, Sid) @@ -2772,8 +2772,8 @@ Fetch information about a specific Deployment in the Fleet. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fleetSid** | **string**| | -**sid** | **string**| Provides a 34 character string that uniquely identifies the requested Deployment resource. | +**FleetSid** | **string**| | +**Sid** | **string**| Provides a 34 character string that uniquely identifies the requested Deployment resource. | ### Return type @@ -2795,7 +2795,7 @@ Name | Type | Description | Notes ## FetchDevice -> PreviewDeployedDevicesFleetDevice FetchDevice(ctx, fleetSid, sid) +> PreviewDeployedDevicesFleetDevice FetchDevice(ctx, FleetSid, Sid) @@ -2807,8 +2807,8 @@ Fetch information about a specific Device in the Fleet. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fleetSid** | **string**| | -**sid** | **string**| Provides a 34 character string that uniquely identifies the requested Device resource. | +**FleetSid** | **string**| | +**Sid** | **string**| Provides a 34 character string that uniquely identifies the requested Device resource. | ### Return type @@ -2830,7 +2830,7 @@ Name | Type | Description | Notes ## FetchDialogue -> PreviewUnderstandAssistantDialogue FetchDialogue(ctx, assistantSid, sid) +> PreviewUnderstandAssistantDialogue FetchDialogue(ctx, AssistantSid, Sid) @@ -2840,8 +2840,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| | -**sid** | **string**| | +**AssistantSid** | **string**| | +**Sid** | **string**| | ### Return type @@ -2863,7 +2863,7 @@ Name | Type | Description | Notes ## FetchDocument -> PreviewSyncServiceDocument FetchDocument(ctx, serviceSid, sid) +> PreviewSyncServiceDocument FetchDocument(ctx, ServiceSid, Sid) @@ -2873,8 +2873,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**sid** | **string**| | +**ServiceSid** | **string**| | +**Sid** | **string**| | ### Return type @@ -2896,7 +2896,7 @@ Name | Type | Description | Notes ## FetchDocumentPermission -> PreviewSyncServiceDocumentDocumentPermission FetchDocumentPermission(ctx, serviceSid, documentSid, identity) +> PreviewSyncServiceDocumentDocumentPermission FetchDocumentPermission(ctx, ServiceSid, DocumentSid, Identity) @@ -2908,9 +2908,9 @@ Fetch a specific Sync Document Permission. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**documentSid** | **string**| Identifier of the Sync Document. Either a SID or a unique name. | -**identity** | **string**| Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. | +**ServiceSid** | **string**| | +**DocumentSid** | **string**| Identifier of the Sync Document. Either a SID or a unique name. | +**Identity** | **string**| Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. | ### Return type @@ -2932,7 +2932,7 @@ Name | Type | Description | Notes ## FetchExport -> PreviewBulkExportsExport FetchExport(ctx, resourceType) +> PreviewBulkExportsExport FetchExport(ctx, ResourceType) @@ -2944,7 +2944,7 @@ Fetch a specific Export. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**resourceType** | **string**| The type of communication – Messages, Calls | +**ResourceType** | **string**| The type of communication – Messages, Calls | ### Return type @@ -2966,7 +2966,7 @@ Name | Type | Description | Notes ## FetchExportConfiguration -> PreviewBulkExportsExportConfiguration FetchExportConfiguration(ctx, resourceType) +> PreviewBulkExportsExportConfiguration FetchExportConfiguration(ctx, ResourceType) @@ -2978,7 +2978,7 @@ Fetch a specific Export Configuration. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**resourceType** | **string**| The type of communication – Messages, Calls | +**ResourceType** | **string**| The type of communication – Messages, Calls | ### Return type @@ -3000,7 +3000,7 @@ Name | Type | Description | Notes ## FetchField -> PreviewUnderstandAssistantTaskField FetchField(ctx, assistantSid, taskSid, sid) +> PreviewUnderstandAssistantTaskField FetchField(ctx, AssistantSid, TaskSid, Sid) @@ -3010,9 +3010,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The unique ID of the Assistant. | -**taskSid** | **string**| The unique ID of the Task associated with this Field. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**AssistantSid** | **string**| The unique ID of the Assistant. | +**TaskSid** | **string**| The unique ID of the Task associated with this Field. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | ### Return type @@ -3034,7 +3034,7 @@ Name | Type | Description | Notes ## FetchFieldType -> PreviewUnderstandAssistantFieldType FetchFieldType(ctx, assistantSid, sid) +> PreviewUnderstandAssistantFieldType FetchFieldType(ctx, AssistantSid, Sid) @@ -3044,8 +3044,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| | -**sid** | **string**| | +**AssistantSid** | **string**| | +**Sid** | **string**| | ### Return type @@ -3067,7 +3067,7 @@ Name | Type | Description | Notes ## FetchFieldValue -> PreviewUnderstandAssistantFieldTypeFieldValue FetchFieldValue(ctx, assistantSid, fieldTypeSid, sid) +> PreviewUnderstandAssistantFieldTypeFieldValue FetchFieldValue(ctx, AssistantSid, FieldTypeSid, Sid) @@ -3077,9 +3077,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| | -**fieldTypeSid** | **string**| | -**sid** | **string**| | +**AssistantSid** | **string**| | +**FieldTypeSid** | **string**| | +**Sid** | **string**| | ### Return type @@ -3101,7 +3101,7 @@ Name | Type | Description | Notes ## FetchFleet -> PreviewDeployedDevicesFleet FetchFleet(ctx, sid) +> PreviewDeployedDevicesFleet FetchFleet(ctx, Sid) @@ -3113,7 +3113,7 @@ Fetch information about a specific Fleet in your account. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| Provides a 34 character string that uniquely identifies the requested Fleet resource. | +**Sid** | **string**| Provides a 34 character string that uniquely identifies the requested Fleet resource. | ### Return type @@ -3135,7 +3135,7 @@ Name | Type | Description | Notes ## FetchHostedNumberOrder -> PreviewHostedNumbersHostedNumberOrder FetchHostedNumberOrder(ctx, sid) +> PreviewHostedNumbersHostedNumberOrder FetchHostedNumberOrder(ctx, Sid) @@ -3147,7 +3147,7 @@ Fetch a specific HostedNumberOrder. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| A 34 character string that uniquely identifies this HostedNumberOrder. | +**Sid** | **string**| A 34 character string that uniquely identifies this HostedNumberOrder. | ### Return type @@ -3169,7 +3169,7 @@ Name | Type | Description | Notes ## FetchInstalledAddOn -> PreviewMarketplaceInstalledAddOn FetchInstalledAddOn(ctx, sid) +> PreviewMarketplaceInstalledAddOn FetchInstalledAddOn(ctx, Sid) @@ -3181,7 +3181,7 @@ Fetch an instance of an Add-on currently installed on this Account. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the InstalledAddOn resource to fetch. | +**Sid** | **string**| The SID of the InstalledAddOn resource to fetch. | ### Return type @@ -3203,7 +3203,7 @@ Name | Type | Description | Notes ## FetchInstalledAddOnExtension -> PreviewMarketplaceInstalledAddOnInstalledAddOnExtension FetchInstalledAddOnExtension(ctx, installedAddOnSid, sid) +> PreviewMarketplaceInstalledAddOnInstalledAddOnExtension FetchInstalledAddOnExtension(ctx, InstalledAddOnSid, Sid) @@ -3215,8 +3215,8 @@ Fetch an instance of an Extension for the Installed Add-on. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**installedAddOnSid** | **string**| The SID of the InstalledAddOn resource with the extension to fetch. | -**sid** | **string**| The SID of the InstalledAddOn Extension resource to fetch. | +**InstalledAddOnSid** | **string**| The SID of the InstalledAddOn resource with the extension to fetch. | +**Sid** | **string**| The SID of the InstalledAddOn Extension resource to fetch. | ### Return type @@ -3238,7 +3238,7 @@ Name | Type | Description | Notes ## FetchJob -> PreviewBulkExportsExportJob FetchJob(ctx, jobSid) +> PreviewBulkExportsExportJob FetchJob(ctx, JobSid) @@ -3248,7 +3248,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**jobSid** | **string**| | +**JobSid** | **string**| | ### Return type @@ -3270,7 +3270,7 @@ Name | Type | Description | Notes ## FetchKey -> PreviewDeployedDevicesFleetKey FetchKey(ctx, fleetSid, sid) +> PreviewDeployedDevicesFleetKey FetchKey(ctx, FleetSid, Sid) @@ -3282,8 +3282,8 @@ Fetch information about a specific Key credential in the Fleet. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fleetSid** | **string**| | -**sid** | **string**| Provides a 34 character string that uniquely identifies the requested Key credential resource. | +**FleetSid** | **string**| | +**Sid** | **string**| Provides a 34 character string that uniquely identifies the requested Key credential resource. | ### Return type @@ -3305,7 +3305,7 @@ Name | Type | Description | Notes ## FetchModelBuild -> PreviewUnderstandAssistantModelBuild FetchModelBuild(ctx, assistantSid, sid) +> PreviewUnderstandAssistantModelBuild FetchModelBuild(ctx, AssistantSid, Sid) @@ -3315,8 +3315,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| | -**sid** | **string**| | +**AssistantSid** | **string**| | +**Sid** | **string**| | ### Return type @@ -3338,7 +3338,7 @@ Name | Type | Description | Notes ## FetchQuery -> PreviewUnderstandAssistantQuery FetchQuery(ctx, assistantSid, sid) +> PreviewUnderstandAssistantQuery FetchQuery(ctx, AssistantSid, Sid) @@ -3348,8 +3348,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The unique ID of the Assistant. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**AssistantSid** | **string**| The unique ID of the Assistant. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | ### Return type @@ -3371,7 +3371,7 @@ Name | Type | Description | Notes ## FetchRatePlan -> PreviewWirelessRatePlan FetchRatePlan(ctx, sid) +> PreviewWirelessRatePlan FetchRatePlan(ctx, Sid) @@ -3381,7 +3381,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| | +**Sid** | **string**| | ### Return type @@ -3403,7 +3403,7 @@ Name | Type | Description | Notes ## FetchSample -> PreviewUnderstandAssistantTaskSample FetchSample(ctx, assistantSid, taskSid, sid) +> PreviewUnderstandAssistantTaskSample FetchSample(ctx, AssistantSid, TaskSid, Sid) @@ -3413,9 +3413,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The unique ID of the Assistant. | -**taskSid** | **string**| The unique ID of the Task associated with this Sample. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**AssistantSid** | **string**| The unique ID of the Assistant. | +**TaskSid** | **string**| The unique ID of the Task associated with this Sample. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | ### Return type @@ -3437,7 +3437,7 @@ Name | Type | Description | Notes ## FetchService -> PreviewSyncService FetchService(ctx, sid) +> PreviewSyncService FetchService(ctx, Sid) @@ -3447,7 +3447,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| | +**Sid** | **string**| | ### Return type @@ -3469,7 +3469,7 @@ Name | Type | Description | Notes ## FetchSim -> PreviewWirelessSim FetchSim(ctx, sid) +> PreviewWirelessSim FetchSim(ctx, Sid) @@ -3479,7 +3479,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| | +**Sid** | **string**| | ### Return type @@ -3501,7 +3501,7 @@ Name | Type | Description | Notes ## FetchStyleSheet -> PreviewUnderstandAssistantStyleSheet FetchStyleSheet(ctx, assistantSid) +> PreviewUnderstandAssistantStyleSheet FetchStyleSheet(ctx, AssistantSid) @@ -3513,7 +3513,7 @@ Returns Style sheet JSON object for this Assistant Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The unique ID of the Assistant | +**AssistantSid** | **string**| The unique ID of the Assistant | ### Return type @@ -3535,7 +3535,7 @@ Name | Type | Description | Notes ## FetchSyncList -> PreviewSyncServiceSyncList FetchSyncList(ctx, serviceSid, sid) +> PreviewSyncServiceSyncList FetchSyncList(ctx, ServiceSid, Sid) @@ -3545,8 +3545,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**sid** | **string**| | +**ServiceSid** | **string**| | +**Sid** | **string**| | ### Return type @@ -3568,7 +3568,7 @@ Name | Type | Description | Notes ## FetchSyncListItem -> PreviewSyncServiceSyncListSyncListItem FetchSyncListItem(ctx, serviceSid, listSid, index) +> PreviewSyncServiceSyncListSyncListItem FetchSyncListItem(ctx, ServiceSid, ListSid, Index) @@ -3578,9 +3578,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**listSid** | **string**| | -**index** | **int32**| | +**ServiceSid** | **string**| | +**ListSid** | **string**| | +**Index** | **int32**| | ### Return type @@ -3602,7 +3602,7 @@ Name | Type | Description | Notes ## FetchSyncListPermission -> PreviewSyncServiceSyncListSyncListPermission FetchSyncListPermission(ctx, serviceSid, listSid, identity) +> PreviewSyncServiceSyncListSyncListPermission FetchSyncListPermission(ctx, ServiceSid, ListSid, Identity) @@ -3614,9 +3614,9 @@ Fetch a specific Sync List Permission. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**listSid** | **string**| Identifier of the Sync List. Either a SID or a unique name. | -**identity** | **string**| Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. | +**ServiceSid** | **string**| | +**ListSid** | **string**| Identifier of the Sync List. Either a SID or a unique name. | +**Identity** | **string**| Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. | ### Return type @@ -3638,7 +3638,7 @@ Name | Type | Description | Notes ## FetchSyncMap -> PreviewSyncServiceSyncMap FetchSyncMap(ctx, serviceSid, sid) +> PreviewSyncServiceSyncMap FetchSyncMap(ctx, ServiceSid, Sid) @@ -3648,8 +3648,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**sid** | **string**| | +**ServiceSid** | **string**| | +**Sid** | **string**| | ### Return type @@ -3671,7 +3671,7 @@ Name | Type | Description | Notes ## FetchSyncMapItem -> PreviewSyncServiceSyncMapSyncMapItem FetchSyncMapItem(ctx, serviceSid, mapSid, key) +> PreviewSyncServiceSyncMapSyncMapItem FetchSyncMapItem(ctx, ServiceSid, MapSid, Key) @@ -3681,9 +3681,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**mapSid** | **string**| | -**key** | **string**| | +**ServiceSid** | **string**| | +**MapSid** | **string**| | +**Key** | **string**| | ### Return type @@ -3705,7 +3705,7 @@ Name | Type | Description | Notes ## FetchSyncMapPermission -> PreviewSyncServiceSyncMapSyncMapPermission FetchSyncMapPermission(ctx, serviceSid, mapSid, identity) +> PreviewSyncServiceSyncMapSyncMapPermission FetchSyncMapPermission(ctx, ServiceSid, MapSid, Identity) @@ -3717,9 +3717,9 @@ Fetch a specific Sync Map Permission. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**mapSid** | **string**| Identifier of the Sync Map. Either a SID or a unique name. | -**identity** | **string**| Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. | +**ServiceSid** | **string**| | +**MapSid** | **string**| Identifier of the Sync Map. Either a SID or a unique name. | +**Identity** | **string**| Arbitrary string identifier representing a user associated with an FPA token, assigned by the developer. | ### Return type @@ -3741,7 +3741,7 @@ Name | Type | Description | Notes ## FetchTask -> PreviewUnderstandAssistantTask FetchTask(ctx, assistantSid, sid) +> PreviewUnderstandAssistantTask FetchTask(ctx, AssistantSid, Sid) @@ -3751,8 +3751,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The unique ID of the Assistant. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**AssistantSid** | **string**| The unique ID of the Assistant. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | ### Return type @@ -3774,7 +3774,7 @@ Name | Type | Description | Notes ## FetchTaskActions -> PreviewUnderstandAssistantTaskTaskActions FetchTaskActions(ctx, assistantSid, taskSid) +> PreviewUnderstandAssistantTaskTaskActions FetchTaskActions(ctx, AssistantSid, TaskSid) @@ -3786,8 +3786,8 @@ Returns JSON actions for this Task. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The unique ID of the parent Assistant. | -**taskSid** | **string**| The unique ID of the Task. | +**AssistantSid** | **string**| The unique ID of the parent Assistant. | +**TaskSid** | **string**| The unique ID of the Task. | ### Return type @@ -3809,7 +3809,7 @@ Name | Type | Description | Notes ## FetchTaskStatistics -> PreviewUnderstandAssistantTaskTaskStatistics FetchTaskStatistics(ctx, assistantSid, taskSid) +> PreviewUnderstandAssistantTaskTaskStatistics FetchTaskStatistics(ctx, AssistantSid, TaskSid) @@ -3819,8 +3819,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The unique ID of the parent Assistant. | -**taskSid** | **string**| The unique ID of the Task associated with this Field. | +**AssistantSid** | **string**| The unique ID of the parent Assistant. | +**TaskSid** | **string**| The unique ID of the Task associated with this Field. | ### Return type @@ -3842,7 +3842,7 @@ Name | Type | Description | Notes ## FetchUsage -> PreviewWirelessSimUsage FetchUsage(ctx, simSid, optional) +> PreviewWirelessSimUsage FetchUsage(ctx, SimSid, optional) @@ -3852,7 +3852,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**simSid** | **string**| | +**SimSid** | **string**| | **optional** | ***FetchUsageOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -3863,8 +3863,8 @@ Optional parameters are passed through a pointer to a FetchUsageOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **end** | **optional.String**| | - **start** | **optional.String**| | + **End** | **optional.String**| | + **Start** | **optional.String**| | ### Return type @@ -3905,7 +3905,7 @@ Optional parameters are passed through a pointer to a ListAssistantOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -3948,9 +3948,9 @@ Optional parameters are passed through a pointer to a ListAuthorizationDocumentO Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **email** | **optional.String**| Email that this AuthorizationDocument will be sent to for signing. | - **status** | **optional.String**| Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/api/phone-numbers/hosted-number-authorization-documents#status-values) for more information on each of these statuses. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Email** | **optional.String**| Email that this AuthorizationDocument will be sent to for signing. | + **Status** | **optional.String**| Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/api/phone-numbers/hosted-number-authorization-documents#status-values) for more information on each of these statuses. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -3993,7 +3993,7 @@ Optional parameters are passed through a pointer to a ListAvailableAddOnOpts str Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -4015,7 +4015,7 @@ Name | Type | Description | Notes ## ListAvailableAddOnExtension -> PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse ListAvailableAddOnExtension(ctx, availableAddOnSid, optional) +> PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse ListAvailableAddOnExtension(ctx, AvailableAddOnSid, optional) @@ -4027,7 +4027,7 @@ Retrieve a list of Extensions for the Available Add-on. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**availableAddOnSid** | **string**| The SID of the AvailableAddOn resource with the extensions to read. | +**AvailableAddOnSid** | **string**| The SID of the AvailableAddOn resource with the extensions to read. | **optional** | ***ListAvailableAddOnExtensionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -4038,7 +4038,7 @@ Optional parameters are passed through a pointer to a ListAvailableAddOnExtensio Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -4060,7 +4060,7 @@ Name | Type | Description | Notes ## ListCertificate -> PreviewDeployedDevicesFleetCertificateReadResponse ListCertificate(ctx, fleetSid, optional) +> PreviewDeployedDevicesFleetCertificateReadResponse ListCertificate(ctx, FleetSid, optional) @@ -4072,7 +4072,7 @@ Retrieve a list of all Certificate credentials belonging to the Fleet. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fleetSid** | **string**| | +**FleetSid** | **string**| | **optional** | ***ListCertificateOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -4083,8 +4083,8 @@ Optional parameters are passed through a pointer to a ListCertificateOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **deviceSid** | **optional.String**| Filters the resulting list of Certificates by a unique string identifier of an authenticated Device. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **DeviceSid** | **optional.String**| Filters the resulting list of Certificates by a unique string identifier of an authenticated Device. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -4125,11 +4125,11 @@ Optional parameters are passed through a pointer to a ListCommandOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **device** | **optional.String**| | - **sim** | **optional.String**| | - **status** | **optional.String**| | - **direction** | **optional.String**| | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Device** | **optional.String**| | + **Sim** | **optional.String**| | + **Status** | **optional.String**| | + **Direction** | **optional.String**| | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -4151,7 +4151,7 @@ Name | Type | Description | Notes ## ListDay -> PreviewBulkExportsExportDayReadResponse ListDay(ctx, resourceType, optional) +> PreviewBulkExportsExportDayReadResponse ListDay(ctx, ResourceType, optional) @@ -4163,7 +4163,7 @@ Retrieve a list of all Days for a resource. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**resourceType** | **string**| The type of communication – Messages, Calls | +**ResourceType** | **string**| The type of communication – Messages, Calls | **optional** | ***ListDayOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -4174,7 +4174,7 @@ Optional parameters are passed through a pointer to a ListDayOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -4196,7 +4196,7 @@ Name | Type | Description | Notes ## ListDependentHostedNumberOrder -> PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse ListDependentHostedNumberOrder(ctx, signingDocumentSid, optional) +> PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse ListDependentHostedNumberOrder(ctx, SigningDocumentSid, optional) @@ -4208,7 +4208,7 @@ Retrieve a list of dependent HostedNumberOrders belonging to the AuthorizationDo Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**signingDocumentSid** | **string**| | +**SigningDocumentSid** | **string**| | **optional** | ***ListDependentHostedNumberOrderOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -4219,12 +4219,12 @@ Optional parameters are passed through a pointer to a ListDependentHostedNumberO Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | **optional.String**| Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/api/phone-numbers/hosted-number-authorization-documents#status-values) for more information on each of these statuses. | - **phoneNumber** | **optional.String**| An E164 formatted phone number hosted by this HostedNumberOrder. | - **incomingPhoneNumberSid** | **optional.String**| A 34 character string that uniquely identifies the IncomingPhoneNumber resource created by this HostedNumberOrder. | - **friendlyName** | **optional.String**| A human readable description of this resource, up to 64 characters. | - **uniqueName** | **optional.String**| Provides a unique and addressable name to be assigned to this HostedNumberOrder, assigned by the developer, to be optionally used in addition to SID. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Status** | **optional.String**| Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/api/phone-numbers/hosted-number-authorization-documents#status-values) for more information on each of these statuses. | + **PhoneNumber** | **optional.String**| An E164 formatted phone number hosted by this HostedNumberOrder. | + **IncomingPhoneNumberSid** | **optional.String**| A 34 character string that uniquely identifies the IncomingPhoneNumber resource created by this HostedNumberOrder. | + **FriendlyName** | **optional.String**| A human readable description of this resource, up to 64 characters. | + **UniqueName** | **optional.String**| Provides a unique and addressable name to be assigned to this HostedNumberOrder, assigned by the developer, to be optionally used in addition to SID. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -4246,7 +4246,7 @@ Name | Type | Description | Notes ## ListDeployment -> PreviewDeployedDevicesFleetDeploymentReadResponse ListDeployment(ctx, fleetSid, optional) +> PreviewDeployedDevicesFleetDeploymentReadResponse ListDeployment(ctx, FleetSid, optional) @@ -4258,7 +4258,7 @@ Retrieve a list of all Deployments belonging to the Fleet. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fleetSid** | **string**| | +**FleetSid** | **string**| | **optional** | ***ListDeploymentOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -4269,7 +4269,7 @@ Optional parameters are passed through a pointer to a ListDeploymentOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -4291,7 +4291,7 @@ Name | Type | Description | Notes ## ListDevice -> PreviewDeployedDevicesFleetDeviceReadResponse ListDevice(ctx, fleetSid, optional) +> PreviewDeployedDevicesFleetDeviceReadResponse ListDevice(ctx, FleetSid, optional) @@ -4303,7 +4303,7 @@ Retrieve a list of all Devices belonging to the Fleet. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fleetSid** | **string**| | +**FleetSid** | **string**| | **optional** | ***ListDeviceOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -4314,8 +4314,8 @@ Optional parameters are passed through a pointer to a ListDeviceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **deploymentSid** | **optional.String**| Filters the resulting list of Devices by a unique string identifier of the Deployment they are associated with. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **DeploymentSid** | **optional.String**| Filters the resulting list of Devices by a unique string identifier of the Deployment they are associated with. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -4337,7 +4337,7 @@ Name | Type | Description | Notes ## ListDocument -> PreviewSyncServiceDocumentReadResponse ListDocument(ctx, serviceSid, optional) +> PreviewSyncServiceDocumentReadResponse ListDocument(ctx, ServiceSid, optional) @@ -4347,7 +4347,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | +**ServiceSid** | **string**| | **optional** | ***ListDocumentOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -4358,7 +4358,7 @@ Optional parameters are passed through a pointer to a ListDocumentOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -4380,7 +4380,7 @@ Name | Type | Description | Notes ## ListDocumentPermission -> PreviewSyncServiceDocumentDocumentPermissionReadResponse ListDocumentPermission(ctx, serviceSid, documentSid, optional) +> PreviewSyncServiceDocumentDocumentPermissionReadResponse ListDocumentPermission(ctx, ServiceSid, DocumentSid, optional) @@ -4392,8 +4392,8 @@ Retrieve a list of all Permissions applying to a Sync Document. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**documentSid** | **string**| Identifier of the Sync Document. Either a SID or a unique name. | +**ServiceSid** | **string**| | +**DocumentSid** | **string**| Identifier of the Sync Document. Either a SID or a unique name. | **optional** | ***ListDocumentPermissionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -4405,7 +4405,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -4427,7 +4427,7 @@ Name | Type | Description | Notes ## ListExportCustomJob -> PreviewBulkExportsExportExportCustomJobReadResponse ListExportCustomJob(ctx, resourceType, optional) +> PreviewBulkExportsExportExportCustomJobReadResponse ListExportCustomJob(ctx, ResourceType, optional) @@ -4437,7 +4437,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**resourceType** | **string**| The type of communication – Messages, Calls | +**ResourceType** | **string**| The type of communication – Messages, Calls | **optional** | ***ListExportCustomJobOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -4448,7 +4448,7 @@ Optional parameters are passed through a pointer to a ListExportCustomJobOpts st Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -4470,7 +4470,7 @@ Name | Type | Description | Notes ## ListField -> PreviewUnderstandAssistantTaskFieldReadResponse ListField(ctx, assistantSid, taskSid, optional) +> PreviewUnderstandAssistantTaskFieldReadResponse ListField(ctx, AssistantSid, TaskSid, optional) @@ -4480,8 +4480,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The unique ID of the Assistant. | -**taskSid** | **string**| The unique ID of the Task associated with this Field. | +**AssistantSid** | **string**| The unique ID of the Assistant. | +**TaskSid** | **string**| The unique ID of the Task associated with this Field. | **optional** | ***ListFieldOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -4493,7 +4493,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -4515,7 +4515,7 @@ Name | Type | Description | Notes ## ListFieldType -> PreviewUnderstandAssistantFieldTypeReadResponse ListFieldType(ctx, assistantSid, optional) +> PreviewUnderstandAssistantFieldTypeReadResponse ListFieldType(ctx, AssistantSid, optional) @@ -4525,7 +4525,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| | +**AssistantSid** | **string**| | **optional** | ***ListFieldTypeOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -4536,7 +4536,7 @@ Optional parameters are passed through a pointer to a ListFieldTypeOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -4558,7 +4558,7 @@ Name | Type | Description | Notes ## ListFieldValue -> PreviewUnderstandAssistantFieldTypeFieldValueReadResponse ListFieldValue(ctx, assistantSid, fieldTypeSid, optional) +> PreviewUnderstandAssistantFieldTypeFieldValueReadResponse ListFieldValue(ctx, AssistantSid, FieldTypeSid, optional) @@ -4568,8 +4568,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| | -**fieldTypeSid** | **string**| | +**AssistantSid** | **string**| | +**FieldTypeSid** | **string**| | **optional** | ***ListFieldValueOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -4581,8 +4581,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **language** | **optional.String**| An ISO language-country string of the value. For example: *en-US* | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Language** | **optional.String**| An ISO language-country string of the value. For example: *en-US* | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -4625,7 +4625,7 @@ Optional parameters are passed through a pointer to a ListFleetOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -4668,12 +4668,12 @@ Optional parameters are passed through a pointer to a ListHostedNumberOrderOpts Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | **optional.String**| The Status of this HostedNumberOrder. One of `received`, `pending-verification`, `verified`, `pending-loa`, `carrier-processing`, `testing`, `completed`, `failed`, or `action-required`. | - **phoneNumber** | **optional.String**| An E164 formatted phone number hosted by this HostedNumberOrder. | - **incomingPhoneNumberSid** | **optional.String**| A 34 character string that uniquely identifies the IncomingPhoneNumber resource created by this HostedNumberOrder. | - **friendlyName** | **optional.String**| A human readable description of this resource, up to 64 characters. | - **uniqueName** | **optional.String**| Provides a unique and addressable name to be assigned to this HostedNumberOrder, assigned by the developer, to be optionally used in addition to SID. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Status** | **optional.String**| The Status of this HostedNumberOrder. One of `received`, `pending-verification`, `verified`, `pending-loa`, `carrier-processing`, `testing`, `completed`, `failed`, or `action-required`. | + **PhoneNumber** | **optional.String**| An E164 formatted phone number hosted by this HostedNumberOrder. | + **IncomingPhoneNumberSid** | **optional.String**| A 34 character string that uniquely identifies the IncomingPhoneNumber resource created by this HostedNumberOrder. | + **FriendlyName** | **optional.String**| A human readable description of this resource, up to 64 characters. | + **UniqueName** | **optional.String**| Provides a unique and addressable name to be assigned to this HostedNumberOrder, assigned by the developer, to be optionally used in addition to SID. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -4716,7 +4716,7 @@ Optional parameters are passed through a pointer to a ListInstalledAddOnOpts str Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -4738,7 +4738,7 @@ Name | Type | Description | Notes ## ListInstalledAddOnExtension -> PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse ListInstalledAddOnExtension(ctx, installedAddOnSid, optional) +> PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse ListInstalledAddOnExtension(ctx, InstalledAddOnSid, optional) @@ -4750,7 +4750,7 @@ Retrieve a list of Extensions for the Installed Add-on. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**installedAddOnSid** | **string**| The SID of the InstalledAddOn resource with the extensions to read. | +**InstalledAddOnSid** | **string**| The SID of the InstalledAddOn resource with the extensions to read. | **optional** | ***ListInstalledAddOnExtensionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -4761,7 +4761,7 @@ Optional parameters are passed through a pointer to a ListInstalledAddOnExtensio Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -4783,7 +4783,7 @@ Name | Type | Description | Notes ## ListKey -> PreviewDeployedDevicesFleetKeyReadResponse ListKey(ctx, fleetSid, optional) +> PreviewDeployedDevicesFleetKeyReadResponse ListKey(ctx, FleetSid, optional) @@ -4795,7 +4795,7 @@ Retrieve a list of all Keys credentials belonging to the Fleet. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fleetSid** | **string**| | +**FleetSid** | **string**| | **optional** | ***ListKeyOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -4806,8 +4806,8 @@ Optional parameters are passed through a pointer to a ListKeyOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **deviceSid** | **optional.String**| Filters the resulting list of Keys by a unique string identifier of an authenticated Device. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **DeviceSid** | **optional.String**| Filters the resulting list of Keys by a unique string identifier of an authenticated Device. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -4829,7 +4829,7 @@ Name | Type | Description | Notes ## ListModelBuild -> PreviewUnderstandAssistantModelBuildReadResponse ListModelBuild(ctx, assistantSid, optional) +> PreviewUnderstandAssistantModelBuildReadResponse ListModelBuild(ctx, AssistantSid, optional) @@ -4839,7 +4839,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| | +**AssistantSid** | **string**| | **optional** | ***ListModelBuildOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -4850,7 +4850,7 @@ Optional parameters are passed through a pointer to a ListModelBuildOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -4872,7 +4872,7 @@ Name | Type | Description | Notes ## ListQuery -> PreviewUnderstandAssistantQueryReadResponse ListQuery(ctx, assistantSid, optional) +> PreviewUnderstandAssistantQueryReadResponse ListQuery(ctx, AssistantSid, optional) @@ -4882,7 +4882,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The unique ID of the parent Assistant. | +**AssistantSid** | **string**| The unique ID of the parent Assistant. | **optional** | ***ListQueryOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -4893,10 +4893,10 @@ Optional parameters are passed through a pointer to a ListQueryOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **language** | **optional.String**| An ISO language-country string of the sample. | - **modelBuild** | **optional.String**| The Model Build Sid or unique name of the Model Build to be queried. | - **status** | **optional.String**| A string that described the query status. The values can be: pending_review, reviewed, discarded | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Language** | **optional.String**| An ISO language-country string of the sample. | + **ModelBuild** | **optional.String**| The Model Build Sid or unique name of the Model Build to be queried. | + **Status** | **optional.String**| A string that described the query status. The values can be: pending_review, reviewed, discarded | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -4937,7 +4937,7 @@ Optional parameters are passed through a pointer to a ListRatePlanOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -4959,7 +4959,7 @@ Name | Type | Description | Notes ## ListSample -> PreviewUnderstandAssistantTaskSampleReadResponse ListSample(ctx, assistantSid, taskSid, optional) +> PreviewUnderstandAssistantTaskSampleReadResponse ListSample(ctx, AssistantSid, TaskSid, optional) @@ -4969,8 +4969,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The unique ID of the Assistant. | -**taskSid** | **string**| The unique ID of the Task associated with this Sample. | +**AssistantSid** | **string**| The unique ID of the Assistant. | +**TaskSid** | **string**| The unique ID of the Task associated with this Sample. | **optional** | ***ListSampleOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -4982,8 +4982,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **language** | **optional.String**| An ISO language-country string of the sample. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Language** | **optional.String**| An ISO language-country string of the sample. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -5024,7 +5024,7 @@ Optional parameters are passed through a pointer to a ListServiceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -5065,12 +5065,12 @@ Optional parameters are passed through a pointer to a ListSimOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | **optional.String**| | - **iccid** | **optional.String**| | - **ratePlan** | **optional.String**| | - **eId** | **optional.String**| | - **simRegistrationCode** | **optional.String**| | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Status** | **optional.String**| | + **Iccid** | **optional.String**| | + **RatePlan** | **optional.String**| | + **EId** | **optional.String**| | + **SimRegistrationCode** | **optional.String**| | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -5092,7 +5092,7 @@ Name | Type | Description | Notes ## ListSyncList -> PreviewSyncServiceSyncListReadResponse ListSyncList(ctx, serviceSid, optional) +> PreviewSyncServiceSyncListReadResponse ListSyncList(ctx, ServiceSid, optional) @@ -5102,7 +5102,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | +**ServiceSid** | **string**| | **optional** | ***ListSyncListOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5113,7 +5113,7 @@ Optional parameters are passed through a pointer to a ListSyncListOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -5135,7 +5135,7 @@ Name | Type | Description | Notes ## ListSyncListItem -> PreviewSyncServiceSyncListSyncListItemReadResponse ListSyncListItem(ctx, serviceSid, listSid, optional) +> PreviewSyncServiceSyncListSyncListItemReadResponse ListSyncListItem(ctx, ServiceSid, ListSid, optional) @@ -5145,8 +5145,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**listSid** | **string**| | +**ServiceSid** | **string**| | +**ListSid** | **string**| | **optional** | ***ListSyncListItemOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5158,10 +5158,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **order** | **optional.String**| | - **from** | **optional.String**| | - **bounds** | **optional.String**| | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Order** | **optional.String**| | + **From** | **optional.String**| | + **Bounds** | **optional.String**| | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -5183,7 +5183,7 @@ Name | Type | Description | Notes ## ListSyncListPermission -> PreviewSyncServiceSyncListSyncListPermissionReadResponse ListSyncListPermission(ctx, serviceSid, listSid, optional) +> PreviewSyncServiceSyncListSyncListPermissionReadResponse ListSyncListPermission(ctx, ServiceSid, ListSid, optional) @@ -5195,8 +5195,8 @@ Retrieve a list of all Permissions applying to a Sync List. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**listSid** | **string**| Identifier of the Sync List. Either a SID or a unique name. | +**ServiceSid** | **string**| | +**ListSid** | **string**| Identifier of the Sync List. Either a SID or a unique name. | **optional** | ***ListSyncListPermissionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5208,7 +5208,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -5230,7 +5230,7 @@ Name | Type | Description | Notes ## ListSyncMap -> PreviewSyncServiceSyncMapReadResponse ListSyncMap(ctx, serviceSid, optional) +> PreviewSyncServiceSyncMapReadResponse ListSyncMap(ctx, ServiceSid, optional) @@ -5240,7 +5240,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | +**ServiceSid** | **string**| | **optional** | ***ListSyncMapOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5251,7 +5251,7 @@ Optional parameters are passed through a pointer to a ListSyncMapOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -5273,7 +5273,7 @@ Name | Type | Description | Notes ## ListSyncMapItem -> PreviewSyncServiceSyncMapSyncMapItemReadResponse ListSyncMapItem(ctx, serviceSid, mapSid, optional) +> PreviewSyncServiceSyncMapSyncMapItemReadResponse ListSyncMapItem(ctx, ServiceSid, MapSid, optional) @@ -5283,8 +5283,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**mapSid** | **string**| | +**ServiceSid** | **string**| | +**MapSid** | **string**| | **optional** | ***ListSyncMapItemOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5296,10 +5296,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **order** | **optional.String**| | - **from** | **optional.String**| | - **bounds** | **optional.String**| | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Order** | **optional.String**| | + **From** | **optional.String**| | + **Bounds** | **optional.String**| | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -5321,7 +5321,7 @@ Name | Type | Description | Notes ## ListSyncMapPermission -> PreviewSyncServiceSyncMapSyncMapPermissionReadResponse ListSyncMapPermission(ctx, serviceSid, mapSid, optional) +> PreviewSyncServiceSyncMapSyncMapPermissionReadResponse ListSyncMapPermission(ctx, ServiceSid, MapSid, optional) @@ -5333,8 +5333,8 @@ Retrieve a list of all Permissions applying to a Sync Map. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**mapSid** | **string**| Identifier of the Sync Map. Either a SID or a unique name. | +**ServiceSid** | **string**| | +**MapSid** | **string**| Identifier of the Sync Map. Either a SID or a unique name. | **optional** | ***ListSyncMapPermissionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5346,7 +5346,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -5368,7 +5368,7 @@ Name | Type | Description | Notes ## ListTask -> PreviewUnderstandAssistantTaskReadResponse ListTask(ctx, assistantSid, optional) +> PreviewUnderstandAssistantTaskReadResponse ListTask(ctx, AssistantSid, optional) @@ -5378,7 +5378,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The unique ID of the Assistant. | +**AssistantSid** | **string**| The unique ID of the Assistant. | **optional** | ***ListTaskOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5389,7 +5389,7 @@ Optional parameters are passed through a pointer to a ListTaskOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -5411,7 +5411,7 @@ Name | Type | Description | Notes ## UpdateAssistant -> PreviewUnderstandAssistant UpdateAssistant(ctx, sid, optional) +> PreviewUnderstandAssistant UpdateAssistant(ctx, Sid, optional) @@ -5421,7 +5421,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | **optional** | ***UpdateAssistantOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5432,14 +5432,14 @@ Optional parameters are passed through a pointer to a UpdateAssistantOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **callbackEvents** | **optional.String**| Space-separated list of callback events that will trigger callbacks. | - **callbackUrl** | **optional.String**| A user-provided URL to send event callbacks to. | - **fallbackActions** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON actions to be executed when the user's input is not recognized as matching any Task. | - **friendlyName** | **optional.String**| A text description for the Assistant. It is non-unique and can up to 255 characters long. | - **initiationActions** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON actions to be executed on inbound phone calls when the Assistant has to say something first. | - **logQueries** | **optional.Bool**| A boolean that specifies whether queries should be logged for 30 days further training. If false, no queries will be stored, if true, queries will be stored for 30 days and deleted thereafter. Defaults to true if no value is provided. | - **styleSheet** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON object that holds the style sheet for the assistant | - **uniqueName** | **optional.String**| A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. | + **CallbackEvents** | **optional.String**| Space-separated list of callback events that will trigger callbacks. | + **CallbackUrl** | **optional.String**| A user-provided URL to send event callbacks to. | + **FallbackActions** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON actions to be executed when the user's input is not recognized as matching any Task. | + **FriendlyName** | **optional.String**| A text description for the Assistant. It is non-unique and can up to 255 characters long. | + **InitiationActions** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON actions to be executed on inbound phone calls when the Assistant has to say something first. | + **LogQueries** | **optional.Bool**| A boolean that specifies whether queries should be logged for 30 days further training. If false, no queries will be stored, if true, queries will be stored for 30 days and deleted thereafter. Defaults to true if no value is provided. | + **StyleSheet** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON object that holds the style sheet for the assistant | + **UniqueName** | **optional.String**| A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. | ### Return type @@ -5461,7 +5461,7 @@ Name | Type | Description | Notes ## UpdateAssistantFallbackActions -> PreviewUnderstandAssistantAssistantFallbackActions UpdateAssistantFallbackActions(ctx, assistantSid, optional) +> PreviewUnderstandAssistantAssistantFallbackActions UpdateAssistantFallbackActions(ctx, AssistantSid, optional) @@ -5471,7 +5471,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| | +**AssistantSid** | **string**| | **optional** | ***UpdateAssistantFallbackActionsOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5482,7 +5482,7 @@ Optional parameters are passed through a pointer to a UpdateAssistantFallbackAct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **fallbackActions** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| | + **FallbackActions** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| | ### Return type @@ -5504,7 +5504,7 @@ Name | Type | Description | Notes ## UpdateAssistantInitiationActions -> PreviewUnderstandAssistantAssistantInitiationActions UpdateAssistantInitiationActions(ctx, assistantSid, optional) +> PreviewUnderstandAssistantAssistantInitiationActions UpdateAssistantInitiationActions(ctx, AssistantSid, optional) @@ -5514,7 +5514,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| | +**AssistantSid** | **string**| | **optional** | ***UpdateAssistantInitiationActionsOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5525,7 +5525,7 @@ Optional parameters are passed through a pointer to a UpdateAssistantInitiationA Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **initiationActions** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| | + **InitiationActions** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| | ### Return type @@ -5547,7 +5547,7 @@ Name | Type | Description | Notes ## UpdateAuthorizationDocument -> PreviewHostedNumbersAuthorizationDocument UpdateAuthorizationDocument(ctx, sid, optional) +> PreviewHostedNumbersAuthorizationDocument UpdateAuthorizationDocument(ctx, Sid, optional) @@ -5559,7 +5559,7 @@ Updates a specific AuthorizationDocument. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| | +**Sid** | **string**| | **optional** | ***UpdateAuthorizationDocumentOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5570,13 +5570,13 @@ Optional parameters are passed through a pointer to a UpdateAuthorizationDocumen Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **addressSid** | **optional.String**| A 34 character string that uniquely identifies the Address resource that is associated with this AuthorizationDocument. | - **ccEmails** | [**optional.Interface of []string**](string.md)| Email recipients who will be informed when an Authorization Document has been sent and signed | - **contactPhoneNumber** | **optional.String**| The contact phone number of the person authorized to sign the Authorization Document. | - **contactTitle** | **optional.String**| The title of the person authorized to sign the Authorization Document for this phone number. | - **email** | **optional.String**| Email that this AuthorizationDocument will be sent to for signing. | - **hostedNumberOrderSids** | [**optional.Interface of []string**](string.md)| A list of HostedNumberOrder sids that this AuthorizationDocument will authorize for hosting phone number capabilities on Twilio's platform. | - **status** | **optional.String**| Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/api/phone-numbers/hosted-number-authorization-documents#status-values) for more information on each of these statuses. | + **AddressSid** | **optional.String**| A 34 character string that uniquely identifies the Address resource that is associated with this AuthorizationDocument. | + **CcEmails** | [**optional.Interface of []string**](string.md)| Email recipients who will be informed when an Authorization Document has been sent and signed | + **ContactPhoneNumber** | **optional.String**| The contact phone number of the person authorized to sign the Authorization Document. | + **ContactTitle** | **optional.String**| The title of the person authorized to sign the Authorization Document for this phone number. | + **Email** | **optional.String**| Email that this AuthorizationDocument will be sent to for signing. | + **HostedNumberOrderSids** | [**optional.Interface of []string**](string.md)| A list of HostedNumberOrder sids that this AuthorizationDocument will authorize for hosting phone number capabilities on Twilio's platform. | + **Status** | **optional.String**| Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/api/phone-numbers/hosted-number-authorization-documents#status-values) for more information on each of these statuses. | ### Return type @@ -5598,7 +5598,7 @@ Name | Type | Description | Notes ## UpdateCertificate -> PreviewDeployedDevicesFleetCertificate UpdateCertificate(ctx, fleetSid, sid, optional) +> PreviewDeployedDevicesFleetCertificate UpdateCertificate(ctx, FleetSid, Sid, optional) @@ -5610,8 +5610,8 @@ Update the given properties of a specific Certificate credential in the Fleet, g Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fleetSid** | **string**| | -**sid** | **string**| Provides a 34 character string that uniquely identifies the requested Certificate credential resource. | +**FleetSid** | **string**| | +**Sid** | **string**| Provides a 34 character string that uniquely identifies the requested Certificate credential resource. | **optional** | ***UpdateCertificateOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5623,8 +5623,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **deviceSid** | **optional.String**| Provides the unique string identifier of an existing Device to become authenticated with this Certificate credential. | - **friendlyName** | **optional.String**| Provides a human readable descriptive text for this Certificate credential, up to 256 characters long. | + **DeviceSid** | **optional.String**| Provides the unique string identifier of an existing Device to become authenticated with this Certificate credential. | + **FriendlyName** | **optional.String**| Provides a human readable descriptive text for this Certificate credential, up to 256 characters long. | ### Return type @@ -5646,7 +5646,7 @@ Name | Type | Description | Notes ## UpdateDeployment -> PreviewDeployedDevicesFleetDeployment UpdateDeployment(ctx, fleetSid, sid, optional) +> PreviewDeployedDevicesFleetDeployment UpdateDeployment(ctx, FleetSid, Sid, optional) @@ -5658,8 +5658,8 @@ Update the given properties of a specific Deployment credential in the Fleet, gi Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fleetSid** | **string**| | -**sid** | **string**| Provides a 34 character string that uniquely identifies the requested Deployment resource. | +**FleetSid** | **string**| | +**Sid** | **string**| Provides a 34 character string that uniquely identifies the requested Deployment resource. | **optional** | ***UpdateDeploymentOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5671,8 +5671,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| Provides a human readable descriptive text for this Deployment, up to 64 characters long | - **syncServiceSid** | **optional.String**| Provides the unique string identifier of the Twilio Sync service instance that will be linked to and accessible by this Deployment. | + **FriendlyName** | **optional.String**| Provides a human readable descriptive text for this Deployment, up to 64 characters long | + **SyncServiceSid** | **optional.String**| Provides the unique string identifier of the Twilio Sync service instance that will be linked to and accessible by this Deployment. | ### Return type @@ -5694,7 +5694,7 @@ Name | Type | Description | Notes ## UpdateDevice -> PreviewDeployedDevicesFleetDevice UpdateDevice(ctx, fleetSid, sid, optional) +> PreviewDeployedDevicesFleetDevice UpdateDevice(ctx, FleetSid, Sid, optional) @@ -5706,8 +5706,8 @@ Update the given properties of a specific Device in the Fleet, giving it a frien Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fleetSid** | **string**| | -**sid** | **string**| Provides a 34 character string that uniquely identifies the requested Device resource. | +**FleetSid** | **string**| | +**Sid** | **string**| Provides a 34 character string that uniquely identifies the requested Device resource. | **optional** | ***UpdateDeviceOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5719,10 +5719,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **deploymentSid** | **optional.String**| Specifies the unique string identifier of the Deployment group that this Device is going to be associated with. | - **enabled** | **optional.Bool**| | - **friendlyName** | **optional.String**| Provides a human readable descriptive text to be assigned to this Device, up to 256 characters long. | - **identity** | **optional.String**| Provides an arbitrary string identifier representing a human user to be associated with this Device, up to 256 characters long. | + **DeploymentSid** | **optional.String**| Specifies the unique string identifier of the Deployment group that this Device is going to be associated with. | + **Enabled** | **optional.Bool**| | + **FriendlyName** | **optional.String**| Provides a human readable descriptive text to be assigned to this Device, up to 256 characters long. | + **Identity** | **optional.String**| Provides an arbitrary string identifier representing a human user to be associated with this Device, up to 256 characters long. | ### Return type @@ -5744,7 +5744,7 @@ Name | Type | Description | Notes ## UpdateDocument -> PreviewSyncServiceDocument UpdateDocument(ctx, serviceSid, sid, optional) +> PreviewSyncServiceDocument UpdateDocument(ctx, ServiceSid, Sid, optional) @@ -5754,8 +5754,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**sid** | **string**| | +**ServiceSid** | **string**| | +**Sid** | **string**| | **optional** | ***UpdateDocumentOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5767,8 +5767,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ifMatch** | **optional.String**| The If-Match HTTP request header | - **data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| | + **IfMatch** | **optional.String**| The If-Match HTTP request header | + **Data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| | ### Return type @@ -5790,7 +5790,7 @@ Name | Type | Description | Notes ## UpdateDocumentPermission -> PreviewSyncServiceDocumentDocumentPermission UpdateDocumentPermission(ctx, serviceSid, documentSid, identity, optional) +> PreviewSyncServiceDocumentDocumentPermission UpdateDocumentPermission(ctx, ServiceSid, DocumentSid, Identity, optional) @@ -5802,9 +5802,9 @@ Update an identity's access to a specific Sync Document. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Sync Service Instance. | -**documentSid** | **string**| Identifier of the Sync Document. Either a SID or a unique name. | -**identity** | **string**| Arbitrary string identifier representing a human user associated with an FPA token, assigned by the developer. | +**ServiceSid** | **string**| The unique SID identifier of the Sync Service Instance. | +**DocumentSid** | **string**| Identifier of the Sync Document. Either a SID or a unique name. | +**Identity** | **string**| Arbitrary string identifier representing a human user associated with an FPA token, assigned by the developer. | **optional** | ***UpdateDocumentPermissionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5817,9 +5817,9 @@ Name | Type | Description | Notes - **manage** | **optional.Bool**| Boolean flag specifying whether the identity can delete the Sync Document. | - **read** | **optional.Bool**| Boolean flag specifying whether the identity can read the Sync Document. | - **write** | **optional.Bool**| Boolean flag specifying whether the identity can update the Sync Document. | + **Manage** | **optional.Bool**| Boolean flag specifying whether the identity can delete the Sync Document. | + **Read** | **optional.Bool**| Boolean flag specifying whether the identity can read the Sync Document. | + **Write** | **optional.Bool**| Boolean flag specifying whether the identity can update the Sync Document. | ### Return type @@ -5841,7 +5841,7 @@ Name | Type | Description | Notes ## UpdateExportConfiguration -> PreviewBulkExportsExportConfiguration UpdateExportConfiguration(ctx, resourceType, optional) +> PreviewBulkExportsExportConfiguration UpdateExportConfiguration(ctx, ResourceType, optional) @@ -5853,7 +5853,7 @@ Update a specific Export Configuration. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**resourceType** | **string**| The type of communication – Messages, Calls | +**ResourceType** | **string**| The type of communication – Messages, Calls | **optional** | ***UpdateExportConfigurationOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5864,9 +5864,9 @@ Optional parameters are passed through a pointer to a UpdateExportConfigurationO Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **enabled** | **optional.Bool**| If true, Twilio will automatically generate every day's file when the day is over. | - **webhookMethod** | **optional.String**| Sets whether Twilio should call a webhook URL when the automatic generation is complete, using GET or POST. The actual destination is set in the webhook_url | - **webhookUrl** | **optional.String**| Stores the URL destination for the method specified in webhook_method. | + **Enabled** | **optional.Bool**| If true, Twilio will automatically generate every day's file when the day is over. | + **WebhookMethod** | **optional.String**| Sets whether Twilio should call a webhook URL when the automatic generation is complete, using GET or POST. The actual destination is set in the webhook_url | + **WebhookUrl** | **optional.String**| Stores the URL destination for the method specified in webhook_method. | ### Return type @@ -5888,7 +5888,7 @@ Name | Type | Description | Notes ## UpdateFieldType -> PreviewUnderstandAssistantFieldType UpdateFieldType(ctx, assistantSid, sid, optional) +> PreviewUnderstandAssistantFieldType UpdateFieldType(ctx, AssistantSid, Sid, optional) @@ -5898,8 +5898,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| | -**sid** | **string**| | +**AssistantSid** | **string**| | +**Sid** | **string**| | **optional** | ***UpdateFieldTypeOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5911,8 +5911,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| A user-provided string that identifies this resource. It is non-unique and can up to 255 characters long. | - **uniqueName** | **optional.String**| A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. | + **FriendlyName** | **optional.String**| A user-provided string that identifies this resource. It is non-unique and can up to 255 characters long. | + **UniqueName** | **optional.String**| A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. | ### Return type @@ -5934,7 +5934,7 @@ Name | Type | Description | Notes ## UpdateFleet -> PreviewDeployedDevicesFleet UpdateFleet(ctx, sid, optional) +> PreviewDeployedDevicesFleet UpdateFleet(ctx, Sid, optional) @@ -5946,7 +5946,7 @@ Update the friendly name property of a specific Fleet in your account. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| Provides a 34 character string that uniquely identifies the requested Fleet resource. | +**Sid** | **string**| Provides a 34 character string that uniquely identifies the requested Fleet resource. | **optional** | ***UpdateFleetOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -5957,8 +5957,8 @@ Optional parameters are passed through a pointer to a UpdateFleetOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **defaultDeploymentSid** | **optional.String**| Provides a string identifier of a Deployment that is going to be used as a default one for this Fleet. | - **friendlyName** | **optional.String**| Provides a human readable descriptive text for this Fleet, up to 256 characters long. | + **DefaultDeploymentSid** | **optional.String**| Provides a string identifier of a Deployment that is going to be used as a default one for this Fleet. | + **FriendlyName** | **optional.String**| Provides a human readable descriptive text for this Fleet, up to 256 characters long. | ### Return type @@ -5980,7 +5980,7 @@ Name | Type | Description | Notes ## UpdateHostedNumberOrder -> PreviewHostedNumbersHostedNumberOrder UpdateHostedNumberOrder(ctx, sid, optional) +> PreviewHostedNumbersHostedNumberOrder UpdateHostedNumberOrder(ctx, Sid, optional) @@ -5992,7 +5992,7 @@ Updates a specific HostedNumberOrder. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| | +**Sid** | **string**| | **optional** | ***UpdateHostedNumberOrderOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6003,16 +6003,16 @@ Optional parameters are passed through a pointer to a UpdateHostedNumberOrderOpt Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **callDelay** | **optional.Int32**| The number of seconds, between 0 and 60, to delay before initiating the verification call. Defaults to 0. | - **ccEmails** | [**optional.Interface of []string**](string.md)| Optional. A list of emails that LOA document for this HostedNumberOrder will be carbon copied to. | - **email** | **optional.String**| Email of the owner of this phone number that is being hosted. | - **extension** | **optional.String**| Digits to dial after connecting the verification call. | - **friendlyName** | **optional.String**| A 64 character string that is a human readable text that describes this resource. | - **status** | **optional.String**| User can only post to `pending-verification` status to transition the HostedNumberOrder to initiate a verification call or verification of ownership with a copy of a phone bill. | - **uniqueName** | **optional.String**| Provides a unique and addressable name to be assigned to this HostedNumberOrder, assigned by the developer, to be optionally used in addition to SID. | - **verificationCode** | **optional.String**| A verification code that is given to the user via a phone call to the phone number that is being hosted. | - **verificationDocumentSid** | **optional.String**| Optional. The unique sid identifier of the Identity Document that represents the document for verifying ownership of the number to be hosted. Required when VerificationType is phone-bill. | - **verificationType** | **optional.String**| Optional. The method used for verifying ownership of the number to be hosted. One of phone-call (default) or phone-bill. | + **CallDelay** | **optional.Int32**| The number of seconds, between 0 and 60, to delay before initiating the verification call. Defaults to 0. | + **CcEmails** | [**optional.Interface of []string**](string.md)| Optional. A list of emails that LOA document for this HostedNumberOrder will be carbon copied to. | + **Email** | **optional.String**| Email of the owner of this phone number that is being hosted. | + **Extension** | **optional.String**| Digits to dial after connecting the verification call. | + **FriendlyName** | **optional.String**| A 64 character string that is a human readable text that describes this resource. | + **Status** | **optional.String**| User can only post to `pending-verification` status to transition the HostedNumberOrder to initiate a verification call or verification of ownership with a copy of a phone bill. | + **UniqueName** | **optional.String**| Provides a unique and addressable name to be assigned to this HostedNumberOrder, assigned by the developer, to be optionally used in addition to SID. | + **VerificationCode** | **optional.String**| A verification code that is given to the user via a phone call to the phone number that is being hosted. | + **VerificationDocumentSid** | **optional.String**| Optional. The unique sid identifier of the Identity Document that represents the document for verifying ownership of the number to be hosted. Required when VerificationType is phone-bill. | + **VerificationType** | **optional.String**| Optional. The method used for verifying ownership of the number to be hosted. One of phone-call (default) or phone-bill. | ### Return type @@ -6034,7 +6034,7 @@ Name | Type | Description | Notes ## UpdateInstalledAddOn -> PreviewMarketplaceInstalledAddOn UpdateInstalledAddOn(ctx, sid, optional) +> PreviewMarketplaceInstalledAddOn UpdateInstalledAddOn(ctx, Sid, optional) @@ -6046,7 +6046,7 @@ Update an Add-on installation for the Account specified. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the InstalledAddOn resource to update. | +**Sid** | **string**| The SID of the InstalledAddOn resource to update. | **optional** | ***UpdateInstalledAddOnOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6057,8 +6057,8 @@ Optional parameters are passed through a pointer to a UpdateInstalledAddOnOpts s Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **configuration** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| Valid JSON object that conform to the configuration schema exposed by the associated AvailableAddOn resource. This is only required by Add-ons that need to be configured | - **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. This value must be unique within the Account. | + **Configuration** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| Valid JSON object that conform to the configuration schema exposed by the associated AvailableAddOn resource. This is only required by Add-ons that need to be configured | + **UniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. This value must be unique within the Account. | ### Return type @@ -6080,7 +6080,7 @@ Name | Type | Description | Notes ## UpdateInstalledAddOnExtension -> PreviewMarketplaceInstalledAddOnInstalledAddOnExtension UpdateInstalledAddOnExtension(ctx, installedAddOnSid, sid, optional) +> PreviewMarketplaceInstalledAddOnInstalledAddOnExtension UpdateInstalledAddOnExtension(ctx, InstalledAddOnSid, Sid, optional) @@ -6092,8 +6092,8 @@ Update an Extension for an Add-on installation. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**installedAddOnSid** | **string**| The SID of the InstalledAddOn resource with the extension to update. | -**sid** | **string**| The SID of the InstalledAddOn Extension resource to update. | +**InstalledAddOnSid** | **string**| The SID of the InstalledAddOn resource with the extension to update. | +**Sid** | **string**| The SID of the InstalledAddOn Extension resource to update. | **optional** | ***UpdateInstalledAddOnExtensionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6105,7 +6105,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **enabled** | **optional.Bool**| Whether the Extension should be invoked. | + **Enabled** | **optional.Bool**| Whether the Extension should be invoked. | ### Return type @@ -6127,7 +6127,7 @@ Name | Type | Description | Notes ## UpdateKey -> PreviewDeployedDevicesFleetKey UpdateKey(ctx, fleetSid, sid, optional) +> PreviewDeployedDevicesFleetKey UpdateKey(ctx, FleetSid, Sid, optional) @@ -6139,8 +6139,8 @@ Update the given properties of a specific Key credential in the Fleet, giving it Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fleetSid** | **string**| | -**sid** | **string**| Provides a 34 character string that uniquely identifies the requested Key credential resource. | +**FleetSid** | **string**| | +**Sid** | **string**| Provides a 34 character string that uniquely identifies the requested Key credential resource. | **optional** | ***UpdateKeyOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6152,8 +6152,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **deviceSid** | **optional.String**| Provides the unique string identifier of an existing Device to become authenticated with this Key credential. | - **friendlyName** | **optional.String**| Provides a human readable descriptive text for this Key credential, up to 256 characters long. | + **DeviceSid** | **optional.String**| Provides the unique string identifier of an existing Device to become authenticated with this Key credential. | + **FriendlyName** | **optional.String**| Provides a human readable descriptive text for this Key credential, up to 256 characters long. | ### Return type @@ -6175,7 +6175,7 @@ Name | Type | Description | Notes ## UpdateModelBuild -> PreviewUnderstandAssistantModelBuild UpdateModelBuild(ctx, assistantSid, sid, optional) +> PreviewUnderstandAssistantModelBuild UpdateModelBuild(ctx, AssistantSid, Sid, optional) @@ -6185,8 +6185,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| | -**sid** | **string**| | +**AssistantSid** | **string**| | +**Sid** | **string**| | **optional** | ***UpdateModelBuildOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6198,7 +6198,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **uniqueName** | **optional.String**| A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. For example: v0.1 | + **UniqueName** | **optional.String**| A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. For example: v0.1 | ### Return type @@ -6220,7 +6220,7 @@ Name | Type | Description | Notes ## UpdateQuery -> PreviewUnderstandAssistantQuery UpdateQuery(ctx, assistantSid, sid, optional) +> PreviewUnderstandAssistantQuery UpdateQuery(ctx, AssistantSid, Sid, optional) @@ -6230,8 +6230,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The unique ID of the parent Assistant. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**AssistantSid** | **string**| The unique ID of the parent Assistant. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | **optional** | ***UpdateQueryOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6243,8 +6243,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **sampleSid** | **optional.String**| An optional reference to the Sample created from this query. | - **status** | **optional.String**| A string that described the query status. The values can be: pending_review, reviewed, discarded | + **SampleSid** | **optional.String**| An optional reference to the Sample created from this query. | + **Status** | **optional.String**| A string that described the query status. The values can be: pending_review, reviewed, discarded | ### Return type @@ -6266,7 +6266,7 @@ Name | Type | Description | Notes ## UpdateRatePlan -> PreviewWirelessRatePlan UpdateRatePlan(ctx, sid, optional) +> PreviewWirelessRatePlan UpdateRatePlan(ctx, Sid, optional) @@ -6276,7 +6276,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| | +**Sid** | **string**| | **optional** | ***UpdateRatePlanOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6287,8 +6287,8 @@ Optional parameters are passed through a pointer to a UpdateRatePlanOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| | - **uniqueName** | **optional.String**| | + **FriendlyName** | **optional.String**| | + **UniqueName** | **optional.String**| | ### Return type @@ -6310,7 +6310,7 @@ Name | Type | Description | Notes ## UpdateSample -> PreviewUnderstandAssistantTaskSample UpdateSample(ctx, assistantSid, taskSid, sid, optional) +> PreviewUnderstandAssistantTaskSample UpdateSample(ctx, AssistantSid, TaskSid, Sid, optional) @@ -6320,9 +6320,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The unique ID of the Assistant. | -**taskSid** | **string**| The unique ID of the Task associated with this Sample. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**AssistantSid** | **string**| The unique ID of the Assistant. | +**TaskSid** | **string**| The unique ID of the Task associated with this Sample. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | **optional** | ***UpdateSampleOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6335,9 +6335,9 @@ Name | Type | Description | Notes - **language** | **optional.String**| An ISO language-country string of the sample. | - **sourceChannel** | **optional.String**| The communication channel the sample was captured. It can be: *voice*, *sms*, *chat*, *alexa*, *google-assistant*, or *slack*. If not included the value will be null | - **taggedText** | **optional.String**| The text example of how end-users may express this task. The sample may contain Field tag blocks. | + **Language** | **optional.String**| An ISO language-country string of the sample. | + **SourceChannel** | **optional.String**| The communication channel the sample was captured. It can be: *voice*, *sms*, *chat*, *alexa*, *google-assistant*, or *slack*. If not included the value will be null | + **TaggedText** | **optional.String**| The text example of how end-users may express this task. The sample may contain Field tag blocks. | ### Return type @@ -6359,7 +6359,7 @@ Name | Type | Description | Notes ## UpdateService -> PreviewSyncService UpdateService(ctx, sid, optional) +> PreviewSyncService UpdateService(ctx, Sid, optional) @@ -6369,7 +6369,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| | +**Sid** | **string**| | **optional** | ***UpdateServiceOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6380,10 +6380,10 @@ Optional parameters are passed through a pointer to a UpdateServiceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **aclEnabled** | **optional.Bool**| | - **friendlyName** | **optional.String**| | - **reachabilityWebhooksEnabled** | **optional.Bool**| | - **webhookUrl** | **optional.String**| | + **AclEnabled** | **optional.Bool**| | + **FriendlyName** | **optional.String**| | + **ReachabilityWebhooksEnabled** | **optional.Bool**| | + **WebhookUrl** | **optional.String**| | ### Return type @@ -6405,7 +6405,7 @@ Name | Type | Description | Notes ## UpdateSim -> PreviewWirelessSim UpdateSim(ctx, sid, optional) +> PreviewWirelessSim UpdateSim(ctx, Sid, optional) @@ -6415,7 +6415,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| | +**Sid** | **string**| | **optional** | ***UpdateSimOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6426,22 +6426,22 @@ Optional parameters are passed through a pointer to a UpdateSimOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **callbackMethod** | **optional.String**| | - **callbackUrl** | **optional.String**| | - **commandsCallbackMethod** | **optional.String**| | - **commandsCallbackUrl** | **optional.String**| | - **friendlyName** | **optional.String**| | - **ratePlan** | **optional.String**| | - **smsFallbackMethod** | **optional.String**| | - **smsFallbackUrl** | **optional.String**| | - **smsMethod** | **optional.String**| | - **smsUrl** | **optional.String**| | - **status** | **optional.String**| | - **uniqueName** | **optional.String**| | - **voiceFallbackMethod** | **optional.String**| | - **voiceFallbackUrl** | **optional.String**| | - **voiceMethod** | **optional.String**| | - **voiceUrl** | **optional.String**| | + **CallbackMethod** | **optional.String**| | + **CallbackUrl** | **optional.String**| | + **CommandsCallbackMethod** | **optional.String**| | + **CommandsCallbackUrl** | **optional.String**| | + **FriendlyName** | **optional.String**| | + **RatePlan** | **optional.String**| | + **SmsFallbackMethod** | **optional.String**| | + **SmsFallbackUrl** | **optional.String**| | + **SmsMethod** | **optional.String**| | + **SmsUrl** | **optional.String**| | + **Status** | **optional.String**| | + **UniqueName** | **optional.String**| | + **VoiceFallbackMethod** | **optional.String**| | + **VoiceFallbackUrl** | **optional.String**| | + **VoiceMethod** | **optional.String**| | + **VoiceUrl** | **optional.String**| | ### Return type @@ -6463,7 +6463,7 @@ Name | Type | Description | Notes ## UpdateStyleSheet -> PreviewUnderstandAssistantStyleSheet UpdateStyleSheet(ctx, assistantSid, optional) +> PreviewUnderstandAssistantStyleSheet UpdateStyleSheet(ctx, AssistantSid, optional) @@ -6475,7 +6475,7 @@ Updates the style sheet for an assistant identified by {AssistantSid} or {Assist Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The unique ID of the Assistant | +**AssistantSid** | **string**| The unique ID of the Assistant | **optional** | ***UpdateStyleSheetOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6486,7 +6486,7 @@ Optional parameters are passed through a pointer to a UpdateStyleSheetOpts struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **styleSheet** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON Style sheet string | + **StyleSheet** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON Style sheet string | ### Return type @@ -6508,7 +6508,7 @@ Name | Type | Description | Notes ## UpdateSyncListItem -> PreviewSyncServiceSyncListSyncListItem UpdateSyncListItem(ctx, serviceSid, listSid, index, optional) +> PreviewSyncServiceSyncListSyncListItem UpdateSyncListItem(ctx, ServiceSid, ListSid, Index, optional) @@ -6518,9 +6518,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**listSid** | **string**| | -**index** | **int32**| | +**ServiceSid** | **string**| | +**ListSid** | **string**| | +**Index** | **int32**| | **optional** | ***UpdateSyncListItemOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6533,8 +6533,8 @@ Name | Type | Description | Notes - **ifMatch** | **optional.String**| The If-Match HTTP request header | - **data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| | + **IfMatch** | **optional.String**| The If-Match HTTP request header | + **Data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| | ### Return type @@ -6556,7 +6556,7 @@ Name | Type | Description | Notes ## UpdateSyncListPermission -> PreviewSyncServiceSyncListSyncListPermission UpdateSyncListPermission(ctx, serviceSid, listSid, identity, optional) +> PreviewSyncServiceSyncListSyncListPermission UpdateSyncListPermission(ctx, ServiceSid, ListSid, Identity, optional) @@ -6568,9 +6568,9 @@ Update an identity's access to a specific Sync List. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Sync Service Instance. | -**listSid** | **string**| Identifier of the Sync List. Either a SID or a unique name. | -**identity** | **string**| Arbitrary string identifier representing a human user associated with an FPA token, assigned by the developer. | +**ServiceSid** | **string**| The unique SID identifier of the Sync Service Instance. | +**ListSid** | **string**| Identifier of the Sync List. Either a SID or a unique name. | +**Identity** | **string**| Arbitrary string identifier representing a human user associated with an FPA token, assigned by the developer. | **optional** | ***UpdateSyncListPermissionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6583,9 +6583,9 @@ Name | Type | Description | Notes - **manage** | **optional.Bool**| Boolean flag specifying whether the identity can delete the Sync List. | - **read** | **optional.Bool**| Boolean flag specifying whether the identity can read the Sync List. | - **write** | **optional.Bool**| Boolean flag specifying whether the identity can create, update and delete Items of the Sync List. | + **Manage** | **optional.Bool**| Boolean flag specifying whether the identity can delete the Sync List. | + **Read** | **optional.Bool**| Boolean flag specifying whether the identity can read the Sync List. | + **Write** | **optional.Bool**| Boolean flag specifying whether the identity can create, update and delete Items of the Sync List. | ### Return type @@ -6607,7 +6607,7 @@ Name | Type | Description | Notes ## UpdateSyncMapItem -> PreviewSyncServiceSyncMapSyncMapItem UpdateSyncMapItem(ctx, serviceSid, mapSid, key, optional) +> PreviewSyncServiceSyncMapSyncMapItem UpdateSyncMapItem(ctx, ServiceSid, MapSid, Key, optional) @@ -6617,9 +6617,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| | -**mapSid** | **string**| | -**key** | **string**| | +**ServiceSid** | **string**| | +**MapSid** | **string**| | +**Key** | **string**| | **optional** | ***UpdateSyncMapItemOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6632,8 +6632,8 @@ Name | Type | Description | Notes - **ifMatch** | **optional.String**| The If-Match HTTP request header | - **data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| | + **IfMatch** | **optional.String**| The If-Match HTTP request header | + **Data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| | ### Return type @@ -6655,7 +6655,7 @@ Name | Type | Description | Notes ## UpdateSyncMapPermission -> PreviewSyncServiceSyncMapSyncMapPermission UpdateSyncMapPermission(ctx, serviceSid, mapSid, identity, optional) +> PreviewSyncServiceSyncMapSyncMapPermission UpdateSyncMapPermission(ctx, ServiceSid, MapSid, Identity, optional) @@ -6667,9 +6667,9 @@ Update an identity's access to a specific Sync Map. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Sync Service Instance. | -**mapSid** | **string**| Identifier of the Sync Map. Either a SID or a unique name. | -**identity** | **string**| Arbitrary string identifier representing a human user associated with an FPA token, assigned by the developer. | +**ServiceSid** | **string**| The unique SID identifier of the Sync Service Instance. | +**MapSid** | **string**| Identifier of the Sync Map. Either a SID or a unique name. | +**Identity** | **string**| Arbitrary string identifier representing a human user associated with an FPA token, assigned by the developer. | **optional** | ***UpdateSyncMapPermissionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6682,9 +6682,9 @@ Name | Type | Description | Notes - **manage** | **optional.Bool**| Boolean flag specifying whether the identity can delete the Sync Map. | - **read** | **optional.Bool**| Boolean flag specifying whether the identity can read the Sync Map. | - **write** | **optional.Bool**| Boolean flag specifying whether the identity can create, update and delete Items of the Sync Map. | + **Manage** | **optional.Bool**| Boolean flag specifying whether the identity can delete the Sync Map. | + **Read** | **optional.Bool**| Boolean flag specifying whether the identity can read the Sync Map. | + **Write** | **optional.Bool**| Boolean flag specifying whether the identity can create, update and delete Items of the Sync Map. | ### Return type @@ -6706,7 +6706,7 @@ Name | Type | Description | Notes ## UpdateTask -> PreviewUnderstandAssistantTask UpdateTask(ctx, assistantSid, sid, optional) +> PreviewUnderstandAssistantTask UpdateTask(ctx, AssistantSid, Sid, optional) @@ -6716,8 +6716,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The unique ID of the Assistant. | -**sid** | **string**| A 34 character string that uniquely identifies this resource. | +**AssistantSid** | **string**| The unique ID of the Assistant. | +**Sid** | **string**| A 34 character string that uniquely identifies this resource. | **optional** | ***UpdateTaskOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6729,10 +6729,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **actions** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A user-provided JSON object encoded as a string to specify the actions for this task. It is optional and non-unique. | - **actionsUrl** | **optional.String**| User-provided HTTP endpoint where from the assistant fetches actions | - **friendlyName** | **optional.String**| A user-provided string that identifies this resource. It is non-unique and can up to 255 characters long. | - **uniqueName** | **optional.String**| A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. | + **Actions** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A user-provided JSON object encoded as a string to specify the actions for this task. It is optional and non-unique. | + **ActionsUrl** | **optional.String**| User-provided HTTP endpoint where from the assistant fetches actions | + **FriendlyName** | **optional.String**| A user-provided string that identifies this resource. It is non-unique and can up to 255 characters long. | + **UniqueName** | **optional.String**| A user-provided string that uniquely identifies this resource as an alternative to the sid. Unique up to 64 characters long. | ### Return type @@ -6754,7 +6754,7 @@ Name | Type | Description | Notes ## UpdateTaskActions -> PreviewUnderstandAssistantTaskTaskActions UpdateTaskActions(ctx, assistantSid, taskSid, optional) +> PreviewUnderstandAssistantTaskTaskActions UpdateTaskActions(ctx, AssistantSid, TaskSid, optional) @@ -6766,8 +6766,8 @@ Updates the actions of an Task identified by {TaskSid} or {TaskUniqueName}. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**assistantSid** | **string**| The unique ID of the parent Assistant. | -**taskSid** | **string**| The unique ID of the Task. | +**AssistantSid** | **string**| The unique ID of the parent Assistant. | +**TaskSid** | **string**| The unique ID of the Task. | **optional** | ***UpdateTaskActionsOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -6779,7 +6779,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **actions** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON actions that instruct the Assistant how to perform this task. | + **Actions** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The JSON actions that instruct the Assistant how to perform this task. | ### Return type diff --git a/rest/preview/model_preview_bulk_exports_export.go b/rest/preview/model_preview_bulk_exports_export.go index 41ff35f47..b9ae53b0c 100644 --- a/rest/preview/model_preview_bulk_exports_export.go +++ b/rest/preview/model_preview_bulk_exports_export.go @@ -11,7 +11,7 @@ package openapi // PreviewBulkExportsExport struct for PreviewBulkExportsExport type PreviewBulkExportsExport struct { - Links map[string]interface{} `json:"links,omitempty"` - ResourceType string `json:"resource_type,omitempty"` - Url string `json:"url,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + ResourceType string `json:"ResourceType,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/preview/model_preview_bulk_exports_export_configuration.go b/rest/preview/model_preview_bulk_exports_export_configuration.go index fd2f9a6a0..d5c228d4f 100644 --- a/rest/preview/model_preview_bulk_exports_export_configuration.go +++ b/rest/preview/model_preview_bulk_exports_export_configuration.go @@ -11,9 +11,9 @@ package openapi // PreviewBulkExportsExportConfiguration struct for PreviewBulkExportsExportConfiguration type PreviewBulkExportsExportConfiguration struct { - Enabled bool `json:"enabled,omitempty"` - ResourceType string `json:"resource_type,omitempty"` - Url string `json:"url,omitempty"` - WebhookMethod string `json:"webhook_method,omitempty"` - WebhookUrl string `json:"webhook_url,omitempty"` + Enabled bool `json:"Enabled,omitempty"` + ResourceType string `json:"ResourceType,omitempty"` + Url string `json:"Url,omitempty"` + WebhookMethod string `json:"WebhookMethod,omitempty"` + WebhookUrl string `json:"WebhookUrl,omitempty"` } diff --git a/rest/preview/model_preview_bulk_exports_export_day.go b/rest/preview/model_preview_bulk_exports_export_day.go index a4b36f223..188e1572a 100644 --- a/rest/preview/model_preview_bulk_exports_export_day.go +++ b/rest/preview/model_preview_bulk_exports_export_day.go @@ -11,9 +11,9 @@ package openapi // PreviewBulkExportsExportDay struct for PreviewBulkExportsExportDay type PreviewBulkExportsExportDay struct { - CreateDate string `json:"create_date,omitempty"` - Day string `json:"day,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - ResourceType string `json:"resource_type,omitempty"` - Size int32 `json:"size,omitempty"` + CreateDate string `json:"CreateDate,omitempty"` + Day string `json:"Day,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + ResourceType string `json:"ResourceType,omitempty"` + Size int32 `json:"Size,omitempty"` } diff --git a/rest/preview/model_preview_bulk_exports_export_day_instance.go b/rest/preview/model_preview_bulk_exports_export_day_instance.go index 4d1ee1c61..3476d89ef 100644 --- a/rest/preview/model_preview_bulk_exports_export_day_instance.go +++ b/rest/preview/model_preview_bulk_exports_export_day_instance.go @@ -11,5 +11,5 @@ package openapi // PreviewBulkExportsExportDayInstance struct for PreviewBulkExportsExportDayInstance type PreviewBulkExportsExportDayInstance struct { - RedirectTo string `json:"redirect_to,omitempty"` + RedirectTo string `json:"RedirectTo,omitempty"` } diff --git a/rest/preview/model_preview_bulk_exports_export_day_read_response.go b/rest/preview/model_preview_bulk_exports_export_day_read_response.go index ddb89e221..278338209 100644 --- a/rest/preview/model_preview_bulk_exports_export_day_read_response.go +++ b/rest/preview/model_preview_bulk_exports_export_day_read_response.go @@ -11,6 +11,6 @@ package openapi // PreviewBulkExportsExportDayReadResponse struct for PreviewBulkExportsExportDayReadResponse type PreviewBulkExportsExportDayReadResponse struct { - Days []PreviewBulkExportsExportDay `json:"days,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` + Days []PreviewBulkExportsExportDay `json:"Days,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/preview/model_preview_bulk_exports_export_day_read_response_meta.go b/rest/preview/model_preview_bulk_exports_export_day_read_response_meta.go index 48faaad33..c80f43017 100644 --- a/rest/preview/model_preview_bulk_exports_export_day_read_response_meta.go +++ b/rest/preview/model_preview_bulk_exports_export_day_read_response_meta.go @@ -11,11 +11,11 @@ package openapi // PreviewBulkExportsExportDayReadResponseMeta struct for PreviewBulkExportsExportDayReadResponseMeta type PreviewBulkExportsExportDayReadResponseMeta struct { - FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` - NextPageUrl string `json:"next_page_url,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUrl string `json:"previous_page_url,omitempty"` - Url string `json:"url,omitempty"` + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/preview/model_preview_bulk_exports_export_export_custom_job.go b/rest/preview/model_preview_bulk_exports_export_export_custom_job.go index ff8105914..bbae9d52e 100644 --- a/rest/preview/model_preview_bulk_exports_export_export_custom_job.go +++ b/rest/preview/model_preview_bulk_exports_export_export_custom_job.go @@ -11,13 +11,13 @@ package openapi // PreviewBulkExportsExportExportCustomJob struct for PreviewBulkExportsExportExportCustomJob type PreviewBulkExportsExportExportCustomJob struct { - Details map[string]interface{} `json:"details,omitempty"` - Email string `json:"email,omitempty"` - EndDay string `json:"end_day,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - JobSid string `json:"job_sid,omitempty"` - ResourceType string `json:"resource_type,omitempty"` - StartDay string `json:"start_day,omitempty"` - WebhookMethod string `json:"webhook_method,omitempty"` - WebhookUrl string `json:"webhook_url,omitempty"` + Details map[string]interface{} `json:"Details,omitempty"` + Email string `json:"Email,omitempty"` + EndDay string `json:"EndDay,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + JobSid string `json:"JobSid,omitempty"` + ResourceType string `json:"ResourceType,omitempty"` + StartDay string `json:"StartDay,omitempty"` + WebhookMethod string `json:"WebhookMethod,omitempty"` + WebhookUrl string `json:"WebhookUrl,omitempty"` } diff --git a/rest/preview/model_preview_bulk_exports_export_export_custom_job_read_response.go b/rest/preview/model_preview_bulk_exports_export_export_custom_job_read_response.go index 2f8ca0a80..21a25de99 100644 --- a/rest/preview/model_preview_bulk_exports_export_export_custom_job_read_response.go +++ b/rest/preview/model_preview_bulk_exports_export_export_custom_job_read_response.go @@ -11,6 +11,6 @@ package openapi // PreviewBulkExportsExportExportCustomJobReadResponse struct for PreviewBulkExportsExportExportCustomJobReadResponse type PreviewBulkExportsExportExportCustomJobReadResponse struct { - Jobs []PreviewBulkExportsExportExportCustomJob `json:"jobs,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` + Jobs []PreviewBulkExportsExportExportCustomJob `json:"Jobs,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/preview/model_preview_bulk_exports_export_job.go b/rest/preview/model_preview_bulk_exports_export_job.go index 70185c32c..f15b3528a 100644 --- a/rest/preview/model_preview_bulk_exports_export_job.go +++ b/rest/preview/model_preview_bulk_exports_export_job.go @@ -11,14 +11,14 @@ package openapi // PreviewBulkExportsExportJob struct for PreviewBulkExportsExportJob type PreviewBulkExportsExportJob struct { - Details map[string]interface{} `json:"details,omitempty"` - Email string `json:"email,omitempty"` - EndDay string `json:"end_day,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - JobSid string `json:"job_sid,omitempty"` - ResourceType string `json:"resource_type,omitempty"` - StartDay string `json:"start_day,omitempty"` - Url string `json:"url,omitempty"` - WebhookMethod string `json:"webhook_method,omitempty"` - WebhookUrl string `json:"webhook_url,omitempty"` + Details map[string]interface{} `json:"Details,omitempty"` + Email string `json:"Email,omitempty"` + EndDay string `json:"EndDay,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + JobSid string `json:"JobSid,omitempty"` + ResourceType string `json:"ResourceType,omitempty"` + StartDay string `json:"StartDay,omitempty"` + Url string `json:"Url,omitempty"` + WebhookMethod string `json:"WebhookMethod,omitempty"` + WebhookUrl string `json:"WebhookUrl,omitempty"` } diff --git a/rest/preview/model_preview_deployed_devices_fleet.go b/rest/preview/model_preview_deployed_devices_fleet.go index 31241ad97..1c2cdb7ac 100644 --- a/rest/preview/model_preview_deployed_devices_fleet.go +++ b/rest/preview/model_preview_deployed_devices_fleet.go @@ -14,13 +14,13 @@ import ( ) // PreviewDeployedDevicesFleet struct for PreviewDeployedDevicesFleet type PreviewDeployedDevicesFleet struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - DefaultDeploymentSid string `json:"default_deployment_sid,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Sid string `json:"sid,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + DefaultDeploymentSid string `json:"DefaultDeploymentSid,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Sid string `json:"Sid,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/preview/model_preview_deployed_devices_fleet_certificate.go b/rest/preview/model_preview_deployed_devices_fleet_certificate.go index 62e661e6a..a903435db 100644 --- a/rest/preview/model_preview_deployed_devices_fleet_certificate.go +++ b/rest/preview/model_preview_deployed_devices_fleet_certificate.go @@ -14,13 +14,13 @@ import ( ) // PreviewDeployedDevicesFleetCertificate struct for PreviewDeployedDevicesFleetCertificate type PreviewDeployedDevicesFleetCertificate struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - DeviceSid string `json:"device_sid,omitempty"` - FleetSid string `json:"fleet_sid,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Sid string `json:"sid,omitempty"` - Thumbprint string `json:"thumbprint,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + DeviceSid string `json:"DeviceSid,omitempty"` + FleetSid string `json:"FleetSid,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Sid string `json:"Sid,omitempty"` + Thumbprint string `json:"Thumbprint,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/preview/model_preview_deployed_devices_fleet_certificate_read_response.go b/rest/preview/model_preview_deployed_devices_fleet_certificate_read_response.go index ff451e519..4c23ea040 100644 --- a/rest/preview/model_preview_deployed_devices_fleet_certificate_read_response.go +++ b/rest/preview/model_preview_deployed_devices_fleet_certificate_read_response.go @@ -11,6 +11,6 @@ package openapi // PreviewDeployedDevicesFleetCertificateReadResponse struct for PreviewDeployedDevicesFleetCertificateReadResponse type PreviewDeployedDevicesFleetCertificateReadResponse struct { - Certificates []PreviewDeployedDevicesFleetCertificate `json:"certificates,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` + Certificates []PreviewDeployedDevicesFleetCertificate `json:"Certificates,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/preview/model_preview_deployed_devices_fleet_deployment.go b/rest/preview/model_preview_deployed_devices_fleet_deployment.go index bae3ad55a..2e728711a 100644 --- a/rest/preview/model_preview_deployed_devices_fleet_deployment.go +++ b/rest/preview/model_preview_deployed_devices_fleet_deployment.go @@ -14,12 +14,12 @@ import ( ) // PreviewDeployedDevicesFleetDeployment struct for PreviewDeployedDevicesFleetDeployment type PreviewDeployedDevicesFleetDeployment struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FleetSid string `json:"fleet_sid,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Sid string `json:"sid,omitempty"` - SyncServiceSid string `json:"sync_service_sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FleetSid string `json:"FleetSid,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Sid string `json:"Sid,omitempty"` + SyncServiceSid string `json:"SyncServiceSid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/preview/model_preview_deployed_devices_fleet_deployment_read_response.go b/rest/preview/model_preview_deployed_devices_fleet_deployment_read_response.go index 1756e7c1a..2ebb10964 100644 --- a/rest/preview/model_preview_deployed_devices_fleet_deployment_read_response.go +++ b/rest/preview/model_preview_deployed_devices_fleet_deployment_read_response.go @@ -11,6 +11,6 @@ package openapi // PreviewDeployedDevicesFleetDeploymentReadResponse struct for PreviewDeployedDevicesFleetDeploymentReadResponse type PreviewDeployedDevicesFleetDeploymentReadResponse struct { - Deployments []PreviewDeployedDevicesFleetDeployment `json:"deployments,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` + Deployments []PreviewDeployedDevicesFleetDeployment `json:"Deployments,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/preview/model_preview_deployed_devices_fleet_device.go b/rest/preview/model_preview_deployed_devices_fleet_device.go index 112b28c14..dad069420 100644 --- a/rest/preview/model_preview_deployed_devices_fleet_device.go +++ b/rest/preview/model_preview_deployed_devices_fleet_device.go @@ -14,16 +14,16 @@ import ( ) // PreviewDeployedDevicesFleetDevice struct for PreviewDeployedDevicesFleetDevice type PreviewDeployedDevicesFleetDevice struct { - AccountSid string `json:"account_sid,omitempty"` - DateAuthenticated time.Time `json:"date_authenticated,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - DeploymentSid string `json:"deployment_sid,omitempty"` - Enabled bool `json:"enabled,omitempty"` - FleetSid string `json:"fleet_sid,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Identity string `json:"identity,omitempty"` - Sid string `json:"sid,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateAuthenticated time.Time `json:"DateAuthenticated,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + DeploymentSid string `json:"DeploymentSid,omitempty"` + Enabled bool `json:"Enabled,omitempty"` + FleetSid string `json:"FleetSid,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Identity string `json:"Identity,omitempty"` + Sid string `json:"Sid,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/preview/model_preview_deployed_devices_fleet_device_read_response.go b/rest/preview/model_preview_deployed_devices_fleet_device_read_response.go index d36630f7f..f02905d84 100644 --- a/rest/preview/model_preview_deployed_devices_fleet_device_read_response.go +++ b/rest/preview/model_preview_deployed_devices_fleet_device_read_response.go @@ -11,6 +11,6 @@ package openapi // PreviewDeployedDevicesFleetDeviceReadResponse struct for PreviewDeployedDevicesFleetDeviceReadResponse type PreviewDeployedDevicesFleetDeviceReadResponse struct { - Devices []PreviewDeployedDevicesFleetDevice `json:"devices,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` + Devices []PreviewDeployedDevicesFleetDevice `json:"Devices,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/preview/model_preview_deployed_devices_fleet_key.go b/rest/preview/model_preview_deployed_devices_fleet_key.go index 3709cc3a1..853bab8b0 100644 --- a/rest/preview/model_preview_deployed_devices_fleet_key.go +++ b/rest/preview/model_preview_deployed_devices_fleet_key.go @@ -14,13 +14,13 @@ import ( ) // PreviewDeployedDevicesFleetKey struct for PreviewDeployedDevicesFleetKey type PreviewDeployedDevicesFleetKey struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - DeviceSid string `json:"device_sid,omitempty"` - FleetSid string `json:"fleet_sid,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Secret string `json:"secret,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + DeviceSid string `json:"DeviceSid,omitempty"` + FleetSid string `json:"FleetSid,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Secret string `json:"Secret,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/preview/model_preview_deployed_devices_fleet_key_read_response.go b/rest/preview/model_preview_deployed_devices_fleet_key_read_response.go index f28eff179..46fb308b6 100644 --- a/rest/preview/model_preview_deployed_devices_fleet_key_read_response.go +++ b/rest/preview/model_preview_deployed_devices_fleet_key_read_response.go @@ -11,6 +11,6 @@ package openapi // PreviewDeployedDevicesFleetKeyReadResponse struct for PreviewDeployedDevicesFleetKeyReadResponse type PreviewDeployedDevicesFleetKeyReadResponse struct { - Keys []PreviewDeployedDevicesFleetKey `json:"keys,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` + Keys []PreviewDeployedDevicesFleetKey `json:"Keys,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/preview/model_preview_deployed_devices_fleet_read_response.go b/rest/preview/model_preview_deployed_devices_fleet_read_response.go index 700d8454b..9d491a207 100644 --- a/rest/preview/model_preview_deployed_devices_fleet_read_response.go +++ b/rest/preview/model_preview_deployed_devices_fleet_read_response.go @@ -11,6 +11,6 @@ package openapi // PreviewDeployedDevicesFleetReadResponse struct for PreviewDeployedDevicesFleetReadResponse type PreviewDeployedDevicesFleetReadResponse struct { - Fleets []PreviewDeployedDevicesFleet `json:"fleets,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` + Fleets []PreviewDeployedDevicesFleet `json:"Fleets,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/preview/model_preview_hosted_numbers_authorization_document.go b/rest/preview/model_preview_hosted_numbers_authorization_document.go index d9255f430..26cae524f 100644 --- a/rest/preview/model_preview_hosted_numbers_authorization_document.go +++ b/rest/preview/model_preview_hosted_numbers_authorization_document.go @@ -14,13 +14,13 @@ import ( ) // PreviewHostedNumbersAuthorizationDocument struct for PreviewHostedNumbersAuthorizationDocument type PreviewHostedNumbersAuthorizationDocument struct { - AddressSid string `json:"address_sid,omitempty"` - CcEmails []string `json:"cc_emails,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Email string `json:"email,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - Url string `json:"url,omitempty"` + AddressSid string `json:"AddressSid,omitempty"` + CcEmails []string `json:"CcEmails,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Email string `json:"Email,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Sid string `json:"Sid,omitempty"` + Status string `json:"Status,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/preview/model_preview_hosted_numbers_authorization_document_dependent_hosted_number_order.go b/rest/preview/model_preview_hosted_numbers_authorization_document_dependent_hosted_number_order.go index 91fe8df7a..ef027dde4 100644 --- a/rest/preview/model_preview_hosted_numbers_authorization_document_dependent_hosted_number_order.go +++ b/rest/preview/model_preview_hosted_numbers_authorization_document_dependent_hosted_number_order.go @@ -14,26 +14,26 @@ import ( ) // PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrder struct for PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrder type PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrder struct { - AccountSid string `json:"account_sid,omitempty"` - AddressSid string `json:"address_sid,omitempty"` - CallDelay int32 `json:"call_delay,omitempty"` - Capabilities map[string]interface{} `json:"capabilities,omitempty"` - CcEmails []string `json:"cc_emails,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Email string `json:"email,omitempty"` - Extension string `json:"extension,omitempty"` - FailureReason string `json:"failure_reason,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - IncomingPhoneNumberSid string `json:"incoming_phone_number_sid,omitempty"` - PhoneNumber string `json:"phone_number,omitempty"` - Sid string `json:"sid,omitempty"` - SigningDocumentSid string `json:"signing_document_sid,omitempty"` - Status string `json:"status,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - VerificationAttempts int32 `json:"verification_attempts,omitempty"` - VerificationCallSids []string `json:"verification_call_sids,omitempty"` - VerificationCode string `json:"verification_code,omitempty"` - VerificationDocumentSid string `json:"verification_document_sid,omitempty"` - VerificationType string `json:"verification_type,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AddressSid string `json:"AddressSid,omitempty"` + CallDelay int32 `json:"CallDelay,omitempty"` + Capabilities map[string]interface{} `json:"Capabilities,omitempty"` + CcEmails []string `json:"CcEmails,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Email string `json:"Email,omitempty"` + Extension string `json:"Extension,omitempty"` + FailureReason string `json:"FailureReason,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + IncomingPhoneNumberSid string `json:"IncomingPhoneNumberSid,omitempty"` + PhoneNumber string `json:"PhoneNumber,omitempty"` + Sid string `json:"Sid,omitempty"` + SigningDocumentSid string `json:"SigningDocumentSid,omitempty"` + Status string `json:"Status,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + VerificationAttempts int32 `json:"VerificationAttempts,omitempty"` + VerificationCallSids []string `json:"VerificationCallSids,omitempty"` + VerificationCode string `json:"VerificationCode,omitempty"` + VerificationDocumentSid string `json:"VerificationDocumentSid,omitempty"` + VerificationType string `json:"VerificationType,omitempty"` } diff --git a/rest/preview/model_preview_hosted_numbers_authorization_document_dependent_hosted_number_order_read_response.go b/rest/preview/model_preview_hosted_numbers_authorization_document_dependent_hosted_number_order_read_response.go index 6c16d65e6..4d8876b61 100644 --- a/rest/preview/model_preview_hosted_numbers_authorization_document_dependent_hosted_number_order_read_response.go +++ b/rest/preview/model_preview_hosted_numbers_authorization_document_dependent_hosted_number_order_read_response.go @@ -11,6 +11,6 @@ package openapi // PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse struct for PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse type PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse struct { - Items []PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrder `json:"items,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` + Items []PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrder `json:"Items,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/preview/model_preview_hosted_numbers_authorization_document_read_response.go b/rest/preview/model_preview_hosted_numbers_authorization_document_read_response.go index 603f76446..660858d30 100644 --- a/rest/preview/model_preview_hosted_numbers_authorization_document_read_response.go +++ b/rest/preview/model_preview_hosted_numbers_authorization_document_read_response.go @@ -11,6 +11,6 @@ package openapi // PreviewHostedNumbersAuthorizationDocumentReadResponse struct for PreviewHostedNumbersAuthorizationDocumentReadResponse type PreviewHostedNumbersAuthorizationDocumentReadResponse struct { - Items []PreviewHostedNumbersAuthorizationDocument `json:"items,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` + Items []PreviewHostedNumbersAuthorizationDocument `json:"Items,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/preview/model_preview_hosted_numbers_hosted_number_order.go b/rest/preview/model_preview_hosted_numbers_hosted_number_order.go index 9e9433b9e..85297edf0 100644 --- a/rest/preview/model_preview_hosted_numbers_hosted_number_order.go +++ b/rest/preview/model_preview_hosted_numbers_hosted_number_order.go @@ -14,27 +14,27 @@ import ( ) // PreviewHostedNumbersHostedNumberOrder struct for PreviewHostedNumbersHostedNumberOrder type PreviewHostedNumbersHostedNumberOrder struct { - AccountSid string `json:"account_sid,omitempty"` - AddressSid string `json:"address_sid,omitempty"` - CallDelay int32 `json:"call_delay,omitempty"` - Capabilities map[string]interface{} `json:"capabilities,omitempty"` - CcEmails []string `json:"cc_emails,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Email string `json:"email,omitempty"` - Extension string `json:"extension,omitempty"` - FailureReason string `json:"failure_reason,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - IncomingPhoneNumberSid string `json:"incoming_phone_number_sid,omitempty"` - PhoneNumber string `json:"phone_number,omitempty"` - Sid string `json:"sid,omitempty"` - SigningDocumentSid string `json:"signing_document_sid,omitempty"` - Status string `json:"status,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` - VerificationAttempts int32 `json:"verification_attempts,omitempty"` - VerificationCallSids []string `json:"verification_call_sids,omitempty"` - VerificationCode string `json:"verification_code,omitempty"` - VerificationDocumentSid string `json:"verification_document_sid,omitempty"` - VerificationType string `json:"verification_type,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AddressSid string `json:"AddressSid,omitempty"` + CallDelay int32 `json:"CallDelay,omitempty"` + Capabilities map[string]interface{} `json:"Capabilities,omitempty"` + CcEmails []string `json:"CcEmails,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Email string `json:"Email,omitempty"` + Extension string `json:"Extension,omitempty"` + FailureReason string `json:"FailureReason,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + IncomingPhoneNumberSid string `json:"IncomingPhoneNumberSid,omitempty"` + PhoneNumber string `json:"PhoneNumber,omitempty"` + Sid string `json:"Sid,omitempty"` + SigningDocumentSid string `json:"SigningDocumentSid,omitempty"` + Status string `json:"Status,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` + VerificationAttempts int32 `json:"VerificationAttempts,omitempty"` + VerificationCallSids []string `json:"VerificationCallSids,omitempty"` + VerificationCode string `json:"VerificationCode,omitempty"` + VerificationDocumentSid string `json:"VerificationDocumentSid,omitempty"` + VerificationType string `json:"VerificationType,omitempty"` } diff --git a/rest/preview/model_preview_hosted_numbers_hosted_number_order_read_response.go b/rest/preview/model_preview_hosted_numbers_hosted_number_order_read_response.go index 0adede1d6..640a8ace2 100644 --- a/rest/preview/model_preview_hosted_numbers_hosted_number_order_read_response.go +++ b/rest/preview/model_preview_hosted_numbers_hosted_number_order_read_response.go @@ -11,6 +11,6 @@ package openapi // PreviewHostedNumbersHostedNumberOrderReadResponse struct for PreviewHostedNumbersHostedNumberOrderReadResponse type PreviewHostedNumbersHostedNumberOrderReadResponse struct { - Items []PreviewHostedNumbersHostedNumberOrder `json:"items,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` + Items []PreviewHostedNumbersHostedNumberOrder `json:"Items,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/preview/model_preview_marketplace_available_add_on.go b/rest/preview/model_preview_marketplace_available_add_on.go index e0a555334..ff5770e1a 100644 --- a/rest/preview/model_preview_marketplace_available_add_on.go +++ b/rest/preview/model_preview_marketplace_available_add_on.go @@ -11,11 +11,11 @@ package openapi // PreviewMarketplaceAvailableAddOn struct for PreviewMarketplaceAvailableAddOn type PreviewMarketplaceAvailableAddOn struct { - ConfigurationSchema map[string]interface{} `json:"configuration_schema,omitempty"` - Description string `json:"description,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - PricingType string `json:"pricing_type,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + ConfigurationSchema map[string]interface{} `json:"ConfigurationSchema,omitempty"` + Description string `json:"Description,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + PricingType string `json:"PricingType,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/preview/model_preview_marketplace_available_add_on_available_add_on_extension.go b/rest/preview/model_preview_marketplace_available_add_on_available_add_on_extension.go index 61ea90eee..c35d0a7db 100644 --- a/rest/preview/model_preview_marketplace_available_add_on_available_add_on_extension.go +++ b/rest/preview/model_preview_marketplace_available_add_on_available_add_on_extension.go @@ -11,10 +11,10 @@ package openapi // PreviewMarketplaceAvailableAddOnAvailableAddOnExtension struct for PreviewMarketplaceAvailableAddOnAvailableAddOnExtension type PreviewMarketplaceAvailableAddOnAvailableAddOnExtension struct { - AvailableAddOnSid string `json:"available_add_on_sid,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - ProductName string `json:"product_name,omitempty"` - Sid string `json:"sid,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` + AvailableAddOnSid string `json:"AvailableAddOnSid,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + ProductName string `json:"ProductName,omitempty"` + Sid string `json:"Sid,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/preview/model_preview_marketplace_available_add_on_available_add_on_extension_read_response.go b/rest/preview/model_preview_marketplace_available_add_on_available_add_on_extension_read_response.go index 5102ac984..c40fee1cf 100644 --- a/rest/preview/model_preview_marketplace_available_add_on_available_add_on_extension_read_response.go +++ b/rest/preview/model_preview_marketplace_available_add_on_available_add_on_extension_read_response.go @@ -11,6 +11,6 @@ package openapi // PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse struct for PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse type PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse struct { - Extensions []PreviewMarketplaceAvailableAddOnAvailableAddOnExtension `json:"extensions,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` + Extensions []PreviewMarketplaceAvailableAddOnAvailableAddOnExtension `json:"Extensions,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/preview/model_preview_marketplace_available_add_on_read_response.go b/rest/preview/model_preview_marketplace_available_add_on_read_response.go index f0cf995cd..b540059ce 100644 --- a/rest/preview/model_preview_marketplace_available_add_on_read_response.go +++ b/rest/preview/model_preview_marketplace_available_add_on_read_response.go @@ -11,6 +11,6 @@ package openapi // PreviewMarketplaceAvailableAddOnReadResponse struct for PreviewMarketplaceAvailableAddOnReadResponse type PreviewMarketplaceAvailableAddOnReadResponse struct { - AvailableAddOns []PreviewMarketplaceAvailableAddOn `json:"available_add_ons,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` + AvailableAddOns []PreviewMarketplaceAvailableAddOn `json:"AvailableAddOns,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/preview/model_preview_marketplace_installed_add_on.go b/rest/preview/model_preview_marketplace_installed_add_on.go index a1b2396be..c9d8feb4c 100644 --- a/rest/preview/model_preview_marketplace_installed_add_on.go +++ b/rest/preview/model_preview_marketplace_installed_add_on.go @@ -14,14 +14,14 @@ import ( ) // PreviewMarketplaceInstalledAddOn struct for PreviewMarketplaceInstalledAddOn type PreviewMarketplaceInstalledAddOn struct { - AccountSid string `json:"account_sid,omitempty"` - Configuration map[string]interface{} `json:"configuration,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Description string `json:"description,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Sid string `json:"sid,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Configuration map[string]interface{} `json:"Configuration,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Description string `json:"Description,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Sid string `json:"Sid,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/preview/model_preview_marketplace_installed_add_on_installed_add_on_extension.go b/rest/preview/model_preview_marketplace_installed_add_on_installed_add_on_extension.go index 953fddf59..f641d0260 100644 --- a/rest/preview/model_preview_marketplace_installed_add_on_installed_add_on_extension.go +++ b/rest/preview/model_preview_marketplace_installed_add_on_installed_add_on_extension.go @@ -11,11 +11,11 @@ package openapi // PreviewMarketplaceInstalledAddOnInstalledAddOnExtension struct for PreviewMarketplaceInstalledAddOnInstalledAddOnExtension type PreviewMarketplaceInstalledAddOnInstalledAddOnExtension struct { - Enabled bool `json:"enabled,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - InstalledAddOnSid string `json:"installed_add_on_sid,omitempty"` - ProductName string `json:"product_name,omitempty"` - Sid string `json:"sid,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` + Enabled bool `json:"Enabled,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + InstalledAddOnSid string `json:"InstalledAddOnSid,omitempty"` + ProductName string `json:"ProductName,omitempty"` + Sid string `json:"Sid,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/preview/model_preview_marketplace_installed_add_on_installed_add_on_extension_read_response.go b/rest/preview/model_preview_marketplace_installed_add_on_installed_add_on_extension_read_response.go index f27cb921d..8b1a7895a 100644 --- a/rest/preview/model_preview_marketplace_installed_add_on_installed_add_on_extension_read_response.go +++ b/rest/preview/model_preview_marketplace_installed_add_on_installed_add_on_extension_read_response.go @@ -11,6 +11,6 @@ package openapi // PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse struct for PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse type PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse struct { - Extensions []PreviewMarketplaceInstalledAddOnInstalledAddOnExtension `json:"extensions,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` + Extensions []PreviewMarketplaceInstalledAddOnInstalledAddOnExtension `json:"Extensions,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/preview/model_preview_marketplace_installed_add_on_read_response.go b/rest/preview/model_preview_marketplace_installed_add_on_read_response.go index 988cdf591..e3f7d85ab 100644 --- a/rest/preview/model_preview_marketplace_installed_add_on_read_response.go +++ b/rest/preview/model_preview_marketplace_installed_add_on_read_response.go @@ -11,6 +11,6 @@ package openapi // PreviewMarketplaceInstalledAddOnReadResponse struct for PreviewMarketplaceInstalledAddOnReadResponse type PreviewMarketplaceInstalledAddOnReadResponse struct { - InstalledAddOns []PreviewMarketplaceInstalledAddOn `json:"installed_add_ons,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` + InstalledAddOns []PreviewMarketplaceInstalledAddOn `json:"InstalledAddOns,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/preview/model_preview_sync_service.go b/rest/preview/model_preview_sync_service.go index 7d0a63277..09601dc07 100644 --- a/rest/preview/model_preview_sync_service.go +++ b/rest/preview/model_preview_sync_service.go @@ -14,14 +14,14 @@ import ( ) // PreviewSyncService struct for PreviewSyncService type PreviewSyncService struct { - AccountSid string `json:"account_sid,omitempty"` - AclEnabled bool `json:"acl_enabled,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - ReachabilityWebhooksEnabled bool `json:"reachability_webhooks_enabled,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` - WebhookUrl string `json:"webhook_url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AclEnabled bool `json:"AclEnabled,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + ReachabilityWebhooksEnabled bool `json:"ReachabilityWebhooksEnabled,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` + WebhookUrl string `json:"WebhookUrl,omitempty"` } diff --git a/rest/preview/model_preview_sync_service_document.go b/rest/preview/model_preview_sync_service_document.go index c20264a78..8f4bf19e8 100644 --- a/rest/preview/model_preview_sync_service_document.go +++ b/rest/preview/model_preview_sync_service_document.go @@ -14,15 +14,15 @@ import ( ) // PreviewSyncServiceDocument struct for PreviewSyncServiceDocument type PreviewSyncServiceDocument struct { - AccountSid string `json:"account_sid,omitempty"` - CreatedBy string `json:"created_by,omitempty"` - Data map[string]interface{} `json:"data,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Revision string `json:"revision,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + CreatedBy string `json:"CreatedBy,omitempty"` + Data map[string]interface{} `json:"Data,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Revision string `json:"Revision,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/preview/model_preview_sync_service_document_document_permission.go b/rest/preview/model_preview_sync_service_document_document_permission.go index 508fcd73c..802ebd47d 100644 --- a/rest/preview/model_preview_sync_service_document_document_permission.go +++ b/rest/preview/model_preview_sync_service_document_document_permission.go @@ -11,12 +11,12 @@ package openapi // PreviewSyncServiceDocumentDocumentPermission struct for PreviewSyncServiceDocumentDocumentPermission type PreviewSyncServiceDocumentDocumentPermission struct { - AccountSid string `json:"account_sid,omitempty"` - DocumentSid string `json:"document_sid,omitempty"` - Identity string `json:"identity,omitempty"` - Manage bool `json:"manage,omitempty"` - Read bool `json:"read,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Url string `json:"url,omitempty"` - Write bool `json:"write,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DocumentSid string `json:"DocumentSid,omitempty"` + Identity string `json:"Identity,omitempty"` + Manage bool `json:"Manage,omitempty"` + Read bool `json:"Read,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Url string `json:"Url,omitempty"` + Write bool `json:"Write,omitempty"` } diff --git a/rest/preview/model_preview_sync_service_document_document_permission_read_response.go b/rest/preview/model_preview_sync_service_document_document_permission_read_response.go index 210dd05b5..f32571c35 100644 --- a/rest/preview/model_preview_sync_service_document_document_permission_read_response.go +++ b/rest/preview/model_preview_sync_service_document_document_permission_read_response.go @@ -11,6 +11,6 @@ package openapi // PreviewSyncServiceDocumentDocumentPermissionReadResponse struct for PreviewSyncServiceDocumentDocumentPermissionReadResponse type PreviewSyncServiceDocumentDocumentPermissionReadResponse struct { - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` - Permissions []PreviewSyncServiceDocumentDocumentPermission `json:"permissions,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` + Permissions []PreviewSyncServiceDocumentDocumentPermission `json:"Permissions,omitempty"` } diff --git a/rest/preview/model_preview_sync_service_document_read_response.go b/rest/preview/model_preview_sync_service_document_read_response.go index 3162345b1..c05b75737 100644 --- a/rest/preview/model_preview_sync_service_document_read_response.go +++ b/rest/preview/model_preview_sync_service_document_read_response.go @@ -11,6 +11,6 @@ package openapi // PreviewSyncServiceDocumentReadResponse struct for PreviewSyncServiceDocumentReadResponse type PreviewSyncServiceDocumentReadResponse struct { - Documents []PreviewSyncServiceDocument `json:"documents,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` + Documents []PreviewSyncServiceDocument `json:"Documents,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/preview/model_preview_sync_service_read_response.go b/rest/preview/model_preview_sync_service_read_response.go index 407b37061..d63d9c6a9 100644 --- a/rest/preview/model_preview_sync_service_read_response.go +++ b/rest/preview/model_preview_sync_service_read_response.go @@ -11,6 +11,6 @@ package openapi // PreviewSyncServiceReadResponse struct for PreviewSyncServiceReadResponse type PreviewSyncServiceReadResponse struct { - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` - Services []PreviewSyncService `json:"services,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` + Services []PreviewSyncService `json:"Services,omitempty"` } diff --git a/rest/preview/model_preview_sync_service_sync_list.go b/rest/preview/model_preview_sync_service_sync_list.go index 6bf4fb99a..f5007390b 100644 --- a/rest/preview/model_preview_sync_service_sync_list.go +++ b/rest/preview/model_preview_sync_service_sync_list.go @@ -14,14 +14,14 @@ import ( ) // PreviewSyncServiceSyncList struct for PreviewSyncServiceSyncList type PreviewSyncServiceSyncList struct { - AccountSid string `json:"account_sid,omitempty"` - CreatedBy string `json:"created_by,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Revision string `json:"revision,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + CreatedBy string `json:"CreatedBy,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Revision string `json:"Revision,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/preview/model_preview_sync_service_sync_list_read_response.go b/rest/preview/model_preview_sync_service_sync_list_read_response.go index f51a14a83..12e788ace 100644 --- a/rest/preview/model_preview_sync_service_sync_list_read_response.go +++ b/rest/preview/model_preview_sync_service_sync_list_read_response.go @@ -11,6 +11,6 @@ package openapi // PreviewSyncServiceSyncListReadResponse struct for PreviewSyncServiceSyncListReadResponse type PreviewSyncServiceSyncListReadResponse struct { - Lists []PreviewSyncServiceSyncList `json:"lists,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` + Lists []PreviewSyncServiceSyncList `json:"Lists,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/preview/model_preview_sync_service_sync_list_sync_list_item.go b/rest/preview/model_preview_sync_service_sync_list_sync_list_item.go index 7e9f2907e..2ec69856a 100644 --- a/rest/preview/model_preview_sync_service_sync_list_sync_list_item.go +++ b/rest/preview/model_preview_sync_service_sync_list_sync_list_item.go @@ -14,14 +14,14 @@ import ( ) // PreviewSyncServiceSyncListSyncListItem struct for PreviewSyncServiceSyncListSyncListItem type PreviewSyncServiceSyncListSyncListItem struct { - AccountSid string `json:"account_sid,omitempty"` - CreatedBy string `json:"created_by,omitempty"` - Data map[string]interface{} `json:"data,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Index int32 `json:"index,omitempty"` - ListSid string `json:"list_sid,omitempty"` - Revision string `json:"revision,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + CreatedBy string `json:"CreatedBy,omitempty"` + Data map[string]interface{} `json:"Data,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Index int32 `json:"Index,omitempty"` + ListSid string `json:"ListSid,omitempty"` + Revision string `json:"Revision,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/preview/model_preview_sync_service_sync_list_sync_list_item_read_response.go b/rest/preview/model_preview_sync_service_sync_list_sync_list_item_read_response.go index 17aa0868a..ffa597020 100644 --- a/rest/preview/model_preview_sync_service_sync_list_sync_list_item_read_response.go +++ b/rest/preview/model_preview_sync_service_sync_list_sync_list_item_read_response.go @@ -11,6 +11,6 @@ package openapi // PreviewSyncServiceSyncListSyncListItemReadResponse struct for PreviewSyncServiceSyncListSyncListItemReadResponse type PreviewSyncServiceSyncListSyncListItemReadResponse struct { - Items []PreviewSyncServiceSyncListSyncListItem `json:"items,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` + Items []PreviewSyncServiceSyncListSyncListItem `json:"Items,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/preview/model_preview_sync_service_sync_list_sync_list_permission.go b/rest/preview/model_preview_sync_service_sync_list_sync_list_permission.go index 6ab5ffeb1..36e0e548d 100644 --- a/rest/preview/model_preview_sync_service_sync_list_sync_list_permission.go +++ b/rest/preview/model_preview_sync_service_sync_list_sync_list_permission.go @@ -11,12 +11,12 @@ package openapi // PreviewSyncServiceSyncListSyncListPermission struct for PreviewSyncServiceSyncListSyncListPermission type PreviewSyncServiceSyncListSyncListPermission struct { - AccountSid string `json:"account_sid,omitempty"` - Identity string `json:"identity,omitempty"` - ListSid string `json:"list_sid,omitempty"` - Manage bool `json:"manage,omitempty"` - Read bool `json:"read,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Url string `json:"url,omitempty"` - Write bool `json:"write,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Identity string `json:"Identity,omitempty"` + ListSid string `json:"ListSid,omitempty"` + Manage bool `json:"Manage,omitempty"` + Read bool `json:"Read,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Url string `json:"Url,omitempty"` + Write bool `json:"Write,omitempty"` } diff --git a/rest/preview/model_preview_sync_service_sync_list_sync_list_permission_read_response.go b/rest/preview/model_preview_sync_service_sync_list_sync_list_permission_read_response.go index eea151797..e89273f79 100644 --- a/rest/preview/model_preview_sync_service_sync_list_sync_list_permission_read_response.go +++ b/rest/preview/model_preview_sync_service_sync_list_sync_list_permission_read_response.go @@ -11,6 +11,6 @@ package openapi // PreviewSyncServiceSyncListSyncListPermissionReadResponse struct for PreviewSyncServiceSyncListSyncListPermissionReadResponse type PreviewSyncServiceSyncListSyncListPermissionReadResponse struct { - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` - Permissions []PreviewSyncServiceSyncListSyncListPermission `json:"permissions,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` + Permissions []PreviewSyncServiceSyncListSyncListPermission `json:"Permissions,omitempty"` } diff --git a/rest/preview/model_preview_sync_service_sync_map.go b/rest/preview/model_preview_sync_service_sync_map.go index 78b40c6a5..67981f620 100644 --- a/rest/preview/model_preview_sync_service_sync_map.go +++ b/rest/preview/model_preview_sync_service_sync_map.go @@ -14,14 +14,14 @@ import ( ) // PreviewSyncServiceSyncMap struct for PreviewSyncServiceSyncMap type PreviewSyncServiceSyncMap struct { - AccountSid string `json:"account_sid,omitempty"` - CreatedBy string `json:"created_by,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Revision string `json:"revision,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + CreatedBy string `json:"CreatedBy,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Revision string `json:"Revision,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/preview/model_preview_sync_service_sync_map_read_response.go b/rest/preview/model_preview_sync_service_sync_map_read_response.go index 4ce1fefe7..2e9390ba0 100644 --- a/rest/preview/model_preview_sync_service_sync_map_read_response.go +++ b/rest/preview/model_preview_sync_service_sync_map_read_response.go @@ -11,6 +11,6 @@ package openapi // PreviewSyncServiceSyncMapReadResponse struct for PreviewSyncServiceSyncMapReadResponse type PreviewSyncServiceSyncMapReadResponse struct { - Maps []PreviewSyncServiceSyncMap `json:"maps,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` + Maps []PreviewSyncServiceSyncMap `json:"Maps,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/preview/model_preview_sync_service_sync_map_sync_map_item.go b/rest/preview/model_preview_sync_service_sync_map_sync_map_item.go index 588cd94d4..45efcfa34 100644 --- a/rest/preview/model_preview_sync_service_sync_map_sync_map_item.go +++ b/rest/preview/model_preview_sync_service_sync_map_sync_map_item.go @@ -14,14 +14,14 @@ import ( ) // PreviewSyncServiceSyncMapSyncMapItem struct for PreviewSyncServiceSyncMapSyncMapItem type PreviewSyncServiceSyncMapSyncMapItem struct { - AccountSid string `json:"account_sid,omitempty"` - CreatedBy string `json:"created_by,omitempty"` - Data map[string]interface{} `json:"data,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Key string `json:"key,omitempty"` - MapSid string `json:"map_sid,omitempty"` - Revision string `json:"revision,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + CreatedBy string `json:"CreatedBy,omitempty"` + Data map[string]interface{} `json:"Data,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Key string `json:"Key,omitempty"` + MapSid string `json:"MapSid,omitempty"` + Revision string `json:"Revision,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/preview/model_preview_sync_service_sync_map_sync_map_item_read_response.go b/rest/preview/model_preview_sync_service_sync_map_sync_map_item_read_response.go index de54d0dd6..bb8877279 100644 --- a/rest/preview/model_preview_sync_service_sync_map_sync_map_item_read_response.go +++ b/rest/preview/model_preview_sync_service_sync_map_sync_map_item_read_response.go @@ -11,6 +11,6 @@ package openapi // PreviewSyncServiceSyncMapSyncMapItemReadResponse struct for PreviewSyncServiceSyncMapSyncMapItemReadResponse type PreviewSyncServiceSyncMapSyncMapItemReadResponse struct { - Items []PreviewSyncServiceSyncMapSyncMapItem `json:"items,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` + Items []PreviewSyncServiceSyncMapSyncMapItem `json:"Items,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/preview/model_preview_sync_service_sync_map_sync_map_permission.go b/rest/preview/model_preview_sync_service_sync_map_sync_map_permission.go index 74ec82ed0..5f9de926d 100644 --- a/rest/preview/model_preview_sync_service_sync_map_sync_map_permission.go +++ b/rest/preview/model_preview_sync_service_sync_map_sync_map_permission.go @@ -11,12 +11,12 @@ package openapi // PreviewSyncServiceSyncMapSyncMapPermission struct for PreviewSyncServiceSyncMapSyncMapPermission type PreviewSyncServiceSyncMapSyncMapPermission struct { - AccountSid string `json:"account_sid,omitempty"` - Identity string `json:"identity,omitempty"` - Manage bool `json:"manage,omitempty"` - MapSid string `json:"map_sid,omitempty"` - Read bool `json:"read,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Url string `json:"url,omitempty"` - Write bool `json:"write,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Identity string `json:"Identity,omitempty"` + Manage bool `json:"Manage,omitempty"` + MapSid string `json:"MapSid,omitempty"` + Read bool `json:"Read,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Url string `json:"Url,omitempty"` + Write bool `json:"Write,omitempty"` } diff --git a/rest/preview/model_preview_sync_service_sync_map_sync_map_permission_read_response.go b/rest/preview/model_preview_sync_service_sync_map_sync_map_permission_read_response.go index 925b0b69d..7db298085 100644 --- a/rest/preview/model_preview_sync_service_sync_map_sync_map_permission_read_response.go +++ b/rest/preview/model_preview_sync_service_sync_map_sync_map_permission_read_response.go @@ -11,6 +11,6 @@ package openapi // PreviewSyncServiceSyncMapSyncMapPermissionReadResponse struct for PreviewSyncServiceSyncMapSyncMapPermissionReadResponse type PreviewSyncServiceSyncMapSyncMapPermissionReadResponse struct { - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` - Permissions []PreviewSyncServiceSyncMapSyncMapPermission `json:"permissions,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` + Permissions []PreviewSyncServiceSyncMapSyncMapPermission `json:"Permissions,omitempty"` } diff --git a/rest/preview/model_preview_trusted_comms_branded_channel.go b/rest/preview/model_preview_trusted_comms_branded_channel.go index ef019cac4..f42358f46 100644 --- a/rest/preview/model_preview_trusted_comms_branded_channel.go +++ b/rest/preview/model_preview_trusted_comms_branded_channel.go @@ -11,10 +11,10 @@ package openapi // PreviewTrustedCommsBrandedChannel struct for PreviewTrustedCommsBrandedChannel type PreviewTrustedCommsBrandedChannel struct { - AccountSid string `json:"account_sid,omitempty"` - BrandSid string `json:"brand_sid,omitempty"` - BusinessSid string `json:"business_sid,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + BrandSid string `json:"BrandSid,omitempty"` + BusinessSid string `json:"BusinessSid,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/preview/model_preview_trusted_comms_branded_channel_channel.go b/rest/preview/model_preview_trusted_comms_branded_channel_channel.go index 5e82c4f19..9214354b9 100644 --- a/rest/preview/model_preview_trusted_comms_branded_channel_channel.go +++ b/rest/preview/model_preview_trusted_comms_branded_channel_channel.go @@ -11,11 +11,11 @@ package openapi // PreviewTrustedCommsBrandedChannelChannel struct for PreviewTrustedCommsBrandedChannelChannel type PreviewTrustedCommsBrandedChannelChannel struct { - AccountSid string `json:"account_sid,omitempty"` - BrandSid string `json:"brand_sid,omitempty"` - BrandedChannelSid string `json:"branded_channel_sid,omitempty"` - BusinessSid string `json:"business_sid,omitempty"` - PhoneNumber string `json:"phone_number,omitempty"` - PhoneNumberSid string `json:"phone_number_sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + BrandSid string `json:"BrandSid,omitempty"` + BrandedChannelSid string `json:"BrandedChannelSid,omitempty"` + BusinessSid string `json:"BusinessSid,omitempty"` + PhoneNumber string `json:"PhoneNumber,omitempty"` + PhoneNumberSid string `json:"PhoneNumberSid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/preview/model_preview_trusted_comms_brands_information.go b/rest/preview/model_preview_trusted_comms_brands_information.go index 9de1e9c83..5ecf7e5e8 100644 --- a/rest/preview/model_preview_trusted_comms_brands_information.go +++ b/rest/preview/model_preview_trusted_comms_brands_information.go @@ -14,8 +14,8 @@ import ( ) // PreviewTrustedCommsBrandsInformation struct for PreviewTrustedCommsBrandsInformation type PreviewTrustedCommsBrandsInformation struct { - FileLink string `json:"file_link,omitempty"` - FileLinkTtlInSeconds string `json:"file_link_ttl_in_seconds,omitempty"` - UpdateTime time.Time `json:"update_time,omitempty"` - Url string `json:"url,omitempty"` + FileLink string `json:"FileLink,omitempty"` + FileLinkTtlInSeconds string `json:"FileLinkTtlInSeconds,omitempty"` + UpdateTime time.Time `json:"UpdateTime,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/preview/model_preview_trusted_comms_cps.go b/rest/preview/model_preview_trusted_comms_cps.go index 2fe34b81a..c790b752f 100644 --- a/rest/preview/model_preview_trusted_comms_cps.go +++ b/rest/preview/model_preview_trusted_comms_cps.go @@ -11,7 +11,7 @@ package openapi // PreviewTrustedCommsCps struct for PreviewTrustedCommsCps type PreviewTrustedCommsCps struct { - CpsUrl string `json:"cps_url,omitempty"` - PhoneNumber string `json:"phone_number,omitempty"` - Url string `json:"url,omitempty"` + CpsUrl string `json:"CpsUrl,omitempty"` + PhoneNumber string `json:"PhoneNumber,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/preview/model_preview_trusted_comms_current_call.go b/rest/preview/model_preview_trusted_comms_current_call.go index 370ea1e7d..9508706b7 100644 --- a/rest/preview/model_preview_trusted_comms_current_call.go +++ b/rest/preview/model_preview_trusted_comms_current_call.go @@ -14,18 +14,18 @@ import ( ) // PreviewTrustedCommsCurrentCall struct for PreviewTrustedCommsCurrentCall type PreviewTrustedCommsCurrentCall struct { - BgColor string `json:"bg_color,omitempty"` - Caller string `json:"caller,omitempty"` - CreatedAt time.Time `json:"created_at,omitempty"` - FontColor string `json:"font_color,omitempty"` - From string `json:"from,omitempty"` - Logo string `json:"logo,omitempty"` - Manager string `json:"manager,omitempty"` - Reason string `json:"reason,omitempty"` - ShieldImg string `json:"shield_img,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - To string `json:"to,omitempty"` - Url string `json:"url,omitempty"` - UseCase string `json:"use_case,omitempty"` + BgColor string `json:"BgColor,omitempty"` + Caller string `json:"Caller,omitempty"` + CreatedAt time.Time `json:"CreatedAt,omitempty"` + FontColor string `json:"FontColor,omitempty"` + From string `json:"From,omitempty"` + Logo string `json:"Logo,omitempty"` + Manager string `json:"Manager,omitempty"` + Reason string `json:"Reason,omitempty"` + ShieldImg string `json:"ShieldImg,omitempty"` + Sid string `json:"Sid,omitempty"` + Status string `json:"Status,omitempty"` + To string `json:"To,omitempty"` + Url string `json:"Url,omitempty"` + UseCase string `json:"UseCase,omitempty"` } diff --git a/rest/preview/model_preview_understand_assistant.go b/rest/preview/model_preview_understand_assistant.go index 6e5e39968..1bc3053ef 100644 --- a/rest/preview/model_preview_understand_assistant.go +++ b/rest/preview/model_preview_understand_assistant.go @@ -14,16 +14,16 @@ import ( ) // PreviewUnderstandAssistant struct for PreviewUnderstandAssistant type PreviewUnderstandAssistant struct { - AccountSid string `json:"account_sid,omitempty"` - CallbackEvents string `json:"callback_events,omitempty"` - CallbackUrl string `json:"callback_url,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - LatestModelBuildSid string `json:"latest_model_build_sid,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - LogQueries bool `json:"log_queries,omitempty"` - Sid string `json:"sid,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + CallbackEvents string `json:"CallbackEvents,omitempty"` + CallbackUrl string `json:"CallbackUrl,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + LatestModelBuildSid string `json:"LatestModelBuildSid,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + LogQueries bool `json:"LogQueries,omitempty"` + Sid string `json:"Sid,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/preview/model_preview_understand_assistant_assistant_fallback_actions.go b/rest/preview/model_preview_understand_assistant_assistant_fallback_actions.go index 998dac949..65dcfce80 100644 --- a/rest/preview/model_preview_understand_assistant_assistant_fallback_actions.go +++ b/rest/preview/model_preview_understand_assistant_assistant_fallback_actions.go @@ -11,8 +11,8 @@ package openapi // PreviewUnderstandAssistantAssistantFallbackActions struct for PreviewUnderstandAssistantAssistantFallbackActions type PreviewUnderstandAssistantAssistantFallbackActions struct { - AccountSid string `json:"account_sid,omitempty"` - AssistantSid string `json:"assistant_sid,omitempty"` - Data map[string]interface{} `json:"data,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AssistantSid string `json:"AssistantSid,omitempty"` + Data map[string]interface{} `json:"Data,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/preview/model_preview_understand_assistant_assistant_initiation_actions.go b/rest/preview/model_preview_understand_assistant_assistant_initiation_actions.go index c06df30d8..976079662 100644 --- a/rest/preview/model_preview_understand_assistant_assistant_initiation_actions.go +++ b/rest/preview/model_preview_understand_assistant_assistant_initiation_actions.go @@ -11,8 +11,8 @@ package openapi // PreviewUnderstandAssistantAssistantInitiationActions struct for PreviewUnderstandAssistantAssistantInitiationActions type PreviewUnderstandAssistantAssistantInitiationActions struct { - AccountSid string `json:"account_sid,omitempty"` - AssistantSid string `json:"assistant_sid,omitempty"` - Data map[string]interface{} `json:"data,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AssistantSid string `json:"AssistantSid,omitempty"` + Data map[string]interface{} `json:"Data,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/preview/model_preview_understand_assistant_dialogue.go b/rest/preview/model_preview_understand_assistant_dialogue.go index a7753a777..4328abb32 100644 --- a/rest/preview/model_preview_understand_assistant_dialogue.go +++ b/rest/preview/model_preview_understand_assistant_dialogue.go @@ -11,9 +11,9 @@ package openapi // PreviewUnderstandAssistantDialogue struct for PreviewUnderstandAssistantDialogue type PreviewUnderstandAssistantDialogue struct { - AccountSid string `json:"account_sid,omitempty"` - AssistantSid string `json:"assistant_sid,omitempty"` - Data map[string]interface{} `json:"data,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AssistantSid string `json:"AssistantSid,omitempty"` + Data map[string]interface{} `json:"Data,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/preview/model_preview_understand_assistant_field_type.go b/rest/preview/model_preview_understand_assistant_field_type.go index 0b5513051..d214100fd 100644 --- a/rest/preview/model_preview_understand_assistant_field_type.go +++ b/rest/preview/model_preview_understand_assistant_field_type.go @@ -14,13 +14,13 @@ import ( ) // PreviewUnderstandAssistantFieldType struct for PreviewUnderstandAssistantFieldType type PreviewUnderstandAssistantFieldType struct { - AccountSid string `json:"account_sid,omitempty"` - AssistantSid string `json:"assistant_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Sid string `json:"sid,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AssistantSid string `json:"AssistantSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Sid string `json:"Sid,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/preview/model_preview_understand_assistant_field_type_field_value.go b/rest/preview/model_preview_understand_assistant_field_type_field_value.go index cfa06943d..d6ba8c32e 100644 --- a/rest/preview/model_preview_understand_assistant_field_type_field_value.go +++ b/rest/preview/model_preview_understand_assistant_field_type_field_value.go @@ -14,14 +14,14 @@ import ( ) // PreviewUnderstandAssistantFieldTypeFieldValue struct for PreviewUnderstandAssistantFieldTypeFieldValue type PreviewUnderstandAssistantFieldTypeFieldValue struct { - AccountSid string `json:"account_sid,omitempty"` - AssistantSid string `json:"assistant_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FieldTypeSid string `json:"field_type_sid,omitempty"` - Language string `json:"language,omitempty"` - Sid string `json:"sid,omitempty"` - SynonymOf string `json:"synonym_of,omitempty"` - Url string `json:"url,omitempty"` - Value string `json:"value,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AssistantSid string `json:"AssistantSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FieldTypeSid string `json:"FieldTypeSid,omitempty"` + Language string `json:"Language,omitempty"` + Sid string `json:"Sid,omitempty"` + SynonymOf string `json:"SynonymOf,omitempty"` + Url string `json:"Url,omitempty"` + Value string `json:"Value,omitempty"` } diff --git a/rest/preview/model_preview_understand_assistant_field_type_field_value_read_response.go b/rest/preview/model_preview_understand_assistant_field_type_field_value_read_response.go index f492ba4b9..92c0fba28 100644 --- a/rest/preview/model_preview_understand_assistant_field_type_field_value_read_response.go +++ b/rest/preview/model_preview_understand_assistant_field_type_field_value_read_response.go @@ -11,6 +11,6 @@ package openapi // PreviewUnderstandAssistantFieldTypeFieldValueReadResponse struct for PreviewUnderstandAssistantFieldTypeFieldValueReadResponse type PreviewUnderstandAssistantFieldTypeFieldValueReadResponse struct { - FieldValues []PreviewUnderstandAssistantFieldTypeFieldValue `json:"field_values,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` + FieldValues []PreviewUnderstandAssistantFieldTypeFieldValue `json:"FieldValues,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/preview/model_preview_understand_assistant_field_type_read_response.go b/rest/preview/model_preview_understand_assistant_field_type_read_response.go index 64d2c83ff..d63514eba 100644 --- a/rest/preview/model_preview_understand_assistant_field_type_read_response.go +++ b/rest/preview/model_preview_understand_assistant_field_type_read_response.go @@ -11,6 +11,6 @@ package openapi // PreviewUnderstandAssistantFieldTypeReadResponse struct for PreviewUnderstandAssistantFieldTypeReadResponse type PreviewUnderstandAssistantFieldTypeReadResponse struct { - FieldTypes []PreviewUnderstandAssistantFieldType `json:"field_types,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` + FieldTypes []PreviewUnderstandAssistantFieldType `json:"FieldTypes,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/preview/model_preview_understand_assistant_model_build.go b/rest/preview/model_preview_understand_assistant_model_build.go index 45d429fd8..a623e6341 100644 --- a/rest/preview/model_preview_understand_assistant_model_build.go +++ b/rest/preview/model_preview_understand_assistant_model_build.go @@ -14,14 +14,14 @@ import ( ) // PreviewUnderstandAssistantModelBuild struct for PreviewUnderstandAssistantModelBuild type PreviewUnderstandAssistantModelBuild struct { - AccountSid string `json:"account_sid,omitempty"` - AssistantSid string `json:"assistant_sid,omitempty"` - BuildDuration *int32 `json:"build_duration,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - ErrorCode *int32 `json:"error_code,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AssistantSid string `json:"AssistantSid,omitempty"` + BuildDuration *int32 `json:"BuildDuration,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + ErrorCode *int32 `json:"ErrorCode,omitempty"` + Sid string `json:"Sid,omitempty"` + Status string `json:"Status,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/preview/model_preview_understand_assistant_model_build_read_response.go b/rest/preview/model_preview_understand_assistant_model_build_read_response.go index b0a64617a..52876b980 100644 --- a/rest/preview/model_preview_understand_assistant_model_build_read_response.go +++ b/rest/preview/model_preview_understand_assistant_model_build_read_response.go @@ -11,6 +11,6 @@ package openapi // PreviewUnderstandAssistantModelBuildReadResponse struct for PreviewUnderstandAssistantModelBuildReadResponse type PreviewUnderstandAssistantModelBuildReadResponse struct { - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` - ModelBuilds []PreviewUnderstandAssistantModelBuild `json:"model_builds,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` + ModelBuilds []PreviewUnderstandAssistantModelBuild `json:"ModelBuilds,omitempty"` } diff --git a/rest/preview/model_preview_understand_assistant_query.go b/rest/preview/model_preview_understand_assistant_query.go index ee669ae1d..ef91ba16a 100644 --- a/rest/preview/model_preview_understand_assistant_query.go +++ b/rest/preview/model_preview_understand_assistant_query.go @@ -14,17 +14,17 @@ import ( ) // PreviewUnderstandAssistantQuery struct for PreviewUnderstandAssistantQuery type PreviewUnderstandAssistantQuery struct { - AccountSid string `json:"account_sid,omitempty"` - AssistantSid string `json:"assistant_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Language string `json:"language,omitempty"` - ModelBuildSid string `json:"model_build_sid,omitempty"` - Query string `json:"query,omitempty"` - Results map[string]interface{} `json:"results,omitempty"` - SampleSid string `json:"sample_sid,omitempty"` - Sid string `json:"sid,omitempty"` - SourceChannel string `json:"source_channel,omitempty"` - Status string `json:"status,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AssistantSid string `json:"AssistantSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Language string `json:"Language,omitempty"` + ModelBuildSid string `json:"ModelBuildSid,omitempty"` + Query string `json:"Query,omitempty"` + Results map[string]interface{} `json:"Results,omitempty"` + SampleSid string `json:"SampleSid,omitempty"` + Sid string `json:"Sid,omitempty"` + SourceChannel string `json:"SourceChannel,omitempty"` + Status string `json:"Status,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/preview/model_preview_understand_assistant_query_read_response.go b/rest/preview/model_preview_understand_assistant_query_read_response.go index 38edb1d6d..0b9e004af 100644 --- a/rest/preview/model_preview_understand_assistant_query_read_response.go +++ b/rest/preview/model_preview_understand_assistant_query_read_response.go @@ -11,6 +11,6 @@ package openapi // PreviewUnderstandAssistantQueryReadResponse struct for PreviewUnderstandAssistantQueryReadResponse type PreviewUnderstandAssistantQueryReadResponse struct { - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` - Queries []PreviewUnderstandAssistantQuery `json:"queries,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` + Queries []PreviewUnderstandAssistantQuery `json:"Queries,omitempty"` } diff --git a/rest/preview/model_preview_understand_assistant_read_response.go b/rest/preview/model_preview_understand_assistant_read_response.go index 753f965bf..943a37f01 100644 --- a/rest/preview/model_preview_understand_assistant_read_response.go +++ b/rest/preview/model_preview_understand_assistant_read_response.go @@ -11,6 +11,6 @@ package openapi // PreviewUnderstandAssistantReadResponse struct for PreviewUnderstandAssistantReadResponse type PreviewUnderstandAssistantReadResponse struct { - Assistants []PreviewUnderstandAssistant `json:"assistants,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` + Assistants []PreviewUnderstandAssistant `json:"Assistants,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/preview/model_preview_understand_assistant_style_sheet.go b/rest/preview/model_preview_understand_assistant_style_sheet.go index 87822080f..0b627ca8b 100644 --- a/rest/preview/model_preview_understand_assistant_style_sheet.go +++ b/rest/preview/model_preview_understand_assistant_style_sheet.go @@ -11,8 +11,8 @@ package openapi // PreviewUnderstandAssistantStyleSheet struct for PreviewUnderstandAssistantStyleSheet type PreviewUnderstandAssistantStyleSheet struct { - AccountSid string `json:"account_sid,omitempty"` - AssistantSid string `json:"assistant_sid,omitempty"` - Data map[string]interface{} `json:"data,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AssistantSid string `json:"AssistantSid,omitempty"` + Data map[string]interface{} `json:"Data,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/preview/model_preview_understand_assistant_task.go b/rest/preview/model_preview_understand_assistant_task.go index 271d5c40a..0a23bd44e 100644 --- a/rest/preview/model_preview_understand_assistant_task.go +++ b/rest/preview/model_preview_understand_assistant_task.go @@ -14,14 +14,14 @@ import ( ) // PreviewUnderstandAssistantTask struct for PreviewUnderstandAssistantTask type PreviewUnderstandAssistantTask struct { - AccountSid string `json:"account_sid,omitempty"` - ActionsUrl string `json:"actions_url,omitempty"` - AssistantSid string `json:"assistant_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Sid string `json:"sid,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ActionsUrl string `json:"ActionsUrl,omitempty"` + AssistantSid string `json:"AssistantSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Sid string `json:"Sid,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/preview/model_preview_understand_assistant_task_field.go b/rest/preview/model_preview_understand_assistant_task_field.go index 351ad15df..523124185 100644 --- a/rest/preview/model_preview_understand_assistant_task_field.go +++ b/rest/preview/model_preview_understand_assistant_task_field.go @@ -14,13 +14,13 @@ import ( ) // PreviewUnderstandAssistantTaskField struct for PreviewUnderstandAssistantTaskField type PreviewUnderstandAssistantTaskField struct { - AccountSid string `json:"account_sid,omitempty"` - AssistantSid string `json:"assistant_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FieldType string `json:"field_type,omitempty"` - Sid string `json:"sid,omitempty"` - TaskSid string `json:"task_sid,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AssistantSid string `json:"AssistantSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FieldType string `json:"FieldType,omitempty"` + Sid string `json:"Sid,omitempty"` + TaskSid string `json:"TaskSid,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/preview/model_preview_understand_assistant_task_field_read_response.go b/rest/preview/model_preview_understand_assistant_task_field_read_response.go index 3832a6980..b55c89abd 100644 --- a/rest/preview/model_preview_understand_assistant_task_field_read_response.go +++ b/rest/preview/model_preview_understand_assistant_task_field_read_response.go @@ -11,6 +11,6 @@ package openapi // PreviewUnderstandAssistantTaskFieldReadResponse struct for PreviewUnderstandAssistantTaskFieldReadResponse type PreviewUnderstandAssistantTaskFieldReadResponse struct { - Fields []PreviewUnderstandAssistantTaskField `json:"fields,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` + Fields []PreviewUnderstandAssistantTaskField `json:"Fields,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/preview/model_preview_understand_assistant_task_read_response.go b/rest/preview/model_preview_understand_assistant_task_read_response.go index 95137aabd..311a9e489 100644 --- a/rest/preview/model_preview_understand_assistant_task_read_response.go +++ b/rest/preview/model_preview_understand_assistant_task_read_response.go @@ -11,6 +11,6 @@ package openapi // PreviewUnderstandAssistantTaskReadResponse struct for PreviewUnderstandAssistantTaskReadResponse type PreviewUnderstandAssistantTaskReadResponse struct { - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` - Tasks []PreviewUnderstandAssistantTask `json:"tasks,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` + Tasks []PreviewUnderstandAssistantTask `json:"Tasks,omitempty"` } diff --git a/rest/preview/model_preview_understand_assistant_task_sample.go b/rest/preview/model_preview_understand_assistant_task_sample.go index 66acca740..a0a05b610 100644 --- a/rest/preview/model_preview_understand_assistant_task_sample.go +++ b/rest/preview/model_preview_understand_assistant_task_sample.go @@ -14,14 +14,14 @@ import ( ) // PreviewUnderstandAssistantTaskSample struct for PreviewUnderstandAssistantTaskSample type PreviewUnderstandAssistantTaskSample struct { - AccountSid string `json:"account_sid,omitempty"` - AssistantSid string `json:"assistant_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Language string `json:"language,omitempty"` - Sid string `json:"sid,omitempty"` - SourceChannel string `json:"source_channel,omitempty"` - TaggedText string `json:"tagged_text,omitempty"` - TaskSid string `json:"task_sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AssistantSid string `json:"AssistantSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Language string `json:"Language,omitempty"` + Sid string `json:"Sid,omitempty"` + SourceChannel string `json:"SourceChannel,omitempty"` + TaggedText string `json:"TaggedText,omitempty"` + TaskSid string `json:"TaskSid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/preview/model_preview_understand_assistant_task_sample_read_response.go b/rest/preview/model_preview_understand_assistant_task_sample_read_response.go index 232c9d016..ca20065c9 100644 --- a/rest/preview/model_preview_understand_assistant_task_sample_read_response.go +++ b/rest/preview/model_preview_understand_assistant_task_sample_read_response.go @@ -11,6 +11,6 @@ package openapi // PreviewUnderstandAssistantTaskSampleReadResponse struct for PreviewUnderstandAssistantTaskSampleReadResponse type PreviewUnderstandAssistantTaskSampleReadResponse struct { - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` - Samples []PreviewUnderstandAssistantTaskSample `json:"samples,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` + Samples []PreviewUnderstandAssistantTaskSample `json:"Samples,omitempty"` } diff --git a/rest/preview/model_preview_understand_assistant_task_task_actions.go b/rest/preview/model_preview_understand_assistant_task_task_actions.go index 0249adde3..5764625bf 100644 --- a/rest/preview/model_preview_understand_assistant_task_task_actions.go +++ b/rest/preview/model_preview_understand_assistant_task_task_actions.go @@ -11,9 +11,9 @@ package openapi // PreviewUnderstandAssistantTaskTaskActions struct for PreviewUnderstandAssistantTaskTaskActions type PreviewUnderstandAssistantTaskTaskActions struct { - AccountSid string `json:"account_sid,omitempty"` - AssistantSid string `json:"assistant_sid,omitempty"` - Data map[string]interface{} `json:"data,omitempty"` - TaskSid string `json:"task_sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AssistantSid string `json:"AssistantSid,omitempty"` + Data map[string]interface{} `json:"Data,omitempty"` + TaskSid string `json:"TaskSid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/preview/model_preview_understand_assistant_task_task_statistics.go b/rest/preview/model_preview_understand_assistant_task_task_statistics.go index 9eaca5c88..f161d6df9 100644 --- a/rest/preview/model_preview_understand_assistant_task_task_statistics.go +++ b/rest/preview/model_preview_understand_assistant_task_task_statistics.go @@ -11,10 +11,10 @@ package openapi // PreviewUnderstandAssistantTaskTaskStatistics struct for PreviewUnderstandAssistantTaskTaskStatistics type PreviewUnderstandAssistantTaskTaskStatistics struct { - AccountSid string `json:"account_sid,omitempty"` - AssistantSid string `json:"assistant_sid,omitempty"` - FieldsCount int32 `json:"fields_count,omitempty"` - SamplesCount int32 `json:"samples_count,omitempty"` - TaskSid string `json:"task_sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AssistantSid string `json:"AssistantSid,omitempty"` + FieldsCount int32 `json:"FieldsCount,omitempty"` + SamplesCount int32 `json:"SamplesCount,omitempty"` + TaskSid string `json:"TaskSid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/preview/model_preview_wireless_command.go b/rest/preview/model_preview_wireless_command.go index 4eaae68d5..ca4408a0f 100644 --- a/rest/preview/model_preview_wireless_command.go +++ b/rest/preview/model_preview_wireless_command.go @@ -14,15 +14,15 @@ import ( ) // PreviewWirelessCommand struct for PreviewWirelessCommand type PreviewWirelessCommand struct { - AccountSid string `json:"account_sid,omitempty"` - Command string `json:"command,omitempty"` - CommandMode string `json:"command_mode,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - DeviceSid string `json:"device_sid,omitempty"` - Direction string `json:"direction,omitempty"` - Sid string `json:"sid,omitempty"` - SimSid string `json:"sim_sid,omitempty"` - Status string `json:"status,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Command string `json:"Command,omitempty"` + CommandMode string `json:"CommandMode,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + DeviceSid string `json:"DeviceSid,omitempty"` + Direction string `json:"Direction,omitempty"` + Sid string `json:"Sid,omitempty"` + SimSid string `json:"SimSid,omitempty"` + Status string `json:"Status,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/preview/model_preview_wireless_command_read_response.go b/rest/preview/model_preview_wireless_command_read_response.go index 6dc634221..b1cbafca8 100644 --- a/rest/preview/model_preview_wireless_command_read_response.go +++ b/rest/preview/model_preview_wireless_command_read_response.go @@ -11,6 +11,6 @@ package openapi // PreviewWirelessCommandReadResponse struct for PreviewWirelessCommandReadResponse type PreviewWirelessCommandReadResponse struct { - Commands []PreviewWirelessCommand `json:"commands,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` + Commands []PreviewWirelessCommand `json:"Commands,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/preview/model_preview_wireless_rate_plan.go b/rest/preview/model_preview_wireless_rate_plan.go index 69eb1921b..f96be1a16 100644 --- a/rest/preview/model_preview_wireless_rate_plan.go +++ b/rest/preview/model_preview_wireless_rate_plan.go @@ -14,18 +14,18 @@ import ( ) // PreviewWirelessRatePlan struct for PreviewWirelessRatePlan type PreviewWirelessRatePlan struct { - AccountSid string `json:"account_sid,omitempty"` - DataEnabled bool `json:"data_enabled,omitempty"` - DataLimit int32 `json:"data_limit,omitempty"` - DataMetering string `json:"data_metering,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - InternationalRoaming []string `json:"international_roaming,omitempty"` - MessagingEnabled bool `json:"messaging_enabled,omitempty"` - NationalRoamingEnabled bool `json:"national_roaming_enabled,omitempty"` - Sid string `json:"sid,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` - VoiceEnabled bool `json:"voice_enabled,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DataEnabled bool `json:"DataEnabled,omitempty"` + DataLimit int32 `json:"DataLimit,omitempty"` + DataMetering string `json:"DataMetering,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + InternationalRoaming []string `json:"InternationalRoaming,omitempty"` + MessagingEnabled bool `json:"MessagingEnabled,omitempty"` + NationalRoamingEnabled bool `json:"NationalRoamingEnabled,omitempty"` + Sid string `json:"Sid,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` + VoiceEnabled bool `json:"VoiceEnabled,omitempty"` } diff --git a/rest/preview/model_preview_wireless_rate_plan_read_response.go b/rest/preview/model_preview_wireless_rate_plan_read_response.go index 724442548..bfd23e0b3 100644 --- a/rest/preview/model_preview_wireless_rate_plan_read_response.go +++ b/rest/preview/model_preview_wireless_rate_plan_read_response.go @@ -11,6 +11,6 @@ package openapi // PreviewWirelessRatePlanReadResponse struct for PreviewWirelessRatePlanReadResponse type PreviewWirelessRatePlanReadResponse struct { - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` - RatePlans []PreviewWirelessRatePlan `json:"rate_plans,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` + RatePlans []PreviewWirelessRatePlan `json:"RatePlans,omitempty"` } diff --git a/rest/preview/model_preview_wireless_sim.go b/rest/preview/model_preview_wireless_sim.go index 6240ba0f1..d84dfa95f 100644 --- a/rest/preview/model_preview_wireless_sim.go +++ b/rest/preview/model_preview_wireless_sim.go @@ -14,26 +14,26 @@ import ( ) // PreviewWirelessSim struct for PreviewWirelessSim type PreviewWirelessSim struct { - AccountSid string `json:"account_sid,omitempty"` - CommandsCallbackMethod string `json:"commands_callback_method,omitempty"` - CommandsCallbackUrl string `json:"commands_callback_url,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - EId string `json:"e_id,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Iccid string `json:"iccid,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - RatePlanSid string `json:"rate_plan_sid,omitempty"` - Sid string `json:"sid,omitempty"` - SmsFallbackMethod string `json:"sms_fallback_method,omitempty"` - SmsFallbackUrl string `json:"sms_fallback_url,omitempty"` - SmsMethod string `json:"sms_method,omitempty"` - SmsUrl string `json:"sms_url,omitempty"` - Status string `json:"status,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` - VoiceFallbackMethod string `json:"voice_fallback_method,omitempty"` - VoiceFallbackUrl string `json:"voice_fallback_url,omitempty"` - VoiceMethod string `json:"voice_method,omitempty"` - VoiceUrl string `json:"voice_url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + CommandsCallbackMethod string `json:"CommandsCallbackMethod,omitempty"` + CommandsCallbackUrl string `json:"CommandsCallbackUrl,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + EId string `json:"EId,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Iccid string `json:"Iccid,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + RatePlanSid string `json:"RatePlanSid,omitempty"` + Sid string `json:"Sid,omitempty"` + SmsFallbackMethod string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl string `json:"SmsFallbackUrl,omitempty"` + SmsMethod string `json:"SmsMethod,omitempty"` + SmsUrl string `json:"SmsUrl,omitempty"` + Status string `json:"Status,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` + VoiceFallbackMethod string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod string `json:"VoiceMethod,omitempty"` + VoiceUrl string `json:"VoiceUrl,omitempty"` } diff --git a/rest/preview/model_preview_wireless_sim_read_response.go b/rest/preview/model_preview_wireless_sim_read_response.go index f6dd5ddee..b28fa2657 100644 --- a/rest/preview/model_preview_wireless_sim_read_response.go +++ b/rest/preview/model_preview_wireless_sim_read_response.go @@ -11,6 +11,6 @@ package openapi // PreviewWirelessSimReadResponse struct for PreviewWirelessSimReadResponse type PreviewWirelessSimReadResponse struct { - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"meta,omitempty"` - Sims []PreviewWirelessSim `json:"sims,omitempty"` + Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` + Sims []PreviewWirelessSim `json:"Sims,omitempty"` } diff --git a/rest/preview/model_preview_wireless_sim_usage.go b/rest/preview/model_preview_wireless_sim_usage.go index 3b4acd19d..e38b155e3 100644 --- a/rest/preview/model_preview_wireless_sim_usage.go +++ b/rest/preview/model_preview_wireless_sim_usage.go @@ -11,13 +11,13 @@ package openapi // PreviewWirelessSimUsage struct for PreviewWirelessSimUsage type PreviewWirelessSimUsage struct { - AccountSid string `json:"account_sid,omitempty"` - CommandsCosts map[string]interface{} `json:"commands_costs,omitempty"` - CommandsUsage map[string]interface{} `json:"commands_usage,omitempty"` - DataCosts map[string]interface{} `json:"data_costs,omitempty"` - DataUsage map[string]interface{} `json:"data_usage,omitempty"` - Period map[string]interface{} `json:"period,omitempty"` - SimSid string `json:"sim_sid,omitempty"` - SimUniqueName string `json:"sim_unique_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + CommandsCosts map[string]interface{} `json:"CommandsCosts,omitempty"` + CommandsUsage map[string]interface{} `json:"CommandsUsage,omitempty"` + DataCosts map[string]interface{} `json:"DataCosts,omitempty"` + DataUsage map[string]interface{} `json:"DataUsage,omitempty"` + Period map[string]interface{} `json:"Period,omitempty"` + SimSid string `json:"SimSid,omitempty"` + SimUniqueName string `json:"SimUniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/pricing/v1/api_default.go b/rest/pricing/v1/api_default.go index 710abeec1..fbf0d2fdd 100644 --- a/rest/pricing/v1/api_default.go +++ b/rest/pricing/v1/api_default.go @@ -15,6 +15,7 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" ) type DefaultApiService struct { @@ -31,14 +32,15 @@ func NewDefaultApiService(client *twilio.Client) *DefaultApiService { /* FetchMessagingCountry Method for FetchMessagingCountry - * @param isoCountry The [ISO country code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the pricing information to fetch. + * @param IsoCountry The [ISO country code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the pricing information to fetch. @return PricingV1MessagingMessagingCountryInstance */ -func (c *DefaultApiService) FetchMessagingCountry(isoCountry string) (*PricingV1MessagingMessagingCountryInstance, error) { +func (c *DefaultApiService) FetchMessagingCountry(IsoCountry string) (*PricingV1MessagingMessagingCountryInstance, error) { path := "/v1/Messaging/Countries/{IsoCountry}" - path = strings.Replace(path, "{"+"IsoCountry"+"}", isoCountry, -1) + path = strings.Replace(path, "{"+"IsoCountry"+"}", IsoCountry, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -60,14 +62,15 @@ func (c *DefaultApiService) FetchMessagingCountry(isoCountry string) (*PricingV1 /* FetchPhoneNumberCountry Method for FetchPhoneNumberCountry - * @param isoCountry The [ISO country code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the pricing information to fetch. + * @param IsoCountry The [ISO country code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the pricing information to fetch. @return PricingV1PhoneNumberPhoneNumberCountryInstance */ -func (c *DefaultApiService) FetchPhoneNumberCountry(isoCountry string) (*PricingV1PhoneNumberPhoneNumberCountryInstance, error) { +func (c *DefaultApiService) FetchPhoneNumberCountry(IsoCountry string) (*PricingV1PhoneNumberPhoneNumberCountryInstance, error) { path := "/v1/PhoneNumbers/Countries/{IsoCountry}" - path = strings.Replace(path, "{"+"IsoCountry"+"}", isoCountry, -1) + path = strings.Replace(path, "{"+"IsoCountry"+"}", IsoCountry, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -89,14 +92,15 @@ func (c *DefaultApiService) FetchPhoneNumberCountry(isoCountry string) (*Pricing /* FetchVoiceCountry Method for FetchVoiceCountry - * @param isoCountry The [ISO country code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the pricing information to fetch. + * @param IsoCountry The [ISO country code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the pricing information to fetch. @return PricingV1VoiceVoiceCountryInstance */ -func (c *DefaultApiService) FetchVoiceCountry(isoCountry string) (*PricingV1VoiceVoiceCountryInstance, error) { +func (c *DefaultApiService) FetchVoiceCountry(IsoCountry string) (*PricingV1VoiceVoiceCountryInstance, error) { path := "/v1/Voice/Countries/{IsoCountry}" - path = strings.Replace(path, "{"+"IsoCountry"+"}", isoCountry, -1) + path = strings.Replace(path, "{"+"IsoCountry"+"}", IsoCountry, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -118,14 +122,15 @@ func (c *DefaultApiService) FetchVoiceCountry(isoCountry string) (*PricingV1Voic /* FetchVoiceNumber Method for FetchVoiceNumber - * @param number The phone number to fetch. + * @param Number The phone number to fetch. @return PricingV1VoiceVoiceNumber */ -func (c *DefaultApiService) FetchVoiceNumber(number string) (*PricingV1VoiceVoiceNumber, error) { +func (c *DefaultApiService) FetchVoiceNumber(Number string) (*PricingV1VoiceVoiceNumber, error) { path := "/v1/Voice/Numbers/{Number}" - path = strings.Replace(path, "{"+"Number"+"}", number, -1) + path = strings.Replace(path, "{"+"Number"+"}", Number, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -158,11 +163,12 @@ ListMessagingCountry Method for ListMessagingCountry func (c *DefaultApiService) ListMessagingCountry(params *ListMessagingCountryParams) (*PricingV1MessagingMessagingCountryReadResponse, error) { path := "/v1/Messaging/Countries" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -194,11 +200,12 @@ ListPhoneNumberCountry Method for ListPhoneNumberCountry func (c *DefaultApiService) ListPhoneNumberCountry(params *ListPhoneNumberCountryParams) (*PricingV1PhoneNumberPhoneNumberCountryReadResponse, error) { path := "/v1/PhoneNumbers/Countries" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -230,11 +237,12 @@ ListVoiceCountry Method for ListVoiceCountry func (c *DefaultApiService) ListVoiceCountry(params *ListVoiceCountryParams) (*PricingV1VoiceVoiceCountryReadResponse, error) { path := "/v1/Voice/Countries" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } diff --git a/rest/pricing/v1/docs/DefaultApi.md b/rest/pricing/v1/docs/DefaultApi.md index 94d692d17..27b223835 100644 --- a/rest/pricing/v1/docs/DefaultApi.md +++ b/rest/pricing/v1/docs/DefaultApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description ## FetchMessagingCountry -> PricingV1MessagingMessagingCountryInstance FetchMessagingCountry(ctx, isoCountry) +> PricingV1MessagingMessagingCountryInstance FetchMessagingCountry(ctx, IsoCountry) @@ -26,7 +26,7 @@ Method | HTTP request | Description Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**isoCountry** | **string**| The [ISO country code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the pricing information to fetch. | +**IsoCountry** | **string**| The [ISO country code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the pricing information to fetch. | ### Return type @@ -48,7 +48,7 @@ Name | Type | Description | Notes ## FetchPhoneNumberCountry -> PricingV1PhoneNumberPhoneNumberCountryInstance FetchPhoneNumberCountry(ctx, isoCountry) +> PricingV1PhoneNumberPhoneNumberCountryInstance FetchPhoneNumberCountry(ctx, IsoCountry) @@ -58,7 +58,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**isoCountry** | **string**| The [ISO country code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the pricing information to fetch. | +**IsoCountry** | **string**| The [ISO country code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the pricing information to fetch. | ### Return type @@ -80,7 +80,7 @@ Name | Type | Description | Notes ## FetchVoiceCountry -> PricingV1VoiceVoiceCountryInstance FetchVoiceCountry(ctx, isoCountry) +> PricingV1VoiceVoiceCountryInstance FetchVoiceCountry(ctx, IsoCountry) @@ -90,7 +90,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**isoCountry** | **string**| The [ISO country code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the pricing information to fetch. | +**IsoCountry** | **string**| The [ISO country code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the pricing information to fetch. | ### Return type @@ -112,7 +112,7 @@ Name | Type | Description | Notes ## FetchVoiceNumber -> PricingV1VoiceVoiceNumber FetchVoiceNumber(ctx, number) +> PricingV1VoiceVoiceNumber FetchVoiceNumber(ctx, Number) @@ -122,7 +122,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**number** | **string**| The phone number to fetch. | +**Number** | **string**| The phone number to fetch. | ### Return type @@ -163,7 +163,7 @@ Optional parameters are passed through a pointer to a ListMessagingCountryOpts s Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -204,7 +204,7 @@ Optional parameters are passed through a pointer to a ListPhoneNumberCountryOpts Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -245,7 +245,7 @@ Optional parameters are passed through a pointer to a ListVoiceCountryOpts struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type diff --git a/rest/pricing/v1/model_pricing_v1_messaging.go b/rest/pricing/v1/model_pricing_v1_messaging.go index 037d84972..4949e2825 100644 --- a/rest/pricing/v1/model_pricing_v1_messaging.go +++ b/rest/pricing/v1/model_pricing_v1_messaging.go @@ -11,7 +11,7 @@ package openapi // PricingV1Messaging struct for PricingV1Messaging type PricingV1Messaging struct { - Links map[string]interface{} `json:"links,omitempty"` - Name string `json:"name,omitempty"` - Url string `json:"url,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Name string `json:"Name,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/pricing/v1/model_pricing_v1_messaging_messaging_country.go b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country.go index 25d8b5a26..e01cd4d3d 100644 --- a/rest/pricing/v1/model_pricing_v1_messaging_messaging_country.go +++ b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country.go @@ -11,7 +11,7 @@ package openapi // PricingV1MessagingMessagingCountry struct for PricingV1MessagingMessagingCountry type PricingV1MessagingMessagingCountry struct { - Country string `json:"country,omitempty"` - IsoCountry string `json:"iso_country,omitempty"` - Url string `json:"url,omitempty"` + Country string `json:"Country,omitempty"` + IsoCountry string `json:"IsoCountry,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance.go b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance.go index 0abd587b7..2f5cb753f 100644 --- a/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance.go +++ b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance.go @@ -11,10 +11,10 @@ package openapi // PricingV1MessagingMessagingCountryInstance struct for PricingV1MessagingMessagingCountryInstance type PricingV1MessagingMessagingCountryInstance struct { - Country string `json:"country,omitempty"` - InboundSmsPrices []PricingV1MessagingMessagingCountryInstanceInboundSmsPrices `json:"inbound_sms_prices,omitempty"` - IsoCountry string `json:"iso_country,omitempty"` - OutboundSmsPrices []PricingV1MessagingMessagingCountryInstanceOutboundSmsPrices `json:"outbound_sms_prices,omitempty"` - PriceUnit string `json:"price_unit,omitempty"` - Url string `json:"url,omitempty"` + Country string `json:"Country,omitempty"` + InboundSmsPrices []PricingV1MessagingMessagingCountryInstanceInboundSmsPrices `json:"InboundSmsPrices,omitempty"` + IsoCountry string `json:"IsoCountry,omitempty"` + OutboundSmsPrices []PricingV1MessagingMessagingCountryInstanceOutboundSmsPrices `json:"OutboundSmsPrices,omitempty"` + PriceUnit string `json:"PriceUnit,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance_inbound_sms_prices.go b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance_inbound_sms_prices.go index 9f32f0051..729d4c5d8 100644 --- a/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance_inbound_sms_prices.go +++ b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance_inbound_sms_prices.go @@ -11,7 +11,7 @@ package openapi // PricingV1MessagingMessagingCountryInstanceInboundSmsPrices struct for PricingV1MessagingMessagingCountryInstanceInboundSmsPrices type PricingV1MessagingMessagingCountryInstanceInboundSmsPrices struct { - BasePrice float32 `json:"base_price,omitempty"` - CurrentPrice float32 `json:"current_price,omitempty"` - NumberType string `json:"number_type,omitempty"` + BasePrice float32 `json:"BasePrice,omitempty"` + CurrentPrice float32 `json:"CurrentPrice,omitempty"` + NumberType string `json:"NumberType,omitempty"` } diff --git a/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance_outbound_sms_prices.go b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance_outbound_sms_prices.go index 88902d7df..02bccf717 100644 --- a/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance_outbound_sms_prices.go +++ b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance_outbound_sms_prices.go @@ -11,8 +11,8 @@ package openapi // PricingV1MessagingMessagingCountryInstanceOutboundSmsPrices struct for PricingV1MessagingMessagingCountryInstanceOutboundSmsPrices type PricingV1MessagingMessagingCountryInstanceOutboundSmsPrices struct { - Carrier string `json:"carrier,omitempty"` - Mcc string `json:"mcc,omitempty"` - Mnc string `json:"mnc,omitempty"` - Prices []PricingV1MessagingMessagingCountryInstanceInboundSmsPrices `json:"prices,omitempty"` + Carrier string `json:"Carrier,omitempty"` + Mcc string `json:"Mcc,omitempty"` + Mnc string `json:"Mnc,omitempty"` + Prices []PricingV1MessagingMessagingCountryInstanceInboundSmsPrices `json:"Prices,omitempty"` } diff --git a/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_read_response.go b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_read_response.go index 79956ab56..51535c2ea 100644 --- a/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_read_response.go +++ b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_read_response.go @@ -11,6 +11,6 @@ package openapi // PricingV1MessagingMessagingCountryReadResponse struct for PricingV1MessagingMessagingCountryReadResponse type PricingV1MessagingMessagingCountryReadResponse struct { - Countries []PricingV1MessagingMessagingCountry `json:"countries,omitempty"` - Meta PricingV1MessagingMessagingCountryReadResponseMeta `json:"meta,omitempty"` + Countries []PricingV1MessagingMessagingCountry `json:"Countries,omitempty"` + Meta PricingV1MessagingMessagingCountryReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_read_response_meta.go b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_read_response_meta.go index a90a76912..9e10fe609 100644 --- a/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_read_response_meta.go +++ b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_read_response_meta.go @@ -11,11 +11,11 @@ package openapi // PricingV1MessagingMessagingCountryReadResponseMeta struct for PricingV1MessagingMessagingCountryReadResponseMeta type PricingV1MessagingMessagingCountryReadResponseMeta struct { - FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` - NextPageUrl string `json:"next_page_url,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUrl string `json:"previous_page_url,omitempty"` - Url string `json:"url,omitempty"` + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/pricing/v1/model_pricing_v1_phone_number.go b/rest/pricing/v1/model_pricing_v1_phone_number.go index 0dc961719..9aad88c5c 100644 --- a/rest/pricing/v1/model_pricing_v1_phone_number.go +++ b/rest/pricing/v1/model_pricing_v1_phone_number.go @@ -11,7 +11,7 @@ package openapi // PricingV1PhoneNumber struct for PricingV1PhoneNumber type PricingV1PhoneNumber struct { - Links map[string]interface{} `json:"links,omitempty"` - Name string `json:"name,omitempty"` - Url string `json:"url,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Name string `json:"Name,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country.go b/rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country.go index c78724907..d6419c348 100644 --- a/rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country.go +++ b/rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country.go @@ -11,7 +11,7 @@ package openapi // PricingV1PhoneNumberPhoneNumberCountry struct for PricingV1PhoneNumberPhoneNumberCountry type PricingV1PhoneNumberPhoneNumberCountry struct { - Country string `json:"country,omitempty"` - IsoCountry string `json:"iso_country,omitempty"` - Url string `json:"url,omitempty"` + Country string `json:"Country,omitempty"` + IsoCountry string `json:"IsoCountry,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country_instance.go b/rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country_instance.go index cd710cc4c..41aceb455 100644 --- a/rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country_instance.go +++ b/rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country_instance.go @@ -11,9 +11,9 @@ package openapi // PricingV1PhoneNumberPhoneNumberCountryInstance struct for PricingV1PhoneNumberPhoneNumberCountryInstance type PricingV1PhoneNumberPhoneNumberCountryInstance struct { - Country string `json:"country,omitempty"` - IsoCountry string `json:"iso_country,omitempty"` - PhoneNumberPrices []PricingV1MessagingMessagingCountryInstanceInboundSmsPrices `json:"phone_number_prices,omitempty"` - PriceUnit string `json:"price_unit,omitempty"` - Url string `json:"url,omitempty"` + Country string `json:"Country,omitempty"` + IsoCountry string `json:"IsoCountry,omitempty"` + PhoneNumberPrices []PricingV1MessagingMessagingCountryInstanceInboundSmsPrices `json:"PhoneNumberPrices,omitempty"` + PriceUnit string `json:"PriceUnit,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country_read_response.go b/rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country_read_response.go index 12f79c4d1..4523e4274 100644 --- a/rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country_read_response.go +++ b/rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country_read_response.go @@ -11,6 +11,6 @@ package openapi // PricingV1PhoneNumberPhoneNumberCountryReadResponse struct for PricingV1PhoneNumberPhoneNumberCountryReadResponse type PricingV1PhoneNumberPhoneNumberCountryReadResponse struct { - Countries []PricingV1PhoneNumberPhoneNumberCountry `json:"countries,omitempty"` - Meta PricingV1MessagingMessagingCountryReadResponseMeta `json:"meta,omitempty"` + Countries []PricingV1PhoneNumberPhoneNumberCountry `json:"Countries,omitempty"` + Meta PricingV1MessagingMessagingCountryReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/pricing/v1/model_pricing_v1_voice.go b/rest/pricing/v1/model_pricing_v1_voice.go index a1231c198..786dea671 100644 --- a/rest/pricing/v1/model_pricing_v1_voice.go +++ b/rest/pricing/v1/model_pricing_v1_voice.go @@ -11,7 +11,7 @@ package openapi // PricingV1Voice struct for PricingV1Voice type PricingV1Voice struct { - Links map[string]interface{} `json:"links,omitempty"` - Name string `json:"name,omitempty"` - Url string `json:"url,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Name string `json:"Name,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/pricing/v1/model_pricing_v1_voice_voice_country.go b/rest/pricing/v1/model_pricing_v1_voice_voice_country.go index 63ec1de61..646ae1d9a 100644 --- a/rest/pricing/v1/model_pricing_v1_voice_voice_country.go +++ b/rest/pricing/v1/model_pricing_v1_voice_voice_country.go @@ -11,7 +11,7 @@ package openapi // PricingV1VoiceVoiceCountry struct for PricingV1VoiceVoiceCountry type PricingV1VoiceVoiceCountry struct { - Country string `json:"country,omitempty"` - IsoCountry string `json:"iso_country,omitempty"` - Url string `json:"url,omitempty"` + Country string `json:"Country,omitempty"` + IsoCountry string `json:"IsoCountry,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/pricing/v1/model_pricing_v1_voice_voice_country_instance.go b/rest/pricing/v1/model_pricing_v1_voice_voice_country_instance.go index 163e5edf1..65b020d50 100644 --- a/rest/pricing/v1/model_pricing_v1_voice_voice_country_instance.go +++ b/rest/pricing/v1/model_pricing_v1_voice_voice_country_instance.go @@ -11,10 +11,10 @@ package openapi // PricingV1VoiceVoiceCountryInstance struct for PricingV1VoiceVoiceCountryInstance type PricingV1VoiceVoiceCountryInstance struct { - Country string `json:"country,omitempty"` - InboundCallPrices []PricingV1MessagingMessagingCountryInstanceInboundSmsPrices `json:"inbound_call_prices,omitempty"` - IsoCountry string `json:"iso_country,omitempty"` - OutboundPrefixPrices []PricingV1VoiceVoiceCountryInstanceOutboundPrefixPrices `json:"outbound_prefix_prices,omitempty"` - PriceUnit string `json:"price_unit,omitempty"` - Url string `json:"url,omitempty"` + Country string `json:"Country,omitempty"` + InboundCallPrices []PricingV1MessagingMessagingCountryInstanceInboundSmsPrices `json:"InboundCallPrices,omitempty"` + IsoCountry string `json:"IsoCountry,omitempty"` + OutboundPrefixPrices []PricingV1VoiceVoiceCountryInstanceOutboundPrefixPrices `json:"OutboundPrefixPrices,omitempty"` + PriceUnit string `json:"PriceUnit,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/pricing/v1/model_pricing_v1_voice_voice_country_instance_outbound_prefix_prices.go b/rest/pricing/v1/model_pricing_v1_voice_voice_country_instance_outbound_prefix_prices.go index 3f2b36842..f7e6cfaae 100644 --- a/rest/pricing/v1/model_pricing_v1_voice_voice_country_instance_outbound_prefix_prices.go +++ b/rest/pricing/v1/model_pricing_v1_voice_voice_country_instance_outbound_prefix_prices.go @@ -11,8 +11,8 @@ package openapi // PricingV1VoiceVoiceCountryInstanceOutboundPrefixPrices struct for PricingV1VoiceVoiceCountryInstanceOutboundPrefixPrices type PricingV1VoiceVoiceCountryInstanceOutboundPrefixPrices struct { - BasePrice float32 `json:"base_price,omitempty"` - CurrentPrice float32 `json:"current_price,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Prefixes []string `json:"prefixes,omitempty"` + BasePrice float32 `json:"BasePrice,omitempty"` + CurrentPrice float32 `json:"CurrentPrice,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Prefixes []string `json:"Prefixes,omitempty"` } diff --git a/rest/pricing/v1/model_pricing_v1_voice_voice_country_read_response.go b/rest/pricing/v1/model_pricing_v1_voice_voice_country_read_response.go index 827668310..ddecec73b 100644 --- a/rest/pricing/v1/model_pricing_v1_voice_voice_country_read_response.go +++ b/rest/pricing/v1/model_pricing_v1_voice_voice_country_read_response.go @@ -11,6 +11,6 @@ package openapi // PricingV1VoiceVoiceCountryReadResponse struct for PricingV1VoiceVoiceCountryReadResponse type PricingV1VoiceVoiceCountryReadResponse struct { - Countries []PricingV1VoiceVoiceCountry `json:"countries,omitempty"` - Meta PricingV1MessagingMessagingCountryReadResponseMeta `json:"meta,omitempty"` + Countries []PricingV1VoiceVoiceCountry `json:"Countries,omitempty"` + Meta PricingV1MessagingMessagingCountryReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/pricing/v1/model_pricing_v1_voice_voice_number.go b/rest/pricing/v1/model_pricing_v1_voice_voice_number.go index b5b3484d6..34797cf98 100644 --- a/rest/pricing/v1/model_pricing_v1_voice_voice_number.go +++ b/rest/pricing/v1/model_pricing_v1_voice_voice_number.go @@ -11,11 +11,11 @@ package openapi // PricingV1VoiceVoiceNumber struct for PricingV1VoiceVoiceNumber type PricingV1VoiceVoiceNumber struct { - Country string `json:"country,omitempty"` - InboundCallPrice PricingV1MessagingMessagingCountryInstanceInboundSmsPrices `json:"inbound_call_price,omitempty"` - IsoCountry string `json:"iso_country,omitempty"` - Number string `json:"number,omitempty"` - OutboundCallPrice PricingV1VoiceVoiceNumberOutboundCallPrice `json:"outbound_call_price,omitempty"` - PriceUnit string `json:"price_unit,omitempty"` - Url string `json:"url,omitempty"` + Country string `json:"Country,omitempty"` + InboundCallPrice PricingV1MessagingMessagingCountryInstanceInboundSmsPrices `json:"InboundCallPrice,omitempty"` + IsoCountry string `json:"IsoCountry,omitempty"` + Number string `json:"Number,omitempty"` + OutboundCallPrice PricingV1VoiceVoiceNumberOutboundCallPrice `json:"OutboundCallPrice,omitempty"` + PriceUnit string `json:"PriceUnit,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/pricing/v1/model_pricing_v1_voice_voice_number_outbound_call_price.go b/rest/pricing/v1/model_pricing_v1_voice_voice_number_outbound_call_price.go index 130831f4d..4cedb1198 100644 --- a/rest/pricing/v1/model_pricing_v1_voice_voice_number_outbound_call_price.go +++ b/rest/pricing/v1/model_pricing_v1_voice_voice_number_outbound_call_price.go @@ -11,6 +11,6 @@ package openapi // PricingV1VoiceVoiceNumberOutboundCallPrice struct for PricingV1VoiceVoiceNumberOutboundCallPrice type PricingV1VoiceVoiceNumberOutboundCallPrice struct { - BasePrice float32 `json:"base_price,omitempty"` - CurrentPrice float32 `json:"current_price,omitempty"` + BasePrice float32 `json:"BasePrice,omitempty"` + CurrentPrice float32 `json:"CurrentPrice,omitempty"` } diff --git a/rest/pricing/v2/api_default.go b/rest/pricing/v2/api_default.go index 62c1d877f..eeb43e4f1 100644 --- a/rest/pricing/v2/api_default.go +++ b/rest/pricing/v2/api_default.go @@ -15,6 +15,7 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" ) type DefaultApiService struct { @@ -32,14 +33,15 @@ func NewDefaultApiService(client *twilio.Client) *DefaultApiService { /* FetchVoiceCountry Method for FetchVoiceCountry Fetch a specific Country. - * @param isoCountry The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the origin-based voice pricing information to fetch. + * @param IsoCountry The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the origin-based voice pricing information to fetch. @return PricingV2VoiceVoiceCountryInstance */ -func (c *DefaultApiService) FetchVoiceCountry(isoCountry string) (*PricingV2VoiceVoiceCountryInstance, error) { +func (c *DefaultApiService) FetchVoiceCountry(IsoCountry string) (*PricingV2VoiceVoiceCountryInstance, error) { path := "/v2/Voice/Countries/{IsoCountry}" - path = strings.Replace(path, "{"+"IsoCountry"+"}", isoCountry, -1) + path = strings.Replace(path, "{"+"IsoCountry"+"}", IsoCountry, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -66,20 +68,21 @@ type FetchVoiceNumberParams struct { /* FetchVoiceNumber Method for FetchVoiceNumber Fetch pricing information for a specific destination and, optionally, origination phone number. - * @param destinationNumber The destination phone number, in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, for which to fetch the origin-based voice pricing information. E.164 format consists of a + followed by the country code and subscriber number. + * @param DestinationNumber The destination phone number, in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, for which to fetch the origin-based voice pricing information. E.164 format consists of a + followed by the country code and subscriber number. * @param optional nil or *FetchVoiceNumberOpts - Optional Parameters: * @param "OriginationNumber" (string) - The origination phone number, in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, for which to fetch the origin-based voice pricing information. E.164 format consists of a + followed by the country code and subscriber number. @return PricingV2VoiceVoiceNumber */ -func (c *DefaultApiService) FetchVoiceNumber(destinationNumber string, params *FetchVoiceNumberParams) (*PricingV2VoiceVoiceNumber, error) { +func (c *DefaultApiService) FetchVoiceNumber(DestinationNumber string, params *FetchVoiceNumberParams) (*PricingV2VoiceVoiceNumber, error) { path := "/v2/Voice/Numbers/{DestinationNumber}" - path = strings.Replace(path, "{"+"DestinationNumber"+"}", destinationNumber, -1) + path = strings.Replace(path, "{"+"DestinationNumber"+"}", DestinationNumber, -1) + data := url.Values{} headers := 0 if params != nil && params.OriginationNumber != nil { - data.Set("OriginationNumber", *params.OriginationNumber) + data.Set("OriginationNumber", *params.OriginationNumber) } @@ -111,11 +114,12 @@ ListVoiceCountry Method for ListVoiceCountry func (c *DefaultApiService) ListVoiceCountry(params *ListVoiceCountryParams) (*PricingV2VoiceVoiceCountryReadResponse, error) { path := "/v2/Voice/Countries" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } diff --git a/rest/pricing/v2/docs/DefaultApi.md b/rest/pricing/v2/docs/DefaultApi.md index 48ddcc9e0..942c3c644 100644 --- a/rest/pricing/v2/docs/DefaultApi.md +++ b/rest/pricing/v2/docs/DefaultApi.md @@ -12,7 +12,7 @@ Method | HTTP request | Description ## FetchVoiceCountry -> PricingV2VoiceVoiceCountryInstance FetchVoiceCountry(ctx, isoCountry) +> PricingV2VoiceVoiceCountryInstance FetchVoiceCountry(ctx, IsoCountry) @@ -24,7 +24,7 @@ Fetch a specific Country. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**isoCountry** | **string**| The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the origin-based voice pricing information to fetch. | +**IsoCountry** | **string**| The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the origin-based voice pricing information to fetch. | ### Return type @@ -46,7 +46,7 @@ Name | Type | Description | Notes ## FetchVoiceNumber -> PricingV2VoiceVoiceNumber FetchVoiceNumber(ctx, destinationNumber, optional) +> PricingV2VoiceVoiceNumber FetchVoiceNumber(ctx, DestinationNumber, optional) @@ -58,7 +58,7 @@ Fetch pricing information for a specific destination and, optionally, originatio Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**destinationNumber** | **string**| The destination phone number, in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, for which to fetch the origin-based voice pricing information. E.164 format consists of a + followed by the country code and subscriber number. | +**DestinationNumber** | **string**| The destination phone number, in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, for which to fetch the origin-based voice pricing information. E.164 format consists of a + followed by the country code and subscriber number. | **optional** | ***FetchVoiceNumberOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -69,7 +69,7 @@ Optional parameters are passed through a pointer to a FetchVoiceNumberOpts struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **originationNumber** | **optional.String**| The origination phone number, in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, for which to fetch the origin-based voice pricing information. E.164 format consists of a + followed by the country code and subscriber number. | + **OriginationNumber** | **optional.String**| The origination phone number, in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, for which to fetch the origin-based voice pricing information. E.164 format consists of a + followed by the country code and subscriber number. | ### Return type @@ -110,7 +110,7 @@ Optional parameters are passed through a pointer to a ListVoiceCountryOpts struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type diff --git a/rest/pricing/v2/model_pricing_v2_voice.go b/rest/pricing/v2/model_pricing_v2_voice.go index 011a155e2..5c6c28619 100644 --- a/rest/pricing/v2/model_pricing_v2_voice.go +++ b/rest/pricing/v2/model_pricing_v2_voice.go @@ -11,7 +11,7 @@ package openapi // PricingV2Voice struct for PricingV2Voice type PricingV2Voice struct { - Links map[string]interface{} `json:"links,omitempty"` - Name string `json:"name,omitempty"` - Url string `json:"url,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Name string `json:"Name,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/pricing/v2/model_pricing_v2_voice_voice_country.go b/rest/pricing/v2/model_pricing_v2_voice_voice_country.go index d4f3a61de..43450627b 100644 --- a/rest/pricing/v2/model_pricing_v2_voice_voice_country.go +++ b/rest/pricing/v2/model_pricing_v2_voice_voice_country.go @@ -11,7 +11,7 @@ package openapi // PricingV2VoiceVoiceCountry struct for PricingV2VoiceVoiceCountry type PricingV2VoiceVoiceCountry struct { - Country string `json:"country,omitempty"` - IsoCountry string `json:"iso_country,omitempty"` - Url string `json:"url,omitempty"` + Country string `json:"Country,omitempty"` + IsoCountry string `json:"IsoCountry,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/pricing/v2/model_pricing_v2_voice_voice_country_instance.go b/rest/pricing/v2/model_pricing_v2_voice_voice_country_instance.go index 1126de8f7..14c772fe0 100644 --- a/rest/pricing/v2/model_pricing_v2_voice_voice_country_instance.go +++ b/rest/pricing/v2/model_pricing_v2_voice_voice_country_instance.go @@ -11,10 +11,10 @@ package openapi // PricingV2VoiceVoiceCountryInstance struct for PricingV2VoiceVoiceCountryInstance type PricingV2VoiceVoiceCountryInstance struct { - Country string `json:"country,omitempty"` - InboundCallPrices []PricingV2VoiceVoiceCountryInstanceInboundCallPrices `json:"inbound_call_prices,omitempty"` - IsoCountry string `json:"iso_country,omitempty"` - OutboundPrefixPrices []PricingV2VoiceVoiceCountryInstanceOutboundPrefixPrices `json:"outbound_prefix_prices,omitempty"` - PriceUnit string `json:"price_unit,omitempty"` - Url string `json:"url,omitempty"` + Country string `json:"Country,omitempty"` + InboundCallPrices []PricingV2VoiceVoiceCountryInstanceInboundCallPrices `json:"InboundCallPrices,omitempty"` + IsoCountry string `json:"IsoCountry,omitempty"` + OutboundPrefixPrices []PricingV2VoiceVoiceCountryInstanceOutboundPrefixPrices `json:"OutboundPrefixPrices,omitempty"` + PriceUnit string `json:"PriceUnit,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/pricing/v2/model_pricing_v2_voice_voice_country_instance_inbound_call_prices.go b/rest/pricing/v2/model_pricing_v2_voice_voice_country_instance_inbound_call_prices.go index 8ab611027..f2c05a952 100644 --- a/rest/pricing/v2/model_pricing_v2_voice_voice_country_instance_inbound_call_prices.go +++ b/rest/pricing/v2/model_pricing_v2_voice_voice_country_instance_inbound_call_prices.go @@ -11,7 +11,7 @@ package openapi // PricingV2VoiceVoiceCountryInstanceInboundCallPrices struct for PricingV2VoiceVoiceCountryInstanceInboundCallPrices type PricingV2VoiceVoiceCountryInstanceInboundCallPrices struct { - BasePrice float32 `json:"base_price,omitempty"` - CurrentPrice float32 `json:"current_price,omitempty"` - NumberType string `json:"number_type,omitempty"` + BasePrice float32 `json:"BasePrice,omitempty"` + CurrentPrice float32 `json:"CurrentPrice,omitempty"` + NumberType string `json:"NumberType,omitempty"` } diff --git a/rest/pricing/v2/model_pricing_v2_voice_voice_country_instance_outbound_prefix_prices.go b/rest/pricing/v2/model_pricing_v2_voice_voice_country_instance_outbound_prefix_prices.go index 0124ae30d..9ea0e2ddc 100644 --- a/rest/pricing/v2/model_pricing_v2_voice_voice_country_instance_outbound_prefix_prices.go +++ b/rest/pricing/v2/model_pricing_v2_voice_voice_country_instance_outbound_prefix_prices.go @@ -11,9 +11,9 @@ package openapi // PricingV2VoiceVoiceCountryInstanceOutboundPrefixPrices struct for PricingV2VoiceVoiceCountryInstanceOutboundPrefixPrices type PricingV2VoiceVoiceCountryInstanceOutboundPrefixPrices struct { - BasePrice float32 `json:"base_price,omitempty"` - CurrentPrice float32 `json:"current_price,omitempty"` - DestinationPrefixes []string `json:"destination_prefixes,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - OriginationPrefixes []string `json:"origination_prefixes,omitempty"` + BasePrice float32 `json:"BasePrice,omitempty"` + CurrentPrice float32 `json:"CurrentPrice,omitempty"` + DestinationPrefixes []string `json:"DestinationPrefixes,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + OriginationPrefixes []string `json:"OriginationPrefixes,omitempty"` } diff --git a/rest/pricing/v2/model_pricing_v2_voice_voice_country_read_response.go b/rest/pricing/v2/model_pricing_v2_voice_voice_country_read_response.go index 8f3c71fea..88aab2d05 100644 --- a/rest/pricing/v2/model_pricing_v2_voice_voice_country_read_response.go +++ b/rest/pricing/v2/model_pricing_v2_voice_voice_country_read_response.go @@ -11,6 +11,6 @@ package openapi // PricingV2VoiceVoiceCountryReadResponse struct for PricingV2VoiceVoiceCountryReadResponse type PricingV2VoiceVoiceCountryReadResponse struct { - Countries []PricingV2VoiceVoiceCountry `json:"countries,omitempty"` - Meta PricingV2VoiceVoiceCountryReadResponseMeta `json:"meta,omitempty"` + Countries []PricingV2VoiceVoiceCountry `json:"Countries,omitempty"` + Meta PricingV2VoiceVoiceCountryReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/pricing/v2/model_pricing_v2_voice_voice_country_read_response_meta.go b/rest/pricing/v2/model_pricing_v2_voice_voice_country_read_response_meta.go index ff246ca84..b86a6858f 100644 --- a/rest/pricing/v2/model_pricing_v2_voice_voice_country_read_response_meta.go +++ b/rest/pricing/v2/model_pricing_v2_voice_voice_country_read_response_meta.go @@ -11,11 +11,11 @@ package openapi // PricingV2VoiceVoiceCountryReadResponseMeta struct for PricingV2VoiceVoiceCountryReadResponseMeta type PricingV2VoiceVoiceCountryReadResponseMeta struct { - FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` - NextPageUrl string `json:"next_page_url,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUrl string `json:"previous_page_url,omitempty"` - Url string `json:"url,omitempty"` + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/pricing/v2/model_pricing_v2_voice_voice_number.go b/rest/pricing/v2/model_pricing_v2_voice_voice_number.go index 48b6b2cf8..2c3089c4d 100644 --- a/rest/pricing/v2/model_pricing_v2_voice_voice_number.go +++ b/rest/pricing/v2/model_pricing_v2_voice_voice_number.go @@ -11,12 +11,12 @@ package openapi // PricingV2VoiceVoiceNumber struct for PricingV2VoiceVoiceNumber type PricingV2VoiceVoiceNumber struct { - Country string `json:"country,omitempty"` - DestinationNumber string `json:"destination_number,omitempty"` - InboundCallPrice PricingV2VoiceVoiceCountryInstanceInboundCallPrices `json:"inbound_call_price,omitempty"` - IsoCountry string `json:"iso_country,omitempty"` - OriginationNumber string `json:"origination_number,omitempty"` - OutboundCallPrices []PricingV2VoiceVoiceNumberOutboundCallPrices `json:"outbound_call_prices,omitempty"` - PriceUnit string `json:"price_unit,omitempty"` - Url string `json:"url,omitempty"` + Country string `json:"Country,omitempty"` + DestinationNumber string `json:"DestinationNumber,omitempty"` + InboundCallPrice PricingV2VoiceVoiceCountryInstanceInboundCallPrices `json:"InboundCallPrice,omitempty"` + IsoCountry string `json:"IsoCountry,omitempty"` + OriginationNumber string `json:"OriginationNumber,omitempty"` + OutboundCallPrices []PricingV2VoiceVoiceNumberOutboundCallPrices `json:"OutboundCallPrices,omitempty"` + PriceUnit string `json:"PriceUnit,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/pricing/v2/model_pricing_v2_voice_voice_number_outbound_call_prices.go b/rest/pricing/v2/model_pricing_v2_voice_voice_number_outbound_call_prices.go index f8571bbe2..07e2f99dc 100644 --- a/rest/pricing/v2/model_pricing_v2_voice_voice_number_outbound_call_prices.go +++ b/rest/pricing/v2/model_pricing_v2_voice_voice_number_outbound_call_prices.go @@ -11,7 +11,7 @@ package openapi // PricingV2VoiceVoiceNumberOutboundCallPrices struct for PricingV2VoiceVoiceNumberOutboundCallPrices type PricingV2VoiceVoiceNumberOutboundCallPrices struct { - BasePrice float32 `json:"base_price,omitempty"` - CurrentPrice float32 `json:"current_price,omitempty"` - OriginationPrefixes []string `json:"origination_prefixes,omitempty"` + BasePrice float32 `json:"BasePrice,omitempty"` + CurrentPrice float32 `json:"CurrentPrice,omitempty"` + OriginationPrefixes []string `json:"OriginationPrefixes,omitempty"` } diff --git a/rest/proxy/v1/api_default.go b/rest/proxy/v1/api_default.go index 94292a00a..981d4d1c4 100644 --- a/rest/proxy/v1/api_default.go +++ b/rest/proxy/v1/api_default.go @@ -15,6 +15,8 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" + "time" ) type DefaultApiService struct { @@ -37,28 +39,29 @@ type CreateMessageInteractionParams struct { /* CreateMessageInteraction Method for CreateMessageInteraction Create a new message Interaction to send directly from your system to one [Participant](https://www.twilio.com/docs/proxy/api/participant). The `inbound` properties for the Interaction will always be empty. - * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) resource. - * @param sessionSid The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) resource. - * @param participantSid The SID of the [Participant](https://www.twilio.com/docs/proxy/api/participant) resource. + * @param ServiceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) resource. + * @param SessionSid The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) resource. + * @param ParticipantSid The SID of the [Participant](https://www.twilio.com/docs/proxy/api/participant) resource. * @param optional nil or *CreateMessageInteractionOpts - Optional Parameters: * @param "Body" (string) - The message to send to the participant * @param "MediaUrl" ([]string) - Reserved. Not currently supported. @return ProxyV1ServiceSessionParticipantMessageInteraction */ -func (c *DefaultApiService) CreateMessageInteraction(serviceSid string, sessionSid string, participantSid string, params *CreateMessageInteractionParams) (*ProxyV1ServiceSessionParticipantMessageInteraction, error) { +func (c *DefaultApiService) CreateMessageInteraction(ServiceSid string, SessionSid string, ParticipantSid string, params *CreateMessageInteractionParams) (*ProxyV1ServiceSessionParticipantMessageInteraction, error) { path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{ParticipantSid}/MessageInteractions" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) - path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"SessionSid"+"}", SessionSid, -1) + path = strings.Replace(path, "{"+"ParticipantSid"+"}", ParticipantSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Body != nil { - data.Set("Body", *params.Body) + data.Set("Body", *params.Body) } if params != nil && params.MediaUrl != nil { - data.Set("MediaUrl", *params.MediaUrl) + data.Set("MediaUrl", strings.Join(*params.MediaUrl, ",")) } @@ -88,8 +91,8 @@ type CreateParticipantParams struct { /* CreateParticipant Method for CreateParticipant Add a new Participant to the Session - * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) resource. - * @param sessionSid The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) resource. + * @param ServiceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) resource. + * @param SessionSid The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) resource. * @param optional nil or *CreateParticipantOpts - Optional Parameters: * @param "FailOnParticipantConflict" (bool) - [Experimental] For accounts with the ProxyAllowParticipantConflict account flag, setting to true enables per-request opt-in to allowing Proxy to reject a Participant create request that could cause the same Identifier/ProxyIdentifier pair to be active in multiple Sessions. Depending on the context, this could be a 409 error (Twilio error code 80623) or a 400 error (Twilio error code 80604). If not provided, requests will be allowed to succeed and a Debugger notification (80802) will be emitted. Having multiple, active Participants with the same Identifier/ProxyIdentifier pair causes calls and messages from affected Participants to be routed incorrectly. Please note, the default behavior for accounts without the ProxyAllowParticipantConflict flag is to reject the request as described. This will eventually be the default for all accounts. * @param "FriendlyName" (string) - The string that you assigned to describe the participant. This value must be 255 characters or fewer. **This value should not have PII.** @@ -98,28 +101,29 @@ Add a new Participant to the Session * @param "ProxyIdentifierSid" (string) - The SID of the Proxy Identifier to assign to the Participant. @return ProxyV1ServiceSessionParticipant */ -func (c *DefaultApiService) CreateParticipant(serviceSid string, sessionSid string, params *CreateParticipantParams) (*ProxyV1ServiceSessionParticipant, error) { +func (c *DefaultApiService) CreateParticipant(ServiceSid string, SessionSid string, params *CreateParticipantParams) (*ProxyV1ServiceSessionParticipant, error) { path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"SessionSid"+"}", SessionSid, -1) + data := url.Values{} headers := 0 if params != nil && params.FailOnParticipantConflict != nil { - data.Set("FailOnParticipantConflict", string(*params.FailOnParticipantConflict)) + data.Set("FailOnParticipantConflict", fmt.Sprint(*params.FailOnParticipantConflict)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Identifier != nil { - data.Set("Identifier", *params.Identifier) + data.Set("Identifier", *params.Identifier) } if params != nil && params.ProxyIdentifier != nil { - data.Set("ProxyIdentifier", *params.ProxyIdentifier) + data.Set("ProxyIdentifier", *params.ProxyIdentifier) } if params != nil && params.ProxyIdentifierSid != nil { - data.Set("ProxyIdentifierSid", *params.ProxyIdentifierSid) + data.Set("ProxyIdentifierSid", *params.ProxyIdentifierSid) } @@ -147,28 +151,29 @@ type CreatePhoneNumberParams struct { /* CreatePhoneNumber Method for CreatePhoneNumber Add a Phone Number to a Service's Proxy Number Pool. - * @param serviceSid The SID parent [Service](https://www.twilio.com/docs/proxy/api/service) resource of the new PhoneNumber resource. + * @param ServiceSid The SID parent [Service](https://www.twilio.com/docs/proxy/api/service) resource of the new PhoneNumber resource. * @param optional nil or *CreatePhoneNumberOpts - Optional Parameters: * @param "IsReserved" (bool) - Whether the new phone number should be reserved and not be assigned to a participant using proxy pool logic. See [Reserved Phone Numbers](https://www.twilio.com/docs/proxy/reserved-phone-numbers) for more information. * @param "PhoneNumber" (string) - The phone number 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. * @param "Sid" (string) - The SID of a Twilio [IncomingPhoneNumber](https://www.twilio.com/docs/phone-numbers/api/incomingphonenumber-resource) resource that represents the Twilio Number you would like to assign to your Proxy Service. @return ProxyV1ServicePhoneNumber */ -func (c *DefaultApiService) CreatePhoneNumber(serviceSid string, params *CreatePhoneNumberParams) (*ProxyV1ServicePhoneNumber, error) { +func (c *DefaultApiService) CreatePhoneNumber(ServiceSid string, params *CreatePhoneNumberParams) (*ProxyV1ServicePhoneNumber, error) { path := "/v1/Services/{ServiceSid}/PhoneNumbers" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.IsReserved != nil { - data.Set("IsReserved", string(*params.IsReserved)) + data.Set("IsReserved", fmt.Sprint(*params.IsReserved)) } if params != nil && params.PhoneNumber != nil { - data.Set("PhoneNumber", *params.PhoneNumber) + data.Set("PhoneNumber", *params.PhoneNumber) } if params != nil && params.Sid != nil { - data.Set("Sid", *params.Sid) + data.Set("Sid", *params.Sid) } @@ -215,32 +220,33 @@ Create a new Service for Twilio Proxy func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*ProxyV1Service, error) { path := "/v1/Services" + data := url.Values{} headers := 0 if params != nil && params.CallbackUrl != nil { - data.Set("CallbackUrl", *params.CallbackUrl) + data.Set("CallbackUrl", *params.CallbackUrl) } if params != nil && params.ChatInstanceSid != nil { - data.Set("ChatInstanceSid", *params.ChatInstanceSid) + data.Set("ChatInstanceSid", *params.ChatInstanceSid) } if params != nil && params.DefaultTtl != nil { - data.Set("DefaultTtl", string(*params.DefaultTtl)) + data.Set("DefaultTtl", fmt.Sprint(*params.DefaultTtl)) } if params != nil && params.GeoMatchLevel != nil { - data.Set("GeoMatchLevel", *params.GeoMatchLevel) + data.Set("GeoMatchLevel", *params.GeoMatchLevel) } if params != nil && params.InterceptCallbackUrl != nil { - data.Set("InterceptCallbackUrl", *params.InterceptCallbackUrl) + data.Set("InterceptCallbackUrl", *params.InterceptCallbackUrl) } if params != nil && params.NumberSelectionBehavior != nil { - data.Set("NumberSelectionBehavior", *params.NumberSelectionBehavior) + data.Set("NumberSelectionBehavior", *params.NumberSelectionBehavior) } if params != nil && params.OutOfSessionCallbackUrl != nil { - data.Set("OutOfSessionCallbackUrl", *params.OutOfSessionCallbackUrl) + data.Set("OutOfSessionCallbackUrl", *params.OutOfSessionCallbackUrl) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -272,7 +278,7 @@ type CreateSessionParams struct { /* CreateSession Method for CreateSession Create a new Session - * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) resource. + * @param ServiceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) resource. * @param optional nil or *CreateSessionOpts - Optional Parameters: * @param "DateExpiry" (time.Time) - The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date when the Session should expire. If this is value is present, it overrides the `ttl` value. * @param "FailOnParticipantConflict" (bool) - [Experimental] For accounts with the ProxyAllowParticipantConflict account flag, setting to true enables per-request opt-in to allowing Proxy to reject a Session create (with Participants) request that could cause the same Identifier/ProxyIdentifier pair to be active in multiple Sessions. Depending on the context, this could be a 409 error (Twilio error code 80623) or a 400 error (Twilio error code 80604). If not provided, requests will be allowed to succeed and a Debugger notification (80802) will be emitted. Having multiple, active Participants with the same Identifier/ProxyIdentifier pair causes calls and messages from affected Participants to be routed incorrectly. Please note, the default behavior for accounts without the ProxyAllowParticipantConflict flag is to reject the request as described. This will eventually be the default for all accounts. @@ -283,21 +289,22 @@ Create a new Session * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. This value must be 191 characters or fewer in length and be unique. **This value should not have PII.** @return ProxyV1ServiceSession */ -func (c *DefaultApiService) CreateSession(serviceSid string, params *CreateSessionParams) (*ProxyV1ServiceSession, error) { +func (c *DefaultApiService) CreateSession(ServiceSid string, params *CreateSessionParams) (*ProxyV1ServiceSession, error) { path := "/v1/Services/{ServiceSid}/Sessions" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.DateExpiry != nil { - data.Set("DateExpiry", string(*params.DateExpiry)) + data.Set("DateExpiry", fmt.Sprint(*params.DateExpiry)) } if params != nil && params.FailOnParticipantConflict != nil { - data.Set("FailOnParticipantConflict", string(*params.FailOnParticipantConflict)) + data.Set("FailOnParticipantConflict", fmt.Sprint(*params.FailOnParticipantConflict)) } if params != nil && params.Mode != nil { - data.Set("Mode", *params.Mode) + data.Set("Mode", *params.Mode) } if params != nil && params.Participants != nil { v, err := json.Marshal(params.Participants) @@ -306,16 +313,16 @@ func (c *DefaultApiService) CreateSession(serviceSid string, params *CreateSessi return nil, err } - data.Set("Participants", string(v)) + data.Set("Participants", fmt.Sprint(v)) } if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } if params != nil && params.Ttl != nil { - data.Set("Ttl", string(*params.Ttl)) + data.Set("Ttl", fmt.Sprint(*params.Ttl)) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -341,20 +348,21 @@ type CreateShortCodeParams struct { /* CreateShortCode Method for CreateShortCode Add a Short Code to the Proxy Number Pool for the Service. - * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) resource. + * @param ServiceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) resource. * @param optional nil or *CreateShortCodeOpts - Optional Parameters: * @param "Sid" (string) - The SID of a Twilio [ShortCode](https://www.twilio.com/docs/sms/api/short-code) resource that represents the short code you would like to assign to your Proxy Service. @return ProxyV1ServiceShortCode */ -func (c *DefaultApiService) CreateShortCode(serviceSid string, params *CreateShortCodeParams) (*ProxyV1ServiceShortCode, error) { +func (c *DefaultApiService) CreateShortCode(ServiceSid string, params *CreateShortCodeParams) (*ProxyV1ServiceShortCode, error) { path := "/v1/Services/{ServiceSid}/ShortCodes" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Sid != nil { - data.Set("Sid", *params.Sid) + data.Set("Sid", *params.Sid) } @@ -376,17 +384,18 @@ func (c *DefaultApiService) CreateShortCode(serviceSid string, params *CreateSho /* DeleteInteraction Method for DeleteInteraction Delete a specific Interaction. - * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to delete. - * @param sessionSid The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resource to delete. - * @param sid The Twilio-provided string that uniquely identifies the Interaction resource to delete. + * @param ServiceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to delete. + * @param SessionSid The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resource to delete. + * @param Sid The Twilio-provided string that uniquely identifies the Interaction resource to delete. */ -func (c *DefaultApiService) DeleteInteraction(serviceSid string, sessionSid string, sid string) (error) { +func (c *DefaultApiService) DeleteInteraction(ServiceSid string, SessionSid string, Sid string) (error) { path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Interactions/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"SessionSid"+"}", SessionSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -404,17 +413,18 @@ func (c *DefaultApiService) DeleteInteraction(serviceSid string, sessionSid stri /* DeleteParticipant Method for DeleteParticipant Delete a specific Participant. This is a soft-delete. The participant remains associated with the session and cannot be re-added. Participants are only permanently deleted when the [Session](https://www.twilio.com/docs/proxy/api/session) is deleted. - * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to delete. - * @param sessionSid The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resource to delete. - * @param sid The Twilio-provided string that uniquely identifies the Participant resource to delete. + * @param ServiceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to delete. + * @param SessionSid The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resource to delete. + * @param Sid The Twilio-provided string that uniquely identifies the Participant resource to delete. */ -func (c *DefaultApiService) DeleteParticipant(serviceSid string, sessionSid string, sid string) (error) { +func (c *DefaultApiService) DeleteParticipant(ServiceSid string, SessionSid string, Sid string) (error) { path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"SessionSid"+"}", SessionSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -432,15 +442,16 @@ func (c *DefaultApiService) DeleteParticipant(serviceSid string, sessionSid stri /* DeletePhoneNumber Method for DeletePhoneNumber Delete a specific Phone Number from a Service. - * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the PhoneNumber resource to delete. - * @param sid The Twilio-provided string that uniquely identifies the PhoneNumber resource to delete. + * @param ServiceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the PhoneNumber resource to delete. + * @param Sid The Twilio-provided string that uniquely identifies the PhoneNumber resource to delete. */ -func (c *DefaultApiService) DeletePhoneNumber(serviceSid string, sid string) (error) { +func (c *DefaultApiService) DeletePhoneNumber(ServiceSid string, Sid string) (error) { path := "/v1/Services/{ServiceSid}/PhoneNumbers/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -458,13 +469,14 @@ func (c *DefaultApiService) DeletePhoneNumber(serviceSid string, sid string) (er /* DeleteService Method for DeleteService Delete a specific Service. - * @param sid The Twilio-provided string that uniquely identifies the Service resource to delete. + * @param Sid The Twilio-provided string that uniquely identifies the Service resource to delete. */ -func (c *DefaultApiService) DeleteService(sid string) (error) { +func (c *DefaultApiService) DeleteService(Sid string) (error) { path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -482,15 +494,16 @@ func (c *DefaultApiService) DeleteService(sid string) (error) { /* DeleteSession Method for DeleteSession Delete a specific Session. - * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to delete. - * @param sid The Twilio-provided string that uniquely identifies the Session resource to delete. + * @param ServiceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to delete. + * @param Sid The Twilio-provided string that uniquely identifies the Session resource to delete. */ -func (c *DefaultApiService) DeleteSession(serviceSid string, sid string) (error) { +func (c *DefaultApiService) DeleteSession(ServiceSid string, Sid string) (error) { path := "/v1/Services/{ServiceSid}/Sessions/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -508,15 +521,16 @@ func (c *DefaultApiService) DeleteSession(serviceSid string, sid string) (error) /* DeleteShortCode Method for DeleteShortCode Delete a specific Short Code from a Service. - * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) resource to delete the ShortCode resource from. - * @param sid The Twilio-provided string that uniquely identifies the ShortCode resource to delete. + * @param ServiceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) resource to delete the ShortCode resource from. + * @param Sid The Twilio-provided string that uniquely identifies the ShortCode resource to delete. */ -func (c *DefaultApiService) DeleteShortCode(serviceSid string, sid string) (error) { +func (c *DefaultApiService) DeleteShortCode(ServiceSid string, Sid string) (error) { path := "/v1/Services/{ServiceSid}/ShortCodes/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -534,18 +548,19 @@ func (c *DefaultApiService) DeleteShortCode(serviceSid string, sid string) (erro /* FetchInteraction Method for FetchInteraction Retrieve a list of Interactions for a given [Session](https://www.twilio.com/docs/proxy/api/session). - * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to fetch. - * @param sessionSid The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resource to fetch. - * @param sid The Twilio-provided string that uniquely identifies the Interaction resource to fetch. + * @param ServiceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to fetch. + * @param SessionSid The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the Interaction resource to fetch. @return ProxyV1ServiceSessionInteraction */ -func (c *DefaultApiService) FetchInteraction(serviceSid string, sessionSid string, sid string) (*ProxyV1ServiceSessionInteraction, error) { +func (c *DefaultApiService) FetchInteraction(ServiceSid string, SessionSid string, Sid string) (*ProxyV1ServiceSessionInteraction, error) { path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Interactions/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"SessionSid"+"}", SessionSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -567,20 +582,21 @@ func (c *DefaultApiService) FetchInteraction(serviceSid string, sessionSid strin /* FetchMessageInteraction Method for FetchMessageInteraction - * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to fetch. - * @param sessionSid The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resource to fetch. - * @param participantSid The SID of the [Participant](https://www.twilio.com/docs/proxy/api/participant) resource. - * @param sid The Twilio-provided string that uniquely identifies the MessageInteraction resource to fetch. + * @param ServiceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to fetch. + * @param SessionSid The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resource to fetch. + * @param ParticipantSid The SID of the [Participant](https://www.twilio.com/docs/proxy/api/participant) resource. + * @param Sid The Twilio-provided string that uniquely identifies the MessageInteraction resource to fetch. @return ProxyV1ServiceSessionParticipantMessageInteraction */ -func (c *DefaultApiService) FetchMessageInteraction(serviceSid string, sessionSid string, participantSid string, sid string) (*ProxyV1ServiceSessionParticipantMessageInteraction, error) { +func (c *DefaultApiService) FetchMessageInteraction(ServiceSid string, SessionSid string, ParticipantSid string, Sid string) (*ProxyV1ServiceSessionParticipantMessageInteraction, error) { path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{ParticipantSid}/MessageInteractions/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) - path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"SessionSid"+"}", SessionSid, -1) + path = strings.Replace(path, "{"+"ParticipantSid"+"}", ParticipantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -603,18 +619,19 @@ func (c *DefaultApiService) FetchMessageInteraction(serviceSid string, sessionSi /* FetchParticipant Method for FetchParticipant Fetch a specific Participant. - * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to fetch. - * @param sessionSid The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resource to fetch. - * @param sid The Twilio-provided string that uniquely identifies the Participant resource to fetch. + * @param ServiceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to fetch. + * @param SessionSid The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the Participant resource to fetch. @return ProxyV1ServiceSessionParticipant */ -func (c *DefaultApiService) FetchParticipant(serviceSid string, sessionSid string, sid string) (*ProxyV1ServiceSessionParticipant, error) { +func (c *DefaultApiService) FetchParticipant(ServiceSid string, SessionSid string, Sid string) (*ProxyV1ServiceSessionParticipant, error) { path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"SessionSid"+"}", SessionSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -637,16 +654,17 @@ func (c *DefaultApiService) FetchParticipant(serviceSid string, sessionSid strin /* FetchPhoneNumber Method for FetchPhoneNumber Fetch a specific Phone Number. - * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the PhoneNumber resource to fetch. - * @param sid The Twilio-provided string that uniquely identifies the PhoneNumber resource to fetch. + * @param ServiceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the PhoneNumber resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the PhoneNumber resource to fetch. @return ProxyV1ServicePhoneNumber */ -func (c *DefaultApiService) FetchPhoneNumber(serviceSid string, sid string) (*ProxyV1ServicePhoneNumber, error) { +func (c *DefaultApiService) FetchPhoneNumber(ServiceSid string, Sid string) (*ProxyV1ServicePhoneNumber, error) { path := "/v1/Services/{ServiceSid}/PhoneNumbers/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -669,14 +687,15 @@ func (c *DefaultApiService) FetchPhoneNumber(serviceSid string, sid string) (*Pr /* FetchService Method for FetchService Fetch a specific Service. - * @param sid The Twilio-provided string that uniquely identifies the Service resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the Service resource to fetch. @return ProxyV1Service */ -func (c *DefaultApiService) FetchService(sid string) (*ProxyV1Service, error) { +func (c *DefaultApiService) FetchService(Sid string) (*ProxyV1Service, error) { path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -699,16 +718,17 @@ func (c *DefaultApiService) FetchService(sid string) (*ProxyV1Service, error) { /* FetchSession Method for FetchSession Fetch a specific Session. - * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to fetch. - * @param sid The Twilio-provided string that uniquely identifies the Session resource to fetch. + * @param ServiceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the Session resource to fetch. @return ProxyV1ServiceSession */ -func (c *DefaultApiService) FetchSession(serviceSid string, sid string) (*ProxyV1ServiceSession, error) { +func (c *DefaultApiService) FetchSession(ServiceSid string, Sid string) (*ProxyV1ServiceSession, error) { path := "/v1/Services/{ServiceSid}/Sessions/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -731,16 +751,17 @@ func (c *DefaultApiService) FetchSession(serviceSid string, sid string) (*ProxyV /* FetchShortCode Method for FetchShortCode Fetch a specific Short Code. - * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) to fetch the resource from. - * @param sid The Twilio-provided string that uniquely identifies the ShortCode resource to fetch. + * @param ServiceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) to fetch the resource from. + * @param Sid The Twilio-provided string that uniquely identifies the ShortCode resource to fetch. @return ProxyV1ServiceShortCode */ -func (c *DefaultApiService) FetchShortCode(serviceSid string, sid string) (*ProxyV1ServiceShortCode, error) { +func (c *DefaultApiService) FetchShortCode(ServiceSid string, Sid string) (*ProxyV1ServiceShortCode, error) { path := "/v1/Services/{ServiceSid}/ShortCodes/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -767,22 +788,23 @@ type ListInteractionParams struct { /* ListInteraction Method for ListInteraction Retrieve a list of all Interactions for a Session. A maximum of 100 records will be returned per page. - * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) to read the resources from. - * @param sessionSid The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) to read the resources from. + * @param ServiceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) to read the resources from. + * @param SessionSid The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) to read the resources from. * @param optional nil or *ListInteractionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ProxyV1ServiceSessionInteractionReadResponse */ -func (c *DefaultApiService) ListInteraction(serviceSid string, sessionSid string, params *ListInteractionParams) (*ProxyV1ServiceSessionInteractionReadResponse, error) { +func (c *DefaultApiService) ListInteraction(ServiceSid string, SessionSid string, params *ListInteractionParams) (*ProxyV1ServiceSessionInteractionReadResponse, error) { path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Interactions" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"SessionSid"+"}", SessionSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -807,24 +829,25 @@ type ListMessageInteractionParams struct { /* ListMessageInteraction Method for ListMessageInteraction - * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) to read the resources from. - * @param sessionSid The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) to read the resources from. - * @param participantSid The SID of the [Participant](https://www.twilio.com/docs/proxy/api/participant) to read the resources from. + * @param ServiceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) to read the resources from. + * @param SessionSid The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) to read the resources from. + * @param ParticipantSid The SID of the [Participant](https://www.twilio.com/docs/proxy/api/participant) to read the resources from. * @param optional nil or *ListMessageInteractionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ProxyV1ServiceSessionParticipantMessageInteractionReadResponse */ -func (c *DefaultApiService) ListMessageInteraction(serviceSid string, sessionSid string, participantSid string, params *ListMessageInteractionParams) (*ProxyV1ServiceSessionParticipantMessageInteractionReadResponse, error) { +func (c *DefaultApiService) ListMessageInteraction(ServiceSid string, SessionSid string, ParticipantSid string, params *ListMessageInteractionParams) (*ProxyV1ServiceSessionParticipantMessageInteractionReadResponse, error) { path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{ParticipantSid}/MessageInteractions" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) - path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"SessionSid"+"}", SessionSid, -1) + path = strings.Replace(path, "{"+"ParticipantSid"+"}", ParticipantSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -850,22 +873,23 @@ type ListParticipantParams struct { /* ListParticipant Method for ListParticipant Retrieve a list of all Participants in a Session. - * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resources to read. - * @param sessionSid The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resources to read. + * @param ServiceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resources to read. + * @param SessionSid The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resources to read. * @param optional nil or *ListParticipantOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ProxyV1ServiceSessionParticipantReadResponse */ -func (c *DefaultApiService) ListParticipant(serviceSid string, sessionSid string, params *ListParticipantParams) (*ProxyV1ServiceSessionParticipantReadResponse, error) { +func (c *DefaultApiService) ListParticipant(ServiceSid string, SessionSid string, params *ListParticipantParams) (*ProxyV1ServiceSessionParticipantReadResponse, error) { path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"SessionSid"+"}", sessionSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"SessionSid"+"}", SessionSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -891,20 +915,21 @@ type ListPhoneNumberParams struct { /* ListPhoneNumber Method for ListPhoneNumber Retrieve a list of all Phone Numbers in the Proxy Number Pool for a Service. A maximum of 100 records will be returned per page. - * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the PhoneNumber resources to read. + * @param ServiceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the PhoneNumber resources to read. * @param optional nil or *ListPhoneNumberOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ProxyV1ServicePhoneNumberReadResponse */ -func (c *DefaultApiService) ListPhoneNumber(serviceSid string, params *ListPhoneNumberParams) (*ProxyV1ServicePhoneNumberReadResponse, error) { +func (c *DefaultApiService) ListPhoneNumber(ServiceSid string, params *ListPhoneNumberParams) (*ProxyV1ServicePhoneNumberReadResponse, error) { path := "/v1/Services/{ServiceSid}/PhoneNumbers" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -937,11 +962,12 @@ Retrieve a list of all Services for Twilio Proxy. A maximum of 100 records will func (c *DefaultApiService) ListService(params *ListServiceParams) (*ProxyV1ServiceReadResponse, error) { path := "/v1/Services" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -967,20 +993,21 @@ type ListSessionParams struct { /* ListSession Method for ListSession Retrieve a list of all Sessions for the Service. A maximum of 100 records will be returned per page. - * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to read. + * @param ServiceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to read. * @param optional nil or *ListSessionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ProxyV1ServiceSessionReadResponse */ -func (c *DefaultApiService) ListSession(serviceSid string, params *ListSessionParams) (*ProxyV1ServiceSessionReadResponse, error) { +func (c *DefaultApiService) ListSession(ServiceSid string, params *ListSessionParams) (*ProxyV1ServiceSessionReadResponse, error) { path := "/v1/Services/{ServiceSid}/Sessions" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1006,20 +1033,21 @@ type ListShortCodeParams struct { /* ListShortCode Method for ListShortCode Retrieve a list of all Short Codes in the Proxy Number Pool for the Service. A maximum of 100 records will be returned per page. - * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) to read the resources from. + * @param ServiceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) to read the resources from. * @param optional nil or *ListShortCodeOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ProxyV1ServiceShortCodeReadResponse */ -func (c *DefaultApiService) ListShortCode(serviceSid string, params *ListShortCodeParams) (*ProxyV1ServiceShortCodeReadResponse, error) { +func (c *DefaultApiService) ListShortCode(ServiceSid string, params *ListShortCodeParams) (*ProxyV1ServiceShortCodeReadResponse, error) { path := "/v1/Services/{ServiceSid}/ShortCodes" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1045,22 +1073,23 @@ type UpdatePhoneNumberParams struct { /* UpdatePhoneNumber Method for UpdatePhoneNumber Update a specific Proxy Number. - * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the PhoneNumber resource to update. - * @param sid The Twilio-provided string that uniquely identifies the PhoneNumber resource to update. + * @param ServiceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the PhoneNumber resource to update. + * @param Sid The Twilio-provided string that uniquely identifies the PhoneNumber resource to update. * @param optional nil or *UpdatePhoneNumberOpts - Optional Parameters: * @param "IsReserved" (bool) - Whether the phone number should be reserved and not be assigned to a participant using proxy pool logic. See [Reserved Phone Numbers](https://www.twilio.com/docs/proxy/reserved-phone-numbers) for more information. @return ProxyV1ServicePhoneNumber */ -func (c *DefaultApiService) UpdatePhoneNumber(serviceSid string, sid string, params *UpdatePhoneNumberParams) (*ProxyV1ServicePhoneNumber, error) { +func (c *DefaultApiService) UpdatePhoneNumber(ServiceSid string, Sid string, params *UpdatePhoneNumberParams) (*ProxyV1ServicePhoneNumber, error) { path := "/v1/Services/{ServiceSid}/PhoneNumbers/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.IsReserved != nil { - data.Set("IsReserved", string(*params.IsReserved)) + data.Set("IsReserved", fmt.Sprint(*params.IsReserved)) } @@ -1093,7 +1122,7 @@ type UpdateServiceParams struct { /* UpdateService Method for UpdateService Update a specific Service. - * @param sid The Twilio-provided string that uniquely identifies the Service resource to update. + * @param Sid The Twilio-provided string that uniquely identifies the Service resource to update. * @param optional nil or *UpdateServiceOpts - Optional Parameters: * @param "CallbackUrl" (string) - The URL we should call when the interaction status changes. * @param "ChatInstanceSid" (string) - The SID of the Chat Service Instance managed by Proxy Service. The Chat Service enables Proxy to forward SMS and channel messages to this chat instance. This is a one-to-one relationship. @@ -1105,36 +1134,37 @@ Update a specific Service. * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. This value must be 191 characters or fewer in length and be unique. **This value should not have PII.** @return ProxyV1Service */ -func (c *DefaultApiService) UpdateService(sid string, params *UpdateServiceParams) (*ProxyV1Service, error) { +func (c *DefaultApiService) UpdateService(Sid string, params *UpdateServiceParams) (*ProxyV1Service, error) { path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.CallbackUrl != nil { - data.Set("CallbackUrl", *params.CallbackUrl) + data.Set("CallbackUrl", *params.CallbackUrl) } if params != nil && params.ChatInstanceSid != nil { - data.Set("ChatInstanceSid", *params.ChatInstanceSid) + data.Set("ChatInstanceSid", *params.ChatInstanceSid) } if params != nil && params.DefaultTtl != nil { - data.Set("DefaultTtl", string(*params.DefaultTtl)) + data.Set("DefaultTtl", fmt.Sprint(*params.DefaultTtl)) } if params != nil && params.GeoMatchLevel != nil { - data.Set("GeoMatchLevel", *params.GeoMatchLevel) + data.Set("GeoMatchLevel", *params.GeoMatchLevel) } if params != nil && params.InterceptCallbackUrl != nil { - data.Set("InterceptCallbackUrl", *params.InterceptCallbackUrl) + data.Set("InterceptCallbackUrl", *params.InterceptCallbackUrl) } if params != nil && params.NumberSelectionBehavior != nil { - data.Set("NumberSelectionBehavior", *params.NumberSelectionBehavior) + data.Set("NumberSelectionBehavior", *params.NumberSelectionBehavior) } if params != nil && params.OutOfSessionCallbackUrl != nil { - data.Set("OutOfSessionCallbackUrl", *params.OutOfSessionCallbackUrl) + data.Set("OutOfSessionCallbackUrl", *params.OutOfSessionCallbackUrl) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -1163,8 +1193,8 @@ type UpdateSessionParams struct { /* UpdateSession Method for UpdateSession Update a specific Session. - * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to update. - * @param sid The Twilio-provided string that uniquely identifies the Session resource to update. + * @param ServiceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to update. + * @param Sid The Twilio-provided string that uniquely identifies the Session resource to update. * @param optional nil or *UpdateSessionOpts - Optional Parameters: * @param "DateExpiry" (time.Time) - The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date when the Session should expire. If this is value is present, it overrides the `ttl` value. * @param "FailOnParticipantConflict" (bool) - [Experimental] For accounts with the ProxyAllowParticipantConflict account flag, setting to true enables per-request opt-in to allowing Proxy to return a 400 error (Twilio error code 80604) when a request to set a Session to in-progress would cause Participants with the same Identifier/ProxyIdentifier pair to be active in multiple Sessions. If not provided, requests will be allowed to succeed, and a Debugger notification (80801) will be emitted. Having multiple, active Participants with the same Identifier/ProxyIdentifier pair causes calls and messages from affected Participants to be routed incorrectly. Please note, the default behavior for accounts without the ProxyAllowParticipantConflict flag is to reject the request as described. This will eventually be the default for all accounts. @@ -1172,25 +1202,26 @@ Update a specific Session. * @param "Ttl" (int32) - The time, in seconds, when the session will expire. The time is measured from the last Session create or the Session's last Interaction. @return ProxyV1ServiceSession */ -func (c *DefaultApiService) UpdateSession(serviceSid string, sid string, params *UpdateSessionParams) (*ProxyV1ServiceSession, error) { +func (c *DefaultApiService) UpdateSession(ServiceSid string, Sid string, params *UpdateSessionParams) (*ProxyV1ServiceSession, error) { path := "/v1/Services/{ServiceSid}/Sessions/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.DateExpiry != nil { - data.Set("DateExpiry", string(*params.DateExpiry)) + data.Set("DateExpiry", fmt.Sprint(*params.DateExpiry)) } if params != nil && params.FailOnParticipantConflict != nil { - data.Set("FailOnParticipantConflict", string(*params.FailOnParticipantConflict)) + data.Set("FailOnParticipantConflict", fmt.Sprint(*params.FailOnParticipantConflict)) } if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } if params != nil && params.Ttl != nil { - data.Set("Ttl", string(*params.Ttl)) + data.Set("Ttl", fmt.Sprint(*params.Ttl)) } @@ -1216,22 +1247,23 @@ type UpdateShortCodeParams struct { /* UpdateShortCode Method for UpdateShortCode Update a specific Short Code. - * @param serviceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to update. - * @param sid The Twilio-provided string that uniquely identifies the ShortCode resource to update. + * @param ServiceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to update. + * @param Sid The Twilio-provided string that uniquely identifies the ShortCode resource to update. * @param optional nil or *UpdateShortCodeOpts - Optional Parameters: * @param "IsReserved" (bool) - Whether the short code should be reserved and not be assigned to a participant using proxy pool logic. See [Reserved Phone Numbers](https://www.twilio.com/docs/proxy/reserved-phone-numbers) for more information. @return ProxyV1ServiceShortCode */ -func (c *DefaultApiService) UpdateShortCode(serviceSid string, sid string, params *UpdateShortCodeParams) (*ProxyV1ServiceShortCode, error) { +func (c *DefaultApiService) UpdateShortCode(ServiceSid string, Sid string, params *UpdateShortCodeParams) (*ProxyV1ServiceShortCode, error) { path := "/v1/Services/{ServiceSid}/ShortCodes/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.IsReserved != nil { - data.Set("IsReserved", string(*params.IsReserved)) + data.Set("IsReserved", fmt.Sprint(*params.IsReserved)) } diff --git a/rest/proxy/v1/docs/DefaultApi.md b/rest/proxy/v1/docs/DefaultApi.md index 7e7ab0c34..1b8d5e30d 100644 --- a/rest/proxy/v1/docs/DefaultApi.md +++ b/rest/proxy/v1/docs/DefaultApi.md @@ -39,7 +39,7 @@ Method | HTTP request | Description ## CreateMessageInteraction -> ProxyV1ServiceSessionParticipantMessageInteraction CreateMessageInteraction(ctx, serviceSid, sessionSid, participantSid, optional) +> ProxyV1ServiceSessionParticipantMessageInteraction CreateMessageInteraction(ctx, ServiceSid, SessionSid, ParticipantSid, optional) @@ -51,9 +51,9 @@ Create a new message Interaction to send directly from your system to one [Parti Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) resource. | -**sessionSid** | **string**| The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) resource. | -**participantSid** | **string**| The SID of the [Participant](https://www.twilio.com/docs/proxy/api/participant) resource. | +**ServiceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) resource. | +**SessionSid** | **string**| The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) resource. | +**ParticipantSid** | **string**| The SID of the [Participant](https://www.twilio.com/docs/proxy/api/participant) resource. | **optional** | ***CreateMessageInteractionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -66,8 +66,8 @@ Name | Type | Description | Notes - **body** | **optional.String**| The message to send to the participant | - **mediaUrl** | [**optional.Interface of []string**](string.md)| Reserved. Not currently supported. | + **Body** | **optional.String**| The message to send to the participant | + **MediaUrl** | [**optional.Interface of []string**](string.md)| Reserved. Not currently supported. | ### Return type @@ -89,7 +89,7 @@ Name | Type | Description | Notes ## CreateParticipant -> ProxyV1ServiceSessionParticipant CreateParticipant(ctx, serviceSid, sessionSid, optional) +> ProxyV1ServiceSessionParticipant CreateParticipant(ctx, ServiceSid, SessionSid, optional) @@ -101,8 +101,8 @@ Add a new Participant to the Session Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) resource. | -**sessionSid** | **string**| The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) resource. | +**ServiceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) resource. | +**SessionSid** | **string**| The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) resource. | **optional** | ***CreateParticipantOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -114,11 +114,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **failOnParticipantConflict** | **optional.Bool**| [Experimental] For accounts with the ProxyAllowParticipantConflict account flag, setting to true enables per-request opt-in to allowing Proxy to reject a Participant create request that could cause the same Identifier/ProxyIdentifier pair to be active in multiple Sessions. Depending on the context, this could be a 409 error (Twilio error code 80623) or a 400 error (Twilio error code 80604). If not provided, requests will be allowed to succeed and a Debugger notification (80802) will be emitted. Having multiple, active Participants with the same Identifier/ProxyIdentifier pair causes calls and messages from affected Participants to be routed incorrectly. Please note, the default behavior for accounts without the ProxyAllowParticipantConflict flag is to reject the request as described. This will eventually be the default for all accounts. | - **friendlyName** | **optional.String**| The string that you assigned to describe the participant. This value must be 255 characters or fewer. **This value should not have PII.** | - **identifier** | **optional.String**| The phone number of the Participant. | - **proxyIdentifier** | **optional.String**| The proxy phone number to use for the Participant. If not specified, Proxy will select a number from the pool. | - **proxyIdentifierSid** | **optional.String**| The SID of the Proxy Identifier to assign to the Participant. | + **FailOnParticipantConflict** | **optional.Bool**| [Experimental] For accounts with the ProxyAllowParticipantConflict account flag, setting to true enables per-request opt-in to allowing Proxy to reject a Participant create request that could cause the same Identifier/ProxyIdentifier pair to be active in multiple Sessions. Depending on the context, this could be a 409 error (Twilio error code 80623) or a 400 error (Twilio error code 80604). If not provided, requests will be allowed to succeed and a Debugger notification (80802) will be emitted. Having multiple, active Participants with the same Identifier/ProxyIdentifier pair causes calls and messages from affected Participants to be routed incorrectly. Please note, the default behavior for accounts without the ProxyAllowParticipantConflict flag is to reject the request as described. This will eventually be the default for all accounts. | + **FriendlyName** | **optional.String**| The string that you assigned to describe the participant. This value must be 255 characters or fewer. **This value should not have PII.** | + **Identifier** | **optional.String**| The phone number of the Participant. | + **ProxyIdentifier** | **optional.String**| The proxy phone number to use for the Participant. If not specified, Proxy will select a number from the pool. | + **ProxyIdentifierSid** | **optional.String**| The SID of the Proxy Identifier to assign to the Participant. | ### Return type @@ -140,7 +140,7 @@ Name | Type | Description | Notes ## CreatePhoneNumber -> ProxyV1ServicePhoneNumber CreatePhoneNumber(ctx, serviceSid, optional) +> ProxyV1ServicePhoneNumber CreatePhoneNumber(ctx, ServiceSid, optional) @@ -152,7 +152,7 @@ Add a Phone Number to a Service's Proxy Number Pool. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID parent [Service](https://www.twilio.com/docs/proxy/api/service) resource of the new PhoneNumber resource. | +**ServiceSid** | **string**| The SID parent [Service](https://www.twilio.com/docs/proxy/api/service) resource of the new PhoneNumber resource. | **optional** | ***CreatePhoneNumberOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -163,9 +163,9 @@ Optional parameters are passed through a pointer to a CreatePhoneNumberOpts stru Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **isReserved** | **optional.Bool**| Whether the new phone number should be reserved and not be assigned to a participant using proxy pool logic. See [Reserved Phone Numbers](https://www.twilio.com/docs/proxy/reserved-phone-numbers) for more information. | - **phoneNumber** | **optional.String**| The phone number 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. | - **sid** | **optional.String**| The SID of a Twilio [IncomingPhoneNumber](https://www.twilio.com/docs/phone-numbers/api/incomingphonenumber-resource) resource that represents the Twilio Number you would like to assign to your Proxy Service. | + **IsReserved** | **optional.Bool**| Whether the new phone number should be reserved and not be assigned to a participant using proxy pool logic. See [Reserved Phone Numbers](https://www.twilio.com/docs/proxy/reserved-phone-numbers) for more information. | + **PhoneNumber** | **optional.String**| The phone number 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. | + **Sid** | **optional.String**| The SID of a Twilio [IncomingPhoneNumber](https://www.twilio.com/docs/phone-numbers/api/incomingphonenumber-resource) resource that represents the Twilio Number you would like to assign to your Proxy Service. | ### Return type @@ -208,14 +208,14 @@ Optional parameters are passed through a pointer to a CreateServiceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **callbackUrl** | **optional.String**| The URL we should call when the interaction status changes. | - **chatInstanceSid** | **optional.String**| The SID of the Chat Service Instance managed by Proxy Service. The Chat Service enables Proxy to forward SMS and channel messages to this chat instance. This is a one-to-one relationship. | - **defaultTtl** | **optional.Int32**| The default `ttl` value to set for Sessions created in the Service. The TTL (time to live) is measured in seconds after the Session's last create or last Interaction. The default value of `0` indicates an unlimited Session length. You can override a Session's default TTL value by setting its `ttl` value. | - **geoMatchLevel** | **optional.String**| Where a proxy number must be located relative to the participant identifier. Can be: `country`, `area-code`, or `extended-area-code`. The default value is `country` and more specific areas than `country` are only available in North America. | - **interceptCallbackUrl** | **optional.String**| The URL we call on each interaction. If we receive a 403 status, we block the interaction; otherwise the interaction continues. | - **numberSelectionBehavior** | **optional.String**| The preference for Proxy Number selection in the Service instance. Can be: `prefer-sticky` or `avoid-sticky` and the default is `prefer-sticky`. `prefer-sticky` means that we will try and select the same Proxy Number for a given participant if they have previous [Sessions](https://www.twilio.com/docs/proxy/api/session), but we will not fail if that Proxy Number cannot be used. `avoid-sticky` means that we will try to use different Proxy Numbers as long as that is possible within a given pool rather than try and use a previously assigned number. | - **outOfSessionCallbackUrl** | **optional.String**| The URL we should call when an inbound call or SMS action occurs on a closed or non-existent Session. If your server (or a Twilio [function](https://www.twilio.com/functions)) responds with valid [TwiML](https://www.twilio.com/docs/voice/twiml), we will process it. This means it is possible, for example, to play a message for a call, send an automated text message response, or redirect a call to another Phone Number. See [Out-of-Session Callback Response Guide](https://www.twilio.com/docs/proxy/out-session-callback-response-guide) for more information. | - **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. This value must be 191 characters or fewer in length and be unique. **This value should not have PII.** | + **CallbackUrl** | **optional.String**| The URL we should call when the interaction status changes. | + **ChatInstanceSid** | **optional.String**| The SID of the Chat Service Instance managed by Proxy Service. The Chat Service enables Proxy to forward SMS and channel messages to this chat instance. This is a one-to-one relationship. | + **DefaultTtl** | **optional.Int32**| The default `ttl` value to set for Sessions created in the Service. The TTL (time to live) is measured in seconds after the Session's last create or last Interaction. The default value of `0` indicates an unlimited Session length. You can override a Session's default TTL value by setting its `ttl` value. | + **GeoMatchLevel** | **optional.String**| Where a proxy number must be located relative to the participant identifier. Can be: `country`, `area-code`, or `extended-area-code`. The default value is `country` and more specific areas than `country` are only available in North America. | + **InterceptCallbackUrl** | **optional.String**| The URL we call on each interaction. If we receive a 403 status, we block the interaction; otherwise the interaction continues. | + **NumberSelectionBehavior** | **optional.String**| The preference for Proxy Number selection in the Service instance. Can be: `prefer-sticky` or `avoid-sticky` and the default is `prefer-sticky`. `prefer-sticky` means that we will try and select the same Proxy Number for a given participant if they have previous [Sessions](https://www.twilio.com/docs/proxy/api/session), but we will not fail if that Proxy Number cannot be used. `avoid-sticky` means that we will try to use different Proxy Numbers as long as that is possible within a given pool rather than try and use a previously assigned number. | + **OutOfSessionCallbackUrl** | **optional.String**| The URL we should call when an inbound call or SMS action occurs on a closed or non-existent Session. If your server (or a Twilio [function](https://www.twilio.com/functions)) responds with valid [TwiML](https://www.twilio.com/docs/voice/twiml), we will process it. This means it is possible, for example, to play a message for a call, send an automated text message response, or redirect a call to another Phone Number. See [Out-of-Session Callback Response Guide](https://www.twilio.com/docs/proxy/out-session-callback-response-guide) for more information. | + **UniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. This value must be 191 characters or fewer in length and be unique. **This value should not have PII.** | ### Return type @@ -237,7 +237,7 @@ Name | Type | Description | Notes ## CreateSession -> ProxyV1ServiceSession CreateSession(ctx, serviceSid, optional) +> ProxyV1ServiceSession CreateSession(ctx, ServiceSid, optional) @@ -249,7 +249,7 @@ Create a new Session Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) resource. | +**ServiceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) resource. | **optional** | ***CreateSessionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -260,13 +260,13 @@ Optional parameters are passed through a pointer to a CreateSessionOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **dateExpiry** | **optional.Time**| The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date when the Session should expire. If this is value is present, it overrides the `ttl` value. | - **failOnParticipantConflict** | **optional.Bool**| [Experimental] For accounts with the ProxyAllowParticipantConflict account flag, setting to true enables per-request opt-in to allowing Proxy to reject a Session create (with Participants) request that could cause the same Identifier/ProxyIdentifier pair to be active in multiple Sessions. Depending on the context, this could be a 409 error (Twilio error code 80623) or a 400 error (Twilio error code 80604). If not provided, requests will be allowed to succeed and a Debugger notification (80802) will be emitted. Having multiple, active Participants with the same Identifier/ProxyIdentifier pair causes calls and messages from affected Participants to be routed incorrectly. Please note, the default behavior for accounts without the ProxyAllowParticipantConflict flag is to reject the request as described. This will eventually be the default for all accounts. | - **mode** | **optional.String**| The Mode of the Session. Can be: `message-only`, `voice-only`, or `voice-and-message` and the default value is `voice-and-message`. | - **participants** | [**optional.Interface of []map[string]interface{}**](map[string]interface{}.md)| The Participant objects to include in the new session. | - **status** | **optional.String**| The initial status of the Session. Can be: `open`, `in-progress`, `closed`, `failed`, or `unknown`. The default is `open` on create. | - **ttl** | **optional.Int32**| The time, in seconds, when the session will expire. The time is measured from the last Session create or the Session's last Interaction. | - **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. This value must be 191 characters or fewer in length and be unique. **This value should not have PII.** | + **DateExpiry** | **optional.Time**| The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date when the Session should expire. If this is value is present, it overrides the `ttl` value. | + **FailOnParticipantConflict** | **optional.Bool**| [Experimental] For accounts with the ProxyAllowParticipantConflict account flag, setting to true enables per-request opt-in to allowing Proxy to reject a Session create (with Participants) request that could cause the same Identifier/ProxyIdentifier pair to be active in multiple Sessions. Depending on the context, this could be a 409 error (Twilio error code 80623) or a 400 error (Twilio error code 80604). If not provided, requests will be allowed to succeed and a Debugger notification (80802) will be emitted. Having multiple, active Participants with the same Identifier/ProxyIdentifier pair causes calls and messages from affected Participants to be routed incorrectly. Please note, the default behavior for accounts without the ProxyAllowParticipantConflict flag is to reject the request as described. This will eventually be the default for all accounts. | + **Mode** | **optional.String**| The Mode of the Session. Can be: `message-only`, `voice-only`, or `voice-and-message` and the default value is `voice-and-message`. | + **Participants** | [**optional.Interface of []map[string]interface{}**](map[string]interface{}.md)| The Participant objects to include in the new session. | + **Status** | **optional.String**| The initial status of the Session. Can be: `open`, `in-progress`, `closed`, `failed`, or `unknown`. The default is `open` on create. | + **Ttl** | **optional.Int32**| The time, in seconds, when the session will expire. The time is measured from the last Session create or the Session's last Interaction. | + **UniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. This value must be 191 characters or fewer in length and be unique. **This value should not have PII.** | ### Return type @@ -288,7 +288,7 @@ Name | Type | Description | Notes ## CreateShortCode -> ProxyV1ServiceShortCode CreateShortCode(ctx, serviceSid, optional) +> ProxyV1ServiceShortCode CreateShortCode(ctx, ServiceSid, optional) @@ -300,7 +300,7 @@ Add a Short Code to the Proxy Number Pool for the Service. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) resource. | +**ServiceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) resource. | **optional** | ***CreateShortCodeOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -311,7 +311,7 @@ Optional parameters are passed through a pointer to a CreateShortCodeOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **sid** | **optional.String**| The SID of a Twilio [ShortCode](https://www.twilio.com/docs/sms/api/short-code) resource that represents the short code you would like to assign to your Proxy Service. | + **Sid** | **optional.String**| The SID of a Twilio [ShortCode](https://www.twilio.com/docs/sms/api/short-code) resource that represents the short code you would like to assign to your Proxy Service. | ### Return type @@ -333,7 +333,7 @@ Name | Type | Description | Notes ## DeleteInteraction -> DeleteInteraction(ctx, serviceSid, sessionSid, sid) +> DeleteInteraction(ctx, ServiceSid, SessionSid, Sid) @@ -345,9 +345,9 @@ Delete a specific Interaction. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to delete. | -**sessionSid** | **string**| The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resource to delete. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Interaction resource to delete. | +**ServiceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to delete. | +**SessionSid** | **string**| The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resource to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Interaction resource to delete. | ### Return type @@ -369,7 +369,7 @@ Name | Type | Description | Notes ## DeleteParticipant -> DeleteParticipant(ctx, serviceSid, sessionSid, sid) +> DeleteParticipant(ctx, ServiceSid, SessionSid, Sid) @@ -381,9 +381,9 @@ Delete a specific Participant. This is a soft-delete. The participant remains as Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to delete. | -**sessionSid** | **string**| The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resource to delete. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Participant resource to delete. | +**ServiceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to delete. | +**SessionSid** | **string**| The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resource to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Participant resource to delete. | ### Return type @@ -405,7 +405,7 @@ Name | Type | Description | Notes ## DeletePhoneNumber -> DeletePhoneNumber(ctx, serviceSid, sid) +> DeletePhoneNumber(ctx, ServiceSid, Sid) @@ -417,8 +417,8 @@ Delete a specific Phone Number from a Service. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the PhoneNumber resource to delete. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the PhoneNumber resource to delete. | +**ServiceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the PhoneNumber resource to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the PhoneNumber resource to delete. | ### Return type @@ -440,7 +440,7 @@ Name | Type | Description | Notes ## DeleteService -> DeleteService(ctx, sid) +> DeleteService(ctx, Sid) @@ -452,7 +452,7 @@ Delete a specific Service. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the Service resource to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Service resource to delete. | ### Return type @@ -474,7 +474,7 @@ Name | Type | Description | Notes ## DeleteSession -> DeleteSession(ctx, serviceSid, sid) +> DeleteSession(ctx, ServiceSid, Sid) @@ -486,8 +486,8 @@ Delete a specific Session. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to delete. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Session resource to delete. | +**ServiceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Session resource to delete. | ### Return type @@ -509,7 +509,7 @@ Name | Type | Description | Notes ## DeleteShortCode -> DeleteShortCode(ctx, serviceSid, sid) +> DeleteShortCode(ctx, ServiceSid, Sid) @@ -521,8 +521,8 @@ Delete a specific Short Code from a Service. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) resource to delete the ShortCode resource from. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the ShortCode resource to delete. | +**ServiceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) resource to delete the ShortCode resource from. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the ShortCode resource to delete. | ### Return type @@ -544,7 +544,7 @@ Name | Type | Description | Notes ## FetchInteraction -> ProxyV1ServiceSessionInteraction FetchInteraction(ctx, serviceSid, sessionSid, sid) +> ProxyV1ServiceSessionInteraction FetchInteraction(ctx, ServiceSid, SessionSid, Sid) @@ -556,9 +556,9 @@ Retrieve a list of Interactions for a given [Session](https://www.twilio.com/doc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to fetch. | -**sessionSid** | **string**| The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resource to fetch. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Interaction resource to fetch. | +**ServiceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to fetch. | +**SessionSid** | **string**| The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Interaction resource to fetch. | ### Return type @@ -580,7 +580,7 @@ Name | Type | Description | Notes ## FetchMessageInteraction -> ProxyV1ServiceSessionParticipantMessageInteraction FetchMessageInteraction(ctx, serviceSid, sessionSid, participantSid, sid) +> ProxyV1ServiceSessionParticipantMessageInteraction FetchMessageInteraction(ctx, ServiceSid, SessionSid, ParticipantSid, Sid) @@ -590,10 +590,10 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to fetch. | -**sessionSid** | **string**| The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resource to fetch. | -**participantSid** | **string**| The SID of the [Participant](https://www.twilio.com/docs/proxy/api/participant) resource. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the MessageInteraction resource to fetch. | +**ServiceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to fetch. | +**SessionSid** | **string**| The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resource to fetch. | +**ParticipantSid** | **string**| The SID of the [Participant](https://www.twilio.com/docs/proxy/api/participant) resource. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the MessageInteraction resource to fetch. | ### Return type @@ -615,7 +615,7 @@ Name | Type | Description | Notes ## FetchParticipant -> ProxyV1ServiceSessionParticipant FetchParticipant(ctx, serviceSid, sessionSid, sid) +> ProxyV1ServiceSessionParticipant FetchParticipant(ctx, ServiceSid, SessionSid, Sid) @@ -627,9 +627,9 @@ Fetch a specific Participant. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to fetch. | -**sessionSid** | **string**| The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resource to fetch. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Participant resource to fetch. | +**ServiceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to fetch. | +**SessionSid** | **string**| The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Participant resource to fetch. | ### Return type @@ -651,7 +651,7 @@ Name | Type | Description | Notes ## FetchPhoneNumber -> ProxyV1ServicePhoneNumber FetchPhoneNumber(ctx, serviceSid, sid) +> ProxyV1ServicePhoneNumber FetchPhoneNumber(ctx, ServiceSid, Sid) @@ -663,8 +663,8 @@ Fetch a specific Phone Number. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the PhoneNumber resource to fetch. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the PhoneNumber resource to fetch. | +**ServiceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the PhoneNumber resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the PhoneNumber resource to fetch. | ### Return type @@ -686,7 +686,7 @@ Name | Type | Description | Notes ## FetchService -> ProxyV1Service FetchService(ctx, sid) +> ProxyV1Service FetchService(ctx, Sid) @@ -698,7 +698,7 @@ Fetch a specific Service. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the Service resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Service resource to fetch. | ### Return type @@ -720,7 +720,7 @@ Name | Type | Description | Notes ## FetchSession -> ProxyV1ServiceSession FetchSession(ctx, serviceSid, sid) +> ProxyV1ServiceSession FetchSession(ctx, ServiceSid, Sid) @@ -732,8 +732,8 @@ Fetch a specific Session. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to fetch. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Session resource to fetch. | +**ServiceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Session resource to fetch. | ### Return type @@ -755,7 +755,7 @@ Name | Type | Description | Notes ## FetchShortCode -> ProxyV1ServiceShortCode FetchShortCode(ctx, serviceSid, sid) +> ProxyV1ServiceShortCode FetchShortCode(ctx, ServiceSid, Sid) @@ -767,8 +767,8 @@ Fetch a specific Short Code. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) to fetch the resource from. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the ShortCode resource to fetch. | +**ServiceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) to fetch the resource from. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the ShortCode resource to fetch. | ### Return type @@ -790,7 +790,7 @@ Name | Type | Description | Notes ## ListInteraction -> ProxyV1ServiceSessionInteractionReadResponse ListInteraction(ctx, serviceSid, sessionSid, optional) +> ProxyV1ServiceSessionInteractionReadResponse ListInteraction(ctx, ServiceSid, SessionSid, optional) @@ -802,8 +802,8 @@ Retrieve a list of all Interactions for a Session. A maximum of 100 records will Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) to read the resources from. | -**sessionSid** | **string**| The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) to read the resources from. | +**ServiceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) to read the resources from. | +**SessionSid** | **string**| The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) to read the resources from. | **optional** | ***ListInteractionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -815,7 +815,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -837,7 +837,7 @@ Name | Type | Description | Notes ## ListMessageInteraction -> ProxyV1ServiceSessionParticipantMessageInteractionReadResponse ListMessageInteraction(ctx, serviceSid, sessionSid, participantSid, optional) +> ProxyV1ServiceSessionParticipantMessageInteractionReadResponse ListMessageInteraction(ctx, ServiceSid, SessionSid, ParticipantSid, optional) @@ -847,9 +847,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) to read the resources from. | -**sessionSid** | **string**| The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) to read the resources from. | -**participantSid** | **string**| The SID of the [Participant](https://www.twilio.com/docs/proxy/api/participant) to read the resources from. | +**ServiceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) to read the resources from. | +**SessionSid** | **string**| The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) to read the resources from. | +**ParticipantSid** | **string**| The SID of the [Participant](https://www.twilio.com/docs/proxy/api/participant) to read the resources from. | **optional** | ***ListMessageInteractionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -862,7 +862,7 @@ Name | Type | Description | Notes - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -884,7 +884,7 @@ Name | Type | Description | Notes ## ListParticipant -> ProxyV1ServiceSessionParticipantReadResponse ListParticipant(ctx, serviceSid, sessionSid, optional) +> ProxyV1ServiceSessionParticipantReadResponse ListParticipant(ctx, ServiceSid, SessionSid, optional) @@ -896,8 +896,8 @@ Retrieve a list of all Participants in a Session. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resources to read. | -**sessionSid** | **string**| The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resources to read. | +**ServiceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resources to read. | +**SessionSid** | **string**| The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resources to read. | **optional** | ***ListParticipantOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -909,7 +909,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -931,7 +931,7 @@ Name | Type | Description | Notes ## ListPhoneNumber -> ProxyV1ServicePhoneNumberReadResponse ListPhoneNumber(ctx, serviceSid, optional) +> ProxyV1ServicePhoneNumberReadResponse ListPhoneNumber(ctx, ServiceSid, optional) @@ -943,7 +943,7 @@ Retrieve a list of all Phone Numbers in the Proxy Number Pool for a Service. A m Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the PhoneNumber resources to read. | +**ServiceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the PhoneNumber resources to read. | **optional** | ***ListPhoneNumberOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -954,7 +954,7 @@ Optional parameters are passed through a pointer to a ListPhoneNumberOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -997,7 +997,7 @@ Optional parameters are passed through a pointer to a ListServiceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1019,7 +1019,7 @@ Name | Type | Description | Notes ## ListSession -> ProxyV1ServiceSessionReadResponse ListSession(ctx, serviceSid, optional) +> ProxyV1ServiceSessionReadResponse ListSession(ctx, ServiceSid, optional) @@ -1031,7 +1031,7 @@ Retrieve a list of all Sessions for the Service. A maximum of 100 records will b Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to read. | +**ServiceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to read. | **optional** | ***ListSessionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1042,7 +1042,7 @@ Optional parameters are passed through a pointer to a ListSessionOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1064,7 +1064,7 @@ Name | Type | Description | Notes ## ListShortCode -> ProxyV1ServiceShortCodeReadResponse ListShortCode(ctx, serviceSid, optional) +> ProxyV1ServiceShortCodeReadResponse ListShortCode(ctx, ServiceSid, optional) @@ -1076,7 +1076,7 @@ Retrieve a list of all Short Codes in the Proxy Number Pool for the Service. A m Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) to read the resources from. | +**ServiceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) to read the resources from. | **optional** | ***ListShortCodeOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1087,7 +1087,7 @@ Optional parameters are passed through a pointer to a ListShortCodeOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1109,7 +1109,7 @@ Name | Type | Description | Notes ## UpdatePhoneNumber -> ProxyV1ServicePhoneNumber UpdatePhoneNumber(ctx, serviceSid, sid, optional) +> ProxyV1ServicePhoneNumber UpdatePhoneNumber(ctx, ServiceSid, Sid, optional) @@ -1121,8 +1121,8 @@ Update a specific Proxy Number. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the PhoneNumber resource to update. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the PhoneNumber resource to update. | +**ServiceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the PhoneNumber resource to update. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the PhoneNumber resource to update. | **optional** | ***UpdatePhoneNumberOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1134,7 +1134,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **isReserved** | **optional.Bool**| Whether the phone number should be reserved and not be assigned to a participant using proxy pool logic. See [Reserved Phone Numbers](https://www.twilio.com/docs/proxy/reserved-phone-numbers) for more information. | + **IsReserved** | **optional.Bool**| Whether the phone number should be reserved and not be assigned to a participant using proxy pool logic. See [Reserved Phone Numbers](https://www.twilio.com/docs/proxy/reserved-phone-numbers) for more information. | ### Return type @@ -1156,7 +1156,7 @@ Name | Type | Description | Notes ## UpdateService -> ProxyV1Service UpdateService(ctx, sid, optional) +> ProxyV1Service UpdateService(ctx, Sid, optional) @@ -1168,7 +1168,7 @@ Update a specific Service. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the Service resource to update. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Service resource to update. | **optional** | ***UpdateServiceOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1179,14 +1179,14 @@ Optional parameters are passed through a pointer to a UpdateServiceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **callbackUrl** | **optional.String**| The URL we should call when the interaction status changes. | - **chatInstanceSid** | **optional.String**| The SID of the Chat Service Instance managed by Proxy Service. The Chat Service enables Proxy to forward SMS and channel messages to this chat instance. This is a one-to-one relationship. | - **defaultTtl** | **optional.Int32**| The default `ttl` value to set for Sessions created in the Service. The TTL (time to live) is measured in seconds after the Session's last create or last Interaction. The default value of `0` indicates an unlimited Session length. You can override a Session's default TTL value by setting its `ttl` value. | - **geoMatchLevel** | **optional.String**| Where a proxy number must be located relative to the participant identifier. Can be: `country`, `area-code`, or `extended-area-code`. The default value is `country` and more specific areas than `country` are only available in North America. | - **interceptCallbackUrl** | **optional.String**| The URL we call on each interaction. If we receive a 403 status, we block the interaction; otherwise the interaction continues. | - **numberSelectionBehavior** | **optional.String**| The preference for Proxy Number selection in the Service instance. Can be: `prefer-sticky` or `avoid-sticky` and the default is `prefer-sticky`. `prefer-sticky` means that we will try and select the same Proxy Number for a given participant if they have previous [Sessions](https://www.twilio.com/docs/proxy/api/session), but we will not fail if that Proxy Number cannot be used. `avoid-sticky` means that we will try to use different Proxy Numbers as long as that is possible within a given pool rather than try and use a previously assigned number. | - **outOfSessionCallbackUrl** | **optional.String**| The URL we should call when an inbound call or SMS action occurs on a closed or non-existent Session. If your server (or a Twilio [function](https://www.twilio.com/functions)) responds with valid [TwiML](https://www.twilio.com/docs/voice/twiml), we will process it. This means it is possible, for example, to play a message for a call, send an automated text message response, or redirect a call to another Phone Number. See [Out-of-Session Callback Response Guide](https://www.twilio.com/docs/proxy/out-session-callback-response-guide) for more information. | - **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. This value must be 191 characters or fewer in length and be unique. **This value should not have PII.** | + **CallbackUrl** | **optional.String**| The URL we should call when the interaction status changes. | + **ChatInstanceSid** | **optional.String**| The SID of the Chat Service Instance managed by Proxy Service. The Chat Service enables Proxy to forward SMS and channel messages to this chat instance. This is a one-to-one relationship. | + **DefaultTtl** | **optional.Int32**| The default `ttl` value to set for Sessions created in the Service. The TTL (time to live) is measured in seconds after the Session's last create or last Interaction. The default value of `0` indicates an unlimited Session length. You can override a Session's default TTL value by setting its `ttl` value. | + **GeoMatchLevel** | **optional.String**| Where a proxy number must be located relative to the participant identifier. Can be: `country`, `area-code`, or `extended-area-code`. The default value is `country` and more specific areas than `country` are only available in North America. | + **InterceptCallbackUrl** | **optional.String**| The URL we call on each interaction. If we receive a 403 status, we block the interaction; otherwise the interaction continues. | + **NumberSelectionBehavior** | **optional.String**| The preference for Proxy Number selection in the Service instance. Can be: `prefer-sticky` or `avoid-sticky` and the default is `prefer-sticky`. `prefer-sticky` means that we will try and select the same Proxy Number for a given participant if they have previous [Sessions](https://www.twilio.com/docs/proxy/api/session), but we will not fail if that Proxy Number cannot be used. `avoid-sticky` means that we will try to use different Proxy Numbers as long as that is possible within a given pool rather than try and use a previously assigned number. | + **OutOfSessionCallbackUrl** | **optional.String**| The URL we should call when an inbound call or SMS action occurs on a closed or non-existent Session. If your server (or a Twilio [function](https://www.twilio.com/functions)) responds with valid [TwiML](https://www.twilio.com/docs/voice/twiml), we will process it. This means it is possible, for example, to play a message for a call, send an automated text message response, or redirect a call to another Phone Number. See [Out-of-Session Callback Response Guide](https://www.twilio.com/docs/proxy/out-session-callback-response-guide) for more information. | + **UniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. This value must be 191 characters or fewer in length and be unique. **This value should not have PII.** | ### Return type @@ -1208,7 +1208,7 @@ Name | Type | Description | Notes ## UpdateSession -> ProxyV1ServiceSession UpdateSession(ctx, serviceSid, sid, optional) +> ProxyV1ServiceSession UpdateSession(ctx, ServiceSid, Sid, optional) @@ -1220,8 +1220,8 @@ Update a specific Session. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to update. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Session resource to update. | +**ServiceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to update. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Session resource to update. | **optional** | ***UpdateSessionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1233,10 +1233,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **dateExpiry** | **optional.Time**| The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date when the Session should expire. If this is value is present, it overrides the `ttl` value. | - **failOnParticipantConflict** | **optional.Bool**| [Experimental] For accounts with the ProxyAllowParticipantConflict account flag, setting to true enables per-request opt-in to allowing Proxy to return a 400 error (Twilio error code 80604) when a request to set a Session to in-progress would cause Participants with the same Identifier/ProxyIdentifier pair to be active in multiple Sessions. If not provided, requests will be allowed to succeed, and a Debugger notification (80801) will be emitted. Having multiple, active Participants with the same Identifier/ProxyIdentifier pair causes calls and messages from affected Participants to be routed incorrectly. Please note, the default behavior for accounts without the ProxyAllowParticipantConflict flag is to reject the request as described. This will eventually be the default for all accounts. | - **status** | **optional.String**| The new status of the resource. Can be: `in-progress` to re-open a session or `closed` to close a session. | - **ttl** | **optional.Int32**| The time, in seconds, when the session will expire. The time is measured from the last Session create or the Session's last Interaction. | + **DateExpiry** | **optional.Time**| The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date when the Session should expire. If this is value is present, it overrides the `ttl` value. | + **FailOnParticipantConflict** | **optional.Bool**| [Experimental] For accounts with the ProxyAllowParticipantConflict account flag, setting to true enables per-request opt-in to allowing Proxy to return a 400 error (Twilio error code 80604) when a request to set a Session to in-progress would cause Participants with the same Identifier/ProxyIdentifier pair to be active in multiple Sessions. If not provided, requests will be allowed to succeed, and a Debugger notification (80801) will be emitted. Having multiple, active Participants with the same Identifier/ProxyIdentifier pair causes calls and messages from affected Participants to be routed incorrectly. Please note, the default behavior for accounts without the ProxyAllowParticipantConflict flag is to reject the request as described. This will eventually be the default for all accounts. | + **Status** | **optional.String**| The new status of the resource. Can be: `in-progress` to re-open a session or `closed` to close a session. | + **Ttl** | **optional.Int32**| The time, in seconds, when the session will expire. The time is measured from the last Session create or the Session's last Interaction. | ### Return type @@ -1258,7 +1258,7 @@ Name | Type | Description | Notes ## UpdateShortCode -> ProxyV1ServiceShortCode UpdateShortCode(ctx, serviceSid, sid, optional) +> ProxyV1ServiceShortCode UpdateShortCode(ctx, ServiceSid, Sid, optional) @@ -1270,8 +1270,8 @@ Update a specific Short Code. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to update. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the ShortCode resource to update. | +**ServiceSid** | **string**| The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to update. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the ShortCode resource to update. | **optional** | ***UpdateShortCodeOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1283,7 +1283,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **isReserved** | **optional.Bool**| Whether the short code should be reserved and not be assigned to a participant using proxy pool logic. See [Reserved Phone Numbers](https://www.twilio.com/docs/proxy/reserved-phone-numbers) for more information. | + **IsReserved** | **optional.Bool**| Whether the short code should be reserved and not be assigned to a participant using proxy pool logic. See [Reserved Phone Numbers](https://www.twilio.com/docs/proxy/reserved-phone-numbers) for more information. | ### Return type diff --git a/rest/proxy/v1/model_proxy_v1_service.go b/rest/proxy/v1/model_proxy_v1_service.go index 12092e92e..c9568c632 100644 --- a/rest/proxy/v1/model_proxy_v1_service.go +++ b/rest/proxy/v1/model_proxy_v1_service.go @@ -14,18 +14,18 @@ import ( ) // ProxyV1Service struct for ProxyV1Service type ProxyV1Service struct { - AccountSid string `json:"account_sid,omitempty"` - CallbackUrl string `json:"callback_url,omitempty"` - ChatInstanceSid string `json:"chat_instance_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - DefaultTtl int32 `json:"default_ttl,omitempty"` - GeoMatchLevel string `json:"geo_match_level,omitempty"` - InterceptCallbackUrl string `json:"intercept_callback_url,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - NumberSelectionBehavior string `json:"number_selection_behavior,omitempty"` - OutOfSessionCallbackUrl string `json:"out_of_session_callback_url,omitempty"` - Sid string `json:"sid,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + CallbackUrl string `json:"CallbackUrl,omitempty"` + ChatInstanceSid string `json:"ChatInstanceSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + DefaultTtl int32 `json:"DefaultTtl,omitempty"` + GeoMatchLevel string `json:"GeoMatchLevel,omitempty"` + InterceptCallbackUrl string `json:"InterceptCallbackUrl,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + NumberSelectionBehavior string `json:"NumberSelectionBehavior,omitempty"` + OutOfSessionCallbackUrl string `json:"OutOfSessionCallbackUrl,omitempty"` + Sid string `json:"Sid,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/proxy/v1/model_proxy_v1_service_phone_number.go b/rest/proxy/v1/model_proxy_v1_service_phone_number.go index a7e6d3bba..a454e47d0 100644 --- a/rest/proxy/v1/model_proxy_v1_service_phone_number.go +++ b/rest/proxy/v1/model_proxy_v1_service_phone_number.go @@ -14,16 +14,16 @@ import ( ) // ProxyV1ServicePhoneNumber struct for ProxyV1ServicePhoneNumber type ProxyV1ServicePhoneNumber struct { - AccountSid string `json:"account_sid,omitempty"` - Capabilities map[string]interface{} `json:"capabilities,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - InUse int32 `json:"in_use,omitempty"` - IsReserved bool `json:"is_reserved,omitempty"` - IsoCountry string `json:"iso_country,omitempty"` - PhoneNumber string `json:"phone_number,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Capabilities map[string]interface{} `json:"Capabilities,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + InUse int32 `json:"InUse,omitempty"` + IsReserved bool `json:"IsReserved,omitempty"` + IsoCountry string `json:"IsoCountry,omitempty"` + PhoneNumber string `json:"PhoneNumber,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/proxy/v1/model_proxy_v1_service_phone_number_read_response.go b/rest/proxy/v1/model_proxy_v1_service_phone_number_read_response.go index 53e1f4783..b7b63f042 100644 --- a/rest/proxy/v1/model_proxy_v1_service_phone_number_read_response.go +++ b/rest/proxy/v1/model_proxy_v1_service_phone_number_read_response.go @@ -11,6 +11,6 @@ package openapi // ProxyV1ServicePhoneNumberReadResponse struct for ProxyV1ServicePhoneNumberReadResponse type ProxyV1ServicePhoneNumberReadResponse struct { - Meta ProxyV1ServiceReadResponseMeta `json:"meta,omitempty"` - PhoneNumbers []ProxyV1ServicePhoneNumber `json:"phone_numbers,omitempty"` + Meta ProxyV1ServiceReadResponseMeta `json:"Meta,omitempty"` + PhoneNumbers []ProxyV1ServicePhoneNumber `json:"PhoneNumbers,omitempty"` } diff --git a/rest/proxy/v1/model_proxy_v1_service_read_response.go b/rest/proxy/v1/model_proxy_v1_service_read_response.go index 4a5e7b96e..89f49670d 100644 --- a/rest/proxy/v1/model_proxy_v1_service_read_response.go +++ b/rest/proxy/v1/model_proxy_v1_service_read_response.go @@ -11,6 +11,6 @@ package openapi // ProxyV1ServiceReadResponse struct for ProxyV1ServiceReadResponse type ProxyV1ServiceReadResponse struct { - Meta ProxyV1ServiceReadResponseMeta `json:"meta,omitempty"` - Services []ProxyV1Service `json:"services,omitempty"` + Meta ProxyV1ServiceReadResponseMeta `json:"Meta,omitempty"` + Services []ProxyV1Service `json:"Services,omitempty"` } diff --git a/rest/proxy/v1/model_proxy_v1_service_read_response_meta.go b/rest/proxy/v1/model_proxy_v1_service_read_response_meta.go index f3e767054..c37b6c91a 100644 --- a/rest/proxy/v1/model_proxy_v1_service_read_response_meta.go +++ b/rest/proxy/v1/model_proxy_v1_service_read_response_meta.go @@ -11,11 +11,11 @@ package openapi // ProxyV1ServiceReadResponseMeta struct for ProxyV1ServiceReadResponseMeta type ProxyV1ServiceReadResponseMeta struct { - FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` - NextPageUrl string `json:"next_page_url,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUrl string `json:"previous_page_url,omitempty"` - Url string `json:"url,omitempty"` + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/proxy/v1/model_proxy_v1_service_session.go b/rest/proxy/v1/model_proxy_v1_service_session.go index ac5f98ace..2a13a0848 100644 --- a/rest/proxy/v1/model_proxy_v1_service_session.go +++ b/rest/proxy/v1/model_proxy_v1_service_session.go @@ -14,20 +14,20 @@ import ( ) // ProxyV1ServiceSession struct for ProxyV1ServiceSession type ProxyV1ServiceSession struct { - AccountSid string `json:"account_sid,omitempty"` - ClosedReason string `json:"closed_reason,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateEnded time.Time `json:"date_ended,omitempty"` - DateExpiry time.Time `json:"date_expiry,omitempty"` - DateLastInteraction time.Time `json:"date_last_interaction,omitempty"` - DateStarted time.Time `json:"date_started,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Mode string `json:"mode,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - Ttl int32 `json:"ttl,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ClosedReason string `json:"ClosedReason,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateEnded time.Time `json:"DateEnded,omitempty"` + DateExpiry time.Time `json:"DateExpiry,omitempty"` + DateLastInteraction time.Time `json:"DateLastInteraction,omitempty"` + DateStarted time.Time `json:"DateStarted,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Mode string `json:"Mode,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Status string `json:"Status,omitempty"` + Ttl int32 `json:"Ttl,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/proxy/v1/model_proxy_v1_service_session_interaction.go b/rest/proxy/v1/model_proxy_v1_service_session_interaction.go index d6afc136c..b16be4513 100644 --- a/rest/proxy/v1/model_proxy_v1_service_session_interaction.go +++ b/rest/proxy/v1/model_proxy_v1_service_session_interaction.go @@ -14,23 +14,23 @@ import ( ) // ProxyV1ServiceSessionInteraction struct for ProxyV1ServiceSessionInteraction type ProxyV1ServiceSessionInteraction struct { - AccountSid string `json:"account_sid,omitempty"` - Data string `json:"data,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - InboundParticipantSid string `json:"inbound_participant_sid,omitempty"` - InboundResourceSid string `json:"inbound_resource_sid,omitempty"` - InboundResourceStatus string `json:"inbound_resource_status,omitempty"` - InboundResourceType string `json:"inbound_resource_type,omitempty"` - InboundResourceUrl string `json:"inbound_resource_url,omitempty"` - OutboundParticipantSid string `json:"outbound_participant_sid,omitempty"` - OutboundResourceSid string `json:"outbound_resource_sid,omitempty"` - OutboundResourceStatus string `json:"outbound_resource_status,omitempty"` - OutboundResourceType string `json:"outbound_resource_type,omitempty"` - OutboundResourceUrl string `json:"outbound_resource_url,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - SessionSid string `json:"session_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Type string `json:"type,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Data string `json:"Data,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + InboundParticipantSid string `json:"InboundParticipantSid,omitempty"` + InboundResourceSid string `json:"InboundResourceSid,omitempty"` + InboundResourceStatus string `json:"InboundResourceStatus,omitempty"` + InboundResourceType string `json:"InboundResourceType,omitempty"` + InboundResourceUrl string `json:"InboundResourceUrl,omitempty"` + OutboundParticipantSid string `json:"OutboundParticipantSid,omitempty"` + OutboundResourceSid string `json:"OutboundResourceSid,omitempty"` + OutboundResourceStatus string `json:"OutboundResourceStatus,omitempty"` + OutboundResourceType string `json:"OutboundResourceType,omitempty"` + OutboundResourceUrl string `json:"OutboundResourceUrl,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + SessionSid string `json:"SessionSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Type string `json:"Type,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/proxy/v1/model_proxy_v1_service_session_interaction_read_response.go b/rest/proxy/v1/model_proxy_v1_service_session_interaction_read_response.go index 909c53619..7c099ba72 100644 --- a/rest/proxy/v1/model_proxy_v1_service_session_interaction_read_response.go +++ b/rest/proxy/v1/model_proxy_v1_service_session_interaction_read_response.go @@ -11,6 +11,6 @@ package openapi // ProxyV1ServiceSessionInteractionReadResponse struct for ProxyV1ServiceSessionInteractionReadResponse type ProxyV1ServiceSessionInteractionReadResponse struct { - Interactions []ProxyV1ServiceSessionInteraction `json:"interactions,omitempty"` - Meta ProxyV1ServiceReadResponseMeta `json:"meta,omitempty"` + Interactions []ProxyV1ServiceSessionInteraction `json:"Interactions,omitempty"` + Meta ProxyV1ServiceReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/proxy/v1/model_proxy_v1_service_session_participant.go b/rest/proxy/v1/model_proxy_v1_service_session_participant.go index 93e1edf4b..60ddef012 100644 --- a/rest/proxy/v1/model_proxy_v1_service_session_participant.go +++ b/rest/proxy/v1/model_proxy_v1_service_session_participant.go @@ -14,17 +14,17 @@ import ( ) // ProxyV1ServiceSessionParticipant struct for ProxyV1ServiceSessionParticipant type ProxyV1ServiceSessionParticipant struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateDeleted time.Time `json:"date_deleted,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Identifier string `json:"identifier,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - ProxyIdentifier string `json:"proxy_identifier,omitempty"` - ProxyIdentifierSid string `json:"proxy_identifier_sid,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - SessionSid string `json:"session_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateDeleted time.Time `json:"DateDeleted,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Identifier string `json:"Identifier,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + ProxyIdentifier string `json:"ProxyIdentifier,omitempty"` + ProxyIdentifierSid string `json:"ProxyIdentifierSid,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + SessionSid string `json:"SessionSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/proxy/v1/model_proxy_v1_service_session_participant_message_interaction.go b/rest/proxy/v1/model_proxy_v1_service_session_participant_message_interaction.go index 0c679ce4a..8f2e0ee98 100644 --- a/rest/proxy/v1/model_proxy_v1_service_session_participant_message_interaction.go +++ b/rest/proxy/v1/model_proxy_v1_service_session_participant_message_interaction.go @@ -14,24 +14,24 @@ import ( ) // ProxyV1ServiceSessionParticipantMessageInteraction struct for ProxyV1ServiceSessionParticipantMessageInteraction type ProxyV1ServiceSessionParticipantMessageInteraction struct { - AccountSid string `json:"account_sid,omitempty"` - Data string `json:"data,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - InboundParticipantSid string `json:"inbound_participant_sid,omitempty"` - InboundResourceSid string `json:"inbound_resource_sid,omitempty"` - InboundResourceStatus string `json:"inbound_resource_status,omitempty"` - InboundResourceType string `json:"inbound_resource_type,omitempty"` - InboundResourceUrl string `json:"inbound_resource_url,omitempty"` - OutboundParticipantSid string `json:"outbound_participant_sid,omitempty"` - OutboundResourceSid string `json:"outbound_resource_sid,omitempty"` - OutboundResourceStatus string `json:"outbound_resource_status,omitempty"` - OutboundResourceType string `json:"outbound_resource_type,omitempty"` - OutboundResourceUrl string `json:"outbound_resource_url,omitempty"` - ParticipantSid string `json:"participant_sid,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - SessionSid string `json:"session_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Type string `json:"type,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Data string `json:"Data,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + InboundParticipantSid string `json:"InboundParticipantSid,omitempty"` + InboundResourceSid string `json:"InboundResourceSid,omitempty"` + InboundResourceStatus string `json:"InboundResourceStatus,omitempty"` + InboundResourceType string `json:"InboundResourceType,omitempty"` + InboundResourceUrl string `json:"InboundResourceUrl,omitempty"` + OutboundParticipantSid string `json:"OutboundParticipantSid,omitempty"` + OutboundResourceSid string `json:"OutboundResourceSid,omitempty"` + OutboundResourceStatus string `json:"OutboundResourceStatus,omitempty"` + OutboundResourceType string `json:"OutboundResourceType,omitempty"` + OutboundResourceUrl string `json:"OutboundResourceUrl,omitempty"` + ParticipantSid string `json:"ParticipantSid,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + SessionSid string `json:"SessionSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Type string `json:"Type,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/proxy/v1/model_proxy_v1_service_session_participant_message_interaction_read_response.go b/rest/proxy/v1/model_proxy_v1_service_session_participant_message_interaction_read_response.go index 6a190e3cc..8611a13f7 100644 --- a/rest/proxy/v1/model_proxy_v1_service_session_participant_message_interaction_read_response.go +++ b/rest/proxy/v1/model_proxy_v1_service_session_participant_message_interaction_read_response.go @@ -11,6 +11,6 @@ package openapi // ProxyV1ServiceSessionParticipantMessageInteractionReadResponse struct for ProxyV1ServiceSessionParticipantMessageInteractionReadResponse type ProxyV1ServiceSessionParticipantMessageInteractionReadResponse struct { - Interactions []ProxyV1ServiceSessionParticipantMessageInteraction `json:"interactions,omitempty"` - Meta ProxyV1ServiceReadResponseMeta `json:"meta,omitempty"` + Interactions []ProxyV1ServiceSessionParticipantMessageInteraction `json:"Interactions,omitempty"` + Meta ProxyV1ServiceReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/proxy/v1/model_proxy_v1_service_session_participant_read_response.go b/rest/proxy/v1/model_proxy_v1_service_session_participant_read_response.go index 12746691f..cfc649656 100644 --- a/rest/proxy/v1/model_proxy_v1_service_session_participant_read_response.go +++ b/rest/proxy/v1/model_proxy_v1_service_session_participant_read_response.go @@ -11,6 +11,6 @@ package openapi // ProxyV1ServiceSessionParticipantReadResponse struct for ProxyV1ServiceSessionParticipantReadResponse type ProxyV1ServiceSessionParticipantReadResponse struct { - Meta ProxyV1ServiceReadResponseMeta `json:"meta,omitempty"` - Participants []ProxyV1ServiceSessionParticipant `json:"participants,omitempty"` + Meta ProxyV1ServiceReadResponseMeta `json:"Meta,omitempty"` + Participants []ProxyV1ServiceSessionParticipant `json:"Participants,omitempty"` } diff --git a/rest/proxy/v1/model_proxy_v1_service_session_read_response.go b/rest/proxy/v1/model_proxy_v1_service_session_read_response.go index 53339ebbc..28d5c960b 100644 --- a/rest/proxy/v1/model_proxy_v1_service_session_read_response.go +++ b/rest/proxy/v1/model_proxy_v1_service_session_read_response.go @@ -11,6 +11,6 @@ package openapi // ProxyV1ServiceSessionReadResponse struct for ProxyV1ServiceSessionReadResponse type ProxyV1ServiceSessionReadResponse struct { - Meta ProxyV1ServiceReadResponseMeta `json:"meta,omitempty"` - Sessions []ProxyV1ServiceSession `json:"sessions,omitempty"` + Meta ProxyV1ServiceReadResponseMeta `json:"Meta,omitempty"` + Sessions []ProxyV1ServiceSession `json:"Sessions,omitempty"` } diff --git a/rest/proxy/v1/model_proxy_v1_service_short_code.go b/rest/proxy/v1/model_proxy_v1_service_short_code.go index ecd47f711..8e3087404 100644 --- a/rest/proxy/v1/model_proxy_v1_service_short_code.go +++ b/rest/proxy/v1/model_proxy_v1_service_short_code.go @@ -14,14 +14,14 @@ import ( ) // ProxyV1ServiceShortCode struct for ProxyV1ServiceShortCode type ProxyV1ServiceShortCode struct { - AccountSid string `json:"account_sid,omitempty"` - Capabilities map[string]interface{} `json:"capabilities,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - IsReserved bool `json:"is_reserved,omitempty"` - IsoCountry string `json:"iso_country,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - ShortCode string `json:"short_code,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Capabilities map[string]interface{} `json:"Capabilities,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + IsReserved bool `json:"IsReserved,omitempty"` + IsoCountry string `json:"IsoCountry,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + ShortCode string `json:"ShortCode,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/proxy/v1/model_proxy_v1_service_short_code_read_response.go b/rest/proxy/v1/model_proxy_v1_service_short_code_read_response.go index 26345c796..f32eea231 100644 --- a/rest/proxy/v1/model_proxy_v1_service_short_code_read_response.go +++ b/rest/proxy/v1/model_proxy_v1_service_short_code_read_response.go @@ -11,6 +11,6 @@ package openapi // ProxyV1ServiceShortCodeReadResponse struct for ProxyV1ServiceShortCodeReadResponse type ProxyV1ServiceShortCodeReadResponse struct { - Meta ProxyV1ServiceReadResponseMeta `json:"meta,omitempty"` - ShortCodes []ProxyV1ServiceShortCode `json:"short_codes,omitempty"` + Meta ProxyV1ServiceReadResponseMeta `json:"Meta,omitempty"` + ShortCodes []ProxyV1ServiceShortCode `json:"ShortCodes,omitempty"` } diff --git a/rest/serverless/v1/api_default.go b/rest/serverless/v1/api_default.go index 2d288c22d..c289b0459 100644 --- a/rest/serverless/v1/api_default.go +++ b/rest/serverless/v1/api_default.go @@ -15,6 +15,8 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" + "time" ) type DefaultApiService struct { @@ -36,20 +38,21 @@ type CreateAssetParams struct { /* CreateAsset Method for CreateAsset Create a new Asset resource. - * @param serviceSid The SID of the Service to create the Asset resource under. + * @param ServiceSid The SID of the Service to create the Asset resource under. * @param optional nil or *CreateAssetOpts - Optional Parameters: * @param "FriendlyName" (string) - A descriptive string that you create to describe the Asset resource. It can be a maximum of 255 characters. @return ServerlessV1ServiceAsset */ -func (c *DefaultApiService) CreateAsset(serviceSid string, params *CreateAssetParams) (*ServerlessV1ServiceAsset, error) { +func (c *DefaultApiService) CreateAsset(ServiceSid string, params *CreateAssetParams) (*ServerlessV1ServiceAsset, error) { path := "/v1/Services/{ServiceSid}/Assets" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -77,28 +80,29 @@ type CreateBuildParams struct { /* CreateBuild Method for CreateBuild Create a new Build resource. At least one function version or asset version is required. - * @param serviceSid The SID of the Service to create the Build resource under. + * @param ServiceSid The SID of the Service to create the Build resource under. * @param optional nil or *CreateBuildOpts - Optional Parameters: * @param "AssetVersions" ([]string) - The list of Asset Version resource SIDs to include in the Build. * @param "Dependencies" (string) - A list of objects that describe the Dependencies included in the Build. Each object contains the `name` and `version` of the dependency. * @param "FunctionVersions" ([]string) - The list of the Function Version resource SIDs to include in the Build. @return ServerlessV1ServiceBuild */ -func (c *DefaultApiService) CreateBuild(serviceSid string, params *CreateBuildParams) (*ServerlessV1ServiceBuild, error) { +func (c *DefaultApiService) CreateBuild(ServiceSid string, params *CreateBuildParams) (*ServerlessV1ServiceBuild, error) { path := "/v1/Services/{ServiceSid}/Builds" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.AssetVersions != nil { - data.Set("AssetVersions", *params.AssetVersions) + data.Set("AssetVersions", strings.Join(*params.AssetVersions, ",")) } if params != nil && params.Dependencies != nil { - data.Set("Dependencies", *params.Dependencies) + data.Set("Dependencies", *params.Dependencies) } if params != nil && params.FunctionVersions != nil { - data.Set("FunctionVersions", *params.FunctionVersions) + data.Set("FunctionVersions", strings.Join(*params.FunctionVersions, ",")) } @@ -124,22 +128,23 @@ type CreateDeploymentParams struct { /* CreateDeployment Method for CreateDeployment Create a new Deployment. - * @param serviceSid The SID of the Service to create the Deployment resource under. - * @param environmentSid The SID of the Environment for the Deployment. + * @param ServiceSid The SID of the Service to create the Deployment resource under. + * @param EnvironmentSid The SID of the Environment for the Deployment. * @param optional nil or *CreateDeploymentOpts - Optional Parameters: * @param "BuildSid" (string) - The SID of the Build for the Deployment. @return ServerlessV1ServiceEnvironmentDeployment */ -func (c *DefaultApiService) CreateDeployment(serviceSid string, environmentSid string, params *CreateDeploymentParams) (*ServerlessV1ServiceEnvironmentDeployment, error) { +func (c *DefaultApiService) CreateDeployment(ServiceSid string, EnvironmentSid string, params *CreateDeploymentParams) (*ServerlessV1ServiceEnvironmentDeployment, error) { path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"EnvironmentSid"+"}", EnvironmentSid, -1) + data := url.Values{} headers := 0 if params != nil && params.BuildSid != nil { - data.Set("BuildSid", *params.BuildSid) + data.Set("BuildSid", *params.BuildSid) } @@ -166,24 +171,25 @@ type CreateEnvironmentParams struct { /* CreateEnvironment Method for CreateEnvironment Create a new environment. - * @param serviceSid The SID of the Service to create the Environment resource under. + * @param ServiceSid The SID of the Service to create the Environment resource under. * @param optional nil or *CreateEnvironmentOpts - Optional Parameters: * @param "DomainSuffix" (string) - A URL-friendly name that represents the environment and forms part of the domain name. It can be a maximum of 16 characters. * @param "UniqueName" (string) - A user-defined string that uniquely identifies the Environment resource. It can be a maximum of 100 characters. @return ServerlessV1ServiceEnvironment */ -func (c *DefaultApiService) CreateEnvironment(serviceSid string, params *CreateEnvironmentParams) (*ServerlessV1ServiceEnvironment, error) { +func (c *DefaultApiService) CreateEnvironment(ServiceSid string, params *CreateEnvironmentParams) (*ServerlessV1ServiceEnvironment, error) { path := "/v1/Services/{ServiceSid}/Environments" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.DomainSuffix != nil { - data.Set("DomainSuffix", *params.DomainSuffix) + data.Set("DomainSuffix", *params.DomainSuffix) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -209,20 +215,21 @@ type CreateFunctionParams struct { /* CreateFunction Method for CreateFunction Create a new Function resource. - * @param serviceSid The SID of the Service to create the Function resource under. + * @param ServiceSid The SID of the Service to create the Function resource under. * @param optional nil or *CreateFunctionOpts - Optional Parameters: * @param "FriendlyName" (string) - A descriptive string that you create to describe the Function resource. It can be a maximum of 255 characters. @return ServerlessV1ServiceFunction */ -func (c *DefaultApiService) CreateFunction(serviceSid string, params *CreateFunctionParams) (*ServerlessV1ServiceFunction, error) { +func (c *DefaultApiService) CreateFunction(ServiceSid string, params *CreateFunctionParams) (*ServerlessV1ServiceFunction, error) { path := "/v1/Services/{ServiceSid}/Functions" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -261,20 +268,21 @@ Create a new Service resource. func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*ServerlessV1Service, error) { path := "/v1/Services" + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.IncludeCredentials != nil { - data.Set("IncludeCredentials", string(*params.IncludeCredentials)) + data.Set("IncludeCredentials", fmt.Sprint(*params.IncludeCredentials)) } if params != nil && params.UiEditable != nil { - data.Set("UiEditable", string(*params.UiEditable)) + data.Set("UiEditable", fmt.Sprint(*params.UiEditable)) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -301,26 +309,27 @@ type CreateVariableParams struct { /* CreateVariable Method for CreateVariable Create a new Variable. - * @param serviceSid The SID of the Service to create the Variable resource under. - * @param environmentSid The SID of the Environment in which the Variable resource exists. + * @param ServiceSid The SID of the Service to create the Variable resource under. + * @param EnvironmentSid The SID of the Environment in which the Variable resource exists. * @param optional nil or *CreateVariableOpts - Optional Parameters: * @param "Key" (string) - A string by which the Variable resource can be referenced. It can be a maximum of 128 characters. * @param "Value" (string) - A string that contains the actual value of the Variable. It can be a maximum of 450 bytes in size. @return ServerlessV1ServiceEnvironmentVariable */ -func (c *DefaultApiService) CreateVariable(serviceSid string, environmentSid string, params *CreateVariableParams) (*ServerlessV1ServiceEnvironmentVariable, error) { +func (c *DefaultApiService) CreateVariable(ServiceSid string, EnvironmentSid string, params *CreateVariableParams) (*ServerlessV1ServiceEnvironmentVariable, error) { path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"EnvironmentSid"+"}", EnvironmentSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Key != nil { - data.Set("Key", *params.Key) + data.Set("Key", *params.Key) } if params != nil && params.Value != nil { - data.Set("Value", *params.Value) + data.Set("Value", *params.Value) } @@ -342,15 +351,16 @@ func (c *DefaultApiService) CreateVariable(serviceSid string, environmentSid str /* DeleteAsset Method for DeleteAsset Delete an Asset resource. - * @param serviceSid The SID of the Service to delete the Asset resource from. - * @param sid The SID that identifies the Asset resource to delete. + * @param ServiceSid The SID of the Service to delete the Asset resource from. + * @param Sid The SID that identifies the Asset resource to delete. */ -func (c *DefaultApiService) DeleteAsset(serviceSid string, sid string) (error) { +func (c *DefaultApiService) DeleteAsset(ServiceSid string, Sid string) (error) { path := "/v1/Services/{ServiceSid}/Assets/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -368,15 +378,16 @@ func (c *DefaultApiService) DeleteAsset(serviceSid string, sid string) (error) { /* DeleteBuild Method for DeleteBuild Delete a Build resource. - * @param serviceSid The SID of the Service to delete the Build resource from. - * @param sid The SID of the Build resource to delete. + * @param ServiceSid The SID of the Service to delete the Build resource from. + * @param Sid The SID of the Build resource to delete. */ -func (c *DefaultApiService) DeleteBuild(serviceSid string, sid string) (error) { +func (c *DefaultApiService) DeleteBuild(ServiceSid string, Sid string) (error) { path := "/v1/Services/{ServiceSid}/Builds/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -394,15 +405,16 @@ func (c *DefaultApiService) DeleteBuild(serviceSid string, sid string) (error) { /* DeleteEnvironment Method for DeleteEnvironment Delete a specific environment. - * @param serviceSid The SID of the Service to delete the Environment resource from. - * @param sid The SID of the Environment resource to delete. + * @param ServiceSid The SID of the Service to delete the Environment resource from. + * @param Sid The SID of the Environment resource to delete. */ -func (c *DefaultApiService) DeleteEnvironment(serviceSid string, sid string) (error) { +func (c *DefaultApiService) DeleteEnvironment(ServiceSid string, Sid string) (error) { path := "/v1/Services/{ServiceSid}/Environments/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -420,15 +432,16 @@ func (c *DefaultApiService) DeleteEnvironment(serviceSid string, sid string) (er /* DeleteFunction Method for DeleteFunction Delete a Function resource. - * @param serviceSid The SID of the Service to delete the Function resource from. - * @param sid The SID of the Function resource to delete. + * @param ServiceSid The SID of the Service to delete the Function resource from. + * @param Sid The SID of the Function resource to delete. */ -func (c *DefaultApiService) DeleteFunction(serviceSid string, sid string) (error) { +func (c *DefaultApiService) DeleteFunction(ServiceSid string, Sid string) (error) { path := "/v1/Services/{ServiceSid}/Functions/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -446,13 +459,14 @@ func (c *DefaultApiService) DeleteFunction(serviceSid string, sid string) (error /* DeleteService Method for DeleteService Delete a Service resource. - * @param sid The `sid` or `unique_name` of the Service resource to delete. + * @param Sid The `sid` or `unique_name` of the Service resource to delete. */ -func (c *DefaultApiService) DeleteService(sid string) (error) { +func (c *DefaultApiService) DeleteService(Sid string) (error) { path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -470,17 +484,18 @@ func (c *DefaultApiService) DeleteService(sid string) (error) { /* DeleteVariable Method for DeleteVariable Delete a specific Variable. - * @param serviceSid The SID of the Service to delete the Variable resource from. - * @param environmentSid The SID of the Environment with the Variables to delete. - * @param sid The SID of the Variable resource to delete. + * @param ServiceSid The SID of the Service to delete the Variable resource from. + * @param EnvironmentSid The SID of the Environment with the Variables to delete. + * @param Sid The SID of the Variable resource to delete. */ -func (c *DefaultApiService) DeleteVariable(serviceSid string, environmentSid string, sid string) (error) { +func (c *DefaultApiService) DeleteVariable(ServiceSid string, EnvironmentSid string, Sid string) (error) { path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"EnvironmentSid"+"}", EnvironmentSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -498,16 +513,17 @@ func (c *DefaultApiService) DeleteVariable(serviceSid string, environmentSid str /* FetchAsset Method for FetchAsset Retrieve a specific Asset resource. - * @param serviceSid The SID of the Service to fetch the Asset resource from. - * @param sid The SID that identifies the Asset resource to fetch. + * @param ServiceSid The SID of the Service to fetch the Asset resource from. + * @param Sid The SID that identifies the Asset resource to fetch. @return ServerlessV1ServiceAsset */ -func (c *DefaultApiService) FetchAsset(serviceSid string, sid string) (*ServerlessV1ServiceAsset, error) { +func (c *DefaultApiService) FetchAsset(ServiceSid string, Sid string) (*ServerlessV1ServiceAsset, error) { path := "/v1/Services/{ServiceSid}/Assets/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -530,18 +546,19 @@ func (c *DefaultApiService) FetchAsset(serviceSid string, sid string) (*Serverle /* FetchAssetVersion Method for FetchAssetVersion Retrieve a specific Asset Version. - * @param serviceSid The SID of the Service to fetch the Asset Version resource from. - * @param assetSid The SID of the Asset resource that is the parent of the Asset Version resource to fetch. - * @param sid The SID of the Asset Version resource to fetch. + * @param ServiceSid The SID of the Service to fetch the Asset Version resource from. + * @param AssetSid The SID of the Asset resource that is the parent of the Asset Version resource to fetch. + * @param Sid The SID of the Asset Version resource to fetch. @return ServerlessV1ServiceAssetAssetVersion */ -func (c *DefaultApiService) FetchAssetVersion(serviceSid string, assetSid string, sid string) (*ServerlessV1ServiceAssetAssetVersion, error) { +func (c *DefaultApiService) FetchAssetVersion(ServiceSid string, AssetSid string, Sid string) (*ServerlessV1ServiceAssetAssetVersion, error) { path := "/v1/Services/{ServiceSid}/Assets/{AssetSid}/Versions/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"AssetSid"+"}", assetSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"AssetSid"+"}", AssetSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -564,16 +581,17 @@ func (c *DefaultApiService) FetchAssetVersion(serviceSid string, assetSid string /* FetchBuild Method for FetchBuild Retrieve a specific Build resource. - * @param serviceSid The SID of the Service to fetch the Build resource from. - * @param sid The SID of the Build resource to fetch. + * @param ServiceSid The SID of the Service to fetch the Build resource from. + * @param Sid The SID of the Build resource to fetch. @return ServerlessV1ServiceBuild */ -func (c *DefaultApiService) FetchBuild(serviceSid string, sid string) (*ServerlessV1ServiceBuild, error) { +func (c *DefaultApiService) FetchBuild(ServiceSid string, Sid string) (*ServerlessV1ServiceBuild, error) { path := "/v1/Services/{ServiceSid}/Builds/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -596,16 +614,17 @@ func (c *DefaultApiService) FetchBuild(serviceSid string, sid string) (*Serverle /* FetchBuildStatus Method for FetchBuildStatus Retrieve a specific Build resource. - * @param serviceSid The SID of the Service to fetch the Build resource from. - * @param sid The SID of the Build resource to fetch. + * @param ServiceSid The SID of the Service to fetch the Build resource from. + * @param Sid The SID of the Build resource to fetch. @return ServerlessV1ServiceBuildBuildStatus */ -func (c *DefaultApiService) FetchBuildStatus(serviceSid string, sid string) (*ServerlessV1ServiceBuildBuildStatus, error) { +func (c *DefaultApiService) FetchBuildStatus(ServiceSid string, Sid string) (*ServerlessV1ServiceBuildBuildStatus, error) { path := "/v1/Services/{ServiceSid}/Builds/{Sid}/Status" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -628,18 +647,19 @@ func (c *DefaultApiService) FetchBuildStatus(serviceSid string, sid string) (*Se /* FetchDeployment Method for FetchDeployment Retrieve a specific Deployment. - * @param serviceSid The SID of the Service to fetch the Deployment resource from. - * @param environmentSid The SID of the Environment used by the Deployment to fetch. - * @param sid The SID that identifies the Deployment resource to fetch. + * @param ServiceSid The SID of the Service to fetch the Deployment resource from. + * @param EnvironmentSid The SID of the Environment used by the Deployment to fetch. + * @param Sid The SID that identifies the Deployment resource to fetch. @return ServerlessV1ServiceEnvironmentDeployment */ -func (c *DefaultApiService) FetchDeployment(serviceSid string, environmentSid string, sid string) (*ServerlessV1ServiceEnvironmentDeployment, error) { +func (c *DefaultApiService) FetchDeployment(ServiceSid string, EnvironmentSid string, Sid string) (*ServerlessV1ServiceEnvironmentDeployment, error) { path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"EnvironmentSid"+"}", EnvironmentSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -662,16 +682,17 @@ func (c *DefaultApiService) FetchDeployment(serviceSid string, environmentSid st /* FetchEnvironment Method for FetchEnvironment Retrieve a specific environment. - * @param serviceSid The SID of the Service to fetch the Environment resource from. - * @param sid The SID of the Environment resource to fetch. + * @param ServiceSid The SID of the Service to fetch the Environment resource from. + * @param Sid The SID of the Environment resource to fetch. @return ServerlessV1ServiceEnvironment */ -func (c *DefaultApiService) FetchEnvironment(serviceSid string, sid string) (*ServerlessV1ServiceEnvironment, error) { +func (c *DefaultApiService) FetchEnvironment(ServiceSid string, Sid string) (*ServerlessV1ServiceEnvironment, error) { path := "/v1/Services/{ServiceSid}/Environments/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -694,16 +715,17 @@ func (c *DefaultApiService) FetchEnvironment(serviceSid string, sid string) (*Se /* FetchFunction Method for FetchFunction Retrieve a specific Function resource. - * @param serviceSid The SID of the Service to fetch the Function resource from. - * @param sid The SID of the Function resource to fetch. + * @param ServiceSid The SID of the Service to fetch the Function resource from. + * @param Sid The SID of the Function resource to fetch. @return ServerlessV1ServiceFunction */ -func (c *DefaultApiService) FetchFunction(serviceSid string, sid string) (*ServerlessV1ServiceFunction, error) { +func (c *DefaultApiService) FetchFunction(ServiceSid string, Sid string) (*ServerlessV1ServiceFunction, error) { path := "/v1/Services/{ServiceSid}/Functions/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -726,18 +748,19 @@ func (c *DefaultApiService) FetchFunction(serviceSid string, sid string) (*Serve /* FetchFunctionVersion Method for FetchFunctionVersion Retrieve a specific Function Version resource. - * @param serviceSid The SID of the Service to fetch the Function Version resource from. - * @param functionSid The SID of the function that is the parent of the Function Version resource to fetch. - * @param sid The SID of the Function Version resource to fetch. + * @param ServiceSid The SID of the Service to fetch the Function Version resource from. + * @param FunctionSid The SID of the function that is the parent of the Function Version resource to fetch. + * @param Sid The SID of the Function Version resource to fetch. @return ServerlessV1ServiceFunctionFunctionVersion */ -func (c *DefaultApiService) FetchFunctionVersion(serviceSid string, functionSid string, sid string) (*ServerlessV1ServiceFunctionFunctionVersion, error) { +func (c *DefaultApiService) FetchFunctionVersion(ServiceSid string, FunctionSid string, Sid string) (*ServerlessV1ServiceFunctionFunctionVersion, error) { path := "/v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"FunctionSid"+"}", functionSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"FunctionSid"+"}", FunctionSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -760,18 +783,19 @@ func (c *DefaultApiService) FetchFunctionVersion(serviceSid string, functionSid /* FetchFunctionVersionContent Method for FetchFunctionVersionContent Retrieve a the content of a specific Function Version resource. - * @param serviceSid The SID of the Service to fetch the Function Version content from. - * @param functionSid The SID of the Function that is the parent of the Function Version content to fetch. - * @param sid The SID of the Function Version content to fetch. + * @param ServiceSid The SID of the Service to fetch the Function Version content from. + * @param FunctionSid The SID of the Function that is the parent of the Function Version content to fetch. + * @param Sid The SID of the Function Version content to fetch. @return ServerlessV1ServiceFunctionFunctionVersionFunctionVersionContent */ -func (c *DefaultApiService) FetchFunctionVersionContent(serviceSid string, functionSid string, sid string) (*ServerlessV1ServiceFunctionFunctionVersionFunctionVersionContent, error) { +func (c *DefaultApiService) FetchFunctionVersionContent(ServiceSid string, FunctionSid string, Sid string) (*ServerlessV1ServiceFunctionFunctionVersionFunctionVersionContent, error) { path := "/v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions/{Sid}/Content" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"FunctionSid"+"}", functionSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"FunctionSid"+"}", FunctionSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -794,18 +818,19 @@ func (c *DefaultApiService) FetchFunctionVersionContent(serviceSid string, funct /* FetchLog Method for FetchLog Retrieve a specific log. - * @param serviceSid The SID of the Service to fetch the Log resource from. - * @param environmentSid The SID of the environment with the Log resource to fetch. - * @param sid The SID of the Log resource to fetch. + * @param ServiceSid The SID of the Service to fetch the Log resource from. + * @param EnvironmentSid The SID of the environment with the Log resource to fetch. + * @param Sid The SID of the Log resource to fetch. @return ServerlessV1ServiceEnvironmentLog */ -func (c *DefaultApiService) FetchLog(serviceSid string, environmentSid string, sid string) (*ServerlessV1ServiceEnvironmentLog, error) { +func (c *DefaultApiService) FetchLog(ServiceSid string, EnvironmentSid string, Sid string) (*ServerlessV1ServiceEnvironmentLog, error) { path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Logs/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"EnvironmentSid"+"}", EnvironmentSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -828,14 +853,15 @@ func (c *DefaultApiService) FetchLog(serviceSid string, environmentSid string, s /* FetchService Method for FetchService Retrieve a specific Service resource. - * @param sid The `sid` or `unique_name` of the Service resource to fetch. + * @param Sid The `sid` or `unique_name` of the Service resource to fetch. @return ServerlessV1Service */ -func (c *DefaultApiService) FetchService(sid string) (*ServerlessV1Service, error) { +func (c *DefaultApiService) FetchService(Sid string) (*ServerlessV1Service, error) { path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -858,18 +884,19 @@ func (c *DefaultApiService) FetchService(sid string) (*ServerlessV1Service, erro /* FetchVariable Method for FetchVariable Retrieve a specific Variable. - * @param serviceSid The SID of the Service to fetch the Variable resource from. - * @param environmentSid The SID of the Environment with the Variable resource to fetch. - * @param sid The SID of the Variable resource to fetch. + * @param ServiceSid The SID of the Service to fetch the Variable resource from. + * @param EnvironmentSid The SID of the Environment with the Variable resource to fetch. + * @param Sid The SID of the Variable resource to fetch. @return ServerlessV1ServiceEnvironmentVariable */ -func (c *DefaultApiService) FetchVariable(serviceSid string, environmentSid string, sid string) (*ServerlessV1ServiceEnvironmentVariable, error) { +func (c *DefaultApiService) FetchVariable(ServiceSid string, EnvironmentSid string, Sid string) (*ServerlessV1ServiceEnvironmentVariable, error) { path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"EnvironmentSid"+"}", EnvironmentSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -896,20 +923,21 @@ type ListAssetParams struct { /* ListAsset Method for ListAsset Retrieve a list of all Assets. - * @param serviceSid The SID of the Service to read the Asset resources from. + * @param ServiceSid The SID of the Service to read the Asset resources from. * @param optional nil or *ListAssetOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ServerlessV1ServiceAssetReadResponse */ -func (c *DefaultApiService) ListAsset(serviceSid string, params *ListAssetParams) (*ServerlessV1ServiceAssetReadResponse, error) { +func (c *DefaultApiService) ListAsset(ServiceSid string, params *ListAssetParams) (*ServerlessV1ServiceAssetReadResponse, error) { path := "/v1/Services/{ServiceSid}/Assets" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -935,22 +963,23 @@ type ListAssetVersionParams struct { /* ListAssetVersion Method for ListAssetVersion Retrieve a list of all Asset Versions. - * @param serviceSid The SID of the Service to read the Asset Version resource from. - * @param assetSid The SID of the Asset resource that is the parent of the Asset Version resources to read. + * @param ServiceSid The SID of the Service to read the Asset Version resource from. + * @param AssetSid The SID of the Asset resource that is the parent of the Asset Version resources to read. * @param optional nil or *ListAssetVersionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ServerlessV1ServiceAssetAssetVersionReadResponse */ -func (c *DefaultApiService) ListAssetVersion(serviceSid string, assetSid string, params *ListAssetVersionParams) (*ServerlessV1ServiceAssetAssetVersionReadResponse, error) { +func (c *DefaultApiService) ListAssetVersion(ServiceSid string, AssetSid string, params *ListAssetVersionParams) (*ServerlessV1ServiceAssetAssetVersionReadResponse, error) { path := "/v1/Services/{ServiceSid}/Assets/{AssetSid}/Versions" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"AssetSid"+"}", assetSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"AssetSid"+"}", AssetSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -976,20 +1005,21 @@ type ListBuildParams struct { /* ListBuild Method for ListBuild Retrieve a list of all Builds. - * @param serviceSid The SID of the Service to read the Build resources from. + * @param ServiceSid The SID of the Service to read the Build resources from. * @param optional nil or *ListBuildOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ServerlessV1ServiceBuildReadResponse */ -func (c *DefaultApiService) ListBuild(serviceSid string, params *ListBuildParams) (*ServerlessV1ServiceBuildReadResponse, error) { +func (c *DefaultApiService) ListBuild(ServiceSid string, params *ListBuildParams) (*ServerlessV1ServiceBuildReadResponse, error) { path := "/v1/Services/{ServiceSid}/Builds" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1015,22 +1045,23 @@ type ListDeploymentParams struct { /* ListDeployment Method for ListDeployment Retrieve a list of all Deployments. - * @param serviceSid The SID of the Service to read the Deployment resources from. - * @param environmentSid The SID of the Environment used by the Deployment resources to read. + * @param ServiceSid The SID of the Service to read the Deployment resources from. + * @param EnvironmentSid The SID of the Environment used by the Deployment resources to read. * @param optional nil or *ListDeploymentOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ServerlessV1ServiceEnvironmentDeploymentReadResponse */ -func (c *DefaultApiService) ListDeployment(serviceSid string, environmentSid string, params *ListDeploymentParams) (*ServerlessV1ServiceEnvironmentDeploymentReadResponse, error) { +func (c *DefaultApiService) ListDeployment(ServiceSid string, EnvironmentSid string, params *ListDeploymentParams) (*ServerlessV1ServiceEnvironmentDeploymentReadResponse, error) { path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"EnvironmentSid"+"}", EnvironmentSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1056,20 +1087,21 @@ type ListEnvironmentParams struct { /* ListEnvironment Method for ListEnvironment Retrieve a list of all environments. - * @param serviceSid The SID of the Service to read the Environment resources from. + * @param ServiceSid The SID of the Service to read the Environment resources from. * @param optional nil or *ListEnvironmentOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ServerlessV1ServiceEnvironmentReadResponse */ -func (c *DefaultApiService) ListEnvironment(serviceSid string, params *ListEnvironmentParams) (*ServerlessV1ServiceEnvironmentReadResponse, error) { +func (c *DefaultApiService) ListEnvironment(ServiceSid string, params *ListEnvironmentParams) (*ServerlessV1ServiceEnvironmentReadResponse, error) { path := "/v1/Services/{ServiceSid}/Environments" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1095,20 +1127,21 @@ type ListFunctionParams struct { /* ListFunction Method for ListFunction Retrieve a list of all Functions. - * @param serviceSid The SID of the Service to read the Function resources from. + * @param ServiceSid The SID of the Service to read the Function resources from. * @param optional nil or *ListFunctionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ServerlessV1ServiceFunctionReadResponse */ -func (c *DefaultApiService) ListFunction(serviceSid string, params *ListFunctionParams) (*ServerlessV1ServiceFunctionReadResponse, error) { +func (c *DefaultApiService) ListFunction(ServiceSid string, params *ListFunctionParams) (*ServerlessV1ServiceFunctionReadResponse, error) { path := "/v1/Services/{ServiceSid}/Functions" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1134,22 +1167,23 @@ type ListFunctionVersionParams struct { /* ListFunctionVersion Method for ListFunctionVersion Retrieve a list of all Function Version resources. - * @param serviceSid The SID of the Service to read the Function Version resources from. - * @param functionSid The SID of the function that is the parent of the Function Version resources to read. + * @param ServiceSid The SID of the Service to read the Function Version resources from. + * @param FunctionSid The SID of the function that is the parent of the Function Version resources to read. * @param optional nil or *ListFunctionVersionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ServerlessV1ServiceFunctionFunctionVersionReadResponse */ -func (c *DefaultApiService) ListFunctionVersion(serviceSid string, functionSid string, params *ListFunctionVersionParams) (*ServerlessV1ServiceFunctionFunctionVersionReadResponse, error) { +func (c *DefaultApiService) ListFunctionVersion(ServiceSid string, FunctionSid string, params *ListFunctionVersionParams) (*ServerlessV1ServiceFunctionFunctionVersionReadResponse, error) { path := "/v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"FunctionSid"+"}", functionSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"FunctionSid"+"}", FunctionSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1178,8 +1212,8 @@ type ListLogParams struct { /* ListLog Method for ListLog Retrieve a list of all logs. - * @param serviceSid The SID of the Service to read the Log resource from. - * @param environmentSid The SID of the environment with the Log resources to read. + * @param ServiceSid The SID of the Service to read the Log resource from. + * @param EnvironmentSid The SID of the environment with the Log resources to read. * @param optional nil or *ListLogOpts - Optional Parameters: * @param "FunctionSid" (string) - The SID of the function whose invocation produced the Log resources to read. * @param "StartDate" (time.Time) - The date/time (in GMT, ISO 8601) after which the Log resources must have been created. Defaults to 1 day prior to current date/time. @@ -1187,25 +1221,26 @@ Retrieve a list of all logs. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ServerlessV1ServiceEnvironmentLogReadResponse */ -func (c *DefaultApiService) ListLog(serviceSid string, environmentSid string, params *ListLogParams) (*ServerlessV1ServiceEnvironmentLogReadResponse, error) { +func (c *DefaultApiService) ListLog(ServiceSid string, EnvironmentSid string, params *ListLogParams) (*ServerlessV1ServiceEnvironmentLogReadResponse, error) { path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Logs" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"EnvironmentSid"+"}", EnvironmentSid, -1) + data := url.Values{} headers := 0 if params != nil && params.FunctionSid != nil { - data.Set("FunctionSid", *params.FunctionSid) + data.Set("FunctionSid", *params.FunctionSid) } if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) + data.Set("StartDate", fmt.Sprint(*params.StartDate)) } if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) + data.Set("EndDate", fmt.Sprint(*params.EndDate)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1238,11 +1273,12 @@ Retrieve a list of all Services. func (c *DefaultApiService) ListService(params *ListServiceParams) (*ServerlessV1ServiceReadResponse, error) { path := "/v1/Services" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1268,22 +1304,23 @@ type ListVariableParams struct { /* ListVariable Method for ListVariable Retrieve a list of all Variables. - * @param serviceSid The SID of the Service to read the Variable resources from. - * @param environmentSid The SID of the Environment with the Variable resources to read. + * @param ServiceSid The SID of the Service to read the Variable resources from. + * @param EnvironmentSid The SID of the Environment with the Variable resources to read. * @param optional nil or *ListVariableOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ServerlessV1ServiceEnvironmentVariableReadResponse */ -func (c *DefaultApiService) ListVariable(serviceSid string, environmentSid string, params *ListVariableParams) (*ServerlessV1ServiceEnvironmentVariableReadResponse, error) { +func (c *DefaultApiService) ListVariable(ServiceSid string, EnvironmentSid string, params *ListVariableParams) (*ServerlessV1ServiceEnvironmentVariableReadResponse, error) { path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"EnvironmentSid"+"}", EnvironmentSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1309,22 +1346,23 @@ type UpdateAssetParams struct { /* UpdateAsset Method for UpdateAsset Update a specific Asset resource. - * @param serviceSid The SID of the Service to update the Asset resource from. - * @param sid The SID that identifies the Asset resource to update. + * @param ServiceSid The SID of the Service to update the Asset resource from. + * @param Sid The SID that identifies the Asset resource to update. * @param optional nil or *UpdateAssetOpts - Optional Parameters: * @param "FriendlyName" (string) - A descriptive string that you create to describe the Asset resource. It can be a maximum of 255 characters. @return ServerlessV1ServiceAsset */ -func (c *DefaultApiService) UpdateAsset(serviceSid string, sid string, params *UpdateAssetParams) (*ServerlessV1ServiceAsset, error) { +func (c *DefaultApiService) UpdateAsset(ServiceSid string, Sid string, params *UpdateAssetParams) (*ServerlessV1ServiceAsset, error) { path := "/v1/Services/{ServiceSid}/Assets/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -1350,22 +1388,23 @@ type UpdateFunctionParams struct { /* UpdateFunction Method for UpdateFunction Update a specific Function resource. - * @param serviceSid The SID of the Service to update the Function resource from. - * @param sid The SID of the Function resource to update. + * @param ServiceSid The SID of the Service to update the Function resource from. + * @param Sid The SID of the Function resource to update. * @param optional nil or *UpdateFunctionOpts - Optional Parameters: * @param "FriendlyName" (string) - A descriptive string that you create to describe the Function resource. It can be a maximum of 255 characters. @return ServerlessV1ServiceFunction */ -func (c *DefaultApiService) UpdateFunction(serviceSid string, sid string, params *UpdateFunctionParams) (*ServerlessV1ServiceFunction, error) { +func (c *DefaultApiService) UpdateFunction(ServiceSid string, Sid string, params *UpdateFunctionParams) (*ServerlessV1ServiceFunction, error) { path := "/v1/Services/{ServiceSid}/Functions/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -1393,28 +1432,29 @@ type UpdateServiceParams struct { /* UpdateService Method for UpdateService Update a specific Service resource. - * @param sid The `sid` or `unique_name` of the Service resource to update. + * @param Sid The `sid` or `unique_name` of the Service resource to update. * @param optional nil or *UpdateServiceOpts - Optional Parameters: * @param "FriendlyName" (string) - A descriptive string that you create to describe the Service resource. It can be a maximum of 255 characters. * @param "IncludeCredentials" (bool) - Whether to inject Account credentials into a function invocation context. * @param "UiEditable" (bool) - Whether the Service resource's properties and subresources can be edited via the UI. The default value is `false`. @return ServerlessV1Service */ -func (c *DefaultApiService) UpdateService(sid string, params *UpdateServiceParams) (*ServerlessV1Service, error) { +func (c *DefaultApiService) UpdateService(Sid string, params *UpdateServiceParams) (*ServerlessV1Service, error) { path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.IncludeCredentials != nil { - data.Set("IncludeCredentials", string(*params.IncludeCredentials)) + data.Set("IncludeCredentials", fmt.Sprint(*params.IncludeCredentials)) } if params != nil && params.UiEditable != nil { - data.Set("UiEditable", string(*params.UiEditable)) + data.Set("UiEditable", fmt.Sprint(*params.UiEditable)) } @@ -1441,28 +1481,29 @@ type UpdateVariableParams struct { /* UpdateVariable Method for UpdateVariable Update a specific Variable. - * @param serviceSid The SID of the Service to update the Variable resource under. - * @param environmentSid The SID of the Environment with the Variable resource to update. - * @param sid The SID of the Variable resource to update. + * @param ServiceSid The SID of the Service to update the Variable resource under. + * @param EnvironmentSid The SID of the Environment with the Variable resource to update. + * @param Sid The SID of the Variable resource to update. * @param optional nil or *UpdateVariableOpts - Optional Parameters: * @param "Key" (string) - A string by which the Variable resource can be referenced. It can be a maximum of 128 characters. * @param "Value" (string) - A string that contains the actual value of the Variable. It can be a maximum of 450 bytes in size. @return ServerlessV1ServiceEnvironmentVariable */ -func (c *DefaultApiService) UpdateVariable(serviceSid string, environmentSid string, sid string, params *UpdateVariableParams) (*ServerlessV1ServiceEnvironmentVariable, error) { +func (c *DefaultApiService) UpdateVariable(ServiceSid string, EnvironmentSid string, Sid string, params *UpdateVariableParams) (*ServerlessV1ServiceEnvironmentVariable, error) { path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"EnvironmentSid"+"}", environmentSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"EnvironmentSid"+"}", EnvironmentSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.Key != nil { - data.Set("Key", *params.Key) + data.Set("Key", *params.Key) } if params != nil && params.Value != nil { - data.Set("Value", *params.Value) + data.Set("Value", *params.Value) } diff --git a/rest/serverless/v1/docs/DefaultApi.md b/rest/serverless/v1/docs/DefaultApi.md index 12910ac99..bdb2d100f 100644 --- a/rest/serverless/v1/docs/DefaultApi.md +++ b/rest/serverless/v1/docs/DefaultApi.md @@ -48,7 +48,7 @@ Method | HTTP request | Description ## CreateAsset -> ServerlessV1ServiceAsset CreateAsset(ctx, serviceSid, optional) +> ServerlessV1ServiceAsset CreateAsset(ctx, ServiceSid, optional) @@ -60,7 +60,7 @@ Create a new Asset resource. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the Service to create the Asset resource under. | +**ServiceSid** | **string**| The SID of the Service to create the Asset resource under. | **optional** | ***CreateAssetOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -71,7 +71,7 @@ Optional parameters are passed through a pointer to a CreateAssetOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| A descriptive string that you create to describe the Asset resource. It can be a maximum of 255 characters. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the Asset resource. It can be a maximum of 255 characters. | ### Return type @@ -93,7 +93,7 @@ Name | Type | Description | Notes ## CreateBuild -> ServerlessV1ServiceBuild CreateBuild(ctx, serviceSid, optional) +> ServerlessV1ServiceBuild CreateBuild(ctx, ServiceSid, optional) @@ -105,7 +105,7 @@ Create a new Build resource. At least one function version or asset version is r Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the Service to create the Build resource under. | +**ServiceSid** | **string**| The SID of the Service to create the Build resource under. | **optional** | ***CreateBuildOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -116,9 +116,9 @@ Optional parameters are passed through a pointer to a CreateBuildOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **assetVersions** | [**optional.Interface of []string**](string.md)| The list of Asset Version resource SIDs to include in the Build. | - **dependencies** | **optional.String**| A list of objects that describe the Dependencies included in the Build. Each object contains the `name` and `version` of the dependency. | - **functionVersions** | [**optional.Interface of []string**](string.md)| The list of the Function Version resource SIDs to include in the Build. | + **AssetVersions** | [**optional.Interface of []string**](string.md)| The list of Asset Version resource SIDs to include in the Build. | + **Dependencies** | **optional.String**| A list of objects that describe the Dependencies included in the Build. Each object contains the `name` and `version` of the dependency. | + **FunctionVersions** | [**optional.Interface of []string**](string.md)| The list of the Function Version resource SIDs to include in the Build. | ### Return type @@ -140,7 +140,7 @@ Name | Type | Description | Notes ## CreateDeployment -> ServerlessV1ServiceEnvironmentDeployment CreateDeployment(ctx, serviceSid, environmentSid, optional) +> ServerlessV1ServiceEnvironmentDeployment CreateDeployment(ctx, ServiceSid, EnvironmentSid, optional) @@ -152,8 +152,8 @@ Create a new Deployment. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the Service to create the Deployment resource under. | -**environmentSid** | **string**| The SID of the Environment for the Deployment. | +**ServiceSid** | **string**| The SID of the Service to create the Deployment resource under. | +**EnvironmentSid** | **string**| The SID of the Environment for the Deployment. | **optional** | ***CreateDeploymentOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -165,7 +165,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **buildSid** | **optional.String**| The SID of the Build for the Deployment. | + **BuildSid** | **optional.String**| The SID of the Build for the Deployment. | ### Return type @@ -187,7 +187,7 @@ Name | Type | Description | Notes ## CreateEnvironment -> ServerlessV1ServiceEnvironment CreateEnvironment(ctx, serviceSid, optional) +> ServerlessV1ServiceEnvironment CreateEnvironment(ctx, ServiceSid, optional) @@ -199,7 +199,7 @@ Create a new environment. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the Service to create the Environment resource under. | +**ServiceSid** | **string**| The SID of the Service to create the Environment resource under. | **optional** | ***CreateEnvironmentOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -210,8 +210,8 @@ Optional parameters are passed through a pointer to a CreateEnvironmentOpts stru Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **domainSuffix** | **optional.String**| A URL-friendly name that represents the environment and forms part of the domain name. It can be a maximum of 16 characters. | - **uniqueName** | **optional.String**| A user-defined string that uniquely identifies the Environment resource. It can be a maximum of 100 characters. | + **DomainSuffix** | **optional.String**| A URL-friendly name that represents the environment and forms part of the domain name. It can be a maximum of 16 characters. | + **UniqueName** | **optional.String**| A user-defined string that uniquely identifies the Environment resource. It can be a maximum of 100 characters. | ### Return type @@ -233,7 +233,7 @@ Name | Type | Description | Notes ## CreateFunction -> ServerlessV1ServiceFunction CreateFunction(ctx, serviceSid, optional) +> ServerlessV1ServiceFunction CreateFunction(ctx, ServiceSid, optional) @@ -245,7 +245,7 @@ Create a new Function resource. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the Service to create the Function resource under. | +**ServiceSid** | **string**| The SID of the Service to create the Function resource under. | **optional** | ***CreateFunctionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -256,7 +256,7 @@ Optional parameters are passed through a pointer to a CreateFunctionOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| A descriptive string that you create to describe the Function resource. It can be a maximum of 255 characters. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the Function resource. It can be a maximum of 255 characters. | ### Return type @@ -299,10 +299,10 @@ Optional parameters are passed through a pointer to a CreateServiceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| A descriptive string that you create to describe the Service resource. It can be a maximum of 255 characters. | - **includeCredentials** | **optional.Bool**| Whether to inject Account credentials into a function invocation context. The default value is `true`. | - **uiEditable** | **optional.Bool**| Whether the Service's properties and subresources can be edited via the UI. The default value is `false`. | - **uniqueName** | **optional.String**| A user-defined string that uniquely identifies the Service resource. It can be used as an alternative to the `sid` in the URL path to address the Service resource. This value must be 50 characters or less in length and be unique. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the Service resource. It can be a maximum of 255 characters. | + **IncludeCredentials** | **optional.Bool**| Whether to inject Account credentials into a function invocation context. The default value is `true`. | + **UiEditable** | **optional.Bool**| Whether the Service's properties and subresources can be edited via the UI. The default value is `false`. | + **UniqueName** | **optional.String**| A user-defined string that uniquely identifies the Service resource. It can be used as an alternative to the `sid` in the URL path to address the Service resource. This value must be 50 characters or less in length and be unique. | ### Return type @@ -324,7 +324,7 @@ Name | Type | Description | Notes ## CreateVariable -> ServerlessV1ServiceEnvironmentVariable CreateVariable(ctx, serviceSid, environmentSid, optional) +> ServerlessV1ServiceEnvironmentVariable CreateVariable(ctx, ServiceSid, EnvironmentSid, optional) @@ -336,8 +336,8 @@ Create a new Variable. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the Service to create the Variable resource under. | -**environmentSid** | **string**| The SID of the Environment in which the Variable resource exists. | +**ServiceSid** | **string**| The SID of the Service to create the Variable resource under. | +**EnvironmentSid** | **string**| The SID of the Environment in which the Variable resource exists. | **optional** | ***CreateVariableOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -349,8 +349,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **key** | **optional.String**| A string by which the Variable resource can be referenced. It can be a maximum of 128 characters. | - **value** | **optional.String**| A string that contains the actual value of the Variable. It can be a maximum of 450 bytes in size. | + **Key** | **optional.String**| A string by which the Variable resource can be referenced. It can be a maximum of 128 characters. | + **Value** | **optional.String**| A string that contains the actual value of the Variable. It can be a maximum of 450 bytes in size. | ### Return type @@ -372,7 +372,7 @@ Name | Type | Description | Notes ## DeleteAsset -> DeleteAsset(ctx, serviceSid, sid) +> DeleteAsset(ctx, ServiceSid, Sid) @@ -384,8 +384,8 @@ Delete an Asset resource. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the Service to delete the Asset resource from. | -**sid** | **string**| The SID that identifies the Asset resource to delete. | +**ServiceSid** | **string**| The SID of the Service to delete the Asset resource from. | +**Sid** | **string**| The SID that identifies the Asset resource to delete. | ### Return type @@ -407,7 +407,7 @@ Name | Type | Description | Notes ## DeleteBuild -> DeleteBuild(ctx, serviceSid, sid) +> DeleteBuild(ctx, ServiceSid, Sid) @@ -419,8 +419,8 @@ Delete a Build resource. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the Service to delete the Build resource from. | -**sid** | **string**| The SID of the Build resource to delete. | +**ServiceSid** | **string**| The SID of the Service to delete the Build resource from. | +**Sid** | **string**| The SID of the Build resource to delete. | ### Return type @@ -442,7 +442,7 @@ Name | Type | Description | Notes ## DeleteEnvironment -> DeleteEnvironment(ctx, serviceSid, sid) +> DeleteEnvironment(ctx, ServiceSid, Sid) @@ -454,8 +454,8 @@ Delete a specific environment. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the Service to delete the Environment resource from. | -**sid** | **string**| The SID of the Environment resource to delete. | +**ServiceSid** | **string**| The SID of the Service to delete the Environment resource from. | +**Sid** | **string**| The SID of the Environment resource to delete. | ### Return type @@ -477,7 +477,7 @@ Name | Type | Description | Notes ## DeleteFunction -> DeleteFunction(ctx, serviceSid, sid) +> DeleteFunction(ctx, ServiceSid, Sid) @@ -489,8 +489,8 @@ Delete a Function resource. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the Service to delete the Function resource from. | -**sid** | **string**| The SID of the Function resource to delete. | +**ServiceSid** | **string**| The SID of the Service to delete the Function resource from. | +**Sid** | **string**| The SID of the Function resource to delete. | ### Return type @@ -512,7 +512,7 @@ Name | Type | Description | Notes ## DeleteService -> DeleteService(ctx, sid) +> DeleteService(ctx, Sid) @@ -524,7 +524,7 @@ Delete a Service resource. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The `sid` or `unique_name` of the Service resource to delete. | +**Sid** | **string**| The `sid` or `unique_name` of the Service resource to delete. | ### Return type @@ -546,7 +546,7 @@ Name | Type | Description | Notes ## DeleteVariable -> DeleteVariable(ctx, serviceSid, environmentSid, sid) +> DeleteVariable(ctx, ServiceSid, EnvironmentSid, Sid) @@ -558,9 +558,9 @@ Delete a specific Variable. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the Service to delete the Variable resource from. | -**environmentSid** | **string**| The SID of the Environment with the Variables to delete. | -**sid** | **string**| The SID of the Variable resource to delete. | +**ServiceSid** | **string**| The SID of the Service to delete the Variable resource from. | +**EnvironmentSid** | **string**| The SID of the Environment with the Variables to delete. | +**Sid** | **string**| The SID of the Variable resource to delete. | ### Return type @@ -582,7 +582,7 @@ Name | Type | Description | Notes ## FetchAsset -> ServerlessV1ServiceAsset FetchAsset(ctx, serviceSid, sid) +> ServerlessV1ServiceAsset FetchAsset(ctx, ServiceSid, Sid) @@ -594,8 +594,8 @@ Retrieve a specific Asset resource. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the Service to fetch the Asset resource from. | -**sid** | **string**| The SID that identifies the Asset resource to fetch. | +**ServiceSid** | **string**| The SID of the Service to fetch the Asset resource from. | +**Sid** | **string**| The SID that identifies the Asset resource to fetch. | ### Return type @@ -617,7 +617,7 @@ Name | Type | Description | Notes ## FetchAssetVersion -> ServerlessV1ServiceAssetAssetVersion FetchAssetVersion(ctx, serviceSid, assetSid, sid) +> ServerlessV1ServiceAssetAssetVersion FetchAssetVersion(ctx, ServiceSid, AssetSid, Sid) @@ -629,9 +629,9 @@ Retrieve a specific Asset Version. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the Service to fetch the Asset Version resource from. | -**assetSid** | **string**| The SID of the Asset resource that is the parent of the Asset Version resource to fetch. | -**sid** | **string**| The SID of the Asset Version resource to fetch. | +**ServiceSid** | **string**| The SID of the Service to fetch the Asset Version resource from. | +**AssetSid** | **string**| The SID of the Asset resource that is the parent of the Asset Version resource to fetch. | +**Sid** | **string**| The SID of the Asset Version resource to fetch. | ### Return type @@ -653,7 +653,7 @@ Name | Type | Description | Notes ## FetchBuild -> ServerlessV1ServiceBuild FetchBuild(ctx, serviceSid, sid) +> ServerlessV1ServiceBuild FetchBuild(ctx, ServiceSid, Sid) @@ -665,8 +665,8 @@ Retrieve a specific Build resource. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the Service to fetch the Build resource from. | -**sid** | **string**| The SID of the Build resource to fetch. | +**ServiceSid** | **string**| The SID of the Service to fetch the Build resource from. | +**Sid** | **string**| The SID of the Build resource to fetch. | ### Return type @@ -688,7 +688,7 @@ Name | Type | Description | Notes ## FetchBuildStatus -> ServerlessV1ServiceBuildBuildStatus FetchBuildStatus(ctx, serviceSid, sid) +> ServerlessV1ServiceBuildBuildStatus FetchBuildStatus(ctx, ServiceSid, Sid) @@ -700,8 +700,8 @@ Retrieve a specific Build resource. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the Service to fetch the Build resource from. | -**sid** | **string**| The SID of the Build resource to fetch. | +**ServiceSid** | **string**| The SID of the Service to fetch the Build resource from. | +**Sid** | **string**| The SID of the Build resource to fetch. | ### Return type @@ -723,7 +723,7 @@ Name | Type | Description | Notes ## FetchDeployment -> ServerlessV1ServiceEnvironmentDeployment FetchDeployment(ctx, serviceSid, environmentSid, sid) +> ServerlessV1ServiceEnvironmentDeployment FetchDeployment(ctx, ServiceSid, EnvironmentSid, Sid) @@ -735,9 +735,9 @@ Retrieve a specific Deployment. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the Service to fetch the Deployment resource from. | -**environmentSid** | **string**| The SID of the Environment used by the Deployment to fetch. | -**sid** | **string**| The SID that identifies the Deployment resource to fetch. | +**ServiceSid** | **string**| The SID of the Service to fetch the Deployment resource from. | +**EnvironmentSid** | **string**| The SID of the Environment used by the Deployment to fetch. | +**Sid** | **string**| The SID that identifies the Deployment resource to fetch. | ### Return type @@ -759,7 +759,7 @@ Name | Type | Description | Notes ## FetchEnvironment -> ServerlessV1ServiceEnvironment FetchEnvironment(ctx, serviceSid, sid) +> ServerlessV1ServiceEnvironment FetchEnvironment(ctx, ServiceSid, Sid) @@ -771,8 +771,8 @@ Retrieve a specific environment. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the Service to fetch the Environment resource from. | -**sid** | **string**| The SID of the Environment resource to fetch. | +**ServiceSid** | **string**| The SID of the Service to fetch the Environment resource from. | +**Sid** | **string**| The SID of the Environment resource to fetch. | ### Return type @@ -794,7 +794,7 @@ Name | Type | Description | Notes ## FetchFunction -> ServerlessV1ServiceFunction FetchFunction(ctx, serviceSid, sid) +> ServerlessV1ServiceFunction FetchFunction(ctx, ServiceSid, Sid) @@ -806,8 +806,8 @@ Retrieve a specific Function resource. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the Service to fetch the Function resource from. | -**sid** | **string**| The SID of the Function resource to fetch. | +**ServiceSid** | **string**| The SID of the Service to fetch the Function resource from. | +**Sid** | **string**| The SID of the Function resource to fetch. | ### Return type @@ -829,7 +829,7 @@ Name | Type | Description | Notes ## FetchFunctionVersion -> ServerlessV1ServiceFunctionFunctionVersion FetchFunctionVersion(ctx, serviceSid, functionSid, sid) +> ServerlessV1ServiceFunctionFunctionVersion FetchFunctionVersion(ctx, ServiceSid, FunctionSid, Sid) @@ -841,9 +841,9 @@ Retrieve a specific Function Version resource. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the Service to fetch the Function Version resource from. | -**functionSid** | **string**| The SID of the function that is the parent of the Function Version resource to fetch. | -**sid** | **string**| The SID of the Function Version resource to fetch. | +**ServiceSid** | **string**| The SID of the Service to fetch the Function Version resource from. | +**FunctionSid** | **string**| The SID of the function that is the parent of the Function Version resource to fetch. | +**Sid** | **string**| The SID of the Function Version resource to fetch. | ### Return type @@ -865,7 +865,7 @@ Name | Type | Description | Notes ## FetchFunctionVersionContent -> ServerlessV1ServiceFunctionFunctionVersionFunctionVersionContent FetchFunctionVersionContent(ctx, serviceSid, functionSid, sid) +> ServerlessV1ServiceFunctionFunctionVersionFunctionVersionContent FetchFunctionVersionContent(ctx, ServiceSid, FunctionSid, Sid) @@ -877,9 +877,9 @@ Retrieve a the content of a specific Function Version resource. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the Service to fetch the Function Version content from. | -**functionSid** | **string**| The SID of the Function that is the parent of the Function Version content to fetch. | -**sid** | **string**| The SID of the Function Version content to fetch. | +**ServiceSid** | **string**| The SID of the Service to fetch the Function Version content from. | +**FunctionSid** | **string**| The SID of the Function that is the parent of the Function Version content to fetch. | +**Sid** | **string**| The SID of the Function Version content to fetch. | ### Return type @@ -901,7 +901,7 @@ Name | Type | Description | Notes ## FetchLog -> ServerlessV1ServiceEnvironmentLog FetchLog(ctx, serviceSid, environmentSid, sid) +> ServerlessV1ServiceEnvironmentLog FetchLog(ctx, ServiceSid, EnvironmentSid, Sid) @@ -913,9 +913,9 @@ Retrieve a specific log. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the Service to fetch the Log resource from. | -**environmentSid** | **string**| The SID of the environment with the Log resource to fetch. | -**sid** | **string**| The SID of the Log resource to fetch. | +**ServiceSid** | **string**| The SID of the Service to fetch the Log resource from. | +**EnvironmentSid** | **string**| The SID of the environment with the Log resource to fetch. | +**Sid** | **string**| The SID of the Log resource to fetch. | ### Return type @@ -937,7 +937,7 @@ Name | Type | Description | Notes ## FetchService -> ServerlessV1Service FetchService(ctx, sid) +> ServerlessV1Service FetchService(ctx, Sid) @@ -949,7 +949,7 @@ Retrieve a specific Service resource. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The `sid` or `unique_name` of the Service resource to fetch. | +**Sid** | **string**| The `sid` or `unique_name` of the Service resource to fetch. | ### Return type @@ -971,7 +971,7 @@ Name | Type | Description | Notes ## FetchVariable -> ServerlessV1ServiceEnvironmentVariable FetchVariable(ctx, serviceSid, environmentSid, sid) +> ServerlessV1ServiceEnvironmentVariable FetchVariable(ctx, ServiceSid, EnvironmentSid, Sid) @@ -983,9 +983,9 @@ Retrieve a specific Variable. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the Service to fetch the Variable resource from. | -**environmentSid** | **string**| The SID of the Environment with the Variable resource to fetch. | -**sid** | **string**| The SID of the Variable resource to fetch. | +**ServiceSid** | **string**| The SID of the Service to fetch the Variable resource from. | +**EnvironmentSid** | **string**| The SID of the Environment with the Variable resource to fetch. | +**Sid** | **string**| The SID of the Variable resource to fetch. | ### Return type @@ -1007,7 +1007,7 @@ Name | Type | Description | Notes ## ListAsset -> ServerlessV1ServiceAssetReadResponse ListAsset(ctx, serviceSid, optional) +> ServerlessV1ServiceAssetReadResponse ListAsset(ctx, ServiceSid, optional) @@ -1019,7 +1019,7 @@ Retrieve a list of all Assets. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the Service to read the Asset resources from. | +**ServiceSid** | **string**| The SID of the Service to read the Asset resources from. | **optional** | ***ListAssetOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1030,7 +1030,7 @@ Optional parameters are passed through a pointer to a ListAssetOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1052,7 +1052,7 @@ Name | Type | Description | Notes ## ListAssetVersion -> ServerlessV1ServiceAssetAssetVersionReadResponse ListAssetVersion(ctx, serviceSid, assetSid, optional) +> ServerlessV1ServiceAssetAssetVersionReadResponse ListAssetVersion(ctx, ServiceSid, AssetSid, optional) @@ -1064,8 +1064,8 @@ Retrieve a list of all Asset Versions. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the Service to read the Asset Version resource from. | -**assetSid** | **string**| The SID of the Asset resource that is the parent of the Asset Version resources to read. | +**ServiceSid** | **string**| The SID of the Service to read the Asset Version resource from. | +**AssetSid** | **string**| The SID of the Asset resource that is the parent of the Asset Version resources to read. | **optional** | ***ListAssetVersionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1077,7 +1077,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1099,7 +1099,7 @@ Name | Type | Description | Notes ## ListBuild -> ServerlessV1ServiceBuildReadResponse ListBuild(ctx, serviceSid, optional) +> ServerlessV1ServiceBuildReadResponse ListBuild(ctx, ServiceSid, optional) @@ -1111,7 +1111,7 @@ Retrieve a list of all Builds. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the Service to read the Build resources from. | +**ServiceSid** | **string**| The SID of the Service to read the Build resources from. | **optional** | ***ListBuildOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1122,7 +1122,7 @@ Optional parameters are passed through a pointer to a ListBuildOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1144,7 +1144,7 @@ Name | Type | Description | Notes ## ListDeployment -> ServerlessV1ServiceEnvironmentDeploymentReadResponse ListDeployment(ctx, serviceSid, environmentSid, optional) +> ServerlessV1ServiceEnvironmentDeploymentReadResponse ListDeployment(ctx, ServiceSid, EnvironmentSid, optional) @@ -1156,8 +1156,8 @@ Retrieve a list of all Deployments. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the Service to read the Deployment resources from. | -**environmentSid** | **string**| The SID of the Environment used by the Deployment resources to read. | +**ServiceSid** | **string**| The SID of the Service to read the Deployment resources from. | +**EnvironmentSid** | **string**| The SID of the Environment used by the Deployment resources to read. | **optional** | ***ListDeploymentOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1169,7 +1169,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1191,7 +1191,7 @@ Name | Type | Description | Notes ## ListEnvironment -> ServerlessV1ServiceEnvironmentReadResponse ListEnvironment(ctx, serviceSid, optional) +> ServerlessV1ServiceEnvironmentReadResponse ListEnvironment(ctx, ServiceSid, optional) @@ -1203,7 +1203,7 @@ Retrieve a list of all environments. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the Service to read the Environment resources from. | +**ServiceSid** | **string**| The SID of the Service to read the Environment resources from. | **optional** | ***ListEnvironmentOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1214,7 +1214,7 @@ Optional parameters are passed through a pointer to a ListEnvironmentOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1236,7 +1236,7 @@ Name | Type | Description | Notes ## ListFunction -> ServerlessV1ServiceFunctionReadResponse ListFunction(ctx, serviceSid, optional) +> ServerlessV1ServiceFunctionReadResponse ListFunction(ctx, ServiceSid, optional) @@ -1248,7 +1248,7 @@ Retrieve a list of all Functions. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the Service to read the Function resources from. | +**ServiceSid** | **string**| The SID of the Service to read the Function resources from. | **optional** | ***ListFunctionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1259,7 +1259,7 @@ Optional parameters are passed through a pointer to a ListFunctionOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1281,7 +1281,7 @@ Name | Type | Description | Notes ## ListFunctionVersion -> ServerlessV1ServiceFunctionFunctionVersionReadResponse ListFunctionVersion(ctx, serviceSid, functionSid, optional) +> ServerlessV1ServiceFunctionFunctionVersionReadResponse ListFunctionVersion(ctx, ServiceSid, FunctionSid, optional) @@ -1293,8 +1293,8 @@ Retrieve a list of all Function Version resources. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the Service to read the Function Version resources from. | -**functionSid** | **string**| The SID of the function that is the parent of the Function Version resources to read. | +**ServiceSid** | **string**| The SID of the Service to read the Function Version resources from. | +**FunctionSid** | **string**| The SID of the function that is the parent of the Function Version resources to read. | **optional** | ***ListFunctionVersionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1306,7 +1306,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1328,7 +1328,7 @@ Name | Type | Description | Notes ## ListLog -> ServerlessV1ServiceEnvironmentLogReadResponse ListLog(ctx, serviceSid, environmentSid, optional) +> ServerlessV1ServiceEnvironmentLogReadResponse ListLog(ctx, ServiceSid, EnvironmentSid, optional) @@ -1340,8 +1340,8 @@ Retrieve a list of all logs. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the Service to read the Log resource from. | -**environmentSid** | **string**| The SID of the environment with the Log resources to read. | +**ServiceSid** | **string**| The SID of the Service to read the Log resource from. | +**EnvironmentSid** | **string**| The SID of the environment with the Log resources to read. | **optional** | ***ListLogOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1353,10 +1353,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **functionSid** | **optional.String**| The SID of the function whose invocation produced the Log resources to read. | - **startDate** | **optional.Time**| The date/time (in GMT, ISO 8601) after which the Log resources must have been created. Defaults to 1 day prior to current date/time. | - **endDate** | **optional.Time**| The date/time (in GMT, ISO 8601) before which the Log resources must have been created. Defaults to current date/time. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **FunctionSid** | **optional.String**| The SID of the function whose invocation produced the Log resources to read. | + **StartDate** | **optional.Time**| The date/time (in GMT, ISO 8601) after which the Log resources must have been created. Defaults to 1 day prior to current date/time. | + **EndDate** | **optional.Time**| The date/time (in GMT, ISO 8601) before which the Log resources must have been created. Defaults to current date/time. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1399,7 +1399,7 @@ Optional parameters are passed through a pointer to a ListServiceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1421,7 +1421,7 @@ Name | Type | Description | Notes ## ListVariable -> ServerlessV1ServiceEnvironmentVariableReadResponse ListVariable(ctx, serviceSid, environmentSid, optional) +> ServerlessV1ServiceEnvironmentVariableReadResponse ListVariable(ctx, ServiceSid, EnvironmentSid, optional) @@ -1433,8 +1433,8 @@ Retrieve a list of all Variables. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the Service to read the Variable resources from. | -**environmentSid** | **string**| The SID of the Environment with the Variable resources to read. | +**ServiceSid** | **string**| The SID of the Service to read the Variable resources from. | +**EnvironmentSid** | **string**| The SID of the Environment with the Variable resources to read. | **optional** | ***ListVariableOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1446,7 +1446,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1468,7 +1468,7 @@ Name | Type | Description | Notes ## UpdateAsset -> ServerlessV1ServiceAsset UpdateAsset(ctx, serviceSid, sid, optional) +> ServerlessV1ServiceAsset UpdateAsset(ctx, ServiceSid, Sid, optional) @@ -1480,8 +1480,8 @@ Update a specific Asset resource. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the Service to update the Asset resource from. | -**sid** | **string**| The SID that identifies the Asset resource to update. | +**ServiceSid** | **string**| The SID of the Service to update the Asset resource from. | +**Sid** | **string**| The SID that identifies the Asset resource to update. | **optional** | ***UpdateAssetOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1493,7 +1493,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| A descriptive string that you create to describe the Asset resource. It can be a maximum of 255 characters. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the Asset resource. It can be a maximum of 255 characters. | ### Return type @@ -1515,7 +1515,7 @@ Name | Type | Description | Notes ## UpdateFunction -> ServerlessV1ServiceFunction UpdateFunction(ctx, serviceSid, sid, optional) +> ServerlessV1ServiceFunction UpdateFunction(ctx, ServiceSid, Sid, optional) @@ -1527,8 +1527,8 @@ Update a specific Function resource. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the Service to update the Function resource from. | -**sid** | **string**| The SID of the Function resource to update. | +**ServiceSid** | **string**| The SID of the Service to update the Function resource from. | +**Sid** | **string**| The SID of the Function resource to update. | **optional** | ***UpdateFunctionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1540,7 +1540,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| A descriptive string that you create to describe the Function resource. It can be a maximum of 255 characters. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the Function resource. It can be a maximum of 255 characters. | ### Return type @@ -1562,7 +1562,7 @@ Name | Type | Description | Notes ## UpdateService -> ServerlessV1Service UpdateService(ctx, sid, optional) +> ServerlessV1Service UpdateService(ctx, Sid, optional) @@ -1574,7 +1574,7 @@ Update a specific Service resource. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The `sid` or `unique_name` of the Service resource to update. | +**Sid** | **string**| The `sid` or `unique_name` of the Service resource to update. | **optional** | ***UpdateServiceOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1585,9 +1585,9 @@ Optional parameters are passed through a pointer to a UpdateServiceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| A descriptive string that you create to describe the Service resource. It can be a maximum of 255 characters. | - **includeCredentials** | **optional.Bool**| Whether to inject Account credentials into a function invocation context. | - **uiEditable** | **optional.Bool**| Whether the Service resource's properties and subresources can be edited via the UI. The default value is `false`. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the Service resource. It can be a maximum of 255 characters. | + **IncludeCredentials** | **optional.Bool**| Whether to inject Account credentials into a function invocation context. | + **UiEditable** | **optional.Bool**| Whether the Service resource's properties and subresources can be edited via the UI. The default value is `false`. | ### Return type @@ -1609,7 +1609,7 @@ Name | Type | Description | Notes ## UpdateVariable -> ServerlessV1ServiceEnvironmentVariable UpdateVariable(ctx, serviceSid, environmentSid, sid, optional) +> ServerlessV1ServiceEnvironmentVariable UpdateVariable(ctx, ServiceSid, EnvironmentSid, Sid, optional) @@ -1621,9 +1621,9 @@ Update a specific Variable. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the Service to update the Variable resource under. | -**environmentSid** | **string**| The SID of the Environment with the Variable resource to update. | -**sid** | **string**| The SID of the Variable resource to update. | +**ServiceSid** | **string**| The SID of the Service to update the Variable resource under. | +**EnvironmentSid** | **string**| The SID of the Environment with the Variable resource to update. | +**Sid** | **string**| The SID of the Variable resource to update. | **optional** | ***UpdateVariableOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1636,8 +1636,8 @@ Name | Type | Description | Notes - **key** | **optional.String**| A string by which the Variable resource can be referenced. It can be a maximum of 128 characters. | - **value** | **optional.String**| A string that contains the actual value of the Variable. It can be a maximum of 450 bytes in size. | + **Key** | **optional.String**| A string by which the Variable resource can be referenced. It can be a maximum of 128 characters. | + **Value** | **optional.String**| A string that contains the actual value of the Variable. It can be a maximum of 450 bytes in size. | ### Return type diff --git a/rest/serverless/v1/model_serverless_v1_service.go b/rest/serverless/v1/model_serverless_v1_service.go index ff0c47f58..7c78bb894 100644 --- a/rest/serverless/v1/model_serverless_v1_service.go +++ b/rest/serverless/v1/model_serverless_v1_service.go @@ -14,14 +14,14 @@ import ( ) // ServerlessV1Service struct for ServerlessV1Service type ServerlessV1Service struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - IncludeCredentials bool `json:"include_credentials,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Sid string `json:"sid,omitempty"` - UiEditable bool `json:"ui_editable,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + IncludeCredentials bool `json:"IncludeCredentials,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Sid string `json:"Sid,omitempty"` + UiEditable bool `json:"UiEditable,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/serverless/v1/model_serverless_v1_service_asset.go b/rest/serverless/v1/model_serverless_v1_service_asset.go index 61e20d9d5..4abc69ed2 100644 --- a/rest/serverless/v1/model_serverless_v1_service_asset.go +++ b/rest/serverless/v1/model_serverless_v1_service_asset.go @@ -14,12 +14,12 @@ import ( ) // ServerlessV1ServiceAsset struct for ServerlessV1ServiceAsset type ServerlessV1ServiceAsset struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/serverless/v1/model_serverless_v1_service_asset_asset_version.go b/rest/serverless/v1/model_serverless_v1_service_asset_asset_version.go index bb56c3b83..63cf20bc3 100644 --- a/rest/serverless/v1/model_serverless_v1_service_asset_asset_version.go +++ b/rest/serverless/v1/model_serverless_v1_service_asset_asset_version.go @@ -14,12 +14,12 @@ import ( ) // ServerlessV1ServiceAssetAssetVersion struct for ServerlessV1ServiceAssetAssetVersion type ServerlessV1ServiceAssetAssetVersion struct { - AccountSid string `json:"account_sid,omitempty"` - AssetSid string `json:"asset_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - Path string `json:"path,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` - Visibility string `json:"visibility,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AssetSid string `json:"AssetSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + Path string `json:"Path,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` + Visibility string `json:"Visibility,omitempty"` } diff --git a/rest/serverless/v1/model_serverless_v1_service_asset_asset_version_read_response.go b/rest/serverless/v1/model_serverless_v1_service_asset_asset_version_read_response.go index dd4cdbdfc..b4ad54ef3 100644 --- a/rest/serverless/v1/model_serverless_v1_service_asset_asset_version_read_response.go +++ b/rest/serverless/v1/model_serverless_v1_service_asset_asset_version_read_response.go @@ -11,6 +11,6 @@ package openapi // ServerlessV1ServiceAssetAssetVersionReadResponse struct for ServerlessV1ServiceAssetAssetVersionReadResponse type ServerlessV1ServiceAssetAssetVersionReadResponse struct { - AssetVersions []ServerlessV1ServiceAssetAssetVersion `json:"asset_versions,omitempty"` - Meta ServerlessV1ServiceReadResponseMeta `json:"meta,omitempty"` + AssetVersions []ServerlessV1ServiceAssetAssetVersion `json:"AssetVersions,omitempty"` + Meta ServerlessV1ServiceReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/serverless/v1/model_serverless_v1_service_asset_read_response.go b/rest/serverless/v1/model_serverless_v1_service_asset_read_response.go index cac52d479..cc5212615 100644 --- a/rest/serverless/v1/model_serverless_v1_service_asset_read_response.go +++ b/rest/serverless/v1/model_serverless_v1_service_asset_read_response.go @@ -11,6 +11,6 @@ package openapi // ServerlessV1ServiceAssetReadResponse struct for ServerlessV1ServiceAssetReadResponse type ServerlessV1ServiceAssetReadResponse struct { - Assets []ServerlessV1ServiceAsset `json:"assets,omitempty"` - Meta ServerlessV1ServiceReadResponseMeta `json:"meta,omitempty"` + Assets []ServerlessV1ServiceAsset `json:"Assets,omitempty"` + Meta ServerlessV1ServiceReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/serverless/v1/model_serverless_v1_service_build.go b/rest/serverless/v1/model_serverless_v1_service_build.go index 020cdf837..682162b99 100644 --- a/rest/serverless/v1/model_serverless_v1_service_build.go +++ b/rest/serverless/v1/model_serverless_v1_service_build.go @@ -14,15 +14,15 @@ import ( ) // ServerlessV1ServiceBuild struct for ServerlessV1ServiceBuild type ServerlessV1ServiceBuild struct { - AccountSid string `json:"account_sid,omitempty"` - AssetVersions []map[string]interface{} `json:"asset_versions,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Dependencies []map[string]interface{} `json:"dependencies,omitempty"` - FunctionVersions []map[string]interface{} `json:"function_versions,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AssetVersions []map[string]interface{} `json:"AssetVersions,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Dependencies []map[string]interface{} `json:"Dependencies,omitempty"` + FunctionVersions []map[string]interface{} `json:"FunctionVersions,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Status string `json:"Status,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/serverless/v1/model_serverless_v1_service_build_build_status.go b/rest/serverless/v1/model_serverless_v1_service_build_build_status.go index 424243130..807c09852 100644 --- a/rest/serverless/v1/model_serverless_v1_service_build_build_status.go +++ b/rest/serverless/v1/model_serverless_v1_service_build_build_status.go @@ -11,9 +11,9 @@ package openapi // ServerlessV1ServiceBuildBuildStatus struct for ServerlessV1ServiceBuildBuildStatus type ServerlessV1ServiceBuildBuildStatus struct { - AccountSid string `json:"account_sid,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Status string `json:"Status,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/serverless/v1/model_serverless_v1_service_build_read_response.go b/rest/serverless/v1/model_serverless_v1_service_build_read_response.go index 367fe2f87..5232c079d 100644 --- a/rest/serverless/v1/model_serverless_v1_service_build_read_response.go +++ b/rest/serverless/v1/model_serverless_v1_service_build_read_response.go @@ -11,6 +11,6 @@ package openapi // ServerlessV1ServiceBuildReadResponse struct for ServerlessV1ServiceBuildReadResponse type ServerlessV1ServiceBuildReadResponse struct { - Builds []ServerlessV1ServiceBuild `json:"builds,omitempty"` - Meta ServerlessV1ServiceReadResponseMeta `json:"meta,omitempty"` + Builds []ServerlessV1ServiceBuild `json:"Builds,omitempty"` + Meta ServerlessV1ServiceReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/serverless/v1/model_serverless_v1_service_environment.go b/rest/serverless/v1/model_serverless_v1_service_environment.go index 653a90882..0112499b6 100644 --- a/rest/serverless/v1/model_serverless_v1_service_environment.go +++ b/rest/serverless/v1/model_serverless_v1_service_environment.go @@ -14,15 +14,15 @@ import ( ) // ServerlessV1ServiceEnvironment struct for ServerlessV1ServiceEnvironment type ServerlessV1ServiceEnvironment struct { - AccountSid string `json:"account_sid,omitempty"` - BuildSid string `json:"build_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - DomainName string `json:"domain_name,omitempty"` - DomainSuffix string `json:"domain_suffix,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + BuildSid string `json:"BuildSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + DomainName string `json:"DomainName,omitempty"` + DomainSuffix string `json:"DomainSuffix,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/serverless/v1/model_serverless_v1_service_environment_deployment.go b/rest/serverless/v1/model_serverless_v1_service_environment_deployment.go index baaa97d79..3f2ccb1b8 100644 --- a/rest/serverless/v1/model_serverless_v1_service_environment_deployment.go +++ b/rest/serverless/v1/model_serverless_v1_service_environment_deployment.go @@ -14,12 +14,12 @@ import ( ) // ServerlessV1ServiceEnvironmentDeployment struct for ServerlessV1ServiceEnvironmentDeployment type ServerlessV1ServiceEnvironmentDeployment struct { - AccountSid string `json:"account_sid,omitempty"` - BuildSid string `json:"build_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - EnvironmentSid string `json:"environment_sid,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + BuildSid string `json:"BuildSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + EnvironmentSid string `json:"EnvironmentSid,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/serverless/v1/model_serverless_v1_service_environment_deployment_read_response.go b/rest/serverless/v1/model_serverless_v1_service_environment_deployment_read_response.go index e30519dd1..b9868cc65 100644 --- a/rest/serverless/v1/model_serverless_v1_service_environment_deployment_read_response.go +++ b/rest/serverless/v1/model_serverless_v1_service_environment_deployment_read_response.go @@ -11,6 +11,6 @@ package openapi // ServerlessV1ServiceEnvironmentDeploymentReadResponse struct for ServerlessV1ServiceEnvironmentDeploymentReadResponse type ServerlessV1ServiceEnvironmentDeploymentReadResponse struct { - Deployments []ServerlessV1ServiceEnvironmentDeployment `json:"deployments,omitempty"` - Meta ServerlessV1ServiceReadResponseMeta `json:"meta,omitempty"` + Deployments []ServerlessV1ServiceEnvironmentDeployment `json:"Deployments,omitempty"` + Meta ServerlessV1ServiceReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/serverless/v1/model_serverless_v1_service_environment_log.go b/rest/serverless/v1/model_serverless_v1_service_environment_log.go index 2a470537e..fa029fa52 100644 --- a/rest/serverless/v1/model_serverless_v1_service_environment_log.go +++ b/rest/serverless/v1/model_serverless_v1_service_environment_log.go @@ -14,16 +14,16 @@ import ( ) // ServerlessV1ServiceEnvironmentLog struct for ServerlessV1ServiceEnvironmentLog type ServerlessV1ServiceEnvironmentLog struct { - AccountSid string `json:"account_sid,omitempty"` - BuildSid string `json:"build_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DeploymentSid string `json:"deployment_sid,omitempty"` - EnvironmentSid string `json:"environment_sid,omitempty"` - FunctionSid string `json:"function_sid,omitempty"` - Level string `json:"level,omitempty"` - Message string `json:"message,omitempty"` - RequestSid string `json:"request_sid,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + BuildSid string `json:"BuildSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DeploymentSid string `json:"DeploymentSid,omitempty"` + EnvironmentSid string `json:"EnvironmentSid,omitempty"` + FunctionSid string `json:"FunctionSid,omitempty"` + Level string `json:"Level,omitempty"` + Message string `json:"Message,omitempty"` + RequestSid string `json:"RequestSid,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/serverless/v1/model_serverless_v1_service_environment_log_read_response.go b/rest/serverless/v1/model_serverless_v1_service_environment_log_read_response.go index 801e14bae..70d33c34b 100644 --- a/rest/serverless/v1/model_serverless_v1_service_environment_log_read_response.go +++ b/rest/serverless/v1/model_serverless_v1_service_environment_log_read_response.go @@ -11,6 +11,6 @@ package openapi // ServerlessV1ServiceEnvironmentLogReadResponse struct for ServerlessV1ServiceEnvironmentLogReadResponse type ServerlessV1ServiceEnvironmentLogReadResponse struct { - Logs []ServerlessV1ServiceEnvironmentLog `json:"logs,omitempty"` - Meta ServerlessV1ServiceReadResponseMeta `json:"meta,omitempty"` + Logs []ServerlessV1ServiceEnvironmentLog `json:"Logs,omitempty"` + Meta ServerlessV1ServiceReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/serverless/v1/model_serverless_v1_service_environment_read_response.go b/rest/serverless/v1/model_serverless_v1_service_environment_read_response.go index e85f38da7..58907d9c0 100644 --- a/rest/serverless/v1/model_serverless_v1_service_environment_read_response.go +++ b/rest/serverless/v1/model_serverless_v1_service_environment_read_response.go @@ -11,6 +11,6 @@ package openapi // ServerlessV1ServiceEnvironmentReadResponse struct for ServerlessV1ServiceEnvironmentReadResponse type ServerlessV1ServiceEnvironmentReadResponse struct { - Environments []ServerlessV1ServiceEnvironment `json:"environments,omitempty"` - Meta ServerlessV1ServiceReadResponseMeta `json:"meta,omitempty"` + Environments []ServerlessV1ServiceEnvironment `json:"Environments,omitempty"` + Meta ServerlessV1ServiceReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/serverless/v1/model_serverless_v1_service_environment_variable.go b/rest/serverless/v1/model_serverless_v1_service_environment_variable.go index 846f78e76..178dedfac 100644 --- a/rest/serverless/v1/model_serverless_v1_service_environment_variable.go +++ b/rest/serverless/v1/model_serverless_v1_service_environment_variable.go @@ -14,13 +14,13 @@ import ( ) // ServerlessV1ServiceEnvironmentVariable struct for ServerlessV1ServiceEnvironmentVariable type ServerlessV1ServiceEnvironmentVariable struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - EnvironmentSid string `json:"environment_sid,omitempty"` - Key string `json:"key,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` - Value string `json:"value,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + EnvironmentSid string `json:"EnvironmentSid,omitempty"` + Key string `json:"Key,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` + Value string `json:"Value,omitempty"` } diff --git a/rest/serverless/v1/model_serverless_v1_service_environment_variable_read_response.go b/rest/serverless/v1/model_serverless_v1_service_environment_variable_read_response.go index c532a4d9e..fe2f59253 100644 --- a/rest/serverless/v1/model_serverless_v1_service_environment_variable_read_response.go +++ b/rest/serverless/v1/model_serverless_v1_service_environment_variable_read_response.go @@ -11,6 +11,6 @@ package openapi // ServerlessV1ServiceEnvironmentVariableReadResponse struct for ServerlessV1ServiceEnvironmentVariableReadResponse type ServerlessV1ServiceEnvironmentVariableReadResponse struct { - Meta ServerlessV1ServiceReadResponseMeta `json:"meta,omitempty"` - Variables []ServerlessV1ServiceEnvironmentVariable `json:"variables,omitempty"` + Meta ServerlessV1ServiceReadResponseMeta `json:"Meta,omitempty"` + Variables []ServerlessV1ServiceEnvironmentVariable `json:"Variables,omitempty"` } diff --git a/rest/serverless/v1/model_serverless_v1_service_function.go b/rest/serverless/v1/model_serverless_v1_service_function.go index 11f6b2c1c..ec6400a87 100644 --- a/rest/serverless/v1/model_serverless_v1_service_function.go +++ b/rest/serverless/v1/model_serverless_v1_service_function.go @@ -14,12 +14,12 @@ import ( ) // ServerlessV1ServiceFunction struct for ServerlessV1ServiceFunction type ServerlessV1ServiceFunction struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/serverless/v1/model_serverless_v1_service_function_function_version.go b/rest/serverless/v1/model_serverless_v1_service_function_function_version.go index 189d3a14c..b4ab6056d 100644 --- a/rest/serverless/v1/model_serverless_v1_service_function_function_version.go +++ b/rest/serverless/v1/model_serverless_v1_service_function_function_version.go @@ -14,13 +14,13 @@ import ( ) // ServerlessV1ServiceFunctionFunctionVersion struct for ServerlessV1ServiceFunctionFunctionVersion type ServerlessV1ServiceFunctionFunctionVersion struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - FunctionSid string `json:"function_sid,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Path string `json:"path,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` - Visibility string `json:"visibility,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + FunctionSid string `json:"FunctionSid,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Path string `json:"Path,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` + Visibility string `json:"Visibility,omitempty"` } diff --git a/rest/serverless/v1/model_serverless_v1_service_function_function_version_function_version_content.go b/rest/serverless/v1/model_serverless_v1_service_function_function_version_function_version_content.go index 5812c4cb5..6a7ea470a 100644 --- a/rest/serverless/v1/model_serverless_v1_service_function_function_version_function_version_content.go +++ b/rest/serverless/v1/model_serverless_v1_service_function_function_version_function_version_content.go @@ -11,10 +11,10 @@ package openapi // ServerlessV1ServiceFunctionFunctionVersionFunctionVersionContent struct for ServerlessV1ServiceFunctionFunctionVersionFunctionVersionContent type ServerlessV1ServiceFunctionFunctionVersionFunctionVersionContent struct { - AccountSid string `json:"account_sid,omitempty"` - Content string `json:"content,omitempty"` - FunctionSid string `json:"function_sid,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Content string `json:"Content,omitempty"` + FunctionSid string `json:"FunctionSid,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/serverless/v1/model_serverless_v1_service_function_function_version_read_response.go b/rest/serverless/v1/model_serverless_v1_service_function_function_version_read_response.go index 02b48e32d..c98b5e40b 100644 --- a/rest/serverless/v1/model_serverless_v1_service_function_function_version_read_response.go +++ b/rest/serverless/v1/model_serverless_v1_service_function_function_version_read_response.go @@ -11,6 +11,6 @@ package openapi // ServerlessV1ServiceFunctionFunctionVersionReadResponse struct for ServerlessV1ServiceFunctionFunctionVersionReadResponse type ServerlessV1ServiceFunctionFunctionVersionReadResponse struct { - FunctionVersions []ServerlessV1ServiceFunctionFunctionVersion `json:"function_versions,omitempty"` - Meta ServerlessV1ServiceReadResponseMeta `json:"meta,omitempty"` + FunctionVersions []ServerlessV1ServiceFunctionFunctionVersion `json:"FunctionVersions,omitempty"` + Meta ServerlessV1ServiceReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/serverless/v1/model_serverless_v1_service_function_read_response.go b/rest/serverless/v1/model_serverless_v1_service_function_read_response.go index f8459901d..7c9f720fd 100644 --- a/rest/serverless/v1/model_serverless_v1_service_function_read_response.go +++ b/rest/serverless/v1/model_serverless_v1_service_function_read_response.go @@ -11,6 +11,6 @@ package openapi // ServerlessV1ServiceFunctionReadResponse struct for ServerlessV1ServiceFunctionReadResponse type ServerlessV1ServiceFunctionReadResponse struct { - Functions []ServerlessV1ServiceFunction `json:"functions,omitempty"` - Meta ServerlessV1ServiceReadResponseMeta `json:"meta,omitempty"` + Functions []ServerlessV1ServiceFunction `json:"Functions,omitempty"` + Meta ServerlessV1ServiceReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/serverless/v1/model_serverless_v1_service_read_response.go b/rest/serverless/v1/model_serverless_v1_service_read_response.go index 84f66e1d4..3a3d7ccd6 100644 --- a/rest/serverless/v1/model_serverless_v1_service_read_response.go +++ b/rest/serverless/v1/model_serverless_v1_service_read_response.go @@ -11,6 +11,6 @@ package openapi // ServerlessV1ServiceReadResponse struct for ServerlessV1ServiceReadResponse type ServerlessV1ServiceReadResponse struct { - Meta ServerlessV1ServiceReadResponseMeta `json:"meta,omitempty"` - Services []ServerlessV1Service `json:"services,omitempty"` + Meta ServerlessV1ServiceReadResponseMeta `json:"Meta,omitempty"` + Services []ServerlessV1Service `json:"Services,omitempty"` } diff --git a/rest/serverless/v1/model_serverless_v1_service_read_response_meta.go b/rest/serverless/v1/model_serverless_v1_service_read_response_meta.go index e1d70abaa..1967b1e39 100644 --- a/rest/serverless/v1/model_serverless_v1_service_read_response_meta.go +++ b/rest/serverless/v1/model_serverless_v1_service_read_response_meta.go @@ -11,11 +11,11 @@ package openapi // ServerlessV1ServiceReadResponseMeta struct for ServerlessV1ServiceReadResponseMeta type ServerlessV1ServiceReadResponseMeta struct { - FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` - NextPageUrl string `json:"next_page_url,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUrl string `json:"previous_page_url,omitempty"` - Url string `json:"url,omitempty"` + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/studio/v1/api_default.go b/rest/studio/v1/api_default.go index 0c98d03f2..ba25f75ef 100644 --- a/rest/studio/v1/api_default.go +++ b/rest/studio/v1/api_default.go @@ -15,6 +15,8 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" + "time" ) type DefaultApiService struct { @@ -38,22 +40,23 @@ type CreateEngagementParams struct { /* CreateEngagement Method for CreateEngagement Triggers a new Engagement for the Flow - * @param flowSid The SID of the Flow. + * @param FlowSid The SID of the Flow. * @param optional nil or *CreateEngagementOpts - Optional Parameters: * @param "From" (string) - The Twilio phone number to send messages or initiate calls from during the Flow Engagement. Available as variable `{{flow.channel.address}}` * @param "Parameters" (map[string]interface{}) - A JSON string we will add to your flow's context and that you can access as variables inside your flow. For example, if you pass in `Parameters={'name':'Zeke'}` then inside a widget you can reference the variable `{{flow.data.name}}` which will return the string 'Zeke'. Note: the JSON value must explicitly be passed as a string, not as a hash object. Depending on your particular HTTP library, you may need to add quotes or URL encode your JSON string. * @param "To" (string) - The Contact phone number to start a Studio Flow Engagement, available as variable `{{contact.channel.address}}`. @return StudioV1FlowEngagement */ -func (c *DefaultApiService) CreateEngagement(flowSid string, params *CreateEngagementParams) (*StudioV1FlowEngagement, error) { +func (c *DefaultApiService) CreateEngagement(FlowSid string, params *CreateEngagementParams) (*StudioV1FlowEngagement, error) { path := "/v1/Flows/{FlowSid}/Engagements" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) + data := url.Values{} headers := 0 if params != nil && params.From != nil { - data.Set("From", *params.From) + data.Set("From", *params.From) } if params != nil && params.Parameters != nil { v, err := json.Marshal(params.Parameters) @@ -62,10 +65,10 @@ func (c *DefaultApiService) CreateEngagement(flowSid string, params *CreateEngag return nil, err } - data.Set("Parameters", string(v)) + data.Set("Parameters", fmt.Sprint(v)) } if params != nil && params.To != nil { - data.Set("To", *params.To) + data.Set("To", *params.To) } @@ -93,22 +96,23 @@ type CreateExecutionParams struct { /* CreateExecution Method for CreateExecution Triggers a new Execution for the Flow - * @param flowSid The SID of the Excecution's Flow. + * @param FlowSid The SID of the Excecution's Flow. * @param optional nil or *CreateExecutionOpts - Optional Parameters: * @param "From" (string) - The Twilio phone number to send messages or initiate calls from during the Flow's Execution. Available as variable `{{flow.channel.address}}`. * @param "Parameters" (map[string]interface{}) - JSON data that will be added to the Flow's context and that can be accessed as variables inside your Flow. For example, if you pass in `Parameters={\\\"name\\\":\\\"Zeke\\\"}`, a widget in your Flow can reference the variable `{{flow.data.name}}`, which returns \\\"Zeke\\\". Note: the JSON value must explicitly be passed as a string, not as a hash object. Depending on your particular HTTP library, you may need to add quotes or URL encode the JSON string. * @param "To" (string) - The Contact phone number to start a Studio Flow Execution, available as variable `{{contact.channel.address}}`. @return StudioV1FlowExecution */ -func (c *DefaultApiService) CreateExecution(flowSid string, params *CreateExecutionParams) (*StudioV1FlowExecution, error) { +func (c *DefaultApiService) CreateExecution(FlowSid string, params *CreateExecutionParams) (*StudioV1FlowExecution, error) { path := "/v1/Flows/{FlowSid}/Executions" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) + data := url.Values{} headers := 0 if params != nil && params.From != nil { - data.Set("From", *params.From) + data.Set("From", *params.From) } if params != nil && params.Parameters != nil { v, err := json.Marshal(params.Parameters) @@ -117,10 +121,10 @@ func (c *DefaultApiService) CreateExecution(flowSid string, params *CreateExecut return nil, err } - data.Set("Parameters", string(v)) + data.Set("Parameters", fmt.Sprint(v)) } if params != nil && params.To != nil { - data.Set("To", *params.To) + data.Set("To", *params.To) } @@ -142,15 +146,16 @@ func (c *DefaultApiService) CreateExecution(flowSid string, params *CreateExecut /* DeleteEngagement Method for DeleteEngagement Delete this Engagement and all Steps relating to it. - * @param flowSid The SID of the Flow to delete Engagements from. - * @param sid The SID of the Engagement resource to delete. + * @param FlowSid The SID of the Flow to delete Engagements from. + * @param Sid The SID of the Engagement resource to delete. */ -func (c *DefaultApiService) DeleteEngagement(flowSid string, sid string) (error) { +func (c *DefaultApiService) DeleteEngagement(FlowSid string, Sid string) (error) { path := "/v1/Flows/{FlowSid}/Engagements/{Sid}" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -168,15 +173,16 @@ func (c *DefaultApiService) DeleteEngagement(flowSid string, sid string) (error) /* DeleteExecution Method for DeleteExecution Delete the Execution and all Steps relating to it. - * @param flowSid The SID of the Flow with the Execution resources to delete. - * @param sid The SID of the Execution resource to delete. + * @param FlowSid The SID of the Flow with the Execution resources to delete. + * @param Sid The SID of the Execution resource to delete. */ -func (c *DefaultApiService) DeleteExecution(flowSid string, sid string) (error) { +func (c *DefaultApiService) DeleteExecution(FlowSid string, Sid string) (error) { path := "/v1/Flows/{FlowSid}/Executions/{Sid}" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -194,13 +200,14 @@ func (c *DefaultApiService) DeleteExecution(flowSid string, sid string) (error) /* DeleteFlow Method for DeleteFlow Delete a specific Flow. - * @param sid The SID of the Flow resource to delete. + * @param Sid The SID of the Flow resource to delete. */ -func (c *DefaultApiService) DeleteFlow(sid string) (error) { +func (c *DefaultApiService) DeleteFlow(Sid string) (error) { path := "/v1/Flows/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -218,16 +225,17 @@ func (c *DefaultApiService) DeleteFlow(sid string) (error) { /* FetchEngagement Method for FetchEngagement Retrieve an Engagement - * @param flowSid The SID of the Flow. - * @param sid The SID of the Engagement resource to fetch. + * @param FlowSid The SID of the Flow. + * @param Sid The SID of the Engagement resource to fetch. @return StudioV1FlowEngagement */ -func (c *DefaultApiService) FetchEngagement(flowSid string, sid string) (*StudioV1FlowEngagement, error) { +func (c *DefaultApiService) FetchEngagement(FlowSid string, Sid string) (*StudioV1FlowEngagement, error) { path := "/v1/Flows/{FlowSid}/Engagements/{Sid}" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -250,16 +258,17 @@ func (c *DefaultApiService) FetchEngagement(flowSid string, sid string) (*Studio /* FetchEngagementContext Method for FetchEngagementContext Retrieve the most recent context for an Engagement. - * @param flowSid The SID of the Flow. - * @param engagementSid The SID of the Engagement. + * @param FlowSid The SID of the Flow. + * @param EngagementSid The SID of the Engagement. @return StudioV1FlowEngagementEngagementContext */ -func (c *DefaultApiService) FetchEngagementContext(flowSid string, engagementSid string) (*StudioV1FlowEngagementEngagementContext, error) { +func (c *DefaultApiService) FetchEngagementContext(FlowSid string, EngagementSid string) (*StudioV1FlowEngagementEngagementContext, error) { path := "/v1/Flows/{FlowSid}/Engagements/{EngagementSid}/Context" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"EngagementSid"+"}", engagementSid, -1) + path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) + path = strings.Replace(path, "{"+"EngagementSid"+"}", EngagementSid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -282,16 +291,17 @@ func (c *DefaultApiService) FetchEngagementContext(flowSid string, engagementSid /* FetchExecution Method for FetchExecution Retrieve an Execution - * @param flowSid The SID of the Flow with the Execution resource to fetch - * @param sid The SID of the Execution resource to fetch. + * @param FlowSid The SID of the Flow with the Execution resource to fetch + * @param Sid The SID of the Execution resource to fetch. @return StudioV1FlowExecution */ -func (c *DefaultApiService) FetchExecution(flowSid string, sid string) (*StudioV1FlowExecution, error) { +func (c *DefaultApiService) FetchExecution(FlowSid string, Sid string) (*StudioV1FlowExecution, error) { path := "/v1/Flows/{FlowSid}/Executions/{Sid}" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -314,16 +324,17 @@ func (c *DefaultApiService) FetchExecution(flowSid string, sid string) (*StudioV /* FetchExecutionContext Method for FetchExecutionContext Retrieve the most recent context for an Execution. - * @param flowSid The SID of the Flow with the Execution context to fetch. - * @param executionSid The SID of the Execution context to fetch. + * @param FlowSid The SID of the Flow with the Execution context to fetch. + * @param ExecutionSid The SID of the Execution context to fetch. @return StudioV1FlowExecutionExecutionContext */ -func (c *DefaultApiService) FetchExecutionContext(flowSid string, executionSid string) (*StudioV1FlowExecutionExecutionContext, error) { +func (c *DefaultApiService) FetchExecutionContext(FlowSid string, ExecutionSid string) (*StudioV1FlowExecutionExecutionContext, error) { path := "/v1/Flows/{FlowSid}/Executions/{ExecutionSid}/Context" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"ExecutionSid"+"}", executionSid, -1) + path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) + path = strings.Replace(path, "{"+"ExecutionSid"+"}", ExecutionSid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -346,18 +357,19 @@ func (c *DefaultApiService) FetchExecutionContext(flowSid string, executionSid s /* FetchExecutionStep Method for FetchExecutionStep Retrieve a Step. - * @param flowSid The SID of the Flow with the Step to fetch. - * @param executionSid The SID of the Execution resource with the Step to fetch. - * @param sid The SID of the ExecutionStep resource to fetch. + * @param FlowSid The SID of the Flow with the Step to fetch. + * @param ExecutionSid The SID of the Execution resource with the Step to fetch. + * @param Sid The SID of the ExecutionStep resource to fetch. @return StudioV1FlowExecutionExecutionStep */ -func (c *DefaultApiService) FetchExecutionStep(flowSid string, executionSid string, sid string) (*StudioV1FlowExecutionExecutionStep, error) { +func (c *DefaultApiService) FetchExecutionStep(FlowSid string, ExecutionSid string, Sid string) (*StudioV1FlowExecutionExecutionStep, error) { path := "/v1/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps/{Sid}" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"ExecutionSid"+"}", executionSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) + path = strings.Replace(path, "{"+"ExecutionSid"+"}", ExecutionSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -380,18 +392,19 @@ func (c *DefaultApiService) FetchExecutionStep(flowSid string, executionSid stri /* FetchExecutionStepContext Method for FetchExecutionStepContext Retrieve the context for an Execution Step. - * @param flowSid The SID of the Flow with the Step to fetch. - * @param executionSid The SID of the Execution resource with the Step to fetch. - * @param stepSid The SID of the Step to fetch. + * @param FlowSid The SID of the Flow with the Step to fetch. + * @param ExecutionSid The SID of the Execution resource with the Step to fetch. + * @param StepSid The SID of the Step to fetch. @return StudioV1FlowExecutionExecutionStepExecutionStepContext */ -func (c *DefaultApiService) FetchExecutionStepContext(flowSid string, executionSid string, stepSid string) (*StudioV1FlowExecutionExecutionStepExecutionStepContext, error) { +func (c *DefaultApiService) FetchExecutionStepContext(FlowSid string, ExecutionSid string, StepSid string) (*StudioV1FlowExecutionExecutionStepExecutionStepContext, error) { path := "/v1/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps/{StepSid}/Context" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"ExecutionSid"+"}", executionSid, -1) - path = strings.Replace(path, "{"+"StepSid"+"}", stepSid, -1) + path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) + path = strings.Replace(path, "{"+"ExecutionSid"+"}", ExecutionSid, -1) + path = strings.Replace(path, "{"+"StepSid"+"}", StepSid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -414,14 +427,15 @@ func (c *DefaultApiService) FetchExecutionStepContext(flowSid string, executionS /* FetchFlow Method for FetchFlow Retrieve a specific Flow. - * @param sid The SID of the Flow resource to fetch. + * @param Sid The SID of the Flow resource to fetch. @return StudioV1Flow */ -func (c *DefaultApiService) FetchFlow(sid string) (*StudioV1Flow, error) { +func (c *DefaultApiService) FetchFlow(Sid string) (*StudioV1Flow, error) { path := "/v1/Flows/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -444,18 +458,19 @@ func (c *DefaultApiService) FetchFlow(sid string) (*StudioV1Flow, error) { /* FetchStep Method for FetchStep Retrieve a Step. - * @param flowSid The SID of the Flow with the Step to fetch. - * @param engagementSid The SID of the Engagement with the Step to fetch. - * @param sid The SID of the Step resource to fetch. + * @param FlowSid The SID of the Flow with the Step to fetch. + * @param EngagementSid The SID of the Engagement with the Step to fetch. + * @param Sid The SID of the Step resource to fetch. @return StudioV1FlowEngagementStep */ -func (c *DefaultApiService) FetchStep(flowSid string, engagementSid string, sid string) (*StudioV1FlowEngagementStep, error) { +func (c *DefaultApiService) FetchStep(FlowSid string, EngagementSid string, Sid string) (*StudioV1FlowEngagementStep, error) { path := "/v1/Flows/{FlowSid}/Engagements/{EngagementSid}/Steps/{Sid}" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"EngagementSid"+"}", engagementSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) + path = strings.Replace(path, "{"+"EngagementSid"+"}", EngagementSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -478,18 +493,19 @@ func (c *DefaultApiService) FetchStep(flowSid string, engagementSid string, sid /* FetchStepContext Method for FetchStepContext Retrieve the context for an Engagement Step. - * @param flowSid The SID of the Flow with the Step to fetch. - * @param engagementSid The SID of the Engagement with the Step to fetch. - * @param stepSid The SID of the Step to fetch + * @param FlowSid The SID of the Flow with the Step to fetch. + * @param EngagementSid The SID of the Engagement with the Step to fetch. + * @param StepSid The SID of the Step to fetch @return StudioV1FlowEngagementStepStepContext */ -func (c *DefaultApiService) FetchStepContext(flowSid string, engagementSid string, stepSid string) (*StudioV1FlowEngagementStepStepContext, error) { +func (c *DefaultApiService) FetchStepContext(FlowSid string, EngagementSid string, StepSid string) (*StudioV1FlowEngagementStepStepContext, error) { path := "/v1/Flows/{FlowSid}/Engagements/{EngagementSid}/Steps/{StepSid}/Context" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"EngagementSid"+"}", engagementSid, -1) - path = strings.Replace(path, "{"+"StepSid"+"}", stepSid, -1) + path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) + path = strings.Replace(path, "{"+"EngagementSid"+"}", EngagementSid, -1) + path = strings.Replace(path, "{"+"StepSid"+"}", StepSid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -516,20 +532,21 @@ type ListEngagementParams struct { /* ListEngagement Method for ListEngagement Retrieve a list of all Engagements for the Flow. - * @param flowSid The SID of the Flow to read Engagements from. + * @param FlowSid The SID of the Flow to read Engagements from. * @param optional nil or *ListEngagementOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return StudioV1FlowEngagementReadResponse */ -func (c *DefaultApiService) ListEngagement(flowSid string, params *ListEngagementParams) (*StudioV1FlowEngagementReadResponse, error) { +func (c *DefaultApiService) ListEngagement(FlowSid string, params *ListEngagementParams) (*StudioV1FlowEngagementReadResponse, error) { path := "/v1/Flows/{FlowSid}/Engagements" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -557,28 +574,29 @@ type ListExecutionParams struct { /* ListExecution Method for ListExecution Retrieve a list of all Executions for the Flow. - * @param flowSid The SID of the Flow with the Execution resources to read. + * @param FlowSid The SID of the Flow with the Execution resources to read. * @param optional nil or *ListExecutionOpts - Optional Parameters: * @param "DateCreatedFrom" (time.Time) - Only show Execution resources starting on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. * @param "DateCreatedTo" (time.Time) - Only show Execution resources starting before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return StudioV1FlowExecutionReadResponse */ -func (c *DefaultApiService) ListExecution(flowSid string, params *ListExecutionParams) (*StudioV1FlowExecutionReadResponse, error) { +func (c *DefaultApiService) ListExecution(FlowSid string, params *ListExecutionParams) (*StudioV1FlowExecutionReadResponse, error) { path := "/v1/Flows/{FlowSid}/Executions" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) + data := url.Values{} headers := 0 if params != nil && params.DateCreatedFrom != nil { - data.Set("DateCreatedFrom", string(*params.DateCreatedFrom)) + data.Set("DateCreatedFrom", fmt.Sprint(*params.DateCreatedFrom)) } if params != nil && params.DateCreatedTo != nil { - data.Set("DateCreatedTo", string(*params.DateCreatedTo)) + data.Set("DateCreatedTo", fmt.Sprint(*params.DateCreatedTo)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -604,22 +622,23 @@ type ListExecutionStepParams struct { /* ListExecutionStep Method for ListExecutionStep Retrieve a list of all Steps for an Execution. - * @param flowSid The SID of the Flow with the Steps to read. - * @param executionSid The SID of the Execution with the Steps to read. + * @param FlowSid The SID of the Flow with the Steps to read. + * @param ExecutionSid The SID of the Execution with the Steps to read. * @param optional nil or *ListExecutionStepOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return StudioV1FlowExecutionExecutionStepReadResponse */ -func (c *DefaultApiService) ListExecutionStep(flowSid string, executionSid string, params *ListExecutionStepParams) (*StudioV1FlowExecutionExecutionStepReadResponse, error) { +func (c *DefaultApiService) ListExecutionStep(FlowSid string, ExecutionSid string, params *ListExecutionStepParams) (*StudioV1FlowExecutionExecutionStepReadResponse, error) { path := "/v1/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"ExecutionSid"+"}", executionSid, -1) + path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) + path = strings.Replace(path, "{"+"ExecutionSid"+"}", ExecutionSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -652,11 +671,12 @@ Retrieve a list of all Flows. func (c *DefaultApiService) ListFlow(params *ListFlowParams) (*StudioV1FlowReadResponse, error) { path := "/v1/Flows" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -682,22 +702,23 @@ type ListStepParams struct { /* ListStep Method for ListStep Retrieve a list of all Steps for an Engagement. - * @param flowSid The SID of the Flow with the Step to read. - * @param engagementSid The SID of the Engagement with the Step to read. + * @param FlowSid The SID of the Flow with the Step to read. + * @param EngagementSid The SID of the Engagement with the Step to read. * @param optional nil or *ListStepOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return StudioV1FlowEngagementStepReadResponse */ -func (c *DefaultApiService) ListStep(flowSid string, engagementSid string, params *ListStepParams) (*StudioV1FlowEngagementStepReadResponse, error) { +func (c *DefaultApiService) ListStep(FlowSid string, EngagementSid string, params *ListStepParams) (*StudioV1FlowEngagementStepReadResponse, error) { path := "/v1/Flows/{FlowSid}/Engagements/{EngagementSid}/Steps" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"EngagementSid"+"}", engagementSid, -1) + path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) + path = strings.Replace(path, "{"+"EngagementSid"+"}", EngagementSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -723,22 +744,23 @@ type UpdateExecutionParams struct { /* UpdateExecution Method for UpdateExecution Update the status of an Execution to `ended`. - * @param flowSid The SID of the Flow with the Execution resources to update. - * @param sid The SID of the Execution resource to update. + * @param FlowSid The SID of the Flow with the Execution resources to update. + * @param Sid The SID of the Execution resource to update. * @param optional nil or *UpdateExecutionOpts - Optional Parameters: * @param "Status" (string) - The status of the Execution. Can only be `ended`. @return StudioV1FlowExecution */ -func (c *DefaultApiService) UpdateExecution(flowSid string, sid string, params *UpdateExecutionParams) (*StudioV1FlowExecution, error) { +func (c *DefaultApiService) UpdateExecution(FlowSid string, Sid string, params *UpdateExecutionParams) (*StudioV1FlowExecution, error) { path := "/v1/Flows/{FlowSid}/Executions/{Sid}" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } diff --git a/rest/studio/v1/docs/DefaultApi.md b/rest/studio/v1/docs/DefaultApi.md index f3eb666a0..e015e9fdb 100644 --- a/rest/studio/v1/docs/DefaultApi.md +++ b/rest/studio/v1/docs/DefaultApi.md @@ -29,7 +29,7 @@ Method | HTTP request | Description ## CreateEngagement -> StudioV1FlowEngagement CreateEngagement(ctx, flowSid, optional) +> StudioV1FlowEngagement CreateEngagement(ctx, FlowSid, optional) @@ -41,7 +41,7 @@ Triggers a new Engagement for the Flow Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**flowSid** | **string**| The SID of the Flow. | +**FlowSid** | **string**| The SID of the Flow. | **optional** | ***CreateEngagementOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -52,9 +52,9 @@ Optional parameters are passed through a pointer to a CreateEngagementOpts struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **from** | **optional.String**| The Twilio phone number to send messages or initiate calls from during the Flow Engagement. Available as variable `{{flow.channel.address}}` | - **parameters** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string we will add to your flow's context and that you can access as variables inside your flow. For example, if you pass in `Parameters={'name':'Zeke'}` then inside a widget you can reference the variable `{{flow.data.name}}` which will return the string 'Zeke'. Note: the JSON value must explicitly be passed as a string, not as a hash object. Depending on your particular HTTP library, you may need to add quotes or URL encode your JSON string. | - **to** | **optional.String**| The Contact phone number to start a Studio Flow Engagement, available as variable `{{contact.channel.address}}`. | + **From** | **optional.String**| The Twilio phone number to send messages or initiate calls from during the Flow Engagement. Available as variable `{{flow.channel.address}}` | + **Parameters** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string we will add to your flow's context and that you can access as variables inside your flow. For example, if you pass in `Parameters={'name':'Zeke'}` then inside a widget you can reference the variable `{{flow.data.name}}` which will return the string 'Zeke'. Note: the JSON value must explicitly be passed as a string, not as a hash object. Depending on your particular HTTP library, you may need to add quotes or URL encode your JSON string. | + **To** | **optional.String**| The Contact phone number to start a Studio Flow Engagement, available as variable `{{contact.channel.address}}`. | ### Return type @@ -76,7 +76,7 @@ Name | Type | Description | Notes ## CreateExecution -> StudioV1FlowExecution CreateExecution(ctx, flowSid, optional) +> StudioV1FlowExecution CreateExecution(ctx, FlowSid, optional) @@ -88,7 +88,7 @@ Triggers a new Execution for the Flow Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**flowSid** | **string**| The SID of the Excecution's Flow. | +**FlowSid** | **string**| The SID of the Excecution's Flow. | **optional** | ***CreateExecutionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -99,9 +99,9 @@ Optional parameters are passed through a pointer to a CreateExecutionOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **from** | **optional.String**| The Twilio phone number to send messages or initiate calls from during the Flow's Execution. Available as variable `{{flow.channel.address}}`. | - **parameters** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| JSON data that will be added to the Flow's context and that can be accessed as variables inside your Flow. For example, if you pass in `Parameters={\\\"name\\\":\\\"Zeke\\\"}`, a widget in your Flow can reference the variable `{{flow.data.name}}`, which returns \\\"Zeke\\\". Note: the JSON value must explicitly be passed as a string, not as a hash object. Depending on your particular HTTP library, you may need to add quotes or URL encode the JSON string. | - **to** | **optional.String**| The Contact phone number to start a Studio Flow Execution, available as variable `{{contact.channel.address}}`. | + **From** | **optional.String**| The Twilio phone number to send messages or initiate calls from during the Flow's Execution. Available as variable `{{flow.channel.address}}`. | + **Parameters** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| JSON data that will be added to the Flow's context and that can be accessed as variables inside your Flow. For example, if you pass in `Parameters={\\\"name\\\":\\\"Zeke\\\"}`, a widget in your Flow can reference the variable `{{flow.data.name}}`, which returns \\\"Zeke\\\". Note: the JSON value must explicitly be passed as a string, not as a hash object. Depending on your particular HTTP library, you may need to add quotes or URL encode the JSON string. | + **To** | **optional.String**| The Contact phone number to start a Studio Flow Execution, available as variable `{{contact.channel.address}}`. | ### Return type @@ -123,7 +123,7 @@ Name | Type | Description | Notes ## DeleteEngagement -> DeleteEngagement(ctx, flowSid, sid) +> DeleteEngagement(ctx, FlowSid, Sid) @@ -135,8 +135,8 @@ Delete this Engagement and all Steps relating to it. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**flowSid** | **string**| The SID of the Flow to delete Engagements from. | -**sid** | **string**| The SID of the Engagement resource to delete. | +**FlowSid** | **string**| The SID of the Flow to delete Engagements from. | +**Sid** | **string**| The SID of the Engagement resource to delete. | ### Return type @@ -158,7 +158,7 @@ Name | Type | Description | Notes ## DeleteExecution -> DeleteExecution(ctx, flowSid, sid) +> DeleteExecution(ctx, FlowSid, Sid) @@ -170,8 +170,8 @@ Delete the Execution and all Steps relating to it. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**flowSid** | **string**| The SID of the Flow with the Execution resources to delete. | -**sid** | **string**| The SID of the Execution resource to delete. | +**FlowSid** | **string**| The SID of the Flow with the Execution resources to delete. | +**Sid** | **string**| The SID of the Execution resource to delete. | ### Return type @@ -193,7 +193,7 @@ Name | Type | Description | Notes ## DeleteFlow -> DeleteFlow(ctx, sid) +> DeleteFlow(ctx, Sid) @@ -205,7 +205,7 @@ Delete a specific Flow. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Flow resource to delete. | +**Sid** | **string**| The SID of the Flow resource to delete. | ### Return type @@ -227,7 +227,7 @@ Name | Type | Description | Notes ## FetchEngagement -> StudioV1FlowEngagement FetchEngagement(ctx, flowSid, sid) +> StudioV1FlowEngagement FetchEngagement(ctx, FlowSid, Sid) @@ -239,8 +239,8 @@ Retrieve an Engagement Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**flowSid** | **string**| The SID of the Flow. | -**sid** | **string**| The SID of the Engagement resource to fetch. | +**FlowSid** | **string**| The SID of the Flow. | +**Sid** | **string**| The SID of the Engagement resource to fetch. | ### Return type @@ -262,7 +262,7 @@ Name | Type | Description | Notes ## FetchEngagementContext -> StudioV1FlowEngagementEngagementContext FetchEngagementContext(ctx, flowSid, engagementSid) +> StudioV1FlowEngagementEngagementContext FetchEngagementContext(ctx, FlowSid, EngagementSid) @@ -274,8 +274,8 @@ Retrieve the most recent context for an Engagement. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**flowSid** | **string**| The SID of the Flow. | -**engagementSid** | **string**| The SID of the Engagement. | +**FlowSid** | **string**| The SID of the Flow. | +**EngagementSid** | **string**| The SID of the Engagement. | ### Return type @@ -297,7 +297,7 @@ Name | Type | Description | Notes ## FetchExecution -> StudioV1FlowExecution FetchExecution(ctx, flowSid, sid) +> StudioV1FlowExecution FetchExecution(ctx, FlowSid, Sid) @@ -309,8 +309,8 @@ Retrieve an Execution Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**flowSid** | **string**| The SID of the Flow with the Execution resource to fetch | -**sid** | **string**| The SID of the Execution resource to fetch. | +**FlowSid** | **string**| The SID of the Flow with the Execution resource to fetch | +**Sid** | **string**| The SID of the Execution resource to fetch. | ### Return type @@ -332,7 +332,7 @@ Name | Type | Description | Notes ## FetchExecutionContext -> StudioV1FlowExecutionExecutionContext FetchExecutionContext(ctx, flowSid, executionSid) +> StudioV1FlowExecutionExecutionContext FetchExecutionContext(ctx, FlowSid, ExecutionSid) @@ -344,8 +344,8 @@ Retrieve the most recent context for an Execution. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**flowSid** | **string**| The SID of the Flow with the Execution context to fetch. | -**executionSid** | **string**| The SID of the Execution context to fetch. | +**FlowSid** | **string**| The SID of the Flow with the Execution context to fetch. | +**ExecutionSid** | **string**| The SID of the Execution context to fetch. | ### Return type @@ -367,7 +367,7 @@ Name | Type | Description | Notes ## FetchExecutionStep -> StudioV1FlowExecutionExecutionStep FetchExecutionStep(ctx, flowSid, executionSid, sid) +> StudioV1FlowExecutionExecutionStep FetchExecutionStep(ctx, FlowSid, ExecutionSid, Sid) @@ -379,9 +379,9 @@ Retrieve a Step. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**flowSid** | **string**| The SID of the Flow with the Step to fetch. | -**executionSid** | **string**| The SID of the Execution resource with the Step to fetch. | -**sid** | **string**| The SID of the ExecutionStep resource to fetch. | +**FlowSid** | **string**| The SID of the Flow with the Step to fetch. | +**ExecutionSid** | **string**| The SID of the Execution resource with the Step to fetch. | +**Sid** | **string**| The SID of the ExecutionStep resource to fetch. | ### Return type @@ -403,7 +403,7 @@ Name | Type | Description | Notes ## FetchExecutionStepContext -> StudioV1FlowExecutionExecutionStepExecutionStepContext FetchExecutionStepContext(ctx, flowSid, executionSid, stepSid) +> StudioV1FlowExecutionExecutionStepExecutionStepContext FetchExecutionStepContext(ctx, FlowSid, ExecutionSid, StepSid) @@ -415,9 +415,9 @@ Retrieve the context for an Execution Step. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**flowSid** | **string**| The SID of the Flow with the Step to fetch. | -**executionSid** | **string**| The SID of the Execution resource with the Step to fetch. | -**stepSid** | **string**| The SID of the Step to fetch. | +**FlowSid** | **string**| The SID of the Flow with the Step to fetch. | +**ExecutionSid** | **string**| The SID of the Execution resource with the Step to fetch. | +**StepSid** | **string**| The SID of the Step to fetch. | ### Return type @@ -439,7 +439,7 @@ Name | Type | Description | Notes ## FetchFlow -> StudioV1Flow FetchFlow(ctx, sid) +> StudioV1Flow FetchFlow(ctx, Sid) @@ -451,7 +451,7 @@ Retrieve a specific Flow. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Flow resource to fetch. | +**Sid** | **string**| The SID of the Flow resource to fetch. | ### Return type @@ -473,7 +473,7 @@ Name | Type | Description | Notes ## FetchStep -> StudioV1FlowEngagementStep FetchStep(ctx, flowSid, engagementSid, sid) +> StudioV1FlowEngagementStep FetchStep(ctx, FlowSid, EngagementSid, Sid) @@ -485,9 +485,9 @@ Retrieve a Step. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**flowSid** | **string**| The SID of the Flow with the Step to fetch. | -**engagementSid** | **string**| The SID of the Engagement with the Step to fetch. | -**sid** | **string**| The SID of the Step resource to fetch. | +**FlowSid** | **string**| The SID of the Flow with the Step to fetch. | +**EngagementSid** | **string**| The SID of the Engagement with the Step to fetch. | +**Sid** | **string**| The SID of the Step resource to fetch. | ### Return type @@ -509,7 +509,7 @@ Name | Type | Description | Notes ## FetchStepContext -> StudioV1FlowEngagementStepStepContext FetchStepContext(ctx, flowSid, engagementSid, stepSid) +> StudioV1FlowEngagementStepStepContext FetchStepContext(ctx, FlowSid, EngagementSid, StepSid) @@ -521,9 +521,9 @@ Retrieve the context for an Engagement Step. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**flowSid** | **string**| The SID of the Flow with the Step to fetch. | -**engagementSid** | **string**| The SID of the Engagement with the Step to fetch. | -**stepSid** | **string**| The SID of the Step to fetch | +**FlowSid** | **string**| The SID of the Flow with the Step to fetch. | +**EngagementSid** | **string**| The SID of the Engagement with the Step to fetch. | +**StepSid** | **string**| The SID of the Step to fetch | ### Return type @@ -545,7 +545,7 @@ Name | Type | Description | Notes ## ListEngagement -> StudioV1FlowEngagementReadResponse ListEngagement(ctx, flowSid, optional) +> StudioV1FlowEngagementReadResponse ListEngagement(ctx, FlowSid, optional) @@ -557,7 +557,7 @@ Retrieve a list of all Engagements for the Flow. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**flowSid** | **string**| The SID of the Flow to read Engagements from. | +**FlowSid** | **string**| The SID of the Flow to read Engagements from. | **optional** | ***ListEngagementOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -568,7 +568,7 @@ Optional parameters are passed through a pointer to a ListEngagementOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -590,7 +590,7 @@ Name | Type | Description | Notes ## ListExecution -> StudioV1FlowExecutionReadResponse ListExecution(ctx, flowSid, optional) +> StudioV1FlowExecutionReadResponse ListExecution(ctx, FlowSid, optional) @@ -602,7 +602,7 @@ Retrieve a list of all Executions for the Flow. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**flowSid** | **string**| The SID of the Flow with the Execution resources to read. | +**FlowSid** | **string**| The SID of the Flow with the Execution resources to read. | **optional** | ***ListExecutionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -613,9 +613,9 @@ Optional parameters are passed through a pointer to a ListExecutionOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **dateCreatedFrom** | **optional.Time**| Only show Execution resources starting on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. | - **dateCreatedTo** | **optional.Time**| Only show Execution resources starting before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **DateCreatedFrom** | **optional.Time**| Only show Execution resources starting on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. | + **DateCreatedTo** | **optional.Time**| Only show Execution resources starting before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -637,7 +637,7 @@ Name | Type | Description | Notes ## ListExecutionStep -> StudioV1FlowExecutionExecutionStepReadResponse ListExecutionStep(ctx, flowSid, executionSid, optional) +> StudioV1FlowExecutionExecutionStepReadResponse ListExecutionStep(ctx, FlowSid, ExecutionSid, optional) @@ -649,8 +649,8 @@ Retrieve a list of all Steps for an Execution. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**flowSid** | **string**| The SID of the Flow with the Steps to read. | -**executionSid** | **string**| The SID of the Execution with the Steps to read. | +**FlowSid** | **string**| The SID of the Flow with the Steps to read. | +**ExecutionSid** | **string**| The SID of the Execution with the Steps to read. | **optional** | ***ListExecutionStepOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -662,7 +662,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -705,7 +705,7 @@ Optional parameters are passed through a pointer to a ListFlowOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -727,7 +727,7 @@ Name | Type | Description | Notes ## ListStep -> StudioV1FlowEngagementStepReadResponse ListStep(ctx, flowSid, engagementSid, optional) +> StudioV1FlowEngagementStepReadResponse ListStep(ctx, FlowSid, EngagementSid, optional) @@ -739,8 +739,8 @@ Retrieve a list of all Steps for an Engagement. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**flowSid** | **string**| The SID of the Flow with the Step to read. | -**engagementSid** | **string**| The SID of the Engagement with the Step to read. | +**FlowSid** | **string**| The SID of the Flow with the Step to read. | +**EngagementSid** | **string**| The SID of the Engagement with the Step to read. | **optional** | ***ListStepOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -752,7 +752,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -774,7 +774,7 @@ Name | Type | Description | Notes ## UpdateExecution -> StudioV1FlowExecution UpdateExecution(ctx, flowSid, sid, optional) +> StudioV1FlowExecution UpdateExecution(ctx, FlowSid, Sid, optional) @@ -786,8 +786,8 @@ Update the status of an Execution to `ended`. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**flowSid** | **string**| The SID of the Flow with the Execution resources to update. | -**sid** | **string**| The SID of the Execution resource to update. | +**FlowSid** | **string**| The SID of the Flow with the Execution resources to update. | +**Sid** | **string**| The SID of the Execution resource to update. | **optional** | ***UpdateExecutionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -799,7 +799,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | **optional.String**| The status of the Execution. Can only be `ended`. | + **Status** | **optional.String**| The status of the Execution. Can only be `ended`. | ### Return type diff --git a/rest/studio/v1/model_studio_v1_flow.go b/rest/studio/v1/model_studio_v1_flow.go index 1135c3e63..a40a7448e 100644 --- a/rest/studio/v1/model_studio_v1_flow.go +++ b/rest/studio/v1/model_studio_v1_flow.go @@ -14,13 +14,13 @@ import ( ) // StudioV1Flow struct for StudioV1Flow type StudioV1Flow struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - Url string `json:"url,omitempty"` - Version int32 `json:"version,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Sid string `json:"Sid,omitempty"` + Status string `json:"Status,omitempty"` + Url string `json:"Url,omitempty"` + Version int32 `json:"Version,omitempty"` } diff --git a/rest/studio/v1/model_studio_v1_flow_engagement.go b/rest/studio/v1/model_studio_v1_flow_engagement.go index 0e949e538..fb019dddd 100644 --- a/rest/studio/v1/model_studio_v1_flow_engagement.go +++ b/rest/studio/v1/model_studio_v1_flow_engagement.go @@ -14,15 +14,15 @@ import ( ) // StudioV1FlowEngagement struct for StudioV1FlowEngagement type StudioV1FlowEngagement struct { - AccountSid string `json:"account_sid,omitempty"` - ContactChannelAddress string `json:"contact_channel_address,omitempty"` - ContactSid string `json:"contact_sid,omitempty"` - Context map[string]interface{} `json:"context,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FlowSid string `json:"flow_sid,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ContactChannelAddress string `json:"ContactChannelAddress,omitempty"` + ContactSid string `json:"ContactSid,omitempty"` + Context map[string]interface{} `json:"Context,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FlowSid string `json:"FlowSid,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Sid string `json:"Sid,omitempty"` + Status string `json:"Status,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/studio/v1/model_studio_v1_flow_engagement_engagement_context.go b/rest/studio/v1/model_studio_v1_flow_engagement_engagement_context.go index 136b4fd25..724a503e8 100644 --- a/rest/studio/v1/model_studio_v1_flow_engagement_engagement_context.go +++ b/rest/studio/v1/model_studio_v1_flow_engagement_engagement_context.go @@ -11,9 +11,9 @@ package openapi // StudioV1FlowEngagementEngagementContext struct for StudioV1FlowEngagementEngagementContext type StudioV1FlowEngagementEngagementContext struct { - AccountSid string `json:"account_sid,omitempty"` - Context map[string]interface{} `json:"context,omitempty"` - EngagementSid string `json:"engagement_sid,omitempty"` - FlowSid string `json:"flow_sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Context map[string]interface{} `json:"Context,omitempty"` + EngagementSid string `json:"EngagementSid,omitempty"` + FlowSid string `json:"FlowSid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/studio/v1/model_studio_v1_flow_engagement_read_response.go b/rest/studio/v1/model_studio_v1_flow_engagement_read_response.go index a18d691bd..99163ab1c 100644 --- a/rest/studio/v1/model_studio_v1_flow_engagement_read_response.go +++ b/rest/studio/v1/model_studio_v1_flow_engagement_read_response.go @@ -11,6 +11,6 @@ package openapi // StudioV1FlowEngagementReadResponse struct for StudioV1FlowEngagementReadResponse type StudioV1FlowEngagementReadResponse struct { - Engagements []StudioV1FlowEngagement `json:"engagements,omitempty"` - Meta StudioV1FlowReadResponseMeta `json:"meta,omitempty"` + Engagements []StudioV1FlowEngagement `json:"Engagements,omitempty"` + Meta StudioV1FlowReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/studio/v1/model_studio_v1_flow_engagement_step.go b/rest/studio/v1/model_studio_v1_flow_engagement_step.go index 2aa22dc18..a5ace5417 100644 --- a/rest/studio/v1/model_studio_v1_flow_engagement_step.go +++ b/rest/studio/v1/model_studio_v1_flow_engagement_step.go @@ -14,16 +14,16 @@ import ( ) // StudioV1FlowEngagementStep struct for StudioV1FlowEngagementStep type StudioV1FlowEngagementStep struct { - AccountSid string `json:"account_sid,omitempty"` - Context map[string]interface{} `json:"context,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - EngagementSid string `json:"engagement_sid,omitempty"` - FlowSid string `json:"flow_sid,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Name string `json:"name,omitempty"` - Sid string `json:"sid,omitempty"` - TransitionedFrom string `json:"transitioned_from,omitempty"` - TransitionedTo string `json:"transitioned_to,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Context map[string]interface{} `json:"Context,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + EngagementSid string `json:"EngagementSid,omitempty"` + FlowSid string `json:"FlowSid,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Name string `json:"Name,omitempty"` + Sid string `json:"Sid,omitempty"` + TransitionedFrom string `json:"TransitionedFrom,omitempty"` + TransitionedTo string `json:"TransitionedTo,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/studio/v1/model_studio_v1_flow_engagement_step_read_response.go b/rest/studio/v1/model_studio_v1_flow_engagement_step_read_response.go index 243238d0f..263f1fbf6 100644 --- a/rest/studio/v1/model_studio_v1_flow_engagement_step_read_response.go +++ b/rest/studio/v1/model_studio_v1_flow_engagement_step_read_response.go @@ -11,6 +11,6 @@ package openapi // StudioV1FlowEngagementStepReadResponse struct for StudioV1FlowEngagementStepReadResponse type StudioV1FlowEngagementStepReadResponse struct { - Meta StudioV1FlowReadResponseMeta `json:"meta,omitempty"` - Steps []StudioV1FlowEngagementStep `json:"steps,omitempty"` + Meta StudioV1FlowReadResponseMeta `json:"Meta,omitempty"` + Steps []StudioV1FlowEngagementStep `json:"Steps,omitempty"` } diff --git a/rest/studio/v1/model_studio_v1_flow_engagement_step_step_context.go b/rest/studio/v1/model_studio_v1_flow_engagement_step_step_context.go index 678651b26..58722cb73 100644 --- a/rest/studio/v1/model_studio_v1_flow_engagement_step_step_context.go +++ b/rest/studio/v1/model_studio_v1_flow_engagement_step_step_context.go @@ -11,10 +11,10 @@ package openapi // StudioV1FlowEngagementStepStepContext struct for StudioV1FlowEngagementStepStepContext type StudioV1FlowEngagementStepStepContext struct { - AccountSid string `json:"account_sid,omitempty"` - Context map[string]interface{} `json:"context,omitempty"` - EngagementSid string `json:"engagement_sid,omitempty"` - FlowSid string `json:"flow_sid,omitempty"` - StepSid string `json:"step_sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Context map[string]interface{} `json:"Context,omitempty"` + EngagementSid string `json:"EngagementSid,omitempty"` + FlowSid string `json:"FlowSid,omitempty"` + StepSid string `json:"StepSid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/studio/v1/model_studio_v1_flow_execution.go b/rest/studio/v1/model_studio_v1_flow_execution.go index 4e328db94..ad6c01989 100644 --- a/rest/studio/v1/model_studio_v1_flow_execution.go +++ b/rest/studio/v1/model_studio_v1_flow_execution.go @@ -14,15 +14,15 @@ import ( ) // StudioV1FlowExecution struct for StudioV1FlowExecution type StudioV1FlowExecution struct { - AccountSid string `json:"account_sid,omitempty"` - ContactChannelAddress string `json:"contact_channel_address,omitempty"` - ContactSid string `json:"contact_sid,omitempty"` - Context map[string]interface{} `json:"context,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FlowSid string `json:"flow_sid,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ContactChannelAddress string `json:"ContactChannelAddress,omitempty"` + ContactSid string `json:"ContactSid,omitempty"` + Context map[string]interface{} `json:"Context,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FlowSid string `json:"FlowSid,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Sid string `json:"Sid,omitempty"` + Status string `json:"Status,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/studio/v1/model_studio_v1_flow_execution_execution_context.go b/rest/studio/v1/model_studio_v1_flow_execution_execution_context.go index 2fc50c747..89339cace 100644 --- a/rest/studio/v1/model_studio_v1_flow_execution_execution_context.go +++ b/rest/studio/v1/model_studio_v1_flow_execution_execution_context.go @@ -11,9 +11,9 @@ package openapi // StudioV1FlowExecutionExecutionContext struct for StudioV1FlowExecutionExecutionContext type StudioV1FlowExecutionExecutionContext struct { - AccountSid string `json:"account_sid,omitempty"` - Context map[string]interface{} `json:"context,omitempty"` - ExecutionSid string `json:"execution_sid,omitempty"` - FlowSid string `json:"flow_sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Context map[string]interface{} `json:"Context,omitempty"` + ExecutionSid string `json:"ExecutionSid,omitempty"` + FlowSid string `json:"FlowSid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/studio/v1/model_studio_v1_flow_execution_execution_step.go b/rest/studio/v1/model_studio_v1_flow_execution_execution_step.go index eb958a651..bc8636637 100644 --- a/rest/studio/v1/model_studio_v1_flow_execution_execution_step.go +++ b/rest/studio/v1/model_studio_v1_flow_execution_execution_step.go @@ -14,16 +14,16 @@ import ( ) // StudioV1FlowExecutionExecutionStep struct for StudioV1FlowExecutionExecutionStep type StudioV1FlowExecutionExecutionStep struct { - AccountSid string `json:"account_sid,omitempty"` - Context map[string]interface{} `json:"context,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - ExecutionSid string `json:"execution_sid,omitempty"` - FlowSid string `json:"flow_sid,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Name string `json:"name,omitempty"` - Sid string `json:"sid,omitempty"` - TransitionedFrom string `json:"transitioned_from,omitempty"` - TransitionedTo string `json:"transitioned_to,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Context map[string]interface{} `json:"Context,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + ExecutionSid string `json:"ExecutionSid,omitempty"` + FlowSid string `json:"FlowSid,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Name string `json:"Name,omitempty"` + Sid string `json:"Sid,omitempty"` + TransitionedFrom string `json:"TransitionedFrom,omitempty"` + TransitionedTo string `json:"TransitionedTo,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/studio/v1/model_studio_v1_flow_execution_execution_step_execution_step_context.go b/rest/studio/v1/model_studio_v1_flow_execution_execution_step_execution_step_context.go index 8aa583364..33b655bf8 100644 --- a/rest/studio/v1/model_studio_v1_flow_execution_execution_step_execution_step_context.go +++ b/rest/studio/v1/model_studio_v1_flow_execution_execution_step_execution_step_context.go @@ -11,10 +11,10 @@ package openapi // StudioV1FlowExecutionExecutionStepExecutionStepContext struct for StudioV1FlowExecutionExecutionStepExecutionStepContext type StudioV1FlowExecutionExecutionStepExecutionStepContext struct { - AccountSid string `json:"account_sid,omitempty"` - Context map[string]interface{} `json:"context,omitempty"` - ExecutionSid string `json:"execution_sid,omitempty"` - FlowSid string `json:"flow_sid,omitempty"` - StepSid string `json:"step_sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Context map[string]interface{} `json:"Context,omitempty"` + ExecutionSid string `json:"ExecutionSid,omitempty"` + FlowSid string `json:"FlowSid,omitempty"` + StepSid string `json:"StepSid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/studio/v1/model_studio_v1_flow_execution_execution_step_read_response.go b/rest/studio/v1/model_studio_v1_flow_execution_execution_step_read_response.go index ff20fb0b8..8fb1d2ea9 100644 --- a/rest/studio/v1/model_studio_v1_flow_execution_execution_step_read_response.go +++ b/rest/studio/v1/model_studio_v1_flow_execution_execution_step_read_response.go @@ -11,6 +11,6 @@ package openapi // StudioV1FlowExecutionExecutionStepReadResponse struct for StudioV1FlowExecutionExecutionStepReadResponse type StudioV1FlowExecutionExecutionStepReadResponse struct { - Meta StudioV1FlowReadResponseMeta `json:"meta,omitempty"` - Steps []StudioV1FlowExecutionExecutionStep `json:"steps,omitempty"` + Meta StudioV1FlowReadResponseMeta `json:"Meta,omitempty"` + Steps []StudioV1FlowExecutionExecutionStep `json:"Steps,omitempty"` } diff --git a/rest/studio/v1/model_studio_v1_flow_execution_read_response.go b/rest/studio/v1/model_studio_v1_flow_execution_read_response.go index ed114035f..14ebfa0ab 100644 --- a/rest/studio/v1/model_studio_v1_flow_execution_read_response.go +++ b/rest/studio/v1/model_studio_v1_flow_execution_read_response.go @@ -11,6 +11,6 @@ package openapi // StudioV1FlowExecutionReadResponse struct for StudioV1FlowExecutionReadResponse type StudioV1FlowExecutionReadResponse struct { - Executions []StudioV1FlowExecution `json:"executions,omitempty"` - Meta StudioV1FlowReadResponseMeta `json:"meta,omitempty"` + Executions []StudioV1FlowExecution `json:"Executions,omitempty"` + Meta StudioV1FlowReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/studio/v1/model_studio_v1_flow_read_response.go b/rest/studio/v1/model_studio_v1_flow_read_response.go index bb8ad6745..c645e38a7 100644 --- a/rest/studio/v1/model_studio_v1_flow_read_response.go +++ b/rest/studio/v1/model_studio_v1_flow_read_response.go @@ -11,6 +11,6 @@ package openapi // StudioV1FlowReadResponse struct for StudioV1FlowReadResponse type StudioV1FlowReadResponse struct { - Flows []StudioV1Flow `json:"flows,omitempty"` - Meta StudioV1FlowReadResponseMeta `json:"meta,omitempty"` + Flows []StudioV1Flow `json:"Flows,omitempty"` + Meta StudioV1FlowReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/studio/v1/model_studio_v1_flow_read_response_meta.go b/rest/studio/v1/model_studio_v1_flow_read_response_meta.go index dbf66b88a..b3647eaeb 100644 --- a/rest/studio/v1/model_studio_v1_flow_read_response_meta.go +++ b/rest/studio/v1/model_studio_v1_flow_read_response_meta.go @@ -11,11 +11,11 @@ package openapi // StudioV1FlowReadResponseMeta struct for StudioV1FlowReadResponseMeta type StudioV1FlowReadResponseMeta struct { - FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` - NextPageUrl string `json:"next_page_url,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUrl string `json:"previous_page_url,omitempty"` - Url string `json:"url,omitempty"` + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/studio/v2/api_default.go b/rest/studio/v2/api_default.go index 533dfa2c6..123bcb127 100644 --- a/rest/studio/v2/api_default.go +++ b/rest/studio/v2/api_default.go @@ -15,6 +15,8 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" + "time" ) type DefaultApiService struct { @@ -38,22 +40,23 @@ type CreateExecutionParams struct { /* CreateExecution Method for CreateExecution Triggers a new Execution for the Flow - * @param flowSid The SID of the Excecution's Flow. + * @param FlowSid The SID of the Excecution's Flow. * @param optional nil or *CreateExecutionOpts - Optional Parameters: * @param "From" (string) - The Twilio phone number to send messages or initiate calls from during the Flow's Execution. Available as variable `{{flow.channel.address}}`. * @param "Parameters" (map[string]interface{}) - JSON data that will be added to the Flow's context and that can be accessed as variables inside your Flow. For example, if you pass in `Parameters={\\\"name\\\":\\\"Zeke\\\"}`, a widget in your Flow can reference the variable `{{flow.data.name}}`, which returns \\\"Zeke\\\". Note: the JSON value must explicitly be passed as a string, not as a hash object. Depending on your particular HTTP library, you may need to add quotes or URL encode the JSON string. * @param "To" (string) - The Contact phone number to start a Studio Flow Execution, available as variable `{{contact.channel.address}}`. @return StudioV2FlowExecution */ -func (c *DefaultApiService) CreateExecution(flowSid string, params *CreateExecutionParams) (*StudioV2FlowExecution, error) { +func (c *DefaultApiService) CreateExecution(FlowSid string, params *CreateExecutionParams) (*StudioV2FlowExecution, error) { path := "/v2/Flows/{FlowSid}/Executions" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) + data := url.Values{} headers := 0 if params != nil && params.From != nil { - data.Set("From", *params.From) + data.Set("From", *params.From) } if params != nil && params.Parameters != nil { v, err := json.Marshal(params.Parameters) @@ -62,10 +65,10 @@ func (c *DefaultApiService) CreateExecution(flowSid string, params *CreateExecut return nil, err } - data.Set("Parameters", string(v)) + data.Set("Parameters", fmt.Sprint(v)) } if params != nil && params.To != nil { - data.Set("To", *params.To) + data.Set("To", *params.To) } @@ -87,15 +90,16 @@ func (c *DefaultApiService) CreateExecution(flowSid string, params *CreateExecut /* DeleteExecution Method for DeleteExecution Delete the Execution and all Steps relating to it. - * @param flowSid The SID of the Flow with the Execution resources to delete. - * @param sid The SID of the Execution resource to delete. + * @param FlowSid The SID of the Flow with the Execution resources to delete. + * @param Sid The SID of the Execution resource to delete. */ -func (c *DefaultApiService) DeleteExecution(flowSid string, sid string) (error) { +func (c *DefaultApiService) DeleteExecution(FlowSid string, Sid string) (error) { path := "/v2/Flows/{FlowSid}/Executions/{Sid}" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -113,13 +117,14 @@ func (c *DefaultApiService) DeleteExecution(flowSid string, sid string) (error) /* DeleteFlow Method for DeleteFlow Delete a specific Flow. - * @param sid The SID of the Flow resource to delete. + * @param Sid The SID of the Flow resource to delete. */ -func (c *DefaultApiService) DeleteFlow(sid string) (error) { +func (c *DefaultApiService) DeleteFlow(Sid string) (error) { path := "/v2/Flows/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -137,16 +142,17 @@ func (c *DefaultApiService) DeleteFlow(sid string) (error) { /* FetchExecution Method for FetchExecution Retrieve an Execution - * @param flowSid The SID of the Flow with the Execution resource to fetch - * @param sid The SID of the Execution resource to fetch. + * @param FlowSid The SID of the Flow with the Execution resource to fetch + * @param Sid The SID of the Execution resource to fetch. @return StudioV2FlowExecution */ -func (c *DefaultApiService) FetchExecution(flowSid string, sid string) (*StudioV2FlowExecution, error) { +func (c *DefaultApiService) FetchExecution(FlowSid string, Sid string) (*StudioV2FlowExecution, error) { path := "/v2/Flows/{FlowSid}/Executions/{Sid}" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -169,16 +175,17 @@ func (c *DefaultApiService) FetchExecution(flowSid string, sid string) (*StudioV /* FetchExecutionContext Method for FetchExecutionContext Retrieve the most recent context for an Execution. - * @param flowSid The SID of the Flow with the Execution context to fetch. - * @param executionSid The SID of the Execution context to fetch. + * @param FlowSid The SID of the Flow with the Execution context to fetch. + * @param ExecutionSid The SID of the Execution context to fetch. @return StudioV2FlowExecutionExecutionContext */ -func (c *DefaultApiService) FetchExecutionContext(flowSid string, executionSid string) (*StudioV2FlowExecutionExecutionContext, error) { +func (c *DefaultApiService) FetchExecutionContext(FlowSid string, ExecutionSid string) (*StudioV2FlowExecutionExecutionContext, error) { path := "/v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Context" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"ExecutionSid"+"}", executionSid, -1) + path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) + path = strings.Replace(path, "{"+"ExecutionSid"+"}", ExecutionSid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -201,18 +208,19 @@ func (c *DefaultApiService) FetchExecutionContext(flowSid string, executionSid s /* FetchExecutionStep Method for FetchExecutionStep Retrieve a Step. - * @param flowSid The SID of the Flow with the Step to fetch. - * @param executionSid The SID of the Execution resource with the Step to fetch. - * @param sid The SID of the ExecutionStep resource to fetch. + * @param FlowSid The SID of the Flow with the Step to fetch. + * @param ExecutionSid The SID of the Execution resource with the Step to fetch. + * @param Sid The SID of the ExecutionStep resource to fetch. @return StudioV2FlowExecutionExecutionStep */ -func (c *DefaultApiService) FetchExecutionStep(flowSid string, executionSid string, sid string) (*StudioV2FlowExecutionExecutionStep, error) { +func (c *DefaultApiService) FetchExecutionStep(FlowSid string, ExecutionSid string, Sid string) (*StudioV2FlowExecutionExecutionStep, error) { path := "/v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps/{Sid}" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"ExecutionSid"+"}", executionSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) + path = strings.Replace(path, "{"+"ExecutionSid"+"}", ExecutionSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -235,18 +243,19 @@ func (c *DefaultApiService) FetchExecutionStep(flowSid string, executionSid stri /* FetchExecutionStepContext Method for FetchExecutionStepContext Retrieve the context for an Execution Step. - * @param flowSid The SID of the Flow with the Step to fetch. - * @param executionSid The SID of the Execution resource with the Step to fetch. - * @param stepSid The SID of the Step to fetch. + * @param FlowSid The SID of the Flow with the Step to fetch. + * @param ExecutionSid The SID of the Execution resource with the Step to fetch. + * @param StepSid The SID of the Step to fetch. @return StudioV2FlowExecutionExecutionStepExecutionStepContext */ -func (c *DefaultApiService) FetchExecutionStepContext(flowSid string, executionSid string, stepSid string) (*StudioV2FlowExecutionExecutionStepExecutionStepContext, error) { +func (c *DefaultApiService) FetchExecutionStepContext(FlowSid string, ExecutionSid string, StepSid string) (*StudioV2FlowExecutionExecutionStepExecutionStepContext, error) { path := "/v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps/{StepSid}/Context" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"ExecutionSid"+"}", executionSid, -1) - path = strings.Replace(path, "{"+"StepSid"+"}", stepSid, -1) + path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) + path = strings.Replace(path, "{"+"ExecutionSid"+"}", ExecutionSid, -1) + path = strings.Replace(path, "{"+"StepSid"+"}", StepSid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -269,14 +278,15 @@ func (c *DefaultApiService) FetchExecutionStepContext(flowSid string, executionS /* FetchFlow Method for FetchFlow Retrieve a specific Flow. - * @param sid The SID of the Flow resource to fetch. + * @param Sid The SID of the Flow resource to fetch. @return StudioV2Flow */ -func (c *DefaultApiService) FetchFlow(sid string) (*StudioV2Flow, error) { +func (c *DefaultApiService) FetchFlow(Sid string) (*StudioV2Flow, error) { path := "/v2/Flows/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -299,16 +309,17 @@ func (c *DefaultApiService) FetchFlow(sid string) (*StudioV2Flow, error) { /* FetchFlowRevision Method for FetchFlowRevision Retrieve a specific Flow revision. - * @param sid The SID of the Flow resource to fetch. - * @param revision Specific Revision number or can be `LatestPublished` and `LatestRevision`. + * @param Sid The SID of the Flow resource to fetch. + * @param Revision Specific Revision number or can be `LatestPublished` and `LatestRevision`. @return StudioV2FlowFlowRevision */ -func (c *DefaultApiService) FetchFlowRevision(sid string, revision string) (*StudioV2FlowFlowRevision, error) { +func (c *DefaultApiService) FetchFlowRevision(Sid string, Revision string) (*StudioV2FlowFlowRevision, error) { path := "/v2/Flows/{Sid}/Revisions/{Revision}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) - path = strings.Replace(path, "{"+"Revision"+"}", revision, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + path = strings.Replace(path, "{"+"Revision"+"}", Revision, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -330,14 +341,15 @@ func (c *DefaultApiService) FetchFlowRevision(sid string, revision string) (*Stu /* FetchTestUser Method for FetchTestUser - * @param sid + * @param Sid @return StudioV2FlowTestUser */ -func (c *DefaultApiService) FetchTestUser(sid string) (*StudioV2FlowTestUser, error) { +func (c *DefaultApiService) FetchTestUser(Sid string) (*StudioV2FlowTestUser, error) { path := "/v2/Flows/{Sid}/TestUsers" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -366,28 +378,29 @@ type ListExecutionParams struct { /* ListExecution Method for ListExecution Retrieve a list of all Executions for the Flow. - * @param flowSid The SID of the Flow with the Execution resources to read. + * @param FlowSid The SID of the Flow with the Execution resources to read. * @param optional nil or *ListExecutionOpts - Optional Parameters: * @param "DateCreatedFrom" (time.Time) - Only show Execution resources starting on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. * @param "DateCreatedTo" (time.Time) - Only show Execution resources starting before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return StudioV2FlowExecutionReadResponse */ -func (c *DefaultApiService) ListExecution(flowSid string, params *ListExecutionParams) (*StudioV2FlowExecutionReadResponse, error) { +func (c *DefaultApiService) ListExecution(FlowSid string, params *ListExecutionParams) (*StudioV2FlowExecutionReadResponse, error) { path := "/v2/Flows/{FlowSid}/Executions" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) + path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) + data := url.Values{} headers := 0 if params != nil && params.DateCreatedFrom != nil { - data.Set("DateCreatedFrom", string(*params.DateCreatedFrom)) + data.Set("DateCreatedFrom", fmt.Sprint(*params.DateCreatedFrom)) } if params != nil && params.DateCreatedTo != nil { - data.Set("DateCreatedTo", string(*params.DateCreatedTo)) + data.Set("DateCreatedTo", fmt.Sprint(*params.DateCreatedTo)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -413,22 +426,23 @@ type ListExecutionStepParams struct { /* ListExecutionStep Method for ListExecutionStep Retrieve a list of all Steps for an Execution. - * @param flowSid The SID of the Flow with the Steps to read. - * @param executionSid The SID of the Execution with the Steps to read. + * @param FlowSid The SID of the Flow with the Steps to read. + * @param ExecutionSid The SID of the Execution with the Steps to read. * @param optional nil or *ListExecutionStepOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return StudioV2FlowExecutionExecutionStepReadResponse */ -func (c *DefaultApiService) ListExecutionStep(flowSid string, executionSid string, params *ListExecutionStepParams) (*StudioV2FlowExecutionExecutionStepReadResponse, error) { +func (c *DefaultApiService) ListExecutionStep(FlowSid string, ExecutionSid string, params *ListExecutionStepParams) (*StudioV2FlowExecutionExecutionStepReadResponse, error) { path := "/v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"ExecutionSid"+"}", executionSid, -1) + path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) + path = strings.Replace(path, "{"+"ExecutionSid"+"}", ExecutionSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -454,20 +468,21 @@ type ListFlowRevisionParams struct { /* ListFlowRevision Method for ListFlowRevision Retrieve a list of all Flows revisions. - * @param sid The SID of the Flow resource to fetch. + * @param Sid The SID of the Flow resource to fetch. * @param optional nil or *ListFlowRevisionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return StudioV2FlowFlowRevisionReadResponse */ -func (c *DefaultApiService) ListFlowRevision(sid string, params *ListFlowRevisionParams) (*StudioV2FlowFlowRevisionReadResponse, error) { +func (c *DefaultApiService) ListFlowRevision(Sid string, params *ListFlowRevisionParams) (*StudioV2FlowFlowRevisionReadResponse, error) { path := "/v2/Flows/{Sid}/Revisions" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -493,22 +508,23 @@ type UpdateExecutionParams struct { /* UpdateExecution Method for UpdateExecution Update the status of an Execution to `ended`. - * @param flowSid The SID of the Flow with the Execution resources to update. - * @param sid The SID of the Execution resource to update. + * @param FlowSid The SID of the Flow with the Execution resources to update. + * @param Sid The SID of the Execution resource to update. * @param optional nil or *UpdateExecutionOpts - Optional Parameters: * @param "Status" (string) - The status of the Execution. Can only be `ended`. @return StudioV2FlowExecution */ -func (c *DefaultApiService) UpdateExecution(flowSid string, sid string, params *UpdateExecutionParams) (*StudioV2FlowExecution, error) { +func (c *DefaultApiService) UpdateExecution(FlowSid string, Sid string, params *UpdateExecutionParams) (*StudioV2FlowExecution, error) { path := "/v2/Flows/{FlowSid}/Executions/{Sid}" - path = strings.Replace(path, "{"+"FlowSid"+"}", flowSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } @@ -537,7 +553,7 @@ type UpdateFlowParams struct { /* UpdateFlow Method for UpdateFlow Update a Flow. - * @param sid The SID of the Flow resource to fetch. + * @param Sid The SID of the Flow resource to fetch. * @param optional nil or *UpdateFlowOpts - Optional Parameters: * @param "CommitMessage" (string) - Description on change made in the revision. * @param "Definition" (map[string]interface{}) - JSON representation of flow definition. @@ -545,15 +561,16 @@ Update a Flow. * @param "Status" (string) - The status of the Flow. Can be: `draft` or `published`. @return StudioV2Flow */ -func (c *DefaultApiService) UpdateFlow(sid string, params *UpdateFlowParams) (*StudioV2Flow, error) { +func (c *DefaultApiService) UpdateFlow(Sid string, params *UpdateFlowParams) (*StudioV2Flow, error) { path := "/v2/Flows/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.CommitMessage != nil { - data.Set("CommitMessage", *params.CommitMessage) + data.Set("CommitMessage", *params.CommitMessage) } if params != nil && params.Definition != nil { v, err := json.Marshal(params.Definition) @@ -562,13 +579,13 @@ func (c *DefaultApiService) UpdateFlow(sid string, params *UpdateFlowParams) (*S return nil, err } - data.Set("Definition", string(v)) + data.Set("Definition", fmt.Sprint(v)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } @@ -606,11 +623,12 @@ UpdateFlowValidate Method for UpdateFlowValidate func (c *DefaultApiService) UpdateFlowValidate(params *UpdateFlowValidateParams) (*StudioV2FlowValidate, error) { path := "/v2/Flows/Validate" + data := url.Values{} headers := 0 if params != nil && params.CommitMessage != nil { - data.Set("CommitMessage", *params.CommitMessage) + data.Set("CommitMessage", *params.CommitMessage) } if params != nil && params.Definition != nil { v, err := json.Marshal(params.Definition) @@ -619,13 +637,13 @@ func (c *DefaultApiService) UpdateFlowValidate(params *UpdateFlowValidateParams) return nil, err } - data.Set("Definition", string(v)) + data.Set("Definition", fmt.Sprint(v)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } @@ -650,20 +668,21 @@ type UpdateTestUserParams struct { /* UpdateTestUser Method for UpdateTestUser - * @param sid + * @param Sid * @param optional nil or *UpdateTestUserOpts - Optional Parameters: * @param "TestUsers" ([]string) - @return StudioV2FlowTestUser */ -func (c *DefaultApiService) UpdateTestUser(sid string, params *UpdateTestUserParams) (*StudioV2FlowTestUser, error) { +func (c *DefaultApiService) UpdateTestUser(Sid string, params *UpdateTestUserParams) (*StudioV2FlowTestUser, error) { path := "/v2/Flows/{Sid}/TestUsers" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.TestUsers != nil { - data.Set("TestUsers", *params.TestUsers) + data.Set("TestUsers", strings.Join(*params.TestUsers, ",")) } diff --git a/rest/studio/v2/api_flows.go b/rest/studio/v2/api_flows.go index 8988dcd70..f698def29 100644 --- a/rest/studio/v2/api_flows.go +++ b/rest/studio/v2/api_flows.go @@ -49,11 +49,12 @@ Create a Flow. func (c *FlowsApiService) CreateFlow(params *CreateFlowParams) (*StudioV2Flow, error) { path := "/v2/Flows" + data := url.Values{} headers := 0 if params != nil && params.CommitMessage != nil { - data.Set("CommitMessage", *params.CommitMessage) + data.Set("CommitMessage", *params.CommitMessage) } if params != nil && params.Definition != nil { v, err := json.Marshal(params.Definition) @@ -62,13 +63,13 @@ func (c *FlowsApiService) CreateFlow(params *CreateFlowParams) (*StudioV2Flow, e return nil, err } - data.Set("Definition", string(v)) + data.Set("Definition", fmt.Sprint(v)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } @@ -101,11 +102,12 @@ Retrieve a list of all Flows. func (c *FlowsApiService) ListFlow(params *ListFlowParams) (*StudioV2FlowReadResponse, error) { path := "/v2/Flows" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } diff --git a/rest/studio/v2/docs/DefaultApi.md b/rest/studio/v2/docs/DefaultApi.md index d354fb0c8..0e033dc9a 100644 --- a/rest/studio/v2/docs/DefaultApi.md +++ b/rest/studio/v2/docs/DefaultApi.md @@ -26,7 +26,7 @@ Method | HTTP request | Description ## CreateExecution -> StudioV2FlowExecution CreateExecution(ctx, flowSid, optional) +> StudioV2FlowExecution CreateExecution(ctx, FlowSid, optional) @@ -38,7 +38,7 @@ Triggers a new Execution for the Flow Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**flowSid** | **string**| The SID of the Excecution's Flow. | +**FlowSid** | **string**| The SID of the Excecution's Flow. | **optional** | ***CreateExecutionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -49,9 +49,9 @@ Optional parameters are passed through a pointer to a CreateExecutionOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **from** | **optional.String**| The Twilio phone number to send messages or initiate calls from during the Flow's Execution. Available as variable `{{flow.channel.address}}`. | - **parameters** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| JSON data that will be added to the Flow's context and that can be accessed as variables inside your Flow. For example, if you pass in `Parameters={\\\"name\\\":\\\"Zeke\\\"}`, a widget in your Flow can reference the variable `{{flow.data.name}}`, which returns \\\"Zeke\\\". Note: the JSON value must explicitly be passed as a string, not as a hash object. Depending on your particular HTTP library, you may need to add quotes or URL encode the JSON string. | - **to** | **optional.String**| The Contact phone number to start a Studio Flow Execution, available as variable `{{contact.channel.address}}`. | + **From** | **optional.String**| The Twilio phone number to send messages or initiate calls from during the Flow's Execution. Available as variable `{{flow.channel.address}}`. | + **Parameters** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| JSON data that will be added to the Flow's context and that can be accessed as variables inside your Flow. For example, if you pass in `Parameters={\\\"name\\\":\\\"Zeke\\\"}`, a widget in your Flow can reference the variable `{{flow.data.name}}`, which returns \\\"Zeke\\\". Note: the JSON value must explicitly be passed as a string, not as a hash object. Depending on your particular HTTP library, you may need to add quotes or URL encode the JSON string. | + **To** | **optional.String**| The Contact phone number to start a Studio Flow Execution, available as variable `{{contact.channel.address}}`. | ### Return type @@ -73,7 +73,7 @@ Name | Type | Description | Notes ## DeleteExecution -> DeleteExecution(ctx, flowSid, sid) +> DeleteExecution(ctx, FlowSid, Sid) @@ -85,8 +85,8 @@ Delete the Execution and all Steps relating to it. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**flowSid** | **string**| The SID of the Flow with the Execution resources to delete. | -**sid** | **string**| The SID of the Execution resource to delete. | +**FlowSid** | **string**| The SID of the Flow with the Execution resources to delete. | +**Sid** | **string**| The SID of the Execution resource to delete. | ### Return type @@ -108,7 +108,7 @@ Name | Type | Description | Notes ## DeleteFlow -> DeleteFlow(ctx, sid) +> DeleteFlow(ctx, Sid) @@ -120,7 +120,7 @@ Delete a specific Flow. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Flow resource to delete. | +**Sid** | **string**| The SID of the Flow resource to delete. | ### Return type @@ -142,7 +142,7 @@ Name | Type | Description | Notes ## FetchExecution -> StudioV2FlowExecution FetchExecution(ctx, flowSid, sid) +> StudioV2FlowExecution FetchExecution(ctx, FlowSid, Sid) @@ -154,8 +154,8 @@ Retrieve an Execution Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**flowSid** | **string**| The SID of the Flow with the Execution resource to fetch | -**sid** | **string**| The SID of the Execution resource to fetch. | +**FlowSid** | **string**| The SID of the Flow with the Execution resource to fetch | +**Sid** | **string**| The SID of the Execution resource to fetch. | ### Return type @@ -177,7 +177,7 @@ Name | Type | Description | Notes ## FetchExecutionContext -> StudioV2FlowExecutionExecutionContext FetchExecutionContext(ctx, flowSid, executionSid) +> StudioV2FlowExecutionExecutionContext FetchExecutionContext(ctx, FlowSid, ExecutionSid) @@ -189,8 +189,8 @@ Retrieve the most recent context for an Execution. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**flowSid** | **string**| The SID of the Flow with the Execution context to fetch. | -**executionSid** | **string**| The SID of the Execution context to fetch. | +**FlowSid** | **string**| The SID of the Flow with the Execution context to fetch. | +**ExecutionSid** | **string**| The SID of the Execution context to fetch. | ### Return type @@ -212,7 +212,7 @@ Name | Type | Description | Notes ## FetchExecutionStep -> StudioV2FlowExecutionExecutionStep FetchExecutionStep(ctx, flowSid, executionSid, sid) +> StudioV2FlowExecutionExecutionStep FetchExecutionStep(ctx, FlowSid, ExecutionSid, Sid) @@ -224,9 +224,9 @@ Retrieve a Step. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**flowSid** | **string**| The SID of the Flow with the Step to fetch. | -**executionSid** | **string**| The SID of the Execution resource with the Step to fetch. | -**sid** | **string**| The SID of the ExecutionStep resource to fetch. | +**FlowSid** | **string**| The SID of the Flow with the Step to fetch. | +**ExecutionSid** | **string**| The SID of the Execution resource with the Step to fetch. | +**Sid** | **string**| The SID of the ExecutionStep resource to fetch. | ### Return type @@ -248,7 +248,7 @@ Name | Type | Description | Notes ## FetchExecutionStepContext -> StudioV2FlowExecutionExecutionStepExecutionStepContext FetchExecutionStepContext(ctx, flowSid, executionSid, stepSid) +> StudioV2FlowExecutionExecutionStepExecutionStepContext FetchExecutionStepContext(ctx, FlowSid, ExecutionSid, StepSid) @@ -260,9 +260,9 @@ Retrieve the context for an Execution Step. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**flowSid** | **string**| The SID of the Flow with the Step to fetch. | -**executionSid** | **string**| The SID of the Execution resource with the Step to fetch. | -**stepSid** | **string**| The SID of the Step to fetch. | +**FlowSid** | **string**| The SID of the Flow with the Step to fetch. | +**ExecutionSid** | **string**| The SID of the Execution resource with the Step to fetch. | +**StepSid** | **string**| The SID of the Step to fetch. | ### Return type @@ -284,7 +284,7 @@ Name | Type | Description | Notes ## FetchFlow -> StudioV2Flow FetchFlow(ctx, sid) +> StudioV2Flow FetchFlow(ctx, Sid) @@ -296,7 +296,7 @@ Retrieve a specific Flow. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Flow resource to fetch. | +**Sid** | **string**| The SID of the Flow resource to fetch. | ### Return type @@ -318,7 +318,7 @@ Name | Type | Description | Notes ## FetchFlowRevision -> StudioV2FlowFlowRevision FetchFlowRevision(ctx, sid, revision) +> StudioV2FlowFlowRevision FetchFlowRevision(ctx, Sid, Revision) @@ -330,8 +330,8 @@ Retrieve a specific Flow revision. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Flow resource to fetch. | -**revision** | **string**| Specific Revision number or can be `LatestPublished` and `LatestRevision`. | +**Sid** | **string**| The SID of the Flow resource to fetch. | +**Revision** | **string**| Specific Revision number or can be `LatestPublished` and `LatestRevision`. | ### Return type @@ -353,7 +353,7 @@ Name | Type | Description | Notes ## FetchTestUser -> StudioV2FlowTestUser FetchTestUser(ctx, sid) +> StudioV2FlowTestUser FetchTestUser(ctx, Sid) @@ -363,7 +363,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| | +**Sid** | **string**| | ### Return type @@ -385,7 +385,7 @@ Name | Type | Description | Notes ## ListExecution -> StudioV2FlowExecutionReadResponse ListExecution(ctx, flowSid, optional) +> StudioV2FlowExecutionReadResponse ListExecution(ctx, FlowSid, optional) @@ -397,7 +397,7 @@ Retrieve a list of all Executions for the Flow. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**flowSid** | **string**| The SID of the Flow with the Execution resources to read. | +**FlowSid** | **string**| The SID of the Flow with the Execution resources to read. | **optional** | ***ListExecutionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -408,9 +408,9 @@ Optional parameters are passed through a pointer to a ListExecutionOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **dateCreatedFrom** | **optional.Time**| Only show Execution resources starting on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. | - **dateCreatedTo** | **optional.Time**| Only show Execution resources starting before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **DateCreatedFrom** | **optional.Time**| Only show Execution resources starting on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. | + **DateCreatedTo** | **optional.Time**| Only show Execution resources starting before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -432,7 +432,7 @@ Name | Type | Description | Notes ## ListExecutionStep -> StudioV2FlowExecutionExecutionStepReadResponse ListExecutionStep(ctx, flowSid, executionSid, optional) +> StudioV2FlowExecutionExecutionStepReadResponse ListExecutionStep(ctx, FlowSid, ExecutionSid, optional) @@ -444,8 +444,8 @@ Retrieve a list of all Steps for an Execution. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**flowSid** | **string**| The SID of the Flow with the Steps to read. | -**executionSid** | **string**| The SID of the Execution with the Steps to read. | +**FlowSid** | **string**| The SID of the Flow with the Steps to read. | +**ExecutionSid** | **string**| The SID of the Execution with the Steps to read. | **optional** | ***ListExecutionStepOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -457,7 +457,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -479,7 +479,7 @@ Name | Type | Description | Notes ## ListFlowRevision -> StudioV2FlowFlowRevisionReadResponse ListFlowRevision(ctx, sid, optional) +> StudioV2FlowFlowRevisionReadResponse ListFlowRevision(ctx, Sid, optional) @@ -491,7 +491,7 @@ Retrieve a list of all Flows revisions. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Flow resource to fetch. | +**Sid** | **string**| The SID of the Flow resource to fetch. | **optional** | ***ListFlowRevisionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -502,7 +502,7 @@ Optional parameters are passed through a pointer to a ListFlowRevisionOpts struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -524,7 +524,7 @@ Name | Type | Description | Notes ## UpdateExecution -> StudioV2FlowExecution UpdateExecution(ctx, flowSid, sid, optional) +> StudioV2FlowExecution UpdateExecution(ctx, FlowSid, Sid, optional) @@ -536,8 +536,8 @@ Update the status of an Execution to `ended`. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**flowSid** | **string**| The SID of the Flow with the Execution resources to update. | -**sid** | **string**| The SID of the Execution resource to update. | +**FlowSid** | **string**| The SID of the Flow with the Execution resources to update. | +**Sid** | **string**| The SID of the Execution resource to update. | **optional** | ***UpdateExecutionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -549,7 +549,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | **optional.String**| The status of the Execution. Can only be `ended`. | + **Status** | **optional.String**| The status of the Execution. Can only be `ended`. | ### Return type @@ -571,7 +571,7 @@ Name | Type | Description | Notes ## UpdateFlow -> StudioV2Flow UpdateFlow(ctx, sid, optional) +> StudioV2Flow UpdateFlow(ctx, Sid, optional) @@ -583,7 +583,7 @@ Update a Flow. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Flow resource to fetch. | +**Sid** | **string**| The SID of the Flow resource to fetch. | **optional** | ***UpdateFlowOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -594,10 +594,10 @@ Optional parameters are passed through a pointer to a UpdateFlowOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **commitMessage** | **optional.String**| Description on change made in the revision. | - **definition** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| JSON representation of flow definition. | - **friendlyName** | **optional.String**| The string that you assigned to describe the Flow. | - **status** | **optional.String**| The status of the Flow. Can be: `draft` or `published`. | + **CommitMessage** | **optional.String**| Description on change made in the revision. | + **Definition** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| JSON representation of flow definition. | + **FriendlyName** | **optional.String**| The string that you assigned to describe the Flow. | + **Status** | **optional.String**| The status of the Flow. Can be: `draft` or `published`. | ### Return type @@ -638,10 +638,10 @@ Optional parameters are passed through a pointer to a UpdateFlowValidateOpts str Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **commitMessage** | **optional.String**| | - **definition** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| | - **friendlyName** | **optional.String**| | - **status** | **optional.String**| | + **CommitMessage** | **optional.String**| | + **Definition** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| | + **FriendlyName** | **optional.String**| | + **Status** | **optional.String**| | ### Return type @@ -663,7 +663,7 @@ Name | Type | Description | Notes ## UpdateTestUser -> StudioV2FlowTestUser UpdateTestUser(ctx, sid, optional) +> StudioV2FlowTestUser UpdateTestUser(ctx, Sid, optional) @@ -673,7 +673,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| | +**Sid** | **string**| | **optional** | ***UpdateTestUserOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -684,7 +684,7 @@ Optional parameters are passed through a pointer to a UpdateTestUserOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **testUsers** | [**optional.Interface of []string**](string.md)| | + **TestUsers** | [**optional.Interface of []string**](string.md)| | ### Return type diff --git a/rest/studio/v2/docs/FlowsApi.md b/rest/studio/v2/docs/FlowsApi.md index 1e0a6a18c..3ea36a3d1 100644 --- a/rest/studio/v2/docs/FlowsApi.md +++ b/rest/studio/v2/docs/FlowsApi.md @@ -32,10 +32,10 @@ Optional parameters are passed through a pointer to a CreateFlowOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **commitMessage** | **optional.String**| Description on change made in the revision. | - **definition** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| JSON representation of flow definition. | - **friendlyName** | **optional.String**| The string that you assigned to describe the Flow. | - **status** | **optional.String**| The status of the Flow. Can be: `draft` or `published`. | + **CommitMessage** | **optional.String**| Description on change made in the revision. | + **Definition** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| JSON representation of flow definition. | + **FriendlyName** | **optional.String**| The string that you assigned to describe the Flow. | + **Status** | **optional.String**| The status of the Flow. Can be: `draft` or `published`. | ### Return type @@ -78,7 +78,7 @@ Optional parameters are passed through a pointer to a ListFlowOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type diff --git a/rest/studio/v2/model_studio_v2_flow.go b/rest/studio/v2/model_studio_v2_flow.go index 122af85fb..4d687d718 100644 --- a/rest/studio/v2/model_studio_v2_flow.go +++ b/rest/studio/v2/model_studio_v2_flow.go @@ -14,19 +14,19 @@ import ( ) // StudioV2Flow struct for StudioV2Flow type StudioV2Flow struct { - AccountSid string `json:"account_sid,omitempty"` - CommitMessage string `json:"commit_message,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Definition map[string]interface{} `json:"definition,omitempty"` - Errors []map[string]interface{} `json:"errors,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Revision int32 `json:"revision,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - Url string `json:"url,omitempty"` - Valid bool `json:"valid,omitempty"` - Warnings []map[string]interface{} `json:"warnings,omitempty"` - WebhookUrl string `json:"webhook_url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + CommitMessage string `json:"CommitMessage,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Definition map[string]interface{} `json:"Definition,omitempty"` + Errors []map[string]interface{} `json:"Errors,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Revision int32 `json:"Revision,omitempty"` + Sid string `json:"Sid,omitempty"` + Status string `json:"Status,omitempty"` + Url string `json:"Url,omitempty"` + Valid bool `json:"Valid,omitempty"` + Warnings []map[string]interface{} `json:"Warnings,omitempty"` + WebhookUrl string `json:"WebhookUrl,omitempty"` } diff --git a/rest/studio/v2/model_studio_v2_flow_execution.go b/rest/studio/v2/model_studio_v2_flow_execution.go index 2f33c6068..7b3600a6f 100644 --- a/rest/studio/v2/model_studio_v2_flow_execution.go +++ b/rest/studio/v2/model_studio_v2_flow_execution.go @@ -14,14 +14,14 @@ import ( ) // StudioV2FlowExecution struct for StudioV2FlowExecution type StudioV2FlowExecution struct { - AccountSid string `json:"account_sid,omitempty"` - ContactChannelAddress string `json:"contact_channel_address,omitempty"` - Context map[string]interface{} `json:"context,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FlowSid string `json:"flow_sid,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ContactChannelAddress string `json:"ContactChannelAddress,omitempty"` + Context map[string]interface{} `json:"Context,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FlowSid string `json:"FlowSid,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Sid string `json:"Sid,omitempty"` + Status string `json:"Status,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/studio/v2/model_studio_v2_flow_execution_execution_context.go b/rest/studio/v2/model_studio_v2_flow_execution_execution_context.go index 3d59bf881..a5a8b5210 100644 --- a/rest/studio/v2/model_studio_v2_flow_execution_execution_context.go +++ b/rest/studio/v2/model_studio_v2_flow_execution_execution_context.go @@ -11,9 +11,9 @@ package openapi // StudioV2FlowExecutionExecutionContext struct for StudioV2FlowExecutionExecutionContext type StudioV2FlowExecutionExecutionContext struct { - AccountSid string `json:"account_sid,omitempty"` - Context map[string]interface{} `json:"context,omitempty"` - ExecutionSid string `json:"execution_sid,omitempty"` - FlowSid string `json:"flow_sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Context map[string]interface{} `json:"Context,omitempty"` + ExecutionSid string `json:"ExecutionSid,omitempty"` + FlowSid string `json:"FlowSid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/studio/v2/model_studio_v2_flow_execution_execution_step.go b/rest/studio/v2/model_studio_v2_flow_execution_execution_step.go index 3044b10dd..093c67f3d 100644 --- a/rest/studio/v2/model_studio_v2_flow_execution_execution_step.go +++ b/rest/studio/v2/model_studio_v2_flow_execution_execution_step.go @@ -14,16 +14,16 @@ import ( ) // StudioV2FlowExecutionExecutionStep struct for StudioV2FlowExecutionExecutionStep type StudioV2FlowExecutionExecutionStep struct { - AccountSid string `json:"account_sid,omitempty"` - Context map[string]interface{} `json:"context,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - ExecutionSid string `json:"execution_sid,omitempty"` - FlowSid string `json:"flow_sid,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Name string `json:"name,omitempty"` - Sid string `json:"sid,omitempty"` - TransitionedFrom string `json:"transitioned_from,omitempty"` - TransitionedTo string `json:"transitioned_to,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Context map[string]interface{} `json:"Context,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + ExecutionSid string `json:"ExecutionSid,omitempty"` + FlowSid string `json:"FlowSid,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Name string `json:"Name,omitempty"` + Sid string `json:"Sid,omitempty"` + TransitionedFrom string `json:"TransitionedFrom,omitempty"` + TransitionedTo string `json:"TransitionedTo,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/studio/v2/model_studio_v2_flow_execution_execution_step_execution_step_context.go b/rest/studio/v2/model_studio_v2_flow_execution_execution_step_execution_step_context.go index f1dc8d1b8..dba41c24b 100644 --- a/rest/studio/v2/model_studio_v2_flow_execution_execution_step_execution_step_context.go +++ b/rest/studio/v2/model_studio_v2_flow_execution_execution_step_execution_step_context.go @@ -11,10 +11,10 @@ package openapi // StudioV2FlowExecutionExecutionStepExecutionStepContext struct for StudioV2FlowExecutionExecutionStepExecutionStepContext type StudioV2FlowExecutionExecutionStepExecutionStepContext struct { - AccountSid string `json:"account_sid,omitempty"` - Context map[string]interface{} `json:"context,omitempty"` - ExecutionSid string `json:"execution_sid,omitempty"` - FlowSid string `json:"flow_sid,omitempty"` - StepSid string `json:"step_sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Context map[string]interface{} `json:"Context,omitempty"` + ExecutionSid string `json:"ExecutionSid,omitempty"` + FlowSid string `json:"FlowSid,omitempty"` + StepSid string `json:"StepSid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/studio/v2/model_studio_v2_flow_execution_execution_step_read_response.go b/rest/studio/v2/model_studio_v2_flow_execution_execution_step_read_response.go index cfce6fbaa..a27c3ed27 100644 --- a/rest/studio/v2/model_studio_v2_flow_execution_execution_step_read_response.go +++ b/rest/studio/v2/model_studio_v2_flow_execution_execution_step_read_response.go @@ -11,6 +11,6 @@ package openapi // StudioV2FlowExecutionExecutionStepReadResponse struct for StudioV2FlowExecutionExecutionStepReadResponse type StudioV2FlowExecutionExecutionStepReadResponse struct { - Meta StudioV2FlowReadResponseMeta `json:"meta,omitempty"` - Steps []StudioV2FlowExecutionExecutionStep `json:"steps,omitempty"` + Meta StudioV2FlowReadResponseMeta `json:"Meta,omitempty"` + Steps []StudioV2FlowExecutionExecutionStep `json:"Steps,omitempty"` } diff --git a/rest/studio/v2/model_studio_v2_flow_execution_read_response.go b/rest/studio/v2/model_studio_v2_flow_execution_read_response.go index 54586d04e..f145252d5 100644 --- a/rest/studio/v2/model_studio_v2_flow_execution_read_response.go +++ b/rest/studio/v2/model_studio_v2_flow_execution_read_response.go @@ -11,6 +11,6 @@ package openapi // StudioV2FlowExecutionReadResponse struct for StudioV2FlowExecutionReadResponse type StudioV2FlowExecutionReadResponse struct { - Executions []StudioV2FlowExecution `json:"executions,omitempty"` - Meta StudioV2FlowReadResponseMeta `json:"meta,omitempty"` + Executions []StudioV2FlowExecution `json:"Executions,omitempty"` + Meta StudioV2FlowReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/studio/v2/model_studio_v2_flow_flow_revision.go b/rest/studio/v2/model_studio_v2_flow_flow_revision.go index 700ca7dfd..517a281af 100644 --- a/rest/studio/v2/model_studio_v2_flow_flow_revision.go +++ b/rest/studio/v2/model_studio_v2_flow_flow_revision.go @@ -14,16 +14,16 @@ import ( ) // StudioV2FlowFlowRevision struct for StudioV2FlowFlowRevision type StudioV2FlowFlowRevision struct { - AccountSid string `json:"account_sid,omitempty"` - CommitMessage string `json:"commit_message,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Definition map[string]interface{} `json:"definition,omitempty"` - Errors []map[string]interface{} `json:"errors,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Revision int32 `json:"revision,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - Url string `json:"url,omitempty"` - Valid bool `json:"valid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + CommitMessage string `json:"CommitMessage,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Definition map[string]interface{} `json:"Definition,omitempty"` + Errors []map[string]interface{} `json:"Errors,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Revision int32 `json:"Revision,omitempty"` + Sid string `json:"Sid,omitempty"` + Status string `json:"Status,omitempty"` + Url string `json:"Url,omitempty"` + Valid bool `json:"Valid,omitempty"` } diff --git a/rest/studio/v2/model_studio_v2_flow_flow_revision_read_response.go b/rest/studio/v2/model_studio_v2_flow_flow_revision_read_response.go index 5270454eb..ddb0faaac 100644 --- a/rest/studio/v2/model_studio_v2_flow_flow_revision_read_response.go +++ b/rest/studio/v2/model_studio_v2_flow_flow_revision_read_response.go @@ -11,6 +11,6 @@ package openapi // StudioV2FlowFlowRevisionReadResponse struct for StudioV2FlowFlowRevisionReadResponse type StudioV2FlowFlowRevisionReadResponse struct { - Meta StudioV2FlowReadResponseMeta `json:"meta,omitempty"` - Revisions []StudioV2FlowFlowRevision `json:"revisions,omitempty"` + Meta StudioV2FlowReadResponseMeta `json:"Meta,omitempty"` + Revisions []StudioV2FlowFlowRevision `json:"Revisions,omitempty"` } diff --git a/rest/studio/v2/model_studio_v2_flow_read_response.go b/rest/studio/v2/model_studio_v2_flow_read_response.go index 09b9862b0..8679f573a 100644 --- a/rest/studio/v2/model_studio_v2_flow_read_response.go +++ b/rest/studio/v2/model_studio_v2_flow_read_response.go @@ -11,6 +11,6 @@ package openapi // StudioV2FlowReadResponse struct for StudioV2FlowReadResponse type StudioV2FlowReadResponse struct { - Flows []StudioV2Flow `json:"flows,omitempty"` - Meta StudioV2FlowReadResponseMeta `json:"meta,omitempty"` + Flows []StudioV2Flow `json:"Flows,omitempty"` + Meta StudioV2FlowReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/studio/v2/model_studio_v2_flow_read_response_meta.go b/rest/studio/v2/model_studio_v2_flow_read_response_meta.go index 283ddae03..9fbb121d2 100644 --- a/rest/studio/v2/model_studio_v2_flow_read_response_meta.go +++ b/rest/studio/v2/model_studio_v2_flow_read_response_meta.go @@ -11,11 +11,11 @@ package openapi // StudioV2FlowReadResponseMeta struct for StudioV2FlowReadResponseMeta type StudioV2FlowReadResponseMeta struct { - FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` - NextPageUrl string `json:"next_page_url,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUrl string `json:"previous_page_url,omitempty"` - Url string `json:"url,omitempty"` + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/studio/v2/model_studio_v2_flow_test_user.go b/rest/studio/v2/model_studio_v2_flow_test_user.go index 1dbe955b7..0a2bc4a93 100644 --- a/rest/studio/v2/model_studio_v2_flow_test_user.go +++ b/rest/studio/v2/model_studio_v2_flow_test_user.go @@ -11,7 +11,7 @@ package openapi // StudioV2FlowTestUser struct for StudioV2FlowTestUser type StudioV2FlowTestUser struct { - Sid string `json:"sid,omitempty"` - TestUsers []string `json:"test_users,omitempty"` - Url string `json:"url,omitempty"` + Sid string `json:"Sid,omitempty"` + TestUsers []string `json:"TestUsers,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/studio/v2/model_studio_v2_flow_validate.go b/rest/studio/v2/model_studio_v2_flow_validate.go index d6e4dc251..938847a07 100644 --- a/rest/studio/v2/model_studio_v2_flow_validate.go +++ b/rest/studio/v2/model_studio_v2_flow_validate.go @@ -11,5 +11,5 @@ package openapi // StudioV2FlowValidate struct for StudioV2FlowValidate type StudioV2FlowValidate struct { - Valid bool `json:"valid,omitempty"` + Valid bool `json:"Valid,omitempty"` } diff --git a/rest/supersim/v1/api_default.go b/rest/supersim/v1/api_default.go index 1a776c5a9..a07e91210 100644 --- a/rest/supersim/v1/api_default.go +++ b/rest/supersim/v1/api_default.go @@ -15,6 +15,8 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" + "time" ) type DefaultApiService struct { @@ -49,20 +51,21 @@ Send a Command to a Sim. func (c *DefaultApiService) CreateCommand(params *CreateCommandParams) (*SupersimV1Command, error) { path := "/v1/Commands" + data := url.Values{} headers := 0 if params != nil && params.CallbackMethod != nil { - data.Set("CallbackMethod", *params.CallbackMethod) + data.Set("CallbackMethod", *params.CallbackMethod) } if params != nil && params.CallbackUrl != nil { - data.Set("CallbackUrl", *params.CallbackUrl) + data.Set("CallbackUrl", *params.CallbackUrl) } if params != nil && params.Command != nil { - data.Set("Command", *params.Command) + data.Set("Command", *params.Command) } if params != nil && params.Sim != nil { - data.Set("Sim", *params.Sim) + data.Set("Sim", *params.Sim) } @@ -107,29 +110,30 @@ Create a Fleet func (c *DefaultApiService) CreateFleet(params *CreateFleetParams) (*SupersimV1Fleet, error) { path := "/v1/Fleets" + data := url.Values{} headers := 0 if params != nil && params.CommandsEnabled != nil { - data.Set("CommandsEnabled", string(*params.CommandsEnabled)) + data.Set("CommandsEnabled", fmt.Sprint(*params.CommandsEnabled)) } if params != nil && params.CommandsMethod != nil { - data.Set("CommandsMethod", *params.CommandsMethod) + data.Set("CommandsMethod", *params.CommandsMethod) } if params != nil && params.CommandsUrl != nil { - data.Set("CommandsUrl", *params.CommandsUrl) + data.Set("CommandsUrl", *params.CommandsUrl) } if params != nil && params.DataEnabled != nil { - data.Set("DataEnabled", string(*params.DataEnabled)) + data.Set("DataEnabled", fmt.Sprint(*params.DataEnabled)) } if params != nil && params.DataLimit != nil { - data.Set("DataLimit", string(*params.DataLimit)) + data.Set("DataLimit", fmt.Sprint(*params.DataLimit)) } if params != nil && params.NetworkAccessProfile != nil { - data.Set("NetworkAccessProfile", *params.NetworkAccessProfile) + data.Set("NetworkAccessProfile", *params.NetworkAccessProfile) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -164,14 +168,15 @@ Create a new Network Access Profile func (c *DefaultApiService) CreateNetworkAccessProfile(params *CreateNetworkAccessProfileParams) (*SupersimV1NetworkAccessProfile, error) { path := "/v1/NetworkAccessProfiles" + data := url.Values{} headers := 0 if params != nil && params.Networks != nil { - data.Set("Networks", *params.Networks) + data.Set("Networks", strings.Join(*params.Networks, ",")) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -197,20 +202,21 @@ type CreateNetworkAccessProfileNetworkParams struct { /* CreateNetworkAccessProfileNetwork Method for CreateNetworkAccessProfileNetwork Add a Network resource to the Network Access Profile resource. - * @param networkAccessProfileSid The unique string that identifies the Network Access Profile resource. + * @param NetworkAccessProfileSid The unique string that identifies the Network Access Profile resource. * @param optional nil or *CreateNetworkAccessProfileNetworkOpts - Optional Parameters: * @param "Network" (string) - The SID of the Network resource to be added to the Network Access Profile resource. @return SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork */ -func (c *DefaultApiService) CreateNetworkAccessProfileNetwork(networkAccessProfileSid string, params *CreateNetworkAccessProfileNetworkParams) (*SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork, error) { +func (c *DefaultApiService) CreateNetworkAccessProfileNetwork(NetworkAccessProfileSid string, params *CreateNetworkAccessProfileNetworkParams) (*SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork, error) { path := "/v1/NetworkAccessProfiles/{NetworkAccessProfileSid}/Networks" - path = strings.Replace(path, "{"+"NetworkAccessProfileSid"+"}", networkAccessProfileSid, -1) + path = strings.Replace(path, "{"+"NetworkAccessProfileSid"+"}", NetworkAccessProfileSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Network != nil { - data.Set("Network", *params.Network) + data.Set("Network", *params.Network) } @@ -232,15 +238,16 @@ func (c *DefaultApiService) CreateNetworkAccessProfileNetwork(networkAccessProfi /* DeleteNetworkAccessProfileNetwork Method for DeleteNetworkAccessProfileNetwork Remove a Network resource from the Network Access Profile resource's. - * @param networkAccessProfileSid The unique string that identifies the Network Access Profile resource. - * @param sid + * @param NetworkAccessProfileSid The unique string that identifies the Network Access Profile resource. + * @param Sid */ -func (c *DefaultApiService) DeleteNetworkAccessProfileNetwork(networkAccessProfileSid string, sid string) (error) { +func (c *DefaultApiService) DeleteNetworkAccessProfileNetwork(NetworkAccessProfileSid string, Sid string) (error) { path := "/v1/NetworkAccessProfiles/{NetworkAccessProfileSid}/Networks/{Sid}" - path = strings.Replace(path, "{"+"NetworkAccessProfileSid"+"}", networkAccessProfileSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"NetworkAccessProfileSid"+"}", NetworkAccessProfileSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -258,14 +265,15 @@ func (c *DefaultApiService) DeleteNetworkAccessProfileNetwork(networkAccessProfi /* FetchCommand Method for FetchCommand Fetch a Command instance from your account. - * @param sid The SID of the Command resource to fetch. + * @param Sid The SID of the Command resource to fetch. @return SupersimV1Command */ -func (c *DefaultApiService) FetchCommand(sid string) (*SupersimV1Command, error) { +func (c *DefaultApiService) FetchCommand(Sid string) (*SupersimV1Command, error) { path := "/v1/Commands/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -288,14 +296,15 @@ func (c *DefaultApiService) FetchCommand(sid string) (*SupersimV1Command, error) /* FetchFleet Method for FetchFleet Fetch a Fleet instance from your account. - * @param sid The SID of the Fleet resource to fetch. + * @param Sid The SID of the Fleet resource to fetch. @return SupersimV1Fleet */ -func (c *DefaultApiService) FetchFleet(sid string) (*SupersimV1Fleet, error) { +func (c *DefaultApiService) FetchFleet(Sid string) (*SupersimV1Fleet, error) { path := "/v1/Fleets/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -318,14 +327,15 @@ func (c *DefaultApiService) FetchFleet(sid string) (*SupersimV1Fleet, error) { /* FetchNetwork Method for FetchNetwork Fetch a Network resource. - * @param sid The SID of the Network resource to fetch. + * @param Sid The SID of the Network resource to fetch. @return SupersimV1Network */ -func (c *DefaultApiService) FetchNetwork(sid string) (*SupersimV1Network, error) { +func (c *DefaultApiService) FetchNetwork(Sid string) (*SupersimV1Network, error) { path := "/v1/Networks/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -348,14 +358,15 @@ func (c *DefaultApiService) FetchNetwork(sid string) (*SupersimV1Network, error) /* FetchNetworkAccessProfile Method for FetchNetworkAccessProfile Fetch a Network Access Profile instance from your account. - * @param sid The SID of the Network Access Profile resource to fetch. + * @param Sid The SID of the Network Access Profile resource to fetch. @return SupersimV1NetworkAccessProfile */ -func (c *DefaultApiService) FetchNetworkAccessProfile(sid string) (*SupersimV1NetworkAccessProfile, error) { +func (c *DefaultApiService) FetchNetworkAccessProfile(Sid string) (*SupersimV1NetworkAccessProfile, error) { path := "/v1/NetworkAccessProfiles/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -378,16 +389,17 @@ func (c *DefaultApiService) FetchNetworkAccessProfile(sid string) (*SupersimV1Ne /* FetchNetworkAccessProfileNetwork Method for FetchNetworkAccessProfileNetwork Fetch a Network Access Profile resource's Network resource. - * @param networkAccessProfileSid The unique string that identifies the Network Access Profile resource. - * @param sid The SID of the Network resource to fetch. + * @param NetworkAccessProfileSid The unique string that identifies the Network Access Profile resource. + * @param Sid The SID of the Network resource to fetch. @return SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork */ -func (c *DefaultApiService) FetchNetworkAccessProfileNetwork(networkAccessProfileSid string, sid string) (*SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork, error) { +func (c *DefaultApiService) FetchNetworkAccessProfileNetwork(NetworkAccessProfileSid string, Sid string) (*SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork, error) { path := "/v1/NetworkAccessProfiles/{NetworkAccessProfileSid}/Networks/{Sid}" - path = strings.Replace(path, "{"+"NetworkAccessProfileSid"+"}", networkAccessProfileSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"NetworkAccessProfileSid"+"}", NetworkAccessProfileSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -410,14 +422,15 @@ func (c *DefaultApiService) FetchNetworkAccessProfileNetwork(networkAccessProfil /* FetchSim Method for FetchSim Fetch a Super SIM instance from your account. - * @param sid The SID of the Sim resource to fetch. + * @param Sid The SID of the Sim resource to fetch. @return SupersimV1Sim */ -func (c *DefaultApiService) FetchSim(sid string) (*SupersimV1Sim, error) { +func (c *DefaultApiService) FetchSim(Sid string) (*SupersimV1Sim, error) { path := "/v1/Sims/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -457,20 +470,21 @@ Retrieve a list of Commands from your account. func (c *DefaultApiService) ListCommand(params *ListCommandParams) (*SupersimV1CommandReadResponse, error) { path := "/v1/Commands" + data := url.Values{} headers := 0 if params != nil && params.Sim != nil { - data.Set("Sim", *params.Sim) + data.Set("Sim", *params.Sim) } if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } if params != nil && params.Direction != nil { - data.Set("Direction", *params.Direction) + data.Set("Direction", *params.Direction) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -505,14 +519,15 @@ Retrieve a list of Fleets from your account. func (c *DefaultApiService) ListFleet(params *ListFleetParams) (*SupersimV1FleetReadResponse, error) { path := "/v1/Fleets" + data := url.Values{} headers := 0 if params != nil && params.NetworkAccessProfile != nil { - data.Set("NetworkAccessProfile", *params.NetworkAccessProfile) + data.Set("NetworkAccessProfile", *params.NetworkAccessProfile) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -551,20 +566,21 @@ Retrieve a list of Network resources. func (c *DefaultApiService) ListNetwork(params *ListNetworkParams) (*SupersimV1NetworkReadResponse, error) { path := "/v1/Networks" + data := url.Values{} headers := 0 if params != nil && params.IsoCountry != nil { - data.Set("IsoCountry", *params.IsoCountry) + data.Set("IsoCountry", *params.IsoCountry) } if params != nil && params.Mcc != nil { - data.Set("Mcc", *params.Mcc) + data.Set("Mcc", *params.Mcc) } if params != nil && params.Mnc != nil { - data.Set("Mnc", *params.Mnc) + data.Set("Mnc", *params.Mnc) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -597,11 +613,12 @@ Retrieve a list of Network Access Profiles from your account. func (c *DefaultApiService) ListNetworkAccessProfile(params *ListNetworkAccessProfileParams) (*SupersimV1NetworkAccessProfileReadResponse, error) { path := "/v1/NetworkAccessProfiles" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -627,20 +644,21 @@ type ListNetworkAccessProfileNetworkParams struct { /* ListNetworkAccessProfileNetwork Method for ListNetworkAccessProfileNetwork Retrieve a list of Network Access Profile resource's Network resource. - * @param networkAccessProfileSid The unique string that identifies the Network Access Profile resource. + * @param NetworkAccessProfileSid The unique string that identifies the Network Access Profile resource. * @param optional nil or *ListNetworkAccessProfileNetworkOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse */ -func (c *DefaultApiService) ListNetworkAccessProfileNetwork(networkAccessProfileSid string, params *ListNetworkAccessProfileNetworkParams) (*SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse, error) { +func (c *DefaultApiService) ListNetworkAccessProfileNetwork(NetworkAccessProfileSid string, params *ListNetworkAccessProfileNetworkParams) (*SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse, error) { path := "/v1/NetworkAccessProfiles/{NetworkAccessProfileSid}/Networks" - path = strings.Replace(path, "{"+"NetworkAccessProfileSid"+"}", networkAccessProfileSid, -1) + path = strings.Replace(path, "{"+"NetworkAccessProfileSid"+"}", NetworkAccessProfileSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -679,20 +697,21 @@ Retrieve a list of Super SIMs from your account. func (c *DefaultApiService) ListSim(params *ListSimParams) (*SupersimV1SimReadResponse, error) { path := "/v1/Sims" + data := url.Values{} headers := 0 if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } if params != nil && params.Fleet != nil { - data.Set("Fleet", *params.Fleet) + data.Set("Fleet", *params.Fleet) } if params != nil && params.Iccid != nil { - data.Set("Iccid", *params.Iccid) + data.Set("Iccid", *params.Iccid) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -741,35 +760,36 @@ List UsageRecords func (c *DefaultApiService) ListUsageRecord(params *ListUsageRecordParams) (*SupersimV1UsageRecordReadResponse, error) { path := "/v1/UsageRecords" + data := url.Values{} headers := 0 if params != nil && params.Sim != nil { - data.Set("Sim", *params.Sim) + data.Set("Sim", *params.Sim) } if params != nil && params.Fleet != nil { - data.Set("Fleet", *params.Fleet) + data.Set("Fleet", *params.Fleet) } if params != nil && params.Network != nil { - data.Set("Network", *params.Network) + data.Set("Network", *params.Network) } if params != nil && params.IsoCountry != nil { - data.Set("IsoCountry", *params.IsoCountry) + data.Set("IsoCountry", *params.IsoCountry) } if params != nil && params.Group != nil { - data.Set("Group", *params.Group) + data.Set("Group", *params.Group) } if params != nil && params.Granularity != nil { - data.Set("Granularity", *params.Granularity) + data.Set("Granularity", *params.Granularity) } if params != nil && params.StartTime != nil { - data.Set("StartTime", string(*params.StartTime)) + data.Set("StartTime", fmt.Sprint(*params.StartTime)) } if params != nil && params.EndTime != nil { - data.Set("EndTime", string(*params.EndTime)) + data.Set("EndTime", fmt.Sprint(*params.EndTime)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -796,24 +816,25 @@ type UpdateFleetParams struct { /* UpdateFleet Method for UpdateFleet Updates the given properties of a Super SIM Fleet instance from your account. - * @param sid The SID of the Fleet resource to update. + * @param Sid The SID of the Fleet resource to update. * @param optional nil or *UpdateFleetOpts - Optional Parameters: * @param "NetworkAccessProfile" (string) - The SID or unique name of the Network Access Profile that will control which cellular networks the Fleet's SIMs can connect to. * @param "UniqueName" (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. @return SupersimV1Fleet */ -func (c *DefaultApiService) UpdateFleet(sid string, params *UpdateFleetParams) (*SupersimV1Fleet, error) { +func (c *DefaultApiService) UpdateFleet(Sid string, params *UpdateFleetParams) (*SupersimV1Fleet, error) { path := "/v1/Fleets/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.NetworkAccessProfile != nil { - data.Set("NetworkAccessProfile", *params.NetworkAccessProfile) + data.Set("NetworkAccessProfile", *params.NetworkAccessProfile) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -839,20 +860,21 @@ type UpdateNetworkAccessProfileParams struct { /* UpdateNetworkAccessProfile Method for UpdateNetworkAccessProfile Updates the given properties of a Network Access Profile in your account. - * @param sid The SID of the Network Access Profile to update. + * @param Sid The SID of the Network Access Profile to update. * @param optional nil or *UpdateNetworkAccessProfileOpts - Optional Parameters: * @param "UniqueName" (string) - The new unique name of the Network Access Profile. @return SupersimV1NetworkAccessProfile */ -func (c *DefaultApiService) UpdateNetworkAccessProfile(sid string, params *UpdateNetworkAccessProfileParams) (*SupersimV1NetworkAccessProfile, error) { +func (c *DefaultApiService) UpdateNetworkAccessProfile(Sid string, params *UpdateNetworkAccessProfileParams) (*SupersimV1NetworkAccessProfile, error) { path := "/v1/NetworkAccessProfiles/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -883,7 +905,7 @@ type UpdateSimParams struct { /* UpdateSim Method for UpdateSim Updates the given properties of a Super SIM instance from your account. - * @param sid The SID of the Sim resource to update. + * @param Sid The SID of the Sim resource to update. * @param optional nil or *UpdateSimOpts - Optional Parameters: * @param "AccountSid" (string) - The SID of the Account to which the Sim resource should belong. The Account SID can only be that of the requesting Account or that of a Subaccount of the requesting Account. Only valid when the Sim resource's status is new. * @param "CallbackMethod" (string) - The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is POST. @@ -893,30 +915,31 @@ Updates the given properties of a Super SIM instance from your account. * @param "UniqueName" (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. @return SupersimV1Sim */ -func (c *DefaultApiService) UpdateSim(sid string, params *UpdateSimParams) (*SupersimV1Sim, error) { +func (c *DefaultApiService) UpdateSim(Sid string, params *UpdateSimParams) (*SupersimV1Sim, error) { path := "/v1/Sims/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.AccountSid != nil { - data.Set("AccountSid", *params.AccountSid) + data.Set("AccountSid", *params.AccountSid) } if params != nil && params.CallbackMethod != nil { - data.Set("CallbackMethod", *params.CallbackMethod) + data.Set("CallbackMethod", *params.CallbackMethod) } if params != nil && params.CallbackUrl != nil { - data.Set("CallbackUrl", *params.CallbackUrl) + data.Set("CallbackUrl", *params.CallbackUrl) } if params != nil && params.Fleet != nil { - data.Set("Fleet", *params.Fleet) + data.Set("Fleet", *params.Fleet) } if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } diff --git a/rest/supersim/v1/docs/DefaultApi.md b/rest/supersim/v1/docs/DefaultApi.md index 99b5f6a04..b08a9301a 100644 --- a/rest/supersim/v1/docs/DefaultApi.md +++ b/rest/supersim/v1/docs/DefaultApi.md @@ -51,10 +51,10 @@ Optional parameters are passed through a pointer to a CreateCommandOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **callbackMethod** | **optional.String**| The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is POST. | - **callbackUrl** | **optional.String**| The URL we should call using the `callback_method` after we have sent the command. | - **command** | **optional.String**| The message body of the command. | - **sim** | **optional.String**| The `sid` or `unique_name` of the [SIM](https://www.twilio.com/docs/wireless/api/sim-resource) to send the Command to. | + **CallbackMethod** | **optional.String**| The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is POST. | + **CallbackUrl** | **optional.String**| The URL we should call using the `callback_method` after we have sent the command. | + **Command** | **optional.String**| The message body of the command. | + **Sim** | **optional.String**| The `sid` or `unique_name` of the [SIM](https://www.twilio.com/docs/wireless/api/sim-resource) to send the Command to. | ### Return type @@ -97,13 +97,13 @@ Optional parameters are passed through a pointer to a CreateFleetOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **commandsEnabled** | **optional.Bool**| Defines whether SIMs in the Fleet are capable of sending and receiving machine-to-machine SMS via Commands. Defaults to `true`. | - **commandsMethod** | **optional.String**| A string representing the HTTP method to use when making a request to `commands_url`. Can be one of `POST` or `GET`. Defaults to `POST`. | - **commandsUrl** | **optional.String**| The URL that will receive a webhook when a SIM in the Fleet originates a machine-to-machine SMS via Commands. Your server should respond with an HTTP status code in the 200 range; any response body will be ignored. | - **dataEnabled** | **optional.Bool**| Defines whether SIMs in the Fleet are capable of using 2G/3G/4G/LTE/CAT-M data connectivity. Defaults to `true`. | - **dataLimit** | **optional.Int32**| The total data usage (download and upload combined) in Megabytes that each Sim resource assigned to the Fleet resource can consume during a billing period (normally one month). Value must be between 1MB (1) and 2TB (2,000,000). Defaults to 1GB (1,000). | - **networkAccessProfile** | **optional.String**| The SID or unique name of the Network Access Profile that will control which cellular networks the Fleet's SIMs can connect to. | - **uniqueName** | **optional.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. | + **CommandsEnabled** | **optional.Bool**| Defines whether SIMs in the Fleet are capable of sending and receiving machine-to-machine SMS via Commands. Defaults to `true`. | + **CommandsMethod** | **optional.String**| A string representing the HTTP method to use when making a request to `commands_url`. Can be one of `POST` or `GET`. Defaults to `POST`. | + **CommandsUrl** | **optional.String**| The URL that will receive a webhook when a SIM in the Fleet originates a machine-to-machine SMS via Commands. Your server should respond with an HTTP status code in the 200 range; any response body will be ignored. | + **DataEnabled** | **optional.Bool**| Defines whether SIMs in the Fleet are capable of using 2G/3G/4G/LTE/CAT-M data connectivity. Defaults to `true`. | + **DataLimit** | **optional.Int32**| The total data usage (download and upload combined) in Megabytes that each Sim resource assigned to the Fleet resource can consume during a billing period (normally one month). Value must be between 1MB (1) and 2TB (2,000,000). Defaults to 1GB (1,000). | + **NetworkAccessProfile** | **optional.String**| The SID or unique name of the Network Access Profile that will control which cellular networks the Fleet's SIMs can connect to. | + **UniqueName** | **optional.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. | ### Return type @@ -146,8 +146,8 @@ Optional parameters are passed through a pointer to a CreateNetworkAccessProfile Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **networks** | [**optional.Interface of []string**](string.md)| List of Network SIDs that this Network Access Profile will allow connections to. | - **uniqueName** | **optional.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. | + **Networks** | [**optional.Interface of []string**](string.md)| List of Network SIDs that this Network Access Profile will allow connections to. | + **UniqueName** | **optional.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. | ### Return type @@ -169,7 +169,7 @@ Name | Type | Description | Notes ## CreateNetworkAccessProfileNetwork -> SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork CreateNetworkAccessProfileNetwork(ctx, networkAccessProfileSid, optional) +> SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork CreateNetworkAccessProfileNetwork(ctx, NetworkAccessProfileSid, optional) @@ -181,7 +181,7 @@ Add a Network resource to the Network Access Profile resource. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**networkAccessProfileSid** | **string**| The unique string that identifies the Network Access Profile resource. | +**NetworkAccessProfileSid** | **string**| The unique string that identifies the Network Access Profile resource. | **optional** | ***CreateNetworkAccessProfileNetworkOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -192,7 +192,7 @@ Optional parameters are passed through a pointer to a CreateNetworkAccessProfile Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **network** | **optional.String**| The SID of the Network resource to be added to the Network Access Profile resource. | + **Network** | **optional.String**| The SID of the Network resource to be added to the Network Access Profile resource. | ### Return type @@ -214,7 +214,7 @@ Name | Type | Description | Notes ## DeleteNetworkAccessProfileNetwork -> DeleteNetworkAccessProfileNetwork(ctx, networkAccessProfileSid, sid) +> DeleteNetworkAccessProfileNetwork(ctx, NetworkAccessProfileSid, Sid) @@ -226,8 +226,8 @@ Remove a Network resource from the Network Access Profile resource's. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**networkAccessProfileSid** | **string**| The unique string that identifies the Network Access Profile resource. | -**sid** | **string**| | +**NetworkAccessProfileSid** | **string**| The unique string that identifies the Network Access Profile resource. | +**Sid** | **string**| | ### Return type @@ -249,7 +249,7 @@ Name | Type | Description | Notes ## FetchCommand -> SupersimV1Command FetchCommand(ctx, sid) +> SupersimV1Command FetchCommand(ctx, Sid) @@ -261,7 +261,7 @@ Fetch a Command instance from your account. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Command resource to fetch. | +**Sid** | **string**| The SID of the Command resource to fetch. | ### Return type @@ -283,7 +283,7 @@ Name | Type | Description | Notes ## FetchFleet -> SupersimV1Fleet FetchFleet(ctx, sid) +> SupersimV1Fleet FetchFleet(ctx, Sid) @@ -295,7 +295,7 @@ Fetch a Fleet instance from your account. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Fleet resource to fetch. | +**Sid** | **string**| The SID of the Fleet resource to fetch. | ### Return type @@ -317,7 +317,7 @@ Name | Type | Description | Notes ## FetchNetwork -> SupersimV1Network FetchNetwork(ctx, sid) +> SupersimV1Network FetchNetwork(ctx, Sid) @@ -329,7 +329,7 @@ Fetch a Network resource. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Network resource to fetch. | +**Sid** | **string**| The SID of the Network resource to fetch. | ### Return type @@ -351,7 +351,7 @@ Name | Type | Description | Notes ## FetchNetworkAccessProfile -> SupersimV1NetworkAccessProfile FetchNetworkAccessProfile(ctx, sid) +> SupersimV1NetworkAccessProfile FetchNetworkAccessProfile(ctx, Sid) @@ -363,7 +363,7 @@ Fetch a Network Access Profile instance from your account. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Network Access Profile resource to fetch. | +**Sid** | **string**| The SID of the Network Access Profile resource to fetch. | ### Return type @@ -385,7 +385,7 @@ Name | Type | Description | Notes ## FetchNetworkAccessProfileNetwork -> SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork FetchNetworkAccessProfileNetwork(ctx, networkAccessProfileSid, sid) +> SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork FetchNetworkAccessProfileNetwork(ctx, NetworkAccessProfileSid, Sid) @@ -397,8 +397,8 @@ Fetch a Network Access Profile resource's Network resource. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**networkAccessProfileSid** | **string**| The unique string that identifies the Network Access Profile resource. | -**sid** | **string**| The SID of the Network resource to fetch. | +**NetworkAccessProfileSid** | **string**| The unique string that identifies the Network Access Profile resource. | +**Sid** | **string**| The SID of the Network resource to fetch. | ### Return type @@ -420,7 +420,7 @@ Name | Type | Description | Notes ## FetchSim -> SupersimV1Sim FetchSim(ctx, sid) +> SupersimV1Sim FetchSim(ctx, Sid) @@ -432,7 +432,7 @@ Fetch a Super SIM instance from your account. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Sim resource to fetch. | +**Sid** | **string**| The SID of the Sim resource to fetch. | ### Return type @@ -475,10 +475,10 @@ Optional parameters are passed through a pointer to a ListCommandOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **sim** | **optional.String**| The SID or unique name of the Sim that Command was sent to or from. | - **status** | **optional.String**| The status of the Command. Can be: `queued`, `sent`, `delivered`, `received` or `failed`. See the [Command Status Values](https://www.twilio.com/docs/wireless/api/command-resource#status-values) for a description of each. | - **direction** | **optional.String**| The direction of the Command. Can be `to_sim` or `from_sim`. The value of `to_sim` is synonymous with the term `mobile terminated`, and `from_sim` is synonymous with the term `mobile originated`. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Sim** | **optional.String**| The SID or unique name of the Sim that Command was sent to or from. | + **Status** | **optional.String**| The status of the Command. Can be: `queued`, `sent`, `delivered`, `received` or `failed`. See the [Command Status Values](https://www.twilio.com/docs/wireless/api/command-resource#status-values) for a description of each. | + **Direction** | **optional.String**| The direction of the Command. Can be `to_sim` or `from_sim`. The value of `to_sim` is synonymous with the term `mobile terminated`, and `from_sim` is synonymous with the term `mobile originated`. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -521,8 +521,8 @@ Optional parameters are passed through a pointer to a ListFleetOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **networkAccessProfile** | **optional.String**| The SID or unique name of the Network Access Profile that controls which cellular networks the Fleet's SIMs can connect to. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **NetworkAccessProfile** | **optional.String**| The SID or unique name of the Network Access Profile that controls which cellular networks the Fleet's SIMs can connect to. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -565,10 +565,10 @@ Optional parameters are passed through a pointer to a ListNetworkOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **isoCountry** | **optional.String**| The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Network resources to read. | - **mcc** | **optional.String**| The 'mobile country code' of a country. Network resources with this `mcc` in their `identifiers` will be read. | - **mnc** | **optional.String**| The 'mobile network code' of a mobile operator network. Network resources with this `mnc` in their `identifiers` will be read. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **IsoCountry** | **optional.String**| The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Network resources to read. | + **Mcc** | **optional.String**| The 'mobile country code' of a country. Network resources with this `mcc` in their `identifiers` will be read. | + **Mnc** | **optional.String**| The 'mobile network code' of a mobile operator network. Network resources with this `mnc` in their `identifiers` will be read. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -611,7 +611,7 @@ Optional parameters are passed through a pointer to a ListNetworkAccessProfileOp Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -633,7 +633,7 @@ Name | Type | Description | Notes ## ListNetworkAccessProfileNetwork -> SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse ListNetworkAccessProfileNetwork(ctx, networkAccessProfileSid, optional) +> SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse ListNetworkAccessProfileNetwork(ctx, NetworkAccessProfileSid, optional) @@ -645,7 +645,7 @@ Retrieve a list of Network Access Profile resource's Network resource. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**networkAccessProfileSid** | **string**| The unique string that identifies the Network Access Profile resource. | +**NetworkAccessProfileSid** | **string**| The unique string that identifies the Network Access Profile resource. | **optional** | ***ListNetworkAccessProfileNetworkOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -656,7 +656,7 @@ Optional parameters are passed through a pointer to a ListNetworkAccessProfileNe Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -699,10 +699,10 @@ Optional parameters are passed through a pointer to a ListSimOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | **optional.String**| The status of the Sim resources to read. Can be `new`, `ready`, `active`, `inactive`, or `scheduled`. | - **fleet** | **optional.String**| The SID or unique name of the Fleet to which a list of Sims are assigned. | - **iccid** | **optional.String**| The [ICCID](https://en.wikipedia.org/wiki/Subscriber_identity_module#ICCID) associated with a Super SIM to filter the list by. Passing this parameter will always return a list containing zero or one SIMs. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Status** | **optional.String**| The status of the Sim resources to read. Can be `new`, `ready`, `active`, `inactive`, or `scheduled`. | + **Fleet** | **optional.String**| The SID or unique name of the Fleet to which a list of Sims are assigned. | + **Iccid** | **optional.String**| The [ICCID](https://en.wikipedia.org/wiki/Subscriber_identity_module#ICCID) associated with a Super SIM to filter the list by. Passing this parameter will always return a list containing zero or one SIMs. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -745,15 +745,15 @@ Optional parameters are passed through a pointer to a ListUsageRecordOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **sim** | **optional.String**| SID or unique name of a Sim resource. Only show UsageRecords representing usage incurred by this Super SIM. | - **fleet** | **optional.String**| SID or unique name of a Fleet resource. Only show UsageRecords representing usage for Super SIMs belonging to this Fleet resource at the time the usage occurred. | - **network** | **optional.String**| SID of a Network resource. Only show UsageRecords representing usage on this network. | - **isoCountry** | **optional.String**| Alpha-2 ISO Country Code. Only show UsageRecords representing usage in this country. | - **group** | **optional.String**| Dimension over which to aggregate usage records. Can be: `sim`, `fleet`, `network`, `isoCountry`. Default is to not aggregate across any of these dimensions, UsageRecords will be aggregated into the time buckets described by the `Granularity` parameter. | - **granularity** | **optional.String**| Time-based grouping that UsageRecords should be aggregated by. Can be: `hour`, `day`, or `all`. Default is `all`. `all` returns one UsageRecord that describes the usage for the entire period. | - **startTime** | **optional.Time**| Only include usage that occurred at or after this time, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Default is one month before the `end_time`. | - **endTime** | **optional.Time**| Only include usage that occurred before this time, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Default is the current time. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Sim** | **optional.String**| SID or unique name of a Sim resource. Only show UsageRecords representing usage incurred by this Super SIM. | + **Fleet** | **optional.String**| SID or unique name of a Fleet resource. Only show UsageRecords representing usage for Super SIMs belonging to this Fleet resource at the time the usage occurred. | + **Network** | **optional.String**| SID of a Network resource. Only show UsageRecords representing usage on this network. | + **IsoCountry** | **optional.String**| Alpha-2 ISO Country Code. Only show UsageRecords representing usage in this country. | + **Group** | **optional.String**| Dimension over which to aggregate usage records. Can be: `sim`, `fleet`, `network`, `isoCountry`. Default is to not aggregate across any of these dimensions, UsageRecords will be aggregated into the time buckets described by the `Granularity` parameter. | + **Granularity** | **optional.String**| Time-based grouping that UsageRecords should be aggregated by. Can be: `hour`, `day`, or `all`. Default is `all`. `all` returns one UsageRecord that describes the usage for the entire period. | + **StartTime** | **optional.Time**| Only include usage that occurred at or after this time, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Default is one month before the `end_time`. | + **EndTime** | **optional.Time**| Only include usage that occurred before this time, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Default is the current time. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -775,7 +775,7 @@ Name | Type | Description | Notes ## UpdateFleet -> SupersimV1Fleet UpdateFleet(ctx, sid, optional) +> SupersimV1Fleet UpdateFleet(ctx, Sid, optional) @@ -787,7 +787,7 @@ Updates the given properties of a Super SIM Fleet instance from your account. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Fleet resource to update. | +**Sid** | **string**| The SID of the Fleet resource to update. | **optional** | ***UpdateFleetOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -798,8 +798,8 @@ Optional parameters are passed through a pointer to a UpdateFleetOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **networkAccessProfile** | **optional.String**| The SID or unique name of the Network Access Profile that will control which cellular networks the Fleet's SIMs can connect to. | - **uniqueName** | **optional.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. | + **NetworkAccessProfile** | **optional.String**| The SID or unique name of the Network Access Profile that will control which cellular networks the Fleet's SIMs can connect to. | + **UniqueName** | **optional.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. | ### Return type @@ -821,7 +821,7 @@ Name | Type | Description | Notes ## UpdateNetworkAccessProfile -> SupersimV1NetworkAccessProfile UpdateNetworkAccessProfile(ctx, sid, optional) +> SupersimV1NetworkAccessProfile UpdateNetworkAccessProfile(ctx, Sid, optional) @@ -833,7 +833,7 @@ Updates the given properties of a Network Access Profile in your account. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Network Access Profile to update. | +**Sid** | **string**| The SID of the Network Access Profile to update. | **optional** | ***UpdateNetworkAccessProfileOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -844,7 +844,7 @@ Optional parameters are passed through a pointer to a UpdateNetworkAccessProfile Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **uniqueName** | **optional.String**| The new unique name of the Network Access Profile. | + **UniqueName** | **optional.String**| The new unique name of the Network Access Profile. | ### Return type @@ -866,7 +866,7 @@ Name | Type | Description | Notes ## UpdateSim -> SupersimV1Sim UpdateSim(ctx, sid, optional) +> SupersimV1Sim UpdateSim(ctx, Sid, optional) @@ -878,7 +878,7 @@ Updates the given properties of a Super SIM instance from your account. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Sim resource to update. | +**Sid** | **string**| The SID of the Sim resource to update. | **optional** | ***UpdateSimOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -889,12 +889,12 @@ Optional parameters are passed through a pointer to a UpdateSimOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **accountSid** | **optional.String**| The SID of the Account to which the Sim resource should belong. The Account SID can only be that of the requesting Account or that of a Subaccount of the requesting Account. Only valid when the Sim resource's status is new. | - **callbackMethod** | **optional.String**| The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is POST. | - **callbackUrl** | **optional.String**| The URL we should call using the `callback_method` after an asynchronous update has finished. | - **fleet** | **optional.String**| The SID or unique name of the Fleet to which the SIM resource should be assigned. | - **status** | **optional.String**| The new status of the resource. Can be: `ready`, `active`, or `inactive`. See the [Super SIM Status Values](https://www.twilio.com/docs/iot/supersim/api/sim-resource#status-values) for more info. | - **uniqueName** | **optional.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. | + **AccountSid** | **optional.String**| The SID of the Account to which the Sim resource should belong. The Account SID can only be that of the requesting Account or that of a Subaccount of the requesting Account. Only valid when the Sim resource's status is new. | + **CallbackMethod** | **optional.String**| The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is POST. | + **CallbackUrl** | **optional.String**| The URL we should call using the `callback_method` after an asynchronous update has finished. | + **Fleet** | **optional.String**| The SID or unique name of the Fleet to which the SIM resource should be assigned. | + **Status** | **optional.String**| The new status of the resource. Can be: `ready`, `active`, or `inactive`. See the [Super SIM Status Values](https://www.twilio.com/docs/iot/supersim/api/sim-resource#status-values) for more info. | + **UniqueName** | **optional.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. | ### Return type diff --git a/rest/supersim/v1/model_supersim_v1_command.go b/rest/supersim/v1/model_supersim_v1_command.go index 462d77938..20459a780 100644 --- a/rest/supersim/v1/model_supersim_v1_command.go +++ b/rest/supersim/v1/model_supersim_v1_command.go @@ -14,13 +14,13 @@ import ( ) // SupersimV1Command struct for SupersimV1Command type SupersimV1Command struct { - AccountSid string `json:"account_sid,omitempty"` - Command string `json:"command,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Direction string `json:"direction,omitempty"` - Sid string `json:"sid,omitempty"` - SimSid string `json:"sim_sid,omitempty"` - Status string `json:"status,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Command string `json:"Command,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Direction string `json:"Direction,omitempty"` + Sid string `json:"Sid,omitempty"` + SimSid string `json:"SimSid,omitempty"` + Status string `json:"Status,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/supersim/v1/model_supersim_v1_command_read_response.go b/rest/supersim/v1/model_supersim_v1_command_read_response.go index abe2e2af4..ea2fe2f4b 100644 --- a/rest/supersim/v1/model_supersim_v1_command_read_response.go +++ b/rest/supersim/v1/model_supersim_v1_command_read_response.go @@ -11,6 +11,6 @@ package openapi // SupersimV1CommandReadResponse struct for SupersimV1CommandReadResponse type SupersimV1CommandReadResponse struct { - Commands []SupersimV1Command `json:"commands,omitempty"` - Meta SupersimV1CommandReadResponseMeta `json:"meta,omitempty"` + Commands []SupersimV1Command `json:"Commands,omitempty"` + Meta SupersimV1CommandReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/supersim/v1/model_supersim_v1_command_read_response_meta.go b/rest/supersim/v1/model_supersim_v1_command_read_response_meta.go index e9b805d5f..b6203a9cc 100644 --- a/rest/supersim/v1/model_supersim_v1_command_read_response_meta.go +++ b/rest/supersim/v1/model_supersim_v1_command_read_response_meta.go @@ -11,11 +11,11 @@ package openapi // SupersimV1CommandReadResponseMeta struct for SupersimV1CommandReadResponseMeta type SupersimV1CommandReadResponseMeta struct { - FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` - NextPageUrl string `json:"next_page_url,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUrl string `json:"previous_page_url,omitempty"` - Url string `json:"url,omitempty"` + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/supersim/v1/model_supersim_v1_fleet.go b/rest/supersim/v1/model_supersim_v1_fleet.go index d6f4dd57f..a195d3d95 100644 --- a/rest/supersim/v1/model_supersim_v1_fleet.go +++ b/rest/supersim/v1/model_supersim_v1_fleet.go @@ -14,17 +14,17 @@ import ( ) // SupersimV1Fleet struct for SupersimV1Fleet type SupersimV1Fleet struct { - AccountSid string `json:"account_sid,omitempty"` - CommandsEnabled bool `json:"commands_enabled,omitempty"` - CommandsMethod string `json:"commands_method,omitempty"` - CommandsUrl string `json:"commands_url,omitempty"` - DataEnabled bool `json:"data_enabled,omitempty"` - DataLimit int32 `json:"data_limit,omitempty"` - DataMetering string `json:"data_metering,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - NetworkAccessProfileSid string `json:"network_access_profile_sid,omitempty"` - Sid string `json:"sid,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + CommandsEnabled bool `json:"CommandsEnabled,omitempty"` + CommandsMethod string `json:"CommandsMethod,omitempty"` + CommandsUrl string `json:"CommandsUrl,omitempty"` + DataEnabled bool `json:"DataEnabled,omitempty"` + DataLimit int32 `json:"DataLimit,omitempty"` + DataMetering string `json:"DataMetering,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + NetworkAccessProfileSid string `json:"NetworkAccessProfileSid,omitempty"` + Sid string `json:"Sid,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/supersim/v1/model_supersim_v1_fleet_read_response.go b/rest/supersim/v1/model_supersim_v1_fleet_read_response.go index 8616914fe..91e73553d 100644 --- a/rest/supersim/v1/model_supersim_v1_fleet_read_response.go +++ b/rest/supersim/v1/model_supersim_v1_fleet_read_response.go @@ -11,6 +11,6 @@ package openapi // SupersimV1FleetReadResponse struct for SupersimV1FleetReadResponse type SupersimV1FleetReadResponse struct { - Fleets []SupersimV1Fleet `json:"fleets,omitempty"` - Meta SupersimV1CommandReadResponseMeta `json:"meta,omitempty"` + Fleets []SupersimV1Fleet `json:"Fleets,omitempty"` + Meta SupersimV1CommandReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/supersim/v1/model_supersim_v1_network.go b/rest/supersim/v1/model_supersim_v1_network.go index 40a027e66..0a025ea7f 100644 --- a/rest/supersim/v1/model_supersim_v1_network.go +++ b/rest/supersim/v1/model_supersim_v1_network.go @@ -11,9 +11,9 @@ package openapi // SupersimV1Network struct for SupersimV1Network type SupersimV1Network struct { - FriendlyName string `json:"friendly_name,omitempty"` - Identifiers []map[string]interface{} `json:"identifiers,omitempty"` - IsoCountry string `json:"iso_country,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Identifiers []map[string]interface{} `json:"Identifiers,omitempty"` + IsoCountry string `json:"IsoCountry,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/supersim/v1/model_supersim_v1_network_access_profile.go b/rest/supersim/v1/model_supersim_v1_network_access_profile.go index dcc89cc2d..8d20cf0e6 100644 --- a/rest/supersim/v1/model_supersim_v1_network_access_profile.go +++ b/rest/supersim/v1/model_supersim_v1_network_access_profile.go @@ -14,11 +14,11 @@ import ( ) // SupersimV1NetworkAccessProfile struct for SupersimV1NetworkAccessProfile type SupersimV1NetworkAccessProfile struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Sid string `json:"sid,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Sid string `json:"Sid,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/supersim/v1/model_supersim_v1_network_access_profile_network_access_profile_network.go b/rest/supersim/v1/model_supersim_v1_network_access_profile_network_access_profile_network.go index 0ffc9ff40..107814c1d 100644 --- a/rest/supersim/v1/model_supersim_v1_network_access_profile_network_access_profile_network.go +++ b/rest/supersim/v1/model_supersim_v1_network_access_profile_network_access_profile_network.go @@ -11,10 +11,10 @@ package openapi // SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork struct for SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork type SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork struct { - FriendlyName string `json:"friendly_name,omitempty"` - Identifiers []map[string]interface{} `json:"identifiers,omitempty"` - IsoCountry string `json:"iso_country,omitempty"` - NetworkAccessProfileSid string `json:"network_access_profile_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Identifiers []map[string]interface{} `json:"Identifiers,omitempty"` + IsoCountry string `json:"IsoCountry,omitempty"` + NetworkAccessProfileSid string `json:"NetworkAccessProfileSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/supersim/v1/model_supersim_v1_network_access_profile_network_access_profile_network_read_response.go b/rest/supersim/v1/model_supersim_v1_network_access_profile_network_access_profile_network_read_response.go index 73019f975..00ae7546f 100644 --- a/rest/supersim/v1/model_supersim_v1_network_access_profile_network_access_profile_network_read_response.go +++ b/rest/supersim/v1/model_supersim_v1_network_access_profile_network_access_profile_network_read_response.go @@ -11,6 +11,6 @@ package openapi // SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse struct for SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse type SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse struct { - Meta SupersimV1CommandReadResponseMeta `json:"meta,omitempty"` - Networks []SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork `json:"networks,omitempty"` + Meta SupersimV1CommandReadResponseMeta `json:"Meta,omitempty"` + Networks []SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork `json:"Networks,omitempty"` } diff --git a/rest/supersim/v1/model_supersim_v1_network_access_profile_read_response.go b/rest/supersim/v1/model_supersim_v1_network_access_profile_read_response.go index fbf90ca32..09ab6bd31 100644 --- a/rest/supersim/v1/model_supersim_v1_network_access_profile_read_response.go +++ b/rest/supersim/v1/model_supersim_v1_network_access_profile_read_response.go @@ -11,6 +11,6 @@ package openapi // SupersimV1NetworkAccessProfileReadResponse struct for SupersimV1NetworkAccessProfileReadResponse type SupersimV1NetworkAccessProfileReadResponse struct { - Meta SupersimV1CommandReadResponseMeta `json:"meta,omitempty"` - NetworkAccessProfiles []SupersimV1NetworkAccessProfile `json:"network_access_profiles,omitempty"` + Meta SupersimV1CommandReadResponseMeta `json:"Meta,omitempty"` + NetworkAccessProfiles []SupersimV1NetworkAccessProfile `json:"NetworkAccessProfiles,omitempty"` } diff --git a/rest/supersim/v1/model_supersim_v1_network_read_response.go b/rest/supersim/v1/model_supersim_v1_network_read_response.go index c41c2a2cd..302c4dd59 100644 --- a/rest/supersim/v1/model_supersim_v1_network_read_response.go +++ b/rest/supersim/v1/model_supersim_v1_network_read_response.go @@ -11,6 +11,6 @@ package openapi // SupersimV1NetworkReadResponse struct for SupersimV1NetworkReadResponse type SupersimV1NetworkReadResponse struct { - Meta SupersimV1CommandReadResponseMeta `json:"meta,omitempty"` - Networks []SupersimV1Network `json:"networks,omitempty"` + Meta SupersimV1CommandReadResponseMeta `json:"Meta,omitempty"` + Networks []SupersimV1Network `json:"Networks,omitempty"` } diff --git a/rest/supersim/v1/model_supersim_v1_sim.go b/rest/supersim/v1/model_supersim_v1_sim.go index 26b740d11..26ef7c570 100644 --- a/rest/supersim/v1/model_supersim_v1_sim.go +++ b/rest/supersim/v1/model_supersim_v1_sim.go @@ -14,13 +14,13 @@ import ( ) // SupersimV1Sim struct for SupersimV1Sim type SupersimV1Sim struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FleetSid string `json:"fleet_sid,omitempty"` - Iccid string `json:"iccid,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FleetSid string `json:"FleetSid,omitempty"` + Iccid string `json:"Iccid,omitempty"` + Sid string `json:"Sid,omitempty"` + Status string `json:"Status,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/supersim/v1/model_supersim_v1_sim_read_response.go b/rest/supersim/v1/model_supersim_v1_sim_read_response.go index bdd8e9067..cdda47303 100644 --- a/rest/supersim/v1/model_supersim_v1_sim_read_response.go +++ b/rest/supersim/v1/model_supersim_v1_sim_read_response.go @@ -11,6 +11,6 @@ package openapi // SupersimV1SimReadResponse struct for SupersimV1SimReadResponse type SupersimV1SimReadResponse struct { - Meta SupersimV1CommandReadResponseMeta `json:"meta,omitempty"` - Sims []SupersimV1Sim `json:"sims,omitempty"` + Meta SupersimV1CommandReadResponseMeta `json:"Meta,omitempty"` + Sims []SupersimV1Sim `json:"Sims,omitempty"` } diff --git a/rest/supersim/v1/model_supersim_v1_usage_record.go b/rest/supersim/v1/model_supersim_v1_usage_record.go index 4f96d2250..7f5c78bf5 100644 --- a/rest/supersim/v1/model_supersim_v1_usage_record.go +++ b/rest/supersim/v1/model_supersim_v1_usage_record.go @@ -11,13 +11,13 @@ package openapi // SupersimV1UsageRecord struct for SupersimV1UsageRecord type SupersimV1UsageRecord struct { - AccountSid string `json:"account_sid,omitempty"` - DataDownload int32 `json:"data_download,omitempty"` - DataTotal int32 `json:"data_total,omitempty"` - DataUpload int32 `json:"data_upload,omitempty"` - FleetSid string `json:"fleet_sid,omitempty"` - IsoCountry string `json:"iso_country,omitempty"` - NetworkSid string `json:"network_sid,omitempty"` - Period map[string]interface{} `json:"period,omitempty"` - SimSid string `json:"sim_sid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DataDownload int32 `json:"DataDownload,omitempty"` + DataTotal int32 `json:"DataTotal,omitempty"` + DataUpload int32 `json:"DataUpload,omitempty"` + FleetSid string `json:"FleetSid,omitempty"` + IsoCountry string `json:"IsoCountry,omitempty"` + NetworkSid string `json:"NetworkSid,omitempty"` + Period map[string]interface{} `json:"Period,omitempty"` + SimSid string `json:"SimSid,omitempty"` } diff --git a/rest/supersim/v1/model_supersim_v1_usage_record_read_response.go b/rest/supersim/v1/model_supersim_v1_usage_record_read_response.go index ee0b71d2f..a2231e308 100644 --- a/rest/supersim/v1/model_supersim_v1_usage_record_read_response.go +++ b/rest/supersim/v1/model_supersim_v1_usage_record_read_response.go @@ -11,6 +11,6 @@ package openapi // SupersimV1UsageRecordReadResponse struct for SupersimV1UsageRecordReadResponse type SupersimV1UsageRecordReadResponse struct { - Meta SupersimV1CommandReadResponseMeta `json:"meta,omitempty"` - UsageRecords []SupersimV1UsageRecord `json:"usage_records,omitempty"` + Meta SupersimV1CommandReadResponseMeta `json:"Meta,omitempty"` + UsageRecords []SupersimV1UsageRecord `json:"UsageRecords,omitempty"` } diff --git a/rest/sync/v1/api_default.go b/rest/sync/v1/api_default.go index faadb348d..262c6133e 100644 --- a/rest/sync/v1/api_default.go +++ b/rest/sync/v1/api_default.go @@ -15,6 +15,7 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" ) type DefaultApiService struct { @@ -37,16 +38,17 @@ type CreateDocumentParams struct { /* CreateDocument Method for CreateDocument - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the new Document resource in. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the new Document resource in. * @param optional nil or *CreateDocumentOpts - Optional Parameters: * @param "Data" (map[string]interface{}) - A JSON string that represents an arbitrary, schema-less object that the Sync Document stores. Can be up to 16KB in length. * @param "Ttl" (int32) - How long, in seconds, before the Sync Document expires and is deleted (the Sync Document's time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync Document does not expire. The Sync Document will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. * @param "UniqueName" (string) - An application-defined string that uniquely identifies the Sync Document @return SyncV1ServiceDocument */ -func (c *DefaultApiService) CreateDocument(serviceSid string, params *CreateDocumentParams) (*SyncV1ServiceDocument, error) { +func (c *DefaultApiService) CreateDocument(ServiceSid string, params *CreateDocumentParams) (*SyncV1ServiceDocument, error) { path := "/v1/Services/{ServiceSid}/Documents" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 @@ -58,13 +60,13 @@ func (c *DefaultApiService) CreateDocument(serviceSid string, params *CreateDocu return nil, err } - data.Set("Data", string(v)) + data.Set("Data", fmt.Sprint(v)) } if params != nil && params.Ttl != nil { - data.Set("Ttl", string(*params.Ttl)) + data.Set("Ttl", fmt.Sprint(*params.Ttl)) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -108,29 +110,30 @@ CreateService Method for CreateService func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*SyncV1Service, error) { path := "/v1/Services" + data := url.Values{} headers := 0 if params != nil && params.AclEnabled != nil { - data.Set("AclEnabled", string(*params.AclEnabled)) + data.Set("AclEnabled", fmt.Sprint(*params.AclEnabled)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.ReachabilityDebouncingEnabled != nil { - data.Set("ReachabilityDebouncingEnabled", string(*params.ReachabilityDebouncingEnabled)) + data.Set("ReachabilityDebouncingEnabled", fmt.Sprint(*params.ReachabilityDebouncingEnabled)) } if params != nil && params.ReachabilityDebouncingWindow != nil { - data.Set("ReachabilityDebouncingWindow", string(*params.ReachabilityDebouncingWindow)) + data.Set("ReachabilityDebouncingWindow", fmt.Sprint(*params.ReachabilityDebouncingWindow)) } if params != nil && params.ReachabilityWebhooksEnabled != nil { - data.Set("ReachabilityWebhooksEnabled", string(*params.ReachabilityWebhooksEnabled)) + data.Set("ReachabilityWebhooksEnabled", fmt.Sprint(*params.ReachabilityWebhooksEnabled)) } if params != nil && params.WebhookUrl != nil { - data.Set("WebhookUrl", *params.WebhookUrl) + data.Set("WebhookUrl", *params.WebhookUrl) } if params != nil && params.WebhooksFromRestEnabled != nil { - data.Set("WebhooksFromRestEnabled", string(*params.WebhooksFromRestEnabled)) + data.Set("WebhooksFromRestEnabled", fmt.Sprint(*params.WebhooksFromRestEnabled)) } @@ -156,16 +159,17 @@ type CreateStreamMessageParams struct { /* CreateStreamMessage Method for CreateStreamMessage Create a new Stream Message. - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the new Stream Message in. - * @param streamSid The SID of the Sync Stream to create the new Stream Message resource for. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the new Stream Message in. + * @param StreamSid The SID of the Sync Stream to create the new Stream Message resource for. * @param optional nil or *CreateStreamMessageOpts - Optional Parameters: * @param "Data" (map[string]interface{}) - A JSON string that represents an arbitrary, schema-less object that makes up the Stream Message body. Can be up to 4KB in length. @return SyncV1ServiceSyncStreamStreamMessage */ -func (c *DefaultApiService) CreateStreamMessage(serviceSid string, streamSid string, params *CreateStreamMessageParams) (*SyncV1ServiceSyncStreamStreamMessage, error) { +func (c *DefaultApiService) CreateStreamMessage(ServiceSid string, StreamSid string, params *CreateStreamMessageParams) (*SyncV1ServiceSyncStreamStreamMessage, error) { path := "/v1/Services/{ServiceSid}/Streams/{StreamSid}/Messages" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"StreamSid"+"}", streamSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"StreamSid"+"}", StreamSid, -1) + data := url.Values{} headers := 0 @@ -177,7 +181,7 @@ func (c *DefaultApiService) CreateStreamMessage(serviceSid string, streamSid str return nil, err } - data.Set("Data", string(v)) + data.Set("Data", fmt.Sprint(v)) } @@ -204,28 +208,29 @@ type CreateSyncListParams struct { /* CreateSyncList Method for CreateSyncList - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the new Sync List in. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the new Sync List in. * @param optional nil or *CreateSyncListOpts - Optional Parameters: * @param "CollectionTtl" (int32) - How long, in seconds, before the Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. * @param "Ttl" (int32) - Alias for collection_ttl. If both are provided, this value is ignored. * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. This value must be unique within its Service and it can be up to 320 characters long. The `unique_name` value can be used as an alternative to the `sid` in the URL path to address the resource. @return SyncV1ServiceSyncList */ -func (c *DefaultApiService) CreateSyncList(serviceSid string, params *CreateSyncListParams) (*SyncV1ServiceSyncList, error) { +func (c *DefaultApiService) CreateSyncList(ServiceSid string, params *CreateSyncListParams) (*SyncV1ServiceSyncList, error) { path := "/v1/Services/{ServiceSid}/Lists" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.CollectionTtl != nil { - data.Set("CollectionTtl", string(*params.CollectionTtl)) + data.Set("CollectionTtl", fmt.Sprint(*params.CollectionTtl)) } if params != nil && params.Ttl != nil { - data.Set("Ttl", string(*params.Ttl)) + data.Set("Ttl", fmt.Sprint(*params.Ttl)) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -253,8 +258,8 @@ type CreateSyncListItemParams struct { /* CreateSyncListItem Method for CreateSyncListItem - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the new List Item in. - * @param listSid The SID of the Sync List to add the new List Item to. Can be the Sync List resource's `sid` or its `unique_name`. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the new List Item in. + * @param ListSid The SID of the Sync List to add the new List Item to. Can be the Sync List resource's `sid` or its `unique_name`. * @param optional nil or *CreateSyncListItemOpts - Optional Parameters: * @param "CollectionTtl" (int32) - How long, in seconds, before the List Item's parent Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. * @param "Data" (map[string]interface{}) - A JSON string that represents an arbitrary, schema-less object that the List Item stores. Can be up to 16KB in length. @@ -262,16 +267,17 @@ CreateSyncListItem Method for CreateSyncListItem * @param "Ttl" (int32) - An alias for `item_ttl`. If both parameters are provided, this value is ignored. @return SyncV1ServiceSyncListSyncListItem */ -func (c *DefaultApiService) CreateSyncListItem(serviceSid string, listSid string, params *CreateSyncListItemParams) (*SyncV1ServiceSyncListSyncListItem, error) { +func (c *DefaultApiService) CreateSyncListItem(ServiceSid string, ListSid string, params *CreateSyncListItemParams) (*SyncV1ServiceSyncListSyncListItem, error) { path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Items" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", ListSid, -1) + data := url.Values{} headers := 0 if params != nil && params.CollectionTtl != nil { - data.Set("CollectionTtl", string(*params.CollectionTtl)) + data.Set("CollectionTtl", fmt.Sprint(*params.CollectionTtl)) } if params != nil && params.Data != nil { v, err := json.Marshal(params.Data) @@ -280,13 +286,13 @@ func (c *DefaultApiService) CreateSyncListItem(serviceSid string, listSid string return nil, err } - data.Set("Data", string(v)) + data.Set("Data", fmt.Sprint(v)) } if params != nil && params.ItemTtl != nil { - data.Set("ItemTtl", string(*params.ItemTtl)) + data.Set("ItemTtl", fmt.Sprint(*params.ItemTtl)) } if params != nil && params.Ttl != nil { - data.Set("Ttl", string(*params.Ttl)) + data.Set("Ttl", fmt.Sprint(*params.Ttl)) } @@ -313,28 +319,29 @@ type CreateSyncMapParams struct { /* CreateSyncMap Method for CreateSyncMap - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the Sync Map in. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the Sync Map in. * @param optional nil or *CreateSyncMapOpts - Optional Parameters: * @param "CollectionTtl" (int32) - How long, in seconds, before the Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync Map does not expire. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. * @param "Ttl" (int32) - An alias for `collection_ttl`. If both parameters are provided, this value is ignored. * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. It can be used as an alternative to the `sid` in the URL path to address the resource. @return SyncV1ServiceSyncMap */ -func (c *DefaultApiService) CreateSyncMap(serviceSid string, params *CreateSyncMapParams) (*SyncV1ServiceSyncMap, error) { +func (c *DefaultApiService) CreateSyncMap(ServiceSid string, params *CreateSyncMapParams) (*SyncV1ServiceSyncMap, error) { path := "/v1/Services/{ServiceSid}/Maps" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.CollectionTtl != nil { - data.Set("CollectionTtl", string(*params.CollectionTtl)) + data.Set("CollectionTtl", fmt.Sprint(*params.CollectionTtl)) } if params != nil && params.Ttl != nil { - data.Set("Ttl", string(*params.Ttl)) + data.Set("Ttl", fmt.Sprint(*params.Ttl)) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -363,8 +370,8 @@ type CreateSyncMapItemParams struct { /* CreateSyncMapItem Method for CreateSyncMapItem - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the Map Item in. - * @param mapSid The SID of the Sync Map to add the new Map Item to. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the Map Item in. + * @param MapSid The SID of the Sync Map to add the new Map Item to. * @param optional nil or *CreateSyncMapItemOpts - Optional Parameters: * @param "CollectionTtl" (int32) - How long, in seconds, before the Map Item's parent Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync Map does not expire. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. * @param "Data" (map[string]interface{}) - A JSON string that represents an arbitrary, schema-less object that the Map Item stores. Can be up to 16KB in length. @@ -373,16 +380,17 @@ CreateSyncMapItem Method for CreateSyncMapItem * @param "Ttl" (int32) - An alias for `item_ttl`. If both parameters are provided, this value is ignored. @return SyncV1ServiceSyncMapSyncMapItem */ -func (c *DefaultApiService) CreateSyncMapItem(serviceSid string, mapSid string, params *CreateSyncMapItemParams) (*SyncV1ServiceSyncMapSyncMapItem, error) { +func (c *DefaultApiService) CreateSyncMapItem(ServiceSid string, MapSid string, params *CreateSyncMapItemParams) (*SyncV1ServiceSyncMapSyncMapItem, error) { path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Items" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", MapSid, -1) + data := url.Values{} headers := 0 if params != nil && params.CollectionTtl != nil { - data.Set("CollectionTtl", string(*params.CollectionTtl)) + data.Set("CollectionTtl", fmt.Sprint(*params.CollectionTtl)) } if params != nil && params.Data != nil { v, err := json.Marshal(params.Data) @@ -391,16 +399,16 @@ func (c *DefaultApiService) CreateSyncMapItem(serviceSid string, mapSid string, return nil, err } - data.Set("Data", string(v)) + data.Set("Data", fmt.Sprint(v)) } if params != nil && params.ItemTtl != nil { - data.Set("ItemTtl", string(*params.ItemTtl)) + data.Set("ItemTtl", fmt.Sprint(*params.ItemTtl)) } if params != nil && params.Key != nil { - data.Set("Key", *params.Key) + data.Set("Key", *params.Key) } if params != nil && params.Ttl != nil { - data.Set("Ttl", string(*params.Ttl)) + data.Set("Ttl", fmt.Sprint(*params.Ttl)) } @@ -427,24 +435,25 @@ type CreateSyncStreamParams struct { /* CreateSyncStream Method for CreateSyncStream Create a new Stream. - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the new Stream in. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the new Stream in. * @param optional nil or *CreateSyncStreamOpts - Optional Parameters: * @param "Ttl" (int32) - How long, in seconds, before the Stream expires and is deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Stream does not expire. The Stream will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. This value must be unique within its Service and it can be up to 320 characters long. The `unique_name` value can be used as an alternative to the `sid` in the URL path to address the resource. @return SyncV1ServiceSyncStream */ -func (c *DefaultApiService) CreateSyncStream(serviceSid string, params *CreateSyncStreamParams) (*SyncV1ServiceSyncStream, error) { +func (c *DefaultApiService) CreateSyncStream(ServiceSid string, params *CreateSyncStreamParams) (*SyncV1ServiceSyncStream, error) { path := "/v1/Services/{ServiceSid}/Streams" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Ttl != nil { - data.Set("Ttl", string(*params.Ttl)) + data.Set("Ttl", fmt.Sprint(*params.Ttl)) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -464,27 +473,28 @@ func (c *DefaultApiService) CreateSyncStream(serviceSid string, params *CreateSy } // DeleteDocumentParams Optional parameters for the method 'DeleteDocument' type DeleteDocumentParams struct { - If-Match *string `json:"If-Match,omitempty"` + IfMatch *string `json:"If-Match,omitempty"` } /* DeleteDocument Method for DeleteDocument - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document resource to delete. - * @param sid The SID of the Document resource to delete. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document resource to delete. + * @param Sid The SID of the Document resource to delete. * @param optional nil or *DeleteDocumentOpts - Optional Parameters: * @param "If-Match" (string) - The If-Match HTTP request header */ -func (c *DefaultApiService) DeleteDocument(serviceSid string, sid string, params *DeleteDocumentParams) (error) { +func (c *DefaultApiService) DeleteDocument(ServiceSid string, Sid string, params *DeleteDocumentParams) (error) { path := "/v1/Services/{ServiceSid}/Documents/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := make(map[string]interface{}) - if params != nil && params.If-Match != nil { - headers["If-Match"] = *params.If-Match + if params != nil && params.IfMatch != nil { + headers["IfMatch"] = *params.IfMatch } resp, err := c.client.Delete(c.baseURL+path, data, headers) @@ -500,17 +510,18 @@ func (c *DefaultApiService) DeleteDocument(serviceSid string, sid string, params /* DeleteDocumentPermission Method for DeleteDocumentPermission Delete a specific Sync Document Permission. - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document Permission resource to delete. - * @param documentSid The SID of the Sync Document with the Document Permission resource to delete. Can be the Document resource's `sid` or its `unique_name`. - * @param identity The application-defined string that uniquely identifies the User's Document Permission resource to delete. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document Permission resource to delete. + * @param DocumentSid The SID of the Sync Document with the Document Permission resource to delete. Can be the Document resource's `sid` or its `unique_name`. + * @param Identity The application-defined string that uniquely identifies the User's Document Permission resource to delete. */ -func (c *DefaultApiService) DeleteDocumentPermission(serviceSid string, documentSid string, identity string) (error) { +func (c *DefaultApiService) DeleteDocumentPermission(ServiceSid string, DocumentSid string, Identity string) (error) { path := "/v1/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"DocumentSid"+"}", documentSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"DocumentSid"+"}", DocumentSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", Identity, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -527,13 +538,14 @@ func (c *DefaultApiService) DeleteDocumentPermission(serviceSid string, document /* DeleteService Method for DeleteService - * @param sid The SID of the Service resource to delete. + * @param Sid The SID of the Service resource to delete. */ -func (c *DefaultApiService) DeleteService(sid string) (error) { +func (c *DefaultApiService) DeleteService(Sid string) (error) { path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -550,15 +562,16 @@ func (c *DefaultApiService) DeleteService(sid string) (error) { /* DeleteSyncList Method for DeleteSyncList - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List resource to delete. - * @param sid The SID of the Sync List resource to delete. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List resource to delete. + * @param Sid The SID of the Sync List resource to delete. */ -func (c *DefaultApiService) DeleteSyncList(serviceSid string, sid string) (error) { +func (c *DefaultApiService) DeleteSyncList(ServiceSid string, Sid string) (error) { path := "/v1/Services/{ServiceSid}/Lists/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -574,29 +587,30 @@ func (c *DefaultApiService) DeleteSyncList(serviceSid string, sid string) (error } // DeleteSyncListItemParams Optional parameters for the method 'DeleteSyncListItem' type DeleteSyncListItemParams struct { - If-Match *string `json:"If-Match,omitempty"` + IfMatch *string `json:"If-Match,omitempty"` } /* DeleteSyncListItem Method for DeleteSyncListItem - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Item resource to delete. - * @param listSid The SID of the Sync List with the Sync List Item resource to delete. Can be the Sync List resource's `sid` or its `unique_name`. - * @param index The index of the Sync List Item resource to delete. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Item resource to delete. + * @param ListSid The SID of the Sync List with the Sync List Item resource to delete. Can be the Sync List resource's `sid` or its `unique_name`. + * @param Index The index of the Sync List Item resource to delete. * @param optional nil or *DeleteSyncListItemOpts - Optional Parameters: * @param "If-Match" (string) - The If-Match HTTP request header */ -func (c *DefaultApiService) DeleteSyncListItem(serviceSid string, listSid string, index int32, params *DeleteSyncListItemParams) (error) { +func (c *DefaultApiService) DeleteSyncListItem(ServiceSid string, ListSid string, Index int32, params *DeleteSyncListItemParams) (error) { path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) - path = strings.Replace(path, "{"+"Index"+"}", index, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", ListSid, -1) + path = strings.Replace(path, "{"+"Index"+"}", fmt.Sprint(Index), -1) + data := url.Values{} headers := make(map[string]interface{}) - if params != nil && params.If-Match != nil { - headers["If-Match"] = *params.If-Match + if params != nil && params.IfMatch != nil { + headers["IfMatch"] = *params.IfMatch } resp, err := c.client.Delete(c.baseURL+path, data, headers) @@ -612,17 +626,18 @@ func (c *DefaultApiService) DeleteSyncListItem(serviceSid string, listSid string /* DeleteSyncListPermission Method for DeleteSyncListPermission Delete a specific Sync List Permission. - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Permission resource to delete. - * @param listSid The SID of the Sync List with the Sync List Permission resource to delete. Can be the Sync List resource's `sid` or its `unique_name`. - * @param identity The application-defined string that uniquely identifies the User's Sync List Permission resource to delete. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Permission resource to delete. + * @param ListSid The SID of the Sync List with the Sync List Permission resource to delete. Can be the Sync List resource's `sid` or its `unique_name`. + * @param Identity The application-defined string that uniquely identifies the User's Sync List Permission resource to delete. */ -func (c *DefaultApiService) DeleteSyncListPermission(serviceSid string, listSid string, identity string) (error) { +func (c *DefaultApiService) DeleteSyncListPermission(ServiceSid string, ListSid string, Identity string) (error) { path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", ListSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", Identity, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -639,15 +654,16 @@ func (c *DefaultApiService) DeleteSyncListPermission(serviceSid string, listSid /* DeleteSyncMap Method for DeleteSyncMap - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map resource to delete. - * @param sid The SID of the Sync Map resource to delete. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map resource to delete. + * @param Sid The SID of the Sync Map resource to delete. */ -func (c *DefaultApiService) DeleteSyncMap(serviceSid string, sid string) (error) { +func (c *DefaultApiService) DeleteSyncMap(ServiceSid string, Sid string) (error) { path := "/v1/Services/{ServiceSid}/Maps/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -663,29 +679,30 @@ func (c *DefaultApiService) DeleteSyncMap(serviceSid string, sid string) (error) } // DeleteSyncMapItemParams Optional parameters for the method 'DeleteSyncMapItem' type DeleteSyncMapItemParams struct { - If-Match *string `json:"If-Match,omitempty"` + IfMatch *string `json:"If-Match,omitempty"` } /* DeleteSyncMapItem Method for DeleteSyncMapItem - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Item resource to delete. - * @param mapSid The SID of the Sync Map with the Sync Map Item resource to delete. Can be the Sync Map's `sid` or its `unique_name`. - * @param key The `key` value of the Sync Map Item resource to delete. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Item resource to delete. + * @param MapSid The SID of the Sync Map with the Sync Map Item resource to delete. Can be the Sync Map's `sid` or its `unique_name`. + * @param Key The `key` value of the Sync Map Item resource to delete. * @param optional nil or *DeleteSyncMapItemOpts - Optional Parameters: * @param "If-Match" (string) - The If-Match HTTP request header */ -func (c *DefaultApiService) DeleteSyncMapItem(serviceSid string, mapSid string, key string, params *DeleteSyncMapItemParams) (error) { +func (c *DefaultApiService) DeleteSyncMapItem(ServiceSid string, MapSid string, Key string, params *DeleteSyncMapItemParams) (error) { path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) - path = strings.Replace(path, "{"+"Key"+"}", key, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", MapSid, -1) + path = strings.Replace(path, "{"+"Key"+"}", Key, -1) + data := url.Values{} headers := make(map[string]interface{}) - if params != nil && params.If-Match != nil { - headers["If-Match"] = *params.If-Match + if params != nil && params.IfMatch != nil { + headers["IfMatch"] = *params.IfMatch } resp, err := c.client.Delete(c.baseURL+path, data, headers) @@ -701,17 +718,18 @@ func (c *DefaultApiService) DeleteSyncMapItem(serviceSid string, mapSid string, /* DeleteSyncMapPermission Method for DeleteSyncMapPermission Delete a specific Sync Map Permission. - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Permission resource to delete. Can be the Service's `sid` value or `default`. - * @param mapSid The SID of the Sync Map with the Sync Map Permission resource to delete. Can be the Sync Map's `sid` or its `unique_name`. - * @param identity The application-defined string that uniquely identifies the User's Sync Map Permission resource to delete. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Permission resource to delete. Can be the Service's `sid` value or `default`. + * @param MapSid The SID of the Sync Map with the Sync Map Permission resource to delete. Can be the Sync Map's `sid` or its `unique_name`. + * @param Identity The application-defined string that uniquely identifies the User's Sync Map Permission resource to delete. */ -func (c *DefaultApiService) DeleteSyncMapPermission(serviceSid string, mapSid string, identity string) (error) { +func (c *DefaultApiService) DeleteSyncMapPermission(ServiceSid string, MapSid string, Identity string) (error) { path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", MapSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", Identity, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -729,15 +747,16 @@ func (c *DefaultApiService) DeleteSyncMapPermission(serviceSid string, mapSid st /* DeleteSyncStream Method for DeleteSyncStream Delete a specific Stream. - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Stream resource to delete. - * @param sid The SID of the Stream resource to delete. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Stream resource to delete. + * @param Sid The SID of the Stream resource to delete. */ -func (c *DefaultApiService) DeleteSyncStream(serviceSid string, sid string) (error) { +func (c *DefaultApiService) DeleteSyncStream(ServiceSid string, Sid string) (error) { path := "/v1/Services/{ServiceSid}/Streams/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -754,16 +773,17 @@ func (c *DefaultApiService) DeleteSyncStream(serviceSid string, sid string) (err /* FetchDocument Method for FetchDocument - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document resource to fetch. - * @param sid The SID of the Document resource to fetch. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document resource to fetch. + * @param Sid The SID of the Document resource to fetch. @return SyncV1ServiceDocument */ -func (c *DefaultApiService) FetchDocument(serviceSid string, sid string) (*SyncV1ServiceDocument, error) { +func (c *DefaultApiService) FetchDocument(ServiceSid string, Sid string) (*SyncV1ServiceDocument, error) { path := "/v1/Services/{ServiceSid}/Documents/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -786,18 +806,19 @@ func (c *DefaultApiService) FetchDocument(serviceSid string, sid string) (*SyncV /* FetchDocumentPermission Method for FetchDocumentPermission Fetch a specific Sync Document Permission. - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document Permission resource to fetch. - * @param documentSid The SID of the Sync Document with the Document Permission resource to fetch. Can be the Document resource's `sid` or its `unique_name`. - * @param identity The application-defined string that uniquely identifies the User's Document Permission resource to fetch. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document Permission resource to fetch. + * @param DocumentSid The SID of the Sync Document with the Document Permission resource to fetch. Can be the Document resource's `sid` or its `unique_name`. + * @param Identity The application-defined string that uniquely identifies the User's Document Permission resource to fetch. @return SyncV1ServiceDocumentDocumentPermission */ -func (c *DefaultApiService) FetchDocumentPermission(serviceSid string, documentSid string, identity string) (*SyncV1ServiceDocumentDocumentPermission, error) { +func (c *DefaultApiService) FetchDocumentPermission(ServiceSid string, DocumentSid string, Identity string) (*SyncV1ServiceDocumentDocumentPermission, error) { path := "/v1/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"DocumentSid"+"}", documentSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"DocumentSid"+"}", DocumentSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", Identity, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -819,14 +840,15 @@ func (c *DefaultApiService) FetchDocumentPermission(serviceSid string, documentS /* FetchService Method for FetchService - * @param sid The SID of the Service resource to fetch. + * @param Sid The SID of the Service resource to fetch. @return SyncV1Service */ -func (c *DefaultApiService) FetchService(sid string) (*SyncV1Service, error) { +func (c *DefaultApiService) FetchService(Sid string) (*SyncV1Service, error) { path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -848,16 +870,17 @@ func (c *DefaultApiService) FetchService(sid string) (*SyncV1Service, error) { /* FetchSyncList Method for FetchSyncList - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List resource to fetch. - * @param sid The SID of the Sync List resource to fetch. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List resource to fetch. + * @param Sid The SID of the Sync List resource to fetch. @return SyncV1ServiceSyncList */ -func (c *DefaultApiService) FetchSyncList(serviceSid string, sid string) (*SyncV1ServiceSyncList, error) { +func (c *DefaultApiService) FetchSyncList(ServiceSid string, Sid string) (*SyncV1ServiceSyncList, error) { path := "/v1/Services/{ServiceSid}/Lists/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -879,18 +902,19 @@ func (c *DefaultApiService) FetchSyncList(serviceSid string, sid string) (*SyncV /* FetchSyncListItem Method for FetchSyncListItem - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Item resource to fetch. - * @param listSid The SID of the Sync List with the Sync List Item resource to fetch. Can be the Sync List resource's `sid` or its `unique_name`. - * @param index The index of the Sync List Item resource to fetch. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Item resource to fetch. + * @param ListSid The SID of the Sync List with the Sync List Item resource to fetch. Can be the Sync List resource's `sid` or its `unique_name`. + * @param Index The index of the Sync List Item resource to fetch. @return SyncV1ServiceSyncListSyncListItem */ -func (c *DefaultApiService) FetchSyncListItem(serviceSid string, listSid string, index int32) (*SyncV1ServiceSyncListSyncListItem, error) { +func (c *DefaultApiService) FetchSyncListItem(ServiceSid string, ListSid string, Index int32) (*SyncV1ServiceSyncListSyncListItem, error) { path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) - path = strings.Replace(path, "{"+"Index"+"}", index, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", ListSid, -1) + path = strings.Replace(path, "{"+"Index"+"}", fmt.Sprint(Index), -1) - data := 0 + + data := url.Values{} headers := 0 @@ -913,18 +937,19 @@ func (c *DefaultApiService) FetchSyncListItem(serviceSid string, listSid string, /* FetchSyncListPermission Method for FetchSyncListPermission Fetch a specific Sync List Permission. - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Permission resource to fetch. - * @param listSid The SID of the Sync List with the Sync List Permission resource to fetch. Can be the Sync List resource's `sid` or its `unique_name`. - * @param identity The application-defined string that uniquely identifies the User's Sync List Permission resource to fetch. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Permission resource to fetch. + * @param ListSid The SID of the Sync List with the Sync List Permission resource to fetch. Can be the Sync List resource's `sid` or its `unique_name`. + * @param Identity The application-defined string that uniquely identifies the User's Sync List Permission resource to fetch. @return SyncV1ServiceSyncListSyncListPermission */ -func (c *DefaultApiService) FetchSyncListPermission(serviceSid string, listSid string, identity string) (*SyncV1ServiceSyncListSyncListPermission, error) { +func (c *DefaultApiService) FetchSyncListPermission(ServiceSid string, ListSid string, Identity string) (*SyncV1ServiceSyncListSyncListPermission, error) { path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", ListSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", Identity, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -946,16 +971,17 @@ func (c *DefaultApiService) FetchSyncListPermission(serviceSid string, listSid s /* FetchSyncMap Method for FetchSyncMap - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map resource to fetch. - * @param sid The SID of the Sync Map resource to fetch. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map resource to fetch. + * @param Sid The SID of the Sync Map resource to fetch. @return SyncV1ServiceSyncMap */ -func (c *DefaultApiService) FetchSyncMap(serviceSid string, sid string) (*SyncV1ServiceSyncMap, error) { +func (c *DefaultApiService) FetchSyncMap(ServiceSid string, Sid string) (*SyncV1ServiceSyncMap, error) { path := "/v1/Services/{ServiceSid}/Maps/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -977,18 +1003,19 @@ func (c *DefaultApiService) FetchSyncMap(serviceSid string, sid string) (*SyncV1 /* FetchSyncMapItem Method for FetchSyncMapItem - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Item resource to fetch. - * @param mapSid The SID of the Sync Map with the Sync Map Item resource to fetch. Can be the Sync Map's `sid` or its `unique_name`. - * @param key The `key` value of the Sync Map Item resource to fetch. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Item resource to fetch. + * @param MapSid The SID of the Sync Map with the Sync Map Item resource to fetch. Can be the Sync Map's `sid` or its `unique_name`. + * @param Key The `key` value of the Sync Map Item resource to fetch. @return SyncV1ServiceSyncMapSyncMapItem */ -func (c *DefaultApiService) FetchSyncMapItem(serviceSid string, mapSid string, key string) (*SyncV1ServiceSyncMapSyncMapItem, error) { +func (c *DefaultApiService) FetchSyncMapItem(ServiceSid string, MapSid string, Key string) (*SyncV1ServiceSyncMapSyncMapItem, error) { path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) - path = strings.Replace(path, "{"+"Key"+"}", key, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", MapSid, -1) + path = strings.Replace(path, "{"+"Key"+"}", Key, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1011,18 +1038,19 @@ func (c *DefaultApiService) FetchSyncMapItem(serviceSid string, mapSid string, k /* FetchSyncMapPermission Method for FetchSyncMapPermission Fetch a specific Sync Map Permission. - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Permission resource to fetch. Can be the Service's `sid` value or `default`. - * @param mapSid The SID of the Sync Map with the Sync Map Permission resource to fetch. Can be the Sync Map's `sid` or its `unique_name`. - * @param identity The application-defined string that uniquely identifies the User's Sync Map Permission resource to fetch. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Permission resource to fetch. Can be the Service's `sid` value or `default`. + * @param MapSid The SID of the Sync Map with the Sync Map Permission resource to fetch. Can be the Sync Map's `sid` or its `unique_name`. + * @param Identity The application-defined string that uniquely identifies the User's Sync Map Permission resource to fetch. @return SyncV1ServiceSyncMapSyncMapPermission */ -func (c *DefaultApiService) FetchSyncMapPermission(serviceSid string, mapSid string, identity string) (*SyncV1ServiceSyncMapSyncMapPermission, error) { +func (c *DefaultApiService) FetchSyncMapPermission(ServiceSid string, MapSid string, Identity string) (*SyncV1ServiceSyncMapSyncMapPermission, error) { path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", MapSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", Identity, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1045,16 +1073,17 @@ func (c *DefaultApiService) FetchSyncMapPermission(serviceSid string, mapSid str /* FetchSyncStream Method for FetchSyncStream Fetch a specific Stream. - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Stream resource to fetch. - * @param sid The SID of the Stream resource to fetch. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Stream resource to fetch. + * @param Sid The SID of the Stream resource to fetch. @return SyncV1ServiceSyncStream */ -func (c *DefaultApiService) FetchSyncStream(serviceSid string, sid string) (*SyncV1ServiceSyncStream, error) { +func (c *DefaultApiService) FetchSyncStream(ServiceSid string, Sid string) (*SyncV1ServiceSyncStream, error) { path := "/v1/Services/{ServiceSid}/Streams/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1081,24 +1110,25 @@ type ListDocumentParams struct { /* ListDocument Method for ListDocument - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document resources to read. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document resources to read. * @param optional nil or *ListDocumentOpts - Optional Parameters: * @param "HideExpired" (string) - The default list of Sync Documents will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return SyncV1ServiceDocumentReadResponse */ -func (c *DefaultApiService) ListDocument(serviceSid string, params *ListDocumentParams) (*SyncV1ServiceDocumentReadResponse, error) { +func (c *DefaultApiService) ListDocument(ServiceSid string, params *ListDocumentParams) (*SyncV1ServiceDocumentReadResponse, error) { path := "/v1/Services/{ServiceSid}/Documents" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.HideExpired != nil { - data.Set("HideExpired", *params.HideExpired) + data.Set("HideExpired", *params.HideExpired) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1124,22 +1154,23 @@ type ListDocumentPermissionParams struct { /* ListDocumentPermission Method for ListDocumentPermission Retrieve a list of all Permissions applying to a Sync Document. - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document Permission resources to read. - * @param documentSid The SID of the Sync Document with the Document Permission resources to read. Can be the Document resource's `sid` or its `unique_name`. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document Permission resources to read. + * @param DocumentSid The SID of the Sync Document with the Document Permission resources to read. Can be the Document resource's `sid` or its `unique_name`. * @param optional nil or *ListDocumentPermissionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return SyncV1ServiceDocumentDocumentPermissionReadResponse */ -func (c *DefaultApiService) ListDocumentPermission(serviceSid string, documentSid string, params *ListDocumentPermissionParams) (*SyncV1ServiceDocumentDocumentPermissionReadResponse, error) { +func (c *DefaultApiService) ListDocumentPermission(ServiceSid string, DocumentSid string, params *ListDocumentPermissionParams) (*SyncV1ServiceDocumentDocumentPermissionReadResponse, error) { path := "/v1/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"DocumentSid"+"}", documentSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"DocumentSid"+"}", DocumentSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1171,11 +1202,12 @@ ListService Method for ListService func (c *DefaultApiService) ListService(params *ListServiceParams) (*SyncV1ServiceReadResponse, error) { path := "/v1/Services" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1201,24 +1233,25 @@ type ListSyncListParams struct { /* ListSyncList Method for ListSyncList - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List resources to read. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List resources to read. * @param optional nil or *ListSyncListOpts - Optional Parameters: * @param "HideExpired" (string) - The default list of Sync Lists will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return SyncV1ServiceSyncListReadResponse */ -func (c *DefaultApiService) ListSyncList(serviceSid string, params *ListSyncListParams) (*SyncV1ServiceSyncListReadResponse, error) { +func (c *DefaultApiService) ListSyncList(ServiceSid string, params *ListSyncListParams) (*SyncV1ServiceSyncListReadResponse, error) { path := "/v1/Services/{ServiceSid}/Lists" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.HideExpired != nil { - data.Set("HideExpired", *params.HideExpired) + data.Set("HideExpired", *params.HideExpired) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1247,8 +1280,8 @@ type ListSyncListItemParams struct { /* ListSyncListItem Method for ListSyncListItem - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the List Item resources to read. - * @param listSid The SID of the Sync List with the List Items to read. Can be the Sync List resource's `sid` or its `unique_name`. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the List Item resources to read. + * @param ListSid The SID of the Sync List with the List Items to read. Can be the Sync List resource's `sid` or its `unique_name`. * @param optional nil or *ListSyncListItemOpts - Optional Parameters: * @param "Order" (string) - How to order the List Items returned by their `index` value. Can be: `asc` (ascending) or `desc` (descending) and the default is ascending. * @param "From" (string) - The `index` of the first Sync List Item resource to read. See also `bounds`. @@ -1257,28 +1290,29 @@ ListSyncListItem Method for ListSyncListItem * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return SyncV1ServiceSyncListSyncListItemReadResponse */ -func (c *DefaultApiService) ListSyncListItem(serviceSid string, listSid string, params *ListSyncListItemParams) (*SyncV1ServiceSyncListSyncListItemReadResponse, error) { +func (c *DefaultApiService) ListSyncListItem(ServiceSid string, ListSid string, params *ListSyncListItemParams) (*SyncV1ServiceSyncListSyncListItemReadResponse, error) { path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Items" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", ListSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Order != nil { - data.Set("Order", *params.Order) + data.Set("Order", *params.Order) } if params != nil && params.From != nil { - data.Set("From", *params.From) + data.Set("From", *params.From) } if params != nil && params.Bounds != nil { - data.Set("Bounds", *params.Bounds) + data.Set("Bounds", *params.Bounds) } if params != nil && params.HideExpired != nil { - data.Set("HideExpired", *params.HideExpired) + data.Set("HideExpired", *params.HideExpired) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1304,22 +1338,23 @@ type ListSyncListPermissionParams struct { /* ListSyncListPermission Method for ListSyncListPermission Retrieve a list of all Permissions applying to a Sync List. - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Permission resources to read. - * @param listSid The SID of the Sync List with the Sync List Permission resources to read. Can be the Sync List resource's `sid` or its `unique_name`. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Permission resources to read. + * @param ListSid The SID of the Sync List with the Sync List Permission resources to read. Can be the Sync List resource's `sid` or its `unique_name`. * @param optional nil or *ListSyncListPermissionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return SyncV1ServiceSyncListSyncListPermissionReadResponse */ -func (c *DefaultApiService) ListSyncListPermission(serviceSid string, listSid string, params *ListSyncListPermissionParams) (*SyncV1ServiceSyncListSyncListPermissionReadResponse, error) { +func (c *DefaultApiService) ListSyncListPermission(ServiceSid string, ListSid string, params *ListSyncListPermissionParams) (*SyncV1ServiceSyncListSyncListPermissionReadResponse, error) { path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", ListSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1345,24 +1380,25 @@ type ListSyncMapParams struct { /* ListSyncMap Method for ListSyncMap - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map resources to read. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map resources to read. * @param optional nil or *ListSyncMapOpts - Optional Parameters: * @param "HideExpired" (string) - The default list of Sync Maps will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return SyncV1ServiceSyncMapReadResponse */ -func (c *DefaultApiService) ListSyncMap(serviceSid string, params *ListSyncMapParams) (*SyncV1ServiceSyncMapReadResponse, error) { +func (c *DefaultApiService) ListSyncMap(ServiceSid string, params *ListSyncMapParams) (*SyncV1ServiceSyncMapReadResponse, error) { path := "/v1/Services/{ServiceSid}/Maps" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.HideExpired != nil { - data.Set("HideExpired", *params.HideExpired) + data.Set("HideExpired", *params.HideExpired) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1391,8 +1427,8 @@ type ListSyncMapItemParams struct { /* ListSyncMapItem Method for ListSyncMapItem - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Map Item resources to read. - * @param mapSid The SID of the Sync Map with the Sync Map Item resource to fetch. Can be the Sync Map's `sid` or its `unique_name`. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Map Item resources to read. + * @param MapSid The SID of the Sync Map with the Sync Map Item resource to fetch. Can be the Sync Map's `sid` or its `unique_name`. * @param optional nil or *ListSyncMapItemOpts - Optional Parameters: * @param "Order" (string) - How to order the Map Items returned by their `key` value. Can be: `asc` (ascending) or `desc` (descending) and the default is ascending. Map Items are [ordered lexicographically](https://en.wikipedia.org/wiki/Lexicographical_order) by Item key. * @param "From" (string) - The `key` of the first Sync Map Item resource to read. See also `bounds`. @@ -1401,28 +1437,29 @@ ListSyncMapItem Method for ListSyncMapItem * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return SyncV1ServiceSyncMapSyncMapItemReadResponse */ -func (c *DefaultApiService) ListSyncMapItem(serviceSid string, mapSid string, params *ListSyncMapItemParams) (*SyncV1ServiceSyncMapSyncMapItemReadResponse, error) { +func (c *DefaultApiService) ListSyncMapItem(ServiceSid string, MapSid string, params *ListSyncMapItemParams) (*SyncV1ServiceSyncMapSyncMapItemReadResponse, error) { path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Items" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", MapSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Order != nil { - data.Set("Order", *params.Order) + data.Set("Order", *params.Order) } if params != nil && params.From != nil { - data.Set("From", *params.From) + data.Set("From", *params.From) } if params != nil && params.Bounds != nil { - data.Set("Bounds", *params.Bounds) + data.Set("Bounds", *params.Bounds) } if params != nil && params.HideExpired != nil { - data.Set("HideExpired", *params.HideExpired) + data.Set("HideExpired", *params.HideExpired) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1448,22 +1485,23 @@ type ListSyncMapPermissionParams struct { /* ListSyncMapPermission Method for ListSyncMapPermission Retrieve a list of all Permissions applying to a Sync Map. - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Permission resources to read. Can be the Service's `sid` value or `default`. - * @param mapSid The SID of the Sync Map with the Permission resources to read. Can be the Sync Map's `sid` or its `unique_name`. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Permission resources to read. Can be the Service's `sid` value or `default`. + * @param MapSid The SID of the Sync Map with the Permission resources to read. Can be the Sync Map's `sid` or its `unique_name`. * @param optional nil or *ListSyncMapPermissionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return SyncV1ServiceSyncMapSyncMapPermissionReadResponse */ -func (c *DefaultApiService) ListSyncMapPermission(serviceSid string, mapSid string, params *ListSyncMapPermissionParams) (*SyncV1ServiceSyncMapSyncMapPermissionReadResponse, error) { +func (c *DefaultApiService) ListSyncMapPermission(ServiceSid string, MapSid string, params *ListSyncMapPermissionParams) (*SyncV1ServiceSyncMapSyncMapPermissionReadResponse, error) { path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", MapSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1490,24 +1528,25 @@ type ListSyncStreamParams struct { /* ListSyncStream Method for ListSyncStream Retrieve a list of all Streams in a Service Instance. - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Stream resources to read. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Stream resources to read. * @param optional nil or *ListSyncStreamOpts - Optional Parameters: * @param "HideExpired" (string) - The default list of Sync Streams will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return SyncV1ServiceSyncStreamReadResponse */ -func (c *DefaultApiService) ListSyncStream(serviceSid string, params *ListSyncStreamParams) (*SyncV1ServiceSyncStreamReadResponse, error) { +func (c *DefaultApiService) ListSyncStream(ServiceSid string, params *ListSyncStreamParams) (*SyncV1ServiceSyncStreamReadResponse, error) { path := "/v1/Services/{ServiceSid}/Streams" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.HideExpired != nil { - data.Set("HideExpired", *params.HideExpired) + data.Set("HideExpired", *params.HideExpired) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1527,25 +1566,26 @@ func (c *DefaultApiService) ListSyncStream(serviceSid string, params *ListSyncSt } // UpdateDocumentParams Optional parameters for the method 'UpdateDocument' type UpdateDocumentParams struct { - If-Match *string `json:"If-Match,omitempty"` + IfMatch *string `json:"If-Match,omitempty"` Data *map[string]interface{} `json:"Data,omitempty"` Ttl *int32 `json:"Ttl,omitempty"` } /* UpdateDocument Method for UpdateDocument - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document resource to update. - * @param sid The SID of the Document resource to update. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document resource to update. + * @param Sid The SID of the Document resource to update. * @param optional nil or *UpdateDocumentOpts - Optional Parameters: * @param "If-Match" (string) - The If-Match HTTP request header * @param "Data" (map[string]interface{}) - A JSON string that represents an arbitrary, schema-less object that the Sync Document stores. Can be up to 16KB in length. * @param "Ttl" (int32) - How long, in seconds, before the Sync Document expires and is deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Document resource does not expire. The Document resource will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. @return SyncV1ServiceDocument */ -func (c *DefaultApiService) UpdateDocument(serviceSid string, sid string, params *UpdateDocumentParams) (*SyncV1ServiceDocument, error) { +func (c *DefaultApiService) UpdateDocument(ServiceSid string, Sid string, params *UpdateDocumentParams) (*SyncV1ServiceDocument, error) { path := "/v1/Services/{ServiceSid}/Documents/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := make(map[string]interface{}) @@ -1557,14 +1597,14 @@ func (c *DefaultApiService) UpdateDocument(serviceSid string, sid string, params return nil, err } - data.Set("Data", string(v)) + data.Set("Data", fmt.Sprint(v)) } if params != nil && params.Ttl != nil { - data.Set("Ttl", string(*params.Ttl)) + data.Set("Ttl", fmt.Sprint(*params.Ttl)) } - if params != nil && params.If-Match != nil { - headers["If-Match"] = *params.If-Match + if params != nil && params.IfMatch != nil { + headers["IfMatch"] = *params.IfMatch } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -1591,32 +1631,33 @@ type UpdateDocumentPermissionParams struct { /* UpdateDocumentPermission Method for UpdateDocumentPermission Update an identity's access to a specific Sync Document. - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document Permission resource to update. - * @param documentSid The SID of the Sync Document with the Document Permission resource to update. Can be the Document resource's `sid` or its `unique_name`. - * @param identity The application-defined string that uniquely identifies the User's Document Permission resource to update. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document Permission resource to update. + * @param DocumentSid The SID of the Sync Document with the Document Permission resource to update. Can be the Document resource's `sid` or its `unique_name`. + * @param Identity The application-defined string that uniquely identifies the User's Document Permission resource to update. * @param optional nil or *UpdateDocumentPermissionOpts - Optional Parameters: * @param "Manage" (bool) - Whether the identity can delete the Sync Document. Default value is `false`. * @param "Read" (bool) - Whether the identity can read the Sync Document. Default value is `false`. * @param "Write" (bool) - Whether the identity can update the Sync Document. Default value is `false`. @return SyncV1ServiceDocumentDocumentPermission */ -func (c *DefaultApiService) UpdateDocumentPermission(serviceSid string, documentSid string, identity string, params *UpdateDocumentPermissionParams) (*SyncV1ServiceDocumentDocumentPermission, error) { +func (c *DefaultApiService) UpdateDocumentPermission(ServiceSid string, DocumentSid string, Identity string, params *UpdateDocumentPermissionParams) (*SyncV1ServiceDocumentDocumentPermission, error) { path := "/v1/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"DocumentSid"+"}", documentSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"DocumentSid"+"}", DocumentSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", Identity, -1) + data := url.Values{} headers := 0 if params != nil && params.Manage != nil { - data.Set("Manage", string(*params.Manage)) + data.Set("Manage", fmt.Sprint(*params.Manage)) } if params != nil && params.Read != nil { - data.Set("Read", string(*params.Read)) + data.Set("Read", fmt.Sprint(*params.Read)) } if params != nil && params.Write != nil { - data.Set("Write", string(*params.Write)) + data.Set("Write", fmt.Sprint(*params.Write)) } @@ -1647,7 +1688,7 @@ type UpdateServiceParams struct { /* UpdateService Method for UpdateService - * @param sid The SID of the Service resource to update. + * @param Sid The SID of the Service resource to update. * @param optional nil or *UpdateServiceOpts - Optional Parameters: * @param "AclEnabled" (bool) - Whether token identities in the Service must be granted access to Sync objects by using the [Permissions](https://www.twilio.com/docs/sync/api/sync-permissions) resource. * @param "FriendlyName" (string) - A string that you assign to describe the resource. @@ -1658,33 +1699,34 @@ UpdateService Method for UpdateService * @param "WebhooksFromRestEnabled" (bool) - Whether the Service instance should call `webhook_url` when the REST API is used to update Sync objects. The default is `false`. @return SyncV1Service */ -func (c *DefaultApiService) UpdateService(sid string, params *UpdateServiceParams) (*SyncV1Service, error) { +func (c *DefaultApiService) UpdateService(Sid string, params *UpdateServiceParams) (*SyncV1Service, error) { path := "/v1/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.AclEnabled != nil { - data.Set("AclEnabled", string(*params.AclEnabled)) + data.Set("AclEnabled", fmt.Sprint(*params.AclEnabled)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.ReachabilityDebouncingEnabled != nil { - data.Set("ReachabilityDebouncingEnabled", string(*params.ReachabilityDebouncingEnabled)) + data.Set("ReachabilityDebouncingEnabled", fmt.Sprint(*params.ReachabilityDebouncingEnabled)) } if params != nil && params.ReachabilityDebouncingWindow != nil { - data.Set("ReachabilityDebouncingWindow", string(*params.ReachabilityDebouncingWindow)) + data.Set("ReachabilityDebouncingWindow", fmt.Sprint(*params.ReachabilityDebouncingWindow)) } if params != nil && params.ReachabilityWebhooksEnabled != nil { - data.Set("ReachabilityWebhooksEnabled", string(*params.ReachabilityWebhooksEnabled)) + data.Set("ReachabilityWebhooksEnabled", fmt.Sprint(*params.ReachabilityWebhooksEnabled)) } if params != nil && params.WebhookUrl != nil { - data.Set("WebhookUrl", *params.WebhookUrl) + data.Set("WebhookUrl", *params.WebhookUrl) } if params != nil && params.WebhooksFromRestEnabled != nil { - data.Set("WebhooksFromRestEnabled", string(*params.WebhooksFromRestEnabled)) + data.Set("WebhooksFromRestEnabled", fmt.Sprint(*params.WebhooksFromRestEnabled)) } @@ -1710,26 +1752,27 @@ type UpdateSyncListParams struct { /* UpdateSyncList Method for UpdateSyncList - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List resource to update. - * @param sid The SID of the Sync List resource to update. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List resource to update. + * @param Sid The SID of the Sync List resource to update. * @param optional nil or *UpdateSyncListOpts - Optional Parameters: * @param "CollectionTtl" (int32) - How long, in seconds, before the Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. * @param "Ttl" (int32) - An alias for `collection_ttl`. If both are provided, this value is ignored. @return SyncV1ServiceSyncList */ -func (c *DefaultApiService) UpdateSyncList(serviceSid string, sid string, params *UpdateSyncListParams) (*SyncV1ServiceSyncList, error) { +func (c *DefaultApiService) UpdateSyncList(ServiceSid string, Sid string, params *UpdateSyncListParams) (*SyncV1ServiceSyncList, error) { path := "/v1/Services/{ServiceSid}/Lists/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.CollectionTtl != nil { - data.Set("CollectionTtl", string(*params.CollectionTtl)) + data.Set("CollectionTtl", fmt.Sprint(*params.CollectionTtl)) } if params != nil && params.Ttl != nil { - data.Set("Ttl", string(*params.Ttl)) + data.Set("Ttl", fmt.Sprint(*params.Ttl)) } @@ -1749,7 +1792,7 @@ func (c *DefaultApiService) UpdateSyncList(serviceSid string, sid string, params } // UpdateSyncListItemParams Optional parameters for the method 'UpdateSyncListItem' type UpdateSyncListItemParams struct { - If-Match *string `json:"If-Match,omitempty"` + IfMatch *string `json:"If-Match,omitempty"` CollectionTtl *int32 `json:"CollectionTtl,omitempty"` Data *map[string]interface{} `json:"Data,omitempty"` ItemTtl *int32 `json:"ItemTtl,omitempty"` @@ -1758,9 +1801,9 @@ type UpdateSyncListItemParams struct { /* UpdateSyncListItem Method for UpdateSyncListItem - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Item resource to update. - * @param listSid The SID of the Sync List with the Sync List Item resource to update. Can be the Sync List resource's `sid` or its `unique_name`. - * @param index The index of the Sync List Item resource to update. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Item resource to update. + * @param ListSid The SID of the Sync List with the Sync List Item resource to update. Can be the Sync List resource's `sid` or its `unique_name`. + * @param Index The index of the Sync List Item resource to update. * @param optional nil or *UpdateSyncListItemOpts - Optional Parameters: * @param "If-Match" (string) - The If-Match HTTP request header * @param "CollectionTtl" (int32) - How long, in seconds, before the List Item's parent Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. @@ -1769,17 +1812,18 @@ UpdateSyncListItem Method for UpdateSyncListItem * @param "Ttl" (int32) - An alias for `item_ttl`. If both parameters are provided, this value is ignored. @return SyncV1ServiceSyncListSyncListItem */ -func (c *DefaultApiService) UpdateSyncListItem(serviceSid string, listSid string, index int32, params *UpdateSyncListItemParams) (*SyncV1ServiceSyncListSyncListItem, error) { +func (c *DefaultApiService) UpdateSyncListItem(ServiceSid string, ListSid string, Index int32, params *UpdateSyncListItemParams) (*SyncV1ServiceSyncListSyncListItem, error) { path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) - path = strings.Replace(path, "{"+"Index"+"}", index, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", ListSid, -1) + path = strings.Replace(path, "{"+"Index"+"}", fmt.Sprint(Index), -1) + data := url.Values{} headers := make(map[string]interface{}) if params != nil && params.CollectionTtl != nil { - data.Set("CollectionTtl", string(*params.CollectionTtl)) + data.Set("CollectionTtl", fmt.Sprint(*params.CollectionTtl)) } if params != nil && params.Data != nil { v, err := json.Marshal(params.Data) @@ -1788,17 +1832,17 @@ func (c *DefaultApiService) UpdateSyncListItem(serviceSid string, listSid string return nil, err } - data.Set("Data", string(v)) + data.Set("Data", fmt.Sprint(v)) } if params != nil && params.ItemTtl != nil { - data.Set("ItemTtl", string(*params.ItemTtl)) + data.Set("ItemTtl", fmt.Sprint(*params.ItemTtl)) } if params != nil && params.Ttl != nil { - data.Set("Ttl", string(*params.Ttl)) + data.Set("Ttl", fmt.Sprint(*params.Ttl)) } - if params != nil && params.If-Match != nil { - headers["If-Match"] = *params.If-Match + if params != nil && params.IfMatch != nil { + headers["IfMatch"] = *params.IfMatch } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -1825,32 +1869,33 @@ type UpdateSyncListPermissionParams struct { /* UpdateSyncListPermission Method for UpdateSyncListPermission Update an identity's access to a specific Sync List. - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Permission resource to update. - * @param listSid The SID of the Sync List with the Sync List Permission resource to update. Can be the Sync List resource's `sid` or its `unique_name`. - * @param identity The application-defined string that uniquely identifies the User's Sync List Permission resource to update. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Permission resource to update. + * @param ListSid The SID of the Sync List with the Sync List Permission resource to update. Can be the Sync List resource's `sid` or its `unique_name`. + * @param Identity The application-defined string that uniquely identifies the User's Sync List Permission resource to update. * @param optional nil or *UpdateSyncListPermissionOpts - Optional Parameters: * @param "Manage" (bool) - Whether the identity can delete the Sync List. Default value is `false`. * @param "Read" (bool) - Whether the identity can read the Sync List and its Items. Default value is `false`. * @param "Write" (bool) - Whether the identity can create, update, and delete Items in the Sync List. Default value is `false`. @return SyncV1ServiceSyncListSyncListPermission */ -func (c *DefaultApiService) UpdateSyncListPermission(serviceSid string, listSid string, identity string, params *UpdateSyncListPermissionParams) (*SyncV1ServiceSyncListSyncListPermission, error) { +func (c *DefaultApiService) UpdateSyncListPermission(ServiceSid string, ListSid string, Identity string, params *UpdateSyncListPermissionParams) (*SyncV1ServiceSyncListSyncListPermission, error) { path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"ListSid"+"}", listSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"ListSid"+"}", ListSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", Identity, -1) + data := url.Values{} headers := 0 if params != nil && params.Manage != nil { - data.Set("Manage", string(*params.Manage)) + data.Set("Manage", fmt.Sprint(*params.Manage)) } if params != nil && params.Read != nil { - data.Set("Read", string(*params.Read)) + data.Set("Read", fmt.Sprint(*params.Read)) } if params != nil && params.Write != nil { - data.Set("Write", string(*params.Write)) + data.Set("Write", fmt.Sprint(*params.Write)) } @@ -1876,26 +1921,27 @@ type UpdateSyncMapParams struct { /* UpdateSyncMap Method for UpdateSyncMap - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map resource to update. - * @param sid The SID of the Sync Map resource to update. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map resource to update. + * @param Sid The SID of the Sync Map resource to update. * @param optional nil or *UpdateSyncMapOpts - Optional Parameters: * @param "CollectionTtl" (int32) - How long, in seconds, before the Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync Map does not expire. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. * @param "Ttl" (int32) - An alias for `collection_ttl`. If both parameters are provided, this value is ignored. @return SyncV1ServiceSyncMap */ -func (c *DefaultApiService) UpdateSyncMap(serviceSid string, sid string, params *UpdateSyncMapParams) (*SyncV1ServiceSyncMap, error) { +func (c *DefaultApiService) UpdateSyncMap(ServiceSid string, Sid string, params *UpdateSyncMapParams) (*SyncV1ServiceSyncMap, error) { path := "/v1/Services/{ServiceSid}/Maps/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.CollectionTtl != nil { - data.Set("CollectionTtl", string(*params.CollectionTtl)) + data.Set("CollectionTtl", fmt.Sprint(*params.CollectionTtl)) } if params != nil && params.Ttl != nil { - data.Set("Ttl", string(*params.Ttl)) + data.Set("Ttl", fmt.Sprint(*params.Ttl)) } @@ -1915,7 +1961,7 @@ func (c *DefaultApiService) UpdateSyncMap(serviceSid string, sid string, params } // UpdateSyncMapItemParams Optional parameters for the method 'UpdateSyncMapItem' type UpdateSyncMapItemParams struct { - If-Match *string `json:"If-Match,omitempty"` + IfMatch *string `json:"If-Match,omitempty"` CollectionTtl *int32 `json:"CollectionTtl,omitempty"` Data *map[string]interface{} `json:"Data,omitempty"` ItemTtl *int32 `json:"ItemTtl,omitempty"` @@ -1924,9 +1970,9 @@ type UpdateSyncMapItemParams struct { /* UpdateSyncMapItem Method for UpdateSyncMapItem - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Item resource to update. - * @param mapSid The SID of the Sync Map with the Sync Map Item resource to update. Can be the Sync Map's `sid` or its `unique_name`. - * @param key The `key` value of the Sync Map Item resource to update. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Item resource to update. + * @param MapSid The SID of the Sync Map with the Sync Map Item resource to update. Can be the Sync Map's `sid` or its `unique_name`. + * @param Key The `key` value of the Sync Map Item resource to update. * @param optional nil or *UpdateSyncMapItemOpts - Optional Parameters: * @param "If-Match" (string) - The If-Match HTTP request header * @param "CollectionTtl" (int32) - How long, in seconds, before the Map Item's parent Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync Map does not expire. This parameter can only be used when the Map Item's `data` or `ttl` is updated in the same request. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. @@ -1935,17 +1981,18 @@ UpdateSyncMapItem Method for UpdateSyncMapItem * @param "Ttl" (int32) - An alias for `item_ttl`. If both parameters are provided, this value is ignored. @return SyncV1ServiceSyncMapSyncMapItem */ -func (c *DefaultApiService) UpdateSyncMapItem(serviceSid string, mapSid string, key string, params *UpdateSyncMapItemParams) (*SyncV1ServiceSyncMapSyncMapItem, error) { +func (c *DefaultApiService) UpdateSyncMapItem(ServiceSid string, MapSid string, Key string, params *UpdateSyncMapItemParams) (*SyncV1ServiceSyncMapSyncMapItem, error) { path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) - path = strings.Replace(path, "{"+"Key"+"}", key, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", MapSid, -1) + path = strings.Replace(path, "{"+"Key"+"}", Key, -1) + data := url.Values{} headers := make(map[string]interface{}) if params != nil && params.CollectionTtl != nil { - data.Set("CollectionTtl", string(*params.CollectionTtl)) + data.Set("CollectionTtl", fmt.Sprint(*params.CollectionTtl)) } if params != nil && params.Data != nil { v, err := json.Marshal(params.Data) @@ -1954,17 +2001,17 @@ func (c *DefaultApiService) UpdateSyncMapItem(serviceSid string, mapSid string, return nil, err } - data.Set("Data", string(v)) + data.Set("Data", fmt.Sprint(v)) } if params != nil && params.ItemTtl != nil { - data.Set("ItemTtl", string(*params.ItemTtl)) + data.Set("ItemTtl", fmt.Sprint(*params.ItemTtl)) } if params != nil && params.Ttl != nil { - data.Set("Ttl", string(*params.Ttl)) + data.Set("Ttl", fmt.Sprint(*params.Ttl)) } - if params != nil && params.If-Match != nil { - headers["If-Match"] = *params.If-Match + if params != nil && params.IfMatch != nil { + headers["IfMatch"] = *params.IfMatch } resp, err := c.client.Post(c.baseURL+path, data, headers) @@ -1991,32 +2038,33 @@ type UpdateSyncMapPermissionParams struct { /* UpdateSyncMapPermission Method for UpdateSyncMapPermission Update an identity's access to a specific Sync Map. - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Permission resource to update. Can be the Service's `sid` value or `default`. - * @param mapSid The SID of the Sync Map with the Sync Map Permission resource to update. Can be the Sync Map's `sid` or its `unique_name`. - * @param identity The application-defined string that uniquely identifies the User's Sync Map Permission resource to update. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Permission resource to update. Can be the Service's `sid` value or `default`. + * @param MapSid The SID of the Sync Map with the Sync Map Permission resource to update. Can be the Sync Map's `sid` or its `unique_name`. + * @param Identity The application-defined string that uniquely identifies the User's Sync Map Permission resource to update. * @param optional nil or *UpdateSyncMapPermissionOpts - Optional Parameters: * @param "Manage" (bool) - Whether the identity can delete the Sync Map. Default value is `false`. * @param "Read" (bool) - Whether the identity can read the Sync Map and its Items. Default value is `false`. * @param "Write" (bool) - Whether the identity can create, update, and delete Items in the Sync Map. Default value is `false`. @return SyncV1ServiceSyncMapSyncMapPermission */ -func (c *DefaultApiService) UpdateSyncMapPermission(serviceSid string, mapSid string, identity string, params *UpdateSyncMapPermissionParams) (*SyncV1ServiceSyncMapSyncMapPermission, error) { +func (c *DefaultApiService) UpdateSyncMapPermission(ServiceSid string, MapSid string, Identity string, params *UpdateSyncMapPermissionParams) (*SyncV1ServiceSyncMapSyncMapPermission, error) { path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"MapSid"+"}", mapSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"MapSid"+"}", MapSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", Identity, -1) + data := url.Values{} headers := 0 if params != nil && params.Manage != nil { - data.Set("Manage", string(*params.Manage)) + data.Set("Manage", fmt.Sprint(*params.Manage)) } if params != nil && params.Read != nil { - data.Set("Read", string(*params.Read)) + data.Set("Read", fmt.Sprint(*params.Read)) } if params != nil && params.Write != nil { - data.Set("Write", string(*params.Write)) + data.Set("Write", fmt.Sprint(*params.Write)) } @@ -2042,22 +2090,23 @@ type UpdateSyncStreamParams struct { /* UpdateSyncStream Method for UpdateSyncStream Update a specific Stream. - * @param serviceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Stream resource to update. - * @param sid The SID of the Stream resource to update. + * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Stream resource to update. + * @param Sid The SID of the Stream resource to update. * @param optional nil or *UpdateSyncStreamOpts - Optional Parameters: * @param "Ttl" (int32) - How long, in seconds, before the Stream expires and is deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Stream does not expire. The Stream will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. @return SyncV1ServiceSyncStream */ -func (c *DefaultApiService) UpdateSyncStream(serviceSid string, sid string, params *UpdateSyncStreamParams) (*SyncV1ServiceSyncStream, error) { +func (c *DefaultApiService) UpdateSyncStream(ServiceSid string, Sid string, params *UpdateSyncStreamParams) (*SyncV1ServiceSyncStream, error) { path := "/v1/Services/{ServiceSid}/Streams/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.Ttl != nil { - data.Set("Ttl", string(*params.Ttl)) + data.Set("Ttl", fmt.Sprint(*params.Ttl)) } diff --git a/rest/sync/v1/docs/DefaultApi.md b/rest/sync/v1/docs/DefaultApi.md index ef345e6d3..ac501cf53 100644 --- a/rest/sync/v1/docs/DefaultApi.md +++ b/rest/sync/v1/docs/DefaultApi.md @@ -57,7 +57,7 @@ Method | HTTP request | Description ## CreateDocument -> SyncV1ServiceDocument CreateDocument(ctx, serviceSid, optional) +> SyncV1ServiceDocument CreateDocument(ctx, ServiceSid, optional) @@ -67,7 +67,7 @@ Method | HTTP request | Description Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the new Document resource in. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the new Document resource in. | **optional** | ***CreateDocumentOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -78,9 +78,9 @@ Optional parameters are passed through a pointer to a CreateDocumentOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that represents an arbitrary, schema-less object that the Sync Document stores. Can be up to 16KB in length. | - **ttl** | **optional.Int32**| How long, in seconds, before the Sync Document expires and is deleted (the Sync Document's time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync Document does not expire. The Sync Document will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | - **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the Sync Document | + **Data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that represents an arbitrary, schema-less object that the Sync Document stores. Can be up to 16KB in length. | + **Ttl** | **optional.Int32**| How long, in seconds, before the Sync Document expires and is deleted (the Sync Document's time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync Document does not expire. The Sync Document will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | + **UniqueName** | **optional.String**| An application-defined string that uniquely identifies the Sync Document | ### Return type @@ -121,13 +121,13 @@ Optional parameters are passed through a pointer to a CreateServiceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **aclEnabled** | **optional.Bool**| Whether token identities in the Service must be granted access to Sync objects by using the [Permissions](https://www.twilio.com/docs/sync/api/sync-permissions) resource. | - **friendlyName** | **optional.String**| A string that you assign to describe the resource. | - **reachabilityDebouncingEnabled** | **optional.Bool**| Whether every `endpoint_disconnected` event should occur after a configurable delay. The default is `false`, where the `endpoint_disconnected` event occurs immediately after disconnection. When `true`, intervening reconnections can prevent the `endpoint_disconnected` event. | - **reachabilityDebouncingWindow** | **optional.Int32**| The reachability event delay in milliseconds if `reachability_debouncing_enabled` = `true`. Must be between 1,000 and 30,000 and defaults to 5,000. This is the number of milliseconds after the last running client disconnects, and a Sync identity is declared offline, before the `webhook_url` is called if all endpoints remain offline. A reconnection from the same identity by any endpoint during this interval prevents the call to `webhook_url`. | - **reachabilityWebhooksEnabled** | **optional.Bool**| Whether the service instance should call `webhook_url` when client endpoints connect to Sync. The default is `false`. | - **webhookUrl** | **optional.String**| The URL we should call when Sync objects are manipulated. | - **webhooksFromRestEnabled** | **optional.Bool**| Whether the Service instance should call `webhook_url` when the REST API is used to update Sync objects. The default is `false`. | + **AclEnabled** | **optional.Bool**| Whether token identities in the Service must be granted access to Sync objects by using the [Permissions](https://www.twilio.com/docs/sync/api/sync-permissions) resource. | + **FriendlyName** | **optional.String**| A string that you assign to describe the resource. | + **ReachabilityDebouncingEnabled** | **optional.Bool**| Whether every `endpoint_disconnected` event should occur after a configurable delay. The default is `false`, where the `endpoint_disconnected` event occurs immediately after disconnection. When `true`, intervening reconnections can prevent the `endpoint_disconnected` event. | + **ReachabilityDebouncingWindow** | **optional.Int32**| The reachability event delay in milliseconds if `reachability_debouncing_enabled` = `true`. Must be between 1,000 and 30,000 and defaults to 5,000. This is the number of milliseconds after the last running client disconnects, and a Sync identity is declared offline, before the `webhook_url` is called if all endpoints remain offline. A reconnection from the same identity by any endpoint during this interval prevents the call to `webhook_url`. | + **ReachabilityWebhooksEnabled** | **optional.Bool**| Whether the service instance should call `webhook_url` when client endpoints connect to Sync. The default is `false`. | + **WebhookUrl** | **optional.String**| The URL we should call when Sync objects are manipulated. | + **WebhooksFromRestEnabled** | **optional.Bool**| Whether the Service instance should call `webhook_url` when the REST API is used to update Sync objects. The default is `false`. | ### Return type @@ -149,7 +149,7 @@ Name | Type | Description | Notes ## CreateStreamMessage -> SyncV1ServiceSyncStreamStreamMessage CreateStreamMessage(ctx, serviceSid, streamSid, optional) +> SyncV1ServiceSyncStreamStreamMessage CreateStreamMessage(ctx, ServiceSid, StreamSid, optional) @@ -161,8 +161,8 @@ Create a new Stream Message. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the new Stream Message in. | -**streamSid** | **string**| The SID of the Sync Stream to create the new Stream Message resource for. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the new Stream Message in. | +**StreamSid** | **string**| The SID of the Sync Stream to create the new Stream Message resource for. | **optional** | ***CreateStreamMessageOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -174,7 +174,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that represents an arbitrary, schema-less object that makes up the Stream Message body. Can be up to 4KB in length. | + **Data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that represents an arbitrary, schema-less object that makes up the Stream Message body. Can be up to 4KB in length. | ### Return type @@ -196,7 +196,7 @@ Name | Type | Description | Notes ## CreateSyncList -> SyncV1ServiceSyncList CreateSyncList(ctx, serviceSid, optional) +> SyncV1ServiceSyncList CreateSyncList(ctx, ServiceSid, optional) @@ -206,7 +206,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the new Sync List in. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the new Sync List in. | **optional** | ***CreateSyncListOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -217,9 +217,9 @@ Optional parameters are passed through a pointer to a CreateSyncListOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **collectionTtl** | **optional.Int32**| How long, in seconds, before the Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | - **ttl** | **optional.Int32**| Alias for collection_ttl. If both are provided, this value is ignored. | - **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. This value must be unique within its Service and it can be up to 320 characters long. The `unique_name` value can be used as an alternative to the `sid` in the URL path to address the resource. | + **CollectionTtl** | **optional.Int32**| How long, in seconds, before the Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | + **Ttl** | **optional.Int32**| Alias for collection_ttl. If both are provided, this value is ignored. | + **UniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. This value must be unique within its Service and it can be up to 320 characters long. The `unique_name` value can be used as an alternative to the `sid` in the URL path to address the resource. | ### Return type @@ -241,7 +241,7 @@ Name | Type | Description | Notes ## CreateSyncListItem -> SyncV1ServiceSyncListSyncListItem CreateSyncListItem(ctx, serviceSid, listSid, optional) +> SyncV1ServiceSyncListSyncListItem CreateSyncListItem(ctx, ServiceSid, ListSid, optional) @@ -251,8 +251,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the new List Item in. | -**listSid** | **string**| The SID of the Sync List to add the new List Item to. Can be the Sync List resource's `sid` or its `unique_name`. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the new List Item in. | +**ListSid** | **string**| The SID of the Sync List to add the new List Item to. Can be the Sync List resource's `sid` or its `unique_name`. | **optional** | ***CreateSyncListItemOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -264,10 +264,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **collectionTtl** | **optional.Int32**| How long, in seconds, before the List Item's parent Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | - **data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that represents an arbitrary, schema-less object that the List Item stores. Can be up to 16KB in length. | - **itemTtl** | **optional.Int32**| How long, in seconds, before the List Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the List Item does not expire. The List Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | - **ttl** | **optional.Int32**| An alias for `item_ttl`. If both parameters are provided, this value is ignored. | + **CollectionTtl** | **optional.Int32**| How long, in seconds, before the List Item's parent Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | + **Data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that represents an arbitrary, schema-less object that the List Item stores. Can be up to 16KB in length. | + **ItemTtl** | **optional.Int32**| How long, in seconds, before the List Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the List Item does not expire. The List Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | + **Ttl** | **optional.Int32**| An alias for `item_ttl`. If both parameters are provided, this value is ignored. | ### Return type @@ -289,7 +289,7 @@ Name | Type | Description | Notes ## CreateSyncMap -> SyncV1ServiceSyncMap CreateSyncMap(ctx, serviceSid, optional) +> SyncV1ServiceSyncMap CreateSyncMap(ctx, ServiceSid, optional) @@ -299,7 +299,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the Sync Map in. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the Sync Map in. | **optional** | ***CreateSyncMapOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -310,9 +310,9 @@ Optional parameters are passed through a pointer to a CreateSyncMapOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **collectionTtl** | **optional.Int32**| How long, in seconds, before the Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync Map does not expire. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | - **ttl** | **optional.Int32**| An alias for `collection_ttl`. If both parameters are provided, this value is ignored. | - **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used as an alternative to the `sid` in the URL path to address the resource. | + **CollectionTtl** | **optional.Int32**| How long, in seconds, before the Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync Map does not expire. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | + **Ttl** | **optional.Int32**| An alias for `collection_ttl`. If both parameters are provided, this value is ignored. | + **UniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used as an alternative to the `sid` in the URL path to address the resource. | ### Return type @@ -334,7 +334,7 @@ Name | Type | Description | Notes ## CreateSyncMapItem -> SyncV1ServiceSyncMapSyncMapItem CreateSyncMapItem(ctx, serviceSid, mapSid, optional) +> SyncV1ServiceSyncMapSyncMapItem CreateSyncMapItem(ctx, ServiceSid, MapSid, optional) @@ -344,8 +344,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the Map Item in. | -**mapSid** | **string**| The SID of the Sync Map to add the new Map Item to. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the Map Item in. | +**MapSid** | **string**| The SID of the Sync Map to add the new Map Item to. | **optional** | ***CreateSyncMapItemOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -357,11 +357,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **collectionTtl** | **optional.Int32**| How long, in seconds, before the Map Item's parent Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync Map does not expire. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | - **data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that represents an arbitrary, schema-less object that the Map Item stores. Can be up to 16KB in length. | - **itemTtl** | **optional.Int32**| How long, in seconds, before the Map Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Map Item does not expire. The Map Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | - **key** | **optional.String**| The unique, user-defined key for the Map Item. Can be up to 320 characters long. | - **ttl** | **optional.Int32**| An alias for `item_ttl`. If both parameters are provided, this value is ignored. | + **CollectionTtl** | **optional.Int32**| How long, in seconds, before the Map Item's parent Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync Map does not expire. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | + **Data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that represents an arbitrary, schema-less object that the Map Item stores. Can be up to 16KB in length. | + **ItemTtl** | **optional.Int32**| How long, in seconds, before the Map Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Map Item does not expire. The Map Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | + **Key** | **optional.String**| The unique, user-defined key for the Map Item. Can be up to 320 characters long. | + **Ttl** | **optional.Int32**| An alias for `item_ttl`. If both parameters are provided, this value is ignored. | ### Return type @@ -383,7 +383,7 @@ Name | Type | Description | Notes ## CreateSyncStream -> SyncV1ServiceSyncStream CreateSyncStream(ctx, serviceSid, optional) +> SyncV1ServiceSyncStream CreateSyncStream(ctx, ServiceSid, optional) @@ -395,7 +395,7 @@ Create a new Stream. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the new Stream in. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the new Stream in. | **optional** | ***CreateSyncStreamOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -406,8 +406,8 @@ Optional parameters are passed through a pointer to a CreateSyncStreamOpts struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ttl** | **optional.Int32**| How long, in seconds, before the Stream expires and is deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Stream does not expire. The Stream will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | - **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. This value must be unique within its Service and it can be up to 320 characters long. The `unique_name` value can be used as an alternative to the `sid` in the URL path to address the resource. | + **Ttl** | **optional.Int32**| How long, in seconds, before the Stream expires and is deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Stream does not expire. The Stream will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | + **UniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. This value must be unique within its Service and it can be up to 320 characters long. The `unique_name` value can be used as an alternative to the `sid` in the URL path to address the resource. | ### Return type @@ -429,7 +429,7 @@ Name | Type | Description | Notes ## DeleteDocument -> DeleteDocument(ctx, serviceSid, sid, optional) +> DeleteDocument(ctx, ServiceSid, Sid, optional) @@ -439,8 +439,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document resource to delete. | -**sid** | **string**| The SID of the Document resource to delete. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document resource to delete. | +**Sid** | **string**| The SID of the Document resource to delete. | **optional** | ***DeleteDocumentOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -452,7 +452,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ifMatch** | **optional.String**| The If-Match HTTP request header | + **IfMatch** | **optional.String**| The If-Match HTTP request header | ### Return type @@ -474,7 +474,7 @@ Name | Type | Description | Notes ## DeleteDocumentPermission -> DeleteDocumentPermission(ctx, serviceSid, documentSid, identity) +> DeleteDocumentPermission(ctx, ServiceSid, DocumentSid, Identity) @@ -486,9 +486,9 @@ Delete a specific Sync Document Permission. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document Permission resource to delete. | -**documentSid** | **string**| The SID of the Sync Document with the Document Permission resource to delete. Can be the Document resource's `sid` or its `unique_name`. | -**identity** | **string**| The application-defined string that uniquely identifies the User's Document Permission resource to delete. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document Permission resource to delete. | +**DocumentSid** | **string**| The SID of the Sync Document with the Document Permission resource to delete. Can be the Document resource's `sid` or its `unique_name`. | +**Identity** | **string**| The application-defined string that uniquely identifies the User's Document Permission resource to delete. | ### Return type @@ -510,7 +510,7 @@ Name | Type | Description | Notes ## DeleteService -> DeleteService(ctx, sid) +> DeleteService(ctx, Sid) @@ -520,7 +520,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Service resource to delete. | +**Sid** | **string**| The SID of the Service resource to delete. | ### Return type @@ -542,7 +542,7 @@ Name | Type | Description | Notes ## DeleteSyncList -> DeleteSyncList(ctx, serviceSid, sid) +> DeleteSyncList(ctx, ServiceSid, Sid) @@ -552,8 +552,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List resource to delete. | -**sid** | **string**| The SID of the Sync List resource to delete. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List resource to delete. | +**Sid** | **string**| The SID of the Sync List resource to delete. | ### Return type @@ -575,7 +575,7 @@ Name | Type | Description | Notes ## DeleteSyncListItem -> DeleteSyncListItem(ctx, serviceSid, listSid, index, optional) +> DeleteSyncListItem(ctx, ServiceSid, ListSid, Index, optional) @@ -585,9 +585,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Item resource to delete. | -**listSid** | **string**| The SID of the Sync List with the Sync List Item resource to delete. Can be the Sync List resource's `sid` or its `unique_name`. | -**index** | **int32**| The index of the Sync List Item resource to delete. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Item resource to delete. | +**ListSid** | **string**| The SID of the Sync List with the Sync List Item resource to delete. Can be the Sync List resource's `sid` or its `unique_name`. | +**Index** | **int32**| The index of the Sync List Item resource to delete. | **optional** | ***DeleteSyncListItemOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -600,7 +600,7 @@ Name | Type | Description | Notes - **ifMatch** | **optional.String**| The If-Match HTTP request header | + **IfMatch** | **optional.String**| The If-Match HTTP request header | ### Return type @@ -622,7 +622,7 @@ Name | Type | Description | Notes ## DeleteSyncListPermission -> DeleteSyncListPermission(ctx, serviceSid, listSid, identity) +> DeleteSyncListPermission(ctx, ServiceSid, ListSid, Identity) @@ -634,9 +634,9 @@ Delete a specific Sync List Permission. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Permission resource to delete. | -**listSid** | **string**| The SID of the Sync List with the Sync List Permission resource to delete. Can be the Sync List resource's `sid` or its `unique_name`. | -**identity** | **string**| The application-defined string that uniquely identifies the User's Sync List Permission resource to delete. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Permission resource to delete. | +**ListSid** | **string**| The SID of the Sync List with the Sync List Permission resource to delete. Can be the Sync List resource's `sid` or its `unique_name`. | +**Identity** | **string**| The application-defined string that uniquely identifies the User's Sync List Permission resource to delete. | ### Return type @@ -658,7 +658,7 @@ Name | Type | Description | Notes ## DeleteSyncMap -> DeleteSyncMap(ctx, serviceSid, sid) +> DeleteSyncMap(ctx, ServiceSid, Sid) @@ -668,8 +668,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map resource to delete. | -**sid** | **string**| The SID of the Sync Map resource to delete. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map resource to delete. | +**Sid** | **string**| The SID of the Sync Map resource to delete. | ### Return type @@ -691,7 +691,7 @@ Name | Type | Description | Notes ## DeleteSyncMapItem -> DeleteSyncMapItem(ctx, serviceSid, mapSid, key, optional) +> DeleteSyncMapItem(ctx, ServiceSid, MapSid, Key, optional) @@ -701,9 +701,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Item resource to delete. | -**mapSid** | **string**| The SID of the Sync Map with the Sync Map Item resource to delete. Can be the Sync Map's `sid` or its `unique_name`. | -**key** | **string**| The `key` value of the Sync Map Item resource to delete. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Item resource to delete. | +**MapSid** | **string**| The SID of the Sync Map with the Sync Map Item resource to delete. Can be the Sync Map's `sid` or its `unique_name`. | +**Key** | **string**| The `key` value of the Sync Map Item resource to delete. | **optional** | ***DeleteSyncMapItemOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -716,7 +716,7 @@ Name | Type | Description | Notes - **ifMatch** | **optional.String**| The If-Match HTTP request header | + **IfMatch** | **optional.String**| The If-Match HTTP request header | ### Return type @@ -738,7 +738,7 @@ Name | Type | Description | Notes ## DeleteSyncMapPermission -> DeleteSyncMapPermission(ctx, serviceSid, mapSid, identity) +> DeleteSyncMapPermission(ctx, ServiceSid, MapSid, Identity) @@ -750,9 +750,9 @@ Delete a specific Sync Map Permission. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Permission resource to delete. Can be the Service's `sid` value or `default`. | -**mapSid** | **string**| The SID of the Sync Map with the Sync Map Permission resource to delete. Can be the Sync Map's `sid` or its `unique_name`. | -**identity** | **string**| The application-defined string that uniquely identifies the User's Sync Map Permission resource to delete. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Permission resource to delete. Can be the Service's `sid` value or `default`. | +**MapSid** | **string**| The SID of the Sync Map with the Sync Map Permission resource to delete. Can be the Sync Map's `sid` or its `unique_name`. | +**Identity** | **string**| The application-defined string that uniquely identifies the User's Sync Map Permission resource to delete. | ### Return type @@ -774,7 +774,7 @@ Name | Type | Description | Notes ## DeleteSyncStream -> DeleteSyncStream(ctx, serviceSid, sid) +> DeleteSyncStream(ctx, ServiceSid, Sid) @@ -786,8 +786,8 @@ Delete a specific Stream. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Stream resource to delete. | -**sid** | **string**| The SID of the Stream resource to delete. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Stream resource to delete. | +**Sid** | **string**| The SID of the Stream resource to delete. | ### Return type @@ -809,7 +809,7 @@ Name | Type | Description | Notes ## FetchDocument -> SyncV1ServiceDocument FetchDocument(ctx, serviceSid, sid) +> SyncV1ServiceDocument FetchDocument(ctx, ServiceSid, Sid) @@ -819,8 +819,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document resource to fetch. | -**sid** | **string**| The SID of the Document resource to fetch. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document resource to fetch. | +**Sid** | **string**| The SID of the Document resource to fetch. | ### Return type @@ -842,7 +842,7 @@ Name | Type | Description | Notes ## FetchDocumentPermission -> SyncV1ServiceDocumentDocumentPermission FetchDocumentPermission(ctx, serviceSid, documentSid, identity) +> SyncV1ServiceDocumentDocumentPermission FetchDocumentPermission(ctx, ServiceSid, DocumentSid, Identity) @@ -854,9 +854,9 @@ Fetch a specific Sync Document Permission. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document Permission resource to fetch. | -**documentSid** | **string**| The SID of the Sync Document with the Document Permission resource to fetch. Can be the Document resource's `sid` or its `unique_name`. | -**identity** | **string**| The application-defined string that uniquely identifies the User's Document Permission resource to fetch. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document Permission resource to fetch. | +**DocumentSid** | **string**| The SID of the Sync Document with the Document Permission resource to fetch. Can be the Document resource's `sid` or its `unique_name`. | +**Identity** | **string**| The application-defined string that uniquely identifies the User's Document Permission resource to fetch. | ### Return type @@ -878,7 +878,7 @@ Name | Type | Description | Notes ## FetchService -> SyncV1Service FetchService(ctx, sid) +> SyncV1Service FetchService(ctx, Sid) @@ -888,7 +888,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Service resource to fetch. | +**Sid** | **string**| The SID of the Service resource to fetch. | ### Return type @@ -910,7 +910,7 @@ Name | Type | Description | Notes ## FetchSyncList -> SyncV1ServiceSyncList FetchSyncList(ctx, serviceSid, sid) +> SyncV1ServiceSyncList FetchSyncList(ctx, ServiceSid, Sid) @@ -920,8 +920,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List resource to fetch. | -**sid** | **string**| The SID of the Sync List resource to fetch. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List resource to fetch. | +**Sid** | **string**| The SID of the Sync List resource to fetch. | ### Return type @@ -943,7 +943,7 @@ Name | Type | Description | Notes ## FetchSyncListItem -> SyncV1ServiceSyncListSyncListItem FetchSyncListItem(ctx, serviceSid, listSid, index) +> SyncV1ServiceSyncListSyncListItem FetchSyncListItem(ctx, ServiceSid, ListSid, Index) @@ -953,9 +953,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Item resource to fetch. | -**listSid** | **string**| The SID of the Sync List with the Sync List Item resource to fetch. Can be the Sync List resource's `sid` or its `unique_name`. | -**index** | **int32**| The index of the Sync List Item resource to fetch. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Item resource to fetch. | +**ListSid** | **string**| The SID of the Sync List with the Sync List Item resource to fetch. Can be the Sync List resource's `sid` or its `unique_name`. | +**Index** | **int32**| The index of the Sync List Item resource to fetch. | ### Return type @@ -977,7 +977,7 @@ Name | Type | Description | Notes ## FetchSyncListPermission -> SyncV1ServiceSyncListSyncListPermission FetchSyncListPermission(ctx, serviceSid, listSid, identity) +> SyncV1ServiceSyncListSyncListPermission FetchSyncListPermission(ctx, ServiceSid, ListSid, Identity) @@ -989,9 +989,9 @@ Fetch a specific Sync List Permission. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Permission resource to fetch. | -**listSid** | **string**| The SID of the Sync List with the Sync List Permission resource to fetch. Can be the Sync List resource's `sid` or its `unique_name`. | -**identity** | **string**| The application-defined string that uniquely identifies the User's Sync List Permission resource to fetch. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Permission resource to fetch. | +**ListSid** | **string**| The SID of the Sync List with the Sync List Permission resource to fetch. Can be the Sync List resource's `sid` or its `unique_name`. | +**Identity** | **string**| The application-defined string that uniquely identifies the User's Sync List Permission resource to fetch. | ### Return type @@ -1013,7 +1013,7 @@ Name | Type | Description | Notes ## FetchSyncMap -> SyncV1ServiceSyncMap FetchSyncMap(ctx, serviceSid, sid) +> SyncV1ServiceSyncMap FetchSyncMap(ctx, ServiceSid, Sid) @@ -1023,8 +1023,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map resource to fetch. | -**sid** | **string**| The SID of the Sync Map resource to fetch. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map resource to fetch. | +**Sid** | **string**| The SID of the Sync Map resource to fetch. | ### Return type @@ -1046,7 +1046,7 @@ Name | Type | Description | Notes ## FetchSyncMapItem -> SyncV1ServiceSyncMapSyncMapItem FetchSyncMapItem(ctx, serviceSid, mapSid, key) +> SyncV1ServiceSyncMapSyncMapItem FetchSyncMapItem(ctx, ServiceSid, MapSid, Key) @@ -1056,9 +1056,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Item resource to fetch. | -**mapSid** | **string**| The SID of the Sync Map with the Sync Map Item resource to fetch. Can be the Sync Map's `sid` or its `unique_name`. | -**key** | **string**| The `key` value of the Sync Map Item resource to fetch. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Item resource to fetch. | +**MapSid** | **string**| The SID of the Sync Map with the Sync Map Item resource to fetch. Can be the Sync Map's `sid` or its `unique_name`. | +**Key** | **string**| The `key` value of the Sync Map Item resource to fetch. | ### Return type @@ -1080,7 +1080,7 @@ Name | Type | Description | Notes ## FetchSyncMapPermission -> SyncV1ServiceSyncMapSyncMapPermission FetchSyncMapPermission(ctx, serviceSid, mapSid, identity) +> SyncV1ServiceSyncMapSyncMapPermission FetchSyncMapPermission(ctx, ServiceSid, MapSid, Identity) @@ -1092,9 +1092,9 @@ Fetch a specific Sync Map Permission. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Permission resource to fetch. Can be the Service's `sid` value or `default`. | -**mapSid** | **string**| The SID of the Sync Map with the Sync Map Permission resource to fetch. Can be the Sync Map's `sid` or its `unique_name`. | -**identity** | **string**| The application-defined string that uniquely identifies the User's Sync Map Permission resource to fetch. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Permission resource to fetch. Can be the Service's `sid` value or `default`. | +**MapSid** | **string**| The SID of the Sync Map with the Sync Map Permission resource to fetch. Can be the Sync Map's `sid` or its `unique_name`. | +**Identity** | **string**| The application-defined string that uniquely identifies the User's Sync Map Permission resource to fetch. | ### Return type @@ -1116,7 +1116,7 @@ Name | Type | Description | Notes ## FetchSyncStream -> SyncV1ServiceSyncStream FetchSyncStream(ctx, serviceSid, sid) +> SyncV1ServiceSyncStream FetchSyncStream(ctx, ServiceSid, Sid) @@ -1128,8 +1128,8 @@ Fetch a specific Stream. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Stream resource to fetch. | -**sid** | **string**| The SID of the Stream resource to fetch. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Stream resource to fetch. | +**Sid** | **string**| The SID of the Stream resource to fetch. | ### Return type @@ -1151,7 +1151,7 @@ Name | Type | Description | Notes ## ListDocument -> SyncV1ServiceDocumentReadResponse ListDocument(ctx, serviceSid, optional) +> SyncV1ServiceDocumentReadResponse ListDocument(ctx, ServiceSid, optional) @@ -1161,7 +1161,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document resources to read. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document resources to read. | **optional** | ***ListDocumentOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1172,8 +1172,8 @@ Optional parameters are passed through a pointer to a ListDocumentOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **hideExpired** | **optional.String**| The default list of Sync Documents will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **HideExpired** | **optional.String**| The default list of Sync Documents will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1195,7 +1195,7 @@ Name | Type | Description | Notes ## ListDocumentPermission -> SyncV1ServiceDocumentDocumentPermissionReadResponse ListDocumentPermission(ctx, serviceSid, documentSid, optional) +> SyncV1ServiceDocumentDocumentPermissionReadResponse ListDocumentPermission(ctx, ServiceSid, DocumentSid, optional) @@ -1207,8 +1207,8 @@ Retrieve a list of all Permissions applying to a Sync Document. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document Permission resources to read. | -**documentSid** | **string**| The SID of the Sync Document with the Document Permission resources to read. Can be the Document resource's `sid` or its `unique_name`. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document Permission resources to read. | +**DocumentSid** | **string**| The SID of the Sync Document with the Document Permission resources to read. Can be the Document resource's `sid` or its `unique_name`. | **optional** | ***ListDocumentPermissionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1220,7 +1220,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1261,7 +1261,7 @@ Optional parameters are passed through a pointer to a ListServiceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1283,7 +1283,7 @@ Name | Type | Description | Notes ## ListSyncList -> SyncV1ServiceSyncListReadResponse ListSyncList(ctx, serviceSid, optional) +> SyncV1ServiceSyncListReadResponse ListSyncList(ctx, ServiceSid, optional) @@ -1293,7 +1293,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List resources to read. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List resources to read. | **optional** | ***ListSyncListOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1304,8 +1304,8 @@ Optional parameters are passed through a pointer to a ListSyncListOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **hideExpired** | **optional.String**| The default list of Sync Lists will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **HideExpired** | **optional.String**| The default list of Sync Lists will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1327,7 +1327,7 @@ Name | Type | Description | Notes ## ListSyncListItem -> SyncV1ServiceSyncListSyncListItemReadResponse ListSyncListItem(ctx, serviceSid, listSid, optional) +> SyncV1ServiceSyncListSyncListItemReadResponse ListSyncListItem(ctx, ServiceSid, ListSid, optional) @@ -1337,8 +1337,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the List Item resources to read. | -**listSid** | **string**| The SID of the Sync List with the List Items to read. Can be the Sync List resource's `sid` or its `unique_name`. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the List Item resources to read. | +**ListSid** | **string**| The SID of the Sync List with the List Items to read. Can be the Sync List resource's `sid` or its `unique_name`. | **optional** | ***ListSyncListItemOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1350,11 +1350,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **order** | **optional.String**| How to order the List Items returned by their `index` value. Can be: `asc` (ascending) or `desc` (descending) and the default is ascending. | - **from** | **optional.String**| The `index` of the first Sync List Item resource to read. See also `bounds`. | - **bounds** | **optional.String**| Whether to include the List Item referenced by the `from` parameter. Can be: `inclusive` to include the List Item referenced by the `from` parameter or `exclusive` to start with the next List Item. The default value is `inclusive`. | - **hideExpired** | **optional.String**| The default list of Sync List items will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Order** | **optional.String**| How to order the List Items returned by their `index` value. Can be: `asc` (ascending) or `desc` (descending) and the default is ascending. | + **From** | **optional.String**| The `index` of the first Sync List Item resource to read. See also `bounds`. | + **Bounds** | **optional.String**| Whether to include the List Item referenced by the `from` parameter. Can be: `inclusive` to include the List Item referenced by the `from` parameter or `exclusive` to start with the next List Item. The default value is `inclusive`. | + **HideExpired** | **optional.String**| The default list of Sync List items will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1376,7 +1376,7 @@ Name | Type | Description | Notes ## ListSyncListPermission -> SyncV1ServiceSyncListSyncListPermissionReadResponse ListSyncListPermission(ctx, serviceSid, listSid, optional) +> SyncV1ServiceSyncListSyncListPermissionReadResponse ListSyncListPermission(ctx, ServiceSid, ListSid, optional) @@ -1388,8 +1388,8 @@ Retrieve a list of all Permissions applying to a Sync List. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Permission resources to read. | -**listSid** | **string**| The SID of the Sync List with the Sync List Permission resources to read. Can be the Sync List resource's `sid` or its `unique_name`. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Permission resources to read. | +**ListSid** | **string**| The SID of the Sync List with the Sync List Permission resources to read. Can be the Sync List resource's `sid` or its `unique_name`. | **optional** | ***ListSyncListPermissionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1401,7 +1401,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1423,7 +1423,7 @@ Name | Type | Description | Notes ## ListSyncMap -> SyncV1ServiceSyncMapReadResponse ListSyncMap(ctx, serviceSid, optional) +> SyncV1ServiceSyncMapReadResponse ListSyncMap(ctx, ServiceSid, optional) @@ -1433,7 +1433,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map resources to read. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map resources to read. | **optional** | ***ListSyncMapOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1444,8 +1444,8 @@ Optional parameters are passed through a pointer to a ListSyncMapOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **hideExpired** | **optional.String**| The default list of Sync Maps will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **HideExpired** | **optional.String**| The default list of Sync Maps will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1467,7 +1467,7 @@ Name | Type | Description | Notes ## ListSyncMapItem -> SyncV1ServiceSyncMapSyncMapItemReadResponse ListSyncMapItem(ctx, serviceSid, mapSid, optional) +> SyncV1ServiceSyncMapSyncMapItemReadResponse ListSyncMapItem(ctx, ServiceSid, MapSid, optional) @@ -1477,8 +1477,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Map Item resources to read. | -**mapSid** | **string**| The SID of the Sync Map with the Sync Map Item resource to fetch. Can be the Sync Map's `sid` or its `unique_name`. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Map Item resources to read. | +**MapSid** | **string**| The SID of the Sync Map with the Sync Map Item resource to fetch. Can be the Sync Map's `sid` or its `unique_name`. | **optional** | ***ListSyncMapItemOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1490,11 +1490,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **order** | **optional.String**| How to order the Map Items returned by their `key` value. Can be: `asc` (ascending) or `desc` (descending) and the default is ascending. Map Items are [ordered lexicographically](https://en.wikipedia.org/wiki/Lexicographical_order) by Item key. | - **from** | **optional.String**| The `key` of the first Sync Map Item resource to read. See also `bounds`. | - **bounds** | **optional.String**| Whether to include the Map Item referenced by the `from` parameter. Can be: `inclusive` to include the Map Item referenced by the `from` parameter or `exclusive` to start with the next Map Item. The default value is `inclusive`. | - **hideExpired** | **optional.String**| The default list of Sync Map items will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Order** | **optional.String**| How to order the Map Items returned by their `key` value. Can be: `asc` (ascending) or `desc` (descending) and the default is ascending. Map Items are [ordered lexicographically](https://en.wikipedia.org/wiki/Lexicographical_order) by Item key. | + **From** | **optional.String**| The `key` of the first Sync Map Item resource to read. See also `bounds`. | + **Bounds** | **optional.String**| Whether to include the Map Item referenced by the `from` parameter. Can be: `inclusive` to include the Map Item referenced by the `from` parameter or `exclusive` to start with the next Map Item. The default value is `inclusive`. | + **HideExpired** | **optional.String**| The default list of Sync Map items will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1516,7 +1516,7 @@ Name | Type | Description | Notes ## ListSyncMapPermission -> SyncV1ServiceSyncMapSyncMapPermissionReadResponse ListSyncMapPermission(ctx, serviceSid, mapSid, optional) +> SyncV1ServiceSyncMapSyncMapPermissionReadResponse ListSyncMapPermission(ctx, ServiceSid, MapSid, optional) @@ -1528,8 +1528,8 @@ Retrieve a list of all Permissions applying to a Sync Map. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Permission resources to read. Can be the Service's `sid` value or `default`. | -**mapSid** | **string**| The SID of the Sync Map with the Permission resources to read. Can be the Sync Map's `sid` or its `unique_name`. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Permission resources to read. Can be the Service's `sid` value or `default`. | +**MapSid** | **string**| The SID of the Sync Map with the Permission resources to read. Can be the Sync Map's `sid` or its `unique_name`. | **optional** | ***ListSyncMapPermissionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1541,7 +1541,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1563,7 +1563,7 @@ Name | Type | Description | Notes ## ListSyncStream -> SyncV1ServiceSyncStreamReadResponse ListSyncStream(ctx, serviceSid, optional) +> SyncV1ServiceSyncStreamReadResponse ListSyncStream(ctx, ServiceSid, optional) @@ -1575,7 +1575,7 @@ Retrieve a list of all Streams in a Service Instance. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Stream resources to read. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Stream resources to read. | **optional** | ***ListSyncStreamOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1586,8 +1586,8 @@ Optional parameters are passed through a pointer to a ListSyncStreamOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **hideExpired** | **optional.String**| The default list of Sync Streams will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **HideExpired** | **optional.String**| The default list of Sync Streams will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1609,7 +1609,7 @@ Name | Type | Description | Notes ## UpdateDocument -> SyncV1ServiceDocument UpdateDocument(ctx, serviceSid, sid, optional) +> SyncV1ServiceDocument UpdateDocument(ctx, ServiceSid, Sid, optional) @@ -1619,8 +1619,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document resource to update. | -**sid** | **string**| The SID of the Document resource to update. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document resource to update. | +**Sid** | **string**| The SID of the Document resource to update. | **optional** | ***UpdateDocumentOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1632,9 +1632,9 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ifMatch** | **optional.String**| The If-Match HTTP request header | - **data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that represents an arbitrary, schema-less object that the Sync Document stores. Can be up to 16KB in length. | - **ttl** | **optional.Int32**| How long, in seconds, before the Sync Document expires and is deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Document resource does not expire. The Document resource will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | + **IfMatch** | **optional.String**| The If-Match HTTP request header | + **Data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that represents an arbitrary, schema-less object that the Sync Document stores. Can be up to 16KB in length. | + **Ttl** | **optional.Int32**| How long, in seconds, before the Sync Document expires and is deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Document resource does not expire. The Document resource will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | ### Return type @@ -1656,7 +1656,7 @@ Name | Type | Description | Notes ## UpdateDocumentPermission -> SyncV1ServiceDocumentDocumentPermission UpdateDocumentPermission(ctx, serviceSid, documentSid, identity, optional) +> SyncV1ServiceDocumentDocumentPermission UpdateDocumentPermission(ctx, ServiceSid, DocumentSid, Identity, optional) @@ -1668,9 +1668,9 @@ Update an identity's access to a specific Sync Document. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document Permission resource to update. | -**documentSid** | **string**| The SID of the Sync Document with the Document Permission resource to update. Can be the Document resource's `sid` or its `unique_name`. | -**identity** | **string**| The application-defined string that uniquely identifies the User's Document Permission resource to update. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document Permission resource to update. | +**DocumentSid** | **string**| The SID of the Sync Document with the Document Permission resource to update. Can be the Document resource's `sid` or its `unique_name`. | +**Identity** | **string**| The application-defined string that uniquely identifies the User's Document Permission resource to update. | **optional** | ***UpdateDocumentPermissionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1683,9 +1683,9 @@ Name | Type | Description | Notes - **manage** | **optional.Bool**| Whether the identity can delete the Sync Document. Default value is `false`. | - **read** | **optional.Bool**| Whether the identity can read the Sync Document. Default value is `false`. | - **write** | **optional.Bool**| Whether the identity can update the Sync Document. Default value is `false`. | + **Manage** | **optional.Bool**| Whether the identity can delete the Sync Document. Default value is `false`. | + **Read** | **optional.Bool**| Whether the identity can read the Sync Document. Default value is `false`. | + **Write** | **optional.Bool**| Whether the identity can update the Sync Document. Default value is `false`. | ### Return type @@ -1707,7 +1707,7 @@ Name | Type | Description | Notes ## UpdateService -> SyncV1Service UpdateService(ctx, sid, optional) +> SyncV1Service UpdateService(ctx, Sid, optional) @@ -1717,7 +1717,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Service resource to update. | +**Sid** | **string**| The SID of the Service resource to update. | **optional** | ***UpdateServiceOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1728,13 +1728,13 @@ Optional parameters are passed through a pointer to a UpdateServiceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **aclEnabled** | **optional.Bool**| Whether token identities in the Service must be granted access to Sync objects by using the [Permissions](https://www.twilio.com/docs/sync/api/sync-permissions) resource. | - **friendlyName** | **optional.String**| A string that you assign to describe the resource. | - **reachabilityDebouncingEnabled** | **optional.Bool**| Whether every `endpoint_disconnected` event should occur after a configurable delay. The default is `false`, where the `endpoint_disconnected` event occurs immediately after disconnection. When `true`, intervening reconnections can prevent the `endpoint_disconnected` event. | - **reachabilityDebouncingWindow** | **optional.Int32**| The reachability event delay in milliseconds if `reachability_debouncing_enabled` = `true`. Must be between 1,000 and 30,000 and defaults to 5,000. This is the number of milliseconds after the last running client disconnects, and a Sync identity is declared offline, before the webhook is called if all endpoints remain offline. A reconnection from the same identity by any endpoint during this interval prevents the webhook from being called. | - **reachabilityWebhooksEnabled** | **optional.Bool**| Whether the service instance should call `webhook_url` when client endpoints connect to Sync. The default is `false`. | - **webhookUrl** | **optional.String**| The URL we should call when Sync objects are manipulated. | - **webhooksFromRestEnabled** | **optional.Bool**| Whether the Service instance should call `webhook_url` when the REST API is used to update Sync objects. The default is `false`. | + **AclEnabled** | **optional.Bool**| Whether token identities in the Service must be granted access to Sync objects by using the [Permissions](https://www.twilio.com/docs/sync/api/sync-permissions) resource. | + **FriendlyName** | **optional.String**| A string that you assign to describe the resource. | + **ReachabilityDebouncingEnabled** | **optional.Bool**| Whether every `endpoint_disconnected` event should occur after a configurable delay. The default is `false`, where the `endpoint_disconnected` event occurs immediately after disconnection. When `true`, intervening reconnections can prevent the `endpoint_disconnected` event. | + **ReachabilityDebouncingWindow** | **optional.Int32**| The reachability event delay in milliseconds if `reachability_debouncing_enabled` = `true`. Must be between 1,000 and 30,000 and defaults to 5,000. This is the number of milliseconds after the last running client disconnects, and a Sync identity is declared offline, before the webhook is called if all endpoints remain offline. A reconnection from the same identity by any endpoint during this interval prevents the webhook from being called. | + **ReachabilityWebhooksEnabled** | **optional.Bool**| Whether the service instance should call `webhook_url` when client endpoints connect to Sync. The default is `false`. | + **WebhookUrl** | **optional.String**| The URL we should call when Sync objects are manipulated. | + **WebhooksFromRestEnabled** | **optional.Bool**| Whether the Service instance should call `webhook_url` when the REST API is used to update Sync objects. The default is `false`. | ### Return type @@ -1756,7 +1756,7 @@ Name | Type | Description | Notes ## UpdateSyncList -> SyncV1ServiceSyncList UpdateSyncList(ctx, serviceSid, sid, optional) +> SyncV1ServiceSyncList UpdateSyncList(ctx, ServiceSid, Sid, optional) @@ -1766,8 +1766,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List resource to update. | -**sid** | **string**| The SID of the Sync List resource to update. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List resource to update. | +**Sid** | **string**| The SID of the Sync List resource to update. | **optional** | ***UpdateSyncListOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1779,8 +1779,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **collectionTtl** | **optional.Int32**| How long, in seconds, before the Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | - **ttl** | **optional.Int32**| An alias for `collection_ttl`. If both are provided, this value is ignored. | + **CollectionTtl** | **optional.Int32**| How long, in seconds, before the Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | + **Ttl** | **optional.Int32**| An alias for `collection_ttl`. If both are provided, this value is ignored. | ### Return type @@ -1802,7 +1802,7 @@ Name | Type | Description | Notes ## UpdateSyncListItem -> SyncV1ServiceSyncListSyncListItem UpdateSyncListItem(ctx, serviceSid, listSid, index, optional) +> SyncV1ServiceSyncListSyncListItem UpdateSyncListItem(ctx, ServiceSid, ListSid, Index, optional) @@ -1812,9 +1812,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Item resource to update. | -**listSid** | **string**| The SID of the Sync List with the Sync List Item resource to update. Can be the Sync List resource's `sid` or its `unique_name`. | -**index** | **int32**| The index of the Sync List Item resource to update. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Item resource to update. | +**ListSid** | **string**| The SID of the Sync List with the Sync List Item resource to update. Can be the Sync List resource's `sid` or its `unique_name`. | +**Index** | **int32**| The index of the Sync List Item resource to update. | **optional** | ***UpdateSyncListItemOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1827,11 +1827,11 @@ Name | Type | Description | Notes - **ifMatch** | **optional.String**| The If-Match HTTP request header | - **collectionTtl** | **optional.Int32**| How long, in seconds, before the List Item's parent Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | - **data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that represents an arbitrary, schema-less object that the List Item stores. Can be up to 16KB in length. | - **itemTtl** | **optional.Int32**| How long, in seconds, before the List Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the List Item does not expire. The List Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | - **ttl** | **optional.Int32**| An alias for `item_ttl`. If both parameters are provided, this value is ignored. | + **IfMatch** | **optional.String**| The If-Match HTTP request header | + **CollectionTtl** | **optional.Int32**| How long, in seconds, before the List Item's parent Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | + **Data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that represents an arbitrary, schema-less object that the List Item stores. Can be up to 16KB in length. | + **ItemTtl** | **optional.Int32**| How long, in seconds, before the List Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the List Item does not expire. The List Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | + **Ttl** | **optional.Int32**| An alias for `item_ttl`. If both parameters are provided, this value is ignored. | ### Return type @@ -1853,7 +1853,7 @@ Name | Type | Description | Notes ## UpdateSyncListPermission -> SyncV1ServiceSyncListSyncListPermission UpdateSyncListPermission(ctx, serviceSid, listSid, identity, optional) +> SyncV1ServiceSyncListSyncListPermission UpdateSyncListPermission(ctx, ServiceSid, ListSid, Identity, optional) @@ -1865,9 +1865,9 @@ Update an identity's access to a specific Sync List. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Permission resource to update. | -**listSid** | **string**| The SID of the Sync List with the Sync List Permission resource to update. Can be the Sync List resource's `sid` or its `unique_name`. | -**identity** | **string**| The application-defined string that uniquely identifies the User's Sync List Permission resource to update. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List Permission resource to update. | +**ListSid** | **string**| The SID of the Sync List with the Sync List Permission resource to update. Can be the Sync List resource's `sid` or its `unique_name`. | +**Identity** | **string**| The application-defined string that uniquely identifies the User's Sync List Permission resource to update. | **optional** | ***UpdateSyncListPermissionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1880,9 +1880,9 @@ Name | Type | Description | Notes - **manage** | **optional.Bool**| Whether the identity can delete the Sync List. Default value is `false`. | - **read** | **optional.Bool**| Whether the identity can read the Sync List and its Items. Default value is `false`. | - **write** | **optional.Bool**| Whether the identity can create, update, and delete Items in the Sync List. Default value is `false`. | + **Manage** | **optional.Bool**| Whether the identity can delete the Sync List. Default value is `false`. | + **Read** | **optional.Bool**| Whether the identity can read the Sync List and its Items. Default value is `false`. | + **Write** | **optional.Bool**| Whether the identity can create, update, and delete Items in the Sync List. Default value is `false`. | ### Return type @@ -1904,7 +1904,7 @@ Name | Type | Description | Notes ## UpdateSyncMap -> SyncV1ServiceSyncMap UpdateSyncMap(ctx, serviceSid, sid, optional) +> SyncV1ServiceSyncMap UpdateSyncMap(ctx, ServiceSid, Sid, optional) @@ -1914,8 +1914,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map resource to update. | -**sid** | **string**| The SID of the Sync Map resource to update. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map resource to update. | +**Sid** | **string**| The SID of the Sync Map resource to update. | **optional** | ***UpdateSyncMapOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1927,8 +1927,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **collectionTtl** | **optional.Int32**| How long, in seconds, before the Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync Map does not expire. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | - **ttl** | **optional.Int32**| An alias for `collection_ttl`. If both parameters are provided, this value is ignored. | + **CollectionTtl** | **optional.Int32**| How long, in seconds, before the Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync Map does not expire. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | + **Ttl** | **optional.Int32**| An alias for `collection_ttl`. If both parameters are provided, this value is ignored. | ### Return type @@ -1950,7 +1950,7 @@ Name | Type | Description | Notes ## UpdateSyncMapItem -> SyncV1ServiceSyncMapSyncMapItem UpdateSyncMapItem(ctx, serviceSid, mapSid, key, optional) +> SyncV1ServiceSyncMapSyncMapItem UpdateSyncMapItem(ctx, ServiceSid, MapSid, Key, optional) @@ -1960,9 +1960,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Item resource to update. | -**mapSid** | **string**| The SID of the Sync Map with the Sync Map Item resource to update. Can be the Sync Map's `sid` or its `unique_name`. | -**key** | **string**| The `key` value of the Sync Map Item resource to update. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Item resource to update. | +**MapSid** | **string**| The SID of the Sync Map with the Sync Map Item resource to update. Can be the Sync Map's `sid` or its `unique_name`. | +**Key** | **string**| The `key` value of the Sync Map Item resource to update. | **optional** | ***UpdateSyncMapItemOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1975,11 +1975,11 @@ Name | Type | Description | Notes - **ifMatch** | **optional.String**| The If-Match HTTP request header | - **collectionTtl** | **optional.Int32**| How long, in seconds, before the Map Item's parent Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync Map does not expire. This parameter can only be used when the Map Item's `data` or `ttl` is updated in the same request. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | - **data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that represents an arbitrary, schema-less object that the Map Item stores. Can be up to 16KB in length. | - **itemTtl** | **optional.Int32**| How long, in seconds, before the Map Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Map Item does not expire. The Map Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | - **ttl** | **optional.Int32**| An alias for `item_ttl`. If both parameters are provided, this value is ignored. | + **IfMatch** | **optional.String**| The If-Match HTTP request header | + **CollectionTtl** | **optional.Int32**| How long, in seconds, before the Map Item's parent Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync Map does not expire. This parameter can only be used when the Map Item's `data` or `ttl` is updated in the same request. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | + **Data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that represents an arbitrary, schema-less object that the Map Item stores. Can be up to 16KB in length. | + **ItemTtl** | **optional.Int32**| How long, in seconds, before the Map Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Map Item does not expire. The Map Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | + **Ttl** | **optional.Int32**| An alias for `item_ttl`. If both parameters are provided, this value is ignored. | ### Return type @@ -2001,7 +2001,7 @@ Name | Type | Description | Notes ## UpdateSyncMapPermission -> SyncV1ServiceSyncMapSyncMapPermission UpdateSyncMapPermission(ctx, serviceSid, mapSid, identity, optional) +> SyncV1ServiceSyncMapSyncMapPermission UpdateSyncMapPermission(ctx, ServiceSid, MapSid, Identity, optional) @@ -2013,9 +2013,9 @@ Update an identity's access to a specific Sync Map. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Permission resource to update. Can be the Service's `sid` value or `default`. | -**mapSid** | **string**| The SID of the Sync Map with the Sync Map Permission resource to update. Can be the Sync Map's `sid` or its `unique_name`. | -**identity** | **string**| The application-defined string that uniquely identifies the User's Sync Map Permission resource to update. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Permission resource to update. Can be the Service's `sid` value or `default`. | +**MapSid** | **string**| The SID of the Sync Map with the Sync Map Permission resource to update. Can be the Sync Map's `sid` or its `unique_name`. | +**Identity** | **string**| The application-defined string that uniquely identifies the User's Sync Map Permission resource to update. | **optional** | ***UpdateSyncMapPermissionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2028,9 +2028,9 @@ Name | Type | Description | Notes - **manage** | **optional.Bool**| Whether the identity can delete the Sync Map. Default value is `false`. | - **read** | **optional.Bool**| Whether the identity can read the Sync Map and its Items. Default value is `false`. | - **write** | **optional.Bool**| Whether the identity can create, update, and delete Items in the Sync Map. Default value is `false`. | + **Manage** | **optional.Bool**| Whether the identity can delete the Sync Map. Default value is `false`. | + **Read** | **optional.Bool**| Whether the identity can read the Sync Map and its Items. Default value is `false`. | + **Write** | **optional.Bool**| Whether the identity can create, update, and delete Items in the Sync Map. Default value is `false`. | ### Return type @@ -2052,7 +2052,7 @@ Name | Type | Description | Notes ## UpdateSyncStream -> SyncV1ServiceSyncStream UpdateSyncStream(ctx, serviceSid, sid, optional) +> SyncV1ServiceSyncStream UpdateSyncStream(ctx, ServiceSid, Sid, optional) @@ -2064,8 +2064,8 @@ Update a specific Stream. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Stream resource to update. | -**sid** | **string**| The SID of the Stream resource to update. | +**ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Stream resource to update. | +**Sid** | **string**| The SID of the Stream resource to update. | **optional** | ***UpdateSyncStreamOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2077,7 +2077,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ttl** | **optional.Int32**| How long, in seconds, before the Stream expires and is deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Stream does not expire. The Stream will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | + **Ttl** | **optional.Int32**| How long, in seconds, before the Stream expires and is deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Stream does not expire. The Stream will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | ### Return type diff --git a/rest/sync/v1/model_sync_v1_service.go b/rest/sync/v1/model_sync_v1_service.go index ec08b5b07..796ffba5f 100644 --- a/rest/sync/v1/model_sync_v1_service.go +++ b/rest/sync/v1/model_sync_v1_service.go @@ -14,18 +14,18 @@ import ( ) // SyncV1Service struct for SyncV1Service type SyncV1Service struct { - AccountSid string `json:"account_sid,omitempty"` - AclEnabled bool `json:"acl_enabled,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - ReachabilityDebouncingEnabled bool `json:"reachability_debouncing_enabled,omitempty"` - ReachabilityDebouncingWindow int32 `json:"reachability_debouncing_window,omitempty"` - ReachabilityWebhooksEnabled bool `json:"reachability_webhooks_enabled,omitempty"` - Sid string `json:"sid,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` - WebhookUrl string `json:"webhook_url,omitempty"` - WebhooksFromRestEnabled bool `json:"webhooks_from_rest_enabled,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AclEnabled bool `json:"AclEnabled,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + ReachabilityDebouncingEnabled bool `json:"ReachabilityDebouncingEnabled,omitempty"` + ReachabilityDebouncingWindow int32 `json:"ReachabilityDebouncingWindow,omitempty"` + ReachabilityWebhooksEnabled bool `json:"ReachabilityWebhooksEnabled,omitempty"` + Sid string `json:"Sid,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` + WebhookUrl string `json:"WebhookUrl,omitempty"` + WebhooksFromRestEnabled bool `json:"WebhooksFromRestEnabled,omitempty"` } diff --git a/rest/sync/v1/model_sync_v1_service_document.go b/rest/sync/v1/model_sync_v1_service_document.go index cad160a6b..df4e91164 100644 --- a/rest/sync/v1/model_sync_v1_service_document.go +++ b/rest/sync/v1/model_sync_v1_service_document.go @@ -14,16 +14,16 @@ import ( ) // SyncV1ServiceDocument struct for SyncV1ServiceDocument type SyncV1ServiceDocument struct { - AccountSid string `json:"account_sid,omitempty"` - CreatedBy string `json:"created_by,omitempty"` - Data map[string]interface{} `json:"data,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateExpires time.Time `json:"date_expires,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Revision string `json:"revision,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + CreatedBy string `json:"CreatedBy,omitempty"` + Data map[string]interface{} `json:"Data,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateExpires time.Time `json:"DateExpires,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Revision string `json:"Revision,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/sync/v1/model_sync_v1_service_document_document_permission.go b/rest/sync/v1/model_sync_v1_service_document_document_permission.go index c0dfb0c36..c41b5b317 100644 --- a/rest/sync/v1/model_sync_v1_service_document_document_permission.go +++ b/rest/sync/v1/model_sync_v1_service_document_document_permission.go @@ -11,12 +11,12 @@ package openapi // SyncV1ServiceDocumentDocumentPermission struct for SyncV1ServiceDocumentDocumentPermission type SyncV1ServiceDocumentDocumentPermission struct { - AccountSid string `json:"account_sid,omitempty"` - DocumentSid string `json:"document_sid,omitempty"` - Identity string `json:"identity,omitempty"` - Manage bool `json:"manage,omitempty"` - Read bool `json:"read,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Url string `json:"url,omitempty"` - Write bool `json:"write,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DocumentSid string `json:"DocumentSid,omitempty"` + Identity string `json:"Identity,omitempty"` + Manage bool `json:"Manage,omitempty"` + Read bool `json:"Read,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Url string `json:"Url,omitempty"` + Write bool `json:"Write,omitempty"` } diff --git a/rest/sync/v1/model_sync_v1_service_document_document_permission_read_response.go b/rest/sync/v1/model_sync_v1_service_document_document_permission_read_response.go index c0d3ee022..5c8e06591 100644 --- a/rest/sync/v1/model_sync_v1_service_document_document_permission_read_response.go +++ b/rest/sync/v1/model_sync_v1_service_document_document_permission_read_response.go @@ -11,6 +11,6 @@ package openapi // SyncV1ServiceDocumentDocumentPermissionReadResponse struct for SyncV1ServiceDocumentDocumentPermissionReadResponse type SyncV1ServiceDocumentDocumentPermissionReadResponse struct { - Meta SyncV1ServiceReadResponseMeta `json:"meta,omitempty"` - Permissions []SyncV1ServiceDocumentDocumentPermission `json:"permissions,omitempty"` + Meta SyncV1ServiceReadResponseMeta `json:"Meta,omitempty"` + Permissions []SyncV1ServiceDocumentDocumentPermission `json:"Permissions,omitempty"` } diff --git a/rest/sync/v1/model_sync_v1_service_document_read_response.go b/rest/sync/v1/model_sync_v1_service_document_read_response.go index 38115c559..7652d61a0 100644 --- a/rest/sync/v1/model_sync_v1_service_document_read_response.go +++ b/rest/sync/v1/model_sync_v1_service_document_read_response.go @@ -11,6 +11,6 @@ package openapi // SyncV1ServiceDocumentReadResponse struct for SyncV1ServiceDocumentReadResponse type SyncV1ServiceDocumentReadResponse struct { - Documents []SyncV1ServiceDocument `json:"documents,omitempty"` - Meta SyncV1ServiceReadResponseMeta `json:"meta,omitempty"` + Documents []SyncV1ServiceDocument `json:"Documents,omitempty"` + Meta SyncV1ServiceReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/sync/v1/model_sync_v1_service_read_response.go b/rest/sync/v1/model_sync_v1_service_read_response.go index a693f4172..8edb54ec2 100644 --- a/rest/sync/v1/model_sync_v1_service_read_response.go +++ b/rest/sync/v1/model_sync_v1_service_read_response.go @@ -11,6 +11,6 @@ package openapi // SyncV1ServiceReadResponse struct for SyncV1ServiceReadResponse type SyncV1ServiceReadResponse struct { - Meta SyncV1ServiceReadResponseMeta `json:"meta,omitempty"` - Services []SyncV1Service `json:"services,omitempty"` + Meta SyncV1ServiceReadResponseMeta `json:"Meta,omitempty"` + Services []SyncV1Service `json:"Services,omitempty"` } diff --git a/rest/sync/v1/model_sync_v1_service_read_response_meta.go b/rest/sync/v1/model_sync_v1_service_read_response_meta.go index 30bd8e9ed..de64a6223 100644 --- a/rest/sync/v1/model_sync_v1_service_read_response_meta.go +++ b/rest/sync/v1/model_sync_v1_service_read_response_meta.go @@ -11,11 +11,11 @@ package openapi // SyncV1ServiceReadResponseMeta struct for SyncV1ServiceReadResponseMeta type SyncV1ServiceReadResponseMeta struct { - FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` - NextPageUrl string `json:"next_page_url,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUrl string `json:"previous_page_url,omitempty"` - Url string `json:"url,omitempty"` + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/sync/v1/model_sync_v1_service_sync_list.go b/rest/sync/v1/model_sync_v1_service_sync_list.go index 2a0df49fc..3d088e47c 100644 --- a/rest/sync/v1/model_sync_v1_service_sync_list.go +++ b/rest/sync/v1/model_sync_v1_service_sync_list.go @@ -14,15 +14,15 @@ import ( ) // SyncV1ServiceSyncList struct for SyncV1ServiceSyncList type SyncV1ServiceSyncList struct { - AccountSid string `json:"account_sid,omitempty"` - CreatedBy string `json:"created_by,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateExpires time.Time `json:"date_expires,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Revision string `json:"revision,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + CreatedBy string `json:"CreatedBy,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateExpires time.Time `json:"DateExpires,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Revision string `json:"Revision,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/sync/v1/model_sync_v1_service_sync_list_read_response.go b/rest/sync/v1/model_sync_v1_service_sync_list_read_response.go index 126bc8a57..fa3fa069d 100644 --- a/rest/sync/v1/model_sync_v1_service_sync_list_read_response.go +++ b/rest/sync/v1/model_sync_v1_service_sync_list_read_response.go @@ -11,6 +11,6 @@ package openapi // SyncV1ServiceSyncListReadResponse struct for SyncV1ServiceSyncListReadResponse type SyncV1ServiceSyncListReadResponse struct { - Lists []SyncV1ServiceSyncList `json:"lists,omitempty"` - Meta SyncV1ServiceReadResponseMeta `json:"meta,omitempty"` + Lists []SyncV1ServiceSyncList `json:"Lists,omitempty"` + Meta SyncV1ServiceReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_item.go b/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_item.go index 47ebc8973..0ef9d7df4 100644 --- a/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_item.go +++ b/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_item.go @@ -14,15 +14,15 @@ import ( ) // SyncV1ServiceSyncListSyncListItem struct for SyncV1ServiceSyncListSyncListItem type SyncV1ServiceSyncListSyncListItem struct { - AccountSid string `json:"account_sid,omitempty"` - CreatedBy string `json:"created_by,omitempty"` - Data map[string]interface{} `json:"data,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateExpires time.Time `json:"date_expires,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Index int32 `json:"index,omitempty"` - ListSid string `json:"list_sid,omitempty"` - Revision string `json:"revision,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + CreatedBy string `json:"CreatedBy,omitempty"` + Data map[string]interface{} `json:"Data,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateExpires time.Time `json:"DateExpires,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Index int32 `json:"Index,omitempty"` + ListSid string `json:"ListSid,omitempty"` + Revision string `json:"Revision,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_item_read_response.go b/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_item_read_response.go index ecdae4d3f..ee954b358 100644 --- a/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_item_read_response.go +++ b/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_item_read_response.go @@ -11,6 +11,6 @@ package openapi // SyncV1ServiceSyncListSyncListItemReadResponse struct for SyncV1ServiceSyncListSyncListItemReadResponse type SyncV1ServiceSyncListSyncListItemReadResponse struct { - Items []SyncV1ServiceSyncListSyncListItem `json:"items,omitempty"` - Meta SyncV1ServiceReadResponseMeta `json:"meta,omitempty"` + Items []SyncV1ServiceSyncListSyncListItem `json:"Items,omitempty"` + Meta SyncV1ServiceReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_permission.go b/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_permission.go index 563099d2f..a46061f51 100644 --- a/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_permission.go +++ b/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_permission.go @@ -11,12 +11,12 @@ package openapi // SyncV1ServiceSyncListSyncListPermission struct for SyncV1ServiceSyncListSyncListPermission type SyncV1ServiceSyncListSyncListPermission struct { - AccountSid string `json:"account_sid,omitempty"` - Identity string `json:"identity,omitempty"` - ListSid string `json:"list_sid,omitempty"` - Manage bool `json:"manage,omitempty"` - Read bool `json:"read,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Url string `json:"url,omitempty"` - Write bool `json:"write,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Identity string `json:"Identity,omitempty"` + ListSid string `json:"ListSid,omitempty"` + Manage bool `json:"Manage,omitempty"` + Read bool `json:"Read,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Url string `json:"Url,omitempty"` + Write bool `json:"Write,omitempty"` } diff --git a/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_permission_read_response.go b/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_permission_read_response.go index f210083bc..6747f8a9e 100644 --- a/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_permission_read_response.go +++ b/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_permission_read_response.go @@ -11,6 +11,6 @@ package openapi // SyncV1ServiceSyncListSyncListPermissionReadResponse struct for SyncV1ServiceSyncListSyncListPermissionReadResponse type SyncV1ServiceSyncListSyncListPermissionReadResponse struct { - Meta SyncV1ServiceReadResponseMeta `json:"meta,omitempty"` - Permissions []SyncV1ServiceSyncListSyncListPermission `json:"permissions,omitempty"` + Meta SyncV1ServiceReadResponseMeta `json:"Meta,omitempty"` + Permissions []SyncV1ServiceSyncListSyncListPermission `json:"Permissions,omitempty"` } diff --git a/rest/sync/v1/model_sync_v1_service_sync_map.go b/rest/sync/v1/model_sync_v1_service_sync_map.go index 9d678724e..a886dde2a 100644 --- a/rest/sync/v1/model_sync_v1_service_sync_map.go +++ b/rest/sync/v1/model_sync_v1_service_sync_map.go @@ -14,15 +14,15 @@ import ( ) // SyncV1ServiceSyncMap struct for SyncV1ServiceSyncMap type SyncV1ServiceSyncMap struct { - AccountSid string `json:"account_sid,omitempty"` - CreatedBy string `json:"created_by,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateExpires time.Time `json:"date_expires,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Revision string `json:"revision,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + CreatedBy string `json:"CreatedBy,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateExpires time.Time `json:"DateExpires,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Revision string `json:"Revision,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/sync/v1/model_sync_v1_service_sync_map_read_response.go b/rest/sync/v1/model_sync_v1_service_sync_map_read_response.go index 69f430a09..da6904cad 100644 --- a/rest/sync/v1/model_sync_v1_service_sync_map_read_response.go +++ b/rest/sync/v1/model_sync_v1_service_sync_map_read_response.go @@ -11,6 +11,6 @@ package openapi // SyncV1ServiceSyncMapReadResponse struct for SyncV1ServiceSyncMapReadResponse type SyncV1ServiceSyncMapReadResponse struct { - Maps []SyncV1ServiceSyncMap `json:"maps,omitempty"` - Meta SyncV1ServiceReadResponseMeta `json:"meta,omitempty"` + Maps []SyncV1ServiceSyncMap `json:"Maps,omitempty"` + Meta SyncV1ServiceReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_item.go b/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_item.go index 6e6912620..e62e520b2 100644 --- a/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_item.go +++ b/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_item.go @@ -14,15 +14,15 @@ import ( ) // SyncV1ServiceSyncMapSyncMapItem struct for SyncV1ServiceSyncMapSyncMapItem type SyncV1ServiceSyncMapSyncMapItem struct { - AccountSid string `json:"account_sid,omitempty"` - CreatedBy string `json:"created_by,omitempty"` - Data map[string]interface{} `json:"data,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateExpires time.Time `json:"date_expires,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Key string `json:"key,omitempty"` - MapSid string `json:"map_sid,omitempty"` - Revision string `json:"revision,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + CreatedBy string `json:"CreatedBy,omitempty"` + Data map[string]interface{} `json:"Data,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateExpires time.Time `json:"DateExpires,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Key string `json:"Key,omitempty"` + MapSid string `json:"MapSid,omitempty"` + Revision string `json:"Revision,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_item_read_response.go b/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_item_read_response.go index cd7a9dc38..bcb315317 100644 --- a/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_item_read_response.go +++ b/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_item_read_response.go @@ -11,6 +11,6 @@ package openapi // SyncV1ServiceSyncMapSyncMapItemReadResponse struct for SyncV1ServiceSyncMapSyncMapItemReadResponse type SyncV1ServiceSyncMapSyncMapItemReadResponse struct { - Items []SyncV1ServiceSyncMapSyncMapItem `json:"items,omitempty"` - Meta SyncV1ServiceReadResponseMeta `json:"meta,omitempty"` + Items []SyncV1ServiceSyncMapSyncMapItem `json:"Items,omitempty"` + Meta SyncV1ServiceReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_permission.go b/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_permission.go index 0ebabd8bb..86068e2ca 100644 --- a/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_permission.go +++ b/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_permission.go @@ -11,12 +11,12 @@ package openapi // SyncV1ServiceSyncMapSyncMapPermission struct for SyncV1ServiceSyncMapSyncMapPermission type SyncV1ServiceSyncMapSyncMapPermission struct { - AccountSid string `json:"account_sid,omitempty"` - Identity string `json:"identity,omitempty"` - Manage bool `json:"manage,omitempty"` - MapSid string `json:"map_sid,omitempty"` - Read bool `json:"read,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Url string `json:"url,omitempty"` - Write bool `json:"write,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Identity string `json:"Identity,omitempty"` + Manage bool `json:"Manage,omitempty"` + MapSid string `json:"MapSid,omitempty"` + Read bool `json:"Read,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Url string `json:"Url,omitempty"` + Write bool `json:"Write,omitempty"` } diff --git a/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_permission_read_response.go b/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_permission_read_response.go index 5ab4fe6e6..96263fce8 100644 --- a/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_permission_read_response.go +++ b/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_permission_read_response.go @@ -11,6 +11,6 @@ package openapi // SyncV1ServiceSyncMapSyncMapPermissionReadResponse struct for SyncV1ServiceSyncMapSyncMapPermissionReadResponse type SyncV1ServiceSyncMapSyncMapPermissionReadResponse struct { - Meta SyncV1ServiceReadResponseMeta `json:"meta,omitempty"` - Permissions []SyncV1ServiceSyncMapSyncMapPermission `json:"permissions,omitempty"` + Meta SyncV1ServiceReadResponseMeta `json:"Meta,omitempty"` + Permissions []SyncV1ServiceSyncMapSyncMapPermission `json:"Permissions,omitempty"` } diff --git a/rest/sync/v1/model_sync_v1_service_sync_stream.go b/rest/sync/v1/model_sync_v1_service_sync_stream.go index 7c2386303..c2a790498 100644 --- a/rest/sync/v1/model_sync_v1_service_sync_stream.go +++ b/rest/sync/v1/model_sync_v1_service_sync_stream.go @@ -14,14 +14,14 @@ import ( ) // SyncV1ServiceSyncStream struct for SyncV1ServiceSyncStream type SyncV1ServiceSyncStream struct { - AccountSid string `json:"account_sid,omitempty"` - CreatedBy string `json:"created_by,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateExpires time.Time `json:"date_expires,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + CreatedBy string `json:"CreatedBy,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateExpires time.Time `json:"DateExpires,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/sync/v1/model_sync_v1_service_sync_stream_read_response.go b/rest/sync/v1/model_sync_v1_service_sync_stream_read_response.go index 9b09d9cd5..1fb913f04 100644 --- a/rest/sync/v1/model_sync_v1_service_sync_stream_read_response.go +++ b/rest/sync/v1/model_sync_v1_service_sync_stream_read_response.go @@ -11,6 +11,6 @@ package openapi // SyncV1ServiceSyncStreamReadResponse struct for SyncV1ServiceSyncStreamReadResponse type SyncV1ServiceSyncStreamReadResponse struct { - Meta SyncV1ServiceReadResponseMeta `json:"meta,omitempty"` - Streams []SyncV1ServiceSyncStream `json:"streams,omitempty"` + Meta SyncV1ServiceReadResponseMeta `json:"Meta,omitempty"` + Streams []SyncV1ServiceSyncStream `json:"Streams,omitempty"` } diff --git a/rest/sync/v1/model_sync_v1_service_sync_stream_stream_message.go b/rest/sync/v1/model_sync_v1_service_sync_stream_stream_message.go index ef8c85b70..863085c5c 100644 --- a/rest/sync/v1/model_sync_v1_service_sync_stream_stream_message.go +++ b/rest/sync/v1/model_sync_v1_service_sync_stream_stream_message.go @@ -11,6 +11,6 @@ package openapi // SyncV1ServiceSyncStreamStreamMessage struct for SyncV1ServiceSyncStreamStreamMessage type SyncV1ServiceSyncStreamStreamMessage struct { - Data map[string]interface{} `json:"data,omitempty"` - Sid string `json:"sid,omitempty"` + Data map[string]interface{} `json:"Data,omitempty"` + Sid string `json:"Sid,omitempty"` } diff --git a/rest/taskrouter/v1/api_default.go b/rest/taskrouter/v1/api_default.go index fef43899c..299eafd3a 100644 --- a/rest/taskrouter/v1/api_default.go +++ b/rest/taskrouter/v1/api_default.go @@ -15,6 +15,8 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" + "time" ) type DefaultApiService struct { @@ -36,24 +38,25 @@ type CreateActivityParams struct { /* CreateActivity Method for CreateActivity - * @param workspaceSid The SID of the Workspace that the new Activity belongs to. + * @param WorkspaceSid The SID of the Workspace that the new Activity belongs to. * @param optional nil or *CreateActivityOpts - Optional Parameters: * @param "Available" (bool) - Whether the Worker should be eligible to receive a Task when it occupies the Activity. A value of `true`, `1`, or `yes` specifies the Activity is available. All other values specify that it is not. The value cannot be changed after the Activity is created. * @param "FriendlyName" (string) - A descriptive string that you create to describe the Activity resource. It can be up to 64 characters long. These names are used to calculate and expose statistics about Workers, and provide visibility into the state of each Worker. Examples of friendly names include: `on-call`, `break`, and `email`. @return TaskrouterV1WorkspaceActivity */ -func (c *DefaultApiService) CreateActivity(workspaceSid string, params *CreateActivityParams) (*TaskrouterV1WorkspaceActivity, error) { +func (c *DefaultApiService) CreateActivity(WorkspaceSid string, params *CreateActivityParams) (*TaskrouterV1WorkspaceActivity, error) { path := "/v1/Workspaces/{WorkspaceSid}/Activities" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Available != nil { - data.Set("Available", string(*params.Available)) + data.Set("Available", fmt.Sprint(*params.Available)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -82,7 +85,7 @@ type CreateTaskParams struct { /* CreateTask Method for CreateTask - * @param workspaceSid The SID of the Workspace that the new Task belongs to. + * @param WorkspaceSid The SID of the Workspace that the new Task belongs to. * @param optional nil or *CreateTaskOpts - Optional Parameters: * @param "Attributes" (string) - A URL-encoded JSON string with the attributes of the new task. This value is passed to the Workflow's `assignment_callback_url` when the Task is assigned to a Worker. For example: `{ \\\"task_type\\\": \\\"call\\\", \\\"twilio_call_sid\\\": \\\"CAxxx\\\", \\\"customer_ticket_number\\\": \\\"12345\\\" }`. * @param "Priority" (int32) - The priority to assign the new task and override the default. When supplied, the new Task will have this priority unless it matches a Workflow Target with a Priority set. When not supplied, the new Task will have the priority of the matching Workflow Target. Value can be 0 to 2^31^ (2,147,483,647). @@ -91,27 +94,28 @@ CreateTask Method for CreateTask * @param "WorkflowSid" (string) - The SID of the Workflow that you would like to handle routing for the new Task. If there is only one Workflow defined for the Workspace that you are posting the new task to, this parameter is optional. @return TaskrouterV1WorkspaceTask */ -func (c *DefaultApiService) CreateTask(workspaceSid string, params *CreateTaskParams) (*TaskrouterV1WorkspaceTask, error) { +func (c *DefaultApiService) CreateTask(WorkspaceSid string, params *CreateTaskParams) (*TaskrouterV1WorkspaceTask, error) { path := "/v1/Workspaces/{WorkspaceSid}/Tasks" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.Priority != nil { - data.Set("Priority", string(*params.Priority)) + data.Set("Priority", fmt.Sprint(*params.Priority)) } if params != nil && params.TaskChannel != nil { - data.Set("TaskChannel", *params.TaskChannel) + data.Set("TaskChannel", *params.TaskChannel) } if params != nil && params.Timeout != nil { - data.Set("Timeout", string(*params.Timeout)) + data.Set("Timeout", fmt.Sprint(*params.Timeout)) } if params != nil && params.WorkflowSid != nil { - data.Set("WorkflowSid", *params.WorkflowSid) + data.Set("WorkflowSid", *params.WorkflowSid) } @@ -138,28 +142,29 @@ type CreateTaskChannelParams struct { /* CreateTaskChannel Method for CreateTaskChannel - * @param workspaceSid The SID of the Workspace that the new Task Channel belongs to. + * @param WorkspaceSid The SID of the Workspace that the new Task Channel belongs to. * @param optional nil or *CreateTaskChannelOpts - Optional Parameters: * @param "ChannelOptimizedRouting" (bool) - Whether the Task Channel should prioritize Workers that have been idle. If `true`, Workers that have been idle the longest are prioritized. * @param "FriendlyName" (string) - A descriptive string that you create to describe the Task Channel. It can be up to 64 characters long. * @param "UniqueName" (string) - An application-defined string that uniquely identifies the Task Channel, such as `voice` or `sms`. @return TaskrouterV1WorkspaceTaskChannel */ -func (c *DefaultApiService) CreateTaskChannel(workspaceSid string, params *CreateTaskChannelParams) (*TaskrouterV1WorkspaceTaskChannel, error) { +func (c *DefaultApiService) CreateTaskChannel(WorkspaceSid string, params *CreateTaskChannelParams) (*TaskrouterV1WorkspaceTaskChannel, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskChannels" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.ChannelOptimizedRouting != nil { - data.Set("ChannelOptimizedRouting", string(*params.ChannelOptimizedRouting)) + data.Set("ChannelOptimizedRouting", fmt.Sprint(*params.ChannelOptimizedRouting)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -189,7 +194,7 @@ type CreateTaskQueueParams struct { /* CreateTaskQueue Method for CreateTaskQueue - * @param workspaceSid The SID of the Workspace that the new TaskQueue belongs to. + * @param WorkspaceSid The SID of the Workspace that the new TaskQueue belongs to. * @param optional nil or *CreateTaskQueueOpts - Optional Parameters: * @param "AssignmentActivitySid" (string) - The SID of the Activity to assign Workers when a task is assigned to them. * @param "FriendlyName" (string) - A descriptive string that you create to describe the TaskQueue. For example `Support-Tier 1`, `Sales`, or `Escalation`. @@ -199,30 +204,31 @@ CreateTaskQueue Method for CreateTaskQueue * @param "TaskOrder" (string) - How Tasks will be assigned to Workers. Set this parameter to `LIFO` to assign most recently created Task first or FIFO to assign the oldest Task first. Default is `FIFO`. [Click here](https://www.twilio.com/docs/taskrouter/queue-ordering-last-first-out-lifo) to learn more. @return TaskrouterV1WorkspaceTaskQueue */ -func (c *DefaultApiService) CreateTaskQueue(workspaceSid string, params *CreateTaskQueueParams) (*TaskrouterV1WorkspaceTaskQueue, error) { +func (c *DefaultApiService) CreateTaskQueue(WorkspaceSid string, params *CreateTaskQueueParams) (*TaskrouterV1WorkspaceTaskQueue, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.AssignmentActivitySid != nil { - data.Set("AssignmentActivitySid", *params.AssignmentActivitySid) + data.Set("AssignmentActivitySid", *params.AssignmentActivitySid) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.MaxReservedWorkers != nil { - data.Set("MaxReservedWorkers", string(*params.MaxReservedWorkers)) + data.Set("MaxReservedWorkers", fmt.Sprint(*params.MaxReservedWorkers)) } if params != nil && params.ReservationActivitySid != nil { - data.Set("ReservationActivitySid", *params.ReservationActivitySid) + data.Set("ReservationActivitySid", *params.ReservationActivitySid) } if params != nil && params.TargetWorkers != nil { - data.Set("TargetWorkers", *params.TargetWorkers) + data.Set("TargetWorkers", *params.TargetWorkers) } if params != nil && params.TaskOrder != nil { - data.Set("TaskOrder", *params.TaskOrder) + data.Set("TaskOrder", *params.TaskOrder) } @@ -249,28 +255,29 @@ type CreateWorkerParams struct { /* CreateWorker Method for CreateWorker - * @param workspaceSid The SID of the Workspace that the new Worker belongs to. + * @param WorkspaceSid The SID of the Workspace that the new Worker belongs to. * @param optional nil or *CreateWorkerOpts - Optional Parameters: * @param "ActivitySid" (string) - The SID of a valid Activity that will describe the new Worker's initial state. See [Activities](https://www.twilio.com/docs/taskrouter/api/activity) for more information. If not provided, the new Worker's initial state is the `default_activity_sid` configured on the Workspace. * @param "Attributes" (string) - A valid JSON string that describes the new Worker. For example: `{ \\\"email\\\": \\\"Bob@example.com\\\", \\\"phone\\\": \\\"+5095551234\\\" }`. This data is passed to the `assignment_callback_url` when TaskRouter assigns a Task to the Worker. Defaults to {}. * @param "FriendlyName" (string) - A descriptive string that you create to describe the new Worker. It can be up to 64 characters long. @return TaskrouterV1WorkspaceWorker */ -func (c *DefaultApiService) CreateWorker(workspaceSid string, params *CreateWorkerParams) (*TaskrouterV1WorkspaceWorker, error) { +func (c *DefaultApiService) CreateWorker(WorkspaceSid string, params *CreateWorkerParams) (*TaskrouterV1WorkspaceWorker, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.ActivitySid != nil { - data.Set("ActivitySid", *params.ActivitySid) + data.Set("ActivitySid", *params.ActivitySid) } if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -299,7 +306,7 @@ type CreateWorkflowParams struct { /* CreateWorkflow Method for CreateWorkflow - * @param workspaceSid The SID of the Workspace that the new Workflow to create belongs to. + * @param WorkspaceSid The SID of the Workspace that the new Workflow to create belongs to. * @param optional nil or *CreateWorkflowOpts - Optional Parameters: * @param "AssignmentCallbackUrl" (string) - The URL from your application that will process task assignment events. See [Handling Task Assignment Callback](https://www.twilio.com/docs/taskrouter/handle-assignment-callbacks) for more details. * @param "Configuration" (string) - A JSON string that contains the rules to apply to the Workflow. See [Configuring Workflows](https://www.twilio.com/docs/taskrouter/workflow-configuration) for more information. @@ -308,27 +315,28 @@ CreateWorkflow Method for CreateWorkflow * @param "TaskReservationTimeout" (int32) - How long TaskRouter will wait for a confirmation response from your application after it assigns a Task to a Worker. Can be up to `86,400` (24 hours) and the default is `120`. @return TaskrouterV1WorkspaceWorkflow */ -func (c *DefaultApiService) CreateWorkflow(workspaceSid string, params *CreateWorkflowParams) (*TaskrouterV1WorkspaceWorkflow, error) { +func (c *DefaultApiService) CreateWorkflow(WorkspaceSid string, params *CreateWorkflowParams) (*TaskrouterV1WorkspaceWorkflow, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workflows" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.AssignmentCallbackUrl != nil { - data.Set("AssignmentCallbackUrl", *params.AssignmentCallbackUrl) + data.Set("AssignmentCallbackUrl", *params.AssignmentCallbackUrl) } if params != nil && params.Configuration != nil { - data.Set("Configuration", *params.Configuration) + data.Set("Configuration", *params.Configuration) } if params != nil && params.FallbackAssignmentCallbackUrl != nil { - data.Set("FallbackAssignmentCallbackUrl", *params.FallbackAssignmentCallbackUrl) + data.Set("FallbackAssignmentCallbackUrl", *params.FallbackAssignmentCallbackUrl) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.TaskReservationTimeout != nil { - data.Set("TaskReservationTimeout", string(*params.TaskReservationTimeout)) + data.Set("TaskReservationTimeout", fmt.Sprint(*params.TaskReservationTimeout)) } @@ -370,26 +378,27 @@ CreateWorkspace Method for CreateWorkspace func (c *DefaultApiService) CreateWorkspace(params *CreateWorkspaceParams) (*TaskrouterV1Workspace, error) { path := "/v1/Workspaces" + data := url.Values{} headers := 0 if params != nil && params.EventCallbackUrl != nil { - data.Set("EventCallbackUrl", *params.EventCallbackUrl) + data.Set("EventCallbackUrl", *params.EventCallbackUrl) } if params != nil && params.EventsFilter != nil { - data.Set("EventsFilter", *params.EventsFilter) + data.Set("EventsFilter", *params.EventsFilter) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.MultiTaskEnabled != nil { - data.Set("MultiTaskEnabled", string(*params.MultiTaskEnabled)) + data.Set("MultiTaskEnabled", fmt.Sprint(*params.MultiTaskEnabled)) } if params != nil && params.PrioritizeQueueOrder != nil { - data.Set("PrioritizeQueueOrder", *params.PrioritizeQueueOrder) + data.Set("PrioritizeQueueOrder", *params.PrioritizeQueueOrder) } if params != nil && params.Template != nil { - data.Set("Template", *params.Template) + data.Set("Template", *params.Template) } @@ -410,15 +419,16 @@ func (c *DefaultApiService) CreateWorkspace(params *CreateWorkspaceParams) (*Tas /* DeleteActivity Method for DeleteActivity - * @param workspaceSid The SID of the Workspace with the Activity resources to delete. - * @param sid The SID of the Activity resource to delete. + * @param WorkspaceSid The SID of the Workspace with the Activity resources to delete. + * @param Sid The SID of the Activity resource to delete. */ -func (c *DefaultApiService) DeleteActivity(workspaceSid string, sid string) (error) { +func (c *DefaultApiService) DeleteActivity(WorkspaceSid string, Sid string) (error) { path := "/v1/Workspaces/{WorkspaceSid}/Activities/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -435,15 +445,16 @@ func (c *DefaultApiService) DeleteActivity(workspaceSid string, sid string) (err /* DeleteTask Method for DeleteTask - * @param workspaceSid The SID of the Workspace with the Task to delete. - * @param sid The SID of the Task resource to delete. + * @param WorkspaceSid The SID of the Workspace with the Task to delete. + * @param Sid The SID of the Task resource to delete. */ -func (c *DefaultApiService) DeleteTask(workspaceSid string, sid string) (error) { +func (c *DefaultApiService) DeleteTask(WorkspaceSid string, Sid string) (error) { path := "/v1/Workspaces/{WorkspaceSid}/Tasks/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -460,15 +471,16 @@ func (c *DefaultApiService) DeleteTask(workspaceSid string, sid string) (error) /* DeleteTaskChannel Method for DeleteTaskChannel - * @param workspaceSid The SID of the Workspace with the Task Channel to delete. - * @param sid The SID of the Task Channel resource to delete. + * @param WorkspaceSid The SID of the Workspace with the Task Channel to delete. + * @param Sid The SID of the Task Channel resource to delete. */ -func (c *DefaultApiService) DeleteTaskChannel(workspaceSid string, sid string) (error) { +func (c *DefaultApiService) DeleteTaskChannel(WorkspaceSid string, Sid string) (error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskChannels/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -485,15 +497,16 @@ func (c *DefaultApiService) DeleteTaskChannel(workspaceSid string, sid string) ( /* DeleteTaskQueue Method for DeleteTaskQueue - * @param workspaceSid The SID of the Workspace with the TaskQueue to delete. - * @param sid The SID of the TaskQueue resource to delete. + * @param WorkspaceSid The SID of the Workspace with the TaskQueue to delete. + * @param Sid The SID of the TaskQueue resource to delete. */ -func (c *DefaultApiService) DeleteTaskQueue(workspaceSid string, sid string) (error) { +func (c *DefaultApiService) DeleteTaskQueue(WorkspaceSid string, Sid string) (error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -510,15 +523,16 @@ func (c *DefaultApiService) DeleteTaskQueue(workspaceSid string, sid string) (er /* DeleteWorker Method for DeleteWorker - * @param workspaceSid The SID of the Workspace with the Worker to delete. - * @param sid The SID of the Worker resource to delete. + * @param WorkspaceSid The SID of the Workspace with the Worker to delete. + * @param Sid The SID of the Worker resource to delete. */ -func (c *DefaultApiService) DeleteWorker(workspaceSid string, sid string) (error) { +func (c *DefaultApiService) DeleteWorker(WorkspaceSid string, Sid string) (error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -535,15 +549,16 @@ func (c *DefaultApiService) DeleteWorker(workspaceSid string, sid string) (error /* DeleteWorkflow Method for DeleteWorkflow - * @param workspaceSid The SID of the Workspace with the Workflow to delete. - * @param sid The SID of the Workflow resource to delete. + * @param WorkspaceSid The SID of the Workspace with the Workflow to delete. + * @param Sid The SID of the Workflow resource to delete. */ -func (c *DefaultApiService) DeleteWorkflow(workspaceSid string, sid string) (error) { +func (c *DefaultApiService) DeleteWorkflow(WorkspaceSid string, Sid string) (error) { path := "/v1/Workspaces/{WorkspaceSid}/Workflows/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -560,13 +575,14 @@ func (c *DefaultApiService) DeleteWorkflow(workspaceSid string, sid string) (err /* DeleteWorkspace Method for DeleteWorkspace - * @param sid The SID of the Workspace resource to delete. + * @param Sid The SID of the Workspace resource to delete. */ -func (c *DefaultApiService) DeleteWorkspace(sid string) (error) { +func (c *DefaultApiService) DeleteWorkspace(Sid string) (error) { path := "/v1/Workspaces/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -583,16 +599,17 @@ func (c *DefaultApiService) DeleteWorkspace(sid string) (error) { /* FetchActivity Method for FetchActivity - * @param workspaceSid The SID of the Workspace with the Activity resources to fetch. - * @param sid The SID of the Activity resource to fetch. + * @param WorkspaceSid The SID of the Workspace with the Activity resources to fetch. + * @param Sid The SID of the Activity resource to fetch. @return TaskrouterV1WorkspaceActivity */ -func (c *DefaultApiService) FetchActivity(workspaceSid string, sid string) (*TaskrouterV1WorkspaceActivity, error) { +func (c *DefaultApiService) FetchActivity(WorkspaceSid string, Sid string) (*TaskrouterV1WorkspaceActivity, error) { path := "/v1/Workspaces/{WorkspaceSid}/Activities/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -614,16 +631,17 @@ func (c *DefaultApiService) FetchActivity(workspaceSid string, sid string) (*Tas /* FetchEvent Method for FetchEvent - * @param workspaceSid The SID of the Workspace with the Event to fetch. - * @param sid The SID of the Event resource to fetch. + * @param WorkspaceSid The SID of the Workspace with the Event to fetch. + * @param Sid The SID of the Event resource to fetch. @return TaskrouterV1WorkspaceEvent */ -func (c *DefaultApiService) FetchEvent(workspaceSid string, sid string) (*TaskrouterV1WorkspaceEvent, error) { +func (c *DefaultApiService) FetchEvent(WorkspaceSid string, Sid string) (*TaskrouterV1WorkspaceEvent, error) { path := "/v1/Workspaces/{WorkspaceSid}/Events/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -645,16 +663,17 @@ func (c *DefaultApiService) FetchEvent(workspaceSid string, sid string) (*Taskro /* FetchTask Method for FetchTask - * @param workspaceSid The SID of the Workspace with the Task to fetch. - * @param sid The SID of the Task resource to fetch. + * @param WorkspaceSid The SID of the Workspace with the Task to fetch. + * @param Sid The SID of the Task resource to fetch. @return TaskrouterV1WorkspaceTask */ -func (c *DefaultApiService) FetchTask(workspaceSid string, sid string) (*TaskrouterV1WorkspaceTask, error) { +func (c *DefaultApiService) FetchTask(WorkspaceSid string, Sid string) (*TaskrouterV1WorkspaceTask, error) { path := "/v1/Workspaces/{WorkspaceSid}/Tasks/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -676,16 +695,17 @@ func (c *DefaultApiService) FetchTask(workspaceSid string, sid string) (*Taskrou /* FetchTaskChannel Method for FetchTaskChannel - * @param workspaceSid The SID of the Workspace with the Task Channel to fetch. - * @param sid The SID of the Task Channel resource to fetch. + * @param WorkspaceSid The SID of the Workspace with the Task Channel to fetch. + * @param Sid The SID of the Task Channel resource to fetch. @return TaskrouterV1WorkspaceTaskChannel */ -func (c *DefaultApiService) FetchTaskChannel(workspaceSid string, sid string) (*TaskrouterV1WorkspaceTaskChannel, error) { +func (c *DefaultApiService) FetchTaskChannel(WorkspaceSid string, Sid string) (*TaskrouterV1WorkspaceTaskChannel, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskChannels/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -707,16 +727,17 @@ func (c *DefaultApiService) FetchTaskChannel(workspaceSid string, sid string) (* /* FetchTaskQueue Method for FetchTaskQueue - * @param workspaceSid The SID of the Workspace with the TaskQueue to fetch. - * @param sid The SID of the TaskQueue resource to fetch. + * @param WorkspaceSid The SID of the Workspace with the TaskQueue to fetch. + * @param Sid The SID of the TaskQueue resource to fetch. @return TaskrouterV1WorkspaceTaskQueue */ -func (c *DefaultApiService) FetchTaskQueue(workspaceSid string, sid string) (*TaskrouterV1WorkspaceTaskQueue, error) { +func (c *DefaultApiService) FetchTaskQueue(WorkspaceSid string, Sid string) (*TaskrouterV1WorkspaceTaskQueue, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -746,8 +767,8 @@ type FetchTaskQueueCumulativeStatisticsParams struct { /* FetchTaskQueueCumulativeStatistics Method for FetchTaskQueueCumulativeStatistics - * @param workspaceSid The SID of the Workspace with the TaskQueue to fetch. - * @param taskQueueSid The SID of the TaskQueue for which to fetch statistics. + * @param WorkspaceSid The SID of the Workspace with the TaskQueue to fetch. + * @param TaskQueueSid The SID of the TaskQueue for which to fetch statistics. * @param optional nil or *FetchTaskQueueCumulativeStatisticsOpts - Optional Parameters: * @param "EndDate" (time.Time) - Only calculate statistics from this date and time and earlier, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. * @param "Minutes" (int32) - Only calculate statistics since this many minutes in the past. The default is 15 minutes. @@ -756,28 +777,29 @@ FetchTaskQueueCumulativeStatistics Method for FetchTaskQueueCumulativeStatistics * @param "SplitByWaitTime" (string) - A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. @return TaskrouterV1WorkspaceTaskQueueTaskQueueCumulativeStatistics */ -func (c *DefaultApiService) FetchTaskQueueCumulativeStatistics(workspaceSid string, taskQueueSid string, params *FetchTaskQueueCumulativeStatisticsParams) (*TaskrouterV1WorkspaceTaskQueueTaskQueueCumulativeStatistics, error) { +func (c *DefaultApiService) FetchTaskQueueCumulativeStatistics(WorkspaceSid string, TaskQueueSid string, params *FetchTaskQueueCumulativeStatisticsParams) (*TaskrouterV1WorkspaceTaskQueueTaskQueueCumulativeStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/CumulativeStatistics" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"TaskQueueSid"+"}", taskQueueSid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + path = strings.Replace(path, "{"+"TaskQueueSid"+"}", TaskQueueSid, -1) + data := url.Values{} headers := 0 if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) + data.Set("EndDate", fmt.Sprint(*params.EndDate)) } if params != nil && params.Minutes != nil { - data.Set("Minutes", string(*params.Minutes)) + data.Set("Minutes", fmt.Sprint(*params.Minutes)) } if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) + data.Set("StartDate", fmt.Sprint(*params.StartDate)) } if params != nil && params.TaskChannel != nil { - data.Set("TaskChannel", *params.TaskChannel) + data.Set("TaskChannel", *params.TaskChannel) } if params != nil && params.SplitByWaitTime != nil { - data.Set("SplitByWaitTime", *params.SplitByWaitTime) + data.Set("SplitByWaitTime", *params.SplitByWaitTime) } @@ -802,22 +824,23 @@ type FetchTaskQueueRealTimeStatisticsParams struct { /* FetchTaskQueueRealTimeStatistics Method for FetchTaskQueueRealTimeStatistics - * @param workspaceSid The SID of the Workspace with the TaskQueue to fetch. - * @param taskQueueSid The SID of the TaskQueue for which to fetch statistics. + * @param WorkspaceSid The SID of the Workspace with the TaskQueue to fetch. + * @param TaskQueueSid The SID of the TaskQueue for which to fetch statistics. * @param optional nil or *FetchTaskQueueRealTimeStatisticsOpts - Optional Parameters: * @param "TaskChannel" (string) - The TaskChannel for which to fetch statistics. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. @return TaskrouterV1WorkspaceTaskQueueTaskQueueRealTimeStatistics */ -func (c *DefaultApiService) FetchTaskQueueRealTimeStatistics(workspaceSid string, taskQueueSid string, params *FetchTaskQueueRealTimeStatisticsParams) (*TaskrouterV1WorkspaceTaskQueueTaskQueueRealTimeStatistics, error) { +func (c *DefaultApiService) FetchTaskQueueRealTimeStatistics(WorkspaceSid string, TaskQueueSid string, params *FetchTaskQueueRealTimeStatisticsParams) (*TaskrouterV1WorkspaceTaskQueueTaskQueueRealTimeStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/RealTimeStatistics" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"TaskQueueSid"+"}", taskQueueSid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + path = strings.Replace(path, "{"+"TaskQueueSid"+"}", TaskQueueSid, -1) + data := url.Values{} headers := 0 if params != nil && params.TaskChannel != nil { - data.Set("TaskChannel", *params.TaskChannel) + data.Set("TaskChannel", *params.TaskChannel) } @@ -846,8 +869,8 @@ type FetchTaskQueueStatisticsParams struct { /* FetchTaskQueueStatistics Method for FetchTaskQueueStatistics - * @param workspaceSid The SID of the Workspace with the TaskQueue to fetch. - * @param taskQueueSid The SID of the TaskQueue for which to fetch statistics. + * @param WorkspaceSid The SID of the Workspace with the TaskQueue to fetch. + * @param TaskQueueSid The SID of the TaskQueue for which to fetch statistics. * @param optional nil or *FetchTaskQueueStatisticsOpts - Optional Parameters: * @param "EndDate" (time.Time) - Only calculate statistics from this date and time and earlier, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. * @param "Minutes" (int32) - Only calculate statistics since this many minutes in the past. The default is 15 minutes. @@ -856,28 +879,29 @@ FetchTaskQueueStatistics Method for FetchTaskQueueStatistics * @param "SplitByWaitTime" (string) - A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. @return TaskrouterV1WorkspaceTaskQueueTaskQueueStatistics */ -func (c *DefaultApiService) FetchTaskQueueStatistics(workspaceSid string, taskQueueSid string, params *FetchTaskQueueStatisticsParams) (*TaskrouterV1WorkspaceTaskQueueTaskQueueStatistics, error) { +func (c *DefaultApiService) FetchTaskQueueStatistics(WorkspaceSid string, TaskQueueSid string, params *FetchTaskQueueStatisticsParams) (*TaskrouterV1WorkspaceTaskQueueTaskQueueStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/{TaskQueueSid}/Statistics" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"TaskQueueSid"+"}", taskQueueSid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + path = strings.Replace(path, "{"+"TaskQueueSid"+"}", TaskQueueSid, -1) + data := url.Values{} headers := 0 if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) + data.Set("EndDate", fmt.Sprint(*params.EndDate)) } if params != nil && params.Minutes != nil { - data.Set("Minutes", string(*params.Minutes)) + data.Set("Minutes", fmt.Sprint(*params.Minutes)) } if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) + data.Set("StartDate", fmt.Sprint(*params.StartDate)) } if params != nil && params.TaskChannel != nil { - data.Set("TaskChannel", *params.TaskChannel) + data.Set("TaskChannel", *params.TaskChannel) } if params != nil && params.SplitByWaitTime != nil { - data.Set("SplitByWaitTime", *params.SplitByWaitTime) + data.Set("SplitByWaitTime", *params.SplitByWaitTime) } @@ -898,18 +922,19 @@ func (c *DefaultApiService) FetchTaskQueueStatistics(workspaceSid string, taskQu /* FetchTaskReservation Method for FetchTaskReservation - * @param workspaceSid The SID of the Workspace with the TaskReservation resource to fetch. - * @param taskSid The SID of the reserved Task resource with the TaskReservation resource to fetch. - * @param sid The SID of the TaskReservation resource to fetch. + * @param WorkspaceSid The SID of the Workspace with the TaskReservation resource to fetch. + * @param TaskSid The SID of the reserved Task resource with the TaskReservation resource to fetch. + * @param Sid The SID of the TaskReservation resource to fetch. @return TaskrouterV1WorkspaceTaskTaskReservation */ -func (c *DefaultApiService) FetchTaskReservation(workspaceSid string, taskSid string, sid string) (*TaskrouterV1WorkspaceTaskTaskReservation, error) { +func (c *DefaultApiService) FetchTaskReservation(WorkspaceSid string, TaskSid string, Sid string) (*TaskrouterV1WorkspaceTaskTaskReservation, error) { path := "/v1/Workspaces/{WorkspaceSid}/Tasks/{TaskSid}/Reservations/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", TaskSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -931,16 +956,17 @@ func (c *DefaultApiService) FetchTaskReservation(workspaceSid string, taskSid st /* FetchWorker Method for FetchWorker - * @param workspaceSid The SID of the Workspace with the Worker to fetch. - * @param sid The SID of the Worker resource to fetch. + * @param WorkspaceSid The SID of the Workspace with the Worker to fetch. + * @param Sid The SID of the Worker resource to fetch. @return TaskrouterV1WorkspaceWorker */ -func (c *DefaultApiService) FetchWorker(workspaceSid string, sid string) (*TaskrouterV1WorkspaceWorker, error) { +func (c *DefaultApiService) FetchWorker(WorkspaceSid string, Sid string) (*TaskrouterV1WorkspaceWorker, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -962,18 +988,19 @@ func (c *DefaultApiService) FetchWorker(workspaceSid string, sid string) (*Taskr /* FetchWorkerChannel Method for FetchWorkerChannel - * @param workspaceSid The SID of the Workspace with the WorkerChannel to fetch. - * @param workerSid The SID of the Worker with the WorkerChannel to fetch. - * @param sid The SID of the WorkerChannel to fetch. + * @param WorkspaceSid The SID of the Workspace with the WorkerChannel to fetch. + * @param WorkerSid The SID of the Worker with the WorkerChannel to fetch. + * @param Sid The SID of the WorkerChannel to fetch. @return TaskrouterV1WorkspaceWorkerWorkerChannel */ -func (c *DefaultApiService) FetchWorkerChannel(workspaceSid string, workerSid string, sid string) (*TaskrouterV1WorkspaceWorkerWorkerChannel, error) { +func (c *DefaultApiService) FetchWorkerChannel(WorkspaceSid string, WorkerSid string, Sid string) (*TaskrouterV1WorkspaceWorkerWorkerChannel, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Channels/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"WorkerSid"+"}", workerSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + path = strings.Replace(path, "{"+"WorkerSid"+"}", WorkerSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1002,8 +1029,8 @@ type FetchWorkerInstanceStatisticsParams struct { /* FetchWorkerInstanceStatistics Method for FetchWorkerInstanceStatistics - * @param workspaceSid The SID of the Workspace with the WorkerChannel to fetch. - * @param workerSid The SID of the Worker with the WorkerChannel to fetch. + * @param WorkspaceSid The SID of the Workspace with the WorkerChannel to fetch. + * @param WorkerSid The SID of the Worker with the WorkerChannel to fetch. * @param optional nil or *FetchWorkerInstanceStatisticsOpts - Optional Parameters: * @param "Minutes" (int32) - Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. * @param "StartDate" (time.Time) - Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. @@ -1011,25 +1038,26 @@ FetchWorkerInstanceStatistics Method for FetchWorkerInstanceStatistics * @param "TaskChannel" (string) - Only calculate statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. @return TaskrouterV1WorkspaceWorkerWorkerInstanceStatistics */ -func (c *DefaultApiService) FetchWorkerInstanceStatistics(workspaceSid string, workerSid string, params *FetchWorkerInstanceStatisticsParams) (*TaskrouterV1WorkspaceWorkerWorkerInstanceStatistics, error) { +func (c *DefaultApiService) FetchWorkerInstanceStatistics(WorkspaceSid string, WorkerSid string, params *FetchWorkerInstanceStatisticsParams) (*TaskrouterV1WorkspaceWorkerWorkerInstanceStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Statistics" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"WorkerSid"+"}", workerSid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + path = strings.Replace(path, "{"+"WorkerSid"+"}", WorkerSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Minutes != nil { - data.Set("Minutes", string(*params.Minutes)) + data.Set("Minutes", fmt.Sprint(*params.Minutes)) } if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) + data.Set("StartDate", fmt.Sprint(*params.StartDate)) } if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) + data.Set("EndDate", fmt.Sprint(*params.EndDate)) } if params != nil && params.TaskChannel != nil { - data.Set("TaskChannel", *params.TaskChannel) + data.Set("TaskChannel", *params.TaskChannel) } @@ -1050,18 +1078,19 @@ func (c *DefaultApiService) FetchWorkerInstanceStatistics(workspaceSid string, w /* FetchWorkerReservation Method for FetchWorkerReservation - * @param workspaceSid The SID of the Workspace with the WorkerReservation resource to fetch. - * @param workerSid The SID of the reserved Worker resource with the WorkerReservation resource to fetch. - * @param sid The SID of the WorkerReservation resource to fetch. + * @param WorkspaceSid The SID of the Workspace with the WorkerReservation resource to fetch. + * @param WorkerSid The SID of the reserved Worker resource with the WorkerReservation resource to fetch. + * @param Sid The SID of the WorkerReservation resource to fetch. @return TaskrouterV1WorkspaceWorkerWorkerReservation */ -func (c *DefaultApiService) FetchWorkerReservation(workspaceSid string, workerSid string, sid string) (*TaskrouterV1WorkspaceWorkerWorkerReservation, error) { +func (c *DefaultApiService) FetchWorkerReservation(WorkspaceSid string, WorkerSid string, Sid string) (*TaskrouterV1WorkspaceWorkerWorkerReservation, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Reservations/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"WorkerSid"+"}", workerSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + path = strings.Replace(path, "{"+"WorkerSid"+"}", WorkerSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1093,7 +1122,7 @@ type FetchWorkerStatisticsParams struct { /* FetchWorkerStatistics Method for FetchWorkerStatistics - * @param workspaceSid The SID of the Workspace with the Worker to fetch. + * @param WorkspaceSid The SID of the Workspace with the Worker to fetch. * @param optional nil or *FetchWorkerStatisticsOpts - Optional Parameters: * @param "Minutes" (int32) - Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. * @param "StartDate" (time.Time) - Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. @@ -1104,33 +1133,34 @@ FetchWorkerStatistics Method for FetchWorkerStatistics * @param "TaskChannel" (string) - Only calculate statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. @return TaskrouterV1WorkspaceWorkerWorkerStatistics */ -func (c *DefaultApiService) FetchWorkerStatistics(workspaceSid string, params *FetchWorkerStatisticsParams) (*TaskrouterV1WorkspaceWorkerWorkerStatistics, error) { +func (c *DefaultApiService) FetchWorkerStatistics(WorkspaceSid string, params *FetchWorkerStatisticsParams) (*TaskrouterV1WorkspaceWorkerWorkerStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/Statistics" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Minutes != nil { - data.Set("Minutes", string(*params.Minutes)) + data.Set("Minutes", fmt.Sprint(*params.Minutes)) } if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) + data.Set("StartDate", fmt.Sprint(*params.StartDate)) } if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) + data.Set("EndDate", fmt.Sprint(*params.EndDate)) } if params != nil && params.TaskQueueSid != nil { - data.Set("TaskQueueSid", *params.TaskQueueSid) + data.Set("TaskQueueSid", *params.TaskQueueSid) } if params != nil && params.TaskQueueName != nil { - data.Set("TaskQueueName", *params.TaskQueueName) + data.Set("TaskQueueName", *params.TaskQueueName) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.TaskChannel != nil { - data.Set("TaskChannel", *params.TaskChannel) + data.Set("TaskChannel", *params.TaskChannel) } @@ -1158,7 +1188,7 @@ type FetchWorkersCumulativeStatisticsParams struct { /* FetchWorkersCumulativeStatistics Method for FetchWorkersCumulativeStatistics - * @param workspaceSid The SID of the Workspace with the resource to fetch. + * @param WorkspaceSid The SID of the Workspace with the resource to fetch. * @param optional nil or *FetchWorkersCumulativeStatisticsOpts - Optional Parameters: * @param "EndDate" (time.Time) - Only calculate statistics from this date and time and earlier, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. * @param "Minutes" (int32) - Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. @@ -1166,24 +1196,25 @@ FetchWorkersCumulativeStatistics Method for FetchWorkersCumulativeStatistics * @param "TaskChannel" (string) - Only calculate cumulative statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. @return TaskrouterV1WorkspaceWorkerWorkersCumulativeStatistics */ -func (c *DefaultApiService) FetchWorkersCumulativeStatistics(workspaceSid string, params *FetchWorkersCumulativeStatisticsParams) (*TaskrouterV1WorkspaceWorkerWorkersCumulativeStatistics, error) { +func (c *DefaultApiService) FetchWorkersCumulativeStatistics(WorkspaceSid string, params *FetchWorkersCumulativeStatisticsParams) (*TaskrouterV1WorkspaceWorkerWorkersCumulativeStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/CumulativeStatistics" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) + data.Set("EndDate", fmt.Sprint(*params.EndDate)) } if params != nil && params.Minutes != nil { - data.Set("Minutes", string(*params.Minutes)) + data.Set("Minutes", fmt.Sprint(*params.Minutes)) } if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) + data.Set("StartDate", fmt.Sprint(*params.StartDate)) } if params != nil && params.TaskChannel != nil { - data.Set("TaskChannel", *params.TaskChannel) + data.Set("TaskChannel", *params.TaskChannel) } @@ -1208,20 +1239,21 @@ type FetchWorkersRealTimeStatisticsParams struct { /* FetchWorkersRealTimeStatistics Method for FetchWorkersRealTimeStatistics - * @param workspaceSid The SID of the Workspace with the resource to fetch. + * @param WorkspaceSid The SID of the Workspace with the resource to fetch. * @param optional nil or *FetchWorkersRealTimeStatisticsOpts - Optional Parameters: * @param "TaskChannel" (string) - Only calculate real-time statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. @return TaskrouterV1WorkspaceWorkerWorkersRealTimeStatistics */ -func (c *DefaultApiService) FetchWorkersRealTimeStatistics(workspaceSid string, params *FetchWorkersRealTimeStatisticsParams) (*TaskrouterV1WorkspaceWorkerWorkersRealTimeStatistics, error) { +func (c *DefaultApiService) FetchWorkersRealTimeStatistics(WorkspaceSid string, params *FetchWorkersRealTimeStatisticsParams) (*TaskrouterV1WorkspaceWorkerWorkersRealTimeStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/RealTimeStatistics" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.TaskChannel != nil { - data.Set("TaskChannel", *params.TaskChannel) + data.Set("TaskChannel", *params.TaskChannel) } @@ -1242,16 +1274,17 @@ func (c *DefaultApiService) FetchWorkersRealTimeStatistics(workspaceSid string, /* FetchWorkflow Method for FetchWorkflow - * @param workspaceSid The SID of the Workspace with the Workflow to fetch. - * @param sid The SID of the Workflow resource to fetch. + * @param WorkspaceSid The SID of the Workspace with the Workflow to fetch. + * @param Sid The SID of the Workflow resource to fetch. @return TaskrouterV1WorkspaceWorkflow */ -func (c *DefaultApiService) FetchWorkflow(workspaceSid string, sid string) (*TaskrouterV1WorkspaceWorkflow, error) { +func (c *DefaultApiService) FetchWorkflow(WorkspaceSid string, Sid string) (*TaskrouterV1WorkspaceWorkflow, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workflows/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1281,8 +1314,8 @@ type FetchWorkflowCumulativeStatisticsParams struct { /* FetchWorkflowCumulativeStatistics Method for FetchWorkflowCumulativeStatistics - * @param workspaceSid The SID of the Workspace with the resource to fetch. - * @param workflowSid Returns the list of Tasks that are being controlled by the Workflow with the specified Sid value. + * @param WorkspaceSid The SID of the Workspace with the resource to fetch. + * @param WorkflowSid Returns the list of Tasks that are being controlled by the Workflow with the specified Sid value. * @param optional nil or *FetchWorkflowCumulativeStatisticsOpts - Optional Parameters: * @param "EndDate" (time.Time) - Only include usage that occurred on or before this date, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. * @param "Minutes" (int32) - Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. @@ -1291,28 +1324,29 @@ FetchWorkflowCumulativeStatistics Method for FetchWorkflowCumulativeStatistics * @param "SplitByWaitTime" (string) - A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. For example, `5,30` would show splits of Tasks that were canceled or accepted before and after 5 seconds and before and after 30 seconds. This can be used to show short abandoned Tasks or Tasks that failed to meet an SLA. @return TaskrouterV1WorkspaceWorkflowWorkflowCumulativeStatistics */ -func (c *DefaultApiService) FetchWorkflowCumulativeStatistics(workspaceSid string, workflowSid string, params *FetchWorkflowCumulativeStatisticsParams) (*TaskrouterV1WorkspaceWorkflowWorkflowCumulativeStatistics, error) { +func (c *DefaultApiService) FetchWorkflowCumulativeStatistics(WorkspaceSid string, WorkflowSid string, params *FetchWorkflowCumulativeStatisticsParams) (*TaskrouterV1WorkspaceWorkflowWorkflowCumulativeStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workflows/{WorkflowSid}/CumulativeStatistics" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"WorkflowSid"+"}", workflowSid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + path = strings.Replace(path, "{"+"WorkflowSid"+"}", WorkflowSid, -1) + data := url.Values{} headers := 0 if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) + data.Set("EndDate", fmt.Sprint(*params.EndDate)) } if params != nil && params.Minutes != nil { - data.Set("Minutes", string(*params.Minutes)) + data.Set("Minutes", fmt.Sprint(*params.Minutes)) } if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) + data.Set("StartDate", fmt.Sprint(*params.StartDate)) } if params != nil && params.TaskChannel != nil { - data.Set("TaskChannel", *params.TaskChannel) + data.Set("TaskChannel", *params.TaskChannel) } if params != nil && params.SplitByWaitTime != nil { - data.Set("SplitByWaitTime", *params.SplitByWaitTime) + data.Set("SplitByWaitTime", *params.SplitByWaitTime) } @@ -1337,22 +1371,23 @@ type FetchWorkflowRealTimeStatisticsParams struct { /* FetchWorkflowRealTimeStatistics Method for FetchWorkflowRealTimeStatistics - * @param workspaceSid The SID of the Workspace with the Workflow to fetch. - * @param workflowSid Returns the list of Tasks that are being controlled by the Workflow with the specified SID value. + * @param WorkspaceSid The SID of the Workspace with the Workflow to fetch. + * @param WorkflowSid Returns the list of Tasks that are being controlled by the Workflow with the specified SID value. * @param optional nil or *FetchWorkflowRealTimeStatisticsOpts - Optional Parameters: * @param "TaskChannel" (string) - Only calculate real-time statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. @return TaskrouterV1WorkspaceWorkflowWorkflowRealTimeStatistics */ -func (c *DefaultApiService) FetchWorkflowRealTimeStatistics(workspaceSid string, workflowSid string, params *FetchWorkflowRealTimeStatisticsParams) (*TaskrouterV1WorkspaceWorkflowWorkflowRealTimeStatistics, error) { +func (c *DefaultApiService) FetchWorkflowRealTimeStatistics(WorkspaceSid string, WorkflowSid string, params *FetchWorkflowRealTimeStatisticsParams) (*TaskrouterV1WorkspaceWorkflowWorkflowRealTimeStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workflows/{WorkflowSid}/RealTimeStatistics" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"WorkflowSid"+"}", workflowSid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + path = strings.Replace(path, "{"+"WorkflowSid"+"}", WorkflowSid, -1) + data := url.Values{} headers := 0 if params != nil && params.TaskChannel != nil { - data.Set("TaskChannel", *params.TaskChannel) + data.Set("TaskChannel", *params.TaskChannel) } @@ -1381,8 +1416,8 @@ type FetchWorkflowStatisticsParams struct { /* FetchWorkflowStatistics Method for FetchWorkflowStatistics - * @param workspaceSid The SID of the Workspace with the Workflow to fetch. - * @param workflowSid Returns the list of Tasks that are being controlled by the Workflow with the specified SID value. + * @param WorkspaceSid The SID of the Workspace with the Workflow to fetch. + * @param WorkflowSid Returns the list of Tasks that are being controlled by the Workflow with the specified SID value. * @param optional nil or *FetchWorkflowStatisticsOpts - Optional Parameters: * @param "Minutes" (int32) - Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. * @param "StartDate" (time.Time) - Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. @@ -1391,28 +1426,29 @@ FetchWorkflowStatistics Method for FetchWorkflowStatistics * @param "SplitByWaitTime" (string) - A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. For example, `5,30` would show splits of Tasks that were canceled or accepted before and after 5 seconds and before and after 30 seconds. This can be used to show short abandoned Tasks or Tasks that failed to meet an SLA. @return TaskrouterV1WorkspaceWorkflowWorkflowStatistics */ -func (c *DefaultApiService) FetchWorkflowStatistics(workspaceSid string, workflowSid string, params *FetchWorkflowStatisticsParams) (*TaskrouterV1WorkspaceWorkflowWorkflowStatistics, error) { +func (c *DefaultApiService) FetchWorkflowStatistics(WorkspaceSid string, WorkflowSid string, params *FetchWorkflowStatisticsParams) (*TaskrouterV1WorkspaceWorkflowWorkflowStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workflows/{WorkflowSid}/Statistics" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"WorkflowSid"+"}", workflowSid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + path = strings.Replace(path, "{"+"WorkflowSid"+"}", WorkflowSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Minutes != nil { - data.Set("Minutes", string(*params.Minutes)) + data.Set("Minutes", fmt.Sprint(*params.Minutes)) } if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) + data.Set("StartDate", fmt.Sprint(*params.StartDate)) } if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) + data.Set("EndDate", fmt.Sprint(*params.EndDate)) } if params != nil && params.TaskChannel != nil { - data.Set("TaskChannel", *params.TaskChannel) + data.Set("TaskChannel", *params.TaskChannel) } if params != nil && params.SplitByWaitTime != nil { - data.Set("SplitByWaitTime", *params.SplitByWaitTime) + data.Set("SplitByWaitTime", *params.SplitByWaitTime) } @@ -1433,14 +1469,15 @@ func (c *DefaultApiService) FetchWorkflowStatistics(workspaceSid string, workflo /* FetchWorkspace Method for FetchWorkspace - * @param sid The SID of the Workspace resource to fetch. + * @param Sid The SID of the Workspace resource to fetch. @return TaskrouterV1Workspace */ -func (c *DefaultApiService) FetchWorkspace(sid string) (*TaskrouterV1Workspace, error) { +func (c *DefaultApiService) FetchWorkspace(Sid string) (*TaskrouterV1Workspace, error) { path := "/v1/Workspaces/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -1470,7 +1507,7 @@ type FetchWorkspaceCumulativeStatisticsParams struct { /* FetchWorkspaceCumulativeStatistics Method for FetchWorkspaceCumulativeStatistics - * @param workspaceSid The SID of the Workspace to fetch. + * @param WorkspaceSid The SID of the Workspace to fetch. * @param optional nil or *FetchWorkspaceCumulativeStatisticsOpts - Optional Parameters: * @param "EndDate" (time.Time) - Only include usage that occurred on or before this date, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. * @param "Minutes" (int32) - Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. @@ -1479,27 +1516,28 @@ FetchWorkspaceCumulativeStatistics Method for FetchWorkspaceCumulativeStatistics * @param "SplitByWaitTime" (string) - A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. For example, `5,30` would show splits of Tasks that were canceled or accepted before and after 5 seconds and before and after 30 seconds. This can be used to show short abandoned Tasks or Tasks that failed to meet an SLA. @return TaskrouterV1WorkspaceWorkspaceCumulativeStatistics */ -func (c *DefaultApiService) FetchWorkspaceCumulativeStatistics(workspaceSid string, params *FetchWorkspaceCumulativeStatisticsParams) (*TaskrouterV1WorkspaceWorkspaceCumulativeStatistics, error) { +func (c *DefaultApiService) FetchWorkspaceCumulativeStatistics(WorkspaceSid string, params *FetchWorkspaceCumulativeStatisticsParams) (*TaskrouterV1WorkspaceWorkspaceCumulativeStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/CumulativeStatistics" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) + data.Set("EndDate", fmt.Sprint(*params.EndDate)) } if params != nil && params.Minutes != nil { - data.Set("Minutes", string(*params.Minutes)) + data.Set("Minutes", fmt.Sprint(*params.Minutes)) } if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) + data.Set("StartDate", fmt.Sprint(*params.StartDate)) } if params != nil && params.TaskChannel != nil { - data.Set("TaskChannel", *params.TaskChannel) + data.Set("TaskChannel", *params.TaskChannel) } if params != nil && params.SplitByWaitTime != nil { - data.Set("SplitByWaitTime", *params.SplitByWaitTime) + data.Set("SplitByWaitTime", *params.SplitByWaitTime) } @@ -1524,20 +1562,21 @@ type FetchWorkspaceRealTimeStatisticsParams struct { /* FetchWorkspaceRealTimeStatistics Method for FetchWorkspaceRealTimeStatistics - * @param workspaceSid The SID of the Workspace to fetch. + * @param WorkspaceSid The SID of the Workspace to fetch. * @param optional nil or *FetchWorkspaceRealTimeStatisticsOpts - Optional Parameters: * @param "TaskChannel" (string) - Only calculate real-time statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. @return TaskrouterV1WorkspaceWorkspaceRealTimeStatistics */ -func (c *DefaultApiService) FetchWorkspaceRealTimeStatistics(workspaceSid string, params *FetchWorkspaceRealTimeStatisticsParams) (*TaskrouterV1WorkspaceWorkspaceRealTimeStatistics, error) { +func (c *DefaultApiService) FetchWorkspaceRealTimeStatistics(WorkspaceSid string, params *FetchWorkspaceRealTimeStatisticsParams) (*TaskrouterV1WorkspaceWorkspaceRealTimeStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/RealTimeStatistics" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.TaskChannel != nil { - data.Set("TaskChannel", *params.TaskChannel) + data.Set("TaskChannel", *params.TaskChannel) } @@ -1566,7 +1605,7 @@ type FetchWorkspaceStatisticsParams struct { /* FetchWorkspaceStatistics Method for FetchWorkspaceStatistics - * @param workspaceSid The SID of the Workspace to fetch. + * @param WorkspaceSid The SID of the Workspace to fetch. * @param optional nil or *FetchWorkspaceStatisticsOpts - Optional Parameters: * @param "Minutes" (int32) - Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. * @param "StartDate" (time.Time) - Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. @@ -1575,27 +1614,28 @@ FetchWorkspaceStatistics Method for FetchWorkspaceStatistics * @param "SplitByWaitTime" (string) - A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. For example, `5,30` would show splits of Tasks that were canceled or accepted before and after 5 seconds and before and after 30 seconds. This can be used to show short abandoned Tasks or Tasks that failed to meet an SLA. @return TaskrouterV1WorkspaceWorkspaceStatistics */ -func (c *DefaultApiService) FetchWorkspaceStatistics(workspaceSid string, params *FetchWorkspaceStatisticsParams) (*TaskrouterV1WorkspaceWorkspaceStatistics, error) { +func (c *DefaultApiService) FetchWorkspaceStatistics(WorkspaceSid string, params *FetchWorkspaceStatisticsParams) (*TaskrouterV1WorkspaceWorkspaceStatistics, error) { path := "/v1/Workspaces/{WorkspaceSid}/Statistics" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Minutes != nil { - data.Set("Minutes", string(*params.Minutes)) + data.Set("Minutes", fmt.Sprint(*params.Minutes)) } if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) + data.Set("StartDate", fmt.Sprint(*params.StartDate)) } if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) + data.Set("EndDate", fmt.Sprint(*params.EndDate)) } if params != nil && params.TaskChannel != nil { - data.Set("TaskChannel", *params.TaskChannel) + data.Set("TaskChannel", *params.TaskChannel) } if params != nil && params.SplitByWaitTime != nil { - data.Set("SplitByWaitTime", *params.SplitByWaitTime) + data.Set("SplitByWaitTime", *params.SplitByWaitTime) } @@ -1622,28 +1662,29 @@ type ListActivityParams struct { /* ListActivity Method for ListActivity - * @param workspaceSid The SID of the Workspace with the Activity resources to read. + * @param WorkspaceSid The SID of the Workspace with the Activity resources to read. * @param optional nil or *ListActivityOpts - Optional Parameters: * @param "FriendlyName" (string) - The `friendly_name` of the Activity resources to read. * @param "Available" (string) - Whether return only Activity resources that are available or unavailable. A value of `true` returns only available activities. Values of '1' or `yes` also indicate `true`. All other values represent `false` and return activities that are unavailable. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return TaskrouterV1WorkspaceActivityReadResponse */ -func (c *DefaultApiService) ListActivity(workspaceSid string, params *ListActivityParams) (*TaskrouterV1WorkspaceActivityReadResponse, error) { +func (c *DefaultApiService) ListActivity(WorkspaceSid string, params *ListActivityParams) (*TaskrouterV1WorkspaceActivityReadResponse, error) { path := "/v1/Workspaces/{WorkspaceSid}/Activities" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Available != nil { - data.Set("Available", *params.Available) + data.Set("Available", *params.Available) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1679,7 +1720,7 @@ type ListEventParams struct { /* ListEvent Method for ListEvent - * @param workspaceSid The SID of the Workspace with the Events to read. Returns only the Events that pertain to the specified Workspace. + * @param WorkspaceSid The SID of the Workspace with the Events to read. Returns only the Events that pertain to the specified Workspace. * @param optional nil or *ListEventOpts - Optional Parameters: * @param "EndDate" (time.Time) - Only include Events that occurred on or before this date, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. * @param "EventType" (string) - The type of Events to read. Returns only Events of the type specified. @@ -1695,48 +1736,49 @@ ListEvent Method for ListEvent * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return TaskrouterV1WorkspaceEventReadResponse */ -func (c *DefaultApiService) ListEvent(workspaceSid string, params *ListEventParams) (*TaskrouterV1WorkspaceEventReadResponse, error) { +func (c *DefaultApiService) ListEvent(WorkspaceSid string, params *ListEventParams) (*TaskrouterV1WorkspaceEventReadResponse, error) { path := "/v1/Workspaces/{WorkspaceSid}/Events" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) + data.Set("EndDate", fmt.Sprint(*params.EndDate)) } if params != nil && params.EventType != nil { - data.Set("EventType", *params.EventType) + data.Set("EventType", *params.EventType) } if params != nil && params.Minutes != nil { - data.Set("Minutes", string(*params.Minutes)) + data.Set("Minutes", fmt.Sprint(*params.Minutes)) } if params != nil && params.ReservationSid != nil { - data.Set("ReservationSid", *params.ReservationSid) + data.Set("ReservationSid", *params.ReservationSid) } if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) + data.Set("StartDate", fmt.Sprint(*params.StartDate)) } if params != nil && params.TaskQueueSid != nil { - data.Set("TaskQueueSid", *params.TaskQueueSid) + data.Set("TaskQueueSid", *params.TaskQueueSid) } if params != nil && params.TaskSid != nil { - data.Set("TaskSid", *params.TaskSid) + data.Set("TaskSid", *params.TaskSid) } if params != nil && params.WorkerSid != nil { - data.Set("WorkerSid", *params.WorkerSid) + data.Set("WorkerSid", *params.WorkerSid) } if params != nil && params.WorkflowSid != nil { - data.Set("WorkflowSid", *params.WorkflowSid) + data.Set("WorkflowSid", *params.WorkflowSid) } if params != nil && params.TaskChannel != nil { - data.Set("TaskChannel", *params.TaskChannel) + data.Set("TaskChannel", *params.TaskChannel) } if params != nil && params.Sid != nil { - data.Set("Sid", *params.Sid) + data.Set("Sid", *params.Sid) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1770,7 +1812,7 @@ type ListTaskParams struct { /* ListTask Method for ListTask - * @param workspaceSid The SID of the Workspace with the Tasks to read. + * @param WorkspaceSid The SID of the Workspace with the Tasks to read. * @param optional nil or *ListTaskOpts - Optional Parameters: * @param "Priority" (int32) - The priority value of the Tasks to read. Returns the list of all Tasks in the Workspace with the specified priority. * @param "AssignmentStatus" ([]string) - The `assignment_status` of the Tasks you want to read. Can be: `pending`, `reserved`, `assigned`, `canceled`, `wrapping`, or `completed`. Returns all Tasks in the Workspace with the specified `assignment_status`. @@ -1784,42 +1826,43 @@ ListTask Method for ListTask * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return TaskrouterV1WorkspaceTaskReadResponse */ -func (c *DefaultApiService) ListTask(workspaceSid string, params *ListTaskParams) (*TaskrouterV1WorkspaceTaskReadResponse, error) { +func (c *DefaultApiService) ListTask(WorkspaceSid string, params *ListTaskParams) (*TaskrouterV1WorkspaceTaskReadResponse, error) { path := "/v1/Workspaces/{WorkspaceSid}/Tasks" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Priority != nil { - data.Set("Priority", string(*params.Priority)) + data.Set("Priority", fmt.Sprint(*params.Priority)) } if params != nil && params.AssignmentStatus != nil { - data.Set("AssignmentStatus", string(*params.AssignmentStatus)) + data.Set("AssignmentStatus", strings.Join(*params.AssignmentStatus, ",")) } if params != nil && params.WorkflowSid != nil { - data.Set("WorkflowSid", *params.WorkflowSid) + data.Set("WorkflowSid", *params.WorkflowSid) } if params != nil && params.WorkflowName != nil { - data.Set("WorkflowName", *params.WorkflowName) + data.Set("WorkflowName", *params.WorkflowName) } if params != nil && params.TaskQueueSid != nil { - data.Set("TaskQueueSid", *params.TaskQueueSid) + data.Set("TaskQueueSid", *params.TaskQueueSid) } if params != nil && params.TaskQueueName != nil { - data.Set("TaskQueueName", *params.TaskQueueName) + data.Set("TaskQueueName", *params.TaskQueueName) } if params != nil && params.EvaluateTaskAttributes != nil { - data.Set("EvaluateTaskAttributes", *params.EvaluateTaskAttributes) + data.Set("EvaluateTaskAttributes", *params.EvaluateTaskAttributes) } if params != nil && params.Ordering != nil { - data.Set("Ordering", *params.Ordering) + data.Set("Ordering", *params.Ordering) } if params != nil && params.HasAddons != nil { - data.Set("HasAddons", string(*params.HasAddons)) + data.Set("HasAddons", fmt.Sprint(*params.HasAddons)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1844,20 +1887,21 @@ type ListTaskChannelParams struct { /* ListTaskChannel Method for ListTaskChannel - * @param workspaceSid The SID of the Workspace with the Task Channel to read. + * @param WorkspaceSid The SID of the Workspace with the Task Channel to read. * @param optional nil or *ListTaskChannelOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return TaskrouterV1WorkspaceTaskChannelReadResponse */ -func (c *DefaultApiService) ListTaskChannel(workspaceSid string, params *ListTaskChannelParams) (*TaskrouterV1WorkspaceTaskChannelReadResponse, error) { +func (c *DefaultApiService) ListTaskChannel(WorkspaceSid string, params *ListTaskChannelParams) (*TaskrouterV1WorkspaceTaskChannelReadResponse, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskChannels" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1885,7 +1929,7 @@ type ListTaskQueueParams struct { /* ListTaskQueue Method for ListTaskQueue - * @param workspaceSid The SID of the Workspace with the TaskQueue to read. + * @param WorkspaceSid The SID of the Workspace with the TaskQueue to read. * @param optional nil or *ListTaskQueueOpts - Optional Parameters: * @param "FriendlyName" (string) - The `friendly_name` of the TaskQueue resources to read. * @param "EvaluateWorkerAttributes" (string) - The attributes of the Workers to read. Returns the TaskQueues with Workers that match the attributes specified in this parameter. @@ -1893,24 +1937,25 @@ ListTaskQueue Method for ListTaskQueue * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return TaskrouterV1WorkspaceTaskQueueReadResponse */ -func (c *DefaultApiService) ListTaskQueue(workspaceSid string, params *ListTaskQueueParams) (*TaskrouterV1WorkspaceTaskQueueReadResponse, error) { +func (c *DefaultApiService) ListTaskQueue(WorkspaceSid string, params *ListTaskQueueParams) (*TaskrouterV1WorkspaceTaskQueueReadResponse, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.EvaluateWorkerAttributes != nil { - data.Set("EvaluateWorkerAttributes", *params.EvaluateWorkerAttributes) + data.Set("EvaluateWorkerAttributes", *params.EvaluateWorkerAttributes) } if params != nil && params.WorkerSid != nil { - data.Set("WorkerSid", *params.WorkerSid) + data.Set("WorkerSid", *params.WorkerSid) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1941,7 +1986,7 @@ type ListTaskQueuesStatisticsParams struct { /* ListTaskQueuesStatistics Method for ListTaskQueuesStatistics - * @param workspaceSid The SID of the Workspace with the TaskQueues to read. + * @param WorkspaceSid The SID of the Workspace with the TaskQueues to read. * @param optional nil or *ListTaskQueuesStatisticsOpts - Optional Parameters: * @param "EndDate" (time.Time) - Only calculate statistics from this date and time and earlier, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. * @param "FriendlyName" (string) - The `friendly_name` of the TaskQueue statistics to read. @@ -1952,33 +1997,34 @@ ListTaskQueuesStatistics Method for ListTaskQueuesStatistics * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse */ -func (c *DefaultApiService) ListTaskQueuesStatistics(workspaceSid string, params *ListTaskQueuesStatisticsParams) (*TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse, error) { +func (c *DefaultApiService) ListTaskQueuesStatistics(WorkspaceSid string, params *ListTaskQueuesStatisticsParams) (*TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/Statistics" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.EndDate != nil { - data.Set("EndDate", string(*params.EndDate)) + data.Set("EndDate", fmt.Sprint(*params.EndDate)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Minutes != nil { - data.Set("Minutes", string(*params.Minutes)) + data.Set("Minutes", fmt.Sprint(*params.Minutes)) } if params != nil && params.StartDate != nil { - data.Set("StartDate", string(*params.StartDate)) + data.Set("StartDate", fmt.Sprint(*params.StartDate)) } if params != nil && params.TaskChannel != nil { - data.Set("TaskChannel", *params.TaskChannel) + data.Set("TaskChannel", *params.TaskChannel) } if params != nil && params.SplitByWaitTime != nil { - data.Set("SplitByWaitTime", *params.SplitByWaitTime) + data.Set("SplitByWaitTime", *params.SplitByWaitTime) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -2004,26 +2050,27 @@ type ListTaskReservationParams struct { /* ListTaskReservation Method for ListTaskReservation - * @param workspaceSid The SID of the Workspace with the TaskReservation resources to read. - * @param taskSid The SID of the reserved Task resource with the TaskReservation resources to read. + * @param WorkspaceSid The SID of the Workspace with the TaskReservation resources to read. + * @param TaskSid The SID of the reserved Task resource with the TaskReservation resources to read. * @param optional nil or *ListTaskReservationOpts - Optional Parameters: * @param "ReservationStatus" (string) - Returns the list of reservations for a task with a specified ReservationStatus. Can be: `pending`, `accepted`, `rejected`, or `timeout`. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return TaskrouterV1WorkspaceTaskTaskReservationReadResponse */ -func (c *DefaultApiService) ListTaskReservation(workspaceSid string, taskSid string, params *ListTaskReservationParams) (*TaskrouterV1WorkspaceTaskTaskReservationReadResponse, error) { +func (c *DefaultApiService) ListTaskReservation(WorkspaceSid string, TaskSid string, params *ListTaskReservationParams) (*TaskrouterV1WorkspaceTaskTaskReservationReadResponse, error) { path := "/v1/Workspaces/{WorkspaceSid}/Tasks/{TaskSid}/Reservations" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", TaskSid, -1) + data := url.Values{} headers := 0 if params != nil && params.ReservationStatus != nil { - data.Set("ReservationStatus", *params.ReservationStatus) + data.Set("ReservationStatus", *params.ReservationStatus) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -2055,7 +2102,7 @@ type ListWorkerParams struct { /* ListWorker Method for ListWorker - * @param workspaceSid The SID of the Workspace with the Workers to read. + * @param WorkspaceSid The SID of the Workspace with the Workers to read. * @param optional nil or *ListWorkerOpts - Optional Parameters: * @param "ActivityName" (string) - The `activity_name` of the Worker resources to read. * @param "ActivitySid" (string) - The `activity_sid` of the Worker resources to read. @@ -2067,36 +2114,37 @@ ListWorker Method for ListWorker * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return TaskrouterV1WorkspaceWorkerReadResponse */ -func (c *DefaultApiService) ListWorker(workspaceSid string, params *ListWorkerParams) (*TaskrouterV1WorkspaceWorkerReadResponse, error) { +func (c *DefaultApiService) ListWorker(WorkspaceSid string, params *ListWorkerParams) (*TaskrouterV1WorkspaceWorkerReadResponse, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.ActivityName != nil { - data.Set("ActivityName", *params.ActivityName) + data.Set("ActivityName", *params.ActivityName) } if params != nil && params.ActivitySid != nil { - data.Set("ActivitySid", *params.ActivitySid) + data.Set("ActivitySid", *params.ActivitySid) } if params != nil && params.Available != nil { - data.Set("Available", *params.Available) + data.Set("Available", *params.Available) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.TargetWorkersExpression != nil { - data.Set("TargetWorkersExpression", *params.TargetWorkersExpression) + data.Set("TargetWorkersExpression", *params.TargetWorkersExpression) } if params != nil && params.TaskQueueName != nil { - data.Set("TaskQueueName", *params.TaskQueueName) + data.Set("TaskQueueName", *params.TaskQueueName) } if params != nil && params.TaskQueueSid != nil { - data.Set("TaskQueueSid", *params.TaskQueueSid) + data.Set("TaskQueueSid", *params.TaskQueueSid) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -2121,22 +2169,23 @@ type ListWorkerChannelParams struct { /* ListWorkerChannel Method for ListWorkerChannel - * @param workspaceSid The SID of the Workspace with the WorkerChannels to read. - * @param workerSid The SID of the Worker with the WorkerChannels to read. + * @param WorkspaceSid The SID of the Workspace with the WorkerChannels to read. + * @param WorkerSid The SID of the Worker with the WorkerChannels to read. * @param optional nil or *ListWorkerChannelOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse */ -func (c *DefaultApiService) ListWorkerChannel(workspaceSid string, workerSid string, params *ListWorkerChannelParams) (*TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse, error) { +func (c *DefaultApiService) ListWorkerChannel(WorkspaceSid string, WorkerSid string, params *ListWorkerChannelParams) (*TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Channels" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"WorkerSid"+"}", workerSid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + path = strings.Replace(path, "{"+"WorkerSid"+"}", WorkerSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -2162,26 +2211,27 @@ type ListWorkerReservationParams struct { /* ListWorkerReservation Method for ListWorkerReservation - * @param workspaceSid The SID of the Workspace with the WorkerReservation resources to read. - * @param workerSid The SID of the reserved Worker resource with the WorkerReservation resources to read. + * @param WorkspaceSid The SID of the Workspace with the WorkerReservation resources to read. + * @param WorkerSid The SID of the reserved Worker resource with the WorkerReservation resources to read. * @param optional nil or *ListWorkerReservationOpts - Optional Parameters: * @param "ReservationStatus" (string) - Returns the list of reservations for a worker with a specified ReservationStatus. Can be: `pending`, `accepted`, `rejected`, `timeout`, `canceled`, or `rescinded`. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse */ -func (c *DefaultApiService) ListWorkerReservation(workspaceSid string, workerSid string, params *ListWorkerReservationParams) (*TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse, error) { +func (c *DefaultApiService) ListWorkerReservation(WorkspaceSid string, WorkerSid string, params *ListWorkerReservationParams) (*TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Reservations" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"WorkerSid"+"}", workerSid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + path = strings.Replace(path, "{"+"WorkerSid"+"}", WorkerSid, -1) + data := url.Values{} headers := 0 if params != nil && params.ReservationStatus != nil { - data.Set("ReservationStatus", *params.ReservationStatus) + data.Set("ReservationStatus", *params.ReservationStatus) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -2207,24 +2257,25 @@ type ListWorkflowParams struct { /* ListWorkflow Method for ListWorkflow - * @param workspaceSid The SID of the Workspace with the Workflow to read. + * @param WorkspaceSid The SID of the Workspace with the Workflow to read. * @param optional nil or *ListWorkflowOpts - Optional Parameters: * @param "FriendlyName" (string) - The `friendly_name` of the Workflow resources to read. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return TaskrouterV1WorkspaceWorkflowReadResponse */ -func (c *DefaultApiService) ListWorkflow(workspaceSid string, params *ListWorkflowParams) (*TaskrouterV1WorkspaceWorkflowReadResponse, error) { +func (c *DefaultApiService) ListWorkflow(WorkspaceSid string, params *ListWorkflowParams) (*TaskrouterV1WorkspaceWorkflowReadResponse, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workflows" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -2258,14 +2309,15 @@ ListWorkspace Method for ListWorkspace func (c *DefaultApiService) ListWorkspace(params *ListWorkspaceParams) (*TaskrouterV1WorkspaceReadResponse, error) { path := "/v1/Workspaces" + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -2290,22 +2342,23 @@ type UpdateActivityParams struct { /* UpdateActivity Method for UpdateActivity - * @param workspaceSid The SID of the Workspace with the Activity resources to update. - * @param sid The SID of the Activity resource to update. + * @param WorkspaceSid The SID of the Workspace with the Activity resources to update. + * @param Sid The SID of the Activity resource to update. * @param optional nil or *UpdateActivityOpts - Optional Parameters: * @param "FriendlyName" (string) - A descriptive string that you create to describe the Activity resource. It can be up to 64 characters long. These names are used to calculate and expose statistics about Workers, and provide visibility into the state of each Worker. Examples of friendly names include: `on-call`, `break`, and `email`. @return TaskrouterV1WorkspaceActivity */ -func (c *DefaultApiService) UpdateActivity(workspaceSid string, sid string, params *UpdateActivityParams) (*TaskrouterV1WorkspaceActivity, error) { +func (c *DefaultApiService) UpdateActivity(WorkspaceSid string, Sid string, params *UpdateActivityParams) (*TaskrouterV1WorkspaceActivity, error) { path := "/v1/Workspaces/{WorkspaceSid}/Activities/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -2334,8 +2387,8 @@ type UpdateTaskParams struct { /* UpdateTask Method for UpdateTask - * @param workspaceSid The SID of the Workspace with the Task to update. - * @param sid The SID of the Task resource to update. + * @param WorkspaceSid The SID of the Workspace with the Task to update. + * @param Sid The SID of the Task resource to update. * @param optional nil or *UpdateTaskOpts - Optional Parameters: * @param "AssignmentStatus" (string) - The new status of the task. Can be: `canceled`, to cancel a Task that is currently `pending` or `reserved`; `wrapping`, to move the Task to wrapup state; or `completed`, to move a Task to the completed state. * @param "Attributes" (string) - The JSON string that describes the custom attributes of the task. @@ -2344,28 +2397,29 @@ UpdateTask Method for UpdateTask * @param "TaskChannel" (string) - When MultiTasking is enabled, specify the TaskChannel with the task to update. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. @return TaskrouterV1WorkspaceTask */ -func (c *DefaultApiService) UpdateTask(workspaceSid string, sid string, params *UpdateTaskParams) (*TaskrouterV1WorkspaceTask, error) { +func (c *DefaultApiService) UpdateTask(WorkspaceSid string, Sid string, params *UpdateTaskParams) (*TaskrouterV1WorkspaceTask, error) { path := "/v1/Workspaces/{WorkspaceSid}/Tasks/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.AssignmentStatus != nil { - data.Set("AssignmentStatus", *params.AssignmentStatus) + data.Set("AssignmentStatus", *params.AssignmentStatus) } if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.Priority != nil { - data.Set("Priority", string(*params.Priority)) + data.Set("Priority", fmt.Sprint(*params.Priority)) } if params != nil && params.Reason != nil { - data.Set("Reason", *params.Reason) + data.Set("Reason", *params.Reason) } if params != nil && params.TaskChannel != nil { - data.Set("TaskChannel", *params.TaskChannel) + data.Set("TaskChannel", *params.TaskChannel) } @@ -2391,26 +2445,27 @@ type UpdateTaskChannelParams struct { /* UpdateTaskChannel Method for UpdateTaskChannel - * @param workspaceSid The SID of the Workspace with the Task Channel to update. - * @param sid The SID of the Task Channel resource to update. + * @param WorkspaceSid The SID of the Workspace with the Task Channel to update. + * @param Sid The SID of the Task Channel resource to update. * @param optional nil or *UpdateTaskChannelOpts - Optional Parameters: * @param "ChannelOptimizedRouting" (bool) - Whether the TaskChannel should prioritize Workers that have been idle. If `true`, Workers that have been idle the longest are prioritized. * @param "FriendlyName" (string) - A descriptive string that you create to describe the Task Channel. It can be up to 64 characters long. @return TaskrouterV1WorkspaceTaskChannel */ -func (c *DefaultApiService) UpdateTaskChannel(workspaceSid string, sid string, params *UpdateTaskChannelParams) (*TaskrouterV1WorkspaceTaskChannel, error) { +func (c *DefaultApiService) UpdateTaskChannel(WorkspaceSid string, Sid string, params *UpdateTaskChannelParams) (*TaskrouterV1WorkspaceTaskChannel, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskChannels/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.ChannelOptimizedRouting != nil { - data.Set("ChannelOptimizedRouting", string(*params.ChannelOptimizedRouting)) + data.Set("ChannelOptimizedRouting", fmt.Sprint(*params.ChannelOptimizedRouting)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -2440,8 +2495,8 @@ type UpdateTaskQueueParams struct { /* UpdateTaskQueue Method for UpdateTaskQueue - * @param workspaceSid The SID of the Workspace with the TaskQueue to update. - * @param sid The SID of the TaskQueue resource to update. + * @param WorkspaceSid The SID of the Workspace with the TaskQueue to update. + * @param Sid The SID of the TaskQueue resource to update. * @param optional nil or *UpdateTaskQueueOpts - Optional Parameters: * @param "AssignmentActivitySid" (string) - The SID of the Activity to assign Workers when a task is assigned for them. * @param "FriendlyName" (string) - A descriptive string that you create to describe the TaskQueue. For example `Support-Tier 1`, `Sales`, or `Escalation`. @@ -2451,31 +2506,32 @@ UpdateTaskQueue Method for UpdateTaskQueue * @param "TaskOrder" (string) - How Tasks will be assigned to Workers. Can be: `FIFO` or `LIFO` and the default is `FIFO`. Use `FIFO` to assign the oldest task first and `LIFO` to assign the most recent task first. For more information, see [Queue Ordering](https://www.twilio.com/docs/taskrouter/queue-ordering-last-first-out-lifo). @return TaskrouterV1WorkspaceTaskQueue */ -func (c *DefaultApiService) UpdateTaskQueue(workspaceSid string, sid string, params *UpdateTaskQueueParams) (*TaskrouterV1WorkspaceTaskQueue, error) { +func (c *DefaultApiService) UpdateTaskQueue(WorkspaceSid string, Sid string, params *UpdateTaskQueueParams) (*TaskrouterV1WorkspaceTaskQueue, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.AssignmentActivitySid != nil { - data.Set("AssignmentActivitySid", *params.AssignmentActivitySid) + data.Set("AssignmentActivitySid", *params.AssignmentActivitySid) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.MaxReservedWorkers != nil { - data.Set("MaxReservedWorkers", string(*params.MaxReservedWorkers)) + data.Set("MaxReservedWorkers", fmt.Sprint(*params.MaxReservedWorkers)) } if params != nil && params.ReservationActivitySid != nil { - data.Set("ReservationActivitySid", *params.ReservationActivitySid) + data.Set("ReservationActivitySid", *params.ReservationActivitySid) } if params != nil && params.TargetWorkers != nil { - data.Set("TargetWorkers", *params.TargetWorkers) + data.Set("TargetWorkers", *params.TargetWorkers) } if params != nil && params.TaskOrder != nil { - data.Set("TaskOrder", *params.TaskOrder) + data.Set("TaskOrder", *params.TaskOrder) } @@ -2552,9 +2608,9 @@ type UpdateTaskReservationParams struct { /* UpdateTaskReservation Method for UpdateTaskReservation - * @param workspaceSid The SID of the Workspace with the TaskReservation resources to update. - * @param taskSid The SID of the reserved Task resource with the TaskReservation resources to update. - * @param sid The SID of the TaskReservation resource to update. + * @param WorkspaceSid The SID of the Workspace with the TaskReservation resources to update. + * @param TaskSid The SID of the reserved Task resource with the TaskReservation resources to update. + * @param Sid The SID of the TaskReservation resource to update. * @param optional nil or *UpdateTaskReservationOpts - Optional Parameters: * @param "Beep" (string) - Whether to play a notification beep when the participant joins or when to play a beep. Can be: `true`, `false`, `onEnter`, or `onExit`. The default value is `true`. * @param "BeepOnCustomerEntrance" (bool) - Whether to play a notification beep when the customer joins. @@ -2611,173 +2667,174 @@ UpdateTaskReservation Method for UpdateTaskReservation * @param "WorkerActivitySid" (string) - The new worker activity SID if rejecting a reservation. @return TaskrouterV1WorkspaceTaskTaskReservation */ -func (c *DefaultApiService) UpdateTaskReservation(workspaceSid string, taskSid string, sid string, params *UpdateTaskReservationParams) (*TaskrouterV1WorkspaceTaskTaskReservation, error) { +func (c *DefaultApiService) UpdateTaskReservation(WorkspaceSid string, TaskSid string, Sid string, params *UpdateTaskReservationParams) (*TaskrouterV1WorkspaceTaskTaskReservation, error) { path := "/v1/Workspaces/{WorkspaceSid}/Tasks/{TaskSid}/Reservations/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"TaskSid"+"}", taskSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + path = strings.Replace(path, "{"+"TaskSid"+"}", TaskSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.Beep != nil { - data.Set("Beep", *params.Beep) + data.Set("Beep", *params.Beep) } if params != nil && params.BeepOnCustomerEntrance != nil { - data.Set("BeepOnCustomerEntrance", string(*params.BeepOnCustomerEntrance)) + data.Set("BeepOnCustomerEntrance", fmt.Sprint(*params.BeepOnCustomerEntrance)) } if params != nil && params.CallAccept != nil { - data.Set("CallAccept", string(*params.CallAccept)) + data.Set("CallAccept", fmt.Sprint(*params.CallAccept)) } if params != nil && params.CallFrom != nil { - data.Set("CallFrom", *params.CallFrom) + data.Set("CallFrom", *params.CallFrom) } if params != nil && params.CallRecord != nil { - data.Set("CallRecord", *params.CallRecord) + data.Set("CallRecord", *params.CallRecord) } if params != nil && params.CallStatusCallbackUrl != nil { - data.Set("CallStatusCallbackUrl", *params.CallStatusCallbackUrl) + data.Set("CallStatusCallbackUrl", *params.CallStatusCallbackUrl) } if params != nil && params.CallTimeout != nil { - data.Set("CallTimeout", string(*params.CallTimeout)) + data.Set("CallTimeout", fmt.Sprint(*params.CallTimeout)) } if params != nil && params.CallTo != nil { - data.Set("CallTo", *params.CallTo) + data.Set("CallTo", *params.CallTo) } if params != nil && params.CallUrl != nil { - data.Set("CallUrl", *params.CallUrl) + data.Set("CallUrl", *params.CallUrl) } if params != nil && params.ConferenceRecord != nil { - data.Set("ConferenceRecord", *params.ConferenceRecord) + data.Set("ConferenceRecord", *params.ConferenceRecord) } if params != nil && params.ConferenceRecordingStatusCallback != nil { - data.Set("ConferenceRecordingStatusCallback", *params.ConferenceRecordingStatusCallback) + data.Set("ConferenceRecordingStatusCallback", *params.ConferenceRecordingStatusCallback) } if params != nil && params.ConferenceRecordingStatusCallbackMethod != nil { - data.Set("ConferenceRecordingStatusCallbackMethod", *params.ConferenceRecordingStatusCallbackMethod) + data.Set("ConferenceRecordingStatusCallbackMethod", *params.ConferenceRecordingStatusCallbackMethod) } if params != nil && params.ConferenceStatusCallback != nil { - data.Set("ConferenceStatusCallback", *params.ConferenceStatusCallback) + data.Set("ConferenceStatusCallback", *params.ConferenceStatusCallback) } if params != nil && params.ConferenceStatusCallbackEvent != nil { - data.Set("ConferenceStatusCallbackEvent", *params.ConferenceStatusCallbackEvent) + data.Set("ConferenceStatusCallbackEvent", strings.Join(*params.ConferenceStatusCallbackEvent, ",")) } if params != nil && params.ConferenceStatusCallbackMethod != nil { - data.Set("ConferenceStatusCallbackMethod", *params.ConferenceStatusCallbackMethod) + data.Set("ConferenceStatusCallbackMethod", *params.ConferenceStatusCallbackMethod) } if params != nil && params.ConferenceTrim != nil { - data.Set("ConferenceTrim", *params.ConferenceTrim) + data.Set("ConferenceTrim", *params.ConferenceTrim) } if params != nil && params.DequeueFrom != nil { - data.Set("DequeueFrom", *params.DequeueFrom) + data.Set("DequeueFrom", *params.DequeueFrom) } if params != nil && params.DequeuePostWorkActivitySid != nil { - data.Set("DequeuePostWorkActivitySid", *params.DequeuePostWorkActivitySid) + data.Set("DequeuePostWorkActivitySid", *params.DequeuePostWorkActivitySid) } if params != nil && params.DequeueRecord != nil { - data.Set("DequeueRecord", *params.DequeueRecord) + data.Set("DequeueRecord", *params.DequeueRecord) } if params != nil && params.DequeueStatusCallbackEvent != nil { - data.Set("DequeueStatusCallbackEvent", *params.DequeueStatusCallbackEvent) + data.Set("DequeueStatusCallbackEvent", strings.Join(*params.DequeueStatusCallbackEvent, ",")) } if params != nil && params.DequeueStatusCallbackUrl != nil { - data.Set("DequeueStatusCallbackUrl", *params.DequeueStatusCallbackUrl) + data.Set("DequeueStatusCallbackUrl", *params.DequeueStatusCallbackUrl) } if params != nil && params.DequeueTimeout != nil { - data.Set("DequeueTimeout", string(*params.DequeueTimeout)) + data.Set("DequeueTimeout", fmt.Sprint(*params.DequeueTimeout)) } if params != nil && params.DequeueTo != nil { - data.Set("DequeueTo", *params.DequeueTo) + data.Set("DequeueTo", *params.DequeueTo) } if params != nil && params.EarlyMedia != nil { - data.Set("EarlyMedia", string(*params.EarlyMedia)) + data.Set("EarlyMedia", fmt.Sprint(*params.EarlyMedia)) } if params != nil && params.EndConferenceOnCustomerExit != nil { - data.Set("EndConferenceOnCustomerExit", string(*params.EndConferenceOnCustomerExit)) + data.Set("EndConferenceOnCustomerExit", fmt.Sprint(*params.EndConferenceOnCustomerExit)) } if params != nil && params.EndConferenceOnExit != nil { - data.Set("EndConferenceOnExit", string(*params.EndConferenceOnExit)) + data.Set("EndConferenceOnExit", fmt.Sprint(*params.EndConferenceOnExit)) } if params != nil && params.From != nil { - data.Set("From", *params.From) + data.Set("From", *params.From) } if params != nil && params.Instruction != nil { - data.Set("Instruction", *params.Instruction) + data.Set("Instruction", *params.Instruction) } if params != nil && params.MaxParticipants != nil { - data.Set("MaxParticipants", string(*params.MaxParticipants)) + data.Set("MaxParticipants", fmt.Sprint(*params.MaxParticipants)) } if params != nil && params.Muted != nil { - data.Set("Muted", string(*params.Muted)) + data.Set("Muted", fmt.Sprint(*params.Muted)) } if params != nil && params.PostWorkActivitySid != nil { - data.Set("PostWorkActivitySid", *params.PostWorkActivitySid) + data.Set("PostWorkActivitySid", *params.PostWorkActivitySid) } if params != nil && params.Record != nil { - data.Set("Record", string(*params.Record)) + data.Set("Record", fmt.Sprint(*params.Record)) } if params != nil && params.RecordingChannels != nil { - data.Set("RecordingChannels", *params.RecordingChannels) + data.Set("RecordingChannels", *params.RecordingChannels) } if params != nil && params.RecordingStatusCallback != nil { - data.Set("RecordingStatusCallback", *params.RecordingStatusCallback) + data.Set("RecordingStatusCallback", *params.RecordingStatusCallback) } if params != nil && params.RecordingStatusCallbackMethod != nil { - data.Set("RecordingStatusCallbackMethod", *params.RecordingStatusCallbackMethod) + data.Set("RecordingStatusCallbackMethod", *params.RecordingStatusCallbackMethod) } if params != nil && params.RedirectAccept != nil { - data.Set("RedirectAccept", string(*params.RedirectAccept)) + data.Set("RedirectAccept", fmt.Sprint(*params.RedirectAccept)) } if params != nil && params.RedirectCallSid != nil { - data.Set("RedirectCallSid", *params.RedirectCallSid) + data.Set("RedirectCallSid", *params.RedirectCallSid) } if params != nil && params.RedirectUrl != nil { - data.Set("RedirectUrl", *params.RedirectUrl) + data.Set("RedirectUrl", *params.RedirectUrl) } if params != nil && params.Region != nil { - data.Set("Region", *params.Region) + data.Set("Region", *params.Region) } if params != nil && params.ReservationStatus != nil { - data.Set("ReservationStatus", *params.ReservationStatus) + data.Set("ReservationStatus", *params.ReservationStatus) } if params != nil && params.SipAuthPassword != nil { - data.Set("SipAuthPassword", *params.SipAuthPassword) + data.Set("SipAuthPassword", *params.SipAuthPassword) } if params != nil && params.SipAuthUsername != nil { - data.Set("SipAuthUsername", *params.SipAuthUsername) + data.Set("SipAuthUsername", *params.SipAuthUsername) } if params != nil && params.StartConferenceOnEnter != nil { - data.Set("StartConferenceOnEnter", string(*params.StartConferenceOnEnter)) + data.Set("StartConferenceOnEnter", fmt.Sprint(*params.StartConferenceOnEnter)) } if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) + data.Set("StatusCallback", *params.StatusCallback) } if params != nil && params.StatusCallbackEvent != nil { - data.Set("StatusCallbackEvent", *params.StatusCallbackEvent) + data.Set("StatusCallbackEvent", strings.Join(*params.StatusCallbackEvent, ",")) } if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) } if params != nil && params.Supervisor != nil { - data.Set("Supervisor", *params.Supervisor) + data.Set("Supervisor", *params.Supervisor) } if params != nil && params.SupervisorMode != nil { - data.Set("SupervisorMode", *params.SupervisorMode) + data.Set("SupervisorMode", *params.SupervisorMode) } if params != nil && params.Timeout != nil { - data.Set("Timeout", string(*params.Timeout)) + data.Set("Timeout", fmt.Sprint(*params.Timeout)) } if params != nil && params.To != nil { - data.Set("To", *params.To) + data.Set("To", *params.To) } if params != nil && params.WaitMethod != nil { - data.Set("WaitMethod", *params.WaitMethod) + data.Set("WaitMethod", *params.WaitMethod) } if params != nil && params.WaitUrl != nil { - data.Set("WaitUrl", *params.WaitUrl) + data.Set("WaitUrl", *params.WaitUrl) } if params != nil && params.WorkerActivitySid != nil { - data.Set("WorkerActivitySid", *params.WorkerActivitySid) + data.Set("WorkerActivitySid", *params.WorkerActivitySid) } @@ -2805,8 +2862,8 @@ type UpdateWorkerParams struct { /* UpdateWorker Method for UpdateWorker - * @param workspaceSid The SID of the Workspace with the Worker to update. - * @param sid The SID of the Worker resource to update. + * @param WorkspaceSid The SID of the Workspace with the Worker to update. + * @param Sid The SID of the Worker resource to update. * @param optional nil or *UpdateWorkerOpts - Optional Parameters: * @param "ActivitySid" (string) - The SID of a valid Activity that will describe the Worker's initial state. See [Activities](https://www.twilio.com/docs/taskrouter/api/activity) for more information. * @param "Attributes" (string) - The JSON string that describes the Worker. For example: `{ \\\"email\\\": \\\"Bob@example.com\\\", \\\"phone\\\": \\\"+5095551234\\\" }`. This data is passed to the `assignment_callback_url` when TaskRouter assigns a Task to the Worker. Defaults to {}. @@ -2814,25 +2871,26 @@ UpdateWorker Method for UpdateWorker * @param "RejectPendingReservations" (bool) - Whether to reject pending reservations. @return TaskrouterV1WorkspaceWorker */ -func (c *DefaultApiService) UpdateWorker(workspaceSid string, sid string, params *UpdateWorkerParams) (*TaskrouterV1WorkspaceWorker, error) { +func (c *DefaultApiService) UpdateWorker(WorkspaceSid string, Sid string, params *UpdateWorkerParams) (*TaskrouterV1WorkspaceWorker, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.ActivitySid != nil { - data.Set("ActivitySid", *params.ActivitySid) + data.Set("ActivitySid", *params.ActivitySid) } if params != nil && params.Attributes != nil { - data.Set("Attributes", *params.Attributes) + data.Set("Attributes", *params.Attributes) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.RejectPendingReservations != nil { - data.Set("RejectPendingReservations", string(*params.RejectPendingReservations)) + data.Set("RejectPendingReservations", fmt.Sprint(*params.RejectPendingReservations)) } @@ -2858,28 +2916,29 @@ type UpdateWorkerChannelParams struct { /* UpdateWorkerChannel Method for UpdateWorkerChannel - * @param workspaceSid The SID of the Workspace with the WorkerChannel to update. - * @param workerSid The SID of the Worker with the WorkerChannel to update. - * @param sid The SID of the WorkerChannel to update. + * @param WorkspaceSid The SID of the Workspace with the WorkerChannel to update. + * @param WorkerSid The SID of the Worker with the WorkerChannel to update. + * @param Sid The SID of the WorkerChannel to update. * @param optional nil or *UpdateWorkerChannelOpts - Optional Parameters: * @param "Available" (bool) - Whether the WorkerChannel is available. Set to `false` to prevent the Worker from receiving any new Tasks of this TaskChannel type. * @param "Capacity" (int32) - The total number of Tasks that the Worker should handle for the TaskChannel type. TaskRouter creates reservations for Tasks of this TaskChannel type up to the specified capacity. If the capacity is 0, no new reservations will be created. @return TaskrouterV1WorkspaceWorkerWorkerChannel */ -func (c *DefaultApiService) UpdateWorkerChannel(workspaceSid string, workerSid string, sid string, params *UpdateWorkerChannelParams) (*TaskrouterV1WorkspaceWorkerWorkerChannel, error) { +func (c *DefaultApiService) UpdateWorkerChannel(WorkspaceSid string, WorkerSid string, Sid string, params *UpdateWorkerChannelParams) (*TaskrouterV1WorkspaceWorkerWorkerChannel, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Channels/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"WorkerSid"+"}", workerSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + path = strings.Replace(path, "{"+"WorkerSid"+"}", WorkerSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.Available != nil { - data.Set("Available", string(*params.Available)) + data.Set("Available", fmt.Sprint(*params.Available)) } if params != nil && params.Capacity != nil { - data.Set("Capacity", string(*params.Capacity)) + data.Set("Capacity", fmt.Sprint(*params.Capacity)) } @@ -2954,9 +3013,9 @@ type UpdateWorkerReservationParams struct { /* UpdateWorkerReservation Method for UpdateWorkerReservation - * @param workspaceSid The SID of the Workspace with the WorkerReservation resources to update. - * @param workerSid The SID of the reserved Worker resource with the WorkerReservation resources to update. - * @param sid The SID of the WorkerReservation resource to update. + * @param WorkspaceSid The SID of the Workspace with the WorkerReservation resources to update. + * @param WorkerSid The SID of the reserved Worker resource with the WorkerReservation resources to update. + * @param Sid The SID of the WorkerReservation resource to update. * @param optional nil or *UpdateWorkerReservationOpts - Optional Parameters: * @param "Beep" (string) - Whether to play a notification beep when the participant joins or when to play a beep. Can be: `true`, `false`, `onEnter`, or `onExit`. The default value is `true`. * @param "BeepOnCustomerEntrance" (bool) - Whether to play a notification beep when the customer joins. @@ -3011,167 +3070,168 @@ UpdateWorkerReservation Method for UpdateWorkerReservation * @param "WorkerActivitySid" (string) - The new worker activity SID if rejecting a reservation. @return TaskrouterV1WorkspaceWorkerWorkerReservation */ -func (c *DefaultApiService) UpdateWorkerReservation(workspaceSid string, workerSid string, sid string, params *UpdateWorkerReservationParams) (*TaskrouterV1WorkspaceWorkerWorkerReservation, error) { +func (c *DefaultApiService) UpdateWorkerReservation(WorkspaceSid string, WorkerSid string, Sid string, params *UpdateWorkerReservationParams) (*TaskrouterV1WorkspaceWorkerWorkerReservation, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Reservations/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"WorkerSid"+"}", workerSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + path = strings.Replace(path, "{"+"WorkerSid"+"}", WorkerSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.Beep != nil { - data.Set("Beep", *params.Beep) + data.Set("Beep", *params.Beep) } if params != nil && params.BeepOnCustomerEntrance != nil { - data.Set("BeepOnCustomerEntrance", string(*params.BeepOnCustomerEntrance)) + data.Set("BeepOnCustomerEntrance", fmt.Sprint(*params.BeepOnCustomerEntrance)) } if params != nil && params.CallAccept != nil { - data.Set("CallAccept", string(*params.CallAccept)) + data.Set("CallAccept", fmt.Sprint(*params.CallAccept)) } if params != nil && params.CallFrom != nil { - data.Set("CallFrom", *params.CallFrom) + data.Set("CallFrom", *params.CallFrom) } if params != nil && params.CallRecord != nil { - data.Set("CallRecord", *params.CallRecord) + data.Set("CallRecord", *params.CallRecord) } if params != nil && params.CallStatusCallbackUrl != nil { - data.Set("CallStatusCallbackUrl", *params.CallStatusCallbackUrl) + data.Set("CallStatusCallbackUrl", *params.CallStatusCallbackUrl) } if params != nil && params.CallTimeout != nil { - data.Set("CallTimeout", string(*params.CallTimeout)) + data.Set("CallTimeout", fmt.Sprint(*params.CallTimeout)) } if params != nil && params.CallTo != nil { - data.Set("CallTo", *params.CallTo) + data.Set("CallTo", *params.CallTo) } if params != nil && params.CallUrl != nil { - data.Set("CallUrl", *params.CallUrl) + data.Set("CallUrl", *params.CallUrl) } if params != nil && params.ConferenceRecord != nil { - data.Set("ConferenceRecord", *params.ConferenceRecord) + data.Set("ConferenceRecord", *params.ConferenceRecord) } if params != nil && params.ConferenceRecordingStatusCallback != nil { - data.Set("ConferenceRecordingStatusCallback", *params.ConferenceRecordingStatusCallback) + data.Set("ConferenceRecordingStatusCallback", *params.ConferenceRecordingStatusCallback) } if params != nil && params.ConferenceRecordingStatusCallbackMethod != nil { - data.Set("ConferenceRecordingStatusCallbackMethod", *params.ConferenceRecordingStatusCallbackMethod) + data.Set("ConferenceRecordingStatusCallbackMethod", *params.ConferenceRecordingStatusCallbackMethod) } if params != nil && params.ConferenceStatusCallback != nil { - data.Set("ConferenceStatusCallback", *params.ConferenceStatusCallback) + data.Set("ConferenceStatusCallback", *params.ConferenceStatusCallback) } if params != nil && params.ConferenceStatusCallbackEvent != nil { - data.Set("ConferenceStatusCallbackEvent", *params.ConferenceStatusCallbackEvent) + data.Set("ConferenceStatusCallbackEvent", strings.Join(*params.ConferenceStatusCallbackEvent, ",")) } if params != nil && params.ConferenceStatusCallbackMethod != nil { - data.Set("ConferenceStatusCallbackMethod", *params.ConferenceStatusCallbackMethod) + data.Set("ConferenceStatusCallbackMethod", *params.ConferenceStatusCallbackMethod) } if params != nil && params.ConferenceTrim != nil { - data.Set("ConferenceTrim", *params.ConferenceTrim) + data.Set("ConferenceTrim", *params.ConferenceTrim) } if params != nil && params.DequeueFrom != nil { - data.Set("DequeueFrom", *params.DequeueFrom) + data.Set("DequeueFrom", *params.DequeueFrom) } if params != nil && params.DequeuePostWorkActivitySid != nil { - data.Set("DequeuePostWorkActivitySid", *params.DequeuePostWorkActivitySid) + data.Set("DequeuePostWorkActivitySid", *params.DequeuePostWorkActivitySid) } if params != nil && params.DequeueRecord != nil { - data.Set("DequeueRecord", *params.DequeueRecord) + data.Set("DequeueRecord", *params.DequeueRecord) } if params != nil && params.DequeueStatusCallbackEvent != nil { - data.Set("DequeueStatusCallbackEvent", *params.DequeueStatusCallbackEvent) + data.Set("DequeueStatusCallbackEvent", strings.Join(*params.DequeueStatusCallbackEvent, ",")) } if params != nil && params.DequeueStatusCallbackUrl != nil { - data.Set("DequeueStatusCallbackUrl", *params.DequeueStatusCallbackUrl) + data.Set("DequeueStatusCallbackUrl", *params.DequeueStatusCallbackUrl) } if params != nil && params.DequeueTimeout != nil { - data.Set("DequeueTimeout", string(*params.DequeueTimeout)) + data.Set("DequeueTimeout", fmt.Sprint(*params.DequeueTimeout)) } if params != nil && params.DequeueTo != nil { - data.Set("DequeueTo", *params.DequeueTo) + data.Set("DequeueTo", *params.DequeueTo) } if params != nil && params.EarlyMedia != nil { - data.Set("EarlyMedia", string(*params.EarlyMedia)) + data.Set("EarlyMedia", fmt.Sprint(*params.EarlyMedia)) } if params != nil && params.EndConferenceOnCustomerExit != nil { - data.Set("EndConferenceOnCustomerExit", string(*params.EndConferenceOnCustomerExit)) + data.Set("EndConferenceOnCustomerExit", fmt.Sprint(*params.EndConferenceOnCustomerExit)) } if params != nil && params.EndConferenceOnExit != nil { - data.Set("EndConferenceOnExit", string(*params.EndConferenceOnExit)) + data.Set("EndConferenceOnExit", fmt.Sprint(*params.EndConferenceOnExit)) } if params != nil && params.From != nil { - data.Set("From", *params.From) + data.Set("From", *params.From) } if params != nil && params.Instruction != nil { - data.Set("Instruction", *params.Instruction) + data.Set("Instruction", *params.Instruction) } if params != nil && params.MaxParticipants != nil { - data.Set("MaxParticipants", string(*params.MaxParticipants)) + data.Set("MaxParticipants", fmt.Sprint(*params.MaxParticipants)) } if params != nil && params.Muted != nil { - data.Set("Muted", string(*params.Muted)) + data.Set("Muted", fmt.Sprint(*params.Muted)) } if params != nil && params.PostWorkActivitySid != nil { - data.Set("PostWorkActivitySid", *params.PostWorkActivitySid) + data.Set("PostWorkActivitySid", *params.PostWorkActivitySid) } if params != nil && params.Record != nil { - data.Set("Record", string(*params.Record)) + data.Set("Record", fmt.Sprint(*params.Record)) } if params != nil && params.RecordingChannels != nil { - data.Set("RecordingChannels", *params.RecordingChannels) + data.Set("RecordingChannels", *params.RecordingChannels) } if params != nil && params.RecordingStatusCallback != nil { - data.Set("RecordingStatusCallback", *params.RecordingStatusCallback) + data.Set("RecordingStatusCallback", *params.RecordingStatusCallback) } if params != nil && params.RecordingStatusCallbackMethod != nil { - data.Set("RecordingStatusCallbackMethod", *params.RecordingStatusCallbackMethod) + data.Set("RecordingStatusCallbackMethod", *params.RecordingStatusCallbackMethod) } if params != nil && params.RedirectAccept != nil { - data.Set("RedirectAccept", string(*params.RedirectAccept)) + data.Set("RedirectAccept", fmt.Sprint(*params.RedirectAccept)) } if params != nil && params.RedirectCallSid != nil { - data.Set("RedirectCallSid", *params.RedirectCallSid) + data.Set("RedirectCallSid", *params.RedirectCallSid) } if params != nil && params.RedirectUrl != nil { - data.Set("RedirectUrl", *params.RedirectUrl) + data.Set("RedirectUrl", *params.RedirectUrl) } if params != nil && params.Region != nil { - data.Set("Region", *params.Region) + data.Set("Region", *params.Region) } if params != nil && params.ReservationStatus != nil { - data.Set("ReservationStatus", *params.ReservationStatus) + data.Set("ReservationStatus", *params.ReservationStatus) } if params != nil && params.SipAuthPassword != nil { - data.Set("SipAuthPassword", *params.SipAuthPassword) + data.Set("SipAuthPassword", *params.SipAuthPassword) } if params != nil && params.SipAuthUsername != nil { - data.Set("SipAuthUsername", *params.SipAuthUsername) + data.Set("SipAuthUsername", *params.SipAuthUsername) } if params != nil && params.StartConferenceOnEnter != nil { - data.Set("StartConferenceOnEnter", string(*params.StartConferenceOnEnter)) + data.Set("StartConferenceOnEnter", fmt.Sprint(*params.StartConferenceOnEnter)) } if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) + data.Set("StatusCallback", *params.StatusCallback) } if params != nil && params.StatusCallbackEvent != nil { - data.Set("StatusCallbackEvent", *params.StatusCallbackEvent) + data.Set("StatusCallbackEvent", strings.Join(*params.StatusCallbackEvent, ",")) } if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) } if params != nil && params.Timeout != nil { - data.Set("Timeout", string(*params.Timeout)) + data.Set("Timeout", fmt.Sprint(*params.Timeout)) } if params != nil && params.To != nil { - data.Set("To", *params.To) + data.Set("To", *params.To) } if params != nil && params.WaitMethod != nil { - data.Set("WaitMethod", *params.WaitMethod) + data.Set("WaitMethod", *params.WaitMethod) } if params != nil && params.WaitUrl != nil { - data.Set("WaitUrl", *params.WaitUrl) + data.Set("WaitUrl", *params.WaitUrl) } if params != nil && params.WorkerActivitySid != nil { - data.Set("WorkerActivitySid", *params.WorkerActivitySid) + data.Set("WorkerActivitySid", *params.WorkerActivitySid) } @@ -3201,8 +3261,8 @@ type UpdateWorkflowParams struct { /* UpdateWorkflow Method for UpdateWorkflow - * @param workspaceSid The SID of the Workspace with the Workflow to update. - * @param sid The SID of the Workflow resource to update. + * @param WorkspaceSid The SID of the Workspace with the Workflow to update. + * @param Sid The SID of the Workflow resource to update. * @param optional nil or *UpdateWorkflowOpts - Optional Parameters: * @param "AssignmentCallbackUrl" (string) - The URL from your application that will process task assignment events. See [Handling Task Assignment Callback](https://www.twilio.com/docs/taskrouter/handle-assignment-callbacks) for more details. * @param "Configuration" (string) - A JSON string that contains the rules to apply to the Workflow. See [Configuring Workflows](https://www.twilio.com/docs/taskrouter/workflow-configuration) for more information. @@ -3212,31 +3272,32 @@ UpdateWorkflow Method for UpdateWorkflow * @param "TaskReservationTimeout" (int32) - How long TaskRouter will wait for a confirmation response from your application after it assigns a Task to a Worker. Can be up to `86,400` (24 hours) and the default is `120`. @return TaskrouterV1WorkspaceWorkflow */ -func (c *DefaultApiService) UpdateWorkflow(workspaceSid string, sid string, params *UpdateWorkflowParams) (*TaskrouterV1WorkspaceWorkflow, error) { +func (c *DefaultApiService) UpdateWorkflow(WorkspaceSid string, Sid string, params *UpdateWorkflowParams) (*TaskrouterV1WorkspaceWorkflow, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workflows/{Sid}" - path = strings.Replace(path, "{"+"WorkspaceSid"+"}", workspaceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.AssignmentCallbackUrl != nil { - data.Set("AssignmentCallbackUrl", *params.AssignmentCallbackUrl) + data.Set("AssignmentCallbackUrl", *params.AssignmentCallbackUrl) } if params != nil && params.Configuration != nil { - data.Set("Configuration", *params.Configuration) + data.Set("Configuration", *params.Configuration) } if params != nil && params.FallbackAssignmentCallbackUrl != nil { - data.Set("FallbackAssignmentCallbackUrl", *params.FallbackAssignmentCallbackUrl) + data.Set("FallbackAssignmentCallbackUrl", *params.FallbackAssignmentCallbackUrl) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.ReEvaluateTasks != nil { - data.Set("ReEvaluateTasks", *params.ReEvaluateTasks) + data.Set("ReEvaluateTasks", *params.ReEvaluateTasks) } if params != nil && params.TaskReservationTimeout != nil { - data.Set("TaskReservationTimeout", string(*params.TaskReservationTimeout)) + data.Set("TaskReservationTimeout", fmt.Sprint(*params.TaskReservationTimeout)) } @@ -3267,7 +3328,7 @@ type UpdateWorkspaceParams struct { /* UpdateWorkspace Method for UpdateWorkspace - * @param sid The SID of the Workspace resource to update. + * @param Sid The SID of the Workspace resource to update. * @param optional nil or *UpdateWorkspaceOpts - Optional Parameters: * @param "DefaultActivitySid" (string) - The SID of the Activity that will be used when new Workers are created in the Workspace. * @param "EventCallbackUrl" (string) - The URL we should call when an event occurs. See [Workspace Events](https://www.twilio.com/docs/taskrouter/api/event) for more information. @@ -3278,33 +3339,34 @@ UpdateWorkspace Method for UpdateWorkspace * @param "TimeoutActivitySid" (string) - The SID of the Activity that will be assigned to a Worker when a Task reservation times out without a response. @return TaskrouterV1Workspace */ -func (c *DefaultApiService) UpdateWorkspace(sid string, params *UpdateWorkspaceParams) (*TaskrouterV1Workspace, error) { +func (c *DefaultApiService) UpdateWorkspace(Sid string, params *UpdateWorkspaceParams) (*TaskrouterV1Workspace, error) { path := "/v1/Workspaces/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.DefaultActivitySid != nil { - data.Set("DefaultActivitySid", *params.DefaultActivitySid) + data.Set("DefaultActivitySid", *params.DefaultActivitySid) } if params != nil && params.EventCallbackUrl != nil { - data.Set("EventCallbackUrl", *params.EventCallbackUrl) + data.Set("EventCallbackUrl", *params.EventCallbackUrl) } if params != nil && params.EventsFilter != nil { - data.Set("EventsFilter", *params.EventsFilter) + data.Set("EventsFilter", *params.EventsFilter) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.MultiTaskEnabled != nil { - data.Set("MultiTaskEnabled", string(*params.MultiTaskEnabled)) + data.Set("MultiTaskEnabled", fmt.Sprint(*params.MultiTaskEnabled)) } if params != nil && params.PrioritizeQueueOrder != nil { - data.Set("PrioritizeQueueOrder", *params.PrioritizeQueueOrder) + data.Set("PrioritizeQueueOrder", *params.PrioritizeQueueOrder) } if params != nil && params.TimeoutActivitySid != nil { - data.Set("TimeoutActivitySid", *params.TimeoutActivitySid) + data.Set("TimeoutActivitySid", *params.TimeoutActivitySid) } diff --git a/rest/taskrouter/v1/docs/DefaultApi.md b/rest/taskrouter/v1/docs/DefaultApi.md index 568afca8b..9a75204ba 100644 --- a/rest/taskrouter/v1/docs/DefaultApi.md +++ b/rest/taskrouter/v1/docs/DefaultApi.md @@ -69,7 +69,7 @@ Method | HTTP request | Description ## CreateActivity -> TaskrouterV1WorkspaceActivity CreateActivity(ctx, workspaceSid, optional) +> TaskrouterV1WorkspaceActivity CreateActivity(ctx, WorkspaceSid, optional) @@ -79,7 +79,7 @@ Method | HTTP request | Description Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace that the new Activity belongs to. | +**WorkspaceSid** | **string**| The SID of the Workspace that the new Activity belongs to. | **optional** | ***CreateActivityOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -90,8 +90,8 @@ Optional parameters are passed through a pointer to a CreateActivityOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **available** | **optional.Bool**| Whether the Worker should be eligible to receive a Task when it occupies the Activity. A value of `true`, `1`, or `yes` specifies the Activity is available. All other values specify that it is not. The value cannot be changed after the Activity is created. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the Activity resource. It can be up to 64 characters long. These names are used to calculate and expose statistics about Workers, and provide visibility into the state of each Worker. Examples of friendly names include: `on-call`, `break`, and `email`. | + **Available** | **optional.Bool**| Whether the Worker should be eligible to receive a Task when it occupies the Activity. A value of `true`, `1`, or `yes` specifies the Activity is available. All other values specify that it is not. The value cannot be changed after the Activity is created. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the Activity resource. It can be up to 64 characters long. These names are used to calculate and expose statistics about Workers, and provide visibility into the state of each Worker. Examples of friendly names include: `on-call`, `break`, and `email`. | ### Return type @@ -113,7 +113,7 @@ Name | Type | Description | Notes ## CreateTask -> TaskrouterV1WorkspaceTask CreateTask(ctx, workspaceSid, optional) +> TaskrouterV1WorkspaceTask CreateTask(ctx, WorkspaceSid, optional) @@ -123,7 +123,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace that the new Task belongs to. | +**WorkspaceSid** | **string**| The SID of the Workspace that the new Task belongs to. | **optional** | ***CreateTaskOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -134,11 +134,11 @@ Optional parameters are passed through a pointer to a CreateTaskOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **attributes** | **optional.String**| A URL-encoded JSON string with the attributes of the new task. This value is passed to the Workflow's `assignment_callback_url` when the Task is assigned to a Worker. For example: `{ \\\"task_type\\\": \\\"call\\\", \\\"twilio_call_sid\\\": \\\"CAxxx\\\", \\\"customer_ticket_number\\\": \\\"12345\\\" }`. | - **priority** | **optional.Int32**| The priority to assign the new task and override the default. When supplied, the new Task will have this priority unless it matches a Workflow Target with a Priority set. When not supplied, the new Task will have the priority of the matching Workflow Target. Value can be 0 to 2^31^ (2,147,483,647). | - **taskChannel** | **optional.String**| When MultiTasking is enabled, specify the TaskChannel by passing either its `unique_name` or `sid`. Default value is `default`. | - **timeout** | **optional.Int32**| The amount of time in seconds the new task is allowed to live. Can be up to a maximum of 2 weeks (1,209,600 seconds). The default value is 24 hours (86,400 seconds). On timeout, the `task.canceled` event will fire with description `Task TTL Exceeded`. | - **workflowSid** | **optional.String**| The SID of the Workflow that you would like to handle routing for the new Task. If there is only one Workflow defined for the Workspace that you are posting the new task to, this parameter is optional. | + **Attributes** | **optional.String**| A URL-encoded JSON string with the attributes of the new task. This value is passed to the Workflow's `assignment_callback_url` when the Task is assigned to a Worker. For example: `{ \\\"task_type\\\": \\\"call\\\", \\\"twilio_call_sid\\\": \\\"CAxxx\\\", \\\"customer_ticket_number\\\": \\\"12345\\\" }`. | + **Priority** | **optional.Int32**| The priority to assign the new task and override the default. When supplied, the new Task will have this priority unless it matches a Workflow Target with a Priority set. When not supplied, the new Task will have the priority of the matching Workflow Target. Value can be 0 to 2^31^ (2,147,483,647). | + **TaskChannel** | **optional.String**| When MultiTasking is enabled, specify the TaskChannel by passing either its `unique_name` or `sid`. Default value is `default`. | + **Timeout** | **optional.Int32**| The amount of time in seconds the new task is allowed to live. Can be up to a maximum of 2 weeks (1,209,600 seconds). The default value is 24 hours (86,400 seconds). On timeout, the `task.canceled` event will fire with description `Task TTL Exceeded`. | + **WorkflowSid** | **optional.String**| The SID of the Workflow that you would like to handle routing for the new Task. If there is only one Workflow defined for the Workspace that you are posting the new task to, this parameter is optional. | ### Return type @@ -160,7 +160,7 @@ Name | Type | Description | Notes ## CreateTaskChannel -> TaskrouterV1WorkspaceTaskChannel CreateTaskChannel(ctx, workspaceSid, optional) +> TaskrouterV1WorkspaceTaskChannel CreateTaskChannel(ctx, WorkspaceSid, optional) @@ -170,7 +170,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace that the new Task Channel belongs to. | +**WorkspaceSid** | **string**| The SID of the Workspace that the new Task Channel belongs to. | **optional** | ***CreateTaskChannelOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -181,9 +181,9 @@ Optional parameters are passed through a pointer to a CreateTaskChannelOpts stru Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **channelOptimizedRouting** | **optional.Bool**| Whether the Task Channel should prioritize Workers that have been idle. If `true`, Workers that have been idle the longest are prioritized. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the Task Channel. It can be up to 64 characters long. | - **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the Task Channel, such as `voice` or `sms`. | + **ChannelOptimizedRouting** | **optional.Bool**| Whether the Task Channel should prioritize Workers that have been idle. If `true`, Workers that have been idle the longest are prioritized. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the Task Channel. It can be up to 64 characters long. | + **UniqueName** | **optional.String**| An application-defined string that uniquely identifies the Task Channel, such as `voice` or `sms`. | ### Return type @@ -205,7 +205,7 @@ Name | Type | Description | Notes ## CreateTaskQueue -> TaskrouterV1WorkspaceTaskQueue CreateTaskQueue(ctx, workspaceSid, optional) +> TaskrouterV1WorkspaceTaskQueue CreateTaskQueue(ctx, WorkspaceSid, optional) @@ -215,7 +215,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace that the new TaskQueue belongs to. | +**WorkspaceSid** | **string**| The SID of the Workspace that the new TaskQueue belongs to. | **optional** | ***CreateTaskQueueOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -226,12 +226,12 @@ Optional parameters are passed through a pointer to a CreateTaskQueueOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **assignmentActivitySid** | **optional.String**| The SID of the Activity to assign Workers when a task is assigned to them. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the TaskQueue. For example `Support-Tier 1`, `Sales`, or `Escalation`. | - **maxReservedWorkers** | **optional.Int32**| The maximum number of Workers to reserve for the assignment of a Task in the queue. Can be an integer between 1 and 50, inclusive and defaults to 1. | - **reservationActivitySid** | **optional.String**| The SID of the Activity to assign Workers when a task is reserved for them. | - **targetWorkers** | **optional.String**| A string that describes the Worker selection criteria for any Tasks that enter the TaskQueue. For example, `'\\\"language\\\" == \\\"spanish\\\"'`. The default value is `1==1`. If this value is empty, Tasks will wait in the TaskQueue until they are deleted or moved to another TaskQueue. For more information about Worker selection, see [Describing Worker selection criteria](https://www.twilio.com/docs/taskrouter/api/taskqueues#target-workers). | - **taskOrder** | **optional.String**| How Tasks will be assigned to Workers. Set this parameter to `LIFO` to assign most recently created Task first or FIFO to assign the oldest Task first. Default is `FIFO`. [Click here](https://www.twilio.com/docs/taskrouter/queue-ordering-last-first-out-lifo) to learn more. | + **AssignmentActivitySid** | **optional.String**| The SID of the Activity to assign Workers when a task is assigned to them. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the TaskQueue. For example `Support-Tier 1`, `Sales`, or `Escalation`. | + **MaxReservedWorkers** | **optional.Int32**| The maximum number of Workers to reserve for the assignment of a Task in the queue. Can be an integer between 1 and 50, inclusive and defaults to 1. | + **ReservationActivitySid** | **optional.String**| The SID of the Activity to assign Workers when a task is reserved for them. | + **TargetWorkers** | **optional.String**| A string that describes the Worker selection criteria for any Tasks that enter the TaskQueue. For example, `'\\\"language\\\" == \\\"spanish\\\"'`. The default value is `1==1`. If this value is empty, Tasks will wait in the TaskQueue until they are deleted or moved to another TaskQueue. For more information about Worker selection, see [Describing Worker selection criteria](https://www.twilio.com/docs/taskrouter/api/taskqueues#target-workers). | + **TaskOrder** | **optional.String**| How Tasks will be assigned to Workers. Set this parameter to `LIFO` to assign most recently created Task first or FIFO to assign the oldest Task first. Default is `FIFO`. [Click here](https://www.twilio.com/docs/taskrouter/queue-ordering-last-first-out-lifo) to learn more. | ### Return type @@ -253,7 +253,7 @@ Name | Type | Description | Notes ## CreateWorker -> TaskrouterV1WorkspaceWorker CreateWorker(ctx, workspaceSid, optional) +> TaskrouterV1WorkspaceWorker CreateWorker(ctx, WorkspaceSid, optional) @@ -263,7 +263,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace that the new Worker belongs to. | +**WorkspaceSid** | **string**| The SID of the Workspace that the new Worker belongs to. | **optional** | ***CreateWorkerOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -274,9 +274,9 @@ Optional parameters are passed through a pointer to a CreateWorkerOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **activitySid** | **optional.String**| The SID of a valid Activity that will describe the new Worker's initial state. See [Activities](https://www.twilio.com/docs/taskrouter/api/activity) for more information. If not provided, the new Worker's initial state is the `default_activity_sid` configured on the Workspace. | - **attributes** | **optional.String**| A valid JSON string that describes the new Worker. For example: `{ \\\"email\\\": \\\"Bob@example.com\\\", \\\"phone\\\": \\\"+5095551234\\\" }`. This data is passed to the `assignment_callback_url` when TaskRouter assigns a Task to the Worker. Defaults to {}. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the new Worker. It can be up to 64 characters long. | + **ActivitySid** | **optional.String**| The SID of a valid Activity that will describe the new Worker's initial state. See [Activities](https://www.twilio.com/docs/taskrouter/api/activity) for more information. If not provided, the new Worker's initial state is the `default_activity_sid` configured on the Workspace. | + **Attributes** | **optional.String**| A valid JSON string that describes the new Worker. For example: `{ \\\"email\\\": \\\"Bob@example.com\\\", \\\"phone\\\": \\\"+5095551234\\\" }`. This data is passed to the `assignment_callback_url` when TaskRouter assigns a Task to the Worker. Defaults to {}. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the new Worker. It can be up to 64 characters long. | ### Return type @@ -298,7 +298,7 @@ Name | Type | Description | Notes ## CreateWorkflow -> TaskrouterV1WorkspaceWorkflow CreateWorkflow(ctx, workspaceSid, optional) +> TaskrouterV1WorkspaceWorkflow CreateWorkflow(ctx, WorkspaceSid, optional) @@ -308,7 +308,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace that the new Workflow to create belongs to. | +**WorkspaceSid** | **string**| The SID of the Workspace that the new Workflow to create belongs to. | **optional** | ***CreateWorkflowOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -319,11 +319,11 @@ Optional parameters are passed through a pointer to a CreateWorkflowOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **assignmentCallbackUrl** | **optional.String**| The URL from your application that will process task assignment events. See [Handling Task Assignment Callback](https://www.twilio.com/docs/taskrouter/handle-assignment-callbacks) for more details. | - **configuration** | **optional.String**| A JSON string that contains the rules to apply to the Workflow. See [Configuring Workflows](https://www.twilio.com/docs/taskrouter/workflow-configuration) for more information. | - **fallbackAssignmentCallbackUrl** | **optional.String**| The URL that we should call when a call to the `assignment_callback_url` fails. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the Workflow resource. For example, `Inbound Call Workflow` or `2014 Outbound Campaign`. | - **taskReservationTimeout** | **optional.Int32**| How long TaskRouter will wait for a confirmation response from your application after it assigns a Task to a Worker. Can be up to `86,400` (24 hours) and the default is `120`. | + **AssignmentCallbackUrl** | **optional.String**| The URL from your application that will process task assignment events. See [Handling Task Assignment Callback](https://www.twilio.com/docs/taskrouter/handle-assignment-callbacks) for more details. | + **Configuration** | **optional.String**| A JSON string that contains the rules to apply to the Workflow. See [Configuring Workflows](https://www.twilio.com/docs/taskrouter/workflow-configuration) for more information. | + **FallbackAssignmentCallbackUrl** | **optional.String**| The URL that we should call when a call to the `assignment_callback_url` fails. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the Workflow resource. For example, `Inbound Call Workflow` or `2014 Outbound Campaign`. | + **TaskReservationTimeout** | **optional.Int32**| How long TaskRouter will wait for a confirmation response from your application after it assigns a Task to a Worker. Can be up to `86,400` (24 hours) and the default is `120`. | ### Return type @@ -364,12 +364,12 @@ Optional parameters are passed through a pointer to a CreateWorkspaceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **eventCallbackUrl** | **optional.String**| The URL we should call when an event occurs. If provided, the Workspace will publish events to this URL, for example, to collect data for reporting. See [Workspace Events](https://www.twilio.com/docs/taskrouter/api/event) for more information. | - **eventsFilter** | **optional.String**| The list of Workspace events for which to call event_callback_url. For example if `EventsFilter=task.created,task.canceled,worker.activity.update`, then TaskRouter will call event_callback_url only when a task is created, canceled, or a Worker activity is updated. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the Workspace resource. It can be up to 64 characters long. For example: `Customer Support` or `2014 Election Campaign`. | - **multiTaskEnabled** | **optional.Bool**| Whether to enable multi-tasking. Can be: `true` to enable multi-tasking, or `false` to disable it. The default is `false`. Multi-tasking allows Workers to handle multiple Tasks simultaneously. When enabled (`true`), each Worker can receive parallel reservations up to the per-channel maximums defined in the Workers section. Otherwise, each Worker will only receive a new reservation when the previous task is completed. Learn more at [Multitasking][https://www.twilio.com/docs/taskrouter/multitasking]. | - **prioritizeQueueOrder** | **optional.String**| The type of TaskQueue to prioritize when Workers are receiving Tasks from both types of TaskQueues. Can be: `LIFO` or `FIFO` and the default is `FIFO`. For more information, see [Queue Ordering][https://www.twilio.com/docs/taskrouter/queue-ordering-last-first-out-lifo]. | - **template** | **optional.String**| An available template name. Can be: `NONE` or `FIFO` and the default is `NONE`. Pre-configures the Workspace with the Workflow and Activities specified in the template. `NONE` will create a Workspace with only a set of default activities. `FIFO` will configure TaskRouter with a set of default activities and a single TaskQueue for first-in, first-out distribution, which can be useful when you are getting started with TaskRouter. | + **EventCallbackUrl** | **optional.String**| The URL we should call when an event occurs. If provided, the Workspace will publish events to this URL, for example, to collect data for reporting. See [Workspace Events](https://www.twilio.com/docs/taskrouter/api/event) for more information. | + **EventsFilter** | **optional.String**| The list of Workspace events for which to call event_callback_url. For example if `EventsFilter=task.created,task.canceled,worker.activity.update`, then TaskRouter will call event_callback_url only when a task is created, canceled, or a Worker activity is updated. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the Workspace resource. It can be up to 64 characters long. For example: `Customer Support` or `2014 Election Campaign`. | + **MultiTaskEnabled** | **optional.Bool**| Whether to enable multi-tasking. Can be: `true` to enable multi-tasking, or `false` to disable it. The default is `false`. Multi-tasking allows Workers to handle multiple Tasks simultaneously. When enabled (`true`), each Worker can receive parallel reservations up to the per-channel maximums defined in the Workers section. Otherwise, each Worker will only receive a new reservation when the previous task is completed. Learn more at [Multitasking][https://www.twilio.com/docs/taskrouter/multitasking]. | + **PrioritizeQueueOrder** | **optional.String**| The type of TaskQueue to prioritize when Workers are receiving Tasks from both types of TaskQueues. Can be: `LIFO` or `FIFO` and the default is `FIFO`. For more information, see [Queue Ordering][https://www.twilio.com/docs/taskrouter/queue-ordering-last-first-out-lifo]. | + **Template** | **optional.String**| An available template name. Can be: `NONE` or `FIFO` and the default is `NONE`. Pre-configures the Workspace with the Workflow and Activities specified in the template. `NONE` will create a Workspace with only a set of default activities. `FIFO` will configure TaskRouter with a set of default activities and a single TaskQueue for first-in, first-out distribution, which can be useful when you are getting started with TaskRouter. | ### Return type @@ -391,7 +391,7 @@ Name | Type | Description | Notes ## DeleteActivity -> DeleteActivity(ctx, workspaceSid, sid) +> DeleteActivity(ctx, WorkspaceSid, Sid) @@ -401,8 +401,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the Activity resources to delete. | -**sid** | **string**| The SID of the Activity resource to delete. | +**WorkspaceSid** | **string**| The SID of the Workspace with the Activity resources to delete. | +**Sid** | **string**| The SID of the Activity resource to delete. | ### Return type @@ -424,7 +424,7 @@ Name | Type | Description | Notes ## DeleteTask -> DeleteTask(ctx, workspaceSid, sid) +> DeleteTask(ctx, WorkspaceSid, Sid) @@ -434,8 +434,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the Task to delete. | -**sid** | **string**| The SID of the Task resource to delete. | +**WorkspaceSid** | **string**| The SID of the Workspace with the Task to delete. | +**Sid** | **string**| The SID of the Task resource to delete. | ### Return type @@ -457,7 +457,7 @@ Name | Type | Description | Notes ## DeleteTaskChannel -> DeleteTaskChannel(ctx, workspaceSid, sid) +> DeleteTaskChannel(ctx, WorkspaceSid, Sid) @@ -467,8 +467,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the Task Channel to delete. | -**sid** | **string**| The SID of the Task Channel resource to delete. | +**WorkspaceSid** | **string**| The SID of the Workspace with the Task Channel to delete. | +**Sid** | **string**| The SID of the Task Channel resource to delete. | ### Return type @@ -490,7 +490,7 @@ Name | Type | Description | Notes ## DeleteTaskQueue -> DeleteTaskQueue(ctx, workspaceSid, sid) +> DeleteTaskQueue(ctx, WorkspaceSid, Sid) @@ -500,8 +500,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the TaskQueue to delete. | -**sid** | **string**| The SID of the TaskQueue resource to delete. | +**WorkspaceSid** | **string**| The SID of the Workspace with the TaskQueue to delete. | +**Sid** | **string**| The SID of the TaskQueue resource to delete. | ### Return type @@ -523,7 +523,7 @@ Name | Type | Description | Notes ## DeleteWorker -> DeleteWorker(ctx, workspaceSid, sid) +> DeleteWorker(ctx, WorkspaceSid, Sid) @@ -533,8 +533,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the Worker to delete. | -**sid** | **string**| The SID of the Worker resource to delete. | +**WorkspaceSid** | **string**| The SID of the Workspace with the Worker to delete. | +**Sid** | **string**| The SID of the Worker resource to delete. | ### Return type @@ -556,7 +556,7 @@ Name | Type | Description | Notes ## DeleteWorkflow -> DeleteWorkflow(ctx, workspaceSid, sid) +> DeleteWorkflow(ctx, WorkspaceSid, Sid) @@ -566,8 +566,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the Workflow to delete. | -**sid** | **string**| The SID of the Workflow resource to delete. | +**WorkspaceSid** | **string**| The SID of the Workspace with the Workflow to delete. | +**Sid** | **string**| The SID of the Workflow resource to delete. | ### Return type @@ -589,7 +589,7 @@ Name | Type | Description | Notes ## DeleteWorkspace -> DeleteWorkspace(ctx, sid) +> DeleteWorkspace(ctx, Sid) @@ -599,7 +599,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Workspace resource to delete. | +**Sid** | **string**| The SID of the Workspace resource to delete. | ### Return type @@ -621,7 +621,7 @@ Name | Type | Description | Notes ## FetchActivity -> TaskrouterV1WorkspaceActivity FetchActivity(ctx, workspaceSid, sid) +> TaskrouterV1WorkspaceActivity FetchActivity(ctx, WorkspaceSid, Sid) @@ -631,8 +631,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the Activity resources to fetch. | -**sid** | **string**| The SID of the Activity resource to fetch. | +**WorkspaceSid** | **string**| The SID of the Workspace with the Activity resources to fetch. | +**Sid** | **string**| The SID of the Activity resource to fetch. | ### Return type @@ -654,7 +654,7 @@ Name | Type | Description | Notes ## FetchEvent -> TaskrouterV1WorkspaceEvent FetchEvent(ctx, workspaceSid, sid) +> TaskrouterV1WorkspaceEvent FetchEvent(ctx, WorkspaceSid, Sid) @@ -664,8 +664,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the Event to fetch. | -**sid** | **string**| The SID of the Event resource to fetch. | +**WorkspaceSid** | **string**| The SID of the Workspace with the Event to fetch. | +**Sid** | **string**| The SID of the Event resource to fetch. | ### Return type @@ -687,7 +687,7 @@ Name | Type | Description | Notes ## FetchTask -> TaskrouterV1WorkspaceTask FetchTask(ctx, workspaceSid, sid) +> TaskrouterV1WorkspaceTask FetchTask(ctx, WorkspaceSid, Sid) @@ -697,8 +697,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the Task to fetch. | -**sid** | **string**| The SID of the Task resource to fetch. | +**WorkspaceSid** | **string**| The SID of the Workspace with the Task to fetch. | +**Sid** | **string**| The SID of the Task resource to fetch. | ### Return type @@ -720,7 +720,7 @@ Name | Type | Description | Notes ## FetchTaskChannel -> TaskrouterV1WorkspaceTaskChannel FetchTaskChannel(ctx, workspaceSid, sid) +> TaskrouterV1WorkspaceTaskChannel FetchTaskChannel(ctx, WorkspaceSid, Sid) @@ -730,8 +730,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the Task Channel to fetch. | -**sid** | **string**| The SID of the Task Channel resource to fetch. | +**WorkspaceSid** | **string**| The SID of the Workspace with the Task Channel to fetch. | +**Sid** | **string**| The SID of the Task Channel resource to fetch. | ### Return type @@ -753,7 +753,7 @@ Name | Type | Description | Notes ## FetchTaskQueue -> TaskrouterV1WorkspaceTaskQueue FetchTaskQueue(ctx, workspaceSid, sid) +> TaskrouterV1WorkspaceTaskQueue FetchTaskQueue(ctx, WorkspaceSid, Sid) @@ -763,8 +763,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the TaskQueue to fetch. | -**sid** | **string**| The SID of the TaskQueue resource to fetch. | +**WorkspaceSid** | **string**| The SID of the Workspace with the TaskQueue to fetch. | +**Sid** | **string**| The SID of the TaskQueue resource to fetch. | ### Return type @@ -786,7 +786,7 @@ Name | Type | Description | Notes ## FetchTaskQueueCumulativeStatistics -> TaskrouterV1WorkspaceTaskQueueTaskQueueCumulativeStatistics FetchTaskQueueCumulativeStatistics(ctx, workspaceSid, taskQueueSid, optional) +> TaskrouterV1WorkspaceTaskQueueTaskQueueCumulativeStatistics FetchTaskQueueCumulativeStatistics(ctx, WorkspaceSid, TaskQueueSid, optional) @@ -796,8 +796,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the TaskQueue to fetch. | -**taskQueueSid** | **string**| The SID of the TaskQueue for which to fetch statistics. | +**WorkspaceSid** | **string**| The SID of the Workspace with the TaskQueue to fetch. | +**TaskQueueSid** | **string**| The SID of the TaskQueue for which to fetch statistics. | **optional** | ***FetchTaskQueueCumulativeStatisticsOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -809,11 +809,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **endDate** | **optional.Time**| Only calculate statistics from this date and time and earlier, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. | - **minutes** | **optional.Int32**| Only calculate statistics since this many minutes in the past. The default is 15 minutes. | - **startDate** | **optional.Time**| Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | - **taskChannel** | **optional.String**| Only calculate cumulative statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | - **splitByWaitTime** | **optional.String**| A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. | + **EndDate** | **optional.Time**| Only calculate statistics from this date and time and earlier, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. | + **Minutes** | **optional.Int32**| Only calculate statistics since this many minutes in the past. The default is 15 minutes. | + **StartDate** | **optional.Time**| Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | + **TaskChannel** | **optional.String**| Only calculate cumulative statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | + **SplitByWaitTime** | **optional.String**| A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. | ### Return type @@ -835,7 +835,7 @@ Name | Type | Description | Notes ## FetchTaskQueueRealTimeStatistics -> TaskrouterV1WorkspaceTaskQueueTaskQueueRealTimeStatistics FetchTaskQueueRealTimeStatistics(ctx, workspaceSid, taskQueueSid, optional) +> TaskrouterV1WorkspaceTaskQueueTaskQueueRealTimeStatistics FetchTaskQueueRealTimeStatistics(ctx, WorkspaceSid, TaskQueueSid, optional) @@ -845,8 +845,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the TaskQueue to fetch. | -**taskQueueSid** | **string**| The SID of the TaskQueue for which to fetch statistics. | +**WorkspaceSid** | **string**| The SID of the Workspace with the TaskQueue to fetch. | +**TaskQueueSid** | **string**| The SID of the TaskQueue for which to fetch statistics. | **optional** | ***FetchTaskQueueRealTimeStatisticsOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -858,7 +858,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **taskChannel** | **optional.String**| The TaskChannel for which to fetch statistics. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | + **TaskChannel** | **optional.String**| The TaskChannel for which to fetch statistics. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | ### Return type @@ -880,7 +880,7 @@ Name | Type | Description | Notes ## FetchTaskQueueStatistics -> TaskrouterV1WorkspaceTaskQueueTaskQueueStatistics FetchTaskQueueStatistics(ctx, workspaceSid, taskQueueSid, optional) +> TaskrouterV1WorkspaceTaskQueueTaskQueueStatistics FetchTaskQueueStatistics(ctx, WorkspaceSid, TaskQueueSid, optional) @@ -890,8 +890,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the TaskQueue to fetch. | -**taskQueueSid** | **string**| The SID of the TaskQueue for which to fetch statistics. | +**WorkspaceSid** | **string**| The SID of the Workspace with the TaskQueue to fetch. | +**TaskQueueSid** | **string**| The SID of the TaskQueue for which to fetch statistics. | **optional** | ***FetchTaskQueueStatisticsOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -903,11 +903,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **endDate** | **optional.Time**| Only calculate statistics from this date and time and earlier, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. | - **minutes** | **optional.Int32**| Only calculate statistics since this many minutes in the past. The default is 15 minutes. | - **startDate** | **optional.Time**| Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | - **taskChannel** | **optional.String**| Only calculate real-time and cumulative statistics for the specified TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | - **splitByWaitTime** | **optional.String**| A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. | + **EndDate** | **optional.Time**| Only calculate statistics from this date and time and earlier, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. | + **Minutes** | **optional.Int32**| Only calculate statistics since this many minutes in the past. The default is 15 minutes. | + **StartDate** | **optional.Time**| Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | + **TaskChannel** | **optional.String**| Only calculate real-time and cumulative statistics for the specified TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | + **SplitByWaitTime** | **optional.String**| A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. | ### Return type @@ -929,7 +929,7 @@ Name | Type | Description | Notes ## FetchTaskReservation -> TaskrouterV1WorkspaceTaskTaskReservation FetchTaskReservation(ctx, workspaceSid, taskSid, sid) +> TaskrouterV1WorkspaceTaskTaskReservation FetchTaskReservation(ctx, WorkspaceSid, TaskSid, Sid) @@ -939,9 +939,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the TaskReservation resource to fetch. | -**taskSid** | **string**| The SID of the reserved Task resource with the TaskReservation resource to fetch. | -**sid** | **string**| The SID of the TaskReservation resource to fetch. | +**WorkspaceSid** | **string**| The SID of the Workspace with the TaskReservation resource to fetch. | +**TaskSid** | **string**| The SID of the reserved Task resource with the TaskReservation resource to fetch. | +**Sid** | **string**| The SID of the TaskReservation resource to fetch. | ### Return type @@ -963,7 +963,7 @@ Name | Type | Description | Notes ## FetchWorker -> TaskrouterV1WorkspaceWorker FetchWorker(ctx, workspaceSid, sid) +> TaskrouterV1WorkspaceWorker FetchWorker(ctx, WorkspaceSid, Sid) @@ -973,8 +973,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the Worker to fetch. | -**sid** | **string**| The SID of the Worker resource to fetch. | +**WorkspaceSid** | **string**| The SID of the Workspace with the Worker to fetch. | +**Sid** | **string**| The SID of the Worker resource to fetch. | ### Return type @@ -996,7 +996,7 @@ Name | Type | Description | Notes ## FetchWorkerChannel -> TaskrouterV1WorkspaceWorkerWorkerChannel FetchWorkerChannel(ctx, workspaceSid, workerSid, sid) +> TaskrouterV1WorkspaceWorkerWorkerChannel FetchWorkerChannel(ctx, WorkspaceSid, WorkerSid, Sid) @@ -1006,9 +1006,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the WorkerChannel to fetch. | -**workerSid** | **string**| The SID of the Worker with the WorkerChannel to fetch. | -**sid** | **string**| The SID of the WorkerChannel to fetch. | +**WorkspaceSid** | **string**| The SID of the Workspace with the WorkerChannel to fetch. | +**WorkerSid** | **string**| The SID of the Worker with the WorkerChannel to fetch. | +**Sid** | **string**| The SID of the WorkerChannel to fetch. | ### Return type @@ -1030,7 +1030,7 @@ Name | Type | Description | Notes ## FetchWorkerInstanceStatistics -> TaskrouterV1WorkspaceWorkerWorkerInstanceStatistics FetchWorkerInstanceStatistics(ctx, workspaceSid, workerSid, optional) +> TaskrouterV1WorkspaceWorkerWorkerInstanceStatistics FetchWorkerInstanceStatistics(ctx, WorkspaceSid, WorkerSid, optional) @@ -1040,8 +1040,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the WorkerChannel to fetch. | -**workerSid** | **string**| The SID of the Worker with the WorkerChannel to fetch. | +**WorkspaceSid** | **string**| The SID of the Workspace with the WorkerChannel to fetch. | +**WorkerSid** | **string**| The SID of the Worker with the WorkerChannel to fetch. | **optional** | ***FetchWorkerInstanceStatisticsOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1053,10 +1053,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **minutes** | **optional.Int32**| Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. | - **startDate** | **optional.Time**| Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | - **endDate** | **optional.Time**| Only include usage that occurred on or before this date, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. | - **taskChannel** | **optional.String**| Only calculate statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | + **Minutes** | **optional.Int32**| Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. | + **StartDate** | **optional.Time**| Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | + **EndDate** | **optional.Time**| Only include usage that occurred on or before this date, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. | + **TaskChannel** | **optional.String**| Only calculate statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | ### Return type @@ -1078,7 +1078,7 @@ Name | Type | Description | Notes ## FetchWorkerReservation -> TaskrouterV1WorkspaceWorkerWorkerReservation FetchWorkerReservation(ctx, workspaceSid, workerSid, sid) +> TaskrouterV1WorkspaceWorkerWorkerReservation FetchWorkerReservation(ctx, WorkspaceSid, WorkerSid, Sid) @@ -1088,9 +1088,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the WorkerReservation resource to fetch. | -**workerSid** | **string**| The SID of the reserved Worker resource with the WorkerReservation resource to fetch. | -**sid** | **string**| The SID of the WorkerReservation resource to fetch. | +**WorkspaceSid** | **string**| The SID of the Workspace with the WorkerReservation resource to fetch. | +**WorkerSid** | **string**| The SID of the reserved Worker resource with the WorkerReservation resource to fetch. | +**Sid** | **string**| The SID of the WorkerReservation resource to fetch. | ### Return type @@ -1112,7 +1112,7 @@ Name | Type | Description | Notes ## FetchWorkerStatistics -> TaskrouterV1WorkspaceWorkerWorkerStatistics FetchWorkerStatistics(ctx, workspaceSid, optional) +> TaskrouterV1WorkspaceWorkerWorkerStatistics FetchWorkerStatistics(ctx, WorkspaceSid, optional) @@ -1122,7 +1122,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the Worker to fetch. | +**WorkspaceSid** | **string**| The SID of the Workspace with the Worker to fetch. | **optional** | ***FetchWorkerStatisticsOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1133,13 +1133,13 @@ Optional parameters are passed through a pointer to a FetchWorkerStatisticsOpts Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **minutes** | **optional.Int32**| Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. | - **startDate** | **optional.Time**| Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | - **endDate** | **optional.Time**| Only calculate statistics from this date and time and earlier, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. | - **taskQueueSid** | **optional.String**| The SID of the TaskQueue for which to fetch Worker statistics. | - **taskQueueName** | **optional.String**| The `friendly_name` of the TaskQueue for which to fetch Worker statistics. | - **friendlyName** | **optional.String**| Only include Workers with `friendly_name` values that match this parameter. | - **taskChannel** | **optional.String**| Only calculate statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | + **Minutes** | **optional.Int32**| Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. | + **StartDate** | **optional.Time**| Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | + **EndDate** | **optional.Time**| Only calculate statistics from this date and time and earlier, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. | + **TaskQueueSid** | **optional.String**| The SID of the TaskQueue for which to fetch Worker statistics. | + **TaskQueueName** | **optional.String**| The `friendly_name` of the TaskQueue for which to fetch Worker statistics. | + **FriendlyName** | **optional.String**| Only include Workers with `friendly_name` values that match this parameter. | + **TaskChannel** | **optional.String**| Only calculate statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | ### Return type @@ -1161,7 +1161,7 @@ Name | Type | Description | Notes ## FetchWorkersCumulativeStatistics -> TaskrouterV1WorkspaceWorkerWorkersCumulativeStatistics FetchWorkersCumulativeStatistics(ctx, workspaceSid, optional) +> TaskrouterV1WorkspaceWorkerWorkersCumulativeStatistics FetchWorkersCumulativeStatistics(ctx, WorkspaceSid, optional) @@ -1171,7 +1171,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the resource to fetch. | +**WorkspaceSid** | **string**| The SID of the Workspace with the resource to fetch. | **optional** | ***FetchWorkersCumulativeStatisticsOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1182,10 +1182,10 @@ Optional parameters are passed through a pointer to a FetchWorkersCumulativeStat Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **endDate** | **optional.Time**| Only calculate statistics from this date and time and earlier, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | - **minutes** | **optional.Int32**| Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. | - **startDate** | **optional.Time**| Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | - **taskChannel** | **optional.String**| Only calculate cumulative statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | + **EndDate** | **optional.Time**| Only calculate statistics from this date and time and earlier, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | + **Minutes** | **optional.Int32**| Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. | + **StartDate** | **optional.Time**| Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | + **TaskChannel** | **optional.String**| Only calculate cumulative statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | ### Return type @@ -1207,7 +1207,7 @@ Name | Type | Description | Notes ## FetchWorkersRealTimeStatistics -> TaskrouterV1WorkspaceWorkerWorkersRealTimeStatistics FetchWorkersRealTimeStatistics(ctx, workspaceSid, optional) +> TaskrouterV1WorkspaceWorkerWorkersRealTimeStatistics FetchWorkersRealTimeStatistics(ctx, WorkspaceSid, optional) @@ -1217,7 +1217,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the resource to fetch. | +**WorkspaceSid** | **string**| The SID of the Workspace with the resource to fetch. | **optional** | ***FetchWorkersRealTimeStatisticsOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1228,7 +1228,7 @@ Optional parameters are passed through a pointer to a FetchWorkersRealTimeStatis Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **taskChannel** | **optional.String**| Only calculate real-time statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | + **TaskChannel** | **optional.String**| Only calculate real-time statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | ### Return type @@ -1250,7 +1250,7 @@ Name | Type | Description | Notes ## FetchWorkflow -> TaskrouterV1WorkspaceWorkflow FetchWorkflow(ctx, workspaceSid, sid) +> TaskrouterV1WorkspaceWorkflow FetchWorkflow(ctx, WorkspaceSid, Sid) @@ -1260,8 +1260,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the Workflow to fetch. | -**sid** | **string**| The SID of the Workflow resource to fetch. | +**WorkspaceSid** | **string**| The SID of the Workspace with the Workflow to fetch. | +**Sid** | **string**| The SID of the Workflow resource to fetch. | ### Return type @@ -1283,7 +1283,7 @@ Name | Type | Description | Notes ## FetchWorkflowCumulativeStatistics -> TaskrouterV1WorkspaceWorkflowWorkflowCumulativeStatistics FetchWorkflowCumulativeStatistics(ctx, workspaceSid, workflowSid, optional) +> TaskrouterV1WorkspaceWorkflowWorkflowCumulativeStatistics FetchWorkflowCumulativeStatistics(ctx, WorkspaceSid, WorkflowSid, optional) @@ -1293,8 +1293,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the resource to fetch. | -**workflowSid** | **string**| Returns the list of Tasks that are being controlled by the Workflow with the specified Sid value. | +**WorkspaceSid** | **string**| The SID of the Workspace with the resource to fetch. | +**WorkflowSid** | **string**| Returns the list of Tasks that are being controlled by the Workflow with the specified Sid value. | **optional** | ***FetchWorkflowCumulativeStatisticsOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1306,11 +1306,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **endDate** | **optional.Time**| Only include usage that occurred on or before this date, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. | - **minutes** | **optional.Int32**| Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. | - **startDate** | **optional.Time**| Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | - **taskChannel** | **optional.String**| Only calculate cumulative statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | - **splitByWaitTime** | **optional.String**| A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. For example, `5,30` would show splits of Tasks that were canceled or accepted before and after 5 seconds and before and after 30 seconds. This can be used to show short abandoned Tasks or Tasks that failed to meet an SLA. | + **EndDate** | **optional.Time**| Only include usage that occurred on or before this date, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. | + **Minutes** | **optional.Int32**| Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. | + **StartDate** | **optional.Time**| Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | + **TaskChannel** | **optional.String**| Only calculate cumulative statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | + **SplitByWaitTime** | **optional.String**| A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. For example, `5,30` would show splits of Tasks that were canceled or accepted before and after 5 seconds and before and after 30 seconds. This can be used to show short abandoned Tasks or Tasks that failed to meet an SLA. | ### Return type @@ -1332,7 +1332,7 @@ Name | Type | Description | Notes ## FetchWorkflowRealTimeStatistics -> TaskrouterV1WorkspaceWorkflowWorkflowRealTimeStatistics FetchWorkflowRealTimeStatistics(ctx, workspaceSid, workflowSid, optional) +> TaskrouterV1WorkspaceWorkflowWorkflowRealTimeStatistics FetchWorkflowRealTimeStatistics(ctx, WorkspaceSid, WorkflowSid, optional) @@ -1342,8 +1342,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the Workflow to fetch. | -**workflowSid** | **string**| Returns the list of Tasks that are being controlled by the Workflow with the specified SID value. | +**WorkspaceSid** | **string**| The SID of the Workspace with the Workflow to fetch. | +**WorkflowSid** | **string**| Returns the list of Tasks that are being controlled by the Workflow with the specified SID value. | **optional** | ***FetchWorkflowRealTimeStatisticsOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1355,7 +1355,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **taskChannel** | **optional.String**| Only calculate real-time statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | + **TaskChannel** | **optional.String**| Only calculate real-time statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | ### Return type @@ -1377,7 +1377,7 @@ Name | Type | Description | Notes ## FetchWorkflowStatistics -> TaskrouterV1WorkspaceWorkflowWorkflowStatistics FetchWorkflowStatistics(ctx, workspaceSid, workflowSid, optional) +> TaskrouterV1WorkspaceWorkflowWorkflowStatistics FetchWorkflowStatistics(ctx, WorkspaceSid, WorkflowSid, optional) @@ -1387,8 +1387,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the Workflow to fetch. | -**workflowSid** | **string**| Returns the list of Tasks that are being controlled by the Workflow with the specified SID value. | +**WorkspaceSid** | **string**| The SID of the Workspace with the Workflow to fetch. | +**WorkflowSid** | **string**| Returns the list of Tasks that are being controlled by the Workflow with the specified SID value. | **optional** | ***FetchWorkflowStatisticsOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1400,11 +1400,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **minutes** | **optional.Int32**| Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. | - **startDate** | **optional.Time**| Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | - **endDate** | **optional.Time**| Only calculate statistics from this date and time and earlier, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. | - **taskChannel** | **optional.String**| Only calculate real-time statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | - **splitByWaitTime** | **optional.String**| A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. For example, `5,30` would show splits of Tasks that were canceled or accepted before and after 5 seconds and before and after 30 seconds. This can be used to show short abandoned Tasks or Tasks that failed to meet an SLA. | + **Minutes** | **optional.Int32**| Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. | + **StartDate** | **optional.Time**| Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | + **EndDate** | **optional.Time**| Only calculate statistics from this date and time and earlier, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. | + **TaskChannel** | **optional.String**| Only calculate real-time statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | + **SplitByWaitTime** | **optional.String**| A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. For example, `5,30` would show splits of Tasks that were canceled or accepted before and after 5 seconds and before and after 30 seconds. This can be used to show short abandoned Tasks or Tasks that failed to meet an SLA. | ### Return type @@ -1426,7 +1426,7 @@ Name | Type | Description | Notes ## FetchWorkspace -> TaskrouterV1Workspace FetchWorkspace(ctx, sid) +> TaskrouterV1Workspace FetchWorkspace(ctx, Sid) @@ -1436,7 +1436,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Workspace resource to fetch. | +**Sid** | **string**| The SID of the Workspace resource to fetch. | ### Return type @@ -1458,7 +1458,7 @@ Name | Type | Description | Notes ## FetchWorkspaceCumulativeStatistics -> TaskrouterV1WorkspaceWorkspaceCumulativeStatistics FetchWorkspaceCumulativeStatistics(ctx, workspaceSid, optional) +> TaskrouterV1WorkspaceWorkspaceCumulativeStatistics FetchWorkspaceCumulativeStatistics(ctx, WorkspaceSid, optional) @@ -1468,7 +1468,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace to fetch. | +**WorkspaceSid** | **string**| The SID of the Workspace to fetch. | **optional** | ***FetchWorkspaceCumulativeStatisticsOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1479,11 +1479,11 @@ Optional parameters are passed through a pointer to a FetchWorkspaceCumulativeSt Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **endDate** | **optional.Time**| Only include usage that occurred on or before this date, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. | - **minutes** | **optional.Int32**| Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. | - **startDate** | **optional.Time**| Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | - **taskChannel** | **optional.String**| Only calculate cumulative statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | - **splitByWaitTime** | **optional.String**| A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. For example, `5,30` would show splits of Tasks that were canceled or accepted before and after 5 seconds and before and after 30 seconds. This can be used to show short abandoned Tasks or Tasks that failed to meet an SLA. | + **EndDate** | **optional.Time**| Only include usage that occurred on or before this date, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. | + **Minutes** | **optional.Int32**| Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. | + **StartDate** | **optional.Time**| Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | + **TaskChannel** | **optional.String**| Only calculate cumulative statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | + **SplitByWaitTime** | **optional.String**| A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. For example, `5,30` would show splits of Tasks that were canceled or accepted before and after 5 seconds and before and after 30 seconds. This can be used to show short abandoned Tasks or Tasks that failed to meet an SLA. | ### Return type @@ -1505,7 +1505,7 @@ Name | Type | Description | Notes ## FetchWorkspaceRealTimeStatistics -> TaskrouterV1WorkspaceWorkspaceRealTimeStatistics FetchWorkspaceRealTimeStatistics(ctx, workspaceSid, optional) +> TaskrouterV1WorkspaceWorkspaceRealTimeStatistics FetchWorkspaceRealTimeStatistics(ctx, WorkspaceSid, optional) @@ -1515,7 +1515,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace to fetch. | +**WorkspaceSid** | **string**| The SID of the Workspace to fetch. | **optional** | ***FetchWorkspaceRealTimeStatisticsOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1526,7 +1526,7 @@ Optional parameters are passed through a pointer to a FetchWorkspaceRealTimeStat Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **taskChannel** | **optional.String**| Only calculate real-time statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | + **TaskChannel** | **optional.String**| Only calculate real-time statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | ### Return type @@ -1548,7 +1548,7 @@ Name | Type | Description | Notes ## FetchWorkspaceStatistics -> TaskrouterV1WorkspaceWorkspaceStatistics FetchWorkspaceStatistics(ctx, workspaceSid, optional) +> TaskrouterV1WorkspaceWorkspaceStatistics FetchWorkspaceStatistics(ctx, WorkspaceSid, optional) @@ -1558,7 +1558,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace to fetch. | +**WorkspaceSid** | **string**| The SID of the Workspace to fetch. | **optional** | ***FetchWorkspaceStatisticsOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1569,11 +1569,11 @@ Optional parameters are passed through a pointer to a FetchWorkspaceStatisticsOp Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **minutes** | **optional.Int32**| Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. | - **startDate** | **optional.Time**| Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | - **endDate** | **optional.Time**| Only calculate statistics from this date and time and earlier, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. | - **taskChannel** | **optional.String**| Only calculate statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | - **splitByWaitTime** | **optional.String**| A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. For example, `5,30` would show splits of Tasks that were canceled or accepted before and after 5 seconds and before and after 30 seconds. This can be used to show short abandoned Tasks or Tasks that failed to meet an SLA. | + **Minutes** | **optional.Int32**| Only calculate statistics since this many minutes in the past. The default 15 minutes. This is helpful for displaying statistics for the last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends. | + **StartDate** | **optional.Time**| Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | + **EndDate** | **optional.Time**| Only calculate statistics from this date and time and earlier, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. | + **TaskChannel** | **optional.String**| Only calculate statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | + **SplitByWaitTime** | **optional.String**| A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. For example, `5,30` would show splits of Tasks that were canceled or accepted before and after 5 seconds and before and after 30 seconds. This can be used to show short abandoned Tasks or Tasks that failed to meet an SLA. | ### Return type @@ -1595,7 +1595,7 @@ Name | Type | Description | Notes ## ListActivity -> TaskrouterV1WorkspaceActivityReadResponse ListActivity(ctx, workspaceSid, optional) +> TaskrouterV1WorkspaceActivityReadResponse ListActivity(ctx, WorkspaceSid, optional) @@ -1605,7 +1605,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the Activity resources to read. | +**WorkspaceSid** | **string**| The SID of the Workspace with the Activity resources to read. | **optional** | ***ListActivityOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1616,9 +1616,9 @@ Optional parameters are passed through a pointer to a ListActivityOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| The `friendly_name` of the Activity resources to read. | - **available** | **optional.String**| Whether return only Activity resources that are available or unavailable. A value of `true` returns only available activities. Values of '1' or `yes` also indicate `true`. All other values represent `false` and return activities that are unavailable. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **FriendlyName** | **optional.String**| The `friendly_name` of the Activity resources to read. | + **Available** | **optional.String**| Whether return only Activity resources that are available or unavailable. A value of `true` returns only available activities. Values of '1' or `yes` also indicate `true`. All other values represent `false` and return activities that are unavailable. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1640,7 +1640,7 @@ Name | Type | Description | Notes ## ListEvent -> TaskrouterV1WorkspaceEventReadResponse ListEvent(ctx, workspaceSid, optional) +> TaskrouterV1WorkspaceEventReadResponse ListEvent(ctx, WorkspaceSid, optional) @@ -1650,7 +1650,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the Events to read. Returns only the Events that pertain to the specified Workspace. | +**WorkspaceSid** | **string**| The SID of the Workspace with the Events to read. Returns only the Events that pertain to the specified Workspace. | **optional** | ***ListEventOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1661,18 +1661,18 @@ Optional parameters are passed through a pointer to a ListEventOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **endDate** | **optional.Time**| Only include Events that occurred on or before this date, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. | - **eventType** | **optional.String**| The type of Events to read. Returns only Events of the type specified. | - **minutes** | **optional.Int32**| The period of events to read in minutes. Returns only Events that occurred since this many minutes in the past. The default is `15` minutes. Task Attributes for Events occuring more 43,200 minutes ago will be redacted. | - **reservationSid** | **optional.String**| The SID of the Reservation with the Events to read. Returns only Events that pertain to the specified Reservation. | - **startDate** | **optional.Time**| Only include Events from on or after this date and time, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Task Attributes for Events older than 30 days will be redacted. | - **taskQueueSid** | **optional.String**| The SID of the TaskQueue with the Events to read. Returns only the Events that pertain to the specified TaskQueue. | - **taskSid** | **optional.String**| The SID of the Task with the Events to read. Returns only the Events that pertain to the specified Task. | - **workerSid** | **optional.String**| The SID of the Worker with the Events to read. Returns only the Events that pertain to the specified Worker. | - **workflowSid** | **optional.String**| The SID of the Workflow with the Events to read. Returns only the Events that pertain to the specified Workflow. | - **taskChannel** | **optional.String**| The TaskChannel with the Events to read. Returns only the Events that pertain to the specified TaskChannel. | - **sid** | **optional.String**| The SID of the Event resource to read. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **EndDate** | **optional.Time**| Only include Events that occurred on or before this date, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. | + **EventType** | **optional.String**| The type of Events to read. Returns only Events of the type specified. | + **Minutes** | **optional.Int32**| The period of events to read in minutes. Returns only Events that occurred since this many minutes in the past. The default is `15` minutes. Task Attributes for Events occuring more 43,200 minutes ago will be redacted. | + **ReservationSid** | **optional.String**| The SID of the Reservation with the Events to read. Returns only Events that pertain to the specified Reservation. | + **StartDate** | **optional.Time**| Only include Events from on or after this date and time, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Task Attributes for Events older than 30 days will be redacted. | + **TaskQueueSid** | **optional.String**| The SID of the TaskQueue with the Events to read. Returns only the Events that pertain to the specified TaskQueue. | + **TaskSid** | **optional.String**| The SID of the Task with the Events to read. Returns only the Events that pertain to the specified Task. | + **WorkerSid** | **optional.String**| The SID of the Worker with the Events to read. Returns only the Events that pertain to the specified Worker. | + **WorkflowSid** | **optional.String**| The SID of the Workflow with the Events to read. Returns only the Events that pertain to the specified Workflow. | + **TaskChannel** | **optional.String**| The TaskChannel with the Events to read. Returns only the Events that pertain to the specified TaskChannel. | + **Sid** | **optional.String**| The SID of the Event resource to read. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1694,7 +1694,7 @@ Name | Type | Description | Notes ## ListTask -> TaskrouterV1WorkspaceTaskReadResponse ListTask(ctx, workspaceSid, optional) +> TaskrouterV1WorkspaceTaskReadResponse ListTask(ctx, WorkspaceSid, optional) @@ -1704,7 +1704,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the Tasks to read. | +**WorkspaceSid** | **string**| The SID of the Workspace with the Tasks to read. | **optional** | ***ListTaskOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1715,16 +1715,16 @@ Optional parameters are passed through a pointer to a ListTaskOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **priority** | **optional.Int32**| The priority value of the Tasks to read. Returns the list of all Tasks in the Workspace with the specified priority. | - **assignmentStatus** | [**optional.Interface of []string**](string.md)| The `assignment_status` of the Tasks you want to read. Can be: `pending`, `reserved`, `assigned`, `canceled`, `wrapping`, or `completed`. Returns all Tasks in the Workspace with the specified `assignment_status`. | - **workflowSid** | **optional.String**| The SID of the Workflow with the Tasks to read. Returns the Tasks controlled by the Workflow identified by this SID. | - **workflowName** | **optional.String**| The friendly name of the Workflow with the Tasks to read. Returns the Tasks controlled by the Workflow identified by this friendly name. | - **taskQueueSid** | **optional.String**| The SID of the TaskQueue with the Tasks to read. Returns the Tasks waiting in the TaskQueue identified by this SID. | - **taskQueueName** | **optional.String**| The `friendly_name` of the TaskQueue with the Tasks to read. Returns the Tasks waiting in the TaskQueue identified by this friendly name. | - **evaluateTaskAttributes** | **optional.String**| The attributes of the Tasks to read. Returns the Tasks that match the attributes specified in this parameter. | - **ordering** | **optional.String**| How to order the returned Task resources. y default, Tasks are sorted by ascending DateCreated. This value is specified as: `Attribute:Order`, where `Attribute` can be either `Priority` or `DateCreated` and `Order` can be either `asc` or `desc`. For example, `Priority:desc` returns Tasks ordered in descending order of their Priority. Multiple sort orders can be specified in a comma-separated list such as `Priority:desc,DateCreated:asc`, which returns the Tasks in descending Priority order and ascending DateCreated Order. | - **hasAddons** | **optional.Bool**| Whether to read Tasks with addons. If `true`, returns only Tasks with addons. If `false`, returns only Tasks without addons. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Priority** | **optional.Int32**| The priority value of the Tasks to read. Returns the list of all Tasks in the Workspace with the specified priority. | + **AssignmentStatus** | [**optional.Interface of []string**](string.md)| The `assignment_status` of the Tasks you want to read. Can be: `pending`, `reserved`, `assigned`, `canceled`, `wrapping`, or `completed`. Returns all Tasks in the Workspace with the specified `assignment_status`. | + **WorkflowSid** | **optional.String**| The SID of the Workflow with the Tasks to read. Returns the Tasks controlled by the Workflow identified by this SID. | + **WorkflowName** | **optional.String**| The friendly name of the Workflow with the Tasks to read. Returns the Tasks controlled by the Workflow identified by this friendly name. | + **TaskQueueSid** | **optional.String**| The SID of the TaskQueue with the Tasks to read. Returns the Tasks waiting in the TaskQueue identified by this SID. | + **TaskQueueName** | **optional.String**| The `friendly_name` of the TaskQueue with the Tasks to read. Returns the Tasks waiting in the TaskQueue identified by this friendly name. | + **EvaluateTaskAttributes** | **optional.String**| The attributes of the Tasks to read. Returns the Tasks that match the attributes specified in this parameter. | + **Ordering** | **optional.String**| How to order the returned Task resources. y default, Tasks are sorted by ascending DateCreated. This value is specified as: `Attribute:Order`, where `Attribute` can be either `Priority` or `DateCreated` and `Order` can be either `asc` or `desc`. For example, `Priority:desc` returns Tasks ordered in descending order of their Priority. Multiple sort orders can be specified in a comma-separated list such as `Priority:desc,DateCreated:asc`, which returns the Tasks in descending Priority order and ascending DateCreated Order. | + **HasAddons** | **optional.Bool**| Whether to read Tasks with addons. If `true`, returns only Tasks with addons. If `false`, returns only Tasks without addons. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1746,7 +1746,7 @@ Name | Type | Description | Notes ## ListTaskChannel -> TaskrouterV1WorkspaceTaskChannelReadResponse ListTaskChannel(ctx, workspaceSid, optional) +> TaskrouterV1WorkspaceTaskChannelReadResponse ListTaskChannel(ctx, WorkspaceSid, optional) @@ -1756,7 +1756,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the Task Channel to read. | +**WorkspaceSid** | **string**| The SID of the Workspace with the Task Channel to read. | **optional** | ***ListTaskChannelOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1767,7 +1767,7 @@ Optional parameters are passed through a pointer to a ListTaskChannelOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1789,7 +1789,7 @@ Name | Type | Description | Notes ## ListTaskQueue -> TaskrouterV1WorkspaceTaskQueueReadResponse ListTaskQueue(ctx, workspaceSid, optional) +> TaskrouterV1WorkspaceTaskQueueReadResponse ListTaskQueue(ctx, WorkspaceSid, optional) @@ -1799,7 +1799,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the TaskQueue to read. | +**WorkspaceSid** | **string**| The SID of the Workspace with the TaskQueue to read. | **optional** | ***ListTaskQueueOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1810,10 +1810,10 @@ Optional parameters are passed through a pointer to a ListTaskQueueOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| The `friendly_name` of the TaskQueue resources to read. | - **evaluateWorkerAttributes** | **optional.String**| The attributes of the Workers to read. Returns the TaskQueues with Workers that match the attributes specified in this parameter. | - **workerSid** | **optional.String**| The SID of the Worker with the TaskQueue resources to read. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **FriendlyName** | **optional.String**| The `friendly_name` of the TaskQueue resources to read. | + **EvaluateWorkerAttributes** | **optional.String**| The attributes of the Workers to read. Returns the TaskQueues with Workers that match the attributes specified in this parameter. | + **WorkerSid** | **optional.String**| The SID of the Worker with the TaskQueue resources to read. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1835,7 +1835,7 @@ Name | Type | Description | Notes ## ListTaskQueuesStatistics -> TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse ListTaskQueuesStatistics(ctx, workspaceSid, optional) +> TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse ListTaskQueuesStatistics(ctx, WorkspaceSid, optional) @@ -1845,7 +1845,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the TaskQueues to read. | +**WorkspaceSid** | **string**| The SID of the Workspace with the TaskQueues to read. | **optional** | ***ListTaskQueuesStatisticsOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1856,13 +1856,13 @@ Optional parameters are passed through a pointer to a ListTaskQueuesStatisticsOp Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **endDate** | **optional.Time**| Only calculate statistics from this date and time and earlier, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. | - **friendlyName** | **optional.String**| The `friendly_name` of the TaskQueue statistics to read. | - **minutes** | **optional.Int32**| Only calculate statistics since this many minutes in the past. The default is 15 minutes. | - **startDate** | **optional.Time**| Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | - **taskChannel** | **optional.String**| Only calculate statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | - **splitByWaitTime** | **optional.String**| A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **EndDate** | **optional.Time**| Only calculate statistics from this date and time and earlier, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time. | + **FriendlyName** | **optional.String**| The `friendly_name` of the TaskQueue statistics to read. | + **Minutes** | **optional.Int32**| Only calculate statistics since this many minutes in the past. The default is 15 minutes. | + **StartDate** | **optional.Time**| Only calculate statistics from this date and time and later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. | + **TaskChannel** | **optional.String**| Only calculate statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | + **SplitByWaitTime** | **optional.String**| A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1884,7 +1884,7 @@ Name | Type | Description | Notes ## ListTaskReservation -> TaskrouterV1WorkspaceTaskTaskReservationReadResponse ListTaskReservation(ctx, workspaceSid, taskSid, optional) +> TaskrouterV1WorkspaceTaskTaskReservationReadResponse ListTaskReservation(ctx, WorkspaceSid, TaskSid, optional) @@ -1894,8 +1894,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the TaskReservation resources to read. | -**taskSid** | **string**| The SID of the reserved Task resource with the TaskReservation resources to read. | +**WorkspaceSid** | **string**| The SID of the Workspace with the TaskReservation resources to read. | +**TaskSid** | **string**| The SID of the reserved Task resource with the TaskReservation resources to read. | **optional** | ***ListTaskReservationOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1907,8 +1907,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **reservationStatus** | **optional.String**| Returns the list of reservations for a task with a specified ReservationStatus. Can be: `pending`, `accepted`, `rejected`, or `timeout`. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **ReservationStatus** | **optional.String**| Returns the list of reservations for a task with a specified ReservationStatus. Can be: `pending`, `accepted`, `rejected`, or `timeout`. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1930,7 +1930,7 @@ Name | Type | Description | Notes ## ListWorker -> TaskrouterV1WorkspaceWorkerReadResponse ListWorker(ctx, workspaceSid, optional) +> TaskrouterV1WorkspaceWorkerReadResponse ListWorker(ctx, WorkspaceSid, optional) @@ -1940,7 +1940,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the Workers to read. | +**WorkspaceSid** | **string**| The SID of the Workspace with the Workers to read. | **optional** | ***ListWorkerOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1951,14 +1951,14 @@ Optional parameters are passed through a pointer to a ListWorkerOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **activityName** | **optional.String**| The `activity_name` of the Worker resources to read. | - **activitySid** | **optional.String**| The `activity_sid` of the Worker resources to read. | - **available** | **optional.String**| Whether to return only Worker resources that are available or unavailable. Can be `true`, `1`, or `yes` to return Worker resources that are available, and `false`, or any value returns the Worker resources that are not available. | - **friendlyName** | **optional.String**| The `friendly_name` of the Worker resources to read. | - **targetWorkersExpression** | **optional.String**| Filter by Workers that would match an expression on a TaskQueue. This is helpful for debugging which Workers would match a potential queue. | - **taskQueueName** | **optional.String**| The `friendly_name` of the TaskQueue that the Workers to read are eligible for. | - **taskQueueSid** | **optional.String**| The SID of the TaskQueue that the Workers to read are eligible for. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **ActivityName** | **optional.String**| The `activity_name` of the Worker resources to read. | + **ActivitySid** | **optional.String**| The `activity_sid` of the Worker resources to read. | + **Available** | **optional.String**| Whether to return only Worker resources that are available or unavailable. Can be `true`, `1`, or `yes` to return Worker resources that are available, and `false`, or any value returns the Worker resources that are not available. | + **FriendlyName** | **optional.String**| The `friendly_name` of the Worker resources to read. | + **TargetWorkersExpression** | **optional.String**| Filter by Workers that would match an expression on a TaskQueue. This is helpful for debugging which Workers would match a potential queue. | + **TaskQueueName** | **optional.String**| The `friendly_name` of the TaskQueue that the Workers to read are eligible for. | + **TaskQueueSid** | **optional.String**| The SID of the TaskQueue that the Workers to read are eligible for. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1980,7 +1980,7 @@ Name | Type | Description | Notes ## ListWorkerChannel -> TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse ListWorkerChannel(ctx, workspaceSid, workerSid, optional) +> TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse ListWorkerChannel(ctx, WorkspaceSid, WorkerSid, optional) @@ -1990,8 +1990,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the WorkerChannels to read. | -**workerSid** | **string**| The SID of the Worker with the WorkerChannels to read. | +**WorkspaceSid** | **string**| The SID of the Workspace with the WorkerChannels to read. | +**WorkerSid** | **string**| The SID of the Worker with the WorkerChannels to read. | **optional** | ***ListWorkerChannelOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2003,7 +2003,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -2025,7 +2025,7 @@ Name | Type | Description | Notes ## ListWorkerReservation -> TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse ListWorkerReservation(ctx, workspaceSid, workerSid, optional) +> TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse ListWorkerReservation(ctx, WorkspaceSid, WorkerSid, optional) @@ -2035,8 +2035,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the WorkerReservation resources to read. | -**workerSid** | **string**| The SID of the reserved Worker resource with the WorkerReservation resources to read. | +**WorkspaceSid** | **string**| The SID of the Workspace with the WorkerReservation resources to read. | +**WorkerSid** | **string**| The SID of the reserved Worker resource with the WorkerReservation resources to read. | **optional** | ***ListWorkerReservationOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2048,8 +2048,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **reservationStatus** | **optional.String**| Returns the list of reservations for a worker with a specified ReservationStatus. Can be: `pending`, `accepted`, `rejected`, `timeout`, `canceled`, or `rescinded`. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **ReservationStatus** | **optional.String**| Returns the list of reservations for a worker with a specified ReservationStatus. Can be: `pending`, `accepted`, `rejected`, `timeout`, `canceled`, or `rescinded`. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -2071,7 +2071,7 @@ Name | Type | Description | Notes ## ListWorkflow -> TaskrouterV1WorkspaceWorkflowReadResponse ListWorkflow(ctx, workspaceSid, optional) +> TaskrouterV1WorkspaceWorkflowReadResponse ListWorkflow(ctx, WorkspaceSid, optional) @@ -2081,7 +2081,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the Workflow to read. | +**WorkspaceSid** | **string**| The SID of the Workspace with the Workflow to read. | **optional** | ***ListWorkflowOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2092,8 +2092,8 @@ Optional parameters are passed through a pointer to a ListWorkflowOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| The `friendly_name` of the Workflow resources to read. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **FriendlyName** | **optional.String**| The `friendly_name` of the Workflow resources to read. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -2134,8 +2134,8 @@ Optional parameters are passed through a pointer to a ListWorkspaceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| The `friendly_name` of the Workspace resources to read. For example `Customer Support` or `2014 Election Campaign`. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **FriendlyName** | **optional.String**| The `friendly_name` of the Workspace resources to read. For example `Customer Support` or `2014 Election Campaign`. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -2157,7 +2157,7 @@ Name | Type | Description | Notes ## UpdateActivity -> TaskrouterV1WorkspaceActivity UpdateActivity(ctx, workspaceSid, sid, optional) +> TaskrouterV1WorkspaceActivity UpdateActivity(ctx, WorkspaceSid, Sid, optional) @@ -2167,8 +2167,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the Activity resources to update. | -**sid** | **string**| The SID of the Activity resource to update. | +**WorkspaceSid** | **string**| The SID of the Workspace with the Activity resources to update. | +**Sid** | **string**| The SID of the Activity resource to update. | **optional** | ***UpdateActivityOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2180,7 +2180,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| A descriptive string that you create to describe the Activity resource. It can be up to 64 characters long. These names are used to calculate and expose statistics about Workers, and provide visibility into the state of each Worker. Examples of friendly names include: `on-call`, `break`, and `email`. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the Activity resource. It can be up to 64 characters long. These names are used to calculate and expose statistics about Workers, and provide visibility into the state of each Worker. Examples of friendly names include: `on-call`, `break`, and `email`. | ### Return type @@ -2202,7 +2202,7 @@ Name | Type | Description | Notes ## UpdateTask -> TaskrouterV1WorkspaceTask UpdateTask(ctx, workspaceSid, sid, optional) +> TaskrouterV1WorkspaceTask UpdateTask(ctx, WorkspaceSid, Sid, optional) @@ -2212,8 +2212,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the Task to update. | -**sid** | **string**| The SID of the Task resource to update. | +**WorkspaceSid** | **string**| The SID of the Workspace with the Task to update. | +**Sid** | **string**| The SID of the Task resource to update. | **optional** | ***UpdateTaskOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2225,11 +2225,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **assignmentStatus** | **optional.String**| The new status of the task. Can be: `canceled`, to cancel a Task that is currently `pending` or `reserved`; `wrapping`, to move the Task to wrapup state; or `completed`, to move a Task to the completed state. | - **attributes** | **optional.String**| The JSON string that describes the custom attributes of the task. | - **priority** | **optional.Int32**| The Task's new priority value. When supplied, the Task takes on the specified priority unless it matches a Workflow Target with a Priority set. Value can be 0 to 2^31^ (2,147,483,647). | - **reason** | **optional.String**| The reason that the Task was canceled or completed. This parameter is required only if the Task is canceled or completed. Setting this value queues the task for deletion and logs the reason. | - **taskChannel** | **optional.String**| When MultiTasking is enabled, specify the TaskChannel with the task to update. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | + **AssignmentStatus** | **optional.String**| The new status of the task. Can be: `canceled`, to cancel a Task that is currently `pending` or `reserved`; `wrapping`, to move the Task to wrapup state; or `completed`, to move a Task to the completed state. | + **Attributes** | **optional.String**| The JSON string that describes the custom attributes of the task. | + **Priority** | **optional.Int32**| The Task's new priority value. When supplied, the Task takes on the specified priority unless it matches a Workflow Target with a Priority set. Value can be 0 to 2^31^ (2,147,483,647). | + **Reason** | **optional.String**| The reason that the Task was canceled or completed. This parameter is required only if the Task is canceled or completed. Setting this value queues the task for deletion and logs the reason. | + **TaskChannel** | **optional.String**| When MultiTasking is enabled, specify the TaskChannel with the task to update. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. | ### Return type @@ -2251,7 +2251,7 @@ Name | Type | Description | Notes ## UpdateTaskChannel -> TaskrouterV1WorkspaceTaskChannel UpdateTaskChannel(ctx, workspaceSid, sid, optional) +> TaskrouterV1WorkspaceTaskChannel UpdateTaskChannel(ctx, WorkspaceSid, Sid, optional) @@ -2261,8 +2261,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the Task Channel to update. | -**sid** | **string**| The SID of the Task Channel resource to update. | +**WorkspaceSid** | **string**| The SID of the Workspace with the Task Channel to update. | +**Sid** | **string**| The SID of the Task Channel resource to update. | **optional** | ***UpdateTaskChannelOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2274,8 +2274,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **channelOptimizedRouting** | **optional.Bool**| Whether the TaskChannel should prioritize Workers that have been idle. If `true`, Workers that have been idle the longest are prioritized. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the Task Channel. It can be up to 64 characters long. | + **ChannelOptimizedRouting** | **optional.Bool**| Whether the TaskChannel should prioritize Workers that have been idle. If `true`, Workers that have been idle the longest are prioritized. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the Task Channel. It can be up to 64 characters long. | ### Return type @@ -2297,7 +2297,7 @@ Name | Type | Description | Notes ## UpdateTaskQueue -> TaskrouterV1WorkspaceTaskQueue UpdateTaskQueue(ctx, workspaceSid, sid, optional) +> TaskrouterV1WorkspaceTaskQueue UpdateTaskQueue(ctx, WorkspaceSid, Sid, optional) @@ -2307,8 +2307,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the TaskQueue to update. | -**sid** | **string**| The SID of the TaskQueue resource to update. | +**WorkspaceSid** | **string**| The SID of the Workspace with the TaskQueue to update. | +**Sid** | **string**| The SID of the TaskQueue resource to update. | **optional** | ***UpdateTaskQueueOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2320,12 +2320,12 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **assignmentActivitySid** | **optional.String**| The SID of the Activity to assign Workers when a task is assigned for them. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the TaskQueue. For example `Support-Tier 1`, `Sales`, or `Escalation`. | - **maxReservedWorkers** | **optional.Int32**| The maximum number of Workers to create reservations for the assignment of a task while in the queue. Maximum of 50. | - **reservationActivitySid** | **optional.String**| The SID of the Activity to assign Workers when a task is reserved for them. | - **targetWorkers** | **optional.String**| A string describing the Worker selection criteria for any Tasks that enter the TaskQueue. For example '\\\"language\\\" == \\\"spanish\\\"' If no TargetWorkers parameter is provided, Tasks will wait in the queue until they are either deleted or moved to another queue. Additional examples on how to describing Worker selection criteria below. | - **taskOrder** | **optional.String**| How Tasks will be assigned to Workers. Can be: `FIFO` or `LIFO` and the default is `FIFO`. Use `FIFO` to assign the oldest task first and `LIFO` to assign the most recent task first. For more information, see [Queue Ordering](https://www.twilio.com/docs/taskrouter/queue-ordering-last-first-out-lifo). | + **AssignmentActivitySid** | **optional.String**| The SID of the Activity to assign Workers when a task is assigned for them. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the TaskQueue. For example `Support-Tier 1`, `Sales`, or `Escalation`. | + **MaxReservedWorkers** | **optional.Int32**| The maximum number of Workers to create reservations for the assignment of a task while in the queue. Maximum of 50. | + **ReservationActivitySid** | **optional.String**| The SID of the Activity to assign Workers when a task is reserved for them. | + **TargetWorkers** | **optional.String**| A string describing the Worker selection criteria for any Tasks that enter the TaskQueue. For example '\\\"language\\\" == \\\"spanish\\\"' If no TargetWorkers parameter is provided, Tasks will wait in the queue until they are either deleted or moved to another queue. Additional examples on how to describing Worker selection criteria below. | + **TaskOrder** | **optional.String**| How Tasks will be assigned to Workers. Can be: `FIFO` or `LIFO` and the default is `FIFO`. Use `FIFO` to assign the oldest task first and `LIFO` to assign the most recent task first. For more information, see [Queue Ordering](https://www.twilio.com/docs/taskrouter/queue-ordering-last-first-out-lifo). | ### Return type @@ -2347,7 +2347,7 @@ Name | Type | Description | Notes ## UpdateTaskReservation -> TaskrouterV1WorkspaceTaskTaskReservation UpdateTaskReservation(ctx, workspaceSid, taskSid, sid, optional) +> TaskrouterV1WorkspaceTaskTaskReservation UpdateTaskReservation(ctx, WorkspaceSid, TaskSid, Sid, optional) @@ -2357,9 +2357,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the TaskReservation resources to update. | -**taskSid** | **string**| The SID of the reserved Task resource with the TaskReservation resources to update. | -**sid** | **string**| The SID of the TaskReservation resource to update. | +**WorkspaceSid** | **string**| The SID of the Workspace with the TaskReservation resources to update. | +**TaskSid** | **string**| The SID of the reserved Task resource with the TaskReservation resources to update. | +**Sid** | **string**| The SID of the TaskReservation resource to update. | **optional** | ***UpdateTaskReservationOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2372,59 +2372,59 @@ Name | Type | Description | Notes - **beep** | **optional.String**| Whether to play a notification beep when the participant joins or when to play a beep. Can be: `true`, `false`, `onEnter`, or `onExit`. The default value is `true`. | - **beepOnCustomerEntrance** | **optional.Bool**| Whether to play a notification beep when the customer joins. | - **callAccept** | **optional.Bool**| Whether to accept a reservation when executing a Call instruction. | - **callFrom** | **optional.String**| The Caller ID of the outbound call when executing a Call instruction. | - **callRecord** | **optional.String**| Whether to record both legs of a call when executing a Call instruction or which leg to record. | - **callStatusCallbackUrl** | **optional.String**| The URL to call for the completed call event when executing a Call instruction. | - **callTimeout** | **optional.Int32**| Timeout for call when executing a Call instruction. | - **callTo** | **optional.String**| The Contact URI of the worker when executing a Call instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the [E.164](https://www.twilio.com/docs/glossary/what-e164) formatted phone number, depending on the destination. | - **callUrl** | **optional.String**| TwiML URI executed on answering the worker's leg as a result of the Call instruction. | - **conferenceRecord** | **optional.String**| Whether to record the conference the participant is joining or when to record the conference. Can be: `true`, `false`, `record-from-start`, and `do-not-record`. The default value is `false`. | - **conferenceRecordingStatusCallback** | **optional.String**| The URL we should call using the `conference_recording_status_callback_method` when the conference recording is available. | - **conferenceRecordingStatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `conference_recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | - **conferenceStatusCallback** | **optional.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. | - **conferenceStatusCallbackEvent** | [**optional.Interface of []string**](string.md)| The conference status events that we will send to `conference_status_callback`. Can be: `start`, `end`, `join`, `leave`, `mute`, `hold`, `speaker`. | - **conferenceStatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | - **conferenceTrim** | **optional.String**| How to trim the leading and trailing silence from your recorded conference audio files. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. | - **dequeueFrom** | **optional.String**| The Caller ID of the call to the worker when executing a Dequeue instruction. | - **dequeuePostWorkActivitySid** | **optional.String**| The SID of the Activity resource to start after executing a Dequeue instruction. | - **dequeueRecord** | **optional.String**| Whether to record both legs of a call when executing a Dequeue instruction or which leg to record. | - **dequeueStatusCallbackEvent** | [**optional.Interface of []string**](string.md)| The Call progress events sent via webhooks as a result of a Dequeue instruction. | - **dequeueStatusCallbackUrl** | **optional.String**| The Callback URL for completed call event when executing a Dequeue instruction. | - **dequeueTimeout** | **optional.Int32**| Timeout for call when executing a Dequeue instruction. | - **dequeueTo** | **optional.String**| The Contact URI of the worker when executing a Dequeue instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the [E.164](https://www.twilio.com/docs/glossary/what-e164) formatted phone number, depending on the destination. | - **earlyMedia** | **optional.Bool**| Whether to allow an agent to hear the state of the outbound call, including ringing or disconnect messages. The default is `true`. | - **endConferenceOnCustomerExit** | **optional.Bool**| Whether to end the conference when the customer leaves. | - **endConferenceOnExit** | **optional.Bool**| Whether to end the conference when the agent leaves. | - **from** | **optional.String**| The Caller ID of the call to the worker when executing a Conference instruction. | - **instruction** | **optional.String**| The assignment instruction for reservation. | - **maxParticipants** | **optional.Int32**| The maximum number of participants in the conference. Can be a positive integer from `2` to `250`. The default value is `250`. | - **muted** | **optional.Bool**| Whether the agent is muted in the conference. The default is `false`. | - **postWorkActivitySid** | **optional.String**| The new worker activity SID after executing a Conference instruction. | - **record** | **optional.Bool**| Whether to record the participant and their conferences, including the time between conferences. The default is `false`. | - **recordingChannels** | **optional.String**| The recording channels for the final recording. Can be: `mono` or `dual` and the default is `mono`. | - **recordingStatusCallback** | **optional.String**| The URL that we should call using the `recording_status_callback_method` when the recording status changes. | - **recordingStatusCallbackMethod** | **optional.String**| The HTTP method we should use when we call `recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | - **redirectAccept** | **optional.Bool**| Whether the reservation should be accepted when executing a Redirect instruction. | - **redirectCallSid** | **optional.String**| The Call SID of the call parked in the queue when executing a Redirect instruction. | - **redirectUrl** | **optional.String**| TwiML URI to redirect the call to when executing the Redirect instruction. | - **region** | **optional.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`. | - **reservationStatus** | **optional.String**| The new status of the reservation. Can be: `pending`, `accepted`, `rejected`, or `timeout`. | - **sipAuthPassword** | **optional.String**| The SIP password for authentication. | - **sipAuthUsername** | **optional.String**| The SIP username used for authentication. | - **startConferenceOnEnter** | **optional.Bool**| Whether to start the conference when the participant joins, if it has not already started. 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. | - **statusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application. | - **statusCallbackEvent** | [**optional.Interface of []string**](string.md)| The call progress events that we will send to `status_callback`. Can be: `initiated`, `ringing`, `answered`, or `completed`. | - **statusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`. | - **supervisor** | **optional.String**| The Supervisor SID/URI when executing the Supervise instruction. | - **supervisorMode** | **optional.String**| The Supervisor mode when executing the Supervise instruction. | - **timeout** | **optional.Int32**| Timeout for call when executing a Conference instruction. | - **to** | **optional.String**| The Contact URI of the worker when executing a Conference instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the [E.164](https://www.twilio.com/docs/glossary/what-e164) formatted phone number, depending on the destination. | - **waitMethod** | **optional.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. | - **waitUrl** | **optional.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). | - **workerActivitySid** | **optional.String**| The new worker activity SID if rejecting a reservation. | + **Beep** | **optional.String**| Whether to play a notification beep when the participant joins or when to play a beep. Can be: `true`, `false`, `onEnter`, or `onExit`. The default value is `true`. | + **BeepOnCustomerEntrance** | **optional.Bool**| Whether to play a notification beep when the customer joins. | + **CallAccept** | **optional.Bool**| Whether to accept a reservation when executing a Call instruction. | + **CallFrom** | **optional.String**| The Caller ID of the outbound call when executing a Call instruction. | + **CallRecord** | **optional.String**| Whether to record both legs of a call when executing a Call instruction or which leg to record. | + **CallStatusCallbackUrl** | **optional.String**| The URL to call for the completed call event when executing a Call instruction. | + **CallTimeout** | **optional.Int32**| Timeout for call when executing a Call instruction. | + **CallTo** | **optional.String**| The Contact URI of the worker when executing a Call instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the [E.164](https://www.twilio.com/docs/glossary/what-e164) formatted phone number, depending on the destination. | + **CallUrl** | **optional.String**| TwiML URI executed on answering the worker's leg as a result of the Call instruction. | + **ConferenceRecord** | **optional.String**| Whether to record the conference the participant is joining or when to record the conference. Can be: `true`, `false`, `record-from-start`, and `do-not-record`. The default value is `false`. | + **ConferenceRecordingStatusCallback** | **optional.String**| The URL we should call using the `conference_recording_status_callback_method` when the conference recording is available. | + **ConferenceRecordingStatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `conference_recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | + **ConferenceStatusCallback** | **optional.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. | + **ConferenceStatusCallbackEvent** | [**optional.Interface of []string**](string.md)| The conference status events that we will send to `conference_status_callback`. Can be: `start`, `end`, `join`, `leave`, `mute`, `hold`, `speaker`. | + **ConferenceStatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | + **ConferenceTrim** | **optional.String**| How to trim the leading and trailing silence from your recorded conference audio files. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. | + **DequeueFrom** | **optional.String**| The Caller ID of the call to the worker when executing a Dequeue instruction. | + **DequeuePostWorkActivitySid** | **optional.String**| The SID of the Activity resource to start after executing a Dequeue instruction. | + **DequeueRecord** | **optional.String**| Whether to record both legs of a call when executing a Dequeue instruction or which leg to record. | + **DequeueStatusCallbackEvent** | [**optional.Interface of []string**](string.md)| The Call progress events sent via webhooks as a result of a Dequeue instruction. | + **DequeueStatusCallbackUrl** | **optional.String**| The Callback URL for completed call event when executing a Dequeue instruction. | + **DequeueTimeout** | **optional.Int32**| Timeout for call when executing a Dequeue instruction. | + **DequeueTo** | **optional.String**| The Contact URI of the worker when executing a Dequeue instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the [E.164](https://www.twilio.com/docs/glossary/what-e164) formatted phone number, depending on the destination. | + **EarlyMedia** | **optional.Bool**| Whether to allow an agent to hear the state of the outbound call, including ringing or disconnect messages. The default is `true`. | + **EndConferenceOnCustomerExit** | **optional.Bool**| Whether to end the conference when the customer leaves. | + **EndConferenceOnExit** | **optional.Bool**| Whether to end the conference when the agent leaves. | + **From** | **optional.String**| The Caller ID of the call to the worker when executing a Conference instruction. | + **Instruction** | **optional.String**| The assignment instruction for reservation. | + **MaxParticipants** | **optional.Int32**| The maximum number of participants in the conference. Can be a positive integer from `2` to `250`. The default value is `250`. | + **Muted** | **optional.Bool**| Whether the agent is muted in the conference. The default is `false`. | + **PostWorkActivitySid** | **optional.String**| The new worker activity SID after executing a Conference instruction. | + **Record** | **optional.Bool**| Whether to record the participant and their conferences, including the time between conferences. The default is `false`. | + **RecordingChannels** | **optional.String**| The recording channels for the final recording. Can be: `mono` or `dual` and the default is `mono`. | + **RecordingStatusCallback** | **optional.String**| The URL that we should call using the `recording_status_callback_method` when the recording status changes. | + **RecordingStatusCallbackMethod** | **optional.String**| The HTTP method we should use when we call `recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | + **RedirectAccept** | **optional.Bool**| Whether the reservation should be accepted when executing a Redirect instruction. | + **RedirectCallSid** | **optional.String**| The Call SID of the call parked in the queue when executing a Redirect instruction. | + **RedirectUrl** | **optional.String**| TwiML URI to redirect the call to when executing the Redirect instruction. | + **Region** | **optional.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`. | + **ReservationStatus** | **optional.String**| The new status of the reservation. Can be: `pending`, `accepted`, `rejected`, or `timeout`. | + **SipAuthPassword** | **optional.String**| The SIP password for authentication. | + **SipAuthUsername** | **optional.String**| The SIP username used for authentication. | + **StartConferenceOnEnter** | **optional.Bool**| Whether to start the conference when the participant joins, if it has not already started. 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. | + **StatusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application. | + **StatusCallbackEvent** | [**optional.Interface of []string**](string.md)| The call progress events that we will send to `status_callback`. Can be: `initiated`, `ringing`, `answered`, or `completed`. | + **StatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`. | + **Supervisor** | **optional.String**| The Supervisor SID/URI when executing the Supervise instruction. | + **SupervisorMode** | **optional.String**| The Supervisor mode when executing the Supervise instruction. | + **Timeout** | **optional.Int32**| Timeout for call when executing a Conference instruction. | + **To** | **optional.String**| The Contact URI of the worker when executing a Conference instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the [E.164](https://www.twilio.com/docs/glossary/what-e164) formatted phone number, depending on the destination. | + **WaitMethod** | **optional.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. | + **WaitUrl** | **optional.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). | + **WorkerActivitySid** | **optional.String**| The new worker activity SID if rejecting a reservation. | ### Return type @@ -2446,7 +2446,7 @@ Name | Type | Description | Notes ## UpdateWorker -> TaskrouterV1WorkspaceWorker UpdateWorker(ctx, workspaceSid, sid, optional) +> TaskrouterV1WorkspaceWorker UpdateWorker(ctx, WorkspaceSid, Sid, optional) @@ -2456,8 +2456,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the Worker to update. | -**sid** | **string**| The SID of the Worker resource to update. | +**WorkspaceSid** | **string**| The SID of the Workspace with the Worker to update. | +**Sid** | **string**| The SID of the Worker resource to update. | **optional** | ***UpdateWorkerOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2469,10 +2469,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **activitySid** | **optional.String**| The SID of a valid Activity that will describe the Worker's initial state. See [Activities](https://www.twilio.com/docs/taskrouter/api/activity) for more information. | - **attributes** | **optional.String**| The JSON string that describes the Worker. For example: `{ \\\"email\\\": \\\"Bob@example.com\\\", \\\"phone\\\": \\\"+5095551234\\\" }`. This data is passed to the `assignment_callback_url` when TaskRouter assigns a Task to the Worker. Defaults to {}. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the Worker. It can be up to 64 characters long. | - **rejectPendingReservations** | **optional.Bool**| Whether to reject pending reservations. | + **ActivitySid** | **optional.String**| The SID of a valid Activity that will describe the Worker's initial state. See [Activities](https://www.twilio.com/docs/taskrouter/api/activity) for more information. | + **Attributes** | **optional.String**| The JSON string that describes the Worker. For example: `{ \\\"email\\\": \\\"Bob@example.com\\\", \\\"phone\\\": \\\"+5095551234\\\" }`. This data is passed to the `assignment_callback_url` when TaskRouter assigns a Task to the Worker. Defaults to {}. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the Worker. It can be up to 64 characters long. | + **RejectPendingReservations** | **optional.Bool**| Whether to reject pending reservations. | ### Return type @@ -2494,7 +2494,7 @@ Name | Type | Description | Notes ## UpdateWorkerChannel -> TaskrouterV1WorkspaceWorkerWorkerChannel UpdateWorkerChannel(ctx, workspaceSid, workerSid, sid, optional) +> TaskrouterV1WorkspaceWorkerWorkerChannel UpdateWorkerChannel(ctx, WorkspaceSid, WorkerSid, Sid, optional) @@ -2504,9 +2504,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the WorkerChannel to update. | -**workerSid** | **string**| The SID of the Worker with the WorkerChannel to update. | -**sid** | **string**| The SID of the WorkerChannel to update. | +**WorkspaceSid** | **string**| The SID of the Workspace with the WorkerChannel to update. | +**WorkerSid** | **string**| The SID of the Worker with the WorkerChannel to update. | +**Sid** | **string**| The SID of the WorkerChannel to update. | **optional** | ***UpdateWorkerChannelOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2519,8 +2519,8 @@ Name | Type | Description | Notes - **available** | **optional.Bool**| Whether the WorkerChannel is available. Set to `false` to prevent the Worker from receiving any new Tasks of this TaskChannel type. | - **capacity** | **optional.Int32**| The total number of Tasks that the Worker should handle for the TaskChannel type. TaskRouter creates reservations for Tasks of this TaskChannel type up to the specified capacity. If the capacity is 0, no new reservations will be created. | + **Available** | **optional.Bool**| Whether the WorkerChannel is available. Set to `false` to prevent the Worker from receiving any new Tasks of this TaskChannel type. | + **Capacity** | **optional.Int32**| The total number of Tasks that the Worker should handle for the TaskChannel type. TaskRouter creates reservations for Tasks of this TaskChannel type up to the specified capacity. If the capacity is 0, no new reservations will be created. | ### Return type @@ -2542,7 +2542,7 @@ Name | Type | Description | Notes ## UpdateWorkerReservation -> TaskrouterV1WorkspaceWorkerWorkerReservation UpdateWorkerReservation(ctx, workspaceSid, workerSid, sid, optional) +> TaskrouterV1WorkspaceWorkerWorkerReservation UpdateWorkerReservation(ctx, WorkspaceSid, WorkerSid, Sid, optional) @@ -2552,9 +2552,9 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the WorkerReservation resources to update. | -**workerSid** | **string**| The SID of the reserved Worker resource with the WorkerReservation resources to update. | -**sid** | **string**| The SID of the WorkerReservation resource to update. | +**WorkspaceSid** | **string**| The SID of the Workspace with the WorkerReservation resources to update. | +**WorkerSid** | **string**| The SID of the reserved Worker resource with the WorkerReservation resources to update. | +**Sid** | **string**| The SID of the WorkerReservation resource to update. | **optional** | ***UpdateWorkerReservationOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2567,57 +2567,57 @@ Name | Type | Description | Notes - **beep** | **optional.String**| Whether to play a notification beep when the participant joins or when to play a beep. Can be: `true`, `false`, `onEnter`, or `onExit`. The default value is `true`. | - **beepOnCustomerEntrance** | **optional.Bool**| Whether to play a notification beep when the customer joins. | - **callAccept** | **optional.Bool**| Whether to accept a reservation when executing a Call instruction. | - **callFrom** | **optional.String**| The Caller ID of the outbound call when executing a Call instruction. | - **callRecord** | **optional.String**| Whether to record both legs of a call when executing a Call instruction. | - **callStatusCallbackUrl** | **optional.String**| The URL to call for the completed call event when executing a Call instruction. | - **callTimeout** | **optional.Int32**| The timeout for a call when executing a Call instruction. | - **callTo** | **optional.String**| The contact URI of the worker when executing a Call instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the [E.164](https://www.twilio.com/docs/glossary/what-e164) formatted phone number, depending on the destination. | - **callUrl** | **optional.String**| TwiML URI executed on answering the worker's leg as a result of the Call instruction. | - **conferenceRecord** | **optional.String**| Whether to record the conference the participant is joining or when to record the conference. Can be: `true`, `false`, `record-from-start`, and `do-not-record`. The default value is `false`. | - **conferenceRecordingStatusCallback** | **optional.String**| The URL we should call using the `conference_recording_status_callback_method` when the conference recording is available. | - **conferenceRecordingStatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `conference_recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | - **conferenceStatusCallback** | **optional.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. | - **conferenceStatusCallbackEvent** | [**optional.Interface of []string**](string.md)| The conference status events that we will send to `conference_status_callback`. Can be: `start`, `end`, `join`, `leave`, `mute`, `hold`, `speaker`. | - **conferenceStatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | - **conferenceTrim** | **optional.String**| Whether to trim leading and trailing silence from your recorded conference audio files. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. | - **dequeueFrom** | **optional.String**| The caller ID of the call to the worker when executing a Dequeue instruction. | - **dequeuePostWorkActivitySid** | **optional.String**| The SID of the Activity resource to start after executing a Dequeue instruction. | - **dequeueRecord** | **optional.String**| Whether to record both legs of a call when executing a Dequeue instruction or which leg to record. | - **dequeueStatusCallbackEvent** | [**optional.Interface of []string**](string.md)| The call progress events sent via webhooks as a result of a Dequeue instruction. | - **dequeueStatusCallbackUrl** | **optional.String**| The callback URL for completed call event when executing a Dequeue instruction. | - **dequeueTimeout** | **optional.Int32**| The timeout for call when executing a Dequeue instruction. | - **dequeueTo** | **optional.String**| The contact URI of the worker when executing a Dequeue instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the [E.164](https://www.twilio.com/docs/glossary/what-e164) formatted phone number, depending on the destination. | - **earlyMedia** | **optional.Bool**| Whether to allow an agent to hear the state of the outbound call, including ringing or disconnect messages. The default is `true`. | - **endConferenceOnCustomerExit** | **optional.Bool**| Whether to end the conference when the customer leaves. | - **endConferenceOnExit** | **optional.Bool**| Whether to end the conference when the agent leaves. | - **from** | **optional.String**| The caller ID of the call to the worker when executing a Conference instruction. | - **instruction** | **optional.String**| The assignment instruction for the reservation. | - **maxParticipants** | **optional.Int32**| The maximum number of participants allowed in the conference. Can be a positive integer from `2` to `250`. The default value is `250`. | - **muted** | **optional.Bool**| Whether the agent is muted in the conference. Defaults to `false`. | - **postWorkActivitySid** | **optional.String**| The new worker activity SID after executing a Conference instruction. | - **record** | **optional.Bool**| Whether to record the participant and their conferences, including the time between conferences. Can be `true` or `false` and the default is `false`. | - **recordingChannels** | **optional.String**| The recording channels for the final recording. Can be: `mono` or `dual` and the default is `mono`. | - **recordingStatusCallback** | **optional.String**| The URL that we should call using the `recording_status_callback_method` when the recording status changes. | - **recordingStatusCallbackMethod** | **optional.String**| The HTTP method we should use when we call `recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | - **redirectAccept** | **optional.Bool**| Whether the reservation should be accepted when executing a Redirect instruction. | - **redirectCallSid** | **optional.String**| The Call SID of the call parked in the queue when executing a Redirect instruction. | - **redirectUrl** | **optional.String**| TwiML URI to redirect the call to when executing the Redirect instruction. | - **region** | **optional.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`. | - **reservationStatus** | **optional.String**| The new status of the reservation. Can be: `pending`, `accepted`, `rejected`, `timeout`, `canceled`, or `rescinded`. | - **sipAuthPassword** | **optional.String**| The SIP password for authentication. | - **sipAuthUsername** | **optional.String**| The SIP username used for authentication. | - **startConferenceOnEnter** | **optional.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. | - **statusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application. | - **statusCallbackEvent** | [**optional.Interface of []string**](string.md)| The call progress events that we will send to `status_callback`. Can be: `initiated`, `ringing`, `answered`, or `completed`. | - **statusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`. | - **timeout** | **optional.Int32**| The timeout for a call when executing a Conference instruction. | - **to** | **optional.String**| The Contact URI of the worker when executing a Conference instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the [E.164](https://www.twilio.com/docs/glossary/what-e164) formatted phone number, depending on the destination. | - **waitMethod** | **optional.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. | - **waitUrl** | **optional.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). | - **workerActivitySid** | **optional.String**| The new worker activity SID if rejecting a reservation. | + **Beep** | **optional.String**| Whether to play a notification beep when the participant joins or when to play a beep. Can be: `true`, `false`, `onEnter`, or `onExit`. The default value is `true`. | + **BeepOnCustomerEntrance** | **optional.Bool**| Whether to play a notification beep when the customer joins. | + **CallAccept** | **optional.Bool**| Whether to accept a reservation when executing a Call instruction. | + **CallFrom** | **optional.String**| The Caller ID of the outbound call when executing a Call instruction. | + **CallRecord** | **optional.String**| Whether to record both legs of a call when executing a Call instruction. | + **CallStatusCallbackUrl** | **optional.String**| The URL to call for the completed call event when executing a Call instruction. | + **CallTimeout** | **optional.Int32**| The timeout for a call when executing a Call instruction. | + **CallTo** | **optional.String**| The contact URI of the worker when executing a Call instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the [E.164](https://www.twilio.com/docs/glossary/what-e164) formatted phone number, depending on the destination. | + **CallUrl** | **optional.String**| TwiML URI executed on answering the worker's leg as a result of the Call instruction. | + **ConferenceRecord** | **optional.String**| Whether to record the conference the participant is joining or when to record the conference. Can be: `true`, `false`, `record-from-start`, and `do-not-record`. The default value is `false`. | + **ConferenceRecordingStatusCallback** | **optional.String**| The URL we should call using the `conference_recording_status_callback_method` when the conference recording is available. | + **ConferenceRecordingStatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `conference_recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | + **ConferenceStatusCallback** | **optional.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. | + **ConferenceStatusCallbackEvent** | [**optional.Interface of []string**](string.md)| The conference status events that we will send to `conference_status_callback`. Can be: `start`, `end`, `join`, `leave`, `mute`, `hold`, `speaker`. | + **ConferenceStatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | + **ConferenceTrim** | **optional.String**| Whether to trim leading and trailing silence from your recorded conference audio files. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. | + **DequeueFrom** | **optional.String**| The caller ID of the call to the worker when executing a Dequeue instruction. | + **DequeuePostWorkActivitySid** | **optional.String**| The SID of the Activity resource to start after executing a Dequeue instruction. | + **DequeueRecord** | **optional.String**| Whether to record both legs of a call when executing a Dequeue instruction or which leg to record. | + **DequeueStatusCallbackEvent** | [**optional.Interface of []string**](string.md)| The call progress events sent via webhooks as a result of a Dequeue instruction. | + **DequeueStatusCallbackUrl** | **optional.String**| The callback URL for completed call event when executing a Dequeue instruction. | + **DequeueTimeout** | **optional.Int32**| The timeout for call when executing a Dequeue instruction. | + **DequeueTo** | **optional.String**| The contact URI of the worker when executing a Dequeue instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the [E.164](https://www.twilio.com/docs/glossary/what-e164) formatted phone number, depending on the destination. | + **EarlyMedia** | **optional.Bool**| Whether to allow an agent to hear the state of the outbound call, including ringing or disconnect messages. The default is `true`. | + **EndConferenceOnCustomerExit** | **optional.Bool**| Whether to end the conference when the customer leaves. | + **EndConferenceOnExit** | **optional.Bool**| Whether to end the conference when the agent leaves. | + **From** | **optional.String**| The caller ID of the call to the worker when executing a Conference instruction. | + **Instruction** | **optional.String**| The assignment instruction for the reservation. | + **MaxParticipants** | **optional.Int32**| The maximum number of participants allowed in the conference. Can be a positive integer from `2` to `250`. The default value is `250`. | + **Muted** | **optional.Bool**| Whether the agent is muted in the conference. Defaults to `false`. | + **PostWorkActivitySid** | **optional.String**| The new worker activity SID after executing a Conference instruction. | + **Record** | **optional.Bool**| Whether to record the participant and their conferences, including the time between conferences. Can be `true` or `false` and the default is `false`. | + **RecordingChannels** | **optional.String**| The recording channels for the final recording. Can be: `mono` or `dual` and the default is `mono`. | + **RecordingStatusCallback** | **optional.String**| The URL that we should call using the `recording_status_callback_method` when the recording status changes. | + **RecordingStatusCallbackMethod** | **optional.String**| The HTTP method we should use when we call `recording_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. | + **RedirectAccept** | **optional.Bool**| Whether the reservation should be accepted when executing a Redirect instruction. | + **RedirectCallSid** | **optional.String**| The Call SID of the call parked in the queue when executing a Redirect instruction. | + **RedirectUrl** | **optional.String**| TwiML URI to redirect the call to when executing the Redirect instruction. | + **Region** | **optional.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`. | + **ReservationStatus** | **optional.String**| The new status of the reservation. Can be: `pending`, `accepted`, `rejected`, `timeout`, `canceled`, or `rescinded`. | + **SipAuthPassword** | **optional.String**| The SIP password for authentication. | + **SipAuthUsername** | **optional.String**| The SIP username used for authentication. | + **StartConferenceOnEnter** | **optional.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. | + **StatusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application. | + **StatusCallbackEvent** | [**optional.Interface of []string**](string.md)| The call progress events that we will send to `status_callback`. Can be: `initiated`, `ringing`, `answered`, or `completed`. | + **StatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`. | + **Timeout** | **optional.Int32**| The timeout for a call when executing a Conference instruction. | + **To** | **optional.String**| The Contact URI of the worker when executing a Conference instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the [E.164](https://www.twilio.com/docs/glossary/what-e164) formatted phone number, depending on the destination. | + **WaitMethod** | **optional.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. | + **WaitUrl** | **optional.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). | + **WorkerActivitySid** | **optional.String**| The new worker activity SID if rejecting a reservation. | ### Return type @@ -2639,7 +2639,7 @@ Name | Type | Description | Notes ## UpdateWorkflow -> TaskrouterV1WorkspaceWorkflow UpdateWorkflow(ctx, workspaceSid, sid, optional) +> TaskrouterV1WorkspaceWorkflow UpdateWorkflow(ctx, WorkspaceSid, Sid, optional) @@ -2649,8 +2649,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**workspaceSid** | **string**| The SID of the Workspace with the Workflow to update. | -**sid** | **string**| The SID of the Workflow resource to update. | +**WorkspaceSid** | **string**| The SID of the Workspace with the Workflow to update. | +**Sid** | **string**| The SID of the Workflow resource to update. | **optional** | ***UpdateWorkflowOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2662,12 +2662,12 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **assignmentCallbackUrl** | **optional.String**| The URL from your application that will process task assignment events. See [Handling Task Assignment Callback](https://www.twilio.com/docs/taskrouter/handle-assignment-callbacks) for more details. | - **configuration** | **optional.String**| A JSON string that contains the rules to apply to the Workflow. See [Configuring Workflows](https://www.twilio.com/docs/taskrouter/workflow-configuration) for more information. | - **fallbackAssignmentCallbackUrl** | **optional.String**| The URL that we should call when a call to the `assignment_callback_url` fails. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the Workflow resource. For example, `Inbound Call Workflow` or `2014 Outbound Campaign`. | - **reEvaluateTasks** | **optional.String**| Whether or not to re-evaluate Tasks. The default is `false`, which means Tasks in the Workflow will not be processed through the assignment loop again. | - **taskReservationTimeout** | **optional.Int32**| How long TaskRouter will wait for a confirmation response from your application after it assigns a Task to a Worker. Can be up to `86,400` (24 hours) and the default is `120`. | + **AssignmentCallbackUrl** | **optional.String**| The URL from your application that will process task assignment events. See [Handling Task Assignment Callback](https://www.twilio.com/docs/taskrouter/handle-assignment-callbacks) for more details. | + **Configuration** | **optional.String**| A JSON string that contains the rules to apply to the Workflow. See [Configuring Workflows](https://www.twilio.com/docs/taskrouter/workflow-configuration) for more information. | + **FallbackAssignmentCallbackUrl** | **optional.String**| The URL that we should call when a call to the `assignment_callback_url` fails. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the Workflow resource. For example, `Inbound Call Workflow` or `2014 Outbound Campaign`. | + **ReEvaluateTasks** | **optional.String**| Whether or not to re-evaluate Tasks. The default is `false`, which means Tasks in the Workflow will not be processed through the assignment loop again. | + **TaskReservationTimeout** | **optional.Int32**| How long TaskRouter will wait for a confirmation response from your application after it assigns a Task to a Worker. Can be up to `86,400` (24 hours) and the default is `120`. | ### Return type @@ -2689,7 +2689,7 @@ Name | Type | Description | Notes ## UpdateWorkspace -> TaskrouterV1Workspace UpdateWorkspace(ctx, sid, optional) +> TaskrouterV1Workspace UpdateWorkspace(ctx, Sid, optional) @@ -2699,7 +2699,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Workspace resource to update. | +**Sid** | **string**| The SID of the Workspace resource to update. | **optional** | ***UpdateWorkspaceOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2710,13 +2710,13 @@ Optional parameters are passed through a pointer to a UpdateWorkspaceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **defaultActivitySid** | **optional.String**| The SID of the Activity that will be used when new Workers are created in the Workspace. | - **eventCallbackUrl** | **optional.String**| The URL we should call when an event occurs. See [Workspace Events](https://www.twilio.com/docs/taskrouter/api/event) for more information. | - **eventsFilter** | **optional.String**| The list of Workspace events for which to call event_callback_url. For example if `EventsFilter=task.created,task.canceled,worker.activity.update`, then TaskRouter will call event_callback_url only when a task is created, canceled, or a Worker activity is updated. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the Workspace resource. For example: `Sales Call Center` or `Customer Support Team`. | - **multiTaskEnabled** | **optional.Bool**| Whether to enable multi-tasking. Can be: `true` to enable multi-tasking, or `false` to disable it. The default is `false`. Multi-tasking allows Workers to handle multiple Tasks simultaneously. When enabled (`true`), each Worker can receive parallel reservations up to the per-channel maximums defined in the Workers section. Otherwise, each Worker will only receive a new reservation when the previous task is completed. Learn more at [Multitasking][https://www.twilio.com/docs/taskrouter/multitasking]. | - **prioritizeQueueOrder** | **optional.String**| The type of TaskQueue to prioritize when Workers are receiving Tasks from both types of TaskQueues. Can be: `LIFO` or `FIFO` and the default is `FIFO`. For more information, see [Queue Ordering][https://www.twilio.com/docs/taskrouter/queue-ordering-last-first-out-lifo]. | - **timeoutActivitySid** | **optional.String**| The SID of the Activity that will be assigned to a Worker when a Task reservation times out without a response. | + **DefaultActivitySid** | **optional.String**| The SID of the Activity that will be used when new Workers are created in the Workspace. | + **EventCallbackUrl** | **optional.String**| The URL we should call when an event occurs. See [Workspace Events](https://www.twilio.com/docs/taskrouter/api/event) for more information. | + **EventsFilter** | **optional.String**| The list of Workspace events for which to call event_callback_url. For example if `EventsFilter=task.created,task.canceled,worker.activity.update`, then TaskRouter will call event_callback_url only when a task is created, canceled, or a Worker activity is updated. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the Workspace resource. For example: `Sales Call Center` or `Customer Support Team`. | + **MultiTaskEnabled** | **optional.Bool**| Whether to enable multi-tasking. Can be: `true` to enable multi-tasking, or `false` to disable it. The default is `false`. Multi-tasking allows Workers to handle multiple Tasks simultaneously. When enabled (`true`), each Worker can receive parallel reservations up to the per-channel maximums defined in the Workers section. Otherwise, each Worker will only receive a new reservation when the previous task is completed. Learn more at [Multitasking][https://www.twilio.com/docs/taskrouter/multitasking]. | + **PrioritizeQueueOrder** | **optional.String**| The type of TaskQueue to prioritize when Workers are receiving Tasks from both types of TaskQueues. Can be: `LIFO` or `FIFO` and the default is `FIFO`. For more information, see [Queue Ordering][https://www.twilio.com/docs/taskrouter/queue-ordering-last-first-out-lifo]. | + **TimeoutActivitySid** | **optional.String**| The SID of the Activity that will be assigned to a Worker when a Task reservation times out without a response. | ### Return type diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace.go index 09b1304b7..8d27d1735 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace.go @@ -14,19 +14,19 @@ import ( ) // TaskrouterV1Workspace struct for TaskrouterV1Workspace type TaskrouterV1Workspace struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - DefaultActivityName string `json:"default_activity_name,omitempty"` - DefaultActivitySid string `json:"default_activity_sid,omitempty"` - EventCallbackUrl string `json:"event_callback_url,omitempty"` - EventsFilter string `json:"events_filter,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - MultiTaskEnabled bool `json:"multi_task_enabled,omitempty"` - PrioritizeQueueOrder string `json:"prioritize_queue_order,omitempty"` - Sid string `json:"sid,omitempty"` - TimeoutActivityName string `json:"timeout_activity_name,omitempty"` - TimeoutActivitySid string `json:"timeout_activity_sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + DefaultActivityName string `json:"DefaultActivityName,omitempty"` + DefaultActivitySid string `json:"DefaultActivitySid,omitempty"` + EventCallbackUrl string `json:"EventCallbackUrl,omitempty"` + EventsFilter string `json:"EventsFilter,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + MultiTaskEnabled bool `json:"MultiTaskEnabled,omitempty"` + PrioritizeQueueOrder string `json:"PrioritizeQueueOrder,omitempty"` + Sid string `json:"Sid,omitempty"` + TimeoutActivityName string `json:"TimeoutActivityName,omitempty"` + TimeoutActivitySid string `json:"TimeoutActivitySid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_activity.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_activity.go index 90bcd6d12..4c00a4f23 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_activity.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_activity.go @@ -14,12 +14,12 @@ import ( ) // TaskrouterV1WorkspaceActivity struct for TaskrouterV1WorkspaceActivity type TaskrouterV1WorkspaceActivity struct { - AccountSid string `json:"account_sid,omitempty"` - Available bool `json:"available,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` - WorkspaceSid string `json:"workspace_sid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Available bool `json:"Available,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` + WorkspaceSid string `json:"WorkspaceSid,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_activity_read_response.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_activity_read_response.go index a7157bb94..2cf2741bc 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_activity_read_response.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_activity_read_response.go @@ -11,6 +11,6 @@ package openapi // TaskrouterV1WorkspaceActivityReadResponse struct for TaskrouterV1WorkspaceActivityReadResponse type TaskrouterV1WorkspaceActivityReadResponse struct { - Activities []TaskrouterV1WorkspaceActivity `json:"activities,omitempty"` - Meta TaskrouterV1WorkspaceReadResponseMeta `json:"meta,omitempty"` + Activities []TaskrouterV1WorkspaceActivity `json:"Activities,omitempty"` + Meta TaskrouterV1WorkspaceReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_event.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_event.go index 93f406f77..8da7f3be7 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_event.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_event.go @@ -14,21 +14,21 @@ import ( ) // TaskrouterV1WorkspaceEvent struct for TaskrouterV1WorkspaceEvent type TaskrouterV1WorkspaceEvent struct { - AccountSid string `json:"account_sid,omitempty"` - ActorSid string `json:"actor_sid,omitempty"` - ActorType string `json:"actor_type,omitempty"` - ActorUrl string `json:"actor_url,omitempty"` - Description string `json:"description,omitempty"` - EventData map[string]interface{} `json:"event_data,omitempty"` - EventDate time.Time `json:"event_date,omitempty"` - EventDateMs int32 `json:"event_date_ms,omitempty"` - EventType string `json:"event_type,omitempty"` - ResourceSid string `json:"resource_sid,omitempty"` - ResourceType string `json:"resource_type,omitempty"` - ResourceUrl string `json:"resource_url,omitempty"` - Sid string `json:"sid,omitempty"` - Source string `json:"source,omitempty"` - SourceIpAddress string `json:"source_ip_address,omitempty"` - Url string `json:"url,omitempty"` - WorkspaceSid string `json:"workspace_sid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ActorSid string `json:"ActorSid,omitempty"` + ActorType string `json:"ActorType,omitempty"` + ActorUrl string `json:"ActorUrl,omitempty"` + Description string `json:"Description,omitempty"` + EventData map[string]interface{} `json:"EventData,omitempty"` + EventDate time.Time `json:"EventDate,omitempty"` + EventDateMs int32 `json:"EventDateMs,omitempty"` + EventType string `json:"EventType,omitempty"` + ResourceSid string `json:"ResourceSid,omitempty"` + ResourceType string `json:"ResourceType,omitempty"` + ResourceUrl string `json:"ResourceUrl,omitempty"` + Sid string `json:"Sid,omitempty"` + Source string `json:"Source,omitempty"` + SourceIpAddress string `json:"SourceIpAddress,omitempty"` + Url string `json:"Url,omitempty"` + WorkspaceSid string `json:"WorkspaceSid,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_event_read_response.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_event_read_response.go index 73d816477..00f04c8b9 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_event_read_response.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_event_read_response.go @@ -11,6 +11,6 @@ package openapi // TaskrouterV1WorkspaceEventReadResponse struct for TaskrouterV1WorkspaceEventReadResponse type TaskrouterV1WorkspaceEventReadResponse struct { - Events []TaskrouterV1WorkspaceEvent `json:"events,omitempty"` - Meta TaskrouterV1WorkspaceReadResponseMeta `json:"meta,omitempty"` + Events []TaskrouterV1WorkspaceEvent `json:"Events,omitempty"` + Meta TaskrouterV1WorkspaceReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_read_response.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_read_response.go index a5e24c09b..c4aa1b329 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_read_response.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_read_response.go @@ -11,6 +11,6 @@ package openapi // TaskrouterV1WorkspaceReadResponse struct for TaskrouterV1WorkspaceReadResponse type TaskrouterV1WorkspaceReadResponse struct { - Meta TaskrouterV1WorkspaceReadResponseMeta `json:"meta,omitempty"` - Workspaces []TaskrouterV1Workspace `json:"workspaces,omitempty"` + Meta TaskrouterV1WorkspaceReadResponseMeta `json:"Meta,omitempty"` + Workspaces []TaskrouterV1Workspace `json:"Workspaces,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_read_response_meta.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_read_response_meta.go index f5de5484f..3ae92bf35 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_read_response_meta.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_read_response_meta.go @@ -11,11 +11,11 @@ package openapi // TaskrouterV1WorkspaceReadResponseMeta struct for TaskrouterV1WorkspaceReadResponseMeta type TaskrouterV1WorkspaceReadResponseMeta struct { - FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` - NextPageUrl string `json:"next_page_url,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUrl string `json:"previous_page_url,omitempty"` - Url string `json:"url,omitempty"` + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task.go index 47512fca2..87732e3f2 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task.go @@ -14,25 +14,25 @@ import ( ) // TaskrouterV1WorkspaceTask struct for TaskrouterV1WorkspaceTask type TaskrouterV1WorkspaceTask struct { - AccountSid string `json:"account_sid,omitempty"` - Addons string `json:"addons,omitempty"` - Age int32 `json:"age,omitempty"` - AssignmentStatus string `json:"assignment_status,omitempty"` - Attributes string `json:"attributes,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Priority int32 `json:"priority,omitempty"` - Reason string `json:"reason,omitempty"` - Sid string `json:"sid,omitempty"` - TaskChannelSid string `json:"task_channel_sid,omitempty"` - TaskChannelUniqueName string `json:"task_channel_unique_name,omitempty"` - TaskQueueEnteredDate time.Time `json:"task_queue_entered_date,omitempty"` - TaskQueueFriendlyName string `json:"task_queue_friendly_name,omitempty"` - TaskQueueSid string `json:"task_queue_sid,omitempty"` - Timeout int32 `json:"timeout,omitempty"` - Url string `json:"url,omitempty"` - WorkflowFriendlyName string `json:"workflow_friendly_name,omitempty"` - WorkflowSid string `json:"workflow_sid,omitempty"` - WorkspaceSid string `json:"workspace_sid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Addons string `json:"Addons,omitempty"` + Age int32 `json:"Age,omitempty"` + AssignmentStatus string `json:"AssignmentStatus,omitempty"` + Attributes string `json:"Attributes,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Priority int32 `json:"Priority,omitempty"` + Reason string `json:"Reason,omitempty"` + Sid string `json:"Sid,omitempty"` + TaskChannelSid string `json:"TaskChannelSid,omitempty"` + TaskChannelUniqueName string `json:"TaskChannelUniqueName,omitempty"` + TaskQueueEnteredDate time.Time `json:"TaskQueueEnteredDate,omitempty"` + TaskQueueFriendlyName string `json:"TaskQueueFriendlyName,omitempty"` + TaskQueueSid string `json:"TaskQueueSid,omitempty"` + Timeout int32 `json:"Timeout,omitempty"` + Url string `json:"Url,omitempty"` + WorkflowFriendlyName string `json:"WorkflowFriendlyName,omitempty"` + WorkflowSid string `json:"WorkflowSid,omitempty"` + WorkspaceSid string `json:"WorkspaceSid,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_channel.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_channel.go index ad6957a5f..97bb0229e 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_channel.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_channel.go @@ -14,14 +14,14 @@ import ( ) // TaskrouterV1WorkspaceTaskChannel struct for TaskrouterV1WorkspaceTaskChannel type TaskrouterV1WorkspaceTaskChannel struct { - AccountSid string `json:"account_sid,omitempty"` - ChannelOptimizedRouting bool `json:"channel_optimized_routing,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Sid string `json:"sid,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` - WorkspaceSid string `json:"workspace_sid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ChannelOptimizedRouting bool `json:"ChannelOptimizedRouting,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Sid string `json:"Sid,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` + WorkspaceSid string `json:"WorkspaceSid,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_channel_read_response.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_channel_read_response.go index 55fdb5583..401f03ede 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_channel_read_response.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_channel_read_response.go @@ -11,6 +11,6 @@ package openapi // TaskrouterV1WorkspaceTaskChannelReadResponse struct for TaskrouterV1WorkspaceTaskChannelReadResponse type TaskrouterV1WorkspaceTaskChannelReadResponse struct { - Channels []TaskrouterV1WorkspaceTaskChannel `json:"channels,omitempty"` - Meta TaskrouterV1WorkspaceReadResponseMeta `json:"meta,omitempty"` + Channels []TaskrouterV1WorkspaceTaskChannel `json:"Channels,omitempty"` + Meta TaskrouterV1WorkspaceReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue.go index a153b4870..a7296de41 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue.go @@ -14,19 +14,19 @@ import ( ) // TaskrouterV1WorkspaceTaskQueue struct for TaskrouterV1WorkspaceTaskQueue type TaskrouterV1WorkspaceTaskQueue struct { - AccountSid string `json:"account_sid,omitempty"` - AssignmentActivityName string `json:"assignment_activity_name,omitempty"` - AssignmentActivitySid string `json:"assignment_activity_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - MaxReservedWorkers int32 `json:"max_reserved_workers,omitempty"` - ReservationActivityName string `json:"reservation_activity_name,omitempty"` - ReservationActivitySid string `json:"reservation_activity_sid,omitempty"` - Sid string `json:"sid,omitempty"` - TargetWorkers string `json:"target_workers,omitempty"` - TaskOrder string `json:"task_order,omitempty"` - Url string `json:"url,omitempty"` - WorkspaceSid string `json:"workspace_sid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AssignmentActivityName string `json:"AssignmentActivityName,omitempty"` + AssignmentActivitySid string `json:"AssignmentActivitySid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + MaxReservedWorkers int32 `json:"MaxReservedWorkers,omitempty"` + ReservationActivityName string `json:"ReservationActivityName,omitempty"` + ReservationActivitySid string `json:"ReservationActivitySid,omitempty"` + Sid string `json:"Sid,omitempty"` + TargetWorkers string `json:"TargetWorkers,omitempty"` + TaskOrder string `json:"TaskOrder,omitempty"` + Url string `json:"Url,omitempty"` + WorkspaceSid string `json:"WorkspaceSid,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_read_response.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_read_response.go index 939ca5a4d..c70b56a83 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_read_response.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_read_response.go @@ -11,6 +11,6 @@ package openapi // TaskrouterV1WorkspaceTaskQueueReadResponse struct for TaskrouterV1WorkspaceTaskQueueReadResponse type TaskrouterV1WorkspaceTaskQueueReadResponse struct { - Meta TaskrouterV1WorkspaceReadResponseMeta `json:"meta,omitempty"` - TaskQueues []TaskrouterV1WorkspaceTaskQueue `json:"task_queues,omitempty"` + Meta TaskrouterV1WorkspaceReadResponseMeta `json:"Meta,omitempty"` + TaskQueues []TaskrouterV1WorkspaceTaskQueue `json:"TaskQueues,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queue_cumulative_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queue_cumulative_statistics.go index 27e91739a..bd1fcf2c4 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queue_cumulative_statistics.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queue_cumulative_statistics.go @@ -14,26 +14,26 @@ import ( ) // TaskrouterV1WorkspaceTaskQueueTaskQueueCumulativeStatistics struct for TaskrouterV1WorkspaceTaskQueueTaskQueueCumulativeStatistics type TaskrouterV1WorkspaceTaskQueueTaskQueueCumulativeStatistics struct { - AccountSid string `json:"account_sid,omitempty"` - AvgTaskAcceptanceTime int32 `json:"avg_task_acceptance_time,omitempty"` - EndTime time.Time `json:"end_time,omitempty"` - ReservationsAccepted int32 `json:"reservations_accepted,omitempty"` - ReservationsCanceled int32 `json:"reservations_canceled,omitempty"` - ReservationsCreated int32 `json:"reservations_created,omitempty"` - ReservationsRejected int32 `json:"reservations_rejected,omitempty"` - ReservationsRescinded int32 `json:"reservations_rescinded,omitempty"` - ReservationsTimedOut int32 `json:"reservations_timed_out,omitempty"` - SplitByWaitTime map[string]interface{} `json:"split_by_wait_time,omitempty"` - StartTime time.Time `json:"start_time,omitempty"` - TaskQueueSid string `json:"task_queue_sid,omitempty"` - TasksCanceled int32 `json:"tasks_canceled,omitempty"` - TasksCompleted int32 `json:"tasks_completed,omitempty"` - TasksDeleted int32 `json:"tasks_deleted,omitempty"` - TasksEntered int32 `json:"tasks_entered,omitempty"` - TasksMoved int32 `json:"tasks_moved,omitempty"` - Url string `json:"url,omitempty"` - WaitDurationInQueueUntilAccepted map[string]interface{} `json:"wait_duration_in_queue_until_accepted,omitempty"` - WaitDurationUntilAccepted map[string]interface{} `json:"wait_duration_until_accepted,omitempty"` - WaitDurationUntilCanceled map[string]interface{} `json:"wait_duration_until_canceled,omitempty"` - WorkspaceSid string `json:"workspace_sid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AvgTaskAcceptanceTime int32 `json:"AvgTaskAcceptanceTime,omitempty"` + EndTime time.Time `json:"EndTime,omitempty"` + ReservationsAccepted int32 `json:"ReservationsAccepted,omitempty"` + ReservationsCanceled int32 `json:"ReservationsCanceled,omitempty"` + ReservationsCreated int32 `json:"ReservationsCreated,omitempty"` + ReservationsRejected int32 `json:"ReservationsRejected,omitempty"` + ReservationsRescinded int32 `json:"ReservationsRescinded,omitempty"` + ReservationsTimedOut int32 `json:"ReservationsTimedOut,omitempty"` + SplitByWaitTime map[string]interface{} `json:"SplitByWaitTime,omitempty"` + StartTime time.Time `json:"StartTime,omitempty"` + TaskQueueSid string `json:"TaskQueueSid,omitempty"` + TasksCanceled int32 `json:"TasksCanceled,omitempty"` + TasksCompleted int32 `json:"TasksCompleted,omitempty"` + TasksDeleted int32 `json:"TasksDeleted,omitempty"` + TasksEntered int32 `json:"TasksEntered,omitempty"` + TasksMoved int32 `json:"TasksMoved,omitempty"` + Url string `json:"Url,omitempty"` + WaitDurationInQueueUntilAccepted map[string]interface{} `json:"WaitDurationInQueueUntilAccepted,omitempty"` + WaitDurationUntilAccepted map[string]interface{} `json:"WaitDurationUntilAccepted,omitempty"` + WaitDurationUntilCanceled map[string]interface{} `json:"WaitDurationUntilCanceled,omitempty"` + WorkspaceSid string `json:"WorkspaceSid,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queue_real_time_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queue_real_time_statistics.go index c136834de..bd919a939 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queue_real_time_statistics.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queue_real_time_statistics.go @@ -11,18 +11,18 @@ package openapi // TaskrouterV1WorkspaceTaskQueueTaskQueueRealTimeStatistics struct for TaskrouterV1WorkspaceTaskQueueTaskQueueRealTimeStatistics type TaskrouterV1WorkspaceTaskQueueTaskQueueRealTimeStatistics struct { - AccountSid string `json:"account_sid,omitempty"` - ActivityStatistics []map[string]interface{} `json:"activity_statistics,omitempty"` - LongestRelativeTaskAgeInQueue int32 `json:"longest_relative_task_age_in_queue,omitempty"` - LongestRelativeTaskSidInQueue string `json:"longest_relative_task_sid_in_queue,omitempty"` - LongestTaskWaitingAge int32 `json:"longest_task_waiting_age,omitempty"` - LongestTaskWaitingSid string `json:"longest_task_waiting_sid,omitempty"` - TaskQueueSid string `json:"task_queue_sid,omitempty"` - TasksByPriority map[string]interface{} `json:"tasks_by_priority,omitempty"` - TasksByStatus map[string]interface{} `json:"tasks_by_status,omitempty"` - TotalAvailableWorkers int32 `json:"total_available_workers,omitempty"` - TotalEligibleWorkers int32 `json:"total_eligible_workers,omitempty"` - TotalTasks int32 `json:"total_tasks,omitempty"` - Url string `json:"url,omitempty"` - WorkspaceSid string `json:"workspace_sid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ActivityStatistics []map[string]interface{} `json:"ActivityStatistics,omitempty"` + LongestRelativeTaskAgeInQueue int32 `json:"LongestRelativeTaskAgeInQueue,omitempty"` + LongestRelativeTaskSidInQueue string `json:"LongestRelativeTaskSidInQueue,omitempty"` + LongestTaskWaitingAge int32 `json:"LongestTaskWaitingAge,omitempty"` + LongestTaskWaitingSid string `json:"LongestTaskWaitingSid,omitempty"` + TaskQueueSid string `json:"TaskQueueSid,omitempty"` + TasksByPriority map[string]interface{} `json:"TasksByPriority,omitempty"` + TasksByStatus map[string]interface{} `json:"TasksByStatus,omitempty"` + TotalAvailableWorkers int32 `json:"TotalAvailableWorkers,omitempty"` + TotalEligibleWorkers int32 `json:"TotalEligibleWorkers,omitempty"` + TotalTasks int32 `json:"TotalTasks,omitempty"` + Url string `json:"Url,omitempty"` + WorkspaceSid string `json:"WorkspaceSid,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queue_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queue_statistics.go index 6282fb45e..835c516fa 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queue_statistics.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queue_statistics.go @@ -11,10 +11,10 @@ package openapi // TaskrouterV1WorkspaceTaskQueueTaskQueueStatistics struct for TaskrouterV1WorkspaceTaskQueueTaskQueueStatistics type TaskrouterV1WorkspaceTaskQueueTaskQueueStatistics struct { - AccountSid string `json:"account_sid,omitempty"` - Cumulative map[string]interface{} `json:"cumulative,omitempty"` - Realtime map[string]interface{} `json:"realtime,omitempty"` - TaskQueueSid string `json:"task_queue_sid,omitempty"` - Url string `json:"url,omitempty"` - WorkspaceSid string `json:"workspace_sid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Cumulative map[string]interface{} `json:"Cumulative,omitempty"` + Realtime map[string]interface{} `json:"Realtime,omitempty"` + TaskQueueSid string `json:"TaskQueueSid,omitempty"` + Url string `json:"Url,omitempty"` + WorkspaceSid string `json:"WorkspaceSid,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queues_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queues_statistics.go index da14bd772..031cf75ac 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queues_statistics.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queues_statistics.go @@ -11,9 +11,9 @@ package openapi // TaskrouterV1WorkspaceTaskQueueTaskQueuesStatistics struct for TaskrouterV1WorkspaceTaskQueueTaskQueuesStatistics type TaskrouterV1WorkspaceTaskQueueTaskQueuesStatistics struct { - AccountSid string `json:"account_sid,omitempty"` - Cumulative map[string]interface{} `json:"cumulative,omitempty"` - Realtime map[string]interface{} `json:"realtime,omitempty"` - TaskQueueSid string `json:"task_queue_sid,omitempty"` - WorkspaceSid string `json:"workspace_sid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Cumulative map[string]interface{} `json:"Cumulative,omitempty"` + Realtime map[string]interface{} `json:"Realtime,omitempty"` + TaskQueueSid string `json:"TaskQueueSid,omitempty"` + WorkspaceSid string `json:"WorkspaceSid,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queues_statistics_read_response.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queues_statistics_read_response.go index ae2a0330b..867d55098 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queues_statistics_read_response.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queues_statistics_read_response.go @@ -11,6 +11,6 @@ package openapi // TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse struct for TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse type TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse struct { - Meta TaskrouterV1WorkspaceReadResponseMeta `json:"meta,omitempty"` - TaskQueuesStatistics []TaskrouterV1WorkspaceTaskQueueTaskQueuesStatistics `json:"task_queues_statistics,omitempty"` + Meta TaskrouterV1WorkspaceReadResponseMeta `json:"Meta,omitempty"` + TaskQueuesStatistics []TaskrouterV1WorkspaceTaskQueueTaskQueuesStatistics `json:"TaskQueuesStatistics,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_read_response.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_read_response.go index 41dac5b25..49c3484ef 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_read_response.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_read_response.go @@ -11,6 +11,6 @@ package openapi // TaskrouterV1WorkspaceTaskReadResponse struct for TaskrouterV1WorkspaceTaskReadResponse type TaskrouterV1WorkspaceTaskReadResponse struct { - Meta TaskrouterV1WorkspaceReadResponseMeta `json:"meta,omitempty"` - Tasks []TaskrouterV1WorkspaceTask `json:"tasks,omitempty"` + Meta TaskrouterV1WorkspaceReadResponseMeta `json:"Meta,omitempty"` + Tasks []TaskrouterV1WorkspaceTask `json:"Tasks,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_task_reservation.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_task_reservation.go index a88947a52..168b4fa33 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_task_reservation.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_task_reservation.go @@ -14,15 +14,15 @@ import ( ) // TaskrouterV1WorkspaceTaskTaskReservation struct for TaskrouterV1WorkspaceTaskTaskReservation type TaskrouterV1WorkspaceTaskTaskReservation struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - ReservationStatus string `json:"reservation_status,omitempty"` - Sid string `json:"sid,omitempty"` - TaskSid string `json:"task_sid,omitempty"` - Url string `json:"url,omitempty"` - WorkerName string `json:"worker_name,omitempty"` - WorkerSid string `json:"worker_sid,omitempty"` - WorkspaceSid string `json:"workspace_sid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + ReservationStatus string `json:"ReservationStatus,omitempty"` + Sid string `json:"Sid,omitempty"` + TaskSid string `json:"TaskSid,omitempty"` + Url string `json:"Url,omitempty"` + WorkerName string `json:"WorkerName,omitempty"` + WorkerSid string `json:"WorkerSid,omitempty"` + WorkspaceSid string `json:"WorkspaceSid,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_task_reservation_read_response.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_task_reservation_read_response.go index 99d29595e..34a3facb9 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_task_reservation_read_response.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_task_reservation_read_response.go @@ -11,6 +11,6 @@ package openapi // TaskrouterV1WorkspaceTaskTaskReservationReadResponse struct for TaskrouterV1WorkspaceTaskTaskReservationReadResponse type TaskrouterV1WorkspaceTaskTaskReservationReadResponse struct { - Meta TaskrouterV1WorkspaceReadResponseMeta `json:"meta,omitempty"` - Reservations []TaskrouterV1WorkspaceTaskTaskReservation `json:"reservations,omitempty"` + Meta TaskrouterV1WorkspaceReadResponseMeta `json:"Meta,omitempty"` + Reservations []TaskrouterV1WorkspaceTaskTaskReservation `json:"Reservations,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker.go index 78ecdeecf..9e61ff24d 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker.go @@ -14,17 +14,17 @@ import ( ) // TaskrouterV1WorkspaceWorker struct for TaskrouterV1WorkspaceWorker type TaskrouterV1WorkspaceWorker struct { - AccountSid string `json:"account_sid,omitempty"` - ActivityName string `json:"activity_name,omitempty"` - ActivitySid string `json:"activity_sid,omitempty"` - Attributes string `json:"attributes,omitempty"` - Available bool `json:"available,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateStatusChanged time.Time `json:"date_status_changed,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` - WorkspaceSid string `json:"workspace_sid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ActivityName string `json:"ActivityName,omitempty"` + ActivitySid string `json:"ActivitySid,omitempty"` + Attributes string `json:"Attributes,omitempty"` + Available bool `json:"Available,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateStatusChanged time.Time `json:"DateStatusChanged,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` + WorkspaceSid string `json:"WorkspaceSid,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_read_response.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_read_response.go index 9d0942ce8..32060b2ca 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_read_response.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_read_response.go @@ -11,6 +11,6 @@ package openapi // TaskrouterV1WorkspaceWorkerReadResponse struct for TaskrouterV1WorkspaceWorkerReadResponse type TaskrouterV1WorkspaceWorkerReadResponse struct { - Meta TaskrouterV1WorkspaceReadResponseMeta `json:"meta,omitempty"` - Workers []TaskrouterV1WorkspaceWorker `json:"workers,omitempty"` + Meta TaskrouterV1WorkspaceReadResponseMeta `json:"Meta,omitempty"` + Workers []TaskrouterV1WorkspaceWorker `json:"Workers,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_channel.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_channel.go index 33e327f51..1a9e96cc7 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_channel.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_channel.go @@ -14,17 +14,17 @@ import ( ) // TaskrouterV1WorkspaceWorkerWorkerChannel struct for TaskrouterV1WorkspaceWorkerWorkerChannel type TaskrouterV1WorkspaceWorkerWorkerChannel struct { - AccountSid string `json:"account_sid,omitempty"` - AssignedTasks int32 `json:"assigned_tasks,omitempty"` - Available bool `json:"available,omitempty"` - AvailableCapacityPercentage int32 `json:"available_capacity_percentage,omitempty"` - ConfiguredCapacity int32 `json:"configured_capacity,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Sid string `json:"sid,omitempty"` - TaskChannelSid string `json:"task_channel_sid,omitempty"` - TaskChannelUniqueName string `json:"task_channel_unique_name,omitempty"` - Url string `json:"url,omitempty"` - WorkerSid string `json:"worker_sid,omitempty"` - WorkspaceSid string `json:"workspace_sid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AssignedTasks int32 `json:"AssignedTasks,omitempty"` + Available bool `json:"Available,omitempty"` + AvailableCapacityPercentage int32 `json:"AvailableCapacityPercentage,omitempty"` + ConfiguredCapacity int32 `json:"ConfiguredCapacity,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Sid string `json:"Sid,omitempty"` + TaskChannelSid string `json:"TaskChannelSid,omitempty"` + TaskChannelUniqueName string `json:"TaskChannelUniqueName,omitempty"` + Url string `json:"Url,omitempty"` + WorkerSid string `json:"WorkerSid,omitempty"` + WorkspaceSid string `json:"WorkspaceSid,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_channel_read_response.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_channel_read_response.go index 8fb4bbc82..cf285cf87 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_channel_read_response.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_channel_read_response.go @@ -11,6 +11,6 @@ package openapi // TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse struct for TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse type TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse struct { - Channels []TaskrouterV1WorkspaceWorkerWorkerChannel `json:"channels,omitempty"` - Meta TaskrouterV1WorkspaceReadResponseMeta `json:"meta,omitempty"` + Channels []TaskrouterV1WorkspaceWorkerWorkerChannel `json:"Channels,omitempty"` + Meta TaskrouterV1WorkspaceReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_instance_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_instance_statistics.go index d2068dc01..6628a912a 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_instance_statistics.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_instance_statistics.go @@ -11,9 +11,9 @@ package openapi // TaskrouterV1WorkspaceWorkerWorkerInstanceStatistics struct for TaskrouterV1WorkspaceWorkerWorkerInstanceStatistics type TaskrouterV1WorkspaceWorkerWorkerInstanceStatistics struct { - AccountSid string `json:"account_sid,omitempty"` - Cumulative map[string]interface{} `json:"cumulative,omitempty"` - Url string `json:"url,omitempty"` - WorkerSid string `json:"worker_sid,omitempty"` - WorkspaceSid string `json:"workspace_sid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Cumulative map[string]interface{} `json:"Cumulative,omitempty"` + Url string `json:"Url,omitempty"` + WorkerSid string `json:"WorkerSid,omitempty"` + WorkspaceSid string `json:"WorkspaceSid,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_reservation.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_reservation.go index 39474493e..f18bbd83b 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_reservation.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_reservation.go @@ -14,15 +14,15 @@ import ( ) // TaskrouterV1WorkspaceWorkerWorkerReservation struct for TaskrouterV1WorkspaceWorkerWorkerReservation type TaskrouterV1WorkspaceWorkerWorkerReservation struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - ReservationStatus string `json:"reservation_status,omitempty"` - Sid string `json:"sid,omitempty"` - TaskSid string `json:"task_sid,omitempty"` - Url string `json:"url,omitempty"` - WorkerName string `json:"worker_name,omitempty"` - WorkerSid string `json:"worker_sid,omitempty"` - WorkspaceSid string `json:"workspace_sid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + ReservationStatus string `json:"ReservationStatus,omitempty"` + Sid string `json:"Sid,omitempty"` + TaskSid string `json:"TaskSid,omitempty"` + Url string `json:"Url,omitempty"` + WorkerName string `json:"WorkerName,omitempty"` + WorkerSid string `json:"WorkerSid,omitempty"` + WorkspaceSid string `json:"WorkspaceSid,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_reservation_read_response.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_reservation_read_response.go index 62318f13e..3fe9521b6 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_reservation_read_response.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_reservation_read_response.go @@ -11,6 +11,6 @@ package openapi // TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse struct for TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse type TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse struct { - Meta TaskrouterV1WorkspaceReadResponseMeta `json:"meta,omitempty"` - Reservations []TaskrouterV1WorkspaceWorkerWorkerReservation `json:"reservations,omitempty"` + Meta TaskrouterV1WorkspaceReadResponseMeta `json:"Meta,omitempty"` + Reservations []TaskrouterV1WorkspaceWorkerWorkerReservation `json:"Reservations,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_statistics.go index 02b724c4a..264324af3 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_statistics.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_statistics.go @@ -11,9 +11,9 @@ package openapi // TaskrouterV1WorkspaceWorkerWorkerStatistics struct for TaskrouterV1WorkspaceWorkerWorkerStatistics type TaskrouterV1WorkspaceWorkerWorkerStatistics struct { - AccountSid string `json:"account_sid,omitempty"` - Cumulative map[string]interface{} `json:"cumulative,omitempty"` - Realtime map[string]interface{} `json:"realtime,omitempty"` - Url string `json:"url,omitempty"` - WorkspaceSid string `json:"workspace_sid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Cumulative map[string]interface{} `json:"Cumulative,omitempty"` + Realtime map[string]interface{} `json:"Realtime,omitempty"` + Url string `json:"Url,omitempty"` + WorkspaceSid string `json:"WorkspaceSid,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_workers_cumulative_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_workers_cumulative_statistics.go index 8f85cea9b..0db95b623 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_workers_cumulative_statistics.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_workers_cumulative_statistics.go @@ -14,16 +14,16 @@ import ( ) // TaskrouterV1WorkspaceWorkerWorkersCumulativeStatistics struct for TaskrouterV1WorkspaceWorkerWorkersCumulativeStatistics type TaskrouterV1WorkspaceWorkerWorkersCumulativeStatistics struct { - AccountSid string `json:"account_sid,omitempty"` - ActivityDurations []map[string]interface{} `json:"activity_durations,omitempty"` - EndTime time.Time `json:"end_time,omitempty"` - ReservationsAccepted int32 `json:"reservations_accepted,omitempty"` - ReservationsCanceled int32 `json:"reservations_canceled,omitempty"` - ReservationsCreated int32 `json:"reservations_created,omitempty"` - ReservationsRejected int32 `json:"reservations_rejected,omitempty"` - ReservationsRescinded int32 `json:"reservations_rescinded,omitempty"` - ReservationsTimedOut int32 `json:"reservations_timed_out,omitempty"` - StartTime time.Time `json:"start_time,omitempty"` - Url string `json:"url,omitempty"` - WorkspaceSid string `json:"workspace_sid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ActivityDurations []map[string]interface{} `json:"ActivityDurations,omitempty"` + EndTime time.Time `json:"EndTime,omitempty"` + ReservationsAccepted int32 `json:"ReservationsAccepted,omitempty"` + ReservationsCanceled int32 `json:"ReservationsCanceled,omitempty"` + ReservationsCreated int32 `json:"ReservationsCreated,omitempty"` + ReservationsRejected int32 `json:"ReservationsRejected,omitempty"` + ReservationsRescinded int32 `json:"ReservationsRescinded,omitempty"` + ReservationsTimedOut int32 `json:"ReservationsTimedOut,omitempty"` + StartTime time.Time `json:"StartTime,omitempty"` + Url string `json:"Url,omitempty"` + WorkspaceSid string `json:"WorkspaceSid,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_workers_real_time_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_workers_real_time_statistics.go index d0fe853d3..a04451702 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_workers_real_time_statistics.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_workers_real_time_statistics.go @@ -11,9 +11,9 @@ package openapi // TaskrouterV1WorkspaceWorkerWorkersRealTimeStatistics struct for TaskrouterV1WorkspaceWorkerWorkersRealTimeStatistics type TaskrouterV1WorkspaceWorkerWorkersRealTimeStatistics struct { - AccountSid string `json:"account_sid,omitempty"` - ActivityStatistics []map[string]interface{} `json:"activity_statistics,omitempty"` - TotalWorkers int32 `json:"total_workers,omitempty"` - Url string `json:"url,omitempty"` - WorkspaceSid string `json:"workspace_sid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ActivityStatistics []map[string]interface{} `json:"ActivityStatistics,omitempty"` + TotalWorkers int32 `json:"TotalWorkers,omitempty"` + Url string `json:"Url,omitempty"` + WorkspaceSid string `json:"WorkspaceSid,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow.go index b24a69ddc..4a9f271c6 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow.go @@ -14,17 +14,17 @@ import ( ) // TaskrouterV1WorkspaceWorkflow struct for TaskrouterV1WorkspaceWorkflow type TaskrouterV1WorkspaceWorkflow struct { - AccountSid string `json:"account_sid,omitempty"` - AssignmentCallbackUrl string `json:"assignment_callback_url,omitempty"` - Configuration string `json:"configuration,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - DocumentContentType string `json:"document_content_type,omitempty"` - FallbackAssignmentCallbackUrl string `json:"fallback_assignment_callback_url,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Sid string `json:"sid,omitempty"` - TaskReservationTimeout int32 `json:"task_reservation_timeout,omitempty"` - Url string `json:"url,omitempty"` - WorkspaceSid string `json:"workspace_sid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AssignmentCallbackUrl string `json:"AssignmentCallbackUrl,omitempty"` + Configuration string `json:"Configuration,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + DocumentContentType string `json:"DocumentContentType,omitempty"` + FallbackAssignmentCallbackUrl string `json:"FallbackAssignmentCallbackUrl,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Sid string `json:"Sid,omitempty"` + TaskReservationTimeout int32 `json:"TaskReservationTimeout,omitempty"` + Url string `json:"Url,omitempty"` + WorkspaceSid string `json:"WorkspaceSid,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_read_response.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_read_response.go index ad784ff17..70022ff13 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_read_response.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_read_response.go @@ -11,6 +11,6 @@ package openapi // TaskrouterV1WorkspaceWorkflowReadResponse struct for TaskrouterV1WorkspaceWorkflowReadResponse type TaskrouterV1WorkspaceWorkflowReadResponse struct { - Meta TaskrouterV1WorkspaceReadResponseMeta `json:"meta,omitempty"` - Workflows []TaskrouterV1WorkspaceWorkflow `json:"workflows,omitempty"` + Meta TaskrouterV1WorkspaceReadResponseMeta `json:"Meta,omitempty"` + Workflows []TaskrouterV1WorkspaceWorkflow `json:"Workflows,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_workflow_cumulative_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_workflow_cumulative_statistics.go index 55c948ef3..e0d610302 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_workflow_cumulative_statistics.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_workflow_cumulative_statistics.go @@ -14,26 +14,26 @@ import ( ) // TaskrouterV1WorkspaceWorkflowWorkflowCumulativeStatistics struct for TaskrouterV1WorkspaceWorkflowWorkflowCumulativeStatistics type TaskrouterV1WorkspaceWorkflowWorkflowCumulativeStatistics struct { - AccountSid string `json:"account_sid,omitempty"` - AvgTaskAcceptanceTime int32 `json:"avg_task_acceptance_time,omitempty"` - EndTime time.Time `json:"end_time,omitempty"` - ReservationsAccepted int32 `json:"reservations_accepted,omitempty"` - ReservationsCanceled int32 `json:"reservations_canceled,omitempty"` - ReservationsCreated int32 `json:"reservations_created,omitempty"` - ReservationsRejected int32 `json:"reservations_rejected,omitempty"` - ReservationsRescinded int32 `json:"reservations_rescinded,omitempty"` - ReservationsTimedOut int32 `json:"reservations_timed_out,omitempty"` - SplitByWaitTime map[string]interface{} `json:"split_by_wait_time,omitempty"` - StartTime time.Time `json:"start_time,omitempty"` - TasksCanceled int32 `json:"tasks_canceled,omitempty"` - TasksCompleted int32 `json:"tasks_completed,omitempty"` - TasksDeleted int32 `json:"tasks_deleted,omitempty"` - TasksEntered int32 `json:"tasks_entered,omitempty"` - TasksMoved int32 `json:"tasks_moved,omitempty"` - TasksTimedOutInWorkflow int32 `json:"tasks_timed_out_in_workflow,omitempty"` - Url string `json:"url,omitempty"` - WaitDurationUntilAccepted map[string]interface{} `json:"wait_duration_until_accepted,omitempty"` - WaitDurationUntilCanceled map[string]interface{} `json:"wait_duration_until_canceled,omitempty"` - WorkflowSid string `json:"workflow_sid,omitempty"` - WorkspaceSid string `json:"workspace_sid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AvgTaskAcceptanceTime int32 `json:"AvgTaskAcceptanceTime,omitempty"` + EndTime time.Time `json:"EndTime,omitempty"` + ReservationsAccepted int32 `json:"ReservationsAccepted,omitempty"` + ReservationsCanceled int32 `json:"ReservationsCanceled,omitempty"` + ReservationsCreated int32 `json:"ReservationsCreated,omitempty"` + ReservationsRejected int32 `json:"ReservationsRejected,omitempty"` + ReservationsRescinded int32 `json:"ReservationsRescinded,omitempty"` + ReservationsTimedOut int32 `json:"ReservationsTimedOut,omitempty"` + SplitByWaitTime map[string]interface{} `json:"SplitByWaitTime,omitempty"` + StartTime time.Time `json:"StartTime,omitempty"` + TasksCanceled int32 `json:"TasksCanceled,omitempty"` + TasksCompleted int32 `json:"TasksCompleted,omitempty"` + TasksDeleted int32 `json:"TasksDeleted,omitempty"` + TasksEntered int32 `json:"TasksEntered,omitempty"` + TasksMoved int32 `json:"TasksMoved,omitempty"` + TasksTimedOutInWorkflow int32 `json:"TasksTimedOutInWorkflow,omitempty"` + Url string `json:"Url,omitempty"` + WaitDurationUntilAccepted map[string]interface{} `json:"WaitDurationUntilAccepted,omitempty"` + WaitDurationUntilCanceled map[string]interface{} `json:"WaitDurationUntilCanceled,omitempty"` + WorkflowSid string `json:"WorkflowSid,omitempty"` + WorkspaceSid string `json:"WorkspaceSid,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_workflow_real_time_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_workflow_real_time_statistics.go index 8decb88a8..a08dafdd0 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_workflow_real_time_statistics.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_workflow_real_time_statistics.go @@ -11,13 +11,13 @@ package openapi // TaskrouterV1WorkspaceWorkflowWorkflowRealTimeStatistics struct for TaskrouterV1WorkspaceWorkflowWorkflowRealTimeStatistics type TaskrouterV1WorkspaceWorkflowWorkflowRealTimeStatistics struct { - AccountSid string `json:"account_sid,omitempty"` - LongestTaskWaitingAge int32 `json:"longest_task_waiting_age,omitempty"` - LongestTaskWaitingSid string `json:"longest_task_waiting_sid,omitempty"` - TasksByPriority map[string]interface{} `json:"tasks_by_priority,omitempty"` - TasksByStatus map[string]interface{} `json:"tasks_by_status,omitempty"` - TotalTasks int32 `json:"total_tasks,omitempty"` - Url string `json:"url,omitempty"` - WorkflowSid string `json:"workflow_sid,omitempty"` - WorkspaceSid string `json:"workspace_sid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + LongestTaskWaitingAge int32 `json:"LongestTaskWaitingAge,omitempty"` + LongestTaskWaitingSid string `json:"LongestTaskWaitingSid,omitempty"` + TasksByPriority map[string]interface{} `json:"TasksByPriority,omitempty"` + TasksByStatus map[string]interface{} `json:"TasksByStatus,omitempty"` + TotalTasks int32 `json:"TotalTasks,omitempty"` + Url string `json:"Url,omitempty"` + WorkflowSid string `json:"WorkflowSid,omitempty"` + WorkspaceSid string `json:"WorkspaceSid,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_workflow_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_workflow_statistics.go index 9df2dcb24..6518e098d 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_workflow_statistics.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_workflow_statistics.go @@ -11,10 +11,10 @@ package openapi // TaskrouterV1WorkspaceWorkflowWorkflowStatistics struct for TaskrouterV1WorkspaceWorkflowWorkflowStatistics type TaskrouterV1WorkspaceWorkflowWorkflowStatistics struct { - AccountSid string `json:"account_sid,omitempty"` - Cumulative map[string]interface{} `json:"cumulative,omitempty"` - Realtime map[string]interface{} `json:"realtime,omitempty"` - Url string `json:"url,omitempty"` - WorkflowSid string `json:"workflow_sid,omitempty"` - WorkspaceSid string `json:"workspace_sid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Cumulative map[string]interface{} `json:"Cumulative,omitempty"` + Realtime map[string]interface{} `json:"Realtime,omitempty"` + Url string `json:"Url,omitempty"` + WorkflowSid string `json:"WorkflowSid,omitempty"` + WorkspaceSid string `json:"WorkspaceSid,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workspace_cumulative_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workspace_cumulative_statistics.go index 960793188..fa5fb2ed4 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workspace_cumulative_statistics.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workspace_cumulative_statistics.go @@ -14,25 +14,25 @@ import ( ) // TaskrouterV1WorkspaceWorkspaceCumulativeStatistics struct for TaskrouterV1WorkspaceWorkspaceCumulativeStatistics type TaskrouterV1WorkspaceWorkspaceCumulativeStatistics struct { - AccountSid string `json:"account_sid,omitempty"` - AvgTaskAcceptanceTime int32 `json:"avg_task_acceptance_time,omitempty"` - EndTime time.Time `json:"end_time,omitempty"` - ReservationsAccepted int32 `json:"reservations_accepted,omitempty"` - ReservationsCanceled int32 `json:"reservations_canceled,omitempty"` - ReservationsCreated int32 `json:"reservations_created,omitempty"` - ReservationsRejected int32 `json:"reservations_rejected,omitempty"` - ReservationsRescinded int32 `json:"reservations_rescinded,omitempty"` - ReservationsTimedOut int32 `json:"reservations_timed_out,omitempty"` - SplitByWaitTime map[string]interface{} `json:"split_by_wait_time,omitempty"` - StartTime time.Time `json:"start_time,omitempty"` - TasksCanceled int32 `json:"tasks_canceled,omitempty"` - TasksCompleted int32 `json:"tasks_completed,omitempty"` - TasksCreated int32 `json:"tasks_created,omitempty"` - TasksDeleted int32 `json:"tasks_deleted,omitempty"` - TasksMoved int32 `json:"tasks_moved,omitempty"` - TasksTimedOutInWorkflow int32 `json:"tasks_timed_out_in_workflow,omitempty"` - Url string `json:"url,omitempty"` - WaitDurationUntilAccepted map[string]interface{} `json:"wait_duration_until_accepted,omitempty"` - WaitDurationUntilCanceled map[string]interface{} `json:"wait_duration_until_canceled,omitempty"` - WorkspaceSid string `json:"workspace_sid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AvgTaskAcceptanceTime int32 `json:"AvgTaskAcceptanceTime,omitempty"` + EndTime time.Time `json:"EndTime,omitempty"` + ReservationsAccepted int32 `json:"ReservationsAccepted,omitempty"` + ReservationsCanceled int32 `json:"ReservationsCanceled,omitempty"` + ReservationsCreated int32 `json:"ReservationsCreated,omitempty"` + ReservationsRejected int32 `json:"ReservationsRejected,omitempty"` + ReservationsRescinded int32 `json:"ReservationsRescinded,omitempty"` + ReservationsTimedOut int32 `json:"ReservationsTimedOut,omitempty"` + SplitByWaitTime map[string]interface{} `json:"SplitByWaitTime,omitempty"` + StartTime time.Time `json:"StartTime,omitempty"` + TasksCanceled int32 `json:"TasksCanceled,omitempty"` + TasksCompleted int32 `json:"TasksCompleted,omitempty"` + TasksCreated int32 `json:"TasksCreated,omitempty"` + TasksDeleted int32 `json:"TasksDeleted,omitempty"` + TasksMoved int32 `json:"TasksMoved,omitempty"` + TasksTimedOutInWorkflow int32 `json:"TasksTimedOutInWorkflow,omitempty"` + Url string `json:"Url,omitempty"` + WaitDurationUntilAccepted map[string]interface{} `json:"WaitDurationUntilAccepted,omitempty"` + WaitDurationUntilCanceled map[string]interface{} `json:"WaitDurationUntilCanceled,omitempty"` + WorkspaceSid string `json:"WorkspaceSid,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workspace_real_time_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workspace_real_time_statistics.go index 444054307..12b644fca 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workspace_real_time_statistics.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workspace_real_time_statistics.go @@ -11,14 +11,14 @@ package openapi // TaskrouterV1WorkspaceWorkspaceRealTimeStatistics struct for TaskrouterV1WorkspaceWorkspaceRealTimeStatistics type TaskrouterV1WorkspaceWorkspaceRealTimeStatistics struct { - AccountSid string `json:"account_sid,omitempty"` - ActivityStatistics []map[string]interface{} `json:"activity_statistics,omitempty"` - LongestTaskWaitingAge int32 `json:"longest_task_waiting_age,omitempty"` - LongestTaskWaitingSid string `json:"longest_task_waiting_sid,omitempty"` - TasksByPriority map[string]interface{} `json:"tasks_by_priority,omitempty"` - TasksByStatus map[string]interface{} `json:"tasks_by_status,omitempty"` - TotalTasks int32 `json:"total_tasks,omitempty"` - TotalWorkers int32 `json:"total_workers,omitempty"` - Url string `json:"url,omitempty"` - WorkspaceSid string `json:"workspace_sid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ActivityStatistics []map[string]interface{} `json:"ActivityStatistics,omitempty"` + LongestTaskWaitingAge int32 `json:"LongestTaskWaitingAge,omitempty"` + LongestTaskWaitingSid string `json:"LongestTaskWaitingSid,omitempty"` + TasksByPriority map[string]interface{} `json:"TasksByPriority,omitempty"` + TasksByStatus map[string]interface{} `json:"TasksByStatus,omitempty"` + TotalTasks int32 `json:"TotalTasks,omitempty"` + TotalWorkers int32 `json:"TotalWorkers,omitempty"` + Url string `json:"Url,omitempty"` + WorkspaceSid string `json:"WorkspaceSid,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workspace_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workspace_statistics.go index 489326b02..71057c717 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workspace_statistics.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workspace_statistics.go @@ -11,9 +11,9 @@ package openapi // TaskrouterV1WorkspaceWorkspaceStatistics struct for TaskrouterV1WorkspaceWorkspaceStatistics type TaskrouterV1WorkspaceWorkspaceStatistics struct { - AccountSid string `json:"account_sid,omitempty"` - Cumulative map[string]interface{} `json:"cumulative,omitempty"` - Realtime map[string]interface{} `json:"realtime,omitempty"` - Url string `json:"url,omitempty"` - WorkspaceSid string `json:"workspace_sid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Cumulative map[string]interface{} `json:"Cumulative,omitempty"` + Realtime map[string]interface{} `json:"Realtime,omitempty"` + Url string `json:"Url,omitempty"` + WorkspaceSid string `json:"WorkspaceSid,omitempty"` } diff --git a/rest/trunking/v1/api_default.go b/rest/trunking/v1/api_default.go index b739ead27..97e04dca7 100644 --- a/rest/trunking/v1/api_default.go +++ b/rest/trunking/v1/api_default.go @@ -15,6 +15,7 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" ) type DefaultApiService struct { @@ -35,20 +36,21 @@ type CreateCredentialListParams struct { /* CreateCredentialList Method for CreateCredentialList - * @param trunkSid The SID of the Trunk to associate the credential list with. + * @param TrunkSid The SID of the Trunk to associate the credential list with. * @param optional nil or *CreateCredentialListOpts - Optional Parameters: * @param "CredentialListSid" (string) - The SID of the [Credential List](https://www.twilio.com/docs/voice/sip/api/sip-credentiallist-resource) that you want to associate with the trunk. Once associated, we will authenticate access to the trunk against this list. @return TrunkingV1TrunkCredentialList */ -func (c *DefaultApiService) CreateCredentialList(trunkSid string, params *CreateCredentialListParams) (*TrunkingV1TrunkCredentialList, error) { +func (c *DefaultApiService) CreateCredentialList(TrunkSid string, params *CreateCredentialListParams) (*TrunkingV1TrunkCredentialList, error) { path := "/v1/Trunks/{TrunkSid}/CredentialLists" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) + data := url.Values{} headers := 0 if params != nil && params.CredentialListSid != nil { - data.Set("CredentialListSid", *params.CredentialListSid) + data.Set("CredentialListSid", *params.CredentialListSid) } @@ -74,20 +76,21 @@ type CreateIpAccessControlListParams struct { /* CreateIpAccessControlList Method for CreateIpAccessControlList Associate an IP Access Control List with a Trunk - * @param trunkSid The SID of the Trunk to associate the IP Access Control List with. + * @param TrunkSid The SID of the Trunk to associate the IP Access Control List with. * @param optional nil or *CreateIpAccessControlListOpts - Optional Parameters: * @param "IpAccessControlListSid" (string) - The SID of the [IP Access Control List](https://www.twilio.com/docs/voice/sip/api/sip-ipaccesscontrollist-resource) that you want to associate with the trunk. @return TrunkingV1TrunkIpAccessControlList */ -func (c *DefaultApiService) CreateIpAccessControlList(trunkSid string, params *CreateIpAccessControlListParams) (*TrunkingV1TrunkIpAccessControlList, error) { +func (c *DefaultApiService) CreateIpAccessControlList(TrunkSid string, params *CreateIpAccessControlListParams) (*TrunkingV1TrunkIpAccessControlList, error) { path := "/v1/Trunks/{TrunkSid}/IpAccessControlLists" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) + data := url.Values{} headers := 0 if params != nil && params.IpAccessControlListSid != nil { - data.Set("IpAccessControlListSid", *params.IpAccessControlListSid) + data.Set("IpAccessControlListSid", *params.IpAccessControlListSid) } @@ -116,7 +119,7 @@ type CreateOriginationUrlParams struct { /* CreateOriginationUrl Method for CreateOriginationUrl - * @param trunkSid The SID of the Trunk to associate the resource with. + * @param TrunkSid The SID of the Trunk to associate the resource with. * @param optional nil or *CreateOriginationUrlOpts - Optional Parameters: * @param "Enabled" (bool) - Whether the URL is enabled. The default is `true`. * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. @@ -125,27 +128,28 @@ CreateOriginationUrl Method for CreateOriginationUrl * @param "Weight" (int32) - The value that determines the relative share of the load the URI should receive compared to other URIs with the same priority. Can be an integer from 1 to 65535, inclusive, and the default is 10. URLs with higher values receive more load than those with lower ones with the same priority. @return TrunkingV1TrunkOriginationUrl */ -func (c *DefaultApiService) CreateOriginationUrl(trunkSid string, params *CreateOriginationUrlParams) (*TrunkingV1TrunkOriginationUrl, error) { +func (c *DefaultApiService) CreateOriginationUrl(TrunkSid string, params *CreateOriginationUrlParams) (*TrunkingV1TrunkOriginationUrl, error) { path := "/v1/Trunks/{TrunkSid}/OriginationUrls" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Enabled != nil { - data.Set("Enabled", string(*params.Enabled)) + data.Set("Enabled", fmt.Sprint(*params.Enabled)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Priority != nil { - data.Set("Priority", string(*params.Priority)) + data.Set("Priority", fmt.Sprint(*params.Priority)) } if params != nil && params.SipUrl != nil { - data.Set("SipUrl", *params.SipUrl) + data.Set("SipUrl", *params.SipUrl) } if params != nil && params.Weight != nil { - data.Set("Weight", string(*params.Weight)) + data.Set("Weight", fmt.Sprint(*params.Weight)) } @@ -170,20 +174,21 @@ type CreatePhoneNumberParams struct { /* CreatePhoneNumber Method for CreatePhoneNumber - * @param trunkSid The SID of the Trunk to associate the phone number with. + * @param TrunkSid The SID of the Trunk to associate the phone number with. * @param optional nil or *CreatePhoneNumberOpts - Optional Parameters: * @param "PhoneNumberSid" (string) - The SID of the [Incoming Phone Number](https://www.twilio.com/docs/phone-numbers/api/incomingphonenumber-resource) that you want to associate with the trunk. @return TrunkingV1TrunkPhoneNumber */ -func (c *DefaultApiService) CreatePhoneNumber(trunkSid string, params *CreatePhoneNumberParams) (*TrunkingV1TrunkPhoneNumber, error) { +func (c *DefaultApiService) CreatePhoneNumber(TrunkSid string, params *CreatePhoneNumberParams) (*TrunkingV1TrunkPhoneNumber, error) { path := "/v1/Trunks/{TrunkSid}/PhoneNumbers" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PhoneNumberSid != nil { - data.Set("PhoneNumberSid", *params.PhoneNumberSid) + data.Set("PhoneNumberSid", *params.PhoneNumberSid) } @@ -227,29 +232,30 @@ CreateTrunk Method for CreateTrunk func (c *DefaultApiService) CreateTrunk(params *CreateTrunkParams) (*TrunkingV1Trunk, error) { path := "/v1/Trunks" + data := url.Values{} headers := 0 if params != nil && params.CnamLookupEnabled != nil { - data.Set("CnamLookupEnabled", string(*params.CnamLookupEnabled)) + data.Set("CnamLookupEnabled", fmt.Sprint(*params.CnamLookupEnabled)) } if params != nil && params.DisasterRecoveryMethod != nil { - data.Set("DisasterRecoveryMethod", *params.DisasterRecoveryMethod) + data.Set("DisasterRecoveryMethod", *params.DisasterRecoveryMethod) } if params != nil && params.DisasterRecoveryUrl != nil { - data.Set("DisasterRecoveryUrl", *params.DisasterRecoveryUrl) + data.Set("DisasterRecoveryUrl", *params.DisasterRecoveryUrl) } if params != nil && params.DomainName != nil { - data.Set("DomainName", *params.DomainName) + data.Set("DomainName", *params.DomainName) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Secure != nil { - data.Set("Secure", string(*params.Secure)) + data.Set("Secure", fmt.Sprint(*params.Secure)) } if params != nil && params.TransferMode != nil { - data.Set("TransferMode", *params.TransferMode) + data.Set("TransferMode", *params.TransferMode) } @@ -270,15 +276,16 @@ func (c *DefaultApiService) CreateTrunk(params *CreateTrunkParams) (*TrunkingV1T /* DeleteCredentialList Method for DeleteCredentialList - * @param trunkSid The SID of the Trunk from which to delete the credential list. - * @param sid The unique string that we created to identify the CredentialList resource to delete. + * @param TrunkSid The SID of the Trunk from which to delete the credential list. + * @param Sid The unique string that we created to identify the CredentialList resource to delete. */ -func (c *DefaultApiService) DeleteCredentialList(trunkSid string, sid string) (error) { +func (c *DefaultApiService) DeleteCredentialList(TrunkSid string, Sid string) (error) { path := "/v1/Trunks/{TrunkSid}/CredentialLists/{Sid}" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -296,15 +303,16 @@ func (c *DefaultApiService) DeleteCredentialList(trunkSid string, sid string) (e /* DeleteIpAccessControlList Method for DeleteIpAccessControlList Remove an associated IP Access Control List from a Trunk - * @param trunkSid The SID of the Trunk from which to delete the IP Access Control List. - * @param sid The unique string that we created to identify the IpAccessControlList resource to delete. + * @param TrunkSid The SID of the Trunk from which to delete the IP Access Control List. + * @param Sid The unique string that we created to identify the IpAccessControlList resource to delete. */ -func (c *DefaultApiService) DeleteIpAccessControlList(trunkSid string, sid string) (error) { +func (c *DefaultApiService) DeleteIpAccessControlList(TrunkSid string, Sid string) (error) { path := "/v1/Trunks/{TrunkSid}/IpAccessControlLists/{Sid}" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -321,15 +329,16 @@ func (c *DefaultApiService) DeleteIpAccessControlList(trunkSid string, sid strin /* DeleteOriginationUrl Method for DeleteOriginationUrl - * @param trunkSid The SID of the Trunk from which to delete the OriginationUrl. - * @param sid The unique string that we created to identify the OriginationUrl resource to delete. + * @param TrunkSid The SID of the Trunk from which to delete the OriginationUrl. + * @param Sid The unique string that we created to identify the OriginationUrl resource to delete. */ -func (c *DefaultApiService) DeleteOriginationUrl(trunkSid string, sid string) (error) { +func (c *DefaultApiService) DeleteOriginationUrl(TrunkSid string, Sid string) (error) { path := "/v1/Trunks/{TrunkSid}/OriginationUrls/{Sid}" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -346,15 +355,16 @@ func (c *DefaultApiService) DeleteOriginationUrl(trunkSid string, sid string) (e /* DeletePhoneNumber Method for DeletePhoneNumber - * @param trunkSid The SID of the Trunk from which to delete the PhoneNumber resource. - * @param sid The unique string that we created to identify the PhoneNumber resource to delete. + * @param TrunkSid The SID of the Trunk from which to delete the PhoneNumber resource. + * @param Sid The unique string that we created to identify the PhoneNumber resource to delete. */ -func (c *DefaultApiService) DeletePhoneNumber(trunkSid string, sid string) (error) { +func (c *DefaultApiService) DeletePhoneNumber(TrunkSid string, Sid string) (error) { path := "/v1/Trunks/{TrunkSid}/PhoneNumbers/{Sid}" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -371,13 +381,14 @@ func (c *DefaultApiService) DeletePhoneNumber(trunkSid string, sid string) (erro /* DeleteTrunk Method for DeleteTrunk - * @param sid The unique string that we created to identify the Trunk resource to delete. + * @param Sid The unique string that we created to identify the Trunk resource to delete. */ -func (c *DefaultApiService) DeleteTrunk(sid string) (error) { +func (c *DefaultApiService) DeleteTrunk(Sid string) (error) { path := "/v1/Trunks/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -394,16 +405,17 @@ func (c *DefaultApiService) DeleteTrunk(sid string) (error) { /* FetchCredentialList Method for FetchCredentialList - * @param trunkSid The SID of the Trunk from which to fetch the credential list. - * @param sid The unique string that we created to identify the CredentialList resource to fetch. + * @param TrunkSid The SID of the Trunk from which to fetch the credential list. + * @param Sid The unique string that we created to identify the CredentialList resource to fetch. @return TrunkingV1TrunkCredentialList */ -func (c *DefaultApiService) FetchCredentialList(trunkSid string, sid string) (*TrunkingV1TrunkCredentialList, error) { +func (c *DefaultApiService) FetchCredentialList(TrunkSid string, Sid string) (*TrunkingV1TrunkCredentialList, error) { path := "/v1/Trunks/{TrunkSid}/CredentialLists/{Sid}" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -425,16 +437,17 @@ func (c *DefaultApiService) FetchCredentialList(trunkSid string, sid string) (*T /* FetchIpAccessControlList Method for FetchIpAccessControlList - * @param trunkSid The SID of the Trunk from which to fetch the IP Access Control List. - * @param sid The unique string that we created to identify the IpAccessControlList resource to fetch. + * @param TrunkSid The SID of the Trunk from which to fetch the IP Access Control List. + * @param Sid The unique string that we created to identify the IpAccessControlList resource to fetch. @return TrunkingV1TrunkIpAccessControlList */ -func (c *DefaultApiService) FetchIpAccessControlList(trunkSid string, sid string) (*TrunkingV1TrunkIpAccessControlList, error) { +func (c *DefaultApiService) FetchIpAccessControlList(TrunkSid string, Sid string) (*TrunkingV1TrunkIpAccessControlList, error) { path := "/v1/Trunks/{TrunkSid}/IpAccessControlLists/{Sid}" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -456,16 +469,17 @@ func (c *DefaultApiService) FetchIpAccessControlList(trunkSid string, sid string /* FetchOriginationUrl Method for FetchOriginationUrl - * @param trunkSid The SID of the Trunk from which to fetch the OriginationUrl. - * @param sid The unique string that we created to identify the OriginationUrl resource to fetch. + * @param TrunkSid The SID of the Trunk from which to fetch the OriginationUrl. + * @param Sid The unique string that we created to identify the OriginationUrl resource to fetch. @return TrunkingV1TrunkOriginationUrl */ -func (c *DefaultApiService) FetchOriginationUrl(trunkSid string, sid string) (*TrunkingV1TrunkOriginationUrl, error) { +func (c *DefaultApiService) FetchOriginationUrl(TrunkSid string, Sid string) (*TrunkingV1TrunkOriginationUrl, error) { path := "/v1/Trunks/{TrunkSid}/OriginationUrls/{Sid}" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -487,16 +501,17 @@ func (c *DefaultApiService) FetchOriginationUrl(trunkSid string, sid string) (*T /* FetchPhoneNumber Method for FetchPhoneNumber - * @param trunkSid The SID of the Trunk from which to fetch the PhoneNumber resource. - * @param sid The unique string that we created to identify the PhoneNumber resource to fetch. + * @param TrunkSid The SID of the Trunk from which to fetch the PhoneNumber resource. + * @param Sid The unique string that we created to identify the PhoneNumber resource to fetch. @return TrunkingV1TrunkPhoneNumber */ -func (c *DefaultApiService) FetchPhoneNumber(trunkSid string, sid string) (*TrunkingV1TrunkPhoneNumber, error) { +func (c *DefaultApiService) FetchPhoneNumber(TrunkSid string, Sid string) (*TrunkingV1TrunkPhoneNumber, error) { path := "/v1/Trunks/{TrunkSid}/PhoneNumbers/{Sid}" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -518,14 +533,15 @@ func (c *DefaultApiService) FetchPhoneNumber(trunkSid string, sid string) (*Trun /* FetchRecording Method for FetchRecording - * @param trunkSid The SID of the Trunk from which to fetch the recording settings. + * @param TrunkSid The SID of the Trunk from which to fetch the recording settings. @return TrunkingV1TrunkRecording */ -func (c *DefaultApiService) FetchRecording(trunkSid string) (*TrunkingV1TrunkRecording, error) { +func (c *DefaultApiService) FetchRecording(TrunkSid string) (*TrunkingV1TrunkRecording, error) { path := "/v1/Trunks/{TrunkSid}/Recording" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -547,14 +563,15 @@ func (c *DefaultApiService) FetchRecording(trunkSid string) (*TrunkingV1TrunkRec /* FetchTrunk Method for FetchTrunk - * @param sid The unique string that we created to identify the Trunk resource to fetch. + * @param Sid The unique string that we created to identify the Trunk resource to fetch. @return TrunkingV1Trunk */ -func (c *DefaultApiService) FetchTrunk(sid string) (*TrunkingV1Trunk, error) { +func (c *DefaultApiService) FetchTrunk(Sid string) (*TrunkingV1Trunk, error) { path := "/v1/Trunks/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -580,20 +597,21 @@ type ListCredentialListParams struct { /* ListCredentialList Method for ListCredentialList - * @param trunkSid The SID of the Trunk from which to read the credential lists. + * @param TrunkSid The SID of the Trunk from which to read the credential lists. * @param optional nil or *ListCredentialListOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return TrunkingV1TrunkCredentialListReadResponse */ -func (c *DefaultApiService) ListCredentialList(trunkSid string, params *ListCredentialListParams) (*TrunkingV1TrunkCredentialListReadResponse, error) { +func (c *DefaultApiService) ListCredentialList(TrunkSid string, params *ListCredentialListParams) (*TrunkingV1TrunkCredentialListReadResponse, error) { path := "/v1/Trunks/{TrunkSid}/CredentialLists" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -619,20 +637,21 @@ type ListIpAccessControlListParams struct { /* ListIpAccessControlList Method for ListIpAccessControlList List all IP Access Control Lists for a Trunk - * @param trunkSid The SID of the Trunk from which to read the IP Access Control Lists. + * @param TrunkSid The SID of the Trunk from which to read the IP Access Control Lists. * @param optional nil or *ListIpAccessControlListOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return TrunkingV1TrunkIpAccessControlListReadResponse */ -func (c *DefaultApiService) ListIpAccessControlList(trunkSid string, params *ListIpAccessControlListParams) (*TrunkingV1TrunkIpAccessControlListReadResponse, error) { +func (c *DefaultApiService) ListIpAccessControlList(TrunkSid string, params *ListIpAccessControlListParams) (*TrunkingV1TrunkIpAccessControlListReadResponse, error) { path := "/v1/Trunks/{TrunkSid}/IpAccessControlLists" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -657,20 +676,21 @@ type ListOriginationUrlParams struct { /* ListOriginationUrl Method for ListOriginationUrl - * @param trunkSid The SID of the Trunk from which to read the OriginationUrl. + * @param TrunkSid The SID of the Trunk from which to read the OriginationUrl. * @param optional nil or *ListOriginationUrlOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return TrunkingV1TrunkOriginationUrlReadResponse */ -func (c *DefaultApiService) ListOriginationUrl(trunkSid string, params *ListOriginationUrlParams) (*TrunkingV1TrunkOriginationUrlReadResponse, error) { +func (c *DefaultApiService) ListOriginationUrl(TrunkSid string, params *ListOriginationUrlParams) (*TrunkingV1TrunkOriginationUrlReadResponse, error) { path := "/v1/Trunks/{TrunkSid}/OriginationUrls" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -695,20 +715,21 @@ type ListPhoneNumberParams struct { /* ListPhoneNumber Method for ListPhoneNumber - * @param trunkSid The SID of the Trunk from which to read the PhoneNumber resources. + * @param TrunkSid The SID of the Trunk from which to read the PhoneNumber resources. * @param optional nil or *ListPhoneNumberOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return TrunkingV1TrunkPhoneNumberReadResponse */ -func (c *DefaultApiService) ListPhoneNumber(trunkSid string, params *ListPhoneNumberParams) (*TrunkingV1TrunkPhoneNumberReadResponse, error) { +func (c *DefaultApiService) ListPhoneNumber(TrunkSid string, params *ListPhoneNumberParams) (*TrunkingV1TrunkPhoneNumberReadResponse, error) { path := "/v1/Trunks/{TrunkSid}/PhoneNumbers" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -740,11 +761,12 @@ ListTrunk Method for ListTrunk func (c *DefaultApiService) ListTrunk(params *ListTrunkParams) (*TrunkingV1TrunkReadResponse, error) { path := "/v1/Trunks" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -773,8 +795,8 @@ type UpdateOriginationUrlParams struct { /* UpdateOriginationUrl Method for UpdateOriginationUrl - * @param trunkSid The SID of the Trunk from which to update the OriginationUrl. - * @param sid The unique string that we created to identify the OriginationUrl resource to update. + * @param TrunkSid The SID of the Trunk from which to update the OriginationUrl. + * @param Sid The unique string that we created to identify the OriginationUrl resource to update. * @param optional nil or *UpdateOriginationUrlOpts - Optional Parameters: * @param "Enabled" (bool) - Whether the URL is enabled. The default is `true`. * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. @@ -783,28 +805,29 @@ UpdateOriginationUrl Method for UpdateOriginationUrl * @param "Weight" (int32) - The value that determines the relative share of the load the URI should receive compared to other URIs with the same priority. Can be an integer from 1 to 65535, inclusive, and the default is 10. URLs with higher values receive more load than those with lower ones with the same priority. @return TrunkingV1TrunkOriginationUrl */ -func (c *DefaultApiService) UpdateOriginationUrl(trunkSid string, sid string, params *UpdateOriginationUrlParams) (*TrunkingV1TrunkOriginationUrl, error) { +func (c *DefaultApiService) UpdateOriginationUrl(TrunkSid string, Sid string, params *UpdateOriginationUrlParams) (*TrunkingV1TrunkOriginationUrl, error) { path := "/v1/Trunks/{TrunkSid}/OriginationUrls/{Sid}" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.Enabled != nil { - data.Set("Enabled", string(*params.Enabled)) + data.Set("Enabled", fmt.Sprint(*params.Enabled)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Priority != nil { - data.Set("Priority", string(*params.Priority)) + data.Set("Priority", fmt.Sprint(*params.Priority)) } if params != nil && params.SipUrl != nil { - data.Set("SipUrl", *params.SipUrl) + data.Set("SipUrl", *params.SipUrl) } if params != nil && params.Weight != nil { - data.Set("Weight", string(*params.Weight)) + data.Set("Weight", fmt.Sprint(*params.Weight)) } @@ -830,24 +853,25 @@ type UpdateRecordingParams struct { /* UpdateRecording Method for UpdateRecording - * @param trunkSid The SID of the Trunk that will have its recording settings updated. + * @param TrunkSid The SID of the Trunk that will have its recording settings updated. * @param optional nil or *UpdateRecordingOpts - Optional Parameters: * @param "Mode" (string) - The recording mode for the trunk. Can be do-not-record (default), record-from-ringing, record-from-answer, record-from-ringing-dual, or record-from-answer-dual. * @param "Trim" (string) - The recording trim setting for the trunk. Can be do-not-trim (default) or trim-silence. @return TrunkingV1TrunkRecording */ -func (c *DefaultApiService) UpdateRecording(trunkSid string, params *UpdateRecordingParams) (*TrunkingV1TrunkRecording, error) { +func (c *DefaultApiService) UpdateRecording(TrunkSid string, params *UpdateRecordingParams) (*TrunkingV1TrunkRecording, error) { path := "/v1/Trunks/{TrunkSid}/Recording" - path = strings.Replace(path, "{"+"TrunkSid"+"}", trunkSid, -1) + path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Mode != nil { - data.Set("Mode", *params.Mode) + data.Set("Mode", *params.Mode) } if params != nil && params.Trim != nil { - data.Set("Trim", *params.Trim) + data.Set("Trim", *params.Trim) } @@ -878,7 +902,7 @@ type UpdateTrunkParams struct { /* UpdateTrunk Method for UpdateTrunk - * @param sid The unique string that we created to identify the OriginationUrl resource to update. + * @param Sid The unique string that we created to identify the OriginationUrl resource to update. * @param optional nil or *UpdateTrunkOpts - Optional Parameters: * @param "CnamLookupEnabled" (bool) - Whether Caller ID Name (CNAM) lookup should be enabled for the trunk. If enabled, all inbound calls to the SIP Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information. * @param "DisasterRecoveryMethod" (string) - The HTTP method we should use to call the `disaster_recovery_url`. Can be: `GET` or `POST`. @@ -889,33 +913,34 @@ UpdateTrunk Method for UpdateTrunk * @param "TransferMode" (string) - The call transfer settings for the trunk. Can be: `enable-all`, `sip-only` and `disable-all`. See [Transfer](https://www.twilio.com/docs/sip-trunking/call-transfer) for more information. @return TrunkingV1Trunk */ -func (c *DefaultApiService) UpdateTrunk(sid string, params *UpdateTrunkParams) (*TrunkingV1Trunk, error) { +func (c *DefaultApiService) UpdateTrunk(Sid string, params *UpdateTrunkParams) (*TrunkingV1Trunk, error) { path := "/v1/Trunks/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.CnamLookupEnabled != nil { - data.Set("CnamLookupEnabled", string(*params.CnamLookupEnabled)) + data.Set("CnamLookupEnabled", fmt.Sprint(*params.CnamLookupEnabled)) } if params != nil && params.DisasterRecoveryMethod != nil { - data.Set("DisasterRecoveryMethod", *params.DisasterRecoveryMethod) + data.Set("DisasterRecoveryMethod", *params.DisasterRecoveryMethod) } if params != nil && params.DisasterRecoveryUrl != nil { - data.Set("DisasterRecoveryUrl", *params.DisasterRecoveryUrl) + data.Set("DisasterRecoveryUrl", *params.DisasterRecoveryUrl) } if params != nil && params.DomainName != nil { - data.Set("DomainName", *params.DomainName) + data.Set("DomainName", *params.DomainName) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Secure != nil { - data.Set("Secure", string(*params.Secure)) + data.Set("Secure", fmt.Sprint(*params.Secure)) } if params != nil && params.TransferMode != nil { - data.Set("TransferMode", *params.TransferMode) + data.Set("TransferMode", *params.TransferMode) } diff --git a/rest/trunking/v1/docs/DefaultApi.md b/rest/trunking/v1/docs/DefaultApi.md index 987b36433..0a62e40c7 100644 --- a/rest/trunking/v1/docs/DefaultApi.md +++ b/rest/trunking/v1/docs/DefaultApi.md @@ -33,7 +33,7 @@ Method | HTTP request | Description ## CreateCredentialList -> TrunkingV1TrunkCredentialList CreateCredentialList(ctx, trunkSid, optional) +> TrunkingV1TrunkCredentialList CreateCredentialList(ctx, TrunkSid, optional) @@ -43,7 +43,7 @@ Method | HTTP request | Description Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**trunkSid** | **string**| The SID of the Trunk to associate the credential list with. | +**TrunkSid** | **string**| The SID of the Trunk to associate the credential list with. | **optional** | ***CreateCredentialListOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -54,7 +54,7 @@ Optional parameters are passed through a pointer to a CreateCredentialListOpts s Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **credentialListSid** | **optional.String**| The SID of the [Credential List](https://www.twilio.com/docs/voice/sip/api/sip-credentiallist-resource) that you want to associate with the trunk. Once associated, we will authenticate access to the trunk against this list. | + **CredentialListSid** | **optional.String**| The SID of the [Credential List](https://www.twilio.com/docs/voice/sip/api/sip-credentiallist-resource) that you want to associate with the trunk. Once associated, we will authenticate access to the trunk against this list. | ### Return type @@ -76,7 +76,7 @@ Name | Type | Description | Notes ## CreateIpAccessControlList -> TrunkingV1TrunkIpAccessControlList CreateIpAccessControlList(ctx, trunkSid, optional) +> TrunkingV1TrunkIpAccessControlList CreateIpAccessControlList(ctx, TrunkSid, optional) @@ -88,7 +88,7 @@ Associate an IP Access Control List with a Trunk Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**trunkSid** | **string**| The SID of the Trunk to associate the IP Access Control List with. | +**TrunkSid** | **string**| The SID of the Trunk to associate the IP Access Control List with. | **optional** | ***CreateIpAccessControlListOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -99,7 +99,7 @@ Optional parameters are passed through a pointer to a CreateIpAccessControlListO Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ipAccessControlListSid** | **optional.String**| The SID of the [IP Access Control List](https://www.twilio.com/docs/voice/sip/api/sip-ipaccesscontrollist-resource) that you want to associate with the trunk. | + **IpAccessControlListSid** | **optional.String**| The SID of the [IP Access Control List](https://www.twilio.com/docs/voice/sip/api/sip-ipaccesscontrollist-resource) that you want to associate with the trunk. | ### Return type @@ -121,7 +121,7 @@ Name | Type | Description | Notes ## CreateOriginationUrl -> TrunkingV1TrunkOriginationUrl CreateOriginationUrl(ctx, trunkSid, optional) +> TrunkingV1TrunkOriginationUrl CreateOriginationUrl(ctx, TrunkSid, optional) @@ -131,7 +131,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**trunkSid** | **string**| The SID of the Trunk to associate the resource with. | +**TrunkSid** | **string**| The SID of the Trunk to associate the resource with. | **optional** | ***CreateOriginationUrlOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -142,11 +142,11 @@ Optional parameters are passed through a pointer to a CreateOriginationUrlOpts s Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **enabled** | **optional.Bool**| Whether the URL is enabled. The default is `true`. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | - **priority** | **optional.Int32**| The relative importance of the URI. Can be an integer from 0 to 65535, inclusive, and the default is 10. The lowest number represents the most important URI. | - **sipUrl** | **optional.String**| The SIP address you want Twilio to route your Origination calls to. This must be a `sip:` schema. | - **weight** | **optional.Int32**| The value that determines the relative share of the load the URI should receive compared to other URIs with the same priority. Can be an integer from 1 to 65535, inclusive, and the default is 10. URLs with higher values receive more load than those with lower ones with the same priority. | + **Enabled** | **optional.Bool**| Whether the URL is enabled. The default is `true`. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **Priority** | **optional.Int32**| The relative importance of the URI. Can be an integer from 0 to 65535, inclusive, and the default is 10. The lowest number represents the most important URI. | + **SipUrl** | **optional.String**| The SIP address you want Twilio to route your Origination calls to. This must be a `sip:` schema. | + **Weight** | **optional.Int32**| The value that determines the relative share of the load the URI should receive compared to other URIs with the same priority. Can be an integer from 1 to 65535, inclusive, and the default is 10. URLs with higher values receive more load than those with lower ones with the same priority. | ### Return type @@ -168,7 +168,7 @@ Name | Type | Description | Notes ## CreatePhoneNumber -> TrunkingV1TrunkPhoneNumber CreatePhoneNumber(ctx, trunkSid, optional) +> TrunkingV1TrunkPhoneNumber CreatePhoneNumber(ctx, TrunkSid, optional) @@ -178,7 +178,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**trunkSid** | **string**| The SID of the Trunk to associate the phone number with. | +**TrunkSid** | **string**| The SID of the Trunk to associate the phone number with. | **optional** | ***CreatePhoneNumberOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -189,7 +189,7 @@ Optional parameters are passed through a pointer to a CreatePhoneNumberOpts stru Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **phoneNumberSid** | **optional.String**| The SID of the [Incoming Phone Number](https://www.twilio.com/docs/phone-numbers/api/incomingphonenumber-resource) that you want to associate with the trunk. | + **PhoneNumberSid** | **optional.String**| The SID of the [Incoming Phone Number](https://www.twilio.com/docs/phone-numbers/api/incomingphonenumber-resource) that you want to associate with the trunk. | ### Return type @@ -230,13 +230,13 @@ Optional parameters are passed through a pointer to a CreateTrunkOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **cnamLookupEnabled** | **optional.Bool**| Whether Caller ID Name (CNAM) lookup should be enabled for the trunk. If enabled, all inbound calls to the SIP Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information. | - **disasterRecoveryMethod** | **optional.String**| The HTTP method we should use to call the `disaster_recovery_url`. Can be: `GET` or `POST`. | - **disasterRecoveryUrl** | **optional.String**| The URL we should call using the `disaster_recovery_method` if an error occurs while sending SIP traffic towards the configured Origination URL. We retrieve TwiML from the URL and execute the instructions like any other normal TwiML call. See [Disaster Recovery](https://www.twilio.com/docs/sip-trunking#disaster-recovery) for more information. | - **domainName** | **optional.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 `pstn.twilio.com`. See [Termination Settings](https://www.twilio.com/docs/sip-trunking#termination) for more information. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | - **secure** | **optional.Bool**| Whether Secure Trunking is enabled for the trunk. If enabled, all calls going through the trunk will be secure using SRTP for media and TLS for signaling. If disabled, then RTP will be used for media. See [Secure Trunking](https://www.twilio.com/docs/sip-trunking#securetrunking) for more information. | - **transferMode** | **optional.String**| The call transfer settings for the trunk. Can be: `enable-all`, `sip-only` and `disable-all`. See [Transfer](https://www.twilio.com/docs/sip-trunking/call-transfer) for more information. | + **CnamLookupEnabled** | **optional.Bool**| Whether Caller ID Name (CNAM) lookup should be enabled for the trunk. If enabled, all inbound calls to the SIP Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information. | + **DisasterRecoveryMethod** | **optional.String**| The HTTP method we should use to call the `disaster_recovery_url`. Can be: `GET` or `POST`. | + **DisasterRecoveryUrl** | **optional.String**| The URL we should call using the `disaster_recovery_method` if an error occurs while sending SIP traffic towards the configured Origination URL. We retrieve TwiML from the URL and execute the instructions like any other normal TwiML call. See [Disaster Recovery](https://www.twilio.com/docs/sip-trunking#disaster-recovery) for more information. | + **DomainName** | **optional.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 `pstn.twilio.com`. See [Termination Settings](https://www.twilio.com/docs/sip-trunking#termination) for more information. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **Secure** | **optional.Bool**| Whether Secure Trunking is enabled for the trunk. If enabled, all calls going through the trunk will be secure using SRTP for media and TLS for signaling. If disabled, then RTP will be used for media. See [Secure Trunking](https://www.twilio.com/docs/sip-trunking#securetrunking) for more information. | + **TransferMode** | **optional.String**| The call transfer settings for the trunk. Can be: `enable-all`, `sip-only` and `disable-all`. See [Transfer](https://www.twilio.com/docs/sip-trunking/call-transfer) for more information. | ### Return type @@ -258,7 +258,7 @@ Name | Type | Description | Notes ## DeleteCredentialList -> DeleteCredentialList(ctx, trunkSid, sid) +> DeleteCredentialList(ctx, TrunkSid, Sid) @@ -268,8 +268,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**trunkSid** | **string**| The SID of the Trunk from which to delete the credential list. | -**sid** | **string**| The unique string that we created to identify the CredentialList resource to delete. | +**TrunkSid** | **string**| The SID of the Trunk from which to delete the credential list. | +**Sid** | **string**| The unique string that we created to identify the CredentialList resource to delete. | ### Return type @@ -291,7 +291,7 @@ Name | Type | Description | Notes ## DeleteIpAccessControlList -> DeleteIpAccessControlList(ctx, trunkSid, sid) +> DeleteIpAccessControlList(ctx, TrunkSid, Sid) @@ -303,8 +303,8 @@ Remove an associated IP Access Control List from a Trunk Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**trunkSid** | **string**| The SID of the Trunk from which to delete the IP Access Control List. | -**sid** | **string**| The unique string that we created to identify the IpAccessControlList resource to delete. | +**TrunkSid** | **string**| The SID of the Trunk from which to delete the IP Access Control List. | +**Sid** | **string**| The unique string that we created to identify the IpAccessControlList resource to delete. | ### Return type @@ -326,7 +326,7 @@ Name | Type | Description | Notes ## DeleteOriginationUrl -> DeleteOriginationUrl(ctx, trunkSid, sid) +> DeleteOriginationUrl(ctx, TrunkSid, Sid) @@ -336,8 +336,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**trunkSid** | **string**| The SID of the Trunk from which to delete the OriginationUrl. | -**sid** | **string**| The unique string that we created to identify the OriginationUrl resource to delete. | +**TrunkSid** | **string**| The SID of the Trunk from which to delete the OriginationUrl. | +**Sid** | **string**| The unique string that we created to identify the OriginationUrl resource to delete. | ### Return type @@ -359,7 +359,7 @@ Name | Type | Description | Notes ## DeletePhoneNumber -> DeletePhoneNumber(ctx, trunkSid, sid) +> DeletePhoneNumber(ctx, TrunkSid, Sid) @@ -369,8 +369,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**trunkSid** | **string**| The SID of the Trunk from which to delete the PhoneNumber resource. | -**sid** | **string**| The unique string that we created to identify the PhoneNumber resource to delete. | +**TrunkSid** | **string**| The SID of the Trunk from which to delete the PhoneNumber resource. | +**Sid** | **string**| The unique string that we created to identify the PhoneNumber resource to delete. | ### Return type @@ -392,7 +392,7 @@ Name | Type | Description | Notes ## DeleteTrunk -> DeleteTrunk(ctx, sid) +> DeleteTrunk(ctx, Sid) @@ -402,7 +402,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The unique string that we created to identify the Trunk resource to delete. | +**Sid** | **string**| The unique string that we created to identify the Trunk resource to delete. | ### Return type @@ -424,7 +424,7 @@ Name | Type | Description | Notes ## FetchCredentialList -> TrunkingV1TrunkCredentialList FetchCredentialList(ctx, trunkSid, sid) +> TrunkingV1TrunkCredentialList FetchCredentialList(ctx, TrunkSid, Sid) @@ -434,8 +434,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**trunkSid** | **string**| The SID of the Trunk from which to fetch the credential list. | -**sid** | **string**| The unique string that we created to identify the CredentialList resource to fetch. | +**TrunkSid** | **string**| The SID of the Trunk from which to fetch the credential list. | +**Sid** | **string**| The unique string that we created to identify the CredentialList resource to fetch. | ### Return type @@ -457,7 +457,7 @@ Name | Type | Description | Notes ## FetchIpAccessControlList -> TrunkingV1TrunkIpAccessControlList FetchIpAccessControlList(ctx, trunkSid, sid) +> TrunkingV1TrunkIpAccessControlList FetchIpAccessControlList(ctx, TrunkSid, Sid) @@ -467,8 +467,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**trunkSid** | **string**| The SID of the Trunk from which to fetch the IP Access Control List. | -**sid** | **string**| The unique string that we created to identify the IpAccessControlList resource to fetch. | +**TrunkSid** | **string**| The SID of the Trunk from which to fetch the IP Access Control List. | +**Sid** | **string**| The unique string that we created to identify the IpAccessControlList resource to fetch. | ### Return type @@ -490,7 +490,7 @@ Name | Type | Description | Notes ## FetchOriginationUrl -> TrunkingV1TrunkOriginationUrl FetchOriginationUrl(ctx, trunkSid, sid) +> TrunkingV1TrunkOriginationUrl FetchOriginationUrl(ctx, TrunkSid, Sid) @@ -500,8 +500,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**trunkSid** | **string**| The SID of the Trunk from which to fetch the OriginationUrl. | -**sid** | **string**| The unique string that we created to identify the OriginationUrl resource to fetch. | +**TrunkSid** | **string**| The SID of the Trunk from which to fetch the OriginationUrl. | +**Sid** | **string**| The unique string that we created to identify the OriginationUrl resource to fetch. | ### Return type @@ -523,7 +523,7 @@ Name | Type | Description | Notes ## FetchPhoneNumber -> TrunkingV1TrunkPhoneNumber FetchPhoneNumber(ctx, trunkSid, sid) +> TrunkingV1TrunkPhoneNumber FetchPhoneNumber(ctx, TrunkSid, Sid) @@ -533,8 +533,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**trunkSid** | **string**| The SID of the Trunk from which to fetch the PhoneNumber resource. | -**sid** | **string**| The unique string that we created to identify the PhoneNumber resource to fetch. | +**TrunkSid** | **string**| The SID of the Trunk from which to fetch the PhoneNumber resource. | +**Sid** | **string**| The unique string that we created to identify the PhoneNumber resource to fetch. | ### Return type @@ -556,7 +556,7 @@ Name | Type | Description | Notes ## FetchRecording -> TrunkingV1TrunkRecording FetchRecording(ctx, trunkSid) +> TrunkingV1TrunkRecording FetchRecording(ctx, TrunkSid) @@ -566,7 +566,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**trunkSid** | **string**| The SID of the Trunk from which to fetch the recording settings. | +**TrunkSid** | **string**| The SID of the Trunk from which to fetch the recording settings. | ### Return type @@ -588,7 +588,7 @@ Name | Type | Description | Notes ## FetchTrunk -> TrunkingV1Trunk FetchTrunk(ctx, sid) +> TrunkingV1Trunk FetchTrunk(ctx, Sid) @@ -598,7 +598,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The unique string that we created to identify the Trunk resource to fetch. | +**Sid** | **string**| The unique string that we created to identify the Trunk resource to fetch. | ### Return type @@ -620,7 +620,7 @@ Name | Type | Description | Notes ## ListCredentialList -> TrunkingV1TrunkCredentialListReadResponse ListCredentialList(ctx, trunkSid, optional) +> TrunkingV1TrunkCredentialListReadResponse ListCredentialList(ctx, TrunkSid, optional) @@ -630,7 +630,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**trunkSid** | **string**| The SID of the Trunk from which to read the credential lists. | +**TrunkSid** | **string**| The SID of the Trunk from which to read the credential lists. | **optional** | ***ListCredentialListOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -641,7 +641,7 @@ Optional parameters are passed through a pointer to a ListCredentialListOpts str Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -663,7 +663,7 @@ Name | Type | Description | Notes ## ListIpAccessControlList -> TrunkingV1TrunkIpAccessControlListReadResponse ListIpAccessControlList(ctx, trunkSid, optional) +> TrunkingV1TrunkIpAccessControlListReadResponse ListIpAccessControlList(ctx, TrunkSid, optional) @@ -675,7 +675,7 @@ List all IP Access Control Lists for a Trunk Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**trunkSid** | **string**| The SID of the Trunk from which to read the IP Access Control Lists. | +**TrunkSid** | **string**| The SID of the Trunk from which to read the IP Access Control Lists. | **optional** | ***ListIpAccessControlListOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -686,7 +686,7 @@ Optional parameters are passed through a pointer to a ListIpAccessControlListOpt Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -708,7 +708,7 @@ Name | Type | Description | Notes ## ListOriginationUrl -> TrunkingV1TrunkOriginationUrlReadResponse ListOriginationUrl(ctx, trunkSid, optional) +> TrunkingV1TrunkOriginationUrlReadResponse ListOriginationUrl(ctx, TrunkSid, optional) @@ -718,7 +718,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**trunkSid** | **string**| The SID of the Trunk from which to read the OriginationUrl. | +**TrunkSid** | **string**| The SID of the Trunk from which to read the OriginationUrl. | **optional** | ***ListOriginationUrlOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -729,7 +729,7 @@ Optional parameters are passed through a pointer to a ListOriginationUrlOpts str Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -751,7 +751,7 @@ Name | Type | Description | Notes ## ListPhoneNumber -> TrunkingV1TrunkPhoneNumberReadResponse ListPhoneNumber(ctx, trunkSid, optional) +> TrunkingV1TrunkPhoneNumberReadResponse ListPhoneNumber(ctx, TrunkSid, optional) @@ -761,7 +761,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**trunkSid** | **string**| The SID of the Trunk from which to read the PhoneNumber resources. | +**TrunkSid** | **string**| The SID of the Trunk from which to read the PhoneNumber resources. | **optional** | ***ListPhoneNumberOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -772,7 +772,7 @@ Optional parameters are passed through a pointer to a ListPhoneNumberOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -813,7 +813,7 @@ Optional parameters are passed through a pointer to a ListTrunkOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -835,7 +835,7 @@ Name | Type | Description | Notes ## UpdateOriginationUrl -> TrunkingV1TrunkOriginationUrl UpdateOriginationUrl(ctx, trunkSid, sid, optional) +> TrunkingV1TrunkOriginationUrl UpdateOriginationUrl(ctx, TrunkSid, Sid, optional) @@ -845,8 +845,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**trunkSid** | **string**| The SID of the Trunk from which to update the OriginationUrl. | -**sid** | **string**| The unique string that we created to identify the OriginationUrl resource to update. | +**TrunkSid** | **string**| The SID of the Trunk from which to update the OriginationUrl. | +**Sid** | **string**| The unique string that we created to identify the OriginationUrl resource to update. | **optional** | ***UpdateOriginationUrlOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -858,11 +858,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **enabled** | **optional.Bool**| Whether the URL is enabled. The default is `true`. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | - **priority** | **optional.Int32**| The relative importance of the URI. Can be an integer from 0 to 65535, inclusive, and the default is 10. The lowest number represents the most important URI. | - **sipUrl** | **optional.String**| The SIP address you want Twilio to route your Origination calls to. This must be a `sip:` schema. `sips` is NOT supported. | - **weight** | **optional.Int32**| The value that determines the relative share of the load the URI should receive compared to other URIs with the same priority. Can be an integer from 1 to 65535, inclusive, and the default is 10. URLs with higher values receive more load than those with lower ones with the same priority. | + **Enabled** | **optional.Bool**| Whether the URL is enabled. The default is `true`. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **Priority** | **optional.Int32**| The relative importance of the URI. Can be an integer from 0 to 65535, inclusive, and the default is 10. The lowest number represents the most important URI. | + **SipUrl** | **optional.String**| The SIP address you want Twilio to route your Origination calls to. This must be a `sip:` schema. `sips` is NOT supported. | + **Weight** | **optional.Int32**| The value that determines the relative share of the load the URI should receive compared to other URIs with the same priority. Can be an integer from 1 to 65535, inclusive, and the default is 10. URLs with higher values receive more load than those with lower ones with the same priority. | ### Return type @@ -884,7 +884,7 @@ Name | Type | Description | Notes ## UpdateRecording -> TrunkingV1TrunkRecording UpdateRecording(ctx, trunkSid, optional) +> TrunkingV1TrunkRecording UpdateRecording(ctx, TrunkSid, optional) @@ -894,7 +894,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**trunkSid** | **string**| The SID of the Trunk that will have its recording settings updated. | +**TrunkSid** | **string**| The SID of the Trunk that will have its recording settings updated. | **optional** | ***UpdateRecordingOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -905,8 +905,8 @@ Optional parameters are passed through a pointer to a UpdateRecordingOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **mode** | **optional.String**| The recording mode for the trunk. Can be do-not-record (default), record-from-ringing, record-from-answer, record-from-ringing-dual, or record-from-answer-dual. | - **trim** | **optional.String**| The recording trim setting for the trunk. Can be do-not-trim (default) or trim-silence. | + **Mode** | **optional.String**| The recording mode for the trunk. Can be do-not-record (default), record-from-ringing, record-from-answer, record-from-ringing-dual, or record-from-answer-dual. | + **Trim** | **optional.String**| The recording trim setting for the trunk. Can be do-not-trim (default) or trim-silence. | ### Return type @@ -928,7 +928,7 @@ Name | Type | Description | Notes ## UpdateTrunk -> TrunkingV1Trunk UpdateTrunk(ctx, sid, optional) +> TrunkingV1Trunk UpdateTrunk(ctx, Sid, optional) @@ -938,7 +938,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The unique string that we created to identify the OriginationUrl resource to update. | +**Sid** | **string**| The unique string that we created to identify the OriginationUrl resource to update. | **optional** | ***UpdateTrunkOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -949,13 +949,13 @@ Optional parameters are passed through a pointer to a UpdateTrunkOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **cnamLookupEnabled** | **optional.Bool**| Whether Caller ID Name (CNAM) lookup should be enabled for the trunk. If enabled, all inbound calls to the SIP Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information. | - **disasterRecoveryMethod** | **optional.String**| The HTTP method we should use to call the `disaster_recovery_url`. Can be: `GET` or `POST`. | - **disasterRecoveryUrl** | **optional.String**| The URL we should call using the `disaster_recovery_method` if an error occurs while sending SIP traffic towards the configured Origination URL. We retrieve TwiML from the URL and execute the instructions like any other normal TwiML call. See [Disaster Recovery](https://www.twilio.com/docs/sip-trunking#disaster-recovery) for more information. | - **domainName** | **optional.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 `pstn.twilio.com`. See [Termination Settings](https://www.twilio.com/docs/sip-trunking#termination) for more information. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | - **secure** | **optional.Bool**| Whether Secure Trunking is enabled for the trunk. If enabled, all calls going through the trunk will be secure using SRTP for media and TLS for signaling. If disabled, then RTP will be used for media. See [Secure Trunking](https://www.twilio.com/docs/sip-trunking#securetrunking) for more information. | - **transferMode** | **optional.String**| The call transfer settings for the trunk. Can be: `enable-all`, `sip-only` and `disable-all`. See [Transfer](https://www.twilio.com/docs/sip-trunking/call-transfer) for more information. | + **CnamLookupEnabled** | **optional.Bool**| Whether Caller ID Name (CNAM) lookup should be enabled for the trunk. If enabled, all inbound calls to the SIP Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information. | + **DisasterRecoveryMethod** | **optional.String**| The HTTP method we should use to call the `disaster_recovery_url`. Can be: `GET` or `POST`. | + **DisasterRecoveryUrl** | **optional.String**| The URL we should call using the `disaster_recovery_method` if an error occurs while sending SIP traffic towards the configured Origination URL. We retrieve TwiML from the URL and execute the instructions like any other normal TwiML call. See [Disaster Recovery](https://www.twilio.com/docs/sip-trunking#disaster-recovery) for more information. | + **DomainName** | **optional.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 `pstn.twilio.com`. See [Termination Settings](https://www.twilio.com/docs/sip-trunking#termination) for more information. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 64 characters long. | + **Secure** | **optional.Bool**| Whether Secure Trunking is enabled for the trunk. If enabled, all calls going through the trunk will be secure using SRTP for media and TLS for signaling. If disabled, then RTP will be used for media. See [Secure Trunking](https://www.twilio.com/docs/sip-trunking#securetrunking) for more information. | + **TransferMode** | **optional.String**| The call transfer settings for the trunk. Can be: `enable-all`, `sip-only` and `disable-all`. See [Transfer](https://www.twilio.com/docs/sip-trunking/call-transfer) for more information. | ### Return type diff --git a/rest/trunking/v1/model_trunking_v1_trunk.go b/rest/trunking/v1/model_trunking_v1_trunk.go index 1144351e4..708aaca48 100644 --- a/rest/trunking/v1/model_trunking_v1_trunk.go +++ b/rest/trunking/v1/model_trunking_v1_trunk.go @@ -14,20 +14,20 @@ import ( ) // TrunkingV1Trunk struct for TrunkingV1Trunk type TrunkingV1Trunk struct { - AccountSid string `json:"account_sid,omitempty"` - AuthType string `json:"auth_type,omitempty"` - AuthTypeSet []string `json:"auth_type_set,omitempty"` - CnamLookupEnabled bool `json:"cnam_lookup_enabled,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - DisasterRecoveryMethod string `json:"disaster_recovery_method,omitempty"` - DisasterRecoveryUrl string `json:"disaster_recovery_url,omitempty"` - DomainName string `json:"domain_name,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Recording map[string]interface{} `json:"recording,omitempty"` - Secure bool `json:"secure,omitempty"` - Sid string `json:"sid,omitempty"` - TransferMode string `json:"transfer_mode,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AuthType string `json:"AuthType,omitempty"` + AuthTypeSet []string `json:"AuthTypeSet,omitempty"` + CnamLookupEnabled bool `json:"CnamLookupEnabled,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + DisasterRecoveryMethod string `json:"DisasterRecoveryMethod,omitempty"` + DisasterRecoveryUrl string `json:"DisasterRecoveryUrl,omitempty"` + DomainName string `json:"DomainName,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Recording map[string]interface{} `json:"Recording,omitempty"` + Secure bool `json:"Secure,omitempty"` + Sid string `json:"Sid,omitempty"` + TransferMode string `json:"TransferMode,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/trunking/v1/model_trunking_v1_trunk_credential_list.go b/rest/trunking/v1/model_trunking_v1_trunk_credential_list.go index e536f52aa..17c37f663 100644 --- a/rest/trunking/v1/model_trunking_v1_trunk_credential_list.go +++ b/rest/trunking/v1/model_trunking_v1_trunk_credential_list.go @@ -14,11 +14,11 @@ import ( ) // TrunkingV1TrunkCredentialList struct for TrunkingV1TrunkCredentialList type TrunkingV1TrunkCredentialList struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Sid string `json:"sid,omitempty"` - TrunkSid string `json:"trunk_sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Sid string `json:"Sid,omitempty"` + TrunkSid string `json:"TrunkSid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/trunking/v1/model_trunking_v1_trunk_credential_list_read_response.go b/rest/trunking/v1/model_trunking_v1_trunk_credential_list_read_response.go index 6bfe790b6..62f081180 100644 --- a/rest/trunking/v1/model_trunking_v1_trunk_credential_list_read_response.go +++ b/rest/trunking/v1/model_trunking_v1_trunk_credential_list_read_response.go @@ -11,6 +11,6 @@ package openapi // TrunkingV1TrunkCredentialListReadResponse struct for TrunkingV1TrunkCredentialListReadResponse type TrunkingV1TrunkCredentialListReadResponse struct { - CredentialLists []TrunkingV1TrunkCredentialList `json:"credential_lists,omitempty"` - Meta TrunkingV1TrunkReadResponseMeta `json:"meta,omitempty"` + CredentialLists []TrunkingV1TrunkCredentialList `json:"CredentialLists,omitempty"` + Meta TrunkingV1TrunkReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/trunking/v1/model_trunking_v1_trunk_ip_access_control_list.go b/rest/trunking/v1/model_trunking_v1_trunk_ip_access_control_list.go index e7574566d..46c1367b1 100644 --- a/rest/trunking/v1/model_trunking_v1_trunk_ip_access_control_list.go +++ b/rest/trunking/v1/model_trunking_v1_trunk_ip_access_control_list.go @@ -14,11 +14,11 @@ import ( ) // TrunkingV1TrunkIpAccessControlList struct for TrunkingV1TrunkIpAccessControlList type TrunkingV1TrunkIpAccessControlList struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Sid string `json:"sid,omitempty"` - TrunkSid string `json:"trunk_sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Sid string `json:"Sid,omitempty"` + TrunkSid string `json:"TrunkSid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/trunking/v1/model_trunking_v1_trunk_ip_access_control_list_read_response.go b/rest/trunking/v1/model_trunking_v1_trunk_ip_access_control_list_read_response.go index bba043b0e..a9a7c86a0 100644 --- a/rest/trunking/v1/model_trunking_v1_trunk_ip_access_control_list_read_response.go +++ b/rest/trunking/v1/model_trunking_v1_trunk_ip_access_control_list_read_response.go @@ -11,6 +11,6 @@ package openapi // TrunkingV1TrunkIpAccessControlListReadResponse struct for TrunkingV1TrunkIpAccessControlListReadResponse type TrunkingV1TrunkIpAccessControlListReadResponse struct { - IpAccessControlLists []TrunkingV1TrunkIpAccessControlList `json:"ip_access_control_lists,omitempty"` - Meta TrunkingV1TrunkReadResponseMeta `json:"meta,omitempty"` + IpAccessControlLists []TrunkingV1TrunkIpAccessControlList `json:"IpAccessControlLists,omitempty"` + Meta TrunkingV1TrunkReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/trunking/v1/model_trunking_v1_trunk_origination_url.go b/rest/trunking/v1/model_trunking_v1_trunk_origination_url.go index 442556fe3..74d3b5d15 100644 --- a/rest/trunking/v1/model_trunking_v1_trunk_origination_url.go +++ b/rest/trunking/v1/model_trunking_v1_trunk_origination_url.go @@ -14,15 +14,15 @@ import ( ) // TrunkingV1TrunkOriginationUrl struct for TrunkingV1TrunkOriginationUrl type TrunkingV1TrunkOriginationUrl struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Enabled bool `json:"enabled,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Priority int32 `json:"priority,omitempty"` - Sid string `json:"sid,omitempty"` - SipUrl string `json:"sip_url,omitempty"` - TrunkSid string `json:"trunk_sid,omitempty"` - Url string `json:"url,omitempty"` - Weight int32 `json:"weight,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Enabled bool `json:"Enabled,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Priority int32 `json:"Priority,omitempty"` + Sid string `json:"Sid,omitempty"` + SipUrl string `json:"SipUrl,omitempty"` + TrunkSid string `json:"TrunkSid,omitempty"` + Url string `json:"Url,omitempty"` + Weight int32 `json:"Weight,omitempty"` } diff --git a/rest/trunking/v1/model_trunking_v1_trunk_origination_url_read_response.go b/rest/trunking/v1/model_trunking_v1_trunk_origination_url_read_response.go index 1363ad037..527a9f850 100644 --- a/rest/trunking/v1/model_trunking_v1_trunk_origination_url_read_response.go +++ b/rest/trunking/v1/model_trunking_v1_trunk_origination_url_read_response.go @@ -11,6 +11,6 @@ package openapi // TrunkingV1TrunkOriginationUrlReadResponse struct for TrunkingV1TrunkOriginationUrlReadResponse type TrunkingV1TrunkOriginationUrlReadResponse struct { - Meta TrunkingV1TrunkReadResponseMeta `json:"meta,omitempty"` - OriginationUrls []TrunkingV1TrunkOriginationUrl `json:"origination_urls,omitempty"` + Meta TrunkingV1TrunkReadResponseMeta `json:"Meta,omitempty"` + OriginationUrls []TrunkingV1TrunkOriginationUrl `json:"OriginationUrls,omitempty"` } diff --git a/rest/trunking/v1/model_trunking_v1_trunk_phone_number.go b/rest/trunking/v1/model_trunking_v1_trunk_phone_number.go index 4437f64c4..ec15c9c55 100644 --- a/rest/trunking/v1/model_trunking_v1_trunk_phone_number.go +++ b/rest/trunking/v1/model_trunking_v1_trunk_phone_number.go @@ -14,30 +14,30 @@ import ( ) // TrunkingV1TrunkPhoneNumber struct for TrunkingV1TrunkPhoneNumber type TrunkingV1TrunkPhoneNumber struct { - AccountSid string `json:"account_sid,omitempty"` - AddressRequirements string `json:"address_requirements,omitempty"` - ApiVersion string `json:"api_version,omitempty"` - Beta bool `json:"beta,omitempty"` - Capabilities map[string]interface{} `json:"capabilities,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - PhoneNumber string `json:"phone_number,omitempty"` - Sid string `json:"sid,omitempty"` - SmsApplicationSid string `json:"sms_application_sid,omitempty"` - SmsFallbackMethod string `json:"sms_fallback_method,omitempty"` - SmsFallbackUrl string `json:"sms_fallback_url,omitempty"` - SmsMethod string `json:"sms_method,omitempty"` - SmsUrl string `json:"sms_url,omitempty"` - StatusCallback string `json:"status_callback,omitempty"` - StatusCallbackMethod string `json:"status_callback_method,omitempty"` - TrunkSid string `json:"trunk_sid,omitempty"` - Url string `json:"url,omitempty"` - VoiceApplicationSid string `json:"voice_application_sid,omitempty"` - VoiceCallerIdLookup bool `json:"voice_caller_id_lookup,omitempty"` - VoiceFallbackMethod string `json:"voice_fallback_method,omitempty"` - VoiceFallbackUrl string `json:"voice_fallback_url,omitempty"` - VoiceMethod string `json:"voice_method,omitempty"` - VoiceUrl string `json:"voice_url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AddressRequirements string `json:"AddressRequirements,omitempty"` + ApiVersion string `json:"ApiVersion,omitempty"` + Beta bool `json:"Beta,omitempty"` + Capabilities map[string]interface{} `json:"Capabilities,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + PhoneNumber string `json:"PhoneNumber,omitempty"` + Sid string `json:"Sid,omitempty"` + SmsApplicationSid string `json:"SmsApplicationSid,omitempty"` + SmsFallbackMethod string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl string `json:"SmsFallbackUrl,omitempty"` + SmsMethod string `json:"SmsMethod,omitempty"` + SmsUrl string `json:"SmsUrl,omitempty"` + StatusCallback string `json:"StatusCallback,omitempty"` + StatusCallbackMethod string `json:"StatusCallbackMethod,omitempty"` + TrunkSid string `json:"TrunkSid,omitempty"` + Url string `json:"Url,omitempty"` + VoiceApplicationSid string `json:"VoiceApplicationSid,omitempty"` + VoiceCallerIdLookup bool `json:"VoiceCallerIdLookup,omitempty"` + VoiceFallbackMethod string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod string `json:"VoiceMethod,omitempty"` + VoiceUrl string `json:"VoiceUrl,omitempty"` } diff --git a/rest/trunking/v1/model_trunking_v1_trunk_phone_number_read_response.go b/rest/trunking/v1/model_trunking_v1_trunk_phone_number_read_response.go index a85d1c113..b4467cbce 100644 --- a/rest/trunking/v1/model_trunking_v1_trunk_phone_number_read_response.go +++ b/rest/trunking/v1/model_trunking_v1_trunk_phone_number_read_response.go @@ -11,6 +11,6 @@ package openapi // TrunkingV1TrunkPhoneNumberReadResponse struct for TrunkingV1TrunkPhoneNumberReadResponse type TrunkingV1TrunkPhoneNumberReadResponse struct { - Meta TrunkingV1TrunkReadResponseMeta `json:"meta,omitempty"` - PhoneNumbers []TrunkingV1TrunkPhoneNumber `json:"phone_numbers,omitempty"` + Meta TrunkingV1TrunkReadResponseMeta `json:"Meta,omitempty"` + PhoneNumbers []TrunkingV1TrunkPhoneNumber `json:"PhoneNumbers,omitempty"` } diff --git a/rest/trunking/v1/model_trunking_v1_trunk_read_response.go b/rest/trunking/v1/model_trunking_v1_trunk_read_response.go index a48be39fb..5a12b67fc 100644 --- a/rest/trunking/v1/model_trunking_v1_trunk_read_response.go +++ b/rest/trunking/v1/model_trunking_v1_trunk_read_response.go @@ -11,6 +11,6 @@ package openapi // TrunkingV1TrunkReadResponse struct for TrunkingV1TrunkReadResponse type TrunkingV1TrunkReadResponse struct { - Meta TrunkingV1TrunkReadResponseMeta `json:"meta,omitempty"` - Trunks []TrunkingV1Trunk `json:"trunks,omitempty"` + Meta TrunkingV1TrunkReadResponseMeta `json:"Meta,omitempty"` + Trunks []TrunkingV1Trunk `json:"Trunks,omitempty"` } diff --git a/rest/trunking/v1/model_trunking_v1_trunk_read_response_meta.go b/rest/trunking/v1/model_trunking_v1_trunk_read_response_meta.go index 552a00c6f..8f7d4ede7 100644 --- a/rest/trunking/v1/model_trunking_v1_trunk_read_response_meta.go +++ b/rest/trunking/v1/model_trunking_v1_trunk_read_response_meta.go @@ -11,11 +11,11 @@ package openapi // TrunkingV1TrunkReadResponseMeta struct for TrunkingV1TrunkReadResponseMeta type TrunkingV1TrunkReadResponseMeta struct { - FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` - NextPageUrl string `json:"next_page_url,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUrl string `json:"previous_page_url,omitempty"` - Url string `json:"url,omitempty"` + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/trunking/v1/model_trunking_v1_trunk_recording.go b/rest/trunking/v1/model_trunking_v1_trunk_recording.go index 83af05760..9a6a89839 100644 --- a/rest/trunking/v1/model_trunking_v1_trunk_recording.go +++ b/rest/trunking/v1/model_trunking_v1_trunk_recording.go @@ -11,6 +11,6 @@ package openapi // TrunkingV1TrunkRecording struct for TrunkingV1TrunkRecording type TrunkingV1TrunkRecording struct { - Mode string `json:"mode,omitempty"` - Trim string `json:"trim,omitempty"` + Mode string `json:"Mode,omitempty"` + Trim string `json:"Trim,omitempty"` } diff --git a/rest/verify/v2/api_default.go b/rest/verify/v2/api_default.go index cf6fde6e4..0a49d0e9b 100644 --- a/rest/verify/v2/api_default.go +++ b/rest/verify/v2/api_default.go @@ -15,6 +15,8 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" + "time" ) type DefaultApiService struct { @@ -37,24 +39,25 @@ type CreateAccessTokenParams struct { /* CreateAccessToken Method for CreateAccessToken Create a new enrollment Access Token for the Entity - * @param serviceSid The unique SID identifier of the Service. + * @param ServiceSid The unique SID identifier of the Service. * @param optional nil or *CreateAccessTokenOpts - Optional Parameters: * @param "FactorType" (string) - The Type of this Factor. Eg. `push` * @param "Identity" (string) - The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, and generated by your external system, such as your user's UUID, GUID, or SID. @return VerifyV2ServiceAccessToken */ -func (c *DefaultApiService) CreateAccessToken(serviceSid string, params *CreateAccessTokenParams) (*VerifyV2ServiceAccessToken, error) { +func (c *DefaultApiService) CreateAccessToken(ServiceSid string, params *CreateAccessTokenParams) (*VerifyV2ServiceAccessToken, error) { path := "/v2/Services/{ServiceSid}/AccessTokens" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.FactorType != nil { - data.Set("FactorType", *params.FactorType) + data.Set("FactorType", *params.FactorType) } if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) + data.Set("Identity", *params.Identity) } @@ -81,26 +84,27 @@ type CreateBucketParams struct { /* CreateBucket Method for CreateBucket Create a new Bucket for a Rate Limit - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. - * @param rateLimitSid The Twilio-provided string that uniquely identifies the Rate Limit resource. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. + * @param RateLimitSid The Twilio-provided string that uniquely identifies the Rate Limit resource. * @param optional nil or *CreateBucketOpts - Optional Parameters: * @param "Interval" (int32) - Number of seconds that the rate limit will be enforced over. * @param "Max" (int32) - Maximum number of requests permitted in during the interval. @return VerifyV2ServiceRateLimitBucket */ -func (c *DefaultApiService) CreateBucket(serviceSid string, rateLimitSid string, params *CreateBucketParams) (*VerifyV2ServiceRateLimitBucket, error) { +func (c *DefaultApiService) CreateBucket(ServiceSid string, RateLimitSid string, params *CreateBucketParams) (*VerifyV2ServiceRateLimitBucket, error) { path := "/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"RateLimitSid"+"}", rateLimitSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"RateLimitSid"+"}", RateLimitSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Interval != nil { - data.Set("Interval", string(*params.Interval)) + data.Set("Interval", fmt.Sprint(*params.Interval)) } if params != nil && params.Max != nil { - data.Set("Max", string(*params.Max)) + data.Set("Max", fmt.Sprint(*params.Max)) } @@ -120,8 +124,8 @@ func (c *DefaultApiService) CreateBucket(serviceSid string, rateLimitSid string, } // CreateChallengeParams Optional parameters for the method 'CreateChallenge' type CreateChallengeParams struct { - Details.Fields *[]map[string]interface{} `json:"Details.Fields,omitempty"` - Details.Message *string `json:"Details.Message,omitempty"` + DetailsFields *[]map[string]interface{} `json:"DetailsFields,omitempty"` + DetailsMessage *string `json:"DetailsMessage,omitempty"` ExpirationDate *time.Time `json:"ExpirationDate,omitempty"` FactorSid *string `json:"FactorSid,omitempty"` HiddenDetails *map[string]interface{} `json:"HiddenDetails,omitempty"` @@ -130,41 +134,42 @@ type CreateChallengeParams struct { /* CreateChallenge Method for CreateChallenge Create a new Challenge for the Factor - * @param serviceSid The unique SID identifier of the Service. - * @param identity The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, and generated by your external system, such as your user's UUID, GUID, or SID. + * @param ServiceSid The unique SID identifier of the Service. + * @param Identity The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, and generated by your external system, such as your user's UUID, GUID, or SID. * @param optional nil or *CreateChallengeOpts - Optional Parameters: - * @param "Details.Fields" ([]map[string]interface{}) - A list of objects that describe the Fields included in the Challenge. Each object contains the label and value of the field. Used when `factor_type` is `push`. - * @param "Details.Message" (string) - Shown to the user when the push notification arrives. Required when `factor_type` is `push` + * @param "DetailsFields" ([]map[string]interface{}) - A list of objects that describe the Fields included in the Challenge. Each object contains the label and value of the field. Used when `factor_type` is `push`. + * @param "DetailsMessage" (string) - Shown to the user when the push notification arrives. Required when `factor_type` is `push` * @param "ExpirationDate" (time.Time) - The date-time when this Challenge expires, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. The default value is five (5) minutes after Challenge creation. The max value is sixty (60) minutes after creation. * @param "FactorSid" (string) - The unique SID identifier of the Factor. * @param "HiddenDetails" (map[string]interface{}) - Details provided to give context about the Challenge. Not shown to the end user. It must be a stringified JSON with only strings values eg. `{\\\"ip\\\": \\\"172.168.1.234\\\"}` @return VerifyV2ServiceEntityChallenge */ -func (c *DefaultApiService) CreateChallenge(serviceSid string, identity string, params *CreateChallengeParams) (*VerifyV2ServiceEntityChallenge, error) { +func (c *DefaultApiService) CreateChallenge(ServiceSid string, Identity string, params *CreateChallengeParams) (*VerifyV2ServiceEntityChallenge, error) { path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", Identity, -1) + data := url.Values{} headers := 0 - if params != nil && params.Details.Fields != nil { - v, err := json.Marshal(params.Details.Fields) + if params != nil && params.DetailsFields != nil { + v, err := json.Marshal(params.DetailsFields) if err != nil { return nil, err } - data.Set("Details.Fields", string(v)) + data.Set("DetailsFields", fmt.Sprint(v)) } - if params != nil && params.Details.Message != nil { - data.Set("Details.Message", *params.Details.Message) + if params != nil && params.DetailsMessage != nil { + data.Set("DetailsMessage", *params.DetailsMessage) } if params != nil && params.ExpirationDate != nil { - data.Set("ExpirationDate", string(*params.ExpirationDate)) + data.Set("ExpirationDate", fmt.Sprint(*params.ExpirationDate)) } if params != nil && params.FactorSid != nil { - data.Set("FactorSid", *params.FactorSid) + data.Set("FactorSid", *params.FactorSid) } if params != nil && params.HiddenDetails != nil { v, err := json.Marshal(params.HiddenDetails) @@ -173,7 +178,7 @@ func (c *DefaultApiService) CreateChallenge(serviceSid string, identity string, return nil, err } - data.Set("HiddenDetails", string(v)) + data.Set("HiddenDetails", fmt.Sprint(v)) } @@ -199,20 +204,21 @@ type CreateEntityParams struct { /* CreateEntity Method for CreateEntity Create a new Entity for the Service - * @param serviceSid The unique SID identifier of the Service. + * @param ServiceSid The unique SID identifier of the Service. * @param optional nil or *CreateEntityOpts - Optional Parameters: * @param "Identity" (string) - The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, length between 8 and 64 characters, and generated by your external system, such as your user's UUID, GUID, or SID. @return VerifyV2ServiceEntity */ -func (c *DefaultApiService) CreateEntity(serviceSid string, params *CreateEntityParams) (*VerifyV2ServiceEntity, error) { +func (c *DefaultApiService) CreateEntity(ServiceSid string, params *CreateEntityParams) (*VerifyV2ServiceEntity, error) { path := "/v2/Services/{ServiceSid}/Entities" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) + data.Set("Identity", *params.Identity) } @@ -232,12 +238,12 @@ func (c *DefaultApiService) CreateEntity(serviceSid string, params *CreateEntity } // CreateFactorParams Optional parameters for the method 'CreateFactor' type CreateFactorParams struct { - Binding.Alg *string `json:"Binding.Alg,omitempty"` - Binding.PublicKey *string `json:"Binding.PublicKey,omitempty"` - Config.AppId *string `json:"Config.AppId,omitempty"` - Config.NotificationPlatform *string `json:"Config.NotificationPlatform,omitempty"` - Config.NotificationToken *string `json:"Config.NotificationToken,omitempty"` - Config.SdkVersion *string `json:"Config.SdkVersion,omitempty"` + BindingAlg *string `json:"BindingAlg,omitempty"` + BindingPublicKey *string `json:"BindingPublicKey,omitempty"` + ConfigAppId *string `json:"ConfigAppId,omitempty"` + ConfigNotificationPlatform *string `json:"ConfigNotificationPlatform,omitempty"` + ConfigNotificationToken *string `json:"ConfigNotificationToken,omitempty"` + ConfigSdkVersion *string `json:"ConfigSdkVersion,omitempty"` FactorType *string `json:"FactorType,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` } @@ -245,50 +251,51 @@ type CreateFactorParams struct { /* CreateFactor Method for CreateFactor Create a new Factor for the Entity - * @param serviceSid The unique SID identifier of the Service. - * @param identity Customer unique identity for the Entity owner of the Factor + * @param ServiceSid The unique SID identifier of the Service. + * @param Identity Customer unique identity for the Entity owner of the Factor * @param optional nil or *CreateFactorOpts - Optional Parameters: - * @param "Binding.Alg" (string) - The algorithm used when `factor_type` is `push`. Algorithm supported: `ES256` - * @param "Binding.PublicKey" (string) - The Ecdsa public key in PKIX, ASN.1 DER format encoded in Base64 - * @param "Config.AppId" (string) - The ID that uniquely identifies your app in the Google or Apple store, such as `com.example.myapp`. Required when `factor_type` is `push` - * @param "Config.NotificationPlatform" (string) - The transport technology used to generate the Notification Token. Can be `apn` or `fcm`. Required when `factor_type` is `push` - * @param "Config.NotificationToken" (string) - For APN, the device token. For FCM the registration token. It used to send the push notifications. Required when `factor_type` is `push` - * @param "Config.SdkVersion" (string) - The Verify Push SDK version used to configure the factor + * @param "BindingAlg" (string) - The algorithm used when `factor_type` is `push`. Algorithm supported: `ES256` + * @param "BindingPublicKey" (string) - The Ecdsa public key in PKIX, ASN.1 DER format encoded in Base64 + * @param "ConfigAppId" (string) - The ID that uniquely identifies your app in the Google or Apple store, such as `com.example.myapp`. Required when `factor_type` is `push` + * @param "ConfigNotificationPlatform" (string) - The transport technology used to generate the Notification Token. Can be `apn` or `fcm`. Required when `factor_type` is `push` + * @param "ConfigNotificationToken" (string) - For APN, the device token. For FCM the registration token. It used to send the push notifications. Required when `factor_type` is `push` + * @param "ConfigSdkVersion" (string) - The Verify Push SDK version used to configure the factor * @param "FactorType" (string) - The Type of this Factor. Currently only `push` is supported * @param "FriendlyName" (string) - The friendly name of this Factor @return VerifyV2ServiceEntityFactor */ -func (c *DefaultApiService) CreateFactor(serviceSid string, identity string, params *CreateFactorParams) (*VerifyV2ServiceEntityFactor, error) { +func (c *DefaultApiService) CreateFactor(ServiceSid string, Identity string, params *CreateFactorParams) (*VerifyV2ServiceEntityFactor, error) { path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Factors" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", Identity, -1) + data := url.Values{} headers := 0 - if params != nil && params.Binding.Alg != nil { - data.Set("Binding.Alg", *params.Binding.Alg) + if params != nil && params.BindingAlg != nil { + data.Set("BindingAlg", *params.BindingAlg) } - if params != nil && params.Binding.PublicKey != nil { - data.Set("Binding.PublicKey", *params.Binding.PublicKey) + if params != nil && params.BindingPublicKey != nil { + data.Set("BindingPublicKey", *params.BindingPublicKey) } - if params != nil && params.Config.AppId != nil { - data.Set("Config.AppId", *params.Config.AppId) + if params != nil && params.ConfigAppId != nil { + data.Set("ConfigAppId", *params.ConfigAppId) } - if params != nil && params.Config.NotificationPlatform != nil { - data.Set("Config.NotificationPlatform", *params.Config.NotificationPlatform) + if params != nil && params.ConfigNotificationPlatform != nil { + data.Set("ConfigNotificationPlatform", *params.ConfigNotificationPlatform) } - if params != nil && params.Config.NotificationToken != nil { - data.Set("Config.NotificationToken", *params.Config.NotificationToken) + if params != nil && params.ConfigNotificationToken != nil { + data.Set("ConfigNotificationToken", *params.ConfigNotificationToken) } - if params != nil && params.Config.SdkVersion != nil { - data.Set("Config.SdkVersion", *params.Config.SdkVersion) + if params != nil && params.ConfigSdkVersion != nil { + data.Set("ConfigSdkVersion", *params.ConfigSdkVersion) } if params != nil && params.FactorType != nil { - data.Set("FactorType", *params.FactorType) + data.Set("FactorType", *params.FactorType) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -315,24 +322,25 @@ type CreateMessagingConfigurationParams struct { /* CreateMessagingConfiguration Method for CreateMessagingConfiguration Create a new MessagingConfiguration for a service. - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. * @param optional nil or *CreateMessagingConfigurationOpts - Optional Parameters: * @param "Country" (string) - The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. * @param "MessagingServiceSid" (string) - The SID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) to be used to send SMS to the country of this configuration. @return VerifyV2ServiceMessagingConfiguration */ -func (c *DefaultApiService) CreateMessagingConfiguration(serviceSid string, params *CreateMessagingConfigurationParams) (*VerifyV2ServiceMessagingConfiguration, error) { +func (c *DefaultApiService) CreateMessagingConfiguration(ServiceSid string, params *CreateMessagingConfigurationParams) (*VerifyV2ServiceMessagingConfiguration, error) { path := "/v2/Services/{ServiceSid}/MessagingConfigurations" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Country != nil { - data.Set("Country", *params.Country) + data.Set("Country", *params.Country) } if params != nil && params.MessagingServiceSid != nil { - data.Set("MessagingServiceSid", *params.MessagingServiceSid) + data.Set("MessagingServiceSid", *params.MessagingServiceSid) } @@ -359,24 +367,25 @@ type CreateRateLimitParams struct { /* CreateRateLimit Method for CreateRateLimit Create a new Rate Limit for a Service - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. * @param optional nil or *CreateRateLimitOpts - Optional Parameters: * @param "Description" (string) - Description of this Rate Limit * @param "UniqueName" (string) - Provides a unique and addressable name to be assigned to this Rate Limit, assigned by the developer, to be optionally used in addition to SID. **This value should not contain PII.** @return VerifyV2ServiceRateLimit */ -func (c *DefaultApiService) CreateRateLimit(serviceSid string, params *CreateRateLimitParams) (*VerifyV2ServiceRateLimit, error) { +func (c *DefaultApiService) CreateRateLimit(ServiceSid string, params *CreateRateLimitParams) (*VerifyV2ServiceRateLimit, error) { path := "/v2/Services/{ServiceSid}/RateLimits" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Description != nil { - data.Set("Description", *params.Description) + data.Set("Description", *params.Description) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -403,9 +412,9 @@ type CreateServiceParams struct { FriendlyName *string `json:"FriendlyName,omitempty"` LookupEnabled *bool `json:"LookupEnabled,omitempty"` Psd2Enabled *bool `json:"Psd2Enabled,omitempty"` - Push.ApnCredentialSid *string `json:"Push.ApnCredentialSid,omitempty"` - Push.FcmCredentialSid *string `json:"Push.FcmCredentialSid,omitempty"` - Push.IncludeDate *bool `json:"Push.IncludeDate,omitempty"` + PushApnCredentialSid *string `json:"PushApnCredentialSid,omitempty"` + PushFcmCredentialSid *string `json:"PushFcmCredentialSid,omitempty"` + PushIncludeDate *bool `json:"PushIncludeDate,omitempty"` SkipSmsToLandlines *bool `json:"SkipSmsToLandlines,omitempty"` TtsName *string `json:"TtsName,omitempty"` } @@ -421,9 +430,9 @@ Create a new Verification Service. * @param "FriendlyName" (string) - A descriptive string that you create to describe the verification service. It can be up to 30 characters long. **This value should not contain PII.** * @param "LookupEnabled" (bool) - Whether to perform a lookup with each verification started and return info about the phone number. * @param "Psd2Enabled" (bool) - Whether to pass PSD2 transaction parameters when starting a verification. - * @param "Push.ApnCredentialSid" (string) - Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) - * @param "Push.FcmCredentialSid" (string) - Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) - * @param "Push.IncludeDate" (bool) - Optional configuration for the Push factors. If true, include the date in the Challenge's reponse. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: true + * @param "PushApnCredentialSid" (string) - Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) + * @param "PushFcmCredentialSid" (string) - Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) + * @param "PushIncludeDate" (bool) - Optional configuration for the Push factors. If true, include the date in the Challenge's reponse. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: true * @param "SkipSmsToLandlines" (bool) - Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`. * @param "TtsName" (string) - The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. @return VerifyV2Service @@ -431,44 +440,45 @@ Create a new Verification Service. func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*VerifyV2Service, error) { path := "/v2/Services" + data := url.Values{} headers := 0 if params != nil && params.CodeLength != nil { - data.Set("CodeLength", string(*params.CodeLength)) + data.Set("CodeLength", fmt.Sprint(*params.CodeLength)) } if params != nil && params.CustomCodeEnabled != nil { - data.Set("CustomCodeEnabled", string(*params.CustomCodeEnabled)) + data.Set("CustomCodeEnabled", fmt.Sprint(*params.CustomCodeEnabled)) } if params != nil && params.DoNotShareWarningEnabled != nil { - data.Set("DoNotShareWarningEnabled", string(*params.DoNotShareWarningEnabled)) + data.Set("DoNotShareWarningEnabled", fmt.Sprint(*params.DoNotShareWarningEnabled)) } if params != nil && params.DtmfInputRequired != nil { - data.Set("DtmfInputRequired", string(*params.DtmfInputRequired)) + data.Set("DtmfInputRequired", fmt.Sprint(*params.DtmfInputRequired)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.LookupEnabled != nil { - data.Set("LookupEnabled", string(*params.LookupEnabled)) + data.Set("LookupEnabled", fmt.Sprint(*params.LookupEnabled)) } if params != nil && params.Psd2Enabled != nil { - data.Set("Psd2Enabled", string(*params.Psd2Enabled)) + data.Set("Psd2Enabled", fmt.Sprint(*params.Psd2Enabled)) } - if params != nil && params.Push.ApnCredentialSid != nil { - data.Set("Push.ApnCredentialSid", *params.Push.ApnCredentialSid) + if params != nil && params.PushApnCredentialSid != nil { + data.Set("PushApnCredentialSid", *params.PushApnCredentialSid) } - if params != nil && params.Push.FcmCredentialSid != nil { - data.Set("Push.FcmCredentialSid", *params.Push.FcmCredentialSid) + if params != nil && params.PushFcmCredentialSid != nil { + data.Set("PushFcmCredentialSid", *params.PushFcmCredentialSid) } - if params != nil && params.Push.IncludeDate != nil { - data.Set("Push.IncludeDate", string(*params.Push.IncludeDate)) + if params != nil && params.PushIncludeDate != nil { + data.Set("PushIncludeDate", fmt.Sprint(*params.PushIncludeDate)) } if params != nil && params.SkipSmsToLandlines != nil { - data.Set("SkipSmsToLandlines", string(*params.SkipSmsToLandlines)) + data.Set("SkipSmsToLandlines", fmt.Sprint(*params.SkipSmsToLandlines)) } if params != nil && params.TtsName != nil { - data.Set("TtsName", *params.TtsName) + data.Set("TtsName", *params.TtsName) } @@ -505,7 +515,7 @@ type CreateVerificationParams struct { /* CreateVerification Method for CreateVerification Create a new Verification using a Service - * @param serviceSid The SID of the verification [Service](https://www.twilio.com/docs/verify/api/service) to create the resource under. + * @param ServiceSid The SID of the verification [Service](https://www.twilio.com/docs/verify/api/service) to create the resource under. * @param optional nil or *CreateVerificationOpts - Optional Parameters: * @param "Amount" (string) - The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. * @param "AppHash" (string) - Your [App Hash](https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string) to be appended at the end of your verification SMS body. Applies only to SMS. Example SMS body: `<#> Your AppName verification code is: 1234 He42w354ol9`. @@ -521,21 +531,22 @@ Create a new Verification using a Service * @param "To" (string) - The phone number or [email](https://www.twilio.com/docs/verify/email) to verify. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). @return VerifyV2ServiceVerification */ -func (c *DefaultApiService) CreateVerification(serviceSid string, params *CreateVerificationParams) (*VerifyV2ServiceVerification, error) { +func (c *DefaultApiService) CreateVerification(ServiceSid string, params *CreateVerificationParams) (*VerifyV2ServiceVerification, error) { path := "/v2/Services/{ServiceSid}/Verifications" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Amount != nil { - data.Set("Amount", *params.Amount) + data.Set("Amount", *params.Amount) } if params != nil && params.AppHash != nil { - data.Set("AppHash", *params.AppHash) + data.Set("AppHash", *params.AppHash) } if params != nil && params.Channel != nil { - data.Set("Channel", *params.Channel) + data.Set("Channel", *params.Channel) } if params != nil && params.ChannelConfiguration != nil { v, err := json.Marshal(params.ChannelConfiguration) @@ -544,22 +555,22 @@ func (c *DefaultApiService) CreateVerification(serviceSid string, params *Create return nil, err } - data.Set("ChannelConfiguration", string(v)) + data.Set("ChannelConfiguration", fmt.Sprint(v)) } if params != nil && params.CustomCode != nil { - data.Set("CustomCode", *params.CustomCode) + data.Set("CustomCode", *params.CustomCode) } if params != nil && params.CustomFriendlyName != nil { - data.Set("CustomFriendlyName", *params.CustomFriendlyName) + data.Set("CustomFriendlyName", *params.CustomFriendlyName) } if params != nil && params.CustomMessage != nil { - data.Set("CustomMessage", *params.CustomMessage) + data.Set("CustomMessage", *params.CustomMessage) } if params != nil && params.Locale != nil { - data.Set("Locale", *params.Locale) + data.Set("Locale", *params.Locale) } if params != nil && params.Payee != nil { - data.Set("Payee", *params.Payee) + data.Set("Payee", *params.Payee) } if params != nil && params.RateLimits != nil { v, err := json.Marshal(params.RateLimits) @@ -568,13 +579,13 @@ func (c *DefaultApiService) CreateVerification(serviceSid string, params *Create return nil, err } - data.Set("RateLimits", string(v)) + data.Set("RateLimits", fmt.Sprint(v)) } if params != nil && params.SendDigits != nil { - data.Set("SendDigits", *params.SendDigits) + data.Set("SendDigits", *params.SendDigits) } if params != nil && params.To != nil { - data.Set("To", *params.To) + data.Set("To", *params.To) } @@ -604,7 +615,7 @@ type CreateVerificationCheckParams struct { /* CreateVerificationCheck Method for CreateVerificationCheck challenge a specific Verification Check. - * @param serviceSid The SID of the verification [Service](https://www.twilio.com/docs/verify/api/service) to create the resource under. + * @param ServiceSid The SID of the verification [Service](https://www.twilio.com/docs/verify/api/service) to create the resource under. * @param optional nil or *CreateVerificationCheckOpts - Optional Parameters: * @param "Amount" (string) - The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. * @param "Code" (string) - The 4-10 character string being verified. @@ -613,27 +624,28 @@ challenge a specific Verification Check. * @param "VerificationSid" (string) - A SID that uniquely identifies the Verification Check. Either this parameter or the `to` phone number/[email](https://www.twilio.com/docs/verify/email) must be specified. @return VerifyV2ServiceVerificationCheck */ -func (c *DefaultApiService) CreateVerificationCheck(serviceSid string, params *CreateVerificationCheckParams) (*VerifyV2ServiceVerificationCheck, error) { +func (c *DefaultApiService) CreateVerificationCheck(ServiceSid string, params *CreateVerificationCheckParams) (*VerifyV2ServiceVerificationCheck, error) { path := "/v2/Services/{ServiceSid}/VerificationCheck" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Amount != nil { - data.Set("Amount", *params.Amount) + data.Set("Amount", *params.Amount) } if params != nil && params.Code != nil { - data.Set("Code", *params.Code) + data.Set("Code", *params.Code) } if params != nil && params.Payee != nil { - data.Set("Payee", *params.Payee) + data.Set("Payee", *params.Payee) } if params != nil && params.To != nil { - data.Set("To", *params.To) + data.Set("To", *params.To) } if params != nil && params.VerificationSid != nil { - data.Set("VerificationSid", *params.VerificationSid) + data.Set("VerificationSid", *params.VerificationSid) } @@ -662,7 +674,7 @@ type CreateWebhookParams struct { /* CreateWebhook Method for CreateWebhook Create a new Webhook for the Service - * @param serviceSid The unique SID identifier of the Service. + * @param ServiceSid The unique SID identifier of the Service. * @param optional nil or *CreateWebhookOpts - Optional Parameters: * @param "EventTypes" ([]string) - The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied` * @param "FriendlyName" (string) - The string that you assigned to describe the webhook. **This value should not contain PII.** @@ -670,24 +682,25 @@ Create a new Webhook for the Service * @param "WebhookUrl" (string) - The URL associated with this Webhook. @return VerifyV2ServiceWebhook */ -func (c *DefaultApiService) CreateWebhook(serviceSid string, params *CreateWebhookParams) (*VerifyV2ServiceWebhook, error) { +func (c *DefaultApiService) CreateWebhook(ServiceSid string, params *CreateWebhookParams) (*VerifyV2ServiceWebhook, error) { path := "/v2/Services/{ServiceSid}/Webhooks" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.EventTypes != nil { - data.Set("EventTypes", *params.EventTypes) + data.Set("EventTypes", strings.Join(*params.EventTypes, ",")) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } if params != nil && params.WebhookUrl != nil { - data.Set("WebhookUrl", *params.WebhookUrl) + data.Set("WebhookUrl", *params.WebhookUrl) } @@ -709,17 +722,18 @@ func (c *DefaultApiService) CreateWebhook(serviceSid string, params *CreateWebho /* DeleteBucket Method for DeleteBucket Delete a specific Bucket. - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. - * @param rateLimitSid The Twilio-provided string that uniquely identifies the Rate Limit resource. - * @param sid A 34 character string that uniquely identifies this Bucket. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. + * @param RateLimitSid The Twilio-provided string that uniquely identifies the Rate Limit resource. + * @param Sid A 34 character string that uniquely identifies this Bucket. */ -func (c *DefaultApiService) DeleteBucket(serviceSid string, rateLimitSid string, sid string) (error) { +func (c *DefaultApiService) DeleteBucket(ServiceSid string, RateLimitSid string, Sid string) (error) { path := "/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"RateLimitSid"+"}", rateLimitSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"RateLimitSid"+"}", RateLimitSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -737,15 +751,16 @@ func (c *DefaultApiService) DeleteBucket(serviceSid string, rateLimitSid string, /* DeleteEntity Method for DeleteEntity Delete a specific Entity. - * @param serviceSid The unique SID identifier of the Service. - * @param identity The unique external identifier for the Entity of the Service + * @param ServiceSid The unique SID identifier of the Service. + * @param Identity The unique external identifier for the Entity of the Service */ -func (c *DefaultApiService) DeleteEntity(serviceSid string, identity string) (error) { +func (c *DefaultApiService) DeleteEntity(ServiceSid string, Identity string) (error) { path := "/v2/Services/{ServiceSid}/Entities/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", Identity, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -763,17 +778,18 @@ func (c *DefaultApiService) DeleteEntity(serviceSid string, identity string) (er /* DeleteFactor Method for DeleteFactor Delete a specific Factor. - * @param serviceSid The unique SID identifier of the Service. - * @param identity Customer unique identity for the Entity owner of the Factor - * @param sid A 34 character string that uniquely identifies this Factor. + * @param ServiceSid The unique SID identifier of the Service. + * @param Identity Customer unique identity for the Entity owner of the Factor + * @param Sid A 34 character string that uniquely identifies this Factor. */ -func (c *DefaultApiService) DeleteFactor(serviceSid string, identity string, sid string) (error) { +func (c *DefaultApiService) DeleteFactor(ServiceSid string, Identity string, Sid string) (error) { path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", Identity, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -791,15 +807,16 @@ func (c *DefaultApiService) DeleteFactor(serviceSid string, identity string, sid /* DeleteMessagingConfiguration Method for DeleteMessagingConfiguration Delete a specific MessagingConfiguration. - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. - * @param country The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. + * @param Country The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. */ -func (c *DefaultApiService) DeleteMessagingConfiguration(serviceSid string, country string) (error) { +func (c *DefaultApiService) DeleteMessagingConfiguration(ServiceSid string, Country string) (error) { path := "/v2/Services/{ServiceSid}/MessagingConfigurations/{Country}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Country"+"}", country, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Country"+"}", Country, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -817,15 +834,16 @@ func (c *DefaultApiService) DeleteMessagingConfiguration(serviceSid string, coun /* DeleteRateLimit Method for DeleteRateLimit Delete a specific Rate Limit. - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. - * @param sid The Twilio-provided string that uniquely identifies the Rate Limit resource to fetch. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. + * @param Sid The Twilio-provided string that uniquely identifies the Rate Limit resource to fetch. */ -func (c *DefaultApiService) DeleteRateLimit(serviceSid string, sid string) (error) { +func (c *DefaultApiService) DeleteRateLimit(ServiceSid string, Sid string) (error) { path := "/v2/Services/{ServiceSid}/RateLimits/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -843,13 +861,14 @@ func (c *DefaultApiService) DeleteRateLimit(serviceSid string, sid string) (erro /* DeleteService Method for DeleteService Delete a specific Verification Service Instance. - * @param sid The Twilio-provided string that uniquely identifies the Verification Service resource to delete. + * @param Sid The Twilio-provided string that uniquely identifies the Verification Service resource to delete. */ -func (c *DefaultApiService) DeleteService(sid string) (error) { +func (c *DefaultApiService) DeleteService(Sid string) (error) { path := "/v2/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -867,15 +886,16 @@ func (c *DefaultApiService) DeleteService(sid string) (error) { /* DeleteWebhook Method for DeleteWebhook Delete a specific Webhook. - * @param serviceSid The unique SID identifier of the Service. - * @param sid The Twilio-provided string that uniquely identifies the Webhook resource to delete. + * @param ServiceSid The unique SID identifier of the Service. + * @param Sid The Twilio-provided string that uniquely identifies the Webhook resource to delete. */ -func (c *DefaultApiService) DeleteWebhook(serviceSid string, sid string) (error) { +func (c *DefaultApiService) DeleteWebhook(ServiceSid string, Sid string) (error) { path := "/v2/Services/{ServiceSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -893,18 +913,19 @@ func (c *DefaultApiService) DeleteWebhook(serviceSid string, sid string) (error) /* FetchBucket Method for FetchBucket Fetch a specific Bucket. - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. - * @param rateLimitSid The Twilio-provided string that uniquely identifies the Rate Limit resource. - * @param sid A 34 character string that uniquely identifies this Bucket. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. + * @param RateLimitSid The Twilio-provided string that uniquely identifies the Rate Limit resource. + * @param Sid A 34 character string that uniquely identifies this Bucket. @return VerifyV2ServiceRateLimitBucket */ -func (c *DefaultApiService) FetchBucket(serviceSid string, rateLimitSid string, sid string) (*VerifyV2ServiceRateLimitBucket, error) { +func (c *DefaultApiService) FetchBucket(ServiceSid string, RateLimitSid string, Sid string) (*VerifyV2ServiceRateLimitBucket, error) { path := "/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"RateLimitSid"+"}", rateLimitSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"RateLimitSid"+"}", RateLimitSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -927,18 +948,19 @@ func (c *DefaultApiService) FetchBucket(serviceSid string, rateLimitSid string, /* FetchChallenge Method for FetchChallenge Fetch a specific Challenge. - * @param serviceSid The unique SID identifier of the Service. - * @param identity The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, and generated by your external system, such as your user's UUID, GUID, or SID. - * @param sid A 34 character string that uniquely identifies this Challenge. + * @param ServiceSid The unique SID identifier of the Service. + * @param Identity The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, and generated by your external system, such as your user's UUID, GUID, or SID. + * @param Sid A 34 character string that uniquely identifies this Challenge. @return VerifyV2ServiceEntityChallenge */ -func (c *DefaultApiService) FetchChallenge(serviceSid string, identity string, sid string) (*VerifyV2ServiceEntityChallenge, error) { +func (c *DefaultApiService) FetchChallenge(ServiceSid string, Identity string, Sid string) (*VerifyV2ServiceEntityChallenge, error) { path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", Identity, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -961,16 +983,17 @@ func (c *DefaultApiService) FetchChallenge(serviceSid string, identity string, s /* FetchEntity Method for FetchEntity Fetch a specific Entity. - * @param serviceSid The unique SID identifier of the Service. - * @param identity The unique external identifier for the Entity of the Service + * @param ServiceSid The unique SID identifier of the Service. + * @param Identity The unique external identifier for the Entity of the Service @return VerifyV2ServiceEntity */ -func (c *DefaultApiService) FetchEntity(serviceSid string, identity string) (*VerifyV2ServiceEntity, error) { +func (c *DefaultApiService) FetchEntity(ServiceSid string, Identity string) (*VerifyV2ServiceEntity, error) { path := "/v2/Services/{ServiceSid}/Entities/{Identity}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", Identity, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -993,18 +1016,19 @@ func (c *DefaultApiService) FetchEntity(serviceSid string, identity string) (*Ve /* FetchFactor Method for FetchFactor Fetch a specific Factor. - * @param serviceSid The unique SID identifier of the Service. - * @param identity Customer unique identity for the Entity owner of the Factor - * @param sid A 34 character string that uniquely identifies this Factor. + * @param ServiceSid The unique SID identifier of the Service. + * @param Identity Customer unique identity for the Entity owner of the Factor + * @param Sid A 34 character string that uniquely identifies this Factor. @return VerifyV2ServiceEntityFactor */ -func (c *DefaultApiService) FetchFactor(serviceSid string, identity string, sid string) (*VerifyV2ServiceEntityFactor, error) { +func (c *DefaultApiService) FetchFactor(ServiceSid string, Identity string, Sid string) (*VerifyV2ServiceEntityFactor, error) { path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", Identity, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1027,14 +1051,15 @@ func (c *DefaultApiService) FetchFactor(serviceSid string, identity string, sid /* FetchForm Method for FetchForm Fetch the forms for a specific Form Type. - * @param formType The Type of this Form. Currently only `form-push` is supported. + * @param FormType The Type of this Form. Currently only `form-push` is supported. @return VerifyV2Form */ -func (c *DefaultApiService) FetchForm(formType string) (*VerifyV2Form, error) { +func (c *DefaultApiService) FetchForm(FormType string) (*VerifyV2Form, error) { path := "/v2/Forms/{FormType}" - path = strings.Replace(path, "{"+"FormType"+"}", formType, -1) + path = strings.Replace(path, "{"+"FormType"+"}", FormType, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1057,16 +1082,17 @@ func (c *DefaultApiService) FetchForm(formType string) (*VerifyV2Form, error) { /* FetchMessagingConfiguration Method for FetchMessagingConfiguration Fetch a specific MessagingConfiguration. - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. - * @param country The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. + * @param Country The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. @return VerifyV2ServiceMessagingConfiguration */ -func (c *DefaultApiService) FetchMessagingConfiguration(serviceSid string, country string) (*VerifyV2ServiceMessagingConfiguration, error) { +func (c *DefaultApiService) FetchMessagingConfiguration(ServiceSid string, Country string) (*VerifyV2ServiceMessagingConfiguration, error) { path := "/v2/Services/{ServiceSid}/MessagingConfigurations/{Country}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Country"+"}", country, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Country"+"}", Country, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1089,16 +1115,17 @@ func (c *DefaultApiService) FetchMessagingConfiguration(serviceSid string, count /* FetchRateLimit Method for FetchRateLimit Fetch a specific Rate Limit. - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. - * @param sid The Twilio-provided string that uniquely identifies the Rate Limit resource to fetch. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. + * @param Sid The Twilio-provided string that uniquely identifies the Rate Limit resource to fetch. @return VerifyV2ServiceRateLimit */ -func (c *DefaultApiService) FetchRateLimit(serviceSid string, sid string) (*VerifyV2ServiceRateLimit, error) { +func (c *DefaultApiService) FetchRateLimit(ServiceSid string, Sid string) (*VerifyV2ServiceRateLimit, error) { path := "/v2/Services/{ServiceSid}/RateLimits/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1121,14 +1148,15 @@ func (c *DefaultApiService) FetchRateLimit(serviceSid string, sid string) (*Veri /* FetchService Method for FetchService Fetch specific Verification Service Instance. - * @param sid The Twilio-provided string that uniquely identifies the Verification Service resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the Verification Service resource to fetch. @return VerifyV2Service */ -func (c *DefaultApiService) FetchService(sid string) (*VerifyV2Service, error) { +func (c *DefaultApiService) FetchService(Sid string) (*VerifyV2Service, error) { path := "/v2/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1151,16 +1179,17 @@ func (c *DefaultApiService) FetchService(sid string) (*VerifyV2Service, error) { /* FetchVerification Method for FetchVerification Fetch a specific Verification - * @param serviceSid The SID of the verification [Service](https://www.twilio.com/docs/verify/api/service) to fetch the resource from. - * @param sid The Twilio-provided string that uniquely identifies the Verification resource to fetch. + * @param ServiceSid The SID of the verification [Service](https://www.twilio.com/docs/verify/api/service) to fetch the resource from. + * @param Sid The Twilio-provided string that uniquely identifies the Verification resource to fetch. @return VerifyV2ServiceVerification */ -func (c *DefaultApiService) FetchVerification(serviceSid string, sid string) (*VerifyV2ServiceVerification, error) { +func (c *DefaultApiService) FetchVerification(ServiceSid string, Sid string) (*VerifyV2ServiceVerification, error) { path := "/v2/Services/{ServiceSid}/Verifications/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1183,16 +1212,17 @@ func (c *DefaultApiService) FetchVerification(serviceSid string, sid string) (*V /* FetchWebhook Method for FetchWebhook Fetch a specific Webhook. - * @param serviceSid The unique SID identifier of the Service. - * @param sid The Twilio-provided string that uniquely identifies the Webhook resource to fetch. + * @param ServiceSid The unique SID identifier of the Service. + * @param Sid The Twilio-provided string that uniquely identifies the Webhook resource to fetch. @return VerifyV2ServiceWebhook */ -func (c *DefaultApiService) FetchWebhook(serviceSid string, sid string) (*VerifyV2ServiceWebhook, error) { +func (c *DefaultApiService) FetchWebhook(ServiceSid string, Sid string) (*VerifyV2ServiceWebhook, error) { path := "/v2/Services/{ServiceSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -1219,22 +1249,23 @@ type ListBucketParams struct { /* ListBucket Method for ListBucket Retrieve a list of all Buckets for a Rate Limit. - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. - * @param rateLimitSid The Twilio-provided string that uniquely identifies the Rate Limit resource. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. + * @param RateLimitSid The Twilio-provided string that uniquely identifies the Rate Limit resource. * @param optional nil or *ListBucketOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return VerifyV2ServiceRateLimitBucketReadResponse */ -func (c *DefaultApiService) ListBucket(serviceSid string, rateLimitSid string, params *ListBucketParams) (*VerifyV2ServiceRateLimitBucketReadResponse, error) { +func (c *DefaultApiService) ListBucket(ServiceSid string, RateLimitSid string, params *ListBucketParams) (*VerifyV2ServiceRateLimitBucketReadResponse, error) { path := "/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"RateLimitSid"+"}", rateLimitSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"RateLimitSid"+"}", RateLimitSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1262,30 +1293,31 @@ type ListChallengeParams struct { /* ListChallenge Method for ListChallenge Retrieve a list of all Challenges for a Factor. - * @param serviceSid The unique SID identifier of the Service. - * @param identity Customer unique identity for the Entity owner of the Challenge + * @param ServiceSid The unique SID identifier of the Service. + * @param Identity Customer unique identity for the Entity owner of the Challenge * @param optional nil or *ListChallengeOpts - Optional Parameters: * @param "FactorSid" (string) - The unique SID identifier of the Factor. * @param "Status" (string) - The Status of the Challenges to fetch. One of `pending`, `expired`, `approved` or `denied`. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return VerifyV2ServiceEntityChallengeReadResponse */ -func (c *DefaultApiService) ListChallenge(serviceSid string, identity string, params *ListChallengeParams) (*VerifyV2ServiceEntityChallengeReadResponse, error) { +func (c *DefaultApiService) ListChallenge(ServiceSid string, Identity string, params *ListChallengeParams) (*VerifyV2ServiceEntityChallengeReadResponse, error) { path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", Identity, -1) + data := url.Values{} headers := 0 if params != nil && params.FactorSid != nil { - data.Set("FactorSid", *params.FactorSid) + data.Set("FactorSid", *params.FactorSid) } if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1311,20 +1343,21 @@ type ListEntityParams struct { /* ListEntity Method for ListEntity Retrieve a list of all Entities for a Service. - * @param serviceSid The unique SID identifier of the Service. + * @param ServiceSid The unique SID identifier of the Service. * @param optional nil or *ListEntityOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return VerifyV2ServiceEntityReadResponse */ -func (c *DefaultApiService) ListEntity(serviceSid string, params *ListEntityParams) (*VerifyV2ServiceEntityReadResponse, error) { +func (c *DefaultApiService) ListEntity(ServiceSid string, params *ListEntityParams) (*VerifyV2ServiceEntityReadResponse, error) { path := "/v2/Services/{ServiceSid}/Entities" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1350,22 +1383,23 @@ type ListFactorParams struct { /* ListFactor Method for ListFactor Retrieve a list of all Factors for an Entity. - * @param serviceSid The unique SID identifier of the Service. - * @param identity Customer unique identity for the Entity owner of the Factor + * @param ServiceSid The unique SID identifier of the Service. + * @param Identity Customer unique identity for the Entity owner of the Factor * @param optional nil or *ListFactorOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return VerifyV2ServiceEntityFactorReadResponse */ -func (c *DefaultApiService) ListFactor(serviceSid string, identity string, params *ListFactorParams) (*VerifyV2ServiceEntityFactorReadResponse, error) { +func (c *DefaultApiService) ListFactor(ServiceSid string, Identity string, params *ListFactorParams) (*VerifyV2ServiceEntityFactorReadResponse, error) { path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Factors" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", Identity, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1391,20 +1425,21 @@ type ListMessagingConfigurationParams struct { /* ListMessagingConfiguration Method for ListMessagingConfiguration Retrieve a list of all Messaging Configurations for a Service. - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. * @param optional nil or *ListMessagingConfigurationOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return VerifyV2ServiceMessagingConfigurationReadResponse */ -func (c *DefaultApiService) ListMessagingConfiguration(serviceSid string, params *ListMessagingConfigurationParams) (*VerifyV2ServiceMessagingConfigurationReadResponse, error) { +func (c *DefaultApiService) ListMessagingConfiguration(ServiceSid string, params *ListMessagingConfigurationParams) (*VerifyV2ServiceMessagingConfigurationReadResponse, error) { path := "/v2/Services/{ServiceSid}/MessagingConfigurations" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1430,20 +1465,21 @@ type ListRateLimitParams struct { /* ListRateLimit Method for ListRateLimit Retrieve a list of all Rate Limits for a service. - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. * @param optional nil or *ListRateLimitOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return VerifyV2ServiceRateLimitReadResponse */ -func (c *DefaultApiService) ListRateLimit(serviceSid string, params *ListRateLimitParams) (*VerifyV2ServiceRateLimitReadResponse, error) { +func (c *DefaultApiService) ListRateLimit(ServiceSid string, params *ListRateLimitParams) (*VerifyV2ServiceRateLimitReadResponse, error) { path := "/v2/Services/{ServiceSid}/RateLimits" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1476,11 +1512,12 @@ Retrieve a list of all Verification Services for an account. func (c *DefaultApiService) ListService(params *ListServiceParams) (*VerifyV2ServiceReadResponse, error) { path := "/v2/Services" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1506,20 +1543,21 @@ type ListWebhookParams struct { /* ListWebhook Method for ListWebhook Retrieve a list of all Webhooks for a Service. - * @param serviceSid The unique SID identifier of the Service. + * @param ServiceSid The unique SID identifier of the Service. * @param optional nil or *ListWebhookOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return VerifyV2ServiceWebhookReadResponse */ -func (c *DefaultApiService) ListWebhook(serviceSid string, params *ListWebhookParams) (*VerifyV2ServiceWebhookReadResponse, error) { +func (c *DefaultApiService) ListWebhook(ServiceSid string, params *ListWebhookParams) (*VerifyV2ServiceWebhookReadResponse, error) { path := "/v2/Services/{ServiceSid}/Webhooks" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1546,28 +1584,29 @@ type UpdateBucketParams struct { /* UpdateBucket Method for UpdateBucket Update a specific Bucket. - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. - * @param rateLimitSid The Twilio-provided string that uniquely identifies the Rate Limit resource. - * @param sid A 34 character string that uniquely identifies this Bucket. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. + * @param RateLimitSid The Twilio-provided string that uniquely identifies the Rate Limit resource. + * @param Sid A 34 character string that uniquely identifies this Bucket. * @param optional nil or *UpdateBucketOpts - Optional Parameters: * @param "Interval" (int32) - Number of seconds that the rate limit will be enforced over. * @param "Max" (int32) - Maximum number of requests permitted in during the interval. @return VerifyV2ServiceRateLimitBucket */ -func (c *DefaultApiService) UpdateBucket(serviceSid string, rateLimitSid string, sid string, params *UpdateBucketParams) (*VerifyV2ServiceRateLimitBucket, error) { +func (c *DefaultApiService) UpdateBucket(ServiceSid string, RateLimitSid string, Sid string, params *UpdateBucketParams) (*VerifyV2ServiceRateLimitBucket, error) { path := "/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"RateLimitSid"+"}", rateLimitSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"RateLimitSid"+"}", RateLimitSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.Interval != nil { - data.Set("Interval", string(*params.Interval)) + data.Set("Interval", fmt.Sprint(*params.Interval)) } if params != nil && params.Max != nil { - data.Set("Max", string(*params.Max)) + data.Set("Max", fmt.Sprint(*params.Max)) } @@ -1593,24 +1632,25 @@ type UpdateChallengeParams struct { /* UpdateChallenge Method for UpdateChallenge Verify a specific Challenge. - * @param serviceSid The unique SID identifier of the Service. - * @param identity Customer unique identity for the Entity owner of the Challenge - * @param sid A 34 character string that uniquely identifies this Challenge. + * @param ServiceSid The unique SID identifier of the Service. + * @param Identity Customer unique identity for the Entity owner of the Challenge + * @param Sid A 34 character string that uniquely identifies this Challenge. * @param optional nil or *UpdateChallengeOpts - Optional Parameters: * @param "AuthPayload" (string) - The optional payload needed to verify the Challenge. E.g., a TOTP would use the numeric code. @return VerifyV2ServiceEntityChallenge */ -func (c *DefaultApiService) UpdateChallenge(serviceSid string, identity string, sid string, params *UpdateChallengeParams) (*VerifyV2ServiceEntityChallenge, error) { +func (c *DefaultApiService) UpdateChallenge(ServiceSid string, Identity string, Sid string, params *UpdateChallengeParams) (*VerifyV2ServiceEntityChallenge, error) { path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", Identity, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.AuthPayload != nil { - data.Set("AuthPayload", *params.AuthPayload) + data.Set("AuthPayload", *params.AuthPayload) } @@ -1631,44 +1671,45 @@ func (c *DefaultApiService) UpdateChallenge(serviceSid string, identity string, // UpdateFactorParams Optional parameters for the method 'UpdateFactor' type UpdateFactorParams struct { AuthPayload *string `json:"AuthPayload,omitempty"` - Config.NotificationToken *string `json:"Config.NotificationToken,omitempty"` - Config.SdkVersion *string `json:"Config.SdkVersion,omitempty"` + ConfigNotificationToken *string `json:"ConfigNotificationToken,omitempty"` + ConfigSdkVersion *string `json:"ConfigSdkVersion,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` } /* UpdateFactor Method for UpdateFactor Update a specific Factor. This endpoint can be used to Verify a Factor if passed an `AuthPayload` param. - * @param serviceSid The unique SID identifier of the Service. - * @param identity Customer unique identity for the Entity owner of the Factor - * @param sid A 34 character string that uniquely identifies this Factor. + * @param ServiceSid The unique SID identifier of the Service. + * @param Identity Customer unique identity for the Entity owner of the Factor + * @param Sid A 34 character string that uniquely identifies this Factor. * @param optional nil or *UpdateFactorOpts - Optional Parameters: * @param "AuthPayload" (string) - The optional payload needed to verify the Factor for the first time. E.g. for a TOTP, the numeric code. - * @param "Config.NotificationToken" (string) - For APN, the device token. For FCM the registration token. It used to send the push notifications. Required when `factor_type` is `push` - * @param "Config.SdkVersion" (string) - The Verify Push SDK version used to configure the factor + * @param "ConfigNotificationToken" (string) - For APN, the device token. For FCM the registration token. It used to send the push notifications. Required when `factor_type` is `push` + * @param "ConfigSdkVersion" (string) - The Verify Push SDK version used to configure the factor * @param "FriendlyName" (string) - The new friendly name of this Factor @return VerifyV2ServiceEntityFactor */ -func (c *DefaultApiService) UpdateFactor(serviceSid string, identity string, sid string, params *UpdateFactorParams) (*VerifyV2ServiceEntityFactor, error) { +func (c *DefaultApiService) UpdateFactor(ServiceSid string, Identity string, Sid string, params *UpdateFactorParams) (*VerifyV2ServiceEntityFactor, error) { path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Factors/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Identity"+"}", identity, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Identity"+"}", Identity, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.AuthPayload != nil { - data.Set("AuthPayload", *params.AuthPayload) + data.Set("AuthPayload", *params.AuthPayload) } - if params != nil && params.Config.NotificationToken != nil { - data.Set("Config.NotificationToken", *params.Config.NotificationToken) + if params != nil && params.ConfigNotificationToken != nil { + data.Set("ConfigNotificationToken", *params.ConfigNotificationToken) } - if params != nil && params.Config.SdkVersion != nil { - data.Set("Config.SdkVersion", *params.Config.SdkVersion) + if params != nil && params.ConfigSdkVersion != nil { + data.Set("ConfigSdkVersion", *params.ConfigSdkVersion) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -1694,22 +1735,23 @@ type UpdateMessagingConfigurationParams struct { /* UpdateMessagingConfiguration Method for UpdateMessagingConfiguration Update a specific MessagingConfiguration - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. - * @param country The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. + * @param Country The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. * @param optional nil or *UpdateMessagingConfigurationOpts - Optional Parameters: * @param "MessagingServiceSid" (string) - The SID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) to be used to send SMS to the country of this configuration. @return VerifyV2ServiceMessagingConfiguration */ -func (c *DefaultApiService) UpdateMessagingConfiguration(serviceSid string, country string, params *UpdateMessagingConfigurationParams) (*VerifyV2ServiceMessagingConfiguration, error) { +func (c *DefaultApiService) UpdateMessagingConfiguration(ServiceSid string, Country string, params *UpdateMessagingConfigurationParams) (*VerifyV2ServiceMessagingConfiguration, error) { path := "/v2/Services/{ServiceSid}/MessagingConfigurations/{Country}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Country"+"}", country, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Country"+"}", Country, -1) + data := url.Values{} headers := 0 if params != nil && params.MessagingServiceSid != nil { - data.Set("MessagingServiceSid", *params.MessagingServiceSid) + data.Set("MessagingServiceSid", *params.MessagingServiceSid) } @@ -1735,22 +1777,23 @@ type UpdateRateLimitParams struct { /* UpdateRateLimit Method for UpdateRateLimit Update a specific Rate Limit. - * @param serviceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. - * @param sid The Twilio-provided string that uniquely identifies the Rate Limit resource to fetch. + * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. + * @param Sid The Twilio-provided string that uniquely identifies the Rate Limit resource to fetch. * @param optional nil or *UpdateRateLimitOpts - Optional Parameters: * @param "Description" (string) - Description of this Rate Limit @return VerifyV2ServiceRateLimit */ -func (c *DefaultApiService) UpdateRateLimit(serviceSid string, sid string, params *UpdateRateLimitParams) (*VerifyV2ServiceRateLimit, error) { +func (c *DefaultApiService) UpdateRateLimit(ServiceSid string, Sid string, params *UpdateRateLimitParams) (*VerifyV2ServiceRateLimit, error) { path := "/v2/Services/{ServiceSid}/RateLimits/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.Description != nil { - data.Set("Description", *params.Description) + data.Set("Description", *params.Description) } @@ -1777,9 +1820,9 @@ type UpdateServiceParams struct { FriendlyName *string `json:"FriendlyName,omitempty"` LookupEnabled *bool `json:"LookupEnabled,omitempty"` Psd2Enabled *bool `json:"Psd2Enabled,omitempty"` - Push.ApnCredentialSid *string `json:"Push.ApnCredentialSid,omitempty"` - Push.FcmCredentialSid *string `json:"Push.FcmCredentialSid,omitempty"` - Push.IncludeDate *bool `json:"Push.IncludeDate,omitempty"` + PushApnCredentialSid *string `json:"PushApnCredentialSid,omitempty"` + PushFcmCredentialSid *string `json:"PushFcmCredentialSid,omitempty"` + PushIncludeDate *bool `json:"PushIncludeDate,omitempty"` SkipSmsToLandlines *bool `json:"SkipSmsToLandlines,omitempty"` TtsName *string `json:"TtsName,omitempty"` } @@ -1787,7 +1830,7 @@ type UpdateServiceParams struct { /* UpdateService Method for UpdateService Update a specific Verification Service. - * @param sid The Twilio-provided string that uniquely identifies the Service resource to update. + * @param Sid The Twilio-provided string that uniquely identifies the Service resource to update. * @param optional nil or *UpdateServiceOpts - Optional Parameters: * @param "CodeLength" (int32) - The length of the verification code to generate. Must be an integer value between 4 and 10, inclusive. * @param "CustomCodeEnabled" (bool) - Whether to allow sending verifications with a custom code instead of a randomly generated one. Not available for all customers. @@ -1796,55 +1839,56 @@ Update a specific Verification Service. * @param "FriendlyName" (string) - A descriptive string that you create to describe the verification service. It can be up to 30 characters long. **This value should not contain PII.** * @param "LookupEnabled" (bool) - Whether to perform a lookup with each verification started and return info about the phone number. * @param "Psd2Enabled" (bool) - Whether to pass PSD2 transaction parameters when starting a verification. - * @param "Push.ApnCredentialSid" (string) - Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) - * @param "Push.FcmCredentialSid" (string) - Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) - * @param "Push.IncludeDate" (bool) - Optional configuration for the Push factors. If true, include the date in the Challenge's reponse. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: true + * @param "PushApnCredentialSid" (string) - Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) + * @param "PushFcmCredentialSid" (string) - Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) + * @param "PushIncludeDate" (bool) - Optional configuration for the Push factors. If true, include the date in the Challenge's reponse. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: true * @param "SkipSmsToLandlines" (bool) - Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`. * @param "TtsName" (string) - The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. @return VerifyV2Service */ -func (c *DefaultApiService) UpdateService(sid string, params *UpdateServiceParams) (*VerifyV2Service, error) { +func (c *DefaultApiService) UpdateService(Sid string, params *UpdateServiceParams) (*VerifyV2Service, error) { path := "/v2/Services/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.CodeLength != nil { - data.Set("CodeLength", string(*params.CodeLength)) + data.Set("CodeLength", fmt.Sprint(*params.CodeLength)) } if params != nil && params.CustomCodeEnabled != nil { - data.Set("CustomCodeEnabled", string(*params.CustomCodeEnabled)) + data.Set("CustomCodeEnabled", fmt.Sprint(*params.CustomCodeEnabled)) } if params != nil && params.DoNotShareWarningEnabled != nil { - data.Set("DoNotShareWarningEnabled", string(*params.DoNotShareWarningEnabled)) + data.Set("DoNotShareWarningEnabled", fmt.Sprint(*params.DoNotShareWarningEnabled)) } if params != nil && params.DtmfInputRequired != nil { - data.Set("DtmfInputRequired", string(*params.DtmfInputRequired)) + data.Set("DtmfInputRequired", fmt.Sprint(*params.DtmfInputRequired)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.LookupEnabled != nil { - data.Set("LookupEnabled", string(*params.LookupEnabled)) + data.Set("LookupEnabled", fmt.Sprint(*params.LookupEnabled)) } if params != nil && params.Psd2Enabled != nil { - data.Set("Psd2Enabled", string(*params.Psd2Enabled)) + data.Set("Psd2Enabled", fmt.Sprint(*params.Psd2Enabled)) } - if params != nil && params.Push.ApnCredentialSid != nil { - data.Set("Push.ApnCredentialSid", *params.Push.ApnCredentialSid) + if params != nil && params.PushApnCredentialSid != nil { + data.Set("PushApnCredentialSid", *params.PushApnCredentialSid) } - if params != nil && params.Push.FcmCredentialSid != nil { - data.Set("Push.FcmCredentialSid", *params.Push.FcmCredentialSid) + if params != nil && params.PushFcmCredentialSid != nil { + data.Set("PushFcmCredentialSid", *params.PushFcmCredentialSid) } - if params != nil && params.Push.IncludeDate != nil { - data.Set("Push.IncludeDate", string(*params.Push.IncludeDate)) + if params != nil && params.PushIncludeDate != nil { + data.Set("PushIncludeDate", fmt.Sprint(*params.PushIncludeDate)) } if params != nil && params.SkipSmsToLandlines != nil { - data.Set("SkipSmsToLandlines", string(*params.SkipSmsToLandlines)) + data.Set("SkipSmsToLandlines", fmt.Sprint(*params.SkipSmsToLandlines)) } if params != nil && params.TtsName != nil { - data.Set("TtsName", *params.TtsName) + data.Set("TtsName", *params.TtsName) } @@ -1870,22 +1914,23 @@ type UpdateVerificationParams struct { /* UpdateVerification Method for UpdateVerification Update a Verification status - * @param serviceSid The SID of the verification [Service](https://www.twilio.com/docs/verify/api/service) to update the resource from. - * @param sid The Twilio-provided string that uniquely identifies the Verification resource to update. + * @param ServiceSid The SID of the verification [Service](https://www.twilio.com/docs/verify/api/service) to update the resource from. + * @param Sid The Twilio-provided string that uniquely identifies the Verification resource to update. * @param optional nil or *UpdateVerificationOpts - Optional Parameters: * @param "Status" (string) - The new status of the resource. Can be: `canceled` or `approved`. @return VerifyV2ServiceVerification */ -func (c *DefaultApiService) UpdateVerification(serviceSid string, sid string, params *UpdateVerificationParams) (*VerifyV2ServiceVerification, error) { +func (c *DefaultApiService) UpdateVerification(ServiceSid string, Sid string, params *UpdateVerificationParams) (*VerifyV2ServiceVerification, error) { path := "/v2/Services/{ServiceSid}/Verifications/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } @@ -1913,8 +1958,8 @@ type UpdateWebhookParams struct { /* UpdateWebhook Method for UpdateWebhook - * @param serviceSid The unique SID identifier of the Service. - * @param sid The Twilio-provided string that uniquely identifies the Webhook resource to update. + * @param ServiceSid The unique SID identifier of the Service. + * @param Sid The Twilio-provided string that uniquely identifies the Webhook resource to update. * @param optional nil or *UpdateWebhookOpts - Optional Parameters: * @param "EventTypes" ([]string) - The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied` * @param "FriendlyName" (string) - The string that you assigned to describe the webhook. **This value should not contain PII.** @@ -1922,25 +1967,26 @@ UpdateWebhook Method for UpdateWebhook * @param "WebhookUrl" (string) - The URL associated with this Webhook. @return VerifyV2ServiceWebhook */ -func (c *DefaultApiService) UpdateWebhook(serviceSid string, sid string, params *UpdateWebhookParams) (*VerifyV2ServiceWebhook, error) { +func (c *DefaultApiService) UpdateWebhook(ServiceSid string, Sid string, params *UpdateWebhookParams) (*VerifyV2ServiceWebhook, error) { path := "/v2/Services/{ServiceSid}/Webhooks/{Sid}" - path = strings.Replace(path, "{"+"ServiceSid"+"}", serviceSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.EventTypes != nil { - data.Set("EventTypes", *params.EventTypes) + data.Set("EventTypes", strings.Join(*params.EventTypes, ",")) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } if params != nil && params.WebhookUrl != nil { - data.Set("WebhookUrl", *params.WebhookUrl) + data.Set("WebhookUrl", *params.WebhookUrl) } diff --git a/rest/verify/v2/docs/DefaultApi.md b/rest/verify/v2/docs/DefaultApi.md index bd8115600..08a5d11fe 100644 --- a/rest/verify/v2/docs/DefaultApi.md +++ b/rest/verify/v2/docs/DefaultApi.md @@ -53,7 +53,7 @@ Method | HTTP request | Description ## CreateAccessToken -> VerifyV2ServiceAccessToken CreateAccessToken(ctx, serviceSid, optional) +> VerifyV2ServiceAccessToken CreateAccessToken(ctx, ServiceSid, optional) @@ -65,7 +65,7 @@ Create a new enrollment Access Token for the Entity Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | +**ServiceSid** | **string**| The unique SID identifier of the Service. | **optional** | ***CreateAccessTokenOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -76,8 +76,8 @@ Optional parameters are passed through a pointer to a CreateAccessTokenOpts stru Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **factorType** | **optional.String**| The Type of this Factor. Eg. `push` | - **identity** | **optional.String**| The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, and generated by your external system, such as your user's UUID, GUID, or SID. | + **FactorType** | **optional.String**| The Type of this Factor. Eg. `push` | + **Identity** | **optional.String**| The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, and generated by your external system, such as your user's UUID, GUID, or SID. | ### Return type @@ -99,7 +99,7 @@ Name | Type | Description | Notes ## CreateBucket -> VerifyV2ServiceRateLimitBucket CreateBucket(ctx, serviceSid, rateLimitSid, optional) +> VerifyV2ServiceRateLimitBucket CreateBucket(ctx, ServiceSid, RateLimitSid, optional) @@ -111,8 +111,8 @@ Create a new Bucket for a Rate Limit Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | -**rateLimitSid** | **string**| The Twilio-provided string that uniquely identifies the Rate Limit resource. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | +**RateLimitSid** | **string**| The Twilio-provided string that uniquely identifies the Rate Limit resource. | **optional** | ***CreateBucketOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -124,8 +124,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **interval** | **optional.Int32**| Number of seconds that the rate limit will be enforced over. | - **max** | **optional.Int32**| Maximum number of requests permitted in during the interval. | + **Interval** | **optional.Int32**| Number of seconds that the rate limit will be enforced over. | + **Max** | **optional.Int32**| Maximum number of requests permitted in during the interval. | ### Return type @@ -147,7 +147,7 @@ Name | Type | Description | Notes ## CreateChallenge -> VerifyV2ServiceEntityChallenge CreateChallenge(ctx, serviceSid, identity, optional) +> VerifyV2ServiceEntityChallenge CreateChallenge(ctx, ServiceSid, Identity, optional) @@ -159,8 +159,8 @@ Create a new Challenge for the Factor Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | -**identity** | **string**| The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, and generated by your external system, such as your user's UUID, GUID, or SID. | +**ServiceSid** | **string**| The unique SID identifier of the Service. | +**Identity** | **string**| The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, and generated by your external system, such as your user's UUID, GUID, or SID. | **optional** | ***CreateChallengeOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -172,11 +172,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **detailsFields** | [**optional.Interface of []map[string]interface{}**](map[string]interface{}.md)| A list of objects that describe the Fields included in the Challenge. Each object contains the label and value of the field. Used when `factor_type` is `push`. | - **detailsMessage** | **optional.String**| Shown to the user when the push notification arrives. Required when `factor_type` is `push` | - **expirationDate** | **optional.Time**| The date-time when this Challenge expires, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. The default value is five (5) minutes after Challenge creation. The max value is sixty (60) minutes after creation. | - **factorSid** | **optional.String**| The unique SID identifier of the Factor. | - **hiddenDetails** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| Details provided to give context about the Challenge. Not shown to the end user. It must be a stringified JSON with only strings values eg. `{\\\"ip\\\": \\\"172.168.1.234\\\"}` | + **DetailsFields** | [**optional.Interface of []map[string]interface{}**](map[string]interface{}.md)| A list of objects that describe the Fields included in the Challenge. Each object contains the label and value of the field. Used when `factor_type` is `push`. | + **DetailsMessage** | **optional.String**| Shown to the user when the push notification arrives. Required when `factor_type` is `push` | + **ExpirationDate** | **optional.Time**| The date-time when this Challenge expires, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. The default value is five (5) minutes after Challenge creation. The max value is sixty (60) minutes after creation. | + **FactorSid** | **optional.String**| The unique SID identifier of the Factor. | + **HiddenDetails** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| Details provided to give context about the Challenge. Not shown to the end user. It must be a stringified JSON with only strings values eg. `{\\\"ip\\\": \\\"172.168.1.234\\\"}` | ### Return type @@ -198,7 +198,7 @@ Name | Type | Description | Notes ## CreateEntity -> VerifyV2ServiceEntity CreateEntity(ctx, serviceSid, optional) +> VerifyV2ServiceEntity CreateEntity(ctx, ServiceSid, optional) @@ -210,7 +210,7 @@ Create a new Entity for the Service Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | +**ServiceSid** | **string**| The unique SID identifier of the Service. | **optional** | ***CreateEntityOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -221,7 +221,7 @@ Optional parameters are passed through a pointer to a CreateEntityOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **identity** | **optional.String**| The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, length between 8 and 64 characters, and generated by your external system, such as your user's UUID, GUID, or SID. | + **Identity** | **optional.String**| The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, length between 8 and 64 characters, and generated by your external system, such as your user's UUID, GUID, or SID. | ### Return type @@ -243,7 +243,7 @@ Name | Type | Description | Notes ## CreateFactor -> VerifyV2ServiceEntityFactor CreateFactor(ctx, serviceSid, identity, optional) +> VerifyV2ServiceEntityFactor CreateFactor(ctx, ServiceSid, Identity, optional) @@ -255,8 +255,8 @@ Create a new Factor for the Entity Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | -**identity** | **string**| Customer unique identity for the Entity owner of the Factor | +**ServiceSid** | **string**| The unique SID identifier of the Service. | +**Identity** | **string**| Customer unique identity for the Entity owner of the Factor | **optional** | ***CreateFactorOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -268,14 +268,14 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **bindingAlg** | **optional.String**| The algorithm used when `factor_type` is `push`. Algorithm supported: `ES256` | - **bindingPublicKey** | **optional.String**| The Ecdsa public key in PKIX, ASN.1 DER format encoded in Base64 | - **configAppId** | **optional.String**| The ID that uniquely identifies your app in the Google or Apple store, such as `com.example.myapp`. Required when `factor_type` is `push` | - **configNotificationPlatform** | **optional.String**| The transport technology used to generate the Notification Token. Can be `apn` or `fcm`. Required when `factor_type` is `push` | - **configNotificationToken** | **optional.String**| For APN, the device token. For FCM the registration token. It used to send the push notifications. Required when `factor_type` is `push` | - **configSdkVersion** | **optional.String**| The Verify Push SDK version used to configure the factor | - **factorType** | **optional.String**| The Type of this Factor. Currently only `push` is supported | - **friendlyName** | **optional.String**| The friendly name of this Factor | + **BindingAlg** | **optional.String**| The algorithm used when `factor_type` is `push`. Algorithm supported: `ES256` | + **BindingPublicKey** | **optional.String**| The Ecdsa public key in PKIX, ASN.1 DER format encoded in Base64 | + **ConfigAppId** | **optional.String**| The ID that uniquely identifies your app in the Google or Apple store, such as `com.example.myapp`. Required when `factor_type` is `push` | + **ConfigNotificationPlatform** | **optional.String**| The transport technology used to generate the Notification Token. Can be `apn` or `fcm`. Required when `factor_type` is `push` | + **ConfigNotificationToken** | **optional.String**| For APN, the device token. For FCM the registration token. It used to send the push notifications. Required when `factor_type` is `push` | + **ConfigSdkVersion** | **optional.String**| The Verify Push SDK version used to configure the factor | + **FactorType** | **optional.String**| The Type of this Factor. Currently only `push` is supported | + **FriendlyName** | **optional.String**| The friendly name of this Factor | ### Return type @@ -297,7 +297,7 @@ Name | Type | Description | Notes ## CreateMessagingConfiguration -> VerifyV2ServiceMessagingConfiguration CreateMessagingConfiguration(ctx, serviceSid, optional) +> VerifyV2ServiceMessagingConfiguration CreateMessagingConfiguration(ctx, ServiceSid, optional) @@ -309,7 +309,7 @@ Create a new MessagingConfiguration for a service. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. | **optional** | ***CreateMessagingConfigurationOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -320,8 +320,8 @@ Optional parameters are passed through a pointer to a CreateMessagingConfigurati Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **country** | **optional.String**| The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. | - **messagingServiceSid** | **optional.String**| The SID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) to be used to send SMS to the country of this configuration. | + **Country** | **optional.String**| The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. | + **MessagingServiceSid** | **optional.String**| The SID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) to be used to send SMS to the country of this configuration. | ### Return type @@ -343,7 +343,7 @@ Name | Type | Description | Notes ## CreateRateLimit -> VerifyV2ServiceRateLimit CreateRateLimit(ctx, serviceSid, optional) +> VerifyV2ServiceRateLimit CreateRateLimit(ctx, ServiceSid, optional) @@ -355,7 +355,7 @@ Create a new Rate Limit for a Service Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | **optional** | ***CreateRateLimitOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -366,8 +366,8 @@ Optional parameters are passed through a pointer to a CreateRateLimitOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **description** | **optional.String**| Description of this Rate Limit | - **uniqueName** | **optional.String**| Provides a unique and addressable name to be assigned to this Rate Limit, assigned by the developer, to be optionally used in addition to SID. **This value should not contain PII.** | + **Description** | **optional.String**| Description of this Rate Limit | + **UniqueName** | **optional.String**| Provides a unique and addressable name to be assigned to this Rate Limit, assigned by the developer, to be optionally used in addition to SID. **This value should not contain PII.** | ### Return type @@ -410,18 +410,18 @@ Optional parameters are passed through a pointer to a CreateServiceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **codeLength** | **optional.Int32**| The length of the verification code to generate. Must be an integer value between 4 and 10, inclusive. | - **customCodeEnabled** | **optional.Bool**| Whether to allow sending verifications with a custom code instead of a randomly generated one. Not available for all customers. | - **doNotShareWarningEnabled** | **optional.Bool**| Whether to add a security warning at the end of an SMS verification body. Disabled by default and applies only to SMS. Example SMS body: `Your AppName verification code is: 1234. Don’t share this code with anyone; our employees will never ask for the code` | - **dtmfInputRequired** | **optional.Bool**| Whether to ask the user to press a number before delivering the verify code in a phone call. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the verification service. It can be up to 30 characters long. **This value should not contain PII.** | - **lookupEnabled** | **optional.Bool**| Whether to perform a lookup with each verification started and return info about the phone number. | - **psd2Enabled** | **optional.Bool**| Whether to pass PSD2 transaction parameters when starting a verification. | - **pushApnCredentialSid** | **optional.String**| Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) | - **pushFcmCredentialSid** | **optional.String**| Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) | - **pushIncludeDate** | **optional.Bool**| Optional configuration for the Push factors. If true, include the date in the Challenge's reponse. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: true | - **skipSmsToLandlines** | **optional.Bool**| Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`. | - **ttsName** | **optional.String**| The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. | + **CodeLength** | **optional.Int32**| The length of the verification code to generate. Must be an integer value between 4 and 10, inclusive. | + **CustomCodeEnabled** | **optional.Bool**| Whether to allow sending verifications with a custom code instead of a randomly generated one. Not available for all customers. | + **DoNotShareWarningEnabled** | **optional.Bool**| Whether to add a security warning at the end of an SMS verification body. Disabled by default and applies only to SMS. Example SMS body: `Your AppName verification code is: 1234. Don’t share this code with anyone; our employees will never ask for the code` | + **DtmfInputRequired** | **optional.Bool**| Whether to ask the user to press a number before delivering the verify code in a phone call. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the verification service. It can be up to 30 characters long. **This value should not contain PII.** | + **LookupEnabled** | **optional.Bool**| Whether to perform a lookup with each verification started and return info about the phone number. | + **Psd2Enabled** | **optional.Bool**| Whether to pass PSD2 transaction parameters when starting a verification. | + **PushApnCredentialSid** | **optional.String**| Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) | + **PushFcmCredentialSid** | **optional.String**| Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) | + **PushIncludeDate** | **optional.Bool**| Optional configuration for the Push factors. If true, include the date in the Challenge's reponse. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: true | + **SkipSmsToLandlines** | **optional.Bool**| Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`. | + **TtsName** | **optional.String**| The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. | ### Return type @@ -443,7 +443,7 @@ Name | Type | Description | Notes ## CreateVerification -> VerifyV2ServiceVerification CreateVerification(ctx, serviceSid, optional) +> VerifyV2ServiceVerification CreateVerification(ctx, ServiceSid, optional) @@ -455,7 +455,7 @@ Create a new Verification using a Service Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the verification [Service](https://www.twilio.com/docs/verify/api/service) to create the resource under. | +**ServiceSid** | **string**| The SID of the verification [Service](https://www.twilio.com/docs/verify/api/service) to create the resource under. | **optional** | ***CreateVerificationOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -466,18 +466,18 @@ Optional parameters are passed through a pointer to a CreateVerificationOpts str Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **amount** | **optional.String**| The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. | - **appHash** | **optional.String**| Your [App Hash](https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string) to be appended at the end of your verification SMS body. Applies only to SMS. Example SMS body: `<#> Your AppName verification code is: 1234 He42w354ol9`. | - **channel** | **optional.String**| The verification method to use. Can be: [`email`](https://www.twilio.com/docs/verify/email), `sms` or `call`. | - **channelConfiguration** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| [`email`](https://www.twilio.com/docs/verify/email) channel configuration in json format. Must include 'from' and 'from_name'. | - **customCode** | **optional.String**| A pre-generated code to use for verification. The code can be between 4 and 10 characters, inclusive. | - **customFriendlyName** | **optional.String**| A custom user defined friendly name that overwrites the existing one in the verification message | - **customMessage** | **optional.String**| The text of a custom message to use for the verification. | - **locale** | **optional.String**| The locale to use for the verification SMS or call. Can be: `af`, `ar`, `ca`, `cs`, `da`, `de`, `el`, `en`, `en-GB`, `es`, `fi`, `fr`, `he`, `hi`, `hr`, `hu`, `id`, `it`, `ja`, `ko`, `ms`, `nb`, `nl`, `pl`, `pt`, `pr-BR`, `ro`, `ru`, `sv`, `th`, `tl`, `tr`, `vi`, `zh`, `zh-CN`, or `zh-HK.` | - **payee** | **optional.String**| The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. | - **rateLimits** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The custom key-value pairs of Programmable Rate Limits. Keys correspond to `unique_name` fields defined when [creating your Rate Limit](https://www.twilio.com/docs/verify/api/service-rate-limits). Associated value pairs represent values in the request that you are rate limiting on. You may include multiple Rate Limit values in each request. | - **sendDigits** | **optional.String**| The digits to send after a phone call is answered, for example, to dial an extension. For more information, see the Programmable Voice documentation of [sendDigits](https://www.twilio.com/docs/voice/twiml/number#attributes-sendDigits). | - **to** | **optional.String**| The phone number or [email](https://www.twilio.com/docs/verify/email) to verify. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). | + **Amount** | **optional.String**| The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. | + **AppHash** | **optional.String**| Your [App Hash](https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string) to be appended at the end of your verification SMS body. Applies only to SMS. Example SMS body: `<#> Your AppName verification code is: 1234 He42w354ol9`. | + **Channel** | **optional.String**| The verification method to use. Can be: [`email`](https://www.twilio.com/docs/verify/email), `sms` or `call`. | + **ChannelConfiguration** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| [`email`](https://www.twilio.com/docs/verify/email) channel configuration in json format. Must include 'from' and 'from_name'. | + **CustomCode** | **optional.String**| A pre-generated code to use for verification. The code can be between 4 and 10 characters, inclusive. | + **CustomFriendlyName** | **optional.String**| A custom user defined friendly name that overwrites the existing one in the verification message | + **CustomMessage** | **optional.String**| The text of a custom message to use for the verification. | + **Locale** | **optional.String**| The locale to use for the verification SMS or call. Can be: `af`, `ar`, `ca`, `cs`, `da`, `de`, `el`, `en`, `en-GB`, `es`, `fi`, `fr`, `he`, `hi`, `hr`, `hu`, `id`, `it`, `ja`, `ko`, `ms`, `nb`, `nl`, `pl`, `pt`, `pr-BR`, `ro`, `ru`, `sv`, `th`, `tl`, `tr`, `vi`, `zh`, `zh-CN`, or `zh-HK.` | + **Payee** | **optional.String**| The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. | + **RateLimits** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The custom key-value pairs of Programmable Rate Limits. Keys correspond to `unique_name` fields defined when [creating your Rate Limit](https://www.twilio.com/docs/verify/api/service-rate-limits). Associated value pairs represent values in the request that you are rate limiting on. You may include multiple Rate Limit values in each request. | + **SendDigits** | **optional.String**| The digits to send after a phone call is answered, for example, to dial an extension. For more information, see the Programmable Voice documentation of [sendDigits](https://www.twilio.com/docs/voice/twiml/number#attributes-sendDigits). | + **To** | **optional.String**| The phone number or [email](https://www.twilio.com/docs/verify/email) to verify. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). | ### Return type @@ -499,7 +499,7 @@ Name | Type | Description | Notes ## CreateVerificationCheck -> VerifyV2ServiceVerificationCheck CreateVerificationCheck(ctx, serviceSid, optional) +> VerifyV2ServiceVerificationCheck CreateVerificationCheck(ctx, ServiceSid, optional) @@ -511,7 +511,7 @@ challenge a specific Verification Check. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the verification [Service](https://www.twilio.com/docs/verify/api/service) to create the resource under. | +**ServiceSid** | **string**| The SID of the verification [Service](https://www.twilio.com/docs/verify/api/service) to create the resource under. | **optional** | ***CreateVerificationCheckOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -522,11 +522,11 @@ Optional parameters are passed through a pointer to a CreateVerificationCheckOpt Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **amount** | **optional.String**| The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. | - **code** | **optional.String**| The 4-10 character string being verified. | - **payee** | **optional.String**| The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. | - **to** | **optional.String**| The phone number or [email](https://www.twilio.com/docs/verify/email) to verify. Either this parameter or the `verification_sid` must be specified. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). | - **verificationSid** | **optional.String**| A SID that uniquely identifies the Verification Check. Either this parameter or the `to` phone number/[email](https://www.twilio.com/docs/verify/email) must be specified. | + **Amount** | **optional.String**| The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. | + **Code** | **optional.String**| The 4-10 character string being verified. | + **Payee** | **optional.String**| The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. | + **To** | **optional.String**| The phone number or [email](https://www.twilio.com/docs/verify/email) to verify. Either this parameter or the `verification_sid` must be specified. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). | + **VerificationSid** | **optional.String**| A SID that uniquely identifies the Verification Check. Either this parameter or the `to` phone number/[email](https://www.twilio.com/docs/verify/email) must be specified. | ### Return type @@ -548,7 +548,7 @@ Name | Type | Description | Notes ## CreateWebhook -> VerifyV2ServiceWebhook CreateWebhook(ctx, serviceSid, optional) +> VerifyV2ServiceWebhook CreateWebhook(ctx, ServiceSid, optional) @@ -560,7 +560,7 @@ Create a new Webhook for the Service Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | +**ServiceSid** | **string**| The unique SID identifier of the Service. | **optional** | ***CreateWebhookOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -571,10 +571,10 @@ Optional parameters are passed through a pointer to a CreateWebhookOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **eventTypes** | [**optional.Interface of []string**](string.md)| The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied` | - **friendlyName** | **optional.String**| The string that you assigned to describe the webhook. **This value should not contain PII.** | - **status** | **optional.String**| The webhook status. Default value is `enabled`. One of: `enabled` or `disabled` | - **webhookUrl** | **optional.String**| The URL associated with this Webhook. | + **EventTypes** | [**optional.Interface of []string**](string.md)| The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied` | + **FriendlyName** | **optional.String**| The string that you assigned to describe the webhook. **This value should not contain PII.** | + **Status** | **optional.String**| The webhook status. Default value is `enabled`. One of: `enabled` or `disabled` | + **WebhookUrl** | **optional.String**| The URL associated with this Webhook. | ### Return type @@ -596,7 +596,7 @@ Name | Type | Description | Notes ## DeleteBucket -> DeleteBucket(ctx, serviceSid, rateLimitSid, sid) +> DeleteBucket(ctx, ServiceSid, RateLimitSid, Sid) @@ -608,9 +608,9 @@ Delete a specific Bucket. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | -**rateLimitSid** | **string**| The Twilio-provided string that uniquely identifies the Rate Limit resource. | -**sid** | **string**| A 34 character string that uniquely identifies this Bucket. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | +**RateLimitSid** | **string**| The Twilio-provided string that uniquely identifies the Rate Limit resource. | +**Sid** | **string**| A 34 character string that uniquely identifies this Bucket. | ### Return type @@ -632,7 +632,7 @@ Name | Type | Description | Notes ## DeleteEntity -> DeleteEntity(ctx, serviceSid, identity) +> DeleteEntity(ctx, ServiceSid, Identity) @@ -644,8 +644,8 @@ Delete a specific Entity. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | -**identity** | **string**| The unique external identifier for the Entity of the Service | +**ServiceSid** | **string**| The unique SID identifier of the Service. | +**Identity** | **string**| The unique external identifier for the Entity of the Service | ### Return type @@ -667,7 +667,7 @@ Name | Type | Description | Notes ## DeleteFactor -> DeleteFactor(ctx, serviceSid, identity, sid) +> DeleteFactor(ctx, ServiceSid, Identity, Sid) @@ -679,9 +679,9 @@ Delete a specific Factor. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | -**identity** | **string**| Customer unique identity for the Entity owner of the Factor | -**sid** | **string**| A 34 character string that uniquely identifies this Factor. | +**ServiceSid** | **string**| The unique SID identifier of the Service. | +**Identity** | **string**| Customer unique identity for the Entity owner of the Factor | +**Sid** | **string**| A 34 character string that uniquely identifies this Factor. | ### Return type @@ -703,7 +703,7 @@ Name | Type | Description | Notes ## DeleteMessagingConfiguration -> DeleteMessagingConfiguration(ctx, serviceSid, country) +> DeleteMessagingConfiguration(ctx, ServiceSid, Country) @@ -715,8 +715,8 @@ Delete a specific MessagingConfiguration. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. | -**country** | **string**| The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. | +**Country** | **string**| The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. | ### Return type @@ -738,7 +738,7 @@ Name | Type | Description | Notes ## DeleteRateLimit -> DeleteRateLimit(ctx, serviceSid, sid) +> DeleteRateLimit(ctx, ServiceSid, Sid) @@ -750,8 +750,8 @@ Delete a specific Rate Limit. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Rate Limit resource to fetch. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Rate Limit resource to fetch. | ### Return type @@ -773,7 +773,7 @@ Name | Type | Description | Notes ## DeleteService -> DeleteService(ctx, sid) +> DeleteService(ctx, Sid) @@ -785,7 +785,7 @@ Delete a specific Verification Service Instance. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the Verification Service resource to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Verification Service resource to delete. | ### Return type @@ -807,7 +807,7 @@ Name | Type | Description | Notes ## DeleteWebhook -> DeleteWebhook(ctx, serviceSid, sid) +> DeleteWebhook(ctx, ServiceSid, Sid) @@ -819,8 +819,8 @@ Delete a specific Webhook. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Webhook resource to delete. | +**ServiceSid** | **string**| The unique SID identifier of the Service. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Webhook resource to delete. | ### Return type @@ -842,7 +842,7 @@ Name | Type | Description | Notes ## FetchBucket -> VerifyV2ServiceRateLimitBucket FetchBucket(ctx, serviceSid, rateLimitSid, sid) +> VerifyV2ServiceRateLimitBucket FetchBucket(ctx, ServiceSid, RateLimitSid, Sid) @@ -854,9 +854,9 @@ Fetch a specific Bucket. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | -**rateLimitSid** | **string**| The Twilio-provided string that uniquely identifies the Rate Limit resource. | -**sid** | **string**| A 34 character string that uniquely identifies this Bucket. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | +**RateLimitSid** | **string**| The Twilio-provided string that uniquely identifies the Rate Limit resource. | +**Sid** | **string**| A 34 character string that uniquely identifies this Bucket. | ### Return type @@ -878,7 +878,7 @@ Name | Type | Description | Notes ## FetchChallenge -> VerifyV2ServiceEntityChallenge FetchChallenge(ctx, serviceSid, identity, sid) +> VerifyV2ServiceEntityChallenge FetchChallenge(ctx, ServiceSid, Identity, Sid) @@ -890,9 +890,9 @@ Fetch a specific Challenge. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | -**identity** | **string**| The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, and generated by your external system, such as your user's UUID, GUID, or SID. | -**sid** | **string**| A 34 character string that uniquely identifies this Challenge. | +**ServiceSid** | **string**| The unique SID identifier of the Service. | +**Identity** | **string**| The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, and generated by your external system, such as your user's UUID, GUID, or SID. | +**Sid** | **string**| A 34 character string that uniquely identifies this Challenge. | ### Return type @@ -914,7 +914,7 @@ Name | Type | Description | Notes ## FetchEntity -> VerifyV2ServiceEntity FetchEntity(ctx, serviceSid, identity) +> VerifyV2ServiceEntity FetchEntity(ctx, ServiceSid, Identity) @@ -926,8 +926,8 @@ Fetch a specific Entity. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | -**identity** | **string**| The unique external identifier for the Entity of the Service | +**ServiceSid** | **string**| The unique SID identifier of the Service. | +**Identity** | **string**| The unique external identifier for the Entity of the Service | ### Return type @@ -949,7 +949,7 @@ Name | Type | Description | Notes ## FetchFactor -> VerifyV2ServiceEntityFactor FetchFactor(ctx, serviceSid, identity, sid) +> VerifyV2ServiceEntityFactor FetchFactor(ctx, ServiceSid, Identity, Sid) @@ -961,9 +961,9 @@ Fetch a specific Factor. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | -**identity** | **string**| Customer unique identity for the Entity owner of the Factor | -**sid** | **string**| A 34 character string that uniquely identifies this Factor. | +**ServiceSid** | **string**| The unique SID identifier of the Service. | +**Identity** | **string**| Customer unique identity for the Entity owner of the Factor | +**Sid** | **string**| A 34 character string that uniquely identifies this Factor. | ### Return type @@ -985,7 +985,7 @@ Name | Type | Description | Notes ## FetchForm -> VerifyV2Form FetchForm(ctx, formType) +> VerifyV2Form FetchForm(ctx, FormType) @@ -997,7 +997,7 @@ Fetch the forms for a specific Form Type. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**formType** | **string**| The Type of this Form. Currently only `form-push` is supported. | +**FormType** | **string**| The Type of this Form. Currently only `form-push` is supported. | ### Return type @@ -1019,7 +1019,7 @@ Name | Type | Description | Notes ## FetchMessagingConfiguration -> VerifyV2ServiceMessagingConfiguration FetchMessagingConfiguration(ctx, serviceSid, country) +> VerifyV2ServiceMessagingConfiguration FetchMessagingConfiguration(ctx, ServiceSid, Country) @@ -1031,8 +1031,8 @@ Fetch a specific MessagingConfiguration. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. | -**country** | **string**| The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. | +**Country** | **string**| The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. | ### Return type @@ -1054,7 +1054,7 @@ Name | Type | Description | Notes ## FetchRateLimit -> VerifyV2ServiceRateLimit FetchRateLimit(ctx, serviceSid, sid) +> VerifyV2ServiceRateLimit FetchRateLimit(ctx, ServiceSid, Sid) @@ -1066,8 +1066,8 @@ Fetch a specific Rate Limit. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Rate Limit resource to fetch. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Rate Limit resource to fetch. | ### Return type @@ -1089,7 +1089,7 @@ Name | Type | Description | Notes ## FetchService -> VerifyV2Service FetchService(ctx, sid) +> VerifyV2Service FetchService(ctx, Sid) @@ -1101,7 +1101,7 @@ Fetch specific Verification Service Instance. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the Verification Service resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Verification Service resource to fetch. | ### Return type @@ -1123,7 +1123,7 @@ Name | Type | Description | Notes ## FetchVerification -> VerifyV2ServiceVerification FetchVerification(ctx, serviceSid, sid) +> VerifyV2ServiceVerification FetchVerification(ctx, ServiceSid, Sid) @@ -1135,8 +1135,8 @@ Fetch a specific Verification Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the verification [Service](https://www.twilio.com/docs/verify/api/service) to fetch the resource from. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Verification resource to fetch. | +**ServiceSid** | **string**| The SID of the verification [Service](https://www.twilio.com/docs/verify/api/service) to fetch the resource from. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Verification resource to fetch. | ### Return type @@ -1158,7 +1158,7 @@ Name | Type | Description | Notes ## FetchWebhook -> VerifyV2ServiceWebhook FetchWebhook(ctx, serviceSid, sid) +> VerifyV2ServiceWebhook FetchWebhook(ctx, ServiceSid, Sid) @@ -1170,8 +1170,8 @@ Fetch a specific Webhook. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Webhook resource to fetch. | +**ServiceSid** | **string**| The unique SID identifier of the Service. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Webhook resource to fetch. | ### Return type @@ -1193,7 +1193,7 @@ Name | Type | Description | Notes ## ListBucket -> VerifyV2ServiceRateLimitBucketReadResponse ListBucket(ctx, serviceSid, rateLimitSid, optional) +> VerifyV2ServiceRateLimitBucketReadResponse ListBucket(ctx, ServiceSid, RateLimitSid, optional) @@ -1205,8 +1205,8 @@ Retrieve a list of all Buckets for a Rate Limit. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | -**rateLimitSid** | **string**| The Twilio-provided string that uniquely identifies the Rate Limit resource. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | +**RateLimitSid** | **string**| The Twilio-provided string that uniquely identifies the Rate Limit resource. | **optional** | ***ListBucketOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1218,7 +1218,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1240,7 +1240,7 @@ Name | Type | Description | Notes ## ListChallenge -> VerifyV2ServiceEntityChallengeReadResponse ListChallenge(ctx, serviceSid, identity, optional) +> VerifyV2ServiceEntityChallengeReadResponse ListChallenge(ctx, ServiceSid, Identity, optional) @@ -1252,8 +1252,8 @@ Retrieve a list of all Challenges for a Factor. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | -**identity** | **string**| Customer unique identity for the Entity owner of the Challenge | +**ServiceSid** | **string**| The unique SID identifier of the Service. | +**Identity** | **string**| Customer unique identity for the Entity owner of the Challenge | **optional** | ***ListChallengeOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1265,9 +1265,9 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **factorSid** | **optional.String**| The unique SID identifier of the Factor. | - **status** | **optional.String**| The Status of the Challenges to fetch. One of `pending`, `expired`, `approved` or `denied`. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **FactorSid** | **optional.String**| The unique SID identifier of the Factor. | + **Status** | **optional.String**| The Status of the Challenges to fetch. One of `pending`, `expired`, `approved` or `denied`. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1289,7 +1289,7 @@ Name | Type | Description | Notes ## ListEntity -> VerifyV2ServiceEntityReadResponse ListEntity(ctx, serviceSid, optional) +> VerifyV2ServiceEntityReadResponse ListEntity(ctx, ServiceSid, optional) @@ -1301,7 +1301,7 @@ Retrieve a list of all Entities for a Service. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | +**ServiceSid** | **string**| The unique SID identifier of the Service. | **optional** | ***ListEntityOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1312,7 +1312,7 @@ Optional parameters are passed through a pointer to a ListEntityOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1334,7 +1334,7 @@ Name | Type | Description | Notes ## ListFactor -> VerifyV2ServiceEntityFactorReadResponse ListFactor(ctx, serviceSid, identity, optional) +> VerifyV2ServiceEntityFactorReadResponse ListFactor(ctx, ServiceSid, Identity, optional) @@ -1346,8 +1346,8 @@ Retrieve a list of all Factors for an Entity. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | -**identity** | **string**| Customer unique identity for the Entity owner of the Factor | +**ServiceSid** | **string**| The unique SID identifier of the Service. | +**Identity** | **string**| Customer unique identity for the Entity owner of the Factor | **optional** | ***ListFactorOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1359,7 +1359,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1381,7 +1381,7 @@ Name | Type | Description | Notes ## ListMessagingConfiguration -> VerifyV2ServiceMessagingConfigurationReadResponse ListMessagingConfiguration(ctx, serviceSid, optional) +> VerifyV2ServiceMessagingConfigurationReadResponse ListMessagingConfiguration(ctx, ServiceSid, optional) @@ -1393,7 +1393,7 @@ Retrieve a list of all Messaging Configurations for a Service. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. | **optional** | ***ListMessagingConfigurationOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1404,7 +1404,7 @@ Optional parameters are passed through a pointer to a ListMessagingConfiguration Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1426,7 +1426,7 @@ Name | Type | Description | Notes ## ListRateLimit -> VerifyV2ServiceRateLimitReadResponse ListRateLimit(ctx, serviceSid, optional) +> VerifyV2ServiceRateLimitReadResponse ListRateLimit(ctx, ServiceSid, optional) @@ -1438,7 +1438,7 @@ Retrieve a list of all Rate Limits for a service. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | **optional** | ***ListRateLimitOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1449,7 +1449,7 @@ Optional parameters are passed through a pointer to a ListRateLimitOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1492,7 +1492,7 @@ Optional parameters are passed through a pointer to a ListServiceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1514,7 +1514,7 @@ Name | Type | Description | Notes ## ListWebhook -> VerifyV2ServiceWebhookReadResponse ListWebhook(ctx, serviceSid, optional) +> VerifyV2ServiceWebhookReadResponse ListWebhook(ctx, ServiceSid, optional) @@ -1526,7 +1526,7 @@ Retrieve a list of all Webhooks for a Service. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | +**ServiceSid** | **string**| The unique SID identifier of the Service. | **optional** | ***ListWebhookOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1537,7 +1537,7 @@ Optional parameters are passed through a pointer to a ListWebhookOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1559,7 +1559,7 @@ Name | Type | Description | Notes ## UpdateBucket -> VerifyV2ServiceRateLimitBucket UpdateBucket(ctx, serviceSid, rateLimitSid, sid, optional) +> VerifyV2ServiceRateLimitBucket UpdateBucket(ctx, ServiceSid, RateLimitSid, Sid, optional) @@ -1571,9 +1571,9 @@ Update a specific Bucket. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | -**rateLimitSid** | **string**| The Twilio-provided string that uniquely identifies the Rate Limit resource. | -**sid** | **string**| A 34 character string that uniquely identifies this Bucket. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | +**RateLimitSid** | **string**| The Twilio-provided string that uniquely identifies the Rate Limit resource. | +**Sid** | **string**| A 34 character string that uniquely identifies this Bucket. | **optional** | ***UpdateBucketOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1586,8 +1586,8 @@ Name | Type | Description | Notes - **interval** | **optional.Int32**| Number of seconds that the rate limit will be enforced over. | - **max** | **optional.Int32**| Maximum number of requests permitted in during the interval. | + **Interval** | **optional.Int32**| Number of seconds that the rate limit will be enforced over. | + **Max** | **optional.Int32**| Maximum number of requests permitted in during the interval. | ### Return type @@ -1609,7 +1609,7 @@ Name | Type | Description | Notes ## UpdateChallenge -> VerifyV2ServiceEntityChallenge UpdateChallenge(ctx, serviceSid, identity, sid, optional) +> VerifyV2ServiceEntityChallenge UpdateChallenge(ctx, ServiceSid, Identity, Sid, optional) @@ -1621,9 +1621,9 @@ Verify a specific Challenge. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | -**identity** | **string**| Customer unique identity for the Entity owner of the Challenge | -**sid** | **string**| A 34 character string that uniquely identifies this Challenge. | +**ServiceSid** | **string**| The unique SID identifier of the Service. | +**Identity** | **string**| Customer unique identity for the Entity owner of the Challenge | +**Sid** | **string**| A 34 character string that uniquely identifies this Challenge. | **optional** | ***UpdateChallengeOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1636,7 +1636,7 @@ Name | Type | Description | Notes - **authPayload** | **optional.String**| The optional payload needed to verify the Challenge. E.g., a TOTP would use the numeric code. | + **AuthPayload** | **optional.String**| The optional payload needed to verify the Challenge. E.g., a TOTP would use the numeric code. | ### Return type @@ -1658,7 +1658,7 @@ Name | Type | Description | Notes ## UpdateFactor -> VerifyV2ServiceEntityFactor UpdateFactor(ctx, serviceSid, identity, sid, optional) +> VerifyV2ServiceEntityFactor UpdateFactor(ctx, ServiceSid, Identity, Sid, optional) @@ -1670,9 +1670,9 @@ Update a specific Factor. This endpoint can be used to Verify a Factor if passed Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | -**identity** | **string**| Customer unique identity for the Entity owner of the Factor | -**sid** | **string**| A 34 character string that uniquely identifies this Factor. | +**ServiceSid** | **string**| The unique SID identifier of the Service. | +**Identity** | **string**| Customer unique identity for the Entity owner of the Factor | +**Sid** | **string**| A 34 character string that uniquely identifies this Factor. | **optional** | ***UpdateFactorOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1685,10 +1685,10 @@ Name | Type | Description | Notes - **authPayload** | **optional.String**| The optional payload needed to verify the Factor for the first time. E.g. for a TOTP, the numeric code. | - **configNotificationToken** | **optional.String**| For APN, the device token. For FCM the registration token. It used to send the push notifications. Required when `factor_type` is `push` | - **configSdkVersion** | **optional.String**| The Verify Push SDK version used to configure the factor | - **friendlyName** | **optional.String**| The new friendly name of this Factor | + **AuthPayload** | **optional.String**| The optional payload needed to verify the Factor for the first time. E.g. for a TOTP, the numeric code. | + **ConfigNotificationToken** | **optional.String**| For APN, the device token. For FCM the registration token. It used to send the push notifications. Required when `factor_type` is `push` | + **ConfigSdkVersion** | **optional.String**| The Verify Push SDK version used to configure the factor | + **FriendlyName** | **optional.String**| The new friendly name of this Factor | ### Return type @@ -1710,7 +1710,7 @@ Name | Type | Description | Notes ## UpdateMessagingConfiguration -> VerifyV2ServiceMessagingConfiguration UpdateMessagingConfiguration(ctx, serviceSid, country, optional) +> VerifyV2ServiceMessagingConfiguration UpdateMessagingConfiguration(ctx, ServiceSid, Country, optional) @@ -1722,8 +1722,8 @@ Update a specific MessagingConfiguration Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. | -**country** | **string**| The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. | +**Country** | **string**| The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. | **optional** | ***UpdateMessagingConfigurationOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1735,7 +1735,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **messagingServiceSid** | **optional.String**| The SID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) to be used to send SMS to the country of this configuration. | + **MessagingServiceSid** | **optional.String**| The SID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) to be used to send SMS to the country of this configuration. | ### Return type @@ -1757,7 +1757,7 @@ Name | Type | Description | Notes ## UpdateRateLimit -> VerifyV2ServiceRateLimit UpdateRateLimit(ctx, serviceSid, sid, optional) +> VerifyV2ServiceRateLimit UpdateRateLimit(ctx, ServiceSid, Sid, optional) @@ -1769,8 +1769,8 @@ Update a specific Rate Limit. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Rate Limit resource to fetch. | +**ServiceSid** | **string**| The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Rate Limit resource to fetch. | **optional** | ***UpdateRateLimitOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1782,7 +1782,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **description** | **optional.String**| Description of this Rate Limit | + **Description** | **optional.String**| Description of this Rate Limit | ### Return type @@ -1804,7 +1804,7 @@ Name | Type | Description | Notes ## UpdateService -> VerifyV2Service UpdateService(ctx, sid, optional) +> VerifyV2Service UpdateService(ctx, Sid, optional) @@ -1816,7 +1816,7 @@ Update a specific Verification Service. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the Service resource to update. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Service resource to update. | **optional** | ***UpdateServiceOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1827,18 +1827,18 @@ Optional parameters are passed through a pointer to a UpdateServiceOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **codeLength** | **optional.Int32**| The length of the verification code to generate. Must be an integer value between 4 and 10, inclusive. | - **customCodeEnabled** | **optional.Bool**| Whether to allow sending verifications with a custom code instead of a randomly generated one. Not available for all customers. | - **doNotShareWarningEnabled** | **optional.Bool**| Whether to add a privacy warning at the end of an SMS. **Disabled by default and applies only for SMS.** | - **dtmfInputRequired** | **optional.Bool**| Whether to ask the user to press a number before delivering the verify code in a phone call. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the verification service. It can be up to 30 characters long. **This value should not contain PII.** | - **lookupEnabled** | **optional.Bool**| Whether to perform a lookup with each verification started and return info about the phone number. | - **psd2Enabled** | **optional.Bool**| Whether to pass PSD2 transaction parameters when starting a verification. | - **pushApnCredentialSid** | **optional.String**| Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) | - **pushFcmCredentialSid** | **optional.String**| Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) | - **pushIncludeDate** | **optional.Bool**| Optional configuration for the Push factors. If true, include the date in the Challenge's reponse. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: true | - **skipSmsToLandlines** | **optional.Bool**| Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`. | - **ttsName** | **optional.String**| The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. | + **CodeLength** | **optional.Int32**| The length of the verification code to generate. Must be an integer value between 4 and 10, inclusive. | + **CustomCodeEnabled** | **optional.Bool**| Whether to allow sending verifications with a custom code instead of a randomly generated one. Not available for all customers. | + **DoNotShareWarningEnabled** | **optional.Bool**| Whether to add a privacy warning at the end of an SMS. **Disabled by default and applies only for SMS.** | + **DtmfInputRequired** | **optional.Bool**| Whether to ask the user to press a number before delivering the verify code in a phone call. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the verification service. It can be up to 30 characters long. **This value should not contain PII.** | + **LookupEnabled** | **optional.Bool**| Whether to perform a lookup with each verification started and return info about the phone number. | + **Psd2Enabled** | **optional.Bool**| Whether to pass PSD2 transaction parameters when starting a verification. | + **PushApnCredentialSid** | **optional.String**| Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) | + **PushFcmCredentialSid** | **optional.String**| Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) | + **PushIncludeDate** | **optional.Bool**| Optional configuration for the Push factors. If true, include the date in the Challenge's reponse. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: true | + **SkipSmsToLandlines** | **optional.Bool**| Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`. | + **TtsName** | **optional.String**| The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. | ### Return type @@ -1860,7 +1860,7 @@ Name | Type | Description | Notes ## UpdateVerification -> VerifyV2ServiceVerification UpdateVerification(ctx, serviceSid, sid, optional) +> VerifyV2ServiceVerification UpdateVerification(ctx, ServiceSid, Sid, optional) @@ -1872,8 +1872,8 @@ Update a Verification status Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The SID of the verification [Service](https://www.twilio.com/docs/verify/api/service) to update the resource from. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Verification resource to update. | +**ServiceSid** | **string**| The SID of the verification [Service](https://www.twilio.com/docs/verify/api/service) to update the resource from. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Verification resource to update. | **optional** | ***UpdateVerificationOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1885,7 +1885,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | **optional.String**| The new status of the resource. Can be: `canceled` or `approved`. | + **Status** | **optional.String**| The new status of the resource. Can be: `canceled` or `approved`. | ### Return type @@ -1907,7 +1907,7 @@ Name | Type | Description | Notes ## UpdateWebhook -> VerifyV2ServiceWebhook UpdateWebhook(ctx, serviceSid, sid, optional) +> VerifyV2ServiceWebhook UpdateWebhook(ctx, ServiceSid, Sid, optional) @@ -1917,8 +1917,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**serviceSid** | **string**| The unique SID identifier of the Service. | -**sid** | **string**| The Twilio-provided string that uniquely identifies the Webhook resource to update. | +**ServiceSid** | **string**| The unique SID identifier of the Service. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the Webhook resource to update. | **optional** | ***UpdateWebhookOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1930,10 +1930,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **eventTypes** | [**optional.Interface of []string**](string.md)| The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied` | - **friendlyName** | **optional.String**| The string that you assigned to describe the webhook. **This value should not contain PII.** | - **status** | **optional.String**| The webhook status. Default value is `enabled`. One of: `enabled` or `disabled` | - **webhookUrl** | **optional.String**| The URL associated with this Webhook. | + **EventTypes** | [**optional.Interface of []string**](string.md)| The array of events that this Webhook is subscribed to. Possible event types: `*, factor.deleted, factor.created, factor.verified, challenge.approved, challenge.denied` | + **FriendlyName** | **optional.String**| The string that you assigned to describe the webhook. **This value should not contain PII.** | + **Status** | **optional.String**| The webhook status. Default value is `enabled`. One of: `enabled` or `disabled` | + **WebhookUrl** | **optional.String**| The URL associated with this Webhook. | ### Return type diff --git a/rest/verify/v2/model_create_challenge_request.go b/rest/verify/v2/model_create_challenge_request.go index 04372eb70..c5075660b 100644 --- a/rest/verify/v2/model_create_challenge_request.go +++ b/rest/verify/v2/model_create_challenge_request.go @@ -15,9 +15,9 @@ import ( // CreateChallengeRequest struct for CreateChallengeRequest type CreateChallengeRequest struct { // A list of objects that describe the Fields included in the Challenge. Each object contains the label and value of the field. Used when `factor_type` is `push`. - DetailsFields []map[string]interface{} `json:"Details.Fields,omitempty"` + DetailsFields []map[string]interface{} `json:"DetailsFields,omitempty"` // Shown to the user when the push notification arrives. Required when `factor_type` is `push` - DetailsMessage string `json:"Details.Message,omitempty"` + DetailsMessage string `json:"DetailsMessage,omitempty"` // The date-time when this Challenge expires, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. The default value is five (5) minutes after Challenge creation. The max value is sixty (60) minutes after creation. ExpirationDate time.Time `json:"ExpirationDate,omitempty"` // The unique SID identifier of the Factor. diff --git a/rest/verify/v2/model_create_factor_request.go b/rest/verify/v2/model_create_factor_request.go index 433c5f95d..78518ad89 100644 --- a/rest/verify/v2/model_create_factor_request.go +++ b/rest/verify/v2/model_create_factor_request.go @@ -12,17 +12,17 @@ package openapi // CreateFactorRequest struct for CreateFactorRequest type CreateFactorRequest struct { // The algorithm used when `factor_type` is `push`. Algorithm supported: `ES256` - BindingAlg string `json:"Binding.Alg,omitempty"` + BindingAlg string `json:"BindingAlg,omitempty"` // The Ecdsa public key in PKIX, ASN.1 DER format encoded in Base64 - BindingPublicKey string `json:"Binding.PublicKey,omitempty"` + BindingPublicKey string `json:"BindingPublicKey,omitempty"` // The ID that uniquely identifies your app in the Google or Apple store, such as `com.example.myapp`. Required when `factor_type` is `push` - ConfigAppId string `json:"Config.AppId,omitempty"` + ConfigAppId string `json:"ConfigAppId,omitempty"` // The transport technology used to generate the Notification Token. Can be `apn` or `fcm`. Required when `factor_type` is `push` - ConfigNotificationPlatform string `json:"Config.NotificationPlatform,omitempty"` + ConfigNotificationPlatform string `json:"ConfigNotificationPlatform,omitempty"` // For APN, the device token. For FCM the registration token. It used to send the push notifications. Required when `factor_type` is `push` - ConfigNotificationToken string `json:"Config.NotificationToken,omitempty"` + ConfigNotificationToken string `json:"ConfigNotificationToken,omitempty"` // The Verify Push SDK version used to configure the factor - ConfigSdkVersion string `json:"Config.SdkVersion,omitempty"` + ConfigSdkVersion string `json:"ConfigSdkVersion,omitempty"` // The Type of this Factor. Currently only `push` is supported FactorType string `json:"FactorType"` // The friendly name of this Factor diff --git a/rest/verify/v2/model_create_service_request.go b/rest/verify/v2/model_create_service_request.go index dcd1a668a..5d27cbd33 100644 --- a/rest/verify/v2/model_create_service_request.go +++ b/rest/verify/v2/model_create_service_request.go @@ -26,11 +26,11 @@ type CreateServiceRequest struct { // Whether to pass PSD2 transaction parameters when starting a verification. Psd2Enabled bool `json:"Psd2Enabled,omitempty"` // Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) - PushApnCredentialSid string `json:"Push.ApnCredentialSid,omitempty"` + PushApnCredentialSid string `json:"PushApnCredentialSid,omitempty"` // Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) - PushFcmCredentialSid string `json:"Push.FcmCredentialSid,omitempty"` + PushFcmCredentialSid string `json:"PushFcmCredentialSid,omitempty"` // Optional configuration for the Push factors. If true, include the date in the Challenge's reponse. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: true - PushIncludeDate bool `json:"Push.IncludeDate,omitempty"` + PushIncludeDate bool `json:"PushIncludeDate,omitempty"` // Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`. SkipSmsToLandlines bool `json:"SkipSmsToLandlines,omitempty"` // The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. diff --git a/rest/verify/v2/model_update_factor_request.go b/rest/verify/v2/model_update_factor_request.go index a1052f490..6d0b83201 100644 --- a/rest/verify/v2/model_update_factor_request.go +++ b/rest/verify/v2/model_update_factor_request.go @@ -14,9 +14,9 @@ type UpdateFactorRequest struct { // The optional payload needed to verify the Factor for the first time. E.g. for a TOTP, the numeric code. AuthPayload string `json:"AuthPayload,omitempty"` // For APN, the device token. For FCM the registration token. It used to send the push notifications. Required when `factor_type` is `push` - ConfigNotificationToken string `json:"Config.NotificationToken,omitempty"` + ConfigNotificationToken string `json:"ConfigNotificationToken,omitempty"` // The Verify Push SDK version used to configure the factor - ConfigSdkVersion string `json:"Config.SdkVersion,omitempty"` + ConfigSdkVersion string `json:"ConfigSdkVersion,omitempty"` // The new friendly name of this Factor FriendlyName string `json:"FriendlyName,omitempty"` } diff --git a/rest/verify/v2/model_update_service_request.go b/rest/verify/v2/model_update_service_request.go index db39022f1..156c74e57 100644 --- a/rest/verify/v2/model_update_service_request.go +++ b/rest/verify/v2/model_update_service_request.go @@ -26,11 +26,11 @@ type UpdateServiceRequest struct { // Whether to pass PSD2 transaction parameters when starting a verification. Psd2Enabled bool `json:"Psd2Enabled,omitempty"` // Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) - PushApnCredentialSid string `json:"Push.ApnCredentialSid,omitempty"` + PushApnCredentialSid string `json:"PushApnCredentialSid,omitempty"` // Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) - PushFcmCredentialSid string `json:"Push.FcmCredentialSid,omitempty"` + PushFcmCredentialSid string `json:"PushFcmCredentialSid,omitempty"` // Optional configuration for the Push factors. If true, include the date in the Challenge's reponse. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: true - PushIncludeDate bool `json:"Push.IncludeDate,omitempty"` + PushIncludeDate bool `json:"PushIncludeDate,omitempty"` // Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`. SkipSmsToLandlines bool `json:"SkipSmsToLandlines,omitempty"` // The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. diff --git a/rest/verify/v2/model_verify_v2_form.go b/rest/verify/v2/model_verify_v2_form.go index 4024927c6..04b4fd436 100644 --- a/rest/verify/v2/model_verify_v2_form.go +++ b/rest/verify/v2/model_verify_v2_form.go @@ -11,8 +11,8 @@ package openapi // VerifyV2Form struct for VerifyV2Form type VerifyV2Form struct { - FormMeta map[string]interface{} `json:"form_meta,omitempty"` - FormType string `json:"form_type,omitempty"` - Forms map[string]interface{} `json:"forms,omitempty"` - Url string `json:"url,omitempty"` + FormMeta map[string]interface{} `json:"FormMeta,omitempty"` + FormType string `json:"FormType,omitempty"` + Forms map[string]interface{} `json:"Forms,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/verify/v2/model_verify_v2_service.go b/rest/verify/v2/model_verify_v2_service.go index 72b447b7f..e4d7bb012 100644 --- a/rest/verify/v2/model_verify_v2_service.go +++ b/rest/verify/v2/model_verify_v2_service.go @@ -14,20 +14,20 @@ import ( ) // VerifyV2Service struct for VerifyV2Service type VerifyV2Service struct { - AccountSid string `json:"account_sid,omitempty"` - CodeLength int32 `json:"code_length,omitempty"` - CustomCodeEnabled bool `json:"custom_code_enabled,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - DoNotShareWarningEnabled bool `json:"do_not_share_warning_enabled,omitempty"` - DtmfInputRequired bool `json:"dtmf_input_required,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - LookupEnabled bool `json:"lookup_enabled,omitempty"` - Psd2Enabled bool `json:"psd2_enabled,omitempty"` - Push map[string]interface{} `json:"push,omitempty"` - Sid string `json:"sid,omitempty"` - SkipSmsToLandlines bool `json:"skip_sms_to_landlines,omitempty"` - TtsName string `json:"tts_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + CodeLength int32 `json:"CodeLength,omitempty"` + CustomCodeEnabled bool `json:"CustomCodeEnabled,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + DoNotShareWarningEnabled bool `json:"DoNotShareWarningEnabled,omitempty"` + DtmfInputRequired bool `json:"DtmfInputRequired,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + LookupEnabled bool `json:"LookupEnabled,omitempty"` + Psd2Enabled bool `json:"Psd2Enabled,omitempty"` + Push map[string]interface{} `json:"Push,omitempty"` + Sid string `json:"Sid,omitempty"` + SkipSmsToLandlines bool `json:"SkipSmsToLandlines,omitempty"` + TtsName string `json:"TtsName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/verify/v2/model_verify_v2_service_access_token.go b/rest/verify/v2/model_verify_v2_service_access_token.go index df5ab8c46..028a17422 100644 --- a/rest/verify/v2/model_verify_v2_service_access_token.go +++ b/rest/verify/v2/model_verify_v2_service_access_token.go @@ -11,5 +11,5 @@ package openapi // VerifyV2ServiceAccessToken struct for VerifyV2ServiceAccessToken type VerifyV2ServiceAccessToken struct { - Token string `json:"token,omitempty"` + Token string `json:"Token,omitempty"` } diff --git a/rest/verify/v2/model_verify_v2_service_entity.go b/rest/verify/v2/model_verify_v2_service_entity.go index 7f5b9c589..6a3a378e9 100644 --- a/rest/verify/v2/model_verify_v2_service_entity.go +++ b/rest/verify/v2/model_verify_v2_service_entity.go @@ -14,12 +14,12 @@ import ( ) // VerifyV2ServiceEntity struct for VerifyV2ServiceEntity type VerifyV2ServiceEntity struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Identity string `json:"identity,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Identity string `json:"Identity,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/verify/v2/model_verify_v2_service_entity_challenge.go b/rest/verify/v2/model_verify_v2_service_entity_challenge.go index bda46008e..03d4514c8 100644 --- a/rest/verify/v2/model_verify_v2_service_entity_challenge.go +++ b/rest/verify/v2/model_verify_v2_service_entity_challenge.go @@ -14,20 +14,20 @@ import ( ) // VerifyV2ServiceEntityChallenge struct for VerifyV2ServiceEntityChallenge type VerifyV2ServiceEntityChallenge struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateResponded time.Time `json:"date_responded,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Details map[string]interface{} `json:"details,omitempty"` - EntitySid string `json:"entity_sid,omitempty"` - ExpirationDate time.Time `json:"expiration_date,omitempty"` - FactorSid string `json:"factor_sid,omitempty"` - FactorType string `json:"factor_type,omitempty"` - HiddenDetails map[string]interface{} `json:"hidden_details,omitempty"` - Identity string `json:"identity,omitempty"` - RespondedReason string `json:"responded_reason,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateResponded time.Time `json:"DateResponded,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Details map[string]interface{} `json:"Details,omitempty"` + EntitySid string `json:"EntitySid,omitempty"` + ExpirationDate time.Time `json:"ExpirationDate,omitempty"` + FactorSid string `json:"FactorSid,omitempty"` + FactorType string `json:"FactorType,omitempty"` + HiddenDetails map[string]interface{} `json:"HiddenDetails,omitempty"` + Identity string `json:"Identity,omitempty"` + RespondedReason string `json:"RespondedReason,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Status string `json:"Status,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/verify/v2/model_verify_v2_service_entity_challenge_read_response.go b/rest/verify/v2/model_verify_v2_service_entity_challenge_read_response.go index 98f3b8398..dfb7a40f1 100644 --- a/rest/verify/v2/model_verify_v2_service_entity_challenge_read_response.go +++ b/rest/verify/v2/model_verify_v2_service_entity_challenge_read_response.go @@ -11,6 +11,6 @@ package openapi // VerifyV2ServiceEntityChallengeReadResponse struct for VerifyV2ServiceEntityChallengeReadResponse type VerifyV2ServiceEntityChallengeReadResponse struct { - Challenges []VerifyV2ServiceEntityChallenge `json:"challenges,omitempty"` - Meta VerifyV2ServiceReadResponseMeta `json:"meta,omitempty"` + Challenges []VerifyV2ServiceEntityChallenge `json:"Challenges,omitempty"` + Meta VerifyV2ServiceReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/verify/v2/model_verify_v2_service_entity_factor.go b/rest/verify/v2/model_verify_v2_service_entity_factor.go index 37e769c27..4a96b7e8c 100644 --- a/rest/verify/v2/model_verify_v2_service_entity_factor.go +++ b/rest/verify/v2/model_verify_v2_service_entity_factor.go @@ -14,16 +14,16 @@ import ( ) // VerifyV2ServiceEntityFactor struct for VerifyV2ServiceEntityFactor type VerifyV2ServiceEntityFactor struct { - AccountSid string `json:"account_sid,omitempty"` - Config map[string]interface{} `json:"config,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - EntitySid string `json:"entity_sid,omitempty"` - FactorType string `json:"factor_type,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Identity string `json:"identity,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Config map[string]interface{} `json:"Config,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + EntitySid string `json:"EntitySid,omitempty"` + FactorType string `json:"FactorType,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Identity string `json:"Identity,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Status string `json:"Status,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/verify/v2/model_verify_v2_service_entity_factor_read_response.go b/rest/verify/v2/model_verify_v2_service_entity_factor_read_response.go index c4a2792b8..984c2af7b 100644 --- a/rest/verify/v2/model_verify_v2_service_entity_factor_read_response.go +++ b/rest/verify/v2/model_verify_v2_service_entity_factor_read_response.go @@ -11,6 +11,6 @@ package openapi // VerifyV2ServiceEntityFactorReadResponse struct for VerifyV2ServiceEntityFactorReadResponse type VerifyV2ServiceEntityFactorReadResponse struct { - Factors []VerifyV2ServiceEntityFactor `json:"factors,omitempty"` - Meta VerifyV2ServiceReadResponseMeta `json:"meta,omitempty"` + Factors []VerifyV2ServiceEntityFactor `json:"Factors,omitempty"` + Meta VerifyV2ServiceReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/verify/v2/model_verify_v2_service_entity_read_response.go b/rest/verify/v2/model_verify_v2_service_entity_read_response.go index 83f54cc18..899f03726 100644 --- a/rest/verify/v2/model_verify_v2_service_entity_read_response.go +++ b/rest/verify/v2/model_verify_v2_service_entity_read_response.go @@ -11,6 +11,6 @@ package openapi // VerifyV2ServiceEntityReadResponse struct for VerifyV2ServiceEntityReadResponse type VerifyV2ServiceEntityReadResponse struct { - Entities []VerifyV2ServiceEntity `json:"entities,omitempty"` - Meta VerifyV2ServiceReadResponseMeta `json:"meta,omitempty"` + Entities []VerifyV2ServiceEntity `json:"Entities,omitempty"` + Meta VerifyV2ServiceReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/verify/v2/model_verify_v2_service_messaging_configuration.go b/rest/verify/v2/model_verify_v2_service_messaging_configuration.go index d21f873f2..792ed09f5 100644 --- a/rest/verify/v2/model_verify_v2_service_messaging_configuration.go +++ b/rest/verify/v2/model_verify_v2_service_messaging_configuration.go @@ -14,11 +14,11 @@ import ( ) // VerifyV2ServiceMessagingConfiguration struct for VerifyV2ServiceMessagingConfiguration type VerifyV2ServiceMessagingConfiguration struct { - AccountSid string `json:"account_sid,omitempty"` - Country string `json:"country,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - MessagingServiceSid string `json:"messaging_service_sid,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Country string `json:"Country,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + MessagingServiceSid string `json:"MessagingServiceSid,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/verify/v2/model_verify_v2_service_messaging_configuration_read_response.go b/rest/verify/v2/model_verify_v2_service_messaging_configuration_read_response.go index 140edb1b7..c15f0194f 100644 --- a/rest/verify/v2/model_verify_v2_service_messaging_configuration_read_response.go +++ b/rest/verify/v2/model_verify_v2_service_messaging_configuration_read_response.go @@ -11,6 +11,6 @@ package openapi // VerifyV2ServiceMessagingConfigurationReadResponse struct for VerifyV2ServiceMessagingConfigurationReadResponse type VerifyV2ServiceMessagingConfigurationReadResponse struct { - MessagingConfigurations []VerifyV2ServiceMessagingConfiguration `json:"messaging_configurations,omitempty"` - Meta VerifyV2ServiceReadResponseMeta `json:"meta,omitempty"` + MessagingConfigurations []VerifyV2ServiceMessagingConfiguration `json:"MessagingConfigurations,omitempty"` + Meta VerifyV2ServiceReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/verify/v2/model_verify_v2_service_rate_limit.go b/rest/verify/v2/model_verify_v2_service_rate_limit.go index 102747bc3..a83163d9d 100644 --- a/rest/verify/v2/model_verify_v2_service_rate_limit.go +++ b/rest/verify/v2/model_verify_v2_service_rate_limit.go @@ -14,13 +14,13 @@ import ( ) // VerifyV2ServiceRateLimit struct for VerifyV2ServiceRateLimit type VerifyV2ServiceRateLimit struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Description string `json:"description,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Description string `json:"Description,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/verify/v2/model_verify_v2_service_rate_limit_bucket.go b/rest/verify/v2/model_verify_v2_service_rate_limit_bucket.go index a3002190f..f7536e7fb 100644 --- a/rest/verify/v2/model_verify_v2_service_rate_limit_bucket.go +++ b/rest/verify/v2/model_verify_v2_service_rate_limit_bucket.go @@ -14,13 +14,13 @@ import ( ) // VerifyV2ServiceRateLimitBucket struct for VerifyV2ServiceRateLimitBucket type VerifyV2ServiceRateLimitBucket struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Interval int32 `json:"interval,omitempty"` - Max int32 `json:"max,omitempty"` - RateLimitSid string `json:"rate_limit_sid,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Interval int32 `json:"Interval,omitempty"` + Max int32 `json:"Max,omitempty"` + RateLimitSid string `json:"RateLimitSid,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/verify/v2/model_verify_v2_service_rate_limit_bucket_read_response.go b/rest/verify/v2/model_verify_v2_service_rate_limit_bucket_read_response.go index c9d90db88..4e66469ef 100644 --- a/rest/verify/v2/model_verify_v2_service_rate_limit_bucket_read_response.go +++ b/rest/verify/v2/model_verify_v2_service_rate_limit_bucket_read_response.go @@ -11,6 +11,6 @@ package openapi // VerifyV2ServiceRateLimitBucketReadResponse struct for VerifyV2ServiceRateLimitBucketReadResponse type VerifyV2ServiceRateLimitBucketReadResponse struct { - Buckets []VerifyV2ServiceRateLimitBucket `json:"buckets,omitempty"` - Meta VerifyV2ServiceReadResponseMeta `json:"meta,omitempty"` + Buckets []VerifyV2ServiceRateLimitBucket `json:"Buckets,omitempty"` + Meta VerifyV2ServiceReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/verify/v2/model_verify_v2_service_rate_limit_read_response.go b/rest/verify/v2/model_verify_v2_service_rate_limit_read_response.go index 75ef44971..36d8f1d8d 100644 --- a/rest/verify/v2/model_verify_v2_service_rate_limit_read_response.go +++ b/rest/verify/v2/model_verify_v2_service_rate_limit_read_response.go @@ -11,6 +11,6 @@ package openapi // VerifyV2ServiceRateLimitReadResponse struct for VerifyV2ServiceRateLimitReadResponse type VerifyV2ServiceRateLimitReadResponse struct { - Meta VerifyV2ServiceReadResponseMeta `json:"meta,omitempty"` - RateLimits []VerifyV2ServiceRateLimit `json:"rate_limits,omitempty"` + Meta VerifyV2ServiceReadResponseMeta `json:"Meta,omitempty"` + RateLimits []VerifyV2ServiceRateLimit `json:"RateLimits,omitempty"` } diff --git a/rest/verify/v2/model_verify_v2_service_read_response.go b/rest/verify/v2/model_verify_v2_service_read_response.go index e1697147a..a78785329 100644 --- a/rest/verify/v2/model_verify_v2_service_read_response.go +++ b/rest/verify/v2/model_verify_v2_service_read_response.go @@ -11,6 +11,6 @@ package openapi // VerifyV2ServiceReadResponse struct for VerifyV2ServiceReadResponse type VerifyV2ServiceReadResponse struct { - Meta VerifyV2ServiceReadResponseMeta `json:"meta,omitempty"` - Services []VerifyV2Service `json:"services,omitempty"` + Meta VerifyV2ServiceReadResponseMeta `json:"Meta,omitempty"` + Services []VerifyV2Service `json:"Services,omitempty"` } diff --git a/rest/verify/v2/model_verify_v2_service_read_response_meta.go b/rest/verify/v2/model_verify_v2_service_read_response_meta.go index 747e515d9..27ce1ccc3 100644 --- a/rest/verify/v2/model_verify_v2_service_read_response_meta.go +++ b/rest/verify/v2/model_verify_v2_service_read_response_meta.go @@ -11,11 +11,11 @@ package openapi // VerifyV2ServiceReadResponseMeta struct for VerifyV2ServiceReadResponseMeta type VerifyV2ServiceReadResponseMeta struct { - FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` - NextPageUrl string `json:"next_page_url,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUrl string `json:"previous_page_url,omitempty"` - Url string `json:"url,omitempty"` + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/verify/v2/model_verify_v2_service_verification.go b/rest/verify/v2/model_verify_v2_service_verification.go index 6db18a582..93af07caa 100644 --- a/rest/verify/v2/model_verify_v2_service_verification.go +++ b/rest/verify/v2/model_verify_v2_service_verification.go @@ -14,18 +14,18 @@ import ( ) // VerifyV2ServiceVerification struct for VerifyV2ServiceVerification type VerifyV2ServiceVerification struct { - AccountSid string `json:"account_sid,omitempty"` - Amount string `json:"amount,omitempty"` - Channel string `json:"channel,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Lookup map[string]interface{} `json:"lookup,omitempty"` - Payee string `json:"payee,omitempty"` - SendCodeAttempts []map[string]interface{} `json:"send_code_attempts,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - To string `json:"to,omitempty"` - Url string `json:"url,omitempty"` - Valid bool `json:"valid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Amount string `json:"Amount,omitempty"` + Channel string `json:"Channel,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Lookup map[string]interface{} `json:"Lookup,omitempty"` + Payee string `json:"Payee,omitempty"` + SendCodeAttempts []map[string]interface{} `json:"SendCodeAttempts,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Status string `json:"Status,omitempty"` + To string `json:"To,omitempty"` + Url string `json:"Url,omitempty"` + Valid bool `json:"Valid,omitempty"` } diff --git a/rest/verify/v2/model_verify_v2_service_verification_check.go b/rest/verify/v2/model_verify_v2_service_verification_check.go index 7fb0913cb..615cdbc60 100644 --- a/rest/verify/v2/model_verify_v2_service_verification_check.go +++ b/rest/verify/v2/model_verify_v2_service_verification_check.go @@ -14,15 +14,15 @@ import ( ) // VerifyV2ServiceVerificationCheck struct for VerifyV2ServiceVerificationCheck type VerifyV2ServiceVerificationCheck struct { - AccountSid string `json:"account_sid,omitempty"` - Amount string `json:"amount,omitempty"` - Channel string `json:"channel,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Payee string `json:"payee,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - To string `json:"to,omitempty"` - Valid bool `json:"valid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Amount string `json:"Amount,omitempty"` + Channel string `json:"Channel,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Payee string `json:"Payee,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Status string `json:"Status,omitempty"` + To string `json:"To,omitempty"` + Valid bool `json:"Valid,omitempty"` } diff --git a/rest/verify/v2/model_verify_v2_service_webhook.go b/rest/verify/v2/model_verify_v2_service_webhook.go index 6b4111cdd..542e2027a 100644 --- a/rest/verify/v2/model_verify_v2_service_webhook.go +++ b/rest/verify/v2/model_verify_v2_service_webhook.go @@ -14,15 +14,15 @@ import ( ) // VerifyV2ServiceWebhook struct for VerifyV2ServiceWebhook type VerifyV2ServiceWebhook struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - EventTypes []string `json:"event_types,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - ServiceSid string `json:"service_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - Url string `json:"url,omitempty"` - WebhookMethod string `json:"webhook_method,omitempty"` - WebhookUrl string `json:"webhook_url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + EventTypes []string `json:"EventTypes,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + ServiceSid string `json:"ServiceSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Status string `json:"Status,omitempty"` + Url string `json:"Url,omitempty"` + WebhookMethod string `json:"WebhookMethod,omitempty"` + WebhookUrl string `json:"WebhookUrl,omitempty"` } diff --git a/rest/verify/v2/model_verify_v2_service_webhook_read_response.go b/rest/verify/v2/model_verify_v2_service_webhook_read_response.go index 473046b8f..48d38c57f 100644 --- a/rest/verify/v2/model_verify_v2_service_webhook_read_response.go +++ b/rest/verify/v2/model_verify_v2_service_webhook_read_response.go @@ -11,6 +11,6 @@ package openapi // VerifyV2ServiceWebhookReadResponse struct for VerifyV2ServiceWebhookReadResponse type VerifyV2ServiceWebhookReadResponse struct { - Meta VerifyV2ServiceReadResponseMeta `json:"meta,omitempty"` - Webhooks []VerifyV2ServiceWebhook `json:"webhooks,omitempty"` + Meta VerifyV2ServiceReadResponseMeta `json:"Meta,omitempty"` + Webhooks []VerifyV2ServiceWebhook `json:"Webhooks,omitempty"` } diff --git a/rest/video/v1/api_default.go b/rest/video/v1/api_default.go index 095db942b..0559eba76 100644 --- a/rest/video/v1/api_default.go +++ b/rest/video/v1/api_default.go @@ -15,6 +15,8 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" + "time" ) type DefaultApiService struct { @@ -58,32 +60,33 @@ CreateComposition Method for CreateComposition func (c *DefaultApiService) CreateComposition(params *CreateCompositionParams) (*VideoV1Composition, error) { path := "/v1/Compositions" + data := url.Values{} headers := 0 if params != nil && params.AudioSources != nil { - data.Set("AudioSources", *params.AudioSources) + data.Set("AudioSources", strings.Join(*params.AudioSources, ",")) } if params != nil && params.AudioSourcesExcluded != nil { - data.Set("AudioSourcesExcluded", *params.AudioSourcesExcluded) + data.Set("AudioSourcesExcluded", strings.Join(*params.AudioSourcesExcluded, ",")) } if params != nil && params.Format != nil { - data.Set("Format", *params.Format) + data.Set("Format", *params.Format) } if params != nil && params.Resolution != nil { - data.Set("Resolution", *params.Resolution) + data.Set("Resolution", *params.Resolution) } if params != nil && params.RoomSid != nil { - data.Set("RoomSid", *params.RoomSid) + data.Set("RoomSid", *params.RoomSid) } if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) + data.Set("StatusCallback", *params.StatusCallback) } if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) } if params != nil && params.Trim != nil { - data.Set("Trim", string(*params.Trim)) + data.Set("Trim", fmt.Sprint(*params.Trim)) } if params != nil && params.VideoLayout != nil { v, err := json.Marshal(params.VideoLayout) @@ -92,7 +95,7 @@ func (c *DefaultApiService) CreateComposition(params *CreateCompositionParams) ( return nil, err } - data.Set("VideoLayout", string(v)) + data.Set("VideoLayout", fmt.Sprint(v)) } @@ -142,35 +145,36 @@ CreateCompositionHook Method for CreateCompositionHook func (c *DefaultApiService) CreateCompositionHook(params *CreateCompositionHookParams) (*VideoV1CompositionHook, error) { path := "/v1/CompositionHooks" + data := url.Values{} headers := 0 if params != nil && params.AudioSources != nil { - data.Set("AudioSources", *params.AudioSources) + data.Set("AudioSources", strings.Join(*params.AudioSources, ",")) } if params != nil && params.AudioSourcesExcluded != nil { - data.Set("AudioSourcesExcluded", *params.AudioSourcesExcluded) + data.Set("AudioSourcesExcluded", strings.Join(*params.AudioSourcesExcluded, ",")) } if params != nil && params.Enabled != nil { - data.Set("Enabled", string(*params.Enabled)) + data.Set("Enabled", fmt.Sprint(*params.Enabled)) } if params != nil && params.Format != nil { - data.Set("Format", *params.Format) + data.Set("Format", *params.Format) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Resolution != nil { - data.Set("Resolution", *params.Resolution) + data.Set("Resolution", *params.Resolution) } if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) + data.Set("StatusCallback", *params.StatusCallback) } if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) } if params != nil && params.Trim != nil { - data.Set("Trim", string(*params.Trim)) + data.Set("Trim", fmt.Sprint(*params.Trim)) } if params != nil && params.VideoLayout != nil { v, err := json.Marshal(params.VideoLayout) @@ -179,7 +183,7 @@ func (c *DefaultApiService) CreateCompositionHook(params *CreateCompositionHookP return nil, err } - data.Set("VideoLayout", string(v)) + data.Set("VideoLayout", fmt.Sprint(v)) } @@ -221,26 +225,27 @@ CreateCompositionSettings Method for CreateCompositionSettings func (c *DefaultApiService) CreateCompositionSettings(params *CreateCompositionSettingsParams) (*VideoV1CompositionSettings, error) { path := "/v1/CompositionSettings/Default" + data := url.Values{} headers := 0 if params != nil && params.AwsCredentialsSid != nil { - data.Set("AwsCredentialsSid", *params.AwsCredentialsSid) + data.Set("AwsCredentialsSid", *params.AwsCredentialsSid) } if params != nil && params.AwsS3Url != nil { - data.Set("AwsS3Url", *params.AwsS3Url) + data.Set("AwsS3Url", *params.AwsS3Url) } if params != nil && params.AwsStorageEnabled != nil { - data.Set("AwsStorageEnabled", string(*params.AwsStorageEnabled)) + data.Set("AwsStorageEnabled", fmt.Sprint(*params.AwsStorageEnabled)) } if params != nil && params.EncryptionEnabled != nil { - data.Set("EncryptionEnabled", string(*params.EncryptionEnabled)) + data.Set("EncryptionEnabled", fmt.Sprint(*params.EncryptionEnabled)) } if params != nil && params.EncryptionKeySid != nil { - data.Set("EncryptionKeySid", *params.EncryptionKeySid) + data.Set("EncryptionKeySid", *params.EncryptionKeySid) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -282,26 +287,27 @@ CreateRecordingSettings Method for CreateRecordingSettings func (c *DefaultApiService) CreateRecordingSettings(params *CreateRecordingSettingsParams) (*VideoV1RecordingSettings, error) { path := "/v1/RecordingSettings/Default" + data := url.Values{} headers := 0 if params != nil && params.AwsCredentialsSid != nil { - data.Set("AwsCredentialsSid", *params.AwsCredentialsSid) + data.Set("AwsCredentialsSid", *params.AwsCredentialsSid) } if params != nil && params.AwsS3Url != nil { - data.Set("AwsS3Url", *params.AwsS3Url) + data.Set("AwsS3Url", *params.AwsS3Url) } if params != nil && params.AwsStorageEnabled != nil { - data.Set("AwsStorageEnabled", string(*params.AwsStorageEnabled)) + data.Set("AwsStorageEnabled", fmt.Sprint(*params.AwsStorageEnabled)) } if params != nil && params.EncryptionEnabled != nil { - data.Set("EncryptionEnabled", string(*params.EncryptionEnabled)) + data.Set("EncryptionEnabled", fmt.Sprint(*params.EncryptionEnabled)) } if params != nil && params.EncryptionKeySid != nil { - data.Set("EncryptionKeySid", *params.EncryptionKeySid) + data.Set("EncryptionKeySid", *params.EncryptionKeySid) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -349,35 +355,36 @@ CreateRoom Method for CreateRoom func (c *DefaultApiService) CreateRoom(params *CreateRoomParams) (*VideoV1Room, error) { path := "/v1/Rooms" + data := url.Values{} headers := 0 if params != nil && params.EnableTurn != nil { - data.Set("EnableTurn", string(*params.EnableTurn)) + data.Set("EnableTurn", fmt.Sprint(*params.EnableTurn)) } if params != nil && params.MaxParticipants != nil { - data.Set("MaxParticipants", string(*params.MaxParticipants)) + data.Set("MaxParticipants", fmt.Sprint(*params.MaxParticipants)) } if params != nil && params.MediaRegion != nil { - data.Set("MediaRegion", *params.MediaRegion) + data.Set("MediaRegion", *params.MediaRegion) } if params != nil && params.RecordParticipantsOnConnect != nil { - data.Set("RecordParticipantsOnConnect", string(*params.RecordParticipantsOnConnect)) + data.Set("RecordParticipantsOnConnect", fmt.Sprint(*params.RecordParticipantsOnConnect)) } if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) + data.Set("StatusCallback", *params.StatusCallback) } if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) } if params != nil && params.Type != nil { - data.Set("Type", *params.Type) + data.Set("Type", *params.Type) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } if params != nil && params.VideoCodecs != nil { - data.Set("VideoCodecs", *params.VideoCodecs) + data.Set("VideoCodecs", strings.Join(*params.VideoCodecs, ",")) } @@ -399,13 +406,14 @@ func (c *DefaultApiService) CreateRoom(params *CreateRoomParams) (*VideoV1Room, /* DeleteComposition Method for DeleteComposition Delete a Recording Composition resource identified by a Composition SID. - * @param sid The SID of the Composition resource to delete. + * @param Sid The SID of the Composition resource to delete. */ -func (c *DefaultApiService) DeleteComposition(sid string) (error) { +func (c *DefaultApiService) DeleteComposition(Sid string) (error) { path := "/v1/Compositions/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -423,13 +431,14 @@ func (c *DefaultApiService) DeleteComposition(sid string) (error) { /* DeleteCompositionHook Method for DeleteCompositionHook Delete a Recording CompositionHook resource identified by a `CompositionHook SID`. - * @param sid The SID of the CompositionHook resource to delete. + * @param Sid The SID of the CompositionHook resource to delete. */ -func (c *DefaultApiService) DeleteCompositionHook(sid string) (error) { +func (c *DefaultApiService) DeleteCompositionHook(Sid string) (error) { path := "/v1/CompositionHooks/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -447,13 +456,14 @@ func (c *DefaultApiService) DeleteCompositionHook(sid string) (error) { /* DeleteRecording Method for DeleteRecording Delete a Recording resource identified by a Recording SID. - * @param sid The SID of the Recording resource to delete. + * @param Sid The SID of the Recording resource to delete. */ -func (c *DefaultApiService) DeleteRecording(sid string) (error) { +func (c *DefaultApiService) DeleteRecording(Sid string) (error) { path := "/v1/Recordings/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -470,15 +480,16 @@ func (c *DefaultApiService) DeleteRecording(sid string) (error) { /* DeleteRoomRecording Method for DeleteRoomRecording - * @param roomSid The SID of the room with the RoomRecording resource to delete. - * @param sid The SID of the RoomRecording resource to delete. + * @param RoomSid The SID of the room with the RoomRecording resource to delete. + * @param Sid The SID of the RoomRecording resource to delete. */ -func (c *DefaultApiService) DeleteRoomRecording(roomSid string, sid string) (error) { +func (c *DefaultApiService) DeleteRoomRecording(RoomSid string, Sid string) (error) { path := "/v1/Rooms/{RoomSid}/Recordings/{Sid}" - path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -496,14 +507,15 @@ func (c *DefaultApiService) DeleteRoomRecording(roomSid string, sid string) (err /* FetchComposition Method for FetchComposition Returns a single Composition resource identified by a Composition SID. - * @param sid The SID of the Composition resource to fetch. + * @param Sid The SID of the Composition resource to fetch. @return VideoV1Composition */ -func (c *DefaultApiService) FetchComposition(sid string) (*VideoV1Composition, error) { +func (c *DefaultApiService) FetchComposition(Sid string) (*VideoV1Composition, error) { path := "/v1/Compositions/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -526,14 +538,15 @@ func (c *DefaultApiService) FetchComposition(sid string) (*VideoV1Composition, e /* FetchCompositionHook Method for FetchCompositionHook Returns a single CompositionHook resource identified by a CompositionHook SID. - * @param sid The SID of the CompositionHook resource to fetch. + * @param Sid The SID of the CompositionHook resource to fetch. @return VideoV1CompositionHook */ -func (c *DefaultApiService) FetchCompositionHook(sid string) (*VideoV1CompositionHook, error) { +func (c *DefaultApiService) FetchCompositionHook(Sid string) (*VideoV1CompositionHook, error) { path := "/v1/CompositionHooks/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -560,7 +573,8 @@ FetchCompositionSettings Method for FetchCompositionSettings func (c *DefaultApiService) FetchCompositionSettings() (*VideoV1CompositionSettings, error) { path := "/v1/CompositionSettings/Default" - data := 0 + + data := url.Values{} headers := 0 @@ -583,14 +597,15 @@ func (c *DefaultApiService) FetchCompositionSettings() (*VideoV1CompositionSetti /* FetchRecording Method for FetchRecording Returns a single Recording resource identified by a Recording SID. - * @param sid The SID of the Recording resource to fetch. + * @param Sid The SID of the Recording resource to fetch. @return VideoV1Recording */ -func (c *DefaultApiService) FetchRecording(sid string) (*VideoV1Recording, error) { +func (c *DefaultApiService) FetchRecording(Sid string) (*VideoV1Recording, error) { path := "/v1/Recordings/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -617,7 +632,8 @@ FetchRecordingSettings Method for FetchRecordingSettings func (c *DefaultApiService) FetchRecordingSettings() (*VideoV1RecordingSettings, error) { path := "/v1/RecordingSettings/Default" - data := 0 + + data := url.Values{} headers := 0 @@ -639,14 +655,15 @@ func (c *DefaultApiService) FetchRecordingSettings() (*VideoV1RecordingSettings, /* FetchRoom Method for FetchRoom - * @param sid The SID of the Room resource to fetch. + * @param Sid The SID of the Room resource to fetch. @return VideoV1Room */ -func (c *DefaultApiService) FetchRoom(sid string) (*VideoV1Room, error) { +func (c *DefaultApiService) FetchRoom(Sid string) (*VideoV1Room, error) { path := "/v1/Rooms/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -668,16 +685,17 @@ func (c *DefaultApiService) FetchRoom(sid string) (*VideoV1Room, error) { /* FetchRoomParticipant Method for FetchRoomParticipant - * @param roomSid The SID of the room with the Participant resource to fetch. - * @param sid The SID of the RoomParticipant resource to fetch. + * @param RoomSid The SID of the room with the Participant resource to fetch. + * @param Sid The SID of the RoomParticipant resource to fetch. @return VideoV1RoomRoomParticipant */ -func (c *DefaultApiService) FetchRoomParticipant(roomSid string, sid string) (*VideoV1RoomRoomParticipant, error) { +func (c *DefaultApiService) FetchRoomParticipant(RoomSid string, Sid string) (*VideoV1RoomRoomParticipant, error) { path := "/v1/Rooms/{RoomSid}/Participants/{Sid}" - path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -700,18 +718,19 @@ func (c *DefaultApiService) FetchRoomParticipant(roomSid string, sid string) (*V /* FetchRoomParticipantPublishedTrack Method for FetchRoomParticipantPublishedTrack Returns a single Track resource represented by TrackName or SID. - * @param roomSid The SID of the Room resource where the Track resource to fetch is published. - * @param participantSid The SID of the Participant resource with the published track to fetch. - * @param sid The SID of the RoomParticipantPublishedTrack resource to fetch. + * @param RoomSid The SID of the Room resource where the Track resource to fetch is published. + * @param ParticipantSid The SID of the Participant resource with the published track to fetch. + * @param Sid The SID of the RoomParticipantPublishedTrack resource to fetch. @return VideoV1RoomRoomParticipantRoomParticipantPublishedTrack */ -func (c *DefaultApiService) FetchRoomParticipantPublishedTrack(roomSid string, participantSid string, sid string) (*VideoV1RoomRoomParticipantRoomParticipantPublishedTrack, error) { +func (c *DefaultApiService) FetchRoomParticipantPublishedTrack(RoomSid string, ParticipantSid string, Sid string) (*VideoV1RoomRoomParticipantRoomParticipantPublishedTrack, error) { path := "/v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/PublishedTracks/{Sid}" - path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) - path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) + path = strings.Replace(path, "{"+"ParticipantSid"+"}", ParticipantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -734,16 +753,17 @@ func (c *DefaultApiService) FetchRoomParticipantPublishedTrack(roomSid string, p /* FetchRoomParticipantSubscribeRule Method for FetchRoomParticipantSubscribeRule Returns a list of Subscribe Rules for the Participant. - * @param roomSid The SID of the Room resource where the subscribe rules to fetch apply. - * @param participantSid The SID of the Participant resource with the subscribe rules to fetch. + * @param RoomSid The SID of the Room resource where the subscribe rules to fetch apply. + * @param ParticipantSid The SID of the Participant resource with the subscribe rules to fetch. @return VideoV1RoomRoomParticipantRoomParticipantSubscribeRule */ -func (c *DefaultApiService) FetchRoomParticipantSubscribeRule(roomSid string, participantSid string) (*VideoV1RoomRoomParticipantRoomParticipantSubscribeRule, error) { +func (c *DefaultApiService) FetchRoomParticipantSubscribeRule(RoomSid string, ParticipantSid string) (*VideoV1RoomRoomParticipantRoomParticipantSubscribeRule, error) { path := "/v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/SubscribeRules" - path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) - path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) + path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) + path = strings.Replace(path, "{"+"ParticipantSid"+"}", ParticipantSid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -766,18 +786,19 @@ func (c *DefaultApiService) FetchRoomParticipantSubscribeRule(roomSid string, pa /* FetchRoomParticipantSubscribedTrack Method for FetchRoomParticipantSubscribedTrack Returns a single Track resource represented by `track_sid`. Note: This is one resource with the Video API that requires a SID, be Track Name on the subscriber side is not guaranteed to be unique. - * @param roomSid The SID of the Room where the Track resource to fetch is subscribed. - * @param participantSid The SID of the participant that subscribes to the Track resource to fetch. - * @param sid The SID of the RoomParticipantSubscribedTrack resource to fetch. + * @param RoomSid The SID of the Room where the Track resource to fetch is subscribed. + * @param ParticipantSid The SID of the participant that subscribes to the Track resource to fetch. + * @param Sid The SID of the RoomParticipantSubscribedTrack resource to fetch. @return VideoV1RoomRoomParticipantRoomParticipantSubscribedTrack */ -func (c *DefaultApiService) FetchRoomParticipantSubscribedTrack(roomSid string, participantSid string, sid string) (*VideoV1RoomRoomParticipantRoomParticipantSubscribedTrack, error) { +func (c *DefaultApiService) FetchRoomParticipantSubscribedTrack(RoomSid string, ParticipantSid string, Sid string) (*VideoV1RoomRoomParticipantRoomParticipantSubscribedTrack, error) { path := "/v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/SubscribedTracks/{Sid}" - path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) - path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) + path = strings.Replace(path, "{"+"ParticipantSid"+"}", ParticipantSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -799,16 +820,17 @@ func (c *DefaultApiService) FetchRoomParticipantSubscribedTrack(roomSid string, /* FetchRoomRecording Method for FetchRoomRecording - * @param roomSid The SID of the Room resource with the recording to fetch. - * @param sid The SID of the RoomRecording resource to fetch. + * @param RoomSid The SID of the Room resource with the recording to fetch. + * @param Sid The SID of the RoomRecording resource to fetch. @return VideoV1RoomRoomRecording */ -func (c *DefaultApiService) FetchRoomRecording(roomSid string, sid string) (*VideoV1RoomRoomRecording, error) { +func (c *DefaultApiService) FetchRoomRecording(RoomSid string, Sid string) (*VideoV1RoomRoomRecording, error) { path := "/v1/Rooms/{RoomSid}/Recordings/{Sid}" - path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -831,14 +853,15 @@ func (c *DefaultApiService) FetchRoomRecording(roomSid string, sid string) (*Vid /* FetchRoomRecordingRule Method for FetchRoomRecordingRule Returns a list of Recording Rules for the Room. - * @param roomSid The SID of the Room resource where the recording rules to fetch apply. + * @param RoomSid The SID of the Room resource where the recording rules to fetch apply. @return VideoV1RoomRoomRecordingRule */ -func (c *DefaultApiService) FetchRoomRecordingRule(roomSid string) (*VideoV1RoomRoomRecordingRule, error) { +func (c *DefaultApiService) FetchRoomRecordingRule(RoomSid string) (*VideoV1RoomRoomRecordingRule, error) { path := "/v1/Rooms/{RoomSid}/RecordingRules" - path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -880,23 +903,24 @@ List of all Recording compositions. func (c *DefaultApiService) ListComposition(params *ListCompositionParams) (*VideoV1CompositionReadResponse, error) { path := "/v1/Compositions" + data := url.Values{} headers := 0 if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } if params != nil && params.DateCreatedAfter != nil { - data.Set("DateCreatedAfter", string(*params.DateCreatedAfter)) + data.Set("DateCreatedAfter", fmt.Sprint(*params.DateCreatedAfter)) } if params != nil && params.DateCreatedBefore != nil { - data.Set("DateCreatedBefore", string(*params.DateCreatedBefore)) + data.Set("DateCreatedBefore", fmt.Sprint(*params.DateCreatedBefore)) } if params != nil && params.RoomSid != nil { - data.Set("RoomSid", *params.RoomSid) + data.Set("RoomSid", *params.RoomSid) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -937,23 +961,24 @@ List of all Recording CompositionHook resources. func (c *DefaultApiService) ListCompositionHook(params *ListCompositionHookParams) (*VideoV1CompositionHookReadResponse, error) { path := "/v1/CompositionHooks" + data := url.Values{} headers := 0 if params != nil && params.Enabled != nil { - data.Set("Enabled", string(*params.Enabled)) + data.Set("Enabled", fmt.Sprint(*params.Enabled)) } if params != nil && params.DateCreatedAfter != nil { - data.Set("DateCreatedAfter", string(*params.DateCreatedAfter)) + data.Set("DateCreatedAfter", fmt.Sprint(*params.DateCreatedAfter)) } if params != nil && params.DateCreatedBefore != nil { - data.Set("DateCreatedBefore", string(*params.DateCreatedBefore)) + data.Set("DateCreatedBefore", fmt.Sprint(*params.DateCreatedBefore)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -998,29 +1023,30 @@ List of all Track recordings. func (c *DefaultApiService) ListRecording(params *ListRecordingParams) (*VideoV1RecordingReadResponse, error) { path := "/v1/Recordings" + data := url.Values{} headers := 0 if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } if params != nil && params.SourceSid != nil { - data.Set("SourceSid", *params.SourceSid) + data.Set("SourceSid", *params.SourceSid) } if params != nil && params.GroupingSid != nil { - data.Set("GroupingSid", string(*params.GroupingSid)) + data.Set("GroupingSid", strings.Join(*params.GroupingSid, ",")) } if params != nil && params.DateCreatedAfter != nil { - data.Set("DateCreatedAfter", string(*params.DateCreatedAfter)) + data.Set("DateCreatedAfter", fmt.Sprint(*params.DateCreatedAfter)) } if params != nil && params.DateCreatedBefore != nil { - data.Set("DateCreatedBefore", string(*params.DateCreatedBefore)) + data.Set("DateCreatedBefore", fmt.Sprint(*params.DateCreatedBefore)) } if params != nil && params.MediaType != nil { - data.Set("MediaType", *params.MediaType) + data.Set("MediaType", *params.MediaType) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1060,23 +1086,24 @@ ListRoom Method for ListRoom func (c *DefaultApiService) ListRoom(params *ListRoomParams) (*VideoV1RoomReadResponse, error) { path := "/v1/Rooms" + data := url.Values{} headers := 0 if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } if params != nil && params.DateCreatedAfter != nil { - data.Set("DateCreatedAfter", string(*params.DateCreatedAfter)) + data.Set("DateCreatedAfter", fmt.Sprint(*params.DateCreatedAfter)) } if params != nil && params.DateCreatedBefore != nil { - data.Set("DateCreatedBefore", string(*params.DateCreatedBefore)) + data.Set("DateCreatedBefore", fmt.Sprint(*params.DateCreatedBefore)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1105,7 +1132,7 @@ type ListRoomParticipantParams struct { /* ListRoomParticipant Method for ListRoomParticipant - * @param roomSid The SID of the room with the Participant resources to read. + * @param RoomSid The SID of the room with the Participant resources to read. * @param optional nil or *ListRoomParticipantOpts - Optional Parameters: * @param "Status" (string) - Read only the participants with this status. Can be: `connected` or `disconnected`. For `in-progress` Rooms the default Status is `connected`, for `completed` Rooms only `disconnected` Participants are returned. * @param "Identity" (string) - Read only the Participants with this [User](https://www.twilio.com/docs/chat/rest/user-resource) `identity` value. @@ -1114,27 +1141,28 @@ ListRoomParticipant Method for ListRoomParticipant * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return VideoV1RoomRoomParticipantReadResponse */ -func (c *DefaultApiService) ListRoomParticipant(roomSid string, params *ListRoomParticipantParams) (*VideoV1RoomRoomParticipantReadResponse, error) { +func (c *DefaultApiService) ListRoomParticipant(RoomSid string, params *ListRoomParticipantParams) (*VideoV1RoomRoomParticipantReadResponse, error) { path := "/v1/Rooms/{RoomSid}/Participants" - path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } if params != nil && params.Identity != nil { - data.Set("Identity", *params.Identity) + data.Set("Identity", *params.Identity) } if params != nil && params.DateCreatedAfter != nil { - data.Set("DateCreatedAfter", string(*params.DateCreatedAfter)) + data.Set("DateCreatedAfter", fmt.Sprint(*params.DateCreatedAfter)) } if params != nil && params.DateCreatedBefore != nil { - data.Set("DateCreatedBefore", string(*params.DateCreatedBefore)) + data.Set("DateCreatedBefore", fmt.Sprint(*params.DateCreatedBefore)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1160,22 +1188,23 @@ type ListRoomParticipantPublishedTrackParams struct { /* ListRoomParticipantPublishedTrack Method for ListRoomParticipantPublishedTrack Returns a list of tracks associated with a given Participant. Only `currently` Published Tracks are in the list resource. - * @param roomSid The SID of the Room resource where the Track resources to read are published. - * @param participantSid The SID of the Participant resource with the published tracks to read. + * @param RoomSid The SID of the Room resource where the Track resources to read are published. + * @param ParticipantSid The SID of the Participant resource with the published tracks to read. * @param optional nil or *ListRoomParticipantPublishedTrackOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse */ -func (c *DefaultApiService) ListRoomParticipantPublishedTrack(roomSid string, participantSid string, params *ListRoomParticipantPublishedTrackParams) (*VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse, error) { +func (c *DefaultApiService) ListRoomParticipantPublishedTrack(RoomSid string, ParticipantSid string, params *ListRoomParticipantPublishedTrackParams) (*VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse, error) { path := "/v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/PublishedTracks" - path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) - path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) + path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) + path = strings.Replace(path, "{"+"ParticipantSid"+"}", ParticipantSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1201,22 +1230,23 @@ type ListRoomParticipantSubscribedTrackParams struct { /* ListRoomParticipantSubscribedTrack Method for ListRoomParticipantSubscribedTrack Returns a list of tracks that are subscribed for the participant. - * @param roomSid The SID of the Room resource with the Track resources to read. - * @param participantSid The SID of the participant that subscribes to the Track resources to read. + * @param RoomSid The SID of the Room resource with the Track resources to read. + * @param ParticipantSid The SID of the participant that subscribes to the Track resources to read. * @param optional nil or *ListRoomParticipantSubscribedTrackOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse */ -func (c *DefaultApiService) ListRoomParticipantSubscribedTrack(roomSid string, participantSid string, params *ListRoomParticipantSubscribedTrackParams) (*VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse, error) { +func (c *DefaultApiService) ListRoomParticipantSubscribedTrack(RoomSid string, ParticipantSid string, params *ListRoomParticipantSubscribedTrackParams) (*VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse, error) { path := "/v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/SubscribedTracks" - path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) - path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) + path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) + path = strings.Replace(path, "{"+"ParticipantSid"+"}", ParticipantSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1245,7 +1275,7 @@ type ListRoomRecordingParams struct { /* ListRoomRecording Method for ListRoomRecording - * @param roomSid The SID of the room with the RoomRecording resources to read. + * @param RoomSid The SID of the room with the RoomRecording resources to read. * @param optional nil or *ListRoomRecordingOpts - Optional Parameters: * @param "Status" (string) - Read only the recordings with this status. Can be: `processing`, `completed`, or `deleted`. * @param "SourceSid" (string) - Read only the recordings that have this `source_sid`. @@ -1254,27 +1284,28 @@ ListRoomRecording Method for ListRoomRecording * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return VideoV1RoomRoomRecordingReadResponse */ -func (c *DefaultApiService) ListRoomRecording(roomSid string, params *ListRoomRecordingParams) (*VideoV1RoomRoomRecordingReadResponse, error) { +func (c *DefaultApiService) ListRoomRecording(RoomSid string, params *ListRoomRecordingParams) (*VideoV1RoomRoomRecordingReadResponse, error) { path := "/v1/Rooms/{RoomSid}/Recordings" - path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) + data := url.Values{} headers := 0 if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } if params != nil && params.SourceSid != nil { - data.Set("SourceSid", *params.SourceSid) + data.Set("SourceSid", *params.SourceSid) } if params != nil && params.DateCreatedAfter != nil { - data.Set("DateCreatedAfter", string(*params.DateCreatedAfter)) + data.Set("DateCreatedAfter", fmt.Sprint(*params.DateCreatedAfter)) } if params != nil && params.DateCreatedBefore != nil { - data.Set("DateCreatedBefore", string(*params.DateCreatedBefore)) + data.Set("DateCreatedBefore", fmt.Sprint(*params.DateCreatedBefore)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1308,7 +1339,7 @@ type UpdateCompositionHookParams struct { /* UpdateCompositionHook Method for UpdateCompositionHook - * @param sid The SID of the CompositionHook resource to update. + * @param Sid The SID of the CompositionHook resource to update. * @param optional nil or *UpdateCompositionHookOpts - Optional Parameters: * @param "AudioSources" ([]string) - An array of track names from the same group room to merge into the compositions created by the composition hook. Can include zero or more track names. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` includes tracks named `student` as well as `studentTeam`. * @param "AudioSourcesExcluded" ([]string) - An array of track names to exclude. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except for those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` excludes `student` as well as `studentTeam`. This parameter can also be empty. @@ -1322,39 +1353,40 @@ UpdateCompositionHook Method for UpdateCompositionHook * @param "VideoLayout" (map[string]interface{}) - A JSON object that describes the video layout of the composition hook in terms of regions. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. @return VideoV1CompositionHook */ -func (c *DefaultApiService) UpdateCompositionHook(sid string, params *UpdateCompositionHookParams) (*VideoV1CompositionHook, error) { +func (c *DefaultApiService) UpdateCompositionHook(Sid string, params *UpdateCompositionHookParams) (*VideoV1CompositionHook, error) { path := "/v1/CompositionHooks/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.AudioSources != nil { - data.Set("AudioSources", *params.AudioSources) + data.Set("AudioSources", strings.Join(*params.AudioSources, ",")) } if params != nil && params.AudioSourcesExcluded != nil { - data.Set("AudioSourcesExcluded", *params.AudioSourcesExcluded) + data.Set("AudioSourcesExcluded", strings.Join(*params.AudioSourcesExcluded, ",")) } if params != nil && params.Enabled != nil { - data.Set("Enabled", string(*params.Enabled)) + data.Set("Enabled", fmt.Sprint(*params.Enabled)) } if params != nil && params.Format != nil { - data.Set("Format", *params.Format) + data.Set("Format", *params.Format) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Resolution != nil { - data.Set("Resolution", *params.Resolution) + data.Set("Resolution", *params.Resolution) } if params != nil && params.StatusCallback != nil { - data.Set("StatusCallback", *params.StatusCallback) + data.Set("StatusCallback", *params.StatusCallback) } if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) } if params != nil && params.Trim != nil { - data.Set("Trim", string(*params.Trim)) + data.Set("Trim", fmt.Sprint(*params.Trim)) } if params != nil && params.VideoLayout != nil { v, err := json.Marshal(params.VideoLayout) @@ -1363,7 +1395,7 @@ func (c *DefaultApiService) UpdateCompositionHook(sid string, params *UpdateComp return nil, err } - data.Set("VideoLayout", string(v)) + data.Set("VideoLayout", fmt.Sprint(v)) } @@ -1388,20 +1420,21 @@ type UpdateRoomParams struct { /* UpdateRoom Method for UpdateRoom - * @param sid The SID of the Room resource to update. + * @param Sid The SID of the Room resource to update. * @param optional nil or *UpdateRoomOpts - Optional Parameters: * @param "Status" (string) - The new status of the resource. Set to `completed` to end the room. @return VideoV1Room */ -func (c *DefaultApiService) UpdateRoom(sid string, params *UpdateRoomParams) (*VideoV1Room, error) { +func (c *DefaultApiService) UpdateRoom(Sid string, params *UpdateRoomParams) (*VideoV1Room, error) { path := "/v1/Rooms/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } @@ -1426,22 +1459,23 @@ type UpdateRoomParticipantParams struct { /* UpdateRoomParticipant Method for UpdateRoomParticipant - * @param roomSid The SID of the room with the participant to update. - * @param sid The SID of the RoomParticipant resource to update. + * @param RoomSid The SID of the room with the participant to update. + * @param Sid The SID of the RoomParticipant resource to update. * @param optional nil or *UpdateRoomParticipantOpts - Optional Parameters: * @param "Status" (string) - The new status of the resource. Can be: `connected` or `disconnected`. For `in-progress` Rooms the default Status is `connected`, for `completed` Rooms only `disconnected` Participants are returned. @return VideoV1RoomRoomParticipant */ -func (c *DefaultApiService) UpdateRoomParticipant(roomSid string, sid string, params *UpdateRoomParticipantParams) (*VideoV1RoomRoomParticipant, error) { +func (c *DefaultApiService) UpdateRoomParticipant(RoomSid string, Sid string, params *UpdateRoomParticipantParams) (*VideoV1RoomRoomParticipant, error) { path := "/v1/Rooms/{RoomSid}/Participants/{Sid}" - path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } @@ -1467,16 +1501,17 @@ type UpdateRoomParticipantSubscribeRuleParams struct { /* UpdateRoomParticipantSubscribeRule Method for UpdateRoomParticipantSubscribeRule Update the Subscribe Rules for the Participant - * @param roomSid The SID of the Room resource where the subscribe rules to update apply. - * @param participantSid The SID of the Participant resource to update the Subscribe Rules. + * @param RoomSid The SID of the Room resource where the subscribe rules to update apply. + * @param ParticipantSid The SID of the Participant resource to update the Subscribe Rules. * @param optional nil or *UpdateRoomParticipantSubscribeRuleOpts - Optional Parameters: * @param "Rules" (map[string]interface{}) - A JSON-encoded array of subscribe rules. See the [Specifying Subscribe Rules](https://www.twilio.com/docs/video/api/track-subscriptions#specifying-sr) section for further information. @return VideoV1RoomRoomParticipantRoomParticipantSubscribeRule */ -func (c *DefaultApiService) UpdateRoomParticipantSubscribeRule(roomSid string, participantSid string, params *UpdateRoomParticipantSubscribeRuleParams) (*VideoV1RoomRoomParticipantRoomParticipantSubscribeRule, error) { +func (c *DefaultApiService) UpdateRoomParticipantSubscribeRule(RoomSid string, ParticipantSid string, params *UpdateRoomParticipantSubscribeRuleParams) (*VideoV1RoomRoomParticipantRoomParticipantSubscribeRule, error) { path := "/v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/SubscribeRules" - path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) - path = strings.Replace(path, "{"+"ParticipantSid"+"}", participantSid, -1) + path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) + path = strings.Replace(path, "{"+"ParticipantSid"+"}", ParticipantSid, -1) + data := url.Values{} headers := 0 @@ -1488,7 +1523,7 @@ func (c *DefaultApiService) UpdateRoomParticipantSubscribeRule(roomSid string, p return nil, err } - data.Set("Rules", string(v)) + data.Set("Rules", fmt.Sprint(v)) } @@ -1514,14 +1549,15 @@ type UpdateRoomRecordingRuleParams struct { /* UpdateRoomRecordingRule Method for UpdateRoomRecordingRule Update the Recording Rules for the Room - * @param roomSid The SID of the Room resource where the recording rules to update apply. + * @param RoomSid The SID of the Room resource where the recording rules to update apply. * @param optional nil or *UpdateRoomRecordingRuleOpts - Optional Parameters: * @param "Rules" (map[string]interface{}) - A JSON-encoded array of recording rules. @return VideoV1RoomRoomRecordingRule */ -func (c *DefaultApiService) UpdateRoomRecordingRule(roomSid string, params *UpdateRoomRecordingRuleParams) (*VideoV1RoomRoomRecordingRule, error) { +func (c *DefaultApiService) UpdateRoomRecordingRule(RoomSid string, params *UpdateRoomRecordingRuleParams) (*VideoV1RoomRoomRecordingRule, error) { path := "/v1/Rooms/{RoomSid}/RecordingRules" - path = strings.Replace(path, "{"+"RoomSid"+"}", roomSid, -1) + path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) + data := url.Values{} headers := 0 @@ -1533,7 +1569,7 @@ func (c *DefaultApiService) UpdateRoomRecordingRule(roomSid string, params *Upda return nil, err } - data.Set("Rules", string(v)) + data.Set("Rules", fmt.Sprint(v)) } diff --git a/rest/video/v1/docs/DefaultApi.md b/rest/video/v1/docs/DefaultApi.md index dc004c905..e6173b088 100644 --- a/rest/video/v1/docs/DefaultApi.md +++ b/rest/video/v1/docs/DefaultApi.md @@ -62,15 +62,15 @@ Optional parameters are passed through a pointer to a CreateCompositionOpts stru Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **audioSources** | [**optional.Interface of []string**](string.md)| An array of track names from the same group room to merge into the new composition. Can include zero or more track names. The new composition includes all audio sources specified in `audio_sources` except for those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which will match zero or more characters in a track name. For example, `student*` includes `student` as well as `studentTeam`. Please, be aware that either video_layout or audio_sources have to be provided to get a valid creation request | - **audioSourcesExcluded** | [**optional.Interface of []string**](string.md)| An array of track names to exclude. The new composition includes all audio sources specified in `audio_sources` except for those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which will match zero or more characters in a track name. For example, `student*` excludes `student` as well as `studentTeam`. This parameter can also be empty. | - **format** | **optional.String**| The container format of the composition's media files. Can be: `mp4` or `webm` and the default is `webm`. If you specify `mp4` or `webm`, you must also specify one or more `audio_sources` and/or a `video_layout` element that contains a valid `video_sources` list, otherwise an error occurs. | - **resolution** | **optional.String**| A string that describes the columns (width) and rows (height) of the generated composed video in pixels. Defaults to `640x480`. The string's format is `{width}x{height}` where: * 16 <= `{width}` <= 1280 * 16 <= `{height}` <= 1280 * `{width}` * `{height}` <= 921,600 Typical values are: * HD = `1280x720` * PAL = `1024x576` * VGA = `640x480` * CIF = `320x240` Note that the `resolution` imposes an aspect ratio to the resulting composition. When the original video tracks are constrained by the aspect ratio, they are scaled to fit. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. | - **roomSid** | **optional.String**| The SID of the Group Room with the media tracks to be used as composition sources. | - **statusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application on every composition event. If not provided, status callback events will not be dispatched. | - **statusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`. | - **trim** | **optional.Bool**| Whether to clip the intervals where there is no active media in the composition. The default is `true`. Compositions with `trim` enabled are shorter when the Room is created and no Participant joins for a while as well as if all the Participants leave the room and join later, because those gaps will be removed. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. | - **videoLayout** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| An object that describes the video layout of the composition in terms of regions. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. Please, be aware that either video_layout or audio_sources have to be provided to get a valid creation request | + **AudioSources** | [**optional.Interface of []string**](string.md)| An array of track names from the same group room to merge into the new composition. Can include zero or more track names. The new composition includes all audio sources specified in `audio_sources` except for those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which will match zero or more characters in a track name. For example, `student*` includes `student` as well as `studentTeam`. Please, be aware that either video_layout or audio_sources have to be provided to get a valid creation request | + **AudioSourcesExcluded** | [**optional.Interface of []string**](string.md)| An array of track names to exclude. The new composition includes all audio sources specified in `audio_sources` except for those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which will match zero or more characters in a track name. For example, `student*` excludes `student` as well as `studentTeam`. This parameter can also be empty. | + **Format** | **optional.String**| The container format of the composition's media files. Can be: `mp4` or `webm` and the default is `webm`. If you specify `mp4` or `webm`, you must also specify one or more `audio_sources` and/or a `video_layout` element that contains a valid `video_sources` list, otherwise an error occurs. | + **Resolution** | **optional.String**| A string that describes the columns (width) and rows (height) of the generated composed video in pixels. Defaults to `640x480`. The string's format is `{width}x{height}` where: * 16 <= `{width}` <= 1280 * 16 <= `{height}` <= 1280 * `{width}` * `{height}` <= 921,600 Typical values are: * HD = `1280x720` * PAL = `1024x576` * VGA = `640x480` * CIF = `320x240` Note that the `resolution` imposes an aspect ratio to the resulting composition. When the original video tracks are constrained by the aspect ratio, they are scaled to fit. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. | + **RoomSid** | **optional.String**| The SID of the Group Room with the media tracks to be used as composition sources. | + **StatusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application on every composition event. If not provided, status callback events will not be dispatched. | + **StatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`. | + **Trim** | **optional.Bool**| Whether to clip the intervals where there is no active media in the composition. The default is `true`. Compositions with `trim` enabled are shorter when the Room is created and no Participant joins for a while as well as if all the Participants leave the room and join later, because those gaps will be removed. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. | + **VideoLayout** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| An object that describes the video layout of the composition in terms of regions. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. Please, be aware that either video_layout or audio_sources have to be provided to get a valid creation request | ### Return type @@ -111,16 +111,16 @@ Optional parameters are passed through a pointer to a CreateCompositionHookOpts Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **audioSources** | [**optional.Interface of []string**](string.md)| An array of track names from the same group room to merge into the compositions created by the composition hook. Can include zero or more track names. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` includes tracks named `student` as well as `studentTeam`. | - **audioSourcesExcluded** | [**optional.Interface of []string**](string.md)| An array of track names to exclude. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except for those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` excludes `student` as well as `studentTeam`. This parameter can also be empty. | - **enabled** | **optional.Bool**| Whether the composition hook is active. When `true`, the composition hook will be triggered for every completed Group Room in the account. When `false`, the composition hook will never be triggered. | - **format** | **optional.String**| The container format of the media files used by the compositions created by the composition hook. Can be: `mp4` or `webm` and the default is `webm`. If `mp4` or `webm`, `audio_sources` must have one or more tracks and/or a `video_layout` element must contain a valid `video_sources` list, otherwise an error occurs. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 100 characters long and it must be unique within the account. | - **resolution** | **optional.String**| A string that describes the columns (width) and rows (height) of the generated composed video in pixels. Defaults to `640x480`. The string's format is `{width}x{height}` where: * 16 <= `{width}` <= 1280 * 16 <= `{height}` <= 1280 * `{width}` * `{height}` <= 921,600 Typical values are: * HD = `1280x720` * PAL = `1024x576` * VGA = `640x480` * CIF = `320x240` Note that the `resolution` imposes an aspect ratio to the resulting composition. When the original video tracks are constrained by the aspect ratio, they are scaled to fit. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. | - **statusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application on every composition event. If not provided, status callback events will not be dispatched. | - **statusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`. | - **trim** | **optional.Bool**| Whether to clip the intervals where there is no active media in the Compositions triggered by the composition hook. The default is `true`. Compositions with `trim` enabled are shorter when the Room is created and no Participant joins for a while as well as if all the Participants leave the room and join later, because those gaps will be removed. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. | - **videoLayout** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| An object that describes the video layout of the composition hook in terms of regions. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. | + **AudioSources** | [**optional.Interface of []string**](string.md)| An array of track names from the same group room to merge into the compositions created by the composition hook. Can include zero or more track names. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` includes tracks named `student` as well as `studentTeam`. | + **AudioSourcesExcluded** | [**optional.Interface of []string**](string.md)| An array of track names to exclude. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except for those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` excludes `student` as well as `studentTeam`. This parameter can also be empty. | + **Enabled** | **optional.Bool**| Whether the composition hook is active. When `true`, the composition hook will be triggered for every completed Group Room in the account. When `false`, the composition hook will never be triggered. | + **Format** | **optional.String**| The container format of the media files used by the compositions created by the composition hook. Can be: `mp4` or `webm` and the default is `webm`. If `mp4` or `webm`, `audio_sources` must have one or more tracks and/or a `video_layout` element must contain a valid `video_sources` list, otherwise an error occurs. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 100 characters long and it must be unique within the account. | + **Resolution** | **optional.String**| A string that describes the columns (width) and rows (height) of the generated composed video in pixels. Defaults to `640x480`. The string's format is `{width}x{height}` where: * 16 <= `{width}` <= 1280 * 16 <= `{height}` <= 1280 * `{width}` * `{height}` <= 921,600 Typical values are: * HD = `1280x720` * PAL = `1024x576` * VGA = `640x480` * CIF = `320x240` Note that the `resolution` imposes an aspect ratio to the resulting composition. When the original video tracks are constrained by the aspect ratio, they are scaled to fit. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. | + **StatusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application on every composition event. If not provided, status callback events will not be dispatched. | + **StatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`. | + **Trim** | **optional.Bool**| Whether to clip the intervals where there is no active media in the Compositions triggered by the composition hook. The default is `true`. Compositions with `trim` enabled are shorter when the Room is created and no Participant joins for a while as well as if all the Participants leave the room and join later, because those gaps will be removed. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. | + **VideoLayout** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| An object that describes the video layout of the composition hook in terms of regions. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. | ### Return type @@ -161,12 +161,12 @@ Optional parameters are passed through a pointer to a CreateCompositionSettingsO Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **awsCredentialsSid** | **optional.String**| The SID of the stored Credential resource. | - **awsS3Url** | **optional.String**| The URL of the AWS S3 bucket where the compositions should be stored. We only support DNS-compliant URLs like `https://documentation-example-twilio-bucket/compositions`, where `compositions` is the path in which you want the compositions to be stored. This URL accepts only URI-valid characters, as described in the <a href='https://tools.ietf.org/html/rfc3986#section-2'>RFC 3986</a>. | - **awsStorageEnabled** | **optional.Bool**| Whether all compositions should be written to the `aws_s3_url`. When `false`, all compositions are stored in our cloud. | - **encryptionEnabled** | **optional.Bool**| Whether all compositions should be stored in an encrypted form. The default is `false`. | - **encryptionKeySid** | **optional.String**| The SID of the Public Key resource to use for encryption. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource and show to the user in the console | + **AwsCredentialsSid** | **optional.String**| The SID of the stored Credential resource. | + **AwsS3Url** | **optional.String**| The URL of the AWS S3 bucket where the compositions should be stored. We only support DNS-compliant URLs like `https://documentation-example-twilio-bucket/compositions`, where `compositions` is the path in which you want the compositions to be stored. This URL accepts only URI-valid characters, as described in the <a href='https://tools.ietf.org/html/rfc3986#section-2'>RFC 3986</a>. | + **AwsStorageEnabled** | **optional.Bool**| Whether all compositions should be written to the `aws_s3_url`. When `false`, all compositions are stored in our cloud. | + **EncryptionEnabled** | **optional.Bool**| Whether all compositions should be stored in an encrypted form. The default is `false`. | + **EncryptionKeySid** | **optional.String**| The SID of the Public Key resource to use for encryption. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource and show to the user in the console | ### Return type @@ -207,12 +207,12 @@ Optional parameters are passed through a pointer to a CreateRecordingSettingsOpt Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **awsCredentialsSid** | **optional.String**| The SID of the stored Credential resource. | - **awsS3Url** | **optional.String**| The URL of the AWS S3 bucket where the recordings should be stored. We only support DNS-compliant URLs like `https://documentation-example-twilio-bucket/recordings`, where `recordings` is the path in which you want the recordings to be stored. This URL accepts only URI-valid characters, as described in the <a href='https://tools.ietf.org/html/rfc3986#section-2'>RFC 3986</a>. | - **awsStorageEnabled** | **optional.Bool**| Whether all recordings should be written to the `aws_s3_url`. When `false`, all recordings are stored in our cloud. | - **encryptionEnabled** | **optional.Bool**| Whether all recordings should be stored in an encrypted form. The default is `false`. | - **encryptionKeySid** | **optional.String**| The SID of the Public Key resource to use for encryption. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource and be shown to users in the console | + **AwsCredentialsSid** | **optional.String**| The SID of the stored Credential resource. | + **AwsS3Url** | **optional.String**| The URL of the AWS S3 bucket where the recordings should be stored. We only support DNS-compliant URLs like `https://documentation-example-twilio-bucket/recordings`, where `recordings` is the path in which you want the recordings to be stored. This URL accepts only URI-valid characters, as described in the <a href='https://tools.ietf.org/html/rfc3986#section-2'>RFC 3986</a>. | + **AwsStorageEnabled** | **optional.Bool**| Whether all recordings should be written to the `aws_s3_url`. When `false`, all recordings are stored in our cloud. | + **EncryptionEnabled** | **optional.Bool**| Whether all recordings should be stored in an encrypted form. The default is `false`. | + **EncryptionKeySid** | **optional.String**| The SID of the Public Key resource to use for encryption. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource and be shown to users in the console | ### Return type @@ -253,15 +253,15 @@ Optional parameters are passed through a pointer to a CreateRoomOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **enableTurn** | **optional.Bool**| Deprecated, now always considered to be true. | - **maxParticipants** | **optional.Int32**| The maximum number of concurrent Participants allowed in the room. Peer-to-peer rooms can have up to 10 Participants. Small Group rooms can have up to 4 Participants. Group rooms can have up to 50 Participants. | - **mediaRegion** | **optional.String**| The region for the media server in Group Rooms. Can be: one of the [available Media Regions](https://www.twilio.com/docs/video/ip-address-whitelisting#group-rooms-media-servers). ***This feature is not available in `peer-to-peer` rooms.*** | - **recordParticipantsOnConnect** | **optional.Bool**| Whether to start recording when Participants connect. ***This feature is not available in `peer-to-peer` rooms.*** | - **statusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application on every room event. See [Status Callbacks](https://www.twilio.com/docs/video/api/status-callbacks) for more info. | - **statusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be `POST` or `GET`. | - **type_** | **optional.String**| The type of room. Can be: `go`, `peer-to-peer`, `group-small`, or `group`. The default value is `group`. | - **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used as a `room_sid` in place of the resource's `sid` in the URL to address the resource. This value is unique for `in-progress` rooms. SDK clients can use this name to connect to the room. REST API clients can use this name in place of the Room SID to interact with the room as long as the room is `in-progress`. | - **videoCodecs** | [**optional.Interface of []string**](string.md)| An array of the video codecs that are supported when publishing a track in the room. Can be: `VP8` and `H264`. ***This feature is not available in `peer-to-peer` rooms*** | + **EnableTurn** | **optional.Bool**| Deprecated, now always considered to be true. | + **MaxParticipants** | **optional.Int32**| The maximum number of concurrent Participants allowed in the room. Peer-to-peer rooms can have up to 10 Participants. Small Group rooms can have up to 4 Participants. Group rooms can have up to 50 Participants. | + **MediaRegion** | **optional.String**| The region for the media server in Group Rooms. Can be: one of the [available Media Regions](https://www.twilio.com/docs/video/ip-address-whitelisting#group-rooms-media-servers). ***This feature is not available in `peer-to-peer` rooms.*** | + **RecordParticipantsOnConnect** | **optional.Bool**| Whether to start recording when Participants connect. ***This feature is not available in `peer-to-peer` rooms.*** | + **StatusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application on every room event. See [Status Callbacks](https://www.twilio.com/docs/video/api/status-callbacks) for more info. | + **StatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be `POST` or `GET`. | + **Type** | **optional.String**| The type of room. Can be: `go`, `peer-to-peer`, `group-small`, or `group`. The default value is `group`. | + **UniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used as a `room_sid` in place of the resource's `sid` in the URL to address the resource. This value is unique for `in-progress` rooms. SDK clients can use this name to connect to the room. REST API clients can use this name in place of the Room SID to interact with the room as long as the room is `in-progress`. | + **VideoCodecs** | [**optional.Interface of []string**](string.md)| An array of the video codecs that are supported when publishing a track in the room. Can be: `VP8` and `H264`. ***This feature is not available in `peer-to-peer` rooms*** | ### Return type @@ -283,7 +283,7 @@ Name | Type | Description | Notes ## DeleteComposition -> DeleteComposition(ctx, sid) +> DeleteComposition(ctx, Sid) @@ -295,7 +295,7 @@ Delete a Recording Composition resource identified by a Composition SID. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Composition resource to delete. | +**Sid** | **string**| The SID of the Composition resource to delete. | ### Return type @@ -317,7 +317,7 @@ Name | Type | Description | Notes ## DeleteCompositionHook -> DeleteCompositionHook(ctx, sid) +> DeleteCompositionHook(ctx, Sid) @@ -329,7 +329,7 @@ Delete a Recording CompositionHook resource identified by a `CompositionHook SID Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the CompositionHook resource to delete. | +**Sid** | **string**| The SID of the CompositionHook resource to delete. | ### Return type @@ -351,7 +351,7 @@ Name | Type | Description | Notes ## DeleteRecording -> DeleteRecording(ctx, sid) +> DeleteRecording(ctx, Sid) @@ -363,7 +363,7 @@ Delete a Recording resource identified by a Recording SID. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Recording resource to delete. | +**Sid** | **string**| The SID of the Recording resource to delete. | ### Return type @@ -385,7 +385,7 @@ Name | Type | Description | Notes ## DeleteRoomRecording -> DeleteRoomRecording(ctx, roomSid, sid) +> DeleteRoomRecording(ctx, RoomSid, Sid) @@ -395,8 +395,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**roomSid** | **string**| The SID of the room with the RoomRecording resource to delete. | -**sid** | **string**| The SID of the RoomRecording resource to delete. | +**RoomSid** | **string**| The SID of the room with the RoomRecording resource to delete. | +**Sid** | **string**| The SID of the RoomRecording resource to delete. | ### Return type @@ -418,7 +418,7 @@ Name | Type | Description | Notes ## FetchComposition -> VideoV1Composition FetchComposition(ctx, sid) +> VideoV1Composition FetchComposition(ctx, Sid) @@ -430,7 +430,7 @@ Returns a single Composition resource identified by a Composition SID. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Composition resource to fetch. | +**Sid** | **string**| The SID of the Composition resource to fetch. | ### Return type @@ -452,7 +452,7 @@ Name | Type | Description | Notes ## FetchCompositionHook -> VideoV1CompositionHook FetchCompositionHook(ctx, sid) +> VideoV1CompositionHook FetchCompositionHook(ctx, Sid) @@ -464,7 +464,7 @@ Returns a single CompositionHook resource identified by a CompositionHook SID. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the CompositionHook resource to fetch. | +**Sid** | **string**| The SID of the CompositionHook resource to fetch. | ### Return type @@ -514,7 +514,7 @@ This endpoint does not need any parameter. ## FetchRecording -> VideoV1Recording FetchRecording(ctx, sid) +> VideoV1Recording FetchRecording(ctx, Sid) @@ -526,7 +526,7 @@ Returns a single Recording resource identified by a Recording SID. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Recording resource to fetch. | +**Sid** | **string**| The SID of the Recording resource to fetch. | ### Return type @@ -576,7 +576,7 @@ This endpoint does not need any parameter. ## FetchRoom -> VideoV1Room FetchRoom(ctx, sid) +> VideoV1Room FetchRoom(ctx, Sid) @@ -586,7 +586,7 @@ This endpoint does not need any parameter. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Room resource to fetch. | +**Sid** | **string**| The SID of the Room resource to fetch. | ### Return type @@ -608,7 +608,7 @@ Name | Type | Description | Notes ## FetchRoomParticipant -> VideoV1RoomRoomParticipant FetchRoomParticipant(ctx, roomSid, sid) +> VideoV1RoomRoomParticipant FetchRoomParticipant(ctx, RoomSid, Sid) @@ -618,8 +618,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**roomSid** | **string**| The SID of the room with the Participant resource to fetch. | -**sid** | **string**| The SID of the RoomParticipant resource to fetch. | +**RoomSid** | **string**| The SID of the room with the Participant resource to fetch. | +**Sid** | **string**| The SID of the RoomParticipant resource to fetch. | ### Return type @@ -641,7 +641,7 @@ Name | Type | Description | Notes ## FetchRoomParticipantPublishedTrack -> VideoV1RoomRoomParticipantRoomParticipantPublishedTrack FetchRoomParticipantPublishedTrack(ctx, roomSid, participantSid, sid) +> VideoV1RoomRoomParticipantRoomParticipantPublishedTrack FetchRoomParticipantPublishedTrack(ctx, RoomSid, ParticipantSid, Sid) @@ -653,9 +653,9 @@ Returns a single Track resource represented by TrackName or SID. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**roomSid** | **string**| The SID of the Room resource where the Track resource to fetch is published. | -**participantSid** | **string**| The SID of the Participant resource with the published track to fetch. | -**sid** | **string**| The SID of the RoomParticipantPublishedTrack resource to fetch. | +**RoomSid** | **string**| The SID of the Room resource where the Track resource to fetch is published. | +**ParticipantSid** | **string**| The SID of the Participant resource with the published track to fetch. | +**Sid** | **string**| The SID of the RoomParticipantPublishedTrack resource to fetch. | ### Return type @@ -677,7 +677,7 @@ Name | Type | Description | Notes ## FetchRoomParticipantSubscribeRule -> VideoV1RoomRoomParticipantRoomParticipantSubscribeRule FetchRoomParticipantSubscribeRule(ctx, roomSid, participantSid) +> VideoV1RoomRoomParticipantRoomParticipantSubscribeRule FetchRoomParticipantSubscribeRule(ctx, RoomSid, ParticipantSid) @@ -689,8 +689,8 @@ Returns a list of Subscribe Rules for the Participant. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**roomSid** | **string**| The SID of the Room resource where the subscribe rules to fetch apply. | -**participantSid** | **string**| The SID of the Participant resource with the subscribe rules to fetch. | +**RoomSid** | **string**| The SID of the Room resource where the subscribe rules to fetch apply. | +**ParticipantSid** | **string**| The SID of the Participant resource with the subscribe rules to fetch. | ### Return type @@ -712,7 +712,7 @@ Name | Type | Description | Notes ## FetchRoomParticipantSubscribedTrack -> VideoV1RoomRoomParticipantRoomParticipantSubscribedTrack FetchRoomParticipantSubscribedTrack(ctx, roomSid, participantSid, sid) +> VideoV1RoomRoomParticipantRoomParticipantSubscribedTrack FetchRoomParticipantSubscribedTrack(ctx, RoomSid, ParticipantSid, Sid) @@ -724,9 +724,9 @@ Returns a single Track resource represented by `track_sid`. Note: This is one r Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**roomSid** | **string**| The SID of the Room where the Track resource to fetch is subscribed. | -**participantSid** | **string**| The SID of the participant that subscribes to the Track resource to fetch. | -**sid** | **string**| The SID of the RoomParticipantSubscribedTrack resource to fetch. | +**RoomSid** | **string**| The SID of the Room where the Track resource to fetch is subscribed. | +**ParticipantSid** | **string**| The SID of the participant that subscribes to the Track resource to fetch. | +**Sid** | **string**| The SID of the RoomParticipantSubscribedTrack resource to fetch. | ### Return type @@ -748,7 +748,7 @@ Name | Type | Description | Notes ## FetchRoomRecording -> VideoV1RoomRoomRecording FetchRoomRecording(ctx, roomSid, sid) +> VideoV1RoomRoomRecording FetchRoomRecording(ctx, RoomSid, Sid) @@ -758,8 +758,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**roomSid** | **string**| The SID of the Room resource with the recording to fetch. | -**sid** | **string**| The SID of the RoomRecording resource to fetch. | +**RoomSid** | **string**| The SID of the Room resource with the recording to fetch. | +**Sid** | **string**| The SID of the RoomRecording resource to fetch. | ### Return type @@ -781,7 +781,7 @@ Name | Type | Description | Notes ## FetchRoomRecordingRule -> VideoV1RoomRoomRecordingRule FetchRoomRecordingRule(ctx, roomSid) +> VideoV1RoomRoomRecordingRule FetchRoomRecordingRule(ctx, RoomSid) @@ -793,7 +793,7 @@ Returns a list of Recording Rules for the Room. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**roomSid** | **string**| The SID of the Room resource where the recording rules to fetch apply. | +**RoomSid** | **string**| The SID of the Room resource where the recording rules to fetch apply. | ### Return type @@ -836,11 +836,11 @@ Optional parameters are passed through a pointer to a ListCompositionOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | **optional.String**| Read only Composition resources with this status. Can be: `enqueued`, `processing`, `completed`, `deleted`, or `failed`. | - **dateCreatedAfter** | **optional.Time**| Read only Composition resources created on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time with time zone. | - **dateCreatedBefore** | **optional.Time**| Read only Composition resources created before this ISO 8601 date-time with time zone. | - **roomSid** | **optional.String**| Read only Composition resources with this Room SID. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Status** | **optional.String**| Read only Composition resources with this status. Can be: `enqueued`, `processing`, `completed`, `deleted`, or `failed`. | + **DateCreatedAfter** | **optional.Time**| Read only Composition resources created on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time with time zone. | + **DateCreatedBefore** | **optional.Time**| Read only Composition resources created before this ISO 8601 date-time with time zone. | + **RoomSid** | **optional.String**| Read only Composition resources with this Room SID. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -883,11 +883,11 @@ Optional parameters are passed through a pointer to a ListCompositionHookOpts st Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **enabled** | **optional.Bool**| Read only CompositionHook resources with an `enabled` value that matches this parameter. | - **dateCreatedAfter** | **optional.Time**| Read only CompositionHook resources created on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone. | - **dateCreatedBefore** | **optional.Time**| Read only CompositionHook resources created before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone. | - **friendlyName** | **optional.String**| Read only CompositionHook resources with friendly names that match this string. The match is not case sensitive and can include asterisk `*` characters as wildcard match. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Enabled** | **optional.Bool**| Read only CompositionHook resources with an `enabled` value that matches this parameter. | + **DateCreatedAfter** | **optional.Time**| Read only CompositionHook resources created on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone. | + **DateCreatedBefore** | **optional.Time**| Read only CompositionHook resources created before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone. | + **FriendlyName** | **optional.String**| Read only CompositionHook resources with friendly names that match this string. The match is not case sensitive and can include asterisk `*` characters as wildcard match. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -930,13 +930,13 @@ Optional parameters are passed through a pointer to a ListRecordingOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | **optional.String**| Read only the recordings that have this status. Can be: `processing`, `completed`, or `deleted`. | - **sourceSid** | **optional.String**| Read only the recordings that have this `source_sid`. | - **groupingSid** | [**optional.Interface of []string**](string.md)| Read only recordings with this `grouping_sid`, which may include a `participant_sid` and/or a `room_sid`. | - **dateCreatedAfter** | **optional.Time**| Read only recordings that started on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time with time zone. | - **dateCreatedBefore** | **optional.Time**| Read only recordings that started before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time with time zone, given as `YYYY-MM-DDThh:mm:ss+|-hh:mm` or `YYYY-MM-DDThh:mm:ssZ`. | - **mediaType** | **optional.String**| Read only recordings that have this media type. Can be either `audio` or `video`. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Status** | **optional.String**| Read only the recordings that have this status. Can be: `processing`, `completed`, or `deleted`. | + **SourceSid** | **optional.String**| Read only the recordings that have this `source_sid`. | + **GroupingSid** | [**optional.Interface of []string**](string.md)| Read only recordings with this `grouping_sid`, which may include a `participant_sid` and/or a `room_sid`. | + **DateCreatedAfter** | **optional.Time**| Read only recordings that started on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time with time zone. | + **DateCreatedBefore** | **optional.Time**| Read only recordings that started before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time with time zone, given as `YYYY-MM-DDThh:mm:ss+|-hh:mm` or `YYYY-MM-DDThh:mm:ssZ`. | + **MediaType** | **optional.String**| Read only recordings that have this media type. Can be either `audio` or `video`. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -977,11 +977,11 @@ Optional parameters are passed through a pointer to a ListRoomOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | **optional.String**| Read only the rooms with this status. Can be: `in-progress` (default) or `completed` | - **uniqueName** | **optional.String**| Read only rooms with the this `unique_name`. | - **dateCreatedAfter** | **optional.Time**| Read only rooms that started on or after this date, given as `YYYY-MM-DD`. | - **dateCreatedBefore** | **optional.Time**| Read only rooms that started before this date, given as `YYYY-MM-DD`. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Status** | **optional.String**| Read only the rooms with this status. Can be: `in-progress` (default) or `completed` | + **UniqueName** | **optional.String**| Read only rooms with the this `unique_name`. | + **DateCreatedAfter** | **optional.Time**| Read only rooms that started on or after this date, given as `YYYY-MM-DD`. | + **DateCreatedBefore** | **optional.Time**| Read only rooms that started before this date, given as `YYYY-MM-DD`. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1003,7 +1003,7 @@ Name | Type | Description | Notes ## ListRoomParticipant -> VideoV1RoomRoomParticipantReadResponse ListRoomParticipant(ctx, roomSid, optional) +> VideoV1RoomRoomParticipantReadResponse ListRoomParticipant(ctx, RoomSid, optional) @@ -1013,7 +1013,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**roomSid** | **string**| The SID of the room with the Participant resources to read. | +**RoomSid** | **string**| The SID of the room with the Participant resources to read. | **optional** | ***ListRoomParticipantOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1024,11 +1024,11 @@ Optional parameters are passed through a pointer to a ListRoomParticipantOpts st Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | **optional.String**| Read only the participants with this status. Can be: `connected` or `disconnected`. For `in-progress` Rooms the default Status is `connected`, for `completed` Rooms only `disconnected` Participants are returned. | - **identity** | **optional.String**| Read only the Participants with this [User](https://www.twilio.com/docs/chat/rest/user-resource) `identity` value. | - **dateCreatedAfter** | **optional.Time**| Read only Participants that started after this date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#UTC) format. | - **dateCreatedBefore** | **optional.Time**| Read only Participants that started before this date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#UTC) format. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Status** | **optional.String**| Read only the participants with this status. Can be: `connected` or `disconnected`. For `in-progress` Rooms the default Status is `connected`, for `completed` Rooms only `disconnected` Participants are returned. | + **Identity** | **optional.String**| Read only the Participants with this [User](https://www.twilio.com/docs/chat/rest/user-resource) `identity` value. | + **DateCreatedAfter** | **optional.Time**| Read only Participants that started after this date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#UTC) format. | + **DateCreatedBefore** | **optional.Time**| Read only Participants that started before this date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#UTC) format. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1050,7 +1050,7 @@ Name | Type | Description | Notes ## ListRoomParticipantPublishedTrack -> VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse ListRoomParticipantPublishedTrack(ctx, roomSid, participantSid, optional) +> VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse ListRoomParticipantPublishedTrack(ctx, RoomSid, ParticipantSid, optional) @@ -1062,8 +1062,8 @@ Returns a list of tracks associated with a given Participant. Only `currently` P Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**roomSid** | **string**| The SID of the Room resource where the Track resources to read are published. | -**participantSid** | **string**| The SID of the Participant resource with the published tracks to read. | +**RoomSid** | **string**| The SID of the Room resource where the Track resources to read are published. | +**ParticipantSid** | **string**| The SID of the Participant resource with the published tracks to read. | **optional** | ***ListRoomParticipantPublishedTrackOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1075,7 +1075,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1097,7 +1097,7 @@ Name | Type | Description | Notes ## ListRoomParticipantSubscribedTrack -> VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse ListRoomParticipantSubscribedTrack(ctx, roomSid, participantSid, optional) +> VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse ListRoomParticipantSubscribedTrack(ctx, RoomSid, ParticipantSid, optional) @@ -1109,8 +1109,8 @@ Returns a list of tracks that are subscribed for the participant. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**roomSid** | **string**| The SID of the Room resource with the Track resources to read. | -**participantSid** | **string**| The SID of the participant that subscribes to the Track resources to read. | +**RoomSid** | **string**| The SID of the Room resource with the Track resources to read. | +**ParticipantSid** | **string**| The SID of the participant that subscribes to the Track resources to read. | **optional** | ***ListRoomParticipantSubscribedTrackOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1122,7 +1122,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1144,7 +1144,7 @@ Name | Type | Description | Notes ## ListRoomRecording -> VideoV1RoomRoomRecordingReadResponse ListRoomRecording(ctx, roomSid, optional) +> VideoV1RoomRoomRecordingReadResponse ListRoomRecording(ctx, RoomSid, optional) @@ -1154,7 +1154,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**roomSid** | **string**| The SID of the room with the RoomRecording resources to read. | +**RoomSid** | **string**| The SID of the room with the RoomRecording resources to read. | **optional** | ***ListRoomRecordingOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1165,11 +1165,11 @@ Optional parameters are passed through a pointer to a ListRoomRecordingOpts stru Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | **optional.String**| Read only the recordings with this status. Can be: `processing`, `completed`, or `deleted`. | - **sourceSid** | **optional.String**| Read only the recordings that have this `source_sid`. | - **dateCreatedAfter** | **optional.Time**| Read only recordings that started on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone. | - **dateCreatedBefore** | **optional.Time**| Read only Recordings that started before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Status** | **optional.String**| Read only the recordings with this status. Can be: `processing`, `completed`, or `deleted`. | + **SourceSid** | **optional.String**| Read only the recordings that have this `source_sid`. | + **DateCreatedAfter** | **optional.Time**| Read only recordings that started on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone. | + **DateCreatedBefore** | **optional.Time**| Read only Recordings that started before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -1191,7 +1191,7 @@ Name | Type | Description | Notes ## UpdateCompositionHook -> VideoV1CompositionHook UpdateCompositionHook(ctx, sid, optional) +> VideoV1CompositionHook UpdateCompositionHook(ctx, Sid, optional) @@ -1201,7 +1201,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the CompositionHook resource to update. | +**Sid** | **string**| The SID of the CompositionHook resource to update. | **optional** | ***UpdateCompositionHookOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1212,16 +1212,16 @@ Optional parameters are passed through a pointer to a UpdateCompositionHookOpts Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **audioSources** | [**optional.Interface of []string**](string.md)| An array of track names from the same group room to merge into the compositions created by the composition hook. Can include zero or more track names. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` includes tracks named `student` as well as `studentTeam`. | - **audioSourcesExcluded** | [**optional.Interface of []string**](string.md)| An array of track names to exclude. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except for those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` excludes `student` as well as `studentTeam`. This parameter can also be empty. | - **enabled** | **optional.Bool**| Whether the composition hook is active. When `true`, the composition hook will be triggered for every completed Group Room in the account. When `false`, the composition hook never triggers. | - **format** | **optional.String**| The container format of the media files used by the compositions created by the composition hook. Can be: `mp4` or `webm` and the default is `webm`. If `mp4` or `webm`, `audio_sources` must have one or more tracks and/or a `video_layout` element must contain a valid `video_sources` list, otherwise an error occurs. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 100 characters long and it must be unique within the account. | - **resolution** | **optional.String**| A string that describes the columns (width) and rows (height) of the generated composed video in pixels. Defaults to `640x480`. The string's format is `{width}x{height}` where: * 16 <= `{width}` <= 1280 * 16 <= `{height}` <= 1280 * `{width}` * `{height}` <= 921,600 Typical values are: * HD = `1280x720` * PAL = `1024x576` * VGA = `640x480` * CIF = `320x240` Note that the `resolution` imposes an aspect ratio to the resulting composition. When the original video tracks are constrained by the aspect ratio, they are scaled to fit. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. | - **statusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application on every composition event. If not provided, status callback events will not be dispatched. | - **statusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`. | - **trim** | **optional.Bool**| Whether to clip the intervals where there is no active media in the compositions triggered by the composition hook. The default is `true`. Compositions with `trim` enabled are shorter when the Room is created and no Participant joins for a while as well as if all the Participants leave the room and join later, because those gaps will be removed. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. | - **videoLayout** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON object that describes the video layout of the composition hook in terms of regions. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. | + **AudioSources** | [**optional.Interface of []string**](string.md)| An array of track names from the same group room to merge into the compositions created by the composition hook. Can include zero or more track names. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` includes tracks named `student` as well as `studentTeam`. | + **AudioSourcesExcluded** | [**optional.Interface of []string**](string.md)| An array of track names to exclude. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except for those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` excludes `student` as well as `studentTeam`. This parameter can also be empty. | + **Enabled** | **optional.Bool**| Whether the composition hook is active. When `true`, the composition hook will be triggered for every completed Group Room in the account. When `false`, the composition hook never triggers. | + **Format** | **optional.String**| The container format of the media files used by the compositions created by the composition hook. Can be: `mp4` or `webm` and the default is `webm`. If `mp4` or `webm`, `audio_sources` must have one or more tracks and/or a `video_layout` element must contain a valid `video_sources` list, otherwise an error occurs. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It can be up to 100 characters long and it must be unique within the account. | + **Resolution** | **optional.String**| A string that describes the columns (width) and rows (height) of the generated composed video in pixels. Defaults to `640x480`. The string's format is `{width}x{height}` where: * 16 <= `{width}` <= 1280 * 16 <= `{height}` <= 1280 * `{width}` * `{height}` <= 921,600 Typical values are: * HD = `1280x720` * PAL = `1024x576` * VGA = `640x480` * CIF = `320x240` Note that the `resolution` imposes an aspect ratio to the resulting composition. When the original video tracks are constrained by the aspect ratio, they are scaled to fit. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. | + **StatusCallback** | **optional.String**| The URL we should call using the `status_callback_method` to send status information to your application on every composition event. If not provided, status callback events will not be dispatched. | + **StatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`. | + **Trim** | **optional.Bool**| Whether to clip the intervals where there is no active media in the compositions triggered by the composition hook. The default is `true`. Compositions with `trim` enabled are shorter when the Room is created and no Participant joins for a while as well as if all the Participants leave the room and join later, because those gaps will be removed. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. | + **VideoLayout** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON object that describes the video layout of the composition hook in terms of regions. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. | ### Return type @@ -1243,7 +1243,7 @@ Name | Type | Description | Notes ## UpdateRoom -> VideoV1Room UpdateRoom(ctx, sid, optional) +> VideoV1Room UpdateRoom(ctx, Sid, optional) @@ -1253,7 +1253,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Room resource to update. | +**Sid** | **string**| The SID of the Room resource to update. | **optional** | ***UpdateRoomOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1264,7 +1264,7 @@ Optional parameters are passed through a pointer to a UpdateRoomOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | **optional.String**| The new status of the resource. Set to `completed` to end the room. | + **Status** | **optional.String**| The new status of the resource. Set to `completed` to end the room. | ### Return type @@ -1286,7 +1286,7 @@ Name | Type | Description | Notes ## UpdateRoomParticipant -> VideoV1RoomRoomParticipant UpdateRoomParticipant(ctx, roomSid, sid, optional) +> VideoV1RoomRoomParticipant UpdateRoomParticipant(ctx, RoomSid, Sid, optional) @@ -1296,8 +1296,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**roomSid** | **string**| The SID of the room with the participant to update. | -**sid** | **string**| The SID of the RoomParticipant resource to update. | +**RoomSid** | **string**| The SID of the room with the participant to update. | +**Sid** | **string**| The SID of the RoomParticipant resource to update. | **optional** | ***UpdateRoomParticipantOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1309,7 +1309,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | **optional.String**| The new status of the resource. Can be: `connected` or `disconnected`. For `in-progress` Rooms the default Status is `connected`, for `completed` Rooms only `disconnected` Participants are returned. | + **Status** | **optional.String**| The new status of the resource. Can be: `connected` or `disconnected`. For `in-progress` Rooms the default Status is `connected`, for `completed` Rooms only `disconnected` Participants are returned. | ### Return type @@ -1331,7 +1331,7 @@ Name | Type | Description | Notes ## UpdateRoomParticipantSubscribeRule -> VideoV1RoomRoomParticipantRoomParticipantSubscribeRule UpdateRoomParticipantSubscribeRule(ctx, roomSid, participantSid, optional) +> VideoV1RoomRoomParticipantRoomParticipantSubscribeRule UpdateRoomParticipantSubscribeRule(ctx, RoomSid, ParticipantSid, optional) @@ -1343,8 +1343,8 @@ Update the Subscribe Rules for the Participant Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**roomSid** | **string**| The SID of the Room resource where the subscribe rules to update apply. | -**participantSid** | **string**| The SID of the Participant resource to update the Subscribe Rules. | +**RoomSid** | **string**| The SID of the Room resource where the subscribe rules to update apply. | +**ParticipantSid** | **string**| The SID of the Participant resource to update the Subscribe Rules. | **optional** | ***UpdateRoomParticipantSubscribeRuleOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1356,7 +1356,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **rules** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON-encoded array of subscribe rules. See the [Specifying Subscribe Rules](https://www.twilio.com/docs/video/api/track-subscriptions#specifying-sr) section for further information. | + **Rules** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON-encoded array of subscribe rules. See the [Specifying Subscribe Rules](https://www.twilio.com/docs/video/api/track-subscriptions#specifying-sr) section for further information. | ### Return type @@ -1378,7 +1378,7 @@ Name | Type | Description | Notes ## UpdateRoomRecordingRule -> VideoV1RoomRoomRecordingRule UpdateRoomRecordingRule(ctx, roomSid, optional) +> VideoV1RoomRoomRecordingRule UpdateRoomRecordingRule(ctx, RoomSid, optional) @@ -1390,7 +1390,7 @@ Update the Recording Rules for the Room Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**roomSid** | **string**| The SID of the Room resource where the recording rules to update apply. | +**RoomSid** | **string**| The SID of the Room resource where the recording rules to update apply. | **optional** | ***UpdateRoomRecordingRuleOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1401,7 +1401,7 @@ Optional parameters are passed through a pointer to a UpdateRoomRecordingRuleOpt Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **rules** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON-encoded array of recording rules. | + **Rules** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON-encoded array of recording rules. | ### Return type diff --git a/rest/video/v1/model_video_v1_composition.go b/rest/video/v1/model_video_v1_composition.go index e699383e5..f8c8f441b 100644 --- a/rest/video/v1/model_video_v1_composition.go +++ b/rest/video/v1/model_video_v1_composition.go @@ -14,22 +14,22 @@ import ( ) // VideoV1Composition struct for VideoV1Composition type VideoV1Composition struct { - AccountSid string `json:"account_sid,omitempty"` - AudioSources []string `json:"audio_sources,omitempty"` - AudioSourcesExcluded []string `json:"audio_sources_excluded,omitempty"` - Bitrate int32 `json:"bitrate,omitempty"` - DateCompleted *time.Time `json:"date_completed,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateDeleted *time.Time `json:"date_deleted,omitempty"` - Duration int32 `json:"duration,omitempty"` - Format string `json:"format,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Resolution string `json:"resolution,omitempty"` - RoomSid string `json:"room_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Size int32 `json:"size,omitempty"` - Status string `json:"status,omitempty"` - Trim bool `json:"trim,omitempty"` - Url string `json:"url,omitempty"` - VideoLayout map[string]interface{} `json:"video_layout,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AudioSources []string `json:"AudioSources,omitempty"` + AudioSourcesExcluded []string `json:"AudioSourcesExcluded,omitempty"` + Bitrate int32 `json:"Bitrate,omitempty"` + DateCompleted *time.Time `json:"DateCompleted,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateDeleted *time.Time `json:"DateDeleted,omitempty"` + Duration int32 `json:"Duration,omitempty"` + Format string `json:"Format,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Resolution string `json:"Resolution,omitempty"` + RoomSid string `json:"RoomSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Size int32 `json:"Size,omitempty"` + Status string `json:"Status,omitempty"` + Trim bool `json:"Trim,omitempty"` + Url string `json:"Url,omitempty"` + VideoLayout map[string]interface{} `json:"VideoLayout,omitempty"` } diff --git a/rest/video/v1/model_video_v1_composition_hook.go b/rest/video/v1/model_video_v1_composition_hook.go index 6c7f6a4ab..7fc6469b8 100644 --- a/rest/video/v1/model_video_v1_composition_hook.go +++ b/rest/video/v1/model_video_v1_composition_hook.go @@ -14,19 +14,19 @@ import ( ) // VideoV1CompositionHook struct for VideoV1CompositionHook type VideoV1CompositionHook struct { - AccountSid string `json:"account_sid,omitempty"` - AudioSources []string `json:"audio_sources,omitempty"` - AudioSourcesExcluded []string `json:"audio_sources_excluded,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated *time.Time `json:"date_updated,omitempty"` - Enabled bool `json:"enabled,omitempty"` - Format string `json:"format,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Resolution string `json:"resolution,omitempty"` - Sid string `json:"sid,omitempty"` - StatusCallback *string `json:"status_callback,omitempty"` - StatusCallbackMethod string `json:"status_callback_method,omitempty"` - Trim bool `json:"trim,omitempty"` - Url string `json:"url,omitempty"` - VideoLayout map[string]interface{} `json:"video_layout,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AudioSources []string `json:"AudioSources,omitempty"` + AudioSourcesExcluded []string `json:"AudioSourcesExcluded,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + Enabled bool `json:"Enabled,omitempty"` + Format string `json:"Format,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Resolution string `json:"Resolution,omitempty"` + Sid string `json:"Sid,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod string `json:"StatusCallbackMethod,omitempty"` + Trim bool `json:"Trim,omitempty"` + Url string `json:"Url,omitempty"` + VideoLayout map[string]interface{} `json:"VideoLayout,omitempty"` } diff --git a/rest/video/v1/model_video_v1_composition_hook_read_response.go b/rest/video/v1/model_video_v1_composition_hook_read_response.go index 20354b23e..cd6d32cda 100644 --- a/rest/video/v1/model_video_v1_composition_hook_read_response.go +++ b/rest/video/v1/model_video_v1_composition_hook_read_response.go @@ -11,6 +11,6 @@ package openapi // VideoV1CompositionHookReadResponse struct for VideoV1CompositionHookReadResponse type VideoV1CompositionHookReadResponse struct { - CompositionHooks []VideoV1CompositionHook `json:"composition_hooks,omitempty"` - Meta VideoV1CompositionHookReadResponseMeta `json:"meta,omitempty"` + CompositionHooks []VideoV1CompositionHook `json:"CompositionHooks,omitempty"` + Meta VideoV1CompositionHookReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/video/v1/model_video_v1_composition_hook_read_response_meta.go b/rest/video/v1/model_video_v1_composition_hook_read_response_meta.go index 508879d9c..f8af4883c 100644 --- a/rest/video/v1/model_video_v1_composition_hook_read_response_meta.go +++ b/rest/video/v1/model_video_v1_composition_hook_read_response_meta.go @@ -11,11 +11,11 @@ package openapi // VideoV1CompositionHookReadResponseMeta struct for VideoV1CompositionHookReadResponseMeta type VideoV1CompositionHookReadResponseMeta struct { - FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` - NextPageUrl string `json:"next_page_url,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUrl string `json:"previous_page_url,omitempty"` - Url string `json:"url,omitempty"` + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/video/v1/model_video_v1_composition_read_response.go b/rest/video/v1/model_video_v1_composition_read_response.go index 5c97d836d..cb771d0b4 100644 --- a/rest/video/v1/model_video_v1_composition_read_response.go +++ b/rest/video/v1/model_video_v1_composition_read_response.go @@ -11,6 +11,6 @@ package openapi // VideoV1CompositionReadResponse struct for VideoV1CompositionReadResponse type VideoV1CompositionReadResponse struct { - Compositions []VideoV1Composition `json:"compositions,omitempty"` - Meta VideoV1CompositionHookReadResponseMeta `json:"meta,omitempty"` + Compositions []VideoV1Composition `json:"Compositions,omitempty"` + Meta VideoV1CompositionHookReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/video/v1/model_video_v1_composition_settings.go b/rest/video/v1/model_video_v1_composition_settings.go index b695fde62..e2912cfcd 100644 --- a/rest/video/v1/model_video_v1_composition_settings.go +++ b/rest/video/v1/model_video_v1_composition_settings.go @@ -11,12 +11,12 @@ package openapi // VideoV1CompositionSettings struct for VideoV1CompositionSettings type VideoV1CompositionSettings struct { - AccountSid string `json:"account_sid,omitempty"` - AwsCredentialsSid string `json:"aws_credentials_sid,omitempty"` - AwsS3Url string `json:"aws_s3_url,omitempty"` - AwsStorageEnabled bool `json:"aws_storage_enabled,omitempty"` - EncryptionEnabled bool `json:"encryption_enabled,omitempty"` - EncryptionKeySid string `json:"encryption_key_sid,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AwsCredentialsSid string `json:"AwsCredentialsSid,omitempty"` + AwsS3Url string `json:"AwsS3Url,omitempty"` + AwsStorageEnabled bool `json:"AwsStorageEnabled,omitempty"` + EncryptionEnabled bool `json:"EncryptionEnabled,omitempty"` + EncryptionKeySid string `json:"EncryptionKeySid,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/video/v1/model_video_v1_recording.go b/rest/video/v1/model_video_v1_recording.go index 6693cf4d6..32cba87fb 100644 --- a/rest/video/v1/model_video_v1_recording.go +++ b/rest/video/v1/model_video_v1_recording.go @@ -14,19 +14,19 @@ import ( ) // VideoV1Recording struct for VideoV1Recording type VideoV1Recording struct { - AccountSid string `json:"account_sid,omitempty"` - Codec string `json:"codec,omitempty"` - ContainerFormat string `json:"container_format,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - Duration *int32 `json:"duration,omitempty"` - GroupingSids map[string]interface{} `json:"grouping_sids,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Offset int32 `json:"offset,omitempty"` - Sid string `json:"sid,omitempty"` - Size int32 `json:"size,omitempty"` - SourceSid string `json:"source_sid,omitempty"` - Status string `json:"status,omitempty"` - TrackName string `json:"track_name,omitempty"` - Type string `json:"type,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Codec string `json:"Codec,omitempty"` + ContainerFormat string `json:"ContainerFormat,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + Duration *int32 `json:"Duration,omitempty"` + GroupingSids map[string]interface{} `json:"GroupingSids,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Offset int32 `json:"Offset,omitempty"` + Sid string `json:"Sid,omitempty"` + Size int32 `json:"Size,omitempty"` + SourceSid string `json:"SourceSid,omitempty"` + Status string `json:"Status,omitempty"` + TrackName string `json:"TrackName,omitempty"` + Type string `json:"Type,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/video/v1/model_video_v1_recording_read_response.go b/rest/video/v1/model_video_v1_recording_read_response.go index f63dc95af..4499a9766 100644 --- a/rest/video/v1/model_video_v1_recording_read_response.go +++ b/rest/video/v1/model_video_v1_recording_read_response.go @@ -11,6 +11,6 @@ package openapi // VideoV1RecordingReadResponse struct for VideoV1RecordingReadResponse type VideoV1RecordingReadResponse struct { - Meta VideoV1CompositionHookReadResponseMeta `json:"meta,omitempty"` - Recordings []VideoV1Recording `json:"recordings,omitempty"` + Meta VideoV1CompositionHookReadResponseMeta `json:"Meta,omitempty"` + Recordings []VideoV1Recording `json:"Recordings,omitempty"` } diff --git a/rest/video/v1/model_video_v1_recording_settings.go b/rest/video/v1/model_video_v1_recording_settings.go index dca19cbf7..1c890f071 100644 --- a/rest/video/v1/model_video_v1_recording_settings.go +++ b/rest/video/v1/model_video_v1_recording_settings.go @@ -11,12 +11,12 @@ package openapi // VideoV1RecordingSettings struct for VideoV1RecordingSettings type VideoV1RecordingSettings struct { - AccountSid string `json:"account_sid,omitempty"` - AwsCredentialsSid string `json:"aws_credentials_sid,omitempty"` - AwsS3Url string `json:"aws_s3_url,omitempty"` - AwsStorageEnabled bool `json:"aws_storage_enabled,omitempty"` - EncryptionEnabled bool `json:"encryption_enabled,omitempty"` - EncryptionKeySid string `json:"encryption_key_sid,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + AwsCredentialsSid string `json:"AwsCredentialsSid,omitempty"` + AwsS3Url string `json:"AwsS3Url,omitempty"` + AwsStorageEnabled bool `json:"AwsStorageEnabled,omitempty"` + EncryptionEnabled bool `json:"EncryptionEnabled,omitempty"` + EncryptionKeySid string `json:"EncryptionKeySid,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/video/v1/model_video_v1_room.go b/rest/video/v1/model_video_v1_room.go index 1a2114814..c2c44057f 100644 --- a/rest/video/v1/model_video_v1_room.go +++ b/rest/video/v1/model_video_v1_room.go @@ -14,22 +14,22 @@ import ( ) // VideoV1Room struct for VideoV1Room type VideoV1Room struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Duration *int32 `json:"duration,omitempty"` - EnableTurn bool `json:"enable_turn,omitempty"` - EndTime time.Time `json:"end_time,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - MaxParticipants int32 `json:"max_participants,omitempty"` - MediaRegion string `json:"media_region,omitempty"` - RecordParticipantsOnConnect bool `json:"record_participants_on_connect,omitempty"` - Sid string `json:"sid,omitempty"` - Status string `json:"status,omitempty"` - StatusCallback string `json:"status_callback,omitempty"` - StatusCallbackMethod string `json:"status_callback_method,omitempty"` - Type string `json:"type,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` - VideoCodecs []string `json:"video_codecs,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Duration *int32 `json:"Duration,omitempty"` + EnableTurn bool `json:"EnableTurn,omitempty"` + EndTime time.Time `json:"EndTime,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + MaxParticipants int32 `json:"MaxParticipants,omitempty"` + MediaRegion string `json:"MediaRegion,omitempty"` + RecordParticipantsOnConnect bool `json:"RecordParticipantsOnConnect,omitempty"` + Sid string `json:"Sid,omitempty"` + Status string `json:"Status,omitempty"` + StatusCallback string `json:"StatusCallback,omitempty"` + StatusCallbackMethod string `json:"StatusCallbackMethod,omitempty"` + Type string `json:"Type,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` + VideoCodecs []string `json:"VideoCodecs,omitempty"` } diff --git a/rest/video/v1/model_video_v1_room_read_response.go b/rest/video/v1/model_video_v1_room_read_response.go index fd3b63d9b..2810332fc 100644 --- a/rest/video/v1/model_video_v1_room_read_response.go +++ b/rest/video/v1/model_video_v1_room_read_response.go @@ -11,6 +11,6 @@ package openapi // VideoV1RoomReadResponse struct for VideoV1RoomReadResponse type VideoV1RoomReadResponse struct { - Meta VideoV1CompositionHookReadResponseMeta `json:"meta,omitempty"` - Rooms []VideoV1Room `json:"rooms,omitempty"` + Meta VideoV1CompositionHookReadResponseMeta `json:"Meta,omitempty"` + Rooms []VideoV1Room `json:"Rooms,omitempty"` } diff --git a/rest/video/v1/model_video_v1_room_room_participant.go b/rest/video/v1/model_video_v1_room_room_participant.go index 0143cc465..6f3cc1c84 100644 --- a/rest/video/v1/model_video_v1_room_room_participant.go +++ b/rest/video/v1/model_video_v1_room_room_participant.go @@ -14,16 +14,16 @@ import ( ) // VideoV1RoomRoomParticipant struct for VideoV1RoomRoomParticipant type VideoV1RoomRoomParticipant struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Duration *int32 `json:"duration,omitempty"` - EndTime time.Time `json:"end_time,omitempty"` - Identity string `json:"identity,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - RoomSid string `json:"room_sid,omitempty"` - Sid string `json:"sid,omitempty"` - StartTime time.Time `json:"start_time,omitempty"` - Status string `json:"status,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Duration *int32 `json:"Duration,omitempty"` + EndTime time.Time `json:"EndTime,omitempty"` + Identity string `json:"Identity,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + RoomSid string `json:"RoomSid,omitempty"` + Sid string `json:"Sid,omitempty"` + StartTime time.Time `json:"StartTime,omitempty"` + Status string `json:"Status,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/video/v1/model_video_v1_room_room_participant_read_response.go b/rest/video/v1/model_video_v1_room_room_participant_read_response.go index 11f059a81..82a902eff 100644 --- a/rest/video/v1/model_video_v1_room_room_participant_read_response.go +++ b/rest/video/v1/model_video_v1_room_room_participant_read_response.go @@ -11,6 +11,6 @@ package openapi // VideoV1RoomRoomParticipantReadResponse struct for VideoV1RoomRoomParticipantReadResponse type VideoV1RoomRoomParticipantReadResponse struct { - Meta VideoV1CompositionHookReadResponseMeta `json:"meta,omitempty"` - Participants []VideoV1RoomRoomParticipant `json:"participants,omitempty"` + Meta VideoV1CompositionHookReadResponseMeta `json:"Meta,omitempty"` + Participants []VideoV1RoomRoomParticipant `json:"Participants,omitempty"` } diff --git a/rest/video/v1/model_video_v1_room_room_participant_room_participant_published_track.go b/rest/video/v1/model_video_v1_room_room_participant_room_participant_published_track.go index d597446ac..f57db197b 100644 --- a/rest/video/v1/model_video_v1_room_room_participant_room_participant_published_track.go +++ b/rest/video/v1/model_video_v1_room_room_participant_room_participant_published_track.go @@ -14,13 +14,13 @@ import ( ) // VideoV1RoomRoomParticipantRoomParticipantPublishedTrack struct for VideoV1RoomRoomParticipantRoomParticipantPublishedTrack type VideoV1RoomRoomParticipantRoomParticipantPublishedTrack struct { - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Enabled bool `json:"enabled,omitempty"` - Kind string `json:"kind,omitempty"` - Name string `json:"name,omitempty"` - ParticipantSid string `json:"participant_sid,omitempty"` - RoomSid string `json:"room_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Enabled bool `json:"Enabled,omitempty"` + Kind string `json:"Kind,omitempty"` + Name string `json:"Name,omitempty"` + ParticipantSid string `json:"ParticipantSid,omitempty"` + RoomSid string `json:"RoomSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/video/v1/model_video_v1_room_room_participant_room_participant_published_track_read_response.go b/rest/video/v1/model_video_v1_room_room_participant_room_participant_published_track_read_response.go index 44f8a3a8c..8959cac0b 100644 --- a/rest/video/v1/model_video_v1_room_room_participant_room_participant_published_track_read_response.go +++ b/rest/video/v1/model_video_v1_room_room_participant_room_participant_published_track_read_response.go @@ -11,6 +11,6 @@ package openapi // VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse struct for VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse type VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse struct { - Meta VideoV1CompositionHookReadResponseMeta `json:"meta,omitempty"` - PublishedTracks []VideoV1RoomRoomParticipantRoomParticipantPublishedTrack `json:"published_tracks,omitempty"` + Meta VideoV1CompositionHookReadResponseMeta `json:"Meta,omitempty"` + PublishedTracks []VideoV1RoomRoomParticipantRoomParticipantPublishedTrack `json:"PublishedTracks,omitempty"` } diff --git a/rest/video/v1/model_video_v1_room_room_participant_room_participant_subscribe_rule.go b/rest/video/v1/model_video_v1_room_room_participant_room_participant_subscribe_rule.go index af42e7b10..45a106e37 100644 --- a/rest/video/v1/model_video_v1_room_room_participant_room_participant_subscribe_rule.go +++ b/rest/video/v1/model_video_v1_room_room_participant_room_participant_subscribe_rule.go @@ -14,9 +14,9 @@ import ( ) // VideoV1RoomRoomParticipantRoomParticipantSubscribeRule struct for VideoV1RoomRoomParticipantRoomParticipantSubscribeRule type VideoV1RoomRoomParticipantRoomParticipantSubscribeRule struct { - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - ParticipantSid string `json:"participant_sid,omitempty"` - RoomSid string `json:"room_sid,omitempty"` - Rules []map[string]interface{} `json:"rules,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + ParticipantSid string `json:"ParticipantSid,omitempty"` + RoomSid string `json:"RoomSid,omitempty"` + Rules []map[string]interface{} `json:"Rules,omitempty"` } diff --git a/rest/video/v1/model_video_v1_room_room_participant_room_participant_subscribed_track.go b/rest/video/v1/model_video_v1_room_room_participant_room_participant_subscribed_track.go index c95dcc7ce..e37cbb28c 100644 --- a/rest/video/v1/model_video_v1_room_room_participant_room_participant_subscribed_track.go +++ b/rest/video/v1/model_video_v1_room_room_participant_room_participant_subscribed_track.go @@ -14,14 +14,14 @@ import ( ) // VideoV1RoomRoomParticipantRoomParticipantSubscribedTrack struct for VideoV1RoomRoomParticipantRoomParticipantSubscribedTrack type VideoV1RoomRoomParticipantRoomParticipantSubscribedTrack struct { - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Enabled bool `json:"enabled,omitempty"` - Kind string `json:"kind,omitempty"` - Name string `json:"name,omitempty"` - ParticipantSid string `json:"participant_sid,omitempty"` - PublisherSid string `json:"publisher_sid,omitempty"` - RoomSid string `json:"room_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Enabled bool `json:"Enabled,omitempty"` + Kind string `json:"Kind,omitempty"` + Name string `json:"Name,omitempty"` + ParticipantSid string `json:"ParticipantSid,omitempty"` + PublisherSid string `json:"PublisherSid,omitempty"` + RoomSid string `json:"RoomSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/video/v1/model_video_v1_room_room_participant_room_participant_subscribed_track_read_response.go b/rest/video/v1/model_video_v1_room_room_participant_room_participant_subscribed_track_read_response.go index 03c0b34ec..e5c1825d4 100644 --- a/rest/video/v1/model_video_v1_room_room_participant_room_participant_subscribed_track_read_response.go +++ b/rest/video/v1/model_video_v1_room_room_participant_room_participant_subscribed_track_read_response.go @@ -11,6 +11,6 @@ package openapi // VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse struct for VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse type VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse struct { - Meta VideoV1CompositionHookReadResponseMeta `json:"meta,omitempty"` - SubscribedTracks []VideoV1RoomRoomParticipantRoomParticipantSubscribedTrack `json:"subscribed_tracks,omitempty"` + Meta VideoV1CompositionHookReadResponseMeta `json:"Meta,omitempty"` + SubscribedTracks []VideoV1RoomRoomParticipantRoomParticipantSubscribedTrack `json:"SubscribedTracks,omitempty"` } diff --git a/rest/video/v1/model_video_v1_room_room_recording.go b/rest/video/v1/model_video_v1_room_room_recording.go index 9a1ad5dcf..bbbdcd500 100644 --- a/rest/video/v1/model_video_v1_room_room_recording.go +++ b/rest/video/v1/model_video_v1_room_room_recording.go @@ -14,20 +14,20 @@ import ( ) // VideoV1RoomRoomRecording struct for VideoV1RoomRoomRecording type VideoV1RoomRoomRecording struct { - AccountSid string `json:"account_sid,omitempty"` - Codec string `json:"codec,omitempty"` - ContainerFormat string `json:"container_format,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - Duration *int32 `json:"duration,omitempty"` - GroupingSids map[string]interface{} `json:"grouping_sids,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Offset int32 `json:"offset,omitempty"` - RoomSid string `json:"room_sid,omitempty"` - Sid string `json:"sid,omitempty"` - Size int32 `json:"size,omitempty"` - SourceSid string `json:"source_sid,omitempty"` - Status string `json:"status,omitempty"` - TrackName string `json:"track_name,omitempty"` - Type string `json:"type,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Codec string `json:"Codec,omitempty"` + ContainerFormat string `json:"ContainerFormat,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + Duration *int32 `json:"Duration,omitempty"` + GroupingSids map[string]interface{} `json:"GroupingSids,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Offset int32 `json:"Offset,omitempty"` + RoomSid string `json:"RoomSid,omitempty"` + Sid string `json:"Sid,omitempty"` + Size int32 `json:"Size,omitempty"` + SourceSid string `json:"SourceSid,omitempty"` + Status string `json:"Status,omitempty"` + TrackName string `json:"TrackName,omitempty"` + Type string `json:"Type,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/video/v1/model_video_v1_room_room_recording_read_response.go b/rest/video/v1/model_video_v1_room_room_recording_read_response.go index e9f13dfa6..a3519d8df 100644 --- a/rest/video/v1/model_video_v1_room_room_recording_read_response.go +++ b/rest/video/v1/model_video_v1_room_room_recording_read_response.go @@ -11,6 +11,6 @@ package openapi // VideoV1RoomRoomRecordingReadResponse struct for VideoV1RoomRoomRecordingReadResponse type VideoV1RoomRoomRecordingReadResponse struct { - Meta VideoV1CompositionHookReadResponseMeta `json:"meta,omitempty"` - Recordings []VideoV1RoomRoomRecording `json:"recordings,omitempty"` + Meta VideoV1CompositionHookReadResponseMeta `json:"Meta,omitempty"` + Recordings []VideoV1RoomRoomRecording `json:"Recordings,omitempty"` } diff --git a/rest/video/v1/model_video_v1_room_room_recording_rule.go b/rest/video/v1/model_video_v1_room_room_recording_rule.go index b68708b52..d2a4ef740 100644 --- a/rest/video/v1/model_video_v1_room_room_recording_rule.go +++ b/rest/video/v1/model_video_v1_room_room_recording_rule.go @@ -14,8 +14,8 @@ import ( ) // VideoV1RoomRoomRecordingRule struct for VideoV1RoomRoomRecordingRule type VideoV1RoomRoomRecordingRule struct { - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - RoomSid string `json:"room_sid,omitempty"` - Rules []map[string]interface{} `json:"rules,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + RoomSid string `json:"RoomSid,omitempty"` + Rules []map[string]interface{} `json:"Rules,omitempty"` } diff --git a/rest/voice/v1/api_default.go b/rest/voice/v1/api_default.go index 05aebfd3e..4e418ff58 100644 --- a/rest/voice/v1/api_default.go +++ b/rest/voice/v1/api_default.go @@ -15,6 +15,7 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" ) type DefaultApiService struct { @@ -60,38 +61,39 @@ CreateByocTrunk Method for CreateByocTrunk func (c *DefaultApiService) CreateByocTrunk(params *CreateByocTrunkParams) (*VoiceV1ByocTrunk, error) { path := "/v1/ByocTrunks" + data := url.Values{} headers := 0 if params != nil && params.CnamLookupEnabled != nil { - data.Set("CnamLookupEnabled", string(*params.CnamLookupEnabled)) + data.Set("CnamLookupEnabled", fmt.Sprint(*params.CnamLookupEnabled)) } if params != nil && params.ConnectionPolicySid != nil { - data.Set("ConnectionPolicySid", *params.ConnectionPolicySid) + data.Set("ConnectionPolicySid", *params.ConnectionPolicySid) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.FromDomainSid != nil { - data.Set("FromDomainSid", *params.FromDomainSid) + data.Set("FromDomainSid", *params.FromDomainSid) } if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) } if params != nil && params.StatusCallbackUrl != nil { - data.Set("StatusCallbackUrl", *params.StatusCallbackUrl) + data.Set("StatusCallbackUrl", *params.StatusCallbackUrl) } if params != nil && params.VoiceFallbackMethod != nil { - data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) } if params != nil && params.VoiceFallbackUrl != nil { - data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) } if params != nil && params.VoiceMethod != nil { - data.Set("VoiceMethod", *params.VoiceMethod) + data.Set("VoiceMethod", *params.VoiceMethod) } if params != nil && params.VoiceUrl != nil { - data.Set("VoiceUrl", *params.VoiceUrl) + data.Set("VoiceUrl", *params.VoiceUrl) } @@ -123,11 +125,12 @@ CreateConnectionPolicy Method for CreateConnectionPolicy func (c *DefaultApiService) CreateConnectionPolicy(params *CreateConnectionPolicyParams) (*VoiceV1ConnectionPolicy, error) { path := "/v1/ConnectionPolicies" + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -156,7 +159,7 @@ type CreateConnectionPolicyTargetParams struct { /* CreateConnectionPolicyTarget Method for CreateConnectionPolicyTarget - * @param connectionPolicySid The SID of the Connection Policy that owns the Target. + * @param ConnectionPolicySid The SID of the Connection Policy that owns the Target. * @param optional nil or *CreateConnectionPolicyTargetOpts - Optional Parameters: * @param "Enabled" (bool) - Whether the Target is enabled. The default is `true`. * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. @@ -165,27 +168,28 @@ CreateConnectionPolicyTarget Method for CreateConnectionPolicyTarget * @param "Weight" (int32) - The value that determines the relative share of the load the Target should receive compared to other Targets with the same priority. Can be an integer from 1 to 65535, inclusive, and the default is 10. Targets with higher values receive more load than those with lower ones with the same priority. @return VoiceV1ConnectionPolicyConnectionPolicyTarget */ -func (c *DefaultApiService) CreateConnectionPolicyTarget(connectionPolicySid string, params *CreateConnectionPolicyTargetParams) (*VoiceV1ConnectionPolicyConnectionPolicyTarget, error) { +func (c *DefaultApiService) CreateConnectionPolicyTarget(ConnectionPolicySid string, params *CreateConnectionPolicyTargetParams) (*VoiceV1ConnectionPolicyConnectionPolicyTarget, error) { path := "/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets" - path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", connectionPolicySid, -1) + path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", ConnectionPolicySid, -1) + data := url.Values{} headers := 0 if params != nil && params.Enabled != nil { - data.Set("Enabled", string(*params.Enabled)) + data.Set("Enabled", fmt.Sprint(*params.Enabled)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Priority != nil { - data.Set("Priority", string(*params.Priority)) + data.Set("Priority", fmt.Sprint(*params.Priority)) } if params != nil && params.Target != nil { - data.Set("Target", *params.Target) + data.Set("Target", *params.Target) } if params != nil && params.Weight != nil { - data.Set("Weight", string(*params.Weight)) + data.Set("Weight", fmt.Sprint(*params.Weight)) } @@ -218,11 +222,12 @@ Create a bulk update request to change voice dialing country permissions of one func (c *DefaultApiService) CreateDialingPermissionsCountryBulkUpdate(params *CreateDialingPermissionsCountryBulkUpdateParams) (*VoiceV1DialingPermissionsDialingPermissionsCountryBulkUpdate, error) { path := "/v1/DialingPermissions/BulkCountryUpdates" + data := url.Values{} headers := 0 if params != nil && params.UpdateRequest != nil { - data.Set("UpdateRequest", *params.UpdateRequest) + data.Set("UpdateRequest", *params.UpdateRequest) } @@ -258,17 +263,18 @@ CreateIpRecord Method for CreateIpRecord func (c *DefaultApiService) CreateIpRecord(params *CreateIpRecordParams) (*VoiceV1IpRecord, error) { path := "/v1/IpRecords" + data := url.Values{} headers := 0 if params != nil && params.CidrPrefixLength != nil { - data.Set("CidrPrefixLength", string(*params.CidrPrefixLength)) + data.Set("CidrPrefixLength", fmt.Sprint(*params.CidrPrefixLength)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.IpAddress != nil { - data.Set("IpAddress", *params.IpAddress) + data.Set("IpAddress", *params.IpAddress) } @@ -302,14 +308,15 @@ CreateSourceIpMapping Method for CreateSourceIpMapping func (c *DefaultApiService) CreateSourceIpMapping(params *CreateSourceIpMappingParams) (*VoiceV1SourceIpMapping, error) { path := "/v1/SourceIpMappings" + data := url.Values{} headers := 0 if params != nil && params.IpRecordSid != nil { - data.Set("IpRecordSid", *params.IpRecordSid) + data.Set("IpRecordSid", *params.IpRecordSid) } if params != nil && params.SipDomainSid != nil { - data.Set("SipDomainSid", *params.SipDomainSid) + data.Set("SipDomainSid", *params.SipDomainSid) } @@ -330,13 +337,14 @@ func (c *DefaultApiService) CreateSourceIpMapping(params *CreateSourceIpMappingP /* DeleteByocTrunk Method for DeleteByocTrunk - * @param sid The Twilio-provided string that uniquely identifies the BYOC Trunk resource to delete. + * @param Sid The Twilio-provided string that uniquely identifies the BYOC Trunk resource to delete. */ -func (c *DefaultApiService) DeleteByocTrunk(sid string) (error) { +func (c *DefaultApiService) DeleteByocTrunk(Sid string) (error) { path := "/v1/ByocTrunks/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -353,13 +361,14 @@ func (c *DefaultApiService) DeleteByocTrunk(sid string) (error) { /* DeleteConnectionPolicy Method for DeleteConnectionPolicy - * @param sid The unique string that we created to identify the Connection Policy resource to delete. + * @param Sid The unique string that we created to identify the Connection Policy resource to delete. */ -func (c *DefaultApiService) DeleteConnectionPolicy(sid string) (error) { +func (c *DefaultApiService) DeleteConnectionPolicy(Sid string) (error) { path := "/v1/ConnectionPolicies/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -376,15 +385,16 @@ func (c *DefaultApiService) DeleteConnectionPolicy(sid string) (error) { /* DeleteConnectionPolicyTarget Method for DeleteConnectionPolicyTarget - * @param connectionPolicySid The SID of the Connection Policy that owns the Target. - * @param sid The unique string that we created to identify the Target resource to delete. + * @param ConnectionPolicySid The SID of the Connection Policy that owns the Target. + * @param Sid The unique string that we created to identify the Target resource to delete. */ -func (c *DefaultApiService) DeleteConnectionPolicyTarget(connectionPolicySid string, sid string) (error) { +func (c *DefaultApiService) DeleteConnectionPolicyTarget(ConnectionPolicySid string, Sid string) (error) { path := "/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets/{Sid}" - path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", connectionPolicySid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", ConnectionPolicySid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -401,13 +411,14 @@ func (c *DefaultApiService) DeleteConnectionPolicyTarget(connectionPolicySid str /* DeleteIpRecord Method for DeleteIpRecord - * @param sid The Twilio-provided string that uniquely identifies the IP Record resource to delete. + * @param Sid The Twilio-provided string that uniquely identifies the IP Record resource to delete. */ -func (c *DefaultApiService) DeleteIpRecord(sid string) (error) { +func (c *DefaultApiService) DeleteIpRecord(Sid string) (error) { path := "/v1/IpRecords/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -424,13 +435,14 @@ func (c *DefaultApiService) DeleteIpRecord(sid string) (error) { /* DeleteSourceIpMapping Method for DeleteSourceIpMapping - * @param sid The Twilio-provided string that uniquely identifies the IP Record resource to delete. + * @param Sid The Twilio-provided string that uniquely identifies the IP Record resource to delete. */ -func (c *DefaultApiService) DeleteSourceIpMapping(sid string) (error) { +func (c *DefaultApiService) DeleteSourceIpMapping(Sid string) (error) { path := "/v1/SourceIpMappings/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -447,14 +459,15 @@ func (c *DefaultApiService) DeleteSourceIpMapping(sid string) (error) { /* FetchByocTrunk Method for FetchByocTrunk - * @param sid The Twilio-provided string that uniquely identifies the BYOC Trunk resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the BYOC Trunk resource to fetch. @return VoiceV1ByocTrunk */ -func (c *DefaultApiService) FetchByocTrunk(sid string) (*VoiceV1ByocTrunk, error) { +func (c *DefaultApiService) FetchByocTrunk(Sid string) (*VoiceV1ByocTrunk, error) { path := "/v1/ByocTrunks/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -476,14 +489,15 @@ func (c *DefaultApiService) FetchByocTrunk(sid string) (*VoiceV1ByocTrunk, error /* FetchConnectionPolicy Method for FetchConnectionPolicy - * @param sid The unique string that we created to identify the Connection Policy resource to fetch. + * @param Sid The unique string that we created to identify the Connection Policy resource to fetch. @return VoiceV1ConnectionPolicy */ -func (c *DefaultApiService) FetchConnectionPolicy(sid string) (*VoiceV1ConnectionPolicy, error) { +func (c *DefaultApiService) FetchConnectionPolicy(Sid string) (*VoiceV1ConnectionPolicy, error) { path := "/v1/ConnectionPolicies/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -505,16 +519,17 @@ func (c *DefaultApiService) FetchConnectionPolicy(sid string) (*VoiceV1Connectio /* FetchConnectionPolicyTarget Method for FetchConnectionPolicyTarget - * @param connectionPolicySid The SID of the Connection Policy that owns the Target. - * @param sid The unique string that we created to identify the Target resource to fetch. + * @param ConnectionPolicySid The SID of the Connection Policy that owns the Target. + * @param Sid The unique string that we created to identify the Target resource to fetch. @return VoiceV1ConnectionPolicyConnectionPolicyTarget */ -func (c *DefaultApiService) FetchConnectionPolicyTarget(connectionPolicySid string, sid string) (*VoiceV1ConnectionPolicyConnectionPolicyTarget, error) { +func (c *DefaultApiService) FetchConnectionPolicyTarget(ConnectionPolicySid string, Sid string) (*VoiceV1ConnectionPolicyConnectionPolicyTarget, error) { path := "/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets/{Sid}" - path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", connectionPolicySid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", ConnectionPolicySid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -537,14 +552,15 @@ func (c *DefaultApiService) FetchConnectionPolicyTarget(connectionPolicySid stri /* FetchDialingPermissionsCountry Method for FetchDialingPermissionsCountry Retrieve voice dialing country permissions identified by the given ISO country code - * @param isoCode The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the DialingPermissions Country resource to fetch + * @param IsoCode The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the DialingPermissions Country resource to fetch @return VoiceV1DialingPermissionsDialingPermissionsCountryInstance */ -func (c *DefaultApiService) FetchDialingPermissionsCountry(isoCode string) (*VoiceV1DialingPermissionsDialingPermissionsCountryInstance, error) { +func (c *DefaultApiService) FetchDialingPermissionsCountry(IsoCode string) (*VoiceV1DialingPermissionsDialingPermissionsCountryInstance, error) { path := "/v1/DialingPermissions/Countries/{IsoCode}" - path = strings.Replace(path, "{"+"IsoCode"+"}", isoCode, -1) + path = strings.Replace(path, "{"+"IsoCode"+"}", IsoCode, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -572,7 +588,8 @@ Retrieve voice dialing permissions inheritance for the sub-account func (c *DefaultApiService) FetchDialingPermissionsSettings() (*VoiceV1DialingPermissionsDialingPermissionsSettings, error) { path := "/v1/Settings" - data := 0 + + data := url.Values{} headers := 0 @@ -594,14 +611,15 @@ func (c *DefaultApiService) FetchDialingPermissionsSettings() (*VoiceV1DialingPe /* FetchIpRecord Method for FetchIpRecord - * @param sid The Twilio-provided string that uniquely identifies the IP Record resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the IP Record resource to fetch. @return VoiceV1IpRecord */ -func (c *DefaultApiService) FetchIpRecord(sid string) (*VoiceV1IpRecord, error) { +func (c *DefaultApiService) FetchIpRecord(Sid string) (*VoiceV1IpRecord, error) { path := "/v1/IpRecords/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -623,14 +641,15 @@ func (c *DefaultApiService) FetchIpRecord(sid string) (*VoiceV1IpRecord, error) /* FetchSourceIpMapping Method for FetchSourceIpMapping - * @param sid The Twilio-provided string that uniquely identifies the IP Record resource to fetch. + * @param Sid The Twilio-provided string that uniquely identifies the IP Record resource to fetch. @return VoiceV1SourceIpMapping */ -func (c *DefaultApiService) FetchSourceIpMapping(sid string) (*VoiceV1SourceIpMapping, error) { +func (c *DefaultApiService) FetchSourceIpMapping(Sid string) (*VoiceV1SourceIpMapping, error) { path := "/v1/SourceIpMappings/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -663,11 +682,12 @@ ListByocTrunk Method for ListByocTrunk func (c *DefaultApiService) ListByocTrunk(params *ListByocTrunkParams) (*VoiceV1ByocTrunkReadResponse, error) { path := "/v1/ByocTrunks" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -699,11 +719,12 @@ ListConnectionPolicy Method for ListConnectionPolicy func (c *DefaultApiService) ListConnectionPolicy(params *ListConnectionPolicyParams) (*VoiceV1ConnectionPolicyReadResponse, error) { path := "/v1/ConnectionPolicies" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -728,20 +749,21 @@ type ListConnectionPolicyTargetParams struct { /* ListConnectionPolicyTarget Method for ListConnectionPolicyTarget - * @param connectionPolicySid The SID of the Connection Policy from which to read the Targets. + * @param ConnectionPolicySid The SID of the Connection Policy from which to read the Targets. * @param optional nil or *ListConnectionPolicyTargetOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse */ -func (c *DefaultApiService) ListConnectionPolicyTarget(connectionPolicySid string, params *ListConnectionPolicyTargetParams) (*VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse, error) { +func (c *DefaultApiService) ListConnectionPolicyTarget(ConnectionPolicySid string, params *ListConnectionPolicyTargetParams) (*VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse, error) { path := "/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets" - path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", connectionPolicySid, -1) + path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", ConnectionPolicySid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -786,29 +808,30 @@ Retrieve all voice dialing country permissions for this account func (c *DefaultApiService) ListDialingPermissionsCountry(params *ListDialingPermissionsCountryParams) (*VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse, error) { path := "/v1/DialingPermissions/Countries" + data := url.Values{} headers := 0 if params != nil && params.IsoCode != nil { - data.Set("IsoCode", *params.IsoCode) + data.Set("IsoCode", *params.IsoCode) } if params != nil && params.Continent != nil { - data.Set("Continent", *params.Continent) + data.Set("Continent", *params.Continent) } if params != nil && params.CountryCode != nil { - data.Set("CountryCode", *params.CountryCode) + data.Set("CountryCode", *params.CountryCode) } if params != nil && params.LowRiskNumbersEnabled != nil { - data.Set("LowRiskNumbersEnabled", string(*params.LowRiskNumbersEnabled)) + data.Set("LowRiskNumbersEnabled", fmt.Sprint(*params.LowRiskNumbersEnabled)) } if params != nil && params.HighRiskSpecialNumbersEnabled != nil { - data.Set("HighRiskSpecialNumbersEnabled", string(*params.HighRiskSpecialNumbersEnabled)) + data.Set("HighRiskSpecialNumbersEnabled", fmt.Sprint(*params.HighRiskSpecialNumbersEnabled)) } if params != nil && params.HighRiskTollfraudNumbersEnabled != nil { - data.Set("HighRiskTollfraudNumbersEnabled", string(*params.HighRiskTollfraudNumbersEnabled)) + data.Set("HighRiskTollfraudNumbersEnabled", fmt.Sprint(*params.HighRiskTollfraudNumbersEnabled)) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -834,20 +857,21 @@ type ListDialingPermissionsHrsPrefixesParams struct { /* ListDialingPermissionsHrsPrefixes Method for ListDialingPermissionsHrsPrefixes Fetch the high-risk special services prefixes from the country resource corresponding to the [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) - * @param isoCode The [ISO 3166-1 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) to identify the country permissions from which high-risk special service number prefixes are fetched + * @param IsoCode The [ISO 3166-1 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) to identify the country permissions from which high-risk special service number prefixes are fetched * @param optional nil or *ListDialingPermissionsHrsPrefixesOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse */ -func (c *DefaultApiService) ListDialingPermissionsHrsPrefixes(isoCode string, params *ListDialingPermissionsHrsPrefixesParams) (*VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse, error) { +func (c *DefaultApiService) ListDialingPermissionsHrsPrefixes(IsoCode string, params *ListDialingPermissionsHrsPrefixesParams) (*VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse, error) { path := "/v1/DialingPermissions/Countries/{IsoCode}/HighRiskSpecialPrefixes" - path = strings.Replace(path, "{"+"IsoCode"+"}", isoCode, -1) + path = strings.Replace(path, "{"+"IsoCode"+"}", IsoCode, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -879,11 +903,12 @@ ListIpRecord Method for ListIpRecord func (c *DefaultApiService) ListIpRecord(params *ListIpRecordParams) (*VoiceV1IpRecordReadResponse, error) { path := "/v1/IpRecords" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -915,11 +940,12 @@ ListSourceIpMapping Method for ListSourceIpMapping func (c *DefaultApiService) ListSourceIpMapping(params *ListSourceIpMappingParams) (*VoiceV1SourceIpMappingReadResponse, error) { path := "/v1/SourceIpMappings" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -953,7 +979,7 @@ type UpdateByocTrunkParams struct { /* UpdateByocTrunk Method for UpdateByocTrunk - * @param sid The Twilio-provided string that uniquely identifies the BYOC Trunk resource to update. + * @param Sid The Twilio-provided string that uniquely identifies the BYOC Trunk resource to update. * @param optional nil or *UpdateByocTrunkOpts - Optional Parameters: * @param "CnamLookupEnabled" (bool) - Whether Caller ID Name (CNAM) lookup is enabled for the trunk. If enabled, all inbound calls to the BYOC Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information. * @param "ConnectionPolicySid" (string) - The SID of the Connection Policy that Twilio will use when routing traffic to your communications infrastructure. @@ -967,42 +993,43 @@ UpdateByocTrunk Method for UpdateByocTrunk * @param "VoiceUrl" (string) - The URL we should call when the BYOC Trunk receives a call. @return VoiceV1ByocTrunk */ -func (c *DefaultApiService) UpdateByocTrunk(sid string, params *UpdateByocTrunkParams) (*VoiceV1ByocTrunk, error) { +func (c *DefaultApiService) UpdateByocTrunk(Sid string, params *UpdateByocTrunkParams) (*VoiceV1ByocTrunk, error) { path := "/v1/ByocTrunks/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.CnamLookupEnabled != nil { - data.Set("CnamLookupEnabled", string(*params.CnamLookupEnabled)) + data.Set("CnamLookupEnabled", fmt.Sprint(*params.CnamLookupEnabled)) } if params != nil && params.ConnectionPolicySid != nil { - data.Set("ConnectionPolicySid", *params.ConnectionPolicySid) + data.Set("ConnectionPolicySid", *params.ConnectionPolicySid) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.FromDomainSid != nil { - data.Set("FromDomainSid", *params.FromDomainSid) + data.Set("FromDomainSid", *params.FromDomainSid) } if params != nil && params.StatusCallbackMethod != nil { - data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) + data.Set("StatusCallbackMethod", *params.StatusCallbackMethod) } if params != nil && params.StatusCallbackUrl != nil { - data.Set("StatusCallbackUrl", *params.StatusCallbackUrl) + data.Set("StatusCallbackUrl", *params.StatusCallbackUrl) } if params != nil && params.VoiceFallbackMethod != nil { - data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) } if params != nil && params.VoiceFallbackUrl != nil { - data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) } if params != nil && params.VoiceMethod != nil { - data.Set("VoiceMethod", *params.VoiceMethod) + data.Set("VoiceMethod", *params.VoiceMethod) } if params != nil && params.VoiceUrl != nil { - data.Set("VoiceUrl", *params.VoiceUrl) + data.Set("VoiceUrl", *params.VoiceUrl) } @@ -1027,20 +1054,21 @@ type UpdateConnectionPolicyParams struct { /* UpdateConnectionPolicy Method for UpdateConnectionPolicy - * @param sid The unique string that we created to identify the Connection Policy resource to update. + * @param Sid The unique string that we created to identify the Connection Policy resource to update. * @param optional nil or *UpdateConnectionPolicyOpts - Optional Parameters: * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. @return VoiceV1ConnectionPolicy */ -func (c *DefaultApiService) UpdateConnectionPolicy(sid string, params *UpdateConnectionPolicyParams) (*VoiceV1ConnectionPolicy, error) { +func (c *DefaultApiService) UpdateConnectionPolicy(Sid string, params *UpdateConnectionPolicyParams) (*VoiceV1ConnectionPolicy, error) { path := "/v1/ConnectionPolicies/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -1069,8 +1097,8 @@ type UpdateConnectionPolicyTargetParams struct { /* UpdateConnectionPolicyTarget Method for UpdateConnectionPolicyTarget - * @param connectionPolicySid The SID of the Connection Policy that owns the Target. - * @param sid The unique string that we created to identify the Target resource to update. + * @param ConnectionPolicySid The SID of the Connection Policy that owns the Target. + * @param Sid The unique string that we created to identify the Target resource to update. * @param optional nil or *UpdateConnectionPolicyTargetOpts - Optional Parameters: * @param "Enabled" (bool) - Whether the Target is enabled. * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. @@ -1079,28 +1107,29 @@ UpdateConnectionPolicyTarget Method for UpdateConnectionPolicyTarget * @param "Weight" (int32) - The value that determines the relative share of the load the Target should receive compared to other Targets with the same priority. Can be an integer from 1 to 65535, inclusive. Targets with higher values receive more load than those with lower ones with the same priority. @return VoiceV1ConnectionPolicyConnectionPolicyTarget */ -func (c *DefaultApiService) UpdateConnectionPolicyTarget(connectionPolicySid string, sid string, params *UpdateConnectionPolicyTargetParams) (*VoiceV1ConnectionPolicyConnectionPolicyTarget, error) { +func (c *DefaultApiService) UpdateConnectionPolicyTarget(ConnectionPolicySid string, Sid string, params *UpdateConnectionPolicyTargetParams) (*VoiceV1ConnectionPolicyConnectionPolicyTarget, error) { path := "/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets/{Sid}" - path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", connectionPolicySid, -1) - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", ConnectionPolicySid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.Enabled != nil { - data.Set("Enabled", string(*params.Enabled)) + data.Set("Enabled", fmt.Sprint(*params.Enabled)) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.Priority != nil { - data.Set("Priority", string(*params.Priority)) + data.Set("Priority", fmt.Sprint(*params.Priority)) } if params != nil && params.Target != nil { - data.Set("Target", *params.Target) + data.Set("Target", *params.Target) } if params != nil && params.Weight != nil { - data.Set("Weight", string(*params.Weight)) + data.Set("Weight", fmt.Sprint(*params.Weight)) } @@ -1133,11 +1162,12 @@ Update voice dialing permissions inheritance for the sub-account func (c *DefaultApiService) UpdateDialingPermissionsSettings(params *UpdateDialingPermissionsSettingsParams) (*VoiceV1DialingPermissionsDialingPermissionsSettings, error) { path := "/v1/Settings" + data := url.Values{} headers := 0 if params != nil && params.DialingPermissionsInheritance != nil { - data.Set("DialingPermissionsInheritance", string(*params.DialingPermissionsInheritance)) + data.Set("DialingPermissionsInheritance", fmt.Sprint(*params.DialingPermissionsInheritance)) } @@ -1162,20 +1192,21 @@ type UpdateIpRecordParams struct { /* UpdateIpRecord Method for UpdateIpRecord - * @param sid The Twilio-provided string that uniquely identifies the IP Record resource to update. + * @param Sid The Twilio-provided string that uniquely identifies the IP Record resource to update. * @param optional nil or *UpdateIpRecordOpts - Optional Parameters: * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. @return VoiceV1IpRecord */ -func (c *DefaultApiService) UpdateIpRecord(sid string, params *UpdateIpRecordParams) (*VoiceV1IpRecord, error) { +func (c *DefaultApiService) UpdateIpRecord(Sid string, params *UpdateIpRecordParams) (*VoiceV1IpRecord, error) { path := "/v1/IpRecords/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } @@ -1200,20 +1231,21 @@ type UpdateSourceIpMappingParams struct { /* UpdateSourceIpMapping Method for UpdateSourceIpMapping - * @param sid The Twilio-provided string that uniquely identifies the IP Record resource to update. + * @param Sid The Twilio-provided string that uniquely identifies the IP Record resource to update. * @param optional nil or *UpdateSourceIpMappingOpts - Optional Parameters: * @param "SipDomainSid" (string) - The SID of the SIP Domain that the IP Record should be mapped to. @return VoiceV1SourceIpMapping */ -func (c *DefaultApiService) UpdateSourceIpMapping(sid string, params *UpdateSourceIpMappingParams) (*VoiceV1SourceIpMapping, error) { +func (c *DefaultApiService) UpdateSourceIpMapping(Sid string, params *UpdateSourceIpMappingParams) (*VoiceV1SourceIpMapping, error) { path := "/v1/SourceIpMappings/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.SipDomainSid != nil { - data.Set("SipDomainSid", *params.SipDomainSid) + data.Set("SipDomainSid", *params.SipDomainSid) } diff --git a/rest/voice/v1/docs/DefaultApi.md b/rest/voice/v1/docs/DefaultApi.md index 143dcba33..d1290f9ea 100644 --- a/rest/voice/v1/docs/DefaultApi.md +++ b/rest/voice/v1/docs/DefaultApi.md @@ -59,16 +59,16 @@ Optional parameters are passed through a pointer to a CreateByocTrunkOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **cnamLookupEnabled** | **optional.Bool**| Whether Caller ID Name (CNAM) lookup is enabled for the trunk. If enabled, all inbound calls to the BYOC Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information. | - **connectionPolicySid** | **optional.String**| The SID of the Connection Policy that Twilio will use when routing traffic to your communications infrastructure. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | - **fromDomainSid** | **optional.String**| The SID of the SIP Domain that should be used in the `From` header of originating calls sent to your SIP infrastructure. If your SIP infrastructure allows users to \\\"call back\\\" an incoming call, configure this with a [SIP Domain](https://www.twilio.com/docs/voice/api/sending-sip) to ensure proper routing. If not configured, the from domain will default to \\\"sip.twilio.com\\\". | - **statusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback_url`. Can be: `GET` or `POST`. | - **statusCallbackUrl** | **optional.String**| The URL that we should call to pass status parameters (such as call ended) to your application. | - **voiceFallbackMethod** | **optional.String**| The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. | - **voiceFallbackUrl** | **optional.String**| The URL that we should call when an error occurs while retrieving or executing the TwiML from `voice_url`. | - **voiceMethod** | **optional.String**| The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`. | - **voiceUrl** | **optional.String**| The URL we should call when the BYOC Trunk receives a call. | + **CnamLookupEnabled** | **optional.Bool**| Whether Caller ID Name (CNAM) lookup is enabled for the trunk. If enabled, all inbound calls to the BYOC Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information. | + **ConnectionPolicySid** | **optional.String**| The SID of the Connection Policy that Twilio will use when routing traffic to your communications infrastructure. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | + **FromDomainSid** | **optional.String**| The SID of the SIP Domain that should be used in the `From` header of originating calls sent to your SIP infrastructure. If your SIP infrastructure allows users to \\\"call back\\\" an incoming call, configure this with a [SIP Domain](https://www.twilio.com/docs/voice/api/sending-sip) to ensure proper routing. If not configured, the from domain will default to \\\"sip.twilio.com\\\". | + **StatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback_url`. Can be: `GET` or `POST`. | + **StatusCallbackUrl** | **optional.String**| The URL that we should call to pass status parameters (such as call ended) to your application. | + **VoiceFallbackMethod** | **optional.String**| The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. | + **VoiceFallbackUrl** | **optional.String**| The URL that we should call when an error occurs while retrieving or executing the TwiML from `voice_url`. | + **VoiceMethod** | **optional.String**| The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`. | + **VoiceUrl** | **optional.String**| The URL we should call when the BYOC Trunk receives a call. | ### Return type @@ -109,7 +109,7 @@ Optional parameters are passed through a pointer to a CreateConnectionPolicyOpts Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | ### Return type @@ -131,7 +131,7 @@ Name | Type | Description | Notes ## CreateConnectionPolicyTarget -> VoiceV1ConnectionPolicyConnectionPolicyTarget CreateConnectionPolicyTarget(ctx, connectionPolicySid, optional) +> VoiceV1ConnectionPolicyConnectionPolicyTarget CreateConnectionPolicyTarget(ctx, ConnectionPolicySid, optional) @@ -141,7 +141,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**connectionPolicySid** | **string**| The SID of the Connection Policy that owns the Target. | +**ConnectionPolicySid** | **string**| The SID of the Connection Policy that owns the Target. | **optional** | ***CreateConnectionPolicyTargetOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -152,11 +152,11 @@ Optional parameters are passed through a pointer to a CreateConnectionPolicyTarg Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **enabled** | **optional.Bool**| Whether the Target is enabled. The default is `true`. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | - **priority** | **optional.Int32**| The relative importance of the target. Can be an integer from 0 to 65535, inclusive, and the default is 10. The lowest number represents the most important target. | - **target** | **optional.String**| The SIP address you want Twilio to route your calls to. This must be a `sip:` schema. `sips` is NOT supported. | - **weight** | **optional.Int32**| The value that determines the relative share of the load the Target should receive compared to other Targets with the same priority. Can be an integer from 1 to 65535, inclusive, and the default is 10. Targets with higher values receive more load than those with lower ones with the same priority. | + **Enabled** | **optional.Bool**| Whether the Target is enabled. The default is `true`. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | + **Priority** | **optional.Int32**| The relative importance of the target. Can be an integer from 0 to 65535, inclusive, and the default is 10. The lowest number represents the most important target. | + **Target** | **optional.String**| The SIP address you want Twilio to route your calls to. This must be a `sip:` schema. `sips` is NOT supported. | + **Weight** | **optional.Int32**| The value that determines the relative share of the load the Target should receive compared to other Targets with the same priority. Can be an integer from 1 to 65535, inclusive, and the default is 10. Targets with higher values receive more load than those with lower ones with the same priority. | ### Return type @@ -199,7 +199,7 @@ Optional parameters are passed through a pointer to a CreateDialingPermissionsCo Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **updateRequest** | **optional.String**| URL encoded JSON array of update objects. example : `[ { \\\"iso_code\\\": \\\"GB\\\", \\\"low_risk_numbers_enabled\\\": \\\"true\\\", \\\"high_risk_special_numbers_enabled\\\":\\\"true\\\", \\\"high_risk_tollfraud_numbers_enabled\\\": \\\"false\\\" } ]` | + **UpdateRequest** | **optional.String**| URL encoded JSON array of update objects. example : `[ { \\\"iso_code\\\": \\\"GB\\\", \\\"low_risk_numbers_enabled\\\": \\\"true\\\", \\\"high_risk_special_numbers_enabled\\\":\\\"true\\\", \\\"high_risk_tollfraud_numbers_enabled\\\": \\\"false\\\" } ]` | ### Return type @@ -240,9 +240,9 @@ Optional parameters are passed through a pointer to a CreateIpRecordOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **cidrPrefixLength** | **optional.Int32**| An integer representing the length of the [CIDR](https://tools.ietf.org/html/rfc4632) prefix to use with this IP address. By default the entire IP address is used, which for IPv4 is value 32. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | - **ipAddress** | **optional.String**| An IP address in dotted decimal notation, IPv4 only. | + **CidrPrefixLength** | **optional.Int32**| An integer representing the length of the [CIDR](https://tools.ietf.org/html/rfc4632) prefix to use with this IP address. By default the entire IP address is used, which for IPv4 is value 32. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | + **IpAddress** | **optional.String**| An IP address in dotted decimal notation, IPv4 only. | ### Return type @@ -283,8 +283,8 @@ Optional parameters are passed through a pointer to a CreateSourceIpMappingOpts Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ipRecordSid** | **optional.String**| The Twilio-provided string that uniquely identifies the IP Record resource to map from. | - **sipDomainSid** | **optional.String**| The SID of the SIP Domain that the IP Record should be mapped to. | + **IpRecordSid** | **optional.String**| The Twilio-provided string that uniquely identifies the IP Record resource to map from. | + **SipDomainSid** | **optional.String**| The SID of the SIP Domain that the IP Record should be mapped to. | ### Return type @@ -306,7 +306,7 @@ Name | Type | Description | Notes ## DeleteByocTrunk -> DeleteByocTrunk(ctx, sid) +> DeleteByocTrunk(ctx, Sid) @@ -316,7 +316,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the BYOC Trunk resource to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the BYOC Trunk resource to delete. | ### Return type @@ -338,7 +338,7 @@ Name | Type | Description | Notes ## DeleteConnectionPolicy -> DeleteConnectionPolicy(ctx, sid) +> DeleteConnectionPolicy(ctx, Sid) @@ -348,7 +348,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The unique string that we created to identify the Connection Policy resource to delete. | +**Sid** | **string**| The unique string that we created to identify the Connection Policy resource to delete. | ### Return type @@ -370,7 +370,7 @@ Name | Type | Description | Notes ## DeleteConnectionPolicyTarget -> DeleteConnectionPolicyTarget(ctx, connectionPolicySid, sid) +> DeleteConnectionPolicyTarget(ctx, ConnectionPolicySid, Sid) @@ -380,8 +380,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**connectionPolicySid** | **string**| The SID of the Connection Policy that owns the Target. | -**sid** | **string**| The unique string that we created to identify the Target resource to delete. | +**ConnectionPolicySid** | **string**| The SID of the Connection Policy that owns the Target. | +**Sid** | **string**| The unique string that we created to identify the Target resource to delete. | ### Return type @@ -403,7 +403,7 @@ Name | Type | Description | Notes ## DeleteIpRecord -> DeleteIpRecord(ctx, sid) +> DeleteIpRecord(ctx, Sid) @@ -413,7 +413,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the IP Record resource to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the IP Record resource to delete. | ### Return type @@ -435,7 +435,7 @@ Name | Type | Description | Notes ## DeleteSourceIpMapping -> DeleteSourceIpMapping(ctx, sid) +> DeleteSourceIpMapping(ctx, Sid) @@ -445,7 +445,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the IP Record resource to delete. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the IP Record resource to delete. | ### Return type @@ -467,7 +467,7 @@ Name | Type | Description | Notes ## FetchByocTrunk -> VoiceV1ByocTrunk FetchByocTrunk(ctx, sid) +> VoiceV1ByocTrunk FetchByocTrunk(ctx, Sid) @@ -477,7 +477,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the BYOC Trunk resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the BYOC Trunk resource to fetch. | ### Return type @@ -499,7 +499,7 @@ Name | Type | Description | Notes ## FetchConnectionPolicy -> VoiceV1ConnectionPolicy FetchConnectionPolicy(ctx, sid) +> VoiceV1ConnectionPolicy FetchConnectionPolicy(ctx, Sid) @@ -509,7 +509,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The unique string that we created to identify the Connection Policy resource to fetch. | +**Sid** | **string**| The unique string that we created to identify the Connection Policy resource to fetch. | ### Return type @@ -531,7 +531,7 @@ Name | Type | Description | Notes ## FetchConnectionPolicyTarget -> VoiceV1ConnectionPolicyConnectionPolicyTarget FetchConnectionPolicyTarget(ctx, connectionPolicySid, sid) +> VoiceV1ConnectionPolicyConnectionPolicyTarget FetchConnectionPolicyTarget(ctx, ConnectionPolicySid, Sid) @@ -541,8 +541,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**connectionPolicySid** | **string**| The SID of the Connection Policy that owns the Target. | -**sid** | **string**| The unique string that we created to identify the Target resource to fetch. | +**ConnectionPolicySid** | **string**| The SID of the Connection Policy that owns the Target. | +**Sid** | **string**| The unique string that we created to identify the Target resource to fetch. | ### Return type @@ -564,7 +564,7 @@ Name | Type | Description | Notes ## FetchDialingPermissionsCountry -> VoiceV1DialingPermissionsDialingPermissionsCountryInstance FetchDialingPermissionsCountry(ctx, isoCode) +> VoiceV1DialingPermissionsDialingPermissionsCountryInstance FetchDialingPermissionsCountry(ctx, IsoCode) @@ -576,7 +576,7 @@ Retrieve voice dialing country permissions identified by the given ISO country c Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**isoCode** | **string**| The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the DialingPermissions Country resource to fetch | +**IsoCode** | **string**| The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the DialingPermissions Country resource to fetch | ### Return type @@ -628,7 +628,7 @@ This endpoint does not need any parameter. ## FetchIpRecord -> VoiceV1IpRecord FetchIpRecord(ctx, sid) +> VoiceV1IpRecord FetchIpRecord(ctx, Sid) @@ -638,7 +638,7 @@ This endpoint does not need any parameter. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the IP Record resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the IP Record resource to fetch. | ### Return type @@ -660,7 +660,7 @@ Name | Type | Description | Notes ## FetchSourceIpMapping -> VoiceV1SourceIpMapping FetchSourceIpMapping(ctx, sid) +> VoiceV1SourceIpMapping FetchSourceIpMapping(ctx, Sid) @@ -670,7 +670,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the IP Record resource to fetch. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the IP Record resource to fetch. | ### Return type @@ -711,7 +711,7 @@ Optional parameters are passed through a pointer to a ListByocTrunkOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -752,7 +752,7 @@ Optional parameters are passed through a pointer to a ListConnectionPolicyOpts s Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -774,7 +774,7 @@ Name | Type | Description | Notes ## ListConnectionPolicyTarget -> VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse ListConnectionPolicyTarget(ctx, connectionPolicySid, optional) +> VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse ListConnectionPolicyTarget(ctx, ConnectionPolicySid, optional) @@ -784,7 +784,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**connectionPolicySid** | **string**| The SID of the Connection Policy from which to read the Targets. | +**ConnectionPolicySid** | **string**| The SID of the Connection Policy from which to read the Targets. | **optional** | ***ListConnectionPolicyTargetOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -795,7 +795,7 @@ Optional parameters are passed through a pointer to a ListConnectionPolicyTarget Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -838,13 +838,13 @@ Optional parameters are passed through a pointer to a ListDialingPermissionsCoun Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **isoCode** | **optional.String**| Filter to retrieve the country permissions by specifying the [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) | - **continent** | **optional.String**| Filter to retrieve the country permissions by specifying the continent | - **countryCode** | **optional.String**| Filter the results by specified [country codes](https://www.itu.int/itudoc/itu-t/ob-lists/icc/e164_763.html) | - **lowRiskNumbersEnabled** | **optional.Bool**| Filter to retrieve the country permissions with dialing to low-risk numbers enabled. Can be: `true` or `false`. | - **highRiskSpecialNumbersEnabled** | **optional.Bool**| Filter to retrieve the country permissions with dialing to high-risk special service numbers enabled. Can be: `true` or `false` | - **highRiskTollfraudNumbersEnabled** | **optional.Bool**| Filter to retrieve the country permissions with dialing to high-risk [toll fraud](https://www.twilio.com/learn/voice-and-video/toll-fraud) numbers enabled. Can be: `true` or `false`. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **IsoCode** | **optional.String**| Filter to retrieve the country permissions by specifying the [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) | + **Continent** | **optional.String**| Filter to retrieve the country permissions by specifying the continent | + **CountryCode** | **optional.String**| Filter the results by specified [country codes](https://www.itu.int/itudoc/itu-t/ob-lists/icc/e164_763.html) | + **LowRiskNumbersEnabled** | **optional.Bool**| Filter to retrieve the country permissions with dialing to low-risk numbers enabled. Can be: `true` or `false`. | + **HighRiskSpecialNumbersEnabled** | **optional.Bool**| Filter to retrieve the country permissions with dialing to high-risk special service numbers enabled. Can be: `true` or `false` | + **HighRiskTollfraudNumbersEnabled** | **optional.Bool**| Filter to retrieve the country permissions with dialing to high-risk [toll fraud](https://www.twilio.com/learn/voice-and-video/toll-fraud) numbers enabled. Can be: `true` or `false`. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -866,7 +866,7 @@ Name | Type | Description | Notes ## ListDialingPermissionsHrsPrefixes -> VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse ListDialingPermissionsHrsPrefixes(ctx, isoCode, optional) +> VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse ListDialingPermissionsHrsPrefixes(ctx, IsoCode, optional) @@ -878,7 +878,7 @@ Fetch the high-risk special services prefixes from the country resource correspo Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**isoCode** | **string**| The [ISO 3166-1 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) to identify the country permissions from which high-risk special service number prefixes are fetched | +**IsoCode** | **string**| The [ISO 3166-1 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) to identify the country permissions from which high-risk special service number prefixes are fetched | **optional** | ***ListDialingPermissionsHrsPrefixesOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -889,7 +889,7 @@ Optional parameters are passed through a pointer to a ListDialingPermissionsHrsP Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -930,7 +930,7 @@ Optional parameters are passed through a pointer to a ListIpRecordOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -971,7 +971,7 @@ Optional parameters are passed through a pointer to a ListSourceIpMappingOpts st Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -993,7 +993,7 @@ Name | Type | Description | Notes ## UpdateByocTrunk -> VoiceV1ByocTrunk UpdateByocTrunk(ctx, sid, optional) +> VoiceV1ByocTrunk UpdateByocTrunk(ctx, Sid, optional) @@ -1003,7 +1003,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the BYOC Trunk resource to update. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the BYOC Trunk resource to update. | **optional** | ***UpdateByocTrunkOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1014,16 +1014,16 @@ Optional parameters are passed through a pointer to a UpdateByocTrunkOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **cnamLookupEnabled** | **optional.Bool**| Whether Caller ID Name (CNAM) lookup is enabled for the trunk. If enabled, all inbound calls to the BYOC Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information. | - **connectionPolicySid** | **optional.String**| The SID of the Connection Policy that Twilio will use when routing traffic to your communications infrastructure. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | - **fromDomainSid** | **optional.String**| The SID of the SIP Domain that should be used in the `From` header of originating calls sent to your SIP infrastructure. If your SIP infrastructure allows users to \\\"call back\\\" an incoming call, configure this with a [SIP Domain](https://www.twilio.com/docs/voice/api/sending-sip) to ensure proper routing. If not configured, the from domain will default to \\\"sip.twilio.com\\\". | - **statusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback_url`. Can be: `GET` or `POST`. | - **statusCallbackUrl** | **optional.String**| The URL that we should call to pass status parameters (such as call ended) to your application. | - **voiceFallbackMethod** | **optional.String**| The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. | - **voiceFallbackUrl** | **optional.String**| The URL that we should call when an error occurs while retrieving or executing the TwiML requested by `voice_url`. | - **voiceMethod** | **optional.String**| The HTTP method we should use to call `voice_url` | - **voiceUrl** | **optional.String**| The URL we should call when the BYOC Trunk receives a call. | + **CnamLookupEnabled** | **optional.Bool**| Whether Caller ID Name (CNAM) lookup is enabled for the trunk. If enabled, all inbound calls to the BYOC Trunk from the United States and Canada automatically perform a CNAM Lookup and display Caller ID data on your phone. See [CNAM Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information. | + **ConnectionPolicySid** | **optional.String**| The SID of the Connection Policy that Twilio will use when routing traffic to your communications infrastructure. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | + **FromDomainSid** | **optional.String**| The SID of the SIP Domain that should be used in the `From` header of originating calls sent to your SIP infrastructure. If your SIP infrastructure allows users to \\\"call back\\\" an incoming call, configure this with a [SIP Domain](https://www.twilio.com/docs/voice/api/sending-sip) to ensure proper routing. If not configured, the from domain will default to \\\"sip.twilio.com\\\". | + **StatusCallbackMethod** | **optional.String**| The HTTP method we should use to call `status_callback_url`. Can be: `GET` or `POST`. | + **StatusCallbackUrl** | **optional.String**| The URL that we should call to pass status parameters (such as call ended) to your application. | + **VoiceFallbackMethod** | **optional.String**| The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. | + **VoiceFallbackUrl** | **optional.String**| The URL that we should call when an error occurs while retrieving or executing the TwiML requested by `voice_url`. | + **VoiceMethod** | **optional.String**| The HTTP method we should use to call `voice_url` | + **VoiceUrl** | **optional.String**| The URL we should call when the BYOC Trunk receives a call. | ### Return type @@ -1045,7 +1045,7 @@ Name | Type | Description | Notes ## UpdateConnectionPolicy -> VoiceV1ConnectionPolicy UpdateConnectionPolicy(ctx, sid, optional) +> VoiceV1ConnectionPolicy UpdateConnectionPolicy(ctx, Sid, optional) @@ -1055,7 +1055,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The unique string that we created to identify the Connection Policy resource to update. | +**Sid** | **string**| The unique string that we created to identify the Connection Policy resource to update. | **optional** | ***UpdateConnectionPolicyOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1066,7 +1066,7 @@ Optional parameters are passed through a pointer to a UpdateConnectionPolicyOpts Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | ### Return type @@ -1088,7 +1088,7 @@ Name | Type | Description | Notes ## UpdateConnectionPolicyTarget -> VoiceV1ConnectionPolicyConnectionPolicyTarget UpdateConnectionPolicyTarget(ctx, connectionPolicySid, sid, optional) +> VoiceV1ConnectionPolicyConnectionPolicyTarget UpdateConnectionPolicyTarget(ctx, ConnectionPolicySid, Sid, optional) @@ -1098,8 +1098,8 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**connectionPolicySid** | **string**| The SID of the Connection Policy that owns the Target. | -**sid** | **string**| The unique string that we created to identify the Target resource to update. | +**ConnectionPolicySid** | **string**| The SID of the Connection Policy that owns the Target. | +**Sid** | **string**| The unique string that we created to identify the Target resource to update. | **optional** | ***UpdateConnectionPolicyTargetOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1111,11 +1111,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **enabled** | **optional.Bool**| Whether the Target is enabled. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | - **priority** | **optional.Int32**| The relative importance of the target. Can be an integer from 0 to 65535, inclusive. The lowest number represents the most important target. | - **target** | **optional.String**| The SIP address you want Twilio to route your calls to. This must be a `sip:` schema. `sips` is NOT supported. | - **weight** | **optional.Int32**| The value that determines the relative share of the load the Target should receive compared to other Targets with the same priority. Can be an integer from 1 to 65535, inclusive. Targets with higher values receive more load than those with lower ones with the same priority. | + **Enabled** | **optional.Bool**| Whether the Target is enabled. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | + **Priority** | **optional.Int32**| The relative importance of the target. Can be an integer from 0 to 65535, inclusive. The lowest number represents the most important target. | + **Target** | **optional.String**| The SIP address you want Twilio to route your calls to. This must be a `sip:` schema. `sips` is NOT supported. | + **Weight** | **optional.Int32**| The value that determines the relative share of the load the Target should receive compared to other Targets with the same priority. Can be an integer from 1 to 65535, inclusive. Targets with higher values receive more load than those with lower ones with the same priority. | ### Return type @@ -1158,7 +1158,7 @@ Optional parameters are passed through a pointer to a UpdateDialingPermissionsSe Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **dialingPermissionsInheritance** | **optional.Bool**| `true` for the sub-account to inherit voice dialing permissions from the Master Project; otherwise `false`. | + **DialingPermissionsInheritance** | **optional.Bool**| `true` for the sub-account to inherit voice dialing permissions from the Master Project; otherwise `false`. | ### Return type @@ -1180,7 +1180,7 @@ Name | Type | Description | Notes ## UpdateIpRecord -> VoiceV1IpRecord UpdateIpRecord(ctx, sid, optional) +> VoiceV1IpRecord UpdateIpRecord(ctx, Sid, optional) @@ -1190,7 +1190,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the IP Record resource to update. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the IP Record resource to update. | **optional** | ***UpdateIpRecordOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1201,7 +1201,7 @@ Optional parameters are passed through a pointer to a UpdateIpRecordOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It is not unique and can be up to 255 characters long. | ### Return type @@ -1223,7 +1223,7 @@ Name | Type | Description | Notes ## UpdateSourceIpMapping -> VoiceV1SourceIpMapping UpdateSourceIpMapping(ctx, sid, optional) +> VoiceV1SourceIpMapping UpdateSourceIpMapping(ctx, Sid, optional) @@ -1233,7 +1233,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The Twilio-provided string that uniquely identifies the IP Record resource to update. | +**Sid** | **string**| The Twilio-provided string that uniquely identifies the IP Record resource to update. | **optional** | ***UpdateSourceIpMappingOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1244,7 +1244,7 @@ Optional parameters are passed through a pointer to a UpdateSourceIpMappingOpts Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **sipDomainSid** | **optional.String**| The SID of the SIP Domain that the IP Record should be mapped to. | + **SipDomainSid** | **optional.String**| The SID of the SIP Domain that the IP Record should be mapped to. | ### Return type diff --git a/rest/voice/v1/model_voice_v1_byoc_trunk.go b/rest/voice/v1/model_voice_v1_byoc_trunk.go index a19358341..f2fa963da 100644 --- a/rest/voice/v1/model_voice_v1_byoc_trunk.go +++ b/rest/voice/v1/model_voice_v1_byoc_trunk.go @@ -14,19 +14,19 @@ import ( ) // VoiceV1ByocTrunk struct for VoiceV1ByocTrunk type VoiceV1ByocTrunk struct { - AccountSid string `json:"account_sid,omitempty"` - CnamLookupEnabled bool `json:"cnam_lookup_enabled,omitempty"` - ConnectionPolicySid string `json:"connection_policy_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - FromDomainSid string `json:"from_domain_sid,omitempty"` - Sid string `json:"sid,omitempty"` - StatusCallbackMethod string `json:"status_callback_method,omitempty"` - StatusCallbackUrl string `json:"status_callback_url,omitempty"` - Url string `json:"url,omitempty"` - VoiceFallbackMethod string `json:"voice_fallback_method,omitempty"` - VoiceFallbackUrl string `json:"voice_fallback_url,omitempty"` - VoiceMethod string `json:"voice_method,omitempty"` - VoiceUrl string `json:"voice_url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + CnamLookupEnabled bool `json:"CnamLookupEnabled,omitempty"` + ConnectionPolicySid string `json:"ConnectionPolicySid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + FromDomainSid string `json:"FromDomainSid,omitempty"` + Sid string `json:"Sid,omitempty"` + StatusCallbackMethod string `json:"StatusCallbackMethod,omitempty"` + StatusCallbackUrl string `json:"StatusCallbackUrl,omitempty"` + Url string `json:"Url,omitempty"` + VoiceFallbackMethod string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod string `json:"VoiceMethod,omitempty"` + VoiceUrl string `json:"VoiceUrl,omitempty"` } diff --git a/rest/voice/v1/model_voice_v1_byoc_trunk_read_response.go b/rest/voice/v1/model_voice_v1_byoc_trunk_read_response.go index 63d6117ee..d5106e1b2 100644 --- a/rest/voice/v1/model_voice_v1_byoc_trunk_read_response.go +++ b/rest/voice/v1/model_voice_v1_byoc_trunk_read_response.go @@ -11,6 +11,6 @@ package openapi // VoiceV1ByocTrunkReadResponse struct for VoiceV1ByocTrunkReadResponse type VoiceV1ByocTrunkReadResponse struct { - ByocTrunks []VoiceV1ByocTrunk `json:"byoc_trunks,omitempty"` - Meta VoiceV1ByocTrunkReadResponseMeta `json:"meta,omitempty"` + ByocTrunks []VoiceV1ByocTrunk `json:"ByocTrunks,omitempty"` + Meta VoiceV1ByocTrunkReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/voice/v1/model_voice_v1_byoc_trunk_read_response_meta.go b/rest/voice/v1/model_voice_v1_byoc_trunk_read_response_meta.go index 334bfea15..40736b518 100644 --- a/rest/voice/v1/model_voice_v1_byoc_trunk_read_response_meta.go +++ b/rest/voice/v1/model_voice_v1_byoc_trunk_read_response_meta.go @@ -11,11 +11,11 @@ package openapi // VoiceV1ByocTrunkReadResponseMeta struct for VoiceV1ByocTrunkReadResponseMeta type VoiceV1ByocTrunkReadResponseMeta struct { - FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` - NextPageUrl string `json:"next_page_url,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUrl string `json:"previous_page_url,omitempty"` - Url string `json:"url,omitempty"` + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/voice/v1/model_voice_v1_connection_policy.go b/rest/voice/v1/model_voice_v1_connection_policy.go index 621c193c2..f7b1ddf6d 100644 --- a/rest/voice/v1/model_voice_v1_connection_policy.go +++ b/rest/voice/v1/model_voice_v1_connection_policy.go @@ -14,11 +14,11 @@ import ( ) // VoiceV1ConnectionPolicy struct for VoiceV1ConnectionPolicy type VoiceV1ConnectionPolicy struct { - AccountSid string `json:"account_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/voice/v1/model_voice_v1_connection_policy_connection_policy_target.go b/rest/voice/v1/model_voice_v1_connection_policy_connection_policy_target.go index 6bc73f5ca..e132295ba 100644 --- a/rest/voice/v1/model_voice_v1_connection_policy_connection_policy_target.go +++ b/rest/voice/v1/model_voice_v1_connection_policy_connection_policy_target.go @@ -14,15 +14,15 @@ import ( ) // VoiceV1ConnectionPolicyConnectionPolicyTarget struct for VoiceV1ConnectionPolicyConnectionPolicyTarget type VoiceV1ConnectionPolicyConnectionPolicyTarget struct { - AccountSid string `json:"account_sid,omitempty"` - ConnectionPolicySid string `json:"connection_policy_sid,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - Enabled bool `json:"enabled,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Priority int32 `json:"priority,omitempty"` - Sid string `json:"sid,omitempty"` - Target string `json:"target,omitempty"` - Url string `json:"url,omitempty"` - Weight int32 `json:"weight,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + ConnectionPolicySid string `json:"ConnectionPolicySid,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + Enabled bool `json:"Enabled,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Priority int32 `json:"Priority,omitempty"` + Sid string `json:"Sid,omitempty"` + Target string `json:"Target,omitempty"` + Url string `json:"Url,omitempty"` + Weight int32 `json:"Weight,omitempty"` } diff --git a/rest/voice/v1/model_voice_v1_connection_policy_connection_policy_target_read_response.go b/rest/voice/v1/model_voice_v1_connection_policy_connection_policy_target_read_response.go index ec17444db..6bdfade05 100644 --- a/rest/voice/v1/model_voice_v1_connection_policy_connection_policy_target_read_response.go +++ b/rest/voice/v1/model_voice_v1_connection_policy_connection_policy_target_read_response.go @@ -11,6 +11,6 @@ package openapi // VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse struct for VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse type VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse struct { - Meta VoiceV1ByocTrunkReadResponseMeta `json:"meta,omitempty"` - Targets []VoiceV1ConnectionPolicyConnectionPolicyTarget `json:"targets,omitempty"` + Meta VoiceV1ByocTrunkReadResponseMeta `json:"Meta,omitempty"` + Targets []VoiceV1ConnectionPolicyConnectionPolicyTarget `json:"Targets,omitempty"` } diff --git a/rest/voice/v1/model_voice_v1_connection_policy_read_response.go b/rest/voice/v1/model_voice_v1_connection_policy_read_response.go index ec4d643bc..e2a35d2be 100644 --- a/rest/voice/v1/model_voice_v1_connection_policy_read_response.go +++ b/rest/voice/v1/model_voice_v1_connection_policy_read_response.go @@ -11,6 +11,6 @@ package openapi // VoiceV1ConnectionPolicyReadResponse struct for VoiceV1ConnectionPolicyReadResponse type VoiceV1ConnectionPolicyReadResponse struct { - ConnectionPolicies []VoiceV1ConnectionPolicy `json:"connection_policies,omitempty"` - Meta VoiceV1ByocTrunkReadResponseMeta `json:"meta,omitempty"` + ConnectionPolicies []VoiceV1ConnectionPolicy `json:"ConnectionPolicies,omitempty"` + Meta VoiceV1ByocTrunkReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country.go b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country.go index 719f793cc..363355282 100644 --- a/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country.go +++ b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country.go @@ -11,13 +11,13 @@ package openapi // VoiceV1DialingPermissionsDialingPermissionsCountry struct for VoiceV1DialingPermissionsDialingPermissionsCountry type VoiceV1DialingPermissionsDialingPermissionsCountry struct { - Continent string `json:"continent,omitempty"` - CountryCodes []string `json:"country_codes,omitempty"` - HighRiskSpecialNumbersEnabled bool `json:"high_risk_special_numbers_enabled,omitempty"` - HighRiskTollfraudNumbersEnabled bool `json:"high_risk_tollfraud_numbers_enabled,omitempty"` - IsoCode string `json:"iso_code,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - LowRiskNumbersEnabled bool `json:"low_risk_numbers_enabled,omitempty"` - Name string `json:"name,omitempty"` - Url string `json:"url,omitempty"` + Continent string `json:"Continent,omitempty"` + CountryCodes []string `json:"CountryCodes,omitempty"` + HighRiskSpecialNumbersEnabled bool `json:"HighRiskSpecialNumbersEnabled,omitempty"` + HighRiskTollfraudNumbersEnabled bool `json:"HighRiskTollfraudNumbersEnabled,omitempty"` + IsoCode string `json:"IsoCode,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + LowRiskNumbersEnabled bool `json:"LowRiskNumbersEnabled,omitempty"` + Name string `json:"Name,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_bulk_update.go b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_bulk_update.go index dfbaaaf3a..fdc1dc40e 100644 --- a/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_bulk_update.go +++ b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_bulk_update.go @@ -11,6 +11,6 @@ package openapi // VoiceV1DialingPermissionsDialingPermissionsCountryBulkUpdate struct for VoiceV1DialingPermissionsDialingPermissionsCountryBulkUpdate type VoiceV1DialingPermissionsDialingPermissionsCountryBulkUpdate struct { - UpdateCount int32 `json:"update_count,omitempty"` - UpdateRequest string `json:"update_request,omitempty"` + UpdateCount int32 `json:"UpdateCount,omitempty"` + UpdateRequest string `json:"UpdateRequest,omitempty"` } diff --git a/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_dialing_permissions_hrs_prefixes.go b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_dialing_permissions_hrs_prefixes.go index 186f10fac..3ce2c7015 100644 --- a/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_dialing_permissions_hrs_prefixes.go +++ b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_dialing_permissions_hrs_prefixes.go @@ -11,5 +11,5 @@ package openapi // VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixes struct for VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixes type VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixes struct { - Prefix string `json:"prefix,omitempty"` + Prefix string `json:"Prefix,omitempty"` } diff --git a/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_dialing_permissions_hrs_prefixes_read_response.go b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_dialing_permissions_hrs_prefixes_read_response.go index 2dbf4eec6..283159a28 100644 --- a/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_dialing_permissions_hrs_prefixes_read_response.go +++ b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_dialing_permissions_hrs_prefixes_read_response.go @@ -11,6 +11,6 @@ package openapi // VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse struct for VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse type VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse struct { - Content []VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixes `json:"content,omitempty"` - Meta VoiceV1ByocTrunkReadResponseMeta `json:"meta,omitempty"` + Content []VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixes `json:"Content,omitempty"` + Meta VoiceV1ByocTrunkReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_instance.go b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_instance.go index 4926fc0d8..b415df659 100644 --- a/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_instance.go +++ b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_instance.go @@ -11,13 +11,13 @@ package openapi // VoiceV1DialingPermissionsDialingPermissionsCountryInstance struct for VoiceV1DialingPermissionsDialingPermissionsCountryInstance type VoiceV1DialingPermissionsDialingPermissionsCountryInstance struct { - Continent string `json:"continent,omitempty"` - CountryCodes []string `json:"country_codes,omitempty"` - HighRiskSpecialNumbersEnabled bool `json:"high_risk_special_numbers_enabled,omitempty"` - HighRiskTollfraudNumbersEnabled bool `json:"high_risk_tollfraud_numbers_enabled,omitempty"` - IsoCode string `json:"iso_code,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - LowRiskNumbersEnabled bool `json:"low_risk_numbers_enabled,omitempty"` - Name string `json:"name,omitempty"` - Url string `json:"url,omitempty"` + Continent string `json:"Continent,omitempty"` + CountryCodes []string `json:"CountryCodes,omitempty"` + HighRiskSpecialNumbersEnabled bool `json:"HighRiskSpecialNumbersEnabled,omitempty"` + HighRiskTollfraudNumbersEnabled bool `json:"HighRiskTollfraudNumbersEnabled,omitempty"` + IsoCode string `json:"IsoCode,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + LowRiskNumbersEnabled bool `json:"LowRiskNumbersEnabled,omitempty"` + Name string `json:"Name,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_read_response.go b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_read_response.go index ccec1e1e7..1bff0aa0a 100644 --- a/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_read_response.go +++ b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_read_response.go @@ -11,6 +11,6 @@ package openapi // VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse struct for VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse type VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse struct { - Content []VoiceV1DialingPermissionsDialingPermissionsCountry `json:"content,omitempty"` - Meta VoiceV1ByocTrunkReadResponseMeta `json:"meta,omitempty"` + Content []VoiceV1DialingPermissionsDialingPermissionsCountry `json:"Content,omitempty"` + Meta VoiceV1ByocTrunkReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_settings.go b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_settings.go index c902387f5..15023b52c 100644 --- a/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_settings.go +++ b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_settings.go @@ -11,6 +11,6 @@ package openapi // VoiceV1DialingPermissionsDialingPermissionsSettings struct for VoiceV1DialingPermissionsDialingPermissionsSettings type VoiceV1DialingPermissionsDialingPermissionsSettings struct { - DialingPermissionsInheritance bool `json:"dialing_permissions_inheritance,omitempty"` - Url string `json:"url,omitempty"` + DialingPermissionsInheritance bool `json:"DialingPermissionsInheritance,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/voice/v1/model_voice_v1_ip_record.go b/rest/voice/v1/model_voice_v1_ip_record.go index 87208babe..cb957faab 100644 --- a/rest/voice/v1/model_voice_v1_ip_record.go +++ b/rest/voice/v1/model_voice_v1_ip_record.go @@ -14,12 +14,12 @@ import ( ) // VoiceV1IpRecord struct for VoiceV1IpRecord type VoiceV1IpRecord struct { - AccountSid string `json:"account_sid,omitempty"` - CidrPrefixLength int32 `json:"cidr_prefix_length,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - IpAddress string `json:"ip_address,omitempty"` - Sid string `json:"sid,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + CidrPrefixLength int32 `json:"CidrPrefixLength,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + IpAddress string `json:"IpAddress,omitempty"` + Sid string `json:"Sid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/voice/v1/model_voice_v1_ip_record_read_response.go b/rest/voice/v1/model_voice_v1_ip_record_read_response.go index 06208c146..f7c031518 100644 --- a/rest/voice/v1/model_voice_v1_ip_record_read_response.go +++ b/rest/voice/v1/model_voice_v1_ip_record_read_response.go @@ -11,6 +11,6 @@ package openapi // VoiceV1IpRecordReadResponse struct for VoiceV1IpRecordReadResponse type VoiceV1IpRecordReadResponse struct { - IpRecords []VoiceV1IpRecord `json:"ip_records,omitempty"` - Meta VoiceV1ByocTrunkReadResponseMeta `json:"meta,omitempty"` + IpRecords []VoiceV1IpRecord `json:"IpRecords,omitempty"` + Meta VoiceV1ByocTrunkReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/voice/v1/model_voice_v1_source_ip_mapping.go b/rest/voice/v1/model_voice_v1_source_ip_mapping.go index dcb7ed556..7c9303083 100644 --- a/rest/voice/v1/model_voice_v1_source_ip_mapping.go +++ b/rest/voice/v1/model_voice_v1_source_ip_mapping.go @@ -14,10 +14,10 @@ import ( ) // VoiceV1SourceIpMapping struct for VoiceV1SourceIpMapping type VoiceV1SourceIpMapping struct { - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - IpRecordSid string `json:"ip_record_sid,omitempty"` - Sid string `json:"sid,omitempty"` - SipDomainSid string `json:"sip_domain_sid,omitempty"` - Url string `json:"url,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + IpRecordSid string `json:"IpRecordSid,omitempty"` + Sid string `json:"Sid,omitempty"` + SipDomainSid string `json:"SipDomainSid,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/voice/v1/model_voice_v1_source_ip_mapping_read_response.go b/rest/voice/v1/model_voice_v1_source_ip_mapping_read_response.go index 507b18ef6..c4a7fe114 100644 --- a/rest/voice/v1/model_voice_v1_source_ip_mapping_read_response.go +++ b/rest/voice/v1/model_voice_v1_source_ip_mapping_read_response.go @@ -11,6 +11,6 @@ package openapi // VoiceV1SourceIpMappingReadResponse struct for VoiceV1SourceIpMappingReadResponse type VoiceV1SourceIpMappingReadResponse struct { - Meta VoiceV1ByocTrunkReadResponseMeta `json:"meta,omitempty"` - SourceIpMappings []VoiceV1SourceIpMapping `json:"source_ip_mappings,omitempty"` + Meta VoiceV1ByocTrunkReadResponseMeta `json:"Meta,omitempty"` + SourceIpMappings []VoiceV1SourceIpMapping `json:"SourceIpMappings,omitempty"` } diff --git a/rest/wireless/v1/api_default.go b/rest/wireless/v1/api_default.go index aa9fe9345..f43cb34a8 100644 --- a/rest/wireless/v1/api_default.go +++ b/rest/wireless/v1/api_default.go @@ -15,6 +15,8 @@ import ( "fmt" twilio "github.com/twilio/twilio-go/client" "net/url" + "strings" + "time" ) type DefaultApiService struct { @@ -55,29 +57,30 @@ Send a Command to a Sim. func (c *DefaultApiService) CreateCommand(params *CreateCommandParams) (*WirelessV1Command, error) { path := "/v1/Commands" + data := url.Values{} headers := 0 if params != nil && params.CallbackMethod != nil { - data.Set("CallbackMethod", *params.CallbackMethod) + data.Set("CallbackMethod", *params.CallbackMethod) } if params != nil && params.CallbackUrl != nil { - data.Set("CallbackUrl", *params.CallbackUrl) + data.Set("CallbackUrl", *params.CallbackUrl) } if params != nil && params.Command != nil { - data.Set("Command", *params.Command) + data.Set("Command", *params.Command) } if params != nil && params.CommandMode != nil { - data.Set("CommandMode", *params.CommandMode) + data.Set("CommandMode", *params.CommandMode) } if params != nil && params.DeliveryReceiptRequested != nil { - data.Set("DeliveryReceiptRequested", string(*params.DeliveryReceiptRequested)) + data.Set("DeliveryReceiptRequested", fmt.Sprint(*params.DeliveryReceiptRequested)) } if params != nil && params.IncludeSid != nil { - data.Set("IncludeSid", *params.IncludeSid) + data.Set("IncludeSid", *params.IncludeSid) } if params != nil && params.Sim != nil { - data.Set("Sim", *params.Sim) + data.Set("Sim", *params.Sim) } @@ -129,41 +132,42 @@ CreateRatePlan Method for CreateRatePlan func (c *DefaultApiService) CreateRatePlan(params *CreateRatePlanParams) (*WirelessV1RatePlan, error) { path := "/v1/RatePlans" + data := url.Values{} headers := 0 if params != nil && params.DataEnabled != nil { - data.Set("DataEnabled", string(*params.DataEnabled)) + data.Set("DataEnabled", fmt.Sprint(*params.DataEnabled)) } if params != nil && params.DataLimit != nil { - data.Set("DataLimit", string(*params.DataLimit)) + data.Set("DataLimit", fmt.Sprint(*params.DataLimit)) } if params != nil && params.DataMetering != nil { - data.Set("DataMetering", *params.DataMetering) + data.Set("DataMetering", *params.DataMetering) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.InternationalRoaming != nil { - data.Set("InternationalRoaming", *params.InternationalRoaming) + data.Set("InternationalRoaming", strings.Join(*params.InternationalRoaming, ",")) } if params != nil && params.InternationalRoamingDataLimit != nil { - data.Set("InternationalRoamingDataLimit", string(*params.InternationalRoamingDataLimit)) + data.Set("InternationalRoamingDataLimit", fmt.Sprint(*params.InternationalRoamingDataLimit)) } if params != nil && params.MessagingEnabled != nil { - data.Set("MessagingEnabled", string(*params.MessagingEnabled)) + data.Set("MessagingEnabled", fmt.Sprint(*params.MessagingEnabled)) } if params != nil && params.NationalRoamingDataLimit != nil { - data.Set("NationalRoamingDataLimit", string(*params.NationalRoamingDataLimit)) + data.Set("NationalRoamingDataLimit", fmt.Sprint(*params.NationalRoamingDataLimit)) } if params != nil && params.NationalRoamingEnabled != nil { - data.Set("NationalRoamingEnabled", string(*params.NationalRoamingEnabled)) + data.Set("NationalRoamingEnabled", fmt.Sprint(*params.NationalRoamingEnabled)) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } if params != nil && params.VoiceEnabled != nil { - data.Set("VoiceEnabled", string(*params.VoiceEnabled)) + data.Set("VoiceEnabled", fmt.Sprint(*params.VoiceEnabled)) } @@ -185,13 +189,14 @@ func (c *DefaultApiService) CreateRatePlan(params *CreateRatePlanParams) (*Wirel /* DeleteCommand Method for DeleteCommand Delete a Command instance from your account. - * @param sid The SID of the Command resource to delete. + * @param Sid The SID of the Command resource to delete. */ -func (c *DefaultApiService) DeleteCommand(sid string) (error) { +func (c *DefaultApiService) DeleteCommand(Sid string) (error) { path := "/v1/Commands/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -208,13 +213,14 @@ func (c *DefaultApiService) DeleteCommand(sid string) (error) { /* DeleteRatePlan Method for DeleteRatePlan - * @param sid The SID of the RatePlan resource to delete. + * @param Sid The SID of the RatePlan resource to delete. */ -func (c *DefaultApiService) DeleteRatePlan(sid string) (error) { +func (c *DefaultApiService) DeleteRatePlan(Sid string) (error) { path := "/v1/RatePlans/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -232,13 +238,14 @@ func (c *DefaultApiService) DeleteRatePlan(sid string) (error) { /* DeleteSim Method for DeleteSim Delete a Sim resource on your Account. - * @param sid The SID or the `unique_name` of the Sim resource to delete. + * @param Sid The SID or the `unique_name` of the Sim resource to delete. */ -func (c *DefaultApiService) DeleteSim(sid string) (error) { +func (c *DefaultApiService) DeleteSim(Sid string) (error) { path := "/v1/Sims/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - data := 0 + + data := url.Values{} headers := 0 @@ -256,14 +263,15 @@ func (c *DefaultApiService) DeleteSim(sid string) (error) { /* FetchCommand Method for FetchCommand Fetch a Command instance from your account. - * @param sid The SID of the Command resource to fetch. + * @param Sid The SID of the Command resource to fetch. @return WirelessV1Command */ -func (c *DefaultApiService) FetchCommand(sid string) (*WirelessV1Command, error) { +func (c *DefaultApiService) FetchCommand(Sid string) (*WirelessV1Command, error) { path := "/v1/Commands/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -285,14 +293,15 @@ func (c *DefaultApiService) FetchCommand(sid string) (*WirelessV1Command, error) /* FetchRatePlan Method for FetchRatePlan - * @param sid The SID of the RatePlan resource to fetch. + * @param Sid The SID of the RatePlan resource to fetch. @return WirelessV1RatePlan */ -func (c *DefaultApiService) FetchRatePlan(sid string) (*WirelessV1RatePlan, error) { +func (c *DefaultApiService) FetchRatePlan(Sid string) (*WirelessV1RatePlan, error) { path := "/v1/RatePlans/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -315,14 +324,15 @@ func (c *DefaultApiService) FetchRatePlan(sid string) (*WirelessV1RatePlan, erro /* FetchSim Method for FetchSim Fetch a Sim resource on your Account. - * @param sid The SID or the `unique_name` of the Sim resource to fetch. + * @param Sid The SID or the `unique_name` of the Sim resource to fetch. @return WirelessV1Sim */ -func (c *DefaultApiService) FetchSim(sid string) (*WirelessV1Sim, error) { +func (c *DefaultApiService) FetchSim(Sid string) (*WirelessV1Sim, error) { path := "/v1/Sims/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + - data := 0 + data := url.Values{} headers := 0 @@ -361,20 +371,21 @@ ListAccountUsageRecord Method for ListAccountUsageRecord func (c *DefaultApiService) ListAccountUsageRecord(params *ListAccountUsageRecordParams) (*WirelessV1AccountUsageRecordReadResponse, error) { path := "/v1/UsageRecords" + data := url.Values{} headers := 0 if params != nil && params.End != nil { - data.Set("End", string(*params.End)) + data.Set("End", fmt.Sprint(*params.End)) } if params != nil && params.Start != nil { - data.Set("Start", string(*params.Start)) + data.Set("Start", fmt.Sprint(*params.Start)) } if params != nil && params.Granularity != nil { - data.Set("Granularity", *params.Granularity) + data.Set("Granularity", *params.Granularity) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -415,23 +426,24 @@ Retrieve a list of Commands from your account. func (c *DefaultApiService) ListCommand(params *ListCommandParams) (*WirelessV1CommandReadResponse, error) { path := "/v1/Commands" + data := url.Values{} headers := 0 if params != nil && params.Sim != nil { - data.Set("Sim", *params.Sim) + data.Set("Sim", *params.Sim) } if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } if params != nil && params.Direction != nil { - data.Set("Direction", *params.Direction) + data.Set("Direction", *params.Direction) } if params != nil && params.Transport != nil { - data.Set("Transport", *params.Transport) + data.Set("Transport", *params.Transport) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -456,20 +468,21 @@ type ListDataSessionParams struct { /* ListDataSession Method for ListDataSession - * @param simSid The SID of the [Sim resource](https://www.twilio.com/docs/wireless/api/sim-resource) with the Data Sessions to read. + * @param SimSid The SID of the [Sim resource](https://www.twilio.com/docs/wireless/api/sim-resource) with the Data Sessions to read. * @param optional nil or *ListDataSessionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return WirelessV1SimDataSessionReadResponse */ -func (c *DefaultApiService) ListDataSession(simSid string, params *ListDataSessionParams) (*WirelessV1SimDataSessionReadResponse, error) { +func (c *DefaultApiService) ListDataSession(SimSid string, params *ListDataSessionParams) (*WirelessV1SimDataSessionReadResponse, error) { path := "/v1/Sims/{SimSid}/DataSessions" - path = strings.Replace(path, "{"+"SimSid"+"}", simSid, -1) + path = strings.Replace(path, "{"+"SimSid"+"}", SimSid, -1) + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -501,11 +514,12 @@ ListRatePlan Method for ListRatePlan func (c *DefaultApiService) ListRatePlan(params *ListRatePlanParams) (*WirelessV1RatePlanReadResponse, error) { path := "/v1/RatePlans" + data := url.Values{} headers := 0 if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -548,26 +562,27 @@ Retrieve a list of Sim resources on your Account. func (c *DefaultApiService) ListSim(params *ListSimParams) (*WirelessV1SimReadResponse, error) { path := "/v1/Sims" + data := url.Values{} headers := 0 if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } if params != nil && params.Iccid != nil { - data.Set("Iccid", *params.Iccid) + data.Set("Iccid", *params.Iccid) } if params != nil && params.RatePlan != nil { - data.Set("RatePlan", *params.RatePlan) + data.Set("RatePlan", *params.RatePlan) } if params != nil && params.EId != nil { - data.Set("EId", *params.EId) + data.Set("EId", *params.EId) } if params != nil && params.SimRegistrationCode != nil { - data.Set("SimRegistrationCode", *params.SimRegistrationCode) + data.Set("SimRegistrationCode", *params.SimRegistrationCode) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -595,7 +610,7 @@ type ListUsageRecordParams struct { /* ListUsageRecord Method for ListUsageRecord - * @param simSid The SID of the [Sim resource](https://www.twilio.com/docs/wireless/api/sim-resource) to read the usage from. + * @param SimSid The SID of the [Sim resource](https://www.twilio.com/docs/wireless/api/sim-resource) to read the usage from. * @param optional nil or *ListUsageRecordOpts - Optional Parameters: * @param "End" (time.Time) - Only include usage that occurred on or before this date, specified in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html). The default is the current time. * @param "Start" (time.Time) - Only include usage that has occurred on or after this date, specified in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html). The default is one month before the `end` parameter value. @@ -603,24 +618,25 @@ ListUsageRecord Method for ListUsageRecord * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return WirelessV1SimUsageRecordReadResponse */ -func (c *DefaultApiService) ListUsageRecord(simSid string, params *ListUsageRecordParams) (*WirelessV1SimUsageRecordReadResponse, error) { +func (c *DefaultApiService) ListUsageRecord(SimSid string, params *ListUsageRecordParams) (*WirelessV1SimUsageRecordReadResponse, error) { path := "/v1/Sims/{SimSid}/UsageRecords" - path = strings.Replace(path, "{"+"SimSid"+"}", simSid, -1) + path = strings.Replace(path, "{"+"SimSid"+"}", SimSid, -1) + data := url.Values{} headers := 0 if params != nil && params.End != nil { - data.Set("End", string(*params.End)) + data.Set("End", fmt.Sprint(*params.End)) } if params != nil && params.Start != nil { - data.Set("Start", string(*params.Start)) + data.Set("Start", fmt.Sprint(*params.Start)) } if params != nil && params.Granularity != nil { - data.Set("Granularity", *params.Granularity) + data.Set("Granularity", *params.Granularity) } if params != nil && params.PageSize != nil { - data.Set("PageSize", string(*params.PageSize)) + data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -646,24 +662,25 @@ type UpdateRatePlanParams struct { /* UpdateRatePlan Method for UpdateRatePlan - * @param sid The SID of the RatePlan resource to update. + * @param Sid The SID of the RatePlan resource to update. * @param optional nil or *UpdateRatePlanOpts - Optional Parameters: * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It does not have to be unique. * @param "UniqueName" (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. @return WirelessV1RatePlan */ -func (c *DefaultApiService) UpdateRatePlan(sid string, params *UpdateRatePlanParams) (*WirelessV1RatePlan, error) { +func (c *DefaultApiService) UpdateRatePlan(Sid string, params *UpdateRatePlanParams) (*WirelessV1RatePlan, error) { path := "/v1/RatePlans/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } @@ -706,7 +723,7 @@ type UpdateSimParams struct { /* UpdateSim Method for UpdateSim Updates the given properties of a Sim resource on your Account. - * @param sid The SID or the `unique_name` of the Sim resource to update. + * @param Sid The SID or the `unique_name` of the Sim resource to update. * @param optional nil or *UpdateSimOpts - Optional Parameters: * @param "AccountSid" (string) - The SID of the [Account](https://www.twilio.com/docs/iam/api/account) to which the Sim resource should belong. The Account SID can only be that of the requesting Account or that of a [Subaccount](https://www.twilio.com/docs/iam/api/subaccounts) of the requesting Account. Only valid when the Sim resource's status is `new`. For more information, see the [Move SIMs between Subaccounts documentation](https://www.twilio.com/docs/wireless/api/sim-resource#move-sims-between-subaccounts). * @param "CallbackMethod" (string) - The HTTP method we should use to call `callback_url`. Can be: `POST` or `GET`. The default is `POST`. @@ -728,66 +745,67 @@ Updates the given properties of a Sim resource on your Account. * @param "VoiceUrl" (string) - The URL we should call using the `voice_method` when the SIM-connected device makes a voice call. @return WirelessV1Sim */ -func (c *DefaultApiService) UpdateSim(sid string, params *UpdateSimParams) (*WirelessV1Sim, error) { +func (c *DefaultApiService) UpdateSim(Sid string, params *UpdateSimParams) (*WirelessV1Sim, error) { path := "/v1/Sims/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", sid, -1) + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + data := url.Values{} headers := 0 if params != nil && params.AccountSid != nil { - data.Set("AccountSid", *params.AccountSid) + data.Set("AccountSid", *params.AccountSid) } if params != nil && params.CallbackMethod != nil { - data.Set("CallbackMethod", *params.CallbackMethod) + data.Set("CallbackMethod", *params.CallbackMethod) } if params != nil && params.CallbackUrl != nil { - data.Set("CallbackUrl", *params.CallbackUrl) + data.Set("CallbackUrl", *params.CallbackUrl) } if params != nil && params.CommandsCallbackMethod != nil { - data.Set("CommandsCallbackMethod", *params.CommandsCallbackMethod) + data.Set("CommandsCallbackMethod", *params.CommandsCallbackMethod) } if params != nil && params.CommandsCallbackUrl != nil { - data.Set("CommandsCallbackUrl", *params.CommandsCallbackUrl) + data.Set("CommandsCallbackUrl", *params.CommandsCallbackUrl) } if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) + data.Set("FriendlyName", *params.FriendlyName) } if params != nil && params.RatePlan != nil { - data.Set("RatePlan", *params.RatePlan) + data.Set("RatePlan", *params.RatePlan) } if params != nil && params.ResetStatus != nil { - data.Set("ResetStatus", *params.ResetStatus) + data.Set("ResetStatus", *params.ResetStatus) } if params != nil && params.SmsFallbackMethod != nil { - data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) + data.Set("SmsFallbackMethod", *params.SmsFallbackMethod) } if params != nil && params.SmsFallbackUrl != nil { - data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) + data.Set("SmsFallbackUrl", *params.SmsFallbackUrl) } if params != nil && params.SmsMethod != nil { - data.Set("SmsMethod", *params.SmsMethod) + data.Set("SmsMethod", *params.SmsMethod) } if params != nil && params.SmsUrl != nil { - data.Set("SmsUrl", *params.SmsUrl) + data.Set("SmsUrl", *params.SmsUrl) } if params != nil && params.Status != nil { - data.Set("Status", *params.Status) + data.Set("Status", *params.Status) } if params != nil && params.UniqueName != nil { - data.Set("UniqueName", *params.UniqueName) + data.Set("UniqueName", *params.UniqueName) } if params != nil && params.VoiceFallbackMethod != nil { - data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) + data.Set("VoiceFallbackMethod", *params.VoiceFallbackMethod) } if params != nil && params.VoiceFallbackUrl != nil { - data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) + data.Set("VoiceFallbackUrl", *params.VoiceFallbackUrl) } if params != nil && params.VoiceMethod != nil { - data.Set("VoiceMethod", *params.VoiceMethod) + data.Set("VoiceMethod", *params.VoiceMethod) } if params != nil && params.VoiceUrl != nil { - data.Set("VoiceUrl", *params.VoiceUrl) + data.Set("VoiceUrl", *params.VoiceUrl) } diff --git a/rest/wireless/v1/docs/DefaultApi.md b/rest/wireless/v1/docs/DefaultApi.md index 1aef8b811..2993c0ac9 100644 --- a/rest/wireless/v1/docs/DefaultApi.md +++ b/rest/wireless/v1/docs/DefaultApi.md @@ -46,13 +46,13 @@ Optional parameters are passed through a pointer to a CreateCommandOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **callbackMethod** | **optional.String**| The HTTP method we use to call `callback_url`. Can be: `POST` or `GET`, and the default is `POST`. | - **callbackUrl** | **optional.String**| The URL we call using the `callback_url` when the Command has finished sending, whether the command was delivered or it failed. | - **command** | **optional.String**| The message body of the Command. Can be plain text in text mode or a Base64 encoded byte string in binary mode. | - **commandMode** | **optional.String**| The mode to use when sending the SMS message. Can be: `text` or `binary`. The default SMS mode is `text`. | - **deliveryReceiptRequested** | **optional.Bool**| Whether to request delivery receipt from the recipient. For Commands that request delivery receipt, the Command state transitions to 'delivered' once the server has received a delivery receipt from the device. The default value is `true`. | - **includeSid** | **optional.String**| Whether to include the SID of the command in the message body. Can be: `none`, `start`, or `end`, and the default behavior is `none`. When sending a Command to a SIM in text mode, we can automatically include the SID of the Command in the message body, which could be used to ensure that the device does not process the same Command more than once. A value of `start` will prepend the message with the Command SID, and `end` will append it to the end, separating the Command SID from the message body with a space. The length of the Command SID is included in the 160 character limit so the SMS body must be 128 characters or less before the Command SID is included. | - **sim** | **optional.String**| The `sid` or `unique_name` of the [SIM](https://www.twilio.com/docs/wireless/api/sim-resource) to send the Command to. | + **CallbackMethod** | **optional.String**| The HTTP method we use to call `callback_url`. Can be: `POST` or `GET`, and the default is `POST`. | + **CallbackUrl** | **optional.String**| The URL we call using the `callback_url` when the Command has finished sending, whether the command was delivered or it failed. | + **Command** | **optional.String**| The message body of the Command. Can be plain text in text mode or a Base64 encoded byte string in binary mode. | + **CommandMode** | **optional.String**| The mode to use when sending the SMS message. Can be: `text` or `binary`. The default SMS mode is `text`. | + **DeliveryReceiptRequested** | **optional.Bool**| Whether to request delivery receipt from the recipient. For Commands that request delivery receipt, the Command state transitions to 'delivered' once the server has received a delivery receipt from the device. The default value is `true`. | + **IncludeSid** | **optional.String**| Whether to include the SID of the command in the message body. Can be: `none`, `start`, or `end`, and the default behavior is `none`. When sending a Command to a SIM in text mode, we can automatically include the SID of the Command in the message body, which could be used to ensure that the device does not process the same Command more than once. A value of `start` will prepend the message with the Command SID, and `end` will append it to the end, separating the Command SID from the message body with a space. The length of the Command SID is included in the 160 character limit so the SMS body must be 128 characters or less before the Command SID is included. | + **Sim** | **optional.String**| The `sid` or `unique_name` of the [SIM](https://www.twilio.com/docs/wireless/api/sim-resource) to send the Command to. | ### Return type @@ -93,17 +93,17 @@ Optional parameters are passed through a pointer to a CreateRatePlanOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **dataEnabled** | **optional.Bool**| Whether SIMs can use GPRS/3G/4G/LTE data connectivity. | - **dataLimit** | **optional.Int32**| The total data usage (download and upload combined) in Megabytes that the Network allows during one month on the home network (T-Mobile USA). The metering period begins the day of activation and ends on the same day in the following month. Can be up to 2TB and the default value is `1000`. | - **dataMetering** | **optional.String**| The model used to meter data usage. Can be: `payg` and `quota-1`, `quota-10`, and `quota-50`. Learn more about the available [data metering models](https://www.twilio.com/docs/wireless/api/rateplan-resource#payg-vs-quota-data-plans). | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It does not have to be unique. | - **internationalRoaming** | [**optional.Interface of []string**](string.md)| The list of services that SIMs capable of using GPRS/3G/4G/LTE data connectivity can use outside of the United States. Can be: `data`, `voice`, and `messaging`. | - **internationalRoamingDataLimit** | **optional.Int32**| The total data usage (download and upload combined) in Megabytes that the Network allows during one month when roaming outside the United States. Can be up to 2TB. | - **messagingEnabled** | **optional.Bool**| Whether SIMs can make, send, and receive SMS using [Commands](https://www.twilio.com/docs/wireless/api/command-resource). | - **nationalRoamingDataLimit** | **optional.Int32**| The total data usage (download and upload combined) in Megabytes that the Network allows during one month on non-home networks in the United States. The metering period begins the day of activation and ends on the same day in the following month. Can be up to 2TB. See [national roaming](https://www.twilio.com/docs/wireless/api/rateplan-resource#national-roaming) for more info. | - **nationalRoamingEnabled** | **optional.Bool**| Whether SIMs can roam on networks other than the home network (T-Mobile USA) in the United States. See [national roaming](https://www.twilio.com/docs/wireless/api/rateplan-resource#national-roaming). | - **uniqueName** | **optional.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. | - **voiceEnabled** | **optional.Bool**| Whether SIMs can make and receive voice calls. | + **DataEnabled** | **optional.Bool**| Whether SIMs can use GPRS/3G/4G/LTE data connectivity. | + **DataLimit** | **optional.Int32**| The total data usage (download and upload combined) in Megabytes that the Network allows during one month on the home network (T-Mobile USA). The metering period begins the day of activation and ends on the same day in the following month. Can be up to 2TB and the default value is `1000`. | + **DataMetering** | **optional.String**| The model used to meter data usage. Can be: `payg` and `quota-1`, `quota-10`, and `quota-50`. Learn more about the available [data metering models](https://www.twilio.com/docs/wireless/api/rateplan-resource#payg-vs-quota-data-plans). | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It does not have to be unique. | + **InternationalRoaming** | [**optional.Interface of []string**](string.md)| The list of services that SIMs capable of using GPRS/3G/4G/LTE data connectivity can use outside of the United States. Can be: `data`, `voice`, and `messaging`. | + **InternationalRoamingDataLimit** | **optional.Int32**| The total data usage (download and upload combined) in Megabytes that the Network allows during one month when roaming outside the United States. Can be up to 2TB. | + **MessagingEnabled** | **optional.Bool**| Whether SIMs can make, send, and receive SMS using [Commands](https://www.twilio.com/docs/wireless/api/command-resource). | + **NationalRoamingDataLimit** | **optional.Int32**| The total data usage (download and upload combined) in Megabytes that the Network allows during one month on non-home networks in the United States. The metering period begins the day of activation and ends on the same day in the following month. Can be up to 2TB. See [national roaming](https://www.twilio.com/docs/wireless/api/rateplan-resource#national-roaming) for more info. | + **NationalRoamingEnabled** | **optional.Bool**| Whether SIMs can roam on networks other than the home network (T-Mobile USA) in the United States. See [national roaming](https://www.twilio.com/docs/wireless/api/rateplan-resource#national-roaming). | + **UniqueName** | **optional.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. | + **VoiceEnabled** | **optional.Bool**| Whether SIMs can make and receive voice calls. | ### Return type @@ -125,7 +125,7 @@ Name | Type | Description | Notes ## DeleteCommand -> DeleteCommand(ctx, sid) +> DeleteCommand(ctx, Sid) @@ -137,7 +137,7 @@ Delete a Command instance from your account. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Command resource to delete. | +**Sid** | **string**| The SID of the Command resource to delete. | ### Return type @@ -159,7 +159,7 @@ Name | Type | Description | Notes ## DeleteRatePlan -> DeleteRatePlan(ctx, sid) +> DeleteRatePlan(ctx, Sid) @@ -169,7 +169,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the RatePlan resource to delete. | +**Sid** | **string**| The SID of the RatePlan resource to delete. | ### Return type @@ -191,7 +191,7 @@ Name | Type | Description | Notes ## DeleteSim -> DeleteSim(ctx, sid) +> DeleteSim(ctx, Sid) @@ -203,7 +203,7 @@ Delete a Sim resource on your Account. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID or the `unique_name` of the Sim resource to delete. | +**Sid** | **string**| The SID or the `unique_name` of the Sim resource to delete. | ### Return type @@ -225,7 +225,7 @@ Name | Type | Description | Notes ## FetchCommand -> WirelessV1Command FetchCommand(ctx, sid) +> WirelessV1Command FetchCommand(ctx, Sid) @@ -237,7 +237,7 @@ Fetch a Command instance from your account. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the Command resource to fetch. | +**Sid** | **string**| The SID of the Command resource to fetch. | ### Return type @@ -259,7 +259,7 @@ Name | Type | Description | Notes ## FetchRatePlan -> WirelessV1RatePlan FetchRatePlan(ctx, sid) +> WirelessV1RatePlan FetchRatePlan(ctx, Sid) @@ -269,7 +269,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the RatePlan resource to fetch. | +**Sid** | **string**| The SID of the RatePlan resource to fetch. | ### Return type @@ -291,7 +291,7 @@ Name | Type | Description | Notes ## FetchSim -> WirelessV1Sim FetchSim(ctx, sid) +> WirelessV1Sim FetchSim(ctx, Sid) @@ -303,7 +303,7 @@ Fetch a Sim resource on your Account. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID or the `unique_name` of the Sim resource to fetch. | +**Sid** | **string**| The SID or the `unique_name` of the Sim resource to fetch. | ### Return type @@ -344,10 +344,10 @@ Optional parameters are passed through a pointer to a ListAccountUsageRecordOpts Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **end** | **optional.Time**| Only include usage that has occurred on or before this date. Format is [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html). | - **start** | **optional.Time**| Only include usage that has occurred on or after this date. Format is [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html). | - **granularity** | **optional.String**| How to summarize the usage by time. Can be: `daily`, `hourly`, or `all`. A value of `all` returns one Usage Record that describes the usage for the entire period. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **End** | **optional.Time**| Only include usage that has occurred on or before this date. Format is [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html). | + **Start** | **optional.Time**| Only include usage that has occurred on or after this date. Format is [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html). | + **Granularity** | **optional.String**| How to summarize the usage by time. Can be: `daily`, `hourly`, or `all`. A value of `all` returns one Usage Record that describes the usage for the entire period. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -390,11 +390,11 @@ Optional parameters are passed through a pointer to a ListCommandOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **sim** | **optional.String**| The `sid` or `unique_name` of the [Sim resources](https://www.twilio.com/docs/wireless/api/sim-resource) to read. | - **status** | **optional.String**| The status of the resources to read. Can be: `queued`, `sent`, `delivered`, `received`, or `failed`. | - **direction** | **optional.String**| Only return Commands with this direction value. | - **transport** | **optional.String**| Only return Commands with this transport value. Can be: `sms` or `ip`. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Sim** | **optional.String**| The `sid` or `unique_name` of the [Sim resources](https://www.twilio.com/docs/wireless/api/sim-resource) to read. | + **Status** | **optional.String**| The status of the resources to read. Can be: `queued`, `sent`, `delivered`, `received`, or `failed`. | + **Direction** | **optional.String**| Only return Commands with this direction value. | + **Transport** | **optional.String**| Only return Commands with this transport value. Can be: `sms` or `ip`. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -416,7 +416,7 @@ Name | Type | Description | Notes ## ListDataSession -> WirelessV1SimDataSessionReadResponse ListDataSession(ctx, simSid, optional) +> WirelessV1SimDataSessionReadResponse ListDataSession(ctx, SimSid, optional) @@ -426,7 +426,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**simSid** | **string**| The SID of the [Sim resource](https://www.twilio.com/docs/wireless/api/sim-resource) with the Data Sessions to read. | +**SimSid** | **string**| The SID of the [Sim resource](https://www.twilio.com/docs/wireless/api/sim-resource) with the Data Sessions to read. | **optional** | ***ListDataSessionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -437,7 +437,7 @@ Optional parameters are passed through a pointer to a ListDataSessionOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -478,7 +478,7 @@ Optional parameters are passed through a pointer to a ListRatePlanOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -521,12 +521,12 @@ Optional parameters are passed through a pointer to a ListSimOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **status** | **optional.String**| Only return Sim resources with this status. | - **iccid** | **optional.String**| Only return Sim resources with this ICCID. This will return a list with a maximum size of 1. | - **ratePlan** | **optional.String**| The SID or unique name of a [RatePlan resource](https://www.twilio.com/docs/wireless/api/rateplan-resource). Only return Sim resources assigned to this RatePlan resource. | - **eId** | **optional.String**| Deprecated. | - **simRegistrationCode** | **optional.String**| Only return Sim resources with this registration code. This will return a list with a maximum size of 1. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **Status** | **optional.String**| Only return Sim resources with this status. | + **Iccid** | **optional.String**| Only return Sim resources with this ICCID. This will return a list with a maximum size of 1. | + **RatePlan** | **optional.String**| The SID or unique name of a [RatePlan resource](https://www.twilio.com/docs/wireless/api/rateplan-resource). Only return Sim resources assigned to this RatePlan resource. | + **EId** | **optional.String**| Deprecated. | + **SimRegistrationCode** | **optional.String**| Only return Sim resources with this registration code. This will return a list with a maximum size of 1. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -548,7 +548,7 @@ Name | Type | Description | Notes ## ListUsageRecord -> WirelessV1SimUsageRecordReadResponse ListUsageRecord(ctx, simSid, optional) +> WirelessV1SimUsageRecordReadResponse ListUsageRecord(ctx, SimSid, optional) @@ -558,7 +558,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**simSid** | **string**| The SID of the [Sim resource](https://www.twilio.com/docs/wireless/api/sim-resource) to read the usage from. | +**SimSid** | **string**| The SID of the [Sim resource](https://www.twilio.com/docs/wireless/api/sim-resource) to read the usage from. | **optional** | ***ListUsageRecordOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -569,10 +569,10 @@ Optional parameters are passed through a pointer to a ListUsageRecordOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **end** | **optional.Time**| Only include usage that occurred on or before this date, specified in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html). The default is the current time. | - **start** | **optional.Time**| Only include usage that has occurred on or after this date, specified in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html). The default is one month before the `end` parameter value. | - **granularity** | **optional.String**| How to summarize the usage by time. Can be: `daily`, `hourly`, or `all`. The default is `all`. A value of `all` returns one Usage Record that describes the usage for the entire period. | - **pageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + **End** | **optional.Time**| Only include usage that occurred on or before this date, specified in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html). The default is the current time. | + **Start** | **optional.Time**| Only include usage that has occurred on or after this date, specified in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html). The default is one month before the `end` parameter value. | + **Granularity** | **optional.String**| How to summarize the usage by time. Can be: `daily`, `hourly`, or `all`. The default is `all`. A value of `all` returns one Usage Record that describes the usage for the entire period. | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type @@ -594,7 +594,7 @@ Name | Type | Description | Notes ## UpdateRatePlan -> WirelessV1RatePlan UpdateRatePlan(ctx, sid, optional) +> WirelessV1RatePlan UpdateRatePlan(ctx, Sid, optional) @@ -604,7 +604,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID of the RatePlan resource to update. | +**Sid** | **string**| The SID of the RatePlan resource to update. | **optional** | ***UpdateRatePlanOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -615,8 +615,8 @@ Optional parameters are passed through a pointer to a UpdateRatePlanOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **friendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It does not have to be unique. | - **uniqueName** | **optional.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. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the resource. It does not have to be unique. | + **UniqueName** | **optional.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. | ### Return type @@ -638,7 +638,7 @@ Name | Type | Description | Notes ## UpdateSim -> WirelessV1Sim UpdateSim(ctx, sid, optional) +> WirelessV1Sim UpdateSim(ctx, Sid, optional) @@ -650,7 +650,7 @@ Updates the given properties of a Sim resource on your Account. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**sid** | **string**| The SID or the `unique_name` of the Sim resource to update. | +**Sid** | **string**| The SID or the `unique_name` of the Sim resource to update. | **optional** | ***UpdateSimOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -661,24 +661,24 @@ Optional parameters are passed through a pointer to a UpdateSimOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **accountSid** | **optional.String**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) to which the Sim resource should belong. The Account SID can only be that of the requesting Account or that of a [Subaccount](https://www.twilio.com/docs/iam/api/subaccounts) of the requesting Account. Only valid when the Sim resource's status is `new`. For more information, see the [Move SIMs between Subaccounts documentation](https://www.twilio.com/docs/wireless/api/sim-resource#move-sims-between-subaccounts). | - **callbackMethod** | **optional.String**| The HTTP method we should use to call `callback_url`. Can be: `POST` or `GET`. The default is `POST`. | - **callbackUrl** | **optional.String**| The URL we should call using the `callback_url` when the SIM has finished updating. When the SIM transitions from `new` to `ready` or from any status to `deactivated`, we call this URL when the status changes to an intermediate status (`ready` or `deactivated`) and again when the status changes to its final status (`active` or `canceled`). | - **commandsCallbackMethod** | **optional.String**| The HTTP method we should use to call `commands_callback_url`. Can be: `POST` or `GET`. The default is `POST`. | - **commandsCallbackUrl** | **optional.String**| The URL we should call using the `commands_callback_method` when the SIM sends a [Command](https://www.twilio.com/docs/wireless/api/command-resource). Your server should respond with an HTTP status code in the 200 range; any response body is ignored. | - **friendlyName** | **optional.String**| A descriptive string that you create to describe the Sim resource. It does not need to be unique. | - **ratePlan** | **optional.String**| The SID or unique name of the [RatePlan resource](https://www.twilio.com/docs/wireless/api/rateplan-resource) to which the Sim resource should be assigned. | - **resetStatus** | **optional.String**| Initiate a connectivity reset on the SIM. Set to `resetting` to initiate a connectivity reset on the SIM. No other value is valid. | - **smsFallbackMethod** | **optional.String**| The HTTP method we should use to call `sms_fallback_url`. Can be: `GET` or `POST`. Default is `POST`. | - **smsFallbackUrl** | **optional.String**| The URL we should call using the `sms_fallback_method` when an error occurs while retrieving or executing the TwiML requested from `sms_url`. | - **smsMethod** | **optional.String**| The HTTP method we should use to call `sms_url`. Can be: `GET` or `POST`. Default is `POST`. | - **smsUrl** | **optional.String**| The URL we should call using the `sms_method` when the SIM-connected device sends an SMS message that is not a [Command](https://www.twilio.com/docs/wireless/api/command-resource). | - **status** | **optional.String**| The new status of the Sim resource. Can be: `ready`, `active`, `suspended`, or `deactivated`. | - **uniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used in place of the `sid` in the URL path to address the resource. | - **voiceFallbackMethod** | **optional.String**| The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. | - **voiceFallbackUrl** | **optional.String**| The URL we should call using the `voice_fallback_method` when an error occurs while retrieving or executing the TwiML requested from `voice_url`. | - **voiceMethod** | **optional.String**| The HTTP method we should use when we call `voice_url`. Can be: `GET` or `POST`. | - **voiceUrl** | **optional.String**| The URL we should call using the `voice_method` when the SIM-connected device makes a voice call. | + **AccountSid** | **optional.String**| The SID of the [Account](https://www.twilio.com/docs/iam/api/account) to which the Sim resource should belong. The Account SID can only be that of the requesting Account or that of a [Subaccount](https://www.twilio.com/docs/iam/api/subaccounts) of the requesting Account. Only valid when the Sim resource's status is `new`. For more information, see the [Move SIMs between Subaccounts documentation](https://www.twilio.com/docs/wireless/api/sim-resource#move-sims-between-subaccounts). | + **CallbackMethod** | **optional.String**| The HTTP method we should use to call `callback_url`. Can be: `POST` or `GET`. The default is `POST`. | + **CallbackUrl** | **optional.String**| The URL we should call using the `callback_url` when the SIM has finished updating. When the SIM transitions from `new` to `ready` or from any status to `deactivated`, we call this URL when the status changes to an intermediate status (`ready` or `deactivated`) and again when the status changes to its final status (`active` or `canceled`). | + **CommandsCallbackMethod** | **optional.String**| The HTTP method we should use to call `commands_callback_url`. Can be: `POST` or `GET`. The default is `POST`. | + **CommandsCallbackUrl** | **optional.String**| The URL we should call using the `commands_callback_method` when the SIM sends a [Command](https://www.twilio.com/docs/wireless/api/command-resource). Your server should respond with an HTTP status code in the 200 range; any response body is ignored. | + **FriendlyName** | **optional.String**| A descriptive string that you create to describe the Sim resource. It does not need to be unique. | + **RatePlan** | **optional.String**| The SID or unique name of the [RatePlan resource](https://www.twilio.com/docs/wireless/api/rateplan-resource) to which the Sim resource should be assigned. | + **ResetStatus** | **optional.String**| Initiate a connectivity reset on the SIM. Set to `resetting` to initiate a connectivity reset on the SIM. No other value is valid. | + **SmsFallbackMethod** | **optional.String**| The HTTP method we should use to call `sms_fallback_url`. Can be: `GET` or `POST`. Default is `POST`. | + **SmsFallbackUrl** | **optional.String**| The URL we should call using the `sms_fallback_method` when an error occurs while retrieving or executing the TwiML requested from `sms_url`. | + **SmsMethod** | **optional.String**| The HTTP method we should use to call `sms_url`. Can be: `GET` or `POST`. Default is `POST`. | + **SmsUrl** | **optional.String**| The URL we should call using the `sms_method` when the SIM-connected device sends an SMS message that is not a [Command](https://www.twilio.com/docs/wireless/api/command-resource). | + **Status** | **optional.String**| The new status of the Sim resource. Can be: `ready`, `active`, `suspended`, or `deactivated`. | + **UniqueName** | **optional.String**| An application-defined string that uniquely identifies the resource. It can be used in place of the `sid` in the URL path to address the resource. | + **VoiceFallbackMethod** | **optional.String**| The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`. | + **VoiceFallbackUrl** | **optional.String**| The URL we should call using the `voice_fallback_method` when an error occurs while retrieving or executing the TwiML requested from `voice_url`. | + **VoiceMethod** | **optional.String**| The HTTP method we should use when we call `voice_url`. Can be: `GET` or `POST`. | + **VoiceUrl** | **optional.String**| The URL we should call using the `voice_method` when the SIM-connected device makes a voice call. | ### Return type diff --git a/rest/wireless/v1/model_wireless_v1_account_usage_record.go b/rest/wireless/v1/model_wireless_v1_account_usage_record.go index e30caed1a..0886b26c9 100644 --- a/rest/wireless/v1/model_wireless_v1_account_usage_record.go +++ b/rest/wireless/v1/model_wireless_v1_account_usage_record.go @@ -11,8 +11,8 @@ package openapi // WirelessV1AccountUsageRecord struct for WirelessV1AccountUsageRecord type WirelessV1AccountUsageRecord struct { - AccountSid string `json:"account_sid,omitempty"` - Commands map[string]interface{} `json:"commands,omitempty"` - Data map[string]interface{} `json:"data,omitempty"` - Period map[string]interface{} `json:"period,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Commands map[string]interface{} `json:"Commands,omitempty"` + Data map[string]interface{} `json:"Data,omitempty"` + Period map[string]interface{} `json:"Period,omitempty"` } diff --git a/rest/wireless/v1/model_wireless_v1_account_usage_record_read_response.go b/rest/wireless/v1/model_wireless_v1_account_usage_record_read_response.go index 854847593..7824bdb90 100644 --- a/rest/wireless/v1/model_wireless_v1_account_usage_record_read_response.go +++ b/rest/wireless/v1/model_wireless_v1_account_usage_record_read_response.go @@ -11,6 +11,6 @@ package openapi // WirelessV1AccountUsageRecordReadResponse struct for WirelessV1AccountUsageRecordReadResponse type WirelessV1AccountUsageRecordReadResponse struct { - Meta WirelessV1CommandReadResponseMeta `json:"meta,omitempty"` - UsageRecords []WirelessV1AccountUsageRecord `json:"usage_records,omitempty"` + Meta WirelessV1CommandReadResponseMeta `json:"Meta,omitempty"` + UsageRecords []WirelessV1AccountUsageRecord `json:"UsageRecords,omitempty"` } diff --git a/rest/wireless/v1/model_wireless_v1_command.go b/rest/wireless/v1/model_wireless_v1_command.go index 627c3a204..7e1875f7d 100644 --- a/rest/wireless/v1/model_wireless_v1_command.go +++ b/rest/wireless/v1/model_wireless_v1_command.go @@ -14,16 +14,16 @@ import ( ) // WirelessV1Command struct for WirelessV1Command type WirelessV1Command struct { - AccountSid string `json:"account_sid,omitempty"` - Command string `json:"command,omitempty"` - CommandMode string `json:"command_mode,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - DeliveryReceiptRequested bool `json:"delivery_receipt_requested,omitempty"` - Direction string `json:"direction,omitempty"` - Sid string `json:"sid,omitempty"` - SimSid string `json:"sim_sid,omitempty"` - Status string `json:"status,omitempty"` - Transport string `json:"transport,omitempty"` - Url string `json:"url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Command string `json:"Command,omitempty"` + CommandMode string `json:"CommandMode,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + DeliveryReceiptRequested bool `json:"DeliveryReceiptRequested,omitempty"` + Direction string `json:"Direction,omitempty"` + Sid string `json:"Sid,omitempty"` + SimSid string `json:"SimSid,omitempty"` + Status string `json:"Status,omitempty"` + Transport string `json:"Transport,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/wireless/v1/model_wireless_v1_command_read_response.go b/rest/wireless/v1/model_wireless_v1_command_read_response.go index 7d3b70b19..4fa3a1ccd 100644 --- a/rest/wireless/v1/model_wireless_v1_command_read_response.go +++ b/rest/wireless/v1/model_wireless_v1_command_read_response.go @@ -11,6 +11,6 @@ package openapi // WirelessV1CommandReadResponse struct for WirelessV1CommandReadResponse type WirelessV1CommandReadResponse struct { - Commands []WirelessV1Command `json:"commands,omitempty"` - Meta WirelessV1CommandReadResponseMeta `json:"meta,omitempty"` + Commands []WirelessV1Command `json:"Commands,omitempty"` + Meta WirelessV1CommandReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/wireless/v1/model_wireless_v1_command_read_response_meta.go b/rest/wireless/v1/model_wireless_v1_command_read_response_meta.go index 22b8011ef..919325926 100644 --- a/rest/wireless/v1/model_wireless_v1_command_read_response_meta.go +++ b/rest/wireless/v1/model_wireless_v1_command_read_response_meta.go @@ -11,11 +11,11 @@ package openapi // WirelessV1CommandReadResponseMeta struct for WirelessV1CommandReadResponseMeta type WirelessV1CommandReadResponseMeta struct { - FirstPageUrl string `json:"first_page_url,omitempty"` - Key string `json:"key,omitempty"` - NextPageUrl string `json:"next_page_url,omitempty"` - Page int32 `json:"page,omitempty"` - PageSize int32 `json:"page_size,omitempty"` - PreviousPageUrl string `json:"previous_page_url,omitempty"` - Url string `json:"url,omitempty"` + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` } diff --git a/rest/wireless/v1/model_wireless_v1_rate_plan.go b/rest/wireless/v1/model_wireless_v1_rate_plan.go index b2df1b543..3b2cdc982 100644 --- a/rest/wireless/v1/model_wireless_v1_rate_plan.go +++ b/rest/wireless/v1/model_wireless_v1_rate_plan.go @@ -14,20 +14,20 @@ import ( ) // WirelessV1RatePlan struct for WirelessV1RatePlan type WirelessV1RatePlan struct { - AccountSid string `json:"account_sid,omitempty"` - DataEnabled bool `json:"data_enabled,omitempty"` - DataLimit int32 `json:"data_limit,omitempty"` - DataMetering string `json:"data_metering,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - InternationalRoaming []string `json:"international_roaming,omitempty"` - InternationalRoamingDataLimit int32 `json:"international_roaming_data_limit,omitempty"` - MessagingEnabled bool `json:"messaging_enabled,omitempty"` - NationalRoamingDataLimit int32 `json:"national_roaming_data_limit,omitempty"` - NationalRoamingEnabled bool `json:"national_roaming_enabled,omitempty"` - Sid string `json:"sid,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` - VoiceEnabled bool `json:"voice_enabled,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + DataEnabled bool `json:"DataEnabled,omitempty"` + DataLimit int32 `json:"DataLimit,omitempty"` + DataMetering string `json:"DataMetering,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + InternationalRoaming []string `json:"InternationalRoaming,omitempty"` + InternationalRoamingDataLimit int32 `json:"InternationalRoamingDataLimit,omitempty"` + MessagingEnabled bool `json:"MessagingEnabled,omitempty"` + NationalRoamingDataLimit int32 `json:"NationalRoamingDataLimit,omitempty"` + NationalRoamingEnabled bool `json:"NationalRoamingEnabled,omitempty"` + Sid string `json:"Sid,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` + VoiceEnabled bool `json:"VoiceEnabled,omitempty"` } diff --git a/rest/wireless/v1/model_wireless_v1_rate_plan_read_response.go b/rest/wireless/v1/model_wireless_v1_rate_plan_read_response.go index 8956e4c99..83f4443d0 100644 --- a/rest/wireless/v1/model_wireless_v1_rate_plan_read_response.go +++ b/rest/wireless/v1/model_wireless_v1_rate_plan_read_response.go @@ -11,6 +11,6 @@ package openapi // WirelessV1RatePlanReadResponse struct for WirelessV1RatePlanReadResponse type WirelessV1RatePlanReadResponse struct { - Meta WirelessV1CommandReadResponseMeta `json:"meta,omitempty"` - RatePlans []WirelessV1RatePlan `json:"rate_plans,omitempty"` + Meta WirelessV1CommandReadResponseMeta `json:"Meta,omitempty"` + RatePlans []WirelessV1RatePlan `json:"RatePlans,omitempty"` } diff --git a/rest/wireless/v1/model_wireless_v1_sim.go b/rest/wireless/v1/model_wireless_v1_sim.go index 5aae32562..208fe905a 100644 --- a/rest/wireless/v1/model_wireless_v1_sim.go +++ b/rest/wireless/v1/model_wireless_v1_sim.go @@ -14,28 +14,28 @@ import ( ) // WirelessV1Sim struct for WirelessV1Sim type WirelessV1Sim struct { - AccountSid string `json:"account_sid,omitempty"` - CommandsCallbackMethod string `json:"commands_callback_method,omitempty"` - CommandsCallbackUrl string `json:"commands_callback_url,omitempty"` - DateCreated time.Time `json:"date_created,omitempty"` - DateUpdated time.Time `json:"date_updated,omitempty"` - EId string `json:"e_id,omitempty"` - FriendlyName string `json:"friendly_name,omitempty"` - Iccid string `json:"iccid,omitempty"` - IpAddress string `json:"ip_address,omitempty"` - Links map[string]interface{} `json:"links,omitempty"` - RatePlanSid string `json:"rate_plan_sid,omitempty"` - ResetStatus string `json:"reset_status,omitempty"` - Sid string `json:"sid,omitempty"` - SmsFallbackMethod string `json:"sms_fallback_method,omitempty"` - SmsFallbackUrl string `json:"sms_fallback_url,omitempty"` - SmsMethod string `json:"sms_method,omitempty"` - SmsUrl string `json:"sms_url,omitempty"` - Status string `json:"status,omitempty"` - UniqueName string `json:"unique_name,omitempty"` - Url string `json:"url,omitempty"` - VoiceFallbackMethod string `json:"voice_fallback_method,omitempty"` - VoiceFallbackUrl string `json:"voice_fallback_url,omitempty"` - VoiceMethod string `json:"voice_method,omitempty"` - VoiceUrl string `json:"voice_url,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + CommandsCallbackMethod string `json:"CommandsCallbackMethod,omitempty"` + CommandsCallbackUrl string `json:"CommandsCallbackUrl,omitempty"` + DateCreated time.Time `json:"DateCreated,omitempty"` + DateUpdated time.Time `json:"DateUpdated,omitempty"` + EId string `json:"EId,omitempty"` + FriendlyName string `json:"FriendlyName,omitempty"` + Iccid string `json:"Iccid,omitempty"` + IpAddress string `json:"IpAddress,omitempty"` + Links map[string]interface{} `json:"Links,omitempty"` + RatePlanSid string `json:"RatePlanSid,omitempty"` + ResetStatus string `json:"ResetStatus,omitempty"` + Sid string `json:"Sid,omitempty"` + SmsFallbackMethod string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl string `json:"SmsFallbackUrl,omitempty"` + SmsMethod string `json:"SmsMethod,omitempty"` + SmsUrl string `json:"SmsUrl,omitempty"` + Status string `json:"Status,omitempty"` + UniqueName string `json:"UniqueName,omitempty"` + Url string `json:"Url,omitempty"` + VoiceFallbackMethod string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod string `json:"VoiceMethod,omitempty"` + VoiceUrl string `json:"VoiceUrl,omitempty"` } diff --git a/rest/wireless/v1/model_wireless_v1_sim_data_session.go b/rest/wireless/v1/model_wireless_v1_sim_data_session.go index 0bef2445b..eec69395d 100644 --- a/rest/wireless/v1/model_wireless_v1_sim_data_session.go +++ b/rest/wireless/v1/model_wireless_v1_sim_data_session.go @@ -14,20 +14,20 @@ import ( ) // WirelessV1SimDataSession struct for WirelessV1SimDataSession type WirelessV1SimDataSession struct { - AccountSid string `json:"account_sid,omitempty"` - CellId string `json:"cell_id,omitempty"` - CellLocationEstimate map[string]interface{} `json:"cell_location_estimate,omitempty"` - End time.Time `json:"end,omitempty"` - Imei string `json:"imei,omitempty"` - LastUpdated time.Time `json:"last_updated,omitempty"` - OperatorCountry string `json:"operator_country,omitempty"` - OperatorMcc string `json:"operator_mcc,omitempty"` - OperatorMnc string `json:"operator_mnc,omitempty"` - OperatorName string `json:"operator_name,omitempty"` - PacketsDownloaded int32 `json:"packets_downloaded,omitempty"` - PacketsUploaded int32 `json:"packets_uploaded,omitempty"` - RadioLink string `json:"radio_link,omitempty"` - Sid string `json:"sid,omitempty"` - SimSid string `json:"sim_sid,omitempty"` - Start time.Time `json:"start,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + CellId string `json:"CellId,omitempty"` + CellLocationEstimate map[string]interface{} `json:"CellLocationEstimate,omitempty"` + End time.Time `json:"End,omitempty"` + Imei string `json:"Imei,omitempty"` + LastUpdated time.Time `json:"LastUpdated,omitempty"` + OperatorCountry string `json:"OperatorCountry,omitempty"` + OperatorMcc string `json:"OperatorMcc,omitempty"` + OperatorMnc string `json:"OperatorMnc,omitempty"` + OperatorName string `json:"OperatorName,omitempty"` + PacketsDownloaded int32 `json:"PacketsDownloaded,omitempty"` + PacketsUploaded int32 `json:"PacketsUploaded,omitempty"` + RadioLink string `json:"RadioLink,omitempty"` + Sid string `json:"Sid,omitempty"` + SimSid string `json:"SimSid,omitempty"` + Start time.Time `json:"Start,omitempty"` } diff --git a/rest/wireless/v1/model_wireless_v1_sim_data_session_read_response.go b/rest/wireless/v1/model_wireless_v1_sim_data_session_read_response.go index a94d6ebf6..3d9f9e389 100644 --- a/rest/wireless/v1/model_wireless_v1_sim_data_session_read_response.go +++ b/rest/wireless/v1/model_wireless_v1_sim_data_session_read_response.go @@ -11,6 +11,6 @@ package openapi // WirelessV1SimDataSessionReadResponse struct for WirelessV1SimDataSessionReadResponse type WirelessV1SimDataSessionReadResponse struct { - DataSessions []WirelessV1SimDataSession `json:"data_sessions,omitempty"` - Meta WirelessV1CommandReadResponseMeta `json:"meta,omitempty"` + DataSessions []WirelessV1SimDataSession `json:"DataSessions,omitempty"` + Meta WirelessV1CommandReadResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/wireless/v1/model_wireless_v1_sim_read_response.go b/rest/wireless/v1/model_wireless_v1_sim_read_response.go index a4ecd47d7..329961d96 100644 --- a/rest/wireless/v1/model_wireless_v1_sim_read_response.go +++ b/rest/wireless/v1/model_wireless_v1_sim_read_response.go @@ -11,6 +11,6 @@ package openapi // WirelessV1SimReadResponse struct for WirelessV1SimReadResponse type WirelessV1SimReadResponse struct { - Meta WirelessV1CommandReadResponseMeta `json:"meta,omitempty"` - Sims []WirelessV1Sim `json:"sims,omitempty"` + Meta WirelessV1CommandReadResponseMeta `json:"Meta,omitempty"` + Sims []WirelessV1Sim `json:"Sims,omitempty"` } diff --git a/rest/wireless/v1/model_wireless_v1_sim_usage_record.go b/rest/wireless/v1/model_wireless_v1_sim_usage_record.go index da633b016..42e9c0e67 100644 --- a/rest/wireless/v1/model_wireless_v1_sim_usage_record.go +++ b/rest/wireless/v1/model_wireless_v1_sim_usage_record.go @@ -11,9 +11,9 @@ package openapi // WirelessV1SimUsageRecord struct for WirelessV1SimUsageRecord type WirelessV1SimUsageRecord struct { - AccountSid string `json:"account_sid,omitempty"` - Commands map[string]interface{} `json:"commands,omitempty"` - Data map[string]interface{} `json:"data,omitempty"` - Period map[string]interface{} `json:"period,omitempty"` - SimSid string `json:"sim_sid,omitempty"` + AccountSid string `json:"AccountSid,omitempty"` + Commands map[string]interface{} `json:"Commands,omitempty"` + Data map[string]interface{} `json:"Data,omitempty"` + Period map[string]interface{} `json:"Period,omitempty"` + SimSid string `json:"SimSid,omitempty"` } diff --git a/rest/wireless/v1/model_wireless_v1_sim_usage_record_read_response.go b/rest/wireless/v1/model_wireless_v1_sim_usage_record_read_response.go index 38f3a730e..0c1b74df3 100644 --- a/rest/wireless/v1/model_wireless_v1_sim_usage_record_read_response.go +++ b/rest/wireless/v1/model_wireless_v1_sim_usage_record_read_response.go @@ -11,6 +11,6 @@ package openapi // WirelessV1SimUsageRecordReadResponse struct for WirelessV1SimUsageRecordReadResponse type WirelessV1SimUsageRecordReadResponse struct { - Meta WirelessV1CommandReadResponseMeta `json:"meta,omitempty"` - UsageRecords []WirelessV1SimUsageRecord `json:"usage_records,omitempty"` + Meta WirelessV1CommandReadResponseMeta `json:"Meta,omitempty"` + UsageRecords []WirelessV1SimUsageRecord `json:"UsageRecords,omitempty"` } diff --git a/twilio/twilio.go b/twilio/twilio.go index b91d8f3f6..fb4cb9498 100644 --- a/twilio/twilio.go +++ b/twilio/twilio.go @@ -3,7 +3,7 @@ package twilio import ( "github.com/twilio/twilio-go/client" - studioV2 "github.com/twilio/twilio-go/studio/v2" + studioV2 "github.com/twilio/twilio-go/rest/studio/v2" "time" ) From 026acfa76119df7fed5d3a13dd8304596fdc3601 Mon Sep 17 00:00:00 2001 From: Shwetha Radhakrishna Date: Sat, 23 Jan 2021 21:07:57 -0700 Subject: [PATCH 11/20] Regenerating with modified templates --- rest/chat/v1/api_default.go | 168 +++++++++++----------- rest/chat/v2/api_default.go | 116 ++++++++-------- rest/conversations/v1/api_default.go | 200 +++++++++++++-------------- rest/flex/v1/api_default.go | 72 +++++----- rest/ip/messaging/api_default.go | 116 ++++++++-------- rest/verify/v2/api_default.go | 66 ++++----- 6 files changed, 369 insertions(+), 369 deletions(-) diff --git a/rest/chat/v1/api_default.go b/rest/chat/v1/api_default.go index aa41aa2e4..623ef326c 100644 --- a/rest/chat/v1/api_default.go +++ b/rest/chat/v1/api_default.go @@ -1536,16 +1536,16 @@ type UpdateServiceParams struct { DefaultChannelRoleSid *string `json:"DefaultChannelRoleSid,omitempty"` DefaultServiceRoleSid *string `json:"DefaultServiceRoleSid,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` - LimitsChannelMembers *int32 `json:"LimitsChannelMembers,omitempty"` - LimitsUserChannels *int32 `json:"LimitsUserChannels,omitempty"` - NotificationsAddedToChannelEnabled *bool `json:"NotificationsAddedToChannelEnabled,omitempty"` - NotificationsAddedToChannelTemplate *string `json:"NotificationsAddedToChannelTemplate,omitempty"` - NotificationsInvitedToChannelEnabled *bool `json:"NotificationsInvitedToChannelEnabled,omitempty"` - NotificationsInvitedToChannelTemplate *string `json:"NotificationsInvitedToChannelTemplate,omitempty"` - NotificationsNewMessageEnabled *bool `json:"NotificationsNewMessageEnabled,omitempty"` - NotificationsNewMessageTemplate *string `json:"NotificationsNewMessageTemplate,omitempty"` - NotificationsRemovedFromChannelEnabled *bool `json:"NotificationsRemovedFromChannelEnabled,omitempty"` - NotificationsRemovedFromChannelTemplate *string `json:"NotificationsRemovedFromChannelTemplate,omitempty"` + LimitsChannelMembers *int32 `json:"Limits.ChannelMembers,omitempty"` + LimitsUserChannels *int32 `json:"Limits.UserChannels,omitempty"` + NotificationsAddedToChannelEnabled *bool `json:"Notifications.AddedToChannel.Enabled,omitempty"` + NotificationsAddedToChannelTemplate *string `json:"Notifications.AddedToChannel.Template,omitempty"` + NotificationsInvitedToChannelEnabled *bool `json:"Notifications.InvitedToChannel.Enabled,omitempty"` + NotificationsInvitedToChannelTemplate *string `json:"Notifications.InvitedToChannel.Template,omitempty"` + NotificationsNewMessageEnabled *bool `json:"Notifications.NewMessage.Enabled,omitempty"` + NotificationsNewMessageTemplate *string `json:"Notifications.NewMessage.Template,omitempty"` + NotificationsRemovedFromChannelEnabled *bool `json:"Notifications.RemovedFromChannel.Enabled,omitempty"` + NotificationsRemovedFromChannelTemplate *string `json:"Notifications.RemovedFromChannel.Template,omitempty"` PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"` PreWebhookUrl *string `json:"PreWebhookUrl,omitempty"` ReachabilityEnabled *bool `json:"ReachabilityEnabled,omitempty"` @@ -1553,38 +1553,38 @@ type UpdateServiceParams struct { TypingIndicatorTimeout *int32 `json:"TypingIndicatorTimeout,omitempty"` WebhookFilters *[]string `json:"WebhookFilters,omitempty"` WebhookMethod *string `json:"WebhookMethod,omitempty"` - WebhooksOnChannelAddMethod *string `json:"WebhooksOnChannelAddMethod,omitempty"` - WebhooksOnChannelAddUrl *string `json:"WebhooksOnChannelAddUrl,omitempty"` - WebhooksOnChannelAddedMethod *string `json:"WebhooksOnChannelAddedMethod,omitempty"` - WebhooksOnChannelAddedUrl *string `json:"WebhooksOnChannelAddedUrl,omitempty"` - WebhooksOnChannelDestroyMethod *string `json:"WebhooksOnChannelDestroyMethod,omitempty"` - WebhooksOnChannelDestroyUrl *string `json:"WebhooksOnChannelDestroyUrl,omitempty"` - WebhooksOnChannelDestroyedMethod *string `json:"WebhooksOnChannelDestroyedMethod,omitempty"` - WebhooksOnChannelDestroyedUrl *string `json:"WebhooksOnChannelDestroyedUrl,omitempty"` - WebhooksOnChannelUpdateMethod *string `json:"WebhooksOnChannelUpdateMethod,omitempty"` - WebhooksOnChannelUpdateUrl *string `json:"WebhooksOnChannelUpdateUrl,omitempty"` - WebhooksOnChannelUpdatedMethod *string `json:"WebhooksOnChannelUpdatedMethod,omitempty"` - WebhooksOnChannelUpdatedUrl *string `json:"WebhooksOnChannelUpdatedUrl,omitempty"` - WebhooksOnMemberAddMethod *string `json:"WebhooksOnMemberAddMethod,omitempty"` - WebhooksOnMemberAddUrl *string `json:"WebhooksOnMemberAddUrl,omitempty"` - WebhooksOnMemberAddedMethod *string `json:"WebhooksOnMemberAddedMethod,omitempty"` - WebhooksOnMemberAddedUrl *string `json:"WebhooksOnMemberAddedUrl,omitempty"` - WebhooksOnMemberRemoveMethod *string `json:"WebhooksOnMemberRemoveMethod,omitempty"` - WebhooksOnMemberRemoveUrl *string `json:"WebhooksOnMemberRemoveUrl,omitempty"` - WebhooksOnMemberRemovedMethod *string `json:"WebhooksOnMemberRemovedMethod,omitempty"` - WebhooksOnMemberRemovedUrl *string `json:"WebhooksOnMemberRemovedUrl,omitempty"` - WebhooksOnMessageRemoveMethod *string `json:"WebhooksOnMessageRemoveMethod,omitempty"` - WebhooksOnMessageRemoveUrl *string `json:"WebhooksOnMessageRemoveUrl,omitempty"` - WebhooksOnMessageRemovedMethod *string `json:"WebhooksOnMessageRemovedMethod,omitempty"` - WebhooksOnMessageRemovedUrl *string `json:"WebhooksOnMessageRemovedUrl,omitempty"` - WebhooksOnMessageSendMethod *string `json:"WebhooksOnMessageSendMethod,omitempty"` - WebhooksOnMessageSendUrl *string `json:"WebhooksOnMessageSendUrl,omitempty"` - WebhooksOnMessageSentMethod *string `json:"WebhooksOnMessageSentMethod,omitempty"` - WebhooksOnMessageSentUrl *string `json:"WebhooksOnMessageSentUrl,omitempty"` - WebhooksOnMessageUpdateMethod *string `json:"WebhooksOnMessageUpdateMethod,omitempty"` - WebhooksOnMessageUpdateUrl *string `json:"WebhooksOnMessageUpdateUrl,omitempty"` - WebhooksOnMessageUpdatedMethod *string `json:"WebhooksOnMessageUpdatedMethod,omitempty"` - WebhooksOnMessageUpdatedUrl *string `json:"WebhooksOnMessageUpdatedUrl,omitempty"` + WebhooksOnChannelAddMethod *string `json:"Webhooks.OnChannelAdd.Method,omitempty"` + WebhooksOnChannelAddUrl *string `json:"Webhooks.OnChannelAdd.Url,omitempty"` + WebhooksOnChannelAddedMethod *string `json:"Webhooks.OnChannelAdded.Method,omitempty"` + WebhooksOnChannelAddedUrl *string `json:"Webhooks.OnChannelAdded.Url,omitempty"` + WebhooksOnChannelDestroyMethod *string `json:"Webhooks.OnChannelDestroy.Method,omitempty"` + WebhooksOnChannelDestroyUrl *string `json:"Webhooks.OnChannelDestroy.Url,omitempty"` + WebhooksOnChannelDestroyedMethod *string `json:"Webhooks.OnChannelDestroyed.Method,omitempty"` + WebhooksOnChannelDestroyedUrl *string `json:"Webhooks.OnChannelDestroyed.Url,omitempty"` + WebhooksOnChannelUpdateMethod *string `json:"Webhooks.OnChannelUpdate.Method,omitempty"` + WebhooksOnChannelUpdateUrl *string `json:"Webhooks.OnChannelUpdate.Url,omitempty"` + WebhooksOnChannelUpdatedMethod *string `json:"Webhooks.OnChannelUpdated.Method,omitempty"` + WebhooksOnChannelUpdatedUrl *string `json:"Webhooks.OnChannelUpdated.Url,omitempty"` + WebhooksOnMemberAddMethod *string `json:"Webhooks.OnMemberAdd.Method,omitempty"` + WebhooksOnMemberAddUrl *string `json:"Webhooks.OnMemberAdd.Url,omitempty"` + WebhooksOnMemberAddedMethod *string `json:"Webhooks.OnMemberAdded.Method,omitempty"` + WebhooksOnMemberAddedUrl *string `json:"Webhooks.OnMemberAdded.Url,omitempty"` + WebhooksOnMemberRemoveMethod *string `json:"Webhooks.OnMemberRemove.Method,omitempty"` + WebhooksOnMemberRemoveUrl *string `json:"Webhooks.OnMemberRemove.Url,omitempty"` + WebhooksOnMemberRemovedMethod *string `json:"Webhooks.OnMemberRemoved.Method,omitempty"` + WebhooksOnMemberRemovedUrl *string `json:"Webhooks.OnMemberRemoved.Url,omitempty"` + WebhooksOnMessageRemoveMethod *string `json:"Webhooks.OnMessageRemove.Method,omitempty"` + WebhooksOnMessageRemoveUrl *string `json:"Webhooks.OnMessageRemove.Url,omitempty"` + WebhooksOnMessageRemovedMethod *string `json:"Webhooks.OnMessageRemoved.Method,omitempty"` + WebhooksOnMessageRemovedUrl *string `json:"Webhooks.OnMessageRemoved.Url,omitempty"` + WebhooksOnMessageSendMethod *string `json:"Webhooks.OnMessageSend.Method,omitempty"` + WebhooksOnMessageSendUrl *string `json:"Webhooks.OnMessageSend.Url,omitempty"` + WebhooksOnMessageSentMethod *string `json:"Webhooks.OnMessageSent.Method,omitempty"` + WebhooksOnMessageSentUrl *string `json:"Webhooks.OnMessageSent.Url,omitempty"` + WebhooksOnMessageUpdateMethod *string `json:"Webhooks.OnMessageUpdate.Method,omitempty"` + WebhooksOnMessageUpdateUrl *string `json:"Webhooks.OnMessageUpdate.Url,omitempty"` + WebhooksOnMessageUpdatedMethod *string `json:"Webhooks.OnMessageUpdated.Method,omitempty"` + WebhooksOnMessageUpdatedUrl *string `json:"Webhooks.OnMessageUpdated.Url,omitempty"` } /* @@ -1596,16 +1596,16 @@ UpdateService Method for UpdateService * @param "DefaultChannelRoleSid" (string) - The channel role assigned to users when they are added to a channel. See the [Roles endpoint](https://www.twilio.com/docs/chat/api/roles) for more details. * @param "DefaultServiceRoleSid" (string) - The service role assigned to users when they are added to the service. See the [Roles endpoint](https://www.twilio.com/docs/chat/api/roles) for more details. * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. - * @param "LimitsChannelMembers" (int32) - The maximum number of Members that can be added to Channels within this Service. Can be up to 1,000. - * @param "LimitsUserChannels" (int32) - The maximum number of Channels Users can be a Member of within this Service. Can be up to 1,000. - * @param "NotificationsAddedToChannelEnabled" (bool) - Whether to send a notification when a member is added to a channel. Can be: `true` or `false` and the default is `false`. - * @param "NotificationsAddedToChannelTemplate" (string) - The template to use to create the notification text displayed when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. - * @param "NotificationsInvitedToChannelEnabled" (bool) - Whether to send a notification when a user is invited to a channel. Can be: `true` or `false` and the default is `false`. - * @param "NotificationsInvitedToChannelTemplate" (string) - The template to use to create the notification text displayed when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. - * @param "NotificationsNewMessageEnabled" (bool) - Whether to send a notification when a new message is added to a channel. Can be: `true` or `false` and the default is `false`. - * @param "NotificationsNewMessageTemplate" (string) - The template to use to create the notification text displayed when a new message is added to a channel and `notifications.new_message.enabled` is `true`. - * @param "NotificationsRemovedFromChannelEnabled" (bool) - Whether to send a notification to a user when they are removed from a channel. Can be: `true` or `false` and the default is `false`. - * @param "NotificationsRemovedFromChannelTemplate" (string) - The template to use to create the notification text displayed to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. + * @param "Limits.ChannelMembers" (int32) - The maximum number of Members that can be added to Channels within this Service. Can be up to 1,000. + * @param "Limits.UserChannels" (int32) - The maximum number of Channels Users can be a Member of within this Service. Can be up to 1,000. + * @param "Notifications.AddedToChannel.Enabled" (bool) - Whether to send a notification when a member is added to a channel. Can be: `true` or `false` and the default is `false`. + * @param "Notifications.AddedToChannel.Template" (string) - The template to use to create the notification text displayed when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. + * @param "Notifications.InvitedToChannel.Enabled" (bool) - Whether to send a notification when a user is invited to a channel. Can be: `true` or `false` and the default is `false`. + * @param "Notifications.InvitedToChannel.Template" (string) - The template to use to create the notification text displayed when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. + * @param "Notifications.NewMessage.Enabled" (bool) - Whether to send a notification when a new message is added to a channel. Can be: `true` or `false` and the default is `false`. + * @param "Notifications.NewMessage.Template" (string) - The template to use to create the notification text displayed when a new message is added to a channel and `notifications.new_message.enabled` is `true`. + * @param "Notifications.RemovedFromChannel.Enabled" (bool) - Whether to send a notification to a user when they are removed from a channel. Can be: `true` or `false` and the default is `false`. + * @param "Notifications.RemovedFromChannel.Template" (string) - The template to use to create the notification text displayed to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. * @param "PostWebhookUrl" (string) - The URL for post-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more details. * @param "PreWebhookUrl" (string) - The URL for pre-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more details. * @param "ReachabilityEnabled" (bool) - Whether to enable the [Reachability Indicator](https://www.twilio.com/docs/chat/reachability-indicator) for this Service instance. The default is `false`. @@ -1613,38 +1613,38 @@ UpdateService Method for UpdateService * @param "TypingIndicatorTimeout" (int32) - How long in seconds after a `started typing` event until clients should assume that user is no longer typing, even if no `ended typing` message was received. The default is 5 seconds. * @param "WebhookFilters" ([]string) - The list of WebHook events that are enabled for this Service instance. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. * @param "WebhookMethod" (string) - The HTTP method to use for calls to the `pre_webhook_url` and `post_webhook_url` webhooks. Can be: `POST` or `GET` and the default is `POST`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. - * @param "WebhooksOnChannelAddMethod" (string) - The HTTP method to use when calling the `webhooks.on_channel_add.url`. - * @param "WebhooksOnChannelAddUrl" (string) - The URL of the webhook to call in response to the `on_channel_add` event using the `webhooks.on_channel_add.method` HTTP method. - * @param "WebhooksOnChannelAddedMethod" (string) - The URL of the webhook to call in response to the `on_channel_added` event`. - * @param "WebhooksOnChannelAddedUrl" (string) - The URL of the webhook to call in response to the `on_channel_added` event using the `webhooks.on_channel_added.method` HTTP method. - * @param "WebhooksOnChannelDestroyMethod" (string) - The HTTP method to use when calling the `webhooks.on_channel_destroy.url`. - * @param "WebhooksOnChannelDestroyUrl" (string) - The URL of the webhook to call in response to the `on_channel_destroy` event using the `webhooks.on_channel_destroy.method` HTTP method. - * @param "WebhooksOnChannelDestroyedMethod" (string) - The HTTP method to use when calling the `webhooks.on_channel_destroyed.url`. - * @param "WebhooksOnChannelDestroyedUrl" (string) - The URL of the webhook to call in response to the `on_channel_added` event using the `webhooks.on_channel_destroyed.method` HTTP method. - * @param "WebhooksOnChannelUpdateMethod" (string) - The HTTP method to use when calling the `webhooks.on_channel_update.url`. - * @param "WebhooksOnChannelUpdateUrl" (string) - The URL of the webhook to call in response to the `on_channel_update` event using the `webhooks.on_channel_update.method` HTTP method. - * @param "WebhooksOnChannelUpdatedMethod" (string) - The HTTP method to use when calling the `webhooks.on_channel_updated.url`. - * @param "WebhooksOnChannelUpdatedUrl" (string) - The URL of the webhook to call in response to the `on_channel_updated` event using the `webhooks.on_channel_updated.method` HTTP method. - * @param "WebhooksOnMemberAddMethod" (string) - The HTTP method to use when calling the `webhooks.on_member_add.url`. - * @param "WebhooksOnMemberAddUrl" (string) - The URL of the webhook to call in response to the `on_member_add` event using the `webhooks.on_member_add.method` HTTP method. - * @param "WebhooksOnMemberAddedMethod" (string) - The HTTP method to use when calling the `webhooks.on_channel_updated.url`. - * @param "WebhooksOnMemberAddedUrl" (string) - The URL of the webhook to call in response to the `on_channel_updated` event using the `webhooks.on_channel_updated.method` HTTP method. - * @param "WebhooksOnMemberRemoveMethod" (string) - The HTTP method to use when calling the `webhooks.on_member_remove.url`. - * @param "WebhooksOnMemberRemoveUrl" (string) - The URL of the webhook to call in response to the `on_member_remove` event using the `webhooks.on_member_remove.method` HTTP method. - * @param "WebhooksOnMemberRemovedMethod" (string) - The HTTP method to use when calling the `webhooks.on_member_removed.url`. - * @param "WebhooksOnMemberRemovedUrl" (string) - The URL of the webhook to call in response to the `on_member_removed` event using the `webhooks.on_member_removed.method` HTTP method. - * @param "WebhooksOnMessageRemoveMethod" (string) - The HTTP method to use when calling the `webhooks.on_message_remove.url`. - * @param "WebhooksOnMessageRemoveUrl" (string) - The URL of the webhook to call in response to the `on_message_remove` event using the `webhooks.on_message_remove.method` HTTP method. - * @param "WebhooksOnMessageRemovedMethod" (string) - The HTTP method to use when calling the `webhooks.on_message_removed.url`. - * @param "WebhooksOnMessageRemovedUrl" (string) - The URL of the webhook to call in response to the `on_message_removed` event using the `webhooks.on_message_removed.method` HTTP method. - * @param "WebhooksOnMessageSendMethod" (string) - The HTTP method to use when calling the `webhooks.on_message_send.url`. - * @param "WebhooksOnMessageSendUrl" (string) - The URL of the webhook to call in response to the `on_message_send` event using the `webhooks.on_message_send.method` HTTP method. - * @param "WebhooksOnMessageSentMethod" (string) - The URL of the webhook to call in response to the `on_message_sent` event`. - * @param "WebhooksOnMessageSentUrl" (string) - The URL of the webhook to call in response to the `on_message_sent` event using the `webhooks.on_message_sent.method` HTTP method. - * @param "WebhooksOnMessageUpdateMethod" (string) - The HTTP method to use when calling the `webhooks.on_message_update.url`. - * @param "WebhooksOnMessageUpdateUrl" (string) - The URL of the webhook to call in response to the `on_message_update` event using the `webhooks.on_message_update.method` HTTP method. - * @param "WebhooksOnMessageUpdatedMethod" (string) - The HTTP method to use when calling the `webhooks.on_message_updated.url`. - * @param "WebhooksOnMessageUpdatedUrl" (string) - The URL of the webhook to call in response to the `on_message_updated` event using the `webhooks.on_message_updated.method` HTTP method. + * @param "Webhooks.OnChannelAdd.Method" (string) - The HTTP method to use when calling the `webhooks.on_channel_add.url`. + * @param "Webhooks.OnChannelAdd.Url" (string) - The URL of the webhook to call in response to the `on_channel_add` event using the `webhooks.on_channel_add.method` HTTP method. + * @param "Webhooks.OnChannelAdded.Method" (string) - The URL of the webhook to call in response to the `on_channel_added` event`. + * @param "Webhooks.OnChannelAdded.Url" (string) - The URL of the webhook to call in response to the `on_channel_added` event using the `webhooks.on_channel_added.method` HTTP method. + * @param "Webhooks.OnChannelDestroy.Method" (string) - The HTTP method to use when calling the `webhooks.on_channel_destroy.url`. + * @param "Webhooks.OnChannelDestroy.Url" (string) - The URL of the webhook to call in response to the `on_channel_destroy` event using the `webhooks.on_channel_destroy.method` HTTP method. + * @param "Webhooks.OnChannelDestroyed.Method" (string) - The HTTP method to use when calling the `webhooks.on_channel_destroyed.url`. + * @param "Webhooks.OnChannelDestroyed.Url" (string) - The URL of the webhook to call in response to the `on_channel_added` event using the `webhooks.on_channel_destroyed.method` HTTP method. + * @param "Webhooks.OnChannelUpdate.Method" (string) - The HTTP method to use when calling the `webhooks.on_channel_update.url`. + * @param "Webhooks.OnChannelUpdate.Url" (string) - The URL of the webhook to call in response to the `on_channel_update` event using the `webhooks.on_channel_update.method` HTTP method. + * @param "Webhooks.OnChannelUpdated.Method" (string) - The HTTP method to use when calling the `webhooks.on_channel_updated.url`. + * @param "Webhooks.OnChannelUpdated.Url" (string) - The URL of the webhook to call in response to the `on_channel_updated` event using the `webhooks.on_channel_updated.method` HTTP method. + * @param "Webhooks.OnMemberAdd.Method" (string) - The HTTP method to use when calling the `webhooks.on_member_add.url`. + * @param "Webhooks.OnMemberAdd.Url" (string) - The URL of the webhook to call in response to the `on_member_add` event using the `webhooks.on_member_add.method` HTTP method. + * @param "Webhooks.OnMemberAdded.Method" (string) - The HTTP method to use when calling the `webhooks.on_channel_updated.url`. + * @param "Webhooks.OnMemberAdded.Url" (string) - The URL of the webhook to call in response to the `on_channel_updated` event using the `webhooks.on_channel_updated.method` HTTP method. + * @param "Webhooks.OnMemberRemove.Method" (string) - The HTTP method to use when calling the `webhooks.on_member_remove.url`. + * @param "Webhooks.OnMemberRemove.Url" (string) - The URL of the webhook to call in response to the `on_member_remove` event using the `webhooks.on_member_remove.method` HTTP method. + * @param "Webhooks.OnMemberRemoved.Method" (string) - The HTTP method to use when calling the `webhooks.on_member_removed.url`. + * @param "Webhooks.OnMemberRemoved.Url" (string) - The URL of the webhook to call in response to the `on_member_removed` event using the `webhooks.on_member_removed.method` HTTP method. + * @param "Webhooks.OnMessageRemove.Method" (string) - The HTTP method to use when calling the `webhooks.on_message_remove.url`. + * @param "Webhooks.OnMessageRemove.Url" (string) - The URL of the webhook to call in response to the `on_message_remove` event using the `webhooks.on_message_remove.method` HTTP method. + * @param "Webhooks.OnMessageRemoved.Method" (string) - The HTTP method to use when calling the `webhooks.on_message_removed.url`. + * @param "Webhooks.OnMessageRemoved.Url" (string) - The URL of the webhook to call in response to the `on_message_removed` event using the `webhooks.on_message_removed.method` HTTP method. + * @param "Webhooks.OnMessageSend.Method" (string) - The HTTP method to use when calling the `webhooks.on_message_send.url`. + * @param "Webhooks.OnMessageSend.Url" (string) - The URL of the webhook to call in response to the `on_message_send` event using the `webhooks.on_message_send.method` HTTP method. + * @param "Webhooks.OnMessageSent.Method" (string) - The URL of the webhook to call in response to the `on_message_sent` event`. + * @param "Webhooks.OnMessageSent.Url" (string) - The URL of the webhook to call in response to the `on_message_sent` event using the `webhooks.on_message_sent.method` HTTP method. + * @param "Webhooks.OnMessageUpdate.Method" (string) - The HTTP method to use when calling the `webhooks.on_message_update.url`. + * @param "Webhooks.OnMessageUpdate.Url" (string) - The URL of the webhook to call in response to the `on_message_update` event using the `webhooks.on_message_update.method` HTTP method. + * @param "Webhooks.OnMessageUpdated.Method" (string) - The HTTP method to use when calling the `webhooks.on_message_updated.url`. + * @param "Webhooks.OnMessageUpdated.Url" (string) - The URL of the webhook to call in response to the `on_message_updated` event using the `webhooks.on_message_updated.method` HTTP method. @return ChatV1Service */ func (c *DefaultApiService) UpdateService(Sid string, params *UpdateServiceParams) (*ChatV1Service, error) { diff --git a/rest/chat/v2/api_default.go b/rest/chat/v2/api_default.go index 36ca2ff96..339c22743 100644 --- a/rest/chat/v2/api_default.go +++ b/rest/chat/v2/api_default.go @@ -106,12 +106,12 @@ func (c *DefaultApiService) CreateChannel(ServiceSid string, params *CreateChann } // CreateChannelWebhookParams Optional parameters for the method 'CreateChannelWebhook' type CreateChannelWebhookParams struct { - ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` - ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` - ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` - ConfigurationRetryCount *int32 `json:"ConfigurationRetryCount,omitempty"` - ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` - ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` + ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` + ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` + ConfigurationMethod *string `json:"Configuration.Method,omitempty"` + ConfigurationRetryCount *int32 `json:"Configuration.RetryCount,omitempty"` + ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` + ConfigurationUrl *string `json:"Configuration.Url,omitempty"` Type *string `json:"Type,omitempty"` } @@ -120,12 +120,12 @@ CreateChannelWebhook Method for CreateChannelWebhook * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel to create the Webhook resource under. * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the new Channel Webhook resource belongs to. This value can be the Channel resource's `sid` or `unique_name`. * @param optional nil or *CreateChannelWebhookOpts - Optional Parameters: - * @param "ConfigurationFilters" ([]string) - The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger). - * @param "ConfigurationFlowSid" (string) - The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` is `studio`. - * @param "ConfigurationMethod" (string) - The HTTP method used to call `configuration.url`. Can be: `GET` or `POST` and the default is `POST`. - * @param "ConfigurationRetryCount" (int32) - The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0. - * @param "ConfigurationTriggers" ([]string) - A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`. - * @param "ConfigurationUrl" (string) - The URL of the webhook to call using the `configuration.method`. + * @param "Configuration.Filters" ([]string) - The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger). + * @param "Configuration.FlowSid" (string) - The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` is `studio`. + * @param "Configuration.Method" (string) - The HTTP method used to call `configuration.url`. Can be: `GET` or `POST` and the default is `POST`. + * @param "Configuration.RetryCount" (int32) - The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0. + * @param "Configuration.Triggers" ([]string) - A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`. + * @param "Configuration.Url" (string) - The URL of the webhook to call using the `configuration.method`. * @param "Type" (string) - The type of webhook. Can be: `webhook`, `studio`, or `trigger`. @return ChatV2ServiceChannelChannelWebhook */ @@ -1910,12 +1910,12 @@ func (c *DefaultApiService) UpdateChannel(ServiceSid string, Sid string, params } // UpdateChannelWebhookParams Optional parameters for the method 'UpdateChannelWebhook' type UpdateChannelWebhookParams struct { - ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` - ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` - ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` - ConfigurationRetryCount *int32 `json:"ConfigurationRetryCount,omitempty"` - ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` - ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` + ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` + ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` + ConfigurationMethod *string `json:"Configuration.Method,omitempty"` + ConfigurationRetryCount *int32 `json:"Configuration.RetryCount,omitempty"` + ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` + ConfigurationUrl *string `json:"Configuration.Url,omitempty"` } /* @@ -1924,12 +1924,12 @@ UpdateChannelWebhook Method for UpdateChannelWebhook * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook resource to update belongs to. This value can be the Channel resource's `sid` or `unique_name`. * @param Sid The SID of the Channel Webhook resource to update. * @param optional nil or *UpdateChannelWebhookOpts - Optional Parameters: - * @param "ConfigurationFilters" ([]string) - The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger). - * @param "ConfigurationFlowSid" (string) - The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` = `studio`. - * @param "ConfigurationMethod" (string) - The HTTP method used to call `configuration.url`. Can be: `GET` or `POST` and the default is `POST`. - * @param "ConfigurationRetryCount" (int32) - The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0. - * @param "ConfigurationTriggers" ([]string) - A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`. - * @param "ConfigurationUrl" (string) - The URL of the webhook to call using the `configuration.method`. + * @param "Configuration.Filters" ([]string) - The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger). + * @param "Configuration.FlowSid" (string) - The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` = `studio`. + * @param "Configuration.Method" (string) - The HTTP method used to call `configuration.url`. Can be: `GET` or `POST` and the default is `POST`. + * @param "Configuration.RetryCount" (int32) - The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0. + * @param "Configuration.Triggers" ([]string) - A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`. + * @param "Configuration.Url" (string) - The URL of the webhook to call using the `configuration.method`. @return ChatV2ServiceChannelChannelWebhook */ func (c *DefaultApiService) UpdateChannelWebhook(ServiceSid string, ChannelSid string, Sid string, params *UpdateChannelWebhookParams) (*ChatV2ServiceChannelChannelWebhook, error) { @@ -2234,23 +2234,23 @@ type UpdateServiceParams struct { DefaultChannelRoleSid *string `json:"DefaultChannelRoleSid,omitempty"` DefaultServiceRoleSid *string `json:"DefaultServiceRoleSid,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` - LimitsChannelMembers *int32 `json:"LimitsChannelMembers,omitempty"` - LimitsUserChannels *int32 `json:"LimitsUserChannels,omitempty"` - MediaCompatibilityMessage *string `json:"MediaCompatibilityMessage,omitempty"` - NotificationsAddedToChannelEnabled *bool `json:"NotificationsAddedToChannelEnabled,omitempty"` - NotificationsAddedToChannelSound *string `json:"NotificationsAddedToChannelSound,omitempty"` - NotificationsAddedToChannelTemplate *string `json:"NotificationsAddedToChannelTemplate,omitempty"` - NotificationsInvitedToChannelEnabled *bool `json:"NotificationsInvitedToChannelEnabled,omitempty"` - NotificationsInvitedToChannelSound *string `json:"NotificationsInvitedToChannelSound,omitempty"` - NotificationsInvitedToChannelTemplate *string `json:"NotificationsInvitedToChannelTemplate,omitempty"` - NotificationsLogEnabled *bool `json:"NotificationsLogEnabled,omitempty"` - NotificationsNewMessageBadgeCountEnabled *bool `json:"NotificationsNewMessageBadgeCountEnabled,omitempty"` - NotificationsNewMessageEnabled *bool `json:"NotificationsNewMessageEnabled,omitempty"` - NotificationsNewMessageSound *string `json:"NotificationsNewMessageSound,omitempty"` - NotificationsNewMessageTemplate *string `json:"NotificationsNewMessageTemplate,omitempty"` - NotificationsRemovedFromChannelEnabled *bool `json:"NotificationsRemovedFromChannelEnabled,omitempty"` - NotificationsRemovedFromChannelSound *string `json:"NotificationsRemovedFromChannelSound,omitempty"` - NotificationsRemovedFromChannelTemplate *string `json:"NotificationsRemovedFromChannelTemplate,omitempty"` + LimitsChannelMembers *int32 `json:"Limits.ChannelMembers,omitempty"` + LimitsUserChannels *int32 `json:"Limits.UserChannels,omitempty"` + MediaCompatibilityMessage *string `json:"Media.CompatibilityMessage,omitempty"` + NotificationsAddedToChannelEnabled *bool `json:"Notifications.AddedToChannel.Enabled,omitempty"` + NotificationsAddedToChannelSound *string `json:"Notifications.AddedToChannel.Sound,omitempty"` + NotificationsAddedToChannelTemplate *string `json:"Notifications.AddedToChannel.Template,omitempty"` + NotificationsInvitedToChannelEnabled *bool `json:"Notifications.InvitedToChannel.Enabled,omitempty"` + NotificationsInvitedToChannelSound *string `json:"Notifications.InvitedToChannel.Sound,omitempty"` + NotificationsInvitedToChannelTemplate *string `json:"Notifications.InvitedToChannel.Template,omitempty"` + NotificationsLogEnabled *bool `json:"Notifications.LogEnabled,omitempty"` + NotificationsNewMessageBadgeCountEnabled *bool `json:"Notifications.NewMessage.BadgeCountEnabled,omitempty"` + NotificationsNewMessageEnabled *bool `json:"Notifications.NewMessage.Enabled,omitempty"` + NotificationsNewMessageSound *string `json:"Notifications.NewMessage.Sound,omitempty"` + NotificationsNewMessageTemplate *string `json:"Notifications.NewMessage.Template,omitempty"` + NotificationsRemovedFromChannelEnabled *bool `json:"Notifications.RemovedFromChannel.Enabled,omitempty"` + NotificationsRemovedFromChannelSound *string `json:"Notifications.RemovedFromChannel.Sound,omitempty"` + NotificationsRemovedFromChannelTemplate *string `json:"Notifications.RemovedFromChannel.Template,omitempty"` PostWebhookRetryCount *int32 `json:"PostWebhookRetryCount,omitempty"` PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"` PreWebhookRetryCount *int32 `json:"PreWebhookRetryCount,omitempty"` @@ -2271,23 +2271,23 @@ UpdateService Method for UpdateService * @param "DefaultChannelRoleSid" (string) - The channel role assigned to users when they are added to a channel. See the [Role resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info about roles. * @param "DefaultServiceRoleSid" (string) - The service role assigned to users when they are added to the service. See the [Role resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info about roles. * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. - * @param "LimitsChannelMembers" (int32) - The maximum number of Members that can be added to Channels within this Service. Can be up to 1,000. - * @param "LimitsUserChannels" (int32) - The maximum number of Channels Users can be a Member of within this Service. Can be up to 1,000. - * @param "MediaCompatibilityMessage" (string) - The message to send when a media message has no text. Can be used as placeholder message. - * @param "NotificationsAddedToChannelEnabled" (bool) - Whether to send a notification when a member is added to a channel. The default is `false`. - * @param "NotificationsAddedToChannelSound" (string) - The name of the sound to play when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. - * @param "NotificationsAddedToChannelTemplate" (string) - The template to use to create the notification text displayed when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. - * @param "NotificationsInvitedToChannelEnabled" (bool) - Whether to send a notification when a user is invited to a channel. The default is `false`. - * @param "NotificationsInvitedToChannelSound" (string) - The name of the sound to play when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. - * @param "NotificationsInvitedToChannelTemplate" (string) - The template to use to create the notification text displayed when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. - * @param "NotificationsLogEnabled" (bool) - Whether to log notifications. The default is `false`. - * @param "NotificationsNewMessageBadgeCountEnabled" (bool) - Whether the new message badge is enabled. The default is `false`. - * @param "NotificationsNewMessageEnabled" (bool) - Whether to send a notification when a new message is added to a channel. The default is `false`. - * @param "NotificationsNewMessageSound" (string) - The name of the sound to play when a new message is added to a channel and `notifications.new_message.enabled` is `true`. - * @param "NotificationsNewMessageTemplate" (string) - The template to use to create the notification text displayed when a new message is added to a channel and `notifications.new_message.enabled` is `true`. - * @param "NotificationsRemovedFromChannelEnabled" (bool) - Whether to send a notification to a user when they are removed from a channel. The default is `false`. - * @param "NotificationsRemovedFromChannelSound" (string) - The name of the sound to play to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. - * @param "NotificationsRemovedFromChannelTemplate" (string) - The template to use to create the notification text displayed to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. + * @param "Limits.ChannelMembers" (int32) - The maximum number of Members that can be added to Channels within this Service. Can be up to 1,000. + * @param "Limits.UserChannels" (int32) - The maximum number of Channels Users can be a Member of within this Service. Can be up to 1,000. + * @param "Media.CompatibilityMessage" (string) - The message to send when a media message has no text. Can be used as placeholder message. + * @param "Notifications.AddedToChannel.Enabled" (bool) - Whether to send a notification when a member is added to a channel. The default is `false`. + * @param "Notifications.AddedToChannel.Sound" (string) - The name of the sound to play when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. + * @param "Notifications.AddedToChannel.Template" (string) - The template to use to create the notification text displayed when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. + * @param "Notifications.InvitedToChannel.Enabled" (bool) - Whether to send a notification when a user is invited to a channel. The default is `false`. + * @param "Notifications.InvitedToChannel.Sound" (string) - The name of the sound to play when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. + * @param "Notifications.InvitedToChannel.Template" (string) - The template to use to create the notification text displayed when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. + * @param "Notifications.LogEnabled" (bool) - Whether to log notifications. The default is `false`. + * @param "Notifications.NewMessage.BadgeCountEnabled" (bool) - Whether the new message badge is enabled. The default is `false`. + * @param "Notifications.NewMessage.Enabled" (bool) - Whether to send a notification when a new message is added to a channel. The default is `false`. + * @param "Notifications.NewMessage.Sound" (string) - The name of the sound to play when a new message is added to a channel and `notifications.new_message.enabled` is `true`. + * @param "Notifications.NewMessage.Template" (string) - The template to use to create the notification text displayed when a new message is added to a channel and `notifications.new_message.enabled` is `true`. + * @param "Notifications.RemovedFromChannel.Enabled" (bool) - Whether to send a notification to a user when they are removed from a channel. The default is `false`. + * @param "Notifications.RemovedFromChannel.Sound" (string) - The name of the sound to play to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. + * @param "Notifications.RemovedFromChannel.Template" (string) - The template to use to create the notification text displayed to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. * @param "PostWebhookRetryCount" (int32) - The number of times to retry a call to the `post_webhook_url` if the request times out (after 5 seconds) or it receives a 429, 503, or 504 HTTP response. The default is 0, which means the call won't be retried. * @param "PostWebhookUrl" (string) - The URL for post-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. * @param "PreWebhookRetryCount" (int32) - The number of times to retry a call to the `pre_webhook_url` if the request times out (after 5 seconds) or it receives a 429, 503, or 504 HTTP response. Default retry count is 0 times, which means the call won't be retried. diff --git a/rest/conversations/v1/api_default.go b/rest/conversations/v1/api_default.go index 587f9b2c1..5ff5051f6 100644 --- a/rest/conversations/v1/api_default.go +++ b/rest/conversations/v1/api_default.go @@ -39,8 +39,8 @@ type CreateConversationParams struct { FriendlyName *string `json:"FriendlyName,omitempty"` MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` State *string `json:"State,omitempty"` - TimersClosed *string `json:"TimersClosed,omitempty"` - TimersInactive *string `json:"TimersInactive,omitempty"` + TimersClosed *string `json:"Timers.Closed,omitempty"` + TimersInactive *string `json:"Timers.Inactive,omitempty"` UniqueName *string `json:"UniqueName,omitempty"` } @@ -55,8 +55,8 @@ Create a new conversation in your account's default service * @param "FriendlyName" (string) - The human-readable name of this conversation, limited to 256 characters. Optional. * @param "MessagingServiceSid" (string) - The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. * @param "State" (string) - Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` - * @param "TimersClosed" (string) - ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. - * @param "TimersInactive" (string) - ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. + * @param "Timers.Closed" (string) - ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. + * @param "Timers.Inactive" (string) - ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. @return ConversationsV1Conversation */ @@ -190,9 +190,9 @@ type CreateConversationParticipantParams struct { DateCreated *time.Time `json:"DateCreated,omitempty"` DateUpdated *time.Time `json:"DateUpdated,omitempty"` Identity *string `json:"Identity,omitempty"` - MessagingBindingAddress *string `json:"MessagingBindingAddress,omitempty"` - MessagingBindingProjectedAddress *string `json:"MessagingBindingProjectedAddress,omitempty"` - MessagingBindingProxyAddress *string `json:"MessagingBindingProxyAddress,omitempty"` + MessagingBindingAddress *string `json:"MessagingBinding.Address,omitempty"` + MessagingBindingProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` + MessagingBindingProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` RoleSid *string `json:"RoleSid,omitempty"` } @@ -206,9 +206,9 @@ Add a new participant to the conversation * @param "DateCreated" (time.Time) - The date that this resource was created. * @param "DateUpdated" (time.Time) - The date that this resource was last updated. * @param "Identity" (string) - A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters. - * @param "MessagingBindingAddress" (string) - The address of the participant's device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). - * @param "MessagingBindingProjectedAddress" (string) - The address of the Twilio phone number that is used in Group MMS. Communication mask for the Conversation participant with Identity. - * @param "MessagingBindingProxyAddress" (string) - The address of the Twilio phone number (or WhatsApp number) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). + * @param "MessagingBinding.Address" (string) - The address of the participant's device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). + * @param "MessagingBinding.ProjectedAddress" (string) - The address of the Twilio phone number that is used in Group MMS. Communication mask for the Conversation participant with Identity. + * @param "MessagingBinding.ProxyAddress" (string) - The address of the Twilio phone number (or WhatsApp number) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). * @param "RoleSid" (string) - The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. @return ConversationsV1ConversationConversationParticipant */ @@ -265,12 +265,12 @@ func (c *DefaultApiService) CreateConversationParticipant(ConversationSid string } // CreateConversationScopedWebhookParams Optional parameters for the method 'CreateConversationScopedWebhook' type CreateConversationScopedWebhookParams struct { - ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` - ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` - ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` - ConfigurationReplayAfter *int32 `json:"ConfigurationReplayAfter,omitempty"` - ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` - ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` + ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` + ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` + ConfigurationMethod *string `json:"Configuration.Method,omitempty"` + ConfigurationReplayAfter *int32 `json:"Configuration.ReplayAfter,omitempty"` + ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` + ConfigurationUrl *string `json:"Configuration.Url,omitempty"` Target *string `json:"Target,omitempty"` } @@ -279,12 +279,12 @@ CreateConversationScopedWebhook Method for CreateConversationScopedWebhook Create a new webhook scoped to the conversation * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. * @param optional nil or *CreateConversationScopedWebhookOpts - Optional Parameters: - * @param "ConfigurationFilters" ([]string) - The list of events, firing webhook event for this Conversation. - * @param "ConfigurationFlowSid" (string) - The studio flow SID, where the webhook should be sent to. - * @param "ConfigurationMethod" (string) - The HTTP method to be used when sending a webhook request. - * @param "ConfigurationReplayAfter" (int32) - The message index for which and it's successors the webhook will be replayed. Not set by default - * @param "ConfigurationTriggers" ([]string) - The list of keywords, firing webhook event for this Conversation. - * @param "ConfigurationUrl" (string) - The absolute url the webhook request should be sent to. + * @param "Configuration.Filters" ([]string) - The list of events, firing webhook event for this Conversation. + * @param "Configuration.FlowSid" (string) - The studio flow SID, where the webhook should be sent to. + * @param "Configuration.Method" (string) - The HTTP method to be used when sending a webhook request. + * @param "Configuration.ReplayAfter" (int32) - The message index for which and it's successors the webhook will be replayed. Not set by default + * @param "Configuration.Triggers" ([]string) - The list of keywords, firing webhook event for this Conversation. + * @param "Configuration.Url" (string) - The absolute url the webhook request should be sent to. * @param "Target" (string) - The target of this webhook: `webhook`, `studio`, `trigger` @return ConversationsV1ConversationConversationScopedWebhook */ @@ -496,8 +496,8 @@ type CreateServiceConversationParams struct { FriendlyName *string `json:"FriendlyName,omitempty"` MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` State *string `json:"State,omitempty"` - TimersClosed *string `json:"TimersClosed,omitempty"` - TimersInactive *string `json:"TimersInactive,omitempty"` + TimersClosed *string `json:"Timers.Closed,omitempty"` + TimersInactive *string `json:"Timers.Inactive,omitempty"` UniqueName *string `json:"UniqueName,omitempty"` } @@ -513,8 +513,8 @@ Create a new conversation in your service * @param "FriendlyName" (string) - The human-readable name of this conversation, limited to 256 characters. Optional. * @param "MessagingServiceSid" (string) - The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. * @param "State" (string) - Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` - * @param "TimersClosed" (string) - ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. - * @param "TimersInactive" (string) - ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. + * @param "Timers.Closed" (string) - ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. + * @param "Timers.Inactive" (string) - ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. @return ConversationsV1ServiceServiceConversation */ @@ -651,9 +651,9 @@ type CreateServiceConversationParticipantParams struct { DateCreated *time.Time `json:"DateCreated,omitempty"` DateUpdated *time.Time `json:"DateUpdated,omitempty"` Identity *string `json:"Identity,omitempty"` - MessagingBindingAddress *string `json:"MessagingBindingAddress,omitempty"` - MessagingBindingProjectedAddress *string `json:"MessagingBindingProjectedAddress,omitempty"` - MessagingBindingProxyAddress *string `json:"MessagingBindingProxyAddress,omitempty"` + MessagingBindingAddress *string `json:"MessagingBinding.Address,omitempty"` + MessagingBindingProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` + MessagingBindingProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` RoleSid *string `json:"RoleSid,omitempty"` } @@ -668,9 +668,9 @@ Add a new participant to the conversation in a specific service * @param "DateCreated" (time.Time) - The date that this resource was created. * @param "DateUpdated" (time.Time) - The date that this resource was last updated. * @param "Identity" (string) - A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversation SDK to communicate. Limited to 256 characters. - * @param "MessagingBindingAddress" (string) - The address of the participant's device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). - * @param "MessagingBindingProjectedAddress" (string) - The address of the Twilio phone number that is used in Group MMS. Communication mask for the Conversation participant with Identity. - * @param "MessagingBindingProxyAddress" (string) - The address of the Twilio phone number (or WhatsApp number) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). + * @param "MessagingBinding.Address" (string) - The address of the participant's device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). + * @param "MessagingBinding.ProjectedAddress" (string) - The address of the Twilio phone number that is used in Group MMS. Communication mask for the Conversation participant with Identity. + * @param "MessagingBinding.ProxyAddress" (string) - The address of the Twilio phone number (or WhatsApp number) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). * @param "RoleSid" (string) - The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. @return ConversationsV1ServiceServiceConversationServiceConversationParticipant */ @@ -728,12 +728,12 @@ func (c *DefaultApiService) CreateServiceConversationParticipant(ChatServiceSid } // CreateServiceConversationScopedWebhookParams Optional parameters for the method 'CreateServiceConversationScopedWebhook' type CreateServiceConversationScopedWebhookParams struct { - ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` - ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` - ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` - ConfigurationReplayAfter *int32 `json:"ConfigurationReplayAfter,omitempty"` - ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` - ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` + ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` + ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` + ConfigurationMethod *string `json:"Configuration.Method,omitempty"` + ConfigurationReplayAfter *int32 `json:"Configuration.ReplayAfter,omitempty"` + ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` + ConfigurationUrl *string `json:"Configuration.Url,omitempty"` Target *string `json:"Target,omitempty"` } @@ -743,12 +743,12 @@ Create a new webhook scoped to the conversation in a specific service * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. * @param optional nil or *CreateServiceConversationScopedWebhookOpts - Optional Parameters: - * @param "ConfigurationFilters" ([]string) - The list of events, firing webhook event for this Conversation. - * @param "ConfigurationFlowSid" (string) - The studio flow SID, where the webhook should be sent to. - * @param "ConfigurationMethod" (string) - The HTTP method to be used when sending a webhook request. - * @param "ConfigurationReplayAfter" (int32) - The message index for which and it's successors the webhook will be replayed. Not set by default - * @param "ConfigurationTriggers" ([]string) - The list of keywords, firing webhook event for this Conversation. - * @param "ConfigurationUrl" (string) - The absolute url the webhook request should be sent to. + * @param "Configuration.Filters" ([]string) - The list of events, firing webhook event for this Conversation. + * @param "Configuration.FlowSid" (string) - The studio flow SID, where the webhook should be sent to. + * @param "Configuration.Method" (string) - The HTTP method to be used when sending a webhook request. + * @param "Configuration.ReplayAfter" (int32) - The message index for which and it's successors the webhook will be replayed. Not set by default + * @param "Configuration.Triggers" ([]string) - The list of keywords, firing webhook event for this Conversation. + * @param "Configuration.Url" (string) - The absolute url the webhook request should be sent to. * @param "Target" (string) - The target of this webhook: `webhook`, `studio`, `trigger` @return ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook */ @@ -2932,8 +2932,8 @@ type UpdateConversationParams struct { FriendlyName *string `json:"FriendlyName,omitempty"` MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` State *string `json:"State,omitempty"` - TimersClosed *string `json:"TimersClosed,omitempty"` - TimersInactive *string `json:"TimersInactive,omitempty"` + TimersClosed *string `json:"Timers.Closed,omitempty"` + TimersInactive *string `json:"Timers.Inactive,omitempty"` UniqueName *string `json:"UniqueName,omitempty"` } @@ -2949,8 +2949,8 @@ Update an existing conversation in your account's default service * @param "FriendlyName" (string) - The human-readable name of this conversation, limited to 256 characters. Optional. * @param "MessagingServiceSid" (string) - The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. * @param "State" (string) - Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` - * @param "TimersClosed" (string) - ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. - * @param "TimersInactive" (string) - ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. + * @param "Timers.Closed" (string) - ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. + * @param "Timers.Inactive" (string) - ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. @return ConversationsV1Conversation */ @@ -3084,8 +3084,8 @@ type UpdateConversationParticipantParams struct { Identity *string `json:"Identity,omitempty"` LastReadMessageIndex *int32 `json:"LastReadMessageIndex,omitempty"` LastReadTimestamp *string `json:"LastReadTimestamp,omitempty"` - MessagingBindingProjectedAddress *string `json:"MessagingBindingProjectedAddress,omitempty"` - MessagingBindingProxyAddress *string `json:"MessagingBindingProxyAddress,omitempty"` + MessagingBindingProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` + MessagingBindingProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` RoleSid *string `json:"RoleSid,omitempty"` } @@ -3102,8 +3102,8 @@ Update an existing participant in the conversation * @param "Identity" (string) - A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters. * @param "LastReadMessageIndex" (*int32) - Index of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. * @param "LastReadTimestamp" (string) - Timestamp of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. - * @param "MessagingBindingProjectedAddress" (string) - The address of the Twilio phone number that is used in Group MMS. 'null' value will remove it. - * @param "MessagingBindingProxyAddress" (string) - The address of the Twilio phone number that the participant is in contact with. 'null' value will remove it. + * @param "MessagingBinding.ProjectedAddress" (string) - The address of the Twilio phone number that is used in Group MMS. 'null' value will remove it. + * @param "MessagingBinding.ProxyAddress" (string) - The address of the Twilio phone number that the participant is in contact with. 'null' value will remove it. * @param "RoleSid" (string) - The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. @return ConversationsV1ConversationConversationParticipant */ @@ -3164,11 +3164,11 @@ func (c *DefaultApiService) UpdateConversationParticipant(ConversationSid string } // UpdateConversationScopedWebhookParams Optional parameters for the method 'UpdateConversationScopedWebhook' type UpdateConversationScopedWebhookParams struct { - ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` - ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` - ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` - ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` - ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` + ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` + ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` + ConfigurationMethod *string `json:"Configuration.Method,omitempty"` + ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` + ConfigurationUrl *string `json:"Configuration.Url,omitempty"` } /* @@ -3177,11 +3177,11 @@ Update an existing conversation-scoped webhook * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. * @param Sid A 34 character string that uniquely identifies this resource. * @param optional nil or *UpdateConversationScopedWebhookOpts - Optional Parameters: - * @param "ConfigurationFilters" ([]string) - The list of events, firing webhook event for this Conversation. - * @param "ConfigurationFlowSid" (string) - The studio flow SID, where the webhook should be sent to. - * @param "ConfigurationMethod" (string) - The HTTP method to be used when sending a webhook request. - * @param "ConfigurationTriggers" ([]string) - The list of keywords, firing webhook event for this Conversation. - * @param "ConfigurationUrl" (string) - The absolute url the webhook request should be sent to. + * @param "Configuration.Filters" ([]string) - The list of events, firing webhook event for this Conversation. + * @param "Configuration.FlowSid" (string) - The studio flow SID, where the webhook should be sent to. + * @param "Configuration.Method" (string) - The HTTP method to be used when sending a webhook request. + * @param "Configuration.Triggers" ([]string) - The list of keywords, firing webhook event for this Conversation. + * @param "Configuration.Url" (string) - The absolute url the webhook request should be sent to. @return ConversationsV1ConversationConversationScopedWebhook */ func (c *DefaultApiService) UpdateConversationScopedWebhook(ConversationSid string, Sid string, params *UpdateConversationScopedWebhookParams) (*ConversationsV1ConversationConversationScopedWebhook, error) { @@ -3398,8 +3398,8 @@ type UpdateServiceConversationParams struct { FriendlyName *string `json:"FriendlyName,omitempty"` MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` State *string `json:"State,omitempty"` - TimersClosed *string `json:"TimersClosed,omitempty"` - TimersInactive *string `json:"TimersInactive,omitempty"` + TimersClosed *string `json:"Timers.Closed,omitempty"` + TimersInactive *string `json:"Timers.Inactive,omitempty"` UniqueName *string `json:"UniqueName,omitempty"` } @@ -3416,8 +3416,8 @@ Update an existing conversation in your service * @param "FriendlyName" (string) - The human-readable name of this conversation, limited to 256 characters. Optional. * @param "MessagingServiceSid" (string) - The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. * @param "State" (string) - Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` - * @param "TimersClosed" (string) - ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. - * @param "TimersInactive" (string) - ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. + * @param "Timers.Closed" (string) - ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. + * @param "Timers.Inactive" (string) - ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. @return ConversationsV1ServiceServiceConversation */ @@ -3554,8 +3554,8 @@ type UpdateServiceConversationParticipantParams struct { Identity *string `json:"Identity,omitempty"` LastReadMessageIndex *int32 `json:"LastReadMessageIndex,omitempty"` LastReadTimestamp *string `json:"LastReadTimestamp,omitempty"` - MessagingBindingProjectedAddress *string `json:"MessagingBindingProjectedAddress,omitempty"` - MessagingBindingProxyAddress *string `json:"MessagingBindingProxyAddress,omitempty"` + MessagingBindingProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` + MessagingBindingProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` RoleSid *string `json:"RoleSid,omitempty"` } @@ -3573,8 +3573,8 @@ Update an existing participant in the conversation * @param "Identity" (string) - A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversation SDK to communicate. Limited to 256 characters. * @param "LastReadMessageIndex" (*int32) - Index of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. * @param "LastReadTimestamp" (string) - Timestamp of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. - * @param "MessagingBindingProjectedAddress" (string) - The address of the Twilio phone number that is used in Group MMS. 'null' value will remove it. - * @param "MessagingBindingProxyAddress" (string) - The address of the Twilio phone number that the participant is in contact with. 'null' value will remove it. + * @param "MessagingBinding.ProjectedAddress" (string) - The address of the Twilio phone number that is used in Group MMS. 'null' value will remove it. + * @param "MessagingBinding.ProxyAddress" (string) - The address of the Twilio phone number that the participant is in contact with. 'null' value will remove it. * @param "RoleSid" (string) - The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. @return ConversationsV1ServiceServiceConversationServiceConversationParticipant */ @@ -3636,11 +3636,11 @@ func (c *DefaultApiService) UpdateServiceConversationParticipant(ChatServiceSid } // UpdateServiceConversationScopedWebhookParams Optional parameters for the method 'UpdateServiceConversationScopedWebhook' type UpdateServiceConversationScopedWebhookParams struct { - ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` - ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` - ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` - ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` - ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` + ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` + ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` + ConfigurationMethod *string `json:"Configuration.Method,omitempty"` + ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` + ConfigurationUrl *string `json:"Configuration.Url,omitempty"` } /* @@ -3650,11 +3650,11 @@ Update an existing conversation-scoped webhook * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. * @param Sid A 34 character string that uniquely identifies this resource. * @param optional nil or *UpdateServiceConversationScopedWebhookOpts - Optional Parameters: - * @param "ConfigurationFilters" ([]string) - The list of events, firing webhook event for this Conversation. - * @param "ConfigurationFlowSid" (string) - The studio flow SID, where the webhook should be sent to. - * @param "ConfigurationMethod" (string) - The HTTP method to be used when sending a webhook request. - * @param "ConfigurationTriggers" ([]string) - The list of keywords, firing webhook event for this Conversation. - * @param "ConfigurationUrl" (string) - The absolute url the webhook request should be sent to. + * @param "Configuration.Filters" ([]string) - The list of events, firing webhook event for this Conversation. + * @param "Configuration.FlowSid" (string) - The studio flow SID, where the webhook should be sent to. + * @param "Configuration.Method" (string) - The HTTP method to be used when sending a webhook request. + * @param "Configuration.Triggers" ([]string) - The list of keywords, firing webhook event for this Conversation. + * @param "Configuration.Url" (string) - The absolute url the webhook request should be sent to. @return ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook */ func (c *DefaultApiService) UpdateServiceConversationScopedWebhook(ChatServiceSid string, ConversationSid string, Sid string, params *UpdateServiceConversationScopedWebhookParams) (*ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook, error) { @@ -3700,17 +3700,17 @@ func (c *DefaultApiService) UpdateServiceConversationScopedWebhook(ChatServiceSi } // UpdateServiceNotificationParams Optional parameters for the method 'UpdateServiceNotification' type UpdateServiceNotificationParams struct { - AddedToConversationEnabled *bool `json:"AddedToConversationEnabled,omitempty"` - AddedToConversationSound *string `json:"AddedToConversationSound,omitempty"` - AddedToConversationTemplate *string `json:"AddedToConversationTemplate,omitempty"` + AddedToConversationEnabled *bool `json:"AddedToConversation.Enabled,omitempty"` + AddedToConversationSound *string `json:"AddedToConversation.Sound,omitempty"` + AddedToConversationTemplate *string `json:"AddedToConversation.Template,omitempty"` LogEnabled *bool `json:"LogEnabled,omitempty"` - NewMessageBadgeCountEnabled *bool `json:"NewMessageBadgeCountEnabled,omitempty"` - NewMessageEnabled *bool `json:"NewMessageEnabled,omitempty"` - NewMessageSound *string `json:"NewMessageSound,omitempty"` - NewMessageTemplate *string `json:"NewMessageTemplate,omitempty"` - RemovedFromConversationEnabled *bool `json:"RemovedFromConversationEnabled,omitempty"` - RemovedFromConversationSound *string `json:"RemovedFromConversationSound,omitempty"` - RemovedFromConversationTemplate *string `json:"RemovedFromConversationTemplate,omitempty"` + NewMessageBadgeCountEnabled *bool `json:"NewMessage.BadgeCountEnabled,omitempty"` + NewMessageEnabled *bool `json:"NewMessage.Enabled,omitempty"` + NewMessageSound *string `json:"NewMessage.Sound,omitempty"` + NewMessageTemplate *string `json:"NewMessage.Template,omitempty"` + RemovedFromConversationEnabled *bool `json:"RemovedFromConversation.Enabled,omitempty"` + RemovedFromConversationSound *string `json:"RemovedFromConversation.Sound,omitempty"` + RemovedFromConversationTemplate *string `json:"RemovedFromConversation.Template,omitempty"` } /* @@ -3718,17 +3718,17 @@ UpdateServiceNotification Method for UpdateServiceNotification Update push notification service settings * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Configuration applies to. * @param optional nil or *UpdateServiceNotificationOpts - Optional Parameters: - * @param "AddedToConversationEnabled" (bool) - Whether to send a notification when a participant is added to a conversation. The default is `false`. - * @param "AddedToConversationSound" (string) - The name of the sound to play when a participant is added to a conversation and `added_to_conversation.enabled` is `true`. - * @param "AddedToConversationTemplate" (string) - The template to use to create the notification text displayed when a participant is added to a conversation and `added_to_conversation.enabled` is `true`. + * @param "AddedToConversation.Enabled" (bool) - Whether to send a notification when a participant is added to a conversation. The default is `false`. + * @param "AddedToConversation.Sound" (string) - The name of the sound to play when a participant is added to a conversation and `added_to_conversation.enabled` is `true`. + * @param "AddedToConversation.Template" (string) - The template to use to create the notification text displayed when a participant is added to a conversation and `added_to_conversation.enabled` is `true`. * @param "LogEnabled" (bool) - Weather the notification logging is enabled. - * @param "NewMessageBadgeCountEnabled" (bool) - Whether the new message badge is enabled. The default is `false`. - * @param "NewMessageEnabled" (bool) - Whether to send a notification when a new message is added to a conversation. The default is `false`. - * @param "NewMessageSound" (string) - The name of the sound to play when a new message is added to a conversation and `new_message.enabled` is `true`. - * @param "NewMessageTemplate" (string) - The template to use to create the notification text displayed when a new message is added to a conversation and `new_message.enabled` is `true`. - * @param "RemovedFromConversationEnabled" (bool) - Whether to send a notification to a user when they are removed from a conversation. The default is `false`. - * @param "RemovedFromConversationSound" (string) - The name of the sound to play to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`. - * @param "RemovedFromConversationTemplate" (string) - The template to use to create the notification text displayed to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`. + * @param "NewMessage.BadgeCountEnabled" (bool) - Whether the new message badge is enabled. The default is `false`. + * @param "NewMessage.Enabled" (bool) - Whether to send a notification when a new message is added to a conversation. The default is `false`. + * @param "NewMessage.Sound" (string) - The name of the sound to play when a new message is added to a conversation and `new_message.enabled` is `true`. + * @param "NewMessage.Template" (string) - The template to use to create the notification text displayed when a new message is added to a conversation and `new_message.enabled` is `true`. + * @param "RemovedFromConversation.Enabled" (bool) - Whether to send a notification to a user when they are removed from a conversation. The default is `false`. + * @param "RemovedFromConversation.Sound" (string) - The name of the sound to play to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`. + * @param "RemovedFromConversation.Template" (string) - The template to use to create the notification text displayed to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`. @return ConversationsV1ServiceServiceConfigurationServiceNotification */ func (c *DefaultApiService) UpdateServiceNotification(ChatServiceSid string, params *UpdateServiceNotificationParams) (*ConversationsV1ServiceServiceConfigurationServiceNotification, error) { diff --git a/rest/flex/v1/api_default.go b/rest/flex/v1/api_default.go index b05b21bfa..d94a2a4c7 100644 --- a/rest/flex/v1/api_default.go +++ b/rest/flex/v1/api_default.go @@ -118,15 +118,15 @@ type CreateFlexFlowParams struct { ContactIdentity *string `json:"ContactIdentity,omitempty"` Enabled *bool `json:"Enabled,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` - IntegrationChannel *string `json:"IntegrationChannel,omitempty"` - IntegrationCreationOnMessage *bool `json:"IntegrationCreationOnMessage,omitempty"` - IntegrationFlowSid *string `json:"IntegrationFlowSid,omitempty"` - IntegrationPriority *int32 `json:"IntegrationPriority,omitempty"` - IntegrationRetryCount *int32 `json:"IntegrationRetryCount,omitempty"` - IntegrationTimeout *int32 `json:"IntegrationTimeout,omitempty"` - IntegrationUrl *string `json:"IntegrationUrl,omitempty"` - IntegrationWorkflowSid *string `json:"IntegrationWorkflowSid,omitempty"` - IntegrationWorkspaceSid *string `json:"IntegrationWorkspaceSid,omitempty"` + IntegrationChannel *string `json:"Integration.Channel,omitempty"` + IntegrationCreationOnMessage *bool `json:"Integration.CreationOnMessage,omitempty"` + IntegrationFlowSid *string `json:"Integration.FlowSid,omitempty"` + IntegrationPriority *int32 `json:"Integration.Priority,omitempty"` + IntegrationRetryCount *int32 `json:"Integration.RetryCount,omitempty"` + IntegrationTimeout *int32 `json:"Integration.Timeout,omitempty"` + IntegrationUrl *string `json:"Integration.Url,omitempty"` + IntegrationWorkflowSid *string `json:"Integration.WorkflowSid,omitempty"` + IntegrationWorkspaceSid *string `json:"Integration.WorkspaceSid,omitempty"` IntegrationType *string `json:"IntegrationType,omitempty"` JanitorEnabled *bool `json:"JanitorEnabled,omitempty"` LongLived *bool `json:"LongLived,omitempty"` @@ -140,15 +140,15 @@ CreateFlexFlow Method for CreateFlexFlow * @param "ContactIdentity" (string) - The channel contact's Identity. * @param "Enabled" (bool) - Whether the new Flex Flow is enabled. * @param "FriendlyName" (string) - A descriptive string that you create to describe the Flex Flow resource. - * @param "IntegrationChannel" (string) - The Task Channel for the TaskRouter Task that will be created. Applicable and required when integrationType is `task`. Set to `sms` for SMS, and to `chat` otherwise. The default value is `default` - * @param "IntegrationCreationOnMessage" (bool) - In the context of outbound messaging, defines whether to create a Task immediately (and therefore reserve the conversation to current agent), or delay Task creation until the customer sends the first response. Set to false to create immediately, true to delay Task creation. This setting is only applicable for outbound messaging. - * @param "IntegrationFlowSid" (string) - The SID of the Studio Flow. Required when `integrationType` is `studio`. - * @param "IntegrationPriority" (int32) - The Task priority of a new Task. The default priority is 0. Optional when `integrationType` is `task`, not applicable otherwise. - * @param "IntegrationRetryCount" (int32) - The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3 (included), default is 0. Optional when integrationType is `external`, not applicable otherwise. - * @param "IntegrationTimeout" (int32) - The Task timeout in seconds for a new Task. Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`, not applicable otherwise. - * @param "IntegrationUrl" (string) - The URL of the external webhook. Required when `integrationType` is `external`. - * @param "IntegrationWorkflowSid" (string) - The Workflow SID for a new Task. Required when `integrationType` is `task`. - * @param "IntegrationWorkspaceSid" (string) - The Workspace SID for a new Task. Required when `integrationType` is `task`. + * @param "Integration.Channel" (string) - The Task Channel for the TaskRouter Task that will be created. Applicable and required when integrationType is `task`. Set to `sms` for SMS, and to `chat` otherwise. The default value is `default` + * @param "Integration.CreationOnMessage" (bool) - In the context of outbound messaging, defines whether to create a Task immediately (and therefore reserve the conversation to current agent), or delay Task creation until the customer sends the first response. Set to false to create immediately, true to delay Task creation. This setting is only applicable for outbound messaging. + * @param "Integration.FlowSid" (string) - The SID of the Studio Flow. Required when `integrationType` is `studio`. + * @param "Integration.Priority" (int32) - The Task priority of a new Task. The default priority is 0. Optional when `integrationType` is `task`, not applicable otherwise. + * @param "Integration.RetryCount" (int32) - The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3 (included), default is 0. Optional when integrationType is `external`, not applicable otherwise. + * @param "Integration.Timeout" (int32) - The Task timeout in seconds for a new Task. Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`, not applicable otherwise. + * @param "Integration.Url" (string) - The URL of the external webhook. Required when `integrationType` is `external`. + * @param "Integration.WorkflowSid" (string) - The Workflow SID for a new Task. Required when `integrationType` is `task`. + * @param "Integration.WorkspaceSid" (string) - The Workspace SID for a new Task. Required when `integrationType` is `task`. * @param "IntegrationType" (string) - The integration type. Can be: `studio`, `external`, or `task`. * @param "JanitorEnabled" (bool) - When enabled, the Messaging Channel Janitor will remove active Proxy sessions if the associated Task is deleted outside of the Flex UI. Defaults to `false`. * @param "LongLived" (bool) - When enabled, Flex will keep the chat channel active so that it may be used for subsequent interactions with a contact identity. Defaults to `false`. @@ -640,15 +640,15 @@ type UpdateFlexFlowParams struct { ContactIdentity *string `json:"ContactIdentity,omitempty"` Enabled *bool `json:"Enabled,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` - IntegrationChannel *string `json:"IntegrationChannel,omitempty"` - IntegrationCreationOnMessage *bool `json:"IntegrationCreationOnMessage,omitempty"` - IntegrationFlowSid *string `json:"IntegrationFlowSid,omitempty"` - IntegrationPriority *int32 `json:"IntegrationPriority,omitempty"` - IntegrationRetryCount *int32 `json:"IntegrationRetryCount,omitempty"` - IntegrationTimeout *int32 `json:"IntegrationTimeout,omitempty"` - IntegrationUrl *string `json:"IntegrationUrl,omitempty"` - IntegrationWorkflowSid *string `json:"IntegrationWorkflowSid,omitempty"` - IntegrationWorkspaceSid *string `json:"IntegrationWorkspaceSid,omitempty"` + IntegrationChannel *string `json:"Integration.Channel,omitempty"` + IntegrationCreationOnMessage *bool `json:"Integration.CreationOnMessage,omitempty"` + IntegrationFlowSid *string `json:"Integration.FlowSid,omitempty"` + IntegrationPriority *int32 `json:"Integration.Priority,omitempty"` + IntegrationRetryCount *int32 `json:"Integration.RetryCount,omitempty"` + IntegrationTimeout *int32 `json:"Integration.Timeout,omitempty"` + IntegrationUrl *string `json:"Integration.Url,omitempty"` + IntegrationWorkflowSid *string `json:"Integration.WorkflowSid,omitempty"` + IntegrationWorkspaceSid *string `json:"Integration.WorkspaceSid,omitempty"` IntegrationType *string `json:"IntegrationType,omitempty"` JanitorEnabled *bool `json:"JanitorEnabled,omitempty"` LongLived *bool `json:"LongLived,omitempty"` @@ -663,15 +663,15 @@ UpdateFlexFlow Method for UpdateFlexFlow * @param "ContactIdentity" (string) - The channel contact's Identity. * @param "Enabled" (bool) - Whether the new Flex Flow is enabled. * @param "FriendlyName" (string) - A descriptive string that you create to describe the Flex Flow resource. - * @param "IntegrationChannel" (string) - The Task Channel for the TaskRouter Task that will be created. Applicable and required when integrationType is `task`. Set to `sms` for SMS, and to `chat` otherwise. The default value is `default` - * @param "IntegrationCreationOnMessage" (bool) - In the context of outbound messaging, defines whether to create a Task immediately (and therefore reserve the conversation to current agent), or delay Task creation until the customer sends the first response. Set to false to create immediately, true to delay Task creation. This setting is only applicable for outbound messaging. - * @param "IntegrationFlowSid" (string) - The SID of the Studio Flow. Required when `integrationType` is `studio`. - * @param "IntegrationPriority" (int32) - The Task priority of a new Task. The default priority is 0. Optional when `integrationType` is `task`, not applicable otherwise. - * @param "IntegrationRetryCount" (int32) - The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3 (included), default is 0. Optional when integrationType is `external`, not applicable otherwise. - * @param "IntegrationTimeout" (int32) - The Task timeout in seconds for a new Task. Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`, not applicable otherwise. - * @param "IntegrationUrl" (string) - The URL of the external webhook. Required when `integrationType` is `external`. - * @param "IntegrationWorkflowSid" (string) - The Workflow SID for a new Task. Required when `integrationType` is `task`. - * @param "IntegrationWorkspaceSid" (string) - The Workspace SID for a new Task. Required when `integrationType` is `task`. + * @param "Integration.Channel" (string) - The Task Channel for the TaskRouter Task that will be created. Applicable and required when integrationType is `task`. Set to `sms` for SMS, and to `chat` otherwise. The default value is `default` + * @param "Integration.CreationOnMessage" (bool) - In the context of outbound messaging, defines whether to create a Task immediately (and therefore reserve the conversation to current agent), or delay Task creation until the customer sends the first response. Set to false to create immediately, true to delay Task creation. This setting is only applicable for outbound messaging. + * @param "Integration.FlowSid" (string) - The SID of the Studio Flow. Required when `integrationType` is `studio`. + * @param "Integration.Priority" (int32) - The Task priority of a new Task. The default priority is 0. Optional when `integrationType` is `task`, not applicable otherwise. + * @param "Integration.RetryCount" (int32) - The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3 (included), default is 0. Optional when integrationType is `external`, not applicable otherwise. + * @param "Integration.Timeout" (int32) - The Task timeout in seconds for a new Task. Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`, not applicable otherwise. + * @param "Integration.Url" (string) - The URL of the external webhook. Required when `integrationType` is `external`. + * @param "Integration.WorkflowSid" (string) - The Workflow SID for a new Task. Required when `integrationType` is `task`. + * @param "Integration.WorkspaceSid" (string) - The Workspace SID for a new Task. Required when `integrationType` is `task`. * @param "IntegrationType" (string) - The integration type. Can be: `studio`, `external`, or `task`. * @param "JanitorEnabled" (bool) - When enabled, the Messaging Channel Janitor will remove active Proxy sessions if the associated Task is deleted outside of the Flex UI. Defaults to `false`. * @param "LongLived" (bool) - When enabled, Flex will keep the chat channel active so that it may be used for subsequent interactions with a contact identity. Defaults to `false`. diff --git a/rest/ip/messaging/api_default.go b/rest/ip/messaging/api_default.go index 005dd9aa9..b44715445 100644 --- a/rest/ip/messaging/api_default.go +++ b/rest/ip/messaging/api_default.go @@ -106,12 +106,12 @@ func (c *DefaultApiService) CreateChannel(ServiceSid string, params *CreateChann } // CreateChannelWebhookParams Optional parameters for the method 'CreateChannelWebhook' type CreateChannelWebhookParams struct { - ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` - ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` - ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` - ConfigurationRetryCount *int32 `json:"ConfigurationRetryCount,omitempty"` - ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` - ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` + ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` + ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` + ConfigurationMethod *string `json:"Configuration.Method,omitempty"` + ConfigurationRetryCount *int32 `json:"Configuration.RetryCount,omitempty"` + ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` + ConfigurationUrl *string `json:"Configuration.Url,omitempty"` Type *string `json:"Type,omitempty"` } @@ -120,12 +120,12 @@ CreateChannelWebhook Method for CreateChannelWebhook * @param ServiceSid * @param ChannelSid * @param optional nil or *CreateChannelWebhookOpts - Optional Parameters: - * @param "ConfigurationFilters" ([]string) - - * @param "ConfigurationFlowSid" (string) - - * @param "ConfigurationMethod" (string) - - * @param "ConfigurationRetryCount" (int32) - - * @param "ConfigurationTriggers" ([]string) - - * @param "ConfigurationUrl" (string) - + * @param "Configuration.Filters" ([]string) - + * @param "Configuration.FlowSid" (string) - + * @param "Configuration.Method" (string) - + * @param "Configuration.RetryCount" (int32) - + * @param "Configuration.Triggers" ([]string) - + * @param "Configuration.Url" (string) - * @param "Type" (string) - @return IpMessagingV2ServiceChannelChannelWebhook */ @@ -1908,12 +1908,12 @@ func (c *DefaultApiService) UpdateChannel(ServiceSid string, Sid string, params } // UpdateChannelWebhookParams Optional parameters for the method 'UpdateChannelWebhook' type UpdateChannelWebhookParams struct { - ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` - ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` - ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` - ConfigurationRetryCount *int32 `json:"ConfigurationRetryCount,omitempty"` - ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` - ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` + ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` + ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` + ConfigurationMethod *string `json:"Configuration.Method,omitempty"` + ConfigurationRetryCount *int32 `json:"Configuration.RetryCount,omitempty"` + ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` + ConfigurationUrl *string `json:"Configuration.Url,omitempty"` } /* @@ -1922,12 +1922,12 @@ UpdateChannelWebhook Method for UpdateChannelWebhook * @param ChannelSid * @param Sid * @param optional nil or *UpdateChannelWebhookOpts - Optional Parameters: - * @param "ConfigurationFilters" ([]string) - - * @param "ConfigurationFlowSid" (string) - - * @param "ConfigurationMethod" (string) - - * @param "ConfigurationRetryCount" (int32) - - * @param "ConfigurationTriggers" ([]string) - - * @param "ConfigurationUrl" (string) - + * @param "Configuration.Filters" ([]string) - + * @param "Configuration.FlowSid" (string) - + * @param "Configuration.Method" (string) - + * @param "Configuration.RetryCount" (int32) - + * @param "Configuration.Triggers" ([]string) - + * @param "Configuration.Url" (string) - @return IpMessagingV2ServiceChannelChannelWebhook */ func (c *DefaultApiService) UpdateChannelWebhook(ServiceSid string, ChannelSid string, Sid string, params *UpdateChannelWebhookParams) (*IpMessagingV2ServiceChannelChannelWebhook, error) { @@ -2232,23 +2232,23 @@ type UpdateServiceParams struct { DefaultChannelRoleSid *string `json:"DefaultChannelRoleSid,omitempty"` DefaultServiceRoleSid *string `json:"DefaultServiceRoleSid,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` - LimitsChannelMembers *int32 `json:"LimitsChannelMembers,omitempty"` - LimitsUserChannels *int32 `json:"LimitsUserChannels,omitempty"` - MediaCompatibilityMessage *string `json:"MediaCompatibilityMessage,omitempty"` - NotificationsAddedToChannelEnabled *bool `json:"NotificationsAddedToChannelEnabled,omitempty"` - NotificationsAddedToChannelSound *string `json:"NotificationsAddedToChannelSound,omitempty"` - NotificationsAddedToChannelTemplate *string `json:"NotificationsAddedToChannelTemplate,omitempty"` - NotificationsInvitedToChannelEnabled *bool `json:"NotificationsInvitedToChannelEnabled,omitempty"` - NotificationsInvitedToChannelSound *string `json:"NotificationsInvitedToChannelSound,omitempty"` - NotificationsInvitedToChannelTemplate *string `json:"NotificationsInvitedToChannelTemplate,omitempty"` - NotificationsLogEnabled *bool `json:"NotificationsLogEnabled,omitempty"` - NotificationsNewMessageBadgeCountEnabled *bool `json:"NotificationsNewMessageBadgeCountEnabled,omitempty"` - NotificationsNewMessageEnabled *bool `json:"NotificationsNewMessageEnabled,omitempty"` - NotificationsNewMessageSound *string `json:"NotificationsNewMessageSound,omitempty"` - NotificationsNewMessageTemplate *string `json:"NotificationsNewMessageTemplate,omitempty"` - NotificationsRemovedFromChannelEnabled *bool `json:"NotificationsRemovedFromChannelEnabled,omitempty"` - NotificationsRemovedFromChannelSound *string `json:"NotificationsRemovedFromChannelSound,omitempty"` - NotificationsRemovedFromChannelTemplate *string `json:"NotificationsRemovedFromChannelTemplate,omitempty"` + LimitsChannelMembers *int32 `json:"Limits.ChannelMembers,omitempty"` + LimitsUserChannels *int32 `json:"Limits.UserChannels,omitempty"` + MediaCompatibilityMessage *string `json:"Media.CompatibilityMessage,omitempty"` + NotificationsAddedToChannelEnabled *bool `json:"Notifications.AddedToChannel.Enabled,omitempty"` + NotificationsAddedToChannelSound *string `json:"Notifications.AddedToChannel.Sound,omitempty"` + NotificationsAddedToChannelTemplate *string `json:"Notifications.AddedToChannel.Template,omitempty"` + NotificationsInvitedToChannelEnabled *bool `json:"Notifications.InvitedToChannel.Enabled,omitempty"` + NotificationsInvitedToChannelSound *string `json:"Notifications.InvitedToChannel.Sound,omitempty"` + NotificationsInvitedToChannelTemplate *string `json:"Notifications.InvitedToChannel.Template,omitempty"` + NotificationsLogEnabled *bool `json:"Notifications.LogEnabled,omitempty"` + NotificationsNewMessageBadgeCountEnabled *bool `json:"Notifications.NewMessage.BadgeCountEnabled,omitempty"` + NotificationsNewMessageEnabled *bool `json:"Notifications.NewMessage.Enabled,omitempty"` + NotificationsNewMessageSound *string `json:"Notifications.NewMessage.Sound,omitempty"` + NotificationsNewMessageTemplate *string `json:"Notifications.NewMessage.Template,omitempty"` + NotificationsRemovedFromChannelEnabled *bool `json:"Notifications.RemovedFromChannel.Enabled,omitempty"` + NotificationsRemovedFromChannelSound *string `json:"Notifications.RemovedFromChannel.Sound,omitempty"` + NotificationsRemovedFromChannelTemplate *string `json:"Notifications.RemovedFromChannel.Template,omitempty"` PostWebhookRetryCount *int32 `json:"PostWebhookRetryCount,omitempty"` PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"` PreWebhookRetryCount *int32 `json:"PreWebhookRetryCount,omitempty"` @@ -2269,23 +2269,23 @@ UpdateService Method for UpdateService * @param "DefaultChannelRoleSid" (string) - * @param "DefaultServiceRoleSid" (string) - * @param "FriendlyName" (string) - - * @param "LimitsChannelMembers" (int32) - - * @param "LimitsUserChannels" (int32) - - * @param "MediaCompatibilityMessage" (string) - - * @param "NotificationsAddedToChannelEnabled" (bool) - - * @param "NotificationsAddedToChannelSound" (string) - - * @param "NotificationsAddedToChannelTemplate" (string) - - * @param "NotificationsInvitedToChannelEnabled" (bool) - - * @param "NotificationsInvitedToChannelSound" (string) - - * @param "NotificationsInvitedToChannelTemplate" (string) - - * @param "NotificationsLogEnabled" (bool) - - * @param "NotificationsNewMessageBadgeCountEnabled" (bool) - - * @param "NotificationsNewMessageEnabled" (bool) - - * @param "NotificationsNewMessageSound" (string) - - * @param "NotificationsNewMessageTemplate" (string) - - * @param "NotificationsRemovedFromChannelEnabled" (bool) - - * @param "NotificationsRemovedFromChannelSound" (string) - - * @param "NotificationsRemovedFromChannelTemplate" (string) - + * @param "Limits.ChannelMembers" (int32) - + * @param "Limits.UserChannels" (int32) - + * @param "Media.CompatibilityMessage" (string) - + * @param "Notifications.AddedToChannel.Enabled" (bool) - + * @param "Notifications.AddedToChannel.Sound" (string) - + * @param "Notifications.AddedToChannel.Template" (string) - + * @param "Notifications.InvitedToChannel.Enabled" (bool) - + * @param "Notifications.InvitedToChannel.Sound" (string) - + * @param "Notifications.InvitedToChannel.Template" (string) - + * @param "Notifications.LogEnabled" (bool) - + * @param "Notifications.NewMessage.BadgeCountEnabled" (bool) - + * @param "Notifications.NewMessage.Enabled" (bool) - + * @param "Notifications.NewMessage.Sound" (string) - + * @param "Notifications.NewMessage.Template" (string) - + * @param "Notifications.RemovedFromChannel.Enabled" (bool) - + * @param "Notifications.RemovedFromChannel.Sound" (string) - + * @param "Notifications.RemovedFromChannel.Template" (string) - * @param "PostWebhookRetryCount" (int32) - * @param "PostWebhookUrl" (string) - * @param "PreWebhookRetryCount" (int32) - diff --git a/rest/verify/v2/api_default.go b/rest/verify/v2/api_default.go index 0a49d0e9b..1c3b80e8c 100644 --- a/rest/verify/v2/api_default.go +++ b/rest/verify/v2/api_default.go @@ -124,8 +124,8 @@ func (c *DefaultApiService) CreateBucket(ServiceSid string, RateLimitSid string, } // CreateChallengeParams Optional parameters for the method 'CreateChallenge' type CreateChallengeParams struct { - DetailsFields *[]map[string]interface{} `json:"DetailsFields,omitempty"` - DetailsMessage *string `json:"DetailsMessage,omitempty"` + DetailsFields *[]map[string]interface{} `json:"Details.Fields,omitempty"` + DetailsMessage *string `json:"Details.Message,omitempty"` ExpirationDate *time.Time `json:"ExpirationDate,omitempty"` FactorSid *string `json:"FactorSid,omitempty"` HiddenDetails *map[string]interface{} `json:"HiddenDetails,omitempty"` @@ -137,8 +137,8 @@ Create a new Challenge for the Factor * @param ServiceSid The unique SID identifier of the Service. * @param Identity The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, and generated by your external system, such as your user's UUID, GUID, or SID. * @param optional nil or *CreateChallengeOpts - Optional Parameters: - * @param "DetailsFields" ([]map[string]interface{}) - A list of objects that describe the Fields included in the Challenge. Each object contains the label and value of the field. Used when `factor_type` is `push`. - * @param "DetailsMessage" (string) - Shown to the user when the push notification arrives. Required when `factor_type` is `push` + * @param "Details.Fields" ([]map[string]interface{}) - A list of objects that describe the Fields included in the Challenge. Each object contains the label and value of the field. Used when `factor_type` is `push`. + * @param "Details.Message" (string) - Shown to the user when the push notification arrives. Required when `factor_type` is `push` * @param "ExpirationDate" (time.Time) - The date-time when this Challenge expires, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. The default value is five (5) minutes after Challenge creation. The max value is sixty (60) minutes after creation. * @param "FactorSid" (string) - The unique SID identifier of the Factor. * @param "HiddenDetails" (map[string]interface{}) - Details provided to give context about the Challenge. Not shown to the end user. It must be a stringified JSON with only strings values eg. `{\\\"ip\\\": \\\"172.168.1.234\\\"}` @@ -160,7 +160,7 @@ func (c *DefaultApiService) CreateChallenge(ServiceSid string, Identity string, return nil, err } - data.Set("DetailsFields", fmt.Sprint(v)) + data.Set("Details.Fields", fmt.Sprint(v)) } if params != nil && params.DetailsMessage != nil { data.Set("DetailsMessage", *params.DetailsMessage) @@ -238,12 +238,12 @@ func (c *DefaultApiService) CreateEntity(ServiceSid string, params *CreateEntity } // CreateFactorParams Optional parameters for the method 'CreateFactor' type CreateFactorParams struct { - BindingAlg *string `json:"BindingAlg,omitempty"` - BindingPublicKey *string `json:"BindingPublicKey,omitempty"` - ConfigAppId *string `json:"ConfigAppId,omitempty"` - ConfigNotificationPlatform *string `json:"ConfigNotificationPlatform,omitempty"` - ConfigNotificationToken *string `json:"ConfigNotificationToken,omitempty"` - ConfigSdkVersion *string `json:"ConfigSdkVersion,omitempty"` + BindingAlg *string `json:"Binding.Alg,omitempty"` + BindingPublicKey *string `json:"Binding.PublicKey,omitempty"` + ConfigAppId *string `json:"Config.AppId,omitempty"` + ConfigNotificationPlatform *string `json:"Config.NotificationPlatform,omitempty"` + ConfigNotificationToken *string `json:"Config.NotificationToken,omitempty"` + ConfigSdkVersion *string `json:"Config.SdkVersion,omitempty"` FactorType *string `json:"FactorType,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` } @@ -254,12 +254,12 @@ Create a new Factor for the Entity * @param ServiceSid The unique SID identifier of the Service. * @param Identity Customer unique identity for the Entity owner of the Factor * @param optional nil or *CreateFactorOpts - Optional Parameters: - * @param "BindingAlg" (string) - The algorithm used when `factor_type` is `push`. Algorithm supported: `ES256` - * @param "BindingPublicKey" (string) - The Ecdsa public key in PKIX, ASN.1 DER format encoded in Base64 - * @param "ConfigAppId" (string) - The ID that uniquely identifies your app in the Google or Apple store, such as `com.example.myapp`. Required when `factor_type` is `push` - * @param "ConfigNotificationPlatform" (string) - The transport technology used to generate the Notification Token. Can be `apn` or `fcm`. Required when `factor_type` is `push` - * @param "ConfigNotificationToken" (string) - For APN, the device token. For FCM the registration token. It used to send the push notifications. Required when `factor_type` is `push` - * @param "ConfigSdkVersion" (string) - The Verify Push SDK version used to configure the factor + * @param "Binding.Alg" (string) - The algorithm used when `factor_type` is `push`. Algorithm supported: `ES256` + * @param "Binding.PublicKey" (string) - The Ecdsa public key in PKIX, ASN.1 DER format encoded in Base64 + * @param "Config.AppId" (string) - The ID that uniquely identifies your app in the Google or Apple store, such as `com.example.myapp`. Required when `factor_type` is `push` + * @param "Config.NotificationPlatform" (string) - The transport technology used to generate the Notification Token. Can be `apn` or `fcm`. Required when `factor_type` is `push` + * @param "Config.NotificationToken" (string) - For APN, the device token. For FCM the registration token. It used to send the push notifications. Required when `factor_type` is `push` + * @param "Config.SdkVersion" (string) - The Verify Push SDK version used to configure the factor * @param "FactorType" (string) - The Type of this Factor. Currently only `push` is supported * @param "FriendlyName" (string) - The friendly name of this Factor @return VerifyV2ServiceEntityFactor @@ -412,9 +412,9 @@ type CreateServiceParams struct { FriendlyName *string `json:"FriendlyName,omitempty"` LookupEnabled *bool `json:"LookupEnabled,omitempty"` Psd2Enabled *bool `json:"Psd2Enabled,omitempty"` - PushApnCredentialSid *string `json:"PushApnCredentialSid,omitempty"` - PushFcmCredentialSid *string `json:"PushFcmCredentialSid,omitempty"` - PushIncludeDate *bool `json:"PushIncludeDate,omitempty"` + PushApnCredentialSid *string `json:"Push.ApnCredentialSid,omitempty"` + PushFcmCredentialSid *string `json:"Push.FcmCredentialSid,omitempty"` + PushIncludeDate *bool `json:"Push.IncludeDate,omitempty"` SkipSmsToLandlines *bool `json:"SkipSmsToLandlines,omitempty"` TtsName *string `json:"TtsName,omitempty"` } @@ -430,9 +430,9 @@ Create a new Verification Service. * @param "FriendlyName" (string) - A descriptive string that you create to describe the verification service. It can be up to 30 characters long. **This value should not contain PII.** * @param "LookupEnabled" (bool) - Whether to perform a lookup with each verification started and return info about the phone number. * @param "Psd2Enabled" (bool) - Whether to pass PSD2 transaction parameters when starting a verification. - * @param "PushApnCredentialSid" (string) - Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) - * @param "PushFcmCredentialSid" (string) - Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) - * @param "PushIncludeDate" (bool) - Optional configuration for the Push factors. If true, include the date in the Challenge's reponse. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: true + * @param "Push.ApnCredentialSid" (string) - Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) + * @param "Push.FcmCredentialSid" (string) - Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) + * @param "Push.IncludeDate" (bool) - Optional configuration for the Push factors. If true, include the date in the Challenge's reponse. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: true * @param "SkipSmsToLandlines" (bool) - Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`. * @param "TtsName" (string) - The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. @return VerifyV2Service @@ -1671,8 +1671,8 @@ func (c *DefaultApiService) UpdateChallenge(ServiceSid string, Identity string, // UpdateFactorParams Optional parameters for the method 'UpdateFactor' type UpdateFactorParams struct { AuthPayload *string `json:"AuthPayload,omitempty"` - ConfigNotificationToken *string `json:"ConfigNotificationToken,omitempty"` - ConfigSdkVersion *string `json:"ConfigSdkVersion,omitempty"` + ConfigNotificationToken *string `json:"Config.NotificationToken,omitempty"` + ConfigSdkVersion *string `json:"Config.SdkVersion,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` } @@ -1684,8 +1684,8 @@ Update a specific Factor. This endpoint can be used to Verify a Factor if passed * @param Sid A 34 character string that uniquely identifies this Factor. * @param optional nil or *UpdateFactorOpts - Optional Parameters: * @param "AuthPayload" (string) - The optional payload needed to verify the Factor for the first time. E.g. for a TOTP, the numeric code. - * @param "ConfigNotificationToken" (string) - For APN, the device token. For FCM the registration token. It used to send the push notifications. Required when `factor_type` is `push` - * @param "ConfigSdkVersion" (string) - The Verify Push SDK version used to configure the factor + * @param "Config.NotificationToken" (string) - For APN, the device token. For FCM the registration token. It used to send the push notifications. Required when `factor_type` is `push` + * @param "Config.SdkVersion" (string) - The Verify Push SDK version used to configure the factor * @param "FriendlyName" (string) - The new friendly name of this Factor @return VerifyV2ServiceEntityFactor */ @@ -1820,9 +1820,9 @@ type UpdateServiceParams struct { FriendlyName *string `json:"FriendlyName,omitempty"` LookupEnabled *bool `json:"LookupEnabled,omitempty"` Psd2Enabled *bool `json:"Psd2Enabled,omitempty"` - PushApnCredentialSid *string `json:"PushApnCredentialSid,omitempty"` - PushFcmCredentialSid *string `json:"PushFcmCredentialSid,omitempty"` - PushIncludeDate *bool `json:"PushIncludeDate,omitempty"` + PushApnCredentialSid *string `json:"Push.ApnCredentialSid,omitempty"` + PushFcmCredentialSid *string `json:"Push.FcmCredentialSid,omitempty"` + PushIncludeDate *bool `json:"Push.IncludeDate,omitempty"` SkipSmsToLandlines *bool `json:"SkipSmsToLandlines,omitempty"` TtsName *string `json:"TtsName,omitempty"` } @@ -1839,9 +1839,9 @@ Update a specific Verification Service. * @param "FriendlyName" (string) - A descriptive string that you create to describe the verification service. It can be up to 30 characters long. **This value should not contain PII.** * @param "LookupEnabled" (bool) - Whether to perform a lookup with each verification started and return info about the phone number. * @param "Psd2Enabled" (bool) - Whether to pass PSD2 transaction parameters when starting a verification. - * @param "PushApnCredentialSid" (string) - Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) - * @param "PushFcmCredentialSid" (string) - Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) - * @param "PushIncludeDate" (bool) - Optional configuration for the Push factors. If true, include the date in the Challenge's reponse. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: true + * @param "Push.ApnCredentialSid" (string) - Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) + * @param "Push.FcmCredentialSid" (string) - Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) + * @param "Push.IncludeDate" (bool) - Optional configuration for the Push factors. If true, include the date in the Challenge's reponse. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: true * @param "SkipSmsToLandlines" (bool) - Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`. * @param "TtsName" (string) - The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. @return VerifyV2Service From fc9044cc5093882aef1d62d0612bff1ec6e85e74 Mon Sep 17 00:00:00 2001 From: Shwetha Radhakrishna Date: Sat, 23 Jan 2021 21:13:45 -0700 Subject: [PATCH 12/20] Undo last commit --- rest/chat/v1/api_default.go | 168 +++++++++++----------- rest/chat/v2/api_default.go | 116 ++++++++-------- rest/conversations/v1/api_default.go | 200 +++++++++++++-------------- rest/flex/v1/api_default.go | 72 +++++----- rest/ip/messaging/api_default.go | 116 ++++++++-------- rest/verify/v2/api_default.go | 66 ++++----- 6 files changed, 369 insertions(+), 369 deletions(-) diff --git a/rest/chat/v1/api_default.go b/rest/chat/v1/api_default.go index aa41aa2e4..623ef326c 100644 --- a/rest/chat/v1/api_default.go +++ b/rest/chat/v1/api_default.go @@ -1536,16 +1536,16 @@ type UpdateServiceParams struct { DefaultChannelRoleSid *string `json:"DefaultChannelRoleSid,omitempty"` DefaultServiceRoleSid *string `json:"DefaultServiceRoleSid,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` - LimitsChannelMembers *int32 `json:"LimitsChannelMembers,omitempty"` - LimitsUserChannels *int32 `json:"LimitsUserChannels,omitempty"` - NotificationsAddedToChannelEnabled *bool `json:"NotificationsAddedToChannelEnabled,omitempty"` - NotificationsAddedToChannelTemplate *string `json:"NotificationsAddedToChannelTemplate,omitempty"` - NotificationsInvitedToChannelEnabled *bool `json:"NotificationsInvitedToChannelEnabled,omitempty"` - NotificationsInvitedToChannelTemplate *string `json:"NotificationsInvitedToChannelTemplate,omitempty"` - NotificationsNewMessageEnabled *bool `json:"NotificationsNewMessageEnabled,omitempty"` - NotificationsNewMessageTemplate *string `json:"NotificationsNewMessageTemplate,omitempty"` - NotificationsRemovedFromChannelEnabled *bool `json:"NotificationsRemovedFromChannelEnabled,omitempty"` - NotificationsRemovedFromChannelTemplate *string `json:"NotificationsRemovedFromChannelTemplate,omitempty"` + LimitsChannelMembers *int32 `json:"Limits.ChannelMembers,omitempty"` + LimitsUserChannels *int32 `json:"Limits.UserChannels,omitempty"` + NotificationsAddedToChannelEnabled *bool `json:"Notifications.AddedToChannel.Enabled,omitempty"` + NotificationsAddedToChannelTemplate *string `json:"Notifications.AddedToChannel.Template,omitempty"` + NotificationsInvitedToChannelEnabled *bool `json:"Notifications.InvitedToChannel.Enabled,omitempty"` + NotificationsInvitedToChannelTemplate *string `json:"Notifications.InvitedToChannel.Template,omitempty"` + NotificationsNewMessageEnabled *bool `json:"Notifications.NewMessage.Enabled,omitempty"` + NotificationsNewMessageTemplate *string `json:"Notifications.NewMessage.Template,omitempty"` + NotificationsRemovedFromChannelEnabled *bool `json:"Notifications.RemovedFromChannel.Enabled,omitempty"` + NotificationsRemovedFromChannelTemplate *string `json:"Notifications.RemovedFromChannel.Template,omitempty"` PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"` PreWebhookUrl *string `json:"PreWebhookUrl,omitempty"` ReachabilityEnabled *bool `json:"ReachabilityEnabled,omitempty"` @@ -1553,38 +1553,38 @@ type UpdateServiceParams struct { TypingIndicatorTimeout *int32 `json:"TypingIndicatorTimeout,omitempty"` WebhookFilters *[]string `json:"WebhookFilters,omitempty"` WebhookMethod *string `json:"WebhookMethod,omitempty"` - WebhooksOnChannelAddMethod *string `json:"WebhooksOnChannelAddMethod,omitempty"` - WebhooksOnChannelAddUrl *string `json:"WebhooksOnChannelAddUrl,omitempty"` - WebhooksOnChannelAddedMethod *string `json:"WebhooksOnChannelAddedMethod,omitempty"` - WebhooksOnChannelAddedUrl *string `json:"WebhooksOnChannelAddedUrl,omitempty"` - WebhooksOnChannelDestroyMethod *string `json:"WebhooksOnChannelDestroyMethod,omitempty"` - WebhooksOnChannelDestroyUrl *string `json:"WebhooksOnChannelDestroyUrl,omitempty"` - WebhooksOnChannelDestroyedMethod *string `json:"WebhooksOnChannelDestroyedMethod,omitempty"` - WebhooksOnChannelDestroyedUrl *string `json:"WebhooksOnChannelDestroyedUrl,omitempty"` - WebhooksOnChannelUpdateMethod *string `json:"WebhooksOnChannelUpdateMethod,omitempty"` - WebhooksOnChannelUpdateUrl *string `json:"WebhooksOnChannelUpdateUrl,omitempty"` - WebhooksOnChannelUpdatedMethod *string `json:"WebhooksOnChannelUpdatedMethod,omitempty"` - WebhooksOnChannelUpdatedUrl *string `json:"WebhooksOnChannelUpdatedUrl,omitempty"` - WebhooksOnMemberAddMethod *string `json:"WebhooksOnMemberAddMethod,omitempty"` - WebhooksOnMemberAddUrl *string `json:"WebhooksOnMemberAddUrl,omitempty"` - WebhooksOnMemberAddedMethod *string `json:"WebhooksOnMemberAddedMethod,omitempty"` - WebhooksOnMemberAddedUrl *string `json:"WebhooksOnMemberAddedUrl,omitempty"` - WebhooksOnMemberRemoveMethod *string `json:"WebhooksOnMemberRemoveMethod,omitempty"` - WebhooksOnMemberRemoveUrl *string `json:"WebhooksOnMemberRemoveUrl,omitempty"` - WebhooksOnMemberRemovedMethod *string `json:"WebhooksOnMemberRemovedMethod,omitempty"` - WebhooksOnMemberRemovedUrl *string `json:"WebhooksOnMemberRemovedUrl,omitempty"` - WebhooksOnMessageRemoveMethod *string `json:"WebhooksOnMessageRemoveMethod,omitempty"` - WebhooksOnMessageRemoveUrl *string `json:"WebhooksOnMessageRemoveUrl,omitempty"` - WebhooksOnMessageRemovedMethod *string `json:"WebhooksOnMessageRemovedMethod,omitempty"` - WebhooksOnMessageRemovedUrl *string `json:"WebhooksOnMessageRemovedUrl,omitempty"` - WebhooksOnMessageSendMethod *string `json:"WebhooksOnMessageSendMethod,omitempty"` - WebhooksOnMessageSendUrl *string `json:"WebhooksOnMessageSendUrl,omitempty"` - WebhooksOnMessageSentMethod *string `json:"WebhooksOnMessageSentMethod,omitempty"` - WebhooksOnMessageSentUrl *string `json:"WebhooksOnMessageSentUrl,omitempty"` - WebhooksOnMessageUpdateMethod *string `json:"WebhooksOnMessageUpdateMethod,omitempty"` - WebhooksOnMessageUpdateUrl *string `json:"WebhooksOnMessageUpdateUrl,omitempty"` - WebhooksOnMessageUpdatedMethod *string `json:"WebhooksOnMessageUpdatedMethod,omitempty"` - WebhooksOnMessageUpdatedUrl *string `json:"WebhooksOnMessageUpdatedUrl,omitempty"` + WebhooksOnChannelAddMethod *string `json:"Webhooks.OnChannelAdd.Method,omitempty"` + WebhooksOnChannelAddUrl *string `json:"Webhooks.OnChannelAdd.Url,omitempty"` + WebhooksOnChannelAddedMethod *string `json:"Webhooks.OnChannelAdded.Method,omitempty"` + WebhooksOnChannelAddedUrl *string `json:"Webhooks.OnChannelAdded.Url,omitempty"` + WebhooksOnChannelDestroyMethod *string `json:"Webhooks.OnChannelDestroy.Method,omitempty"` + WebhooksOnChannelDestroyUrl *string `json:"Webhooks.OnChannelDestroy.Url,omitempty"` + WebhooksOnChannelDestroyedMethod *string `json:"Webhooks.OnChannelDestroyed.Method,omitempty"` + WebhooksOnChannelDestroyedUrl *string `json:"Webhooks.OnChannelDestroyed.Url,omitempty"` + WebhooksOnChannelUpdateMethod *string `json:"Webhooks.OnChannelUpdate.Method,omitempty"` + WebhooksOnChannelUpdateUrl *string `json:"Webhooks.OnChannelUpdate.Url,omitempty"` + WebhooksOnChannelUpdatedMethod *string `json:"Webhooks.OnChannelUpdated.Method,omitempty"` + WebhooksOnChannelUpdatedUrl *string `json:"Webhooks.OnChannelUpdated.Url,omitempty"` + WebhooksOnMemberAddMethod *string `json:"Webhooks.OnMemberAdd.Method,omitempty"` + WebhooksOnMemberAddUrl *string `json:"Webhooks.OnMemberAdd.Url,omitempty"` + WebhooksOnMemberAddedMethod *string `json:"Webhooks.OnMemberAdded.Method,omitempty"` + WebhooksOnMemberAddedUrl *string `json:"Webhooks.OnMemberAdded.Url,omitempty"` + WebhooksOnMemberRemoveMethod *string `json:"Webhooks.OnMemberRemove.Method,omitempty"` + WebhooksOnMemberRemoveUrl *string `json:"Webhooks.OnMemberRemove.Url,omitempty"` + WebhooksOnMemberRemovedMethod *string `json:"Webhooks.OnMemberRemoved.Method,omitempty"` + WebhooksOnMemberRemovedUrl *string `json:"Webhooks.OnMemberRemoved.Url,omitempty"` + WebhooksOnMessageRemoveMethod *string `json:"Webhooks.OnMessageRemove.Method,omitempty"` + WebhooksOnMessageRemoveUrl *string `json:"Webhooks.OnMessageRemove.Url,omitempty"` + WebhooksOnMessageRemovedMethod *string `json:"Webhooks.OnMessageRemoved.Method,omitempty"` + WebhooksOnMessageRemovedUrl *string `json:"Webhooks.OnMessageRemoved.Url,omitempty"` + WebhooksOnMessageSendMethod *string `json:"Webhooks.OnMessageSend.Method,omitempty"` + WebhooksOnMessageSendUrl *string `json:"Webhooks.OnMessageSend.Url,omitempty"` + WebhooksOnMessageSentMethod *string `json:"Webhooks.OnMessageSent.Method,omitempty"` + WebhooksOnMessageSentUrl *string `json:"Webhooks.OnMessageSent.Url,omitempty"` + WebhooksOnMessageUpdateMethod *string `json:"Webhooks.OnMessageUpdate.Method,omitempty"` + WebhooksOnMessageUpdateUrl *string `json:"Webhooks.OnMessageUpdate.Url,omitempty"` + WebhooksOnMessageUpdatedMethod *string `json:"Webhooks.OnMessageUpdated.Method,omitempty"` + WebhooksOnMessageUpdatedUrl *string `json:"Webhooks.OnMessageUpdated.Url,omitempty"` } /* @@ -1596,16 +1596,16 @@ UpdateService Method for UpdateService * @param "DefaultChannelRoleSid" (string) - The channel role assigned to users when they are added to a channel. See the [Roles endpoint](https://www.twilio.com/docs/chat/api/roles) for more details. * @param "DefaultServiceRoleSid" (string) - The service role assigned to users when they are added to the service. See the [Roles endpoint](https://www.twilio.com/docs/chat/api/roles) for more details. * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. - * @param "LimitsChannelMembers" (int32) - The maximum number of Members that can be added to Channels within this Service. Can be up to 1,000. - * @param "LimitsUserChannels" (int32) - The maximum number of Channels Users can be a Member of within this Service. Can be up to 1,000. - * @param "NotificationsAddedToChannelEnabled" (bool) - Whether to send a notification when a member is added to a channel. Can be: `true` or `false` and the default is `false`. - * @param "NotificationsAddedToChannelTemplate" (string) - The template to use to create the notification text displayed when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. - * @param "NotificationsInvitedToChannelEnabled" (bool) - Whether to send a notification when a user is invited to a channel. Can be: `true` or `false` and the default is `false`. - * @param "NotificationsInvitedToChannelTemplate" (string) - The template to use to create the notification text displayed when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. - * @param "NotificationsNewMessageEnabled" (bool) - Whether to send a notification when a new message is added to a channel. Can be: `true` or `false` and the default is `false`. - * @param "NotificationsNewMessageTemplate" (string) - The template to use to create the notification text displayed when a new message is added to a channel and `notifications.new_message.enabled` is `true`. - * @param "NotificationsRemovedFromChannelEnabled" (bool) - Whether to send a notification to a user when they are removed from a channel. Can be: `true` or `false` and the default is `false`. - * @param "NotificationsRemovedFromChannelTemplate" (string) - The template to use to create the notification text displayed to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. + * @param "Limits.ChannelMembers" (int32) - The maximum number of Members that can be added to Channels within this Service. Can be up to 1,000. + * @param "Limits.UserChannels" (int32) - The maximum number of Channels Users can be a Member of within this Service. Can be up to 1,000. + * @param "Notifications.AddedToChannel.Enabled" (bool) - Whether to send a notification when a member is added to a channel. Can be: `true` or `false` and the default is `false`. + * @param "Notifications.AddedToChannel.Template" (string) - The template to use to create the notification text displayed when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. + * @param "Notifications.InvitedToChannel.Enabled" (bool) - Whether to send a notification when a user is invited to a channel. Can be: `true` or `false` and the default is `false`. + * @param "Notifications.InvitedToChannel.Template" (string) - The template to use to create the notification text displayed when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. + * @param "Notifications.NewMessage.Enabled" (bool) - Whether to send a notification when a new message is added to a channel. Can be: `true` or `false` and the default is `false`. + * @param "Notifications.NewMessage.Template" (string) - The template to use to create the notification text displayed when a new message is added to a channel and `notifications.new_message.enabled` is `true`. + * @param "Notifications.RemovedFromChannel.Enabled" (bool) - Whether to send a notification to a user when they are removed from a channel. Can be: `true` or `false` and the default is `false`. + * @param "Notifications.RemovedFromChannel.Template" (string) - The template to use to create the notification text displayed to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. * @param "PostWebhookUrl" (string) - The URL for post-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more details. * @param "PreWebhookUrl" (string) - The URL for pre-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more details. * @param "ReachabilityEnabled" (bool) - Whether to enable the [Reachability Indicator](https://www.twilio.com/docs/chat/reachability-indicator) for this Service instance. The default is `false`. @@ -1613,38 +1613,38 @@ UpdateService Method for UpdateService * @param "TypingIndicatorTimeout" (int32) - How long in seconds after a `started typing` event until clients should assume that user is no longer typing, even if no `ended typing` message was received. The default is 5 seconds. * @param "WebhookFilters" ([]string) - The list of WebHook events that are enabled for this Service instance. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. * @param "WebhookMethod" (string) - The HTTP method to use for calls to the `pre_webhook_url` and `post_webhook_url` webhooks. Can be: `POST` or `GET` and the default is `POST`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. - * @param "WebhooksOnChannelAddMethod" (string) - The HTTP method to use when calling the `webhooks.on_channel_add.url`. - * @param "WebhooksOnChannelAddUrl" (string) - The URL of the webhook to call in response to the `on_channel_add` event using the `webhooks.on_channel_add.method` HTTP method. - * @param "WebhooksOnChannelAddedMethod" (string) - The URL of the webhook to call in response to the `on_channel_added` event`. - * @param "WebhooksOnChannelAddedUrl" (string) - The URL of the webhook to call in response to the `on_channel_added` event using the `webhooks.on_channel_added.method` HTTP method. - * @param "WebhooksOnChannelDestroyMethod" (string) - The HTTP method to use when calling the `webhooks.on_channel_destroy.url`. - * @param "WebhooksOnChannelDestroyUrl" (string) - The URL of the webhook to call in response to the `on_channel_destroy` event using the `webhooks.on_channel_destroy.method` HTTP method. - * @param "WebhooksOnChannelDestroyedMethod" (string) - The HTTP method to use when calling the `webhooks.on_channel_destroyed.url`. - * @param "WebhooksOnChannelDestroyedUrl" (string) - The URL of the webhook to call in response to the `on_channel_added` event using the `webhooks.on_channel_destroyed.method` HTTP method. - * @param "WebhooksOnChannelUpdateMethod" (string) - The HTTP method to use when calling the `webhooks.on_channel_update.url`. - * @param "WebhooksOnChannelUpdateUrl" (string) - The URL of the webhook to call in response to the `on_channel_update` event using the `webhooks.on_channel_update.method` HTTP method. - * @param "WebhooksOnChannelUpdatedMethod" (string) - The HTTP method to use when calling the `webhooks.on_channel_updated.url`. - * @param "WebhooksOnChannelUpdatedUrl" (string) - The URL of the webhook to call in response to the `on_channel_updated` event using the `webhooks.on_channel_updated.method` HTTP method. - * @param "WebhooksOnMemberAddMethod" (string) - The HTTP method to use when calling the `webhooks.on_member_add.url`. - * @param "WebhooksOnMemberAddUrl" (string) - The URL of the webhook to call in response to the `on_member_add` event using the `webhooks.on_member_add.method` HTTP method. - * @param "WebhooksOnMemberAddedMethod" (string) - The HTTP method to use when calling the `webhooks.on_channel_updated.url`. - * @param "WebhooksOnMemberAddedUrl" (string) - The URL of the webhook to call in response to the `on_channel_updated` event using the `webhooks.on_channel_updated.method` HTTP method. - * @param "WebhooksOnMemberRemoveMethod" (string) - The HTTP method to use when calling the `webhooks.on_member_remove.url`. - * @param "WebhooksOnMemberRemoveUrl" (string) - The URL of the webhook to call in response to the `on_member_remove` event using the `webhooks.on_member_remove.method` HTTP method. - * @param "WebhooksOnMemberRemovedMethod" (string) - The HTTP method to use when calling the `webhooks.on_member_removed.url`. - * @param "WebhooksOnMemberRemovedUrl" (string) - The URL of the webhook to call in response to the `on_member_removed` event using the `webhooks.on_member_removed.method` HTTP method. - * @param "WebhooksOnMessageRemoveMethod" (string) - The HTTP method to use when calling the `webhooks.on_message_remove.url`. - * @param "WebhooksOnMessageRemoveUrl" (string) - The URL of the webhook to call in response to the `on_message_remove` event using the `webhooks.on_message_remove.method` HTTP method. - * @param "WebhooksOnMessageRemovedMethod" (string) - The HTTP method to use when calling the `webhooks.on_message_removed.url`. - * @param "WebhooksOnMessageRemovedUrl" (string) - The URL of the webhook to call in response to the `on_message_removed` event using the `webhooks.on_message_removed.method` HTTP method. - * @param "WebhooksOnMessageSendMethod" (string) - The HTTP method to use when calling the `webhooks.on_message_send.url`. - * @param "WebhooksOnMessageSendUrl" (string) - The URL of the webhook to call in response to the `on_message_send` event using the `webhooks.on_message_send.method` HTTP method. - * @param "WebhooksOnMessageSentMethod" (string) - The URL of the webhook to call in response to the `on_message_sent` event`. - * @param "WebhooksOnMessageSentUrl" (string) - The URL of the webhook to call in response to the `on_message_sent` event using the `webhooks.on_message_sent.method` HTTP method. - * @param "WebhooksOnMessageUpdateMethod" (string) - The HTTP method to use when calling the `webhooks.on_message_update.url`. - * @param "WebhooksOnMessageUpdateUrl" (string) - The URL of the webhook to call in response to the `on_message_update` event using the `webhooks.on_message_update.method` HTTP method. - * @param "WebhooksOnMessageUpdatedMethod" (string) - The HTTP method to use when calling the `webhooks.on_message_updated.url`. - * @param "WebhooksOnMessageUpdatedUrl" (string) - The URL of the webhook to call in response to the `on_message_updated` event using the `webhooks.on_message_updated.method` HTTP method. + * @param "Webhooks.OnChannelAdd.Method" (string) - The HTTP method to use when calling the `webhooks.on_channel_add.url`. + * @param "Webhooks.OnChannelAdd.Url" (string) - The URL of the webhook to call in response to the `on_channel_add` event using the `webhooks.on_channel_add.method` HTTP method. + * @param "Webhooks.OnChannelAdded.Method" (string) - The URL of the webhook to call in response to the `on_channel_added` event`. + * @param "Webhooks.OnChannelAdded.Url" (string) - The URL of the webhook to call in response to the `on_channel_added` event using the `webhooks.on_channel_added.method` HTTP method. + * @param "Webhooks.OnChannelDestroy.Method" (string) - The HTTP method to use when calling the `webhooks.on_channel_destroy.url`. + * @param "Webhooks.OnChannelDestroy.Url" (string) - The URL of the webhook to call in response to the `on_channel_destroy` event using the `webhooks.on_channel_destroy.method` HTTP method. + * @param "Webhooks.OnChannelDestroyed.Method" (string) - The HTTP method to use when calling the `webhooks.on_channel_destroyed.url`. + * @param "Webhooks.OnChannelDestroyed.Url" (string) - The URL of the webhook to call in response to the `on_channel_added` event using the `webhooks.on_channel_destroyed.method` HTTP method. + * @param "Webhooks.OnChannelUpdate.Method" (string) - The HTTP method to use when calling the `webhooks.on_channel_update.url`. + * @param "Webhooks.OnChannelUpdate.Url" (string) - The URL of the webhook to call in response to the `on_channel_update` event using the `webhooks.on_channel_update.method` HTTP method. + * @param "Webhooks.OnChannelUpdated.Method" (string) - The HTTP method to use when calling the `webhooks.on_channel_updated.url`. + * @param "Webhooks.OnChannelUpdated.Url" (string) - The URL of the webhook to call in response to the `on_channel_updated` event using the `webhooks.on_channel_updated.method` HTTP method. + * @param "Webhooks.OnMemberAdd.Method" (string) - The HTTP method to use when calling the `webhooks.on_member_add.url`. + * @param "Webhooks.OnMemberAdd.Url" (string) - The URL of the webhook to call in response to the `on_member_add` event using the `webhooks.on_member_add.method` HTTP method. + * @param "Webhooks.OnMemberAdded.Method" (string) - The HTTP method to use when calling the `webhooks.on_channel_updated.url`. + * @param "Webhooks.OnMemberAdded.Url" (string) - The URL of the webhook to call in response to the `on_channel_updated` event using the `webhooks.on_channel_updated.method` HTTP method. + * @param "Webhooks.OnMemberRemove.Method" (string) - The HTTP method to use when calling the `webhooks.on_member_remove.url`. + * @param "Webhooks.OnMemberRemove.Url" (string) - The URL of the webhook to call in response to the `on_member_remove` event using the `webhooks.on_member_remove.method` HTTP method. + * @param "Webhooks.OnMemberRemoved.Method" (string) - The HTTP method to use when calling the `webhooks.on_member_removed.url`. + * @param "Webhooks.OnMemberRemoved.Url" (string) - The URL of the webhook to call in response to the `on_member_removed` event using the `webhooks.on_member_removed.method` HTTP method. + * @param "Webhooks.OnMessageRemove.Method" (string) - The HTTP method to use when calling the `webhooks.on_message_remove.url`. + * @param "Webhooks.OnMessageRemove.Url" (string) - The URL of the webhook to call in response to the `on_message_remove` event using the `webhooks.on_message_remove.method` HTTP method. + * @param "Webhooks.OnMessageRemoved.Method" (string) - The HTTP method to use when calling the `webhooks.on_message_removed.url`. + * @param "Webhooks.OnMessageRemoved.Url" (string) - The URL of the webhook to call in response to the `on_message_removed` event using the `webhooks.on_message_removed.method` HTTP method. + * @param "Webhooks.OnMessageSend.Method" (string) - The HTTP method to use when calling the `webhooks.on_message_send.url`. + * @param "Webhooks.OnMessageSend.Url" (string) - The URL of the webhook to call in response to the `on_message_send` event using the `webhooks.on_message_send.method` HTTP method. + * @param "Webhooks.OnMessageSent.Method" (string) - The URL of the webhook to call in response to the `on_message_sent` event`. + * @param "Webhooks.OnMessageSent.Url" (string) - The URL of the webhook to call in response to the `on_message_sent` event using the `webhooks.on_message_sent.method` HTTP method. + * @param "Webhooks.OnMessageUpdate.Method" (string) - The HTTP method to use when calling the `webhooks.on_message_update.url`. + * @param "Webhooks.OnMessageUpdate.Url" (string) - The URL of the webhook to call in response to the `on_message_update` event using the `webhooks.on_message_update.method` HTTP method. + * @param "Webhooks.OnMessageUpdated.Method" (string) - The HTTP method to use when calling the `webhooks.on_message_updated.url`. + * @param "Webhooks.OnMessageUpdated.Url" (string) - The URL of the webhook to call in response to the `on_message_updated` event using the `webhooks.on_message_updated.method` HTTP method. @return ChatV1Service */ func (c *DefaultApiService) UpdateService(Sid string, params *UpdateServiceParams) (*ChatV1Service, error) { diff --git a/rest/chat/v2/api_default.go b/rest/chat/v2/api_default.go index 36ca2ff96..339c22743 100644 --- a/rest/chat/v2/api_default.go +++ b/rest/chat/v2/api_default.go @@ -106,12 +106,12 @@ func (c *DefaultApiService) CreateChannel(ServiceSid string, params *CreateChann } // CreateChannelWebhookParams Optional parameters for the method 'CreateChannelWebhook' type CreateChannelWebhookParams struct { - ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` - ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` - ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` - ConfigurationRetryCount *int32 `json:"ConfigurationRetryCount,omitempty"` - ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` - ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` + ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` + ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` + ConfigurationMethod *string `json:"Configuration.Method,omitempty"` + ConfigurationRetryCount *int32 `json:"Configuration.RetryCount,omitempty"` + ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` + ConfigurationUrl *string `json:"Configuration.Url,omitempty"` Type *string `json:"Type,omitempty"` } @@ -120,12 +120,12 @@ CreateChannelWebhook Method for CreateChannelWebhook * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel to create the Webhook resource under. * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the new Channel Webhook resource belongs to. This value can be the Channel resource's `sid` or `unique_name`. * @param optional nil or *CreateChannelWebhookOpts - Optional Parameters: - * @param "ConfigurationFilters" ([]string) - The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger). - * @param "ConfigurationFlowSid" (string) - The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` is `studio`. - * @param "ConfigurationMethod" (string) - The HTTP method used to call `configuration.url`. Can be: `GET` or `POST` and the default is `POST`. - * @param "ConfigurationRetryCount" (int32) - The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0. - * @param "ConfigurationTriggers" ([]string) - A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`. - * @param "ConfigurationUrl" (string) - The URL of the webhook to call using the `configuration.method`. + * @param "Configuration.Filters" ([]string) - The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger). + * @param "Configuration.FlowSid" (string) - The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` is `studio`. + * @param "Configuration.Method" (string) - The HTTP method used to call `configuration.url`. Can be: `GET` or `POST` and the default is `POST`. + * @param "Configuration.RetryCount" (int32) - The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0. + * @param "Configuration.Triggers" ([]string) - A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`. + * @param "Configuration.Url" (string) - The URL of the webhook to call using the `configuration.method`. * @param "Type" (string) - The type of webhook. Can be: `webhook`, `studio`, or `trigger`. @return ChatV2ServiceChannelChannelWebhook */ @@ -1910,12 +1910,12 @@ func (c *DefaultApiService) UpdateChannel(ServiceSid string, Sid string, params } // UpdateChannelWebhookParams Optional parameters for the method 'UpdateChannelWebhook' type UpdateChannelWebhookParams struct { - ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` - ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` - ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` - ConfigurationRetryCount *int32 `json:"ConfigurationRetryCount,omitempty"` - ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` - ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` + ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` + ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` + ConfigurationMethod *string `json:"Configuration.Method,omitempty"` + ConfigurationRetryCount *int32 `json:"Configuration.RetryCount,omitempty"` + ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` + ConfigurationUrl *string `json:"Configuration.Url,omitempty"` } /* @@ -1924,12 +1924,12 @@ UpdateChannelWebhook Method for UpdateChannelWebhook * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook resource to update belongs to. This value can be the Channel resource's `sid` or `unique_name`. * @param Sid The SID of the Channel Webhook resource to update. * @param optional nil or *UpdateChannelWebhookOpts - Optional Parameters: - * @param "ConfigurationFilters" ([]string) - The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger). - * @param "ConfigurationFlowSid" (string) - The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` = `studio`. - * @param "ConfigurationMethod" (string) - The HTTP method used to call `configuration.url`. Can be: `GET` or `POST` and the default is `POST`. - * @param "ConfigurationRetryCount" (int32) - The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0. - * @param "ConfigurationTriggers" ([]string) - A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`. - * @param "ConfigurationUrl" (string) - The URL of the webhook to call using the `configuration.method`. + * @param "Configuration.Filters" ([]string) - The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger). + * @param "Configuration.FlowSid" (string) - The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` = `studio`. + * @param "Configuration.Method" (string) - The HTTP method used to call `configuration.url`. Can be: `GET` or `POST` and the default is `POST`. + * @param "Configuration.RetryCount" (int32) - The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0. + * @param "Configuration.Triggers" ([]string) - A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`. + * @param "Configuration.Url" (string) - The URL of the webhook to call using the `configuration.method`. @return ChatV2ServiceChannelChannelWebhook */ func (c *DefaultApiService) UpdateChannelWebhook(ServiceSid string, ChannelSid string, Sid string, params *UpdateChannelWebhookParams) (*ChatV2ServiceChannelChannelWebhook, error) { @@ -2234,23 +2234,23 @@ type UpdateServiceParams struct { DefaultChannelRoleSid *string `json:"DefaultChannelRoleSid,omitempty"` DefaultServiceRoleSid *string `json:"DefaultServiceRoleSid,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` - LimitsChannelMembers *int32 `json:"LimitsChannelMembers,omitempty"` - LimitsUserChannels *int32 `json:"LimitsUserChannels,omitempty"` - MediaCompatibilityMessage *string `json:"MediaCompatibilityMessage,omitempty"` - NotificationsAddedToChannelEnabled *bool `json:"NotificationsAddedToChannelEnabled,omitempty"` - NotificationsAddedToChannelSound *string `json:"NotificationsAddedToChannelSound,omitempty"` - NotificationsAddedToChannelTemplate *string `json:"NotificationsAddedToChannelTemplate,omitempty"` - NotificationsInvitedToChannelEnabled *bool `json:"NotificationsInvitedToChannelEnabled,omitempty"` - NotificationsInvitedToChannelSound *string `json:"NotificationsInvitedToChannelSound,omitempty"` - NotificationsInvitedToChannelTemplate *string `json:"NotificationsInvitedToChannelTemplate,omitempty"` - NotificationsLogEnabled *bool `json:"NotificationsLogEnabled,omitempty"` - NotificationsNewMessageBadgeCountEnabled *bool `json:"NotificationsNewMessageBadgeCountEnabled,omitempty"` - NotificationsNewMessageEnabled *bool `json:"NotificationsNewMessageEnabled,omitempty"` - NotificationsNewMessageSound *string `json:"NotificationsNewMessageSound,omitempty"` - NotificationsNewMessageTemplate *string `json:"NotificationsNewMessageTemplate,omitempty"` - NotificationsRemovedFromChannelEnabled *bool `json:"NotificationsRemovedFromChannelEnabled,omitempty"` - NotificationsRemovedFromChannelSound *string `json:"NotificationsRemovedFromChannelSound,omitempty"` - NotificationsRemovedFromChannelTemplate *string `json:"NotificationsRemovedFromChannelTemplate,omitempty"` + LimitsChannelMembers *int32 `json:"Limits.ChannelMembers,omitempty"` + LimitsUserChannels *int32 `json:"Limits.UserChannels,omitempty"` + MediaCompatibilityMessage *string `json:"Media.CompatibilityMessage,omitempty"` + NotificationsAddedToChannelEnabled *bool `json:"Notifications.AddedToChannel.Enabled,omitempty"` + NotificationsAddedToChannelSound *string `json:"Notifications.AddedToChannel.Sound,omitempty"` + NotificationsAddedToChannelTemplate *string `json:"Notifications.AddedToChannel.Template,omitempty"` + NotificationsInvitedToChannelEnabled *bool `json:"Notifications.InvitedToChannel.Enabled,omitempty"` + NotificationsInvitedToChannelSound *string `json:"Notifications.InvitedToChannel.Sound,omitempty"` + NotificationsInvitedToChannelTemplate *string `json:"Notifications.InvitedToChannel.Template,omitempty"` + NotificationsLogEnabled *bool `json:"Notifications.LogEnabled,omitempty"` + NotificationsNewMessageBadgeCountEnabled *bool `json:"Notifications.NewMessage.BadgeCountEnabled,omitempty"` + NotificationsNewMessageEnabled *bool `json:"Notifications.NewMessage.Enabled,omitempty"` + NotificationsNewMessageSound *string `json:"Notifications.NewMessage.Sound,omitempty"` + NotificationsNewMessageTemplate *string `json:"Notifications.NewMessage.Template,omitempty"` + NotificationsRemovedFromChannelEnabled *bool `json:"Notifications.RemovedFromChannel.Enabled,omitempty"` + NotificationsRemovedFromChannelSound *string `json:"Notifications.RemovedFromChannel.Sound,omitempty"` + NotificationsRemovedFromChannelTemplate *string `json:"Notifications.RemovedFromChannel.Template,omitempty"` PostWebhookRetryCount *int32 `json:"PostWebhookRetryCount,omitempty"` PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"` PreWebhookRetryCount *int32 `json:"PreWebhookRetryCount,omitempty"` @@ -2271,23 +2271,23 @@ UpdateService Method for UpdateService * @param "DefaultChannelRoleSid" (string) - The channel role assigned to users when they are added to a channel. See the [Role resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info about roles. * @param "DefaultServiceRoleSid" (string) - The service role assigned to users when they are added to the service. See the [Role resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info about roles. * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. - * @param "LimitsChannelMembers" (int32) - The maximum number of Members that can be added to Channels within this Service. Can be up to 1,000. - * @param "LimitsUserChannels" (int32) - The maximum number of Channels Users can be a Member of within this Service. Can be up to 1,000. - * @param "MediaCompatibilityMessage" (string) - The message to send when a media message has no text. Can be used as placeholder message. - * @param "NotificationsAddedToChannelEnabled" (bool) - Whether to send a notification when a member is added to a channel. The default is `false`. - * @param "NotificationsAddedToChannelSound" (string) - The name of the sound to play when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. - * @param "NotificationsAddedToChannelTemplate" (string) - The template to use to create the notification text displayed when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. - * @param "NotificationsInvitedToChannelEnabled" (bool) - Whether to send a notification when a user is invited to a channel. The default is `false`. - * @param "NotificationsInvitedToChannelSound" (string) - The name of the sound to play when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. - * @param "NotificationsInvitedToChannelTemplate" (string) - The template to use to create the notification text displayed when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. - * @param "NotificationsLogEnabled" (bool) - Whether to log notifications. The default is `false`. - * @param "NotificationsNewMessageBadgeCountEnabled" (bool) - Whether the new message badge is enabled. The default is `false`. - * @param "NotificationsNewMessageEnabled" (bool) - Whether to send a notification when a new message is added to a channel. The default is `false`. - * @param "NotificationsNewMessageSound" (string) - The name of the sound to play when a new message is added to a channel and `notifications.new_message.enabled` is `true`. - * @param "NotificationsNewMessageTemplate" (string) - The template to use to create the notification text displayed when a new message is added to a channel and `notifications.new_message.enabled` is `true`. - * @param "NotificationsRemovedFromChannelEnabled" (bool) - Whether to send a notification to a user when they are removed from a channel. The default is `false`. - * @param "NotificationsRemovedFromChannelSound" (string) - The name of the sound to play to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. - * @param "NotificationsRemovedFromChannelTemplate" (string) - The template to use to create the notification text displayed to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. + * @param "Limits.ChannelMembers" (int32) - The maximum number of Members that can be added to Channels within this Service. Can be up to 1,000. + * @param "Limits.UserChannels" (int32) - The maximum number of Channels Users can be a Member of within this Service. Can be up to 1,000. + * @param "Media.CompatibilityMessage" (string) - The message to send when a media message has no text. Can be used as placeholder message. + * @param "Notifications.AddedToChannel.Enabled" (bool) - Whether to send a notification when a member is added to a channel. The default is `false`. + * @param "Notifications.AddedToChannel.Sound" (string) - The name of the sound to play when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. + * @param "Notifications.AddedToChannel.Template" (string) - The template to use to create the notification text displayed when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. + * @param "Notifications.InvitedToChannel.Enabled" (bool) - Whether to send a notification when a user is invited to a channel. The default is `false`. + * @param "Notifications.InvitedToChannel.Sound" (string) - The name of the sound to play when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. + * @param "Notifications.InvitedToChannel.Template" (string) - The template to use to create the notification text displayed when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. + * @param "Notifications.LogEnabled" (bool) - Whether to log notifications. The default is `false`. + * @param "Notifications.NewMessage.BadgeCountEnabled" (bool) - Whether the new message badge is enabled. The default is `false`. + * @param "Notifications.NewMessage.Enabled" (bool) - Whether to send a notification when a new message is added to a channel. The default is `false`. + * @param "Notifications.NewMessage.Sound" (string) - The name of the sound to play when a new message is added to a channel and `notifications.new_message.enabled` is `true`. + * @param "Notifications.NewMessage.Template" (string) - The template to use to create the notification text displayed when a new message is added to a channel and `notifications.new_message.enabled` is `true`. + * @param "Notifications.RemovedFromChannel.Enabled" (bool) - Whether to send a notification to a user when they are removed from a channel. The default is `false`. + * @param "Notifications.RemovedFromChannel.Sound" (string) - The name of the sound to play to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. + * @param "Notifications.RemovedFromChannel.Template" (string) - The template to use to create the notification text displayed to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. * @param "PostWebhookRetryCount" (int32) - The number of times to retry a call to the `post_webhook_url` if the request times out (after 5 seconds) or it receives a 429, 503, or 504 HTTP response. The default is 0, which means the call won't be retried. * @param "PostWebhookUrl" (string) - The URL for post-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. * @param "PreWebhookRetryCount" (int32) - The number of times to retry a call to the `pre_webhook_url` if the request times out (after 5 seconds) or it receives a 429, 503, or 504 HTTP response. Default retry count is 0 times, which means the call won't be retried. diff --git a/rest/conversations/v1/api_default.go b/rest/conversations/v1/api_default.go index 587f9b2c1..5ff5051f6 100644 --- a/rest/conversations/v1/api_default.go +++ b/rest/conversations/v1/api_default.go @@ -39,8 +39,8 @@ type CreateConversationParams struct { FriendlyName *string `json:"FriendlyName,omitempty"` MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` State *string `json:"State,omitempty"` - TimersClosed *string `json:"TimersClosed,omitempty"` - TimersInactive *string `json:"TimersInactive,omitempty"` + TimersClosed *string `json:"Timers.Closed,omitempty"` + TimersInactive *string `json:"Timers.Inactive,omitempty"` UniqueName *string `json:"UniqueName,omitempty"` } @@ -55,8 +55,8 @@ Create a new conversation in your account's default service * @param "FriendlyName" (string) - The human-readable name of this conversation, limited to 256 characters. Optional. * @param "MessagingServiceSid" (string) - The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. * @param "State" (string) - Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` - * @param "TimersClosed" (string) - ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. - * @param "TimersInactive" (string) - ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. + * @param "Timers.Closed" (string) - ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. + * @param "Timers.Inactive" (string) - ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. @return ConversationsV1Conversation */ @@ -190,9 +190,9 @@ type CreateConversationParticipantParams struct { DateCreated *time.Time `json:"DateCreated,omitempty"` DateUpdated *time.Time `json:"DateUpdated,omitempty"` Identity *string `json:"Identity,omitempty"` - MessagingBindingAddress *string `json:"MessagingBindingAddress,omitempty"` - MessagingBindingProjectedAddress *string `json:"MessagingBindingProjectedAddress,omitempty"` - MessagingBindingProxyAddress *string `json:"MessagingBindingProxyAddress,omitempty"` + MessagingBindingAddress *string `json:"MessagingBinding.Address,omitempty"` + MessagingBindingProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` + MessagingBindingProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` RoleSid *string `json:"RoleSid,omitempty"` } @@ -206,9 +206,9 @@ Add a new participant to the conversation * @param "DateCreated" (time.Time) - The date that this resource was created. * @param "DateUpdated" (time.Time) - The date that this resource was last updated. * @param "Identity" (string) - A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters. - * @param "MessagingBindingAddress" (string) - The address of the participant's device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). - * @param "MessagingBindingProjectedAddress" (string) - The address of the Twilio phone number that is used in Group MMS. Communication mask for the Conversation participant with Identity. - * @param "MessagingBindingProxyAddress" (string) - The address of the Twilio phone number (or WhatsApp number) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). + * @param "MessagingBinding.Address" (string) - The address of the participant's device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). + * @param "MessagingBinding.ProjectedAddress" (string) - The address of the Twilio phone number that is used in Group MMS. Communication mask for the Conversation participant with Identity. + * @param "MessagingBinding.ProxyAddress" (string) - The address of the Twilio phone number (or WhatsApp number) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). * @param "RoleSid" (string) - The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. @return ConversationsV1ConversationConversationParticipant */ @@ -265,12 +265,12 @@ func (c *DefaultApiService) CreateConversationParticipant(ConversationSid string } // CreateConversationScopedWebhookParams Optional parameters for the method 'CreateConversationScopedWebhook' type CreateConversationScopedWebhookParams struct { - ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` - ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` - ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` - ConfigurationReplayAfter *int32 `json:"ConfigurationReplayAfter,omitempty"` - ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` - ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` + ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` + ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` + ConfigurationMethod *string `json:"Configuration.Method,omitempty"` + ConfigurationReplayAfter *int32 `json:"Configuration.ReplayAfter,omitempty"` + ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` + ConfigurationUrl *string `json:"Configuration.Url,omitempty"` Target *string `json:"Target,omitempty"` } @@ -279,12 +279,12 @@ CreateConversationScopedWebhook Method for CreateConversationScopedWebhook Create a new webhook scoped to the conversation * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. * @param optional nil or *CreateConversationScopedWebhookOpts - Optional Parameters: - * @param "ConfigurationFilters" ([]string) - The list of events, firing webhook event for this Conversation. - * @param "ConfigurationFlowSid" (string) - The studio flow SID, where the webhook should be sent to. - * @param "ConfigurationMethod" (string) - The HTTP method to be used when sending a webhook request. - * @param "ConfigurationReplayAfter" (int32) - The message index for which and it's successors the webhook will be replayed. Not set by default - * @param "ConfigurationTriggers" ([]string) - The list of keywords, firing webhook event for this Conversation. - * @param "ConfigurationUrl" (string) - The absolute url the webhook request should be sent to. + * @param "Configuration.Filters" ([]string) - The list of events, firing webhook event for this Conversation. + * @param "Configuration.FlowSid" (string) - The studio flow SID, where the webhook should be sent to. + * @param "Configuration.Method" (string) - The HTTP method to be used when sending a webhook request. + * @param "Configuration.ReplayAfter" (int32) - The message index for which and it's successors the webhook will be replayed. Not set by default + * @param "Configuration.Triggers" ([]string) - The list of keywords, firing webhook event for this Conversation. + * @param "Configuration.Url" (string) - The absolute url the webhook request should be sent to. * @param "Target" (string) - The target of this webhook: `webhook`, `studio`, `trigger` @return ConversationsV1ConversationConversationScopedWebhook */ @@ -496,8 +496,8 @@ type CreateServiceConversationParams struct { FriendlyName *string `json:"FriendlyName,omitempty"` MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` State *string `json:"State,omitempty"` - TimersClosed *string `json:"TimersClosed,omitempty"` - TimersInactive *string `json:"TimersInactive,omitempty"` + TimersClosed *string `json:"Timers.Closed,omitempty"` + TimersInactive *string `json:"Timers.Inactive,omitempty"` UniqueName *string `json:"UniqueName,omitempty"` } @@ -513,8 +513,8 @@ Create a new conversation in your service * @param "FriendlyName" (string) - The human-readable name of this conversation, limited to 256 characters. Optional. * @param "MessagingServiceSid" (string) - The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. * @param "State" (string) - Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` - * @param "TimersClosed" (string) - ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. - * @param "TimersInactive" (string) - ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. + * @param "Timers.Closed" (string) - ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. + * @param "Timers.Inactive" (string) - ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. @return ConversationsV1ServiceServiceConversation */ @@ -651,9 +651,9 @@ type CreateServiceConversationParticipantParams struct { DateCreated *time.Time `json:"DateCreated,omitempty"` DateUpdated *time.Time `json:"DateUpdated,omitempty"` Identity *string `json:"Identity,omitempty"` - MessagingBindingAddress *string `json:"MessagingBindingAddress,omitempty"` - MessagingBindingProjectedAddress *string `json:"MessagingBindingProjectedAddress,omitempty"` - MessagingBindingProxyAddress *string `json:"MessagingBindingProxyAddress,omitempty"` + MessagingBindingAddress *string `json:"MessagingBinding.Address,omitempty"` + MessagingBindingProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` + MessagingBindingProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` RoleSid *string `json:"RoleSid,omitempty"` } @@ -668,9 +668,9 @@ Add a new participant to the conversation in a specific service * @param "DateCreated" (time.Time) - The date that this resource was created. * @param "DateUpdated" (time.Time) - The date that this resource was last updated. * @param "Identity" (string) - A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversation SDK to communicate. Limited to 256 characters. - * @param "MessagingBindingAddress" (string) - The address of the participant's device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). - * @param "MessagingBindingProjectedAddress" (string) - The address of the Twilio phone number that is used in Group MMS. Communication mask for the Conversation participant with Identity. - * @param "MessagingBindingProxyAddress" (string) - The address of the Twilio phone number (or WhatsApp number) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). + * @param "MessagingBinding.Address" (string) - The address of the participant's device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). + * @param "MessagingBinding.ProjectedAddress" (string) - The address of the Twilio phone number that is used in Group MMS. Communication mask for the Conversation participant with Identity. + * @param "MessagingBinding.ProxyAddress" (string) - The address of the Twilio phone number (or WhatsApp number) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). * @param "RoleSid" (string) - The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. @return ConversationsV1ServiceServiceConversationServiceConversationParticipant */ @@ -728,12 +728,12 @@ func (c *DefaultApiService) CreateServiceConversationParticipant(ChatServiceSid } // CreateServiceConversationScopedWebhookParams Optional parameters for the method 'CreateServiceConversationScopedWebhook' type CreateServiceConversationScopedWebhookParams struct { - ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` - ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` - ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` - ConfigurationReplayAfter *int32 `json:"ConfigurationReplayAfter,omitempty"` - ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` - ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` + ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` + ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` + ConfigurationMethod *string `json:"Configuration.Method,omitempty"` + ConfigurationReplayAfter *int32 `json:"Configuration.ReplayAfter,omitempty"` + ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` + ConfigurationUrl *string `json:"Configuration.Url,omitempty"` Target *string `json:"Target,omitempty"` } @@ -743,12 +743,12 @@ Create a new webhook scoped to the conversation in a specific service * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. * @param optional nil or *CreateServiceConversationScopedWebhookOpts - Optional Parameters: - * @param "ConfigurationFilters" ([]string) - The list of events, firing webhook event for this Conversation. - * @param "ConfigurationFlowSid" (string) - The studio flow SID, where the webhook should be sent to. - * @param "ConfigurationMethod" (string) - The HTTP method to be used when sending a webhook request. - * @param "ConfigurationReplayAfter" (int32) - The message index for which and it's successors the webhook will be replayed. Not set by default - * @param "ConfigurationTriggers" ([]string) - The list of keywords, firing webhook event for this Conversation. - * @param "ConfigurationUrl" (string) - The absolute url the webhook request should be sent to. + * @param "Configuration.Filters" ([]string) - The list of events, firing webhook event for this Conversation. + * @param "Configuration.FlowSid" (string) - The studio flow SID, where the webhook should be sent to. + * @param "Configuration.Method" (string) - The HTTP method to be used when sending a webhook request. + * @param "Configuration.ReplayAfter" (int32) - The message index for which and it's successors the webhook will be replayed. Not set by default + * @param "Configuration.Triggers" ([]string) - The list of keywords, firing webhook event for this Conversation. + * @param "Configuration.Url" (string) - The absolute url the webhook request should be sent to. * @param "Target" (string) - The target of this webhook: `webhook`, `studio`, `trigger` @return ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook */ @@ -2932,8 +2932,8 @@ type UpdateConversationParams struct { FriendlyName *string `json:"FriendlyName,omitempty"` MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` State *string `json:"State,omitempty"` - TimersClosed *string `json:"TimersClosed,omitempty"` - TimersInactive *string `json:"TimersInactive,omitempty"` + TimersClosed *string `json:"Timers.Closed,omitempty"` + TimersInactive *string `json:"Timers.Inactive,omitempty"` UniqueName *string `json:"UniqueName,omitempty"` } @@ -2949,8 +2949,8 @@ Update an existing conversation in your account's default service * @param "FriendlyName" (string) - The human-readable name of this conversation, limited to 256 characters. Optional. * @param "MessagingServiceSid" (string) - The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. * @param "State" (string) - Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` - * @param "TimersClosed" (string) - ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. - * @param "TimersInactive" (string) - ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. + * @param "Timers.Closed" (string) - ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. + * @param "Timers.Inactive" (string) - ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. @return ConversationsV1Conversation */ @@ -3084,8 +3084,8 @@ type UpdateConversationParticipantParams struct { Identity *string `json:"Identity,omitempty"` LastReadMessageIndex *int32 `json:"LastReadMessageIndex,omitempty"` LastReadTimestamp *string `json:"LastReadTimestamp,omitempty"` - MessagingBindingProjectedAddress *string `json:"MessagingBindingProjectedAddress,omitempty"` - MessagingBindingProxyAddress *string `json:"MessagingBindingProxyAddress,omitempty"` + MessagingBindingProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` + MessagingBindingProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` RoleSid *string `json:"RoleSid,omitempty"` } @@ -3102,8 +3102,8 @@ Update an existing participant in the conversation * @param "Identity" (string) - A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters. * @param "LastReadMessageIndex" (*int32) - Index of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. * @param "LastReadTimestamp" (string) - Timestamp of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. - * @param "MessagingBindingProjectedAddress" (string) - The address of the Twilio phone number that is used in Group MMS. 'null' value will remove it. - * @param "MessagingBindingProxyAddress" (string) - The address of the Twilio phone number that the participant is in contact with. 'null' value will remove it. + * @param "MessagingBinding.ProjectedAddress" (string) - The address of the Twilio phone number that is used in Group MMS. 'null' value will remove it. + * @param "MessagingBinding.ProxyAddress" (string) - The address of the Twilio phone number that the participant is in contact with. 'null' value will remove it. * @param "RoleSid" (string) - The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. @return ConversationsV1ConversationConversationParticipant */ @@ -3164,11 +3164,11 @@ func (c *DefaultApiService) UpdateConversationParticipant(ConversationSid string } // UpdateConversationScopedWebhookParams Optional parameters for the method 'UpdateConversationScopedWebhook' type UpdateConversationScopedWebhookParams struct { - ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` - ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` - ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` - ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` - ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` + ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` + ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` + ConfigurationMethod *string `json:"Configuration.Method,omitempty"` + ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` + ConfigurationUrl *string `json:"Configuration.Url,omitempty"` } /* @@ -3177,11 +3177,11 @@ Update an existing conversation-scoped webhook * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. * @param Sid A 34 character string that uniquely identifies this resource. * @param optional nil or *UpdateConversationScopedWebhookOpts - Optional Parameters: - * @param "ConfigurationFilters" ([]string) - The list of events, firing webhook event for this Conversation. - * @param "ConfigurationFlowSid" (string) - The studio flow SID, where the webhook should be sent to. - * @param "ConfigurationMethod" (string) - The HTTP method to be used when sending a webhook request. - * @param "ConfigurationTriggers" ([]string) - The list of keywords, firing webhook event for this Conversation. - * @param "ConfigurationUrl" (string) - The absolute url the webhook request should be sent to. + * @param "Configuration.Filters" ([]string) - The list of events, firing webhook event for this Conversation. + * @param "Configuration.FlowSid" (string) - The studio flow SID, where the webhook should be sent to. + * @param "Configuration.Method" (string) - The HTTP method to be used when sending a webhook request. + * @param "Configuration.Triggers" ([]string) - The list of keywords, firing webhook event for this Conversation. + * @param "Configuration.Url" (string) - The absolute url the webhook request should be sent to. @return ConversationsV1ConversationConversationScopedWebhook */ func (c *DefaultApiService) UpdateConversationScopedWebhook(ConversationSid string, Sid string, params *UpdateConversationScopedWebhookParams) (*ConversationsV1ConversationConversationScopedWebhook, error) { @@ -3398,8 +3398,8 @@ type UpdateServiceConversationParams struct { FriendlyName *string `json:"FriendlyName,omitempty"` MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` State *string `json:"State,omitempty"` - TimersClosed *string `json:"TimersClosed,omitempty"` - TimersInactive *string `json:"TimersInactive,omitempty"` + TimersClosed *string `json:"Timers.Closed,omitempty"` + TimersInactive *string `json:"Timers.Inactive,omitempty"` UniqueName *string `json:"UniqueName,omitempty"` } @@ -3416,8 +3416,8 @@ Update an existing conversation in your service * @param "FriendlyName" (string) - The human-readable name of this conversation, limited to 256 characters. Optional. * @param "MessagingServiceSid" (string) - The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. * @param "State" (string) - Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` - * @param "TimersClosed" (string) - ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. - * @param "TimersInactive" (string) - ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. + * @param "Timers.Closed" (string) - ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. + * @param "Timers.Inactive" (string) - ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. @return ConversationsV1ServiceServiceConversation */ @@ -3554,8 +3554,8 @@ type UpdateServiceConversationParticipantParams struct { Identity *string `json:"Identity,omitempty"` LastReadMessageIndex *int32 `json:"LastReadMessageIndex,omitempty"` LastReadTimestamp *string `json:"LastReadTimestamp,omitempty"` - MessagingBindingProjectedAddress *string `json:"MessagingBindingProjectedAddress,omitempty"` - MessagingBindingProxyAddress *string `json:"MessagingBindingProxyAddress,omitempty"` + MessagingBindingProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` + MessagingBindingProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` RoleSid *string `json:"RoleSid,omitempty"` } @@ -3573,8 +3573,8 @@ Update an existing participant in the conversation * @param "Identity" (string) - A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversation SDK to communicate. Limited to 256 characters. * @param "LastReadMessageIndex" (*int32) - Index of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. * @param "LastReadTimestamp" (string) - Timestamp of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. - * @param "MessagingBindingProjectedAddress" (string) - The address of the Twilio phone number that is used in Group MMS. 'null' value will remove it. - * @param "MessagingBindingProxyAddress" (string) - The address of the Twilio phone number that the participant is in contact with. 'null' value will remove it. + * @param "MessagingBinding.ProjectedAddress" (string) - The address of the Twilio phone number that is used in Group MMS. 'null' value will remove it. + * @param "MessagingBinding.ProxyAddress" (string) - The address of the Twilio phone number that the participant is in contact with. 'null' value will remove it. * @param "RoleSid" (string) - The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. @return ConversationsV1ServiceServiceConversationServiceConversationParticipant */ @@ -3636,11 +3636,11 @@ func (c *DefaultApiService) UpdateServiceConversationParticipant(ChatServiceSid } // UpdateServiceConversationScopedWebhookParams Optional parameters for the method 'UpdateServiceConversationScopedWebhook' type UpdateServiceConversationScopedWebhookParams struct { - ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` - ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` - ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` - ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` - ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` + ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` + ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` + ConfigurationMethod *string `json:"Configuration.Method,omitempty"` + ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` + ConfigurationUrl *string `json:"Configuration.Url,omitempty"` } /* @@ -3650,11 +3650,11 @@ Update an existing conversation-scoped webhook * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. * @param Sid A 34 character string that uniquely identifies this resource. * @param optional nil or *UpdateServiceConversationScopedWebhookOpts - Optional Parameters: - * @param "ConfigurationFilters" ([]string) - The list of events, firing webhook event for this Conversation. - * @param "ConfigurationFlowSid" (string) - The studio flow SID, where the webhook should be sent to. - * @param "ConfigurationMethod" (string) - The HTTP method to be used when sending a webhook request. - * @param "ConfigurationTriggers" ([]string) - The list of keywords, firing webhook event for this Conversation. - * @param "ConfigurationUrl" (string) - The absolute url the webhook request should be sent to. + * @param "Configuration.Filters" ([]string) - The list of events, firing webhook event for this Conversation. + * @param "Configuration.FlowSid" (string) - The studio flow SID, where the webhook should be sent to. + * @param "Configuration.Method" (string) - The HTTP method to be used when sending a webhook request. + * @param "Configuration.Triggers" ([]string) - The list of keywords, firing webhook event for this Conversation. + * @param "Configuration.Url" (string) - The absolute url the webhook request should be sent to. @return ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook */ func (c *DefaultApiService) UpdateServiceConversationScopedWebhook(ChatServiceSid string, ConversationSid string, Sid string, params *UpdateServiceConversationScopedWebhookParams) (*ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook, error) { @@ -3700,17 +3700,17 @@ func (c *DefaultApiService) UpdateServiceConversationScopedWebhook(ChatServiceSi } // UpdateServiceNotificationParams Optional parameters for the method 'UpdateServiceNotification' type UpdateServiceNotificationParams struct { - AddedToConversationEnabled *bool `json:"AddedToConversationEnabled,omitempty"` - AddedToConversationSound *string `json:"AddedToConversationSound,omitempty"` - AddedToConversationTemplate *string `json:"AddedToConversationTemplate,omitempty"` + AddedToConversationEnabled *bool `json:"AddedToConversation.Enabled,omitempty"` + AddedToConversationSound *string `json:"AddedToConversation.Sound,omitempty"` + AddedToConversationTemplate *string `json:"AddedToConversation.Template,omitempty"` LogEnabled *bool `json:"LogEnabled,omitempty"` - NewMessageBadgeCountEnabled *bool `json:"NewMessageBadgeCountEnabled,omitempty"` - NewMessageEnabled *bool `json:"NewMessageEnabled,omitempty"` - NewMessageSound *string `json:"NewMessageSound,omitempty"` - NewMessageTemplate *string `json:"NewMessageTemplate,omitempty"` - RemovedFromConversationEnabled *bool `json:"RemovedFromConversationEnabled,omitempty"` - RemovedFromConversationSound *string `json:"RemovedFromConversationSound,omitempty"` - RemovedFromConversationTemplate *string `json:"RemovedFromConversationTemplate,omitempty"` + NewMessageBadgeCountEnabled *bool `json:"NewMessage.BadgeCountEnabled,omitempty"` + NewMessageEnabled *bool `json:"NewMessage.Enabled,omitempty"` + NewMessageSound *string `json:"NewMessage.Sound,omitempty"` + NewMessageTemplate *string `json:"NewMessage.Template,omitempty"` + RemovedFromConversationEnabled *bool `json:"RemovedFromConversation.Enabled,omitempty"` + RemovedFromConversationSound *string `json:"RemovedFromConversation.Sound,omitempty"` + RemovedFromConversationTemplate *string `json:"RemovedFromConversation.Template,omitempty"` } /* @@ -3718,17 +3718,17 @@ UpdateServiceNotification Method for UpdateServiceNotification Update push notification service settings * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Configuration applies to. * @param optional nil or *UpdateServiceNotificationOpts - Optional Parameters: - * @param "AddedToConversationEnabled" (bool) - Whether to send a notification when a participant is added to a conversation. The default is `false`. - * @param "AddedToConversationSound" (string) - The name of the sound to play when a participant is added to a conversation and `added_to_conversation.enabled` is `true`. - * @param "AddedToConversationTemplate" (string) - The template to use to create the notification text displayed when a participant is added to a conversation and `added_to_conversation.enabled` is `true`. + * @param "AddedToConversation.Enabled" (bool) - Whether to send a notification when a participant is added to a conversation. The default is `false`. + * @param "AddedToConversation.Sound" (string) - The name of the sound to play when a participant is added to a conversation and `added_to_conversation.enabled` is `true`. + * @param "AddedToConversation.Template" (string) - The template to use to create the notification text displayed when a participant is added to a conversation and `added_to_conversation.enabled` is `true`. * @param "LogEnabled" (bool) - Weather the notification logging is enabled. - * @param "NewMessageBadgeCountEnabled" (bool) - Whether the new message badge is enabled. The default is `false`. - * @param "NewMessageEnabled" (bool) - Whether to send a notification when a new message is added to a conversation. The default is `false`. - * @param "NewMessageSound" (string) - The name of the sound to play when a new message is added to a conversation and `new_message.enabled` is `true`. - * @param "NewMessageTemplate" (string) - The template to use to create the notification text displayed when a new message is added to a conversation and `new_message.enabled` is `true`. - * @param "RemovedFromConversationEnabled" (bool) - Whether to send a notification to a user when they are removed from a conversation. The default is `false`. - * @param "RemovedFromConversationSound" (string) - The name of the sound to play to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`. - * @param "RemovedFromConversationTemplate" (string) - The template to use to create the notification text displayed to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`. + * @param "NewMessage.BadgeCountEnabled" (bool) - Whether the new message badge is enabled. The default is `false`. + * @param "NewMessage.Enabled" (bool) - Whether to send a notification when a new message is added to a conversation. The default is `false`. + * @param "NewMessage.Sound" (string) - The name of the sound to play when a new message is added to a conversation and `new_message.enabled` is `true`. + * @param "NewMessage.Template" (string) - The template to use to create the notification text displayed when a new message is added to a conversation and `new_message.enabled` is `true`. + * @param "RemovedFromConversation.Enabled" (bool) - Whether to send a notification to a user when they are removed from a conversation. The default is `false`. + * @param "RemovedFromConversation.Sound" (string) - The name of the sound to play to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`. + * @param "RemovedFromConversation.Template" (string) - The template to use to create the notification text displayed to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`. @return ConversationsV1ServiceServiceConfigurationServiceNotification */ func (c *DefaultApiService) UpdateServiceNotification(ChatServiceSid string, params *UpdateServiceNotificationParams) (*ConversationsV1ServiceServiceConfigurationServiceNotification, error) { diff --git a/rest/flex/v1/api_default.go b/rest/flex/v1/api_default.go index b05b21bfa..d94a2a4c7 100644 --- a/rest/flex/v1/api_default.go +++ b/rest/flex/v1/api_default.go @@ -118,15 +118,15 @@ type CreateFlexFlowParams struct { ContactIdentity *string `json:"ContactIdentity,omitempty"` Enabled *bool `json:"Enabled,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` - IntegrationChannel *string `json:"IntegrationChannel,omitempty"` - IntegrationCreationOnMessage *bool `json:"IntegrationCreationOnMessage,omitempty"` - IntegrationFlowSid *string `json:"IntegrationFlowSid,omitempty"` - IntegrationPriority *int32 `json:"IntegrationPriority,omitempty"` - IntegrationRetryCount *int32 `json:"IntegrationRetryCount,omitempty"` - IntegrationTimeout *int32 `json:"IntegrationTimeout,omitempty"` - IntegrationUrl *string `json:"IntegrationUrl,omitempty"` - IntegrationWorkflowSid *string `json:"IntegrationWorkflowSid,omitempty"` - IntegrationWorkspaceSid *string `json:"IntegrationWorkspaceSid,omitempty"` + IntegrationChannel *string `json:"Integration.Channel,omitempty"` + IntegrationCreationOnMessage *bool `json:"Integration.CreationOnMessage,omitempty"` + IntegrationFlowSid *string `json:"Integration.FlowSid,omitempty"` + IntegrationPriority *int32 `json:"Integration.Priority,omitempty"` + IntegrationRetryCount *int32 `json:"Integration.RetryCount,omitempty"` + IntegrationTimeout *int32 `json:"Integration.Timeout,omitempty"` + IntegrationUrl *string `json:"Integration.Url,omitempty"` + IntegrationWorkflowSid *string `json:"Integration.WorkflowSid,omitempty"` + IntegrationWorkspaceSid *string `json:"Integration.WorkspaceSid,omitempty"` IntegrationType *string `json:"IntegrationType,omitempty"` JanitorEnabled *bool `json:"JanitorEnabled,omitempty"` LongLived *bool `json:"LongLived,omitempty"` @@ -140,15 +140,15 @@ CreateFlexFlow Method for CreateFlexFlow * @param "ContactIdentity" (string) - The channel contact's Identity. * @param "Enabled" (bool) - Whether the new Flex Flow is enabled. * @param "FriendlyName" (string) - A descriptive string that you create to describe the Flex Flow resource. - * @param "IntegrationChannel" (string) - The Task Channel for the TaskRouter Task that will be created. Applicable and required when integrationType is `task`. Set to `sms` for SMS, and to `chat` otherwise. The default value is `default` - * @param "IntegrationCreationOnMessage" (bool) - In the context of outbound messaging, defines whether to create a Task immediately (and therefore reserve the conversation to current agent), or delay Task creation until the customer sends the first response. Set to false to create immediately, true to delay Task creation. This setting is only applicable for outbound messaging. - * @param "IntegrationFlowSid" (string) - The SID of the Studio Flow. Required when `integrationType` is `studio`. - * @param "IntegrationPriority" (int32) - The Task priority of a new Task. The default priority is 0. Optional when `integrationType` is `task`, not applicable otherwise. - * @param "IntegrationRetryCount" (int32) - The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3 (included), default is 0. Optional when integrationType is `external`, not applicable otherwise. - * @param "IntegrationTimeout" (int32) - The Task timeout in seconds for a new Task. Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`, not applicable otherwise. - * @param "IntegrationUrl" (string) - The URL of the external webhook. Required when `integrationType` is `external`. - * @param "IntegrationWorkflowSid" (string) - The Workflow SID for a new Task. Required when `integrationType` is `task`. - * @param "IntegrationWorkspaceSid" (string) - The Workspace SID for a new Task. Required when `integrationType` is `task`. + * @param "Integration.Channel" (string) - The Task Channel for the TaskRouter Task that will be created. Applicable and required when integrationType is `task`. Set to `sms` for SMS, and to `chat` otherwise. The default value is `default` + * @param "Integration.CreationOnMessage" (bool) - In the context of outbound messaging, defines whether to create a Task immediately (and therefore reserve the conversation to current agent), or delay Task creation until the customer sends the first response. Set to false to create immediately, true to delay Task creation. This setting is only applicable for outbound messaging. + * @param "Integration.FlowSid" (string) - The SID of the Studio Flow. Required when `integrationType` is `studio`. + * @param "Integration.Priority" (int32) - The Task priority of a new Task. The default priority is 0. Optional when `integrationType` is `task`, not applicable otherwise. + * @param "Integration.RetryCount" (int32) - The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3 (included), default is 0. Optional when integrationType is `external`, not applicable otherwise. + * @param "Integration.Timeout" (int32) - The Task timeout in seconds for a new Task. Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`, not applicable otherwise. + * @param "Integration.Url" (string) - The URL of the external webhook. Required when `integrationType` is `external`. + * @param "Integration.WorkflowSid" (string) - The Workflow SID for a new Task. Required when `integrationType` is `task`. + * @param "Integration.WorkspaceSid" (string) - The Workspace SID for a new Task. Required when `integrationType` is `task`. * @param "IntegrationType" (string) - The integration type. Can be: `studio`, `external`, or `task`. * @param "JanitorEnabled" (bool) - When enabled, the Messaging Channel Janitor will remove active Proxy sessions if the associated Task is deleted outside of the Flex UI. Defaults to `false`. * @param "LongLived" (bool) - When enabled, Flex will keep the chat channel active so that it may be used for subsequent interactions with a contact identity. Defaults to `false`. @@ -640,15 +640,15 @@ type UpdateFlexFlowParams struct { ContactIdentity *string `json:"ContactIdentity,omitempty"` Enabled *bool `json:"Enabled,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` - IntegrationChannel *string `json:"IntegrationChannel,omitempty"` - IntegrationCreationOnMessage *bool `json:"IntegrationCreationOnMessage,omitempty"` - IntegrationFlowSid *string `json:"IntegrationFlowSid,omitempty"` - IntegrationPriority *int32 `json:"IntegrationPriority,omitempty"` - IntegrationRetryCount *int32 `json:"IntegrationRetryCount,omitempty"` - IntegrationTimeout *int32 `json:"IntegrationTimeout,omitempty"` - IntegrationUrl *string `json:"IntegrationUrl,omitempty"` - IntegrationWorkflowSid *string `json:"IntegrationWorkflowSid,omitempty"` - IntegrationWorkspaceSid *string `json:"IntegrationWorkspaceSid,omitempty"` + IntegrationChannel *string `json:"Integration.Channel,omitempty"` + IntegrationCreationOnMessage *bool `json:"Integration.CreationOnMessage,omitempty"` + IntegrationFlowSid *string `json:"Integration.FlowSid,omitempty"` + IntegrationPriority *int32 `json:"Integration.Priority,omitempty"` + IntegrationRetryCount *int32 `json:"Integration.RetryCount,omitempty"` + IntegrationTimeout *int32 `json:"Integration.Timeout,omitempty"` + IntegrationUrl *string `json:"Integration.Url,omitempty"` + IntegrationWorkflowSid *string `json:"Integration.WorkflowSid,omitempty"` + IntegrationWorkspaceSid *string `json:"Integration.WorkspaceSid,omitempty"` IntegrationType *string `json:"IntegrationType,omitempty"` JanitorEnabled *bool `json:"JanitorEnabled,omitempty"` LongLived *bool `json:"LongLived,omitempty"` @@ -663,15 +663,15 @@ UpdateFlexFlow Method for UpdateFlexFlow * @param "ContactIdentity" (string) - The channel contact's Identity. * @param "Enabled" (bool) - Whether the new Flex Flow is enabled. * @param "FriendlyName" (string) - A descriptive string that you create to describe the Flex Flow resource. - * @param "IntegrationChannel" (string) - The Task Channel for the TaskRouter Task that will be created. Applicable and required when integrationType is `task`. Set to `sms` for SMS, and to `chat` otherwise. The default value is `default` - * @param "IntegrationCreationOnMessage" (bool) - In the context of outbound messaging, defines whether to create a Task immediately (and therefore reserve the conversation to current agent), or delay Task creation until the customer sends the first response. Set to false to create immediately, true to delay Task creation. This setting is only applicable for outbound messaging. - * @param "IntegrationFlowSid" (string) - The SID of the Studio Flow. Required when `integrationType` is `studio`. - * @param "IntegrationPriority" (int32) - The Task priority of a new Task. The default priority is 0. Optional when `integrationType` is `task`, not applicable otherwise. - * @param "IntegrationRetryCount" (int32) - The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3 (included), default is 0. Optional when integrationType is `external`, not applicable otherwise. - * @param "IntegrationTimeout" (int32) - The Task timeout in seconds for a new Task. Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`, not applicable otherwise. - * @param "IntegrationUrl" (string) - The URL of the external webhook. Required when `integrationType` is `external`. - * @param "IntegrationWorkflowSid" (string) - The Workflow SID for a new Task. Required when `integrationType` is `task`. - * @param "IntegrationWorkspaceSid" (string) - The Workspace SID for a new Task. Required when `integrationType` is `task`. + * @param "Integration.Channel" (string) - The Task Channel for the TaskRouter Task that will be created. Applicable and required when integrationType is `task`. Set to `sms` for SMS, and to `chat` otherwise. The default value is `default` + * @param "Integration.CreationOnMessage" (bool) - In the context of outbound messaging, defines whether to create a Task immediately (and therefore reserve the conversation to current agent), or delay Task creation until the customer sends the first response. Set to false to create immediately, true to delay Task creation. This setting is only applicable for outbound messaging. + * @param "Integration.FlowSid" (string) - The SID of the Studio Flow. Required when `integrationType` is `studio`. + * @param "Integration.Priority" (int32) - The Task priority of a new Task. The default priority is 0. Optional when `integrationType` is `task`, not applicable otherwise. + * @param "Integration.RetryCount" (int32) - The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3 (included), default is 0. Optional when integrationType is `external`, not applicable otherwise. + * @param "Integration.Timeout" (int32) - The Task timeout in seconds for a new Task. Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`, not applicable otherwise. + * @param "Integration.Url" (string) - The URL of the external webhook. Required when `integrationType` is `external`. + * @param "Integration.WorkflowSid" (string) - The Workflow SID for a new Task. Required when `integrationType` is `task`. + * @param "Integration.WorkspaceSid" (string) - The Workspace SID for a new Task. Required when `integrationType` is `task`. * @param "IntegrationType" (string) - The integration type. Can be: `studio`, `external`, or `task`. * @param "JanitorEnabled" (bool) - When enabled, the Messaging Channel Janitor will remove active Proxy sessions if the associated Task is deleted outside of the Flex UI. Defaults to `false`. * @param "LongLived" (bool) - When enabled, Flex will keep the chat channel active so that it may be used for subsequent interactions with a contact identity. Defaults to `false`. diff --git a/rest/ip/messaging/api_default.go b/rest/ip/messaging/api_default.go index 005dd9aa9..b44715445 100644 --- a/rest/ip/messaging/api_default.go +++ b/rest/ip/messaging/api_default.go @@ -106,12 +106,12 @@ func (c *DefaultApiService) CreateChannel(ServiceSid string, params *CreateChann } // CreateChannelWebhookParams Optional parameters for the method 'CreateChannelWebhook' type CreateChannelWebhookParams struct { - ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` - ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` - ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` - ConfigurationRetryCount *int32 `json:"ConfigurationRetryCount,omitempty"` - ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` - ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` + ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` + ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` + ConfigurationMethod *string `json:"Configuration.Method,omitempty"` + ConfigurationRetryCount *int32 `json:"Configuration.RetryCount,omitempty"` + ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` + ConfigurationUrl *string `json:"Configuration.Url,omitempty"` Type *string `json:"Type,omitempty"` } @@ -120,12 +120,12 @@ CreateChannelWebhook Method for CreateChannelWebhook * @param ServiceSid * @param ChannelSid * @param optional nil or *CreateChannelWebhookOpts - Optional Parameters: - * @param "ConfigurationFilters" ([]string) - - * @param "ConfigurationFlowSid" (string) - - * @param "ConfigurationMethod" (string) - - * @param "ConfigurationRetryCount" (int32) - - * @param "ConfigurationTriggers" ([]string) - - * @param "ConfigurationUrl" (string) - + * @param "Configuration.Filters" ([]string) - + * @param "Configuration.FlowSid" (string) - + * @param "Configuration.Method" (string) - + * @param "Configuration.RetryCount" (int32) - + * @param "Configuration.Triggers" ([]string) - + * @param "Configuration.Url" (string) - * @param "Type" (string) - @return IpMessagingV2ServiceChannelChannelWebhook */ @@ -1908,12 +1908,12 @@ func (c *DefaultApiService) UpdateChannel(ServiceSid string, Sid string, params } // UpdateChannelWebhookParams Optional parameters for the method 'UpdateChannelWebhook' type UpdateChannelWebhookParams struct { - ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` - ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` - ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` - ConfigurationRetryCount *int32 `json:"ConfigurationRetryCount,omitempty"` - ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` - ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` + ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` + ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` + ConfigurationMethod *string `json:"Configuration.Method,omitempty"` + ConfigurationRetryCount *int32 `json:"Configuration.RetryCount,omitempty"` + ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` + ConfigurationUrl *string `json:"Configuration.Url,omitempty"` } /* @@ -1922,12 +1922,12 @@ UpdateChannelWebhook Method for UpdateChannelWebhook * @param ChannelSid * @param Sid * @param optional nil or *UpdateChannelWebhookOpts - Optional Parameters: - * @param "ConfigurationFilters" ([]string) - - * @param "ConfigurationFlowSid" (string) - - * @param "ConfigurationMethod" (string) - - * @param "ConfigurationRetryCount" (int32) - - * @param "ConfigurationTriggers" ([]string) - - * @param "ConfigurationUrl" (string) - + * @param "Configuration.Filters" ([]string) - + * @param "Configuration.FlowSid" (string) - + * @param "Configuration.Method" (string) - + * @param "Configuration.RetryCount" (int32) - + * @param "Configuration.Triggers" ([]string) - + * @param "Configuration.Url" (string) - @return IpMessagingV2ServiceChannelChannelWebhook */ func (c *DefaultApiService) UpdateChannelWebhook(ServiceSid string, ChannelSid string, Sid string, params *UpdateChannelWebhookParams) (*IpMessagingV2ServiceChannelChannelWebhook, error) { @@ -2232,23 +2232,23 @@ type UpdateServiceParams struct { DefaultChannelRoleSid *string `json:"DefaultChannelRoleSid,omitempty"` DefaultServiceRoleSid *string `json:"DefaultServiceRoleSid,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` - LimitsChannelMembers *int32 `json:"LimitsChannelMembers,omitempty"` - LimitsUserChannels *int32 `json:"LimitsUserChannels,omitempty"` - MediaCompatibilityMessage *string `json:"MediaCompatibilityMessage,omitempty"` - NotificationsAddedToChannelEnabled *bool `json:"NotificationsAddedToChannelEnabled,omitempty"` - NotificationsAddedToChannelSound *string `json:"NotificationsAddedToChannelSound,omitempty"` - NotificationsAddedToChannelTemplate *string `json:"NotificationsAddedToChannelTemplate,omitempty"` - NotificationsInvitedToChannelEnabled *bool `json:"NotificationsInvitedToChannelEnabled,omitempty"` - NotificationsInvitedToChannelSound *string `json:"NotificationsInvitedToChannelSound,omitempty"` - NotificationsInvitedToChannelTemplate *string `json:"NotificationsInvitedToChannelTemplate,omitempty"` - NotificationsLogEnabled *bool `json:"NotificationsLogEnabled,omitempty"` - NotificationsNewMessageBadgeCountEnabled *bool `json:"NotificationsNewMessageBadgeCountEnabled,omitempty"` - NotificationsNewMessageEnabled *bool `json:"NotificationsNewMessageEnabled,omitempty"` - NotificationsNewMessageSound *string `json:"NotificationsNewMessageSound,omitempty"` - NotificationsNewMessageTemplate *string `json:"NotificationsNewMessageTemplate,omitempty"` - NotificationsRemovedFromChannelEnabled *bool `json:"NotificationsRemovedFromChannelEnabled,omitempty"` - NotificationsRemovedFromChannelSound *string `json:"NotificationsRemovedFromChannelSound,omitempty"` - NotificationsRemovedFromChannelTemplate *string `json:"NotificationsRemovedFromChannelTemplate,omitempty"` + LimitsChannelMembers *int32 `json:"Limits.ChannelMembers,omitempty"` + LimitsUserChannels *int32 `json:"Limits.UserChannels,omitempty"` + MediaCompatibilityMessage *string `json:"Media.CompatibilityMessage,omitempty"` + NotificationsAddedToChannelEnabled *bool `json:"Notifications.AddedToChannel.Enabled,omitempty"` + NotificationsAddedToChannelSound *string `json:"Notifications.AddedToChannel.Sound,omitempty"` + NotificationsAddedToChannelTemplate *string `json:"Notifications.AddedToChannel.Template,omitempty"` + NotificationsInvitedToChannelEnabled *bool `json:"Notifications.InvitedToChannel.Enabled,omitempty"` + NotificationsInvitedToChannelSound *string `json:"Notifications.InvitedToChannel.Sound,omitempty"` + NotificationsInvitedToChannelTemplate *string `json:"Notifications.InvitedToChannel.Template,omitempty"` + NotificationsLogEnabled *bool `json:"Notifications.LogEnabled,omitempty"` + NotificationsNewMessageBadgeCountEnabled *bool `json:"Notifications.NewMessage.BadgeCountEnabled,omitempty"` + NotificationsNewMessageEnabled *bool `json:"Notifications.NewMessage.Enabled,omitempty"` + NotificationsNewMessageSound *string `json:"Notifications.NewMessage.Sound,omitempty"` + NotificationsNewMessageTemplate *string `json:"Notifications.NewMessage.Template,omitempty"` + NotificationsRemovedFromChannelEnabled *bool `json:"Notifications.RemovedFromChannel.Enabled,omitempty"` + NotificationsRemovedFromChannelSound *string `json:"Notifications.RemovedFromChannel.Sound,omitempty"` + NotificationsRemovedFromChannelTemplate *string `json:"Notifications.RemovedFromChannel.Template,omitempty"` PostWebhookRetryCount *int32 `json:"PostWebhookRetryCount,omitempty"` PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"` PreWebhookRetryCount *int32 `json:"PreWebhookRetryCount,omitempty"` @@ -2269,23 +2269,23 @@ UpdateService Method for UpdateService * @param "DefaultChannelRoleSid" (string) - * @param "DefaultServiceRoleSid" (string) - * @param "FriendlyName" (string) - - * @param "LimitsChannelMembers" (int32) - - * @param "LimitsUserChannels" (int32) - - * @param "MediaCompatibilityMessage" (string) - - * @param "NotificationsAddedToChannelEnabled" (bool) - - * @param "NotificationsAddedToChannelSound" (string) - - * @param "NotificationsAddedToChannelTemplate" (string) - - * @param "NotificationsInvitedToChannelEnabled" (bool) - - * @param "NotificationsInvitedToChannelSound" (string) - - * @param "NotificationsInvitedToChannelTemplate" (string) - - * @param "NotificationsLogEnabled" (bool) - - * @param "NotificationsNewMessageBadgeCountEnabled" (bool) - - * @param "NotificationsNewMessageEnabled" (bool) - - * @param "NotificationsNewMessageSound" (string) - - * @param "NotificationsNewMessageTemplate" (string) - - * @param "NotificationsRemovedFromChannelEnabled" (bool) - - * @param "NotificationsRemovedFromChannelSound" (string) - - * @param "NotificationsRemovedFromChannelTemplate" (string) - + * @param "Limits.ChannelMembers" (int32) - + * @param "Limits.UserChannels" (int32) - + * @param "Media.CompatibilityMessage" (string) - + * @param "Notifications.AddedToChannel.Enabled" (bool) - + * @param "Notifications.AddedToChannel.Sound" (string) - + * @param "Notifications.AddedToChannel.Template" (string) - + * @param "Notifications.InvitedToChannel.Enabled" (bool) - + * @param "Notifications.InvitedToChannel.Sound" (string) - + * @param "Notifications.InvitedToChannel.Template" (string) - + * @param "Notifications.LogEnabled" (bool) - + * @param "Notifications.NewMessage.BadgeCountEnabled" (bool) - + * @param "Notifications.NewMessage.Enabled" (bool) - + * @param "Notifications.NewMessage.Sound" (string) - + * @param "Notifications.NewMessage.Template" (string) - + * @param "Notifications.RemovedFromChannel.Enabled" (bool) - + * @param "Notifications.RemovedFromChannel.Sound" (string) - + * @param "Notifications.RemovedFromChannel.Template" (string) - * @param "PostWebhookRetryCount" (int32) - * @param "PostWebhookUrl" (string) - * @param "PreWebhookRetryCount" (int32) - diff --git a/rest/verify/v2/api_default.go b/rest/verify/v2/api_default.go index 0a49d0e9b..1c3b80e8c 100644 --- a/rest/verify/v2/api_default.go +++ b/rest/verify/v2/api_default.go @@ -124,8 +124,8 @@ func (c *DefaultApiService) CreateBucket(ServiceSid string, RateLimitSid string, } // CreateChallengeParams Optional parameters for the method 'CreateChallenge' type CreateChallengeParams struct { - DetailsFields *[]map[string]interface{} `json:"DetailsFields,omitempty"` - DetailsMessage *string `json:"DetailsMessage,omitempty"` + DetailsFields *[]map[string]interface{} `json:"Details.Fields,omitempty"` + DetailsMessage *string `json:"Details.Message,omitempty"` ExpirationDate *time.Time `json:"ExpirationDate,omitempty"` FactorSid *string `json:"FactorSid,omitempty"` HiddenDetails *map[string]interface{} `json:"HiddenDetails,omitempty"` @@ -137,8 +137,8 @@ Create a new Challenge for the Factor * @param ServiceSid The unique SID identifier of the Service. * @param Identity The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, and generated by your external system, such as your user's UUID, GUID, or SID. * @param optional nil or *CreateChallengeOpts - Optional Parameters: - * @param "DetailsFields" ([]map[string]interface{}) - A list of objects that describe the Fields included in the Challenge. Each object contains the label and value of the field. Used when `factor_type` is `push`. - * @param "DetailsMessage" (string) - Shown to the user when the push notification arrives. Required when `factor_type` is `push` + * @param "Details.Fields" ([]map[string]interface{}) - A list of objects that describe the Fields included in the Challenge. Each object contains the label and value of the field. Used when `factor_type` is `push`. + * @param "Details.Message" (string) - Shown to the user when the push notification arrives. Required when `factor_type` is `push` * @param "ExpirationDate" (time.Time) - The date-time when this Challenge expires, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. The default value is five (5) minutes after Challenge creation. The max value is sixty (60) minutes after creation. * @param "FactorSid" (string) - The unique SID identifier of the Factor. * @param "HiddenDetails" (map[string]interface{}) - Details provided to give context about the Challenge. Not shown to the end user. It must be a stringified JSON with only strings values eg. `{\\\"ip\\\": \\\"172.168.1.234\\\"}` @@ -160,7 +160,7 @@ func (c *DefaultApiService) CreateChallenge(ServiceSid string, Identity string, return nil, err } - data.Set("DetailsFields", fmt.Sprint(v)) + data.Set("Details.Fields", fmt.Sprint(v)) } if params != nil && params.DetailsMessage != nil { data.Set("DetailsMessage", *params.DetailsMessage) @@ -238,12 +238,12 @@ func (c *DefaultApiService) CreateEntity(ServiceSid string, params *CreateEntity } // CreateFactorParams Optional parameters for the method 'CreateFactor' type CreateFactorParams struct { - BindingAlg *string `json:"BindingAlg,omitempty"` - BindingPublicKey *string `json:"BindingPublicKey,omitempty"` - ConfigAppId *string `json:"ConfigAppId,omitempty"` - ConfigNotificationPlatform *string `json:"ConfigNotificationPlatform,omitempty"` - ConfigNotificationToken *string `json:"ConfigNotificationToken,omitempty"` - ConfigSdkVersion *string `json:"ConfigSdkVersion,omitempty"` + BindingAlg *string `json:"Binding.Alg,omitempty"` + BindingPublicKey *string `json:"Binding.PublicKey,omitempty"` + ConfigAppId *string `json:"Config.AppId,omitempty"` + ConfigNotificationPlatform *string `json:"Config.NotificationPlatform,omitempty"` + ConfigNotificationToken *string `json:"Config.NotificationToken,omitempty"` + ConfigSdkVersion *string `json:"Config.SdkVersion,omitempty"` FactorType *string `json:"FactorType,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` } @@ -254,12 +254,12 @@ Create a new Factor for the Entity * @param ServiceSid The unique SID identifier of the Service. * @param Identity Customer unique identity for the Entity owner of the Factor * @param optional nil or *CreateFactorOpts - Optional Parameters: - * @param "BindingAlg" (string) - The algorithm used when `factor_type` is `push`. Algorithm supported: `ES256` - * @param "BindingPublicKey" (string) - The Ecdsa public key in PKIX, ASN.1 DER format encoded in Base64 - * @param "ConfigAppId" (string) - The ID that uniquely identifies your app in the Google or Apple store, such as `com.example.myapp`. Required when `factor_type` is `push` - * @param "ConfigNotificationPlatform" (string) - The transport technology used to generate the Notification Token. Can be `apn` or `fcm`. Required when `factor_type` is `push` - * @param "ConfigNotificationToken" (string) - For APN, the device token. For FCM the registration token. It used to send the push notifications. Required when `factor_type` is `push` - * @param "ConfigSdkVersion" (string) - The Verify Push SDK version used to configure the factor + * @param "Binding.Alg" (string) - The algorithm used when `factor_type` is `push`. Algorithm supported: `ES256` + * @param "Binding.PublicKey" (string) - The Ecdsa public key in PKIX, ASN.1 DER format encoded in Base64 + * @param "Config.AppId" (string) - The ID that uniquely identifies your app in the Google or Apple store, such as `com.example.myapp`. Required when `factor_type` is `push` + * @param "Config.NotificationPlatform" (string) - The transport technology used to generate the Notification Token. Can be `apn` or `fcm`. Required when `factor_type` is `push` + * @param "Config.NotificationToken" (string) - For APN, the device token. For FCM the registration token. It used to send the push notifications. Required when `factor_type` is `push` + * @param "Config.SdkVersion" (string) - The Verify Push SDK version used to configure the factor * @param "FactorType" (string) - The Type of this Factor. Currently only `push` is supported * @param "FriendlyName" (string) - The friendly name of this Factor @return VerifyV2ServiceEntityFactor @@ -412,9 +412,9 @@ type CreateServiceParams struct { FriendlyName *string `json:"FriendlyName,omitempty"` LookupEnabled *bool `json:"LookupEnabled,omitempty"` Psd2Enabled *bool `json:"Psd2Enabled,omitempty"` - PushApnCredentialSid *string `json:"PushApnCredentialSid,omitempty"` - PushFcmCredentialSid *string `json:"PushFcmCredentialSid,omitempty"` - PushIncludeDate *bool `json:"PushIncludeDate,omitempty"` + PushApnCredentialSid *string `json:"Push.ApnCredentialSid,omitempty"` + PushFcmCredentialSid *string `json:"Push.FcmCredentialSid,omitempty"` + PushIncludeDate *bool `json:"Push.IncludeDate,omitempty"` SkipSmsToLandlines *bool `json:"SkipSmsToLandlines,omitempty"` TtsName *string `json:"TtsName,omitempty"` } @@ -430,9 +430,9 @@ Create a new Verification Service. * @param "FriendlyName" (string) - A descriptive string that you create to describe the verification service. It can be up to 30 characters long. **This value should not contain PII.** * @param "LookupEnabled" (bool) - Whether to perform a lookup with each verification started and return info about the phone number. * @param "Psd2Enabled" (bool) - Whether to pass PSD2 transaction parameters when starting a verification. - * @param "PushApnCredentialSid" (string) - Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) - * @param "PushFcmCredentialSid" (string) - Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) - * @param "PushIncludeDate" (bool) - Optional configuration for the Push factors. If true, include the date in the Challenge's reponse. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: true + * @param "Push.ApnCredentialSid" (string) - Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) + * @param "Push.FcmCredentialSid" (string) - Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) + * @param "Push.IncludeDate" (bool) - Optional configuration for the Push factors. If true, include the date in the Challenge's reponse. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: true * @param "SkipSmsToLandlines" (bool) - Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`. * @param "TtsName" (string) - The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. @return VerifyV2Service @@ -1671,8 +1671,8 @@ func (c *DefaultApiService) UpdateChallenge(ServiceSid string, Identity string, // UpdateFactorParams Optional parameters for the method 'UpdateFactor' type UpdateFactorParams struct { AuthPayload *string `json:"AuthPayload,omitempty"` - ConfigNotificationToken *string `json:"ConfigNotificationToken,omitempty"` - ConfigSdkVersion *string `json:"ConfigSdkVersion,omitempty"` + ConfigNotificationToken *string `json:"Config.NotificationToken,omitempty"` + ConfigSdkVersion *string `json:"Config.SdkVersion,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` } @@ -1684,8 +1684,8 @@ Update a specific Factor. This endpoint can be used to Verify a Factor if passed * @param Sid A 34 character string that uniquely identifies this Factor. * @param optional nil or *UpdateFactorOpts - Optional Parameters: * @param "AuthPayload" (string) - The optional payload needed to verify the Factor for the first time. E.g. for a TOTP, the numeric code. - * @param "ConfigNotificationToken" (string) - For APN, the device token. For FCM the registration token. It used to send the push notifications. Required when `factor_type` is `push` - * @param "ConfigSdkVersion" (string) - The Verify Push SDK version used to configure the factor + * @param "Config.NotificationToken" (string) - For APN, the device token. For FCM the registration token. It used to send the push notifications. Required when `factor_type` is `push` + * @param "Config.SdkVersion" (string) - The Verify Push SDK version used to configure the factor * @param "FriendlyName" (string) - The new friendly name of this Factor @return VerifyV2ServiceEntityFactor */ @@ -1820,9 +1820,9 @@ type UpdateServiceParams struct { FriendlyName *string `json:"FriendlyName,omitempty"` LookupEnabled *bool `json:"LookupEnabled,omitempty"` Psd2Enabled *bool `json:"Psd2Enabled,omitempty"` - PushApnCredentialSid *string `json:"PushApnCredentialSid,omitempty"` - PushFcmCredentialSid *string `json:"PushFcmCredentialSid,omitempty"` - PushIncludeDate *bool `json:"PushIncludeDate,omitempty"` + PushApnCredentialSid *string `json:"Push.ApnCredentialSid,omitempty"` + PushFcmCredentialSid *string `json:"Push.FcmCredentialSid,omitempty"` + PushIncludeDate *bool `json:"Push.IncludeDate,omitempty"` SkipSmsToLandlines *bool `json:"SkipSmsToLandlines,omitempty"` TtsName *string `json:"TtsName,omitempty"` } @@ -1839,9 +1839,9 @@ Update a specific Verification Service. * @param "FriendlyName" (string) - A descriptive string that you create to describe the verification service. It can be up to 30 characters long. **This value should not contain PII.** * @param "LookupEnabled" (bool) - Whether to perform a lookup with each verification started and return info about the phone number. * @param "Psd2Enabled" (bool) - Whether to pass PSD2 transaction parameters when starting a verification. - * @param "PushApnCredentialSid" (string) - Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) - * @param "PushFcmCredentialSid" (string) - Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) - * @param "PushIncludeDate" (bool) - Optional configuration for the Push factors. If true, include the date in the Challenge's reponse. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: true + * @param "Push.ApnCredentialSid" (string) - Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) + * @param "Push.FcmCredentialSid" (string) - Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) + * @param "Push.IncludeDate" (bool) - Optional configuration for the Push factors. If true, include the date in the Challenge's reponse. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: true * @param "SkipSmsToLandlines" (bool) - Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`. * @param "TtsName" (string) - The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. @return VerifyV2Service From c08bec30f75f53a6f38473fb37bebe4a64585dc3 Mon Sep 17 00:00:00 2001 From: Shwetha Radhakrishna Date: Sat, 23 Jan 2021 21:18:27 -0700 Subject: [PATCH 13/20] Revert --- rest/chat/v1/api_default.go | 168 +++++++++++----------- rest/chat/v2/api_default.go | 116 ++++++++-------- rest/conversations/v1/api_default.go | 200 +++++++++++++-------------- rest/flex/v1/api_default.go | 72 +++++----- rest/ip/messaging/api_default.go | 116 ++++++++-------- rest/verify/v2/api_default.go | 66 ++++----- 6 files changed, 369 insertions(+), 369 deletions(-) diff --git a/rest/chat/v1/api_default.go b/rest/chat/v1/api_default.go index 623ef326c..aa41aa2e4 100644 --- a/rest/chat/v1/api_default.go +++ b/rest/chat/v1/api_default.go @@ -1536,16 +1536,16 @@ type UpdateServiceParams struct { DefaultChannelRoleSid *string `json:"DefaultChannelRoleSid,omitempty"` DefaultServiceRoleSid *string `json:"DefaultServiceRoleSid,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` - LimitsChannelMembers *int32 `json:"Limits.ChannelMembers,omitempty"` - LimitsUserChannels *int32 `json:"Limits.UserChannels,omitempty"` - NotificationsAddedToChannelEnabled *bool `json:"Notifications.AddedToChannel.Enabled,omitempty"` - NotificationsAddedToChannelTemplate *string `json:"Notifications.AddedToChannel.Template,omitempty"` - NotificationsInvitedToChannelEnabled *bool `json:"Notifications.InvitedToChannel.Enabled,omitempty"` - NotificationsInvitedToChannelTemplate *string `json:"Notifications.InvitedToChannel.Template,omitempty"` - NotificationsNewMessageEnabled *bool `json:"Notifications.NewMessage.Enabled,omitempty"` - NotificationsNewMessageTemplate *string `json:"Notifications.NewMessage.Template,omitempty"` - NotificationsRemovedFromChannelEnabled *bool `json:"Notifications.RemovedFromChannel.Enabled,omitempty"` - NotificationsRemovedFromChannelTemplate *string `json:"Notifications.RemovedFromChannel.Template,omitempty"` + LimitsChannelMembers *int32 `json:"LimitsChannelMembers,omitempty"` + LimitsUserChannels *int32 `json:"LimitsUserChannels,omitempty"` + NotificationsAddedToChannelEnabled *bool `json:"NotificationsAddedToChannelEnabled,omitempty"` + NotificationsAddedToChannelTemplate *string `json:"NotificationsAddedToChannelTemplate,omitempty"` + NotificationsInvitedToChannelEnabled *bool `json:"NotificationsInvitedToChannelEnabled,omitempty"` + NotificationsInvitedToChannelTemplate *string `json:"NotificationsInvitedToChannelTemplate,omitempty"` + NotificationsNewMessageEnabled *bool `json:"NotificationsNewMessageEnabled,omitempty"` + NotificationsNewMessageTemplate *string `json:"NotificationsNewMessageTemplate,omitempty"` + NotificationsRemovedFromChannelEnabled *bool `json:"NotificationsRemovedFromChannelEnabled,omitempty"` + NotificationsRemovedFromChannelTemplate *string `json:"NotificationsRemovedFromChannelTemplate,omitempty"` PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"` PreWebhookUrl *string `json:"PreWebhookUrl,omitempty"` ReachabilityEnabled *bool `json:"ReachabilityEnabled,omitempty"` @@ -1553,38 +1553,38 @@ type UpdateServiceParams struct { TypingIndicatorTimeout *int32 `json:"TypingIndicatorTimeout,omitempty"` WebhookFilters *[]string `json:"WebhookFilters,omitempty"` WebhookMethod *string `json:"WebhookMethod,omitempty"` - WebhooksOnChannelAddMethod *string `json:"Webhooks.OnChannelAdd.Method,omitempty"` - WebhooksOnChannelAddUrl *string `json:"Webhooks.OnChannelAdd.Url,omitempty"` - WebhooksOnChannelAddedMethod *string `json:"Webhooks.OnChannelAdded.Method,omitempty"` - WebhooksOnChannelAddedUrl *string `json:"Webhooks.OnChannelAdded.Url,omitempty"` - WebhooksOnChannelDestroyMethod *string `json:"Webhooks.OnChannelDestroy.Method,omitempty"` - WebhooksOnChannelDestroyUrl *string `json:"Webhooks.OnChannelDestroy.Url,omitempty"` - WebhooksOnChannelDestroyedMethod *string `json:"Webhooks.OnChannelDestroyed.Method,omitempty"` - WebhooksOnChannelDestroyedUrl *string `json:"Webhooks.OnChannelDestroyed.Url,omitempty"` - WebhooksOnChannelUpdateMethod *string `json:"Webhooks.OnChannelUpdate.Method,omitempty"` - WebhooksOnChannelUpdateUrl *string `json:"Webhooks.OnChannelUpdate.Url,omitempty"` - WebhooksOnChannelUpdatedMethod *string `json:"Webhooks.OnChannelUpdated.Method,omitempty"` - WebhooksOnChannelUpdatedUrl *string `json:"Webhooks.OnChannelUpdated.Url,omitempty"` - WebhooksOnMemberAddMethod *string `json:"Webhooks.OnMemberAdd.Method,omitempty"` - WebhooksOnMemberAddUrl *string `json:"Webhooks.OnMemberAdd.Url,omitempty"` - WebhooksOnMemberAddedMethod *string `json:"Webhooks.OnMemberAdded.Method,omitempty"` - WebhooksOnMemberAddedUrl *string `json:"Webhooks.OnMemberAdded.Url,omitempty"` - WebhooksOnMemberRemoveMethod *string `json:"Webhooks.OnMemberRemove.Method,omitempty"` - WebhooksOnMemberRemoveUrl *string `json:"Webhooks.OnMemberRemove.Url,omitempty"` - WebhooksOnMemberRemovedMethod *string `json:"Webhooks.OnMemberRemoved.Method,omitempty"` - WebhooksOnMemberRemovedUrl *string `json:"Webhooks.OnMemberRemoved.Url,omitempty"` - WebhooksOnMessageRemoveMethod *string `json:"Webhooks.OnMessageRemove.Method,omitempty"` - WebhooksOnMessageRemoveUrl *string `json:"Webhooks.OnMessageRemove.Url,omitempty"` - WebhooksOnMessageRemovedMethod *string `json:"Webhooks.OnMessageRemoved.Method,omitempty"` - WebhooksOnMessageRemovedUrl *string `json:"Webhooks.OnMessageRemoved.Url,omitempty"` - WebhooksOnMessageSendMethod *string `json:"Webhooks.OnMessageSend.Method,omitempty"` - WebhooksOnMessageSendUrl *string `json:"Webhooks.OnMessageSend.Url,omitempty"` - WebhooksOnMessageSentMethod *string `json:"Webhooks.OnMessageSent.Method,omitempty"` - WebhooksOnMessageSentUrl *string `json:"Webhooks.OnMessageSent.Url,omitempty"` - WebhooksOnMessageUpdateMethod *string `json:"Webhooks.OnMessageUpdate.Method,omitempty"` - WebhooksOnMessageUpdateUrl *string `json:"Webhooks.OnMessageUpdate.Url,omitempty"` - WebhooksOnMessageUpdatedMethod *string `json:"Webhooks.OnMessageUpdated.Method,omitempty"` - WebhooksOnMessageUpdatedUrl *string `json:"Webhooks.OnMessageUpdated.Url,omitempty"` + WebhooksOnChannelAddMethod *string `json:"WebhooksOnChannelAddMethod,omitempty"` + WebhooksOnChannelAddUrl *string `json:"WebhooksOnChannelAddUrl,omitempty"` + WebhooksOnChannelAddedMethod *string `json:"WebhooksOnChannelAddedMethod,omitempty"` + WebhooksOnChannelAddedUrl *string `json:"WebhooksOnChannelAddedUrl,omitempty"` + WebhooksOnChannelDestroyMethod *string `json:"WebhooksOnChannelDestroyMethod,omitempty"` + WebhooksOnChannelDestroyUrl *string `json:"WebhooksOnChannelDestroyUrl,omitempty"` + WebhooksOnChannelDestroyedMethod *string `json:"WebhooksOnChannelDestroyedMethod,omitempty"` + WebhooksOnChannelDestroyedUrl *string `json:"WebhooksOnChannelDestroyedUrl,omitempty"` + WebhooksOnChannelUpdateMethod *string `json:"WebhooksOnChannelUpdateMethod,omitempty"` + WebhooksOnChannelUpdateUrl *string `json:"WebhooksOnChannelUpdateUrl,omitempty"` + WebhooksOnChannelUpdatedMethod *string `json:"WebhooksOnChannelUpdatedMethod,omitempty"` + WebhooksOnChannelUpdatedUrl *string `json:"WebhooksOnChannelUpdatedUrl,omitempty"` + WebhooksOnMemberAddMethod *string `json:"WebhooksOnMemberAddMethod,omitempty"` + WebhooksOnMemberAddUrl *string `json:"WebhooksOnMemberAddUrl,omitempty"` + WebhooksOnMemberAddedMethod *string `json:"WebhooksOnMemberAddedMethod,omitempty"` + WebhooksOnMemberAddedUrl *string `json:"WebhooksOnMemberAddedUrl,omitempty"` + WebhooksOnMemberRemoveMethod *string `json:"WebhooksOnMemberRemoveMethod,omitempty"` + WebhooksOnMemberRemoveUrl *string `json:"WebhooksOnMemberRemoveUrl,omitempty"` + WebhooksOnMemberRemovedMethod *string `json:"WebhooksOnMemberRemovedMethod,omitempty"` + WebhooksOnMemberRemovedUrl *string `json:"WebhooksOnMemberRemovedUrl,omitempty"` + WebhooksOnMessageRemoveMethod *string `json:"WebhooksOnMessageRemoveMethod,omitempty"` + WebhooksOnMessageRemoveUrl *string `json:"WebhooksOnMessageRemoveUrl,omitempty"` + WebhooksOnMessageRemovedMethod *string `json:"WebhooksOnMessageRemovedMethod,omitempty"` + WebhooksOnMessageRemovedUrl *string `json:"WebhooksOnMessageRemovedUrl,omitempty"` + WebhooksOnMessageSendMethod *string `json:"WebhooksOnMessageSendMethod,omitempty"` + WebhooksOnMessageSendUrl *string `json:"WebhooksOnMessageSendUrl,omitempty"` + WebhooksOnMessageSentMethod *string `json:"WebhooksOnMessageSentMethod,omitempty"` + WebhooksOnMessageSentUrl *string `json:"WebhooksOnMessageSentUrl,omitempty"` + WebhooksOnMessageUpdateMethod *string `json:"WebhooksOnMessageUpdateMethod,omitempty"` + WebhooksOnMessageUpdateUrl *string `json:"WebhooksOnMessageUpdateUrl,omitempty"` + WebhooksOnMessageUpdatedMethod *string `json:"WebhooksOnMessageUpdatedMethod,omitempty"` + WebhooksOnMessageUpdatedUrl *string `json:"WebhooksOnMessageUpdatedUrl,omitempty"` } /* @@ -1596,16 +1596,16 @@ UpdateService Method for UpdateService * @param "DefaultChannelRoleSid" (string) - The channel role assigned to users when they are added to a channel. See the [Roles endpoint](https://www.twilio.com/docs/chat/api/roles) for more details. * @param "DefaultServiceRoleSid" (string) - The service role assigned to users when they are added to the service. See the [Roles endpoint](https://www.twilio.com/docs/chat/api/roles) for more details. * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It can be up to 64 characters long. - * @param "Limits.ChannelMembers" (int32) - The maximum number of Members that can be added to Channels within this Service. Can be up to 1,000. - * @param "Limits.UserChannels" (int32) - The maximum number of Channels Users can be a Member of within this Service. Can be up to 1,000. - * @param "Notifications.AddedToChannel.Enabled" (bool) - Whether to send a notification when a member is added to a channel. Can be: `true` or `false` and the default is `false`. - * @param "Notifications.AddedToChannel.Template" (string) - The template to use to create the notification text displayed when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. - * @param "Notifications.InvitedToChannel.Enabled" (bool) - Whether to send a notification when a user is invited to a channel. Can be: `true` or `false` and the default is `false`. - * @param "Notifications.InvitedToChannel.Template" (string) - The template to use to create the notification text displayed when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. - * @param "Notifications.NewMessage.Enabled" (bool) - Whether to send a notification when a new message is added to a channel. Can be: `true` or `false` and the default is `false`. - * @param "Notifications.NewMessage.Template" (string) - The template to use to create the notification text displayed when a new message is added to a channel and `notifications.new_message.enabled` is `true`. - * @param "Notifications.RemovedFromChannel.Enabled" (bool) - Whether to send a notification to a user when they are removed from a channel. Can be: `true` or `false` and the default is `false`. - * @param "Notifications.RemovedFromChannel.Template" (string) - The template to use to create the notification text displayed to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. + * @param "LimitsChannelMembers" (int32) - The maximum number of Members that can be added to Channels within this Service. Can be up to 1,000. + * @param "LimitsUserChannels" (int32) - The maximum number of Channels Users can be a Member of within this Service. Can be up to 1,000. + * @param "NotificationsAddedToChannelEnabled" (bool) - Whether to send a notification when a member is added to a channel. Can be: `true` or `false` and the default is `false`. + * @param "NotificationsAddedToChannelTemplate" (string) - The template to use to create the notification text displayed when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. + * @param "NotificationsInvitedToChannelEnabled" (bool) - Whether to send a notification when a user is invited to a channel. Can be: `true` or `false` and the default is `false`. + * @param "NotificationsInvitedToChannelTemplate" (string) - The template to use to create the notification text displayed when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. + * @param "NotificationsNewMessageEnabled" (bool) - Whether to send a notification when a new message is added to a channel. Can be: `true` or `false` and the default is `false`. + * @param "NotificationsNewMessageTemplate" (string) - The template to use to create the notification text displayed when a new message is added to a channel and `notifications.new_message.enabled` is `true`. + * @param "NotificationsRemovedFromChannelEnabled" (bool) - Whether to send a notification to a user when they are removed from a channel. Can be: `true` or `false` and the default is `false`. + * @param "NotificationsRemovedFromChannelTemplate" (string) - The template to use to create the notification text displayed to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. * @param "PostWebhookUrl" (string) - The URL for post-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more details. * @param "PreWebhookUrl" (string) - The URL for pre-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more details. * @param "ReachabilityEnabled" (bool) - Whether to enable the [Reachability Indicator](https://www.twilio.com/docs/chat/reachability-indicator) for this Service instance. The default is `false`. @@ -1613,38 +1613,38 @@ UpdateService Method for UpdateService * @param "TypingIndicatorTimeout" (int32) - How long in seconds after a `started typing` event until clients should assume that user is no longer typing, even if no `ended typing` message was received. The default is 5 seconds. * @param "WebhookFilters" ([]string) - The list of WebHook events that are enabled for this Service instance. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. * @param "WebhookMethod" (string) - The HTTP method to use for calls to the `pre_webhook_url` and `post_webhook_url` webhooks. Can be: `POST` or `GET` and the default is `POST`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. - * @param "Webhooks.OnChannelAdd.Method" (string) - The HTTP method to use when calling the `webhooks.on_channel_add.url`. - * @param "Webhooks.OnChannelAdd.Url" (string) - The URL of the webhook to call in response to the `on_channel_add` event using the `webhooks.on_channel_add.method` HTTP method. - * @param "Webhooks.OnChannelAdded.Method" (string) - The URL of the webhook to call in response to the `on_channel_added` event`. - * @param "Webhooks.OnChannelAdded.Url" (string) - The URL of the webhook to call in response to the `on_channel_added` event using the `webhooks.on_channel_added.method` HTTP method. - * @param "Webhooks.OnChannelDestroy.Method" (string) - The HTTP method to use when calling the `webhooks.on_channel_destroy.url`. - * @param "Webhooks.OnChannelDestroy.Url" (string) - The URL of the webhook to call in response to the `on_channel_destroy` event using the `webhooks.on_channel_destroy.method` HTTP method. - * @param "Webhooks.OnChannelDestroyed.Method" (string) - The HTTP method to use when calling the `webhooks.on_channel_destroyed.url`. - * @param "Webhooks.OnChannelDestroyed.Url" (string) - The URL of the webhook to call in response to the `on_channel_added` event using the `webhooks.on_channel_destroyed.method` HTTP method. - * @param "Webhooks.OnChannelUpdate.Method" (string) - The HTTP method to use when calling the `webhooks.on_channel_update.url`. - * @param "Webhooks.OnChannelUpdate.Url" (string) - The URL of the webhook to call in response to the `on_channel_update` event using the `webhooks.on_channel_update.method` HTTP method. - * @param "Webhooks.OnChannelUpdated.Method" (string) - The HTTP method to use when calling the `webhooks.on_channel_updated.url`. - * @param "Webhooks.OnChannelUpdated.Url" (string) - The URL of the webhook to call in response to the `on_channel_updated` event using the `webhooks.on_channel_updated.method` HTTP method. - * @param "Webhooks.OnMemberAdd.Method" (string) - The HTTP method to use when calling the `webhooks.on_member_add.url`. - * @param "Webhooks.OnMemberAdd.Url" (string) - The URL of the webhook to call in response to the `on_member_add` event using the `webhooks.on_member_add.method` HTTP method. - * @param "Webhooks.OnMemberAdded.Method" (string) - The HTTP method to use when calling the `webhooks.on_channel_updated.url`. - * @param "Webhooks.OnMemberAdded.Url" (string) - The URL of the webhook to call in response to the `on_channel_updated` event using the `webhooks.on_channel_updated.method` HTTP method. - * @param "Webhooks.OnMemberRemove.Method" (string) - The HTTP method to use when calling the `webhooks.on_member_remove.url`. - * @param "Webhooks.OnMemberRemove.Url" (string) - The URL of the webhook to call in response to the `on_member_remove` event using the `webhooks.on_member_remove.method` HTTP method. - * @param "Webhooks.OnMemberRemoved.Method" (string) - The HTTP method to use when calling the `webhooks.on_member_removed.url`. - * @param "Webhooks.OnMemberRemoved.Url" (string) - The URL of the webhook to call in response to the `on_member_removed` event using the `webhooks.on_member_removed.method` HTTP method. - * @param "Webhooks.OnMessageRemove.Method" (string) - The HTTP method to use when calling the `webhooks.on_message_remove.url`. - * @param "Webhooks.OnMessageRemove.Url" (string) - The URL of the webhook to call in response to the `on_message_remove` event using the `webhooks.on_message_remove.method` HTTP method. - * @param "Webhooks.OnMessageRemoved.Method" (string) - The HTTP method to use when calling the `webhooks.on_message_removed.url`. - * @param "Webhooks.OnMessageRemoved.Url" (string) - The URL of the webhook to call in response to the `on_message_removed` event using the `webhooks.on_message_removed.method` HTTP method. - * @param "Webhooks.OnMessageSend.Method" (string) - The HTTP method to use when calling the `webhooks.on_message_send.url`. - * @param "Webhooks.OnMessageSend.Url" (string) - The URL of the webhook to call in response to the `on_message_send` event using the `webhooks.on_message_send.method` HTTP method. - * @param "Webhooks.OnMessageSent.Method" (string) - The URL of the webhook to call in response to the `on_message_sent` event`. - * @param "Webhooks.OnMessageSent.Url" (string) - The URL of the webhook to call in response to the `on_message_sent` event using the `webhooks.on_message_sent.method` HTTP method. - * @param "Webhooks.OnMessageUpdate.Method" (string) - The HTTP method to use when calling the `webhooks.on_message_update.url`. - * @param "Webhooks.OnMessageUpdate.Url" (string) - The URL of the webhook to call in response to the `on_message_update` event using the `webhooks.on_message_update.method` HTTP method. - * @param "Webhooks.OnMessageUpdated.Method" (string) - The HTTP method to use when calling the `webhooks.on_message_updated.url`. - * @param "Webhooks.OnMessageUpdated.Url" (string) - The URL of the webhook to call in response to the `on_message_updated` event using the `webhooks.on_message_updated.method` HTTP method. + * @param "WebhooksOnChannelAddMethod" (string) - The HTTP method to use when calling the `webhooks.on_channel_add.url`. + * @param "WebhooksOnChannelAddUrl" (string) - The URL of the webhook to call in response to the `on_channel_add` event using the `webhooks.on_channel_add.method` HTTP method. + * @param "WebhooksOnChannelAddedMethod" (string) - The URL of the webhook to call in response to the `on_channel_added` event`. + * @param "WebhooksOnChannelAddedUrl" (string) - The URL of the webhook to call in response to the `on_channel_added` event using the `webhooks.on_channel_added.method` HTTP method. + * @param "WebhooksOnChannelDestroyMethod" (string) - The HTTP method to use when calling the `webhooks.on_channel_destroy.url`. + * @param "WebhooksOnChannelDestroyUrl" (string) - The URL of the webhook to call in response to the `on_channel_destroy` event using the `webhooks.on_channel_destroy.method` HTTP method. + * @param "WebhooksOnChannelDestroyedMethod" (string) - The HTTP method to use when calling the `webhooks.on_channel_destroyed.url`. + * @param "WebhooksOnChannelDestroyedUrl" (string) - The URL of the webhook to call in response to the `on_channel_added` event using the `webhooks.on_channel_destroyed.method` HTTP method. + * @param "WebhooksOnChannelUpdateMethod" (string) - The HTTP method to use when calling the `webhooks.on_channel_update.url`. + * @param "WebhooksOnChannelUpdateUrl" (string) - The URL of the webhook to call in response to the `on_channel_update` event using the `webhooks.on_channel_update.method` HTTP method. + * @param "WebhooksOnChannelUpdatedMethod" (string) - The HTTP method to use when calling the `webhooks.on_channel_updated.url`. + * @param "WebhooksOnChannelUpdatedUrl" (string) - The URL of the webhook to call in response to the `on_channel_updated` event using the `webhooks.on_channel_updated.method` HTTP method. + * @param "WebhooksOnMemberAddMethod" (string) - The HTTP method to use when calling the `webhooks.on_member_add.url`. + * @param "WebhooksOnMemberAddUrl" (string) - The URL of the webhook to call in response to the `on_member_add` event using the `webhooks.on_member_add.method` HTTP method. + * @param "WebhooksOnMemberAddedMethod" (string) - The HTTP method to use when calling the `webhooks.on_channel_updated.url`. + * @param "WebhooksOnMemberAddedUrl" (string) - The URL of the webhook to call in response to the `on_channel_updated` event using the `webhooks.on_channel_updated.method` HTTP method. + * @param "WebhooksOnMemberRemoveMethod" (string) - The HTTP method to use when calling the `webhooks.on_member_remove.url`. + * @param "WebhooksOnMemberRemoveUrl" (string) - The URL of the webhook to call in response to the `on_member_remove` event using the `webhooks.on_member_remove.method` HTTP method. + * @param "WebhooksOnMemberRemovedMethod" (string) - The HTTP method to use when calling the `webhooks.on_member_removed.url`. + * @param "WebhooksOnMemberRemovedUrl" (string) - The URL of the webhook to call in response to the `on_member_removed` event using the `webhooks.on_member_removed.method` HTTP method. + * @param "WebhooksOnMessageRemoveMethod" (string) - The HTTP method to use when calling the `webhooks.on_message_remove.url`. + * @param "WebhooksOnMessageRemoveUrl" (string) - The URL of the webhook to call in response to the `on_message_remove` event using the `webhooks.on_message_remove.method` HTTP method. + * @param "WebhooksOnMessageRemovedMethod" (string) - The HTTP method to use when calling the `webhooks.on_message_removed.url`. + * @param "WebhooksOnMessageRemovedUrl" (string) - The URL of the webhook to call in response to the `on_message_removed` event using the `webhooks.on_message_removed.method` HTTP method. + * @param "WebhooksOnMessageSendMethod" (string) - The HTTP method to use when calling the `webhooks.on_message_send.url`. + * @param "WebhooksOnMessageSendUrl" (string) - The URL of the webhook to call in response to the `on_message_send` event using the `webhooks.on_message_send.method` HTTP method. + * @param "WebhooksOnMessageSentMethod" (string) - The URL of the webhook to call in response to the `on_message_sent` event`. + * @param "WebhooksOnMessageSentUrl" (string) - The URL of the webhook to call in response to the `on_message_sent` event using the `webhooks.on_message_sent.method` HTTP method. + * @param "WebhooksOnMessageUpdateMethod" (string) - The HTTP method to use when calling the `webhooks.on_message_update.url`. + * @param "WebhooksOnMessageUpdateUrl" (string) - The URL of the webhook to call in response to the `on_message_update` event using the `webhooks.on_message_update.method` HTTP method. + * @param "WebhooksOnMessageUpdatedMethod" (string) - The HTTP method to use when calling the `webhooks.on_message_updated.url`. + * @param "WebhooksOnMessageUpdatedUrl" (string) - The URL of the webhook to call in response to the `on_message_updated` event using the `webhooks.on_message_updated.method` HTTP method. @return ChatV1Service */ func (c *DefaultApiService) UpdateService(Sid string, params *UpdateServiceParams) (*ChatV1Service, error) { diff --git a/rest/chat/v2/api_default.go b/rest/chat/v2/api_default.go index 339c22743..36ca2ff96 100644 --- a/rest/chat/v2/api_default.go +++ b/rest/chat/v2/api_default.go @@ -106,12 +106,12 @@ func (c *DefaultApiService) CreateChannel(ServiceSid string, params *CreateChann } // CreateChannelWebhookParams Optional parameters for the method 'CreateChannelWebhook' type CreateChannelWebhookParams struct { - ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` - ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` - ConfigurationMethod *string `json:"Configuration.Method,omitempty"` - ConfigurationRetryCount *int32 `json:"Configuration.RetryCount,omitempty"` - ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` - ConfigurationUrl *string `json:"Configuration.Url,omitempty"` + ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` + ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` + ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` + ConfigurationRetryCount *int32 `json:"ConfigurationRetryCount,omitempty"` + ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` + ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` Type *string `json:"Type,omitempty"` } @@ -120,12 +120,12 @@ CreateChannelWebhook Method for CreateChannelWebhook * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) with the Channel to create the Webhook resource under. * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the new Channel Webhook resource belongs to. This value can be the Channel resource's `sid` or `unique_name`. * @param optional nil or *CreateChannelWebhookOpts - Optional Parameters: - * @param "Configuration.Filters" ([]string) - The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger). - * @param "Configuration.FlowSid" (string) - The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` is `studio`. - * @param "Configuration.Method" (string) - The HTTP method used to call `configuration.url`. Can be: `GET` or `POST` and the default is `POST`. - * @param "Configuration.RetryCount" (int32) - The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0. - * @param "Configuration.Triggers" ([]string) - A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`. - * @param "Configuration.Url" (string) - The URL of the webhook to call using the `configuration.method`. + * @param "ConfigurationFilters" ([]string) - The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger). + * @param "ConfigurationFlowSid" (string) - The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` is `studio`. + * @param "ConfigurationMethod" (string) - The HTTP method used to call `configuration.url`. Can be: `GET` or `POST` and the default is `POST`. + * @param "ConfigurationRetryCount" (int32) - The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0. + * @param "ConfigurationTriggers" ([]string) - A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`. + * @param "ConfigurationUrl" (string) - The URL of the webhook to call using the `configuration.method`. * @param "Type" (string) - The type of webhook. Can be: `webhook`, `studio`, or `trigger`. @return ChatV2ServiceChannelChannelWebhook */ @@ -1910,12 +1910,12 @@ func (c *DefaultApiService) UpdateChannel(ServiceSid string, Sid string, params } // UpdateChannelWebhookParams Optional parameters for the method 'UpdateChannelWebhook' type UpdateChannelWebhookParams struct { - ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` - ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` - ConfigurationMethod *string `json:"Configuration.Method,omitempty"` - ConfigurationRetryCount *int32 `json:"Configuration.RetryCount,omitempty"` - ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` - ConfigurationUrl *string `json:"Configuration.Url,omitempty"` + ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` + ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` + ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` + ConfigurationRetryCount *int32 `json:"ConfigurationRetryCount,omitempty"` + ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` + ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` } /* @@ -1924,12 +1924,12 @@ UpdateChannelWebhook Method for UpdateChannelWebhook * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook resource to update belongs to. This value can be the Channel resource's `sid` or `unique_name`. * @param Sid The SID of the Channel Webhook resource to update. * @param optional nil or *UpdateChannelWebhookOpts - Optional Parameters: - * @param "Configuration.Filters" ([]string) - The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger). - * @param "Configuration.FlowSid" (string) - The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` = `studio`. - * @param "Configuration.Method" (string) - The HTTP method used to call `configuration.url`. Can be: `GET` or `POST` and the default is `POST`. - * @param "Configuration.RetryCount" (int32) - The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0. - * @param "Configuration.Triggers" ([]string) - A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`. - * @param "Configuration.Url" (string) - The URL of the webhook to call using the `configuration.method`. + * @param "ConfigurationFilters" ([]string) - The events that cause us to call the Channel Webhook. Used when `type` is `webhook`. This parameter takes only one event. To specify more than one event, repeat this parameter for each event. For the list of possible events, see [Webhook Event Triggers](https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger). + * @param "ConfigurationFlowSid" (string) - The SID of the Studio [Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an event in `configuration.filters` occurs. Used only when `type` = `studio`. + * @param "ConfigurationMethod" (string) - The HTTP method used to call `configuration.url`. Can be: `GET` or `POST` and the default is `POST`. + * @param "ConfigurationRetryCount" (int32) - The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3, inclusive, and the default is 0. + * @param "ConfigurationTriggers" ([]string) - A string that will cause us to call the webhook when it is present in a message body. This parameter takes only one trigger string. To specify more than one, repeat this parameter for each trigger string up to a total of 5 trigger strings. Used only when `type` = `trigger`. + * @param "ConfigurationUrl" (string) - The URL of the webhook to call using the `configuration.method`. @return ChatV2ServiceChannelChannelWebhook */ func (c *DefaultApiService) UpdateChannelWebhook(ServiceSid string, ChannelSid string, Sid string, params *UpdateChannelWebhookParams) (*ChatV2ServiceChannelChannelWebhook, error) { @@ -2234,23 +2234,23 @@ type UpdateServiceParams struct { DefaultChannelRoleSid *string `json:"DefaultChannelRoleSid,omitempty"` DefaultServiceRoleSid *string `json:"DefaultServiceRoleSid,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` - LimitsChannelMembers *int32 `json:"Limits.ChannelMembers,omitempty"` - LimitsUserChannels *int32 `json:"Limits.UserChannels,omitempty"` - MediaCompatibilityMessage *string `json:"Media.CompatibilityMessage,omitempty"` - NotificationsAddedToChannelEnabled *bool `json:"Notifications.AddedToChannel.Enabled,omitempty"` - NotificationsAddedToChannelSound *string `json:"Notifications.AddedToChannel.Sound,omitempty"` - NotificationsAddedToChannelTemplate *string `json:"Notifications.AddedToChannel.Template,omitempty"` - NotificationsInvitedToChannelEnabled *bool `json:"Notifications.InvitedToChannel.Enabled,omitempty"` - NotificationsInvitedToChannelSound *string `json:"Notifications.InvitedToChannel.Sound,omitempty"` - NotificationsInvitedToChannelTemplate *string `json:"Notifications.InvitedToChannel.Template,omitempty"` - NotificationsLogEnabled *bool `json:"Notifications.LogEnabled,omitempty"` - NotificationsNewMessageBadgeCountEnabled *bool `json:"Notifications.NewMessage.BadgeCountEnabled,omitempty"` - NotificationsNewMessageEnabled *bool `json:"Notifications.NewMessage.Enabled,omitempty"` - NotificationsNewMessageSound *string `json:"Notifications.NewMessage.Sound,omitempty"` - NotificationsNewMessageTemplate *string `json:"Notifications.NewMessage.Template,omitempty"` - NotificationsRemovedFromChannelEnabled *bool `json:"Notifications.RemovedFromChannel.Enabled,omitempty"` - NotificationsRemovedFromChannelSound *string `json:"Notifications.RemovedFromChannel.Sound,omitempty"` - NotificationsRemovedFromChannelTemplate *string `json:"Notifications.RemovedFromChannel.Template,omitempty"` + LimitsChannelMembers *int32 `json:"LimitsChannelMembers,omitempty"` + LimitsUserChannels *int32 `json:"LimitsUserChannels,omitempty"` + MediaCompatibilityMessage *string `json:"MediaCompatibilityMessage,omitempty"` + NotificationsAddedToChannelEnabled *bool `json:"NotificationsAddedToChannelEnabled,omitempty"` + NotificationsAddedToChannelSound *string `json:"NotificationsAddedToChannelSound,omitempty"` + NotificationsAddedToChannelTemplate *string `json:"NotificationsAddedToChannelTemplate,omitempty"` + NotificationsInvitedToChannelEnabled *bool `json:"NotificationsInvitedToChannelEnabled,omitempty"` + NotificationsInvitedToChannelSound *string `json:"NotificationsInvitedToChannelSound,omitempty"` + NotificationsInvitedToChannelTemplate *string `json:"NotificationsInvitedToChannelTemplate,omitempty"` + NotificationsLogEnabled *bool `json:"NotificationsLogEnabled,omitempty"` + NotificationsNewMessageBadgeCountEnabled *bool `json:"NotificationsNewMessageBadgeCountEnabled,omitempty"` + NotificationsNewMessageEnabled *bool `json:"NotificationsNewMessageEnabled,omitempty"` + NotificationsNewMessageSound *string `json:"NotificationsNewMessageSound,omitempty"` + NotificationsNewMessageTemplate *string `json:"NotificationsNewMessageTemplate,omitempty"` + NotificationsRemovedFromChannelEnabled *bool `json:"NotificationsRemovedFromChannelEnabled,omitempty"` + NotificationsRemovedFromChannelSound *string `json:"NotificationsRemovedFromChannelSound,omitempty"` + NotificationsRemovedFromChannelTemplate *string `json:"NotificationsRemovedFromChannelTemplate,omitempty"` PostWebhookRetryCount *int32 `json:"PostWebhookRetryCount,omitempty"` PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"` PreWebhookRetryCount *int32 `json:"PreWebhookRetryCount,omitempty"` @@ -2271,23 +2271,23 @@ UpdateService Method for UpdateService * @param "DefaultChannelRoleSid" (string) - The channel role assigned to users when they are added to a channel. See the [Role resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info about roles. * @param "DefaultServiceRoleSid" (string) - The service role assigned to users when they are added to the service. See the [Role resource](https://www.twilio.com/docs/chat/rest/role-resource) for more info about roles. * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. - * @param "Limits.ChannelMembers" (int32) - The maximum number of Members that can be added to Channels within this Service. Can be up to 1,000. - * @param "Limits.UserChannels" (int32) - The maximum number of Channels Users can be a Member of within this Service. Can be up to 1,000. - * @param "Media.CompatibilityMessage" (string) - The message to send when a media message has no text. Can be used as placeholder message. - * @param "Notifications.AddedToChannel.Enabled" (bool) - Whether to send a notification when a member is added to a channel. The default is `false`. - * @param "Notifications.AddedToChannel.Sound" (string) - The name of the sound to play when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. - * @param "Notifications.AddedToChannel.Template" (string) - The template to use to create the notification text displayed when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. - * @param "Notifications.InvitedToChannel.Enabled" (bool) - Whether to send a notification when a user is invited to a channel. The default is `false`. - * @param "Notifications.InvitedToChannel.Sound" (string) - The name of the sound to play when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. - * @param "Notifications.InvitedToChannel.Template" (string) - The template to use to create the notification text displayed when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. - * @param "Notifications.LogEnabled" (bool) - Whether to log notifications. The default is `false`. - * @param "Notifications.NewMessage.BadgeCountEnabled" (bool) - Whether the new message badge is enabled. The default is `false`. - * @param "Notifications.NewMessage.Enabled" (bool) - Whether to send a notification when a new message is added to a channel. The default is `false`. - * @param "Notifications.NewMessage.Sound" (string) - The name of the sound to play when a new message is added to a channel and `notifications.new_message.enabled` is `true`. - * @param "Notifications.NewMessage.Template" (string) - The template to use to create the notification text displayed when a new message is added to a channel and `notifications.new_message.enabled` is `true`. - * @param "Notifications.RemovedFromChannel.Enabled" (bool) - Whether to send a notification to a user when they are removed from a channel. The default is `false`. - * @param "Notifications.RemovedFromChannel.Sound" (string) - The name of the sound to play to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. - * @param "Notifications.RemovedFromChannel.Template" (string) - The template to use to create the notification text displayed to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. + * @param "LimitsChannelMembers" (int32) - The maximum number of Members that can be added to Channels within this Service. Can be up to 1,000. + * @param "LimitsUserChannels" (int32) - The maximum number of Channels Users can be a Member of within this Service. Can be up to 1,000. + * @param "MediaCompatibilityMessage" (string) - The message to send when a media message has no text. Can be used as placeholder message. + * @param "NotificationsAddedToChannelEnabled" (bool) - Whether to send a notification when a member is added to a channel. The default is `false`. + * @param "NotificationsAddedToChannelSound" (string) - The name of the sound to play when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. + * @param "NotificationsAddedToChannelTemplate" (string) - The template to use to create the notification text displayed when a member is added to a channel and `notifications.added_to_channel.enabled` is `true`. + * @param "NotificationsInvitedToChannelEnabled" (bool) - Whether to send a notification when a user is invited to a channel. The default is `false`. + * @param "NotificationsInvitedToChannelSound" (string) - The name of the sound to play when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. + * @param "NotificationsInvitedToChannelTemplate" (string) - The template to use to create the notification text displayed when a user is invited to a channel and `notifications.invited_to_channel.enabled` is `true`. + * @param "NotificationsLogEnabled" (bool) - Whether to log notifications. The default is `false`. + * @param "NotificationsNewMessageBadgeCountEnabled" (bool) - Whether the new message badge is enabled. The default is `false`. + * @param "NotificationsNewMessageEnabled" (bool) - Whether to send a notification when a new message is added to a channel. The default is `false`. + * @param "NotificationsNewMessageSound" (string) - The name of the sound to play when a new message is added to a channel and `notifications.new_message.enabled` is `true`. + * @param "NotificationsNewMessageTemplate" (string) - The template to use to create the notification text displayed when a new message is added to a channel and `notifications.new_message.enabled` is `true`. + * @param "NotificationsRemovedFromChannelEnabled" (bool) - Whether to send a notification to a user when they are removed from a channel. The default is `false`. + * @param "NotificationsRemovedFromChannelSound" (string) - The name of the sound to play to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. + * @param "NotificationsRemovedFromChannelTemplate" (string) - The template to use to create the notification text displayed to a user when they are removed from a channel and `notifications.removed_from_channel.enabled` is `true`. * @param "PostWebhookRetryCount" (int32) - The number of times to retry a call to the `post_webhook_url` if the request times out (after 5 seconds) or it receives a 429, 503, or 504 HTTP response. The default is 0, which means the call won't be retried. * @param "PostWebhookUrl" (string) - The URL for post-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details. * @param "PreWebhookRetryCount" (int32) - The number of times to retry a call to the `pre_webhook_url` if the request times out (after 5 seconds) or it receives a 429, 503, or 504 HTTP response. Default retry count is 0 times, which means the call won't be retried. diff --git a/rest/conversations/v1/api_default.go b/rest/conversations/v1/api_default.go index 5ff5051f6..587f9b2c1 100644 --- a/rest/conversations/v1/api_default.go +++ b/rest/conversations/v1/api_default.go @@ -39,8 +39,8 @@ type CreateConversationParams struct { FriendlyName *string `json:"FriendlyName,omitempty"` MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` State *string `json:"State,omitempty"` - TimersClosed *string `json:"Timers.Closed,omitempty"` - TimersInactive *string `json:"Timers.Inactive,omitempty"` + TimersClosed *string `json:"TimersClosed,omitempty"` + TimersInactive *string `json:"TimersInactive,omitempty"` UniqueName *string `json:"UniqueName,omitempty"` } @@ -55,8 +55,8 @@ Create a new conversation in your account's default service * @param "FriendlyName" (string) - The human-readable name of this conversation, limited to 256 characters. Optional. * @param "MessagingServiceSid" (string) - The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. * @param "State" (string) - Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` - * @param "Timers.Closed" (string) - ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. - * @param "Timers.Inactive" (string) - ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. + * @param "TimersClosed" (string) - ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. + * @param "TimersInactive" (string) - ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. @return ConversationsV1Conversation */ @@ -190,9 +190,9 @@ type CreateConversationParticipantParams struct { DateCreated *time.Time `json:"DateCreated,omitempty"` DateUpdated *time.Time `json:"DateUpdated,omitempty"` Identity *string `json:"Identity,omitempty"` - MessagingBindingAddress *string `json:"MessagingBinding.Address,omitempty"` - MessagingBindingProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` - MessagingBindingProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` + MessagingBindingAddress *string `json:"MessagingBindingAddress,omitempty"` + MessagingBindingProjectedAddress *string `json:"MessagingBindingProjectedAddress,omitempty"` + MessagingBindingProxyAddress *string `json:"MessagingBindingProxyAddress,omitempty"` RoleSid *string `json:"RoleSid,omitempty"` } @@ -206,9 +206,9 @@ Add a new participant to the conversation * @param "DateCreated" (time.Time) - The date that this resource was created. * @param "DateUpdated" (time.Time) - The date that this resource was last updated. * @param "Identity" (string) - A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters. - * @param "MessagingBinding.Address" (string) - The address of the participant's device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). - * @param "MessagingBinding.ProjectedAddress" (string) - The address of the Twilio phone number that is used in Group MMS. Communication mask for the Conversation participant with Identity. - * @param "MessagingBinding.ProxyAddress" (string) - The address of the Twilio phone number (or WhatsApp number) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). + * @param "MessagingBindingAddress" (string) - The address of the participant's device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). + * @param "MessagingBindingProjectedAddress" (string) - The address of the Twilio phone number that is used in Group MMS. Communication mask for the Conversation participant with Identity. + * @param "MessagingBindingProxyAddress" (string) - The address of the Twilio phone number (or WhatsApp number) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). * @param "RoleSid" (string) - The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. @return ConversationsV1ConversationConversationParticipant */ @@ -265,12 +265,12 @@ func (c *DefaultApiService) CreateConversationParticipant(ConversationSid string } // CreateConversationScopedWebhookParams Optional parameters for the method 'CreateConversationScopedWebhook' type CreateConversationScopedWebhookParams struct { - ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` - ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` - ConfigurationMethod *string `json:"Configuration.Method,omitempty"` - ConfigurationReplayAfter *int32 `json:"Configuration.ReplayAfter,omitempty"` - ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` - ConfigurationUrl *string `json:"Configuration.Url,omitempty"` + ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` + ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` + ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` + ConfigurationReplayAfter *int32 `json:"ConfigurationReplayAfter,omitempty"` + ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` + ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` Target *string `json:"Target,omitempty"` } @@ -279,12 +279,12 @@ CreateConversationScopedWebhook Method for CreateConversationScopedWebhook Create a new webhook scoped to the conversation * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. * @param optional nil or *CreateConversationScopedWebhookOpts - Optional Parameters: - * @param "Configuration.Filters" ([]string) - The list of events, firing webhook event for this Conversation. - * @param "Configuration.FlowSid" (string) - The studio flow SID, where the webhook should be sent to. - * @param "Configuration.Method" (string) - The HTTP method to be used when sending a webhook request. - * @param "Configuration.ReplayAfter" (int32) - The message index for which and it's successors the webhook will be replayed. Not set by default - * @param "Configuration.Triggers" ([]string) - The list of keywords, firing webhook event for this Conversation. - * @param "Configuration.Url" (string) - The absolute url the webhook request should be sent to. + * @param "ConfigurationFilters" ([]string) - The list of events, firing webhook event for this Conversation. + * @param "ConfigurationFlowSid" (string) - The studio flow SID, where the webhook should be sent to. + * @param "ConfigurationMethod" (string) - The HTTP method to be used when sending a webhook request. + * @param "ConfigurationReplayAfter" (int32) - The message index for which and it's successors the webhook will be replayed. Not set by default + * @param "ConfigurationTriggers" ([]string) - The list of keywords, firing webhook event for this Conversation. + * @param "ConfigurationUrl" (string) - The absolute url the webhook request should be sent to. * @param "Target" (string) - The target of this webhook: `webhook`, `studio`, `trigger` @return ConversationsV1ConversationConversationScopedWebhook */ @@ -496,8 +496,8 @@ type CreateServiceConversationParams struct { FriendlyName *string `json:"FriendlyName,omitempty"` MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` State *string `json:"State,omitempty"` - TimersClosed *string `json:"Timers.Closed,omitempty"` - TimersInactive *string `json:"Timers.Inactive,omitempty"` + TimersClosed *string `json:"TimersClosed,omitempty"` + TimersInactive *string `json:"TimersInactive,omitempty"` UniqueName *string `json:"UniqueName,omitempty"` } @@ -513,8 +513,8 @@ Create a new conversation in your service * @param "FriendlyName" (string) - The human-readable name of this conversation, limited to 256 characters. Optional. * @param "MessagingServiceSid" (string) - The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. * @param "State" (string) - Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` - * @param "Timers.Closed" (string) - ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. - * @param "Timers.Inactive" (string) - ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. + * @param "TimersClosed" (string) - ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. + * @param "TimersInactive" (string) - ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. @return ConversationsV1ServiceServiceConversation */ @@ -651,9 +651,9 @@ type CreateServiceConversationParticipantParams struct { DateCreated *time.Time `json:"DateCreated,omitempty"` DateUpdated *time.Time `json:"DateUpdated,omitempty"` Identity *string `json:"Identity,omitempty"` - MessagingBindingAddress *string `json:"MessagingBinding.Address,omitempty"` - MessagingBindingProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` - MessagingBindingProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` + MessagingBindingAddress *string `json:"MessagingBindingAddress,omitempty"` + MessagingBindingProjectedAddress *string `json:"MessagingBindingProjectedAddress,omitempty"` + MessagingBindingProxyAddress *string `json:"MessagingBindingProxyAddress,omitempty"` RoleSid *string `json:"RoleSid,omitempty"` } @@ -668,9 +668,9 @@ Add a new participant to the conversation in a specific service * @param "DateCreated" (time.Time) - The date that this resource was created. * @param "DateUpdated" (time.Time) - The date that this resource was last updated. * @param "Identity" (string) - A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversation SDK to communicate. Limited to 256 characters. - * @param "MessagingBinding.Address" (string) - The address of the participant's device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). - * @param "MessagingBinding.ProjectedAddress" (string) - The address of the Twilio phone number that is used in Group MMS. Communication mask for the Conversation participant with Identity. - * @param "MessagingBinding.ProxyAddress" (string) - The address of the Twilio phone number (or WhatsApp number) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). + * @param "MessagingBindingAddress" (string) - The address of the participant's device, e.g. a phone or WhatsApp number. Together with the Proxy address, this determines a participant uniquely. This field (with proxy_address) is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). + * @param "MessagingBindingProjectedAddress" (string) - The address of the Twilio phone number that is used in Group MMS. Communication mask for the Conversation participant with Identity. + * @param "MessagingBindingProxyAddress" (string) - The address of the Twilio phone number (or WhatsApp number) that the participant is in contact with. This field, together with participant address, is only null when the participant is interacting from an SDK endpoint (see the 'identity' field). * @param "RoleSid" (string) - The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. @return ConversationsV1ServiceServiceConversationServiceConversationParticipant */ @@ -728,12 +728,12 @@ func (c *DefaultApiService) CreateServiceConversationParticipant(ChatServiceSid } // CreateServiceConversationScopedWebhookParams Optional parameters for the method 'CreateServiceConversationScopedWebhook' type CreateServiceConversationScopedWebhookParams struct { - ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` - ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` - ConfigurationMethod *string `json:"Configuration.Method,omitempty"` - ConfigurationReplayAfter *int32 `json:"Configuration.ReplayAfter,omitempty"` - ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` - ConfigurationUrl *string `json:"Configuration.Url,omitempty"` + ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` + ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` + ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` + ConfigurationReplayAfter *int32 `json:"ConfigurationReplayAfter,omitempty"` + ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` + ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` Target *string `json:"Target,omitempty"` } @@ -743,12 +743,12 @@ Create a new webhook scoped to the conversation in a specific service * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. * @param optional nil or *CreateServiceConversationScopedWebhookOpts - Optional Parameters: - * @param "Configuration.Filters" ([]string) - The list of events, firing webhook event for this Conversation. - * @param "Configuration.FlowSid" (string) - The studio flow SID, where the webhook should be sent to. - * @param "Configuration.Method" (string) - The HTTP method to be used when sending a webhook request. - * @param "Configuration.ReplayAfter" (int32) - The message index for which and it's successors the webhook will be replayed. Not set by default - * @param "Configuration.Triggers" ([]string) - The list of keywords, firing webhook event for this Conversation. - * @param "Configuration.Url" (string) - The absolute url the webhook request should be sent to. + * @param "ConfigurationFilters" ([]string) - The list of events, firing webhook event for this Conversation. + * @param "ConfigurationFlowSid" (string) - The studio flow SID, where the webhook should be sent to. + * @param "ConfigurationMethod" (string) - The HTTP method to be used when sending a webhook request. + * @param "ConfigurationReplayAfter" (int32) - The message index for which and it's successors the webhook will be replayed. Not set by default + * @param "ConfigurationTriggers" ([]string) - The list of keywords, firing webhook event for this Conversation. + * @param "ConfigurationUrl" (string) - The absolute url the webhook request should be sent to. * @param "Target" (string) - The target of this webhook: `webhook`, `studio`, `trigger` @return ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook */ @@ -2932,8 +2932,8 @@ type UpdateConversationParams struct { FriendlyName *string `json:"FriendlyName,omitempty"` MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` State *string `json:"State,omitempty"` - TimersClosed *string `json:"Timers.Closed,omitempty"` - TimersInactive *string `json:"Timers.Inactive,omitempty"` + TimersClosed *string `json:"TimersClosed,omitempty"` + TimersInactive *string `json:"TimersInactive,omitempty"` UniqueName *string `json:"UniqueName,omitempty"` } @@ -2949,8 +2949,8 @@ Update an existing conversation in your account's default service * @param "FriendlyName" (string) - The human-readable name of this conversation, limited to 256 characters. Optional. * @param "MessagingServiceSid" (string) - The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. * @param "State" (string) - Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` - * @param "Timers.Closed" (string) - ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. - * @param "Timers.Inactive" (string) - ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. + * @param "TimersClosed" (string) - ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. + * @param "TimersInactive" (string) - ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. @return ConversationsV1Conversation */ @@ -3084,8 +3084,8 @@ type UpdateConversationParticipantParams struct { Identity *string `json:"Identity,omitempty"` LastReadMessageIndex *int32 `json:"LastReadMessageIndex,omitempty"` LastReadTimestamp *string `json:"LastReadTimestamp,omitempty"` - MessagingBindingProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` - MessagingBindingProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` + MessagingBindingProjectedAddress *string `json:"MessagingBindingProjectedAddress,omitempty"` + MessagingBindingProxyAddress *string `json:"MessagingBindingProxyAddress,omitempty"` RoleSid *string `json:"RoleSid,omitempty"` } @@ -3102,8 +3102,8 @@ Update an existing participant in the conversation * @param "Identity" (string) - A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversations SDK to communicate. Limited to 256 characters. * @param "LastReadMessageIndex" (*int32) - Index of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. * @param "LastReadTimestamp" (string) - Timestamp of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. - * @param "MessagingBinding.ProjectedAddress" (string) - The address of the Twilio phone number that is used in Group MMS. 'null' value will remove it. - * @param "MessagingBinding.ProxyAddress" (string) - The address of the Twilio phone number that the participant is in contact with. 'null' value will remove it. + * @param "MessagingBindingProjectedAddress" (string) - The address of the Twilio phone number that is used in Group MMS. 'null' value will remove it. + * @param "MessagingBindingProxyAddress" (string) - The address of the Twilio phone number that the participant is in contact with. 'null' value will remove it. * @param "RoleSid" (string) - The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. @return ConversationsV1ConversationConversationParticipant */ @@ -3164,11 +3164,11 @@ func (c *DefaultApiService) UpdateConversationParticipant(ConversationSid string } // UpdateConversationScopedWebhookParams Optional parameters for the method 'UpdateConversationScopedWebhook' type UpdateConversationScopedWebhookParams struct { - ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` - ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` - ConfigurationMethod *string `json:"Configuration.Method,omitempty"` - ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` - ConfigurationUrl *string `json:"Configuration.Url,omitempty"` + ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` + ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` + ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` + ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` + ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` } /* @@ -3177,11 +3177,11 @@ Update an existing conversation-scoped webhook * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. * @param Sid A 34 character string that uniquely identifies this resource. * @param optional nil or *UpdateConversationScopedWebhookOpts - Optional Parameters: - * @param "Configuration.Filters" ([]string) - The list of events, firing webhook event for this Conversation. - * @param "Configuration.FlowSid" (string) - The studio flow SID, where the webhook should be sent to. - * @param "Configuration.Method" (string) - The HTTP method to be used when sending a webhook request. - * @param "Configuration.Triggers" ([]string) - The list of keywords, firing webhook event for this Conversation. - * @param "Configuration.Url" (string) - The absolute url the webhook request should be sent to. + * @param "ConfigurationFilters" ([]string) - The list of events, firing webhook event for this Conversation. + * @param "ConfigurationFlowSid" (string) - The studio flow SID, where the webhook should be sent to. + * @param "ConfigurationMethod" (string) - The HTTP method to be used when sending a webhook request. + * @param "ConfigurationTriggers" ([]string) - The list of keywords, firing webhook event for this Conversation. + * @param "ConfigurationUrl" (string) - The absolute url the webhook request should be sent to. @return ConversationsV1ConversationConversationScopedWebhook */ func (c *DefaultApiService) UpdateConversationScopedWebhook(ConversationSid string, Sid string, params *UpdateConversationScopedWebhookParams) (*ConversationsV1ConversationConversationScopedWebhook, error) { @@ -3398,8 +3398,8 @@ type UpdateServiceConversationParams struct { FriendlyName *string `json:"FriendlyName,omitempty"` MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` State *string `json:"State,omitempty"` - TimersClosed *string `json:"Timers.Closed,omitempty"` - TimersInactive *string `json:"Timers.Inactive,omitempty"` + TimersClosed *string `json:"TimersClosed,omitempty"` + TimersInactive *string `json:"TimersInactive,omitempty"` UniqueName *string `json:"UniqueName,omitempty"` } @@ -3416,8 +3416,8 @@ Update an existing conversation in your service * @param "FriendlyName" (string) - The human-readable name of this conversation, limited to 256 characters. Optional. * @param "MessagingServiceSid" (string) - The unique ID of the [Messaging Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs to. * @param "State" (string) - Current state of this conversation. Can be either `active`, `inactive` or `closed` and defaults to `active` - * @param "Timers.Closed" (string) - ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. - * @param "Timers.Inactive" (string) - ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. + * @param "TimersClosed" (string) - ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. + * @param "TimersInactive" (string) - ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. * @param "UniqueName" (string) - An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's `sid` in the URL. @return ConversationsV1ServiceServiceConversation */ @@ -3554,8 +3554,8 @@ type UpdateServiceConversationParticipantParams struct { Identity *string `json:"Identity,omitempty"` LastReadMessageIndex *int32 `json:"LastReadMessageIndex,omitempty"` LastReadTimestamp *string `json:"LastReadTimestamp,omitempty"` - MessagingBindingProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` - MessagingBindingProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` + MessagingBindingProjectedAddress *string `json:"MessagingBindingProjectedAddress,omitempty"` + MessagingBindingProxyAddress *string `json:"MessagingBindingProxyAddress,omitempty"` RoleSid *string `json:"RoleSid,omitempty"` } @@ -3573,8 +3573,8 @@ Update an existing participant in the conversation * @param "Identity" (string) - A unique string identifier for the conversation participant as [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource). This parameter is non-null if (and only if) the participant is using the Conversation SDK to communicate. Limited to 256 characters. * @param "LastReadMessageIndex" (*int32) - Index of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. * @param "LastReadTimestamp" (string) - Timestamp of last “read” message in the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for the Participant. - * @param "MessagingBinding.ProjectedAddress" (string) - The address of the Twilio phone number that is used in Group MMS. 'null' value will remove it. - * @param "MessagingBinding.ProxyAddress" (string) - The address of the Twilio phone number that the participant is in contact with. 'null' value will remove it. + * @param "MessagingBindingProjectedAddress" (string) - The address of the Twilio phone number that is used in Group MMS. 'null' value will remove it. + * @param "MessagingBindingProxyAddress" (string) - The address of the Twilio phone number that the participant is in contact with. 'null' value will remove it. * @param "RoleSid" (string) - The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant. @return ConversationsV1ServiceServiceConversationServiceConversationParticipant */ @@ -3636,11 +3636,11 @@ func (c *DefaultApiService) UpdateServiceConversationParticipant(ChatServiceSid } // UpdateServiceConversationScopedWebhookParams Optional parameters for the method 'UpdateServiceConversationScopedWebhook' type UpdateServiceConversationScopedWebhookParams struct { - ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` - ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` - ConfigurationMethod *string `json:"Configuration.Method,omitempty"` - ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` - ConfigurationUrl *string `json:"Configuration.Url,omitempty"` + ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` + ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` + ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` + ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` + ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` } /* @@ -3650,11 +3650,11 @@ Update an existing conversation-scoped webhook * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. * @param Sid A 34 character string that uniquely identifies this resource. * @param optional nil or *UpdateServiceConversationScopedWebhookOpts - Optional Parameters: - * @param "Configuration.Filters" ([]string) - The list of events, firing webhook event for this Conversation. - * @param "Configuration.FlowSid" (string) - The studio flow SID, where the webhook should be sent to. - * @param "Configuration.Method" (string) - The HTTP method to be used when sending a webhook request. - * @param "Configuration.Triggers" ([]string) - The list of keywords, firing webhook event for this Conversation. - * @param "Configuration.Url" (string) - The absolute url the webhook request should be sent to. + * @param "ConfigurationFilters" ([]string) - The list of events, firing webhook event for this Conversation. + * @param "ConfigurationFlowSid" (string) - The studio flow SID, where the webhook should be sent to. + * @param "ConfigurationMethod" (string) - The HTTP method to be used when sending a webhook request. + * @param "ConfigurationTriggers" ([]string) - The list of keywords, firing webhook event for this Conversation. + * @param "ConfigurationUrl" (string) - The absolute url the webhook request should be sent to. @return ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook */ func (c *DefaultApiService) UpdateServiceConversationScopedWebhook(ChatServiceSid string, ConversationSid string, Sid string, params *UpdateServiceConversationScopedWebhookParams) (*ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook, error) { @@ -3700,17 +3700,17 @@ func (c *DefaultApiService) UpdateServiceConversationScopedWebhook(ChatServiceSi } // UpdateServiceNotificationParams Optional parameters for the method 'UpdateServiceNotification' type UpdateServiceNotificationParams struct { - AddedToConversationEnabled *bool `json:"AddedToConversation.Enabled,omitempty"` - AddedToConversationSound *string `json:"AddedToConversation.Sound,omitempty"` - AddedToConversationTemplate *string `json:"AddedToConversation.Template,omitempty"` + AddedToConversationEnabled *bool `json:"AddedToConversationEnabled,omitempty"` + AddedToConversationSound *string `json:"AddedToConversationSound,omitempty"` + AddedToConversationTemplate *string `json:"AddedToConversationTemplate,omitempty"` LogEnabled *bool `json:"LogEnabled,omitempty"` - NewMessageBadgeCountEnabled *bool `json:"NewMessage.BadgeCountEnabled,omitempty"` - NewMessageEnabled *bool `json:"NewMessage.Enabled,omitempty"` - NewMessageSound *string `json:"NewMessage.Sound,omitempty"` - NewMessageTemplate *string `json:"NewMessage.Template,omitempty"` - RemovedFromConversationEnabled *bool `json:"RemovedFromConversation.Enabled,omitempty"` - RemovedFromConversationSound *string `json:"RemovedFromConversation.Sound,omitempty"` - RemovedFromConversationTemplate *string `json:"RemovedFromConversation.Template,omitempty"` + NewMessageBadgeCountEnabled *bool `json:"NewMessageBadgeCountEnabled,omitempty"` + NewMessageEnabled *bool `json:"NewMessageEnabled,omitempty"` + NewMessageSound *string `json:"NewMessageSound,omitempty"` + NewMessageTemplate *string `json:"NewMessageTemplate,omitempty"` + RemovedFromConversationEnabled *bool `json:"RemovedFromConversationEnabled,omitempty"` + RemovedFromConversationSound *string `json:"RemovedFromConversationSound,omitempty"` + RemovedFromConversationTemplate *string `json:"RemovedFromConversationTemplate,omitempty"` } /* @@ -3718,17 +3718,17 @@ UpdateServiceNotification Method for UpdateServiceNotification Update push notification service settings * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Configuration applies to. * @param optional nil or *UpdateServiceNotificationOpts - Optional Parameters: - * @param "AddedToConversation.Enabled" (bool) - Whether to send a notification when a participant is added to a conversation. The default is `false`. - * @param "AddedToConversation.Sound" (string) - The name of the sound to play when a participant is added to a conversation and `added_to_conversation.enabled` is `true`. - * @param "AddedToConversation.Template" (string) - The template to use to create the notification text displayed when a participant is added to a conversation and `added_to_conversation.enabled` is `true`. + * @param "AddedToConversationEnabled" (bool) - Whether to send a notification when a participant is added to a conversation. The default is `false`. + * @param "AddedToConversationSound" (string) - The name of the sound to play when a participant is added to a conversation and `added_to_conversation.enabled` is `true`. + * @param "AddedToConversationTemplate" (string) - The template to use to create the notification text displayed when a participant is added to a conversation and `added_to_conversation.enabled` is `true`. * @param "LogEnabled" (bool) - Weather the notification logging is enabled. - * @param "NewMessage.BadgeCountEnabled" (bool) - Whether the new message badge is enabled. The default is `false`. - * @param "NewMessage.Enabled" (bool) - Whether to send a notification when a new message is added to a conversation. The default is `false`. - * @param "NewMessage.Sound" (string) - The name of the sound to play when a new message is added to a conversation and `new_message.enabled` is `true`. - * @param "NewMessage.Template" (string) - The template to use to create the notification text displayed when a new message is added to a conversation and `new_message.enabled` is `true`. - * @param "RemovedFromConversation.Enabled" (bool) - Whether to send a notification to a user when they are removed from a conversation. The default is `false`. - * @param "RemovedFromConversation.Sound" (string) - The name of the sound to play to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`. - * @param "RemovedFromConversation.Template" (string) - The template to use to create the notification text displayed to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`. + * @param "NewMessageBadgeCountEnabled" (bool) - Whether the new message badge is enabled. The default is `false`. + * @param "NewMessageEnabled" (bool) - Whether to send a notification when a new message is added to a conversation. The default is `false`. + * @param "NewMessageSound" (string) - The name of the sound to play when a new message is added to a conversation and `new_message.enabled` is `true`. + * @param "NewMessageTemplate" (string) - The template to use to create the notification text displayed when a new message is added to a conversation and `new_message.enabled` is `true`. + * @param "RemovedFromConversationEnabled" (bool) - Whether to send a notification to a user when they are removed from a conversation. The default is `false`. + * @param "RemovedFromConversationSound" (string) - The name of the sound to play to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`. + * @param "RemovedFromConversationTemplate" (string) - The template to use to create the notification text displayed to a user when they are removed from a conversation and `removed_from_conversation.enabled` is `true`. @return ConversationsV1ServiceServiceConfigurationServiceNotification */ func (c *DefaultApiService) UpdateServiceNotification(ChatServiceSid string, params *UpdateServiceNotificationParams) (*ConversationsV1ServiceServiceConfigurationServiceNotification, error) { diff --git a/rest/flex/v1/api_default.go b/rest/flex/v1/api_default.go index d94a2a4c7..b05b21bfa 100644 --- a/rest/flex/v1/api_default.go +++ b/rest/flex/v1/api_default.go @@ -118,15 +118,15 @@ type CreateFlexFlowParams struct { ContactIdentity *string `json:"ContactIdentity,omitempty"` Enabled *bool `json:"Enabled,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` - IntegrationChannel *string `json:"Integration.Channel,omitempty"` - IntegrationCreationOnMessage *bool `json:"Integration.CreationOnMessage,omitempty"` - IntegrationFlowSid *string `json:"Integration.FlowSid,omitempty"` - IntegrationPriority *int32 `json:"Integration.Priority,omitempty"` - IntegrationRetryCount *int32 `json:"Integration.RetryCount,omitempty"` - IntegrationTimeout *int32 `json:"Integration.Timeout,omitempty"` - IntegrationUrl *string `json:"Integration.Url,omitempty"` - IntegrationWorkflowSid *string `json:"Integration.WorkflowSid,omitempty"` - IntegrationWorkspaceSid *string `json:"Integration.WorkspaceSid,omitempty"` + IntegrationChannel *string `json:"IntegrationChannel,omitempty"` + IntegrationCreationOnMessage *bool `json:"IntegrationCreationOnMessage,omitempty"` + IntegrationFlowSid *string `json:"IntegrationFlowSid,omitempty"` + IntegrationPriority *int32 `json:"IntegrationPriority,omitempty"` + IntegrationRetryCount *int32 `json:"IntegrationRetryCount,omitempty"` + IntegrationTimeout *int32 `json:"IntegrationTimeout,omitempty"` + IntegrationUrl *string `json:"IntegrationUrl,omitempty"` + IntegrationWorkflowSid *string `json:"IntegrationWorkflowSid,omitempty"` + IntegrationWorkspaceSid *string `json:"IntegrationWorkspaceSid,omitempty"` IntegrationType *string `json:"IntegrationType,omitempty"` JanitorEnabled *bool `json:"JanitorEnabled,omitempty"` LongLived *bool `json:"LongLived,omitempty"` @@ -140,15 +140,15 @@ CreateFlexFlow Method for CreateFlexFlow * @param "ContactIdentity" (string) - The channel contact's Identity. * @param "Enabled" (bool) - Whether the new Flex Flow is enabled. * @param "FriendlyName" (string) - A descriptive string that you create to describe the Flex Flow resource. - * @param "Integration.Channel" (string) - The Task Channel for the TaskRouter Task that will be created. Applicable and required when integrationType is `task`. Set to `sms` for SMS, and to `chat` otherwise. The default value is `default` - * @param "Integration.CreationOnMessage" (bool) - In the context of outbound messaging, defines whether to create a Task immediately (and therefore reserve the conversation to current agent), or delay Task creation until the customer sends the first response. Set to false to create immediately, true to delay Task creation. This setting is only applicable for outbound messaging. - * @param "Integration.FlowSid" (string) - The SID of the Studio Flow. Required when `integrationType` is `studio`. - * @param "Integration.Priority" (int32) - The Task priority of a new Task. The default priority is 0. Optional when `integrationType` is `task`, not applicable otherwise. - * @param "Integration.RetryCount" (int32) - The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3 (included), default is 0. Optional when integrationType is `external`, not applicable otherwise. - * @param "Integration.Timeout" (int32) - The Task timeout in seconds for a new Task. Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`, not applicable otherwise. - * @param "Integration.Url" (string) - The URL of the external webhook. Required when `integrationType` is `external`. - * @param "Integration.WorkflowSid" (string) - The Workflow SID for a new Task. Required when `integrationType` is `task`. - * @param "Integration.WorkspaceSid" (string) - The Workspace SID for a new Task. Required when `integrationType` is `task`. + * @param "IntegrationChannel" (string) - The Task Channel for the TaskRouter Task that will be created. Applicable and required when integrationType is `task`. Set to `sms` for SMS, and to `chat` otherwise. The default value is `default` + * @param "IntegrationCreationOnMessage" (bool) - In the context of outbound messaging, defines whether to create a Task immediately (and therefore reserve the conversation to current agent), or delay Task creation until the customer sends the first response. Set to false to create immediately, true to delay Task creation. This setting is only applicable for outbound messaging. + * @param "IntegrationFlowSid" (string) - The SID of the Studio Flow. Required when `integrationType` is `studio`. + * @param "IntegrationPriority" (int32) - The Task priority of a new Task. The default priority is 0. Optional when `integrationType` is `task`, not applicable otherwise. + * @param "IntegrationRetryCount" (int32) - The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3 (included), default is 0. Optional when integrationType is `external`, not applicable otherwise. + * @param "IntegrationTimeout" (int32) - The Task timeout in seconds for a new Task. Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`, not applicable otherwise. + * @param "IntegrationUrl" (string) - The URL of the external webhook. Required when `integrationType` is `external`. + * @param "IntegrationWorkflowSid" (string) - The Workflow SID for a new Task. Required when `integrationType` is `task`. + * @param "IntegrationWorkspaceSid" (string) - The Workspace SID for a new Task. Required when `integrationType` is `task`. * @param "IntegrationType" (string) - The integration type. Can be: `studio`, `external`, or `task`. * @param "JanitorEnabled" (bool) - When enabled, the Messaging Channel Janitor will remove active Proxy sessions if the associated Task is deleted outside of the Flex UI. Defaults to `false`. * @param "LongLived" (bool) - When enabled, Flex will keep the chat channel active so that it may be used for subsequent interactions with a contact identity. Defaults to `false`. @@ -640,15 +640,15 @@ type UpdateFlexFlowParams struct { ContactIdentity *string `json:"ContactIdentity,omitempty"` Enabled *bool `json:"Enabled,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` - IntegrationChannel *string `json:"Integration.Channel,omitempty"` - IntegrationCreationOnMessage *bool `json:"Integration.CreationOnMessage,omitempty"` - IntegrationFlowSid *string `json:"Integration.FlowSid,omitempty"` - IntegrationPriority *int32 `json:"Integration.Priority,omitempty"` - IntegrationRetryCount *int32 `json:"Integration.RetryCount,omitempty"` - IntegrationTimeout *int32 `json:"Integration.Timeout,omitempty"` - IntegrationUrl *string `json:"Integration.Url,omitempty"` - IntegrationWorkflowSid *string `json:"Integration.WorkflowSid,omitempty"` - IntegrationWorkspaceSid *string `json:"Integration.WorkspaceSid,omitempty"` + IntegrationChannel *string `json:"IntegrationChannel,omitempty"` + IntegrationCreationOnMessage *bool `json:"IntegrationCreationOnMessage,omitempty"` + IntegrationFlowSid *string `json:"IntegrationFlowSid,omitempty"` + IntegrationPriority *int32 `json:"IntegrationPriority,omitempty"` + IntegrationRetryCount *int32 `json:"IntegrationRetryCount,omitempty"` + IntegrationTimeout *int32 `json:"IntegrationTimeout,omitempty"` + IntegrationUrl *string `json:"IntegrationUrl,omitempty"` + IntegrationWorkflowSid *string `json:"IntegrationWorkflowSid,omitempty"` + IntegrationWorkspaceSid *string `json:"IntegrationWorkspaceSid,omitempty"` IntegrationType *string `json:"IntegrationType,omitempty"` JanitorEnabled *bool `json:"JanitorEnabled,omitempty"` LongLived *bool `json:"LongLived,omitempty"` @@ -663,15 +663,15 @@ UpdateFlexFlow Method for UpdateFlexFlow * @param "ContactIdentity" (string) - The channel contact's Identity. * @param "Enabled" (bool) - Whether the new Flex Flow is enabled. * @param "FriendlyName" (string) - A descriptive string that you create to describe the Flex Flow resource. - * @param "Integration.Channel" (string) - The Task Channel for the TaskRouter Task that will be created. Applicable and required when integrationType is `task`. Set to `sms` for SMS, and to `chat` otherwise. The default value is `default` - * @param "Integration.CreationOnMessage" (bool) - In the context of outbound messaging, defines whether to create a Task immediately (and therefore reserve the conversation to current agent), or delay Task creation until the customer sends the first response. Set to false to create immediately, true to delay Task creation. This setting is only applicable for outbound messaging. - * @param "Integration.FlowSid" (string) - The SID of the Studio Flow. Required when `integrationType` is `studio`. - * @param "Integration.Priority" (int32) - The Task priority of a new Task. The default priority is 0. Optional when `integrationType` is `task`, not applicable otherwise. - * @param "Integration.RetryCount" (int32) - The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3 (included), default is 0. Optional when integrationType is `external`, not applicable otherwise. - * @param "Integration.Timeout" (int32) - The Task timeout in seconds for a new Task. Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`, not applicable otherwise. - * @param "Integration.Url" (string) - The URL of the external webhook. Required when `integrationType` is `external`. - * @param "Integration.WorkflowSid" (string) - The Workflow SID for a new Task. Required when `integrationType` is `task`. - * @param "Integration.WorkspaceSid" (string) - The Workspace SID for a new Task. Required when `integrationType` is `task`. + * @param "IntegrationChannel" (string) - The Task Channel for the TaskRouter Task that will be created. Applicable and required when integrationType is `task`. Set to `sms` for SMS, and to `chat` otherwise. The default value is `default` + * @param "IntegrationCreationOnMessage" (bool) - In the context of outbound messaging, defines whether to create a Task immediately (and therefore reserve the conversation to current agent), or delay Task creation until the customer sends the first response. Set to false to create immediately, true to delay Task creation. This setting is only applicable for outbound messaging. + * @param "IntegrationFlowSid" (string) - The SID of the Studio Flow. Required when `integrationType` is `studio`. + * @param "IntegrationPriority" (int32) - The Task priority of a new Task. The default priority is 0. Optional when `integrationType` is `task`, not applicable otherwise. + * @param "IntegrationRetryCount" (int32) - The number of times to retry the webhook if the first attempt fails. Can be an integer between 0 and 3 (included), default is 0. Optional when integrationType is `external`, not applicable otherwise. + * @param "IntegrationTimeout" (int32) - The Task timeout in seconds for a new Task. Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`, not applicable otherwise. + * @param "IntegrationUrl" (string) - The URL of the external webhook. Required when `integrationType` is `external`. + * @param "IntegrationWorkflowSid" (string) - The Workflow SID for a new Task. Required when `integrationType` is `task`. + * @param "IntegrationWorkspaceSid" (string) - The Workspace SID for a new Task. Required when `integrationType` is `task`. * @param "IntegrationType" (string) - The integration type. Can be: `studio`, `external`, or `task`. * @param "JanitorEnabled" (bool) - When enabled, the Messaging Channel Janitor will remove active Proxy sessions if the associated Task is deleted outside of the Flex UI. Defaults to `false`. * @param "LongLived" (bool) - When enabled, Flex will keep the chat channel active so that it may be used for subsequent interactions with a contact identity. Defaults to `false`. diff --git a/rest/ip/messaging/api_default.go b/rest/ip/messaging/api_default.go index b44715445..005dd9aa9 100644 --- a/rest/ip/messaging/api_default.go +++ b/rest/ip/messaging/api_default.go @@ -106,12 +106,12 @@ func (c *DefaultApiService) CreateChannel(ServiceSid string, params *CreateChann } // CreateChannelWebhookParams Optional parameters for the method 'CreateChannelWebhook' type CreateChannelWebhookParams struct { - ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` - ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` - ConfigurationMethod *string `json:"Configuration.Method,omitempty"` - ConfigurationRetryCount *int32 `json:"Configuration.RetryCount,omitempty"` - ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` - ConfigurationUrl *string `json:"Configuration.Url,omitempty"` + ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` + ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` + ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` + ConfigurationRetryCount *int32 `json:"ConfigurationRetryCount,omitempty"` + ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` + ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` Type *string `json:"Type,omitempty"` } @@ -120,12 +120,12 @@ CreateChannelWebhook Method for CreateChannelWebhook * @param ServiceSid * @param ChannelSid * @param optional nil or *CreateChannelWebhookOpts - Optional Parameters: - * @param "Configuration.Filters" ([]string) - - * @param "Configuration.FlowSid" (string) - - * @param "Configuration.Method" (string) - - * @param "Configuration.RetryCount" (int32) - - * @param "Configuration.Triggers" ([]string) - - * @param "Configuration.Url" (string) - + * @param "ConfigurationFilters" ([]string) - + * @param "ConfigurationFlowSid" (string) - + * @param "ConfigurationMethod" (string) - + * @param "ConfigurationRetryCount" (int32) - + * @param "ConfigurationTriggers" ([]string) - + * @param "ConfigurationUrl" (string) - * @param "Type" (string) - @return IpMessagingV2ServiceChannelChannelWebhook */ @@ -1908,12 +1908,12 @@ func (c *DefaultApiService) UpdateChannel(ServiceSid string, Sid string, params } // UpdateChannelWebhookParams Optional parameters for the method 'UpdateChannelWebhook' type UpdateChannelWebhookParams struct { - ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` - ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` - ConfigurationMethod *string `json:"Configuration.Method,omitempty"` - ConfigurationRetryCount *int32 `json:"Configuration.RetryCount,omitempty"` - ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` - ConfigurationUrl *string `json:"Configuration.Url,omitempty"` + ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` + ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` + ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` + ConfigurationRetryCount *int32 `json:"ConfigurationRetryCount,omitempty"` + ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` + ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` } /* @@ -1922,12 +1922,12 @@ UpdateChannelWebhook Method for UpdateChannelWebhook * @param ChannelSid * @param Sid * @param optional nil or *UpdateChannelWebhookOpts - Optional Parameters: - * @param "Configuration.Filters" ([]string) - - * @param "Configuration.FlowSid" (string) - - * @param "Configuration.Method" (string) - - * @param "Configuration.RetryCount" (int32) - - * @param "Configuration.Triggers" ([]string) - - * @param "Configuration.Url" (string) - + * @param "ConfigurationFilters" ([]string) - + * @param "ConfigurationFlowSid" (string) - + * @param "ConfigurationMethod" (string) - + * @param "ConfigurationRetryCount" (int32) - + * @param "ConfigurationTriggers" ([]string) - + * @param "ConfigurationUrl" (string) - @return IpMessagingV2ServiceChannelChannelWebhook */ func (c *DefaultApiService) UpdateChannelWebhook(ServiceSid string, ChannelSid string, Sid string, params *UpdateChannelWebhookParams) (*IpMessagingV2ServiceChannelChannelWebhook, error) { @@ -2232,23 +2232,23 @@ type UpdateServiceParams struct { DefaultChannelRoleSid *string `json:"DefaultChannelRoleSid,omitempty"` DefaultServiceRoleSid *string `json:"DefaultServiceRoleSid,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` - LimitsChannelMembers *int32 `json:"Limits.ChannelMembers,omitempty"` - LimitsUserChannels *int32 `json:"Limits.UserChannels,omitempty"` - MediaCompatibilityMessage *string `json:"Media.CompatibilityMessage,omitempty"` - NotificationsAddedToChannelEnabled *bool `json:"Notifications.AddedToChannel.Enabled,omitempty"` - NotificationsAddedToChannelSound *string `json:"Notifications.AddedToChannel.Sound,omitempty"` - NotificationsAddedToChannelTemplate *string `json:"Notifications.AddedToChannel.Template,omitempty"` - NotificationsInvitedToChannelEnabled *bool `json:"Notifications.InvitedToChannel.Enabled,omitempty"` - NotificationsInvitedToChannelSound *string `json:"Notifications.InvitedToChannel.Sound,omitempty"` - NotificationsInvitedToChannelTemplate *string `json:"Notifications.InvitedToChannel.Template,omitempty"` - NotificationsLogEnabled *bool `json:"Notifications.LogEnabled,omitempty"` - NotificationsNewMessageBadgeCountEnabled *bool `json:"Notifications.NewMessage.BadgeCountEnabled,omitempty"` - NotificationsNewMessageEnabled *bool `json:"Notifications.NewMessage.Enabled,omitempty"` - NotificationsNewMessageSound *string `json:"Notifications.NewMessage.Sound,omitempty"` - NotificationsNewMessageTemplate *string `json:"Notifications.NewMessage.Template,omitempty"` - NotificationsRemovedFromChannelEnabled *bool `json:"Notifications.RemovedFromChannel.Enabled,omitempty"` - NotificationsRemovedFromChannelSound *string `json:"Notifications.RemovedFromChannel.Sound,omitempty"` - NotificationsRemovedFromChannelTemplate *string `json:"Notifications.RemovedFromChannel.Template,omitempty"` + LimitsChannelMembers *int32 `json:"LimitsChannelMembers,omitempty"` + LimitsUserChannels *int32 `json:"LimitsUserChannels,omitempty"` + MediaCompatibilityMessage *string `json:"MediaCompatibilityMessage,omitempty"` + NotificationsAddedToChannelEnabled *bool `json:"NotificationsAddedToChannelEnabled,omitempty"` + NotificationsAddedToChannelSound *string `json:"NotificationsAddedToChannelSound,omitempty"` + NotificationsAddedToChannelTemplate *string `json:"NotificationsAddedToChannelTemplate,omitempty"` + NotificationsInvitedToChannelEnabled *bool `json:"NotificationsInvitedToChannelEnabled,omitempty"` + NotificationsInvitedToChannelSound *string `json:"NotificationsInvitedToChannelSound,omitempty"` + NotificationsInvitedToChannelTemplate *string `json:"NotificationsInvitedToChannelTemplate,omitempty"` + NotificationsLogEnabled *bool `json:"NotificationsLogEnabled,omitempty"` + NotificationsNewMessageBadgeCountEnabled *bool `json:"NotificationsNewMessageBadgeCountEnabled,omitempty"` + NotificationsNewMessageEnabled *bool `json:"NotificationsNewMessageEnabled,omitempty"` + NotificationsNewMessageSound *string `json:"NotificationsNewMessageSound,omitempty"` + NotificationsNewMessageTemplate *string `json:"NotificationsNewMessageTemplate,omitempty"` + NotificationsRemovedFromChannelEnabled *bool `json:"NotificationsRemovedFromChannelEnabled,omitempty"` + NotificationsRemovedFromChannelSound *string `json:"NotificationsRemovedFromChannelSound,omitempty"` + NotificationsRemovedFromChannelTemplate *string `json:"NotificationsRemovedFromChannelTemplate,omitempty"` PostWebhookRetryCount *int32 `json:"PostWebhookRetryCount,omitempty"` PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"` PreWebhookRetryCount *int32 `json:"PreWebhookRetryCount,omitempty"` @@ -2269,23 +2269,23 @@ UpdateService Method for UpdateService * @param "DefaultChannelRoleSid" (string) - * @param "DefaultServiceRoleSid" (string) - * @param "FriendlyName" (string) - - * @param "Limits.ChannelMembers" (int32) - - * @param "Limits.UserChannels" (int32) - - * @param "Media.CompatibilityMessage" (string) - - * @param "Notifications.AddedToChannel.Enabled" (bool) - - * @param "Notifications.AddedToChannel.Sound" (string) - - * @param "Notifications.AddedToChannel.Template" (string) - - * @param "Notifications.InvitedToChannel.Enabled" (bool) - - * @param "Notifications.InvitedToChannel.Sound" (string) - - * @param "Notifications.InvitedToChannel.Template" (string) - - * @param "Notifications.LogEnabled" (bool) - - * @param "Notifications.NewMessage.BadgeCountEnabled" (bool) - - * @param "Notifications.NewMessage.Enabled" (bool) - - * @param "Notifications.NewMessage.Sound" (string) - - * @param "Notifications.NewMessage.Template" (string) - - * @param "Notifications.RemovedFromChannel.Enabled" (bool) - - * @param "Notifications.RemovedFromChannel.Sound" (string) - - * @param "Notifications.RemovedFromChannel.Template" (string) - + * @param "LimitsChannelMembers" (int32) - + * @param "LimitsUserChannels" (int32) - + * @param "MediaCompatibilityMessage" (string) - + * @param "NotificationsAddedToChannelEnabled" (bool) - + * @param "NotificationsAddedToChannelSound" (string) - + * @param "NotificationsAddedToChannelTemplate" (string) - + * @param "NotificationsInvitedToChannelEnabled" (bool) - + * @param "NotificationsInvitedToChannelSound" (string) - + * @param "NotificationsInvitedToChannelTemplate" (string) - + * @param "NotificationsLogEnabled" (bool) - + * @param "NotificationsNewMessageBadgeCountEnabled" (bool) - + * @param "NotificationsNewMessageEnabled" (bool) - + * @param "NotificationsNewMessageSound" (string) - + * @param "NotificationsNewMessageTemplate" (string) - + * @param "NotificationsRemovedFromChannelEnabled" (bool) - + * @param "NotificationsRemovedFromChannelSound" (string) - + * @param "NotificationsRemovedFromChannelTemplate" (string) - * @param "PostWebhookRetryCount" (int32) - * @param "PostWebhookUrl" (string) - * @param "PreWebhookRetryCount" (int32) - diff --git a/rest/verify/v2/api_default.go b/rest/verify/v2/api_default.go index 1c3b80e8c..0a49d0e9b 100644 --- a/rest/verify/v2/api_default.go +++ b/rest/verify/v2/api_default.go @@ -124,8 +124,8 @@ func (c *DefaultApiService) CreateBucket(ServiceSid string, RateLimitSid string, } // CreateChallengeParams Optional parameters for the method 'CreateChallenge' type CreateChallengeParams struct { - DetailsFields *[]map[string]interface{} `json:"Details.Fields,omitempty"` - DetailsMessage *string `json:"Details.Message,omitempty"` + DetailsFields *[]map[string]interface{} `json:"DetailsFields,omitempty"` + DetailsMessage *string `json:"DetailsMessage,omitempty"` ExpirationDate *time.Time `json:"ExpirationDate,omitempty"` FactorSid *string `json:"FactorSid,omitempty"` HiddenDetails *map[string]interface{} `json:"HiddenDetails,omitempty"` @@ -137,8 +137,8 @@ Create a new Challenge for the Factor * @param ServiceSid The unique SID identifier of the Service. * @param Identity The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, and generated by your external system, such as your user's UUID, GUID, or SID. * @param optional nil or *CreateChallengeOpts - Optional Parameters: - * @param "Details.Fields" ([]map[string]interface{}) - A list of objects that describe the Fields included in the Challenge. Each object contains the label and value of the field. Used when `factor_type` is `push`. - * @param "Details.Message" (string) - Shown to the user when the push notification arrives. Required when `factor_type` is `push` + * @param "DetailsFields" ([]map[string]interface{}) - A list of objects that describe the Fields included in the Challenge. Each object contains the label and value of the field. Used when `factor_type` is `push`. + * @param "DetailsMessage" (string) - Shown to the user when the push notification arrives. Required when `factor_type` is `push` * @param "ExpirationDate" (time.Time) - The date-time when this Challenge expires, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. The default value is five (5) minutes after Challenge creation. The max value is sixty (60) minutes after creation. * @param "FactorSid" (string) - The unique SID identifier of the Factor. * @param "HiddenDetails" (map[string]interface{}) - Details provided to give context about the Challenge. Not shown to the end user. It must be a stringified JSON with only strings values eg. `{\\\"ip\\\": \\\"172.168.1.234\\\"}` @@ -160,7 +160,7 @@ func (c *DefaultApiService) CreateChallenge(ServiceSid string, Identity string, return nil, err } - data.Set("Details.Fields", fmt.Sprint(v)) + data.Set("DetailsFields", fmt.Sprint(v)) } if params != nil && params.DetailsMessage != nil { data.Set("DetailsMessage", *params.DetailsMessage) @@ -238,12 +238,12 @@ func (c *DefaultApiService) CreateEntity(ServiceSid string, params *CreateEntity } // CreateFactorParams Optional parameters for the method 'CreateFactor' type CreateFactorParams struct { - BindingAlg *string `json:"Binding.Alg,omitempty"` - BindingPublicKey *string `json:"Binding.PublicKey,omitempty"` - ConfigAppId *string `json:"Config.AppId,omitempty"` - ConfigNotificationPlatform *string `json:"Config.NotificationPlatform,omitempty"` - ConfigNotificationToken *string `json:"Config.NotificationToken,omitempty"` - ConfigSdkVersion *string `json:"Config.SdkVersion,omitempty"` + BindingAlg *string `json:"BindingAlg,omitempty"` + BindingPublicKey *string `json:"BindingPublicKey,omitempty"` + ConfigAppId *string `json:"ConfigAppId,omitempty"` + ConfigNotificationPlatform *string `json:"ConfigNotificationPlatform,omitempty"` + ConfigNotificationToken *string `json:"ConfigNotificationToken,omitempty"` + ConfigSdkVersion *string `json:"ConfigSdkVersion,omitempty"` FactorType *string `json:"FactorType,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` } @@ -254,12 +254,12 @@ Create a new Factor for the Entity * @param ServiceSid The unique SID identifier of the Service. * @param Identity Customer unique identity for the Entity owner of the Factor * @param optional nil or *CreateFactorOpts - Optional Parameters: - * @param "Binding.Alg" (string) - The algorithm used when `factor_type` is `push`. Algorithm supported: `ES256` - * @param "Binding.PublicKey" (string) - The Ecdsa public key in PKIX, ASN.1 DER format encoded in Base64 - * @param "Config.AppId" (string) - The ID that uniquely identifies your app in the Google or Apple store, such as `com.example.myapp`. Required when `factor_type` is `push` - * @param "Config.NotificationPlatform" (string) - The transport technology used to generate the Notification Token. Can be `apn` or `fcm`. Required when `factor_type` is `push` - * @param "Config.NotificationToken" (string) - For APN, the device token. For FCM the registration token. It used to send the push notifications. Required when `factor_type` is `push` - * @param "Config.SdkVersion" (string) - The Verify Push SDK version used to configure the factor + * @param "BindingAlg" (string) - The algorithm used when `factor_type` is `push`. Algorithm supported: `ES256` + * @param "BindingPublicKey" (string) - The Ecdsa public key in PKIX, ASN.1 DER format encoded in Base64 + * @param "ConfigAppId" (string) - The ID that uniquely identifies your app in the Google or Apple store, such as `com.example.myapp`. Required when `factor_type` is `push` + * @param "ConfigNotificationPlatform" (string) - The transport technology used to generate the Notification Token. Can be `apn` or `fcm`. Required when `factor_type` is `push` + * @param "ConfigNotificationToken" (string) - For APN, the device token. For FCM the registration token. It used to send the push notifications. Required when `factor_type` is `push` + * @param "ConfigSdkVersion" (string) - The Verify Push SDK version used to configure the factor * @param "FactorType" (string) - The Type of this Factor. Currently only `push` is supported * @param "FriendlyName" (string) - The friendly name of this Factor @return VerifyV2ServiceEntityFactor @@ -412,9 +412,9 @@ type CreateServiceParams struct { FriendlyName *string `json:"FriendlyName,omitempty"` LookupEnabled *bool `json:"LookupEnabled,omitempty"` Psd2Enabled *bool `json:"Psd2Enabled,omitempty"` - PushApnCredentialSid *string `json:"Push.ApnCredentialSid,omitempty"` - PushFcmCredentialSid *string `json:"Push.FcmCredentialSid,omitempty"` - PushIncludeDate *bool `json:"Push.IncludeDate,omitempty"` + PushApnCredentialSid *string `json:"PushApnCredentialSid,omitempty"` + PushFcmCredentialSid *string `json:"PushFcmCredentialSid,omitempty"` + PushIncludeDate *bool `json:"PushIncludeDate,omitempty"` SkipSmsToLandlines *bool `json:"SkipSmsToLandlines,omitempty"` TtsName *string `json:"TtsName,omitempty"` } @@ -430,9 +430,9 @@ Create a new Verification Service. * @param "FriendlyName" (string) - A descriptive string that you create to describe the verification service. It can be up to 30 characters long. **This value should not contain PII.** * @param "LookupEnabled" (bool) - Whether to perform a lookup with each verification started and return info about the phone number. * @param "Psd2Enabled" (bool) - Whether to pass PSD2 transaction parameters when starting a verification. - * @param "Push.ApnCredentialSid" (string) - Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) - * @param "Push.FcmCredentialSid" (string) - Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) - * @param "Push.IncludeDate" (bool) - Optional configuration for the Push factors. If true, include the date in the Challenge's reponse. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: true + * @param "PushApnCredentialSid" (string) - Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) + * @param "PushFcmCredentialSid" (string) - Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) + * @param "PushIncludeDate" (bool) - Optional configuration for the Push factors. If true, include the date in the Challenge's reponse. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: true * @param "SkipSmsToLandlines" (bool) - Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`. * @param "TtsName" (string) - The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. @return VerifyV2Service @@ -1671,8 +1671,8 @@ func (c *DefaultApiService) UpdateChallenge(ServiceSid string, Identity string, // UpdateFactorParams Optional parameters for the method 'UpdateFactor' type UpdateFactorParams struct { AuthPayload *string `json:"AuthPayload,omitempty"` - ConfigNotificationToken *string `json:"Config.NotificationToken,omitempty"` - ConfigSdkVersion *string `json:"Config.SdkVersion,omitempty"` + ConfigNotificationToken *string `json:"ConfigNotificationToken,omitempty"` + ConfigSdkVersion *string `json:"ConfigSdkVersion,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` } @@ -1684,8 +1684,8 @@ Update a specific Factor. This endpoint can be used to Verify a Factor if passed * @param Sid A 34 character string that uniquely identifies this Factor. * @param optional nil or *UpdateFactorOpts - Optional Parameters: * @param "AuthPayload" (string) - The optional payload needed to verify the Factor for the first time. E.g. for a TOTP, the numeric code. - * @param "Config.NotificationToken" (string) - For APN, the device token. For FCM the registration token. It used to send the push notifications. Required when `factor_type` is `push` - * @param "Config.SdkVersion" (string) - The Verify Push SDK version used to configure the factor + * @param "ConfigNotificationToken" (string) - For APN, the device token. For FCM the registration token. It used to send the push notifications. Required when `factor_type` is `push` + * @param "ConfigSdkVersion" (string) - The Verify Push SDK version used to configure the factor * @param "FriendlyName" (string) - The new friendly name of this Factor @return VerifyV2ServiceEntityFactor */ @@ -1820,9 +1820,9 @@ type UpdateServiceParams struct { FriendlyName *string `json:"FriendlyName,omitempty"` LookupEnabled *bool `json:"LookupEnabled,omitempty"` Psd2Enabled *bool `json:"Psd2Enabled,omitempty"` - PushApnCredentialSid *string `json:"Push.ApnCredentialSid,omitempty"` - PushFcmCredentialSid *string `json:"Push.FcmCredentialSid,omitempty"` - PushIncludeDate *bool `json:"Push.IncludeDate,omitempty"` + PushApnCredentialSid *string `json:"PushApnCredentialSid,omitempty"` + PushFcmCredentialSid *string `json:"PushFcmCredentialSid,omitempty"` + PushIncludeDate *bool `json:"PushIncludeDate,omitempty"` SkipSmsToLandlines *bool `json:"SkipSmsToLandlines,omitempty"` TtsName *string `json:"TtsName,omitempty"` } @@ -1839,9 +1839,9 @@ Update a specific Verification Service. * @param "FriendlyName" (string) - A descriptive string that you create to describe the verification service. It can be up to 30 characters long. **This value should not contain PII.** * @param "LookupEnabled" (bool) - Whether to perform a lookup with each verification started and return info about the phone number. * @param "Psd2Enabled" (bool) - Whether to pass PSD2 transaction parameters when starting a verification. - * @param "Push.ApnCredentialSid" (string) - Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) - * @param "Push.FcmCredentialSid" (string) - Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) - * @param "Push.IncludeDate" (bool) - Optional configuration for the Push factors. If true, include the date in the Challenge's reponse. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: true + * @param "PushApnCredentialSid" (string) - Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) + * @param "PushFcmCredentialSid" (string) - Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) + * @param "PushIncludeDate" (bool) - Optional configuration for the Push factors. If true, include the date in the Challenge's reponse. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: true * @param "SkipSmsToLandlines" (bool) - Whether to skip sending SMS verifications to landlines. Requires `lookup_enabled`. * @param "TtsName" (string) - The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. @return VerifyV2Service From 0b0f63014b8320d40e7ba7cd55a0cd077b43992a Mon Sep 17 00:00:00 2001 From: Shwetha Radhakrishna Date: Sat, 23 Jan 2021 22:37:29 -0700 Subject: [PATCH 14/20] Replacing paramname in metadata with basename --- rest/api/v2010/README.md | 2 +- rest/api/v2010/api_default.go | 44 +-- rest/api/v2010/docs/DefaultApi.md | 384 +++++++++++++-------------- rest/chat/v1/api_default.go | 84 +++--- rest/chat/v2/api_default.go | 80 +++--- rest/conversations/v1/api_default.go | 148 +++++------ rest/flex/v1/api_default.go | 36 +-- rest/ip/messaging/api_default.go | 80 +++--- rest/preview/api_default.go | 20 +- rest/sync/v1/api_default.go | 12 +- rest/verify/v2/api_default.go | 32 +-- 11 files changed, 461 insertions(+), 461 deletions(-) diff --git a/rest/api/v2010/README.md b/rest/api/v2010/README.md index b6bdbf7cf..0721b8e99 100644 --- a/rest/api/v2010/README.md +++ b/rest/api/v2010/README.md @@ -422,7 +422,7 @@ Class | Method | HTTP request | Description -## accountSid_authToken +## AccountSid_authToken - **Type**: HTTP basic authentication diff --git a/rest/api/v2010/api_default.go b/rest/api/v2010/api_default.go index 61cbc99bc..842c273b0 100644 --- a/rest/api/v2010/api_default.go +++ b/rest/api/v2010/api_default.go @@ -6028,11 +6028,11 @@ Retrieves a collection of calls made to and from your account * @param "ParentCallSid" (string) - Only include calls spawned by calls with this SID. * @param "Status" (string) - The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`. * @param "StartTime" (time.Time) - 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. - * @param "StartTime<" (time.Time) - 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. - * @param "StartTime>" (time.Time) - 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. + * @param "StartTimelesserThan" (time.Time) - 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. + * @param "StartTimegreaterThan" (time.Time) - 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. * @param "EndTime" (time.Time) - 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. - * @param "EndTime<" (time.Time) - 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. - * @param "EndTime>" (time.Time) - 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. + * @param "EndTimelesserThan" (time.Time) - 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. + * @param "EndTimegreaterThan" (time.Time) - 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. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountCallReadResponse */ @@ -6151,8 +6151,8 @@ ListCallNotification Method for ListCallNotification * @param optional nil or *ListCallNotificationOpts - Optional Parameters: * @param "Log" (int32) - 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. * @param "MessageDate" (time.Time) - 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. - * @param "MessageDate<" (time.Time) - 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. - * @param "MessageDate>" (time.Time) - 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. + * @param "MessageDatelesserThan" (time.Time) - 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. + * @param "MessageDategreaterThan" (time.Time) - 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. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountCallCallNotificationReadResponse */ @@ -6211,8 +6211,8 @@ Retrieve a list of recordings belonging to the call used to make the request * @param CallSid The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resources to read. * @param optional nil or *ListCallRecordingOpts - Optional Parameters: * @param "DateCreated" (time.Time) - 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. - * @param "DateCreated<" (time.Time) - 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. - * @param "DateCreated>" (time.Time) - 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. + * @param "DateCreatedlesserThan" (time.Time) - 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. + * @param "DateCreatedgreaterThan" (time.Time) - 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. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountCallCallRecordingReadResponse */ @@ -6272,11 +6272,11 @@ Retrieve a list of conferences belonging to the account used to make the request * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference resource(s) to read. * @param optional nil or *ListConferenceOpts - Optional Parameters: * @param "DateCreated" (time.Time) - 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`. - * @param "DateCreated<" (time.Time) - 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`. - * @param "DateCreated>" (time.Time) - 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`. + * @param "DateCreatedlesserThan" (time.Time) - 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`. + * @param "DateCreatedgreaterThan" (time.Time) - 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`. * @param "DateUpdated" (time.Time) - 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`. - * @param "DateUpdated<" (time.Time) - 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`. - * @param "DateUpdated>" (time.Time) - 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`. + * @param "DateUpdatedlesserThan" (time.Time) - 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`. + * @param "DateUpdatedgreaterThan" (time.Time) - 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`. * @param "FriendlyName" (string) - The string that identifies the Conference resources to read. * @param "Status" (string) - The status of the resources to read. Can be: `init`, `in-progress`, or `completed`. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @@ -6348,8 +6348,8 @@ Retrieve a list of recordings belonging to the call used to make the request * @param ConferenceSid The Conference SID that identifies the conference associated with the recording to read. * @param optional nil or *ListConferenceRecordingOpts - Optional Parameters: * @param "DateCreated" (time.Time) - 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. - * @param "DateCreated<" (time.Time) - 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. - * @param "DateCreated>" (time.Time) - 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. + * @param "DateCreatedlesserThan" (time.Time) - 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. + * @param "DateCreatedgreaterThan" (time.Time) - 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. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountConferenceConferenceRecordingReadResponse */ @@ -6848,8 +6848,8 @@ Retrieve a list of Media resources belonging to the account used to make the req * @param MessageSid The SID of the Message resource that this Media resource belongs to. * @param optional nil or *ListMediaOpts - Optional Parameters: * @param "DateCreated" (time.Time) - 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. - * @param "DateCreated<" (time.Time) - 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. - * @param "DateCreated>" (time.Time) - 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. + * @param "DateCreatedlesserThan" (time.Time) - 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. + * @param "DateCreatedgreaterThan" (time.Time) - 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. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountMessageMediaReadResponse */ @@ -6950,8 +6950,8 @@ Retrieve a list of messages belonging to the account used to make the request * @param "To" (string) - Read messages sent to only this phone number. * @param "From" (string) - Read messages sent from only this phone number or alphanumeric sender ID. * @param "DateSent" (time.Time) - 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. - * @param "DateSent<" (time.Time) - 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. - * @param "DateSent>" (time.Time) - 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. + * @param "DateSentlesserThan" (time.Time) - 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. + * @param "DateSentgreaterThan" (time.Time) - 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. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountMessageReadResponse */ @@ -7013,8 +7013,8 @@ Retrieve a list of notifications belonging to the account used to make the reque * @param optional nil or *ListNotificationOpts - Optional Parameters: * @param "Log" (int32) - 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. * @param "MessageDate" (time.Time) - 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. - * @param "MessageDate<" (time.Time) - 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. - * @param "MessageDate>" (time.Time) - 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. + * @param "MessageDatelesserThan" (time.Time) - 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. + * @param "MessageDategreaterThan" (time.Time) - 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. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. @return ApiV2010AccountNotificationReadResponse */ @@ -7220,8 +7220,8 @@ Retrieve a list of recordings belonging to the account used to make the request * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording resources to read. * @param optional nil or *ListRecordingOpts - Optional Parameters: * @param "DateCreated" (time.Time) - 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. - * @param "DateCreated<" (time.Time) - 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. - * @param "DateCreated>" (time.Time) - 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. + * @param "DateCreatedlesserThan" (time.Time) - 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. + * @param "DateCreatedgreaterThan" (time.Time) - 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. * @param "CallSid" (string) - The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resources to read. * @param "ConferenceSid" (string) - The Conference SID that identifies the conference associated with the recording to read. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. diff --git a/rest/api/v2010/docs/DefaultApi.md b/rest/api/v2010/docs/DefaultApi.md index df41fa60a..aadc2a645 100644 --- a/rest/api/v2010/docs/DefaultApi.md +++ b/rest/api/v2010/docs/DefaultApi.md @@ -230,7 +230,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -281,7 +281,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -340,7 +340,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -417,7 +417,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -466,7 +466,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -518,7 +518,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -586,7 +586,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -633,7 +633,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -698,7 +698,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -763,7 +763,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -828,7 +828,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -888,7 +888,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -933,7 +933,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -976,7 +976,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -1021,7 +1021,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -1103,7 +1103,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -1165,7 +1165,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -1211,7 +1211,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -1258,7 +1258,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -1305,7 +1305,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -1352,7 +1352,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -1400,7 +1400,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -1445,7 +1445,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -1492,7 +1492,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -1549,7 +1549,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -1594,7 +1594,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -1641,7 +1641,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -1690,7 +1690,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -1735,7 +1735,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -1786,7 +1786,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -1834,7 +1834,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -1867,7 +1867,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -1902,7 +1902,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -1937,7 +1937,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -1972,7 +1972,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -2008,7 +2008,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -2044,7 +2044,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -2079,7 +2079,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -2114,7 +2114,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -2150,7 +2150,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -2183,7 +2183,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -2219,7 +2219,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -2254,7 +2254,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -2289,7 +2289,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -2325,7 +2325,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -2360,7 +2360,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -2395,7 +2395,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -2431,7 +2431,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -2468,7 +2468,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -2502,7 +2502,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -2535,7 +2535,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -2571,7 +2571,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -2607,7 +2607,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -2643,7 +2643,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -2679,7 +2679,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -2714,7 +2714,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -2750,7 +2750,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -2785,7 +2785,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -2820,7 +2820,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -2856,7 +2856,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -2892,7 +2892,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -2927,7 +2927,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -2960,7 +2960,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -2994,7 +2994,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -3027,7 +3027,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -3062,7 +3062,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -3097,7 +3097,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -3130,7 +3130,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -3164,7 +3164,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -3199,7 +3199,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -3234,7 +3234,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -3269,7 +3269,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -3303,7 +3303,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -3339,7 +3339,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -3374,7 +3374,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -3410,7 +3410,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -3445,7 +3445,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -3480,7 +3480,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -3516,7 +3516,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -3553,7 +3553,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -3586,7 +3586,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -3622,7 +3622,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -3658,7 +3658,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -3693,7 +3693,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -3728,7 +3728,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -3763,7 +3763,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -3799,7 +3799,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -3834,7 +3834,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -3869,7 +3869,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -3905,7 +3905,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -3942,7 +3942,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -3976,7 +3976,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -4011,7 +4011,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -4044,7 +4044,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -4080,7 +4080,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -4116,7 +4116,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -4152,7 +4152,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -4188,7 +4188,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -4223,7 +4223,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -4259,7 +4259,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -4294,7 +4294,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -4329,7 +4329,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -4365,7 +4365,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -4401,7 +4401,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -4436,7 +4436,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -4471,7 +4471,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -4516,7 +4516,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -4562,7 +4562,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -4608,7 +4608,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -4653,7 +4653,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -4696,7 +4696,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -4759,7 +4759,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -4822,7 +4822,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -4885,7 +4885,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -4948,7 +4948,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -5011,7 +5011,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -5074,7 +5074,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -5137,7 +5137,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -5192,7 +5192,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -5239,7 +5239,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -5288,7 +5288,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -5338,7 +5338,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -5391,7 +5391,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -5441,7 +5441,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -5486,7 +5486,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -5531,7 +5531,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -5580,7 +5580,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -5627,7 +5627,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -5676,7 +5676,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -5723,7 +5723,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -5770,7 +5770,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -5817,7 +5817,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -5860,7 +5860,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -5910,7 +5910,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -5957,7 +5957,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -6007,7 +6007,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -6056,7 +6056,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -6103,7 +6103,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -6153,7 +6153,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -6198,7 +6198,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -6248,7 +6248,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -6295,7 +6295,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -6344,7 +6344,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -6389,7 +6389,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -6436,7 +6436,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -6479,7 +6479,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -6526,7 +6526,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -6573,7 +6573,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -6620,7 +6620,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -6667,7 +6667,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -6712,7 +6712,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -6759,7 +6759,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -6804,7 +6804,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -6849,7 +6849,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -6896,7 +6896,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -6943,7 +6943,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -6988,7 +6988,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -7037,7 +7037,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -7084,7 +7084,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -7131,7 +7131,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -7178,7 +7178,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -7225,7 +7225,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -7272,7 +7272,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -7319,7 +7319,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -7366,7 +7366,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -7413,7 +7413,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -7461,7 +7461,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -7507,7 +7507,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -7559,7 +7559,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -7620,7 +7620,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -7674,7 +7674,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -7722,7 +7722,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -7772,7 +7772,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -7819,7 +7819,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -7869,7 +7869,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -7923,7 +7923,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -7992,7 +7992,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -8037,7 +8037,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -8087,7 +8087,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -8134,7 +8134,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -8181,7 +8181,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -8241,7 +8241,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -8293,7 +8293,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -8341,7 +8341,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -8393,7 +8393,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -8438,7 +8438,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -8487,7 +8487,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -8534,7 +8534,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -8593,7 +8593,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -8640,7 +8640,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -8691,7 +8691,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers @@ -8740,7 +8740,7 @@ Name | Type | Description | Notes ### Authorization -[accountSid_authToken](../README.md#accountSid_authToken) +[AccountSid_authToken](../README.md#AccountSid_authToken) ### HTTP request headers diff --git a/rest/chat/v1/api_default.go b/rest/chat/v1/api_default.go index aa41aa2e4..bb8c370de 100644 --- a/rest/chat/v1/api_default.go +++ b/rest/chat/v1/api_default.go @@ -1536,16 +1536,16 @@ type UpdateServiceParams struct { DefaultChannelRoleSid *string `json:"DefaultChannelRoleSid,omitempty"` DefaultServiceRoleSid *string `json:"DefaultServiceRoleSid,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` - LimitsChannelMembers *int32 `json:"LimitsChannelMembers,omitempty"` - LimitsUserChannels *int32 `json:"LimitsUserChannels,omitempty"` - NotificationsAddedToChannelEnabled *bool `json:"NotificationsAddedToChannelEnabled,omitempty"` - NotificationsAddedToChannelTemplate *string `json:"NotificationsAddedToChannelTemplate,omitempty"` - NotificationsInvitedToChannelEnabled *bool `json:"NotificationsInvitedToChannelEnabled,omitempty"` - NotificationsInvitedToChannelTemplate *string `json:"NotificationsInvitedToChannelTemplate,omitempty"` - NotificationsNewMessageEnabled *bool `json:"NotificationsNewMessageEnabled,omitempty"` - NotificationsNewMessageTemplate *string `json:"NotificationsNewMessageTemplate,omitempty"` - NotificationsRemovedFromChannelEnabled *bool `json:"NotificationsRemovedFromChannelEnabled,omitempty"` - NotificationsRemovedFromChannelTemplate *string `json:"NotificationsRemovedFromChannelTemplate,omitempty"` + LimitsChannelMembers *int32 `json:"Limits.ChannelMembers,omitempty"` + LimitsUserChannels *int32 `json:"Limits.UserChannels,omitempty"` + NotificationsAddedToChannelEnabled *bool `json:"Notifications.AddedToChannel.Enabled,omitempty"` + NotificationsAddedToChannelTemplate *string `json:"Notifications.AddedToChannel.Template,omitempty"` + NotificationsInvitedToChannelEnabled *bool `json:"Notifications.InvitedToChannel.Enabled,omitempty"` + NotificationsInvitedToChannelTemplate *string `json:"Notifications.InvitedToChannel.Template,omitempty"` + NotificationsNewMessageEnabled *bool `json:"Notifications.NewMessage.Enabled,omitempty"` + NotificationsNewMessageTemplate *string `json:"Notifications.NewMessage.Template,omitempty"` + NotificationsRemovedFromChannelEnabled *bool `json:"Notifications.RemovedFromChannel.Enabled,omitempty"` + NotificationsRemovedFromChannelTemplate *string `json:"Notifications.RemovedFromChannel.Template,omitempty"` PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"` PreWebhookUrl *string `json:"PreWebhookUrl,omitempty"` ReachabilityEnabled *bool `json:"ReachabilityEnabled,omitempty"` @@ -1553,38 +1553,38 @@ type UpdateServiceParams struct { TypingIndicatorTimeout *int32 `json:"TypingIndicatorTimeout,omitempty"` WebhookFilters *[]string `json:"WebhookFilters,omitempty"` WebhookMethod *string `json:"WebhookMethod,omitempty"` - WebhooksOnChannelAddMethod *string `json:"WebhooksOnChannelAddMethod,omitempty"` - WebhooksOnChannelAddUrl *string `json:"WebhooksOnChannelAddUrl,omitempty"` - WebhooksOnChannelAddedMethod *string `json:"WebhooksOnChannelAddedMethod,omitempty"` - WebhooksOnChannelAddedUrl *string `json:"WebhooksOnChannelAddedUrl,omitempty"` - WebhooksOnChannelDestroyMethod *string `json:"WebhooksOnChannelDestroyMethod,omitempty"` - WebhooksOnChannelDestroyUrl *string `json:"WebhooksOnChannelDestroyUrl,omitempty"` - WebhooksOnChannelDestroyedMethod *string `json:"WebhooksOnChannelDestroyedMethod,omitempty"` - WebhooksOnChannelDestroyedUrl *string `json:"WebhooksOnChannelDestroyedUrl,omitempty"` - WebhooksOnChannelUpdateMethod *string `json:"WebhooksOnChannelUpdateMethod,omitempty"` - WebhooksOnChannelUpdateUrl *string `json:"WebhooksOnChannelUpdateUrl,omitempty"` - WebhooksOnChannelUpdatedMethod *string `json:"WebhooksOnChannelUpdatedMethod,omitempty"` - WebhooksOnChannelUpdatedUrl *string `json:"WebhooksOnChannelUpdatedUrl,omitempty"` - WebhooksOnMemberAddMethod *string `json:"WebhooksOnMemberAddMethod,omitempty"` - WebhooksOnMemberAddUrl *string `json:"WebhooksOnMemberAddUrl,omitempty"` - WebhooksOnMemberAddedMethod *string `json:"WebhooksOnMemberAddedMethod,omitempty"` - WebhooksOnMemberAddedUrl *string `json:"WebhooksOnMemberAddedUrl,omitempty"` - WebhooksOnMemberRemoveMethod *string `json:"WebhooksOnMemberRemoveMethod,omitempty"` - WebhooksOnMemberRemoveUrl *string `json:"WebhooksOnMemberRemoveUrl,omitempty"` - WebhooksOnMemberRemovedMethod *string `json:"WebhooksOnMemberRemovedMethod,omitempty"` - WebhooksOnMemberRemovedUrl *string `json:"WebhooksOnMemberRemovedUrl,omitempty"` - WebhooksOnMessageRemoveMethod *string `json:"WebhooksOnMessageRemoveMethod,omitempty"` - WebhooksOnMessageRemoveUrl *string `json:"WebhooksOnMessageRemoveUrl,omitempty"` - WebhooksOnMessageRemovedMethod *string `json:"WebhooksOnMessageRemovedMethod,omitempty"` - WebhooksOnMessageRemovedUrl *string `json:"WebhooksOnMessageRemovedUrl,omitempty"` - WebhooksOnMessageSendMethod *string `json:"WebhooksOnMessageSendMethod,omitempty"` - WebhooksOnMessageSendUrl *string `json:"WebhooksOnMessageSendUrl,omitempty"` - WebhooksOnMessageSentMethod *string `json:"WebhooksOnMessageSentMethod,omitempty"` - WebhooksOnMessageSentUrl *string `json:"WebhooksOnMessageSentUrl,omitempty"` - WebhooksOnMessageUpdateMethod *string `json:"WebhooksOnMessageUpdateMethod,omitempty"` - WebhooksOnMessageUpdateUrl *string `json:"WebhooksOnMessageUpdateUrl,omitempty"` - WebhooksOnMessageUpdatedMethod *string `json:"WebhooksOnMessageUpdatedMethod,omitempty"` - WebhooksOnMessageUpdatedUrl *string `json:"WebhooksOnMessageUpdatedUrl,omitempty"` + WebhooksOnChannelAddMethod *string `json:"Webhooks.OnChannelAdd.Method,omitempty"` + WebhooksOnChannelAddUrl *string `json:"Webhooks.OnChannelAdd.Url,omitempty"` + WebhooksOnChannelAddedMethod *string `json:"Webhooks.OnChannelAdded.Method,omitempty"` + WebhooksOnChannelAddedUrl *string `json:"Webhooks.OnChannelAdded.Url,omitempty"` + WebhooksOnChannelDestroyMethod *string `json:"Webhooks.OnChannelDestroy.Method,omitempty"` + WebhooksOnChannelDestroyUrl *string `json:"Webhooks.OnChannelDestroy.Url,omitempty"` + WebhooksOnChannelDestroyedMethod *string `json:"Webhooks.OnChannelDestroyed.Method,omitempty"` + WebhooksOnChannelDestroyedUrl *string `json:"Webhooks.OnChannelDestroyed.Url,omitempty"` + WebhooksOnChannelUpdateMethod *string `json:"Webhooks.OnChannelUpdate.Method,omitempty"` + WebhooksOnChannelUpdateUrl *string `json:"Webhooks.OnChannelUpdate.Url,omitempty"` + WebhooksOnChannelUpdatedMethod *string `json:"Webhooks.OnChannelUpdated.Method,omitempty"` + WebhooksOnChannelUpdatedUrl *string `json:"Webhooks.OnChannelUpdated.Url,omitempty"` + WebhooksOnMemberAddMethod *string `json:"Webhooks.OnMemberAdd.Method,omitempty"` + WebhooksOnMemberAddUrl *string `json:"Webhooks.OnMemberAdd.Url,omitempty"` + WebhooksOnMemberAddedMethod *string `json:"Webhooks.OnMemberAdded.Method,omitempty"` + WebhooksOnMemberAddedUrl *string `json:"Webhooks.OnMemberAdded.Url,omitempty"` + WebhooksOnMemberRemoveMethod *string `json:"Webhooks.OnMemberRemove.Method,omitempty"` + WebhooksOnMemberRemoveUrl *string `json:"Webhooks.OnMemberRemove.Url,omitempty"` + WebhooksOnMemberRemovedMethod *string `json:"Webhooks.OnMemberRemoved.Method,omitempty"` + WebhooksOnMemberRemovedUrl *string `json:"Webhooks.OnMemberRemoved.Url,omitempty"` + WebhooksOnMessageRemoveMethod *string `json:"Webhooks.OnMessageRemove.Method,omitempty"` + WebhooksOnMessageRemoveUrl *string `json:"Webhooks.OnMessageRemove.Url,omitempty"` + WebhooksOnMessageRemovedMethod *string `json:"Webhooks.OnMessageRemoved.Method,omitempty"` + WebhooksOnMessageRemovedUrl *string `json:"Webhooks.OnMessageRemoved.Url,omitempty"` + WebhooksOnMessageSendMethod *string `json:"Webhooks.OnMessageSend.Method,omitempty"` + WebhooksOnMessageSendUrl *string `json:"Webhooks.OnMessageSend.Url,omitempty"` + WebhooksOnMessageSentMethod *string `json:"Webhooks.OnMessageSent.Method,omitempty"` + WebhooksOnMessageSentUrl *string `json:"Webhooks.OnMessageSent.Url,omitempty"` + WebhooksOnMessageUpdateMethod *string `json:"Webhooks.OnMessageUpdate.Method,omitempty"` + WebhooksOnMessageUpdateUrl *string `json:"Webhooks.OnMessageUpdate.Url,omitempty"` + WebhooksOnMessageUpdatedMethod *string `json:"Webhooks.OnMessageUpdated.Method,omitempty"` + WebhooksOnMessageUpdatedUrl *string `json:"Webhooks.OnMessageUpdated.Url,omitempty"` } /* diff --git a/rest/chat/v2/api_default.go b/rest/chat/v2/api_default.go index 36ca2ff96..282202983 100644 --- a/rest/chat/v2/api_default.go +++ b/rest/chat/v2/api_default.go @@ -46,7 +46,7 @@ type CreateChannelParams struct { CreateChannel Method for CreateChannel * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Channel resource under. * @param optional nil or *CreateChannelOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - A valid JSON string that contains application-specific data. * @param "CreatedBy" (string) - The `identity` of the User that created the channel. Default is: `system`. * @param "DateCreated" (time.Time) - The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. Note that this should only be used in cases where a Channel is being recreated from a backup/separate source. @@ -106,12 +106,12 @@ func (c *DefaultApiService) CreateChannel(ServiceSid string, params *CreateChann } // CreateChannelWebhookParams Optional parameters for the method 'CreateChannelWebhook' type CreateChannelWebhookParams struct { - ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` - ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` - ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` - ConfigurationRetryCount *int32 `json:"ConfigurationRetryCount,omitempty"` - ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` - ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` + ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` + ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` + ConfigurationMethod *string `json:"Configuration.Method,omitempty"` + ConfigurationRetryCount *int32 `json:"Configuration.RetryCount,omitempty"` + ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` + ConfigurationUrl *string `json:"Configuration.Url,omitempty"` Type *string `json:"Type,omitempty"` } @@ -305,7 +305,7 @@ CreateMember Method for CreateMember * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Member resource under. * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the new Member resource belongs to. This value can be the Channel resource's `sid` or `unique_name`. * @param optional nil or *CreateMemberOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - A valid JSON string that contains application-specific data. * @param "DateCreated" (time.Time) - The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. Note that this parameter should only be used when a Member is being recreated from a backup/separate source. * @param "DateUpdated" (time.Time) - The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. The default value is `null`. Note that this parameter should only be used when a Member is being recreated from a backup/separate source and where a Member was previously updated. @@ -381,7 +381,7 @@ CreateMessage Method for CreateMessage * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the Message resource under. * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the new Message resource belongs to. This value can be the Channel resource's `sid` or `unique_name`. * @param optional nil or *CreateMessageOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - A valid JSON string that contains application-specific data. * @param "Body" (string) - The message to send to the channel. Can be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string. * @param "DateCreated" (time.Time) - The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. This parameter should only be used when a Chat's history is being recreated from a backup/separate source. @@ -539,7 +539,7 @@ type CreateUserParams struct { CreateUser Method for CreateUser * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the User resource under. * @param optional nil or *CreateUserOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - A valid JSON string that contains application-specific data. * @param "FriendlyName" (string) - A descriptive string that you create to describe the new resource. This value is often used for display purposes. * @param "Identity" (string) - The `identity` value that uniquely identifies the new resource's [User](https://www.twilio.com/docs/chat/rest/user-resource) within the [Service](https://www.twilio.com/docs/chat/rest/service-resource). This value is often a username or email address. See the Identity documentation for more info. @@ -621,7 +621,7 @@ DeleteChannel Method for DeleteChannel * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the resource from. * @param Sid The SID of the Channel resource to delete. This value can be either the `sid` or the `unique_name` of the Channel resource to delete. * @param optional nil or *DeleteChannelOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ func (c *DefaultApiService) DeleteChannel(ServiceSid string, Sid string, params *DeleteChannelParams) (error) { path := "/v2/Services/{ServiceSid}/Channels/{Sid}" @@ -737,7 +737,7 @@ DeleteMember Method for DeleteMember * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Member resource to delete belongs to. This value can be the Channel resource's `sid` or `unique_name`. * @param Sid The SID of the Member resource to delete. This value can be either the Member's `sid` or its `identity` value. * @param optional nil or *DeleteMemberOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ func (c *DefaultApiService) DeleteMember(ServiceSid string, ChannelSid string, Sid string, params *DeleteMemberParams) (error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" @@ -774,7 +774,7 @@ DeleteMessage Method for DeleteMessage * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Message resource to delete belongs to. This value can be the Channel resource's `sid` or `unique_name`. * @param Sid The SID of the Message resource to delete. * @param optional nil or *DeleteMessageOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ func (c *DefaultApiService) DeleteMessage(ServiceSid string, ChannelSid string, Sid string, params *DeleteMessageParams) (error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" @@ -1853,7 +1853,7 @@ UpdateChannel Method for UpdateChannel * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the Channel resource in. * @param Sid The SID of the Channel resource to update. This value can be either the `sid` or the `unique_name` of the Channel resource to update. * @param optional nil or *UpdateChannelOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - A valid JSON string that contains application-specific data. * @param "CreatedBy" (string) - The `identity` of the User that created the channel. Default is: `system`. * @param "DateCreated" (time.Time) - The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. Note that this should only be used in cases where a Channel is being recreated from a backup/separate source. @@ -1910,12 +1910,12 @@ func (c *DefaultApiService) UpdateChannel(ServiceSid string, Sid string, params } // UpdateChannelWebhookParams Optional parameters for the method 'UpdateChannelWebhook' type UpdateChannelWebhookParams struct { - ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` - ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` - ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` - ConfigurationRetryCount *int32 `json:"ConfigurationRetryCount,omitempty"` - ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` - ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` + ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` + ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` + ConfigurationMethod *string `json:"Configuration.Method,omitempty"` + ConfigurationRetryCount *int32 `json:"Configuration.RetryCount,omitempty"` + ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` + ConfigurationUrl *string `json:"Configuration.Url,omitempty"` } /* @@ -2057,7 +2057,7 @@ UpdateMember Method for UpdateMember * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Member resource to update belongs to. This value can be the Channel resource's `sid` or `unique_name`. * @param Sid The SID of the Member resource to update. This value can be either the Member's `sid` or its `identity` value. * @param optional nil or *UpdateMemberOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - A valid JSON string that contains application-specific data. * @param "DateCreated" (time.Time) - The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. Note that this parameter should only be used when a Member is being recreated from a backup/separate source. * @param "DateUpdated" (time.Time) - The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated. @@ -2130,7 +2130,7 @@ UpdateMessage Method for UpdateMessage * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Message resource to update belongs to. This value can be the Channel resource's `sid` or `unique_name`. * @param Sid The SID of the Message resource to update. * @param optional nil or *UpdateMessageOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - A valid JSON string that contains application-specific data. * @param "Body" (string) - The message to send to the channel. Can be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string. * @param "DateCreated" (time.Time) - The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. This parameter should only be used when a Chat's history is being recreated from a backup/separate source. @@ -2234,23 +2234,23 @@ type UpdateServiceParams struct { DefaultChannelRoleSid *string `json:"DefaultChannelRoleSid,omitempty"` DefaultServiceRoleSid *string `json:"DefaultServiceRoleSid,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` - LimitsChannelMembers *int32 `json:"LimitsChannelMembers,omitempty"` - LimitsUserChannels *int32 `json:"LimitsUserChannels,omitempty"` - MediaCompatibilityMessage *string `json:"MediaCompatibilityMessage,omitempty"` - NotificationsAddedToChannelEnabled *bool `json:"NotificationsAddedToChannelEnabled,omitempty"` - NotificationsAddedToChannelSound *string `json:"NotificationsAddedToChannelSound,omitempty"` - NotificationsAddedToChannelTemplate *string `json:"NotificationsAddedToChannelTemplate,omitempty"` - NotificationsInvitedToChannelEnabled *bool `json:"NotificationsInvitedToChannelEnabled,omitempty"` - NotificationsInvitedToChannelSound *string `json:"NotificationsInvitedToChannelSound,omitempty"` - NotificationsInvitedToChannelTemplate *string `json:"NotificationsInvitedToChannelTemplate,omitempty"` - NotificationsLogEnabled *bool `json:"NotificationsLogEnabled,omitempty"` - NotificationsNewMessageBadgeCountEnabled *bool `json:"NotificationsNewMessageBadgeCountEnabled,omitempty"` - NotificationsNewMessageEnabled *bool `json:"NotificationsNewMessageEnabled,omitempty"` - NotificationsNewMessageSound *string `json:"NotificationsNewMessageSound,omitempty"` - NotificationsNewMessageTemplate *string `json:"NotificationsNewMessageTemplate,omitempty"` - NotificationsRemovedFromChannelEnabled *bool `json:"NotificationsRemovedFromChannelEnabled,omitempty"` - NotificationsRemovedFromChannelSound *string `json:"NotificationsRemovedFromChannelSound,omitempty"` - NotificationsRemovedFromChannelTemplate *string `json:"NotificationsRemovedFromChannelTemplate,omitempty"` + LimitsChannelMembers *int32 `json:"Limits.ChannelMembers,omitempty"` + LimitsUserChannels *int32 `json:"Limits.UserChannels,omitempty"` + MediaCompatibilityMessage *string `json:"Media.CompatibilityMessage,omitempty"` + NotificationsAddedToChannelEnabled *bool `json:"Notifications.AddedToChannel.Enabled,omitempty"` + NotificationsAddedToChannelSound *string `json:"Notifications.AddedToChannel.Sound,omitempty"` + NotificationsAddedToChannelTemplate *string `json:"Notifications.AddedToChannel.Template,omitempty"` + NotificationsInvitedToChannelEnabled *bool `json:"Notifications.InvitedToChannel.Enabled,omitempty"` + NotificationsInvitedToChannelSound *string `json:"Notifications.InvitedToChannel.Sound,omitempty"` + NotificationsInvitedToChannelTemplate *string `json:"Notifications.InvitedToChannel.Template,omitempty"` + NotificationsLogEnabled *bool `json:"Notifications.LogEnabled,omitempty"` + NotificationsNewMessageBadgeCountEnabled *bool `json:"Notifications.NewMessage.BadgeCountEnabled,omitempty"` + NotificationsNewMessageEnabled *bool `json:"Notifications.NewMessage.Enabled,omitempty"` + NotificationsNewMessageSound *string `json:"Notifications.NewMessage.Sound,omitempty"` + NotificationsNewMessageTemplate *string `json:"Notifications.NewMessage.Template,omitempty"` + NotificationsRemovedFromChannelEnabled *bool `json:"Notifications.RemovedFromChannel.Enabled,omitempty"` + NotificationsRemovedFromChannelSound *string `json:"Notifications.RemovedFromChannel.Sound,omitempty"` + NotificationsRemovedFromChannelTemplate *string `json:"Notifications.RemovedFromChannel.Template,omitempty"` PostWebhookRetryCount *int32 `json:"PostWebhookRetryCount,omitempty"` PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"` PreWebhookRetryCount *int32 `json:"PreWebhookRetryCount,omitempty"` @@ -2429,7 +2429,7 @@ UpdateUser Method for UpdateUser * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to update the User resource in. * @param Sid The SID of the User resource to update. This value can be either the `sid` or the `identity` of the User resource to update. * @param optional nil or *UpdateUserOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - A valid JSON string that contains application-specific data. * @param "FriendlyName" (string) - A descriptive string that you create to describe the resource. It is often used for display purposes. * @param "RoleSid" (string) - The SID of the [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the User. diff --git a/rest/conversations/v1/api_default.go b/rest/conversations/v1/api_default.go index 587f9b2c1..5c773ae25 100644 --- a/rest/conversations/v1/api_default.go +++ b/rest/conversations/v1/api_default.go @@ -39,8 +39,8 @@ type CreateConversationParams struct { FriendlyName *string `json:"FriendlyName,omitempty"` MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` State *string `json:"State,omitempty"` - TimersClosed *string `json:"TimersClosed,omitempty"` - TimersInactive *string `json:"TimersInactive,omitempty"` + TimersClosed *string `json:"Timers.Closed,omitempty"` + TimersInactive *string `json:"Timers.Inactive,omitempty"` UniqueName *string `json:"UniqueName,omitempty"` } @@ -48,7 +48,7 @@ type CreateConversationParams struct { CreateConversation Method for CreateConversation Create a new conversation in your account's default service * @param optional nil or *CreateConversationOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. * @param "DateCreated" (time.Time) - The date that this resource was created. * @param "DateUpdated" (time.Time) - The date that this resource was last updated. @@ -129,7 +129,7 @@ CreateConversationMessage Method for CreateConversationMessage Add a new message to the conversation * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. * @param optional nil or *CreateConversationMessageOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. * @param "Author" (string) - The channel specific identifier of the message's author. Defaults to `system`. * @param "Body" (string) - The content of the message, can be up to 1,600 characters long. @@ -190,9 +190,9 @@ type CreateConversationParticipantParams struct { DateCreated *time.Time `json:"DateCreated,omitempty"` DateUpdated *time.Time `json:"DateUpdated,omitempty"` Identity *string `json:"Identity,omitempty"` - MessagingBindingAddress *string `json:"MessagingBindingAddress,omitempty"` - MessagingBindingProjectedAddress *string `json:"MessagingBindingProjectedAddress,omitempty"` - MessagingBindingProxyAddress *string `json:"MessagingBindingProxyAddress,omitempty"` + MessagingBindingAddress *string `json:"MessagingBinding.Address,omitempty"` + MessagingBindingProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` + MessagingBindingProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` RoleSid *string `json:"RoleSid,omitempty"` } @@ -201,7 +201,7 @@ CreateConversationParticipant Method for CreateConversationParticipant Add a new participant to the conversation * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. * @param optional nil or *CreateConversationParticipantOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. * @param "DateCreated" (time.Time) - The date that this resource was created. * @param "DateUpdated" (time.Time) - The date that this resource was last updated. @@ -265,12 +265,12 @@ func (c *DefaultApiService) CreateConversationParticipant(ConversationSid string } // CreateConversationScopedWebhookParams Optional parameters for the method 'CreateConversationScopedWebhook' type CreateConversationScopedWebhookParams struct { - ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` - ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` - ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` - ConfigurationReplayAfter *int32 `json:"ConfigurationReplayAfter,omitempty"` - ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` - ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` + ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` + ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` + ConfigurationMethod *string `json:"Configuration.Method,omitempty"` + ConfigurationReplayAfter *int32 `json:"Configuration.ReplayAfter,omitempty"` + ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` + ConfigurationUrl *string `json:"Configuration.Url,omitempty"` Target *string `json:"Target,omitempty"` } @@ -496,8 +496,8 @@ type CreateServiceConversationParams struct { FriendlyName *string `json:"FriendlyName,omitempty"` MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` State *string `json:"State,omitempty"` - TimersClosed *string `json:"TimersClosed,omitempty"` - TimersInactive *string `json:"TimersInactive,omitempty"` + TimersClosed *string `json:"Timers.Closed,omitempty"` + TimersInactive *string `json:"Timers.Inactive,omitempty"` UniqueName *string `json:"UniqueName,omitempty"` } @@ -506,7 +506,7 @@ CreateServiceConversation Method for CreateServiceConversation Create a new conversation in your service * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. * @param optional nil or *CreateServiceConversationOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. * @param "DateCreated" (time.Time) - The date that this resource was created. * @param "DateUpdated" (time.Time) - The date that this resource was last updated. @@ -589,7 +589,7 @@ Add a new message to the conversation in a specific service * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. * @param optional nil or *CreateServiceConversationMessageOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. * @param "Author" (string) - The channel specific identifier of the message's author. Defaults to `system`. * @param "Body" (string) - The content of the message, can be up to 1,600 characters long. @@ -651,9 +651,9 @@ type CreateServiceConversationParticipantParams struct { DateCreated *time.Time `json:"DateCreated,omitempty"` DateUpdated *time.Time `json:"DateUpdated,omitempty"` Identity *string `json:"Identity,omitempty"` - MessagingBindingAddress *string `json:"MessagingBindingAddress,omitempty"` - MessagingBindingProjectedAddress *string `json:"MessagingBindingProjectedAddress,omitempty"` - MessagingBindingProxyAddress *string `json:"MessagingBindingProxyAddress,omitempty"` + MessagingBindingAddress *string `json:"MessagingBinding.Address,omitempty"` + MessagingBindingProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` + MessagingBindingProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` RoleSid *string `json:"RoleSid,omitempty"` } @@ -663,7 +663,7 @@ Add a new participant to the conversation in a specific service * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Participant resource is associated with. * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. * @param optional nil or *CreateServiceConversationParticipantOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. * @param "DateCreated" (time.Time) - The date that this resource was created. * @param "DateUpdated" (time.Time) - The date that this resource was last updated. @@ -728,12 +728,12 @@ func (c *DefaultApiService) CreateServiceConversationParticipant(ChatServiceSid } // CreateServiceConversationScopedWebhookParams Optional parameters for the method 'CreateServiceConversationScopedWebhook' type CreateServiceConversationScopedWebhookParams struct { - ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` - ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` - ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` - ConfigurationReplayAfter *int32 `json:"ConfigurationReplayAfter,omitempty"` - ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` - ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` + ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` + ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` + ConfigurationMethod *string `json:"Configuration.Method,omitempty"` + ConfigurationReplayAfter *int32 `json:"Configuration.ReplayAfter,omitempty"` + ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` + ConfigurationUrl *string `json:"Configuration.Url,omitempty"` Target *string `json:"Target,omitempty"` } @@ -862,7 +862,7 @@ CreateServiceUser Method for CreateServiceUser Add a new conversation user to your service * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the User resource is associated with. * @param optional nil or *CreateServiceUserOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned. * @param "FriendlyName" (string) - The string that you assigned to describe the resource. * @param "Identity" (string) - The application-defined string that uniquely identifies the resource's User within the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource). This value is often a username or an email address, and is case-sensitive. @@ -921,7 +921,7 @@ type CreateUserParams struct { CreateUser Method for CreateUser Add a new conversation user to your account's default service * @param optional nil or *CreateUserOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned. * @param "FriendlyName" (string) - The string that you assigned to describe the resource. * @param "Identity" (string) - The application-defined string that uniquely identifies the resource's User within the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource). This value is often a username or an email address, and is case-sensitive. @@ -976,7 +976,7 @@ DeleteConversation Method for DeleteConversation Remove a conversation from your account's default service * @param Sid A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. * @param optional nil or *DeleteConversationOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ func (c *DefaultApiService) DeleteConversation(Sid string, params *DeleteConversationParams) (error) { path := "/v1/Conversations/{Sid}" @@ -1011,7 +1011,7 @@ Remove a message from the conversation * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. * @param Sid A 34 character string that uniquely identifies this resource. * @param optional nil or *DeleteConversationMessageOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ func (c *DefaultApiService) DeleteConversationMessage(ConversationSid string, Sid string, params *DeleteConversationMessageParams) (error) { path := "/v1/Conversations/{ConversationSid}/Messages/{Sid}" @@ -1047,7 +1047,7 @@ Remove a participant from the conversation * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. * @param Sid A 34 character string that uniquely identifies this resource. * @param optional nil or *DeleteConversationParticipantOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ func (c *DefaultApiService) DeleteConversationParticipant(ConversationSid string, Sid string, params *DeleteConversationParticipantParams) (error) { path := "/v1/Conversations/{ConversationSid}/Participants/{Sid}" @@ -1212,7 +1212,7 @@ Remove a conversation from your service * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. * @param Sid A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. * @param optional nil or *DeleteServiceConversationOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ func (c *DefaultApiService) DeleteServiceConversation(ChatServiceSid string, Sid string, params *DeleteServiceConversationParams) (error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{Sid}" @@ -1249,7 +1249,7 @@ Remove a message from the conversation * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. * @param Sid A 34 character string that uniquely identifies this resource. * @param optional nil or *DeleteServiceConversationMessageOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ func (c *DefaultApiService) DeleteServiceConversationMessage(ChatServiceSid string, ConversationSid string, Sid string, params *DeleteServiceConversationMessageParams) (error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{Sid}" @@ -1287,7 +1287,7 @@ Remove a participant from the conversation * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. * @param Sid A 34 character string that uniquely identifies this resource. * @param optional nil or *DeleteServiceConversationParticipantOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ func (c *DefaultApiService) DeleteServiceConversationParticipant(ChatServiceSid string, ConversationSid string, Sid string, params *DeleteServiceConversationParticipantParams) (error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants/{Sid}" @@ -1380,7 +1380,7 @@ Remove a conversation user from your service * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to delete the User resource from. * @param Sid The SID of the User resource to delete. This value can be either the `sid` or the `identity` of the User resource to delete. * @param optional nil or *DeleteServiceUserOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ func (c *DefaultApiService) DeleteServiceUser(ChatServiceSid string, Sid string, params *DeleteServiceUserParams) (error) { path := "/v1/Services/{ChatServiceSid}/Users/{Sid}" @@ -1415,7 +1415,7 @@ DeleteUser Method for DeleteUser Remove a conversation user from your account's default service * @param Sid The SID of the User resource to delete. This value can be either the `sid` or the `identity` of the User resource to delete. * @param optional nil or *DeleteUserOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ func (c *DefaultApiService) DeleteUser(Sid string, params *DeleteUserParams) (error) { path := "/v1/Users/{Sid}" @@ -2932,8 +2932,8 @@ type UpdateConversationParams struct { FriendlyName *string `json:"FriendlyName,omitempty"` MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` State *string `json:"State,omitempty"` - TimersClosed *string `json:"TimersClosed,omitempty"` - TimersInactive *string `json:"TimersInactive,omitempty"` + TimersClosed *string `json:"Timers.Closed,omitempty"` + TimersInactive *string `json:"Timers.Inactive,omitempty"` UniqueName *string `json:"UniqueName,omitempty"` } @@ -2942,7 +2942,7 @@ UpdateConversation Method for UpdateConversation Update an existing conversation in your account's default service * @param Sid A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. * @param optional nil or *UpdateConversationOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. * @param "DateCreated" (time.Time) - The date that this resource was created. * @param "DateUpdated" (time.Time) - The date that this resource was last updated. @@ -3024,7 +3024,7 @@ Update an existing message in the conversation * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. * @param Sid A 34 character string that uniquely identifies this resource. * @param optional nil or *UpdateConversationMessageOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. * @param "Author" (string) - The channel specific identifier of the message's author. Defaults to `system`. * @param "Body" (string) - The content of the message, can be up to 1,600 characters long. @@ -3084,8 +3084,8 @@ type UpdateConversationParticipantParams struct { Identity *string `json:"Identity,omitempty"` LastReadMessageIndex *int32 `json:"LastReadMessageIndex,omitempty"` LastReadTimestamp *string `json:"LastReadTimestamp,omitempty"` - MessagingBindingProjectedAddress *string `json:"MessagingBindingProjectedAddress,omitempty"` - MessagingBindingProxyAddress *string `json:"MessagingBindingProxyAddress,omitempty"` + MessagingBindingProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` + MessagingBindingProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` RoleSid *string `json:"RoleSid,omitempty"` } @@ -3095,7 +3095,7 @@ Update an existing participant in the conversation * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. * @param Sid A 34 character string that uniquely identifies this resource. * @param optional nil or *UpdateConversationParticipantOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. * @param "DateCreated" (time.Time) - The date that this resource was created. * @param "DateUpdated" (time.Time) - The date that this resource was last updated. @@ -3164,11 +3164,11 @@ func (c *DefaultApiService) UpdateConversationParticipant(ConversationSid string } // UpdateConversationScopedWebhookParams Optional parameters for the method 'UpdateConversationScopedWebhook' type UpdateConversationScopedWebhookParams struct { - ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` - ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` - ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` - ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` - ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` + ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` + ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` + ConfigurationMethod *string `json:"Configuration.Method,omitempty"` + ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` + ConfigurationUrl *string `json:"Configuration.Url,omitempty"` } /* @@ -3398,8 +3398,8 @@ type UpdateServiceConversationParams struct { FriendlyName *string `json:"FriendlyName,omitempty"` MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` State *string `json:"State,omitempty"` - TimersClosed *string `json:"TimersClosed,omitempty"` - TimersInactive *string `json:"TimersInactive,omitempty"` + TimersClosed *string `json:"Timers.Closed,omitempty"` + TimersInactive *string `json:"Timers.Inactive,omitempty"` UniqueName *string `json:"UniqueName,omitempty"` } @@ -3409,7 +3409,7 @@ Update an existing conversation in your service * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. * @param Sid A 34 character string that uniquely identifies this resource. Can also be the `unique_name` of the Conversation. * @param optional nil or *UpdateServiceConversationOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. * @param "DateCreated" (time.Time) - The date that this resource was created. * @param "DateUpdated" (time.Time) - The date that this resource was last updated. @@ -3493,7 +3493,7 @@ Update an existing message in the conversation * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message. * @param Sid A 34 character string that uniquely identifies this resource. * @param optional nil or *UpdateServiceConversationMessageOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. * @param "Author" (string) - The channel specific identifier of the message's author. Defaults to `system`. * @param "Body" (string) - The content of the message, can be up to 1,600 characters long. @@ -3554,8 +3554,8 @@ type UpdateServiceConversationParticipantParams struct { Identity *string `json:"Identity,omitempty"` LastReadMessageIndex *int32 `json:"LastReadMessageIndex,omitempty"` LastReadTimestamp *string `json:"LastReadTimestamp,omitempty"` - MessagingBindingProjectedAddress *string `json:"MessagingBindingProjectedAddress,omitempty"` - MessagingBindingProxyAddress *string `json:"MessagingBindingProxyAddress,omitempty"` + MessagingBindingProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` + MessagingBindingProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` RoleSid *string `json:"RoleSid,omitempty"` } @@ -3566,7 +3566,7 @@ Update an existing participant in the conversation * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant. * @param Sid A 34 character string that uniquely identifies this resource. * @param optional nil or *UpdateServiceConversationParticipantOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. * @param "DateCreated" (time.Time) - The date that this resource was created. * @param "DateUpdated" (time.Time) - The date that this resource was last updated. @@ -3636,11 +3636,11 @@ func (c *DefaultApiService) UpdateServiceConversationParticipant(ChatServiceSid } // UpdateServiceConversationScopedWebhookParams Optional parameters for the method 'UpdateServiceConversationScopedWebhook' type UpdateServiceConversationScopedWebhookParams struct { - ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` - ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` - ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` - ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` - ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` + ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` + ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` + ConfigurationMethod *string `json:"Configuration.Method,omitempty"` + ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` + ConfigurationUrl *string `json:"Configuration.Url,omitempty"` } /* @@ -3700,17 +3700,17 @@ func (c *DefaultApiService) UpdateServiceConversationScopedWebhook(ChatServiceSi } // UpdateServiceNotificationParams Optional parameters for the method 'UpdateServiceNotification' type UpdateServiceNotificationParams struct { - AddedToConversationEnabled *bool `json:"AddedToConversationEnabled,omitempty"` - AddedToConversationSound *string `json:"AddedToConversationSound,omitempty"` - AddedToConversationTemplate *string `json:"AddedToConversationTemplate,omitempty"` + AddedToConversationEnabled *bool `json:"AddedToConversation.Enabled,omitempty"` + AddedToConversationSound *string `json:"AddedToConversation.Sound,omitempty"` + AddedToConversationTemplate *string `json:"AddedToConversation.Template,omitempty"` LogEnabled *bool `json:"LogEnabled,omitempty"` - NewMessageBadgeCountEnabled *bool `json:"NewMessageBadgeCountEnabled,omitempty"` - NewMessageEnabled *bool `json:"NewMessageEnabled,omitempty"` - NewMessageSound *string `json:"NewMessageSound,omitempty"` - NewMessageTemplate *string `json:"NewMessageTemplate,omitempty"` - RemovedFromConversationEnabled *bool `json:"RemovedFromConversationEnabled,omitempty"` - RemovedFromConversationSound *string `json:"RemovedFromConversationSound,omitempty"` - RemovedFromConversationTemplate *string `json:"RemovedFromConversationTemplate,omitempty"` + NewMessageBadgeCountEnabled *bool `json:"NewMessage.BadgeCountEnabled,omitempty"` + NewMessageEnabled *bool `json:"NewMessage.Enabled,omitempty"` + NewMessageSound *string `json:"NewMessage.Sound,omitempty"` + NewMessageTemplate *string `json:"NewMessage.Template,omitempty"` + RemovedFromConversationEnabled *bool `json:"RemovedFromConversation.Enabled,omitempty"` + RemovedFromConversationSound *string `json:"RemovedFromConversation.Sound,omitempty"` + RemovedFromConversationTemplate *string `json:"RemovedFromConversation.Template,omitempty"` } /* @@ -3844,7 +3844,7 @@ Update an existing conversation user in your service * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the User resource is associated with. * @param Sid The SID of the User resource to update. This value can be either the `sid` or the `identity` of the User resource to update. * @param optional nil or *UpdateServiceUserOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned. * @param "FriendlyName" (string) - The string that you assigned to describe the resource. * @param "RoleSid" (string) - The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user. @@ -3900,7 +3900,7 @@ UpdateUser Method for UpdateUser Update an existing conversation user in your account's default service * @param Sid The SID of the User resource to update. This value can be either the `sid` or the `identity` of the User resource to update. * @param optional nil or *UpdateUserOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - The JSON Object string that stores application-specific data. If attributes have not been set, `{}` is returned. * @param "FriendlyName" (string) - The string that you assigned to describe the resource. * @param "RoleSid" (string) - The SID of a service-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the user. diff --git a/rest/flex/v1/api_default.go b/rest/flex/v1/api_default.go index b05b21bfa..89d50b433 100644 --- a/rest/flex/v1/api_default.go +++ b/rest/flex/v1/api_default.go @@ -118,15 +118,15 @@ type CreateFlexFlowParams struct { ContactIdentity *string `json:"ContactIdentity,omitempty"` Enabled *bool `json:"Enabled,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` - IntegrationChannel *string `json:"IntegrationChannel,omitempty"` - IntegrationCreationOnMessage *bool `json:"IntegrationCreationOnMessage,omitempty"` - IntegrationFlowSid *string `json:"IntegrationFlowSid,omitempty"` - IntegrationPriority *int32 `json:"IntegrationPriority,omitempty"` - IntegrationRetryCount *int32 `json:"IntegrationRetryCount,omitempty"` - IntegrationTimeout *int32 `json:"IntegrationTimeout,omitempty"` - IntegrationUrl *string `json:"IntegrationUrl,omitempty"` - IntegrationWorkflowSid *string `json:"IntegrationWorkflowSid,omitempty"` - IntegrationWorkspaceSid *string `json:"IntegrationWorkspaceSid,omitempty"` + IntegrationChannel *string `json:"Integration.Channel,omitempty"` + IntegrationCreationOnMessage *bool `json:"Integration.CreationOnMessage,omitempty"` + IntegrationFlowSid *string `json:"Integration.FlowSid,omitempty"` + IntegrationPriority *int32 `json:"Integration.Priority,omitempty"` + IntegrationRetryCount *int32 `json:"Integration.RetryCount,omitempty"` + IntegrationTimeout *int32 `json:"Integration.Timeout,omitempty"` + IntegrationUrl *string `json:"Integration.Url,omitempty"` + IntegrationWorkflowSid *string `json:"Integration.WorkflowSid,omitempty"` + IntegrationWorkspaceSid *string `json:"Integration.WorkspaceSid,omitempty"` IntegrationType *string `json:"IntegrationType,omitempty"` JanitorEnabled *bool `json:"JanitorEnabled,omitempty"` LongLived *bool `json:"LongLived,omitempty"` @@ -640,15 +640,15 @@ type UpdateFlexFlowParams struct { ContactIdentity *string `json:"ContactIdentity,omitempty"` Enabled *bool `json:"Enabled,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` - IntegrationChannel *string `json:"IntegrationChannel,omitempty"` - IntegrationCreationOnMessage *bool `json:"IntegrationCreationOnMessage,omitempty"` - IntegrationFlowSid *string `json:"IntegrationFlowSid,omitempty"` - IntegrationPriority *int32 `json:"IntegrationPriority,omitempty"` - IntegrationRetryCount *int32 `json:"IntegrationRetryCount,omitempty"` - IntegrationTimeout *int32 `json:"IntegrationTimeout,omitempty"` - IntegrationUrl *string `json:"IntegrationUrl,omitempty"` - IntegrationWorkflowSid *string `json:"IntegrationWorkflowSid,omitempty"` - IntegrationWorkspaceSid *string `json:"IntegrationWorkspaceSid,omitempty"` + IntegrationChannel *string `json:"Integration.Channel,omitempty"` + IntegrationCreationOnMessage *bool `json:"Integration.CreationOnMessage,omitempty"` + IntegrationFlowSid *string `json:"Integration.FlowSid,omitempty"` + IntegrationPriority *int32 `json:"Integration.Priority,omitempty"` + IntegrationRetryCount *int32 `json:"Integration.RetryCount,omitempty"` + IntegrationTimeout *int32 `json:"Integration.Timeout,omitempty"` + IntegrationUrl *string `json:"Integration.Url,omitempty"` + IntegrationWorkflowSid *string `json:"Integration.WorkflowSid,omitempty"` + IntegrationWorkspaceSid *string `json:"Integration.WorkspaceSid,omitempty"` IntegrationType *string `json:"IntegrationType,omitempty"` JanitorEnabled *bool `json:"JanitorEnabled,omitempty"` LongLived *bool `json:"LongLived,omitempty"` diff --git a/rest/ip/messaging/api_default.go b/rest/ip/messaging/api_default.go index 005dd9aa9..6d4f8e2f8 100644 --- a/rest/ip/messaging/api_default.go +++ b/rest/ip/messaging/api_default.go @@ -46,7 +46,7 @@ type CreateChannelParams struct { CreateChannel Method for CreateChannel * @param ServiceSid * @param optional nil or *CreateChannelOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - * @param "CreatedBy" (string) - * @param "DateCreated" (time.Time) - @@ -106,12 +106,12 @@ func (c *DefaultApiService) CreateChannel(ServiceSid string, params *CreateChann } // CreateChannelWebhookParams Optional parameters for the method 'CreateChannelWebhook' type CreateChannelWebhookParams struct { - ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` - ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` - ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` - ConfigurationRetryCount *int32 `json:"ConfigurationRetryCount,omitempty"` - ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` - ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` + ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` + ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` + ConfigurationMethod *string `json:"Configuration.Method,omitempty"` + ConfigurationRetryCount *int32 `json:"Configuration.RetryCount,omitempty"` + ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` + ConfigurationUrl *string `json:"Configuration.Url,omitempty"` Type *string `json:"Type,omitempty"` } @@ -305,7 +305,7 @@ CreateMember Method for CreateMember * @param ServiceSid * @param ChannelSid * @param optional nil or *CreateMemberOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - * @param "DateCreated" (time.Time) - * @param "DateUpdated" (time.Time) - @@ -381,7 +381,7 @@ CreateMessage Method for CreateMessage * @param ServiceSid * @param ChannelSid * @param optional nil or *CreateMessageOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - * @param "Body" (string) - * @param "DateCreated" (time.Time) - @@ -539,7 +539,7 @@ type CreateUserParams struct { CreateUser Method for CreateUser * @param ServiceSid * @param optional nil or *CreateUserOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - * @param "FriendlyName" (string) - * @param "Identity" (string) - @@ -621,7 +621,7 @@ DeleteChannel Method for DeleteChannel * @param ServiceSid * @param Sid * @param optional nil or *DeleteChannelOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ func (c *DefaultApiService) DeleteChannel(ServiceSid string, Sid string, params *DeleteChannelParams) (error) { path := "/v2/Services/{ServiceSid}/Channels/{Sid}" @@ -737,7 +737,7 @@ DeleteMember Method for DeleteMember * @param ChannelSid * @param Sid * @param optional nil or *DeleteMemberOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ func (c *DefaultApiService) DeleteMember(ServiceSid string, ChannelSid string, Sid string, params *DeleteMemberParams) (error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}" @@ -774,7 +774,7 @@ DeleteMessage Method for DeleteMessage * @param ChannelSid * @param Sid * @param optional nil or *DeleteMessageOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header */ func (c *DefaultApiService) DeleteMessage(ServiceSid string, ChannelSid string, Sid string, params *DeleteMessageParams) (error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages/{Sid}" @@ -1851,7 +1851,7 @@ UpdateChannel Method for UpdateChannel * @param ServiceSid * @param Sid * @param optional nil or *UpdateChannelOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - * @param "CreatedBy" (string) - * @param "DateCreated" (time.Time) - @@ -1908,12 +1908,12 @@ func (c *DefaultApiService) UpdateChannel(ServiceSid string, Sid string, params } // UpdateChannelWebhookParams Optional parameters for the method 'UpdateChannelWebhook' type UpdateChannelWebhookParams struct { - ConfigurationFilters *[]string `json:"ConfigurationFilters,omitempty"` - ConfigurationFlowSid *string `json:"ConfigurationFlowSid,omitempty"` - ConfigurationMethod *string `json:"ConfigurationMethod,omitempty"` - ConfigurationRetryCount *int32 `json:"ConfigurationRetryCount,omitempty"` - ConfigurationTriggers *[]string `json:"ConfigurationTriggers,omitempty"` - ConfigurationUrl *string `json:"ConfigurationUrl,omitempty"` + ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` + ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` + ConfigurationMethod *string `json:"Configuration.Method,omitempty"` + ConfigurationRetryCount *int32 `json:"Configuration.RetryCount,omitempty"` + ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` + ConfigurationUrl *string `json:"Configuration.Url,omitempty"` } /* @@ -2055,7 +2055,7 @@ UpdateMember Method for UpdateMember * @param ChannelSid * @param Sid * @param optional nil or *UpdateMemberOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - * @param "DateCreated" (time.Time) - * @param "DateUpdated" (time.Time) - @@ -2128,7 +2128,7 @@ UpdateMessage Method for UpdateMessage * @param ChannelSid * @param Sid * @param optional nil or *UpdateMessageOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - * @param "Body" (string) - * @param "DateCreated" (time.Time) - @@ -2232,23 +2232,23 @@ type UpdateServiceParams struct { DefaultChannelRoleSid *string `json:"DefaultChannelRoleSid,omitempty"` DefaultServiceRoleSid *string `json:"DefaultServiceRoleSid,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` - LimitsChannelMembers *int32 `json:"LimitsChannelMembers,omitempty"` - LimitsUserChannels *int32 `json:"LimitsUserChannels,omitempty"` - MediaCompatibilityMessage *string `json:"MediaCompatibilityMessage,omitempty"` - NotificationsAddedToChannelEnabled *bool `json:"NotificationsAddedToChannelEnabled,omitempty"` - NotificationsAddedToChannelSound *string `json:"NotificationsAddedToChannelSound,omitempty"` - NotificationsAddedToChannelTemplate *string `json:"NotificationsAddedToChannelTemplate,omitempty"` - NotificationsInvitedToChannelEnabled *bool `json:"NotificationsInvitedToChannelEnabled,omitempty"` - NotificationsInvitedToChannelSound *string `json:"NotificationsInvitedToChannelSound,omitempty"` - NotificationsInvitedToChannelTemplate *string `json:"NotificationsInvitedToChannelTemplate,omitempty"` - NotificationsLogEnabled *bool `json:"NotificationsLogEnabled,omitempty"` - NotificationsNewMessageBadgeCountEnabled *bool `json:"NotificationsNewMessageBadgeCountEnabled,omitempty"` - NotificationsNewMessageEnabled *bool `json:"NotificationsNewMessageEnabled,omitempty"` - NotificationsNewMessageSound *string `json:"NotificationsNewMessageSound,omitempty"` - NotificationsNewMessageTemplate *string `json:"NotificationsNewMessageTemplate,omitempty"` - NotificationsRemovedFromChannelEnabled *bool `json:"NotificationsRemovedFromChannelEnabled,omitempty"` - NotificationsRemovedFromChannelSound *string `json:"NotificationsRemovedFromChannelSound,omitempty"` - NotificationsRemovedFromChannelTemplate *string `json:"NotificationsRemovedFromChannelTemplate,omitempty"` + LimitsChannelMembers *int32 `json:"Limits.ChannelMembers,omitempty"` + LimitsUserChannels *int32 `json:"Limits.UserChannels,omitempty"` + MediaCompatibilityMessage *string `json:"Media.CompatibilityMessage,omitempty"` + NotificationsAddedToChannelEnabled *bool `json:"Notifications.AddedToChannel.Enabled,omitempty"` + NotificationsAddedToChannelSound *string `json:"Notifications.AddedToChannel.Sound,omitempty"` + NotificationsAddedToChannelTemplate *string `json:"Notifications.AddedToChannel.Template,omitempty"` + NotificationsInvitedToChannelEnabled *bool `json:"Notifications.InvitedToChannel.Enabled,omitempty"` + NotificationsInvitedToChannelSound *string `json:"Notifications.InvitedToChannel.Sound,omitempty"` + NotificationsInvitedToChannelTemplate *string `json:"Notifications.InvitedToChannel.Template,omitempty"` + NotificationsLogEnabled *bool `json:"Notifications.LogEnabled,omitempty"` + NotificationsNewMessageBadgeCountEnabled *bool `json:"Notifications.NewMessage.BadgeCountEnabled,omitempty"` + NotificationsNewMessageEnabled *bool `json:"Notifications.NewMessage.Enabled,omitempty"` + NotificationsNewMessageSound *string `json:"Notifications.NewMessage.Sound,omitempty"` + NotificationsNewMessageTemplate *string `json:"Notifications.NewMessage.Template,omitempty"` + NotificationsRemovedFromChannelEnabled *bool `json:"Notifications.RemovedFromChannel.Enabled,omitempty"` + NotificationsRemovedFromChannelSound *string `json:"Notifications.RemovedFromChannel.Sound,omitempty"` + NotificationsRemovedFromChannelTemplate *string `json:"Notifications.RemovedFromChannel.Template,omitempty"` PostWebhookRetryCount *int32 `json:"PostWebhookRetryCount,omitempty"` PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"` PreWebhookRetryCount *int32 `json:"PreWebhookRetryCount,omitempty"` @@ -2427,7 +2427,7 @@ UpdateUser Method for UpdateUser * @param ServiceSid * @param Sid * @param optional nil or *UpdateUserOpts - Optional Parameters: - * @param "X-Twilio-Webhook-Enabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header + * @param "XTwilioWebhookEnabled" (string) - The X-Twilio-Webhook-Enabled HTTP request header * @param "Attributes" (string) - * @param "FriendlyName" (string) - * @param "RoleSid" (string) - diff --git a/rest/preview/api_default.go b/rest/preview/api_default.go index 7dcda75bf..fdbddd812 100644 --- a/rest/preview/api_default.go +++ b/rest/preview/api_default.go @@ -1599,7 +1599,7 @@ DeleteDocument Method for DeleteDocument * @param ServiceSid * @param Sid * @param optional nil or *DeleteDocumentOpts - Optional Parameters: - * @param "If-Match" (string) - The If-Match HTTP request header + * @param "IfMatch" (string) - The If-Match HTTP request header */ func (c *DefaultApiService) DeleteDocument(ServiceSid string, Sid string, params *DeleteDocumentParams) (error) { path := "/Sync/Services/{ServiceSid}/Documents/{Sid}" @@ -2026,7 +2026,7 @@ DeleteSyncListItem Method for DeleteSyncListItem * @param ListSid * @param Index * @param optional nil or *DeleteSyncListItemOpts - Optional Parameters: - * @param "If-Match" (string) - The If-Match HTTP request header + * @param "IfMatch" (string) - The If-Match HTTP request header */ func (c *DefaultApiService) DeleteSyncListItem(ServiceSid string, ListSid string, Index int32, params *DeleteSyncListItemParams) (error) { path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}" @@ -2118,7 +2118,7 @@ DeleteSyncMapItem Method for DeleteSyncMapItem * @param MapSid * @param Key * @param optional nil or *DeleteSyncMapItemOpts - Optional Parameters: - * @param "If-Match" (string) - The If-Match HTTP request header + * @param "IfMatch" (string) - The If-Match HTTP request header */ func (c *DefaultApiService) DeleteSyncMapItem(ServiceSid string, MapSid string, Key string, params *DeleteSyncMapItemParams) (error) { path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}" @@ -2424,7 +2424,7 @@ type FetchBrandsInformationParams struct { FetchBrandsInformation Method for FetchBrandsInformation Retrieve the newest available BrandInformation * @param optional nil or *FetchBrandsInformationOpts - Optional Parameters: - * @param "If-None-Match" (string) - The If-None-Match HTTP request header + * @param "IfNoneMatch" (string) - The If-None-Match HTTP request header @return PreviewTrustedCommsBrandsInformation */ func (c *DefaultApiService) FetchBrandsInformation(params *FetchBrandsInformationParams) (*PreviewTrustedCommsBrandsInformation, error) { @@ -2525,7 +2525,7 @@ type FetchCpsParams struct { FetchCps Method for FetchCps Fetch a specific Call Placement Service (CPS) given a phone number via `X-XCNAM-Sensitive-Phone-Number` header. * @param optional nil or *FetchCpsOpts - Optional Parameters: - * @param "X-Xcnam-Sensitive-Phone-Number" (string) - The X-Xcnam-Sensitive-Phone-Number HTTP request header + * @param "XXcnamSensitivePhoneNumber" (string) - The X-Xcnam-Sensitive-Phone-Number HTTP request header @return PreviewTrustedCommsCps */ func (c *DefaultApiService) FetchCps(params *FetchCpsParams) (*PreviewTrustedCommsCps, error) { @@ -2564,8 +2564,8 @@ type FetchCurrentCallParams struct { FetchCurrentCall Method for FetchCurrentCall Retrieve a current call given the originating and terminating number via `X-XCNAM-Sensitive-Phone-Number-From` and `X-XCNAM-Sensitive-Phone-Number-To` headers. * @param optional nil or *FetchCurrentCallOpts - Optional Parameters: - * @param "X-Xcnam-Sensitive-Phone-Number-From" (string) - The X-Xcnam-Sensitive-Phone-Number-From HTTP request header - * @param "X-Xcnam-Sensitive-Phone-Number-To" (string) - The X-Xcnam-Sensitive-Phone-Number-To HTTP request header + * @param "XXcnamSensitivePhoneNumberFrom" (string) - The X-Xcnam-Sensitive-Phone-Number-From HTTP request header + * @param "XXcnamSensitivePhoneNumberTo" (string) - The X-Xcnam-Sensitive-Phone-Number-To HTTP request header @return PreviewTrustedCommsCurrentCall */ func (c *DefaultApiService) FetchCurrentCall(params *FetchCurrentCallParams) (*PreviewTrustedCommsCurrentCall, error) { @@ -5629,7 +5629,7 @@ UpdateDocument Method for UpdateDocument * @param ServiceSid * @param Sid * @param optional nil or *UpdateDocumentOpts - Optional Parameters: - * @param "If-Match" (string) - The If-Match HTTP request header + * @param "IfMatch" (string) - The If-Match HTTP request header * @param "Data" (map[string]interface{}) - @return PreviewSyncServiceDocument */ @@ -6500,7 +6500,7 @@ UpdateSyncListItem Method for UpdateSyncListItem * @param ListSid * @param Index * @param optional nil or *UpdateSyncListItemOpts - Optional Parameters: - * @param "If-Match" (string) - The If-Match HTTP request header + * @param "IfMatch" (string) - The If-Match HTTP request header * @param "Data" (map[string]interface{}) - @return PreviewSyncServiceSyncListSyncListItem */ @@ -6608,7 +6608,7 @@ UpdateSyncMapItem Method for UpdateSyncMapItem * @param MapSid * @param Key * @param optional nil or *UpdateSyncMapItemOpts - Optional Parameters: - * @param "If-Match" (string) - The If-Match HTTP request header + * @param "IfMatch" (string) - The If-Match HTTP request header * @param "Data" (map[string]interface{}) - @return PreviewSyncServiceSyncMapSyncMapItem */ diff --git a/rest/sync/v1/api_default.go b/rest/sync/v1/api_default.go index 262c6133e..496b011b4 100644 --- a/rest/sync/v1/api_default.go +++ b/rest/sync/v1/api_default.go @@ -481,7 +481,7 @@ DeleteDocument Method for DeleteDocument * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document resource to delete. * @param Sid The SID of the Document resource to delete. * @param optional nil or *DeleteDocumentOpts - Optional Parameters: - * @param "If-Match" (string) - The If-Match HTTP request header + * @param "IfMatch" (string) - The If-Match HTTP request header */ func (c *DefaultApiService) DeleteDocument(ServiceSid string, Sid string, params *DeleteDocumentParams) (error) { path := "/v1/Services/{ServiceSid}/Documents/{Sid}" @@ -596,7 +596,7 @@ DeleteSyncListItem Method for DeleteSyncListItem * @param ListSid The SID of the Sync List with the Sync List Item resource to delete. Can be the Sync List resource's `sid` or its `unique_name`. * @param Index The index of the Sync List Item resource to delete. * @param optional nil or *DeleteSyncListItemOpts - Optional Parameters: - * @param "If-Match" (string) - The If-Match HTTP request header + * @param "IfMatch" (string) - The If-Match HTTP request header */ func (c *DefaultApiService) DeleteSyncListItem(ServiceSid string, ListSid string, Index int32, params *DeleteSyncListItemParams) (error) { path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}" @@ -688,7 +688,7 @@ DeleteSyncMapItem Method for DeleteSyncMapItem * @param MapSid The SID of the Sync Map with the Sync Map Item resource to delete. Can be the Sync Map's `sid` or its `unique_name`. * @param Key The `key` value of the Sync Map Item resource to delete. * @param optional nil or *DeleteSyncMapItemOpts - Optional Parameters: - * @param "If-Match" (string) - The If-Match HTTP request header + * @param "IfMatch" (string) - The If-Match HTTP request header */ func (c *DefaultApiService) DeleteSyncMapItem(ServiceSid string, MapSid string, Key string, params *DeleteSyncMapItemParams) (error) { path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}" @@ -1576,7 +1576,7 @@ UpdateDocument Method for UpdateDocument * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document resource to update. * @param Sid The SID of the Document resource to update. * @param optional nil or *UpdateDocumentOpts - Optional Parameters: - * @param "If-Match" (string) - The If-Match HTTP request header + * @param "IfMatch" (string) - The If-Match HTTP request header * @param "Data" (map[string]interface{}) - A JSON string that represents an arbitrary, schema-less object that the Sync Document stores. Can be up to 16KB in length. * @param "Ttl" (int32) - How long, in seconds, before the Sync Document expires and is deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Document resource does not expire. The Document resource will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. @return SyncV1ServiceDocument @@ -1805,7 +1805,7 @@ UpdateSyncListItem Method for UpdateSyncListItem * @param ListSid The SID of the Sync List with the Sync List Item resource to update. Can be the Sync List resource's `sid` or its `unique_name`. * @param Index The index of the Sync List Item resource to update. * @param optional nil or *UpdateSyncListItemOpts - Optional Parameters: - * @param "If-Match" (string) - The If-Match HTTP request header + * @param "IfMatch" (string) - The If-Match HTTP request header * @param "CollectionTtl" (int32) - How long, in seconds, before the List Item's parent Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. * @param "Data" (map[string]interface{}) - A JSON string that represents an arbitrary, schema-less object that the List Item stores. Can be up to 16KB in length. * @param "ItemTtl" (int32) - How long, in seconds, before the List Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the List Item does not expire. The List Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. @@ -1974,7 +1974,7 @@ UpdateSyncMapItem Method for UpdateSyncMapItem * @param MapSid The SID of the Sync Map with the Sync Map Item resource to update. Can be the Sync Map's `sid` or its `unique_name`. * @param Key The `key` value of the Sync Map Item resource to update. * @param optional nil or *UpdateSyncMapItemOpts - Optional Parameters: - * @param "If-Match" (string) - The If-Match HTTP request header + * @param "IfMatch" (string) - The If-Match HTTP request header * @param "CollectionTtl" (int32) - How long, in seconds, before the Map Item's parent Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync Map does not expire. This parameter can only be used when the Map Item's `data` or `ttl` is updated in the same request. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. * @param "Data" (map[string]interface{}) - A JSON string that represents an arbitrary, schema-less object that the Map Item stores. Can be up to 16KB in length. * @param "ItemTtl" (int32) - How long, in seconds, before the Map Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Map Item does not expire. The Map Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. diff --git a/rest/verify/v2/api_default.go b/rest/verify/v2/api_default.go index 0a49d0e9b..1b22998d4 100644 --- a/rest/verify/v2/api_default.go +++ b/rest/verify/v2/api_default.go @@ -124,8 +124,8 @@ func (c *DefaultApiService) CreateBucket(ServiceSid string, RateLimitSid string, } // CreateChallengeParams Optional parameters for the method 'CreateChallenge' type CreateChallengeParams struct { - DetailsFields *[]map[string]interface{} `json:"DetailsFields,omitempty"` - DetailsMessage *string `json:"DetailsMessage,omitempty"` + DetailsFields *[]map[string]interface{} `json:"Details.Fields,omitempty"` + DetailsMessage *string `json:"Details.Message,omitempty"` ExpirationDate *time.Time `json:"ExpirationDate,omitempty"` FactorSid *string `json:"FactorSid,omitempty"` HiddenDetails *map[string]interface{} `json:"HiddenDetails,omitempty"` @@ -238,12 +238,12 @@ func (c *DefaultApiService) CreateEntity(ServiceSid string, params *CreateEntity } // CreateFactorParams Optional parameters for the method 'CreateFactor' type CreateFactorParams struct { - BindingAlg *string `json:"BindingAlg,omitempty"` - BindingPublicKey *string `json:"BindingPublicKey,omitempty"` - ConfigAppId *string `json:"ConfigAppId,omitempty"` - ConfigNotificationPlatform *string `json:"ConfigNotificationPlatform,omitempty"` - ConfigNotificationToken *string `json:"ConfigNotificationToken,omitempty"` - ConfigSdkVersion *string `json:"ConfigSdkVersion,omitempty"` + BindingAlg *string `json:"Binding.Alg,omitempty"` + BindingPublicKey *string `json:"Binding.PublicKey,omitempty"` + ConfigAppId *string `json:"Config.AppId,omitempty"` + ConfigNotificationPlatform *string `json:"Config.NotificationPlatform,omitempty"` + ConfigNotificationToken *string `json:"Config.NotificationToken,omitempty"` + ConfigSdkVersion *string `json:"Config.SdkVersion,omitempty"` FactorType *string `json:"FactorType,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` } @@ -412,9 +412,9 @@ type CreateServiceParams struct { FriendlyName *string `json:"FriendlyName,omitempty"` LookupEnabled *bool `json:"LookupEnabled,omitempty"` Psd2Enabled *bool `json:"Psd2Enabled,omitempty"` - PushApnCredentialSid *string `json:"PushApnCredentialSid,omitempty"` - PushFcmCredentialSid *string `json:"PushFcmCredentialSid,omitempty"` - PushIncludeDate *bool `json:"PushIncludeDate,omitempty"` + PushApnCredentialSid *string `json:"Push.ApnCredentialSid,omitempty"` + PushFcmCredentialSid *string `json:"Push.FcmCredentialSid,omitempty"` + PushIncludeDate *bool `json:"Push.IncludeDate,omitempty"` SkipSmsToLandlines *bool `json:"SkipSmsToLandlines,omitempty"` TtsName *string `json:"TtsName,omitempty"` } @@ -1671,8 +1671,8 @@ func (c *DefaultApiService) UpdateChallenge(ServiceSid string, Identity string, // UpdateFactorParams Optional parameters for the method 'UpdateFactor' type UpdateFactorParams struct { AuthPayload *string `json:"AuthPayload,omitempty"` - ConfigNotificationToken *string `json:"ConfigNotificationToken,omitempty"` - ConfigSdkVersion *string `json:"ConfigSdkVersion,omitempty"` + ConfigNotificationToken *string `json:"Config.NotificationToken,omitempty"` + ConfigSdkVersion *string `json:"Config.SdkVersion,omitempty"` FriendlyName *string `json:"FriendlyName,omitempty"` } @@ -1820,9 +1820,9 @@ type UpdateServiceParams struct { FriendlyName *string `json:"FriendlyName,omitempty"` LookupEnabled *bool `json:"LookupEnabled,omitempty"` Psd2Enabled *bool `json:"Psd2Enabled,omitempty"` - PushApnCredentialSid *string `json:"PushApnCredentialSid,omitempty"` - PushFcmCredentialSid *string `json:"PushFcmCredentialSid,omitempty"` - PushIncludeDate *bool `json:"PushIncludeDate,omitempty"` + PushApnCredentialSid *string `json:"Push.ApnCredentialSid,omitempty"` + PushFcmCredentialSid *string `json:"Push.FcmCredentialSid,omitempty"` + PushIncludeDate *bool `json:"Push.IncludeDate,omitempty"` SkipSmsToLandlines *bool `json:"SkipSmsToLandlines,omitempty"` TtsName *string `json:"TtsName,omitempty"` } From 213aa0bd1dbc76aa87bd50a5ca9cb872457b1e45 Mon Sep 17 00:00:00 2001 From: Shwetha Radhakrishna Date: Tue, 26 Jan 2021 22:17:25 -0700 Subject: [PATCH 15/20] Regenerated apis, renamed schemas and a bug fix --- apitest.go | 35 + rest/accounts/v1/README.md | 8 +- rest/accounts/v1/api_default.go | 36 +- ...CredentialCredentialAwsReadResponseMeta.md | 17 - rest/accounts/v1/docs/DefaultApi.md | 8 +- ...sponse.md => ListCredentialAwsResponse.md} | 4 +- .../v1/docs/ListCredentialAwsResponseMeta.md} | 2 +- ....md => ListCredentialPublicKeyResponse.md} | 4 +- .../model_accounts_v1_auth_token_promotion.go | 2 +- ...l_accounts_v1_credential_credential_aws.go | 2 +- ...ntial_credential_aws_read_response_meta.go | 21 - ...nts_v1_credential_credential_public_key.go | 2 +- ...ial_credential_public_key_read_response.go | 16 - .../model_accounts_v1_secondary_auth_token.go | 2 +- .../v1/model_create_credential_aws_request.go | 2 +- ...el_create_credential_public_key_request.go | 2 +- ... => model_list_credential_aws_response.go} | 8 +- ...model_list_credential_aws_response_meta.go | 21 + ...del_list_credential_public_key_response.go | 16 + .../v1/model_update_credential_aws_request.go | 2 +- ...el_update_credential_public_key_request.go | 2 +- rest/accounts/v1/response.go | 2 +- rest/api/v2010/README.md | 126 +- rest/api/v2010/api_default.go | 1778 ++++++++--------- rest/api/v2010/docs/CreateSipDomainRequest.md | 2 +- rest/api/v2010/docs/DefaultApi.md | 632 +++--- ...ReadResponse.md => ListAccountResponse.md} | 2 +- ...ReadResponse.md => ListAddressResponse.md} | 2 +- ...Response.md => ListApplicationResponse.md} | 2 +- ...md => ListAuthorizedConnectAppResponse.md} | 2 +- ...istAvailablePhoneNumberCountryResponse.md} | 2 +- ... ListAvailablePhoneNumberLocalResponse.md} | 2 +- ...blePhoneNumberMachineToMachineResponse.md} | 2 +- ...ListAvailablePhoneNumberMobileResponse.md} | 2 +- ...stAvailablePhoneNumberNationalResponse.md} | 2 +- ...AvailablePhoneNumberSharedCostResponse.md} | 2 +- ...stAvailablePhoneNumberTollFreeResponse.md} | 2 +- ...> ListAvailablePhoneNumberVoipResponse.md} | 2 +- ...adResponse.md => ListCallEventResponse.md} | 2 +- ...nse.md => ListCallNotificationResponse.md} | 2 +- ...sponse.md => ListCallRecordingResponse.md} | 2 +- ...allReadResponse.md => ListCallResponse.md} | 2 +- ....md => ListConferenceRecordingResponse.md} | 2 +- ...dResponse.md => ListConferenceResponse.md} | 2 +- ...dResponse.md => ListConnectAppResponse.md} | 2 +- ...md => ListDependentPhoneNumberResponse.md} | 2 +- ...neNumberAssignedAddOnExtensionResponse.md} | 2 +- ...comingPhoneNumberAssignedAddOnResponse.md} | 2 +- ...> ListIncomingPhoneNumberLocalResponse.md} | 2 +- ... ListIncomingPhoneNumberMobileResponse.md} | 2 +- ....md => ListIncomingPhoneNumberResponse.md} | 2 +- ...istIncomingPhoneNumberTollFreeResponse.md} | 2 +- ...tKeyReadResponse.md => ListKeyResponse.md} | 2 +- ...iaReadResponse.md => ListMediaResponse.md} | 2 +- ...rReadResponse.md => ListMemberResponse.md} | 2 +- ...ReadResponse.md => ListMessageResponse.md} | 2 +- ...esponse.md => ListNotificationResponse.md} | 2 +- ...nse.md => ListOutgoingCallerIdResponse.md} | 2 +- ...Response.md => ListParticipantResponse.md} | 2 +- ...ueReadResponse.md => ListQueueResponse.md} | 2 +- ...istRecordingAddOnResultPayloadResponse.md} | 2 +- ...md => ListRecordingAddOnResultResponse.md} | 2 +- ...adResponse.md => ListRecordingResponse.md} | 2 +- ... => ListRecordingTranscriptionResponse.md} | 2 +- ...adResponse.md => ListShortCodeResponse.md} | 2 +- ...dResponse.md => ListSigningKeyResponse.md} | 2 +- ...AuthCallsCredentialListMappingResponse.md} | 2 +- ...allsIpAccessControlListMappingResponse.md} | 2 +- ...strationsCredentialListMappingResponse.md} | 2 +- ...> ListSipCredentialListMappingResponse.md} | 2 +- ...se.md => ListSipCredentialListResponse.md} | 2 +- ...sponse.md => ListSipCredentialResponse.md} | 2 +- ...adResponse.md => ListSipDomainResponse.md} | 2 +- ...tSipIpAccessControlListMappingResponse.md} | 2 +- ... => ListSipIpAccessControlListResponse.md} | 2 +- ...esponse.md => ListSipIpAddressResponse.md} | 2 +- ...sponse.md => ListTranscriptionResponse.md} | 2 +- ...e.md => ListUsageRecordAllTimeResponse.md} | 2 +- ...nse.md => ListUsageRecordDailyResponse.md} | 2 +- ...md => ListUsageRecordLastMonthResponse.md} | 2 +- ...e.md => ListUsageRecordMonthlyResponse.md} | 2 +- ...Response.md => ListUsageRecordResponse.md} | 2 +- ...md => ListUsageRecordThisMonthResponse.md} | 2 +- ...nse.md => ListUsageRecordTodayResponse.md} | 2 +- ...se.md => ListUsageRecordYearlyResponse.md} | 2 +- ...md => ListUsageRecordYesterdayResponse.md} | 2 +- ...esponse.md => ListUsageTriggerResponse.md} | 2 +- rest/api/v2010/docs/UpdateSipDomainRequest.md | 2 +- rest/api/v2010/model_api_v2010_account.go | 2 +- .../v2010/model_api_v2010_account_address.go | 2 +- ..._account_address_dependent_phone_number.go | 2 +- .../model_api_v2010_account_application.go | 2 +- ...pi_v2010_account_authorized_connect_app.go | 2 +- ..._account_available_phone_number_country.go | 2 +- ...er_country_available_phone_number_local.go | 2 +- ...ailable_phone_number_machine_to_machine.go | 2 +- ...r_country_available_phone_number_mobile.go | 2 +- ...country_available_phone_number_national.go | 2 +- ...ntry_available_phone_number_shared_cost.go | 2 +- ...ountry_available_phone_number_toll_free.go | 2 +- ...ber_country_available_phone_number_voip.go | 2 +- .../v2010/model_api_v2010_account_balance.go | 2 +- .../api/v2010/model_api_v2010_account_call.go | 2 +- ...model_api_v2010_account_call_call_event.go | 2 +- ...el_api_v2010_account_call_call_feedback.go | 2 +- ...2010_account_call_call_feedback_summary.go | 2 +- ...pi_v2010_account_call_call_notification.go | 2 +- ...account_call_call_notification_instance.go | 2 +- ...l_api_v2010_account_call_call_recording.go | 2 +- .../model_api_v2010_account_call_payments.go | 2 +- .../model_api_v2010_account_conference.go | 2 +- ...account_conference_conference_recording.go | 2 +- ...pi_v2010_account_conference_participant.go | 2 +- .../model_api_v2010_account_connect_app.go | 2 +- ...api_v2010_account_incoming_phone_number.go | 2 +- ...r_incoming_phone_number_assigned_add_on.go | 2 +- ..._phone_number_assigned_add_on_extension.go | 2 +- ...hone_number_incoming_phone_number_local.go | 2 +- ...one_number_incoming_phone_number_mobile.go | 2 +- ..._number_incoming_phone_number_toll_free.go | 2 +- rest/api/v2010/model_api_v2010_account_key.go | 2 +- .../v2010/model_api_v2010_account_message.go | 2 +- .../model_api_v2010_account_message_media.go | 2 +- ..._v2010_account_message_message_feedback.go | 2 +- .../v2010/model_api_v2010_account_new_key.go | 2 +- ...model_api_v2010_account_new_signing_key.go | 2 +- .../model_api_v2010_account_notification.go | 2 +- ...api_v2010_account_notification_instance.go | 2 +- ...el_api_v2010_account_outgoing_caller_id.go | 2 +- .../v2010/model_api_v2010_account_queue.go | 2 +- .../model_api_v2010_account_queue_member.go | 2 +- .../model_api_v2010_account_recording.go | 2 +- ...count_recording_recording_add_on_result.go | 2 +- ..._result_recording_add_on_result_payload.go | 2 +- ...count_recording_recording_transcription.go | 2 +- .../model_api_v2010_account_short_code.go | 2 +- .../model_api_v2010_account_signing_key.go | 2 +- ...i_v2010_account_sip_sip_credential_list.go | 2 +- ..._sip_sip_credential_list_sip_credential.go | 2 +- .../model_api_v2010_account_sip_sip_domain.go | 2 +- ..._sip_auth_calls_credential_list_mapping.go | 2 +- ...th_calls_ip_access_control_list_mapping.go | 2 +- ...h_registrations_credential_list_mapping.go | 2 +- ..._sip_domain_sip_credential_list_mapping.go | 2 +- ...main_sip_ip_access_control_list_mapping.go | 2 +- ..._account_sip_sip_ip_access_control_list.go | 2 +- ...p_ip_access_control_list_sip_ip_address.go | 2 +- .../v2010/model_api_v2010_account_token.go | 2 +- .../model_api_v2010_account_transcription.go | 2 +- ...el_api_v2010_account_usage_usage_record.go | 2 +- ...sage_usage_record_usage_record_all_time.go | 2 +- ...t_usage_usage_record_usage_record_daily.go | 2 +- ...ge_usage_record_usage_record_last_month.go | 2 +- ...usage_usage_record_usage_record_monthly.go | 2 +- ...ge_usage_record_usage_record_this_month.go | 2 +- ...t_usage_usage_record_usage_record_today.go | 2 +- ..._usage_usage_record_usage_record_yearly.go | 2 +- ...age_usage_record_usage_record_yesterday.go | 2 +- ...l_api_v2010_account_usage_usage_trigger.go | 2 +- ...el_api_v2010_account_validation_request.go | 2 +- .../api/v2010/model_create_account_request.go | 2 +- .../api/v2010/model_create_address_request.go | 2 +- .../v2010/model_create_application_request.go | 2 +- ...el_create_call_feedback_summary_request.go | 2 +- .../model_create_call_recording_request.go | 2 +- rest/api/v2010/model_create_call_request.go | 2 +- ...ng_phone_number_assigned_add_on_request.go | 2 +- ...ate_incoming_phone_number_local_request.go | 2 +- ...te_incoming_phone_number_mobile_request.go | 2 +- ...el_create_incoming_phone_number_request.go | 2 +- ...incoming_phone_number_toll_free_request.go | 2 +- .../model_create_message_feedback_request.go | 2 +- .../api/v2010/model_create_message_request.go | 2 +- .../api/v2010/model_create_new_key_request.go | 2 +- .../model_create_new_signing_key_request.go | 2 +- .../v2010/model_create_participant_request.go | 2 +- .../v2010/model_create_payments_request.go | 2 +- rest/api/v2010/model_create_queue_request.go | 2 +- ...h_calls_credential_list_mapping_request.go | 2 +- ..._ip_access_control_list_mapping_request.go | 2 +- ...rations_credential_list_mapping_request.go | 2 +- ...ate_sip_credential_list_mapping_request.go | 2 +- ...odel_create_sip_credential_list_request.go | 2 +- .../model_create_sip_credential_request.go | 2 +- .../v2010/model_create_sip_domain_request.go | 4 +- ..._ip_access_control_list_mapping_request.go | 2 +- ...eate_sip_ip_access_control_list_request.go | 2 +- .../model_create_sip_ip_address_request.go | 2 +- rest/api/v2010/model_create_token_request.go | 2 +- .../model_create_usage_trigger_request.go | 2 +- ...model_create_validation_request_request.go | 2 +- ...onse.go => model_list_account_response.go} | 6 +- ...onse.go => model_list_address_response.go} | 6 +- ....go => model_list_application_response.go} | 6 +- ...l_list_authorized_connect_app_response.go} | 6 +- ...vailable_phone_number_country_response.go} | 6 +- ..._available_phone_number_local_response.go} | 6 +- ...one_number_machine_to_machine_response.go} | 6 +- ...available_phone_number_mobile_response.go} | 6 +- ...ailable_phone_number_national_response.go} | 6 +- ...able_phone_number_shared_cost_response.go} | 6 +- ...ilable_phone_number_toll_free_response.go} | 6 +- ...t_available_phone_number_voip_response.go} | 6 +- ...e.go => model_list_call_event_response.go} | 6 +- ... model_list_call_notification_response.go} | 6 +- ... => model_list_call_recording_response.go} | 6 +- ...esponse.go => model_list_call_response.go} | 6 +- ...del_list_conference_recording_response.go} | 6 +- ...e.go => model_list_conference_response.go} | 6 +- ....go => model_list_connect_app_response.go} | 6 +- ...l_list_dependent_phone_number_response.go} | 6 +- ...ber_assigned_add_on_extension_response.go} | 6 +- ..._phone_number_assigned_add_on_response.go} | 6 +- ...t_incoming_phone_number_local_response.go} | 6 +- ..._incoming_phone_number_mobile_response.go} | 6 +- ...el_list_incoming_phone_number_response.go} | 6 +- ...coming_phone_number_toll_free_response.go} | 6 +- ...response.go => model_list_key_response.go} | 6 +- ...sponse.go => model_list_media_response.go} | 6 +- ...ponse.go => model_list_member_response.go} | 6 +- ...onse.go => model_list_message_response.go} | 6 +- ...go => model_list_notification_response.go} | 6 +- ...model_list_outgoing_caller_id_response.go} | 6 +- ....go => model_list_participant_response.go} | 6 +- ...sponse.go => model_list_queue_response.go} | 6 +- ...cording_add_on_result_payload_response.go} | 6 +- ..._list_recording_add_on_result_response.go} | 6 +- ...se.go => model_list_recording_response.go} | 6 +- ..._list_recording_transcription_response.go} | 6 +- ...e.go => model_list_short_code_response.go} | 6 +- ....go => model_list_signing_key_response.go} | 6 +- ...calls_credential_list_mapping_response.go} | 6 +- ...p_access_control_list_mapping_response.go} | 6 +- ...tions_credential_list_mapping_response.go} | 6 +- ...t_sip_credential_list_mapping_response.go} | 6 +- ...odel_list_sip_credential_list_response.go} | 6 +- ... => model_list_sip_credential_response.go} | 6 +- ...e.go => model_list_sip_domain_response.go} | 6 +- ...p_access_control_list_mapping_response.go} | 6 +- ...st_sip_ip_access_control_list_response.go} | 6 +- ... => model_list_sip_ip_address_response.go} | 6 +- ...o => model_list_transcription_response.go} | 6 +- ...el_list_usage_record_all_time_response.go} | 6 +- ...model_list_usage_record_daily_response.go} | 6 +- ..._list_usage_record_last_month_response.go} | 6 +- ...del_list_usage_record_monthly_response.go} | 6 +- ...go => model_list_usage_record_response.go} | 6 +- ..._list_usage_record_this_month_response.go} | 6 +- ...model_list_usage_record_today_response.go} | 6 +- ...odel_list_usage_record_yearly_response.go} | 6 +- ...l_list_usage_record_yesterday_response.go} | 6 +- ...o => model_list_usage_trigger_response.go} | 6 +- .../api/v2010/model_update_account_request.go | 2 +- .../api/v2010/model_update_address_request.go | 2 +- .../v2010/model_update_application_request.go | 2 +- .../model_update_call_feedback_request.go | 2 +- .../model_update_call_recording_request.go | 2 +- rest/api/v2010/model_update_call_request.go | 2 +- ...del_update_conference_recording_request.go | 2 +- .../v2010/model_update_conference_request.go | 2 +- .../v2010/model_update_connect_app_request.go | 2 +- ...el_update_incoming_phone_number_request.go | 2 +- rest/api/v2010/model_update_key_request.go | 2 +- rest/api/v2010/model_update_member_request.go | 2 +- .../api/v2010/model_update_message_request.go | 2 +- ...model_update_outgoing_caller_id_request.go | 2 +- .../v2010/model_update_participant_request.go | 2 +- .../v2010/model_update_payments_request.go | 2 +- rest/api/v2010/model_update_queue_request.go | 2 +- .../v2010/model_update_short_code_request.go | 2 +- .../v2010/model_update_signing_key_request.go | 2 +- ...odel_update_sip_credential_list_request.go | 2 +- .../model_update_sip_credential_request.go | 2 +- .../v2010/model_update_sip_domain_request.go | 4 +- ...date_sip_ip_access_control_list_request.go | 2 +- .../model_update_sip_ip_address_request.go | 2 +- .../model_update_usage_trigger_request.go | 2 +- rest/api/v2010/response.go | 2 +- rest/autopilot/v1/README.md | 22 +- rest/autopilot/v1/api_default.go | 206 +- .../AutopilotV1AssistantReadResponseMeta.md | 17 - rest/autopilot/v1/docs/DefaultApi.md | 36 +- ...adResponse.md => ListAssistantResponse.md} | 4 +- .../v1/docs/ListAssistantResponseMeta.md} | 2 +- ...ldReadResponse.md => ListFieldResponse.md} | 4 +- ...adResponse.md => ListFieldTypeResponse.md} | 4 +- ...dResponse.md => ListFieldValueResponse.md} | 4 +- ...dResponse.md => ListModelBuildResponse.md} | 4 +- ...ryReadResponse.md => ListQueryResponse.md} | 4 +- ...eReadResponse.md => ListSampleResponse.md} | 4 +- ...askReadResponse.md => ListTaskResponse.md} | 4 +- ...ReadResponse.md => ListWebhookResponse.md} | 4 +- .../v1/model_autopilot_v1_assistant.go | 2 +- .../model_autopilot_v1_assistant_defaults.go | 2 +- .../model_autopilot_v1_assistant_dialogue.go | 2 +- ...model_autopilot_v1_assistant_field_type.go | 2 +- ...lot_v1_assistant_field_type_field_value.go | 2 +- ...odel_autopilot_v1_assistant_model_build.go | 2 +- .../v1/model_autopilot_v1_assistant_query.go | 2 +- ...odel_autopilot_v1_assistant_style_sheet.go | 2 +- .../v1/model_autopilot_v1_assistant_task.go | 2 +- ...model_autopilot_v1_assistant_task_field.go | 2 +- ...odel_autopilot_v1_assistant_task_sample.go | 2 +- ...utopilot_v1_assistant_task_task_actions.go | 2 +- ...pilot_v1_assistant_task_task_statistics.go | 2 +- .../model_autopilot_v1_assistant_webhook.go | 2 +- .../model_autopilot_v1_restore_assistant.go | 2 +- .../v1/model_create_assistant_request.go | 2 +- .../v1/model_create_field_request.go | 2 +- .../v1/model_create_field_type_request.go | 2 +- .../v1/model_create_field_value_request.go | 2 +- .../v1/model_create_model_build_request.go | 2 +- .../v1/model_create_query_request.go | 2 +- .../v1/model_create_sample_request.go | 2 +- .../autopilot/v1/model_create_task_request.go | 2 +- .../v1/model_create_webhook_request.go | 2 +- ...se.go => model_list_assistant_response.go} | 8 +- ... => model_list_assistant_response_meta.go} | 6 +- ...sponse.go => model_list_field_response.go} | 8 +- ...e.go => model_list_field_type_response.go} | 8 +- ....go => model_list_field_value_response.go} | 8 +- ....go => model_list_model_build_response.go} | 8 +- ...sponse.go => model_list_query_response.go} | 8 +- ...ponse.go => model_list_sample_response.go} | 8 +- ...esponse.go => model_list_task_response.go} | 8 +- ...onse.go => model_list_webhook_response.go} | 8 +- .../v1/model_update_assistant_request.go | 2 +- .../v1/model_update_defaults_request.go | 2 +- .../v1/model_update_field_type_request.go | 2 +- .../v1/model_update_model_build_request.go | 2 +- .../v1/model_update_query_request.go | 2 +- .../model_update_restore_assistant_request.go | 2 +- .../v1/model_update_sample_request.go | 2 +- .../v1/model_update_style_sheet_request.go | 2 +- .../v1/model_update_task_actions_request.go | 2 +- .../autopilot/v1/model_update_task_request.go | 2 +- .../v1/model_update_webhook_request.go | 2 +- rest/autopilot/v1/response.go | 2 +- rest/bulkexports/v1/README.md | 8 +- rest/bulkexports/v1/api_default.go | 54 +- .../BulkexportsV1ExportDayReadResponseMeta.md | 17 - rest/bulkexports/v1/docs/DefaultApi.md | 24 +- ...tDayReadResponse.md => ListDayResponse.md} | 4 +- .../v1/docs/ListDayResponseMeta.md} | 2 +- ...onse.md => ListExportCustomJobResponse.md} | 4 +- .../v1/model_bulkexports_v1_export.go | 2 +- ...del_bulkexports_v1_export_configuration.go | 2 +- .../v1/model_bulkexports_v1_export_day.go | 2 +- ...odel_bulkexports_v1_export_day_instance.go | 2 +- ...xports_v1_export_day_read_response_meta.go | 21 - ...bulkexports_v1_export_export_custom_job.go | 2 +- .../v1/model_bulkexports_v1_export_job.go | 2 +- .../model_create_export_custom_job_request.go | 2 +- ...response.go => model_list_day_response.go} | 8 +- .../v1/model_list_day_response_meta.go | 21 + ... model_list_export_custom_job_response.go} | 8 +- ...del_update_export_configuration_request.go | 2 +- rest/bulkexports/v1/response.go | 2 +- rest/chat/v1/README.md | 22 +- rest/chat/v1/api_default.go | 278 +-- rest/chat/v1/docs/DefaultApi.md | 36 +- ...ReadResponse.md => ListChannelResponse.md} | 4 +- ...dResponse.md => ListCredentialResponse.md} | 4 +- .../v1/docs/ListCredentialResponseMeta.md} | 2 +- ...eReadResponse.md => ListInviteResponse.md} | 4 +- ...rReadResponse.md => ListMemberResponse.md} | 4 +- ...ReadResponse.md => ListMessageResponse.md} | 4 +- ...oleReadResponse.md => ListRoleResponse.md} | 4 +- ...ReadResponse.md => ListServiceResponse.md} | 4 +- ...Response.md => ListUserChannelResponse.md} | 4 +- ...serReadResponse.md => ListUserResponse.md} | 4 +- rest/chat/v1/model_chat_v1_credential.go | 2 +- rest/chat/v1/model_chat_v1_service.go | 2 +- rest/chat/v1/model_chat_v1_service_channel.go | 2 +- .../model_chat_v1_service_channel_invite.go | 2 +- .../model_chat_v1_service_channel_member.go | 2 +- .../model_chat_v1_service_channel_message.go | 2 +- rest/chat/v1/model_chat_v1_service_role.go | 2 +- rest/chat/v1/model_chat_v1_service_user.go | 2 +- ...model_chat_v1_service_user_user_channel.go | 2 +- rest/chat/v1/model_create_channel_request.go | 2 +- .../v1/model_create_credential_request.go | 2 +- rest/chat/v1/model_create_invite_request.go | 2 +- rest/chat/v1/model_create_member_request.go | 2 +- rest/chat/v1/model_create_message_request.go | 2 +- rest/chat/v1/model_create_role_request.go | 2 +- rest/chat/v1/model_create_service_request.go | 2 +- rest/chat/v1/model_create_user_request.go | 2 +- ...onse.go => model_list_channel_response.go} | 8 +- ...e.go => model_list_credential_response.go} | 8 +- .../model_list_credential_response_meta.go} | 6 +- ...ponse.go => model_list_invite_response.go} | 8 +- ...ponse.go => model_list_member_response.go} | 8 +- ...onse.go => model_list_message_response.go} | 8 +- ...esponse.go => model_list_role_response.go} | 8 +- ...onse.go => model_list_service_response.go} | 8 +- ...go => model_list_user_channel_response.go} | 8 +- ...esponse.go => model_list_user_response.go} | 8 +- rest/chat/v1/model_update_channel_request.go | 2 +- .../v1/model_update_credential_request.go | 2 +- rest/chat/v1/model_update_member_request.go | 2 +- rest/chat/v1/model_update_message_request.go | 2 +- rest/chat/v1/model_update_role_request.go | 2 +- rest/chat/v1/model_update_service_request.go | 2 +- rest/chat/v1/model_update_user_request.go | 2 +- rest/chat/v1/response.go | 2 +- rest/chat/v2/README.md | 28 +- rest/chat/v2/api_default.go | 362 ++-- rest/chat/v2/docs/DefaultApi.md | 48 +- ...ReadResponse.md => ListBindingResponse.md} | 4 +- ...ReadResponse.md => ListChannelResponse.md} | 4 +- ...ponse.md => ListChannelWebhookResponse.md} | 4 +- ...dResponse.md => ListCredentialResponse.md} | 4 +- .../v2/docs/ListCredentialResponseMeta.md | 17 + ...eReadResponse.md => ListInviteResponse.md} | 4 +- ...rReadResponse.md => ListMemberResponse.md} | 4 +- ...ReadResponse.md => ListMessageResponse.md} | 4 +- ...oleReadResponse.md => ListRoleResponse.md} | 4 +- ...ReadResponse.md => ListServiceResponse.md} | 4 +- ...Response.md => ListUserBindingResponse.md} | 4 +- ...Response.md => ListUserChannelResponse.md} | 4 +- ...serReadResponse.md => ListUserResponse.md} | 4 +- rest/chat/v2/model_chat_v2_credential.go | 2 +- rest/chat/v2/model_chat_v2_service.go | 2 +- rest/chat/v2/model_chat_v2_service_binding.go | 2 +- rest/chat/v2/model_chat_v2_service_channel.go | 2 +- ...chat_v2_service_channel_channel_webhook.go | 2 +- .../model_chat_v2_service_channel_invite.go | 2 +- .../model_chat_v2_service_channel_member.go | 2 +- .../model_chat_v2_service_channel_message.go | 2 +- rest/chat/v2/model_chat_v2_service_role.go | 2 +- rest/chat/v2/model_chat_v2_service_user.go | 2 +- ...model_chat_v2_service_user_user_binding.go | 2 +- ...model_chat_v2_service_user_user_channel.go | 2 +- rest/chat/v2/model_create_channel_request.go | 2 +- .../model_create_channel_webhook_request.go | 2 +- .../v2/model_create_credential_request.go | 2 +- rest/chat/v2/model_create_invite_request.go | 2 +- rest/chat/v2/model_create_member_request.go | 2 +- rest/chat/v2/model_create_message_request.go | 2 +- rest/chat/v2/model_create_role_request.go | 2 +- rest/chat/v2/model_create_service_request.go | 2 +- rest/chat/v2/model_create_user_request.go | 2 +- ...onse.go => model_list_binding_response.go} | 8 +- ...onse.go => model_list_channel_response.go} | 8 +- ...=> model_list_channel_webhook_response.go} | 8 +- ...e.go => model_list_credential_response.go} | 8 +- .../model_list_credential_response_meta.go} | 6 +- ...ponse.go => model_list_invite_response.go} | 8 +- ...ponse.go => model_list_member_response.go} | 8 +- ...onse.go => model_list_message_response.go} | 8 +- ...esponse.go => model_list_role_response.go} | 8 +- ...onse.go => model_list_service_response.go} | 8 +- ...go => model_list_user_binding_response.go} | 8 +- ...go => model_list_user_channel_response.go} | 8 +- ...esponse.go => model_list_user_response.go} | 8 +- rest/chat/v2/model_update_channel_request.go | 2 +- .../model_update_channel_webhook_request.go | 2 +- .../v2/model_update_credential_request.go | 2 +- rest/chat/v2/model_update_member_request.go | 2 +- rest/chat/v2/model_update_message_request.go | 2 +- rest/chat/v2/model_update_role_request.go | 2 +- rest/chat/v2/model_update_service_request.go | 2 +- .../v2/model_update_user_channel_request.go | 2 +- rest/chat/v2/model_update_user_request.go | 2 +- rest/chat/v2/response.go | 2 +- rest/conversations/v1/README.md | 38 +- rest/conversations/v1/api_default.go | 546 ++--- ...ersationsV1ConversationReadResponseMeta.md | 17 - rest/conversations/v1/docs/DefaultApi.md | 68 +- ...ListConversationMessageReceiptResponse.md} | 4 +- ....md => ListConversationMessageResponse.md} | 4 +- ...=> ListConversationParticipantResponse.md} | 4 +- ...esponse.md => ListConversationResponse.md} | 4 +- .../v1/docs/ListConversationResponseMeta.md | 17 + ... ListConversationScopedWebhookResponse.md} | 4 +- ...dResponse.md => ListCredentialResponse.md} | 4 +- ...oleReadResponse.md => ListRoleResponse.md} | 4 +- ...ponse.md => ListServiceBindingResponse.md} | 4 +- ...viceConversationMessageReceiptResponse.md} | 4 +- ...ListServiceConversationMessageResponse.md} | 4 +- ...ServiceConversationParticipantResponse.md} | 4 +- ....md => ListServiceConversationResponse.md} | 4 +- ...rviceConversationScopedWebhookResponse.md} | 4 +- ...ReadResponse.md => ListServiceResponse.md} | 4 +- ...Response.md => ListServiceRoleResponse.md} | 4 +- ...Response.md => ListServiceUserResponse.md} | 4 +- ...serReadResponse.md => ListUserResponse.md} | 4 +- .../model_conversations_v1_configuration.go | 2 +- ..._v1_configuration_configuration_webhook.go | 2 +- .../v1/model_conversations_v1_conversation.go | 2 +- ...ns_v1_conversation_conversation_message.go | 2 +- ...on_message_conversation_message_receipt.go | 2 +- ...versation_message_receipt_read_response.go | 16 - ...tion_conversation_message_read_response.go | 16 - ...1_conversation_conversation_participant.go | 2 +- ..._conversation_participant_read_response.go | 16 - ...onversation_conversation_scoped_webhook.go | 2 +- ...nversation_scoped_webhook_read_response.go | 16 - ...ions_v1_conversation_read_response_meta.go | 21 - .../v1/model_conversations_v1_credential.go | 2 +- .../v1/model_conversations_v1_role.go | 2 +- .../v1/model_conversations_v1_service.go | 2 +- ...onversations_v1_service_service_binding.go | 2 +- ...ations_v1_service_service_configuration.go | 2 +- ...vice_configuration_service_notification.go | 2 +- ...sations_v1_service_service_conversation.go | 2 +- ...nversation_service_conversation_message.go | 2 +- ...vice_conversation_message_read_response.go | 16 - ...ge_service_conversation_message_receipt.go | 2 +- ...versation_message_receipt_read_response.go | 16 - ...sation_service_conversation_participant.go | 2 +- ..._conversation_participant_read_response.go | 16 - ...ion_service_conversation_scoped_webhook.go | 2 +- ...nversation_scoped_webhook_read_response.go | 16 - ...l_conversations_v1_service_service_role.go | 2 +- ...l_conversations_v1_service_service_user.go | 2 +- .../v1/model_conversations_v1_user.go | 2 +- ...del_create_conversation_message_request.go | 2 +- ...create_conversation_participant_request.go | 2 +- .../v1/model_create_conversation_request.go | 2 +- ...ate_conversation_scoped_webhook_request.go | 2 +- .../v1/model_create_credential_request.go | 2 +- .../v1/model_create_role_request.go | 2 +- ...te_service_conversation_message_request.go | 2 +- ...ervice_conversation_participant_request.go | 2 +- ...del_create_service_conversation_request.go | 2 +- ...ice_conversation_scoped_webhook_request.go | 2 +- .../v1/model_create_service_request.go | 2 +- .../v1/model_create_service_role_request.go | 2 +- .../v1/model_create_service_user_request.go | 2 +- .../v1/model_create_user_request.go | 2 +- ...t_conversation_message_receipt_response.go | 16 + ...odel_list_conversation_message_response.go | 16 + ..._list_conversation_participant_response.go | 16 + ...go => model_list_conversation_response.go} | 8 +- .../model_list_conversation_response_meta.go | 21 + ...st_conversation_scoped_webhook_response.go | 16 + ...e.go => model_list_credential_response.go} | 8 +- ...esponse.go => model_list_role_response.go} | 8 +- ...=> model_list_service_binding_response.go} | 8 +- ...e_conversation_message_receipt_response.go | 16 + ...t_service_conversation_message_response.go | 16 + ...rvice_conversation_participant_response.go | 16 + ...del_list_service_conversation_response.go} | 8 +- ...ce_conversation_scoped_webhook_response.go | 16 + ...onse.go => model_list_service_response.go} | 8 +- ...go => model_list_service_role_response.go} | 8 +- ...go => model_list_service_user_response.go} | 8 +- ...esponse.go => model_list_user_response.go} | 8 +- .../v1/model_update_configuration_request.go | 2 +- ...el_update_configuration_webhook_request.go | 2 +- ...del_update_conversation_message_request.go | 2 +- ...update_conversation_participant_request.go | 2 +- .../v1/model_update_conversation_request.go | 2 +- ...ate_conversation_scoped_webhook_request.go | 2 +- .../v1/model_update_credential_request.go | 2 +- .../v1/model_update_role_request.go | 2 +- ...el_update_service_configuration_request.go | 2 +- ...te_service_conversation_message_request.go | 2 +- ...ervice_conversation_participant_request.go | 2 +- ...del_update_service_conversation_request.go | 2 +- ...ice_conversation_scoped_webhook_request.go | 2 +- ...del_update_service_notification_request.go | 2 +- .../v1/model_update_service_role_request.go | 2 +- .../v1/model_update_service_user_request.go | 2 +- .../v1/model_update_user_request.go | 2 +- rest/conversations/v1/response.go | 2 +- rest/events/v1/README.md | 14 +- rest/events/v1/api_default.go | 66 +- rest/events/v1/docs/CreateSinkRequest.md | 2 +- rest/events/v1/docs/DefaultApi.md | 22 +- .../EventsV1SchemaVersionReadResponseMeta.md | 17 - ...adResponse.md => ListEventTypeResponse.md} | 4 +- ...inkReadResponse.md => ListSinkResponse.md} | 4 +- ...onse.md => ListSubscribedEventResponse.md} | 4 +- ...esponse.md => ListSubscriptionResponse.md} | 4 +- ...ReadResponse.md => ListVersionResponse.md} | 4 +- .../events/v1/docs/ListVersionResponseMeta.md | 17 + rest/events/v1/model_create_sink_request.go | 4 +- .../v1/model_create_sink_validate_request.go | 2 +- .../v1/model_create_subscription_request.go | 2 +- rest/events/v1/model_events_v1_event_type.go | 2 +- rest/events/v1/model_events_v1_schema.go | 2 +- .../v1/model_events_v1_schema_version.go | 2 +- ...ts_v1_schema_version_read_response_meta.go | 21 - rest/events/v1/model_events_v1_sink.go | 2 +- .../v1/model_events_v1_sink_sink_test_.go | 2 +- .../v1/model_events_v1_sink_sink_validate.go | 2 +- .../events/v1/model_events_v1_subscription.go | 2 +- ...events_v1_subscription_subscribed_event.go | 2 +- ...cription_subscribed_event_read_response.go | 16 - ...e.go => model_list_event_type_response.go} | 8 +- ...esponse.go => model_list_sink_response.go} | 8 +- .../model_list_subscribed_event_response.go | 16 + ...go => model_list_subscription_response.go} | 8 +- ...onse.go => model_list_version_response.go} | 8 +- .../v1/model_list_version_response_meta.go | 21 + .../v1/model_update_subscription_request.go | 2 +- rest/events/v1/response.go | 2 +- rest/fax/v1/README.md | 8 +- rest/fax/v1/api_default.go | 48 +- rest/fax/v1/docs/DefaultApi.md | 8 +- ...eadResponse.md => ListFaxMediaResponse.md} | 4 +- ...1FaxReadResponse.md => ListFaxResponse.md} | 4 +- rest/fax/v1/docs/ListFaxResponseMeta.md | 17 + rest/fax/v1/model_create_fax_request.go | 2 +- rest/fax/v1/model_fax_v1_fax.go | 2 +- rest/fax/v1/model_fax_v1_fax_fax_media.go | 2 +- ...se.go => model_list_fax_media_response.go} | 8 +- ...response.go => model_list_fax_response.go} | 8 +- ...eta.go => model_list_fax_response_meta.go} | 6 +- rest/fax/v1/model_update_fax_request.go | 2 +- rest/fax/v1/response.go | 2 +- rest/flex/v1/README.md | 10 +- rest/flex/v1/api_default.go | 136 +- rest/flex/v1/docs/DefaultApi.md | 12 +- ...ReadResponse.md => ListChannelResponse.md} | 4 +- rest/flex/v1/docs/ListChannelResponseMeta.md | 17 + ...eadResponse.md => ListFlexFlowResponse.md} | 4 +- ...dResponse.md => ListWebChannelResponse.md} | 4 +- rest/flex/v1/model_create_channel_request.go | 2 +- .../flex/v1/model_create_flex_flow_request.go | 2 +- .../v1/model_create_web_channel_request.go | 2 +- rest/flex/v1/model_flex_v1_channel.go | 2 +- rest/flex/v1/model_flex_v1_configuration.go | 2 +- rest/flex/v1/model_flex_v1_flex_flow.go | 2 +- rest/flex/v1/model_flex_v1_web_channel.go | 2 +- ...onse.go => model_list_channel_response.go} | 8 +- ...go => model_list_channel_response_meta.go} | 6 +- ...se.go => model_list_flex_flow_response.go} | 8 +- ....go => model_list_web_channel_response.go} | 8 +- .../flex/v1/model_update_flex_flow_request.go | 2 +- .../v1/model_update_web_channel_request.go | 2 +- rest/flex/v1/response.go | 2 +- rest/insights/v1/README.md | 28 +- rest/insights/v1/api_call_tag.go | 61 - rest/insights/v1/api_default.go | 357 ++++ rest/insights/v1/api_events_tag.go | 75 - rest/insights/v1/api_metrics_tag.go | 80 - rest/insights/v1/api_summary_tag.go | 70 - .../v1/api_video_participant_summary_tag.go | 102 - .../insights/v1/api_video_room_summary_tag.go | 124 -- rest/insights/v1/docs/CallTagApi.md | 41 - rest/insights/v1/docs/DefaultApi.md | 334 ++++ rest/insights/v1/docs/EventsTagApi.md | 53 - .../insights/v1/docs/InsightsV1CallSummary.md | 1 + ...ightsV1VideoRoomSummaryReadResponseMeta.md | 17 - ...ntReadResponse.md => ListEventResponse.md} | 4 +- ...cReadResponse.md => ListMetricResponse.md} | 4 +- ...=> ListVideoParticipantSummaryResponse.md} | 4 +- ...nse.md => ListVideoRoomSummaryResponse.md} | 4 +- .../docs/ListVideoRoomSummaryResponseMeta.md} | 2 +- rest/insights/v1/docs/MetricsTagApi.md | 54 - rest/insights/v1/docs/SummaryTagApi.md | 52 - .../v1/docs/VideoParticipantSummaryTagApi.md | 86 - .../v1/docs/VideoRoomSummaryTagApi.md | 88 - rest/insights/v1/model_insights_v1_call.go | 2 +- .../v1/model_insights_v1_call_event.go | 2 +- .../v1/model_insights_v1_call_metric.go | 2 +- .../v1/model_insights_v1_call_summary.go | 3 +- .../model_insights_v1_video_room_summary.go | 2 +- ...1_video_room_summary_read_response_meta.go | 21 - ..._room_summary_video_participant_summary.go | 2 +- ...video_participant_summary_read_response.go | 16 - ...sponse.go => model_list_event_response.go} | 8 +- ...ponse.go => model_list_metric_response.go} | 8 +- ...list_video_participant_summary_response.go | 16 + ...model_list_video_room_summary_response.go} | 8 +- ...l_list_video_room_summary_response_meta.go | 21 + rest/insights/v1/response.go | 2 +- rest/ip/messaging/README.md | 28 +- rest/ip/messaging/api_default.go | 362 ++-- rest/ip/messaging/docs/DefaultApi.md | 48 +- .../IpMessagingV1CredentialReadResponse.md | 12 - ...IpMessagingV1CredentialReadResponseMeta.md | 17 - ...agingV1ServiceChannelInviteReadResponse.md | 12 - ...agingV1ServiceChannelMemberReadResponse.md | 12 - ...gingV1ServiceChannelMessageReadResponse.md | 12 - ...IpMessagingV1ServiceChannelReadResponse.md | 12 - .../docs/IpMessagingV1ServiceReadResponse.md | 12 - .../IpMessagingV1ServiceRoleReadResponse.md | 12 - .../IpMessagingV1ServiceUserReadResponse.md | 12 - ...ingV1ServiceUserUserChannelReadResponse.md | 12 - ...IpMessagingV2CredentialReadResponseMeta.md | 17 - ...ReadResponse.md => ListBindingResponse.md} | 4 +- ...ReadResponse.md => ListChannelResponse.md} | 4 +- ...ponse.md => ListChannelWebhookResponse.md} | 4 +- ...dResponse.md => ListCredentialResponse.md} | 4 +- .../docs/ListCredentialResponseMeta.md | 17 + ...eReadResponse.md => ListInviteResponse.md} | 4 +- ...rReadResponse.md => ListMemberResponse.md} | 4 +- ...ReadResponse.md => ListMessageResponse.md} | 4 +- ...oleReadResponse.md => ListRoleResponse.md} | 4 +- ...ReadResponse.md => ListServiceResponse.md} | 4 +- ...Response.md => ListUserBindingResponse.md} | 4 +- ...Response.md => ListUserChannelResponse.md} | 4 +- ...serReadResponse.md => ListUserResponse.md} | 4 +- .../messaging/model_create_channel_request.go | 2 +- .../model_create_channel_webhook_request.go | 2 +- .../model_create_credential_request.go | 2 +- .../messaging/model_create_invite_request.go | 2 +- .../messaging/model_create_member_request.go | 2 +- .../messaging/model_create_message_request.go | 2 +- .../ip/messaging/model_create_role_request.go | 2 +- .../messaging/model_create_service_request.go | 2 +- .../ip/messaging/model_create_user_request.go | 2 +- .../model_ip_messaging_v1_credential.go | 2 +- ...p_messaging_v1_credential_read_response.go | 16 - ...saging_v1_credential_read_response_meta.go | 21 - .../model_ip_messaging_v1_service.go | 2 +- .../model_ip_messaging_v1_service_channel.go | 2 +- ..._ip_messaging_v1_service_channel_invite.go | 2 +- ...v1_service_channel_invite_read_response.go | 16 - ..._ip_messaging_v1_service_channel_member.go | 2 +- ...v1_service_channel_member_read_response.go | 16 - ...ip_messaging_v1_service_channel_message.go | 2 +- ...1_service_channel_message_read_response.go | 16 - ...saging_v1_service_channel_read_response.go | 16 - ...l_ip_messaging_v1_service_read_response.go | 16 - .../model_ip_messaging_v1_service_role.go | 2 +- ...messaging_v1_service_role_read_response.go | 16 - .../model_ip_messaging_v1_service_user.go | 2 +- ...messaging_v1_service_user_read_response.go | 16 - ..._messaging_v1_service_user_user_channel.go | 2 +- ...service_user_user_channel_read_response.go | 16 - .../model_ip_messaging_v2_credential.go | 2 +- ...saging_v2_credential_read_response_meta.go | 21 - .../model_ip_messaging_v2_service.go | 2 +- .../model_ip_messaging_v2_service_binding.go | 2 +- .../model_ip_messaging_v2_service_channel.go | 2 +- ...ging_v2_service_channel_channel_webhook.go | 2 +- ...e_channel_channel_webhook_read_response.go | 16 - ..._ip_messaging_v2_service_channel_invite.go | 2 +- ..._ip_messaging_v2_service_channel_member.go | 2 +- ...ip_messaging_v2_service_channel_message.go | 2 +- .../model_ip_messaging_v2_service_role.go | 2 +- .../model_ip_messaging_v2_service_user.go | 2 +- ..._messaging_v2_service_user_user_binding.go | 2 +- ..._messaging_v2_service_user_user_channel.go | 2 +- ...onse.go => model_list_binding_response.go} | 8 +- ...onse.go => model_list_channel_response.go} | 8 +- .../model_list_channel_webhook_response.go | 16 + ...e.go => model_list_credential_response.go} | 8 +- .../model_list_credential_response_meta.go | 21 + ...ponse.go => model_list_invite_response.go} | 8 +- ...ponse.go => model_list_member_response.go} | 8 +- ...onse.go => model_list_message_response.go} | 8 +- ...esponse.go => model_list_role_response.go} | 8 +- ...onse.go => model_list_service_response.go} | 8 +- ...go => model_list_user_binding_response.go} | 8 +- ...go => model_list_user_channel_response.go} | 8 +- ...esponse.go => model_list_user_response.go} | 8 +- .../messaging/model_update_channel_request.go | 2 +- .../model_update_channel_webhook_request.go | 2 +- .../model_update_credential_request.go | 2 +- .../messaging/model_update_member_request.go | 2 +- .../messaging/model_update_message_request.go | 2 +- .../ip/messaging/model_update_role_request.go | 2 +- .../messaging/model_update_service_request.go | 2 +- .../model_update_user_channel_request.go | 2 +- .../ip/messaging/model_update_user_request.go | 2 +- rest/ip/messaging/response.go | 2 +- rest/lookups/v1/README.md | 2 +- rest/lookups/v1/api_default.go | 12 +- .../v1/model_lookups_v1_phone_number.go | 2 +- rest/lookups/v1/response.go | 2 +- rest/messaging/v1/README.md | 12 +- rest/messaging/v1/api_default.go | 100 +- rest/messaging/v1/docs/DefaultApi.md | 16 +- ...Response.md => ListAlphaSenderResponse.md} | 4 +- ...Response.md => ListPhoneNumberResponse.md} | 4 +- ...ReadResponse.md => ListServiceResponse.md} | 4 +- .../v1/docs/ListServiceResponseMeta.md | 17 + ...adResponse.md => ListShortCodeResponse.md} | 4 +- .../MessagingV1ServiceReadResponseMeta.md | 17 - .../v1/model_create_alpha_sender_request.go | 2 +- .../v1/model_create_phone_number_request.go | 2 +- .../v1/model_create_service_request.go | 2 +- .../v1/model_create_short_code_request.go | 2 +- ...go => model_list_alpha_sender_response.go} | 8 +- ...go => model_list_phone_number_response.go} | 8 +- ...onse.go => model_list_service_response.go} | 8 +- ...go => model_list_service_response_meta.go} | 6 +- ...e.go => model_list_short_code_response.go} | 8 +- .../v1/model_messaging_v1_deactivation.go | 2 +- .../v1/model_messaging_v1_service.go | 2 +- ...model_messaging_v1_service_alpha_sender.go | 2 +- ...model_messaging_v1_service_phone_number.go | 2 +- .../model_messaging_v1_service_short_code.go | 2 +- .../v1/model_update_service_request.go | 2 +- rest/messaging/v1/response.go | 2 +- rest/monitor/v1/README.md | 8 +- rest/monitor/v1/api_default.go | 38 +- rest/monitor/v1/docs/DefaultApi.md | 8 +- ...rtReadResponse.md => ListAlertResponse.md} | 4 +- rest/monitor/v1/docs/ListAlertResponseMeta.md | 17 + ...ntReadResponse.md => ListEventResponse.md} | 4 +- ...sponse.go => model_list_alert_response.go} | 8 +- ...a.go => model_list_alert_response_meta.go} | 6 +- ...sponse.go => model_list_event_response.go} | 8 +- rest/monitor/v1/model_monitor_v1_alert.go | 2 +- .../v1/model_monitor_v1_alert_instance.go | 2 +- rest/monitor/v1/model_monitor_v1_event.go | 2 +- rest/monitor/v1/response.go | 2 +- rest/notify/v1/README.md | 10 +- rest/notify/v1/api_default.go | 170 +- rest/notify/v1/docs/DefaultApi.md | 12 +- ...ReadResponse.md => ListBindingResponse.md} | 4 +- ...dResponse.md => ListCredentialResponse.md} | 4 +- .../v1/docs/ListCredentialResponseMeta.md | 17 + ...ReadResponse.md => ListServiceResponse.md} | 4 +- .../NotifyV1CredentialReadResponseMeta.md | 17 - .../notify/v1/model_create_binding_request.go | 2 +- .../v1/model_create_credential_request.go | 2 +- .../v1/model_create_notification_request.go | 2 +- .../notify/v1/model_create_service_request.go | 2 +- ...onse.go => model_list_binding_response.go} | 8 +- ...e.go => model_list_credential_response.go} | 8 +- ...=> model_list_credential_response_meta.go} | 6 +- ...onse.go => model_list_service_response.go} | 8 +- rest/notify/v1/model_notify_v1_credential.go | 2 +- rest/notify/v1/model_notify_v1_service.go | 2 +- .../v1/model_notify_v1_service_binding.go | 2 +- .../model_notify_v1_service_notification.go | 2 +- .../v1/model_update_credential_request.go | 2 +- .../notify/v1/model_update_service_request.go | 2 +- rest/notify/v1/response.go | 2 +- rest/numbers/v2/README.md | 20 +- rest/numbers/v2/api_default.go | 128 +- rest/numbers/v2/docs/DefaultApi.md | 32 +- ...eReadResponse.md => ListBundleResponse.md} | 4 +- .../numbers/v2/docs/ListBundleResponseMeta.md | 17 + ...ReadResponse.md => ListEndUserResponse.md} | 4 +- ...Response.md => ListEndUserTypeResponse.md} | 4 +- ...dResponse.md => ListEvaluationResponse.md} | 4 +- ...ponse.md => ListItemAssignmentResponse.md} | 4 +- ...dResponse.md => ListRegulationResponse.md} | 4 +- ...e.md => ListSupportingDocumentResponse.md} | 4 +- ... => ListSupportingDocumentTypeResponse.md} | 4 +- ...ulatoryComplianceBundleReadResponseMeta.md | 17 - .../numbers/v2/model_create_bundle_request.go | 2 +- .../v2/model_create_end_user_request.go | 2 +- .../model_create_item_assignment_request.go | 2 +- ...odel_create_supporting_document_request.go | 2 +- rest/numbers/v2/model_list_bundle_response.go | 16 + .../v2/model_list_bundle_response_meta.go | 21 + .../v2/model_list_end_user_response.go | 16 + .../v2/model_list_end_user_type_response.go | 16 + .../v2/model_list_evaluation_response.go | 16 + .../v2/model_list_item_assignment_response.go | 16 + .../v2/model_list_regulation_response.go | 16 + ...model_list_supporting_document_response.go | 16 + ..._list_supporting_document_type_response.go | 16 + ...numbers_v2_regulatory_compliance_bundle.go | 2 +- ...regulatory_compliance_bundle_evaluation.go | 2 +- ...pliance_bundle_evaluation_read_response.go | 16 - ...atory_compliance_bundle_item_assignment.go | 2 +- ...ce_bundle_item_assignment_read_response.go | 16 - ...ulatory_compliance_bundle_read_response.go | 16 - ...ry_compliance_bundle_read_response_meta.go | 21 - ...mbers_v2_regulatory_compliance_end_user.go | 2 +- ...atory_compliance_end_user_read_response.go | 16 - ..._v2_regulatory_compliance_end_user_type.go | 2 +- ..._compliance_end_user_type_read_response.go | 16 - ...ers_v2_regulatory_compliance_regulation.go | 2 +- ...ory_compliance_regulation_read_response.go | 16 - ...gulatory_compliance_supporting_document.go | 2 +- ...iance_supporting_document_read_response.go | 16 - ...ory_compliance_supporting_document_type.go | 2 +- ..._supporting_document_type_read_response.go | 16 - .../numbers/v2/model_update_bundle_request.go | 2 +- .../v2/model_update_end_user_request.go | 2 +- ...odel_update_supporting_document_request.go | 2 +- rest/numbers/v2/response.go | 2 +- rest/preview/README.md | 72 +- rest/preview/api_default.go | 780 ++++---- rest/preview/docs/DefaultApi.md | 152 +- ...adResponse.md => ListAssistantResponse.md} | 4 +- ...d => ListAuthorizationDocumentResponse.md} | 4 +- ...=> ListAvailableAddOnExtensionResponse.md} | 4 +- ...ponse.md => ListAvailableAddOnResponse.md} | 4 +- ...Response.md => ListCertificateResponse.md} | 4 +- ...ReadResponse.md => ListCommandResponse.md} | 4 +- ...tDayReadResponse.md => ListDayResponse.md} | 4 +- rest/preview/docs/ListDayResponseMeta.md | 17 + ...ListDependentHostedNumberOrderResponse.md} | 4 +- ...dResponse.md => ListDeploymentResponse.md} | 4 +- ...eReadResponse.md => ListDeviceResponse.md} | 4 +- ...e.md => ListDocumentPermissionResponse.md} | 4 +- ...eadResponse.md => ListDocumentResponse.md} | 4 +- ...onse.md => ListExportCustomJobResponse.md} | 4 +- ...ldReadResponse.md => ListFieldResponse.md} | 4 +- ...adResponse.md => ListFieldTypeResponse.md} | 4 +- ...dResponse.md => ListFieldValueResponse.md} | 4 +- ...etReadResponse.md => ListFleetResponse.md} | 4 +- ...se.md => ListHostedNumberOrderResponse.md} | 4 +- ...=> ListInstalledAddOnExtensionResponse.md} | 4 +- ...ponse.md => ListInstalledAddOnResponse.md} | 4 +- ...tKeyReadResponse.md => ListKeyResponse.md} | 4 +- ...dResponse.md => ListModelBuildResponse.md} | 4 +- ...ryReadResponse.md => ListQueryResponse.md} | 4 +- ...eadResponse.md => ListRatePlanResponse.md} | 4 +- ...eReadResponse.md => ListSampleResponse.md} | 4 +- ...ReadResponse.md => ListServiceResponse.md} | 4 +- ...sSimReadResponse.md => ListSimResponse.md} | 4 +- ...esponse.md => ListSyncListItemResponse.md} | 4 +- ...e.md => ListSyncListPermissionResponse.md} | 4 +- ...eadResponse.md => ListSyncListResponse.md} | 4 +- ...Response.md => ListSyncMapItemResponse.md} | 4 +- ...se.md => ListSyncMapPermissionResponse.md} | 4 +- ...ReadResponse.md => ListSyncMapResponse.md} | 4 +- ...askReadResponse.md => ListTaskResponse.md} | 4 +- ...iewBulkExportsExportDayReadResponseMeta.md | 17 - .../preview/model_create_assistant_request.go | 2 +- ...l_create_authorization_document_request.go | 2 +- .../model_create_certificate_request.go | 2 +- rest/preview/model_create_channel_request.go | 2 +- rest/preview/model_create_command_request.go | 2 +- .../model_create_deployment_request.go | 2 +- rest/preview/model_create_device_request.go | 2 +- rest/preview/model_create_document_request.go | 2 +- .../model_create_export_custom_job_request.go | 2 +- rest/preview/model_create_field_request.go | 2 +- .../model_create_field_type_request.go | 2 +- .../model_create_field_value_request.go | 2 +- rest/preview/model_create_fleet_request.go | 2 +- ...odel_create_hosted_number_order_request.go | 2 +- .../model_create_installed_add_on_request.go | 2 +- rest/preview/model_create_key_request.go | 2 +- .../model_create_model_build_request.go | 2 +- rest/preview/model_create_query_request.go | 2 +- .../preview/model_create_rate_plan_request.go | 2 +- rest/preview/model_create_sample_request.go | 2 +- rest/preview/model_create_service_request.go | 2 +- .../model_create_sync_list_item_request.go | 2 +- .../preview/model_create_sync_list_request.go | 2 +- .../model_create_sync_map_item_request.go | 2 +- rest/preview/model_create_sync_map_request.go | 2 +- rest/preview/model_create_task_request.go | 2 +- ...se.go => model_list_assistant_response.go} | 8 +- ...el_list_authorization_document_response.go | 16 + ...ist_available_add_on_extension_response.go | 16 + ...> model_list_available_add_on_response.go} | 8 +- .../model_list_certificate_response.go | 16 + ...onse.go => model_list_command_response.go} | 8 +- ...response.go => model_list_day_response.go} | 8 +- rest/preview/model_list_day_response_meta.go | 21 + ..._dependent_hosted_number_order_response.go | 16 + .../preview/model_list_deployment_response.go | 16 + rest/preview/model_list_device_response.go | 16 + ...model_list_document_permission_response.go | 16 + ...nse.go => model_list_document_response.go} | 8 +- .../model_list_export_custom_job_response.go | 16 + rest/preview/model_list_field_response.go | 16 + ...e.go => model_list_field_type_response.go} | 8 +- .../model_list_field_value_response.go | 16 + ...sponse.go => model_list_fleet_response.go} | 8 +- ...model_list_hosted_number_order_response.go | 16 + ...ist_installed_add_on_extension_response.go | 16 + ...> model_list_installed_add_on_response.go} | 8 +- rest/preview/model_list_key_response.go | 16 + ....go => model_list_model_build_response.go} | 8 +- ...sponse.go => model_list_query_response.go} | 8 +- ...se.go => model_list_rate_plan_response.go} | 8 +- rest/preview/model_list_sample_response.go | 16 + ...onse.go => model_list_service_response.go} | 8 +- ...response.go => model_list_sim_response.go} | 8 +- .../model_list_sync_list_item_response.go | 16 + ...odel_list_sync_list_permission_response.go | 16 + ...se.go => model_list_sync_list_response.go} | 8 +- .../model_list_sync_map_item_response.go | 16 + ...model_list_sync_map_permission_response.go | 16 + ...nse.go => model_list_sync_map_response.go} | 8 +- ...esponse.go => model_list_task_response.go} | 8 +- .../model_preview_bulk_exports_export.go | 2 +- ...eview_bulk_exports_export_configuration.go | 2 +- .../model_preview_bulk_exports_export_day.go | 2 +- ...review_bulk_exports_export_day_instance.go | 2 +- ...k_exports_export_day_read_response_meta.go | 21 - ...w_bulk_exports_export_export_custom_job.go | 2 +- ..._export_export_custom_job_read_response.go | 16 - .../model_preview_bulk_exports_export_job.go | 2 +- .../model_preview_deployed_devices_fleet.go | 2 +- ...view_deployed_devices_fleet_certificate.go | 2 +- ...devices_fleet_certificate_read_response.go | 16 - ...eview_deployed_devices_fleet_deployment.go | 2 +- ..._devices_fleet_deployment_read_response.go | 16 - ...l_preview_deployed_devices_fleet_device.go | 2 +- ...oyed_devices_fleet_device_read_response.go | 16 - ...odel_preview_deployed_devices_fleet_key.go | 2 +- ...eployed_devices_fleet_key_read_response.go | 16 - ...w_hosted_numbers_authorization_document.go | 2 +- ..._document_dependent_hosted_number_order.go | 2 +- ...ndent_hosted_number_order_read_response.go | 16 - ...rs_authorization_document_read_response.go | 16 - ...view_hosted_numbers_hosted_number_order.go | 2 +- ...mbers_hosted_number_order_read_response.go | 16 - ...el_preview_marketplace_available_add_on.go | 2 +- ...lable_add_on_available_add_on_extension.go | 2 +- ...vailable_add_on_extension_read_response.go | 16 - ...el_preview_marketplace_installed_add_on.go | 2 +- ...alled_add_on_installed_add_on_extension.go | 2 +- ...nstalled_add_on_extension_read_response.go | 16 - rest/preview/model_preview_sync_service.go | 2 +- .../model_preview_sync_service_document.go | 2 +- ...nc_service_document_document_permission.go | 2 +- ...ument_document_permission_read_response.go | 16 - .../model_preview_sync_service_sync_list.go | 2 +- ...w_sync_service_sync_list_sync_list_item.go | 2 +- ..._sync_list_sync_list_item_read_response.go | 16 - ..._service_sync_list_sync_list_permission.go | 2 +- ...list_sync_list_permission_read_response.go | 16 - .../model_preview_sync_service_sync_map.go | 2 +- ...iew_sync_service_sync_map_sync_map_item.go | 2 +- ...ce_sync_map_sync_map_item_read_response.go | 16 - ...nc_service_sync_map_sync_map_permission.go | 2 +- ...c_map_sync_map_permission_read_response.go | 16 - ...l_preview_trusted_comms_branded_channel.go | 2 +- ...w_trusted_comms_branded_channel_channel.go | 2 +- ...review_trusted_comms_brands_information.go | 2 +- .../model_preview_trusted_comms_cps.go | 2 +- ...odel_preview_trusted_comms_current_call.go | 2 +- .../model_preview_understand_assistant.go | 2 +- ...nd_assistant_assistant_fallback_actions.go | 2 +- ..._assistant_assistant_initiation_actions.go | 2 +- ...l_preview_understand_assistant_dialogue.go | 2 +- ...preview_understand_assistant_field_type.go | 2 +- ...rstand_assistant_field_type_field_value.go | 2 +- ...nt_field_type_field_value_read_response.go | 16 - ...review_understand_assistant_model_build.go | 2 +- ...odel_preview_understand_assistant_query.go | 2 +- ...review_understand_assistant_style_sheet.go | 2 +- ...model_preview_understand_assistant_task.go | 2 +- ...preview_understand_assistant_task_field.go | 2 +- ...tand_assistant_task_field_read_response.go | 16 - ...review_understand_assistant_task_sample.go | 2 +- ...and_assistant_task_sample_read_response.go | 16 - ..._understand_assistant_task_task_actions.go | 2 +- ...derstand_assistant_task_task_statistics.go | 2 +- .../preview/model_preview_wireless_command.go | 2 +- .../model_preview_wireless_rate_plan.go | 2 +- rest/preview/model_preview_wireless_sim.go | 2 +- .../model_preview_wireless_sim_usage.go | 2 +- ...date_assistant_fallback_actions_request.go | 2 +- ...te_assistant_initiation_actions_request.go | 2 +- .../preview/model_update_assistant_request.go | 2 +- ...l_update_authorization_document_request.go | 2 +- .../model_update_certificate_request.go | 2 +- .../model_update_deployment_request.go | 2 +- rest/preview/model_update_device_request.go | 2 +- ...odel_update_document_permission_request.go | 2 +- rest/preview/model_update_document_request.go | 2 +- ...del_update_export_configuration_request.go | 2 +- .../model_update_field_type_request.go | 2 +- rest/preview/model_update_fleet_request.go | 2 +- ...odel_update_hosted_number_order_request.go | 2 +- ...date_installed_add_on_extension_request.go | 2 +- .../model_update_installed_add_on_request.go | 2 +- rest/preview/model_update_key_request.go | 2 +- .../model_update_model_build_request.go | 2 +- rest/preview/model_update_query_request.go | 2 +- .../preview/model_update_rate_plan_request.go | 2 +- rest/preview/model_update_sample_request.go | 2 +- rest/preview/model_update_service_request.go | 2 +- rest/preview/model_update_sim_request.go | 2 +- .../model_update_style_sheet_request.go | 2 +- .../model_update_sync_list_item_request.go | 2 +- ...del_update_sync_list_permission_request.go | 2 +- .../model_update_sync_map_item_request.go | 2 +- ...odel_update_sync_map_permission_request.go | 2 +- .../model_update_task_actions_request.go | 2 +- rest/preview/model_update_task_request.go | 2 +- rest/preview/response.go | 2 +- rest/pricing/v1/README.md | 10 +- rest/pricing/v1/api_default.go | 28 +- rest/pricing/v1/docs/DefaultApi.md | 12 +- ...nse.md => ListMessagingCountryResponse.md} | 4 +- .../docs/ListMessagingCountryResponseMeta.md} | 2 +- ...e.md => ListPhoneNumberCountryResponse.md} | 4 +- ...esponse.md => ListVoiceCountryResponse.md} | 4 +- ...ssagingMessagingCountryReadResponseMeta.md | 17 - .../model_list_messaging_country_response.go | 16 + ...el_list_messaging_country_response_meta.go | 21 + ...odel_list_phone_number_country_response.go | 16 + ...o => model_list_voice_country_response.go} | 8 +- rest/pricing/v1/model_pricing_v1_messaging.go | 2 +- ..._pricing_v1_messaging_messaging_country.go | 2 +- ...v1_messaging_messaging_country_instance.go | 2 +- ...ing_country_instance_inbound_sms_prices.go | 2 +- ...ng_country_instance_outbound_sms_prices.go | 2 +- ...ssaging_messaging_country_read_response.go | 16 - ...ng_messaging_country_read_response_meta.go | 21 - .../v1/model_pricing_v1_phone_number.go | 2 +- ...ng_v1_phone_number_phone_number_country.go | 2 +- ...ne_number_phone_number_country_instance.go | 2 +- ...mber_phone_number_country_read_response.go | 16 - rest/pricing/v1/model_pricing_v1_voice.go | 2 +- .../model_pricing_v1_voice_voice_country.go | 2 +- ...pricing_v1_voice_voice_country_instance.go | 2 +- ...country_instance_outbound_prefix_prices.go | 2 +- .../v1/model_pricing_v1_voice_voice_number.go | 2 +- ..._voice_voice_number_outbound_call_price.go | 2 +- rest/pricing/v1/response.go | 2 +- rest/pricing/v2/README.md | 6 +- rest/pricing/v2/api_default.go | 14 +- rest/pricing/v2/docs/DefaultApi.md | 4 +- ...esponse.md => ListVoiceCountryResponse.md} | 4 +- .../v2/docs/ListVoiceCountryResponseMeta.md | 17 + ...cingV2VoiceVoiceCountryReadResponseMeta.md | 17 - ...o => model_list_voice_country_response.go} | 8 +- .../model_list_voice_country_response_meta.go | 21 + rest/pricing/v2/model_pricing_v2_voice.go | 2 +- .../model_pricing_v2_voice_voice_country.go | 2 +- ...pricing_v2_voice_voice_country_instance.go | 2 +- ...ce_country_instance_inbound_call_prices.go | 2 +- ...country_instance_outbound_prefix_prices.go | 2 +- ..._voice_voice_country_read_response_meta.go | 21 - .../v2/model_pricing_v2_voice_voice_number.go | 2 +- ...voice_voice_number_outbound_call_prices.go | 2 +- rest/pricing/v2/response.go | 2 +- rest/proxy/v1/README.md | 18 +- rest/proxy/v1/api_default.go | 140 +- rest/proxy/v1/docs/DefaultApi.md | 28 +- ...Response.md => ListInteractionResponse.md} | 4 +- ...e.md => ListMessageInteractionResponse.md} | 4 +- ...Response.md => ListParticipantResponse.md} | 4 +- ...Response.md => ListPhoneNumberResponse.md} | 4 +- ...ReadResponse.md => ListServiceResponse.md} | 4 +- rest/proxy/v1/docs/ListServiceResponseMeta.md | 17 + ...ReadResponse.md => ListSessionResponse.md} | 4 +- ...adResponse.md => ListShortCodeResponse.md} | 4 +- .../v1/docs/ProxyV1ServiceReadResponseMeta.md | 17 - ...odel_create_message_interaction_request.go | 2 +- .../v1/model_create_participant_request.go | 2 +- .../v1/model_create_phone_number_request.go | 2 +- rest/proxy/v1/model_create_service_request.go | 2 +- rest/proxy/v1/model_create_session_request.go | 2 +- .../v1/model_create_short_code_request.go | 2 +- ....go => model_list_interaction_response.go} | 8 +- ...model_list_message_interaction_response.go | 16 + ....go => model_list_participant_response.go} | 8 +- ...go => model_list_phone_number_response.go} | 8 +- ...onse.go => model_list_service_response.go} | 8 +- ...go => model_list_service_response_meta.go} | 6 +- ...onse.go => model_list_session_response.go} | 8 +- ...e.go => model_list_short_code_response.go} | 8 +- rest/proxy/v1/model_proxy_v1_service.go | 2 +- .../v1/model_proxy_v1_service_phone_number.go | 2 +- .../v1/model_proxy_v1_service_session.go | 2 +- ...el_proxy_v1_service_session_interaction.go | 2 +- ...el_proxy_v1_service_session_participant.go | 2 +- ...session_participant_message_interaction.go | 2 +- ...ipant_message_interaction_read_response.go | 16 - .../v1/model_proxy_v1_service_short_code.go | 2 +- .../v1/model_update_phone_number_request.go | 2 +- rest/proxy/v1/model_update_service_request.go | 2 +- rest/proxy/v1/model_update_session_request.go | 2 +- .../v1/model_update_short_code_request.go | 2 +- rest/proxy/v1/response.go | 2 +- rest/serverless/v1/README.md | 24 +- rest/serverless/v1/api_default.go | 132 +- rest/serverless/v1/docs/DefaultApi.md | 40 +- ...etReadResponse.md => ListAssetResponse.md} | 4 +- ...esponse.md => ListAssetVersionResponse.md} | 4 +- ...ldReadResponse.md => ListBuildResponse.md} | 4 +- ...dResponse.md => ListDeploymentResponse.md} | 4 +- ...Response.md => ListEnvironmentResponse.md} | 4 +- ...eadResponse.md => ListFunctionResponse.md} | 4 +- ...onse.md => ListFunctionVersionResponse.md} | 4 +- ...tLogReadResponse.md => ListLogResponse.md} | 4 +- ...ReadResponse.md => ListServiceResponse.md} | 4 +- .../v1/docs/ListServiceResponseMeta.md | 17 + ...eadResponse.md => ListVariableResponse.md} | 4 +- .../ServerlessV1ServiceReadResponseMeta.md | 17 - .../v1/model_create_asset_request.go | 2 +- .../v1/model_create_build_request.go | 2 +- .../v1/model_create_deployment_request.go | 2 +- .../v1/model_create_environment_request.go | 2 +- .../v1/model_create_function_request.go | 2 +- .../v1/model_create_service_request.go | 2 +- .../v1/model_create_variable_request.go | 2 +- ...sponse.go => model_list_asset_response.go} | 8 +- ...o => model_list_asset_version_response.go} | 8 +- ...sponse.go => model_list_build_response.go} | 8 +- ...e.go => model_list_deployment_response.go} | 8 +- ....go => model_list_environment_response.go} | 8 +- ...nse.go => model_list_function_response.go} | 8 +- ...> model_list_function_version_response.go} | 8 +- ...response.go => model_list_log_response.go} | 8 +- ...onse.go => model_list_service_response.go} | 8 +- ...go => model_list_service_response_meta.go} | 6 +- ...nse.go => model_list_variable_response.go} | 8 +- .../v1/model_serverless_v1_service.go | 2 +- .../v1/model_serverless_v1_service_asset.go | 2 +- ...rverless_v1_service_asset_asset_version.go | 2 +- .../v1/model_serverless_v1_service_build.go | 2 +- ...erverless_v1_service_build_build_status.go | 2 +- ...model_serverless_v1_service_environment.go | 2 +- ...rless_v1_service_environment_deployment.go | 2 +- ...l_serverless_v1_service_environment_log.go | 2 +- ...verless_v1_service_environment_variable.go | 2 +- .../model_serverless_v1_service_function.go | 2 +- ...ss_v1_service_function_function_version.go | 2 +- ...nction_version_function_version_content.go | 2 +- .../v1/model_update_asset_request.go | 2 +- .../v1/model_update_function_request.go | 2 +- .../v1/model_update_service_request.go | 2 +- .../v1/model_update_variable_request.go | 2 +- rest/serverless/v1/response.go | 2 +- rest/studio/v1/README.md | 14 +- rest/studio/v1/api_default.go | 62 +- rest/studio/v1/docs/DefaultApi.md | 20 +- ...dResponse.md => ListEngagementResponse.md} | 4 +- ...adResponse.md => ListExecutionResponse.md} | 4 +- ...sponse.md => ListExecutionStepResponse.md} | 4 +- ...lowReadResponse.md => ListFlowResponse.md} | 4 +- rest/studio/v1/docs/ListFlowResponseMeta.md | 17 + ...tepReadResponse.md => ListStepResponse.md} | 4 +- .../v1/model_create_engagement_request.go | 2 +- .../v1/model_create_execution_request.go | 2 +- ...e.go => model_list_engagement_response.go} | 8 +- ...se.go => model_list_execution_response.go} | 8 +- ... => model_list_execution_step_response.go} | 8 +- ...esponse.go => model_list_flow_response.go} | 8 +- ...ta.go => model_list_flow_response_meta.go} | 6 +- ...esponse.go => model_list_step_response.go} | 8 +- rest/studio/v1/model_studio_v1_flow.go | 2 +- .../v1/model_studio_v1_flow_engagement.go | 2 +- ...o_v1_flow_engagement_engagement_context.go | 2 +- .../model_studio_v1_flow_engagement_step.go | 2 +- ...io_v1_flow_engagement_step_step_context.go | 2 +- .../v1/model_studio_v1_flow_execution.go | 2 +- ...dio_v1_flow_execution_execution_context.go | 2 +- ...studio_v1_flow_execution_execution_step.go | 2 +- ...n_execution_step_execution_step_context.go | 2 +- .../v1/model_update_execution_request.go | 2 +- rest/studio/v1/response.go | 2 +- rest/studio/v2/README.md | 16 +- rest/studio/v2/api_default.go | 174 +- rest/studio/v2/api_flows.go | 127 -- rest/studio/v2/docs/CreateFlowRequest.md | 2 +- rest/studio/v2/docs/DefaultApi.md | 125 +- rest/studio/v2/docs/FlowsApi.md | 99 - ...adResponse.md => ListExecutionResponse.md} | 4 +- ...sponse.md => ListExecutionStepResponse.md} | 4 +- ...lowReadResponse.md => ListFlowResponse.md} | 4 +- rest/studio/v2/docs/ListFlowResponseMeta.md | 17 + ...esponse.md => ListFlowRevisionResponse.md} | 4 +- rest/studio/v2/docs/UpdateFlowRequest.md | 2 +- .../v2/docs/UpdateFlowValidateRequest.md | 8 +- rest/studio/v2/docs/UpdateTestUserRequest.md | 2 +- .../v2/model_create_execution_request.go | 2 +- rest/studio/v2/model_create_flow_request.go | 4 +- ...se.go => model_list_execution_response.go} | 8 +- ... => model_list_execution_step_response.go} | 8 +- ...esponse.go => model_list_flow_response.go} | 8 +- ...ta.go => model_list_flow_response_meta.go} | 6 +- ...o => model_list_flow_revision_response.go} | 8 +- rest/studio/v2/model_studio_v2_flow.go | 2 +- .../v2/model_studio_v2_flow_execution.go | 2 +- ...dio_v2_flow_execution_execution_context.go | 2 +- ...studio_v2_flow_execution_execution_step.go | 2 +- ...n_execution_step_execution_step_context.go | 2 +- .../v2/model_studio_v2_flow_flow_revision.go | 2 +- .../v2/model_studio_v2_flow_test_user.go | 2 +- .../v2/model_studio_v2_flow_validate.go | 2 +- .../v2/model_update_execution_request.go | 2 +- rest/studio/v2/model_update_flow_request.go | 4 +- .../v2/model_update_flow_validate_request.go | 6 +- .../v2/model_update_test_user_request.go | 3 +- rest/studio/v2/response.go | 2 +- rest/supersim/v1/README.md | 18 +- rest/supersim/v1/api_default.go | 156 +- rest/supersim/v1/docs/CreateFleetRequest.md | 2 +- rest/supersim/v1/docs/DefaultApi.md | 34 +- ...ReadResponse.md => ListCommandResponse.md} | 4 +- .../v1/docs/ListCommandResponseMeta.md | 17 + ...etReadResponse.md => ListFleetResponse.md} | 4 +- ...istNetworkAccessProfileNetworkResponse.md} | 4 +- ...md => ListNetworkAccessProfileResponse.md} | 4 +- ...ReadResponse.md => ListNetworkResponse.md} | 4 +- ...1SimReadResponse.md => ListSimResponse.md} | 4 +- ...Response.md => ListUsageRecordResponse.md} | 4 +- .../docs/SupersimV1CommandReadResponseMeta.md | 17 - rest/supersim/v1/docs/UpdateFleetRequest.md | 2 + .../v1/model_create_command_request.go | 2 +- .../supersim/v1/model_create_fleet_request.go | 4 +- ..._network_access_profile_network_request.go | 2 +- ...l_create_network_access_profile_request.go | 2 +- ...onse.go => model_list_command_response.go} | 8 +- ...go => model_list_command_response_meta.go} | 6 +- ...sponse.go => model_list_fleet_response.go} | 8 +- ...network_access_profile_network_response.go | 16 + ...l_list_network_access_profile_response.go} | 8 +- ...onse.go => model_list_network_response.go} | 8 +- ...response.go => model_list_sim_response.go} | 8 +- ...go => model_list_usage_record_response.go} | 8 +- rest/supersim/v1/model_supersim_v1_command.go | 2 +- rest/supersim/v1/model_supersim_v1_fleet.go | 2 +- rest/supersim/v1/model_supersim_v1_network.go | 2 +- ...odel_supersim_v1_network_access_profile.go | 2 +- ..._profile_network_access_profile_network.go | 2 +- ...rk_access_profile_network_read_response.go | 16 - rest/supersim/v1/model_supersim_v1_sim.go | 2 +- .../v1/model_supersim_v1_usage_record.go | 2 +- .../supersim/v1/model_update_fleet_request.go | 6 +- ...l_update_network_access_profile_request.go | 2 +- rest/supersim/v1/model_update_sim_request.go | 2 +- rest/supersim/v1/response.go | 2 +- rest/sync/v1/README.md | 24 +- rest/sync/v1/api_default.go | 306 ++- rest/sync/v1/docs/CreateDocumentRequest.md | 2 +- .../v1/docs/CreateStreamMessageRequest.md | 2 +- .../sync/v1/docs/CreateSyncListItemRequest.md | 2 +- rest/sync/v1/docs/CreateSyncMapItemRequest.md | 2 +- rest/sync/v1/docs/DefaultApi.md | 96 +- ...e.md => ListDocumentPermissionResponse.md} | 4 +- ...eadResponse.md => ListDocumentResponse.md} | 4 +- ...ReadResponse.md => ListServiceResponse.md} | 4 +- rest/sync/v1/docs/ListServiceResponseMeta.md | 17 + ...esponse.md => ListSyncListItemResponse.md} | 4 +- ...e.md => ListSyncListPermissionResponse.md} | 4 +- ...eadResponse.md => ListSyncListResponse.md} | 4 +- ...Response.md => ListSyncMapItemResponse.md} | 4 +- ...se.md => ListSyncMapPermissionResponse.md} | 4 +- ...ReadResponse.md => ListSyncMapResponse.md} | 4 +- ...dResponse.md => ListSyncStreamResponse.md} | 4 +- .../v1/docs/SyncV1ServiceReadResponseMeta.md | 17 - rest/sync/v1/docs/UpdateDocumentRequest.md | 2 +- .../sync/v1/docs/UpdateSyncListItemRequest.md | 2 +- rest/sync/v1/docs/UpdateSyncMapItemRequest.md | 2 +- rest/sync/v1/model_create_document_request.go | 4 +- rest/sync/v1/model_create_service_request.go | 2 +- .../v1/model_create_stream_message_request.go | 4 +- .../v1/model_create_sync_list_item_request.go | 4 +- .../sync/v1/model_create_sync_list_request.go | 2 +- .../v1/model_create_sync_map_item_request.go | 4 +- rest/sync/v1/model_create_sync_map_request.go | 2 +- .../v1/model_create_sync_stream_request.go | 2 +- ...odel_list_document_permission_response.go} | 8 +- ...nse.go => model_list_document_response.go} | 8 +- ...onse.go => model_list_service_response.go} | 8 +- ...go => model_list_service_response_meta.go} | 6 +- ... => model_list_sync_list_item_response.go} | 8 +- ...del_list_sync_list_permission_response.go} | 8 +- ...se.go => model_list_sync_list_response.go} | 8 +- ...o => model_list_sync_map_item_response.go} | 8 +- ...odel_list_sync_map_permission_response.go} | 8 +- ...nse.go => model_list_sync_map_response.go} | 8 +- ....go => model_list_sync_stream_response.go} | 8 +- rest/sync/v1/model_sync_v1_service.go | 2 +- .../sync/v1/model_sync_v1_service_document.go | 2 +- ...v1_service_document_document_permission.go | 2 +- .../v1/model_sync_v1_service_sync_list.go | 2 +- ...ync_v1_service_sync_list_sync_list_item.go | 2 +- ..._service_sync_list_sync_list_permission.go | 2 +- .../sync/v1/model_sync_v1_service_sync_map.go | 2 +- ..._sync_v1_service_sync_map_sync_map_item.go | 2 +- ...v1_service_sync_map_sync_map_permission.go | 2 +- .../v1/model_sync_v1_service_sync_stream.go | 2 +- ...c_v1_service_sync_stream_stream_message.go | 2 +- ...odel_update_document_permission_request.go | 2 +- rest/sync/v1/model_update_document_request.go | 4 +- rest/sync/v1/model_update_service_request.go | 2 +- .../v1/model_update_sync_list_item_request.go | 4 +- ...del_update_sync_list_permission_request.go | 2 +- .../sync/v1/model_update_sync_list_request.go | 2 +- .../v1/model_update_sync_map_item_request.go | 4 +- ...odel_update_sync_map_permission_request.go | 2 +- rest/sync/v1/model_update_sync_map_request.go | 2 +- .../v1/model_update_sync_stream_request.go | 2 +- rest/sync/v1/response.go | 2 +- rest/taskrouter/v1/README.md | 28 +- rest/taskrouter/v1/api_default.go | 618 +++--- rest/taskrouter/v1/docs/CreateTaskRequest.md | 2 +- rest/taskrouter/v1/docs/DefaultApi.md | 50 +- ...eadResponse.md => ListActivityResponse.md} | 4 +- ...ntReadResponse.md => ListEventResponse.md} | 4 +- ...Response.md => ListTaskChannelResponse.md} | 4 +- ...adResponse.md => ListTaskQueueResponse.md} | 4 +- ...md => ListTaskQueuesStatisticsResponse.md} | 4 +- ...onse.md => ListTaskReservationResponse.md} | 4 +- ...askReadResponse.md => ListTaskResponse.md} | 4 +- ...sponse.md => ListWorkerChannelResponse.md} | 4 +- ...se.md => ListWorkerReservationResponse.md} | 4 +- ...rReadResponse.md => ListWorkerResponse.md} | 4 +- ...eadResponse.md => ListWorkflowResponse.md} | 4 +- ...adResponse.md => ListWorkspaceResponse.md} | 4 +- .../v1/docs/ListWorkspaceResponseMeta.md | 17 + .../TaskrouterV1WorkspaceReadResponseMeta.md | 17 - .../v1/model_create_activity_request.go | 2 +- .../v1/model_create_task_channel_request.go | 2 +- .../v1/model_create_task_queue_request.go | 2 +- .../v1/model_create_task_request.go | 4 +- .../v1/model_create_worker_request.go | 2 +- .../v1/model_create_workflow_request.go | 2 +- .../v1/model_create_workspace_request.go | 2 +- ...nse.go => model_list_activity_response.go} | 8 +- ...sponse.go => model_list_event_response.go} | 8 +- ...go => model_list_task_channel_response.go} | 8 +- ...e.go => model_list_task_queue_response.go} | 8 +- ...l_list_task_queues_statistics_response.go} | 8 +- ...> model_list_task_reservation_response.go} | 8 +- ...esponse.go => model_list_task_response.go} | 8 +- .../v1/model_list_worker_channel_response.go | 16 + .../model_list_worker_reservation_response.go | 16 + ...ponse.go => model_list_worker_response.go} | 8 +- ...nse.go => model_list_workflow_response.go} | 8 +- ...se.go => model_list_workspace_response.go} | 8 +- ... => model_list_workspace_response_meta.go} | 6 +- .../v1/model_taskrouter_v1_workspace.go | 2 +- .../model_taskrouter_v1_workspace_activity.go | 2 +- .../v1/model_taskrouter_v1_workspace_event.go | 2 +- .../v1/model_taskrouter_v1_workspace_task.go | 2 +- ...el_taskrouter_v1_workspace_task_channel.go | 2 +- ...odel_taskrouter_v1_workspace_task_queue.go | 2 +- ..._queue_task_queue_cumulative_statistics.go | 2 +- ...k_queue_task_queue_real_time_statistics.go | 2 +- ...kspace_task_queue_task_queue_statistics.go | 2 +- ...space_task_queue_task_queues_statistics.go | 2 +- ...uter_v1_workspace_task_task_reservation.go | 2 +- .../model_taskrouter_v1_workspace_worker.go | 2 +- ...uter_v1_workspace_worker_worker_channel.go | 2 +- ...ace_worker_worker_channel_read_response.go | 16 - ...space_worker_worker_instance_statistics.go | 2 +- ..._v1_workspace_worker_worker_reservation.go | 2 +- ...worker_worker_reservation_read_response.go | 16 - ...r_v1_workspace_worker_worker_statistics.go | 2 +- ...ce_worker_workers_cumulative_statistics.go | 2 +- ...ace_worker_workers_real_time_statistics.go | 2 +- .../model_taskrouter_v1_workspace_workflow.go | 2 +- ...workflow_workflow_cumulative_statistics.go | 2 +- ..._workflow_workflow_real_time_statistics.go | 2 +- ..._workspace_workflow_workflow_statistics.go | 2 +- ...rkspace_workspace_cumulative_statistics.go | 2 +- ...orkspace_workspace_real_time_statistics.go | 2 +- ...outer_v1_workspace_workspace_statistics.go | 2 +- .../v1/model_update_activity_request.go | 2 +- .../v1/model_update_task_channel_request.go | 2 +- .../v1/model_update_task_queue_request.go | 2 +- .../v1/model_update_task_request.go | 2 +- .../model_update_task_reservation_request.go | 2 +- .../v1/model_update_worker_channel_request.go | 2 +- .../v1/model_update_worker_request.go | 2 +- ...model_update_worker_reservation_request.go | 2 +- .../v1/model_update_workflow_request.go | 2 +- .../v1/model_update_workspace_request.go | 2 +- rest/taskrouter/v1/response.go | 2 +- rest/trunking/v1/README.md | 14 +- rest/trunking/v1/api_default.go | 102 +- rest/trunking/v1/docs/DefaultApi.md | 20 +- ...ponse.md => ListCredentialListResponse.md} | 4 +- ....md => ListIpAccessControlListResponse.md} | 4 +- ...ponse.md => ListOriginationUrlResponse.md} | 4 +- ...Response.md => ListPhoneNumberResponse.md} | 4 +- ...nkReadResponse.md => ListTrunkResponse.md} | 4 +- .../trunking/v1/docs/ListTrunkResponseMeta.md | 17 + .../docs/TrunkingV1TrunkReadResponseMeta.md | 17 - .../model_create_credential_list_request.go | 2 +- ...l_create_ip_access_control_list_request.go | 2 +- .../model_create_origination_url_request.go | 2 +- .../v1/model_create_phone_number_request.go | 2 +- .../trunking/v1/model_create_trunk_request.go | 2 +- ...=> model_list_credential_list_response.go} | 8 +- ...l_list_ip_access_control_list_response.go} | 8 +- ...=> model_list_origination_url_response.go} | 8 +- ...go => model_list_phone_number_response.go} | 8 +- ...sponse.go => model_list_trunk_response.go} | 8 +- ...a.go => model_list_trunk_response_meta.go} | 6 +- rest/trunking/v1/model_trunking_v1_trunk.go | 2 +- ...model_trunking_v1_trunk_credential_list.go | 2 +- ...runking_v1_trunk_ip_access_control_list.go | 2 +- ...model_trunking_v1_trunk_origination_url.go | 2 +- .../model_trunking_v1_trunk_phone_number.go | 2 +- .../v1/model_trunking_v1_trunk_recording.go | 2 +- .../model_update_origination_url_request.go | 2 +- .../v1/model_update_recording_request.go | 2 +- .../trunking/v1/model_update_trunk_request.go | 2 +- rest/trunking/v1/response.go | 2 +- rest/verify/v2/README.md | 20 +- rest/verify/v2/api_default.go | 234 +-- rest/verify/v2/docs/DefaultApi.md | 32 +- ...tReadResponse.md => ListBucketResponse.md} | 4 +- ...adResponse.md => ListChallengeResponse.md} | 4 +- ...yReadResponse.md => ListEntityResponse.md} | 4 +- ...rReadResponse.md => ListFactorResponse.md} | 4 +- ... => ListMessagingConfigurationResponse.md} | 4 +- ...adResponse.md => ListRateLimitResponse.md} | 4 +- ...ReadResponse.md => ListServiceResponse.md} | 4 +- .../verify/v2/docs/ListServiceResponseMeta.md | 17 + ...ReadResponse.md => ListWebhookResponse.md} | 4 +- .../docs/VerifyV2ServiceReadResponseMeta.md | 17 - .../v2/model_create_access_token_request.go | 2 +- rest/verify/v2/model_create_bucket_request.go | 2 +- .../v2/model_create_challenge_request.go | 2 +- rest/verify/v2/model_create_entity_request.go | 2 +- rest/verify/v2/model_create_factor_request.go | 2 +- ..._create_messaging_configuration_request.go | 2 +- .../v2/model_create_rate_limit_request.go | 2 +- .../verify/v2/model_create_service_request.go | 2 +- ...model_create_verification_check_request.go | 2 +- .../v2/model_create_verification_request.go | 2 +- .../verify/v2/model_create_webhook_request.go | 2 +- ...ponse.go => model_list_bucket_response.go} | 8 +- ...se.go => model_list_challenge_response.go} | 8 +- ...ponse.go => model_list_entity_response.go} | 8 +- ...ponse.go => model_list_factor_response.go} | 8 +- ..._list_messaging_configuration_response.go} | 8 +- ...e.go => model_list_rate_limit_response.go} | 8 +- ...onse.go => model_list_service_response.go} | 8 +- ...go => model_list_service_response_meta.go} | 6 +- ...onse.go => model_list_webhook_response.go} | 8 +- rest/verify/v2/model_update_bucket_request.go | 2 +- .../v2/model_update_challenge_request.go | 2 +- rest/verify/v2/model_update_factor_request.go | 2 +- ..._update_messaging_configuration_request.go | 2 +- .../v2/model_update_rate_limit_request.go | 2 +- .../verify/v2/model_update_service_request.go | 2 +- .../v2/model_update_verification_request.go | 2 +- .../verify/v2/model_update_webhook_request.go | 2 +- rest/verify/v2/model_verify_v2_form.go | 2 +- rest/verify/v2/model_verify_v2_service.go | 2 +- .../model_verify_v2_service_access_token.go | 2 +- .../v2/model_verify_v2_service_entity.go | 2 +- ...odel_verify_v2_service_entity_challenge.go | 2 +- .../model_verify_v2_service_entity_factor.go | 2 +- ...rify_v2_service_messaging_configuration.go | 2 +- .../v2/model_verify_v2_service_rate_limit.go | 2 +- ...del_verify_v2_service_rate_limit_bucket.go | 2 +- .../model_verify_v2_service_verification.go | 2 +- ...el_verify_v2_service_verification_check.go | 2 +- .../v2/model_verify_v2_service_webhook.go | 2 +- rest/verify/v2/response.go | 2 +- rest/video/v1/README.md | 20 +- rest/video/v1/api_default.go | 228 +-- rest/video/v1/docs/DefaultApi.md | 32 +- ...onse.md => ListCompositionHookResponse.md} | 4 +- .../docs/ListCompositionHookResponseMeta.md} | 2 +- ...Response.md => ListCompositionResponse.md} | 4 +- ...adResponse.md => ListRecordingResponse.md} | 4 +- ...tRoomParticipantPublishedTrackResponse.md} | 4 +- ...onse.md => ListRoomParticipantResponse.md} | 4 +- ...RoomParticipantSubscribedTrackResponse.md} | 4 +- ...sponse.md => ListRoomRecordingResponse.md} | 4 +- ...oomReadResponse.md => ListRoomResponse.md} | 4 +- .../VideoV1CompositionHookReadResponseMeta.md | 17 - rest/video/v1/docs/VideoV1Room.md | 1 + .../model_create_composition_hook_request.go | 2 +- .../v1/model_create_composition_request.go | 2 +- ...del_create_composition_settings_request.go | 2 +- ...model_create_recording_settings_request.go | 2 +- rest/video/v1/model_create_room_request.go | 2 +- ...> model_list_composition_hook_response.go} | 8 +- ...el_list_composition_hook_response_meta.go} | 6 +- ....go => model_list_composition_response.go} | 8 +- ...se.go => model_list_recording_response.go} | 8 +- ...om_participant_published_track_response.go | 16 + ...> model_list_room_participant_response.go} | 8 +- ...m_participant_subscribed_track_response.go | 16 + ... => model_list_room_recording_response.go} | 8 +- ...esponse.go => model_list_room_response.go} | 8 +- .../model_update_composition_hook_request.go | 2 +- .../model_update_room_participant_request.go | 2 +- ...room_participant_subscribe_rule_request.go | 2 +- ...odel_update_room_recording_rule_request.go | 2 +- rest/video/v1/model_update_room_request.go | 2 +- rest/video/v1/model_video_v1_composition.go | 2 +- .../v1/model_video_v1_composition_hook.go | 2 +- .../v1/model_video_v1_composition_settings.go | 2 +- rest/video/v1/model_video_v1_recording.go | 2 +- .../v1/model_video_v1_recording_settings.go | 2 +- rest/video/v1/model_video_v1_room.go | 3 +- .../model_video_v1_room_room_participant.go | 2 +- ...cipant_room_participant_published_track.go | 2 +- ...rticipant_published_track_read_response.go | 16 - ...icipant_room_participant_subscribe_rule.go | 2 +- ...ipant_room_participant_subscribed_track.go | 2 +- ...ticipant_subscribed_track_read_response.go | 16 - .../v1/model_video_v1_room_room_recording.go | 2 +- ...model_video_v1_room_room_recording_rule.go | 2 +- rest/video/v1/response.go | 2 +- rest/voice/v1/README.md | 18 +- rest/voice/v1/api_default.go | 154 +- rest/voice/v1/docs/DefaultApi.md | 28 +- ...adResponse.md => ListByocTrunkResponse.md} | 4 +- .../v1/docs/ListByocTrunkResponseMeta.md | 17 + ...nse.md => ListConnectionPolicyResponse.md} | 4 +- ... => ListConnectionPolicyTargetResponse.md} | 4 +- ... ListDialingPermissionsCountryResponse.md} | 4 +- ...tDialingPermissionsHrsPrefixesResponse.md} | 4 +- ...eadResponse.md => ListIpRecordResponse.md} | 4 +- ...onse.md => ListSourceIpMappingResponse.md} | 4 +- .../docs/VoiceV1ByocTrunkReadResponseMeta.md | 17 - .../v1/model_create_byoc_trunk_request.go | 2 +- .../model_create_connection_policy_request.go | 2 +- ...create_connection_policy_target_request.go | 2 +- ...permissions_country_bulk_update_request.go | 2 +- .../v1/model_create_ip_record_request.go | 2 +- .../model_create_source_ip_mapping_request.go | 2 +- ...e.go => model_list_byoc_trunk_response.go} | 8 +- ...=> model_list_byoc_trunk_response_meta.go} | 6 +- ... model_list_connection_policy_response.go} | 8 +- ..._list_connection_policy_target_response.go | 16 + ...st_dialing_permissions_country_response.go | 16 + ...aling_permissions_hrs_prefixes_response.go | 16 + ...se.go => model_list_ip_record_response.go} | 8 +- ... model_list_source_ip_mapping_response.go} | 8 +- .../v1/model_update_byoc_trunk_request.go | 2 +- .../model_update_connection_policy_request.go | 2 +- ...update_connection_policy_target_request.go | 2 +- ...te_dialing_permissions_settings_request.go | 2 +- .../v1/model_update_ip_record_request.go | 2 +- .../model_update_source_ip_mapping_request.go | 2 +- rest/voice/v1/model_voice_v1_byoc_trunk.go | 2 +- .../v1/model_voice_v1_connection_policy.go | 2 +- ...nection_policy_connection_policy_target.go | 2 +- ..._connection_policy_target_read_response.go | 16 - ...permissions_dialing_permissions_country.go | 2 +- ...dialing_permissions_country_bulk_update.go | 2 +- ...ountry_dialing_permissions_hrs_prefixes.go | 2 +- ..._permissions_hrs_prefixes_read_response.go | 16 - ...ns_dialing_permissions_country_instance.go | 2 +- ...aling_permissions_country_read_response.go | 16 - ...ermissions_dialing_permissions_settings.go | 2 +- rest/voice/v1/model_voice_v1_ip_record.go | 2 +- .../v1/model_voice_v1_source_ip_mapping.go | 2 +- rest/voice/v1/response.go | 2 +- rest/wireless/v1/README.md | 16 +- rest/wireless/v1/api_default.go | 158 +- rest/wireless/v1/docs/DefaultApi.md | 24 +- ...e.md => ListAccountUsageRecordResponse.md} | 4 +- ...ReadResponse.md => ListCommandResponse.md} | 4 +- .../v1/docs/ListCommandResponseMeta.md | 17 + ...Response.md => ListDataSessionResponse.md} | 4 +- ...eadResponse.md => ListRatePlanResponse.md} | 4 +- ...1SimReadResponse.md => ListSimResponse.md} | 4 +- ...Response.md => ListUsageRecordResponse.md} | 4 +- .../docs/WirelessV1CommandReadResponseMeta.md | 17 - .../v1/model_create_command_request.go | 2 +- .../v1/model_create_rate_plan_request.go | 2 +- ...del_list_account_usage_record_response.go} | 8 +- ...onse.go => model_list_command_response.go} | 8 +- ...go => model_list_command_response_meta.go} | 6 +- ...go => model_list_data_session_response.go} | 8 +- ...se.go => model_list_rate_plan_response.go} | 8 +- ...response.go => model_list_sim_response.go} | 8 +- ...go => model_list_usage_record_response.go} | 8 +- .../v1/model_update_rate_plan_request.go | 2 +- rest/wireless/v1/model_update_sim_request.go | 2 +- .../model_wireless_v1_account_usage_record.go | 2 +- rest/wireless/v1/model_wireless_v1_command.go | 2 +- .../v1/model_wireless_v1_rate_plan.go | 2 +- rest/wireless/v1/model_wireless_v1_sim.go | 2 +- .../v1/model_wireless_v1_sim_data_session.go | 2 +- .../v1/model_wireless_v1_sim_usage_record.go | 2 +- rest/wireless/v1/response.go | 2 +- twilio/twilio.go | 10 +- 1658 files changed, 9509 insertions(+), 9989 deletions(-) create mode 100644 apitest.go delete mode 100644 rest/accounts/v1/docs/AccountsV1CredentialCredentialAwsReadResponseMeta.md rename rest/accounts/v1/docs/{AccountsV1CredentialCredentialAwsReadResponse.md => ListCredentialAwsResponse.md} (67%) rename rest/{flex/v1/docs/FlexV1ChannelReadResponseMeta.md => accounts/v1/docs/ListCredentialAwsResponseMeta.md} (94%) rename rest/accounts/v1/docs/{AccountsV1CredentialCredentialPublicKeyReadResponse.md => ListCredentialPublicKeyResponse.md} (67%) delete mode 100644 rest/accounts/v1/model_accounts_v1_credential_credential_aws_read_response_meta.go delete mode 100644 rest/accounts/v1/model_accounts_v1_credential_credential_public_key_read_response.go rename rest/accounts/v1/{model_accounts_v1_credential_credential_aws_read_response.go => model_list_credential_aws_response.go} (50%) create mode 100644 rest/accounts/v1/model_list_credential_aws_response_meta.go create mode 100644 rest/accounts/v1/model_list_credential_public_key_response.go rename rest/api/v2010/docs/{ApiV2010AccountReadResponse.md => ListAccountResponse.md} (95%) rename rest/api/v2010/docs/{ApiV2010AccountAddressReadResponse.md => ListAddressResponse.md} (95%) rename rest/api/v2010/docs/{ApiV2010AccountApplicationReadResponse.md => ListApplicationResponse.md} (94%) rename rest/api/v2010/docs/{ApiV2010AccountAuthorizedConnectAppReadResponse.md => ListAuthorizedConnectAppResponse.md} (93%) rename rest/api/v2010/docs/{ApiV2010AccountAvailablePhoneNumberCountryReadResponse.md => ListAvailablePhoneNumberCountryResponse.md} (92%) rename rest/api/v2010/docs/{ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse.md => ListAvailablePhoneNumberLocalResponse.md} (90%) rename rest/api/v2010/docs/{ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse.md => ListAvailablePhoneNumberMachineToMachineResponse.md} (90%) rename rest/api/v2010/docs/{ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse.md => ListAvailablePhoneNumberMobileResponse.md} (90%) rename rest/api/v2010/docs/{ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse.md => ListAvailablePhoneNumberNationalResponse.md} (90%) rename rest/api/v2010/docs/{ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse.md => ListAvailablePhoneNumberSharedCostResponse.md} (90%) rename rest/api/v2010/docs/{ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse.md => ListAvailablePhoneNumberTollFreeResponse.md} (90%) rename rest/api/v2010/docs/{ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse.md => ListAvailablePhoneNumberVoipResponse.md} (90%) rename rest/api/v2010/docs/{ApiV2010AccountCallCallEventReadResponse.md => ListCallEventResponse.md} (94%) rename rest/api/v2010/docs/{ApiV2010AccountCallCallNotificationReadResponse.md => ListCallNotificationResponse.md} (93%) rename rest/api/v2010/docs/{ApiV2010AccountCallCallRecordingReadResponse.md => ListCallRecordingResponse.md} (93%) rename rest/api/v2010/docs/{ApiV2010AccountCallReadResponse.md => ListCallResponse.md} (95%) rename rest/api/v2010/docs/{ApiV2010AccountConferenceConferenceRecordingReadResponse.md => ListConferenceRecordingResponse.md} (92%) rename rest/api/v2010/docs/{ApiV2010AccountConferenceReadResponse.md => ListConferenceResponse.md} (94%) rename rest/api/v2010/docs/{ApiV2010AccountConnectAppReadResponse.md => ListConnectAppResponse.md} (94%) rename rest/api/v2010/docs/{ApiV2010AccountAddressDependentPhoneNumberReadResponse.md => ListDependentPhoneNumberResponse.md} (93%) rename rest/api/v2010/docs/{ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse.md => ListIncomingPhoneNumberAssignedAddOnExtensionResponse.md} (87%) rename rest/api/v2010/docs/{ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse.md => ListIncomingPhoneNumberAssignedAddOnResponse.md} (90%) rename rest/api/v2010/docs/{ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse.md => ListIncomingPhoneNumberLocalResponse.md} (91%) rename rest/api/v2010/docs/{ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse.md => ListIncomingPhoneNumberMobileResponse.md} (91%) rename rest/api/v2010/docs/{ApiV2010AccountIncomingPhoneNumberReadResponse.md => ListIncomingPhoneNumberResponse.md} (93%) rename rest/api/v2010/docs/{ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse.md => ListIncomingPhoneNumberTollFreeResponse.md} (91%) rename rest/api/v2010/docs/{ApiV2010AccountKeyReadResponse.md => ListKeyResponse.md} (95%) rename rest/api/v2010/docs/{ApiV2010AccountMessageMediaReadResponse.md => ListMediaResponse.md} (94%) rename rest/api/v2010/docs/{ApiV2010AccountQueueMemberReadResponse.md => ListMemberResponse.md} (94%) rename rest/api/v2010/docs/{ApiV2010AccountMessageReadResponse.md => ListMessageResponse.md} (95%) rename rest/api/v2010/docs/{ApiV2010AccountNotificationReadResponse.md => ListNotificationResponse.md} (94%) rename rest/api/v2010/docs/{ApiV2010AccountOutgoingCallerIdReadResponse.md => ListOutgoingCallerIdResponse.md} (94%) rename rest/api/v2010/docs/{ApiV2010AccountConferenceParticipantReadResponse.md => ListParticipantResponse.md} (93%) rename rest/api/v2010/docs/{ApiV2010AccountQueueReadResponse.md => ListQueueResponse.md} (95%) rename rest/api/v2010/docs/{ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse.md => ListRecordingAddOnResultPayloadResponse.md} (90%) rename rest/api/v2010/docs/{ApiV2010AccountRecordingRecordingAddOnResultReadResponse.md => ListRecordingAddOnResultResponse.md} (92%) rename rest/api/v2010/docs/{ApiV2010AccountRecordingReadResponse.md => ListRecordingResponse.md} (94%) rename rest/api/v2010/docs/{ApiV2010AccountRecordingRecordingTranscriptionReadResponse.md => ListRecordingTranscriptionResponse.md} (92%) rename rest/api/v2010/docs/{ApiV2010AccountShortCodeReadResponse.md => ListShortCodeResponse.md} (94%) rename rest/api/v2010/docs/{ApiV2010AccountSigningKeyReadResponse.md => ListSigningKeyResponse.md} (94%) rename rest/api/v2010/docs/{ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse.md => ListSipAuthCallsCredentialListMappingResponse.md} (89%) rename rest/api/v2010/docs/{ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse.md => ListSipAuthCallsIpAccessControlListMappingResponse.md} (89%) rename rest/api/v2010/docs/{ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse.md => ListSipAuthRegistrationsCredentialListMappingResponse.md} (88%) rename rest/api/v2010/docs/{ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse.md => ListSipCredentialListMappingResponse.md} (92%) rename rest/api/v2010/docs/{ApiV2010AccountSipSipCredentialListReadResponse.md => ListSipCredentialListResponse.md} (93%) rename rest/api/v2010/docs/{ApiV2010AccountSipSipCredentialListSipCredentialReadResponse.md => ListSipCredentialResponse.md} (92%) rename rest/api/v2010/docs/{ApiV2010AccountSipSipDomainReadResponse.md => ListSipDomainResponse.md} (94%) rename rest/api/v2010/docs/{ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse.md => ListSipIpAccessControlListMappingResponse.md} (91%) rename rest/api/v2010/docs/{ApiV2010AccountSipSipIpAccessControlListReadResponse.md => ListSipIpAccessControlListResponse.md} (93%) rename rest/api/v2010/docs/{ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse.md => ListSipIpAddressResponse.md} (92%) rename rest/api/v2010/docs/{ApiV2010AccountTranscriptionReadResponse.md => ListTranscriptionResponse.md} (94%) rename rest/api/v2010/docs/{ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse.md => ListUsageRecordAllTimeResponse.md} (92%) rename rest/api/v2010/docs/{ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse.md => ListUsageRecordDailyResponse.md} (92%) rename rest/api/v2010/docs/{ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse.md => ListUsageRecordLastMonthResponse.md} (92%) rename rest/api/v2010/docs/{ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse.md => ListUsageRecordMonthlyResponse.md} (92%) rename rest/api/v2010/docs/{ApiV2010AccountUsageUsageRecordReadResponse.md => ListUsageRecordResponse.md} (94%) rename rest/api/v2010/docs/{ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse.md => ListUsageRecordThisMonthResponse.md} (92%) rename rest/api/v2010/docs/{ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse.md => ListUsageRecordTodayResponse.md} (92%) rename rest/api/v2010/docs/{ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse.md => ListUsageRecordYearlyResponse.md} (92%) rename rest/api/v2010/docs/{ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse.md => ListUsageRecordYesterdayResponse.md} (92%) rename rest/api/v2010/docs/{ApiV2010AccountUsageUsageTriggerReadResponse.md => ListUsageTriggerResponse.md} (93%) rename rest/api/v2010/{model_api_v2010_account_read_response.go => model_list_account_response.go} (81%) rename rest/api/v2010/{model_api_v2010_account_address_read_response.go => model_list_address_response.go} (79%) rename rest/api/v2010/{model_api_v2010_account_application_read_response.go => model_list_application_response.go} (78%) rename rest/api/v2010/{model_api_v2010_account_authorized_connect_app_read_response.go => model_list_authorized_connect_app_response.go} (76%) rename rest/api/v2010/{model_api_v2010_account_available_phone_number_country_read_response.go => model_list_available_phone_number_country_response.go} (74%) rename rest/api/v2010/{model_api_v2010_account_available_phone_number_country_available_phone_number_local_read_response.go => model_list_available_phone_number_local_response.go} (69%) rename rest/api/v2010/{model_api_v2010_account_available_phone_number_country_available_phone_number_machine_to_machine_read_response.go => model_list_available_phone_number_machine_to_machine_response.go} (67%) rename rest/api/v2010/{model_api_v2010_account_available_phone_number_country_available_phone_number_mobile_read_response.go => model_list_available_phone_number_mobile_response.go} (69%) rename rest/api/v2010/{model_api_v2010_account_available_phone_number_country_available_phone_number_national_read_response.go => model_list_available_phone_number_national_response.go} (69%) rename rest/api/v2010/{model_api_v2010_account_available_phone_number_country_available_phone_number_shared_cost_read_response.go => model_list_available_phone_number_shared_cost_response.go} (68%) rename rest/api/v2010/{model_api_v2010_account_available_phone_number_country_available_phone_number_toll_free_read_response.go => model_list_available_phone_number_toll_free_response.go} (69%) rename rest/api/v2010/{model_api_v2010_account_available_phone_number_country_available_phone_number_voip_read_response.go => model_list_available_phone_number_voip_response.go} (69%) rename rest/api/v2010/{model_api_v2010_account_call_call_event_read_response.go => model_list_call_event_response.go} (77%) rename rest/api/v2010/{model_api_v2010_account_call_call_notification_read_response.go => model_list_call_notification_response.go} (76%) rename rest/api/v2010/{model_api_v2010_account_call_call_recording_read_response.go => model_list_call_recording_response.go} (76%) rename rest/api/v2010/{model_api_v2010_account_call_read_response.go => model_list_call_response.go} (80%) rename rest/api/v2010/{model_api_v2010_account_conference_conference_recording_read_response.go => model_list_conference_recording_response.go} (73%) rename rest/api/v2010/{model_api_v2010_account_conference_read_response.go => model_list_conference_response.go} (78%) rename rest/api/v2010/{model_api_v2010_account_connect_app_read_response.go => model_list_connect_app_response.go} (78%) rename rest/api/v2010/{model_api_v2010_account_address_dependent_phone_number_read_response.go => model_list_dependent_phone_number_response.go} (74%) rename rest/api/v2010/{model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_incoming_phone_number_assigned_add_on_extension_read_response.go => model_list_incoming_phone_number_assigned_add_on_extension_response.go} (62%) rename rest/api/v2010/{model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_read_response.go => model_list_incoming_phone_number_assigned_add_on_response.go} (69%) rename rest/api/v2010/{model_api_v2010_account_incoming_phone_number_incoming_phone_number_local_read_response.go => model_list_incoming_phone_number_local_response.go} (71%) rename rest/api/v2010/{model_api_v2010_account_incoming_phone_number_incoming_phone_number_mobile_read_response.go => model_list_incoming_phone_number_mobile_response.go} (71%) rename rest/api/v2010/{model_api_v2010_account_incoming_phone_number_read_response.go => model_list_incoming_phone_number_response.go} (76%) rename rest/api/v2010/{model_api_v2010_account_incoming_phone_number_incoming_phone_number_toll_free_read_response.go => model_list_incoming_phone_number_toll_free_response.go} (70%) rename rest/api/v2010/{model_api_v2010_account_key_read_response.go => model_list_key_response.go} (80%) rename rest/api/v2010/{model_api_v2010_account_message_media_read_response.go => model_list_media_response.go} (77%) rename rest/api/v2010/{model_api_v2010_account_queue_member_read_response.go => model_list_member_response.go} (78%) rename rest/api/v2010/{model_api_v2010_account_message_read_response.go => model_list_message_response.go} (79%) rename rest/api/v2010/{model_api_v2010_account_notification_read_response.go => model_list_notification_response.go} (78%) rename rest/api/v2010/{model_api_v2010_account_outgoing_caller_id_read_response.go => model_list_outgoing_caller_id_response.go} (77%) rename rest/api/v2010/{model_api_v2010_account_conference_participant_read_response.go => model_list_participant_response.go} (75%) rename rest/api/v2010/{model_api_v2010_account_queue_read_response.go => model_list_queue_response.go} (79%) rename rest/api/v2010/{model_api_v2010_account_recording_recording_add_on_result_recording_add_on_result_payload_read_response.go => model_list_recording_add_on_result_payload_response.go} (68%) rename rest/api/v2010/{model_api_v2010_account_recording_recording_add_on_result_read_response.go => model_list_recording_add_on_result_response.go} (73%) rename rest/api/v2010/{model_api_v2010_account_recording_read_response.go => model_list_recording_response.go} (78%) rename rest/api/v2010/{model_api_v2010_account_recording_recording_transcription_read_response.go => model_list_recording_transcription_response.go} (73%) rename rest/api/v2010/{model_api_v2010_account_short_code_read_response.go => model_list_short_code_response.go} (78%) rename rest/api/v2010/{model_api_v2010_account_signing_key_read_response.go => model_list_signing_key_response.go} (78%) rename rest/api/v2010/{model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_credential_list_mapping_read_response.go => model_list_sip_auth_calls_credential_list_mapping_response.go} (66%) rename rest/api/v2010/{model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_ip_access_control_list_mapping_read_response.go => model_list_sip_auth_calls_ip_access_control_list_mapping_response.go} (65%) rename rest/api/v2010/{model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_registrations_sip_auth_registrations_credential_list_mapping_read_response.go => model_list_sip_auth_registrations_credential_list_mapping_response.go} (64%) rename rest/api/v2010/{model_api_v2010_account_sip_sip_domain_sip_credential_list_mapping_read_response.go => model_list_sip_credential_list_mapping_response.go} (72%) rename rest/api/v2010/{model_api_v2010_account_sip_sip_credential_list_read_response.go => model_list_sip_credential_list_response.go} (76%) rename rest/api/v2010/{model_api_v2010_account_sip_sip_credential_list_sip_credential_read_response.go => model_list_sip_credential_response.go} (72%) rename rest/api/v2010/{model_api_v2010_account_sip_sip_domain_read_response.go => model_list_sip_domain_response.go} (77%) rename rest/api/v2010/{model_api_v2010_account_sip_sip_domain_sip_ip_access_control_list_mapping_read_response.go => model_list_sip_ip_access_control_list_mapping_response.go} (72%) rename rest/api/v2010/{model_api_v2010_account_sip_sip_ip_access_control_list_read_response.go => model_list_sip_ip_access_control_list_response.go} (75%) rename rest/api/v2010/{model_api_v2010_account_sip_sip_ip_access_control_list_sip_ip_address_read_response.go => model_list_sip_ip_address_response.go} (72%) rename rest/api/v2010/{model_api_v2010_account_transcription_read_response.go => model_list_transcription_response.go} (78%) rename rest/api/v2010/{model_api_v2010_account_usage_usage_record_usage_record_all_time_read_response.go => model_list_usage_record_all_time_response.go} (72%) rename rest/api/v2010/{model_api_v2010_account_usage_usage_record_usage_record_daily_read_response.go => model_list_usage_record_daily_response.go} (73%) rename rest/api/v2010/{model_api_v2010_account_usage_usage_record_usage_record_last_month_read_response.go => model_list_usage_record_last_month_response.go} (72%) rename rest/api/v2010/{model_api_v2010_account_usage_usage_record_usage_record_monthly_read_response.go => model_list_usage_record_monthly_response.go} (72%) rename rest/api/v2010/{model_api_v2010_account_usage_usage_record_read_response.go => model_list_usage_record_response.go} (77%) rename rest/api/v2010/{model_api_v2010_account_usage_usage_record_usage_record_this_month_read_response.go => model_list_usage_record_this_month_response.go} (72%) rename rest/api/v2010/{model_api_v2010_account_usage_usage_record_usage_record_today_read_response.go => model_list_usage_record_today_response.go} (73%) rename rest/api/v2010/{model_api_v2010_account_usage_usage_record_usage_record_yearly_read_response.go => model_list_usage_record_yearly_response.go} (73%) rename rest/api/v2010/{model_api_v2010_account_usage_usage_record_usage_record_yesterday_read_response.go => model_list_usage_record_yesterday_response.go} (72%) rename rest/api/v2010/{model_api_v2010_account_usage_usage_trigger_read_response.go => model_list_usage_trigger_response.go} (76%) delete mode 100644 rest/autopilot/v1/docs/AutopilotV1AssistantReadResponseMeta.md rename rest/autopilot/v1/docs/{AutopilotV1AssistantReadResponse.md => ListAssistantResponse.md} (70%) rename rest/{studio/v1/docs/StudioV1FlowReadResponseMeta.md => autopilot/v1/docs/ListAssistantResponseMeta.md} (94%) rename rest/autopilot/v1/docs/{AutopilotV1AssistantTaskFieldReadResponse.md => ListFieldResponse.md} (70%) rename rest/autopilot/v1/docs/{AutopilotV1AssistantFieldTypeReadResponse.md => ListFieldTypeResponse.md} (70%) rename rest/autopilot/v1/docs/{AutopilotV1AssistantFieldTypeFieldValueReadResponse.md => ListFieldValueResponse.md} (70%) rename rest/autopilot/v1/docs/{AutopilotV1AssistantModelBuildReadResponse.md => ListModelBuildResponse.md} (70%) rename rest/autopilot/v1/docs/{AutopilotV1AssistantQueryReadResponse.md => ListQueryResponse.md} (70%) rename rest/autopilot/v1/docs/{AutopilotV1AssistantTaskSampleReadResponse.md => ListSampleResponse.md} (70%) rename rest/autopilot/v1/docs/{AutopilotV1AssistantTaskReadResponse.md => ListTaskResponse.md} (70%) rename rest/autopilot/v1/docs/{AutopilotV1AssistantWebhookReadResponse.md => ListWebhookResponse.md} (70%) rename rest/autopilot/v1/{model_autopilot_v1_assistant_read_response.go => model_list_assistant_response.go} (54%) rename rest/autopilot/v1/{model_autopilot_v1_assistant_read_response_meta.go => model_list_assistant_response_meta.go} (75%) rename rest/autopilot/v1/{model_autopilot_v1_assistant_task_field_read_response.go => model_list_field_response.go} (51%) rename rest/autopilot/v1/{model_autopilot_v1_assistant_field_type_read_response.go => model_list_field_type_response.go} (52%) rename rest/autopilot/v1/{model_autopilot_v1_assistant_field_type_field_value_read_response.go => model_list_field_value_response.go} (50%) rename rest/autopilot/v1/{model_autopilot_v1_assistant_model_build_read_response.go => model_list_model_build_response.go} (52%) rename rest/autopilot/v1/{model_autopilot_v1_assistant_query_read_response.go => model_list_query_response.go} (52%) rename rest/autopilot/v1/{model_autopilot_v1_assistant_task_sample_read_response.go => model_list_sample_response.go} (51%) rename rest/autopilot/v1/{model_autopilot_v1_assistant_task_read_response.go => model_list_task_response.go} (52%) rename rest/autopilot/v1/{model_autopilot_v1_assistant_webhook_read_response.go => model_list_webhook_response.go} (52%) delete mode 100644 rest/bulkexports/v1/docs/BulkexportsV1ExportDayReadResponseMeta.md rename rest/bulkexports/v1/docs/{BulkexportsV1ExportDayReadResponse.md => ListDayResponse.md} (69%) rename rest/{fax/v1/docs/FaxV1FaxReadResponseMeta.md => bulkexports/v1/docs/ListDayResponseMeta.md} (95%) rename rest/bulkexports/v1/docs/{BulkexportsV1ExportExportCustomJobReadResponse.md => ListExportCustomJobResponse.md} (69%) delete mode 100644 rest/bulkexports/v1/model_bulkexports_v1_export_day_read_response_meta.go rename rest/bulkexports/v1/{model_bulkexports_v1_export_day_read_response.go => model_list_day_response.go} (52%) create mode 100644 rest/bulkexports/v1/model_list_day_response_meta.go rename rest/bulkexports/v1/{model_bulkexports_v1_export_export_custom_job_read_response.go => model_list_export_custom_job_response.go} (50%) rename rest/chat/v1/docs/{ChatV1ServiceChannelReadResponse.md => ListChannelResponse.md} (71%) rename rest/chat/v1/docs/{ChatV1CredentialReadResponse.md => ListCredentialResponse.md} (72%) rename rest/{studio/v2/docs/StudioV2FlowReadResponseMeta.md => chat/v1/docs/ListCredentialResponseMeta.md} (94%) rename rest/chat/v1/docs/{ChatV1ServiceChannelInviteReadResponse.md => ListInviteResponse.md} (71%) rename rest/chat/v1/docs/{ChatV1ServiceChannelMemberReadResponse.md => ListMemberResponse.md} (71%) rename rest/chat/v1/docs/{ChatV1ServiceChannelMessageReadResponse.md => ListMessageResponse.md} (71%) rename rest/chat/v1/docs/{ChatV1ServiceRoleReadResponse.md => ListRoleResponse.md} (71%) rename rest/chat/v1/docs/{ChatV1ServiceReadResponse.md => ListServiceResponse.md} (72%) rename rest/chat/v1/docs/{ChatV1ServiceUserUserChannelReadResponse.md => ListUserChannelResponse.md} (71%) rename rest/chat/v1/docs/{ChatV1ServiceUserReadResponse.md => ListUserResponse.md} (71%) rename rest/chat/v1/{model_chat_v1_service_channel_read_response.go => model_list_channel_response.go} (53%) rename rest/chat/v1/{model_chat_v1_credential_read_response.go => model_list_credential_response.go} (55%) rename rest/chat/{v2/model_chat_v2_credential_read_response_meta.go => v1/model_list_credential_response_meta.go} (76%) rename rest/chat/v1/{model_chat_v1_service_channel_invite_read_response.go => model_list_invite_response.go} (52%) rename rest/chat/v1/{model_chat_v1_service_channel_member_read_response.go => model_list_member_response.go} (52%) rename rest/chat/v1/{model_chat_v1_service_channel_message_read_response.go => model_list_message_response.go} (52%) rename rest/chat/v1/{model_chat_v1_service_role_read_response.go => model_list_role_response.go} (53%) rename rest/chat/v1/{model_chat_v1_service_read_response.go => model_list_service_response.go} (55%) rename rest/chat/v1/{model_chat_v1_service_user_user_channel_read_response.go => model_list_user_channel_response.go} (51%) rename rest/chat/v1/{model_chat_v1_service_user_read_response.go => model_list_user_response.go} (53%) rename rest/chat/v2/docs/{ChatV2ServiceBindingReadResponse.md => ListBindingResponse.md} (71%) rename rest/chat/v2/docs/{ChatV2ServiceChannelReadResponse.md => ListChannelResponse.md} (71%) rename rest/chat/v2/docs/{ChatV2ServiceChannelChannelWebhookReadResponse.md => ListChannelWebhookResponse.md} (71%) rename rest/chat/v2/docs/{ChatV2CredentialReadResponse.md => ListCredentialResponse.md} (72%) create mode 100644 rest/chat/v2/docs/ListCredentialResponseMeta.md rename rest/chat/v2/docs/{ChatV2ServiceChannelInviteReadResponse.md => ListInviteResponse.md} (71%) rename rest/chat/v2/docs/{ChatV2ServiceChannelMemberReadResponse.md => ListMemberResponse.md} (71%) rename rest/chat/v2/docs/{ChatV2ServiceChannelMessageReadResponse.md => ListMessageResponse.md} (71%) rename rest/chat/v2/docs/{ChatV2ServiceRoleReadResponse.md => ListRoleResponse.md} (71%) rename rest/chat/v2/docs/{ChatV2ServiceReadResponse.md => ListServiceResponse.md} (72%) rename rest/chat/v2/docs/{ChatV2ServiceUserUserBindingReadResponse.md => ListUserBindingResponse.md} (71%) rename rest/chat/v2/docs/{ChatV2ServiceUserUserChannelReadResponse.md => ListUserChannelResponse.md} (71%) rename rest/chat/v2/docs/{ChatV2ServiceUserReadResponse.md => ListUserResponse.md} (71%) rename rest/chat/v2/{model_chat_v2_service_binding_read_response.go => model_list_binding_response.go} (53%) rename rest/chat/v2/{model_chat_v2_service_channel_read_response.go => model_list_channel_response.go} (53%) rename rest/chat/v2/{model_chat_v2_service_channel_channel_webhook_read_response.go => model_list_channel_webhook_response.go} (50%) rename rest/chat/v2/{model_chat_v2_credential_read_response.go => model_list_credential_response.go} (55%) rename rest/chat/{v1/model_chat_v1_credential_read_response_meta.go => v2/model_list_credential_response_meta.go} (76%) rename rest/chat/v2/{model_chat_v2_service_channel_invite_read_response.go => model_list_invite_response.go} (52%) rename rest/chat/v2/{model_chat_v2_service_channel_member_read_response.go => model_list_member_response.go} (52%) rename rest/chat/v2/{model_chat_v2_service_channel_message_read_response.go => model_list_message_response.go} (52%) rename rest/chat/v2/{model_chat_v2_service_role_read_response.go => model_list_role_response.go} (53%) rename rest/chat/v2/{model_chat_v2_service_read_response.go => model_list_service_response.go} (55%) rename rest/chat/v2/{model_chat_v2_service_user_user_binding_read_response.go => model_list_user_binding_response.go} (51%) rename rest/chat/v2/{model_chat_v2_service_user_user_channel_read_response.go => model_list_user_channel_response.go} (51%) rename rest/chat/v2/{model_chat_v2_service_user_read_response.go => model_list_user_response.go} (53%) delete mode 100644 rest/conversations/v1/docs/ConversationsV1ConversationReadResponseMeta.md rename rest/conversations/v1/docs/{ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse.md => ListConversationMessageReceiptResponse.md} (69%) rename rest/conversations/v1/docs/{ConversationsV1ConversationConversationMessageReadResponse.md => ListConversationMessageResponse.md} (68%) rename rest/conversations/v1/docs/{ConversationsV1ConversationConversationParticipantReadResponse.md => ListConversationParticipantResponse.md} (68%) rename rest/conversations/v1/docs/{ConversationsV1ConversationReadResponse.md => ListConversationResponse.md} (69%) create mode 100644 rest/conversations/v1/docs/ListConversationResponseMeta.md rename rest/conversations/v1/docs/{ConversationsV1ConversationConversationScopedWebhookReadResponse.md => ListConversationScopedWebhookResponse.md} (68%) rename rest/conversations/v1/docs/{ConversationsV1CredentialReadResponse.md => ListCredentialResponse.md} (69%) rename rest/conversations/v1/docs/{ConversationsV1RoleReadResponse.md => ListRoleResponse.md} (68%) rename rest/conversations/v1/docs/{ConversationsV1ServiceServiceBindingReadResponse.md => ListServiceBindingResponse.md} (68%) rename rest/conversations/v1/docs/{ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse.md => ListServiceConversationMessageReceiptResponse.md} (68%) rename rest/conversations/v1/docs/{ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse.md => ListServiceConversationMessageResponse.md} (68%) rename rest/conversations/v1/docs/{ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse.md => ListServiceConversationParticipantResponse.md} (68%) rename rest/conversations/v1/docs/{ConversationsV1ServiceServiceConversationReadResponse.md => ListServiceConversationResponse.md} (69%) rename rest/conversations/v1/docs/{ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse.md => ListServiceConversationScopedWebhookResponse.md} (68%) rename rest/conversations/v1/docs/{ConversationsV1ServiceReadResponse.md => ListServiceResponse.md} (68%) rename rest/conversations/v1/docs/{ConversationsV1ServiceServiceRoleReadResponse.md => ListServiceRoleResponse.md} (68%) rename rest/conversations/v1/docs/{ConversationsV1ServiceServiceUserReadResponse.md => ListServiceUserResponse.md} (68%) rename rest/conversations/v1/docs/{ConversationsV1UserReadResponse.md => ListUserResponse.md} (68%) delete mode 100644 rest/conversations/v1/model_conversations_v1_conversation_conversation_message_conversation_message_receipt_read_response.go delete mode 100644 rest/conversations/v1/model_conversations_v1_conversation_conversation_message_read_response.go delete mode 100644 rest/conversations/v1/model_conversations_v1_conversation_conversation_participant_read_response.go delete mode 100644 rest/conversations/v1/model_conversations_v1_conversation_conversation_scoped_webhook_read_response.go delete mode 100644 rest/conversations/v1/model_conversations_v1_conversation_read_response_meta.go delete mode 100644 rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message_read_response.go delete mode 100644 rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message_service_conversation_message_receipt_read_response.go delete mode 100644 rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_participant_read_response.go delete mode 100644 rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_scoped_webhook_read_response.go create mode 100644 rest/conversations/v1/model_list_conversation_message_receipt_response.go create mode 100644 rest/conversations/v1/model_list_conversation_message_response.go create mode 100644 rest/conversations/v1/model_list_conversation_participant_response.go rename rest/conversations/v1/{model_conversations_v1_conversation_read_response.go => model_list_conversation_response.go} (52%) create mode 100644 rest/conversations/v1/model_list_conversation_response_meta.go create mode 100644 rest/conversations/v1/model_list_conversation_scoped_webhook_response.go rename rest/conversations/v1/{model_conversations_v1_credential_read_response.go => model_list_credential_response.go} (52%) rename rest/conversations/v1/{model_conversations_v1_role_read_response.go => model_list_role_response.go} (53%) rename rest/conversations/v1/{model_conversations_v1_service_service_binding_read_response.go => model_list_service_binding_response.go} (50%) create mode 100644 rest/conversations/v1/model_list_service_conversation_message_receipt_response.go create mode 100644 rest/conversations/v1/model_list_service_conversation_message_response.go create mode 100644 rest/conversations/v1/model_list_service_conversation_participant_response.go rename rest/conversations/v1/{model_conversations_v1_service_service_conversation_read_response.go => model_list_service_conversation_response.go} (50%) create mode 100644 rest/conversations/v1/model_list_service_conversation_scoped_webhook_response.go rename rest/conversations/v1/{model_conversations_v1_service_read_response.go => model_list_service_response.go} (52%) rename rest/conversations/v1/{model_conversations_v1_service_service_role_read_response.go => model_list_service_role_response.go} (50%) rename rest/conversations/v1/{model_conversations_v1_service_service_user_read_response.go => model_list_service_user_response.go} (50%) rename rest/conversations/v1/{model_conversations_v1_user_read_response.go => model_list_user_response.go} (53%) delete mode 100644 rest/events/v1/docs/EventsV1SchemaVersionReadResponseMeta.md rename rest/events/v1/docs/{EventsV1EventTypeReadResponse.md => ListEventTypeResponse.md} (70%) rename rest/events/v1/docs/{EventsV1SinkReadResponse.md => ListSinkResponse.md} (70%) rename rest/events/v1/docs/{EventsV1SubscriptionSubscribedEventReadResponse.md => ListSubscribedEventResponse.md} (70%) rename rest/events/v1/docs/{EventsV1SubscriptionReadResponse.md => ListSubscriptionResponse.md} (70%) rename rest/events/v1/docs/{EventsV1SchemaVersionReadResponse.md => ListVersionResponse.md} (70%) create mode 100644 rest/events/v1/docs/ListVersionResponseMeta.md delete mode 100644 rest/events/v1/model_events_v1_schema_version_read_response_meta.go delete mode 100644 rest/events/v1/model_events_v1_subscription_subscribed_event_read_response.go rename rest/events/v1/{model_events_v1_event_type_read_response.go => model_list_event_type_response.go} (53%) rename rest/events/v1/{model_events_v1_sink_read_response.go => model_list_sink_response.go} (54%) create mode 100644 rest/events/v1/model_list_subscribed_event_response.go rename rest/events/v1/{model_events_v1_subscription_read_response.go => model_list_subscription_response.go} (54%) rename rest/events/v1/{model_events_v1_schema_version_read_response.go => model_list_version_response.go} (54%) create mode 100644 rest/events/v1/model_list_version_response_meta.go rename rest/fax/v1/docs/{FaxV1FaxFaxMediaReadResponse.md => ListFaxMediaResponse.md} (74%) rename rest/fax/v1/docs/{FaxV1FaxReadResponse.md => ListFaxResponse.md} (74%) create mode 100644 rest/fax/v1/docs/ListFaxResponseMeta.md rename rest/fax/v1/{model_fax_v1_fax_fax_media_read_response.go => model_list_fax_media_response.go} (55%) rename rest/fax/v1/{model_fax_v1_fax_read_response.go => model_list_fax_response.go} (57%) rename rest/fax/v1/{model_fax_v1_fax_read_response_meta.go => model_list_fax_response_meta.go} (79%) rename rest/flex/v1/docs/{FlexV1ChannelReadResponse.md => ListChannelResponse.md} (73%) create mode 100644 rest/flex/v1/docs/ListChannelResponseMeta.md rename rest/flex/v1/docs/{FlexV1FlexFlowReadResponse.md => ListFlexFlowResponse.md} (73%) rename rest/flex/v1/docs/{FlexV1WebChannelReadResponse.md => ListWebChannelResponse.md} (73%) rename rest/flex/v1/{model_flex_v1_channel_read_response.go => model_list_channel_response.go} (57%) rename rest/flex/v1/{model_flex_v1_channel_read_response_meta.go => model_list_channel_response_meta.go} (78%) rename rest/flex/v1/{model_flex_v1_flex_flow_read_response.go => model_list_flex_flow_response.go} (55%) rename rest/flex/v1/{model_flex_v1_web_channel_read_response.go => model_list_web_channel_response.go} (56%) delete mode 100644 rest/insights/v1/api_call_tag.go create mode 100644 rest/insights/v1/api_default.go delete mode 100644 rest/insights/v1/api_events_tag.go delete mode 100644 rest/insights/v1/api_metrics_tag.go delete mode 100644 rest/insights/v1/api_summary_tag.go delete mode 100644 rest/insights/v1/api_video_participant_summary_tag.go delete mode 100644 rest/insights/v1/api_video_room_summary_tag.go delete mode 100644 rest/insights/v1/docs/CallTagApi.md create mode 100644 rest/insights/v1/docs/DefaultApi.md delete mode 100644 rest/insights/v1/docs/EventsTagApi.md delete mode 100644 rest/insights/v1/docs/InsightsV1VideoRoomSummaryReadResponseMeta.md rename rest/insights/v1/docs/{InsightsV1CallEventReadResponse.md => ListEventResponse.md} (68%) rename rest/insights/v1/docs/{InsightsV1CallMetricReadResponse.md => ListMetricResponse.md} (68%) rename rest/insights/v1/docs/{InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse.md => ListVideoParticipantSummaryResponse.md} (69%) rename rest/insights/v1/docs/{InsightsV1VideoRoomSummaryReadResponse.md => ListVideoRoomSummaryResponse.md} (68%) rename rest/{chat/v2/docs/ChatV2CredentialReadResponseMeta.md => insights/v1/docs/ListVideoRoomSummaryResponseMeta.md} (94%) delete mode 100644 rest/insights/v1/docs/MetricsTagApi.md delete mode 100644 rest/insights/v1/docs/SummaryTagApi.md delete mode 100644 rest/insights/v1/docs/VideoParticipantSummaryTagApi.md delete mode 100644 rest/insights/v1/docs/VideoRoomSummaryTagApi.md delete mode 100644 rest/insights/v1/model_insights_v1_video_room_summary_read_response_meta.go delete mode 100644 rest/insights/v1/model_insights_v1_video_room_summary_video_participant_summary_read_response.go rename rest/insights/v1/{model_insights_v1_call_event_read_response.go => model_list_event_response.go} (52%) rename rest/insights/v1/{model_insights_v1_call_metric_read_response.go => model_list_metric_response.go} (52%) create mode 100644 rest/insights/v1/model_list_video_participant_summary_response.go rename rest/insights/v1/{model_insights_v1_video_room_summary_read_response.go => model_list_video_room_summary_response.go} (51%) create mode 100644 rest/insights/v1/model_list_video_room_summary_response_meta.go delete mode 100644 rest/ip/messaging/docs/IpMessagingV1CredentialReadResponse.md delete mode 100644 rest/ip/messaging/docs/IpMessagingV1CredentialReadResponseMeta.md delete mode 100644 rest/ip/messaging/docs/IpMessagingV1ServiceChannelInviteReadResponse.md delete mode 100644 rest/ip/messaging/docs/IpMessagingV1ServiceChannelMemberReadResponse.md delete mode 100644 rest/ip/messaging/docs/IpMessagingV1ServiceChannelMessageReadResponse.md delete mode 100644 rest/ip/messaging/docs/IpMessagingV1ServiceChannelReadResponse.md delete mode 100644 rest/ip/messaging/docs/IpMessagingV1ServiceReadResponse.md delete mode 100644 rest/ip/messaging/docs/IpMessagingV1ServiceRoleReadResponse.md delete mode 100644 rest/ip/messaging/docs/IpMessagingV1ServiceUserReadResponse.md delete mode 100644 rest/ip/messaging/docs/IpMessagingV1ServiceUserUserChannelReadResponse.md delete mode 100644 rest/ip/messaging/docs/IpMessagingV2CredentialReadResponseMeta.md rename rest/ip/messaging/docs/{IpMessagingV2ServiceBindingReadResponse.md => ListBindingResponse.md} (69%) rename rest/ip/messaging/docs/{IpMessagingV2ServiceChannelReadResponse.md => ListChannelResponse.md} (69%) rename rest/ip/messaging/docs/{IpMessagingV2ServiceChannelChannelWebhookReadResponse.md => ListChannelWebhookResponse.md} (69%) rename rest/ip/messaging/docs/{IpMessagingV2CredentialReadResponse.md => ListCredentialResponse.md} (70%) create mode 100644 rest/ip/messaging/docs/ListCredentialResponseMeta.md rename rest/ip/messaging/docs/{IpMessagingV2ServiceChannelInviteReadResponse.md => ListInviteResponse.md} (69%) rename rest/ip/messaging/docs/{IpMessagingV2ServiceChannelMemberReadResponse.md => ListMemberResponse.md} (69%) rename rest/ip/messaging/docs/{IpMessagingV2ServiceChannelMessageReadResponse.md => ListMessageResponse.md} (69%) rename rest/ip/messaging/docs/{IpMessagingV2ServiceRoleReadResponse.md => ListRoleResponse.md} (69%) rename rest/ip/messaging/docs/{IpMessagingV2ServiceReadResponse.md => ListServiceResponse.md} (69%) rename rest/ip/messaging/docs/{IpMessagingV2ServiceUserUserBindingReadResponse.md => ListUserBindingResponse.md} (69%) rename rest/ip/messaging/docs/{IpMessagingV2ServiceUserUserChannelReadResponse.md => ListUserChannelResponse.md} (69%) rename rest/ip/messaging/docs/{IpMessagingV2ServiceUserReadResponse.md => ListUserResponse.md} (69%) delete mode 100644 rest/ip/messaging/model_ip_messaging_v1_credential_read_response.go delete mode 100644 rest/ip/messaging/model_ip_messaging_v1_credential_read_response_meta.go delete mode 100644 rest/ip/messaging/model_ip_messaging_v1_service_channel_invite_read_response.go delete mode 100644 rest/ip/messaging/model_ip_messaging_v1_service_channel_member_read_response.go delete mode 100644 rest/ip/messaging/model_ip_messaging_v1_service_channel_message_read_response.go delete mode 100644 rest/ip/messaging/model_ip_messaging_v1_service_channel_read_response.go delete mode 100644 rest/ip/messaging/model_ip_messaging_v1_service_read_response.go delete mode 100644 rest/ip/messaging/model_ip_messaging_v1_service_role_read_response.go delete mode 100644 rest/ip/messaging/model_ip_messaging_v1_service_user_read_response.go delete mode 100644 rest/ip/messaging/model_ip_messaging_v1_service_user_user_channel_read_response.go delete mode 100644 rest/ip/messaging/model_ip_messaging_v2_credential_read_response_meta.go delete mode 100644 rest/ip/messaging/model_ip_messaging_v2_service_channel_channel_webhook_read_response.go rename rest/ip/messaging/{model_ip_messaging_v2_service_binding_read_response.go => model_list_binding_response.go} (52%) rename rest/ip/messaging/{model_ip_messaging_v2_service_channel_read_response.go => model_list_channel_response.go} (52%) create mode 100644 rest/ip/messaging/model_list_channel_webhook_response.go rename rest/ip/messaging/{model_ip_messaging_v2_credential_read_response.go => model_list_credential_response.go} (53%) create mode 100644 rest/ip/messaging/model_list_credential_response_meta.go rename rest/ip/messaging/{model_ip_messaging_v2_service_channel_invite_read_response.go => model_list_invite_response.go} (50%) rename rest/ip/messaging/{model_ip_messaging_v2_service_channel_member_read_response.go => model_list_member_response.go} (50%) rename rest/ip/messaging/{model_ip_messaging_v2_service_channel_message_read_response.go => model_list_message_response.go} (50%) rename rest/ip/messaging/{model_ip_messaging_v2_service_role_read_response.go => model_list_role_response.go} (52%) rename rest/ip/messaging/{model_ip_messaging_v2_service_read_response.go => model_list_service_response.go} (53%) rename rest/ip/messaging/{model_ip_messaging_v2_service_user_user_binding_read_response.go => model_list_user_binding_response.go} (50%) rename rest/ip/messaging/{model_ip_messaging_v2_service_user_user_channel_read_response.go => model_list_user_channel_response.go} (50%) rename rest/ip/messaging/{model_ip_messaging_v2_service_user_read_response.go => model_list_user_response.go} (52%) rename rest/messaging/v1/docs/{MessagingV1ServiceAlphaSenderReadResponse.md => ListAlphaSenderResponse.md} (71%) rename rest/messaging/v1/docs/{MessagingV1ServicePhoneNumberReadResponse.md => ListPhoneNumberResponse.md} (71%) rename rest/messaging/v1/docs/{MessagingV1ServiceReadResponse.md => ListServiceResponse.md} (71%) create mode 100644 rest/messaging/v1/docs/ListServiceResponseMeta.md rename rest/messaging/v1/docs/{MessagingV1ServiceShortCodeReadResponse.md => ListShortCodeResponse.md} (71%) delete mode 100644 rest/messaging/v1/docs/MessagingV1ServiceReadResponseMeta.md rename rest/messaging/v1/{model_messaging_v1_service_alpha_sender_read_response.go => model_list_alpha_sender_response.go} (52%) rename rest/messaging/v1/{model_messaging_v1_service_phone_number_read_response.go => model_list_phone_number_response.go} (52%) rename rest/messaging/v1/{model_messaging_v1_service_read_response.go => model_list_service_response.go} (54%) rename rest/messaging/v1/{model_messaging_v1_service_read_response_meta.go => model_list_service_response_meta.go} (76%) rename rest/messaging/v1/{model_messaging_v1_service_short_code_read_response.go => model_list_short_code_response.go} (52%) rename rest/monitor/v1/docs/{MonitorV1AlertReadResponse.md => ListAlertResponse.md} (72%) create mode 100644 rest/monitor/v1/docs/ListAlertResponseMeta.md rename rest/monitor/v1/docs/{MonitorV1EventReadResponse.md => ListEventResponse.md} (72%) rename rest/monitor/v1/{model_monitor_v1_alert_read_response.go => model_list_alert_response.go} (55%) rename rest/monitor/v1/{model_monitor_v1_alert_read_response_meta.go => model_list_alert_response_meta.go} (77%) rename rest/monitor/v1/{model_monitor_v1_event_read_response.go => model_list_event_response.go} (55%) rename rest/notify/v1/docs/{NotifyV1ServiceBindingReadResponse.md => ListBindingResponse.md} (71%) rename rest/notify/v1/docs/{NotifyV1CredentialReadResponse.md => ListCredentialResponse.md} (71%) create mode 100644 rest/notify/v1/docs/ListCredentialResponseMeta.md rename rest/notify/v1/docs/{NotifyV1ServiceReadResponse.md => ListServiceResponse.md} (71%) delete mode 100644 rest/notify/v1/docs/NotifyV1CredentialReadResponseMeta.md rename rest/notify/v1/{model_notify_v1_service_binding_read_response.go => model_list_binding_response.go} (53%) rename rest/notify/v1/{model_notify_v1_credential_read_response.go => model_list_credential_response.go} (54%) rename rest/notify/v1/{model_notify_v1_credential_read_response_meta.go => model_list_credential_response_meta.go} (76%) rename rest/notify/v1/{model_notify_v1_service_read_response.go => model_list_service_response.go} (55%) rename rest/numbers/v2/docs/{NumbersV2RegulatoryComplianceBundleReadResponse.md => ListBundleResponse.md} (66%) create mode 100644 rest/numbers/v2/docs/ListBundleResponseMeta.md rename rest/numbers/v2/docs/{NumbersV2RegulatoryComplianceEndUserReadResponse.md => ListEndUserResponse.md} (66%) rename rest/numbers/v2/docs/{NumbersV2RegulatoryComplianceEndUserTypeReadResponse.md => ListEndUserTypeResponse.md} (67%) rename rest/numbers/v2/docs/{NumbersV2RegulatoryComplianceBundleEvaluationReadResponse.md => ListEvaluationResponse.md} (66%) rename rest/numbers/v2/docs/{NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse.md => ListItemAssignmentResponse.md} (66%) rename rest/numbers/v2/docs/{NumbersV2RegulatoryComplianceRegulationReadResponse.md => ListRegulationResponse.md} (66%) rename rest/numbers/v2/docs/{NumbersV2RegulatoryComplianceSupportingDocumentReadResponse.md => ListSupportingDocumentResponse.md} (66%) rename rest/numbers/v2/docs/{NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse.md => ListSupportingDocumentTypeResponse.md} (67%) delete mode 100644 rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleReadResponseMeta.md create mode 100644 rest/numbers/v2/model_list_bundle_response.go create mode 100644 rest/numbers/v2/model_list_bundle_response_meta.go create mode 100644 rest/numbers/v2/model_list_end_user_response.go create mode 100644 rest/numbers/v2/model_list_end_user_type_response.go create mode 100644 rest/numbers/v2/model_list_evaluation_response.go create mode 100644 rest/numbers/v2/model_list_item_assignment_response.go create mode 100644 rest/numbers/v2/model_list_regulation_response.go create mode 100644 rest/numbers/v2/model_list_supporting_document_response.go create mode 100644 rest/numbers/v2/model_list_supporting_document_type_response.go delete mode 100644 rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_evaluation_read_response.go delete mode 100644 rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_item_assignment_read_response.go delete mode 100644 rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_read_response.go delete mode 100644 rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_read_response_meta.go delete mode 100644 rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user_read_response.go delete mode 100644 rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user_type_read_response.go delete mode 100644 rest/numbers/v2/model_numbers_v2_regulatory_compliance_regulation_read_response.go delete mode 100644 rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document_read_response.go delete mode 100644 rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document_type_read_response.go rename rest/preview/docs/{PreviewUnderstandAssistantReadResponse.md => ListAssistantResponse.md} (68%) rename rest/preview/docs/{PreviewHostedNumbersAuthorizationDocumentReadResponse.md => ListAuthorizationDocumentResponse.md} (68%) rename rest/preview/docs/{PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse.md => ListAvailableAddOnExtensionResponse.md} (68%) rename rest/preview/docs/{PreviewMarketplaceAvailableAddOnReadResponse.md => ListAvailableAddOnResponse.md} (69%) rename rest/preview/docs/{PreviewDeployedDevicesFleetCertificateReadResponse.md => ListCertificateResponse.md} (68%) rename rest/preview/docs/{PreviewWirelessCommandReadResponse.md => ListCommandResponse.md} (68%) rename rest/preview/docs/{PreviewBulkExportsExportDayReadResponse.md => ListDayResponse.md} (68%) create mode 100644 rest/preview/docs/ListDayResponseMeta.md rename rest/preview/docs/{PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse.md => ListDependentHostedNumberOrderResponse.md} (68%) rename rest/preview/docs/{PreviewDeployedDevicesFleetDeploymentReadResponse.md => ListDeploymentResponse.md} (68%) rename rest/preview/docs/{PreviewDeployedDevicesFleetDeviceReadResponse.md => ListDeviceResponse.md} (68%) rename rest/preview/docs/{PreviewSyncServiceDocumentDocumentPermissionReadResponse.md => ListDocumentPermissionResponse.md} (68%) rename rest/preview/docs/{PreviewSyncServiceDocumentReadResponse.md => ListDocumentResponse.md} (68%) rename rest/preview/docs/{PreviewBulkExportsExportExportCustomJobReadResponse.md => ListExportCustomJobResponse.md} (68%) rename rest/preview/docs/{PreviewUnderstandAssistantTaskFieldReadResponse.md => ListFieldResponse.md} (68%) rename rest/preview/docs/{PreviewUnderstandAssistantFieldTypeReadResponse.md => ListFieldTypeResponse.md} (68%) rename rest/preview/docs/{PreviewUnderstandAssistantFieldTypeFieldValueReadResponse.md => ListFieldValueResponse.md} (68%) rename rest/preview/docs/{PreviewDeployedDevicesFleetReadResponse.md => ListFleetResponse.md} (68%) rename rest/preview/docs/{PreviewHostedNumbersHostedNumberOrderReadResponse.md => ListHostedNumberOrderResponse.md} (68%) rename rest/preview/docs/{PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse.md => ListInstalledAddOnExtensionResponse.md} (68%) rename rest/preview/docs/{PreviewMarketplaceInstalledAddOnReadResponse.md => ListInstalledAddOnResponse.md} (69%) rename rest/preview/docs/{PreviewDeployedDevicesFleetKeyReadResponse.md => ListKeyResponse.md} (68%) rename rest/preview/docs/{PreviewUnderstandAssistantModelBuildReadResponse.md => ListModelBuildResponse.md} (68%) rename rest/preview/docs/{PreviewUnderstandAssistantQueryReadResponse.md => ListQueryResponse.md} (68%) rename rest/preview/docs/{PreviewWirelessRatePlanReadResponse.md => ListRatePlanResponse.md} (68%) rename rest/preview/docs/{PreviewUnderstandAssistantTaskSampleReadResponse.md => ListSampleResponse.md} (68%) rename rest/preview/docs/{PreviewSyncServiceReadResponse.md => ListServiceResponse.md} (68%) rename rest/preview/docs/{PreviewWirelessSimReadResponse.md => ListSimResponse.md} (68%) rename rest/preview/docs/{PreviewSyncServiceSyncListSyncListItemReadResponse.md => ListSyncListItemResponse.md} (68%) rename rest/preview/docs/{PreviewSyncServiceSyncListSyncListPermissionReadResponse.md => ListSyncListPermissionResponse.md} (68%) rename rest/preview/docs/{PreviewSyncServiceSyncListReadResponse.md => ListSyncListResponse.md} (68%) rename rest/preview/docs/{PreviewSyncServiceSyncMapSyncMapItemReadResponse.md => ListSyncMapItemResponse.md} (68%) rename rest/preview/docs/{PreviewSyncServiceSyncMapSyncMapPermissionReadResponse.md => ListSyncMapPermissionResponse.md} (68%) rename rest/preview/docs/{PreviewSyncServiceSyncMapReadResponse.md => ListSyncMapResponse.md} (68%) rename rest/preview/docs/{PreviewUnderstandAssistantTaskReadResponse.md => ListTaskResponse.md} (68%) delete mode 100644 rest/preview/docs/PreviewBulkExportsExportDayReadResponseMeta.md rename rest/preview/{model_preview_understand_assistant_read_response.go => model_list_assistant_response.go} (51%) create mode 100644 rest/preview/model_list_authorization_document_response.go create mode 100644 rest/preview/model_list_available_add_on_extension_response.go rename rest/preview/{model_preview_marketplace_available_add_on_read_response.go => model_list_available_add_on_response.go} (51%) create mode 100644 rest/preview/model_list_certificate_response.go rename rest/preview/{model_preview_wireless_command_read_response.go => model_list_command_response.go} (52%) rename rest/preview/{model_preview_bulk_exports_export_day_read_response.go => model_list_day_response.go} (50%) create mode 100644 rest/preview/model_list_day_response_meta.go create mode 100644 rest/preview/model_list_dependent_hosted_number_order_response.go create mode 100644 rest/preview/model_list_deployment_response.go create mode 100644 rest/preview/model_list_device_response.go create mode 100644 rest/preview/model_list_document_permission_response.go rename rest/preview/{model_preview_sync_service_document_read_response.go => model_list_document_response.go} (51%) create mode 100644 rest/preview/model_list_export_custom_job_response.go create mode 100644 rest/preview/model_list_field_response.go rename rest/preview/{model_preview_understand_assistant_field_type_read_response.go => model_list_field_type_response.go} (50%) create mode 100644 rest/preview/model_list_field_value_response.go rename rest/preview/{model_preview_deployed_devices_fleet_read_response.go => model_list_fleet_response.go} (50%) create mode 100644 rest/preview/model_list_hosted_number_order_response.go create mode 100644 rest/preview/model_list_installed_add_on_extension_response.go rename rest/preview/{model_preview_marketplace_installed_add_on_read_response.go => model_list_installed_add_on_response.go} (51%) create mode 100644 rest/preview/model_list_key_response.go rename rest/preview/{model_preview_understand_assistant_model_build_read_response.go => model_list_model_build_response.go} (50%) rename rest/preview/{model_preview_understand_assistant_query_read_response.go => model_list_query_response.go} (50%) rename rest/preview/{model_preview_wireless_rate_plan_read_response.go => model_list_rate_plan_response.go} (52%) create mode 100644 rest/preview/model_list_sample_response.go rename rest/preview/{model_preview_sync_service_read_response.go => model_list_service_response.go} (53%) rename rest/preview/{model_preview_wireless_sim_read_response.go => model_list_sim_response.go} (52%) create mode 100644 rest/preview/model_list_sync_list_item_response.go create mode 100644 rest/preview/model_list_sync_list_permission_response.go rename rest/preview/{model_preview_sync_service_sync_list_read_response.go => model_list_sync_list_response.go} (50%) create mode 100644 rest/preview/model_list_sync_map_item_response.go create mode 100644 rest/preview/model_list_sync_map_permission_response.go rename rest/preview/{model_preview_sync_service_sync_map_read_response.go => model_list_sync_map_response.go} (50%) rename rest/preview/{model_preview_understand_assistant_task_read_response.go => model_list_task_response.go} (50%) delete mode 100644 rest/preview/model_preview_bulk_exports_export_day_read_response_meta.go delete mode 100644 rest/preview/model_preview_bulk_exports_export_export_custom_job_read_response.go delete mode 100644 rest/preview/model_preview_deployed_devices_fleet_certificate_read_response.go delete mode 100644 rest/preview/model_preview_deployed_devices_fleet_deployment_read_response.go delete mode 100644 rest/preview/model_preview_deployed_devices_fleet_device_read_response.go delete mode 100644 rest/preview/model_preview_deployed_devices_fleet_key_read_response.go delete mode 100644 rest/preview/model_preview_hosted_numbers_authorization_document_dependent_hosted_number_order_read_response.go delete mode 100644 rest/preview/model_preview_hosted_numbers_authorization_document_read_response.go delete mode 100644 rest/preview/model_preview_hosted_numbers_hosted_number_order_read_response.go delete mode 100644 rest/preview/model_preview_marketplace_available_add_on_available_add_on_extension_read_response.go delete mode 100644 rest/preview/model_preview_marketplace_installed_add_on_installed_add_on_extension_read_response.go delete mode 100644 rest/preview/model_preview_sync_service_document_document_permission_read_response.go delete mode 100644 rest/preview/model_preview_sync_service_sync_list_sync_list_item_read_response.go delete mode 100644 rest/preview/model_preview_sync_service_sync_list_sync_list_permission_read_response.go delete mode 100644 rest/preview/model_preview_sync_service_sync_map_sync_map_item_read_response.go delete mode 100644 rest/preview/model_preview_sync_service_sync_map_sync_map_permission_read_response.go delete mode 100644 rest/preview/model_preview_understand_assistant_field_type_field_value_read_response.go delete mode 100644 rest/preview/model_preview_understand_assistant_task_field_read_response.go delete mode 100644 rest/preview/model_preview_understand_assistant_task_sample_read_response.go rename rest/pricing/v1/docs/{PricingV1MessagingMessagingCountryReadResponse.md => ListMessagingCountryResponse.md} (67%) rename rest/{chat/v1/docs/ChatV1CredentialReadResponseMeta.md => pricing/v1/docs/ListMessagingCountryResponseMeta.md} (94%) rename rest/pricing/v1/docs/{PricingV1PhoneNumberPhoneNumberCountryReadResponse.md => ListPhoneNumberCountryResponse.md} (67%) rename rest/pricing/v1/docs/{PricingV1VoiceVoiceCountryReadResponse.md => ListVoiceCountryResponse.md} (67%) delete mode 100644 rest/pricing/v1/docs/PricingV1MessagingMessagingCountryReadResponseMeta.md create mode 100644 rest/pricing/v1/model_list_messaging_country_response.go create mode 100644 rest/pricing/v1/model_list_messaging_country_response_meta.go create mode 100644 rest/pricing/v1/model_list_phone_number_country_response.go rename rest/pricing/v1/{model_pricing_v1_voice_voice_country_read_response.go => model_list_voice_country_response.go} (50%) delete mode 100644 rest/pricing/v1/model_pricing_v1_messaging_messaging_country_read_response.go delete mode 100644 rest/pricing/v1/model_pricing_v1_messaging_messaging_country_read_response_meta.go delete mode 100644 rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country_read_response.go rename rest/pricing/v2/docs/{PricingV2VoiceVoiceCountryReadResponse.md => ListVoiceCountryResponse.md} (69%) create mode 100644 rest/pricing/v2/docs/ListVoiceCountryResponseMeta.md delete mode 100644 rest/pricing/v2/docs/PricingV2VoiceVoiceCountryReadResponseMeta.md rename rest/pricing/v2/{model_pricing_v2_voice_voice_country_read_response.go => model_list_voice_country_response.go} (51%) create mode 100644 rest/pricing/v2/model_list_voice_country_response_meta.go delete mode 100644 rest/pricing/v2/model_pricing_v2_voice_voice_country_read_response_meta.go rename rest/proxy/v1/docs/{ProxyV1ServiceSessionInteractionReadResponse.md => ListInteractionResponse.md} (72%) rename rest/proxy/v1/docs/{ProxyV1ServiceSessionParticipantMessageInteractionReadResponse.md => ListMessageInteractionResponse.md} (72%) rename rest/proxy/v1/docs/{ProxyV1ServiceSessionParticipantReadResponse.md => ListParticipantResponse.md} (72%) rename rest/proxy/v1/docs/{ProxyV1ServicePhoneNumberReadResponse.md => ListPhoneNumberResponse.md} (72%) rename rest/proxy/v1/docs/{ProxyV1ServiceReadResponse.md => ListServiceResponse.md} (72%) create mode 100644 rest/proxy/v1/docs/ListServiceResponseMeta.md rename rest/proxy/v1/docs/{ProxyV1ServiceSessionReadResponse.md => ListSessionResponse.md} (72%) rename rest/proxy/v1/docs/{ProxyV1ServiceShortCodeReadResponse.md => ListShortCodeResponse.md} (72%) delete mode 100644 rest/proxy/v1/docs/ProxyV1ServiceReadResponseMeta.md rename rest/proxy/v1/{model_proxy_v1_service_session_interaction_read_response.go => model_list_interaction_response.go} (52%) create mode 100644 rest/proxy/v1/model_list_message_interaction_response.go rename rest/proxy/v1/{model_proxy_v1_service_session_participant_read_response.go => model_list_participant_response.go} (52%) rename rest/proxy/v1/{model_proxy_v1_service_phone_number_read_response.go => model_list_phone_number_response.go} (53%) rename rest/proxy/v1/{model_proxy_v1_service_read_response.go => model_list_service_response.go} (55%) rename rest/proxy/v1/{model_proxy_v1_service_read_response_meta.go => model_list_service_response_meta.go} (77%) rename rest/proxy/v1/{model_proxy_v1_service_session_read_response.go => model_list_session_response.go} (53%) rename rest/proxy/v1/{model_proxy_v1_service_short_code_read_response.go => model_list_short_code_response.go} (53%) delete mode 100644 rest/proxy/v1/model_proxy_v1_service_session_participant_message_interaction_read_response.go rename rest/serverless/v1/docs/{ServerlessV1ServiceAssetReadResponse.md => ListAssetResponse.md} (70%) rename rest/serverless/v1/docs/{ServerlessV1ServiceAssetAssetVersionReadResponse.md => ListAssetVersionResponse.md} (71%) rename rest/serverless/v1/docs/{ServerlessV1ServiceBuildReadResponse.md => ListBuildResponse.md} (70%) rename rest/serverless/v1/docs/{ServerlessV1ServiceEnvironmentDeploymentReadResponse.md => ListDeploymentResponse.md} (70%) rename rest/serverless/v1/docs/{ServerlessV1ServiceEnvironmentReadResponse.md => ListEnvironmentResponse.md} (71%) rename rest/serverless/v1/docs/{ServerlessV1ServiceFunctionReadResponse.md => ListFunctionResponse.md} (71%) rename rest/serverless/v1/docs/{ServerlessV1ServiceFunctionFunctionVersionReadResponse.md => ListFunctionVersionResponse.md} (71%) rename rest/serverless/v1/docs/{ServerlessV1ServiceEnvironmentLogReadResponse.md => ListLogResponse.md} (70%) rename rest/serverless/v1/docs/{ServerlessV1ServiceReadResponse.md => ListServiceResponse.md} (71%) create mode 100644 rest/serverless/v1/docs/ListServiceResponseMeta.md rename rest/serverless/v1/docs/{ServerlessV1ServiceEnvironmentVariableReadResponse.md => ListVariableResponse.md} (70%) delete mode 100644 rest/serverless/v1/docs/ServerlessV1ServiceReadResponseMeta.md rename rest/serverless/v1/{model_serverless_v1_service_asset_read_response.go => model_list_asset_response.go} (52%) rename rest/serverless/v1/{model_serverless_v1_service_asset_asset_version_read_response.go => model_list_asset_version_response.go} (51%) rename rest/serverless/v1/{model_serverless_v1_service_build_read_response.go => model_list_build_response.go} (52%) rename rest/serverless/v1/{model_serverless_v1_service_environment_deployment_read_response.go => model_list_deployment_response.go} (50%) rename rest/serverless/v1/{model_serverless_v1_service_environment_read_response.go => model_list_environment_response.go} (52%) rename rest/serverless/v1/{model_serverless_v1_service_function_read_response.go => model_list_function_response.go} (52%) rename rest/serverless/v1/{model_serverless_v1_service_function_function_version_read_response.go => model_list_function_version_response.go} (50%) rename rest/serverless/v1/{model_serverless_v1_service_environment_log_read_response.go => model_list_log_response.go} (50%) rename rest/serverless/v1/{model_serverless_v1_service_read_response.go => model_list_service_response.go} (54%) rename rest/serverless/v1/{model_serverless_v1_service_read_response_meta.go => model_list_service_response_meta.go} (76%) rename rest/serverless/v1/{model_serverless_v1_service_environment_variable_read_response.go => model_list_variable_response.go} (50%) rename rest/studio/v1/docs/{StudioV1FlowEngagementReadResponse.md => ListEngagementResponse.md} (73%) rename rest/studio/v1/docs/{StudioV1FlowExecutionReadResponse.md => ListExecutionResponse.md} (73%) rename rest/studio/v1/docs/{StudioV1FlowExecutionExecutionStepReadResponse.md => ListExecutionStepResponse.md} (72%) rename rest/studio/v1/docs/{StudioV1FlowReadResponse.md => ListFlowResponse.md} (73%) create mode 100644 rest/studio/v1/docs/ListFlowResponseMeta.md rename rest/studio/v1/docs/{StudioV1FlowEngagementStepReadResponse.md => ListStepResponse.md} (72%) rename rest/studio/v1/{model_studio_v1_flow_engagement_read_response.go => model_list_engagement_response.go} (54%) rename rest/studio/v1/{model_studio_v1_flow_execution_read_response.go => model_list_execution_response.go} (54%) rename rest/studio/v1/{model_studio_v1_flow_execution_execution_step_read_response.go => model_list_execution_step_response.go} (50%) rename rest/studio/v1/{model_studio_v1_flow_read_response.go => model_list_flow_response.go} (56%) rename rest/studio/v1/{model_studio_v1_flow_read_response_meta.go => model_list_flow_response_meta.go} (78%) rename rest/studio/v1/{model_studio_v1_flow_engagement_step_read_response.go => model_list_step_response.go} (52%) delete mode 100644 rest/studio/v2/api_flows.go delete mode 100644 rest/studio/v2/docs/FlowsApi.md rename rest/studio/v2/docs/{StudioV2FlowExecutionReadResponse.md => ListExecutionResponse.md} (73%) rename rest/studio/v2/docs/{StudioV2FlowExecutionExecutionStepReadResponse.md => ListExecutionStepResponse.md} (72%) rename rest/studio/v2/docs/{StudioV2FlowReadResponse.md => ListFlowResponse.md} (73%) create mode 100644 rest/studio/v2/docs/ListFlowResponseMeta.md rename rest/studio/v2/docs/{StudioV2FlowFlowRevisionReadResponse.md => ListFlowRevisionResponse.md} (73%) rename rest/studio/v2/{model_studio_v2_flow_execution_read_response.go => model_list_execution_response.go} (54%) rename rest/studio/v2/{model_studio_v2_flow_execution_execution_step_read_response.go => model_list_execution_step_response.go} (50%) rename rest/studio/v2/{model_studio_v2_flow_read_response.go => model_list_flow_response.go} (56%) rename rest/studio/v2/{model_studio_v2_flow_read_response_meta.go => model_list_flow_response_meta.go} (78%) rename rest/studio/v2/{model_studio_v2_flow_flow_revision_read_response.go => model_list_flow_revision_response.go} (53%) rename rest/supersim/v1/docs/{SupersimV1CommandReadResponse.md => ListCommandResponse.md} (71%) create mode 100644 rest/supersim/v1/docs/ListCommandResponseMeta.md rename rest/supersim/v1/docs/{SupersimV1FleetReadResponse.md => ListFleetResponse.md} (71%) rename rest/supersim/v1/docs/{SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse.md => ListNetworkAccessProfileNetworkResponse.md} (71%) rename rest/supersim/v1/docs/{SupersimV1NetworkAccessProfileReadResponse.md => ListNetworkAccessProfileResponse.md} (72%) rename rest/supersim/v1/docs/{SupersimV1NetworkReadResponse.md => ListNetworkResponse.md} (71%) rename rest/supersim/v1/docs/{SupersimV1SimReadResponse.md => ListSimResponse.md} (71%) rename rest/supersim/v1/docs/{SupersimV1UsageRecordReadResponse.md => ListUsageRecordResponse.md} (71%) delete mode 100644 rest/supersim/v1/docs/SupersimV1CommandReadResponseMeta.md rename rest/supersim/v1/{model_supersim_v1_command_read_response.go => model_list_command_response.go} (54%) rename rest/supersim/v1/{model_supersim_v1_command_read_response_meta.go => model_list_command_response_meta.go} (76%) rename rest/supersim/v1/{model_supersim_v1_fleet_read_response.go => model_list_fleet_response.go} (54%) create mode 100644 rest/supersim/v1/model_list_network_access_profile_network_response.go rename rest/supersim/v1/{model_supersim_v1_network_access_profile_read_response.go => model_list_network_access_profile_response.go} (54%) rename rest/supersim/v1/{model_supersim_v1_network_read_response.go => model_list_network_response.go} (54%) rename rest/supersim/v1/{model_supersim_v1_sim_read_response.go => model_list_sim_response.go} (55%) rename rest/supersim/v1/{model_supersim_v1_usage_record_read_response.go => model_list_usage_record_response.go} (54%) delete mode 100644 rest/supersim/v1/model_supersim_v1_network_access_profile_network_access_profile_network_read_response.go rename rest/sync/v1/docs/{SyncV1ServiceDocumentDocumentPermissionReadResponse.md => ListDocumentPermissionResponse.md} (72%) rename rest/sync/v1/docs/{SyncV1ServiceDocumentReadResponse.md => ListDocumentResponse.md} (72%) rename rest/sync/v1/docs/{SyncV1ServiceReadResponse.md => ListServiceResponse.md} (73%) create mode 100644 rest/sync/v1/docs/ListServiceResponseMeta.md rename rest/sync/v1/docs/{SyncV1ServiceSyncListSyncListItemReadResponse.md => ListSyncListItemResponse.md} (72%) rename rest/sync/v1/docs/{SyncV1ServiceSyncListSyncListPermissionReadResponse.md => ListSyncListPermissionResponse.md} (72%) rename rest/sync/v1/docs/{SyncV1ServiceSyncListReadResponse.md => ListSyncListResponse.md} (72%) rename rest/sync/v1/docs/{SyncV1ServiceSyncMapSyncMapItemReadResponse.md => ListSyncMapItemResponse.md} (72%) rename rest/sync/v1/docs/{SyncV1ServiceSyncMapSyncMapPermissionReadResponse.md => ListSyncMapPermissionResponse.md} (72%) rename rest/sync/v1/docs/{SyncV1ServiceSyncMapReadResponse.md => ListSyncMapResponse.md} (72%) rename rest/sync/v1/docs/{SyncV1ServiceSyncStreamReadResponse.md => ListSyncStreamResponse.md} (72%) delete mode 100644 rest/sync/v1/docs/SyncV1ServiceReadResponseMeta.md rename rest/sync/v1/{model_sync_v1_service_document_document_permission_read_response.go => model_list_document_permission_response.go} (50%) rename rest/sync/v1/{model_sync_v1_service_document_read_response.go => model_list_document_response.go} (54%) rename rest/sync/v1/{model_sync_v1_service_read_response.go => model_list_service_response.go} (56%) rename rest/sync/v1/{model_sync_v1_service_read_response_meta.go => model_list_service_response_meta.go} (78%) rename rest/sync/v1/{model_sync_v1_service_sync_list_sync_list_item_read_response.go => model_list_sync_list_item_response.go} (50%) rename rest/sync/v1/{model_sync_v1_service_sync_list_sync_list_permission_read_response.go => model_list_sync_list_permission_response.go} (50%) rename rest/sync/v1/{model_sync_v1_service_sync_list_read_response.go => model_list_sync_list_response.go} (53%) rename rest/sync/v1/{model_sync_v1_service_sync_map_sync_map_item_read_response.go => model_list_sync_map_item_response.go} (51%) rename rest/sync/v1/{model_sync_v1_service_sync_map_sync_map_permission_read_response.go => model_list_sync_map_permission_response.go} (50%) rename rest/sync/v1/{model_sync_v1_service_sync_map_read_response.go => model_list_sync_map_response.go} (53%) rename rest/sync/v1/{model_sync_v1_service_sync_stream_read_response.go => model_list_sync_stream_response.go} (53%) rename rest/taskrouter/v1/docs/{TaskrouterV1WorkspaceActivityReadResponse.md => ListActivityResponse.md} (70%) rename rest/taskrouter/v1/docs/{TaskrouterV1WorkspaceEventReadResponse.md => ListEventResponse.md} (70%) rename rest/taskrouter/v1/docs/{TaskrouterV1WorkspaceTaskChannelReadResponse.md => ListTaskChannelResponse.md} (70%) rename rest/taskrouter/v1/docs/{TaskrouterV1WorkspaceTaskQueueReadResponse.md => ListTaskQueueResponse.md} (70%) rename rest/taskrouter/v1/docs/{TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse.md => ListTaskQueuesStatisticsResponse.md} (70%) rename rest/taskrouter/v1/docs/{TaskrouterV1WorkspaceTaskTaskReservationReadResponse.md => ListTaskReservationResponse.md} (70%) rename rest/taskrouter/v1/docs/{TaskrouterV1WorkspaceTaskReadResponse.md => ListTaskResponse.md} (70%) rename rest/taskrouter/v1/docs/{TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse.md => ListWorkerChannelResponse.md} (70%) rename rest/taskrouter/v1/docs/{TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse.md => ListWorkerReservationResponse.md} (70%) rename rest/taskrouter/v1/docs/{TaskrouterV1WorkspaceWorkerReadResponse.md => ListWorkerResponse.md} (70%) rename rest/taskrouter/v1/docs/{TaskrouterV1WorkspaceWorkflowReadResponse.md => ListWorkflowResponse.md} (70%) rename rest/taskrouter/v1/docs/{TaskrouterV1WorkspaceReadResponse.md => ListWorkspaceResponse.md} (70%) create mode 100644 rest/taskrouter/v1/docs/ListWorkspaceResponseMeta.md delete mode 100644 rest/taskrouter/v1/docs/TaskrouterV1WorkspaceReadResponseMeta.md rename rest/taskrouter/v1/{model_taskrouter_v1_workspace_activity_read_response.go => model_list_activity_response.go} (52%) rename rest/taskrouter/v1/{model_taskrouter_v1_workspace_event_read_response.go => model_list_event_response.go} (52%) rename rest/taskrouter/v1/{model_taskrouter_v1_workspace_task_channel_read_response.go => model_list_task_channel_response.go} (51%) rename rest/taskrouter/v1/{model_taskrouter_v1_workspace_task_queue_read_response.go => model_list_task_queue_response.go} (51%) rename rest/taskrouter/v1/{model_taskrouter_v1_workspace_task_queue_task_queues_statistics_read_response.go => model_list_task_queues_statistics_response.go} (50%) rename rest/taskrouter/v1/{model_taskrouter_v1_workspace_task_task_reservation_read_response.go => model_list_task_reservation_response.go} (50%) rename rest/taskrouter/v1/{model_taskrouter_v1_workspace_task_read_response.go => model_list_task_response.go} (52%) create mode 100644 rest/taskrouter/v1/model_list_worker_channel_response.go create mode 100644 rest/taskrouter/v1/model_list_worker_reservation_response.go rename rest/taskrouter/v1/{model_taskrouter_v1_workspace_worker_read_response.go => model_list_worker_response.go} (52%) rename rest/taskrouter/v1/{model_taskrouter_v1_workspace_workflow_read_response.go => model_list_workflow_response.go} (51%) rename rest/taskrouter/v1/{model_taskrouter_v1_workspace_read_response.go => model_list_workspace_response.go} (53%) rename rest/taskrouter/v1/{model_taskrouter_v1_workspace_read_response_meta.go => model_list_workspace_response_meta.go} (75%) delete mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_channel_read_response.go delete mode 100644 rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_reservation_read_response.go rename rest/trunking/v1/docs/{TrunkingV1TrunkCredentialListReadResponse.md => ListCredentialListResponse.md} (72%) rename rest/trunking/v1/docs/{TrunkingV1TrunkIpAccessControlListReadResponse.md => ListIpAccessControlListResponse.md} (72%) rename rest/trunking/v1/docs/{TrunkingV1TrunkOriginationUrlReadResponse.md => ListOriginationUrlResponse.md} (72%) rename rest/trunking/v1/docs/{TrunkingV1TrunkPhoneNumberReadResponse.md => ListPhoneNumberResponse.md} (72%) rename rest/trunking/v1/docs/{TrunkingV1TrunkReadResponse.md => ListTrunkResponse.md} (72%) create mode 100644 rest/trunking/v1/docs/ListTrunkResponseMeta.md delete mode 100644 rest/trunking/v1/docs/TrunkingV1TrunkReadResponseMeta.md rename rest/trunking/v1/{model_trunking_v1_trunk_credential_list_read_response.go => model_list_credential_list_response.go} (53%) rename rest/trunking/v1/{model_trunking_v1_trunk_ip_access_control_list_read_response.go => model_list_ip_access_control_list_response.go} (53%) rename rest/trunking/v1/{model_trunking_v1_trunk_origination_url_read_response.go => model_list_origination_url_response.go} (53%) rename rest/trunking/v1/{model_trunking_v1_trunk_phone_number_read_response.go => model_list_phone_number_response.go} (53%) rename rest/trunking/v1/{model_trunking_v1_trunk_read_response.go => model_list_trunk_response.go} (55%) rename rest/trunking/v1/{model_trunking_v1_trunk_read_response_meta.go => model_list_trunk_response_meta.go} (77%) rename rest/verify/v2/docs/{VerifyV2ServiceRateLimitBucketReadResponse.md => ListBucketResponse.md} (72%) rename rest/verify/v2/docs/{VerifyV2ServiceEntityChallengeReadResponse.md => ListChallengeResponse.md} (72%) rename rest/verify/v2/docs/{VerifyV2ServiceEntityReadResponse.md => ListEntityResponse.md} (72%) rename rest/verify/v2/docs/{VerifyV2ServiceEntityFactorReadResponse.md => ListFactorResponse.md} (72%) rename rest/verify/v2/docs/{VerifyV2ServiceMessagingConfigurationReadResponse.md => ListMessagingConfigurationResponse.md} (72%) rename rest/verify/v2/docs/{VerifyV2ServiceRateLimitReadResponse.md => ListRateLimitResponse.md} (72%) rename rest/verify/v2/docs/{VerifyV2ServiceReadResponse.md => ListServiceResponse.md} (72%) create mode 100644 rest/verify/v2/docs/ListServiceResponseMeta.md rename rest/verify/v2/docs/{VerifyV2ServiceWebhookReadResponse.md => ListWebhookResponse.md} (72%) delete mode 100644 rest/verify/v2/docs/VerifyV2ServiceReadResponseMeta.md rename rest/verify/v2/{model_verify_v2_service_rate_limit_bucket_read_response.go => model_list_bucket_response.go} (51%) rename rest/verify/v2/{model_verify_v2_service_entity_challenge_read_response.go => model_list_challenge_response.go} (52%) rename rest/verify/v2/{model_verify_v2_service_entity_read_response.go => model_list_entity_response.go} (53%) rename rest/verify/v2/{model_verify_v2_service_entity_factor_read_response.go => model_list_factor_response.go} (52%) rename rest/verify/v2/{model_verify_v2_service_messaging_configuration_read_response.go => model_list_messaging_configuration_response.go} (53%) rename rest/verify/v2/{model_verify_v2_service_rate_limit_read_response.go => model_list_rate_limit_response.go} (53%) rename rest/verify/v2/{model_verify_v2_service_read_response.go => model_list_service_response.go} (55%) rename rest/verify/v2/{model_verify_v2_service_read_response_meta.go => model_list_service_response_meta.go} (77%) rename rest/verify/v2/{model_verify_v2_service_webhook_read_response.go => model_list_webhook_response.go} (53%) rename rest/video/v1/docs/{VideoV1CompositionHookReadResponse.md => ListCompositionHookResponse.md} (70%) rename rest/{monitor/v1/docs/MonitorV1AlertReadResponseMeta.md => video/v1/docs/ListCompositionHookResponseMeta.md} (94%) rename rest/video/v1/docs/{VideoV1CompositionReadResponse.md => ListCompositionResponse.md} (70%) rename rest/video/v1/docs/{VideoV1RecordingReadResponse.md => ListRecordingResponse.md} (70%) rename rest/video/v1/docs/{VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse.md => ListRoomParticipantPublishedTrackResponse.md} (70%) rename rest/video/v1/docs/{VideoV1RoomRoomParticipantReadResponse.md => ListRoomParticipantResponse.md} (70%) rename rest/video/v1/docs/{VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse.md => ListRoomParticipantSubscribedTrackResponse.md} (70%) rename rest/video/v1/docs/{VideoV1RoomRoomRecordingReadResponse.md => ListRoomRecordingResponse.md} (70%) rename rest/video/v1/docs/{VideoV1RoomReadResponse.md => ListRoomResponse.md} (70%) delete mode 100644 rest/video/v1/docs/VideoV1CompositionHookReadResponseMeta.md rename rest/video/v1/{model_video_v1_composition_hook_read_response.go => model_list_composition_hook_response.go} (54%) rename rest/video/v1/{model_video_v1_composition_hook_read_response_meta.go => model_list_composition_hook_response_meta.go} (74%) rename rest/video/v1/{model_video_v1_composition_read_response.go => model_list_composition_response.go} (54%) rename rest/video/v1/{model_video_v1_recording_read_response.go => model_list_recording_response.go} (54%) create mode 100644 rest/video/v1/model_list_room_participant_published_track_response.go rename rest/video/v1/{model_video_v1_room_room_participant_read_response.go => model_list_room_participant_response.go} (52%) create mode 100644 rest/video/v1/model_list_room_participant_subscribed_track_response.go rename rest/video/v1/{model_video_v1_room_room_recording_read_response.go => model_list_room_recording_response.go} (52%) rename rest/video/v1/{model_video_v1_room_read_response.go => model_list_room_response.go} (54%) delete mode 100644 rest/video/v1/model_video_v1_room_room_participant_room_participant_published_track_read_response.go delete mode 100644 rest/video/v1/model_video_v1_room_room_participant_room_participant_subscribed_track_read_response.go rename rest/voice/v1/docs/{VoiceV1ByocTrunkReadResponse.md => ListByocTrunkResponse.md} (72%) create mode 100644 rest/voice/v1/docs/ListByocTrunkResponseMeta.md rename rest/voice/v1/docs/{VoiceV1ConnectionPolicyReadResponse.md => ListConnectionPolicyResponse.md} (72%) rename rest/voice/v1/docs/{VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse.md => ListConnectionPolicyTargetResponse.md} (71%) rename rest/voice/v1/docs/{VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse.md => ListDialingPermissionsCountryResponse.md} (71%) rename rest/voice/v1/docs/{VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse.md => ListDialingPermissionsHrsPrefixesResponse.md} (70%) rename rest/voice/v1/docs/{VoiceV1IpRecordReadResponse.md => ListIpRecordResponse.md} (72%) rename rest/voice/v1/docs/{VoiceV1SourceIpMappingReadResponse.md => ListSourceIpMappingResponse.md} (72%) delete mode 100644 rest/voice/v1/docs/VoiceV1ByocTrunkReadResponseMeta.md rename rest/voice/v1/{model_voice_v1_byoc_trunk_read_response.go => model_list_byoc_trunk_response.go} (55%) rename rest/voice/v1/{model_voice_v1_byoc_trunk_read_response_meta.go => model_list_byoc_trunk_response_meta.go} (76%) rename rest/voice/v1/{model_voice_v1_connection_policy_read_response.go => model_list_connection_policy_response.go} (55%) create mode 100644 rest/voice/v1/model_list_connection_policy_target_response.go create mode 100644 rest/voice/v1/model_list_dialing_permissions_country_response.go create mode 100644 rest/voice/v1/model_list_dialing_permissions_hrs_prefixes_response.go rename rest/voice/v1/{model_voice_v1_ip_record_read_response.go => model_list_ip_record_response.go} (55%) rename rest/voice/v1/{model_voice_v1_source_ip_mapping_read_response.go => model_list_source_ip_mapping_response.go} (54%) delete mode 100644 rest/voice/v1/model_voice_v1_connection_policy_connection_policy_target_read_response.go delete mode 100644 rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_dialing_permissions_hrs_prefixes_read_response.go delete mode 100644 rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_read_response.go rename rest/wireless/v1/docs/{WirelessV1AccountUsageRecordReadResponse.md => ListAccountUsageRecordResponse.md} (71%) rename rest/wireless/v1/docs/{WirelessV1CommandReadResponse.md => ListCommandResponse.md} (71%) create mode 100644 rest/wireless/v1/docs/ListCommandResponseMeta.md rename rest/wireless/v1/docs/{WirelessV1SimDataSessionReadResponse.md => ListDataSessionResponse.md} (71%) rename rest/wireless/v1/docs/{WirelessV1RatePlanReadResponse.md => ListRatePlanResponse.md} (71%) rename rest/wireless/v1/docs/{WirelessV1SimReadResponse.md => ListSimResponse.md} (71%) rename rest/wireless/v1/docs/{WirelessV1SimUsageRecordReadResponse.md => ListUsageRecordResponse.md} (71%) delete mode 100644 rest/wireless/v1/docs/WirelessV1CommandReadResponseMeta.md rename rest/wireless/v1/{model_wireless_v1_account_usage_record_read_response.go => model_list_account_usage_record_response.go} (52%) rename rest/wireless/v1/{model_wireless_v1_command_read_response.go => model_list_command_response.go} (54%) rename rest/wireless/v1/{model_wireless_v1_command_read_response_meta.go => model_list_command_response_meta.go} (76%) rename rest/wireless/v1/{model_wireless_v1_sim_data_session_read_response.go => model_list_data_session_response.go} (53%) rename rest/wireless/v1/{model_wireless_v1_rate_plan_read_response.go => model_list_rate_plan_response.go} (54%) rename rest/wireless/v1/{model_wireless_v1_sim_read_response.go => model_list_sim_response.go} (55%) rename rest/wireless/v1/{model_wireless_v1_sim_usage_record_read_response.go => model_list_usage_record_response.go} (53%) diff --git a/apitest.go b/apitest.go new file mode 100644 index 000000000..c5d58695e --- /dev/null +++ b/apitest.go @@ -0,0 +1,35 @@ +package main + +import ( + "fmt" + "github.com/twilio/twilio-go/twilio" + "io/ioutil" + "net/url" + "os" +) + +func main() { + client := twilio.NewClient(os.Getenv("TWILIO_ACCOUNT_SID"), os.Getenv("TWILIO_AUTH_TOKEN")) + + resp, err := client.ApiV2010.FetchAccount(os.Getenv("TWILIO_ACCOUNT_SID")); + + if err != nil { + fmt.Println("Error="+err.Error()) + err = nil + } else { + fmt.Print("Success") + fmt.Println(resp) + } + data := url.Values{} + data.Set("Date", "2020-09-05") + redirectResp, err := client.Get("https://messaging.twilio.com/v1/Deactivations", data, nil) + if err != nil { + fmt.Println(err.Error()) + } else { + bodyBytes, err := ioutil.ReadAll(redirectResp.Body) + if err != nil { + fmt.Println(err.Error()) + } + fmt.Println(string(bodyBytes)) + } +} diff --git a/rest/accounts/v1/README.md b/rest/accounts/v1/README.md index 125c7580c..9bb2f0891 100644 --- a/rest/accounts/v1/README.md +++ b/rest/accounts/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 5.15.0 +- API version: 1.0.0 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) @@ -50,13 +50,13 @@ Class | Method | HTTP request | Description - [AccountsV1AuthTokenPromotion](docs/AccountsV1AuthTokenPromotion.md) - [AccountsV1CredentialCredentialAws](docs/AccountsV1CredentialCredentialAws.md) - - [AccountsV1CredentialCredentialAwsReadResponse](docs/AccountsV1CredentialCredentialAwsReadResponse.md) - - [AccountsV1CredentialCredentialAwsReadResponseMeta](docs/AccountsV1CredentialCredentialAwsReadResponseMeta.md) - [AccountsV1CredentialCredentialPublicKey](docs/AccountsV1CredentialCredentialPublicKey.md) - - [AccountsV1CredentialCredentialPublicKeyReadResponse](docs/AccountsV1CredentialCredentialPublicKeyReadResponse.md) - [AccountsV1SecondaryAuthToken](docs/AccountsV1SecondaryAuthToken.md) - [CreateCredentialAwsRequest](docs/CreateCredentialAwsRequest.md) - [CreateCredentialPublicKeyRequest](docs/CreateCredentialPublicKeyRequest.md) + - [ListCredentialAwsResponse](docs/ListCredentialAwsResponse.md) + - [ListCredentialAwsResponseMeta](docs/ListCredentialAwsResponseMeta.md) + - [ListCredentialPublicKeyResponse](docs/ListCredentialPublicKeyResponse.md) - [UpdateCredentialAwsRequest](docs/UpdateCredentialAwsRequest.md) - [UpdateCredentialPublicKeyRequest](docs/UpdateCredentialPublicKeyRequest.md) diff --git a/rest/accounts/v1/api_default.go b/rest/accounts/v1/api_default.go index f440dbef7..4a779f1aa 100644 --- a/rest/accounts/v1/api_default.go +++ b/rest/accounts/v1/api_default.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -26,14 +26,14 @@ type DefaultApiService struct { func NewDefaultApiService(client *twilio.Client) *DefaultApiService { return &DefaultApiService { client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + baseURL: fmt.Sprintf("https://accounts.twilio.com"), } } // CreateCredentialAwsParams Optional parameters for the method 'CreateCredentialAws' type CreateCredentialAwsParams struct { - AccountSid *string `json:"AccountSid,omitempty"` - Credentials *string `json:"Credentials,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` + AccountSid *string `json:"AccountSid,omitempty"` + Credentials *string `json:"Credentials,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -79,9 +79,9 @@ func (c *DefaultApiService) CreateCredentialAws(params *CreateCredentialAwsParam } // CreateCredentialPublicKeyParams Optional parameters for the method 'CreateCredentialPublicKey' type CreateCredentialPublicKeyParams struct { - AccountSid *string `json:"AccountSid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PublicKey *string `json:"PublicKey,omitempty"` + AccountSid *string `json:"AccountSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PublicKey *string `json:"PublicKey,omitempty"` } /* @@ -291,7 +291,7 @@ func (c *DefaultApiService) FetchCredentialPublicKey(Sid string) (*AccountsV1Cre } // ListCredentialAwsParams Optional parameters for the method 'ListCredentialAws' type ListCredentialAwsParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -299,9 +299,9 @@ ListCredentialAws Method for ListCredentialAws Retrieves a collection of AWS Credentials belonging to the account used to make the request * @param optional nil or *ListCredentialAwsOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return AccountsV1CredentialCredentialAwsReadResponse +@return ListCredentialAwsResponse */ -func (c *DefaultApiService) ListCredentialAws(params *ListCredentialAwsParams) (*AccountsV1CredentialCredentialAwsReadResponse, error) { +func (c *DefaultApiService) ListCredentialAws(params *ListCredentialAwsParams) (*ListCredentialAwsResponse, error) { path := "/v1/Credentials/AWS" @@ -320,7 +320,7 @@ func (c *DefaultApiService) ListCredentialAws(params *ListCredentialAwsParams) ( defer resp.Body.Close() - ps := &AccountsV1CredentialCredentialAwsReadResponse{} + ps := &ListCredentialAwsResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -329,7 +329,7 @@ func (c *DefaultApiService) ListCredentialAws(params *ListCredentialAwsParams) ( } // ListCredentialPublicKeyParams Optional parameters for the method 'ListCredentialPublicKey' type ListCredentialPublicKeyParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -337,9 +337,9 @@ ListCredentialPublicKey Method for ListCredentialPublicKey Retrieves a collection of Public Key Credentials belonging to the account used to make the request * @param optional nil or *ListCredentialPublicKeyOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return AccountsV1CredentialCredentialPublicKeyReadResponse +@return ListCredentialPublicKeyResponse */ -func (c *DefaultApiService) ListCredentialPublicKey(params *ListCredentialPublicKeyParams) (*AccountsV1CredentialCredentialPublicKeyReadResponse, error) { +func (c *DefaultApiService) ListCredentialPublicKey(params *ListCredentialPublicKeyParams) (*ListCredentialPublicKeyResponse, error) { path := "/v1/Credentials/PublicKeys" @@ -358,7 +358,7 @@ func (c *DefaultApiService) ListCredentialPublicKey(params *ListCredentialPublic defer resp.Body.Close() - ps := &AccountsV1CredentialCredentialPublicKeyReadResponse{} + ps := &ListCredentialPublicKeyResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -396,7 +396,7 @@ func (c *DefaultApiService) UpdateAuthTokenPromotion() (*AccountsV1AuthTokenProm } // UpdateCredentialAwsParams Optional parameters for the method 'UpdateCredentialAws' type UpdateCredentialAwsParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -436,7 +436,7 @@ func (c *DefaultApiService) UpdateCredentialAws(Sid string, params *UpdateCreden } // UpdateCredentialPublicKeyParams Optional parameters for the method 'UpdateCredentialPublicKey' type UpdateCredentialPublicKeyParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* diff --git a/rest/accounts/v1/docs/AccountsV1CredentialCredentialAwsReadResponseMeta.md b/rest/accounts/v1/docs/AccountsV1CredentialCredentialAwsReadResponseMeta.md deleted file mode 100644 index b15a48172..000000000 --- a/rest/accounts/v1/docs/AccountsV1CredentialCredentialAwsReadResponseMeta.md +++ /dev/null @@ -1,17 +0,0 @@ -# AccountsV1CredentialCredentialAwsReadResponseMeta - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FirstPageUrl** | **string** | | [optional] -**Key** | **string** | | [optional] -**NextPageUrl** | **string** | | [optional] -**Page** | **int32** | | [optional] -**PageSize** | **int32** | | [optional] -**PreviousPageUrl** | **string** | | [optional] -**Url** | **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/rest/accounts/v1/docs/DefaultApi.md b/rest/accounts/v1/docs/DefaultApi.md index c6d32d3d3..6c90ff4f9 100644 --- a/rest/accounts/v1/docs/DefaultApi.md +++ b/rest/accounts/v1/docs/DefaultApi.md @@ -308,7 +308,7 @@ Name | Type | Description | Notes ## ListCredentialAws -> AccountsV1CredentialCredentialAwsReadResponse ListCredentialAws(ctx, optional) +> ListCredentialAwsResponse ListCredentialAws(ctx, optional) @@ -333,7 +333,7 @@ Name | Type | Description | Notes ### Return type -[**AccountsV1CredentialCredentialAwsReadResponse**](accounts_v1_credential_credential_awsReadResponse.md) +[**ListCredentialAwsResponse**](ListCredentialAwsResponse.md) ### Authorization @@ -351,7 +351,7 @@ Name | Type | Description | Notes ## ListCredentialPublicKey -> AccountsV1CredentialCredentialPublicKeyReadResponse ListCredentialPublicKey(ctx, optional) +> ListCredentialPublicKeyResponse ListCredentialPublicKey(ctx, optional) @@ -376,7 +376,7 @@ Name | Type | Description | Notes ### Return type -[**AccountsV1CredentialCredentialPublicKeyReadResponse**](accounts_v1_credential_credential_public_keyReadResponse.md) +[**ListCredentialPublicKeyResponse**](ListCredentialPublicKeyResponse.md) ### Authorization diff --git a/rest/accounts/v1/docs/AccountsV1CredentialCredentialAwsReadResponse.md b/rest/accounts/v1/docs/ListCredentialAwsResponse.md similarity index 67% rename from rest/accounts/v1/docs/AccountsV1CredentialCredentialAwsReadResponse.md rename to rest/accounts/v1/docs/ListCredentialAwsResponse.md index 240b3c53d..c86e84f00 100644 --- a/rest/accounts/v1/docs/AccountsV1CredentialCredentialAwsReadResponse.md +++ b/rest/accounts/v1/docs/ListCredentialAwsResponse.md @@ -1,11 +1,11 @@ -# AccountsV1CredentialCredentialAwsReadResponse +# ListCredentialAwsResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Credentials** | [**[]AccountsV1CredentialCredentialAws**](accounts.v1.credential.credential_aws.md) | | [optional] -**Meta** | [**AccountsV1CredentialCredentialAwsReadResponseMeta**](accounts_v1_credential_credential_awsReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialAwsResponseMeta**](ListCredentialAwsResponse_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/rest/flex/v1/docs/FlexV1ChannelReadResponseMeta.md b/rest/accounts/v1/docs/ListCredentialAwsResponseMeta.md similarity index 94% rename from rest/flex/v1/docs/FlexV1ChannelReadResponseMeta.md rename to rest/accounts/v1/docs/ListCredentialAwsResponseMeta.md index d108881ee..5a48b0de0 100644 --- a/rest/flex/v1/docs/FlexV1ChannelReadResponseMeta.md +++ b/rest/accounts/v1/docs/ListCredentialAwsResponseMeta.md @@ -1,4 +1,4 @@ -# FlexV1ChannelReadResponseMeta +# ListCredentialAwsResponseMeta ## Properties diff --git a/rest/accounts/v1/docs/AccountsV1CredentialCredentialPublicKeyReadResponse.md b/rest/accounts/v1/docs/ListCredentialPublicKeyResponse.md similarity index 67% rename from rest/accounts/v1/docs/AccountsV1CredentialCredentialPublicKeyReadResponse.md rename to rest/accounts/v1/docs/ListCredentialPublicKeyResponse.md index f56326d85..bd5568fc8 100644 --- a/rest/accounts/v1/docs/AccountsV1CredentialCredentialPublicKeyReadResponse.md +++ b/rest/accounts/v1/docs/ListCredentialPublicKeyResponse.md @@ -1,11 +1,11 @@ -# AccountsV1CredentialCredentialPublicKeyReadResponse +# ListCredentialPublicKeyResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Credentials** | [**[]AccountsV1CredentialCredentialPublicKey**](accounts.v1.credential.credential_public_key.md) | | [optional] -**Meta** | [**AccountsV1CredentialCredentialAwsReadResponseMeta**](accounts_v1_credential_credential_awsReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialAwsResponseMeta**](ListCredentialAwsResponse_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/rest/accounts/v1/model_accounts_v1_auth_token_promotion.go b/rest/accounts/v1/model_accounts_v1_auth_token_promotion.go index b33f38d88..fe3d9ea5a 100644 --- a/rest/accounts/v1/model_accounts_v1_auth_token_promotion.go +++ b/rest/accounts/v1/model_accounts_v1_auth_token_promotion.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/accounts/v1/model_accounts_v1_credential_credential_aws.go b/rest/accounts/v1/model_accounts_v1_credential_credential_aws.go index 432f276a1..ff112fc19 100644 --- a/rest/accounts/v1/model_accounts_v1_credential_credential_aws.go +++ b/rest/accounts/v1/model_accounts_v1_credential_credential_aws.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/accounts/v1/model_accounts_v1_credential_credential_aws_read_response_meta.go b/rest/accounts/v1/model_accounts_v1_credential_credential_aws_read_response_meta.go deleted file mode 100644 index f98116ac2..000000000 --- a/rest/accounts/v1/model_accounts_v1_credential_credential_aws_read_response_meta.go +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Twilio - Accounts - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// AccountsV1CredentialCredentialAwsReadResponseMeta struct for AccountsV1CredentialCredentialAwsReadResponseMeta -type AccountsV1CredentialCredentialAwsReadResponseMeta struct { - FirstPageUrl string `json:"FirstPageUrl,omitempty"` - Key string `json:"Key,omitempty"` - NextPageUrl string `json:"NextPageUrl,omitempty"` - Page int32 `json:"Page,omitempty"` - PageSize int32 `json:"PageSize,omitempty"` - PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` - Url string `json:"Url,omitempty"` -} diff --git a/rest/accounts/v1/model_accounts_v1_credential_credential_public_key.go b/rest/accounts/v1/model_accounts_v1_credential_credential_public_key.go index 6ec1290d5..97e73c1aa 100644 --- a/rest/accounts/v1/model_accounts_v1_credential_credential_public_key.go +++ b/rest/accounts/v1/model_accounts_v1_credential_credential_public_key.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/accounts/v1/model_accounts_v1_credential_credential_public_key_read_response.go b/rest/accounts/v1/model_accounts_v1_credential_credential_public_key_read_response.go deleted file mode 100644 index 2c792f4c4..000000000 --- a/rest/accounts/v1/model_accounts_v1_credential_credential_public_key_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Accounts - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// AccountsV1CredentialCredentialPublicKeyReadResponse struct for AccountsV1CredentialCredentialPublicKeyReadResponse -type AccountsV1CredentialCredentialPublicKeyReadResponse struct { - Credentials []AccountsV1CredentialCredentialPublicKey `json:"Credentials,omitempty"` - Meta AccountsV1CredentialCredentialAwsReadResponseMeta `json:"Meta,omitempty"` -} diff --git a/rest/accounts/v1/model_accounts_v1_secondary_auth_token.go b/rest/accounts/v1/model_accounts_v1_secondary_auth_token.go index 80450a104..c054c915b 100644 --- a/rest/accounts/v1/model_accounts_v1_secondary_auth_token.go +++ b/rest/accounts/v1/model_accounts_v1_secondary_auth_token.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/accounts/v1/model_create_credential_aws_request.go b/rest/accounts/v1/model_create_credential_aws_request.go index f2a6ee6ef..c011b2562 100644 --- a/rest/accounts/v1/model_create_credential_aws_request.go +++ b/rest/accounts/v1/model_create_credential_aws_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/accounts/v1/model_create_credential_public_key_request.go b/rest/accounts/v1/model_create_credential_public_key_request.go index 9d0c685e4..d5ee493b4 100644 --- a/rest/accounts/v1/model_create_credential_public_key_request.go +++ b/rest/accounts/v1/model_create_credential_public_key_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/accounts/v1/model_accounts_v1_credential_credential_aws_read_response.go b/rest/accounts/v1/model_list_credential_aws_response.go similarity index 50% rename from rest/accounts/v1/model_accounts_v1_credential_credential_aws_read_response.go rename to rest/accounts/v1/model_list_credential_aws_response.go index 77e44fcf7..207358525 100644 --- a/rest/accounts/v1/model_accounts_v1_credential_credential_aws_read_response.go +++ b/rest/accounts/v1/model_list_credential_aws_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// AccountsV1CredentialCredentialAwsReadResponse struct for AccountsV1CredentialCredentialAwsReadResponse -type AccountsV1CredentialCredentialAwsReadResponse struct { +// ListCredentialAwsResponse struct for ListCredentialAwsResponse +type ListCredentialAwsResponse struct { Credentials []AccountsV1CredentialCredentialAws `json:"Credentials,omitempty"` - Meta AccountsV1CredentialCredentialAwsReadResponseMeta `json:"Meta,omitempty"` + Meta ListCredentialAwsResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/accounts/v1/model_list_credential_aws_response_meta.go b/rest/accounts/v1/model_list_credential_aws_response_meta.go new file mode 100644 index 000000000..6374282be --- /dev/null +++ b/rest/accounts/v1/model_list_credential_aws_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Accounts + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListCredentialAwsResponseMeta struct for ListCredentialAwsResponseMeta +type ListCredentialAwsResponseMeta struct { + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` +} diff --git a/rest/accounts/v1/model_list_credential_public_key_response.go b/rest/accounts/v1/model_list_credential_public_key_response.go new file mode 100644 index 000000000..4ad145f71 --- /dev/null +++ b/rest/accounts/v1/model_list_credential_public_key_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Accounts + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListCredentialPublicKeyResponse struct for ListCredentialPublicKeyResponse +type ListCredentialPublicKeyResponse struct { + Credentials []AccountsV1CredentialCredentialPublicKey `json:"Credentials,omitempty"` + Meta ListCredentialAwsResponseMeta `json:"Meta,omitempty"` +} diff --git a/rest/accounts/v1/model_update_credential_aws_request.go b/rest/accounts/v1/model_update_credential_aws_request.go index 0e1f70bde..e56bf4830 100644 --- a/rest/accounts/v1/model_update_credential_aws_request.go +++ b/rest/accounts/v1/model_update_credential_aws_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/accounts/v1/model_update_credential_public_key_request.go b/rest/accounts/v1/model_update_credential_public_key_request.go index 699ad6e0e..e17948a42 100644 --- a/rest/accounts/v1/model_update_credential_public_key_request.go +++ b/rest/accounts/v1/model_update_credential_public_key_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/accounts/v1/response.go b/rest/accounts/v1/response.go index 5533a8c6d..dd33f40ba 100644 --- a/rest/accounts/v1/response.go +++ b/rest/accounts/v1/response.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/README.md b/rest/api/v2010/README.md index 0721b8e99..c2cb0c38e 100644 --- a/rest/api/v2010/README.md +++ b/rest/api/v2010/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 5.15.0 +- API version: 1.0.0 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) @@ -230,135 +230,74 @@ Class | Method | HTTP request | Description - [ApiV2010Account](docs/ApiV2010Account.md) - [ApiV2010AccountAddress](docs/ApiV2010AccountAddress.md) - [ApiV2010AccountAddressDependentPhoneNumber](docs/ApiV2010AccountAddressDependentPhoneNumber.md) - - [ApiV2010AccountAddressDependentPhoneNumberReadResponse](docs/ApiV2010AccountAddressDependentPhoneNumberReadResponse.md) - - [ApiV2010AccountAddressReadResponse](docs/ApiV2010AccountAddressReadResponse.md) - [ApiV2010AccountApplication](docs/ApiV2010AccountApplication.md) - - [ApiV2010AccountApplicationReadResponse](docs/ApiV2010AccountApplicationReadResponse.md) - [ApiV2010AccountAuthorizedConnectApp](docs/ApiV2010AccountAuthorizedConnectApp.md) - - [ApiV2010AccountAuthorizedConnectAppReadResponse](docs/ApiV2010AccountAuthorizedConnectAppReadResponse.md) - [ApiV2010AccountAvailablePhoneNumberCountry](docs/ApiV2010AccountAvailablePhoneNumberCountry.md) - [ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocal](docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocal.md) - - [ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse](docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse.md) - [ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachine](docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachine.md) - - [ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse](docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse.md) - [ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobile](docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobile.md) - - [ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse](docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse.md) - [ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNational](docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNational.md) - - [ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse](docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse.md) - [ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCost](docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCost.md) - - [ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse](docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse.md) - [ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFree](docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFree.md) - - [ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse](docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse.md) - [ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoip](docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoip.md) - - [ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse](docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse.md) - - [ApiV2010AccountAvailablePhoneNumberCountryReadResponse](docs/ApiV2010AccountAvailablePhoneNumberCountryReadResponse.md) - [ApiV2010AccountBalance](docs/ApiV2010AccountBalance.md) - [ApiV2010AccountCall](docs/ApiV2010AccountCall.md) - [ApiV2010AccountCallCallEvent](docs/ApiV2010AccountCallCallEvent.md) - - [ApiV2010AccountCallCallEventReadResponse](docs/ApiV2010AccountCallCallEventReadResponse.md) - [ApiV2010AccountCallCallFeedback](docs/ApiV2010AccountCallCallFeedback.md) - [ApiV2010AccountCallCallFeedbackSummary](docs/ApiV2010AccountCallCallFeedbackSummary.md) - [ApiV2010AccountCallCallNotification](docs/ApiV2010AccountCallCallNotification.md) - [ApiV2010AccountCallCallNotificationInstance](docs/ApiV2010AccountCallCallNotificationInstance.md) - - [ApiV2010AccountCallCallNotificationReadResponse](docs/ApiV2010AccountCallCallNotificationReadResponse.md) - [ApiV2010AccountCallCallRecording](docs/ApiV2010AccountCallCallRecording.md) - - [ApiV2010AccountCallCallRecordingReadResponse](docs/ApiV2010AccountCallCallRecordingReadResponse.md) - [ApiV2010AccountCallPayments](docs/ApiV2010AccountCallPayments.md) - - [ApiV2010AccountCallReadResponse](docs/ApiV2010AccountCallReadResponse.md) - [ApiV2010AccountConference](docs/ApiV2010AccountConference.md) - [ApiV2010AccountConferenceConferenceRecording](docs/ApiV2010AccountConferenceConferenceRecording.md) - - [ApiV2010AccountConferenceConferenceRecordingReadResponse](docs/ApiV2010AccountConferenceConferenceRecordingReadResponse.md) - [ApiV2010AccountConferenceParticipant](docs/ApiV2010AccountConferenceParticipant.md) - - [ApiV2010AccountConferenceParticipantReadResponse](docs/ApiV2010AccountConferenceParticipantReadResponse.md) - - [ApiV2010AccountConferenceReadResponse](docs/ApiV2010AccountConferenceReadResponse.md) - [ApiV2010AccountConnectApp](docs/ApiV2010AccountConnectApp.md) - - [ApiV2010AccountConnectAppReadResponse](docs/ApiV2010AccountConnectAppReadResponse.md) - [ApiV2010AccountIncomingPhoneNumber](docs/ApiV2010AccountIncomingPhoneNumber.md) - [ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn](docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn.md) - [ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension](docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension.md) - - [ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse](docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse.md) - - [ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse](docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse.md) - [ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocal](docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocal.md) - - [ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse](docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse.md) - [ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobile](docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobile.md) - - [ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse](docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse.md) - [ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFree](docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFree.md) - - [ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse](docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse.md) - - [ApiV2010AccountIncomingPhoneNumberReadResponse](docs/ApiV2010AccountIncomingPhoneNumberReadResponse.md) - [ApiV2010AccountKey](docs/ApiV2010AccountKey.md) - - [ApiV2010AccountKeyReadResponse](docs/ApiV2010AccountKeyReadResponse.md) - [ApiV2010AccountMessage](docs/ApiV2010AccountMessage.md) - [ApiV2010AccountMessageMedia](docs/ApiV2010AccountMessageMedia.md) - - [ApiV2010AccountMessageMediaReadResponse](docs/ApiV2010AccountMessageMediaReadResponse.md) - [ApiV2010AccountMessageMessageFeedback](docs/ApiV2010AccountMessageMessageFeedback.md) - - [ApiV2010AccountMessageReadResponse](docs/ApiV2010AccountMessageReadResponse.md) - [ApiV2010AccountNewKey](docs/ApiV2010AccountNewKey.md) - [ApiV2010AccountNewSigningKey](docs/ApiV2010AccountNewSigningKey.md) - [ApiV2010AccountNotification](docs/ApiV2010AccountNotification.md) - [ApiV2010AccountNotificationInstance](docs/ApiV2010AccountNotificationInstance.md) - - [ApiV2010AccountNotificationReadResponse](docs/ApiV2010AccountNotificationReadResponse.md) - [ApiV2010AccountOutgoingCallerId](docs/ApiV2010AccountOutgoingCallerId.md) - - [ApiV2010AccountOutgoingCallerIdReadResponse](docs/ApiV2010AccountOutgoingCallerIdReadResponse.md) - [ApiV2010AccountQueue](docs/ApiV2010AccountQueue.md) - [ApiV2010AccountQueueMember](docs/ApiV2010AccountQueueMember.md) - - [ApiV2010AccountQueueMemberReadResponse](docs/ApiV2010AccountQueueMemberReadResponse.md) - - [ApiV2010AccountQueueReadResponse](docs/ApiV2010AccountQueueReadResponse.md) - - [ApiV2010AccountReadResponse](docs/ApiV2010AccountReadResponse.md) - [ApiV2010AccountRecording](docs/ApiV2010AccountRecording.md) - - [ApiV2010AccountRecordingReadResponse](docs/ApiV2010AccountRecordingReadResponse.md) - [ApiV2010AccountRecordingRecordingAddOnResult](docs/ApiV2010AccountRecordingRecordingAddOnResult.md) - - [ApiV2010AccountRecordingRecordingAddOnResultReadResponse](docs/ApiV2010AccountRecordingRecordingAddOnResultReadResponse.md) - [ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayload](docs/ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayload.md) - - [ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse](docs/ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse.md) - [ApiV2010AccountRecordingRecordingTranscription](docs/ApiV2010AccountRecordingRecordingTranscription.md) - - [ApiV2010AccountRecordingRecordingTranscriptionReadResponse](docs/ApiV2010AccountRecordingRecordingTranscriptionReadResponse.md) - [ApiV2010AccountShortCode](docs/ApiV2010AccountShortCode.md) - - [ApiV2010AccountShortCodeReadResponse](docs/ApiV2010AccountShortCodeReadResponse.md) - [ApiV2010AccountSigningKey](docs/ApiV2010AccountSigningKey.md) - - [ApiV2010AccountSigningKeyReadResponse](docs/ApiV2010AccountSigningKeyReadResponse.md) - [ApiV2010AccountSipSipCredentialList](docs/ApiV2010AccountSipSipCredentialList.md) - - [ApiV2010AccountSipSipCredentialListReadResponse](docs/ApiV2010AccountSipSipCredentialListReadResponse.md) - [ApiV2010AccountSipSipCredentialListSipCredential](docs/ApiV2010AccountSipSipCredentialListSipCredential.md) - - [ApiV2010AccountSipSipCredentialListSipCredentialReadResponse](docs/ApiV2010AccountSipSipCredentialListSipCredentialReadResponse.md) - [ApiV2010AccountSipSipDomain](docs/ApiV2010AccountSipSipDomain.md) - - [ApiV2010AccountSipSipDomainReadResponse](docs/ApiV2010AccountSipSipDomainReadResponse.md) - [ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping](docs/ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping.md) - - [ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse](docs/ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse.md) - [ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping](docs/ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping.md) - - [ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse](docs/ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse.md) - [ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping](docs/ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping.md) - - [ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse](docs/ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse.md) - [ApiV2010AccountSipSipDomainSipCredentialListMapping](docs/ApiV2010AccountSipSipDomainSipCredentialListMapping.md) - - [ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse](docs/ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse.md) - [ApiV2010AccountSipSipDomainSipIpAccessControlListMapping](docs/ApiV2010AccountSipSipDomainSipIpAccessControlListMapping.md) - - [ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse](docs/ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse.md) - [ApiV2010AccountSipSipIpAccessControlList](docs/ApiV2010AccountSipSipIpAccessControlList.md) - - [ApiV2010AccountSipSipIpAccessControlListReadResponse](docs/ApiV2010AccountSipSipIpAccessControlListReadResponse.md) - [ApiV2010AccountSipSipIpAccessControlListSipIpAddress](docs/ApiV2010AccountSipSipIpAccessControlListSipIpAddress.md) - - [ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse](docs/ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse.md) - [ApiV2010AccountToken](docs/ApiV2010AccountToken.md) - [ApiV2010AccountTranscription](docs/ApiV2010AccountTranscription.md) - - [ApiV2010AccountTranscriptionReadResponse](docs/ApiV2010AccountTranscriptionReadResponse.md) - [ApiV2010AccountUsageUsageRecord](docs/ApiV2010AccountUsageUsageRecord.md) - - [ApiV2010AccountUsageUsageRecordReadResponse](docs/ApiV2010AccountUsageUsageRecordReadResponse.md) - [ApiV2010AccountUsageUsageRecordUsageRecordAllTime](docs/ApiV2010AccountUsageUsageRecordUsageRecordAllTime.md) - - [ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse](docs/ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse.md) - [ApiV2010AccountUsageUsageRecordUsageRecordDaily](docs/ApiV2010AccountUsageUsageRecordUsageRecordDaily.md) - - [ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse](docs/ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse.md) - [ApiV2010AccountUsageUsageRecordUsageRecordLastMonth](docs/ApiV2010AccountUsageUsageRecordUsageRecordLastMonth.md) - - [ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse](docs/ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse.md) - [ApiV2010AccountUsageUsageRecordUsageRecordMonthly](docs/ApiV2010AccountUsageUsageRecordUsageRecordMonthly.md) - - [ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse](docs/ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse.md) - [ApiV2010AccountUsageUsageRecordUsageRecordThisMonth](docs/ApiV2010AccountUsageUsageRecordUsageRecordThisMonth.md) - - [ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse](docs/ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse.md) - [ApiV2010AccountUsageUsageRecordUsageRecordToday](docs/ApiV2010AccountUsageUsageRecordUsageRecordToday.md) - - [ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse](docs/ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse.md) - [ApiV2010AccountUsageUsageRecordUsageRecordYearly](docs/ApiV2010AccountUsageUsageRecordUsageRecordYearly.md) - - [ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse](docs/ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse.md) - [ApiV2010AccountUsageUsageRecordUsageRecordYesterday](docs/ApiV2010AccountUsageUsageRecordUsageRecordYesterday.md) - - [ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse](docs/ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse.md) - [ApiV2010AccountUsageUsageTrigger](docs/ApiV2010AccountUsageUsageTrigger.md) - - [ApiV2010AccountUsageUsageTriggerReadResponse](docs/ApiV2010AccountUsageUsageTriggerReadResponse.md) - [ApiV2010AccountValidationRequest](docs/ApiV2010AccountValidationRequest.md) - [CreateAccountRequest](docs/CreateAccountRequest.md) - [CreateAddressRequest](docs/CreateAddressRequest.md) @@ -391,6 +330,67 @@ Class | Method | HTTP request | Description - [CreateTokenRequest](docs/CreateTokenRequest.md) - [CreateUsageTriggerRequest](docs/CreateUsageTriggerRequest.md) - [CreateValidationRequestRequest](docs/CreateValidationRequestRequest.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) - [UpdateAccountRequest](docs/UpdateAccountRequest.md) - [UpdateAddressRequest](docs/UpdateAddressRequest.md) - [UpdateApplicationRequest](docs/UpdateApplicationRequest.md) @@ -422,7 +422,7 @@ Class | Method | HTTP request | Description -## AccountSid_authToken +## accountSid_authToken - **Type**: HTTP basic authentication diff --git a/rest/api/v2010/api_default.go b/rest/api/v2010/api_default.go index 842c273b0..7e404f7ec 100644 --- a/rest/api/v2010/api_default.go +++ b/rest/api/v2010/api_default.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -27,12 +27,12 @@ type DefaultApiService struct { func NewDefaultApiService(client *twilio.Client) *DefaultApiService { return &DefaultApiService { client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + baseURL: fmt.Sprintf("https://api.twilio.com"), } } // CreateAccountParams Optional parameters for the method 'CreateAccount' type CreateAccountParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -70,15 +70,15 @@ func (c *DefaultApiService) CreateAccount(params *CreateAccountParams) (*ApiV201 } // CreateAddressParams Optional parameters for the method 'CreateAddress' type CreateAddressParams struct { - AutoCorrectAddress *bool `json:"AutoCorrectAddress,omitempty"` - City *string `json:"City,omitempty"` - CustomerName *string `json:"CustomerName,omitempty"` - EmergencyEnabled *bool `json:"EmergencyEnabled,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - IsoCountry *string `json:"IsoCountry,omitempty"` - PostalCode *string `json:"PostalCode,omitempty"` - Region *string `json:"Region,omitempty"` - Street *string `json:"Street,omitempty"` + AutoCorrectAddress *bool `json:"AutoCorrectAddress,omitempty"` + City *string `json:"City,omitempty"` + CustomerName *string `json:"CustomerName,omitempty"` + EmergencyEnabled *bool `json:"EmergencyEnabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IsoCountry *string `json:"IsoCountry,omitempty"` + PostalCode *string `json:"PostalCode,omitempty"` + Region *string `json:"Region,omitempty"` + Street *string `json:"Street,omitempty"` } /* @@ -149,21 +149,21 @@ func (c *DefaultApiService) CreateAddress(AccountSid string, params *CreateAddre } // CreateApplicationParams Optional parameters for the method 'CreateApplication' type CreateApplicationParams struct { - ApiVersion *string `json:"ApiVersion,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - MessageStatusCallback *string `json:"MessageStatusCallback,omitempty"` - SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` - SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` - SmsMethod *string `json:"SmsMethod,omitempty"` - SmsStatusCallback *string `json:"SmsStatusCallback,omitempty"` - SmsUrl *string `json:"SmsUrl,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - VoiceCallerIdLookup *bool `json:"VoiceCallerIdLookup,omitempty"` - VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` - VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` - VoiceMethod *string `json:"VoiceMethod,omitempty"` - VoiceUrl *string `json:"VoiceUrl,omitempty"` + ApiVersion *string `json:"ApiVersion,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + MessageStatusCallback *string `json:"MessageStatusCallback,omitempty"` + SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` + SmsMethod *string `json:"SmsMethod,omitempty"` + SmsStatusCallback *string `json:"SmsStatusCallback,omitempty"` + SmsUrl *string `json:"SmsUrl,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + VoiceCallerIdLookup *bool `json:"VoiceCallerIdLookup,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` } /* @@ -259,39 +259,39 @@ func (c *DefaultApiService) CreateApplication(AccountSid string, params *CreateA } // CreateCallParams Optional parameters for the method 'CreateCall' type CreateCallParams struct { - ApplicationSid *string `json:"ApplicationSid,omitempty"` - AsyncAmd *string `json:"AsyncAmd,omitempty"` - AsyncAmdStatusCallback *string `json:"AsyncAmdStatusCallback,omitempty"` - AsyncAmdStatusCallbackMethod *string `json:"AsyncAmdStatusCallbackMethod,omitempty"` - Byoc *string `json:"Byoc,omitempty"` - CallReason *string `json:"CallReason,omitempty"` - CallerId *string `json:"CallerId,omitempty"` - FallbackMethod *string `json:"FallbackMethod,omitempty"` - FallbackUrl *string `json:"FallbackUrl,omitempty"` - From *string `json:"From,omitempty"` - MachineDetection *string `json:"MachineDetection,omitempty"` - MachineDetectionSilenceTimeout *int32 `json:"MachineDetectionSilenceTimeout,omitempty"` - MachineDetectionSpeechEndThreshold *int32 `json:"MachineDetectionSpeechEndThreshold,omitempty"` - MachineDetectionSpeechThreshold *int32 `json:"MachineDetectionSpeechThreshold,omitempty"` - MachineDetectionTimeout *int32 `json:"MachineDetectionTimeout,omitempty"` - Method *string `json:"Method,omitempty"` - Record *bool `json:"Record,omitempty"` - RecordingChannels *string `json:"RecordingChannels,omitempty"` - RecordingStatusCallback *string `json:"RecordingStatusCallback,omitempty"` - RecordingStatusCallbackEvent *[]string `json:"RecordingStatusCallbackEvent,omitempty"` - RecordingStatusCallbackMethod *string `json:"RecordingStatusCallbackMethod,omitempty"` - RecordingTrack *string `json:"RecordingTrack,omitempty"` - SendDigits *string `json:"SendDigits,omitempty"` - SipAuthPassword *string `json:"SipAuthPassword,omitempty"` - SipAuthUsername *string `json:"SipAuthUsername,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StatusCallbackEvent *[]string `json:"StatusCallbackEvent,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - Timeout *int32 `json:"Timeout,omitempty"` - To *string `json:"To,omitempty"` - Trim *string `json:"Trim,omitempty"` - Twiml *string `json:"Twiml,omitempty"` - Url *string `json:"Url,omitempty"` + ApplicationSid *string `json:"ApplicationSid,omitempty"` + AsyncAmd *string `json:"AsyncAmd,omitempty"` + AsyncAmdStatusCallback *string `json:"AsyncAmdStatusCallback,omitempty"` + AsyncAmdStatusCallbackMethod *string `json:"AsyncAmdStatusCallbackMethod,omitempty"` + Byoc *string `json:"Byoc,omitempty"` + CallReason *string `json:"CallReason,omitempty"` + CallerId *string `json:"CallerId,omitempty"` + FallbackMethod *string `json:"FallbackMethod,omitempty"` + FallbackUrl *string `json:"FallbackUrl,omitempty"` + From *string `json:"From,omitempty"` + MachineDetection *string `json:"MachineDetection,omitempty"` + MachineDetectionSilenceTimeout *int32 `json:"MachineDetectionSilenceTimeout,omitempty"` + MachineDetectionSpeechEndThreshold *int32 `json:"MachineDetectionSpeechEndThreshold,omitempty"` + MachineDetectionSpeechThreshold *int32 `json:"MachineDetectionSpeechThreshold,omitempty"` + MachineDetectionTimeout *int32 `json:"MachineDetectionTimeout,omitempty"` + Method *string `json:"Method,omitempty"` + Record *bool `json:"Record,omitempty"` + RecordingChannels *string `json:"RecordingChannels,omitempty"` + RecordingStatusCallback *string `json:"RecordingStatusCallback,omitempty"` + RecordingStatusCallbackEvent *[]string `json:"RecordingStatusCallbackEvent,omitempty"` + RecordingStatusCallbackMethod *string `json:"RecordingStatusCallbackMethod,omitempty"` + RecordingTrack *string `json:"RecordingTrack,omitempty"` + SendDigits *string `json:"SendDigits,omitempty"` + SipAuthPassword *string `json:"SipAuthPassword,omitempty"` + SipAuthUsername *string `json:"SipAuthUsername,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackEvent *[]string `json:"StatusCallbackEvent,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + Timeout *int32 `json:"Timeout,omitempty"` + To *string `json:"To,omitempty"` + Trim *string `json:"Trim,omitempty"` + Twiml *string `json:"Twiml,omitempty"` + Url *string `json:"Url,omitempty"` } /* @@ -459,11 +459,11 @@ func (c *DefaultApiService) CreateCall(AccountSid string, params *CreateCallPara } // CreateCallFeedbackSummaryParams Optional parameters for the method 'CreateCallFeedbackSummary' type CreateCallFeedbackSummaryParams struct { - EndDate *time.Time `json:"EndDate,omitempty"` - IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` } /* @@ -519,12 +519,12 @@ func (c *DefaultApiService) CreateCallFeedbackSummary(AccountSid string, params } // CreateCallRecordingParams Optional parameters for the method 'CreateCallRecording' type CreateCallRecordingParams struct { - RecordingChannels *string `json:"RecordingChannels,omitempty"` - RecordingStatusCallback *string `json:"RecordingStatusCallback,omitempty"` - RecordingStatusCallbackEvent *[]string `json:"RecordingStatusCallbackEvent,omitempty"` - RecordingStatusCallbackMethod *string `json:"RecordingStatusCallbackMethod,omitempty"` - RecordingTrack *string `json:"RecordingTrack,omitempty"` - Trim *string `json:"Trim,omitempty"` + RecordingChannels *string `json:"RecordingChannels,omitempty"` + RecordingStatusCallback *string `json:"RecordingStatusCallback,omitempty"` + RecordingStatusCallbackEvent *[]string `json:"RecordingStatusCallbackEvent,omitempty"` + RecordingStatusCallbackMethod *string `json:"RecordingStatusCallbackMethod,omitempty"` + RecordingTrack *string `json:"RecordingTrack,omitempty"` + Trim *string `json:"Trim,omitempty"` } /* @@ -586,30 +586,30 @@ func (c *DefaultApiService) CreateCallRecording(AccountSid string, CallSid strin } // CreateIncomingPhoneNumberParams Optional parameters for the method 'CreateIncomingPhoneNumber' type CreateIncomingPhoneNumberParams struct { - AddressSid *string `json:"AddressSid,omitempty"` - ApiVersion *string `json:"ApiVersion,omitempty"` - AreaCode *string `json:"AreaCode,omitempty"` - BundleSid *string `json:"BundleSid,omitempty"` - EmergencyAddressSid *string `json:"EmergencyAddressSid,omitempty"` - EmergencyStatus *string `json:"EmergencyStatus,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - IdentitySid *string `json:"IdentitySid,omitempty"` - PhoneNumber *string `json:"PhoneNumber,omitempty"` - SmsApplicationSid *string `json:"SmsApplicationSid,omitempty"` - SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` - SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` - SmsMethod *string `json:"SmsMethod,omitempty"` - SmsUrl *string `json:"SmsUrl,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - TrunkSid *string `json:"TrunkSid,omitempty"` - VoiceApplicationSid *string `json:"VoiceApplicationSid,omitempty"` - VoiceCallerIdLookup *bool `json:"VoiceCallerIdLookup,omitempty"` - VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` - VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` - VoiceMethod *string `json:"VoiceMethod,omitempty"` - VoiceReceiveMode *string `json:"VoiceReceiveMode,omitempty"` - VoiceUrl *string `json:"VoiceUrl,omitempty"` + AddressSid *string `json:"AddressSid,omitempty"` + ApiVersion *string `json:"ApiVersion,omitempty"` + AreaCode *string `json:"AreaCode,omitempty"` + BundleSid *string `json:"BundleSid,omitempty"` + EmergencyAddressSid *string `json:"EmergencyAddressSid,omitempty"` + EmergencyStatus *string `json:"EmergencyStatus,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IdentitySid *string `json:"IdentitySid,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + SmsApplicationSid *string `json:"SmsApplicationSid,omitempty"` + SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` + SmsMethod *string `json:"SmsMethod,omitempty"` + SmsUrl *string `json:"SmsUrl,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + TrunkSid *string `json:"TrunkSid,omitempty"` + VoiceApplicationSid *string `json:"VoiceApplicationSid,omitempty"` + VoiceCallerIdLookup *bool `json:"VoiceCallerIdLookup,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceReceiveMode *string `json:"VoiceReceiveMode,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` } /* @@ -741,7 +741,7 @@ func (c *DefaultApiService) CreateIncomingPhoneNumber(AccountSid string, params } // CreateIncomingPhoneNumberAssignedAddOnParams Optional parameters for the method 'CreateIncomingPhoneNumberAssignedAddOn' type CreateIncomingPhoneNumberAssignedAddOnParams struct { - InstalledAddOnSid *string `json:"InstalledAddOnSid,omitempty"` + InstalledAddOnSid *string `json:"InstalledAddOnSid,omitempty"` } /* @@ -783,29 +783,29 @@ func (c *DefaultApiService) CreateIncomingPhoneNumberAssignedAddOn(AccountSid st } // CreateIncomingPhoneNumberLocalParams Optional parameters for the method 'CreateIncomingPhoneNumberLocal' type CreateIncomingPhoneNumberLocalParams struct { - AddressSid *string `json:"AddressSid,omitempty"` - ApiVersion *string `json:"ApiVersion,omitempty"` - BundleSid *string `json:"BundleSid,omitempty"` - EmergencyAddressSid *string `json:"EmergencyAddressSid,omitempty"` - EmergencyStatus *string `json:"EmergencyStatus,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - IdentitySid *string `json:"IdentitySid,omitempty"` - PhoneNumber *string `json:"PhoneNumber,omitempty"` - SmsApplicationSid *string `json:"SmsApplicationSid,omitempty"` - SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` - SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` - SmsMethod *string `json:"SmsMethod,omitempty"` - SmsUrl *string `json:"SmsUrl,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - TrunkSid *string `json:"TrunkSid,omitempty"` - VoiceApplicationSid *string `json:"VoiceApplicationSid,omitempty"` - VoiceCallerIdLookup *bool `json:"VoiceCallerIdLookup,omitempty"` - VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` - VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` - VoiceMethod *string `json:"VoiceMethod,omitempty"` - VoiceReceiveMode *string `json:"VoiceReceiveMode,omitempty"` - VoiceUrl *string `json:"VoiceUrl,omitempty"` + AddressSid *string `json:"AddressSid,omitempty"` + ApiVersion *string `json:"ApiVersion,omitempty"` + BundleSid *string `json:"BundleSid,omitempty"` + EmergencyAddressSid *string `json:"EmergencyAddressSid,omitempty"` + EmergencyStatus *string `json:"EmergencyStatus,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IdentitySid *string `json:"IdentitySid,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + SmsApplicationSid *string `json:"SmsApplicationSid,omitempty"` + SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` + SmsMethod *string `json:"SmsMethod,omitempty"` + SmsUrl *string `json:"SmsUrl,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + TrunkSid *string `json:"TrunkSid,omitempty"` + VoiceApplicationSid *string `json:"VoiceApplicationSid,omitempty"` + VoiceCallerIdLookup *bool `json:"VoiceCallerIdLookup,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceReceiveMode *string `json:"VoiceReceiveMode,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` } /* @@ -932,29 +932,29 @@ func (c *DefaultApiService) CreateIncomingPhoneNumberLocal(AccountSid string, pa } // CreateIncomingPhoneNumberMobileParams Optional parameters for the method 'CreateIncomingPhoneNumberMobile' type CreateIncomingPhoneNumberMobileParams struct { - AddressSid *string `json:"AddressSid,omitempty"` - ApiVersion *string `json:"ApiVersion,omitempty"` - BundleSid *string `json:"BundleSid,omitempty"` - EmergencyAddressSid *string `json:"EmergencyAddressSid,omitempty"` - EmergencyStatus *string `json:"EmergencyStatus,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - IdentitySid *string `json:"IdentitySid,omitempty"` - PhoneNumber *string `json:"PhoneNumber,omitempty"` - SmsApplicationSid *string `json:"SmsApplicationSid,omitempty"` - SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` - SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` - SmsMethod *string `json:"SmsMethod,omitempty"` - SmsUrl *string `json:"SmsUrl,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - TrunkSid *string `json:"TrunkSid,omitempty"` - VoiceApplicationSid *string `json:"VoiceApplicationSid,omitempty"` - VoiceCallerIdLookup *bool `json:"VoiceCallerIdLookup,omitempty"` - VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` - VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` - VoiceMethod *string `json:"VoiceMethod,omitempty"` - VoiceReceiveMode *string `json:"VoiceReceiveMode,omitempty"` - VoiceUrl *string `json:"VoiceUrl,omitempty"` + AddressSid *string `json:"AddressSid,omitempty"` + ApiVersion *string `json:"ApiVersion,omitempty"` + BundleSid *string `json:"BundleSid,omitempty"` + EmergencyAddressSid *string `json:"EmergencyAddressSid,omitempty"` + EmergencyStatus *string `json:"EmergencyStatus,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IdentitySid *string `json:"IdentitySid,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + SmsApplicationSid *string `json:"SmsApplicationSid,omitempty"` + SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` + SmsMethod *string `json:"SmsMethod,omitempty"` + SmsUrl *string `json:"SmsUrl,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + TrunkSid *string `json:"TrunkSid,omitempty"` + VoiceApplicationSid *string `json:"VoiceApplicationSid,omitempty"` + VoiceCallerIdLookup *bool `json:"VoiceCallerIdLookup,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceReceiveMode *string `json:"VoiceReceiveMode,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` } /* @@ -1081,29 +1081,29 @@ func (c *DefaultApiService) CreateIncomingPhoneNumberMobile(AccountSid string, p } // CreateIncomingPhoneNumberTollFreeParams Optional parameters for the method 'CreateIncomingPhoneNumberTollFree' type CreateIncomingPhoneNumberTollFreeParams struct { - AddressSid *string `json:"AddressSid,omitempty"` - ApiVersion *string `json:"ApiVersion,omitempty"` - BundleSid *string `json:"BundleSid,omitempty"` - EmergencyAddressSid *string `json:"EmergencyAddressSid,omitempty"` - EmergencyStatus *string `json:"EmergencyStatus,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - IdentitySid *string `json:"IdentitySid,omitempty"` - PhoneNumber *string `json:"PhoneNumber,omitempty"` - SmsApplicationSid *string `json:"SmsApplicationSid,omitempty"` - SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` - SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` - SmsMethod *string `json:"SmsMethod,omitempty"` - SmsUrl *string `json:"SmsUrl,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - TrunkSid *string `json:"TrunkSid,omitempty"` - VoiceApplicationSid *string `json:"VoiceApplicationSid,omitempty"` - VoiceCallerIdLookup *bool `json:"VoiceCallerIdLookup,omitempty"` - VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` - VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` - VoiceMethod *string `json:"VoiceMethod,omitempty"` - VoiceReceiveMode *string `json:"VoiceReceiveMode,omitempty"` - VoiceUrl *string `json:"VoiceUrl,omitempty"` + AddressSid *string `json:"AddressSid,omitempty"` + ApiVersion *string `json:"ApiVersion,omitempty"` + BundleSid *string `json:"BundleSid,omitempty"` + EmergencyAddressSid *string `json:"EmergencyAddressSid,omitempty"` + EmergencyStatus *string `json:"EmergencyStatus,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IdentitySid *string `json:"IdentitySid,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + SmsApplicationSid *string `json:"SmsApplicationSid,omitempty"` + SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` + SmsMethod *string `json:"SmsMethod,omitempty"` + SmsUrl *string `json:"SmsUrl,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + TrunkSid *string `json:"TrunkSid,omitempty"` + VoiceApplicationSid *string `json:"VoiceApplicationSid,omitempty"` + VoiceCallerIdLookup *bool `json:"VoiceCallerIdLookup,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceReceiveMode *string `json:"VoiceReceiveMode,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` } /* @@ -1230,22 +1230,22 @@ func (c *DefaultApiService) CreateIncomingPhoneNumberTollFree(AccountSid string, } // CreateMessageParams Optional parameters for the method 'CreateMessage' type CreateMessageParams struct { - AddressRetention *string `json:"AddressRetention,omitempty"` - ApplicationSid *string `json:"ApplicationSid,omitempty"` - Attempt *int32 `json:"Attempt,omitempty"` - Body *string `json:"Body,omitempty"` - ContentRetention *string `json:"ContentRetention,omitempty"` - ForceDelivery *bool `json:"ForceDelivery,omitempty"` - From *string `json:"From,omitempty"` - MaxPrice *float32 `json:"MaxPrice,omitempty"` - MediaUrl *[]string `json:"MediaUrl,omitempty"` - MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` - PersistentAction *[]string `json:"PersistentAction,omitempty"` - ProvideFeedback *bool `json:"ProvideFeedback,omitempty"` - SmartEncoded *bool `json:"SmartEncoded,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - To *string `json:"To,omitempty"` - ValidityPeriod *int32 `json:"ValidityPeriod,omitempty"` + AddressRetention *string `json:"AddressRetention,omitempty"` + ApplicationSid *string `json:"ApplicationSid,omitempty"` + Attempt *int32 `json:"Attempt,omitempty"` + Body *string `json:"Body,omitempty"` + ContentRetention *string `json:"ContentRetention,omitempty"` + ForceDelivery *bool `json:"ForceDelivery,omitempty"` + From *string `json:"From,omitempty"` + MaxPrice *float32 `json:"MaxPrice,omitempty"` + MediaUrl *[]string `json:"MediaUrl,omitempty"` + MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` + PersistentAction *[]string `json:"PersistentAction,omitempty"` + ProvideFeedback *bool `json:"ProvideFeedback,omitempty"` + SmartEncoded *bool `json:"SmartEncoded,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + To *string `json:"To,omitempty"` + ValidityPeriod *int32 `json:"ValidityPeriod,omitempty"` } /* @@ -1345,7 +1345,7 @@ func (c *DefaultApiService) CreateMessage(AccountSid string, params *CreateMessa } // CreateMessageFeedbackParams Optional parameters for the method 'CreateMessageFeedback' type CreateMessageFeedbackParams struct { - Outcome *string `json:"Outcome,omitempty"` + Outcome *string `json:"Outcome,omitempty"` } /* @@ -1386,7 +1386,7 @@ func (c *DefaultApiService) CreateMessageFeedback(AccountSid string, MessageSid } // CreateNewKeyParams Optional parameters for the method 'CreateNewKey' type CreateNewKeyParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -1425,7 +1425,7 @@ func (c *DefaultApiService) CreateNewKey(AccountSid string, params *CreateNewKey } // CreateNewSigningKeyParams Optional parameters for the method 'CreateNewSigningKey' type CreateNewSigningKeyParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -1465,44 +1465,44 @@ func (c *DefaultApiService) CreateNewSigningKey(AccountSid string, params *Creat } // CreateParticipantParams Optional parameters for the method 'CreateParticipant' type CreateParticipantParams struct { - Beep *string `json:"Beep,omitempty"` - Byoc *string `json:"Byoc,omitempty"` - CallReason *string `json:"CallReason,omitempty"` - CallSidToCoach *string `json:"CallSidToCoach,omitempty"` - CallerId *string `json:"CallerId,omitempty"` - Coaching *bool `json:"Coaching,omitempty"` - ConferenceRecord *string `json:"ConferenceRecord,omitempty"` - ConferenceRecordingStatusCallback *string `json:"ConferenceRecordingStatusCallback,omitempty"` - ConferenceRecordingStatusCallbackEvent *[]string `json:"ConferenceRecordingStatusCallbackEvent,omitempty"` - ConferenceRecordingStatusCallbackMethod *string `json:"ConferenceRecordingStatusCallbackMethod,omitempty"` - ConferenceStatusCallback *string `json:"ConferenceStatusCallback,omitempty"` - ConferenceStatusCallbackEvent *[]string `json:"ConferenceStatusCallbackEvent,omitempty"` - ConferenceStatusCallbackMethod *string `json:"ConferenceStatusCallbackMethod,omitempty"` - ConferenceTrim *string `json:"ConferenceTrim,omitempty"` - EarlyMedia *bool `json:"EarlyMedia,omitempty"` - EndConferenceOnExit *bool `json:"EndConferenceOnExit,omitempty"` - From *string `json:"From,omitempty"` - JitterBufferSize *string `json:"JitterBufferSize,omitempty"` - Label *string `json:"Label,omitempty"` - MaxParticipants *int32 `json:"MaxParticipants,omitempty"` - Muted *bool `json:"Muted,omitempty"` - Record *bool `json:"Record,omitempty"` - RecordingChannels *string `json:"RecordingChannels,omitempty"` - RecordingStatusCallback *string `json:"RecordingStatusCallback,omitempty"` - RecordingStatusCallbackEvent *[]string `json:"RecordingStatusCallbackEvent,omitempty"` - RecordingStatusCallbackMethod *string `json:"RecordingStatusCallbackMethod,omitempty"` - RecordingTrack *string `json:"RecordingTrack,omitempty"` - Region *string `json:"Region,omitempty"` - SipAuthPassword *string `json:"SipAuthPassword,omitempty"` - SipAuthUsername *string `json:"SipAuthUsername,omitempty"` - StartConferenceOnEnter *bool `json:"StartConferenceOnEnter,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StatusCallbackEvent *[]string `json:"StatusCallbackEvent,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - Timeout *int32 `json:"Timeout,omitempty"` - To *string `json:"To,omitempty"` - WaitMethod *string `json:"WaitMethod,omitempty"` - WaitUrl *string `json:"WaitUrl,omitempty"` + Beep *string `json:"Beep,omitempty"` + Byoc *string `json:"Byoc,omitempty"` + CallReason *string `json:"CallReason,omitempty"` + CallSidToCoach *string `json:"CallSidToCoach,omitempty"` + CallerId *string `json:"CallerId,omitempty"` + Coaching *bool `json:"Coaching,omitempty"` + ConferenceRecord *string `json:"ConferenceRecord,omitempty"` + ConferenceRecordingStatusCallback *string `json:"ConferenceRecordingStatusCallback,omitempty"` + ConferenceRecordingStatusCallbackEvent *[]string `json:"ConferenceRecordingStatusCallbackEvent,omitempty"` + ConferenceRecordingStatusCallbackMethod *string `json:"ConferenceRecordingStatusCallbackMethod,omitempty"` + ConferenceStatusCallback *string `json:"ConferenceStatusCallback,omitempty"` + ConferenceStatusCallbackEvent *[]string `json:"ConferenceStatusCallbackEvent,omitempty"` + ConferenceStatusCallbackMethod *string `json:"ConferenceStatusCallbackMethod,omitempty"` + ConferenceTrim *string `json:"ConferenceTrim,omitempty"` + EarlyMedia *bool `json:"EarlyMedia,omitempty"` + EndConferenceOnExit *bool `json:"EndConferenceOnExit,omitempty"` + From *string `json:"From,omitempty"` + JitterBufferSize *string `json:"JitterBufferSize,omitempty"` + Label *string `json:"Label,omitempty"` + MaxParticipants *int32 `json:"MaxParticipants,omitempty"` + Muted *bool `json:"Muted,omitempty"` + Record *bool `json:"Record,omitempty"` + RecordingChannels *string `json:"RecordingChannels,omitempty"` + RecordingStatusCallback *string `json:"RecordingStatusCallback,omitempty"` + RecordingStatusCallbackEvent *[]string `json:"RecordingStatusCallbackEvent,omitempty"` + RecordingStatusCallbackMethod *string `json:"RecordingStatusCallbackMethod,omitempty"` + RecordingTrack *string `json:"RecordingTrack,omitempty"` + Region *string `json:"Region,omitempty"` + SipAuthPassword *string `json:"SipAuthPassword,omitempty"` + SipAuthUsername *string `json:"SipAuthUsername,omitempty"` + StartConferenceOnEnter *bool `json:"StartConferenceOnEnter,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackEvent *[]string `json:"StatusCallbackEvent,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + Timeout *int32 `json:"Timeout,omitempty"` + To *string `json:"To,omitempty"` + WaitMethod *string `json:"WaitMethod,omitempty"` + WaitUrl *string `json:"WaitUrl,omitempty"` } /* @@ -1691,22 +1691,22 @@ func (c *DefaultApiService) CreateParticipant(AccountSid string, ConferenceSid s } // CreatePaymentsParams Optional parameters for the method 'CreatePayments' type CreatePaymentsParams struct { - BankAccountType *string `json:"BankAccountType,omitempty"` - ChargeAmount *float32 `json:"ChargeAmount,omitempty"` - Currency *string `json:"Currency,omitempty"` - Description *string `json:"Description,omitempty"` - IdempotencyKey *string `json:"IdempotencyKey,omitempty"` - Input *string `json:"Input,omitempty"` - MinPostalCodeLength *int32 `json:"MinPostalCodeLength,omitempty"` - Parameter *map[string]interface{} `json:"Parameter,omitempty"` - PaymentConnector *string `json:"PaymentConnector,omitempty"` - PaymentMethod *string `json:"PaymentMethod,omitempty"` - PostalCode *bool `json:"PostalCode,omitempty"` - SecurityCode *bool `json:"SecurityCode,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - Timeout *int32 `json:"Timeout,omitempty"` - TokenType *string `json:"TokenType,omitempty"` - ValidCardTypes *string `json:"ValidCardTypes,omitempty"` + BankAccountType *string `json:"BankAccountType,omitempty"` + ChargeAmount *float32 `json:"ChargeAmount,omitempty"` + Currency *string `json:"Currency,omitempty"` + Description *string `json:"Description,omitempty"` + IdempotencyKey *string `json:"IdempotencyKey,omitempty"` + Input *string `json:"Input,omitempty"` + MinPostalCodeLength *int32 `json:"MinPostalCodeLength,omitempty"` + Parameter *map[string]interface{} `json:"Parameter,omitempty"` + PaymentConnector *string `json:"PaymentConnector,omitempty"` + PaymentMethod *string `json:"PaymentMethod,omitempty"` + PostalCode *bool `json:"PostalCode,omitempty"` + SecurityCode *bool `json:"SecurityCode,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + Timeout *int32 `json:"Timeout,omitempty"` + TokenType *string `json:"TokenType,omitempty"` + ValidCardTypes *string `json:"ValidCardTypes,omitempty"` } /* @@ -1814,8 +1814,8 @@ func (c *DefaultApiService) CreatePayments(AccountSid string, CallSid string, pa } // CreateQueueParams Optional parameters for the method 'CreateQueue' type CreateQueueParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - MaxSize *int32 `json:"MaxSize,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + MaxSize *int32 `json:"MaxSize,omitempty"` } /* @@ -1859,7 +1859,7 @@ func (c *DefaultApiService) CreateQueue(AccountSid string, params *CreateQueuePa } // CreateSipAuthCallsCredentialListMappingParams Optional parameters for the method 'CreateSipAuthCallsCredentialListMapping' type CreateSipAuthCallsCredentialListMappingParams struct { - CredentialListSid *string `json:"CredentialListSid,omitempty"` + CredentialListSid *string `json:"CredentialListSid,omitempty"` } /* @@ -1901,7 +1901,7 @@ func (c *DefaultApiService) CreateSipAuthCallsCredentialListMapping(AccountSid s } // CreateSipAuthCallsIpAccessControlListMappingParams Optional parameters for the method 'CreateSipAuthCallsIpAccessControlListMapping' type CreateSipAuthCallsIpAccessControlListMappingParams struct { - IpAccessControlListSid *string `json:"IpAccessControlListSid,omitempty"` + IpAccessControlListSid *string `json:"IpAccessControlListSid,omitempty"` } /* @@ -1943,7 +1943,7 @@ func (c *DefaultApiService) CreateSipAuthCallsIpAccessControlListMapping(Account } // CreateSipAuthRegistrationsCredentialListMappingParams Optional parameters for the method 'CreateSipAuthRegistrationsCredentialListMapping' type CreateSipAuthRegistrationsCredentialListMappingParams struct { - CredentialListSid *string `json:"CredentialListSid,omitempty"` + CredentialListSid *string `json:"CredentialListSid,omitempty"` } /* @@ -1985,8 +1985,8 @@ func (c *DefaultApiService) CreateSipAuthRegistrationsCredentialListMapping(Acco } // CreateSipCredentialParams Optional parameters for the method 'CreateSipCredential' type CreateSipCredentialParams struct { - Password *string `json:"Password,omitempty"` - Username *string `json:"Username,omitempty"` + Password *string `json:"Password,omitempty"` + Username *string `json:"Username,omitempty"` } /* @@ -2032,7 +2032,7 @@ func (c *DefaultApiService) CreateSipCredential(AccountSid string, CredentialLis } // CreateSipCredentialListParams Optional parameters for the method 'CreateSipCredentialList' type CreateSipCredentialListParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -2072,7 +2072,7 @@ func (c *DefaultApiService) CreateSipCredentialList(AccountSid string, params *C } // CreateSipCredentialListMappingParams Optional parameters for the method 'CreateSipCredentialListMapping' type CreateSipCredentialListMappingParams struct { - CredentialListSid *string `json:"CredentialListSid,omitempty"` + CredentialListSid *string `json:"CredentialListSid,omitempty"` } /* @@ -2114,19 +2114,19 @@ func (c *DefaultApiService) CreateSipCredentialListMapping(AccountSid string, Do } // CreateSipDomainParams Optional parameters for the method 'CreateSipDomain' type CreateSipDomainParams struct { - ByocTrunkSid *string `json:"ByocTrunkSid,omitempty"` - DomainName *string `json:"DomainName,omitempty"` - EmergencyCallerSid *string `json:"EmergencyCallerSid,omitempty"` - EmergencyCallingEnabled *bool `json:"EmergencyCallingEnabled,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Secure *bool `json:"Secure,omitempty"` - SipRegistration *bool `json:"SipRegistration,omitempty"` - VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` - VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` - VoiceMethod *string `json:"VoiceMethod,omitempty"` - VoiceStatusCallbackMethod *string `json:"VoiceStatusCallbackMethod,omitempty"` - VoiceStatusCallbackUrl *string `json:"VoiceStatusCallbackUrl,omitempty"` - VoiceUrl *string `json:"VoiceUrl,omitempty"` + ByocTrunkSid *string `json:"ByocTrunkSid,omitempty"` + DomainName *string `json:"DomainName,omitempty"` + EmergencyCallerSid *string `json:"EmergencyCallerSid,omitempty"` + EmergencyCallingEnabled *bool `json:"EmergencyCallingEnabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Secure *bool `json:"Secure,omitempty"` + SipRegistration *bool `json:"SipRegistration,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceStatusCallbackMethod *string `json:"VoiceStatusCallbackMethod,omitempty"` + VoiceStatusCallbackUrl *string `json:"VoiceStatusCallbackUrl,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` } /* @@ -2135,7 +2135,7 @@ Create a new Domain * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. * @param optional nil or *CreateSipDomainOpts - Optional Parameters: * @param "ByocTrunkSid" (string) - The SID of the BYOC Trunk(Bring Your Own Carrier) resource that the Sip Domain will be associated with. - * @param "DomainName" (string) - The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and \\\"-\\\". + * @param "DomainName" (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`. * @param "EmergencyCallerSid" (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. * @param "EmergencyCallingEnabled" (bool) - Whether emergency calling is enabled for the domain. If enabled, allows emergency calls on the domain from phone numbers with validated addresses. * @param "FriendlyName" (string) - A descriptive string that you created to describe the resource. It can be up to 64 characters long. @@ -2214,7 +2214,7 @@ func (c *DefaultApiService) CreateSipDomain(AccountSid string, params *CreateSip } // CreateSipIpAccessControlListParams Optional parameters for the method 'CreateSipIpAccessControlList' type CreateSipIpAccessControlListParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -2254,7 +2254,7 @@ func (c *DefaultApiService) CreateSipIpAccessControlList(AccountSid string, para } // CreateSipIpAccessControlListMappingParams Optional parameters for the method 'CreateSipIpAccessControlListMapping' type CreateSipIpAccessControlListMappingParams struct { - IpAccessControlListSid *string `json:"IpAccessControlListSid,omitempty"` + IpAccessControlListSid *string `json:"IpAccessControlListSid,omitempty"` } /* @@ -2296,9 +2296,9 @@ func (c *DefaultApiService) CreateSipIpAccessControlListMapping(AccountSid strin } // CreateSipIpAddressParams Optional parameters for the method 'CreateSipIpAddress' type CreateSipIpAddressParams struct { - CidrPrefixLength *int32 `json:"CidrPrefixLength,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - IpAddress *string `json:"IpAddress,omitempty"` + CidrPrefixLength *int32 `json:"CidrPrefixLength,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IpAddress *string `json:"IpAddress,omitempty"` } /* @@ -2348,7 +2348,7 @@ func (c *DefaultApiService) CreateSipIpAddress(AccountSid string, IpAccessContro } // CreateTokenParams Optional parameters for the method 'CreateToken' type CreateTokenParams struct { - Ttl *int32 `json:"Ttl,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` } /* @@ -2388,13 +2388,13 @@ func (c *DefaultApiService) CreateToken(AccountSid string, params *CreateTokenPa } // CreateUsageTriggerParams Optional parameters for the method 'CreateUsageTrigger' type CreateUsageTriggerParams struct { - CallbackMethod *string `json:"CallbackMethod,omitempty"` - CallbackUrl *string `json:"CallbackUrl,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Recurring *string `json:"Recurring,omitempty"` - TriggerBy *string `json:"TriggerBy,omitempty"` - TriggerValue *string `json:"TriggerValue,omitempty"` - UsageCategory *string `json:"UsageCategory,omitempty"` + CallbackMethod *string `json:"CallbackMethod,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Recurring *string `json:"Recurring,omitempty"` + TriggerBy *string `json:"TriggerBy,omitempty"` + TriggerValue *string `json:"TriggerValue,omitempty"` + UsageCategory *string `json:"UsageCategory,omitempty"` } /* @@ -2458,12 +2458,12 @@ func (c *DefaultApiService) CreateUsageTrigger(AccountSid string, params *Create } // CreateValidationRequestParams Optional parameters for the method 'CreateValidationRequest' type CreateValidationRequestParams struct { - CallDelay *int32 `json:"CallDelay,omitempty"` - Extension *string `json:"Extension,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PhoneNumber *string `json:"PhoneNumber,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + CallDelay *int32 `json:"CallDelay,omitempty"` + Extension *string `json:"Extension,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` } /* @@ -4862,9 +4862,9 @@ func (c *DefaultApiService) FetchUsageTrigger(AccountSid string, Sid string) (*A } // ListAccountParams Optional parameters for the method 'ListAccount' type ListAccountParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - Status *string `json:"Status,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Status *string `json:"Status,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4874,9 +4874,9 @@ Retrieves a collection of Accounts belonging to the account used to make the req * @param "FriendlyName" (string) - Only return the Account resources with friendly names that exactly match this name. * @param "Status" (string) - Only return Account resources with the given status. Can be `closed`, `suspended` or `active`. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountReadResponse +@return ListAccountResponse */ -func (c *DefaultApiService) ListAccount(params *ListAccountParams) (*ApiV2010AccountReadResponse, error) { +func (c *DefaultApiService) ListAccount(params *ListAccountParams) (*ListAccountResponse, error) { path := "/2010-04-01/Accounts.json" @@ -4901,7 +4901,7 @@ func (c *DefaultApiService) ListAccount(params *ListAccountParams) (*ApiV2010Acc defer resp.Body.Close() - ps := &ApiV2010AccountReadResponse{} + ps := &ListAccountResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -4910,10 +4910,10 @@ func (c *DefaultApiService) ListAccount(params *ListAccountParams) (*ApiV2010Acc } // ListAddressParams Optional parameters for the method 'ListAddress' type ListAddressParams struct { - CustomerName *string `json:"CustomerName,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - IsoCountry *string `json:"IsoCountry,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + CustomerName *string `json:"CustomerName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IsoCountry *string `json:"IsoCountry,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4924,9 +4924,9 @@ ListAddress Method for ListAddress * @param "FriendlyName" (string) - The string that identifies the Address resources to read. * @param "IsoCountry" (string) - The ISO country code of the Address resources to read. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountAddressReadResponse +@return ListAddressResponse */ -func (c *DefaultApiService) ListAddress(AccountSid string, params *ListAddressParams) (*ApiV2010AccountAddressReadResponse, error) { +func (c *DefaultApiService) ListAddress(AccountSid string, params *ListAddressParams) (*ListAddressResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Addresses.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) @@ -4955,7 +4955,7 @@ func (c *DefaultApiService) ListAddress(AccountSid string, params *ListAddressPa defer resp.Body.Close() - ps := &ApiV2010AccountAddressReadResponse{} + ps := &ListAddressResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -4964,8 +4964,8 @@ func (c *DefaultApiService) ListAddress(AccountSid string, params *ListAddressPa } // ListApplicationParams Optional parameters for the method 'ListApplication' type ListApplicationParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4975,9 +4975,9 @@ Retrieve a list of applications representing an application within the requestin * @param optional nil or *ListApplicationOpts - Optional Parameters: * @param "FriendlyName" (string) - The string that identifies the Application resources to read. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountApplicationReadResponse +@return ListApplicationResponse */ -func (c *DefaultApiService) ListApplication(AccountSid string, params *ListApplicationParams) (*ApiV2010AccountApplicationReadResponse, error) { +func (c *DefaultApiService) ListApplication(AccountSid string, params *ListApplicationParams) (*ListApplicationResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Applications.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) @@ -5000,7 +5000,7 @@ func (c *DefaultApiService) ListApplication(AccountSid string, params *ListAppli defer resp.Body.Close() - ps := &ApiV2010AccountApplicationReadResponse{} + ps := &ListApplicationResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -5009,7 +5009,7 @@ func (c *DefaultApiService) ListApplication(AccountSid string, params *ListAppli } // ListAuthorizedConnectAppParams Optional parameters for the method 'ListAuthorizedConnectApp' type ListAuthorizedConnectAppParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -5018,9 +5018,9 @@ Retrieve a list of authorized-connect-apps belonging to the account used to make * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the AuthorizedConnectApp resources to read. * @param optional nil or *ListAuthorizedConnectAppOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountAuthorizedConnectAppReadResponse +@return ListAuthorizedConnectAppResponse */ -func (c *DefaultApiService) ListAuthorizedConnectApp(AccountSid string, params *ListAuthorizedConnectAppParams) (*ApiV2010AccountAuthorizedConnectAppReadResponse, error) { +func (c *DefaultApiService) ListAuthorizedConnectApp(AccountSid string, params *ListAuthorizedConnectAppParams) (*ListAuthorizedConnectAppResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/AuthorizedConnectApps.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) @@ -5040,7 +5040,7 @@ func (c *DefaultApiService) ListAuthorizedConnectApp(AccountSid string, params * defer resp.Body.Close() - ps := &ApiV2010AccountAuthorizedConnectAppReadResponse{} + ps := &ListAuthorizedConnectAppResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -5049,7 +5049,7 @@ func (c *DefaultApiService) ListAuthorizedConnectApp(AccountSid string, params * } // ListAvailablePhoneNumberCountryParams Optional parameters for the method 'ListAvailablePhoneNumberCountry' type ListAvailablePhoneNumberCountryParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -5057,9 +5057,9 @@ ListAvailablePhoneNumberCountry Method for ListAvailablePhoneNumberCountry * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the available phone number Country resources. * @param optional nil or *ListAvailablePhoneNumberCountryOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountAvailablePhoneNumberCountryReadResponse +@return ListAvailablePhoneNumberCountryResponse */ -func (c *DefaultApiService) ListAvailablePhoneNumberCountry(AccountSid string, params *ListAvailablePhoneNumberCountryParams) (*ApiV2010AccountAvailablePhoneNumberCountryReadResponse, error) { +func (c *DefaultApiService) ListAvailablePhoneNumberCountry(AccountSid string, params *ListAvailablePhoneNumberCountryParams) (*ListAvailablePhoneNumberCountryResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) @@ -5079,7 +5079,7 @@ func (c *DefaultApiService) ListAvailablePhoneNumberCountry(AccountSid string, p defer resp.Body.Close() - ps := &ApiV2010AccountAvailablePhoneNumberCountryReadResponse{} + ps := &ListAvailablePhoneNumberCountryResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -5088,25 +5088,25 @@ func (c *DefaultApiService) ListAvailablePhoneNumberCountry(AccountSid string, p } // ListAvailablePhoneNumberLocalParams Optional parameters for the method 'ListAvailablePhoneNumberLocal' type ListAvailablePhoneNumberLocalParams struct { - AreaCode *int32 `json:"AreaCode,omitempty"` - Contains *string `json:"Contains,omitempty"` - SmsEnabled *bool `json:"SmsEnabled,omitempty"` - MmsEnabled *bool `json:"MmsEnabled,omitempty"` - VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` - ExcludeAllAddressRequired *bool `json:"ExcludeAllAddressRequired,omitempty"` - ExcludeLocalAddressRequired *bool `json:"ExcludeLocalAddressRequired,omitempty"` - ExcludeForeignAddressRequired *bool `json:"ExcludeForeignAddressRequired,omitempty"` - Beta *bool `json:"Beta,omitempty"` - NearNumber *string `json:"NearNumber,omitempty"` - NearLatLong *string `json:"NearLatLong,omitempty"` - Distance *int32 `json:"Distance,omitempty"` - InPostalCode *string `json:"InPostalCode,omitempty"` - InRegion *string `json:"InRegion,omitempty"` - InRateCenter *string `json:"InRateCenter,omitempty"` - InLata *string `json:"InLata,omitempty"` - InLocality *string `json:"InLocality,omitempty"` - FaxEnabled *bool `json:"FaxEnabled,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + AreaCode *int32 `json:"AreaCode,omitempty"` + Contains *string `json:"Contains,omitempty"` + SmsEnabled *bool `json:"SmsEnabled,omitempty"` + MmsEnabled *bool `json:"MmsEnabled,omitempty"` + VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` + ExcludeAllAddressRequired *bool `json:"ExcludeAllAddressRequired,omitempty"` + ExcludeLocalAddressRequired *bool `json:"ExcludeLocalAddressRequired,omitempty"` + ExcludeForeignAddressRequired *bool `json:"ExcludeForeignAddressRequired,omitempty"` + Beta *bool `json:"Beta,omitempty"` + NearNumber *string `json:"NearNumber,omitempty"` + NearLatLong *string `json:"NearLatLong,omitempty"` + Distance *int32 `json:"Distance,omitempty"` + InPostalCode *string `json:"InPostalCode,omitempty"` + InRegion *string `json:"InRegion,omitempty"` + InRateCenter *string `json:"InRateCenter,omitempty"` + InLata *string `json:"InLata,omitempty"` + InLocality *string `json:"InLocality,omitempty"` + FaxEnabled *bool `json:"FaxEnabled,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -5133,9 +5133,9 @@ ListAvailablePhoneNumberLocal Method for ListAvailablePhoneNumberLocal * @param "InLocality" (string) - Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. * @param "FaxEnabled" (bool) - Whether the phone numbers can receive faxes. Can be: `true` or `false`. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse +@return ListAvailablePhoneNumberLocalResponse */ -func (c *DefaultApiService) ListAvailablePhoneNumberLocal(AccountSid string, CountryCode string, params *ListAvailablePhoneNumberLocalParams) (*ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse, error) { +func (c *DefaultApiService) ListAvailablePhoneNumberLocal(AccountSid string, CountryCode string, params *ListAvailablePhoneNumberLocalParams) (*ListAvailablePhoneNumberLocalResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Local.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) path = strings.Replace(path, "{"+"CountryCode"+"}", CountryCode, -1) @@ -5210,7 +5210,7 @@ func (c *DefaultApiService) ListAvailablePhoneNumberLocal(AccountSid string, Cou defer resp.Body.Close() - ps := &ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse{} + ps := &ListAvailablePhoneNumberLocalResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -5219,25 +5219,25 @@ func (c *DefaultApiService) ListAvailablePhoneNumberLocal(AccountSid string, Cou } // ListAvailablePhoneNumberMachineToMachineParams Optional parameters for the method 'ListAvailablePhoneNumberMachineToMachine' type ListAvailablePhoneNumberMachineToMachineParams struct { - AreaCode *int32 `json:"AreaCode,omitempty"` - Contains *string `json:"Contains,omitempty"` - SmsEnabled *bool `json:"SmsEnabled,omitempty"` - MmsEnabled *bool `json:"MmsEnabled,omitempty"` - VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` - ExcludeAllAddressRequired *bool `json:"ExcludeAllAddressRequired,omitempty"` - ExcludeLocalAddressRequired *bool `json:"ExcludeLocalAddressRequired,omitempty"` - ExcludeForeignAddressRequired *bool `json:"ExcludeForeignAddressRequired,omitempty"` - Beta *bool `json:"Beta,omitempty"` - NearNumber *string `json:"NearNumber,omitempty"` - NearLatLong *string `json:"NearLatLong,omitempty"` - Distance *int32 `json:"Distance,omitempty"` - InPostalCode *string `json:"InPostalCode,omitempty"` - InRegion *string `json:"InRegion,omitempty"` - InRateCenter *string `json:"InRateCenter,omitempty"` - InLata *string `json:"InLata,omitempty"` - InLocality *string `json:"InLocality,omitempty"` - FaxEnabled *bool `json:"FaxEnabled,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + AreaCode *int32 `json:"AreaCode,omitempty"` + Contains *string `json:"Contains,omitempty"` + SmsEnabled *bool `json:"SmsEnabled,omitempty"` + MmsEnabled *bool `json:"MmsEnabled,omitempty"` + VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` + ExcludeAllAddressRequired *bool `json:"ExcludeAllAddressRequired,omitempty"` + ExcludeLocalAddressRequired *bool `json:"ExcludeLocalAddressRequired,omitempty"` + ExcludeForeignAddressRequired *bool `json:"ExcludeForeignAddressRequired,omitempty"` + Beta *bool `json:"Beta,omitempty"` + NearNumber *string `json:"NearNumber,omitempty"` + NearLatLong *string `json:"NearLatLong,omitempty"` + Distance *int32 `json:"Distance,omitempty"` + InPostalCode *string `json:"InPostalCode,omitempty"` + InRegion *string `json:"InRegion,omitempty"` + InRateCenter *string `json:"InRateCenter,omitempty"` + InLata *string `json:"InLata,omitempty"` + InLocality *string `json:"InLocality,omitempty"` + FaxEnabled *bool `json:"FaxEnabled,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -5264,9 +5264,9 @@ ListAvailablePhoneNumberMachineToMachine Method for ListAvailablePhoneNumberMach * @param "InLocality" (string) - Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. * @param "FaxEnabled" (bool) - Whether the phone numbers can receive faxes. Can be: `true` or `false`. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse +@return ListAvailablePhoneNumberMachineToMachineResponse */ -func (c *DefaultApiService) ListAvailablePhoneNumberMachineToMachine(AccountSid string, CountryCode string, params *ListAvailablePhoneNumberMachineToMachineParams) (*ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse, error) { +func (c *DefaultApiService) ListAvailablePhoneNumberMachineToMachine(AccountSid string, CountryCode string, params *ListAvailablePhoneNumberMachineToMachineParams) (*ListAvailablePhoneNumberMachineToMachineResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/MachineToMachine.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) path = strings.Replace(path, "{"+"CountryCode"+"}", CountryCode, -1) @@ -5341,7 +5341,7 @@ func (c *DefaultApiService) ListAvailablePhoneNumberMachineToMachine(AccountSid defer resp.Body.Close() - ps := &ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse{} + ps := &ListAvailablePhoneNumberMachineToMachineResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -5350,25 +5350,25 @@ func (c *DefaultApiService) ListAvailablePhoneNumberMachineToMachine(AccountSid } // ListAvailablePhoneNumberMobileParams Optional parameters for the method 'ListAvailablePhoneNumberMobile' type ListAvailablePhoneNumberMobileParams struct { - AreaCode *int32 `json:"AreaCode,omitempty"` - Contains *string `json:"Contains,omitempty"` - SmsEnabled *bool `json:"SmsEnabled,omitempty"` - MmsEnabled *bool `json:"MmsEnabled,omitempty"` - VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` - ExcludeAllAddressRequired *bool `json:"ExcludeAllAddressRequired,omitempty"` - ExcludeLocalAddressRequired *bool `json:"ExcludeLocalAddressRequired,omitempty"` - ExcludeForeignAddressRequired *bool `json:"ExcludeForeignAddressRequired,omitempty"` - Beta *bool `json:"Beta,omitempty"` - NearNumber *string `json:"NearNumber,omitempty"` - NearLatLong *string `json:"NearLatLong,omitempty"` - Distance *int32 `json:"Distance,omitempty"` - InPostalCode *string `json:"InPostalCode,omitempty"` - InRegion *string `json:"InRegion,omitempty"` - InRateCenter *string `json:"InRateCenter,omitempty"` - InLata *string `json:"InLata,omitempty"` - InLocality *string `json:"InLocality,omitempty"` - FaxEnabled *bool `json:"FaxEnabled,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + AreaCode *int32 `json:"AreaCode,omitempty"` + Contains *string `json:"Contains,omitempty"` + SmsEnabled *bool `json:"SmsEnabled,omitempty"` + MmsEnabled *bool `json:"MmsEnabled,omitempty"` + VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` + ExcludeAllAddressRequired *bool `json:"ExcludeAllAddressRequired,omitempty"` + ExcludeLocalAddressRequired *bool `json:"ExcludeLocalAddressRequired,omitempty"` + ExcludeForeignAddressRequired *bool `json:"ExcludeForeignAddressRequired,omitempty"` + Beta *bool `json:"Beta,omitempty"` + NearNumber *string `json:"NearNumber,omitempty"` + NearLatLong *string `json:"NearLatLong,omitempty"` + Distance *int32 `json:"Distance,omitempty"` + InPostalCode *string `json:"InPostalCode,omitempty"` + InRegion *string `json:"InRegion,omitempty"` + InRateCenter *string `json:"InRateCenter,omitempty"` + InLata *string `json:"InLata,omitempty"` + InLocality *string `json:"InLocality,omitempty"` + FaxEnabled *bool `json:"FaxEnabled,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -5395,9 +5395,9 @@ ListAvailablePhoneNumberMobile Method for ListAvailablePhoneNumberMobile * @param "InLocality" (string) - Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. * @param "FaxEnabled" (bool) - Whether the phone numbers can receive faxes. Can be: `true` or `false`. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse +@return ListAvailablePhoneNumberMobileResponse */ -func (c *DefaultApiService) ListAvailablePhoneNumberMobile(AccountSid string, CountryCode string, params *ListAvailablePhoneNumberMobileParams) (*ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse, error) { +func (c *DefaultApiService) ListAvailablePhoneNumberMobile(AccountSid string, CountryCode string, params *ListAvailablePhoneNumberMobileParams) (*ListAvailablePhoneNumberMobileResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Mobile.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) path = strings.Replace(path, "{"+"CountryCode"+"}", CountryCode, -1) @@ -5472,7 +5472,7 @@ func (c *DefaultApiService) ListAvailablePhoneNumberMobile(AccountSid string, Co defer resp.Body.Close() - ps := &ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse{} + ps := &ListAvailablePhoneNumberMobileResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -5481,25 +5481,25 @@ func (c *DefaultApiService) ListAvailablePhoneNumberMobile(AccountSid string, Co } // ListAvailablePhoneNumberNationalParams Optional parameters for the method 'ListAvailablePhoneNumberNational' type ListAvailablePhoneNumberNationalParams struct { - AreaCode *int32 `json:"AreaCode,omitempty"` - Contains *string `json:"Contains,omitempty"` - SmsEnabled *bool `json:"SmsEnabled,omitempty"` - MmsEnabled *bool `json:"MmsEnabled,omitempty"` - VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` - ExcludeAllAddressRequired *bool `json:"ExcludeAllAddressRequired,omitempty"` - ExcludeLocalAddressRequired *bool `json:"ExcludeLocalAddressRequired,omitempty"` - ExcludeForeignAddressRequired *bool `json:"ExcludeForeignAddressRequired,omitempty"` - Beta *bool `json:"Beta,omitempty"` - NearNumber *string `json:"NearNumber,omitempty"` - NearLatLong *string `json:"NearLatLong,omitempty"` - Distance *int32 `json:"Distance,omitempty"` - InPostalCode *string `json:"InPostalCode,omitempty"` - InRegion *string `json:"InRegion,omitempty"` - InRateCenter *string `json:"InRateCenter,omitempty"` - InLata *string `json:"InLata,omitempty"` - InLocality *string `json:"InLocality,omitempty"` - FaxEnabled *bool `json:"FaxEnabled,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + AreaCode *int32 `json:"AreaCode,omitempty"` + Contains *string `json:"Contains,omitempty"` + SmsEnabled *bool `json:"SmsEnabled,omitempty"` + MmsEnabled *bool `json:"MmsEnabled,omitempty"` + VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` + ExcludeAllAddressRequired *bool `json:"ExcludeAllAddressRequired,omitempty"` + ExcludeLocalAddressRequired *bool `json:"ExcludeLocalAddressRequired,omitempty"` + ExcludeForeignAddressRequired *bool `json:"ExcludeForeignAddressRequired,omitempty"` + Beta *bool `json:"Beta,omitempty"` + NearNumber *string `json:"NearNumber,omitempty"` + NearLatLong *string `json:"NearLatLong,omitempty"` + Distance *int32 `json:"Distance,omitempty"` + InPostalCode *string `json:"InPostalCode,omitempty"` + InRegion *string `json:"InRegion,omitempty"` + InRateCenter *string `json:"InRateCenter,omitempty"` + InLata *string `json:"InLata,omitempty"` + InLocality *string `json:"InLocality,omitempty"` + FaxEnabled *bool `json:"FaxEnabled,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -5526,9 +5526,9 @@ ListAvailablePhoneNumberNational Method for ListAvailablePhoneNumberNational * @param "InLocality" (string) - Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. * @param "FaxEnabled" (bool) - Whether the phone numbers can receive faxes. Can be: `true` or `false`. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse +@return ListAvailablePhoneNumberNationalResponse */ -func (c *DefaultApiService) ListAvailablePhoneNumberNational(AccountSid string, CountryCode string, params *ListAvailablePhoneNumberNationalParams) (*ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse, error) { +func (c *DefaultApiService) ListAvailablePhoneNumberNational(AccountSid string, CountryCode string, params *ListAvailablePhoneNumberNationalParams) (*ListAvailablePhoneNumberNationalResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/National.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) path = strings.Replace(path, "{"+"CountryCode"+"}", CountryCode, -1) @@ -5603,7 +5603,7 @@ func (c *DefaultApiService) ListAvailablePhoneNumberNational(AccountSid string, defer resp.Body.Close() - ps := &ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse{} + ps := &ListAvailablePhoneNumberNationalResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -5612,25 +5612,25 @@ func (c *DefaultApiService) ListAvailablePhoneNumberNational(AccountSid string, } // ListAvailablePhoneNumberSharedCostParams Optional parameters for the method 'ListAvailablePhoneNumberSharedCost' type ListAvailablePhoneNumberSharedCostParams struct { - AreaCode *int32 `json:"AreaCode,omitempty"` - Contains *string `json:"Contains,omitempty"` - SmsEnabled *bool `json:"SmsEnabled,omitempty"` - MmsEnabled *bool `json:"MmsEnabled,omitempty"` - VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` - ExcludeAllAddressRequired *bool `json:"ExcludeAllAddressRequired,omitempty"` - ExcludeLocalAddressRequired *bool `json:"ExcludeLocalAddressRequired,omitempty"` - ExcludeForeignAddressRequired *bool `json:"ExcludeForeignAddressRequired,omitempty"` - Beta *bool `json:"Beta,omitempty"` - NearNumber *string `json:"NearNumber,omitempty"` - NearLatLong *string `json:"NearLatLong,omitempty"` - Distance *int32 `json:"Distance,omitempty"` - InPostalCode *string `json:"InPostalCode,omitempty"` - InRegion *string `json:"InRegion,omitempty"` - InRateCenter *string `json:"InRateCenter,omitempty"` - InLata *string `json:"InLata,omitempty"` - InLocality *string `json:"InLocality,omitempty"` - FaxEnabled *bool `json:"FaxEnabled,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + AreaCode *int32 `json:"AreaCode,omitempty"` + Contains *string `json:"Contains,omitempty"` + SmsEnabled *bool `json:"SmsEnabled,omitempty"` + MmsEnabled *bool `json:"MmsEnabled,omitempty"` + VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` + ExcludeAllAddressRequired *bool `json:"ExcludeAllAddressRequired,omitempty"` + ExcludeLocalAddressRequired *bool `json:"ExcludeLocalAddressRequired,omitempty"` + ExcludeForeignAddressRequired *bool `json:"ExcludeForeignAddressRequired,omitempty"` + Beta *bool `json:"Beta,omitempty"` + NearNumber *string `json:"NearNumber,omitempty"` + NearLatLong *string `json:"NearLatLong,omitempty"` + Distance *int32 `json:"Distance,omitempty"` + InPostalCode *string `json:"InPostalCode,omitempty"` + InRegion *string `json:"InRegion,omitempty"` + InRateCenter *string `json:"InRateCenter,omitempty"` + InLata *string `json:"InLata,omitempty"` + InLocality *string `json:"InLocality,omitempty"` + FaxEnabled *bool `json:"FaxEnabled,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -5657,9 +5657,9 @@ ListAvailablePhoneNumberSharedCost Method for ListAvailablePhoneNumberSharedCost * @param "InLocality" (string) - Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. * @param "FaxEnabled" (bool) - Whether the phone numbers can receive faxes. Can be: `true` or `false`. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse +@return ListAvailablePhoneNumberSharedCostResponse */ -func (c *DefaultApiService) ListAvailablePhoneNumberSharedCost(AccountSid string, CountryCode string, params *ListAvailablePhoneNumberSharedCostParams) (*ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse, error) { +func (c *DefaultApiService) ListAvailablePhoneNumberSharedCost(AccountSid string, CountryCode string, params *ListAvailablePhoneNumberSharedCostParams) (*ListAvailablePhoneNumberSharedCostResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/SharedCost.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) path = strings.Replace(path, "{"+"CountryCode"+"}", CountryCode, -1) @@ -5734,7 +5734,7 @@ func (c *DefaultApiService) ListAvailablePhoneNumberSharedCost(AccountSid string defer resp.Body.Close() - ps := &ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse{} + ps := &ListAvailablePhoneNumberSharedCostResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -5743,25 +5743,25 @@ func (c *DefaultApiService) ListAvailablePhoneNumberSharedCost(AccountSid string } // ListAvailablePhoneNumberTollFreeParams Optional parameters for the method 'ListAvailablePhoneNumberTollFree' type ListAvailablePhoneNumberTollFreeParams struct { - AreaCode *int32 `json:"AreaCode,omitempty"` - Contains *string `json:"Contains,omitempty"` - SmsEnabled *bool `json:"SmsEnabled,omitempty"` - MmsEnabled *bool `json:"MmsEnabled,omitempty"` - VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` - ExcludeAllAddressRequired *bool `json:"ExcludeAllAddressRequired,omitempty"` - ExcludeLocalAddressRequired *bool `json:"ExcludeLocalAddressRequired,omitempty"` - ExcludeForeignAddressRequired *bool `json:"ExcludeForeignAddressRequired,omitempty"` - Beta *bool `json:"Beta,omitempty"` - NearNumber *string `json:"NearNumber,omitempty"` - NearLatLong *string `json:"NearLatLong,omitempty"` - Distance *int32 `json:"Distance,omitempty"` - InPostalCode *string `json:"InPostalCode,omitempty"` - InRegion *string `json:"InRegion,omitempty"` - InRateCenter *string `json:"InRateCenter,omitempty"` - InLata *string `json:"InLata,omitempty"` - InLocality *string `json:"InLocality,omitempty"` - FaxEnabled *bool `json:"FaxEnabled,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + AreaCode *int32 `json:"AreaCode,omitempty"` + Contains *string `json:"Contains,omitempty"` + SmsEnabled *bool `json:"SmsEnabled,omitempty"` + MmsEnabled *bool `json:"MmsEnabled,omitempty"` + VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` + ExcludeAllAddressRequired *bool `json:"ExcludeAllAddressRequired,omitempty"` + ExcludeLocalAddressRequired *bool `json:"ExcludeLocalAddressRequired,omitempty"` + ExcludeForeignAddressRequired *bool `json:"ExcludeForeignAddressRequired,omitempty"` + Beta *bool `json:"Beta,omitempty"` + NearNumber *string `json:"NearNumber,omitempty"` + NearLatLong *string `json:"NearLatLong,omitempty"` + Distance *int32 `json:"Distance,omitempty"` + InPostalCode *string `json:"InPostalCode,omitempty"` + InRegion *string `json:"InRegion,omitempty"` + InRateCenter *string `json:"InRateCenter,omitempty"` + InLata *string `json:"InLata,omitempty"` + InLocality *string `json:"InLocality,omitempty"` + FaxEnabled *bool `json:"FaxEnabled,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -5788,9 +5788,9 @@ ListAvailablePhoneNumberTollFree Method for ListAvailablePhoneNumberTollFree * @param "InLocality" (string) - Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. * @param "FaxEnabled" (bool) - Whether the phone numbers can receive faxes. Can be: `true` or `false`. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse +@return ListAvailablePhoneNumberTollFreeResponse */ -func (c *DefaultApiService) ListAvailablePhoneNumberTollFree(AccountSid string, CountryCode string, params *ListAvailablePhoneNumberTollFreeParams) (*ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse, error) { +func (c *DefaultApiService) ListAvailablePhoneNumberTollFree(AccountSid string, CountryCode string, params *ListAvailablePhoneNumberTollFreeParams) (*ListAvailablePhoneNumberTollFreeResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/TollFree.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) path = strings.Replace(path, "{"+"CountryCode"+"}", CountryCode, -1) @@ -5865,7 +5865,7 @@ func (c *DefaultApiService) ListAvailablePhoneNumberTollFree(AccountSid string, defer resp.Body.Close() - ps := &ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse{} + ps := &ListAvailablePhoneNumberTollFreeResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -5874,25 +5874,25 @@ func (c *DefaultApiService) ListAvailablePhoneNumberTollFree(AccountSid string, } // ListAvailablePhoneNumberVoipParams Optional parameters for the method 'ListAvailablePhoneNumberVoip' type ListAvailablePhoneNumberVoipParams struct { - AreaCode *int32 `json:"AreaCode,omitempty"` - Contains *string `json:"Contains,omitempty"` - SmsEnabled *bool `json:"SmsEnabled,omitempty"` - MmsEnabled *bool `json:"MmsEnabled,omitempty"` - VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` - ExcludeAllAddressRequired *bool `json:"ExcludeAllAddressRequired,omitempty"` - ExcludeLocalAddressRequired *bool `json:"ExcludeLocalAddressRequired,omitempty"` - ExcludeForeignAddressRequired *bool `json:"ExcludeForeignAddressRequired,omitempty"` - Beta *bool `json:"Beta,omitempty"` - NearNumber *string `json:"NearNumber,omitempty"` - NearLatLong *string `json:"NearLatLong,omitempty"` - Distance *int32 `json:"Distance,omitempty"` - InPostalCode *string `json:"InPostalCode,omitempty"` - InRegion *string `json:"InRegion,omitempty"` - InRateCenter *string `json:"InRateCenter,omitempty"` - InLata *string `json:"InLata,omitempty"` - InLocality *string `json:"InLocality,omitempty"` - FaxEnabled *bool `json:"FaxEnabled,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + AreaCode *int32 `json:"AreaCode,omitempty"` + Contains *string `json:"Contains,omitempty"` + SmsEnabled *bool `json:"SmsEnabled,omitempty"` + MmsEnabled *bool `json:"MmsEnabled,omitempty"` + VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` + ExcludeAllAddressRequired *bool `json:"ExcludeAllAddressRequired,omitempty"` + ExcludeLocalAddressRequired *bool `json:"ExcludeLocalAddressRequired,omitempty"` + ExcludeForeignAddressRequired *bool `json:"ExcludeForeignAddressRequired,omitempty"` + Beta *bool `json:"Beta,omitempty"` + NearNumber *string `json:"NearNumber,omitempty"` + NearLatLong *string `json:"NearLatLong,omitempty"` + Distance *int32 `json:"Distance,omitempty"` + InPostalCode *string `json:"InPostalCode,omitempty"` + InRegion *string `json:"InRegion,omitempty"` + InRateCenter *string `json:"InRateCenter,omitempty"` + InLata *string `json:"InLata,omitempty"` + InLocality *string `json:"InLocality,omitempty"` + FaxEnabled *bool `json:"FaxEnabled,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -5919,9 +5919,9 @@ ListAvailablePhoneNumberVoip Method for ListAvailablePhoneNumberVoip * @param "InLocality" (string) - Limit results to a particular locality or city. Given a phone number, search within the same Locality as that number. * @param "FaxEnabled" (bool) - Whether the phone numbers can receive faxes. Can be: `true` or `false`. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse +@return ListAvailablePhoneNumberVoipResponse */ -func (c *DefaultApiService) ListAvailablePhoneNumberVoip(AccountSid string, CountryCode string, params *ListAvailablePhoneNumberVoipParams) (*ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse, error) { +func (c *DefaultApiService) ListAvailablePhoneNumberVoip(AccountSid string, CountryCode string, params *ListAvailablePhoneNumberVoipParams) (*ListAvailablePhoneNumberVoipResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}/Voip.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) path = strings.Replace(path, "{"+"CountryCode"+"}", CountryCode, -1) @@ -5996,7 +5996,7 @@ func (c *DefaultApiService) ListAvailablePhoneNumberVoip(AccountSid string, Coun defer resp.Body.Close() - ps := &ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse{} + ps := &ListAvailablePhoneNumberVoipResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -6005,17 +6005,17 @@ func (c *DefaultApiService) ListAvailablePhoneNumberVoip(AccountSid string, Coun } // ListCallParams Optional parameters for the method 'ListCall' type ListCallParams struct { - To *string `json:"To,omitempty"` - From *string `json:"From,omitempty"` - ParentCallSid *string `json:"ParentCallSid,omitempty"` - Status *string `json:"Status,omitempty"` - StartTime *time.Time `json:"StartTime,omitempty"` - StartTimelesserThan *time.Time `json:"StartTime<,omitempty"` - StartTimegreaterThan *time.Time `json:"StartTime>,omitempty"` - EndTime *time.Time `json:"EndTime,omitempty"` - EndTimelesserThan *time.Time `json:"EndTime<,omitempty"` - EndTimegreaterThan *time.Time `json:"EndTime>,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + To *string `json:"To,omitempty"` + From *string `json:"From,omitempty"` + ParentCallSid *string `json:"ParentCallSid,omitempty"` + Status *string `json:"Status,omitempty"` + StartTime *time.Time `json:"StartTime,omitempty"` + StartTimelesserThan *time.Time `json:"StartTime<,omitempty"` + StartTimegreaterThan *time.Time `json:"StartTime>,omitempty"` + EndTime *time.Time `json:"EndTime,omitempty"` + EndTimelesserThan *time.Time `json:"EndTime<,omitempty"` + EndTimegreaterThan *time.Time `json:"EndTime>,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6034,9 +6034,9 @@ Retrieves a collection of calls made to and from your account * @param "EndTimelesserThan" (time.Time) - 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. * @param "EndTimegreaterThan" (time.Time) - 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. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountCallReadResponse +@return ListCallResponse */ -func (c *DefaultApiService) ListCall(AccountSid string, params *ListCallParams) (*ApiV2010AccountCallReadResponse, error) { +func (c *DefaultApiService) ListCall(AccountSid string, params *ListCallParams) (*ListCallResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) @@ -6086,7 +6086,7 @@ func (c *DefaultApiService) ListCall(AccountSid string, params *ListCallParams) defer resp.Body.Close() - ps := &ApiV2010AccountCallReadResponse{} + ps := &ListCallResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -6095,7 +6095,7 @@ func (c *DefaultApiService) ListCall(AccountSid string, params *ListCallParams) } // ListCallEventParams Optional parameters for the method 'ListCallEvent' type ListCallEventParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6105,9 +6105,9 @@ Retrieve a list of all events for a call. * @param CallSid The unique SID identifier of the Call. * @param optional nil or *ListCallEventOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountCallCallEventReadResponse +@return ListCallEventResponse */ -func (c *DefaultApiService) ListCallEvent(AccountSid string, CallSid string, params *ListCallEventParams) (*ApiV2010AccountCallCallEventReadResponse, error) { +func (c *DefaultApiService) ListCallEvent(AccountSid string, CallSid string, params *ListCallEventParams) (*ListCallEventResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Events.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) path = strings.Replace(path, "{"+"CallSid"+"}", CallSid, -1) @@ -6128,7 +6128,7 @@ func (c *DefaultApiService) ListCallEvent(AccountSid string, CallSid string, par defer resp.Body.Close() - ps := &ApiV2010AccountCallCallEventReadResponse{} + ps := &ListCallEventResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -6137,11 +6137,11 @@ func (c *DefaultApiService) ListCallEvent(AccountSid string, CallSid string, par } // ListCallNotificationParams Optional parameters for the method 'ListCallNotification' type ListCallNotificationParams struct { - Log *int32 `json:"Log,omitempty"` - MessageDate *time.Time `json:"MessageDate,omitempty"` - MessageDatelesserThan *time.Time `json:"MessageDate<,omitempty"` - MessageDategreaterThan *time.Time `json:"MessageDate>,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Log *int32 `json:"Log,omitempty"` + MessageDate *time.Time `json:"MessageDate,omitempty"` + MessageDatelesserThan *time.Time `json:"MessageDate<,omitempty"` + MessageDategreaterThan *time.Time `json:"MessageDate>,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6154,9 +6154,9 @@ ListCallNotification Method for ListCallNotification * @param "MessageDatelesserThan" (time.Time) - 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. * @param "MessageDategreaterThan" (time.Time) - 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. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountCallCallNotificationReadResponse +@return ListCallNotificationResponse */ -func (c *DefaultApiService) ListCallNotification(AccountSid string, CallSid string, params *ListCallNotificationParams) (*ApiV2010AccountCallCallNotificationReadResponse, error) { +func (c *DefaultApiService) ListCallNotification(AccountSid string, CallSid string, params *ListCallNotificationParams) (*ListCallNotificationResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) path = strings.Replace(path, "{"+"CallSid"+"}", CallSid, -1) @@ -6189,7 +6189,7 @@ func (c *DefaultApiService) ListCallNotification(AccountSid string, CallSid stri defer resp.Body.Close() - ps := &ApiV2010AccountCallCallNotificationReadResponse{} + ps := &ListCallNotificationResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -6198,10 +6198,10 @@ func (c *DefaultApiService) ListCallNotification(AccountSid string, CallSid stri } // ListCallRecordingParams Optional parameters for the method 'ListCallRecording' type ListCallRecordingParams struct { - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateCreatedlesserThan *time.Time `json:"DateCreated<,omitempty"` - DateCreatedgreaterThan *time.Time `json:"DateCreated>,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateCreatedlesserThan *time.Time `json:"DateCreated<,omitempty"` + DateCreatedgreaterThan *time.Time `json:"DateCreated>,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6214,9 +6214,9 @@ Retrieve a list of recordings belonging to the call used to make the request * @param "DateCreatedlesserThan" (time.Time) - 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. * @param "DateCreatedgreaterThan" (time.Time) - 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. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountCallCallRecordingReadResponse +@return ListCallRecordingResponse */ -func (c *DefaultApiService) ListCallRecording(AccountSid string, CallSid string, params *ListCallRecordingParams) (*ApiV2010AccountCallCallRecordingReadResponse, error) { +func (c *DefaultApiService) ListCallRecording(AccountSid string, CallSid string, params *ListCallRecordingParams) (*ListCallRecordingResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Recordings.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) path = strings.Replace(path, "{"+"CallSid"+"}", CallSid, -1) @@ -6246,7 +6246,7 @@ func (c *DefaultApiService) ListCallRecording(AccountSid string, CallSid string, defer resp.Body.Close() - ps := &ApiV2010AccountCallCallRecordingReadResponse{} + ps := &ListCallRecordingResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -6255,15 +6255,15 @@ func (c *DefaultApiService) ListCallRecording(AccountSid string, CallSid string, } // ListConferenceParams Optional parameters for the method 'ListConference' type ListConferenceParams struct { - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateCreatedlesserThan *time.Time `json:"DateCreated<,omitempty"` - DateCreatedgreaterThan *time.Time `json:"DateCreated>,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - DateUpdatedlesserThan *time.Time `json:"DateUpdated<,omitempty"` - DateUpdatedgreaterThan *time.Time `json:"DateUpdated>,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Status *string `json:"Status,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateCreatedlesserThan *time.Time `json:"DateCreated<,omitempty"` + DateCreatedgreaterThan *time.Time `json:"DateCreated>,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + DateUpdatedlesserThan *time.Time `json:"DateUpdated<,omitempty"` + DateUpdatedgreaterThan *time.Time `json:"DateUpdated>,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Status *string `json:"Status,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6280,9 +6280,9 @@ Retrieve a list of conferences belonging to the account used to make the request * @param "FriendlyName" (string) - The string that identifies the Conference resources to read. * @param "Status" (string) - The status of the resources to read. Can be: `init`, `in-progress`, or `completed`. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountConferenceReadResponse +@return ListConferenceResponse */ -func (c *DefaultApiService) ListConference(AccountSid string, params *ListConferenceParams) (*ApiV2010AccountConferenceReadResponse, error) { +func (c *DefaultApiService) ListConference(AccountSid string, params *ListConferenceParams) (*ListConferenceResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Conferences.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) @@ -6326,7 +6326,7 @@ func (c *DefaultApiService) ListConference(AccountSid string, params *ListConfer defer resp.Body.Close() - ps := &ApiV2010AccountConferenceReadResponse{} + ps := &ListConferenceResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -6335,10 +6335,10 @@ func (c *DefaultApiService) ListConference(AccountSid string, params *ListConfer } // ListConferenceRecordingParams Optional parameters for the method 'ListConferenceRecording' type ListConferenceRecordingParams struct { - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateCreatedlesserThan *time.Time `json:"DateCreated<,omitempty"` - DateCreatedgreaterThan *time.Time `json:"DateCreated>,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateCreatedlesserThan *time.Time `json:"DateCreated<,omitempty"` + DateCreatedgreaterThan *time.Time `json:"DateCreated>,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6351,9 +6351,9 @@ Retrieve a list of recordings belonging to the call used to make the request * @param "DateCreatedlesserThan" (time.Time) - 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. * @param "DateCreatedgreaterThan" (time.Time) - 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. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountConferenceConferenceRecordingReadResponse +@return ListConferenceRecordingResponse */ -func (c *DefaultApiService) ListConferenceRecording(AccountSid string, ConferenceSid string, params *ListConferenceRecordingParams) (*ApiV2010AccountConferenceConferenceRecordingReadResponse, error) { +func (c *DefaultApiService) ListConferenceRecording(AccountSid string, ConferenceSid string, params *ListConferenceRecordingParams) (*ListConferenceRecordingResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Recordings.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) path = strings.Replace(path, "{"+"ConferenceSid"+"}", ConferenceSid, -1) @@ -6383,7 +6383,7 @@ func (c *DefaultApiService) ListConferenceRecording(AccountSid string, Conferenc defer resp.Body.Close() - ps := &ApiV2010AccountConferenceConferenceRecordingReadResponse{} + ps := &ListConferenceRecordingResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -6392,7 +6392,7 @@ func (c *DefaultApiService) ListConferenceRecording(AccountSid string, Conferenc } // ListConnectAppParams Optional parameters for the method 'ListConnectApp' type ListConnectAppParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6401,9 +6401,9 @@ Retrieve a list of connect-apps belonging to the account used to make the reques * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the ConnectApp resources to read. * @param optional nil or *ListConnectAppOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountConnectAppReadResponse +@return ListConnectAppResponse */ -func (c *DefaultApiService) ListConnectApp(AccountSid string, params *ListConnectAppParams) (*ApiV2010AccountConnectAppReadResponse, error) { +func (c *DefaultApiService) ListConnectApp(AccountSid string, params *ListConnectAppParams) (*ListConnectAppResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/ConnectApps.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) @@ -6423,7 +6423,7 @@ func (c *DefaultApiService) ListConnectApp(AccountSid string, params *ListConnec defer resp.Body.Close() - ps := &ApiV2010AccountConnectAppReadResponse{} + ps := &ListConnectAppResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -6432,7 +6432,7 @@ func (c *DefaultApiService) ListConnectApp(AccountSid string, params *ListConnec } // ListDependentPhoneNumberParams Optional parameters for the method 'ListDependentPhoneNumber' type ListDependentPhoneNumberParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6441,9 +6441,9 @@ ListDependentPhoneNumber Method for ListDependentPhoneNumber * @param AddressSid The SID of the Address resource associated with the phone number. * @param optional nil or *ListDependentPhoneNumberOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountAddressDependentPhoneNumberReadResponse +@return ListDependentPhoneNumberResponse */ -func (c *DefaultApiService) ListDependentPhoneNumber(AccountSid string, AddressSid string, params *ListDependentPhoneNumberParams) (*ApiV2010AccountAddressDependentPhoneNumberReadResponse, error) { +func (c *DefaultApiService) ListDependentPhoneNumber(AccountSid string, AddressSid string, params *ListDependentPhoneNumberParams) (*ListDependentPhoneNumberResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Addresses/{AddressSid}/DependentPhoneNumbers.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) path = strings.Replace(path, "{"+"AddressSid"+"}", AddressSid, -1) @@ -6464,7 +6464,7 @@ func (c *DefaultApiService) ListDependentPhoneNumber(AccountSid string, AddressS defer resp.Body.Close() - ps := &ApiV2010AccountAddressDependentPhoneNumberReadResponse{} + ps := &ListDependentPhoneNumberResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -6473,11 +6473,11 @@ func (c *DefaultApiService) ListDependentPhoneNumber(AccountSid string, AddressS } // ListIncomingPhoneNumberParams Optional parameters for the method 'ListIncomingPhoneNumber' type ListIncomingPhoneNumberParams struct { - Beta *bool `json:"Beta,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PhoneNumber *string `json:"PhoneNumber,omitempty"` - Origin *string `json:"Origin,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Beta *bool `json:"Beta,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + Origin *string `json:"Origin,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6490,9 +6490,9 @@ Retrieve a list of incoming-phone-numbers belonging to the account used to make * @param "PhoneNumber" (string) - The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. * @param "Origin" (string) - Whether to include phone numbers based on their origin. Can be: `twilio` or `hosted`. By default, phone numbers of all origin are included. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountIncomingPhoneNumberReadResponse +@return ListIncomingPhoneNumberResponse */ -func (c *DefaultApiService) ListIncomingPhoneNumber(AccountSid string, params *ListIncomingPhoneNumberParams) (*ApiV2010AccountIncomingPhoneNumberReadResponse, error) { +func (c *DefaultApiService) ListIncomingPhoneNumber(AccountSid string, params *ListIncomingPhoneNumberParams) (*ListIncomingPhoneNumberResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) @@ -6524,7 +6524,7 @@ func (c *DefaultApiService) ListIncomingPhoneNumber(AccountSid string, params *L defer resp.Body.Close() - ps := &ApiV2010AccountIncomingPhoneNumberReadResponse{} + ps := &ListIncomingPhoneNumberResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -6533,7 +6533,7 @@ func (c *DefaultApiService) ListIncomingPhoneNumber(AccountSid string, params *L } // ListIncomingPhoneNumberAssignedAddOnParams Optional parameters for the method 'ListIncomingPhoneNumberAssignedAddOn' type ListIncomingPhoneNumberAssignedAddOnParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6543,9 +6543,9 @@ Retrieve a list of Add-on installations currently assigned to this Number. * @param ResourceSid The SID of the Phone Number to which the Add-on is assigned. * @param optional nil or *ListIncomingPhoneNumberAssignedAddOnOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse +@return ListIncomingPhoneNumberAssignedAddOnResponse */ -func (c *DefaultApiService) ListIncomingPhoneNumberAssignedAddOn(AccountSid string, ResourceSid string, params *ListIncomingPhoneNumberAssignedAddOnParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse, error) { +func (c *DefaultApiService) ListIncomingPhoneNumberAssignedAddOn(AccountSid string, ResourceSid string, params *ListIncomingPhoneNumberAssignedAddOnParams) (*ListIncomingPhoneNumberAssignedAddOnResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) path = strings.Replace(path, "{"+"ResourceSid"+"}", ResourceSid, -1) @@ -6566,7 +6566,7 @@ func (c *DefaultApiService) ListIncomingPhoneNumberAssignedAddOn(AccountSid stri defer resp.Body.Close() - ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse{} + ps := &ListIncomingPhoneNumberAssignedAddOnResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -6575,7 +6575,7 @@ func (c *DefaultApiService) ListIncomingPhoneNumberAssignedAddOn(AccountSid stri } // ListIncomingPhoneNumberAssignedAddOnExtensionParams Optional parameters for the method 'ListIncomingPhoneNumberAssignedAddOnExtension' type ListIncomingPhoneNumberAssignedAddOnExtensionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6586,9 +6586,9 @@ Retrieve a list of Extensions for the Assigned Add-on. * @param AssignedAddOnSid The SID that uniquely identifies the assigned Add-on installation. * @param optional nil or *ListIncomingPhoneNumberAssignedAddOnExtensionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse +@return ListIncomingPhoneNumberAssignedAddOnExtensionResponse */ -func (c *DefaultApiService) ListIncomingPhoneNumberAssignedAddOnExtension(AccountSid string, ResourceSid string, AssignedAddOnSid string, params *ListIncomingPhoneNumberAssignedAddOnExtensionParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse, error) { +func (c *DefaultApiService) ListIncomingPhoneNumberAssignedAddOnExtension(AccountSid string, ResourceSid string, AssignedAddOnSid string, params *ListIncomingPhoneNumberAssignedAddOnExtensionParams) (*ListIncomingPhoneNumberAssignedAddOnExtensionResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns/{AssignedAddOnSid}/Extensions.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) path = strings.Replace(path, "{"+"ResourceSid"+"}", ResourceSid, -1) @@ -6610,7 +6610,7 @@ func (c *DefaultApiService) ListIncomingPhoneNumberAssignedAddOnExtension(Accoun defer resp.Body.Close() - ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse{} + ps := &ListIncomingPhoneNumberAssignedAddOnExtensionResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -6619,11 +6619,11 @@ func (c *DefaultApiService) ListIncomingPhoneNumberAssignedAddOnExtension(Accoun } // ListIncomingPhoneNumberLocalParams Optional parameters for the method 'ListIncomingPhoneNumberLocal' type ListIncomingPhoneNumberLocalParams struct { - Beta *bool `json:"Beta,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PhoneNumber *string `json:"PhoneNumber,omitempty"` - Origin *string `json:"Origin,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Beta *bool `json:"Beta,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + Origin *string `json:"Origin,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6635,9 +6635,9 @@ ListIncomingPhoneNumberLocal Method for ListIncomingPhoneNumberLocal * @param "PhoneNumber" (string) - The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. * @param "Origin" (string) - Whether to include phone numbers based on their origin. Can be: `twilio` or `hosted`. By default, phone numbers of all origin are included. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse +@return ListIncomingPhoneNumberLocalResponse */ -func (c *DefaultApiService) ListIncomingPhoneNumberLocal(AccountSid string, params *ListIncomingPhoneNumberLocalParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse, error) { +func (c *DefaultApiService) ListIncomingPhoneNumberLocal(AccountSid string, params *ListIncomingPhoneNumberLocalParams) (*ListIncomingPhoneNumberLocalResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) @@ -6669,7 +6669,7 @@ func (c *DefaultApiService) ListIncomingPhoneNumberLocal(AccountSid string, para defer resp.Body.Close() - ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse{} + ps := &ListIncomingPhoneNumberLocalResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -6678,11 +6678,11 @@ func (c *DefaultApiService) ListIncomingPhoneNumberLocal(AccountSid string, para } // ListIncomingPhoneNumberMobileParams Optional parameters for the method 'ListIncomingPhoneNumberMobile' type ListIncomingPhoneNumberMobileParams struct { - Beta *bool `json:"Beta,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PhoneNumber *string `json:"PhoneNumber,omitempty"` - Origin *string `json:"Origin,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Beta *bool `json:"Beta,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + Origin *string `json:"Origin,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6694,9 +6694,9 @@ ListIncomingPhoneNumberMobile Method for ListIncomingPhoneNumberMobile * @param "PhoneNumber" (string) - The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. * @param "Origin" (string) - Whether to include phone numbers based on their origin. Can be: `twilio` or `hosted`. By default, phone numbers of all origin are included. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse +@return ListIncomingPhoneNumberMobileResponse */ -func (c *DefaultApiService) ListIncomingPhoneNumberMobile(AccountSid string, params *ListIncomingPhoneNumberMobileParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse, error) { +func (c *DefaultApiService) ListIncomingPhoneNumberMobile(AccountSid string, params *ListIncomingPhoneNumberMobileParams) (*ListIncomingPhoneNumberMobileResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) @@ -6728,7 +6728,7 @@ func (c *DefaultApiService) ListIncomingPhoneNumberMobile(AccountSid string, par defer resp.Body.Close() - ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse{} + ps := &ListIncomingPhoneNumberMobileResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -6737,11 +6737,11 @@ func (c *DefaultApiService) ListIncomingPhoneNumberMobile(AccountSid string, par } // ListIncomingPhoneNumberTollFreeParams Optional parameters for the method 'ListIncomingPhoneNumberTollFree' type ListIncomingPhoneNumberTollFreeParams struct { - Beta *bool `json:"Beta,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PhoneNumber *string `json:"PhoneNumber,omitempty"` - Origin *string `json:"Origin,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Beta *bool `json:"Beta,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + Origin *string `json:"Origin,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6753,9 +6753,9 @@ ListIncomingPhoneNumberTollFree Method for ListIncomingPhoneNumberTollFree * @param "PhoneNumber" (string) - The phone numbers of the IncomingPhoneNumber resources to read. You can specify partial numbers and use '*' as a wildcard for any digit. * @param "Origin" (string) - Whether to include phone numbers based on their origin. Can be: `twilio` or `hosted`. By default, phone numbers of all origin are included. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse +@return ListIncomingPhoneNumberTollFreeResponse */ -func (c *DefaultApiService) ListIncomingPhoneNumberTollFree(AccountSid string, params *ListIncomingPhoneNumberTollFreeParams) (*ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse, error) { +func (c *DefaultApiService) ListIncomingPhoneNumberTollFree(AccountSid string, params *ListIncomingPhoneNumberTollFreeParams) (*ListIncomingPhoneNumberTollFreeResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) @@ -6787,7 +6787,7 @@ func (c *DefaultApiService) ListIncomingPhoneNumberTollFree(AccountSid string, p defer resp.Body.Close() - ps := &ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse{} + ps := &ListIncomingPhoneNumberTollFreeResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -6796,7 +6796,7 @@ func (c *DefaultApiService) ListIncomingPhoneNumberTollFree(AccountSid string, p } // ListKeyParams Optional parameters for the method 'ListKey' type ListKeyParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6804,9 +6804,9 @@ ListKey Method for ListKey * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Key resources to read. * @param optional nil or *ListKeyOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountKeyReadResponse +@return ListKeyResponse */ -func (c *DefaultApiService) ListKey(AccountSid string, params *ListKeyParams) (*ApiV2010AccountKeyReadResponse, error) { +func (c *DefaultApiService) ListKey(AccountSid string, params *ListKeyParams) (*ListKeyResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Keys.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) @@ -6826,7 +6826,7 @@ func (c *DefaultApiService) ListKey(AccountSid string, params *ListKeyParams) (* defer resp.Body.Close() - ps := &ApiV2010AccountKeyReadResponse{} + ps := &ListKeyResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -6835,10 +6835,10 @@ func (c *DefaultApiService) ListKey(AccountSid string, params *ListKeyParams) (* } // ListMediaParams Optional parameters for the method 'ListMedia' type ListMediaParams struct { - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateCreatedlesserThan *time.Time `json:"DateCreated<,omitempty"` - DateCreatedgreaterThan *time.Time `json:"DateCreated>,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateCreatedlesserThan *time.Time `json:"DateCreated<,omitempty"` + DateCreatedgreaterThan *time.Time `json:"DateCreated>,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6851,9 +6851,9 @@ Retrieve a list of Media resources belonging to the account used to make the req * @param "DateCreatedlesserThan" (time.Time) - 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. * @param "DateCreatedgreaterThan" (time.Time) - 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. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountMessageMediaReadResponse +@return ListMediaResponse */ -func (c *DefaultApiService) ListMedia(AccountSid string, MessageSid string, params *ListMediaParams) (*ApiV2010AccountMessageMediaReadResponse, error) { +func (c *DefaultApiService) ListMedia(AccountSid string, MessageSid string, params *ListMediaParams) (*ListMediaResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) path = strings.Replace(path, "{"+"MessageSid"+"}", MessageSid, -1) @@ -6883,7 +6883,7 @@ func (c *DefaultApiService) ListMedia(AccountSid string, MessageSid string, para defer resp.Body.Close() - ps := &ApiV2010AccountMessageMediaReadResponse{} + ps := &ListMediaResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -6892,7 +6892,7 @@ func (c *DefaultApiService) ListMedia(AccountSid string, MessageSid string, para } // ListMemberParams Optional parameters for the method 'ListMember' type ListMemberParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6902,9 +6902,9 @@ Retrieve the members of the queue * @param QueueSid The SID of the Queue in which to find the members * @param optional nil or *ListMemberOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountQueueMemberReadResponse +@return ListMemberResponse */ -func (c *DefaultApiService) ListMember(AccountSid string, QueueSid string, params *ListMemberParams) (*ApiV2010AccountQueueMemberReadResponse, error) { +func (c *DefaultApiService) ListMember(AccountSid string, QueueSid string, params *ListMemberParams) (*ListMemberResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) path = strings.Replace(path, "{"+"QueueSid"+"}", QueueSid, -1) @@ -6925,7 +6925,7 @@ func (c *DefaultApiService) ListMember(AccountSid string, QueueSid string, param defer resp.Body.Close() - ps := &ApiV2010AccountQueueMemberReadResponse{} + ps := &ListMemberResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -6934,12 +6934,12 @@ func (c *DefaultApiService) ListMember(AccountSid string, QueueSid string, param } // ListMessageParams Optional parameters for the method 'ListMessage' type ListMessageParams struct { - To *string `json:"To,omitempty"` - From *string `json:"From,omitempty"` - DateSent *time.Time `json:"DateSent,omitempty"` - DateSentlesserThan *time.Time `json:"DateSent<,omitempty"` - DateSentgreaterThan *time.Time `json:"DateSent>,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + To *string `json:"To,omitempty"` + From *string `json:"From,omitempty"` + DateSent *time.Time `json:"DateSent,omitempty"` + DateSentlesserThan *time.Time `json:"DateSent<,omitempty"` + DateSentgreaterThan *time.Time `json:"DateSent>,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -6953,9 +6953,9 @@ Retrieve a list of messages belonging to the account used to make the request * @param "DateSentlesserThan" (time.Time) - 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. * @param "DateSentgreaterThan" (time.Time) - 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. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountMessageReadResponse +@return ListMessageResponse */ -func (c *DefaultApiService) ListMessage(AccountSid string, params *ListMessageParams) (*ApiV2010AccountMessageReadResponse, error) { +func (c *DefaultApiService) ListMessage(AccountSid string, params *ListMessageParams) (*ListMessageResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Messages.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) @@ -6990,7 +6990,7 @@ func (c *DefaultApiService) ListMessage(AccountSid string, params *ListMessagePa defer resp.Body.Close() - ps := &ApiV2010AccountMessageReadResponse{} + ps := &ListMessageResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -6999,11 +6999,11 @@ func (c *DefaultApiService) ListMessage(AccountSid string, params *ListMessagePa } // ListNotificationParams Optional parameters for the method 'ListNotification' type ListNotificationParams struct { - Log *int32 `json:"Log,omitempty"` - MessageDate *time.Time `json:"MessageDate,omitempty"` - MessageDatelesserThan *time.Time `json:"MessageDate<,omitempty"` - MessageDategreaterThan *time.Time `json:"MessageDate>,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Log *int32 `json:"Log,omitempty"` + MessageDate *time.Time `json:"MessageDate,omitempty"` + MessageDatelesserThan *time.Time `json:"MessageDate<,omitempty"` + MessageDategreaterThan *time.Time `json:"MessageDate>,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7016,9 +7016,9 @@ Retrieve a list of notifications belonging to the account used to make the reque * @param "MessageDatelesserThan" (time.Time) - 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. * @param "MessageDategreaterThan" (time.Time) - 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. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountNotificationReadResponse +@return ListNotificationResponse */ -func (c *DefaultApiService) ListNotification(AccountSid string, params *ListNotificationParams) (*ApiV2010AccountNotificationReadResponse, error) { +func (c *DefaultApiService) ListNotification(AccountSid string, params *ListNotificationParams) (*ListNotificationResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Notifications.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) @@ -7050,7 +7050,7 @@ func (c *DefaultApiService) ListNotification(AccountSid string, params *ListNoti defer resp.Body.Close() - ps := &ApiV2010AccountNotificationReadResponse{} + ps := &ListNotificationResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -7059,9 +7059,9 @@ func (c *DefaultApiService) ListNotification(AccountSid string, params *ListNoti } // ListOutgoingCallerIdParams Optional parameters for the method 'ListOutgoingCallerId' type ListOutgoingCallerIdParams struct { - PhoneNumber *string `json:"PhoneNumber,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7072,9 +7072,9 @@ Retrieve a list of outgoing-caller-ids belonging to the account used to make the * @param "PhoneNumber" (string) - The phone number of the OutgoingCallerId resources to read. * @param "FriendlyName" (string) - The string that identifies the OutgoingCallerId resources to read. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountOutgoingCallerIdReadResponse +@return ListOutgoingCallerIdResponse */ -func (c *DefaultApiService) ListOutgoingCallerId(AccountSid string, params *ListOutgoingCallerIdParams) (*ApiV2010AccountOutgoingCallerIdReadResponse, error) { +func (c *DefaultApiService) ListOutgoingCallerId(AccountSid string, params *ListOutgoingCallerIdParams) (*ListOutgoingCallerIdResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/OutgoingCallerIds.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) @@ -7100,7 +7100,7 @@ func (c *DefaultApiService) ListOutgoingCallerId(AccountSid string, params *List defer resp.Body.Close() - ps := &ApiV2010AccountOutgoingCallerIdReadResponse{} + ps := &ListOutgoingCallerIdResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -7109,10 +7109,10 @@ func (c *DefaultApiService) ListOutgoingCallerId(AccountSid string, params *List } // ListParticipantParams Optional parameters for the method 'ListParticipant' type ListParticipantParams struct { - Muted *bool `json:"Muted,omitempty"` - Hold *bool `json:"Hold,omitempty"` - Coaching *bool `json:"Coaching,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Muted *bool `json:"Muted,omitempty"` + Hold *bool `json:"Hold,omitempty"` + Coaching *bool `json:"Coaching,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7125,9 +7125,9 @@ Retrieve a list of participants belonging to the account used to make the reques * @param "Hold" (bool) - Whether to return only participants that are on hold. Can be: `true` or `false`. * @param "Coaching" (bool) - Whether to return only participants who are coaching another call. Can be: `true` or `false`. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountConferenceParticipantReadResponse +@return ListParticipantResponse */ -func (c *DefaultApiService) ListParticipant(AccountSid string, ConferenceSid string, params *ListParticipantParams) (*ApiV2010AccountConferenceParticipantReadResponse, error) { +func (c *DefaultApiService) ListParticipant(AccountSid string, ConferenceSid string, params *ListParticipantParams) (*ListParticipantResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) path = strings.Replace(path, "{"+"ConferenceSid"+"}", ConferenceSid, -1) @@ -7157,7 +7157,7 @@ func (c *DefaultApiService) ListParticipant(AccountSid string, ConferenceSid str defer resp.Body.Close() - ps := &ApiV2010AccountConferenceParticipantReadResponse{} + ps := &ListParticipantResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -7166,7 +7166,7 @@ func (c *DefaultApiService) ListParticipant(AccountSid string, ConferenceSid str } // ListQueueParams Optional parameters for the method 'ListQueue' type ListQueueParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7175,9 +7175,9 @@ Retrieve a list of queues belonging to the account used to make the request * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Queue resources to read. * @param optional nil or *ListQueueOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountQueueReadResponse +@return ListQueueResponse */ -func (c *DefaultApiService) ListQueue(AccountSid string, params *ListQueueParams) (*ApiV2010AccountQueueReadResponse, error) { +func (c *DefaultApiService) ListQueue(AccountSid string, params *ListQueueParams) (*ListQueueResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Queues.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) @@ -7197,7 +7197,7 @@ func (c *DefaultApiService) ListQueue(AccountSid string, params *ListQueueParams defer resp.Body.Close() - ps := &ApiV2010AccountQueueReadResponse{} + ps := &ListQueueResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -7206,12 +7206,12 @@ func (c *DefaultApiService) ListQueue(AccountSid string, params *ListQueueParams } // ListRecordingParams Optional parameters for the method 'ListRecording' type ListRecordingParams struct { - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateCreatedlesserThan *time.Time `json:"DateCreated<,omitempty"` - DateCreatedgreaterThan *time.Time `json:"DateCreated>,omitempty"` - CallSid *string `json:"CallSid,omitempty"` - ConferenceSid *string `json:"ConferenceSid,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateCreatedlesserThan *time.Time `json:"DateCreated<,omitempty"` + DateCreatedgreaterThan *time.Time `json:"DateCreated>,omitempty"` + CallSid *string `json:"CallSid,omitempty"` + ConferenceSid *string `json:"ConferenceSid,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7225,9 +7225,9 @@ Retrieve a list of recordings belonging to the account used to make the request * @param "CallSid" (string) - The [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the resources to read. * @param "ConferenceSid" (string) - The Conference SID that identifies the conference associated with the recording to read. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountRecordingReadResponse +@return ListRecordingResponse */ -func (c *DefaultApiService) ListRecording(AccountSid string, params *ListRecordingParams) (*ApiV2010AccountRecordingReadResponse, error) { +func (c *DefaultApiService) ListRecording(AccountSid string, params *ListRecordingParams) (*ListRecordingResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Recordings.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) @@ -7262,7 +7262,7 @@ func (c *DefaultApiService) ListRecording(AccountSid string, params *ListRecordi defer resp.Body.Close() - ps := &ApiV2010AccountRecordingReadResponse{} + ps := &ListRecordingResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -7271,7 +7271,7 @@ func (c *DefaultApiService) ListRecording(AccountSid string, params *ListRecordi } // ListRecordingAddOnResultParams Optional parameters for the method 'ListRecordingAddOnResult' type ListRecordingAddOnResultParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7281,9 +7281,9 @@ Retrieve a list of results belonging to the recording * @param ReferenceSid The SID of the recording to which the result to read belongs. * @param optional nil or *ListRecordingAddOnResultOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountRecordingRecordingAddOnResultReadResponse +@return ListRecordingAddOnResultResponse */ -func (c *DefaultApiService) ListRecordingAddOnResult(AccountSid string, ReferenceSid string, params *ListRecordingAddOnResultParams) (*ApiV2010AccountRecordingRecordingAddOnResultReadResponse, error) { +func (c *DefaultApiService) ListRecordingAddOnResult(AccountSid string, ReferenceSid string, params *ListRecordingAddOnResultParams) (*ListRecordingAddOnResultResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) path = strings.Replace(path, "{"+"ReferenceSid"+"}", ReferenceSid, -1) @@ -7304,7 +7304,7 @@ func (c *DefaultApiService) ListRecordingAddOnResult(AccountSid string, Referenc defer resp.Body.Close() - ps := &ApiV2010AccountRecordingRecordingAddOnResultReadResponse{} + ps := &ListRecordingAddOnResultResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -7313,7 +7313,7 @@ func (c *DefaultApiService) ListRecordingAddOnResult(AccountSid string, Referenc } // ListRecordingAddOnResultPayloadParams Optional parameters for the method 'ListRecordingAddOnResultPayload' type ListRecordingAddOnResultPayloadParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7324,9 +7324,9 @@ Retrieve a list of payloads belonging to the AddOnResult * @param AddOnResultSid The SID of the AddOnResult to which the payloads to read belongs. * @param optional nil or *ListRecordingAddOnResultPayloadOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse +@return ListRecordingAddOnResultPayloadResponse */ -func (c *DefaultApiService) ListRecordingAddOnResultPayload(AccountSid string, ReferenceSid string, AddOnResultSid string, params *ListRecordingAddOnResultPayloadParams) (*ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse, error) { +func (c *DefaultApiService) ListRecordingAddOnResultPayload(AccountSid string, ReferenceSid string, AddOnResultSid string, params *ListRecordingAddOnResultPayloadParams) (*ListRecordingAddOnResultPayloadResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) path = strings.Replace(path, "{"+"ReferenceSid"+"}", ReferenceSid, -1) @@ -7348,7 +7348,7 @@ func (c *DefaultApiService) ListRecordingAddOnResultPayload(AccountSid string, R defer resp.Body.Close() - ps := &ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse{} + ps := &ListRecordingAddOnResultPayloadResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -7357,7 +7357,7 @@ func (c *DefaultApiService) ListRecordingAddOnResultPayload(AccountSid string, R } // ListRecordingTranscriptionParams Optional parameters for the method 'ListRecordingTranscription' type ListRecordingTranscriptionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7366,9 +7366,9 @@ ListRecordingTranscription Method for ListRecordingTranscription * @param RecordingSid The SID of the [Recording](https://www.twilio.com/docs/voice/api/recording) that created the transcriptions to read. * @param optional nil or *ListRecordingTranscriptionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountRecordingRecordingTranscriptionReadResponse +@return ListRecordingTranscriptionResponse */ -func (c *DefaultApiService) ListRecordingTranscription(AccountSid string, RecordingSid string, params *ListRecordingTranscriptionParams) (*ApiV2010AccountRecordingRecordingTranscriptionReadResponse, error) { +func (c *DefaultApiService) ListRecordingTranscription(AccountSid string, RecordingSid string, params *ListRecordingTranscriptionParams) (*ListRecordingTranscriptionResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Recordings/{RecordingSid}/Transcriptions.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) path = strings.Replace(path, "{"+"RecordingSid"+"}", RecordingSid, -1) @@ -7389,7 +7389,7 @@ func (c *DefaultApiService) ListRecordingTranscription(AccountSid string, Record defer resp.Body.Close() - ps := &ApiV2010AccountRecordingRecordingTranscriptionReadResponse{} + ps := &ListRecordingTranscriptionResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -7398,9 +7398,9 @@ func (c *DefaultApiService) ListRecordingTranscription(AccountSid string, Record } // ListShortCodeParams Optional parameters for the method 'ListShortCode' type ListShortCodeParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - ShortCode *string `json:"ShortCode,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + ShortCode *string `json:"ShortCode,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7411,9 +7411,9 @@ Retrieve a list of short-codes belonging to the account used to make the request * @param "FriendlyName" (string) - The string that identifies the ShortCode resources to read. * @param "ShortCode" (string) - Only show the ShortCode resources that match this pattern. You can specify partial numbers and use '*' as a wildcard for any digit. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountShortCodeReadResponse +@return ListShortCodeResponse */ -func (c *DefaultApiService) ListShortCode(AccountSid string, params *ListShortCodeParams) (*ApiV2010AccountShortCodeReadResponse, error) { +func (c *DefaultApiService) ListShortCode(AccountSid string, params *ListShortCodeParams) (*ListShortCodeResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SMS/ShortCodes.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) @@ -7439,7 +7439,7 @@ func (c *DefaultApiService) ListShortCode(AccountSid string, params *ListShortCo defer resp.Body.Close() - ps := &ApiV2010AccountShortCodeReadResponse{} + ps := &ListShortCodeResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -7448,7 +7448,7 @@ func (c *DefaultApiService) ListShortCode(AccountSid string, params *ListShortCo } // ListSigningKeyParams Optional parameters for the method 'ListSigningKey' type ListSigningKeyParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7456,9 +7456,9 @@ ListSigningKey Method for ListSigningKey * @param AccountSid * @param optional nil or *ListSigningKeyOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountSigningKeyReadResponse +@return ListSigningKeyResponse */ -func (c *DefaultApiService) ListSigningKey(AccountSid string, params *ListSigningKeyParams) (*ApiV2010AccountSigningKeyReadResponse, error) { +func (c *DefaultApiService) ListSigningKey(AccountSid string, params *ListSigningKeyParams) (*ListSigningKeyResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SigningKeys.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) @@ -7478,7 +7478,7 @@ func (c *DefaultApiService) ListSigningKey(AccountSid string, params *ListSignin defer resp.Body.Close() - ps := &ApiV2010AccountSigningKeyReadResponse{} + ps := &ListSigningKeyResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -7487,7 +7487,7 @@ func (c *DefaultApiService) ListSigningKey(AccountSid string, params *ListSignin } // ListSipAuthCallsCredentialListMappingParams Optional parameters for the method 'ListSipAuthCallsCredentialListMapping' type ListSipAuthCallsCredentialListMappingParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7497,9 +7497,9 @@ Retrieve a list of credential list mappings belonging to the domain used in the * @param DomainSid The SID of the SIP domain that contains the resources to read. * @param optional nil or *ListSipAuthCallsCredentialListMappingOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse +@return ListSipAuthCallsCredentialListMappingResponse */ -func (c *DefaultApiService) ListSipAuthCallsCredentialListMapping(AccountSid string, DomainSid string, params *ListSipAuthCallsCredentialListMappingParams) (*ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse, error) { +func (c *DefaultApiService) ListSipAuthCallsCredentialListMapping(AccountSid string, DomainSid string, params *ListSipAuthCallsCredentialListMappingParams) (*ListSipAuthCallsCredentialListMappingResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/CredentialListMappings.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) @@ -7520,7 +7520,7 @@ func (c *DefaultApiService) ListSipAuthCallsCredentialListMapping(AccountSid str defer resp.Body.Close() - ps := &ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse{} + ps := &ListSipAuthCallsCredentialListMappingResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -7529,7 +7529,7 @@ func (c *DefaultApiService) ListSipAuthCallsCredentialListMapping(AccountSid str } // ListSipAuthCallsIpAccessControlListMappingParams Optional parameters for the method 'ListSipAuthCallsIpAccessControlListMapping' type ListSipAuthCallsIpAccessControlListMappingParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7539,9 +7539,9 @@ Retrieve a list of IP Access Control List mappings belonging to the domain used * @param DomainSid The SID of the SIP domain that contains the resources to read. * @param optional nil or *ListSipAuthCallsIpAccessControlListMappingOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse +@return ListSipAuthCallsIpAccessControlListMappingResponse */ -func (c *DefaultApiService) ListSipAuthCallsIpAccessControlListMapping(AccountSid string, DomainSid string, params *ListSipAuthCallsIpAccessControlListMappingParams) (*ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse, error) { +func (c *DefaultApiService) ListSipAuthCallsIpAccessControlListMapping(AccountSid string, DomainSid string, params *ListSipAuthCallsIpAccessControlListMappingParams) (*ListSipAuthCallsIpAccessControlListMappingResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Calls/IpAccessControlListMappings.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) @@ -7562,7 +7562,7 @@ func (c *DefaultApiService) ListSipAuthCallsIpAccessControlListMapping(AccountSi defer resp.Body.Close() - ps := &ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse{} + ps := &ListSipAuthCallsIpAccessControlListMappingResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -7571,7 +7571,7 @@ func (c *DefaultApiService) ListSipAuthCallsIpAccessControlListMapping(AccountSi } // ListSipAuthRegistrationsCredentialListMappingParams Optional parameters for the method 'ListSipAuthRegistrationsCredentialListMapping' type ListSipAuthRegistrationsCredentialListMappingParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7581,9 +7581,9 @@ Retrieve a list of credential list mappings belonging to the domain used in the * @param DomainSid The SID of the SIP domain that contains the resources to read. * @param optional nil or *ListSipAuthRegistrationsCredentialListMappingOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse +@return ListSipAuthRegistrationsCredentialListMappingResponse */ -func (c *DefaultApiService) ListSipAuthRegistrationsCredentialListMapping(AccountSid string, DomainSid string, params *ListSipAuthRegistrationsCredentialListMappingParams) (*ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse, error) { +func (c *DefaultApiService) ListSipAuthRegistrationsCredentialListMapping(AccountSid string, DomainSid string, params *ListSipAuthRegistrationsCredentialListMappingParams) (*ListSipAuthRegistrationsCredentialListMappingResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/Auth/Registrations/CredentialListMappings.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) @@ -7604,7 +7604,7 @@ func (c *DefaultApiService) ListSipAuthRegistrationsCredentialListMapping(Accoun defer resp.Body.Close() - ps := &ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse{} + ps := &ListSipAuthRegistrationsCredentialListMappingResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -7613,7 +7613,7 @@ func (c *DefaultApiService) ListSipAuthRegistrationsCredentialListMapping(Accoun } // ListSipCredentialParams Optional parameters for the method 'ListSipCredential' type ListSipCredentialParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7623,9 +7623,9 @@ Retrieve a list of credentials. * @param CredentialListSid The unique id that identifies the credential list that contains the desired credentials. * @param optional nil or *ListSipCredentialOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountSipSipCredentialListSipCredentialReadResponse +@return ListSipCredentialResponse */ -func (c *DefaultApiService) ListSipCredential(AccountSid string, CredentialListSid string, params *ListSipCredentialParams) (*ApiV2010AccountSipSipCredentialListSipCredentialReadResponse, error) { +func (c *DefaultApiService) ListSipCredential(AccountSid string, CredentialListSid string, params *ListSipCredentialParams) (*ListSipCredentialResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) path = strings.Replace(path, "{"+"CredentialListSid"+"}", CredentialListSid, -1) @@ -7646,7 +7646,7 @@ func (c *DefaultApiService) ListSipCredential(AccountSid string, CredentialListS defer resp.Body.Close() - ps := &ApiV2010AccountSipSipCredentialListSipCredentialReadResponse{} + ps := &ListSipCredentialResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -7655,7 +7655,7 @@ func (c *DefaultApiService) ListSipCredential(AccountSid string, CredentialListS } // ListSipCredentialListParams Optional parameters for the method 'ListSipCredentialList' type ListSipCredentialListParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7664,9 +7664,9 @@ Get All Credential Lists * @param AccountSid The unique id of the Account that is responsible for this resource. * @param optional nil or *ListSipCredentialListOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountSipSipCredentialListReadResponse +@return ListSipCredentialListResponse */ -func (c *DefaultApiService) ListSipCredentialList(AccountSid string, params *ListSipCredentialListParams) (*ApiV2010AccountSipSipCredentialListReadResponse, error) { +func (c *DefaultApiService) ListSipCredentialList(AccountSid string, params *ListSipCredentialListParams) (*ListSipCredentialListResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) @@ -7686,7 +7686,7 @@ func (c *DefaultApiService) ListSipCredentialList(AccountSid string, params *Lis defer resp.Body.Close() - ps := &ApiV2010AccountSipSipCredentialListReadResponse{} + ps := &ListSipCredentialListResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -7695,7 +7695,7 @@ func (c *DefaultApiService) ListSipCredentialList(AccountSid string, params *Lis } // ListSipCredentialListMappingParams Optional parameters for the method 'ListSipCredentialListMapping' type ListSipCredentialListMappingParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7705,9 +7705,9 @@ Read multiple CredentialListMapping resources from an account. * @param DomainSid A 34 character string that uniquely identifies the SIP Domain that includes the resource to read. * @param optional nil or *ListSipCredentialListMappingOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse +@return ListSipCredentialListMappingResponse */ -func (c *DefaultApiService) ListSipCredentialListMapping(AccountSid string, DomainSid string, params *ListSipCredentialListMappingParams) (*ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse, error) { +func (c *DefaultApiService) ListSipCredentialListMapping(AccountSid string, DomainSid string, params *ListSipCredentialListMappingParams) (*ListSipCredentialListMappingResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) @@ -7728,7 +7728,7 @@ func (c *DefaultApiService) ListSipCredentialListMapping(AccountSid string, Doma defer resp.Body.Close() - ps := &ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse{} + ps := &ListSipCredentialListMappingResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -7737,7 +7737,7 @@ func (c *DefaultApiService) ListSipCredentialListMapping(AccountSid string, Doma } // ListSipDomainParams Optional parameters for the method 'ListSipDomain' type ListSipDomainParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7746,9 +7746,9 @@ Retrieve a list of domains belonging to the account used to make the request * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the SipDomain resources to read. * @param optional nil or *ListSipDomainOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountSipSipDomainReadResponse +@return ListSipDomainResponse */ -func (c *DefaultApiService) ListSipDomain(AccountSid string, params *ListSipDomainParams) (*ApiV2010AccountSipSipDomainReadResponse, error) { +func (c *DefaultApiService) ListSipDomain(AccountSid string, params *ListSipDomainParams) (*ListSipDomainResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) @@ -7768,7 +7768,7 @@ func (c *DefaultApiService) ListSipDomain(AccountSid string, params *ListSipDoma defer resp.Body.Close() - ps := &ApiV2010AccountSipSipDomainReadResponse{} + ps := &ListSipDomainResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -7777,7 +7777,7 @@ func (c *DefaultApiService) ListSipDomain(AccountSid string, params *ListSipDoma } // ListSipIpAccessControlListParams Optional parameters for the method 'ListSipIpAccessControlList' type ListSipIpAccessControlListParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7786,9 +7786,9 @@ Retrieve a list of IpAccessControlLists that belong to the account used to make * @param AccountSid The unique id of the [Account](https://www.twilio.com/docs/iam/api/account) responsible for this resource. * @param optional nil or *ListSipIpAccessControlListOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountSipSipIpAccessControlListReadResponse +@return ListSipIpAccessControlListResponse */ -func (c *DefaultApiService) ListSipIpAccessControlList(AccountSid string, params *ListSipIpAccessControlListParams) (*ApiV2010AccountSipSipIpAccessControlListReadResponse, error) { +func (c *DefaultApiService) ListSipIpAccessControlList(AccountSid string, params *ListSipIpAccessControlListParams) (*ListSipIpAccessControlListResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) @@ -7808,7 +7808,7 @@ func (c *DefaultApiService) ListSipIpAccessControlList(AccountSid string, params defer resp.Body.Close() - ps := &ApiV2010AccountSipSipIpAccessControlListReadResponse{} + ps := &ListSipIpAccessControlListResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -7817,7 +7817,7 @@ func (c *DefaultApiService) ListSipIpAccessControlList(AccountSid string, params } // ListSipIpAccessControlListMappingParams Optional parameters for the method 'ListSipIpAccessControlListMapping' type ListSipIpAccessControlListMappingParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7827,9 +7827,9 @@ Retrieve a list of IpAccessControlListMapping resources. * @param DomainSid A 34 character string that uniquely identifies the SIP domain. * @param optional nil or *ListSipIpAccessControlListMappingOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse +@return ListSipIpAccessControlListMappingResponse */ -func (c *DefaultApiService) ListSipIpAccessControlListMapping(AccountSid string, DomainSid string, params *ListSipIpAccessControlListMappingParams) (*ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse, error) { +func (c *DefaultApiService) ListSipIpAccessControlListMapping(AccountSid string, DomainSid string, params *ListSipIpAccessControlListMappingParams) (*ListSipIpAccessControlListMappingResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/IpAccessControlListMappings.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) path = strings.Replace(path, "{"+"DomainSid"+"}", DomainSid, -1) @@ -7850,7 +7850,7 @@ func (c *DefaultApiService) ListSipIpAccessControlListMapping(AccountSid string, defer resp.Body.Close() - ps := &ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse{} + ps := &ListSipIpAccessControlListMappingResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -7859,7 +7859,7 @@ func (c *DefaultApiService) ListSipIpAccessControlListMapping(AccountSid string, } // ListSipIpAddressParams Optional parameters for the method 'ListSipIpAddress' type ListSipIpAddressParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7869,9 +7869,9 @@ Read multiple IpAddress resources. * @param IpAccessControlListSid The IpAccessControlList Sid that identifies the IpAddress resources to read. * @param optional nil or *ListSipIpAddressOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse +@return ListSipIpAddressResponse */ -func (c *DefaultApiService) ListSipIpAddress(AccountSid string, IpAccessControlListSid string, params *ListSipIpAddressParams) (*ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse, error) { +func (c *DefaultApiService) ListSipIpAddress(AccountSid string, IpAccessControlListSid string, params *ListSipIpAddressParams) (*ListSipIpAddressResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/SIP/IpAccessControlLists/{IpAccessControlListSid}/IpAddresses.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) path = strings.Replace(path, "{"+"IpAccessControlListSid"+"}", IpAccessControlListSid, -1) @@ -7892,7 +7892,7 @@ func (c *DefaultApiService) ListSipIpAddress(AccountSid string, IpAccessControlL defer resp.Body.Close() - ps := &ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse{} + ps := &ListSipIpAddressResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -7901,7 +7901,7 @@ func (c *DefaultApiService) ListSipIpAddress(AccountSid string, IpAccessControlL } // ListTranscriptionParams Optional parameters for the method 'ListTranscription' type ListTranscriptionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7910,9 +7910,9 @@ Retrieve a list of transcriptions belonging to the account used to make the requ * @param AccountSid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Transcription resources to read. * @param optional nil or *ListTranscriptionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountTranscriptionReadResponse +@return ListTranscriptionResponse */ -func (c *DefaultApiService) ListTranscription(AccountSid string, params *ListTranscriptionParams) (*ApiV2010AccountTranscriptionReadResponse, error) { +func (c *DefaultApiService) ListTranscription(AccountSid string, params *ListTranscriptionParams) (*ListTranscriptionResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Transcriptions.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) @@ -7932,7 +7932,7 @@ func (c *DefaultApiService) ListTranscription(AccountSid string, params *ListTra defer resp.Body.Close() - ps := &ApiV2010AccountTranscriptionReadResponse{} + ps := &ListTranscriptionResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -7941,11 +7941,11 @@ func (c *DefaultApiService) ListTranscription(AccountSid string, params *ListTra } // ListUsageRecordParams Optional parameters for the method 'ListUsageRecord' type ListUsageRecordParams struct { - Category *string `json:"Category,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - EndDate *time.Time `json:"EndDate,omitempty"` - IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Category *string `json:"Category,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -7958,9 +7958,9 @@ Retrieve a list of usage-records belonging to the account used to make the reque * @param "EndDate" (time.Time) - 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. * @param "IncludeSubaccounts" (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. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountUsageUsageRecordReadResponse +@return ListUsageRecordResponse */ -func (c *DefaultApiService) ListUsageRecord(AccountSid string, params *ListUsageRecordParams) (*ApiV2010AccountUsageUsageRecordReadResponse, error) { +func (c *DefaultApiService) ListUsageRecord(AccountSid string, params *ListUsageRecordParams) (*ListUsageRecordResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) @@ -7992,7 +7992,7 @@ func (c *DefaultApiService) ListUsageRecord(AccountSid string, params *ListUsage defer resp.Body.Close() - ps := &ApiV2010AccountUsageUsageRecordReadResponse{} + ps := &ListUsageRecordResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -8001,11 +8001,11 @@ func (c *DefaultApiService) ListUsageRecord(AccountSid string, params *ListUsage } // ListUsageRecordAllTimeParams Optional parameters for the method 'ListUsageRecordAllTime' type ListUsageRecordAllTimeParams struct { - Category *string `json:"Category,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - EndDate *time.Time `json:"EndDate,omitempty"` - IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Category *string `json:"Category,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -8017,9 +8017,9 @@ ListUsageRecordAllTime Method for ListUsageRecordAllTime * @param "EndDate" (time.Time) - 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. * @param "IncludeSubaccounts" (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. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse +@return ListUsageRecordAllTimeResponse */ -func (c *DefaultApiService) ListUsageRecordAllTime(AccountSid string, params *ListUsageRecordAllTimeParams) (*ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse, error) { +func (c *DefaultApiService) ListUsageRecordAllTime(AccountSid string, params *ListUsageRecordAllTimeParams) (*ListUsageRecordAllTimeResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/AllTime.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) @@ -8051,7 +8051,7 @@ func (c *DefaultApiService) ListUsageRecordAllTime(AccountSid string, params *Li defer resp.Body.Close() - ps := &ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse{} + ps := &ListUsageRecordAllTimeResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -8060,11 +8060,11 @@ func (c *DefaultApiService) ListUsageRecordAllTime(AccountSid string, params *Li } // ListUsageRecordDailyParams Optional parameters for the method 'ListUsageRecordDaily' type ListUsageRecordDailyParams struct { - Category *string `json:"Category,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - EndDate *time.Time `json:"EndDate,omitempty"` - IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Category *string `json:"Category,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -8076,9 +8076,9 @@ ListUsageRecordDaily Method for ListUsageRecordDaily * @param "EndDate" (time.Time) - 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. * @param "IncludeSubaccounts" (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. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse +@return ListUsageRecordDailyResponse */ -func (c *DefaultApiService) ListUsageRecordDaily(AccountSid string, params *ListUsageRecordDailyParams) (*ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse, error) { +func (c *DefaultApiService) ListUsageRecordDaily(AccountSid string, params *ListUsageRecordDailyParams) (*ListUsageRecordDailyResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/Daily.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) @@ -8110,7 +8110,7 @@ func (c *DefaultApiService) ListUsageRecordDaily(AccountSid string, params *List defer resp.Body.Close() - ps := &ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse{} + ps := &ListUsageRecordDailyResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -8119,11 +8119,11 @@ func (c *DefaultApiService) ListUsageRecordDaily(AccountSid string, params *List } // ListUsageRecordLastMonthParams Optional parameters for the method 'ListUsageRecordLastMonth' type ListUsageRecordLastMonthParams struct { - Category *string `json:"Category,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - EndDate *time.Time `json:"EndDate,omitempty"` - IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Category *string `json:"Category,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -8135,9 +8135,9 @@ ListUsageRecordLastMonth Method for ListUsageRecordLastMonth * @param "EndDate" (time.Time) - 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. * @param "IncludeSubaccounts" (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. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse +@return ListUsageRecordLastMonthResponse */ -func (c *DefaultApiService) ListUsageRecordLastMonth(AccountSid string, params *ListUsageRecordLastMonthParams) (*ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse, error) { +func (c *DefaultApiService) ListUsageRecordLastMonth(AccountSid string, params *ListUsageRecordLastMonthParams) (*ListUsageRecordLastMonthResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/LastMonth.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) @@ -8169,7 +8169,7 @@ func (c *DefaultApiService) ListUsageRecordLastMonth(AccountSid string, params * defer resp.Body.Close() - ps := &ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse{} + ps := &ListUsageRecordLastMonthResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -8178,11 +8178,11 @@ func (c *DefaultApiService) ListUsageRecordLastMonth(AccountSid string, params * } // ListUsageRecordMonthlyParams Optional parameters for the method 'ListUsageRecordMonthly' type ListUsageRecordMonthlyParams struct { - Category *string `json:"Category,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - EndDate *time.Time `json:"EndDate,omitempty"` - IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Category *string `json:"Category,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -8194,9 +8194,9 @@ ListUsageRecordMonthly Method for ListUsageRecordMonthly * @param "EndDate" (time.Time) - 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. * @param "IncludeSubaccounts" (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. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse +@return ListUsageRecordMonthlyResponse */ -func (c *DefaultApiService) ListUsageRecordMonthly(AccountSid string, params *ListUsageRecordMonthlyParams) (*ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse, error) { +func (c *DefaultApiService) ListUsageRecordMonthly(AccountSid string, params *ListUsageRecordMonthlyParams) (*ListUsageRecordMonthlyResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/Monthly.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) @@ -8228,7 +8228,7 @@ func (c *DefaultApiService) ListUsageRecordMonthly(AccountSid string, params *Li defer resp.Body.Close() - ps := &ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse{} + ps := &ListUsageRecordMonthlyResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -8237,11 +8237,11 @@ func (c *DefaultApiService) ListUsageRecordMonthly(AccountSid string, params *Li } // ListUsageRecordThisMonthParams Optional parameters for the method 'ListUsageRecordThisMonth' type ListUsageRecordThisMonthParams struct { - Category *string `json:"Category,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - EndDate *time.Time `json:"EndDate,omitempty"` - IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Category *string `json:"Category,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -8253,9 +8253,9 @@ ListUsageRecordThisMonth Method for ListUsageRecordThisMonth * @param "EndDate" (time.Time) - 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. * @param "IncludeSubaccounts" (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. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse +@return ListUsageRecordThisMonthResponse */ -func (c *DefaultApiService) ListUsageRecordThisMonth(AccountSid string, params *ListUsageRecordThisMonthParams) (*ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse, error) { +func (c *DefaultApiService) ListUsageRecordThisMonth(AccountSid string, params *ListUsageRecordThisMonthParams) (*ListUsageRecordThisMonthResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/ThisMonth.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) @@ -8287,7 +8287,7 @@ func (c *DefaultApiService) ListUsageRecordThisMonth(AccountSid string, params * defer resp.Body.Close() - ps := &ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse{} + ps := &ListUsageRecordThisMonthResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -8296,11 +8296,11 @@ func (c *DefaultApiService) ListUsageRecordThisMonth(AccountSid string, params * } // ListUsageRecordTodayParams Optional parameters for the method 'ListUsageRecordToday' type ListUsageRecordTodayParams struct { - Category *string `json:"Category,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - EndDate *time.Time `json:"EndDate,omitempty"` - IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Category *string `json:"Category,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -8312,9 +8312,9 @@ ListUsageRecordToday Method for ListUsageRecordToday * @param "EndDate" (time.Time) - 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. * @param "IncludeSubaccounts" (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. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse +@return ListUsageRecordTodayResponse */ -func (c *DefaultApiService) ListUsageRecordToday(AccountSid string, params *ListUsageRecordTodayParams) (*ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse, error) { +func (c *DefaultApiService) ListUsageRecordToday(AccountSid string, params *ListUsageRecordTodayParams) (*ListUsageRecordTodayResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/Today.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) @@ -8346,7 +8346,7 @@ func (c *DefaultApiService) ListUsageRecordToday(AccountSid string, params *List defer resp.Body.Close() - ps := &ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse{} + ps := &ListUsageRecordTodayResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -8355,11 +8355,11 @@ func (c *DefaultApiService) ListUsageRecordToday(AccountSid string, params *List } // ListUsageRecordYearlyParams Optional parameters for the method 'ListUsageRecordYearly' type ListUsageRecordYearlyParams struct { - Category *string `json:"Category,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - EndDate *time.Time `json:"EndDate,omitempty"` - IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Category *string `json:"Category,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -8371,9 +8371,9 @@ ListUsageRecordYearly Method for ListUsageRecordYearly * @param "EndDate" (time.Time) - 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. * @param "IncludeSubaccounts" (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. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse +@return ListUsageRecordYearlyResponse */ -func (c *DefaultApiService) ListUsageRecordYearly(AccountSid string, params *ListUsageRecordYearlyParams) (*ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse, error) { +func (c *DefaultApiService) ListUsageRecordYearly(AccountSid string, params *ListUsageRecordYearlyParams) (*ListUsageRecordYearlyResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/Yearly.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) @@ -8405,7 +8405,7 @@ func (c *DefaultApiService) ListUsageRecordYearly(AccountSid string, params *Lis defer resp.Body.Close() - ps := &ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse{} + ps := &ListUsageRecordYearlyResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -8414,11 +8414,11 @@ func (c *DefaultApiService) ListUsageRecordYearly(AccountSid string, params *Lis } // ListUsageRecordYesterdayParams Optional parameters for the method 'ListUsageRecordYesterday' type ListUsageRecordYesterdayParams struct { - Category *string `json:"Category,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - EndDate *time.Time `json:"EndDate,omitempty"` - IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Category *string `json:"Category,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + IncludeSubaccounts *bool `json:"IncludeSubaccounts,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -8430,9 +8430,9 @@ ListUsageRecordYesterday Method for ListUsageRecordYesterday * @param "EndDate" (time.Time) - 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. * @param "IncludeSubaccounts" (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. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse +@return ListUsageRecordYesterdayResponse */ -func (c *DefaultApiService) ListUsageRecordYesterday(AccountSid string, params *ListUsageRecordYesterdayParams) (*ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse, error) { +func (c *DefaultApiService) ListUsageRecordYesterday(AccountSid string, params *ListUsageRecordYesterdayParams) (*ListUsageRecordYesterdayResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Records/Yesterday.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) @@ -8464,7 +8464,7 @@ func (c *DefaultApiService) ListUsageRecordYesterday(AccountSid string, params * defer resp.Body.Close() - ps := &ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse{} + ps := &ListUsageRecordYesterdayResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -8473,10 +8473,10 @@ func (c *DefaultApiService) ListUsageRecordYesterday(AccountSid string, params * } // ListUsageTriggerParams Optional parameters for the method 'ListUsageTrigger' type ListUsageTriggerParams struct { - Recurring *string `json:"Recurring,omitempty"` - TriggerBy *string `json:"TriggerBy,omitempty"` - UsageCategory *string `json:"UsageCategory,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Recurring *string `json:"Recurring,omitempty"` + TriggerBy *string `json:"TriggerBy,omitempty"` + UsageCategory *string `json:"UsageCategory,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -8488,9 +8488,9 @@ Retrieve a list of usage-triggers belonging to the account used to make the requ * @param "TriggerBy" (string) - 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). * @param "UsageCategory" (string) - 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). * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ApiV2010AccountUsageUsageTriggerReadResponse +@return ListUsageTriggerResponse */ -func (c *DefaultApiService) ListUsageTrigger(AccountSid string, params *ListUsageTriggerParams) (*ApiV2010AccountUsageUsageTriggerReadResponse, error) { +func (c *DefaultApiService) ListUsageTrigger(AccountSid string, params *ListUsageTriggerParams) (*ListUsageTriggerResponse, error) { path := "/2010-04-01/Accounts/{AccountSid}/Usage/Triggers.json" path = strings.Replace(path, "{"+"AccountSid"+"}", AccountSid, -1) @@ -8519,7 +8519,7 @@ func (c *DefaultApiService) ListUsageTrigger(AccountSid string, params *ListUsag defer resp.Body.Close() - ps := &ApiV2010AccountUsageUsageTriggerReadResponse{} + ps := &ListUsageTriggerResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -8528,8 +8528,8 @@ func (c *DefaultApiService) ListUsageTrigger(AccountSid string, params *ListUsag } // UpdateAccountParams Optional parameters for the method 'UpdateAccount' type UpdateAccountParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - Status *string `json:"Status,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Status *string `json:"Status,omitempty"` } /* @@ -8573,14 +8573,14 @@ func (c *DefaultApiService) UpdateAccount(Sid string, params *UpdateAccountParam } // UpdateAddressParams Optional parameters for the method 'UpdateAddress' type UpdateAddressParams struct { - AutoCorrectAddress *bool `json:"AutoCorrectAddress,omitempty"` - City *string `json:"City,omitempty"` - CustomerName *string `json:"CustomerName,omitempty"` - EmergencyEnabled *bool `json:"EmergencyEnabled,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PostalCode *string `json:"PostalCode,omitempty"` - Region *string `json:"Region,omitempty"` - Street *string `json:"Street,omitempty"` + AutoCorrectAddress *bool `json:"AutoCorrectAddress,omitempty"` + City *string `json:"City,omitempty"` + CustomerName *string `json:"CustomerName,omitempty"` + EmergencyEnabled *bool `json:"EmergencyEnabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PostalCode *string `json:"PostalCode,omitempty"` + Region *string `json:"Region,omitempty"` + Street *string `json:"Street,omitempty"` } /* @@ -8649,21 +8649,21 @@ func (c *DefaultApiService) UpdateAddress(AccountSid string, Sid string, params } // UpdateApplicationParams Optional parameters for the method 'UpdateApplication' type UpdateApplicationParams struct { - ApiVersion *string `json:"ApiVersion,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - MessageStatusCallback *string `json:"MessageStatusCallback,omitempty"` - SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` - SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` - SmsMethod *string `json:"SmsMethod,omitempty"` - SmsStatusCallback *string `json:"SmsStatusCallback,omitempty"` - SmsUrl *string `json:"SmsUrl,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - VoiceCallerIdLookup *bool `json:"VoiceCallerIdLookup,omitempty"` - VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` - VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` - VoiceMethod *string `json:"VoiceMethod,omitempty"` - VoiceUrl *string `json:"VoiceUrl,omitempty"` + ApiVersion *string `json:"ApiVersion,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + MessageStatusCallback *string `json:"MessageStatusCallback,omitempty"` + SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` + SmsMethod *string `json:"SmsMethod,omitempty"` + SmsStatusCallback *string `json:"SmsStatusCallback,omitempty"` + SmsUrl *string `json:"SmsUrl,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + VoiceCallerIdLookup *bool `json:"VoiceCallerIdLookup,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` } /* @@ -8761,14 +8761,14 @@ func (c *DefaultApiService) UpdateApplication(AccountSid string, Sid string, par } // UpdateCallParams Optional parameters for the method 'UpdateCall' type UpdateCallParams struct { - FallbackMethod *string `json:"FallbackMethod,omitempty"` - FallbackUrl *string `json:"FallbackUrl,omitempty"` - Method *string `json:"Method,omitempty"` - Status *string `json:"Status,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - Twiml *string `json:"Twiml,omitempty"` - Url *string `json:"Url,omitempty"` + FallbackMethod *string `json:"FallbackMethod,omitempty"` + FallbackUrl *string `json:"FallbackUrl,omitempty"` + Method *string `json:"Method,omitempty"` + Status *string `json:"Status,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + Twiml *string `json:"Twiml,omitempty"` + Url *string `json:"Url,omitempty"` } /* @@ -8838,8 +8838,8 @@ func (c *DefaultApiService) UpdateCall(AccountSid string, Sid string, params *Up } // UpdateCallFeedbackParams Optional parameters for the method 'UpdateCallFeedback' type UpdateCallFeedbackParams struct { - Issue *[]string `json:"Issue,omitempty"` - QualityScore *int32 `json:"QualityScore,omitempty"` + Issue *[]string `json:"Issue,omitempty"` + QualityScore *int32 `json:"QualityScore,omitempty"` } /* @@ -8885,8 +8885,8 @@ func (c *DefaultApiService) UpdateCallFeedback(AccountSid string, CallSid string } // UpdateCallRecordingParams Optional parameters for the method 'UpdateCallRecording' type UpdateCallRecordingParams struct { - PauseBehavior *string `json:"PauseBehavior,omitempty"` - Status *string `json:"Status,omitempty"` + PauseBehavior *string `json:"PauseBehavior,omitempty"` + Status *string `json:"Status,omitempty"` } /* @@ -8934,9 +8934,9 @@ func (c *DefaultApiService) UpdateCallRecording(AccountSid string, CallSid strin } // UpdateConferenceParams Optional parameters for the method 'UpdateConference' type UpdateConferenceParams struct { - AnnounceMethod *string `json:"AnnounceMethod,omitempty"` - AnnounceUrl *string `json:"AnnounceUrl,omitempty"` - Status *string `json:"Status,omitempty"` + AnnounceMethod *string `json:"AnnounceMethod,omitempty"` + AnnounceUrl *string `json:"AnnounceUrl,omitempty"` + Status *string `json:"Status,omitempty"` } /* @@ -8985,8 +8985,8 @@ func (c *DefaultApiService) UpdateConference(AccountSid string, Sid string, para } // UpdateConferenceRecordingParams Optional parameters for the method 'UpdateConferenceRecording' type UpdateConferenceRecordingParams struct { - PauseBehavior *string `json:"PauseBehavior,omitempty"` - Status *string `json:"Status,omitempty"` + PauseBehavior *string `json:"PauseBehavior,omitempty"` + Status *string `json:"Status,omitempty"` } /* @@ -9034,14 +9034,14 @@ func (c *DefaultApiService) UpdateConferenceRecording(AccountSid string, Confere } // UpdateConnectAppParams Optional parameters for the method 'UpdateConnectApp' type UpdateConnectAppParams struct { - AuthorizeRedirectUrl *string `json:"AuthorizeRedirectUrl,omitempty"` - CompanyName *string `json:"CompanyName,omitempty"` - DeauthorizeCallbackMethod *string `json:"DeauthorizeCallbackMethod,omitempty"` - DeauthorizeCallbackUrl *string `json:"DeauthorizeCallbackUrl,omitempty"` - Description *string `json:"Description,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - HomepageUrl *string `json:"HomepageUrl,omitempty"` - Permissions *[]string `json:"Permissions,omitempty"` + AuthorizeRedirectUrl *string `json:"AuthorizeRedirectUrl,omitempty"` + CompanyName *string `json:"CompanyName,omitempty"` + DeauthorizeCallbackMethod *string `json:"DeauthorizeCallbackMethod,omitempty"` + DeauthorizeCallbackUrl *string `json:"DeauthorizeCallbackUrl,omitempty"` + Description *string `json:"Description,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + HomepageUrl *string `json:"HomepageUrl,omitempty"` + Permissions *[]string `json:"Permissions,omitempty"` } /* @@ -9111,29 +9111,29 @@ func (c *DefaultApiService) UpdateConnectApp(AccountSid string, Sid string, para } // UpdateIncomingPhoneNumberParams Optional parameters for the method 'UpdateIncomingPhoneNumber' type UpdateIncomingPhoneNumberParams struct { - AccountSid *string `json:"AccountSid,omitempty"` - AddressSid *string `json:"AddressSid,omitempty"` - ApiVersion *string `json:"ApiVersion,omitempty"` - BundleSid *string `json:"BundleSid,omitempty"` - EmergencyAddressSid *string `json:"EmergencyAddressSid,omitempty"` - EmergencyStatus *string `json:"EmergencyStatus,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - IdentitySid *string `json:"IdentitySid,omitempty"` - SmsApplicationSid *string `json:"SmsApplicationSid,omitempty"` - SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` - SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` - SmsMethod *string `json:"SmsMethod,omitempty"` - SmsUrl *string `json:"SmsUrl,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - TrunkSid *string `json:"TrunkSid,omitempty"` - VoiceApplicationSid *string `json:"VoiceApplicationSid,omitempty"` - VoiceCallerIdLookup *bool `json:"VoiceCallerIdLookup,omitempty"` - VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` - VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` - VoiceMethod *string `json:"VoiceMethod,omitempty"` - VoiceReceiveMode *string `json:"VoiceReceiveMode,omitempty"` - VoiceUrl *string `json:"VoiceUrl,omitempty"` + AccountSid *string `json:"AccountSid,omitempty"` + AddressSid *string `json:"AddressSid,omitempty"` + ApiVersion *string `json:"ApiVersion,omitempty"` + BundleSid *string `json:"BundleSid,omitempty"` + EmergencyAddressSid *string `json:"EmergencyAddressSid,omitempty"` + EmergencyStatus *string `json:"EmergencyStatus,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IdentitySid *string `json:"IdentitySid,omitempty"` + SmsApplicationSid *string `json:"SmsApplicationSid,omitempty"` + SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` + SmsMethod *string `json:"SmsMethod,omitempty"` + SmsUrl *string `json:"SmsUrl,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + TrunkSid *string `json:"TrunkSid,omitempty"` + VoiceApplicationSid *string `json:"VoiceApplicationSid,omitempty"` + VoiceCallerIdLookup *bool `json:"VoiceCallerIdLookup,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceReceiveMode *string `json:"VoiceReceiveMode,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` } /* @@ -9263,7 +9263,7 @@ func (c *DefaultApiService) UpdateIncomingPhoneNumber(AccountSid string, Sid str } // UpdateKeyParams Optional parameters for the method 'UpdateKey' type UpdateKeyParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -9304,8 +9304,8 @@ func (c *DefaultApiService) UpdateKey(AccountSid string, Sid string, params *Upd } // UpdateMemberParams Optional parameters for the method 'UpdateMember' type UpdateMemberParams struct { - Method *string `json:"Method,omitempty"` - Url *string `json:"Url,omitempty"` + Method *string `json:"Method,omitempty"` + Url *string `json:"Url,omitempty"` } /* @@ -9353,7 +9353,7 @@ func (c *DefaultApiService) UpdateMember(AccountSid string, QueueSid string, Cal } // UpdateMessageParams Optional parameters for the method 'UpdateMessage' type UpdateMessageParams struct { - Body *string `json:"Body,omitempty"` + Body *string `json:"Body,omitempty"` } /* @@ -9395,7 +9395,7 @@ func (c *DefaultApiService) UpdateMessage(AccountSid string, Sid string, params } // UpdateOutgoingCallerIdParams Optional parameters for the method 'UpdateOutgoingCallerId' type UpdateOutgoingCallerIdParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -9437,18 +9437,18 @@ func (c *DefaultApiService) UpdateOutgoingCallerId(AccountSid string, Sid string } // UpdateParticipantParams Optional parameters for the method 'UpdateParticipant' type UpdateParticipantParams struct { - AnnounceMethod *string `json:"AnnounceMethod,omitempty"` - AnnounceUrl *string `json:"AnnounceUrl,omitempty"` - BeepOnExit *bool `json:"BeepOnExit,omitempty"` - CallSidToCoach *string `json:"CallSidToCoach,omitempty"` - Coaching *bool `json:"Coaching,omitempty"` - EndConferenceOnExit *bool `json:"EndConferenceOnExit,omitempty"` - Hold *bool `json:"Hold,omitempty"` - HoldMethod *string `json:"HoldMethod,omitempty"` - HoldUrl *string `json:"HoldUrl,omitempty"` - Muted *bool `json:"Muted,omitempty"` - WaitMethod *string `json:"WaitMethod,omitempty"` - WaitUrl *string `json:"WaitUrl,omitempty"` + AnnounceMethod *string `json:"AnnounceMethod,omitempty"` + AnnounceUrl *string `json:"AnnounceUrl,omitempty"` + BeepOnExit *bool `json:"BeepOnExit,omitempty"` + CallSidToCoach *string `json:"CallSidToCoach,omitempty"` + Coaching *bool `json:"Coaching,omitempty"` + EndConferenceOnExit *bool `json:"EndConferenceOnExit,omitempty"` + Hold *bool `json:"Hold,omitempty"` + HoldMethod *string `json:"HoldMethod,omitempty"` + HoldUrl *string `json:"HoldUrl,omitempty"` + Muted *bool `json:"Muted,omitempty"` + WaitMethod *string `json:"WaitMethod,omitempty"` + WaitUrl *string `json:"WaitUrl,omitempty"` } /* @@ -9536,10 +9536,10 @@ func (c *DefaultApiService) UpdateParticipant(AccountSid string, ConferenceSid s } // UpdatePaymentsParams Optional parameters for the method 'UpdatePayments' type UpdatePaymentsParams struct { - Capture *string `json:"Capture,omitempty"` - IdempotencyKey *string `json:"IdempotencyKey,omitempty"` - Status *string `json:"Status,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` + Capture *string `json:"Capture,omitempty"` + IdempotencyKey *string `json:"IdempotencyKey,omitempty"` + Status *string `json:"Status,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` } /* @@ -9595,8 +9595,8 @@ func (c *DefaultApiService) UpdatePayments(AccountSid string, CallSid string, Si } // UpdateQueueParams Optional parameters for the method 'UpdateQueue' type UpdateQueueParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - MaxSize *int32 `json:"MaxSize,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + MaxSize *int32 `json:"MaxSize,omitempty"` } /* @@ -9642,12 +9642,12 @@ func (c *DefaultApiService) UpdateQueue(AccountSid string, Sid string, params *U } // UpdateShortCodeParams Optional parameters for the method 'UpdateShortCode' type UpdateShortCodeParams struct { - ApiVersion *string `json:"ApiVersion,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` - SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` - SmsMethod *string `json:"SmsMethod,omitempty"` - SmsUrl *string `json:"SmsUrl,omitempty"` + ApiVersion *string `json:"ApiVersion,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` + SmsMethod *string `json:"SmsMethod,omitempty"` + SmsUrl *string `json:"SmsUrl,omitempty"` } /* @@ -9709,7 +9709,7 @@ func (c *DefaultApiService) UpdateShortCode(AccountSid string, Sid string, param } // UpdateSigningKeyParams Optional parameters for the method 'UpdateSigningKey' type UpdateSigningKeyParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -9750,7 +9750,7 @@ func (c *DefaultApiService) UpdateSigningKey(AccountSid string, Sid string, para } // UpdateSipCredentialParams Optional parameters for the method 'UpdateSipCredential' type UpdateSipCredentialParams struct { - Password *string `json:"Password,omitempty"` + Password *string `json:"Password,omitempty"` } /* @@ -9794,7 +9794,7 @@ func (c *DefaultApiService) UpdateSipCredential(AccountSid string, CredentialLis } // UpdateSipCredentialListParams Optional parameters for the method 'UpdateSipCredentialList' type UpdateSipCredentialListParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -9836,19 +9836,19 @@ func (c *DefaultApiService) UpdateSipCredentialList(AccountSid string, Sid strin } // UpdateSipDomainParams Optional parameters for the method 'UpdateSipDomain' type UpdateSipDomainParams struct { - ByocTrunkSid *string `json:"ByocTrunkSid,omitempty"` - DomainName *string `json:"DomainName,omitempty"` - EmergencyCallerSid *string `json:"EmergencyCallerSid,omitempty"` - EmergencyCallingEnabled *bool `json:"EmergencyCallingEnabled,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Secure *bool `json:"Secure,omitempty"` - SipRegistration *bool `json:"SipRegistration,omitempty"` - VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` - VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` - VoiceMethod *string `json:"VoiceMethod,omitempty"` - VoiceStatusCallbackMethod *string `json:"VoiceStatusCallbackMethod,omitempty"` - VoiceStatusCallbackUrl *string `json:"VoiceStatusCallbackUrl,omitempty"` - VoiceUrl *string `json:"VoiceUrl,omitempty"` + ByocTrunkSid *string `json:"ByocTrunkSid,omitempty"` + DomainName *string `json:"DomainName,omitempty"` + EmergencyCallerSid *string `json:"EmergencyCallerSid,omitempty"` + EmergencyCallingEnabled *bool `json:"EmergencyCallingEnabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Secure *bool `json:"Secure,omitempty"` + SipRegistration *bool `json:"SipRegistration,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceStatusCallbackMethod *string `json:"VoiceStatusCallbackMethod,omitempty"` + VoiceStatusCallbackUrl *string `json:"VoiceStatusCallbackUrl,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` } /* @@ -9858,7 +9858,7 @@ Update the attributes of a domain * @param Sid The Twilio-provided string that uniquely identifies the SipDomain resource to update. * @param optional nil or *UpdateSipDomainOpts - Optional Parameters: * @param "ByocTrunkSid" (string) - The SID of the BYOC Trunk(Bring Your Own Carrier) resource that the Sip Domain will be associated with. - * @param "DomainName" (string) - The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and \\\"-\\\". + * @param "DomainName" (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`. * @param "EmergencyCallerSid" (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. * @param "EmergencyCallingEnabled" (bool) - Whether emergency calling is enabled for the domain. If enabled, allows emergency calls on the domain from phone numbers with validated addresses. * @param "FriendlyName" (string) - A descriptive string that you created to describe the resource. It can be up to 64 characters long. @@ -9938,7 +9938,7 @@ func (c *DefaultApiService) UpdateSipDomain(AccountSid string, Sid string, param } // UpdateSipIpAccessControlListParams Optional parameters for the method 'UpdateSipIpAccessControlList' type UpdateSipIpAccessControlListParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -9980,9 +9980,9 @@ func (c *DefaultApiService) UpdateSipIpAccessControlList(AccountSid string, Sid } // UpdateSipIpAddressParams Optional parameters for the method 'UpdateSipIpAddress' type UpdateSipIpAddressParams struct { - CidrPrefixLength *int32 `json:"CidrPrefixLength,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - IpAddress *string `json:"IpAddress,omitempty"` + CidrPrefixLength *int32 `json:"CidrPrefixLength,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IpAddress *string `json:"IpAddress,omitempty"` } /* @@ -10034,9 +10034,9 @@ func (c *DefaultApiService) UpdateSipIpAddress(AccountSid string, IpAccessContro } // UpdateUsageTriggerParams Optional parameters for the method 'UpdateUsageTrigger' type UpdateUsageTriggerParams struct { - CallbackMethod *string `json:"CallbackMethod,omitempty"` - CallbackUrl *string `json:"CallbackUrl,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` + CallbackMethod *string `json:"CallbackMethod,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* diff --git a/rest/api/v2010/docs/CreateSipDomainRequest.md b/rest/api/v2010/docs/CreateSipDomainRequest.md index 5a244c83d..94c03c88e 100644 --- a/rest/api/v2010/docs/CreateSipDomainRequest.md +++ b/rest/api/v2010/docs/CreateSipDomainRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ByocTrunkSid** | **string** | The SID of the BYOC Trunk(Bring Your Own Carrier) resource that the Sip Domain will be associated with. | [optional] -**DomainName** | **string** | The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and \"-\". | +**DomainName** | **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`. | **EmergencyCallerSid** | **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] **EmergencyCallingEnabled** | **bool** | Whether emergency calling is enabled for the domain. If enabled, allows emergency calls on the domain from phone numbers with validated addresses. | [optional] **FriendlyName** | **string** | A descriptive string that you created to describe the resource. It can be up to 64 characters long. | [optional] diff --git a/rest/api/v2010/docs/DefaultApi.md b/rest/api/v2010/docs/DefaultApi.md index aadc2a645..15e93106e 100644 --- a/rest/api/v2010/docs/DefaultApi.md +++ b/rest/api/v2010/docs/DefaultApi.md @@ -230,7 +230,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -281,7 +281,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -340,7 +340,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -417,7 +417,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -466,7 +466,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -518,7 +518,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -586,7 +586,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -633,7 +633,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -698,7 +698,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -763,7 +763,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -828,7 +828,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -888,7 +888,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -933,7 +933,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -976,7 +976,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -1021,7 +1021,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -1103,7 +1103,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -1165,7 +1165,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -1211,7 +1211,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -1258,7 +1258,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -1305,7 +1305,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -1352,7 +1352,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -1400,7 +1400,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -1445,7 +1445,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -1492,7 +1492,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -1530,7 +1530,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ByocTrunkSid** | **optional.String**| The SID of the BYOC Trunk(Bring Your Own Carrier) resource that the Sip Domain will be associated with. | - **DomainName** | **optional.String**| The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and \\\"-\\\". | + **DomainName** | **optional.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`. | **EmergencyCallerSid** | **optional.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. | **EmergencyCallingEnabled** | **optional.Bool**| Whether emergency calling is enabled for the domain. If enabled, allows emergency calls on the domain from phone numbers with validated addresses. | **FriendlyName** | **optional.String**| A descriptive string that you created to describe the resource. It can be up to 64 characters long. | @@ -1549,7 +1549,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -1594,7 +1594,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -1641,7 +1641,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -1690,7 +1690,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -1735,7 +1735,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -1786,7 +1786,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -1834,7 +1834,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -1867,7 +1867,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -1902,7 +1902,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -1937,7 +1937,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -1972,7 +1972,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -2008,7 +2008,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -2044,7 +2044,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -2079,7 +2079,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -2114,7 +2114,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -2150,7 +2150,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -2183,7 +2183,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -2219,7 +2219,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -2254,7 +2254,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -2289,7 +2289,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -2325,7 +2325,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -2360,7 +2360,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -2395,7 +2395,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -2431,7 +2431,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -2468,7 +2468,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -2502,7 +2502,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -2535,7 +2535,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -2571,7 +2571,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -2607,7 +2607,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -2643,7 +2643,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -2679,7 +2679,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -2714,7 +2714,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -2750,7 +2750,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -2785,7 +2785,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -2820,7 +2820,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -2856,7 +2856,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -2892,7 +2892,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -2927,7 +2927,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -2960,7 +2960,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -2994,7 +2994,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -3027,7 +3027,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -3062,7 +3062,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -3097,7 +3097,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -3130,7 +3130,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -3164,7 +3164,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -3199,7 +3199,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -3234,7 +3234,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -3269,7 +3269,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -3303,7 +3303,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -3339,7 +3339,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -3374,7 +3374,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -3410,7 +3410,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -3445,7 +3445,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -3480,7 +3480,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -3516,7 +3516,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -3553,7 +3553,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -3586,7 +3586,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -3622,7 +3622,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -3658,7 +3658,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -3693,7 +3693,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -3728,7 +3728,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -3763,7 +3763,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -3799,7 +3799,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -3834,7 +3834,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -3869,7 +3869,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -3905,7 +3905,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -3942,7 +3942,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -3976,7 +3976,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -4011,7 +4011,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -4044,7 +4044,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -4080,7 +4080,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -4116,7 +4116,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -4152,7 +4152,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -4188,7 +4188,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -4223,7 +4223,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -4259,7 +4259,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -4294,7 +4294,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -4329,7 +4329,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -4365,7 +4365,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -4401,7 +4401,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -4436,7 +4436,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -4471,7 +4471,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -4485,7 +4485,7 @@ Name | Type | Description | Notes ## ListAccount -> ApiV2010AccountReadResponse ListAccount(ctx, optional) +> ListAccountResponse ListAccount(ctx, optional) @@ -4512,11 +4512,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountReadResponse**](api_v2010_accountReadResponse.md) +[**ListAccountResponse**](ListAccountResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -4530,7 +4530,7 @@ Name | Type | Description | Notes ## ListAddress -> ApiV2010AccountAddressReadResponse ListAddress(ctx, AccountSid, optional) +> ListAddressResponse ListAddress(ctx, AccountSid, optional) @@ -4558,11 +4558,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountAddressReadResponse**](api_v2010_account_addressReadResponse.md) +[**ListAddressResponse**](ListAddressResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -4576,7 +4576,7 @@ Name | Type | Description | Notes ## ListApplication -> ApiV2010AccountApplicationReadResponse ListApplication(ctx, AccountSid, optional) +> ListApplicationResponse ListApplication(ctx, AccountSid, optional) @@ -4604,11 +4604,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountApplicationReadResponse**](api_v2010_account_applicationReadResponse.md) +[**ListApplicationResponse**](ListApplicationResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -4622,7 +4622,7 @@ Name | Type | Description | Notes ## ListAuthorizedConnectApp -> ApiV2010AccountAuthorizedConnectAppReadResponse ListAuthorizedConnectApp(ctx, AccountSid, optional) +> ListAuthorizedConnectAppResponse ListAuthorizedConnectApp(ctx, AccountSid, optional) @@ -4649,11 +4649,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountAuthorizedConnectAppReadResponse**](api_v2010_account_authorized_connect_appReadResponse.md) +[**ListAuthorizedConnectAppResponse**](ListAuthorizedConnectAppResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -4667,7 +4667,7 @@ Name | Type | Description | Notes ## ListAvailablePhoneNumberCountry -> ApiV2010AccountAvailablePhoneNumberCountryReadResponse ListAvailablePhoneNumberCountry(ctx, AccountSid, optional) +> ListAvailablePhoneNumberCountryResponse ListAvailablePhoneNumberCountry(ctx, AccountSid, optional) @@ -4692,11 +4692,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountAvailablePhoneNumberCountryReadResponse**](api_v2010_account_available_phone_number_countryReadResponse.md) +[**ListAvailablePhoneNumberCountryResponse**](ListAvailablePhoneNumberCountryResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -4710,7 +4710,7 @@ Name | Type | Description | Notes ## ListAvailablePhoneNumberLocal -> ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse ListAvailablePhoneNumberLocal(ctx, AccountSid, CountryCode, optional) +> ListAvailablePhoneNumberLocalResponse ListAvailablePhoneNumberLocal(ctx, AccountSid, CountryCode, optional) @@ -4755,11 +4755,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse**](api_v2010_account_available_phone_number_country_available_phone_number_localReadResponse.md) +[**ListAvailablePhoneNumberLocalResponse**](ListAvailablePhoneNumberLocalResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -4773,7 +4773,7 @@ Name | Type | Description | Notes ## ListAvailablePhoneNumberMachineToMachine -> ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse ListAvailablePhoneNumberMachineToMachine(ctx, AccountSid, CountryCode, optional) +> ListAvailablePhoneNumberMachineToMachineResponse ListAvailablePhoneNumberMachineToMachine(ctx, AccountSid, CountryCode, optional) @@ -4818,11 +4818,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse**](api_v2010_account_available_phone_number_country_available_phone_number_machine_to_machineReadResponse.md) +[**ListAvailablePhoneNumberMachineToMachineResponse**](ListAvailablePhoneNumberMachineToMachineResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -4836,7 +4836,7 @@ Name | Type | Description | Notes ## ListAvailablePhoneNumberMobile -> ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse ListAvailablePhoneNumberMobile(ctx, AccountSid, CountryCode, optional) +> ListAvailablePhoneNumberMobileResponse ListAvailablePhoneNumberMobile(ctx, AccountSid, CountryCode, optional) @@ -4881,11 +4881,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse**](api_v2010_account_available_phone_number_country_available_phone_number_mobileReadResponse.md) +[**ListAvailablePhoneNumberMobileResponse**](ListAvailablePhoneNumberMobileResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -4899,7 +4899,7 @@ Name | Type | Description | Notes ## ListAvailablePhoneNumberNational -> ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse ListAvailablePhoneNumberNational(ctx, AccountSid, CountryCode, optional) +> ListAvailablePhoneNumberNationalResponse ListAvailablePhoneNumberNational(ctx, AccountSid, CountryCode, optional) @@ -4944,11 +4944,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse**](api_v2010_account_available_phone_number_country_available_phone_number_nationalReadResponse.md) +[**ListAvailablePhoneNumberNationalResponse**](ListAvailablePhoneNumberNationalResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -4962,7 +4962,7 @@ Name | Type | Description | Notes ## ListAvailablePhoneNumberSharedCost -> ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse ListAvailablePhoneNumberSharedCost(ctx, AccountSid, CountryCode, optional) +> ListAvailablePhoneNumberSharedCostResponse ListAvailablePhoneNumberSharedCost(ctx, AccountSid, CountryCode, optional) @@ -5007,11 +5007,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse**](api_v2010_account_available_phone_number_country_available_phone_number_shared_costReadResponse.md) +[**ListAvailablePhoneNumberSharedCostResponse**](ListAvailablePhoneNumberSharedCostResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -5025,7 +5025,7 @@ Name | Type | Description | Notes ## ListAvailablePhoneNumberTollFree -> ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse ListAvailablePhoneNumberTollFree(ctx, AccountSid, CountryCode, optional) +> ListAvailablePhoneNumberTollFreeResponse ListAvailablePhoneNumberTollFree(ctx, AccountSid, CountryCode, optional) @@ -5070,11 +5070,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse**](api_v2010_account_available_phone_number_country_available_phone_number_toll_freeReadResponse.md) +[**ListAvailablePhoneNumberTollFreeResponse**](ListAvailablePhoneNumberTollFreeResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -5088,7 +5088,7 @@ Name | Type | Description | Notes ## ListAvailablePhoneNumberVoip -> ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse ListAvailablePhoneNumberVoip(ctx, AccountSid, CountryCode, optional) +> ListAvailablePhoneNumberVoipResponse ListAvailablePhoneNumberVoip(ctx, AccountSid, CountryCode, optional) @@ -5133,11 +5133,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse**](api_v2010_account_available_phone_number_country_available_phone_number_voipReadResponse.md) +[**ListAvailablePhoneNumberVoipResponse**](ListAvailablePhoneNumberVoipResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -5151,7 +5151,7 @@ Name | Type | Description | Notes ## ListCall -> ApiV2010AccountCallReadResponse ListCall(ctx, AccountSid, optional) +> ListCallResponse ListCall(ctx, AccountSid, optional) @@ -5188,11 +5188,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountCallReadResponse**](api_v2010_account_callReadResponse.md) +[**ListCallResponse**](ListCallResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -5206,7 +5206,7 @@ Name | Type | Description | Notes ## ListCallEvent -> ApiV2010AccountCallCallEventReadResponse ListCallEvent(ctx, AccountSid, CallSid, optional) +> ListCallEventResponse ListCallEvent(ctx, AccountSid, CallSid, optional) @@ -5235,11 +5235,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountCallCallEventReadResponse**](api_v2010_account_call_call_eventReadResponse.md) +[**ListCallEventResponse**](ListCallEventResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -5253,7 +5253,7 @@ Name | Type | Description | Notes ## ListCallNotification -> ApiV2010AccountCallCallNotificationReadResponse ListCallNotification(ctx, AccountSid, CallSid, optional) +> ListCallNotificationResponse ListCallNotification(ctx, AccountSid, CallSid, optional) @@ -5284,11 +5284,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountCallCallNotificationReadResponse**](api_v2010_account_call_call_notificationReadResponse.md) +[**ListCallNotificationResponse**](ListCallNotificationResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -5302,7 +5302,7 @@ Name | Type | Description | Notes ## ListCallRecording -> ApiV2010AccountCallCallRecordingReadResponse ListCallRecording(ctx, AccountSid, CallSid, optional) +> ListCallRecordingResponse ListCallRecording(ctx, AccountSid, CallSid, optional) @@ -5334,11 +5334,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountCallCallRecordingReadResponse**](api_v2010_account_call_call_recordingReadResponse.md) +[**ListCallRecordingResponse**](ListCallRecordingResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -5352,7 +5352,7 @@ Name | Type | Description | Notes ## ListConference -> ApiV2010AccountConferenceReadResponse ListConference(ctx, AccountSid, optional) +> ListConferenceResponse ListConference(ctx, AccountSid, optional) @@ -5387,11 +5387,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountConferenceReadResponse**](api_v2010_account_conferenceReadResponse.md) +[**ListConferenceResponse**](ListConferenceResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -5405,7 +5405,7 @@ Name | Type | Description | Notes ## ListConferenceRecording -> ApiV2010AccountConferenceConferenceRecordingReadResponse ListConferenceRecording(ctx, AccountSid, ConferenceSid, optional) +> ListConferenceRecordingResponse ListConferenceRecording(ctx, AccountSid, ConferenceSid, optional) @@ -5437,11 +5437,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountConferenceConferenceRecordingReadResponse**](api_v2010_account_conference_conference_recordingReadResponse.md) +[**ListConferenceRecordingResponse**](ListConferenceRecordingResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -5455,7 +5455,7 @@ Name | Type | Description | Notes ## ListConnectApp -> ApiV2010AccountConnectAppReadResponse ListConnectApp(ctx, AccountSid, optional) +> ListConnectAppResponse ListConnectApp(ctx, AccountSid, optional) @@ -5482,11 +5482,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountConnectAppReadResponse**](api_v2010_account_connect_appReadResponse.md) +[**ListConnectAppResponse**](ListConnectAppResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -5500,7 +5500,7 @@ Name | Type | Description | Notes ## ListDependentPhoneNumber -> ApiV2010AccountAddressDependentPhoneNumberReadResponse ListDependentPhoneNumber(ctx, AccountSid, AddressSid, optional) +> ListDependentPhoneNumberResponse ListDependentPhoneNumber(ctx, AccountSid, AddressSid, optional) @@ -5527,11 +5527,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountAddressDependentPhoneNumberReadResponse**](api_v2010_account_address_dependent_phone_numberReadResponse.md) +[**ListDependentPhoneNumberResponse**](ListDependentPhoneNumberResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -5545,7 +5545,7 @@ Name | Type | Description | Notes ## ListIncomingPhoneNumber -> ApiV2010AccountIncomingPhoneNumberReadResponse ListIncomingPhoneNumber(ctx, AccountSid, optional) +> ListIncomingPhoneNumberResponse ListIncomingPhoneNumber(ctx, AccountSid, optional) @@ -5576,11 +5576,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountIncomingPhoneNumberReadResponse**](api_v2010_account_incoming_phone_numberReadResponse.md) +[**ListIncomingPhoneNumberResponse**](ListIncomingPhoneNumberResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -5594,7 +5594,7 @@ Name | Type | Description | Notes ## ListIncomingPhoneNumberAssignedAddOn -> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse ListIncomingPhoneNumberAssignedAddOn(ctx, AccountSid, ResourceSid, optional) +> ListIncomingPhoneNumberAssignedAddOnResponse ListIncomingPhoneNumberAssignedAddOn(ctx, AccountSid, ResourceSid, optional) @@ -5623,11 +5623,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse**](api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_onReadResponse.md) +[**ListIncomingPhoneNumberAssignedAddOnResponse**](ListIncomingPhoneNumberAssignedAddOnResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -5641,7 +5641,7 @@ Name | Type | Description | Notes ## ListIncomingPhoneNumberAssignedAddOnExtension -> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse ListIncomingPhoneNumberAssignedAddOnExtension(ctx, AccountSid, ResourceSid, AssignedAddOnSid, optional) +> ListIncomingPhoneNumberAssignedAddOnExtensionResponse ListIncomingPhoneNumberAssignedAddOnExtension(ctx, AccountSid, ResourceSid, AssignedAddOnSid, optional) @@ -5672,11 +5672,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse**](api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_incoming_phone_number_assigned_add_on_extensionReadResponse.md) +[**ListIncomingPhoneNumberAssignedAddOnExtensionResponse**](ListIncomingPhoneNumberAssignedAddOnExtensionResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -5690,7 +5690,7 @@ Name | Type | Description | Notes ## ListIncomingPhoneNumberLocal -> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse ListIncomingPhoneNumberLocal(ctx, AccountSid, optional) +> ListIncomingPhoneNumberLocalResponse ListIncomingPhoneNumberLocal(ctx, AccountSid, optional) @@ -5719,11 +5719,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse**](api_v2010_account_incoming_phone_number_incoming_phone_number_localReadResponse.md) +[**ListIncomingPhoneNumberLocalResponse**](ListIncomingPhoneNumberLocalResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -5737,7 +5737,7 @@ Name | Type | Description | Notes ## ListIncomingPhoneNumberMobile -> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse ListIncomingPhoneNumberMobile(ctx, AccountSid, optional) +> ListIncomingPhoneNumberMobileResponse ListIncomingPhoneNumberMobile(ctx, AccountSid, optional) @@ -5766,11 +5766,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse**](api_v2010_account_incoming_phone_number_incoming_phone_number_mobileReadResponse.md) +[**ListIncomingPhoneNumberMobileResponse**](ListIncomingPhoneNumberMobileResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -5784,7 +5784,7 @@ Name | Type | Description | Notes ## ListIncomingPhoneNumberTollFree -> ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse ListIncomingPhoneNumberTollFree(ctx, AccountSid, optional) +> ListIncomingPhoneNumberTollFreeResponse ListIncomingPhoneNumberTollFree(ctx, AccountSid, optional) @@ -5813,11 +5813,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse**](api_v2010_account_incoming_phone_number_incoming_phone_number_toll_freeReadResponse.md) +[**ListIncomingPhoneNumberTollFreeResponse**](ListIncomingPhoneNumberTollFreeResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -5831,7 +5831,7 @@ Name | Type | Description | Notes ## ListKey -> ApiV2010AccountKeyReadResponse ListKey(ctx, AccountSid, optional) +> ListKeyResponse ListKey(ctx, AccountSid, optional) @@ -5856,11 +5856,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountKeyReadResponse**](api_v2010_account_keyReadResponse.md) +[**ListKeyResponse**](ListKeyResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -5874,7 +5874,7 @@ Name | Type | Description | Notes ## ListMedia -> ApiV2010AccountMessageMediaReadResponse ListMedia(ctx, AccountSid, MessageSid, optional) +> ListMediaResponse ListMedia(ctx, AccountSid, MessageSid, optional) @@ -5906,11 +5906,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountMessageMediaReadResponse**](api_v2010_account_message_mediaReadResponse.md) +[**ListMediaResponse**](ListMediaResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -5924,7 +5924,7 @@ Name | Type | Description | Notes ## ListMember -> ApiV2010AccountQueueMemberReadResponse ListMember(ctx, AccountSid, QueueSid, optional) +> ListMemberResponse ListMember(ctx, AccountSid, QueueSid, optional) @@ -5953,11 +5953,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountQueueMemberReadResponse**](api_v2010_account_queue_memberReadResponse.md) +[**ListMemberResponse**](ListMemberResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -5971,7 +5971,7 @@ Name | Type | Description | Notes ## ListMessage -> ApiV2010AccountMessageReadResponse ListMessage(ctx, AccountSid, optional) +> ListMessageResponse ListMessage(ctx, AccountSid, optional) @@ -6003,11 +6003,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountMessageReadResponse**](api_v2010_account_messageReadResponse.md) +[**ListMessageResponse**](ListMessageResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -6021,7 +6021,7 @@ Name | Type | Description | Notes ## ListNotification -> ApiV2010AccountNotificationReadResponse ListNotification(ctx, AccountSid, optional) +> ListNotificationResponse ListNotification(ctx, AccountSid, optional) @@ -6052,11 +6052,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountNotificationReadResponse**](api_v2010_account_notificationReadResponse.md) +[**ListNotificationResponse**](ListNotificationResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -6070,7 +6070,7 @@ Name | Type | Description | Notes ## ListOutgoingCallerId -> ApiV2010AccountOutgoingCallerIdReadResponse ListOutgoingCallerId(ctx, AccountSid, optional) +> ListOutgoingCallerIdResponse ListOutgoingCallerId(ctx, AccountSid, optional) @@ -6099,11 +6099,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountOutgoingCallerIdReadResponse**](api_v2010_account_outgoing_caller_idReadResponse.md) +[**ListOutgoingCallerIdResponse**](ListOutgoingCallerIdResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -6117,7 +6117,7 @@ Name | Type | Description | Notes ## ListParticipant -> ApiV2010AccountConferenceParticipantReadResponse ListParticipant(ctx, AccountSid, ConferenceSid, optional) +> ListParticipantResponse ListParticipant(ctx, AccountSid, ConferenceSid, optional) @@ -6149,11 +6149,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountConferenceParticipantReadResponse**](api_v2010_account_conference_participantReadResponse.md) +[**ListParticipantResponse**](ListParticipantResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -6167,7 +6167,7 @@ Name | Type | Description | Notes ## ListQueue -> ApiV2010AccountQueueReadResponse ListQueue(ctx, AccountSid, optional) +> ListQueueResponse ListQueue(ctx, AccountSid, optional) @@ -6194,11 +6194,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountQueueReadResponse**](api_v2010_account_queueReadResponse.md) +[**ListQueueResponse**](ListQueueResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -6212,7 +6212,7 @@ Name | Type | Description | Notes ## ListRecording -> ApiV2010AccountRecordingReadResponse ListRecording(ctx, AccountSid, optional) +> ListRecordingResponse ListRecording(ctx, AccountSid, optional) @@ -6244,11 +6244,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountRecordingReadResponse**](api_v2010_account_recordingReadResponse.md) +[**ListRecordingResponse**](ListRecordingResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -6262,7 +6262,7 @@ Name | Type | Description | Notes ## ListRecordingAddOnResult -> ApiV2010AccountRecordingRecordingAddOnResultReadResponse ListRecordingAddOnResult(ctx, AccountSid, ReferenceSid, optional) +> ListRecordingAddOnResultResponse ListRecordingAddOnResult(ctx, AccountSid, ReferenceSid, optional) @@ -6291,11 +6291,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountRecordingRecordingAddOnResultReadResponse**](api_v2010_account_recording_recording_add_on_resultReadResponse.md) +[**ListRecordingAddOnResultResponse**](ListRecordingAddOnResultResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -6309,7 +6309,7 @@ Name | Type | Description | Notes ## ListRecordingAddOnResultPayload -> ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse ListRecordingAddOnResultPayload(ctx, AccountSid, ReferenceSid, AddOnResultSid, optional) +> ListRecordingAddOnResultPayloadResponse ListRecordingAddOnResultPayload(ctx, AccountSid, ReferenceSid, AddOnResultSid, optional) @@ -6340,11 +6340,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse**](api_v2010_account_recording_recording_add_on_result_recording_add_on_result_payloadReadResponse.md) +[**ListRecordingAddOnResultPayloadResponse**](ListRecordingAddOnResultPayloadResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -6358,7 +6358,7 @@ Name | Type | Description | Notes ## ListRecordingTranscription -> ApiV2010AccountRecordingRecordingTranscriptionReadResponse ListRecordingTranscription(ctx, AccountSid, RecordingSid, optional) +> ListRecordingTranscriptionResponse ListRecordingTranscription(ctx, AccountSid, RecordingSid, optional) @@ -6385,11 +6385,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountRecordingRecordingTranscriptionReadResponse**](api_v2010_account_recording_recording_transcriptionReadResponse.md) +[**ListRecordingTranscriptionResponse**](ListRecordingTranscriptionResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -6403,7 +6403,7 @@ Name | Type | Description | Notes ## ListShortCode -> ApiV2010AccountShortCodeReadResponse ListShortCode(ctx, AccountSid, optional) +> ListShortCodeResponse ListShortCode(ctx, AccountSid, optional) @@ -6432,11 +6432,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountShortCodeReadResponse**](api_v2010_account_short_codeReadResponse.md) +[**ListShortCodeResponse**](ListShortCodeResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -6450,7 +6450,7 @@ Name | Type | Description | Notes ## ListSigningKey -> ApiV2010AccountSigningKeyReadResponse ListSigningKey(ctx, AccountSid, optional) +> ListSigningKeyResponse ListSigningKey(ctx, AccountSid, optional) @@ -6475,11 +6475,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountSigningKeyReadResponse**](api_v2010_account_signing_keyReadResponse.md) +[**ListSigningKeyResponse**](ListSigningKeyResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -6493,7 +6493,7 @@ Name | Type | Description | Notes ## ListSipAuthCallsCredentialListMapping -> ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse ListSipAuthCallsCredentialListMapping(ctx, AccountSid, DomainSid, optional) +> ListSipAuthCallsCredentialListMappingResponse ListSipAuthCallsCredentialListMapping(ctx, AccountSid, DomainSid, optional) @@ -6522,11 +6522,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse**](api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_credential_list_mappingReadResponse.md) +[**ListSipAuthCallsCredentialListMappingResponse**](ListSipAuthCallsCredentialListMappingResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -6540,7 +6540,7 @@ Name | Type | Description | Notes ## ListSipAuthCallsIpAccessControlListMapping -> ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse ListSipAuthCallsIpAccessControlListMapping(ctx, AccountSid, DomainSid, optional) +> ListSipAuthCallsIpAccessControlListMappingResponse ListSipAuthCallsIpAccessControlListMapping(ctx, AccountSid, DomainSid, optional) @@ -6569,11 +6569,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse**](api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_ip_access_control_list_mappingReadResponse.md) +[**ListSipAuthCallsIpAccessControlListMappingResponse**](ListSipAuthCallsIpAccessControlListMappingResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -6587,7 +6587,7 @@ Name | Type | Description | Notes ## ListSipAuthRegistrationsCredentialListMapping -> ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse ListSipAuthRegistrationsCredentialListMapping(ctx, AccountSid, DomainSid, optional) +> ListSipAuthRegistrationsCredentialListMappingResponse ListSipAuthRegistrationsCredentialListMapping(ctx, AccountSid, DomainSid, optional) @@ -6616,11 +6616,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse**](api_v2010_account_sip_sip_domain_sip_auth_sip_auth_registrations_sip_auth_registrations_credential_list_mappingReadResponse.md) +[**ListSipAuthRegistrationsCredentialListMappingResponse**](ListSipAuthRegistrationsCredentialListMappingResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -6634,7 +6634,7 @@ Name | Type | Description | Notes ## ListSipCredential -> ApiV2010AccountSipSipCredentialListSipCredentialReadResponse ListSipCredential(ctx, AccountSid, CredentialListSid, optional) +> ListSipCredentialResponse ListSipCredential(ctx, AccountSid, CredentialListSid, optional) @@ -6663,11 +6663,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountSipSipCredentialListSipCredentialReadResponse**](api_v2010_account_sip_sip_credential_list_sip_credentialReadResponse.md) +[**ListSipCredentialResponse**](ListSipCredentialResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -6681,7 +6681,7 @@ Name | Type | Description | Notes ## ListSipCredentialList -> ApiV2010AccountSipSipCredentialListReadResponse ListSipCredentialList(ctx, AccountSid, optional) +> ListSipCredentialListResponse ListSipCredentialList(ctx, AccountSid, optional) @@ -6708,11 +6708,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountSipSipCredentialListReadResponse**](api_v2010_account_sip_sip_credential_listReadResponse.md) +[**ListSipCredentialListResponse**](ListSipCredentialListResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -6726,7 +6726,7 @@ Name | Type | Description | Notes ## ListSipCredentialListMapping -> ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse ListSipCredentialListMapping(ctx, AccountSid, DomainSid, optional) +> ListSipCredentialListMappingResponse ListSipCredentialListMapping(ctx, AccountSid, DomainSid, optional) @@ -6755,11 +6755,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse**](api_v2010_account_sip_sip_domain_sip_credential_list_mappingReadResponse.md) +[**ListSipCredentialListMappingResponse**](ListSipCredentialListMappingResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -6773,7 +6773,7 @@ Name | Type | Description | Notes ## ListSipDomain -> ApiV2010AccountSipSipDomainReadResponse ListSipDomain(ctx, AccountSid, optional) +> ListSipDomainResponse ListSipDomain(ctx, AccountSid, optional) @@ -6800,11 +6800,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountSipSipDomainReadResponse**](api_v2010_account_sip_sip_domainReadResponse.md) +[**ListSipDomainResponse**](ListSipDomainResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -6818,7 +6818,7 @@ Name | Type | Description | Notes ## ListSipIpAccessControlList -> ApiV2010AccountSipSipIpAccessControlListReadResponse ListSipIpAccessControlList(ctx, AccountSid, optional) +> ListSipIpAccessControlListResponse ListSipIpAccessControlList(ctx, AccountSid, optional) @@ -6845,11 +6845,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountSipSipIpAccessControlListReadResponse**](api_v2010_account_sip_sip_ip_access_control_listReadResponse.md) +[**ListSipIpAccessControlListResponse**](ListSipIpAccessControlListResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -6863,7 +6863,7 @@ Name | Type | Description | Notes ## ListSipIpAccessControlListMapping -> ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse ListSipIpAccessControlListMapping(ctx, AccountSid, DomainSid, optional) +> ListSipIpAccessControlListMappingResponse ListSipIpAccessControlListMapping(ctx, AccountSid, DomainSid, optional) @@ -6892,11 +6892,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse**](api_v2010_account_sip_sip_domain_sip_ip_access_control_list_mappingReadResponse.md) +[**ListSipIpAccessControlListMappingResponse**](ListSipIpAccessControlListMappingResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -6910,7 +6910,7 @@ Name | Type | Description | Notes ## ListSipIpAddress -> ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse ListSipIpAddress(ctx, AccountSid, IpAccessControlListSid, optional) +> ListSipIpAddressResponse ListSipIpAddress(ctx, AccountSid, IpAccessControlListSid, optional) @@ -6939,11 +6939,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse**](api_v2010_account_sip_sip_ip_access_control_list_sip_ip_addressReadResponse.md) +[**ListSipIpAddressResponse**](ListSipIpAddressResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -6957,7 +6957,7 @@ Name | Type | Description | Notes ## ListTranscription -> ApiV2010AccountTranscriptionReadResponse ListTranscription(ctx, AccountSid, optional) +> ListTranscriptionResponse ListTranscription(ctx, AccountSid, optional) @@ -6984,11 +6984,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountTranscriptionReadResponse**](api_v2010_account_transcriptionReadResponse.md) +[**ListTranscriptionResponse**](ListTranscriptionResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -7002,7 +7002,7 @@ Name | Type | Description | Notes ## ListUsageRecord -> ApiV2010AccountUsageUsageRecordReadResponse ListUsageRecord(ctx, AccountSid, optional) +> ListUsageRecordResponse ListUsageRecord(ctx, AccountSid, optional) @@ -7033,11 +7033,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountUsageUsageRecordReadResponse**](api_v2010_account_usage_usage_recordReadResponse.md) +[**ListUsageRecordResponse**](ListUsageRecordResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -7051,7 +7051,7 @@ Name | Type | Description | Notes ## ListUsageRecordAllTime -> ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse ListUsageRecordAllTime(ctx, AccountSid, optional) +> ListUsageRecordAllTimeResponse ListUsageRecordAllTime(ctx, AccountSid, optional) @@ -7080,11 +7080,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse**](api_v2010_account_usage_usage_record_usage_record_all_timeReadResponse.md) +[**ListUsageRecordAllTimeResponse**](ListUsageRecordAllTimeResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -7098,7 +7098,7 @@ Name | Type | Description | Notes ## ListUsageRecordDaily -> ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse ListUsageRecordDaily(ctx, AccountSid, optional) +> ListUsageRecordDailyResponse ListUsageRecordDaily(ctx, AccountSid, optional) @@ -7127,11 +7127,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse**](api_v2010_account_usage_usage_record_usage_record_dailyReadResponse.md) +[**ListUsageRecordDailyResponse**](ListUsageRecordDailyResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -7145,7 +7145,7 @@ Name | Type | Description | Notes ## ListUsageRecordLastMonth -> ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse ListUsageRecordLastMonth(ctx, AccountSid, optional) +> ListUsageRecordLastMonthResponse ListUsageRecordLastMonth(ctx, AccountSid, optional) @@ -7174,11 +7174,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse**](api_v2010_account_usage_usage_record_usage_record_last_monthReadResponse.md) +[**ListUsageRecordLastMonthResponse**](ListUsageRecordLastMonthResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -7192,7 +7192,7 @@ Name | Type | Description | Notes ## ListUsageRecordMonthly -> ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse ListUsageRecordMonthly(ctx, AccountSid, optional) +> ListUsageRecordMonthlyResponse ListUsageRecordMonthly(ctx, AccountSid, optional) @@ -7221,11 +7221,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse**](api_v2010_account_usage_usage_record_usage_record_monthlyReadResponse.md) +[**ListUsageRecordMonthlyResponse**](ListUsageRecordMonthlyResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -7239,7 +7239,7 @@ Name | Type | Description | Notes ## ListUsageRecordThisMonth -> ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse ListUsageRecordThisMonth(ctx, AccountSid, optional) +> ListUsageRecordThisMonthResponse ListUsageRecordThisMonth(ctx, AccountSid, optional) @@ -7268,11 +7268,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse**](api_v2010_account_usage_usage_record_usage_record_this_monthReadResponse.md) +[**ListUsageRecordThisMonthResponse**](ListUsageRecordThisMonthResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -7286,7 +7286,7 @@ Name | Type | Description | Notes ## ListUsageRecordToday -> ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse ListUsageRecordToday(ctx, AccountSid, optional) +> ListUsageRecordTodayResponse ListUsageRecordToday(ctx, AccountSid, optional) @@ -7315,11 +7315,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse**](api_v2010_account_usage_usage_record_usage_record_todayReadResponse.md) +[**ListUsageRecordTodayResponse**](ListUsageRecordTodayResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -7333,7 +7333,7 @@ Name | Type | Description | Notes ## ListUsageRecordYearly -> ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse ListUsageRecordYearly(ctx, AccountSid, optional) +> ListUsageRecordYearlyResponse ListUsageRecordYearly(ctx, AccountSid, optional) @@ -7362,11 +7362,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse**](api_v2010_account_usage_usage_record_usage_record_yearlyReadResponse.md) +[**ListUsageRecordYearlyResponse**](ListUsageRecordYearlyResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -7380,7 +7380,7 @@ Name | Type | Description | Notes ## ListUsageRecordYesterday -> ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse ListUsageRecordYesterday(ctx, AccountSid, optional) +> ListUsageRecordYesterdayResponse ListUsageRecordYesterday(ctx, AccountSid, optional) @@ -7409,11 +7409,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse**](api_v2010_account_usage_usage_record_usage_record_yesterdayReadResponse.md) +[**ListUsageRecordYesterdayResponse**](ListUsageRecordYesterdayResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -7427,7 +7427,7 @@ Name | Type | Description | Notes ## ListUsageTrigger -> ApiV2010AccountUsageUsageTriggerReadResponse ListUsageTrigger(ctx, AccountSid, optional) +> ListUsageTriggerResponse ListUsageTrigger(ctx, AccountSid, optional) @@ -7457,11 +7457,11 @@ Name | Type | Description | Notes ### Return type -[**ApiV2010AccountUsageUsageTriggerReadResponse**](api_v2010_account_usage_usage_triggerReadResponse.md) +[**ListUsageTriggerResponse**](ListUsageTriggerResponse.md) ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -7507,7 +7507,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -7559,7 +7559,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -7620,7 +7620,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -7674,7 +7674,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -7722,7 +7722,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -7772,7 +7772,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -7819,7 +7819,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -7869,7 +7869,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -7923,7 +7923,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -7992,7 +7992,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -8037,7 +8037,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -8087,7 +8087,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -8134,7 +8134,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -8181,7 +8181,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -8241,7 +8241,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -8293,7 +8293,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -8341,7 +8341,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -8393,7 +8393,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -8438,7 +8438,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -8487,7 +8487,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -8534,7 +8534,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -8574,7 +8574,7 @@ Name | Type | Description | Notes **ByocTrunkSid** | **optional.String**| The SID of the BYOC Trunk(Bring Your Own Carrier) resource that the Sip Domain will be associated with. | - **DomainName** | **optional.String**| The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and \\\"-\\\". | + **DomainName** | **optional.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`. | **EmergencyCallerSid** | **optional.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. | **EmergencyCallingEnabled** | **optional.Bool**| Whether emergency calling is enabled for the domain. If enabled, allows emergency calls on the domain from phone numbers with validated addresses. | **FriendlyName** | **optional.String**| A descriptive string that you created to describe the resource. It can be up to 64 characters long. | @@ -8593,7 +8593,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -8640,7 +8640,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -8691,7 +8691,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers @@ -8740,7 +8740,7 @@ Name | Type | Description | Notes ### Authorization -[AccountSid_authToken](../README.md#AccountSid_authToken) +[accountSid_authToken](../README.md#accountSid_authToken) ### HTTP request headers diff --git a/rest/api/v2010/docs/ApiV2010AccountReadResponse.md b/rest/api/v2010/docs/ListAccountResponse.md similarity index 95% rename from rest/api/v2010/docs/ApiV2010AccountReadResponse.md rename to rest/api/v2010/docs/ListAccountResponse.md index 819907439..89ee9e6b6 100644 --- a/rest/api/v2010/docs/ApiV2010AccountReadResponse.md +++ b/rest/api/v2010/docs/ListAccountResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountReadResponse +# ListAccountResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountAddressReadResponse.md b/rest/api/v2010/docs/ListAddressResponse.md similarity index 95% rename from rest/api/v2010/docs/ApiV2010AccountAddressReadResponse.md rename to rest/api/v2010/docs/ListAddressResponse.md index e5d7cd3c4..38c53eab9 100644 --- a/rest/api/v2010/docs/ApiV2010AccountAddressReadResponse.md +++ b/rest/api/v2010/docs/ListAddressResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountAddressReadResponse +# ListAddressResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountApplicationReadResponse.md b/rest/api/v2010/docs/ListApplicationResponse.md similarity index 94% rename from rest/api/v2010/docs/ApiV2010AccountApplicationReadResponse.md rename to rest/api/v2010/docs/ListApplicationResponse.md index 45aa413f8..9b32d0e8f 100644 --- a/rest/api/v2010/docs/ApiV2010AccountApplicationReadResponse.md +++ b/rest/api/v2010/docs/ListApplicationResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountApplicationReadResponse +# ListApplicationResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountAuthorizedConnectAppReadResponse.md b/rest/api/v2010/docs/ListAuthorizedConnectAppResponse.md similarity index 93% rename from rest/api/v2010/docs/ApiV2010AccountAuthorizedConnectAppReadResponse.md rename to rest/api/v2010/docs/ListAuthorizedConnectAppResponse.md index 96c69264a..f120b5074 100644 --- a/rest/api/v2010/docs/ApiV2010AccountAuthorizedConnectAppReadResponse.md +++ b/rest/api/v2010/docs/ListAuthorizedConnectAppResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountAuthorizedConnectAppReadResponse +# ListAuthorizedConnectAppResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryReadResponse.md b/rest/api/v2010/docs/ListAvailablePhoneNumberCountryResponse.md similarity index 92% rename from rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryReadResponse.md rename to rest/api/v2010/docs/ListAvailablePhoneNumberCountryResponse.md index 8706b92b5..0ef76f237 100644 --- a/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryReadResponse.md +++ b/rest/api/v2010/docs/ListAvailablePhoneNumberCountryResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountAvailablePhoneNumberCountryReadResponse +# ListAvailablePhoneNumberCountryResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse.md b/rest/api/v2010/docs/ListAvailablePhoneNumberLocalResponse.md similarity index 90% rename from rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse.md rename to rest/api/v2010/docs/ListAvailablePhoneNumberLocalResponse.md index 58a4dba17..91dcc1f27 100644 --- a/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse.md +++ b/rest/api/v2010/docs/ListAvailablePhoneNumberLocalResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse +# ListAvailablePhoneNumberLocalResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse.md b/rest/api/v2010/docs/ListAvailablePhoneNumberMachineToMachineResponse.md similarity index 90% rename from rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse.md rename to rest/api/v2010/docs/ListAvailablePhoneNumberMachineToMachineResponse.md index fa30bede3..c94c1b09a 100644 --- a/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse.md +++ b/rest/api/v2010/docs/ListAvailablePhoneNumberMachineToMachineResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse +# ListAvailablePhoneNumberMachineToMachineResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse.md b/rest/api/v2010/docs/ListAvailablePhoneNumberMobileResponse.md similarity index 90% rename from rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse.md rename to rest/api/v2010/docs/ListAvailablePhoneNumberMobileResponse.md index f1cf3ec85..a93082007 100644 --- a/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse.md +++ b/rest/api/v2010/docs/ListAvailablePhoneNumberMobileResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse +# ListAvailablePhoneNumberMobileResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse.md b/rest/api/v2010/docs/ListAvailablePhoneNumberNationalResponse.md similarity index 90% rename from rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse.md rename to rest/api/v2010/docs/ListAvailablePhoneNumberNationalResponse.md index e9067229c..8fb3c2df7 100644 --- a/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse.md +++ b/rest/api/v2010/docs/ListAvailablePhoneNumberNationalResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse +# ListAvailablePhoneNumberNationalResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse.md b/rest/api/v2010/docs/ListAvailablePhoneNumberSharedCostResponse.md similarity index 90% rename from rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse.md rename to rest/api/v2010/docs/ListAvailablePhoneNumberSharedCostResponse.md index 10f0ad5a9..662fccbbb 100644 --- a/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse.md +++ b/rest/api/v2010/docs/ListAvailablePhoneNumberSharedCostResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse +# ListAvailablePhoneNumberSharedCostResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse.md b/rest/api/v2010/docs/ListAvailablePhoneNumberTollFreeResponse.md similarity index 90% rename from rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse.md rename to rest/api/v2010/docs/ListAvailablePhoneNumberTollFreeResponse.md index d84624bcb..22d503444 100644 --- a/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse.md +++ b/rest/api/v2010/docs/ListAvailablePhoneNumberTollFreeResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse +# ListAvailablePhoneNumberTollFreeResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse.md b/rest/api/v2010/docs/ListAvailablePhoneNumberVoipResponse.md similarity index 90% rename from rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse.md rename to rest/api/v2010/docs/ListAvailablePhoneNumberVoipResponse.md index d85905730..3bb1b8ebc 100644 --- a/rest/api/v2010/docs/ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse.md +++ b/rest/api/v2010/docs/ListAvailablePhoneNumberVoipResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse +# ListAvailablePhoneNumberVoipResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountCallCallEventReadResponse.md b/rest/api/v2010/docs/ListCallEventResponse.md similarity index 94% rename from rest/api/v2010/docs/ApiV2010AccountCallCallEventReadResponse.md rename to rest/api/v2010/docs/ListCallEventResponse.md index 91b2aa253..c88189774 100644 --- a/rest/api/v2010/docs/ApiV2010AccountCallCallEventReadResponse.md +++ b/rest/api/v2010/docs/ListCallEventResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountCallCallEventReadResponse +# ListCallEventResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountCallCallNotificationReadResponse.md b/rest/api/v2010/docs/ListCallNotificationResponse.md similarity index 93% rename from rest/api/v2010/docs/ApiV2010AccountCallCallNotificationReadResponse.md rename to rest/api/v2010/docs/ListCallNotificationResponse.md index f410b5aba..7c6f757e9 100644 --- a/rest/api/v2010/docs/ApiV2010AccountCallCallNotificationReadResponse.md +++ b/rest/api/v2010/docs/ListCallNotificationResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountCallCallNotificationReadResponse +# ListCallNotificationResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountCallCallRecordingReadResponse.md b/rest/api/v2010/docs/ListCallRecordingResponse.md similarity index 93% rename from rest/api/v2010/docs/ApiV2010AccountCallCallRecordingReadResponse.md rename to rest/api/v2010/docs/ListCallRecordingResponse.md index f1d3d1945..a9914d456 100644 --- a/rest/api/v2010/docs/ApiV2010AccountCallCallRecordingReadResponse.md +++ b/rest/api/v2010/docs/ListCallRecordingResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountCallCallRecordingReadResponse +# ListCallRecordingResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountCallReadResponse.md b/rest/api/v2010/docs/ListCallResponse.md similarity index 95% rename from rest/api/v2010/docs/ApiV2010AccountCallReadResponse.md rename to rest/api/v2010/docs/ListCallResponse.md index 45d076701..d4832acff 100644 --- a/rest/api/v2010/docs/ApiV2010AccountCallReadResponse.md +++ b/rest/api/v2010/docs/ListCallResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountCallReadResponse +# ListCallResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountConferenceConferenceRecordingReadResponse.md b/rest/api/v2010/docs/ListConferenceRecordingResponse.md similarity index 92% rename from rest/api/v2010/docs/ApiV2010AccountConferenceConferenceRecordingReadResponse.md rename to rest/api/v2010/docs/ListConferenceRecordingResponse.md index 5b114c191..a7ea565bc 100644 --- a/rest/api/v2010/docs/ApiV2010AccountConferenceConferenceRecordingReadResponse.md +++ b/rest/api/v2010/docs/ListConferenceRecordingResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountConferenceConferenceRecordingReadResponse +# ListConferenceRecordingResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountConferenceReadResponse.md b/rest/api/v2010/docs/ListConferenceResponse.md similarity index 94% rename from rest/api/v2010/docs/ApiV2010AccountConferenceReadResponse.md rename to rest/api/v2010/docs/ListConferenceResponse.md index 2363ea64d..106d7062b 100644 --- a/rest/api/v2010/docs/ApiV2010AccountConferenceReadResponse.md +++ b/rest/api/v2010/docs/ListConferenceResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountConferenceReadResponse +# ListConferenceResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountConnectAppReadResponse.md b/rest/api/v2010/docs/ListConnectAppResponse.md similarity index 94% rename from rest/api/v2010/docs/ApiV2010AccountConnectAppReadResponse.md rename to rest/api/v2010/docs/ListConnectAppResponse.md index 6a1dd10f7..b65e1eee0 100644 --- a/rest/api/v2010/docs/ApiV2010AccountConnectAppReadResponse.md +++ b/rest/api/v2010/docs/ListConnectAppResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountConnectAppReadResponse +# ListConnectAppResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountAddressDependentPhoneNumberReadResponse.md b/rest/api/v2010/docs/ListDependentPhoneNumberResponse.md similarity index 93% rename from rest/api/v2010/docs/ApiV2010AccountAddressDependentPhoneNumberReadResponse.md rename to rest/api/v2010/docs/ListDependentPhoneNumberResponse.md index 771fe37f6..f688574fd 100644 --- a/rest/api/v2010/docs/ApiV2010AccountAddressDependentPhoneNumberReadResponse.md +++ b/rest/api/v2010/docs/ListDependentPhoneNumberResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountAddressDependentPhoneNumberReadResponse +# ListDependentPhoneNumberResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse.md b/rest/api/v2010/docs/ListIncomingPhoneNumberAssignedAddOnExtensionResponse.md similarity index 87% rename from rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse.md rename to rest/api/v2010/docs/ListIncomingPhoneNumberAssignedAddOnExtensionResponse.md index 19454410d..2a8ef0813 100644 --- a/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse.md +++ b/rest/api/v2010/docs/ListIncomingPhoneNumberAssignedAddOnExtensionResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse +# ListIncomingPhoneNumberAssignedAddOnExtensionResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse.md b/rest/api/v2010/docs/ListIncomingPhoneNumberAssignedAddOnResponse.md similarity index 90% rename from rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse.md rename to rest/api/v2010/docs/ListIncomingPhoneNumberAssignedAddOnResponse.md index e1a0e2018..2bfd4ba3a 100644 --- a/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse.md +++ b/rest/api/v2010/docs/ListIncomingPhoneNumberAssignedAddOnResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse +# ListIncomingPhoneNumberAssignedAddOnResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse.md b/rest/api/v2010/docs/ListIncomingPhoneNumberLocalResponse.md similarity index 91% rename from rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse.md rename to rest/api/v2010/docs/ListIncomingPhoneNumberLocalResponse.md index 36cb33af6..893c38274 100644 --- a/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse.md +++ b/rest/api/v2010/docs/ListIncomingPhoneNumberLocalResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse +# ListIncomingPhoneNumberLocalResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse.md b/rest/api/v2010/docs/ListIncomingPhoneNumberMobileResponse.md similarity index 91% rename from rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse.md rename to rest/api/v2010/docs/ListIncomingPhoneNumberMobileResponse.md index 1ca84e7db..367e928d4 100644 --- a/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse.md +++ b/rest/api/v2010/docs/ListIncomingPhoneNumberMobileResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse +# ListIncomingPhoneNumberMobileResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberReadResponse.md b/rest/api/v2010/docs/ListIncomingPhoneNumberResponse.md similarity index 93% rename from rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberReadResponse.md rename to rest/api/v2010/docs/ListIncomingPhoneNumberResponse.md index 9fdc45857..7fcfd3739 100644 --- a/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberReadResponse.md +++ b/rest/api/v2010/docs/ListIncomingPhoneNumberResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountIncomingPhoneNumberReadResponse +# ListIncomingPhoneNumberResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse.md b/rest/api/v2010/docs/ListIncomingPhoneNumberTollFreeResponse.md similarity index 91% rename from rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse.md rename to rest/api/v2010/docs/ListIncomingPhoneNumberTollFreeResponse.md index 55bd8b955..ad4a9a913 100644 --- a/rest/api/v2010/docs/ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse.md +++ b/rest/api/v2010/docs/ListIncomingPhoneNumberTollFreeResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse +# ListIncomingPhoneNumberTollFreeResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountKeyReadResponse.md b/rest/api/v2010/docs/ListKeyResponse.md similarity index 95% rename from rest/api/v2010/docs/ApiV2010AccountKeyReadResponse.md rename to rest/api/v2010/docs/ListKeyResponse.md index b312f02a5..7a761a4e0 100644 --- a/rest/api/v2010/docs/ApiV2010AccountKeyReadResponse.md +++ b/rest/api/v2010/docs/ListKeyResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountKeyReadResponse +# ListKeyResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountMessageMediaReadResponse.md b/rest/api/v2010/docs/ListMediaResponse.md similarity index 94% rename from rest/api/v2010/docs/ApiV2010AccountMessageMediaReadResponse.md rename to rest/api/v2010/docs/ListMediaResponse.md index 6270377d7..85bfc12c2 100644 --- a/rest/api/v2010/docs/ApiV2010AccountMessageMediaReadResponse.md +++ b/rest/api/v2010/docs/ListMediaResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountMessageMediaReadResponse +# ListMediaResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountQueueMemberReadResponse.md b/rest/api/v2010/docs/ListMemberResponse.md similarity index 94% rename from rest/api/v2010/docs/ApiV2010AccountQueueMemberReadResponse.md rename to rest/api/v2010/docs/ListMemberResponse.md index 5a4bbcdf8..3550375bf 100644 --- a/rest/api/v2010/docs/ApiV2010AccountQueueMemberReadResponse.md +++ b/rest/api/v2010/docs/ListMemberResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountQueueMemberReadResponse +# ListMemberResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountMessageReadResponse.md b/rest/api/v2010/docs/ListMessageResponse.md similarity index 95% rename from rest/api/v2010/docs/ApiV2010AccountMessageReadResponse.md rename to rest/api/v2010/docs/ListMessageResponse.md index 469edb2af..7f92827e1 100644 --- a/rest/api/v2010/docs/ApiV2010AccountMessageReadResponse.md +++ b/rest/api/v2010/docs/ListMessageResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountMessageReadResponse +# ListMessageResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountNotificationReadResponse.md b/rest/api/v2010/docs/ListNotificationResponse.md similarity index 94% rename from rest/api/v2010/docs/ApiV2010AccountNotificationReadResponse.md rename to rest/api/v2010/docs/ListNotificationResponse.md index 604a35ce5..ed8b5ace1 100644 --- a/rest/api/v2010/docs/ApiV2010AccountNotificationReadResponse.md +++ b/rest/api/v2010/docs/ListNotificationResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountNotificationReadResponse +# ListNotificationResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountOutgoingCallerIdReadResponse.md b/rest/api/v2010/docs/ListOutgoingCallerIdResponse.md similarity index 94% rename from rest/api/v2010/docs/ApiV2010AccountOutgoingCallerIdReadResponse.md rename to rest/api/v2010/docs/ListOutgoingCallerIdResponse.md index 361575329..dcbdab8cb 100644 --- a/rest/api/v2010/docs/ApiV2010AccountOutgoingCallerIdReadResponse.md +++ b/rest/api/v2010/docs/ListOutgoingCallerIdResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountOutgoingCallerIdReadResponse +# ListOutgoingCallerIdResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountConferenceParticipantReadResponse.md b/rest/api/v2010/docs/ListParticipantResponse.md similarity index 93% rename from rest/api/v2010/docs/ApiV2010AccountConferenceParticipantReadResponse.md rename to rest/api/v2010/docs/ListParticipantResponse.md index 30fdab183..3cd1c5015 100644 --- a/rest/api/v2010/docs/ApiV2010AccountConferenceParticipantReadResponse.md +++ b/rest/api/v2010/docs/ListParticipantResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountConferenceParticipantReadResponse +# ListParticipantResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountQueueReadResponse.md b/rest/api/v2010/docs/ListQueueResponse.md similarity index 95% rename from rest/api/v2010/docs/ApiV2010AccountQueueReadResponse.md rename to rest/api/v2010/docs/ListQueueResponse.md index 568a02915..a8ddba31c 100644 --- a/rest/api/v2010/docs/ApiV2010AccountQueueReadResponse.md +++ b/rest/api/v2010/docs/ListQueueResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountQueueReadResponse +# ListQueueResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse.md b/rest/api/v2010/docs/ListRecordingAddOnResultPayloadResponse.md similarity index 90% rename from rest/api/v2010/docs/ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse.md rename to rest/api/v2010/docs/ListRecordingAddOnResultPayloadResponse.md index 593f2466c..66e8fa141 100644 --- a/rest/api/v2010/docs/ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse.md +++ b/rest/api/v2010/docs/ListRecordingAddOnResultPayloadResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse +# ListRecordingAddOnResultPayloadResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountRecordingRecordingAddOnResultReadResponse.md b/rest/api/v2010/docs/ListRecordingAddOnResultResponse.md similarity index 92% rename from rest/api/v2010/docs/ApiV2010AccountRecordingRecordingAddOnResultReadResponse.md rename to rest/api/v2010/docs/ListRecordingAddOnResultResponse.md index f17bc9b65..021ed52ab 100644 --- a/rest/api/v2010/docs/ApiV2010AccountRecordingRecordingAddOnResultReadResponse.md +++ b/rest/api/v2010/docs/ListRecordingAddOnResultResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountRecordingRecordingAddOnResultReadResponse +# ListRecordingAddOnResultResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountRecordingReadResponse.md b/rest/api/v2010/docs/ListRecordingResponse.md similarity index 94% rename from rest/api/v2010/docs/ApiV2010AccountRecordingReadResponse.md rename to rest/api/v2010/docs/ListRecordingResponse.md index 30d873c92..833d0217b 100644 --- a/rest/api/v2010/docs/ApiV2010AccountRecordingReadResponse.md +++ b/rest/api/v2010/docs/ListRecordingResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountRecordingReadResponse +# ListRecordingResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountRecordingRecordingTranscriptionReadResponse.md b/rest/api/v2010/docs/ListRecordingTranscriptionResponse.md similarity index 92% rename from rest/api/v2010/docs/ApiV2010AccountRecordingRecordingTranscriptionReadResponse.md rename to rest/api/v2010/docs/ListRecordingTranscriptionResponse.md index fa7950a68..da8e28b04 100644 --- a/rest/api/v2010/docs/ApiV2010AccountRecordingRecordingTranscriptionReadResponse.md +++ b/rest/api/v2010/docs/ListRecordingTranscriptionResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountRecordingRecordingTranscriptionReadResponse +# ListRecordingTranscriptionResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountShortCodeReadResponse.md b/rest/api/v2010/docs/ListShortCodeResponse.md similarity index 94% rename from rest/api/v2010/docs/ApiV2010AccountShortCodeReadResponse.md rename to rest/api/v2010/docs/ListShortCodeResponse.md index b0825a85d..ed3e7631a 100644 --- a/rest/api/v2010/docs/ApiV2010AccountShortCodeReadResponse.md +++ b/rest/api/v2010/docs/ListShortCodeResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountShortCodeReadResponse +# ListShortCodeResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountSigningKeyReadResponse.md b/rest/api/v2010/docs/ListSigningKeyResponse.md similarity index 94% rename from rest/api/v2010/docs/ApiV2010AccountSigningKeyReadResponse.md rename to rest/api/v2010/docs/ListSigningKeyResponse.md index 2c7d510a2..9c486fb8e 100644 --- a/rest/api/v2010/docs/ApiV2010AccountSigningKeyReadResponse.md +++ b/rest/api/v2010/docs/ListSigningKeyResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountSigningKeyReadResponse +# ListSigningKeyResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse.md b/rest/api/v2010/docs/ListSipAuthCallsCredentialListMappingResponse.md similarity index 89% rename from rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse.md rename to rest/api/v2010/docs/ListSipAuthCallsCredentialListMappingResponse.md index e9272af56..1d0b69ba0 100644 --- a/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse.md +++ b/rest/api/v2010/docs/ListSipAuthCallsCredentialListMappingResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse +# ListSipAuthCallsCredentialListMappingResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse.md b/rest/api/v2010/docs/ListSipAuthCallsIpAccessControlListMappingResponse.md similarity index 89% rename from rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse.md rename to rest/api/v2010/docs/ListSipAuthCallsIpAccessControlListMappingResponse.md index 425d12a37..652ca9b58 100644 --- a/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse.md +++ b/rest/api/v2010/docs/ListSipAuthCallsIpAccessControlListMappingResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse +# ListSipAuthCallsIpAccessControlListMappingResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse.md b/rest/api/v2010/docs/ListSipAuthRegistrationsCredentialListMappingResponse.md similarity index 88% rename from rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse.md rename to rest/api/v2010/docs/ListSipAuthRegistrationsCredentialListMappingResponse.md index 982d88483..ebbe65b83 100644 --- a/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse.md +++ b/rest/api/v2010/docs/ListSipAuthRegistrationsCredentialListMappingResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse +# ListSipAuthRegistrationsCredentialListMappingResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse.md b/rest/api/v2010/docs/ListSipCredentialListMappingResponse.md similarity index 92% rename from rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse.md rename to rest/api/v2010/docs/ListSipCredentialListMappingResponse.md index 24ea8efd0..aaecda8b7 100644 --- a/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse.md +++ b/rest/api/v2010/docs/ListSipCredentialListMappingResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse +# ListSipCredentialListMappingResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountSipSipCredentialListReadResponse.md b/rest/api/v2010/docs/ListSipCredentialListResponse.md similarity index 93% rename from rest/api/v2010/docs/ApiV2010AccountSipSipCredentialListReadResponse.md rename to rest/api/v2010/docs/ListSipCredentialListResponse.md index d1f6f9f0d..85e81dca9 100644 --- a/rest/api/v2010/docs/ApiV2010AccountSipSipCredentialListReadResponse.md +++ b/rest/api/v2010/docs/ListSipCredentialListResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountSipSipCredentialListReadResponse +# ListSipCredentialListResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountSipSipCredentialListSipCredentialReadResponse.md b/rest/api/v2010/docs/ListSipCredentialResponse.md similarity index 92% rename from rest/api/v2010/docs/ApiV2010AccountSipSipCredentialListSipCredentialReadResponse.md rename to rest/api/v2010/docs/ListSipCredentialResponse.md index 1ea161d16..ca7e635c1 100644 --- a/rest/api/v2010/docs/ApiV2010AccountSipSipCredentialListSipCredentialReadResponse.md +++ b/rest/api/v2010/docs/ListSipCredentialResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountSipSipCredentialListSipCredentialReadResponse +# ListSipCredentialResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountSipSipDomainReadResponse.md b/rest/api/v2010/docs/ListSipDomainResponse.md similarity index 94% rename from rest/api/v2010/docs/ApiV2010AccountSipSipDomainReadResponse.md rename to rest/api/v2010/docs/ListSipDomainResponse.md index 782ffd5fd..2b680abc6 100644 --- a/rest/api/v2010/docs/ApiV2010AccountSipSipDomainReadResponse.md +++ b/rest/api/v2010/docs/ListSipDomainResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountSipSipDomainReadResponse +# ListSipDomainResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse.md b/rest/api/v2010/docs/ListSipIpAccessControlListMappingResponse.md similarity index 91% rename from rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse.md rename to rest/api/v2010/docs/ListSipIpAccessControlListMappingResponse.md index a0d326c1a..232056eea 100644 --- a/rest/api/v2010/docs/ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse.md +++ b/rest/api/v2010/docs/ListSipIpAccessControlListMappingResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse +# ListSipIpAccessControlListMappingResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountSipSipIpAccessControlListReadResponse.md b/rest/api/v2010/docs/ListSipIpAccessControlListResponse.md similarity index 93% rename from rest/api/v2010/docs/ApiV2010AccountSipSipIpAccessControlListReadResponse.md rename to rest/api/v2010/docs/ListSipIpAccessControlListResponse.md index 77bf0b45c..ea6381bc0 100644 --- a/rest/api/v2010/docs/ApiV2010AccountSipSipIpAccessControlListReadResponse.md +++ b/rest/api/v2010/docs/ListSipIpAccessControlListResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountSipSipIpAccessControlListReadResponse +# ListSipIpAccessControlListResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse.md b/rest/api/v2010/docs/ListSipIpAddressResponse.md similarity index 92% rename from rest/api/v2010/docs/ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse.md rename to rest/api/v2010/docs/ListSipIpAddressResponse.md index 415d63db0..ee68a1f93 100644 --- a/rest/api/v2010/docs/ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse.md +++ b/rest/api/v2010/docs/ListSipIpAddressResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse +# ListSipIpAddressResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountTranscriptionReadResponse.md b/rest/api/v2010/docs/ListTranscriptionResponse.md similarity index 94% rename from rest/api/v2010/docs/ApiV2010AccountTranscriptionReadResponse.md rename to rest/api/v2010/docs/ListTranscriptionResponse.md index 1c58918f9..1f7338394 100644 --- a/rest/api/v2010/docs/ApiV2010AccountTranscriptionReadResponse.md +++ b/rest/api/v2010/docs/ListTranscriptionResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountTranscriptionReadResponse +# ListTranscriptionResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse.md b/rest/api/v2010/docs/ListUsageRecordAllTimeResponse.md similarity index 92% rename from rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse.md rename to rest/api/v2010/docs/ListUsageRecordAllTimeResponse.md index d2248ee26..2760ae88e 100644 --- a/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse.md +++ b/rest/api/v2010/docs/ListUsageRecordAllTimeResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse +# ListUsageRecordAllTimeResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse.md b/rest/api/v2010/docs/ListUsageRecordDailyResponse.md similarity index 92% rename from rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse.md rename to rest/api/v2010/docs/ListUsageRecordDailyResponse.md index daee53966..6b1772a14 100644 --- a/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse.md +++ b/rest/api/v2010/docs/ListUsageRecordDailyResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse +# ListUsageRecordDailyResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse.md b/rest/api/v2010/docs/ListUsageRecordLastMonthResponse.md similarity index 92% rename from rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse.md rename to rest/api/v2010/docs/ListUsageRecordLastMonthResponse.md index 7e646fe91..25b845704 100644 --- a/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse.md +++ b/rest/api/v2010/docs/ListUsageRecordLastMonthResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse +# ListUsageRecordLastMonthResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse.md b/rest/api/v2010/docs/ListUsageRecordMonthlyResponse.md similarity index 92% rename from rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse.md rename to rest/api/v2010/docs/ListUsageRecordMonthlyResponse.md index b0da189a6..82fc8e66e 100644 --- a/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse.md +++ b/rest/api/v2010/docs/ListUsageRecordMonthlyResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse +# ListUsageRecordMonthlyResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordReadResponse.md b/rest/api/v2010/docs/ListUsageRecordResponse.md similarity index 94% rename from rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordReadResponse.md rename to rest/api/v2010/docs/ListUsageRecordResponse.md index fd2eeb391..eb29141a6 100644 --- a/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordReadResponse.md +++ b/rest/api/v2010/docs/ListUsageRecordResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountUsageUsageRecordReadResponse +# ListUsageRecordResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse.md b/rest/api/v2010/docs/ListUsageRecordThisMonthResponse.md similarity index 92% rename from rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse.md rename to rest/api/v2010/docs/ListUsageRecordThisMonthResponse.md index 974ffc0c8..2501fecc1 100644 --- a/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse.md +++ b/rest/api/v2010/docs/ListUsageRecordThisMonthResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse +# ListUsageRecordThisMonthResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse.md b/rest/api/v2010/docs/ListUsageRecordTodayResponse.md similarity index 92% rename from rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse.md rename to rest/api/v2010/docs/ListUsageRecordTodayResponse.md index 2be41ec21..1c89b7a53 100644 --- a/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse.md +++ b/rest/api/v2010/docs/ListUsageRecordTodayResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse +# ListUsageRecordTodayResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse.md b/rest/api/v2010/docs/ListUsageRecordYearlyResponse.md similarity index 92% rename from rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse.md rename to rest/api/v2010/docs/ListUsageRecordYearlyResponse.md index a952a69a0..d4601e62f 100644 --- a/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse.md +++ b/rest/api/v2010/docs/ListUsageRecordYearlyResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse +# ListUsageRecordYearlyResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse.md b/rest/api/v2010/docs/ListUsageRecordYesterdayResponse.md similarity index 92% rename from rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse.md rename to rest/api/v2010/docs/ListUsageRecordYesterdayResponse.md index 8dd295ae2..901f4c88a 100644 --- a/rest/api/v2010/docs/ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse.md +++ b/rest/api/v2010/docs/ListUsageRecordYesterdayResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse +# ListUsageRecordYesterdayResponse ## Properties diff --git a/rest/api/v2010/docs/ApiV2010AccountUsageUsageTriggerReadResponse.md b/rest/api/v2010/docs/ListUsageTriggerResponse.md similarity index 93% rename from rest/api/v2010/docs/ApiV2010AccountUsageUsageTriggerReadResponse.md rename to rest/api/v2010/docs/ListUsageTriggerResponse.md index 426e47248..a949851bf 100644 --- a/rest/api/v2010/docs/ApiV2010AccountUsageUsageTriggerReadResponse.md +++ b/rest/api/v2010/docs/ListUsageTriggerResponse.md @@ -1,4 +1,4 @@ -# ApiV2010AccountUsageUsageTriggerReadResponse +# ListUsageTriggerResponse ## Properties diff --git a/rest/api/v2010/docs/UpdateSipDomainRequest.md b/rest/api/v2010/docs/UpdateSipDomainRequest.md index 614556c43..660de924f 100644 --- a/rest/api/v2010/docs/UpdateSipDomainRequest.md +++ b/rest/api/v2010/docs/UpdateSipDomainRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ByocTrunkSid** | **string** | The SID of the BYOC Trunk(Bring Your Own Carrier) resource that the Sip Domain will be associated with. | [optional] -**DomainName** | **string** | The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and \"-\". | [optional] +**DomainName** | **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] **EmergencyCallerSid** | **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] **EmergencyCallingEnabled** | **bool** | Whether emergency calling is enabled for the domain. If enabled, allows emergency calls on the domain from phone numbers with validated addresses. | [optional] **FriendlyName** | **string** | A descriptive string that you created to describe the resource. It can be up to 64 characters long. | [optional] diff --git a/rest/api/v2010/model_api_v2010_account.go b/rest/api/v2010/model_api_v2010_account.go index f9cc968ec..7dbdefb81 100644 --- a/rest/api/v2010/model_api_v2010_account.go +++ b/rest/api/v2010/model_api_v2010_account.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_address.go b/rest/api/v2010/model_api_v2010_account_address.go index 8049a3679..d71ca7f47 100644 --- a/rest/api/v2010/model_api_v2010_account_address.go +++ b/rest/api/v2010/model_api_v2010_account_address.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_address_dependent_phone_number.go b/rest/api/v2010/model_api_v2010_account_address_dependent_phone_number.go index 51e0a2e98..97baaadc9 100644 --- a/rest/api/v2010/model_api_v2010_account_address_dependent_phone_number.go +++ b/rest/api/v2010/model_api_v2010_account_address_dependent_phone_number.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_application.go b/rest/api/v2010/model_api_v2010_account_application.go index e0e456af4..a7415bc58 100644 --- a/rest/api/v2010/model_api_v2010_account_application.go +++ b/rest/api/v2010/model_api_v2010_account_application.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_authorized_connect_app.go b/rest/api/v2010/model_api_v2010_account_authorized_connect_app.go index 79350e512..a71197120 100644 --- a/rest/api/v2010/model_api_v2010_account_authorized_connect_app.go +++ b/rest/api/v2010/model_api_v2010_account_authorized_connect_app.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country.go index dfd58bf51..48c7a90f9 100644 --- a/rest/api/v2010/model_api_v2010_account_available_phone_number_country.go +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_local.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_local.go index 79fa799ed..b425d195e 100644 --- a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_local.go +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_local.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_machine_to_machine.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_machine_to_machine.go index 1fa84b639..69fecc900 100644 --- a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_machine_to_machine.go +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_machine_to_machine.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_mobile.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_mobile.go index 48bf51f72..c46f9d140 100644 --- a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_mobile.go +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_mobile.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_national.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_national.go index 733f3a3c7..d3f16c43b 100644 --- a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_national.go +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_national.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_shared_cost.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_shared_cost.go index bcc22c8c3..f85779358 100644 --- a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_shared_cost.go +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_shared_cost.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_toll_free.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_toll_free.go index 9c0613a55..55892f300 100644 --- a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_toll_free.go +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_toll_free.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_voip.go b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_voip.go index 60acb4c7b..77ec510fd 100644 --- a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_voip.go +++ b/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_voip.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_balance.go b/rest/api/v2010/model_api_v2010_account_balance.go index 5e06184bf..02a779b4a 100644 --- a/rest/api/v2010/model_api_v2010_account_balance.go +++ b/rest/api/v2010/model_api_v2010_account_balance.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_call.go b/rest/api/v2010/model_api_v2010_account_call.go index ac2b280c0..6f31875b1 100644 --- a/rest/api/v2010/model_api_v2010_account_call.go +++ b/rest/api/v2010/model_api_v2010_account_call.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_call_call_event.go b/rest/api/v2010/model_api_v2010_account_call_call_event.go index 5dc01853c..a94eafeba 100644 --- a/rest/api/v2010/model_api_v2010_account_call_call_event.go +++ b/rest/api/v2010/model_api_v2010_account_call_call_event.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_call_call_feedback.go b/rest/api/v2010/model_api_v2010_account_call_call_feedback.go index 6aae1927f..4dfb907fe 100644 --- a/rest/api/v2010/model_api_v2010_account_call_call_feedback.go +++ b/rest/api/v2010/model_api_v2010_account_call_call_feedback.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_call_call_feedback_summary.go b/rest/api/v2010/model_api_v2010_account_call_call_feedback_summary.go index 5af60fdf5..d37725dec 100644 --- a/rest/api/v2010/model_api_v2010_account_call_call_feedback_summary.go +++ b/rest/api/v2010/model_api_v2010_account_call_call_feedback_summary.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_call_call_notification.go b/rest/api/v2010/model_api_v2010_account_call_call_notification.go index 662c388d8..38535627b 100644 --- a/rest/api/v2010/model_api_v2010_account_call_call_notification.go +++ b/rest/api/v2010/model_api_v2010_account_call_call_notification.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_call_call_notification_instance.go b/rest/api/v2010/model_api_v2010_account_call_call_notification_instance.go index 9cbe3d9ec..8a66dc59f 100644 --- a/rest/api/v2010/model_api_v2010_account_call_call_notification_instance.go +++ b/rest/api/v2010/model_api_v2010_account_call_call_notification_instance.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_call_call_recording.go b/rest/api/v2010/model_api_v2010_account_call_call_recording.go index 8e87c61f7..af36b8b12 100644 --- a/rest/api/v2010/model_api_v2010_account_call_call_recording.go +++ b/rest/api/v2010/model_api_v2010_account_call_call_recording.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_call_payments.go b/rest/api/v2010/model_api_v2010_account_call_payments.go index 268b51ed8..f761aaf30 100644 --- a/rest/api/v2010/model_api_v2010_account_call_payments.go +++ b/rest/api/v2010/model_api_v2010_account_call_payments.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_conference.go b/rest/api/v2010/model_api_v2010_account_conference.go index 853ef6524..9f49522f8 100644 --- a/rest/api/v2010/model_api_v2010_account_conference.go +++ b/rest/api/v2010/model_api_v2010_account_conference.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_conference_conference_recording.go b/rest/api/v2010/model_api_v2010_account_conference_conference_recording.go index 3518ae55a..87cd4de85 100644 --- a/rest/api/v2010/model_api_v2010_account_conference_conference_recording.go +++ b/rest/api/v2010/model_api_v2010_account_conference_conference_recording.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_conference_participant.go b/rest/api/v2010/model_api_v2010_account_conference_participant.go index 7ebb0bf13..44a2bb824 100644 --- a/rest/api/v2010/model_api_v2010_account_conference_participant.go +++ b/rest/api/v2010/model_api_v2010_account_conference_participant.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_connect_app.go b/rest/api/v2010/model_api_v2010_account_connect_app.go index da8dbef93..7bbaedc76 100644 --- a/rest/api/v2010/model_api_v2010_account_connect_app.go +++ b/rest/api/v2010/model_api_v2010_account_connect_app.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_incoming_phone_number.go b/rest/api/v2010/model_api_v2010_account_incoming_phone_number.go index 60288d394..94a957d8e 100644 --- a/rest/api/v2010/model_api_v2010_account_incoming_phone_number.go +++ b/rest/api/v2010/model_api_v2010_account_incoming_phone_number.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on.go b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on.go index ce78d64e5..d45e24918 100644 --- a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on.go +++ b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_incoming_phone_number_assigned_add_on_extension.go b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_incoming_phone_number_assigned_add_on_extension.go index ef3aef03d..d1e37f86d 100644 --- a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_incoming_phone_number_assigned_add_on_extension.go +++ b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_incoming_phone_number_assigned_add_on_extension.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_local.go b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_local.go index 292c8e332..ef2e69def 100644 --- a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_local.go +++ b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_local.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_mobile.go b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_mobile.go index 2a3706531..b0847196c 100644 --- a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_mobile.go +++ b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_mobile.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_toll_free.go b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_toll_free.go index 2a84ea7d0..4b4eaa356 100644 --- a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_toll_free.go +++ b/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_toll_free.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_key.go b/rest/api/v2010/model_api_v2010_account_key.go index 85bc0bbe9..61c71b87d 100644 --- a/rest/api/v2010/model_api_v2010_account_key.go +++ b/rest/api/v2010/model_api_v2010_account_key.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_message.go b/rest/api/v2010/model_api_v2010_account_message.go index 4a6d21817..cb1c3346f 100644 --- a/rest/api/v2010/model_api_v2010_account_message.go +++ b/rest/api/v2010/model_api_v2010_account_message.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_message_media.go b/rest/api/v2010/model_api_v2010_account_message_media.go index 3ffb405c0..73d592aff 100644 --- a/rest/api/v2010/model_api_v2010_account_message_media.go +++ b/rest/api/v2010/model_api_v2010_account_message_media.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_message_message_feedback.go b/rest/api/v2010/model_api_v2010_account_message_message_feedback.go index 9f707dee7..95a6bc2fd 100644 --- a/rest/api/v2010/model_api_v2010_account_message_message_feedback.go +++ b/rest/api/v2010/model_api_v2010_account_message_message_feedback.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_new_key.go b/rest/api/v2010/model_api_v2010_account_new_key.go index 40597ed1c..c48cb313b 100644 --- a/rest/api/v2010/model_api_v2010_account_new_key.go +++ b/rest/api/v2010/model_api_v2010_account_new_key.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_new_signing_key.go b/rest/api/v2010/model_api_v2010_account_new_signing_key.go index 944f3d2fd..0a2a0d5c8 100644 --- a/rest/api/v2010/model_api_v2010_account_new_signing_key.go +++ b/rest/api/v2010/model_api_v2010_account_new_signing_key.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_notification.go b/rest/api/v2010/model_api_v2010_account_notification.go index 202f60e15..a29c9839e 100644 --- a/rest/api/v2010/model_api_v2010_account_notification.go +++ b/rest/api/v2010/model_api_v2010_account_notification.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_notification_instance.go b/rest/api/v2010/model_api_v2010_account_notification_instance.go index cdc5012ae..9542a9e28 100644 --- a/rest/api/v2010/model_api_v2010_account_notification_instance.go +++ b/rest/api/v2010/model_api_v2010_account_notification_instance.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_outgoing_caller_id.go b/rest/api/v2010/model_api_v2010_account_outgoing_caller_id.go index 71d794e8e..bfa9a483d 100644 --- a/rest/api/v2010/model_api_v2010_account_outgoing_caller_id.go +++ b/rest/api/v2010/model_api_v2010_account_outgoing_caller_id.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_queue.go b/rest/api/v2010/model_api_v2010_account_queue.go index 6aa7e0de5..c7be73759 100644 --- a/rest/api/v2010/model_api_v2010_account_queue.go +++ b/rest/api/v2010/model_api_v2010_account_queue.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_queue_member.go b/rest/api/v2010/model_api_v2010_account_queue_member.go index 622cc8a67..b6f309ffd 100644 --- a/rest/api/v2010/model_api_v2010_account_queue_member.go +++ b/rest/api/v2010/model_api_v2010_account_queue_member.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_recording.go b/rest/api/v2010/model_api_v2010_account_recording.go index 0ff36806c..b522b3b78 100644 --- a/rest/api/v2010/model_api_v2010_account_recording.go +++ b/rest/api/v2010/model_api_v2010_account_recording.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result.go b/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result.go index e563b3cae..f282cb46d 100644 --- a/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result.go +++ b/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result_recording_add_on_result_payload.go b/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result_recording_add_on_result_payload.go index fe7da22ee..21998821f 100644 --- a/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result_recording_add_on_result_payload.go +++ b/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result_recording_add_on_result_payload.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_recording_recording_transcription.go b/rest/api/v2010/model_api_v2010_account_recording_recording_transcription.go index e3139ac69..e3811902b 100644 --- a/rest/api/v2010/model_api_v2010_account_recording_recording_transcription.go +++ b/rest/api/v2010/model_api_v2010_account_recording_recording_transcription.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_short_code.go b/rest/api/v2010/model_api_v2010_account_short_code.go index 5deffd761..232c07444 100644 --- a/rest/api/v2010/model_api_v2010_account_short_code.go +++ b/rest/api/v2010/model_api_v2010_account_short_code.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_signing_key.go b/rest/api/v2010/model_api_v2010_account_signing_key.go index 79b409d5d..d1b5aeddd 100644 --- a/rest/api/v2010/model_api_v2010_account_signing_key.go +++ b/rest/api/v2010/model_api_v2010_account_signing_key.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list.go b/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list.go index ddcb612a1..270c2cc68 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list.go +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list_sip_credential.go b/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list_sip_credential.go index d5d370945..f472ba4aa 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list_sip_credential.go +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list_sip_credential.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_domain.go b/rest/api/v2010/model_api_v2010_account_sip_sip_domain.go index d00025b87..33da85620 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_domain.go +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_domain.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_credential_list_mapping.go b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_credential_list_mapping.go index 000b1c531..efa5b204f 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_credential_list_mapping.go +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_credential_list_mapping.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_ip_access_control_list_mapping.go b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_ip_access_control_list_mapping.go index 2f5270b9a..795157d89 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_ip_access_control_list_mapping.go +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_ip_access_control_list_mapping.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_registrations_sip_auth_registrations_credential_list_mapping.go b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_registrations_sip_auth_registrations_credential_list_mapping.go index 5c0f2a860..193cd4173 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_registrations_sip_auth_registrations_credential_list_mapping.go +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_registrations_sip_auth_registrations_credential_list_mapping.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_credential_list_mapping.go b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_credential_list_mapping.go index 82fbb5fa7..413f903cf 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_credential_list_mapping.go +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_credential_list_mapping.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_ip_access_control_list_mapping.go b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_ip_access_control_list_mapping.go index a7256187b..d002a0e45 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_ip_access_control_list_mapping.go +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_ip_access_control_list_mapping.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list.go b/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list.go index 8bfcb50c4..d28fbbe10 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list.go +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list_sip_ip_address.go b/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list_sip_ip_address.go index 080f6ae73..e287fd413 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list_sip_ip_address.go +++ b/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list_sip_ip_address.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_token.go b/rest/api/v2010/model_api_v2010_account_token.go index b5cd4a869..74a5c4f90 100644 --- a/rest/api/v2010/model_api_v2010_account_token.go +++ b/rest/api/v2010/model_api_v2010_account_token.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_transcription.go b/rest/api/v2010/model_api_v2010_account_transcription.go index ee30ec184..c30e2bb39 100644 --- a/rest/api/v2010/model_api_v2010_account_transcription.go +++ b/rest/api/v2010/model_api_v2010_account_transcription.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record.go index 79c9a60f1..1b2afaf4b 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_record.go +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_all_time.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_all_time.go index 5e8425557..88a28a32a 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_all_time.go +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_all_time.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_daily.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_daily.go index b0ac69d12..ecb0b060d 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_daily.go +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_daily.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_last_month.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_last_month.go index 0b6a9fec4..350d3dffc 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_last_month.go +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_last_month.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_monthly.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_monthly.go index 9f277ec16..5bb65b562 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_monthly.go +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_monthly.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_this_month.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_this_month.go index f31958e73..4bbbef6f9 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_this_month.go +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_this_month.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_today.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_today.go index 425dab5d7..a32fab2c0 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_today.go +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_today.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yearly.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yearly.go index 4dbddf22b..e89519cd9 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yearly.go +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yearly.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yesterday.go b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yesterday.go index c90b62b5d..b078af1bf 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yesterday.go +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yesterday.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_trigger.go b/rest/api/v2010/model_api_v2010_account_usage_usage_trigger.go index 0dd1cbf7b..6801df8b3 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_trigger.go +++ b/rest/api/v2010/model_api_v2010_account_usage_usage_trigger.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_validation_request.go b/rest/api/v2010/model_api_v2010_account_validation_request.go index 467e3af58..6ef0d8ef5 100644 --- a/rest/api/v2010/model_api_v2010_account_validation_request.go +++ b/rest/api/v2010/model_api_v2010_account_validation_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_create_account_request.go b/rest/api/v2010/model_create_account_request.go index 8eb8a78c0..be960ac47 100644 --- a/rest/api/v2010/model_create_account_request.go +++ b/rest/api/v2010/model_create_account_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_create_address_request.go b/rest/api/v2010/model_create_address_request.go index 715c29a03..b1bbbf72e 100644 --- a/rest/api/v2010/model_create_address_request.go +++ b/rest/api/v2010/model_create_address_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_create_application_request.go b/rest/api/v2010/model_create_application_request.go index b8251dc62..e462078e6 100644 --- a/rest/api/v2010/model_create_application_request.go +++ b/rest/api/v2010/model_create_application_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_create_call_feedback_summary_request.go b/rest/api/v2010/model_create_call_feedback_summary_request.go index bc8526665..92db7c4bc 100644 --- a/rest/api/v2010/model_create_call_feedback_summary_request.go +++ b/rest/api/v2010/model_create_call_feedback_summary_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_create_call_recording_request.go b/rest/api/v2010/model_create_call_recording_request.go index afc2fdeb2..f4705e1c4 100644 --- a/rest/api/v2010/model_create_call_recording_request.go +++ b/rest/api/v2010/model_create_call_recording_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_create_call_request.go b/rest/api/v2010/model_create_call_request.go index fbe538285..389fb6b84 100644 --- a/rest/api/v2010/model_create_call_request.go +++ b/rest/api/v2010/model_create_call_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_create_incoming_phone_number_assigned_add_on_request.go b/rest/api/v2010/model_create_incoming_phone_number_assigned_add_on_request.go index 378966cde..4f67b17be 100644 --- a/rest/api/v2010/model_create_incoming_phone_number_assigned_add_on_request.go +++ b/rest/api/v2010/model_create_incoming_phone_number_assigned_add_on_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_create_incoming_phone_number_local_request.go b/rest/api/v2010/model_create_incoming_phone_number_local_request.go index da357d3bd..b731077ab 100644 --- a/rest/api/v2010/model_create_incoming_phone_number_local_request.go +++ b/rest/api/v2010/model_create_incoming_phone_number_local_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_create_incoming_phone_number_mobile_request.go b/rest/api/v2010/model_create_incoming_phone_number_mobile_request.go index 831b1f886..45e581984 100644 --- a/rest/api/v2010/model_create_incoming_phone_number_mobile_request.go +++ b/rest/api/v2010/model_create_incoming_phone_number_mobile_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_create_incoming_phone_number_request.go b/rest/api/v2010/model_create_incoming_phone_number_request.go index cc33f1106..59dae6062 100644 --- a/rest/api/v2010/model_create_incoming_phone_number_request.go +++ b/rest/api/v2010/model_create_incoming_phone_number_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_create_incoming_phone_number_toll_free_request.go b/rest/api/v2010/model_create_incoming_phone_number_toll_free_request.go index f02b28849..94f8b8114 100644 --- a/rest/api/v2010/model_create_incoming_phone_number_toll_free_request.go +++ b/rest/api/v2010/model_create_incoming_phone_number_toll_free_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_create_message_feedback_request.go b/rest/api/v2010/model_create_message_feedback_request.go index 0bda38e84..38e681f97 100644 --- a/rest/api/v2010/model_create_message_feedback_request.go +++ b/rest/api/v2010/model_create_message_feedback_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_create_message_request.go b/rest/api/v2010/model_create_message_request.go index 3aef1dd5b..af9f97b54 100644 --- a/rest/api/v2010/model_create_message_request.go +++ b/rest/api/v2010/model_create_message_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_create_new_key_request.go b/rest/api/v2010/model_create_new_key_request.go index ed65637bb..545f26c0b 100644 --- a/rest/api/v2010/model_create_new_key_request.go +++ b/rest/api/v2010/model_create_new_key_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_create_new_signing_key_request.go b/rest/api/v2010/model_create_new_signing_key_request.go index 47bd0786c..ef3f19700 100644 --- a/rest/api/v2010/model_create_new_signing_key_request.go +++ b/rest/api/v2010/model_create_new_signing_key_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_create_participant_request.go b/rest/api/v2010/model_create_participant_request.go index 0ea1731ff..33d2ae686 100644 --- a/rest/api/v2010/model_create_participant_request.go +++ b/rest/api/v2010/model_create_participant_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_create_payments_request.go b/rest/api/v2010/model_create_payments_request.go index 17bad142a..cfb3415dd 100644 --- a/rest/api/v2010/model_create_payments_request.go +++ b/rest/api/v2010/model_create_payments_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_create_queue_request.go b/rest/api/v2010/model_create_queue_request.go index 56bd864b9..78e023c27 100644 --- a/rest/api/v2010/model_create_queue_request.go +++ b/rest/api/v2010/model_create_queue_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_create_sip_auth_calls_credential_list_mapping_request.go b/rest/api/v2010/model_create_sip_auth_calls_credential_list_mapping_request.go index 7db451349..f52132871 100644 --- a/rest/api/v2010/model_create_sip_auth_calls_credential_list_mapping_request.go +++ b/rest/api/v2010/model_create_sip_auth_calls_credential_list_mapping_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_create_sip_auth_calls_ip_access_control_list_mapping_request.go b/rest/api/v2010/model_create_sip_auth_calls_ip_access_control_list_mapping_request.go index 2043bc008..1b1a113d4 100644 --- a/rest/api/v2010/model_create_sip_auth_calls_ip_access_control_list_mapping_request.go +++ b/rest/api/v2010/model_create_sip_auth_calls_ip_access_control_list_mapping_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_create_sip_auth_registrations_credential_list_mapping_request.go b/rest/api/v2010/model_create_sip_auth_registrations_credential_list_mapping_request.go index ac2a1e077..8b2238e73 100644 --- a/rest/api/v2010/model_create_sip_auth_registrations_credential_list_mapping_request.go +++ b/rest/api/v2010/model_create_sip_auth_registrations_credential_list_mapping_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_create_sip_credential_list_mapping_request.go b/rest/api/v2010/model_create_sip_credential_list_mapping_request.go index 6e4d6b0f1..00afb0688 100644 --- a/rest/api/v2010/model_create_sip_credential_list_mapping_request.go +++ b/rest/api/v2010/model_create_sip_credential_list_mapping_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_create_sip_credential_list_request.go b/rest/api/v2010/model_create_sip_credential_list_request.go index 7a35b2281..a45d836f9 100644 --- a/rest/api/v2010/model_create_sip_credential_list_request.go +++ b/rest/api/v2010/model_create_sip_credential_list_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_create_sip_credential_request.go b/rest/api/v2010/model_create_sip_credential_request.go index 170f7a4f2..a61b1a1be 100644 --- a/rest/api/v2010/model_create_sip_credential_request.go +++ b/rest/api/v2010/model_create_sip_credential_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_create_sip_domain_request.go b/rest/api/v2010/model_create_sip_domain_request.go index 5a9f2c291..631bde0fa 100644 --- a/rest/api/v2010/model_create_sip_domain_request.go +++ b/rest/api/v2010/model_create_sip_domain_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -13,7 +13,7 @@ package openapi type CreateSipDomainRequest struct { // The SID of the BYOC Trunk(Bring Your Own Carrier) resource that the Sip Domain will be associated with. ByocTrunkSid string `json:"ByocTrunkSid,omitempty"` - // The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and \"-\". + // 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`. DomainName string `json:"DomainName"` // 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. EmergencyCallerSid string `json:"EmergencyCallerSid,omitempty"` diff --git a/rest/api/v2010/model_create_sip_ip_access_control_list_mapping_request.go b/rest/api/v2010/model_create_sip_ip_access_control_list_mapping_request.go index 29034b02c..270bded6f 100644 --- a/rest/api/v2010/model_create_sip_ip_access_control_list_mapping_request.go +++ b/rest/api/v2010/model_create_sip_ip_access_control_list_mapping_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_create_sip_ip_access_control_list_request.go b/rest/api/v2010/model_create_sip_ip_access_control_list_request.go index 3cd0abed9..bad23cc61 100644 --- a/rest/api/v2010/model_create_sip_ip_access_control_list_request.go +++ b/rest/api/v2010/model_create_sip_ip_access_control_list_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_create_sip_ip_address_request.go b/rest/api/v2010/model_create_sip_ip_address_request.go index 6c7c8f910..02a8ede3d 100644 --- a/rest/api/v2010/model_create_sip_ip_address_request.go +++ b/rest/api/v2010/model_create_sip_ip_address_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_create_token_request.go b/rest/api/v2010/model_create_token_request.go index a757b0bdf..c32a43ac3 100644 --- a/rest/api/v2010/model_create_token_request.go +++ b/rest/api/v2010/model_create_token_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_create_usage_trigger_request.go b/rest/api/v2010/model_create_usage_trigger_request.go index a0e579f63..249055756 100644 --- a/rest/api/v2010/model_create_usage_trigger_request.go +++ b/rest/api/v2010/model_create_usage_trigger_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_create_validation_request_request.go b/rest/api/v2010/model_create_validation_request_request.go index ce426f8c2..66ab293e2 100644 --- a/rest/api/v2010/model_create_validation_request_request.go +++ b/rest/api/v2010/model_create_validation_request_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_api_v2010_account_read_response.go b/rest/api/v2010/model_list_account_response.go similarity index 81% rename from rest/api/v2010/model_api_v2010_account_read_response.go rename to rest/api/v2010/model_list_account_response.go index 86bd7a484..b5f9fa672 100644 --- a/rest/api/v2010/model_api_v2010_account_read_response.go +++ b/rest/api/v2010/model_list_account_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountReadResponse struct for ApiV2010AccountReadResponse -type ApiV2010AccountReadResponse struct { +// ListAccountResponse struct for ListAccountResponse +type ListAccountResponse struct { Accounts []ApiV2010Account `json:"Accounts,omitempty"` End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_address_read_response.go b/rest/api/v2010/model_list_address_response.go similarity index 79% rename from rest/api/v2010/model_api_v2010_account_address_read_response.go rename to rest/api/v2010/model_list_address_response.go index d865474b2..d80599b03 100644 --- a/rest/api/v2010/model_api_v2010_account_address_read_response.go +++ b/rest/api/v2010/model_list_address_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountAddressReadResponse struct for ApiV2010AccountAddressReadResponse -type ApiV2010AccountAddressReadResponse struct { +// ListAddressResponse struct for ListAddressResponse +type ListAddressResponse struct { Addresses []ApiV2010AccountAddress `json:"Addresses,omitempty"` End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_application_read_response.go b/rest/api/v2010/model_list_application_response.go similarity index 78% rename from rest/api/v2010/model_api_v2010_account_application_read_response.go rename to rest/api/v2010/model_list_application_response.go index c2374c8eb..ed4d7a7c7 100644 --- a/rest/api/v2010/model_api_v2010_account_application_read_response.go +++ b/rest/api/v2010/model_list_application_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountApplicationReadResponse struct for ApiV2010AccountApplicationReadResponse -type ApiV2010AccountApplicationReadResponse struct { +// ListApplicationResponse struct for ListApplicationResponse +type ListApplicationResponse struct { Applications []ApiV2010AccountApplication `json:"Applications,omitempty"` End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_authorized_connect_app_read_response.go b/rest/api/v2010/model_list_authorized_connect_app_response.go similarity index 76% rename from rest/api/v2010/model_api_v2010_account_authorized_connect_app_read_response.go rename to rest/api/v2010/model_list_authorized_connect_app_response.go index 1c2931c7d..fb9eccd76 100644 --- a/rest/api/v2010/model_api_v2010_account_authorized_connect_app_read_response.go +++ b/rest/api/v2010/model_list_authorized_connect_app_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountAuthorizedConnectAppReadResponse struct for ApiV2010AccountAuthorizedConnectAppReadResponse -type ApiV2010AccountAuthorizedConnectAppReadResponse struct { +// ListAuthorizedConnectAppResponse struct for ListAuthorizedConnectAppResponse +type ListAuthorizedConnectAppResponse struct { AuthorizedConnectApps []ApiV2010AccountAuthorizedConnectApp `json:"AuthorizedConnectApps,omitempty"` End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_read_response.go b/rest/api/v2010/model_list_available_phone_number_country_response.go similarity index 74% rename from rest/api/v2010/model_api_v2010_account_available_phone_number_country_read_response.go rename to rest/api/v2010/model_list_available_phone_number_country_response.go index 7a1525af8..965da5f0b 100644 --- a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_read_response.go +++ b/rest/api/v2010/model_list_available_phone_number_country_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountAvailablePhoneNumberCountryReadResponse struct for ApiV2010AccountAvailablePhoneNumberCountryReadResponse -type ApiV2010AccountAvailablePhoneNumberCountryReadResponse struct { +// ListAvailablePhoneNumberCountryResponse struct for ListAvailablePhoneNumberCountryResponse +type ListAvailablePhoneNumberCountryResponse struct { Countries []ApiV2010AccountAvailablePhoneNumberCountry `json:"Countries,omitempty"` End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_local_read_response.go b/rest/api/v2010/model_list_available_phone_number_local_response.go similarity index 69% rename from rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_local_read_response.go rename to rest/api/v2010/model_list_available_phone_number_local_response.go index 953ac5dc3..efa07272a 100644 --- a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_local_read_response.go +++ b/rest/api/v2010/model_list_available_phone_number_local_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse struct for ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse -type ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocalReadResponse struct { +// ListAvailablePhoneNumberLocalResponse struct for ListAvailablePhoneNumberLocalResponse +type ListAvailablePhoneNumberLocalResponse struct { AvailablePhoneNumbers []ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberLocal `json:"AvailablePhoneNumbers,omitempty"` End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_machine_to_machine_read_response.go b/rest/api/v2010/model_list_available_phone_number_machine_to_machine_response.go similarity index 67% rename from rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_machine_to_machine_read_response.go rename to rest/api/v2010/model_list_available_phone_number_machine_to_machine_response.go index 7a8b4d7f3..f50d8e6c0 100644 --- a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_machine_to_machine_read_response.go +++ b/rest/api/v2010/model_list_available_phone_number_machine_to_machine_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse struct for ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse -type ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachineReadResponse struct { +// ListAvailablePhoneNumberMachineToMachineResponse struct for ListAvailablePhoneNumberMachineToMachineResponse +type ListAvailablePhoneNumberMachineToMachineResponse struct { AvailablePhoneNumbers []ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMachineToMachine `json:"AvailablePhoneNumbers,omitempty"` End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_mobile_read_response.go b/rest/api/v2010/model_list_available_phone_number_mobile_response.go similarity index 69% rename from rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_mobile_read_response.go rename to rest/api/v2010/model_list_available_phone_number_mobile_response.go index 2e1a99df5..7c18697ef 100644 --- a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_mobile_read_response.go +++ b/rest/api/v2010/model_list_available_phone_number_mobile_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse struct for ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse -type ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobileReadResponse struct { +// ListAvailablePhoneNumberMobileResponse struct for ListAvailablePhoneNumberMobileResponse +type ListAvailablePhoneNumberMobileResponse struct { AvailablePhoneNumbers []ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberMobile `json:"AvailablePhoneNumbers,omitempty"` End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_national_read_response.go b/rest/api/v2010/model_list_available_phone_number_national_response.go similarity index 69% rename from rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_national_read_response.go rename to rest/api/v2010/model_list_available_phone_number_national_response.go index 3a533a76d..0b5cd825f 100644 --- a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_national_read_response.go +++ b/rest/api/v2010/model_list_available_phone_number_national_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse struct for ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse -type ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNationalReadResponse struct { +// ListAvailablePhoneNumberNationalResponse struct for ListAvailablePhoneNumberNationalResponse +type ListAvailablePhoneNumberNationalResponse struct { AvailablePhoneNumbers []ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberNational `json:"AvailablePhoneNumbers,omitempty"` End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_shared_cost_read_response.go b/rest/api/v2010/model_list_available_phone_number_shared_cost_response.go similarity index 68% rename from rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_shared_cost_read_response.go rename to rest/api/v2010/model_list_available_phone_number_shared_cost_response.go index a1cf8b6b4..f0d591e76 100644 --- a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_shared_cost_read_response.go +++ b/rest/api/v2010/model_list_available_phone_number_shared_cost_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse struct for ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse -type ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCostReadResponse struct { +// ListAvailablePhoneNumberSharedCostResponse struct for ListAvailablePhoneNumberSharedCostResponse +type ListAvailablePhoneNumberSharedCostResponse struct { AvailablePhoneNumbers []ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberSharedCost `json:"AvailablePhoneNumbers,omitempty"` End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_toll_free_read_response.go b/rest/api/v2010/model_list_available_phone_number_toll_free_response.go similarity index 69% rename from rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_toll_free_read_response.go rename to rest/api/v2010/model_list_available_phone_number_toll_free_response.go index bca283de9..b1de97855 100644 --- a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_toll_free_read_response.go +++ b/rest/api/v2010/model_list_available_phone_number_toll_free_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse struct for ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse -type ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFreeReadResponse struct { +// ListAvailablePhoneNumberTollFreeResponse struct for ListAvailablePhoneNumberTollFreeResponse +type ListAvailablePhoneNumberTollFreeResponse struct { AvailablePhoneNumbers []ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberTollFree `json:"AvailablePhoneNumbers,omitempty"` End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_voip_read_response.go b/rest/api/v2010/model_list_available_phone_number_voip_response.go similarity index 69% rename from rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_voip_read_response.go rename to rest/api/v2010/model_list_available_phone_number_voip_response.go index 79474a628..b9caa7724 100644 --- a/rest/api/v2010/model_api_v2010_account_available_phone_number_country_available_phone_number_voip_read_response.go +++ b/rest/api/v2010/model_list_available_phone_number_voip_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse struct for ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse -type ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoipReadResponse struct { +// ListAvailablePhoneNumberVoipResponse struct for ListAvailablePhoneNumberVoipResponse +type ListAvailablePhoneNumberVoipResponse struct { AvailablePhoneNumbers []ApiV2010AccountAvailablePhoneNumberCountryAvailablePhoneNumberVoip `json:"AvailablePhoneNumbers,omitempty"` End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_call_call_event_read_response.go b/rest/api/v2010/model_list_call_event_response.go similarity index 77% rename from rest/api/v2010/model_api_v2010_account_call_call_event_read_response.go rename to rest/api/v2010/model_list_call_event_response.go index 80f1e353b..ebf1c1583 100644 --- a/rest/api/v2010/model_api_v2010_account_call_call_event_read_response.go +++ b/rest/api/v2010/model_list_call_event_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountCallCallEventReadResponse struct for ApiV2010AccountCallCallEventReadResponse -type ApiV2010AccountCallCallEventReadResponse struct { +// ListCallEventResponse struct for ListCallEventResponse +type ListCallEventResponse struct { End int32 `json:"End,omitempty"` Events []ApiV2010AccountCallCallEvent `json:"Events,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_call_call_notification_read_response.go b/rest/api/v2010/model_list_call_notification_response.go similarity index 76% rename from rest/api/v2010/model_api_v2010_account_call_call_notification_read_response.go rename to rest/api/v2010/model_list_call_notification_response.go index 7ba821da4..70a92f7dd 100644 --- a/rest/api/v2010/model_api_v2010_account_call_call_notification_read_response.go +++ b/rest/api/v2010/model_list_call_notification_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountCallCallNotificationReadResponse struct for ApiV2010AccountCallCallNotificationReadResponse -type ApiV2010AccountCallCallNotificationReadResponse struct { +// ListCallNotificationResponse struct for ListCallNotificationResponse +type ListCallNotificationResponse struct { End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` NextPageUri string `json:"NextPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_call_call_recording_read_response.go b/rest/api/v2010/model_list_call_recording_response.go similarity index 76% rename from rest/api/v2010/model_api_v2010_account_call_call_recording_read_response.go rename to rest/api/v2010/model_list_call_recording_response.go index 1a00fbca0..bd2bd26f7 100644 --- a/rest/api/v2010/model_api_v2010_account_call_call_recording_read_response.go +++ b/rest/api/v2010/model_list_call_recording_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountCallCallRecordingReadResponse struct for ApiV2010AccountCallCallRecordingReadResponse -type ApiV2010AccountCallCallRecordingReadResponse struct { +// ListCallRecordingResponse struct for ListCallRecordingResponse +type ListCallRecordingResponse struct { End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` NextPageUri string `json:"NextPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_call_read_response.go b/rest/api/v2010/model_list_call_response.go similarity index 80% rename from rest/api/v2010/model_api_v2010_account_call_read_response.go rename to rest/api/v2010/model_list_call_response.go index 692b237ae..1b8f24387 100644 --- a/rest/api/v2010/model_api_v2010_account_call_read_response.go +++ b/rest/api/v2010/model_list_call_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountCallReadResponse struct for ApiV2010AccountCallReadResponse -type ApiV2010AccountCallReadResponse struct { +// ListCallResponse struct for ListCallResponse +type ListCallResponse struct { Calls []ApiV2010AccountCall `json:"Calls,omitempty"` End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_conference_conference_recording_read_response.go b/rest/api/v2010/model_list_conference_recording_response.go similarity index 73% rename from rest/api/v2010/model_api_v2010_account_conference_conference_recording_read_response.go rename to rest/api/v2010/model_list_conference_recording_response.go index fd6fbcf20..f7f06b97c 100644 --- a/rest/api/v2010/model_api_v2010_account_conference_conference_recording_read_response.go +++ b/rest/api/v2010/model_list_conference_recording_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountConferenceConferenceRecordingReadResponse struct for ApiV2010AccountConferenceConferenceRecordingReadResponse -type ApiV2010AccountConferenceConferenceRecordingReadResponse struct { +// ListConferenceRecordingResponse struct for ListConferenceRecordingResponse +type ListConferenceRecordingResponse struct { End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` NextPageUri string `json:"NextPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_conference_read_response.go b/rest/api/v2010/model_list_conference_response.go similarity index 78% rename from rest/api/v2010/model_api_v2010_account_conference_read_response.go rename to rest/api/v2010/model_list_conference_response.go index 80920ea81..141bc25fc 100644 --- a/rest/api/v2010/model_api_v2010_account_conference_read_response.go +++ b/rest/api/v2010/model_list_conference_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountConferenceReadResponse struct for ApiV2010AccountConferenceReadResponse -type ApiV2010AccountConferenceReadResponse struct { +// ListConferenceResponse struct for ListConferenceResponse +type ListConferenceResponse struct { Conferences []ApiV2010AccountConference `json:"Conferences,omitempty"` End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_connect_app_read_response.go b/rest/api/v2010/model_list_connect_app_response.go similarity index 78% rename from rest/api/v2010/model_api_v2010_account_connect_app_read_response.go rename to rest/api/v2010/model_list_connect_app_response.go index ed0fc75c6..c1ba77079 100644 --- a/rest/api/v2010/model_api_v2010_account_connect_app_read_response.go +++ b/rest/api/v2010/model_list_connect_app_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountConnectAppReadResponse struct for ApiV2010AccountConnectAppReadResponse -type ApiV2010AccountConnectAppReadResponse struct { +// ListConnectAppResponse struct for ListConnectAppResponse +type ListConnectAppResponse struct { ConnectApps []ApiV2010AccountConnectApp `json:"ConnectApps,omitempty"` End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_address_dependent_phone_number_read_response.go b/rest/api/v2010/model_list_dependent_phone_number_response.go similarity index 74% rename from rest/api/v2010/model_api_v2010_account_address_dependent_phone_number_read_response.go rename to rest/api/v2010/model_list_dependent_phone_number_response.go index a633166b5..48bf91e34 100644 --- a/rest/api/v2010/model_api_v2010_account_address_dependent_phone_number_read_response.go +++ b/rest/api/v2010/model_list_dependent_phone_number_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountAddressDependentPhoneNumberReadResponse struct for ApiV2010AccountAddressDependentPhoneNumberReadResponse -type ApiV2010AccountAddressDependentPhoneNumberReadResponse struct { +// ListDependentPhoneNumberResponse struct for ListDependentPhoneNumberResponse +type ListDependentPhoneNumberResponse struct { DependentPhoneNumbers []ApiV2010AccountAddressDependentPhoneNumber `json:"DependentPhoneNumbers,omitempty"` End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_incoming_phone_number_assigned_add_on_extension_read_response.go b/rest/api/v2010/model_list_incoming_phone_number_assigned_add_on_extension_response.go similarity index 62% rename from rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_incoming_phone_number_assigned_add_on_extension_read_response.go rename to rest/api/v2010/model_list_incoming_phone_number_assigned_add_on_extension_response.go index df989d248..f3476487e 100644 --- a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_incoming_phone_number_assigned_add_on_extension_read_response.go +++ b/rest/api/v2010/model_list_incoming_phone_number_assigned_add_on_extension_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse struct for ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse -type ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtensionReadResponse struct { +// ListIncomingPhoneNumberAssignedAddOnExtensionResponse struct for ListIncomingPhoneNumberAssignedAddOnExtensionResponse +type ListIncomingPhoneNumberAssignedAddOnExtensionResponse struct { End int32 `json:"End,omitempty"` Extensions []ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnIncomingPhoneNumberAssignedAddOnExtension `json:"Extensions,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_read_response.go b/rest/api/v2010/model_list_incoming_phone_number_assigned_add_on_response.go similarity index 69% rename from rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_read_response.go rename to rest/api/v2010/model_list_incoming_phone_number_assigned_add_on_response.go index 8595413e8..d15ae29c9 100644 --- a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_assigned_add_on_read_response.go +++ b/rest/api/v2010/model_list_incoming_phone_number_assigned_add_on_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse struct for ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse -type ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOnReadResponse struct { +// ListIncomingPhoneNumberAssignedAddOnResponse struct for ListIncomingPhoneNumberAssignedAddOnResponse +type ListIncomingPhoneNumberAssignedAddOnResponse struct { AssignedAddOns []ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberAssignedAddOn `json:"AssignedAddOns,omitempty"` End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_local_read_response.go b/rest/api/v2010/model_list_incoming_phone_number_local_response.go similarity index 71% rename from rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_local_read_response.go rename to rest/api/v2010/model_list_incoming_phone_number_local_response.go index 3af700235..acc8f84f9 100644 --- a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_local_read_response.go +++ b/rest/api/v2010/model_list_incoming_phone_number_local_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse struct for ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse -type ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocalReadResponse struct { +// ListIncomingPhoneNumberLocalResponse struct for ListIncomingPhoneNumberLocalResponse +type ListIncomingPhoneNumberLocalResponse struct { End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` IncomingPhoneNumbers []ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberLocal `json:"IncomingPhoneNumbers,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_mobile_read_response.go b/rest/api/v2010/model_list_incoming_phone_number_mobile_response.go similarity index 71% rename from rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_mobile_read_response.go rename to rest/api/v2010/model_list_incoming_phone_number_mobile_response.go index b597b288f..8b1fb90ae 100644 --- a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_mobile_read_response.go +++ b/rest/api/v2010/model_list_incoming_phone_number_mobile_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse struct for ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse -type ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobileReadResponse struct { +// ListIncomingPhoneNumberMobileResponse struct for ListIncomingPhoneNumberMobileResponse +type ListIncomingPhoneNumberMobileResponse struct { End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` IncomingPhoneNumbers []ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberMobile `json:"IncomingPhoneNumbers,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_read_response.go b/rest/api/v2010/model_list_incoming_phone_number_response.go similarity index 76% rename from rest/api/v2010/model_api_v2010_account_incoming_phone_number_read_response.go rename to rest/api/v2010/model_list_incoming_phone_number_response.go index 2f8fe523e..ec7dd9e09 100644 --- a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_read_response.go +++ b/rest/api/v2010/model_list_incoming_phone_number_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountIncomingPhoneNumberReadResponse struct for ApiV2010AccountIncomingPhoneNumberReadResponse -type ApiV2010AccountIncomingPhoneNumberReadResponse struct { +// ListIncomingPhoneNumberResponse struct for ListIncomingPhoneNumberResponse +type ListIncomingPhoneNumberResponse struct { End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` IncomingPhoneNumbers []ApiV2010AccountIncomingPhoneNumber `json:"IncomingPhoneNumbers,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_toll_free_read_response.go b/rest/api/v2010/model_list_incoming_phone_number_toll_free_response.go similarity index 70% rename from rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_toll_free_read_response.go rename to rest/api/v2010/model_list_incoming_phone_number_toll_free_response.go index b906497eb..cdab6920a 100644 --- a/rest/api/v2010/model_api_v2010_account_incoming_phone_number_incoming_phone_number_toll_free_read_response.go +++ b/rest/api/v2010/model_list_incoming_phone_number_toll_free_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse struct for ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse -type ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFreeReadResponse struct { +// ListIncomingPhoneNumberTollFreeResponse struct for ListIncomingPhoneNumberTollFreeResponse +type ListIncomingPhoneNumberTollFreeResponse struct { End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` IncomingPhoneNumbers []ApiV2010AccountIncomingPhoneNumberIncomingPhoneNumberTollFree `json:"IncomingPhoneNumbers,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_key_read_response.go b/rest/api/v2010/model_list_key_response.go similarity index 80% rename from rest/api/v2010/model_api_v2010_account_key_read_response.go rename to rest/api/v2010/model_list_key_response.go index fcdb22b0f..74ba87d5f 100644 --- a/rest/api/v2010/model_api_v2010_account_key_read_response.go +++ b/rest/api/v2010/model_list_key_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountKeyReadResponse struct for ApiV2010AccountKeyReadResponse -type ApiV2010AccountKeyReadResponse struct { +// ListKeyResponse struct for ListKeyResponse +type ListKeyResponse struct { End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` Keys []ApiV2010AccountKey `json:"Keys,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_message_media_read_response.go b/rest/api/v2010/model_list_media_response.go similarity index 77% rename from rest/api/v2010/model_api_v2010_account_message_media_read_response.go rename to rest/api/v2010/model_list_media_response.go index a7bd0d47f..0c210035d 100644 --- a/rest/api/v2010/model_api_v2010_account_message_media_read_response.go +++ b/rest/api/v2010/model_list_media_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountMessageMediaReadResponse struct for ApiV2010AccountMessageMediaReadResponse -type ApiV2010AccountMessageMediaReadResponse struct { +// ListMediaResponse struct for ListMediaResponse +type ListMediaResponse struct { End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` MediaList []ApiV2010AccountMessageMedia `json:"MediaList,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_queue_member_read_response.go b/rest/api/v2010/model_list_member_response.go similarity index 78% rename from rest/api/v2010/model_api_v2010_account_queue_member_read_response.go rename to rest/api/v2010/model_list_member_response.go index f5c2b7f25..0f2d63d37 100644 --- a/rest/api/v2010/model_api_v2010_account_queue_member_read_response.go +++ b/rest/api/v2010/model_list_member_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountQueueMemberReadResponse struct for ApiV2010AccountQueueMemberReadResponse -type ApiV2010AccountQueueMemberReadResponse struct { +// ListMemberResponse struct for ListMemberResponse +type ListMemberResponse struct { End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` NextPageUri string `json:"NextPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_message_read_response.go b/rest/api/v2010/model_list_message_response.go similarity index 79% rename from rest/api/v2010/model_api_v2010_account_message_read_response.go rename to rest/api/v2010/model_list_message_response.go index 038185fac..d7205d823 100644 --- a/rest/api/v2010/model_api_v2010_account_message_read_response.go +++ b/rest/api/v2010/model_list_message_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountMessageReadResponse struct for ApiV2010AccountMessageReadResponse -type ApiV2010AccountMessageReadResponse struct { +// ListMessageResponse struct for ListMessageResponse +type ListMessageResponse struct { End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` Messages []ApiV2010AccountMessage `json:"Messages,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_notification_read_response.go b/rest/api/v2010/model_list_notification_response.go similarity index 78% rename from rest/api/v2010/model_api_v2010_account_notification_read_response.go rename to rest/api/v2010/model_list_notification_response.go index db0a2f65b..875997433 100644 --- a/rest/api/v2010/model_api_v2010_account_notification_read_response.go +++ b/rest/api/v2010/model_list_notification_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountNotificationReadResponse struct for ApiV2010AccountNotificationReadResponse -type ApiV2010AccountNotificationReadResponse struct { +// ListNotificationResponse struct for ListNotificationResponse +type ListNotificationResponse struct { End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` NextPageUri string `json:"NextPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_outgoing_caller_id_read_response.go b/rest/api/v2010/model_list_outgoing_caller_id_response.go similarity index 77% rename from rest/api/v2010/model_api_v2010_account_outgoing_caller_id_read_response.go rename to rest/api/v2010/model_list_outgoing_caller_id_response.go index 66709dcec..3a00eed39 100644 --- a/rest/api/v2010/model_api_v2010_account_outgoing_caller_id_read_response.go +++ b/rest/api/v2010/model_list_outgoing_caller_id_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountOutgoingCallerIdReadResponse struct for ApiV2010AccountOutgoingCallerIdReadResponse -type ApiV2010AccountOutgoingCallerIdReadResponse struct { +// ListOutgoingCallerIdResponse struct for ListOutgoingCallerIdResponse +type ListOutgoingCallerIdResponse struct { End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` NextPageUri string `json:"NextPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_conference_participant_read_response.go b/rest/api/v2010/model_list_participant_response.go similarity index 75% rename from rest/api/v2010/model_api_v2010_account_conference_participant_read_response.go rename to rest/api/v2010/model_list_participant_response.go index c9a8fb0dd..a197b8f7e 100644 --- a/rest/api/v2010/model_api_v2010_account_conference_participant_read_response.go +++ b/rest/api/v2010/model_list_participant_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountConferenceParticipantReadResponse struct for ApiV2010AccountConferenceParticipantReadResponse -type ApiV2010AccountConferenceParticipantReadResponse struct { +// ListParticipantResponse struct for ListParticipantResponse +type ListParticipantResponse struct { End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` NextPageUri string `json:"NextPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_queue_read_response.go b/rest/api/v2010/model_list_queue_response.go similarity index 79% rename from rest/api/v2010/model_api_v2010_account_queue_read_response.go rename to rest/api/v2010/model_list_queue_response.go index 384a8d72a..3a23f4a14 100644 --- a/rest/api/v2010/model_api_v2010_account_queue_read_response.go +++ b/rest/api/v2010/model_list_queue_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountQueueReadResponse struct for ApiV2010AccountQueueReadResponse -type ApiV2010AccountQueueReadResponse struct { +// ListQueueResponse struct for ListQueueResponse +type ListQueueResponse struct { End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` NextPageUri string `json:"NextPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result_recording_add_on_result_payload_read_response.go b/rest/api/v2010/model_list_recording_add_on_result_payload_response.go similarity index 68% rename from rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result_recording_add_on_result_payload_read_response.go rename to rest/api/v2010/model_list_recording_add_on_result_payload_response.go index 7d7fc99be..4ec4521a5 100644 --- a/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result_recording_add_on_result_payload_read_response.go +++ b/rest/api/v2010/model_list_recording_add_on_result_payload_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse struct for ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse -type ApiV2010AccountRecordingRecordingAddOnResultRecordingAddOnResultPayloadReadResponse struct { +// ListRecordingAddOnResultPayloadResponse struct for ListRecordingAddOnResultPayloadResponse +type ListRecordingAddOnResultPayloadResponse struct { End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` NextPageUri string `json:"NextPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result_read_response.go b/rest/api/v2010/model_list_recording_add_on_result_response.go similarity index 73% rename from rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result_read_response.go rename to rest/api/v2010/model_list_recording_add_on_result_response.go index 93377d71e..cf8d5dada 100644 --- a/rest/api/v2010/model_api_v2010_account_recording_recording_add_on_result_read_response.go +++ b/rest/api/v2010/model_list_recording_add_on_result_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountRecordingRecordingAddOnResultReadResponse struct for ApiV2010AccountRecordingRecordingAddOnResultReadResponse -type ApiV2010AccountRecordingRecordingAddOnResultReadResponse struct { +// ListRecordingAddOnResultResponse struct for ListRecordingAddOnResultResponse +type ListRecordingAddOnResultResponse struct { AddOnResults []ApiV2010AccountRecordingRecordingAddOnResult `json:"AddOnResults,omitempty"` End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_recording_read_response.go b/rest/api/v2010/model_list_recording_response.go similarity index 78% rename from rest/api/v2010/model_api_v2010_account_recording_read_response.go rename to rest/api/v2010/model_list_recording_response.go index 8287cd4d6..0407bd8b2 100644 --- a/rest/api/v2010/model_api_v2010_account_recording_read_response.go +++ b/rest/api/v2010/model_list_recording_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountRecordingReadResponse struct for ApiV2010AccountRecordingReadResponse -type ApiV2010AccountRecordingReadResponse struct { +// ListRecordingResponse struct for ListRecordingResponse +type ListRecordingResponse struct { End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` NextPageUri string `json:"NextPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_recording_recording_transcription_read_response.go b/rest/api/v2010/model_list_recording_transcription_response.go similarity index 73% rename from rest/api/v2010/model_api_v2010_account_recording_recording_transcription_read_response.go rename to rest/api/v2010/model_list_recording_transcription_response.go index d30a209e3..5aa239016 100644 --- a/rest/api/v2010/model_api_v2010_account_recording_recording_transcription_read_response.go +++ b/rest/api/v2010/model_list_recording_transcription_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountRecordingRecordingTranscriptionReadResponse struct for ApiV2010AccountRecordingRecordingTranscriptionReadResponse -type ApiV2010AccountRecordingRecordingTranscriptionReadResponse struct { +// ListRecordingTranscriptionResponse struct for ListRecordingTranscriptionResponse +type ListRecordingTranscriptionResponse struct { End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` NextPageUri string `json:"NextPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_short_code_read_response.go b/rest/api/v2010/model_list_short_code_response.go similarity index 78% rename from rest/api/v2010/model_api_v2010_account_short_code_read_response.go rename to rest/api/v2010/model_list_short_code_response.go index 3ea0f8e48..f812bc579 100644 --- a/rest/api/v2010/model_api_v2010_account_short_code_read_response.go +++ b/rest/api/v2010/model_list_short_code_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountShortCodeReadResponse struct for ApiV2010AccountShortCodeReadResponse -type ApiV2010AccountShortCodeReadResponse struct { +// ListShortCodeResponse struct for ListShortCodeResponse +type ListShortCodeResponse struct { End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` NextPageUri string `json:"NextPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_signing_key_read_response.go b/rest/api/v2010/model_list_signing_key_response.go similarity index 78% rename from rest/api/v2010/model_api_v2010_account_signing_key_read_response.go rename to rest/api/v2010/model_list_signing_key_response.go index 090cf0fa8..a3b1a9f52 100644 --- a/rest/api/v2010/model_api_v2010_account_signing_key_read_response.go +++ b/rest/api/v2010/model_list_signing_key_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountSigningKeyReadResponse struct for ApiV2010AccountSigningKeyReadResponse -type ApiV2010AccountSigningKeyReadResponse struct { +// ListSigningKeyResponse struct for ListSigningKeyResponse +type ListSigningKeyResponse struct { End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` NextPageUri string `json:"NextPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_credential_list_mapping_read_response.go b/rest/api/v2010/model_list_sip_auth_calls_credential_list_mapping_response.go similarity index 66% rename from rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_credential_list_mapping_read_response.go rename to rest/api/v2010/model_list_sip_auth_calls_credential_list_mapping_response.go index ecbab0ea9..44c04ff31 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_credential_list_mapping_read_response.go +++ b/rest/api/v2010/model_list_sip_auth_calls_credential_list_mapping_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse struct for ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse -type ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMappingReadResponse struct { +// ListSipAuthCallsCredentialListMappingResponse struct for ListSipAuthCallsCredentialListMappingResponse +type ListSipAuthCallsCredentialListMappingResponse struct { Contents []ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsCredentialListMapping `json:"Contents,omitempty"` End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_ip_access_control_list_mapping_read_response.go b/rest/api/v2010/model_list_sip_auth_calls_ip_access_control_list_mapping_response.go similarity index 65% rename from rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_ip_access_control_list_mapping_read_response.go rename to rest/api/v2010/model_list_sip_auth_calls_ip_access_control_list_mapping_response.go index 9971874b6..29617a9da 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_calls_sip_auth_calls_ip_access_control_list_mapping_read_response.go +++ b/rest/api/v2010/model_list_sip_auth_calls_ip_access_control_list_mapping_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse struct for ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse -type ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMappingReadResponse struct { +// ListSipAuthCallsIpAccessControlListMappingResponse struct for ListSipAuthCallsIpAccessControlListMappingResponse +type ListSipAuthCallsIpAccessControlListMappingResponse struct { Contents []ApiV2010AccountSipSipDomainSipAuthSipAuthCallsSipAuthCallsIpAccessControlListMapping `json:"Contents,omitempty"` End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_registrations_sip_auth_registrations_credential_list_mapping_read_response.go b/rest/api/v2010/model_list_sip_auth_registrations_credential_list_mapping_response.go similarity index 64% rename from rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_registrations_sip_auth_registrations_credential_list_mapping_read_response.go rename to rest/api/v2010/model_list_sip_auth_registrations_credential_list_mapping_response.go index 384741e0e..5d6bc551b 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_auth_sip_auth_registrations_sip_auth_registrations_credential_list_mapping_read_response.go +++ b/rest/api/v2010/model_list_sip_auth_registrations_credential_list_mapping_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse struct for ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse -type ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMappingReadResponse struct { +// ListSipAuthRegistrationsCredentialListMappingResponse struct for ListSipAuthRegistrationsCredentialListMappingResponse +type ListSipAuthRegistrationsCredentialListMappingResponse struct { Contents []ApiV2010AccountSipSipDomainSipAuthSipAuthRegistrationsSipAuthRegistrationsCredentialListMapping `json:"Contents,omitempty"` End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_credential_list_mapping_read_response.go b/rest/api/v2010/model_list_sip_credential_list_mapping_response.go similarity index 72% rename from rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_credential_list_mapping_read_response.go rename to rest/api/v2010/model_list_sip_credential_list_mapping_response.go index 78f3e893b..f5ae67a99 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_credential_list_mapping_read_response.go +++ b/rest/api/v2010/model_list_sip_credential_list_mapping_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse struct for ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse -type ApiV2010AccountSipSipDomainSipCredentialListMappingReadResponse struct { +// ListSipCredentialListMappingResponse struct for ListSipCredentialListMappingResponse +type ListSipCredentialListMappingResponse struct { CredentialListMappings []ApiV2010AccountSipSipDomainSipCredentialListMapping `json:"CredentialListMappings,omitempty"` End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list_read_response.go b/rest/api/v2010/model_list_sip_credential_list_response.go similarity index 76% rename from rest/api/v2010/model_api_v2010_account_sip_sip_credential_list_read_response.go rename to rest/api/v2010/model_list_sip_credential_list_response.go index 305338da5..1d5d20050 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list_read_response.go +++ b/rest/api/v2010/model_list_sip_credential_list_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountSipSipCredentialListReadResponse struct for ApiV2010AccountSipSipCredentialListReadResponse -type ApiV2010AccountSipSipCredentialListReadResponse struct { +// ListSipCredentialListResponse struct for ListSipCredentialListResponse +type ListSipCredentialListResponse struct { CredentialLists []ApiV2010AccountSipSipCredentialList `json:"CredentialLists,omitempty"` End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list_sip_credential_read_response.go b/rest/api/v2010/model_list_sip_credential_response.go similarity index 72% rename from rest/api/v2010/model_api_v2010_account_sip_sip_credential_list_sip_credential_read_response.go rename to rest/api/v2010/model_list_sip_credential_response.go index e20ff7fa6..b55d3e7d0 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_credential_list_sip_credential_read_response.go +++ b/rest/api/v2010/model_list_sip_credential_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountSipSipCredentialListSipCredentialReadResponse struct for ApiV2010AccountSipSipCredentialListSipCredentialReadResponse -type ApiV2010AccountSipSipCredentialListSipCredentialReadResponse struct { +// ListSipCredentialResponse struct for ListSipCredentialResponse +type ListSipCredentialResponse struct { Credentials []ApiV2010AccountSipSipCredentialListSipCredential `json:"Credentials,omitempty"` End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_read_response.go b/rest/api/v2010/model_list_sip_domain_response.go similarity index 77% rename from rest/api/v2010/model_api_v2010_account_sip_sip_domain_read_response.go rename to rest/api/v2010/model_list_sip_domain_response.go index 51b4ae5cc..5fb1c1173 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_read_response.go +++ b/rest/api/v2010/model_list_sip_domain_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountSipSipDomainReadResponse struct for ApiV2010AccountSipSipDomainReadResponse -type ApiV2010AccountSipSipDomainReadResponse struct { +// ListSipDomainResponse struct for ListSipDomainResponse +type ListSipDomainResponse struct { Domains []ApiV2010AccountSipSipDomain `json:"Domains,omitempty"` End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_ip_access_control_list_mapping_read_response.go b/rest/api/v2010/model_list_sip_ip_access_control_list_mapping_response.go similarity index 72% rename from rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_ip_access_control_list_mapping_read_response.go rename to rest/api/v2010/model_list_sip_ip_access_control_list_mapping_response.go index cc11e7469..fdf991074 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_domain_sip_ip_access_control_list_mapping_read_response.go +++ b/rest/api/v2010/model_list_sip_ip_access_control_list_mapping_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse struct for ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse -type ApiV2010AccountSipSipDomainSipIpAccessControlListMappingReadResponse struct { +// ListSipIpAccessControlListMappingResponse struct for ListSipIpAccessControlListMappingResponse +type ListSipIpAccessControlListMappingResponse struct { End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` IpAccessControlListMappings []ApiV2010AccountSipSipDomainSipIpAccessControlListMapping `json:"IpAccessControlListMappings,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list_read_response.go b/rest/api/v2010/model_list_sip_ip_access_control_list_response.go similarity index 75% rename from rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list_read_response.go rename to rest/api/v2010/model_list_sip_ip_access_control_list_response.go index 56f092fed..a9e4480ab 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list_read_response.go +++ b/rest/api/v2010/model_list_sip_ip_access_control_list_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountSipSipIpAccessControlListReadResponse struct for ApiV2010AccountSipSipIpAccessControlListReadResponse -type ApiV2010AccountSipSipIpAccessControlListReadResponse struct { +// ListSipIpAccessControlListResponse struct for ListSipIpAccessControlListResponse +type ListSipIpAccessControlListResponse struct { End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` IpAccessControlLists []ApiV2010AccountSipSipIpAccessControlList `json:"IpAccessControlLists,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list_sip_ip_address_read_response.go b/rest/api/v2010/model_list_sip_ip_address_response.go similarity index 72% rename from rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list_sip_ip_address_read_response.go rename to rest/api/v2010/model_list_sip_ip_address_response.go index f4638bc87..d0caf3b45 100644 --- a/rest/api/v2010/model_api_v2010_account_sip_sip_ip_access_control_list_sip_ip_address_read_response.go +++ b/rest/api/v2010/model_list_sip_ip_address_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse struct for ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse -type ApiV2010AccountSipSipIpAccessControlListSipIpAddressReadResponse struct { +// ListSipIpAddressResponse struct for ListSipIpAddressResponse +type ListSipIpAddressResponse struct { End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` IpAddresses []ApiV2010AccountSipSipIpAccessControlListSipIpAddress `json:"IpAddresses,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_transcription_read_response.go b/rest/api/v2010/model_list_transcription_response.go similarity index 78% rename from rest/api/v2010/model_api_v2010_account_transcription_read_response.go rename to rest/api/v2010/model_list_transcription_response.go index 8bbd8aee8..138fece66 100644 --- a/rest/api/v2010/model_api_v2010_account_transcription_read_response.go +++ b/rest/api/v2010/model_list_transcription_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountTranscriptionReadResponse struct for ApiV2010AccountTranscriptionReadResponse -type ApiV2010AccountTranscriptionReadResponse struct { +// ListTranscriptionResponse struct for ListTranscriptionResponse +type ListTranscriptionResponse struct { End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` NextPageUri string `json:"NextPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_all_time_read_response.go b/rest/api/v2010/model_list_usage_record_all_time_response.go similarity index 72% rename from rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_all_time_read_response.go rename to rest/api/v2010/model_list_usage_record_all_time_response.go index 35d559530..7ef29fe97 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_all_time_read_response.go +++ b/rest/api/v2010/model_list_usage_record_all_time_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse struct for ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse -type ApiV2010AccountUsageUsageRecordUsageRecordAllTimeReadResponse struct { +// ListUsageRecordAllTimeResponse struct for ListUsageRecordAllTimeResponse +type ListUsageRecordAllTimeResponse struct { End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` NextPageUri string `json:"NextPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_daily_read_response.go b/rest/api/v2010/model_list_usage_record_daily_response.go similarity index 73% rename from rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_daily_read_response.go rename to rest/api/v2010/model_list_usage_record_daily_response.go index d9630b6af..35b97ec52 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_daily_read_response.go +++ b/rest/api/v2010/model_list_usage_record_daily_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse struct for ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse -type ApiV2010AccountUsageUsageRecordUsageRecordDailyReadResponse struct { +// ListUsageRecordDailyResponse struct for ListUsageRecordDailyResponse +type ListUsageRecordDailyResponse struct { End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` NextPageUri string `json:"NextPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_last_month_read_response.go b/rest/api/v2010/model_list_usage_record_last_month_response.go similarity index 72% rename from rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_last_month_read_response.go rename to rest/api/v2010/model_list_usage_record_last_month_response.go index 879eeca39..19aec2c4c 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_last_month_read_response.go +++ b/rest/api/v2010/model_list_usage_record_last_month_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse struct for ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse -type ApiV2010AccountUsageUsageRecordUsageRecordLastMonthReadResponse struct { +// ListUsageRecordLastMonthResponse struct for ListUsageRecordLastMonthResponse +type ListUsageRecordLastMonthResponse struct { End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` NextPageUri string `json:"NextPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_monthly_read_response.go b/rest/api/v2010/model_list_usage_record_monthly_response.go similarity index 72% rename from rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_monthly_read_response.go rename to rest/api/v2010/model_list_usage_record_monthly_response.go index 5bc3f4b2f..b49729518 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_monthly_read_response.go +++ b/rest/api/v2010/model_list_usage_record_monthly_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse struct for ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse -type ApiV2010AccountUsageUsageRecordUsageRecordMonthlyReadResponse struct { +// ListUsageRecordMonthlyResponse struct for ListUsageRecordMonthlyResponse +type ListUsageRecordMonthlyResponse struct { End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` NextPageUri string `json:"NextPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_read_response.go b/rest/api/v2010/model_list_usage_record_response.go similarity index 77% rename from rest/api/v2010/model_api_v2010_account_usage_usage_record_read_response.go rename to rest/api/v2010/model_list_usage_record_response.go index f8f4c74ab..9188d39f6 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_record_read_response.go +++ b/rest/api/v2010/model_list_usage_record_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountUsageUsageRecordReadResponse struct for ApiV2010AccountUsageUsageRecordReadResponse -type ApiV2010AccountUsageUsageRecordReadResponse struct { +// ListUsageRecordResponse struct for ListUsageRecordResponse +type ListUsageRecordResponse struct { End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` NextPageUri string `json:"NextPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_this_month_read_response.go b/rest/api/v2010/model_list_usage_record_this_month_response.go similarity index 72% rename from rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_this_month_read_response.go rename to rest/api/v2010/model_list_usage_record_this_month_response.go index 0ce72bfd9..6ae8c6f8c 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_this_month_read_response.go +++ b/rest/api/v2010/model_list_usage_record_this_month_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse struct for ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse -type ApiV2010AccountUsageUsageRecordUsageRecordThisMonthReadResponse struct { +// ListUsageRecordThisMonthResponse struct for ListUsageRecordThisMonthResponse +type ListUsageRecordThisMonthResponse struct { End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` NextPageUri string `json:"NextPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_today_read_response.go b/rest/api/v2010/model_list_usage_record_today_response.go similarity index 73% rename from rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_today_read_response.go rename to rest/api/v2010/model_list_usage_record_today_response.go index 38bcef90b..a35abeb52 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_today_read_response.go +++ b/rest/api/v2010/model_list_usage_record_today_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse struct for ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse -type ApiV2010AccountUsageUsageRecordUsageRecordTodayReadResponse struct { +// ListUsageRecordTodayResponse struct for ListUsageRecordTodayResponse +type ListUsageRecordTodayResponse struct { End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` NextPageUri string `json:"NextPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yearly_read_response.go b/rest/api/v2010/model_list_usage_record_yearly_response.go similarity index 73% rename from rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yearly_read_response.go rename to rest/api/v2010/model_list_usage_record_yearly_response.go index 81a0a0cec..32fb975de 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yearly_read_response.go +++ b/rest/api/v2010/model_list_usage_record_yearly_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse struct for ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse -type ApiV2010AccountUsageUsageRecordUsageRecordYearlyReadResponse struct { +// ListUsageRecordYearlyResponse struct for ListUsageRecordYearlyResponse +type ListUsageRecordYearlyResponse struct { End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` NextPageUri string `json:"NextPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yesterday_read_response.go b/rest/api/v2010/model_list_usage_record_yesterday_response.go similarity index 72% rename from rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yesterday_read_response.go rename to rest/api/v2010/model_list_usage_record_yesterday_response.go index d8f2f8135..1300b93b2 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_record_usage_record_yesterday_read_response.go +++ b/rest/api/v2010/model_list_usage_record_yesterday_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse struct for ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse -type ApiV2010AccountUsageUsageRecordUsageRecordYesterdayReadResponse struct { +// ListUsageRecordYesterdayResponse struct for ListUsageRecordYesterdayResponse +type ListUsageRecordYesterdayResponse struct { End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` NextPageUri string `json:"NextPageUri,omitempty"` diff --git a/rest/api/v2010/model_api_v2010_account_usage_usage_trigger_read_response.go b/rest/api/v2010/model_list_usage_trigger_response.go similarity index 76% rename from rest/api/v2010/model_api_v2010_account_usage_usage_trigger_read_response.go rename to rest/api/v2010/model_list_usage_trigger_response.go index 99ac9c5e9..ca279fa86 100644 --- a/rest/api/v2010/model_api_v2010_account_usage_usage_trigger_read_response.go +++ b/rest/api/v2010/model_list_usage_trigger_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ApiV2010AccountUsageUsageTriggerReadResponse struct for ApiV2010AccountUsageUsageTriggerReadResponse -type ApiV2010AccountUsageUsageTriggerReadResponse struct { +// ListUsageTriggerResponse struct for ListUsageTriggerResponse +type ListUsageTriggerResponse struct { End int32 `json:"End,omitempty"` FirstPageUri string `json:"FirstPageUri,omitempty"` NextPageUri string `json:"NextPageUri,omitempty"` diff --git a/rest/api/v2010/model_update_account_request.go b/rest/api/v2010/model_update_account_request.go index b10130431..ccec46825 100644 --- a/rest/api/v2010/model_update_account_request.go +++ b/rest/api/v2010/model_update_account_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_update_address_request.go b/rest/api/v2010/model_update_address_request.go index 017b7f172..bc03e2e75 100644 --- a/rest/api/v2010/model_update_address_request.go +++ b/rest/api/v2010/model_update_address_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_update_application_request.go b/rest/api/v2010/model_update_application_request.go index ef2acd46d..5bab4d43d 100644 --- a/rest/api/v2010/model_update_application_request.go +++ b/rest/api/v2010/model_update_application_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_update_call_feedback_request.go b/rest/api/v2010/model_update_call_feedback_request.go index c6ba0ca81..26fa5654f 100644 --- a/rest/api/v2010/model_update_call_feedback_request.go +++ b/rest/api/v2010/model_update_call_feedback_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_update_call_recording_request.go b/rest/api/v2010/model_update_call_recording_request.go index f04da6784..86ca454f3 100644 --- a/rest/api/v2010/model_update_call_recording_request.go +++ b/rest/api/v2010/model_update_call_recording_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_update_call_request.go b/rest/api/v2010/model_update_call_request.go index caab8d06d..409416b7d 100644 --- a/rest/api/v2010/model_update_call_request.go +++ b/rest/api/v2010/model_update_call_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_update_conference_recording_request.go b/rest/api/v2010/model_update_conference_recording_request.go index 4e81b92fa..6e33b5e0f 100644 --- a/rest/api/v2010/model_update_conference_recording_request.go +++ b/rest/api/v2010/model_update_conference_recording_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_update_conference_request.go b/rest/api/v2010/model_update_conference_request.go index 4032b7e55..640433bce 100644 --- a/rest/api/v2010/model_update_conference_request.go +++ b/rest/api/v2010/model_update_conference_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_update_connect_app_request.go b/rest/api/v2010/model_update_connect_app_request.go index be222b90c..be450121c 100644 --- a/rest/api/v2010/model_update_connect_app_request.go +++ b/rest/api/v2010/model_update_connect_app_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_update_incoming_phone_number_request.go b/rest/api/v2010/model_update_incoming_phone_number_request.go index 9e32fc863..bf8f6c770 100644 --- a/rest/api/v2010/model_update_incoming_phone_number_request.go +++ b/rest/api/v2010/model_update_incoming_phone_number_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_update_key_request.go b/rest/api/v2010/model_update_key_request.go index eed27376e..9daaabdb8 100644 --- a/rest/api/v2010/model_update_key_request.go +++ b/rest/api/v2010/model_update_key_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_update_member_request.go b/rest/api/v2010/model_update_member_request.go index 3312f2895..d6cc0ee54 100644 --- a/rest/api/v2010/model_update_member_request.go +++ b/rest/api/v2010/model_update_member_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_update_message_request.go b/rest/api/v2010/model_update_message_request.go index 1fac45d4a..f245883b8 100644 --- a/rest/api/v2010/model_update_message_request.go +++ b/rest/api/v2010/model_update_message_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_update_outgoing_caller_id_request.go b/rest/api/v2010/model_update_outgoing_caller_id_request.go index 8cd9595ec..34aef1cf1 100644 --- a/rest/api/v2010/model_update_outgoing_caller_id_request.go +++ b/rest/api/v2010/model_update_outgoing_caller_id_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_update_participant_request.go b/rest/api/v2010/model_update_participant_request.go index 4fd5f39e5..c4c9d0129 100644 --- a/rest/api/v2010/model_update_participant_request.go +++ b/rest/api/v2010/model_update_participant_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_update_payments_request.go b/rest/api/v2010/model_update_payments_request.go index 70c72e40f..28f74c64a 100644 --- a/rest/api/v2010/model_update_payments_request.go +++ b/rest/api/v2010/model_update_payments_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_update_queue_request.go b/rest/api/v2010/model_update_queue_request.go index 5a1d013d4..feae58071 100644 --- a/rest/api/v2010/model_update_queue_request.go +++ b/rest/api/v2010/model_update_queue_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_update_short_code_request.go b/rest/api/v2010/model_update_short_code_request.go index 2830eb397..410d6687f 100644 --- a/rest/api/v2010/model_update_short_code_request.go +++ b/rest/api/v2010/model_update_short_code_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_update_signing_key_request.go b/rest/api/v2010/model_update_signing_key_request.go index c01e7ccd8..802e6e37f 100644 --- a/rest/api/v2010/model_update_signing_key_request.go +++ b/rest/api/v2010/model_update_signing_key_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_update_sip_credential_list_request.go b/rest/api/v2010/model_update_sip_credential_list_request.go index 175a79836..f414af0cb 100644 --- a/rest/api/v2010/model_update_sip_credential_list_request.go +++ b/rest/api/v2010/model_update_sip_credential_list_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_update_sip_credential_request.go b/rest/api/v2010/model_update_sip_credential_request.go index 9826eca52..836ae586d 100644 --- a/rest/api/v2010/model_update_sip_credential_request.go +++ b/rest/api/v2010/model_update_sip_credential_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_update_sip_domain_request.go b/rest/api/v2010/model_update_sip_domain_request.go index 5f5e07b32..8b131a8b0 100644 --- a/rest/api/v2010/model_update_sip_domain_request.go +++ b/rest/api/v2010/model_update_sip_domain_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -13,7 +13,7 @@ package openapi type UpdateSipDomainRequest struct { // The SID of the BYOC Trunk(Bring Your Own Carrier) resource that the Sip Domain will be associated with. ByocTrunkSid string `json:"ByocTrunkSid,omitempty"` - // The unique address you reserve on Twilio to which you route your SIP traffic. Domain names can contain letters, digits, and \"-\". + // 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`. DomainName string `json:"DomainName,omitempty"` // 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. EmergencyCallerSid string `json:"EmergencyCallerSid,omitempty"` diff --git a/rest/api/v2010/model_update_sip_ip_access_control_list_request.go b/rest/api/v2010/model_update_sip_ip_access_control_list_request.go index 32b31c3b4..f8226b7ca 100644 --- a/rest/api/v2010/model_update_sip_ip_access_control_list_request.go +++ b/rest/api/v2010/model_update_sip_ip_access_control_list_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_update_sip_ip_address_request.go b/rest/api/v2010/model_update_sip_ip_address_request.go index 46d0909b1..ba9fbe84c 100644 --- a/rest/api/v2010/model_update_sip_ip_address_request.go +++ b/rest/api/v2010/model_update_sip_ip_address_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/model_update_usage_trigger_request.go b/rest/api/v2010/model_update_usage_trigger_request.go index e1fe7eebd..3afeee548 100644 --- a/rest/api/v2010/model_update_usage_trigger_request.go +++ b/rest/api/v2010/model_update_usage_trigger_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/api/v2010/response.go b/rest/api/v2010/response.go index 306f2676e..ffbce503f 100644 --- a/rest/api/v2010/response.go +++ b/rest/api/v2010/response.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/autopilot/v1/README.md b/rest/autopilot/v1/README.md index b7206cd94..fc9a79d40 100644 --- a/rest/autopilot/v1/README.md +++ b/rest/autopilot/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 5.15.0 +- API version: 1.0.0 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) @@ -92,25 +92,15 @@ Class | Method | HTTP request | Description - [AutopilotV1AssistantDialogue](docs/AutopilotV1AssistantDialogue.md) - [AutopilotV1AssistantFieldType](docs/AutopilotV1AssistantFieldType.md) - [AutopilotV1AssistantFieldTypeFieldValue](docs/AutopilotV1AssistantFieldTypeFieldValue.md) - - [AutopilotV1AssistantFieldTypeFieldValueReadResponse](docs/AutopilotV1AssistantFieldTypeFieldValueReadResponse.md) - - [AutopilotV1AssistantFieldTypeReadResponse](docs/AutopilotV1AssistantFieldTypeReadResponse.md) - [AutopilotV1AssistantModelBuild](docs/AutopilotV1AssistantModelBuild.md) - - [AutopilotV1AssistantModelBuildReadResponse](docs/AutopilotV1AssistantModelBuildReadResponse.md) - [AutopilotV1AssistantQuery](docs/AutopilotV1AssistantQuery.md) - - [AutopilotV1AssistantQueryReadResponse](docs/AutopilotV1AssistantQueryReadResponse.md) - - [AutopilotV1AssistantReadResponse](docs/AutopilotV1AssistantReadResponse.md) - - [AutopilotV1AssistantReadResponseMeta](docs/AutopilotV1AssistantReadResponseMeta.md) - [AutopilotV1AssistantStyleSheet](docs/AutopilotV1AssistantStyleSheet.md) - [AutopilotV1AssistantTask](docs/AutopilotV1AssistantTask.md) - [AutopilotV1AssistantTaskField](docs/AutopilotV1AssistantTaskField.md) - - [AutopilotV1AssistantTaskFieldReadResponse](docs/AutopilotV1AssistantTaskFieldReadResponse.md) - - [AutopilotV1AssistantTaskReadResponse](docs/AutopilotV1AssistantTaskReadResponse.md) - [AutopilotV1AssistantTaskSample](docs/AutopilotV1AssistantTaskSample.md) - - [AutopilotV1AssistantTaskSampleReadResponse](docs/AutopilotV1AssistantTaskSampleReadResponse.md) - [AutopilotV1AssistantTaskTaskActions](docs/AutopilotV1AssistantTaskTaskActions.md) - [AutopilotV1AssistantTaskTaskStatistics](docs/AutopilotV1AssistantTaskTaskStatistics.md) - [AutopilotV1AssistantWebhook](docs/AutopilotV1AssistantWebhook.md) - - [AutopilotV1AssistantWebhookReadResponse](docs/AutopilotV1AssistantWebhookReadResponse.md) - [AutopilotV1RestoreAssistant](docs/AutopilotV1RestoreAssistant.md) - [CreateAssistantRequest](docs/CreateAssistantRequest.md) - [CreateFieldRequest](docs/CreateFieldRequest.md) @@ -121,6 +111,16 @@ Class | Method | HTTP request | Description - [CreateSampleRequest](docs/CreateSampleRequest.md) - [CreateTaskRequest](docs/CreateTaskRequest.md) - [CreateWebhookRequest](docs/CreateWebhookRequest.md) + - [ListAssistantResponse](docs/ListAssistantResponse.md) + - [ListAssistantResponseMeta](docs/ListAssistantResponseMeta.md) + - [ListFieldResponse](docs/ListFieldResponse.md) + - [ListFieldTypeResponse](docs/ListFieldTypeResponse.md) + - [ListFieldValueResponse](docs/ListFieldValueResponse.md) + - [ListModelBuildResponse](docs/ListModelBuildResponse.md) + - [ListQueryResponse](docs/ListQueryResponse.md) + - [ListSampleResponse](docs/ListSampleResponse.md) + - [ListTaskResponse](docs/ListTaskResponse.md) + - [ListWebhookResponse](docs/ListWebhookResponse.md) - [UpdateAssistantRequest](docs/UpdateAssistantRequest.md) - [UpdateDefaultsRequest](docs/UpdateDefaultsRequest.md) - [UpdateFieldTypeRequest](docs/UpdateFieldTypeRequest.md) diff --git a/rest/autopilot/v1/api_default.go b/rest/autopilot/v1/api_default.go index e53df8a73..81563f999 100644 --- a/rest/autopilot/v1/api_default.go +++ b/rest/autopilot/v1/api_default.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -26,18 +26,18 @@ type DefaultApiService struct { func NewDefaultApiService(client *twilio.Client) *DefaultApiService { return &DefaultApiService { client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + baseURL: fmt.Sprintf("https://autopilot.twilio.com"), } } // CreateAssistantParams Optional parameters for the method 'CreateAssistant' type CreateAssistantParams struct { - CallbackEvents *string `json:"CallbackEvents,omitempty"` - CallbackUrl *string `json:"CallbackUrl,omitempty"` - Defaults *map[string]interface{} `json:"Defaults,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - LogQueries *bool `json:"LogQueries,omitempty"` - StyleSheet *map[string]interface{} `json:"StyleSheet,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + CallbackEvents *string `json:"CallbackEvents,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + Defaults *map[string]interface{} `json:"Defaults,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + LogQueries *bool `json:"LogQueries,omitempty"` + StyleSheet *map[string]interface{} `json:"StyleSheet,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -110,8 +110,8 @@ func (c *DefaultApiService) CreateAssistant(params *CreateAssistantParams) (*Aut } // CreateFieldParams Optional parameters for the method 'CreateField' type CreateFieldParams struct { - FieldType *string `json:"FieldType,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + FieldType *string `json:"FieldType,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -156,8 +156,8 @@ func (c *DefaultApiService) CreateField(AssistantSid string, TaskSid string, par } // CreateFieldTypeParams Optional parameters for the method 'CreateFieldType' type CreateFieldTypeParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -200,9 +200,9 @@ func (c *DefaultApiService) CreateFieldType(AssistantSid string, params *CreateF } // CreateFieldValueParams Optional parameters for the method 'CreateFieldValue' type CreateFieldValueParams struct { - Language *string `json:"Language,omitempty"` - SynonymOf *string `json:"SynonymOf,omitempty"` - Value *string `json:"Value,omitempty"` + Language *string `json:"Language,omitempty"` + SynonymOf *string `json:"SynonymOf,omitempty"` + Value *string `json:"Value,omitempty"` } /* @@ -251,8 +251,8 @@ func (c *DefaultApiService) CreateFieldValue(AssistantSid string, FieldTypeSid s } // CreateModelBuildParams Optional parameters for the method 'CreateModelBuild' type CreateModelBuildParams struct { - StatusCallback *string `json:"StatusCallback,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -295,10 +295,10 @@ func (c *DefaultApiService) CreateModelBuild(AssistantSid string, params *Create } // CreateQueryParams Optional parameters for the method 'CreateQuery' type CreateQueryParams struct { - Language *string `json:"Language,omitempty"` - ModelBuild *string `json:"ModelBuild,omitempty"` - Query *string `json:"Query,omitempty"` - Tasks *string `json:"Tasks,omitempty"` + Language *string `json:"Language,omitempty"` + ModelBuild *string `json:"ModelBuild,omitempty"` + Query *string `json:"Query,omitempty"` + Tasks *string `json:"Tasks,omitempty"` } /* @@ -349,9 +349,9 @@ func (c *DefaultApiService) CreateQuery(AssistantSid string, params *CreateQuery } // CreateSampleParams Optional parameters for the method 'CreateSample' type CreateSampleParams struct { - Language *string `json:"Language,omitempty"` - SourceChannel *string `json:"SourceChannel,omitempty"` - TaggedText *string `json:"TaggedText,omitempty"` + Language *string `json:"Language,omitempty"` + SourceChannel *string `json:"SourceChannel,omitempty"` + TaggedText *string `json:"TaggedText,omitempty"` } /* @@ -400,10 +400,10 @@ func (c *DefaultApiService) CreateSample(AssistantSid string, TaskSid string, pa } // CreateTaskParams Optional parameters for the method 'CreateTask' type CreateTaskParams struct { - Actions *map[string]interface{} `json:"Actions,omitempty"` - ActionsUrl *string `json:"ActionsUrl,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + Actions *map[string]interface{} `json:"Actions,omitempty"` + ActionsUrl *string `json:"ActionsUrl,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -460,10 +460,10 @@ func (c *DefaultApiService) CreateTask(AssistantSid string, params *CreateTaskPa } // CreateWebhookParams Optional parameters for the method 'CreateWebhook' type CreateWebhookParams struct { - Events *string `json:"Events,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` - WebhookMethod *string `json:"WebhookMethod,omitempty"` - WebhookUrl *string `json:"WebhookUrl,omitempty"` + Events *string `json:"Events,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + WebhookMethod *string `json:"WebhookMethod,omitempty"` + WebhookUrl *string `json:"WebhookUrl,omitempty"` } /* @@ -1202,16 +1202,16 @@ func (c *DefaultApiService) FetchWebhook(AssistantSid string, Sid string) (*Auto } // ListAssistantParams Optional parameters for the method 'ListAssistant' type ListAssistantParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* ListAssistant Method for ListAssistant * @param optional nil or *ListAssistantOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return AutopilotV1AssistantReadResponse +@return ListAssistantResponse */ -func (c *DefaultApiService) ListAssistant(params *ListAssistantParams) (*AutopilotV1AssistantReadResponse, error) { +func (c *DefaultApiService) ListAssistant(params *ListAssistantParams) (*ListAssistantResponse, error) { path := "/v1/Assistants" @@ -1230,7 +1230,7 @@ func (c *DefaultApiService) ListAssistant(params *ListAssistantParams) (*Autopil defer resp.Body.Close() - ps := &AutopilotV1AssistantReadResponse{} + ps := &ListAssistantResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1239,7 +1239,7 @@ func (c *DefaultApiService) ListAssistant(params *ListAssistantParams) (*Autopil } // ListFieldParams Optional parameters for the method 'ListField' type ListFieldParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1248,9 +1248,9 @@ ListField Method for ListField * @param TaskSid The SID of the [Task](https://www.twilio.com/docs/autopilot/api/task) resource associated with the Field resources to read. * @param optional nil or *ListFieldOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return AutopilotV1AssistantTaskFieldReadResponse +@return ListFieldResponse */ -func (c *DefaultApiService) ListField(AssistantSid string, TaskSid string, params *ListFieldParams) (*AutopilotV1AssistantTaskFieldReadResponse, error) { +func (c *DefaultApiService) ListField(AssistantSid string, TaskSid string, params *ListFieldParams) (*ListFieldResponse, error) { path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields" path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) path = strings.Replace(path, "{"+"TaskSid"+"}", TaskSid, -1) @@ -1271,7 +1271,7 @@ func (c *DefaultApiService) ListField(AssistantSid string, TaskSid string, param defer resp.Body.Close() - ps := &AutopilotV1AssistantTaskFieldReadResponse{} + ps := &ListFieldResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1280,7 +1280,7 @@ func (c *DefaultApiService) ListField(AssistantSid string, TaskSid string, param } // ListFieldTypeParams Optional parameters for the method 'ListFieldType' type ListFieldTypeParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1288,9 +1288,9 @@ ListFieldType Method for ListFieldType * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to read. * @param optional nil or *ListFieldTypeOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return AutopilotV1AssistantFieldTypeReadResponse +@return ListFieldTypeResponse */ -func (c *DefaultApiService) ListFieldType(AssistantSid string, params *ListFieldTypeParams) (*AutopilotV1AssistantFieldTypeReadResponse, error) { +func (c *DefaultApiService) ListFieldType(AssistantSid string, params *ListFieldTypeParams) (*ListFieldTypeResponse, error) { path := "/v1/Assistants/{AssistantSid}/FieldTypes" path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) @@ -1310,7 +1310,7 @@ func (c *DefaultApiService) ListFieldType(AssistantSid string, params *ListField defer resp.Body.Close() - ps := &AutopilotV1AssistantFieldTypeReadResponse{} + ps := &ListFieldTypeResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1319,8 +1319,8 @@ func (c *DefaultApiService) ListFieldType(AssistantSid string, params *ListField } // ListFieldValueParams Optional parameters for the method 'ListFieldValue' type ListFieldValueParams struct { - Language *string `json:"Language,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Language *string `json:"Language,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1330,9 +1330,9 @@ ListFieldValue Method for ListFieldValue * @param optional nil or *ListFieldValueOpts - Optional Parameters: * @param "Language" (string) - The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) tag that specifies the language of the value. Currently supported tags: `en-US` * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return AutopilotV1AssistantFieldTypeFieldValueReadResponse +@return ListFieldValueResponse */ -func (c *DefaultApiService) ListFieldValue(AssistantSid string, FieldTypeSid string, params *ListFieldValueParams) (*AutopilotV1AssistantFieldTypeFieldValueReadResponse, error) { +func (c *DefaultApiService) ListFieldValue(AssistantSid string, FieldTypeSid string, params *ListFieldValueParams) (*ListFieldValueResponse, error) { path := "/v1/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues" path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) path = strings.Replace(path, "{"+"FieldTypeSid"+"}", FieldTypeSid, -1) @@ -1356,7 +1356,7 @@ func (c *DefaultApiService) ListFieldValue(AssistantSid string, FieldTypeSid str defer resp.Body.Close() - ps := &AutopilotV1AssistantFieldTypeFieldValueReadResponse{} + ps := &ListFieldValueResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1365,7 +1365,7 @@ func (c *DefaultApiService) ListFieldValue(AssistantSid string, FieldTypeSid str } // ListModelBuildParams Optional parameters for the method 'ListModelBuild' type ListModelBuildParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1373,9 +1373,9 @@ ListModelBuild Method for ListModelBuild * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to read. * @param optional nil or *ListModelBuildOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return AutopilotV1AssistantModelBuildReadResponse +@return ListModelBuildResponse */ -func (c *DefaultApiService) ListModelBuild(AssistantSid string, params *ListModelBuildParams) (*AutopilotV1AssistantModelBuildReadResponse, error) { +func (c *DefaultApiService) ListModelBuild(AssistantSid string, params *ListModelBuildParams) (*ListModelBuildResponse, error) { path := "/v1/Assistants/{AssistantSid}/ModelBuilds" path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) @@ -1395,7 +1395,7 @@ func (c *DefaultApiService) ListModelBuild(AssistantSid string, params *ListMode defer resp.Body.Close() - ps := &AutopilotV1AssistantModelBuildReadResponse{} + ps := &ListModelBuildResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1404,11 +1404,11 @@ func (c *DefaultApiService) ListModelBuild(AssistantSid string, params *ListMode } // ListQueryParams Optional parameters for the method 'ListQuery' type ListQueryParams struct { - Language *string `json:"Language,omitempty"` - ModelBuild *string `json:"ModelBuild,omitempty"` - Status *string `json:"Status,omitempty"` - DialogueSid *string `json:"DialogueSid,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Language *string `json:"Language,omitempty"` + ModelBuild *string `json:"ModelBuild,omitempty"` + Status *string `json:"Status,omitempty"` + DialogueSid *string `json:"DialogueSid,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1420,9 +1420,9 @@ ListQuery Method for ListQuery * @param "Status" (string) - The status of the resources to read. Can be: `pending-review`, `reviewed`, or `discarded` * @param "DialogueSid" (string) - The SID of the [Dialogue](https://www.twilio.com/docs/autopilot/api/dialogue). * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return AutopilotV1AssistantQueryReadResponse +@return ListQueryResponse */ -func (c *DefaultApiService) ListQuery(AssistantSid string, params *ListQueryParams) (*AutopilotV1AssistantQueryReadResponse, error) { +func (c *DefaultApiService) ListQuery(AssistantSid string, params *ListQueryParams) (*ListQueryResponse, error) { path := "/v1/Assistants/{AssistantSid}/Queries" path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) @@ -1454,7 +1454,7 @@ func (c *DefaultApiService) ListQuery(AssistantSid string, params *ListQueryPara defer resp.Body.Close() - ps := &AutopilotV1AssistantQueryReadResponse{} + ps := &ListQueryResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1463,8 +1463,8 @@ func (c *DefaultApiService) ListQuery(AssistantSid string, params *ListQueryPara } // ListSampleParams Optional parameters for the method 'ListSample' type ListSampleParams struct { - Language *string `json:"Language,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Language *string `json:"Language,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1474,9 +1474,9 @@ ListSample Method for ListSample * @param optional nil or *ListSampleOpts - Optional Parameters: * @param "Language" (string) - The [ISO language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html) string that specifies the language used for the sample. For example: `en-US`. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return AutopilotV1AssistantTaskSampleReadResponse +@return ListSampleResponse */ -func (c *DefaultApiService) ListSample(AssistantSid string, TaskSid string, params *ListSampleParams) (*AutopilotV1AssistantTaskSampleReadResponse, error) { +func (c *DefaultApiService) ListSample(AssistantSid string, TaskSid string, params *ListSampleParams) (*ListSampleResponse, error) { path := "/v1/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples" path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) path = strings.Replace(path, "{"+"TaskSid"+"}", TaskSid, -1) @@ -1500,7 +1500,7 @@ func (c *DefaultApiService) ListSample(AssistantSid string, TaskSid string, para defer resp.Body.Close() - ps := &AutopilotV1AssistantTaskSampleReadResponse{} + ps := &ListSampleResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1509,7 +1509,7 @@ func (c *DefaultApiService) ListSample(AssistantSid string, TaskSid string, para } // ListTaskParams Optional parameters for the method 'ListTask' type ListTaskParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1517,9 +1517,9 @@ ListTask Method for ListTask * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to read. * @param optional nil or *ListTaskOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return AutopilotV1AssistantTaskReadResponse +@return ListTaskResponse */ -func (c *DefaultApiService) ListTask(AssistantSid string, params *ListTaskParams) (*AutopilotV1AssistantTaskReadResponse, error) { +func (c *DefaultApiService) ListTask(AssistantSid string, params *ListTaskParams) (*ListTaskResponse, error) { path := "/v1/Assistants/{AssistantSid}/Tasks" path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) @@ -1539,7 +1539,7 @@ func (c *DefaultApiService) ListTask(AssistantSid string, params *ListTaskParams defer resp.Body.Close() - ps := &AutopilotV1AssistantTaskReadResponse{} + ps := &ListTaskResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1548,7 +1548,7 @@ func (c *DefaultApiService) ListTask(AssistantSid string, params *ListTaskParams } // ListWebhookParams Optional parameters for the method 'ListWebhook' type ListWebhookParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1556,9 +1556,9 @@ ListWebhook Method for ListWebhook * @param AssistantSid The SID of the [Assistant](https://www.twilio.com/docs/autopilot/api/assistant) that is the parent of the resources to read. * @param optional nil or *ListWebhookOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return AutopilotV1AssistantWebhookReadResponse +@return ListWebhookResponse */ -func (c *DefaultApiService) ListWebhook(AssistantSid string, params *ListWebhookParams) (*AutopilotV1AssistantWebhookReadResponse, error) { +func (c *DefaultApiService) ListWebhook(AssistantSid string, params *ListWebhookParams) (*ListWebhookResponse, error) { path := "/v1/Assistants/{AssistantSid}/Webhooks" path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) @@ -1578,7 +1578,7 @@ func (c *DefaultApiService) ListWebhook(AssistantSid string, params *ListWebhook defer resp.Body.Close() - ps := &AutopilotV1AssistantWebhookReadResponse{} + ps := &ListWebhookResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1587,14 +1587,14 @@ func (c *DefaultApiService) ListWebhook(AssistantSid string, params *ListWebhook } // UpdateAssistantParams Optional parameters for the method 'UpdateAssistant' type UpdateAssistantParams struct { - CallbackEvents *string `json:"CallbackEvents,omitempty"` - CallbackUrl *string `json:"CallbackUrl,omitempty"` - Defaults *map[string]interface{} `json:"Defaults,omitempty"` - DevelopmentStage *string `json:"DevelopmentStage,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - LogQueries *bool `json:"LogQueries,omitempty"` - StyleSheet *map[string]interface{} `json:"StyleSheet,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + CallbackEvents *string `json:"CallbackEvents,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + Defaults *map[string]interface{} `json:"Defaults,omitempty"` + DevelopmentStage *string `json:"DevelopmentStage,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + LogQueries *bool `json:"LogQueries,omitempty"` + StyleSheet *map[string]interface{} `json:"StyleSheet,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -1673,7 +1673,7 @@ func (c *DefaultApiService) UpdateAssistant(Sid string, params *UpdateAssistantP } // UpdateDefaultsParams Optional parameters for the method 'UpdateDefaults' type UpdateDefaultsParams struct { - Defaults *map[string]interface{} `json:"Defaults,omitempty"` + Defaults *map[string]interface{} `json:"Defaults,omitempty"` } /* @@ -1718,8 +1718,8 @@ func (c *DefaultApiService) UpdateDefaults(AssistantSid string, params *UpdateDe } // UpdateFieldTypeParams Optional parameters for the method 'UpdateFieldType' type UpdateFieldTypeParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -1764,7 +1764,7 @@ func (c *DefaultApiService) UpdateFieldType(AssistantSid string, Sid string, par } // UpdateModelBuildParams Optional parameters for the method 'UpdateModelBuild' type UpdateModelBuildParams struct { - UniqueName *string `json:"UniqueName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -1805,8 +1805,8 @@ func (c *DefaultApiService) UpdateModelBuild(AssistantSid string, Sid string, pa } // UpdateQueryParams Optional parameters for the method 'UpdateQuery' type UpdateQueryParams struct { - SampleSid *string `json:"SampleSid,omitempty"` - Status *string `json:"Status,omitempty"` + SampleSid *string `json:"SampleSid,omitempty"` + Status *string `json:"Status,omitempty"` } /* @@ -1851,7 +1851,7 @@ func (c *DefaultApiService) UpdateQuery(AssistantSid string, Sid string, params } // UpdateRestoreAssistantParams Optional parameters for the method 'UpdateRestoreAssistant' type UpdateRestoreAssistantParams struct { - Assistant *string `json:"Assistant,omitempty"` + Assistant *string `json:"Assistant,omitempty"` } /* @@ -1888,9 +1888,9 @@ func (c *DefaultApiService) UpdateRestoreAssistant(params *UpdateRestoreAssistan } // UpdateSampleParams Optional parameters for the method 'UpdateSample' type UpdateSampleParams struct { - Language *string `json:"Language,omitempty"` - SourceChannel *string `json:"SourceChannel,omitempty"` - TaggedText *string `json:"TaggedText,omitempty"` + Language *string `json:"Language,omitempty"` + SourceChannel *string `json:"SourceChannel,omitempty"` + TaggedText *string `json:"TaggedText,omitempty"` } /* @@ -1941,7 +1941,7 @@ func (c *DefaultApiService) UpdateSample(AssistantSid string, TaskSid string, Si } // UpdateStyleSheetParams Optional parameters for the method 'UpdateStyleSheet' type UpdateStyleSheetParams struct { - StyleSheet *map[string]interface{} `json:"StyleSheet,omitempty"` + StyleSheet *map[string]interface{} `json:"StyleSheet,omitempty"` } /* @@ -1987,10 +1987,10 @@ func (c *DefaultApiService) UpdateStyleSheet(AssistantSid string, params *Update } // UpdateTaskParams Optional parameters for the method 'UpdateTask' type UpdateTaskParams struct { - Actions *map[string]interface{} `json:"Actions,omitempty"` - ActionsUrl *string `json:"ActionsUrl,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + Actions *map[string]interface{} `json:"Actions,omitempty"` + ActionsUrl *string `json:"ActionsUrl,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -2049,7 +2049,7 @@ func (c *DefaultApiService) UpdateTask(AssistantSid string, Sid string, params * } // UpdateTaskActionsParams Optional parameters for the method 'UpdateTaskActions' type UpdateTaskActionsParams struct { - Actions *map[string]interface{} `json:"Actions,omitempty"` + Actions *map[string]interface{} `json:"Actions,omitempty"` } /* @@ -2097,10 +2097,10 @@ func (c *DefaultApiService) UpdateTaskActions(AssistantSid string, TaskSid strin } // UpdateWebhookParams Optional parameters for the method 'UpdateWebhook' type UpdateWebhookParams struct { - Events *string `json:"Events,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` - WebhookMethod *string `json:"WebhookMethod,omitempty"` - WebhookUrl *string `json:"WebhookUrl,omitempty"` + Events *string `json:"Events,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + WebhookMethod *string `json:"WebhookMethod,omitempty"` + WebhookUrl *string `json:"WebhookUrl,omitempty"` } /* diff --git a/rest/autopilot/v1/docs/AutopilotV1AssistantReadResponseMeta.md b/rest/autopilot/v1/docs/AutopilotV1AssistantReadResponseMeta.md deleted file mode 100644 index 91a4fbc58..000000000 --- a/rest/autopilot/v1/docs/AutopilotV1AssistantReadResponseMeta.md +++ /dev/null @@ -1,17 +0,0 @@ -# AutopilotV1AssistantReadResponseMeta - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FirstPageUrl** | **string** | | [optional] -**Key** | **string** | | [optional] -**NextPageUrl** | **string** | | [optional] -**Page** | **int32** | | [optional] -**PageSize** | **int32** | | [optional] -**PreviousPageUrl** | **string** | | [optional] -**Url** | **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/rest/autopilot/v1/docs/DefaultApi.md b/rest/autopilot/v1/docs/DefaultApi.md index d819146f1..fdd442816 100644 --- a/rest/autopilot/v1/docs/DefaultApi.md +++ b/rest/autopilot/v1/docs/DefaultApi.md @@ -1239,7 +1239,7 @@ Name | Type | Description | Notes ## ListAssistant -> AutopilotV1AssistantReadResponse ListAssistant(ctx, optional) +> ListAssistantResponse ListAssistant(ctx, optional) @@ -1262,7 +1262,7 @@ Name | Type | Description | Notes ### Return type -[**AutopilotV1AssistantReadResponse**](autopilot_v1_assistantReadResponse.md) +[**ListAssistantResponse**](ListAssistantResponse.md) ### Authorization @@ -1280,7 +1280,7 @@ Name | Type | Description | Notes ## ListField -> AutopilotV1AssistantTaskFieldReadResponse ListField(ctx, AssistantSid, TaskSid, optional) +> ListFieldResponse ListField(ctx, AssistantSid, TaskSid, optional) @@ -1307,7 +1307,7 @@ Name | Type | Description | Notes ### Return type -[**AutopilotV1AssistantTaskFieldReadResponse**](autopilot_v1_assistant_task_fieldReadResponse.md) +[**ListFieldResponse**](ListFieldResponse.md) ### Authorization @@ -1325,7 +1325,7 @@ Name | Type | Description | Notes ## ListFieldType -> AutopilotV1AssistantFieldTypeReadResponse ListFieldType(ctx, AssistantSid, optional) +> ListFieldTypeResponse ListFieldType(ctx, AssistantSid, optional) @@ -1350,7 +1350,7 @@ Name | Type | Description | Notes ### Return type -[**AutopilotV1AssistantFieldTypeReadResponse**](autopilot_v1_assistant_field_typeReadResponse.md) +[**ListFieldTypeResponse**](ListFieldTypeResponse.md) ### Authorization @@ -1368,7 +1368,7 @@ Name | Type | Description | Notes ## ListFieldValue -> AutopilotV1AssistantFieldTypeFieldValueReadResponse ListFieldValue(ctx, AssistantSid, FieldTypeSid, optional) +> ListFieldValueResponse ListFieldValue(ctx, AssistantSid, FieldTypeSid, optional) @@ -1396,7 +1396,7 @@ Name | Type | Description | Notes ### Return type -[**AutopilotV1AssistantFieldTypeFieldValueReadResponse**](autopilot_v1_assistant_field_type_field_valueReadResponse.md) +[**ListFieldValueResponse**](ListFieldValueResponse.md) ### Authorization @@ -1414,7 +1414,7 @@ Name | Type | Description | Notes ## ListModelBuild -> AutopilotV1AssistantModelBuildReadResponse ListModelBuild(ctx, AssistantSid, optional) +> ListModelBuildResponse ListModelBuild(ctx, AssistantSid, optional) @@ -1439,7 +1439,7 @@ Name | Type | Description | Notes ### Return type -[**AutopilotV1AssistantModelBuildReadResponse**](autopilot_v1_assistant_model_buildReadResponse.md) +[**ListModelBuildResponse**](ListModelBuildResponse.md) ### Authorization @@ -1457,7 +1457,7 @@ Name | Type | Description | Notes ## ListQuery -> AutopilotV1AssistantQueryReadResponse ListQuery(ctx, AssistantSid, optional) +> ListQueryResponse ListQuery(ctx, AssistantSid, optional) @@ -1486,7 +1486,7 @@ Name | Type | Description | Notes ### Return type -[**AutopilotV1AssistantQueryReadResponse**](autopilot_v1_assistant_queryReadResponse.md) +[**ListQueryResponse**](ListQueryResponse.md) ### Authorization @@ -1504,7 +1504,7 @@ Name | Type | Description | Notes ## ListSample -> AutopilotV1AssistantTaskSampleReadResponse ListSample(ctx, AssistantSid, TaskSid, optional) +> ListSampleResponse ListSample(ctx, AssistantSid, TaskSid, optional) @@ -1532,7 +1532,7 @@ Name | Type | Description | Notes ### Return type -[**AutopilotV1AssistantTaskSampleReadResponse**](autopilot_v1_assistant_task_sampleReadResponse.md) +[**ListSampleResponse**](ListSampleResponse.md) ### Authorization @@ -1550,7 +1550,7 @@ Name | Type | Description | Notes ## ListTask -> AutopilotV1AssistantTaskReadResponse ListTask(ctx, AssistantSid, optional) +> ListTaskResponse ListTask(ctx, AssistantSid, optional) @@ -1575,7 +1575,7 @@ Name | Type | Description | Notes ### Return type -[**AutopilotV1AssistantTaskReadResponse**](autopilot_v1_assistant_taskReadResponse.md) +[**ListTaskResponse**](ListTaskResponse.md) ### Authorization @@ -1593,7 +1593,7 @@ Name | Type | Description | Notes ## ListWebhook -> AutopilotV1AssistantWebhookReadResponse ListWebhook(ctx, AssistantSid, optional) +> ListWebhookResponse ListWebhook(ctx, AssistantSid, optional) @@ -1618,7 +1618,7 @@ Name | Type | Description | Notes ### Return type -[**AutopilotV1AssistantWebhookReadResponse**](autopilot_v1_assistant_webhookReadResponse.md) +[**ListWebhookResponse**](ListWebhookResponse.md) ### Authorization diff --git a/rest/autopilot/v1/docs/AutopilotV1AssistantReadResponse.md b/rest/autopilot/v1/docs/ListAssistantResponse.md similarity index 70% rename from rest/autopilot/v1/docs/AutopilotV1AssistantReadResponse.md rename to rest/autopilot/v1/docs/ListAssistantResponse.md index 94e048bca..d69274bbb 100644 --- a/rest/autopilot/v1/docs/AutopilotV1AssistantReadResponse.md +++ b/rest/autopilot/v1/docs/ListAssistantResponse.md @@ -1,11 +1,11 @@ -# AutopilotV1AssistantReadResponse +# ListAssistantResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Assistants** | [**[]AutopilotV1Assistant**](autopilot.v1.assistant.md) | | [optional] -**Meta** | [**AutopilotV1AssistantReadResponseMeta**](autopilot_v1_assistantReadResponse_meta.md) | | [optional] +**Meta** | [**ListAssistantResponseMeta**](ListAssistantResponse_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/rest/studio/v1/docs/StudioV1FlowReadResponseMeta.md b/rest/autopilot/v1/docs/ListAssistantResponseMeta.md similarity index 94% rename from rest/studio/v1/docs/StudioV1FlowReadResponseMeta.md rename to rest/autopilot/v1/docs/ListAssistantResponseMeta.md index 7c13c9664..967b65b71 100644 --- a/rest/studio/v1/docs/StudioV1FlowReadResponseMeta.md +++ b/rest/autopilot/v1/docs/ListAssistantResponseMeta.md @@ -1,4 +1,4 @@ -# StudioV1FlowReadResponseMeta +# ListAssistantResponseMeta ## Properties diff --git a/rest/autopilot/v1/docs/AutopilotV1AssistantTaskFieldReadResponse.md b/rest/autopilot/v1/docs/ListFieldResponse.md similarity index 70% rename from rest/autopilot/v1/docs/AutopilotV1AssistantTaskFieldReadResponse.md rename to rest/autopilot/v1/docs/ListFieldResponse.md index 956868eb7..8bd5adca6 100644 --- a/rest/autopilot/v1/docs/AutopilotV1AssistantTaskFieldReadResponse.md +++ b/rest/autopilot/v1/docs/ListFieldResponse.md @@ -1,11 +1,11 @@ -# AutopilotV1AssistantTaskFieldReadResponse +# ListFieldResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Fields** | [**[]AutopilotV1AssistantTaskField**](autopilot.v1.assistant.task.field.md) | | [optional] -**Meta** | [**AutopilotV1AssistantReadResponseMeta**](autopilot_v1_assistantReadResponse_meta.md) | | [optional] +**Meta** | [**ListAssistantResponseMeta**](ListAssistantResponse_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/rest/autopilot/v1/docs/AutopilotV1AssistantFieldTypeReadResponse.md b/rest/autopilot/v1/docs/ListFieldTypeResponse.md similarity index 70% rename from rest/autopilot/v1/docs/AutopilotV1AssistantFieldTypeReadResponse.md rename to rest/autopilot/v1/docs/ListFieldTypeResponse.md index 547a240cb..d029af115 100644 --- a/rest/autopilot/v1/docs/AutopilotV1AssistantFieldTypeReadResponse.md +++ b/rest/autopilot/v1/docs/ListFieldTypeResponse.md @@ -1,11 +1,11 @@ -# AutopilotV1AssistantFieldTypeReadResponse +# ListFieldTypeResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FieldTypes** | [**[]AutopilotV1AssistantFieldType**](autopilot.v1.assistant.field_type.md) | | [optional] -**Meta** | [**AutopilotV1AssistantReadResponseMeta**](autopilot_v1_assistantReadResponse_meta.md) | | [optional] +**Meta** | [**ListAssistantResponseMeta**](ListAssistantResponse_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/rest/autopilot/v1/docs/AutopilotV1AssistantFieldTypeFieldValueReadResponse.md b/rest/autopilot/v1/docs/ListFieldValueResponse.md similarity index 70% rename from rest/autopilot/v1/docs/AutopilotV1AssistantFieldTypeFieldValueReadResponse.md rename to rest/autopilot/v1/docs/ListFieldValueResponse.md index ecb3ea5c8..7e21e0e4d 100644 --- a/rest/autopilot/v1/docs/AutopilotV1AssistantFieldTypeFieldValueReadResponse.md +++ b/rest/autopilot/v1/docs/ListFieldValueResponse.md @@ -1,11 +1,11 @@ -# AutopilotV1AssistantFieldTypeFieldValueReadResponse +# ListFieldValueResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FieldValues** | [**[]AutopilotV1AssistantFieldTypeFieldValue**](autopilot.v1.assistant.field_type.field_value.md) | | [optional] -**Meta** | [**AutopilotV1AssistantReadResponseMeta**](autopilot_v1_assistantReadResponse_meta.md) | | [optional] +**Meta** | [**ListAssistantResponseMeta**](ListAssistantResponse_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/rest/autopilot/v1/docs/AutopilotV1AssistantModelBuildReadResponse.md b/rest/autopilot/v1/docs/ListModelBuildResponse.md similarity index 70% rename from rest/autopilot/v1/docs/AutopilotV1AssistantModelBuildReadResponse.md rename to rest/autopilot/v1/docs/ListModelBuildResponse.md index b9d63a30d..1834ffb9e 100644 --- a/rest/autopilot/v1/docs/AutopilotV1AssistantModelBuildReadResponse.md +++ b/rest/autopilot/v1/docs/ListModelBuildResponse.md @@ -1,10 +1,10 @@ -# AutopilotV1AssistantModelBuildReadResponse +# ListModelBuildResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**AutopilotV1AssistantReadResponseMeta**](autopilot_v1_assistantReadResponse_meta.md) | | [optional] +**Meta** | [**ListAssistantResponseMeta**](ListAssistantResponse_meta.md) | | [optional] **ModelBuilds** | [**[]AutopilotV1AssistantModelBuild**](autopilot.v1.assistant.model_build.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/rest/autopilot/v1/docs/AutopilotV1AssistantQueryReadResponse.md b/rest/autopilot/v1/docs/ListQueryResponse.md similarity index 70% rename from rest/autopilot/v1/docs/AutopilotV1AssistantQueryReadResponse.md rename to rest/autopilot/v1/docs/ListQueryResponse.md index d5a688971..8bc0c45f2 100644 --- a/rest/autopilot/v1/docs/AutopilotV1AssistantQueryReadResponse.md +++ b/rest/autopilot/v1/docs/ListQueryResponse.md @@ -1,10 +1,10 @@ -# AutopilotV1AssistantQueryReadResponse +# ListQueryResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**AutopilotV1AssistantReadResponseMeta**](autopilot_v1_assistantReadResponse_meta.md) | | [optional] +**Meta** | [**ListAssistantResponseMeta**](ListAssistantResponse_meta.md) | | [optional] **Queries** | [**[]AutopilotV1AssistantQuery**](autopilot.v1.assistant.query.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/rest/autopilot/v1/docs/AutopilotV1AssistantTaskSampleReadResponse.md b/rest/autopilot/v1/docs/ListSampleResponse.md similarity index 70% rename from rest/autopilot/v1/docs/AutopilotV1AssistantTaskSampleReadResponse.md rename to rest/autopilot/v1/docs/ListSampleResponse.md index 5bbad3154..ef87502b6 100644 --- a/rest/autopilot/v1/docs/AutopilotV1AssistantTaskSampleReadResponse.md +++ b/rest/autopilot/v1/docs/ListSampleResponse.md @@ -1,10 +1,10 @@ -# AutopilotV1AssistantTaskSampleReadResponse +# ListSampleResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**AutopilotV1AssistantReadResponseMeta**](autopilot_v1_assistantReadResponse_meta.md) | | [optional] +**Meta** | [**ListAssistantResponseMeta**](ListAssistantResponse_meta.md) | | [optional] **Samples** | [**[]AutopilotV1AssistantTaskSample**](autopilot.v1.assistant.task.sample.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/rest/autopilot/v1/docs/AutopilotV1AssistantTaskReadResponse.md b/rest/autopilot/v1/docs/ListTaskResponse.md similarity index 70% rename from rest/autopilot/v1/docs/AutopilotV1AssistantTaskReadResponse.md rename to rest/autopilot/v1/docs/ListTaskResponse.md index 4505a80de..b51a91a83 100644 --- a/rest/autopilot/v1/docs/AutopilotV1AssistantTaskReadResponse.md +++ b/rest/autopilot/v1/docs/ListTaskResponse.md @@ -1,10 +1,10 @@ -# AutopilotV1AssistantTaskReadResponse +# ListTaskResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**AutopilotV1AssistantReadResponseMeta**](autopilot_v1_assistantReadResponse_meta.md) | | [optional] +**Meta** | [**ListAssistantResponseMeta**](ListAssistantResponse_meta.md) | | [optional] **Tasks** | [**[]AutopilotV1AssistantTask**](autopilot.v1.assistant.task.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/rest/autopilot/v1/docs/AutopilotV1AssistantWebhookReadResponse.md b/rest/autopilot/v1/docs/ListWebhookResponse.md similarity index 70% rename from rest/autopilot/v1/docs/AutopilotV1AssistantWebhookReadResponse.md rename to rest/autopilot/v1/docs/ListWebhookResponse.md index 6e4133e4b..1a69c002f 100644 --- a/rest/autopilot/v1/docs/AutopilotV1AssistantWebhookReadResponse.md +++ b/rest/autopilot/v1/docs/ListWebhookResponse.md @@ -1,10 +1,10 @@ -# AutopilotV1AssistantWebhookReadResponse +# ListWebhookResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**AutopilotV1AssistantReadResponseMeta**](autopilot_v1_assistantReadResponse_meta.md) | | [optional] +**Meta** | [**ListAssistantResponseMeta**](ListAssistantResponse_meta.md) | | [optional] **Webhooks** | [**[]AutopilotV1AssistantWebhook**](autopilot.v1.assistant.webhook.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/rest/autopilot/v1/model_autopilot_v1_assistant.go b/rest/autopilot/v1/model_autopilot_v1_assistant.go index 98dbcc64e..a2fc55ee1 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_defaults.go b/rest/autopilot/v1/model_autopilot_v1_assistant_defaults.go index 4200a83c1..1064fd64b 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_defaults.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_defaults.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_dialogue.go b/rest/autopilot/v1/model_autopilot_v1_assistant_dialogue.go index cf4b529ab..6b69f94bc 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_dialogue.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_dialogue.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_field_type.go b/rest/autopilot/v1/model_autopilot_v1_assistant_field_type.go index ab7620bb8..0cdc9a417 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_field_type.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_field_type.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_field_type_field_value.go b/rest/autopilot/v1/model_autopilot_v1_assistant_field_type_field_value.go index 96eceb44d..2ae237e46 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_field_type_field_value.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_field_type_field_value.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_model_build.go b/rest/autopilot/v1/model_autopilot_v1_assistant_model_build.go index 88038dc88..a179d418a 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_model_build.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_model_build.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_query.go b/rest/autopilot/v1/model_autopilot_v1_assistant_query.go index 0a914500c..0edee5588 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_query.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_query.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_style_sheet.go b/rest/autopilot/v1/model_autopilot_v1_assistant_style_sheet.go index 1cb5bf4bd..48cac20ea 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_style_sheet.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_style_sheet.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_task.go b/rest/autopilot/v1/model_autopilot_v1_assistant_task.go index 29bf528e0..504f8bd45 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_task.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_task.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_task_field.go b/rest/autopilot/v1/model_autopilot_v1_assistant_task_field.go index 2830506c6..a59adad42 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_task_field.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_task_field.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_task_sample.go b/rest/autopilot/v1/model_autopilot_v1_assistant_task_sample.go index 8fe4eb5c9..3ef31340c 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_task_sample.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_task_sample.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_task_task_actions.go b/rest/autopilot/v1/model_autopilot_v1_assistant_task_task_actions.go index f7bb56eca..e4d22dba1 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_task_task_actions.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_task_task_actions.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_task_task_statistics.go b/rest/autopilot/v1/model_autopilot_v1_assistant_task_task_statistics.go index e45ea3347..f9a4966ab 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_task_task_statistics.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_task_task_statistics.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_webhook.go b/rest/autopilot/v1/model_autopilot_v1_assistant_webhook.go index 8d35a599c..6b54bdf27 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_webhook.go +++ b/rest/autopilot/v1/model_autopilot_v1_assistant_webhook.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/autopilot/v1/model_autopilot_v1_restore_assistant.go b/rest/autopilot/v1/model_autopilot_v1_restore_assistant.go index 9daea4189..31ad1a756 100644 --- a/rest/autopilot/v1/model_autopilot_v1_restore_assistant.go +++ b/rest/autopilot/v1/model_autopilot_v1_restore_assistant.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/autopilot/v1/model_create_assistant_request.go b/rest/autopilot/v1/model_create_assistant_request.go index bc676b6e0..7f85112ed 100644 --- a/rest/autopilot/v1/model_create_assistant_request.go +++ b/rest/autopilot/v1/model_create_assistant_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/autopilot/v1/model_create_field_request.go b/rest/autopilot/v1/model_create_field_request.go index 93b1994de..6f78bce69 100644 --- a/rest/autopilot/v1/model_create_field_request.go +++ b/rest/autopilot/v1/model_create_field_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/autopilot/v1/model_create_field_type_request.go b/rest/autopilot/v1/model_create_field_type_request.go index ce0c6715f..a261d5eec 100644 --- a/rest/autopilot/v1/model_create_field_type_request.go +++ b/rest/autopilot/v1/model_create_field_type_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/autopilot/v1/model_create_field_value_request.go b/rest/autopilot/v1/model_create_field_value_request.go index 3be12afb1..da992dbd1 100644 --- a/rest/autopilot/v1/model_create_field_value_request.go +++ b/rest/autopilot/v1/model_create_field_value_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/autopilot/v1/model_create_model_build_request.go b/rest/autopilot/v1/model_create_model_build_request.go index aa41c573a..37c84abfb 100644 --- a/rest/autopilot/v1/model_create_model_build_request.go +++ b/rest/autopilot/v1/model_create_model_build_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/autopilot/v1/model_create_query_request.go b/rest/autopilot/v1/model_create_query_request.go index dcb8a6488..d57bbac1c 100644 --- a/rest/autopilot/v1/model_create_query_request.go +++ b/rest/autopilot/v1/model_create_query_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/autopilot/v1/model_create_sample_request.go b/rest/autopilot/v1/model_create_sample_request.go index 5f0668b7b..6d492b874 100644 --- a/rest/autopilot/v1/model_create_sample_request.go +++ b/rest/autopilot/v1/model_create_sample_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/autopilot/v1/model_create_task_request.go b/rest/autopilot/v1/model_create_task_request.go index bb30e7979..8c1d61263 100644 --- a/rest/autopilot/v1/model_create_task_request.go +++ b/rest/autopilot/v1/model_create_task_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/autopilot/v1/model_create_webhook_request.go b/rest/autopilot/v1/model_create_webhook_request.go index c653c5d34..8b71a7a2c 100644 --- a/rest/autopilot/v1/model_create_webhook_request.go +++ b/rest/autopilot/v1/model_create_webhook_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_read_response.go b/rest/autopilot/v1/model_list_assistant_response.go similarity index 54% rename from rest/autopilot/v1/model_autopilot_v1_assistant_read_response.go rename to rest/autopilot/v1/model_list_assistant_response.go index 8d01974a0..5f93a51f1 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_read_response.go +++ b/rest/autopilot/v1/model_list_assistant_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// AutopilotV1AssistantReadResponse struct for AutopilotV1AssistantReadResponse -type AutopilotV1AssistantReadResponse struct { +// ListAssistantResponse struct for ListAssistantResponse +type ListAssistantResponse struct { Assistants []AutopilotV1Assistant `json:"Assistants,omitempty"` - Meta AutopilotV1AssistantReadResponseMeta `json:"Meta,omitempty"` + Meta ListAssistantResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_read_response_meta.go b/rest/autopilot/v1/model_list_assistant_response_meta.go similarity index 75% rename from rest/autopilot/v1/model_autopilot_v1_assistant_read_response_meta.go rename to rest/autopilot/v1/model_list_assistant_response_meta.go index b30723f68..8082a9101 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_read_response_meta.go +++ b/rest/autopilot/v1/model_list_assistant_response_meta.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// AutopilotV1AssistantReadResponseMeta struct for AutopilotV1AssistantReadResponseMeta -type AutopilotV1AssistantReadResponseMeta struct { +// ListAssistantResponseMeta struct for ListAssistantResponseMeta +type ListAssistantResponseMeta struct { FirstPageUrl string `json:"FirstPageUrl,omitempty"` Key string `json:"Key,omitempty"` NextPageUrl string `json:"NextPageUrl,omitempty"` diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_task_field_read_response.go b/rest/autopilot/v1/model_list_field_response.go similarity index 51% rename from rest/autopilot/v1/model_autopilot_v1_assistant_task_field_read_response.go rename to rest/autopilot/v1/model_list_field_response.go index 2301e3b2f..d5dfcdde7 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_task_field_read_response.go +++ b/rest/autopilot/v1/model_list_field_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// AutopilotV1AssistantTaskFieldReadResponse struct for AutopilotV1AssistantTaskFieldReadResponse -type AutopilotV1AssistantTaskFieldReadResponse struct { +// ListFieldResponse struct for ListFieldResponse +type ListFieldResponse struct { Fields []AutopilotV1AssistantTaskField `json:"Fields,omitempty"` - Meta AutopilotV1AssistantReadResponseMeta `json:"Meta,omitempty"` + Meta ListAssistantResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_field_type_read_response.go b/rest/autopilot/v1/model_list_field_type_response.go similarity index 52% rename from rest/autopilot/v1/model_autopilot_v1_assistant_field_type_read_response.go rename to rest/autopilot/v1/model_list_field_type_response.go index 41183cd3e..f2604744d 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_field_type_read_response.go +++ b/rest/autopilot/v1/model_list_field_type_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// AutopilotV1AssistantFieldTypeReadResponse struct for AutopilotV1AssistantFieldTypeReadResponse -type AutopilotV1AssistantFieldTypeReadResponse struct { +// ListFieldTypeResponse struct for ListFieldTypeResponse +type ListFieldTypeResponse struct { FieldTypes []AutopilotV1AssistantFieldType `json:"FieldTypes,omitempty"` - Meta AutopilotV1AssistantReadResponseMeta `json:"Meta,omitempty"` + Meta ListAssistantResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_field_type_field_value_read_response.go b/rest/autopilot/v1/model_list_field_value_response.go similarity index 50% rename from rest/autopilot/v1/model_autopilot_v1_assistant_field_type_field_value_read_response.go rename to rest/autopilot/v1/model_list_field_value_response.go index e09a82493..22497e6a6 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_field_type_field_value_read_response.go +++ b/rest/autopilot/v1/model_list_field_value_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// AutopilotV1AssistantFieldTypeFieldValueReadResponse struct for AutopilotV1AssistantFieldTypeFieldValueReadResponse -type AutopilotV1AssistantFieldTypeFieldValueReadResponse struct { +// ListFieldValueResponse struct for ListFieldValueResponse +type ListFieldValueResponse struct { FieldValues []AutopilotV1AssistantFieldTypeFieldValue `json:"FieldValues,omitempty"` - Meta AutopilotV1AssistantReadResponseMeta `json:"Meta,omitempty"` + Meta ListAssistantResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_model_build_read_response.go b/rest/autopilot/v1/model_list_model_build_response.go similarity index 52% rename from rest/autopilot/v1/model_autopilot_v1_assistant_model_build_read_response.go rename to rest/autopilot/v1/model_list_model_build_response.go index c137fd677..e391f59f8 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_model_build_read_response.go +++ b/rest/autopilot/v1/model_list_model_build_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// AutopilotV1AssistantModelBuildReadResponse struct for AutopilotV1AssistantModelBuildReadResponse -type AutopilotV1AssistantModelBuildReadResponse struct { - Meta AutopilotV1AssistantReadResponseMeta `json:"Meta,omitempty"` +// ListModelBuildResponse struct for ListModelBuildResponse +type ListModelBuildResponse struct { + Meta ListAssistantResponseMeta `json:"Meta,omitempty"` ModelBuilds []AutopilotV1AssistantModelBuild `json:"ModelBuilds,omitempty"` } diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_query_read_response.go b/rest/autopilot/v1/model_list_query_response.go similarity index 52% rename from rest/autopilot/v1/model_autopilot_v1_assistant_query_read_response.go rename to rest/autopilot/v1/model_list_query_response.go index ce9670fcb..ea1c30fce 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_query_read_response.go +++ b/rest/autopilot/v1/model_list_query_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// AutopilotV1AssistantQueryReadResponse struct for AutopilotV1AssistantQueryReadResponse -type AutopilotV1AssistantQueryReadResponse struct { - Meta AutopilotV1AssistantReadResponseMeta `json:"Meta,omitempty"` +// ListQueryResponse struct for ListQueryResponse +type ListQueryResponse struct { + Meta ListAssistantResponseMeta `json:"Meta,omitempty"` Queries []AutopilotV1AssistantQuery `json:"Queries,omitempty"` } diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_task_sample_read_response.go b/rest/autopilot/v1/model_list_sample_response.go similarity index 51% rename from rest/autopilot/v1/model_autopilot_v1_assistant_task_sample_read_response.go rename to rest/autopilot/v1/model_list_sample_response.go index f27cd5003..21c2be633 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_task_sample_read_response.go +++ b/rest/autopilot/v1/model_list_sample_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// AutopilotV1AssistantTaskSampleReadResponse struct for AutopilotV1AssistantTaskSampleReadResponse -type AutopilotV1AssistantTaskSampleReadResponse struct { - Meta AutopilotV1AssistantReadResponseMeta `json:"Meta,omitempty"` +// ListSampleResponse struct for ListSampleResponse +type ListSampleResponse struct { + Meta ListAssistantResponseMeta `json:"Meta,omitempty"` Samples []AutopilotV1AssistantTaskSample `json:"Samples,omitempty"` } diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_task_read_response.go b/rest/autopilot/v1/model_list_task_response.go similarity index 52% rename from rest/autopilot/v1/model_autopilot_v1_assistant_task_read_response.go rename to rest/autopilot/v1/model_list_task_response.go index ec12d992c..4eae5926a 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_task_read_response.go +++ b/rest/autopilot/v1/model_list_task_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// AutopilotV1AssistantTaskReadResponse struct for AutopilotV1AssistantTaskReadResponse -type AutopilotV1AssistantTaskReadResponse struct { - Meta AutopilotV1AssistantReadResponseMeta `json:"Meta,omitempty"` +// ListTaskResponse struct for ListTaskResponse +type ListTaskResponse struct { + Meta ListAssistantResponseMeta `json:"Meta,omitempty"` Tasks []AutopilotV1AssistantTask `json:"Tasks,omitempty"` } diff --git a/rest/autopilot/v1/model_autopilot_v1_assistant_webhook_read_response.go b/rest/autopilot/v1/model_list_webhook_response.go similarity index 52% rename from rest/autopilot/v1/model_autopilot_v1_assistant_webhook_read_response.go rename to rest/autopilot/v1/model_list_webhook_response.go index 6758b43cc..9e8f79b72 100644 --- a/rest/autopilot/v1/model_autopilot_v1_assistant_webhook_read_response.go +++ b/rest/autopilot/v1/model_list_webhook_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// AutopilotV1AssistantWebhookReadResponse struct for AutopilotV1AssistantWebhookReadResponse -type AutopilotV1AssistantWebhookReadResponse struct { - Meta AutopilotV1AssistantReadResponseMeta `json:"Meta,omitempty"` +// ListWebhookResponse struct for ListWebhookResponse +type ListWebhookResponse struct { + Meta ListAssistantResponseMeta `json:"Meta,omitempty"` Webhooks []AutopilotV1AssistantWebhook `json:"Webhooks,omitempty"` } diff --git a/rest/autopilot/v1/model_update_assistant_request.go b/rest/autopilot/v1/model_update_assistant_request.go index 4d718644d..827cb48f8 100644 --- a/rest/autopilot/v1/model_update_assistant_request.go +++ b/rest/autopilot/v1/model_update_assistant_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/autopilot/v1/model_update_defaults_request.go b/rest/autopilot/v1/model_update_defaults_request.go index 302ca25c8..52ab7fee0 100644 --- a/rest/autopilot/v1/model_update_defaults_request.go +++ b/rest/autopilot/v1/model_update_defaults_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/autopilot/v1/model_update_field_type_request.go b/rest/autopilot/v1/model_update_field_type_request.go index 59bc3c04b..7b33a681f 100644 --- a/rest/autopilot/v1/model_update_field_type_request.go +++ b/rest/autopilot/v1/model_update_field_type_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/autopilot/v1/model_update_model_build_request.go b/rest/autopilot/v1/model_update_model_build_request.go index 47ea5d57d..6cf334f74 100644 --- a/rest/autopilot/v1/model_update_model_build_request.go +++ b/rest/autopilot/v1/model_update_model_build_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/autopilot/v1/model_update_query_request.go b/rest/autopilot/v1/model_update_query_request.go index efb19a828..24089087c 100644 --- a/rest/autopilot/v1/model_update_query_request.go +++ b/rest/autopilot/v1/model_update_query_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/autopilot/v1/model_update_restore_assistant_request.go b/rest/autopilot/v1/model_update_restore_assistant_request.go index 3fd6dbba3..d7093c3fc 100644 --- a/rest/autopilot/v1/model_update_restore_assistant_request.go +++ b/rest/autopilot/v1/model_update_restore_assistant_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/autopilot/v1/model_update_sample_request.go b/rest/autopilot/v1/model_update_sample_request.go index e0694f8b7..b96a3ccae 100644 --- a/rest/autopilot/v1/model_update_sample_request.go +++ b/rest/autopilot/v1/model_update_sample_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/autopilot/v1/model_update_style_sheet_request.go b/rest/autopilot/v1/model_update_style_sheet_request.go index 1b70e7bcc..85bd6cd00 100644 --- a/rest/autopilot/v1/model_update_style_sheet_request.go +++ b/rest/autopilot/v1/model_update_style_sheet_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/autopilot/v1/model_update_task_actions_request.go b/rest/autopilot/v1/model_update_task_actions_request.go index a60f65f06..5c25a0dc9 100644 --- a/rest/autopilot/v1/model_update_task_actions_request.go +++ b/rest/autopilot/v1/model_update_task_actions_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/autopilot/v1/model_update_task_request.go b/rest/autopilot/v1/model_update_task_request.go index 5e15f001e..4504b01fd 100644 --- a/rest/autopilot/v1/model_update_task_request.go +++ b/rest/autopilot/v1/model_update_task_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/autopilot/v1/model_update_webhook_request.go b/rest/autopilot/v1/model_update_webhook_request.go index 3bb1f8b90..f606f723d 100644 --- a/rest/autopilot/v1/model_update_webhook_request.go +++ b/rest/autopilot/v1/model_update_webhook_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/autopilot/v1/response.go b/rest/autopilot/v1/response.go index c9f407420..d5bcb7b05 100644 --- a/rest/autopilot/v1/response.go +++ b/rest/autopilot/v1/response.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/bulkexports/v1/README.md b/rest/bulkexports/v1/README.md index 81d9096e2..c5921f0ac 100644 --- a/rest/bulkexports/v1/README.md +++ b/rest/bulkexports/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 5.15.0 +- API version: 1.0.0 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) @@ -48,12 +48,12 @@ Class | Method | HTTP request | Description - [BulkexportsV1ExportConfiguration](docs/BulkexportsV1ExportConfiguration.md) - [BulkexportsV1ExportDay](docs/BulkexportsV1ExportDay.md) - [BulkexportsV1ExportDayInstance](docs/BulkexportsV1ExportDayInstance.md) - - [BulkexportsV1ExportDayReadResponse](docs/BulkexportsV1ExportDayReadResponse.md) - - [BulkexportsV1ExportDayReadResponseMeta](docs/BulkexportsV1ExportDayReadResponseMeta.md) - [BulkexportsV1ExportExportCustomJob](docs/BulkexportsV1ExportExportCustomJob.md) - - [BulkexportsV1ExportExportCustomJobReadResponse](docs/BulkexportsV1ExportExportCustomJobReadResponse.md) - [BulkexportsV1ExportJob](docs/BulkexportsV1ExportJob.md) - [CreateExportCustomJobRequest](docs/CreateExportCustomJobRequest.md) + - [ListDayResponse](docs/ListDayResponse.md) + - [ListDayResponseMeta](docs/ListDayResponseMeta.md) + - [ListExportCustomJobResponse](docs/ListExportCustomJobResponse.md) - [UpdateExportConfigurationRequest](docs/UpdateExportConfigurationRequest.md) diff --git a/rest/bulkexports/v1/api_default.go b/rest/bulkexports/v1/api_default.go index 54c58ee57..d3d1557cd 100644 --- a/rest/bulkexports/v1/api_default.go +++ b/rest/bulkexports/v1/api_default.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -26,22 +26,22 @@ type DefaultApiService struct { func NewDefaultApiService(client *twilio.Client) *DefaultApiService { return &DefaultApiService { client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + baseURL: fmt.Sprintf("https://bulkexports.twilio.com"), } } // CreateExportCustomJobParams Optional parameters for the method 'CreateExportCustomJob' type CreateExportCustomJobParams struct { - Email *string `json:"Email,omitempty"` - EndDay *string `json:"EndDay,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - StartDay *string `json:"StartDay,omitempty"` - WebhookMethod *string `json:"WebhookMethod,omitempty"` - WebhookUrl *string `json:"WebhookUrl,omitempty"` + Email *string `json:"Email,omitempty"` + EndDay *string `json:"EndDay,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + StartDay *string `json:"StartDay,omitempty"` + WebhookMethod *string `json:"WebhookMethod,omitempty"` + WebhookUrl *string `json:"WebhookUrl,omitempty"` } /* CreateExportCustomJob Method for CreateExportCustomJob - * @param ResourceType The type of communication – Messages or Calls + * @param ResourceType The type of communication – Messages or Calls, Conferences, and Participants * @param optional nil or *CreateExportCustomJobOpts - Optional Parameters: * @param "Email" (string) - The optional email to send the completion notification to. You can set both webhook, and email, or one or the other. If you set neither, the job will run but you will have to query to determine your job's status. * @param "EndDay" (string) - The end day for the custom export specified as a string in the format of yyyy-mm-dd. End day is inclusive and must be 2 days earlier than the current UTC day. @@ -121,7 +121,7 @@ func (c *DefaultApiService) DeleteJob(JobSid string) (error) { /* FetchDay Method for FetchDay Fetch a specific Day. - * @param ResourceType The type of communication – Messages, Calls + * @param ResourceType The type of communication – Messages, Calls, Conferences, and Participants * @param Day The ISO 8601 format date of the resources in the file, for a UTC day */ func (c *DefaultApiService) FetchDay(ResourceType string, Day string) (error) { @@ -148,7 +148,7 @@ func (c *DefaultApiService) FetchDay(ResourceType string, Day string) (error) { /* FetchExport Method for FetchExport Fetch a specific Export. - * @param ResourceType The type of communication – Messages, Calls + * @param ResourceType The type of communication – Messages, Calls, Conferences, and Participants @return BulkexportsV1Export */ func (c *DefaultApiService) FetchExport(ResourceType string) (*BulkexportsV1Export, error) { @@ -179,7 +179,7 @@ func (c *DefaultApiService) FetchExport(ResourceType string) (*BulkexportsV1Expo /* FetchExportConfiguration Method for FetchExportConfiguration Fetch a specific Export Configuration. - * @param ResourceType The type of communication – Messages, Calls + * @param ResourceType The type of communication – Messages, Calls, Conferences, and Participants @return BulkexportsV1ExportConfiguration */ func (c *DefaultApiService) FetchExportConfiguration(ResourceType string) (*BulkexportsV1ExportConfiguration, error) { @@ -209,7 +209,7 @@ func (c *DefaultApiService) FetchExportConfiguration(ResourceType string) (*Bulk /* FetchJob Method for FetchJob - * @param JobSid + * @param JobSid The unique string that that we created to identify the Bulk Export job @return BulkexportsV1ExportJob */ func (c *DefaultApiService) FetchJob(JobSid string) (*BulkexportsV1ExportJob, error) { @@ -238,18 +238,18 @@ func (c *DefaultApiService) FetchJob(JobSid string) (*BulkexportsV1ExportJob, er } // ListDayParams Optional parameters for the method 'ListDay' type ListDayParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* ListDay Method for ListDay Retrieve a list of all Days for a resource. - * @param ResourceType The type of communication – Messages, Calls + * @param ResourceType The type of communication – Messages, Calls, Conferences, and Participants * @param optional nil or *ListDayOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return BulkexportsV1ExportDayReadResponse +@return ListDayResponse */ -func (c *DefaultApiService) ListDay(ResourceType string, params *ListDayParams) (*BulkexportsV1ExportDayReadResponse, error) { +func (c *DefaultApiService) ListDay(ResourceType string, params *ListDayParams) (*ListDayResponse, error) { path := "/v1/Exports/{ResourceType}/Days" path = strings.Replace(path, "{"+"ResourceType"+"}", ResourceType, -1) @@ -269,7 +269,7 @@ func (c *DefaultApiService) ListDay(ResourceType string, params *ListDayParams) defer resp.Body.Close() - ps := &BulkexportsV1ExportDayReadResponse{} + ps := &ListDayResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -278,17 +278,17 @@ func (c *DefaultApiService) ListDay(ResourceType string, params *ListDayParams) } // ListExportCustomJobParams Optional parameters for the method 'ListExportCustomJob' type ListExportCustomJobParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* ListExportCustomJob Method for ListExportCustomJob - * @param ResourceType The type of communication – Messages, Calls + * @param ResourceType The type of communication – Messages, Calls, Conferences, and Participants * @param optional nil or *ListExportCustomJobOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return BulkexportsV1ExportExportCustomJobReadResponse +@return ListExportCustomJobResponse */ -func (c *DefaultApiService) ListExportCustomJob(ResourceType string, params *ListExportCustomJobParams) (*BulkexportsV1ExportExportCustomJobReadResponse, error) { +func (c *DefaultApiService) ListExportCustomJob(ResourceType string, params *ListExportCustomJobParams) (*ListExportCustomJobResponse, error) { path := "/v1/Exports/{ResourceType}/Jobs" path = strings.Replace(path, "{"+"ResourceType"+"}", ResourceType, -1) @@ -308,7 +308,7 @@ func (c *DefaultApiService) ListExportCustomJob(ResourceType string, params *Lis defer resp.Body.Close() - ps := &BulkexportsV1ExportExportCustomJobReadResponse{} + ps := &ListExportCustomJobResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -317,15 +317,15 @@ func (c *DefaultApiService) ListExportCustomJob(ResourceType string, params *Lis } // UpdateExportConfigurationParams Optional parameters for the method 'UpdateExportConfiguration' type UpdateExportConfigurationParams struct { - Enabled *bool `json:"Enabled,omitempty"` - WebhookMethod *string `json:"WebhookMethod,omitempty"` - WebhookUrl *string `json:"WebhookUrl,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + WebhookMethod *string `json:"WebhookMethod,omitempty"` + WebhookUrl *string `json:"WebhookUrl,omitempty"` } /* UpdateExportConfiguration Method for UpdateExportConfiguration Update a specific Export Configuration. - * @param ResourceType The type of communication – Messages, Calls + * @param ResourceType The type of communication – Messages, Calls, Conferences, and Participants * @param optional nil or *UpdateExportConfigurationOpts - Optional Parameters: * @param "Enabled" (bool) - If true, Twilio will automatically generate every day's file when the day is over. * @param "WebhookMethod" (string) - Sets whether Twilio should call a webhook URL when the automatic generation is complete, using GET or POST. The actual destination is set in the webhook_url diff --git a/rest/bulkexports/v1/docs/BulkexportsV1ExportDayReadResponseMeta.md b/rest/bulkexports/v1/docs/BulkexportsV1ExportDayReadResponseMeta.md deleted file mode 100644 index 2cdd4d81b..000000000 --- a/rest/bulkexports/v1/docs/BulkexportsV1ExportDayReadResponseMeta.md +++ /dev/null @@ -1,17 +0,0 @@ -# BulkexportsV1ExportDayReadResponseMeta - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FirstPageUrl** | **string** | | [optional] -**Key** | **string** | | [optional] -**NextPageUrl** | **string** | | [optional] -**Page** | **int32** | | [optional] -**PageSize** | **int32** | | [optional] -**PreviousPageUrl** | **string** | | [optional] -**Url** | **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/rest/bulkexports/v1/docs/DefaultApi.md b/rest/bulkexports/v1/docs/DefaultApi.md index 600b2a919..e348802d5 100644 --- a/rest/bulkexports/v1/docs/DefaultApi.md +++ b/rest/bulkexports/v1/docs/DefaultApi.md @@ -28,7 +28,7 @@ Method | HTTP request | Description Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**ResourceType** | **string**| The type of communication – Messages or Calls | +**ResourceType** | **string**| The type of communication – Messages or Calls, Conferences, and Participants | **optional** | ***CreateExportCustomJobOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -110,7 +110,7 @@ Fetch a specific Day. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**ResourceType** | **string**| The type of communication – Messages, Calls | +**ResourceType** | **string**| The type of communication – Messages, Calls, Conferences, and Participants | **Day** | **string**| The ISO 8601 format date of the resources in the file, for a UTC day | ### Return type @@ -145,7 +145,7 @@ Fetch a specific Export. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**ResourceType** | **string**| The type of communication – Messages, Calls | +**ResourceType** | **string**| The type of communication – Messages, Calls, Conferences, and Participants | ### Return type @@ -179,7 +179,7 @@ Fetch a specific Export Configuration. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**ResourceType** | **string**| The type of communication – Messages, Calls | +**ResourceType** | **string**| The type of communication – Messages, Calls, Conferences, and Participants | ### Return type @@ -211,7 +211,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**JobSid** | **string**| | +**JobSid** | **string**| The unique string that that we created to identify the Bulk Export job | ### Return type @@ -233,7 +233,7 @@ Name | Type | Description | Notes ## ListDay -> BulkexportsV1ExportDayReadResponse ListDay(ctx, ResourceType, optional) +> ListDayResponse ListDay(ctx, ResourceType, optional) @@ -245,7 +245,7 @@ Retrieve a list of all Days for a resource. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**ResourceType** | **string**| The type of communication – Messages, Calls | +**ResourceType** | **string**| The type of communication – Messages, Calls, Conferences, and Participants | **optional** | ***ListDayOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -260,7 +260,7 @@ Name | Type | Description | Notes ### Return type -[**BulkexportsV1ExportDayReadResponse**](bulkexports_v1_export_dayReadResponse.md) +[**ListDayResponse**](ListDayResponse.md) ### Authorization @@ -278,7 +278,7 @@ Name | Type | Description | Notes ## ListExportCustomJob -> BulkexportsV1ExportExportCustomJobReadResponse ListExportCustomJob(ctx, ResourceType, optional) +> ListExportCustomJobResponse ListExportCustomJob(ctx, ResourceType, optional) @@ -288,7 +288,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**ResourceType** | **string**| The type of communication – Messages, Calls | +**ResourceType** | **string**| The type of communication – Messages, Calls, Conferences, and Participants | **optional** | ***ListExportCustomJobOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -303,7 +303,7 @@ Name | Type | Description | Notes ### Return type -[**BulkexportsV1ExportExportCustomJobReadResponse**](bulkexports_v1_export_export_custom_jobReadResponse.md) +[**ListExportCustomJobResponse**](ListExportCustomJobResponse.md) ### Authorization @@ -333,7 +333,7 @@ Update a specific Export Configuration. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**ResourceType** | **string**| The type of communication – Messages, Calls | +**ResourceType** | **string**| The type of communication – Messages, Calls, Conferences, and Participants | **optional** | ***UpdateExportConfigurationOpts** | optional parameters | nil if no parameters ### Optional Parameters diff --git a/rest/bulkexports/v1/docs/BulkexportsV1ExportDayReadResponse.md b/rest/bulkexports/v1/docs/ListDayResponse.md similarity index 69% rename from rest/bulkexports/v1/docs/BulkexportsV1ExportDayReadResponse.md rename to rest/bulkexports/v1/docs/ListDayResponse.md index 7ef19f977..5cacf20c4 100644 --- a/rest/bulkexports/v1/docs/BulkexportsV1ExportDayReadResponse.md +++ b/rest/bulkexports/v1/docs/ListDayResponse.md @@ -1,11 +1,11 @@ -# BulkexportsV1ExportDayReadResponse +# ListDayResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Days** | [**[]BulkexportsV1ExportDay**](bulkexports.v1.export.day.md) | | [optional] -**Meta** | [**BulkexportsV1ExportDayReadResponseMeta**](bulkexports_v1_export_dayReadResponse_meta.md) | | [optional] +**Meta** | [**ListDayResponseMeta**](ListDayResponse_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/rest/fax/v1/docs/FaxV1FaxReadResponseMeta.md b/rest/bulkexports/v1/docs/ListDayResponseMeta.md similarity index 95% rename from rest/fax/v1/docs/FaxV1FaxReadResponseMeta.md rename to rest/bulkexports/v1/docs/ListDayResponseMeta.md index 973b3fb5e..a08156e33 100644 --- a/rest/fax/v1/docs/FaxV1FaxReadResponseMeta.md +++ b/rest/bulkexports/v1/docs/ListDayResponseMeta.md @@ -1,4 +1,4 @@ -# FaxV1FaxReadResponseMeta +# ListDayResponseMeta ## Properties diff --git a/rest/bulkexports/v1/docs/BulkexportsV1ExportExportCustomJobReadResponse.md b/rest/bulkexports/v1/docs/ListExportCustomJobResponse.md similarity index 69% rename from rest/bulkexports/v1/docs/BulkexportsV1ExportExportCustomJobReadResponse.md rename to rest/bulkexports/v1/docs/ListExportCustomJobResponse.md index a0a4a6968..28afb496d 100644 --- a/rest/bulkexports/v1/docs/BulkexportsV1ExportExportCustomJobReadResponse.md +++ b/rest/bulkexports/v1/docs/ListExportCustomJobResponse.md @@ -1,11 +1,11 @@ -# BulkexportsV1ExportExportCustomJobReadResponse +# ListExportCustomJobResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Jobs** | [**[]BulkexportsV1ExportExportCustomJob**](bulkexports.v1.export.export_custom_job.md) | | [optional] -**Meta** | [**BulkexportsV1ExportDayReadResponseMeta**](bulkexports_v1_export_dayReadResponse_meta.md) | | [optional] +**Meta** | [**ListDayResponseMeta**](ListDayResponse_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/rest/bulkexports/v1/model_bulkexports_v1_export.go b/rest/bulkexports/v1/model_bulkexports_v1_export.go index 449859315..a280b0c55 100644 --- a/rest/bulkexports/v1/model_bulkexports_v1_export.go +++ b/rest/bulkexports/v1/model_bulkexports_v1_export.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/bulkexports/v1/model_bulkexports_v1_export_configuration.go b/rest/bulkexports/v1/model_bulkexports_v1_export_configuration.go index ee98b2e75..b46065b65 100644 --- a/rest/bulkexports/v1/model_bulkexports_v1_export_configuration.go +++ b/rest/bulkexports/v1/model_bulkexports_v1_export_configuration.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/bulkexports/v1/model_bulkexports_v1_export_day.go b/rest/bulkexports/v1/model_bulkexports_v1_export_day.go index 6fb81ff55..6408abef3 100644 --- a/rest/bulkexports/v1/model_bulkexports_v1_export_day.go +++ b/rest/bulkexports/v1/model_bulkexports_v1_export_day.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/bulkexports/v1/model_bulkexports_v1_export_day_instance.go b/rest/bulkexports/v1/model_bulkexports_v1_export_day_instance.go index 10110ce60..357eaf1ce 100644 --- a/rest/bulkexports/v1/model_bulkexports_v1_export_day_instance.go +++ b/rest/bulkexports/v1/model_bulkexports_v1_export_day_instance.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/bulkexports/v1/model_bulkexports_v1_export_day_read_response_meta.go b/rest/bulkexports/v1/model_bulkexports_v1_export_day_read_response_meta.go deleted file mode 100644 index 3a618225c..000000000 --- a/rest/bulkexports/v1/model_bulkexports_v1_export_day_read_response_meta.go +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Twilio - Bulkexports - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// BulkexportsV1ExportDayReadResponseMeta struct for BulkexportsV1ExportDayReadResponseMeta -type BulkexportsV1ExportDayReadResponseMeta struct { - FirstPageUrl string `json:"FirstPageUrl,omitempty"` - Key string `json:"Key,omitempty"` - NextPageUrl string `json:"NextPageUrl,omitempty"` - Page int32 `json:"Page,omitempty"` - PageSize int32 `json:"PageSize,omitempty"` - PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` - Url string `json:"Url,omitempty"` -} diff --git a/rest/bulkexports/v1/model_bulkexports_v1_export_export_custom_job.go b/rest/bulkexports/v1/model_bulkexports_v1_export_export_custom_job.go index 9a0da4cf1..3b43a9813 100644 --- a/rest/bulkexports/v1/model_bulkexports_v1_export_export_custom_job.go +++ b/rest/bulkexports/v1/model_bulkexports_v1_export_export_custom_job.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/bulkexports/v1/model_bulkexports_v1_export_job.go b/rest/bulkexports/v1/model_bulkexports_v1_export_job.go index 759470c07..9238110c9 100644 --- a/rest/bulkexports/v1/model_bulkexports_v1_export_job.go +++ b/rest/bulkexports/v1/model_bulkexports_v1_export_job.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/bulkexports/v1/model_create_export_custom_job_request.go b/rest/bulkexports/v1/model_create_export_custom_job_request.go index c1ddfee18..aa0490b01 100644 --- a/rest/bulkexports/v1/model_create_export_custom_job_request.go +++ b/rest/bulkexports/v1/model_create_export_custom_job_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/bulkexports/v1/model_bulkexports_v1_export_day_read_response.go b/rest/bulkexports/v1/model_list_day_response.go similarity index 52% rename from rest/bulkexports/v1/model_bulkexports_v1_export_day_read_response.go rename to rest/bulkexports/v1/model_list_day_response.go index 057cfabbe..39f45503c 100644 --- a/rest/bulkexports/v1/model_bulkexports_v1_export_day_read_response.go +++ b/rest/bulkexports/v1/model_list_day_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// BulkexportsV1ExportDayReadResponse struct for BulkexportsV1ExportDayReadResponse -type BulkexportsV1ExportDayReadResponse struct { +// ListDayResponse struct for ListDayResponse +type ListDayResponse struct { Days []BulkexportsV1ExportDay `json:"Days,omitempty"` - Meta BulkexportsV1ExportDayReadResponseMeta `json:"Meta,omitempty"` + Meta ListDayResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/bulkexports/v1/model_list_day_response_meta.go b/rest/bulkexports/v1/model_list_day_response_meta.go new file mode 100644 index 000000000..007842875 --- /dev/null +++ b/rest/bulkexports/v1/model_list_day_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Bulkexports + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListDayResponseMeta struct for ListDayResponseMeta +type ListDayResponseMeta struct { + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` +} diff --git a/rest/bulkexports/v1/model_bulkexports_v1_export_export_custom_job_read_response.go b/rest/bulkexports/v1/model_list_export_custom_job_response.go similarity index 50% rename from rest/bulkexports/v1/model_bulkexports_v1_export_export_custom_job_read_response.go rename to rest/bulkexports/v1/model_list_export_custom_job_response.go index ce78abde1..9c854d722 100644 --- a/rest/bulkexports/v1/model_bulkexports_v1_export_export_custom_job_read_response.go +++ b/rest/bulkexports/v1/model_list_export_custom_job_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// BulkexportsV1ExportExportCustomJobReadResponse struct for BulkexportsV1ExportExportCustomJobReadResponse -type BulkexportsV1ExportExportCustomJobReadResponse struct { +// ListExportCustomJobResponse struct for ListExportCustomJobResponse +type ListExportCustomJobResponse struct { Jobs []BulkexportsV1ExportExportCustomJob `json:"Jobs,omitempty"` - Meta BulkexportsV1ExportDayReadResponseMeta `json:"Meta,omitempty"` + Meta ListDayResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/bulkexports/v1/model_update_export_configuration_request.go b/rest/bulkexports/v1/model_update_export_configuration_request.go index 5bebe9075..02c33cb0c 100644 --- a/rest/bulkexports/v1/model_update_export_configuration_request.go +++ b/rest/bulkexports/v1/model_update_export_configuration_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/bulkexports/v1/response.go b/rest/bulkexports/v1/response.go index 853e4ec60..738f49798 100644 --- a/rest/bulkexports/v1/response.go +++ b/rest/bulkexports/v1/response.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v1/README.md b/rest/chat/v1/README.md index 6c36d1df5..1cb0501c1 100644 --- a/rest/chat/v1/README.md +++ b/rest/chat/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 5.15.0 +- API version: 1.0.0 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) @@ -76,24 +76,14 @@ Class | Method | HTTP request | Description ## Documentation For Models - [ChatV1Credential](docs/ChatV1Credential.md) - - [ChatV1CredentialReadResponse](docs/ChatV1CredentialReadResponse.md) - - [ChatV1CredentialReadResponseMeta](docs/ChatV1CredentialReadResponseMeta.md) - [ChatV1Service](docs/ChatV1Service.md) - [ChatV1ServiceChannel](docs/ChatV1ServiceChannel.md) - [ChatV1ServiceChannelInvite](docs/ChatV1ServiceChannelInvite.md) - - [ChatV1ServiceChannelInviteReadResponse](docs/ChatV1ServiceChannelInviteReadResponse.md) - [ChatV1ServiceChannelMember](docs/ChatV1ServiceChannelMember.md) - - [ChatV1ServiceChannelMemberReadResponse](docs/ChatV1ServiceChannelMemberReadResponse.md) - [ChatV1ServiceChannelMessage](docs/ChatV1ServiceChannelMessage.md) - - [ChatV1ServiceChannelMessageReadResponse](docs/ChatV1ServiceChannelMessageReadResponse.md) - - [ChatV1ServiceChannelReadResponse](docs/ChatV1ServiceChannelReadResponse.md) - - [ChatV1ServiceReadResponse](docs/ChatV1ServiceReadResponse.md) - [ChatV1ServiceRole](docs/ChatV1ServiceRole.md) - - [ChatV1ServiceRoleReadResponse](docs/ChatV1ServiceRoleReadResponse.md) - [ChatV1ServiceUser](docs/ChatV1ServiceUser.md) - - [ChatV1ServiceUserReadResponse](docs/ChatV1ServiceUserReadResponse.md) - [ChatV1ServiceUserUserChannel](docs/ChatV1ServiceUserUserChannel.md) - - [ChatV1ServiceUserUserChannelReadResponse](docs/ChatV1ServiceUserUserChannelReadResponse.md) - [CreateChannelRequest](docs/CreateChannelRequest.md) - [CreateCredentialRequest](docs/CreateCredentialRequest.md) - [CreateInviteRequest](docs/CreateInviteRequest.md) @@ -102,6 +92,16 @@ Class | Method | HTTP request | Description - [CreateRoleRequest](docs/CreateRoleRequest.md) - [CreateServiceRequest](docs/CreateServiceRequest.md) - [CreateUserRequest](docs/CreateUserRequest.md) + - [ListChannelResponse](docs/ListChannelResponse.md) + - [ListCredentialResponse](docs/ListCredentialResponse.md) + - [ListCredentialResponseMeta](docs/ListCredentialResponseMeta.md) + - [ListInviteResponse](docs/ListInviteResponse.md) + - [ListMemberResponse](docs/ListMemberResponse.md) + - [ListMessageResponse](docs/ListMessageResponse.md) + - [ListRoleResponse](docs/ListRoleResponse.md) + - [ListServiceResponse](docs/ListServiceResponse.md) + - [ListUserChannelResponse](docs/ListUserChannelResponse.md) + - [ListUserResponse](docs/ListUserResponse.md) - [UpdateChannelRequest](docs/UpdateChannelRequest.md) - [UpdateCredentialRequest](docs/UpdateCredentialRequest.md) - [UpdateMemberRequest](docs/UpdateMemberRequest.md) diff --git a/rest/chat/v1/api_default.go b/rest/chat/v1/api_default.go index bb8c370de..e06cb6a82 100644 --- a/rest/chat/v1/api_default.go +++ b/rest/chat/v1/api_default.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -26,15 +26,15 @@ type DefaultApiService struct { func NewDefaultApiService(client *twilio.Client) *DefaultApiService { return &DefaultApiService { client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + baseURL: fmt.Sprintf("https://chat.twilio.com"), } } // CreateChannelParams Optional parameters for the method 'CreateChannel' type CreateChannelParams struct { - Attributes *string `json:"Attributes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Type *string `json:"Type,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Type *string `json:"Type,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -85,13 +85,13 @@ func (c *DefaultApiService) CreateChannel(ServiceSid string, params *CreateChann } // CreateCredentialParams Optional parameters for the method 'CreateCredential' type CreateCredentialParams struct { - ApiKey *string `json:"ApiKey,omitempty"` - Certificate *string `json:"Certificate,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PrivateKey *string `json:"PrivateKey,omitempty"` - Sandbox *bool `json:"Sandbox,omitempty"` - Secret *string `json:"Secret,omitempty"` - Type *string `json:"Type,omitempty"` + ApiKey *string `json:"ApiKey,omitempty"` + Certificate *string `json:"Certificate,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PrivateKey *string `json:"PrivateKey,omitempty"` + Sandbox *bool `json:"Sandbox,omitempty"` + Secret *string `json:"Secret,omitempty"` + Type *string `json:"Type,omitempty"` } /* @@ -152,8 +152,8 @@ func (c *DefaultApiService) CreateCredential(params *CreateCredentialParams) (*C } // CreateInviteParams Optional parameters for the method 'CreateInvite' type CreateInviteParams struct { - Identity *string `json:"Identity,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + Identity *string `json:"Identity,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -198,8 +198,8 @@ func (c *DefaultApiService) CreateInvite(ServiceSid string, ChannelSid string, p } // CreateMemberParams Optional parameters for the method 'CreateMember' type CreateMemberParams struct { - Identity *string `json:"Identity,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + Identity *string `json:"Identity,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -244,9 +244,9 @@ func (c *DefaultApiService) CreateMember(ServiceSid string, ChannelSid string, p } // CreateMessageParams Optional parameters for the method 'CreateMessage' type CreateMessageParams struct { - Attributes *string `json:"Attributes,omitempty"` - Body *string `json:"Body,omitempty"` - From *string `json:"From,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + Body *string `json:"Body,omitempty"` + From *string `json:"From,omitempty"` } /* @@ -295,9 +295,9 @@ func (c *DefaultApiService) CreateMessage(ServiceSid string, ChannelSid string, } // CreateRoleParams Optional parameters for the method 'CreateRole' type CreateRoleParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - Permission *[]string `json:"Permission,omitempty"` - Type *string `json:"Type,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Permission *[]string `json:"Permission,omitempty"` + Type *string `json:"Type,omitempty"` } /* @@ -344,7 +344,7 @@ func (c *DefaultApiService) CreateRole(ServiceSid string, params *CreateRolePara } // CreateServiceParams Optional parameters for the method 'CreateService' type CreateServiceParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -381,10 +381,10 @@ func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*ChatV1S } // CreateUserParams Optional parameters for the method 'CreateUser' type CreateUserParams struct { - Attributes *string `json:"Attributes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Identity *string `json:"Identity,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Identity *string `json:"Identity,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -903,8 +903,8 @@ func (c *DefaultApiService) FetchUser(ServiceSid string, Sid string) (*ChatV1Ser } // ListChannelParams Optional parameters for the method 'ListChannel' type ListChannelParams struct { - Type *[]string `json:"Type,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Type *[]string `json:"Type,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -913,9 +913,9 @@ ListChannel Method for ListChannel * @param optional nil or *ListChannelOpts - Optional Parameters: * @param "Type" ([]string) - The visibility of the Channels to read. Can be: `public` or `private` and defaults to `public`. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ChatV1ServiceChannelReadResponse +@return ListChannelResponse */ -func (c *DefaultApiService) ListChannel(ServiceSid string, params *ListChannelParams) (*ChatV1ServiceChannelReadResponse, error) { +func (c *DefaultApiService) ListChannel(ServiceSid string, params *ListChannelParams) (*ListChannelResponse, error) { path := "/v1/Services/{ServiceSid}/Channels" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -938,7 +938,7 @@ func (c *DefaultApiService) ListChannel(ServiceSid string, params *ListChannelPa defer resp.Body.Close() - ps := &ChatV1ServiceChannelReadResponse{} + ps := &ListChannelResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -947,16 +947,16 @@ func (c *DefaultApiService) ListChannel(ServiceSid string, params *ListChannelPa } // ListCredentialParams Optional parameters for the method 'ListCredential' type ListCredentialParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* ListCredential Method for ListCredential * @param optional nil or *ListCredentialOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ChatV1CredentialReadResponse +@return ListCredentialResponse */ -func (c *DefaultApiService) ListCredential(params *ListCredentialParams) (*ChatV1CredentialReadResponse, error) { +func (c *DefaultApiService) ListCredential(params *ListCredentialParams) (*ListCredentialResponse, error) { path := "/v1/Credentials" @@ -975,7 +975,7 @@ func (c *DefaultApiService) ListCredential(params *ListCredentialParams) (*ChatV defer resp.Body.Close() - ps := &ChatV1CredentialReadResponse{} + ps := &ListCredentialResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -984,8 +984,8 @@ func (c *DefaultApiService) ListCredential(params *ListCredentialParams) (*ChatV } // ListInviteParams Optional parameters for the method 'ListInvite' type ListInviteParams struct { - Identity *[]string `json:"Identity,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Identity *[]string `json:"Identity,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -995,9 +995,9 @@ ListInvite Method for ListInvite * @param optional nil or *ListInviteOpts - Optional Parameters: * @param "Identity" ([]string) - The [User](https://www.twilio.com/docs/api/chat/rest/v1/user)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) for more details. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ChatV1ServiceChannelInviteReadResponse +@return ListInviteResponse */ -func (c *DefaultApiService) ListInvite(ServiceSid string, ChannelSid string, params *ListInviteParams) (*ChatV1ServiceChannelInviteReadResponse, error) { +func (c *DefaultApiService) ListInvite(ServiceSid string, ChannelSid string, params *ListInviteParams) (*ListInviteResponse, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) @@ -1021,7 +1021,7 @@ func (c *DefaultApiService) ListInvite(ServiceSid string, ChannelSid string, par defer resp.Body.Close() - ps := &ChatV1ServiceChannelInviteReadResponse{} + ps := &ListInviteResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1030,8 +1030,8 @@ func (c *DefaultApiService) ListInvite(ServiceSid string, ChannelSid string, par } // ListMemberParams Optional parameters for the method 'ListMember' type ListMemberParams struct { - Identity *[]string `json:"Identity,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Identity *[]string `json:"Identity,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1041,9 +1041,9 @@ ListMember Method for ListMember * @param optional nil or *ListMemberOpts - Optional Parameters: * @param "Identity" ([]string) - The [User](https://www.twilio.com/docs/api/chat/rest/v1/user)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/api/chat/guides/create-tokens) for more details. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ChatV1ServiceChannelMemberReadResponse +@return ListMemberResponse */ -func (c *DefaultApiService) ListMember(ServiceSid string, ChannelSid string, params *ListMemberParams) (*ChatV1ServiceChannelMemberReadResponse, error) { +func (c *DefaultApiService) ListMember(ServiceSid string, ChannelSid string, params *ListMemberParams) (*ListMemberResponse, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Members" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) @@ -1067,7 +1067,7 @@ func (c *DefaultApiService) ListMember(ServiceSid string, ChannelSid string, par defer resp.Body.Close() - ps := &ChatV1ServiceChannelMemberReadResponse{} + ps := &ListMemberResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1076,8 +1076,8 @@ func (c *DefaultApiService) ListMember(ServiceSid string, ChannelSid string, par } // ListMessageParams Optional parameters for the method 'ListMessage' type ListMessageParams struct { - Order *string `json:"Order,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Order *string `json:"Order,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1087,9 +1087,9 @@ ListMessage Method for ListMessage * @param optional nil or *ListMessageOpts - Optional Parameters: * @param "Order" (string) - The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending) with `asc` as the default. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ChatV1ServiceChannelMessageReadResponse +@return ListMessageResponse */ -func (c *DefaultApiService) ListMessage(ServiceSid string, ChannelSid string, params *ListMessageParams) (*ChatV1ServiceChannelMessageReadResponse, error) { +func (c *DefaultApiService) ListMessage(ServiceSid string, ChannelSid string, params *ListMessageParams) (*ListMessageResponse, error) { path := "/v1/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) @@ -1113,7 +1113,7 @@ func (c *DefaultApiService) ListMessage(ServiceSid string, ChannelSid string, pa defer resp.Body.Close() - ps := &ChatV1ServiceChannelMessageReadResponse{} + ps := &ListMessageResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1122,7 +1122,7 @@ func (c *DefaultApiService) ListMessage(ServiceSid string, ChannelSid string, pa } // ListRoleParams Optional parameters for the method 'ListRole' type ListRoleParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1130,9 +1130,9 @@ ListRole Method for ListRole * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. * @param optional nil or *ListRoleOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ChatV1ServiceRoleReadResponse +@return ListRoleResponse */ -func (c *DefaultApiService) ListRole(ServiceSid string, params *ListRoleParams) (*ChatV1ServiceRoleReadResponse, error) { +func (c *DefaultApiService) ListRole(ServiceSid string, params *ListRoleParams) (*ListRoleResponse, error) { path := "/v1/Services/{ServiceSid}/Roles" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -1152,7 +1152,7 @@ func (c *DefaultApiService) ListRole(ServiceSid string, params *ListRoleParams) defer resp.Body.Close() - ps := &ChatV1ServiceRoleReadResponse{} + ps := &ListRoleResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1161,16 +1161,16 @@ func (c *DefaultApiService) ListRole(ServiceSid string, params *ListRoleParams) } // ListServiceParams Optional parameters for the method 'ListService' type ListServiceParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* ListService Method for ListService * @param optional nil or *ListServiceOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ChatV1ServiceReadResponse +@return ListServiceResponse */ -func (c *DefaultApiService) ListService(params *ListServiceParams) (*ChatV1ServiceReadResponse, error) { +func (c *DefaultApiService) ListService(params *ListServiceParams) (*ListServiceResponse, error) { path := "/v1/Services" @@ -1189,7 +1189,7 @@ func (c *DefaultApiService) ListService(params *ListServiceParams) (*ChatV1Servi defer resp.Body.Close() - ps := &ChatV1ServiceReadResponse{} + ps := &ListServiceResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1198,7 +1198,7 @@ func (c *DefaultApiService) ListService(params *ListServiceParams) (*ChatV1Servi } // ListUserParams Optional parameters for the method 'ListUser' type ListUserParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1206,9 +1206,9 @@ ListUser Method for ListUser * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/api/chat/rest/services) to read the resources from. * @param optional nil or *ListUserOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ChatV1ServiceUserReadResponse +@return ListUserResponse */ -func (c *DefaultApiService) ListUser(ServiceSid string, params *ListUserParams) (*ChatV1ServiceUserReadResponse, error) { +func (c *DefaultApiService) ListUser(ServiceSid string, params *ListUserParams) (*ListUserResponse, error) { path := "/v1/Services/{ServiceSid}/Users" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -1228,7 +1228,7 @@ func (c *DefaultApiService) ListUser(ServiceSid string, params *ListUserParams) defer resp.Body.Close() - ps := &ChatV1ServiceUserReadResponse{} + ps := &ListUserResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1237,7 +1237,7 @@ func (c *DefaultApiService) ListUser(ServiceSid string, params *ListUserParams) } // ListUserChannelParams Optional parameters for the method 'ListUserChannel' type ListUserChannelParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1247,9 +1247,9 @@ List all Channels for a given User. * @param UserSid The SID of the [User](https://www.twilio.com/docs/api/chat/rest/users) to read the User Channel resources from. * @param optional nil or *ListUserChannelOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ChatV1ServiceUserUserChannelReadResponse +@return ListUserChannelResponse */ -func (c *DefaultApiService) ListUserChannel(ServiceSid string, UserSid string, params *ListUserChannelParams) (*ChatV1ServiceUserUserChannelReadResponse, error) { +func (c *DefaultApiService) ListUserChannel(ServiceSid string, UserSid string, params *ListUserChannelParams) (*ListUserChannelResponse, error) { path := "/v1/Services/{ServiceSid}/Users/{UserSid}/Channels" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"UserSid"+"}", UserSid, -1) @@ -1270,7 +1270,7 @@ func (c *DefaultApiService) ListUserChannel(ServiceSid string, UserSid string, p defer resp.Body.Close() - ps := &ChatV1ServiceUserUserChannelReadResponse{} + ps := &ListUserChannelResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1279,9 +1279,9 @@ func (c *DefaultApiService) ListUserChannel(ServiceSid string, UserSid string, p } // UpdateChannelParams Optional parameters for the method 'UpdateChannel' type UpdateChannelParams struct { - Attributes *string `json:"Attributes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -1330,12 +1330,12 @@ func (c *DefaultApiService) UpdateChannel(ServiceSid string, Sid string, params } // UpdateCredentialParams Optional parameters for the method 'UpdateCredential' type UpdateCredentialParams struct { - ApiKey *string `json:"ApiKey,omitempty"` - Certificate *string `json:"Certificate,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PrivateKey *string `json:"PrivateKey,omitempty"` - Sandbox *bool `json:"Sandbox,omitempty"` - Secret *string `json:"Secret,omitempty"` + ApiKey *string `json:"ApiKey,omitempty"` + Certificate *string `json:"Certificate,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PrivateKey *string `json:"PrivateKey,omitempty"` + Sandbox *bool `json:"Sandbox,omitempty"` + Secret *string `json:"Secret,omitempty"` } /* @@ -1394,8 +1394,8 @@ func (c *DefaultApiService) UpdateCredential(Sid string, params *UpdateCredentia } // UpdateMemberParams Optional parameters for the method 'UpdateMember' type UpdateMemberParams struct { - LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -1442,8 +1442,8 @@ func (c *DefaultApiService) UpdateMember(ServiceSid string, ChannelSid string, S } // UpdateMessageParams Optional parameters for the method 'UpdateMessage' type UpdateMessageParams struct { - Attributes *string `json:"Attributes,omitempty"` - Body *string `json:"Body,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + Body *string `json:"Body,omitempty"` } /* @@ -1490,7 +1490,7 @@ func (c *DefaultApiService) UpdateMessage(ServiceSid string, ChannelSid string, } // UpdateRoleParams Optional parameters for the method 'UpdateRole' type UpdateRoleParams struct { - Permission *[]string `json:"Permission,omitempty"` + Permission *[]string `json:"Permission,omitempty"` } /* @@ -1531,60 +1531,60 @@ func (c *DefaultApiService) UpdateRole(ServiceSid string, Sid string, params *Up } // UpdateServiceParams Optional parameters for the method 'UpdateService' type UpdateServiceParams struct { - ConsumptionReportInterval *int32 `json:"ConsumptionReportInterval,omitempty"` - DefaultChannelCreatorRoleSid *string `json:"DefaultChannelCreatorRoleSid,omitempty"` - DefaultChannelRoleSid *string `json:"DefaultChannelRoleSid,omitempty"` - DefaultServiceRoleSid *string `json:"DefaultServiceRoleSid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - LimitsChannelMembers *int32 `json:"Limits.ChannelMembers,omitempty"` - LimitsUserChannels *int32 `json:"Limits.UserChannels,omitempty"` - NotificationsAddedToChannelEnabled *bool `json:"Notifications.AddedToChannel.Enabled,omitempty"` - NotificationsAddedToChannelTemplate *string `json:"Notifications.AddedToChannel.Template,omitempty"` - NotificationsInvitedToChannelEnabled *bool `json:"Notifications.InvitedToChannel.Enabled,omitempty"` - NotificationsInvitedToChannelTemplate *string `json:"Notifications.InvitedToChannel.Template,omitempty"` - NotificationsNewMessageEnabled *bool `json:"Notifications.NewMessage.Enabled,omitempty"` - NotificationsNewMessageTemplate *string `json:"Notifications.NewMessage.Template,omitempty"` - NotificationsRemovedFromChannelEnabled *bool `json:"Notifications.RemovedFromChannel.Enabled,omitempty"` - NotificationsRemovedFromChannelTemplate *string `json:"Notifications.RemovedFromChannel.Template,omitempty"` - PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"` - PreWebhookUrl *string `json:"PreWebhookUrl,omitempty"` - ReachabilityEnabled *bool `json:"ReachabilityEnabled,omitempty"` - ReadStatusEnabled *bool `json:"ReadStatusEnabled,omitempty"` - TypingIndicatorTimeout *int32 `json:"TypingIndicatorTimeout,omitempty"` - WebhookFilters *[]string `json:"WebhookFilters,omitempty"` - WebhookMethod *string `json:"WebhookMethod,omitempty"` - WebhooksOnChannelAddMethod *string `json:"Webhooks.OnChannelAdd.Method,omitempty"` - WebhooksOnChannelAddUrl *string `json:"Webhooks.OnChannelAdd.Url,omitempty"` - WebhooksOnChannelAddedMethod *string `json:"Webhooks.OnChannelAdded.Method,omitempty"` - WebhooksOnChannelAddedUrl *string `json:"Webhooks.OnChannelAdded.Url,omitempty"` - WebhooksOnChannelDestroyMethod *string `json:"Webhooks.OnChannelDestroy.Method,omitempty"` - WebhooksOnChannelDestroyUrl *string `json:"Webhooks.OnChannelDestroy.Url,omitempty"` - WebhooksOnChannelDestroyedMethod *string `json:"Webhooks.OnChannelDestroyed.Method,omitempty"` - WebhooksOnChannelDestroyedUrl *string `json:"Webhooks.OnChannelDestroyed.Url,omitempty"` - WebhooksOnChannelUpdateMethod *string `json:"Webhooks.OnChannelUpdate.Method,omitempty"` - WebhooksOnChannelUpdateUrl *string `json:"Webhooks.OnChannelUpdate.Url,omitempty"` - WebhooksOnChannelUpdatedMethod *string `json:"Webhooks.OnChannelUpdated.Method,omitempty"` - WebhooksOnChannelUpdatedUrl *string `json:"Webhooks.OnChannelUpdated.Url,omitempty"` - WebhooksOnMemberAddMethod *string `json:"Webhooks.OnMemberAdd.Method,omitempty"` - WebhooksOnMemberAddUrl *string `json:"Webhooks.OnMemberAdd.Url,omitempty"` - WebhooksOnMemberAddedMethod *string `json:"Webhooks.OnMemberAdded.Method,omitempty"` - WebhooksOnMemberAddedUrl *string `json:"Webhooks.OnMemberAdded.Url,omitempty"` - WebhooksOnMemberRemoveMethod *string `json:"Webhooks.OnMemberRemove.Method,omitempty"` - WebhooksOnMemberRemoveUrl *string `json:"Webhooks.OnMemberRemove.Url,omitempty"` - WebhooksOnMemberRemovedMethod *string `json:"Webhooks.OnMemberRemoved.Method,omitempty"` - WebhooksOnMemberRemovedUrl *string `json:"Webhooks.OnMemberRemoved.Url,omitempty"` - WebhooksOnMessageRemoveMethod *string `json:"Webhooks.OnMessageRemove.Method,omitempty"` - WebhooksOnMessageRemoveUrl *string `json:"Webhooks.OnMessageRemove.Url,omitempty"` - WebhooksOnMessageRemovedMethod *string `json:"Webhooks.OnMessageRemoved.Method,omitempty"` - WebhooksOnMessageRemovedUrl *string `json:"Webhooks.OnMessageRemoved.Url,omitempty"` - WebhooksOnMessageSendMethod *string `json:"Webhooks.OnMessageSend.Method,omitempty"` - WebhooksOnMessageSendUrl *string `json:"Webhooks.OnMessageSend.Url,omitempty"` - WebhooksOnMessageSentMethod *string `json:"Webhooks.OnMessageSent.Method,omitempty"` - WebhooksOnMessageSentUrl *string `json:"Webhooks.OnMessageSent.Url,omitempty"` - WebhooksOnMessageUpdateMethod *string `json:"Webhooks.OnMessageUpdate.Method,omitempty"` - WebhooksOnMessageUpdateUrl *string `json:"Webhooks.OnMessageUpdate.Url,omitempty"` - WebhooksOnMessageUpdatedMethod *string `json:"Webhooks.OnMessageUpdated.Method,omitempty"` - WebhooksOnMessageUpdatedUrl *string `json:"Webhooks.OnMessageUpdated.Url,omitempty"` + ConsumptionReportInterval *int32 `json:"ConsumptionReportInterval,omitempty"` + DefaultChannelCreatorRoleSid *string `json:"DefaultChannelCreatorRoleSid,omitempty"` + DefaultChannelRoleSid *string `json:"DefaultChannelRoleSid,omitempty"` + DefaultServiceRoleSid *string `json:"DefaultServiceRoleSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + LimitsChannelMembers *int32 `json:"Limits.ChannelMembers,omitempty"` + LimitsUserChannels *int32 `json:"Limits.UserChannels,omitempty"` + NotificationsAddedToChannelEnabled *bool `json:"Notifications.AddedToChannel.Enabled,omitempty"` + NotificationsAddedToChannelTemplate *string `json:"Notifications.AddedToChannel.Template,omitempty"` + NotificationsInvitedToChannelEnabled *bool `json:"Notifications.InvitedToChannel.Enabled,omitempty"` + NotificationsInvitedToChannelTemplate *string `json:"Notifications.InvitedToChannel.Template,omitempty"` + NotificationsNewMessageEnabled *bool `json:"Notifications.NewMessage.Enabled,omitempty"` + NotificationsNewMessageTemplate *string `json:"Notifications.NewMessage.Template,omitempty"` + NotificationsRemovedFromChannelEnabled *bool `json:"Notifications.RemovedFromChannel.Enabled,omitempty"` + NotificationsRemovedFromChannelTemplate *string `json:"Notifications.RemovedFromChannel.Template,omitempty"` + PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"` + PreWebhookUrl *string `json:"PreWebhookUrl,omitempty"` + ReachabilityEnabled *bool `json:"ReachabilityEnabled,omitempty"` + ReadStatusEnabled *bool `json:"ReadStatusEnabled,omitempty"` + TypingIndicatorTimeout *int32 `json:"TypingIndicatorTimeout,omitempty"` + WebhookFilters *[]string `json:"WebhookFilters,omitempty"` + WebhookMethod *string `json:"WebhookMethod,omitempty"` + WebhooksOnChannelAddMethod *string `json:"Webhooks.OnChannelAdd.Method,omitempty"` + WebhooksOnChannelAddUrl *string `json:"Webhooks.OnChannelAdd.Url,omitempty"` + WebhooksOnChannelAddedMethod *string `json:"Webhooks.OnChannelAdded.Method,omitempty"` + WebhooksOnChannelAddedUrl *string `json:"Webhooks.OnChannelAdded.Url,omitempty"` + WebhooksOnChannelDestroyMethod *string `json:"Webhooks.OnChannelDestroy.Method,omitempty"` + WebhooksOnChannelDestroyUrl *string `json:"Webhooks.OnChannelDestroy.Url,omitempty"` + WebhooksOnChannelDestroyedMethod *string `json:"Webhooks.OnChannelDestroyed.Method,omitempty"` + WebhooksOnChannelDestroyedUrl *string `json:"Webhooks.OnChannelDestroyed.Url,omitempty"` + WebhooksOnChannelUpdateMethod *string `json:"Webhooks.OnChannelUpdate.Method,omitempty"` + WebhooksOnChannelUpdateUrl *string `json:"Webhooks.OnChannelUpdate.Url,omitempty"` + WebhooksOnChannelUpdatedMethod *string `json:"Webhooks.OnChannelUpdated.Method,omitempty"` + WebhooksOnChannelUpdatedUrl *string `json:"Webhooks.OnChannelUpdated.Url,omitempty"` + WebhooksOnMemberAddMethod *string `json:"Webhooks.OnMemberAdd.Method,omitempty"` + WebhooksOnMemberAddUrl *string `json:"Webhooks.OnMemberAdd.Url,omitempty"` + WebhooksOnMemberAddedMethod *string `json:"Webhooks.OnMemberAdded.Method,omitempty"` + WebhooksOnMemberAddedUrl *string `json:"Webhooks.OnMemberAdded.Url,omitempty"` + WebhooksOnMemberRemoveMethod *string `json:"Webhooks.OnMemberRemove.Method,omitempty"` + WebhooksOnMemberRemoveUrl *string `json:"Webhooks.OnMemberRemove.Url,omitempty"` + WebhooksOnMemberRemovedMethod *string `json:"Webhooks.OnMemberRemoved.Method,omitempty"` + WebhooksOnMemberRemovedUrl *string `json:"Webhooks.OnMemberRemoved.Url,omitempty"` + WebhooksOnMessageRemoveMethod *string `json:"Webhooks.OnMessageRemove.Method,omitempty"` + WebhooksOnMessageRemoveUrl *string `json:"Webhooks.OnMessageRemove.Url,omitempty"` + WebhooksOnMessageRemovedMethod *string `json:"Webhooks.OnMessageRemoved.Method,omitempty"` + WebhooksOnMessageRemovedUrl *string `json:"Webhooks.OnMessageRemoved.Url,omitempty"` + WebhooksOnMessageSendMethod *string `json:"Webhooks.OnMessageSend.Method,omitempty"` + WebhooksOnMessageSendUrl *string `json:"Webhooks.OnMessageSend.Url,omitempty"` + WebhooksOnMessageSentMethod *string `json:"Webhooks.OnMessageSent.Method,omitempty"` + WebhooksOnMessageSentUrl *string `json:"Webhooks.OnMessageSent.Url,omitempty"` + WebhooksOnMessageUpdateMethod *string `json:"Webhooks.OnMessageUpdate.Method,omitempty"` + WebhooksOnMessageUpdateUrl *string `json:"Webhooks.OnMessageUpdate.Url,omitempty"` + WebhooksOnMessageUpdatedMethod *string `json:"Webhooks.OnMessageUpdated.Method,omitempty"` + WebhooksOnMessageUpdatedUrl *string `json:"Webhooks.OnMessageUpdated.Url,omitempty"` } /* @@ -1835,9 +1835,9 @@ func (c *DefaultApiService) UpdateService(Sid string, params *UpdateServiceParam } // UpdateUserParams Optional parameters for the method 'UpdateUser' type UpdateUserParams struct { - Attributes *string `json:"Attributes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* diff --git a/rest/chat/v1/docs/DefaultApi.md b/rest/chat/v1/docs/DefaultApi.md index 84dcda24b..6e3325a60 100644 --- a/rest/chat/v1/docs/DefaultApi.md +++ b/rest/chat/v1/docs/DefaultApi.md @@ -943,7 +943,7 @@ Name | Type | Description | Notes ## ListChannel -> ChatV1ServiceChannelReadResponse ListChannel(ctx, ServiceSid, optional) +> ListChannelResponse ListChannel(ctx, ServiceSid, optional) @@ -969,7 +969,7 @@ Name | Type | Description | Notes ### Return type -[**ChatV1ServiceChannelReadResponse**](chat_v1_service_channelReadResponse.md) +[**ListChannelResponse**](ListChannelResponse.md) ### Authorization @@ -987,7 +987,7 @@ Name | Type | Description | Notes ## ListCredential -> ChatV1CredentialReadResponse ListCredential(ctx, optional) +> ListCredentialResponse ListCredential(ctx, optional) @@ -1010,7 +1010,7 @@ Name | Type | Description | Notes ### Return type -[**ChatV1CredentialReadResponse**](chat_v1_credentialReadResponse.md) +[**ListCredentialResponse**](ListCredentialResponse.md) ### Authorization @@ -1028,7 +1028,7 @@ Name | Type | Description | Notes ## ListInvite -> ChatV1ServiceChannelInviteReadResponse ListInvite(ctx, ServiceSid, ChannelSid, optional) +> ListInviteResponse ListInvite(ctx, ServiceSid, ChannelSid, optional) @@ -1056,7 +1056,7 @@ Name | Type | Description | Notes ### Return type -[**ChatV1ServiceChannelInviteReadResponse**](chat_v1_service_channel_inviteReadResponse.md) +[**ListInviteResponse**](ListInviteResponse.md) ### Authorization @@ -1074,7 +1074,7 @@ Name | Type | Description | Notes ## ListMember -> ChatV1ServiceChannelMemberReadResponse ListMember(ctx, ServiceSid, ChannelSid, optional) +> ListMemberResponse ListMember(ctx, ServiceSid, ChannelSid, optional) @@ -1102,7 +1102,7 @@ Name | Type | Description | Notes ### Return type -[**ChatV1ServiceChannelMemberReadResponse**](chat_v1_service_channel_memberReadResponse.md) +[**ListMemberResponse**](ListMemberResponse.md) ### Authorization @@ -1120,7 +1120,7 @@ Name | Type | Description | Notes ## ListMessage -> ChatV1ServiceChannelMessageReadResponse ListMessage(ctx, ServiceSid, ChannelSid, optional) +> ListMessageResponse ListMessage(ctx, ServiceSid, ChannelSid, optional) @@ -1148,7 +1148,7 @@ Name | Type | Description | Notes ### Return type -[**ChatV1ServiceChannelMessageReadResponse**](chat_v1_service_channel_messageReadResponse.md) +[**ListMessageResponse**](ListMessageResponse.md) ### Authorization @@ -1166,7 +1166,7 @@ Name | Type | Description | Notes ## ListRole -> ChatV1ServiceRoleReadResponse ListRole(ctx, ServiceSid, optional) +> ListRoleResponse ListRole(ctx, ServiceSid, optional) @@ -1191,7 +1191,7 @@ Name | Type | Description | Notes ### Return type -[**ChatV1ServiceRoleReadResponse**](chat_v1_service_roleReadResponse.md) +[**ListRoleResponse**](ListRoleResponse.md) ### Authorization @@ -1209,7 +1209,7 @@ Name | Type | Description | Notes ## ListService -> ChatV1ServiceReadResponse ListService(ctx, optional) +> ListServiceResponse ListService(ctx, optional) @@ -1232,7 +1232,7 @@ Name | Type | Description | Notes ### Return type -[**ChatV1ServiceReadResponse**](chat_v1_serviceReadResponse.md) +[**ListServiceResponse**](ListServiceResponse.md) ### Authorization @@ -1250,7 +1250,7 @@ Name | Type | Description | Notes ## ListUser -> ChatV1ServiceUserReadResponse ListUser(ctx, ServiceSid, optional) +> ListUserResponse ListUser(ctx, ServiceSid, optional) @@ -1275,7 +1275,7 @@ Name | Type | Description | Notes ### Return type -[**ChatV1ServiceUserReadResponse**](chat_v1_service_userReadResponse.md) +[**ListUserResponse**](ListUserResponse.md) ### Authorization @@ -1293,7 +1293,7 @@ Name | Type | Description | Notes ## ListUserChannel -> ChatV1ServiceUserUserChannelReadResponse ListUserChannel(ctx, ServiceSid, UserSid, optional) +> ListUserChannelResponse ListUserChannel(ctx, ServiceSid, UserSid, optional) @@ -1322,7 +1322,7 @@ Name | Type | Description | Notes ### Return type -[**ChatV1ServiceUserUserChannelReadResponse**](chat_v1_service_user_user_channelReadResponse.md) +[**ListUserChannelResponse**](ListUserChannelResponse.md) ### Authorization diff --git a/rest/chat/v1/docs/ChatV1ServiceChannelReadResponse.md b/rest/chat/v1/docs/ListChannelResponse.md similarity index 71% rename from rest/chat/v1/docs/ChatV1ServiceChannelReadResponse.md rename to rest/chat/v1/docs/ListChannelResponse.md index f3c7a578c..d90e6cc71 100644 --- a/rest/chat/v1/docs/ChatV1ServiceChannelReadResponse.md +++ b/rest/chat/v1/docs/ListChannelResponse.md @@ -1,11 +1,11 @@ -# ChatV1ServiceChannelReadResponse +# ListChannelResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Channels** | [**[]ChatV1ServiceChannel**](chat.v1.service.channel.md) | | [optional] -**Meta** | [**ChatV1CredentialReadResponseMeta**](chat_v1_credentialReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialResponseMeta**](ListCredentialResponse_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/rest/chat/v1/docs/ChatV1CredentialReadResponse.md b/rest/chat/v1/docs/ListCredentialResponse.md similarity index 72% rename from rest/chat/v1/docs/ChatV1CredentialReadResponse.md rename to rest/chat/v1/docs/ListCredentialResponse.md index 095ed2a68..d965fd433 100644 --- a/rest/chat/v1/docs/ChatV1CredentialReadResponse.md +++ b/rest/chat/v1/docs/ListCredentialResponse.md @@ -1,11 +1,11 @@ -# ChatV1CredentialReadResponse +# ListCredentialResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Credentials** | [**[]ChatV1Credential**](chat.v1.credential.md) | | [optional] -**Meta** | [**ChatV1CredentialReadResponseMeta**](chat_v1_credentialReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialResponseMeta**](ListCredentialResponse_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/rest/studio/v2/docs/StudioV2FlowReadResponseMeta.md b/rest/chat/v1/docs/ListCredentialResponseMeta.md similarity index 94% rename from rest/studio/v2/docs/StudioV2FlowReadResponseMeta.md rename to rest/chat/v1/docs/ListCredentialResponseMeta.md index cca1e198d..20d8e9381 100644 --- a/rest/studio/v2/docs/StudioV2FlowReadResponseMeta.md +++ b/rest/chat/v1/docs/ListCredentialResponseMeta.md @@ -1,4 +1,4 @@ -# StudioV2FlowReadResponseMeta +# ListCredentialResponseMeta ## Properties diff --git a/rest/chat/v1/docs/ChatV1ServiceChannelInviteReadResponse.md b/rest/chat/v1/docs/ListInviteResponse.md similarity index 71% rename from rest/chat/v1/docs/ChatV1ServiceChannelInviteReadResponse.md rename to rest/chat/v1/docs/ListInviteResponse.md index 3cfd94a9d..9ad0b1cf3 100644 --- a/rest/chat/v1/docs/ChatV1ServiceChannelInviteReadResponse.md +++ b/rest/chat/v1/docs/ListInviteResponse.md @@ -1,11 +1,11 @@ -# ChatV1ServiceChannelInviteReadResponse +# ListInviteResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Invites** | [**[]ChatV1ServiceChannelInvite**](chat.v1.service.channel.invite.md) | | [optional] -**Meta** | [**ChatV1CredentialReadResponseMeta**](chat_v1_credentialReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialResponseMeta**](ListCredentialResponse_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/rest/chat/v1/docs/ChatV1ServiceChannelMemberReadResponse.md b/rest/chat/v1/docs/ListMemberResponse.md similarity index 71% rename from rest/chat/v1/docs/ChatV1ServiceChannelMemberReadResponse.md rename to rest/chat/v1/docs/ListMemberResponse.md index 1bd18e1e2..ee3477263 100644 --- a/rest/chat/v1/docs/ChatV1ServiceChannelMemberReadResponse.md +++ b/rest/chat/v1/docs/ListMemberResponse.md @@ -1,11 +1,11 @@ -# ChatV1ServiceChannelMemberReadResponse +# ListMemberResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Members** | [**[]ChatV1ServiceChannelMember**](chat.v1.service.channel.member.md) | | [optional] -**Meta** | [**ChatV1CredentialReadResponseMeta**](chat_v1_credentialReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialResponseMeta**](ListCredentialResponse_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/rest/chat/v1/docs/ChatV1ServiceChannelMessageReadResponse.md b/rest/chat/v1/docs/ListMessageResponse.md similarity index 71% rename from rest/chat/v1/docs/ChatV1ServiceChannelMessageReadResponse.md rename to rest/chat/v1/docs/ListMessageResponse.md index 579f051d8..d15a64965 100644 --- a/rest/chat/v1/docs/ChatV1ServiceChannelMessageReadResponse.md +++ b/rest/chat/v1/docs/ListMessageResponse.md @@ -1,11 +1,11 @@ -# ChatV1ServiceChannelMessageReadResponse +# ListMessageResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Messages** | [**[]ChatV1ServiceChannelMessage**](chat.v1.service.channel.message.md) | | [optional] -**Meta** | [**ChatV1CredentialReadResponseMeta**](chat_v1_credentialReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialResponseMeta**](ListCredentialResponse_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/rest/chat/v1/docs/ChatV1ServiceRoleReadResponse.md b/rest/chat/v1/docs/ListRoleResponse.md similarity index 71% rename from rest/chat/v1/docs/ChatV1ServiceRoleReadResponse.md rename to rest/chat/v1/docs/ListRoleResponse.md index 7a4f6b786..f7c5035ed 100644 --- a/rest/chat/v1/docs/ChatV1ServiceRoleReadResponse.md +++ b/rest/chat/v1/docs/ListRoleResponse.md @@ -1,10 +1,10 @@ -# ChatV1ServiceRoleReadResponse +# ListRoleResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**ChatV1CredentialReadResponseMeta**](chat_v1_credentialReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialResponseMeta**](ListCredentialResponse_meta.md) | | [optional] **Roles** | [**[]ChatV1ServiceRole**](chat.v1.service.role.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/rest/chat/v1/docs/ChatV1ServiceReadResponse.md b/rest/chat/v1/docs/ListServiceResponse.md similarity index 72% rename from rest/chat/v1/docs/ChatV1ServiceReadResponse.md rename to rest/chat/v1/docs/ListServiceResponse.md index a75af5c3b..68a8fdb58 100644 --- a/rest/chat/v1/docs/ChatV1ServiceReadResponse.md +++ b/rest/chat/v1/docs/ListServiceResponse.md @@ -1,10 +1,10 @@ -# ChatV1ServiceReadResponse +# ListServiceResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**ChatV1CredentialReadResponseMeta**](chat_v1_credentialReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialResponseMeta**](ListCredentialResponse_meta.md) | | [optional] **Services** | [**[]ChatV1Service**](chat.v1.service.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/rest/chat/v1/docs/ChatV1ServiceUserUserChannelReadResponse.md b/rest/chat/v1/docs/ListUserChannelResponse.md similarity index 71% rename from rest/chat/v1/docs/ChatV1ServiceUserUserChannelReadResponse.md rename to rest/chat/v1/docs/ListUserChannelResponse.md index 3d999da51..7952b836a 100644 --- a/rest/chat/v1/docs/ChatV1ServiceUserUserChannelReadResponse.md +++ b/rest/chat/v1/docs/ListUserChannelResponse.md @@ -1,11 +1,11 @@ -# ChatV1ServiceUserUserChannelReadResponse +# ListUserChannelResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Channels** | [**[]ChatV1ServiceUserUserChannel**](chat.v1.service.user.user_channel.md) | | [optional] -**Meta** | [**ChatV1CredentialReadResponseMeta**](chat_v1_credentialReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialResponseMeta**](ListCredentialResponse_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/rest/chat/v1/docs/ChatV1ServiceUserReadResponse.md b/rest/chat/v1/docs/ListUserResponse.md similarity index 71% rename from rest/chat/v1/docs/ChatV1ServiceUserReadResponse.md rename to rest/chat/v1/docs/ListUserResponse.md index e5e27a97e..fc2caa81a 100644 --- a/rest/chat/v1/docs/ChatV1ServiceUserReadResponse.md +++ b/rest/chat/v1/docs/ListUserResponse.md @@ -1,10 +1,10 @@ -# ChatV1ServiceUserReadResponse +# ListUserResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**ChatV1CredentialReadResponseMeta**](chat_v1_credentialReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialResponseMeta**](ListCredentialResponse_meta.md) | | [optional] **Users** | [**[]ChatV1ServiceUser**](chat.v1.service.user.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/rest/chat/v1/model_chat_v1_credential.go b/rest/chat/v1/model_chat_v1_credential.go index a8a9f34bc..36fe07088 100644 --- a/rest/chat/v1/model_chat_v1_credential.go +++ b/rest/chat/v1/model_chat_v1_credential.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v1/model_chat_v1_service.go b/rest/chat/v1/model_chat_v1_service.go index 2c83d169e..3411728d9 100644 --- a/rest/chat/v1/model_chat_v1_service.go +++ b/rest/chat/v1/model_chat_v1_service.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v1/model_chat_v1_service_channel.go b/rest/chat/v1/model_chat_v1_service_channel.go index 0b20d6e96..65b0db3a3 100644 --- a/rest/chat/v1/model_chat_v1_service_channel.go +++ b/rest/chat/v1/model_chat_v1_service_channel.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v1/model_chat_v1_service_channel_invite.go b/rest/chat/v1/model_chat_v1_service_channel_invite.go index 6c79595de..3fbfbaa81 100644 --- a/rest/chat/v1/model_chat_v1_service_channel_invite.go +++ b/rest/chat/v1/model_chat_v1_service_channel_invite.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v1/model_chat_v1_service_channel_member.go b/rest/chat/v1/model_chat_v1_service_channel_member.go index 2b1ca2e2d..9fc35a28c 100644 --- a/rest/chat/v1/model_chat_v1_service_channel_member.go +++ b/rest/chat/v1/model_chat_v1_service_channel_member.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v1/model_chat_v1_service_channel_message.go b/rest/chat/v1/model_chat_v1_service_channel_message.go index f4e0b6d08..ab09485d1 100644 --- a/rest/chat/v1/model_chat_v1_service_channel_message.go +++ b/rest/chat/v1/model_chat_v1_service_channel_message.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v1/model_chat_v1_service_role.go b/rest/chat/v1/model_chat_v1_service_role.go index 8c2d568a7..60138a3f3 100644 --- a/rest/chat/v1/model_chat_v1_service_role.go +++ b/rest/chat/v1/model_chat_v1_service_role.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v1/model_chat_v1_service_user.go b/rest/chat/v1/model_chat_v1_service_user.go index d232f92aa..80a547c23 100644 --- a/rest/chat/v1/model_chat_v1_service_user.go +++ b/rest/chat/v1/model_chat_v1_service_user.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v1/model_chat_v1_service_user_user_channel.go b/rest/chat/v1/model_chat_v1_service_user_user_channel.go index 80792a8d9..bc0344266 100644 --- a/rest/chat/v1/model_chat_v1_service_user_user_channel.go +++ b/rest/chat/v1/model_chat_v1_service_user_user_channel.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v1/model_create_channel_request.go b/rest/chat/v1/model_create_channel_request.go index 58e5c8a58..759d17561 100644 --- a/rest/chat/v1/model_create_channel_request.go +++ b/rest/chat/v1/model_create_channel_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v1/model_create_credential_request.go b/rest/chat/v1/model_create_credential_request.go index 66b8e3417..72793a790 100644 --- a/rest/chat/v1/model_create_credential_request.go +++ b/rest/chat/v1/model_create_credential_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v1/model_create_invite_request.go b/rest/chat/v1/model_create_invite_request.go index b66204a99..4595ae754 100644 --- a/rest/chat/v1/model_create_invite_request.go +++ b/rest/chat/v1/model_create_invite_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v1/model_create_member_request.go b/rest/chat/v1/model_create_member_request.go index 66ef862e4..895979779 100644 --- a/rest/chat/v1/model_create_member_request.go +++ b/rest/chat/v1/model_create_member_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v1/model_create_message_request.go b/rest/chat/v1/model_create_message_request.go index ca343d469..f397d7d3a 100644 --- a/rest/chat/v1/model_create_message_request.go +++ b/rest/chat/v1/model_create_message_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v1/model_create_role_request.go b/rest/chat/v1/model_create_role_request.go index 11be3c58d..f411c19b6 100644 --- a/rest/chat/v1/model_create_role_request.go +++ b/rest/chat/v1/model_create_role_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v1/model_create_service_request.go b/rest/chat/v1/model_create_service_request.go index f24518846..6fb4bf2f0 100644 --- a/rest/chat/v1/model_create_service_request.go +++ b/rest/chat/v1/model_create_service_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v1/model_create_user_request.go b/rest/chat/v1/model_create_user_request.go index 61bacc26e..091afcf4f 100644 --- a/rest/chat/v1/model_create_user_request.go +++ b/rest/chat/v1/model_create_user_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v1/model_chat_v1_service_channel_read_response.go b/rest/chat/v1/model_list_channel_response.go similarity index 53% rename from rest/chat/v1/model_chat_v1_service_channel_read_response.go rename to rest/chat/v1/model_list_channel_response.go index 45adeb90c..89792e208 100644 --- a/rest/chat/v1/model_chat_v1_service_channel_read_response.go +++ b/rest/chat/v1/model_list_channel_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ChatV1ServiceChannelReadResponse struct for ChatV1ServiceChannelReadResponse -type ChatV1ServiceChannelReadResponse struct { +// ListChannelResponse struct for ListChannelResponse +type ListChannelResponse struct { Channels []ChatV1ServiceChannel `json:"Channels,omitempty"` - Meta ChatV1CredentialReadResponseMeta `json:"Meta,omitempty"` + Meta ListCredentialResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/chat/v1/model_chat_v1_credential_read_response.go b/rest/chat/v1/model_list_credential_response.go similarity index 55% rename from rest/chat/v1/model_chat_v1_credential_read_response.go rename to rest/chat/v1/model_list_credential_response.go index 8fbfda4b5..26215a663 100644 --- a/rest/chat/v1/model_chat_v1_credential_read_response.go +++ b/rest/chat/v1/model_list_credential_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ChatV1CredentialReadResponse struct for ChatV1CredentialReadResponse -type ChatV1CredentialReadResponse struct { +// ListCredentialResponse struct for ListCredentialResponse +type ListCredentialResponse struct { Credentials []ChatV1Credential `json:"Credentials,omitempty"` - Meta ChatV1CredentialReadResponseMeta `json:"Meta,omitempty"` + Meta ListCredentialResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/chat/v2/model_chat_v2_credential_read_response_meta.go b/rest/chat/v1/model_list_credential_response_meta.go similarity index 76% rename from rest/chat/v2/model_chat_v2_credential_read_response_meta.go rename to rest/chat/v1/model_list_credential_response_meta.go index fb82f202b..eb79df196 100644 --- a/rest/chat/v2/model_chat_v2_credential_read_response_meta.go +++ b/rest/chat/v1/model_list_credential_response_meta.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ChatV2CredentialReadResponseMeta struct for ChatV2CredentialReadResponseMeta -type ChatV2CredentialReadResponseMeta struct { +// ListCredentialResponseMeta struct for ListCredentialResponseMeta +type ListCredentialResponseMeta struct { FirstPageUrl string `json:"FirstPageUrl,omitempty"` Key string `json:"Key,omitempty"` NextPageUrl string `json:"NextPageUrl,omitempty"` diff --git a/rest/chat/v1/model_chat_v1_service_channel_invite_read_response.go b/rest/chat/v1/model_list_invite_response.go similarity index 52% rename from rest/chat/v1/model_chat_v1_service_channel_invite_read_response.go rename to rest/chat/v1/model_list_invite_response.go index ec68b2872..1bbce897c 100644 --- a/rest/chat/v1/model_chat_v1_service_channel_invite_read_response.go +++ b/rest/chat/v1/model_list_invite_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ChatV1ServiceChannelInviteReadResponse struct for ChatV1ServiceChannelInviteReadResponse -type ChatV1ServiceChannelInviteReadResponse struct { +// ListInviteResponse struct for ListInviteResponse +type ListInviteResponse struct { Invites []ChatV1ServiceChannelInvite `json:"Invites,omitempty"` - Meta ChatV1CredentialReadResponseMeta `json:"Meta,omitempty"` + Meta ListCredentialResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/chat/v1/model_chat_v1_service_channel_member_read_response.go b/rest/chat/v1/model_list_member_response.go similarity index 52% rename from rest/chat/v1/model_chat_v1_service_channel_member_read_response.go rename to rest/chat/v1/model_list_member_response.go index 8e06d004f..8a5467c13 100644 --- a/rest/chat/v1/model_chat_v1_service_channel_member_read_response.go +++ b/rest/chat/v1/model_list_member_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ChatV1ServiceChannelMemberReadResponse struct for ChatV1ServiceChannelMemberReadResponse -type ChatV1ServiceChannelMemberReadResponse struct { +// ListMemberResponse struct for ListMemberResponse +type ListMemberResponse struct { Members []ChatV1ServiceChannelMember `json:"Members,omitempty"` - Meta ChatV1CredentialReadResponseMeta `json:"Meta,omitempty"` + Meta ListCredentialResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/chat/v1/model_chat_v1_service_channel_message_read_response.go b/rest/chat/v1/model_list_message_response.go similarity index 52% rename from rest/chat/v1/model_chat_v1_service_channel_message_read_response.go rename to rest/chat/v1/model_list_message_response.go index d61b0a231..9fe2e232b 100644 --- a/rest/chat/v1/model_chat_v1_service_channel_message_read_response.go +++ b/rest/chat/v1/model_list_message_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ChatV1ServiceChannelMessageReadResponse struct for ChatV1ServiceChannelMessageReadResponse -type ChatV1ServiceChannelMessageReadResponse struct { +// ListMessageResponse struct for ListMessageResponse +type ListMessageResponse struct { Messages []ChatV1ServiceChannelMessage `json:"Messages,omitempty"` - Meta ChatV1CredentialReadResponseMeta `json:"Meta,omitempty"` + Meta ListCredentialResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/chat/v1/model_chat_v1_service_role_read_response.go b/rest/chat/v1/model_list_role_response.go similarity index 53% rename from rest/chat/v1/model_chat_v1_service_role_read_response.go rename to rest/chat/v1/model_list_role_response.go index 730798b8a..1358aea6e 100644 --- a/rest/chat/v1/model_chat_v1_service_role_read_response.go +++ b/rest/chat/v1/model_list_role_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ChatV1ServiceRoleReadResponse struct for ChatV1ServiceRoleReadResponse -type ChatV1ServiceRoleReadResponse struct { - Meta ChatV1CredentialReadResponseMeta `json:"Meta,omitempty"` +// ListRoleResponse struct for ListRoleResponse +type ListRoleResponse struct { + Meta ListCredentialResponseMeta `json:"Meta,omitempty"` Roles []ChatV1ServiceRole `json:"Roles,omitempty"` } diff --git a/rest/chat/v1/model_chat_v1_service_read_response.go b/rest/chat/v1/model_list_service_response.go similarity index 55% rename from rest/chat/v1/model_chat_v1_service_read_response.go rename to rest/chat/v1/model_list_service_response.go index b27e3f079..d0a11f8a0 100644 --- a/rest/chat/v1/model_chat_v1_service_read_response.go +++ b/rest/chat/v1/model_list_service_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ChatV1ServiceReadResponse struct for ChatV1ServiceReadResponse -type ChatV1ServiceReadResponse struct { - Meta ChatV1CredentialReadResponseMeta `json:"Meta,omitempty"` +// ListServiceResponse struct for ListServiceResponse +type ListServiceResponse struct { + Meta ListCredentialResponseMeta `json:"Meta,omitempty"` Services []ChatV1Service `json:"Services,omitempty"` } diff --git a/rest/chat/v1/model_chat_v1_service_user_user_channel_read_response.go b/rest/chat/v1/model_list_user_channel_response.go similarity index 51% rename from rest/chat/v1/model_chat_v1_service_user_user_channel_read_response.go rename to rest/chat/v1/model_list_user_channel_response.go index f68661026..241f18e91 100644 --- a/rest/chat/v1/model_chat_v1_service_user_user_channel_read_response.go +++ b/rest/chat/v1/model_list_user_channel_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ChatV1ServiceUserUserChannelReadResponse struct for ChatV1ServiceUserUserChannelReadResponse -type ChatV1ServiceUserUserChannelReadResponse struct { +// ListUserChannelResponse struct for ListUserChannelResponse +type ListUserChannelResponse struct { Channels []ChatV1ServiceUserUserChannel `json:"Channels,omitempty"` - Meta ChatV1CredentialReadResponseMeta `json:"Meta,omitempty"` + Meta ListCredentialResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/chat/v1/model_chat_v1_service_user_read_response.go b/rest/chat/v1/model_list_user_response.go similarity index 53% rename from rest/chat/v1/model_chat_v1_service_user_read_response.go rename to rest/chat/v1/model_list_user_response.go index 0d71a8ae4..6c63c84a9 100644 --- a/rest/chat/v1/model_chat_v1_service_user_read_response.go +++ b/rest/chat/v1/model_list_user_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ChatV1ServiceUserReadResponse struct for ChatV1ServiceUserReadResponse -type ChatV1ServiceUserReadResponse struct { - Meta ChatV1CredentialReadResponseMeta `json:"Meta,omitempty"` +// ListUserResponse struct for ListUserResponse +type ListUserResponse struct { + Meta ListCredentialResponseMeta `json:"Meta,omitempty"` Users []ChatV1ServiceUser `json:"Users,omitempty"` } diff --git a/rest/chat/v1/model_update_channel_request.go b/rest/chat/v1/model_update_channel_request.go index 64324afe5..f2bb53617 100644 --- a/rest/chat/v1/model_update_channel_request.go +++ b/rest/chat/v1/model_update_channel_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v1/model_update_credential_request.go b/rest/chat/v1/model_update_credential_request.go index 89f104e8d..543f00665 100644 --- a/rest/chat/v1/model_update_credential_request.go +++ b/rest/chat/v1/model_update_credential_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v1/model_update_member_request.go b/rest/chat/v1/model_update_member_request.go index 58ba4e53a..3ba8b3af9 100644 --- a/rest/chat/v1/model_update_member_request.go +++ b/rest/chat/v1/model_update_member_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v1/model_update_message_request.go b/rest/chat/v1/model_update_message_request.go index 22618bbf6..89ceca7e9 100644 --- a/rest/chat/v1/model_update_message_request.go +++ b/rest/chat/v1/model_update_message_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v1/model_update_role_request.go b/rest/chat/v1/model_update_role_request.go index f13f19377..cfa401c1f 100644 --- a/rest/chat/v1/model_update_role_request.go +++ b/rest/chat/v1/model_update_role_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v1/model_update_service_request.go b/rest/chat/v1/model_update_service_request.go index 0bd6ddfa5..da9a4fcd8 100644 --- a/rest/chat/v1/model_update_service_request.go +++ b/rest/chat/v1/model_update_service_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v1/model_update_user_request.go b/rest/chat/v1/model_update_user_request.go index 6a7367e7f..2ccdf7c69 100644 --- a/rest/chat/v1/model_update_user_request.go +++ b/rest/chat/v1/model_update_user_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v1/response.go b/rest/chat/v1/response.go index 180073775..d2790903e 100644 --- a/rest/chat/v1/response.go +++ b/rest/chat/v1/response.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v2/README.md b/rest/chat/v2/README.md index 7c155920a..b2c3c49a1 100644 --- a/rest/chat/v2/README.md +++ b/rest/chat/v2/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 5.15.0 +- API version: 1.0.0 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) @@ -90,30 +90,17 @@ Class | Method | HTTP request | Description ## Documentation For Models - [ChatV2Credential](docs/ChatV2Credential.md) - - [ChatV2CredentialReadResponse](docs/ChatV2CredentialReadResponse.md) - - [ChatV2CredentialReadResponseMeta](docs/ChatV2CredentialReadResponseMeta.md) - [ChatV2Service](docs/ChatV2Service.md) - [ChatV2ServiceBinding](docs/ChatV2ServiceBinding.md) - - [ChatV2ServiceBindingReadResponse](docs/ChatV2ServiceBindingReadResponse.md) - [ChatV2ServiceChannel](docs/ChatV2ServiceChannel.md) - [ChatV2ServiceChannelChannelWebhook](docs/ChatV2ServiceChannelChannelWebhook.md) - - [ChatV2ServiceChannelChannelWebhookReadResponse](docs/ChatV2ServiceChannelChannelWebhookReadResponse.md) - [ChatV2ServiceChannelInvite](docs/ChatV2ServiceChannelInvite.md) - - [ChatV2ServiceChannelInviteReadResponse](docs/ChatV2ServiceChannelInviteReadResponse.md) - [ChatV2ServiceChannelMember](docs/ChatV2ServiceChannelMember.md) - - [ChatV2ServiceChannelMemberReadResponse](docs/ChatV2ServiceChannelMemberReadResponse.md) - [ChatV2ServiceChannelMessage](docs/ChatV2ServiceChannelMessage.md) - - [ChatV2ServiceChannelMessageReadResponse](docs/ChatV2ServiceChannelMessageReadResponse.md) - - [ChatV2ServiceChannelReadResponse](docs/ChatV2ServiceChannelReadResponse.md) - - [ChatV2ServiceReadResponse](docs/ChatV2ServiceReadResponse.md) - [ChatV2ServiceRole](docs/ChatV2ServiceRole.md) - - [ChatV2ServiceRoleReadResponse](docs/ChatV2ServiceRoleReadResponse.md) - [ChatV2ServiceUser](docs/ChatV2ServiceUser.md) - - [ChatV2ServiceUserReadResponse](docs/ChatV2ServiceUserReadResponse.md) - [ChatV2ServiceUserUserBinding](docs/ChatV2ServiceUserUserBinding.md) - - [ChatV2ServiceUserUserBindingReadResponse](docs/ChatV2ServiceUserUserBindingReadResponse.md) - [ChatV2ServiceUserUserChannel](docs/ChatV2ServiceUserUserChannel.md) - - [ChatV2ServiceUserUserChannelReadResponse](docs/ChatV2ServiceUserUserChannelReadResponse.md) - [CreateChannelRequest](docs/CreateChannelRequest.md) - [CreateChannelWebhookRequest](docs/CreateChannelWebhookRequest.md) - [CreateCredentialRequest](docs/CreateCredentialRequest.md) @@ -123,6 +110,19 @@ Class | Method | HTTP request | Description - [CreateRoleRequest](docs/CreateRoleRequest.md) - [CreateServiceRequest](docs/CreateServiceRequest.md) - [CreateUserRequest](docs/CreateUserRequest.md) + - [ListBindingResponse](docs/ListBindingResponse.md) + - [ListChannelResponse](docs/ListChannelResponse.md) + - [ListChannelWebhookResponse](docs/ListChannelWebhookResponse.md) + - [ListCredentialResponse](docs/ListCredentialResponse.md) + - [ListCredentialResponseMeta](docs/ListCredentialResponseMeta.md) + - [ListInviteResponse](docs/ListInviteResponse.md) + - [ListMemberResponse](docs/ListMemberResponse.md) + - [ListMessageResponse](docs/ListMessageResponse.md) + - [ListRoleResponse](docs/ListRoleResponse.md) + - [ListServiceResponse](docs/ListServiceResponse.md) + - [ListUserBindingResponse](docs/ListUserBindingResponse.md) + - [ListUserChannelResponse](docs/ListUserChannelResponse.md) + - [ListUserResponse](docs/ListUserResponse.md) - [UpdateChannelRequest](docs/UpdateChannelRequest.md) - [UpdateChannelWebhookRequest](docs/UpdateChannelWebhookRequest.md) - [UpdateCredentialRequest](docs/UpdateCredentialRequest.md) diff --git a/rest/chat/v2/api_default.go b/rest/chat/v2/api_default.go index 282202983..e0e974ab7 100644 --- a/rest/chat/v2/api_default.go +++ b/rest/chat/v2/api_default.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -27,19 +27,19 @@ type DefaultApiService struct { func NewDefaultApiService(client *twilio.Client) *DefaultApiService { return &DefaultApiService { client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + baseURL: fmt.Sprintf("https://chat.twilio.com"), } } // CreateChannelParams Optional parameters for the method 'CreateChannel' type CreateChannelParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - CreatedBy *string `json:"CreatedBy,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Type *string `json:"Type,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + CreatedBy *string `json:"CreatedBy,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Type *string `json:"Type,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -106,13 +106,13 @@ func (c *DefaultApiService) CreateChannel(ServiceSid string, params *CreateChann } // CreateChannelWebhookParams Optional parameters for the method 'CreateChannelWebhook' type CreateChannelWebhookParams struct { - ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` - ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` - ConfigurationMethod *string `json:"Configuration.Method,omitempty"` - ConfigurationRetryCount *int32 `json:"Configuration.RetryCount,omitempty"` - ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` - ConfigurationUrl *string `json:"Configuration.Url,omitempty"` - Type *string `json:"Type,omitempty"` + ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` + ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` + ConfigurationMethod *string `json:"Configuration.Method,omitempty"` + ConfigurationRetryCount *int32 `json:"Configuration.RetryCount,omitempty"` + ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` + ConfigurationUrl *string `json:"Configuration.Url,omitempty"` + Type *string `json:"Type,omitempty"` } /* @@ -177,13 +177,13 @@ func (c *DefaultApiService) CreateChannelWebhook(ServiceSid string, ChannelSid s } // CreateCredentialParams Optional parameters for the method 'CreateCredential' type CreateCredentialParams struct { - ApiKey *string `json:"ApiKey,omitempty"` - Certificate *string `json:"Certificate,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PrivateKey *string `json:"PrivateKey,omitempty"` - Sandbox *bool `json:"Sandbox,omitempty"` - Secret *string `json:"Secret,omitempty"` - Type *string `json:"Type,omitempty"` + ApiKey *string `json:"ApiKey,omitempty"` + Certificate *string `json:"Certificate,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PrivateKey *string `json:"PrivateKey,omitempty"` + Sandbox *bool `json:"Sandbox,omitempty"` + Secret *string `json:"Secret,omitempty"` + Type *string `json:"Type,omitempty"` } /* @@ -244,8 +244,8 @@ func (c *DefaultApiService) CreateCredential(params *CreateCredentialParams) (*C } // CreateInviteParams Optional parameters for the method 'CreateInvite' type CreateInviteParams struct { - Identity *string `json:"Identity,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + Identity *string `json:"Identity,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -290,14 +290,14 @@ func (c *DefaultApiService) CreateInvite(ServiceSid string, ChannelSid string, p } // CreateMemberParams Optional parameters for the method 'CreateMember' type CreateMemberParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - Identity *string `json:"Identity,omitempty"` - LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` - LastConsumptionTimestamp *time.Time `json:"LastConsumptionTimestamp,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + Identity *string `json:"Identity,omitempty"` + LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` + LastConsumptionTimestamp *time.Time `json:"LastConsumptionTimestamp,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -366,14 +366,14 @@ func (c *DefaultApiService) CreateMember(ServiceSid string, ChannelSid string, p } // CreateMessageParams Optional parameters for the method 'CreateMessage' type CreateMessageParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - Body *string `json:"Body,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - From *string `json:"From,omitempty"` - LastUpdatedBy *string `json:"LastUpdatedBy,omitempty"` - MediaSid *string `json:"MediaSid,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + Body *string `json:"Body,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + From *string `json:"From,omitempty"` + LastUpdatedBy *string `json:"LastUpdatedBy,omitempty"` + MediaSid *string `json:"MediaSid,omitempty"` } /* @@ -442,9 +442,9 @@ func (c *DefaultApiService) CreateMessage(ServiceSid string, ChannelSid string, } // CreateRoleParams Optional parameters for the method 'CreateRole' type CreateRoleParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - Permission *[]string `json:"Permission,omitempty"` - Type *string `json:"Type,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Permission *[]string `json:"Permission,omitempty"` + Type *string `json:"Type,omitempty"` } /* @@ -491,7 +491,7 @@ func (c *DefaultApiService) CreateRole(ServiceSid string, params *CreateRolePara } // CreateServiceParams Optional parameters for the method 'CreateService' type CreateServiceParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -528,11 +528,11 @@ func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*ChatV2S } // CreateUserParams Optional parameters for the method 'CreateUser' type CreateUserParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Identity *string `json:"Identity,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Identity *string `json:"Identity,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -613,7 +613,7 @@ func (c *DefaultApiService) DeleteBinding(ServiceSid string, Sid string) (error) } // DeleteChannelParams Optional parameters for the method 'DeleteChannel' type DeleteChannelParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* @@ -728,7 +728,7 @@ func (c *DefaultApiService) DeleteInvite(ServiceSid string, ChannelSid string, S } // DeleteMemberParams Optional parameters for the method 'DeleteMember' type DeleteMemberParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* @@ -765,7 +765,7 @@ func (c *DefaultApiService) DeleteMember(ServiceSid string, ChannelSid string, S } // DeleteMessageParams Optional parameters for the method 'DeleteMessage' type DeleteMessageParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* @@ -1327,9 +1327,9 @@ func (c *DefaultApiService) FetchUserChannel(ServiceSid string, UserSid string, } // ListBindingParams Optional parameters for the method 'ListBinding' type ListBindingParams struct { - BindingType *[]string `json:"BindingType,omitempty"` - Identity *[]string `json:"Identity,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + BindingType *[]string `json:"BindingType,omitempty"` + Identity *[]string `json:"Identity,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1339,9 +1339,9 @@ ListBinding Method for ListBinding * @param "BindingType" ([]string) - The push technology used by the Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. * @param "Identity" ([]string) - The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ChatV2ServiceBindingReadResponse +@return ListBindingResponse */ -func (c *DefaultApiService) ListBinding(ServiceSid string, params *ListBindingParams) (*ChatV2ServiceBindingReadResponse, error) { +func (c *DefaultApiService) ListBinding(ServiceSid string, params *ListBindingParams) (*ListBindingResponse, error) { path := "/v2/Services/{ServiceSid}/Bindings" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -1367,7 +1367,7 @@ func (c *DefaultApiService) ListBinding(ServiceSid string, params *ListBindingPa defer resp.Body.Close() - ps := &ChatV2ServiceBindingReadResponse{} + ps := &ListBindingResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1376,8 +1376,8 @@ func (c *DefaultApiService) ListBinding(ServiceSid string, params *ListBindingPa } // ListChannelParams Optional parameters for the method 'ListChannel' type ListChannelParams struct { - Type *[]string `json:"Type,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Type *[]string `json:"Type,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1386,9 +1386,9 @@ ListChannel Method for ListChannel * @param optional nil or *ListChannelOpts - Optional Parameters: * @param "Type" ([]string) - The visibility of the Channels to read. Can be: `public` or `private` and defaults to `public`. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ChatV2ServiceChannelReadResponse +@return ListChannelResponse */ -func (c *DefaultApiService) ListChannel(ServiceSid string, params *ListChannelParams) (*ChatV2ServiceChannelReadResponse, error) { +func (c *DefaultApiService) ListChannel(ServiceSid string, params *ListChannelParams) (*ListChannelResponse, error) { path := "/v2/Services/{ServiceSid}/Channels" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -1411,7 +1411,7 @@ func (c *DefaultApiService) ListChannel(ServiceSid string, params *ListChannelPa defer resp.Body.Close() - ps := &ChatV2ServiceChannelReadResponse{} + ps := &ListChannelResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1420,7 +1420,7 @@ func (c *DefaultApiService) ListChannel(ServiceSid string, params *ListChannelPa } // ListChannelWebhookParams Optional parameters for the method 'ListChannelWebhook' type ListChannelWebhookParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1429,9 +1429,9 @@ ListChannelWebhook Method for ListChannelWebhook * @param ChannelSid The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Channel Webhook resources to read belong to. This value can be the Channel resource's `sid` or `unique_name`. * @param optional nil or *ListChannelWebhookOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ChatV2ServiceChannelChannelWebhookReadResponse +@return ListChannelWebhookResponse */ -func (c *DefaultApiService) ListChannelWebhook(ServiceSid string, ChannelSid string, params *ListChannelWebhookParams) (*ChatV2ServiceChannelChannelWebhookReadResponse, error) { +func (c *DefaultApiService) ListChannelWebhook(ServiceSid string, ChannelSid string, params *ListChannelWebhookParams) (*ListChannelWebhookResponse, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) @@ -1452,7 +1452,7 @@ func (c *DefaultApiService) ListChannelWebhook(ServiceSid string, ChannelSid str defer resp.Body.Close() - ps := &ChatV2ServiceChannelChannelWebhookReadResponse{} + ps := &ListChannelWebhookResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1461,16 +1461,16 @@ func (c *DefaultApiService) ListChannelWebhook(ServiceSid string, ChannelSid str } // ListCredentialParams Optional parameters for the method 'ListCredential' type ListCredentialParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* ListCredential Method for ListCredential * @param optional nil or *ListCredentialOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ChatV2CredentialReadResponse +@return ListCredentialResponse */ -func (c *DefaultApiService) ListCredential(params *ListCredentialParams) (*ChatV2CredentialReadResponse, error) { +func (c *DefaultApiService) ListCredential(params *ListCredentialParams) (*ListCredentialResponse, error) { path := "/v2/Credentials" @@ -1489,7 +1489,7 @@ func (c *DefaultApiService) ListCredential(params *ListCredentialParams) (*ChatV defer resp.Body.Close() - ps := &ChatV2CredentialReadResponse{} + ps := &ListCredentialResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1498,8 +1498,8 @@ func (c *DefaultApiService) ListCredential(params *ListCredentialParams) (*ChatV } // ListInviteParams Optional parameters for the method 'ListInvite' type ListInviteParams struct { - Identity *[]string `json:"Identity,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Identity *[]string `json:"Identity,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1509,9 +1509,9 @@ ListInvite Method for ListInvite * @param optional nil or *ListInviteOpts - Optional Parameters: * @param "Identity" ([]string) - The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ChatV2ServiceChannelInviteReadResponse +@return ListInviteResponse */ -func (c *DefaultApiService) ListInvite(ServiceSid string, ChannelSid string, params *ListInviteParams) (*ChatV2ServiceChannelInviteReadResponse, error) { +func (c *DefaultApiService) ListInvite(ServiceSid string, ChannelSid string, params *ListInviteParams) (*ListInviteResponse, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) @@ -1535,7 +1535,7 @@ func (c *DefaultApiService) ListInvite(ServiceSid string, ChannelSid string, par defer resp.Body.Close() - ps := &ChatV2ServiceChannelInviteReadResponse{} + ps := &ListInviteResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1544,8 +1544,8 @@ func (c *DefaultApiService) ListInvite(ServiceSid string, ChannelSid string, par } // ListMemberParams Optional parameters for the method 'ListMember' type ListMemberParams struct { - Identity *[]string `json:"Identity,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Identity *[]string `json:"Identity,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1555,9 +1555,9 @@ ListMember Method for ListMember * @param optional nil or *ListMemberOpts - Optional Parameters: * @param "Identity" ([]string) - The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the Member resources to read. See [access tokens](https://www.twilio.com/docs/chat/create-tokens) for more details. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ChatV2ServiceChannelMemberReadResponse +@return ListMemberResponse */ -func (c *DefaultApiService) ListMember(ServiceSid string, ChannelSid string, params *ListMemberParams) (*ChatV2ServiceChannelMemberReadResponse, error) { +func (c *DefaultApiService) ListMember(ServiceSid string, ChannelSid string, params *ListMemberParams) (*ListMemberResponse, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) @@ -1581,7 +1581,7 @@ func (c *DefaultApiService) ListMember(ServiceSid string, ChannelSid string, par defer resp.Body.Close() - ps := &ChatV2ServiceChannelMemberReadResponse{} + ps := &ListMemberResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1590,8 +1590,8 @@ func (c *DefaultApiService) ListMember(ServiceSid string, ChannelSid string, par } // ListMessageParams Optional parameters for the method 'ListMessage' type ListMessageParams struct { - Order *string `json:"Order,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Order *string `json:"Order,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1601,9 +1601,9 @@ ListMessage Method for ListMessage * @param optional nil or *ListMessageOpts - Optional Parameters: * @param "Order" (string) - The sort order of the returned messages. Can be: `asc` (ascending) or `desc` (descending) with `asc` as the default. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ChatV2ServiceChannelMessageReadResponse +@return ListMessageResponse */ -func (c *DefaultApiService) ListMessage(ServiceSid string, ChannelSid string, params *ListMessageParams) (*ChatV2ServiceChannelMessageReadResponse, error) { +func (c *DefaultApiService) ListMessage(ServiceSid string, ChannelSid string, params *ListMessageParams) (*ListMessageResponse, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) @@ -1627,7 +1627,7 @@ func (c *DefaultApiService) ListMessage(ServiceSid string, ChannelSid string, pa defer resp.Body.Close() - ps := &ChatV2ServiceChannelMessageReadResponse{} + ps := &ListMessageResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1636,7 +1636,7 @@ func (c *DefaultApiService) ListMessage(ServiceSid string, ChannelSid string, pa } // ListRoleParams Optional parameters for the method 'ListRole' type ListRoleParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1644,9 +1644,9 @@ ListRole Method for ListRole * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the Role resources from. * @param optional nil or *ListRoleOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ChatV2ServiceRoleReadResponse +@return ListRoleResponse */ -func (c *DefaultApiService) ListRole(ServiceSid string, params *ListRoleParams) (*ChatV2ServiceRoleReadResponse, error) { +func (c *DefaultApiService) ListRole(ServiceSid string, params *ListRoleParams) (*ListRoleResponse, error) { path := "/v2/Services/{ServiceSid}/Roles" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -1666,7 +1666,7 @@ func (c *DefaultApiService) ListRole(ServiceSid string, params *ListRoleParams) defer resp.Body.Close() - ps := &ChatV2ServiceRoleReadResponse{} + ps := &ListRoleResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1675,16 +1675,16 @@ func (c *DefaultApiService) ListRole(ServiceSid string, params *ListRoleParams) } // ListServiceParams Optional parameters for the method 'ListService' type ListServiceParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* ListService Method for ListService * @param optional nil or *ListServiceOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ChatV2ServiceReadResponse +@return ListServiceResponse */ -func (c *DefaultApiService) ListService(params *ListServiceParams) (*ChatV2ServiceReadResponse, error) { +func (c *DefaultApiService) ListService(params *ListServiceParams) (*ListServiceResponse, error) { path := "/v2/Services" @@ -1703,7 +1703,7 @@ func (c *DefaultApiService) ListService(params *ListServiceParams) (*ChatV2Servi defer resp.Body.Close() - ps := &ChatV2ServiceReadResponse{} + ps := &ListServiceResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1712,7 +1712,7 @@ func (c *DefaultApiService) ListService(params *ListServiceParams) (*ChatV2Servi } // ListUserParams Optional parameters for the method 'ListUser' type ListUserParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1720,9 +1720,9 @@ ListUser Method for ListUser * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the User resources from. * @param optional nil or *ListUserOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ChatV2ServiceUserReadResponse +@return ListUserResponse */ -func (c *DefaultApiService) ListUser(ServiceSid string, params *ListUserParams) (*ChatV2ServiceUserReadResponse, error) { +func (c *DefaultApiService) ListUser(ServiceSid string, params *ListUserParams) (*ListUserResponse, error) { path := "/v2/Services/{ServiceSid}/Users" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -1742,7 +1742,7 @@ func (c *DefaultApiService) ListUser(ServiceSid string, params *ListUserParams) defer resp.Body.Close() - ps := &ChatV2ServiceUserReadResponse{} + ps := &ListUserResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1751,8 +1751,8 @@ func (c *DefaultApiService) ListUser(ServiceSid string, params *ListUserParams) } // ListUserBindingParams Optional parameters for the method 'ListUserBinding' type ListUserBindingParams struct { - BindingType *[]string `json:"BindingType,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + BindingType *[]string `json:"BindingType,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1762,9 +1762,9 @@ ListUserBinding Method for ListUserBinding * @param optional nil or *ListUserBindingOpts - Optional Parameters: * @param "BindingType" ([]string) - The push technology used by the User Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ChatV2ServiceUserUserBindingReadResponse +@return ListUserBindingResponse */ -func (c *DefaultApiService) ListUserBinding(ServiceSid string, UserSid string, params *ListUserBindingParams) (*ChatV2ServiceUserUserBindingReadResponse, error) { +func (c *DefaultApiService) ListUserBinding(ServiceSid string, UserSid string, params *ListUserBindingParams) (*ListUserBindingResponse, error) { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"UserSid"+"}", UserSid, -1) @@ -1788,7 +1788,7 @@ func (c *DefaultApiService) ListUserBinding(ServiceSid string, UserSid string, p defer resp.Body.Close() - ps := &ChatV2ServiceUserUserBindingReadResponse{} + ps := &ListUserBindingResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1797,7 +1797,7 @@ func (c *DefaultApiService) ListUserBinding(ServiceSid string, UserSid string, p } // ListUserChannelParams Optional parameters for the method 'ListUserChannel' type ListUserChannelParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1807,9 +1807,9 @@ List all Channels for a given User. * @param UserSid The SID of the [User](https://www.twilio.com/docs/chat/rest/user-resource) to read the User Channel resources from. This value can be either the `sid` or the `identity` of the User resource. * @param optional nil or *ListUserChannelOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ChatV2ServiceUserUserChannelReadResponse +@return ListUserChannelResponse */ -func (c *DefaultApiService) ListUserChannel(ServiceSid string, UserSid string, params *ListUserChannelParams) (*ChatV2ServiceUserUserChannelReadResponse, error) { +func (c *DefaultApiService) ListUserChannel(ServiceSid string, UserSid string, params *ListUserChannelParams) (*ListUserChannelResponse, error) { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"UserSid"+"}", UserSid, -1) @@ -1830,7 +1830,7 @@ func (c *DefaultApiService) ListUserChannel(ServiceSid string, UserSid string, p defer resp.Body.Close() - ps := &ChatV2ServiceUserUserChannelReadResponse{} + ps := &ListUserChannelResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1839,13 +1839,13 @@ func (c *DefaultApiService) ListUserChannel(ServiceSid string, UserSid string, p } // UpdateChannelParams Optional parameters for the method 'UpdateChannel' type UpdateChannelParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - CreatedBy *string `json:"CreatedBy,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + CreatedBy *string `json:"CreatedBy,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -1910,12 +1910,12 @@ func (c *DefaultApiService) UpdateChannel(ServiceSid string, Sid string, params } // UpdateChannelWebhookParams Optional parameters for the method 'UpdateChannelWebhook' type UpdateChannelWebhookParams struct { - ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` - ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` - ConfigurationMethod *string `json:"Configuration.Method,omitempty"` - ConfigurationRetryCount *int32 `json:"Configuration.RetryCount,omitempty"` - ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` - ConfigurationUrl *string `json:"Configuration.Url,omitempty"` + ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` + ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` + ConfigurationMethod *string `json:"Configuration.Method,omitempty"` + ConfigurationRetryCount *int32 `json:"Configuration.RetryCount,omitempty"` + ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` + ConfigurationUrl *string `json:"Configuration.Url,omitempty"` } /* @@ -1978,12 +1978,12 @@ func (c *DefaultApiService) UpdateChannelWebhook(ServiceSid string, ChannelSid s } // UpdateCredentialParams Optional parameters for the method 'UpdateCredential' type UpdateCredentialParams struct { - ApiKey *string `json:"ApiKey,omitempty"` - Certificate *string `json:"Certificate,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PrivateKey *string `json:"PrivateKey,omitempty"` - Sandbox *bool `json:"Sandbox,omitempty"` - Secret *string `json:"Secret,omitempty"` + ApiKey *string `json:"ApiKey,omitempty"` + Certificate *string `json:"Certificate,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PrivateKey *string `json:"PrivateKey,omitempty"` + Sandbox *bool `json:"Sandbox,omitempty"` + Secret *string `json:"Secret,omitempty"` } /* @@ -2042,13 +2042,13 @@ func (c *DefaultApiService) UpdateCredential(Sid string, params *UpdateCredentia } // UpdateMemberParams Optional parameters for the method 'UpdateMember' type UpdateMemberParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` - LastConsumptionTimestamp *time.Time `json:"LastConsumptionTimestamp,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` + LastConsumptionTimestamp *time.Time `json:"LastConsumptionTimestamp,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -2115,13 +2115,13 @@ func (c *DefaultApiService) UpdateMember(ServiceSid string, ChannelSid string, S } // UpdateMessageParams Optional parameters for the method 'UpdateMessage' type UpdateMessageParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - Body *string `json:"Body,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - From *string `json:"From,omitempty"` - LastUpdatedBy *string `json:"LastUpdatedBy,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + Body *string `json:"Body,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + From *string `json:"From,omitempty"` + LastUpdatedBy *string `json:"LastUpdatedBy,omitempty"` } /* @@ -2188,7 +2188,7 @@ func (c *DefaultApiService) UpdateMessage(ServiceSid string, ChannelSid string, } // UpdateRoleParams Optional parameters for the method 'UpdateRole' type UpdateRoleParams struct { - Permission *[]string `json:"Permission,omitempty"` + Permission *[]string `json:"Permission,omitempty"` } /* @@ -2229,37 +2229,37 @@ func (c *DefaultApiService) UpdateRole(ServiceSid string, Sid string, params *Up } // UpdateServiceParams Optional parameters for the method 'UpdateService' type UpdateServiceParams struct { - ConsumptionReportInterval *int32 `json:"ConsumptionReportInterval,omitempty"` - DefaultChannelCreatorRoleSid *string `json:"DefaultChannelCreatorRoleSid,omitempty"` - DefaultChannelRoleSid *string `json:"DefaultChannelRoleSid,omitempty"` - DefaultServiceRoleSid *string `json:"DefaultServiceRoleSid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - LimitsChannelMembers *int32 `json:"Limits.ChannelMembers,omitempty"` - LimitsUserChannels *int32 `json:"Limits.UserChannels,omitempty"` - MediaCompatibilityMessage *string `json:"Media.CompatibilityMessage,omitempty"` - NotificationsAddedToChannelEnabled *bool `json:"Notifications.AddedToChannel.Enabled,omitempty"` - NotificationsAddedToChannelSound *string `json:"Notifications.AddedToChannel.Sound,omitempty"` - NotificationsAddedToChannelTemplate *string `json:"Notifications.AddedToChannel.Template,omitempty"` - NotificationsInvitedToChannelEnabled *bool `json:"Notifications.InvitedToChannel.Enabled,omitempty"` - NotificationsInvitedToChannelSound *string `json:"Notifications.InvitedToChannel.Sound,omitempty"` - NotificationsInvitedToChannelTemplate *string `json:"Notifications.InvitedToChannel.Template,omitempty"` - NotificationsLogEnabled *bool `json:"Notifications.LogEnabled,omitempty"` - NotificationsNewMessageBadgeCountEnabled *bool `json:"Notifications.NewMessage.BadgeCountEnabled,omitempty"` - NotificationsNewMessageEnabled *bool `json:"Notifications.NewMessage.Enabled,omitempty"` - NotificationsNewMessageSound *string `json:"Notifications.NewMessage.Sound,omitempty"` - NotificationsNewMessageTemplate *string `json:"Notifications.NewMessage.Template,omitempty"` - NotificationsRemovedFromChannelEnabled *bool `json:"Notifications.RemovedFromChannel.Enabled,omitempty"` - NotificationsRemovedFromChannelSound *string `json:"Notifications.RemovedFromChannel.Sound,omitempty"` - NotificationsRemovedFromChannelTemplate *string `json:"Notifications.RemovedFromChannel.Template,omitempty"` - PostWebhookRetryCount *int32 `json:"PostWebhookRetryCount,omitempty"` - PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"` - PreWebhookRetryCount *int32 `json:"PreWebhookRetryCount,omitempty"` - PreWebhookUrl *string `json:"PreWebhookUrl,omitempty"` - ReachabilityEnabled *bool `json:"ReachabilityEnabled,omitempty"` - ReadStatusEnabled *bool `json:"ReadStatusEnabled,omitempty"` - TypingIndicatorTimeout *int32 `json:"TypingIndicatorTimeout,omitempty"` - WebhookFilters *[]string `json:"WebhookFilters,omitempty"` - WebhookMethod *string `json:"WebhookMethod,omitempty"` + ConsumptionReportInterval *int32 `json:"ConsumptionReportInterval,omitempty"` + DefaultChannelCreatorRoleSid *string `json:"DefaultChannelCreatorRoleSid,omitempty"` + DefaultChannelRoleSid *string `json:"DefaultChannelRoleSid,omitempty"` + DefaultServiceRoleSid *string `json:"DefaultServiceRoleSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + LimitsChannelMembers *int32 `json:"Limits.ChannelMembers,omitempty"` + LimitsUserChannels *int32 `json:"Limits.UserChannels,omitempty"` + MediaCompatibilityMessage *string `json:"Media.CompatibilityMessage,omitempty"` + NotificationsAddedToChannelEnabled *bool `json:"Notifications.AddedToChannel.Enabled,omitempty"` + NotificationsAddedToChannelSound *string `json:"Notifications.AddedToChannel.Sound,omitempty"` + NotificationsAddedToChannelTemplate *string `json:"Notifications.AddedToChannel.Template,omitempty"` + NotificationsInvitedToChannelEnabled *bool `json:"Notifications.InvitedToChannel.Enabled,omitempty"` + NotificationsInvitedToChannelSound *string `json:"Notifications.InvitedToChannel.Sound,omitempty"` + NotificationsInvitedToChannelTemplate *string `json:"Notifications.InvitedToChannel.Template,omitempty"` + NotificationsLogEnabled *bool `json:"Notifications.LogEnabled,omitempty"` + NotificationsNewMessageBadgeCountEnabled *bool `json:"Notifications.NewMessage.BadgeCountEnabled,omitempty"` + NotificationsNewMessageEnabled *bool `json:"Notifications.NewMessage.Enabled,omitempty"` + NotificationsNewMessageSound *string `json:"Notifications.NewMessage.Sound,omitempty"` + NotificationsNewMessageTemplate *string `json:"Notifications.NewMessage.Template,omitempty"` + NotificationsRemovedFromChannelEnabled *bool `json:"Notifications.RemovedFromChannel.Enabled,omitempty"` + NotificationsRemovedFromChannelSound *string `json:"Notifications.RemovedFromChannel.Sound,omitempty"` + NotificationsRemovedFromChannelTemplate *string `json:"Notifications.RemovedFromChannel.Template,omitempty"` + PostWebhookRetryCount *int32 `json:"PostWebhookRetryCount,omitempty"` + PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"` + PreWebhookRetryCount *int32 `json:"PreWebhookRetryCount,omitempty"` + PreWebhookUrl *string `json:"PreWebhookUrl,omitempty"` + ReachabilityEnabled *bool `json:"ReachabilityEnabled,omitempty"` + ReadStatusEnabled *bool `json:"ReadStatusEnabled,omitempty"` + TypingIndicatorTimeout *int32 `json:"TypingIndicatorTimeout,omitempty"` + WebhookFilters *[]string `json:"WebhookFilters,omitempty"` + WebhookMethod *string `json:"WebhookMethod,omitempty"` } /* @@ -2418,10 +2418,10 @@ func (c *DefaultApiService) UpdateService(Sid string, params *UpdateServiceParam } // UpdateUserParams Optional parameters for the method 'UpdateUser' type UpdateUserParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -2474,9 +2474,9 @@ func (c *DefaultApiService) UpdateUser(ServiceSid string, Sid string, params *Up } // UpdateUserChannelParams Optional parameters for the method 'UpdateUserChannel' type UpdateUserChannelParams struct { - LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` - LastConsumptionTimestamp *time.Time `json:"LastConsumptionTimestamp,omitempty"` - NotificationLevel *string `json:"NotificationLevel,omitempty"` + LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` + LastConsumptionTimestamp *time.Time `json:"LastConsumptionTimestamp,omitempty"` + NotificationLevel *string `json:"NotificationLevel,omitempty"` } /* diff --git a/rest/chat/v2/docs/DefaultApi.md b/rest/chat/v2/docs/DefaultApi.md index 5b015cb03..0d2e0aa38 100644 --- a/rest/chat/v2/docs/DefaultApi.md +++ b/rest/chat/v2/docs/DefaultApi.md @@ -1334,7 +1334,7 @@ Name | Type | Description | Notes ## ListBinding -> ChatV2ServiceBindingReadResponse ListBinding(ctx, ServiceSid, optional) +> ListBindingResponse ListBinding(ctx, ServiceSid, optional) @@ -1361,7 +1361,7 @@ Name | Type | Description | Notes ### Return type -[**ChatV2ServiceBindingReadResponse**](chat_v2_service_bindingReadResponse.md) +[**ListBindingResponse**](ListBindingResponse.md) ### Authorization @@ -1379,7 +1379,7 @@ Name | Type | Description | Notes ## ListChannel -> ChatV2ServiceChannelReadResponse ListChannel(ctx, ServiceSid, optional) +> ListChannelResponse ListChannel(ctx, ServiceSid, optional) @@ -1405,7 +1405,7 @@ Name | Type | Description | Notes ### Return type -[**ChatV2ServiceChannelReadResponse**](chat_v2_service_channelReadResponse.md) +[**ListChannelResponse**](ListChannelResponse.md) ### Authorization @@ -1423,7 +1423,7 @@ Name | Type | Description | Notes ## ListChannelWebhook -> ChatV2ServiceChannelChannelWebhookReadResponse ListChannelWebhook(ctx, ServiceSid, ChannelSid, optional) +> ListChannelWebhookResponse ListChannelWebhook(ctx, ServiceSid, ChannelSid, optional) @@ -1450,7 +1450,7 @@ Name | Type | Description | Notes ### Return type -[**ChatV2ServiceChannelChannelWebhookReadResponse**](chat_v2_service_channel_channel_webhookReadResponse.md) +[**ListChannelWebhookResponse**](ListChannelWebhookResponse.md) ### Authorization @@ -1468,7 +1468,7 @@ Name | Type | Description | Notes ## ListCredential -> ChatV2CredentialReadResponse ListCredential(ctx, optional) +> ListCredentialResponse ListCredential(ctx, optional) @@ -1491,7 +1491,7 @@ Name | Type | Description | Notes ### Return type -[**ChatV2CredentialReadResponse**](chat_v2_credentialReadResponse.md) +[**ListCredentialResponse**](ListCredentialResponse.md) ### Authorization @@ -1509,7 +1509,7 @@ Name | Type | Description | Notes ## ListInvite -> ChatV2ServiceChannelInviteReadResponse ListInvite(ctx, ServiceSid, ChannelSid, optional) +> ListInviteResponse ListInvite(ctx, ServiceSid, ChannelSid, optional) @@ -1537,7 +1537,7 @@ Name | Type | Description | Notes ### Return type -[**ChatV2ServiceChannelInviteReadResponse**](chat_v2_service_channel_inviteReadResponse.md) +[**ListInviteResponse**](ListInviteResponse.md) ### Authorization @@ -1555,7 +1555,7 @@ Name | Type | Description | Notes ## ListMember -> ChatV2ServiceChannelMemberReadResponse ListMember(ctx, ServiceSid, ChannelSid, optional) +> ListMemberResponse ListMember(ctx, ServiceSid, ChannelSid, optional) @@ -1583,7 +1583,7 @@ Name | Type | Description | Notes ### Return type -[**ChatV2ServiceChannelMemberReadResponse**](chat_v2_service_channel_memberReadResponse.md) +[**ListMemberResponse**](ListMemberResponse.md) ### Authorization @@ -1601,7 +1601,7 @@ Name | Type | Description | Notes ## ListMessage -> ChatV2ServiceChannelMessageReadResponse ListMessage(ctx, ServiceSid, ChannelSid, optional) +> ListMessageResponse ListMessage(ctx, ServiceSid, ChannelSid, optional) @@ -1629,7 +1629,7 @@ Name | Type | Description | Notes ### Return type -[**ChatV2ServiceChannelMessageReadResponse**](chat_v2_service_channel_messageReadResponse.md) +[**ListMessageResponse**](ListMessageResponse.md) ### Authorization @@ -1647,7 +1647,7 @@ Name | Type | Description | Notes ## ListRole -> ChatV2ServiceRoleReadResponse ListRole(ctx, ServiceSid, optional) +> ListRoleResponse ListRole(ctx, ServiceSid, optional) @@ -1672,7 +1672,7 @@ Name | Type | Description | Notes ### Return type -[**ChatV2ServiceRoleReadResponse**](chat_v2_service_roleReadResponse.md) +[**ListRoleResponse**](ListRoleResponse.md) ### Authorization @@ -1690,7 +1690,7 @@ Name | Type | Description | Notes ## ListService -> ChatV2ServiceReadResponse ListService(ctx, optional) +> ListServiceResponse ListService(ctx, optional) @@ -1713,7 +1713,7 @@ Name | Type | Description | Notes ### Return type -[**ChatV2ServiceReadResponse**](chat_v2_serviceReadResponse.md) +[**ListServiceResponse**](ListServiceResponse.md) ### Authorization @@ -1731,7 +1731,7 @@ Name | Type | Description | Notes ## ListUser -> ChatV2ServiceUserReadResponse ListUser(ctx, ServiceSid, optional) +> ListUserResponse ListUser(ctx, ServiceSid, optional) @@ -1756,7 +1756,7 @@ Name | Type | Description | Notes ### Return type -[**ChatV2ServiceUserReadResponse**](chat_v2_service_userReadResponse.md) +[**ListUserResponse**](ListUserResponse.md) ### Authorization @@ -1774,7 +1774,7 @@ Name | Type | Description | Notes ## ListUserBinding -> ChatV2ServiceUserUserBindingReadResponse ListUserBinding(ctx, ServiceSid, UserSid, optional) +> ListUserBindingResponse ListUserBinding(ctx, ServiceSid, UserSid, optional) @@ -1802,7 +1802,7 @@ Name | Type | Description | Notes ### Return type -[**ChatV2ServiceUserUserBindingReadResponse**](chat_v2_service_user_user_bindingReadResponse.md) +[**ListUserBindingResponse**](ListUserBindingResponse.md) ### Authorization @@ -1820,7 +1820,7 @@ Name | Type | Description | Notes ## ListUserChannel -> ChatV2ServiceUserUserChannelReadResponse ListUserChannel(ctx, ServiceSid, UserSid, optional) +> ListUserChannelResponse ListUserChannel(ctx, ServiceSid, UserSid, optional) @@ -1849,7 +1849,7 @@ Name | Type | Description | Notes ### Return type -[**ChatV2ServiceUserUserChannelReadResponse**](chat_v2_service_user_user_channelReadResponse.md) +[**ListUserChannelResponse**](ListUserChannelResponse.md) ### Authorization diff --git a/rest/chat/v2/docs/ChatV2ServiceBindingReadResponse.md b/rest/chat/v2/docs/ListBindingResponse.md similarity index 71% rename from rest/chat/v2/docs/ChatV2ServiceBindingReadResponse.md rename to rest/chat/v2/docs/ListBindingResponse.md index 48ee001ea..5527d97c3 100644 --- a/rest/chat/v2/docs/ChatV2ServiceBindingReadResponse.md +++ b/rest/chat/v2/docs/ListBindingResponse.md @@ -1,11 +1,11 @@ -# ChatV2ServiceBindingReadResponse +# ListBindingResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Bindings** | [**[]ChatV2ServiceBinding**](chat.v2.service.binding.md) | | [optional] -**Meta** | [**ChatV2CredentialReadResponseMeta**](chat_v2_credentialReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialResponseMeta**](ListCredentialResponse_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/rest/chat/v2/docs/ChatV2ServiceChannelReadResponse.md b/rest/chat/v2/docs/ListChannelResponse.md similarity index 71% rename from rest/chat/v2/docs/ChatV2ServiceChannelReadResponse.md rename to rest/chat/v2/docs/ListChannelResponse.md index db868acdf..561c2e9ca 100644 --- a/rest/chat/v2/docs/ChatV2ServiceChannelReadResponse.md +++ b/rest/chat/v2/docs/ListChannelResponse.md @@ -1,11 +1,11 @@ -# ChatV2ServiceChannelReadResponse +# ListChannelResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Channels** | [**[]ChatV2ServiceChannel**](chat.v2.service.channel.md) | | [optional] -**Meta** | [**ChatV2CredentialReadResponseMeta**](chat_v2_credentialReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialResponseMeta**](ListCredentialResponse_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/rest/chat/v2/docs/ChatV2ServiceChannelChannelWebhookReadResponse.md b/rest/chat/v2/docs/ListChannelWebhookResponse.md similarity index 71% rename from rest/chat/v2/docs/ChatV2ServiceChannelChannelWebhookReadResponse.md rename to rest/chat/v2/docs/ListChannelWebhookResponse.md index 2fb2fe055..98f0fc2cd 100644 --- a/rest/chat/v2/docs/ChatV2ServiceChannelChannelWebhookReadResponse.md +++ b/rest/chat/v2/docs/ListChannelWebhookResponse.md @@ -1,10 +1,10 @@ -# ChatV2ServiceChannelChannelWebhookReadResponse +# ListChannelWebhookResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**ChatV2CredentialReadResponseMeta**](chat_v2_credentialReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialResponseMeta**](ListCredentialResponse_meta.md) | | [optional] **Webhooks** | [**[]ChatV2ServiceChannelChannelWebhook**](chat.v2.service.channel.channel_webhook.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/rest/chat/v2/docs/ChatV2CredentialReadResponse.md b/rest/chat/v2/docs/ListCredentialResponse.md similarity index 72% rename from rest/chat/v2/docs/ChatV2CredentialReadResponse.md rename to rest/chat/v2/docs/ListCredentialResponse.md index a53426d26..c871187f8 100644 --- a/rest/chat/v2/docs/ChatV2CredentialReadResponse.md +++ b/rest/chat/v2/docs/ListCredentialResponse.md @@ -1,11 +1,11 @@ -# ChatV2CredentialReadResponse +# ListCredentialResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Credentials** | [**[]ChatV2Credential**](chat.v2.credential.md) | | [optional] -**Meta** | [**ChatV2CredentialReadResponseMeta**](chat_v2_credentialReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialResponseMeta**](ListCredentialResponse_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/rest/chat/v2/docs/ListCredentialResponseMeta.md b/rest/chat/v2/docs/ListCredentialResponseMeta.md new file mode 100644 index 000000000..20d8e9381 --- /dev/null +++ b/rest/chat/v2/docs/ListCredentialResponseMeta.md @@ -0,0 +1,17 @@ +# ListCredentialResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/chat/v2/docs/ChatV2ServiceChannelInviteReadResponse.md b/rest/chat/v2/docs/ListInviteResponse.md similarity index 71% rename from rest/chat/v2/docs/ChatV2ServiceChannelInviteReadResponse.md rename to rest/chat/v2/docs/ListInviteResponse.md index 44241399f..365e9cc4a 100644 --- a/rest/chat/v2/docs/ChatV2ServiceChannelInviteReadResponse.md +++ b/rest/chat/v2/docs/ListInviteResponse.md @@ -1,11 +1,11 @@ -# ChatV2ServiceChannelInviteReadResponse +# ListInviteResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Invites** | [**[]ChatV2ServiceChannelInvite**](chat.v2.service.channel.invite.md) | | [optional] -**Meta** | [**ChatV2CredentialReadResponseMeta**](chat_v2_credentialReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialResponseMeta**](ListCredentialResponse_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/rest/chat/v2/docs/ChatV2ServiceChannelMemberReadResponse.md b/rest/chat/v2/docs/ListMemberResponse.md similarity index 71% rename from rest/chat/v2/docs/ChatV2ServiceChannelMemberReadResponse.md rename to rest/chat/v2/docs/ListMemberResponse.md index bc4bb7333..11af97014 100644 --- a/rest/chat/v2/docs/ChatV2ServiceChannelMemberReadResponse.md +++ b/rest/chat/v2/docs/ListMemberResponse.md @@ -1,11 +1,11 @@ -# ChatV2ServiceChannelMemberReadResponse +# ListMemberResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Members** | [**[]ChatV2ServiceChannelMember**](chat.v2.service.channel.member.md) | | [optional] -**Meta** | [**ChatV2CredentialReadResponseMeta**](chat_v2_credentialReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialResponseMeta**](ListCredentialResponse_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/rest/chat/v2/docs/ChatV2ServiceChannelMessageReadResponse.md b/rest/chat/v2/docs/ListMessageResponse.md similarity index 71% rename from rest/chat/v2/docs/ChatV2ServiceChannelMessageReadResponse.md rename to rest/chat/v2/docs/ListMessageResponse.md index 6000dcf21..251929e5c 100644 --- a/rest/chat/v2/docs/ChatV2ServiceChannelMessageReadResponse.md +++ b/rest/chat/v2/docs/ListMessageResponse.md @@ -1,11 +1,11 @@ -# ChatV2ServiceChannelMessageReadResponse +# ListMessageResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Messages** | [**[]ChatV2ServiceChannelMessage**](chat.v2.service.channel.message.md) | | [optional] -**Meta** | [**ChatV2CredentialReadResponseMeta**](chat_v2_credentialReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialResponseMeta**](ListCredentialResponse_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/rest/chat/v2/docs/ChatV2ServiceRoleReadResponse.md b/rest/chat/v2/docs/ListRoleResponse.md similarity index 71% rename from rest/chat/v2/docs/ChatV2ServiceRoleReadResponse.md rename to rest/chat/v2/docs/ListRoleResponse.md index c80f533bf..55cb45744 100644 --- a/rest/chat/v2/docs/ChatV2ServiceRoleReadResponse.md +++ b/rest/chat/v2/docs/ListRoleResponse.md @@ -1,10 +1,10 @@ -# ChatV2ServiceRoleReadResponse +# ListRoleResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**ChatV2CredentialReadResponseMeta**](chat_v2_credentialReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialResponseMeta**](ListCredentialResponse_meta.md) | | [optional] **Roles** | [**[]ChatV2ServiceRole**](chat.v2.service.role.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/rest/chat/v2/docs/ChatV2ServiceReadResponse.md b/rest/chat/v2/docs/ListServiceResponse.md similarity index 72% rename from rest/chat/v2/docs/ChatV2ServiceReadResponse.md rename to rest/chat/v2/docs/ListServiceResponse.md index 2daefa1cb..aad4b0eb3 100644 --- a/rest/chat/v2/docs/ChatV2ServiceReadResponse.md +++ b/rest/chat/v2/docs/ListServiceResponse.md @@ -1,10 +1,10 @@ -# ChatV2ServiceReadResponse +# ListServiceResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**ChatV2CredentialReadResponseMeta**](chat_v2_credentialReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialResponseMeta**](ListCredentialResponse_meta.md) | | [optional] **Services** | [**[]ChatV2Service**](chat.v2.service.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/rest/chat/v2/docs/ChatV2ServiceUserUserBindingReadResponse.md b/rest/chat/v2/docs/ListUserBindingResponse.md similarity index 71% rename from rest/chat/v2/docs/ChatV2ServiceUserUserBindingReadResponse.md rename to rest/chat/v2/docs/ListUserBindingResponse.md index d019e8aad..e1f200a37 100644 --- a/rest/chat/v2/docs/ChatV2ServiceUserUserBindingReadResponse.md +++ b/rest/chat/v2/docs/ListUserBindingResponse.md @@ -1,11 +1,11 @@ -# ChatV2ServiceUserUserBindingReadResponse +# ListUserBindingResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Bindings** | [**[]ChatV2ServiceUserUserBinding**](chat.v2.service.user.user_binding.md) | | [optional] -**Meta** | [**ChatV2CredentialReadResponseMeta**](chat_v2_credentialReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialResponseMeta**](ListCredentialResponse_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/rest/chat/v2/docs/ChatV2ServiceUserUserChannelReadResponse.md b/rest/chat/v2/docs/ListUserChannelResponse.md similarity index 71% rename from rest/chat/v2/docs/ChatV2ServiceUserUserChannelReadResponse.md rename to rest/chat/v2/docs/ListUserChannelResponse.md index 7f6b4f1e9..2e3b53536 100644 --- a/rest/chat/v2/docs/ChatV2ServiceUserUserChannelReadResponse.md +++ b/rest/chat/v2/docs/ListUserChannelResponse.md @@ -1,11 +1,11 @@ -# ChatV2ServiceUserUserChannelReadResponse +# ListUserChannelResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Channels** | [**[]ChatV2ServiceUserUserChannel**](chat.v2.service.user.user_channel.md) | | [optional] -**Meta** | [**ChatV2CredentialReadResponseMeta**](chat_v2_credentialReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialResponseMeta**](ListCredentialResponse_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/rest/chat/v2/docs/ChatV2ServiceUserReadResponse.md b/rest/chat/v2/docs/ListUserResponse.md similarity index 71% rename from rest/chat/v2/docs/ChatV2ServiceUserReadResponse.md rename to rest/chat/v2/docs/ListUserResponse.md index 01a389c7b..f2a07885a 100644 --- a/rest/chat/v2/docs/ChatV2ServiceUserReadResponse.md +++ b/rest/chat/v2/docs/ListUserResponse.md @@ -1,10 +1,10 @@ -# ChatV2ServiceUserReadResponse +# ListUserResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**ChatV2CredentialReadResponseMeta**](chat_v2_credentialReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialResponseMeta**](ListCredentialResponse_meta.md) | | [optional] **Users** | [**[]ChatV2ServiceUser**](chat.v2.service.user.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/rest/chat/v2/model_chat_v2_credential.go b/rest/chat/v2/model_chat_v2_credential.go index dc430e638..c73181120 100644 --- a/rest/chat/v2/model_chat_v2_credential.go +++ b/rest/chat/v2/model_chat_v2_credential.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v2/model_chat_v2_service.go b/rest/chat/v2/model_chat_v2_service.go index 9aa378d8f..f63dbad92 100644 --- a/rest/chat/v2/model_chat_v2_service.go +++ b/rest/chat/v2/model_chat_v2_service.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v2/model_chat_v2_service_binding.go b/rest/chat/v2/model_chat_v2_service_binding.go index 8bcf3af04..962b6aefa 100644 --- a/rest/chat/v2/model_chat_v2_service_binding.go +++ b/rest/chat/v2/model_chat_v2_service_binding.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v2/model_chat_v2_service_channel.go b/rest/chat/v2/model_chat_v2_service_channel.go index 8030f304f..ec0a4c104 100644 --- a/rest/chat/v2/model_chat_v2_service_channel.go +++ b/rest/chat/v2/model_chat_v2_service_channel.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v2/model_chat_v2_service_channel_channel_webhook.go b/rest/chat/v2/model_chat_v2_service_channel_channel_webhook.go index c6694c39b..2b17d5cde 100644 --- a/rest/chat/v2/model_chat_v2_service_channel_channel_webhook.go +++ b/rest/chat/v2/model_chat_v2_service_channel_channel_webhook.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v2/model_chat_v2_service_channel_invite.go b/rest/chat/v2/model_chat_v2_service_channel_invite.go index 035fb0fb1..9a6904561 100644 --- a/rest/chat/v2/model_chat_v2_service_channel_invite.go +++ b/rest/chat/v2/model_chat_v2_service_channel_invite.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v2/model_chat_v2_service_channel_member.go b/rest/chat/v2/model_chat_v2_service_channel_member.go index b80317906..d12fa5476 100644 --- a/rest/chat/v2/model_chat_v2_service_channel_member.go +++ b/rest/chat/v2/model_chat_v2_service_channel_member.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v2/model_chat_v2_service_channel_message.go b/rest/chat/v2/model_chat_v2_service_channel_message.go index d318d43de..c0787b5d8 100644 --- a/rest/chat/v2/model_chat_v2_service_channel_message.go +++ b/rest/chat/v2/model_chat_v2_service_channel_message.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v2/model_chat_v2_service_role.go b/rest/chat/v2/model_chat_v2_service_role.go index d88069fd5..ba7f303aa 100644 --- a/rest/chat/v2/model_chat_v2_service_role.go +++ b/rest/chat/v2/model_chat_v2_service_role.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v2/model_chat_v2_service_user.go b/rest/chat/v2/model_chat_v2_service_user.go index e6bd1fc1b..6da872e38 100644 --- a/rest/chat/v2/model_chat_v2_service_user.go +++ b/rest/chat/v2/model_chat_v2_service_user.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v2/model_chat_v2_service_user_user_binding.go b/rest/chat/v2/model_chat_v2_service_user_user_binding.go index 38b0acc59..37b45be2a 100644 --- a/rest/chat/v2/model_chat_v2_service_user_user_binding.go +++ b/rest/chat/v2/model_chat_v2_service_user_user_binding.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v2/model_chat_v2_service_user_user_channel.go b/rest/chat/v2/model_chat_v2_service_user_user_channel.go index e6aad44ac..b1fd0bbec 100644 --- a/rest/chat/v2/model_chat_v2_service_user_user_channel.go +++ b/rest/chat/v2/model_chat_v2_service_user_user_channel.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v2/model_create_channel_request.go b/rest/chat/v2/model_create_channel_request.go index 661e94efd..e99708fa0 100644 --- a/rest/chat/v2/model_create_channel_request.go +++ b/rest/chat/v2/model_create_channel_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v2/model_create_channel_webhook_request.go b/rest/chat/v2/model_create_channel_webhook_request.go index bb0ac2c4a..cdd3c8a02 100644 --- a/rest/chat/v2/model_create_channel_webhook_request.go +++ b/rest/chat/v2/model_create_channel_webhook_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v2/model_create_credential_request.go b/rest/chat/v2/model_create_credential_request.go index 469f3a297..690291b16 100644 --- a/rest/chat/v2/model_create_credential_request.go +++ b/rest/chat/v2/model_create_credential_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v2/model_create_invite_request.go b/rest/chat/v2/model_create_invite_request.go index 7a138406e..2041fdf99 100644 --- a/rest/chat/v2/model_create_invite_request.go +++ b/rest/chat/v2/model_create_invite_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v2/model_create_member_request.go b/rest/chat/v2/model_create_member_request.go index d1ee6ebd7..b487fd009 100644 --- a/rest/chat/v2/model_create_member_request.go +++ b/rest/chat/v2/model_create_member_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v2/model_create_message_request.go b/rest/chat/v2/model_create_message_request.go index a00c63b4a..9ffa95438 100644 --- a/rest/chat/v2/model_create_message_request.go +++ b/rest/chat/v2/model_create_message_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v2/model_create_role_request.go b/rest/chat/v2/model_create_role_request.go index d37a84894..a5c2d836e 100644 --- a/rest/chat/v2/model_create_role_request.go +++ b/rest/chat/v2/model_create_role_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v2/model_create_service_request.go b/rest/chat/v2/model_create_service_request.go index a12d8a7cb..1a4f1eae3 100644 --- a/rest/chat/v2/model_create_service_request.go +++ b/rest/chat/v2/model_create_service_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v2/model_create_user_request.go b/rest/chat/v2/model_create_user_request.go index 4c5ef886f..9539eae4f 100644 --- a/rest/chat/v2/model_create_user_request.go +++ b/rest/chat/v2/model_create_user_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v2/model_chat_v2_service_binding_read_response.go b/rest/chat/v2/model_list_binding_response.go similarity index 53% rename from rest/chat/v2/model_chat_v2_service_binding_read_response.go rename to rest/chat/v2/model_list_binding_response.go index 3a9c638f2..fd99b68f5 100644 --- a/rest/chat/v2/model_chat_v2_service_binding_read_response.go +++ b/rest/chat/v2/model_list_binding_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ChatV2ServiceBindingReadResponse struct for ChatV2ServiceBindingReadResponse -type ChatV2ServiceBindingReadResponse struct { +// ListBindingResponse struct for ListBindingResponse +type ListBindingResponse struct { Bindings []ChatV2ServiceBinding `json:"Bindings,omitempty"` - Meta ChatV2CredentialReadResponseMeta `json:"Meta,omitempty"` + Meta ListCredentialResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/chat/v2/model_chat_v2_service_channel_read_response.go b/rest/chat/v2/model_list_channel_response.go similarity index 53% rename from rest/chat/v2/model_chat_v2_service_channel_read_response.go rename to rest/chat/v2/model_list_channel_response.go index d5cb1b35f..f4f37e92c 100644 --- a/rest/chat/v2/model_chat_v2_service_channel_read_response.go +++ b/rest/chat/v2/model_list_channel_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ChatV2ServiceChannelReadResponse struct for ChatV2ServiceChannelReadResponse -type ChatV2ServiceChannelReadResponse struct { +// ListChannelResponse struct for ListChannelResponse +type ListChannelResponse struct { Channels []ChatV2ServiceChannel `json:"Channels,omitempty"` - Meta ChatV2CredentialReadResponseMeta `json:"Meta,omitempty"` + Meta ListCredentialResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/chat/v2/model_chat_v2_service_channel_channel_webhook_read_response.go b/rest/chat/v2/model_list_channel_webhook_response.go similarity index 50% rename from rest/chat/v2/model_chat_v2_service_channel_channel_webhook_read_response.go rename to rest/chat/v2/model_list_channel_webhook_response.go index 709aad94d..7d1b063b1 100644 --- a/rest/chat/v2/model_chat_v2_service_channel_channel_webhook_read_response.go +++ b/rest/chat/v2/model_list_channel_webhook_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ChatV2ServiceChannelChannelWebhookReadResponse struct for ChatV2ServiceChannelChannelWebhookReadResponse -type ChatV2ServiceChannelChannelWebhookReadResponse struct { - Meta ChatV2CredentialReadResponseMeta `json:"Meta,omitempty"` +// ListChannelWebhookResponse struct for ListChannelWebhookResponse +type ListChannelWebhookResponse struct { + Meta ListCredentialResponseMeta `json:"Meta,omitempty"` Webhooks []ChatV2ServiceChannelChannelWebhook `json:"Webhooks,omitempty"` } diff --git a/rest/chat/v2/model_chat_v2_credential_read_response.go b/rest/chat/v2/model_list_credential_response.go similarity index 55% rename from rest/chat/v2/model_chat_v2_credential_read_response.go rename to rest/chat/v2/model_list_credential_response.go index 399b64534..1dc8434b5 100644 --- a/rest/chat/v2/model_chat_v2_credential_read_response.go +++ b/rest/chat/v2/model_list_credential_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ChatV2CredentialReadResponse struct for ChatV2CredentialReadResponse -type ChatV2CredentialReadResponse struct { +// ListCredentialResponse struct for ListCredentialResponse +type ListCredentialResponse struct { Credentials []ChatV2Credential `json:"Credentials,omitempty"` - Meta ChatV2CredentialReadResponseMeta `json:"Meta,omitempty"` + Meta ListCredentialResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/chat/v1/model_chat_v1_credential_read_response_meta.go b/rest/chat/v2/model_list_credential_response_meta.go similarity index 76% rename from rest/chat/v1/model_chat_v1_credential_read_response_meta.go rename to rest/chat/v2/model_list_credential_response_meta.go index 11c4678dc..eb79df196 100644 --- a/rest/chat/v1/model_chat_v1_credential_read_response_meta.go +++ b/rest/chat/v2/model_list_credential_response_meta.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ChatV1CredentialReadResponseMeta struct for ChatV1CredentialReadResponseMeta -type ChatV1CredentialReadResponseMeta struct { +// ListCredentialResponseMeta struct for ListCredentialResponseMeta +type ListCredentialResponseMeta struct { FirstPageUrl string `json:"FirstPageUrl,omitempty"` Key string `json:"Key,omitempty"` NextPageUrl string `json:"NextPageUrl,omitempty"` diff --git a/rest/chat/v2/model_chat_v2_service_channel_invite_read_response.go b/rest/chat/v2/model_list_invite_response.go similarity index 52% rename from rest/chat/v2/model_chat_v2_service_channel_invite_read_response.go rename to rest/chat/v2/model_list_invite_response.go index 230eafa0b..6b55ca8af 100644 --- a/rest/chat/v2/model_chat_v2_service_channel_invite_read_response.go +++ b/rest/chat/v2/model_list_invite_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ChatV2ServiceChannelInviteReadResponse struct for ChatV2ServiceChannelInviteReadResponse -type ChatV2ServiceChannelInviteReadResponse struct { +// ListInviteResponse struct for ListInviteResponse +type ListInviteResponse struct { Invites []ChatV2ServiceChannelInvite `json:"Invites,omitempty"` - Meta ChatV2CredentialReadResponseMeta `json:"Meta,omitempty"` + Meta ListCredentialResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/chat/v2/model_chat_v2_service_channel_member_read_response.go b/rest/chat/v2/model_list_member_response.go similarity index 52% rename from rest/chat/v2/model_chat_v2_service_channel_member_read_response.go rename to rest/chat/v2/model_list_member_response.go index faa70c2f0..e4a9a789c 100644 --- a/rest/chat/v2/model_chat_v2_service_channel_member_read_response.go +++ b/rest/chat/v2/model_list_member_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ChatV2ServiceChannelMemberReadResponse struct for ChatV2ServiceChannelMemberReadResponse -type ChatV2ServiceChannelMemberReadResponse struct { +// ListMemberResponse struct for ListMemberResponse +type ListMemberResponse struct { Members []ChatV2ServiceChannelMember `json:"Members,omitempty"` - Meta ChatV2CredentialReadResponseMeta `json:"Meta,omitempty"` + Meta ListCredentialResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/chat/v2/model_chat_v2_service_channel_message_read_response.go b/rest/chat/v2/model_list_message_response.go similarity index 52% rename from rest/chat/v2/model_chat_v2_service_channel_message_read_response.go rename to rest/chat/v2/model_list_message_response.go index 45275d636..8c49aedc6 100644 --- a/rest/chat/v2/model_chat_v2_service_channel_message_read_response.go +++ b/rest/chat/v2/model_list_message_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ChatV2ServiceChannelMessageReadResponse struct for ChatV2ServiceChannelMessageReadResponse -type ChatV2ServiceChannelMessageReadResponse struct { +// ListMessageResponse struct for ListMessageResponse +type ListMessageResponse struct { Messages []ChatV2ServiceChannelMessage `json:"Messages,omitempty"` - Meta ChatV2CredentialReadResponseMeta `json:"Meta,omitempty"` + Meta ListCredentialResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/chat/v2/model_chat_v2_service_role_read_response.go b/rest/chat/v2/model_list_role_response.go similarity index 53% rename from rest/chat/v2/model_chat_v2_service_role_read_response.go rename to rest/chat/v2/model_list_role_response.go index 4d31a5d3a..73e334b7e 100644 --- a/rest/chat/v2/model_chat_v2_service_role_read_response.go +++ b/rest/chat/v2/model_list_role_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ChatV2ServiceRoleReadResponse struct for ChatV2ServiceRoleReadResponse -type ChatV2ServiceRoleReadResponse struct { - Meta ChatV2CredentialReadResponseMeta `json:"Meta,omitempty"` +// ListRoleResponse struct for ListRoleResponse +type ListRoleResponse struct { + Meta ListCredentialResponseMeta `json:"Meta,omitempty"` Roles []ChatV2ServiceRole `json:"Roles,omitempty"` } diff --git a/rest/chat/v2/model_chat_v2_service_read_response.go b/rest/chat/v2/model_list_service_response.go similarity index 55% rename from rest/chat/v2/model_chat_v2_service_read_response.go rename to rest/chat/v2/model_list_service_response.go index 44815d4b2..950a0b694 100644 --- a/rest/chat/v2/model_chat_v2_service_read_response.go +++ b/rest/chat/v2/model_list_service_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ChatV2ServiceReadResponse struct for ChatV2ServiceReadResponse -type ChatV2ServiceReadResponse struct { - Meta ChatV2CredentialReadResponseMeta `json:"Meta,omitempty"` +// ListServiceResponse struct for ListServiceResponse +type ListServiceResponse struct { + Meta ListCredentialResponseMeta `json:"Meta,omitempty"` Services []ChatV2Service `json:"Services,omitempty"` } diff --git a/rest/chat/v2/model_chat_v2_service_user_user_binding_read_response.go b/rest/chat/v2/model_list_user_binding_response.go similarity index 51% rename from rest/chat/v2/model_chat_v2_service_user_user_binding_read_response.go rename to rest/chat/v2/model_list_user_binding_response.go index 879353583..fde09b028 100644 --- a/rest/chat/v2/model_chat_v2_service_user_user_binding_read_response.go +++ b/rest/chat/v2/model_list_user_binding_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ChatV2ServiceUserUserBindingReadResponse struct for ChatV2ServiceUserUserBindingReadResponse -type ChatV2ServiceUserUserBindingReadResponse struct { +// ListUserBindingResponse struct for ListUserBindingResponse +type ListUserBindingResponse struct { Bindings []ChatV2ServiceUserUserBinding `json:"Bindings,omitempty"` - Meta ChatV2CredentialReadResponseMeta `json:"Meta,omitempty"` + Meta ListCredentialResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/chat/v2/model_chat_v2_service_user_user_channel_read_response.go b/rest/chat/v2/model_list_user_channel_response.go similarity index 51% rename from rest/chat/v2/model_chat_v2_service_user_user_channel_read_response.go rename to rest/chat/v2/model_list_user_channel_response.go index 138e9ade9..15c1ccf93 100644 --- a/rest/chat/v2/model_chat_v2_service_user_user_channel_read_response.go +++ b/rest/chat/v2/model_list_user_channel_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ChatV2ServiceUserUserChannelReadResponse struct for ChatV2ServiceUserUserChannelReadResponse -type ChatV2ServiceUserUserChannelReadResponse struct { +// ListUserChannelResponse struct for ListUserChannelResponse +type ListUserChannelResponse struct { Channels []ChatV2ServiceUserUserChannel `json:"Channels,omitempty"` - Meta ChatV2CredentialReadResponseMeta `json:"Meta,omitempty"` + Meta ListCredentialResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/chat/v2/model_chat_v2_service_user_read_response.go b/rest/chat/v2/model_list_user_response.go similarity index 53% rename from rest/chat/v2/model_chat_v2_service_user_read_response.go rename to rest/chat/v2/model_list_user_response.go index 3e6308bee..033947408 100644 --- a/rest/chat/v2/model_chat_v2_service_user_read_response.go +++ b/rest/chat/v2/model_list_user_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ChatV2ServiceUserReadResponse struct for ChatV2ServiceUserReadResponse -type ChatV2ServiceUserReadResponse struct { - Meta ChatV2CredentialReadResponseMeta `json:"Meta,omitempty"` +// ListUserResponse struct for ListUserResponse +type ListUserResponse struct { + Meta ListCredentialResponseMeta `json:"Meta,omitempty"` Users []ChatV2ServiceUser `json:"Users,omitempty"` } diff --git a/rest/chat/v2/model_update_channel_request.go b/rest/chat/v2/model_update_channel_request.go index 798177f82..8daf7be60 100644 --- a/rest/chat/v2/model_update_channel_request.go +++ b/rest/chat/v2/model_update_channel_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v2/model_update_channel_webhook_request.go b/rest/chat/v2/model_update_channel_webhook_request.go index 6b183b360..8d32b904f 100644 --- a/rest/chat/v2/model_update_channel_webhook_request.go +++ b/rest/chat/v2/model_update_channel_webhook_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v2/model_update_credential_request.go b/rest/chat/v2/model_update_credential_request.go index bd7e60d2f..9d69f1f7d 100644 --- a/rest/chat/v2/model_update_credential_request.go +++ b/rest/chat/v2/model_update_credential_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v2/model_update_member_request.go b/rest/chat/v2/model_update_member_request.go index d090fa1b3..1a81ae932 100644 --- a/rest/chat/v2/model_update_member_request.go +++ b/rest/chat/v2/model_update_member_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v2/model_update_message_request.go b/rest/chat/v2/model_update_message_request.go index 6a6fed72b..221a315f0 100644 --- a/rest/chat/v2/model_update_message_request.go +++ b/rest/chat/v2/model_update_message_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v2/model_update_role_request.go b/rest/chat/v2/model_update_role_request.go index e5ee5dc1c..cac978e56 100644 --- a/rest/chat/v2/model_update_role_request.go +++ b/rest/chat/v2/model_update_role_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v2/model_update_service_request.go b/rest/chat/v2/model_update_service_request.go index 5b2e4a3d8..dcb81c1a8 100644 --- a/rest/chat/v2/model_update_service_request.go +++ b/rest/chat/v2/model_update_service_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v2/model_update_user_channel_request.go b/rest/chat/v2/model_update_user_channel_request.go index 6248307f6..f89c470c9 100644 --- a/rest/chat/v2/model_update_user_channel_request.go +++ b/rest/chat/v2/model_update_user_channel_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v2/model_update_user_request.go b/rest/chat/v2/model_update_user_request.go index 5d428cd08..fb84db7fc 100644 --- a/rest/chat/v2/model_update_user_request.go +++ b/rest/chat/v2/model_update_user_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/chat/v2/response.go b/rest/chat/v2/response.go index 180073775..d2790903e 100644 --- a/rest/chat/v2/response.go +++ b/rest/chat/v2/response.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/README.md b/rest/conversations/v1/README.md index 6e6385b0d..d5ec4c9fc 100644 --- a/rest/conversations/v1/README.md +++ b/rest/conversations/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 5.15.0 +- API version: 1.0.0 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) @@ -124,40 +124,22 @@ Class | Method | HTTP request | Description - [ConversationsV1Conversation](docs/ConversationsV1Conversation.md) - [ConversationsV1ConversationConversationMessage](docs/ConversationsV1ConversationConversationMessage.md) - [ConversationsV1ConversationConversationMessageConversationMessageReceipt](docs/ConversationsV1ConversationConversationMessageConversationMessageReceipt.md) - - [ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse](docs/ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse.md) - - [ConversationsV1ConversationConversationMessageReadResponse](docs/ConversationsV1ConversationConversationMessageReadResponse.md) - [ConversationsV1ConversationConversationParticipant](docs/ConversationsV1ConversationConversationParticipant.md) - - [ConversationsV1ConversationConversationParticipantReadResponse](docs/ConversationsV1ConversationConversationParticipantReadResponse.md) - [ConversationsV1ConversationConversationScopedWebhook](docs/ConversationsV1ConversationConversationScopedWebhook.md) - - [ConversationsV1ConversationConversationScopedWebhookReadResponse](docs/ConversationsV1ConversationConversationScopedWebhookReadResponse.md) - - [ConversationsV1ConversationReadResponse](docs/ConversationsV1ConversationReadResponse.md) - - [ConversationsV1ConversationReadResponseMeta](docs/ConversationsV1ConversationReadResponseMeta.md) - [ConversationsV1Credential](docs/ConversationsV1Credential.md) - - [ConversationsV1CredentialReadResponse](docs/ConversationsV1CredentialReadResponse.md) - [ConversationsV1Role](docs/ConversationsV1Role.md) - - [ConversationsV1RoleReadResponse](docs/ConversationsV1RoleReadResponse.md) - [ConversationsV1Service](docs/ConversationsV1Service.md) - - [ConversationsV1ServiceReadResponse](docs/ConversationsV1ServiceReadResponse.md) - [ConversationsV1ServiceServiceBinding](docs/ConversationsV1ServiceServiceBinding.md) - - [ConversationsV1ServiceServiceBindingReadResponse](docs/ConversationsV1ServiceServiceBindingReadResponse.md) - [ConversationsV1ServiceServiceConfiguration](docs/ConversationsV1ServiceServiceConfiguration.md) - [ConversationsV1ServiceServiceConfigurationServiceNotification](docs/ConversationsV1ServiceServiceConfigurationServiceNotification.md) - [ConversationsV1ServiceServiceConversation](docs/ConversationsV1ServiceServiceConversation.md) - - [ConversationsV1ServiceServiceConversationReadResponse](docs/ConversationsV1ServiceServiceConversationReadResponse.md) - [ConversationsV1ServiceServiceConversationServiceConversationMessage](docs/ConversationsV1ServiceServiceConversationServiceConversationMessage.md) - - [ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse](docs/ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse.md) - [ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt](docs/ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt.md) - - [ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse](docs/ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse.md) - [ConversationsV1ServiceServiceConversationServiceConversationParticipant](docs/ConversationsV1ServiceServiceConversationServiceConversationParticipant.md) - - [ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse](docs/ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse.md) - [ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook](docs/ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook.md) - - [ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse](docs/ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse.md) - [ConversationsV1ServiceServiceRole](docs/ConversationsV1ServiceServiceRole.md) - - [ConversationsV1ServiceServiceRoleReadResponse](docs/ConversationsV1ServiceServiceRoleReadResponse.md) - [ConversationsV1ServiceServiceUser](docs/ConversationsV1ServiceServiceUser.md) - - [ConversationsV1ServiceServiceUserReadResponse](docs/ConversationsV1ServiceServiceUserReadResponse.md) - [ConversationsV1User](docs/ConversationsV1User.md) - - [ConversationsV1UserReadResponse](docs/ConversationsV1UserReadResponse.md) - [CreateConversationMessageRequest](docs/CreateConversationMessageRequest.md) - [CreateConversationParticipantRequest](docs/CreateConversationParticipantRequest.md) - [CreateConversationRequest](docs/CreateConversationRequest.md) @@ -172,6 +154,24 @@ Class | Method | HTTP request | Description - [CreateServiceRoleRequest](docs/CreateServiceRoleRequest.md) - [CreateServiceUserRequest](docs/CreateServiceUserRequest.md) - [CreateUserRequest](docs/CreateUserRequest.md) + - [ListConversationMessageReceiptResponse](docs/ListConversationMessageReceiptResponse.md) + - [ListConversationMessageResponse](docs/ListConversationMessageResponse.md) + - [ListConversationParticipantResponse](docs/ListConversationParticipantResponse.md) + - [ListConversationResponse](docs/ListConversationResponse.md) + - [ListConversationResponseMeta](docs/ListConversationResponseMeta.md) + - [ListConversationScopedWebhookResponse](docs/ListConversationScopedWebhookResponse.md) + - [ListCredentialResponse](docs/ListCredentialResponse.md) + - [ListRoleResponse](docs/ListRoleResponse.md) + - [ListServiceBindingResponse](docs/ListServiceBindingResponse.md) + - [ListServiceConversationMessageReceiptResponse](docs/ListServiceConversationMessageReceiptResponse.md) + - [ListServiceConversationMessageResponse](docs/ListServiceConversationMessageResponse.md) + - [ListServiceConversationParticipantResponse](docs/ListServiceConversationParticipantResponse.md) + - [ListServiceConversationResponse](docs/ListServiceConversationResponse.md) + - [ListServiceConversationScopedWebhookResponse](docs/ListServiceConversationScopedWebhookResponse.md) + - [ListServiceResponse](docs/ListServiceResponse.md) + - [ListServiceRoleResponse](docs/ListServiceRoleResponse.md) + - [ListServiceUserResponse](docs/ListServiceUserResponse.md) + - [ListUserResponse](docs/ListUserResponse.md) - [UpdateConfigurationRequest](docs/UpdateConfigurationRequest.md) - [UpdateConfigurationWebhookRequest](docs/UpdateConfigurationWebhookRequest.md) - [UpdateConversationMessageRequest](docs/UpdateConversationMessageRequest.md) diff --git a/rest/conversations/v1/api_default.go b/rest/conversations/v1/api_default.go index 5c773ae25..801465be4 100644 --- a/rest/conversations/v1/api_default.go +++ b/rest/conversations/v1/api_default.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -27,21 +27,21 @@ type DefaultApiService struct { func NewDefaultApiService(client *twilio.Client) *DefaultApiService { return &DefaultApiService { client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + baseURL: fmt.Sprintf("https://conversations.twilio.com"), } } // CreateConversationParams Optional parameters for the method 'CreateConversation' type CreateConversationParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` - State *string `json:"State,omitempty"` - TimersClosed *string `json:"Timers.Closed,omitempty"` - TimersInactive *string `json:"Timers.Inactive,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` + State *string `json:"State,omitempty"` + TimersClosed *string `json:"Timers.Closed,omitempty"` + TimersInactive *string `json:"Timers.Inactive,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -115,13 +115,13 @@ func (c *DefaultApiService) CreateConversation(params *CreateConversationParams) } // CreateConversationMessageParams Optional parameters for the method 'CreateConversationMessage' type CreateConversationMessageParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - Author *string `json:"Author,omitempty"` - Body *string `json:"Body,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - MediaSid *string `json:"MediaSid,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + Author *string `json:"Author,omitempty"` + Body *string `json:"Body,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + MediaSid *string `json:"MediaSid,omitempty"` } /* @@ -185,15 +185,15 @@ func (c *DefaultApiService) CreateConversationMessage(ConversationSid string, pa } // CreateConversationParticipantParams Optional parameters for the method 'CreateConversationParticipant' type CreateConversationParticipantParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - Identity *string `json:"Identity,omitempty"` - MessagingBindingAddress *string `json:"MessagingBinding.Address,omitempty"` - MessagingBindingProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` - MessagingBindingProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + Identity *string `json:"Identity,omitempty"` + MessagingBindingAddress *string `json:"MessagingBinding.Address,omitempty"` + MessagingBindingProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` + MessagingBindingProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -265,13 +265,13 @@ func (c *DefaultApiService) CreateConversationParticipant(ConversationSid string } // CreateConversationScopedWebhookParams Optional parameters for the method 'CreateConversationScopedWebhook' type CreateConversationScopedWebhookParams struct { - ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` - ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` - ConfigurationMethod *string `json:"Configuration.Method,omitempty"` - ConfigurationReplayAfter *int32 `json:"Configuration.ReplayAfter,omitempty"` - ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` - ConfigurationUrl *string `json:"Configuration.Url,omitempty"` - Target *string `json:"Target,omitempty"` + ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` + ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` + ConfigurationMethod *string `json:"Configuration.Method,omitempty"` + ConfigurationReplayAfter *int32 `json:"Configuration.ReplayAfter,omitempty"` + ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` + ConfigurationUrl *string `json:"Configuration.Url,omitempty"` + Target *string `json:"Target,omitempty"` } /* @@ -335,13 +335,13 @@ func (c *DefaultApiService) CreateConversationScopedWebhook(ConversationSid stri } // CreateCredentialParams Optional parameters for the method 'CreateCredential' type CreateCredentialParams struct { - ApiKey *string `json:"ApiKey,omitempty"` - Certificate *string `json:"Certificate,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PrivateKey *string `json:"PrivateKey,omitempty"` - Sandbox *bool `json:"Sandbox,omitempty"` - Secret *string `json:"Secret,omitempty"` - Type *string `json:"Type,omitempty"` + ApiKey *string `json:"ApiKey,omitempty"` + Certificate *string `json:"Certificate,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PrivateKey *string `json:"PrivateKey,omitempty"` + Sandbox *bool `json:"Sandbox,omitempty"` + Secret *string `json:"Secret,omitempty"` + Type *string `json:"Type,omitempty"` } /* @@ -403,9 +403,9 @@ func (c *DefaultApiService) CreateCredential(params *CreateCredentialParams) (*C } // CreateRoleParams Optional parameters for the method 'CreateRole' type CreateRoleParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - Permission *[]string `json:"Permission,omitempty"` - Type *string `json:"Type,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Permission *[]string `json:"Permission,omitempty"` + Type *string `json:"Type,omitempty"` } /* @@ -451,7 +451,7 @@ func (c *DefaultApiService) CreateRole(params *CreateRoleParams) (*Conversations } // CreateServiceParams Optional parameters for the method 'CreateService' type CreateServiceParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -489,16 +489,16 @@ func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*Convers } // CreateServiceConversationParams Optional parameters for the method 'CreateServiceConversation' type CreateServiceConversationParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` - State *string `json:"State,omitempty"` - TimersClosed *string `json:"Timers.Closed,omitempty"` - TimersInactive *string `json:"Timers.Inactive,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` + State *string `json:"State,omitempty"` + TimersClosed *string `json:"Timers.Closed,omitempty"` + TimersInactive *string `json:"Timers.Inactive,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -574,13 +574,13 @@ func (c *DefaultApiService) CreateServiceConversation(ChatServiceSid string, par } // CreateServiceConversationMessageParams Optional parameters for the method 'CreateServiceConversationMessage' type CreateServiceConversationMessageParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - Author *string `json:"Author,omitempty"` - Body *string `json:"Body,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - MediaSid *string `json:"MediaSid,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + Author *string `json:"Author,omitempty"` + Body *string `json:"Body,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + MediaSid *string `json:"MediaSid,omitempty"` } /* @@ -646,15 +646,15 @@ func (c *DefaultApiService) CreateServiceConversationMessage(ChatServiceSid stri } // CreateServiceConversationParticipantParams Optional parameters for the method 'CreateServiceConversationParticipant' type CreateServiceConversationParticipantParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - Identity *string `json:"Identity,omitempty"` - MessagingBindingAddress *string `json:"MessagingBinding.Address,omitempty"` - MessagingBindingProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` - MessagingBindingProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + Identity *string `json:"Identity,omitempty"` + MessagingBindingAddress *string `json:"MessagingBinding.Address,omitempty"` + MessagingBindingProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` + MessagingBindingProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -728,13 +728,13 @@ func (c *DefaultApiService) CreateServiceConversationParticipant(ChatServiceSid } // CreateServiceConversationScopedWebhookParams Optional parameters for the method 'CreateServiceConversationScopedWebhook' type CreateServiceConversationScopedWebhookParams struct { - ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` - ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` - ConfigurationMethod *string `json:"Configuration.Method,omitempty"` - ConfigurationReplayAfter *int32 `json:"Configuration.ReplayAfter,omitempty"` - ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` - ConfigurationUrl *string `json:"Configuration.Url,omitempty"` - Target *string `json:"Target,omitempty"` + ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` + ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` + ConfigurationMethod *string `json:"Configuration.Method,omitempty"` + ConfigurationReplayAfter *int32 `json:"Configuration.ReplayAfter,omitempty"` + ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` + ConfigurationUrl *string `json:"Configuration.Url,omitempty"` + Target *string `json:"Target,omitempty"` } /* @@ -800,9 +800,9 @@ func (c *DefaultApiService) CreateServiceConversationScopedWebhook(ChatServiceSi } // CreateServiceRoleParams Optional parameters for the method 'CreateServiceRole' type CreateServiceRoleParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - Permission *[]string `json:"Permission,omitempty"` - Type *string `json:"Type,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Permission *[]string `json:"Permission,omitempty"` + Type *string `json:"Type,omitempty"` } /* @@ -850,11 +850,11 @@ func (c *DefaultApiService) CreateServiceRole(ChatServiceSid string, params *Cre } // CreateServiceUserParams Optional parameters for the method 'CreateServiceUser' type CreateServiceUserParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Identity *string `json:"Identity,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Identity *string `json:"Identity,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -910,11 +910,11 @@ func (c *DefaultApiService) CreateServiceUser(ChatServiceSid string, params *Cre } // CreateUserParams Optional parameters for the method 'CreateUser' type CreateUserParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Identity *string `json:"Identity,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Identity *string `json:"Identity,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -968,7 +968,7 @@ func (c *DefaultApiService) CreateUser(params *CreateUserParams) (*Conversations } // DeleteConversationParams Optional parameters for the method 'DeleteConversation' type DeleteConversationParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* @@ -1002,7 +1002,7 @@ func (c *DefaultApiService) DeleteConversation(Sid string, params *DeleteConvers } // DeleteConversationMessageParams Optional parameters for the method 'DeleteConversationMessage' type DeleteConversationMessageParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* @@ -1038,7 +1038,7 @@ func (c *DefaultApiService) DeleteConversationMessage(ConversationSid string, Si } // DeleteConversationParticipantParams Optional parameters for the method 'DeleteConversationParticipant' type DeleteConversationParticipantParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* @@ -1203,7 +1203,7 @@ func (c *DefaultApiService) DeleteServiceBinding(ChatServiceSid string, Sid stri } // DeleteServiceConversationParams Optional parameters for the method 'DeleteServiceConversation' type DeleteServiceConversationParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* @@ -1239,7 +1239,7 @@ func (c *DefaultApiService) DeleteServiceConversation(ChatServiceSid string, Sid } // DeleteServiceConversationMessageParams Optional parameters for the method 'DeleteServiceConversationMessage' type DeleteServiceConversationMessageParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* @@ -1277,7 +1277,7 @@ func (c *DefaultApiService) DeleteServiceConversationMessage(ChatServiceSid stri } // DeleteServiceConversationParticipantParams Optional parameters for the method 'DeleteServiceConversationParticipant' type DeleteServiceConversationParticipantParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* @@ -1371,7 +1371,7 @@ func (c *DefaultApiService) DeleteServiceRole(ChatServiceSid string, Sid string) } // DeleteServiceUserParams Optional parameters for the method 'DeleteServiceUser' type DeleteServiceUserParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* @@ -1407,7 +1407,7 @@ func (c *DefaultApiService) DeleteServiceUser(ChatServiceSid string, Sid string, } // DeleteUserParams Optional parameters for the method 'DeleteUser' type DeleteUserParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* @@ -2123,7 +2123,7 @@ func (c *DefaultApiService) FetchUser(Sid string) (*ConversationsV1User, error) } // ListConversationParams Optional parameters for the method 'ListConversation' type ListConversationParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2131,9 +2131,9 @@ ListConversation Method for ListConversation Retrieve a list of conversations in your account's default service * @param optional nil or *ListConversationOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ConversationsV1ConversationReadResponse +@return ListConversationResponse */ -func (c *DefaultApiService) ListConversation(params *ListConversationParams) (*ConversationsV1ConversationReadResponse, error) { +func (c *DefaultApiService) ListConversation(params *ListConversationParams) (*ListConversationResponse, error) { path := "/v1/Conversations" @@ -2152,7 +2152,7 @@ func (c *DefaultApiService) ListConversation(params *ListConversationParams) (*C defer resp.Body.Close() - ps := &ConversationsV1ConversationReadResponse{} + ps := &ListConversationResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -2161,7 +2161,7 @@ func (c *DefaultApiService) ListConversation(params *ListConversationParams) (*C } // ListConversationMessageParams Optional parameters for the method 'ListConversationMessage' type ListConversationMessageParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2170,9 +2170,9 @@ Retrieve a list of all messages in the conversation * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for messages. * @param optional nil or *ListConversationMessageOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ConversationsV1ConversationConversationMessageReadResponse +@return ListConversationMessageResponse */ -func (c *DefaultApiService) ListConversationMessage(ConversationSid string, params *ListConversationMessageParams) (*ConversationsV1ConversationConversationMessageReadResponse, error) { +func (c *DefaultApiService) ListConversationMessage(ConversationSid string, params *ListConversationMessageParams) (*ListConversationMessageResponse, error) { path := "/v1/Conversations/{ConversationSid}/Messages" path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) @@ -2192,7 +2192,7 @@ func (c *DefaultApiService) ListConversationMessage(ConversationSid string, para defer resp.Body.Close() - ps := &ConversationsV1ConversationConversationMessageReadResponse{} + ps := &ListConversationMessageResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -2201,7 +2201,7 @@ func (c *DefaultApiService) ListConversationMessage(ConversationSid string, para } // ListConversationMessageReceiptParams Optional parameters for the method 'ListConversationMessageReceipt' type ListConversationMessageReceiptParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2211,9 +2211,9 @@ Retrieve a list of all delivery and read receipts of the conversation message * @param MessageSid The SID of the message within a [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) the delivery receipt belongs to. * @param optional nil or *ListConversationMessageReceiptOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse +@return ListConversationMessageReceiptResponse */ -func (c *DefaultApiService) ListConversationMessageReceipt(ConversationSid string, MessageSid string, params *ListConversationMessageReceiptParams) (*ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse, error) { +func (c *DefaultApiService) ListConversationMessageReceipt(ConversationSid string, MessageSid string, params *ListConversationMessageReceiptParams) (*ListConversationMessageReceiptResponse, error) { path := "/v1/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts" path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) path = strings.Replace(path, "{"+"MessageSid"+"}", MessageSid, -1) @@ -2234,7 +2234,7 @@ func (c *DefaultApiService) ListConversationMessageReceipt(ConversationSid strin defer resp.Body.Close() - ps := &ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse{} + ps := &ListConversationMessageReceiptResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -2243,7 +2243,7 @@ func (c *DefaultApiService) ListConversationMessageReceipt(ConversationSid strin } // ListConversationParticipantParams Optional parameters for the method 'ListConversationParticipant' type ListConversationParticipantParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2252,9 +2252,9 @@ Retrieve a list of all participants of the conversation * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for participants. * @param optional nil or *ListConversationParticipantOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ConversationsV1ConversationConversationParticipantReadResponse +@return ListConversationParticipantResponse */ -func (c *DefaultApiService) ListConversationParticipant(ConversationSid string, params *ListConversationParticipantParams) (*ConversationsV1ConversationConversationParticipantReadResponse, error) { +func (c *DefaultApiService) ListConversationParticipant(ConversationSid string, params *ListConversationParticipantParams) (*ListConversationParticipantResponse, error) { path := "/v1/Conversations/{ConversationSid}/Participants" path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) @@ -2274,7 +2274,7 @@ func (c *DefaultApiService) ListConversationParticipant(ConversationSid string, defer resp.Body.Close() - ps := &ConversationsV1ConversationConversationParticipantReadResponse{} + ps := &ListConversationParticipantResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -2283,7 +2283,7 @@ func (c *DefaultApiService) ListConversationParticipant(ConversationSid string, } // ListConversationScopedWebhookParams Optional parameters for the method 'ListConversationScopedWebhook' type ListConversationScopedWebhookParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2292,9 +2292,9 @@ Retrieve a list of all webhooks scoped to the conversation * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. * @param optional nil or *ListConversationScopedWebhookOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ConversationsV1ConversationConversationScopedWebhookReadResponse +@return ListConversationScopedWebhookResponse */ -func (c *DefaultApiService) ListConversationScopedWebhook(ConversationSid string, params *ListConversationScopedWebhookParams) (*ConversationsV1ConversationConversationScopedWebhookReadResponse, error) { +func (c *DefaultApiService) ListConversationScopedWebhook(ConversationSid string, params *ListConversationScopedWebhookParams) (*ListConversationScopedWebhookResponse, error) { path := "/v1/Conversations/{ConversationSid}/Webhooks" path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) @@ -2314,7 +2314,7 @@ func (c *DefaultApiService) ListConversationScopedWebhook(ConversationSid string defer resp.Body.Close() - ps := &ConversationsV1ConversationConversationScopedWebhookReadResponse{} + ps := &ListConversationScopedWebhookResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -2323,7 +2323,7 @@ func (c *DefaultApiService) ListConversationScopedWebhook(ConversationSid string } // ListCredentialParams Optional parameters for the method 'ListCredential' type ListCredentialParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2331,9 +2331,9 @@ ListCredential Method for ListCredential Retrieve a list of all push notification credentials on your account * @param optional nil or *ListCredentialOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ConversationsV1CredentialReadResponse +@return ListCredentialResponse */ -func (c *DefaultApiService) ListCredential(params *ListCredentialParams) (*ConversationsV1CredentialReadResponse, error) { +func (c *DefaultApiService) ListCredential(params *ListCredentialParams) (*ListCredentialResponse, error) { path := "/v1/Credentials" @@ -2352,7 +2352,7 @@ func (c *DefaultApiService) ListCredential(params *ListCredentialParams) (*Conve defer resp.Body.Close() - ps := &ConversationsV1CredentialReadResponse{} + ps := &ListCredentialResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -2361,7 +2361,7 @@ func (c *DefaultApiService) ListCredential(params *ListCredentialParams) (*Conve } // ListRoleParams Optional parameters for the method 'ListRole' type ListRoleParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2369,9 +2369,9 @@ ListRole Method for ListRole Retrieve a list of all user roles in your account's default service * @param optional nil or *ListRoleOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ConversationsV1RoleReadResponse +@return ListRoleResponse */ -func (c *DefaultApiService) ListRole(params *ListRoleParams) (*ConversationsV1RoleReadResponse, error) { +func (c *DefaultApiService) ListRole(params *ListRoleParams) (*ListRoleResponse, error) { path := "/v1/Roles" @@ -2390,7 +2390,7 @@ func (c *DefaultApiService) ListRole(params *ListRoleParams) (*ConversationsV1Ro defer resp.Body.Close() - ps := &ConversationsV1RoleReadResponse{} + ps := &ListRoleResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -2399,7 +2399,7 @@ func (c *DefaultApiService) ListRole(params *ListRoleParams) (*ConversationsV1Ro } // ListServiceParams Optional parameters for the method 'ListService' type ListServiceParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2407,9 +2407,9 @@ ListService Method for ListService Retrieve a list of all conversation services on your account * @param optional nil or *ListServiceOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ConversationsV1ServiceReadResponse +@return ListServiceResponse */ -func (c *DefaultApiService) ListService(params *ListServiceParams) (*ConversationsV1ServiceReadResponse, error) { +func (c *DefaultApiService) ListService(params *ListServiceParams) (*ListServiceResponse, error) { path := "/v1/Services" @@ -2428,7 +2428,7 @@ func (c *DefaultApiService) ListService(params *ListServiceParams) (*Conversatio defer resp.Body.Close() - ps := &ConversationsV1ServiceReadResponse{} + ps := &ListServiceResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -2437,9 +2437,9 @@ func (c *DefaultApiService) ListService(params *ListServiceParams) (*Conversatio } // ListServiceBindingParams Optional parameters for the method 'ListServiceBinding' type ListServiceBindingParams struct { - BindingType *[]string `json:"BindingType,omitempty"` - Identity *[]string `json:"Identity,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + BindingType *[]string `json:"BindingType,omitempty"` + Identity *[]string `json:"Identity,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2450,9 +2450,9 @@ Retrieve a list of all push notification bindings in the conversation service * @param "BindingType" ([]string) - The push technology used by the Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See [push notification configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info. * @param "Identity" ([]string) - The identity of a [Conversation User](https://www.twilio.com/docs/conversations/api/user-resource) this binding belongs to. See [access tokens](https://www.twilio.com/docs/conversations/create-tokens) for more details. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ConversationsV1ServiceServiceBindingReadResponse +@return ListServiceBindingResponse */ -func (c *DefaultApiService) ListServiceBinding(ChatServiceSid string, params *ListServiceBindingParams) (*ConversationsV1ServiceServiceBindingReadResponse, error) { +func (c *DefaultApiService) ListServiceBinding(ChatServiceSid string, params *ListServiceBindingParams) (*ListServiceBindingResponse, error) { path := "/v1/Services/{ChatServiceSid}/Bindings" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) @@ -2478,7 +2478,7 @@ func (c *DefaultApiService) ListServiceBinding(ChatServiceSid string, params *Li defer resp.Body.Close() - ps := &ConversationsV1ServiceServiceBindingReadResponse{} + ps := &ListServiceBindingResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -2487,7 +2487,7 @@ func (c *DefaultApiService) ListServiceBinding(ChatServiceSid string, params *Li } // ListServiceConversationParams Optional parameters for the method 'ListServiceConversation' type ListServiceConversationParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2496,9 +2496,9 @@ Retrieve a list of conversations in your service * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) the Conversation resource is associated with. * @param optional nil or *ListServiceConversationOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ConversationsV1ServiceServiceConversationReadResponse +@return ListServiceConversationResponse */ -func (c *DefaultApiService) ListServiceConversation(ChatServiceSid string, params *ListServiceConversationParams) (*ConversationsV1ServiceServiceConversationReadResponse, error) { +func (c *DefaultApiService) ListServiceConversation(ChatServiceSid string, params *ListServiceConversationParams) (*ListServiceConversationResponse, error) { path := "/v1/Services/{ChatServiceSid}/Conversations" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) @@ -2518,7 +2518,7 @@ func (c *DefaultApiService) ListServiceConversation(ChatServiceSid string, param defer resp.Body.Close() - ps := &ConversationsV1ServiceServiceConversationReadResponse{} + ps := &ListServiceConversationResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -2527,7 +2527,7 @@ func (c *DefaultApiService) ListServiceConversation(ChatServiceSid string, param } // ListServiceConversationMessageParams Optional parameters for the method 'ListServiceConversationMessage' type ListServiceConversationMessageParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2537,9 +2537,9 @@ Retrieve a list of all messages in the conversation * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for messages. * @param optional nil or *ListServiceConversationMessageOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse +@return ListServiceConversationMessageResponse */ -func (c *DefaultApiService) ListServiceConversationMessage(ChatServiceSid string, ConversationSid string, params *ListServiceConversationMessageParams) (*ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse, error) { +func (c *DefaultApiService) ListServiceConversationMessage(ChatServiceSid string, ConversationSid string, params *ListServiceConversationMessageParams) (*ListServiceConversationMessageResponse, error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) @@ -2560,7 +2560,7 @@ func (c *DefaultApiService) ListServiceConversationMessage(ChatServiceSid string defer resp.Body.Close() - ps := &ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse{} + ps := &ListServiceConversationMessageResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -2569,7 +2569,7 @@ func (c *DefaultApiService) ListServiceConversationMessage(ChatServiceSid string } // ListServiceConversationMessageReceiptParams Optional parameters for the method 'ListServiceConversationMessageReceipt' type ListServiceConversationMessageReceiptParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2580,9 +2580,9 @@ Retrieve a list of all delivery and read receipts of the conversation message * @param MessageSid The SID of the message within a [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) the delivery receipt belongs to. * @param optional nil or *ListServiceConversationMessageReceiptOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse +@return ListServiceConversationMessageReceiptResponse */ -func (c *DefaultApiService) ListServiceConversationMessageReceipt(ChatServiceSid string, ConversationSid string, MessageSid string, params *ListServiceConversationMessageReceiptParams) (*ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse, error) { +func (c *DefaultApiService) ListServiceConversationMessageReceipt(ChatServiceSid string, ConversationSid string, MessageSid string, params *ListServiceConversationMessageReceiptParams) (*ListServiceConversationMessageReceiptResponse, error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Messages/{MessageSid}/Receipts" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) @@ -2604,7 +2604,7 @@ func (c *DefaultApiService) ListServiceConversationMessageReceipt(ChatServiceSid defer resp.Body.Close() - ps := &ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse{} + ps := &ListServiceConversationMessageReceiptResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -2613,7 +2613,7 @@ func (c *DefaultApiService) ListServiceConversationMessageReceipt(ChatServiceSid } // ListServiceConversationParticipantParams Optional parameters for the method 'ListServiceConversationParticipant' type ListServiceConversationParticipantParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2623,9 +2623,9 @@ Retrieve a list of all participants of the conversation * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for participants. * @param optional nil or *ListServiceConversationParticipantOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse +@return ListServiceConversationParticipantResponse */ -func (c *DefaultApiService) ListServiceConversationParticipant(ChatServiceSid string, ConversationSid string, params *ListServiceConversationParticipantParams) (*ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse, error) { +func (c *DefaultApiService) ListServiceConversationParticipant(ChatServiceSid string, ConversationSid string, params *ListServiceConversationParticipantParams) (*ListServiceConversationParticipantResponse, error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Participants" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) @@ -2646,7 +2646,7 @@ func (c *DefaultApiService) ListServiceConversationParticipant(ChatServiceSid st defer resp.Body.Close() - ps := &ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse{} + ps := &ListServiceConversationParticipantResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -2655,7 +2655,7 @@ func (c *DefaultApiService) ListServiceConversationParticipant(ChatServiceSid st } // ListServiceConversationScopedWebhookParams Optional parameters for the method 'ListServiceConversationScopedWebhook' type ListServiceConversationScopedWebhookParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2665,9 +2665,9 @@ Retrieve a list of all webhooks scoped to the conversation * @param ConversationSid The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook. * @param optional nil or *ListServiceConversationScopedWebhookOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse +@return ListServiceConversationScopedWebhookResponse */ -func (c *DefaultApiService) ListServiceConversationScopedWebhook(ChatServiceSid string, ConversationSid string, params *ListServiceConversationScopedWebhookParams) (*ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse, error) { +func (c *DefaultApiService) ListServiceConversationScopedWebhook(ChatServiceSid string, ConversationSid string, params *ListServiceConversationScopedWebhookParams) (*ListServiceConversationScopedWebhookResponse, error) { path := "/v1/Services/{ChatServiceSid}/Conversations/{ConversationSid}/Webhooks" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) path = strings.Replace(path, "{"+"ConversationSid"+"}", ConversationSid, -1) @@ -2688,7 +2688,7 @@ func (c *DefaultApiService) ListServiceConversationScopedWebhook(ChatServiceSid defer resp.Body.Close() - ps := &ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse{} + ps := &ListServiceConversationScopedWebhookResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -2697,7 +2697,7 @@ func (c *DefaultApiService) ListServiceConversationScopedWebhook(ChatServiceSid } // ListServiceRoleParams Optional parameters for the method 'ListServiceRole' type ListServiceRoleParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2706,9 +2706,9 @@ Retrieve a list of all user roles in your service * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to read the Role resources from. * @param optional nil or *ListServiceRoleOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ConversationsV1ServiceServiceRoleReadResponse +@return ListServiceRoleResponse */ -func (c *DefaultApiService) ListServiceRole(ChatServiceSid string, params *ListServiceRoleParams) (*ConversationsV1ServiceServiceRoleReadResponse, error) { +func (c *DefaultApiService) ListServiceRole(ChatServiceSid string, params *ListServiceRoleParams) (*ListServiceRoleResponse, error) { path := "/v1/Services/{ChatServiceSid}/Roles" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) @@ -2728,7 +2728,7 @@ func (c *DefaultApiService) ListServiceRole(ChatServiceSid string, params *ListS defer resp.Body.Close() - ps := &ConversationsV1ServiceServiceRoleReadResponse{} + ps := &ListServiceRoleResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -2737,7 +2737,7 @@ func (c *DefaultApiService) ListServiceRole(ChatServiceSid string, params *ListS } // ListServiceUserParams Optional parameters for the method 'ListServiceUser' type ListServiceUserParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2746,9 +2746,9 @@ Retrieve a list of all conversation users in your service * @param ChatServiceSid The SID of the [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to read the User resources from. * @param optional nil or *ListServiceUserOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ConversationsV1ServiceServiceUserReadResponse +@return ListServiceUserResponse */ -func (c *DefaultApiService) ListServiceUser(ChatServiceSid string, params *ListServiceUserParams) (*ConversationsV1ServiceServiceUserReadResponse, error) { +func (c *DefaultApiService) ListServiceUser(ChatServiceSid string, params *ListServiceUserParams) (*ListServiceUserResponse, error) { path := "/v1/Services/{ChatServiceSid}/Users" path = strings.Replace(path, "{"+"ChatServiceSid"+"}", ChatServiceSid, -1) @@ -2768,7 +2768,7 @@ func (c *DefaultApiService) ListServiceUser(ChatServiceSid string, params *ListS defer resp.Body.Close() - ps := &ConversationsV1ServiceServiceUserReadResponse{} + ps := &ListServiceUserResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -2777,7 +2777,7 @@ func (c *DefaultApiService) ListServiceUser(ChatServiceSid string, params *ListS } // ListUserParams Optional parameters for the method 'ListUser' type ListUserParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2785,9 +2785,9 @@ ListUser Method for ListUser Retrieve a list of all conversation users in your account's default service * @param optional nil or *ListUserOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ConversationsV1UserReadResponse +@return ListUserResponse */ -func (c *DefaultApiService) ListUser(params *ListUserParams) (*ConversationsV1UserReadResponse, error) { +func (c *DefaultApiService) ListUser(params *ListUserParams) (*ListUserResponse, error) { path := "/v1/Users" @@ -2806,7 +2806,7 @@ func (c *DefaultApiService) ListUser(params *ListUserParams) (*ConversationsV1Us defer resp.Body.Close() - ps := &ConversationsV1UserReadResponse{} + ps := &ListUserResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -2815,10 +2815,10 @@ func (c *DefaultApiService) ListUser(params *ListUserParams) (*ConversationsV1Us } // UpdateConfigurationParams Optional parameters for the method 'UpdateConfiguration' type UpdateConfigurationParams struct { - DefaultChatServiceSid *string `json:"DefaultChatServiceSid,omitempty"` - DefaultClosedTimer *string `json:"DefaultClosedTimer,omitempty"` - DefaultInactiveTimer *string `json:"DefaultInactiveTimer,omitempty"` - DefaultMessagingServiceSid *string `json:"DefaultMessagingServiceSid,omitempty"` + DefaultChatServiceSid *string `json:"DefaultChatServiceSid,omitempty"` + DefaultClosedTimer *string `json:"DefaultClosedTimer,omitempty"` + DefaultInactiveTimer *string `json:"DefaultInactiveTimer,omitempty"` + DefaultMessagingServiceSid *string `json:"DefaultMessagingServiceSid,omitempty"` } /* @@ -2868,11 +2868,11 @@ func (c *DefaultApiService) UpdateConfiguration(params *UpdateConfigurationParam } // UpdateConfigurationWebhookParams Optional parameters for the method 'UpdateConfigurationWebhook' type UpdateConfigurationWebhookParams struct { - Filters *[]string `json:"Filters,omitempty"` - Method *string `json:"Method,omitempty"` - PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"` - PreWebhookUrl *string `json:"PreWebhookUrl,omitempty"` - Target *string `json:"Target,omitempty"` + Filters *[]string `json:"Filters,omitempty"` + Method *string `json:"Method,omitempty"` + PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"` + PreWebhookUrl *string `json:"PreWebhookUrl,omitempty"` + Target *string `json:"Target,omitempty"` } /* @@ -2925,16 +2925,16 @@ func (c *DefaultApiService) UpdateConfigurationWebhook(params *UpdateConfigurati } // UpdateConversationParams Optional parameters for the method 'UpdateConversation' type UpdateConversationParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` - State *string `json:"State,omitempty"` - TimersClosed *string `json:"Timers.Closed,omitempty"` - TimersInactive *string `json:"Timers.Inactive,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` + State *string `json:"State,omitempty"` + TimersClosed *string `json:"Timers.Closed,omitempty"` + TimersInactive *string `json:"Timers.Inactive,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -3010,12 +3010,12 @@ func (c *DefaultApiService) UpdateConversation(Sid string, params *UpdateConvers } // UpdateConversationMessageParams Optional parameters for the method 'UpdateConversationMessage' type UpdateConversationMessageParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - Author *string `json:"Author,omitempty"` - Body *string `json:"Body,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + Author *string `json:"Author,omitempty"` + Body *string `json:"Body,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` } /* @@ -3077,16 +3077,16 @@ func (c *DefaultApiService) UpdateConversationMessage(ConversationSid string, Si } // UpdateConversationParticipantParams Optional parameters for the method 'UpdateConversationParticipant' type UpdateConversationParticipantParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - Identity *string `json:"Identity,omitempty"` - LastReadMessageIndex *int32 `json:"LastReadMessageIndex,omitempty"` - LastReadTimestamp *string `json:"LastReadTimestamp,omitempty"` - MessagingBindingProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` - MessagingBindingProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + Identity *string `json:"Identity,omitempty"` + LastReadMessageIndex *int32 `json:"LastReadMessageIndex,omitempty"` + LastReadTimestamp *string `json:"LastReadTimestamp,omitempty"` + MessagingBindingProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` + MessagingBindingProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -3164,11 +3164,11 @@ func (c *DefaultApiService) UpdateConversationParticipant(ConversationSid string } // UpdateConversationScopedWebhookParams Optional parameters for the method 'UpdateConversationScopedWebhook' type UpdateConversationScopedWebhookParams struct { - ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` - ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` - ConfigurationMethod *string `json:"Configuration.Method,omitempty"` - ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` - ConfigurationUrl *string `json:"Configuration.Url,omitempty"` + ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` + ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` + ConfigurationMethod *string `json:"Configuration.Method,omitempty"` + ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` + ConfigurationUrl *string `json:"Configuration.Url,omitempty"` } /* @@ -3226,13 +3226,13 @@ func (c *DefaultApiService) UpdateConversationScopedWebhook(ConversationSid stri } // UpdateCredentialParams Optional parameters for the method 'UpdateCredential' type UpdateCredentialParams struct { - ApiKey *string `json:"ApiKey,omitempty"` - Certificate *string `json:"Certificate,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PrivateKey *string `json:"PrivateKey,omitempty"` - Sandbox *bool `json:"Sandbox,omitempty"` - Secret *string `json:"Secret,omitempty"` - Type *string `json:"Type,omitempty"` + ApiKey *string `json:"ApiKey,omitempty"` + Certificate *string `json:"Certificate,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PrivateKey *string `json:"PrivateKey,omitempty"` + Sandbox *bool `json:"Sandbox,omitempty"` + Secret *string `json:"Secret,omitempty"` + Type *string `json:"Type,omitempty"` } /* @@ -3296,7 +3296,7 @@ func (c *DefaultApiService) UpdateCredential(Sid string, params *UpdateCredentia } // UpdateRoleParams Optional parameters for the method 'UpdateRole' type UpdateRoleParams struct { - Permission *[]string `json:"Permission,omitempty"` + Permission *[]string `json:"Permission,omitempty"` } /* @@ -3336,10 +3336,10 @@ func (c *DefaultApiService) UpdateRole(Sid string, params *UpdateRoleParams) (*C } // UpdateServiceConfigurationParams Optional parameters for the method 'UpdateServiceConfiguration' type UpdateServiceConfigurationParams struct { - DefaultChatServiceRoleSid *string `json:"DefaultChatServiceRoleSid,omitempty"` - DefaultConversationCreatorRoleSid *string `json:"DefaultConversationCreatorRoleSid,omitempty"` - DefaultConversationRoleSid *string `json:"DefaultConversationRoleSid,omitempty"` - ReachabilityEnabled *bool `json:"ReachabilityEnabled,omitempty"` + DefaultChatServiceRoleSid *string `json:"DefaultChatServiceRoleSid,omitempty"` + DefaultConversationCreatorRoleSid *string `json:"DefaultConversationCreatorRoleSid,omitempty"` + DefaultConversationRoleSid *string `json:"DefaultConversationRoleSid,omitempty"` + ReachabilityEnabled *bool `json:"ReachabilityEnabled,omitempty"` } /* @@ -3391,16 +3391,16 @@ func (c *DefaultApiService) UpdateServiceConfiguration(ChatServiceSid string, pa } // UpdateServiceConversationParams Optional parameters for the method 'UpdateServiceConversation' type UpdateServiceConversationParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` - State *string `json:"State,omitempty"` - TimersClosed *string `json:"Timers.Closed,omitempty"` - TimersInactive *string `json:"Timers.Inactive,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` + State *string `json:"State,omitempty"` + TimersClosed *string `json:"Timers.Closed,omitempty"` + TimersInactive *string `json:"Timers.Inactive,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -3478,12 +3478,12 @@ func (c *DefaultApiService) UpdateServiceConversation(ChatServiceSid string, Sid } // UpdateServiceConversationMessageParams Optional parameters for the method 'UpdateServiceConversationMessage' type UpdateServiceConversationMessageParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - Author *string `json:"Author,omitempty"` - Body *string `json:"Body,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + Author *string `json:"Author,omitempty"` + Body *string `json:"Body,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` } /* @@ -3547,16 +3547,16 @@ func (c *DefaultApiService) UpdateServiceConversationMessage(ChatServiceSid stri } // UpdateServiceConversationParticipantParams Optional parameters for the method 'UpdateServiceConversationParticipant' type UpdateServiceConversationParticipantParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - Identity *string `json:"Identity,omitempty"` - LastReadMessageIndex *int32 `json:"LastReadMessageIndex,omitempty"` - LastReadTimestamp *string `json:"LastReadTimestamp,omitempty"` - MessagingBindingProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` - MessagingBindingProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + Identity *string `json:"Identity,omitempty"` + LastReadMessageIndex *int32 `json:"LastReadMessageIndex,omitempty"` + LastReadTimestamp *string `json:"LastReadTimestamp,omitempty"` + MessagingBindingProjectedAddress *string `json:"MessagingBinding.ProjectedAddress,omitempty"` + MessagingBindingProxyAddress *string `json:"MessagingBinding.ProxyAddress,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -3636,11 +3636,11 @@ func (c *DefaultApiService) UpdateServiceConversationParticipant(ChatServiceSid } // UpdateServiceConversationScopedWebhookParams Optional parameters for the method 'UpdateServiceConversationScopedWebhook' type UpdateServiceConversationScopedWebhookParams struct { - ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` - ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` - ConfigurationMethod *string `json:"Configuration.Method,omitempty"` - ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` - ConfigurationUrl *string `json:"Configuration.Url,omitempty"` + ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` + ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` + ConfigurationMethod *string `json:"Configuration.Method,omitempty"` + ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` + ConfigurationUrl *string `json:"Configuration.Url,omitempty"` } /* @@ -3700,17 +3700,17 @@ func (c *DefaultApiService) UpdateServiceConversationScopedWebhook(ChatServiceSi } // UpdateServiceNotificationParams Optional parameters for the method 'UpdateServiceNotification' type UpdateServiceNotificationParams struct { - AddedToConversationEnabled *bool `json:"AddedToConversation.Enabled,omitempty"` - AddedToConversationSound *string `json:"AddedToConversation.Sound,omitempty"` - AddedToConversationTemplate *string `json:"AddedToConversation.Template,omitempty"` - LogEnabled *bool `json:"LogEnabled,omitempty"` - NewMessageBadgeCountEnabled *bool `json:"NewMessage.BadgeCountEnabled,omitempty"` - NewMessageEnabled *bool `json:"NewMessage.Enabled,omitempty"` - NewMessageSound *string `json:"NewMessage.Sound,omitempty"` - NewMessageTemplate *string `json:"NewMessage.Template,omitempty"` - RemovedFromConversationEnabled *bool `json:"RemovedFromConversation.Enabled,omitempty"` - RemovedFromConversationSound *string `json:"RemovedFromConversation.Sound,omitempty"` - RemovedFromConversationTemplate *string `json:"RemovedFromConversation.Template,omitempty"` + AddedToConversationEnabled *bool `json:"AddedToConversation.Enabled,omitempty"` + AddedToConversationSound *string `json:"AddedToConversation.Sound,omitempty"` + AddedToConversationTemplate *string `json:"AddedToConversation.Template,omitempty"` + LogEnabled *bool `json:"LogEnabled,omitempty"` + NewMessageBadgeCountEnabled *bool `json:"NewMessage.BadgeCountEnabled,omitempty"` + NewMessageEnabled *bool `json:"NewMessage.Enabled,omitempty"` + NewMessageSound *string `json:"NewMessage.Sound,omitempty"` + NewMessageTemplate *string `json:"NewMessage.Template,omitempty"` + RemovedFromConversationEnabled *bool `json:"RemovedFromConversation.Enabled,omitempty"` + RemovedFromConversationSound *string `json:"RemovedFromConversation.Sound,omitempty"` + RemovedFromConversationTemplate *string `json:"RemovedFromConversation.Template,omitempty"` } /* @@ -3790,7 +3790,7 @@ func (c *DefaultApiService) UpdateServiceNotification(ChatServiceSid string, par } // UpdateServiceRoleParams Optional parameters for the method 'UpdateServiceRole' type UpdateServiceRoleParams struct { - Permission *[]string `json:"Permission,omitempty"` + Permission *[]string `json:"Permission,omitempty"` } /* @@ -3832,10 +3832,10 @@ func (c *DefaultApiService) UpdateServiceRole(ChatServiceSid string, Sid string, } // UpdateServiceUserParams Optional parameters for the method 'UpdateServiceUser' type UpdateServiceUserParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -3889,10 +3889,10 @@ func (c *DefaultApiService) UpdateServiceUser(ChatServiceSid string, Sid string, } // UpdateUserParams Optional parameters for the method 'UpdateUser' type UpdateUserParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* diff --git a/rest/conversations/v1/docs/ConversationsV1ConversationReadResponseMeta.md b/rest/conversations/v1/docs/ConversationsV1ConversationReadResponseMeta.md deleted file mode 100644 index 9b73491d3..000000000 --- a/rest/conversations/v1/docs/ConversationsV1ConversationReadResponseMeta.md +++ /dev/null @@ -1,17 +0,0 @@ -# ConversationsV1ConversationReadResponseMeta - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FirstPageUrl** | **string** | | [optional] -**Key** | **string** | | [optional] -**NextPageUrl** | **string** | | [optional] -**Page** | **int32** | | [optional] -**PageSize** | **int32** | | [optional] -**PreviousPageUrl** | **string** | | [optional] -**Url** | **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/rest/conversations/v1/docs/DefaultApi.md b/rest/conversations/v1/docs/DefaultApi.md index 40aa0657a..563e93ba1 100644 --- a/rest/conversations/v1/docs/DefaultApi.md +++ b/rest/conversations/v1/docs/DefaultApi.md @@ -2136,7 +2136,7 @@ Name | Type | Description | Notes ## ListConversation -> ConversationsV1ConversationReadResponse ListConversation(ctx, optional) +> ListConversationResponse ListConversation(ctx, optional) @@ -2161,7 +2161,7 @@ Name | Type | Description | Notes ### Return type -[**ConversationsV1ConversationReadResponse**](conversations_v1_conversationReadResponse.md) +[**ListConversationResponse**](ListConversationResponse.md) ### Authorization @@ -2179,7 +2179,7 @@ Name | Type | Description | Notes ## ListConversationMessage -> ConversationsV1ConversationConversationMessageReadResponse ListConversationMessage(ctx, ConversationSid, optional) +> ListConversationMessageResponse ListConversationMessage(ctx, ConversationSid, optional) @@ -2206,7 +2206,7 @@ Name | Type | Description | Notes ### Return type -[**ConversationsV1ConversationConversationMessageReadResponse**](conversations_v1_conversation_conversation_messageReadResponse.md) +[**ListConversationMessageResponse**](ListConversationMessageResponse.md) ### Authorization @@ -2224,7 +2224,7 @@ Name | Type | Description | Notes ## ListConversationMessageReceipt -> ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse ListConversationMessageReceipt(ctx, ConversationSid, MessageSid, optional) +> ListConversationMessageReceiptResponse ListConversationMessageReceipt(ctx, ConversationSid, MessageSid, optional) @@ -2253,7 +2253,7 @@ Name | Type | Description | Notes ### Return type -[**ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse**](conversations_v1_conversation_conversation_message_conversation_message_receiptReadResponse.md) +[**ListConversationMessageReceiptResponse**](ListConversationMessageReceiptResponse.md) ### Authorization @@ -2271,7 +2271,7 @@ Name | Type | Description | Notes ## ListConversationParticipant -> ConversationsV1ConversationConversationParticipantReadResponse ListConversationParticipant(ctx, ConversationSid, optional) +> ListConversationParticipantResponse ListConversationParticipant(ctx, ConversationSid, optional) @@ -2298,7 +2298,7 @@ Name | Type | Description | Notes ### Return type -[**ConversationsV1ConversationConversationParticipantReadResponse**](conversations_v1_conversation_conversation_participantReadResponse.md) +[**ListConversationParticipantResponse**](ListConversationParticipantResponse.md) ### Authorization @@ -2316,7 +2316,7 @@ Name | Type | Description | Notes ## ListConversationScopedWebhook -> ConversationsV1ConversationConversationScopedWebhookReadResponse ListConversationScopedWebhook(ctx, ConversationSid, optional) +> ListConversationScopedWebhookResponse ListConversationScopedWebhook(ctx, ConversationSid, optional) @@ -2343,7 +2343,7 @@ Name | Type | Description | Notes ### Return type -[**ConversationsV1ConversationConversationScopedWebhookReadResponse**](conversations_v1_conversation_conversation_scoped_webhookReadResponse.md) +[**ListConversationScopedWebhookResponse**](ListConversationScopedWebhookResponse.md) ### Authorization @@ -2361,7 +2361,7 @@ Name | Type | Description | Notes ## ListCredential -> ConversationsV1CredentialReadResponse ListCredential(ctx, optional) +> ListCredentialResponse ListCredential(ctx, optional) @@ -2386,7 +2386,7 @@ Name | Type | Description | Notes ### Return type -[**ConversationsV1CredentialReadResponse**](conversations_v1_credentialReadResponse.md) +[**ListCredentialResponse**](ListCredentialResponse.md) ### Authorization @@ -2404,7 +2404,7 @@ Name | Type | Description | Notes ## ListRole -> ConversationsV1RoleReadResponse ListRole(ctx, optional) +> ListRoleResponse ListRole(ctx, optional) @@ -2429,7 +2429,7 @@ Name | Type | Description | Notes ### Return type -[**ConversationsV1RoleReadResponse**](conversations_v1_roleReadResponse.md) +[**ListRoleResponse**](ListRoleResponse.md) ### Authorization @@ -2447,7 +2447,7 @@ Name | Type | Description | Notes ## ListService -> ConversationsV1ServiceReadResponse ListService(ctx, optional) +> ListServiceResponse ListService(ctx, optional) @@ -2472,7 +2472,7 @@ Name | Type | Description | Notes ### Return type -[**ConversationsV1ServiceReadResponse**](conversations_v1_serviceReadResponse.md) +[**ListServiceResponse**](ListServiceResponse.md) ### Authorization @@ -2490,7 +2490,7 @@ Name | Type | Description | Notes ## ListServiceBinding -> ConversationsV1ServiceServiceBindingReadResponse ListServiceBinding(ctx, ChatServiceSid, optional) +> ListServiceBindingResponse ListServiceBinding(ctx, ChatServiceSid, optional) @@ -2519,7 +2519,7 @@ Name | Type | Description | Notes ### Return type -[**ConversationsV1ServiceServiceBindingReadResponse**](conversations_v1_service_service_bindingReadResponse.md) +[**ListServiceBindingResponse**](ListServiceBindingResponse.md) ### Authorization @@ -2537,7 +2537,7 @@ Name | Type | Description | Notes ## ListServiceConversation -> ConversationsV1ServiceServiceConversationReadResponse ListServiceConversation(ctx, ChatServiceSid, optional) +> ListServiceConversationResponse ListServiceConversation(ctx, ChatServiceSid, optional) @@ -2564,7 +2564,7 @@ Name | Type | Description | Notes ### Return type -[**ConversationsV1ServiceServiceConversationReadResponse**](conversations_v1_service_service_conversationReadResponse.md) +[**ListServiceConversationResponse**](ListServiceConversationResponse.md) ### Authorization @@ -2582,7 +2582,7 @@ Name | Type | Description | Notes ## ListServiceConversationMessage -> ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse ListServiceConversationMessage(ctx, ChatServiceSid, ConversationSid, optional) +> ListServiceConversationMessageResponse ListServiceConversationMessage(ctx, ChatServiceSid, ConversationSid, optional) @@ -2611,7 +2611,7 @@ Name | Type | Description | Notes ### Return type -[**ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse**](conversations_v1_service_service_conversation_service_conversation_messageReadResponse.md) +[**ListServiceConversationMessageResponse**](ListServiceConversationMessageResponse.md) ### Authorization @@ -2629,7 +2629,7 @@ Name | Type | Description | Notes ## ListServiceConversationMessageReceipt -> ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse ListServiceConversationMessageReceipt(ctx, ChatServiceSid, ConversationSid, MessageSid, optional) +> ListServiceConversationMessageReceiptResponse ListServiceConversationMessageReceipt(ctx, ChatServiceSid, ConversationSid, MessageSid, optional) @@ -2660,7 +2660,7 @@ Name | Type | Description | Notes ### Return type -[**ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse**](conversations_v1_service_service_conversation_service_conversation_message_service_conversation_message_receiptReadResponse.md) +[**ListServiceConversationMessageReceiptResponse**](ListServiceConversationMessageReceiptResponse.md) ### Authorization @@ -2678,7 +2678,7 @@ Name | Type | Description | Notes ## ListServiceConversationParticipant -> ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse ListServiceConversationParticipant(ctx, ChatServiceSid, ConversationSid, optional) +> ListServiceConversationParticipantResponse ListServiceConversationParticipant(ctx, ChatServiceSid, ConversationSid, optional) @@ -2707,7 +2707,7 @@ Name | Type | Description | Notes ### Return type -[**ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse**](conversations_v1_service_service_conversation_service_conversation_participantReadResponse.md) +[**ListServiceConversationParticipantResponse**](ListServiceConversationParticipantResponse.md) ### Authorization @@ -2725,7 +2725,7 @@ Name | Type | Description | Notes ## ListServiceConversationScopedWebhook -> ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse ListServiceConversationScopedWebhook(ctx, ChatServiceSid, ConversationSid, optional) +> ListServiceConversationScopedWebhookResponse ListServiceConversationScopedWebhook(ctx, ChatServiceSid, ConversationSid, optional) @@ -2754,7 +2754,7 @@ Name | Type | Description | Notes ### Return type -[**ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse**](conversations_v1_service_service_conversation_service_conversation_scoped_webhookReadResponse.md) +[**ListServiceConversationScopedWebhookResponse**](ListServiceConversationScopedWebhookResponse.md) ### Authorization @@ -2772,7 +2772,7 @@ Name | Type | Description | Notes ## ListServiceRole -> ConversationsV1ServiceServiceRoleReadResponse ListServiceRole(ctx, ChatServiceSid, optional) +> ListServiceRoleResponse ListServiceRole(ctx, ChatServiceSid, optional) @@ -2799,7 +2799,7 @@ Name | Type | Description | Notes ### Return type -[**ConversationsV1ServiceServiceRoleReadResponse**](conversations_v1_service_service_roleReadResponse.md) +[**ListServiceRoleResponse**](ListServiceRoleResponse.md) ### Authorization @@ -2817,7 +2817,7 @@ Name | Type | Description | Notes ## ListServiceUser -> ConversationsV1ServiceServiceUserReadResponse ListServiceUser(ctx, ChatServiceSid, optional) +> ListServiceUserResponse ListServiceUser(ctx, ChatServiceSid, optional) @@ -2844,7 +2844,7 @@ Name | Type | Description | Notes ### Return type -[**ConversationsV1ServiceServiceUserReadResponse**](conversations_v1_service_service_userReadResponse.md) +[**ListServiceUserResponse**](ListServiceUserResponse.md) ### Authorization @@ -2862,7 +2862,7 @@ Name | Type | Description | Notes ## ListUser -> ConversationsV1UserReadResponse ListUser(ctx, optional) +> ListUserResponse ListUser(ctx, optional) @@ -2887,7 +2887,7 @@ Name | Type | Description | Notes ### Return type -[**ConversationsV1UserReadResponse**](conversations_v1_userReadResponse.md) +[**ListUserResponse**](ListUserResponse.md) ### Authorization diff --git a/rest/conversations/v1/docs/ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse.md b/rest/conversations/v1/docs/ListConversationMessageReceiptResponse.md similarity index 69% rename from rest/conversations/v1/docs/ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse.md rename to rest/conversations/v1/docs/ListConversationMessageReceiptResponse.md index 4a4a84b67..b957d586b 100644 --- a/rest/conversations/v1/docs/ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse.md +++ b/rest/conversations/v1/docs/ListConversationMessageReceiptResponse.md @@ -1,11 +1,11 @@ -# ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse +# ListConversationMessageReceiptResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DeliveryReceipts** | [**[]ConversationsV1ConversationConversationMessageConversationMessageReceipt**](conversations.v1.conversation.conversation_message.conversation_message_receipt.md) | | [optional] -**Meta** | [**ConversationsV1ConversationReadResponseMeta**](conversations_v1_conversationReadResponse_meta.md) | | [optional] +**Meta** | [**ListConversationResponseMeta**](ListConversationResponse_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/rest/conversations/v1/docs/ConversationsV1ConversationConversationMessageReadResponse.md b/rest/conversations/v1/docs/ListConversationMessageResponse.md similarity index 68% rename from rest/conversations/v1/docs/ConversationsV1ConversationConversationMessageReadResponse.md rename to rest/conversations/v1/docs/ListConversationMessageResponse.md index ffa8bcfcf..5bfd9645c 100644 --- a/rest/conversations/v1/docs/ConversationsV1ConversationConversationMessageReadResponse.md +++ b/rest/conversations/v1/docs/ListConversationMessageResponse.md @@ -1,11 +1,11 @@ -# ConversationsV1ConversationConversationMessageReadResponse +# ListConversationMessageResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Messages** | [**[]ConversationsV1ConversationConversationMessage**](conversations.v1.conversation.conversation_message.md) | | [optional] -**Meta** | [**ConversationsV1ConversationReadResponseMeta**](conversations_v1_conversationReadResponse_meta.md) | | [optional] +**Meta** | [**ListConversationResponseMeta**](ListConversationResponse_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/rest/conversations/v1/docs/ConversationsV1ConversationConversationParticipantReadResponse.md b/rest/conversations/v1/docs/ListConversationParticipantResponse.md similarity index 68% rename from rest/conversations/v1/docs/ConversationsV1ConversationConversationParticipantReadResponse.md rename to rest/conversations/v1/docs/ListConversationParticipantResponse.md index 2078f5ebe..d0173fe9e 100644 --- a/rest/conversations/v1/docs/ConversationsV1ConversationConversationParticipantReadResponse.md +++ b/rest/conversations/v1/docs/ListConversationParticipantResponse.md @@ -1,10 +1,10 @@ -# ConversationsV1ConversationConversationParticipantReadResponse +# ListConversationParticipantResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**ConversationsV1ConversationReadResponseMeta**](conversations_v1_conversationReadResponse_meta.md) | | [optional] +**Meta** | [**ListConversationResponseMeta**](ListConversationResponse_meta.md) | | [optional] **Participants** | [**[]ConversationsV1ConversationConversationParticipant**](conversations.v1.conversation.conversation_participant.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/rest/conversations/v1/docs/ConversationsV1ConversationReadResponse.md b/rest/conversations/v1/docs/ListConversationResponse.md similarity index 69% rename from rest/conversations/v1/docs/ConversationsV1ConversationReadResponse.md rename to rest/conversations/v1/docs/ListConversationResponse.md index 5c9b377ba..c9c00b05a 100644 --- a/rest/conversations/v1/docs/ConversationsV1ConversationReadResponse.md +++ b/rest/conversations/v1/docs/ListConversationResponse.md @@ -1,11 +1,11 @@ -# ConversationsV1ConversationReadResponse +# ListConversationResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Conversations** | [**[]ConversationsV1Conversation**](conversations.v1.conversation.md) | | [optional] -**Meta** | [**ConversationsV1ConversationReadResponseMeta**](conversations_v1_conversationReadResponse_meta.md) | | [optional] +**Meta** | [**ListConversationResponseMeta**](ListConversationResponse_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/rest/conversations/v1/docs/ListConversationResponseMeta.md b/rest/conversations/v1/docs/ListConversationResponseMeta.md new file mode 100644 index 000000000..0fc77478d --- /dev/null +++ b/rest/conversations/v1/docs/ListConversationResponseMeta.md @@ -0,0 +1,17 @@ +# ListConversationResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/conversations/v1/docs/ConversationsV1ConversationConversationScopedWebhookReadResponse.md b/rest/conversations/v1/docs/ListConversationScopedWebhookResponse.md similarity index 68% rename from rest/conversations/v1/docs/ConversationsV1ConversationConversationScopedWebhookReadResponse.md rename to rest/conversations/v1/docs/ListConversationScopedWebhookResponse.md index 595701d45..a0302d098 100644 --- a/rest/conversations/v1/docs/ConversationsV1ConversationConversationScopedWebhookReadResponse.md +++ b/rest/conversations/v1/docs/ListConversationScopedWebhookResponse.md @@ -1,10 +1,10 @@ -# ConversationsV1ConversationConversationScopedWebhookReadResponse +# ListConversationScopedWebhookResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**ConversationsV1ConversationReadResponseMeta**](conversations_v1_conversationReadResponse_meta.md) | | [optional] +**Meta** | [**ListConversationResponseMeta**](ListConversationResponse_meta.md) | | [optional] **Webhooks** | [**[]ConversationsV1ConversationConversationScopedWebhook**](conversations.v1.conversation.conversation_scoped_webhook.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/rest/conversations/v1/docs/ConversationsV1CredentialReadResponse.md b/rest/conversations/v1/docs/ListCredentialResponse.md similarity index 69% rename from rest/conversations/v1/docs/ConversationsV1CredentialReadResponse.md rename to rest/conversations/v1/docs/ListCredentialResponse.md index 4a83e37c2..c9ab73fb3 100644 --- a/rest/conversations/v1/docs/ConversationsV1CredentialReadResponse.md +++ b/rest/conversations/v1/docs/ListCredentialResponse.md @@ -1,11 +1,11 @@ -# ConversationsV1CredentialReadResponse +# ListCredentialResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Credentials** | [**[]ConversationsV1Credential**](conversations.v1.credential.md) | | [optional] -**Meta** | [**ConversationsV1ConversationReadResponseMeta**](conversations_v1_conversationReadResponse_meta.md) | | [optional] +**Meta** | [**ListConversationResponseMeta**](ListConversationResponse_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/rest/conversations/v1/docs/ConversationsV1RoleReadResponse.md b/rest/conversations/v1/docs/ListRoleResponse.md similarity index 68% rename from rest/conversations/v1/docs/ConversationsV1RoleReadResponse.md rename to rest/conversations/v1/docs/ListRoleResponse.md index c51e646c1..6a47ca9a4 100644 --- a/rest/conversations/v1/docs/ConversationsV1RoleReadResponse.md +++ b/rest/conversations/v1/docs/ListRoleResponse.md @@ -1,10 +1,10 @@ -# ConversationsV1RoleReadResponse +# ListRoleResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**ConversationsV1ConversationReadResponseMeta**](conversations_v1_conversationReadResponse_meta.md) | | [optional] +**Meta** | [**ListConversationResponseMeta**](ListConversationResponse_meta.md) | | [optional] **Roles** | [**[]ConversationsV1Role**](conversations.v1.role.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/rest/conversations/v1/docs/ConversationsV1ServiceServiceBindingReadResponse.md b/rest/conversations/v1/docs/ListServiceBindingResponse.md similarity index 68% rename from rest/conversations/v1/docs/ConversationsV1ServiceServiceBindingReadResponse.md rename to rest/conversations/v1/docs/ListServiceBindingResponse.md index 65da241f7..b47d343d1 100644 --- a/rest/conversations/v1/docs/ConversationsV1ServiceServiceBindingReadResponse.md +++ b/rest/conversations/v1/docs/ListServiceBindingResponse.md @@ -1,11 +1,11 @@ -# ConversationsV1ServiceServiceBindingReadResponse +# ListServiceBindingResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Bindings** | [**[]ConversationsV1ServiceServiceBinding**](conversations.v1.service.service_binding.md) | | [optional] -**Meta** | [**ConversationsV1ConversationReadResponseMeta**](conversations_v1_conversationReadResponse_meta.md) | | [optional] +**Meta** | [**ListConversationResponseMeta**](ListConversationResponse_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/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse.md b/rest/conversations/v1/docs/ListServiceConversationMessageReceiptResponse.md similarity index 68% rename from rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse.md rename to rest/conversations/v1/docs/ListServiceConversationMessageReceiptResponse.md index 02f938062..a83c72e18 100644 --- a/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse.md +++ b/rest/conversations/v1/docs/ListServiceConversationMessageReceiptResponse.md @@ -1,11 +1,11 @@ -# ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse +# ListServiceConversationMessageReceiptResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DeliveryReceipts** | [**[]ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt**](conversations.v1.service.service_conversation.service_conversation_message.service_conversation_message_receipt.md) | | [optional] -**Meta** | [**ConversationsV1ConversationReadResponseMeta**](conversations_v1_conversationReadResponse_meta.md) | | [optional] +**Meta** | [**ListConversationResponseMeta**](ListConversationResponse_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/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse.md b/rest/conversations/v1/docs/ListServiceConversationMessageResponse.md similarity index 68% rename from rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse.md rename to rest/conversations/v1/docs/ListServiceConversationMessageResponse.md index 0cae99174..8239b9a1b 100644 --- a/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse.md +++ b/rest/conversations/v1/docs/ListServiceConversationMessageResponse.md @@ -1,11 +1,11 @@ -# ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse +# ListServiceConversationMessageResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Messages** | [**[]ConversationsV1ServiceServiceConversationServiceConversationMessage**](conversations.v1.service.service_conversation.service_conversation_message.md) | | [optional] -**Meta** | [**ConversationsV1ConversationReadResponseMeta**](conversations_v1_conversationReadResponse_meta.md) | | [optional] +**Meta** | [**ListConversationResponseMeta**](ListConversationResponse_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/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse.md b/rest/conversations/v1/docs/ListServiceConversationParticipantResponse.md similarity index 68% rename from rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse.md rename to rest/conversations/v1/docs/ListServiceConversationParticipantResponse.md index a8e308e7d..cd913710d 100644 --- a/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse.md +++ b/rest/conversations/v1/docs/ListServiceConversationParticipantResponse.md @@ -1,10 +1,10 @@ -# ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse +# ListServiceConversationParticipantResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**ConversationsV1ConversationReadResponseMeta**](conversations_v1_conversationReadResponse_meta.md) | | [optional] +**Meta** | [**ListConversationResponseMeta**](ListConversationResponse_meta.md) | | [optional] **Participants** | [**[]ConversationsV1ServiceServiceConversationServiceConversationParticipant**](conversations.v1.service.service_conversation.service_conversation_participant.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/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationReadResponse.md b/rest/conversations/v1/docs/ListServiceConversationResponse.md similarity index 69% rename from rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationReadResponse.md rename to rest/conversations/v1/docs/ListServiceConversationResponse.md index 476c98de0..24a38e925 100644 --- a/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationReadResponse.md +++ b/rest/conversations/v1/docs/ListServiceConversationResponse.md @@ -1,11 +1,11 @@ -# ConversationsV1ServiceServiceConversationReadResponse +# ListServiceConversationResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Conversations** | [**[]ConversationsV1ServiceServiceConversation**](conversations.v1.service.service_conversation.md) | | [optional] -**Meta** | [**ConversationsV1ConversationReadResponseMeta**](conversations_v1_conversationReadResponse_meta.md) | | [optional] +**Meta** | [**ListConversationResponseMeta**](ListConversationResponse_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/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse.md b/rest/conversations/v1/docs/ListServiceConversationScopedWebhookResponse.md similarity index 68% rename from rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse.md rename to rest/conversations/v1/docs/ListServiceConversationScopedWebhookResponse.md index 1b918b1c1..67e4e2280 100644 --- a/rest/conversations/v1/docs/ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse.md +++ b/rest/conversations/v1/docs/ListServiceConversationScopedWebhookResponse.md @@ -1,10 +1,10 @@ -# ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse +# ListServiceConversationScopedWebhookResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**ConversationsV1ConversationReadResponseMeta**](conversations_v1_conversationReadResponse_meta.md) | | [optional] +**Meta** | [**ListConversationResponseMeta**](ListConversationResponse_meta.md) | | [optional] **Webhooks** | [**[]ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook**](conversations.v1.service.service_conversation.service_conversation_scoped_webhook.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/rest/conversations/v1/docs/ConversationsV1ServiceReadResponse.md b/rest/conversations/v1/docs/ListServiceResponse.md similarity index 68% rename from rest/conversations/v1/docs/ConversationsV1ServiceReadResponse.md rename to rest/conversations/v1/docs/ListServiceResponse.md index 54d521615..ea759bf84 100644 --- a/rest/conversations/v1/docs/ConversationsV1ServiceReadResponse.md +++ b/rest/conversations/v1/docs/ListServiceResponse.md @@ -1,10 +1,10 @@ -# ConversationsV1ServiceReadResponse +# ListServiceResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**ConversationsV1ConversationReadResponseMeta**](conversations_v1_conversationReadResponse_meta.md) | | [optional] +**Meta** | [**ListConversationResponseMeta**](ListConversationResponse_meta.md) | | [optional] **Services** | [**[]ConversationsV1Service**](conversations.v1.service.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/rest/conversations/v1/docs/ConversationsV1ServiceServiceRoleReadResponse.md b/rest/conversations/v1/docs/ListServiceRoleResponse.md similarity index 68% rename from rest/conversations/v1/docs/ConversationsV1ServiceServiceRoleReadResponse.md rename to rest/conversations/v1/docs/ListServiceRoleResponse.md index a19495aed..fc4629ca5 100644 --- a/rest/conversations/v1/docs/ConversationsV1ServiceServiceRoleReadResponse.md +++ b/rest/conversations/v1/docs/ListServiceRoleResponse.md @@ -1,10 +1,10 @@ -# ConversationsV1ServiceServiceRoleReadResponse +# ListServiceRoleResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**ConversationsV1ConversationReadResponseMeta**](conversations_v1_conversationReadResponse_meta.md) | | [optional] +**Meta** | [**ListConversationResponseMeta**](ListConversationResponse_meta.md) | | [optional] **Roles** | [**[]ConversationsV1ServiceServiceRole**](conversations.v1.service.service_role.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/rest/conversations/v1/docs/ConversationsV1ServiceServiceUserReadResponse.md b/rest/conversations/v1/docs/ListServiceUserResponse.md similarity index 68% rename from rest/conversations/v1/docs/ConversationsV1ServiceServiceUserReadResponse.md rename to rest/conversations/v1/docs/ListServiceUserResponse.md index 623ce2f7e..bc0a81830 100644 --- a/rest/conversations/v1/docs/ConversationsV1ServiceServiceUserReadResponse.md +++ b/rest/conversations/v1/docs/ListServiceUserResponse.md @@ -1,10 +1,10 @@ -# ConversationsV1ServiceServiceUserReadResponse +# ListServiceUserResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**ConversationsV1ConversationReadResponseMeta**](conversations_v1_conversationReadResponse_meta.md) | | [optional] +**Meta** | [**ListConversationResponseMeta**](ListConversationResponse_meta.md) | | [optional] **Users** | [**[]ConversationsV1ServiceServiceUser**](conversations.v1.service.service_user.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/rest/conversations/v1/docs/ConversationsV1UserReadResponse.md b/rest/conversations/v1/docs/ListUserResponse.md similarity index 68% rename from rest/conversations/v1/docs/ConversationsV1UserReadResponse.md rename to rest/conversations/v1/docs/ListUserResponse.md index db4b77315..f90a6a491 100644 --- a/rest/conversations/v1/docs/ConversationsV1UserReadResponse.md +++ b/rest/conversations/v1/docs/ListUserResponse.md @@ -1,10 +1,10 @@ -# ConversationsV1UserReadResponse +# ListUserResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**ConversationsV1ConversationReadResponseMeta**](conversations_v1_conversationReadResponse_meta.md) | | [optional] +**Meta** | [**ListConversationResponseMeta**](ListConversationResponse_meta.md) | | [optional] **Users** | [**[]ConversationsV1User**](conversations.v1.user.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/rest/conversations/v1/model_conversations_v1_configuration.go b/rest/conversations/v1/model_conversations_v1_configuration.go index 3e4dc2b9d..6e6b3d5c1 100644 --- a/rest/conversations/v1/model_conversations_v1_configuration.go +++ b/rest/conversations/v1/model_conversations_v1_configuration.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_conversations_v1_configuration_configuration_webhook.go b/rest/conversations/v1/model_conversations_v1_configuration_configuration_webhook.go index dd0dc2282..bcc342b9e 100644 --- a/rest/conversations/v1/model_conversations_v1_configuration_configuration_webhook.go +++ b/rest/conversations/v1/model_conversations_v1_configuration_configuration_webhook.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_conversations_v1_conversation.go b/rest/conversations/v1/model_conversations_v1_conversation.go index f86e1ffa8..7b880a5ba 100644 --- a/rest/conversations/v1/model_conversations_v1_conversation.go +++ b/rest/conversations/v1/model_conversations_v1_conversation.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_conversations_v1_conversation_conversation_message.go b/rest/conversations/v1/model_conversations_v1_conversation_conversation_message.go index e7fd61260..122962d18 100644 --- a/rest/conversations/v1/model_conversations_v1_conversation_conversation_message.go +++ b/rest/conversations/v1/model_conversations_v1_conversation_conversation_message.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_conversations_v1_conversation_conversation_message_conversation_message_receipt.go b/rest/conversations/v1/model_conversations_v1_conversation_conversation_message_conversation_message_receipt.go index 96c77f71f..bdcc235d3 100644 --- a/rest/conversations/v1/model_conversations_v1_conversation_conversation_message_conversation_message_receipt.go +++ b/rest/conversations/v1/model_conversations_v1_conversation_conversation_message_conversation_message_receipt.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_conversations_v1_conversation_conversation_message_conversation_message_receipt_read_response.go b/rest/conversations/v1/model_conversations_v1_conversation_conversation_message_conversation_message_receipt_read_response.go deleted file mode 100644 index ace621737..000000000 --- a/rest/conversations/v1/model_conversations_v1_conversation_conversation_message_conversation_message_receipt_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Conversations - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse struct for ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse -type ConversationsV1ConversationConversationMessageConversationMessageReceiptReadResponse struct { - DeliveryReceipts []ConversationsV1ConversationConversationMessageConversationMessageReceipt `json:"DeliveryReceipts,omitempty"` - Meta ConversationsV1ConversationReadResponseMeta `json:"Meta,omitempty"` -} diff --git a/rest/conversations/v1/model_conversations_v1_conversation_conversation_message_read_response.go b/rest/conversations/v1/model_conversations_v1_conversation_conversation_message_read_response.go deleted file mode 100644 index af1053bd8..000000000 --- a/rest/conversations/v1/model_conversations_v1_conversation_conversation_message_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Conversations - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// ConversationsV1ConversationConversationMessageReadResponse struct for ConversationsV1ConversationConversationMessageReadResponse -type ConversationsV1ConversationConversationMessageReadResponse struct { - Messages []ConversationsV1ConversationConversationMessage `json:"Messages,omitempty"` - Meta ConversationsV1ConversationReadResponseMeta `json:"Meta,omitempty"` -} diff --git a/rest/conversations/v1/model_conversations_v1_conversation_conversation_participant.go b/rest/conversations/v1/model_conversations_v1_conversation_conversation_participant.go index 2ee39a7e6..d2d101a4e 100644 --- a/rest/conversations/v1/model_conversations_v1_conversation_conversation_participant.go +++ b/rest/conversations/v1/model_conversations_v1_conversation_conversation_participant.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_conversations_v1_conversation_conversation_participant_read_response.go b/rest/conversations/v1/model_conversations_v1_conversation_conversation_participant_read_response.go deleted file mode 100644 index a1beae9b6..000000000 --- a/rest/conversations/v1/model_conversations_v1_conversation_conversation_participant_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Conversations - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// ConversationsV1ConversationConversationParticipantReadResponse struct for ConversationsV1ConversationConversationParticipantReadResponse -type ConversationsV1ConversationConversationParticipantReadResponse struct { - Meta ConversationsV1ConversationReadResponseMeta `json:"Meta,omitempty"` - Participants []ConversationsV1ConversationConversationParticipant `json:"Participants,omitempty"` -} diff --git a/rest/conversations/v1/model_conversations_v1_conversation_conversation_scoped_webhook.go b/rest/conversations/v1/model_conversations_v1_conversation_conversation_scoped_webhook.go index 3819901e6..a1e5406a7 100644 --- a/rest/conversations/v1/model_conversations_v1_conversation_conversation_scoped_webhook.go +++ b/rest/conversations/v1/model_conversations_v1_conversation_conversation_scoped_webhook.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_conversations_v1_conversation_conversation_scoped_webhook_read_response.go b/rest/conversations/v1/model_conversations_v1_conversation_conversation_scoped_webhook_read_response.go deleted file mode 100644 index 6e666bc52..000000000 --- a/rest/conversations/v1/model_conversations_v1_conversation_conversation_scoped_webhook_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Conversations - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// ConversationsV1ConversationConversationScopedWebhookReadResponse struct for ConversationsV1ConversationConversationScopedWebhookReadResponse -type ConversationsV1ConversationConversationScopedWebhookReadResponse struct { - Meta ConversationsV1ConversationReadResponseMeta `json:"Meta,omitempty"` - Webhooks []ConversationsV1ConversationConversationScopedWebhook `json:"Webhooks,omitempty"` -} diff --git a/rest/conversations/v1/model_conversations_v1_conversation_read_response_meta.go b/rest/conversations/v1/model_conversations_v1_conversation_read_response_meta.go deleted file mode 100644 index f5382c1ab..000000000 --- a/rest/conversations/v1/model_conversations_v1_conversation_read_response_meta.go +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Twilio - Conversations - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// ConversationsV1ConversationReadResponseMeta struct for ConversationsV1ConversationReadResponseMeta -type ConversationsV1ConversationReadResponseMeta struct { - FirstPageUrl string `json:"FirstPageUrl,omitempty"` - Key string `json:"Key,omitempty"` - NextPageUrl string `json:"NextPageUrl,omitempty"` - Page int32 `json:"Page,omitempty"` - PageSize int32 `json:"PageSize,omitempty"` - PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` - Url string `json:"Url,omitempty"` -} diff --git a/rest/conversations/v1/model_conversations_v1_credential.go b/rest/conversations/v1/model_conversations_v1_credential.go index ef05baf76..2ca051b33 100644 --- a/rest/conversations/v1/model_conversations_v1_credential.go +++ b/rest/conversations/v1/model_conversations_v1_credential.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_conversations_v1_role.go b/rest/conversations/v1/model_conversations_v1_role.go index bc37db2e8..b2c863235 100644 --- a/rest/conversations/v1/model_conversations_v1_role.go +++ b/rest/conversations/v1/model_conversations_v1_role.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_conversations_v1_service.go b/rest/conversations/v1/model_conversations_v1_service.go index 49a8ca8ec..ace6e896c 100644 --- a/rest/conversations/v1/model_conversations_v1_service.go +++ b/rest/conversations/v1/model_conversations_v1_service.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_conversations_v1_service_service_binding.go b/rest/conversations/v1/model_conversations_v1_service_service_binding.go index 9adce4eca..5a7615ee6 100644 --- a/rest/conversations/v1/model_conversations_v1_service_service_binding.go +++ b/rest/conversations/v1/model_conversations_v1_service_service_binding.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_conversations_v1_service_service_configuration.go b/rest/conversations/v1/model_conversations_v1_service_service_configuration.go index 64ea66106..29e3d8e1b 100644 --- a/rest/conversations/v1/model_conversations_v1_service_service_configuration.go +++ b/rest/conversations/v1/model_conversations_v1_service_service_configuration.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_conversations_v1_service_service_configuration_service_notification.go b/rest/conversations/v1/model_conversations_v1_service_service_configuration_service_notification.go index 6a846ed1c..7a6f6b0ff 100644 --- a/rest/conversations/v1/model_conversations_v1_service_service_configuration_service_notification.go +++ b/rest/conversations/v1/model_conversations_v1_service_service_configuration_service_notification.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_conversations_v1_service_service_conversation.go b/rest/conversations/v1/model_conversations_v1_service_service_conversation.go index f365813c0..8e395dccc 100644 --- a/rest/conversations/v1/model_conversations_v1_service_service_conversation.go +++ b/rest/conversations/v1/model_conversations_v1_service_service_conversation.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message.go b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message.go index 60daa3360..e37854341 100644 --- a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message.go +++ b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message_read_response.go b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message_read_response.go deleted file mode 100644 index e078314dc..000000000 --- a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Conversations - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse struct for ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse -type ConversationsV1ServiceServiceConversationServiceConversationMessageReadResponse struct { - Messages []ConversationsV1ServiceServiceConversationServiceConversationMessage `json:"Messages,omitempty"` - Meta ConversationsV1ConversationReadResponseMeta `json:"Meta,omitempty"` -} diff --git a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message_service_conversation_message_receipt.go b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message_service_conversation_message_receipt.go index f6dec5a0c..65950fcf6 100644 --- a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message_service_conversation_message_receipt.go +++ b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message_service_conversation_message_receipt.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message_service_conversation_message_receipt_read_response.go b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message_service_conversation_message_receipt_read_response.go deleted file mode 100644 index 292f54bd8..000000000 --- a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_message_service_conversation_message_receipt_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Conversations - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse struct for ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse -type ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceiptReadResponse struct { - DeliveryReceipts []ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt `json:"DeliveryReceipts,omitempty"` - Meta ConversationsV1ConversationReadResponseMeta `json:"Meta,omitempty"` -} diff --git a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_participant.go b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_participant.go index 38a53ed85..a0542d019 100644 --- a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_participant.go +++ b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_participant.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_participant_read_response.go b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_participant_read_response.go deleted file mode 100644 index 5600a8b5f..000000000 --- a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_participant_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Conversations - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse struct for ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse -type ConversationsV1ServiceServiceConversationServiceConversationParticipantReadResponse struct { - Meta ConversationsV1ConversationReadResponseMeta `json:"Meta,omitempty"` - Participants []ConversationsV1ServiceServiceConversationServiceConversationParticipant `json:"Participants,omitempty"` -} diff --git a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_scoped_webhook.go b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_scoped_webhook.go index 7d7ee2b6f..ca792a01e 100644 --- a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_scoped_webhook.go +++ b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_scoped_webhook.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_scoped_webhook_read_response.go b/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_scoped_webhook_read_response.go deleted file mode 100644 index 67d8cde71..000000000 --- a/rest/conversations/v1/model_conversations_v1_service_service_conversation_service_conversation_scoped_webhook_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Conversations - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse struct for ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse -type ConversationsV1ServiceServiceConversationServiceConversationScopedWebhookReadResponse struct { - Meta ConversationsV1ConversationReadResponseMeta `json:"Meta,omitempty"` - Webhooks []ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook `json:"Webhooks,omitempty"` -} diff --git a/rest/conversations/v1/model_conversations_v1_service_service_role.go b/rest/conversations/v1/model_conversations_v1_service_service_role.go index daf7bb8f0..8fbf6b42f 100644 --- a/rest/conversations/v1/model_conversations_v1_service_service_role.go +++ b/rest/conversations/v1/model_conversations_v1_service_service_role.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_conversations_v1_service_service_user.go b/rest/conversations/v1/model_conversations_v1_service_service_user.go index 99f08ab2a..bbdaf5106 100644 --- a/rest/conversations/v1/model_conversations_v1_service_service_user.go +++ b/rest/conversations/v1/model_conversations_v1_service_service_user.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_conversations_v1_user.go b/rest/conversations/v1/model_conversations_v1_user.go index 39e443fb7..9a8d7bdf6 100644 --- a/rest/conversations/v1/model_conversations_v1_user.go +++ b/rest/conversations/v1/model_conversations_v1_user.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_create_conversation_message_request.go b/rest/conversations/v1/model_create_conversation_message_request.go index 36e0a4b94..ff95f5ce6 100644 --- a/rest/conversations/v1/model_create_conversation_message_request.go +++ b/rest/conversations/v1/model_create_conversation_message_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_create_conversation_participant_request.go b/rest/conversations/v1/model_create_conversation_participant_request.go index a816ef999..5e9404b16 100644 --- a/rest/conversations/v1/model_create_conversation_participant_request.go +++ b/rest/conversations/v1/model_create_conversation_participant_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_create_conversation_request.go b/rest/conversations/v1/model_create_conversation_request.go index 205887bad..77ccaf9c1 100644 --- a/rest/conversations/v1/model_create_conversation_request.go +++ b/rest/conversations/v1/model_create_conversation_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_create_conversation_scoped_webhook_request.go b/rest/conversations/v1/model_create_conversation_scoped_webhook_request.go index 64a1258fe..6c2c0c1b4 100644 --- a/rest/conversations/v1/model_create_conversation_scoped_webhook_request.go +++ b/rest/conversations/v1/model_create_conversation_scoped_webhook_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_create_credential_request.go b/rest/conversations/v1/model_create_credential_request.go index 814fadb10..76fba2065 100644 --- a/rest/conversations/v1/model_create_credential_request.go +++ b/rest/conversations/v1/model_create_credential_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_create_role_request.go b/rest/conversations/v1/model_create_role_request.go index 602bb1328..9a042db18 100644 --- a/rest/conversations/v1/model_create_role_request.go +++ b/rest/conversations/v1/model_create_role_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_create_service_conversation_message_request.go b/rest/conversations/v1/model_create_service_conversation_message_request.go index 4c26774cc..787d4ca4b 100644 --- a/rest/conversations/v1/model_create_service_conversation_message_request.go +++ b/rest/conversations/v1/model_create_service_conversation_message_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_create_service_conversation_participant_request.go b/rest/conversations/v1/model_create_service_conversation_participant_request.go index 24985a83b..40249063a 100644 --- a/rest/conversations/v1/model_create_service_conversation_participant_request.go +++ b/rest/conversations/v1/model_create_service_conversation_participant_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_create_service_conversation_request.go b/rest/conversations/v1/model_create_service_conversation_request.go index 7c6c26063..0c94b7401 100644 --- a/rest/conversations/v1/model_create_service_conversation_request.go +++ b/rest/conversations/v1/model_create_service_conversation_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_create_service_conversation_scoped_webhook_request.go b/rest/conversations/v1/model_create_service_conversation_scoped_webhook_request.go index 46dd879af..6cea64fa6 100644 --- a/rest/conversations/v1/model_create_service_conversation_scoped_webhook_request.go +++ b/rest/conversations/v1/model_create_service_conversation_scoped_webhook_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_create_service_request.go b/rest/conversations/v1/model_create_service_request.go index 858ac0217..e9b84a316 100644 --- a/rest/conversations/v1/model_create_service_request.go +++ b/rest/conversations/v1/model_create_service_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_create_service_role_request.go b/rest/conversations/v1/model_create_service_role_request.go index 2952b3c71..d68d649b4 100644 --- a/rest/conversations/v1/model_create_service_role_request.go +++ b/rest/conversations/v1/model_create_service_role_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_create_service_user_request.go b/rest/conversations/v1/model_create_service_user_request.go index 374b65ed8..41d111bd0 100644 --- a/rest/conversations/v1/model_create_service_user_request.go +++ b/rest/conversations/v1/model_create_service_user_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_create_user_request.go b/rest/conversations/v1/model_create_user_request.go index 186efe038..d35ea154e 100644 --- a/rest/conversations/v1/model_create_user_request.go +++ b/rest/conversations/v1/model_create_user_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_list_conversation_message_receipt_response.go b/rest/conversations/v1/model_list_conversation_message_receipt_response.go new file mode 100644 index 000000000..6e7b5f87d --- /dev/null +++ b/rest/conversations/v1/model_list_conversation_message_receipt_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListConversationMessageReceiptResponse struct for ListConversationMessageReceiptResponse +type ListConversationMessageReceiptResponse struct { + DeliveryReceipts []ConversationsV1ConversationConversationMessageConversationMessageReceipt `json:"DeliveryReceipts,omitempty"` + Meta ListConversationResponseMeta `json:"Meta,omitempty"` +} diff --git a/rest/conversations/v1/model_list_conversation_message_response.go b/rest/conversations/v1/model_list_conversation_message_response.go new file mode 100644 index 000000000..9e58c61ba --- /dev/null +++ b/rest/conversations/v1/model_list_conversation_message_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListConversationMessageResponse struct for ListConversationMessageResponse +type ListConversationMessageResponse struct { + Messages []ConversationsV1ConversationConversationMessage `json:"Messages,omitempty"` + Meta ListConversationResponseMeta `json:"Meta,omitempty"` +} diff --git a/rest/conversations/v1/model_list_conversation_participant_response.go b/rest/conversations/v1/model_list_conversation_participant_response.go new file mode 100644 index 000000000..b9f4139df --- /dev/null +++ b/rest/conversations/v1/model_list_conversation_participant_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListConversationParticipantResponse struct for ListConversationParticipantResponse +type ListConversationParticipantResponse struct { + Meta ListConversationResponseMeta `json:"Meta,omitempty"` + Participants []ConversationsV1ConversationConversationParticipant `json:"Participants,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_conversation_read_response.go b/rest/conversations/v1/model_list_conversation_response.go similarity index 52% rename from rest/conversations/v1/model_conversations_v1_conversation_read_response.go rename to rest/conversations/v1/model_list_conversation_response.go index 4c2e77aa7..d0a60464f 100644 --- a/rest/conversations/v1/model_conversations_v1_conversation_read_response.go +++ b/rest/conversations/v1/model_list_conversation_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ConversationsV1ConversationReadResponse struct for ConversationsV1ConversationReadResponse -type ConversationsV1ConversationReadResponse struct { +// ListConversationResponse struct for ListConversationResponse +type ListConversationResponse struct { Conversations []ConversationsV1Conversation `json:"Conversations,omitempty"` - Meta ConversationsV1ConversationReadResponseMeta `json:"Meta,omitempty"` + Meta ListConversationResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/conversations/v1/model_list_conversation_response_meta.go b/rest/conversations/v1/model_list_conversation_response_meta.go new file mode 100644 index 000000000..d2b8193b4 --- /dev/null +++ b/rest/conversations/v1/model_list_conversation_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListConversationResponseMeta struct for ListConversationResponseMeta +type ListConversationResponseMeta struct { + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` +} diff --git a/rest/conversations/v1/model_list_conversation_scoped_webhook_response.go b/rest/conversations/v1/model_list_conversation_scoped_webhook_response.go new file mode 100644 index 000000000..f66e0ed73 --- /dev/null +++ b/rest/conversations/v1/model_list_conversation_scoped_webhook_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListConversationScopedWebhookResponse struct for ListConversationScopedWebhookResponse +type ListConversationScopedWebhookResponse struct { + Meta ListConversationResponseMeta `json:"Meta,omitempty"` + Webhooks []ConversationsV1ConversationConversationScopedWebhook `json:"Webhooks,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_credential_read_response.go b/rest/conversations/v1/model_list_credential_response.go similarity index 52% rename from rest/conversations/v1/model_conversations_v1_credential_read_response.go rename to rest/conversations/v1/model_list_credential_response.go index 28c9faae3..75ebbe9c1 100644 --- a/rest/conversations/v1/model_conversations_v1_credential_read_response.go +++ b/rest/conversations/v1/model_list_credential_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ConversationsV1CredentialReadResponse struct for ConversationsV1CredentialReadResponse -type ConversationsV1CredentialReadResponse struct { +// ListCredentialResponse struct for ListCredentialResponse +type ListCredentialResponse struct { Credentials []ConversationsV1Credential `json:"Credentials,omitempty"` - Meta ConversationsV1ConversationReadResponseMeta `json:"Meta,omitempty"` + Meta ListConversationResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_role_read_response.go b/rest/conversations/v1/model_list_role_response.go similarity index 53% rename from rest/conversations/v1/model_conversations_v1_role_read_response.go rename to rest/conversations/v1/model_list_role_response.go index e8fc2447c..d66634af6 100644 --- a/rest/conversations/v1/model_conversations_v1_role_read_response.go +++ b/rest/conversations/v1/model_list_role_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ConversationsV1RoleReadResponse struct for ConversationsV1RoleReadResponse -type ConversationsV1RoleReadResponse struct { - Meta ConversationsV1ConversationReadResponseMeta `json:"Meta,omitempty"` +// ListRoleResponse struct for ListRoleResponse +type ListRoleResponse struct { + Meta ListConversationResponseMeta `json:"Meta,omitempty"` Roles []ConversationsV1Role `json:"Roles,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_service_service_binding_read_response.go b/rest/conversations/v1/model_list_service_binding_response.go similarity index 50% rename from rest/conversations/v1/model_conversations_v1_service_service_binding_read_response.go rename to rest/conversations/v1/model_list_service_binding_response.go index 421a5baab..42259aa34 100644 --- a/rest/conversations/v1/model_conversations_v1_service_service_binding_read_response.go +++ b/rest/conversations/v1/model_list_service_binding_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ConversationsV1ServiceServiceBindingReadResponse struct for ConversationsV1ServiceServiceBindingReadResponse -type ConversationsV1ServiceServiceBindingReadResponse struct { +// ListServiceBindingResponse struct for ListServiceBindingResponse +type ListServiceBindingResponse struct { Bindings []ConversationsV1ServiceServiceBinding `json:"Bindings,omitempty"` - Meta ConversationsV1ConversationReadResponseMeta `json:"Meta,omitempty"` + Meta ListConversationResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/conversations/v1/model_list_service_conversation_message_receipt_response.go b/rest/conversations/v1/model_list_service_conversation_message_receipt_response.go new file mode 100644 index 000000000..00d15e3ee --- /dev/null +++ b/rest/conversations/v1/model_list_service_conversation_message_receipt_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListServiceConversationMessageReceiptResponse struct for ListServiceConversationMessageReceiptResponse +type ListServiceConversationMessageReceiptResponse struct { + DeliveryReceipts []ConversationsV1ServiceServiceConversationServiceConversationMessageServiceConversationMessageReceipt `json:"DeliveryReceipts,omitempty"` + Meta ListConversationResponseMeta `json:"Meta,omitempty"` +} diff --git a/rest/conversations/v1/model_list_service_conversation_message_response.go b/rest/conversations/v1/model_list_service_conversation_message_response.go new file mode 100644 index 000000000..c164c0def --- /dev/null +++ b/rest/conversations/v1/model_list_service_conversation_message_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListServiceConversationMessageResponse struct for ListServiceConversationMessageResponse +type ListServiceConversationMessageResponse struct { + Messages []ConversationsV1ServiceServiceConversationServiceConversationMessage `json:"Messages,omitempty"` + Meta ListConversationResponseMeta `json:"Meta,omitempty"` +} diff --git a/rest/conversations/v1/model_list_service_conversation_participant_response.go b/rest/conversations/v1/model_list_service_conversation_participant_response.go new file mode 100644 index 000000000..7ab0e1a64 --- /dev/null +++ b/rest/conversations/v1/model_list_service_conversation_participant_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListServiceConversationParticipantResponse struct for ListServiceConversationParticipantResponse +type ListServiceConversationParticipantResponse struct { + Meta ListConversationResponseMeta `json:"Meta,omitempty"` + Participants []ConversationsV1ServiceServiceConversationServiceConversationParticipant `json:"Participants,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_service_service_conversation_read_response.go b/rest/conversations/v1/model_list_service_conversation_response.go similarity index 50% rename from rest/conversations/v1/model_conversations_v1_service_service_conversation_read_response.go rename to rest/conversations/v1/model_list_service_conversation_response.go index 91bb6a336..d499982ee 100644 --- a/rest/conversations/v1/model_conversations_v1_service_service_conversation_read_response.go +++ b/rest/conversations/v1/model_list_service_conversation_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ConversationsV1ServiceServiceConversationReadResponse struct for ConversationsV1ServiceServiceConversationReadResponse -type ConversationsV1ServiceServiceConversationReadResponse struct { +// ListServiceConversationResponse struct for ListServiceConversationResponse +type ListServiceConversationResponse struct { Conversations []ConversationsV1ServiceServiceConversation `json:"Conversations,omitempty"` - Meta ConversationsV1ConversationReadResponseMeta `json:"Meta,omitempty"` + Meta ListConversationResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/conversations/v1/model_list_service_conversation_scoped_webhook_response.go b/rest/conversations/v1/model_list_service_conversation_scoped_webhook_response.go new file mode 100644 index 000000000..17b524d74 --- /dev/null +++ b/rest/conversations/v1/model_list_service_conversation_scoped_webhook_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Conversations + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListServiceConversationScopedWebhookResponse struct for ListServiceConversationScopedWebhookResponse +type ListServiceConversationScopedWebhookResponse struct { + Meta ListConversationResponseMeta `json:"Meta,omitempty"` + Webhooks []ConversationsV1ServiceServiceConversationServiceConversationScopedWebhook `json:"Webhooks,omitempty"` +} diff --git a/rest/conversations/v1/model_conversations_v1_service_read_response.go b/rest/conversations/v1/model_list_service_response.go similarity index 52% rename from rest/conversations/v1/model_conversations_v1_service_read_response.go rename to rest/conversations/v1/model_list_service_response.go index f0b25b929..ab1fc53cf 100644 --- a/rest/conversations/v1/model_conversations_v1_service_read_response.go +++ b/rest/conversations/v1/model_list_service_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ConversationsV1ServiceReadResponse struct for ConversationsV1ServiceReadResponse -type ConversationsV1ServiceReadResponse struct { - Meta ConversationsV1ConversationReadResponseMeta `json:"Meta,omitempty"` +// ListServiceResponse struct for ListServiceResponse +type ListServiceResponse struct { + Meta ListConversationResponseMeta `json:"Meta,omitempty"` Services []ConversationsV1Service `json:"Services,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_service_service_role_read_response.go b/rest/conversations/v1/model_list_service_role_response.go similarity index 50% rename from rest/conversations/v1/model_conversations_v1_service_service_role_read_response.go rename to rest/conversations/v1/model_list_service_role_response.go index 734707979..2f68c3895 100644 --- a/rest/conversations/v1/model_conversations_v1_service_service_role_read_response.go +++ b/rest/conversations/v1/model_list_service_role_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ConversationsV1ServiceServiceRoleReadResponse struct for ConversationsV1ServiceServiceRoleReadResponse -type ConversationsV1ServiceServiceRoleReadResponse struct { - Meta ConversationsV1ConversationReadResponseMeta `json:"Meta,omitempty"` +// ListServiceRoleResponse struct for ListServiceRoleResponse +type ListServiceRoleResponse struct { + Meta ListConversationResponseMeta `json:"Meta,omitempty"` Roles []ConversationsV1ServiceServiceRole `json:"Roles,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_service_service_user_read_response.go b/rest/conversations/v1/model_list_service_user_response.go similarity index 50% rename from rest/conversations/v1/model_conversations_v1_service_service_user_read_response.go rename to rest/conversations/v1/model_list_service_user_response.go index 6eba835bf..95ff71777 100644 --- a/rest/conversations/v1/model_conversations_v1_service_service_user_read_response.go +++ b/rest/conversations/v1/model_list_service_user_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ConversationsV1ServiceServiceUserReadResponse struct for ConversationsV1ServiceServiceUserReadResponse -type ConversationsV1ServiceServiceUserReadResponse struct { - Meta ConversationsV1ConversationReadResponseMeta `json:"Meta,omitempty"` +// ListServiceUserResponse struct for ListServiceUserResponse +type ListServiceUserResponse struct { + Meta ListConversationResponseMeta `json:"Meta,omitempty"` Users []ConversationsV1ServiceServiceUser `json:"Users,omitempty"` } diff --git a/rest/conversations/v1/model_conversations_v1_user_read_response.go b/rest/conversations/v1/model_list_user_response.go similarity index 53% rename from rest/conversations/v1/model_conversations_v1_user_read_response.go rename to rest/conversations/v1/model_list_user_response.go index 26988dbaa..9fa4dfa18 100644 --- a/rest/conversations/v1/model_conversations_v1_user_read_response.go +++ b/rest/conversations/v1/model_list_user_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ConversationsV1UserReadResponse struct for ConversationsV1UserReadResponse -type ConversationsV1UserReadResponse struct { - Meta ConversationsV1ConversationReadResponseMeta `json:"Meta,omitempty"` +// ListUserResponse struct for ListUserResponse +type ListUserResponse struct { + Meta ListConversationResponseMeta `json:"Meta,omitempty"` Users []ConversationsV1User `json:"Users,omitempty"` } diff --git a/rest/conversations/v1/model_update_configuration_request.go b/rest/conversations/v1/model_update_configuration_request.go index 2b2869337..b60045f19 100644 --- a/rest/conversations/v1/model_update_configuration_request.go +++ b/rest/conversations/v1/model_update_configuration_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_update_configuration_webhook_request.go b/rest/conversations/v1/model_update_configuration_webhook_request.go index 2d7a6fafc..655e38858 100644 --- a/rest/conversations/v1/model_update_configuration_webhook_request.go +++ b/rest/conversations/v1/model_update_configuration_webhook_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_update_conversation_message_request.go b/rest/conversations/v1/model_update_conversation_message_request.go index cf5779a93..feeb575b3 100644 --- a/rest/conversations/v1/model_update_conversation_message_request.go +++ b/rest/conversations/v1/model_update_conversation_message_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_update_conversation_participant_request.go b/rest/conversations/v1/model_update_conversation_participant_request.go index cdd0556d6..311838db5 100644 --- a/rest/conversations/v1/model_update_conversation_participant_request.go +++ b/rest/conversations/v1/model_update_conversation_participant_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_update_conversation_request.go b/rest/conversations/v1/model_update_conversation_request.go index 255193dc0..5f6261b4a 100644 --- a/rest/conversations/v1/model_update_conversation_request.go +++ b/rest/conversations/v1/model_update_conversation_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_update_conversation_scoped_webhook_request.go b/rest/conversations/v1/model_update_conversation_scoped_webhook_request.go index 317254ce1..f469431c8 100644 --- a/rest/conversations/v1/model_update_conversation_scoped_webhook_request.go +++ b/rest/conversations/v1/model_update_conversation_scoped_webhook_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_update_credential_request.go b/rest/conversations/v1/model_update_credential_request.go index 791069b9d..28d55aa16 100644 --- a/rest/conversations/v1/model_update_credential_request.go +++ b/rest/conversations/v1/model_update_credential_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_update_role_request.go b/rest/conversations/v1/model_update_role_request.go index 5cd19ecb0..4bde8936d 100644 --- a/rest/conversations/v1/model_update_role_request.go +++ b/rest/conversations/v1/model_update_role_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_update_service_configuration_request.go b/rest/conversations/v1/model_update_service_configuration_request.go index 66c40846a..b5cf0c562 100644 --- a/rest/conversations/v1/model_update_service_configuration_request.go +++ b/rest/conversations/v1/model_update_service_configuration_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_update_service_conversation_message_request.go b/rest/conversations/v1/model_update_service_conversation_message_request.go index 4849bd23c..44b51e8d5 100644 --- a/rest/conversations/v1/model_update_service_conversation_message_request.go +++ b/rest/conversations/v1/model_update_service_conversation_message_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_update_service_conversation_participant_request.go b/rest/conversations/v1/model_update_service_conversation_participant_request.go index f8fc1a74f..7af281501 100644 --- a/rest/conversations/v1/model_update_service_conversation_participant_request.go +++ b/rest/conversations/v1/model_update_service_conversation_participant_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_update_service_conversation_request.go b/rest/conversations/v1/model_update_service_conversation_request.go index 089e22e85..30ed0bb53 100644 --- a/rest/conversations/v1/model_update_service_conversation_request.go +++ b/rest/conversations/v1/model_update_service_conversation_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_update_service_conversation_scoped_webhook_request.go b/rest/conversations/v1/model_update_service_conversation_scoped_webhook_request.go index 6c2f0a4d2..32495bc7a 100644 --- a/rest/conversations/v1/model_update_service_conversation_scoped_webhook_request.go +++ b/rest/conversations/v1/model_update_service_conversation_scoped_webhook_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_update_service_notification_request.go b/rest/conversations/v1/model_update_service_notification_request.go index 0309aff0c..86004ed4a 100644 --- a/rest/conversations/v1/model_update_service_notification_request.go +++ b/rest/conversations/v1/model_update_service_notification_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_update_service_role_request.go b/rest/conversations/v1/model_update_service_role_request.go index d7c8df104..76a502c66 100644 --- a/rest/conversations/v1/model_update_service_role_request.go +++ b/rest/conversations/v1/model_update_service_role_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_update_service_user_request.go b/rest/conversations/v1/model_update_service_user_request.go index 639098ddf..34a50f6e9 100644 --- a/rest/conversations/v1/model_update_service_user_request.go +++ b/rest/conversations/v1/model_update_service_user_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/model_update_user_request.go b/rest/conversations/v1/model_update_user_request.go index ce0ee7530..ce4e30574 100644 --- a/rest/conversations/v1/model_update_user_request.go +++ b/rest/conversations/v1/model_update_user_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/conversations/v1/response.go b/rest/conversations/v1/response.go index aefcb2cbe..20057e3c3 100644 --- a/rest/conversations/v1/response.go +++ b/rest/conversations/v1/response.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/events/v1/README.md b/rest/events/v1/README.md index e53154011..0cdf28190 100644 --- a/rest/events/v1/README.md +++ b/rest/events/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 5.15.0 +- API version: 1.0.0 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) @@ -56,19 +56,19 @@ Class | Method | HTTP request | Description - [CreateSinkValidateRequest](docs/CreateSinkValidateRequest.md) - [CreateSubscriptionRequest](docs/CreateSubscriptionRequest.md) - [EventsV1EventType](docs/EventsV1EventType.md) - - [EventsV1EventTypeReadResponse](docs/EventsV1EventTypeReadResponse.md) - [EventsV1Schema](docs/EventsV1Schema.md) - [EventsV1SchemaVersion](docs/EventsV1SchemaVersion.md) - - [EventsV1SchemaVersionReadResponse](docs/EventsV1SchemaVersionReadResponse.md) - - [EventsV1SchemaVersionReadResponseMeta](docs/EventsV1SchemaVersionReadResponseMeta.md) - [EventsV1Sink](docs/EventsV1Sink.md) - - [EventsV1SinkReadResponse](docs/EventsV1SinkReadResponse.md) - [EventsV1SinkSinkTest](docs/EventsV1SinkSinkTest.md) - [EventsV1SinkSinkValidate](docs/EventsV1SinkSinkValidate.md) - [EventsV1Subscription](docs/EventsV1Subscription.md) - - [EventsV1SubscriptionReadResponse](docs/EventsV1SubscriptionReadResponse.md) - [EventsV1SubscriptionSubscribedEvent](docs/EventsV1SubscriptionSubscribedEvent.md) - - [EventsV1SubscriptionSubscribedEventReadResponse](docs/EventsV1SubscriptionSubscribedEventReadResponse.md) + - [ListEventTypeResponse](docs/ListEventTypeResponse.md) + - [ListSinkResponse](docs/ListSinkResponse.md) + - [ListSubscribedEventResponse](docs/ListSubscribedEventResponse.md) + - [ListSubscriptionResponse](docs/ListSubscriptionResponse.md) + - [ListVersionResponse](docs/ListVersionResponse.md) + - [ListVersionResponseMeta](docs/ListVersionResponseMeta.md) - [UpdateSubscriptionRequest](docs/UpdateSubscriptionRequest.md) diff --git a/rest/events/v1/api_default.go b/rest/events/v1/api_default.go index edfcfdc54..947e5233c 100644 --- a/rest/events/v1/api_default.go +++ b/rest/events/v1/api_default.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -26,14 +26,14 @@ type DefaultApiService struct { func NewDefaultApiService(client *twilio.Client) *DefaultApiService { return &DefaultApiService { client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + baseURL: fmt.Sprintf("https://events.twilio.com"), } } // CreateSinkParams Optional parameters for the method 'CreateSink' type CreateSinkParams struct { - Description *string `json:"Description,omitempty"` - SinkConfiguration *map[string]interface{} `json:"SinkConfiguration,omitempty"` - SinkType *string `json:"SinkType,omitempty"` + Description *string `json:"Description,omitempty"` + SinkConfiguration *map[string]interface{} `json:"SinkConfiguration,omitempty"` + SinkType *string `json:"SinkType,omitempty"` } /* @@ -42,7 +42,7 @@ Create a new Sink * @param optional nil or *CreateSinkOpts - Optional Parameters: * @param "Description" (string) - A human readable description for the Sink * @param "SinkConfiguration" (map[string]interface{}) - The information required for Twilio to connect to the provided Sink encoded as JSON. - * @param "SinkType" (string) - The Sink type. Can only be \\\"kinesis\\\" currently. + * @param "SinkType" (string) - The Sink type. Can only be \\\"kinesis\\\" or \\\"webhook\\\" currently. @return EventsV1Sink */ func (c *DefaultApiService) CreateSink(params *CreateSinkParams) (*EventsV1Sink, error) { @@ -116,7 +116,7 @@ func (c *DefaultApiService) CreateSinkTest(Sid string) (*EventsV1SinkSinkTest, e } // CreateSinkValidateParams Optional parameters for the method 'CreateSinkValidate' type CreateSinkValidateParams struct { - TestId *string `json:"TestId,omitempty"` + TestId *string `json:"TestId,omitempty"` } /* @@ -156,9 +156,9 @@ func (c *DefaultApiService) CreateSinkValidate(Sid string, params *CreateSinkVal } // CreateSubscriptionParams Optional parameters for the method 'CreateSubscription' type CreateSubscriptionParams struct { - Description *string `json:"Description,omitempty"` - SinkSid *string `json:"SinkSid,omitempty"` - Types *[]map[string]interface{} `json:"Types,omitempty"` + Description *string `json:"Description,omitempty"` + SinkSid *string `json:"SinkSid,omitempty"` + Types *[]map[string]interface{} `json:"Types,omitempty"` } /* @@ -417,7 +417,7 @@ func (c *DefaultApiService) FetchVersion(Id string, SchemaVersion int32) (*Event } // ListEventTypeParams Optional parameters for the method 'ListEventType' type ListEventTypeParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -425,9 +425,9 @@ ListEventType Method for ListEventType Retrieve a paginated list of all the available Event Types. * @param optional nil or *ListEventTypeOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return EventsV1EventTypeReadResponse +@return ListEventTypeResponse */ -func (c *DefaultApiService) ListEventType(params *ListEventTypeParams) (*EventsV1EventTypeReadResponse, error) { +func (c *DefaultApiService) ListEventType(params *ListEventTypeParams) (*ListEventTypeResponse, error) { path := "/v1/Types" @@ -446,7 +446,7 @@ func (c *DefaultApiService) ListEventType(params *ListEventTypeParams) (*EventsV defer resp.Body.Close() - ps := &EventsV1EventTypeReadResponse{} + ps := &ListEventTypeResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -455,7 +455,7 @@ func (c *DefaultApiService) ListEventType(params *ListEventTypeParams) (*EventsV } // ListSinkParams Optional parameters for the method 'ListSink' type ListSinkParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -463,9 +463,9 @@ ListSink Method for ListSink Retrieve a paginated list of Sinks belonging to the account used to make the request. * @param optional nil or *ListSinkOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return EventsV1SinkReadResponse +@return ListSinkResponse */ -func (c *DefaultApiService) ListSink(params *ListSinkParams) (*EventsV1SinkReadResponse, error) { +func (c *DefaultApiService) ListSink(params *ListSinkParams) (*ListSinkResponse, error) { path := "/v1/Sinks" @@ -484,7 +484,7 @@ func (c *DefaultApiService) ListSink(params *ListSinkParams) (*EventsV1SinkReadR defer resp.Body.Close() - ps := &EventsV1SinkReadResponse{} + ps := &ListSinkResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -493,7 +493,7 @@ func (c *DefaultApiService) ListSink(params *ListSinkParams) (*EventsV1SinkReadR } // ListSubscribedEventParams Optional parameters for the method 'ListSubscribedEvent' type ListSubscribedEventParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -502,9 +502,9 @@ Retrieve a list of all Subscribed Event types for a Subscription. * @param SubscriptionSid The unique SID identifier of the Subscription. * @param optional nil or *ListSubscribedEventOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return EventsV1SubscriptionSubscribedEventReadResponse +@return ListSubscribedEventResponse */ -func (c *DefaultApiService) ListSubscribedEvent(SubscriptionSid string, params *ListSubscribedEventParams) (*EventsV1SubscriptionSubscribedEventReadResponse, error) { +func (c *DefaultApiService) ListSubscribedEvent(SubscriptionSid string, params *ListSubscribedEventParams) (*ListSubscribedEventResponse, error) { path := "/v1/Subscriptions/{SubscriptionSid}/SubscribedEvents" path = strings.Replace(path, "{"+"SubscriptionSid"+"}", SubscriptionSid, -1) @@ -524,7 +524,7 @@ func (c *DefaultApiService) ListSubscribedEvent(SubscriptionSid string, params * defer resp.Body.Close() - ps := &EventsV1SubscriptionSubscribedEventReadResponse{} + ps := &ListSubscribedEventResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -533,8 +533,8 @@ func (c *DefaultApiService) ListSubscribedEvent(SubscriptionSid string, params * } // ListSubscriptionParams Optional parameters for the method 'ListSubscription' type ListSubscriptionParams struct { - SinkSid *string `json:"SinkSid,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + SinkSid *string `json:"SinkSid,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -543,9 +543,9 @@ Retrieve a paginated list of Subscriptions belonging to the account used to make * @param optional nil or *ListSubscriptionOpts - Optional Parameters: * @param "SinkSid" (string) - The SID of the sink that the list of Subscriptions should be filtered by. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return EventsV1SubscriptionReadResponse +@return ListSubscriptionResponse */ -func (c *DefaultApiService) ListSubscription(params *ListSubscriptionParams) (*EventsV1SubscriptionReadResponse, error) { +func (c *DefaultApiService) ListSubscription(params *ListSubscriptionParams) (*ListSubscriptionResponse, error) { path := "/v1/Subscriptions" @@ -567,7 +567,7 @@ func (c *DefaultApiService) ListSubscription(params *ListSubscriptionParams) (*E defer resp.Body.Close() - ps := &EventsV1SubscriptionReadResponse{} + ps := &ListSubscriptionResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -576,7 +576,7 @@ func (c *DefaultApiService) ListSubscription(params *ListSubscriptionParams) (*E } // ListVersionParams Optional parameters for the method 'ListVersion' type ListVersionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -585,9 +585,9 @@ Retrieve a paginated list of versions of the schema. * @param Id The unique identifier of the schema. Each schema can have multiple versions, that share the same id. * @param optional nil or *ListVersionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return EventsV1SchemaVersionReadResponse +@return ListVersionResponse */ -func (c *DefaultApiService) ListVersion(Id string, params *ListVersionParams) (*EventsV1SchemaVersionReadResponse, error) { +func (c *DefaultApiService) ListVersion(Id string, params *ListVersionParams) (*ListVersionResponse, error) { path := "/v1/Schemas/{Id}/Versions" path = strings.Replace(path, "{"+"Id"+"}", Id, -1) @@ -607,7 +607,7 @@ func (c *DefaultApiService) ListVersion(Id string, params *ListVersionParams) (* defer resp.Body.Close() - ps := &EventsV1SchemaVersionReadResponse{} + ps := &ListVersionResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -616,8 +616,8 @@ func (c *DefaultApiService) ListVersion(Id string, params *ListVersionParams) (* } // UpdateSubscriptionParams Optional parameters for the method 'UpdateSubscription' type UpdateSubscriptionParams struct { - Description *string `json:"Description,omitempty"` - SinkSid *string `json:"SinkSid,omitempty"` + Description *string `json:"Description,omitempty"` + SinkSid *string `json:"SinkSid,omitempty"` } /* diff --git a/rest/events/v1/docs/CreateSinkRequest.md b/rest/events/v1/docs/CreateSinkRequest.md index 9780c4dc5..97a904d38 100644 --- a/rest/events/v1/docs/CreateSinkRequest.md +++ b/rest/events/v1/docs/CreateSinkRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Description** | **string** | A human readable description for the Sink | **SinkConfiguration** | [**map[string]interface{}**](.md) | The information required for Twilio to connect to the provided Sink encoded as JSON. | -**SinkType** | **string** | The Sink type. Can only be \"kinesis\" currently. | +**SinkType** | **string** | The Sink type. Can only be \"kinesis\" or \"webhook\" currently. | [[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/rest/events/v1/docs/DefaultApi.md b/rest/events/v1/docs/DefaultApi.md index cce3a2a96..2dea9f778 100644 --- a/rest/events/v1/docs/DefaultApi.md +++ b/rest/events/v1/docs/DefaultApi.md @@ -49,7 +49,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **Description** | **optional.String**| A human readable description for the Sink | **SinkConfiguration** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| The information required for Twilio to connect to the provided Sink encoded as JSON. | - **SinkType** | **optional.String**| The Sink type. Can only be \\\"kinesis\\\" currently. | + **SinkType** | **optional.String**| The Sink type. Can only be \\\"kinesis\\\" or \\\"webhook\\\" currently. | ### Return type @@ -434,7 +434,7 @@ Name | Type | Description | Notes ## ListEventType -> EventsV1EventTypeReadResponse ListEventType(ctx, optional) +> ListEventTypeResponse ListEventType(ctx, optional) @@ -459,7 +459,7 @@ Name | Type | Description | Notes ### Return type -[**EventsV1EventTypeReadResponse**](events_v1_event_typeReadResponse.md) +[**ListEventTypeResponse**](ListEventTypeResponse.md) ### Authorization @@ -477,7 +477,7 @@ Name | Type | Description | Notes ## ListSink -> EventsV1SinkReadResponse ListSink(ctx, optional) +> ListSinkResponse ListSink(ctx, optional) @@ -502,7 +502,7 @@ Name | Type | Description | Notes ### Return type -[**EventsV1SinkReadResponse**](events_v1_sinkReadResponse.md) +[**ListSinkResponse**](ListSinkResponse.md) ### Authorization @@ -520,7 +520,7 @@ Name | Type | Description | Notes ## ListSubscribedEvent -> EventsV1SubscriptionSubscribedEventReadResponse ListSubscribedEvent(ctx, SubscriptionSid, optional) +> ListSubscribedEventResponse ListSubscribedEvent(ctx, SubscriptionSid, optional) @@ -547,7 +547,7 @@ Name | Type | Description | Notes ### Return type -[**EventsV1SubscriptionSubscribedEventReadResponse**](events_v1_subscription_subscribed_eventReadResponse.md) +[**ListSubscribedEventResponse**](ListSubscribedEventResponse.md) ### Authorization @@ -565,7 +565,7 @@ Name | Type | Description | Notes ## ListSubscription -> EventsV1SubscriptionReadResponse ListSubscription(ctx, optional) +> ListSubscriptionResponse ListSubscription(ctx, optional) @@ -591,7 +591,7 @@ Name | Type | Description | Notes ### Return type -[**EventsV1SubscriptionReadResponse**](events_v1_subscriptionReadResponse.md) +[**ListSubscriptionResponse**](ListSubscriptionResponse.md) ### Authorization @@ -609,7 +609,7 @@ Name | Type | Description | Notes ## ListVersion -> EventsV1SchemaVersionReadResponse ListVersion(ctx, Id, optional) +> ListVersionResponse ListVersion(ctx, Id, optional) @@ -636,7 +636,7 @@ Name | Type | Description | Notes ### Return type -[**EventsV1SchemaVersionReadResponse**](events_v1_schema_versionReadResponse.md) +[**ListVersionResponse**](ListVersionResponse.md) ### Authorization diff --git a/rest/events/v1/docs/EventsV1SchemaVersionReadResponseMeta.md b/rest/events/v1/docs/EventsV1SchemaVersionReadResponseMeta.md deleted file mode 100644 index 790dca324..000000000 --- a/rest/events/v1/docs/EventsV1SchemaVersionReadResponseMeta.md +++ /dev/null @@ -1,17 +0,0 @@ -# EventsV1SchemaVersionReadResponseMeta - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FirstPageUrl** | **string** | | [optional] -**Key** | **string** | | [optional] -**NextPageUrl** | **string** | | [optional] -**Page** | **int32** | | [optional] -**PageSize** | **int32** | | [optional] -**PreviousPageUrl** | **string** | | [optional] -**Url** | **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/rest/events/v1/docs/EventsV1EventTypeReadResponse.md b/rest/events/v1/docs/ListEventTypeResponse.md similarity index 70% rename from rest/events/v1/docs/EventsV1EventTypeReadResponse.md rename to rest/events/v1/docs/ListEventTypeResponse.md index 704b02068..fa3d3ffc1 100644 --- a/rest/events/v1/docs/EventsV1EventTypeReadResponse.md +++ b/rest/events/v1/docs/ListEventTypeResponse.md @@ -1,10 +1,10 @@ -# EventsV1EventTypeReadResponse +# ListEventTypeResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**EventsV1SchemaVersionReadResponseMeta**](events_v1_schema_versionReadResponse_meta.md) | | [optional] +**Meta** | [**ListVersionResponseMeta**](ListVersionResponse_meta.md) | | [optional] **Types** | [**[]EventsV1EventType**](events.v1.event_type.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/rest/events/v1/docs/EventsV1SinkReadResponse.md b/rest/events/v1/docs/ListSinkResponse.md similarity index 70% rename from rest/events/v1/docs/EventsV1SinkReadResponse.md rename to rest/events/v1/docs/ListSinkResponse.md index 65f8fe425..09e3950c5 100644 --- a/rest/events/v1/docs/EventsV1SinkReadResponse.md +++ b/rest/events/v1/docs/ListSinkResponse.md @@ -1,10 +1,10 @@ -# EventsV1SinkReadResponse +# ListSinkResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**EventsV1SchemaVersionReadResponseMeta**](events_v1_schema_versionReadResponse_meta.md) | | [optional] +**Meta** | [**ListVersionResponseMeta**](ListVersionResponse_meta.md) | | [optional] **Sinks** | [**[]EventsV1Sink**](events.v1.sink.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/rest/events/v1/docs/EventsV1SubscriptionSubscribedEventReadResponse.md b/rest/events/v1/docs/ListSubscribedEventResponse.md similarity index 70% rename from rest/events/v1/docs/EventsV1SubscriptionSubscribedEventReadResponse.md rename to rest/events/v1/docs/ListSubscribedEventResponse.md index df513de4b..18d94090e 100644 --- a/rest/events/v1/docs/EventsV1SubscriptionSubscribedEventReadResponse.md +++ b/rest/events/v1/docs/ListSubscribedEventResponse.md @@ -1,10 +1,10 @@ -# EventsV1SubscriptionSubscribedEventReadResponse +# ListSubscribedEventResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**EventsV1SchemaVersionReadResponseMeta**](events_v1_schema_versionReadResponse_meta.md) | | [optional] +**Meta** | [**ListVersionResponseMeta**](ListVersionResponse_meta.md) | | [optional] **Types** | [**[]EventsV1SubscriptionSubscribedEvent**](events.v1.subscription.subscribed_event.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/rest/events/v1/docs/EventsV1SubscriptionReadResponse.md b/rest/events/v1/docs/ListSubscriptionResponse.md similarity index 70% rename from rest/events/v1/docs/EventsV1SubscriptionReadResponse.md rename to rest/events/v1/docs/ListSubscriptionResponse.md index e416ed6d0..feaacbd44 100644 --- a/rest/events/v1/docs/EventsV1SubscriptionReadResponse.md +++ b/rest/events/v1/docs/ListSubscriptionResponse.md @@ -1,10 +1,10 @@ -# EventsV1SubscriptionReadResponse +# ListSubscriptionResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**EventsV1SchemaVersionReadResponseMeta**](events_v1_schema_versionReadResponse_meta.md) | | [optional] +**Meta** | [**ListVersionResponseMeta**](ListVersionResponse_meta.md) | | [optional] **Subscriptions** | [**[]EventsV1Subscription**](events.v1.subscription.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/rest/events/v1/docs/EventsV1SchemaVersionReadResponse.md b/rest/events/v1/docs/ListVersionResponse.md similarity index 70% rename from rest/events/v1/docs/EventsV1SchemaVersionReadResponse.md rename to rest/events/v1/docs/ListVersionResponse.md index f40991580..39f134783 100644 --- a/rest/events/v1/docs/EventsV1SchemaVersionReadResponse.md +++ b/rest/events/v1/docs/ListVersionResponse.md @@ -1,10 +1,10 @@ -# EventsV1SchemaVersionReadResponse +# ListVersionResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**EventsV1SchemaVersionReadResponseMeta**](events_v1_schema_versionReadResponse_meta.md) | | [optional] +**Meta** | [**ListVersionResponseMeta**](ListVersionResponse_meta.md) | | [optional] **SchemaVersions** | [**[]EventsV1SchemaVersion**](events.v1.schema.version.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/rest/events/v1/docs/ListVersionResponseMeta.md b/rest/events/v1/docs/ListVersionResponseMeta.md new file mode 100644 index 000000000..52e7bdd1e --- /dev/null +++ b/rest/events/v1/docs/ListVersionResponseMeta.md @@ -0,0 +1,17 @@ +# ListVersionResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/events/v1/model_create_sink_request.go b/rest/events/v1/model_create_sink_request.go index c7db517ea..124b051c2 100644 --- a/rest/events/v1/model_create_sink_request.go +++ b/rest/events/v1/model_create_sink_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -15,6 +15,6 @@ type CreateSinkRequest struct { Description string `json:"Description"` // The information required for Twilio to connect to the provided Sink encoded as JSON. SinkConfiguration map[string]interface{} `json:"SinkConfiguration"` - // The Sink type. Can only be \"kinesis\" currently. + // The Sink type. Can only be \"kinesis\" or \"webhook\" currently. SinkType string `json:"SinkType"` } diff --git a/rest/events/v1/model_create_sink_validate_request.go b/rest/events/v1/model_create_sink_validate_request.go index 1e10fe4bc..5ece92ba5 100644 --- a/rest/events/v1/model_create_sink_validate_request.go +++ b/rest/events/v1/model_create_sink_validate_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/events/v1/model_create_subscription_request.go b/rest/events/v1/model_create_subscription_request.go index e7285ef20..dfce3bba7 100644 --- a/rest/events/v1/model_create_subscription_request.go +++ b/rest/events/v1/model_create_subscription_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/events/v1/model_events_v1_event_type.go b/rest/events/v1/model_events_v1_event_type.go index e133beaec..e9fd8a1d3 100644 --- a/rest/events/v1/model_events_v1_event_type.go +++ b/rest/events/v1/model_events_v1_event_type.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/events/v1/model_events_v1_schema.go b/rest/events/v1/model_events_v1_schema.go index 82be0faec..29355fc8b 100644 --- a/rest/events/v1/model_events_v1_schema.go +++ b/rest/events/v1/model_events_v1_schema.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/events/v1/model_events_v1_schema_version.go b/rest/events/v1/model_events_v1_schema_version.go index 655702dab..0f57f9fe3 100644 --- a/rest/events/v1/model_events_v1_schema_version.go +++ b/rest/events/v1/model_events_v1_schema_version.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/events/v1/model_events_v1_schema_version_read_response_meta.go b/rest/events/v1/model_events_v1_schema_version_read_response_meta.go deleted file mode 100644 index 3936e36f7..000000000 --- a/rest/events/v1/model_events_v1_schema_version_read_response_meta.go +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Twilio - Events - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// EventsV1SchemaVersionReadResponseMeta struct for EventsV1SchemaVersionReadResponseMeta -type EventsV1SchemaVersionReadResponseMeta struct { - FirstPageUrl string `json:"FirstPageUrl,omitempty"` - Key string `json:"Key,omitempty"` - NextPageUrl string `json:"NextPageUrl,omitempty"` - Page int32 `json:"Page,omitempty"` - PageSize int32 `json:"PageSize,omitempty"` - PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` - Url string `json:"Url,omitempty"` -} diff --git a/rest/events/v1/model_events_v1_sink.go b/rest/events/v1/model_events_v1_sink.go index 90c4c0eab..e4544085d 100644 --- a/rest/events/v1/model_events_v1_sink.go +++ b/rest/events/v1/model_events_v1_sink.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/events/v1/model_events_v1_sink_sink_test_.go b/rest/events/v1/model_events_v1_sink_sink_test_.go index cb6950b84..4b840c7b9 100644 --- a/rest/events/v1/model_events_v1_sink_sink_test_.go +++ b/rest/events/v1/model_events_v1_sink_sink_test_.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/events/v1/model_events_v1_sink_sink_validate.go b/rest/events/v1/model_events_v1_sink_sink_validate.go index 544e42bfc..f2b5a7f0b 100644 --- a/rest/events/v1/model_events_v1_sink_sink_validate.go +++ b/rest/events/v1/model_events_v1_sink_sink_validate.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/events/v1/model_events_v1_subscription.go b/rest/events/v1/model_events_v1_subscription.go index 23534c32d..2ced00add 100644 --- a/rest/events/v1/model_events_v1_subscription.go +++ b/rest/events/v1/model_events_v1_subscription.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/events/v1/model_events_v1_subscription_subscribed_event.go b/rest/events/v1/model_events_v1_subscription_subscribed_event.go index c026fd444..7b966341e 100644 --- a/rest/events/v1/model_events_v1_subscription_subscribed_event.go +++ b/rest/events/v1/model_events_v1_subscription_subscribed_event.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/events/v1/model_events_v1_subscription_subscribed_event_read_response.go b/rest/events/v1/model_events_v1_subscription_subscribed_event_read_response.go deleted file mode 100644 index 3d798cbfe..000000000 --- a/rest/events/v1/model_events_v1_subscription_subscribed_event_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Events - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// EventsV1SubscriptionSubscribedEventReadResponse struct for EventsV1SubscriptionSubscribedEventReadResponse -type EventsV1SubscriptionSubscribedEventReadResponse struct { - Meta EventsV1SchemaVersionReadResponseMeta `json:"Meta,omitempty"` - Types []EventsV1SubscriptionSubscribedEvent `json:"Types,omitempty"` -} diff --git a/rest/events/v1/model_events_v1_event_type_read_response.go b/rest/events/v1/model_list_event_type_response.go similarity index 53% rename from rest/events/v1/model_events_v1_event_type_read_response.go rename to rest/events/v1/model_list_event_type_response.go index 0bc9835c8..32c703635 100644 --- a/rest/events/v1/model_events_v1_event_type_read_response.go +++ b/rest/events/v1/model_list_event_type_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// EventsV1EventTypeReadResponse struct for EventsV1EventTypeReadResponse -type EventsV1EventTypeReadResponse struct { - Meta EventsV1SchemaVersionReadResponseMeta `json:"Meta,omitempty"` +// ListEventTypeResponse struct for ListEventTypeResponse +type ListEventTypeResponse struct { + Meta ListVersionResponseMeta `json:"Meta,omitempty"` Types []EventsV1EventType `json:"Types,omitempty"` } diff --git a/rest/events/v1/model_events_v1_sink_read_response.go b/rest/events/v1/model_list_sink_response.go similarity index 54% rename from rest/events/v1/model_events_v1_sink_read_response.go rename to rest/events/v1/model_list_sink_response.go index b39527c2e..408615f16 100644 --- a/rest/events/v1/model_events_v1_sink_read_response.go +++ b/rest/events/v1/model_list_sink_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// EventsV1SinkReadResponse struct for EventsV1SinkReadResponse -type EventsV1SinkReadResponse struct { - Meta EventsV1SchemaVersionReadResponseMeta `json:"Meta,omitempty"` +// ListSinkResponse struct for ListSinkResponse +type ListSinkResponse struct { + Meta ListVersionResponseMeta `json:"Meta,omitempty"` Sinks []EventsV1Sink `json:"Sinks,omitempty"` } diff --git a/rest/events/v1/model_list_subscribed_event_response.go b/rest/events/v1/model_list_subscribed_event_response.go new file mode 100644 index 000000000..5bcdefc05 --- /dev/null +++ b/rest/events/v1/model_list_subscribed_event_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Events + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListSubscribedEventResponse struct for ListSubscribedEventResponse +type ListSubscribedEventResponse struct { + Meta ListVersionResponseMeta `json:"Meta,omitempty"` + Types []EventsV1SubscriptionSubscribedEvent `json:"Types,omitempty"` +} diff --git a/rest/events/v1/model_events_v1_subscription_read_response.go b/rest/events/v1/model_list_subscription_response.go similarity index 54% rename from rest/events/v1/model_events_v1_subscription_read_response.go rename to rest/events/v1/model_list_subscription_response.go index d597425cf..106708db0 100644 --- a/rest/events/v1/model_events_v1_subscription_read_response.go +++ b/rest/events/v1/model_list_subscription_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// EventsV1SubscriptionReadResponse struct for EventsV1SubscriptionReadResponse -type EventsV1SubscriptionReadResponse struct { - Meta EventsV1SchemaVersionReadResponseMeta `json:"Meta,omitempty"` +// ListSubscriptionResponse struct for ListSubscriptionResponse +type ListSubscriptionResponse struct { + Meta ListVersionResponseMeta `json:"Meta,omitempty"` Subscriptions []EventsV1Subscription `json:"Subscriptions,omitempty"` } diff --git a/rest/events/v1/model_events_v1_schema_version_read_response.go b/rest/events/v1/model_list_version_response.go similarity index 54% rename from rest/events/v1/model_events_v1_schema_version_read_response.go rename to rest/events/v1/model_list_version_response.go index f3d5bddb8..be4dc7892 100644 --- a/rest/events/v1/model_events_v1_schema_version_read_response.go +++ b/rest/events/v1/model_list_version_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// EventsV1SchemaVersionReadResponse struct for EventsV1SchemaVersionReadResponse -type EventsV1SchemaVersionReadResponse struct { - Meta EventsV1SchemaVersionReadResponseMeta `json:"Meta,omitempty"` +// ListVersionResponse struct for ListVersionResponse +type ListVersionResponse struct { + Meta ListVersionResponseMeta `json:"Meta,omitempty"` SchemaVersions []EventsV1SchemaVersion `json:"SchemaVersions,omitempty"` } diff --git a/rest/events/v1/model_list_version_response_meta.go b/rest/events/v1/model_list_version_response_meta.go new file mode 100644 index 000000000..f90c3b50f --- /dev/null +++ b/rest/events/v1/model_list_version_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Events + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListVersionResponseMeta struct for ListVersionResponseMeta +type ListVersionResponseMeta struct { + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` +} diff --git a/rest/events/v1/model_update_subscription_request.go b/rest/events/v1/model_update_subscription_request.go index cf55bb387..97ab33e04 100644 --- a/rest/events/v1/model_update_subscription_request.go +++ b/rest/events/v1/model_update_subscription_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/events/v1/response.go b/rest/events/v1/response.go index e8898f71d..dce71a459 100644 --- a/rest/events/v1/response.go +++ b/rest/events/v1/response.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/fax/v1/README.md b/rest/fax/v1/README.md index 99eb5a697..33f770a00 100644 --- a/rest/fax/v1/README.md +++ b/rest/fax/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 5.15.0 +- API version: 1.0.0 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) @@ -46,9 +46,9 @@ Class | Method | HTTP request | Description - [CreateFaxRequest](docs/CreateFaxRequest.md) - [FaxV1Fax](docs/FaxV1Fax.md) - [FaxV1FaxFaxMedia](docs/FaxV1FaxFaxMedia.md) - - [FaxV1FaxFaxMediaReadResponse](docs/FaxV1FaxFaxMediaReadResponse.md) - - [FaxV1FaxReadResponse](docs/FaxV1FaxReadResponse.md) - - [FaxV1FaxReadResponseMeta](docs/FaxV1FaxReadResponseMeta.md) + - [ListFaxMediaResponse](docs/ListFaxMediaResponse.md) + - [ListFaxResponse](docs/ListFaxResponse.md) + - [ListFaxResponseMeta](docs/ListFaxResponseMeta.md) - [UpdateFaxRequest](docs/UpdateFaxRequest.md) diff --git a/rest/fax/v1/api_default.go b/rest/fax/v1/api_default.go index 635b16ee9..53b685e18 100644 --- a/rest/fax/v1/api_default.go +++ b/rest/fax/v1/api_default.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -27,20 +27,20 @@ type DefaultApiService struct { func NewDefaultApiService(client *twilio.Client) *DefaultApiService { return &DefaultApiService { client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + baseURL: fmt.Sprintf("https://fax.twilio.com"), } } // CreateFaxParams Optional parameters for the method 'CreateFax' type CreateFaxParams struct { - From *string `json:"From,omitempty"` - MediaUrl *string `json:"MediaUrl,omitempty"` - Quality *string `json:"Quality,omitempty"` - SipAuthPassword *string `json:"SipAuthPassword,omitempty"` - SipAuthUsername *string `json:"SipAuthUsername,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StoreMedia *bool `json:"StoreMedia,omitempty"` - To *string `json:"To,omitempty"` - Ttl *int32 `json:"Ttl,omitempty"` + From *string `json:"From,omitempty"` + MediaUrl *string `json:"MediaUrl,omitempty"` + Quality *string `json:"Quality,omitempty"` + SipAuthPassword *string `json:"SipAuthPassword,omitempty"` + SipAuthUsername *string `json:"SipAuthUsername,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StoreMedia *bool `json:"StoreMedia,omitempty"` + To *string `json:"To,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` } /* @@ -226,11 +226,11 @@ func (c *DefaultApiService) FetchFaxMedia(FaxSid string, Sid string) (*FaxV1FaxF } // ListFaxParams Optional parameters for the method 'ListFax' type ListFaxParams struct { - From *string `json:"From,omitempty"` - To *string `json:"To,omitempty"` - DateCreatedOnOrBefore *time.Time `json:"DateCreatedOnOrBefore,omitempty"` - DateCreatedAfter *time.Time `json:"DateCreatedAfter,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + From *string `json:"From,omitempty"` + To *string `json:"To,omitempty"` + DateCreatedOnOrBefore *time.Time `json:"DateCreatedOnOrBefore,omitempty"` + DateCreatedAfter *time.Time `json:"DateCreatedAfter,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -242,9 +242,9 @@ Retrieve a list of all faxes. * @param "DateCreatedOnOrBefore" (time.Time) - Retrieve only those faxes with a `date_created` that is before or equal to this value, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. * @param "DateCreatedAfter" (time.Time) - Retrieve only those faxes with a `date_created` that is later than this value, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return FaxV1FaxReadResponse +@return ListFaxResponse */ -func (c *DefaultApiService) ListFax(params *ListFaxParams) (*FaxV1FaxReadResponse, error) { +func (c *DefaultApiService) ListFax(params *ListFaxParams) (*ListFaxResponse, error) { path := "/v1/Faxes" @@ -275,7 +275,7 @@ func (c *DefaultApiService) ListFax(params *ListFaxParams) (*FaxV1FaxReadRespons defer resp.Body.Close() - ps := &FaxV1FaxReadResponse{} + ps := &ListFaxResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -284,7 +284,7 @@ func (c *DefaultApiService) ListFax(params *ListFaxParams) (*FaxV1FaxReadRespons } // ListFaxMediaParams Optional parameters for the method 'ListFaxMedia' type ListFaxMediaParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -293,9 +293,9 @@ Retrieve a list of all fax media instances for the specified fax. * @param FaxSid The SID of the fax with the FaxMedia resources to read. * @param optional nil or *ListFaxMediaOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return FaxV1FaxFaxMediaReadResponse +@return ListFaxMediaResponse */ -func (c *DefaultApiService) ListFaxMedia(FaxSid string, params *ListFaxMediaParams) (*FaxV1FaxFaxMediaReadResponse, error) { +func (c *DefaultApiService) ListFaxMedia(FaxSid string, params *ListFaxMediaParams) (*ListFaxMediaResponse, error) { path := "/v1/Faxes/{FaxSid}/Media" path = strings.Replace(path, "{"+"FaxSid"+"}", FaxSid, -1) @@ -315,7 +315,7 @@ func (c *DefaultApiService) ListFaxMedia(FaxSid string, params *ListFaxMediaPara defer resp.Body.Close() - ps := &FaxV1FaxFaxMediaReadResponse{} + ps := &ListFaxMediaResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -324,7 +324,7 @@ func (c *DefaultApiService) ListFaxMedia(FaxSid string, params *ListFaxMediaPara } // UpdateFaxParams Optional parameters for the method 'UpdateFax' type UpdateFaxParams struct { - Status *string `json:"Status,omitempty"` + Status *string `json:"Status,omitempty"` } /* diff --git a/rest/fax/v1/docs/DefaultApi.md b/rest/fax/v1/docs/DefaultApi.md index 6c3052d03..d744a1317 100644 --- a/rest/fax/v1/docs/DefaultApi.md +++ b/rest/fax/v1/docs/DefaultApi.md @@ -206,7 +206,7 @@ Name | Type | Description | Notes ## ListFax -> FaxV1FaxReadResponse ListFax(ctx, optional) +> ListFaxResponse ListFax(ctx, optional) @@ -235,7 +235,7 @@ Name | Type | Description | Notes ### Return type -[**FaxV1FaxReadResponse**](fax_v1_faxReadResponse.md) +[**ListFaxResponse**](ListFaxResponse.md) ### Authorization @@ -253,7 +253,7 @@ Name | Type | Description | Notes ## ListFaxMedia -> FaxV1FaxFaxMediaReadResponse ListFaxMedia(ctx, FaxSid, optional) +> ListFaxMediaResponse ListFaxMedia(ctx, FaxSid, optional) @@ -280,7 +280,7 @@ Name | Type | Description | Notes ### Return type -[**FaxV1FaxFaxMediaReadResponse**](fax_v1_fax_fax_mediaReadResponse.md) +[**ListFaxMediaResponse**](ListFaxMediaResponse.md) ### Authorization diff --git a/rest/fax/v1/docs/FaxV1FaxFaxMediaReadResponse.md b/rest/fax/v1/docs/ListFaxMediaResponse.md similarity index 74% rename from rest/fax/v1/docs/FaxV1FaxFaxMediaReadResponse.md rename to rest/fax/v1/docs/ListFaxMediaResponse.md index 7b2ecdad3..5c8f8b318 100644 --- a/rest/fax/v1/docs/FaxV1FaxFaxMediaReadResponse.md +++ b/rest/fax/v1/docs/ListFaxMediaResponse.md @@ -1,11 +1,11 @@ -# FaxV1FaxFaxMediaReadResponse +# ListFaxMediaResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Media** | [**[]FaxV1FaxFaxMedia**](fax.v1.fax.fax_media.md) | | [optional] -**Meta** | [**FaxV1FaxReadResponseMeta**](fax_v1_faxReadResponse_meta.md) | | [optional] +**Meta** | [**ListFaxResponseMeta**](ListFaxResponse_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/rest/fax/v1/docs/FaxV1FaxReadResponse.md b/rest/fax/v1/docs/ListFaxResponse.md similarity index 74% rename from rest/fax/v1/docs/FaxV1FaxReadResponse.md rename to rest/fax/v1/docs/ListFaxResponse.md index 06214d6fd..0fb855587 100644 --- a/rest/fax/v1/docs/FaxV1FaxReadResponse.md +++ b/rest/fax/v1/docs/ListFaxResponse.md @@ -1,11 +1,11 @@ -# FaxV1FaxReadResponse +# ListFaxResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Faxes** | [**[]FaxV1Fax**](fax.v1.fax.md) | | [optional] -**Meta** | [**FaxV1FaxReadResponseMeta**](fax_v1_faxReadResponse_meta.md) | | [optional] +**Meta** | [**ListFaxResponseMeta**](ListFaxResponse_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/rest/fax/v1/docs/ListFaxResponseMeta.md b/rest/fax/v1/docs/ListFaxResponseMeta.md new file mode 100644 index 000000000..dc89426b1 --- /dev/null +++ b/rest/fax/v1/docs/ListFaxResponseMeta.md @@ -0,0 +1,17 @@ +# ListFaxResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/fax/v1/model_create_fax_request.go b/rest/fax/v1/model_create_fax_request.go index 91d8ff9bb..a7e36ae71 100644 --- a/rest/fax/v1/model_create_fax_request.go +++ b/rest/fax/v1/model_create_fax_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/fax/v1/model_fax_v1_fax.go b/rest/fax/v1/model_fax_v1_fax.go index adc516c95..3072fba0f 100644 --- a/rest/fax/v1/model_fax_v1_fax.go +++ b/rest/fax/v1/model_fax_v1_fax.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/fax/v1/model_fax_v1_fax_fax_media.go b/rest/fax/v1/model_fax_v1_fax_fax_media.go index 241172eff..1515f85b7 100644 --- a/rest/fax/v1/model_fax_v1_fax_fax_media.go +++ b/rest/fax/v1/model_fax_v1_fax_fax_media.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/fax/v1/model_fax_v1_fax_fax_media_read_response.go b/rest/fax/v1/model_list_fax_media_response.go similarity index 55% rename from rest/fax/v1/model_fax_v1_fax_fax_media_read_response.go rename to rest/fax/v1/model_list_fax_media_response.go index 2d552ea7c..111790aa5 100644 --- a/rest/fax/v1/model_fax_v1_fax_fax_media_read_response.go +++ b/rest/fax/v1/model_list_fax_media_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// FaxV1FaxFaxMediaReadResponse struct for FaxV1FaxFaxMediaReadResponse -type FaxV1FaxFaxMediaReadResponse struct { +// ListFaxMediaResponse struct for ListFaxMediaResponse +type ListFaxMediaResponse struct { Media []FaxV1FaxFaxMedia `json:"Media,omitempty"` - Meta FaxV1FaxReadResponseMeta `json:"Meta,omitempty"` + Meta ListFaxResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/fax/v1/model_fax_v1_fax_read_response.go b/rest/fax/v1/model_list_fax_response.go similarity index 57% rename from rest/fax/v1/model_fax_v1_fax_read_response.go rename to rest/fax/v1/model_list_fax_response.go index 4dda965ba..2781bc2a9 100644 --- a/rest/fax/v1/model_fax_v1_fax_read_response.go +++ b/rest/fax/v1/model_list_fax_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// FaxV1FaxReadResponse struct for FaxV1FaxReadResponse -type FaxV1FaxReadResponse struct { +// ListFaxResponse struct for ListFaxResponse +type ListFaxResponse struct { Faxes []FaxV1Fax `json:"Faxes,omitempty"` - Meta FaxV1FaxReadResponseMeta `json:"Meta,omitempty"` + Meta ListFaxResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/fax/v1/model_fax_v1_fax_read_response_meta.go b/rest/fax/v1/model_list_fax_response_meta.go similarity index 79% rename from rest/fax/v1/model_fax_v1_fax_read_response_meta.go rename to rest/fax/v1/model_list_fax_response_meta.go index 5c9551412..e412aaea9 100644 --- a/rest/fax/v1/model_fax_v1_fax_read_response_meta.go +++ b/rest/fax/v1/model_list_fax_response_meta.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// FaxV1FaxReadResponseMeta struct for FaxV1FaxReadResponseMeta -type FaxV1FaxReadResponseMeta struct { +// ListFaxResponseMeta struct for ListFaxResponseMeta +type ListFaxResponseMeta struct { FirstPageUrl string `json:"FirstPageUrl,omitempty"` Key string `json:"Key,omitempty"` NextPageUrl string `json:"NextPageUrl,omitempty"` diff --git a/rest/fax/v1/model_update_fax_request.go b/rest/fax/v1/model_update_fax_request.go index 7b31ece51..9d4f5c9ad 100644 --- a/rest/fax/v1/model_update_fax_request.go +++ b/rest/fax/v1/model_update_fax_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/fax/v1/response.go b/rest/fax/v1/response.go index 7d95d0580..e354bbab6 100644 --- a/rest/fax/v1/response.go +++ b/rest/fax/v1/response.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/flex/v1/README.md b/rest/flex/v1/README.md index 50092fd8d..0e0ec08d4 100644 --- a/rest/flex/v1/README.md +++ b/rest/flex/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 5.15.0 +- API version: 1.0.0 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) @@ -55,13 +55,13 @@ Class | Method | HTTP request | Description - [CreateFlexFlowRequest](docs/CreateFlexFlowRequest.md) - [CreateWebChannelRequest](docs/CreateWebChannelRequest.md) - [FlexV1Channel](docs/FlexV1Channel.md) - - [FlexV1ChannelReadResponse](docs/FlexV1ChannelReadResponse.md) - - [FlexV1ChannelReadResponseMeta](docs/FlexV1ChannelReadResponseMeta.md) - [FlexV1Configuration](docs/FlexV1Configuration.md) - [FlexV1FlexFlow](docs/FlexV1FlexFlow.md) - - [FlexV1FlexFlowReadResponse](docs/FlexV1FlexFlowReadResponse.md) - [FlexV1WebChannel](docs/FlexV1WebChannel.md) - - [FlexV1WebChannelReadResponse](docs/FlexV1WebChannelReadResponse.md) + - [ListChannelResponse](docs/ListChannelResponse.md) + - [ListChannelResponseMeta](docs/ListChannelResponseMeta.md) + - [ListFlexFlowResponse](docs/ListFlexFlowResponse.md) + - [ListWebChannelResponse](docs/ListWebChannelResponse.md) - [UpdateFlexFlowRequest](docs/UpdateFlexFlowRequest.md) - [UpdateWebChannelRequest](docs/UpdateWebChannelRequest.md) diff --git a/rest/flex/v1/api_default.go b/rest/flex/v1/api_default.go index 89d50b433..9ff5c5e16 100644 --- a/rest/flex/v1/api_default.go +++ b/rest/flex/v1/api_default.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -26,21 +26,21 @@ type DefaultApiService struct { func NewDefaultApiService(client *twilio.Client) *DefaultApiService { return &DefaultApiService { client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + baseURL: fmt.Sprintf("https://flex-api.twilio.com"), } } // CreateChannelParams Optional parameters for the method 'CreateChannel' type CreateChannelParams struct { - ChatFriendlyName *string `json:"ChatFriendlyName,omitempty"` - ChatUniqueName *string `json:"ChatUniqueName,omitempty"` - ChatUserFriendlyName *string `json:"ChatUserFriendlyName,omitempty"` - FlexFlowSid *string `json:"FlexFlowSid,omitempty"` - Identity *string `json:"Identity,omitempty"` - LongLived *bool `json:"LongLived,omitempty"` - PreEngagementData *string `json:"PreEngagementData,omitempty"` - Target *string `json:"Target,omitempty"` - TaskAttributes *string `json:"TaskAttributes,omitempty"` - TaskSid *string `json:"TaskSid,omitempty"` + ChatFriendlyName *string `json:"ChatFriendlyName,omitempty"` + ChatUniqueName *string `json:"ChatUniqueName,omitempty"` + ChatUserFriendlyName *string `json:"ChatUserFriendlyName,omitempty"` + FlexFlowSid *string `json:"FlexFlowSid,omitempty"` + Identity *string `json:"Identity,omitempty"` + LongLived *bool `json:"LongLived,omitempty"` + PreEngagementData *string `json:"PreEngagementData,omitempty"` + Target *string `json:"Target,omitempty"` + TaskAttributes *string `json:"TaskAttributes,omitempty"` + TaskSid *string `json:"TaskSid,omitempty"` } /* @@ -113,23 +113,23 @@ func (c *DefaultApiService) CreateChannel(params *CreateChannelParams) (*FlexV1C } // CreateFlexFlowParams Optional parameters for the method 'CreateFlexFlow' type CreateFlexFlowParams struct { - ChannelType *string `json:"ChannelType,omitempty"` - ChatServiceSid *string `json:"ChatServiceSid,omitempty"` - ContactIdentity *string `json:"ContactIdentity,omitempty"` - Enabled *bool `json:"Enabled,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - IntegrationChannel *string `json:"Integration.Channel,omitempty"` - IntegrationCreationOnMessage *bool `json:"Integration.CreationOnMessage,omitempty"` - IntegrationFlowSid *string `json:"Integration.FlowSid,omitempty"` - IntegrationPriority *int32 `json:"Integration.Priority,omitempty"` - IntegrationRetryCount *int32 `json:"Integration.RetryCount,omitempty"` - IntegrationTimeout *int32 `json:"Integration.Timeout,omitempty"` - IntegrationUrl *string `json:"Integration.Url,omitempty"` - IntegrationWorkflowSid *string `json:"Integration.WorkflowSid,omitempty"` - IntegrationWorkspaceSid *string `json:"Integration.WorkspaceSid,omitempty"` - IntegrationType *string `json:"IntegrationType,omitempty"` - JanitorEnabled *bool `json:"JanitorEnabled,omitempty"` - LongLived *bool `json:"LongLived,omitempty"` + ChannelType *string `json:"ChannelType,omitempty"` + ChatServiceSid *string `json:"ChatServiceSid,omitempty"` + ContactIdentity *string `json:"ContactIdentity,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IntegrationChannel *string `json:"Integration.Channel,omitempty"` + IntegrationCreationOnMessage *bool `json:"Integration.CreationOnMessage,omitempty"` + IntegrationFlowSid *string `json:"Integration.FlowSid,omitempty"` + IntegrationPriority *int32 `json:"Integration.Priority,omitempty"` + IntegrationRetryCount *int32 `json:"Integration.RetryCount,omitempty"` + IntegrationTimeout *int32 `json:"Integration.Timeout,omitempty"` + IntegrationUrl *string `json:"Integration.Url,omitempty"` + IntegrationWorkflowSid *string `json:"Integration.WorkflowSid,omitempty"` + IntegrationWorkspaceSid *string `json:"Integration.WorkspaceSid,omitempty"` + IntegrationType *string `json:"IntegrationType,omitempty"` + JanitorEnabled *bool `json:"JanitorEnabled,omitempty"` + LongLived *bool `json:"LongLived,omitempty"` } /* @@ -230,12 +230,12 @@ func (c *DefaultApiService) CreateFlexFlow(params *CreateFlexFlowParams) (*FlexV } // CreateWebChannelParams Optional parameters for the method 'CreateWebChannel' type CreateWebChannelParams struct { - ChatFriendlyName *string `json:"ChatFriendlyName,omitempty"` - ChatUniqueName *string `json:"ChatUniqueName,omitempty"` - CustomerFriendlyName *string `json:"CustomerFriendlyName,omitempty"` - FlexFlowSid *string `json:"FlexFlowSid,omitempty"` - Identity *string `json:"Identity,omitempty"` - PreEngagementData *string `json:"PreEngagementData,omitempty"` + ChatFriendlyName *string `json:"ChatFriendlyName,omitempty"` + ChatUniqueName *string `json:"ChatUniqueName,omitempty"` + CustomerFriendlyName *string `json:"CustomerFriendlyName,omitempty"` + FlexFlowSid *string `json:"FlexFlowSid,omitempty"` + Identity *string `json:"Identity,omitempty"` + PreEngagementData *string `json:"PreEngagementData,omitempty"` } /* @@ -394,7 +394,7 @@ func (c *DefaultApiService) FetchChannel(Sid string) (*FlexV1Channel, error) { } // FetchConfigurationParams Optional parameters for the method 'FetchConfiguration' type FetchConfigurationParams struct { - UiVersion *string `json:"UiVersion,omitempty"` + UiVersion *string `json:"UiVersion,omitempty"` } /* @@ -491,16 +491,16 @@ func (c *DefaultApiService) FetchWebChannel(Sid string) (*FlexV1WebChannel, erro } // ListChannelParams Optional parameters for the method 'ListChannel' type ListChannelParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* ListChannel Method for ListChannel * @param optional nil or *ListChannelOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return FlexV1ChannelReadResponse +@return ListChannelResponse */ -func (c *DefaultApiService) ListChannel(params *ListChannelParams) (*FlexV1ChannelReadResponse, error) { +func (c *DefaultApiService) ListChannel(params *ListChannelParams) (*ListChannelResponse, error) { path := "/v1/Channels" @@ -519,7 +519,7 @@ func (c *DefaultApiService) ListChannel(params *ListChannelParams) (*FlexV1Chann defer resp.Body.Close() - ps := &FlexV1ChannelReadResponse{} + ps := &ListChannelResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -528,8 +528,8 @@ func (c *DefaultApiService) ListChannel(params *ListChannelParams) (*FlexV1Chann } // ListFlexFlowParams Optional parameters for the method 'ListFlexFlow' type ListFlexFlowParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -537,9 +537,9 @@ ListFlexFlow Method for ListFlexFlow * @param optional nil or *ListFlexFlowOpts - Optional Parameters: * @param "FriendlyName" (string) - The `friendly_name` of the Flex Flow resources to read. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return FlexV1FlexFlowReadResponse +@return ListFlexFlowResponse */ -func (c *DefaultApiService) ListFlexFlow(params *ListFlexFlowParams) (*FlexV1FlexFlowReadResponse, error) { +func (c *DefaultApiService) ListFlexFlow(params *ListFlexFlowParams) (*ListFlexFlowResponse, error) { path := "/v1/FlexFlows" @@ -561,7 +561,7 @@ func (c *DefaultApiService) ListFlexFlow(params *ListFlexFlowParams) (*FlexV1Fle defer resp.Body.Close() - ps := &FlexV1FlexFlowReadResponse{} + ps := &ListFlexFlowResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -570,16 +570,16 @@ func (c *DefaultApiService) ListFlexFlow(params *ListFlexFlowParams) (*FlexV1Fle } // ListWebChannelParams Optional parameters for the method 'ListWebChannel' type ListWebChannelParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* ListWebChannel Method for ListWebChannel * @param optional nil or *ListWebChannelOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return FlexV1WebChannelReadResponse +@return ListWebChannelResponse */ -func (c *DefaultApiService) ListWebChannel(params *ListWebChannelParams) (*FlexV1WebChannelReadResponse, error) { +func (c *DefaultApiService) ListWebChannel(params *ListWebChannelParams) (*ListWebChannelResponse, error) { path := "/v1/WebChannels" @@ -598,7 +598,7 @@ func (c *DefaultApiService) ListWebChannel(params *ListWebChannelParams) (*FlexV defer resp.Body.Close() - ps := &FlexV1WebChannelReadResponse{} + ps := &ListWebChannelResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -635,23 +635,23 @@ func (c *DefaultApiService) UpdateConfiguration() (*FlexV1Configuration, error) } // UpdateFlexFlowParams Optional parameters for the method 'UpdateFlexFlow' type UpdateFlexFlowParams struct { - ChannelType *string `json:"ChannelType,omitempty"` - ChatServiceSid *string `json:"ChatServiceSid,omitempty"` - ContactIdentity *string `json:"ContactIdentity,omitempty"` - Enabled *bool `json:"Enabled,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - IntegrationChannel *string `json:"Integration.Channel,omitempty"` - IntegrationCreationOnMessage *bool `json:"Integration.CreationOnMessage,omitempty"` - IntegrationFlowSid *string `json:"Integration.FlowSid,omitempty"` - IntegrationPriority *int32 `json:"Integration.Priority,omitempty"` - IntegrationRetryCount *int32 `json:"Integration.RetryCount,omitempty"` - IntegrationTimeout *int32 `json:"Integration.Timeout,omitempty"` - IntegrationUrl *string `json:"Integration.Url,omitempty"` - IntegrationWorkflowSid *string `json:"Integration.WorkflowSid,omitempty"` - IntegrationWorkspaceSid *string `json:"Integration.WorkspaceSid,omitempty"` - IntegrationType *string `json:"IntegrationType,omitempty"` - JanitorEnabled *bool `json:"JanitorEnabled,omitempty"` - LongLived *bool `json:"LongLived,omitempty"` + ChannelType *string `json:"ChannelType,omitempty"` + ChatServiceSid *string `json:"ChatServiceSid,omitempty"` + ContactIdentity *string `json:"ContactIdentity,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IntegrationChannel *string `json:"Integration.Channel,omitempty"` + IntegrationCreationOnMessage *bool `json:"Integration.CreationOnMessage,omitempty"` + IntegrationFlowSid *string `json:"Integration.FlowSid,omitempty"` + IntegrationPriority *int32 `json:"Integration.Priority,omitempty"` + IntegrationRetryCount *int32 `json:"Integration.RetryCount,omitempty"` + IntegrationTimeout *int32 `json:"Integration.Timeout,omitempty"` + IntegrationUrl *string `json:"Integration.Url,omitempty"` + IntegrationWorkflowSid *string `json:"Integration.WorkflowSid,omitempty"` + IntegrationWorkspaceSid *string `json:"Integration.WorkspaceSid,omitempty"` + IntegrationType *string `json:"IntegrationType,omitempty"` + JanitorEnabled *bool `json:"JanitorEnabled,omitempty"` + LongLived *bool `json:"LongLived,omitempty"` } /* @@ -754,8 +754,8 @@ func (c *DefaultApiService) UpdateFlexFlow(Sid string, params *UpdateFlexFlowPar } // UpdateWebChannelParams Optional parameters for the method 'UpdateWebChannel' type UpdateWebChannelParams struct { - ChatStatus *string `json:"ChatStatus,omitempty"` - PostEngagementData *string `json:"PostEngagementData,omitempty"` + ChatStatus *string `json:"ChatStatus,omitempty"` + PostEngagementData *string `json:"PostEngagementData,omitempty"` } /* diff --git a/rest/flex/v1/docs/DefaultApi.md b/rest/flex/v1/docs/DefaultApi.md index 18adff410..ba2aa6259 100644 --- a/rest/flex/v1/docs/DefaultApi.md +++ b/rest/flex/v1/docs/DefaultApi.md @@ -411,7 +411,7 @@ Name | Type | Description | Notes ## ListChannel -> FlexV1ChannelReadResponse ListChannel(ctx, optional) +> ListChannelResponse ListChannel(ctx, optional) @@ -434,7 +434,7 @@ Name | Type | Description | Notes ### Return type -[**FlexV1ChannelReadResponse**](flex_v1_channelReadResponse.md) +[**ListChannelResponse**](ListChannelResponse.md) ### Authorization @@ -452,7 +452,7 @@ Name | Type | Description | Notes ## ListFlexFlow -> FlexV1FlexFlowReadResponse ListFlexFlow(ctx, optional) +> ListFlexFlowResponse ListFlexFlow(ctx, optional) @@ -476,7 +476,7 @@ Name | Type | Description | Notes ### Return type -[**FlexV1FlexFlowReadResponse**](flex_v1_flex_flowReadResponse.md) +[**ListFlexFlowResponse**](ListFlexFlowResponse.md) ### Authorization @@ -494,7 +494,7 @@ Name | Type | Description | Notes ## ListWebChannel -> FlexV1WebChannelReadResponse ListWebChannel(ctx, optional) +> ListWebChannelResponse ListWebChannel(ctx, optional) @@ -517,7 +517,7 @@ Name | Type | Description | Notes ### Return type -[**FlexV1WebChannelReadResponse**](flex_v1_web_channelReadResponse.md) +[**ListWebChannelResponse**](ListWebChannelResponse.md) ### Authorization diff --git a/rest/flex/v1/docs/FlexV1ChannelReadResponse.md b/rest/flex/v1/docs/ListChannelResponse.md similarity index 73% rename from rest/flex/v1/docs/FlexV1ChannelReadResponse.md rename to rest/flex/v1/docs/ListChannelResponse.md index a04682baf..24988f288 100644 --- a/rest/flex/v1/docs/FlexV1ChannelReadResponse.md +++ b/rest/flex/v1/docs/ListChannelResponse.md @@ -1,11 +1,11 @@ -# FlexV1ChannelReadResponse +# ListChannelResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FlexChatChannels** | [**[]FlexV1Channel**](flex.v1.channel.md) | | [optional] -**Meta** | [**FlexV1ChannelReadResponseMeta**](flex_v1_channelReadResponse_meta.md) | | [optional] +**Meta** | [**ListChannelResponseMeta**](ListChannelResponse_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/rest/flex/v1/docs/ListChannelResponseMeta.md b/rest/flex/v1/docs/ListChannelResponseMeta.md new file mode 100644 index 000000000..f7b79732c --- /dev/null +++ b/rest/flex/v1/docs/ListChannelResponseMeta.md @@ -0,0 +1,17 @@ +# ListChannelResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/flex/v1/docs/FlexV1FlexFlowReadResponse.md b/rest/flex/v1/docs/ListFlexFlowResponse.md similarity index 73% rename from rest/flex/v1/docs/FlexV1FlexFlowReadResponse.md rename to rest/flex/v1/docs/ListFlexFlowResponse.md index 8dd810530..d6fe64cfb 100644 --- a/rest/flex/v1/docs/FlexV1FlexFlowReadResponse.md +++ b/rest/flex/v1/docs/ListFlexFlowResponse.md @@ -1,11 +1,11 @@ -# FlexV1FlexFlowReadResponse +# ListFlexFlowResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FlexFlows** | [**[]FlexV1FlexFlow**](flex.v1.flex_flow.md) | | [optional] -**Meta** | [**FlexV1ChannelReadResponseMeta**](flex_v1_channelReadResponse_meta.md) | | [optional] +**Meta** | [**ListChannelResponseMeta**](ListChannelResponse_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/rest/flex/v1/docs/FlexV1WebChannelReadResponse.md b/rest/flex/v1/docs/ListWebChannelResponse.md similarity index 73% rename from rest/flex/v1/docs/FlexV1WebChannelReadResponse.md rename to rest/flex/v1/docs/ListWebChannelResponse.md index 8f56658bf..7137d154c 100644 --- a/rest/flex/v1/docs/FlexV1WebChannelReadResponse.md +++ b/rest/flex/v1/docs/ListWebChannelResponse.md @@ -1,11 +1,11 @@ -# FlexV1WebChannelReadResponse +# ListWebChannelResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FlexChatChannels** | [**[]FlexV1WebChannel**](flex.v1.web_channel.md) | | [optional] -**Meta** | [**FlexV1ChannelReadResponseMeta**](flex_v1_channelReadResponse_meta.md) | | [optional] +**Meta** | [**ListChannelResponseMeta**](ListChannelResponse_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/rest/flex/v1/model_create_channel_request.go b/rest/flex/v1/model_create_channel_request.go index baf18f93f..8c36630ba 100644 --- a/rest/flex/v1/model_create_channel_request.go +++ b/rest/flex/v1/model_create_channel_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/flex/v1/model_create_flex_flow_request.go b/rest/flex/v1/model_create_flex_flow_request.go index 1bda60138..691953b63 100644 --- a/rest/flex/v1/model_create_flex_flow_request.go +++ b/rest/flex/v1/model_create_flex_flow_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/flex/v1/model_create_web_channel_request.go b/rest/flex/v1/model_create_web_channel_request.go index 2bb651ab2..27ca2c6c5 100644 --- a/rest/flex/v1/model_create_web_channel_request.go +++ b/rest/flex/v1/model_create_web_channel_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/flex/v1/model_flex_v1_channel.go b/rest/flex/v1/model_flex_v1_channel.go index 012e897d0..87ff2e3ec 100644 --- a/rest/flex/v1/model_flex_v1_channel.go +++ b/rest/flex/v1/model_flex_v1_channel.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/flex/v1/model_flex_v1_configuration.go b/rest/flex/v1/model_flex_v1_configuration.go index d269967d7..5783dc3d9 100644 --- a/rest/flex/v1/model_flex_v1_configuration.go +++ b/rest/flex/v1/model_flex_v1_configuration.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/flex/v1/model_flex_v1_flex_flow.go b/rest/flex/v1/model_flex_v1_flex_flow.go index 213debb8f..a392a0e43 100644 --- a/rest/flex/v1/model_flex_v1_flex_flow.go +++ b/rest/flex/v1/model_flex_v1_flex_flow.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/flex/v1/model_flex_v1_web_channel.go b/rest/flex/v1/model_flex_v1_web_channel.go index 5e13bd807..6cd0f8cae 100644 --- a/rest/flex/v1/model_flex_v1_web_channel.go +++ b/rest/flex/v1/model_flex_v1_web_channel.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/flex/v1/model_flex_v1_channel_read_response.go b/rest/flex/v1/model_list_channel_response.go similarity index 57% rename from rest/flex/v1/model_flex_v1_channel_read_response.go rename to rest/flex/v1/model_list_channel_response.go index 0941750f8..5eb1fdafd 100644 --- a/rest/flex/v1/model_flex_v1_channel_read_response.go +++ b/rest/flex/v1/model_list_channel_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// FlexV1ChannelReadResponse struct for FlexV1ChannelReadResponse -type FlexV1ChannelReadResponse struct { +// ListChannelResponse struct for ListChannelResponse +type ListChannelResponse struct { FlexChatChannels []FlexV1Channel `json:"FlexChatChannels,omitempty"` - Meta FlexV1ChannelReadResponseMeta `json:"Meta,omitempty"` + Meta ListChannelResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/flex/v1/model_flex_v1_channel_read_response_meta.go b/rest/flex/v1/model_list_channel_response_meta.go similarity index 78% rename from rest/flex/v1/model_flex_v1_channel_read_response_meta.go rename to rest/flex/v1/model_list_channel_response_meta.go index 6837a3bfb..b195a61ca 100644 --- a/rest/flex/v1/model_flex_v1_channel_read_response_meta.go +++ b/rest/flex/v1/model_list_channel_response_meta.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// FlexV1ChannelReadResponseMeta struct for FlexV1ChannelReadResponseMeta -type FlexV1ChannelReadResponseMeta struct { +// ListChannelResponseMeta struct for ListChannelResponseMeta +type ListChannelResponseMeta struct { FirstPageUrl string `json:"FirstPageUrl,omitempty"` Key string `json:"Key,omitempty"` NextPageUrl string `json:"NextPageUrl,omitempty"` diff --git a/rest/flex/v1/model_flex_v1_flex_flow_read_response.go b/rest/flex/v1/model_list_flex_flow_response.go similarity index 55% rename from rest/flex/v1/model_flex_v1_flex_flow_read_response.go rename to rest/flex/v1/model_list_flex_flow_response.go index abac87c87..faa5a95bb 100644 --- a/rest/flex/v1/model_flex_v1_flex_flow_read_response.go +++ b/rest/flex/v1/model_list_flex_flow_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// FlexV1FlexFlowReadResponse struct for FlexV1FlexFlowReadResponse -type FlexV1FlexFlowReadResponse struct { +// ListFlexFlowResponse struct for ListFlexFlowResponse +type ListFlexFlowResponse struct { FlexFlows []FlexV1FlexFlow `json:"FlexFlows,omitempty"` - Meta FlexV1ChannelReadResponseMeta `json:"Meta,omitempty"` + Meta ListChannelResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/flex/v1/model_flex_v1_web_channel_read_response.go b/rest/flex/v1/model_list_web_channel_response.go similarity index 56% rename from rest/flex/v1/model_flex_v1_web_channel_read_response.go rename to rest/flex/v1/model_list_web_channel_response.go index 932d5fb76..d0ee041dd 100644 --- a/rest/flex/v1/model_flex_v1_web_channel_read_response.go +++ b/rest/flex/v1/model_list_web_channel_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// FlexV1WebChannelReadResponse struct for FlexV1WebChannelReadResponse -type FlexV1WebChannelReadResponse struct { +// ListWebChannelResponse struct for ListWebChannelResponse +type ListWebChannelResponse struct { FlexChatChannels []FlexV1WebChannel `json:"FlexChatChannels,omitempty"` - Meta FlexV1ChannelReadResponseMeta `json:"Meta,omitempty"` + Meta ListChannelResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/flex/v1/model_update_flex_flow_request.go b/rest/flex/v1/model_update_flex_flow_request.go index 991ee1002..95ca68031 100644 --- a/rest/flex/v1/model_update_flex_flow_request.go +++ b/rest/flex/v1/model_update_flex_flow_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/flex/v1/model_update_web_channel_request.go b/rest/flex/v1/model_update_web_channel_request.go index 468660c70..eb9642042 100644 --- a/rest/flex/v1/model_update_web_channel_request.go +++ b/rest/flex/v1/model_update_web_channel_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/flex/v1/response.go b/rest/flex/v1/response.go index 97be2cd3d..bee578fbe 100644 --- a/rest/flex/v1/response.go +++ b/rest/flex/v1/response.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/insights/v1/README.md b/rest/insights/v1/README.md index 562d3f8da..dde043827 100644 --- a/rest/insights/v1/README.md +++ b/rest/insights/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 5.15.0 +- API version: 1.0.0 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) @@ -31,29 +31,29 @@ All URIs are relative to *http://localhost* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*CallTagApi* | [**FetchCall**](docs/CallTagApi.md#fetchcall) | **Get** /v1/Voice/{Sid} | -*EventsTagApi* | [**ListEvent**](docs/EventsTagApi.md#listevent) | **Get** /v1/Voice/{CallSid}/Events | -*MetricsTagApi* | [**ListMetric**](docs/MetricsTagApi.md#listmetric) | **Get** /v1/Voice/{CallSid}/Metrics | -*SummaryTagApi* | [**FetchSummary**](docs/SummaryTagApi.md#fetchsummary) | **Get** /v1/Voice/{CallSid}/Summary | -*VideoParticipantSummaryTagApi* | [**FetchVideoParticipantSummary**](docs/VideoParticipantSummaryTagApi.md#fetchvideoparticipantsummary) | **Get** /v1/Video/Rooms/{RoomSid}/Participants/{ParticipantSid} | -*VideoParticipantSummaryTagApi* | [**ListVideoParticipantSummary**](docs/VideoParticipantSummaryTagApi.md#listvideoparticipantsummary) | **Get** /v1/Video/Rooms/{RoomSid}/Participants | -*VideoRoomSummaryTagApi* | [**FetchVideoRoomSummary**](docs/VideoRoomSummaryTagApi.md#fetchvideoroomsummary) | **Get** /v1/Video/Rooms/{RoomSid} | -*VideoRoomSummaryTagApi* | [**ListVideoRoomSummary**](docs/VideoRoomSummaryTagApi.md#listvideoroomsummary) | **Get** /v1/Video/Rooms | +*DefaultApi* | [**FetchCall**](docs/DefaultApi.md#fetchcall) | **Get** /v1/Voice/{Sid} | +*DefaultApi* | [**FetchSummary**](docs/DefaultApi.md#fetchsummary) | **Get** /v1/Voice/{CallSid}/Summary | +*DefaultApi* | [**FetchVideoParticipantSummary**](docs/DefaultApi.md#fetchvideoparticipantsummary) | **Get** /v1/Video/Rooms/{RoomSid}/Participants/{ParticipantSid} | +*DefaultApi* | [**FetchVideoRoomSummary**](docs/DefaultApi.md#fetchvideoroomsummary) | **Get** /v1/Video/Rooms/{RoomSid} | +*DefaultApi* | [**ListEvent**](docs/DefaultApi.md#listevent) | **Get** /v1/Voice/{CallSid}/Events | +*DefaultApi* | [**ListMetric**](docs/DefaultApi.md#listmetric) | **Get** /v1/Voice/{CallSid}/Metrics | +*DefaultApi* | [**ListVideoParticipantSummary**](docs/DefaultApi.md#listvideoparticipantsummary) | **Get** /v1/Video/Rooms/{RoomSid}/Participants | +*DefaultApi* | [**ListVideoRoomSummary**](docs/DefaultApi.md#listvideoroomsummary) | **Get** /v1/Video/Rooms | ## Documentation For Models - [InsightsV1Call](docs/InsightsV1Call.md) - [InsightsV1CallEvent](docs/InsightsV1CallEvent.md) - - [InsightsV1CallEventReadResponse](docs/InsightsV1CallEventReadResponse.md) - [InsightsV1CallMetric](docs/InsightsV1CallMetric.md) - - [InsightsV1CallMetricReadResponse](docs/InsightsV1CallMetricReadResponse.md) - [InsightsV1CallSummary](docs/InsightsV1CallSummary.md) - [InsightsV1VideoRoomSummary](docs/InsightsV1VideoRoomSummary.md) - - [InsightsV1VideoRoomSummaryReadResponse](docs/InsightsV1VideoRoomSummaryReadResponse.md) - - [InsightsV1VideoRoomSummaryReadResponseMeta](docs/InsightsV1VideoRoomSummaryReadResponseMeta.md) - [InsightsV1VideoRoomSummaryVideoParticipantSummary](docs/InsightsV1VideoRoomSummaryVideoParticipantSummary.md) - - [InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse](docs/InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse.md) + - [ListEventResponse](docs/ListEventResponse.md) + - [ListMetricResponse](docs/ListMetricResponse.md) + - [ListVideoParticipantSummaryResponse](docs/ListVideoParticipantSummaryResponse.md) + - [ListVideoRoomSummaryResponse](docs/ListVideoRoomSummaryResponse.md) + - [ListVideoRoomSummaryResponseMeta](docs/ListVideoRoomSummaryResponseMeta.md) ## Documentation For Authorization diff --git a/rest/insights/v1/api_call_tag.go b/rest/insights/v1/api_call_tag.go deleted file mode 100644 index 51cfdd199..000000000 --- a/rest/insights/v1/api_call_tag.go +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Twilio - Insights - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi - -import ( - "encoding/json" - "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" -) - -type CallTagApiService struct { - baseURL string - client *twilio.Client -} - -func NewCallTagApiService(client *twilio.Client) *CallTagApiService { - return &CallTagApiService { - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } -} - -/* -FetchCall Method for FetchCall - * @param Sid -@return InsightsV1Call -*/ -func (c *CallTagApiService) FetchCall(Sid string) (*InsightsV1Call, error) { - path := "/v1/Voice/{Sid}" - path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) - - - data := url.Values{} - headers := 0 - - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &InsightsV1Call{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} diff --git a/rest/insights/v1/api_default.go b/rest/insights/v1/api_default.go new file mode 100644 index 000000000..c0a8e96ad --- /dev/null +++ b/rest/insights/v1/api_default.go @@ -0,0 +1,357 @@ +/* + * Twilio - Insights + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "encoding/json" + "fmt" + twilio "github.com/twilio/twilio-go/client" + "net/url" + "strings" + "time" +) + +type DefaultApiService struct { + baseURL string + client *twilio.Client +} + +func NewDefaultApiService(client *twilio.Client) *DefaultApiService { + return &DefaultApiService { + client: client, + baseURL: fmt.Sprintf("https://insights.twilio.com"), + } +} + +/* +FetchCall Method for FetchCall + * @param Sid +@return InsightsV1Call +*/ +func (c *DefaultApiService) FetchCall(Sid string) (*InsightsV1Call, error) { + path := "/v1/Voice/{Sid}" + path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) + + + data := url.Values{} + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &InsightsV1Call{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// FetchSummaryParams Optional parameters for the method 'FetchSummary' +type FetchSummaryParams struct { + ProcessingState *string `json:"ProcessingState,omitempty"` +} + +/* +FetchSummary Method for FetchSummary + * @param CallSid + * @param optional nil or *FetchSummaryOpts - Optional Parameters: + * @param "ProcessingState" (string) - +@return InsightsV1CallSummary +*/ +func (c *DefaultApiService) FetchSummary(CallSid string, params *FetchSummaryParams) (*InsightsV1CallSummary, error) { + path := "/v1/Voice/{CallSid}/Summary" + path = strings.Replace(path, "{"+"CallSid"+"}", CallSid, -1) + + + data := url.Values{} + headers := 0 + + if params != nil && params.ProcessingState != nil { + data.Set("ProcessingState", *params.ProcessingState) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &InsightsV1CallSummary{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchVideoParticipantSummary Method for FetchVideoParticipantSummary + * @param RoomSid + * @param ParticipantSid +@return InsightsV1VideoRoomSummaryVideoParticipantSummary +*/ +func (c *DefaultApiService) FetchVideoParticipantSummary(RoomSid string, ParticipantSid string) (*InsightsV1VideoRoomSummaryVideoParticipantSummary, error) { + path := "/v1/Video/Rooms/{RoomSid}/Participants/{ParticipantSid}" + path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) + path = strings.Replace(path, "{"+"ParticipantSid"+"}", ParticipantSid, -1) + + + data := url.Values{} + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &InsightsV1VideoRoomSummaryVideoParticipantSummary{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} + +/* +FetchVideoRoomSummary Method for FetchVideoRoomSummary + * @param RoomSid +@return InsightsV1VideoRoomSummary +*/ +func (c *DefaultApiService) FetchVideoRoomSummary(RoomSid string) (*InsightsV1VideoRoomSummary, error) { + path := "/v1/Video/Rooms/{RoomSid}" + path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) + + + data := url.Values{} + headers := 0 + + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &InsightsV1VideoRoomSummary{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListEventParams Optional parameters for the method 'ListEvent' +type ListEventParams struct { + Edge *string `json:"Edge,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListEvent Method for ListEvent + * @param CallSid + * @param optional nil or *ListEventOpts - Optional Parameters: + * @param "Edge" (string) - + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ListEventResponse +*/ +func (c *DefaultApiService) ListEvent(CallSid string, params *ListEventParams) (*ListEventResponse, error) { + path := "/v1/Voice/{CallSid}/Events" + path = strings.Replace(path, "{"+"CallSid"+"}", CallSid, -1) + + + data := url.Values{} + headers := 0 + + if params != nil && params.Edge != nil { + data.Set("Edge", *params.Edge) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", fmt.Sprint(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ListEventResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListMetricParams Optional parameters for the method 'ListMetric' +type ListMetricParams struct { + Edge *string `json:"Edge,omitempty"` + Direction *string `json:"Direction,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListMetric Method for ListMetric + * @param CallSid + * @param optional nil or *ListMetricOpts - Optional Parameters: + * @param "Edge" (string) - + * @param "Direction" (string) - + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ListMetricResponse +*/ +func (c *DefaultApiService) ListMetric(CallSid string, params *ListMetricParams) (*ListMetricResponse, error) { + path := "/v1/Voice/{CallSid}/Metrics" + path = strings.Replace(path, "{"+"CallSid"+"}", CallSid, -1) + + + data := url.Values{} + headers := 0 + + if params != nil && params.Edge != nil { + data.Set("Edge", *params.Edge) + } + if params != nil && params.Direction != nil { + data.Set("Direction", *params.Direction) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", fmt.Sprint(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ListMetricResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListVideoParticipantSummaryParams Optional parameters for the method 'ListVideoParticipantSummary' +type ListVideoParticipantSummaryParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListVideoParticipantSummary Method for ListVideoParticipantSummary + * @param RoomSid + * @param optional nil or *ListVideoParticipantSummaryOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ListVideoParticipantSummaryResponse +*/ +func (c *DefaultApiService) ListVideoParticipantSummary(RoomSid string, params *ListVideoParticipantSummaryParams) (*ListVideoParticipantSummaryResponse, error) { + path := "/v1/Video/Rooms/{RoomSid}/Participants" + path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) + + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", fmt.Sprint(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ListVideoParticipantSummaryResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListVideoRoomSummaryParams Optional parameters for the method 'ListVideoRoomSummary' +type ListVideoRoomSummaryParams struct { + RoomType *[]string `json:"RoomType,omitempty"` + Codec *[]string `json:"Codec,omitempty"` + RoomName *string `json:"RoomName,omitempty"` + CreatedAfter *time.Time `json:"CreatedAfter,omitempty"` + CreatedBefore *time.Time `json:"CreatedBefore,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListVideoRoomSummary Method for ListVideoRoomSummary + * @param optional nil or *ListVideoRoomSummaryOpts - Optional Parameters: + * @param "RoomType" ([]string) - + * @param "Codec" ([]string) - + * @param "RoomName" (string) - + * @param "CreatedAfter" (time.Time) - + * @param "CreatedBefore" (time.Time) - + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ListVideoRoomSummaryResponse +*/ +func (c *DefaultApiService) ListVideoRoomSummary(params *ListVideoRoomSummaryParams) (*ListVideoRoomSummaryResponse, error) { + path := "/v1/Video/Rooms" + + + data := url.Values{} + headers := 0 + + if params != nil && params.RoomType != nil { + data.Set("RoomType", strings.Join(*params.RoomType, ",")) + } + if params != nil && params.Codec != nil { + data.Set("Codec", strings.Join(*params.Codec, ",")) + } + if params != nil && params.RoomName != nil { + data.Set("RoomName", *params.RoomName) + } + if params != nil && params.CreatedAfter != nil { + data.Set("CreatedAfter", fmt.Sprint(*params.CreatedAfter)) + } + if params != nil && params.CreatedBefore != nil { + data.Set("CreatedBefore", fmt.Sprint(*params.CreatedBefore)) + } + if params != nil && params.PageSize != nil { + data.Set("PageSize", fmt.Sprint(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ListVideoRoomSummaryResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} diff --git a/rest/insights/v1/api_events_tag.go b/rest/insights/v1/api_events_tag.go deleted file mode 100644 index b07ca8971..000000000 --- a/rest/insights/v1/api_events_tag.go +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Twilio - Insights - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi - -import ( - "encoding/json" - "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" -) - -type EventsTagApiService struct { - baseURL string - client *twilio.Client -} - -func NewEventsTagApiService(client *twilio.Client) *EventsTagApiService { - return &EventsTagApiService { - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } -} -// ListEventParams Optional parameters for the method 'ListEvent' -type ListEventParams struct { - Edge *string `json:"Edge,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` -} - -/* -ListEvent Method for ListEvent - * @param CallSid - * @param optional nil or *ListEventOpts - Optional Parameters: - * @param "Edge" (string) - - * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return InsightsV1CallEventReadResponse -*/ -func (c *EventsTagApiService) ListEvent(CallSid string, params *ListEventParams) (*InsightsV1CallEventReadResponse, error) { - path := "/v1/Voice/{CallSid}/Events" - path = strings.Replace(path, "{"+"CallSid"+"}", CallSid, -1) - - - data := url.Values{} - headers := 0 - - if params != nil && params.Edge != nil { - data.Set("Edge", *params.Edge) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", fmt.Sprint(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &InsightsV1CallEventReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} diff --git a/rest/insights/v1/api_metrics_tag.go b/rest/insights/v1/api_metrics_tag.go deleted file mode 100644 index 14fc77b35..000000000 --- a/rest/insights/v1/api_metrics_tag.go +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Twilio - Insights - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi - -import ( - "encoding/json" - "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" -) - -type MetricsTagApiService struct { - baseURL string - client *twilio.Client -} - -func NewMetricsTagApiService(client *twilio.Client) *MetricsTagApiService { - return &MetricsTagApiService { - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } -} -// ListMetricParams Optional parameters for the method 'ListMetric' -type ListMetricParams struct { - Edge *string `json:"Edge,omitempty"` - Direction *string `json:"Direction,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` -} - -/* -ListMetric Method for ListMetric - * @param CallSid - * @param optional nil or *ListMetricOpts - Optional Parameters: - * @param "Edge" (string) - - * @param "Direction" (string) - - * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return InsightsV1CallMetricReadResponse -*/ -func (c *MetricsTagApiService) ListMetric(CallSid string, params *ListMetricParams) (*InsightsV1CallMetricReadResponse, error) { - path := "/v1/Voice/{CallSid}/Metrics" - path = strings.Replace(path, "{"+"CallSid"+"}", CallSid, -1) - - - data := url.Values{} - headers := 0 - - if params != nil && params.Edge != nil { - data.Set("Edge", *params.Edge) - } - if params != nil && params.Direction != nil { - data.Set("Direction", *params.Direction) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", fmt.Sprint(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &InsightsV1CallMetricReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} diff --git a/rest/insights/v1/api_summary_tag.go b/rest/insights/v1/api_summary_tag.go deleted file mode 100644 index b0763d55d..000000000 --- a/rest/insights/v1/api_summary_tag.go +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Twilio - Insights - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi - -import ( - "encoding/json" - "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" -) - -type SummaryTagApiService struct { - baseURL string - client *twilio.Client -} - -func NewSummaryTagApiService(client *twilio.Client) *SummaryTagApiService { - return &SummaryTagApiService { - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } -} -// FetchSummaryParams Optional parameters for the method 'FetchSummary' -type FetchSummaryParams struct { - ProcessingState *string `json:"ProcessingState,omitempty"` -} - -/* -FetchSummary Method for FetchSummary - * @param CallSid - * @param optional nil or *FetchSummaryOpts - Optional Parameters: - * @param "ProcessingState" (string) - -@return InsightsV1CallSummary -*/ -func (c *SummaryTagApiService) FetchSummary(CallSid string, params *FetchSummaryParams) (*InsightsV1CallSummary, error) { - path := "/v1/Voice/{CallSid}/Summary" - path = strings.Replace(path, "{"+"CallSid"+"}", CallSid, -1) - - - data := url.Values{} - headers := 0 - - if params != nil && params.ProcessingState != nil { - data.Set("ProcessingState", *params.ProcessingState) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &InsightsV1CallSummary{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} diff --git a/rest/insights/v1/api_video_participant_summary_tag.go b/rest/insights/v1/api_video_participant_summary_tag.go deleted file mode 100644 index cbe6a195e..000000000 --- a/rest/insights/v1/api_video_participant_summary_tag.go +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Twilio - Insights - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi - -import ( - "encoding/json" - "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" -) - -type VideoParticipantSummaryTagApiService struct { - baseURL string - client *twilio.Client -} - -func NewVideoParticipantSummaryTagApiService(client *twilio.Client) *VideoParticipantSummaryTagApiService { - return &VideoParticipantSummaryTagApiService { - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } -} - -/* -FetchVideoParticipantSummary Method for FetchVideoParticipantSummary - * @param RoomSid - * @param ParticipantSid -@return InsightsV1VideoRoomSummaryVideoParticipantSummary -*/ -func (c *VideoParticipantSummaryTagApiService) FetchVideoParticipantSummary(RoomSid string, ParticipantSid string) (*InsightsV1VideoRoomSummaryVideoParticipantSummary, error) { - path := "/v1/Video/Rooms/{RoomSid}/Participants/{ParticipantSid}" - path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) - path = strings.Replace(path, "{"+"ParticipantSid"+"}", ParticipantSid, -1) - - - data := url.Values{} - headers := 0 - - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &InsightsV1VideoRoomSummaryVideoParticipantSummary{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} -// ListVideoParticipantSummaryParams Optional parameters for the method 'ListVideoParticipantSummary' -type ListVideoParticipantSummaryParams struct { - PageSize *int32 `json:"PageSize,omitempty"` -} - -/* -ListVideoParticipantSummary Method for ListVideoParticipantSummary - * @param RoomSid - * @param optional nil or *ListVideoParticipantSummaryOpts - Optional Parameters: - * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse -*/ -func (c *VideoParticipantSummaryTagApiService) ListVideoParticipantSummary(RoomSid string, params *ListVideoParticipantSummaryParams) (*InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse, error) { - path := "/v1/Video/Rooms/{RoomSid}/Participants" - path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) - - - data := url.Values{} - headers := 0 - - if params != nil && params.PageSize != nil { - data.Set("PageSize", fmt.Sprint(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} diff --git a/rest/insights/v1/api_video_room_summary_tag.go b/rest/insights/v1/api_video_room_summary_tag.go deleted file mode 100644 index 0fca291b6..000000000 --- a/rest/insights/v1/api_video_room_summary_tag.go +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Twilio - Insights - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi - -import ( - "encoding/json" - "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" - "strings" - "time" -) - -type VideoRoomSummaryTagApiService struct { - baseURL string - client *twilio.Client -} - -func NewVideoRoomSummaryTagApiService(client *twilio.Client) *VideoRoomSummaryTagApiService { - return &VideoRoomSummaryTagApiService { - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } -} - -/* -FetchVideoRoomSummary Method for FetchVideoRoomSummary - * @param RoomSid -@return InsightsV1VideoRoomSummary -*/ -func (c *VideoRoomSummaryTagApiService) FetchVideoRoomSummary(RoomSid string) (*InsightsV1VideoRoomSummary, error) { - path := "/v1/Video/Rooms/{RoomSid}" - path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) - - - data := url.Values{} - headers := 0 - - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &InsightsV1VideoRoomSummary{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} -// ListVideoRoomSummaryParams Optional parameters for the method 'ListVideoRoomSummary' -type ListVideoRoomSummaryParams struct { - RoomType *[]string `json:"RoomType,omitempty"` - Codec *[]string `json:"Codec,omitempty"` - RoomName *string `json:"RoomName,omitempty"` - CreatedAfter *time.Time `json:"CreatedAfter,omitempty"` - CreatedBefore *time.Time `json:"CreatedBefore,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` -} - -/* -ListVideoRoomSummary Method for ListVideoRoomSummary - * @param optional nil or *ListVideoRoomSummaryOpts - Optional Parameters: - * @param "RoomType" ([]string) - - * @param "Codec" ([]string) - - * @param "RoomName" (string) - - * @param "CreatedAfter" (time.Time) - - * @param "CreatedBefore" (time.Time) - - * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return InsightsV1VideoRoomSummaryReadResponse -*/ -func (c *VideoRoomSummaryTagApiService) ListVideoRoomSummary(params *ListVideoRoomSummaryParams) (*InsightsV1VideoRoomSummaryReadResponse, error) { - path := "/v1/Video/Rooms" - - - data := url.Values{} - headers := 0 - - if params != nil && params.RoomType != nil { - data.Set("RoomType", strings.Join(*params.RoomType, ",")) - } - if params != nil && params.Codec != nil { - data.Set("Codec", strings.Join(*params.Codec, ",")) - } - if params != nil && params.RoomName != nil { - data.Set("RoomName", *params.RoomName) - } - if params != nil && params.CreatedAfter != nil { - data.Set("CreatedAfter", fmt.Sprint(*params.CreatedAfter)) - } - if params != nil && params.CreatedBefore != nil { - data.Set("CreatedBefore", fmt.Sprint(*params.CreatedBefore)) - } - if params != nil && params.PageSize != nil { - data.Set("PageSize", fmt.Sprint(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &InsightsV1VideoRoomSummaryReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} diff --git a/rest/insights/v1/docs/CallTagApi.md b/rest/insights/v1/docs/CallTagApi.md deleted file mode 100644 index 721f70b8f..000000000 --- a/rest/insights/v1/docs/CallTagApi.md +++ /dev/null @@ -1,41 +0,0 @@ -# \CallTagApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**FetchCall**](CallTagApi.md#FetchCall) | **Get** /v1/Voice/{Sid} | - - - -## FetchCall - -> InsightsV1Call FetchCall(ctx, Sid) - - - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**Sid** | **string**| | - -### Return type - -[**InsightsV1Call**](insights.v1.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) - diff --git a/rest/insights/v1/docs/DefaultApi.md b/rest/insights/v1/docs/DefaultApi.md new file mode 100644 index 000000000..5f5b312df --- /dev/null +++ b/rest/insights/v1/docs/DefaultApi.md @@ -0,0 +1,334 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**FetchCall**](DefaultApi.md#FetchCall) | **Get** /v1/Voice/{Sid} | +[**FetchSummary**](DefaultApi.md#FetchSummary) | **Get** /v1/Voice/{CallSid}/Summary | +[**FetchVideoParticipantSummary**](DefaultApi.md#FetchVideoParticipantSummary) | **Get** /v1/Video/Rooms/{RoomSid}/Participants/{ParticipantSid} | +[**FetchVideoRoomSummary**](DefaultApi.md#FetchVideoRoomSummary) | **Get** /v1/Video/Rooms/{RoomSid} | +[**ListEvent**](DefaultApi.md#ListEvent) | **Get** /v1/Voice/{CallSid}/Events | +[**ListMetric**](DefaultApi.md#ListMetric) | **Get** /v1/Voice/{CallSid}/Metrics | +[**ListVideoParticipantSummary**](DefaultApi.md#ListVideoParticipantSummary) | **Get** /v1/Video/Rooms/{RoomSid}/Participants | +[**ListVideoRoomSummary**](DefaultApi.md#ListVideoRoomSummary) | **Get** /v1/Video/Rooms | + + + +## FetchCall + +> InsightsV1Call FetchCall(ctx, Sid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**Sid** | **string**| | + +### Return type + +[**InsightsV1Call**](insights.v1.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) + + +## FetchSummary + +> InsightsV1CallSummary FetchSummary(ctx, CallSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**CallSid** | **string**| | + **optional** | ***FetchSummaryOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a FetchSummaryOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **ProcessingState** | **optional.String**| | + +### Return type + +[**InsightsV1CallSummary**](insights.v1.call.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) + + +## FetchVideoParticipantSummary + +> InsightsV1VideoRoomSummaryVideoParticipantSummary FetchVideoParticipantSummary(ctx, RoomSid, ParticipantSid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**RoomSid** | **string**| | +**ParticipantSid** | **string**| | + +### Return type + +[**InsightsV1VideoRoomSummaryVideoParticipantSummary**](insights.v1.video_room_summary.video_participant_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) + + +## FetchVideoRoomSummary + +> InsightsV1VideoRoomSummary FetchVideoRoomSummary(ctx, RoomSid) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**RoomSid** | **string**| | + +### Return type + +[**InsightsV1VideoRoomSummary**](insights.v1.video_room_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) + + +## ListEvent + +> ListEventResponse ListEvent(ctx, CallSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**CallSid** | **string**| | + **optional** | ***ListEventOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListEventOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **Edge** | **optional.String**| | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ListEventResponse**](ListEventResponse.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) + + +## ListMetric + +> ListMetricResponse ListMetric(ctx, CallSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**CallSid** | **string**| | + **optional** | ***ListMetricOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListMetricOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **Edge** | **optional.String**| | + **Direction** | **optional.String**| | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ListMetricResponse**](ListMetricResponse.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) + + +## ListVideoParticipantSummary + +> ListVideoParticipantSummaryResponse ListVideoParticipantSummary(ctx, RoomSid, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**RoomSid** | **string**| | + **optional** | ***ListVideoParticipantSummaryOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListVideoParticipantSummaryOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ListVideoParticipantSummaryResponse**](ListVideoParticipantSummaryResponse.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) + + +## ListVideoRoomSummary + +> ListVideoRoomSummaryResponse ListVideoRoomSummary(ctx, optional) + + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListVideoRoomSummaryOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListVideoRoomSummaryOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **RoomType** | [**optional.Interface of []string**](string.md)| | + **Codec** | [**optional.Interface of []string**](string.md)| | + **RoomName** | **optional.String**| | + **CreatedAfter** | **optional.Time**| | + **CreatedBefore** | **optional.Time**| | + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ListVideoRoomSummaryResponse**](ListVideoRoomSummaryResponse.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/rest/insights/v1/docs/EventsTagApi.md b/rest/insights/v1/docs/EventsTagApi.md deleted file mode 100644 index 8bf7e091e..000000000 --- a/rest/insights/v1/docs/EventsTagApi.md +++ /dev/null @@ -1,53 +0,0 @@ -# \EventsTagApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**ListEvent**](EventsTagApi.md#ListEvent) | **Get** /v1/Voice/{CallSid}/Events | - - - -## ListEvent - -> InsightsV1CallEventReadResponse ListEvent(ctx, CallSid, optional) - - - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**CallSid** | **string**| | - **optional** | ***ListEventOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a ListEventOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **Edge** | **optional.String**| | - **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | - -### Return type - -[**InsightsV1CallEventReadResponse**](insights_v1_call_eventReadResponse.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/rest/insights/v1/docs/InsightsV1CallSummary.md b/rest/insights/v1/docs/InsightsV1CallSummary.md index dd570eb83..698371433 100644 --- a/rest/insights/v1/docs/InsightsV1CallSummary.md +++ b/rest/insights/v1/docs/InsightsV1CallSummary.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **CarrierEdge** | [**map[string]interface{}**](.md) | | [optional] **ClientEdge** | [**map[string]interface{}**](.md) | | [optional] **ConnectDuration** | Pointer to **int32** | | [optional] +**CreatedTime** | [**time.Time**](time.Time.md) | | [optional] **Duration** | Pointer to **int32** | | [optional] **EndTime** | [**time.Time**](time.Time.md) | | [optional] **From** | [**map[string]interface{}**](.md) | | [optional] diff --git a/rest/insights/v1/docs/InsightsV1VideoRoomSummaryReadResponseMeta.md b/rest/insights/v1/docs/InsightsV1VideoRoomSummaryReadResponseMeta.md deleted file mode 100644 index 2661ab57e..000000000 --- a/rest/insights/v1/docs/InsightsV1VideoRoomSummaryReadResponseMeta.md +++ /dev/null @@ -1,17 +0,0 @@ -# InsightsV1VideoRoomSummaryReadResponseMeta - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FirstPageUrl** | **string** | | [optional] -**Key** | **string** | | [optional] -**NextPageUrl** | **string** | | [optional] -**Page** | **int32** | | [optional] -**PageSize** | **int32** | | [optional] -**PreviousPageUrl** | **string** | | [optional] -**Url** | **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/rest/insights/v1/docs/InsightsV1CallEventReadResponse.md b/rest/insights/v1/docs/ListEventResponse.md similarity index 68% rename from rest/insights/v1/docs/InsightsV1CallEventReadResponse.md rename to rest/insights/v1/docs/ListEventResponse.md index a84f06bd9..d33f724c7 100644 --- a/rest/insights/v1/docs/InsightsV1CallEventReadResponse.md +++ b/rest/insights/v1/docs/ListEventResponse.md @@ -1,11 +1,11 @@ -# InsightsV1CallEventReadResponse +# ListEventResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Events** | [**[]InsightsV1CallEvent**](insights.v1.call.event.md) | | [optional] -**Meta** | [**InsightsV1VideoRoomSummaryReadResponseMeta**](insights_v1_video_room_summaryReadResponse_meta.md) | | [optional] +**Meta** | [**ListVideoRoomSummaryResponseMeta**](ListVideoRoomSummaryResponse_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/rest/insights/v1/docs/InsightsV1CallMetricReadResponse.md b/rest/insights/v1/docs/ListMetricResponse.md similarity index 68% rename from rest/insights/v1/docs/InsightsV1CallMetricReadResponse.md rename to rest/insights/v1/docs/ListMetricResponse.md index 436d6b534..f2dd0949b 100644 --- a/rest/insights/v1/docs/InsightsV1CallMetricReadResponse.md +++ b/rest/insights/v1/docs/ListMetricResponse.md @@ -1,10 +1,10 @@ -# InsightsV1CallMetricReadResponse +# ListMetricResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**InsightsV1VideoRoomSummaryReadResponseMeta**](insights_v1_video_room_summaryReadResponse_meta.md) | | [optional] +**Meta** | [**ListVideoRoomSummaryResponseMeta**](ListVideoRoomSummaryResponse_meta.md) | | [optional] **Metrics** | [**[]InsightsV1CallMetric**](insights.v1.call.metric.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/rest/insights/v1/docs/InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse.md b/rest/insights/v1/docs/ListVideoParticipantSummaryResponse.md similarity index 69% rename from rest/insights/v1/docs/InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse.md rename to rest/insights/v1/docs/ListVideoParticipantSummaryResponse.md index dfbf4c490..75ad8f72c 100644 --- a/rest/insights/v1/docs/InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse.md +++ b/rest/insights/v1/docs/ListVideoParticipantSummaryResponse.md @@ -1,10 +1,10 @@ -# InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse +# ListVideoParticipantSummaryResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**InsightsV1VideoRoomSummaryReadResponseMeta**](insights_v1_video_room_summaryReadResponse_meta.md) | | [optional] +**Meta** | [**ListVideoRoomSummaryResponseMeta**](ListVideoRoomSummaryResponse_meta.md) | | [optional] **Participants** | [**[]InsightsV1VideoRoomSummaryVideoParticipantSummary**](insights.v1.video_room_summary.video_participant_summary.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/rest/insights/v1/docs/InsightsV1VideoRoomSummaryReadResponse.md b/rest/insights/v1/docs/ListVideoRoomSummaryResponse.md similarity index 68% rename from rest/insights/v1/docs/InsightsV1VideoRoomSummaryReadResponse.md rename to rest/insights/v1/docs/ListVideoRoomSummaryResponse.md index 3a2466eb5..e226d331a 100644 --- a/rest/insights/v1/docs/InsightsV1VideoRoomSummaryReadResponse.md +++ b/rest/insights/v1/docs/ListVideoRoomSummaryResponse.md @@ -1,10 +1,10 @@ -# InsightsV1VideoRoomSummaryReadResponse +# ListVideoRoomSummaryResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**InsightsV1VideoRoomSummaryReadResponseMeta**](insights_v1_video_room_summaryReadResponse_meta.md) | | [optional] +**Meta** | [**ListVideoRoomSummaryResponseMeta**](ListVideoRoomSummaryResponse_meta.md) | | [optional] **Rooms** | [**[]InsightsV1VideoRoomSummary**](insights.v1.video_room_summary.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/rest/chat/v2/docs/ChatV2CredentialReadResponseMeta.md b/rest/insights/v1/docs/ListVideoRoomSummaryResponseMeta.md similarity index 94% rename from rest/chat/v2/docs/ChatV2CredentialReadResponseMeta.md rename to rest/insights/v1/docs/ListVideoRoomSummaryResponseMeta.md index bf6945ea5..3ee8b17b1 100644 --- a/rest/chat/v2/docs/ChatV2CredentialReadResponseMeta.md +++ b/rest/insights/v1/docs/ListVideoRoomSummaryResponseMeta.md @@ -1,4 +1,4 @@ -# ChatV2CredentialReadResponseMeta +# ListVideoRoomSummaryResponseMeta ## Properties diff --git a/rest/insights/v1/docs/MetricsTagApi.md b/rest/insights/v1/docs/MetricsTagApi.md deleted file mode 100644 index 7e1ca5107..000000000 --- a/rest/insights/v1/docs/MetricsTagApi.md +++ /dev/null @@ -1,54 +0,0 @@ -# \MetricsTagApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**ListMetric**](MetricsTagApi.md#ListMetric) | **Get** /v1/Voice/{CallSid}/Metrics | - - - -## ListMetric - -> InsightsV1CallMetricReadResponse ListMetric(ctx, CallSid, optional) - - - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**CallSid** | **string**| | - **optional** | ***ListMetricOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a ListMetricOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **Edge** | **optional.String**| | - **Direction** | **optional.String**| | - **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | - -### Return type - -[**InsightsV1CallMetricReadResponse**](insights_v1_call_metricReadResponse.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/rest/insights/v1/docs/SummaryTagApi.md b/rest/insights/v1/docs/SummaryTagApi.md deleted file mode 100644 index 1eba03e6d..000000000 --- a/rest/insights/v1/docs/SummaryTagApi.md +++ /dev/null @@ -1,52 +0,0 @@ -# \SummaryTagApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**FetchSummary**](SummaryTagApi.md#FetchSummary) | **Get** /v1/Voice/{CallSid}/Summary | - - - -## FetchSummary - -> InsightsV1CallSummary FetchSummary(ctx, CallSid, optional) - - - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**CallSid** | **string**| | - **optional** | ***FetchSummaryOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a FetchSummaryOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **ProcessingState** | **optional.String**| | - -### Return type - -[**InsightsV1CallSummary**](insights.v1.call.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) - diff --git a/rest/insights/v1/docs/VideoParticipantSummaryTagApi.md b/rest/insights/v1/docs/VideoParticipantSummaryTagApi.md deleted file mode 100644 index 5ba699107..000000000 --- a/rest/insights/v1/docs/VideoParticipantSummaryTagApi.md +++ /dev/null @@ -1,86 +0,0 @@ -# \VideoParticipantSummaryTagApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**FetchVideoParticipantSummary**](VideoParticipantSummaryTagApi.md#FetchVideoParticipantSummary) | **Get** /v1/Video/Rooms/{RoomSid}/Participants/{ParticipantSid} | -[**ListVideoParticipantSummary**](VideoParticipantSummaryTagApi.md#ListVideoParticipantSummary) | **Get** /v1/Video/Rooms/{RoomSid}/Participants | - - - -## FetchVideoParticipantSummary - -> InsightsV1VideoRoomSummaryVideoParticipantSummary FetchVideoParticipantSummary(ctx, RoomSid, ParticipantSid) - - - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**RoomSid** | **string**| | -**ParticipantSid** | **string**| | - -### Return type - -[**InsightsV1VideoRoomSummaryVideoParticipantSummary**](insights.v1.video_room_summary.video_participant_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) - - -## ListVideoParticipantSummary - -> InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse ListVideoParticipantSummary(ctx, RoomSid, optional) - - - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**RoomSid** | **string**| | - **optional** | ***ListVideoParticipantSummaryOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a ListVideoParticipantSummaryOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | - -### Return type - -[**InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse**](insights_v1_video_room_summary_video_participant_summaryReadResponse.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/rest/insights/v1/docs/VideoRoomSummaryTagApi.md b/rest/insights/v1/docs/VideoRoomSummaryTagApi.md deleted file mode 100644 index 7fd101f71..000000000 --- a/rest/insights/v1/docs/VideoRoomSummaryTagApi.md +++ /dev/null @@ -1,88 +0,0 @@ -# \VideoRoomSummaryTagApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**FetchVideoRoomSummary**](VideoRoomSummaryTagApi.md#FetchVideoRoomSummary) | **Get** /v1/Video/Rooms/{RoomSid} | -[**ListVideoRoomSummary**](VideoRoomSummaryTagApi.md#ListVideoRoomSummary) | **Get** /v1/Video/Rooms | - - - -## FetchVideoRoomSummary - -> InsightsV1VideoRoomSummary FetchVideoRoomSummary(ctx, RoomSid) - - - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**RoomSid** | **string**| | - -### Return type - -[**InsightsV1VideoRoomSummary**](insights.v1.video_room_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) - - -## ListVideoRoomSummary - -> InsightsV1VideoRoomSummaryReadResponse ListVideoRoomSummary(ctx, optional) - - - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **optional** | ***ListVideoRoomSummaryOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a ListVideoRoomSummaryOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **RoomType** | [**optional.Interface of []string**](string.md)| | - **Codec** | [**optional.Interface of []string**](string.md)| | - **RoomName** | **optional.String**| | - **CreatedAfter** | **optional.Time**| | - **CreatedBefore** | **optional.Time**| | - **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | - -### Return type - -[**InsightsV1VideoRoomSummaryReadResponse**](insights_v1_video_room_summaryReadResponse.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/rest/insights/v1/model_insights_v1_call.go b/rest/insights/v1/model_insights_v1_call.go index f89b6ac42..3ad058297 100644 --- a/rest/insights/v1/model_insights_v1_call.go +++ b/rest/insights/v1/model_insights_v1_call.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/insights/v1/model_insights_v1_call_event.go b/rest/insights/v1/model_insights_v1_call_event.go index 0cf6e3bd3..133b195b2 100644 --- a/rest/insights/v1/model_insights_v1_call_event.go +++ b/rest/insights/v1/model_insights_v1_call_event.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/insights/v1/model_insights_v1_call_metric.go b/rest/insights/v1/model_insights_v1_call_metric.go index 6a2d05727..f50d3f989 100644 --- a/rest/insights/v1/model_insights_v1_call_metric.go +++ b/rest/insights/v1/model_insights_v1_call_metric.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/insights/v1/model_insights_v1_call_summary.go b/rest/insights/v1/model_insights_v1_call_summary.go index 373663b50..48451621d 100644 --- a/rest/insights/v1/model_insights_v1_call_summary.go +++ b/rest/insights/v1/model_insights_v1_call_summary.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -22,6 +22,7 @@ type InsightsV1CallSummary struct { CarrierEdge map[string]interface{} `json:"CarrierEdge,omitempty"` ClientEdge map[string]interface{} `json:"ClientEdge,omitempty"` ConnectDuration *int32 `json:"ConnectDuration,omitempty"` + CreatedTime time.Time `json:"CreatedTime,omitempty"` Duration *int32 `json:"Duration,omitempty"` EndTime time.Time `json:"EndTime,omitempty"` From map[string]interface{} `json:"From,omitempty"` diff --git a/rest/insights/v1/model_insights_v1_video_room_summary.go b/rest/insights/v1/model_insights_v1_video_room_summary.go index 12acb4cb9..3840f9107 100644 --- a/rest/insights/v1/model_insights_v1_video_room_summary.go +++ b/rest/insights/v1/model_insights_v1_video_room_summary.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/insights/v1/model_insights_v1_video_room_summary_read_response_meta.go b/rest/insights/v1/model_insights_v1_video_room_summary_read_response_meta.go deleted file mode 100644 index b4050661e..000000000 --- a/rest/insights/v1/model_insights_v1_video_room_summary_read_response_meta.go +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Twilio - Insights - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// InsightsV1VideoRoomSummaryReadResponseMeta struct for InsightsV1VideoRoomSummaryReadResponseMeta -type InsightsV1VideoRoomSummaryReadResponseMeta struct { - FirstPageUrl string `json:"FirstPageUrl,omitempty"` - Key string `json:"Key,omitempty"` - NextPageUrl string `json:"NextPageUrl,omitempty"` - Page int32 `json:"Page,omitempty"` - PageSize int32 `json:"PageSize,omitempty"` - PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` - Url string `json:"Url,omitempty"` -} diff --git a/rest/insights/v1/model_insights_v1_video_room_summary_video_participant_summary.go b/rest/insights/v1/model_insights_v1_video_room_summary_video_participant_summary.go index 728803376..98e096894 100644 --- a/rest/insights/v1/model_insights_v1_video_room_summary_video_participant_summary.go +++ b/rest/insights/v1/model_insights_v1_video_room_summary_video_participant_summary.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/insights/v1/model_insights_v1_video_room_summary_video_participant_summary_read_response.go b/rest/insights/v1/model_insights_v1_video_room_summary_video_participant_summary_read_response.go deleted file mode 100644 index 996d6d2d3..000000000 --- a/rest/insights/v1/model_insights_v1_video_room_summary_video_participant_summary_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Insights - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse struct for InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse -type InsightsV1VideoRoomSummaryVideoParticipantSummaryReadResponse struct { - Meta InsightsV1VideoRoomSummaryReadResponseMeta `json:"Meta,omitempty"` - Participants []InsightsV1VideoRoomSummaryVideoParticipantSummary `json:"Participants,omitempty"` -} diff --git a/rest/insights/v1/model_insights_v1_call_event_read_response.go b/rest/insights/v1/model_list_event_response.go similarity index 52% rename from rest/insights/v1/model_insights_v1_call_event_read_response.go rename to rest/insights/v1/model_list_event_response.go index 5b2cd64c1..33f269d0a 100644 --- a/rest/insights/v1/model_insights_v1_call_event_read_response.go +++ b/rest/insights/v1/model_list_event_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// InsightsV1CallEventReadResponse struct for InsightsV1CallEventReadResponse -type InsightsV1CallEventReadResponse struct { +// ListEventResponse struct for ListEventResponse +type ListEventResponse struct { Events []InsightsV1CallEvent `json:"Events,omitempty"` - Meta InsightsV1VideoRoomSummaryReadResponseMeta `json:"Meta,omitempty"` + Meta ListVideoRoomSummaryResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/insights/v1/model_insights_v1_call_metric_read_response.go b/rest/insights/v1/model_list_metric_response.go similarity index 52% rename from rest/insights/v1/model_insights_v1_call_metric_read_response.go rename to rest/insights/v1/model_list_metric_response.go index 676a621ac..4a4faf8cc 100644 --- a/rest/insights/v1/model_insights_v1_call_metric_read_response.go +++ b/rest/insights/v1/model_list_metric_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// InsightsV1CallMetricReadResponse struct for InsightsV1CallMetricReadResponse -type InsightsV1CallMetricReadResponse struct { - Meta InsightsV1VideoRoomSummaryReadResponseMeta `json:"Meta,omitempty"` +// ListMetricResponse struct for ListMetricResponse +type ListMetricResponse struct { + Meta ListVideoRoomSummaryResponseMeta `json:"Meta,omitempty"` Metrics []InsightsV1CallMetric `json:"Metrics,omitempty"` } diff --git a/rest/insights/v1/model_list_video_participant_summary_response.go b/rest/insights/v1/model_list_video_participant_summary_response.go new file mode 100644 index 000000000..5fac1d004 --- /dev/null +++ b/rest/insights/v1/model_list_video_participant_summary_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Insights + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListVideoParticipantSummaryResponse struct for ListVideoParticipantSummaryResponse +type ListVideoParticipantSummaryResponse struct { + Meta ListVideoRoomSummaryResponseMeta `json:"Meta,omitempty"` + Participants []InsightsV1VideoRoomSummaryVideoParticipantSummary `json:"Participants,omitempty"` +} diff --git a/rest/insights/v1/model_insights_v1_video_room_summary_read_response.go b/rest/insights/v1/model_list_video_room_summary_response.go similarity index 51% rename from rest/insights/v1/model_insights_v1_video_room_summary_read_response.go rename to rest/insights/v1/model_list_video_room_summary_response.go index eb589eb2b..9a131c53c 100644 --- a/rest/insights/v1/model_insights_v1_video_room_summary_read_response.go +++ b/rest/insights/v1/model_list_video_room_summary_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// InsightsV1VideoRoomSummaryReadResponse struct for InsightsV1VideoRoomSummaryReadResponse -type InsightsV1VideoRoomSummaryReadResponse struct { - Meta InsightsV1VideoRoomSummaryReadResponseMeta `json:"Meta,omitempty"` +// ListVideoRoomSummaryResponse struct for ListVideoRoomSummaryResponse +type ListVideoRoomSummaryResponse struct { + Meta ListVideoRoomSummaryResponseMeta `json:"Meta,omitempty"` Rooms []InsightsV1VideoRoomSummary `json:"Rooms,omitempty"` } diff --git a/rest/insights/v1/model_list_video_room_summary_response_meta.go b/rest/insights/v1/model_list_video_room_summary_response_meta.go new file mode 100644 index 000000000..d56f7ccb5 --- /dev/null +++ b/rest/insights/v1/model_list_video_room_summary_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Insights + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListVideoRoomSummaryResponseMeta struct for ListVideoRoomSummaryResponseMeta +type ListVideoRoomSummaryResponseMeta struct { + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` +} diff --git a/rest/insights/v1/response.go b/rest/insights/v1/response.go index 267ec5af1..f56810335 100644 --- a/rest/insights/v1/response.go +++ b/rest/insights/v1/response.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/README.md b/rest/ip/messaging/README.md index 97b5fc957..4117a9e53 100644 --- a/rest/ip/messaging/README.md +++ b/rest/ip/messaging/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 5.15.0 +- API version: 1.0.0 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) @@ -99,30 +99,30 @@ Class | Method | HTTP request | Description - [CreateServiceRequest](docs/CreateServiceRequest.md) - [CreateUserRequest](docs/CreateUserRequest.md) - [IpMessagingV2Credential](docs/IpMessagingV2Credential.md) - - [IpMessagingV2CredentialReadResponse](docs/IpMessagingV2CredentialReadResponse.md) - - [IpMessagingV2CredentialReadResponseMeta](docs/IpMessagingV2CredentialReadResponseMeta.md) - [IpMessagingV2Service](docs/IpMessagingV2Service.md) - [IpMessagingV2ServiceBinding](docs/IpMessagingV2ServiceBinding.md) - - [IpMessagingV2ServiceBindingReadResponse](docs/IpMessagingV2ServiceBindingReadResponse.md) - [IpMessagingV2ServiceChannel](docs/IpMessagingV2ServiceChannel.md) - [IpMessagingV2ServiceChannelChannelWebhook](docs/IpMessagingV2ServiceChannelChannelWebhook.md) - - [IpMessagingV2ServiceChannelChannelWebhookReadResponse](docs/IpMessagingV2ServiceChannelChannelWebhookReadResponse.md) - [IpMessagingV2ServiceChannelInvite](docs/IpMessagingV2ServiceChannelInvite.md) - - [IpMessagingV2ServiceChannelInviteReadResponse](docs/IpMessagingV2ServiceChannelInviteReadResponse.md) - [IpMessagingV2ServiceChannelMember](docs/IpMessagingV2ServiceChannelMember.md) - - [IpMessagingV2ServiceChannelMemberReadResponse](docs/IpMessagingV2ServiceChannelMemberReadResponse.md) - [IpMessagingV2ServiceChannelMessage](docs/IpMessagingV2ServiceChannelMessage.md) - - [IpMessagingV2ServiceChannelMessageReadResponse](docs/IpMessagingV2ServiceChannelMessageReadResponse.md) - - [IpMessagingV2ServiceChannelReadResponse](docs/IpMessagingV2ServiceChannelReadResponse.md) - - [IpMessagingV2ServiceReadResponse](docs/IpMessagingV2ServiceReadResponse.md) - [IpMessagingV2ServiceRole](docs/IpMessagingV2ServiceRole.md) - - [IpMessagingV2ServiceRoleReadResponse](docs/IpMessagingV2ServiceRoleReadResponse.md) - [IpMessagingV2ServiceUser](docs/IpMessagingV2ServiceUser.md) - - [IpMessagingV2ServiceUserReadResponse](docs/IpMessagingV2ServiceUserReadResponse.md) - [IpMessagingV2ServiceUserUserBinding](docs/IpMessagingV2ServiceUserUserBinding.md) - - [IpMessagingV2ServiceUserUserBindingReadResponse](docs/IpMessagingV2ServiceUserUserBindingReadResponse.md) - [IpMessagingV2ServiceUserUserChannel](docs/IpMessagingV2ServiceUserUserChannel.md) - - [IpMessagingV2ServiceUserUserChannelReadResponse](docs/IpMessagingV2ServiceUserUserChannelReadResponse.md) + - [ListBindingResponse](docs/ListBindingResponse.md) + - [ListChannelResponse](docs/ListChannelResponse.md) + - [ListChannelWebhookResponse](docs/ListChannelWebhookResponse.md) + - [ListCredentialResponse](docs/ListCredentialResponse.md) + - [ListCredentialResponseMeta](docs/ListCredentialResponseMeta.md) + - [ListInviteResponse](docs/ListInviteResponse.md) + - [ListMemberResponse](docs/ListMemberResponse.md) + - [ListMessageResponse](docs/ListMessageResponse.md) + - [ListRoleResponse](docs/ListRoleResponse.md) + - [ListServiceResponse](docs/ListServiceResponse.md) + - [ListUserBindingResponse](docs/ListUserBindingResponse.md) + - [ListUserChannelResponse](docs/ListUserChannelResponse.md) + - [ListUserResponse](docs/ListUserResponse.md) - [UpdateChannelRequest](docs/UpdateChannelRequest.md) - [UpdateChannelWebhookRequest](docs/UpdateChannelWebhookRequest.md) - [UpdateCredentialRequest](docs/UpdateCredentialRequest.md) diff --git a/rest/ip/messaging/api_default.go b/rest/ip/messaging/api_default.go index 6d4f8e2f8..24e807cf3 100644 --- a/rest/ip/messaging/api_default.go +++ b/rest/ip/messaging/api_default.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -27,19 +27,19 @@ type DefaultApiService struct { func NewDefaultApiService(client *twilio.Client) *DefaultApiService { return &DefaultApiService { client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + baseURL: fmt.Sprintf("https://ip-messaging.twilio.com"), } } // CreateChannelParams Optional parameters for the method 'CreateChannel' type CreateChannelParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - CreatedBy *string `json:"CreatedBy,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Type *string `json:"Type,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + CreatedBy *string `json:"CreatedBy,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Type *string `json:"Type,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -106,13 +106,13 @@ func (c *DefaultApiService) CreateChannel(ServiceSid string, params *CreateChann } // CreateChannelWebhookParams Optional parameters for the method 'CreateChannelWebhook' type CreateChannelWebhookParams struct { - ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` - ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` - ConfigurationMethod *string `json:"Configuration.Method,omitempty"` - ConfigurationRetryCount *int32 `json:"Configuration.RetryCount,omitempty"` - ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` - ConfigurationUrl *string `json:"Configuration.Url,omitempty"` - Type *string `json:"Type,omitempty"` + ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` + ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` + ConfigurationMethod *string `json:"Configuration.Method,omitempty"` + ConfigurationRetryCount *int32 `json:"Configuration.RetryCount,omitempty"` + ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` + ConfigurationUrl *string `json:"Configuration.Url,omitempty"` + Type *string `json:"Type,omitempty"` } /* @@ -177,13 +177,13 @@ func (c *DefaultApiService) CreateChannelWebhook(ServiceSid string, ChannelSid s } // CreateCredentialParams Optional parameters for the method 'CreateCredential' type CreateCredentialParams struct { - ApiKey *string `json:"ApiKey,omitempty"` - Certificate *string `json:"Certificate,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PrivateKey *string `json:"PrivateKey,omitempty"` - Sandbox *bool `json:"Sandbox,omitempty"` - Secret *string `json:"Secret,omitempty"` - Type *string `json:"Type,omitempty"` + ApiKey *string `json:"ApiKey,omitempty"` + Certificate *string `json:"Certificate,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PrivateKey *string `json:"PrivateKey,omitempty"` + Sandbox *bool `json:"Sandbox,omitempty"` + Secret *string `json:"Secret,omitempty"` + Type *string `json:"Type,omitempty"` } /* @@ -244,8 +244,8 @@ func (c *DefaultApiService) CreateCredential(params *CreateCredentialParams) (*I } // CreateInviteParams Optional parameters for the method 'CreateInvite' type CreateInviteParams struct { - Identity *string `json:"Identity,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + Identity *string `json:"Identity,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -290,14 +290,14 @@ func (c *DefaultApiService) CreateInvite(ServiceSid string, ChannelSid string, p } // CreateMemberParams Optional parameters for the method 'CreateMember' type CreateMemberParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - Identity *string `json:"Identity,omitempty"` - LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` - LastConsumptionTimestamp *time.Time `json:"LastConsumptionTimestamp,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + Identity *string `json:"Identity,omitempty"` + LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` + LastConsumptionTimestamp *time.Time `json:"LastConsumptionTimestamp,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -366,14 +366,14 @@ func (c *DefaultApiService) CreateMember(ServiceSid string, ChannelSid string, p } // CreateMessageParams Optional parameters for the method 'CreateMessage' type CreateMessageParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - Body *string `json:"Body,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - From *string `json:"From,omitempty"` - LastUpdatedBy *string `json:"LastUpdatedBy,omitempty"` - MediaSid *string `json:"MediaSid,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + Body *string `json:"Body,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + From *string `json:"From,omitempty"` + LastUpdatedBy *string `json:"LastUpdatedBy,omitempty"` + MediaSid *string `json:"MediaSid,omitempty"` } /* @@ -442,9 +442,9 @@ func (c *DefaultApiService) CreateMessage(ServiceSid string, ChannelSid string, } // CreateRoleParams Optional parameters for the method 'CreateRole' type CreateRoleParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - Permission *[]string `json:"Permission,omitempty"` - Type *string `json:"Type,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Permission *[]string `json:"Permission,omitempty"` + Type *string `json:"Type,omitempty"` } /* @@ -491,7 +491,7 @@ func (c *DefaultApiService) CreateRole(ServiceSid string, params *CreateRolePara } // CreateServiceParams Optional parameters for the method 'CreateService' type CreateServiceParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -528,11 +528,11 @@ func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*IpMessa } // CreateUserParams Optional parameters for the method 'CreateUser' type CreateUserParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Identity *string `json:"Identity,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Identity *string `json:"Identity,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -613,7 +613,7 @@ func (c *DefaultApiService) DeleteBinding(ServiceSid string, Sid string) (error) } // DeleteChannelParams Optional parameters for the method 'DeleteChannel' type DeleteChannelParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* @@ -728,7 +728,7 @@ func (c *DefaultApiService) DeleteInvite(ServiceSid string, ChannelSid string, S } // DeleteMemberParams Optional parameters for the method 'DeleteMember' type DeleteMemberParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* @@ -765,7 +765,7 @@ func (c *DefaultApiService) DeleteMember(ServiceSid string, ChannelSid string, S } // DeleteMessageParams Optional parameters for the method 'DeleteMessage' type DeleteMessageParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` } /* @@ -1326,9 +1326,9 @@ func (c *DefaultApiService) FetchUserChannel(ServiceSid string, UserSid string, } // ListBindingParams Optional parameters for the method 'ListBinding' type ListBindingParams struct { - BindingType *[]string `json:"BindingType,omitempty"` - Identity *[]string `json:"Identity,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + BindingType *[]string `json:"BindingType,omitempty"` + Identity *[]string `json:"Identity,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1338,9 +1338,9 @@ ListBinding Method for ListBinding * @param "BindingType" ([]string) - * @param "Identity" ([]string) - * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return IpMessagingV2ServiceBindingReadResponse +@return ListBindingResponse */ -func (c *DefaultApiService) ListBinding(ServiceSid string, params *ListBindingParams) (*IpMessagingV2ServiceBindingReadResponse, error) { +func (c *DefaultApiService) ListBinding(ServiceSid string, params *ListBindingParams) (*ListBindingResponse, error) { path := "/v2/Services/{ServiceSid}/Bindings" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -1366,7 +1366,7 @@ func (c *DefaultApiService) ListBinding(ServiceSid string, params *ListBindingPa defer resp.Body.Close() - ps := &IpMessagingV2ServiceBindingReadResponse{} + ps := &ListBindingResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1375,8 +1375,8 @@ func (c *DefaultApiService) ListBinding(ServiceSid string, params *ListBindingPa } // ListChannelParams Optional parameters for the method 'ListChannel' type ListChannelParams struct { - Type *[]string `json:"Type,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Type *[]string `json:"Type,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1385,9 +1385,9 @@ ListChannel Method for ListChannel * @param optional nil or *ListChannelOpts - Optional Parameters: * @param "Type" ([]string) - * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return IpMessagingV2ServiceChannelReadResponse +@return ListChannelResponse */ -func (c *DefaultApiService) ListChannel(ServiceSid string, params *ListChannelParams) (*IpMessagingV2ServiceChannelReadResponse, error) { +func (c *DefaultApiService) ListChannel(ServiceSid string, params *ListChannelParams) (*ListChannelResponse, error) { path := "/v2/Services/{ServiceSid}/Channels" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -1410,7 +1410,7 @@ func (c *DefaultApiService) ListChannel(ServiceSid string, params *ListChannelPa defer resp.Body.Close() - ps := &IpMessagingV2ServiceChannelReadResponse{} + ps := &ListChannelResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1419,7 +1419,7 @@ func (c *DefaultApiService) ListChannel(ServiceSid string, params *ListChannelPa } // ListChannelWebhookParams Optional parameters for the method 'ListChannelWebhook' type ListChannelWebhookParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1428,9 +1428,9 @@ ListChannelWebhook Method for ListChannelWebhook * @param ChannelSid * @param optional nil or *ListChannelWebhookOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return IpMessagingV2ServiceChannelChannelWebhookReadResponse +@return ListChannelWebhookResponse */ -func (c *DefaultApiService) ListChannelWebhook(ServiceSid string, ChannelSid string, params *ListChannelWebhookParams) (*IpMessagingV2ServiceChannelChannelWebhookReadResponse, error) { +func (c *DefaultApiService) ListChannelWebhook(ServiceSid string, ChannelSid string, params *ListChannelWebhookParams) (*ListChannelWebhookResponse, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Webhooks" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) @@ -1451,7 +1451,7 @@ func (c *DefaultApiService) ListChannelWebhook(ServiceSid string, ChannelSid str defer resp.Body.Close() - ps := &IpMessagingV2ServiceChannelChannelWebhookReadResponse{} + ps := &ListChannelWebhookResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1460,16 +1460,16 @@ func (c *DefaultApiService) ListChannelWebhook(ServiceSid string, ChannelSid str } // ListCredentialParams Optional parameters for the method 'ListCredential' type ListCredentialParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* ListCredential Method for ListCredential * @param optional nil or *ListCredentialOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return IpMessagingV2CredentialReadResponse +@return ListCredentialResponse */ -func (c *DefaultApiService) ListCredential(params *ListCredentialParams) (*IpMessagingV2CredentialReadResponse, error) { +func (c *DefaultApiService) ListCredential(params *ListCredentialParams) (*ListCredentialResponse, error) { path := "/v2/Credentials" @@ -1488,7 +1488,7 @@ func (c *DefaultApiService) ListCredential(params *ListCredentialParams) (*IpMes defer resp.Body.Close() - ps := &IpMessagingV2CredentialReadResponse{} + ps := &ListCredentialResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1497,8 +1497,8 @@ func (c *DefaultApiService) ListCredential(params *ListCredentialParams) (*IpMes } // ListInviteParams Optional parameters for the method 'ListInvite' type ListInviteParams struct { - Identity *[]string `json:"Identity,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Identity *[]string `json:"Identity,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1508,9 +1508,9 @@ ListInvite Method for ListInvite * @param optional nil or *ListInviteOpts - Optional Parameters: * @param "Identity" ([]string) - * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return IpMessagingV2ServiceChannelInviteReadResponse +@return ListInviteResponse */ -func (c *DefaultApiService) ListInvite(ServiceSid string, ChannelSid string, params *ListInviteParams) (*IpMessagingV2ServiceChannelInviteReadResponse, error) { +func (c *DefaultApiService) ListInvite(ServiceSid string, ChannelSid string, params *ListInviteParams) (*ListInviteResponse, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Invites" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) @@ -1534,7 +1534,7 @@ func (c *DefaultApiService) ListInvite(ServiceSid string, ChannelSid string, par defer resp.Body.Close() - ps := &IpMessagingV2ServiceChannelInviteReadResponse{} + ps := &ListInviteResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1543,8 +1543,8 @@ func (c *DefaultApiService) ListInvite(ServiceSid string, ChannelSid string, par } // ListMemberParams Optional parameters for the method 'ListMember' type ListMemberParams struct { - Identity *[]string `json:"Identity,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Identity *[]string `json:"Identity,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1554,9 +1554,9 @@ ListMember Method for ListMember * @param optional nil or *ListMemberOpts - Optional Parameters: * @param "Identity" ([]string) - * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return IpMessagingV2ServiceChannelMemberReadResponse +@return ListMemberResponse */ -func (c *DefaultApiService) ListMember(ServiceSid string, ChannelSid string, params *ListMemberParams) (*IpMessagingV2ServiceChannelMemberReadResponse, error) { +func (c *DefaultApiService) ListMember(ServiceSid string, ChannelSid string, params *ListMemberParams) (*ListMemberResponse, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) @@ -1580,7 +1580,7 @@ func (c *DefaultApiService) ListMember(ServiceSid string, ChannelSid string, par defer resp.Body.Close() - ps := &IpMessagingV2ServiceChannelMemberReadResponse{} + ps := &ListMemberResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1589,8 +1589,8 @@ func (c *DefaultApiService) ListMember(ServiceSid string, ChannelSid string, par } // ListMessageParams Optional parameters for the method 'ListMessage' type ListMessageParams struct { - Order *string `json:"Order,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Order *string `json:"Order,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1600,9 +1600,9 @@ ListMessage Method for ListMessage * @param optional nil or *ListMessageOpts - Optional Parameters: * @param "Order" (string) - * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return IpMessagingV2ServiceChannelMessageReadResponse +@return ListMessageResponse */ -func (c *DefaultApiService) ListMessage(ServiceSid string, ChannelSid string, params *ListMessageParams) (*IpMessagingV2ServiceChannelMessageReadResponse, error) { +func (c *DefaultApiService) ListMessage(ServiceSid string, ChannelSid string, params *ListMessageParams) (*ListMessageResponse, error) { path := "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"ChannelSid"+"}", ChannelSid, -1) @@ -1626,7 +1626,7 @@ func (c *DefaultApiService) ListMessage(ServiceSid string, ChannelSid string, pa defer resp.Body.Close() - ps := &IpMessagingV2ServiceChannelMessageReadResponse{} + ps := &ListMessageResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1635,7 +1635,7 @@ func (c *DefaultApiService) ListMessage(ServiceSid string, ChannelSid string, pa } // ListRoleParams Optional parameters for the method 'ListRole' type ListRoleParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1643,9 +1643,9 @@ ListRole Method for ListRole * @param ServiceSid * @param optional nil or *ListRoleOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return IpMessagingV2ServiceRoleReadResponse +@return ListRoleResponse */ -func (c *DefaultApiService) ListRole(ServiceSid string, params *ListRoleParams) (*IpMessagingV2ServiceRoleReadResponse, error) { +func (c *DefaultApiService) ListRole(ServiceSid string, params *ListRoleParams) (*ListRoleResponse, error) { path := "/v2/Services/{ServiceSid}/Roles" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -1665,7 +1665,7 @@ func (c *DefaultApiService) ListRole(ServiceSid string, params *ListRoleParams) defer resp.Body.Close() - ps := &IpMessagingV2ServiceRoleReadResponse{} + ps := &ListRoleResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1674,16 +1674,16 @@ func (c *DefaultApiService) ListRole(ServiceSid string, params *ListRoleParams) } // ListServiceParams Optional parameters for the method 'ListService' type ListServiceParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* ListService Method for ListService * @param optional nil or *ListServiceOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return IpMessagingV2ServiceReadResponse +@return ListServiceResponse */ -func (c *DefaultApiService) ListService(params *ListServiceParams) (*IpMessagingV2ServiceReadResponse, error) { +func (c *DefaultApiService) ListService(params *ListServiceParams) (*ListServiceResponse, error) { path := "/v2/Services" @@ -1702,7 +1702,7 @@ func (c *DefaultApiService) ListService(params *ListServiceParams) (*IpMessaging defer resp.Body.Close() - ps := &IpMessagingV2ServiceReadResponse{} + ps := &ListServiceResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1711,7 +1711,7 @@ func (c *DefaultApiService) ListService(params *ListServiceParams) (*IpMessaging } // ListUserParams Optional parameters for the method 'ListUser' type ListUserParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1719,9 +1719,9 @@ ListUser Method for ListUser * @param ServiceSid * @param optional nil or *ListUserOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return IpMessagingV2ServiceUserReadResponse +@return ListUserResponse */ -func (c *DefaultApiService) ListUser(ServiceSid string, params *ListUserParams) (*IpMessagingV2ServiceUserReadResponse, error) { +func (c *DefaultApiService) ListUser(ServiceSid string, params *ListUserParams) (*ListUserResponse, error) { path := "/v2/Services/{ServiceSid}/Users" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -1741,7 +1741,7 @@ func (c *DefaultApiService) ListUser(ServiceSid string, params *ListUserParams) defer resp.Body.Close() - ps := &IpMessagingV2ServiceUserReadResponse{} + ps := &ListUserResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1750,8 +1750,8 @@ func (c *DefaultApiService) ListUser(ServiceSid string, params *ListUserParams) } // ListUserBindingParams Optional parameters for the method 'ListUserBinding' type ListUserBindingParams struct { - BindingType *[]string `json:"BindingType,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + BindingType *[]string `json:"BindingType,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1761,9 +1761,9 @@ ListUserBinding Method for ListUserBinding * @param optional nil or *ListUserBindingOpts - Optional Parameters: * @param "BindingType" ([]string) - * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return IpMessagingV2ServiceUserUserBindingReadResponse +@return ListUserBindingResponse */ -func (c *DefaultApiService) ListUserBinding(ServiceSid string, UserSid string, params *ListUserBindingParams) (*IpMessagingV2ServiceUserUserBindingReadResponse, error) { +func (c *DefaultApiService) ListUserBinding(ServiceSid string, UserSid string, params *ListUserBindingParams) (*ListUserBindingResponse, error) { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Bindings" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"UserSid"+"}", UserSid, -1) @@ -1787,7 +1787,7 @@ func (c *DefaultApiService) ListUserBinding(ServiceSid string, UserSid string, p defer resp.Body.Close() - ps := &IpMessagingV2ServiceUserUserBindingReadResponse{} + ps := &ListUserBindingResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1796,7 +1796,7 @@ func (c *DefaultApiService) ListUserBinding(ServiceSid string, UserSid string, p } // ListUserChannelParams Optional parameters for the method 'ListUserChannel' type ListUserChannelParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1805,9 +1805,9 @@ ListUserChannel Method for ListUserChannel * @param UserSid * @param optional nil or *ListUserChannelOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return IpMessagingV2ServiceUserUserChannelReadResponse +@return ListUserChannelResponse */ -func (c *DefaultApiService) ListUserChannel(ServiceSid string, UserSid string, params *ListUserChannelParams) (*IpMessagingV2ServiceUserUserChannelReadResponse, error) { +func (c *DefaultApiService) ListUserChannel(ServiceSid string, UserSid string, params *ListUserChannelParams) (*ListUserChannelResponse, error) { path := "/v2/Services/{ServiceSid}/Users/{UserSid}/Channels" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"UserSid"+"}", UserSid, -1) @@ -1828,7 +1828,7 @@ func (c *DefaultApiService) ListUserChannel(ServiceSid string, UserSid string, p defer resp.Body.Close() - ps := &IpMessagingV2ServiceUserUserChannelReadResponse{} + ps := &ListUserChannelResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1837,13 +1837,13 @@ func (c *DefaultApiService) ListUserChannel(ServiceSid string, UserSid string, p } // UpdateChannelParams Optional parameters for the method 'UpdateChannel' type UpdateChannelParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - CreatedBy *string `json:"CreatedBy,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + CreatedBy *string `json:"CreatedBy,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -1908,12 +1908,12 @@ func (c *DefaultApiService) UpdateChannel(ServiceSid string, Sid string, params } // UpdateChannelWebhookParams Optional parameters for the method 'UpdateChannelWebhook' type UpdateChannelWebhookParams struct { - ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` - ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` - ConfigurationMethod *string `json:"Configuration.Method,omitempty"` - ConfigurationRetryCount *int32 `json:"Configuration.RetryCount,omitempty"` - ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` - ConfigurationUrl *string `json:"Configuration.Url,omitempty"` + ConfigurationFilters *[]string `json:"Configuration.Filters,omitempty"` + ConfigurationFlowSid *string `json:"Configuration.FlowSid,omitempty"` + ConfigurationMethod *string `json:"Configuration.Method,omitempty"` + ConfigurationRetryCount *int32 `json:"Configuration.RetryCount,omitempty"` + ConfigurationTriggers *[]string `json:"Configuration.Triggers,omitempty"` + ConfigurationUrl *string `json:"Configuration.Url,omitempty"` } /* @@ -1976,12 +1976,12 @@ func (c *DefaultApiService) UpdateChannelWebhook(ServiceSid string, ChannelSid s } // UpdateCredentialParams Optional parameters for the method 'UpdateCredential' type UpdateCredentialParams struct { - ApiKey *string `json:"ApiKey,omitempty"` - Certificate *string `json:"Certificate,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PrivateKey *string `json:"PrivateKey,omitempty"` - Sandbox *bool `json:"Sandbox,omitempty"` - Secret *string `json:"Secret,omitempty"` + ApiKey *string `json:"ApiKey,omitempty"` + Certificate *string `json:"Certificate,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PrivateKey *string `json:"PrivateKey,omitempty"` + Sandbox *bool `json:"Sandbox,omitempty"` + Secret *string `json:"Secret,omitempty"` } /* @@ -2040,13 +2040,13 @@ func (c *DefaultApiService) UpdateCredential(Sid string, params *UpdateCredentia } // UpdateMemberParams Optional parameters for the method 'UpdateMember' type UpdateMemberParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` - LastConsumptionTimestamp *time.Time `json:"LastConsumptionTimestamp,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` + LastConsumptionTimestamp *time.Time `json:"LastConsumptionTimestamp,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -2113,13 +2113,13 @@ func (c *DefaultApiService) UpdateMember(ServiceSid string, ChannelSid string, S } // UpdateMessageParams Optional parameters for the method 'UpdateMessage' type UpdateMessageParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - Body *string `json:"Body,omitempty"` - DateCreated *time.Time `json:"DateCreated,omitempty"` - DateUpdated *time.Time `json:"DateUpdated,omitempty"` - From *string `json:"From,omitempty"` - LastUpdatedBy *string `json:"LastUpdatedBy,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + Body *string `json:"Body,omitempty"` + DateCreated *time.Time `json:"DateCreated,omitempty"` + DateUpdated *time.Time `json:"DateUpdated,omitempty"` + From *string `json:"From,omitempty"` + LastUpdatedBy *string `json:"LastUpdatedBy,omitempty"` } /* @@ -2186,7 +2186,7 @@ func (c *DefaultApiService) UpdateMessage(ServiceSid string, ChannelSid string, } // UpdateRoleParams Optional parameters for the method 'UpdateRole' type UpdateRoleParams struct { - Permission *[]string `json:"Permission,omitempty"` + Permission *[]string `json:"Permission,omitempty"` } /* @@ -2227,37 +2227,37 @@ func (c *DefaultApiService) UpdateRole(ServiceSid string, Sid string, params *Up } // UpdateServiceParams Optional parameters for the method 'UpdateService' type UpdateServiceParams struct { - ConsumptionReportInterval *int32 `json:"ConsumptionReportInterval,omitempty"` - DefaultChannelCreatorRoleSid *string `json:"DefaultChannelCreatorRoleSid,omitempty"` - DefaultChannelRoleSid *string `json:"DefaultChannelRoleSid,omitempty"` - DefaultServiceRoleSid *string `json:"DefaultServiceRoleSid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - LimitsChannelMembers *int32 `json:"Limits.ChannelMembers,omitempty"` - LimitsUserChannels *int32 `json:"Limits.UserChannels,omitempty"` - MediaCompatibilityMessage *string `json:"Media.CompatibilityMessage,omitempty"` - NotificationsAddedToChannelEnabled *bool `json:"Notifications.AddedToChannel.Enabled,omitempty"` - NotificationsAddedToChannelSound *string `json:"Notifications.AddedToChannel.Sound,omitempty"` - NotificationsAddedToChannelTemplate *string `json:"Notifications.AddedToChannel.Template,omitempty"` - NotificationsInvitedToChannelEnabled *bool `json:"Notifications.InvitedToChannel.Enabled,omitempty"` - NotificationsInvitedToChannelSound *string `json:"Notifications.InvitedToChannel.Sound,omitempty"` - NotificationsInvitedToChannelTemplate *string `json:"Notifications.InvitedToChannel.Template,omitempty"` - NotificationsLogEnabled *bool `json:"Notifications.LogEnabled,omitempty"` - NotificationsNewMessageBadgeCountEnabled *bool `json:"Notifications.NewMessage.BadgeCountEnabled,omitempty"` - NotificationsNewMessageEnabled *bool `json:"Notifications.NewMessage.Enabled,omitempty"` - NotificationsNewMessageSound *string `json:"Notifications.NewMessage.Sound,omitempty"` - NotificationsNewMessageTemplate *string `json:"Notifications.NewMessage.Template,omitempty"` - NotificationsRemovedFromChannelEnabled *bool `json:"Notifications.RemovedFromChannel.Enabled,omitempty"` - NotificationsRemovedFromChannelSound *string `json:"Notifications.RemovedFromChannel.Sound,omitempty"` - NotificationsRemovedFromChannelTemplate *string `json:"Notifications.RemovedFromChannel.Template,omitempty"` - PostWebhookRetryCount *int32 `json:"PostWebhookRetryCount,omitempty"` - PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"` - PreWebhookRetryCount *int32 `json:"PreWebhookRetryCount,omitempty"` - PreWebhookUrl *string `json:"PreWebhookUrl,omitempty"` - ReachabilityEnabled *bool `json:"ReachabilityEnabled,omitempty"` - ReadStatusEnabled *bool `json:"ReadStatusEnabled,omitempty"` - TypingIndicatorTimeout *int32 `json:"TypingIndicatorTimeout,omitempty"` - WebhookFilters *[]string `json:"WebhookFilters,omitempty"` - WebhookMethod *string `json:"WebhookMethod,omitempty"` + ConsumptionReportInterval *int32 `json:"ConsumptionReportInterval,omitempty"` + DefaultChannelCreatorRoleSid *string `json:"DefaultChannelCreatorRoleSid,omitempty"` + DefaultChannelRoleSid *string `json:"DefaultChannelRoleSid,omitempty"` + DefaultServiceRoleSid *string `json:"DefaultServiceRoleSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + LimitsChannelMembers *int32 `json:"Limits.ChannelMembers,omitempty"` + LimitsUserChannels *int32 `json:"Limits.UserChannels,omitempty"` + MediaCompatibilityMessage *string `json:"Media.CompatibilityMessage,omitempty"` + NotificationsAddedToChannelEnabled *bool `json:"Notifications.AddedToChannel.Enabled,omitempty"` + NotificationsAddedToChannelSound *string `json:"Notifications.AddedToChannel.Sound,omitempty"` + NotificationsAddedToChannelTemplate *string `json:"Notifications.AddedToChannel.Template,omitempty"` + NotificationsInvitedToChannelEnabled *bool `json:"Notifications.InvitedToChannel.Enabled,omitempty"` + NotificationsInvitedToChannelSound *string `json:"Notifications.InvitedToChannel.Sound,omitempty"` + NotificationsInvitedToChannelTemplate *string `json:"Notifications.InvitedToChannel.Template,omitempty"` + NotificationsLogEnabled *bool `json:"Notifications.LogEnabled,omitempty"` + NotificationsNewMessageBadgeCountEnabled *bool `json:"Notifications.NewMessage.BadgeCountEnabled,omitempty"` + NotificationsNewMessageEnabled *bool `json:"Notifications.NewMessage.Enabled,omitempty"` + NotificationsNewMessageSound *string `json:"Notifications.NewMessage.Sound,omitempty"` + NotificationsNewMessageTemplate *string `json:"Notifications.NewMessage.Template,omitempty"` + NotificationsRemovedFromChannelEnabled *bool `json:"Notifications.RemovedFromChannel.Enabled,omitempty"` + NotificationsRemovedFromChannelSound *string `json:"Notifications.RemovedFromChannel.Sound,omitempty"` + NotificationsRemovedFromChannelTemplate *string `json:"Notifications.RemovedFromChannel.Template,omitempty"` + PostWebhookRetryCount *int32 `json:"PostWebhookRetryCount,omitempty"` + PostWebhookUrl *string `json:"PostWebhookUrl,omitempty"` + PreWebhookRetryCount *int32 `json:"PreWebhookRetryCount,omitempty"` + PreWebhookUrl *string `json:"PreWebhookUrl,omitempty"` + ReachabilityEnabled *bool `json:"ReachabilityEnabled,omitempty"` + ReadStatusEnabled *bool `json:"ReadStatusEnabled,omitempty"` + TypingIndicatorTimeout *int32 `json:"TypingIndicatorTimeout,omitempty"` + WebhookFilters *[]string `json:"WebhookFilters,omitempty"` + WebhookMethod *string `json:"WebhookMethod,omitempty"` } /* @@ -2416,10 +2416,10 @@ func (c *DefaultApiService) UpdateService(Sid string, params *UpdateServiceParam } // UpdateUserParams Optional parameters for the method 'UpdateUser' type UpdateUserParams struct { - XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - RoleSid *string `json:"RoleSid,omitempty"` + XTwilioWebhookEnabled *string `json:"X-Twilio-Webhook-Enabled,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + RoleSid *string `json:"RoleSid,omitempty"` } /* @@ -2472,9 +2472,9 @@ func (c *DefaultApiService) UpdateUser(ServiceSid string, Sid string, params *Up } // UpdateUserChannelParams Optional parameters for the method 'UpdateUserChannel' type UpdateUserChannelParams struct { - LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` - LastConsumptionTimestamp *time.Time `json:"LastConsumptionTimestamp,omitempty"` - NotificationLevel *string `json:"NotificationLevel,omitempty"` + LastConsumedMessageIndex *int32 `json:"LastConsumedMessageIndex,omitempty"` + LastConsumptionTimestamp *time.Time `json:"LastConsumptionTimestamp,omitempty"` + NotificationLevel *string `json:"NotificationLevel,omitempty"` } /* diff --git a/rest/ip/messaging/docs/DefaultApi.md b/rest/ip/messaging/docs/DefaultApi.md index 240856abb..5c44eaffb 100644 --- a/rest/ip/messaging/docs/DefaultApi.md +++ b/rest/ip/messaging/docs/DefaultApi.md @@ -1332,7 +1332,7 @@ Name | Type | Description | Notes ## ListBinding -> IpMessagingV2ServiceBindingReadResponse ListBinding(ctx, ServiceSid, optional) +> ListBindingResponse ListBinding(ctx, ServiceSid, optional) @@ -1359,7 +1359,7 @@ Name | Type | Description | Notes ### Return type -[**IpMessagingV2ServiceBindingReadResponse**](ip_messaging_v2_service_bindingReadResponse.md) +[**ListBindingResponse**](ListBindingResponse.md) ### Authorization @@ -1377,7 +1377,7 @@ Name | Type | Description | Notes ## ListChannel -> IpMessagingV2ServiceChannelReadResponse ListChannel(ctx, ServiceSid, optional) +> ListChannelResponse ListChannel(ctx, ServiceSid, optional) @@ -1403,7 +1403,7 @@ Name | Type | Description | Notes ### Return type -[**IpMessagingV2ServiceChannelReadResponse**](ip_messaging_v2_service_channelReadResponse.md) +[**ListChannelResponse**](ListChannelResponse.md) ### Authorization @@ -1421,7 +1421,7 @@ Name | Type | Description | Notes ## ListChannelWebhook -> IpMessagingV2ServiceChannelChannelWebhookReadResponse ListChannelWebhook(ctx, ServiceSid, ChannelSid, optional) +> ListChannelWebhookResponse ListChannelWebhook(ctx, ServiceSid, ChannelSid, optional) @@ -1448,7 +1448,7 @@ Name | Type | Description | Notes ### Return type -[**IpMessagingV2ServiceChannelChannelWebhookReadResponse**](ip_messaging_v2_service_channel_channel_webhookReadResponse.md) +[**ListChannelWebhookResponse**](ListChannelWebhookResponse.md) ### Authorization @@ -1466,7 +1466,7 @@ Name | Type | Description | Notes ## ListCredential -> IpMessagingV2CredentialReadResponse ListCredential(ctx, optional) +> ListCredentialResponse ListCredential(ctx, optional) @@ -1489,7 +1489,7 @@ Name | Type | Description | Notes ### Return type -[**IpMessagingV2CredentialReadResponse**](ip_messaging_v2_credentialReadResponse.md) +[**ListCredentialResponse**](ListCredentialResponse.md) ### Authorization @@ -1507,7 +1507,7 @@ Name | Type | Description | Notes ## ListInvite -> IpMessagingV2ServiceChannelInviteReadResponse ListInvite(ctx, ServiceSid, ChannelSid, optional) +> ListInviteResponse ListInvite(ctx, ServiceSid, ChannelSid, optional) @@ -1535,7 +1535,7 @@ Name | Type | Description | Notes ### Return type -[**IpMessagingV2ServiceChannelInviteReadResponse**](ip_messaging_v2_service_channel_inviteReadResponse.md) +[**ListInviteResponse**](ListInviteResponse.md) ### Authorization @@ -1553,7 +1553,7 @@ Name | Type | Description | Notes ## ListMember -> IpMessagingV2ServiceChannelMemberReadResponse ListMember(ctx, ServiceSid, ChannelSid, optional) +> ListMemberResponse ListMember(ctx, ServiceSid, ChannelSid, optional) @@ -1581,7 +1581,7 @@ Name | Type | Description | Notes ### Return type -[**IpMessagingV2ServiceChannelMemberReadResponse**](ip_messaging_v2_service_channel_memberReadResponse.md) +[**ListMemberResponse**](ListMemberResponse.md) ### Authorization @@ -1599,7 +1599,7 @@ Name | Type | Description | Notes ## ListMessage -> IpMessagingV2ServiceChannelMessageReadResponse ListMessage(ctx, ServiceSid, ChannelSid, optional) +> ListMessageResponse ListMessage(ctx, ServiceSid, ChannelSid, optional) @@ -1627,7 +1627,7 @@ Name | Type | Description | Notes ### Return type -[**IpMessagingV2ServiceChannelMessageReadResponse**](ip_messaging_v2_service_channel_messageReadResponse.md) +[**ListMessageResponse**](ListMessageResponse.md) ### Authorization @@ -1645,7 +1645,7 @@ Name | Type | Description | Notes ## ListRole -> IpMessagingV2ServiceRoleReadResponse ListRole(ctx, ServiceSid, optional) +> ListRoleResponse ListRole(ctx, ServiceSid, optional) @@ -1670,7 +1670,7 @@ Name | Type | Description | Notes ### Return type -[**IpMessagingV2ServiceRoleReadResponse**](ip_messaging_v2_service_roleReadResponse.md) +[**ListRoleResponse**](ListRoleResponse.md) ### Authorization @@ -1688,7 +1688,7 @@ Name | Type | Description | Notes ## ListService -> IpMessagingV2ServiceReadResponse ListService(ctx, optional) +> ListServiceResponse ListService(ctx, optional) @@ -1711,7 +1711,7 @@ Name | Type | Description | Notes ### Return type -[**IpMessagingV2ServiceReadResponse**](ip_messaging_v2_serviceReadResponse.md) +[**ListServiceResponse**](ListServiceResponse.md) ### Authorization @@ -1729,7 +1729,7 @@ Name | Type | Description | Notes ## ListUser -> IpMessagingV2ServiceUserReadResponse ListUser(ctx, ServiceSid, optional) +> ListUserResponse ListUser(ctx, ServiceSid, optional) @@ -1754,7 +1754,7 @@ Name | Type | Description | Notes ### Return type -[**IpMessagingV2ServiceUserReadResponse**](ip_messaging_v2_service_userReadResponse.md) +[**ListUserResponse**](ListUserResponse.md) ### Authorization @@ -1772,7 +1772,7 @@ Name | Type | Description | Notes ## ListUserBinding -> IpMessagingV2ServiceUserUserBindingReadResponse ListUserBinding(ctx, ServiceSid, UserSid, optional) +> ListUserBindingResponse ListUserBinding(ctx, ServiceSid, UserSid, optional) @@ -1800,7 +1800,7 @@ Name | Type | Description | Notes ### Return type -[**IpMessagingV2ServiceUserUserBindingReadResponse**](ip_messaging_v2_service_user_user_bindingReadResponse.md) +[**ListUserBindingResponse**](ListUserBindingResponse.md) ### Authorization @@ -1818,7 +1818,7 @@ Name | Type | Description | Notes ## ListUserChannel -> IpMessagingV2ServiceUserUserChannelReadResponse ListUserChannel(ctx, ServiceSid, UserSid, optional) +> ListUserChannelResponse ListUserChannel(ctx, ServiceSid, UserSid, optional) @@ -1845,7 +1845,7 @@ Name | Type | Description | Notes ### Return type -[**IpMessagingV2ServiceUserUserChannelReadResponse**](ip_messaging_v2_service_user_user_channelReadResponse.md) +[**ListUserChannelResponse**](ListUserChannelResponse.md) ### Authorization diff --git a/rest/ip/messaging/docs/IpMessagingV1CredentialReadResponse.md b/rest/ip/messaging/docs/IpMessagingV1CredentialReadResponse.md deleted file mode 100644 index 5755dae87..000000000 --- a/rest/ip/messaging/docs/IpMessagingV1CredentialReadResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# IpMessagingV1CredentialReadResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Credentials** | [**[]IpMessagingV1Credential**](ip_messaging.v1.credential.md) | | [optional] -**Meta** | [**IpMessagingV1CredentialReadResponseMeta**](ip_messaging_v1_credentialReadResponse_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/rest/ip/messaging/docs/IpMessagingV1CredentialReadResponseMeta.md b/rest/ip/messaging/docs/IpMessagingV1CredentialReadResponseMeta.md deleted file mode 100644 index b98a5433a..000000000 --- a/rest/ip/messaging/docs/IpMessagingV1CredentialReadResponseMeta.md +++ /dev/null @@ -1,17 +0,0 @@ -# IpMessagingV1CredentialReadResponseMeta - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FirstPageUrl** | **string** | | [optional] -**Key** | **string** | | [optional] -**NextPageUrl** | **string** | | [optional] -**Page** | **int32** | | [optional] -**PageSize** | **int32** | | [optional] -**PreviousPageUrl** | **string** | | [optional] -**Url** | **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/rest/ip/messaging/docs/IpMessagingV1ServiceChannelInviteReadResponse.md b/rest/ip/messaging/docs/IpMessagingV1ServiceChannelInviteReadResponse.md deleted file mode 100644 index 049fb812e..000000000 --- a/rest/ip/messaging/docs/IpMessagingV1ServiceChannelInviteReadResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# IpMessagingV1ServiceChannelInviteReadResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Invites** | [**[]IpMessagingV1ServiceChannelInvite**](ip_messaging.v1.service.channel.invite.md) | | [optional] -**Meta** | [**IpMessagingV1CredentialReadResponseMeta**](ip_messaging_v1_credentialReadResponse_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/rest/ip/messaging/docs/IpMessagingV1ServiceChannelMemberReadResponse.md b/rest/ip/messaging/docs/IpMessagingV1ServiceChannelMemberReadResponse.md deleted file mode 100644 index 84a1cf711..000000000 --- a/rest/ip/messaging/docs/IpMessagingV1ServiceChannelMemberReadResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# IpMessagingV1ServiceChannelMemberReadResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Members** | [**[]IpMessagingV1ServiceChannelMember**](ip_messaging.v1.service.channel.member.md) | | [optional] -**Meta** | [**IpMessagingV1CredentialReadResponseMeta**](ip_messaging_v1_credentialReadResponse_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/rest/ip/messaging/docs/IpMessagingV1ServiceChannelMessageReadResponse.md b/rest/ip/messaging/docs/IpMessagingV1ServiceChannelMessageReadResponse.md deleted file mode 100644 index e28ca3cb7..000000000 --- a/rest/ip/messaging/docs/IpMessagingV1ServiceChannelMessageReadResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# IpMessagingV1ServiceChannelMessageReadResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Messages** | [**[]IpMessagingV1ServiceChannelMessage**](ip_messaging.v1.service.channel.message.md) | | [optional] -**Meta** | [**IpMessagingV1CredentialReadResponseMeta**](ip_messaging_v1_credentialReadResponse_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/rest/ip/messaging/docs/IpMessagingV1ServiceChannelReadResponse.md b/rest/ip/messaging/docs/IpMessagingV1ServiceChannelReadResponse.md deleted file mode 100644 index e363f359c..000000000 --- a/rest/ip/messaging/docs/IpMessagingV1ServiceChannelReadResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# IpMessagingV1ServiceChannelReadResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Channels** | [**[]IpMessagingV1ServiceChannel**](ip_messaging.v1.service.channel.md) | | [optional] -**Meta** | [**IpMessagingV1CredentialReadResponseMeta**](ip_messaging_v1_credentialReadResponse_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/rest/ip/messaging/docs/IpMessagingV1ServiceReadResponse.md b/rest/ip/messaging/docs/IpMessagingV1ServiceReadResponse.md deleted file mode 100644 index e7ebf23cb..000000000 --- a/rest/ip/messaging/docs/IpMessagingV1ServiceReadResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# IpMessagingV1ServiceReadResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Meta** | [**IpMessagingV1CredentialReadResponseMeta**](ip_messaging_v1_credentialReadResponse_meta.md) | | [optional] -**Services** | [**[]IpMessagingV1Service**](ip_messaging.v1.service.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/rest/ip/messaging/docs/IpMessagingV1ServiceRoleReadResponse.md b/rest/ip/messaging/docs/IpMessagingV1ServiceRoleReadResponse.md deleted file mode 100644 index 431eb6b7b..000000000 --- a/rest/ip/messaging/docs/IpMessagingV1ServiceRoleReadResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# IpMessagingV1ServiceRoleReadResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Meta** | [**IpMessagingV1CredentialReadResponseMeta**](ip_messaging_v1_credentialReadResponse_meta.md) | | [optional] -**Roles** | [**[]IpMessagingV1ServiceRole**](ip_messaging.v1.service.role.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/rest/ip/messaging/docs/IpMessagingV1ServiceUserReadResponse.md b/rest/ip/messaging/docs/IpMessagingV1ServiceUserReadResponse.md deleted file mode 100644 index 1930d98b3..000000000 --- a/rest/ip/messaging/docs/IpMessagingV1ServiceUserReadResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# IpMessagingV1ServiceUserReadResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Meta** | [**IpMessagingV1CredentialReadResponseMeta**](ip_messaging_v1_credentialReadResponse_meta.md) | | [optional] -**Users** | [**[]IpMessagingV1ServiceUser**](ip_messaging.v1.service.user.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/rest/ip/messaging/docs/IpMessagingV1ServiceUserUserChannelReadResponse.md b/rest/ip/messaging/docs/IpMessagingV1ServiceUserUserChannelReadResponse.md deleted file mode 100644 index 0c94d3e7d..000000000 --- a/rest/ip/messaging/docs/IpMessagingV1ServiceUserUserChannelReadResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# IpMessagingV1ServiceUserUserChannelReadResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Channels** | [**[]IpMessagingV1ServiceUserUserChannel**](ip_messaging.v1.service.user.user_channel.md) | | [optional] -**Meta** | [**IpMessagingV1CredentialReadResponseMeta**](ip_messaging_v1_credentialReadResponse_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/rest/ip/messaging/docs/IpMessagingV2CredentialReadResponseMeta.md b/rest/ip/messaging/docs/IpMessagingV2CredentialReadResponseMeta.md deleted file mode 100644 index 9448d0178..000000000 --- a/rest/ip/messaging/docs/IpMessagingV2CredentialReadResponseMeta.md +++ /dev/null @@ -1,17 +0,0 @@ -# IpMessagingV2CredentialReadResponseMeta - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FirstPageUrl** | **string** | | [optional] -**Key** | **string** | | [optional] -**NextPageUrl** | **string** | | [optional] -**Page** | **int32** | | [optional] -**PageSize** | **int32** | | [optional] -**PreviousPageUrl** | **string** | | [optional] -**Url** | **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/rest/ip/messaging/docs/IpMessagingV2ServiceBindingReadResponse.md b/rest/ip/messaging/docs/ListBindingResponse.md similarity index 69% rename from rest/ip/messaging/docs/IpMessagingV2ServiceBindingReadResponse.md rename to rest/ip/messaging/docs/ListBindingResponse.md index 0c8f31707..f93b640dd 100644 --- a/rest/ip/messaging/docs/IpMessagingV2ServiceBindingReadResponse.md +++ b/rest/ip/messaging/docs/ListBindingResponse.md @@ -1,11 +1,11 @@ -# IpMessagingV2ServiceBindingReadResponse +# ListBindingResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Bindings** | [**[]IpMessagingV2ServiceBinding**](ip_messaging.v2.service.binding.md) | | [optional] -**Meta** | [**IpMessagingV2CredentialReadResponseMeta**](ip_messaging_v2_credentialReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialResponseMeta**](ListCredentialResponse_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/rest/ip/messaging/docs/IpMessagingV2ServiceChannelReadResponse.md b/rest/ip/messaging/docs/ListChannelResponse.md similarity index 69% rename from rest/ip/messaging/docs/IpMessagingV2ServiceChannelReadResponse.md rename to rest/ip/messaging/docs/ListChannelResponse.md index 0d719d1d6..7b5253ed0 100644 --- a/rest/ip/messaging/docs/IpMessagingV2ServiceChannelReadResponse.md +++ b/rest/ip/messaging/docs/ListChannelResponse.md @@ -1,11 +1,11 @@ -# IpMessagingV2ServiceChannelReadResponse +# ListChannelResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Channels** | [**[]IpMessagingV2ServiceChannel**](ip_messaging.v2.service.channel.md) | | [optional] -**Meta** | [**IpMessagingV2CredentialReadResponseMeta**](ip_messaging_v2_credentialReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialResponseMeta**](ListCredentialResponse_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/rest/ip/messaging/docs/IpMessagingV2ServiceChannelChannelWebhookReadResponse.md b/rest/ip/messaging/docs/ListChannelWebhookResponse.md similarity index 69% rename from rest/ip/messaging/docs/IpMessagingV2ServiceChannelChannelWebhookReadResponse.md rename to rest/ip/messaging/docs/ListChannelWebhookResponse.md index 45a703881..470125d76 100644 --- a/rest/ip/messaging/docs/IpMessagingV2ServiceChannelChannelWebhookReadResponse.md +++ b/rest/ip/messaging/docs/ListChannelWebhookResponse.md @@ -1,10 +1,10 @@ -# IpMessagingV2ServiceChannelChannelWebhookReadResponse +# ListChannelWebhookResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**IpMessagingV2CredentialReadResponseMeta**](ip_messaging_v2_credentialReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialResponseMeta**](ListCredentialResponse_meta.md) | | [optional] **Webhooks** | [**[]IpMessagingV2ServiceChannelChannelWebhook**](ip_messaging.v2.service.channel.channel_webhook.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/rest/ip/messaging/docs/IpMessagingV2CredentialReadResponse.md b/rest/ip/messaging/docs/ListCredentialResponse.md similarity index 70% rename from rest/ip/messaging/docs/IpMessagingV2CredentialReadResponse.md rename to rest/ip/messaging/docs/ListCredentialResponse.md index a0ab73af3..37a6bd43a 100644 --- a/rest/ip/messaging/docs/IpMessagingV2CredentialReadResponse.md +++ b/rest/ip/messaging/docs/ListCredentialResponse.md @@ -1,11 +1,11 @@ -# IpMessagingV2CredentialReadResponse +# ListCredentialResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Credentials** | [**[]IpMessagingV2Credential**](ip_messaging.v2.credential.md) | | [optional] -**Meta** | [**IpMessagingV2CredentialReadResponseMeta**](ip_messaging_v2_credentialReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialResponseMeta**](ListCredentialResponse_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/rest/ip/messaging/docs/ListCredentialResponseMeta.md b/rest/ip/messaging/docs/ListCredentialResponseMeta.md new file mode 100644 index 000000000..20d8e9381 --- /dev/null +++ b/rest/ip/messaging/docs/ListCredentialResponseMeta.md @@ -0,0 +1,17 @@ +# ListCredentialResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/ip/messaging/docs/IpMessagingV2ServiceChannelInviteReadResponse.md b/rest/ip/messaging/docs/ListInviteResponse.md similarity index 69% rename from rest/ip/messaging/docs/IpMessagingV2ServiceChannelInviteReadResponse.md rename to rest/ip/messaging/docs/ListInviteResponse.md index 612414c0e..c56d93a1f 100644 --- a/rest/ip/messaging/docs/IpMessagingV2ServiceChannelInviteReadResponse.md +++ b/rest/ip/messaging/docs/ListInviteResponse.md @@ -1,11 +1,11 @@ -# IpMessagingV2ServiceChannelInviteReadResponse +# ListInviteResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Invites** | [**[]IpMessagingV2ServiceChannelInvite**](ip_messaging.v2.service.channel.invite.md) | | [optional] -**Meta** | [**IpMessagingV2CredentialReadResponseMeta**](ip_messaging_v2_credentialReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialResponseMeta**](ListCredentialResponse_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/rest/ip/messaging/docs/IpMessagingV2ServiceChannelMemberReadResponse.md b/rest/ip/messaging/docs/ListMemberResponse.md similarity index 69% rename from rest/ip/messaging/docs/IpMessagingV2ServiceChannelMemberReadResponse.md rename to rest/ip/messaging/docs/ListMemberResponse.md index 41e62515d..c7a90f4fa 100644 --- a/rest/ip/messaging/docs/IpMessagingV2ServiceChannelMemberReadResponse.md +++ b/rest/ip/messaging/docs/ListMemberResponse.md @@ -1,11 +1,11 @@ -# IpMessagingV2ServiceChannelMemberReadResponse +# ListMemberResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Members** | [**[]IpMessagingV2ServiceChannelMember**](ip_messaging.v2.service.channel.member.md) | | [optional] -**Meta** | [**IpMessagingV2CredentialReadResponseMeta**](ip_messaging_v2_credentialReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialResponseMeta**](ListCredentialResponse_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/rest/ip/messaging/docs/IpMessagingV2ServiceChannelMessageReadResponse.md b/rest/ip/messaging/docs/ListMessageResponse.md similarity index 69% rename from rest/ip/messaging/docs/IpMessagingV2ServiceChannelMessageReadResponse.md rename to rest/ip/messaging/docs/ListMessageResponse.md index c8d6843fc..f82ba0053 100644 --- a/rest/ip/messaging/docs/IpMessagingV2ServiceChannelMessageReadResponse.md +++ b/rest/ip/messaging/docs/ListMessageResponse.md @@ -1,11 +1,11 @@ -# IpMessagingV2ServiceChannelMessageReadResponse +# ListMessageResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Messages** | [**[]IpMessagingV2ServiceChannelMessage**](ip_messaging.v2.service.channel.message.md) | | [optional] -**Meta** | [**IpMessagingV2CredentialReadResponseMeta**](ip_messaging_v2_credentialReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialResponseMeta**](ListCredentialResponse_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/rest/ip/messaging/docs/IpMessagingV2ServiceRoleReadResponse.md b/rest/ip/messaging/docs/ListRoleResponse.md similarity index 69% rename from rest/ip/messaging/docs/IpMessagingV2ServiceRoleReadResponse.md rename to rest/ip/messaging/docs/ListRoleResponse.md index 173281dce..a7f0abdbc 100644 --- a/rest/ip/messaging/docs/IpMessagingV2ServiceRoleReadResponse.md +++ b/rest/ip/messaging/docs/ListRoleResponse.md @@ -1,10 +1,10 @@ -# IpMessagingV2ServiceRoleReadResponse +# ListRoleResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**IpMessagingV2CredentialReadResponseMeta**](ip_messaging_v2_credentialReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialResponseMeta**](ListCredentialResponse_meta.md) | | [optional] **Roles** | [**[]IpMessagingV2ServiceRole**](ip_messaging.v2.service.role.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/rest/ip/messaging/docs/IpMessagingV2ServiceReadResponse.md b/rest/ip/messaging/docs/ListServiceResponse.md similarity index 69% rename from rest/ip/messaging/docs/IpMessagingV2ServiceReadResponse.md rename to rest/ip/messaging/docs/ListServiceResponse.md index 97fa10ed0..d90faab1d 100644 --- a/rest/ip/messaging/docs/IpMessagingV2ServiceReadResponse.md +++ b/rest/ip/messaging/docs/ListServiceResponse.md @@ -1,10 +1,10 @@ -# IpMessagingV2ServiceReadResponse +# ListServiceResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**IpMessagingV2CredentialReadResponseMeta**](ip_messaging_v2_credentialReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialResponseMeta**](ListCredentialResponse_meta.md) | | [optional] **Services** | [**[]IpMessagingV2Service**](ip_messaging.v2.service.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/rest/ip/messaging/docs/IpMessagingV2ServiceUserUserBindingReadResponse.md b/rest/ip/messaging/docs/ListUserBindingResponse.md similarity index 69% rename from rest/ip/messaging/docs/IpMessagingV2ServiceUserUserBindingReadResponse.md rename to rest/ip/messaging/docs/ListUserBindingResponse.md index a041622c5..1e5d3eb7e 100644 --- a/rest/ip/messaging/docs/IpMessagingV2ServiceUserUserBindingReadResponse.md +++ b/rest/ip/messaging/docs/ListUserBindingResponse.md @@ -1,11 +1,11 @@ -# IpMessagingV2ServiceUserUserBindingReadResponse +# ListUserBindingResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Bindings** | [**[]IpMessagingV2ServiceUserUserBinding**](ip_messaging.v2.service.user.user_binding.md) | | [optional] -**Meta** | [**IpMessagingV2CredentialReadResponseMeta**](ip_messaging_v2_credentialReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialResponseMeta**](ListCredentialResponse_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/rest/ip/messaging/docs/IpMessagingV2ServiceUserUserChannelReadResponse.md b/rest/ip/messaging/docs/ListUserChannelResponse.md similarity index 69% rename from rest/ip/messaging/docs/IpMessagingV2ServiceUserUserChannelReadResponse.md rename to rest/ip/messaging/docs/ListUserChannelResponse.md index d578b205b..7fd9bd11f 100644 --- a/rest/ip/messaging/docs/IpMessagingV2ServiceUserUserChannelReadResponse.md +++ b/rest/ip/messaging/docs/ListUserChannelResponse.md @@ -1,11 +1,11 @@ -# IpMessagingV2ServiceUserUserChannelReadResponse +# ListUserChannelResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Channels** | [**[]IpMessagingV2ServiceUserUserChannel**](ip_messaging.v2.service.user.user_channel.md) | | [optional] -**Meta** | [**IpMessagingV2CredentialReadResponseMeta**](ip_messaging_v2_credentialReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialResponseMeta**](ListCredentialResponse_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/rest/ip/messaging/docs/IpMessagingV2ServiceUserReadResponse.md b/rest/ip/messaging/docs/ListUserResponse.md similarity index 69% rename from rest/ip/messaging/docs/IpMessagingV2ServiceUserReadResponse.md rename to rest/ip/messaging/docs/ListUserResponse.md index 549a07d87..2ddf741fb 100644 --- a/rest/ip/messaging/docs/IpMessagingV2ServiceUserReadResponse.md +++ b/rest/ip/messaging/docs/ListUserResponse.md @@ -1,10 +1,10 @@ -# IpMessagingV2ServiceUserReadResponse +# ListUserResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**IpMessagingV2CredentialReadResponseMeta**](ip_messaging_v2_credentialReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialResponseMeta**](ListCredentialResponse_meta.md) | | [optional] **Users** | [**[]IpMessagingV2ServiceUser**](ip_messaging.v2.service.user.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/rest/ip/messaging/model_create_channel_request.go b/rest/ip/messaging/model_create_channel_request.go index 7fb5281bf..2f43b421e 100644 --- a/rest/ip/messaging/model_create_channel_request.go +++ b/rest/ip/messaging/model_create_channel_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_create_channel_webhook_request.go b/rest/ip/messaging/model_create_channel_webhook_request.go index 129054f7f..1c7e72d65 100644 --- a/rest/ip/messaging/model_create_channel_webhook_request.go +++ b/rest/ip/messaging/model_create_channel_webhook_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_create_credential_request.go b/rest/ip/messaging/model_create_credential_request.go index 500002e41..509da8350 100644 --- a/rest/ip/messaging/model_create_credential_request.go +++ b/rest/ip/messaging/model_create_credential_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_create_invite_request.go b/rest/ip/messaging/model_create_invite_request.go index 85be493d1..3ee869fce 100644 --- a/rest/ip/messaging/model_create_invite_request.go +++ b/rest/ip/messaging/model_create_invite_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_create_member_request.go b/rest/ip/messaging/model_create_member_request.go index bc8563683..7374eab1b 100644 --- a/rest/ip/messaging/model_create_member_request.go +++ b/rest/ip/messaging/model_create_member_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_create_message_request.go b/rest/ip/messaging/model_create_message_request.go index 884f5340a..d2a2fbf51 100644 --- a/rest/ip/messaging/model_create_message_request.go +++ b/rest/ip/messaging/model_create_message_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_create_role_request.go b/rest/ip/messaging/model_create_role_request.go index e52301079..b1b293ea8 100644 --- a/rest/ip/messaging/model_create_role_request.go +++ b/rest/ip/messaging/model_create_role_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_create_service_request.go b/rest/ip/messaging/model_create_service_request.go index 4bc5191af..e1d10b934 100644 --- a/rest/ip/messaging/model_create_service_request.go +++ b/rest/ip/messaging/model_create_service_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_create_user_request.go b/rest/ip/messaging/model_create_user_request.go index 9718989da..588f473fd 100644 --- a/rest/ip/messaging/model_create_user_request.go +++ b/rest/ip/messaging/model_create_user_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_ip_messaging_v1_credential.go b/rest/ip/messaging/model_ip_messaging_v1_credential.go index e3301b05d..f3ccd12dc 100644 --- a/rest/ip/messaging/model_ip_messaging_v1_credential.go +++ b/rest/ip/messaging/model_ip_messaging_v1_credential.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_ip_messaging_v1_credential_read_response.go b/rest/ip/messaging/model_ip_messaging_v1_credential_read_response.go deleted file mode 100644 index 13e9c25a6..000000000 --- a/rest/ip/messaging/model_ip_messaging_v1_credential_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Ip_messaging - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// IpMessagingV1CredentialReadResponse struct for IpMessagingV1CredentialReadResponse -type IpMessagingV1CredentialReadResponse struct { - Credentials []IpMessagingV1Credential `json:"Credentials,omitempty"` - Meta IpMessagingV1CredentialReadResponseMeta `json:"Meta,omitempty"` -} diff --git a/rest/ip/messaging/model_ip_messaging_v1_credential_read_response_meta.go b/rest/ip/messaging/model_ip_messaging_v1_credential_read_response_meta.go deleted file mode 100644 index a3c0662a9..000000000 --- a/rest/ip/messaging/model_ip_messaging_v1_credential_read_response_meta.go +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Twilio - Ip_messaging - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// IpMessagingV1CredentialReadResponseMeta struct for IpMessagingV1CredentialReadResponseMeta -type IpMessagingV1CredentialReadResponseMeta struct { - FirstPageUrl string `json:"FirstPageUrl,omitempty"` - Key string `json:"Key,omitempty"` - NextPageUrl string `json:"NextPageUrl,omitempty"` - Page int32 `json:"Page,omitempty"` - PageSize int32 `json:"PageSize,omitempty"` - PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` - Url string `json:"Url,omitempty"` -} diff --git a/rest/ip/messaging/model_ip_messaging_v1_service.go b/rest/ip/messaging/model_ip_messaging_v1_service.go index b89af0d25..ec4484a68 100644 --- a/rest/ip/messaging/model_ip_messaging_v1_service.go +++ b/rest/ip/messaging/model_ip_messaging_v1_service.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_channel.go b/rest/ip/messaging/model_ip_messaging_v1_service_channel.go index da9d71684..539bb7f93 100644 --- a/rest/ip/messaging/model_ip_messaging_v1_service_channel.go +++ b/rest/ip/messaging/model_ip_messaging_v1_service_channel.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_channel_invite.go b/rest/ip/messaging/model_ip_messaging_v1_service_channel_invite.go index 26c4039d3..5083b403c 100644 --- a/rest/ip/messaging/model_ip_messaging_v1_service_channel_invite.go +++ b/rest/ip/messaging/model_ip_messaging_v1_service_channel_invite.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_channel_invite_read_response.go b/rest/ip/messaging/model_ip_messaging_v1_service_channel_invite_read_response.go deleted file mode 100644 index 9c70d3bad..000000000 --- a/rest/ip/messaging/model_ip_messaging_v1_service_channel_invite_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Ip_messaging - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// IpMessagingV1ServiceChannelInviteReadResponse struct for IpMessagingV1ServiceChannelInviteReadResponse -type IpMessagingV1ServiceChannelInviteReadResponse struct { - Invites []IpMessagingV1ServiceChannelInvite `json:"Invites,omitempty"` - Meta IpMessagingV1CredentialReadResponseMeta `json:"Meta,omitempty"` -} diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_channel_member.go b/rest/ip/messaging/model_ip_messaging_v1_service_channel_member.go index 9979a4382..5bb9d9a3e 100644 --- a/rest/ip/messaging/model_ip_messaging_v1_service_channel_member.go +++ b/rest/ip/messaging/model_ip_messaging_v1_service_channel_member.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_channel_member_read_response.go b/rest/ip/messaging/model_ip_messaging_v1_service_channel_member_read_response.go deleted file mode 100644 index 81961eae3..000000000 --- a/rest/ip/messaging/model_ip_messaging_v1_service_channel_member_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Ip_messaging - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// IpMessagingV1ServiceChannelMemberReadResponse struct for IpMessagingV1ServiceChannelMemberReadResponse -type IpMessagingV1ServiceChannelMemberReadResponse struct { - Members []IpMessagingV1ServiceChannelMember `json:"Members,omitempty"` - Meta IpMessagingV1CredentialReadResponseMeta `json:"Meta,omitempty"` -} diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_channel_message.go b/rest/ip/messaging/model_ip_messaging_v1_service_channel_message.go index 268125a01..19891a8b9 100644 --- a/rest/ip/messaging/model_ip_messaging_v1_service_channel_message.go +++ b/rest/ip/messaging/model_ip_messaging_v1_service_channel_message.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_channel_message_read_response.go b/rest/ip/messaging/model_ip_messaging_v1_service_channel_message_read_response.go deleted file mode 100644 index 7a63ecc45..000000000 --- a/rest/ip/messaging/model_ip_messaging_v1_service_channel_message_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Ip_messaging - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// IpMessagingV1ServiceChannelMessageReadResponse struct for IpMessagingV1ServiceChannelMessageReadResponse -type IpMessagingV1ServiceChannelMessageReadResponse struct { - Messages []IpMessagingV1ServiceChannelMessage `json:"Messages,omitempty"` - Meta IpMessagingV1CredentialReadResponseMeta `json:"Meta,omitempty"` -} diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_channel_read_response.go b/rest/ip/messaging/model_ip_messaging_v1_service_channel_read_response.go deleted file mode 100644 index cb6208d76..000000000 --- a/rest/ip/messaging/model_ip_messaging_v1_service_channel_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Ip_messaging - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// IpMessagingV1ServiceChannelReadResponse struct for IpMessagingV1ServiceChannelReadResponse -type IpMessagingV1ServiceChannelReadResponse struct { - Channels []IpMessagingV1ServiceChannel `json:"Channels,omitempty"` - Meta IpMessagingV1CredentialReadResponseMeta `json:"Meta,omitempty"` -} diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_read_response.go b/rest/ip/messaging/model_ip_messaging_v1_service_read_response.go deleted file mode 100644 index 87b5e9003..000000000 --- a/rest/ip/messaging/model_ip_messaging_v1_service_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Ip_messaging - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// IpMessagingV1ServiceReadResponse struct for IpMessagingV1ServiceReadResponse -type IpMessagingV1ServiceReadResponse struct { - Meta IpMessagingV1CredentialReadResponseMeta `json:"Meta,omitempty"` - Services []IpMessagingV1Service `json:"Services,omitempty"` -} diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_role.go b/rest/ip/messaging/model_ip_messaging_v1_service_role.go index 7fed3d654..fe4f2e8d4 100644 --- a/rest/ip/messaging/model_ip_messaging_v1_service_role.go +++ b/rest/ip/messaging/model_ip_messaging_v1_service_role.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_role_read_response.go b/rest/ip/messaging/model_ip_messaging_v1_service_role_read_response.go deleted file mode 100644 index 680ede560..000000000 --- a/rest/ip/messaging/model_ip_messaging_v1_service_role_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Ip_messaging - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// IpMessagingV1ServiceRoleReadResponse struct for IpMessagingV1ServiceRoleReadResponse -type IpMessagingV1ServiceRoleReadResponse struct { - Meta IpMessagingV1CredentialReadResponseMeta `json:"Meta,omitempty"` - Roles []IpMessagingV1ServiceRole `json:"Roles,omitempty"` -} diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_user.go b/rest/ip/messaging/model_ip_messaging_v1_service_user.go index e2339d2be..256267a38 100644 --- a/rest/ip/messaging/model_ip_messaging_v1_service_user.go +++ b/rest/ip/messaging/model_ip_messaging_v1_service_user.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_user_read_response.go b/rest/ip/messaging/model_ip_messaging_v1_service_user_read_response.go deleted file mode 100644 index 4c1f9a3b0..000000000 --- a/rest/ip/messaging/model_ip_messaging_v1_service_user_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Ip_messaging - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// IpMessagingV1ServiceUserReadResponse struct for IpMessagingV1ServiceUserReadResponse -type IpMessagingV1ServiceUserReadResponse struct { - Meta IpMessagingV1CredentialReadResponseMeta `json:"Meta,omitempty"` - Users []IpMessagingV1ServiceUser `json:"Users,omitempty"` -} diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_user_user_channel.go b/rest/ip/messaging/model_ip_messaging_v1_service_user_user_channel.go index 89acc36e8..c4a87346c 100644 --- a/rest/ip/messaging/model_ip_messaging_v1_service_user_user_channel.go +++ b/rest/ip/messaging/model_ip_messaging_v1_service_user_user_channel.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_ip_messaging_v1_service_user_user_channel_read_response.go b/rest/ip/messaging/model_ip_messaging_v1_service_user_user_channel_read_response.go deleted file mode 100644 index 4f08582f3..000000000 --- a/rest/ip/messaging/model_ip_messaging_v1_service_user_user_channel_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Ip_messaging - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// IpMessagingV1ServiceUserUserChannelReadResponse struct for IpMessagingV1ServiceUserUserChannelReadResponse -type IpMessagingV1ServiceUserUserChannelReadResponse struct { - Channels []IpMessagingV1ServiceUserUserChannel `json:"Channels,omitempty"` - Meta IpMessagingV1CredentialReadResponseMeta `json:"Meta,omitempty"` -} diff --git a/rest/ip/messaging/model_ip_messaging_v2_credential.go b/rest/ip/messaging/model_ip_messaging_v2_credential.go index 733129b69..39c8a10f5 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_credential.go +++ b/rest/ip/messaging/model_ip_messaging_v2_credential.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_ip_messaging_v2_credential_read_response_meta.go b/rest/ip/messaging/model_ip_messaging_v2_credential_read_response_meta.go deleted file mode 100644 index 147dcc54c..000000000 --- a/rest/ip/messaging/model_ip_messaging_v2_credential_read_response_meta.go +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Twilio - Ip_messaging - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// IpMessagingV2CredentialReadResponseMeta struct for IpMessagingV2CredentialReadResponseMeta -type IpMessagingV2CredentialReadResponseMeta struct { - FirstPageUrl string `json:"FirstPageUrl,omitempty"` - Key string `json:"Key,omitempty"` - NextPageUrl string `json:"NextPageUrl,omitempty"` - Page int32 `json:"Page,omitempty"` - PageSize int32 `json:"PageSize,omitempty"` - PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` - Url string `json:"Url,omitempty"` -} diff --git a/rest/ip/messaging/model_ip_messaging_v2_service.go b/rest/ip/messaging/model_ip_messaging_v2_service.go index 5ed2d7fc0..6ee4c899d 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service.go +++ b/rest/ip/messaging/model_ip_messaging_v2_service.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_binding.go b/rest/ip/messaging/model_ip_messaging_v2_service_binding.go index 8fac850dd..7989bba69 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_binding.go +++ b/rest/ip/messaging/model_ip_messaging_v2_service_binding.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_channel.go b/rest/ip/messaging/model_ip_messaging_v2_service_channel.go index 85304e0f9..f00b4adf5 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_channel.go +++ b/rest/ip/messaging/model_ip_messaging_v2_service_channel.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_channel_channel_webhook.go b/rest/ip/messaging/model_ip_messaging_v2_service_channel_channel_webhook.go index 847ad3f06..0405260fe 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_channel_channel_webhook.go +++ b/rest/ip/messaging/model_ip_messaging_v2_service_channel_channel_webhook.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_channel_channel_webhook_read_response.go b/rest/ip/messaging/model_ip_messaging_v2_service_channel_channel_webhook_read_response.go deleted file mode 100644 index 4e9d490e3..000000000 --- a/rest/ip/messaging/model_ip_messaging_v2_service_channel_channel_webhook_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Ip_messaging - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// IpMessagingV2ServiceChannelChannelWebhookReadResponse struct for IpMessagingV2ServiceChannelChannelWebhookReadResponse -type IpMessagingV2ServiceChannelChannelWebhookReadResponse struct { - Meta IpMessagingV2CredentialReadResponseMeta `json:"Meta,omitempty"` - Webhooks []IpMessagingV2ServiceChannelChannelWebhook `json:"Webhooks,omitempty"` -} diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_channel_invite.go b/rest/ip/messaging/model_ip_messaging_v2_service_channel_invite.go index 606e9d0a0..b052a4068 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_channel_invite.go +++ b/rest/ip/messaging/model_ip_messaging_v2_service_channel_invite.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_channel_member.go b/rest/ip/messaging/model_ip_messaging_v2_service_channel_member.go index 93fcf3e77..b445c1e65 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_channel_member.go +++ b/rest/ip/messaging/model_ip_messaging_v2_service_channel_member.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_channel_message.go b/rest/ip/messaging/model_ip_messaging_v2_service_channel_message.go index 840c9d858..fd110ab7c 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_channel_message.go +++ b/rest/ip/messaging/model_ip_messaging_v2_service_channel_message.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_role.go b/rest/ip/messaging/model_ip_messaging_v2_service_role.go index 79a02f745..ce6819fd8 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_role.go +++ b/rest/ip/messaging/model_ip_messaging_v2_service_role.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_user.go b/rest/ip/messaging/model_ip_messaging_v2_service_user.go index e12f9d81e..695210eaa 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_user.go +++ b/rest/ip/messaging/model_ip_messaging_v2_service_user.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_user_user_binding.go b/rest/ip/messaging/model_ip_messaging_v2_service_user_user_binding.go index efad3f0ca..e6e7e8897 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_user_user_binding.go +++ b/rest/ip/messaging/model_ip_messaging_v2_service_user_user_binding.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_user_user_channel.go b/rest/ip/messaging/model_ip_messaging_v2_service_user_user_channel.go index 238f7e95a..0851a0313 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_user_user_channel.go +++ b/rest/ip/messaging/model_ip_messaging_v2_service_user_user_channel.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_binding_read_response.go b/rest/ip/messaging/model_list_binding_response.go similarity index 52% rename from rest/ip/messaging/model_ip_messaging_v2_service_binding_read_response.go rename to rest/ip/messaging/model_list_binding_response.go index 10508dc81..c972a01ef 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_binding_read_response.go +++ b/rest/ip/messaging/model_list_binding_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// IpMessagingV2ServiceBindingReadResponse struct for IpMessagingV2ServiceBindingReadResponse -type IpMessagingV2ServiceBindingReadResponse struct { +// ListBindingResponse struct for ListBindingResponse +type ListBindingResponse struct { Bindings []IpMessagingV2ServiceBinding `json:"Bindings,omitempty"` - Meta IpMessagingV2CredentialReadResponseMeta `json:"Meta,omitempty"` + Meta ListCredentialResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_channel_read_response.go b/rest/ip/messaging/model_list_channel_response.go similarity index 52% rename from rest/ip/messaging/model_ip_messaging_v2_service_channel_read_response.go rename to rest/ip/messaging/model_list_channel_response.go index 8ad412595..98f7724fb 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_channel_read_response.go +++ b/rest/ip/messaging/model_list_channel_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// IpMessagingV2ServiceChannelReadResponse struct for IpMessagingV2ServiceChannelReadResponse -type IpMessagingV2ServiceChannelReadResponse struct { +// ListChannelResponse struct for ListChannelResponse +type ListChannelResponse struct { Channels []IpMessagingV2ServiceChannel `json:"Channels,omitempty"` - Meta IpMessagingV2CredentialReadResponseMeta `json:"Meta,omitempty"` + Meta ListCredentialResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/ip/messaging/model_list_channel_webhook_response.go b/rest/ip/messaging/model_list_channel_webhook_response.go new file mode 100644 index 000000000..eaadc2c23 --- /dev/null +++ b/rest/ip/messaging/model_list_channel_webhook_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListChannelWebhookResponse struct for ListChannelWebhookResponse +type ListChannelWebhookResponse struct { + Meta ListCredentialResponseMeta `json:"Meta,omitempty"` + Webhooks []IpMessagingV2ServiceChannelChannelWebhook `json:"Webhooks,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v2_credential_read_response.go b/rest/ip/messaging/model_list_credential_response.go similarity index 53% rename from rest/ip/messaging/model_ip_messaging_v2_credential_read_response.go rename to rest/ip/messaging/model_list_credential_response.go index 816671ae4..b7662a671 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_credential_read_response.go +++ b/rest/ip/messaging/model_list_credential_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// IpMessagingV2CredentialReadResponse struct for IpMessagingV2CredentialReadResponse -type IpMessagingV2CredentialReadResponse struct { +// ListCredentialResponse struct for ListCredentialResponse +type ListCredentialResponse struct { Credentials []IpMessagingV2Credential `json:"Credentials,omitempty"` - Meta IpMessagingV2CredentialReadResponseMeta `json:"Meta,omitempty"` + Meta ListCredentialResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/ip/messaging/model_list_credential_response_meta.go b/rest/ip/messaging/model_list_credential_response_meta.go new file mode 100644 index 000000000..df95cac99 --- /dev/null +++ b/rest/ip/messaging/model_list_credential_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Ip_messaging + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListCredentialResponseMeta struct for ListCredentialResponseMeta +type ListCredentialResponseMeta struct { + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` +} diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_channel_invite_read_response.go b/rest/ip/messaging/model_list_invite_response.go similarity index 50% rename from rest/ip/messaging/model_ip_messaging_v2_service_channel_invite_read_response.go rename to rest/ip/messaging/model_list_invite_response.go index 89c7a72a2..364cc21b7 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_channel_invite_read_response.go +++ b/rest/ip/messaging/model_list_invite_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// IpMessagingV2ServiceChannelInviteReadResponse struct for IpMessagingV2ServiceChannelInviteReadResponse -type IpMessagingV2ServiceChannelInviteReadResponse struct { +// ListInviteResponse struct for ListInviteResponse +type ListInviteResponse struct { Invites []IpMessagingV2ServiceChannelInvite `json:"Invites,omitempty"` - Meta IpMessagingV2CredentialReadResponseMeta `json:"Meta,omitempty"` + Meta ListCredentialResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_channel_member_read_response.go b/rest/ip/messaging/model_list_member_response.go similarity index 50% rename from rest/ip/messaging/model_ip_messaging_v2_service_channel_member_read_response.go rename to rest/ip/messaging/model_list_member_response.go index 63a053f03..258215cba 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_channel_member_read_response.go +++ b/rest/ip/messaging/model_list_member_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// IpMessagingV2ServiceChannelMemberReadResponse struct for IpMessagingV2ServiceChannelMemberReadResponse -type IpMessagingV2ServiceChannelMemberReadResponse struct { +// ListMemberResponse struct for ListMemberResponse +type ListMemberResponse struct { Members []IpMessagingV2ServiceChannelMember `json:"Members,omitempty"` - Meta IpMessagingV2CredentialReadResponseMeta `json:"Meta,omitempty"` + Meta ListCredentialResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_channel_message_read_response.go b/rest/ip/messaging/model_list_message_response.go similarity index 50% rename from rest/ip/messaging/model_ip_messaging_v2_service_channel_message_read_response.go rename to rest/ip/messaging/model_list_message_response.go index 1031c917d..f54cad29d 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_channel_message_read_response.go +++ b/rest/ip/messaging/model_list_message_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// IpMessagingV2ServiceChannelMessageReadResponse struct for IpMessagingV2ServiceChannelMessageReadResponse -type IpMessagingV2ServiceChannelMessageReadResponse struct { +// ListMessageResponse struct for ListMessageResponse +type ListMessageResponse struct { Messages []IpMessagingV2ServiceChannelMessage `json:"Messages,omitempty"` - Meta IpMessagingV2CredentialReadResponseMeta `json:"Meta,omitempty"` + Meta ListCredentialResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_role_read_response.go b/rest/ip/messaging/model_list_role_response.go similarity index 52% rename from rest/ip/messaging/model_ip_messaging_v2_service_role_read_response.go rename to rest/ip/messaging/model_list_role_response.go index a80995e38..e11daa710 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_role_read_response.go +++ b/rest/ip/messaging/model_list_role_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// IpMessagingV2ServiceRoleReadResponse struct for IpMessagingV2ServiceRoleReadResponse -type IpMessagingV2ServiceRoleReadResponse struct { - Meta IpMessagingV2CredentialReadResponseMeta `json:"Meta,omitempty"` +// ListRoleResponse struct for ListRoleResponse +type ListRoleResponse struct { + Meta ListCredentialResponseMeta `json:"Meta,omitempty"` Roles []IpMessagingV2ServiceRole `json:"Roles,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_read_response.go b/rest/ip/messaging/model_list_service_response.go similarity index 53% rename from rest/ip/messaging/model_ip_messaging_v2_service_read_response.go rename to rest/ip/messaging/model_list_service_response.go index de11ab51f..d7bd552fa 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_read_response.go +++ b/rest/ip/messaging/model_list_service_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// IpMessagingV2ServiceReadResponse struct for IpMessagingV2ServiceReadResponse -type IpMessagingV2ServiceReadResponse struct { - Meta IpMessagingV2CredentialReadResponseMeta `json:"Meta,omitempty"` +// ListServiceResponse struct for ListServiceResponse +type ListServiceResponse struct { + Meta ListCredentialResponseMeta `json:"Meta,omitempty"` Services []IpMessagingV2Service `json:"Services,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_user_user_binding_read_response.go b/rest/ip/messaging/model_list_user_binding_response.go similarity index 50% rename from rest/ip/messaging/model_ip_messaging_v2_service_user_user_binding_read_response.go rename to rest/ip/messaging/model_list_user_binding_response.go index 05ce6a813..477180571 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_user_user_binding_read_response.go +++ b/rest/ip/messaging/model_list_user_binding_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// IpMessagingV2ServiceUserUserBindingReadResponse struct for IpMessagingV2ServiceUserUserBindingReadResponse -type IpMessagingV2ServiceUserUserBindingReadResponse struct { +// ListUserBindingResponse struct for ListUserBindingResponse +type ListUserBindingResponse struct { Bindings []IpMessagingV2ServiceUserUserBinding `json:"Bindings,omitempty"` - Meta IpMessagingV2CredentialReadResponseMeta `json:"Meta,omitempty"` + Meta ListCredentialResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_user_user_channel_read_response.go b/rest/ip/messaging/model_list_user_channel_response.go similarity index 50% rename from rest/ip/messaging/model_ip_messaging_v2_service_user_user_channel_read_response.go rename to rest/ip/messaging/model_list_user_channel_response.go index 16216df55..8e2effa4b 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_user_user_channel_read_response.go +++ b/rest/ip/messaging/model_list_user_channel_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// IpMessagingV2ServiceUserUserChannelReadResponse struct for IpMessagingV2ServiceUserUserChannelReadResponse -type IpMessagingV2ServiceUserUserChannelReadResponse struct { +// ListUserChannelResponse struct for ListUserChannelResponse +type ListUserChannelResponse struct { Channels []IpMessagingV2ServiceUserUserChannel `json:"Channels,omitempty"` - Meta IpMessagingV2CredentialReadResponseMeta `json:"Meta,omitempty"` + Meta ListCredentialResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/ip/messaging/model_ip_messaging_v2_service_user_read_response.go b/rest/ip/messaging/model_list_user_response.go similarity index 52% rename from rest/ip/messaging/model_ip_messaging_v2_service_user_read_response.go rename to rest/ip/messaging/model_list_user_response.go index d5abc94be..e51d602c5 100644 --- a/rest/ip/messaging/model_ip_messaging_v2_service_user_read_response.go +++ b/rest/ip/messaging/model_list_user_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// IpMessagingV2ServiceUserReadResponse struct for IpMessagingV2ServiceUserReadResponse -type IpMessagingV2ServiceUserReadResponse struct { - Meta IpMessagingV2CredentialReadResponseMeta `json:"Meta,omitempty"` +// ListUserResponse struct for ListUserResponse +type ListUserResponse struct { + Meta ListCredentialResponseMeta `json:"Meta,omitempty"` Users []IpMessagingV2ServiceUser `json:"Users,omitempty"` } diff --git a/rest/ip/messaging/model_update_channel_request.go b/rest/ip/messaging/model_update_channel_request.go index fd75370d5..62a64489a 100644 --- a/rest/ip/messaging/model_update_channel_request.go +++ b/rest/ip/messaging/model_update_channel_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_update_channel_webhook_request.go b/rest/ip/messaging/model_update_channel_webhook_request.go index 7fd8dad99..fea28dc18 100644 --- a/rest/ip/messaging/model_update_channel_webhook_request.go +++ b/rest/ip/messaging/model_update_channel_webhook_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_update_credential_request.go b/rest/ip/messaging/model_update_credential_request.go index c3230926a..a119d337c 100644 --- a/rest/ip/messaging/model_update_credential_request.go +++ b/rest/ip/messaging/model_update_credential_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_update_member_request.go b/rest/ip/messaging/model_update_member_request.go index 9ff8c28e6..aa709a004 100644 --- a/rest/ip/messaging/model_update_member_request.go +++ b/rest/ip/messaging/model_update_member_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_update_message_request.go b/rest/ip/messaging/model_update_message_request.go index 8a07923fa..342bd9d14 100644 --- a/rest/ip/messaging/model_update_message_request.go +++ b/rest/ip/messaging/model_update_message_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_update_role_request.go b/rest/ip/messaging/model_update_role_request.go index c087657c6..af94d16da 100644 --- a/rest/ip/messaging/model_update_role_request.go +++ b/rest/ip/messaging/model_update_role_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_update_service_request.go b/rest/ip/messaging/model_update_service_request.go index 81e121461..13765b90a 100644 --- a/rest/ip/messaging/model_update_service_request.go +++ b/rest/ip/messaging/model_update_service_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_update_user_channel_request.go b/rest/ip/messaging/model_update_user_channel_request.go index de5be9dde..55bb4f818 100644 --- a/rest/ip/messaging/model_update_user_channel_request.go +++ b/rest/ip/messaging/model_update_user_channel_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/model_update_user_request.go b/rest/ip/messaging/model_update_user_request.go index 72b94c000..10a12cbf9 100644 --- a/rest/ip/messaging/model_update_user_request.go +++ b/rest/ip/messaging/model_update_user_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/ip/messaging/response.go b/rest/ip/messaging/response.go index 05b2f1ede..2f6d6abfb 100644 --- a/rest/ip/messaging/response.go +++ b/rest/ip/messaging/response.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/lookups/v1/README.md b/rest/lookups/v1/README.md index 27b8be1f3..6bf464be3 100644 --- a/rest/lookups/v1/README.md +++ b/rest/lookups/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 5.15.0 +- API version: 1.0.0 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) diff --git a/rest/lookups/v1/api_default.go b/rest/lookups/v1/api_default.go index d8836909e..07f3b91ca 100644 --- a/rest/lookups/v1/api_default.go +++ b/rest/lookups/v1/api_default.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -26,15 +26,15 @@ type DefaultApiService struct { func NewDefaultApiService(client *twilio.Client) *DefaultApiService { return &DefaultApiService { client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + baseURL: fmt.Sprintf("https://lookups.twilio.com"), } } // FetchPhoneNumberParams Optional parameters for the method 'FetchPhoneNumber' type FetchPhoneNumberParams struct { - CountryCode *string `json:"CountryCode,omitempty"` - Type *[]string `json:"Type,omitempty"` - AddOns *[]string `json:"AddOns,omitempty"` - AddOnsData *map[string]interface{} `json:"AddOnsData,omitempty"` + CountryCode *string `json:"CountryCode,omitempty"` + Type *[]string `json:"Type,omitempty"` + AddOns *[]string `json:"AddOns,omitempty"` + AddOnsData *map[string]interface{} `json:"AddOnsData,omitempty"` } /* diff --git a/rest/lookups/v1/model_lookups_v1_phone_number.go b/rest/lookups/v1/model_lookups_v1_phone_number.go index 7b007d883..7cfe5285d 100644 --- a/rest/lookups/v1/model_lookups_v1_phone_number.go +++ b/rest/lookups/v1/model_lookups_v1_phone_number.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/lookups/v1/response.go b/rest/lookups/v1/response.go index 3435243e7..a15d14044 100644 --- a/rest/lookups/v1/response.go +++ b/rest/lookups/v1/response.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/messaging/v1/README.md b/rest/messaging/v1/README.md index c747b5898..314dab0fa 100644 --- a/rest/messaging/v1/README.md +++ b/rest/messaging/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 5.15.0 +- API version: 1.0.0 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) @@ -57,16 +57,16 @@ Class | Method | HTTP request | Description - [CreatePhoneNumberRequest](docs/CreatePhoneNumberRequest.md) - [CreateServiceRequest](docs/CreateServiceRequest.md) - [CreateShortCodeRequest](docs/CreateShortCodeRequest.md) + - [ListAlphaSenderResponse](docs/ListAlphaSenderResponse.md) + - [ListPhoneNumberResponse](docs/ListPhoneNumberResponse.md) + - [ListServiceResponse](docs/ListServiceResponse.md) + - [ListServiceResponseMeta](docs/ListServiceResponseMeta.md) + - [ListShortCodeResponse](docs/ListShortCodeResponse.md) - [MessagingV1Deactivation](docs/MessagingV1Deactivation.md) - [MessagingV1Service](docs/MessagingV1Service.md) - [MessagingV1ServiceAlphaSender](docs/MessagingV1ServiceAlphaSender.md) - - [MessagingV1ServiceAlphaSenderReadResponse](docs/MessagingV1ServiceAlphaSenderReadResponse.md) - [MessagingV1ServicePhoneNumber](docs/MessagingV1ServicePhoneNumber.md) - - [MessagingV1ServicePhoneNumberReadResponse](docs/MessagingV1ServicePhoneNumberReadResponse.md) - - [MessagingV1ServiceReadResponse](docs/MessagingV1ServiceReadResponse.md) - - [MessagingV1ServiceReadResponseMeta](docs/MessagingV1ServiceReadResponseMeta.md) - [MessagingV1ServiceShortCode](docs/MessagingV1ServiceShortCode.md) - - [MessagingV1ServiceShortCodeReadResponse](docs/MessagingV1ServiceShortCodeReadResponse.md) - [UpdateServiceRequest](docs/UpdateServiceRequest.md) diff --git a/rest/messaging/v1/api_default.go b/rest/messaging/v1/api_default.go index ae7db44c8..98b1dcefc 100644 --- a/rest/messaging/v1/api_default.go +++ b/rest/messaging/v1/api_default.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -27,12 +27,12 @@ type DefaultApiService struct { func NewDefaultApiService(client *twilio.Client) *DefaultApiService { return &DefaultApiService { client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + baseURL: fmt.Sprintf("https://messaging.twilio.com"), } } // CreateAlphaSenderParams Optional parameters for the method 'CreateAlphaSender' type CreateAlphaSenderParams struct { - AlphaSender *string `json:"AlphaSender,omitempty"` + AlphaSender *string `json:"AlphaSender,omitempty"` } /* @@ -71,7 +71,7 @@ func (c *DefaultApiService) CreateAlphaSender(ServiceSid string, params *CreateA } // CreatePhoneNumberParams Optional parameters for the method 'CreatePhoneNumber' type CreatePhoneNumberParams struct { - PhoneNumberSid *string `json:"PhoneNumberSid,omitempty"` + PhoneNumberSid *string `json:"PhoneNumberSid,omitempty"` } /* @@ -110,20 +110,20 @@ func (c *DefaultApiService) CreatePhoneNumber(ServiceSid string, params *CreateP } // CreateServiceParams Optional parameters for the method 'CreateService' type CreateServiceParams struct { - AreaCodeGeomatch *bool `json:"AreaCodeGeomatch,omitempty"` - FallbackMethod *string `json:"FallbackMethod,omitempty"` - FallbackToLongCode *bool `json:"FallbackToLongCode,omitempty"` - FallbackUrl *string `json:"FallbackUrl,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - InboundMethod *string `json:"InboundMethod,omitempty"` - InboundRequestUrl *string `json:"InboundRequestUrl,omitempty"` - MmsConverter *bool `json:"MmsConverter,omitempty"` - ScanMessageContent *string `json:"ScanMessageContent,omitempty"` - SmartEncoding *bool `json:"SmartEncoding,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StickySender *bool `json:"StickySender,omitempty"` - SynchronousValidation *bool `json:"SynchronousValidation,omitempty"` - ValidityPeriod *int32 `json:"ValidityPeriod,omitempty"` + AreaCodeGeomatch *bool `json:"AreaCodeGeomatch,omitempty"` + FallbackMethod *string `json:"FallbackMethod,omitempty"` + FallbackToLongCode *bool `json:"FallbackToLongCode,omitempty"` + FallbackUrl *string `json:"FallbackUrl,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + InboundMethod *string `json:"InboundMethod,omitempty"` + InboundRequestUrl *string `json:"InboundRequestUrl,omitempty"` + MmsConverter *bool `json:"MmsConverter,omitempty"` + ScanMessageContent *string `json:"ScanMessageContent,omitempty"` + SmartEncoding *bool `json:"SmartEncoding,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StickySender *bool `json:"StickySender,omitempty"` + SynchronousValidation *bool `json:"SynchronousValidation,omitempty"` + ValidityPeriod *int32 `json:"ValidityPeriod,omitempty"` } /* @@ -212,7 +212,7 @@ func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*Messagi } // CreateShortCodeParams Optional parameters for the method 'CreateShortCode' type CreateShortCodeParams struct { - ShortCodeSid *string `json:"ShortCodeSid,omitempty"` + ShortCodeSid *string `json:"ShortCodeSid,omitempty"` } /* @@ -385,7 +385,7 @@ func (c *DefaultApiService) FetchAlphaSender(ServiceSid string, Sid string) (*Me } // FetchDeactivationParams Optional parameters for the method 'FetchDeactivation' type FetchDeactivationParams struct { - Date *time.Time `json:"Date,omitempty"` + Date *time.Time `json:"Date,omitempty"` } /* @@ -511,7 +511,7 @@ func (c *DefaultApiService) FetchShortCode(ServiceSid string, Sid string) (*Mess } // ListAlphaSenderParams Optional parameters for the method 'ListAlphaSender' type ListAlphaSenderParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -519,9 +519,9 @@ ListAlphaSender Method for ListAlphaSender * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the resources from. * @param optional nil or *ListAlphaSenderOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return MessagingV1ServiceAlphaSenderReadResponse +@return ListAlphaSenderResponse */ -func (c *DefaultApiService) ListAlphaSender(ServiceSid string, params *ListAlphaSenderParams) (*MessagingV1ServiceAlphaSenderReadResponse, error) { +func (c *DefaultApiService) ListAlphaSender(ServiceSid string, params *ListAlphaSenderParams) (*ListAlphaSenderResponse, error) { path := "/v1/Services/{ServiceSid}/AlphaSenders" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -541,7 +541,7 @@ func (c *DefaultApiService) ListAlphaSender(ServiceSid string, params *ListAlpha defer resp.Body.Close() - ps := &MessagingV1ServiceAlphaSenderReadResponse{} + ps := &ListAlphaSenderResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -550,7 +550,7 @@ func (c *DefaultApiService) ListAlphaSender(ServiceSid string, params *ListAlpha } // ListPhoneNumberParams Optional parameters for the method 'ListPhoneNumber' type ListPhoneNumberParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -558,9 +558,9 @@ ListPhoneNumber Method for ListPhoneNumber * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the resources from. * @param optional nil or *ListPhoneNumberOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return MessagingV1ServicePhoneNumberReadResponse +@return ListPhoneNumberResponse */ -func (c *DefaultApiService) ListPhoneNumber(ServiceSid string, params *ListPhoneNumberParams) (*MessagingV1ServicePhoneNumberReadResponse, error) { +func (c *DefaultApiService) ListPhoneNumber(ServiceSid string, params *ListPhoneNumberParams) (*ListPhoneNumberResponse, error) { path := "/v1/Services/{ServiceSid}/PhoneNumbers" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -580,7 +580,7 @@ func (c *DefaultApiService) ListPhoneNumber(ServiceSid string, params *ListPhone defer resp.Body.Close() - ps := &MessagingV1ServicePhoneNumberReadResponse{} + ps := &ListPhoneNumberResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -589,16 +589,16 @@ func (c *DefaultApiService) ListPhoneNumber(ServiceSid string, params *ListPhone } // ListServiceParams Optional parameters for the method 'ListService' type ListServiceParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* ListService Method for ListService * @param optional nil or *ListServiceOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return MessagingV1ServiceReadResponse +@return ListServiceResponse */ -func (c *DefaultApiService) ListService(params *ListServiceParams) (*MessagingV1ServiceReadResponse, error) { +func (c *DefaultApiService) ListService(params *ListServiceParams) (*ListServiceResponse, error) { path := "/v1/Services" @@ -617,7 +617,7 @@ func (c *DefaultApiService) ListService(params *ListServiceParams) (*MessagingV1 defer resp.Body.Close() - ps := &MessagingV1ServiceReadResponse{} + ps := &ListServiceResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -626,7 +626,7 @@ func (c *DefaultApiService) ListService(params *ListServiceParams) (*MessagingV1 } // ListShortCodeParams Optional parameters for the method 'ListShortCode' type ListShortCodeParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -634,9 +634,9 @@ ListShortCode Method for ListShortCode * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to read the resources from. * @param optional nil or *ListShortCodeOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return MessagingV1ServiceShortCodeReadResponse +@return ListShortCodeResponse */ -func (c *DefaultApiService) ListShortCode(ServiceSid string, params *ListShortCodeParams) (*MessagingV1ServiceShortCodeReadResponse, error) { +func (c *DefaultApiService) ListShortCode(ServiceSid string, params *ListShortCodeParams) (*ListShortCodeResponse, error) { path := "/v1/Services/{ServiceSid}/ShortCodes" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -656,7 +656,7 @@ func (c *DefaultApiService) ListShortCode(ServiceSid string, params *ListShortCo defer resp.Body.Close() - ps := &MessagingV1ServiceShortCodeReadResponse{} + ps := &ListShortCodeResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -665,20 +665,20 @@ func (c *DefaultApiService) ListShortCode(ServiceSid string, params *ListShortCo } // UpdateServiceParams Optional parameters for the method 'UpdateService' type UpdateServiceParams struct { - AreaCodeGeomatch *bool `json:"AreaCodeGeomatch,omitempty"` - FallbackMethod *string `json:"FallbackMethod,omitempty"` - FallbackToLongCode *bool `json:"FallbackToLongCode,omitempty"` - FallbackUrl *string `json:"FallbackUrl,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - InboundMethod *string `json:"InboundMethod,omitempty"` - InboundRequestUrl *string `json:"InboundRequestUrl,omitempty"` - MmsConverter *bool `json:"MmsConverter,omitempty"` - ScanMessageContent *string `json:"ScanMessageContent,omitempty"` - SmartEncoding *bool `json:"SmartEncoding,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StickySender *bool `json:"StickySender,omitempty"` - SynchronousValidation *bool `json:"SynchronousValidation,omitempty"` - ValidityPeriod *int32 `json:"ValidityPeriod,omitempty"` + AreaCodeGeomatch *bool `json:"AreaCodeGeomatch,omitempty"` + FallbackMethod *string `json:"FallbackMethod,omitempty"` + FallbackToLongCode *bool `json:"FallbackToLongCode,omitempty"` + FallbackUrl *string `json:"FallbackUrl,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + InboundMethod *string `json:"InboundMethod,omitempty"` + InboundRequestUrl *string `json:"InboundRequestUrl,omitempty"` + MmsConverter *bool `json:"MmsConverter,omitempty"` + ScanMessageContent *string `json:"ScanMessageContent,omitempty"` + SmartEncoding *bool `json:"SmartEncoding,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StickySender *bool `json:"StickySender,omitempty"` + SynchronousValidation *bool `json:"SynchronousValidation,omitempty"` + ValidityPeriod *int32 `json:"ValidityPeriod,omitempty"` } /* diff --git a/rest/messaging/v1/docs/DefaultApi.md b/rest/messaging/v1/docs/DefaultApi.md index 2999c492e..4a1914768 100644 --- a/rest/messaging/v1/docs/DefaultApi.md +++ b/rest/messaging/v1/docs/DefaultApi.md @@ -515,7 +515,7 @@ Name | Type | Description | Notes ## ListAlphaSender -> MessagingV1ServiceAlphaSenderReadResponse ListAlphaSender(ctx, ServiceSid, optional) +> ListAlphaSenderResponse ListAlphaSender(ctx, ServiceSid, optional) @@ -540,7 +540,7 @@ Name | Type | Description | Notes ### Return type -[**MessagingV1ServiceAlphaSenderReadResponse**](messaging_v1_service_alpha_senderReadResponse.md) +[**ListAlphaSenderResponse**](ListAlphaSenderResponse.md) ### Authorization @@ -558,7 +558,7 @@ Name | Type | Description | Notes ## ListPhoneNumber -> MessagingV1ServicePhoneNumberReadResponse ListPhoneNumber(ctx, ServiceSid, optional) +> ListPhoneNumberResponse ListPhoneNumber(ctx, ServiceSid, optional) @@ -583,7 +583,7 @@ Name | Type | Description | Notes ### Return type -[**MessagingV1ServicePhoneNumberReadResponse**](messaging_v1_service_phone_numberReadResponse.md) +[**ListPhoneNumberResponse**](ListPhoneNumberResponse.md) ### Authorization @@ -601,7 +601,7 @@ Name | Type | Description | Notes ## ListService -> MessagingV1ServiceReadResponse ListService(ctx, optional) +> ListServiceResponse ListService(ctx, optional) @@ -624,7 +624,7 @@ Name | Type | Description | Notes ### Return type -[**MessagingV1ServiceReadResponse**](messaging_v1_serviceReadResponse.md) +[**ListServiceResponse**](ListServiceResponse.md) ### Authorization @@ -642,7 +642,7 @@ Name | Type | Description | Notes ## ListShortCode -> MessagingV1ServiceShortCodeReadResponse ListShortCode(ctx, ServiceSid, optional) +> ListShortCodeResponse ListShortCode(ctx, ServiceSid, optional) @@ -667,7 +667,7 @@ Name | Type | Description | Notes ### Return type -[**MessagingV1ServiceShortCodeReadResponse**](messaging_v1_service_short_codeReadResponse.md) +[**ListShortCodeResponse**](ListShortCodeResponse.md) ### Authorization diff --git a/rest/messaging/v1/docs/MessagingV1ServiceAlphaSenderReadResponse.md b/rest/messaging/v1/docs/ListAlphaSenderResponse.md similarity index 71% rename from rest/messaging/v1/docs/MessagingV1ServiceAlphaSenderReadResponse.md rename to rest/messaging/v1/docs/ListAlphaSenderResponse.md index bbfabdaeb..e530f21aa 100644 --- a/rest/messaging/v1/docs/MessagingV1ServiceAlphaSenderReadResponse.md +++ b/rest/messaging/v1/docs/ListAlphaSenderResponse.md @@ -1,11 +1,11 @@ -# MessagingV1ServiceAlphaSenderReadResponse +# ListAlphaSenderResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AlphaSenders** | [**[]MessagingV1ServiceAlphaSender**](messaging.v1.service.alpha_sender.md) | | [optional] -**Meta** | [**MessagingV1ServiceReadResponseMeta**](messaging_v1_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_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/rest/messaging/v1/docs/MessagingV1ServicePhoneNumberReadResponse.md b/rest/messaging/v1/docs/ListPhoneNumberResponse.md similarity index 71% rename from rest/messaging/v1/docs/MessagingV1ServicePhoneNumberReadResponse.md rename to rest/messaging/v1/docs/ListPhoneNumberResponse.md index 6d52e2d62..b731e625b 100644 --- a/rest/messaging/v1/docs/MessagingV1ServicePhoneNumberReadResponse.md +++ b/rest/messaging/v1/docs/ListPhoneNumberResponse.md @@ -1,10 +1,10 @@ -# MessagingV1ServicePhoneNumberReadResponse +# ListPhoneNumberResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**MessagingV1ServiceReadResponseMeta**](messaging_v1_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_meta.md) | | [optional] **PhoneNumbers** | [**[]MessagingV1ServicePhoneNumber**](messaging.v1.service.phone_number.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/rest/messaging/v1/docs/MessagingV1ServiceReadResponse.md b/rest/messaging/v1/docs/ListServiceResponse.md similarity index 71% rename from rest/messaging/v1/docs/MessagingV1ServiceReadResponse.md rename to rest/messaging/v1/docs/ListServiceResponse.md index bb4596900..6b8c5856c 100644 --- a/rest/messaging/v1/docs/MessagingV1ServiceReadResponse.md +++ b/rest/messaging/v1/docs/ListServiceResponse.md @@ -1,10 +1,10 @@ -# MessagingV1ServiceReadResponse +# ListServiceResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**MessagingV1ServiceReadResponseMeta**](messaging_v1_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_meta.md) | | [optional] **Services** | [**[]MessagingV1Service**](messaging.v1.service.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/rest/messaging/v1/docs/ListServiceResponseMeta.md b/rest/messaging/v1/docs/ListServiceResponseMeta.md new file mode 100644 index 000000000..010bc7d70 --- /dev/null +++ b/rest/messaging/v1/docs/ListServiceResponseMeta.md @@ -0,0 +1,17 @@ +# ListServiceResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/messaging/v1/docs/MessagingV1ServiceShortCodeReadResponse.md b/rest/messaging/v1/docs/ListShortCodeResponse.md similarity index 71% rename from rest/messaging/v1/docs/MessagingV1ServiceShortCodeReadResponse.md rename to rest/messaging/v1/docs/ListShortCodeResponse.md index 11c18c149..6bcf79206 100644 --- a/rest/messaging/v1/docs/MessagingV1ServiceShortCodeReadResponse.md +++ b/rest/messaging/v1/docs/ListShortCodeResponse.md @@ -1,10 +1,10 @@ -# MessagingV1ServiceShortCodeReadResponse +# ListShortCodeResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**MessagingV1ServiceReadResponseMeta**](messaging_v1_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_meta.md) | | [optional] **ShortCodes** | [**[]MessagingV1ServiceShortCode**](messaging.v1.service.short_code.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/rest/messaging/v1/docs/MessagingV1ServiceReadResponseMeta.md b/rest/messaging/v1/docs/MessagingV1ServiceReadResponseMeta.md deleted file mode 100644 index 12a17df21..000000000 --- a/rest/messaging/v1/docs/MessagingV1ServiceReadResponseMeta.md +++ /dev/null @@ -1,17 +0,0 @@ -# MessagingV1ServiceReadResponseMeta - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FirstPageUrl** | **string** | | [optional] -**Key** | **string** | | [optional] -**NextPageUrl** | **string** | | [optional] -**Page** | **int32** | | [optional] -**PageSize** | **int32** | | [optional] -**PreviousPageUrl** | **string** | | [optional] -**Url** | **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/rest/messaging/v1/model_create_alpha_sender_request.go b/rest/messaging/v1/model_create_alpha_sender_request.go index 853459f23..adf89b2ef 100644 --- a/rest/messaging/v1/model_create_alpha_sender_request.go +++ b/rest/messaging/v1/model_create_alpha_sender_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/messaging/v1/model_create_phone_number_request.go b/rest/messaging/v1/model_create_phone_number_request.go index cd071d486..768c2fe32 100644 --- a/rest/messaging/v1/model_create_phone_number_request.go +++ b/rest/messaging/v1/model_create_phone_number_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/messaging/v1/model_create_service_request.go b/rest/messaging/v1/model_create_service_request.go index eae491520..cd19dc45a 100644 --- a/rest/messaging/v1/model_create_service_request.go +++ b/rest/messaging/v1/model_create_service_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/messaging/v1/model_create_short_code_request.go b/rest/messaging/v1/model_create_short_code_request.go index b92016991..a5ea587b2 100644 --- a/rest/messaging/v1/model_create_short_code_request.go +++ b/rest/messaging/v1/model_create_short_code_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/messaging/v1/model_messaging_v1_service_alpha_sender_read_response.go b/rest/messaging/v1/model_list_alpha_sender_response.go similarity index 52% rename from rest/messaging/v1/model_messaging_v1_service_alpha_sender_read_response.go rename to rest/messaging/v1/model_list_alpha_sender_response.go index 8fbbc5708..e2bdc4d81 100644 --- a/rest/messaging/v1/model_messaging_v1_service_alpha_sender_read_response.go +++ b/rest/messaging/v1/model_list_alpha_sender_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// MessagingV1ServiceAlphaSenderReadResponse struct for MessagingV1ServiceAlphaSenderReadResponse -type MessagingV1ServiceAlphaSenderReadResponse struct { +// ListAlphaSenderResponse struct for ListAlphaSenderResponse +type ListAlphaSenderResponse struct { AlphaSenders []MessagingV1ServiceAlphaSender `json:"AlphaSenders,omitempty"` - Meta MessagingV1ServiceReadResponseMeta `json:"Meta,omitempty"` + Meta ListServiceResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/messaging/v1/model_messaging_v1_service_phone_number_read_response.go b/rest/messaging/v1/model_list_phone_number_response.go similarity index 52% rename from rest/messaging/v1/model_messaging_v1_service_phone_number_read_response.go rename to rest/messaging/v1/model_list_phone_number_response.go index 5c078b54b..cfa7cf4f5 100644 --- a/rest/messaging/v1/model_messaging_v1_service_phone_number_read_response.go +++ b/rest/messaging/v1/model_list_phone_number_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// MessagingV1ServicePhoneNumberReadResponse struct for MessagingV1ServicePhoneNumberReadResponse -type MessagingV1ServicePhoneNumberReadResponse struct { - Meta MessagingV1ServiceReadResponseMeta `json:"Meta,omitempty"` +// ListPhoneNumberResponse struct for ListPhoneNumberResponse +type ListPhoneNumberResponse struct { + Meta ListServiceResponseMeta `json:"Meta,omitempty"` PhoneNumbers []MessagingV1ServicePhoneNumber `json:"PhoneNumbers,omitempty"` } diff --git a/rest/messaging/v1/model_messaging_v1_service_read_response.go b/rest/messaging/v1/model_list_service_response.go similarity index 54% rename from rest/messaging/v1/model_messaging_v1_service_read_response.go rename to rest/messaging/v1/model_list_service_response.go index 12fb6ee89..fc6a100b0 100644 --- a/rest/messaging/v1/model_messaging_v1_service_read_response.go +++ b/rest/messaging/v1/model_list_service_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// MessagingV1ServiceReadResponse struct for MessagingV1ServiceReadResponse -type MessagingV1ServiceReadResponse struct { - Meta MessagingV1ServiceReadResponseMeta `json:"Meta,omitempty"` +// ListServiceResponse struct for ListServiceResponse +type ListServiceResponse struct { + Meta ListServiceResponseMeta `json:"Meta,omitempty"` Services []MessagingV1Service `json:"Services,omitempty"` } diff --git a/rest/messaging/v1/model_messaging_v1_service_read_response_meta.go b/rest/messaging/v1/model_list_service_response_meta.go similarity index 76% rename from rest/messaging/v1/model_messaging_v1_service_read_response_meta.go rename to rest/messaging/v1/model_list_service_response_meta.go index 47defd263..42b624b3c 100644 --- a/rest/messaging/v1/model_messaging_v1_service_read_response_meta.go +++ b/rest/messaging/v1/model_list_service_response_meta.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// MessagingV1ServiceReadResponseMeta struct for MessagingV1ServiceReadResponseMeta -type MessagingV1ServiceReadResponseMeta struct { +// ListServiceResponseMeta struct for ListServiceResponseMeta +type ListServiceResponseMeta struct { FirstPageUrl string `json:"FirstPageUrl,omitempty"` Key string `json:"Key,omitempty"` NextPageUrl string `json:"NextPageUrl,omitempty"` diff --git a/rest/messaging/v1/model_messaging_v1_service_short_code_read_response.go b/rest/messaging/v1/model_list_short_code_response.go similarity index 52% rename from rest/messaging/v1/model_messaging_v1_service_short_code_read_response.go rename to rest/messaging/v1/model_list_short_code_response.go index 338784285..40fe67f75 100644 --- a/rest/messaging/v1/model_messaging_v1_service_short_code_read_response.go +++ b/rest/messaging/v1/model_list_short_code_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// MessagingV1ServiceShortCodeReadResponse struct for MessagingV1ServiceShortCodeReadResponse -type MessagingV1ServiceShortCodeReadResponse struct { - Meta MessagingV1ServiceReadResponseMeta `json:"Meta,omitempty"` +// ListShortCodeResponse struct for ListShortCodeResponse +type ListShortCodeResponse struct { + Meta ListServiceResponseMeta `json:"Meta,omitempty"` ShortCodes []MessagingV1ServiceShortCode `json:"ShortCodes,omitempty"` } diff --git a/rest/messaging/v1/model_messaging_v1_deactivation.go b/rest/messaging/v1/model_messaging_v1_deactivation.go index 4a933a07a..cd22e39ad 100644 --- a/rest/messaging/v1/model_messaging_v1_deactivation.go +++ b/rest/messaging/v1/model_messaging_v1_deactivation.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/messaging/v1/model_messaging_v1_service.go b/rest/messaging/v1/model_messaging_v1_service.go index e05444f7c..39db2d053 100644 --- a/rest/messaging/v1/model_messaging_v1_service.go +++ b/rest/messaging/v1/model_messaging_v1_service.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/messaging/v1/model_messaging_v1_service_alpha_sender.go b/rest/messaging/v1/model_messaging_v1_service_alpha_sender.go index a8a29dbde..b592d0b08 100644 --- a/rest/messaging/v1/model_messaging_v1_service_alpha_sender.go +++ b/rest/messaging/v1/model_messaging_v1_service_alpha_sender.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/messaging/v1/model_messaging_v1_service_phone_number.go b/rest/messaging/v1/model_messaging_v1_service_phone_number.go index 13a2338c9..923e92993 100644 --- a/rest/messaging/v1/model_messaging_v1_service_phone_number.go +++ b/rest/messaging/v1/model_messaging_v1_service_phone_number.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/messaging/v1/model_messaging_v1_service_short_code.go b/rest/messaging/v1/model_messaging_v1_service_short_code.go index 01d2a0fc5..1b092b1f4 100644 --- a/rest/messaging/v1/model_messaging_v1_service_short_code.go +++ b/rest/messaging/v1/model_messaging_v1_service_short_code.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/messaging/v1/model_update_service_request.go b/rest/messaging/v1/model_update_service_request.go index 38336570c..603d4baf9 100644 --- a/rest/messaging/v1/model_update_service_request.go +++ b/rest/messaging/v1/model_update_service_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/messaging/v1/response.go b/rest/messaging/v1/response.go index 7c0cb9f95..b6d9fcf41 100644 --- a/rest/messaging/v1/response.go +++ b/rest/messaging/v1/response.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/monitor/v1/README.md b/rest/monitor/v1/README.md index b6ad76081..df1dcae23 100644 --- a/rest/monitor/v1/README.md +++ b/rest/monitor/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 5.15.0 +- API version: 1.0.0 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) @@ -39,12 +39,12 @@ Class | Method | HTTP request | Description ## Documentation For Models + - [ListAlertResponse](docs/ListAlertResponse.md) + - [ListAlertResponseMeta](docs/ListAlertResponseMeta.md) + - [ListEventResponse](docs/ListEventResponse.md) - [MonitorV1Alert](docs/MonitorV1Alert.md) - [MonitorV1AlertInstance](docs/MonitorV1AlertInstance.md) - - [MonitorV1AlertReadResponse](docs/MonitorV1AlertReadResponse.md) - - [MonitorV1AlertReadResponseMeta](docs/MonitorV1AlertReadResponseMeta.md) - [MonitorV1Event](docs/MonitorV1Event.md) - - [MonitorV1EventReadResponse](docs/MonitorV1EventReadResponse.md) ## Documentation For Authorization diff --git a/rest/monitor/v1/api_default.go b/rest/monitor/v1/api_default.go index 234df68b3..7b6e15f7e 100644 --- a/rest/monitor/v1/api_default.go +++ b/rest/monitor/v1/api_default.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -27,7 +27,7 @@ type DefaultApiService struct { func NewDefaultApiService(client *twilio.Client) *DefaultApiService { return &DefaultApiService { client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + baseURL: fmt.Sprintf("https://monitor.twilio.com"), } } @@ -92,10 +92,10 @@ func (c *DefaultApiService) FetchEvent(Sid string) (*MonitorV1Event, error) { } // ListAlertParams Optional parameters for the method 'ListAlert' type ListAlertParams struct { - LogLevel *string `json:"LogLevel,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - EndDate *time.Time `json:"EndDate,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + LogLevel *string `json:"LogLevel,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -105,9 +105,9 @@ ListAlert Method for ListAlert * @param "StartDate" (time.Time) - Only include alerts that occurred on or after this date and time. Specify the date and time in GMT and format as `YYYY-MM-DD` or `YYYY-MM-DDThh:mm:ssZ`. Queries for alerts older than 30 days are not supported. * @param "EndDate" (time.Time) - Only include alerts that occurred on or before this date and time. Specify the date and time in GMT and format as `YYYY-MM-DD` or `YYYY-MM-DDThh:mm:ssZ`. Queries for alerts older than 30 days are not supported. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return MonitorV1AlertReadResponse +@return ListAlertResponse */ -func (c *DefaultApiService) ListAlert(params *ListAlertParams) (*MonitorV1AlertReadResponse, error) { +func (c *DefaultApiService) ListAlert(params *ListAlertParams) (*ListAlertResponse, error) { path := "/v1/Alerts" @@ -135,7 +135,7 @@ func (c *DefaultApiService) ListAlert(params *ListAlertParams) (*MonitorV1AlertR defer resp.Body.Close() - ps := &MonitorV1AlertReadResponse{} + ps := &ListAlertResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -144,13 +144,13 @@ func (c *DefaultApiService) ListAlert(params *ListAlertParams) (*MonitorV1AlertR } // ListEventParams Optional parameters for the method 'ListEvent' type ListEventParams struct { - ActorSid *string `json:"ActorSid,omitempty"` - EventType *string `json:"EventType,omitempty"` - ResourceSid *string `json:"ResourceSid,omitempty"` - SourceIpAddress *string `json:"SourceIpAddress,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - EndDate *time.Time `json:"EndDate,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + ActorSid *string `json:"ActorSid,omitempty"` + EventType *string `json:"EventType,omitempty"` + ResourceSid *string `json:"ResourceSid,omitempty"` + SourceIpAddress *string `json:"SourceIpAddress,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -164,9 +164,9 @@ Returns a list of events in the account, sorted by event-date. * @param "StartDate" (time.Time) - Only include events that occurred on or after this date. Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. * @param "EndDate" (time.Time) - Only include events that occurred on or before this date. Specify the date in GMT and [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return MonitorV1EventReadResponse +@return ListEventResponse */ -func (c *DefaultApiService) ListEvent(params *ListEventParams) (*MonitorV1EventReadResponse, error) { +func (c *DefaultApiService) ListEvent(params *ListEventParams) (*ListEventResponse, error) { path := "/v1/Events" @@ -203,7 +203,7 @@ func (c *DefaultApiService) ListEvent(params *ListEventParams) (*MonitorV1EventR defer resp.Body.Close() - ps := &MonitorV1EventReadResponse{} + ps := &ListEventResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/monitor/v1/docs/DefaultApi.md b/rest/monitor/v1/docs/DefaultApi.md index 1f89e703e..72adce34b 100644 --- a/rest/monitor/v1/docs/DefaultApi.md +++ b/rest/monitor/v1/docs/DefaultApi.md @@ -77,7 +77,7 @@ Name | Type | Description | Notes ## ListAlert -> MonitorV1AlertReadResponse ListAlert(ctx, optional) +> ListAlertResponse ListAlert(ctx, optional) @@ -103,7 +103,7 @@ Name | Type | Description | Notes ### Return type -[**MonitorV1AlertReadResponse**](monitor_v1_alertReadResponse.md) +[**ListAlertResponse**](ListAlertResponse.md) ### Authorization @@ -121,7 +121,7 @@ Name | Type | Description | Notes ## ListEvent -> MonitorV1EventReadResponse ListEvent(ctx, optional) +> ListEventResponse ListEvent(ctx, optional) @@ -152,7 +152,7 @@ Name | Type | Description | Notes ### Return type -[**MonitorV1EventReadResponse**](monitor_v1_eventReadResponse.md) +[**ListEventResponse**](ListEventResponse.md) ### Authorization diff --git a/rest/monitor/v1/docs/MonitorV1AlertReadResponse.md b/rest/monitor/v1/docs/ListAlertResponse.md similarity index 72% rename from rest/monitor/v1/docs/MonitorV1AlertReadResponse.md rename to rest/monitor/v1/docs/ListAlertResponse.md index 88ac16526..3099c423b 100644 --- a/rest/monitor/v1/docs/MonitorV1AlertReadResponse.md +++ b/rest/monitor/v1/docs/ListAlertResponse.md @@ -1,11 +1,11 @@ -# MonitorV1AlertReadResponse +# ListAlertResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Alerts** | [**[]MonitorV1Alert**](monitor.v1.alert.md) | | [optional] -**Meta** | [**MonitorV1AlertReadResponseMeta**](monitor_v1_alertReadResponse_meta.md) | | [optional] +**Meta** | [**ListAlertResponseMeta**](ListAlertResponse_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/rest/monitor/v1/docs/ListAlertResponseMeta.md b/rest/monitor/v1/docs/ListAlertResponseMeta.md new file mode 100644 index 000000000..82a0c23e0 --- /dev/null +++ b/rest/monitor/v1/docs/ListAlertResponseMeta.md @@ -0,0 +1,17 @@ +# ListAlertResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/monitor/v1/docs/MonitorV1EventReadResponse.md b/rest/monitor/v1/docs/ListEventResponse.md similarity index 72% rename from rest/monitor/v1/docs/MonitorV1EventReadResponse.md rename to rest/monitor/v1/docs/ListEventResponse.md index e3c6f012a..2928df6fa 100644 --- a/rest/monitor/v1/docs/MonitorV1EventReadResponse.md +++ b/rest/monitor/v1/docs/ListEventResponse.md @@ -1,11 +1,11 @@ -# MonitorV1EventReadResponse +# ListEventResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Events** | [**[]MonitorV1Event**](monitor.v1.event.md) | | [optional] -**Meta** | [**MonitorV1AlertReadResponseMeta**](monitor_v1_alertReadResponse_meta.md) | | [optional] +**Meta** | [**ListAlertResponseMeta**](ListAlertResponse_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/rest/monitor/v1/model_monitor_v1_alert_read_response.go b/rest/monitor/v1/model_list_alert_response.go similarity index 55% rename from rest/monitor/v1/model_monitor_v1_alert_read_response.go rename to rest/monitor/v1/model_list_alert_response.go index bb4ae901f..7e60e0324 100644 --- a/rest/monitor/v1/model_monitor_v1_alert_read_response.go +++ b/rest/monitor/v1/model_list_alert_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// MonitorV1AlertReadResponse struct for MonitorV1AlertReadResponse -type MonitorV1AlertReadResponse struct { +// ListAlertResponse struct for ListAlertResponse +type ListAlertResponse struct { Alerts []MonitorV1Alert `json:"Alerts,omitempty"` - Meta MonitorV1AlertReadResponseMeta `json:"Meta,omitempty"` + Meta ListAlertResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/monitor/v1/model_monitor_v1_alert_read_response_meta.go b/rest/monitor/v1/model_list_alert_response_meta.go similarity index 77% rename from rest/monitor/v1/model_monitor_v1_alert_read_response_meta.go rename to rest/monitor/v1/model_list_alert_response_meta.go index 4ceb2a5df..dc9e66575 100644 --- a/rest/monitor/v1/model_monitor_v1_alert_read_response_meta.go +++ b/rest/monitor/v1/model_list_alert_response_meta.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// MonitorV1AlertReadResponseMeta struct for MonitorV1AlertReadResponseMeta -type MonitorV1AlertReadResponseMeta struct { +// ListAlertResponseMeta struct for ListAlertResponseMeta +type ListAlertResponseMeta struct { FirstPageUrl string `json:"FirstPageUrl,omitempty"` Key string `json:"Key,omitempty"` NextPageUrl string `json:"NextPageUrl,omitempty"` diff --git a/rest/monitor/v1/model_monitor_v1_event_read_response.go b/rest/monitor/v1/model_list_event_response.go similarity index 55% rename from rest/monitor/v1/model_monitor_v1_event_read_response.go rename to rest/monitor/v1/model_list_event_response.go index a2e5ce013..9c194597e 100644 --- a/rest/monitor/v1/model_monitor_v1_event_read_response.go +++ b/rest/monitor/v1/model_list_event_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// MonitorV1EventReadResponse struct for MonitorV1EventReadResponse -type MonitorV1EventReadResponse struct { +// ListEventResponse struct for ListEventResponse +type ListEventResponse struct { Events []MonitorV1Event `json:"Events,omitempty"` - Meta MonitorV1AlertReadResponseMeta `json:"Meta,omitempty"` + Meta ListAlertResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/monitor/v1/model_monitor_v1_alert.go b/rest/monitor/v1/model_monitor_v1_alert.go index 39fce56d5..c05957662 100644 --- a/rest/monitor/v1/model_monitor_v1_alert.go +++ b/rest/monitor/v1/model_monitor_v1_alert.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/monitor/v1/model_monitor_v1_alert_instance.go b/rest/monitor/v1/model_monitor_v1_alert_instance.go index 6a12bf9f4..2f36f0506 100644 --- a/rest/monitor/v1/model_monitor_v1_alert_instance.go +++ b/rest/monitor/v1/model_monitor_v1_alert_instance.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/monitor/v1/model_monitor_v1_event.go b/rest/monitor/v1/model_monitor_v1_event.go index 7b43d572c..d6227c3f7 100644 --- a/rest/monitor/v1/model_monitor_v1_event.go +++ b/rest/monitor/v1/model_monitor_v1_event.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/monitor/v1/response.go b/rest/monitor/v1/response.go index 0b9c18f5c..084482780 100644 --- a/rest/monitor/v1/response.go +++ b/rest/monitor/v1/response.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/notify/v1/README.md b/rest/notify/v1/README.md index 22366e522..0ba84434a 100644 --- a/rest/notify/v1/README.md +++ b/rest/notify/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 5.15.0 +- API version: 1.0.0 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) @@ -54,14 +54,14 @@ Class | Method | HTTP request | Description - [CreateCredentialRequest](docs/CreateCredentialRequest.md) - [CreateNotificationRequest](docs/CreateNotificationRequest.md) - [CreateServiceRequest](docs/CreateServiceRequest.md) + - [ListBindingResponse](docs/ListBindingResponse.md) + - [ListCredentialResponse](docs/ListCredentialResponse.md) + - [ListCredentialResponseMeta](docs/ListCredentialResponseMeta.md) + - [ListServiceResponse](docs/ListServiceResponse.md) - [NotifyV1Credential](docs/NotifyV1Credential.md) - - [NotifyV1CredentialReadResponse](docs/NotifyV1CredentialReadResponse.md) - - [NotifyV1CredentialReadResponseMeta](docs/NotifyV1CredentialReadResponseMeta.md) - [NotifyV1Service](docs/NotifyV1Service.md) - [NotifyV1ServiceBinding](docs/NotifyV1ServiceBinding.md) - - [NotifyV1ServiceBindingReadResponse](docs/NotifyV1ServiceBindingReadResponse.md) - [NotifyV1ServiceNotification](docs/NotifyV1ServiceNotification.md) - - [NotifyV1ServiceReadResponse](docs/NotifyV1ServiceReadResponse.md) - [UpdateCredentialRequest](docs/UpdateCredentialRequest.md) - [UpdateServiceRequest](docs/UpdateServiceRequest.md) diff --git a/rest/notify/v1/api_default.go b/rest/notify/v1/api_default.go index 0c3599ac8..a139de1ac 100644 --- a/rest/notify/v1/api_default.go +++ b/rest/notify/v1/api_default.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -27,18 +27,18 @@ type DefaultApiService struct { func NewDefaultApiService(client *twilio.Client) *DefaultApiService { return &DefaultApiService { client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + baseURL: fmt.Sprintf("https://notify.twilio.com"), } } // CreateBindingParams Optional parameters for the method 'CreateBinding' type CreateBindingParams struct { - Address *string `json:"Address,omitempty"` - BindingType *string `json:"BindingType,omitempty"` - CredentialSid *string `json:"CredentialSid,omitempty"` - Endpoint *string `json:"Endpoint,omitempty"` - Identity *string `json:"Identity,omitempty"` - NotificationProtocolVersion *string `json:"NotificationProtocolVersion,omitempty"` - Tag *[]string `json:"Tag,omitempty"` + Address *string `json:"Address,omitempty"` + BindingType *string `json:"BindingType,omitempty"` + CredentialSid *string `json:"CredentialSid,omitempty"` + Endpoint *string `json:"Endpoint,omitempty"` + Identity *string `json:"Identity,omitempty"` + NotificationProtocolVersion *string `json:"NotificationProtocolVersion,omitempty"` + Tag *[]string `json:"Tag,omitempty"` } /* @@ -101,13 +101,13 @@ func (c *DefaultApiService) CreateBinding(ServiceSid string, params *CreateBindi } // CreateCredentialParams Optional parameters for the method 'CreateCredential' type CreateCredentialParams struct { - ApiKey *string `json:"ApiKey,omitempty"` - Certificate *string `json:"Certificate,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PrivateKey *string `json:"PrivateKey,omitempty"` - Sandbox *bool `json:"Sandbox,omitempty"` - Secret *string `json:"Secret,omitempty"` - Type *string `json:"Type,omitempty"` + ApiKey *string `json:"ApiKey,omitempty"` + Certificate *string `json:"Certificate,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PrivateKey *string `json:"PrivateKey,omitempty"` + Sandbox *bool `json:"Sandbox,omitempty"` + Secret *string `json:"Secret,omitempty"` + Type *string `json:"Type,omitempty"` } /* @@ -168,24 +168,24 @@ func (c *DefaultApiService) CreateCredential(params *CreateCredentialParams) (*N } // CreateNotificationParams Optional parameters for the method 'CreateNotification' type CreateNotificationParams struct { - Action *string `json:"Action,omitempty"` - Alexa *map[string]interface{} `json:"Alexa,omitempty"` - Apn *map[string]interface{} `json:"Apn,omitempty"` - Body *string `json:"Body,omitempty"` - Data *map[string]interface{} `json:"Data,omitempty"` - DeliveryCallbackUrl *string `json:"DeliveryCallbackUrl,omitempty"` - FacebookMessenger *map[string]interface{} `json:"FacebookMessenger,omitempty"` - Fcm *map[string]interface{} `json:"Fcm,omitempty"` - Gcm *map[string]interface{} `json:"Gcm,omitempty"` - Identity *[]string `json:"Identity,omitempty"` - Priority *string `json:"Priority,omitempty"` - Segment *[]string `json:"Segment,omitempty"` - Sms *map[string]interface{} `json:"Sms,omitempty"` - Sound *string `json:"Sound,omitempty"` - Tag *[]string `json:"Tag,omitempty"` - Title *string `json:"Title,omitempty"` - ToBinding *[]string `json:"ToBinding,omitempty"` - Ttl *int32 `json:"Ttl,omitempty"` + Action *string `json:"Action,omitempty"` + Alexa *map[string]interface{} `json:"Alexa,omitempty"` + Apn *map[string]interface{} `json:"Apn,omitempty"` + Body *string `json:"Body,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` + DeliveryCallbackUrl *string `json:"DeliveryCallbackUrl,omitempty"` + FacebookMessenger *map[string]interface{} `json:"FacebookMessenger,omitempty"` + Fcm *map[string]interface{} `json:"Fcm,omitempty"` + Gcm *map[string]interface{} `json:"Gcm,omitempty"` + Identity *[]string `json:"Identity,omitempty"` + Priority *string `json:"Priority,omitempty"` + Segment *[]string `json:"Segment,omitempty"` + Sms *map[string]interface{} `json:"Sms,omitempty"` + Sound *string `json:"Sound,omitempty"` + Tag *[]string `json:"Tag,omitempty"` + Title *string `json:"Title,omitempty"` + ToBinding *[]string `json:"ToBinding,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` } /* @@ -334,20 +334,20 @@ func (c *DefaultApiService) CreateNotification(ServiceSid string, params *Create } // CreateServiceParams Optional parameters for the method 'CreateService' type CreateServiceParams struct { - AlexaSkillId *string `json:"AlexaSkillId,omitempty"` - ApnCredentialSid *string `json:"ApnCredentialSid,omitempty"` - DefaultAlexaNotificationProtocolVersion *string `json:"DefaultAlexaNotificationProtocolVersion,omitempty"` - DefaultApnNotificationProtocolVersion *string `json:"DefaultApnNotificationProtocolVersion,omitempty"` - DefaultFcmNotificationProtocolVersion *string `json:"DefaultFcmNotificationProtocolVersion,omitempty"` - DefaultGcmNotificationProtocolVersion *string `json:"DefaultGcmNotificationProtocolVersion,omitempty"` - DeliveryCallbackEnabled *bool `json:"DeliveryCallbackEnabled,omitempty"` - DeliveryCallbackUrl *string `json:"DeliveryCallbackUrl,omitempty"` - FacebookMessengerPageId *string `json:"FacebookMessengerPageId,omitempty"` - FcmCredentialSid *string `json:"FcmCredentialSid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - GcmCredentialSid *string `json:"GcmCredentialSid,omitempty"` - LogEnabled *bool `json:"LogEnabled,omitempty"` - MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` + AlexaSkillId *string `json:"AlexaSkillId,omitempty"` + ApnCredentialSid *string `json:"ApnCredentialSid,omitempty"` + DefaultAlexaNotificationProtocolVersion *string `json:"DefaultAlexaNotificationProtocolVersion,omitempty"` + DefaultApnNotificationProtocolVersion *string `json:"DefaultApnNotificationProtocolVersion,omitempty"` + DefaultFcmNotificationProtocolVersion *string `json:"DefaultFcmNotificationProtocolVersion,omitempty"` + DefaultGcmNotificationProtocolVersion *string `json:"DefaultGcmNotificationProtocolVersion,omitempty"` + DeliveryCallbackEnabled *bool `json:"DeliveryCallbackEnabled,omitempty"` + DeliveryCallbackUrl *string `json:"DeliveryCallbackUrl,omitempty"` + FacebookMessengerPageId *string `json:"FacebookMessengerPageId,omitempty"` + FcmCredentialSid *string `json:"FcmCredentialSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + GcmCredentialSid *string `json:"GcmCredentialSid,omitempty"` + LogEnabled *bool `json:"LogEnabled,omitempty"` + MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` } /* @@ -602,11 +602,11 @@ func (c *DefaultApiService) FetchService(Sid string) (*NotifyV1Service, error) { } // ListBindingParams Optional parameters for the method 'ListBinding' type ListBindingParams struct { - StartDate *time.Time `json:"StartDate,omitempty"` - EndDate *time.Time `json:"EndDate,omitempty"` - Identity *[]string `json:"Identity,omitempty"` - Tag *[]string `json:"Tag,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + Identity *[]string `json:"Identity,omitempty"` + Tag *[]string `json:"Tag,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -618,9 +618,9 @@ ListBinding Method for ListBinding * @param "Identity" ([]string) - The [User](https://www.twilio.com/docs/chat/rest/user-resource)'s `identity` value of the resources to read. * @param "Tag" ([]string) - Only list Bindings that have all of the specified Tags. The following implicit tags are available: `all`, `apn`, `fcm`, `gcm`, `sms`, `facebook-messenger`. Up to 5 tags are allowed. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return NotifyV1ServiceBindingReadResponse +@return ListBindingResponse */ -func (c *DefaultApiService) ListBinding(ServiceSid string, params *ListBindingParams) (*NotifyV1ServiceBindingReadResponse, error) { +func (c *DefaultApiService) ListBinding(ServiceSid string, params *ListBindingParams) (*ListBindingResponse, error) { path := "/v1/Services/{ServiceSid}/Bindings" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -652,7 +652,7 @@ func (c *DefaultApiService) ListBinding(ServiceSid string, params *ListBindingPa defer resp.Body.Close() - ps := &NotifyV1ServiceBindingReadResponse{} + ps := &ListBindingResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -661,16 +661,16 @@ func (c *DefaultApiService) ListBinding(ServiceSid string, params *ListBindingPa } // ListCredentialParams Optional parameters for the method 'ListCredential' type ListCredentialParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* ListCredential Method for ListCredential * @param optional nil or *ListCredentialOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return NotifyV1CredentialReadResponse +@return ListCredentialResponse */ -func (c *DefaultApiService) ListCredential(params *ListCredentialParams) (*NotifyV1CredentialReadResponse, error) { +func (c *DefaultApiService) ListCredential(params *ListCredentialParams) (*ListCredentialResponse, error) { path := "/v1/Credentials" @@ -689,7 +689,7 @@ func (c *DefaultApiService) ListCredential(params *ListCredentialParams) (*Notif defer resp.Body.Close() - ps := &NotifyV1CredentialReadResponse{} + ps := &ListCredentialResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -698,8 +698,8 @@ func (c *DefaultApiService) ListCredential(params *ListCredentialParams) (*Notif } // ListServiceParams Optional parameters for the method 'ListService' type ListServiceParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -707,9 +707,9 @@ ListService Method for ListService * @param optional nil or *ListServiceOpts - Optional Parameters: * @param "FriendlyName" (string) - The string that identifies the Service resources to read. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return NotifyV1ServiceReadResponse +@return ListServiceResponse */ -func (c *DefaultApiService) ListService(params *ListServiceParams) (*NotifyV1ServiceReadResponse, error) { +func (c *DefaultApiService) ListService(params *ListServiceParams) (*ListServiceResponse, error) { path := "/v1/Services" @@ -731,7 +731,7 @@ func (c *DefaultApiService) ListService(params *ListServiceParams) (*NotifyV1Ser defer resp.Body.Close() - ps := &NotifyV1ServiceReadResponse{} + ps := &ListServiceResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -740,12 +740,12 @@ func (c *DefaultApiService) ListService(params *ListServiceParams) (*NotifyV1Ser } // UpdateCredentialParams Optional parameters for the method 'UpdateCredential' type UpdateCredentialParams struct { - ApiKey *string `json:"ApiKey,omitempty"` - Certificate *string `json:"Certificate,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PrivateKey *string `json:"PrivateKey,omitempty"` - Sandbox *bool `json:"Sandbox,omitempty"` - Secret *string `json:"Secret,omitempty"` + ApiKey *string `json:"ApiKey,omitempty"` + Certificate *string `json:"Certificate,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PrivateKey *string `json:"PrivateKey,omitempty"` + Sandbox *bool `json:"Sandbox,omitempty"` + Secret *string `json:"Secret,omitempty"` } /* @@ -804,20 +804,20 @@ func (c *DefaultApiService) UpdateCredential(Sid string, params *UpdateCredentia } // UpdateServiceParams Optional parameters for the method 'UpdateService' type UpdateServiceParams struct { - AlexaSkillId *string `json:"AlexaSkillId,omitempty"` - ApnCredentialSid *string `json:"ApnCredentialSid,omitempty"` - DefaultAlexaNotificationProtocolVersion *string `json:"DefaultAlexaNotificationProtocolVersion,omitempty"` - DefaultApnNotificationProtocolVersion *string `json:"DefaultApnNotificationProtocolVersion,omitempty"` - DefaultFcmNotificationProtocolVersion *string `json:"DefaultFcmNotificationProtocolVersion,omitempty"` - DefaultGcmNotificationProtocolVersion *string `json:"DefaultGcmNotificationProtocolVersion,omitempty"` - DeliveryCallbackEnabled *bool `json:"DeliveryCallbackEnabled,omitempty"` - DeliveryCallbackUrl *string `json:"DeliveryCallbackUrl,omitempty"` - FacebookMessengerPageId *string `json:"FacebookMessengerPageId,omitempty"` - FcmCredentialSid *string `json:"FcmCredentialSid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - GcmCredentialSid *string `json:"GcmCredentialSid,omitempty"` - LogEnabled *bool `json:"LogEnabled,omitempty"` - MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` + AlexaSkillId *string `json:"AlexaSkillId,omitempty"` + ApnCredentialSid *string `json:"ApnCredentialSid,omitempty"` + DefaultAlexaNotificationProtocolVersion *string `json:"DefaultAlexaNotificationProtocolVersion,omitempty"` + DefaultApnNotificationProtocolVersion *string `json:"DefaultApnNotificationProtocolVersion,omitempty"` + DefaultFcmNotificationProtocolVersion *string `json:"DefaultFcmNotificationProtocolVersion,omitempty"` + DefaultGcmNotificationProtocolVersion *string `json:"DefaultGcmNotificationProtocolVersion,omitempty"` + DeliveryCallbackEnabled *bool `json:"DeliveryCallbackEnabled,omitempty"` + DeliveryCallbackUrl *string `json:"DeliveryCallbackUrl,omitempty"` + FacebookMessengerPageId *string `json:"FacebookMessengerPageId,omitempty"` + FcmCredentialSid *string `json:"FcmCredentialSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + GcmCredentialSid *string `json:"GcmCredentialSid,omitempty"` + LogEnabled *bool `json:"LogEnabled,omitempty"` + MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` } /* diff --git a/rest/notify/v1/docs/DefaultApi.md b/rest/notify/v1/docs/DefaultApi.md index 7ac352244..235f36de5 100644 --- a/rest/notify/v1/docs/DefaultApi.md +++ b/rest/notify/v1/docs/DefaultApi.md @@ -428,7 +428,7 @@ Name | Type | Description | Notes ## ListBinding -> NotifyV1ServiceBindingReadResponse ListBinding(ctx, ServiceSid, optional) +> ListBindingResponse ListBinding(ctx, ServiceSid, optional) @@ -457,7 +457,7 @@ Name | Type | Description | Notes ### Return type -[**NotifyV1ServiceBindingReadResponse**](notify_v1_service_bindingReadResponse.md) +[**ListBindingResponse**](ListBindingResponse.md) ### Authorization @@ -475,7 +475,7 @@ Name | Type | Description | Notes ## ListCredential -> NotifyV1CredentialReadResponse ListCredential(ctx, optional) +> ListCredentialResponse ListCredential(ctx, optional) @@ -498,7 +498,7 @@ Name | Type | Description | Notes ### Return type -[**NotifyV1CredentialReadResponse**](notify_v1_credentialReadResponse.md) +[**ListCredentialResponse**](ListCredentialResponse.md) ### Authorization @@ -516,7 +516,7 @@ Name | Type | Description | Notes ## ListService -> NotifyV1ServiceReadResponse ListService(ctx, optional) +> ListServiceResponse ListService(ctx, optional) @@ -540,7 +540,7 @@ Name | Type | Description | Notes ### Return type -[**NotifyV1ServiceReadResponse**](notify_v1_serviceReadResponse.md) +[**ListServiceResponse**](ListServiceResponse.md) ### Authorization diff --git a/rest/notify/v1/docs/NotifyV1ServiceBindingReadResponse.md b/rest/notify/v1/docs/ListBindingResponse.md similarity index 71% rename from rest/notify/v1/docs/NotifyV1ServiceBindingReadResponse.md rename to rest/notify/v1/docs/ListBindingResponse.md index 780116b0e..1720bc3bd 100644 --- a/rest/notify/v1/docs/NotifyV1ServiceBindingReadResponse.md +++ b/rest/notify/v1/docs/ListBindingResponse.md @@ -1,11 +1,11 @@ -# NotifyV1ServiceBindingReadResponse +# ListBindingResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Bindings** | [**[]NotifyV1ServiceBinding**](notify.v1.service.binding.md) | | [optional] -**Meta** | [**NotifyV1CredentialReadResponseMeta**](notify_v1_credentialReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialResponseMeta**](ListCredentialResponse_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/rest/notify/v1/docs/NotifyV1CredentialReadResponse.md b/rest/notify/v1/docs/ListCredentialResponse.md similarity index 71% rename from rest/notify/v1/docs/NotifyV1CredentialReadResponse.md rename to rest/notify/v1/docs/ListCredentialResponse.md index fb1bbbbc2..fd50d66ee 100644 --- a/rest/notify/v1/docs/NotifyV1CredentialReadResponse.md +++ b/rest/notify/v1/docs/ListCredentialResponse.md @@ -1,11 +1,11 @@ -# NotifyV1CredentialReadResponse +# ListCredentialResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Credentials** | [**[]NotifyV1Credential**](notify.v1.credential.md) | | [optional] -**Meta** | [**NotifyV1CredentialReadResponseMeta**](notify_v1_credentialReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialResponseMeta**](ListCredentialResponse_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/rest/notify/v1/docs/ListCredentialResponseMeta.md b/rest/notify/v1/docs/ListCredentialResponseMeta.md new file mode 100644 index 000000000..20d8e9381 --- /dev/null +++ b/rest/notify/v1/docs/ListCredentialResponseMeta.md @@ -0,0 +1,17 @@ +# ListCredentialResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/notify/v1/docs/NotifyV1ServiceReadResponse.md b/rest/notify/v1/docs/ListServiceResponse.md similarity index 71% rename from rest/notify/v1/docs/NotifyV1ServiceReadResponse.md rename to rest/notify/v1/docs/ListServiceResponse.md index d43ae6ff1..db8835dc6 100644 --- a/rest/notify/v1/docs/NotifyV1ServiceReadResponse.md +++ b/rest/notify/v1/docs/ListServiceResponse.md @@ -1,10 +1,10 @@ -# NotifyV1ServiceReadResponse +# ListServiceResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**NotifyV1CredentialReadResponseMeta**](notify_v1_credentialReadResponse_meta.md) | | [optional] +**Meta** | [**ListCredentialResponseMeta**](ListCredentialResponse_meta.md) | | [optional] **Services** | [**[]NotifyV1Service**](notify.v1.service.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/rest/notify/v1/docs/NotifyV1CredentialReadResponseMeta.md b/rest/notify/v1/docs/NotifyV1CredentialReadResponseMeta.md deleted file mode 100644 index a9dcd6afa..000000000 --- a/rest/notify/v1/docs/NotifyV1CredentialReadResponseMeta.md +++ /dev/null @@ -1,17 +0,0 @@ -# NotifyV1CredentialReadResponseMeta - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FirstPageUrl** | **string** | | [optional] -**Key** | **string** | | [optional] -**NextPageUrl** | **string** | | [optional] -**Page** | **int32** | | [optional] -**PageSize** | **int32** | | [optional] -**PreviousPageUrl** | **string** | | [optional] -**Url** | **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/rest/notify/v1/model_create_binding_request.go b/rest/notify/v1/model_create_binding_request.go index 4fd4e3199..4b7ad0469 100644 --- a/rest/notify/v1/model_create_binding_request.go +++ b/rest/notify/v1/model_create_binding_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/notify/v1/model_create_credential_request.go b/rest/notify/v1/model_create_credential_request.go index bfeaa85e0..e94f2795d 100644 --- a/rest/notify/v1/model_create_credential_request.go +++ b/rest/notify/v1/model_create_credential_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/notify/v1/model_create_notification_request.go b/rest/notify/v1/model_create_notification_request.go index 3cc3a6617..e40c88740 100644 --- a/rest/notify/v1/model_create_notification_request.go +++ b/rest/notify/v1/model_create_notification_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/notify/v1/model_create_service_request.go b/rest/notify/v1/model_create_service_request.go index 81f2672c5..5eec70177 100644 --- a/rest/notify/v1/model_create_service_request.go +++ b/rest/notify/v1/model_create_service_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/notify/v1/model_notify_v1_service_binding_read_response.go b/rest/notify/v1/model_list_binding_response.go similarity index 53% rename from rest/notify/v1/model_notify_v1_service_binding_read_response.go rename to rest/notify/v1/model_list_binding_response.go index ebd3356c2..75c8ea0f7 100644 --- a/rest/notify/v1/model_notify_v1_service_binding_read_response.go +++ b/rest/notify/v1/model_list_binding_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// NotifyV1ServiceBindingReadResponse struct for NotifyV1ServiceBindingReadResponse -type NotifyV1ServiceBindingReadResponse struct { +// ListBindingResponse struct for ListBindingResponse +type ListBindingResponse struct { Bindings []NotifyV1ServiceBinding `json:"Bindings,omitempty"` - Meta NotifyV1CredentialReadResponseMeta `json:"Meta,omitempty"` + Meta ListCredentialResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/notify/v1/model_notify_v1_credential_read_response.go b/rest/notify/v1/model_list_credential_response.go similarity index 54% rename from rest/notify/v1/model_notify_v1_credential_read_response.go rename to rest/notify/v1/model_list_credential_response.go index f7de416b4..649b7eff2 100644 --- a/rest/notify/v1/model_notify_v1_credential_read_response.go +++ b/rest/notify/v1/model_list_credential_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// NotifyV1CredentialReadResponse struct for NotifyV1CredentialReadResponse -type NotifyV1CredentialReadResponse struct { +// ListCredentialResponse struct for ListCredentialResponse +type ListCredentialResponse struct { Credentials []NotifyV1Credential `json:"Credentials,omitempty"` - Meta NotifyV1CredentialReadResponseMeta `json:"Meta,omitempty"` + Meta ListCredentialResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/notify/v1/model_notify_v1_credential_read_response_meta.go b/rest/notify/v1/model_list_credential_response_meta.go similarity index 76% rename from rest/notify/v1/model_notify_v1_credential_read_response_meta.go rename to rest/notify/v1/model_list_credential_response_meta.go index 11a7efe83..15184f1d8 100644 --- a/rest/notify/v1/model_notify_v1_credential_read_response_meta.go +++ b/rest/notify/v1/model_list_credential_response_meta.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// NotifyV1CredentialReadResponseMeta struct for NotifyV1CredentialReadResponseMeta -type NotifyV1CredentialReadResponseMeta struct { +// ListCredentialResponseMeta struct for ListCredentialResponseMeta +type ListCredentialResponseMeta struct { FirstPageUrl string `json:"FirstPageUrl,omitempty"` Key string `json:"Key,omitempty"` NextPageUrl string `json:"NextPageUrl,omitempty"` diff --git a/rest/notify/v1/model_notify_v1_service_read_response.go b/rest/notify/v1/model_list_service_response.go similarity index 55% rename from rest/notify/v1/model_notify_v1_service_read_response.go rename to rest/notify/v1/model_list_service_response.go index 6cac8669f..d7cec6258 100644 --- a/rest/notify/v1/model_notify_v1_service_read_response.go +++ b/rest/notify/v1/model_list_service_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// NotifyV1ServiceReadResponse struct for NotifyV1ServiceReadResponse -type NotifyV1ServiceReadResponse struct { - Meta NotifyV1CredentialReadResponseMeta `json:"Meta,omitempty"` +// ListServiceResponse struct for ListServiceResponse +type ListServiceResponse struct { + Meta ListCredentialResponseMeta `json:"Meta,omitempty"` Services []NotifyV1Service `json:"Services,omitempty"` } diff --git a/rest/notify/v1/model_notify_v1_credential.go b/rest/notify/v1/model_notify_v1_credential.go index 3ea268062..d061179e3 100644 --- a/rest/notify/v1/model_notify_v1_credential.go +++ b/rest/notify/v1/model_notify_v1_credential.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/notify/v1/model_notify_v1_service.go b/rest/notify/v1/model_notify_v1_service.go index fa913b075..1778124a2 100644 --- a/rest/notify/v1/model_notify_v1_service.go +++ b/rest/notify/v1/model_notify_v1_service.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/notify/v1/model_notify_v1_service_binding.go b/rest/notify/v1/model_notify_v1_service_binding.go index a28109922..e864221eb 100644 --- a/rest/notify/v1/model_notify_v1_service_binding.go +++ b/rest/notify/v1/model_notify_v1_service_binding.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/notify/v1/model_notify_v1_service_notification.go b/rest/notify/v1/model_notify_v1_service_notification.go index 1f59d77f1..15f5799ea 100644 --- a/rest/notify/v1/model_notify_v1_service_notification.go +++ b/rest/notify/v1/model_notify_v1_service_notification.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/notify/v1/model_update_credential_request.go b/rest/notify/v1/model_update_credential_request.go index e57af2985..dcd82d8f7 100644 --- a/rest/notify/v1/model_update_credential_request.go +++ b/rest/notify/v1/model_update_credential_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/notify/v1/model_update_service_request.go b/rest/notify/v1/model_update_service_request.go index 02ac5c5dc..79ba68e43 100644 --- a/rest/notify/v1/model_update_service_request.go +++ b/rest/notify/v1/model_update_service_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/notify/v1/response.go b/rest/notify/v1/response.go index 15e8340b3..9a82b4595 100644 --- a/rest/notify/v1/response.go +++ b/rest/notify/v1/response.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/numbers/v2/README.md b/rest/numbers/v2/README.md index f59d1e920..c898af8b0 100644 --- a/rest/numbers/v2/README.md +++ b/rest/numbers/v2/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 5.15.0 +- API version: 1.0.0 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) @@ -67,23 +67,23 @@ Class | Method | HTTP request | Description - [CreateEndUserRequest](docs/CreateEndUserRequest.md) - [CreateItemAssignmentRequest](docs/CreateItemAssignmentRequest.md) - [CreateSupportingDocumentRequest](docs/CreateSupportingDocumentRequest.md) + - [ListBundleResponse](docs/ListBundleResponse.md) + - [ListBundleResponseMeta](docs/ListBundleResponseMeta.md) + - [ListEndUserResponse](docs/ListEndUserResponse.md) + - [ListEndUserTypeResponse](docs/ListEndUserTypeResponse.md) + - [ListEvaluationResponse](docs/ListEvaluationResponse.md) + - [ListItemAssignmentResponse](docs/ListItemAssignmentResponse.md) + - [ListRegulationResponse](docs/ListRegulationResponse.md) + - [ListSupportingDocumentResponse](docs/ListSupportingDocumentResponse.md) + - [ListSupportingDocumentTypeResponse](docs/ListSupportingDocumentTypeResponse.md) - [NumbersV2RegulatoryComplianceBundle](docs/NumbersV2RegulatoryComplianceBundle.md) - [NumbersV2RegulatoryComplianceBundleEvaluation](docs/NumbersV2RegulatoryComplianceBundleEvaluation.md) - - [NumbersV2RegulatoryComplianceBundleEvaluationReadResponse](docs/NumbersV2RegulatoryComplianceBundleEvaluationReadResponse.md) - [NumbersV2RegulatoryComplianceBundleItemAssignment](docs/NumbersV2RegulatoryComplianceBundleItemAssignment.md) - - [NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse](docs/NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse.md) - - [NumbersV2RegulatoryComplianceBundleReadResponse](docs/NumbersV2RegulatoryComplianceBundleReadResponse.md) - - [NumbersV2RegulatoryComplianceBundleReadResponseMeta](docs/NumbersV2RegulatoryComplianceBundleReadResponseMeta.md) - [NumbersV2RegulatoryComplianceEndUser](docs/NumbersV2RegulatoryComplianceEndUser.md) - - [NumbersV2RegulatoryComplianceEndUserReadResponse](docs/NumbersV2RegulatoryComplianceEndUserReadResponse.md) - [NumbersV2RegulatoryComplianceEndUserType](docs/NumbersV2RegulatoryComplianceEndUserType.md) - - [NumbersV2RegulatoryComplianceEndUserTypeReadResponse](docs/NumbersV2RegulatoryComplianceEndUserTypeReadResponse.md) - [NumbersV2RegulatoryComplianceRegulation](docs/NumbersV2RegulatoryComplianceRegulation.md) - - [NumbersV2RegulatoryComplianceRegulationReadResponse](docs/NumbersV2RegulatoryComplianceRegulationReadResponse.md) - [NumbersV2RegulatoryComplianceSupportingDocument](docs/NumbersV2RegulatoryComplianceSupportingDocument.md) - - [NumbersV2RegulatoryComplianceSupportingDocumentReadResponse](docs/NumbersV2RegulatoryComplianceSupportingDocumentReadResponse.md) - [NumbersV2RegulatoryComplianceSupportingDocumentType](docs/NumbersV2RegulatoryComplianceSupportingDocumentType.md) - - [NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse](docs/NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse.md) - [UpdateBundleRequest](docs/UpdateBundleRequest.md) - [UpdateEndUserRequest](docs/UpdateEndUserRequest.md) - [UpdateSupportingDocumentRequest](docs/UpdateSupportingDocumentRequest.md) diff --git a/rest/numbers/v2/api_default.go b/rest/numbers/v2/api_default.go index a476564d9..3a2e30815 100644 --- a/rest/numbers/v2/api_default.go +++ b/rest/numbers/v2/api_default.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -26,18 +26,18 @@ type DefaultApiService struct { func NewDefaultApiService(client *twilio.Client) *DefaultApiService { return &DefaultApiService { client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + baseURL: fmt.Sprintf("https://numbers.twilio.com"), } } // CreateBundleParams Optional parameters for the method 'CreateBundle' type CreateBundleParams struct { - Email *string `json:"Email,omitempty"` - EndUserType *string `json:"EndUserType,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - IsoCountry *string `json:"IsoCountry,omitempty"` - NumberType *string `json:"NumberType,omitempty"` - RegulationSid *string `json:"RegulationSid,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` + Email *string `json:"Email,omitempty"` + EndUserType *string `json:"EndUserType,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IsoCountry *string `json:"IsoCountry,omitempty"` + NumberType *string `json:"NumberType,omitempty"` + RegulationSid *string `json:"RegulationSid,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` } /* @@ -99,9 +99,9 @@ func (c *DefaultApiService) CreateBundle(params *CreateBundleParams) (*NumbersV2 } // CreateEndUserParams Optional parameters for the method 'CreateEndUser' type CreateEndUserParams struct { - Attributes *map[string]interface{} `json:"Attributes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Type *string `json:"Type,omitempty"` + Attributes *map[string]interface{} `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Type *string `json:"Type,omitempty"` } /* @@ -183,7 +183,7 @@ func (c *DefaultApiService) CreateEvaluation(BundleSid string) (*NumbersV2Regula } // CreateItemAssignmentParams Optional parameters for the method 'CreateItemAssignment' type CreateItemAssignmentParams struct { - ObjectSid *string `json:"ObjectSid,omitempty"` + ObjectSid *string `json:"ObjectSid,omitempty"` } /* @@ -223,9 +223,9 @@ func (c *DefaultApiService) CreateItemAssignment(BundleSid string, params *Creat } // CreateSupportingDocumentParams Optional parameters for the method 'CreateSupportingDocument' type CreateSupportingDocumentParams struct { - Attributes *map[string]interface{} `json:"Attributes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Type *string `json:"Type,omitempty"` + Attributes *map[string]interface{} `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Type *string `json:"Type,omitempty"` } /* @@ -631,12 +631,12 @@ func (c *DefaultApiService) FetchSupportingDocumentType(Sid string) (*NumbersV2R } // ListBundleParams Optional parameters for the method 'ListBundle' type ListBundleParams struct { - Status *string `json:"Status,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - RegulationSid *string `json:"RegulationSid,omitempty"` - IsoCountry *string `json:"IsoCountry,omitempty"` - NumberType *string `json:"NumberType,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Status *string `json:"Status,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + RegulationSid *string `json:"RegulationSid,omitempty"` + IsoCountry *string `json:"IsoCountry,omitempty"` + NumberType *string `json:"NumberType,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -649,9 +649,9 @@ Retrieve a list of all Bundles for an account. * @param "IsoCountry" (string) - The ISO country code of the Bundle's phone number country ownership request. * @param "NumberType" (string) - The type of phone number of the Bundle's ownership request. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return NumbersV2RegulatoryComplianceBundleReadResponse +@return ListBundleResponse */ -func (c *DefaultApiService) ListBundle(params *ListBundleParams) (*NumbersV2RegulatoryComplianceBundleReadResponse, error) { +func (c *DefaultApiService) ListBundle(params *ListBundleParams) (*ListBundleResponse, error) { path := "/v2/RegulatoryCompliance/Bundles" @@ -685,7 +685,7 @@ func (c *DefaultApiService) ListBundle(params *ListBundleParams) (*NumbersV2Regu defer resp.Body.Close() - ps := &NumbersV2RegulatoryComplianceBundleReadResponse{} + ps := &ListBundleResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -694,7 +694,7 @@ func (c *DefaultApiService) ListBundle(params *ListBundleParams) (*NumbersV2Regu } // ListEndUserParams Optional parameters for the method 'ListEndUser' type ListEndUserParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -702,9 +702,9 @@ ListEndUser Method for ListEndUser Retrieve a list of all End User for an account. * @param optional nil or *ListEndUserOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return NumbersV2RegulatoryComplianceEndUserReadResponse +@return ListEndUserResponse */ -func (c *DefaultApiService) ListEndUser(params *ListEndUserParams) (*NumbersV2RegulatoryComplianceEndUserReadResponse, error) { +func (c *DefaultApiService) ListEndUser(params *ListEndUserParams) (*ListEndUserResponse, error) { path := "/v2/RegulatoryCompliance/EndUsers" @@ -723,7 +723,7 @@ func (c *DefaultApiService) ListEndUser(params *ListEndUserParams) (*NumbersV2Re defer resp.Body.Close() - ps := &NumbersV2RegulatoryComplianceEndUserReadResponse{} + ps := &ListEndUserResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -732,7 +732,7 @@ func (c *DefaultApiService) ListEndUser(params *ListEndUserParams) (*NumbersV2Re } // ListEndUserTypeParams Optional parameters for the method 'ListEndUserType' type ListEndUserTypeParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -740,9 +740,9 @@ ListEndUserType Method for ListEndUserType Retrieve a list of all End-User Types. * @param optional nil or *ListEndUserTypeOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return NumbersV2RegulatoryComplianceEndUserTypeReadResponse +@return ListEndUserTypeResponse */ -func (c *DefaultApiService) ListEndUserType(params *ListEndUserTypeParams) (*NumbersV2RegulatoryComplianceEndUserTypeReadResponse, error) { +func (c *DefaultApiService) ListEndUserType(params *ListEndUserTypeParams) (*ListEndUserTypeResponse, error) { path := "/v2/RegulatoryCompliance/EndUserTypes" @@ -761,7 +761,7 @@ func (c *DefaultApiService) ListEndUserType(params *ListEndUserTypeParams) (*Num defer resp.Body.Close() - ps := &NumbersV2RegulatoryComplianceEndUserTypeReadResponse{} + ps := &ListEndUserTypeResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -770,7 +770,7 @@ func (c *DefaultApiService) ListEndUserType(params *ListEndUserTypeParams) (*Num } // ListEvaluationParams Optional parameters for the method 'ListEvaluation' type ListEvaluationParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -779,9 +779,9 @@ Retrieve a list of Evaluations associated to the Bundle resource. * @param BundleSid * @param optional nil or *ListEvaluationOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return NumbersV2RegulatoryComplianceBundleEvaluationReadResponse +@return ListEvaluationResponse */ -func (c *DefaultApiService) ListEvaluation(BundleSid string, params *ListEvaluationParams) (*NumbersV2RegulatoryComplianceBundleEvaluationReadResponse, error) { +func (c *DefaultApiService) ListEvaluation(BundleSid string, params *ListEvaluationParams) (*ListEvaluationResponse, error) { path := "/v2/RegulatoryCompliance/Bundles/{BundleSid}/Evaluations" path = strings.Replace(path, "{"+"BundleSid"+"}", BundleSid, -1) @@ -801,7 +801,7 @@ func (c *DefaultApiService) ListEvaluation(BundleSid string, params *ListEvaluat defer resp.Body.Close() - ps := &NumbersV2RegulatoryComplianceBundleEvaluationReadResponse{} + ps := &ListEvaluationResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -810,7 +810,7 @@ func (c *DefaultApiService) ListEvaluation(BundleSid string, params *ListEvaluat } // ListItemAssignmentParams Optional parameters for the method 'ListItemAssignment' type ListItemAssignmentParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -819,9 +819,9 @@ Retrieve a list of all Assigned Items for an account. * @param BundleSid The unique string that we created to identify the Bundle resource. * @param optional nil or *ListItemAssignmentOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse +@return ListItemAssignmentResponse */ -func (c *DefaultApiService) ListItemAssignment(BundleSid string, params *ListItemAssignmentParams) (*NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse, error) { +func (c *DefaultApiService) ListItemAssignment(BundleSid string, params *ListItemAssignmentParams) (*ListItemAssignmentResponse, error) { path := "/v2/RegulatoryCompliance/Bundles/{BundleSid}/ItemAssignments" path = strings.Replace(path, "{"+"BundleSid"+"}", BundleSid, -1) @@ -841,7 +841,7 @@ func (c *DefaultApiService) ListItemAssignment(BundleSid string, params *ListIte defer resp.Body.Close() - ps := &NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse{} + ps := &ListItemAssignmentResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -850,10 +850,10 @@ func (c *DefaultApiService) ListItemAssignment(BundleSid string, params *ListIte } // ListRegulationParams Optional parameters for the method 'ListRegulation' type ListRegulationParams struct { - EndUserType *string `json:"EndUserType,omitempty"` - IsoCountry *string `json:"IsoCountry,omitempty"` - NumberType *string `json:"NumberType,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + EndUserType *string `json:"EndUserType,omitempty"` + IsoCountry *string `json:"IsoCountry,omitempty"` + NumberType *string `json:"NumberType,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -864,9 +864,9 @@ Retrieve a list of all Regulations. * @param "IsoCountry" (string) - The ISO country code of the phone number's country. * @param "NumberType" (string) - The type of phone number that the regulatory requiremnt is restricting. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return NumbersV2RegulatoryComplianceRegulationReadResponse +@return ListRegulationResponse */ -func (c *DefaultApiService) ListRegulation(params *ListRegulationParams) (*NumbersV2RegulatoryComplianceRegulationReadResponse, error) { +func (c *DefaultApiService) ListRegulation(params *ListRegulationParams) (*ListRegulationResponse, error) { path := "/v2/RegulatoryCompliance/Regulations" @@ -894,7 +894,7 @@ func (c *DefaultApiService) ListRegulation(params *ListRegulationParams) (*Numbe defer resp.Body.Close() - ps := &NumbersV2RegulatoryComplianceRegulationReadResponse{} + ps := &ListRegulationResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -903,7 +903,7 @@ func (c *DefaultApiService) ListRegulation(params *ListRegulationParams) (*Numbe } // ListSupportingDocumentParams Optional parameters for the method 'ListSupportingDocument' type ListSupportingDocumentParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -911,9 +911,9 @@ ListSupportingDocument Method for ListSupportingDocument Retrieve a list of all Supporting Document for an account. * @param optional nil or *ListSupportingDocumentOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return NumbersV2RegulatoryComplianceSupportingDocumentReadResponse +@return ListSupportingDocumentResponse */ -func (c *DefaultApiService) ListSupportingDocument(params *ListSupportingDocumentParams) (*NumbersV2RegulatoryComplianceSupportingDocumentReadResponse, error) { +func (c *DefaultApiService) ListSupportingDocument(params *ListSupportingDocumentParams) (*ListSupportingDocumentResponse, error) { path := "/v2/RegulatoryCompliance/SupportingDocuments" @@ -932,7 +932,7 @@ func (c *DefaultApiService) ListSupportingDocument(params *ListSupportingDocumen defer resp.Body.Close() - ps := &NumbersV2RegulatoryComplianceSupportingDocumentReadResponse{} + ps := &ListSupportingDocumentResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -941,7 +941,7 @@ func (c *DefaultApiService) ListSupportingDocument(params *ListSupportingDocumen } // ListSupportingDocumentTypeParams Optional parameters for the method 'ListSupportingDocumentType' type ListSupportingDocumentTypeParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -949,9 +949,9 @@ ListSupportingDocumentType Method for ListSupportingDocumentType Retrieve a list of all Supporting Document Types. * @param optional nil or *ListSupportingDocumentTypeOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse +@return ListSupportingDocumentTypeResponse */ -func (c *DefaultApiService) ListSupportingDocumentType(params *ListSupportingDocumentTypeParams) (*NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse, error) { +func (c *DefaultApiService) ListSupportingDocumentType(params *ListSupportingDocumentTypeParams) (*ListSupportingDocumentTypeResponse, error) { path := "/v2/RegulatoryCompliance/SupportingDocumentTypes" @@ -970,7 +970,7 @@ func (c *DefaultApiService) ListSupportingDocumentType(params *ListSupportingDoc defer resp.Body.Close() - ps := &NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse{} + ps := &ListSupportingDocumentTypeResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -979,10 +979,10 @@ func (c *DefaultApiService) ListSupportingDocumentType(params *ListSupportingDoc } // UpdateBundleParams Optional parameters for the method 'UpdateBundle' type UpdateBundleParams struct { - Email *string `json:"Email,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Status *string `json:"Status,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` + Email *string `json:"Email,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Status *string `json:"Status,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` } /* @@ -1034,8 +1034,8 @@ func (c *DefaultApiService) UpdateBundle(Sid string, params *UpdateBundleParams) } // UpdateEndUserParams Optional parameters for the method 'UpdateEndUser' type UpdateEndUserParams struct { - Attributes *map[string]interface{} `json:"Attributes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` + Attributes *map[string]interface{} `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -1085,8 +1085,8 @@ func (c *DefaultApiService) UpdateEndUser(Sid string, params *UpdateEndUserParam } // UpdateSupportingDocumentParams Optional parameters for the method 'UpdateSupportingDocument' type UpdateSupportingDocumentParams struct { - Attributes *map[string]interface{} `json:"Attributes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` + Attributes *map[string]interface{} `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* diff --git a/rest/numbers/v2/docs/DefaultApi.md b/rest/numbers/v2/docs/DefaultApi.md index f4d6298ee..05be7c797 100644 --- a/rest/numbers/v2/docs/DefaultApi.md +++ b/rest/numbers/v2/docs/DefaultApi.md @@ -664,7 +664,7 @@ Name | Type | Description | Notes ## ListBundle -> NumbersV2RegulatoryComplianceBundleReadResponse ListBundle(ctx, optional) +> ListBundleResponse ListBundle(ctx, optional) @@ -694,7 +694,7 @@ Name | Type | Description | Notes ### Return type -[**NumbersV2RegulatoryComplianceBundleReadResponse**](numbers_v2_regulatory_compliance_bundleReadResponse.md) +[**ListBundleResponse**](ListBundleResponse.md) ### Authorization @@ -712,7 +712,7 @@ Name | Type | Description | Notes ## ListEndUser -> NumbersV2RegulatoryComplianceEndUserReadResponse ListEndUser(ctx, optional) +> ListEndUserResponse ListEndUser(ctx, optional) @@ -737,7 +737,7 @@ Name | Type | Description | Notes ### Return type -[**NumbersV2RegulatoryComplianceEndUserReadResponse**](numbers_v2_regulatory_compliance_end_userReadResponse.md) +[**ListEndUserResponse**](ListEndUserResponse.md) ### Authorization @@ -755,7 +755,7 @@ Name | Type | Description | Notes ## ListEndUserType -> NumbersV2RegulatoryComplianceEndUserTypeReadResponse ListEndUserType(ctx, optional) +> ListEndUserTypeResponse ListEndUserType(ctx, optional) @@ -780,7 +780,7 @@ Name | Type | Description | Notes ### Return type -[**NumbersV2RegulatoryComplianceEndUserTypeReadResponse**](numbers_v2_regulatory_compliance_end_user_typeReadResponse.md) +[**ListEndUserTypeResponse**](ListEndUserTypeResponse.md) ### Authorization @@ -798,7 +798,7 @@ Name | Type | Description | Notes ## ListEvaluation -> NumbersV2RegulatoryComplianceBundleEvaluationReadResponse ListEvaluation(ctx, BundleSid, optional) +> ListEvaluationResponse ListEvaluation(ctx, BundleSid, optional) @@ -825,7 +825,7 @@ Name | Type | Description | Notes ### Return type -[**NumbersV2RegulatoryComplianceBundleEvaluationReadResponse**](numbers_v2_regulatory_compliance_bundle_evaluationReadResponse.md) +[**ListEvaluationResponse**](ListEvaluationResponse.md) ### Authorization @@ -843,7 +843,7 @@ Name | Type | Description | Notes ## ListItemAssignment -> NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse ListItemAssignment(ctx, BundleSid, optional) +> ListItemAssignmentResponse ListItemAssignment(ctx, BundleSid, optional) @@ -870,7 +870,7 @@ Name | Type | Description | Notes ### Return type -[**NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse**](numbers_v2_regulatory_compliance_bundle_item_assignmentReadResponse.md) +[**ListItemAssignmentResponse**](ListItemAssignmentResponse.md) ### Authorization @@ -888,7 +888,7 @@ Name | Type | Description | Notes ## ListRegulation -> NumbersV2RegulatoryComplianceRegulationReadResponse ListRegulation(ctx, optional) +> ListRegulationResponse ListRegulation(ctx, optional) @@ -916,7 +916,7 @@ Name | Type | Description | Notes ### Return type -[**NumbersV2RegulatoryComplianceRegulationReadResponse**](numbers_v2_regulatory_compliance_regulationReadResponse.md) +[**ListRegulationResponse**](ListRegulationResponse.md) ### Authorization @@ -934,7 +934,7 @@ Name | Type | Description | Notes ## ListSupportingDocument -> NumbersV2RegulatoryComplianceSupportingDocumentReadResponse ListSupportingDocument(ctx, optional) +> ListSupportingDocumentResponse ListSupportingDocument(ctx, optional) @@ -959,7 +959,7 @@ Name | Type | Description | Notes ### Return type -[**NumbersV2RegulatoryComplianceSupportingDocumentReadResponse**](numbers_v2_regulatory_compliance_supporting_documentReadResponse.md) +[**ListSupportingDocumentResponse**](ListSupportingDocumentResponse.md) ### Authorization @@ -977,7 +977,7 @@ Name | Type | Description | Notes ## ListSupportingDocumentType -> NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse ListSupportingDocumentType(ctx, optional) +> ListSupportingDocumentTypeResponse ListSupportingDocumentType(ctx, optional) @@ -1002,7 +1002,7 @@ Name | Type | Description | Notes ### Return type -[**NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse**](numbers_v2_regulatory_compliance_supporting_document_typeReadResponse.md) +[**ListSupportingDocumentTypeResponse**](ListSupportingDocumentTypeResponse.md) ### Authorization diff --git a/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleReadResponse.md b/rest/numbers/v2/docs/ListBundleResponse.md similarity index 66% rename from rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleReadResponse.md rename to rest/numbers/v2/docs/ListBundleResponse.md index d220837b8..1518fb1b0 100644 --- a/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleReadResponse.md +++ b/rest/numbers/v2/docs/ListBundleResponse.md @@ -1,10 +1,10 @@ -# NumbersV2RegulatoryComplianceBundleReadResponse +# ListBundleResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**NumbersV2RegulatoryComplianceBundleReadResponseMeta**](numbers_v2_regulatory_compliance_bundleReadResponse_meta.md) | | [optional] +**Meta** | [**ListBundleResponseMeta**](ListBundleResponse_meta.md) | | [optional] **Results** | [**[]NumbersV2RegulatoryComplianceBundle**](numbers.v2.regulatory_compliance.bundle.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/rest/numbers/v2/docs/ListBundleResponseMeta.md b/rest/numbers/v2/docs/ListBundleResponseMeta.md new file mode 100644 index 000000000..d31df1f41 --- /dev/null +++ b/rest/numbers/v2/docs/ListBundleResponseMeta.md @@ -0,0 +1,17 @@ +# ListBundleResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceEndUserReadResponse.md b/rest/numbers/v2/docs/ListEndUserResponse.md similarity index 66% rename from rest/numbers/v2/docs/NumbersV2RegulatoryComplianceEndUserReadResponse.md rename to rest/numbers/v2/docs/ListEndUserResponse.md index 4b5d15999..b8bf4cabf 100644 --- a/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceEndUserReadResponse.md +++ b/rest/numbers/v2/docs/ListEndUserResponse.md @@ -1,10 +1,10 @@ -# NumbersV2RegulatoryComplianceEndUserReadResponse +# ListEndUserResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**NumbersV2RegulatoryComplianceBundleReadResponseMeta**](numbers_v2_regulatory_compliance_bundleReadResponse_meta.md) | | [optional] +**Meta** | [**ListBundleResponseMeta**](ListBundleResponse_meta.md) | | [optional] **Results** | [**[]NumbersV2RegulatoryComplianceEndUser**](numbers.v2.regulatory_compliance.end_user.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/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceEndUserTypeReadResponse.md b/rest/numbers/v2/docs/ListEndUserTypeResponse.md similarity index 67% rename from rest/numbers/v2/docs/NumbersV2RegulatoryComplianceEndUserTypeReadResponse.md rename to rest/numbers/v2/docs/ListEndUserTypeResponse.md index 2dc7e574e..1cf55b2c3 100644 --- a/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceEndUserTypeReadResponse.md +++ b/rest/numbers/v2/docs/ListEndUserTypeResponse.md @@ -1,11 +1,11 @@ -# NumbersV2RegulatoryComplianceEndUserTypeReadResponse +# ListEndUserTypeResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **EndUserTypes** | [**[]NumbersV2RegulatoryComplianceEndUserType**](numbers.v2.regulatory_compliance.end_user_type.md) | | [optional] -**Meta** | [**NumbersV2RegulatoryComplianceBundleReadResponseMeta**](numbers_v2_regulatory_compliance_bundleReadResponse_meta.md) | | [optional] +**Meta** | [**ListBundleResponseMeta**](ListBundleResponse_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/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleEvaluationReadResponse.md b/rest/numbers/v2/docs/ListEvaluationResponse.md similarity index 66% rename from rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleEvaluationReadResponse.md rename to rest/numbers/v2/docs/ListEvaluationResponse.md index eea7acc50..78d379727 100644 --- a/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleEvaluationReadResponse.md +++ b/rest/numbers/v2/docs/ListEvaluationResponse.md @@ -1,10 +1,10 @@ -# NumbersV2RegulatoryComplianceBundleEvaluationReadResponse +# ListEvaluationResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**NumbersV2RegulatoryComplianceBundleReadResponseMeta**](numbers_v2_regulatory_compliance_bundleReadResponse_meta.md) | | [optional] +**Meta** | [**ListBundleResponseMeta**](ListBundleResponse_meta.md) | | [optional] **Results** | [**[]NumbersV2RegulatoryComplianceBundleEvaluation**](numbers.v2.regulatory_compliance.bundle.evaluation.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/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse.md b/rest/numbers/v2/docs/ListItemAssignmentResponse.md similarity index 66% rename from rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse.md rename to rest/numbers/v2/docs/ListItemAssignmentResponse.md index 2a2ecf608..71d1fe26a 100644 --- a/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse.md +++ b/rest/numbers/v2/docs/ListItemAssignmentResponse.md @@ -1,10 +1,10 @@ -# NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse +# ListItemAssignmentResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**NumbersV2RegulatoryComplianceBundleReadResponseMeta**](numbers_v2_regulatory_compliance_bundleReadResponse_meta.md) | | [optional] +**Meta** | [**ListBundleResponseMeta**](ListBundleResponse_meta.md) | | [optional] **Results** | [**[]NumbersV2RegulatoryComplianceBundleItemAssignment**](numbers.v2.regulatory_compliance.bundle.item_assignment.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/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceRegulationReadResponse.md b/rest/numbers/v2/docs/ListRegulationResponse.md similarity index 66% rename from rest/numbers/v2/docs/NumbersV2RegulatoryComplianceRegulationReadResponse.md rename to rest/numbers/v2/docs/ListRegulationResponse.md index 3f3e1df16..ae2397c26 100644 --- a/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceRegulationReadResponse.md +++ b/rest/numbers/v2/docs/ListRegulationResponse.md @@ -1,10 +1,10 @@ -# NumbersV2RegulatoryComplianceRegulationReadResponse +# ListRegulationResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**NumbersV2RegulatoryComplianceBundleReadResponseMeta**](numbers_v2_regulatory_compliance_bundleReadResponse_meta.md) | | [optional] +**Meta** | [**ListBundleResponseMeta**](ListBundleResponse_meta.md) | | [optional] **Results** | [**[]NumbersV2RegulatoryComplianceRegulation**](numbers.v2.regulatory_compliance.regulation.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/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceSupportingDocumentReadResponse.md b/rest/numbers/v2/docs/ListSupportingDocumentResponse.md similarity index 66% rename from rest/numbers/v2/docs/NumbersV2RegulatoryComplianceSupportingDocumentReadResponse.md rename to rest/numbers/v2/docs/ListSupportingDocumentResponse.md index d81d43dd8..3c558faf7 100644 --- a/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceSupportingDocumentReadResponse.md +++ b/rest/numbers/v2/docs/ListSupportingDocumentResponse.md @@ -1,10 +1,10 @@ -# NumbersV2RegulatoryComplianceSupportingDocumentReadResponse +# ListSupportingDocumentResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**NumbersV2RegulatoryComplianceBundleReadResponseMeta**](numbers_v2_regulatory_compliance_bundleReadResponse_meta.md) | | [optional] +**Meta** | [**ListBundleResponseMeta**](ListBundleResponse_meta.md) | | [optional] **Results** | [**[]NumbersV2RegulatoryComplianceSupportingDocument**](numbers.v2.regulatory_compliance.supporting_document.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/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse.md b/rest/numbers/v2/docs/ListSupportingDocumentTypeResponse.md similarity index 67% rename from rest/numbers/v2/docs/NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse.md rename to rest/numbers/v2/docs/ListSupportingDocumentTypeResponse.md index c5f5c6539..1ffd2aab7 100644 --- a/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse.md +++ b/rest/numbers/v2/docs/ListSupportingDocumentTypeResponse.md @@ -1,10 +1,10 @@ -# NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse +# ListSupportingDocumentTypeResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**NumbersV2RegulatoryComplianceBundleReadResponseMeta**](numbers_v2_regulatory_compliance_bundleReadResponse_meta.md) | | [optional] +**Meta** | [**ListBundleResponseMeta**](ListBundleResponse_meta.md) | | [optional] **SupportingDocumentTypes** | [**[]NumbersV2RegulatoryComplianceSupportingDocumentType**](numbers.v2.regulatory_compliance.supporting_document_type.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/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleReadResponseMeta.md b/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleReadResponseMeta.md deleted file mode 100644 index 725c4226a..000000000 --- a/rest/numbers/v2/docs/NumbersV2RegulatoryComplianceBundleReadResponseMeta.md +++ /dev/null @@ -1,17 +0,0 @@ -# NumbersV2RegulatoryComplianceBundleReadResponseMeta - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FirstPageUrl** | **string** | | [optional] -**Key** | **string** | | [optional] -**NextPageUrl** | **string** | | [optional] -**Page** | **int32** | | [optional] -**PageSize** | **int32** | | [optional] -**PreviousPageUrl** | **string** | | [optional] -**Url** | **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/rest/numbers/v2/model_create_bundle_request.go b/rest/numbers/v2/model_create_bundle_request.go index 616a6987f..dc0353ebf 100644 --- a/rest/numbers/v2/model_create_bundle_request.go +++ b/rest/numbers/v2/model_create_bundle_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/numbers/v2/model_create_end_user_request.go b/rest/numbers/v2/model_create_end_user_request.go index a390a778b..c742c955d 100644 --- a/rest/numbers/v2/model_create_end_user_request.go +++ b/rest/numbers/v2/model_create_end_user_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/numbers/v2/model_create_item_assignment_request.go b/rest/numbers/v2/model_create_item_assignment_request.go index bb457fafb..d33c8f483 100644 --- a/rest/numbers/v2/model_create_item_assignment_request.go +++ b/rest/numbers/v2/model_create_item_assignment_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/numbers/v2/model_create_supporting_document_request.go b/rest/numbers/v2/model_create_supporting_document_request.go index d9c9784df..f80c8adf9 100644 --- a/rest/numbers/v2/model_create_supporting_document_request.go +++ b/rest/numbers/v2/model_create_supporting_document_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/numbers/v2/model_list_bundle_response.go b/rest/numbers/v2/model_list_bundle_response.go new file mode 100644 index 000000000..83abb94c6 --- /dev/null +++ b/rest/numbers/v2/model_list_bundle_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Numbers + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListBundleResponse struct for ListBundleResponse +type ListBundleResponse struct { + Meta ListBundleResponseMeta `json:"Meta,omitempty"` + Results []NumbersV2RegulatoryComplianceBundle `json:"Results,omitempty"` +} diff --git a/rest/numbers/v2/model_list_bundle_response_meta.go b/rest/numbers/v2/model_list_bundle_response_meta.go new file mode 100644 index 000000000..8ea7744a6 --- /dev/null +++ b/rest/numbers/v2/model_list_bundle_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Numbers + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListBundleResponseMeta struct for ListBundleResponseMeta +type ListBundleResponseMeta struct { + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` +} diff --git a/rest/numbers/v2/model_list_end_user_response.go b/rest/numbers/v2/model_list_end_user_response.go new file mode 100644 index 000000000..f4bff2830 --- /dev/null +++ b/rest/numbers/v2/model_list_end_user_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Numbers + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListEndUserResponse struct for ListEndUserResponse +type ListEndUserResponse struct { + Meta ListBundleResponseMeta `json:"Meta,omitempty"` + Results []NumbersV2RegulatoryComplianceEndUser `json:"Results,omitempty"` +} diff --git a/rest/numbers/v2/model_list_end_user_type_response.go b/rest/numbers/v2/model_list_end_user_type_response.go new file mode 100644 index 000000000..ede4a9141 --- /dev/null +++ b/rest/numbers/v2/model_list_end_user_type_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Numbers + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListEndUserTypeResponse struct for ListEndUserTypeResponse +type ListEndUserTypeResponse struct { + EndUserTypes []NumbersV2RegulatoryComplianceEndUserType `json:"EndUserTypes,omitempty"` + Meta ListBundleResponseMeta `json:"Meta,omitempty"` +} diff --git a/rest/numbers/v2/model_list_evaluation_response.go b/rest/numbers/v2/model_list_evaluation_response.go new file mode 100644 index 000000000..97e10e15d --- /dev/null +++ b/rest/numbers/v2/model_list_evaluation_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Numbers + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListEvaluationResponse struct for ListEvaluationResponse +type ListEvaluationResponse struct { + Meta ListBundleResponseMeta `json:"Meta,omitempty"` + Results []NumbersV2RegulatoryComplianceBundleEvaluation `json:"Results,omitempty"` +} diff --git a/rest/numbers/v2/model_list_item_assignment_response.go b/rest/numbers/v2/model_list_item_assignment_response.go new file mode 100644 index 000000000..fddf70ef5 --- /dev/null +++ b/rest/numbers/v2/model_list_item_assignment_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Numbers + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListItemAssignmentResponse struct for ListItemAssignmentResponse +type ListItemAssignmentResponse struct { + Meta ListBundleResponseMeta `json:"Meta,omitempty"` + Results []NumbersV2RegulatoryComplianceBundleItemAssignment `json:"Results,omitempty"` +} diff --git a/rest/numbers/v2/model_list_regulation_response.go b/rest/numbers/v2/model_list_regulation_response.go new file mode 100644 index 000000000..4c7eff279 --- /dev/null +++ b/rest/numbers/v2/model_list_regulation_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Numbers + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListRegulationResponse struct for ListRegulationResponse +type ListRegulationResponse struct { + Meta ListBundleResponseMeta `json:"Meta,omitempty"` + Results []NumbersV2RegulatoryComplianceRegulation `json:"Results,omitempty"` +} diff --git a/rest/numbers/v2/model_list_supporting_document_response.go b/rest/numbers/v2/model_list_supporting_document_response.go new file mode 100644 index 000000000..68e6c46f8 --- /dev/null +++ b/rest/numbers/v2/model_list_supporting_document_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Numbers + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListSupportingDocumentResponse struct for ListSupportingDocumentResponse +type ListSupportingDocumentResponse struct { + Meta ListBundleResponseMeta `json:"Meta,omitempty"` + Results []NumbersV2RegulatoryComplianceSupportingDocument `json:"Results,omitempty"` +} diff --git a/rest/numbers/v2/model_list_supporting_document_type_response.go b/rest/numbers/v2/model_list_supporting_document_type_response.go new file mode 100644 index 000000000..952f730de --- /dev/null +++ b/rest/numbers/v2/model_list_supporting_document_type_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Numbers + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListSupportingDocumentTypeResponse struct for ListSupportingDocumentTypeResponse +type ListSupportingDocumentTypeResponse struct { + Meta ListBundleResponseMeta `json:"Meta,omitempty"` + SupportingDocumentTypes []NumbersV2RegulatoryComplianceSupportingDocumentType `json:"SupportingDocumentTypes,omitempty"` +} diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle.go index d4271e0b4..ee6839145 100644 --- a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle.go +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_evaluation.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_evaluation.go index 25994fe28..1b1b8d083 100644 --- a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_evaluation.go +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_evaluation.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_evaluation_read_response.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_evaluation_read_response.go deleted file mode 100644 index 3ac6ace6f..000000000 --- a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_evaluation_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Numbers - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// NumbersV2RegulatoryComplianceBundleEvaluationReadResponse struct for NumbersV2RegulatoryComplianceBundleEvaluationReadResponse -type NumbersV2RegulatoryComplianceBundleEvaluationReadResponse struct { - Meta NumbersV2RegulatoryComplianceBundleReadResponseMeta `json:"Meta,omitempty"` - Results []NumbersV2RegulatoryComplianceBundleEvaluation `json:"Results,omitempty"` -} diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_item_assignment.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_item_assignment.go index 781129c2a..645dddf0b 100644 --- a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_item_assignment.go +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_item_assignment.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_item_assignment_read_response.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_item_assignment_read_response.go deleted file mode 100644 index 6b0c9e5ef..000000000 --- a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_item_assignment_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Numbers - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse struct for NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse -type NumbersV2RegulatoryComplianceBundleItemAssignmentReadResponse struct { - Meta NumbersV2RegulatoryComplianceBundleReadResponseMeta `json:"Meta,omitempty"` - Results []NumbersV2RegulatoryComplianceBundleItemAssignment `json:"Results,omitempty"` -} diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_read_response.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_read_response.go deleted file mode 100644 index 470c9a58e..000000000 --- a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Numbers - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// NumbersV2RegulatoryComplianceBundleReadResponse struct for NumbersV2RegulatoryComplianceBundleReadResponse -type NumbersV2RegulatoryComplianceBundleReadResponse struct { - Meta NumbersV2RegulatoryComplianceBundleReadResponseMeta `json:"Meta,omitempty"` - Results []NumbersV2RegulatoryComplianceBundle `json:"Results,omitempty"` -} diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_read_response_meta.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_read_response_meta.go deleted file mode 100644 index 89ee62659..000000000 --- a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_bundle_read_response_meta.go +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Twilio - Numbers - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// NumbersV2RegulatoryComplianceBundleReadResponseMeta struct for NumbersV2RegulatoryComplianceBundleReadResponseMeta -type NumbersV2RegulatoryComplianceBundleReadResponseMeta struct { - FirstPageUrl string `json:"FirstPageUrl,omitempty"` - Key string `json:"Key,omitempty"` - NextPageUrl string `json:"NextPageUrl,omitempty"` - Page int32 `json:"Page,omitempty"` - PageSize int32 `json:"PageSize,omitempty"` - PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` - Url string `json:"Url,omitempty"` -} diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user.go index 39ca909f3..a16461a2b 100644 --- a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user.go +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user_read_response.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user_read_response.go deleted file mode 100644 index 25f40046d..000000000 --- a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Numbers - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// NumbersV2RegulatoryComplianceEndUserReadResponse struct for NumbersV2RegulatoryComplianceEndUserReadResponse -type NumbersV2RegulatoryComplianceEndUserReadResponse struct { - Meta NumbersV2RegulatoryComplianceBundleReadResponseMeta `json:"Meta,omitempty"` - Results []NumbersV2RegulatoryComplianceEndUser `json:"Results,omitempty"` -} diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user_type.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user_type.go index bec24d972..ce1839f8f 100644 --- a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user_type.go +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user_type.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user_type_read_response.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user_type_read_response.go deleted file mode 100644 index 93a87dc9e..000000000 --- a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_end_user_type_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Numbers - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// NumbersV2RegulatoryComplianceEndUserTypeReadResponse struct for NumbersV2RegulatoryComplianceEndUserTypeReadResponse -type NumbersV2RegulatoryComplianceEndUserTypeReadResponse struct { - EndUserTypes []NumbersV2RegulatoryComplianceEndUserType `json:"EndUserTypes,omitempty"` - Meta NumbersV2RegulatoryComplianceBundleReadResponseMeta `json:"Meta,omitempty"` -} diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_regulation.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_regulation.go index 9fe245aef..6141e42e4 100644 --- a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_regulation.go +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_regulation.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_regulation_read_response.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_regulation_read_response.go deleted file mode 100644 index b560d9acb..000000000 --- a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_regulation_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Numbers - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// NumbersV2RegulatoryComplianceRegulationReadResponse struct for NumbersV2RegulatoryComplianceRegulationReadResponse -type NumbersV2RegulatoryComplianceRegulationReadResponse struct { - Meta NumbersV2RegulatoryComplianceBundleReadResponseMeta `json:"Meta,omitempty"` - Results []NumbersV2RegulatoryComplianceRegulation `json:"Results,omitempty"` -} diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document.go index f0b464021..82e0854b7 100644 --- a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document.go +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document_read_response.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document_read_response.go deleted file mode 100644 index e1158f011..000000000 --- a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Numbers - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// NumbersV2RegulatoryComplianceSupportingDocumentReadResponse struct for NumbersV2RegulatoryComplianceSupportingDocumentReadResponse -type NumbersV2RegulatoryComplianceSupportingDocumentReadResponse struct { - Meta NumbersV2RegulatoryComplianceBundleReadResponseMeta `json:"Meta,omitempty"` - Results []NumbersV2RegulatoryComplianceSupportingDocument `json:"Results,omitempty"` -} diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document_type.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document_type.go index 4df890ca4..a7f7a652f 100644 --- a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document_type.go +++ b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document_type.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document_type_read_response.go b/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document_type_read_response.go deleted file mode 100644 index f3099a3c7..000000000 --- a/rest/numbers/v2/model_numbers_v2_regulatory_compliance_supporting_document_type_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Numbers - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse struct for NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse -type NumbersV2RegulatoryComplianceSupportingDocumentTypeReadResponse struct { - Meta NumbersV2RegulatoryComplianceBundleReadResponseMeta `json:"Meta,omitempty"` - SupportingDocumentTypes []NumbersV2RegulatoryComplianceSupportingDocumentType `json:"SupportingDocumentTypes,omitempty"` -} diff --git a/rest/numbers/v2/model_update_bundle_request.go b/rest/numbers/v2/model_update_bundle_request.go index 87aeb44b7..39327517b 100644 --- a/rest/numbers/v2/model_update_bundle_request.go +++ b/rest/numbers/v2/model_update_bundle_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/numbers/v2/model_update_end_user_request.go b/rest/numbers/v2/model_update_end_user_request.go index 381df5f60..f46f8e7b1 100644 --- a/rest/numbers/v2/model_update_end_user_request.go +++ b/rest/numbers/v2/model_update_end_user_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/numbers/v2/model_update_supporting_document_request.go b/rest/numbers/v2/model_update_supporting_document_request.go index c1edb8fef..00beecfdb 100644 --- a/rest/numbers/v2/model_update_supporting_document_request.go +++ b/rest/numbers/v2/model_update_supporting_document_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/numbers/v2/response.go b/rest/numbers/v2/response.go index 311737f6e..71596f55b 100644 --- a/rest/numbers/v2/response.go +++ b/rest/numbers/v2/response.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/README.md b/rest/preview/README.md index 183227c4e..3e2e98c18 100644 --- a/rest/preview/README.md +++ b/rest/preview/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 5.15.0 +- API version: 1.0.0 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) @@ -222,57 +222,68 @@ Class | Method | HTTP request | Description - [CreateSyncMapItemRequest](docs/CreateSyncMapItemRequest.md) - [CreateSyncMapRequest](docs/CreateSyncMapRequest.md) - [CreateTaskRequest](docs/CreateTaskRequest.md) + - [ListAssistantResponse](docs/ListAssistantResponse.md) + - [ListAuthorizationDocumentResponse](docs/ListAuthorizationDocumentResponse.md) + - [ListAvailableAddOnExtensionResponse](docs/ListAvailableAddOnExtensionResponse.md) + - [ListAvailableAddOnResponse](docs/ListAvailableAddOnResponse.md) + - [ListCertificateResponse](docs/ListCertificateResponse.md) + - [ListCommandResponse](docs/ListCommandResponse.md) + - [ListDayResponse](docs/ListDayResponse.md) + - [ListDayResponseMeta](docs/ListDayResponseMeta.md) + - [ListDependentHostedNumberOrderResponse](docs/ListDependentHostedNumberOrderResponse.md) + - [ListDeploymentResponse](docs/ListDeploymentResponse.md) + - [ListDeviceResponse](docs/ListDeviceResponse.md) + - [ListDocumentPermissionResponse](docs/ListDocumentPermissionResponse.md) + - [ListDocumentResponse](docs/ListDocumentResponse.md) + - [ListExportCustomJobResponse](docs/ListExportCustomJobResponse.md) + - [ListFieldResponse](docs/ListFieldResponse.md) + - [ListFieldTypeResponse](docs/ListFieldTypeResponse.md) + - [ListFieldValueResponse](docs/ListFieldValueResponse.md) + - [ListFleetResponse](docs/ListFleetResponse.md) + - [ListHostedNumberOrderResponse](docs/ListHostedNumberOrderResponse.md) + - [ListInstalledAddOnExtensionResponse](docs/ListInstalledAddOnExtensionResponse.md) + - [ListInstalledAddOnResponse](docs/ListInstalledAddOnResponse.md) + - [ListKeyResponse](docs/ListKeyResponse.md) + - [ListModelBuildResponse](docs/ListModelBuildResponse.md) + - [ListQueryResponse](docs/ListQueryResponse.md) + - [ListRatePlanResponse](docs/ListRatePlanResponse.md) + - [ListSampleResponse](docs/ListSampleResponse.md) + - [ListServiceResponse](docs/ListServiceResponse.md) + - [ListSimResponse](docs/ListSimResponse.md) + - [ListSyncListItemResponse](docs/ListSyncListItemResponse.md) + - [ListSyncListPermissionResponse](docs/ListSyncListPermissionResponse.md) + - [ListSyncListResponse](docs/ListSyncListResponse.md) + - [ListSyncMapItemResponse](docs/ListSyncMapItemResponse.md) + - [ListSyncMapPermissionResponse](docs/ListSyncMapPermissionResponse.md) + - [ListSyncMapResponse](docs/ListSyncMapResponse.md) + - [ListTaskResponse](docs/ListTaskResponse.md) - [PreviewBulkExportsExport](docs/PreviewBulkExportsExport.md) - [PreviewBulkExportsExportConfiguration](docs/PreviewBulkExportsExportConfiguration.md) - [PreviewBulkExportsExportDay](docs/PreviewBulkExportsExportDay.md) - [PreviewBulkExportsExportDayInstance](docs/PreviewBulkExportsExportDayInstance.md) - - [PreviewBulkExportsExportDayReadResponse](docs/PreviewBulkExportsExportDayReadResponse.md) - - [PreviewBulkExportsExportDayReadResponseMeta](docs/PreviewBulkExportsExportDayReadResponseMeta.md) - [PreviewBulkExportsExportExportCustomJob](docs/PreviewBulkExportsExportExportCustomJob.md) - - [PreviewBulkExportsExportExportCustomJobReadResponse](docs/PreviewBulkExportsExportExportCustomJobReadResponse.md) - [PreviewBulkExportsExportJob](docs/PreviewBulkExportsExportJob.md) - [PreviewDeployedDevicesFleet](docs/PreviewDeployedDevicesFleet.md) - [PreviewDeployedDevicesFleetCertificate](docs/PreviewDeployedDevicesFleetCertificate.md) - - [PreviewDeployedDevicesFleetCertificateReadResponse](docs/PreviewDeployedDevicesFleetCertificateReadResponse.md) - [PreviewDeployedDevicesFleetDeployment](docs/PreviewDeployedDevicesFleetDeployment.md) - - [PreviewDeployedDevicesFleetDeploymentReadResponse](docs/PreviewDeployedDevicesFleetDeploymentReadResponse.md) - [PreviewDeployedDevicesFleetDevice](docs/PreviewDeployedDevicesFleetDevice.md) - - [PreviewDeployedDevicesFleetDeviceReadResponse](docs/PreviewDeployedDevicesFleetDeviceReadResponse.md) - [PreviewDeployedDevicesFleetKey](docs/PreviewDeployedDevicesFleetKey.md) - - [PreviewDeployedDevicesFleetKeyReadResponse](docs/PreviewDeployedDevicesFleetKeyReadResponse.md) - - [PreviewDeployedDevicesFleetReadResponse](docs/PreviewDeployedDevicesFleetReadResponse.md) - [PreviewHostedNumbersAuthorizationDocument](docs/PreviewHostedNumbersAuthorizationDocument.md) - [PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrder](docs/PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrder.md) - - [PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse](docs/PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse.md) - - [PreviewHostedNumbersAuthorizationDocumentReadResponse](docs/PreviewHostedNumbersAuthorizationDocumentReadResponse.md) - [PreviewHostedNumbersHostedNumberOrder](docs/PreviewHostedNumbersHostedNumberOrder.md) - - [PreviewHostedNumbersHostedNumberOrderReadResponse](docs/PreviewHostedNumbersHostedNumberOrderReadResponse.md) - [PreviewMarketplaceAvailableAddOn](docs/PreviewMarketplaceAvailableAddOn.md) - [PreviewMarketplaceAvailableAddOnAvailableAddOnExtension](docs/PreviewMarketplaceAvailableAddOnAvailableAddOnExtension.md) - - [PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse](docs/PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse.md) - - [PreviewMarketplaceAvailableAddOnReadResponse](docs/PreviewMarketplaceAvailableAddOnReadResponse.md) - [PreviewMarketplaceInstalledAddOn](docs/PreviewMarketplaceInstalledAddOn.md) - [PreviewMarketplaceInstalledAddOnInstalledAddOnExtension](docs/PreviewMarketplaceInstalledAddOnInstalledAddOnExtension.md) - - [PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse](docs/PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse.md) - - [PreviewMarketplaceInstalledAddOnReadResponse](docs/PreviewMarketplaceInstalledAddOnReadResponse.md) - [PreviewSyncService](docs/PreviewSyncService.md) - [PreviewSyncServiceDocument](docs/PreviewSyncServiceDocument.md) - [PreviewSyncServiceDocumentDocumentPermission](docs/PreviewSyncServiceDocumentDocumentPermission.md) - - [PreviewSyncServiceDocumentDocumentPermissionReadResponse](docs/PreviewSyncServiceDocumentDocumentPermissionReadResponse.md) - - [PreviewSyncServiceDocumentReadResponse](docs/PreviewSyncServiceDocumentReadResponse.md) - - [PreviewSyncServiceReadResponse](docs/PreviewSyncServiceReadResponse.md) - [PreviewSyncServiceSyncList](docs/PreviewSyncServiceSyncList.md) - - [PreviewSyncServiceSyncListReadResponse](docs/PreviewSyncServiceSyncListReadResponse.md) - [PreviewSyncServiceSyncListSyncListItem](docs/PreviewSyncServiceSyncListSyncListItem.md) - - [PreviewSyncServiceSyncListSyncListItemReadResponse](docs/PreviewSyncServiceSyncListSyncListItemReadResponse.md) - [PreviewSyncServiceSyncListSyncListPermission](docs/PreviewSyncServiceSyncListSyncListPermission.md) - - [PreviewSyncServiceSyncListSyncListPermissionReadResponse](docs/PreviewSyncServiceSyncListSyncListPermissionReadResponse.md) - [PreviewSyncServiceSyncMap](docs/PreviewSyncServiceSyncMap.md) - - [PreviewSyncServiceSyncMapReadResponse](docs/PreviewSyncServiceSyncMapReadResponse.md) - [PreviewSyncServiceSyncMapSyncMapItem](docs/PreviewSyncServiceSyncMapSyncMapItem.md) - - [PreviewSyncServiceSyncMapSyncMapItemReadResponse](docs/PreviewSyncServiceSyncMapSyncMapItemReadResponse.md) - [PreviewSyncServiceSyncMapSyncMapPermission](docs/PreviewSyncServiceSyncMapSyncMapPermission.md) - - [PreviewSyncServiceSyncMapSyncMapPermissionReadResponse](docs/PreviewSyncServiceSyncMapSyncMapPermissionReadResponse.md) - [PreviewTrustedCommsBrandedChannel](docs/PreviewTrustedCommsBrandedChannel.md) - [PreviewTrustedCommsBrandedChannelChannel](docs/PreviewTrustedCommsBrandedChannelChannel.md) - [PreviewTrustedCommsBrandsInformation](docs/PreviewTrustedCommsBrandsInformation.md) @@ -284,28 +295,17 @@ Class | Method | HTTP request | Description - [PreviewUnderstandAssistantDialogue](docs/PreviewUnderstandAssistantDialogue.md) - [PreviewUnderstandAssistantFieldType](docs/PreviewUnderstandAssistantFieldType.md) - [PreviewUnderstandAssistantFieldTypeFieldValue](docs/PreviewUnderstandAssistantFieldTypeFieldValue.md) - - [PreviewUnderstandAssistantFieldTypeFieldValueReadResponse](docs/PreviewUnderstandAssistantFieldTypeFieldValueReadResponse.md) - - [PreviewUnderstandAssistantFieldTypeReadResponse](docs/PreviewUnderstandAssistantFieldTypeReadResponse.md) - [PreviewUnderstandAssistantModelBuild](docs/PreviewUnderstandAssistantModelBuild.md) - - [PreviewUnderstandAssistantModelBuildReadResponse](docs/PreviewUnderstandAssistantModelBuildReadResponse.md) - [PreviewUnderstandAssistantQuery](docs/PreviewUnderstandAssistantQuery.md) - - [PreviewUnderstandAssistantQueryReadResponse](docs/PreviewUnderstandAssistantQueryReadResponse.md) - - [PreviewUnderstandAssistantReadResponse](docs/PreviewUnderstandAssistantReadResponse.md) - [PreviewUnderstandAssistantStyleSheet](docs/PreviewUnderstandAssistantStyleSheet.md) - [PreviewUnderstandAssistantTask](docs/PreviewUnderstandAssistantTask.md) - [PreviewUnderstandAssistantTaskField](docs/PreviewUnderstandAssistantTaskField.md) - - [PreviewUnderstandAssistantTaskFieldReadResponse](docs/PreviewUnderstandAssistantTaskFieldReadResponse.md) - - [PreviewUnderstandAssistantTaskReadResponse](docs/PreviewUnderstandAssistantTaskReadResponse.md) - [PreviewUnderstandAssistantTaskSample](docs/PreviewUnderstandAssistantTaskSample.md) - - [PreviewUnderstandAssistantTaskSampleReadResponse](docs/PreviewUnderstandAssistantTaskSampleReadResponse.md) - [PreviewUnderstandAssistantTaskTaskActions](docs/PreviewUnderstandAssistantTaskTaskActions.md) - [PreviewUnderstandAssistantTaskTaskStatistics](docs/PreviewUnderstandAssistantTaskTaskStatistics.md) - [PreviewWirelessCommand](docs/PreviewWirelessCommand.md) - - [PreviewWirelessCommandReadResponse](docs/PreviewWirelessCommandReadResponse.md) - [PreviewWirelessRatePlan](docs/PreviewWirelessRatePlan.md) - - [PreviewWirelessRatePlanReadResponse](docs/PreviewWirelessRatePlanReadResponse.md) - [PreviewWirelessSim](docs/PreviewWirelessSim.md) - - [PreviewWirelessSimReadResponse](docs/PreviewWirelessSimReadResponse.md) - [PreviewWirelessSimUsage](docs/PreviewWirelessSimUsage.md) - [UpdateAssistantFallbackActionsRequest](docs/UpdateAssistantFallbackActionsRequest.md) - [UpdateAssistantInitiationActionsRequest](docs/UpdateAssistantInitiationActionsRequest.md) diff --git a/rest/preview/api_default.go b/rest/preview/api_default.go index fdbddd812..e88ec552c 100644 --- a/rest/preview/api_default.go +++ b/rest/preview/api_default.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -26,19 +26,19 @@ type DefaultApiService struct { func NewDefaultApiService(client *twilio.Client) *DefaultApiService { return &DefaultApiService { client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + baseURL: fmt.Sprintf("https://preview.twilio.com"), } } // CreateAssistantParams Optional parameters for the method 'CreateAssistant' type CreateAssistantParams struct { - CallbackEvents *string `json:"CallbackEvents,omitempty"` - CallbackUrl *string `json:"CallbackUrl,omitempty"` - FallbackActions *map[string]interface{} `json:"FallbackActions,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - InitiationActions *map[string]interface{} `json:"InitiationActions,omitempty"` - LogQueries *bool `json:"LogQueries,omitempty"` - StyleSheet *map[string]interface{} `json:"StyleSheet,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + CallbackEvents *string `json:"CallbackEvents,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + FallbackActions *map[string]interface{} `json:"FallbackActions,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + InitiationActions *map[string]interface{} `json:"InitiationActions,omitempty"` + LogQueries *bool `json:"LogQueries,omitempty"` + StyleSheet *map[string]interface{} `json:"StyleSheet,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -121,12 +121,12 @@ func (c *DefaultApiService) CreateAssistant(params *CreateAssistantParams) (*Pre } // CreateAuthorizationDocumentParams Optional parameters for the method 'CreateAuthorizationDocument' type CreateAuthorizationDocumentParams struct { - AddressSid *string `json:"AddressSid,omitempty"` - CcEmails *[]string `json:"CcEmails,omitempty"` - ContactPhoneNumber *string `json:"ContactPhoneNumber,omitempty"` - ContactTitle *string `json:"ContactTitle,omitempty"` - Email *string `json:"Email,omitempty"` - HostedNumberOrderSids *[]string `json:"HostedNumberOrderSids,omitempty"` + AddressSid *string `json:"AddressSid,omitempty"` + CcEmails *[]string `json:"CcEmails,omitempty"` + ContactPhoneNumber *string `json:"ContactPhoneNumber,omitempty"` + ContactTitle *string `json:"ContactTitle,omitempty"` + Email *string `json:"Email,omitempty"` + HostedNumberOrderSids *[]string `json:"HostedNumberOrderSids,omitempty"` } /* @@ -184,9 +184,9 @@ func (c *DefaultApiService) CreateAuthorizationDocument(params *CreateAuthorizat } // CreateCertificateParams Optional parameters for the method 'CreateCertificate' type CreateCertificateParams struct { - CertificateData *string `json:"CertificateData,omitempty"` - DeviceSid *string `json:"DeviceSid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` + CertificateData *string `json:"CertificateData,omitempty"` + DeviceSid *string `json:"DeviceSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -234,7 +234,7 @@ func (c *DefaultApiService) CreateCertificate(FleetSid string, params *CreateCer } // CreateChannelParams Optional parameters for the method 'CreateChannel' type CreateChannelParams struct { - PhoneNumberSid *string `json:"PhoneNumberSid,omitempty"` + PhoneNumberSid *string `json:"PhoneNumberSid,omitempty"` } /* @@ -274,13 +274,13 @@ func (c *DefaultApiService) CreateChannel(BrandedChannelSid string, params *Crea } // CreateCommandParams Optional parameters for the method 'CreateCommand' type CreateCommandParams struct { - CallbackMethod *string `json:"CallbackMethod,omitempty"` - CallbackUrl *string `json:"CallbackUrl,omitempty"` - Command *string `json:"Command,omitempty"` - CommandMode *string `json:"CommandMode,omitempty"` - Device *string `json:"Device,omitempty"` - IncludeSid *string `json:"IncludeSid,omitempty"` - Sim *string `json:"Sim,omitempty"` + CallbackMethod *string `json:"CallbackMethod,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + Command *string `json:"Command,omitempty"` + CommandMode *string `json:"CommandMode,omitempty"` + Device *string `json:"Device,omitempty"` + IncludeSid *string `json:"IncludeSid,omitempty"` + Sim *string `json:"Sim,omitempty"` } /* @@ -341,8 +341,8 @@ func (c *DefaultApiService) CreateCommand(params *CreateCommandParams) (*Preview } // CreateDeploymentParams Optional parameters for the method 'CreateDeployment' type CreateDeploymentParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - SyncServiceSid *string `json:"SyncServiceSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + SyncServiceSid *string `json:"SyncServiceSid,omitempty"` } /* @@ -386,11 +386,11 @@ func (c *DefaultApiService) CreateDeployment(FleetSid string, params *CreateDepl } // CreateDeviceParams Optional parameters for the method 'CreateDevice' type CreateDeviceParams struct { - DeploymentSid *string `json:"DeploymentSid,omitempty"` - Enabled *bool `json:"Enabled,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Identity *string `json:"Identity,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + DeploymentSid *string `json:"DeploymentSid,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Identity *string `json:"Identity,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -446,8 +446,8 @@ func (c *DefaultApiService) CreateDevice(FleetSid string, params *CreateDevicePa } // CreateDocumentParams Optional parameters for the method 'CreateDocument' type CreateDocumentParams struct { - Data *map[string]interface{} `json:"Data,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -496,17 +496,17 @@ func (c *DefaultApiService) CreateDocument(ServiceSid string, params *CreateDocu } // CreateExportCustomJobParams Optional parameters for the method 'CreateExportCustomJob' type CreateExportCustomJobParams struct { - Email *string `json:"Email,omitempty"` - EndDay *string `json:"EndDay,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - StartDay *string `json:"StartDay,omitempty"` - WebhookMethod *string `json:"WebhookMethod,omitempty"` - WebhookUrl *string `json:"WebhookUrl,omitempty"` + Email *string `json:"Email,omitempty"` + EndDay *string `json:"EndDay,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + StartDay *string `json:"StartDay,omitempty"` + WebhookMethod *string `json:"WebhookMethod,omitempty"` + WebhookUrl *string `json:"WebhookUrl,omitempty"` } /* CreateExportCustomJob Method for CreateExportCustomJob - * @param ResourceType The type of communication – Messages or Calls + * @param ResourceType The type of communication – Messages or Calls, Conferences, and Participants * @param optional nil or *CreateExportCustomJobOpts - Optional Parameters: * @param "Email" (string) - The optional email to send the completion notification to * @param "EndDay" (string) - The end day for the custom export specified as a string in the format of yyyy-mm-dd. End day is inclusive and must be 2 days earlier than the current UTC day. @@ -560,8 +560,8 @@ func (c *DefaultApiService) CreateExportCustomJob(ResourceType string, params *C } // CreateFieldParams Optional parameters for the method 'CreateField' type CreateFieldParams struct { - FieldType *string `json:"FieldType,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + FieldType *string `json:"FieldType,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -606,8 +606,8 @@ func (c *DefaultApiService) CreateField(AssistantSid string, TaskSid string, par } // CreateFieldTypeParams Optional parameters for the method 'CreateFieldType' type CreateFieldTypeParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -650,9 +650,9 @@ func (c *DefaultApiService) CreateFieldType(AssistantSid string, params *CreateF } // CreateFieldValueParams Optional parameters for the method 'CreateFieldValue' type CreateFieldValueParams struct { - Language *string `json:"Language,omitempty"` - SynonymOf *string `json:"SynonymOf,omitempty"` - Value *string `json:"Value,omitempty"` + Language *string `json:"Language,omitempty"` + SynonymOf *string `json:"SynonymOf,omitempty"` + Value *string `json:"Value,omitempty"` } /* @@ -701,7 +701,7 @@ func (c *DefaultApiService) CreateFieldValue(AssistantSid string, FieldTypeSid s } // CreateFleetParams Optional parameters for the method 'CreateFleet' type CreateFleetParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -739,23 +739,23 @@ func (c *DefaultApiService) CreateFleet(params *CreateFleetParams) (*PreviewDepl } // CreateHostedNumberOrderParams Optional parameters for the method 'CreateHostedNumberOrder' type CreateHostedNumberOrderParams struct { - AccountSid *string `json:"AccountSid,omitempty"` - AddressSid *string `json:"AddressSid,omitempty"` - CcEmails *[]string `json:"CcEmails,omitempty"` - Email *string `json:"Email,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PhoneNumber *string `json:"PhoneNumber,omitempty"` - SmsApplicationSid *string `json:"SmsApplicationSid,omitempty"` - SmsCapability *bool `json:"SmsCapability,omitempty"` - SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` - SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` - SmsMethod *string `json:"SmsMethod,omitempty"` - SmsUrl *string `json:"SmsUrl,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - StatusCallbackUrl *string `json:"StatusCallbackUrl,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` - VerificationDocumentSid *string `json:"VerificationDocumentSid,omitempty"` - VerificationType *string `json:"VerificationType,omitempty"` + AccountSid *string `json:"AccountSid,omitempty"` + AddressSid *string `json:"AddressSid,omitempty"` + CcEmails *[]string `json:"CcEmails,omitempty"` + Email *string `json:"Email,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + SmsApplicationSid *string `json:"SmsApplicationSid,omitempty"` + SmsCapability *bool `json:"SmsCapability,omitempty"` + SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` + SmsMethod *string `json:"SmsMethod,omitempty"` + SmsUrl *string `json:"SmsUrl,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + StatusCallbackUrl *string `json:"StatusCallbackUrl,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + VerificationDocumentSid *string `json:"VerificationDocumentSid,omitempty"` + VerificationType *string `json:"VerificationType,omitempty"` } /* @@ -857,10 +857,10 @@ func (c *DefaultApiService) CreateHostedNumberOrder(params *CreateHostedNumberOr } // CreateInstalledAddOnParams Optional parameters for the method 'CreateInstalledAddOn' type CreateInstalledAddOnParams struct { - AcceptTermsOfService *bool `json:"AcceptTermsOfService,omitempty"` - AvailableAddOnSid *string `json:"AvailableAddOnSid,omitempty"` - Configuration *map[string]interface{} `json:"Configuration,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + AcceptTermsOfService *bool `json:"AcceptTermsOfService,omitempty"` + AvailableAddOnSid *string `json:"AvailableAddOnSid,omitempty"` + Configuration *map[string]interface{} `json:"Configuration,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -916,8 +916,8 @@ func (c *DefaultApiService) CreateInstalledAddOn(params *CreateInstalledAddOnPar } // CreateKeyParams Optional parameters for the method 'CreateKey' type CreateKeyParams struct { - DeviceSid *string `json:"DeviceSid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` + DeviceSid *string `json:"DeviceSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -961,8 +961,8 @@ func (c *DefaultApiService) CreateKey(FleetSid string, params *CreateKeyParams) } // CreateModelBuildParams Optional parameters for the method 'CreateModelBuild' type CreateModelBuildParams struct { - StatusCallback *string `json:"StatusCallback,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -1005,11 +1005,11 @@ func (c *DefaultApiService) CreateModelBuild(AssistantSid string, params *Create } // CreateQueryParams Optional parameters for the method 'CreateQuery' type CreateQueryParams struct { - Field *string `json:"Field,omitempty"` - Language *string `json:"Language,omitempty"` - ModelBuild *string `json:"ModelBuild,omitempty"` - Query *string `json:"Query,omitempty"` - Tasks *string `json:"Tasks,omitempty"` + Field *string `json:"Field,omitempty"` + Language *string `json:"Language,omitempty"` + ModelBuild *string `json:"ModelBuild,omitempty"` + Query *string `json:"Query,omitempty"` + Tasks *string `json:"Tasks,omitempty"` } /* @@ -1064,16 +1064,16 @@ func (c *DefaultApiService) CreateQuery(AssistantSid string, params *CreateQuery } // CreateRatePlanParams Optional parameters for the method 'CreateRatePlan' type CreateRatePlanParams struct { - CommandsEnabled *bool `json:"CommandsEnabled,omitempty"` - DataEnabled *bool `json:"DataEnabled,omitempty"` - DataLimit *int32 `json:"DataLimit,omitempty"` - DataMetering *string `json:"DataMetering,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - InternationalRoaming *[]string `json:"InternationalRoaming,omitempty"` - MessagingEnabled *bool `json:"MessagingEnabled,omitempty"` - NationalRoamingEnabled *bool `json:"NationalRoamingEnabled,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` - VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` + CommandsEnabled *bool `json:"CommandsEnabled,omitempty"` + DataEnabled *bool `json:"DataEnabled,omitempty"` + DataLimit *int32 `json:"DataLimit,omitempty"` + DataMetering *string `json:"DataMetering,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + InternationalRoaming *[]string `json:"InternationalRoaming,omitempty"` + MessagingEnabled *bool `json:"MessagingEnabled,omitempty"` + NationalRoamingEnabled *bool `json:"NationalRoamingEnabled,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` } /* @@ -1146,9 +1146,9 @@ func (c *DefaultApiService) CreateRatePlan(params *CreateRatePlanParams) (*Previ } // CreateSampleParams Optional parameters for the method 'CreateSample' type CreateSampleParams struct { - Language *string `json:"Language,omitempty"` - SourceChannel *string `json:"SourceChannel,omitempty"` - TaggedText *string `json:"TaggedText,omitempty"` + Language *string `json:"Language,omitempty"` + SourceChannel *string `json:"SourceChannel,omitempty"` + TaggedText *string `json:"TaggedText,omitempty"` } /* @@ -1197,10 +1197,10 @@ func (c *DefaultApiService) CreateSample(AssistantSid string, TaskSid string, pa } // CreateServiceParams Optional parameters for the method 'CreateService' type CreateServiceParams struct { - AclEnabled *bool `json:"AclEnabled,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - ReachabilityWebhooksEnabled *bool `json:"ReachabilityWebhooksEnabled,omitempty"` - WebhookUrl *string `json:"WebhookUrl,omitempty"` + AclEnabled *bool `json:"AclEnabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + ReachabilityWebhooksEnabled *bool `json:"ReachabilityWebhooksEnabled,omitempty"` + WebhookUrl *string `json:"WebhookUrl,omitempty"` } /* @@ -1249,7 +1249,7 @@ func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*Preview } // CreateSyncListParams Optional parameters for the method 'CreateSyncList' type CreateSyncListParams struct { - UniqueName *string `json:"UniqueName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -1288,7 +1288,7 @@ func (c *DefaultApiService) CreateSyncList(ServiceSid string, params *CreateSync } // CreateSyncListItemParams Optional parameters for the method 'CreateSyncListItem' type CreateSyncListItemParams struct { - Data *map[string]interface{} `json:"Data,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` } /* @@ -1335,7 +1335,7 @@ func (c *DefaultApiService) CreateSyncListItem(ServiceSid string, ListSid string } // CreateSyncMapParams Optional parameters for the method 'CreateSyncMap' type CreateSyncMapParams struct { - UniqueName *string `json:"UniqueName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -1374,8 +1374,8 @@ func (c *DefaultApiService) CreateSyncMap(ServiceSid string, params *CreateSyncM } // CreateSyncMapItemParams Optional parameters for the method 'CreateSyncMapItem' type CreateSyncMapItemParams struct { - Data *map[string]interface{} `json:"Data,omitempty"` - Key *string `json:"Key,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` + Key *string `json:"Key,omitempty"` } /* @@ -1426,10 +1426,10 @@ func (c *DefaultApiService) CreateSyncMapItem(ServiceSid string, MapSid string, } // CreateTaskParams Optional parameters for the method 'CreateTask' type CreateTaskParams struct { - Actions *map[string]interface{} `json:"Actions,omitempty"` - ActionsUrl *string `json:"ActionsUrl,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + Actions *map[string]interface{} `json:"Actions,omitempty"` + ActionsUrl *string `json:"ActionsUrl,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -1591,7 +1591,7 @@ func (c *DefaultApiService) DeleteDevice(FleetSid string, Sid string) (error) { } // DeleteDocumentParams Optional parameters for the method 'DeleteDocument' type DeleteDocumentParams struct { - IfMatch *string `json:"If-Match,omitempty"` + IfMatch *string `json:"If-Match,omitempty"` } /* @@ -2017,7 +2017,7 @@ func (c *DefaultApiService) DeleteSyncList(ServiceSid string, Sid string) (error } // DeleteSyncListItemParams Optional parameters for the method 'DeleteSyncListItem' type DeleteSyncListItemParams struct { - IfMatch *string `json:"If-Match,omitempty"` + IfMatch *string `json:"If-Match,omitempty"` } /* @@ -2109,7 +2109,7 @@ func (c *DefaultApiService) DeleteSyncMap(ServiceSid string, Sid string) (error) } // DeleteSyncMapItemParams Optional parameters for the method 'DeleteSyncMapItem' type DeleteSyncMapItemParams struct { - IfMatch *string `json:"If-Match,omitempty"` + IfMatch *string `json:"If-Match,omitempty"` } /* @@ -2417,7 +2417,7 @@ func (c *DefaultApiService) FetchBrandedChannel(Sid string) (*PreviewTrustedComm } // FetchBrandsInformationParams Optional parameters for the method 'FetchBrandsInformation' type FetchBrandsInformationParams struct { - IfNoneMatch *string `json:"If-None-Match,omitempty"` + IfNoneMatch *string `json:"If-None-Match,omitempty"` } /* @@ -2518,7 +2518,7 @@ func (c *DefaultApiService) FetchCommand(Sid string) (*PreviewWirelessCommand, e } // FetchCpsParams Optional parameters for the method 'FetchCps' type FetchCpsParams struct { - XXcnamSensitivePhoneNumber *string `json:"X-Xcnam-Sensitive-Phone-Number,omitempty"` + XXcnamSensitivePhoneNumber *string `json:"X-Xcnam-Sensitive-Phone-Number,omitempty"` } /* @@ -2556,8 +2556,8 @@ func (c *DefaultApiService) FetchCps(params *FetchCpsParams) (*PreviewTrustedCom } // FetchCurrentCallParams Optional parameters for the method 'FetchCurrentCall' type FetchCurrentCallParams struct { - XXcnamSensitivePhoneNumberFrom *string `json:"X-Xcnam-Sensitive-Phone-Number-From,omitempty"` - XXcnamSensitivePhoneNumberTo *string `json:"X-Xcnam-Sensitive-Phone-Number-To,omitempty"` + XXcnamSensitivePhoneNumberFrom *string `json:"X-Xcnam-Sensitive-Phone-Number-From,omitempty"` + XXcnamSensitivePhoneNumberTo *string `json:"X-Xcnam-Sensitive-Phone-Number-To,omitempty"` } /* @@ -2601,7 +2601,7 @@ func (c *DefaultApiService) FetchCurrentCall(params *FetchCurrentCallParams) (*P /* FetchDay Method for FetchDay Fetch a specific Day. - * @param ResourceType The type of communication – Messages, Calls + * @param ResourceType The type of communication – Messages, Calls, Conferences, and Participants * @param Day The ISO 8601 format date of the resources in the file, for a UTC day */ func (c *DefaultApiService) FetchDay(ResourceType string, Day string) (error) { @@ -2793,7 +2793,7 @@ func (c *DefaultApiService) FetchDocumentPermission(ServiceSid string, DocumentS /* FetchExport Method for FetchExport Fetch a specific Export. - * @param ResourceType The type of communication – Messages, Calls + * @param ResourceType The type of communication – Messages, Calls, Conferences, and Participants @return PreviewBulkExportsExport */ func (c *DefaultApiService) FetchExport(ResourceType string) (*PreviewBulkExportsExport, error) { @@ -2824,7 +2824,7 @@ func (c *DefaultApiService) FetchExport(ResourceType string) (*PreviewBulkExport /* FetchExportConfiguration Method for FetchExportConfiguration Fetch a specific Export Configuration. - * @param ResourceType The type of communication – Messages, Calls + * @param ResourceType The type of communication – Messages, Calls, Conferences, and Participants @return PreviewBulkExportsExportConfiguration */ func (c *DefaultApiService) FetchExportConfiguration(ResourceType string) (*PreviewBulkExportsExportConfiguration, error) { @@ -3080,7 +3080,7 @@ func (c *DefaultApiService) FetchInstalledAddOnExtension(InstalledAddOnSid strin /* FetchJob Method for FetchJob - * @param JobSid + * @param JobSid The unique string that that we created to identify the Bulk Export job @return PreviewBulkExportsExportJob */ func (c *DefaultApiService) FetchJob(JobSid string) (*PreviewBulkExportsExportJob, error) { @@ -3660,8 +3660,8 @@ func (c *DefaultApiService) FetchTaskStatistics(AssistantSid string, TaskSid str } // FetchUsageParams Optional parameters for the method 'FetchUsage' type FetchUsageParams struct { - End *string `json:"End,omitempty"` - Start *string `json:"Start,omitempty"` + End *string `json:"End,omitempty"` + Start *string `json:"Start,omitempty"` } /* @@ -3704,16 +3704,16 @@ func (c *DefaultApiService) FetchUsage(SimSid string, params *FetchUsageParams) } // ListAssistantParams Optional parameters for the method 'ListAssistant' type ListAssistantParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* ListAssistant Method for ListAssistant * @param optional nil or *ListAssistantOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PreviewUnderstandAssistantReadResponse +@return ListAssistantResponse */ -func (c *DefaultApiService) ListAssistant(params *ListAssistantParams) (*PreviewUnderstandAssistantReadResponse, error) { +func (c *DefaultApiService) ListAssistant(params *ListAssistantParams) (*ListAssistantResponse, error) { path := "/understand/Assistants" @@ -3732,7 +3732,7 @@ func (c *DefaultApiService) ListAssistant(params *ListAssistantParams) (*Preview defer resp.Body.Close() - ps := &PreviewUnderstandAssistantReadResponse{} + ps := &ListAssistantResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -3741,9 +3741,9 @@ func (c *DefaultApiService) ListAssistant(params *ListAssistantParams) (*Preview } // ListAuthorizationDocumentParams Optional parameters for the method 'ListAuthorizationDocument' type ListAuthorizationDocumentParams struct { - Email *string `json:"Email,omitempty"` - Status *string `json:"Status,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Email *string `json:"Email,omitempty"` + Status *string `json:"Status,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -3753,9 +3753,9 @@ Retrieve a list of AuthorizationDocuments belonging to the account initiating th * @param "Email" (string) - Email that this AuthorizationDocument will be sent to for signing. * @param "Status" (string) - Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/api/phone-numbers/hosted-number-authorization-documents#status-values) for more information on each of these statuses. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PreviewHostedNumbersAuthorizationDocumentReadResponse +@return ListAuthorizationDocumentResponse */ -func (c *DefaultApiService) ListAuthorizationDocument(params *ListAuthorizationDocumentParams) (*PreviewHostedNumbersAuthorizationDocumentReadResponse, error) { +func (c *DefaultApiService) ListAuthorizationDocument(params *ListAuthorizationDocumentParams) (*ListAuthorizationDocumentResponse, error) { path := "/HostedNumbers/AuthorizationDocuments" @@ -3780,7 +3780,7 @@ func (c *DefaultApiService) ListAuthorizationDocument(params *ListAuthorizationD defer resp.Body.Close() - ps := &PreviewHostedNumbersAuthorizationDocumentReadResponse{} + ps := &ListAuthorizationDocumentResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -3789,7 +3789,7 @@ func (c *DefaultApiService) ListAuthorizationDocument(params *ListAuthorizationD } // ListAvailableAddOnParams Optional parameters for the method 'ListAvailableAddOn' type ListAvailableAddOnParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -3797,9 +3797,9 @@ ListAvailableAddOn Method for ListAvailableAddOn Retrieve a list of Add-ons currently available to be installed. * @param optional nil or *ListAvailableAddOnOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PreviewMarketplaceAvailableAddOnReadResponse +@return ListAvailableAddOnResponse */ -func (c *DefaultApiService) ListAvailableAddOn(params *ListAvailableAddOnParams) (*PreviewMarketplaceAvailableAddOnReadResponse, error) { +func (c *DefaultApiService) ListAvailableAddOn(params *ListAvailableAddOnParams) (*ListAvailableAddOnResponse, error) { path := "/marketplace/AvailableAddOns" @@ -3818,7 +3818,7 @@ func (c *DefaultApiService) ListAvailableAddOn(params *ListAvailableAddOnParams) defer resp.Body.Close() - ps := &PreviewMarketplaceAvailableAddOnReadResponse{} + ps := &ListAvailableAddOnResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -3827,7 +3827,7 @@ func (c *DefaultApiService) ListAvailableAddOn(params *ListAvailableAddOnParams) } // ListAvailableAddOnExtensionParams Optional parameters for the method 'ListAvailableAddOnExtension' type ListAvailableAddOnExtensionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -3836,9 +3836,9 @@ Retrieve a list of Extensions for the Available Add-on. * @param AvailableAddOnSid The SID of the AvailableAddOn resource with the extensions to read. * @param optional nil or *ListAvailableAddOnExtensionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse +@return ListAvailableAddOnExtensionResponse */ -func (c *DefaultApiService) ListAvailableAddOnExtension(AvailableAddOnSid string, params *ListAvailableAddOnExtensionParams) (*PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse, error) { +func (c *DefaultApiService) ListAvailableAddOnExtension(AvailableAddOnSid string, params *ListAvailableAddOnExtensionParams) (*ListAvailableAddOnExtensionResponse, error) { path := "/marketplace/AvailableAddOns/{AvailableAddOnSid}/Extensions" path = strings.Replace(path, "{"+"AvailableAddOnSid"+"}", AvailableAddOnSid, -1) @@ -3858,7 +3858,7 @@ func (c *DefaultApiService) ListAvailableAddOnExtension(AvailableAddOnSid string defer resp.Body.Close() - ps := &PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse{} + ps := &ListAvailableAddOnExtensionResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -3867,8 +3867,8 @@ func (c *DefaultApiService) ListAvailableAddOnExtension(AvailableAddOnSid string } // ListCertificateParams Optional parameters for the method 'ListCertificate' type ListCertificateParams struct { - DeviceSid *string `json:"DeviceSid,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + DeviceSid *string `json:"DeviceSid,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -3878,9 +3878,9 @@ Retrieve a list of all Certificate credentials belonging to the Fleet. * @param optional nil or *ListCertificateOpts - Optional Parameters: * @param "DeviceSid" (string) - Filters the resulting list of Certificates by a unique string identifier of an authenticated Device. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PreviewDeployedDevicesFleetCertificateReadResponse +@return ListCertificateResponse */ -func (c *DefaultApiService) ListCertificate(FleetSid string, params *ListCertificateParams) (*PreviewDeployedDevicesFleetCertificateReadResponse, error) { +func (c *DefaultApiService) ListCertificate(FleetSid string, params *ListCertificateParams) (*ListCertificateResponse, error) { path := "/DeployedDevices/Fleets/{FleetSid}/Certificates" path = strings.Replace(path, "{"+"FleetSid"+"}", FleetSid, -1) @@ -3903,7 +3903,7 @@ func (c *DefaultApiService) ListCertificate(FleetSid string, params *ListCertifi defer resp.Body.Close() - ps := &PreviewDeployedDevicesFleetCertificateReadResponse{} + ps := &ListCertificateResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -3912,11 +3912,11 @@ func (c *DefaultApiService) ListCertificate(FleetSid string, params *ListCertifi } // ListCommandParams Optional parameters for the method 'ListCommand' type ListCommandParams struct { - Device *string `json:"Device,omitempty"` - Sim *string `json:"Sim,omitempty"` - Status *string `json:"Status,omitempty"` - Direction *string `json:"Direction,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Device *string `json:"Device,omitempty"` + Sim *string `json:"Sim,omitempty"` + Status *string `json:"Status,omitempty"` + Direction *string `json:"Direction,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -3927,9 +3927,9 @@ ListCommand Method for ListCommand * @param "Status" (string) - * @param "Direction" (string) - * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PreviewWirelessCommandReadResponse +@return ListCommandResponse */ -func (c *DefaultApiService) ListCommand(params *ListCommandParams) (*PreviewWirelessCommandReadResponse, error) { +func (c *DefaultApiService) ListCommand(params *ListCommandParams) (*ListCommandResponse, error) { path := "/wireless/Commands" @@ -3960,7 +3960,7 @@ func (c *DefaultApiService) ListCommand(params *ListCommandParams) (*PreviewWire defer resp.Body.Close() - ps := &PreviewWirelessCommandReadResponse{} + ps := &ListCommandResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -3969,18 +3969,18 @@ func (c *DefaultApiService) ListCommand(params *ListCommandParams) (*PreviewWire } // ListDayParams Optional parameters for the method 'ListDay' type ListDayParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* ListDay Method for ListDay Retrieve a list of all Days for a resource. - * @param ResourceType The type of communication – Messages, Calls + * @param ResourceType The type of communication – Messages, Calls, Conferences, and Participants * @param optional nil or *ListDayOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PreviewBulkExportsExportDayReadResponse +@return ListDayResponse */ -func (c *DefaultApiService) ListDay(ResourceType string, params *ListDayParams) (*PreviewBulkExportsExportDayReadResponse, error) { +func (c *DefaultApiService) ListDay(ResourceType string, params *ListDayParams) (*ListDayResponse, error) { path := "/BulkExports/Exports/{ResourceType}/Days" path = strings.Replace(path, "{"+"ResourceType"+"}", ResourceType, -1) @@ -4000,7 +4000,7 @@ func (c *DefaultApiService) ListDay(ResourceType string, params *ListDayParams) defer resp.Body.Close() - ps := &PreviewBulkExportsExportDayReadResponse{} + ps := &ListDayResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -4009,12 +4009,12 @@ func (c *DefaultApiService) ListDay(ResourceType string, params *ListDayParams) } // ListDependentHostedNumberOrderParams Optional parameters for the method 'ListDependentHostedNumberOrder' type ListDependentHostedNumberOrderParams struct { - Status *string `json:"Status,omitempty"` - PhoneNumber *string `json:"PhoneNumber,omitempty"` - IncomingPhoneNumberSid *string `json:"IncomingPhoneNumberSid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Status *string `json:"Status,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + IncomingPhoneNumberSid *string `json:"IncomingPhoneNumberSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4028,9 +4028,9 @@ Retrieve a list of dependent HostedNumberOrders belonging to the AuthorizationDo * @param "FriendlyName" (string) - A human readable description of this resource, up to 64 characters. * @param "UniqueName" (string) - Provides a unique and addressable name to be assigned to this HostedNumberOrder, assigned by the developer, to be optionally used in addition to SID. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse +@return ListDependentHostedNumberOrderResponse */ -func (c *DefaultApiService) ListDependentHostedNumberOrder(SigningDocumentSid string, params *ListDependentHostedNumberOrderParams) (*PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse, error) { +func (c *DefaultApiService) ListDependentHostedNumberOrder(SigningDocumentSid string, params *ListDependentHostedNumberOrderParams) (*ListDependentHostedNumberOrderResponse, error) { path := "/HostedNumbers/AuthorizationDocuments/{SigningDocumentSid}/DependentHostedNumberOrders" path = strings.Replace(path, "{"+"SigningDocumentSid"+"}", SigningDocumentSid, -1) @@ -4065,7 +4065,7 @@ func (c *DefaultApiService) ListDependentHostedNumberOrder(SigningDocumentSid st defer resp.Body.Close() - ps := &PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse{} + ps := &ListDependentHostedNumberOrderResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -4074,7 +4074,7 @@ func (c *DefaultApiService) ListDependentHostedNumberOrder(SigningDocumentSid st } // ListDeploymentParams Optional parameters for the method 'ListDeployment' type ListDeploymentParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4083,9 +4083,9 @@ Retrieve a list of all Deployments belonging to the Fleet. * @param FleetSid * @param optional nil or *ListDeploymentOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PreviewDeployedDevicesFleetDeploymentReadResponse +@return ListDeploymentResponse */ -func (c *DefaultApiService) ListDeployment(FleetSid string, params *ListDeploymentParams) (*PreviewDeployedDevicesFleetDeploymentReadResponse, error) { +func (c *DefaultApiService) ListDeployment(FleetSid string, params *ListDeploymentParams) (*ListDeploymentResponse, error) { path := "/DeployedDevices/Fleets/{FleetSid}/Deployments" path = strings.Replace(path, "{"+"FleetSid"+"}", FleetSid, -1) @@ -4105,7 +4105,7 @@ func (c *DefaultApiService) ListDeployment(FleetSid string, params *ListDeployme defer resp.Body.Close() - ps := &PreviewDeployedDevicesFleetDeploymentReadResponse{} + ps := &ListDeploymentResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -4114,8 +4114,8 @@ func (c *DefaultApiService) ListDeployment(FleetSid string, params *ListDeployme } // ListDeviceParams Optional parameters for the method 'ListDevice' type ListDeviceParams struct { - DeploymentSid *string `json:"DeploymentSid,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + DeploymentSid *string `json:"DeploymentSid,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4125,9 +4125,9 @@ Retrieve a list of all Devices belonging to the Fleet. * @param optional nil or *ListDeviceOpts - Optional Parameters: * @param "DeploymentSid" (string) - Filters the resulting list of Devices by a unique string identifier of the Deployment they are associated with. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PreviewDeployedDevicesFleetDeviceReadResponse +@return ListDeviceResponse */ -func (c *DefaultApiService) ListDevice(FleetSid string, params *ListDeviceParams) (*PreviewDeployedDevicesFleetDeviceReadResponse, error) { +func (c *DefaultApiService) ListDevice(FleetSid string, params *ListDeviceParams) (*ListDeviceResponse, error) { path := "/DeployedDevices/Fleets/{FleetSid}/Devices" path = strings.Replace(path, "{"+"FleetSid"+"}", FleetSid, -1) @@ -4150,7 +4150,7 @@ func (c *DefaultApiService) ListDevice(FleetSid string, params *ListDeviceParams defer resp.Body.Close() - ps := &PreviewDeployedDevicesFleetDeviceReadResponse{} + ps := &ListDeviceResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -4159,7 +4159,7 @@ func (c *DefaultApiService) ListDevice(FleetSid string, params *ListDeviceParams } // ListDocumentParams Optional parameters for the method 'ListDocument' type ListDocumentParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4167,9 +4167,9 @@ ListDocument Method for ListDocument * @param ServiceSid * @param optional nil or *ListDocumentOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PreviewSyncServiceDocumentReadResponse +@return ListDocumentResponse */ -func (c *DefaultApiService) ListDocument(ServiceSid string, params *ListDocumentParams) (*PreviewSyncServiceDocumentReadResponse, error) { +func (c *DefaultApiService) ListDocument(ServiceSid string, params *ListDocumentParams) (*ListDocumentResponse, error) { path := "/Sync/Services/{ServiceSid}/Documents" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -4189,7 +4189,7 @@ func (c *DefaultApiService) ListDocument(ServiceSid string, params *ListDocument defer resp.Body.Close() - ps := &PreviewSyncServiceDocumentReadResponse{} + ps := &ListDocumentResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -4198,7 +4198,7 @@ func (c *DefaultApiService) ListDocument(ServiceSid string, params *ListDocument } // ListDocumentPermissionParams Optional parameters for the method 'ListDocumentPermission' type ListDocumentPermissionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4208,9 +4208,9 @@ Retrieve a list of all Permissions applying to a Sync Document. * @param DocumentSid Identifier of the Sync Document. Either a SID or a unique name. * @param optional nil or *ListDocumentPermissionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PreviewSyncServiceDocumentDocumentPermissionReadResponse +@return ListDocumentPermissionResponse */ -func (c *DefaultApiService) ListDocumentPermission(ServiceSid string, DocumentSid string, params *ListDocumentPermissionParams) (*PreviewSyncServiceDocumentDocumentPermissionReadResponse, error) { +func (c *DefaultApiService) ListDocumentPermission(ServiceSid string, DocumentSid string, params *ListDocumentPermissionParams) (*ListDocumentPermissionResponse, error) { path := "/Sync/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"DocumentSid"+"}", DocumentSid, -1) @@ -4231,7 +4231,7 @@ func (c *DefaultApiService) ListDocumentPermission(ServiceSid string, DocumentSi defer resp.Body.Close() - ps := &PreviewSyncServiceDocumentDocumentPermissionReadResponse{} + ps := &ListDocumentPermissionResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -4240,17 +4240,17 @@ func (c *DefaultApiService) ListDocumentPermission(ServiceSid string, DocumentSi } // ListExportCustomJobParams Optional parameters for the method 'ListExportCustomJob' type ListExportCustomJobParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* ListExportCustomJob Method for ListExportCustomJob - * @param ResourceType The type of communication – Messages, Calls + * @param ResourceType The type of communication – Messages, Calls, Conferences, and Participants * @param optional nil or *ListExportCustomJobOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PreviewBulkExportsExportExportCustomJobReadResponse +@return ListExportCustomJobResponse */ -func (c *DefaultApiService) ListExportCustomJob(ResourceType string, params *ListExportCustomJobParams) (*PreviewBulkExportsExportExportCustomJobReadResponse, error) { +func (c *DefaultApiService) ListExportCustomJob(ResourceType string, params *ListExportCustomJobParams) (*ListExportCustomJobResponse, error) { path := "/BulkExports/Exports/{ResourceType}/Jobs" path = strings.Replace(path, "{"+"ResourceType"+"}", ResourceType, -1) @@ -4270,7 +4270,7 @@ func (c *DefaultApiService) ListExportCustomJob(ResourceType string, params *Lis defer resp.Body.Close() - ps := &PreviewBulkExportsExportExportCustomJobReadResponse{} + ps := &ListExportCustomJobResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -4279,7 +4279,7 @@ func (c *DefaultApiService) ListExportCustomJob(ResourceType string, params *Lis } // ListFieldParams Optional parameters for the method 'ListField' type ListFieldParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4288,9 +4288,9 @@ ListField Method for ListField * @param TaskSid The unique ID of the Task associated with this Field. * @param optional nil or *ListFieldOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PreviewUnderstandAssistantTaskFieldReadResponse +@return ListFieldResponse */ -func (c *DefaultApiService) ListField(AssistantSid string, TaskSid string, params *ListFieldParams) (*PreviewUnderstandAssistantTaskFieldReadResponse, error) { +func (c *DefaultApiService) ListField(AssistantSid string, TaskSid string, params *ListFieldParams) (*ListFieldResponse, error) { path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Fields" path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) path = strings.Replace(path, "{"+"TaskSid"+"}", TaskSid, -1) @@ -4311,7 +4311,7 @@ func (c *DefaultApiService) ListField(AssistantSid string, TaskSid string, param defer resp.Body.Close() - ps := &PreviewUnderstandAssistantTaskFieldReadResponse{} + ps := &ListFieldResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -4320,7 +4320,7 @@ func (c *DefaultApiService) ListField(AssistantSid string, TaskSid string, param } // ListFieldTypeParams Optional parameters for the method 'ListFieldType' type ListFieldTypeParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4328,9 +4328,9 @@ ListFieldType Method for ListFieldType * @param AssistantSid * @param optional nil or *ListFieldTypeOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PreviewUnderstandAssistantFieldTypeReadResponse +@return ListFieldTypeResponse */ -func (c *DefaultApiService) ListFieldType(AssistantSid string, params *ListFieldTypeParams) (*PreviewUnderstandAssistantFieldTypeReadResponse, error) { +func (c *DefaultApiService) ListFieldType(AssistantSid string, params *ListFieldTypeParams) (*ListFieldTypeResponse, error) { path := "/understand/Assistants/{AssistantSid}/FieldTypes" path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) @@ -4350,7 +4350,7 @@ func (c *DefaultApiService) ListFieldType(AssistantSid string, params *ListField defer resp.Body.Close() - ps := &PreviewUnderstandAssistantFieldTypeReadResponse{} + ps := &ListFieldTypeResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -4359,8 +4359,8 @@ func (c *DefaultApiService) ListFieldType(AssistantSid string, params *ListField } // ListFieldValueParams Optional parameters for the method 'ListFieldValue' type ListFieldValueParams struct { - Language *string `json:"Language,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Language *string `json:"Language,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4370,9 +4370,9 @@ ListFieldValue Method for ListFieldValue * @param optional nil or *ListFieldValueOpts - Optional Parameters: * @param "Language" (string) - An ISO language-country string of the value. For example: *en-US* * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PreviewUnderstandAssistantFieldTypeFieldValueReadResponse +@return ListFieldValueResponse */ -func (c *DefaultApiService) ListFieldValue(AssistantSid string, FieldTypeSid string, params *ListFieldValueParams) (*PreviewUnderstandAssistantFieldTypeFieldValueReadResponse, error) { +func (c *DefaultApiService) ListFieldValue(AssistantSid string, FieldTypeSid string, params *ListFieldValueParams) (*ListFieldValueResponse, error) { path := "/understand/Assistants/{AssistantSid}/FieldTypes/{FieldTypeSid}/FieldValues" path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) path = strings.Replace(path, "{"+"FieldTypeSid"+"}", FieldTypeSid, -1) @@ -4396,7 +4396,7 @@ func (c *DefaultApiService) ListFieldValue(AssistantSid string, FieldTypeSid str defer resp.Body.Close() - ps := &PreviewUnderstandAssistantFieldTypeFieldValueReadResponse{} + ps := &ListFieldValueResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -4405,7 +4405,7 @@ func (c *DefaultApiService) ListFieldValue(AssistantSid string, FieldTypeSid str } // ListFleetParams Optional parameters for the method 'ListFleet' type ListFleetParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4413,9 +4413,9 @@ ListFleet Method for ListFleet Retrieve a list of all Fleets belonging to your account. * @param optional nil or *ListFleetOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PreviewDeployedDevicesFleetReadResponse +@return ListFleetResponse */ -func (c *DefaultApiService) ListFleet(params *ListFleetParams) (*PreviewDeployedDevicesFleetReadResponse, error) { +func (c *DefaultApiService) ListFleet(params *ListFleetParams) (*ListFleetResponse, error) { path := "/DeployedDevices/Fleets" @@ -4434,7 +4434,7 @@ func (c *DefaultApiService) ListFleet(params *ListFleetParams) (*PreviewDeployed defer resp.Body.Close() - ps := &PreviewDeployedDevicesFleetReadResponse{} + ps := &ListFleetResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -4443,12 +4443,12 @@ func (c *DefaultApiService) ListFleet(params *ListFleetParams) (*PreviewDeployed } // ListHostedNumberOrderParams Optional parameters for the method 'ListHostedNumberOrder' type ListHostedNumberOrderParams struct { - Status *string `json:"Status,omitempty"` - PhoneNumber *string `json:"PhoneNumber,omitempty"` - IncomingPhoneNumberSid *string `json:"IncomingPhoneNumberSid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Status *string `json:"Status,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + IncomingPhoneNumberSid *string `json:"IncomingPhoneNumberSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4461,9 +4461,9 @@ Retrieve a list of HostedNumberOrders belonging to the account initiating the re * @param "FriendlyName" (string) - A human readable description of this resource, up to 64 characters. * @param "UniqueName" (string) - Provides a unique and addressable name to be assigned to this HostedNumberOrder, assigned by the developer, to be optionally used in addition to SID. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PreviewHostedNumbersHostedNumberOrderReadResponse +@return ListHostedNumberOrderResponse */ -func (c *DefaultApiService) ListHostedNumberOrder(params *ListHostedNumberOrderParams) (*PreviewHostedNumbersHostedNumberOrderReadResponse, error) { +func (c *DefaultApiService) ListHostedNumberOrder(params *ListHostedNumberOrderParams) (*ListHostedNumberOrderResponse, error) { path := "/HostedNumbers/HostedNumberOrders" @@ -4497,7 +4497,7 @@ func (c *DefaultApiService) ListHostedNumberOrder(params *ListHostedNumberOrderP defer resp.Body.Close() - ps := &PreviewHostedNumbersHostedNumberOrderReadResponse{} + ps := &ListHostedNumberOrderResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -4506,7 +4506,7 @@ func (c *DefaultApiService) ListHostedNumberOrder(params *ListHostedNumberOrderP } // ListInstalledAddOnParams Optional parameters for the method 'ListInstalledAddOn' type ListInstalledAddOnParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4514,9 +4514,9 @@ ListInstalledAddOn Method for ListInstalledAddOn Retrieve a list of Add-ons currently installed on this Account. * @param optional nil or *ListInstalledAddOnOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PreviewMarketplaceInstalledAddOnReadResponse +@return ListInstalledAddOnResponse */ -func (c *DefaultApiService) ListInstalledAddOn(params *ListInstalledAddOnParams) (*PreviewMarketplaceInstalledAddOnReadResponse, error) { +func (c *DefaultApiService) ListInstalledAddOn(params *ListInstalledAddOnParams) (*ListInstalledAddOnResponse, error) { path := "/marketplace/InstalledAddOns" @@ -4535,7 +4535,7 @@ func (c *DefaultApiService) ListInstalledAddOn(params *ListInstalledAddOnParams) defer resp.Body.Close() - ps := &PreviewMarketplaceInstalledAddOnReadResponse{} + ps := &ListInstalledAddOnResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -4544,7 +4544,7 @@ func (c *DefaultApiService) ListInstalledAddOn(params *ListInstalledAddOnParams) } // ListInstalledAddOnExtensionParams Optional parameters for the method 'ListInstalledAddOnExtension' type ListInstalledAddOnExtensionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4553,9 +4553,9 @@ Retrieve a list of Extensions for the Installed Add-on. * @param InstalledAddOnSid The SID of the InstalledAddOn resource with the extensions to read. * @param optional nil or *ListInstalledAddOnExtensionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse +@return ListInstalledAddOnExtensionResponse */ -func (c *DefaultApiService) ListInstalledAddOnExtension(InstalledAddOnSid string, params *ListInstalledAddOnExtensionParams) (*PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse, error) { +func (c *DefaultApiService) ListInstalledAddOnExtension(InstalledAddOnSid string, params *ListInstalledAddOnExtensionParams) (*ListInstalledAddOnExtensionResponse, error) { path := "/marketplace/InstalledAddOns/{InstalledAddOnSid}/Extensions" path = strings.Replace(path, "{"+"InstalledAddOnSid"+"}", InstalledAddOnSid, -1) @@ -4575,7 +4575,7 @@ func (c *DefaultApiService) ListInstalledAddOnExtension(InstalledAddOnSid string defer resp.Body.Close() - ps := &PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse{} + ps := &ListInstalledAddOnExtensionResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -4584,8 +4584,8 @@ func (c *DefaultApiService) ListInstalledAddOnExtension(InstalledAddOnSid string } // ListKeyParams Optional parameters for the method 'ListKey' type ListKeyParams struct { - DeviceSid *string `json:"DeviceSid,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + DeviceSid *string `json:"DeviceSid,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4595,9 +4595,9 @@ Retrieve a list of all Keys credentials belonging to the Fleet. * @param optional nil or *ListKeyOpts - Optional Parameters: * @param "DeviceSid" (string) - Filters the resulting list of Keys by a unique string identifier of an authenticated Device. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PreviewDeployedDevicesFleetKeyReadResponse +@return ListKeyResponse */ -func (c *DefaultApiService) ListKey(FleetSid string, params *ListKeyParams) (*PreviewDeployedDevicesFleetKeyReadResponse, error) { +func (c *DefaultApiService) ListKey(FleetSid string, params *ListKeyParams) (*ListKeyResponse, error) { path := "/DeployedDevices/Fleets/{FleetSid}/Keys" path = strings.Replace(path, "{"+"FleetSid"+"}", FleetSid, -1) @@ -4620,7 +4620,7 @@ func (c *DefaultApiService) ListKey(FleetSid string, params *ListKeyParams) (*Pr defer resp.Body.Close() - ps := &PreviewDeployedDevicesFleetKeyReadResponse{} + ps := &ListKeyResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -4629,7 +4629,7 @@ func (c *DefaultApiService) ListKey(FleetSid string, params *ListKeyParams) (*Pr } // ListModelBuildParams Optional parameters for the method 'ListModelBuild' type ListModelBuildParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4637,9 +4637,9 @@ ListModelBuild Method for ListModelBuild * @param AssistantSid * @param optional nil or *ListModelBuildOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PreviewUnderstandAssistantModelBuildReadResponse +@return ListModelBuildResponse */ -func (c *DefaultApiService) ListModelBuild(AssistantSid string, params *ListModelBuildParams) (*PreviewUnderstandAssistantModelBuildReadResponse, error) { +func (c *DefaultApiService) ListModelBuild(AssistantSid string, params *ListModelBuildParams) (*ListModelBuildResponse, error) { path := "/understand/Assistants/{AssistantSid}/ModelBuilds" path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) @@ -4659,7 +4659,7 @@ func (c *DefaultApiService) ListModelBuild(AssistantSid string, params *ListMode defer resp.Body.Close() - ps := &PreviewUnderstandAssistantModelBuildReadResponse{} + ps := &ListModelBuildResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -4668,10 +4668,10 @@ func (c *DefaultApiService) ListModelBuild(AssistantSid string, params *ListMode } // ListQueryParams Optional parameters for the method 'ListQuery' type ListQueryParams struct { - Language *string `json:"Language,omitempty"` - ModelBuild *string `json:"ModelBuild,omitempty"` - Status *string `json:"Status,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Language *string `json:"Language,omitempty"` + ModelBuild *string `json:"ModelBuild,omitempty"` + Status *string `json:"Status,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4682,9 +4682,9 @@ ListQuery Method for ListQuery * @param "ModelBuild" (string) - The Model Build Sid or unique name of the Model Build to be queried. * @param "Status" (string) - A string that described the query status. The values can be: pending_review, reviewed, discarded * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PreviewUnderstandAssistantQueryReadResponse +@return ListQueryResponse */ -func (c *DefaultApiService) ListQuery(AssistantSid string, params *ListQueryParams) (*PreviewUnderstandAssistantQueryReadResponse, error) { +func (c *DefaultApiService) ListQuery(AssistantSid string, params *ListQueryParams) (*ListQueryResponse, error) { path := "/understand/Assistants/{AssistantSid}/Queries" path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) @@ -4713,7 +4713,7 @@ func (c *DefaultApiService) ListQuery(AssistantSid string, params *ListQueryPara defer resp.Body.Close() - ps := &PreviewUnderstandAssistantQueryReadResponse{} + ps := &ListQueryResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -4722,16 +4722,16 @@ func (c *DefaultApiService) ListQuery(AssistantSid string, params *ListQueryPara } // ListRatePlanParams Optional parameters for the method 'ListRatePlan' type ListRatePlanParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* ListRatePlan Method for ListRatePlan * @param optional nil or *ListRatePlanOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PreviewWirelessRatePlanReadResponse +@return ListRatePlanResponse */ -func (c *DefaultApiService) ListRatePlan(params *ListRatePlanParams) (*PreviewWirelessRatePlanReadResponse, error) { +func (c *DefaultApiService) ListRatePlan(params *ListRatePlanParams) (*ListRatePlanResponse, error) { path := "/wireless/RatePlans" @@ -4750,7 +4750,7 @@ func (c *DefaultApiService) ListRatePlan(params *ListRatePlanParams) (*PreviewWi defer resp.Body.Close() - ps := &PreviewWirelessRatePlanReadResponse{} + ps := &ListRatePlanResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -4759,8 +4759,8 @@ func (c *DefaultApiService) ListRatePlan(params *ListRatePlanParams) (*PreviewWi } // ListSampleParams Optional parameters for the method 'ListSample' type ListSampleParams struct { - Language *string `json:"Language,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Language *string `json:"Language,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4770,9 +4770,9 @@ ListSample Method for ListSample * @param optional nil or *ListSampleOpts - Optional Parameters: * @param "Language" (string) - An ISO language-country string of the sample. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PreviewUnderstandAssistantTaskSampleReadResponse +@return ListSampleResponse */ -func (c *DefaultApiService) ListSample(AssistantSid string, TaskSid string, params *ListSampleParams) (*PreviewUnderstandAssistantTaskSampleReadResponse, error) { +func (c *DefaultApiService) ListSample(AssistantSid string, TaskSid string, params *ListSampleParams) (*ListSampleResponse, error) { path := "/understand/Assistants/{AssistantSid}/Tasks/{TaskSid}/Samples" path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) path = strings.Replace(path, "{"+"TaskSid"+"}", TaskSid, -1) @@ -4796,7 +4796,7 @@ func (c *DefaultApiService) ListSample(AssistantSid string, TaskSid string, para defer resp.Body.Close() - ps := &PreviewUnderstandAssistantTaskSampleReadResponse{} + ps := &ListSampleResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -4805,16 +4805,16 @@ func (c *DefaultApiService) ListSample(AssistantSid string, TaskSid string, para } // ListServiceParams Optional parameters for the method 'ListService' type ListServiceParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* ListService Method for ListService * @param optional nil or *ListServiceOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PreviewSyncServiceReadResponse +@return ListServiceResponse */ -func (c *DefaultApiService) ListService(params *ListServiceParams) (*PreviewSyncServiceReadResponse, error) { +func (c *DefaultApiService) ListService(params *ListServiceParams) (*ListServiceResponse, error) { path := "/Sync/Services" @@ -4833,7 +4833,7 @@ func (c *DefaultApiService) ListService(params *ListServiceParams) (*PreviewSync defer resp.Body.Close() - ps := &PreviewSyncServiceReadResponse{} + ps := &ListServiceResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -4842,12 +4842,12 @@ func (c *DefaultApiService) ListService(params *ListServiceParams) (*PreviewSync } // ListSimParams Optional parameters for the method 'ListSim' type ListSimParams struct { - Status *string `json:"Status,omitempty"` - Iccid *string `json:"Iccid,omitempty"` - RatePlan *string `json:"RatePlan,omitempty"` - EId *string `json:"EId,omitempty"` - SimRegistrationCode *string `json:"SimRegistrationCode,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Status *string `json:"Status,omitempty"` + Iccid *string `json:"Iccid,omitempty"` + RatePlan *string `json:"RatePlan,omitempty"` + EId *string `json:"EId,omitempty"` + SimRegistrationCode *string `json:"SimRegistrationCode,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4859,9 +4859,9 @@ ListSim Method for ListSim * @param "EId" (string) - * @param "SimRegistrationCode" (string) - * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PreviewWirelessSimReadResponse +@return ListSimResponse */ -func (c *DefaultApiService) ListSim(params *ListSimParams) (*PreviewWirelessSimReadResponse, error) { +func (c *DefaultApiService) ListSim(params *ListSimParams) (*ListSimResponse, error) { path := "/wireless/Sims" @@ -4895,7 +4895,7 @@ func (c *DefaultApiService) ListSim(params *ListSimParams) (*PreviewWirelessSimR defer resp.Body.Close() - ps := &PreviewWirelessSimReadResponse{} + ps := &ListSimResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -4904,7 +4904,7 @@ func (c *DefaultApiService) ListSim(params *ListSimParams) (*PreviewWirelessSimR } // ListSyncListParams Optional parameters for the method 'ListSyncList' type ListSyncListParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4912,9 +4912,9 @@ ListSyncList Method for ListSyncList * @param ServiceSid * @param optional nil or *ListSyncListOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PreviewSyncServiceSyncListReadResponse +@return ListSyncListResponse */ -func (c *DefaultApiService) ListSyncList(ServiceSid string, params *ListSyncListParams) (*PreviewSyncServiceSyncListReadResponse, error) { +func (c *DefaultApiService) ListSyncList(ServiceSid string, params *ListSyncListParams) (*ListSyncListResponse, error) { path := "/Sync/Services/{ServiceSid}/Lists" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -4934,7 +4934,7 @@ func (c *DefaultApiService) ListSyncList(ServiceSid string, params *ListSyncList defer resp.Body.Close() - ps := &PreviewSyncServiceSyncListReadResponse{} + ps := &ListSyncListResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -4943,10 +4943,10 @@ func (c *DefaultApiService) ListSyncList(ServiceSid string, params *ListSyncList } // ListSyncListItemParams Optional parameters for the method 'ListSyncListItem' type ListSyncListItemParams struct { - Order *string `json:"Order,omitempty"` - From *string `json:"From,omitempty"` - Bounds *string `json:"Bounds,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Order *string `json:"Order,omitempty"` + From *string `json:"From,omitempty"` + Bounds *string `json:"Bounds,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -4958,9 +4958,9 @@ ListSyncListItem Method for ListSyncListItem * @param "From" (string) - * @param "Bounds" (string) - * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PreviewSyncServiceSyncListSyncListItemReadResponse +@return ListSyncListItemResponse */ -func (c *DefaultApiService) ListSyncListItem(ServiceSid string, ListSid string, params *ListSyncListItemParams) (*PreviewSyncServiceSyncListSyncListItemReadResponse, error) { +func (c *DefaultApiService) ListSyncListItem(ServiceSid string, ListSid string, params *ListSyncListItemParams) (*ListSyncListItemResponse, error) { path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Items" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"ListSid"+"}", ListSid, -1) @@ -4990,7 +4990,7 @@ func (c *DefaultApiService) ListSyncListItem(ServiceSid string, ListSid string, defer resp.Body.Close() - ps := &PreviewSyncServiceSyncListSyncListItemReadResponse{} + ps := &ListSyncListItemResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -4999,7 +4999,7 @@ func (c *DefaultApiService) ListSyncListItem(ServiceSid string, ListSid string, } // ListSyncListPermissionParams Optional parameters for the method 'ListSyncListPermission' type ListSyncListPermissionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -5009,9 +5009,9 @@ Retrieve a list of all Permissions applying to a Sync List. * @param ListSid Identifier of the Sync List. Either a SID or a unique name. * @param optional nil or *ListSyncListPermissionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PreviewSyncServiceSyncListSyncListPermissionReadResponse +@return ListSyncListPermissionResponse */ -func (c *DefaultApiService) ListSyncListPermission(ServiceSid string, ListSid string, params *ListSyncListPermissionParams) (*PreviewSyncServiceSyncListSyncListPermissionReadResponse, error) { +func (c *DefaultApiService) ListSyncListPermission(ServiceSid string, ListSid string, params *ListSyncListPermissionParams) (*ListSyncListPermissionResponse, error) { path := "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Permissions" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"ListSid"+"}", ListSid, -1) @@ -5032,7 +5032,7 @@ func (c *DefaultApiService) ListSyncListPermission(ServiceSid string, ListSid st defer resp.Body.Close() - ps := &PreviewSyncServiceSyncListSyncListPermissionReadResponse{} + ps := &ListSyncListPermissionResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -5041,7 +5041,7 @@ func (c *DefaultApiService) ListSyncListPermission(ServiceSid string, ListSid st } // ListSyncMapParams Optional parameters for the method 'ListSyncMap' type ListSyncMapParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -5049,9 +5049,9 @@ ListSyncMap Method for ListSyncMap * @param ServiceSid * @param optional nil or *ListSyncMapOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PreviewSyncServiceSyncMapReadResponse +@return ListSyncMapResponse */ -func (c *DefaultApiService) ListSyncMap(ServiceSid string, params *ListSyncMapParams) (*PreviewSyncServiceSyncMapReadResponse, error) { +func (c *DefaultApiService) ListSyncMap(ServiceSid string, params *ListSyncMapParams) (*ListSyncMapResponse, error) { path := "/Sync/Services/{ServiceSid}/Maps" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -5071,7 +5071,7 @@ func (c *DefaultApiService) ListSyncMap(ServiceSid string, params *ListSyncMapPa defer resp.Body.Close() - ps := &PreviewSyncServiceSyncMapReadResponse{} + ps := &ListSyncMapResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -5080,10 +5080,10 @@ func (c *DefaultApiService) ListSyncMap(ServiceSid string, params *ListSyncMapPa } // ListSyncMapItemParams Optional parameters for the method 'ListSyncMapItem' type ListSyncMapItemParams struct { - Order *string `json:"Order,omitempty"` - From *string `json:"From,omitempty"` - Bounds *string `json:"Bounds,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Order *string `json:"Order,omitempty"` + From *string `json:"From,omitempty"` + Bounds *string `json:"Bounds,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -5095,9 +5095,9 @@ ListSyncMapItem Method for ListSyncMapItem * @param "From" (string) - * @param "Bounds" (string) - * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PreviewSyncServiceSyncMapSyncMapItemReadResponse +@return ListSyncMapItemResponse */ -func (c *DefaultApiService) ListSyncMapItem(ServiceSid string, MapSid string, params *ListSyncMapItemParams) (*PreviewSyncServiceSyncMapSyncMapItemReadResponse, error) { +func (c *DefaultApiService) ListSyncMapItem(ServiceSid string, MapSid string, params *ListSyncMapItemParams) (*ListSyncMapItemResponse, error) { path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Items" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"MapSid"+"}", MapSid, -1) @@ -5127,7 +5127,7 @@ func (c *DefaultApiService) ListSyncMapItem(ServiceSid string, MapSid string, pa defer resp.Body.Close() - ps := &PreviewSyncServiceSyncMapSyncMapItemReadResponse{} + ps := &ListSyncMapItemResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -5136,7 +5136,7 @@ func (c *DefaultApiService) ListSyncMapItem(ServiceSid string, MapSid string, pa } // ListSyncMapPermissionParams Optional parameters for the method 'ListSyncMapPermission' type ListSyncMapPermissionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -5146,9 +5146,9 @@ Retrieve a list of all Permissions applying to a Sync Map. * @param MapSid Identifier of the Sync Map. Either a SID or a unique name. * @param optional nil or *ListSyncMapPermissionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PreviewSyncServiceSyncMapSyncMapPermissionReadResponse +@return ListSyncMapPermissionResponse */ -func (c *DefaultApiService) ListSyncMapPermission(ServiceSid string, MapSid string, params *ListSyncMapPermissionParams) (*PreviewSyncServiceSyncMapSyncMapPermissionReadResponse, error) { +func (c *DefaultApiService) ListSyncMapPermission(ServiceSid string, MapSid string, params *ListSyncMapPermissionParams) (*ListSyncMapPermissionResponse, error) { path := "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Permissions" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"MapSid"+"}", MapSid, -1) @@ -5169,7 +5169,7 @@ func (c *DefaultApiService) ListSyncMapPermission(ServiceSid string, MapSid stri defer resp.Body.Close() - ps := &PreviewSyncServiceSyncMapSyncMapPermissionReadResponse{} + ps := &ListSyncMapPermissionResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -5178,7 +5178,7 @@ func (c *DefaultApiService) ListSyncMapPermission(ServiceSid string, MapSid stri } // ListTaskParams Optional parameters for the method 'ListTask' type ListTaskParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -5186,9 +5186,9 @@ ListTask Method for ListTask * @param AssistantSid The unique ID of the Assistant. * @param optional nil or *ListTaskOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PreviewUnderstandAssistantTaskReadResponse +@return ListTaskResponse */ -func (c *DefaultApiService) ListTask(AssistantSid string, params *ListTaskParams) (*PreviewUnderstandAssistantTaskReadResponse, error) { +func (c *DefaultApiService) ListTask(AssistantSid string, params *ListTaskParams) (*ListTaskResponse, error) { path := "/understand/Assistants/{AssistantSid}/Tasks" path = strings.Replace(path, "{"+"AssistantSid"+"}", AssistantSid, -1) @@ -5208,7 +5208,7 @@ func (c *DefaultApiService) ListTask(AssistantSid string, params *ListTaskParams defer resp.Body.Close() - ps := &PreviewUnderstandAssistantTaskReadResponse{} + ps := &ListTaskResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -5217,14 +5217,14 @@ func (c *DefaultApiService) ListTask(AssistantSid string, params *ListTaskParams } // UpdateAssistantParams Optional parameters for the method 'UpdateAssistant' type UpdateAssistantParams struct { - CallbackEvents *string `json:"CallbackEvents,omitempty"` - CallbackUrl *string `json:"CallbackUrl,omitempty"` - FallbackActions *map[string]interface{} `json:"FallbackActions,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - InitiationActions *map[string]interface{} `json:"InitiationActions,omitempty"` - LogQueries *bool `json:"LogQueries,omitempty"` - StyleSheet *map[string]interface{} `json:"StyleSheet,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + CallbackEvents *string `json:"CallbackEvents,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + FallbackActions *map[string]interface{} `json:"FallbackActions,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + InitiationActions *map[string]interface{} `json:"InitiationActions,omitempty"` + LogQueries *bool `json:"LogQueries,omitempty"` + StyleSheet *map[string]interface{} `json:"StyleSheet,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -5309,7 +5309,7 @@ func (c *DefaultApiService) UpdateAssistant(Sid string, params *UpdateAssistantP } // UpdateAssistantFallbackActionsParams Optional parameters for the method 'UpdateAssistantFallbackActions' type UpdateAssistantFallbackActionsParams struct { - FallbackActions *map[string]interface{} `json:"FallbackActions,omitempty"` + FallbackActions *map[string]interface{} `json:"FallbackActions,omitempty"` } /* @@ -5354,7 +5354,7 @@ func (c *DefaultApiService) UpdateAssistantFallbackActions(AssistantSid string, } // UpdateAssistantInitiationActionsParams Optional parameters for the method 'UpdateAssistantInitiationActions' type UpdateAssistantInitiationActionsParams struct { - InitiationActions *map[string]interface{} `json:"InitiationActions,omitempty"` + InitiationActions *map[string]interface{} `json:"InitiationActions,omitempty"` } /* @@ -5399,13 +5399,13 @@ func (c *DefaultApiService) UpdateAssistantInitiationActions(AssistantSid string } // UpdateAuthorizationDocumentParams Optional parameters for the method 'UpdateAuthorizationDocument' type UpdateAuthorizationDocumentParams struct { - AddressSid *string `json:"AddressSid,omitempty"` - CcEmails *[]string `json:"CcEmails,omitempty"` - ContactPhoneNumber *string `json:"ContactPhoneNumber,omitempty"` - ContactTitle *string `json:"ContactTitle,omitempty"` - Email *string `json:"Email,omitempty"` - HostedNumberOrderSids *[]string `json:"HostedNumberOrderSids,omitempty"` - Status *string `json:"Status,omitempty"` + AddressSid *string `json:"AddressSid,omitempty"` + CcEmails *[]string `json:"CcEmails,omitempty"` + ContactPhoneNumber *string `json:"ContactPhoneNumber,omitempty"` + ContactTitle *string `json:"ContactTitle,omitempty"` + Email *string `json:"Email,omitempty"` + HostedNumberOrderSids *[]string `json:"HostedNumberOrderSids,omitempty"` + Status *string `json:"Status,omitempty"` } /* @@ -5469,8 +5469,8 @@ func (c *DefaultApiService) UpdateAuthorizationDocument(Sid string, params *Upda } // UpdateCertificateParams Optional parameters for the method 'UpdateCertificate' type UpdateCertificateParams struct { - DeviceSid *string `json:"DeviceSid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` + DeviceSid *string `json:"DeviceSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -5516,8 +5516,8 @@ func (c *DefaultApiService) UpdateCertificate(FleetSid string, Sid string, param } // UpdateDeploymentParams Optional parameters for the method 'UpdateDeployment' type UpdateDeploymentParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - SyncServiceSid *string `json:"SyncServiceSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + SyncServiceSid *string `json:"SyncServiceSid,omitempty"` } /* @@ -5563,10 +5563,10 @@ func (c *DefaultApiService) UpdateDeployment(FleetSid string, Sid string, params } // UpdateDeviceParams Optional parameters for the method 'UpdateDevice' type UpdateDeviceParams struct { - DeploymentSid *string `json:"DeploymentSid,omitempty"` - Enabled *bool `json:"Enabled,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Identity *string `json:"Identity,omitempty"` + DeploymentSid *string `json:"DeploymentSid,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Identity *string `json:"Identity,omitempty"` } /* @@ -5620,8 +5620,8 @@ func (c *DefaultApiService) UpdateDevice(FleetSid string, Sid string, params *Up } // UpdateDocumentParams Optional parameters for the method 'UpdateDocument' type UpdateDocumentParams struct { - IfMatch *string `json:"If-Match,omitempty"` - Data *map[string]interface{} `json:"Data,omitempty"` + IfMatch *string `json:"If-Match,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` } /* @@ -5672,9 +5672,9 @@ func (c *DefaultApiService) UpdateDocument(ServiceSid string, Sid string, params } // UpdateDocumentPermissionParams Optional parameters for the method 'UpdateDocumentPermission' type UpdateDocumentPermissionParams struct { - Manage *bool `json:"Manage,omitempty"` - Read *bool `json:"Read,omitempty"` - Write *bool `json:"Write,omitempty"` + Manage *bool `json:"Manage,omitempty"` + Read *bool `json:"Read,omitempty"` + Write *bool `json:"Write,omitempty"` } /* @@ -5726,15 +5726,15 @@ func (c *DefaultApiService) UpdateDocumentPermission(ServiceSid string, Document } // UpdateExportConfigurationParams Optional parameters for the method 'UpdateExportConfiguration' type UpdateExportConfigurationParams struct { - Enabled *bool `json:"Enabled,omitempty"` - WebhookMethod *string `json:"WebhookMethod,omitempty"` - WebhookUrl *string `json:"WebhookUrl,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + WebhookMethod *string `json:"WebhookMethod,omitempty"` + WebhookUrl *string `json:"WebhookUrl,omitempty"` } /* UpdateExportConfiguration Method for UpdateExportConfiguration Update a specific Export Configuration. - * @param ResourceType The type of communication – Messages, Calls + * @param ResourceType The type of communication – Messages, Calls, Conferences, and Participants * @param optional nil or *UpdateExportConfigurationOpts - Optional Parameters: * @param "Enabled" (bool) - If true, Twilio will automatically generate every day's file when the day is over. * @param "WebhookMethod" (string) - Sets whether Twilio should call a webhook URL when the automatic generation is complete, using GET or POST. The actual destination is set in the webhook_url @@ -5776,8 +5776,8 @@ func (c *DefaultApiService) UpdateExportConfiguration(ResourceType string, param } // UpdateFieldTypeParams Optional parameters for the method 'UpdateFieldType' type UpdateFieldTypeParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -5822,8 +5822,8 @@ func (c *DefaultApiService) UpdateFieldType(AssistantSid string, Sid string, par } // UpdateFleetParams Optional parameters for the method 'UpdateFleet' type UpdateFleetParams struct { - DefaultDeploymentSid *string `json:"DefaultDeploymentSid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` + DefaultDeploymentSid *string `json:"DefaultDeploymentSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -5867,16 +5867,16 @@ func (c *DefaultApiService) UpdateFleet(Sid string, params *UpdateFleetParams) ( } // UpdateHostedNumberOrderParams Optional parameters for the method 'UpdateHostedNumberOrder' type UpdateHostedNumberOrderParams struct { - CallDelay *int32 `json:"CallDelay,omitempty"` - CcEmails *[]string `json:"CcEmails,omitempty"` - Email *string `json:"Email,omitempty"` - Extension *string `json:"Extension,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Status *string `json:"Status,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` - VerificationCode *string `json:"VerificationCode,omitempty"` - VerificationDocumentSid *string `json:"VerificationDocumentSid,omitempty"` - VerificationType *string `json:"VerificationType,omitempty"` + CallDelay *int32 `json:"CallDelay,omitempty"` + CcEmails *[]string `json:"CcEmails,omitempty"` + Email *string `json:"Email,omitempty"` + Extension *string `json:"Extension,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Status *string `json:"Status,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + VerificationCode *string `json:"VerificationCode,omitempty"` + VerificationDocumentSid *string `json:"VerificationDocumentSid,omitempty"` + VerificationType *string `json:"VerificationType,omitempty"` } /* @@ -5952,8 +5952,8 @@ func (c *DefaultApiService) UpdateHostedNumberOrder(Sid string, params *UpdateHo } // UpdateInstalledAddOnParams Optional parameters for the method 'UpdateInstalledAddOn' type UpdateInstalledAddOnParams struct { - Configuration *map[string]interface{} `json:"Configuration,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + Configuration *map[string]interface{} `json:"Configuration,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -6003,7 +6003,7 @@ func (c *DefaultApiService) UpdateInstalledAddOn(Sid string, params *UpdateInsta } // UpdateInstalledAddOnExtensionParams Optional parameters for the method 'UpdateInstalledAddOnExtension' type UpdateInstalledAddOnExtensionParams struct { - Enabled *bool `json:"Enabled,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` } /* @@ -6045,8 +6045,8 @@ func (c *DefaultApiService) UpdateInstalledAddOnExtension(InstalledAddOnSid stri } // UpdateKeyParams Optional parameters for the method 'UpdateKey' type UpdateKeyParams struct { - DeviceSid *string `json:"DeviceSid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` + DeviceSid *string `json:"DeviceSid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -6092,7 +6092,7 @@ func (c *DefaultApiService) UpdateKey(FleetSid string, Sid string, params *Updat } // UpdateModelBuildParams Optional parameters for the method 'UpdateModelBuild' type UpdateModelBuildParams struct { - UniqueName *string `json:"UniqueName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -6133,8 +6133,8 @@ func (c *DefaultApiService) UpdateModelBuild(AssistantSid string, Sid string, pa } // UpdateQueryParams Optional parameters for the method 'UpdateQuery' type UpdateQueryParams struct { - SampleSid *string `json:"SampleSid,omitempty"` - Status *string `json:"Status,omitempty"` + SampleSid *string `json:"SampleSid,omitempty"` + Status *string `json:"Status,omitempty"` } /* @@ -6179,8 +6179,8 @@ func (c *DefaultApiService) UpdateQuery(AssistantSid string, Sid string, params } // UpdateRatePlanParams Optional parameters for the method 'UpdateRatePlan' type UpdateRatePlanParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -6223,9 +6223,9 @@ func (c *DefaultApiService) UpdateRatePlan(Sid string, params *UpdateRatePlanPar } // UpdateSampleParams Optional parameters for the method 'UpdateSample' type UpdateSampleParams struct { - Language *string `json:"Language,omitempty"` - SourceChannel *string `json:"SourceChannel,omitempty"` - TaggedText *string `json:"TaggedText,omitempty"` + Language *string `json:"Language,omitempty"` + SourceChannel *string `json:"SourceChannel,omitempty"` + TaggedText *string `json:"TaggedText,omitempty"` } /* @@ -6276,10 +6276,10 @@ func (c *DefaultApiService) UpdateSample(AssistantSid string, TaskSid string, Si } // UpdateServiceParams Optional parameters for the method 'UpdateService' type UpdateServiceParams struct { - AclEnabled *bool `json:"AclEnabled,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - ReachabilityWebhooksEnabled *bool `json:"ReachabilityWebhooksEnabled,omitempty"` - WebhookUrl *string `json:"WebhookUrl,omitempty"` + AclEnabled *bool `json:"AclEnabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + ReachabilityWebhooksEnabled *bool `json:"ReachabilityWebhooksEnabled,omitempty"` + WebhookUrl *string `json:"WebhookUrl,omitempty"` } /* @@ -6330,22 +6330,22 @@ func (c *DefaultApiService) UpdateService(Sid string, params *UpdateServiceParam } // UpdateSimParams Optional parameters for the method 'UpdateSim' type UpdateSimParams struct { - CallbackMethod *string `json:"CallbackMethod,omitempty"` - CallbackUrl *string `json:"CallbackUrl,omitempty"` - CommandsCallbackMethod *string `json:"CommandsCallbackMethod,omitempty"` - CommandsCallbackUrl *string `json:"CommandsCallbackUrl,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - RatePlan *string `json:"RatePlan,omitempty"` - SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` - SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` - SmsMethod *string `json:"SmsMethod,omitempty"` - SmsUrl *string `json:"SmsUrl,omitempty"` - Status *string `json:"Status,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` - VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` - VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` - VoiceMethod *string `json:"VoiceMethod,omitempty"` - VoiceUrl *string `json:"VoiceUrl,omitempty"` + CallbackMethod *string `json:"CallbackMethod,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + CommandsCallbackMethod *string `json:"CommandsCallbackMethod,omitempty"` + CommandsCallbackUrl *string `json:"CommandsCallbackUrl,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + RatePlan *string `json:"RatePlan,omitempty"` + SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` + SmsMethod *string `json:"SmsMethod,omitempty"` + SmsUrl *string `json:"SmsUrl,omitempty"` + Status *string `json:"Status,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` } /* @@ -6444,7 +6444,7 @@ func (c *DefaultApiService) UpdateSim(Sid string, params *UpdateSimParams) (*Pre } // UpdateStyleSheetParams Optional parameters for the method 'UpdateStyleSheet' type UpdateStyleSheetParams struct { - StyleSheet *map[string]interface{} `json:"StyleSheet,omitempty"` + StyleSheet *map[string]interface{} `json:"StyleSheet,omitempty"` } /* @@ -6490,8 +6490,8 @@ func (c *DefaultApiService) UpdateStyleSheet(AssistantSid string, params *Update } // UpdateSyncListItemParams Optional parameters for the method 'UpdateSyncListItem' type UpdateSyncListItemParams struct { - IfMatch *string `json:"If-Match,omitempty"` - Data *map[string]interface{} `json:"Data,omitempty"` + IfMatch *string `json:"If-Match,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` } /* @@ -6544,9 +6544,9 @@ func (c *DefaultApiService) UpdateSyncListItem(ServiceSid string, ListSid string } // UpdateSyncListPermissionParams Optional parameters for the method 'UpdateSyncListPermission' type UpdateSyncListPermissionParams struct { - Manage *bool `json:"Manage,omitempty"` - Read *bool `json:"Read,omitempty"` - Write *bool `json:"Write,omitempty"` + Manage *bool `json:"Manage,omitempty"` + Read *bool `json:"Read,omitempty"` + Write *bool `json:"Write,omitempty"` } /* @@ -6598,8 +6598,8 @@ func (c *DefaultApiService) UpdateSyncListPermission(ServiceSid string, ListSid } // UpdateSyncMapItemParams Optional parameters for the method 'UpdateSyncMapItem' type UpdateSyncMapItemParams struct { - IfMatch *string `json:"If-Match,omitempty"` - Data *map[string]interface{} `json:"Data,omitempty"` + IfMatch *string `json:"If-Match,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` } /* @@ -6652,9 +6652,9 @@ func (c *DefaultApiService) UpdateSyncMapItem(ServiceSid string, MapSid string, } // UpdateSyncMapPermissionParams Optional parameters for the method 'UpdateSyncMapPermission' type UpdateSyncMapPermissionParams struct { - Manage *bool `json:"Manage,omitempty"` - Read *bool `json:"Read,omitempty"` - Write *bool `json:"Write,omitempty"` + Manage *bool `json:"Manage,omitempty"` + Read *bool `json:"Read,omitempty"` + Write *bool `json:"Write,omitempty"` } /* @@ -6706,10 +6706,10 @@ func (c *DefaultApiService) UpdateSyncMapPermission(ServiceSid string, MapSid st } // UpdateTaskParams Optional parameters for the method 'UpdateTask' type UpdateTaskParams struct { - Actions *map[string]interface{} `json:"Actions,omitempty"` - ActionsUrl *string `json:"ActionsUrl,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + Actions *map[string]interface{} `json:"Actions,omitempty"` + ActionsUrl *string `json:"ActionsUrl,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -6768,7 +6768,7 @@ func (c *DefaultApiService) UpdateTask(AssistantSid string, Sid string, params * } // UpdateTaskActionsParams Optional parameters for the method 'UpdateTaskActions' type UpdateTaskActionsParams struct { - Actions *map[string]interface{} `json:"Actions,omitempty"` + Actions *map[string]interface{} `json:"Actions,omitempty"` } /* diff --git a/rest/preview/docs/DefaultApi.md b/rest/preview/docs/DefaultApi.md index d1b391998..d99a2e930 100644 --- a/rest/preview/docs/DefaultApi.md +++ b/rest/preview/docs/DefaultApi.md @@ -554,7 +554,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**ResourceType** | **string**| The type of communication – Messages or Calls | +**ResourceType** | **string**| The type of communication – Messages or Calls, Conferences, and Participants | **optional** | ***CreateExportCustomJobOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -2737,7 +2737,7 @@ Fetch a specific Day. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**ResourceType** | **string**| The type of communication – Messages, Calls | +**ResourceType** | **string**| The type of communication – Messages, Calls, Conferences, and Participants | **Day** | **string**| The ISO 8601 format date of the resources in the file, for a UTC day | ### Return type @@ -2944,7 +2944,7 @@ Fetch a specific Export. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**ResourceType** | **string**| The type of communication – Messages, Calls | +**ResourceType** | **string**| The type of communication – Messages, Calls, Conferences, and Participants | ### Return type @@ -2978,7 +2978,7 @@ Fetch a specific Export Configuration. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**ResourceType** | **string**| The type of communication – Messages, Calls | +**ResourceType** | **string**| The type of communication – Messages, Calls, Conferences, and Participants | ### Return type @@ -3248,7 +3248,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**JobSid** | **string**| | +**JobSid** | **string**| The unique string that that we created to identify the Bulk Export job | ### Return type @@ -3886,7 +3886,7 @@ Name | Type | Description | Notes ## ListAssistant -> PreviewUnderstandAssistantReadResponse ListAssistant(ctx, optional) +> ListAssistantResponse ListAssistant(ctx, optional) @@ -3909,7 +3909,7 @@ Name | Type | Description | Notes ### Return type -[**PreviewUnderstandAssistantReadResponse**](preview_understand_assistantReadResponse.md) +[**ListAssistantResponse**](ListAssistantResponse.md) ### Authorization @@ -3927,7 +3927,7 @@ Name | Type | Description | Notes ## ListAuthorizationDocument -> PreviewHostedNumbersAuthorizationDocumentReadResponse ListAuthorizationDocument(ctx, optional) +> ListAuthorizationDocumentResponse ListAuthorizationDocument(ctx, optional) @@ -3954,7 +3954,7 @@ Name | Type | Description | Notes ### Return type -[**PreviewHostedNumbersAuthorizationDocumentReadResponse**](preview_hosted_numbers_authorization_documentReadResponse.md) +[**ListAuthorizationDocumentResponse**](ListAuthorizationDocumentResponse.md) ### Authorization @@ -3972,7 +3972,7 @@ Name | Type | Description | Notes ## ListAvailableAddOn -> PreviewMarketplaceAvailableAddOnReadResponse ListAvailableAddOn(ctx, optional) +> ListAvailableAddOnResponse ListAvailableAddOn(ctx, optional) @@ -3997,7 +3997,7 @@ Name | Type | Description | Notes ### Return type -[**PreviewMarketplaceAvailableAddOnReadResponse**](preview_marketplace_available_add_onReadResponse.md) +[**ListAvailableAddOnResponse**](ListAvailableAddOnResponse.md) ### Authorization @@ -4015,7 +4015,7 @@ Name | Type | Description | Notes ## ListAvailableAddOnExtension -> PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse ListAvailableAddOnExtension(ctx, AvailableAddOnSid, optional) +> ListAvailableAddOnExtensionResponse ListAvailableAddOnExtension(ctx, AvailableAddOnSid, optional) @@ -4042,7 +4042,7 @@ Name | Type | Description | Notes ### Return type -[**PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse**](preview_marketplace_available_add_on_available_add_on_extensionReadResponse.md) +[**ListAvailableAddOnExtensionResponse**](ListAvailableAddOnExtensionResponse.md) ### Authorization @@ -4060,7 +4060,7 @@ Name | Type | Description | Notes ## ListCertificate -> PreviewDeployedDevicesFleetCertificateReadResponse ListCertificate(ctx, FleetSid, optional) +> ListCertificateResponse ListCertificate(ctx, FleetSid, optional) @@ -4088,7 +4088,7 @@ Name | Type | Description | Notes ### Return type -[**PreviewDeployedDevicesFleetCertificateReadResponse**](preview_deployed_devices_fleet_certificateReadResponse.md) +[**ListCertificateResponse**](ListCertificateResponse.md) ### Authorization @@ -4106,7 +4106,7 @@ Name | Type | Description | Notes ## ListCommand -> PreviewWirelessCommandReadResponse ListCommand(ctx, optional) +> ListCommandResponse ListCommand(ctx, optional) @@ -4133,7 +4133,7 @@ Name | Type | Description | Notes ### Return type -[**PreviewWirelessCommandReadResponse**](preview_wireless_commandReadResponse.md) +[**ListCommandResponse**](ListCommandResponse.md) ### Authorization @@ -4151,7 +4151,7 @@ Name | Type | Description | Notes ## ListDay -> PreviewBulkExportsExportDayReadResponse ListDay(ctx, ResourceType, optional) +> ListDayResponse ListDay(ctx, ResourceType, optional) @@ -4163,7 +4163,7 @@ Retrieve a list of all Days for a resource. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**ResourceType** | **string**| The type of communication – Messages, Calls | +**ResourceType** | **string**| The type of communication – Messages, Calls, Conferences, and Participants | **optional** | ***ListDayOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -4178,7 +4178,7 @@ Name | Type | Description | Notes ### Return type -[**PreviewBulkExportsExportDayReadResponse**](preview_bulk_exports_export_dayReadResponse.md) +[**ListDayResponse**](ListDayResponse.md) ### Authorization @@ -4196,7 +4196,7 @@ Name | Type | Description | Notes ## ListDependentHostedNumberOrder -> PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse ListDependentHostedNumberOrder(ctx, SigningDocumentSid, optional) +> ListDependentHostedNumberOrderResponse ListDependentHostedNumberOrder(ctx, SigningDocumentSid, optional) @@ -4228,7 +4228,7 @@ Name | Type | Description | Notes ### Return type -[**PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse**](preview_hosted_numbers_authorization_document_dependent_hosted_number_orderReadResponse.md) +[**ListDependentHostedNumberOrderResponse**](ListDependentHostedNumberOrderResponse.md) ### Authorization @@ -4246,7 +4246,7 @@ Name | Type | Description | Notes ## ListDeployment -> PreviewDeployedDevicesFleetDeploymentReadResponse ListDeployment(ctx, FleetSid, optional) +> ListDeploymentResponse ListDeployment(ctx, FleetSid, optional) @@ -4273,7 +4273,7 @@ Name | Type | Description | Notes ### Return type -[**PreviewDeployedDevicesFleetDeploymentReadResponse**](preview_deployed_devices_fleet_deploymentReadResponse.md) +[**ListDeploymentResponse**](ListDeploymentResponse.md) ### Authorization @@ -4291,7 +4291,7 @@ Name | Type | Description | Notes ## ListDevice -> PreviewDeployedDevicesFleetDeviceReadResponse ListDevice(ctx, FleetSid, optional) +> ListDeviceResponse ListDevice(ctx, FleetSid, optional) @@ -4319,7 +4319,7 @@ Name | Type | Description | Notes ### Return type -[**PreviewDeployedDevicesFleetDeviceReadResponse**](preview_deployed_devices_fleet_deviceReadResponse.md) +[**ListDeviceResponse**](ListDeviceResponse.md) ### Authorization @@ -4337,7 +4337,7 @@ Name | Type | Description | Notes ## ListDocument -> PreviewSyncServiceDocumentReadResponse ListDocument(ctx, ServiceSid, optional) +> ListDocumentResponse ListDocument(ctx, ServiceSid, optional) @@ -4362,7 +4362,7 @@ Name | Type | Description | Notes ### Return type -[**PreviewSyncServiceDocumentReadResponse**](preview_sync_service_documentReadResponse.md) +[**ListDocumentResponse**](ListDocumentResponse.md) ### Authorization @@ -4380,7 +4380,7 @@ Name | Type | Description | Notes ## ListDocumentPermission -> PreviewSyncServiceDocumentDocumentPermissionReadResponse ListDocumentPermission(ctx, ServiceSid, DocumentSid, optional) +> ListDocumentPermissionResponse ListDocumentPermission(ctx, ServiceSid, DocumentSid, optional) @@ -4409,7 +4409,7 @@ Name | Type | Description | Notes ### Return type -[**PreviewSyncServiceDocumentDocumentPermissionReadResponse**](preview_sync_service_document_document_permissionReadResponse.md) +[**ListDocumentPermissionResponse**](ListDocumentPermissionResponse.md) ### Authorization @@ -4427,7 +4427,7 @@ Name | Type | Description | Notes ## ListExportCustomJob -> PreviewBulkExportsExportExportCustomJobReadResponse ListExportCustomJob(ctx, ResourceType, optional) +> ListExportCustomJobResponse ListExportCustomJob(ctx, ResourceType, optional) @@ -4437,7 +4437,7 @@ Name | Type | Description | Notes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**ResourceType** | **string**| The type of communication – Messages, Calls | +**ResourceType** | **string**| The type of communication – Messages, Calls, Conferences, and Participants | **optional** | ***ListExportCustomJobOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -4452,7 +4452,7 @@ Name | Type | Description | Notes ### Return type -[**PreviewBulkExportsExportExportCustomJobReadResponse**](preview_bulk_exports_export_export_custom_jobReadResponse.md) +[**ListExportCustomJobResponse**](ListExportCustomJobResponse.md) ### Authorization @@ -4470,7 +4470,7 @@ Name | Type | Description | Notes ## ListField -> PreviewUnderstandAssistantTaskFieldReadResponse ListField(ctx, AssistantSid, TaskSid, optional) +> ListFieldResponse ListField(ctx, AssistantSid, TaskSid, optional) @@ -4497,7 +4497,7 @@ Name | Type | Description | Notes ### Return type -[**PreviewUnderstandAssistantTaskFieldReadResponse**](preview_understand_assistant_task_fieldReadResponse.md) +[**ListFieldResponse**](ListFieldResponse.md) ### Authorization @@ -4515,7 +4515,7 @@ Name | Type | Description | Notes ## ListFieldType -> PreviewUnderstandAssistantFieldTypeReadResponse ListFieldType(ctx, AssistantSid, optional) +> ListFieldTypeResponse ListFieldType(ctx, AssistantSid, optional) @@ -4540,7 +4540,7 @@ Name | Type | Description | Notes ### Return type -[**PreviewUnderstandAssistantFieldTypeReadResponse**](preview_understand_assistant_field_typeReadResponse.md) +[**ListFieldTypeResponse**](ListFieldTypeResponse.md) ### Authorization @@ -4558,7 +4558,7 @@ Name | Type | Description | Notes ## ListFieldValue -> PreviewUnderstandAssistantFieldTypeFieldValueReadResponse ListFieldValue(ctx, AssistantSid, FieldTypeSid, optional) +> ListFieldValueResponse ListFieldValue(ctx, AssistantSid, FieldTypeSid, optional) @@ -4586,7 +4586,7 @@ Name | Type | Description | Notes ### Return type -[**PreviewUnderstandAssistantFieldTypeFieldValueReadResponse**](preview_understand_assistant_field_type_field_valueReadResponse.md) +[**ListFieldValueResponse**](ListFieldValueResponse.md) ### Authorization @@ -4604,7 +4604,7 @@ Name | Type | Description | Notes ## ListFleet -> PreviewDeployedDevicesFleetReadResponse ListFleet(ctx, optional) +> ListFleetResponse ListFleet(ctx, optional) @@ -4629,7 +4629,7 @@ Name | Type | Description | Notes ### Return type -[**PreviewDeployedDevicesFleetReadResponse**](preview_deployed_devices_fleetReadResponse.md) +[**ListFleetResponse**](ListFleetResponse.md) ### Authorization @@ -4647,7 +4647,7 @@ Name | Type | Description | Notes ## ListHostedNumberOrder -> PreviewHostedNumbersHostedNumberOrderReadResponse ListHostedNumberOrder(ctx, optional) +> ListHostedNumberOrderResponse ListHostedNumberOrder(ctx, optional) @@ -4677,7 +4677,7 @@ Name | Type | Description | Notes ### Return type -[**PreviewHostedNumbersHostedNumberOrderReadResponse**](preview_hosted_numbers_hosted_number_orderReadResponse.md) +[**ListHostedNumberOrderResponse**](ListHostedNumberOrderResponse.md) ### Authorization @@ -4695,7 +4695,7 @@ Name | Type | Description | Notes ## ListInstalledAddOn -> PreviewMarketplaceInstalledAddOnReadResponse ListInstalledAddOn(ctx, optional) +> ListInstalledAddOnResponse ListInstalledAddOn(ctx, optional) @@ -4720,7 +4720,7 @@ Name | Type | Description | Notes ### Return type -[**PreviewMarketplaceInstalledAddOnReadResponse**](preview_marketplace_installed_add_onReadResponse.md) +[**ListInstalledAddOnResponse**](ListInstalledAddOnResponse.md) ### Authorization @@ -4738,7 +4738,7 @@ Name | Type | Description | Notes ## ListInstalledAddOnExtension -> PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse ListInstalledAddOnExtension(ctx, InstalledAddOnSid, optional) +> ListInstalledAddOnExtensionResponse ListInstalledAddOnExtension(ctx, InstalledAddOnSid, optional) @@ -4765,7 +4765,7 @@ Name | Type | Description | Notes ### Return type -[**PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse**](preview_marketplace_installed_add_on_installed_add_on_extensionReadResponse.md) +[**ListInstalledAddOnExtensionResponse**](ListInstalledAddOnExtensionResponse.md) ### Authorization @@ -4783,7 +4783,7 @@ Name | Type | Description | Notes ## ListKey -> PreviewDeployedDevicesFleetKeyReadResponse ListKey(ctx, FleetSid, optional) +> ListKeyResponse ListKey(ctx, FleetSid, optional) @@ -4811,7 +4811,7 @@ Name | Type | Description | Notes ### Return type -[**PreviewDeployedDevicesFleetKeyReadResponse**](preview_deployed_devices_fleet_keyReadResponse.md) +[**ListKeyResponse**](ListKeyResponse.md) ### Authorization @@ -4829,7 +4829,7 @@ Name | Type | Description | Notes ## ListModelBuild -> PreviewUnderstandAssistantModelBuildReadResponse ListModelBuild(ctx, AssistantSid, optional) +> ListModelBuildResponse ListModelBuild(ctx, AssistantSid, optional) @@ -4854,7 +4854,7 @@ Name | Type | Description | Notes ### Return type -[**PreviewUnderstandAssistantModelBuildReadResponse**](preview_understand_assistant_model_buildReadResponse.md) +[**ListModelBuildResponse**](ListModelBuildResponse.md) ### Authorization @@ -4872,7 +4872,7 @@ Name | Type | Description | Notes ## ListQuery -> PreviewUnderstandAssistantQueryReadResponse ListQuery(ctx, AssistantSid, optional) +> ListQueryResponse ListQuery(ctx, AssistantSid, optional) @@ -4900,7 +4900,7 @@ Name | Type | Description | Notes ### Return type -[**PreviewUnderstandAssistantQueryReadResponse**](preview_understand_assistant_queryReadResponse.md) +[**ListQueryResponse**](ListQueryResponse.md) ### Authorization @@ -4918,7 +4918,7 @@ Name | Type | Description | Notes ## ListRatePlan -> PreviewWirelessRatePlanReadResponse ListRatePlan(ctx, optional) +> ListRatePlanResponse ListRatePlan(ctx, optional) @@ -4941,7 +4941,7 @@ Name | Type | Description | Notes ### Return type -[**PreviewWirelessRatePlanReadResponse**](preview_wireless_rate_planReadResponse.md) +[**ListRatePlanResponse**](ListRatePlanResponse.md) ### Authorization @@ -4959,7 +4959,7 @@ Name | Type | Description | Notes ## ListSample -> PreviewUnderstandAssistantTaskSampleReadResponse ListSample(ctx, AssistantSid, TaskSid, optional) +> ListSampleResponse ListSample(ctx, AssistantSid, TaskSid, optional) @@ -4987,7 +4987,7 @@ Name | Type | Description | Notes ### Return type -[**PreviewUnderstandAssistantTaskSampleReadResponse**](preview_understand_assistant_task_sampleReadResponse.md) +[**ListSampleResponse**](ListSampleResponse.md) ### Authorization @@ -5005,7 +5005,7 @@ Name | Type | Description | Notes ## ListService -> PreviewSyncServiceReadResponse ListService(ctx, optional) +> ListServiceResponse ListService(ctx, optional) @@ -5028,7 +5028,7 @@ Name | Type | Description | Notes ### Return type -[**PreviewSyncServiceReadResponse**](preview_sync_serviceReadResponse.md) +[**ListServiceResponse**](ListServiceResponse.md) ### Authorization @@ -5046,7 +5046,7 @@ Name | Type | Description | Notes ## ListSim -> PreviewWirelessSimReadResponse ListSim(ctx, optional) +> ListSimResponse ListSim(ctx, optional) @@ -5074,7 +5074,7 @@ Name | Type | Description | Notes ### Return type -[**PreviewWirelessSimReadResponse**](preview_wireless_simReadResponse.md) +[**ListSimResponse**](ListSimResponse.md) ### Authorization @@ -5092,7 +5092,7 @@ Name | Type | Description | Notes ## ListSyncList -> PreviewSyncServiceSyncListReadResponse ListSyncList(ctx, ServiceSid, optional) +> ListSyncListResponse ListSyncList(ctx, ServiceSid, optional) @@ -5117,7 +5117,7 @@ Name | Type | Description | Notes ### Return type -[**PreviewSyncServiceSyncListReadResponse**](preview_sync_service_sync_listReadResponse.md) +[**ListSyncListResponse**](ListSyncListResponse.md) ### Authorization @@ -5135,7 +5135,7 @@ Name | Type | Description | Notes ## ListSyncListItem -> PreviewSyncServiceSyncListSyncListItemReadResponse ListSyncListItem(ctx, ServiceSid, ListSid, optional) +> ListSyncListItemResponse ListSyncListItem(ctx, ServiceSid, ListSid, optional) @@ -5165,7 +5165,7 @@ Name | Type | Description | Notes ### Return type -[**PreviewSyncServiceSyncListSyncListItemReadResponse**](preview_sync_service_sync_list_sync_list_itemReadResponse.md) +[**ListSyncListItemResponse**](ListSyncListItemResponse.md) ### Authorization @@ -5183,7 +5183,7 @@ Name | Type | Description | Notes ## ListSyncListPermission -> PreviewSyncServiceSyncListSyncListPermissionReadResponse ListSyncListPermission(ctx, ServiceSid, ListSid, optional) +> ListSyncListPermissionResponse ListSyncListPermission(ctx, ServiceSid, ListSid, optional) @@ -5212,7 +5212,7 @@ Name | Type | Description | Notes ### Return type -[**PreviewSyncServiceSyncListSyncListPermissionReadResponse**](preview_sync_service_sync_list_sync_list_permissionReadResponse.md) +[**ListSyncListPermissionResponse**](ListSyncListPermissionResponse.md) ### Authorization @@ -5230,7 +5230,7 @@ Name | Type | Description | Notes ## ListSyncMap -> PreviewSyncServiceSyncMapReadResponse ListSyncMap(ctx, ServiceSid, optional) +> ListSyncMapResponse ListSyncMap(ctx, ServiceSid, optional) @@ -5255,7 +5255,7 @@ Name | Type | Description | Notes ### Return type -[**PreviewSyncServiceSyncMapReadResponse**](preview_sync_service_sync_mapReadResponse.md) +[**ListSyncMapResponse**](ListSyncMapResponse.md) ### Authorization @@ -5273,7 +5273,7 @@ Name | Type | Description | Notes ## ListSyncMapItem -> PreviewSyncServiceSyncMapSyncMapItemReadResponse ListSyncMapItem(ctx, ServiceSid, MapSid, optional) +> ListSyncMapItemResponse ListSyncMapItem(ctx, ServiceSid, MapSid, optional) @@ -5303,7 +5303,7 @@ Name | Type | Description | Notes ### Return type -[**PreviewSyncServiceSyncMapSyncMapItemReadResponse**](preview_sync_service_sync_map_sync_map_itemReadResponse.md) +[**ListSyncMapItemResponse**](ListSyncMapItemResponse.md) ### Authorization @@ -5321,7 +5321,7 @@ Name | Type | Description | Notes ## ListSyncMapPermission -> PreviewSyncServiceSyncMapSyncMapPermissionReadResponse ListSyncMapPermission(ctx, ServiceSid, MapSid, optional) +> ListSyncMapPermissionResponse ListSyncMapPermission(ctx, ServiceSid, MapSid, optional) @@ -5350,7 +5350,7 @@ Name | Type | Description | Notes ### Return type -[**PreviewSyncServiceSyncMapSyncMapPermissionReadResponse**](preview_sync_service_sync_map_sync_map_permissionReadResponse.md) +[**ListSyncMapPermissionResponse**](ListSyncMapPermissionResponse.md) ### Authorization @@ -5368,7 +5368,7 @@ Name | Type | Description | Notes ## ListTask -> PreviewUnderstandAssistantTaskReadResponse ListTask(ctx, AssistantSid, optional) +> ListTaskResponse ListTask(ctx, AssistantSid, optional) @@ -5393,7 +5393,7 @@ Name | Type | Description | Notes ### Return type -[**PreviewUnderstandAssistantTaskReadResponse**](preview_understand_assistant_taskReadResponse.md) +[**ListTaskResponse**](ListTaskResponse.md) ### Authorization @@ -5853,7 +5853,7 @@ Update a specific Export Configuration. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**ResourceType** | **string**| The type of communication – Messages, Calls | +**ResourceType** | **string**| The type of communication – Messages, Calls, Conferences, and Participants | **optional** | ***UpdateExportConfigurationOpts** | optional parameters | nil if no parameters ### Optional Parameters diff --git a/rest/preview/docs/PreviewUnderstandAssistantReadResponse.md b/rest/preview/docs/ListAssistantResponse.md similarity index 68% rename from rest/preview/docs/PreviewUnderstandAssistantReadResponse.md rename to rest/preview/docs/ListAssistantResponse.md index 6ded2f200..db79d2936 100644 --- a/rest/preview/docs/PreviewUnderstandAssistantReadResponse.md +++ b/rest/preview/docs/ListAssistantResponse.md @@ -1,11 +1,11 @@ -# PreviewUnderstandAssistantReadResponse +# ListAssistantResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Assistants** | [**[]PreviewUnderstandAssistant**](preview.understand.assistant.md) | | [optional] -**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Meta** | [**ListDayResponseMeta**](ListDayResponse_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/rest/preview/docs/PreviewHostedNumbersAuthorizationDocumentReadResponse.md b/rest/preview/docs/ListAuthorizationDocumentResponse.md similarity index 68% rename from rest/preview/docs/PreviewHostedNumbersAuthorizationDocumentReadResponse.md rename to rest/preview/docs/ListAuthorizationDocumentResponse.md index 559c9979e..5fa512135 100644 --- a/rest/preview/docs/PreviewHostedNumbersAuthorizationDocumentReadResponse.md +++ b/rest/preview/docs/ListAuthorizationDocumentResponse.md @@ -1,11 +1,11 @@ -# PreviewHostedNumbersAuthorizationDocumentReadResponse +# ListAuthorizationDocumentResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Items** | [**[]PreviewHostedNumbersAuthorizationDocument**](preview.hosted_numbers.authorization_document.md) | | [optional] -**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Meta** | [**ListDayResponseMeta**](ListDayResponse_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/rest/preview/docs/PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse.md b/rest/preview/docs/ListAvailableAddOnExtensionResponse.md similarity index 68% rename from rest/preview/docs/PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse.md rename to rest/preview/docs/ListAvailableAddOnExtensionResponse.md index f7907e91b..630bb20a3 100644 --- a/rest/preview/docs/PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse.md +++ b/rest/preview/docs/ListAvailableAddOnExtensionResponse.md @@ -1,11 +1,11 @@ -# PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse +# ListAvailableAddOnExtensionResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Extensions** | [**[]PreviewMarketplaceAvailableAddOnAvailableAddOnExtension**](preview.marketplace.available_add_on.available_add_on_extension.md) | | [optional] -**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Meta** | [**ListDayResponseMeta**](ListDayResponse_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/rest/preview/docs/PreviewMarketplaceAvailableAddOnReadResponse.md b/rest/preview/docs/ListAvailableAddOnResponse.md similarity index 69% rename from rest/preview/docs/PreviewMarketplaceAvailableAddOnReadResponse.md rename to rest/preview/docs/ListAvailableAddOnResponse.md index 7237cd09a..c4afd9359 100644 --- a/rest/preview/docs/PreviewMarketplaceAvailableAddOnReadResponse.md +++ b/rest/preview/docs/ListAvailableAddOnResponse.md @@ -1,11 +1,11 @@ -# PreviewMarketplaceAvailableAddOnReadResponse +# ListAvailableAddOnResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AvailableAddOns** | [**[]PreviewMarketplaceAvailableAddOn**](preview.marketplace.available_add_on.md) | | [optional] -**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Meta** | [**ListDayResponseMeta**](ListDayResponse_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/rest/preview/docs/PreviewDeployedDevicesFleetCertificateReadResponse.md b/rest/preview/docs/ListCertificateResponse.md similarity index 68% rename from rest/preview/docs/PreviewDeployedDevicesFleetCertificateReadResponse.md rename to rest/preview/docs/ListCertificateResponse.md index 3ebea19de..09b4c24d3 100644 --- a/rest/preview/docs/PreviewDeployedDevicesFleetCertificateReadResponse.md +++ b/rest/preview/docs/ListCertificateResponse.md @@ -1,11 +1,11 @@ -# PreviewDeployedDevicesFleetCertificateReadResponse +# ListCertificateResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Certificates** | [**[]PreviewDeployedDevicesFleetCertificate**](preview.deployed_devices.fleet.certificate.md) | | [optional] -**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Meta** | [**ListDayResponseMeta**](ListDayResponse_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/rest/preview/docs/PreviewWirelessCommandReadResponse.md b/rest/preview/docs/ListCommandResponse.md similarity index 68% rename from rest/preview/docs/PreviewWirelessCommandReadResponse.md rename to rest/preview/docs/ListCommandResponse.md index fd599f96c..90885e325 100644 --- a/rest/preview/docs/PreviewWirelessCommandReadResponse.md +++ b/rest/preview/docs/ListCommandResponse.md @@ -1,11 +1,11 @@ -# PreviewWirelessCommandReadResponse +# ListCommandResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Commands** | [**[]PreviewWirelessCommand**](preview.wireless.command.md) | | [optional] -**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Meta** | [**ListDayResponseMeta**](ListDayResponse_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/rest/preview/docs/PreviewBulkExportsExportDayReadResponse.md b/rest/preview/docs/ListDayResponse.md similarity index 68% rename from rest/preview/docs/PreviewBulkExportsExportDayReadResponse.md rename to rest/preview/docs/ListDayResponse.md index 99c5d07ab..83986ef44 100644 --- a/rest/preview/docs/PreviewBulkExportsExportDayReadResponse.md +++ b/rest/preview/docs/ListDayResponse.md @@ -1,11 +1,11 @@ -# PreviewBulkExportsExportDayReadResponse +# ListDayResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Days** | [**[]PreviewBulkExportsExportDay**](preview.bulk_exports.export.day.md) | | [optional] -**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Meta** | [**ListDayResponseMeta**](ListDayResponse_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/rest/preview/docs/ListDayResponseMeta.md b/rest/preview/docs/ListDayResponseMeta.md new file mode 100644 index 000000000..a08156e33 --- /dev/null +++ b/rest/preview/docs/ListDayResponseMeta.md @@ -0,0 +1,17 @@ +# ListDayResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/preview/docs/PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse.md b/rest/preview/docs/ListDependentHostedNumberOrderResponse.md similarity index 68% rename from rest/preview/docs/PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse.md rename to rest/preview/docs/ListDependentHostedNumberOrderResponse.md index 2f4a14245..fceabd070 100644 --- a/rest/preview/docs/PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse.md +++ b/rest/preview/docs/ListDependentHostedNumberOrderResponse.md @@ -1,11 +1,11 @@ -# PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse +# ListDependentHostedNumberOrderResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Items** | [**[]PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrder**](preview.hosted_numbers.authorization_document.dependent_hosted_number_order.md) | | [optional] -**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Meta** | [**ListDayResponseMeta**](ListDayResponse_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/rest/preview/docs/PreviewDeployedDevicesFleetDeploymentReadResponse.md b/rest/preview/docs/ListDeploymentResponse.md similarity index 68% rename from rest/preview/docs/PreviewDeployedDevicesFleetDeploymentReadResponse.md rename to rest/preview/docs/ListDeploymentResponse.md index f2a76797b..41a071449 100644 --- a/rest/preview/docs/PreviewDeployedDevicesFleetDeploymentReadResponse.md +++ b/rest/preview/docs/ListDeploymentResponse.md @@ -1,11 +1,11 @@ -# PreviewDeployedDevicesFleetDeploymentReadResponse +# ListDeploymentResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Deployments** | [**[]PreviewDeployedDevicesFleetDeployment**](preview.deployed_devices.fleet.deployment.md) | | [optional] -**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Meta** | [**ListDayResponseMeta**](ListDayResponse_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/rest/preview/docs/PreviewDeployedDevicesFleetDeviceReadResponse.md b/rest/preview/docs/ListDeviceResponse.md similarity index 68% rename from rest/preview/docs/PreviewDeployedDevicesFleetDeviceReadResponse.md rename to rest/preview/docs/ListDeviceResponse.md index 333e3483d..db93ec28c 100644 --- a/rest/preview/docs/PreviewDeployedDevicesFleetDeviceReadResponse.md +++ b/rest/preview/docs/ListDeviceResponse.md @@ -1,11 +1,11 @@ -# PreviewDeployedDevicesFleetDeviceReadResponse +# ListDeviceResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Devices** | [**[]PreviewDeployedDevicesFleetDevice**](preview.deployed_devices.fleet.device.md) | | [optional] -**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Meta** | [**ListDayResponseMeta**](ListDayResponse_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/rest/preview/docs/PreviewSyncServiceDocumentDocumentPermissionReadResponse.md b/rest/preview/docs/ListDocumentPermissionResponse.md similarity index 68% rename from rest/preview/docs/PreviewSyncServiceDocumentDocumentPermissionReadResponse.md rename to rest/preview/docs/ListDocumentPermissionResponse.md index 8ebb8c995..4540188c2 100644 --- a/rest/preview/docs/PreviewSyncServiceDocumentDocumentPermissionReadResponse.md +++ b/rest/preview/docs/ListDocumentPermissionResponse.md @@ -1,10 +1,10 @@ -# PreviewSyncServiceDocumentDocumentPermissionReadResponse +# ListDocumentPermissionResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Meta** | [**ListDayResponseMeta**](ListDayResponse_meta.md) | | [optional] **Permissions** | [**[]PreviewSyncServiceDocumentDocumentPermission**](preview.sync.service.document.document_permission.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/rest/preview/docs/PreviewSyncServiceDocumentReadResponse.md b/rest/preview/docs/ListDocumentResponse.md similarity index 68% rename from rest/preview/docs/PreviewSyncServiceDocumentReadResponse.md rename to rest/preview/docs/ListDocumentResponse.md index d5dec3683..b06a62ce5 100644 --- a/rest/preview/docs/PreviewSyncServiceDocumentReadResponse.md +++ b/rest/preview/docs/ListDocumentResponse.md @@ -1,11 +1,11 @@ -# PreviewSyncServiceDocumentReadResponse +# ListDocumentResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Documents** | [**[]PreviewSyncServiceDocument**](preview.sync.service.document.md) | | [optional] -**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Meta** | [**ListDayResponseMeta**](ListDayResponse_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/rest/preview/docs/PreviewBulkExportsExportExportCustomJobReadResponse.md b/rest/preview/docs/ListExportCustomJobResponse.md similarity index 68% rename from rest/preview/docs/PreviewBulkExportsExportExportCustomJobReadResponse.md rename to rest/preview/docs/ListExportCustomJobResponse.md index b3e1d7fa1..db09ad8b2 100644 --- a/rest/preview/docs/PreviewBulkExportsExportExportCustomJobReadResponse.md +++ b/rest/preview/docs/ListExportCustomJobResponse.md @@ -1,11 +1,11 @@ -# PreviewBulkExportsExportExportCustomJobReadResponse +# ListExportCustomJobResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Jobs** | [**[]PreviewBulkExportsExportExportCustomJob**](preview.bulk_exports.export.export_custom_job.md) | | [optional] -**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Meta** | [**ListDayResponseMeta**](ListDayResponse_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/rest/preview/docs/PreviewUnderstandAssistantTaskFieldReadResponse.md b/rest/preview/docs/ListFieldResponse.md similarity index 68% rename from rest/preview/docs/PreviewUnderstandAssistantTaskFieldReadResponse.md rename to rest/preview/docs/ListFieldResponse.md index 16d325695..2640fa028 100644 --- a/rest/preview/docs/PreviewUnderstandAssistantTaskFieldReadResponse.md +++ b/rest/preview/docs/ListFieldResponse.md @@ -1,11 +1,11 @@ -# PreviewUnderstandAssistantTaskFieldReadResponse +# ListFieldResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Fields** | [**[]PreviewUnderstandAssistantTaskField**](preview.understand.assistant.task.field.md) | | [optional] -**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Meta** | [**ListDayResponseMeta**](ListDayResponse_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/rest/preview/docs/PreviewUnderstandAssistantFieldTypeReadResponse.md b/rest/preview/docs/ListFieldTypeResponse.md similarity index 68% rename from rest/preview/docs/PreviewUnderstandAssistantFieldTypeReadResponse.md rename to rest/preview/docs/ListFieldTypeResponse.md index 5154f3b5c..3f18eaba7 100644 --- a/rest/preview/docs/PreviewUnderstandAssistantFieldTypeReadResponse.md +++ b/rest/preview/docs/ListFieldTypeResponse.md @@ -1,11 +1,11 @@ -# PreviewUnderstandAssistantFieldTypeReadResponse +# ListFieldTypeResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FieldTypes** | [**[]PreviewUnderstandAssistantFieldType**](preview.understand.assistant.field_type.md) | | [optional] -**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Meta** | [**ListDayResponseMeta**](ListDayResponse_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/rest/preview/docs/PreviewUnderstandAssistantFieldTypeFieldValueReadResponse.md b/rest/preview/docs/ListFieldValueResponse.md similarity index 68% rename from rest/preview/docs/PreviewUnderstandAssistantFieldTypeFieldValueReadResponse.md rename to rest/preview/docs/ListFieldValueResponse.md index 9dac794e2..a58d5fe79 100644 --- a/rest/preview/docs/PreviewUnderstandAssistantFieldTypeFieldValueReadResponse.md +++ b/rest/preview/docs/ListFieldValueResponse.md @@ -1,11 +1,11 @@ -# PreviewUnderstandAssistantFieldTypeFieldValueReadResponse +# ListFieldValueResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FieldValues** | [**[]PreviewUnderstandAssistantFieldTypeFieldValue**](preview.understand.assistant.field_type.field_value.md) | | [optional] -**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Meta** | [**ListDayResponseMeta**](ListDayResponse_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/rest/preview/docs/PreviewDeployedDevicesFleetReadResponse.md b/rest/preview/docs/ListFleetResponse.md similarity index 68% rename from rest/preview/docs/PreviewDeployedDevicesFleetReadResponse.md rename to rest/preview/docs/ListFleetResponse.md index ff17a0e6d..35273b5c9 100644 --- a/rest/preview/docs/PreviewDeployedDevicesFleetReadResponse.md +++ b/rest/preview/docs/ListFleetResponse.md @@ -1,11 +1,11 @@ -# PreviewDeployedDevicesFleetReadResponse +# ListFleetResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Fleets** | [**[]PreviewDeployedDevicesFleet**](preview.deployed_devices.fleet.md) | | [optional] -**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Meta** | [**ListDayResponseMeta**](ListDayResponse_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/rest/preview/docs/PreviewHostedNumbersHostedNumberOrderReadResponse.md b/rest/preview/docs/ListHostedNumberOrderResponse.md similarity index 68% rename from rest/preview/docs/PreviewHostedNumbersHostedNumberOrderReadResponse.md rename to rest/preview/docs/ListHostedNumberOrderResponse.md index 5399e58db..f135a7e4c 100644 --- a/rest/preview/docs/PreviewHostedNumbersHostedNumberOrderReadResponse.md +++ b/rest/preview/docs/ListHostedNumberOrderResponse.md @@ -1,11 +1,11 @@ -# PreviewHostedNumbersHostedNumberOrderReadResponse +# ListHostedNumberOrderResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Items** | [**[]PreviewHostedNumbersHostedNumberOrder**](preview.hosted_numbers.hosted_number_order.md) | | [optional] -**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Meta** | [**ListDayResponseMeta**](ListDayResponse_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/rest/preview/docs/PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse.md b/rest/preview/docs/ListInstalledAddOnExtensionResponse.md similarity index 68% rename from rest/preview/docs/PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse.md rename to rest/preview/docs/ListInstalledAddOnExtensionResponse.md index a9f594378..4b127811e 100644 --- a/rest/preview/docs/PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse.md +++ b/rest/preview/docs/ListInstalledAddOnExtensionResponse.md @@ -1,11 +1,11 @@ -# PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse +# ListInstalledAddOnExtensionResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Extensions** | [**[]PreviewMarketplaceInstalledAddOnInstalledAddOnExtension**](preview.marketplace.installed_add_on.installed_add_on_extension.md) | | [optional] -**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Meta** | [**ListDayResponseMeta**](ListDayResponse_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/rest/preview/docs/PreviewMarketplaceInstalledAddOnReadResponse.md b/rest/preview/docs/ListInstalledAddOnResponse.md similarity index 69% rename from rest/preview/docs/PreviewMarketplaceInstalledAddOnReadResponse.md rename to rest/preview/docs/ListInstalledAddOnResponse.md index 918963171..21ae690b9 100644 --- a/rest/preview/docs/PreviewMarketplaceInstalledAddOnReadResponse.md +++ b/rest/preview/docs/ListInstalledAddOnResponse.md @@ -1,11 +1,11 @@ -# PreviewMarketplaceInstalledAddOnReadResponse +# ListInstalledAddOnResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **InstalledAddOns** | [**[]PreviewMarketplaceInstalledAddOn**](preview.marketplace.installed_add_on.md) | | [optional] -**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Meta** | [**ListDayResponseMeta**](ListDayResponse_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/rest/preview/docs/PreviewDeployedDevicesFleetKeyReadResponse.md b/rest/preview/docs/ListKeyResponse.md similarity index 68% rename from rest/preview/docs/PreviewDeployedDevicesFleetKeyReadResponse.md rename to rest/preview/docs/ListKeyResponse.md index 148d80145..68fda17d9 100644 --- a/rest/preview/docs/PreviewDeployedDevicesFleetKeyReadResponse.md +++ b/rest/preview/docs/ListKeyResponse.md @@ -1,11 +1,11 @@ -# PreviewDeployedDevicesFleetKeyReadResponse +# ListKeyResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Keys** | [**[]PreviewDeployedDevicesFleetKey**](preview.deployed_devices.fleet.key.md) | | [optional] -**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Meta** | [**ListDayResponseMeta**](ListDayResponse_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/rest/preview/docs/PreviewUnderstandAssistantModelBuildReadResponse.md b/rest/preview/docs/ListModelBuildResponse.md similarity index 68% rename from rest/preview/docs/PreviewUnderstandAssistantModelBuildReadResponse.md rename to rest/preview/docs/ListModelBuildResponse.md index 4c4270fc4..6ae6cae02 100644 --- a/rest/preview/docs/PreviewUnderstandAssistantModelBuildReadResponse.md +++ b/rest/preview/docs/ListModelBuildResponse.md @@ -1,10 +1,10 @@ -# PreviewUnderstandAssistantModelBuildReadResponse +# ListModelBuildResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Meta** | [**ListDayResponseMeta**](ListDayResponse_meta.md) | | [optional] **ModelBuilds** | [**[]PreviewUnderstandAssistantModelBuild**](preview.understand.assistant.model_build.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/rest/preview/docs/PreviewUnderstandAssistantQueryReadResponse.md b/rest/preview/docs/ListQueryResponse.md similarity index 68% rename from rest/preview/docs/PreviewUnderstandAssistantQueryReadResponse.md rename to rest/preview/docs/ListQueryResponse.md index d91fd4f95..1afb44f27 100644 --- a/rest/preview/docs/PreviewUnderstandAssistantQueryReadResponse.md +++ b/rest/preview/docs/ListQueryResponse.md @@ -1,10 +1,10 @@ -# PreviewUnderstandAssistantQueryReadResponse +# ListQueryResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Meta** | [**ListDayResponseMeta**](ListDayResponse_meta.md) | | [optional] **Queries** | [**[]PreviewUnderstandAssistantQuery**](preview.understand.assistant.query.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/rest/preview/docs/PreviewWirelessRatePlanReadResponse.md b/rest/preview/docs/ListRatePlanResponse.md similarity index 68% rename from rest/preview/docs/PreviewWirelessRatePlanReadResponse.md rename to rest/preview/docs/ListRatePlanResponse.md index 08b638bc0..9cece3ed2 100644 --- a/rest/preview/docs/PreviewWirelessRatePlanReadResponse.md +++ b/rest/preview/docs/ListRatePlanResponse.md @@ -1,10 +1,10 @@ -# PreviewWirelessRatePlanReadResponse +# ListRatePlanResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Meta** | [**ListDayResponseMeta**](ListDayResponse_meta.md) | | [optional] **RatePlans** | [**[]PreviewWirelessRatePlan**](preview.wireless.rate_plan.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/rest/preview/docs/PreviewUnderstandAssistantTaskSampleReadResponse.md b/rest/preview/docs/ListSampleResponse.md similarity index 68% rename from rest/preview/docs/PreviewUnderstandAssistantTaskSampleReadResponse.md rename to rest/preview/docs/ListSampleResponse.md index 6f0743ade..dacc723e3 100644 --- a/rest/preview/docs/PreviewUnderstandAssistantTaskSampleReadResponse.md +++ b/rest/preview/docs/ListSampleResponse.md @@ -1,10 +1,10 @@ -# PreviewUnderstandAssistantTaskSampleReadResponse +# ListSampleResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Meta** | [**ListDayResponseMeta**](ListDayResponse_meta.md) | | [optional] **Samples** | [**[]PreviewUnderstandAssistantTaskSample**](preview.understand.assistant.task.sample.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/rest/preview/docs/PreviewSyncServiceReadResponse.md b/rest/preview/docs/ListServiceResponse.md similarity index 68% rename from rest/preview/docs/PreviewSyncServiceReadResponse.md rename to rest/preview/docs/ListServiceResponse.md index a3fc51fa3..a13726075 100644 --- a/rest/preview/docs/PreviewSyncServiceReadResponse.md +++ b/rest/preview/docs/ListServiceResponse.md @@ -1,10 +1,10 @@ -# PreviewSyncServiceReadResponse +# ListServiceResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Meta** | [**ListDayResponseMeta**](ListDayResponse_meta.md) | | [optional] **Services** | [**[]PreviewSyncService**](preview.sync.service.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/rest/preview/docs/PreviewWirelessSimReadResponse.md b/rest/preview/docs/ListSimResponse.md similarity index 68% rename from rest/preview/docs/PreviewWirelessSimReadResponse.md rename to rest/preview/docs/ListSimResponse.md index faf7cba42..b544601b2 100644 --- a/rest/preview/docs/PreviewWirelessSimReadResponse.md +++ b/rest/preview/docs/ListSimResponse.md @@ -1,10 +1,10 @@ -# PreviewWirelessSimReadResponse +# ListSimResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Meta** | [**ListDayResponseMeta**](ListDayResponse_meta.md) | | [optional] **Sims** | [**[]PreviewWirelessSim**](preview.wireless.sim.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/rest/preview/docs/PreviewSyncServiceSyncListSyncListItemReadResponse.md b/rest/preview/docs/ListSyncListItemResponse.md similarity index 68% rename from rest/preview/docs/PreviewSyncServiceSyncListSyncListItemReadResponse.md rename to rest/preview/docs/ListSyncListItemResponse.md index de71d7e29..9dd7d9e37 100644 --- a/rest/preview/docs/PreviewSyncServiceSyncListSyncListItemReadResponse.md +++ b/rest/preview/docs/ListSyncListItemResponse.md @@ -1,11 +1,11 @@ -# PreviewSyncServiceSyncListSyncListItemReadResponse +# ListSyncListItemResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Items** | [**[]PreviewSyncServiceSyncListSyncListItem**](preview.sync.service.sync_list.sync_list_item.md) | | [optional] -**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Meta** | [**ListDayResponseMeta**](ListDayResponse_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/rest/preview/docs/PreviewSyncServiceSyncListSyncListPermissionReadResponse.md b/rest/preview/docs/ListSyncListPermissionResponse.md similarity index 68% rename from rest/preview/docs/PreviewSyncServiceSyncListSyncListPermissionReadResponse.md rename to rest/preview/docs/ListSyncListPermissionResponse.md index 01289624a..32d905fd9 100644 --- a/rest/preview/docs/PreviewSyncServiceSyncListSyncListPermissionReadResponse.md +++ b/rest/preview/docs/ListSyncListPermissionResponse.md @@ -1,10 +1,10 @@ -# PreviewSyncServiceSyncListSyncListPermissionReadResponse +# ListSyncListPermissionResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Meta** | [**ListDayResponseMeta**](ListDayResponse_meta.md) | | [optional] **Permissions** | [**[]PreviewSyncServiceSyncListSyncListPermission**](preview.sync.service.sync_list.sync_list_permission.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/rest/preview/docs/PreviewSyncServiceSyncListReadResponse.md b/rest/preview/docs/ListSyncListResponse.md similarity index 68% rename from rest/preview/docs/PreviewSyncServiceSyncListReadResponse.md rename to rest/preview/docs/ListSyncListResponse.md index 7e157ece1..67f5c2818 100644 --- a/rest/preview/docs/PreviewSyncServiceSyncListReadResponse.md +++ b/rest/preview/docs/ListSyncListResponse.md @@ -1,11 +1,11 @@ -# PreviewSyncServiceSyncListReadResponse +# ListSyncListResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Lists** | [**[]PreviewSyncServiceSyncList**](preview.sync.service.sync_list.md) | | [optional] -**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Meta** | [**ListDayResponseMeta**](ListDayResponse_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/rest/preview/docs/PreviewSyncServiceSyncMapSyncMapItemReadResponse.md b/rest/preview/docs/ListSyncMapItemResponse.md similarity index 68% rename from rest/preview/docs/PreviewSyncServiceSyncMapSyncMapItemReadResponse.md rename to rest/preview/docs/ListSyncMapItemResponse.md index 513514112..6bee3a0c8 100644 --- a/rest/preview/docs/PreviewSyncServiceSyncMapSyncMapItemReadResponse.md +++ b/rest/preview/docs/ListSyncMapItemResponse.md @@ -1,11 +1,11 @@ -# PreviewSyncServiceSyncMapSyncMapItemReadResponse +# ListSyncMapItemResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Items** | [**[]PreviewSyncServiceSyncMapSyncMapItem**](preview.sync.service.sync_map.sync_map_item.md) | | [optional] -**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Meta** | [**ListDayResponseMeta**](ListDayResponse_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/rest/preview/docs/PreviewSyncServiceSyncMapSyncMapPermissionReadResponse.md b/rest/preview/docs/ListSyncMapPermissionResponse.md similarity index 68% rename from rest/preview/docs/PreviewSyncServiceSyncMapSyncMapPermissionReadResponse.md rename to rest/preview/docs/ListSyncMapPermissionResponse.md index c4b123b5d..d308e623b 100644 --- a/rest/preview/docs/PreviewSyncServiceSyncMapSyncMapPermissionReadResponse.md +++ b/rest/preview/docs/ListSyncMapPermissionResponse.md @@ -1,10 +1,10 @@ -# PreviewSyncServiceSyncMapSyncMapPermissionReadResponse +# ListSyncMapPermissionResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Meta** | [**ListDayResponseMeta**](ListDayResponse_meta.md) | | [optional] **Permissions** | [**[]PreviewSyncServiceSyncMapSyncMapPermission**](preview.sync.service.sync_map.sync_map_permission.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/rest/preview/docs/PreviewSyncServiceSyncMapReadResponse.md b/rest/preview/docs/ListSyncMapResponse.md similarity index 68% rename from rest/preview/docs/PreviewSyncServiceSyncMapReadResponse.md rename to rest/preview/docs/ListSyncMapResponse.md index ebddd8f49..a928d3bfd 100644 --- a/rest/preview/docs/PreviewSyncServiceSyncMapReadResponse.md +++ b/rest/preview/docs/ListSyncMapResponse.md @@ -1,11 +1,11 @@ -# PreviewSyncServiceSyncMapReadResponse +# ListSyncMapResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Maps** | [**[]PreviewSyncServiceSyncMap**](preview.sync.service.sync_map.md) | | [optional] -**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Meta** | [**ListDayResponseMeta**](ListDayResponse_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/rest/preview/docs/PreviewUnderstandAssistantTaskReadResponse.md b/rest/preview/docs/ListTaskResponse.md similarity index 68% rename from rest/preview/docs/PreviewUnderstandAssistantTaskReadResponse.md rename to rest/preview/docs/ListTaskResponse.md index 754ab8500..0da86a0de 100644 --- a/rest/preview/docs/PreviewUnderstandAssistantTaskReadResponse.md +++ b/rest/preview/docs/ListTaskResponse.md @@ -1,10 +1,10 @@ -# PreviewUnderstandAssistantTaskReadResponse +# ListTaskResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**PreviewBulkExportsExportDayReadResponseMeta**](preview_bulk_exports_export_dayReadResponse_meta.md) | | [optional] +**Meta** | [**ListDayResponseMeta**](ListDayResponse_meta.md) | | [optional] **Tasks** | [**[]PreviewUnderstandAssistantTask**](preview.understand.assistant.task.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/rest/preview/docs/PreviewBulkExportsExportDayReadResponseMeta.md b/rest/preview/docs/PreviewBulkExportsExportDayReadResponseMeta.md deleted file mode 100644 index 1d4bebaf6..000000000 --- a/rest/preview/docs/PreviewBulkExportsExportDayReadResponseMeta.md +++ /dev/null @@ -1,17 +0,0 @@ -# PreviewBulkExportsExportDayReadResponseMeta - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FirstPageUrl** | **string** | | [optional] -**Key** | **string** | | [optional] -**NextPageUrl** | **string** | | [optional] -**Page** | **int32** | | [optional] -**PageSize** | **int32** | | [optional] -**PreviousPageUrl** | **string** | | [optional] -**Url** | **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/rest/preview/model_create_assistant_request.go b/rest/preview/model_create_assistant_request.go index 1705a8f4f..d8ac8c8d6 100644 --- a/rest/preview/model_create_assistant_request.go +++ b/rest/preview/model_create_assistant_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_create_authorization_document_request.go b/rest/preview/model_create_authorization_document_request.go index 6b142daa8..fc470f2fc 100644 --- a/rest/preview/model_create_authorization_document_request.go +++ b/rest/preview/model_create_authorization_document_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_create_certificate_request.go b/rest/preview/model_create_certificate_request.go index b5d05c17f..96aff8b69 100644 --- a/rest/preview/model_create_certificate_request.go +++ b/rest/preview/model_create_certificate_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_create_channel_request.go b/rest/preview/model_create_channel_request.go index fe05e3480..d61dd2806 100644 --- a/rest/preview/model_create_channel_request.go +++ b/rest/preview/model_create_channel_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_create_command_request.go b/rest/preview/model_create_command_request.go index 207aae2bb..fbc77eb0d 100644 --- a/rest/preview/model_create_command_request.go +++ b/rest/preview/model_create_command_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_create_deployment_request.go b/rest/preview/model_create_deployment_request.go index 9d3330f7d..cadd86a4d 100644 --- a/rest/preview/model_create_deployment_request.go +++ b/rest/preview/model_create_deployment_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_create_device_request.go b/rest/preview/model_create_device_request.go index 7edae9356..4aa549ade 100644 --- a/rest/preview/model_create_device_request.go +++ b/rest/preview/model_create_device_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_create_document_request.go b/rest/preview/model_create_document_request.go index 659fbebf1..a9cb7f83d 100644 --- a/rest/preview/model_create_document_request.go +++ b/rest/preview/model_create_document_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_create_export_custom_job_request.go b/rest/preview/model_create_export_custom_job_request.go index 74142c76a..a39cc6b4b 100644 --- a/rest/preview/model_create_export_custom_job_request.go +++ b/rest/preview/model_create_export_custom_job_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_create_field_request.go b/rest/preview/model_create_field_request.go index 5f6fbb3b2..13eb0ebef 100644 --- a/rest/preview/model_create_field_request.go +++ b/rest/preview/model_create_field_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_create_field_type_request.go b/rest/preview/model_create_field_type_request.go index ef52fbe95..abac087ea 100644 --- a/rest/preview/model_create_field_type_request.go +++ b/rest/preview/model_create_field_type_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_create_field_value_request.go b/rest/preview/model_create_field_value_request.go index 7370b4497..c8858a736 100644 --- a/rest/preview/model_create_field_value_request.go +++ b/rest/preview/model_create_field_value_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_create_fleet_request.go b/rest/preview/model_create_fleet_request.go index dfb7e7949..a3a047094 100644 --- a/rest/preview/model_create_fleet_request.go +++ b/rest/preview/model_create_fleet_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_create_hosted_number_order_request.go b/rest/preview/model_create_hosted_number_order_request.go index de1dd5688..422f73537 100644 --- a/rest/preview/model_create_hosted_number_order_request.go +++ b/rest/preview/model_create_hosted_number_order_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_create_installed_add_on_request.go b/rest/preview/model_create_installed_add_on_request.go index c96a090d8..37f091c36 100644 --- a/rest/preview/model_create_installed_add_on_request.go +++ b/rest/preview/model_create_installed_add_on_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_create_key_request.go b/rest/preview/model_create_key_request.go index a11f37a01..0c9b2835b 100644 --- a/rest/preview/model_create_key_request.go +++ b/rest/preview/model_create_key_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_create_model_build_request.go b/rest/preview/model_create_model_build_request.go index 6d1d05c05..68b5b9bf8 100644 --- a/rest/preview/model_create_model_build_request.go +++ b/rest/preview/model_create_model_build_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_create_query_request.go b/rest/preview/model_create_query_request.go index 44bc28855..d03b6b0e6 100644 --- a/rest/preview/model_create_query_request.go +++ b/rest/preview/model_create_query_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_create_rate_plan_request.go b/rest/preview/model_create_rate_plan_request.go index 9d5a6de52..b7bdc85ea 100644 --- a/rest/preview/model_create_rate_plan_request.go +++ b/rest/preview/model_create_rate_plan_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_create_sample_request.go b/rest/preview/model_create_sample_request.go index 5a7fc6767..0327f03c4 100644 --- a/rest/preview/model_create_sample_request.go +++ b/rest/preview/model_create_sample_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_create_service_request.go b/rest/preview/model_create_service_request.go index b74b3131f..c97a5de90 100644 --- a/rest/preview/model_create_service_request.go +++ b/rest/preview/model_create_service_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_create_sync_list_item_request.go b/rest/preview/model_create_sync_list_item_request.go index 9a0b64b0a..d6f9cb6a1 100644 --- a/rest/preview/model_create_sync_list_item_request.go +++ b/rest/preview/model_create_sync_list_item_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_create_sync_list_request.go b/rest/preview/model_create_sync_list_request.go index b88855cd7..94e873700 100644 --- a/rest/preview/model_create_sync_list_request.go +++ b/rest/preview/model_create_sync_list_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_create_sync_map_item_request.go b/rest/preview/model_create_sync_map_item_request.go index f3a4060c8..c7d027ac1 100644 --- a/rest/preview/model_create_sync_map_item_request.go +++ b/rest/preview/model_create_sync_map_item_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_create_sync_map_request.go b/rest/preview/model_create_sync_map_request.go index dde6a3402..9390113d5 100644 --- a/rest/preview/model_create_sync_map_request.go +++ b/rest/preview/model_create_sync_map_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_create_task_request.go b/rest/preview/model_create_task_request.go index c9510f9eb..e536c7a76 100644 --- a/rest/preview/model_create_task_request.go +++ b/rest/preview/model_create_task_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_understand_assistant_read_response.go b/rest/preview/model_list_assistant_response.go similarity index 51% rename from rest/preview/model_preview_understand_assistant_read_response.go rename to rest/preview/model_list_assistant_response.go index 943a37f01..7e6fbac20 100644 --- a/rest/preview/model_preview_understand_assistant_read_response.go +++ b/rest/preview/model_list_assistant_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// PreviewUnderstandAssistantReadResponse struct for PreviewUnderstandAssistantReadResponse -type PreviewUnderstandAssistantReadResponse struct { +// ListAssistantResponse struct for ListAssistantResponse +type ListAssistantResponse struct { Assistants []PreviewUnderstandAssistant `json:"Assistants,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` + Meta ListDayResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/preview/model_list_authorization_document_response.go b/rest/preview/model_list_authorization_document_response.go new file mode 100644 index 000000000..db72d646b --- /dev/null +++ b/rest/preview/model_list_authorization_document_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListAuthorizationDocumentResponse struct for ListAuthorizationDocumentResponse +type ListAuthorizationDocumentResponse struct { + Items []PreviewHostedNumbersAuthorizationDocument `json:"Items,omitempty"` + Meta ListDayResponseMeta `json:"Meta,omitempty"` +} diff --git a/rest/preview/model_list_available_add_on_extension_response.go b/rest/preview/model_list_available_add_on_extension_response.go new file mode 100644 index 000000000..45c6d49e0 --- /dev/null +++ b/rest/preview/model_list_available_add_on_extension_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListAvailableAddOnExtensionResponse struct for ListAvailableAddOnExtensionResponse +type ListAvailableAddOnExtensionResponse struct { + Extensions []PreviewMarketplaceAvailableAddOnAvailableAddOnExtension `json:"Extensions,omitempty"` + Meta ListDayResponseMeta `json:"Meta,omitempty"` +} diff --git a/rest/preview/model_preview_marketplace_available_add_on_read_response.go b/rest/preview/model_list_available_add_on_response.go similarity index 51% rename from rest/preview/model_preview_marketplace_available_add_on_read_response.go rename to rest/preview/model_list_available_add_on_response.go index b540059ce..5bc3af990 100644 --- a/rest/preview/model_preview_marketplace_available_add_on_read_response.go +++ b/rest/preview/model_list_available_add_on_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// PreviewMarketplaceAvailableAddOnReadResponse struct for PreviewMarketplaceAvailableAddOnReadResponse -type PreviewMarketplaceAvailableAddOnReadResponse struct { +// ListAvailableAddOnResponse struct for ListAvailableAddOnResponse +type ListAvailableAddOnResponse struct { AvailableAddOns []PreviewMarketplaceAvailableAddOn `json:"AvailableAddOns,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` + Meta ListDayResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/preview/model_list_certificate_response.go b/rest/preview/model_list_certificate_response.go new file mode 100644 index 000000000..c04b3fa77 --- /dev/null +++ b/rest/preview/model_list_certificate_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListCertificateResponse struct for ListCertificateResponse +type ListCertificateResponse struct { + Certificates []PreviewDeployedDevicesFleetCertificate `json:"Certificates,omitempty"` + Meta ListDayResponseMeta `json:"Meta,omitempty"` +} diff --git a/rest/preview/model_preview_wireless_command_read_response.go b/rest/preview/model_list_command_response.go similarity index 52% rename from rest/preview/model_preview_wireless_command_read_response.go rename to rest/preview/model_list_command_response.go index b1cbafca8..8c0484918 100644 --- a/rest/preview/model_preview_wireless_command_read_response.go +++ b/rest/preview/model_list_command_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// PreviewWirelessCommandReadResponse struct for PreviewWirelessCommandReadResponse -type PreviewWirelessCommandReadResponse struct { +// ListCommandResponse struct for ListCommandResponse +type ListCommandResponse struct { Commands []PreviewWirelessCommand `json:"Commands,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` + Meta ListDayResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/preview/model_preview_bulk_exports_export_day_read_response.go b/rest/preview/model_list_day_response.go similarity index 50% rename from rest/preview/model_preview_bulk_exports_export_day_read_response.go rename to rest/preview/model_list_day_response.go index 278338209..77b10b31f 100644 --- a/rest/preview/model_preview_bulk_exports_export_day_read_response.go +++ b/rest/preview/model_list_day_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// PreviewBulkExportsExportDayReadResponse struct for PreviewBulkExportsExportDayReadResponse -type PreviewBulkExportsExportDayReadResponse struct { +// ListDayResponse struct for ListDayResponse +type ListDayResponse struct { Days []PreviewBulkExportsExportDay `json:"Days,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` + Meta ListDayResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/preview/model_list_day_response_meta.go b/rest/preview/model_list_day_response_meta.go new file mode 100644 index 000000000..a03ae6e23 --- /dev/null +++ b/rest/preview/model_list_day_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListDayResponseMeta struct for ListDayResponseMeta +type ListDayResponseMeta struct { + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` +} diff --git a/rest/preview/model_list_dependent_hosted_number_order_response.go b/rest/preview/model_list_dependent_hosted_number_order_response.go new file mode 100644 index 000000000..b533601ad --- /dev/null +++ b/rest/preview/model_list_dependent_hosted_number_order_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListDependentHostedNumberOrderResponse struct for ListDependentHostedNumberOrderResponse +type ListDependentHostedNumberOrderResponse struct { + Items []PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrder `json:"Items,omitempty"` + Meta ListDayResponseMeta `json:"Meta,omitempty"` +} diff --git a/rest/preview/model_list_deployment_response.go b/rest/preview/model_list_deployment_response.go new file mode 100644 index 000000000..a8b51da86 --- /dev/null +++ b/rest/preview/model_list_deployment_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListDeploymentResponse struct for ListDeploymentResponse +type ListDeploymentResponse struct { + Deployments []PreviewDeployedDevicesFleetDeployment `json:"Deployments,omitempty"` + Meta ListDayResponseMeta `json:"Meta,omitempty"` +} diff --git a/rest/preview/model_list_device_response.go b/rest/preview/model_list_device_response.go new file mode 100644 index 000000000..c7ad84649 --- /dev/null +++ b/rest/preview/model_list_device_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListDeviceResponse struct for ListDeviceResponse +type ListDeviceResponse struct { + Devices []PreviewDeployedDevicesFleetDevice `json:"Devices,omitempty"` + Meta ListDayResponseMeta `json:"Meta,omitempty"` +} diff --git a/rest/preview/model_list_document_permission_response.go b/rest/preview/model_list_document_permission_response.go new file mode 100644 index 000000000..203f27cd0 --- /dev/null +++ b/rest/preview/model_list_document_permission_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListDocumentPermissionResponse struct for ListDocumentPermissionResponse +type ListDocumentPermissionResponse struct { + Meta ListDayResponseMeta `json:"Meta,omitempty"` + Permissions []PreviewSyncServiceDocumentDocumentPermission `json:"Permissions,omitempty"` +} diff --git a/rest/preview/model_preview_sync_service_document_read_response.go b/rest/preview/model_list_document_response.go similarity index 51% rename from rest/preview/model_preview_sync_service_document_read_response.go rename to rest/preview/model_list_document_response.go index c05b75737..6a8b7e60e 100644 --- a/rest/preview/model_preview_sync_service_document_read_response.go +++ b/rest/preview/model_list_document_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// PreviewSyncServiceDocumentReadResponse struct for PreviewSyncServiceDocumentReadResponse -type PreviewSyncServiceDocumentReadResponse struct { +// ListDocumentResponse struct for ListDocumentResponse +type ListDocumentResponse struct { Documents []PreviewSyncServiceDocument `json:"Documents,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` + Meta ListDayResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/preview/model_list_export_custom_job_response.go b/rest/preview/model_list_export_custom_job_response.go new file mode 100644 index 000000000..b409de3ad --- /dev/null +++ b/rest/preview/model_list_export_custom_job_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListExportCustomJobResponse struct for ListExportCustomJobResponse +type ListExportCustomJobResponse struct { + Jobs []PreviewBulkExportsExportExportCustomJob `json:"Jobs,omitempty"` + Meta ListDayResponseMeta `json:"Meta,omitempty"` +} diff --git a/rest/preview/model_list_field_response.go b/rest/preview/model_list_field_response.go new file mode 100644 index 000000000..413c6c182 --- /dev/null +++ b/rest/preview/model_list_field_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListFieldResponse struct for ListFieldResponse +type ListFieldResponse struct { + Fields []PreviewUnderstandAssistantTaskField `json:"Fields,omitempty"` + Meta ListDayResponseMeta `json:"Meta,omitempty"` +} diff --git a/rest/preview/model_preview_understand_assistant_field_type_read_response.go b/rest/preview/model_list_field_type_response.go similarity index 50% rename from rest/preview/model_preview_understand_assistant_field_type_read_response.go rename to rest/preview/model_list_field_type_response.go index d63514eba..00b858090 100644 --- a/rest/preview/model_preview_understand_assistant_field_type_read_response.go +++ b/rest/preview/model_list_field_type_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// PreviewUnderstandAssistantFieldTypeReadResponse struct for PreviewUnderstandAssistantFieldTypeReadResponse -type PreviewUnderstandAssistantFieldTypeReadResponse struct { +// ListFieldTypeResponse struct for ListFieldTypeResponse +type ListFieldTypeResponse struct { FieldTypes []PreviewUnderstandAssistantFieldType `json:"FieldTypes,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` + Meta ListDayResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/preview/model_list_field_value_response.go b/rest/preview/model_list_field_value_response.go new file mode 100644 index 000000000..214cc9336 --- /dev/null +++ b/rest/preview/model_list_field_value_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListFieldValueResponse struct for ListFieldValueResponse +type ListFieldValueResponse struct { + FieldValues []PreviewUnderstandAssistantFieldTypeFieldValue `json:"FieldValues,omitempty"` + Meta ListDayResponseMeta `json:"Meta,omitempty"` +} diff --git a/rest/preview/model_preview_deployed_devices_fleet_read_response.go b/rest/preview/model_list_fleet_response.go similarity index 50% rename from rest/preview/model_preview_deployed_devices_fleet_read_response.go rename to rest/preview/model_list_fleet_response.go index 9d491a207..4a9cfe905 100644 --- a/rest/preview/model_preview_deployed_devices_fleet_read_response.go +++ b/rest/preview/model_list_fleet_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// PreviewDeployedDevicesFleetReadResponse struct for PreviewDeployedDevicesFleetReadResponse -type PreviewDeployedDevicesFleetReadResponse struct { +// ListFleetResponse struct for ListFleetResponse +type ListFleetResponse struct { Fleets []PreviewDeployedDevicesFleet `json:"Fleets,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` + Meta ListDayResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/preview/model_list_hosted_number_order_response.go b/rest/preview/model_list_hosted_number_order_response.go new file mode 100644 index 000000000..6b07e3b81 --- /dev/null +++ b/rest/preview/model_list_hosted_number_order_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListHostedNumberOrderResponse struct for ListHostedNumberOrderResponse +type ListHostedNumberOrderResponse struct { + Items []PreviewHostedNumbersHostedNumberOrder `json:"Items,omitempty"` + Meta ListDayResponseMeta `json:"Meta,omitempty"` +} diff --git a/rest/preview/model_list_installed_add_on_extension_response.go b/rest/preview/model_list_installed_add_on_extension_response.go new file mode 100644 index 000000000..92ec77283 --- /dev/null +++ b/rest/preview/model_list_installed_add_on_extension_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListInstalledAddOnExtensionResponse struct for ListInstalledAddOnExtensionResponse +type ListInstalledAddOnExtensionResponse struct { + Extensions []PreviewMarketplaceInstalledAddOnInstalledAddOnExtension `json:"Extensions,omitempty"` + Meta ListDayResponseMeta `json:"Meta,omitempty"` +} diff --git a/rest/preview/model_preview_marketplace_installed_add_on_read_response.go b/rest/preview/model_list_installed_add_on_response.go similarity index 51% rename from rest/preview/model_preview_marketplace_installed_add_on_read_response.go rename to rest/preview/model_list_installed_add_on_response.go index e3f7d85ab..115375605 100644 --- a/rest/preview/model_preview_marketplace_installed_add_on_read_response.go +++ b/rest/preview/model_list_installed_add_on_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// PreviewMarketplaceInstalledAddOnReadResponse struct for PreviewMarketplaceInstalledAddOnReadResponse -type PreviewMarketplaceInstalledAddOnReadResponse struct { +// ListInstalledAddOnResponse struct for ListInstalledAddOnResponse +type ListInstalledAddOnResponse struct { InstalledAddOns []PreviewMarketplaceInstalledAddOn `json:"InstalledAddOns,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` + Meta ListDayResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/preview/model_list_key_response.go b/rest/preview/model_list_key_response.go new file mode 100644 index 000000000..475b3a712 --- /dev/null +++ b/rest/preview/model_list_key_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListKeyResponse struct for ListKeyResponse +type ListKeyResponse struct { + Keys []PreviewDeployedDevicesFleetKey `json:"Keys,omitempty"` + Meta ListDayResponseMeta `json:"Meta,omitempty"` +} diff --git a/rest/preview/model_preview_understand_assistant_model_build_read_response.go b/rest/preview/model_list_model_build_response.go similarity index 50% rename from rest/preview/model_preview_understand_assistant_model_build_read_response.go rename to rest/preview/model_list_model_build_response.go index 52876b980..8ac3f60f2 100644 --- a/rest/preview/model_preview_understand_assistant_model_build_read_response.go +++ b/rest/preview/model_list_model_build_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// PreviewUnderstandAssistantModelBuildReadResponse struct for PreviewUnderstandAssistantModelBuildReadResponse -type PreviewUnderstandAssistantModelBuildReadResponse struct { - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` +// ListModelBuildResponse struct for ListModelBuildResponse +type ListModelBuildResponse struct { + Meta ListDayResponseMeta `json:"Meta,omitempty"` ModelBuilds []PreviewUnderstandAssistantModelBuild `json:"ModelBuilds,omitempty"` } diff --git a/rest/preview/model_preview_understand_assistant_query_read_response.go b/rest/preview/model_list_query_response.go similarity index 50% rename from rest/preview/model_preview_understand_assistant_query_read_response.go rename to rest/preview/model_list_query_response.go index 0b9e004af..2e371adca 100644 --- a/rest/preview/model_preview_understand_assistant_query_read_response.go +++ b/rest/preview/model_list_query_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// PreviewUnderstandAssistantQueryReadResponse struct for PreviewUnderstandAssistantQueryReadResponse -type PreviewUnderstandAssistantQueryReadResponse struct { - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` +// ListQueryResponse struct for ListQueryResponse +type ListQueryResponse struct { + Meta ListDayResponseMeta `json:"Meta,omitempty"` Queries []PreviewUnderstandAssistantQuery `json:"Queries,omitempty"` } diff --git a/rest/preview/model_preview_wireless_rate_plan_read_response.go b/rest/preview/model_list_rate_plan_response.go similarity index 52% rename from rest/preview/model_preview_wireless_rate_plan_read_response.go rename to rest/preview/model_list_rate_plan_response.go index bfd23e0b3..34856e4f2 100644 --- a/rest/preview/model_preview_wireless_rate_plan_read_response.go +++ b/rest/preview/model_list_rate_plan_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// PreviewWirelessRatePlanReadResponse struct for PreviewWirelessRatePlanReadResponse -type PreviewWirelessRatePlanReadResponse struct { - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` +// ListRatePlanResponse struct for ListRatePlanResponse +type ListRatePlanResponse struct { + Meta ListDayResponseMeta `json:"Meta,omitempty"` RatePlans []PreviewWirelessRatePlan `json:"RatePlans,omitempty"` } diff --git a/rest/preview/model_list_sample_response.go b/rest/preview/model_list_sample_response.go new file mode 100644 index 000000000..38b2c8eaf --- /dev/null +++ b/rest/preview/model_list_sample_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListSampleResponse struct for ListSampleResponse +type ListSampleResponse struct { + Meta ListDayResponseMeta `json:"Meta,omitempty"` + Samples []PreviewUnderstandAssistantTaskSample `json:"Samples,omitempty"` +} diff --git a/rest/preview/model_preview_sync_service_read_response.go b/rest/preview/model_list_service_response.go similarity index 53% rename from rest/preview/model_preview_sync_service_read_response.go rename to rest/preview/model_list_service_response.go index d63d9c6a9..7409b501f 100644 --- a/rest/preview/model_preview_sync_service_read_response.go +++ b/rest/preview/model_list_service_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// PreviewSyncServiceReadResponse struct for PreviewSyncServiceReadResponse -type PreviewSyncServiceReadResponse struct { - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` +// ListServiceResponse struct for ListServiceResponse +type ListServiceResponse struct { + Meta ListDayResponseMeta `json:"Meta,omitempty"` Services []PreviewSyncService `json:"Services,omitempty"` } diff --git a/rest/preview/model_preview_wireless_sim_read_response.go b/rest/preview/model_list_sim_response.go similarity index 52% rename from rest/preview/model_preview_wireless_sim_read_response.go rename to rest/preview/model_list_sim_response.go index b28fa2657..a3be42bc4 100644 --- a/rest/preview/model_preview_wireless_sim_read_response.go +++ b/rest/preview/model_list_sim_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// PreviewWirelessSimReadResponse struct for PreviewWirelessSimReadResponse -type PreviewWirelessSimReadResponse struct { - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` +// ListSimResponse struct for ListSimResponse +type ListSimResponse struct { + Meta ListDayResponseMeta `json:"Meta,omitempty"` Sims []PreviewWirelessSim `json:"Sims,omitempty"` } diff --git a/rest/preview/model_list_sync_list_item_response.go b/rest/preview/model_list_sync_list_item_response.go new file mode 100644 index 000000000..9e6564399 --- /dev/null +++ b/rest/preview/model_list_sync_list_item_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListSyncListItemResponse struct for ListSyncListItemResponse +type ListSyncListItemResponse struct { + Items []PreviewSyncServiceSyncListSyncListItem `json:"Items,omitempty"` + Meta ListDayResponseMeta `json:"Meta,omitempty"` +} diff --git a/rest/preview/model_list_sync_list_permission_response.go b/rest/preview/model_list_sync_list_permission_response.go new file mode 100644 index 000000000..95b04a6a8 --- /dev/null +++ b/rest/preview/model_list_sync_list_permission_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListSyncListPermissionResponse struct for ListSyncListPermissionResponse +type ListSyncListPermissionResponse struct { + Meta ListDayResponseMeta `json:"Meta,omitempty"` + Permissions []PreviewSyncServiceSyncListSyncListPermission `json:"Permissions,omitempty"` +} diff --git a/rest/preview/model_preview_sync_service_sync_list_read_response.go b/rest/preview/model_list_sync_list_response.go similarity index 50% rename from rest/preview/model_preview_sync_service_sync_list_read_response.go rename to rest/preview/model_list_sync_list_response.go index 12e788ace..50ee6d553 100644 --- a/rest/preview/model_preview_sync_service_sync_list_read_response.go +++ b/rest/preview/model_list_sync_list_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// PreviewSyncServiceSyncListReadResponse struct for PreviewSyncServiceSyncListReadResponse -type PreviewSyncServiceSyncListReadResponse struct { +// ListSyncListResponse struct for ListSyncListResponse +type ListSyncListResponse struct { Lists []PreviewSyncServiceSyncList `json:"Lists,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` + Meta ListDayResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/preview/model_list_sync_map_item_response.go b/rest/preview/model_list_sync_map_item_response.go new file mode 100644 index 000000000..2de7426cb --- /dev/null +++ b/rest/preview/model_list_sync_map_item_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListSyncMapItemResponse struct for ListSyncMapItemResponse +type ListSyncMapItemResponse struct { + Items []PreviewSyncServiceSyncMapSyncMapItem `json:"Items,omitempty"` + Meta ListDayResponseMeta `json:"Meta,omitempty"` +} diff --git a/rest/preview/model_list_sync_map_permission_response.go b/rest/preview/model_list_sync_map_permission_response.go new file mode 100644 index 000000000..61e77c863 --- /dev/null +++ b/rest/preview/model_list_sync_map_permission_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Preview + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListSyncMapPermissionResponse struct for ListSyncMapPermissionResponse +type ListSyncMapPermissionResponse struct { + Meta ListDayResponseMeta `json:"Meta,omitempty"` + Permissions []PreviewSyncServiceSyncMapSyncMapPermission `json:"Permissions,omitempty"` +} diff --git a/rest/preview/model_preview_sync_service_sync_map_read_response.go b/rest/preview/model_list_sync_map_response.go similarity index 50% rename from rest/preview/model_preview_sync_service_sync_map_read_response.go rename to rest/preview/model_list_sync_map_response.go index 2e9390ba0..9ca00b68d 100644 --- a/rest/preview/model_preview_sync_service_sync_map_read_response.go +++ b/rest/preview/model_list_sync_map_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// PreviewSyncServiceSyncMapReadResponse struct for PreviewSyncServiceSyncMapReadResponse -type PreviewSyncServiceSyncMapReadResponse struct { +// ListSyncMapResponse struct for ListSyncMapResponse +type ListSyncMapResponse struct { Maps []PreviewSyncServiceSyncMap `json:"Maps,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` + Meta ListDayResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/preview/model_preview_understand_assistant_task_read_response.go b/rest/preview/model_list_task_response.go similarity index 50% rename from rest/preview/model_preview_understand_assistant_task_read_response.go rename to rest/preview/model_list_task_response.go index 311a9e489..836767c7b 100644 --- a/rest/preview/model_preview_understand_assistant_task_read_response.go +++ b/rest/preview/model_list_task_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// PreviewUnderstandAssistantTaskReadResponse struct for PreviewUnderstandAssistantTaskReadResponse -type PreviewUnderstandAssistantTaskReadResponse struct { - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` +// ListTaskResponse struct for ListTaskResponse +type ListTaskResponse struct { + Meta ListDayResponseMeta `json:"Meta,omitempty"` Tasks []PreviewUnderstandAssistantTask `json:"Tasks,omitempty"` } diff --git a/rest/preview/model_preview_bulk_exports_export.go b/rest/preview/model_preview_bulk_exports_export.go index b9ae53b0c..faf26c0f6 100644 --- a/rest/preview/model_preview_bulk_exports_export.go +++ b/rest/preview/model_preview_bulk_exports_export.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_bulk_exports_export_configuration.go b/rest/preview/model_preview_bulk_exports_export_configuration.go index d5c228d4f..96b937fbd 100644 --- a/rest/preview/model_preview_bulk_exports_export_configuration.go +++ b/rest/preview/model_preview_bulk_exports_export_configuration.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_bulk_exports_export_day.go b/rest/preview/model_preview_bulk_exports_export_day.go index 188e1572a..9fab3032d 100644 --- a/rest/preview/model_preview_bulk_exports_export_day.go +++ b/rest/preview/model_preview_bulk_exports_export_day.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_bulk_exports_export_day_instance.go b/rest/preview/model_preview_bulk_exports_export_day_instance.go index 3476d89ef..2cacf26d7 100644 --- a/rest/preview/model_preview_bulk_exports_export_day_instance.go +++ b/rest/preview/model_preview_bulk_exports_export_day_instance.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_bulk_exports_export_day_read_response_meta.go b/rest/preview/model_preview_bulk_exports_export_day_read_response_meta.go deleted file mode 100644 index c80f43017..000000000 --- a/rest/preview/model_preview_bulk_exports_export_day_read_response_meta.go +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Twilio - Preview - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// PreviewBulkExportsExportDayReadResponseMeta struct for PreviewBulkExportsExportDayReadResponseMeta -type PreviewBulkExportsExportDayReadResponseMeta struct { - FirstPageUrl string `json:"FirstPageUrl,omitempty"` - Key string `json:"Key,omitempty"` - NextPageUrl string `json:"NextPageUrl,omitempty"` - Page int32 `json:"Page,omitempty"` - PageSize int32 `json:"PageSize,omitempty"` - PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` - Url string `json:"Url,omitempty"` -} diff --git a/rest/preview/model_preview_bulk_exports_export_export_custom_job.go b/rest/preview/model_preview_bulk_exports_export_export_custom_job.go index bbae9d52e..2d5d74d05 100644 --- a/rest/preview/model_preview_bulk_exports_export_export_custom_job.go +++ b/rest/preview/model_preview_bulk_exports_export_export_custom_job.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_bulk_exports_export_export_custom_job_read_response.go b/rest/preview/model_preview_bulk_exports_export_export_custom_job_read_response.go deleted file mode 100644 index 21a25de99..000000000 --- a/rest/preview/model_preview_bulk_exports_export_export_custom_job_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Preview - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// PreviewBulkExportsExportExportCustomJobReadResponse struct for PreviewBulkExportsExportExportCustomJobReadResponse -type PreviewBulkExportsExportExportCustomJobReadResponse struct { - Jobs []PreviewBulkExportsExportExportCustomJob `json:"Jobs,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` -} diff --git a/rest/preview/model_preview_bulk_exports_export_job.go b/rest/preview/model_preview_bulk_exports_export_job.go index f15b3528a..4e9838170 100644 --- a/rest/preview/model_preview_bulk_exports_export_job.go +++ b/rest/preview/model_preview_bulk_exports_export_job.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_deployed_devices_fleet.go b/rest/preview/model_preview_deployed_devices_fleet.go index 1c2cdb7ac..d05a4cd02 100644 --- a/rest/preview/model_preview_deployed_devices_fleet.go +++ b/rest/preview/model_preview_deployed_devices_fleet.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_deployed_devices_fleet_certificate.go b/rest/preview/model_preview_deployed_devices_fleet_certificate.go index a903435db..156392c6c 100644 --- a/rest/preview/model_preview_deployed_devices_fleet_certificate.go +++ b/rest/preview/model_preview_deployed_devices_fleet_certificate.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_deployed_devices_fleet_certificate_read_response.go b/rest/preview/model_preview_deployed_devices_fleet_certificate_read_response.go deleted file mode 100644 index 4c23ea040..000000000 --- a/rest/preview/model_preview_deployed_devices_fleet_certificate_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Preview - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// PreviewDeployedDevicesFleetCertificateReadResponse struct for PreviewDeployedDevicesFleetCertificateReadResponse -type PreviewDeployedDevicesFleetCertificateReadResponse struct { - Certificates []PreviewDeployedDevicesFleetCertificate `json:"Certificates,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` -} diff --git a/rest/preview/model_preview_deployed_devices_fleet_deployment.go b/rest/preview/model_preview_deployed_devices_fleet_deployment.go index 2e728711a..7d805a8f6 100644 --- a/rest/preview/model_preview_deployed_devices_fleet_deployment.go +++ b/rest/preview/model_preview_deployed_devices_fleet_deployment.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_deployed_devices_fleet_deployment_read_response.go b/rest/preview/model_preview_deployed_devices_fleet_deployment_read_response.go deleted file mode 100644 index 2ebb10964..000000000 --- a/rest/preview/model_preview_deployed_devices_fleet_deployment_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Preview - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// PreviewDeployedDevicesFleetDeploymentReadResponse struct for PreviewDeployedDevicesFleetDeploymentReadResponse -type PreviewDeployedDevicesFleetDeploymentReadResponse struct { - Deployments []PreviewDeployedDevicesFleetDeployment `json:"Deployments,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` -} diff --git a/rest/preview/model_preview_deployed_devices_fleet_device.go b/rest/preview/model_preview_deployed_devices_fleet_device.go index dad069420..a5030ee22 100644 --- a/rest/preview/model_preview_deployed_devices_fleet_device.go +++ b/rest/preview/model_preview_deployed_devices_fleet_device.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_deployed_devices_fleet_device_read_response.go b/rest/preview/model_preview_deployed_devices_fleet_device_read_response.go deleted file mode 100644 index f02905d84..000000000 --- a/rest/preview/model_preview_deployed_devices_fleet_device_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Preview - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// PreviewDeployedDevicesFleetDeviceReadResponse struct for PreviewDeployedDevicesFleetDeviceReadResponse -type PreviewDeployedDevicesFleetDeviceReadResponse struct { - Devices []PreviewDeployedDevicesFleetDevice `json:"Devices,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` -} diff --git a/rest/preview/model_preview_deployed_devices_fleet_key.go b/rest/preview/model_preview_deployed_devices_fleet_key.go index 853bab8b0..8d6d1baee 100644 --- a/rest/preview/model_preview_deployed_devices_fleet_key.go +++ b/rest/preview/model_preview_deployed_devices_fleet_key.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_deployed_devices_fleet_key_read_response.go b/rest/preview/model_preview_deployed_devices_fleet_key_read_response.go deleted file mode 100644 index 46fb308b6..000000000 --- a/rest/preview/model_preview_deployed_devices_fleet_key_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Preview - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// PreviewDeployedDevicesFleetKeyReadResponse struct for PreviewDeployedDevicesFleetKeyReadResponse -type PreviewDeployedDevicesFleetKeyReadResponse struct { - Keys []PreviewDeployedDevicesFleetKey `json:"Keys,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` -} diff --git a/rest/preview/model_preview_hosted_numbers_authorization_document.go b/rest/preview/model_preview_hosted_numbers_authorization_document.go index 26cae524f..53e4ec1cc 100644 --- a/rest/preview/model_preview_hosted_numbers_authorization_document.go +++ b/rest/preview/model_preview_hosted_numbers_authorization_document.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_hosted_numbers_authorization_document_dependent_hosted_number_order.go b/rest/preview/model_preview_hosted_numbers_authorization_document_dependent_hosted_number_order.go index ef027dde4..45e5563ef 100644 --- a/rest/preview/model_preview_hosted_numbers_authorization_document_dependent_hosted_number_order.go +++ b/rest/preview/model_preview_hosted_numbers_authorization_document_dependent_hosted_number_order.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_hosted_numbers_authorization_document_dependent_hosted_number_order_read_response.go b/rest/preview/model_preview_hosted_numbers_authorization_document_dependent_hosted_number_order_read_response.go deleted file mode 100644 index 4d8876b61..000000000 --- a/rest/preview/model_preview_hosted_numbers_authorization_document_dependent_hosted_number_order_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Preview - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse struct for PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse -type PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrderReadResponse struct { - Items []PreviewHostedNumbersAuthorizationDocumentDependentHostedNumberOrder `json:"Items,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` -} diff --git a/rest/preview/model_preview_hosted_numbers_authorization_document_read_response.go b/rest/preview/model_preview_hosted_numbers_authorization_document_read_response.go deleted file mode 100644 index 660858d30..000000000 --- a/rest/preview/model_preview_hosted_numbers_authorization_document_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Preview - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// PreviewHostedNumbersAuthorizationDocumentReadResponse struct for PreviewHostedNumbersAuthorizationDocumentReadResponse -type PreviewHostedNumbersAuthorizationDocumentReadResponse struct { - Items []PreviewHostedNumbersAuthorizationDocument `json:"Items,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` -} diff --git a/rest/preview/model_preview_hosted_numbers_hosted_number_order.go b/rest/preview/model_preview_hosted_numbers_hosted_number_order.go index 85297edf0..428ed4d2b 100644 --- a/rest/preview/model_preview_hosted_numbers_hosted_number_order.go +++ b/rest/preview/model_preview_hosted_numbers_hosted_number_order.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_hosted_numbers_hosted_number_order_read_response.go b/rest/preview/model_preview_hosted_numbers_hosted_number_order_read_response.go deleted file mode 100644 index 640a8ace2..000000000 --- a/rest/preview/model_preview_hosted_numbers_hosted_number_order_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Preview - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// PreviewHostedNumbersHostedNumberOrderReadResponse struct for PreviewHostedNumbersHostedNumberOrderReadResponse -type PreviewHostedNumbersHostedNumberOrderReadResponse struct { - Items []PreviewHostedNumbersHostedNumberOrder `json:"Items,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` -} diff --git a/rest/preview/model_preview_marketplace_available_add_on.go b/rest/preview/model_preview_marketplace_available_add_on.go index ff5770e1a..ec5b15b53 100644 --- a/rest/preview/model_preview_marketplace_available_add_on.go +++ b/rest/preview/model_preview_marketplace_available_add_on.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_marketplace_available_add_on_available_add_on_extension.go b/rest/preview/model_preview_marketplace_available_add_on_available_add_on_extension.go index c35d0a7db..550b1b15d 100644 --- a/rest/preview/model_preview_marketplace_available_add_on_available_add_on_extension.go +++ b/rest/preview/model_preview_marketplace_available_add_on_available_add_on_extension.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_marketplace_available_add_on_available_add_on_extension_read_response.go b/rest/preview/model_preview_marketplace_available_add_on_available_add_on_extension_read_response.go deleted file mode 100644 index c40fee1cf..000000000 --- a/rest/preview/model_preview_marketplace_available_add_on_available_add_on_extension_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Preview - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse struct for PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse -type PreviewMarketplaceAvailableAddOnAvailableAddOnExtensionReadResponse struct { - Extensions []PreviewMarketplaceAvailableAddOnAvailableAddOnExtension `json:"Extensions,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` -} diff --git a/rest/preview/model_preview_marketplace_installed_add_on.go b/rest/preview/model_preview_marketplace_installed_add_on.go index c9d8feb4c..2ecafac3c 100644 --- a/rest/preview/model_preview_marketplace_installed_add_on.go +++ b/rest/preview/model_preview_marketplace_installed_add_on.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_marketplace_installed_add_on_installed_add_on_extension.go b/rest/preview/model_preview_marketplace_installed_add_on_installed_add_on_extension.go index f641d0260..2947dfa64 100644 --- a/rest/preview/model_preview_marketplace_installed_add_on_installed_add_on_extension.go +++ b/rest/preview/model_preview_marketplace_installed_add_on_installed_add_on_extension.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_marketplace_installed_add_on_installed_add_on_extension_read_response.go b/rest/preview/model_preview_marketplace_installed_add_on_installed_add_on_extension_read_response.go deleted file mode 100644 index 8b1a7895a..000000000 --- a/rest/preview/model_preview_marketplace_installed_add_on_installed_add_on_extension_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Preview - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse struct for PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse -type PreviewMarketplaceInstalledAddOnInstalledAddOnExtensionReadResponse struct { - Extensions []PreviewMarketplaceInstalledAddOnInstalledAddOnExtension `json:"Extensions,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` -} diff --git a/rest/preview/model_preview_sync_service.go b/rest/preview/model_preview_sync_service.go index 09601dc07..5268c27cd 100644 --- a/rest/preview/model_preview_sync_service.go +++ b/rest/preview/model_preview_sync_service.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_sync_service_document.go b/rest/preview/model_preview_sync_service_document.go index 8f4bf19e8..8e7bc08c4 100644 --- a/rest/preview/model_preview_sync_service_document.go +++ b/rest/preview/model_preview_sync_service_document.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_sync_service_document_document_permission.go b/rest/preview/model_preview_sync_service_document_document_permission.go index 802ebd47d..429375b90 100644 --- a/rest/preview/model_preview_sync_service_document_document_permission.go +++ b/rest/preview/model_preview_sync_service_document_document_permission.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_sync_service_document_document_permission_read_response.go b/rest/preview/model_preview_sync_service_document_document_permission_read_response.go deleted file mode 100644 index f32571c35..000000000 --- a/rest/preview/model_preview_sync_service_document_document_permission_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Preview - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// PreviewSyncServiceDocumentDocumentPermissionReadResponse struct for PreviewSyncServiceDocumentDocumentPermissionReadResponse -type PreviewSyncServiceDocumentDocumentPermissionReadResponse struct { - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` - Permissions []PreviewSyncServiceDocumentDocumentPermission `json:"Permissions,omitempty"` -} diff --git a/rest/preview/model_preview_sync_service_sync_list.go b/rest/preview/model_preview_sync_service_sync_list.go index f5007390b..1961378b2 100644 --- a/rest/preview/model_preview_sync_service_sync_list.go +++ b/rest/preview/model_preview_sync_service_sync_list.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_sync_service_sync_list_sync_list_item.go b/rest/preview/model_preview_sync_service_sync_list_sync_list_item.go index 2ec69856a..820ca323e 100644 --- a/rest/preview/model_preview_sync_service_sync_list_sync_list_item.go +++ b/rest/preview/model_preview_sync_service_sync_list_sync_list_item.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_sync_service_sync_list_sync_list_item_read_response.go b/rest/preview/model_preview_sync_service_sync_list_sync_list_item_read_response.go deleted file mode 100644 index ffa597020..000000000 --- a/rest/preview/model_preview_sync_service_sync_list_sync_list_item_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Preview - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// PreviewSyncServiceSyncListSyncListItemReadResponse struct for PreviewSyncServiceSyncListSyncListItemReadResponse -type PreviewSyncServiceSyncListSyncListItemReadResponse struct { - Items []PreviewSyncServiceSyncListSyncListItem `json:"Items,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` -} diff --git a/rest/preview/model_preview_sync_service_sync_list_sync_list_permission.go b/rest/preview/model_preview_sync_service_sync_list_sync_list_permission.go index 36e0e548d..b927ac05f 100644 --- a/rest/preview/model_preview_sync_service_sync_list_sync_list_permission.go +++ b/rest/preview/model_preview_sync_service_sync_list_sync_list_permission.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_sync_service_sync_list_sync_list_permission_read_response.go b/rest/preview/model_preview_sync_service_sync_list_sync_list_permission_read_response.go deleted file mode 100644 index e89273f79..000000000 --- a/rest/preview/model_preview_sync_service_sync_list_sync_list_permission_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Preview - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// PreviewSyncServiceSyncListSyncListPermissionReadResponse struct for PreviewSyncServiceSyncListSyncListPermissionReadResponse -type PreviewSyncServiceSyncListSyncListPermissionReadResponse struct { - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` - Permissions []PreviewSyncServiceSyncListSyncListPermission `json:"Permissions,omitempty"` -} diff --git a/rest/preview/model_preview_sync_service_sync_map.go b/rest/preview/model_preview_sync_service_sync_map.go index 67981f620..a5a676663 100644 --- a/rest/preview/model_preview_sync_service_sync_map.go +++ b/rest/preview/model_preview_sync_service_sync_map.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_sync_service_sync_map_sync_map_item.go b/rest/preview/model_preview_sync_service_sync_map_sync_map_item.go index 45efcfa34..f45063e31 100644 --- a/rest/preview/model_preview_sync_service_sync_map_sync_map_item.go +++ b/rest/preview/model_preview_sync_service_sync_map_sync_map_item.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_sync_service_sync_map_sync_map_item_read_response.go b/rest/preview/model_preview_sync_service_sync_map_sync_map_item_read_response.go deleted file mode 100644 index bb8877279..000000000 --- a/rest/preview/model_preview_sync_service_sync_map_sync_map_item_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Preview - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// PreviewSyncServiceSyncMapSyncMapItemReadResponse struct for PreviewSyncServiceSyncMapSyncMapItemReadResponse -type PreviewSyncServiceSyncMapSyncMapItemReadResponse struct { - Items []PreviewSyncServiceSyncMapSyncMapItem `json:"Items,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` -} diff --git a/rest/preview/model_preview_sync_service_sync_map_sync_map_permission.go b/rest/preview/model_preview_sync_service_sync_map_sync_map_permission.go index 5f9de926d..44ac3bf30 100644 --- a/rest/preview/model_preview_sync_service_sync_map_sync_map_permission.go +++ b/rest/preview/model_preview_sync_service_sync_map_sync_map_permission.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_sync_service_sync_map_sync_map_permission_read_response.go b/rest/preview/model_preview_sync_service_sync_map_sync_map_permission_read_response.go deleted file mode 100644 index 7db298085..000000000 --- a/rest/preview/model_preview_sync_service_sync_map_sync_map_permission_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Preview - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// PreviewSyncServiceSyncMapSyncMapPermissionReadResponse struct for PreviewSyncServiceSyncMapSyncMapPermissionReadResponse -type PreviewSyncServiceSyncMapSyncMapPermissionReadResponse struct { - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` - Permissions []PreviewSyncServiceSyncMapSyncMapPermission `json:"Permissions,omitempty"` -} diff --git a/rest/preview/model_preview_trusted_comms_branded_channel.go b/rest/preview/model_preview_trusted_comms_branded_channel.go index f42358f46..83b0af740 100644 --- a/rest/preview/model_preview_trusted_comms_branded_channel.go +++ b/rest/preview/model_preview_trusted_comms_branded_channel.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_trusted_comms_branded_channel_channel.go b/rest/preview/model_preview_trusted_comms_branded_channel_channel.go index 9214354b9..86fc32199 100644 --- a/rest/preview/model_preview_trusted_comms_branded_channel_channel.go +++ b/rest/preview/model_preview_trusted_comms_branded_channel_channel.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_trusted_comms_brands_information.go b/rest/preview/model_preview_trusted_comms_brands_information.go index 5ecf7e5e8..e9f7e6bc2 100644 --- a/rest/preview/model_preview_trusted_comms_brands_information.go +++ b/rest/preview/model_preview_trusted_comms_brands_information.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_trusted_comms_cps.go b/rest/preview/model_preview_trusted_comms_cps.go index c790b752f..d3397fdc4 100644 --- a/rest/preview/model_preview_trusted_comms_cps.go +++ b/rest/preview/model_preview_trusted_comms_cps.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_trusted_comms_current_call.go b/rest/preview/model_preview_trusted_comms_current_call.go index 9508706b7..dc56552c3 100644 --- a/rest/preview/model_preview_trusted_comms_current_call.go +++ b/rest/preview/model_preview_trusted_comms_current_call.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_understand_assistant.go b/rest/preview/model_preview_understand_assistant.go index 1bc3053ef..fa8ff100c 100644 --- a/rest/preview/model_preview_understand_assistant.go +++ b/rest/preview/model_preview_understand_assistant.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_understand_assistant_assistant_fallback_actions.go b/rest/preview/model_preview_understand_assistant_assistant_fallback_actions.go index 65dcfce80..6ba6e340d 100644 --- a/rest/preview/model_preview_understand_assistant_assistant_fallback_actions.go +++ b/rest/preview/model_preview_understand_assistant_assistant_fallback_actions.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_understand_assistant_assistant_initiation_actions.go b/rest/preview/model_preview_understand_assistant_assistant_initiation_actions.go index 976079662..0cebb7620 100644 --- a/rest/preview/model_preview_understand_assistant_assistant_initiation_actions.go +++ b/rest/preview/model_preview_understand_assistant_assistant_initiation_actions.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_understand_assistant_dialogue.go b/rest/preview/model_preview_understand_assistant_dialogue.go index 4328abb32..743bbe854 100644 --- a/rest/preview/model_preview_understand_assistant_dialogue.go +++ b/rest/preview/model_preview_understand_assistant_dialogue.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_understand_assistant_field_type.go b/rest/preview/model_preview_understand_assistant_field_type.go index d214100fd..cb3a75315 100644 --- a/rest/preview/model_preview_understand_assistant_field_type.go +++ b/rest/preview/model_preview_understand_assistant_field_type.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_understand_assistant_field_type_field_value.go b/rest/preview/model_preview_understand_assistant_field_type_field_value.go index d6ba8c32e..39c42d48e 100644 --- a/rest/preview/model_preview_understand_assistant_field_type_field_value.go +++ b/rest/preview/model_preview_understand_assistant_field_type_field_value.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_understand_assistant_field_type_field_value_read_response.go b/rest/preview/model_preview_understand_assistant_field_type_field_value_read_response.go deleted file mode 100644 index 92c0fba28..000000000 --- a/rest/preview/model_preview_understand_assistant_field_type_field_value_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Preview - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// PreviewUnderstandAssistantFieldTypeFieldValueReadResponse struct for PreviewUnderstandAssistantFieldTypeFieldValueReadResponse -type PreviewUnderstandAssistantFieldTypeFieldValueReadResponse struct { - FieldValues []PreviewUnderstandAssistantFieldTypeFieldValue `json:"FieldValues,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` -} diff --git a/rest/preview/model_preview_understand_assistant_model_build.go b/rest/preview/model_preview_understand_assistant_model_build.go index a623e6341..fff8f1998 100644 --- a/rest/preview/model_preview_understand_assistant_model_build.go +++ b/rest/preview/model_preview_understand_assistant_model_build.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_understand_assistant_query.go b/rest/preview/model_preview_understand_assistant_query.go index ef91ba16a..078c2c436 100644 --- a/rest/preview/model_preview_understand_assistant_query.go +++ b/rest/preview/model_preview_understand_assistant_query.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_understand_assistant_style_sheet.go b/rest/preview/model_preview_understand_assistant_style_sheet.go index 0b627ca8b..72ed0ce03 100644 --- a/rest/preview/model_preview_understand_assistant_style_sheet.go +++ b/rest/preview/model_preview_understand_assistant_style_sheet.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_understand_assistant_task.go b/rest/preview/model_preview_understand_assistant_task.go index 0a23bd44e..cd1ec5ecc 100644 --- a/rest/preview/model_preview_understand_assistant_task.go +++ b/rest/preview/model_preview_understand_assistant_task.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_understand_assistant_task_field.go b/rest/preview/model_preview_understand_assistant_task_field.go index 523124185..c4078a3df 100644 --- a/rest/preview/model_preview_understand_assistant_task_field.go +++ b/rest/preview/model_preview_understand_assistant_task_field.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_understand_assistant_task_field_read_response.go b/rest/preview/model_preview_understand_assistant_task_field_read_response.go deleted file mode 100644 index b55c89abd..000000000 --- a/rest/preview/model_preview_understand_assistant_task_field_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Preview - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// PreviewUnderstandAssistantTaskFieldReadResponse struct for PreviewUnderstandAssistantTaskFieldReadResponse -type PreviewUnderstandAssistantTaskFieldReadResponse struct { - Fields []PreviewUnderstandAssistantTaskField `json:"Fields,omitempty"` - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` -} diff --git a/rest/preview/model_preview_understand_assistant_task_sample.go b/rest/preview/model_preview_understand_assistant_task_sample.go index a0a05b610..22630cf10 100644 --- a/rest/preview/model_preview_understand_assistant_task_sample.go +++ b/rest/preview/model_preview_understand_assistant_task_sample.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_understand_assistant_task_sample_read_response.go b/rest/preview/model_preview_understand_assistant_task_sample_read_response.go deleted file mode 100644 index ca20065c9..000000000 --- a/rest/preview/model_preview_understand_assistant_task_sample_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Preview - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// PreviewUnderstandAssistantTaskSampleReadResponse struct for PreviewUnderstandAssistantTaskSampleReadResponse -type PreviewUnderstandAssistantTaskSampleReadResponse struct { - Meta PreviewBulkExportsExportDayReadResponseMeta `json:"Meta,omitempty"` - Samples []PreviewUnderstandAssistantTaskSample `json:"Samples,omitempty"` -} diff --git a/rest/preview/model_preview_understand_assistant_task_task_actions.go b/rest/preview/model_preview_understand_assistant_task_task_actions.go index 5764625bf..c365dc497 100644 --- a/rest/preview/model_preview_understand_assistant_task_task_actions.go +++ b/rest/preview/model_preview_understand_assistant_task_task_actions.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_understand_assistant_task_task_statistics.go b/rest/preview/model_preview_understand_assistant_task_task_statistics.go index f161d6df9..76fd42f8f 100644 --- a/rest/preview/model_preview_understand_assistant_task_task_statistics.go +++ b/rest/preview/model_preview_understand_assistant_task_task_statistics.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_wireless_command.go b/rest/preview/model_preview_wireless_command.go index ca4408a0f..e96117754 100644 --- a/rest/preview/model_preview_wireless_command.go +++ b/rest/preview/model_preview_wireless_command.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_wireless_rate_plan.go b/rest/preview/model_preview_wireless_rate_plan.go index f96be1a16..87c7ef8a7 100644 --- a/rest/preview/model_preview_wireless_rate_plan.go +++ b/rest/preview/model_preview_wireless_rate_plan.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_wireless_sim.go b/rest/preview/model_preview_wireless_sim.go index d84dfa95f..023d227ed 100644 --- a/rest/preview/model_preview_wireless_sim.go +++ b/rest/preview/model_preview_wireless_sim.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_preview_wireless_sim_usage.go b/rest/preview/model_preview_wireless_sim_usage.go index e38b155e3..aa7bbddef 100644 --- a/rest/preview/model_preview_wireless_sim_usage.go +++ b/rest/preview/model_preview_wireless_sim_usage.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_update_assistant_fallback_actions_request.go b/rest/preview/model_update_assistant_fallback_actions_request.go index 74b8093f6..0a58cf36b 100644 --- a/rest/preview/model_update_assistant_fallback_actions_request.go +++ b/rest/preview/model_update_assistant_fallback_actions_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_update_assistant_initiation_actions_request.go b/rest/preview/model_update_assistant_initiation_actions_request.go index 2ecc7aacd..414603b25 100644 --- a/rest/preview/model_update_assistant_initiation_actions_request.go +++ b/rest/preview/model_update_assistant_initiation_actions_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_update_assistant_request.go b/rest/preview/model_update_assistant_request.go index d60fe31fe..8a414ed67 100644 --- a/rest/preview/model_update_assistant_request.go +++ b/rest/preview/model_update_assistant_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_update_authorization_document_request.go b/rest/preview/model_update_authorization_document_request.go index 2832dd83d..35e4c31d6 100644 --- a/rest/preview/model_update_authorization_document_request.go +++ b/rest/preview/model_update_authorization_document_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_update_certificate_request.go b/rest/preview/model_update_certificate_request.go index 35fdc31ef..cfd2966fc 100644 --- a/rest/preview/model_update_certificate_request.go +++ b/rest/preview/model_update_certificate_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_update_deployment_request.go b/rest/preview/model_update_deployment_request.go index 9c1c90e3b..8e20797b6 100644 --- a/rest/preview/model_update_deployment_request.go +++ b/rest/preview/model_update_deployment_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_update_device_request.go b/rest/preview/model_update_device_request.go index 9ced9447c..3209f2b89 100644 --- a/rest/preview/model_update_device_request.go +++ b/rest/preview/model_update_device_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_update_document_permission_request.go b/rest/preview/model_update_document_permission_request.go index 1a203ca90..95994abf2 100644 --- a/rest/preview/model_update_document_permission_request.go +++ b/rest/preview/model_update_document_permission_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_update_document_request.go b/rest/preview/model_update_document_request.go index 850ae272d..387d006fa 100644 --- a/rest/preview/model_update_document_request.go +++ b/rest/preview/model_update_document_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_update_export_configuration_request.go b/rest/preview/model_update_export_configuration_request.go index 82084c364..6c9ab790b 100644 --- a/rest/preview/model_update_export_configuration_request.go +++ b/rest/preview/model_update_export_configuration_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_update_field_type_request.go b/rest/preview/model_update_field_type_request.go index c63393295..a03474c6a 100644 --- a/rest/preview/model_update_field_type_request.go +++ b/rest/preview/model_update_field_type_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_update_fleet_request.go b/rest/preview/model_update_fleet_request.go index c1d3c57bc..1c4697ba4 100644 --- a/rest/preview/model_update_fleet_request.go +++ b/rest/preview/model_update_fleet_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_update_hosted_number_order_request.go b/rest/preview/model_update_hosted_number_order_request.go index c6cf39073..2d1d2282d 100644 --- a/rest/preview/model_update_hosted_number_order_request.go +++ b/rest/preview/model_update_hosted_number_order_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_update_installed_add_on_extension_request.go b/rest/preview/model_update_installed_add_on_extension_request.go index 7ba7c8dea..14edd083d 100644 --- a/rest/preview/model_update_installed_add_on_extension_request.go +++ b/rest/preview/model_update_installed_add_on_extension_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_update_installed_add_on_request.go b/rest/preview/model_update_installed_add_on_request.go index e7456dee0..47f650382 100644 --- a/rest/preview/model_update_installed_add_on_request.go +++ b/rest/preview/model_update_installed_add_on_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_update_key_request.go b/rest/preview/model_update_key_request.go index f83cd6828..ec53bda47 100644 --- a/rest/preview/model_update_key_request.go +++ b/rest/preview/model_update_key_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_update_model_build_request.go b/rest/preview/model_update_model_build_request.go index 64e0fce17..04bf40fc7 100644 --- a/rest/preview/model_update_model_build_request.go +++ b/rest/preview/model_update_model_build_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_update_query_request.go b/rest/preview/model_update_query_request.go index 39af56ab4..baf0de3e1 100644 --- a/rest/preview/model_update_query_request.go +++ b/rest/preview/model_update_query_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_update_rate_plan_request.go b/rest/preview/model_update_rate_plan_request.go index a26574cf8..45f5cf040 100644 --- a/rest/preview/model_update_rate_plan_request.go +++ b/rest/preview/model_update_rate_plan_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_update_sample_request.go b/rest/preview/model_update_sample_request.go index 2c470b4ff..d0df45a12 100644 --- a/rest/preview/model_update_sample_request.go +++ b/rest/preview/model_update_sample_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_update_service_request.go b/rest/preview/model_update_service_request.go index e3ec60287..5fae90e2a 100644 --- a/rest/preview/model_update_service_request.go +++ b/rest/preview/model_update_service_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_update_sim_request.go b/rest/preview/model_update_sim_request.go index 840fcc22c..124355fc8 100644 --- a/rest/preview/model_update_sim_request.go +++ b/rest/preview/model_update_sim_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_update_style_sheet_request.go b/rest/preview/model_update_style_sheet_request.go index f10aaaeb4..a6850330c 100644 --- a/rest/preview/model_update_style_sheet_request.go +++ b/rest/preview/model_update_style_sheet_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_update_sync_list_item_request.go b/rest/preview/model_update_sync_list_item_request.go index 2124d88da..e32d9743f 100644 --- a/rest/preview/model_update_sync_list_item_request.go +++ b/rest/preview/model_update_sync_list_item_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_update_sync_list_permission_request.go b/rest/preview/model_update_sync_list_permission_request.go index ec5ce985b..f75821d07 100644 --- a/rest/preview/model_update_sync_list_permission_request.go +++ b/rest/preview/model_update_sync_list_permission_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_update_sync_map_item_request.go b/rest/preview/model_update_sync_map_item_request.go index 6c8964f4b..0dc02c9bd 100644 --- a/rest/preview/model_update_sync_map_item_request.go +++ b/rest/preview/model_update_sync_map_item_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_update_sync_map_permission_request.go b/rest/preview/model_update_sync_map_permission_request.go index 2225a8f50..7c1ad26ca 100644 --- a/rest/preview/model_update_sync_map_permission_request.go +++ b/rest/preview/model_update_sync_map_permission_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_update_task_actions_request.go b/rest/preview/model_update_task_actions_request.go index 1f4e69ac4..820b883eb 100644 --- a/rest/preview/model_update_task_actions_request.go +++ b/rest/preview/model_update_task_actions_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/model_update_task_request.go b/rest/preview/model_update_task_request.go index d06075514..4a88abb63 100644 --- a/rest/preview/model_update_task_request.go +++ b/rest/preview/model_update_task_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/preview/response.go b/rest/preview/response.go index f5b476d47..b07de78bf 100644 --- a/rest/preview/response.go +++ b/rest/preview/response.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/pricing/v1/README.md b/rest/pricing/v1/README.md index 4b2d830b4..ba0fdacd8 100644 --- a/rest/pricing/v1/README.md +++ b/rest/pricing/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 5.15.0 +- API version: 1.0.0 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) @@ -42,22 +42,22 @@ Class | Method | HTTP request | Description ## Documentation For Models + - [ListMessagingCountryResponse](docs/ListMessagingCountryResponse.md) + - [ListMessagingCountryResponseMeta](docs/ListMessagingCountryResponseMeta.md) + - [ListPhoneNumberCountryResponse](docs/ListPhoneNumberCountryResponse.md) + - [ListVoiceCountryResponse](docs/ListVoiceCountryResponse.md) - [PricingV1Messaging](docs/PricingV1Messaging.md) - [PricingV1MessagingMessagingCountry](docs/PricingV1MessagingMessagingCountry.md) - [PricingV1MessagingMessagingCountryInstance](docs/PricingV1MessagingMessagingCountryInstance.md) - [PricingV1MessagingMessagingCountryInstanceInboundSmsPrices](docs/PricingV1MessagingMessagingCountryInstanceInboundSmsPrices.md) - [PricingV1MessagingMessagingCountryInstanceOutboundSmsPrices](docs/PricingV1MessagingMessagingCountryInstanceOutboundSmsPrices.md) - - [PricingV1MessagingMessagingCountryReadResponse](docs/PricingV1MessagingMessagingCountryReadResponse.md) - - [PricingV1MessagingMessagingCountryReadResponseMeta](docs/PricingV1MessagingMessagingCountryReadResponseMeta.md) - [PricingV1PhoneNumber](docs/PricingV1PhoneNumber.md) - [PricingV1PhoneNumberPhoneNumberCountry](docs/PricingV1PhoneNumberPhoneNumberCountry.md) - [PricingV1PhoneNumberPhoneNumberCountryInstance](docs/PricingV1PhoneNumberPhoneNumberCountryInstance.md) - - [PricingV1PhoneNumberPhoneNumberCountryReadResponse](docs/PricingV1PhoneNumberPhoneNumberCountryReadResponse.md) - [PricingV1Voice](docs/PricingV1Voice.md) - [PricingV1VoiceVoiceCountry](docs/PricingV1VoiceVoiceCountry.md) - [PricingV1VoiceVoiceCountryInstance](docs/PricingV1VoiceVoiceCountryInstance.md) - [PricingV1VoiceVoiceCountryInstanceOutboundPrefixPrices](docs/PricingV1VoiceVoiceCountryInstanceOutboundPrefixPrices.md) - - [PricingV1VoiceVoiceCountryReadResponse](docs/PricingV1VoiceVoiceCountryReadResponse.md) - [PricingV1VoiceVoiceNumber](docs/PricingV1VoiceVoiceNumber.md) - [PricingV1VoiceVoiceNumberOutboundCallPrice](docs/PricingV1VoiceVoiceNumberOutboundCallPrice.md) diff --git a/rest/pricing/v1/api_default.go b/rest/pricing/v1/api_default.go index fbf0d2fdd..0f6ed48a3 100644 --- a/rest/pricing/v1/api_default.go +++ b/rest/pricing/v1/api_default.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -26,7 +26,7 @@ type DefaultApiService struct { func NewDefaultApiService(client *twilio.Client) *DefaultApiService { return &DefaultApiService { client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + baseURL: fmt.Sprintf("https://pricing.twilio.com"), } } @@ -151,16 +151,16 @@ func (c *DefaultApiService) FetchVoiceNumber(Number string) (*PricingV1VoiceVoic } // ListMessagingCountryParams Optional parameters for the method 'ListMessagingCountry' type ListMessagingCountryParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* ListMessagingCountry Method for ListMessagingCountry * @param optional nil or *ListMessagingCountryOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PricingV1MessagingMessagingCountryReadResponse +@return ListMessagingCountryResponse */ -func (c *DefaultApiService) ListMessagingCountry(params *ListMessagingCountryParams) (*PricingV1MessagingMessagingCountryReadResponse, error) { +func (c *DefaultApiService) ListMessagingCountry(params *ListMessagingCountryParams) (*ListMessagingCountryResponse, error) { path := "/v1/Messaging/Countries" @@ -179,7 +179,7 @@ func (c *DefaultApiService) ListMessagingCountry(params *ListMessagingCountryPar defer resp.Body.Close() - ps := &PricingV1MessagingMessagingCountryReadResponse{} + ps := &ListMessagingCountryResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -188,16 +188,16 @@ func (c *DefaultApiService) ListMessagingCountry(params *ListMessagingCountryPar } // ListPhoneNumberCountryParams Optional parameters for the method 'ListPhoneNumberCountry' type ListPhoneNumberCountryParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* ListPhoneNumberCountry Method for ListPhoneNumberCountry * @param optional nil or *ListPhoneNumberCountryOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PricingV1PhoneNumberPhoneNumberCountryReadResponse +@return ListPhoneNumberCountryResponse */ -func (c *DefaultApiService) ListPhoneNumberCountry(params *ListPhoneNumberCountryParams) (*PricingV1PhoneNumberPhoneNumberCountryReadResponse, error) { +func (c *DefaultApiService) ListPhoneNumberCountry(params *ListPhoneNumberCountryParams) (*ListPhoneNumberCountryResponse, error) { path := "/v1/PhoneNumbers/Countries" @@ -216,7 +216,7 @@ func (c *DefaultApiService) ListPhoneNumberCountry(params *ListPhoneNumberCountr defer resp.Body.Close() - ps := &PricingV1PhoneNumberPhoneNumberCountryReadResponse{} + ps := &ListPhoneNumberCountryResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -225,16 +225,16 @@ func (c *DefaultApiService) ListPhoneNumberCountry(params *ListPhoneNumberCountr } // ListVoiceCountryParams Optional parameters for the method 'ListVoiceCountry' type ListVoiceCountryParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* ListVoiceCountry Method for ListVoiceCountry * @param optional nil or *ListVoiceCountryOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PricingV1VoiceVoiceCountryReadResponse +@return ListVoiceCountryResponse */ -func (c *DefaultApiService) ListVoiceCountry(params *ListVoiceCountryParams) (*PricingV1VoiceVoiceCountryReadResponse, error) { +func (c *DefaultApiService) ListVoiceCountry(params *ListVoiceCountryParams) (*ListVoiceCountryResponse, error) { path := "/v1/Voice/Countries" @@ -253,7 +253,7 @@ func (c *DefaultApiService) ListVoiceCountry(params *ListVoiceCountryParams) (*P defer resp.Body.Close() - ps := &PricingV1VoiceVoiceCountryReadResponse{} + ps := &ListVoiceCountryResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/pricing/v1/docs/DefaultApi.md b/rest/pricing/v1/docs/DefaultApi.md index 27b223835..4f870afc5 100644 --- a/rest/pricing/v1/docs/DefaultApi.md +++ b/rest/pricing/v1/docs/DefaultApi.md @@ -144,7 +144,7 @@ Name | Type | Description | Notes ## ListMessagingCountry -> PricingV1MessagingMessagingCountryReadResponse ListMessagingCountry(ctx, optional) +> ListMessagingCountryResponse ListMessagingCountry(ctx, optional) @@ -167,7 +167,7 @@ Name | Type | Description | Notes ### Return type -[**PricingV1MessagingMessagingCountryReadResponse**](pricing_v1_messaging_messaging_countryReadResponse.md) +[**ListMessagingCountryResponse**](ListMessagingCountryResponse.md) ### Authorization @@ -185,7 +185,7 @@ Name | Type | Description | Notes ## ListPhoneNumberCountry -> PricingV1PhoneNumberPhoneNumberCountryReadResponse ListPhoneNumberCountry(ctx, optional) +> ListPhoneNumberCountryResponse ListPhoneNumberCountry(ctx, optional) @@ -208,7 +208,7 @@ Name | Type | Description | Notes ### Return type -[**PricingV1PhoneNumberPhoneNumberCountryReadResponse**](pricing_v1_phone_number_phone_number_countryReadResponse.md) +[**ListPhoneNumberCountryResponse**](ListPhoneNumberCountryResponse.md) ### Authorization @@ -226,7 +226,7 @@ Name | Type | Description | Notes ## ListVoiceCountry -> PricingV1VoiceVoiceCountryReadResponse ListVoiceCountry(ctx, optional) +> ListVoiceCountryResponse ListVoiceCountry(ctx, optional) @@ -249,7 +249,7 @@ Name | Type | Description | Notes ### Return type -[**PricingV1VoiceVoiceCountryReadResponse**](pricing_v1_voice_voice_countryReadResponse.md) +[**ListVoiceCountryResponse**](ListVoiceCountryResponse.md) ### Authorization diff --git a/rest/pricing/v1/docs/PricingV1MessagingMessagingCountryReadResponse.md b/rest/pricing/v1/docs/ListMessagingCountryResponse.md similarity index 67% rename from rest/pricing/v1/docs/PricingV1MessagingMessagingCountryReadResponse.md rename to rest/pricing/v1/docs/ListMessagingCountryResponse.md index b12a86477..1c51176b3 100644 --- a/rest/pricing/v1/docs/PricingV1MessagingMessagingCountryReadResponse.md +++ b/rest/pricing/v1/docs/ListMessagingCountryResponse.md @@ -1,11 +1,11 @@ -# PricingV1MessagingMessagingCountryReadResponse +# ListMessagingCountryResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Countries** | [**[]PricingV1MessagingMessagingCountry**](pricing.v1.messaging.messaging_country.md) | | [optional] -**Meta** | [**PricingV1MessagingMessagingCountryReadResponseMeta**](pricing_v1_messaging_messaging_countryReadResponse_meta.md) | | [optional] +**Meta** | [**ListMessagingCountryResponseMeta**](ListMessagingCountryResponse_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/rest/chat/v1/docs/ChatV1CredentialReadResponseMeta.md b/rest/pricing/v1/docs/ListMessagingCountryResponseMeta.md similarity index 94% rename from rest/chat/v1/docs/ChatV1CredentialReadResponseMeta.md rename to rest/pricing/v1/docs/ListMessagingCountryResponseMeta.md index 4b381d339..291fd3768 100644 --- a/rest/chat/v1/docs/ChatV1CredentialReadResponseMeta.md +++ b/rest/pricing/v1/docs/ListMessagingCountryResponseMeta.md @@ -1,4 +1,4 @@ -# ChatV1CredentialReadResponseMeta +# ListMessagingCountryResponseMeta ## Properties diff --git a/rest/pricing/v1/docs/PricingV1PhoneNumberPhoneNumberCountryReadResponse.md b/rest/pricing/v1/docs/ListPhoneNumberCountryResponse.md similarity index 67% rename from rest/pricing/v1/docs/PricingV1PhoneNumberPhoneNumberCountryReadResponse.md rename to rest/pricing/v1/docs/ListPhoneNumberCountryResponse.md index 391a54a24..bfe8574c9 100644 --- a/rest/pricing/v1/docs/PricingV1PhoneNumberPhoneNumberCountryReadResponse.md +++ b/rest/pricing/v1/docs/ListPhoneNumberCountryResponse.md @@ -1,11 +1,11 @@ -# PricingV1PhoneNumberPhoneNumberCountryReadResponse +# ListPhoneNumberCountryResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Countries** | [**[]PricingV1PhoneNumberPhoneNumberCountry**](pricing.v1.phone_number.phone_number_country.md) | | [optional] -**Meta** | [**PricingV1MessagingMessagingCountryReadResponseMeta**](pricing_v1_messaging_messaging_countryReadResponse_meta.md) | | [optional] +**Meta** | [**ListMessagingCountryResponseMeta**](ListMessagingCountryResponse_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/rest/pricing/v1/docs/PricingV1VoiceVoiceCountryReadResponse.md b/rest/pricing/v1/docs/ListVoiceCountryResponse.md similarity index 67% rename from rest/pricing/v1/docs/PricingV1VoiceVoiceCountryReadResponse.md rename to rest/pricing/v1/docs/ListVoiceCountryResponse.md index e5263b689..e9ac81ce8 100644 --- a/rest/pricing/v1/docs/PricingV1VoiceVoiceCountryReadResponse.md +++ b/rest/pricing/v1/docs/ListVoiceCountryResponse.md @@ -1,11 +1,11 @@ -# PricingV1VoiceVoiceCountryReadResponse +# ListVoiceCountryResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Countries** | [**[]PricingV1VoiceVoiceCountry**](pricing.v1.voice.voice_country.md) | | [optional] -**Meta** | [**PricingV1MessagingMessagingCountryReadResponseMeta**](pricing_v1_messaging_messaging_countryReadResponse_meta.md) | | [optional] +**Meta** | [**ListMessagingCountryResponseMeta**](ListMessagingCountryResponse_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/rest/pricing/v1/docs/PricingV1MessagingMessagingCountryReadResponseMeta.md b/rest/pricing/v1/docs/PricingV1MessagingMessagingCountryReadResponseMeta.md deleted file mode 100644 index 15dc1c58e..000000000 --- a/rest/pricing/v1/docs/PricingV1MessagingMessagingCountryReadResponseMeta.md +++ /dev/null @@ -1,17 +0,0 @@ -# PricingV1MessagingMessagingCountryReadResponseMeta - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FirstPageUrl** | **string** | | [optional] -**Key** | **string** | | [optional] -**NextPageUrl** | **string** | | [optional] -**Page** | **int32** | | [optional] -**PageSize** | **int32** | | [optional] -**PreviousPageUrl** | **string** | | [optional] -**Url** | **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/rest/pricing/v1/model_list_messaging_country_response.go b/rest/pricing/v1/model_list_messaging_country_response.go new file mode 100644 index 000000000..8ef9b8eda --- /dev/null +++ b/rest/pricing/v1/model_list_messaging_country_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Pricing + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListMessagingCountryResponse struct for ListMessagingCountryResponse +type ListMessagingCountryResponse struct { + Countries []PricingV1MessagingMessagingCountry `json:"Countries,omitempty"` + Meta ListMessagingCountryResponseMeta `json:"Meta,omitempty"` +} diff --git a/rest/pricing/v1/model_list_messaging_country_response_meta.go b/rest/pricing/v1/model_list_messaging_country_response_meta.go new file mode 100644 index 000000000..cf1a13504 --- /dev/null +++ b/rest/pricing/v1/model_list_messaging_country_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Pricing + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListMessagingCountryResponseMeta struct for ListMessagingCountryResponseMeta +type ListMessagingCountryResponseMeta struct { + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` +} diff --git a/rest/pricing/v1/model_list_phone_number_country_response.go b/rest/pricing/v1/model_list_phone_number_country_response.go new file mode 100644 index 000000000..d81d3b2ff --- /dev/null +++ b/rest/pricing/v1/model_list_phone_number_country_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Pricing + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListPhoneNumberCountryResponse struct for ListPhoneNumberCountryResponse +type ListPhoneNumberCountryResponse struct { + Countries []PricingV1PhoneNumberPhoneNumberCountry `json:"Countries,omitempty"` + Meta ListMessagingCountryResponseMeta `json:"Meta,omitempty"` +} diff --git a/rest/pricing/v1/model_pricing_v1_voice_voice_country_read_response.go b/rest/pricing/v1/model_list_voice_country_response.go similarity index 50% rename from rest/pricing/v1/model_pricing_v1_voice_voice_country_read_response.go rename to rest/pricing/v1/model_list_voice_country_response.go index ddecec73b..89750c244 100644 --- a/rest/pricing/v1/model_pricing_v1_voice_voice_country_read_response.go +++ b/rest/pricing/v1/model_list_voice_country_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// PricingV1VoiceVoiceCountryReadResponse struct for PricingV1VoiceVoiceCountryReadResponse -type PricingV1VoiceVoiceCountryReadResponse struct { +// ListVoiceCountryResponse struct for ListVoiceCountryResponse +type ListVoiceCountryResponse struct { Countries []PricingV1VoiceVoiceCountry `json:"Countries,omitempty"` - Meta PricingV1MessagingMessagingCountryReadResponseMeta `json:"Meta,omitempty"` + Meta ListMessagingCountryResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/pricing/v1/model_pricing_v1_messaging.go b/rest/pricing/v1/model_pricing_v1_messaging.go index 4949e2825..48a2fc633 100644 --- a/rest/pricing/v1/model_pricing_v1_messaging.go +++ b/rest/pricing/v1/model_pricing_v1_messaging.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/pricing/v1/model_pricing_v1_messaging_messaging_country.go b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country.go index e01cd4d3d..e8204bd4b 100644 --- a/rest/pricing/v1/model_pricing_v1_messaging_messaging_country.go +++ b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance.go b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance.go index 2f5cb753f..bf5bf0b10 100644 --- a/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance.go +++ b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance_inbound_sms_prices.go b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance_inbound_sms_prices.go index 729d4c5d8..501c107c3 100644 --- a/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance_inbound_sms_prices.go +++ b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance_inbound_sms_prices.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance_outbound_sms_prices.go b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance_outbound_sms_prices.go index 02bccf717..a8d1530c3 100644 --- a/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance_outbound_sms_prices.go +++ b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_instance_outbound_sms_prices.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_read_response.go b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_read_response.go deleted file mode 100644 index 51535c2ea..000000000 --- a/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Pricing - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// PricingV1MessagingMessagingCountryReadResponse struct for PricingV1MessagingMessagingCountryReadResponse -type PricingV1MessagingMessagingCountryReadResponse struct { - Countries []PricingV1MessagingMessagingCountry `json:"Countries,omitempty"` - Meta PricingV1MessagingMessagingCountryReadResponseMeta `json:"Meta,omitempty"` -} diff --git a/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_read_response_meta.go b/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_read_response_meta.go deleted file mode 100644 index 9e10fe609..000000000 --- a/rest/pricing/v1/model_pricing_v1_messaging_messaging_country_read_response_meta.go +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Twilio - Pricing - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// PricingV1MessagingMessagingCountryReadResponseMeta struct for PricingV1MessagingMessagingCountryReadResponseMeta -type PricingV1MessagingMessagingCountryReadResponseMeta struct { - FirstPageUrl string `json:"FirstPageUrl,omitempty"` - Key string `json:"Key,omitempty"` - NextPageUrl string `json:"NextPageUrl,omitempty"` - Page int32 `json:"Page,omitempty"` - PageSize int32 `json:"PageSize,omitempty"` - PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` - Url string `json:"Url,omitempty"` -} diff --git a/rest/pricing/v1/model_pricing_v1_phone_number.go b/rest/pricing/v1/model_pricing_v1_phone_number.go index 9aad88c5c..6cdd4c93b 100644 --- a/rest/pricing/v1/model_pricing_v1_phone_number.go +++ b/rest/pricing/v1/model_pricing_v1_phone_number.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country.go b/rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country.go index d6419c348..55739a0e1 100644 --- a/rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country.go +++ b/rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country_instance.go b/rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country_instance.go index 41aceb455..c6621f917 100644 --- a/rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country_instance.go +++ b/rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country_instance.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country_read_response.go b/rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country_read_response.go deleted file mode 100644 index 4523e4274..000000000 --- a/rest/pricing/v1/model_pricing_v1_phone_number_phone_number_country_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Pricing - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// PricingV1PhoneNumberPhoneNumberCountryReadResponse struct for PricingV1PhoneNumberPhoneNumberCountryReadResponse -type PricingV1PhoneNumberPhoneNumberCountryReadResponse struct { - Countries []PricingV1PhoneNumberPhoneNumberCountry `json:"Countries,omitempty"` - Meta PricingV1MessagingMessagingCountryReadResponseMeta `json:"Meta,omitempty"` -} diff --git a/rest/pricing/v1/model_pricing_v1_voice.go b/rest/pricing/v1/model_pricing_v1_voice.go index 786dea671..13cc5bc9a 100644 --- a/rest/pricing/v1/model_pricing_v1_voice.go +++ b/rest/pricing/v1/model_pricing_v1_voice.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/pricing/v1/model_pricing_v1_voice_voice_country.go b/rest/pricing/v1/model_pricing_v1_voice_voice_country.go index 646ae1d9a..559be1830 100644 --- a/rest/pricing/v1/model_pricing_v1_voice_voice_country.go +++ b/rest/pricing/v1/model_pricing_v1_voice_voice_country.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/pricing/v1/model_pricing_v1_voice_voice_country_instance.go b/rest/pricing/v1/model_pricing_v1_voice_voice_country_instance.go index 65b020d50..4d6630139 100644 --- a/rest/pricing/v1/model_pricing_v1_voice_voice_country_instance.go +++ b/rest/pricing/v1/model_pricing_v1_voice_voice_country_instance.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/pricing/v1/model_pricing_v1_voice_voice_country_instance_outbound_prefix_prices.go b/rest/pricing/v1/model_pricing_v1_voice_voice_country_instance_outbound_prefix_prices.go index f7e6cfaae..6366adb6f 100644 --- a/rest/pricing/v1/model_pricing_v1_voice_voice_country_instance_outbound_prefix_prices.go +++ b/rest/pricing/v1/model_pricing_v1_voice_voice_country_instance_outbound_prefix_prices.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/pricing/v1/model_pricing_v1_voice_voice_number.go b/rest/pricing/v1/model_pricing_v1_voice_voice_number.go index 34797cf98..a51327345 100644 --- a/rest/pricing/v1/model_pricing_v1_voice_voice_number.go +++ b/rest/pricing/v1/model_pricing_v1_voice_voice_number.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/pricing/v1/model_pricing_v1_voice_voice_number_outbound_call_price.go b/rest/pricing/v1/model_pricing_v1_voice_voice_number_outbound_call_price.go index 4cedb1198..0a8833eb3 100644 --- a/rest/pricing/v1/model_pricing_v1_voice_voice_number_outbound_call_price.go +++ b/rest/pricing/v1/model_pricing_v1_voice_voice_number_outbound_call_price.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/pricing/v1/response.go b/rest/pricing/v1/response.go index c111fbe94..fa78517e6 100644 --- a/rest/pricing/v1/response.go +++ b/rest/pricing/v1/response.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/pricing/v2/README.md b/rest/pricing/v2/README.md index c77df18ad..002d6215b 100644 --- a/rest/pricing/v2/README.md +++ b/rest/pricing/v2/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 5.15.0 +- API version: 1.0.0 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) @@ -38,13 +38,13 @@ Class | Method | HTTP request | Description ## Documentation For Models + - [ListVoiceCountryResponse](docs/ListVoiceCountryResponse.md) + - [ListVoiceCountryResponseMeta](docs/ListVoiceCountryResponseMeta.md) - [PricingV2Voice](docs/PricingV2Voice.md) - [PricingV2VoiceVoiceCountry](docs/PricingV2VoiceVoiceCountry.md) - [PricingV2VoiceVoiceCountryInstance](docs/PricingV2VoiceVoiceCountryInstance.md) - [PricingV2VoiceVoiceCountryInstanceInboundCallPrices](docs/PricingV2VoiceVoiceCountryInstanceInboundCallPrices.md) - [PricingV2VoiceVoiceCountryInstanceOutboundPrefixPrices](docs/PricingV2VoiceVoiceCountryInstanceOutboundPrefixPrices.md) - - [PricingV2VoiceVoiceCountryReadResponse](docs/PricingV2VoiceVoiceCountryReadResponse.md) - - [PricingV2VoiceVoiceCountryReadResponseMeta](docs/PricingV2VoiceVoiceCountryReadResponseMeta.md) - [PricingV2VoiceVoiceNumber](docs/PricingV2VoiceVoiceNumber.md) - [PricingV2VoiceVoiceNumberOutboundCallPrices](docs/PricingV2VoiceVoiceNumberOutboundCallPrices.md) diff --git a/rest/pricing/v2/api_default.go b/rest/pricing/v2/api_default.go index eeb43e4f1..ac3147b0a 100644 --- a/rest/pricing/v2/api_default.go +++ b/rest/pricing/v2/api_default.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -26,7 +26,7 @@ type DefaultApiService struct { func NewDefaultApiService(client *twilio.Client) *DefaultApiService { return &DefaultApiService { client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + baseURL: fmt.Sprintf("https://pricing.twilio.com"), } } @@ -62,7 +62,7 @@ func (c *DefaultApiService) FetchVoiceCountry(IsoCountry string) (*PricingV2Voic } // FetchVoiceNumberParams Optional parameters for the method 'FetchVoiceNumber' type FetchVoiceNumberParams struct { - OriginationNumber *string `json:"OriginationNumber,omitempty"` + OriginationNumber *string `json:"OriginationNumber,omitempty"` } /* @@ -102,16 +102,16 @@ func (c *DefaultApiService) FetchVoiceNumber(DestinationNumber string, params *F } // ListVoiceCountryParams Optional parameters for the method 'ListVoiceCountry' type ListVoiceCountryParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* ListVoiceCountry Method for ListVoiceCountry * @param optional nil or *ListVoiceCountryOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return PricingV2VoiceVoiceCountryReadResponse +@return ListVoiceCountryResponse */ -func (c *DefaultApiService) ListVoiceCountry(params *ListVoiceCountryParams) (*PricingV2VoiceVoiceCountryReadResponse, error) { +func (c *DefaultApiService) ListVoiceCountry(params *ListVoiceCountryParams) (*ListVoiceCountryResponse, error) { path := "/v2/Voice/Countries" @@ -130,7 +130,7 @@ func (c *DefaultApiService) ListVoiceCountry(params *ListVoiceCountryParams) (*P defer resp.Body.Close() - ps := &PricingV2VoiceVoiceCountryReadResponse{} + ps := &ListVoiceCountryResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } diff --git a/rest/pricing/v2/docs/DefaultApi.md b/rest/pricing/v2/docs/DefaultApi.md index 942c3c644..d373bcadd 100644 --- a/rest/pricing/v2/docs/DefaultApi.md +++ b/rest/pricing/v2/docs/DefaultApi.md @@ -91,7 +91,7 @@ Name | Type | Description | Notes ## ListVoiceCountry -> PricingV2VoiceVoiceCountryReadResponse ListVoiceCountry(ctx, optional) +> ListVoiceCountryResponse ListVoiceCountry(ctx, optional) @@ -114,7 +114,7 @@ Name | Type | Description | Notes ### Return type -[**PricingV2VoiceVoiceCountryReadResponse**](pricing_v2_voice_voice_countryReadResponse.md) +[**ListVoiceCountryResponse**](ListVoiceCountryResponse.md) ### Authorization diff --git a/rest/pricing/v2/docs/PricingV2VoiceVoiceCountryReadResponse.md b/rest/pricing/v2/docs/ListVoiceCountryResponse.md similarity index 69% rename from rest/pricing/v2/docs/PricingV2VoiceVoiceCountryReadResponse.md rename to rest/pricing/v2/docs/ListVoiceCountryResponse.md index 62000bf52..fe4438c22 100644 --- a/rest/pricing/v2/docs/PricingV2VoiceVoiceCountryReadResponse.md +++ b/rest/pricing/v2/docs/ListVoiceCountryResponse.md @@ -1,11 +1,11 @@ -# PricingV2VoiceVoiceCountryReadResponse +# ListVoiceCountryResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Countries** | [**[]PricingV2VoiceVoiceCountry**](pricing.v2.voice.voice_country.md) | | [optional] -**Meta** | [**PricingV2VoiceVoiceCountryReadResponseMeta**](pricing_v2_voice_voice_countryReadResponse_meta.md) | | [optional] +**Meta** | [**ListVoiceCountryResponseMeta**](ListVoiceCountryResponse_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/rest/pricing/v2/docs/ListVoiceCountryResponseMeta.md b/rest/pricing/v2/docs/ListVoiceCountryResponseMeta.md new file mode 100644 index 000000000..b5afa8fb1 --- /dev/null +++ b/rest/pricing/v2/docs/ListVoiceCountryResponseMeta.md @@ -0,0 +1,17 @@ +# ListVoiceCountryResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/pricing/v2/docs/PricingV2VoiceVoiceCountryReadResponseMeta.md b/rest/pricing/v2/docs/PricingV2VoiceVoiceCountryReadResponseMeta.md deleted file mode 100644 index b1cbdb1c2..000000000 --- a/rest/pricing/v2/docs/PricingV2VoiceVoiceCountryReadResponseMeta.md +++ /dev/null @@ -1,17 +0,0 @@ -# PricingV2VoiceVoiceCountryReadResponseMeta - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FirstPageUrl** | **string** | | [optional] -**Key** | **string** | | [optional] -**NextPageUrl** | **string** | | [optional] -**Page** | **int32** | | [optional] -**PageSize** | **int32** | | [optional] -**PreviousPageUrl** | **string** | | [optional] -**Url** | **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/rest/pricing/v2/model_pricing_v2_voice_voice_country_read_response.go b/rest/pricing/v2/model_list_voice_country_response.go similarity index 51% rename from rest/pricing/v2/model_pricing_v2_voice_voice_country_read_response.go rename to rest/pricing/v2/model_list_voice_country_response.go index 88aab2d05..8a79222d1 100644 --- a/rest/pricing/v2/model_pricing_v2_voice_voice_country_read_response.go +++ b/rest/pricing/v2/model_list_voice_country_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// PricingV2VoiceVoiceCountryReadResponse struct for PricingV2VoiceVoiceCountryReadResponse -type PricingV2VoiceVoiceCountryReadResponse struct { +// ListVoiceCountryResponse struct for ListVoiceCountryResponse +type ListVoiceCountryResponse struct { Countries []PricingV2VoiceVoiceCountry `json:"Countries,omitempty"` - Meta PricingV2VoiceVoiceCountryReadResponseMeta `json:"Meta,omitempty"` + Meta ListVoiceCountryResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/pricing/v2/model_list_voice_country_response_meta.go b/rest/pricing/v2/model_list_voice_country_response_meta.go new file mode 100644 index 000000000..38065404a --- /dev/null +++ b/rest/pricing/v2/model_list_voice_country_response_meta.go @@ -0,0 +1,21 @@ +/* + * Twilio - Pricing + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListVoiceCountryResponseMeta struct for ListVoiceCountryResponseMeta +type ListVoiceCountryResponseMeta struct { + FirstPageUrl string `json:"FirstPageUrl,omitempty"` + Key string `json:"Key,omitempty"` + NextPageUrl string `json:"NextPageUrl,omitempty"` + Page int32 `json:"Page,omitempty"` + PageSize int32 `json:"PageSize,omitempty"` + PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` + Url string `json:"Url,omitempty"` +} diff --git a/rest/pricing/v2/model_pricing_v2_voice.go b/rest/pricing/v2/model_pricing_v2_voice.go index 5c6c28619..7768aa3b6 100644 --- a/rest/pricing/v2/model_pricing_v2_voice.go +++ b/rest/pricing/v2/model_pricing_v2_voice.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/pricing/v2/model_pricing_v2_voice_voice_country.go b/rest/pricing/v2/model_pricing_v2_voice_voice_country.go index 43450627b..57b523d03 100644 --- a/rest/pricing/v2/model_pricing_v2_voice_voice_country.go +++ b/rest/pricing/v2/model_pricing_v2_voice_voice_country.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/pricing/v2/model_pricing_v2_voice_voice_country_instance.go b/rest/pricing/v2/model_pricing_v2_voice_voice_country_instance.go index 14c772fe0..67ac86a30 100644 --- a/rest/pricing/v2/model_pricing_v2_voice_voice_country_instance.go +++ b/rest/pricing/v2/model_pricing_v2_voice_voice_country_instance.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/pricing/v2/model_pricing_v2_voice_voice_country_instance_inbound_call_prices.go b/rest/pricing/v2/model_pricing_v2_voice_voice_country_instance_inbound_call_prices.go index f2c05a952..1e81713b3 100644 --- a/rest/pricing/v2/model_pricing_v2_voice_voice_country_instance_inbound_call_prices.go +++ b/rest/pricing/v2/model_pricing_v2_voice_voice_country_instance_inbound_call_prices.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/pricing/v2/model_pricing_v2_voice_voice_country_instance_outbound_prefix_prices.go b/rest/pricing/v2/model_pricing_v2_voice_voice_country_instance_outbound_prefix_prices.go index 9ea0e2ddc..6c4021f76 100644 --- a/rest/pricing/v2/model_pricing_v2_voice_voice_country_instance_outbound_prefix_prices.go +++ b/rest/pricing/v2/model_pricing_v2_voice_voice_country_instance_outbound_prefix_prices.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/pricing/v2/model_pricing_v2_voice_voice_country_read_response_meta.go b/rest/pricing/v2/model_pricing_v2_voice_voice_country_read_response_meta.go deleted file mode 100644 index b86a6858f..000000000 --- a/rest/pricing/v2/model_pricing_v2_voice_voice_country_read_response_meta.go +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Twilio - Pricing - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// PricingV2VoiceVoiceCountryReadResponseMeta struct for PricingV2VoiceVoiceCountryReadResponseMeta -type PricingV2VoiceVoiceCountryReadResponseMeta struct { - FirstPageUrl string `json:"FirstPageUrl,omitempty"` - Key string `json:"Key,omitempty"` - NextPageUrl string `json:"NextPageUrl,omitempty"` - Page int32 `json:"Page,omitempty"` - PageSize int32 `json:"PageSize,omitempty"` - PreviousPageUrl string `json:"PreviousPageUrl,omitempty"` - Url string `json:"Url,omitempty"` -} diff --git a/rest/pricing/v2/model_pricing_v2_voice_voice_number.go b/rest/pricing/v2/model_pricing_v2_voice_voice_number.go index 2c3089c4d..c91501a6c 100644 --- a/rest/pricing/v2/model_pricing_v2_voice_voice_number.go +++ b/rest/pricing/v2/model_pricing_v2_voice_voice_number.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/pricing/v2/model_pricing_v2_voice_voice_number_outbound_call_prices.go b/rest/pricing/v2/model_pricing_v2_voice_voice_number_outbound_call_prices.go index 07e2f99dc..93927f0a6 100644 --- a/rest/pricing/v2/model_pricing_v2_voice_voice_number_outbound_call_prices.go +++ b/rest/pricing/v2/model_pricing_v2_voice_voice_number_outbound_call_prices.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/pricing/v2/response.go b/rest/pricing/v2/response.go index c111fbe94..fa78517e6 100644 --- a/rest/pricing/v2/response.go +++ b/rest/pricing/v2/response.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/proxy/v1/README.md b/rest/proxy/v1/README.md index 6764e2d98..c1fda756c 100644 --- a/rest/proxy/v1/README.md +++ b/rest/proxy/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 5.15.0 +- API version: 1.0.0 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) @@ -71,21 +71,21 @@ Class | Method | HTTP request | Description - [CreateServiceRequest](docs/CreateServiceRequest.md) - [CreateSessionRequest](docs/CreateSessionRequest.md) - [CreateShortCodeRequest](docs/CreateShortCodeRequest.md) + - [ListInteractionResponse](docs/ListInteractionResponse.md) + - [ListMessageInteractionResponse](docs/ListMessageInteractionResponse.md) + - [ListParticipantResponse](docs/ListParticipantResponse.md) + - [ListPhoneNumberResponse](docs/ListPhoneNumberResponse.md) + - [ListServiceResponse](docs/ListServiceResponse.md) + - [ListServiceResponseMeta](docs/ListServiceResponseMeta.md) + - [ListSessionResponse](docs/ListSessionResponse.md) + - [ListShortCodeResponse](docs/ListShortCodeResponse.md) - [ProxyV1Service](docs/ProxyV1Service.md) - [ProxyV1ServicePhoneNumber](docs/ProxyV1ServicePhoneNumber.md) - - [ProxyV1ServicePhoneNumberReadResponse](docs/ProxyV1ServicePhoneNumberReadResponse.md) - - [ProxyV1ServiceReadResponse](docs/ProxyV1ServiceReadResponse.md) - - [ProxyV1ServiceReadResponseMeta](docs/ProxyV1ServiceReadResponseMeta.md) - [ProxyV1ServiceSession](docs/ProxyV1ServiceSession.md) - [ProxyV1ServiceSessionInteraction](docs/ProxyV1ServiceSessionInteraction.md) - - [ProxyV1ServiceSessionInteractionReadResponse](docs/ProxyV1ServiceSessionInteractionReadResponse.md) - [ProxyV1ServiceSessionParticipant](docs/ProxyV1ServiceSessionParticipant.md) - [ProxyV1ServiceSessionParticipantMessageInteraction](docs/ProxyV1ServiceSessionParticipantMessageInteraction.md) - - [ProxyV1ServiceSessionParticipantMessageInteractionReadResponse](docs/ProxyV1ServiceSessionParticipantMessageInteractionReadResponse.md) - - [ProxyV1ServiceSessionParticipantReadResponse](docs/ProxyV1ServiceSessionParticipantReadResponse.md) - - [ProxyV1ServiceSessionReadResponse](docs/ProxyV1ServiceSessionReadResponse.md) - [ProxyV1ServiceShortCode](docs/ProxyV1ServiceShortCode.md) - - [ProxyV1ServiceShortCodeReadResponse](docs/ProxyV1ServiceShortCodeReadResponse.md) - [UpdatePhoneNumberRequest](docs/UpdatePhoneNumberRequest.md) - [UpdateServiceRequest](docs/UpdateServiceRequest.md) - [UpdateSessionRequest](docs/UpdateSessionRequest.md) diff --git a/rest/proxy/v1/api_default.go b/rest/proxy/v1/api_default.go index 981d4d1c4..4f30f7049 100644 --- a/rest/proxy/v1/api_default.go +++ b/rest/proxy/v1/api_default.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -27,13 +27,13 @@ type DefaultApiService struct { func NewDefaultApiService(client *twilio.Client) *DefaultApiService { return &DefaultApiService { client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + baseURL: fmt.Sprintf("https://proxy.twilio.com"), } } // CreateMessageInteractionParams Optional parameters for the method 'CreateMessageInteraction' type CreateMessageInteractionParams struct { - Body *string `json:"Body,omitempty"` - MediaUrl *[]string `json:"MediaUrl,omitempty"` + Body *string `json:"Body,omitempty"` + MediaUrl *[]string `json:"MediaUrl,omitempty"` } /* @@ -81,11 +81,11 @@ func (c *DefaultApiService) CreateMessageInteraction(ServiceSid string, SessionS } // CreateParticipantParams Optional parameters for the method 'CreateParticipant' type CreateParticipantParams struct { - FailOnParticipantConflict *bool `json:"FailOnParticipantConflict,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Identifier *string `json:"Identifier,omitempty"` - ProxyIdentifier *string `json:"ProxyIdentifier,omitempty"` - ProxyIdentifierSid *string `json:"ProxyIdentifierSid,omitempty"` + FailOnParticipantConflict *bool `json:"FailOnParticipantConflict,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Identifier *string `json:"Identifier,omitempty"` + ProxyIdentifier *string `json:"ProxyIdentifier,omitempty"` + ProxyIdentifierSid *string `json:"ProxyIdentifierSid,omitempty"` } /* @@ -143,9 +143,9 @@ func (c *DefaultApiService) CreateParticipant(ServiceSid string, SessionSid stri } // CreatePhoneNumberParams Optional parameters for the method 'CreatePhoneNumber' type CreatePhoneNumberParams struct { - IsReserved *bool `json:"IsReserved,omitempty"` - PhoneNumber *string `json:"PhoneNumber,omitempty"` - Sid *string `json:"Sid,omitempty"` + IsReserved *bool `json:"IsReserved,omitempty"` + PhoneNumber *string `json:"PhoneNumber,omitempty"` + Sid *string `json:"Sid,omitempty"` } /* @@ -193,14 +193,14 @@ func (c *DefaultApiService) CreatePhoneNumber(ServiceSid string, params *CreateP } // CreateServiceParams Optional parameters for the method 'CreateService' type CreateServiceParams struct { - CallbackUrl *string `json:"CallbackUrl,omitempty"` - ChatInstanceSid *string `json:"ChatInstanceSid,omitempty"` - DefaultTtl *int32 `json:"DefaultTtl,omitempty"` - GeoMatchLevel *string `json:"GeoMatchLevel,omitempty"` - InterceptCallbackUrl *string `json:"InterceptCallbackUrl,omitempty"` - NumberSelectionBehavior *string `json:"NumberSelectionBehavior,omitempty"` - OutOfSessionCallbackUrl *string `json:"OutOfSessionCallbackUrl,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + ChatInstanceSid *string `json:"ChatInstanceSid,omitempty"` + DefaultTtl *int32 `json:"DefaultTtl,omitempty"` + GeoMatchLevel *string `json:"GeoMatchLevel,omitempty"` + InterceptCallbackUrl *string `json:"InterceptCallbackUrl,omitempty"` + NumberSelectionBehavior *string `json:"NumberSelectionBehavior,omitempty"` + OutOfSessionCallbackUrl *string `json:"OutOfSessionCallbackUrl,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -266,13 +266,13 @@ func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*ProxyV1 } // CreateSessionParams Optional parameters for the method 'CreateSession' type CreateSessionParams struct { - DateExpiry *time.Time `json:"DateExpiry,omitempty"` - FailOnParticipantConflict *bool `json:"FailOnParticipantConflict,omitempty"` - Mode *string `json:"Mode,omitempty"` - Participants *[]map[string]interface{} `json:"Participants,omitempty"` - Status *string `json:"Status,omitempty"` - Ttl *int32 `json:"Ttl,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + DateExpiry *time.Time `json:"DateExpiry,omitempty"` + FailOnParticipantConflict *bool `json:"FailOnParticipantConflict,omitempty"` + Mode *string `json:"Mode,omitempty"` + Participants *[]map[string]interface{} `json:"Participants,omitempty"` + Status *string `json:"Status,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -342,7 +342,7 @@ func (c *DefaultApiService) CreateSession(ServiceSid string, params *CreateSessi } // CreateShortCodeParams Optional parameters for the method 'CreateShortCode' type CreateShortCodeParams struct { - Sid *string `json:"Sid,omitempty"` + Sid *string `json:"Sid,omitempty"` } /* @@ -782,7 +782,7 @@ func (c *DefaultApiService) FetchShortCode(ServiceSid string, Sid string) (*Prox } // ListInteractionParams Optional parameters for the method 'ListInteraction' type ListInteractionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -792,9 +792,9 @@ Retrieve a list of all Interactions for a Session. A maximum of 100 records will * @param SessionSid The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) to read the resources from. * @param optional nil or *ListInteractionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ProxyV1ServiceSessionInteractionReadResponse +@return ListInteractionResponse */ -func (c *DefaultApiService) ListInteraction(ServiceSid string, SessionSid string, params *ListInteractionParams) (*ProxyV1ServiceSessionInteractionReadResponse, error) { +func (c *DefaultApiService) ListInteraction(ServiceSid string, SessionSid string, params *ListInteractionParams) (*ListInteractionResponse, error) { path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Interactions" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"SessionSid"+"}", SessionSid, -1) @@ -815,7 +815,7 @@ func (c *DefaultApiService) ListInteraction(ServiceSid string, SessionSid string defer resp.Body.Close() - ps := &ProxyV1ServiceSessionInteractionReadResponse{} + ps := &ListInteractionResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -824,7 +824,7 @@ func (c *DefaultApiService) ListInteraction(ServiceSid string, SessionSid string } // ListMessageInteractionParams Optional parameters for the method 'ListMessageInteraction' type ListMessageInteractionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -834,9 +834,9 @@ ListMessageInteraction Method for ListMessageInteraction * @param ParticipantSid The SID of the [Participant](https://www.twilio.com/docs/proxy/api/participant) to read the resources from. * @param optional nil or *ListMessageInteractionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ProxyV1ServiceSessionParticipantMessageInteractionReadResponse +@return ListMessageInteractionResponse */ -func (c *DefaultApiService) ListMessageInteraction(ServiceSid string, SessionSid string, ParticipantSid string, params *ListMessageInteractionParams) (*ProxyV1ServiceSessionParticipantMessageInteractionReadResponse, error) { +func (c *DefaultApiService) ListMessageInteraction(ServiceSid string, SessionSid string, ParticipantSid string, params *ListMessageInteractionParams) (*ListMessageInteractionResponse, error) { path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants/{ParticipantSid}/MessageInteractions" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"SessionSid"+"}", SessionSid, -1) @@ -858,7 +858,7 @@ func (c *DefaultApiService) ListMessageInteraction(ServiceSid string, SessionSid defer resp.Body.Close() - ps := &ProxyV1ServiceSessionParticipantMessageInteractionReadResponse{} + ps := &ListMessageInteractionResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -867,7 +867,7 @@ func (c *DefaultApiService) ListMessageInteraction(ServiceSid string, SessionSid } // ListParticipantParams Optional parameters for the method 'ListParticipant' type ListParticipantParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -877,9 +877,9 @@ Retrieve a list of all Participants in a Session. * @param SessionSid The SID of the parent [Session](https://www.twilio.com/docs/proxy/api/session) of the resources to read. * @param optional nil or *ListParticipantOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ProxyV1ServiceSessionParticipantReadResponse +@return ListParticipantResponse */ -func (c *DefaultApiService) ListParticipant(ServiceSid string, SessionSid string, params *ListParticipantParams) (*ProxyV1ServiceSessionParticipantReadResponse, error) { +func (c *DefaultApiService) ListParticipant(ServiceSid string, SessionSid string, params *ListParticipantParams) (*ListParticipantResponse, error) { path := "/v1/Services/{ServiceSid}/Sessions/{SessionSid}/Participants" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"SessionSid"+"}", SessionSid, -1) @@ -900,7 +900,7 @@ func (c *DefaultApiService) ListParticipant(ServiceSid string, SessionSid string defer resp.Body.Close() - ps := &ProxyV1ServiceSessionParticipantReadResponse{} + ps := &ListParticipantResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -909,7 +909,7 @@ func (c *DefaultApiService) ListParticipant(ServiceSid string, SessionSid string } // ListPhoneNumberParams Optional parameters for the method 'ListPhoneNumber' type ListPhoneNumberParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -918,9 +918,9 @@ Retrieve a list of all Phone Numbers in the Proxy Number Pool for a Service. A m * @param ServiceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the PhoneNumber resources to read. * @param optional nil or *ListPhoneNumberOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ProxyV1ServicePhoneNumberReadResponse +@return ListPhoneNumberResponse */ -func (c *DefaultApiService) ListPhoneNumber(ServiceSid string, params *ListPhoneNumberParams) (*ProxyV1ServicePhoneNumberReadResponse, error) { +func (c *DefaultApiService) ListPhoneNumber(ServiceSid string, params *ListPhoneNumberParams) (*ListPhoneNumberResponse, error) { path := "/v1/Services/{ServiceSid}/PhoneNumbers" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -940,7 +940,7 @@ func (c *DefaultApiService) ListPhoneNumber(ServiceSid string, params *ListPhone defer resp.Body.Close() - ps := &ProxyV1ServicePhoneNumberReadResponse{} + ps := &ListPhoneNumberResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -949,7 +949,7 @@ func (c *DefaultApiService) ListPhoneNumber(ServiceSid string, params *ListPhone } // ListServiceParams Optional parameters for the method 'ListService' type ListServiceParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -957,9 +957,9 @@ ListService Method for ListService Retrieve a list of all Services for Twilio Proxy. A maximum of 100 records will be returned per page. * @param optional nil or *ListServiceOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ProxyV1ServiceReadResponse +@return ListServiceResponse */ -func (c *DefaultApiService) ListService(params *ListServiceParams) (*ProxyV1ServiceReadResponse, error) { +func (c *DefaultApiService) ListService(params *ListServiceParams) (*ListServiceResponse, error) { path := "/v1/Services" @@ -978,7 +978,7 @@ func (c *DefaultApiService) ListService(params *ListServiceParams) (*ProxyV1Serv defer resp.Body.Close() - ps := &ProxyV1ServiceReadResponse{} + ps := &ListServiceResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -987,7 +987,7 @@ func (c *DefaultApiService) ListService(params *ListServiceParams) (*ProxyV1Serv } // ListSessionParams Optional parameters for the method 'ListSession' type ListSessionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -996,9 +996,9 @@ Retrieve a list of all Sessions for the Service. A maximum of 100 records will b * @param ServiceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) of the resource to read. * @param optional nil or *ListSessionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ProxyV1ServiceSessionReadResponse +@return ListSessionResponse */ -func (c *DefaultApiService) ListSession(ServiceSid string, params *ListSessionParams) (*ProxyV1ServiceSessionReadResponse, error) { +func (c *DefaultApiService) ListSession(ServiceSid string, params *ListSessionParams) (*ListSessionResponse, error) { path := "/v1/Services/{ServiceSid}/Sessions" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -1018,7 +1018,7 @@ func (c *DefaultApiService) ListSession(ServiceSid string, params *ListSessionPa defer resp.Body.Close() - ps := &ProxyV1ServiceSessionReadResponse{} + ps := &ListSessionResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1027,7 +1027,7 @@ func (c *DefaultApiService) ListSession(ServiceSid string, params *ListSessionPa } // ListShortCodeParams Optional parameters for the method 'ListShortCode' type ListShortCodeParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1036,9 +1036,9 @@ Retrieve a list of all Short Codes in the Proxy Number Pool for the Service. A m * @param ServiceSid The SID of the parent [Service](https://www.twilio.com/docs/proxy/api/service) to read the resources from. * @param optional nil or *ListShortCodeOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ProxyV1ServiceShortCodeReadResponse +@return ListShortCodeResponse */ -func (c *DefaultApiService) ListShortCode(ServiceSid string, params *ListShortCodeParams) (*ProxyV1ServiceShortCodeReadResponse, error) { +func (c *DefaultApiService) ListShortCode(ServiceSid string, params *ListShortCodeParams) (*ListShortCodeResponse, error) { path := "/v1/Services/{ServiceSid}/ShortCodes" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -1058,7 +1058,7 @@ func (c *DefaultApiService) ListShortCode(ServiceSid string, params *ListShortCo defer resp.Body.Close() - ps := &ProxyV1ServiceShortCodeReadResponse{} + ps := &ListShortCodeResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1067,7 +1067,7 @@ func (c *DefaultApiService) ListShortCode(ServiceSid string, params *ListShortCo } // UpdatePhoneNumberParams Optional parameters for the method 'UpdatePhoneNumber' type UpdatePhoneNumberParams struct { - IsReserved *bool `json:"IsReserved,omitempty"` + IsReserved *bool `json:"IsReserved,omitempty"` } /* @@ -1109,14 +1109,14 @@ func (c *DefaultApiService) UpdatePhoneNumber(ServiceSid string, Sid string, par } // UpdateServiceParams Optional parameters for the method 'UpdateService' type UpdateServiceParams struct { - CallbackUrl *string `json:"CallbackUrl,omitempty"` - ChatInstanceSid *string `json:"ChatInstanceSid,omitempty"` - DefaultTtl *int32 `json:"DefaultTtl,omitempty"` - GeoMatchLevel *string `json:"GeoMatchLevel,omitempty"` - InterceptCallbackUrl *string `json:"InterceptCallbackUrl,omitempty"` - NumberSelectionBehavior *string `json:"NumberSelectionBehavior,omitempty"` - OutOfSessionCallbackUrl *string `json:"OutOfSessionCallbackUrl,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + ChatInstanceSid *string `json:"ChatInstanceSid,omitempty"` + DefaultTtl *int32 `json:"DefaultTtl,omitempty"` + GeoMatchLevel *string `json:"GeoMatchLevel,omitempty"` + InterceptCallbackUrl *string `json:"InterceptCallbackUrl,omitempty"` + NumberSelectionBehavior *string `json:"NumberSelectionBehavior,omitempty"` + OutOfSessionCallbackUrl *string `json:"OutOfSessionCallbackUrl,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -1184,10 +1184,10 @@ func (c *DefaultApiService) UpdateService(Sid string, params *UpdateServiceParam } // UpdateSessionParams Optional parameters for the method 'UpdateSession' type UpdateSessionParams struct { - DateExpiry *time.Time `json:"DateExpiry,omitempty"` - FailOnParticipantConflict *bool `json:"FailOnParticipantConflict,omitempty"` - Status *string `json:"Status,omitempty"` - Ttl *int32 `json:"Ttl,omitempty"` + DateExpiry *time.Time `json:"DateExpiry,omitempty"` + FailOnParticipantConflict *bool `json:"FailOnParticipantConflict,omitempty"` + Status *string `json:"Status,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` } /* @@ -1241,7 +1241,7 @@ func (c *DefaultApiService) UpdateSession(ServiceSid string, Sid string, params } // UpdateShortCodeParams Optional parameters for the method 'UpdateShortCode' type UpdateShortCodeParams struct { - IsReserved *bool `json:"IsReserved,omitempty"` + IsReserved *bool `json:"IsReserved,omitempty"` } /* diff --git a/rest/proxy/v1/docs/DefaultApi.md b/rest/proxy/v1/docs/DefaultApi.md index 1b8d5e30d..2fc6fabf5 100644 --- a/rest/proxy/v1/docs/DefaultApi.md +++ b/rest/proxy/v1/docs/DefaultApi.md @@ -790,7 +790,7 @@ Name | Type | Description | Notes ## ListInteraction -> ProxyV1ServiceSessionInteractionReadResponse ListInteraction(ctx, ServiceSid, SessionSid, optional) +> ListInteractionResponse ListInteraction(ctx, ServiceSid, SessionSid, optional) @@ -819,7 +819,7 @@ Name | Type | Description | Notes ### Return type -[**ProxyV1ServiceSessionInteractionReadResponse**](proxy_v1_service_session_interactionReadResponse.md) +[**ListInteractionResponse**](ListInteractionResponse.md) ### Authorization @@ -837,7 +837,7 @@ Name | Type | Description | Notes ## ListMessageInteraction -> ProxyV1ServiceSessionParticipantMessageInteractionReadResponse ListMessageInteraction(ctx, ServiceSid, SessionSid, ParticipantSid, optional) +> ListMessageInteractionResponse ListMessageInteraction(ctx, ServiceSid, SessionSid, ParticipantSid, optional) @@ -866,7 +866,7 @@ Name | Type | Description | Notes ### Return type -[**ProxyV1ServiceSessionParticipantMessageInteractionReadResponse**](proxy_v1_service_session_participant_message_interactionReadResponse.md) +[**ListMessageInteractionResponse**](ListMessageInteractionResponse.md) ### Authorization @@ -884,7 +884,7 @@ Name | Type | Description | Notes ## ListParticipant -> ProxyV1ServiceSessionParticipantReadResponse ListParticipant(ctx, ServiceSid, SessionSid, optional) +> ListParticipantResponse ListParticipant(ctx, ServiceSid, SessionSid, optional) @@ -913,7 +913,7 @@ Name | Type | Description | Notes ### Return type -[**ProxyV1ServiceSessionParticipantReadResponse**](proxy_v1_service_session_participantReadResponse.md) +[**ListParticipantResponse**](ListParticipantResponse.md) ### Authorization @@ -931,7 +931,7 @@ Name | Type | Description | Notes ## ListPhoneNumber -> ProxyV1ServicePhoneNumberReadResponse ListPhoneNumber(ctx, ServiceSid, optional) +> ListPhoneNumberResponse ListPhoneNumber(ctx, ServiceSid, optional) @@ -958,7 +958,7 @@ Name | Type | Description | Notes ### Return type -[**ProxyV1ServicePhoneNumberReadResponse**](proxy_v1_service_phone_numberReadResponse.md) +[**ListPhoneNumberResponse**](ListPhoneNumberResponse.md) ### Authorization @@ -976,7 +976,7 @@ Name | Type | Description | Notes ## ListService -> ProxyV1ServiceReadResponse ListService(ctx, optional) +> ListServiceResponse ListService(ctx, optional) @@ -1001,7 +1001,7 @@ Name | Type | Description | Notes ### Return type -[**ProxyV1ServiceReadResponse**](proxy_v1_serviceReadResponse.md) +[**ListServiceResponse**](ListServiceResponse.md) ### Authorization @@ -1019,7 +1019,7 @@ Name | Type | Description | Notes ## ListSession -> ProxyV1ServiceSessionReadResponse ListSession(ctx, ServiceSid, optional) +> ListSessionResponse ListSession(ctx, ServiceSid, optional) @@ -1046,7 +1046,7 @@ Name | Type | Description | Notes ### Return type -[**ProxyV1ServiceSessionReadResponse**](proxy_v1_service_sessionReadResponse.md) +[**ListSessionResponse**](ListSessionResponse.md) ### Authorization @@ -1064,7 +1064,7 @@ Name | Type | Description | Notes ## ListShortCode -> ProxyV1ServiceShortCodeReadResponse ListShortCode(ctx, ServiceSid, optional) +> ListShortCodeResponse ListShortCode(ctx, ServiceSid, optional) @@ -1091,7 +1091,7 @@ Name | Type | Description | Notes ### Return type -[**ProxyV1ServiceShortCodeReadResponse**](proxy_v1_service_short_codeReadResponse.md) +[**ListShortCodeResponse**](ListShortCodeResponse.md) ### Authorization diff --git a/rest/proxy/v1/docs/ProxyV1ServiceSessionInteractionReadResponse.md b/rest/proxy/v1/docs/ListInteractionResponse.md similarity index 72% rename from rest/proxy/v1/docs/ProxyV1ServiceSessionInteractionReadResponse.md rename to rest/proxy/v1/docs/ListInteractionResponse.md index 0a34cb3ec..0c9835745 100644 --- a/rest/proxy/v1/docs/ProxyV1ServiceSessionInteractionReadResponse.md +++ b/rest/proxy/v1/docs/ListInteractionResponse.md @@ -1,11 +1,11 @@ -# ProxyV1ServiceSessionInteractionReadResponse +# ListInteractionResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Interactions** | [**[]ProxyV1ServiceSessionInteraction**](proxy.v1.service.session.interaction.md) | | [optional] -**Meta** | [**ProxyV1ServiceReadResponseMeta**](proxy_v1_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_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/rest/proxy/v1/docs/ProxyV1ServiceSessionParticipantMessageInteractionReadResponse.md b/rest/proxy/v1/docs/ListMessageInteractionResponse.md similarity index 72% rename from rest/proxy/v1/docs/ProxyV1ServiceSessionParticipantMessageInteractionReadResponse.md rename to rest/proxy/v1/docs/ListMessageInteractionResponse.md index db43a4038..152ba6bf2 100644 --- a/rest/proxy/v1/docs/ProxyV1ServiceSessionParticipantMessageInteractionReadResponse.md +++ b/rest/proxy/v1/docs/ListMessageInteractionResponse.md @@ -1,11 +1,11 @@ -# ProxyV1ServiceSessionParticipantMessageInteractionReadResponse +# ListMessageInteractionResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Interactions** | [**[]ProxyV1ServiceSessionParticipantMessageInteraction**](proxy.v1.service.session.participant.message_interaction.md) | | [optional] -**Meta** | [**ProxyV1ServiceReadResponseMeta**](proxy_v1_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_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/rest/proxy/v1/docs/ProxyV1ServiceSessionParticipantReadResponse.md b/rest/proxy/v1/docs/ListParticipantResponse.md similarity index 72% rename from rest/proxy/v1/docs/ProxyV1ServiceSessionParticipantReadResponse.md rename to rest/proxy/v1/docs/ListParticipantResponse.md index bb6ddcb51..f0b993694 100644 --- a/rest/proxy/v1/docs/ProxyV1ServiceSessionParticipantReadResponse.md +++ b/rest/proxy/v1/docs/ListParticipantResponse.md @@ -1,10 +1,10 @@ -# ProxyV1ServiceSessionParticipantReadResponse +# ListParticipantResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**ProxyV1ServiceReadResponseMeta**](proxy_v1_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_meta.md) | | [optional] **Participants** | [**[]ProxyV1ServiceSessionParticipant**](proxy.v1.service.session.participant.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/rest/proxy/v1/docs/ProxyV1ServicePhoneNumberReadResponse.md b/rest/proxy/v1/docs/ListPhoneNumberResponse.md similarity index 72% rename from rest/proxy/v1/docs/ProxyV1ServicePhoneNumberReadResponse.md rename to rest/proxy/v1/docs/ListPhoneNumberResponse.md index 7a3102b8c..7a682c41c 100644 --- a/rest/proxy/v1/docs/ProxyV1ServicePhoneNumberReadResponse.md +++ b/rest/proxy/v1/docs/ListPhoneNumberResponse.md @@ -1,10 +1,10 @@ -# ProxyV1ServicePhoneNumberReadResponse +# ListPhoneNumberResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**ProxyV1ServiceReadResponseMeta**](proxy_v1_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_meta.md) | | [optional] **PhoneNumbers** | [**[]ProxyV1ServicePhoneNumber**](proxy.v1.service.phone_number.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/rest/proxy/v1/docs/ProxyV1ServiceReadResponse.md b/rest/proxy/v1/docs/ListServiceResponse.md similarity index 72% rename from rest/proxy/v1/docs/ProxyV1ServiceReadResponse.md rename to rest/proxy/v1/docs/ListServiceResponse.md index d6e690128..acfc0e749 100644 --- a/rest/proxy/v1/docs/ProxyV1ServiceReadResponse.md +++ b/rest/proxy/v1/docs/ListServiceResponse.md @@ -1,10 +1,10 @@ -# ProxyV1ServiceReadResponse +# ListServiceResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**ProxyV1ServiceReadResponseMeta**](proxy_v1_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_meta.md) | | [optional] **Services** | [**[]ProxyV1Service**](proxy.v1.service.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/rest/proxy/v1/docs/ListServiceResponseMeta.md b/rest/proxy/v1/docs/ListServiceResponseMeta.md new file mode 100644 index 000000000..010bc7d70 --- /dev/null +++ b/rest/proxy/v1/docs/ListServiceResponseMeta.md @@ -0,0 +1,17 @@ +# ListServiceResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/proxy/v1/docs/ProxyV1ServiceSessionReadResponse.md b/rest/proxy/v1/docs/ListSessionResponse.md similarity index 72% rename from rest/proxy/v1/docs/ProxyV1ServiceSessionReadResponse.md rename to rest/proxy/v1/docs/ListSessionResponse.md index 8f4d8ab6f..c6cb2e541 100644 --- a/rest/proxy/v1/docs/ProxyV1ServiceSessionReadResponse.md +++ b/rest/proxy/v1/docs/ListSessionResponse.md @@ -1,10 +1,10 @@ -# ProxyV1ServiceSessionReadResponse +# ListSessionResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**ProxyV1ServiceReadResponseMeta**](proxy_v1_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_meta.md) | | [optional] **Sessions** | [**[]ProxyV1ServiceSession**](proxy.v1.service.session.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/rest/proxy/v1/docs/ProxyV1ServiceShortCodeReadResponse.md b/rest/proxy/v1/docs/ListShortCodeResponse.md similarity index 72% rename from rest/proxy/v1/docs/ProxyV1ServiceShortCodeReadResponse.md rename to rest/proxy/v1/docs/ListShortCodeResponse.md index c8dfdd3c0..7b95c06e5 100644 --- a/rest/proxy/v1/docs/ProxyV1ServiceShortCodeReadResponse.md +++ b/rest/proxy/v1/docs/ListShortCodeResponse.md @@ -1,10 +1,10 @@ -# ProxyV1ServiceShortCodeReadResponse +# ListShortCodeResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**ProxyV1ServiceReadResponseMeta**](proxy_v1_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_meta.md) | | [optional] **ShortCodes** | [**[]ProxyV1ServiceShortCode**](proxy.v1.service.short_code.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/rest/proxy/v1/docs/ProxyV1ServiceReadResponseMeta.md b/rest/proxy/v1/docs/ProxyV1ServiceReadResponseMeta.md deleted file mode 100644 index d3301decf..000000000 --- a/rest/proxy/v1/docs/ProxyV1ServiceReadResponseMeta.md +++ /dev/null @@ -1,17 +0,0 @@ -# ProxyV1ServiceReadResponseMeta - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FirstPageUrl** | **string** | | [optional] -**Key** | **string** | | [optional] -**NextPageUrl** | **string** | | [optional] -**Page** | **int32** | | [optional] -**PageSize** | **int32** | | [optional] -**PreviousPageUrl** | **string** | | [optional] -**Url** | **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/rest/proxy/v1/model_create_message_interaction_request.go b/rest/proxy/v1/model_create_message_interaction_request.go index 181ba8b85..b6c2a87a8 100644 --- a/rest/proxy/v1/model_create_message_interaction_request.go +++ b/rest/proxy/v1/model_create_message_interaction_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/proxy/v1/model_create_participant_request.go b/rest/proxy/v1/model_create_participant_request.go index 0baf9c5e0..4e41089e7 100644 --- a/rest/proxy/v1/model_create_participant_request.go +++ b/rest/proxy/v1/model_create_participant_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/proxy/v1/model_create_phone_number_request.go b/rest/proxy/v1/model_create_phone_number_request.go index 5b525df86..392f514da 100644 --- a/rest/proxy/v1/model_create_phone_number_request.go +++ b/rest/proxy/v1/model_create_phone_number_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/proxy/v1/model_create_service_request.go b/rest/proxy/v1/model_create_service_request.go index 2e9b4ab1d..a54a4faea 100644 --- a/rest/proxy/v1/model_create_service_request.go +++ b/rest/proxy/v1/model_create_service_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/proxy/v1/model_create_session_request.go b/rest/proxy/v1/model_create_session_request.go index 62251cfa4..7a3cd20f5 100644 --- a/rest/proxy/v1/model_create_session_request.go +++ b/rest/proxy/v1/model_create_session_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/proxy/v1/model_create_short_code_request.go b/rest/proxy/v1/model_create_short_code_request.go index 3e850c82d..1d4d7c57c 100644 --- a/rest/proxy/v1/model_create_short_code_request.go +++ b/rest/proxy/v1/model_create_short_code_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/proxy/v1/model_proxy_v1_service_session_interaction_read_response.go b/rest/proxy/v1/model_list_interaction_response.go similarity index 52% rename from rest/proxy/v1/model_proxy_v1_service_session_interaction_read_response.go rename to rest/proxy/v1/model_list_interaction_response.go index 7c099ba72..09ba69d85 100644 --- a/rest/proxy/v1/model_proxy_v1_service_session_interaction_read_response.go +++ b/rest/proxy/v1/model_list_interaction_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ProxyV1ServiceSessionInteractionReadResponse struct for ProxyV1ServiceSessionInteractionReadResponse -type ProxyV1ServiceSessionInteractionReadResponse struct { +// ListInteractionResponse struct for ListInteractionResponse +type ListInteractionResponse struct { Interactions []ProxyV1ServiceSessionInteraction `json:"Interactions,omitempty"` - Meta ProxyV1ServiceReadResponseMeta `json:"Meta,omitempty"` + Meta ListServiceResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/proxy/v1/model_list_message_interaction_response.go b/rest/proxy/v1/model_list_message_interaction_response.go new file mode 100644 index 000000000..e3b8dc43d --- /dev/null +++ b/rest/proxy/v1/model_list_message_interaction_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Proxy + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListMessageInteractionResponse struct for ListMessageInteractionResponse +type ListMessageInteractionResponse struct { + Interactions []ProxyV1ServiceSessionParticipantMessageInteraction `json:"Interactions,omitempty"` + Meta ListServiceResponseMeta `json:"Meta,omitempty"` +} diff --git a/rest/proxy/v1/model_proxy_v1_service_session_participant_read_response.go b/rest/proxy/v1/model_list_participant_response.go similarity index 52% rename from rest/proxy/v1/model_proxy_v1_service_session_participant_read_response.go rename to rest/proxy/v1/model_list_participant_response.go index cfc649656..94044fc99 100644 --- a/rest/proxy/v1/model_proxy_v1_service_session_participant_read_response.go +++ b/rest/proxy/v1/model_list_participant_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ProxyV1ServiceSessionParticipantReadResponse struct for ProxyV1ServiceSessionParticipantReadResponse -type ProxyV1ServiceSessionParticipantReadResponse struct { - Meta ProxyV1ServiceReadResponseMeta `json:"Meta,omitempty"` +// ListParticipantResponse struct for ListParticipantResponse +type ListParticipantResponse struct { + Meta ListServiceResponseMeta `json:"Meta,omitempty"` Participants []ProxyV1ServiceSessionParticipant `json:"Participants,omitempty"` } diff --git a/rest/proxy/v1/model_proxy_v1_service_phone_number_read_response.go b/rest/proxy/v1/model_list_phone_number_response.go similarity index 53% rename from rest/proxy/v1/model_proxy_v1_service_phone_number_read_response.go rename to rest/proxy/v1/model_list_phone_number_response.go index b7b63f042..0df625d57 100644 --- a/rest/proxy/v1/model_proxy_v1_service_phone_number_read_response.go +++ b/rest/proxy/v1/model_list_phone_number_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ProxyV1ServicePhoneNumberReadResponse struct for ProxyV1ServicePhoneNumberReadResponse -type ProxyV1ServicePhoneNumberReadResponse struct { - Meta ProxyV1ServiceReadResponseMeta `json:"Meta,omitempty"` +// ListPhoneNumberResponse struct for ListPhoneNumberResponse +type ListPhoneNumberResponse struct { + Meta ListServiceResponseMeta `json:"Meta,omitempty"` PhoneNumbers []ProxyV1ServicePhoneNumber `json:"PhoneNumbers,omitempty"` } diff --git a/rest/proxy/v1/model_proxy_v1_service_read_response.go b/rest/proxy/v1/model_list_service_response.go similarity index 55% rename from rest/proxy/v1/model_proxy_v1_service_read_response.go rename to rest/proxy/v1/model_list_service_response.go index 89f49670d..7ee1f6ff4 100644 --- a/rest/proxy/v1/model_proxy_v1_service_read_response.go +++ b/rest/proxy/v1/model_list_service_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ProxyV1ServiceReadResponse struct for ProxyV1ServiceReadResponse -type ProxyV1ServiceReadResponse struct { - Meta ProxyV1ServiceReadResponseMeta `json:"Meta,omitempty"` +// ListServiceResponse struct for ListServiceResponse +type ListServiceResponse struct { + Meta ListServiceResponseMeta `json:"Meta,omitempty"` Services []ProxyV1Service `json:"Services,omitempty"` } diff --git a/rest/proxy/v1/model_proxy_v1_service_read_response_meta.go b/rest/proxy/v1/model_list_service_response_meta.go similarity index 77% rename from rest/proxy/v1/model_proxy_v1_service_read_response_meta.go rename to rest/proxy/v1/model_list_service_response_meta.go index c37b6c91a..1988a13ba 100644 --- a/rest/proxy/v1/model_proxy_v1_service_read_response_meta.go +++ b/rest/proxy/v1/model_list_service_response_meta.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ProxyV1ServiceReadResponseMeta struct for ProxyV1ServiceReadResponseMeta -type ProxyV1ServiceReadResponseMeta struct { +// ListServiceResponseMeta struct for ListServiceResponseMeta +type ListServiceResponseMeta struct { FirstPageUrl string `json:"FirstPageUrl,omitempty"` Key string `json:"Key,omitempty"` NextPageUrl string `json:"NextPageUrl,omitempty"` diff --git a/rest/proxy/v1/model_proxy_v1_service_session_read_response.go b/rest/proxy/v1/model_list_session_response.go similarity index 53% rename from rest/proxy/v1/model_proxy_v1_service_session_read_response.go rename to rest/proxy/v1/model_list_session_response.go index 28d5c960b..9c95444b6 100644 --- a/rest/proxy/v1/model_proxy_v1_service_session_read_response.go +++ b/rest/proxy/v1/model_list_session_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ProxyV1ServiceSessionReadResponse struct for ProxyV1ServiceSessionReadResponse -type ProxyV1ServiceSessionReadResponse struct { - Meta ProxyV1ServiceReadResponseMeta `json:"Meta,omitempty"` +// ListSessionResponse struct for ListSessionResponse +type ListSessionResponse struct { + Meta ListServiceResponseMeta `json:"Meta,omitempty"` Sessions []ProxyV1ServiceSession `json:"Sessions,omitempty"` } diff --git a/rest/proxy/v1/model_proxy_v1_service_short_code_read_response.go b/rest/proxy/v1/model_list_short_code_response.go similarity index 53% rename from rest/proxy/v1/model_proxy_v1_service_short_code_read_response.go rename to rest/proxy/v1/model_list_short_code_response.go index f32eea231..c351314a8 100644 --- a/rest/proxy/v1/model_proxy_v1_service_short_code_read_response.go +++ b/rest/proxy/v1/model_list_short_code_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ProxyV1ServiceShortCodeReadResponse struct for ProxyV1ServiceShortCodeReadResponse -type ProxyV1ServiceShortCodeReadResponse struct { - Meta ProxyV1ServiceReadResponseMeta `json:"Meta,omitempty"` +// ListShortCodeResponse struct for ListShortCodeResponse +type ListShortCodeResponse struct { + Meta ListServiceResponseMeta `json:"Meta,omitempty"` ShortCodes []ProxyV1ServiceShortCode `json:"ShortCodes,omitempty"` } diff --git a/rest/proxy/v1/model_proxy_v1_service.go b/rest/proxy/v1/model_proxy_v1_service.go index c9568c632..9e63f4333 100644 --- a/rest/proxy/v1/model_proxy_v1_service.go +++ b/rest/proxy/v1/model_proxy_v1_service.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/proxy/v1/model_proxy_v1_service_phone_number.go b/rest/proxy/v1/model_proxy_v1_service_phone_number.go index a454e47d0..8a34f9ed9 100644 --- a/rest/proxy/v1/model_proxy_v1_service_phone_number.go +++ b/rest/proxy/v1/model_proxy_v1_service_phone_number.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/proxy/v1/model_proxy_v1_service_session.go b/rest/proxy/v1/model_proxy_v1_service_session.go index 2a13a0848..56190a256 100644 --- a/rest/proxy/v1/model_proxy_v1_service_session.go +++ b/rest/proxy/v1/model_proxy_v1_service_session.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/proxy/v1/model_proxy_v1_service_session_interaction.go b/rest/proxy/v1/model_proxy_v1_service_session_interaction.go index b16be4513..a65fb0f2d 100644 --- a/rest/proxy/v1/model_proxy_v1_service_session_interaction.go +++ b/rest/proxy/v1/model_proxy_v1_service_session_interaction.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/proxy/v1/model_proxy_v1_service_session_participant.go b/rest/proxy/v1/model_proxy_v1_service_session_participant.go index 60ddef012..3fc72fdaa 100644 --- a/rest/proxy/v1/model_proxy_v1_service_session_participant.go +++ b/rest/proxy/v1/model_proxy_v1_service_session_participant.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/proxy/v1/model_proxy_v1_service_session_participant_message_interaction.go b/rest/proxy/v1/model_proxy_v1_service_session_participant_message_interaction.go index 8f2e0ee98..a5c821bc3 100644 --- a/rest/proxy/v1/model_proxy_v1_service_session_participant_message_interaction.go +++ b/rest/proxy/v1/model_proxy_v1_service_session_participant_message_interaction.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/proxy/v1/model_proxy_v1_service_session_participant_message_interaction_read_response.go b/rest/proxy/v1/model_proxy_v1_service_session_participant_message_interaction_read_response.go deleted file mode 100644 index 8611a13f7..000000000 --- a/rest/proxy/v1/model_proxy_v1_service_session_participant_message_interaction_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Proxy - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// ProxyV1ServiceSessionParticipantMessageInteractionReadResponse struct for ProxyV1ServiceSessionParticipantMessageInteractionReadResponse -type ProxyV1ServiceSessionParticipantMessageInteractionReadResponse struct { - Interactions []ProxyV1ServiceSessionParticipantMessageInteraction `json:"Interactions,omitempty"` - Meta ProxyV1ServiceReadResponseMeta `json:"Meta,omitempty"` -} diff --git a/rest/proxy/v1/model_proxy_v1_service_short_code.go b/rest/proxy/v1/model_proxy_v1_service_short_code.go index 8e3087404..fc2deff43 100644 --- a/rest/proxy/v1/model_proxy_v1_service_short_code.go +++ b/rest/proxy/v1/model_proxy_v1_service_short_code.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/proxy/v1/model_update_phone_number_request.go b/rest/proxy/v1/model_update_phone_number_request.go index 5a606a69e..2dd67a809 100644 --- a/rest/proxy/v1/model_update_phone_number_request.go +++ b/rest/proxy/v1/model_update_phone_number_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/proxy/v1/model_update_service_request.go b/rest/proxy/v1/model_update_service_request.go index ab5560ea0..54a453c7c 100644 --- a/rest/proxy/v1/model_update_service_request.go +++ b/rest/proxy/v1/model_update_service_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/proxy/v1/model_update_session_request.go b/rest/proxy/v1/model_update_session_request.go index 378a271c9..4694d3a39 100644 --- a/rest/proxy/v1/model_update_session_request.go +++ b/rest/proxy/v1/model_update_session_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/proxy/v1/model_update_short_code_request.go b/rest/proxy/v1/model_update_short_code_request.go index f97f68b85..56ac29c1a 100644 --- a/rest/proxy/v1/model_update_short_code_request.go +++ b/rest/proxy/v1/model_update_short_code_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/proxy/v1/response.go b/rest/proxy/v1/response.go index 0631700b4..837e2ecc3 100644 --- a/rest/proxy/v1/response.go +++ b/rest/proxy/v1/response.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/serverless/v1/README.md b/rest/serverless/v1/README.md index dab5a122b..1bba4029d 100644 --- a/rest/serverless/v1/README.md +++ b/rest/serverless/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 5.15.0 +- API version: 1.0.0 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) @@ -81,29 +81,29 @@ Class | Method | HTTP request | Description - [CreateFunctionRequest](docs/CreateFunctionRequest.md) - [CreateServiceRequest](docs/CreateServiceRequest.md) - [CreateVariableRequest](docs/CreateVariableRequest.md) + - [ListAssetResponse](docs/ListAssetResponse.md) + - [ListAssetVersionResponse](docs/ListAssetVersionResponse.md) + - [ListBuildResponse](docs/ListBuildResponse.md) + - [ListDeploymentResponse](docs/ListDeploymentResponse.md) + - [ListEnvironmentResponse](docs/ListEnvironmentResponse.md) + - [ListFunctionResponse](docs/ListFunctionResponse.md) + - [ListFunctionVersionResponse](docs/ListFunctionVersionResponse.md) + - [ListLogResponse](docs/ListLogResponse.md) + - [ListServiceResponse](docs/ListServiceResponse.md) + - [ListServiceResponseMeta](docs/ListServiceResponseMeta.md) + - [ListVariableResponse](docs/ListVariableResponse.md) - [ServerlessV1Service](docs/ServerlessV1Service.md) - [ServerlessV1ServiceAsset](docs/ServerlessV1ServiceAsset.md) - [ServerlessV1ServiceAssetAssetVersion](docs/ServerlessV1ServiceAssetAssetVersion.md) - - [ServerlessV1ServiceAssetAssetVersionReadResponse](docs/ServerlessV1ServiceAssetAssetVersionReadResponse.md) - - [ServerlessV1ServiceAssetReadResponse](docs/ServerlessV1ServiceAssetReadResponse.md) - [ServerlessV1ServiceBuild](docs/ServerlessV1ServiceBuild.md) - [ServerlessV1ServiceBuildBuildStatus](docs/ServerlessV1ServiceBuildBuildStatus.md) - - [ServerlessV1ServiceBuildReadResponse](docs/ServerlessV1ServiceBuildReadResponse.md) - [ServerlessV1ServiceEnvironment](docs/ServerlessV1ServiceEnvironment.md) - [ServerlessV1ServiceEnvironmentDeployment](docs/ServerlessV1ServiceEnvironmentDeployment.md) - - [ServerlessV1ServiceEnvironmentDeploymentReadResponse](docs/ServerlessV1ServiceEnvironmentDeploymentReadResponse.md) - [ServerlessV1ServiceEnvironmentLog](docs/ServerlessV1ServiceEnvironmentLog.md) - - [ServerlessV1ServiceEnvironmentLogReadResponse](docs/ServerlessV1ServiceEnvironmentLogReadResponse.md) - - [ServerlessV1ServiceEnvironmentReadResponse](docs/ServerlessV1ServiceEnvironmentReadResponse.md) - [ServerlessV1ServiceEnvironmentVariable](docs/ServerlessV1ServiceEnvironmentVariable.md) - - [ServerlessV1ServiceEnvironmentVariableReadResponse](docs/ServerlessV1ServiceEnvironmentVariableReadResponse.md) - [ServerlessV1ServiceFunction](docs/ServerlessV1ServiceFunction.md) - [ServerlessV1ServiceFunctionFunctionVersion](docs/ServerlessV1ServiceFunctionFunctionVersion.md) - [ServerlessV1ServiceFunctionFunctionVersionFunctionVersionContent](docs/ServerlessV1ServiceFunctionFunctionVersionFunctionVersionContent.md) - - [ServerlessV1ServiceFunctionFunctionVersionReadResponse](docs/ServerlessV1ServiceFunctionFunctionVersionReadResponse.md) - - [ServerlessV1ServiceFunctionReadResponse](docs/ServerlessV1ServiceFunctionReadResponse.md) - - [ServerlessV1ServiceReadResponse](docs/ServerlessV1ServiceReadResponse.md) - - [ServerlessV1ServiceReadResponseMeta](docs/ServerlessV1ServiceReadResponseMeta.md) - [UpdateAssetRequest](docs/UpdateAssetRequest.md) - [UpdateFunctionRequest](docs/UpdateFunctionRequest.md) - [UpdateServiceRequest](docs/UpdateServiceRequest.md) diff --git a/rest/serverless/v1/api_default.go b/rest/serverless/v1/api_default.go index c289b0459..cbc60e737 100644 --- a/rest/serverless/v1/api_default.go +++ b/rest/serverless/v1/api_default.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -27,12 +27,12 @@ type DefaultApiService struct { func NewDefaultApiService(client *twilio.Client) *DefaultApiService { return &DefaultApiService { client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + baseURL: fmt.Sprintf("https://serverless.twilio.com"), } } // CreateAssetParams Optional parameters for the method 'CreateAsset' type CreateAssetParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -72,9 +72,9 @@ func (c *DefaultApiService) CreateAsset(ServiceSid string, params *CreateAssetPa } // CreateBuildParams Optional parameters for the method 'CreateBuild' type CreateBuildParams struct { - AssetVersions *[]string `json:"AssetVersions,omitempty"` - Dependencies *string `json:"Dependencies,omitempty"` - FunctionVersions *[]string `json:"FunctionVersions,omitempty"` + AssetVersions *[]string `json:"AssetVersions,omitempty"` + Dependencies *string `json:"Dependencies,omitempty"` + FunctionVersions *[]string `json:"FunctionVersions,omitempty"` } /* @@ -122,7 +122,7 @@ func (c *DefaultApiService) CreateBuild(ServiceSid string, params *CreateBuildPa } // CreateDeploymentParams Optional parameters for the method 'CreateDeployment' type CreateDeploymentParams struct { - BuildSid *string `json:"BuildSid,omitempty"` + BuildSid *string `json:"BuildSid,omitempty"` } /* @@ -164,8 +164,8 @@ func (c *DefaultApiService) CreateDeployment(ServiceSid string, EnvironmentSid s } // CreateEnvironmentParams Optional parameters for the method 'CreateEnvironment' type CreateEnvironmentParams struct { - DomainSuffix *string `json:"DomainSuffix,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + DomainSuffix *string `json:"DomainSuffix,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -209,7 +209,7 @@ func (c *DefaultApiService) CreateEnvironment(ServiceSid string, params *CreateE } // CreateFunctionParams Optional parameters for the method 'CreateFunction' type CreateFunctionParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -249,10 +249,10 @@ func (c *DefaultApiService) CreateFunction(ServiceSid string, params *CreateFunc } // CreateServiceParams Optional parameters for the method 'CreateService' type CreateServiceParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - IncludeCredentials *bool `json:"IncludeCredentials,omitempty"` - UiEditable *bool `json:"UiEditable,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IncludeCredentials *bool `json:"IncludeCredentials,omitempty"` + UiEditable *bool `json:"UiEditable,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -302,8 +302,8 @@ func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*Serverl } // CreateVariableParams Optional parameters for the method 'CreateVariable' type CreateVariableParams struct { - Key *string `json:"Key,omitempty"` - Value *string `json:"Value,omitempty"` + Key *string `json:"Key,omitempty"` + Value *string `json:"Value,omitempty"` } /* @@ -917,7 +917,7 @@ func (c *DefaultApiService) FetchVariable(ServiceSid string, EnvironmentSid stri } // ListAssetParams Optional parameters for the method 'ListAsset' type ListAssetParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -926,9 +926,9 @@ Retrieve a list of all Assets. * @param ServiceSid The SID of the Service to read the Asset resources from. * @param optional nil or *ListAssetOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ServerlessV1ServiceAssetReadResponse +@return ListAssetResponse */ -func (c *DefaultApiService) ListAsset(ServiceSid string, params *ListAssetParams) (*ServerlessV1ServiceAssetReadResponse, error) { +func (c *DefaultApiService) ListAsset(ServiceSid string, params *ListAssetParams) (*ListAssetResponse, error) { path := "/v1/Services/{ServiceSid}/Assets" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -948,7 +948,7 @@ func (c *DefaultApiService) ListAsset(ServiceSid string, params *ListAssetParams defer resp.Body.Close() - ps := &ServerlessV1ServiceAssetReadResponse{} + ps := &ListAssetResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -957,7 +957,7 @@ func (c *DefaultApiService) ListAsset(ServiceSid string, params *ListAssetParams } // ListAssetVersionParams Optional parameters for the method 'ListAssetVersion' type ListAssetVersionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -967,9 +967,9 @@ Retrieve a list of all Asset Versions. * @param AssetSid The SID of the Asset resource that is the parent of the Asset Version resources to read. * @param optional nil or *ListAssetVersionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ServerlessV1ServiceAssetAssetVersionReadResponse +@return ListAssetVersionResponse */ -func (c *DefaultApiService) ListAssetVersion(ServiceSid string, AssetSid string, params *ListAssetVersionParams) (*ServerlessV1ServiceAssetAssetVersionReadResponse, error) { +func (c *DefaultApiService) ListAssetVersion(ServiceSid string, AssetSid string, params *ListAssetVersionParams) (*ListAssetVersionResponse, error) { path := "/v1/Services/{ServiceSid}/Assets/{AssetSid}/Versions" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"AssetSid"+"}", AssetSid, -1) @@ -990,7 +990,7 @@ func (c *DefaultApiService) ListAssetVersion(ServiceSid string, AssetSid string, defer resp.Body.Close() - ps := &ServerlessV1ServiceAssetAssetVersionReadResponse{} + ps := &ListAssetVersionResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -999,7 +999,7 @@ func (c *DefaultApiService) ListAssetVersion(ServiceSid string, AssetSid string, } // ListBuildParams Optional parameters for the method 'ListBuild' type ListBuildParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1008,9 +1008,9 @@ Retrieve a list of all Builds. * @param ServiceSid The SID of the Service to read the Build resources from. * @param optional nil or *ListBuildOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ServerlessV1ServiceBuildReadResponse +@return ListBuildResponse */ -func (c *DefaultApiService) ListBuild(ServiceSid string, params *ListBuildParams) (*ServerlessV1ServiceBuildReadResponse, error) { +func (c *DefaultApiService) ListBuild(ServiceSid string, params *ListBuildParams) (*ListBuildResponse, error) { path := "/v1/Services/{ServiceSid}/Builds" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -1030,7 +1030,7 @@ func (c *DefaultApiService) ListBuild(ServiceSid string, params *ListBuildParams defer resp.Body.Close() - ps := &ServerlessV1ServiceBuildReadResponse{} + ps := &ListBuildResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1039,7 +1039,7 @@ func (c *DefaultApiService) ListBuild(ServiceSid string, params *ListBuildParams } // ListDeploymentParams Optional parameters for the method 'ListDeployment' type ListDeploymentParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1049,9 +1049,9 @@ Retrieve a list of all Deployments. * @param EnvironmentSid The SID of the Environment used by the Deployment resources to read. * @param optional nil or *ListDeploymentOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ServerlessV1ServiceEnvironmentDeploymentReadResponse +@return ListDeploymentResponse */ -func (c *DefaultApiService) ListDeployment(ServiceSid string, EnvironmentSid string, params *ListDeploymentParams) (*ServerlessV1ServiceEnvironmentDeploymentReadResponse, error) { +func (c *DefaultApiService) ListDeployment(ServiceSid string, EnvironmentSid string, params *ListDeploymentParams) (*ListDeploymentResponse, error) { path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Deployments" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"EnvironmentSid"+"}", EnvironmentSid, -1) @@ -1072,7 +1072,7 @@ func (c *DefaultApiService) ListDeployment(ServiceSid string, EnvironmentSid str defer resp.Body.Close() - ps := &ServerlessV1ServiceEnvironmentDeploymentReadResponse{} + ps := &ListDeploymentResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1081,7 +1081,7 @@ func (c *DefaultApiService) ListDeployment(ServiceSid string, EnvironmentSid str } // ListEnvironmentParams Optional parameters for the method 'ListEnvironment' type ListEnvironmentParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1090,9 +1090,9 @@ Retrieve a list of all environments. * @param ServiceSid The SID of the Service to read the Environment resources from. * @param optional nil or *ListEnvironmentOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ServerlessV1ServiceEnvironmentReadResponse +@return ListEnvironmentResponse */ -func (c *DefaultApiService) ListEnvironment(ServiceSid string, params *ListEnvironmentParams) (*ServerlessV1ServiceEnvironmentReadResponse, error) { +func (c *DefaultApiService) ListEnvironment(ServiceSid string, params *ListEnvironmentParams) (*ListEnvironmentResponse, error) { path := "/v1/Services/{ServiceSid}/Environments" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -1112,7 +1112,7 @@ func (c *DefaultApiService) ListEnvironment(ServiceSid string, params *ListEnvir defer resp.Body.Close() - ps := &ServerlessV1ServiceEnvironmentReadResponse{} + ps := &ListEnvironmentResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1121,7 +1121,7 @@ func (c *DefaultApiService) ListEnvironment(ServiceSid string, params *ListEnvir } // ListFunctionParams Optional parameters for the method 'ListFunction' type ListFunctionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1130,9 +1130,9 @@ Retrieve a list of all Functions. * @param ServiceSid The SID of the Service to read the Function resources from. * @param optional nil or *ListFunctionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ServerlessV1ServiceFunctionReadResponse +@return ListFunctionResponse */ -func (c *DefaultApiService) ListFunction(ServiceSid string, params *ListFunctionParams) (*ServerlessV1ServiceFunctionReadResponse, error) { +func (c *DefaultApiService) ListFunction(ServiceSid string, params *ListFunctionParams) (*ListFunctionResponse, error) { path := "/v1/Services/{ServiceSid}/Functions" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -1152,7 +1152,7 @@ func (c *DefaultApiService) ListFunction(ServiceSid string, params *ListFunction defer resp.Body.Close() - ps := &ServerlessV1ServiceFunctionReadResponse{} + ps := &ListFunctionResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1161,7 +1161,7 @@ func (c *DefaultApiService) ListFunction(ServiceSid string, params *ListFunction } // ListFunctionVersionParams Optional parameters for the method 'ListFunctionVersion' type ListFunctionVersionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1171,9 +1171,9 @@ Retrieve a list of all Function Version resources. * @param FunctionSid The SID of the function that is the parent of the Function Version resources to read. * @param optional nil or *ListFunctionVersionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ServerlessV1ServiceFunctionFunctionVersionReadResponse +@return ListFunctionVersionResponse */ -func (c *DefaultApiService) ListFunctionVersion(ServiceSid string, FunctionSid string, params *ListFunctionVersionParams) (*ServerlessV1ServiceFunctionFunctionVersionReadResponse, error) { +func (c *DefaultApiService) ListFunctionVersion(ServiceSid string, FunctionSid string, params *ListFunctionVersionParams) (*ListFunctionVersionResponse, error) { path := "/v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"FunctionSid"+"}", FunctionSid, -1) @@ -1194,7 +1194,7 @@ func (c *DefaultApiService) ListFunctionVersion(ServiceSid string, FunctionSid s defer resp.Body.Close() - ps := &ServerlessV1ServiceFunctionFunctionVersionReadResponse{} + ps := &ListFunctionVersionResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1203,10 +1203,10 @@ func (c *DefaultApiService) ListFunctionVersion(ServiceSid string, FunctionSid s } // ListLogParams Optional parameters for the method 'ListLog' type ListLogParams struct { - FunctionSid *string `json:"FunctionSid,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - EndDate *time.Time `json:"EndDate,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + FunctionSid *string `json:"FunctionSid,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1219,9 +1219,9 @@ Retrieve a list of all logs. * @param "StartDate" (time.Time) - The date/time (in GMT, ISO 8601) after which the Log resources must have been created. Defaults to 1 day prior to current date/time. * @param "EndDate" (time.Time) - The date/time (in GMT, ISO 8601) before which the Log resources must have been created. Defaults to current date/time. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ServerlessV1ServiceEnvironmentLogReadResponse +@return ListLogResponse */ -func (c *DefaultApiService) ListLog(ServiceSid string, EnvironmentSid string, params *ListLogParams) (*ServerlessV1ServiceEnvironmentLogReadResponse, error) { +func (c *DefaultApiService) ListLog(ServiceSid string, EnvironmentSid string, params *ListLogParams) (*ListLogResponse, error) { path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Logs" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"EnvironmentSid"+"}", EnvironmentSid, -1) @@ -1251,7 +1251,7 @@ func (c *DefaultApiService) ListLog(ServiceSid string, EnvironmentSid string, pa defer resp.Body.Close() - ps := &ServerlessV1ServiceEnvironmentLogReadResponse{} + ps := &ListLogResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1260,7 +1260,7 @@ func (c *DefaultApiService) ListLog(ServiceSid string, EnvironmentSid string, pa } // ListServiceParams Optional parameters for the method 'ListService' type ListServiceParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1268,9 +1268,9 @@ ListService Method for ListService Retrieve a list of all Services. * @param optional nil or *ListServiceOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ServerlessV1ServiceReadResponse +@return ListServiceResponse */ -func (c *DefaultApiService) ListService(params *ListServiceParams) (*ServerlessV1ServiceReadResponse, error) { +func (c *DefaultApiService) ListService(params *ListServiceParams) (*ListServiceResponse, error) { path := "/v1/Services" @@ -1289,7 +1289,7 @@ func (c *DefaultApiService) ListService(params *ListServiceParams) (*ServerlessV defer resp.Body.Close() - ps := &ServerlessV1ServiceReadResponse{} + ps := &ListServiceResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1298,7 +1298,7 @@ func (c *DefaultApiService) ListService(params *ListServiceParams) (*ServerlessV } // ListVariableParams Optional parameters for the method 'ListVariable' type ListVariableParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1308,9 +1308,9 @@ Retrieve a list of all Variables. * @param EnvironmentSid The SID of the Environment with the Variable resources to read. * @param optional nil or *ListVariableOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return ServerlessV1ServiceEnvironmentVariableReadResponse +@return ListVariableResponse */ -func (c *DefaultApiService) ListVariable(ServiceSid string, EnvironmentSid string, params *ListVariableParams) (*ServerlessV1ServiceEnvironmentVariableReadResponse, error) { +func (c *DefaultApiService) ListVariable(ServiceSid string, EnvironmentSid string, params *ListVariableParams) (*ListVariableResponse, error) { path := "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"EnvironmentSid"+"}", EnvironmentSid, -1) @@ -1331,7 +1331,7 @@ func (c *DefaultApiService) ListVariable(ServiceSid string, EnvironmentSid strin defer resp.Body.Close() - ps := &ServerlessV1ServiceEnvironmentVariableReadResponse{} + ps := &ListVariableResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1340,7 +1340,7 @@ func (c *DefaultApiService) ListVariable(ServiceSid string, EnvironmentSid strin } // UpdateAssetParams Optional parameters for the method 'UpdateAsset' type UpdateAssetParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -1382,7 +1382,7 @@ func (c *DefaultApiService) UpdateAsset(ServiceSid string, Sid string, params *U } // UpdateFunctionParams Optional parameters for the method 'UpdateFunction' type UpdateFunctionParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -1424,9 +1424,9 @@ func (c *DefaultApiService) UpdateFunction(ServiceSid string, Sid string, params } // UpdateServiceParams Optional parameters for the method 'UpdateService' type UpdateServiceParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - IncludeCredentials *bool `json:"IncludeCredentials,omitempty"` - UiEditable *bool `json:"UiEditable,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IncludeCredentials *bool `json:"IncludeCredentials,omitempty"` + UiEditable *bool `json:"UiEditable,omitempty"` } /* @@ -1474,8 +1474,8 @@ func (c *DefaultApiService) UpdateService(Sid string, params *UpdateServiceParam } // UpdateVariableParams Optional parameters for the method 'UpdateVariable' type UpdateVariableParams struct { - Key *string `json:"Key,omitempty"` - Value *string `json:"Value,omitempty"` + Key *string `json:"Key,omitempty"` + Value *string `json:"Value,omitempty"` } /* diff --git a/rest/serverless/v1/docs/DefaultApi.md b/rest/serverless/v1/docs/DefaultApi.md index bdb2d100f..f446d760c 100644 --- a/rest/serverless/v1/docs/DefaultApi.md +++ b/rest/serverless/v1/docs/DefaultApi.md @@ -1007,7 +1007,7 @@ Name | Type | Description | Notes ## ListAsset -> ServerlessV1ServiceAssetReadResponse ListAsset(ctx, ServiceSid, optional) +> ListAssetResponse ListAsset(ctx, ServiceSid, optional) @@ -1034,7 +1034,7 @@ Name | Type | Description | Notes ### Return type -[**ServerlessV1ServiceAssetReadResponse**](serverless_v1_service_assetReadResponse.md) +[**ListAssetResponse**](ListAssetResponse.md) ### Authorization @@ -1052,7 +1052,7 @@ Name | Type | Description | Notes ## ListAssetVersion -> ServerlessV1ServiceAssetAssetVersionReadResponse ListAssetVersion(ctx, ServiceSid, AssetSid, optional) +> ListAssetVersionResponse ListAssetVersion(ctx, ServiceSid, AssetSid, optional) @@ -1081,7 +1081,7 @@ Name | Type | Description | Notes ### Return type -[**ServerlessV1ServiceAssetAssetVersionReadResponse**](serverless_v1_service_asset_asset_versionReadResponse.md) +[**ListAssetVersionResponse**](ListAssetVersionResponse.md) ### Authorization @@ -1099,7 +1099,7 @@ Name | Type | Description | Notes ## ListBuild -> ServerlessV1ServiceBuildReadResponse ListBuild(ctx, ServiceSid, optional) +> ListBuildResponse ListBuild(ctx, ServiceSid, optional) @@ -1126,7 +1126,7 @@ Name | Type | Description | Notes ### Return type -[**ServerlessV1ServiceBuildReadResponse**](serverless_v1_service_buildReadResponse.md) +[**ListBuildResponse**](ListBuildResponse.md) ### Authorization @@ -1144,7 +1144,7 @@ Name | Type | Description | Notes ## ListDeployment -> ServerlessV1ServiceEnvironmentDeploymentReadResponse ListDeployment(ctx, ServiceSid, EnvironmentSid, optional) +> ListDeploymentResponse ListDeployment(ctx, ServiceSid, EnvironmentSid, optional) @@ -1173,7 +1173,7 @@ Name | Type | Description | Notes ### Return type -[**ServerlessV1ServiceEnvironmentDeploymentReadResponse**](serverless_v1_service_environment_deploymentReadResponse.md) +[**ListDeploymentResponse**](ListDeploymentResponse.md) ### Authorization @@ -1191,7 +1191,7 @@ Name | Type | Description | Notes ## ListEnvironment -> ServerlessV1ServiceEnvironmentReadResponse ListEnvironment(ctx, ServiceSid, optional) +> ListEnvironmentResponse ListEnvironment(ctx, ServiceSid, optional) @@ -1218,7 +1218,7 @@ Name | Type | Description | Notes ### Return type -[**ServerlessV1ServiceEnvironmentReadResponse**](serverless_v1_service_environmentReadResponse.md) +[**ListEnvironmentResponse**](ListEnvironmentResponse.md) ### Authorization @@ -1236,7 +1236,7 @@ Name | Type | Description | Notes ## ListFunction -> ServerlessV1ServiceFunctionReadResponse ListFunction(ctx, ServiceSid, optional) +> ListFunctionResponse ListFunction(ctx, ServiceSid, optional) @@ -1263,7 +1263,7 @@ Name | Type | Description | Notes ### Return type -[**ServerlessV1ServiceFunctionReadResponse**](serverless_v1_service_functionReadResponse.md) +[**ListFunctionResponse**](ListFunctionResponse.md) ### Authorization @@ -1281,7 +1281,7 @@ Name | Type | Description | Notes ## ListFunctionVersion -> ServerlessV1ServiceFunctionFunctionVersionReadResponse ListFunctionVersion(ctx, ServiceSid, FunctionSid, optional) +> ListFunctionVersionResponse ListFunctionVersion(ctx, ServiceSid, FunctionSid, optional) @@ -1310,7 +1310,7 @@ Name | Type | Description | Notes ### Return type -[**ServerlessV1ServiceFunctionFunctionVersionReadResponse**](serverless_v1_service_function_function_versionReadResponse.md) +[**ListFunctionVersionResponse**](ListFunctionVersionResponse.md) ### Authorization @@ -1328,7 +1328,7 @@ Name | Type | Description | Notes ## ListLog -> ServerlessV1ServiceEnvironmentLogReadResponse ListLog(ctx, ServiceSid, EnvironmentSid, optional) +> ListLogResponse ListLog(ctx, ServiceSid, EnvironmentSid, optional) @@ -1360,7 +1360,7 @@ Name | Type | Description | Notes ### Return type -[**ServerlessV1ServiceEnvironmentLogReadResponse**](serverless_v1_service_environment_logReadResponse.md) +[**ListLogResponse**](ListLogResponse.md) ### Authorization @@ -1378,7 +1378,7 @@ Name | Type | Description | Notes ## ListService -> ServerlessV1ServiceReadResponse ListService(ctx, optional) +> ListServiceResponse ListService(ctx, optional) @@ -1403,7 +1403,7 @@ Name | Type | Description | Notes ### Return type -[**ServerlessV1ServiceReadResponse**](serverless_v1_serviceReadResponse.md) +[**ListServiceResponse**](ListServiceResponse.md) ### Authorization @@ -1421,7 +1421,7 @@ Name | Type | Description | Notes ## ListVariable -> ServerlessV1ServiceEnvironmentVariableReadResponse ListVariable(ctx, ServiceSid, EnvironmentSid, optional) +> ListVariableResponse ListVariable(ctx, ServiceSid, EnvironmentSid, optional) @@ -1450,7 +1450,7 @@ Name | Type | Description | Notes ### Return type -[**ServerlessV1ServiceEnvironmentVariableReadResponse**](serverless_v1_service_environment_variableReadResponse.md) +[**ListVariableResponse**](ListVariableResponse.md) ### Authorization diff --git a/rest/serverless/v1/docs/ServerlessV1ServiceAssetReadResponse.md b/rest/serverless/v1/docs/ListAssetResponse.md similarity index 70% rename from rest/serverless/v1/docs/ServerlessV1ServiceAssetReadResponse.md rename to rest/serverless/v1/docs/ListAssetResponse.md index 061d5d974..af9a45800 100644 --- a/rest/serverless/v1/docs/ServerlessV1ServiceAssetReadResponse.md +++ b/rest/serverless/v1/docs/ListAssetResponse.md @@ -1,11 +1,11 @@ -# ServerlessV1ServiceAssetReadResponse +# ListAssetResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Assets** | [**[]ServerlessV1ServiceAsset**](serverless.v1.service.asset.md) | | [optional] -**Meta** | [**ServerlessV1ServiceReadResponseMeta**](serverless_v1_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_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/rest/serverless/v1/docs/ServerlessV1ServiceAssetAssetVersionReadResponse.md b/rest/serverless/v1/docs/ListAssetVersionResponse.md similarity index 71% rename from rest/serverless/v1/docs/ServerlessV1ServiceAssetAssetVersionReadResponse.md rename to rest/serverless/v1/docs/ListAssetVersionResponse.md index 926ad2003..e75dac1a0 100644 --- a/rest/serverless/v1/docs/ServerlessV1ServiceAssetAssetVersionReadResponse.md +++ b/rest/serverless/v1/docs/ListAssetVersionResponse.md @@ -1,11 +1,11 @@ -# ServerlessV1ServiceAssetAssetVersionReadResponse +# ListAssetVersionResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AssetVersions** | [**[]ServerlessV1ServiceAssetAssetVersion**](serverless.v1.service.asset.asset_version.md) | | [optional] -**Meta** | [**ServerlessV1ServiceReadResponseMeta**](serverless_v1_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_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/rest/serverless/v1/docs/ServerlessV1ServiceBuildReadResponse.md b/rest/serverless/v1/docs/ListBuildResponse.md similarity index 70% rename from rest/serverless/v1/docs/ServerlessV1ServiceBuildReadResponse.md rename to rest/serverless/v1/docs/ListBuildResponse.md index 2da8658f3..147530b12 100644 --- a/rest/serverless/v1/docs/ServerlessV1ServiceBuildReadResponse.md +++ b/rest/serverless/v1/docs/ListBuildResponse.md @@ -1,11 +1,11 @@ -# ServerlessV1ServiceBuildReadResponse +# ListBuildResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Builds** | [**[]ServerlessV1ServiceBuild**](serverless.v1.service.build.md) | | [optional] -**Meta** | [**ServerlessV1ServiceReadResponseMeta**](serverless_v1_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_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/rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentDeploymentReadResponse.md b/rest/serverless/v1/docs/ListDeploymentResponse.md similarity index 70% rename from rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentDeploymentReadResponse.md rename to rest/serverless/v1/docs/ListDeploymentResponse.md index fb1e97034..383c5c744 100644 --- a/rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentDeploymentReadResponse.md +++ b/rest/serverless/v1/docs/ListDeploymentResponse.md @@ -1,11 +1,11 @@ -# ServerlessV1ServiceEnvironmentDeploymentReadResponse +# ListDeploymentResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Deployments** | [**[]ServerlessV1ServiceEnvironmentDeployment**](serverless.v1.service.environment.deployment.md) | | [optional] -**Meta** | [**ServerlessV1ServiceReadResponseMeta**](serverless_v1_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_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/rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentReadResponse.md b/rest/serverless/v1/docs/ListEnvironmentResponse.md similarity index 71% rename from rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentReadResponse.md rename to rest/serverless/v1/docs/ListEnvironmentResponse.md index 35e3462f5..7da9b9aac 100644 --- a/rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentReadResponse.md +++ b/rest/serverless/v1/docs/ListEnvironmentResponse.md @@ -1,11 +1,11 @@ -# ServerlessV1ServiceEnvironmentReadResponse +# ListEnvironmentResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Environments** | [**[]ServerlessV1ServiceEnvironment**](serverless.v1.service.environment.md) | | [optional] -**Meta** | [**ServerlessV1ServiceReadResponseMeta**](serverless_v1_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_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/rest/serverless/v1/docs/ServerlessV1ServiceFunctionReadResponse.md b/rest/serverless/v1/docs/ListFunctionResponse.md similarity index 71% rename from rest/serverless/v1/docs/ServerlessV1ServiceFunctionReadResponse.md rename to rest/serverless/v1/docs/ListFunctionResponse.md index 489159f1b..9f93ba962 100644 --- a/rest/serverless/v1/docs/ServerlessV1ServiceFunctionReadResponse.md +++ b/rest/serverless/v1/docs/ListFunctionResponse.md @@ -1,11 +1,11 @@ -# ServerlessV1ServiceFunctionReadResponse +# ListFunctionResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Functions** | [**[]ServerlessV1ServiceFunction**](serverless.v1.service.function.md) | | [optional] -**Meta** | [**ServerlessV1ServiceReadResponseMeta**](serverless_v1_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_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/rest/serverless/v1/docs/ServerlessV1ServiceFunctionFunctionVersionReadResponse.md b/rest/serverless/v1/docs/ListFunctionVersionResponse.md similarity index 71% rename from rest/serverless/v1/docs/ServerlessV1ServiceFunctionFunctionVersionReadResponse.md rename to rest/serverless/v1/docs/ListFunctionVersionResponse.md index c725f6fdd..4397ce7fd 100644 --- a/rest/serverless/v1/docs/ServerlessV1ServiceFunctionFunctionVersionReadResponse.md +++ b/rest/serverless/v1/docs/ListFunctionVersionResponse.md @@ -1,11 +1,11 @@ -# ServerlessV1ServiceFunctionFunctionVersionReadResponse +# ListFunctionVersionResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **FunctionVersions** | [**[]ServerlessV1ServiceFunctionFunctionVersion**](serverless.v1.service.function.function_version.md) | | [optional] -**Meta** | [**ServerlessV1ServiceReadResponseMeta**](serverless_v1_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_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/rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentLogReadResponse.md b/rest/serverless/v1/docs/ListLogResponse.md similarity index 70% rename from rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentLogReadResponse.md rename to rest/serverless/v1/docs/ListLogResponse.md index 243d4d800..b9081a10c 100644 --- a/rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentLogReadResponse.md +++ b/rest/serverless/v1/docs/ListLogResponse.md @@ -1,11 +1,11 @@ -# ServerlessV1ServiceEnvironmentLogReadResponse +# ListLogResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Logs** | [**[]ServerlessV1ServiceEnvironmentLog**](serverless.v1.service.environment.log.md) | | [optional] -**Meta** | [**ServerlessV1ServiceReadResponseMeta**](serverless_v1_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_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/rest/serverless/v1/docs/ServerlessV1ServiceReadResponse.md b/rest/serverless/v1/docs/ListServiceResponse.md similarity index 71% rename from rest/serverless/v1/docs/ServerlessV1ServiceReadResponse.md rename to rest/serverless/v1/docs/ListServiceResponse.md index 7669abfd4..5af456488 100644 --- a/rest/serverless/v1/docs/ServerlessV1ServiceReadResponse.md +++ b/rest/serverless/v1/docs/ListServiceResponse.md @@ -1,10 +1,10 @@ -# ServerlessV1ServiceReadResponse +# ListServiceResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**ServerlessV1ServiceReadResponseMeta**](serverless_v1_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_meta.md) | | [optional] **Services** | [**[]ServerlessV1Service**](serverless.v1.service.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/rest/serverless/v1/docs/ListServiceResponseMeta.md b/rest/serverless/v1/docs/ListServiceResponseMeta.md new file mode 100644 index 000000000..010bc7d70 --- /dev/null +++ b/rest/serverless/v1/docs/ListServiceResponseMeta.md @@ -0,0 +1,17 @@ +# ListServiceResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentVariableReadResponse.md b/rest/serverless/v1/docs/ListVariableResponse.md similarity index 70% rename from rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentVariableReadResponse.md rename to rest/serverless/v1/docs/ListVariableResponse.md index bc62e7fb4..3ae362c1a 100644 --- a/rest/serverless/v1/docs/ServerlessV1ServiceEnvironmentVariableReadResponse.md +++ b/rest/serverless/v1/docs/ListVariableResponse.md @@ -1,10 +1,10 @@ -# ServerlessV1ServiceEnvironmentVariableReadResponse +# ListVariableResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**ServerlessV1ServiceReadResponseMeta**](serverless_v1_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_meta.md) | | [optional] **Variables** | [**[]ServerlessV1ServiceEnvironmentVariable**](serverless.v1.service.environment.variable.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/rest/serverless/v1/docs/ServerlessV1ServiceReadResponseMeta.md b/rest/serverless/v1/docs/ServerlessV1ServiceReadResponseMeta.md deleted file mode 100644 index 6ac0cc4ca..000000000 --- a/rest/serverless/v1/docs/ServerlessV1ServiceReadResponseMeta.md +++ /dev/null @@ -1,17 +0,0 @@ -# ServerlessV1ServiceReadResponseMeta - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FirstPageUrl** | **string** | | [optional] -**Key** | **string** | | [optional] -**NextPageUrl** | **string** | | [optional] -**Page** | **int32** | | [optional] -**PageSize** | **int32** | | [optional] -**PreviousPageUrl** | **string** | | [optional] -**Url** | **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/rest/serverless/v1/model_create_asset_request.go b/rest/serverless/v1/model_create_asset_request.go index 157c25187..b5f5d2e99 100644 --- a/rest/serverless/v1/model_create_asset_request.go +++ b/rest/serverless/v1/model_create_asset_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/serverless/v1/model_create_build_request.go b/rest/serverless/v1/model_create_build_request.go index ea862e083..27d64fccb 100644 --- a/rest/serverless/v1/model_create_build_request.go +++ b/rest/serverless/v1/model_create_build_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/serverless/v1/model_create_deployment_request.go b/rest/serverless/v1/model_create_deployment_request.go index 7d9d149a4..1c434f3ad 100644 --- a/rest/serverless/v1/model_create_deployment_request.go +++ b/rest/serverless/v1/model_create_deployment_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/serverless/v1/model_create_environment_request.go b/rest/serverless/v1/model_create_environment_request.go index 31e138902..f45429923 100644 --- a/rest/serverless/v1/model_create_environment_request.go +++ b/rest/serverless/v1/model_create_environment_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/serverless/v1/model_create_function_request.go b/rest/serverless/v1/model_create_function_request.go index da265b67e..bd05a3f24 100644 --- a/rest/serverless/v1/model_create_function_request.go +++ b/rest/serverless/v1/model_create_function_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/serverless/v1/model_create_service_request.go b/rest/serverless/v1/model_create_service_request.go index 89a6ce4f1..131244719 100644 --- a/rest/serverless/v1/model_create_service_request.go +++ b/rest/serverless/v1/model_create_service_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/serverless/v1/model_create_variable_request.go b/rest/serverless/v1/model_create_variable_request.go index 1780d4378..c65c21199 100644 --- a/rest/serverless/v1/model_create_variable_request.go +++ b/rest/serverless/v1/model_create_variable_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/serverless/v1/model_serverless_v1_service_asset_read_response.go b/rest/serverless/v1/model_list_asset_response.go similarity index 52% rename from rest/serverless/v1/model_serverless_v1_service_asset_read_response.go rename to rest/serverless/v1/model_list_asset_response.go index cc5212615..d898d0dab 100644 --- a/rest/serverless/v1/model_serverless_v1_service_asset_read_response.go +++ b/rest/serverless/v1/model_list_asset_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ServerlessV1ServiceAssetReadResponse struct for ServerlessV1ServiceAssetReadResponse -type ServerlessV1ServiceAssetReadResponse struct { +// ListAssetResponse struct for ListAssetResponse +type ListAssetResponse struct { Assets []ServerlessV1ServiceAsset `json:"Assets,omitempty"` - Meta ServerlessV1ServiceReadResponseMeta `json:"Meta,omitempty"` + Meta ListServiceResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/serverless/v1/model_serverless_v1_service_asset_asset_version_read_response.go b/rest/serverless/v1/model_list_asset_version_response.go similarity index 51% rename from rest/serverless/v1/model_serverless_v1_service_asset_asset_version_read_response.go rename to rest/serverless/v1/model_list_asset_version_response.go index b4ad54ef3..d21c23f44 100644 --- a/rest/serverless/v1/model_serverless_v1_service_asset_asset_version_read_response.go +++ b/rest/serverless/v1/model_list_asset_version_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ServerlessV1ServiceAssetAssetVersionReadResponse struct for ServerlessV1ServiceAssetAssetVersionReadResponse -type ServerlessV1ServiceAssetAssetVersionReadResponse struct { +// ListAssetVersionResponse struct for ListAssetVersionResponse +type ListAssetVersionResponse struct { AssetVersions []ServerlessV1ServiceAssetAssetVersion `json:"AssetVersions,omitempty"` - Meta ServerlessV1ServiceReadResponseMeta `json:"Meta,omitempty"` + Meta ListServiceResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/serverless/v1/model_serverless_v1_service_build_read_response.go b/rest/serverless/v1/model_list_build_response.go similarity index 52% rename from rest/serverless/v1/model_serverless_v1_service_build_read_response.go rename to rest/serverless/v1/model_list_build_response.go index 5232c079d..828600631 100644 --- a/rest/serverless/v1/model_serverless_v1_service_build_read_response.go +++ b/rest/serverless/v1/model_list_build_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ServerlessV1ServiceBuildReadResponse struct for ServerlessV1ServiceBuildReadResponse -type ServerlessV1ServiceBuildReadResponse struct { +// ListBuildResponse struct for ListBuildResponse +type ListBuildResponse struct { Builds []ServerlessV1ServiceBuild `json:"Builds,omitempty"` - Meta ServerlessV1ServiceReadResponseMeta `json:"Meta,omitempty"` + Meta ListServiceResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/serverless/v1/model_serverless_v1_service_environment_deployment_read_response.go b/rest/serverless/v1/model_list_deployment_response.go similarity index 50% rename from rest/serverless/v1/model_serverless_v1_service_environment_deployment_read_response.go rename to rest/serverless/v1/model_list_deployment_response.go index b9868cc65..1ea4d9d26 100644 --- a/rest/serverless/v1/model_serverless_v1_service_environment_deployment_read_response.go +++ b/rest/serverless/v1/model_list_deployment_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ServerlessV1ServiceEnvironmentDeploymentReadResponse struct for ServerlessV1ServiceEnvironmentDeploymentReadResponse -type ServerlessV1ServiceEnvironmentDeploymentReadResponse struct { +// ListDeploymentResponse struct for ListDeploymentResponse +type ListDeploymentResponse struct { Deployments []ServerlessV1ServiceEnvironmentDeployment `json:"Deployments,omitempty"` - Meta ServerlessV1ServiceReadResponseMeta `json:"Meta,omitempty"` + Meta ListServiceResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/serverless/v1/model_serverless_v1_service_environment_read_response.go b/rest/serverless/v1/model_list_environment_response.go similarity index 52% rename from rest/serverless/v1/model_serverless_v1_service_environment_read_response.go rename to rest/serverless/v1/model_list_environment_response.go index 58907d9c0..a686b3d11 100644 --- a/rest/serverless/v1/model_serverless_v1_service_environment_read_response.go +++ b/rest/serverless/v1/model_list_environment_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ServerlessV1ServiceEnvironmentReadResponse struct for ServerlessV1ServiceEnvironmentReadResponse -type ServerlessV1ServiceEnvironmentReadResponse struct { +// ListEnvironmentResponse struct for ListEnvironmentResponse +type ListEnvironmentResponse struct { Environments []ServerlessV1ServiceEnvironment `json:"Environments,omitempty"` - Meta ServerlessV1ServiceReadResponseMeta `json:"Meta,omitempty"` + Meta ListServiceResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/serverless/v1/model_serverless_v1_service_function_read_response.go b/rest/serverless/v1/model_list_function_response.go similarity index 52% rename from rest/serverless/v1/model_serverless_v1_service_function_read_response.go rename to rest/serverless/v1/model_list_function_response.go index 7c9f720fd..e370fdd55 100644 --- a/rest/serverless/v1/model_serverless_v1_service_function_read_response.go +++ b/rest/serverless/v1/model_list_function_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ServerlessV1ServiceFunctionReadResponse struct for ServerlessV1ServiceFunctionReadResponse -type ServerlessV1ServiceFunctionReadResponse struct { +// ListFunctionResponse struct for ListFunctionResponse +type ListFunctionResponse struct { Functions []ServerlessV1ServiceFunction `json:"Functions,omitempty"` - Meta ServerlessV1ServiceReadResponseMeta `json:"Meta,omitempty"` + Meta ListServiceResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/serverless/v1/model_serverless_v1_service_function_function_version_read_response.go b/rest/serverless/v1/model_list_function_version_response.go similarity index 50% rename from rest/serverless/v1/model_serverless_v1_service_function_function_version_read_response.go rename to rest/serverless/v1/model_list_function_version_response.go index c98b5e40b..476c4e9b6 100644 --- a/rest/serverless/v1/model_serverless_v1_service_function_function_version_read_response.go +++ b/rest/serverless/v1/model_list_function_version_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ServerlessV1ServiceFunctionFunctionVersionReadResponse struct for ServerlessV1ServiceFunctionFunctionVersionReadResponse -type ServerlessV1ServiceFunctionFunctionVersionReadResponse struct { +// ListFunctionVersionResponse struct for ListFunctionVersionResponse +type ListFunctionVersionResponse struct { FunctionVersions []ServerlessV1ServiceFunctionFunctionVersion `json:"FunctionVersions,omitempty"` - Meta ServerlessV1ServiceReadResponseMeta `json:"Meta,omitempty"` + Meta ListServiceResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/serverless/v1/model_serverless_v1_service_environment_log_read_response.go b/rest/serverless/v1/model_list_log_response.go similarity index 50% rename from rest/serverless/v1/model_serverless_v1_service_environment_log_read_response.go rename to rest/serverless/v1/model_list_log_response.go index 70d33c34b..71e207db9 100644 --- a/rest/serverless/v1/model_serverless_v1_service_environment_log_read_response.go +++ b/rest/serverless/v1/model_list_log_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ServerlessV1ServiceEnvironmentLogReadResponse struct for ServerlessV1ServiceEnvironmentLogReadResponse -type ServerlessV1ServiceEnvironmentLogReadResponse struct { +// ListLogResponse struct for ListLogResponse +type ListLogResponse struct { Logs []ServerlessV1ServiceEnvironmentLog `json:"Logs,omitempty"` - Meta ServerlessV1ServiceReadResponseMeta `json:"Meta,omitempty"` + Meta ListServiceResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/serverless/v1/model_serverless_v1_service_read_response.go b/rest/serverless/v1/model_list_service_response.go similarity index 54% rename from rest/serverless/v1/model_serverless_v1_service_read_response.go rename to rest/serverless/v1/model_list_service_response.go index 3a3d7ccd6..c530b0f2c 100644 --- a/rest/serverless/v1/model_serverless_v1_service_read_response.go +++ b/rest/serverless/v1/model_list_service_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ServerlessV1ServiceReadResponse struct for ServerlessV1ServiceReadResponse -type ServerlessV1ServiceReadResponse struct { - Meta ServerlessV1ServiceReadResponseMeta `json:"Meta,omitempty"` +// ListServiceResponse struct for ListServiceResponse +type ListServiceResponse struct { + Meta ListServiceResponseMeta `json:"Meta,omitempty"` Services []ServerlessV1Service `json:"Services,omitempty"` } diff --git a/rest/serverless/v1/model_serverless_v1_service_read_response_meta.go b/rest/serverless/v1/model_list_service_response_meta.go similarity index 76% rename from rest/serverless/v1/model_serverless_v1_service_read_response_meta.go rename to rest/serverless/v1/model_list_service_response_meta.go index 1967b1e39..1161a2969 100644 --- a/rest/serverless/v1/model_serverless_v1_service_read_response_meta.go +++ b/rest/serverless/v1/model_list_service_response_meta.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ServerlessV1ServiceReadResponseMeta struct for ServerlessV1ServiceReadResponseMeta -type ServerlessV1ServiceReadResponseMeta struct { +// ListServiceResponseMeta struct for ListServiceResponseMeta +type ListServiceResponseMeta struct { FirstPageUrl string `json:"FirstPageUrl,omitempty"` Key string `json:"Key,omitempty"` NextPageUrl string `json:"NextPageUrl,omitempty"` diff --git a/rest/serverless/v1/model_serverless_v1_service_environment_variable_read_response.go b/rest/serverless/v1/model_list_variable_response.go similarity index 50% rename from rest/serverless/v1/model_serverless_v1_service_environment_variable_read_response.go rename to rest/serverless/v1/model_list_variable_response.go index fe2f59253..63ba50218 100644 --- a/rest/serverless/v1/model_serverless_v1_service_environment_variable_read_response.go +++ b/rest/serverless/v1/model_list_variable_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// ServerlessV1ServiceEnvironmentVariableReadResponse struct for ServerlessV1ServiceEnvironmentVariableReadResponse -type ServerlessV1ServiceEnvironmentVariableReadResponse struct { - Meta ServerlessV1ServiceReadResponseMeta `json:"Meta,omitempty"` +// ListVariableResponse struct for ListVariableResponse +type ListVariableResponse struct { + Meta ListServiceResponseMeta `json:"Meta,omitempty"` Variables []ServerlessV1ServiceEnvironmentVariable `json:"Variables,omitempty"` } diff --git a/rest/serverless/v1/model_serverless_v1_service.go b/rest/serverless/v1/model_serverless_v1_service.go index 7c78bb894..4734f5a8a 100644 --- a/rest/serverless/v1/model_serverless_v1_service.go +++ b/rest/serverless/v1/model_serverless_v1_service.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/serverless/v1/model_serverless_v1_service_asset.go b/rest/serverless/v1/model_serverless_v1_service_asset.go index 4abc69ed2..99b7226fa 100644 --- a/rest/serverless/v1/model_serverless_v1_service_asset.go +++ b/rest/serverless/v1/model_serverless_v1_service_asset.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/serverless/v1/model_serverless_v1_service_asset_asset_version.go b/rest/serverless/v1/model_serverless_v1_service_asset_asset_version.go index 63cf20bc3..06e6bacc3 100644 --- a/rest/serverless/v1/model_serverless_v1_service_asset_asset_version.go +++ b/rest/serverless/v1/model_serverless_v1_service_asset_asset_version.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/serverless/v1/model_serverless_v1_service_build.go b/rest/serverless/v1/model_serverless_v1_service_build.go index 682162b99..5d29a7e46 100644 --- a/rest/serverless/v1/model_serverless_v1_service_build.go +++ b/rest/serverless/v1/model_serverless_v1_service_build.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/serverless/v1/model_serverless_v1_service_build_build_status.go b/rest/serverless/v1/model_serverless_v1_service_build_build_status.go index 807c09852..b28771f9f 100644 --- a/rest/serverless/v1/model_serverless_v1_service_build_build_status.go +++ b/rest/serverless/v1/model_serverless_v1_service_build_build_status.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/serverless/v1/model_serverless_v1_service_environment.go b/rest/serverless/v1/model_serverless_v1_service_environment.go index 0112499b6..55c647470 100644 --- a/rest/serverless/v1/model_serverless_v1_service_environment.go +++ b/rest/serverless/v1/model_serverless_v1_service_environment.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/serverless/v1/model_serverless_v1_service_environment_deployment.go b/rest/serverless/v1/model_serverless_v1_service_environment_deployment.go index 3f2ccb1b8..e18a81473 100644 --- a/rest/serverless/v1/model_serverless_v1_service_environment_deployment.go +++ b/rest/serverless/v1/model_serverless_v1_service_environment_deployment.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/serverless/v1/model_serverless_v1_service_environment_log.go b/rest/serverless/v1/model_serverless_v1_service_environment_log.go index fa029fa52..6f963b733 100644 --- a/rest/serverless/v1/model_serverless_v1_service_environment_log.go +++ b/rest/serverless/v1/model_serverless_v1_service_environment_log.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/serverless/v1/model_serverless_v1_service_environment_variable.go b/rest/serverless/v1/model_serverless_v1_service_environment_variable.go index 178dedfac..6ef14a9da 100644 --- a/rest/serverless/v1/model_serverless_v1_service_environment_variable.go +++ b/rest/serverless/v1/model_serverless_v1_service_environment_variable.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/serverless/v1/model_serverless_v1_service_function.go b/rest/serverless/v1/model_serverless_v1_service_function.go index ec6400a87..d1c358b0c 100644 --- a/rest/serverless/v1/model_serverless_v1_service_function.go +++ b/rest/serverless/v1/model_serverless_v1_service_function.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/serverless/v1/model_serverless_v1_service_function_function_version.go b/rest/serverless/v1/model_serverless_v1_service_function_function_version.go index b4ab6056d..f788dd70a 100644 --- a/rest/serverless/v1/model_serverless_v1_service_function_function_version.go +++ b/rest/serverless/v1/model_serverless_v1_service_function_function_version.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/serverless/v1/model_serverless_v1_service_function_function_version_function_version_content.go b/rest/serverless/v1/model_serverless_v1_service_function_function_version_function_version_content.go index 6a7ea470a..25ff238c3 100644 --- a/rest/serverless/v1/model_serverless_v1_service_function_function_version_function_version_content.go +++ b/rest/serverless/v1/model_serverless_v1_service_function_function_version_function_version_content.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/serverless/v1/model_update_asset_request.go b/rest/serverless/v1/model_update_asset_request.go index 7772d0163..90defdfd9 100644 --- a/rest/serverless/v1/model_update_asset_request.go +++ b/rest/serverless/v1/model_update_asset_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/serverless/v1/model_update_function_request.go b/rest/serverless/v1/model_update_function_request.go index 7d0e2cab5..bb8d12739 100644 --- a/rest/serverless/v1/model_update_function_request.go +++ b/rest/serverless/v1/model_update_function_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/serverless/v1/model_update_service_request.go b/rest/serverless/v1/model_update_service_request.go index 5e5c9c7dc..394badce1 100644 --- a/rest/serverless/v1/model_update_service_request.go +++ b/rest/serverless/v1/model_update_service_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/serverless/v1/model_update_variable_request.go b/rest/serverless/v1/model_update_variable_request.go index 23e92e99a..bb57e2a7c 100644 --- a/rest/serverless/v1/model_update_variable_request.go +++ b/rest/serverless/v1/model_update_variable_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/serverless/v1/response.go b/rest/serverless/v1/response.go index c4f5ba5ee..132da729c 100644 --- a/rest/serverless/v1/response.go +++ b/rest/serverless/v1/response.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/studio/v1/README.md b/rest/studio/v1/README.md index 09dea5b3d..aa3cc4ac8 100644 --- a/rest/studio/v1/README.md +++ b/rest/studio/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 5.15.0 +- API version: 1.0.0 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) @@ -57,21 +57,21 @@ Class | Method | HTTP request | Description - [CreateEngagementRequest](docs/CreateEngagementRequest.md) - [CreateExecutionRequest](docs/CreateExecutionRequest.md) + - [ListEngagementResponse](docs/ListEngagementResponse.md) + - [ListExecutionResponse](docs/ListExecutionResponse.md) + - [ListExecutionStepResponse](docs/ListExecutionStepResponse.md) + - [ListFlowResponse](docs/ListFlowResponse.md) + - [ListFlowResponseMeta](docs/ListFlowResponseMeta.md) + - [ListStepResponse](docs/ListStepResponse.md) - [StudioV1Flow](docs/StudioV1Flow.md) - [StudioV1FlowEngagement](docs/StudioV1FlowEngagement.md) - [StudioV1FlowEngagementEngagementContext](docs/StudioV1FlowEngagementEngagementContext.md) - - [StudioV1FlowEngagementReadResponse](docs/StudioV1FlowEngagementReadResponse.md) - [StudioV1FlowEngagementStep](docs/StudioV1FlowEngagementStep.md) - - [StudioV1FlowEngagementStepReadResponse](docs/StudioV1FlowEngagementStepReadResponse.md) - [StudioV1FlowEngagementStepStepContext](docs/StudioV1FlowEngagementStepStepContext.md) - [StudioV1FlowExecution](docs/StudioV1FlowExecution.md) - [StudioV1FlowExecutionExecutionContext](docs/StudioV1FlowExecutionExecutionContext.md) - [StudioV1FlowExecutionExecutionStep](docs/StudioV1FlowExecutionExecutionStep.md) - [StudioV1FlowExecutionExecutionStepExecutionStepContext](docs/StudioV1FlowExecutionExecutionStepExecutionStepContext.md) - - [StudioV1FlowExecutionExecutionStepReadResponse](docs/StudioV1FlowExecutionExecutionStepReadResponse.md) - - [StudioV1FlowExecutionReadResponse](docs/StudioV1FlowExecutionReadResponse.md) - - [StudioV1FlowReadResponse](docs/StudioV1FlowReadResponse.md) - - [StudioV1FlowReadResponseMeta](docs/StudioV1FlowReadResponseMeta.md) - [UpdateExecutionRequest](docs/UpdateExecutionRequest.md) diff --git a/rest/studio/v1/api_default.go b/rest/studio/v1/api_default.go index ba25f75ef..ec516d7a8 100644 --- a/rest/studio/v1/api_default.go +++ b/rest/studio/v1/api_default.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -27,14 +27,14 @@ type DefaultApiService struct { func NewDefaultApiService(client *twilio.Client) *DefaultApiService { return &DefaultApiService { client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + baseURL: fmt.Sprintf("https://studio.twilio.com"), } } // CreateEngagementParams Optional parameters for the method 'CreateEngagement' type CreateEngagementParams struct { - From *string `json:"From,omitempty"` - Parameters *map[string]interface{} `json:"Parameters,omitempty"` - To *string `json:"To,omitempty"` + From *string `json:"From,omitempty"` + Parameters *map[string]interface{} `json:"Parameters,omitempty"` + To *string `json:"To,omitempty"` } /* @@ -88,9 +88,9 @@ func (c *DefaultApiService) CreateEngagement(FlowSid string, params *CreateEngag } // CreateExecutionParams Optional parameters for the method 'CreateExecution' type CreateExecutionParams struct { - From *string `json:"From,omitempty"` - Parameters *map[string]interface{} `json:"Parameters,omitempty"` - To *string `json:"To,omitempty"` + From *string `json:"From,omitempty"` + Parameters *map[string]interface{} `json:"Parameters,omitempty"` + To *string `json:"To,omitempty"` } /* @@ -526,7 +526,7 @@ func (c *DefaultApiService) FetchStepContext(FlowSid string, EngagementSid strin } // ListEngagementParams Optional parameters for the method 'ListEngagement' type ListEngagementParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -535,9 +535,9 @@ Retrieve a list of all Engagements for the Flow. * @param FlowSid The SID of the Flow to read Engagements from. * @param optional nil or *ListEngagementOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return StudioV1FlowEngagementReadResponse +@return ListEngagementResponse */ -func (c *DefaultApiService) ListEngagement(FlowSid string, params *ListEngagementParams) (*StudioV1FlowEngagementReadResponse, error) { +func (c *DefaultApiService) ListEngagement(FlowSid string, params *ListEngagementParams) (*ListEngagementResponse, error) { path := "/v1/Flows/{FlowSid}/Engagements" path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) @@ -557,7 +557,7 @@ func (c *DefaultApiService) ListEngagement(FlowSid string, params *ListEngagemen defer resp.Body.Close() - ps := &StudioV1FlowEngagementReadResponse{} + ps := &ListEngagementResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -566,9 +566,9 @@ func (c *DefaultApiService) ListEngagement(FlowSid string, params *ListEngagemen } // ListExecutionParams Optional parameters for the method 'ListExecution' type ListExecutionParams struct { - DateCreatedFrom *time.Time `json:"DateCreatedFrom,omitempty"` - DateCreatedTo *time.Time `json:"DateCreatedTo,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + DateCreatedFrom *time.Time `json:"DateCreatedFrom,omitempty"` + DateCreatedTo *time.Time `json:"DateCreatedTo,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -579,9 +579,9 @@ Retrieve a list of all Executions for the Flow. * @param "DateCreatedFrom" (time.Time) - Only show Execution resources starting on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. * @param "DateCreatedTo" (time.Time) - Only show Execution resources starting before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return StudioV1FlowExecutionReadResponse +@return ListExecutionResponse */ -func (c *DefaultApiService) ListExecution(FlowSid string, params *ListExecutionParams) (*StudioV1FlowExecutionReadResponse, error) { +func (c *DefaultApiService) ListExecution(FlowSid string, params *ListExecutionParams) (*ListExecutionResponse, error) { path := "/v1/Flows/{FlowSid}/Executions" path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) @@ -607,7 +607,7 @@ func (c *DefaultApiService) ListExecution(FlowSid string, params *ListExecutionP defer resp.Body.Close() - ps := &StudioV1FlowExecutionReadResponse{} + ps := &ListExecutionResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -616,7 +616,7 @@ func (c *DefaultApiService) ListExecution(FlowSid string, params *ListExecutionP } // ListExecutionStepParams Optional parameters for the method 'ListExecutionStep' type ListExecutionStepParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -626,9 +626,9 @@ Retrieve a list of all Steps for an Execution. * @param ExecutionSid The SID of the Execution with the Steps to read. * @param optional nil or *ListExecutionStepOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return StudioV1FlowExecutionExecutionStepReadResponse +@return ListExecutionStepResponse */ -func (c *DefaultApiService) ListExecutionStep(FlowSid string, ExecutionSid string, params *ListExecutionStepParams) (*StudioV1FlowExecutionExecutionStepReadResponse, error) { +func (c *DefaultApiService) ListExecutionStep(FlowSid string, ExecutionSid string, params *ListExecutionStepParams) (*ListExecutionStepResponse, error) { path := "/v1/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps" path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) path = strings.Replace(path, "{"+"ExecutionSid"+"}", ExecutionSid, -1) @@ -649,7 +649,7 @@ func (c *DefaultApiService) ListExecutionStep(FlowSid string, ExecutionSid strin defer resp.Body.Close() - ps := &StudioV1FlowExecutionExecutionStepReadResponse{} + ps := &ListExecutionStepResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -658,7 +658,7 @@ func (c *DefaultApiService) ListExecutionStep(FlowSid string, ExecutionSid strin } // ListFlowParams Optional parameters for the method 'ListFlow' type ListFlowParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -666,9 +666,9 @@ ListFlow Method for ListFlow Retrieve a list of all Flows. * @param optional nil or *ListFlowOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return StudioV1FlowReadResponse +@return ListFlowResponse */ -func (c *DefaultApiService) ListFlow(params *ListFlowParams) (*StudioV1FlowReadResponse, error) { +func (c *DefaultApiService) ListFlow(params *ListFlowParams) (*ListFlowResponse, error) { path := "/v1/Flows" @@ -687,7 +687,7 @@ func (c *DefaultApiService) ListFlow(params *ListFlowParams) (*StudioV1FlowReadR defer resp.Body.Close() - ps := &StudioV1FlowReadResponse{} + ps := &ListFlowResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -696,7 +696,7 @@ func (c *DefaultApiService) ListFlow(params *ListFlowParams) (*StudioV1FlowReadR } // ListStepParams Optional parameters for the method 'ListStep' type ListStepParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -706,9 +706,9 @@ Retrieve a list of all Steps for an Engagement. * @param EngagementSid The SID of the Engagement with the Step to read. * @param optional nil or *ListStepOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return StudioV1FlowEngagementStepReadResponse +@return ListStepResponse */ -func (c *DefaultApiService) ListStep(FlowSid string, EngagementSid string, params *ListStepParams) (*StudioV1FlowEngagementStepReadResponse, error) { +func (c *DefaultApiService) ListStep(FlowSid string, EngagementSid string, params *ListStepParams) (*ListStepResponse, error) { path := "/v1/Flows/{FlowSid}/Engagements/{EngagementSid}/Steps" path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) path = strings.Replace(path, "{"+"EngagementSid"+"}", EngagementSid, -1) @@ -729,7 +729,7 @@ func (c *DefaultApiService) ListStep(FlowSid string, EngagementSid string, param defer resp.Body.Close() - ps := &StudioV1FlowEngagementStepReadResponse{} + ps := &ListStepResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -738,7 +738,7 @@ func (c *DefaultApiService) ListStep(FlowSid string, EngagementSid string, param } // UpdateExecutionParams Optional parameters for the method 'UpdateExecution' type UpdateExecutionParams struct { - Status *string `json:"Status,omitempty"` + Status *string `json:"Status,omitempty"` } /* diff --git a/rest/studio/v1/docs/DefaultApi.md b/rest/studio/v1/docs/DefaultApi.md index e015e9fdb..fbb4d546a 100644 --- a/rest/studio/v1/docs/DefaultApi.md +++ b/rest/studio/v1/docs/DefaultApi.md @@ -545,7 +545,7 @@ Name | Type | Description | Notes ## ListEngagement -> StudioV1FlowEngagementReadResponse ListEngagement(ctx, FlowSid, optional) +> ListEngagementResponse ListEngagement(ctx, FlowSid, optional) @@ -572,7 +572,7 @@ Name | Type | Description | Notes ### Return type -[**StudioV1FlowEngagementReadResponse**](studio_v1_flow_engagementReadResponse.md) +[**ListEngagementResponse**](ListEngagementResponse.md) ### Authorization @@ -590,7 +590,7 @@ Name | Type | Description | Notes ## ListExecution -> StudioV1FlowExecutionReadResponse ListExecution(ctx, FlowSid, optional) +> ListExecutionResponse ListExecution(ctx, FlowSid, optional) @@ -619,7 +619,7 @@ Name | Type | Description | Notes ### Return type -[**StudioV1FlowExecutionReadResponse**](studio_v1_flow_executionReadResponse.md) +[**ListExecutionResponse**](ListExecutionResponse.md) ### Authorization @@ -637,7 +637,7 @@ Name | Type | Description | Notes ## ListExecutionStep -> StudioV1FlowExecutionExecutionStepReadResponse ListExecutionStep(ctx, FlowSid, ExecutionSid, optional) +> ListExecutionStepResponse ListExecutionStep(ctx, FlowSid, ExecutionSid, optional) @@ -666,7 +666,7 @@ Name | Type | Description | Notes ### Return type -[**StudioV1FlowExecutionExecutionStepReadResponse**](studio_v1_flow_execution_execution_stepReadResponse.md) +[**ListExecutionStepResponse**](ListExecutionStepResponse.md) ### Authorization @@ -684,7 +684,7 @@ Name | Type | Description | Notes ## ListFlow -> StudioV1FlowReadResponse ListFlow(ctx, optional) +> ListFlowResponse ListFlow(ctx, optional) @@ -709,7 +709,7 @@ Name | Type | Description | Notes ### Return type -[**StudioV1FlowReadResponse**](studio_v1_flowReadResponse.md) +[**ListFlowResponse**](ListFlowResponse.md) ### Authorization @@ -727,7 +727,7 @@ Name | Type | Description | Notes ## ListStep -> StudioV1FlowEngagementStepReadResponse ListStep(ctx, FlowSid, EngagementSid, optional) +> ListStepResponse ListStep(ctx, FlowSid, EngagementSid, optional) @@ -756,7 +756,7 @@ Name | Type | Description | Notes ### Return type -[**StudioV1FlowEngagementStepReadResponse**](studio_v1_flow_engagement_stepReadResponse.md) +[**ListStepResponse**](ListStepResponse.md) ### Authorization diff --git a/rest/studio/v1/docs/StudioV1FlowEngagementReadResponse.md b/rest/studio/v1/docs/ListEngagementResponse.md similarity index 73% rename from rest/studio/v1/docs/StudioV1FlowEngagementReadResponse.md rename to rest/studio/v1/docs/ListEngagementResponse.md index 6541ebdcc..c8b110201 100644 --- a/rest/studio/v1/docs/StudioV1FlowEngagementReadResponse.md +++ b/rest/studio/v1/docs/ListEngagementResponse.md @@ -1,11 +1,11 @@ -# StudioV1FlowEngagementReadResponse +# ListEngagementResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Engagements** | [**[]StudioV1FlowEngagement**](studio.v1.flow.engagement.md) | | [optional] -**Meta** | [**StudioV1FlowReadResponseMeta**](studio_v1_flowReadResponse_meta.md) | | [optional] +**Meta** | [**ListFlowResponseMeta**](ListFlowResponse_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/rest/studio/v1/docs/StudioV1FlowExecutionReadResponse.md b/rest/studio/v1/docs/ListExecutionResponse.md similarity index 73% rename from rest/studio/v1/docs/StudioV1FlowExecutionReadResponse.md rename to rest/studio/v1/docs/ListExecutionResponse.md index 72c365434..325069f08 100644 --- a/rest/studio/v1/docs/StudioV1FlowExecutionReadResponse.md +++ b/rest/studio/v1/docs/ListExecutionResponse.md @@ -1,11 +1,11 @@ -# StudioV1FlowExecutionReadResponse +# ListExecutionResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Executions** | [**[]StudioV1FlowExecution**](studio.v1.flow.execution.md) | | [optional] -**Meta** | [**StudioV1FlowReadResponseMeta**](studio_v1_flowReadResponse_meta.md) | | [optional] +**Meta** | [**ListFlowResponseMeta**](ListFlowResponse_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/rest/studio/v1/docs/StudioV1FlowExecutionExecutionStepReadResponse.md b/rest/studio/v1/docs/ListExecutionStepResponse.md similarity index 72% rename from rest/studio/v1/docs/StudioV1FlowExecutionExecutionStepReadResponse.md rename to rest/studio/v1/docs/ListExecutionStepResponse.md index 82869363f..f5860216a 100644 --- a/rest/studio/v1/docs/StudioV1FlowExecutionExecutionStepReadResponse.md +++ b/rest/studio/v1/docs/ListExecutionStepResponse.md @@ -1,10 +1,10 @@ -# StudioV1FlowExecutionExecutionStepReadResponse +# ListExecutionStepResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**StudioV1FlowReadResponseMeta**](studio_v1_flowReadResponse_meta.md) | | [optional] +**Meta** | [**ListFlowResponseMeta**](ListFlowResponse_meta.md) | | [optional] **Steps** | [**[]StudioV1FlowExecutionExecutionStep**](studio.v1.flow.execution.execution_step.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/rest/studio/v1/docs/StudioV1FlowReadResponse.md b/rest/studio/v1/docs/ListFlowResponse.md similarity index 73% rename from rest/studio/v1/docs/StudioV1FlowReadResponse.md rename to rest/studio/v1/docs/ListFlowResponse.md index 05c0fc66c..6e8ae13bd 100644 --- a/rest/studio/v1/docs/StudioV1FlowReadResponse.md +++ b/rest/studio/v1/docs/ListFlowResponse.md @@ -1,11 +1,11 @@ -# StudioV1FlowReadResponse +# ListFlowResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Flows** | [**[]StudioV1Flow**](studio.v1.flow.md) | | [optional] -**Meta** | [**StudioV1FlowReadResponseMeta**](studio_v1_flowReadResponse_meta.md) | | [optional] +**Meta** | [**ListFlowResponseMeta**](ListFlowResponse_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/rest/studio/v1/docs/ListFlowResponseMeta.md b/rest/studio/v1/docs/ListFlowResponseMeta.md new file mode 100644 index 000000000..c0868ff93 --- /dev/null +++ b/rest/studio/v1/docs/ListFlowResponseMeta.md @@ -0,0 +1,17 @@ +# ListFlowResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/studio/v1/docs/StudioV1FlowEngagementStepReadResponse.md b/rest/studio/v1/docs/ListStepResponse.md similarity index 72% rename from rest/studio/v1/docs/StudioV1FlowEngagementStepReadResponse.md rename to rest/studio/v1/docs/ListStepResponse.md index 9fc77f9e6..5bc063d5a 100644 --- a/rest/studio/v1/docs/StudioV1FlowEngagementStepReadResponse.md +++ b/rest/studio/v1/docs/ListStepResponse.md @@ -1,10 +1,10 @@ -# StudioV1FlowEngagementStepReadResponse +# ListStepResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**StudioV1FlowReadResponseMeta**](studio_v1_flowReadResponse_meta.md) | | [optional] +**Meta** | [**ListFlowResponseMeta**](ListFlowResponse_meta.md) | | [optional] **Steps** | [**[]StudioV1FlowEngagementStep**](studio.v1.flow.engagement.step.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/rest/studio/v1/model_create_engagement_request.go b/rest/studio/v1/model_create_engagement_request.go index 7e7bc0b51..c630bad0e 100644 --- a/rest/studio/v1/model_create_engagement_request.go +++ b/rest/studio/v1/model_create_engagement_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/studio/v1/model_create_execution_request.go b/rest/studio/v1/model_create_execution_request.go index 419513734..0a9c1d66a 100644 --- a/rest/studio/v1/model_create_execution_request.go +++ b/rest/studio/v1/model_create_execution_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/studio/v1/model_studio_v1_flow_engagement_read_response.go b/rest/studio/v1/model_list_engagement_response.go similarity index 54% rename from rest/studio/v1/model_studio_v1_flow_engagement_read_response.go rename to rest/studio/v1/model_list_engagement_response.go index 99163ab1c..ceb55cfce 100644 --- a/rest/studio/v1/model_studio_v1_flow_engagement_read_response.go +++ b/rest/studio/v1/model_list_engagement_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// StudioV1FlowEngagementReadResponse struct for StudioV1FlowEngagementReadResponse -type StudioV1FlowEngagementReadResponse struct { +// ListEngagementResponse struct for ListEngagementResponse +type ListEngagementResponse struct { Engagements []StudioV1FlowEngagement `json:"Engagements,omitempty"` - Meta StudioV1FlowReadResponseMeta `json:"Meta,omitempty"` + Meta ListFlowResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/studio/v1/model_studio_v1_flow_execution_read_response.go b/rest/studio/v1/model_list_execution_response.go similarity index 54% rename from rest/studio/v1/model_studio_v1_flow_execution_read_response.go rename to rest/studio/v1/model_list_execution_response.go index 14ebfa0ab..eb5cf4a14 100644 --- a/rest/studio/v1/model_studio_v1_flow_execution_read_response.go +++ b/rest/studio/v1/model_list_execution_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// StudioV1FlowExecutionReadResponse struct for StudioV1FlowExecutionReadResponse -type StudioV1FlowExecutionReadResponse struct { +// ListExecutionResponse struct for ListExecutionResponse +type ListExecutionResponse struct { Executions []StudioV1FlowExecution `json:"Executions,omitempty"` - Meta StudioV1FlowReadResponseMeta `json:"Meta,omitempty"` + Meta ListFlowResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/studio/v1/model_studio_v1_flow_execution_execution_step_read_response.go b/rest/studio/v1/model_list_execution_step_response.go similarity index 50% rename from rest/studio/v1/model_studio_v1_flow_execution_execution_step_read_response.go rename to rest/studio/v1/model_list_execution_step_response.go index 8fb1d2ea9..18a7616c5 100644 --- a/rest/studio/v1/model_studio_v1_flow_execution_execution_step_read_response.go +++ b/rest/studio/v1/model_list_execution_step_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// StudioV1FlowExecutionExecutionStepReadResponse struct for StudioV1FlowExecutionExecutionStepReadResponse -type StudioV1FlowExecutionExecutionStepReadResponse struct { - Meta StudioV1FlowReadResponseMeta `json:"Meta,omitempty"` +// ListExecutionStepResponse struct for ListExecutionStepResponse +type ListExecutionStepResponse struct { + Meta ListFlowResponseMeta `json:"Meta,omitempty"` Steps []StudioV1FlowExecutionExecutionStep `json:"Steps,omitempty"` } diff --git a/rest/studio/v1/model_studio_v1_flow_read_response.go b/rest/studio/v1/model_list_flow_response.go similarity index 56% rename from rest/studio/v1/model_studio_v1_flow_read_response.go rename to rest/studio/v1/model_list_flow_response.go index c645e38a7..fd8c5354c 100644 --- a/rest/studio/v1/model_studio_v1_flow_read_response.go +++ b/rest/studio/v1/model_list_flow_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// StudioV1FlowReadResponse struct for StudioV1FlowReadResponse -type StudioV1FlowReadResponse struct { +// ListFlowResponse struct for ListFlowResponse +type ListFlowResponse struct { Flows []StudioV1Flow `json:"Flows,omitempty"` - Meta StudioV1FlowReadResponseMeta `json:"Meta,omitempty"` + Meta ListFlowResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/studio/v1/model_studio_v1_flow_read_response_meta.go b/rest/studio/v1/model_list_flow_response_meta.go similarity index 78% rename from rest/studio/v1/model_studio_v1_flow_read_response_meta.go rename to rest/studio/v1/model_list_flow_response_meta.go index b3647eaeb..e1a201290 100644 --- a/rest/studio/v1/model_studio_v1_flow_read_response_meta.go +++ b/rest/studio/v1/model_list_flow_response_meta.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// StudioV1FlowReadResponseMeta struct for StudioV1FlowReadResponseMeta -type StudioV1FlowReadResponseMeta struct { +// ListFlowResponseMeta struct for ListFlowResponseMeta +type ListFlowResponseMeta struct { FirstPageUrl string `json:"FirstPageUrl,omitempty"` Key string `json:"Key,omitempty"` NextPageUrl string `json:"NextPageUrl,omitempty"` diff --git a/rest/studio/v1/model_studio_v1_flow_engagement_step_read_response.go b/rest/studio/v1/model_list_step_response.go similarity index 52% rename from rest/studio/v1/model_studio_v1_flow_engagement_step_read_response.go rename to rest/studio/v1/model_list_step_response.go index 263f1fbf6..718161fc4 100644 --- a/rest/studio/v1/model_studio_v1_flow_engagement_step_read_response.go +++ b/rest/studio/v1/model_list_step_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// StudioV1FlowEngagementStepReadResponse struct for StudioV1FlowEngagementStepReadResponse -type StudioV1FlowEngagementStepReadResponse struct { - Meta StudioV1FlowReadResponseMeta `json:"Meta,omitempty"` +// ListStepResponse struct for ListStepResponse +type ListStepResponse struct { + Meta ListFlowResponseMeta `json:"Meta,omitempty"` Steps []StudioV1FlowEngagementStep `json:"Steps,omitempty"` } diff --git a/rest/studio/v1/model_studio_v1_flow.go b/rest/studio/v1/model_studio_v1_flow.go index a40a7448e..ee7840f5e 100644 --- a/rest/studio/v1/model_studio_v1_flow.go +++ b/rest/studio/v1/model_studio_v1_flow.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/studio/v1/model_studio_v1_flow_engagement.go b/rest/studio/v1/model_studio_v1_flow_engagement.go index fb019dddd..58ce77050 100644 --- a/rest/studio/v1/model_studio_v1_flow_engagement.go +++ b/rest/studio/v1/model_studio_v1_flow_engagement.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/studio/v1/model_studio_v1_flow_engagement_engagement_context.go b/rest/studio/v1/model_studio_v1_flow_engagement_engagement_context.go index 724a503e8..50c7c0a68 100644 --- a/rest/studio/v1/model_studio_v1_flow_engagement_engagement_context.go +++ b/rest/studio/v1/model_studio_v1_flow_engagement_engagement_context.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/studio/v1/model_studio_v1_flow_engagement_step.go b/rest/studio/v1/model_studio_v1_flow_engagement_step.go index a5ace5417..5ebdbba2d 100644 --- a/rest/studio/v1/model_studio_v1_flow_engagement_step.go +++ b/rest/studio/v1/model_studio_v1_flow_engagement_step.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/studio/v1/model_studio_v1_flow_engagement_step_step_context.go b/rest/studio/v1/model_studio_v1_flow_engagement_step_step_context.go index 58722cb73..facafe45b 100644 --- a/rest/studio/v1/model_studio_v1_flow_engagement_step_step_context.go +++ b/rest/studio/v1/model_studio_v1_flow_engagement_step_step_context.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/studio/v1/model_studio_v1_flow_execution.go b/rest/studio/v1/model_studio_v1_flow_execution.go index ad6c01989..cdeaa03aa 100644 --- a/rest/studio/v1/model_studio_v1_flow_execution.go +++ b/rest/studio/v1/model_studio_v1_flow_execution.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/studio/v1/model_studio_v1_flow_execution_execution_context.go b/rest/studio/v1/model_studio_v1_flow_execution_execution_context.go index 89339cace..dea9d5697 100644 --- a/rest/studio/v1/model_studio_v1_flow_execution_execution_context.go +++ b/rest/studio/v1/model_studio_v1_flow_execution_execution_context.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/studio/v1/model_studio_v1_flow_execution_execution_step.go b/rest/studio/v1/model_studio_v1_flow_execution_execution_step.go index bc8636637..abeb238c5 100644 --- a/rest/studio/v1/model_studio_v1_flow_execution_execution_step.go +++ b/rest/studio/v1/model_studio_v1_flow_execution_execution_step.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/studio/v1/model_studio_v1_flow_execution_execution_step_execution_step_context.go b/rest/studio/v1/model_studio_v1_flow_execution_execution_step_execution_step_context.go index 33b655bf8..55ec8506b 100644 --- a/rest/studio/v1/model_studio_v1_flow_execution_execution_step_execution_step_context.go +++ b/rest/studio/v1/model_studio_v1_flow_execution_execution_step_execution_step_context.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/studio/v1/model_update_execution_request.go b/rest/studio/v1/model_update_execution_request.go index 106bdb66b..a1c3b3301 100644 --- a/rest/studio/v1/model_update_execution_request.go +++ b/rest/studio/v1/model_update_execution_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/studio/v1/response.go b/rest/studio/v1/response.go index a5e963134..d2c742ccf 100644 --- a/rest/studio/v1/response.go +++ b/rest/studio/v1/response.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/studio/v2/README.md b/rest/studio/v2/README.md index e1e3a6f15..4df246277 100644 --- a/rest/studio/v2/README.md +++ b/rest/studio/v2/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 5.15.0 +- API version: 1.0.0 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) @@ -32,6 +32,7 @@ All URIs are relative to *http://localhost* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *DefaultApi* | [**CreateExecution**](docs/DefaultApi.md#createexecution) | **Post** /v2/Flows/{FlowSid}/Executions | +*DefaultApi* | [**CreateFlow**](docs/DefaultApi.md#createflow) | **Post** /v2/Flows | *DefaultApi* | [**DeleteExecution**](docs/DefaultApi.md#deleteexecution) | **Delete** /v2/Flows/{FlowSid}/Executions/{Sid} | *DefaultApi* | [**DeleteFlow**](docs/DefaultApi.md#deleteflow) | **Delete** /v2/Flows/{Sid} | *DefaultApi* | [**FetchExecution**](docs/DefaultApi.md#fetchexecution) | **Get** /v2/Flows/{FlowSid}/Executions/{Sid} | @@ -43,30 +44,29 @@ Class | Method | HTTP request | Description *DefaultApi* | [**FetchTestUser**](docs/DefaultApi.md#fetchtestuser) | **Get** /v2/Flows/{Sid}/TestUsers | *DefaultApi* | [**ListExecution**](docs/DefaultApi.md#listexecution) | **Get** /v2/Flows/{FlowSid}/Executions | *DefaultApi* | [**ListExecutionStep**](docs/DefaultApi.md#listexecutionstep) | **Get** /v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps | +*DefaultApi* | [**ListFlow**](docs/DefaultApi.md#listflow) | **Get** /v2/Flows | *DefaultApi* | [**ListFlowRevision**](docs/DefaultApi.md#listflowrevision) | **Get** /v2/Flows/{Sid}/Revisions | *DefaultApi* | [**UpdateExecution**](docs/DefaultApi.md#updateexecution) | **Post** /v2/Flows/{FlowSid}/Executions/{Sid} | *DefaultApi* | [**UpdateFlow**](docs/DefaultApi.md#updateflow) | **Post** /v2/Flows/{Sid} | *DefaultApi* | [**UpdateFlowValidate**](docs/DefaultApi.md#updateflowvalidate) | **Post** /v2/Flows/Validate | *DefaultApi* | [**UpdateTestUser**](docs/DefaultApi.md#updatetestuser) | **Post** /v2/Flows/{Sid}/TestUsers | -*FlowsApi* | [**CreateFlow**](docs/FlowsApi.md#createflow) | **Post** /v2/Flows | -*FlowsApi* | [**ListFlow**](docs/FlowsApi.md#listflow) | **Get** /v2/Flows | ## Documentation For Models - [CreateExecutionRequest](docs/CreateExecutionRequest.md) - [CreateFlowRequest](docs/CreateFlowRequest.md) + - [ListExecutionResponse](docs/ListExecutionResponse.md) + - [ListExecutionStepResponse](docs/ListExecutionStepResponse.md) + - [ListFlowResponse](docs/ListFlowResponse.md) + - [ListFlowResponseMeta](docs/ListFlowResponseMeta.md) + - [ListFlowRevisionResponse](docs/ListFlowRevisionResponse.md) - [StudioV2Flow](docs/StudioV2Flow.md) - [StudioV2FlowExecution](docs/StudioV2FlowExecution.md) - [StudioV2FlowExecutionExecutionContext](docs/StudioV2FlowExecutionExecutionContext.md) - [StudioV2FlowExecutionExecutionStep](docs/StudioV2FlowExecutionExecutionStep.md) - [StudioV2FlowExecutionExecutionStepExecutionStepContext](docs/StudioV2FlowExecutionExecutionStepExecutionStepContext.md) - - [StudioV2FlowExecutionExecutionStepReadResponse](docs/StudioV2FlowExecutionExecutionStepReadResponse.md) - - [StudioV2FlowExecutionReadResponse](docs/StudioV2FlowExecutionReadResponse.md) - [StudioV2FlowFlowRevision](docs/StudioV2FlowFlowRevision.md) - - [StudioV2FlowFlowRevisionReadResponse](docs/StudioV2FlowFlowRevisionReadResponse.md) - - [StudioV2FlowReadResponse](docs/StudioV2FlowReadResponse.md) - - [StudioV2FlowReadResponseMeta](docs/StudioV2FlowReadResponseMeta.md) - [StudioV2FlowTestUser](docs/StudioV2FlowTestUser.md) - [StudioV2FlowValidate](docs/StudioV2FlowValidate.md) - [UpdateExecutionRequest](docs/UpdateExecutionRequest.md) diff --git a/rest/studio/v2/api_default.go b/rest/studio/v2/api_default.go index 123bcb127..d156c09a2 100644 --- a/rest/studio/v2/api_default.go +++ b/rest/studio/v2/api_default.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -27,14 +27,14 @@ type DefaultApiService struct { func NewDefaultApiService(client *twilio.Client) *DefaultApiService { return &DefaultApiService { client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + baseURL: fmt.Sprintf("https://studio.twilio.com"), } } // CreateExecutionParams Optional parameters for the method 'CreateExecution' type CreateExecutionParams struct { - From *string `json:"From,omitempty"` - Parameters *map[string]interface{} `json:"Parameters,omitempty"` - To *string `json:"To,omitempty"` + From *string `json:"From,omitempty"` + Parameters *map[string]interface{} `json:"Parameters,omitempty"` + To *string `json:"To,omitempty"` } /* @@ -86,6 +86,65 @@ func (c *DefaultApiService) CreateExecution(FlowSid string, params *CreateExecut return ps, err } +// CreateFlowParams Optional parameters for the method 'CreateFlow' +type CreateFlowParams struct { + CommitMessage *string `json:"CommitMessage,omitempty"` + Definition *map[string]interface{} `json:"Definition,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Status *string `json:"Status,omitempty"` +} + +/* +CreateFlow Method for CreateFlow +Create a Flow. + * @param optional nil or *CreateFlowOpts - Optional Parameters: + * @param "CommitMessage" (string) - Description of change made in the revision. + * @param "Definition" (map[string]interface{}) - JSON representation of flow definition. + * @param "FriendlyName" (string) - The string that you assigned to describe the Flow. + * @param "Status" (string) - The status of the Flow. Can be: `draft` or `published`. +@return StudioV2Flow +*/ +func (c *DefaultApiService) CreateFlow(params *CreateFlowParams) (*StudioV2Flow, error) { + path := "/v2/Flows" + + + data := url.Values{} + headers := 0 + + if params != nil && params.CommitMessage != nil { + data.Set("CommitMessage", *params.CommitMessage) + } + if params != nil && params.Definition != nil { + v, err := json.Marshal(params.Definition) + + if err != nil { + return nil, err + } + + data.Set("Definition", fmt.Sprint(v)) + } + if params != nil && params.FriendlyName != nil { + data.Set("FriendlyName", *params.FriendlyName) + } + if params != nil && params.Status != nil { + data.Set("Status", *params.Status) + } + + + resp, err := c.client.Post(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &StudioV2Flow{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} /* DeleteExecution Method for DeleteExecution @@ -341,7 +400,8 @@ func (c *DefaultApiService) FetchFlowRevision(Sid string, Revision string) (*Stu /* FetchTestUser Method for FetchTestUser - * @param Sid +Fetch flow test users + * @param Sid Unique identifier of the flow. @return StudioV2FlowTestUser */ func (c *DefaultApiService) FetchTestUser(Sid string) (*StudioV2FlowTestUser, error) { @@ -370,9 +430,9 @@ func (c *DefaultApiService) FetchTestUser(Sid string) (*StudioV2FlowTestUser, er } // ListExecutionParams Optional parameters for the method 'ListExecution' type ListExecutionParams struct { - DateCreatedFrom *time.Time `json:"DateCreatedFrom,omitempty"` - DateCreatedTo *time.Time `json:"DateCreatedTo,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + DateCreatedFrom *time.Time `json:"DateCreatedFrom,omitempty"` + DateCreatedTo *time.Time `json:"DateCreatedTo,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -383,9 +443,9 @@ Retrieve a list of all Executions for the Flow. * @param "DateCreatedFrom" (time.Time) - Only show Execution resources starting on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. * @param "DateCreatedTo" (time.Time) - Only show Execution resources starting before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return StudioV2FlowExecutionReadResponse +@return ListExecutionResponse */ -func (c *DefaultApiService) ListExecution(FlowSid string, params *ListExecutionParams) (*StudioV2FlowExecutionReadResponse, error) { +func (c *DefaultApiService) ListExecution(FlowSid string, params *ListExecutionParams) (*ListExecutionResponse, error) { path := "/v2/Flows/{FlowSid}/Executions" path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) @@ -411,7 +471,7 @@ func (c *DefaultApiService) ListExecution(FlowSid string, params *ListExecutionP defer resp.Body.Close() - ps := &StudioV2FlowExecutionReadResponse{} + ps := &ListExecutionResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -420,7 +480,7 @@ func (c *DefaultApiService) ListExecution(FlowSid string, params *ListExecutionP } // ListExecutionStepParams Optional parameters for the method 'ListExecutionStep' type ListExecutionStepParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -430,9 +490,9 @@ Retrieve a list of all Steps for an Execution. * @param ExecutionSid The SID of the Execution with the Steps to read. * @param optional nil or *ListExecutionStepOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return StudioV2FlowExecutionExecutionStepReadResponse +@return ListExecutionStepResponse */ -func (c *DefaultApiService) ListExecutionStep(FlowSid string, ExecutionSid string, params *ListExecutionStepParams) (*StudioV2FlowExecutionExecutionStepReadResponse, error) { +func (c *DefaultApiService) ListExecutionStep(FlowSid string, ExecutionSid string, params *ListExecutionStepParams) (*ListExecutionStepResponse, error) { path := "/v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps" path = strings.Replace(path, "{"+"FlowSid"+"}", FlowSid, -1) path = strings.Replace(path, "{"+"ExecutionSid"+"}", ExecutionSid, -1) @@ -453,7 +513,45 @@ func (c *DefaultApiService) ListExecutionStep(FlowSid string, ExecutionSid strin defer resp.Body.Close() - ps := &StudioV2FlowExecutionExecutionStepReadResponse{} + ps := &ListExecutionStepResponse{} + if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { + return nil, err + } + + return ps, err +} +// ListFlowParams Optional parameters for the method 'ListFlow' +type ListFlowParams struct { + PageSize *int32 `json:"PageSize,omitempty"` +} + +/* +ListFlow Method for ListFlow +Retrieve a list of all Flows. + * @param optional nil or *ListFlowOpts - Optional Parameters: + * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. +@return ListFlowResponse +*/ +func (c *DefaultApiService) ListFlow(params *ListFlowParams) (*ListFlowResponse, error) { + path := "/v2/Flows" + + + data := url.Values{} + headers := 0 + + if params != nil && params.PageSize != nil { + data.Set("PageSize", fmt.Sprint(*params.PageSize)) + } + + + resp, err := c.client.Get(c.baseURL+path, data, headers) + if err != nil { + return nil, err + } + + defer resp.Body.Close() + + ps := &ListFlowResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -462,7 +560,7 @@ func (c *DefaultApiService) ListExecutionStep(FlowSid string, ExecutionSid strin } // ListFlowRevisionParams Optional parameters for the method 'ListFlowRevision' type ListFlowRevisionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -471,9 +569,9 @@ Retrieve a list of all Flows revisions. * @param Sid The SID of the Flow resource to fetch. * @param optional nil or *ListFlowRevisionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return StudioV2FlowFlowRevisionReadResponse +@return ListFlowRevisionResponse */ -func (c *DefaultApiService) ListFlowRevision(Sid string, params *ListFlowRevisionParams) (*StudioV2FlowFlowRevisionReadResponse, error) { +func (c *DefaultApiService) ListFlowRevision(Sid string, params *ListFlowRevisionParams) (*ListFlowRevisionResponse, error) { path := "/v2/Flows/{Sid}/Revisions" path = strings.Replace(path, "{"+"Sid"+"}", Sid, -1) @@ -493,7 +591,7 @@ func (c *DefaultApiService) ListFlowRevision(Sid string, params *ListFlowRevisio defer resp.Body.Close() - ps := &StudioV2FlowFlowRevisionReadResponse{} + ps := &ListFlowRevisionResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -502,7 +600,7 @@ func (c *DefaultApiService) ListFlowRevision(Sid string, params *ListFlowRevisio } // UpdateExecutionParams Optional parameters for the method 'UpdateExecution' type UpdateExecutionParams struct { - Status *string `json:"Status,omitempty"` + Status *string `json:"Status,omitempty"` } /* @@ -544,10 +642,10 @@ func (c *DefaultApiService) UpdateExecution(FlowSid string, Sid string, params * } // UpdateFlowParams Optional parameters for the method 'UpdateFlow' type UpdateFlowParams struct { - CommitMessage *string `json:"CommitMessage,omitempty"` - Definition *map[string]interface{} `json:"Definition,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Status *string `json:"Status,omitempty"` + CommitMessage *string `json:"CommitMessage,omitempty"` + Definition *map[string]interface{} `json:"Definition,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Status *string `json:"Status,omitempty"` } /* @@ -555,7 +653,7 @@ UpdateFlow Method for UpdateFlow Update a Flow. * @param Sid The SID of the Flow resource to fetch. * @param optional nil or *UpdateFlowOpts - Optional Parameters: - * @param "CommitMessage" (string) - Description on change made in the revision. + * @param "CommitMessage" (string) - Description of change made in the revision. * @param "Definition" (map[string]interface{}) - JSON representation of flow definition. * @param "FriendlyName" (string) - The string that you assigned to describe the Flow. * @param "Status" (string) - The status of the Flow. Can be: `draft` or `published`. @@ -605,19 +703,20 @@ func (c *DefaultApiService) UpdateFlow(Sid string, params *UpdateFlowParams) (*S } // UpdateFlowValidateParams Optional parameters for the method 'UpdateFlowValidate' type UpdateFlowValidateParams struct { - CommitMessage *string `json:"CommitMessage,omitempty"` - Definition *map[string]interface{} `json:"Definition,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Status *string `json:"Status,omitempty"` + CommitMessage *string `json:"CommitMessage,omitempty"` + Definition *map[string]interface{} `json:"Definition,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Status *string `json:"Status,omitempty"` } /* UpdateFlowValidate Method for UpdateFlowValidate +Validate flow JSON definition * @param optional nil or *UpdateFlowValidateOpts - Optional Parameters: - * @param "CommitMessage" (string) - - * @param "Definition" (map[string]interface{}) - - * @param "FriendlyName" (string) - - * @param "Status" (string) - + * @param "CommitMessage" (string) - Description of change made in the revision. + * @param "Definition" (map[string]interface{}) - JSON representation of flow definition. + * @param "FriendlyName" (string) - The string that you assigned to describe the Flow. + * @param "Status" (string) - The status of the Flow. Can be: `draft` or `published`. @return StudioV2FlowValidate */ func (c *DefaultApiService) UpdateFlowValidate(params *UpdateFlowValidateParams) (*StudioV2FlowValidate, error) { @@ -663,14 +762,15 @@ func (c *DefaultApiService) UpdateFlowValidate(params *UpdateFlowValidateParams) } // UpdateTestUserParams Optional parameters for the method 'UpdateTestUser' type UpdateTestUserParams struct { - TestUsers *[]string `json:"TestUsers,omitempty"` + TestUsers *[]string `json:"TestUsers,omitempty"` } /* UpdateTestUser Method for UpdateTestUser - * @param Sid +Update flow test users + * @param Sid Unique identifier of the flow. * @param optional nil or *UpdateTestUserOpts - Optional Parameters: - * @param "TestUsers" ([]string) - + * @param "TestUsers" ([]string) - List of test user identities that can test draft versions of the flow. @return StudioV2FlowTestUser */ func (c *DefaultApiService) UpdateTestUser(Sid string, params *UpdateTestUserParams) (*StudioV2FlowTestUser, error) { diff --git a/rest/studio/v2/api_flows.go b/rest/studio/v2/api_flows.go deleted file mode 100644 index f698def29..000000000 --- a/rest/studio/v2/api_flows.go +++ /dev/null @@ -1,127 +0,0 @@ -/* - * Twilio - Studio - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi - -import ( - "encoding/json" - "fmt" - twilio "github.com/twilio/twilio-go/client" - "net/url" -) - -type FlowsApiService struct { - baseURL string - client *twilio.Client -} - -func NewFlowsApiService(client *twilio.Client) *FlowsApiService { - return &FlowsApiService { - client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), - } -} -// CreateFlowParams Optional parameters for the method 'CreateFlow' -type CreateFlowParams struct { - CommitMessage *string `json:"CommitMessage,omitempty"` - Definition *map[string]interface{} `json:"Definition,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Status *string `json:"Status,omitempty"` -} - -/* -CreateFlow Method for CreateFlow -Create a Flow. - * @param optional nil or *CreateFlowOpts - Optional Parameters: - * @param "CommitMessage" (string) - Description on change made in the revision. - * @param "Definition" (map[string]interface{}) - JSON representation of flow definition. - * @param "FriendlyName" (string) - The string that you assigned to describe the Flow. - * @param "Status" (string) - The status of the Flow. Can be: `draft` or `published`. -@return StudioV2Flow -*/ -func (c *FlowsApiService) CreateFlow(params *CreateFlowParams) (*StudioV2Flow, error) { - path := "/v2/Flows" - - - data := url.Values{} - headers := 0 - - if params != nil && params.CommitMessage != nil { - data.Set("CommitMessage", *params.CommitMessage) - } - if params != nil && params.Definition != nil { - v, err := json.Marshal(params.Definition) - - if err != nil { - return nil, err - } - - data.Set("Definition", fmt.Sprint(v)) - } - if params != nil && params.FriendlyName != nil { - data.Set("FriendlyName", *params.FriendlyName) - } - if params != nil && params.Status != nil { - data.Set("Status", *params.Status) - } - - - resp, err := c.client.Post(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &StudioV2Flow{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} -// ListFlowParams Optional parameters for the method 'ListFlow' -type ListFlowParams struct { - PageSize *int32 `json:"PageSize,omitempty"` -} - -/* -ListFlow Method for ListFlow -Retrieve a list of all Flows. - * @param optional nil or *ListFlowOpts - Optional Parameters: - * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return StudioV2FlowReadResponse -*/ -func (c *FlowsApiService) ListFlow(params *ListFlowParams) (*StudioV2FlowReadResponse, error) { - path := "/v2/Flows" - - - data := url.Values{} - headers := 0 - - if params != nil && params.PageSize != nil { - data.Set("PageSize", fmt.Sprint(*params.PageSize)) - } - - - resp, err := c.client.Get(c.baseURL+path, data, headers) - if err != nil { - return nil, err - } - - defer resp.Body.Close() - - ps := &StudioV2FlowReadResponse{} - if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { - return nil, err - } - - return ps, err -} diff --git a/rest/studio/v2/docs/CreateFlowRequest.md b/rest/studio/v2/docs/CreateFlowRequest.md index 4b717d5dc..d7408ff41 100644 --- a/rest/studio/v2/docs/CreateFlowRequest.md +++ b/rest/studio/v2/docs/CreateFlowRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CommitMessage** | **string** | Description on change made in the revision. | [optional] +**CommitMessage** | **string** | Description of change made in the revision. | [optional] **Definition** | [**map[string]interface{}**](.md) | JSON representation of flow definition. | **FriendlyName** | **string** | The string that you assigned to describe the Flow. | **Status** | **string** | The status of the Flow. Can be: `draft` or `published`. | diff --git a/rest/studio/v2/docs/DefaultApi.md b/rest/studio/v2/docs/DefaultApi.md index 0e033dc9a..9cba32bf9 100644 --- a/rest/studio/v2/docs/DefaultApi.md +++ b/rest/studio/v2/docs/DefaultApi.md @@ -5,6 +5,7 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- [**CreateExecution**](DefaultApi.md#CreateExecution) | **Post** /v2/Flows/{FlowSid}/Executions | +[**CreateFlow**](DefaultApi.md#CreateFlow) | **Post** /v2/Flows | [**DeleteExecution**](DefaultApi.md#DeleteExecution) | **Delete** /v2/Flows/{FlowSid}/Executions/{Sid} | [**DeleteFlow**](DefaultApi.md#DeleteFlow) | **Delete** /v2/Flows/{Sid} | [**FetchExecution**](DefaultApi.md#FetchExecution) | **Get** /v2/Flows/{FlowSid}/Executions/{Sid} | @@ -16,6 +17,7 @@ Method | HTTP request | Description [**FetchTestUser**](DefaultApi.md#FetchTestUser) | **Get** /v2/Flows/{Sid}/TestUsers | [**ListExecution**](DefaultApi.md#ListExecution) | **Get** /v2/Flows/{FlowSid}/Executions | [**ListExecutionStep**](DefaultApi.md#ListExecutionStep) | **Get** /v2/Flows/{FlowSid}/Executions/{ExecutionSid}/Steps | +[**ListFlow**](DefaultApi.md#ListFlow) | **Get** /v2/Flows | [**ListFlowRevision**](DefaultApi.md#ListFlowRevision) | **Get** /v2/Flows/{Sid}/Revisions | [**UpdateExecution**](DefaultApi.md#UpdateExecution) | **Post** /v2/Flows/{FlowSid}/Executions/{Sid} | [**UpdateFlow**](DefaultApi.md#UpdateFlow) | **Post** /v2/Flows/{Sid} | @@ -71,6 +73,52 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## CreateFlow + +> StudioV2Flow CreateFlow(ctx, optional) + + + +Create a Flow. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***CreateFlowOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a CreateFlowOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **CommitMessage** | **optional.String**| Description of change made in the revision. | + **Definition** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| JSON representation of flow definition. | + **FriendlyName** | **optional.String**| The string that you assigned to describe the Flow. | + **Status** | **optional.String**| The status of the Flow. Can be: `draft` or `published`. | + +### Return type + +[**StudioV2Flow**](studio.v2.flow.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) + + ## DeleteExecution > DeleteExecution(ctx, FlowSid, Sid) @@ -357,13 +405,15 @@ Name | Type | Description | Notes +Fetch flow test users + ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**Sid** | **string**| | +**Sid** | **string**| Unique identifier of the flow. | ### Return type @@ -385,7 +435,7 @@ Name | Type | Description | Notes ## ListExecution -> StudioV2FlowExecutionReadResponse ListExecution(ctx, FlowSid, optional) +> ListExecutionResponse ListExecution(ctx, FlowSid, optional) @@ -414,7 +464,7 @@ Name | Type | Description | Notes ### Return type -[**StudioV2FlowExecutionReadResponse**](studio_v2_flow_executionReadResponse.md) +[**ListExecutionResponse**](ListExecutionResponse.md) ### Authorization @@ -432,7 +482,7 @@ Name | Type | Description | Notes ## ListExecutionStep -> StudioV2FlowExecutionExecutionStepReadResponse ListExecutionStep(ctx, FlowSid, ExecutionSid, optional) +> ListExecutionStepResponse ListExecutionStep(ctx, FlowSid, ExecutionSid, optional) @@ -461,7 +511,50 @@ Name | Type | Description | Notes ### Return type -[**StudioV2FlowExecutionExecutionStepReadResponse**](studio_v2_flow_execution_execution_stepReadResponse.md) +[**ListExecutionStepResponse**](ListExecutionStepResponse.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) + + +## ListFlow + +> ListFlowResponse ListFlow(ctx, optional) + + + +Retrieve a list of all Flows. + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ListFlowOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a ListFlowOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | + +### Return type + +[**ListFlowResponse**](ListFlowResponse.md) ### Authorization @@ -479,7 +572,7 @@ Name | Type | Description | Notes ## ListFlowRevision -> StudioV2FlowFlowRevisionReadResponse ListFlowRevision(ctx, Sid, optional) +> ListFlowRevisionResponse ListFlowRevision(ctx, Sid, optional) @@ -506,7 +599,7 @@ Name | Type | Description | Notes ### Return type -[**StudioV2FlowFlowRevisionReadResponse**](studio_v2_flow_flow_revisionReadResponse.md) +[**ListFlowRevisionResponse**](ListFlowRevisionResponse.md) ### Authorization @@ -594,7 +687,7 @@ Optional parameters are passed through a pointer to a UpdateFlowOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **CommitMessage** | **optional.String**| Description on change made in the revision. | + **CommitMessage** | **optional.String**| Description of change made in the revision. | **Definition** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| JSON representation of flow definition. | **FriendlyName** | **optional.String**| The string that you assigned to describe the Flow. | **Status** | **optional.String**| The status of the Flow. Can be: `draft` or `published`. | @@ -623,6 +716,8 @@ Name | Type | Description | Notes +Validate flow JSON definition + ### Required Parameters @@ -638,10 +733,10 @@ Optional parameters are passed through a pointer to a UpdateFlowValidateOpts str Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **CommitMessage** | **optional.String**| | - **Definition** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| | - **FriendlyName** | **optional.String**| | - **Status** | **optional.String**| | + **CommitMessage** | **optional.String**| Description of change made in the revision. | + **Definition** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| JSON representation of flow definition. | + **FriendlyName** | **optional.String**| The string that you assigned to describe the Flow. | + **Status** | **optional.String**| The status of the Flow. Can be: `draft` or `published`. | ### Return type @@ -667,13 +762,15 @@ Name | Type | Description | Notes +Update flow test users + ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**Sid** | **string**| | +**Sid** | **string**| Unique identifier of the flow. | **optional** | ***UpdateTestUserOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -684,7 +781,7 @@ Optional parameters are passed through a pointer to a UpdateTestUserOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **TestUsers** | [**optional.Interface of []string**](string.md)| | + **TestUsers** | [**optional.Interface of []string**](string.md)| List of test user identities that can test draft versions of the flow. | ### Return type diff --git a/rest/studio/v2/docs/FlowsApi.md b/rest/studio/v2/docs/FlowsApi.md deleted file mode 100644 index 3ea36a3d1..000000000 --- a/rest/studio/v2/docs/FlowsApi.md +++ /dev/null @@ -1,99 +0,0 @@ -# \FlowsApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**CreateFlow**](FlowsApi.md#CreateFlow) | **Post** /v2/Flows | -[**ListFlow**](FlowsApi.md#ListFlow) | **Get** /v2/Flows | - - - -## CreateFlow - -> StudioV2Flow CreateFlow(ctx, optional) - - - -Create a Flow. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **optional** | ***CreateFlowOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a CreateFlowOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **CommitMessage** | **optional.String**| Description on change made in the revision. | - **Definition** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| JSON representation of flow definition. | - **FriendlyName** | **optional.String**| The string that you assigned to describe the Flow. | - **Status** | **optional.String**| The status of the Flow. Can be: `draft` or `published`. | - -### Return type - -[**StudioV2Flow**](studio.v2.flow.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) - - -## ListFlow - -> StudioV2FlowReadResponse ListFlow(ctx, optional) - - - -Retrieve a list of all Flows. - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **optional** | ***ListFlowOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a ListFlowOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | - -### Return type - -[**StudioV2FlowReadResponse**](studio_v2_flowReadResponse.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/rest/studio/v2/docs/StudioV2FlowExecutionReadResponse.md b/rest/studio/v2/docs/ListExecutionResponse.md similarity index 73% rename from rest/studio/v2/docs/StudioV2FlowExecutionReadResponse.md rename to rest/studio/v2/docs/ListExecutionResponse.md index 9b87f480f..9a3f94a5c 100644 --- a/rest/studio/v2/docs/StudioV2FlowExecutionReadResponse.md +++ b/rest/studio/v2/docs/ListExecutionResponse.md @@ -1,11 +1,11 @@ -# StudioV2FlowExecutionReadResponse +# ListExecutionResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Executions** | [**[]StudioV2FlowExecution**](studio.v2.flow.execution.md) | | [optional] -**Meta** | [**StudioV2FlowReadResponseMeta**](studio_v2_flowReadResponse_meta.md) | | [optional] +**Meta** | [**ListFlowResponseMeta**](ListFlowResponse_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/rest/studio/v2/docs/StudioV2FlowExecutionExecutionStepReadResponse.md b/rest/studio/v2/docs/ListExecutionStepResponse.md similarity index 72% rename from rest/studio/v2/docs/StudioV2FlowExecutionExecutionStepReadResponse.md rename to rest/studio/v2/docs/ListExecutionStepResponse.md index e5d69a9ca..7c4026e11 100644 --- a/rest/studio/v2/docs/StudioV2FlowExecutionExecutionStepReadResponse.md +++ b/rest/studio/v2/docs/ListExecutionStepResponse.md @@ -1,10 +1,10 @@ -# StudioV2FlowExecutionExecutionStepReadResponse +# ListExecutionStepResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**StudioV2FlowReadResponseMeta**](studio_v2_flowReadResponse_meta.md) | | [optional] +**Meta** | [**ListFlowResponseMeta**](ListFlowResponse_meta.md) | | [optional] **Steps** | [**[]StudioV2FlowExecutionExecutionStep**](studio.v2.flow.execution.execution_step.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/rest/studio/v2/docs/StudioV2FlowReadResponse.md b/rest/studio/v2/docs/ListFlowResponse.md similarity index 73% rename from rest/studio/v2/docs/StudioV2FlowReadResponse.md rename to rest/studio/v2/docs/ListFlowResponse.md index 61d22a8a6..da25856ae 100644 --- a/rest/studio/v2/docs/StudioV2FlowReadResponse.md +++ b/rest/studio/v2/docs/ListFlowResponse.md @@ -1,11 +1,11 @@ -# StudioV2FlowReadResponse +# ListFlowResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Flows** | [**[]StudioV2Flow**](studio.v2.flow.md) | | [optional] -**Meta** | [**StudioV2FlowReadResponseMeta**](studio_v2_flowReadResponse_meta.md) | | [optional] +**Meta** | [**ListFlowResponseMeta**](ListFlowResponse_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/rest/studio/v2/docs/ListFlowResponseMeta.md b/rest/studio/v2/docs/ListFlowResponseMeta.md new file mode 100644 index 000000000..c0868ff93 --- /dev/null +++ b/rest/studio/v2/docs/ListFlowResponseMeta.md @@ -0,0 +1,17 @@ +# ListFlowResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/studio/v2/docs/StudioV2FlowFlowRevisionReadResponse.md b/rest/studio/v2/docs/ListFlowRevisionResponse.md similarity index 73% rename from rest/studio/v2/docs/StudioV2FlowFlowRevisionReadResponse.md rename to rest/studio/v2/docs/ListFlowRevisionResponse.md index 0e43fc2cc..eae1b8468 100644 --- a/rest/studio/v2/docs/StudioV2FlowFlowRevisionReadResponse.md +++ b/rest/studio/v2/docs/ListFlowRevisionResponse.md @@ -1,10 +1,10 @@ -# StudioV2FlowFlowRevisionReadResponse +# ListFlowRevisionResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**StudioV2FlowReadResponseMeta**](studio_v2_flowReadResponse_meta.md) | | [optional] +**Meta** | [**ListFlowResponseMeta**](ListFlowResponse_meta.md) | | [optional] **Revisions** | [**[]StudioV2FlowFlowRevision**](studio.v2.flow.flow_revision.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/rest/studio/v2/docs/UpdateFlowRequest.md b/rest/studio/v2/docs/UpdateFlowRequest.md index ccffb4a18..49585c8b3 100644 --- a/rest/studio/v2/docs/UpdateFlowRequest.md +++ b/rest/studio/v2/docs/UpdateFlowRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CommitMessage** | **string** | Description on change made in the revision. | [optional] +**CommitMessage** | **string** | Description of change made in the revision. | [optional] **Definition** | [**map[string]interface{}**](.md) | JSON representation of flow definition. | [optional] **FriendlyName** | **string** | The string that you assigned to describe the Flow. | [optional] **Status** | **string** | The status of the Flow. Can be: `draft` or `published`. | diff --git a/rest/studio/v2/docs/UpdateFlowValidateRequest.md b/rest/studio/v2/docs/UpdateFlowValidateRequest.md index 99e20eab1..9a7af4a88 100644 --- a/rest/studio/v2/docs/UpdateFlowValidateRequest.md +++ b/rest/studio/v2/docs/UpdateFlowValidateRequest.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CommitMessage** | **string** | | [optional] -**Definition** | [**map[string]interface{}**](.md) | | -**FriendlyName** | **string** | | -**Status** | **string** | | +**CommitMessage** | **string** | Description of change made in the revision. | [optional] +**Definition** | [**map[string]interface{}**](.md) | JSON representation of flow definition. | +**FriendlyName** | **string** | The string that you assigned to describe the Flow. | +**Status** | **string** | The status of the Flow. Can be: `draft` or `published`. | [[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/rest/studio/v2/docs/UpdateTestUserRequest.md b/rest/studio/v2/docs/UpdateTestUserRequest.md index 1b632c3e0..7fac59f2d 100644 --- a/rest/studio/v2/docs/UpdateTestUserRequest.md +++ b/rest/studio/v2/docs/UpdateTestUserRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**TestUsers** | **[]string** | | +**TestUsers** | **[]string** | List of test user identities that can test draft versions of the flow. | [[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/rest/studio/v2/model_create_execution_request.go b/rest/studio/v2/model_create_execution_request.go index 419513734..0a9c1d66a 100644 --- a/rest/studio/v2/model_create_execution_request.go +++ b/rest/studio/v2/model_create_execution_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/studio/v2/model_create_flow_request.go b/rest/studio/v2/model_create_flow_request.go index dd6b72436..b65b75d03 100644 --- a/rest/studio/v2/model_create_flow_request.go +++ b/rest/studio/v2/model_create_flow_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -11,7 +11,7 @@ package openapi // CreateFlowRequest struct for CreateFlowRequest type CreateFlowRequest struct { - // Description on change made in the revision. + // Description of change made in the revision. CommitMessage string `json:"CommitMessage,omitempty"` // JSON representation of flow definition. Definition map[string]interface{} `json:"Definition"` diff --git a/rest/studio/v2/model_studio_v2_flow_execution_read_response.go b/rest/studio/v2/model_list_execution_response.go similarity index 54% rename from rest/studio/v2/model_studio_v2_flow_execution_read_response.go rename to rest/studio/v2/model_list_execution_response.go index f145252d5..3ca0e960a 100644 --- a/rest/studio/v2/model_studio_v2_flow_execution_read_response.go +++ b/rest/studio/v2/model_list_execution_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// StudioV2FlowExecutionReadResponse struct for StudioV2FlowExecutionReadResponse -type StudioV2FlowExecutionReadResponse struct { +// ListExecutionResponse struct for ListExecutionResponse +type ListExecutionResponse struct { Executions []StudioV2FlowExecution `json:"Executions,omitempty"` - Meta StudioV2FlowReadResponseMeta `json:"Meta,omitempty"` + Meta ListFlowResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/studio/v2/model_studio_v2_flow_execution_execution_step_read_response.go b/rest/studio/v2/model_list_execution_step_response.go similarity index 50% rename from rest/studio/v2/model_studio_v2_flow_execution_execution_step_read_response.go rename to rest/studio/v2/model_list_execution_step_response.go index a27c3ed27..2117dcc9d 100644 --- a/rest/studio/v2/model_studio_v2_flow_execution_execution_step_read_response.go +++ b/rest/studio/v2/model_list_execution_step_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// StudioV2FlowExecutionExecutionStepReadResponse struct for StudioV2FlowExecutionExecutionStepReadResponse -type StudioV2FlowExecutionExecutionStepReadResponse struct { - Meta StudioV2FlowReadResponseMeta `json:"Meta,omitempty"` +// ListExecutionStepResponse struct for ListExecutionStepResponse +type ListExecutionStepResponse struct { + Meta ListFlowResponseMeta `json:"Meta,omitempty"` Steps []StudioV2FlowExecutionExecutionStep `json:"Steps,omitempty"` } diff --git a/rest/studio/v2/model_studio_v2_flow_read_response.go b/rest/studio/v2/model_list_flow_response.go similarity index 56% rename from rest/studio/v2/model_studio_v2_flow_read_response.go rename to rest/studio/v2/model_list_flow_response.go index 8679f573a..d58e7fef2 100644 --- a/rest/studio/v2/model_studio_v2_flow_read_response.go +++ b/rest/studio/v2/model_list_flow_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// StudioV2FlowReadResponse struct for StudioV2FlowReadResponse -type StudioV2FlowReadResponse struct { +// ListFlowResponse struct for ListFlowResponse +type ListFlowResponse struct { Flows []StudioV2Flow `json:"Flows,omitempty"` - Meta StudioV2FlowReadResponseMeta `json:"Meta,omitempty"` + Meta ListFlowResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/studio/v2/model_studio_v2_flow_read_response_meta.go b/rest/studio/v2/model_list_flow_response_meta.go similarity index 78% rename from rest/studio/v2/model_studio_v2_flow_read_response_meta.go rename to rest/studio/v2/model_list_flow_response_meta.go index 9fbb121d2..e1a201290 100644 --- a/rest/studio/v2/model_studio_v2_flow_read_response_meta.go +++ b/rest/studio/v2/model_list_flow_response_meta.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// StudioV2FlowReadResponseMeta struct for StudioV2FlowReadResponseMeta -type StudioV2FlowReadResponseMeta struct { +// ListFlowResponseMeta struct for ListFlowResponseMeta +type ListFlowResponseMeta struct { FirstPageUrl string `json:"FirstPageUrl,omitempty"` Key string `json:"Key,omitempty"` NextPageUrl string `json:"NextPageUrl,omitempty"` diff --git a/rest/studio/v2/model_studio_v2_flow_flow_revision_read_response.go b/rest/studio/v2/model_list_flow_revision_response.go similarity index 53% rename from rest/studio/v2/model_studio_v2_flow_flow_revision_read_response.go rename to rest/studio/v2/model_list_flow_revision_response.go index ddb0faaac..1fa563187 100644 --- a/rest/studio/v2/model_studio_v2_flow_flow_revision_read_response.go +++ b/rest/studio/v2/model_list_flow_revision_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// StudioV2FlowFlowRevisionReadResponse struct for StudioV2FlowFlowRevisionReadResponse -type StudioV2FlowFlowRevisionReadResponse struct { - Meta StudioV2FlowReadResponseMeta `json:"Meta,omitempty"` +// ListFlowRevisionResponse struct for ListFlowRevisionResponse +type ListFlowRevisionResponse struct { + Meta ListFlowResponseMeta `json:"Meta,omitempty"` Revisions []StudioV2FlowFlowRevision `json:"Revisions,omitempty"` } diff --git a/rest/studio/v2/model_studio_v2_flow.go b/rest/studio/v2/model_studio_v2_flow.go index 4d687d718..e3caabeff 100644 --- a/rest/studio/v2/model_studio_v2_flow.go +++ b/rest/studio/v2/model_studio_v2_flow.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/studio/v2/model_studio_v2_flow_execution.go b/rest/studio/v2/model_studio_v2_flow_execution.go index 7b3600a6f..fb1d80227 100644 --- a/rest/studio/v2/model_studio_v2_flow_execution.go +++ b/rest/studio/v2/model_studio_v2_flow_execution.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/studio/v2/model_studio_v2_flow_execution_execution_context.go b/rest/studio/v2/model_studio_v2_flow_execution_execution_context.go index a5a8b5210..866433807 100644 --- a/rest/studio/v2/model_studio_v2_flow_execution_execution_context.go +++ b/rest/studio/v2/model_studio_v2_flow_execution_execution_context.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/studio/v2/model_studio_v2_flow_execution_execution_step.go b/rest/studio/v2/model_studio_v2_flow_execution_execution_step.go index 093c67f3d..bfe9f3b2f 100644 --- a/rest/studio/v2/model_studio_v2_flow_execution_execution_step.go +++ b/rest/studio/v2/model_studio_v2_flow_execution_execution_step.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/studio/v2/model_studio_v2_flow_execution_execution_step_execution_step_context.go b/rest/studio/v2/model_studio_v2_flow_execution_execution_step_execution_step_context.go index dba41c24b..dcd94e4b6 100644 --- a/rest/studio/v2/model_studio_v2_flow_execution_execution_step_execution_step_context.go +++ b/rest/studio/v2/model_studio_v2_flow_execution_execution_step_execution_step_context.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/studio/v2/model_studio_v2_flow_flow_revision.go b/rest/studio/v2/model_studio_v2_flow_flow_revision.go index 517a281af..5929711e3 100644 --- a/rest/studio/v2/model_studio_v2_flow_flow_revision.go +++ b/rest/studio/v2/model_studio_v2_flow_flow_revision.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/studio/v2/model_studio_v2_flow_test_user.go b/rest/studio/v2/model_studio_v2_flow_test_user.go index 0a2bc4a93..a2d985069 100644 --- a/rest/studio/v2/model_studio_v2_flow_test_user.go +++ b/rest/studio/v2/model_studio_v2_flow_test_user.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/studio/v2/model_studio_v2_flow_validate.go b/rest/studio/v2/model_studio_v2_flow_validate.go index 938847a07..8eb9568b9 100644 --- a/rest/studio/v2/model_studio_v2_flow_validate.go +++ b/rest/studio/v2/model_studio_v2_flow_validate.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/studio/v2/model_update_execution_request.go b/rest/studio/v2/model_update_execution_request.go index 106bdb66b..a1c3b3301 100644 --- a/rest/studio/v2/model_update_execution_request.go +++ b/rest/studio/v2/model_update_execution_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/studio/v2/model_update_flow_request.go b/rest/studio/v2/model_update_flow_request.go index e51ec48a2..6c4ae6e6d 100644 --- a/rest/studio/v2/model_update_flow_request.go +++ b/rest/studio/v2/model_update_flow_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -11,7 +11,7 @@ package openapi // UpdateFlowRequest struct for UpdateFlowRequest type UpdateFlowRequest struct { - // Description on change made in the revision. + // Description of change made in the revision. CommitMessage string `json:"CommitMessage,omitempty"` // JSON representation of flow definition. Definition map[string]interface{} `json:"Definition,omitempty"` diff --git a/rest/studio/v2/model_update_flow_validate_request.go b/rest/studio/v2/model_update_flow_validate_request.go index 1a6a88bfd..b58102935 100644 --- a/rest/studio/v2/model_update_flow_validate_request.go +++ b/rest/studio/v2/model_update_flow_validate_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -11,8 +11,12 @@ package openapi // UpdateFlowValidateRequest struct for UpdateFlowValidateRequest type UpdateFlowValidateRequest struct { + // Description of change made in the revision. CommitMessage string `json:"CommitMessage,omitempty"` + // JSON representation of flow definition. Definition map[string]interface{} `json:"Definition"` + // The string that you assigned to describe the Flow. FriendlyName string `json:"FriendlyName"` + // The status of the Flow. Can be: `draft` or `published`. Status string `json:"Status"` } diff --git a/rest/studio/v2/model_update_test_user_request.go b/rest/studio/v2/model_update_test_user_request.go index 505f74528..911f847ae 100644 --- a/rest/studio/v2/model_update_test_user_request.go +++ b/rest/studio/v2/model_update_test_user_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -11,5 +11,6 @@ package openapi // UpdateTestUserRequest struct for UpdateTestUserRequest type UpdateTestUserRequest struct { + // List of test user identities that can test draft versions of the flow. TestUsers []string `json:"TestUsers"` } diff --git a/rest/studio/v2/response.go b/rest/studio/v2/response.go index a5e963134..d2c742ccf 100644 --- a/rest/studio/v2/response.go +++ b/rest/studio/v2/response.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/supersim/v1/README.md b/rest/supersim/v1/README.md index 701393ee5..a06903a12 100644 --- a/rest/supersim/v1/README.md +++ b/rest/supersim/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 5.15.0 +- API version: 1.0.0 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) @@ -60,21 +60,21 @@ Class | Method | HTTP request | Description - [CreateFleetRequest](docs/CreateFleetRequest.md) - [CreateNetworkAccessProfileNetworkRequest](docs/CreateNetworkAccessProfileNetworkRequest.md) - [CreateNetworkAccessProfileRequest](docs/CreateNetworkAccessProfileRequest.md) + - [ListCommandResponse](docs/ListCommandResponse.md) + - [ListCommandResponseMeta](docs/ListCommandResponseMeta.md) + - [ListFleetResponse](docs/ListFleetResponse.md) + - [ListNetworkAccessProfileNetworkResponse](docs/ListNetworkAccessProfileNetworkResponse.md) + - [ListNetworkAccessProfileResponse](docs/ListNetworkAccessProfileResponse.md) + - [ListNetworkResponse](docs/ListNetworkResponse.md) + - [ListSimResponse](docs/ListSimResponse.md) + - [ListUsageRecordResponse](docs/ListUsageRecordResponse.md) - [SupersimV1Command](docs/SupersimV1Command.md) - - [SupersimV1CommandReadResponse](docs/SupersimV1CommandReadResponse.md) - - [SupersimV1CommandReadResponseMeta](docs/SupersimV1CommandReadResponseMeta.md) - [SupersimV1Fleet](docs/SupersimV1Fleet.md) - - [SupersimV1FleetReadResponse](docs/SupersimV1FleetReadResponse.md) - [SupersimV1Network](docs/SupersimV1Network.md) - [SupersimV1NetworkAccessProfile](docs/SupersimV1NetworkAccessProfile.md) - [SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork](docs/SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork.md) - - [SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse](docs/SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse.md) - - [SupersimV1NetworkAccessProfileReadResponse](docs/SupersimV1NetworkAccessProfileReadResponse.md) - - [SupersimV1NetworkReadResponse](docs/SupersimV1NetworkReadResponse.md) - [SupersimV1Sim](docs/SupersimV1Sim.md) - - [SupersimV1SimReadResponse](docs/SupersimV1SimReadResponse.md) - [SupersimV1UsageRecord](docs/SupersimV1UsageRecord.md) - - [SupersimV1UsageRecordReadResponse](docs/SupersimV1UsageRecordReadResponse.md) - [UpdateFleetRequest](docs/UpdateFleetRequest.md) - [UpdateNetworkAccessProfileRequest](docs/UpdateNetworkAccessProfileRequest.md) - [UpdateSimRequest](docs/UpdateSimRequest.md) diff --git a/rest/supersim/v1/api_default.go b/rest/supersim/v1/api_default.go index a07e91210..df6267eb0 100644 --- a/rest/supersim/v1/api_default.go +++ b/rest/supersim/v1/api_default.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -27,15 +27,15 @@ type DefaultApiService struct { func NewDefaultApiService(client *twilio.Client) *DefaultApiService { return &DefaultApiService { client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + baseURL: fmt.Sprintf("https://supersim.twilio.com"), } } // CreateCommandParams Optional parameters for the method 'CreateCommand' type CreateCommandParams struct { - CallbackMethod *string `json:"CallbackMethod,omitempty"` - CallbackUrl *string `json:"CallbackUrl,omitempty"` - Command *string `json:"Command,omitempty"` - Sim *string `json:"Sim,omitempty"` + CallbackMethod *string `json:"CallbackMethod,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + Command *string `json:"Command,omitempty"` + Sim *string `json:"Sim,omitempty"` } /* @@ -85,13 +85,13 @@ func (c *DefaultApiService) CreateCommand(params *CreateCommandParams) (*Supersi } // CreateFleetParams Optional parameters for the method 'CreateFleet' type CreateFleetParams struct { - CommandsEnabled *bool `json:"CommandsEnabled,omitempty"` - CommandsMethod *string `json:"CommandsMethod,omitempty"` - CommandsUrl *string `json:"CommandsUrl,omitempty"` - DataEnabled *bool `json:"DataEnabled,omitempty"` - DataLimit *int32 `json:"DataLimit,omitempty"` - NetworkAccessProfile *string `json:"NetworkAccessProfile,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + CommandsEnabled *bool `json:"CommandsEnabled,omitempty"` + CommandsMethod *string `json:"CommandsMethod,omitempty"` + CommandsUrl *string `json:"CommandsUrl,omitempty"` + DataEnabled *bool `json:"DataEnabled,omitempty"` + DataLimit *int32 `json:"DataLimit,omitempty"` + NetworkAccessProfile *string `json:"NetworkAccessProfile,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -100,7 +100,7 @@ Create a Fleet * @param optional nil or *CreateFleetOpts - Optional Parameters: * @param "CommandsEnabled" (bool) - Defines whether SIMs in the Fleet are capable of sending and receiving machine-to-machine SMS via Commands. Defaults to `true`. * @param "CommandsMethod" (string) - A string representing the HTTP method to use when making a request to `commands_url`. Can be one of `POST` or `GET`. Defaults to `POST`. - * @param "CommandsUrl" (string) - The URL that will receive a webhook when a SIM in the Fleet originates a machine-to-machine SMS via Commands. Your server should respond with an HTTP status code in the 200 range; any response body will be ignored. + * @param "CommandsUrl" (string) - The URL that will receive a webhook when a SIM in the Fleet is used to send an SMS from your device (mobile originated) to the Commands number. Your server should respond with an HTTP status code in the 200 range; any response body will be ignored. * @param "DataEnabled" (bool) - Defines whether SIMs in the Fleet are capable of using 2G/3G/4G/LTE/CAT-M data connectivity. Defaults to `true`. * @param "DataLimit" (int32) - The total data usage (download and upload combined) in Megabytes that each Sim resource assigned to the Fleet resource can consume during a billing period (normally one month). Value must be between 1MB (1) and 2TB (2,000,000). Defaults to 1GB (1,000). * @param "NetworkAccessProfile" (string) - The SID or unique name of the Network Access Profile that will control which cellular networks the Fleet's SIMs can connect to. @@ -153,8 +153,8 @@ func (c *DefaultApiService) CreateFleet(params *CreateFleetParams) (*SupersimV1F } // CreateNetworkAccessProfileParams Optional parameters for the method 'CreateNetworkAccessProfile' type CreateNetworkAccessProfileParams struct { - Networks *[]string `json:"Networks,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + Networks *[]string `json:"Networks,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -196,7 +196,7 @@ func (c *DefaultApiService) CreateNetworkAccessProfile(params *CreateNetworkAcce } // CreateNetworkAccessProfileNetworkParams Optional parameters for the method 'CreateNetworkAccessProfileNetwork' type CreateNetworkAccessProfileNetworkParams struct { - Network *string `json:"Network,omitempty"` + Network *string `json:"Network,omitempty"` } /* @@ -239,7 +239,7 @@ func (c *DefaultApiService) CreateNetworkAccessProfileNetwork(NetworkAccessProfi DeleteNetworkAccessProfileNetwork Method for DeleteNetworkAccessProfileNetwork Remove a Network resource from the Network Access Profile resource's. * @param NetworkAccessProfileSid The unique string that identifies the Network Access Profile resource. - * @param Sid + * @param Sid The SID of the Network resource to be removed from the Network Access Profile resource. */ func (c *DefaultApiService) DeleteNetworkAccessProfileNetwork(NetworkAccessProfileSid string, Sid string) (error) { path := "/v1/NetworkAccessProfiles/{NetworkAccessProfileSid}/Networks/{Sid}" @@ -451,10 +451,10 @@ func (c *DefaultApiService) FetchSim(Sid string) (*SupersimV1Sim, error) { } // ListCommandParams Optional parameters for the method 'ListCommand' type ListCommandParams struct { - Sim *string `json:"Sim,omitempty"` - Status *string `json:"Status,omitempty"` - Direction *string `json:"Direction,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Sim *string `json:"Sim,omitempty"` + Status *string `json:"Status,omitempty"` + Direction *string `json:"Direction,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -465,9 +465,9 @@ Retrieve a list of Commands from your account. * @param "Status" (string) - The status of the Command. Can be: `queued`, `sent`, `delivered`, `received` or `failed`. See the [Command Status Values](https://www.twilio.com/docs/wireless/api/command-resource#status-values) for a description of each. * @param "Direction" (string) - The direction of the Command. Can be `to_sim` or `from_sim`. The value of `to_sim` is synonymous with the term `mobile terminated`, and `from_sim` is synonymous with the term `mobile originated`. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return SupersimV1CommandReadResponse +@return ListCommandResponse */ -func (c *DefaultApiService) ListCommand(params *ListCommandParams) (*SupersimV1CommandReadResponse, error) { +func (c *DefaultApiService) ListCommand(params *ListCommandParams) (*ListCommandResponse, error) { path := "/v1/Commands" @@ -495,7 +495,7 @@ func (c *DefaultApiService) ListCommand(params *ListCommandParams) (*SupersimV1C defer resp.Body.Close() - ps := &SupersimV1CommandReadResponse{} + ps := &ListCommandResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -504,8 +504,8 @@ func (c *DefaultApiService) ListCommand(params *ListCommandParams) (*SupersimV1C } // ListFleetParams Optional parameters for the method 'ListFleet' type ListFleetParams struct { - NetworkAccessProfile *string `json:"NetworkAccessProfile,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + NetworkAccessProfile *string `json:"NetworkAccessProfile,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -514,9 +514,9 @@ Retrieve a list of Fleets from your account. * @param optional nil or *ListFleetOpts - Optional Parameters: * @param "NetworkAccessProfile" (string) - The SID or unique name of the Network Access Profile that controls which cellular networks the Fleet's SIMs can connect to. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return SupersimV1FleetReadResponse +@return ListFleetResponse */ -func (c *DefaultApiService) ListFleet(params *ListFleetParams) (*SupersimV1FleetReadResponse, error) { +func (c *DefaultApiService) ListFleet(params *ListFleetParams) (*ListFleetResponse, error) { path := "/v1/Fleets" @@ -538,7 +538,7 @@ func (c *DefaultApiService) ListFleet(params *ListFleetParams) (*SupersimV1Fleet defer resp.Body.Close() - ps := &SupersimV1FleetReadResponse{} + ps := &ListFleetResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -547,10 +547,10 @@ func (c *DefaultApiService) ListFleet(params *ListFleetParams) (*SupersimV1Fleet } // ListNetworkParams Optional parameters for the method 'ListNetwork' type ListNetworkParams struct { - IsoCountry *string `json:"IsoCountry,omitempty"` - Mcc *string `json:"Mcc,omitempty"` - Mnc *string `json:"Mnc,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + IsoCountry *string `json:"IsoCountry,omitempty"` + Mcc *string `json:"Mcc,omitempty"` + Mnc *string `json:"Mnc,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -561,9 +561,9 @@ Retrieve a list of Network resources. * @param "Mcc" (string) - The 'mobile country code' of a country. Network resources with this `mcc` in their `identifiers` will be read. * @param "Mnc" (string) - The 'mobile network code' of a mobile operator network. Network resources with this `mnc` in their `identifiers` will be read. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return SupersimV1NetworkReadResponse +@return ListNetworkResponse */ -func (c *DefaultApiService) ListNetwork(params *ListNetworkParams) (*SupersimV1NetworkReadResponse, error) { +func (c *DefaultApiService) ListNetwork(params *ListNetworkParams) (*ListNetworkResponse, error) { path := "/v1/Networks" @@ -591,7 +591,7 @@ func (c *DefaultApiService) ListNetwork(params *ListNetworkParams) (*SupersimV1N defer resp.Body.Close() - ps := &SupersimV1NetworkReadResponse{} + ps := &ListNetworkResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -600,7 +600,7 @@ func (c *DefaultApiService) ListNetwork(params *ListNetworkParams) (*SupersimV1N } // ListNetworkAccessProfileParams Optional parameters for the method 'ListNetworkAccessProfile' type ListNetworkAccessProfileParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -608,9 +608,9 @@ ListNetworkAccessProfile Method for ListNetworkAccessProfile Retrieve a list of Network Access Profiles from your account. * @param optional nil or *ListNetworkAccessProfileOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return SupersimV1NetworkAccessProfileReadResponse +@return ListNetworkAccessProfileResponse */ -func (c *DefaultApiService) ListNetworkAccessProfile(params *ListNetworkAccessProfileParams) (*SupersimV1NetworkAccessProfileReadResponse, error) { +func (c *DefaultApiService) ListNetworkAccessProfile(params *ListNetworkAccessProfileParams) (*ListNetworkAccessProfileResponse, error) { path := "/v1/NetworkAccessProfiles" @@ -629,7 +629,7 @@ func (c *DefaultApiService) ListNetworkAccessProfile(params *ListNetworkAccessPr defer resp.Body.Close() - ps := &SupersimV1NetworkAccessProfileReadResponse{} + ps := &ListNetworkAccessProfileResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -638,7 +638,7 @@ func (c *DefaultApiService) ListNetworkAccessProfile(params *ListNetworkAccessPr } // ListNetworkAccessProfileNetworkParams Optional parameters for the method 'ListNetworkAccessProfileNetwork' type ListNetworkAccessProfileNetworkParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -647,9 +647,9 @@ Retrieve a list of Network Access Profile resource's Network resource. * @param NetworkAccessProfileSid The unique string that identifies the Network Access Profile resource. * @param optional nil or *ListNetworkAccessProfileNetworkOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse +@return ListNetworkAccessProfileNetworkResponse */ -func (c *DefaultApiService) ListNetworkAccessProfileNetwork(NetworkAccessProfileSid string, params *ListNetworkAccessProfileNetworkParams) (*SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse, error) { +func (c *DefaultApiService) ListNetworkAccessProfileNetwork(NetworkAccessProfileSid string, params *ListNetworkAccessProfileNetworkParams) (*ListNetworkAccessProfileNetworkResponse, error) { path := "/v1/NetworkAccessProfiles/{NetworkAccessProfileSid}/Networks" path = strings.Replace(path, "{"+"NetworkAccessProfileSid"+"}", NetworkAccessProfileSid, -1) @@ -669,7 +669,7 @@ func (c *DefaultApiService) ListNetworkAccessProfileNetwork(NetworkAccessProfile defer resp.Body.Close() - ps := &SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse{} + ps := &ListNetworkAccessProfileNetworkResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -678,10 +678,10 @@ func (c *DefaultApiService) ListNetworkAccessProfileNetwork(NetworkAccessProfile } // ListSimParams Optional parameters for the method 'ListSim' type ListSimParams struct { - Status *string `json:"Status,omitempty"` - Fleet *string `json:"Fleet,omitempty"` - Iccid *string `json:"Iccid,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Status *string `json:"Status,omitempty"` + Fleet *string `json:"Fleet,omitempty"` + Iccid *string `json:"Iccid,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -692,9 +692,9 @@ Retrieve a list of Super SIMs from your account. * @param "Fleet" (string) - The SID or unique name of the Fleet to which a list of Sims are assigned. * @param "Iccid" (string) - The [ICCID](https://en.wikipedia.org/wiki/Subscriber_identity_module#ICCID) associated with a Super SIM to filter the list by. Passing this parameter will always return a list containing zero or one SIMs. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return SupersimV1SimReadResponse +@return ListSimResponse */ -func (c *DefaultApiService) ListSim(params *ListSimParams) (*SupersimV1SimReadResponse, error) { +func (c *DefaultApiService) ListSim(params *ListSimParams) (*ListSimResponse, error) { path := "/v1/Sims" @@ -722,7 +722,7 @@ func (c *DefaultApiService) ListSim(params *ListSimParams) (*SupersimV1SimReadRe defer resp.Body.Close() - ps := &SupersimV1SimReadResponse{} + ps := &ListSimResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -731,15 +731,15 @@ func (c *DefaultApiService) ListSim(params *ListSimParams) (*SupersimV1SimReadRe } // ListUsageRecordParams Optional parameters for the method 'ListUsageRecord' type ListUsageRecordParams struct { - Sim *string `json:"Sim,omitempty"` - Fleet *string `json:"Fleet,omitempty"` - Network *string `json:"Network,omitempty"` - IsoCountry *string `json:"IsoCountry,omitempty"` - Group *string `json:"Group,omitempty"` - Granularity *string `json:"Granularity,omitempty"` - StartTime *time.Time `json:"StartTime,omitempty"` - EndTime *time.Time `json:"EndTime,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Sim *string `json:"Sim,omitempty"` + Fleet *string `json:"Fleet,omitempty"` + Network *string `json:"Network,omitempty"` + IsoCountry *string `json:"IsoCountry,omitempty"` + Group *string `json:"Group,omitempty"` + Granularity *string `json:"Granularity,omitempty"` + StartTime *time.Time `json:"StartTime,omitempty"` + EndTime *time.Time `json:"EndTime,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -755,9 +755,9 @@ List UsageRecords * @param "StartTime" (time.Time) - Only include usage that occurred at or after this time, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Default is one month before the `end_time`. * @param "EndTime" (time.Time) - Only include usage that occurred before this time, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Default is the current time. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return SupersimV1UsageRecordReadResponse +@return ListUsageRecordResponse */ -func (c *DefaultApiService) ListUsageRecord(params *ListUsageRecordParams) (*SupersimV1UsageRecordReadResponse, error) { +func (c *DefaultApiService) ListUsageRecord(params *ListUsageRecordParams) (*ListUsageRecordResponse, error) { path := "/v1/UsageRecords" @@ -800,7 +800,7 @@ func (c *DefaultApiService) ListUsageRecord(params *ListUsageRecordParams) (*Sup defer resp.Body.Close() - ps := &SupersimV1UsageRecordReadResponse{} + ps := &ListUsageRecordResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -809,8 +809,10 @@ func (c *DefaultApiService) ListUsageRecord(params *ListUsageRecordParams) (*Sup } // UpdateFleetParams Optional parameters for the method 'UpdateFleet' type UpdateFleetParams struct { - NetworkAccessProfile *string `json:"NetworkAccessProfile,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + CommandsMethod *string `json:"CommandsMethod,omitempty"` + CommandsUrl *string `json:"CommandsUrl,omitempty"` + NetworkAccessProfile *string `json:"NetworkAccessProfile,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -818,6 +820,8 @@ UpdateFleet Method for UpdateFleet Updates the given properties of a Super SIM Fleet instance from your account. * @param Sid The SID of the Fleet resource to update. * @param optional nil or *UpdateFleetOpts - Optional Parameters: + * @param "CommandsMethod" (string) - A string representing the HTTP method to use when making a request to `commands_url`. Can be one of `POST` or `GET`. Defaults to `POST`. + * @param "CommandsUrl" (string) - The URL that will receive a webhook when a SIM in the Fleet is used to send an SMS from your device (mobile originated) to the Commands number. Your server should respond with an HTTP status code in the 200 range; any response body will be ignored. * @param "NetworkAccessProfile" (string) - The SID or unique name of the Network Access Profile that will control which cellular networks the Fleet's SIMs can connect to. * @param "UniqueName" (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. @return SupersimV1Fleet @@ -830,6 +834,12 @@ func (c *DefaultApiService) UpdateFleet(Sid string, params *UpdateFleetParams) ( data := url.Values{} headers := 0 + if params != nil && params.CommandsMethod != nil { + data.Set("CommandsMethod", *params.CommandsMethod) + } + if params != nil && params.CommandsUrl != nil { + data.Set("CommandsUrl", *params.CommandsUrl) + } if params != nil && params.NetworkAccessProfile != nil { data.Set("NetworkAccessProfile", *params.NetworkAccessProfile) } @@ -854,7 +864,7 @@ func (c *DefaultApiService) UpdateFleet(Sid string, params *UpdateFleetParams) ( } // UpdateNetworkAccessProfileParams Optional parameters for the method 'UpdateNetworkAccessProfile' type UpdateNetworkAccessProfileParams struct { - UniqueName *string `json:"UniqueName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -894,12 +904,12 @@ func (c *DefaultApiService) UpdateNetworkAccessProfile(Sid string, params *Updat } // UpdateSimParams Optional parameters for the method 'UpdateSim' type UpdateSimParams struct { - AccountSid *string `json:"AccountSid,omitempty"` - CallbackMethod *string `json:"CallbackMethod,omitempty"` - CallbackUrl *string `json:"CallbackUrl,omitempty"` - Fleet *string `json:"Fleet,omitempty"` - Status *string `json:"Status,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + AccountSid *string `json:"AccountSid,omitempty"` + CallbackMethod *string `json:"CallbackMethod,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + Fleet *string `json:"Fleet,omitempty"` + Status *string `json:"Status,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* diff --git a/rest/supersim/v1/docs/CreateFleetRequest.md b/rest/supersim/v1/docs/CreateFleetRequest.md index 0494c1c84..84c49e193 100644 --- a/rest/supersim/v1/docs/CreateFleetRequest.md +++ b/rest/supersim/v1/docs/CreateFleetRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **CommandsEnabled** | **bool** | Defines whether SIMs in the Fleet are capable of sending and receiving machine-to-machine SMS via Commands. Defaults to `true`. | [optional] **CommandsMethod** | **string** | A string representing the HTTP method to use when making a request to `commands_url`. Can be one of `POST` or `GET`. Defaults to `POST`. | [optional] -**CommandsUrl** | **string** | The URL that will receive a webhook when a SIM in the Fleet originates a machine-to-machine SMS via Commands. Your server should respond with an HTTP status code in the 200 range; any response body will be ignored. | [optional] +**CommandsUrl** | **string** | The URL that will receive a webhook when a SIM in the Fleet is used to send an SMS from your device (mobile originated) to the Commands number. Your server should respond with an HTTP status code in the 200 range; any response body will be ignored. | [optional] **DataEnabled** | **bool** | Defines whether SIMs in the Fleet are capable of using 2G/3G/4G/LTE/CAT-M data connectivity. Defaults to `true`. | [optional] **DataLimit** | **int32** | The total data usage (download and upload combined) in Megabytes that each Sim resource assigned to the Fleet resource can consume during a billing period (normally one month). Value must be between 1MB (1) and 2TB (2,000,000). Defaults to 1GB (1,000). | [optional] **NetworkAccessProfile** | **string** | The SID or unique name of the Network Access Profile that will control which cellular networks the Fleet's SIMs can connect to. | diff --git a/rest/supersim/v1/docs/DefaultApi.md b/rest/supersim/v1/docs/DefaultApi.md index b08a9301a..b5a513710 100644 --- a/rest/supersim/v1/docs/DefaultApi.md +++ b/rest/supersim/v1/docs/DefaultApi.md @@ -99,7 +99,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **CommandsEnabled** | **optional.Bool**| Defines whether SIMs in the Fleet are capable of sending and receiving machine-to-machine SMS via Commands. Defaults to `true`. | **CommandsMethod** | **optional.String**| A string representing the HTTP method to use when making a request to `commands_url`. Can be one of `POST` or `GET`. Defaults to `POST`. | - **CommandsUrl** | **optional.String**| The URL that will receive a webhook when a SIM in the Fleet originates a machine-to-machine SMS via Commands. Your server should respond with an HTTP status code in the 200 range; any response body will be ignored. | + **CommandsUrl** | **optional.String**| The URL that will receive a webhook when a SIM in the Fleet is used to send an SMS from your device (mobile originated) to the Commands number. Your server should respond with an HTTP status code in the 200 range; any response body will be ignored. | **DataEnabled** | **optional.Bool**| Defines whether SIMs in the Fleet are capable of using 2G/3G/4G/LTE/CAT-M data connectivity. Defaults to `true`. | **DataLimit** | **optional.Int32**| The total data usage (download and upload combined) in Megabytes that each Sim resource assigned to the Fleet resource can consume during a billing period (normally one month). Value must be between 1MB (1) and 2TB (2,000,000). Defaults to 1GB (1,000). | **NetworkAccessProfile** | **optional.String**| The SID or unique name of the Network Access Profile that will control which cellular networks the Fleet's SIMs can connect to. | @@ -227,7 +227,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **NetworkAccessProfileSid** | **string**| The unique string that identifies the Network Access Profile resource. | -**Sid** | **string**| | +**Sid** | **string**| The SID of the Network resource to be removed from the Network Access Profile resource. | ### Return type @@ -454,7 +454,7 @@ Name | Type | Description | Notes ## ListCommand -> SupersimV1CommandReadResponse ListCommand(ctx, optional) +> ListCommandResponse ListCommand(ctx, optional) @@ -482,7 +482,7 @@ Name | Type | Description | Notes ### Return type -[**SupersimV1CommandReadResponse**](supersim_v1_commandReadResponse.md) +[**ListCommandResponse**](ListCommandResponse.md) ### Authorization @@ -500,7 +500,7 @@ Name | Type | Description | Notes ## ListFleet -> SupersimV1FleetReadResponse ListFleet(ctx, optional) +> ListFleetResponse ListFleet(ctx, optional) @@ -526,7 +526,7 @@ Name | Type | Description | Notes ### Return type -[**SupersimV1FleetReadResponse**](supersim_v1_fleetReadResponse.md) +[**ListFleetResponse**](ListFleetResponse.md) ### Authorization @@ -544,7 +544,7 @@ Name | Type | Description | Notes ## ListNetwork -> SupersimV1NetworkReadResponse ListNetwork(ctx, optional) +> ListNetworkResponse ListNetwork(ctx, optional) @@ -572,7 +572,7 @@ Name | Type | Description | Notes ### Return type -[**SupersimV1NetworkReadResponse**](supersim_v1_networkReadResponse.md) +[**ListNetworkResponse**](ListNetworkResponse.md) ### Authorization @@ -590,7 +590,7 @@ Name | Type | Description | Notes ## ListNetworkAccessProfile -> SupersimV1NetworkAccessProfileReadResponse ListNetworkAccessProfile(ctx, optional) +> ListNetworkAccessProfileResponse ListNetworkAccessProfile(ctx, optional) @@ -615,7 +615,7 @@ Name | Type | Description | Notes ### Return type -[**SupersimV1NetworkAccessProfileReadResponse**](supersim_v1_network_access_profileReadResponse.md) +[**ListNetworkAccessProfileResponse**](ListNetworkAccessProfileResponse.md) ### Authorization @@ -633,7 +633,7 @@ Name | Type | Description | Notes ## ListNetworkAccessProfileNetwork -> SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse ListNetworkAccessProfileNetwork(ctx, NetworkAccessProfileSid, optional) +> ListNetworkAccessProfileNetworkResponse ListNetworkAccessProfileNetwork(ctx, NetworkAccessProfileSid, optional) @@ -660,7 +660,7 @@ Name | Type | Description | Notes ### Return type -[**SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse**](supersim_v1_network_access_profile_network_access_profile_networkReadResponse.md) +[**ListNetworkAccessProfileNetworkResponse**](ListNetworkAccessProfileNetworkResponse.md) ### Authorization @@ -678,7 +678,7 @@ Name | Type | Description | Notes ## ListSim -> SupersimV1SimReadResponse ListSim(ctx, optional) +> ListSimResponse ListSim(ctx, optional) @@ -706,7 +706,7 @@ Name | Type | Description | Notes ### Return type -[**SupersimV1SimReadResponse**](supersim_v1_simReadResponse.md) +[**ListSimResponse**](ListSimResponse.md) ### Authorization @@ -724,7 +724,7 @@ Name | Type | Description | Notes ## ListUsageRecord -> SupersimV1UsageRecordReadResponse ListUsageRecord(ctx, optional) +> ListUsageRecordResponse ListUsageRecord(ctx, optional) @@ -757,7 +757,7 @@ Name | Type | Description | Notes ### Return type -[**SupersimV1UsageRecordReadResponse**](supersim_v1_usage_recordReadResponse.md) +[**ListUsageRecordResponse**](ListUsageRecordResponse.md) ### Authorization @@ -798,6 +798,8 @@ Optional parameters are passed through a pointer to a UpdateFleetOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **CommandsMethod** | **optional.String**| A string representing the HTTP method to use when making a request to `commands_url`. Can be one of `POST` or `GET`. Defaults to `POST`. | + **CommandsUrl** | **optional.String**| The URL that will receive a webhook when a SIM in the Fleet is used to send an SMS from your device (mobile originated) to the Commands number. Your server should respond with an HTTP status code in the 200 range; any response body will be ignored. | **NetworkAccessProfile** | **optional.String**| The SID or unique name of the Network Access Profile that will control which cellular networks the Fleet's SIMs can connect to. | **UniqueName** | **optional.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. | diff --git a/rest/supersim/v1/docs/SupersimV1CommandReadResponse.md b/rest/supersim/v1/docs/ListCommandResponse.md similarity index 71% rename from rest/supersim/v1/docs/SupersimV1CommandReadResponse.md rename to rest/supersim/v1/docs/ListCommandResponse.md index fc1390411..8115a0e87 100644 --- a/rest/supersim/v1/docs/SupersimV1CommandReadResponse.md +++ b/rest/supersim/v1/docs/ListCommandResponse.md @@ -1,11 +1,11 @@ -# SupersimV1CommandReadResponse +# ListCommandResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Commands** | [**[]SupersimV1Command**](supersim.v1.command.md) | | [optional] -**Meta** | [**SupersimV1CommandReadResponseMeta**](supersim_v1_commandReadResponse_meta.md) | | [optional] +**Meta** | [**ListCommandResponseMeta**](ListCommandResponse_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/rest/supersim/v1/docs/ListCommandResponseMeta.md b/rest/supersim/v1/docs/ListCommandResponseMeta.md new file mode 100644 index 000000000..84838a66c --- /dev/null +++ b/rest/supersim/v1/docs/ListCommandResponseMeta.md @@ -0,0 +1,17 @@ +# ListCommandResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/supersim/v1/docs/SupersimV1FleetReadResponse.md b/rest/supersim/v1/docs/ListFleetResponse.md similarity index 71% rename from rest/supersim/v1/docs/SupersimV1FleetReadResponse.md rename to rest/supersim/v1/docs/ListFleetResponse.md index 49b534322..94df880b0 100644 --- a/rest/supersim/v1/docs/SupersimV1FleetReadResponse.md +++ b/rest/supersim/v1/docs/ListFleetResponse.md @@ -1,11 +1,11 @@ -# SupersimV1FleetReadResponse +# ListFleetResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Fleets** | [**[]SupersimV1Fleet**](supersim.v1.fleet.md) | | [optional] -**Meta** | [**SupersimV1CommandReadResponseMeta**](supersim_v1_commandReadResponse_meta.md) | | [optional] +**Meta** | [**ListCommandResponseMeta**](ListCommandResponse_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/rest/supersim/v1/docs/SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse.md b/rest/supersim/v1/docs/ListNetworkAccessProfileNetworkResponse.md similarity index 71% rename from rest/supersim/v1/docs/SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse.md rename to rest/supersim/v1/docs/ListNetworkAccessProfileNetworkResponse.md index 61c7be532..8db328e39 100644 --- a/rest/supersim/v1/docs/SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse.md +++ b/rest/supersim/v1/docs/ListNetworkAccessProfileNetworkResponse.md @@ -1,10 +1,10 @@ -# SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse +# ListNetworkAccessProfileNetworkResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**SupersimV1CommandReadResponseMeta**](supersim_v1_commandReadResponse_meta.md) | | [optional] +**Meta** | [**ListCommandResponseMeta**](ListCommandResponse_meta.md) | | [optional] **Networks** | [**[]SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork**](supersim.v1.network_access_profile.network_access_profile_network.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/rest/supersim/v1/docs/SupersimV1NetworkAccessProfileReadResponse.md b/rest/supersim/v1/docs/ListNetworkAccessProfileResponse.md similarity index 72% rename from rest/supersim/v1/docs/SupersimV1NetworkAccessProfileReadResponse.md rename to rest/supersim/v1/docs/ListNetworkAccessProfileResponse.md index cd79c5284..2e5366a77 100644 --- a/rest/supersim/v1/docs/SupersimV1NetworkAccessProfileReadResponse.md +++ b/rest/supersim/v1/docs/ListNetworkAccessProfileResponse.md @@ -1,10 +1,10 @@ -# SupersimV1NetworkAccessProfileReadResponse +# ListNetworkAccessProfileResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**SupersimV1CommandReadResponseMeta**](supersim_v1_commandReadResponse_meta.md) | | [optional] +**Meta** | [**ListCommandResponseMeta**](ListCommandResponse_meta.md) | | [optional] **NetworkAccessProfiles** | [**[]SupersimV1NetworkAccessProfile**](supersim.v1.network_access_profile.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/rest/supersim/v1/docs/SupersimV1NetworkReadResponse.md b/rest/supersim/v1/docs/ListNetworkResponse.md similarity index 71% rename from rest/supersim/v1/docs/SupersimV1NetworkReadResponse.md rename to rest/supersim/v1/docs/ListNetworkResponse.md index 6746b3906..b156c7d16 100644 --- a/rest/supersim/v1/docs/SupersimV1NetworkReadResponse.md +++ b/rest/supersim/v1/docs/ListNetworkResponse.md @@ -1,10 +1,10 @@ -# SupersimV1NetworkReadResponse +# ListNetworkResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**SupersimV1CommandReadResponseMeta**](supersim_v1_commandReadResponse_meta.md) | | [optional] +**Meta** | [**ListCommandResponseMeta**](ListCommandResponse_meta.md) | | [optional] **Networks** | [**[]SupersimV1Network**](supersim.v1.network.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/rest/supersim/v1/docs/SupersimV1SimReadResponse.md b/rest/supersim/v1/docs/ListSimResponse.md similarity index 71% rename from rest/supersim/v1/docs/SupersimV1SimReadResponse.md rename to rest/supersim/v1/docs/ListSimResponse.md index 4560c0fee..da52f6c6b 100644 --- a/rest/supersim/v1/docs/SupersimV1SimReadResponse.md +++ b/rest/supersim/v1/docs/ListSimResponse.md @@ -1,10 +1,10 @@ -# SupersimV1SimReadResponse +# ListSimResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**SupersimV1CommandReadResponseMeta**](supersim_v1_commandReadResponse_meta.md) | | [optional] +**Meta** | [**ListCommandResponseMeta**](ListCommandResponse_meta.md) | | [optional] **Sims** | [**[]SupersimV1Sim**](supersim.v1.sim.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/rest/supersim/v1/docs/SupersimV1UsageRecordReadResponse.md b/rest/supersim/v1/docs/ListUsageRecordResponse.md similarity index 71% rename from rest/supersim/v1/docs/SupersimV1UsageRecordReadResponse.md rename to rest/supersim/v1/docs/ListUsageRecordResponse.md index 269847487..8aeee0a94 100644 --- a/rest/supersim/v1/docs/SupersimV1UsageRecordReadResponse.md +++ b/rest/supersim/v1/docs/ListUsageRecordResponse.md @@ -1,10 +1,10 @@ -# SupersimV1UsageRecordReadResponse +# ListUsageRecordResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**SupersimV1CommandReadResponseMeta**](supersim_v1_commandReadResponse_meta.md) | | [optional] +**Meta** | [**ListCommandResponseMeta**](ListCommandResponse_meta.md) | | [optional] **UsageRecords** | [**[]SupersimV1UsageRecord**](supersim.v1.usage_record.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/rest/supersim/v1/docs/SupersimV1CommandReadResponseMeta.md b/rest/supersim/v1/docs/SupersimV1CommandReadResponseMeta.md deleted file mode 100644 index 5bef4e6f9..000000000 --- a/rest/supersim/v1/docs/SupersimV1CommandReadResponseMeta.md +++ /dev/null @@ -1,17 +0,0 @@ -# SupersimV1CommandReadResponseMeta - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FirstPageUrl** | **string** | | [optional] -**Key** | **string** | | [optional] -**NextPageUrl** | **string** | | [optional] -**Page** | **int32** | | [optional] -**PageSize** | **int32** | | [optional] -**PreviousPageUrl** | **string** | | [optional] -**Url** | **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/rest/supersim/v1/docs/UpdateFleetRequest.md b/rest/supersim/v1/docs/UpdateFleetRequest.md index b0f639f33..779a5a4d3 100644 --- a/rest/supersim/v1/docs/UpdateFleetRequest.md +++ b/rest/supersim/v1/docs/UpdateFleetRequest.md @@ -4,6 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**CommandsMethod** | **string** | A string representing the HTTP method to use when making a request to `commands_url`. Can be one of `POST` or `GET`. Defaults to `POST`. | [optional] +**CommandsUrl** | **string** | The URL that will receive a webhook when a SIM in the Fleet is used to send an SMS from your device (mobile originated) to the Commands number. Your server should respond with an HTTP status code in the 200 range; any response body will be ignored. | [optional] **NetworkAccessProfile** | **string** | The SID or unique name of the Network Access Profile that will control which cellular networks the Fleet's SIMs can connect to. | [optional] **UniqueName** | **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] diff --git a/rest/supersim/v1/model_create_command_request.go b/rest/supersim/v1/model_create_command_request.go index 344d6f450..c18147aee 100644 --- a/rest/supersim/v1/model_create_command_request.go +++ b/rest/supersim/v1/model_create_command_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/supersim/v1/model_create_fleet_request.go b/rest/supersim/v1/model_create_fleet_request.go index d13b94b7b..2467b39f0 100644 --- a/rest/supersim/v1/model_create_fleet_request.go +++ b/rest/supersim/v1/model_create_fleet_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -15,7 +15,7 @@ type CreateFleetRequest struct { CommandsEnabled bool `json:"CommandsEnabled,omitempty"` // A string representing the HTTP method to use when making a request to `commands_url`. Can be one of `POST` or `GET`. Defaults to `POST`. CommandsMethod string `json:"CommandsMethod,omitempty"` - // The URL that will receive a webhook when a SIM in the Fleet originates a machine-to-machine SMS via Commands. Your server should respond with an HTTP status code in the 200 range; any response body will be ignored. + // The URL that will receive a webhook when a SIM in the Fleet is used to send an SMS from your device (mobile originated) to the Commands number. Your server should respond with an HTTP status code in the 200 range; any response body will be ignored. CommandsUrl string `json:"CommandsUrl,omitempty"` // Defines whether SIMs in the Fleet are capable of using 2G/3G/4G/LTE/CAT-M data connectivity. Defaults to `true`. DataEnabled bool `json:"DataEnabled,omitempty"` diff --git a/rest/supersim/v1/model_create_network_access_profile_network_request.go b/rest/supersim/v1/model_create_network_access_profile_network_request.go index d8f95cf7b..20b6990fe 100644 --- a/rest/supersim/v1/model_create_network_access_profile_network_request.go +++ b/rest/supersim/v1/model_create_network_access_profile_network_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/supersim/v1/model_create_network_access_profile_request.go b/rest/supersim/v1/model_create_network_access_profile_request.go index eb8fcedd7..7adf6e628 100644 --- a/rest/supersim/v1/model_create_network_access_profile_request.go +++ b/rest/supersim/v1/model_create_network_access_profile_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/supersim/v1/model_supersim_v1_command_read_response.go b/rest/supersim/v1/model_list_command_response.go similarity index 54% rename from rest/supersim/v1/model_supersim_v1_command_read_response.go rename to rest/supersim/v1/model_list_command_response.go index ea2fe2f4b..c782154f8 100644 --- a/rest/supersim/v1/model_supersim_v1_command_read_response.go +++ b/rest/supersim/v1/model_list_command_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// SupersimV1CommandReadResponse struct for SupersimV1CommandReadResponse -type SupersimV1CommandReadResponse struct { +// ListCommandResponse struct for ListCommandResponse +type ListCommandResponse struct { Commands []SupersimV1Command `json:"Commands,omitempty"` - Meta SupersimV1CommandReadResponseMeta `json:"Meta,omitempty"` + Meta ListCommandResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/supersim/v1/model_supersim_v1_command_read_response_meta.go b/rest/supersim/v1/model_list_command_response_meta.go similarity index 76% rename from rest/supersim/v1/model_supersim_v1_command_read_response_meta.go rename to rest/supersim/v1/model_list_command_response_meta.go index b6203a9cc..b667698a1 100644 --- a/rest/supersim/v1/model_supersim_v1_command_read_response_meta.go +++ b/rest/supersim/v1/model_list_command_response_meta.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// SupersimV1CommandReadResponseMeta struct for SupersimV1CommandReadResponseMeta -type SupersimV1CommandReadResponseMeta struct { +// ListCommandResponseMeta struct for ListCommandResponseMeta +type ListCommandResponseMeta struct { FirstPageUrl string `json:"FirstPageUrl,omitempty"` Key string `json:"Key,omitempty"` NextPageUrl string `json:"NextPageUrl,omitempty"` diff --git a/rest/supersim/v1/model_supersim_v1_fleet_read_response.go b/rest/supersim/v1/model_list_fleet_response.go similarity index 54% rename from rest/supersim/v1/model_supersim_v1_fleet_read_response.go rename to rest/supersim/v1/model_list_fleet_response.go index 91e73553d..99a838ae5 100644 --- a/rest/supersim/v1/model_supersim_v1_fleet_read_response.go +++ b/rest/supersim/v1/model_list_fleet_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// SupersimV1FleetReadResponse struct for SupersimV1FleetReadResponse -type SupersimV1FleetReadResponse struct { +// ListFleetResponse struct for ListFleetResponse +type ListFleetResponse struct { Fleets []SupersimV1Fleet `json:"Fleets,omitempty"` - Meta SupersimV1CommandReadResponseMeta `json:"Meta,omitempty"` + Meta ListCommandResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/supersim/v1/model_list_network_access_profile_network_response.go b/rest/supersim/v1/model_list_network_access_profile_network_response.go new file mode 100644 index 000000000..cee6558d8 --- /dev/null +++ b/rest/supersim/v1/model_list_network_access_profile_network_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Supersim + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListNetworkAccessProfileNetworkResponse struct for ListNetworkAccessProfileNetworkResponse +type ListNetworkAccessProfileNetworkResponse struct { + Meta ListCommandResponseMeta `json:"Meta,omitempty"` + Networks []SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork `json:"Networks,omitempty"` +} diff --git a/rest/supersim/v1/model_supersim_v1_network_access_profile_read_response.go b/rest/supersim/v1/model_list_network_access_profile_response.go similarity index 54% rename from rest/supersim/v1/model_supersim_v1_network_access_profile_read_response.go rename to rest/supersim/v1/model_list_network_access_profile_response.go index 09ab6bd31..874e5438c 100644 --- a/rest/supersim/v1/model_supersim_v1_network_access_profile_read_response.go +++ b/rest/supersim/v1/model_list_network_access_profile_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// SupersimV1NetworkAccessProfileReadResponse struct for SupersimV1NetworkAccessProfileReadResponse -type SupersimV1NetworkAccessProfileReadResponse struct { - Meta SupersimV1CommandReadResponseMeta `json:"Meta,omitempty"` +// ListNetworkAccessProfileResponse struct for ListNetworkAccessProfileResponse +type ListNetworkAccessProfileResponse struct { + Meta ListCommandResponseMeta `json:"Meta,omitempty"` NetworkAccessProfiles []SupersimV1NetworkAccessProfile `json:"NetworkAccessProfiles,omitempty"` } diff --git a/rest/supersim/v1/model_supersim_v1_network_read_response.go b/rest/supersim/v1/model_list_network_response.go similarity index 54% rename from rest/supersim/v1/model_supersim_v1_network_read_response.go rename to rest/supersim/v1/model_list_network_response.go index 302c4dd59..224b865cc 100644 --- a/rest/supersim/v1/model_supersim_v1_network_read_response.go +++ b/rest/supersim/v1/model_list_network_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// SupersimV1NetworkReadResponse struct for SupersimV1NetworkReadResponse -type SupersimV1NetworkReadResponse struct { - Meta SupersimV1CommandReadResponseMeta `json:"Meta,omitempty"` +// ListNetworkResponse struct for ListNetworkResponse +type ListNetworkResponse struct { + Meta ListCommandResponseMeta `json:"Meta,omitempty"` Networks []SupersimV1Network `json:"Networks,omitempty"` } diff --git a/rest/supersim/v1/model_supersim_v1_sim_read_response.go b/rest/supersim/v1/model_list_sim_response.go similarity index 55% rename from rest/supersim/v1/model_supersim_v1_sim_read_response.go rename to rest/supersim/v1/model_list_sim_response.go index cdda47303..cd0841fba 100644 --- a/rest/supersim/v1/model_supersim_v1_sim_read_response.go +++ b/rest/supersim/v1/model_list_sim_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// SupersimV1SimReadResponse struct for SupersimV1SimReadResponse -type SupersimV1SimReadResponse struct { - Meta SupersimV1CommandReadResponseMeta `json:"Meta,omitempty"` +// ListSimResponse struct for ListSimResponse +type ListSimResponse struct { + Meta ListCommandResponseMeta `json:"Meta,omitempty"` Sims []SupersimV1Sim `json:"Sims,omitempty"` } diff --git a/rest/supersim/v1/model_supersim_v1_usage_record_read_response.go b/rest/supersim/v1/model_list_usage_record_response.go similarity index 54% rename from rest/supersim/v1/model_supersim_v1_usage_record_read_response.go rename to rest/supersim/v1/model_list_usage_record_response.go index a2231e308..bb4f9c35c 100644 --- a/rest/supersim/v1/model_supersim_v1_usage_record_read_response.go +++ b/rest/supersim/v1/model_list_usage_record_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// SupersimV1UsageRecordReadResponse struct for SupersimV1UsageRecordReadResponse -type SupersimV1UsageRecordReadResponse struct { - Meta SupersimV1CommandReadResponseMeta `json:"Meta,omitempty"` +// ListUsageRecordResponse struct for ListUsageRecordResponse +type ListUsageRecordResponse struct { + Meta ListCommandResponseMeta `json:"Meta,omitempty"` UsageRecords []SupersimV1UsageRecord `json:"UsageRecords,omitempty"` } diff --git a/rest/supersim/v1/model_supersim_v1_command.go b/rest/supersim/v1/model_supersim_v1_command.go index 20459a780..753f73f70 100644 --- a/rest/supersim/v1/model_supersim_v1_command.go +++ b/rest/supersim/v1/model_supersim_v1_command.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/supersim/v1/model_supersim_v1_fleet.go b/rest/supersim/v1/model_supersim_v1_fleet.go index a195d3d95..f67e30a2f 100644 --- a/rest/supersim/v1/model_supersim_v1_fleet.go +++ b/rest/supersim/v1/model_supersim_v1_fleet.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/supersim/v1/model_supersim_v1_network.go b/rest/supersim/v1/model_supersim_v1_network.go index 0a025ea7f..db431d6b9 100644 --- a/rest/supersim/v1/model_supersim_v1_network.go +++ b/rest/supersim/v1/model_supersim_v1_network.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/supersim/v1/model_supersim_v1_network_access_profile.go b/rest/supersim/v1/model_supersim_v1_network_access_profile.go index 8d20cf0e6..fd4c60723 100644 --- a/rest/supersim/v1/model_supersim_v1_network_access_profile.go +++ b/rest/supersim/v1/model_supersim_v1_network_access_profile.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/supersim/v1/model_supersim_v1_network_access_profile_network_access_profile_network.go b/rest/supersim/v1/model_supersim_v1_network_access_profile_network_access_profile_network.go index 107814c1d..dcb40fac0 100644 --- a/rest/supersim/v1/model_supersim_v1_network_access_profile_network_access_profile_network.go +++ b/rest/supersim/v1/model_supersim_v1_network_access_profile_network_access_profile_network.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/supersim/v1/model_supersim_v1_network_access_profile_network_access_profile_network_read_response.go b/rest/supersim/v1/model_supersim_v1_network_access_profile_network_access_profile_network_read_response.go deleted file mode 100644 index 00ae7546f..000000000 --- a/rest/supersim/v1/model_supersim_v1_network_access_profile_network_access_profile_network_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Supersim - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse struct for SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse -type SupersimV1NetworkAccessProfileNetworkAccessProfileNetworkReadResponse struct { - Meta SupersimV1CommandReadResponseMeta `json:"Meta,omitempty"` - Networks []SupersimV1NetworkAccessProfileNetworkAccessProfileNetwork `json:"Networks,omitempty"` -} diff --git a/rest/supersim/v1/model_supersim_v1_sim.go b/rest/supersim/v1/model_supersim_v1_sim.go index 26ef7c570..b94e7cbae 100644 --- a/rest/supersim/v1/model_supersim_v1_sim.go +++ b/rest/supersim/v1/model_supersim_v1_sim.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/supersim/v1/model_supersim_v1_usage_record.go b/rest/supersim/v1/model_supersim_v1_usage_record.go index 7f5c78bf5..31921cbe4 100644 --- a/rest/supersim/v1/model_supersim_v1_usage_record.go +++ b/rest/supersim/v1/model_supersim_v1_usage_record.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/supersim/v1/model_update_fleet_request.go b/rest/supersim/v1/model_update_fleet_request.go index 6fea3b09a..3928e7061 100644 --- a/rest/supersim/v1/model_update_fleet_request.go +++ b/rest/supersim/v1/model_update_fleet_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -11,6 +11,10 @@ package openapi // UpdateFleetRequest struct for UpdateFleetRequest type UpdateFleetRequest struct { + // A string representing the HTTP method to use when making a request to `commands_url`. Can be one of `POST` or `GET`. Defaults to `POST`. + CommandsMethod string `json:"CommandsMethod,omitempty"` + // The URL that will receive a webhook when a SIM in the Fleet is used to send an SMS from your device (mobile originated) to the Commands number. Your server should respond with an HTTP status code in the 200 range; any response body will be ignored. + CommandsUrl string `json:"CommandsUrl,omitempty"` // The SID or unique name of the Network Access Profile that will control which cellular networks the Fleet's SIMs can connect to. NetworkAccessProfile string `json:"NetworkAccessProfile,omitempty"` // 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. diff --git a/rest/supersim/v1/model_update_network_access_profile_request.go b/rest/supersim/v1/model_update_network_access_profile_request.go index 00e353669..61200be61 100644 --- a/rest/supersim/v1/model_update_network_access_profile_request.go +++ b/rest/supersim/v1/model_update_network_access_profile_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/supersim/v1/model_update_sim_request.go b/rest/supersim/v1/model_update_sim_request.go index 0ed330041..8441596c0 100644 --- a/rest/supersim/v1/model_update_sim_request.go +++ b/rest/supersim/v1/model_update_sim_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/supersim/v1/response.go b/rest/supersim/v1/response.go index b70447795..abb8535c9 100644 --- a/rest/supersim/v1/response.go +++ b/rest/supersim/v1/response.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/sync/v1/README.md b/rest/sync/v1/README.md index c37c0bdbe..76e2e8cf7 100644 --- a/rest/sync/v1/README.md +++ b/rest/sync/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 5.15.0 +- API version: 1.0.0 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) @@ -91,27 +91,27 @@ Class | Method | HTTP request | Description - [CreateSyncMapItemRequest](docs/CreateSyncMapItemRequest.md) - [CreateSyncMapRequest](docs/CreateSyncMapRequest.md) - [CreateSyncStreamRequest](docs/CreateSyncStreamRequest.md) + - [ListDocumentPermissionResponse](docs/ListDocumentPermissionResponse.md) + - [ListDocumentResponse](docs/ListDocumentResponse.md) + - [ListServiceResponse](docs/ListServiceResponse.md) + - [ListServiceResponseMeta](docs/ListServiceResponseMeta.md) + - [ListSyncListItemResponse](docs/ListSyncListItemResponse.md) + - [ListSyncListPermissionResponse](docs/ListSyncListPermissionResponse.md) + - [ListSyncListResponse](docs/ListSyncListResponse.md) + - [ListSyncMapItemResponse](docs/ListSyncMapItemResponse.md) + - [ListSyncMapPermissionResponse](docs/ListSyncMapPermissionResponse.md) + - [ListSyncMapResponse](docs/ListSyncMapResponse.md) + - [ListSyncStreamResponse](docs/ListSyncStreamResponse.md) - [SyncV1Service](docs/SyncV1Service.md) - [SyncV1ServiceDocument](docs/SyncV1ServiceDocument.md) - [SyncV1ServiceDocumentDocumentPermission](docs/SyncV1ServiceDocumentDocumentPermission.md) - - [SyncV1ServiceDocumentDocumentPermissionReadResponse](docs/SyncV1ServiceDocumentDocumentPermissionReadResponse.md) - - [SyncV1ServiceDocumentReadResponse](docs/SyncV1ServiceDocumentReadResponse.md) - - [SyncV1ServiceReadResponse](docs/SyncV1ServiceReadResponse.md) - - [SyncV1ServiceReadResponseMeta](docs/SyncV1ServiceReadResponseMeta.md) - [SyncV1ServiceSyncList](docs/SyncV1ServiceSyncList.md) - - [SyncV1ServiceSyncListReadResponse](docs/SyncV1ServiceSyncListReadResponse.md) - [SyncV1ServiceSyncListSyncListItem](docs/SyncV1ServiceSyncListSyncListItem.md) - - [SyncV1ServiceSyncListSyncListItemReadResponse](docs/SyncV1ServiceSyncListSyncListItemReadResponse.md) - [SyncV1ServiceSyncListSyncListPermission](docs/SyncV1ServiceSyncListSyncListPermission.md) - - [SyncV1ServiceSyncListSyncListPermissionReadResponse](docs/SyncV1ServiceSyncListSyncListPermissionReadResponse.md) - [SyncV1ServiceSyncMap](docs/SyncV1ServiceSyncMap.md) - - [SyncV1ServiceSyncMapReadResponse](docs/SyncV1ServiceSyncMapReadResponse.md) - [SyncV1ServiceSyncMapSyncMapItem](docs/SyncV1ServiceSyncMapSyncMapItem.md) - - [SyncV1ServiceSyncMapSyncMapItemReadResponse](docs/SyncV1ServiceSyncMapSyncMapItemReadResponse.md) - [SyncV1ServiceSyncMapSyncMapPermission](docs/SyncV1ServiceSyncMapSyncMapPermission.md) - - [SyncV1ServiceSyncMapSyncMapPermissionReadResponse](docs/SyncV1ServiceSyncMapSyncMapPermissionReadResponse.md) - [SyncV1ServiceSyncStream](docs/SyncV1ServiceSyncStream.md) - - [SyncV1ServiceSyncStreamReadResponse](docs/SyncV1ServiceSyncStreamReadResponse.md) - [SyncV1ServiceSyncStreamStreamMessage](docs/SyncV1ServiceSyncStreamStreamMessage.md) - [UpdateDocumentPermissionRequest](docs/UpdateDocumentPermissionRequest.md) - [UpdateDocumentRequest](docs/UpdateDocumentRequest.md) diff --git a/rest/sync/v1/api_default.go b/rest/sync/v1/api_default.go index 496b011b4..ab1f95e00 100644 --- a/rest/sync/v1/api_default.go +++ b/rest/sync/v1/api_default.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -26,21 +26,21 @@ type DefaultApiService struct { func NewDefaultApiService(client *twilio.Client) *DefaultApiService { return &DefaultApiService { client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + baseURL: fmt.Sprintf("https://sync.twilio.com"), } } // CreateDocumentParams Optional parameters for the method 'CreateDocument' type CreateDocumentParams struct { - Data *map[string]interface{} `json:"Data,omitempty"` - Ttl *int32 `json:"Ttl,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* CreateDocument Method for CreateDocument * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the new Document resource in. * @param optional nil or *CreateDocumentOpts - Optional Parameters: - * @param "Data" (map[string]interface{}) - A JSON string that represents an arbitrary, schema-less object that the Sync Document stores. Can be up to 16KB in length. + * @param "Data" (map[string]interface{}) - A JSON string that represents an arbitrary, schema-less object that the Sync Document stores. Can be up to 16 KiB in length. * @param "Ttl" (int32) - How long, in seconds, before the Sync Document expires and is deleted (the Sync Document's time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync Document does not expire. The Sync Document will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. * @param "UniqueName" (string) - An application-defined string that uniquely identifies the Sync Document @return SyncV1ServiceDocument @@ -86,13 +86,13 @@ func (c *DefaultApiService) CreateDocument(ServiceSid string, params *CreateDocu } // CreateServiceParams Optional parameters for the method 'CreateService' type CreateServiceParams struct { - AclEnabled *bool `json:"AclEnabled,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - ReachabilityDebouncingEnabled *bool `json:"ReachabilityDebouncingEnabled,omitempty"` - ReachabilityDebouncingWindow *int32 `json:"ReachabilityDebouncingWindow,omitempty"` - ReachabilityWebhooksEnabled *bool `json:"ReachabilityWebhooksEnabled,omitempty"` - WebhookUrl *string `json:"WebhookUrl,omitempty"` - WebhooksFromRestEnabled *bool `json:"WebhooksFromRestEnabled,omitempty"` + AclEnabled *bool `json:"AclEnabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + ReachabilityDebouncingEnabled *bool `json:"ReachabilityDebouncingEnabled,omitempty"` + ReachabilityDebouncingWindow *int32 `json:"ReachabilityDebouncingWindow,omitempty"` + ReachabilityWebhooksEnabled *bool `json:"ReachabilityWebhooksEnabled,omitempty"` + WebhookUrl *string `json:"WebhookUrl,omitempty"` + WebhooksFromRestEnabled *bool `json:"WebhooksFromRestEnabled,omitempty"` } /* @@ -153,7 +153,7 @@ func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*SyncV1S } // CreateStreamMessageParams Optional parameters for the method 'CreateStreamMessage' type CreateStreamMessageParams struct { - Data *map[string]interface{} `json:"Data,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` } /* @@ -162,7 +162,7 @@ Create a new Stream Message. * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the new Stream Message in. * @param StreamSid The SID of the Sync Stream to create the new Stream Message resource for. * @param optional nil or *CreateStreamMessageOpts - Optional Parameters: - * @param "Data" (map[string]interface{}) - A JSON string that represents an arbitrary, schema-less object that makes up the Stream Message body. Can be up to 4KB in length. + * @param "Data" (map[string]interface{}) - A JSON string that represents an arbitrary, schema-less object that makes up the Stream Message body. Can be up to 4 KiB in length. @return SyncV1ServiceSyncStreamStreamMessage */ func (c *DefaultApiService) CreateStreamMessage(ServiceSid string, StreamSid string, params *CreateStreamMessageParams) (*SyncV1ServiceSyncStreamStreamMessage, error) { @@ -201,9 +201,9 @@ func (c *DefaultApiService) CreateStreamMessage(ServiceSid string, StreamSid str } // CreateSyncListParams Optional parameters for the method 'CreateSyncList' type CreateSyncListParams struct { - CollectionTtl *int32 `json:"CollectionTtl,omitempty"` - Ttl *int32 `json:"Ttl,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + CollectionTtl *int32 `json:"CollectionTtl,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -250,10 +250,10 @@ func (c *DefaultApiService) CreateSyncList(ServiceSid string, params *CreateSync } // CreateSyncListItemParams Optional parameters for the method 'CreateSyncListItem' type CreateSyncListItemParams struct { - CollectionTtl *int32 `json:"CollectionTtl,omitempty"` - Data *map[string]interface{} `json:"Data,omitempty"` - ItemTtl *int32 `json:"ItemTtl,omitempty"` - Ttl *int32 `json:"Ttl,omitempty"` + CollectionTtl *int32 `json:"CollectionTtl,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` + ItemTtl *int32 `json:"ItemTtl,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` } /* @@ -262,7 +262,7 @@ CreateSyncListItem Method for CreateSyncListItem * @param ListSid The SID of the Sync List to add the new List Item to. Can be the Sync List resource's `sid` or its `unique_name`. * @param optional nil or *CreateSyncListItemOpts - Optional Parameters: * @param "CollectionTtl" (int32) - How long, in seconds, before the List Item's parent Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. - * @param "Data" (map[string]interface{}) - A JSON string that represents an arbitrary, schema-less object that the List Item stores. Can be up to 16KB in length. + * @param "Data" (map[string]interface{}) - A JSON string that represents an arbitrary, schema-less object that the List Item stores. Can be up to 16 KiB in length. * @param "ItemTtl" (int32) - How long, in seconds, before the List Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the List Item does not expire. The List Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. * @param "Ttl" (int32) - An alias for `item_ttl`. If both parameters are provided, this value is ignored. @return SyncV1ServiceSyncListSyncListItem @@ -312,9 +312,9 @@ func (c *DefaultApiService) CreateSyncListItem(ServiceSid string, ListSid string } // CreateSyncMapParams Optional parameters for the method 'CreateSyncMap' type CreateSyncMapParams struct { - CollectionTtl *int32 `json:"CollectionTtl,omitempty"` - Ttl *int32 `json:"Ttl,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + CollectionTtl *int32 `json:"CollectionTtl,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -361,20 +361,20 @@ func (c *DefaultApiService) CreateSyncMap(ServiceSid string, params *CreateSyncM } // CreateSyncMapItemParams Optional parameters for the method 'CreateSyncMapItem' type CreateSyncMapItemParams struct { - CollectionTtl *int32 `json:"CollectionTtl,omitempty"` - Data *map[string]interface{} `json:"Data,omitempty"` - ItemTtl *int32 `json:"ItemTtl,omitempty"` - Key *string `json:"Key,omitempty"` - Ttl *int32 `json:"Ttl,omitempty"` + CollectionTtl *int32 `json:"CollectionTtl,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` + ItemTtl *int32 `json:"ItemTtl,omitempty"` + Key *string `json:"Key,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` } /* CreateSyncMapItem Method for CreateSyncMapItem * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the Map Item in. - * @param MapSid The SID of the Sync Map to add the new Map Item to. + * @param MapSid The SID of the Sync Map to add the new Map Item to. Can be the Sync Map resource's `sid` or its `unique_name`. * @param optional nil or *CreateSyncMapItemOpts - Optional Parameters: * @param "CollectionTtl" (int32) - How long, in seconds, before the Map Item's parent Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync Map does not expire. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. - * @param "Data" (map[string]interface{}) - A JSON string that represents an arbitrary, schema-less object that the Map Item stores. Can be up to 16KB in length. + * @param "Data" (map[string]interface{}) - A JSON string that represents an arbitrary, schema-less object that the Map Item stores. Can be up to 16 KiB in length. * @param "ItemTtl" (int32) - How long, in seconds, before the Map Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Map Item does not expire. The Map Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. * @param "Key" (string) - The unique, user-defined key for the Map Item. Can be up to 320 characters long. * @param "Ttl" (int32) - An alias for `item_ttl`. If both parameters are provided, this value is ignored. @@ -428,8 +428,8 @@ func (c *DefaultApiService) CreateSyncMapItem(ServiceSid string, MapSid string, } // CreateSyncStreamParams Optional parameters for the method 'CreateSyncStream' type CreateSyncStreamParams struct { - Ttl *int32 `json:"Ttl,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -473,13 +473,13 @@ func (c *DefaultApiService) CreateSyncStream(ServiceSid string, params *CreateSy } // DeleteDocumentParams Optional parameters for the method 'DeleteDocument' type DeleteDocumentParams struct { - IfMatch *string `json:"If-Match,omitempty"` + IfMatch *string `json:"If-Match,omitempty"` } /* DeleteDocument Method for DeleteDocument * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document resource to delete. - * @param Sid The SID of the Document resource to delete. + * @param Sid The SID of the Document resource to delete. Can be the Document resource's `sid` or its `unique_name`. * @param optional nil or *DeleteDocumentOpts - Optional Parameters: * @param "IfMatch" (string) - The If-Match HTTP request header */ @@ -563,7 +563,7 @@ func (c *DefaultApiService) DeleteService(Sid string) (error) { /* DeleteSyncList Method for DeleteSyncList * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List resource to delete. - * @param Sid The SID of the Sync List resource to delete. + * @param Sid The SID of the Sync List resource to delete. Can be the Sync List resource's `sid` or its `unique_name`. */ func (c *DefaultApiService) DeleteSyncList(ServiceSid string, Sid string) (error) { path := "/v1/Services/{ServiceSid}/Lists/{Sid}" @@ -587,7 +587,7 @@ func (c *DefaultApiService) DeleteSyncList(ServiceSid string, Sid string) (error } // DeleteSyncListItemParams Optional parameters for the method 'DeleteSyncListItem' type DeleteSyncListItemParams struct { - IfMatch *string `json:"If-Match,omitempty"` + IfMatch *string `json:"If-Match,omitempty"` } /* @@ -655,7 +655,7 @@ func (c *DefaultApiService) DeleteSyncListPermission(ServiceSid string, ListSid /* DeleteSyncMap Method for DeleteSyncMap * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map resource to delete. - * @param Sid The SID of the Sync Map resource to delete. + * @param Sid The SID of the Sync Map resource to delete. Can be the Sync Map's `sid` or its `unique_name`. */ func (c *DefaultApiService) DeleteSyncMap(ServiceSid string, Sid string) (error) { path := "/v1/Services/{ServiceSid}/Maps/{Sid}" @@ -679,13 +679,13 @@ func (c *DefaultApiService) DeleteSyncMap(ServiceSid string, Sid string) (error) } // DeleteSyncMapItemParams Optional parameters for the method 'DeleteSyncMapItem' type DeleteSyncMapItemParams struct { - IfMatch *string `json:"If-Match,omitempty"` + IfMatch *string `json:"If-Match,omitempty"` } /* DeleteSyncMapItem Method for DeleteSyncMapItem * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Item resource to delete. - * @param MapSid The SID of the Sync Map with the Sync Map Item resource to delete. Can be the Sync Map's `sid` or its `unique_name`. + * @param MapSid The SID of the Sync Map with the Sync Map Item resource to delete. Can be the Sync Map resource's `sid` or its `unique_name`. * @param Key The `key` value of the Sync Map Item resource to delete. * @param optional nil or *DeleteSyncMapItemOpts - Optional Parameters: * @param "IfMatch" (string) - The If-Match HTTP request header @@ -719,7 +719,7 @@ func (c *DefaultApiService) DeleteSyncMapItem(ServiceSid string, MapSid string, DeleteSyncMapPermission Method for DeleteSyncMapPermission Delete a specific Sync Map Permission. * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Permission resource to delete. Can be the Service's `sid` value or `default`. - * @param MapSid The SID of the Sync Map with the Sync Map Permission resource to delete. Can be the Sync Map's `sid` or its `unique_name`. + * @param MapSid The SID of the Sync Map with the Sync Map Permission resource to delete. Can be the Sync Map resource's `sid` or its `unique_name`. * @param Identity The application-defined string that uniquely identifies the User's Sync Map Permission resource to delete. */ func (c *DefaultApiService) DeleteSyncMapPermission(ServiceSid string, MapSid string, Identity string) (error) { @@ -774,7 +774,7 @@ func (c *DefaultApiService) DeleteSyncStream(ServiceSid string, Sid string) (err /* FetchDocument Method for FetchDocument * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document resource to fetch. - * @param Sid The SID of the Document resource to fetch. + * @param Sid The SID of the Document resource to fetch. Can be the Document resource's `sid` or its `unique_name`. @return SyncV1ServiceDocument */ func (c *DefaultApiService) FetchDocument(ServiceSid string, Sid string) (*SyncV1ServiceDocument, error) { @@ -871,7 +871,7 @@ func (c *DefaultApiService) FetchService(Sid string) (*SyncV1Service, error) { /* FetchSyncList Method for FetchSyncList * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List resource to fetch. - * @param Sid The SID of the Sync List resource to fetch. + * @param Sid The SID of the Sync List resource to fetch. Can be the Sync List resource's `sid` or its `unique_name`. @return SyncV1ServiceSyncList */ func (c *DefaultApiService) FetchSyncList(ServiceSid string, Sid string) (*SyncV1ServiceSyncList, error) { @@ -972,7 +972,7 @@ func (c *DefaultApiService) FetchSyncListPermission(ServiceSid string, ListSid s /* FetchSyncMap Method for FetchSyncMap * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map resource to fetch. - * @param Sid The SID of the Sync Map resource to fetch. + * @param Sid The SID of the Sync Map resource to fetch. Can be the Sync Map's `sid` or its `unique_name`. @return SyncV1ServiceSyncMap */ func (c *DefaultApiService) FetchSyncMap(ServiceSid string, Sid string) (*SyncV1ServiceSyncMap, error) { @@ -1004,7 +1004,7 @@ func (c *DefaultApiService) FetchSyncMap(ServiceSid string, Sid string) (*SyncV1 /* FetchSyncMapItem Method for FetchSyncMapItem * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Item resource to fetch. - * @param MapSid The SID of the Sync Map with the Sync Map Item resource to fetch. Can be the Sync Map's `sid` or its `unique_name`. + * @param MapSid The SID of the Sync Map with the Sync Map Item resource to fetch. Can be the Sync Map resource's `sid` or its `unique_name`. * @param Key The `key` value of the Sync Map Item resource to fetch. @return SyncV1ServiceSyncMapSyncMapItem */ @@ -1039,7 +1039,7 @@ func (c *DefaultApiService) FetchSyncMapItem(ServiceSid string, MapSid string, K FetchSyncMapPermission Method for FetchSyncMapPermission Fetch a specific Sync Map Permission. * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Permission resource to fetch. Can be the Service's `sid` value or `default`. - * @param MapSid The SID of the Sync Map with the Sync Map Permission resource to fetch. Can be the Sync Map's `sid` or its `unique_name`. + * @param MapSid The SID of the Sync Map with the Sync Map Permission resource to fetch. Can be the Sync Map resource's `sid` or its `unique_name`. * @param Identity The application-defined string that uniquely identifies the User's Sync Map Permission resource to fetch. @return SyncV1ServiceSyncMapSyncMapPermission */ @@ -1104,19 +1104,17 @@ func (c *DefaultApiService) FetchSyncStream(ServiceSid string, Sid string) (*Syn } // ListDocumentParams Optional parameters for the method 'ListDocument' type ListDocumentParams struct { - HideExpired *string `json:"HideExpired,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* ListDocument Method for ListDocument * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document resources to read. * @param optional nil or *ListDocumentOpts - Optional Parameters: - * @param "HideExpired" (string) - The default list of Sync Documents will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return SyncV1ServiceDocumentReadResponse +@return ListDocumentResponse */ -func (c *DefaultApiService) ListDocument(ServiceSid string, params *ListDocumentParams) (*SyncV1ServiceDocumentReadResponse, error) { +func (c *DefaultApiService) ListDocument(ServiceSid string, params *ListDocumentParams) (*ListDocumentResponse, error) { path := "/v1/Services/{ServiceSid}/Documents" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -1124,9 +1122,6 @@ func (c *DefaultApiService) ListDocument(ServiceSid string, params *ListDocument data := url.Values{} headers := 0 - if params != nil && params.HideExpired != nil { - data.Set("HideExpired", *params.HideExpired) - } if params != nil && params.PageSize != nil { data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1139,7 +1134,7 @@ func (c *DefaultApiService) ListDocument(ServiceSid string, params *ListDocument defer resp.Body.Close() - ps := &SyncV1ServiceDocumentReadResponse{} + ps := &ListDocumentResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1148,7 +1143,7 @@ func (c *DefaultApiService) ListDocument(ServiceSid string, params *ListDocument } // ListDocumentPermissionParams Optional parameters for the method 'ListDocumentPermission' type ListDocumentPermissionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1158,9 +1153,9 @@ Retrieve a list of all Permissions applying to a Sync Document. * @param DocumentSid The SID of the Sync Document with the Document Permission resources to read. Can be the Document resource's `sid` or its `unique_name`. * @param optional nil or *ListDocumentPermissionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return SyncV1ServiceDocumentDocumentPermissionReadResponse +@return ListDocumentPermissionResponse */ -func (c *DefaultApiService) ListDocumentPermission(ServiceSid string, DocumentSid string, params *ListDocumentPermissionParams) (*SyncV1ServiceDocumentDocumentPermissionReadResponse, error) { +func (c *DefaultApiService) ListDocumentPermission(ServiceSid string, DocumentSid string, params *ListDocumentPermissionParams) (*ListDocumentPermissionResponse, error) { path := "/v1/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"DocumentSid"+"}", DocumentSid, -1) @@ -1181,7 +1176,7 @@ func (c *DefaultApiService) ListDocumentPermission(ServiceSid string, DocumentSi defer resp.Body.Close() - ps := &SyncV1ServiceDocumentDocumentPermissionReadResponse{} + ps := &ListDocumentPermissionResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1190,16 +1185,16 @@ func (c *DefaultApiService) ListDocumentPermission(ServiceSid string, DocumentSi } // ListServiceParams Optional parameters for the method 'ListService' type ListServiceParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* ListService Method for ListService * @param optional nil or *ListServiceOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return SyncV1ServiceReadResponse +@return ListServiceResponse */ -func (c *DefaultApiService) ListService(params *ListServiceParams) (*SyncV1ServiceReadResponse, error) { +func (c *DefaultApiService) ListService(params *ListServiceParams) (*ListServiceResponse, error) { path := "/v1/Services" @@ -1218,7 +1213,7 @@ func (c *DefaultApiService) ListService(params *ListServiceParams) (*SyncV1Servi defer resp.Body.Close() - ps := &SyncV1ServiceReadResponse{} + ps := &ListServiceResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1227,19 +1222,17 @@ func (c *DefaultApiService) ListService(params *ListServiceParams) (*SyncV1Servi } // ListSyncListParams Optional parameters for the method 'ListSyncList' type ListSyncListParams struct { - HideExpired *string `json:"HideExpired,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* ListSyncList Method for ListSyncList * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List resources to read. * @param optional nil or *ListSyncListOpts - Optional Parameters: - * @param "HideExpired" (string) - The default list of Sync Lists will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return SyncV1ServiceSyncListReadResponse +@return ListSyncListResponse */ -func (c *DefaultApiService) ListSyncList(ServiceSid string, params *ListSyncListParams) (*SyncV1ServiceSyncListReadResponse, error) { +func (c *DefaultApiService) ListSyncList(ServiceSid string, params *ListSyncListParams) (*ListSyncListResponse, error) { path := "/v1/Services/{ServiceSid}/Lists" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -1247,9 +1240,6 @@ func (c *DefaultApiService) ListSyncList(ServiceSid string, params *ListSyncList data := url.Values{} headers := 0 - if params != nil && params.HideExpired != nil { - data.Set("HideExpired", *params.HideExpired) - } if params != nil && params.PageSize != nil { data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1262,7 +1252,7 @@ func (c *DefaultApiService) ListSyncList(ServiceSid string, params *ListSyncList defer resp.Body.Close() - ps := &SyncV1ServiceSyncListReadResponse{} + ps := &ListSyncListResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1271,11 +1261,10 @@ func (c *DefaultApiService) ListSyncList(ServiceSid string, params *ListSyncList } // ListSyncListItemParams Optional parameters for the method 'ListSyncListItem' type ListSyncListItemParams struct { - Order *string `json:"Order,omitempty"` - From *string `json:"From,omitempty"` - Bounds *string `json:"Bounds,omitempty"` - HideExpired *string `json:"HideExpired,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Order *string `json:"Order,omitempty"` + From *string `json:"From,omitempty"` + Bounds *string `json:"Bounds,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1286,11 +1275,10 @@ ListSyncListItem Method for ListSyncListItem * @param "Order" (string) - How to order the List Items returned by their `index` value. Can be: `asc` (ascending) or `desc` (descending) and the default is ascending. * @param "From" (string) - The `index` of the first Sync List Item resource to read. See also `bounds`. * @param "Bounds" (string) - Whether to include the List Item referenced by the `from` parameter. Can be: `inclusive` to include the List Item referenced by the `from` parameter or `exclusive` to start with the next List Item. The default value is `inclusive`. - * @param "HideExpired" (string) - The default list of Sync List items will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return SyncV1ServiceSyncListSyncListItemReadResponse +@return ListSyncListItemResponse */ -func (c *DefaultApiService) ListSyncListItem(ServiceSid string, ListSid string, params *ListSyncListItemParams) (*SyncV1ServiceSyncListSyncListItemReadResponse, error) { +func (c *DefaultApiService) ListSyncListItem(ServiceSid string, ListSid string, params *ListSyncListItemParams) (*ListSyncListItemResponse, error) { path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Items" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"ListSid"+"}", ListSid, -1) @@ -1308,9 +1296,6 @@ func (c *DefaultApiService) ListSyncListItem(ServiceSid string, ListSid string, if params != nil && params.Bounds != nil { data.Set("Bounds", *params.Bounds) } - if params != nil && params.HideExpired != nil { - data.Set("HideExpired", *params.HideExpired) - } if params != nil && params.PageSize != nil { data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1323,7 +1308,7 @@ func (c *DefaultApiService) ListSyncListItem(ServiceSid string, ListSid string, defer resp.Body.Close() - ps := &SyncV1ServiceSyncListSyncListItemReadResponse{} + ps := &ListSyncListItemResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1332,7 +1317,7 @@ func (c *DefaultApiService) ListSyncListItem(ServiceSid string, ListSid string, } // ListSyncListPermissionParams Optional parameters for the method 'ListSyncListPermission' type ListSyncListPermissionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1342,9 +1327,9 @@ Retrieve a list of all Permissions applying to a Sync List. * @param ListSid The SID of the Sync List with the Sync List Permission resources to read. Can be the Sync List resource's `sid` or its `unique_name`. * @param optional nil or *ListSyncListPermissionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return SyncV1ServiceSyncListSyncListPermissionReadResponse +@return ListSyncListPermissionResponse */ -func (c *DefaultApiService) ListSyncListPermission(ServiceSid string, ListSid string, params *ListSyncListPermissionParams) (*SyncV1ServiceSyncListSyncListPermissionReadResponse, error) { +func (c *DefaultApiService) ListSyncListPermission(ServiceSid string, ListSid string, params *ListSyncListPermissionParams) (*ListSyncListPermissionResponse, error) { path := "/v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"ListSid"+"}", ListSid, -1) @@ -1365,7 +1350,7 @@ func (c *DefaultApiService) ListSyncListPermission(ServiceSid string, ListSid st defer resp.Body.Close() - ps := &SyncV1ServiceSyncListSyncListPermissionReadResponse{} + ps := &ListSyncListPermissionResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1374,19 +1359,17 @@ func (c *DefaultApiService) ListSyncListPermission(ServiceSid string, ListSid st } // ListSyncMapParams Optional parameters for the method 'ListSyncMap' type ListSyncMapParams struct { - HideExpired *string `json:"HideExpired,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* ListSyncMap Method for ListSyncMap * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map resources to read. * @param optional nil or *ListSyncMapOpts - Optional Parameters: - * @param "HideExpired" (string) - The default list of Sync Maps will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return SyncV1ServiceSyncMapReadResponse +@return ListSyncMapResponse */ -func (c *DefaultApiService) ListSyncMap(ServiceSid string, params *ListSyncMapParams) (*SyncV1ServiceSyncMapReadResponse, error) { +func (c *DefaultApiService) ListSyncMap(ServiceSid string, params *ListSyncMapParams) (*ListSyncMapResponse, error) { path := "/v1/Services/{ServiceSid}/Maps" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -1394,9 +1377,6 @@ func (c *DefaultApiService) ListSyncMap(ServiceSid string, params *ListSyncMapPa data := url.Values{} headers := 0 - if params != nil && params.HideExpired != nil { - data.Set("HideExpired", *params.HideExpired) - } if params != nil && params.PageSize != nil { data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1409,7 +1389,7 @@ func (c *DefaultApiService) ListSyncMap(ServiceSid string, params *ListSyncMapPa defer resp.Body.Close() - ps := &SyncV1ServiceSyncMapReadResponse{} + ps := &ListSyncMapResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1418,26 +1398,24 @@ func (c *DefaultApiService) ListSyncMap(ServiceSid string, params *ListSyncMapPa } // ListSyncMapItemParams Optional parameters for the method 'ListSyncMapItem' type ListSyncMapItemParams struct { - Order *string `json:"Order,omitempty"` - From *string `json:"From,omitempty"` - Bounds *string `json:"Bounds,omitempty"` - HideExpired *string `json:"HideExpired,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Order *string `json:"Order,omitempty"` + From *string `json:"From,omitempty"` + Bounds *string `json:"Bounds,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* ListSyncMapItem Method for ListSyncMapItem * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Map Item resources to read. - * @param MapSid The SID of the Sync Map with the Sync Map Item resource to fetch. Can be the Sync Map's `sid` or its `unique_name`. + * @param MapSid The SID of the Sync Map with the Sync Map Item resource to fetch. Can be the Sync Map resource's `sid` or its `unique_name`. * @param optional nil or *ListSyncMapItemOpts - Optional Parameters: * @param "Order" (string) - How to order the Map Items returned by their `key` value. Can be: `asc` (ascending) or `desc` (descending) and the default is ascending. Map Items are [ordered lexicographically](https://en.wikipedia.org/wiki/Lexicographical_order) by Item key. * @param "From" (string) - The `key` of the first Sync Map Item resource to read. See also `bounds`. * @param "Bounds" (string) - Whether to include the Map Item referenced by the `from` parameter. Can be: `inclusive` to include the Map Item referenced by the `from` parameter or `exclusive` to start with the next Map Item. The default value is `inclusive`. - * @param "HideExpired" (string) - The default list of Sync Map items will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return SyncV1ServiceSyncMapSyncMapItemReadResponse +@return ListSyncMapItemResponse */ -func (c *DefaultApiService) ListSyncMapItem(ServiceSid string, MapSid string, params *ListSyncMapItemParams) (*SyncV1ServiceSyncMapSyncMapItemReadResponse, error) { +func (c *DefaultApiService) ListSyncMapItem(ServiceSid string, MapSid string, params *ListSyncMapItemParams) (*ListSyncMapItemResponse, error) { path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Items" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"MapSid"+"}", MapSid, -1) @@ -1455,9 +1433,6 @@ func (c *DefaultApiService) ListSyncMapItem(ServiceSid string, MapSid string, pa if params != nil && params.Bounds != nil { data.Set("Bounds", *params.Bounds) } - if params != nil && params.HideExpired != nil { - data.Set("HideExpired", *params.HideExpired) - } if params != nil && params.PageSize != nil { data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1470,7 +1445,7 @@ func (c *DefaultApiService) ListSyncMapItem(ServiceSid string, MapSid string, pa defer resp.Body.Close() - ps := &SyncV1ServiceSyncMapSyncMapItemReadResponse{} + ps := &ListSyncMapItemResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1479,19 +1454,19 @@ func (c *DefaultApiService) ListSyncMapItem(ServiceSid string, MapSid string, pa } // ListSyncMapPermissionParams Optional parameters for the method 'ListSyncMapPermission' type ListSyncMapPermissionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* ListSyncMapPermission Method for ListSyncMapPermission Retrieve a list of all Permissions applying to a Sync Map. * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Permission resources to read. Can be the Service's `sid` value or `default`. - * @param MapSid The SID of the Sync Map with the Permission resources to read. Can be the Sync Map's `sid` or its `unique_name`. + * @param MapSid The SID of the Sync Map with the Permission resources to read. Can be the Sync Map resource's `sid` or its `unique_name`. * @param optional nil or *ListSyncMapPermissionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return SyncV1ServiceSyncMapSyncMapPermissionReadResponse +@return ListSyncMapPermissionResponse */ -func (c *DefaultApiService) ListSyncMapPermission(ServiceSid string, MapSid string, params *ListSyncMapPermissionParams) (*SyncV1ServiceSyncMapSyncMapPermissionReadResponse, error) { +func (c *DefaultApiService) ListSyncMapPermission(ServiceSid string, MapSid string, params *ListSyncMapPermissionParams) (*ListSyncMapPermissionResponse, error) { path := "/v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"MapSid"+"}", MapSid, -1) @@ -1512,7 +1487,7 @@ func (c *DefaultApiService) ListSyncMapPermission(ServiceSid string, MapSid stri defer resp.Body.Close() - ps := &SyncV1ServiceSyncMapSyncMapPermissionReadResponse{} + ps := &ListSyncMapPermissionResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1521,8 +1496,7 @@ func (c *DefaultApiService) ListSyncMapPermission(ServiceSid string, MapSid stri } // ListSyncStreamParams Optional parameters for the method 'ListSyncStream' type ListSyncStreamParams struct { - HideExpired *string `json:"HideExpired,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1530,11 +1504,10 @@ ListSyncStream Method for ListSyncStream Retrieve a list of all Streams in a Service Instance. * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Stream resources to read. * @param optional nil or *ListSyncStreamOpts - Optional Parameters: - * @param "HideExpired" (string) - The default list of Sync Streams will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return SyncV1ServiceSyncStreamReadResponse +@return ListSyncStreamResponse */ -func (c *DefaultApiService) ListSyncStream(ServiceSid string, params *ListSyncStreamParams) (*SyncV1ServiceSyncStreamReadResponse, error) { +func (c *DefaultApiService) ListSyncStream(ServiceSid string, params *ListSyncStreamParams) (*ListSyncStreamResponse, error) { path := "/v1/Services/{ServiceSid}/Streams" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -1542,9 +1515,6 @@ func (c *DefaultApiService) ListSyncStream(ServiceSid string, params *ListSyncSt data := url.Values{} headers := 0 - if params != nil && params.HideExpired != nil { - data.Set("HideExpired", *params.HideExpired) - } if params != nil && params.PageSize != nil { data.Set("PageSize", fmt.Sprint(*params.PageSize)) } @@ -1557,7 +1527,7 @@ func (c *DefaultApiService) ListSyncStream(ServiceSid string, params *ListSyncSt defer resp.Body.Close() - ps := &SyncV1ServiceSyncStreamReadResponse{} + ps := &ListSyncStreamResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1566,18 +1536,18 @@ func (c *DefaultApiService) ListSyncStream(ServiceSid string, params *ListSyncSt } // UpdateDocumentParams Optional parameters for the method 'UpdateDocument' type UpdateDocumentParams struct { - IfMatch *string `json:"If-Match,omitempty"` - Data *map[string]interface{} `json:"Data,omitempty"` - Ttl *int32 `json:"Ttl,omitempty"` + IfMatch *string `json:"If-Match,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` } /* UpdateDocument Method for UpdateDocument * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document resource to update. - * @param Sid The SID of the Document resource to update. + * @param Sid The SID of the Document resource to update. Can be the Document resource's `sid` or its `unique_name`. * @param optional nil or *UpdateDocumentOpts - Optional Parameters: * @param "IfMatch" (string) - The If-Match HTTP request header - * @param "Data" (map[string]interface{}) - A JSON string that represents an arbitrary, schema-less object that the Sync Document stores. Can be up to 16KB in length. + * @param "Data" (map[string]interface{}) - A JSON string that represents an arbitrary, schema-less object that the Sync Document stores. Can be up to 16 KiB in length. * @param "Ttl" (int32) - How long, in seconds, before the Sync Document expires and is deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Document resource does not expire. The Document resource will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. @return SyncV1ServiceDocument */ @@ -1623,9 +1593,9 @@ func (c *DefaultApiService) UpdateDocument(ServiceSid string, Sid string, params } // UpdateDocumentPermissionParams Optional parameters for the method 'UpdateDocumentPermission' type UpdateDocumentPermissionParams struct { - Manage *bool `json:"Manage,omitempty"` - Read *bool `json:"Read,omitempty"` - Write *bool `json:"Write,omitempty"` + Manage *bool `json:"Manage,omitempty"` + Read *bool `json:"Read,omitempty"` + Write *bool `json:"Write,omitempty"` } /* @@ -1677,13 +1647,13 @@ func (c *DefaultApiService) UpdateDocumentPermission(ServiceSid string, Document } // UpdateServiceParams Optional parameters for the method 'UpdateService' type UpdateServiceParams struct { - AclEnabled *bool `json:"AclEnabled,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - ReachabilityDebouncingEnabled *bool `json:"ReachabilityDebouncingEnabled,omitempty"` - ReachabilityDebouncingWindow *int32 `json:"ReachabilityDebouncingWindow,omitempty"` - ReachabilityWebhooksEnabled *bool `json:"ReachabilityWebhooksEnabled,omitempty"` - WebhookUrl *string `json:"WebhookUrl,omitempty"` - WebhooksFromRestEnabled *bool `json:"WebhooksFromRestEnabled,omitempty"` + AclEnabled *bool `json:"AclEnabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + ReachabilityDebouncingEnabled *bool `json:"ReachabilityDebouncingEnabled,omitempty"` + ReachabilityDebouncingWindow *int32 `json:"ReachabilityDebouncingWindow,omitempty"` + ReachabilityWebhooksEnabled *bool `json:"ReachabilityWebhooksEnabled,omitempty"` + WebhookUrl *string `json:"WebhookUrl,omitempty"` + WebhooksFromRestEnabled *bool `json:"WebhooksFromRestEnabled,omitempty"` } /* @@ -1746,14 +1716,14 @@ func (c *DefaultApiService) UpdateService(Sid string, params *UpdateServiceParam } // UpdateSyncListParams Optional parameters for the method 'UpdateSyncList' type UpdateSyncListParams struct { - CollectionTtl *int32 `json:"CollectionTtl,omitempty"` - Ttl *int32 `json:"Ttl,omitempty"` + CollectionTtl *int32 `json:"CollectionTtl,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` } /* UpdateSyncList Method for UpdateSyncList * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List resource to update. - * @param Sid The SID of the Sync List resource to update. + * @param Sid The SID of the Sync List resource to update. Can be the Sync List resource's `sid` or its `unique_name`. * @param optional nil or *UpdateSyncListOpts - Optional Parameters: * @param "CollectionTtl" (int32) - How long, in seconds, before the Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. * @param "Ttl" (int32) - An alias for `collection_ttl`. If both are provided, this value is ignored. @@ -1792,11 +1762,11 @@ func (c *DefaultApiService) UpdateSyncList(ServiceSid string, Sid string, params } // UpdateSyncListItemParams Optional parameters for the method 'UpdateSyncListItem' type UpdateSyncListItemParams struct { - IfMatch *string `json:"If-Match,omitempty"` - CollectionTtl *int32 `json:"CollectionTtl,omitempty"` - Data *map[string]interface{} `json:"Data,omitempty"` - ItemTtl *int32 `json:"ItemTtl,omitempty"` - Ttl *int32 `json:"Ttl,omitempty"` + IfMatch *string `json:"If-Match,omitempty"` + CollectionTtl *int32 `json:"CollectionTtl,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` + ItemTtl *int32 `json:"ItemTtl,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` } /* @@ -1807,7 +1777,7 @@ UpdateSyncListItem Method for UpdateSyncListItem * @param optional nil or *UpdateSyncListItemOpts - Optional Parameters: * @param "IfMatch" (string) - The If-Match HTTP request header * @param "CollectionTtl" (int32) - How long, in seconds, before the List Item's parent Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. - * @param "Data" (map[string]interface{}) - A JSON string that represents an arbitrary, schema-less object that the List Item stores. Can be up to 16KB in length. + * @param "Data" (map[string]interface{}) - A JSON string that represents an arbitrary, schema-less object that the List Item stores. Can be up to 16 KiB in length. * @param "ItemTtl" (int32) - How long, in seconds, before the List Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the List Item does not expire. The List Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. * @param "Ttl" (int32) - An alias for `item_ttl`. If both parameters are provided, this value is ignored. @return SyncV1ServiceSyncListSyncListItem @@ -1861,9 +1831,9 @@ func (c *DefaultApiService) UpdateSyncListItem(ServiceSid string, ListSid string } // UpdateSyncListPermissionParams Optional parameters for the method 'UpdateSyncListPermission' type UpdateSyncListPermissionParams struct { - Manage *bool `json:"Manage,omitempty"` - Read *bool `json:"Read,omitempty"` - Write *bool `json:"Write,omitempty"` + Manage *bool `json:"Manage,omitempty"` + Read *bool `json:"Read,omitempty"` + Write *bool `json:"Write,omitempty"` } /* @@ -1915,14 +1885,14 @@ func (c *DefaultApiService) UpdateSyncListPermission(ServiceSid string, ListSid } // UpdateSyncMapParams Optional parameters for the method 'UpdateSyncMap' type UpdateSyncMapParams struct { - CollectionTtl *int32 `json:"CollectionTtl,omitempty"` - Ttl *int32 `json:"Ttl,omitempty"` + CollectionTtl *int32 `json:"CollectionTtl,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` } /* UpdateSyncMap Method for UpdateSyncMap * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map resource to update. - * @param Sid The SID of the Sync Map resource to update. + * @param Sid The SID of the Sync Map resource to update. Can be the Sync Map's `sid` or its `unique_name`. * @param optional nil or *UpdateSyncMapOpts - Optional Parameters: * @param "CollectionTtl" (int32) - How long, in seconds, before the Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync Map does not expire. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. * @param "Ttl" (int32) - An alias for `collection_ttl`. If both parameters are provided, this value is ignored. @@ -1961,22 +1931,22 @@ func (c *DefaultApiService) UpdateSyncMap(ServiceSid string, Sid string, params } // UpdateSyncMapItemParams Optional parameters for the method 'UpdateSyncMapItem' type UpdateSyncMapItemParams struct { - IfMatch *string `json:"If-Match,omitempty"` - CollectionTtl *int32 `json:"CollectionTtl,omitempty"` - Data *map[string]interface{} `json:"Data,omitempty"` - ItemTtl *int32 `json:"ItemTtl,omitempty"` - Ttl *int32 `json:"Ttl,omitempty"` + IfMatch *string `json:"If-Match,omitempty"` + CollectionTtl *int32 `json:"CollectionTtl,omitempty"` + Data *map[string]interface{} `json:"Data,omitempty"` + ItemTtl *int32 `json:"ItemTtl,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` } /* UpdateSyncMapItem Method for UpdateSyncMapItem * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Item resource to update. - * @param MapSid The SID of the Sync Map with the Sync Map Item resource to update. Can be the Sync Map's `sid` or its `unique_name`. + * @param MapSid The SID of the Sync Map with the Sync Map Item resource to update. Can be the Sync Map resource's `sid` or its `unique_name`. * @param Key The `key` value of the Sync Map Item resource to update. * @param optional nil or *UpdateSyncMapItemOpts - Optional Parameters: * @param "IfMatch" (string) - The If-Match HTTP request header * @param "CollectionTtl" (int32) - How long, in seconds, before the Map Item's parent Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync Map does not expire. This parameter can only be used when the Map Item's `data` or `ttl` is updated in the same request. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. - * @param "Data" (map[string]interface{}) - A JSON string that represents an arbitrary, schema-less object that the Map Item stores. Can be up to 16KB in length. + * @param "Data" (map[string]interface{}) - A JSON string that represents an arbitrary, schema-less object that the Map Item stores. Can be up to 16 KiB in length. * @param "ItemTtl" (int32) - How long, in seconds, before the Map Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Map Item does not expire. The Map Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. * @param "Ttl" (int32) - An alias for `item_ttl`. If both parameters are provided, this value is ignored. @return SyncV1ServiceSyncMapSyncMapItem @@ -2030,16 +2000,16 @@ func (c *DefaultApiService) UpdateSyncMapItem(ServiceSid string, MapSid string, } // UpdateSyncMapPermissionParams Optional parameters for the method 'UpdateSyncMapPermission' type UpdateSyncMapPermissionParams struct { - Manage *bool `json:"Manage,omitempty"` - Read *bool `json:"Read,omitempty"` - Write *bool `json:"Write,omitempty"` + Manage *bool `json:"Manage,omitempty"` + Read *bool `json:"Read,omitempty"` + Write *bool `json:"Write,omitempty"` } /* UpdateSyncMapPermission Method for UpdateSyncMapPermission Update an identity's access to a specific Sync Map. * @param ServiceSid The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Permission resource to update. Can be the Service's `sid` value or `default`. - * @param MapSid The SID of the Sync Map with the Sync Map Permission resource to update. Can be the Sync Map's `sid` or its `unique_name`. + * @param MapSid The SID of the Sync Map with the Sync Map Permission resource to update. Can be the Sync Map resource's `sid` or its `unique_name`. * @param Identity The application-defined string that uniquely identifies the User's Sync Map Permission resource to update. * @param optional nil or *UpdateSyncMapPermissionOpts - Optional Parameters: * @param "Manage" (bool) - Whether the identity can delete the Sync Map. Default value is `false`. @@ -2084,7 +2054,7 @@ func (c *DefaultApiService) UpdateSyncMapPermission(ServiceSid string, MapSid st } // UpdateSyncStreamParams Optional parameters for the method 'UpdateSyncStream' type UpdateSyncStreamParams struct { - Ttl *int32 `json:"Ttl,omitempty"` + Ttl *int32 `json:"Ttl,omitempty"` } /* diff --git a/rest/sync/v1/docs/CreateDocumentRequest.md b/rest/sync/v1/docs/CreateDocumentRequest.md index 883ddc550..4a9d530b3 100644 --- a/rest/sync/v1/docs/CreateDocumentRequest.md +++ b/rest/sync/v1/docs/CreateDocumentRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Data** | [**map[string]interface{}**](.md) | A JSON string that represents an arbitrary, schema-less object that the Sync Document stores. Can be up to 16KB in length. | [optional] +**Data** | [**map[string]interface{}**](.md) | A JSON string that represents an arbitrary, schema-less object that the Sync Document stores. Can be up to 16 KiB in length. | [optional] **Ttl** | **int32** | How long, in seconds, before the Sync Document expires and is deleted (the Sync Document's time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync Document does not expire. The Sync Document will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | [optional] **UniqueName** | **string** | An application-defined string that uniquely identifies the Sync Document | [optional] diff --git a/rest/sync/v1/docs/CreateStreamMessageRequest.md b/rest/sync/v1/docs/CreateStreamMessageRequest.md index 10b1c05ff..76571df60 100644 --- a/rest/sync/v1/docs/CreateStreamMessageRequest.md +++ b/rest/sync/v1/docs/CreateStreamMessageRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Data** | [**map[string]interface{}**](.md) | A JSON string that represents an arbitrary, schema-less object that makes up the Stream Message body. Can be up to 4KB in length. | +**Data** | [**map[string]interface{}**](.md) | A JSON string that represents an arbitrary, schema-less object that makes up the Stream Message body. Can be up to 4 KiB in length. | [[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/rest/sync/v1/docs/CreateSyncListItemRequest.md b/rest/sync/v1/docs/CreateSyncListItemRequest.md index 86f27dd41..39c525fa2 100644 --- a/rest/sync/v1/docs/CreateSyncListItemRequest.md +++ b/rest/sync/v1/docs/CreateSyncListItemRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **CollectionTtl** | **int32** | How long, in seconds, before the List Item's parent Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | [optional] -**Data** | [**map[string]interface{}**](.md) | A JSON string that represents an arbitrary, schema-less object that the List Item stores. Can be up to 16KB in length. | +**Data** | [**map[string]interface{}**](.md) | A JSON string that represents an arbitrary, schema-less object that the List Item stores. Can be up to 16 KiB in length. | **ItemTtl** | **int32** | How long, in seconds, before the List Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the List Item does not expire. The List Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | [optional] **Ttl** | **int32** | An alias for `item_ttl`. If both parameters are provided, this value is ignored. | [optional] diff --git a/rest/sync/v1/docs/CreateSyncMapItemRequest.md b/rest/sync/v1/docs/CreateSyncMapItemRequest.md index f6a306489..34f94ee0d 100644 --- a/rest/sync/v1/docs/CreateSyncMapItemRequest.md +++ b/rest/sync/v1/docs/CreateSyncMapItemRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **CollectionTtl** | **int32** | How long, in seconds, before the Map Item's parent Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync Map does not expire. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | [optional] -**Data** | [**map[string]interface{}**](.md) | A JSON string that represents an arbitrary, schema-less object that the Map Item stores. Can be up to 16KB in length. | +**Data** | [**map[string]interface{}**](.md) | A JSON string that represents an arbitrary, schema-less object that the Map Item stores. Can be up to 16 KiB in length. | **ItemTtl** | **int32** | How long, in seconds, before the Map Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Map Item does not expire. The Map Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | [optional] **Key** | **string** | The unique, user-defined key for the Map Item. Can be up to 320 characters long. | **Ttl** | **int32** | An alias for `item_ttl`. If both parameters are provided, this value is ignored. | [optional] diff --git a/rest/sync/v1/docs/DefaultApi.md b/rest/sync/v1/docs/DefaultApi.md index ac501cf53..70c7ca5db 100644 --- a/rest/sync/v1/docs/DefaultApi.md +++ b/rest/sync/v1/docs/DefaultApi.md @@ -78,7 +78,7 @@ Optional parameters are passed through a pointer to a CreateDocumentOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **Data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that represents an arbitrary, schema-less object that the Sync Document stores. Can be up to 16KB in length. | + **Data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that represents an arbitrary, schema-less object that the Sync Document stores. Can be up to 16 KiB in length. | **Ttl** | **optional.Int32**| How long, in seconds, before the Sync Document expires and is deleted (the Sync Document's time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync Document does not expire. The Sync Document will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | **UniqueName** | **optional.String**| An application-defined string that uniquely identifies the Sync Document | @@ -174,7 +174,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **Data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that represents an arbitrary, schema-less object that makes up the Stream Message body. Can be up to 4KB in length. | + **Data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that represents an arbitrary, schema-less object that makes up the Stream Message body. Can be up to 4 KiB in length. | ### Return type @@ -265,7 +265,7 @@ Name | Type | Description | Notes **CollectionTtl** | **optional.Int32**| How long, in seconds, before the List Item's parent Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | - **Data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that represents an arbitrary, schema-less object that the List Item stores. Can be up to 16KB in length. | + **Data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that represents an arbitrary, schema-less object that the List Item stores. Can be up to 16 KiB in length. | **ItemTtl** | **optional.Int32**| How long, in seconds, before the List Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the List Item does not expire. The List Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | **Ttl** | **optional.Int32**| An alias for `item_ttl`. If both parameters are provided, this value is ignored. | @@ -345,7 +345,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) to create the Map Item in. | -**MapSid** | **string**| The SID of the Sync Map to add the new Map Item to. | +**MapSid** | **string**| The SID of the Sync Map to add the new Map Item to. Can be the Sync Map resource's `sid` or its `unique_name`. | **optional** | ***CreateSyncMapItemOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -358,7 +358,7 @@ Name | Type | Description | Notes **CollectionTtl** | **optional.Int32**| How long, in seconds, before the Map Item's parent Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync Map does not expire. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | - **Data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that represents an arbitrary, schema-less object that the Map Item stores. Can be up to 16KB in length. | + **Data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that represents an arbitrary, schema-less object that the Map Item stores. Can be up to 16 KiB in length. | **ItemTtl** | **optional.Int32**| How long, in seconds, before the Map Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Map Item does not expire. The Map Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | **Key** | **optional.String**| The unique, user-defined key for the Map Item. Can be up to 320 characters long. | **Ttl** | **optional.Int32**| An alias for `item_ttl`. If both parameters are provided, this value is ignored. | @@ -440,7 +440,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document resource to delete. | -**Sid** | **string**| The SID of the Document resource to delete. | +**Sid** | **string**| The SID of the Document resource to delete. Can be the Document resource's `sid` or its `unique_name`. | **optional** | ***DeleteDocumentOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -553,7 +553,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List resource to delete. | -**Sid** | **string**| The SID of the Sync List resource to delete. | +**Sid** | **string**| The SID of the Sync List resource to delete. Can be the Sync List resource's `sid` or its `unique_name`. | ### Return type @@ -669,7 +669,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map resource to delete. | -**Sid** | **string**| The SID of the Sync Map resource to delete. | +**Sid** | **string**| The SID of the Sync Map resource to delete. Can be the Sync Map's `sid` or its `unique_name`. | ### Return type @@ -702,7 +702,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Item resource to delete. | -**MapSid** | **string**| The SID of the Sync Map with the Sync Map Item resource to delete. Can be the Sync Map's `sid` or its `unique_name`. | +**MapSid** | **string**| The SID of the Sync Map with the Sync Map Item resource to delete. Can be the Sync Map resource's `sid` or its `unique_name`. | **Key** | **string**| The `key` value of the Sync Map Item resource to delete. | **optional** | ***DeleteSyncMapItemOpts** | optional parameters | nil if no parameters @@ -751,7 +751,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Permission resource to delete. Can be the Service's `sid` value or `default`. | -**MapSid** | **string**| The SID of the Sync Map with the Sync Map Permission resource to delete. Can be the Sync Map's `sid` or its `unique_name`. | +**MapSid** | **string**| The SID of the Sync Map with the Sync Map Permission resource to delete. Can be the Sync Map resource's `sid` or its `unique_name`. | **Identity** | **string**| The application-defined string that uniquely identifies the User's Sync Map Permission resource to delete. | ### Return type @@ -820,7 +820,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document resource to fetch. | -**Sid** | **string**| The SID of the Document resource to fetch. | +**Sid** | **string**| The SID of the Document resource to fetch. Can be the Document resource's `sid` or its `unique_name`. | ### Return type @@ -921,7 +921,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List resource to fetch. | -**Sid** | **string**| The SID of the Sync List resource to fetch. | +**Sid** | **string**| The SID of the Sync List resource to fetch. Can be the Sync List resource's `sid` or its `unique_name`. | ### Return type @@ -1024,7 +1024,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map resource to fetch. | -**Sid** | **string**| The SID of the Sync Map resource to fetch. | +**Sid** | **string**| The SID of the Sync Map resource to fetch. Can be the Sync Map's `sid` or its `unique_name`. | ### Return type @@ -1057,7 +1057,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Item resource to fetch. | -**MapSid** | **string**| The SID of the Sync Map with the Sync Map Item resource to fetch. Can be the Sync Map's `sid` or its `unique_name`. | +**MapSid** | **string**| The SID of the Sync Map with the Sync Map Item resource to fetch. Can be the Sync Map resource's `sid` or its `unique_name`. | **Key** | **string**| The `key` value of the Sync Map Item resource to fetch. | ### Return type @@ -1093,7 +1093,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Permission resource to fetch. Can be the Service's `sid` value or `default`. | -**MapSid** | **string**| The SID of the Sync Map with the Sync Map Permission resource to fetch. Can be the Sync Map's `sid` or its `unique_name`. | +**MapSid** | **string**| The SID of the Sync Map with the Sync Map Permission resource to fetch. Can be the Sync Map resource's `sid` or its `unique_name`. | **Identity** | **string**| The application-defined string that uniquely identifies the User's Sync Map Permission resource to fetch. | ### Return type @@ -1151,7 +1151,7 @@ Name | Type | Description | Notes ## ListDocument -> SyncV1ServiceDocumentReadResponse ListDocument(ctx, ServiceSid, optional) +> ListDocumentResponse ListDocument(ctx, ServiceSid, optional) @@ -1172,12 +1172,11 @@ Optional parameters are passed through a pointer to a ListDocumentOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **HideExpired** | **optional.String**| The default list of Sync Documents will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. | **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type -[**SyncV1ServiceDocumentReadResponse**](sync_v1_service_documentReadResponse.md) +[**ListDocumentResponse**](ListDocumentResponse.md) ### Authorization @@ -1195,7 +1194,7 @@ Name | Type | Description | Notes ## ListDocumentPermission -> SyncV1ServiceDocumentDocumentPermissionReadResponse ListDocumentPermission(ctx, ServiceSid, DocumentSid, optional) +> ListDocumentPermissionResponse ListDocumentPermission(ctx, ServiceSid, DocumentSid, optional) @@ -1224,7 +1223,7 @@ Name | Type | Description | Notes ### Return type -[**SyncV1ServiceDocumentDocumentPermissionReadResponse**](sync_v1_service_document_document_permissionReadResponse.md) +[**ListDocumentPermissionResponse**](ListDocumentPermissionResponse.md) ### Authorization @@ -1242,7 +1241,7 @@ Name | Type | Description | Notes ## ListService -> SyncV1ServiceReadResponse ListService(ctx, optional) +> ListServiceResponse ListService(ctx, optional) @@ -1265,7 +1264,7 @@ Name | Type | Description | Notes ### Return type -[**SyncV1ServiceReadResponse**](sync_v1_serviceReadResponse.md) +[**ListServiceResponse**](ListServiceResponse.md) ### Authorization @@ -1283,7 +1282,7 @@ Name | Type | Description | Notes ## ListSyncList -> SyncV1ServiceSyncListReadResponse ListSyncList(ctx, ServiceSid, optional) +> ListSyncListResponse ListSyncList(ctx, ServiceSid, optional) @@ -1304,12 +1303,11 @@ Optional parameters are passed through a pointer to a ListSyncListOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **HideExpired** | **optional.String**| The default list of Sync Lists will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. | **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type -[**SyncV1ServiceSyncListReadResponse**](sync_v1_service_sync_listReadResponse.md) +[**ListSyncListResponse**](ListSyncListResponse.md) ### Authorization @@ -1327,7 +1325,7 @@ Name | Type | Description | Notes ## ListSyncListItem -> SyncV1ServiceSyncListSyncListItemReadResponse ListSyncListItem(ctx, ServiceSid, ListSid, optional) +> ListSyncListItemResponse ListSyncListItem(ctx, ServiceSid, ListSid, optional) @@ -1353,12 +1351,11 @@ Name | Type | Description | Notes **Order** | **optional.String**| How to order the List Items returned by their `index` value. Can be: `asc` (ascending) or `desc` (descending) and the default is ascending. | **From** | **optional.String**| The `index` of the first Sync List Item resource to read. See also `bounds`. | **Bounds** | **optional.String**| Whether to include the List Item referenced by the `from` parameter. Can be: `inclusive` to include the List Item referenced by the `from` parameter or `exclusive` to start with the next List Item. The default value is `inclusive`. | - **HideExpired** | **optional.String**| The default list of Sync List items will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. | **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type -[**SyncV1ServiceSyncListSyncListItemReadResponse**](sync_v1_service_sync_list_sync_list_itemReadResponse.md) +[**ListSyncListItemResponse**](ListSyncListItemResponse.md) ### Authorization @@ -1376,7 +1373,7 @@ Name | Type | Description | Notes ## ListSyncListPermission -> SyncV1ServiceSyncListSyncListPermissionReadResponse ListSyncListPermission(ctx, ServiceSid, ListSid, optional) +> ListSyncListPermissionResponse ListSyncListPermission(ctx, ServiceSid, ListSid, optional) @@ -1405,7 +1402,7 @@ Name | Type | Description | Notes ### Return type -[**SyncV1ServiceSyncListSyncListPermissionReadResponse**](sync_v1_service_sync_list_sync_list_permissionReadResponse.md) +[**ListSyncListPermissionResponse**](ListSyncListPermissionResponse.md) ### Authorization @@ -1423,7 +1420,7 @@ Name | Type | Description | Notes ## ListSyncMap -> SyncV1ServiceSyncMapReadResponse ListSyncMap(ctx, ServiceSid, optional) +> ListSyncMapResponse ListSyncMap(ctx, ServiceSid, optional) @@ -1444,12 +1441,11 @@ Optional parameters are passed through a pointer to a ListSyncMapOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **HideExpired** | **optional.String**| The default list of Sync Maps will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. | **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type -[**SyncV1ServiceSyncMapReadResponse**](sync_v1_service_sync_mapReadResponse.md) +[**ListSyncMapResponse**](ListSyncMapResponse.md) ### Authorization @@ -1467,7 +1463,7 @@ Name | Type | Description | Notes ## ListSyncMapItem -> SyncV1ServiceSyncMapSyncMapItemReadResponse ListSyncMapItem(ctx, ServiceSid, MapSid, optional) +> ListSyncMapItemResponse ListSyncMapItem(ctx, ServiceSid, MapSid, optional) @@ -1478,7 +1474,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Map Item resources to read. | -**MapSid** | **string**| The SID of the Sync Map with the Sync Map Item resource to fetch. Can be the Sync Map's `sid` or its `unique_name`. | +**MapSid** | **string**| The SID of the Sync Map with the Sync Map Item resource to fetch. Can be the Sync Map resource's `sid` or its `unique_name`. | **optional** | ***ListSyncMapItemOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1493,12 +1489,11 @@ Name | Type | Description | Notes **Order** | **optional.String**| How to order the Map Items returned by their `key` value. Can be: `asc` (ascending) or `desc` (descending) and the default is ascending. Map Items are [ordered lexicographically](https://en.wikipedia.org/wiki/Lexicographical_order) by Item key. | **From** | **optional.String**| The `key` of the first Sync Map Item resource to read. See also `bounds`. | **Bounds** | **optional.String**| Whether to include the Map Item referenced by the `from` parameter. Can be: `inclusive` to include the Map Item referenced by the `from` parameter or `exclusive` to start with the next Map Item. The default value is `inclusive`. | - **HideExpired** | **optional.String**| The default list of Sync Map items will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. | **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type -[**SyncV1ServiceSyncMapSyncMapItemReadResponse**](sync_v1_service_sync_map_sync_map_itemReadResponse.md) +[**ListSyncMapItemResponse**](ListSyncMapItemResponse.md) ### Authorization @@ -1516,7 +1511,7 @@ Name | Type | Description | Notes ## ListSyncMapPermission -> SyncV1ServiceSyncMapSyncMapPermissionReadResponse ListSyncMapPermission(ctx, ServiceSid, MapSid, optional) +> ListSyncMapPermissionResponse ListSyncMapPermission(ctx, ServiceSid, MapSid, optional) @@ -1529,7 +1524,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Permission resources to read. Can be the Service's `sid` value or `default`. | -**MapSid** | **string**| The SID of the Sync Map with the Permission resources to read. Can be the Sync Map's `sid` or its `unique_name`. | +**MapSid** | **string**| The SID of the Sync Map with the Permission resources to read. Can be the Sync Map resource's `sid` or its `unique_name`. | **optional** | ***ListSyncMapPermissionOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1545,7 +1540,7 @@ Name | Type | Description | Notes ### Return type -[**SyncV1ServiceSyncMapSyncMapPermissionReadResponse**](sync_v1_service_sync_map_sync_map_permissionReadResponse.md) +[**ListSyncMapPermissionResponse**](ListSyncMapPermissionResponse.md) ### Authorization @@ -1563,7 +1558,7 @@ Name | Type | Description | Notes ## ListSyncStream -> SyncV1ServiceSyncStreamReadResponse ListSyncStream(ctx, ServiceSid, optional) +> ListSyncStreamResponse ListSyncStream(ctx, ServiceSid, optional) @@ -1586,12 +1581,11 @@ Optional parameters are passed through a pointer to a ListSyncStreamOpts struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **HideExpired** | **optional.String**| The default list of Sync Streams will show both active and expired items. It is possible to filter only the active ones by hiding the expired ones. | **PageSize** | **optional.Int32**| How many resources to return in each list page. The default is 50, and the maximum is 1000. | ### Return type -[**SyncV1ServiceSyncStreamReadResponse**](sync_v1_service_sync_streamReadResponse.md) +[**ListSyncStreamResponse**](ListSyncStreamResponse.md) ### Authorization @@ -1620,7 +1614,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Document resource to update. | -**Sid** | **string**| The SID of the Document resource to update. | +**Sid** | **string**| The SID of the Document resource to update. Can be the Document resource's `sid` or its `unique_name`. | **optional** | ***UpdateDocumentOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1633,7 +1627,7 @@ Name | Type | Description | Notes **IfMatch** | **optional.String**| The If-Match HTTP request header | - **Data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that represents an arbitrary, schema-less object that the Sync Document stores. Can be up to 16KB in length. | + **Data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that represents an arbitrary, schema-less object that the Sync Document stores. Can be up to 16 KiB in length. | **Ttl** | **optional.Int32**| How long, in seconds, before the Sync Document expires and is deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Document resource does not expire. The Document resource will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | ### Return type @@ -1767,7 +1761,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync List resource to update. | -**Sid** | **string**| The SID of the Sync List resource to update. | +**Sid** | **string**| The SID of the Sync List resource to update. Can be the Sync List resource's `sid` or its `unique_name`. | **optional** | ***UpdateSyncListOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1829,7 +1823,7 @@ Name | Type | Description | Notes **IfMatch** | **optional.String**| The If-Match HTTP request header | **CollectionTtl** | **optional.Int32**| How long, in seconds, before the List Item's parent Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | - **Data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that represents an arbitrary, schema-less object that the List Item stores. Can be up to 16KB in length. | + **Data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that represents an arbitrary, schema-less object that the List Item stores. Can be up to 16 KiB in length. | **ItemTtl** | **optional.Int32**| How long, in seconds, before the List Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the List Item does not expire. The List Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | **Ttl** | **optional.Int32**| An alias for `item_ttl`. If both parameters are provided, this value is ignored. | @@ -1915,7 +1909,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map resource to update. | -**Sid** | **string**| The SID of the Sync Map resource to update. | +**Sid** | **string**| The SID of the Sync Map resource to update. Can be the Sync Map's `sid` or its `unique_name`. | **optional** | ***UpdateSyncMapOpts** | optional parameters | nil if no parameters ### Optional Parameters @@ -1961,7 +1955,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Item resource to update. | -**MapSid** | **string**| The SID of the Sync Map with the Sync Map Item resource to update. Can be the Sync Map's `sid` or its `unique_name`. | +**MapSid** | **string**| The SID of the Sync Map with the Sync Map Item resource to update. Can be the Sync Map resource's `sid` or its `unique_name`. | **Key** | **string**| The `key` value of the Sync Map Item resource to update. | **optional** | ***UpdateSyncMapItemOpts** | optional parameters | nil if no parameters @@ -1977,7 +1971,7 @@ Name | Type | Description | Notes **IfMatch** | **optional.String**| The If-Match HTTP request header | **CollectionTtl** | **optional.Int32**| How long, in seconds, before the Map Item's parent Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync Map does not expire. This parameter can only be used when the Map Item's `data` or `ttl` is updated in the same request. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | - **Data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that represents an arbitrary, schema-less object that the Map Item stores. Can be up to 16KB in length. | + **Data** | [**optional.Interface of map[string]interface{}**](map[string]interface{}.md)| A JSON string that represents an arbitrary, schema-less object that the Map Item stores. Can be up to 16 KiB in length. | **ItemTtl** | **optional.Int32**| How long, in seconds, before the Map Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Map Item does not expire. The Map Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | **Ttl** | **optional.Int32**| An alias for `item_ttl`. If both parameters are provided, this value is ignored. | @@ -2014,7 +2008,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **ServiceSid** | **string**| The SID of the [Sync Service](https://www.twilio.com/docs/sync/api/service) with the Sync Map Permission resource to update. Can be the Service's `sid` value or `default`. | -**MapSid** | **string**| The SID of the Sync Map with the Sync Map Permission resource to update. Can be the Sync Map's `sid` or its `unique_name`. | +**MapSid** | **string**| The SID of the Sync Map with the Sync Map Permission resource to update. Can be the Sync Map resource's `sid` or its `unique_name`. | **Identity** | **string**| The application-defined string that uniquely identifies the User's Sync Map Permission resource to update. | **optional** | ***UpdateSyncMapPermissionOpts** | optional parameters | nil if no parameters diff --git a/rest/sync/v1/docs/SyncV1ServiceDocumentDocumentPermissionReadResponse.md b/rest/sync/v1/docs/ListDocumentPermissionResponse.md similarity index 72% rename from rest/sync/v1/docs/SyncV1ServiceDocumentDocumentPermissionReadResponse.md rename to rest/sync/v1/docs/ListDocumentPermissionResponse.md index 4d72a1cb2..fb1d06fa6 100644 --- a/rest/sync/v1/docs/SyncV1ServiceDocumentDocumentPermissionReadResponse.md +++ b/rest/sync/v1/docs/ListDocumentPermissionResponse.md @@ -1,10 +1,10 @@ -# SyncV1ServiceDocumentDocumentPermissionReadResponse +# ListDocumentPermissionResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**SyncV1ServiceReadResponseMeta**](sync_v1_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_meta.md) | | [optional] **Permissions** | [**[]SyncV1ServiceDocumentDocumentPermission**](sync.v1.service.document.document_permission.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/rest/sync/v1/docs/SyncV1ServiceDocumentReadResponse.md b/rest/sync/v1/docs/ListDocumentResponse.md similarity index 72% rename from rest/sync/v1/docs/SyncV1ServiceDocumentReadResponse.md rename to rest/sync/v1/docs/ListDocumentResponse.md index 86f913f89..34dbadb34 100644 --- a/rest/sync/v1/docs/SyncV1ServiceDocumentReadResponse.md +++ b/rest/sync/v1/docs/ListDocumentResponse.md @@ -1,11 +1,11 @@ -# SyncV1ServiceDocumentReadResponse +# ListDocumentResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Documents** | [**[]SyncV1ServiceDocument**](sync.v1.service.document.md) | | [optional] -**Meta** | [**SyncV1ServiceReadResponseMeta**](sync_v1_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_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/rest/sync/v1/docs/SyncV1ServiceReadResponse.md b/rest/sync/v1/docs/ListServiceResponse.md similarity index 73% rename from rest/sync/v1/docs/SyncV1ServiceReadResponse.md rename to rest/sync/v1/docs/ListServiceResponse.md index 4adf9d93a..4ec955b0e 100644 --- a/rest/sync/v1/docs/SyncV1ServiceReadResponse.md +++ b/rest/sync/v1/docs/ListServiceResponse.md @@ -1,10 +1,10 @@ -# SyncV1ServiceReadResponse +# ListServiceResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**SyncV1ServiceReadResponseMeta**](sync_v1_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_meta.md) | | [optional] **Services** | [**[]SyncV1Service**](sync.v1.service.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/rest/sync/v1/docs/ListServiceResponseMeta.md b/rest/sync/v1/docs/ListServiceResponseMeta.md new file mode 100644 index 000000000..010bc7d70 --- /dev/null +++ b/rest/sync/v1/docs/ListServiceResponseMeta.md @@ -0,0 +1,17 @@ +# ListServiceResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/sync/v1/docs/SyncV1ServiceSyncListSyncListItemReadResponse.md b/rest/sync/v1/docs/ListSyncListItemResponse.md similarity index 72% rename from rest/sync/v1/docs/SyncV1ServiceSyncListSyncListItemReadResponse.md rename to rest/sync/v1/docs/ListSyncListItemResponse.md index d2ee458f2..a97d0a395 100644 --- a/rest/sync/v1/docs/SyncV1ServiceSyncListSyncListItemReadResponse.md +++ b/rest/sync/v1/docs/ListSyncListItemResponse.md @@ -1,11 +1,11 @@ -# SyncV1ServiceSyncListSyncListItemReadResponse +# ListSyncListItemResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Items** | [**[]SyncV1ServiceSyncListSyncListItem**](sync.v1.service.sync_list.sync_list_item.md) | | [optional] -**Meta** | [**SyncV1ServiceReadResponseMeta**](sync_v1_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_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/rest/sync/v1/docs/SyncV1ServiceSyncListSyncListPermissionReadResponse.md b/rest/sync/v1/docs/ListSyncListPermissionResponse.md similarity index 72% rename from rest/sync/v1/docs/SyncV1ServiceSyncListSyncListPermissionReadResponse.md rename to rest/sync/v1/docs/ListSyncListPermissionResponse.md index 4f532d309..b305d9f06 100644 --- a/rest/sync/v1/docs/SyncV1ServiceSyncListSyncListPermissionReadResponse.md +++ b/rest/sync/v1/docs/ListSyncListPermissionResponse.md @@ -1,10 +1,10 @@ -# SyncV1ServiceSyncListSyncListPermissionReadResponse +# ListSyncListPermissionResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**SyncV1ServiceReadResponseMeta**](sync_v1_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_meta.md) | | [optional] **Permissions** | [**[]SyncV1ServiceSyncListSyncListPermission**](sync.v1.service.sync_list.sync_list_permission.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/rest/sync/v1/docs/SyncV1ServiceSyncListReadResponse.md b/rest/sync/v1/docs/ListSyncListResponse.md similarity index 72% rename from rest/sync/v1/docs/SyncV1ServiceSyncListReadResponse.md rename to rest/sync/v1/docs/ListSyncListResponse.md index 5c1dec03d..2953b1ede 100644 --- a/rest/sync/v1/docs/SyncV1ServiceSyncListReadResponse.md +++ b/rest/sync/v1/docs/ListSyncListResponse.md @@ -1,11 +1,11 @@ -# SyncV1ServiceSyncListReadResponse +# ListSyncListResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Lists** | [**[]SyncV1ServiceSyncList**](sync.v1.service.sync_list.md) | | [optional] -**Meta** | [**SyncV1ServiceReadResponseMeta**](sync_v1_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_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/rest/sync/v1/docs/SyncV1ServiceSyncMapSyncMapItemReadResponse.md b/rest/sync/v1/docs/ListSyncMapItemResponse.md similarity index 72% rename from rest/sync/v1/docs/SyncV1ServiceSyncMapSyncMapItemReadResponse.md rename to rest/sync/v1/docs/ListSyncMapItemResponse.md index 56add63dd..9a21a7605 100644 --- a/rest/sync/v1/docs/SyncV1ServiceSyncMapSyncMapItemReadResponse.md +++ b/rest/sync/v1/docs/ListSyncMapItemResponse.md @@ -1,11 +1,11 @@ -# SyncV1ServiceSyncMapSyncMapItemReadResponse +# ListSyncMapItemResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Items** | [**[]SyncV1ServiceSyncMapSyncMapItem**](sync.v1.service.sync_map.sync_map_item.md) | | [optional] -**Meta** | [**SyncV1ServiceReadResponseMeta**](sync_v1_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_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/rest/sync/v1/docs/SyncV1ServiceSyncMapSyncMapPermissionReadResponse.md b/rest/sync/v1/docs/ListSyncMapPermissionResponse.md similarity index 72% rename from rest/sync/v1/docs/SyncV1ServiceSyncMapSyncMapPermissionReadResponse.md rename to rest/sync/v1/docs/ListSyncMapPermissionResponse.md index f4410d5ee..181a3f23d 100644 --- a/rest/sync/v1/docs/SyncV1ServiceSyncMapSyncMapPermissionReadResponse.md +++ b/rest/sync/v1/docs/ListSyncMapPermissionResponse.md @@ -1,10 +1,10 @@ -# SyncV1ServiceSyncMapSyncMapPermissionReadResponse +# ListSyncMapPermissionResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**SyncV1ServiceReadResponseMeta**](sync_v1_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_meta.md) | | [optional] **Permissions** | [**[]SyncV1ServiceSyncMapSyncMapPermission**](sync.v1.service.sync_map.sync_map_permission.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/rest/sync/v1/docs/SyncV1ServiceSyncMapReadResponse.md b/rest/sync/v1/docs/ListSyncMapResponse.md similarity index 72% rename from rest/sync/v1/docs/SyncV1ServiceSyncMapReadResponse.md rename to rest/sync/v1/docs/ListSyncMapResponse.md index 91652ba33..003feb20d 100644 --- a/rest/sync/v1/docs/SyncV1ServiceSyncMapReadResponse.md +++ b/rest/sync/v1/docs/ListSyncMapResponse.md @@ -1,11 +1,11 @@ -# SyncV1ServiceSyncMapReadResponse +# ListSyncMapResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Maps** | [**[]SyncV1ServiceSyncMap**](sync.v1.service.sync_map.md) | | [optional] -**Meta** | [**SyncV1ServiceReadResponseMeta**](sync_v1_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_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/rest/sync/v1/docs/SyncV1ServiceSyncStreamReadResponse.md b/rest/sync/v1/docs/ListSyncStreamResponse.md similarity index 72% rename from rest/sync/v1/docs/SyncV1ServiceSyncStreamReadResponse.md rename to rest/sync/v1/docs/ListSyncStreamResponse.md index b87034a56..fb7a0715b 100644 --- a/rest/sync/v1/docs/SyncV1ServiceSyncStreamReadResponse.md +++ b/rest/sync/v1/docs/ListSyncStreamResponse.md @@ -1,10 +1,10 @@ -# SyncV1ServiceSyncStreamReadResponse +# ListSyncStreamResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**SyncV1ServiceReadResponseMeta**](sync_v1_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_meta.md) | | [optional] **Streams** | [**[]SyncV1ServiceSyncStream**](sync.v1.service.sync_stream.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/rest/sync/v1/docs/SyncV1ServiceReadResponseMeta.md b/rest/sync/v1/docs/SyncV1ServiceReadResponseMeta.md deleted file mode 100644 index f68082c37..000000000 --- a/rest/sync/v1/docs/SyncV1ServiceReadResponseMeta.md +++ /dev/null @@ -1,17 +0,0 @@ -# SyncV1ServiceReadResponseMeta - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FirstPageUrl** | **string** | | [optional] -**Key** | **string** | | [optional] -**NextPageUrl** | **string** | | [optional] -**Page** | **int32** | | [optional] -**PageSize** | **int32** | | [optional] -**PreviousPageUrl** | **string** | | [optional] -**Url** | **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/rest/sync/v1/docs/UpdateDocumentRequest.md b/rest/sync/v1/docs/UpdateDocumentRequest.md index 4c6d25fcc..6cd7b8246 100644 --- a/rest/sync/v1/docs/UpdateDocumentRequest.md +++ b/rest/sync/v1/docs/UpdateDocumentRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Data** | [**map[string]interface{}**](.md) | A JSON string that represents an arbitrary, schema-less object that the Sync Document stores. Can be up to 16KB in length. | [optional] +**Data** | [**map[string]interface{}**](.md) | A JSON string that represents an arbitrary, schema-less object that the Sync Document stores. Can be up to 16 KiB in length. | [optional] **Ttl** | **int32** | How long, in seconds, before the Sync Document expires and is deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Document resource does not expire. The Document resource will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | [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/rest/sync/v1/docs/UpdateSyncListItemRequest.md b/rest/sync/v1/docs/UpdateSyncListItemRequest.md index 02031f30c..e2718eff7 100644 --- a/rest/sync/v1/docs/UpdateSyncListItemRequest.md +++ b/rest/sync/v1/docs/UpdateSyncListItemRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **CollectionTtl** | **int32** | How long, in seconds, before the List Item's parent Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | [optional] -**Data** | [**map[string]interface{}**](.md) | A JSON string that represents an arbitrary, schema-less object that the List Item stores. Can be up to 16KB in length. | [optional] +**Data** | [**map[string]interface{}**](.md) | A JSON string that represents an arbitrary, schema-less object that the List Item stores. Can be up to 16 KiB in length. | [optional] **ItemTtl** | **int32** | How long, in seconds, before the List Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the List Item does not expire. The List Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | [optional] **Ttl** | **int32** | An alias for `item_ttl`. If both parameters are provided, this value is ignored. | [optional] diff --git a/rest/sync/v1/docs/UpdateSyncMapItemRequest.md b/rest/sync/v1/docs/UpdateSyncMapItemRequest.md index 09cac72dd..8394134dd 100644 --- a/rest/sync/v1/docs/UpdateSyncMapItemRequest.md +++ b/rest/sync/v1/docs/UpdateSyncMapItemRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **CollectionTtl** | **int32** | How long, in seconds, before the Map Item's parent Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync Map does not expire. This parameter can only be used when the Map Item's `data` or `ttl` is updated in the same request. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | [optional] -**Data** | [**map[string]interface{}**](.md) | A JSON string that represents an arbitrary, schema-less object that the Map Item stores. Can be up to 16KB in length. | [optional] +**Data** | [**map[string]interface{}**](.md) | A JSON string that represents an arbitrary, schema-less object that the Map Item stores. Can be up to 16 KiB in length. | [optional] **ItemTtl** | **int32** | How long, in seconds, before the Map Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Map Item does not expire. The Map Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. | [optional] **Ttl** | **int32** | An alias for `item_ttl`. If both parameters are provided, this value is ignored. | [optional] diff --git a/rest/sync/v1/model_create_document_request.go b/rest/sync/v1/model_create_document_request.go index c04744ab1..4c10942a0 100644 --- a/rest/sync/v1/model_create_document_request.go +++ b/rest/sync/v1/model_create_document_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -11,7 +11,7 @@ package openapi // CreateDocumentRequest struct for CreateDocumentRequest type CreateDocumentRequest struct { - // A JSON string that represents an arbitrary, schema-less object that the Sync Document stores. Can be up to 16KB in length. + // A JSON string that represents an arbitrary, schema-less object that the Sync Document stores. Can be up to 16 KiB in length. Data map[string]interface{} `json:"Data,omitempty"` // How long, in seconds, before the Sync Document expires and is deleted (the Sync Document's time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Sync Document does not expire. The Sync Document will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. Ttl int32 `json:"Ttl,omitempty"` diff --git a/rest/sync/v1/model_create_service_request.go b/rest/sync/v1/model_create_service_request.go index 98508f41f..a250dd45a 100644 --- a/rest/sync/v1/model_create_service_request.go +++ b/rest/sync/v1/model_create_service_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/sync/v1/model_create_stream_message_request.go b/rest/sync/v1/model_create_stream_message_request.go index 997f56310..e4d53bc9f 100644 --- a/rest/sync/v1/model_create_stream_message_request.go +++ b/rest/sync/v1/model_create_stream_message_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -11,6 +11,6 @@ package openapi // CreateStreamMessageRequest struct for CreateStreamMessageRequest type CreateStreamMessageRequest struct { - // A JSON string that represents an arbitrary, schema-less object that makes up the Stream Message body. Can be up to 4KB in length. + // A JSON string that represents an arbitrary, schema-less object that makes up the Stream Message body. Can be up to 4 KiB in length. Data map[string]interface{} `json:"Data"` } diff --git a/rest/sync/v1/model_create_sync_list_item_request.go b/rest/sync/v1/model_create_sync_list_item_request.go index 8b1e64b6f..da996ad42 100644 --- a/rest/sync/v1/model_create_sync_list_item_request.go +++ b/rest/sync/v1/model_create_sync_list_item_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -13,7 +13,7 @@ package openapi type CreateSyncListItemRequest struct { // How long, in seconds, before the List Item's parent Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. CollectionTtl int32 `json:"CollectionTtl,omitempty"` - // A JSON string that represents an arbitrary, schema-less object that the List Item stores. Can be up to 16KB in length. + // A JSON string that represents an arbitrary, schema-less object that the List Item stores. Can be up to 16 KiB in length. Data map[string]interface{} `json:"Data"` // How long, in seconds, before the List Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the List Item does not expire. The List Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. ItemTtl int32 `json:"ItemTtl,omitempty"` diff --git a/rest/sync/v1/model_create_sync_list_request.go b/rest/sync/v1/model_create_sync_list_request.go index 1b9ce78ca..7acbf3886 100644 --- a/rest/sync/v1/model_create_sync_list_request.go +++ b/rest/sync/v1/model_create_sync_list_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/sync/v1/model_create_sync_map_item_request.go b/rest/sync/v1/model_create_sync_map_item_request.go index ffa978ac4..6d9280874 100644 --- a/rest/sync/v1/model_create_sync_map_item_request.go +++ b/rest/sync/v1/model_create_sync_map_item_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -13,7 +13,7 @@ package openapi type CreateSyncMapItemRequest struct { // How long, in seconds, before the Map Item's parent Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync Map does not expire. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. CollectionTtl int32 `json:"CollectionTtl,omitempty"` - // A JSON string that represents an arbitrary, schema-less object that the Map Item stores. Can be up to 16KB in length. + // A JSON string that represents an arbitrary, schema-less object that the Map Item stores. Can be up to 16 KiB in length. Data map[string]interface{} `json:"Data"` // How long, in seconds, before the Map Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Map Item does not expire. The Map Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. ItemTtl int32 `json:"ItemTtl,omitempty"` diff --git a/rest/sync/v1/model_create_sync_map_request.go b/rest/sync/v1/model_create_sync_map_request.go index af4ae4539..4986ba7e3 100644 --- a/rest/sync/v1/model_create_sync_map_request.go +++ b/rest/sync/v1/model_create_sync_map_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/sync/v1/model_create_sync_stream_request.go b/rest/sync/v1/model_create_sync_stream_request.go index baf07bc96..cb540a95f 100644 --- a/rest/sync/v1/model_create_sync_stream_request.go +++ b/rest/sync/v1/model_create_sync_stream_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/sync/v1/model_sync_v1_service_document_document_permission_read_response.go b/rest/sync/v1/model_list_document_permission_response.go similarity index 50% rename from rest/sync/v1/model_sync_v1_service_document_document_permission_read_response.go rename to rest/sync/v1/model_list_document_permission_response.go index 5c8e06591..46ba58030 100644 --- a/rest/sync/v1/model_sync_v1_service_document_document_permission_read_response.go +++ b/rest/sync/v1/model_list_document_permission_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// SyncV1ServiceDocumentDocumentPermissionReadResponse struct for SyncV1ServiceDocumentDocumentPermissionReadResponse -type SyncV1ServiceDocumentDocumentPermissionReadResponse struct { - Meta SyncV1ServiceReadResponseMeta `json:"Meta,omitempty"` +// ListDocumentPermissionResponse struct for ListDocumentPermissionResponse +type ListDocumentPermissionResponse struct { + Meta ListServiceResponseMeta `json:"Meta,omitempty"` Permissions []SyncV1ServiceDocumentDocumentPermission `json:"Permissions,omitempty"` } diff --git a/rest/sync/v1/model_sync_v1_service_document_read_response.go b/rest/sync/v1/model_list_document_response.go similarity index 54% rename from rest/sync/v1/model_sync_v1_service_document_read_response.go rename to rest/sync/v1/model_list_document_response.go index 7652d61a0..7fe9c5e27 100644 --- a/rest/sync/v1/model_sync_v1_service_document_read_response.go +++ b/rest/sync/v1/model_list_document_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// SyncV1ServiceDocumentReadResponse struct for SyncV1ServiceDocumentReadResponse -type SyncV1ServiceDocumentReadResponse struct { +// ListDocumentResponse struct for ListDocumentResponse +type ListDocumentResponse struct { Documents []SyncV1ServiceDocument `json:"Documents,omitempty"` - Meta SyncV1ServiceReadResponseMeta `json:"Meta,omitempty"` + Meta ListServiceResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/sync/v1/model_sync_v1_service_read_response.go b/rest/sync/v1/model_list_service_response.go similarity index 56% rename from rest/sync/v1/model_sync_v1_service_read_response.go rename to rest/sync/v1/model_list_service_response.go index 8edb54ec2..3b83d9fc3 100644 --- a/rest/sync/v1/model_sync_v1_service_read_response.go +++ b/rest/sync/v1/model_list_service_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// SyncV1ServiceReadResponse struct for SyncV1ServiceReadResponse -type SyncV1ServiceReadResponse struct { - Meta SyncV1ServiceReadResponseMeta `json:"Meta,omitempty"` +// ListServiceResponse struct for ListServiceResponse +type ListServiceResponse struct { + Meta ListServiceResponseMeta `json:"Meta,omitempty"` Services []SyncV1Service `json:"Services,omitempty"` } diff --git a/rest/sync/v1/model_sync_v1_service_read_response_meta.go b/rest/sync/v1/model_list_service_response_meta.go similarity index 78% rename from rest/sync/v1/model_sync_v1_service_read_response_meta.go rename to rest/sync/v1/model_list_service_response_meta.go index de64a6223..191020c45 100644 --- a/rest/sync/v1/model_sync_v1_service_read_response_meta.go +++ b/rest/sync/v1/model_list_service_response_meta.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// SyncV1ServiceReadResponseMeta struct for SyncV1ServiceReadResponseMeta -type SyncV1ServiceReadResponseMeta struct { +// ListServiceResponseMeta struct for ListServiceResponseMeta +type ListServiceResponseMeta struct { FirstPageUrl string `json:"FirstPageUrl,omitempty"` Key string `json:"Key,omitempty"` NextPageUrl string `json:"NextPageUrl,omitempty"` diff --git a/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_item_read_response.go b/rest/sync/v1/model_list_sync_list_item_response.go similarity index 50% rename from rest/sync/v1/model_sync_v1_service_sync_list_sync_list_item_read_response.go rename to rest/sync/v1/model_list_sync_list_item_response.go index ee954b358..2f31c5009 100644 --- a/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_item_read_response.go +++ b/rest/sync/v1/model_list_sync_list_item_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// SyncV1ServiceSyncListSyncListItemReadResponse struct for SyncV1ServiceSyncListSyncListItemReadResponse -type SyncV1ServiceSyncListSyncListItemReadResponse struct { +// ListSyncListItemResponse struct for ListSyncListItemResponse +type ListSyncListItemResponse struct { Items []SyncV1ServiceSyncListSyncListItem `json:"Items,omitempty"` - Meta SyncV1ServiceReadResponseMeta `json:"Meta,omitempty"` + Meta ListServiceResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_permission_read_response.go b/rest/sync/v1/model_list_sync_list_permission_response.go similarity index 50% rename from rest/sync/v1/model_sync_v1_service_sync_list_sync_list_permission_read_response.go rename to rest/sync/v1/model_list_sync_list_permission_response.go index 6747f8a9e..d7baf8867 100644 --- a/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_permission_read_response.go +++ b/rest/sync/v1/model_list_sync_list_permission_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// SyncV1ServiceSyncListSyncListPermissionReadResponse struct for SyncV1ServiceSyncListSyncListPermissionReadResponse -type SyncV1ServiceSyncListSyncListPermissionReadResponse struct { - Meta SyncV1ServiceReadResponseMeta `json:"Meta,omitempty"` +// ListSyncListPermissionResponse struct for ListSyncListPermissionResponse +type ListSyncListPermissionResponse struct { + Meta ListServiceResponseMeta `json:"Meta,omitempty"` Permissions []SyncV1ServiceSyncListSyncListPermission `json:"Permissions,omitempty"` } diff --git a/rest/sync/v1/model_sync_v1_service_sync_list_read_response.go b/rest/sync/v1/model_list_sync_list_response.go similarity index 53% rename from rest/sync/v1/model_sync_v1_service_sync_list_read_response.go rename to rest/sync/v1/model_list_sync_list_response.go index fa3fa069d..02a4d6a09 100644 --- a/rest/sync/v1/model_sync_v1_service_sync_list_read_response.go +++ b/rest/sync/v1/model_list_sync_list_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// SyncV1ServiceSyncListReadResponse struct for SyncV1ServiceSyncListReadResponse -type SyncV1ServiceSyncListReadResponse struct { +// ListSyncListResponse struct for ListSyncListResponse +type ListSyncListResponse struct { Lists []SyncV1ServiceSyncList `json:"Lists,omitempty"` - Meta SyncV1ServiceReadResponseMeta `json:"Meta,omitempty"` + Meta ListServiceResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_item_read_response.go b/rest/sync/v1/model_list_sync_map_item_response.go similarity index 51% rename from rest/sync/v1/model_sync_v1_service_sync_map_sync_map_item_read_response.go rename to rest/sync/v1/model_list_sync_map_item_response.go index bcb315317..6fc576433 100644 --- a/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_item_read_response.go +++ b/rest/sync/v1/model_list_sync_map_item_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// SyncV1ServiceSyncMapSyncMapItemReadResponse struct for SyncV1ServiceSyncMapSyncMapItemReadResponse -type SyncV1ServiceSyncMapSyncMapItemReadResponse struct { +// ListSyncMapItemResponse struct for ListSyncMapItemResponse +type ListSyncMapItemResponse struct { Items []SyncV1ServiceSyncMapSyncMapItem `json:"Items,omitempty"` - Meta SyncV1ServiceReadResponseMeta `json:"Meta,omitempty"` + Meta ListServiceResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_permission_read_response.go b/rest/sync/v1/model_list_sync_map_permission_response.go similarity index 50% rename from rest/sync/v1/model_sync_v1_service_sync_map_sync_map_permission_read_response.go rename to rest/sync/v1/model_list_sync_map_permission_response.go index 96263fce8..240c61f87 100644 --- a/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_permission_read_response.go +++ b/rest/sync/v1/model_list_sync_map_permission_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// SyncV1ServiceSyncMapSyncMapPermissionReadResponse struct for SyncV1ServiceSyncMapSyncMapPermissionReadResponse -type SyncV1ServiceSyncMapSyncMapPermissionReadResponse struct { - Meta SyncV1ServiceReadResponseMeta `json:"Meta,omitempty"` +// ListSyncMapPermissionResponse struct for ListSyncMapPermissionResponse +type ListSyncMapPermissionResponse struct { + Meta ListServiceResponseMeta `json:"Meta,omitempty"` Permissions []SyncV1ServiceSyncMapSyncMapPermission `json:"Permissions,omitempty"` } diff --git a/rest/sync/v1/model_sync_v1_service_sync_map_read_response.go b/rest/sync/v1/model_list_sync_map_response.go similarity index 53% rename from rest/sync/v1/model_sync_v1_service_sync_map_read_response.go rename to rest/sync/v1/model_list_sync_map_response.go index da6904cad..665727b31 100644 --- a/rest/sync/v1/model_sync_v1_service_sync_map_read_response.go +++ b/rest/sync/v1/model_list_sync_map_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// SyncV1ServiceSyncMapReadResponse struct for SyncV1ServiceSyncMapReadResponse -type SyncV1ServiceSyncMapReadResponse struct { +// ListSyncMapResponse struct for ListSyncMapResponse +type ListSyncMapResponse struct { Maps []SyncV1ServiceSyncMap `json:"Maps,omitempty"` - Meta SyncV1ServiceReadResponseMeta `json:"Meta,omitempty"` + Meta ListServiceResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/sync/v1/model_sync_v1_service_sync_stream_read_response.go b/rest/sync/v1/model_list_sync_stream_response.go similarity index 53% rename from rest/sync/v1/model_sync_v1_service_sync_stream_read_response.go rename to rest/sync/v1/model_list_sync_stream_response.go index 1fb913f04..4c0837ba6 100644 --- a/rest/sync/v1/model_sync_v1_service_sync_stream_read_response.go +++ b/rest/sync/v1/model_list_sync_stream_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// SyncV1ServiceSyncStreamReadResponse struct for SyncV1ServiceSyncStreamReadResponse -type SyncV1ServiceSyncStreamReadResponse struct { - Meta SyncV1ServiceReadResponseMeta `json:"Meta,omitempty"` +// ListSyncStreamResponse struct for ListSyncStreamResponse +type ListSyncStreamResponse struct { + Meta ListServiceResponseMeta `json:"Meta,omitempty"` Streams []SyncV1ServiceSyncStream `json:"Streams,omitempty"` } diff --git a/rest/sync/v1/model_sync_v1_service.go b/rest/sync/v1/model_sync_v1_service.go index 796ffba5f..9f0dff27d 100644 --- a/rest/sync/v1/model_sync_v1_service.go +++ b/rest/sync/v1/model_sync_v1_service.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/sync/v1/model_sync_v1_service_document.go b/rest/sync/v1/model_sync_v1_service_document.go index df4e91164..784056ba9 100644 --- a/rest/sync/v1/model_sync_v1_service_document.go +++ b/rest/sync/v1/model_sync_v1_service_document.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/sync/v1/model_sync_v1_service_document_document_permission.go b/rest/sync/v1/model_sync_v1_service_document_document_permission.go index c41b5b317..d534f3430 100644 --- a/rest/sync/v1/model_sync_v1_service_document_document_permission.go +++ b/rest/sync/v1/model_sync_v1_service_document_document_permission.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/sync/v1/model_sync_v1_service_sync_list.go b/rest/sync/v1/model_sync_v1_service_sync_list.go index 3d088e47c..e53f2db49 100644 --- a/rest/sync/v1/model_sync_v1_service_sync_list.go +++ b/rest/sync/v1/model_sync_v1_service_sync_list.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_item.go b/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_item.go index 0ef9d7df4..1a513b933 100644 --- a/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_item.go +++ b/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_item.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_permission.go b/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_permission.go index a46061f51..18db7fe65 100644 --- a/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_permission.go +++ b/rest/sync/v1/model_sync_v1_service_sync_list_sync_list_permission.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/sync/v1/model_sync_v1_service_sync_map.go b/rest/sync/v1/model_sync_v1_service_sync_map.go index a886dde2a..5f51f3d1a 100644 --- a/rest/sync/v1/model_sync_v1_service_sync_map.go +++ b/rest/sync/v1/model_sync_v1_service_sync_map.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_item.go b/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_item.go index e62e520b2..4c1b03641 100644 --- a/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_item.go +++ b/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_item.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_permission.go b/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_permission.go index 86068e2ca..3e1ee9e5c 100644 --- a/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_permission.go +++ b/rest/sync/v1/model_sync_v1_service_sync_map_sync_map_permission.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/sync/v1/model_sync_v1_service_sync_stream.go b/rest/sync/v1/model_sync_v1_service_sync_stream.go index c2a790498..c55319a34 100644 --- a/rest/sync/v1/model_sync_v1_service_sync_stream.go +++ b/rest/sync/v1/model_sync_v1_service_sync_stream.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/sync/v1/model_sync_v1_service_sync_stream_stream_message.go b/rest/sync/v1/model_sync_v1_service_sync_stream_stream_message.go index 863085c5c..aaf40abb2 100644 --- a/rest/sync/v1/model_sync_v1_service_sync_stream_stream_message.go +++ b/rest/sync/v1/model_sync_v1_service_sync_stream_stream_message.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/sync/v1/model_update_document_permission_request.go b/rest/sync/v1/model_update_document_permission_request.go index 01dc71483..0e4b022a6 100644 --- a/rest/sync/v1/model_update_document_permission_request.go +++ b/rest/sync/v1/model_update_document_permission_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/sync/v1/model_update_document_request.go b/rest/sync/v1/model_update_document_request.go index bb4c2f9ef..5fe3de51d 100644 --- a/rest/sync/v1/model_update_document_request.go +++ b/rest/sync/v1/model_update_document_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -11,7 +11,7 @@ package openapi // UpdateDocumentRequest struct for UpdateDocumentRequest type UpdateDocumentRequest struct { - // A JSON string that represents an arbitrary, schema-less object that the Sync Document stores. Can be up to 16KB in length. + // A JSON string that represents an arbitrary, schema-less object that the Sync Document stores. Can be up to 16 KiB in length. Data map[string]interface{} `json:"Data,omitempty"` // How long, in seconds, before the Sync Document expires and is deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Document resource does not expire. The Document resource will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. Ttl int32 `json:"Ttl,omitempty"` diff --git a/rest/sync/v1/model_update_service_request.go b/rest/sync/v1/model_update_service_request.go index 537603d0b..db46e897e 100644 --- a/rest/sync/v1/model_update_service_request.go +++ b/rest/sync/v1/model_update_service_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/sync/v1/model_update_sync_list_item_request.go b/rest/sync/v1/model_update_sync_list_item_request.go index fac405c7e..2de060f74 100644 --- a/rest/sync/v1/model_update_sync_list_item_request.go +++ b/rest/sync/v1/model_update_sync_list_item_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -13,7 +13,7 @@ package openapi type UpdateSyncListItemRequest struct { // How long, in seconds, before the List Item's parent Sync List expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync List does not expire. The Sync List will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. CollectionTtl int32 `json:"CollectionTtl,omitempty"` - // A JSON string that represents an arbitrary, schema-less object that the List Item stores. Can be up to 16KB in length. + // A JSON string that represents an arbitrary, schema-less object that the List Item stores. Can be up to 16 KiB in length. Data map[string]interface{} `json:"Data,omitempty"` // How long, in seconds, before the List Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the List Item does not expire. The List Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. ItemTtl int32 `json:"ItemTtl,omitempty"` diff --git a/rest/sync/v1/model_update_sync_list_permission_request.go b/rest/sync/v1/model_update_sync_list_permission_request.go index 104607a7b..29a78d98d 100644 --- a/rest/sync/v1/model_update_sync_list_permission_request.go +++ b/rest/sync/v1/model_update_sync_list_permission_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/sync/v1/model_update_sync_list_request.go b/rest/sync/v1/model_update_sync_list_request.go index 63e48b035..9c6868586 100644 --- a/rest/sync/v1/model_update_sync_list_request.go +++ b/rest/sync/v1/model_update_sync_list_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/sync/v1/model_update_sync_map_item_request.go b/rest/sync/v1/model_update_sync_map_item_request.go index 8f2742128..300780e54 100644 --- a/rest/sync/v1/model_update_sync_map_item_request.go +++ b/rest/sync/v1/model_update_sync_map_item_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -13,7 +13,7 @@ package openapi type UpdateSyncMapItemRequest struct { // How long, in seconds, before the Map Item's parent Sync Map expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync Map does not expire. This parameter can only be used when the Map Item's `data` or `ttl` is updated in the same request. The Sync Map will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. CollectionTtl int32 `json:"CollectionTtl,omitempty"` - // A JSON string that represents an arbitrary, schema-less object that the Map Item stores. Can be up to 16KB in length. + // A JSON string that represents an arbitrary, schema-less object that the Map Item stores. Can be up to 16 KiB in length. Data map[string]interface{} `json:"Data,omitempty"` // How long, in seconds, before the Map Item expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year). The default value is `0`, which means the Map Item does not expire. The Map Item will be deleted automatically after it expires, but there can be a delay between the expiration time and the resources's deletion. ItemTtl int32 `json:"ItemTtl,omitempty"` diff --git a/rest/sync/v1/model_update_sync_map_permission_request.go b/rest/sync/v1/model_update_sync_map_permission_request.go index fc9777ddd..c62a21235 100644 --- a/rest/sync/v1/model_update_sync_map_permission_request.go +++ b/rest/sync/v1/model_update_sync_map_permission_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/sync/v1/model_update_sync_map_request.go b/rest/sync/v1/model_update_sync_map_request.go index d7625824b..dc093a500 100644 --- a/rest/sync/v1/model_update_sync_map_request.go +++ b/rest/sync/v1/model_update_sync_map_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/sync/v1/model_update_sync_stream_request.go b/rest/sync/v1/model_update_sync_stream_request.go index 643dcfaf1..7f01a798b 100644 --- a/rest/sync/v1/model_update_sync_stream_request.go +++ b/rest/sync/v1/model_update_sync_stream_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/sync/v1/response.go b/rest/sync/v1/response.go index 6a3bef27e..2d15958e7 100644 --- a/rest/sync/v1/response.go +++ b/rest/sync/v1/response.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/README.md b/rest/taskrouter/v1/README.md index c4433490c..5c229815e 100644 --- a/rest/taskrouter/v1/README.md +++ b/rest/taskrouter/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 5.15.0 +- API version: 1.0.0 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) @@ -102,38 +102,38 @@ Class | Method | HTTP request | Description - [CreateWorkerRequest](docs/CreateWorkerRequest.md) - [CreateWorkflowRequest](docs/CreateWorkflowRequest.md) - [CreateWorkspaceRequest](docs/CreateWorkspaceRequest.md) + - [ListActivityResponse](docs/ListActivityResponse.md) + - [ListEventResponse](docs/ListEventResponse.md) + - [ListTaskChannelResponse](docs/ListTaskChannelResponse.md) + - [ListTaskQueueResponse](docs/ListTaskQueueResponse.md) + - [ListTaskQueuesStatisticsResponse](docs/ListTaskQueuesStatisticsResponse.md) + - [ListTaskReservationResponse](docs/ListTaskReservationResponse.md) + - [ListTaskResponse](docs/ListTaskResponse.md) + - [ListWorkerChannelResponse](docs/ListWorkerChannelResponse.md) + - [ListWorkerReservationResponse](docs/ListWorkerReservationResponse.md) + - [ListWorkerResponse](docs/ListWorkerResponse.md) + - [ListWorkflowResponse](docs/ListWorkflowResponse.md) + - [ListWorkspaceResponse](docs/ListWorkspaceResponse.md) + - [ListWorkspaceResponseMeta](docs/ListWorkspaceResponseMeta.md) - [TaskrouterV1Workspace](docs/TaskrouterV1Workspace.md) - [TaskrouterV1WorkspaceActivity](docs/TaskrouterV1WorkspaceActivity.md) - - [TaskrouterV1WorkspaceActivityReadResponse](docs/TaskrouterV1WorkspaceActivityReadResponse.md) - [TaskrouterV1WorkspaceEvent](docs/TaskrouterV1WorkspaceEvent.md) - - [TaskrouterV1WorkspaceEventReadResponse](docs/TaskrouterV1WorkspaceEventReadResponse.md) - - [TaskrouterV1WorkspaceReadResponse](docs/TaskrouterV1WorkspaceReadResponse.md) - - [TaskrouterV1WorkspaceReadResponseMeta](docs/TaskrouterV1WorkspaceReadResponseMeta.md) - [TaskrouterV1WorkspaceTask](docs/TaskrouterV1WorkspaceTask.md) - [TaskrouterV1WorkspaceTaskChannel](docs/TaskrouterV1WorkspaceTaskChannel.md) - - [TaskrouterV1WorkspaceTaskChannelReadResponse](docs/TaskrouterV1WorkspaceTaskChannelReadResponse.md) - [TaskrouterV1WorkspaceTaskQueue](docs/TaskrouterV1WorkspaceTaskQueue.md) - - [TaskrouterV1WorkspaceTaskQueueReadResponse](docs/TaskrouterV1WorkspaceTaskQueueReadResponse.md) - [TaskrouterV1WorkspaceTaskQueueTaskQueueCumulativeStatistics](docs/TaskrouterV1WorkspaceTaskQueueTaskQueueCumulativeStatistics.md) - [TaskrouterV1WorkspaceTaskQueueTaskQueueRealTimeStatistics](docs/TaskrouterV1WorkspaceTaskQueueTaskQueueRealTimeStatistics.md) - [TaskrouterV1WorkspaceTaskQueueTaskQueueStatistics](docs/TaskrouterV1WorkspaceTaskQueueTaskQueueStatistics.md) - [TaskrouterV1WorkspaceTaskQueueTaskQueuesStatistics](docs/TaskrouterV1WorkspaceTaskQueueTaskQueuesStatistics.md) - - [TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse](docs/TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse.md) - - [TaskrouterV1WorkspaceTaskReadResponse](docs/TaskrouterV1WorkspaceTaskReadResponse.md) - [TaskrouterV1WorkspaceTaskTaskReservation](docs/TaskrouterV1WorkspaceTaskTaskReservation.md) - - [TaskrouterV1WorkspaceTaskTaskReservationReadResponse](docs/TaskrouterV1WorkspaceTaskTaskReservationReadResponse.md) - [TaskrouterV1WorkspaceWorker](docs/TaskrouterV1WorkspaceWorker.md) - - [TaskrouterV1WorkspaceWorkerReadResponse](docs/TaskrouterV1WorkspaceWorkerReadResponse.md) - [TaskrouterV1WorkspaceWorkerWorkerChannel](docs/TaskrouterV1WorkspaceWorkerWorkerChannel.md) - - [TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse](docs/TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse.md) - [TaskrouterV1WorkspaceWorkerWorkerInstanceStatistics](docs/TaskrouterV1WorkspaceWorkerWorkerInstanceStatistics.md) - [TaskrouterV1WorkspaceWorkerWorkerReservation](docs/TaskrouterV1WorkspaceWorkerWorkerReservation.md) - - [TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse](docs/TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse.md) - [TaskrouterV1WorkspaceWorkerWorkerStatistics](docs/TaskrouterV1WorkspaceWorkerWorkerStatistics.md) - [TaskrouterV1WorkspaceWorkerWorkersCumulativeStatistics](docs/TaskrouterV1WorkspaceWorkerWorkersCumulativeStatistics.md) - [TaskrouterV1WorkspaceWorkerWorkersRealTimeStatistics](docs/TaskrouterV1WorkspaceWorkerWorkersRealTimeStatistics.md) - [TaskrouterV1WorkspaceWorkflow](docs/TaskrouterV1WorkspaceWorkflow.md) - - [TaskrouterV1WorkspaceWorkflowReadResponse](docs/TaskrouterV1WorkspaceWorkflowReadResponse.md) - [TaskrouterV1WorkspaceWorkflowWorkflowCumulativeStatistics](docs/TaskrouterV1WorkspaceWorkflowWorkflowCumulativeStatistics.md) - [TaskrouterV1WorkspaceWorkflowWorkflowRealTimeStatistics](docs/TaskrouterV1WorkspaceWorkflowWorkflowRealTimeStatistics.md) - [TaskrouterV1WorkspaceWorkflowWorkflowStatistics](docs/TaskrouterV1WorkspaceWorkflowWorkflowStatistics.md) diff --git a/rest/taskrouter/v1/api_default.go b/rest/taskrouter/v1/api_default.go index 299eafd3a..c4b82b09a 100644 --- a/rest/taskrouter/v1/api_default.go +++ b/rest/taskrouter/v1/api_default.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -27,13 +27,13 @@ type DefaultApiService struct { func NewDefaultApiService(client *twilio.Client) *DefaultApiService { return &DefaultApiService { client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + baseURL: fmt.Sprintf("https://taskrouter.twilio.com"), } } // CreateActivityParams Optional parameters for the method 'CreateActivity' type CreateActivityParams struct { - Available *bool `json:"Available,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` + Available *bool `json:"Available,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -76,11 +76,11 @@ func (c *DefaultApiService) CreateActivity(WorkspaceSid string, params *CreateAc } // CreateTaskParams Optional parameters for the method 'CreateTask' type CreateTaskParams struct { - Attributes *string `json:"Attributes,omitempty"` - Priority *int32 `json:"Priority,omitempty"` - TaskChannel *string `json:"TaskChannel,omitempty"` - Timeout *int32 `json:"Timeout,omitempty"` - WorkflowSid *string `json:"WorkflowSid,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + Priority *int32 `json:"Priority,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` + Timeout *int32 `json:"Timeout,omitempty"` + WorkflowSid *string `json:"WorkflowSid,omitempty"` } /* @@ -90,7 +90,7 @@ CreateTask Method for CreateTask * @param "Attributes" (string) - A URL-encoded JSON string with the attributes of the new task. This value is passed to the Workflow's `assignment_callback_url` when the Task is assigned to a Worker. For example: `{ \\\"task_type\\\": \\\"call\\\", \\\"twilio_call_sid\\\": \\\"CAxxx\\\", \\\"customer_ticket_number\\\": \\\"12345\\\" }`. * @param "Priority" (int32) - The priority to assign the new task and override the default. When supplied, the new Task will have this priority unless it matches a Workflow Target with a Priority set. When not supplied, the new Task will have the priority of the matching Workflow Target. Value can be 0 to 2^31^ (2,147,483,647). * @param "TaskChannel" (string) - When MultiTasking is enabled, specify the TaskChannel by passing either its `unique_name` or `sid`. Default value is `default`. - * @param "Timeout" (int32) - The amount of time in seconds the new task is allowed to live. Can be up to a maximum of 2 weeks (1,209,600 seconds). The default value is 24 hours (86,400 seconds). On timeout, the `task.canceled` event will fire with description `Task TTL Exceeded`. + * @param "Timeout" (int32) - The amount of time in seconds the new task can live before being assigned. Can be up to a maximum of 2 weeks (1,209,600 seconds). The default value is 24 hours (86,400 seconds). On timeout, the `task.canceled` event will fire with description `Task TTL Exceeded`. * @param "WorkflowSid" (string) - The SID of the Workflow that you would like to handle routing for the new Task. If there is only one Workflow defined for the Workspace that you are posting the new task to, this parameter is optional. @return TaskrouterV1WorkspaceTask */ @@ -135,9 +135,9 @@ func (c *DefaultApiService) CreateTask(WorkspaceSid string, params *CreateTaskPa } // CreateTaskChannelParams Optional parameters for the method 'CreateTaskChannel' type CreateTaskChannelParams struct { - ChannelOptimizedRouting *bool `json:"ChannelOptimizedRouting,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + ChannelOptimizedRouting *bool `json:"ChannelOptimizedRouting,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -184,12 +184,12 @@ func (c *DefaultApiService) CreateTaskChannel(WorkspaceSid string, params *Creat } // CreateTaskQueueParams Optional parameters for the method 'CreateTaskQueue' type CreateTaskQueueParams struct { - AssignmentActivitySid *string `json:"AssignmentActivitySid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - MaxReservedWorkers *int32 `json:"MaxReservedWorkers,omitempty"` - ReservationActivitySid *string `json:"ReservationActivitySid,omitempty"` - TargetWorkers *string `json:"TargetWorkers,omitempty"` - TaskOrder *string `json:"TaskOrder,omitempty"` + AssignmentActivitySid *string `json:"AssignmentActivitySid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + MaxReservedWorkers *int32 `json:"MaxReservedWorkers,omitempty"` + ReservationActivitySid *string `json:"ReservationActivitySid,omitempty"` + TargetWorkers *string `json:"TargetWorkers,omitempty"` + TaskOrder *string `json:"TaskOrder,omitempty"` } /* @@ -248,9 +248,9 @@ func (c *DefaultApiService) CreateTaskQueue(WorkspaceSid string, params *CreateT } // CreateWorkerParams Optional parameters for the method 'CreateWorker' type CreateWorkerParams struct { - ActivitySid *string `json:"ActivitySid,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` + ActivitySid *string `json:"ActivitySid,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -297,11 +297,11 @@ func (c *DefaultApiService) CreateWorker(WorkspaceSid string, params *CreateWork } // CreateWorkflowParams Optional parameters for the method 'CreateWorkflow' type CreateWorkflowParams struct { - AssignmentCallbackUrl *string `json:"AssignmentCallbackUrl,omitempty"` - Configuration *string `json:"Configuration,omitempty"` - FallbackAssignmentCallbackUrl *string `json:"FallbackAssignmentCallbackUrl,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - TaskReservationTimeout *int32 `json:"TaskReservationTimeout,omitempty"` + AssignmentCallbackUrl *string `json:"AssignmentCallbackUrl,omitempty"` + Configuration *string `json:"Configuration,omitempty"` + FallbackAssignmentCallbackUrl *string `json:"FallbackAssignmentCallbackUrl,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + TaskReservationTimeout *int32 `json:"TaskReservationTimeout,omitempty"` } /* @@ -356,12 +356,12 @@ func (c *DefaultApiService) CreateWorkflow(WorkspaceSid string, params *CreateWo } // CreateWorkspaceParams Optional parameters for the method 'CreateWorkspace' type CreateWorkspaceParams struct { - EventCallbackUrl *string `json:"EventCallbackUrl,omitempty"` - EventsFilter *string `json:"EventsFilter,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - MultiTaskEnabled *bool `json:"MultiTaskEnabled,omitempty"` - PrioritizeQueueOrder *string `json:"PrioritizeQueueOrder,omitempty"` - Template *string `json:"Template,omitempty"` + EventCallbackUrl *string `json:"EventCallbackUrl,omitempty"` + EventsFilter *string `json:"EventsFilter,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + MultiTaskEnabled *bool `json:"MultiTaskEnabled,omitempty"` + PrioritizeQueueOrder *string `json:"PrioritizeQueueOrder,omitempty"` + Template *string `json:"Template,omitempty"` } /* @@ -758,11 +758,11 @@ func (c *DefaultApiService) FetchTaskQueue(WorkspaceSid string, Sid string) (*Ta } // FetchTaskQueueCumulativeStatisticsParams Optional parameters for the method 'FetchTaskQueueCumulativeStatistics' type FetchTaskQueueCumulativeStatisticsParams struct { - EndDate *time.Time `json:"EndDate,omitempty"` - Minutes *int32 `json:"Minutes,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - TaskChannel *string `json:"TaskChannel,omitempty"` - SplitByWaitTime *string `json:"SplitByWaitTime,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + Minutes *int32 `json:"Minutes,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` + SplitByWaitTime *string `json:"SplitByWaitTime,omitempty"` } /* @@ -819,7 +819,7 @@ func (c *DefaultApiService) FetchTaskQueueCumulativeStatistics(WorkspaceSid stri } // FetchTaskQueueRealTimeStatisticsParams Optional parameters for the method 'FetchTaskQueueRealTimeStatistics' type FetchTaskQueueRealTimeStatisticsParams struct { - TaskChannel *string `json:"TaskChannel,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` } /* @@ -860,11 +860,11 @@ func (c *DefaultApiService) FetchTaskQueueRealTimeStatistics(WorkspaceSid string } // FetchTaskQueueStatisticsParams Optional parameters for the method 'FetchTaskQueueStatistics' type FetchTaskQueueStatisticsParams struct { - EndDate *time.Time `json:"EndDate,omitempty"` - Minutes *int32 `json:"Minutes,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - TaskChannel *string `json:"TaskChannel,omitempty"` - SplitByWaitTime *string `json:"SplitByWaitTime,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + Minutes *int32 `json:"Minutes,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` + SplitByWaitTime *string `json:"SplitByWaitTime,omitempty"` } /* @@ -1021,10 +1021,10 @@ func (c *DefaultApiService) FetchWorkerChannel(WorkspaceSid string, WorkerSid st } // FetchWorkerInstanceStatisticsParams Optional parameters for the method 'FetchWorkerInstanceStatistics' type FetchWorkerInstanceStatisticsParams struct { - Minutes *int32 `json:"Minutes,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - EndDate *time.Time `json:"EndDate,omitempty"` - TaskChannel *string `json:"TaskChannel,omitempty"` + Minutes *int32 `json:"Minutes,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` } /* @@ -1111,13 +1111,13 @@ func (c *DefaultApiService) FetchWorkerReservation(WorkspaceSid string, WorkerSi } // FetchWorkerStatisticsParams Optional parameters for the method 'FetchWorkerStatistics' type FetchWorkerStatisticsParams struct { - Minutes *int32 `json:"Minutes,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - EndDate *time.Time `json:"EndDate,omitempty"` - TaskQueueSid *string `json:"TaskQueueSid,omitempty"` - TaskQueueName *string `json:"TaskQueueName,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - TaskChannel *string `json:"TaskChannel,omitempty"` + Minutes *int32 `json:"Minutes,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + TaskQueueSid *string `json:"TaskQueueSid,omitempty"` + TaskQueueName *string `json:"TaskQueueName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` } /* @@ -1180,10 +1180,10 @@ func (c *DefaultApiService) FetchWorkerStatistics(WorkspaceSid string, params *F } // FetchWorkersCumulativeStatisticsParams Optional parameters for the method 'FetchWorkersCumulativeStatistics' type FetchWorkersCumulativeStatisticsParams struct { - EndDate *time.Time `json:"EndDate,omitempty"` - Minutes *int32 `json:"Minutes,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - TaskChannel *string `json:"TaskChannel,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + Minutes *int32 `json:"Minutes,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` } /* @@ -1234,7 +1234,7 @@ func (c *DefaultApiService) FetchWorkersCumulativeStatistics(WorkspaceSid string } // FetchWorkersRealTimeStatisticsParams Optional parameters for the method 'FetchWorkersRealTimeStatistics' type FetchWorkersRealTimeStatisticsParams struct { - TaskChannel *string `json:"TaskChannel,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` } /* @@ -1305,11 +1305,11 @@ func (c *DefaultApiService) FetchWorkflow(WorkspaceSid string, Sid string) (*Tas } // FetchWorkflowCumulativeStatisticsParams Optional parameters for the method 'FetchWorkflowCumulativeStatistics' type FetchWorkflowCumulativeStatisticsParams struct { - EndDate *time.Time `json:"EndDate,omitempty"` - Minutes *int32 `json:"Minutes,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - TaskChannel *string `json:"TaskChannel,omitempty"` - SplitByWaitTime *string `json:"SplitByWaitTime,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + Minutes *int32 `json:"Minutes,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` + SplitByWaitTime *string `json:"SplitByWaitTime,omitempty"` } /* @@ -1366,7 +1366,7 @@ func (c *DefaultApiService) FetchWorkflowCumulativeStatistics(WorkspaceSid strin } // FetchWorkflowRealTimeStatisticsParams Optional parameters for the method 'FetchWorkflowRealTimeStatistics' type FetchWorkflowRealTimeStatisticsParams struct { - TaskChannel *string `json:"TaskChannel,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` } /* @@ -1407,11 +1407,11 @@ func (c *DefaultApiService) FetchWorkflowRealTimeStatistics(WorkspaceSid string, } // FetchWorkflowStatisticsParams Optional parameters for the method 'FetchWorkflowStatistics' type FetchWorkflowStatisticsParams struct { - Minutes *int32 `json:"Minutes,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - EndDate *time.Time `json:"EndDate,omitempty"` - TaskChannel *string `json:"TaskChannel,omitempty"` - SplitByWaitTime *string `json:"SplitByWaitTime,omitempty"` + Minutes *int32 `json:"Minutes,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` + SplitByWaitTime *string `json:"SplitByWaitTime,omitempty"` } /* @@ -1498,11 +1498,11 @@ func (c *DefaultApiService) FetchWorkspace(Sid string) (*TaskrouterV1Workspace, } // FetchWorkspaceCumulativeStatisticsParams Optional parameters for the method 'FetchWorkspaceCumulativeStatistics' type FetchWorkspaceCumulativeStatisticsParams struct { - EndDate *time.Time `json:"EndDate,omitempty"` - Minutes *int32 `json:"Minutes,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - TaskChannel *string `json:"TaskChannel,omitempty"` - SplitByWaitTime *string `json:"SplitByWaitTime,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + Minutes *int32 `json:"Minutes,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` + SplitByWaitTime *string `json:"SplitByWaitTime,omitempty"` } /* @@ -1557,7 +1557,7 @@ func (c *DefaultApiService) FetchWorkspaceCumulativeStatistics(WorkspaceSid stri } // FetchWorkspaceRealTimeStatisticsParams Optional parameters for the method 'FetchWorkspaceRealTimeStatistics' type FetchWorkspaceRealTimeStatisticsParams struct { - TaskChannel *string `json:"TaskChannel,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` } /* @@ -1596,11 +1596,11 @@ func (c *DefaultApiService) FetchWorkspaceRealTimeStatistics(WorkspaceSid string } // FetchWorkspaceStatisticsParams Optional parameters for the method 'FetchWorkspaceStatistics' type FetchWorkspaceStatisticsParams struct { - Minutes *int32 `json:"Minutes,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - EndDate *time.Time `json:"EndDate,omitempty"` - TaskChannel *string `json:"TaskChannel,omitempty"` - SplitByWaitTime *string `json:"SplitByWaitTime,omitempty"` + Minutes *int32 `json:"Minutes,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` + SplitByWaitTime *string `json:"SplitByWaitTime,omitempty"` } /* @@ -1655,9 +1655,9 @@ func (c *DefaultApiService) FetchWorkspaceStatistics(WorkspaceSid string, params } // ListActivityParams Optional parameters for the method 'ListActivity' type ListActivityParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - Available *string `json:"Available,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Available *string `json:"Available,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1667,9 +1667,9 @@ ListActivity Method for ListActivity * @param "FriendlyName" (string) - The `friendly_name` of the Activity resources to read. * @param "Available" (string) - Whether return only Activity resources that are available or unavailable. A value of `true` returns only available activities. Values of '1' or `yes` also indicate `true`. All other values represent `false` and return activities that are unavailable. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return TaskrouterV1WorkspaceActivityReadResponse +@return ListActivityResponse */ -func (c *DefaultApiService) ListActivity(WorkspaceSid string, params *ListActivityParams) (*TaskrouterV1WorkspaceActivityReadResponse, error) { +func (c *DefaultApiService) ListActivity(WorkspaceSid string, params *ListActivityParams) (*ListActivityResponse, error) { path := "/v1/Workspaces/{WorkspaceSid}/Activities" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -1695,7 +1695,7 @@ func (c *DefaultApiService) ListActivity(WorkspaceSid string, params *ListActivi defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceActivityReadResponse{} + ps := &ListActivityResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1704,18 +1704,18 @@ func (c *DefaultApiService) ListActivity(WorkspaceSid string, params *ListActivi } // ListEventParams Optional parameters for the method 'ListEvent' type ListEventParams struct { - EndDate *time.Time `json:"EndDate,omitempty"` - EventType *string `json:"EventType,omitempty"` - Minutes *int32 `json:"Minutes,omitempty"` - ReservationSid *string `json:"ReservationSid,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - TaskQueueSid *string `json:"TaskQueueSid,omitempty"` - TaskSid *string `json:"TaskSid,omitempty"` - WorkerSid *string `json:"WorkerSid,omitempty"` - WorkflowSid *string `json:"WorkflowSid,omitempty"` - TaskChannel *string `json:"TaskChannel,omitempty"` - Sid *string `json:"Sid,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + EventType *string `json:"EventType,omitempty"` + Minutes *int32 `json:"Minutes,omitempty"` + ReservationSid *string `json:"ReservationSid,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + TaskQueueSid *string `json:"TaskQueueSid,omitempty"` + TaskSid *string `json:"TaskSid,omitempty"` + WorkerSid *string `json:"WorkerSid,omitempty"` + WorkflowSid *string `json:"WorkflowSid,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` + Sid *string `json:"Sid,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1734,9 +1734,9 @@ ListEvent Method for ListEvent * @param "TaskChannel" (string) - The TaskChannel with the Events to read. Returns only the Events that pertain to the specified TaskChannel. * @param "Sid" (string) - The SID of the Event resource to read. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return TaskrouterV1WorkspaceEventReadResponse +@return ListEventResponse */ -func (c *DefaultApiService) ListEvent(WorkspaceSid string, params *ListEventParams) (*TaskrouterV1WorkspaceEventReadResponse, error) { +func (c *DefaultApiService) ListEvent(WorkspaceSid string, params *ListEventParams) (*ListEventResponse, error) { path := "/v1/Workspaces/{WorkspaceSid}/Events" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -1789,7 +1789,7 @@ func (c *DefaultApiService) ListEvent(WorkspaceSid string, params *ListEventPara defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceEventReadResponse{} + ps := &ListEventResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1798,16 +1798,16 @@ func (c *DefaultApiService) ListEvent(WorkspaceSid string, params *ListEventPara } // ListTaskParams Optional parameters for the method 'ListTask' type ListTaskParams struct { - Priority *int32 `json:"Priority,omitempty"` - AssignmentStatus *[]string `json:"AssignmentStatus,omitempty"` - WorkflowSid *string `json:"WorkflowSid,omitempty"` - WorkflowName *string `json:"WorkflowName,omitempty"` - TaskQueueSid *string `json:"TaskQueueSid,omitempty"` - TaskQueueName *string `json:"TaskQueueName,omitempty"` - EvaluateTaskAttributes *string `json:"EvaluateTaskAttributes,omitempty"` - Ordering *string `json:"Ordering,omitempty"` - HasAddons *bool `json:"HasAddons,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Priority *int32 `json:"Priority,omitempty"` + AssignmentStatus *[]string `json:"AssignmentStatus,omitempty"` + WorkflowSid *string `json:"WorkflowSid,omitempty"` + WorkflowName *string `json:"WorkflowName,omitempty"` + TaskQueueSid *string `json:"TaskQueueSid,omitempty"` + TaskQueueName *string `json:"TaskQueueName,omitempty"` + EvaluateTaskAttributes *string `json:"EvaluateTaskAttributes,omitempty"` + Ordering *string `json:"Ordering,omitempty"` + HasAddons *bool `json:"HasAddons,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1824,9 +1824,9 @@ ListTask Method for ListTask * @param "Ordering" (string) - How to order the returned Task resources. y default, Tasks are sorted by ascending DateCreated. This value is specified as: `Attribute:Order`, where `Attribute` can be either `Priority` or `DateCreated` and `Order` can be either `asc` or `desc`. For example, `Priority:desc` returns Tasks ordered in descending order of their Priority. Multiple sort orders can be specified in a comma-separated list such as `Priority:desc,DateCreated:asc`, which returns the Tasks in descending Priority order and ascending DateCreated Order. * @param "HasAddons" (bool) - Whether to read Tasks with addons. If `true`, returns only Tasks with addons. If `false`, returns only Tasks without addons. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return TaskrouterV1WorkspaceTaskReadResponse +@return ListTaskResponse */ -func (c *DefaultApiService) ListTask(WorkspaceSid string, params *ListTaskParams) (*TaskrouterV1WorkspaceTaskReadResponse, error) { +func (c *DefaultApiService) ListTask(WorkspaceSid string, params *ListTaskParams) (*ListTaskResponse, error) { path := "/v1/Workspaces/{WorkspaceSid}/Tasks" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -1873,7 +1873,7 @@ func (c *DefaultApiService) ListTask(WorkspaceSid string, params *ListTaskParams defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceTaskReadResponse{} + ps := &ListTaskResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1882,7 +1882,7 @@ func (c *DefaultApiService) ListTask(WorkspaceSid string, params *ListTaskParams } // ListTaskChannelParams Optional parameters for the method 'ListTaskChannel' type ListTaskChannelParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1890,9 +1890,9 @@ ListTaskChannel Method for ListTaskChannel * @param WorkspaceSid The SID of the Workspace with the Task Channel to read. * @param optional nil or *ListTaskChannelOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return TaskrouterV1WorkspaceTaskChannelReadResponse +@return ListTaskChannelResponse */ -func (c *DefaultApiService) ListTaskChannel(WorkspaceSid string, params *ListTaskChannelParams) (*TaskrouterV1WorkspaceTaskChannelReadResponse, error) { +func (c *DefaultApiService) ListTaskChannel(WorkspaceSid string, params *ListTaskChannelParams) (*ListTaskChannelResponse, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskChannels" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -1912,7 +1912,7 @@ func (c *DefaultApiService) ListTaskChannel(WorkspaceSid string, params *ListTas defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceTaskChannelReadResponse{} + ps := &ListTaskChannelResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1921,10 +1921,10 @@ func (c *DefaultApiService) ListTaskChannel(WorkspaceSid string, params *ListTas } // ListTaskQueueParams Optional parameters for the method 'ListTaskQueue' type ListTaskQueueParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - EvaluateWorkerAttributes *string `json:"EvaluateWorkerAttributes,omitempty"` - WorkerSid *string `json:"WorkerSid,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + EvaluateWorkerAttributes *string `json:"EvaluateWorkerAttributes,omitempty"` + WorkerSid *string `json:"WorkerSid,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1935,9 +1935,9 @@ ListTaskQueue Method for ListTaskQueue * @param "EvaluateWorkerAttributes" (string) - The attributes of the Workers to read. Returns the TaskQueues with Workers that match the attributes specified in this parameter. * @param "WorkerSid" (string) - The SID of the Worker with the TaskQueue resources to read. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return TaskrouterV1WorkspaceTaskQueueReadResponse +@return ListTaskQueueResponse */ -func (c *DefaultApiService) ListTaskQueue(WorkspaceSid string, params *ListTaskQueueParams) (*TaskrouterV1WorkspaceTaskQueueReadResponse, error) { +func (c *DefaultApiService) ListTaskQueue(WorkspaceSid string, params *ListTaskQueueParams) (*ListTaskQueueResponse, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -1966,7 +1966,7 @@ func (c *DefaultApiService) ListTaskQueue(WorkspaceSid string, params *ListTaskQ defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceTaskQueueReadResponse{} + ps := &ListTaskQueueResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1975,13 +1975,13 @@ func (c *DefaultApiService) ListTaskQueue(WorkspaceSid string, params *ListTaskQ } // ListTaskQueuesStatisticsParams Optional parameters for the method 'ListTaskQueuesStatistics' type ListTaskQueuesStatisticsParams struct { - EndDate *time.Time `json:"EndDate,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Minutes *int32 `json:"Minutes,omitempty"` - StartDate *time.Time `json:"StartDate,omitempty"` - TaskChannel *string `json:"TaskChannel,omitempty"` - SplitByWaitTime *string `json:"SplitByWaitTime,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + EndDate *time.Time `json:"EndDate,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Minutes *int32 `json:"Minutes,omitempty"` + StartDate *time.Time `json:"StartDate,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` + SplitByWaitTime *string `json:"SplitByWaitTime,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1995,9 +1995,9 @@ ListTaskQueuesStatistics Method for ListTaskQueuesStatistics * @param "TaskChannel" (string) - Only calculate statistics on this TaskChannel. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`. * @param "SplitByWaitTime" (string) - A comma separated list of values that describes the thresholds, in seconds, to calculate statistics on. For each threshold specified, the number of Tasks canceled and reservations accepted above and below the specified thresholds in seconds are computed. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse +@return ListTaskQueuesStatisticsResponse */ -func (c *DefaultApiService) ListTaskQueuesStatistics(WorkspaceSid string, params *ListTaskQueuesStatisticsParams) (*TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse, error) { +func (c *DefaultApiService) ListTaskQueuesStatistics(WorkspaceSid string, params *ListTaskQueuesStatisticsParams) (*ListTaskQueuesStatisticsResponse, error) { path := "/v1/Workspaces/{WorkspaceSid}/TaskQueues/Statistics" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -2035,7 +2035,7 @@ func (c *DefaultApiService) ListTaskQueuesStatistics(WorkspaceSid string, params defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse{} + ps := &ListTaskQueuesStatisticsResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -2044,8 +2044,8 @@ func (c *DefaultApiService) ListTaskQueuesStatistics(WorkspaceSid string, params } // ListTaskReservationParams Optional parameters for the method 'ListTaskReservation' type ListTaskReservationParams struct { - ReservationStatus *string `json:"ReservationStatus,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + ReservationStatus *string `json:"ReservationStatus,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2055,9 +2055,9 @@ ListTaskReservation Method for ListTaskReservation * @param optional nil or *ListTaskReservationOpts - Optional Parameters: * @param "ReservationStatus" (string) - Returns the list of reservations for a task with a specified ReservationStatus. Can be: `pending`, `accepted`, `rejected`, or `timeout`. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return TaskrouterV1WorkspaceTaskTaskReservationReadResponse +@return ListTaskReservationResponse */ -func (c *DefaultApiService) ListTaskReservation(WorkspaceSid string, TaskSid string, params *ListTaskReservationParams) (*TaskrouterV1WorkspaceTaskTaskReservationReadResponse, error) { +func (c *DefaultApiService) ListTaskReservation(WorkspaceSid string, TaskSid string, params *ListTaskReservationParams) (*ListTaskReservationResponse, error) { path := "/v1/Workspaces/{WorkspaceSid}/Tasks/{TaskSid}/Reservations" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) path = strings.Replace(path, "{"+"TaskSid"+"}", TaskSid, -1) @@ -2081,7 +2081,7 @@ func (c *DefaultApiService) ListTaskReservation(WorkspaceSid string, TaskSid str defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceTaskTaskReservationReadResponse{} + ps := &ListTaskReservationResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -2090,14 +2090,14 @@ func (c *DefaultApiService) ListTaskReservation(WorkspaceSid string, TaskSid str } // ListWorkerParams Optional parameters for the method 'ListWorker' type ListWorkerParams struct { - ActivityName *string `json:"ActivityName,omitempty"` - ActivitySid *string `json:"ActivitySid,omitempty"` - Available *string `json:"Available,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - TargetWorkersExpression *string `json:"TargetWorkersExpression,omitempty"` - TaskQueueName *string `json:"TaskQueueName,omitempty"` - TaskQueueSid *string `json:"TaskQueueSid,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + ActivityName *string `json:"ActivityName,omitempty"` + ActivitySid *string `json:"ActivitySid,omitempty"` + Available *string `json:"Available,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + TargetWorkersExpression *string `json:"TargetWorkersExpression,omitempty"` + TaskQueueName *string `json:"TaskQueueName,omitempty"` + TaskQueueSid *string `json:"TaskQueueSid,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2112,9 +2112,9 @@ ListWorker Method for ListWorker * @param "TaskQueueName" (string) - The `friendly_name` of the TaskQueue that the Workers to read are eligible for. * @param "TaskQueueSid" (string) - The SID of the TaskQueue that the Workers to read are eligible for. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return TaskrouterV1WorkspaceWorkerReadResponse +@return ListWorkerResponse */ -func (c *DefaultApiService) ListWorker(WorkspaceSid string, params *ListWorkerParams) (*TaskrouterV1WorkspaceWorkerReadResponse, error) { +func (c *DefaultApiService) ListWorker(WorkspaceSid string, params *ListWorkerParams) (*ListWorkerResponse, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -2155,7 +2155,7 @@ func (c *DefaultApiService) ListWorker(WorkspaceSid string, params *ListWorkerPa defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceWorkerReadResponse{} + ps := &ListWorkerResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -2164,7 +2164,7 @@ func (c *DefaultApiService) ListWorker(WorkspaceSid string, params *ListWorkerPa } // ListWorkerChannelParams Optional parameters for the method 'ListWorkerChannel' type ListWorkerChannelParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2173,9 +2173,9 @@ ListWorkerChannel Method for ListWorkerChannel * @param WorkerSid The SID of the Worker with the WorkerChannels to read. * @param optional nil or *ListWorkerChannelOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse +@return ListWorkerChannelResponse */ -func (c *DefaultApiService) ListWorkerChannel(WorkspaceSid string, WorkerSid string, params *ListWorkerChannelParams) (*TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse, error) { +func (c *DefaultApiService) ListWorkerChannel(WorkspaceSid string, WorkerSid string, params *ListWorkerChannelParams) (*ListWorkerChannelResponse, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Channels" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) path = strings.Replace(path, "{"+"WorkerSid"+"}", WorkerSid, -1) @@ -2196,7 +2196,7 @@ func (c *DefaultApiService) ListWorkerChannel(WorkspaceSid string, WorkerSid str defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse{} + ps := &ListWorkerChannelResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -2205,8 +2205,8 @@ func (c *DefaultApiService) ListWorkerChannel(WorkspaceSid string, WorkerSid str } // ListWorkerReservationParams Optional parameters for the method 'ListWorkerReservation' type ListWorkerReservationParams struct { - ReservationStatus *string `json:"ReservationStatus,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + ReservationStatus *string `json:"ReservationStatus,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2216,9 +2216,9 @@ ListWorkerReservation Method for ListWorkerReservation * @param optional nil or *ListWorkerReservationOpts - Optional Parameters: * @param "ReservationStatus" (string) - Returns the list of reservations for a worker with a specified ReservationStatus. Can be: `pending`, `accepted`, `rejected`, `timeout`, `canceled`, or `rescinded`. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse +@return ListWorkerReservationResponse */ -func (c *DefaultApiService) ListWorkerReservation(WorkspaceSid string, WorkerSid string, params *ListWorkerReservationParams) (*TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse, error) { +func (c *DefaultApiService) ListWorkerReservation(WorkspaceSid string, WorkerSid string, params *ListWorkerReservationParams) (*ListWorkerReservationResponse, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Reservations" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) path = strings.Replace(path, "{"+"WorkerSid"+"}", WorkerSid, -1) @@ -2242,7 +2242,7 @@ func (c *DefaultApiService) ListWorkerReservation(WorkspaceSid string, WorkerSid defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse{} + ps := &ListWorkerReservationResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -2251,8 +2251,8 @@ func (c *DefaultApiService) ListWorkerReservation(WorkspaceSid string, WorkerSid } // ListWorkflowParams Optional parameters for the method 'ListWorkflow' type ListWorkflowParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2261,9 +2261,9 @@ ListWorkflow Method for ListWorkflow * @param optional nil or *ListWorkflowOpts - Optional Parameters: * @param "FriendlyName" (string) - The `friendly_name` of the Workflow resources to read. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return TaskrouterV1WorkspaceWorkflowReadResponse +@return ListWorkflowResponse */ -func (c *DefaultApiService) ListWorkflow(WorkspaceSid string, params *ListWorkflowParams) (*TaskrouterV1WorkspaceWorkflowReadResponse, error) { +func (c *DefaultApiService) ListWorkflow(WorkspaceSid string, params *ListWorkflowParams) (*ListWorkflowResponse, error) { path := "/v1/Workspaces/{WorkspaceSid}/Workflows" path = strings.Replace(path, "{"+"WorkspaceSid"+"}", WorkspaceSid, -1) @@ -2286,7 +2286,7 @@ func (c *DefaultApiService) ListWorkflow(WorkspaceSid string, params *ListWorkfl defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceWorkflowReadResponse{} + ps := &ListWorkflowResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -2295,8 +2295,8 @@ func (c *DefaultApiService) ListWorkflow(WorkspaceSid string, params *ListWorkfl } // ListWorkspaceParams Optional parameters for the method 'ListWorkspace' type ListWorkspaceParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -2304,9 +2304,9 @@ ListWorkspace Method for ListWorkspace * @param optional nil or *ListWorkspaceOpts - Optional Parameters: * @param "FriendlyName" (string) - The `friendly_name` of the Workspace resources to read. For example `Customer Support` or `2014 Election Campaign`. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return TaskrouterV1WorkspaceReadResponse +@return ListWorkspaceResponse */ -func (c *DefaultApiService) ListWorkspace(params *ListWorkspaceParams) (*TaskrouterV1WorkspaceReadResponse, error) { +func (c *DefaultApiService) ListWorkspace(params *ListWorkspaceParams) (*ListWorkspaceResponse, error) { path := "/v1/Workspaces" @@ -2328,7 +2328,7 @@ func (c *DefaultApiService) ListWorkspace(params *ListWorkspaceParams) (*Taskrou defer resp.Body.Close() - ps := &TaskrouterV1WorkspaceReadResponse{} + ps := &ListWorkspaceResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -2337,7 +2337,7 @@ func (c *DefaultApiService) ListWorkspace(params *ListWorkspaceParams) (*Taskrou } // UpdateActivityParams Optional parameters for the method 'UpdateActivity' type UpdateActivityParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -2378,11 +2378,11 @@ func (c *DefaultApiService) UpdateActivity(WorkspaceSid string, Sid string, para } // UpdateTaskParams Optional parameters for the method 'UpdateTask' type UpdateTaskParams struct { - AssignmentStatus *string `json:"AssignmentStatus,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - Priority *int32 `json:"Priority,omitempty"` - Reason *string `json:"Reason,omitempty"` - TaskChannel *string `json:"TaskChannel,omitempty"` + AssignmentStatus *string `json:"AssignmentStatus,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + Priority *int32 `json:"Priority,omitempty"` + Reason *string `json:"Reason,omitempty"` + TaskChannel *string `json:"TaskChannel,omitempty"` } /* @@ -2439,8 +2439,8 @@ func (c *DefaultApiService) UpdateTask(WorkspaceSid string, Sid string, params * } // UpdateTaskChannelParams Optional parameters for the method 'UpdateTaskChannel' type UpdateTaskChannelParams struct { - ChannelOptimizedRouting *bool `json:"ChannelOptimizedRouting,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` + ChannelOptimizedRouting *bool `json:"ChannelOptimizedRouting,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -2485,12 +2485,12 @@ func (c *DefaultApiService) UpdateTaskChannel(WorkspaceSid string, Sid string, p } // UpdateTaskQueueParams Optional parameters for the method 'UpdateTaskQueue' type UpdateTaskQueueParams struct { - AssignmentActivitySid *string `json:"AssignmentActivitySid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - MaxReservedWorkers *int32 `json:"MaxReservedWorkers,omitempty"` - ReservationActivitySid *string `json:"ReservationActivitySid,omitempty"` - TargetWorkers *string `json:"TargetWorkers,omitempty"` - TaskOrder *string `json:"TaskOrder,omitempty"` + AssignmentActivitySid *string `json:"AssignmentActivitySid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + MaxReservedWorkers *int32 `json:"MaxReservedWorkers,omitempty"` + ReservationActivitySid *string `json:"ReservationActivitySid,omitempty"` + TargetWorkers *string `json:"TargetWorkers,omitempty"` + TaskOrder *string `json:"TaskOrder,omitempty"` } /* @@ -2551,59 +2551,59 @@ func (c *DefaultApiService) UpdateTaskQueue(WorkspaceSid string, Sid string, par } // UpdateTaskReservationParams Optional parameters for the method 'UpdateTaskReservation' type UpdateTaskReservationParams struct { - Beep *string `json:"Beep,omitempty"` - BeepOnCustomerEntrance *bool `json:"BeepOnCustomerEntrance,omitempty"` - CallAccept *bool `json:"CallAccept,omitempty"` - CallFrom *string `json:"CallFrom,omitempty"` - CallRecord *string `json:"CallRecord,omitempty"` - CallStatusCallbackUrl *string `json:"CallStatusCallbackUrl,omitempty"` - CallTimeout *int32 `json:"CallTimeout,omitempty"` - CallTo *string `json:"CallTo,omitempty"` - CallUrl *string `json:"CallUrl,omitempty"` - ConferenceRecord *string `json:"ConferenceRecord,omitempty"` - ConferenceRecordingStatusCallback *string `json:"ConferenceRecordingStatusCallback,omitempty"` - ConferenceRecordingStatusCallbackMethod *string `json:"ConferenceRecordingStatusCallbackMethod,omitempty"` - ConferenceStatusCallback *string `json:"ConferenceStatusCallback,omitempty"` - ConferenceStatusCallbackEvent *[]string `json:"ConferenceStatusCallbackEvent,omitempty"` - ConferenceStatusCallbackMethod *string `json:"ConferenceStatusCallbackMethod,omitempty"` - ConferenceTrim *string `json:"ConferenceTrim,omitempty"` - DequeueFrom *string `json:"DequeueFrom,omitempty"` - DequeuePostWorkActivitySid *string `json:"DequeuePostWorkActivitySid,omitempty"` - DequeueRecord *string `json:"DequeueRecord,omitempty"` - DequeueStatusCallbackEvent *[]string `json:"DequeueStatusCallbackEvent,omitempty"` - DequeueStatusCallbackUrl *string `json:"DequeueStatusCallbackUrl,omitempty"` - DequeueTimeout *int32 `json:"DequeueTimeout,omitempty"` - DequeueTo *string `json:"DequeueTo,omitempty"` - EarlyMedia *bool `json:"EarlyMedia,omitempty"` - EndConferenceOnCustomerExit *bool `json:"EndConferenceOnCustomerExit,omitempty"` - EndConferenceOnExit *bool `json:"EndConferenceOnExit,omitempty"` - From *string `json:"From,omitempty"` - Instruction *string `json:"Instruction,omitempty"` - MaxParticipants *int32 `json:"MaxParticipants,omitempty"` - Muted *bool `json:"Muted,omitempty"` - PostWorkActivitySid *string `json:"PostWorkActivitySid,omitempty"` - Record *bool `json:"Record,omitempty"` - RecordingChannels *string `json:"RecordingChannels,omitempty"` - RecordingStatusCallback *string `json:"RecordingStatusCallback,omitempty"` - RecordingStatusCallbackMethod *string `json:"RecordingStatusCallbackMethod,omitempty"` - RedirectAccept *bool `json:"RedirectAccept,omitempty"` - RedirectCallSid *string `json:"RedirectCallSid,omitempty"` - RedirectUrl *string `json:"RedirectUrl,omitempty"` - Region *string `json:"Region,omitempty"` - ReservationStatus *string `json:"ReservationStatus,omitempty"` - SipAuthPassword *string `json:"SipAuthPassword,omitempty"` - SipAuthUsername *string `json:"SipAuthUsername,omitempty"` - StartConferenceOnEnter *bool `json:"StartConferenceOnEnter,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StatusCallbackEvent *[]string `json:"StatusCallbackEvent,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - Supervisor *string `json:"Supervisor,omitempty"` - SupervisorMode *string `json:"SupervisorMode,omitempty"` - Timeout *int32 `json:"Timeout,omitempty"` - To *string `json:"To,omitempty"` - WaitMethod *string `json:"WaitMethod,omitempty"` - WaitUrl *string `json:"WaitUrl,omitempty"` - WorkerActivitySid *string `json:"WorkerActivitySid,omitempty"` + Beep *string `json:"Beep,omitempty"` + BeepOnCustomerEntrance *bool `json:"BeepOnCustomerEntrance,omitempty"` + CallAccept *bool `json:"CallAccept,omitempty"` + CallFrom *string `json:"CallFrom,omitempty"` + CallRecord *string `json:"CallRecord,omitempty"` + CallStatusCallbackUrl *string `json:"CallStatusCallbackUrl,omitempty"` + CallTimeout *int32 `json:"CallTimeout,omitempty"` + CallTo *string `json:"CallTo,omitempty"` + CallUrl *string `json:"CallUrl,omitempty"` + ConferenceRecord *string `json:"ConferenceRecord,omitempty"` + ConferenceRecordingStatusCallback *string `json:"ConferenceRecordingStatusCallback,omitempty"` + ConferenceRecordingStatusCallbackMethod *string `json:"ConferenceRecordingStatusCallbackMethod,omitempty"` + ConferenceStatusCallback *string `json:"ConferenceStatusCallback,omitempty"` + ConferenceStatusCallbackEvent *[]string `json:"ConferenceStatusCallbackEvent,omitempty"` + ConferenceStatusCallbackMethod *string `json:"ConferenceStatusCallbackMethod,omitempty"` + ConferenceTrim *string `json:"ConferenceTrim,omitempty"` + DequeueFrom *string `json:"DequeueFrom,omitempty"` + DequeuePostWorkActivitySid *string `json:"DequeuePostWorkActivitySid,omitempty"` + DequeueRecord *string `json:"DequeueRecord,omitempty"` + DequeueStatusCallbackEvent *[]string `json:"DequeueStatusCallbackEvent,omitempty"` + DequeueStatusCallbackUrl *string `json:"DequeueStatusCallbackUrl,omitempty"` + DequeueTimeout *int32 `json:"DequeueTimeout,omitempty"` + DequeueTo *string `json:"DequeueTo,omitempty"` + EarlyMedia *bool `json:"EarlyMedia,omitempty"` + EndConferenceOnCustomerExit *bool `json:"EndConferenceOnCustomerExit,omitempty"` + EndConferenceOnExit *bool `json:"EndConferenceOnExit,omitempty"` + From *string `json:"From,omitempty"` + Instruction *string `json:"Instruction,omitempty"` + MaxParticipants *int32 `json:"MaxParticipants,omitempty"` + Muted *bool `json:"Muted,omitempty"` + PostWorkActivitySid *string `json:"PostWorkActivitySid,omitempty"` + Record *bool `json:"Record,omitempty"` + RecordingChannels *string `json:"RecordingChannels,omitempty"` + RecordingStatusCallback *string `json:"RecordingStatusCallback,omitempty"` + RecordingStatusCallbackMethod *string `json:"RecordingStatusCallbackMethod,omitempty"` + RedirectAccept *bool `json:"RedirectAccept,omitempty"` + RedirectCallSid *string `json:"RedirectCallSid,omitempty"` + RedirectUrl *string `json:"RedirectUrl,omitempty"` + Region *string `json:"Region,omitempty"` + ReservationStatus *string `json:"ReservationStatus,omitempty"` + SipAuthPassword *string `json:"SipAuthPassword,omitempty"` + SipAuthUsername *string `json:"SipAuthUsername,omitempty"` + StartConferenceOnEnter *bool `json:"StartConferenceOnEnter,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackEvent *[]string `json:"StatusCallbackEvent,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + Supervisor *string `json:"Supervisor,omitempty"` + SupervisorMode *string `json:"SupervisorMode,omitempty"` + Timeout *int32 `json:"Timeout,omitempty"` + To *string `json:"To,omitempty"` + WaitMethod *string `json:"WaitMethod,omitempty"` + WaitUrl *string `json:"WaitUrl,omitempty"` + WorkerActivitySid *string `json:"WorkerActivitySid,omitempty"` } /* @@ -2854,10 +2854,10 @@ func (c *DefaultApiService) UpdateTaskReservation(WorkspaceSid string, TaskSid s } // UpdateWorkerParams Optional parameters for the method 'UpdateWorker' type UpdateWorkerParams struct { - ActivitySid *string `json:"ActivitySid,omitempty"` - Attributes *string `json:"Attributes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - RejectPendingReservations *bool `json:"RejectPendingReservations,omitempty"` + ActivitySid *string `json:"ActivitySid,omitempty"` + Attributes *string `json:"Attributes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + RejectPendingReservations *bool `json:"RejectPendingReservations,omitempty"` } /* @@ -2910,8 +2910,8 @@ func (c *DefaultApiService) UpdateWorker(WorkspaceSid string, Sid string, params } // UpdateWorkerChannelParams Optional parameters for the method 'UpdateWorkerChannel' type UpdateWorkerChannelParams struct { - Available *bool `json:"Available,omitempty"` - Capacity *int32 `json:"Capacity,omitempty"` + Available *bool `json:"Available,omitempty"` + Capacity *int32 `json:"Capacity,omitempty"` } /* @@ -2958,57 +2958,57 @@ func (c *DefaultApiService) UpdateWorkerChannel(WorkspaceSid string, WorkerSid s } // UpdateWorkerReservationParams Optional parameters for the method 'UpdateWorkerReservation' type UpdateWorkerReservationParams struct { - Beep *string `json:"Beep,omitempty"` - BeepOnCustomerEntrance *bool `json:"BeepOnCustomerEntrance,omitempty"` - CallAccept *bool `json:"CallAccept,omitempty"` - CallFrom *string `json:"CallFrom,omitempty"` - CallRecord *string `json:"CallRecord,omitempty"` - CallStatusCallbackUrl *string `json:"CallStatusCallbackUrl,omitempty"` - CallTimeout *int32 `json:"CallTimeout,omitempty"` - CallTo *string `json:"CallTo,omitempty"` - CallUrl *string `json:"CallUrl,omitempty"` - ConferenceRecord *string `json:"ConferenceRecord,omitempty"` - ConferenceRecordingStatusCallback *string `json:"ConferenceRecordingStatusCallback,omitempty"` - ConferenceRecordingStatusCallbackMethod *string `json:"ConferenceRecordingStatusCallbackMethod,omitempty"` - ConferenceStatusCallback *string `json:"ConferenceStatusCallback,omitempty"` - ConferenceStatusCallbackEvent *[]string `json:"ConferenceStatusCallbackEvent,omitempty"` - ConferenceStatusCallbackMethod *string `json:"ConferenceStatusCallbackMethod,omitempty"` - ConferenceTrim *string `json:"ConferenceTrim,omitempty"` - DequeueFrom *string `json:"DequeueFrom,omitempty"` - DequeuePostWorkActivitySid *string `json:"DequeuePostWorkActivitySid,omitempty"` - DequeueRecord *string `json:"DequeueRecord,omitempty"` - DequeueStatusCallbackEvent *[]string `json:"DequeueStatusCallbackEvent,omitempty"` - DequeueStatusCallbackUrl *string `json:"DequeueStatusCallbackUrl,omitempty"` - DequeueTimeout *int32 `json:"DequeueTimeout,omitempty"` - DequeueTo *string `json:"DequeueTo,omitempty"` - EarlyMedia *bool `json:"EarlyMedia,omitempty"` - EndConferenceOnCustomerExit *bool `json:"EndConferenceOnCustomerExit,omitempty"` - EndConferenceOnExit *bool `json:"EndConferenceOnExit,omitempty"` - From *string `json:"From,omitempty"` - Instruction *string `json:"Instruction,omitempty"` - MaxParticipants *int32 `json:"MaxParticipants,omitempty"` - Muted *bool `json:"Muted,omitempty"` - PostWorkActivitySid *string `json:"PostWorkActivitySid,omitempty"` - Record *bool `json:"Record,omitempty"` - RecordingChannels *string `json:"RecordingChannels,omitempty"` - RecordingStatusCallback *string `json:"RecordingStatusCallback,omitempty"` - RecordingStatusCallbackMethod *string `json:"RecordingStatusCallbackMethod,omitempty"` - RedirectAccept *bool `json:"RedirectAccept,omitempty"` - RedirectCallSid *string `json:"RedirectCallSid,omitempty"` - RedirectUrl *string `json:"RedirectUrl,omitempty"` - Region *string `json:"Region,omitempty"` - ReservationStatus *string `json:"ReservationStatus,omitempty"` - SipAuthPassword *string `json:"SipAuthPassword,omitempty"` - SipAuthUsername *string `json:"SipAuthUsername,omitempty"` - StartConferenceOnEnter *bool `json:"StartConferenceOnEnter,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StatusCallbackEvent *[]string `json:"StatusCallbackEvent,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - Timeout *int32 `json:"Timeout,omitempty"` - To *string `json:"To,omitempty"` - WaitMethod *string `json:"WaitMethod,omitempty"` - WaitUrl *string `json:"WaitUrl,omitempty"` - WorkerActivitySid *string `json:"WorkerActivitySid,omitempty"` + Beep *string `json:"Beep,omitempty"` + BeepOnCustomerEntrance *bool `json:"BeepOnCustomerEntrance,omitempty"` + CallAccept *bool `json:"CallAccept,omitempty"` + CallFrom *string `json:"CallFrom,omitempty"` + CallRecord *string `json:"CallRecord,omitempty"` + CallStatusCallbackUrl *string `json:"CallStatusCallbackUrl,omitempty"` + CallTimeout *int32 `json:"CallTimeout,omitempty"` + CallTo *string `json:"CallTo,omitempty"` + CallUrl *string `json:"CallUrl,omitempty"` + ConferenceRecord *string `json:"ConferenceRecord,omitempty"` + ConferenceRecordingStatusCallback *string `json:"ConferenceRecordingStatusCallback,omitempty"` + ConferenceRecordingStatusCallbackMethod *string `json:"ConferenceRecordingStatusCallbackMethod,omitempty"` + ConferenceStatusCallback *string `json:"ConferenceStatusCallback,omitempty"` + ConferenceStatusCallbackEvent *[]string `json:"ConferenceStatusCallbackEvent,omitempty"` + ConferenceStatusCallbackMethod *string `json:"ConferenceStatusCallbackMethod,omitempty"` + ConferenceTrim *string `json:"ConferenceTrim,omitempty"` + DequeueFrom *string `json:"DequeueFrom,omitempty"` + DequeuePostWorkActivitySid *string `json:"DequeuePostWorkActivitySid,omitempty"` + DequeueRecord *string `json:"DequeueRecord,omitempty"` + DequeueStatusCallbackEvent *[]string `json:"DequeueStatusCallbackEvent,omitempty"` + DequeueStatusCallbackUrl *string `json:"DequeueStatusCallbackUrl,omitempty"` + DequeueTimeout *int32 `json:"DequeueTimeout,omitempty"` + DequeueTo *string `json:"DequeueTo,omitempty"` + EarlyMedia *bool `json:"EarlyMedia,omitempty"` + EndConferenceOnCustomerExit *bool `json:"EndConferenceOnCustomerExit,omitempty"` + EndConferenceOnExit *bool `json:"EndConferenceOnExit,omitempty"` + From *string `json:"From,omitempty"` + Instruction *string `json:"Instruction,omitempty"` + MaxParticipants *int32 `json:"MaxParticipants,omitempty"` + Muted *bool `json:"Muted,omitempty"` + PostWorkActivitySid *string `json:"PostWorkActivitySid,omitempty"` + Record *bool `json:"Record,omitempty"` + RecordingChannels *string `json:"RecordingChannels,omitempty"` + RecordingStatusCallback *string `json:"RecordingStatusCallback,omitempty"` + RecordingStatusCallbackMethod *string `json:"RecordingStatusCallbackMethod,omitempty"` + RedirectAccept *bool `json:"RedirectAccept,omitempty"` + RedirectCallSid *string `json:"RedirectCallSid,omitempty"` + RedirectUrl *string `json:"RedirectUrl,omitempty"` + Region *string `json:"Region,omitempty"` + ReservationStatus *string `json:"ReservationStatus,omitempty"` + SipAuthPassword *string `json:"SipAuthPassword,omitempty"` + SipAuthUsername *string `json:"SipAuthUsername,omitempty"` + StartConferenceOnEnter *bool `json:"StartConferenceOnEnter,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackEvent *[]string `json:"StatusCallbackEvent,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + Timeout *int32 `json:"Timeout,omitempty"` + To *string `json:"To,omitempty"` + WaitMethod *string `json:"WaitMethod,omitempty"` + WaitUrl *string `json:"WaitUrl,omitempty"` + WorkerActivitySid *string `json:"WorkerActivitySid,omitempty"` } /* @@ -3251,12 +3251,12 @@ func (c *DefaultApiService) UpdateWorkerReservation(WorkspaceSid string, WorkerS } // UpdateWorkflowParams Optional parameters for the method 'UpdateWorkflow' type UpdateWorkflowParams struct { - AssignmentCallbackUrl *string `json:"AssignmentCallbackUrl,omitempty"` - Configuration *string `json:"Configuration,omitempty"` - FallbackAssignmentCallbackUrl *string `json:"FallbackAssignmentCallbackUrl,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - ReEvaluateTasks *string `json:"ReEvaluateTasks,omitempty"` - TaskReservationTimeout *int32 `json:"TaskReservationTimeout,omitempty"` + AssignmentCallbackUrl *string `json:"AssignmentCallbackUrl,omitempty"` + Configuration *string `json:"Configuration,omitempty"` + FallbackAssignmentCallbackUrl *string `json:"FallbackAssignmentCallbackUrl,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + ReEvaluateTasks *string `json:"ReEvaluateTasks,omitempty"` + TaskReservationTimeout *int32 `json:"TaskReservationTimeout,omitempty"` } /* @@ -3317,13 +3317,13 @@ func (c *DefaultApiService) UpdateWorkflow(WorkspaceSid string, Sid string, para } // UpdateWorkspaceParams Optional parameters for the method 'UpdateWorkspace' type UpdateWorkspaceParams struct { - DefaultActivitySid *string `json:"DefaultActivitySid,omitempty"` - EventCallbackUrl *string `json:"EventCallbackUrl,omitempty"` - EventsFilter *string `json:"EventsFilter,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - MultiTaskEnabled *bool `json:"MultiTaskEnabled,omitempty"` - PrioritizeQueueOrder *string `json:"PrioritizeQueueOrder,omitempty"` - TimeoutActivitySid *string `json:"TimeoutActivitySid,omitempty"` + DefaultActivitySid *string `json:"DefaultActivitySid,omitempty"` + EventCallbackUrl *string `json:"EventCallbackUrl,omitempty"` + EventsFilter *string `json:"EventsFilter,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + MultiTaskEnabled *bool `json:"MultiTaskEnabled,omitempty"` + PrioritizeQueueOrder *string `json:"PrioritizeQueueOrder,omitempty"` + TimeoutActivitySid *string `json:"TimeoutActivitySid,omitempty"` } /* diff --git a/rest/taskrouter/v1/docs/CreateTaskRequest.md b/rest/taskrouter/v1/docs/CreateTaskRequest.md index b50826317..dc5a76b6b 100644 --- a/rest/taskrouter/v1/docs/CreateTaskRequest.md +++ b/rest/taskrouter/v1/docs/CreateTaskRequest.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Attributes** | **string** | A URL-encoded JSON string with the attributes of the new task. This value is passed to the Workflow's `assignment_callback_url` when the Task is assigned to a Worker. For example: `{ \"task_type\": \"call\", \"twilio_call_sid\": \"CAxxx\", \"customer_ticket_number\": \"12345\" }`. | [optional] **Priority** | **int32** | The priority to assign the new task and override the default. When supplied, the new Task will have this priority unless it matches a Workflow Target with a Priority set. When not supplied, the new Task will have the priority of the matching Workflow Target. Value can be 0 to 2^31^ (2,147,483,647). | [optional] **TaskChannel** | **string** | When MultiTasking is enabled, specify the TaskChannel by passing either its `unique_name` or `sid`. Default value is `default`. | [optional] -**Timeout** | **int32** | The amount of time in seconds the new task is allowed to live. Can be up to a maximum of 2 weeks (1,209,600 seconds). The default value is 24 hours (86,400 seconds). On timeout, the `task.canceled` event will fire with description `Task TTL Exceeded`. | [optional] +**Timeout** | **int32** | The amount of time in seconds the new task can live before being assigned. Can be up to a maximum of 2 weeks (1,209,600 seconds). The default value is 24 hours (86,400 seconds). On timeout, the `task.canceled` event will fire with description `Task TTL Exceeded`. | [optional] **WorkflowSid** | **string** | The SID of the Workflow that you would like to handle routing for the new Task. If there is only one Workflow defined for the Workspace that you are posting the new task to, this parameter is optional. | [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/rest/taskrouter/v1/docs/DefaultApi.md b/rest/taskrouter/v1/docs/DefaultApi.md index 9a75204ba..dff6e5629 100644 --- a/rest/taskrouter/v1/docs/DefaultApi.md +++ b/rest/taskrouter/v1/docs/DefaultApi.md @@ -137,7 +137,7 @@ Name | Type | Description | Notes **Attributes** | **optional.String**| A URL-encoded JSON string with the attributes of the new task. This value is passed to the Workflow's `assignment_callback_url` when the Task is assigned to a Worker. For example: `{ \\\"task_type\\\": \\\"call\\\", \\\"twilio_call_sid\\\": \\\"CAxxx\\\", \\\"customer_ticket_number\\\": \\\"12345\\\" }`. | **Priority** | **optional.Int32**| The priority to assign the new task and override the default. When supplied, the new Task will have this priority unless it matches a Workflow Target with a Priority set. When not supplied, the new Task will have the priority of the matching Workflow Target. Value can be 0 to 2^31^ (2,147,483,647). | **TaskChannel** | **optional.String**| When MultiTasking is enabled, specify the TaskChannel by passing either its `unique_name` or `sid`. Default value is `default`. | - **Timeout** | **optional.Int32**| The amount of time in seconds the new task is allowed to live. Can be up to a maximum of 2 weeks (1,209,600 seconds). The default value is 24 hours (86,400 seconds). On timeout, the `task.canceled` event will fire with description `Task TTL Exceeded`. | + **Timeout** | **optional.Int32**| The amount of time in seconds the new task can live before being assigned. Can be up to a maximum of 2 weeks (1,209,600 seconds). The default value is 24 hours (86,400 seconds). On timeout, the `task.canceled` event will fire with description `Task TTL Exceeded`. | **WorkflowSid** | **optional.String**| The SID of the Workflow that you would like to handle routing for the new Task. If there is only one Workflow defined for the Workspace that you are posting the new task to, this parameter is optional. | ### Return type @@ -1595,7 +1595,7 @@ Name | Type | Description | Notes ## ListActivity -> TaskrouterV1WorkspaceActivityReadResponse ListActivity(ctx, WorkspaceSid, optional) +> ListActivityResponse ListActivity(ctx, WorkspaceSid, optional) @@ -1622,7 +1622,7 @@ Name | Type | Description | Notes ### Return type -[**TaskrouterV1WorkspaceActivityReadResponse**](taskrouter_v1_workspace_activityReadResponse.md) +[**ListActivityResponse**](ListActivityResponse.md) ### Authorization @@ -1640,7 +1640,7 @@ Name | Type | Description | Notes ## ListEvent -> TaskrouterV1WorkspaceEventReadResponse ListEvent(ctx, WorkspaceSid, optional) +> ListEventResponse ListEvent(ctx, WorkspaceSid, optional) @@ -1676,7 +1676,7 @@ Name | Type | Description | Notes ### Return type -[**TaskrouterV1WorkspaceEventReadResponse**](taskrouter_v1_workspace_eventReadResponse.md) +[**ListEventResponse**](ListEventResponse.md) ### Authorization @@ -1694,7 +1694,7 @@ Name | Type | Description | Notes ## ListTask -> TaskrouterV1WorkspaceTaskReadResponse ListTask(ctx, WorkspaceSid, optional) +> ListTaskResponse ListTask(ctx, WorkspaceSid, optional) @@ -1728,7 +1728,7 @@ Name | Type | Description | Notes ### Return type -[**TaskrouterV1WorkspaceTaskReadResponse**](taskrouter_v1_workspace_taskReadResponse.md) +[**ListTaskResponse**](ListTaskResponse.md) ### Authorization @@ -1746,7 +1746,7 @@ Name | Type | Description | Notes ## ListTaskChannel -> TaskrouterV1WorkspaceTaskChannelReadResponse ListTaskChannel(ctx, WorkspaceSid, optional) +> ListTaskChannelResponse ListTaskChannel(ctx, WorkspaceSid, optional) @@ -1771,7 +1771,7 @@ Name | Type | Description | Notes ### Return type -[**TaskrouterV1WorkspaceTaskChannelReadResponse**](taskrouter_v1_workspace_task_channelReadResponse.md) +[**ListTaskChannelResponse**](ListTaskChannelResponse.md) ### Authorization @@ -1789,7 +1789,7 @@ Name | Type | Description | Notes ## ListTaskQueue -> TaskrouterV1WorkspaceTaskQueueReadResponse ListTaskQueue(ctx, WorkspaceSid, optional) +> ListTaskQueueResponse ListTaskQueue(ctx, WorkspaceSid, optional) @@ -1817,7 +1817,7 @@ Name | Type | Description | Notes ### Return type -[**TaskrouterV1WorkspaceTaskQueueReadResponse**](taskrouter_v1_workspace_task_queueReadResponse.md) +[**ListTaskQueueResponse**](ListTaskQueueResponse.md) ### Authorization @@ -1835,7 +1835,7 @@ Name | Type | Description | Notes ## ListTaskQueuesStatistics -> TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse ListTaskQueuesStatistics(ctx, WorkspaceSid, optional) +> ListTaskQueuesStatisticsResponse ListTaskQueuesStatistics(ctx, WorkspaceSid, optional) @@ -1866,7 +1866,7 @@ Name | Type | Description | Notes ### Return type -[**TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse**](taskrouter_v1_workspace_task_queue_task_queues_statisticsReadResponse.md) +[**ListTaskQueuesStatisticsResponse**](ListTaskQueuesStatisticsResponse.md) ### Authorization @@ -1884,7 +1884,7 @@ Name | Type | Description | Notes ## ListTaskReservation -> TaskrouterV1WorkspaceTaskTaskReservationReadResponse ListTaskReservation(ctx, WorkspaceSid, TaskSid, optional) +> ListTaskReservationResponse ListTaskReservation(ctx, WorkspaceSid, TaskSid, optional) @@ -1912,7 +1912,7 @@ Name | Type | Description | Notes ### Return type -[**TaskrouterV1WorkspaceTaskTaskReservationReadResponse**](taskrouter_v1_workspace_task_task_reservationReadResponse.md) +[**ListTaskReservationResponse**](ListTaskReservationResponse.md) ### Authorization @@ -1930,7 +1930,7 @@ Name | Type | Description | Notes ## ListWorker -> TaskrouterV1WorkspaceWorkerReadResponse ListWorker(ctx, WorkspaceSid, optional) +> ListWorkerResponse ListWorker(ctx, WorkspaceSid, optional) @@ -1962,7 +1962,7 @@ Name | Type | Description | Notes ### Return type -[**TaskrouterV1WorkspaceWorkerReadResponse**](taskrouter_v1_workspace_workerReadResponse.md) +[**ListWorkerResponse**](ListWorkerResponse.md) ### Authorization @@ -1980,7 +1980,7 @@ Name | Type | Description | Notes ## ListWorkerChannel -> TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse ListWorkerChannel(ctx, WorkspaceSid, WorkerSid, optional) +> ListWorkerChannelResponse ListWorkerChannel(ctx, WorkspaceSid, WorkerSid, optional) @@ -2007,7 +2007,7 @@ Name | Type | Description | Notes ### Return type -[**TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse**](taskrouter_v1_workspace_worker_worker_channelReadResponse.md) +[**ListWorkerChannelResponse**](ListWorkerChannelResponse.md) ### Authorization @@ -2025,7 +2025,7 @@ Name | Type | Description | Notes ## ListWorkerReservation -> TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse ListWorkerReservation(ctx, WorkspaceSid, WorkerSid, optional) +> ListWorkerReservationResponse ListWorkerReservation(ctx, WorkspaceSid, WorkerSid, optional) @@ -2053,7 +2053,7 @@ Name | Type | Description | Notes ### Return type -[**TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse**](taskrouter_v1_workspace_worker_worker_reservationReadResponse.md) +[**ListWorkerReservationResponse**](ListWorkerReservationResponse.md) ### Authorization @@ -2071,7 +2071,7 @@ Name | Type | Description | Notes ## ListWorkflow -> TaskrouterV1WorkspaceWorkflowReadResponse ListWorkflow(ctx, WorkspaceSid, optional) +> ListWorkflowResponse ListWorkflow(ctx, WorkspaceSid, optional) @@ -2097,7 +2097,7 @@ Name | Type | Description | Notes ### Return type -[**TaskrouterV1WorkspaceWorkflowReadResponse**](taskrouter_v1_workspace_workflowReadResponse.md) +[**ListWorkflowResponse**](ListWorkflowResponse.md) ### Authorization @@ -2115,7 +2115,7 @@ Name | Type | Description | Notes ## ListWorkspace -> TaskrouterV1WorkspaceReadResponse ListWorkspace(ctx, optional) +> ListWorkspaceResponse ListWorkspace(ctx, optional) @@ -2139,7 +2139,7 @@ Name | Type | Description | Notes ### Return type -[**TaskrouterV1WorkspaceReadResponse**](taskrouter_v1_workspaceReadResponse.md) +[**ListWorkspaceResponse**](ListWorkspaceResponse.md) ### Authorization diff --git a/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceActivityReadResponse.md b/rest/taskrouter/v1/docs/ListActivityResponse.md similarity index 70% rename from rest/taskrouter/v1/docs/TaskrouterV1WorkspaceActivityReadResponse.md rename to rest/taskrouter/v1/docs/ListActivityResponse.md index e7a8e5d55..60af47137 100644 --- a/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceActivityReadResponse.md +++ b/rest/taskrouter/v1/docs/ListActivityResponse.md @@ -1,11 +1,11 @@ -# TaskrouterV1WorkspaceActivityReadResponse +# ListActivityResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Activities** | [**[]TaskrouterV1WorkspaceActivity**](taskrouter.v1.workspace.activity.md) | | [optional] -**Meta** | [**TaskrouterV1WorkspaceReadResponseMeta**](taskrouter_v1_workspaceReadResponse_meta.md) | | [optional] +**Meta** | [**ListWorkspaceResponseMeta**](ListWorkspaceResponse_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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceEventReadResponse.md b/rest/taskrouter/v1/docs/ListEventResponse.md similarity index 70% rename from rest/taskrouter/v1/docs/TaskrouterV1WorkspaceEventReadResponse.md rename to rest/taskrouter/v1/docs/ListEventResponse.md index 74c9b7966..3656ceb6d 100644 --- a/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceEventReadResponse.md +++ b/rest/taskrouter/v1/docs/ListEventResponse.md @@ -1,11 +1,11 @@ -# TaskrouterV1WorkspaceEventReadResponse +# ListEventResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Events** | [**[]TaskrouterV1WorkspaceEvent**](taskrouter.v1.workspace.event.md) | | [optional] -**Meta** | [**TaskrouterV1WorkspaceReadResponseMeta**](taskrouter_v1_workspaceReadResponse_meta.md) | | [optional] +**Meta** | [**ListWorkspaceResponseMeta**](ListWorkspaceResponse_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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskChannelReadResponse.md b/rest/taskrouter/v1/docs/ListTaskChannelResponse.md similarity index 70% rename from rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskChannelReadResponse.md rename to rest/taskrouter/v1/docs/ListTaskChannelResponse.md index 50e36f421..d2ac76963 100644 --- a/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskChannelReadResponse.md +++ b/rest/taskrouter/v1/docs/ListTaskChannelResponse.md @@ -1,11 +1,11 @@ -# TaskrouterV1WorkspaceTaskChannelReadResponse +# ListTaskChannelResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Channels** | [**[]TaskrouterV1WorkspaceTaskChannel**](taskrouter.v1.workspace.task_channel.md) | | [optional] -**Meta** | [**TaskrouterV1WorkspaceReadResponseMeta**](taskrouter_v1_workspaceReadResponse_meta.md) | | [optional] +**Meta** | [**ListWorkspaceResponseMeta**](ListWorkspaceResponse_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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskQueueReadResponse.md b/rest/taskrouter/v1/docs/ListTaskQueueResponse.md similarity index 70% rename from rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskQueueReadResponse.md rename to rest/taskrouter/v1/docs/ListTaskQueueResponse.md index 9f1335eda..6ec6111ea 100644 --- a/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskQueueReadResponse.md +++ b/rest/taskrouter/v1/docs/ListTaskQueueResponse.md @@ -1,10 +1,10 @@ -# TaskrouterV1WorkspaceTaskQueueReadResponse +# ListTaskQueueResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**TaskrouterV1WorkspaceReadResponseMeta**](taskrouter_v1_workspaceReadResponse_meta.md) | | [optional] +**Meta** | [**ListWorkspaceResponseMeta**](ListWorkspaceResponse_meta.md) | | [optional] **TaskQueues** | [**[]TaskrouterV1WorkspaceTaskQueue**](taskrouter.v1.workspace.task_queue.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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse.md b/rest/taskrouter/v1/docs/ListTaskQueuesStatisticsResponse.md similarity index 70% rename from rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse.md rename to rest/taskrouter/v1/docs/ListTaskQueuesStatisticsResponse.md index 7abfdb9b4..6861016b8 100644 --- a/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse.md +++ b/rest/taskrouter/v1/docs/ListTaskQueuesStatisticsResponse.md @@ -1,10 +1,10 @@ -# TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse +# ListTaskQueuesStatisticsResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**TaskrouterV1WorkspaceReadResponseMeta**](taskrouter_v1_workspaceReadResponse_meta.md) | | [optional] +**Meta** | [**ListWorkspaceResponseMeta**](ListWorkspaceResponse_meta.md) | | [optional] **TaskQueuesStatistics** | [**[]TaskrouterV1WorkspaceTaskQueueTaskQueuesStatistics**](taskrouter.v1.workspace.task_queue.task_queues_statistics.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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskTaskReservationReadResponse.md b/rest/taskrouter/v1/docs/ListTaskReservationResponse.md similarity index 70% rename from rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskTaskReservationReadResponse.md rename to rest/taskrouter/v1/docs/ListTaskReservationResponse.md index 4374e05e5..50413b6e0 100644 --- a/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskTaskReservationReadResponse.md +++ b/rest/taskrouter/v1/docs/ListTaskReservationResponse.md @@ -1,10 +1,10 @@ -# TaskrouterV1WorkspaceTaskTaskReservationReadResponse +# ListTaskReservationResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**TaskrouterV1WorkspaceReadResponseMeta**](taskrouter_v1_workspaceReadResponse_meta.md) | | [optional] +**Meta** | [**ListWorkspaceResponseMeta**](ListWorkspaceResponse_meta.md) | | [optional] **Reservations** | [**[]TaskrouterV1WorkspaceTaskTaskReservation**](taskrouter.v1.workspace.task.task_reservation.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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskReadResponse.md b/rest/taskrouter/v1/docs/ListTaskResponse.md similarity index 70% rename from rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskReadResponse.md rename to rest/taskrouter/v1/docs/ListTaskResponse.md index 256d40d42..c22bc5a53 100644 --- a/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceTaskReadResponse.md +++ b/rest/taskrouter/v1/docs/ListTaskResponse.md @@ -1,10 +1,10 @@ -# TaskrouterV1WorkspaceTaskReadResponse +# ListTaskResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**TaskrouterV1WorkspaceReadResponseMeta**](taskrouter_v1_workspaceReadResponse_meta.md) | | [optional] +**Meta** | [**ListWorkspaceResponseMeta**](ListWorkspaceResponse_meta.md) | | [optional] **Tasks** | [**[]TaskrouterV1WorkspaceTask**](taskrouter.v1.workspace.task.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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse.md b/rest/taskrouter/v1/docs/ListWorkerChannelResponse.md similarity index 70% rename from rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse.md rename to rest/taskrouter/v1/docs/ListWorkerChannelResponse.md index 8917e045c..97347db8a 100644 --- a/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse.md +++ b/rest/taskrouter/v1/docs/ListWorkerChannelResponse.md @@ -1,11 +1,11 @@ -# TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse +# ListWorkerChannelResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Channels** | [**[]TaskrouterV1WorkspaceWorkerWorkerChannel**](taskrouter.v1.workspace.worker.worker_channel.md) | | [optional] -**Meta** | [**TaskrouterV1WorkspaceReadResponseMeta**](taskrouter_v1_workspaceReadResponse_meta.md) | | [optional] +**Meta** | [**ListWorkspaceResponseMeta**](ListWorkspaceResponse_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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse.md b/rest/taskrouter/v1/docs/ListWorkerReservationResponse.md similarity index 70% rename from rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse.md rename to rest/taskrouter/v1/docs/ListWorkerReservationResponse.md index 325b9569f..5e20df80f 100644 --- a/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse.md +++ b/rest/taskrouter/v1/docs/ListWorkerReservationResponse.md @@ -1,10 +1,10 @@ -# TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse +# ListWorkerReservationResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**TaskrouterV1WorkspaceReadResponseMeta**](taskrouter_v1_workspaceReadResponse_meta.md) | | [optional] +**Meta** | [**ListWorkspaceResponseMeta**](ListWorkspaceResponse_meta.md) | | [optional] **Reservations** | [**[]TaskrouterV1WorkspaceWorkerWorkerReservation**](taskrouter.v1.workspace.worker.worker_reservation.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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerReadResponse.md b/rest/taskrouter/v1/docs/ListWorkerResponse.md similarity index 70% rename from rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerReadResponse.md rename to rest/taskrouter/v1/docs/ListWorkerResponse.md index adbb156d3..128f9808a 100644 --- a/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkerReadResponse.md +++ b/rest/taskrouter/v1/docs/ListWorkerResponse.md @@ -1,10 +1,10 @@ -# TaskrouterV1WorkspaceWorkerReadResponse +# ListWorkerResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**TaskrouterV1WorkspaceReadResponseMeta**](taskrouter_v1_workspaceReadResponse_meta.md) | | [optional] +**Meta** | [**ListWorkspaceResponseMeta**](ListWorkspaceResponse_meta.md) | | [optional] **Workers** | [**[]TaskrouterV1WorkspaceWorker**](taskrouter.v1.workspace.worker.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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkflowReadResponse.md b/rest/taskrouter/v1/docs/ListWorkflowResponse.md similarity index 70% rename from rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkflowReadResponse.md rename to rest/taskrouter/v1/docs/ListWorkflowResponse.md index 386482b3a..17838a642 100644 --- a/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceWorkflowReadResponse.md +++ b/rest/taskrouter/v1/docs/ListWorkflowResponse.md @@ -1,10 +1,10 @@ -# TaskrouterV1WorkspaceWorkflowReadResponse +# ListWorkflowResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**TaskrouterV1WorkspaceReadResponseMeta**](taskrouter_v1_workspaceReadResponse_meta.md) | | [optional] +**Meta** | [**ListWorkspaceResponseMeta**](ListWorkspaceResponse_meta.md) | | [optional] **Workflows** | [**[]TaskrouterV1WorkspaceWorkflow**](taskrouter.v1.workspace.workflow.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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceReadResponse.md b/rest/taskrouter/v1/docs/ListWorkspaceResponse.md similarity index 70% rename from rest/taskrouter/v1/docs/TaskrouterV1WorkspaceReadResponse.md rename to rest/taskrouter/v1/docs/ListWorkspaceResponse.md index 8b3da315c..ddd8368f0 100644 --- a/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceReadResponse.md +++ b/rest/taskrouter/v1/docs/ListWorkspaceResponse.md @@ -1,10 +1,10 @@ -# TaskrouterV1WorkspaceReadResponse +# ListWorkspaceResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**TaskrouterV1WorkspaceReadResponseMeta**](taskrouter_v1_workspaceReadResponse_meta.md) | | [optional] +**Meta** | [**ListWorkspaceResponseMeta**](ListWorkspaceResponse_meta.md) | | [optional] **Workspaces** | [**[]TaskrouterV1Workspace**](taskrouter.v1.workspace.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/rest/taskrouter/v1/docs/ListWorkspaceResponseMeta.md b/rest/taskrouter/v1/docs/ListWorkspaceResponseMeta.md new file mode 100644 index 000000000..783eb99b0 --- /dev/null +++ b/rest/taskrouter/v1/docs/ListWorkspaceResponseMeta.md @@ -0,0 +1,17 @@ +# ListWorkspaceResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceReadResponseMeta.md b/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceReadResponseMeta.md deleted file mode 100644 index f1ee61433..000000000 --- a/rest/taskrouter/v1/docs/TaskrouterV1WorkspaceReadResponseMeta.md +++ /dev/null @@ -1,17 +0,0 @@ -# TaskrouterV1WorkspaceReadResponseMeta - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FirstPageUrl** | **string** | | [optional] -**Key** | **string** | | [optional] -**NextPageUrl** | **string** | | [optional] -**Page** | **int32** | | [optional] -**PageSize** | **int32** | | [optional] -**PreviousPageUrl** | **string** | | [optional] -**Url** | **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/rest/taskrouter/v1/model_create_activity_request.go b/rest/taskrouter/v1/model_create_activity_request.go index f4d0f6af1..f05451283 100644 --- a/rest/taskrouter/v1/model_create_activity_request.go +++ b/rest/taskrouter/v1/model_create_activity_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_create_task_channel_request.go b/rest/taskrouter/v1/model_create_task_channel_request.go index 514840b87..36f803ef3 100644 --- a/rest/taskrouter/v1/model_create_task_channel_request.go +++ b/rest/taskrouter/v1/model_create_task_channel_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_create_task_queue_request.go b/rest/taskrouter/v1/model_create_task_queue_request.go index 1ddfba2bc..2afc120ff 100644 --- a/rest/taskrouter/v1/model_create_task_queue_request.go +++ b/rest/taskrouter/v1/model_create_task_queue_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_create_task_request.go b/rest/taskrouter/v1/model_create_task_request.go index fbd323b31..0cedfc05b 100644 --- a/rest/taskrouter/v1/model_create_task_request.go +++ b/rest/taskrouter/v1/model_create_task_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -17,7 +17,7 @@ type CreateTaskRequest struct { Priority int32 `json:"Priority,omitempty"` // When MultiTasking is enabled, specify the TaskChannel by passing either its `unique_name` or `sid`. Default value is `default`. TaskChannel string `json:"TaskChannel,omitempty"` - // The amount of time in seconds the new task is allowed to live. Can be up to a maximum of 2 weeks (1,209,600 seconds). The default value is 24 hours (86,400 seconds). On timeout, the `task.canceled` event will fire with description `Task TTL Exceeded`. + // The amount of time in seconds the new task can live before being assigned. Can be up to a maximum of 2 weeks (1,209,600 seconds). The default value is 24 hours (86,400 seconds). On timeout, the `task.canceled` event will fire with description `Task TTL Exceeded`. Timeout int32 `json:"Timeout,omitempty"` // The SID of the Workflow that you would like to handle routing for the new Task. If there is only one Workflow defined for the Workspace that you are posting the new task to, this parameter is optional. WorkflowSid string `json:"WorkflowSid,omitempty"` diff --git a/rest/taskrouter/v1/model_create_worker_request.go b/rest/taskrouter/v1/model_create_worker_request.go index 7d29764e7..79b54cfc7 100644 --- a/rest/taskrouter/v1/model_create_worker_request.go +++ b/rest/taskrouter/v1/model_create_worker_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_create_workflow_request.go b/rest/taskrouter/v1/model_create_workflow_request.go index 2f54ae393..28e11ac4d 100644 --- a/rest/taskrouter/v1/model_create_workflow_request.go +++ b/rest/taskrouter/v1/model_create_workflow_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_create_workspace_request.go b/rest/taskrouter/v1/model_create_workspace_request.go index 9f6a3024e..df53a4b54 100644 --- a/rest/taskrouter/v1/model_create_workspace_request.go +++ b/rest/taskrouter/v1/model_create_workspace_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_activity_read_response.go b/rest/taskrouter/v1/model_list_activity_response.go similarity index 52% rename from rest/taskrouter/v1/model_taskrouter_v1_workspace_activity_read_response.go rename to rest/taskrouter/v1/model_list_activity_response.go index 2cf2741bc..85cb27540 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_activity_read_response.go +++ b/rest/taskrouter/v1/model_list_activity_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// TaskrouterV1WorkspaceActivityReadResponse struct for TaskrouterV1WorkspaceActivityReadResponse -type TaskrouterV1WorkspaceActivityReadResponse struct { +// ListActivityResponse struct for ListActivityResponse +type ListActivityResponse struct { Activities []TaskrouterV1WorkspaceActivity `json:"Activities,omitempty"` - Meta TaskrouterV1WorkspaceReadResponseMeta `json:"Meta,omitempty"` + Meta ListWorkspaceResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_event_read_response.go b/rest/taskrouter/v1/model_list_event_response.go similarity index 52% rename from rest/taskrouter/v1/model_taskrouter_v1_workspace_event_read_response.go rename to rest/taskrouter/v1/model_list_event_response.go index 00f04c8b9..c8abbc62a 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_event_read_response.go +++ b/rest/taskrouter/v1/model_list_event_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// TaskrouterV1WorkspaceEventReadResponse struct for TaskrouterV1WorkspaceEventReadResponse -type TaskrouterV1WorkspaceEventReadResponse struct { +// ListEventResponse struct for ListEventResponse +type ListEventResponse struct { Events []TaskrouterV1WorkspaceEvent `json:"Events,omitempty"` - Meta TaskrouterV1WorkspaceReadResponseMeta `json:"Meta,omitempty"` + Meta ListWorkspaceResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_channel_read_response.go b/rest/taskrouter/v1/model_list_task_channel_response.go similarity index 51% rename from rest/taskrouter/v1/model_taskrouter_v1_workspace_task_channel_read_response.go rename to rest/taskrouter/v1/model_list_task_channel_response.go index 401f03ede..6fdd9d067 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_channel_read_response.go +++ b/rest/taskrouter/v1/model_list_task_channel_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// TaskrouterV1WorkspaceTaskChannelReadResponse struct for TaskrouterV1WorkspaceTaskChannelReadResponse -type TaskrouterV1WorkspaceTaskChannelReadResponse struct { +// ListTaskChannelResponse struct for ListTaskChannelResponse +type ListTaskChannelResponse struct { Channels []TaskrouterV1WorkspaceTaskChannel `json:"Channels,omitempty"` - Meta TaskrouterV1WorkspaceReadResponseMeta `json:"Meta,omitempty"` + Meta ListWorkspaceResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_read_response.go b/rest/taskrouter/v1/model_list_task_queue_response.go similarity index 51% rename from rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_read_response.go rename to rest/taskrouter/v1/model_list_task_queue_response.go index c70b56a83..677585bb8 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_read_response.go +++ b/rest/taskrouter/v1/model_list_task_queue_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// TaskrouterV1WorkspaceTaskQueueReadResponse struct for TaskrouterV1WorkspaceTaskQueueReadResponse -type TaskrouterV1WorkspaceTaskQueueReadResponse struct { - Meta TaskrouterV1WorkspaceReadResponseMeta `json:"Meta,omitempty"` +// ListTaskQueueResponse struct for ListTaskQueueResponse +type ListTaskQueueResponse struct { + Meta ListWorkspaceResponseMeta `json:"Meta,omitempty"` TaskQueues []TaskrouterV1WorkspaceTaskQueue `json:"TaskQueues,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queues_statistics_read_response.go b/rest/taskrouter/v1/model_list_task_queues_statistics_response.go similarity index 50% rename from rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queues_statistics_read_response.go rename to rest/taskrouter/v1/model_list_task_queues_statistics_response.go index 867d55098..b4c65f5fb 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queues_statistics_read_response.go +++ b/rest/taskrouter/v1/model_list_task_queues_statistics_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse struct for TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse -type TaskrouterV1WorkspaceTaskQueueTaskQueuesStatisticsReadResponse struct { - Meta TaskrouterV1WorkspaceReadResponseMeta `json:"Meta,omitempty"` +// ListTaskQueuesStatisticsResponse struct for ListTaskQueuesStatisticsResponse +type ListTaskQueuesStatisticsResponse struct { + Meta ListWorkspaceResponseMeta `json:"Meta,omitempty"` TaskQueuesStatistics []TaskrouterV1WorkspaceTaskQueueTaskQueuesStatistics `json:"TaskQueuesStatistics,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_task_reservation_read_response.go b/rest/taskrouter/v1/model_list_task_reservation_response.go similarity index 50% rename from rest/taskrouter/v1/model_taskrouter_v1_workspace_task_task_reservation_read_response.go rename to rest/taskrouter/v1/model_list_task_reservation_response.go index 34a3facb9..76a1cdc6b 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_task_reservation_read_response.go +++ b/rest/taskrouter/v1/model_list_task_reservation_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// TaskrouterV1WorkspaceTaskTaskReservationReadResponse struct for TaskrouterV1WorkspaceTaskTaskReservationReadResponse -type TaskrouterV1WorkspaceTaskTaskReservationReadResponse struct { - Meta TaskrouterV1WorkspaceReadResponseMeta `json:"Meta,omitempty"` +// ListTaskReservationResponse struct for ListTaskReservationResponse +type ListTaskReservationResponse struct { + Meta ListWorkspaceResponseMeta `json:"Meta,omitempty"` Reservations []TaskrouterV1WorkspaceTaskTaskReservation `json:"Reservations,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_read_response.go b/rest/taskrouter/v1/model_list_task_response.go similarity index 52% rename from rest/taskrouter/v1/model_taskrouter_v1_workspace_task_read_response.go rename to rest/taskrouter/v1/model_list_task_response.go index 49c3484ef..201e78a05 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_read_response.go +++ b/rest/taskrouter/v1/model_list_task_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// TaskrouterV1WorkspaceTaskReadResponse struct for TaskrouterV1WorkspaceTaskReadResponse -type TaskrouterV1WorkspaceTaskReadResponse struct { - Meta TaskrouterV1WorkspaceReadResponseMeta `json:"Meta,omitempty"` +// ListTaskResponse struct for ListTaskResponse +type ListTaskResponse struct { + Meta ListWorkspaceResponseMeta `json:"Meta,omitempty"` Tasks []TaskrouterV1WorkspaceTask `json:"Tasks,omitempty"` } diff --git a/rest/taskrouter/v1/model_list_worker_channel_response.go b/rest/taskrouter/v1/model_list_worker_channel_response.go new file mode 100644 index 000000000..2ffffc3f3 --- /dev/null +++ b/rest/taskrouter/v1/model_list_worker_channel_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListWorkerChannelResponse struct for ListWorkerChannelResponse +type ListWorkerChannelResponse struct { + Channels []TaskrouterV1WorkspaceWorkerWorkerChannel `json:"Channels,omitempty"` + Meta ListWorkspaceResponseMeta `json:"Meta,omitempty"` +} diff --git a/rest/taskrouter/v1/model_list_worker_reservation_response.go b/rest/taskrouter/v1/model_list_worker_reservation_response.go new file mode 100644 index 000000000..5d4146c93 --- /dev/null +++ b/rest/taskrouter/v1/model_list_worker_reservation_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Taskrouter + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListWorkerReservationResponse struct for ListWorkerReservationResponse +type ListWorkerReservationResponse struct { + Meta ListWorkspaceResponseMeta `json:"Meta,omitempty"` + Reservations []TaskrouterV1WorkspaceWorkerWorkerReservation `json:"Reservations,omitempty"` +} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_read_response.go b/rest/taskrouter/v1/model_list_worker_response.go similarity index 52% rename from rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_read_response.go rename to rest/taskrouter/v1/model_list_worker_response.go index 32060b2ca..f9561e341 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_read_response.go +++ b/rest/taskrouter/v1/model_list_worker_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// TaskrouterV1WorkspaceWorkerReadResponse struct for TaskrouterV1WorkspaceWorkerReadResponse -type TaskrouterV1WorkspaceWorkerReadResponse struct { - Meta TaskrouterV1WorkspaceReadResponseMeta `json:"Meta,omitempty"` +// ListWorkerResponse struct for ListWorkerResponse +type ListWorkerResponse struct { + Meta ListWorkspaceResponseMeta `json:"Meta,omitempty"` Workers []TaskrouterV1WorkspaceWorker `json:"Workers,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_read_response.go b/rest/taskrouter/v1/model_list_workflow_response.go similarity index 51% rename from rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_read_response.go rename to rest/taskrouter/v1/model_list_workflow_response.go index 70022ff13..5497e37c7 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_read_response.go +++ b/rest/taskrouter/v1/model_list_workflow_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// TaskrouterV1WorkspaceWorkflowReadResponse struct for TaskrouterV1WorkspaceWorkflowReadResponse -type TaskrouterV1WorkspaceWorkflowReadResponse struct { - Meta TaskrouterV1WorkspaceReadResponseMeta `json:"Meta,omitempty"` +// ListWorkflowResponse struct for ListWorkflowResponse +type ListWorkflowResponse struct { + Meta ListWorkspaceResponseMeta `json:"Meta,omitempty"` Workflows []TaskrouterV1WorkspaceWorkflow `json:"Workflows,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_read_response.go b/rest/taskrouter/v1/model_list_workspace_response.go similarity index 53% rename from rest/taskrouter/v1/model_taskrouter_v1_workspace_read_response.go rename to rest/taskrouter/v1/model_list_workspace_response.go index c4aa1b329..64cbee94c 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_read_response.go +++ b/rest/taskrouter/v1/model_list_workspace_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// TaskrouterV1WorkspaceReadResponse struct for TaskrouterV1WorkspaceReadResponse -type TaskrouterV1WorkspaceReadResponse struct { - Meta TaskrouterV1WorkspaceReadResponseMeta `json:"Meta,omitempty"` +// ListWorkspaceResponse struct for ListWorkspaceResponse +type ListWorkspaceResponse struct { + Meta ListWorkspaceResponseMeta `json:"Meta,omitempty"` Workspaces []TaskrouterV1Workspace `json:"Workspaces,omitempty"` } diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_read_response_meta.go b/rest/taskrouter/v1/model_list_workspace_response_meta.go similarity index 75% rename from rest/taskrouter/v1/model_taskrouter_v1_workspace_read_response_meta.go rename to rest/taskrouter/v1/model_list_workspace_response_meta.go index 3ae92bf35..e5d428d6d 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_read_response_meta.go +++ b/rest/taskrouter/v1/model_list_workspace_response_meta.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// TaskrouterV1WorkspaceReadResponseMeta struct for TaskrouterV1WorkspaceReadResponseMeta -type TaskrouterV1WorkspaceReadResponseMeta struct { +// ListWorkspaceResponseMeta struct for ListWorkspaceResponseMeta +type ListWorkspaceResponseMeta struct { FirstPageUrl string `json:"FirstPageUrl,omitempty"` Key string `json:"Key,omitempty"` NextPageUrl string `json:"NextPageUrl,omitempty"` diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace.go index 8d27d1735..c33995f6f 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_activity.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_activity.go index 4c00a4f23..7b1c5e044 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_activity.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_activity.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_event.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_event.go index 8da7f3be7..3836c1df8 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_event.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_event.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task.go index 87732e3f2..bc8e246b0 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_channel.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_channel.go index 97bb0229e..710c9bf8b 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_channel.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_channel.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue.go index a7296de41..7b6074840 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queue_cumulative_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queue_cumulative_statistics.go index bd1fcf2c4..ce61c8dff 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queue_cumulative_statistics.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queue_cumulative_statistics.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queue_real_time_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queue_real_time_statistics.go index bd919a939..f4bdaae66 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queue_real_time_statistics.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queue_real_time_statistics.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queue_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queue_statistics.go index 835c516fa..4217b7224 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queue_statistics.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queue_statistics.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queues_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queues_statistics.go index 031cf75ac..06ab2001c 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queues_statistics.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_queue_task_queues_statistics.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_task_reservation.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_task_reservation.go index 168b4fa33..b302a3401 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_task_reservation.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_task_task_reservation.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker.go index 9e61ff24d..d764d3266 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_channel.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_channel.go index 1a9e96cc7..661cff0af 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_channel.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_channel.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_channel_read_response.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_channel_read_response.go deleted file mode 100644 index cf285cf87..000000000 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_channel_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Taskrouter - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse struct for TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse -type TaskrouterV1WorkspaceWorkerWorkerChannelReadResponse struct { - Channels []TaskrouterV1WorkspaceWorkerWorkerChannel `json:"Channels,omitempty"` - Meta TaskrouterV1WorkspaceReadResponseMeta `json:"Meta,omitempty"` -} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_instance_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_instance_statistics.go index 6628a912a..1a1cc5116 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_instance_statistics.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_instance_statistics.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_reservation.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_reservation.go index f18bbd83b..45010db49 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_reservation.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_reservation.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_reservation_read_response.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_reservation_read_response.go deleted file mode 100644 index 3fe9521b6..000000000 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_reservation_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Taskrouter - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse struct for TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse -type TaskrouterV1WorkspaceWorkerWorkerReservationReadResponse struct { - Meta TaskrouterV1WorkspaceReadResponseMeta `json:"Meta,omitempty"` - Reservations []TaskrouterV1WorkspaceWorkerWorkerReservation `json:"Reservations,omitempty"` -} diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_statistics.go index 264324af3..76bd9c2f2 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_statistics.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_worker_statistics.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_workers_cumulative_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_workers_cumulative_statistics.go index 0db95b623..fa95ae21b 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_workers_cumulative_statistics.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_workers_cumulative_statistics.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_workers_real_time_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_workers_real_time_statistics.go index a04451702..ec3c9811c 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_workers_real_time_statistics.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_worker_workers_real_time_statistics.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow.go index 4a9f271c6..6684f39ff 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_workflow_cumulative_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_workflow_cumulative_statistics.go index e0d610302..006661ed4 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_workflow_cumulative_statistics.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_workflow_cumulative_statistics.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_workflow_real_time_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_workflow_real_time_statistics.go index a08dafdd0..d43827f81 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_workflow_real_time_statistics.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_workflow_real_time_statistics.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_workflow_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_workflow_statistics.go index 6518e098d..8d6287438 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_workflow_statistics.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workflow_workflow_statistics.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workspace_cumulative_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workspace_cumulative_statistics.go index fa5fb2ed4..94a64368d 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workspace_cumulative_statistics.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workspace_cumulative_statistics.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workspace_real_time_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workspace_real_time_statistics.go index 12b644fca..7feafd25c 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workspace_real_time_statistics.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workspace_real_time_statistics.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workspace_statistics.go b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workspace_statistics.go index 71057c717..8943361c8 100644 --- a/rest/taskrouter/v1/model_taskrouter_v1_workspace_workspace_statistics.go +++ b/rest/taskrouter/v1/model_taskrouter_v1_workspace_workspace_statistics.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_update_activity_request.go b/rest/taskrouter/v1/model_update_activity_request.go index b3ad577f6..66f477b2f 100644 --- a/rest/taskrouter/v1/model_update_activity_request.go +++ b/rest/taskrouter/v1/model_update_activity_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_update_task_channel_request.go b/rest/taskrouter/v1/model_update_task_channel_request.go index 51a966689..7b1f68702 100644 --- a/rest/taskrouter/v1/model_update_task_channel_request.go +++ b/rest/taskrouter/v1/model_update_task_channel_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_update_task_queue_request.go b/rest/taskrouter/v1/model_update_task_queue_request.go index 54aee15e5..3b671c0e1 100644 --- a/rest/taskrouter/v1/model_update_task_queue_request.go +++ b/rest/taskrouter/v1/model_update_task_queue_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_update_task_request.go b/rest/taskrouter/v1/model_update_task_request.go index c0406338d..3314b642b 100644 --- a/rest/taskrouter/v1/model_update_task_request.go +++ b/rest/taskrouter/v1/model_update_task_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_update_task_reservation_request.go b/rest/taskrouter/v1/model_update_task_reservation_request.go index 26e2edb11..22ed5c534 100644 --- a/rest/taskrouter/v1/model_update_task_reservation_request.go +++ b/rest/taskrouter/v1/model_update_task_reservation_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_update_worker_channel_request.go b/rest/taskrouter/v1/model_update_worker_channel_request.go index 9362c2441..f646c4aa5 100644 --- a/rest/taskrouter/v1/model_update_worker_channel_request.go +++ b/rest/taskrouter/v1/model_update_worker_channel_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_update_worker_request.go b/rest/taskrouter/v1/model_update_worker_request.go index 9ab0c477d..eaeb7ae6c 100644 --- a/rest/taskrouter/v1/model_update_worker_request.go +++ b/rest/taskrouter/v1/model_update_worker_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_update_worker_reservation_request.go b/rest/taskrouter/v1/model_update_worker_reservation_request.go index 038ca4d2d..73a662c1e 100644 --- a/rest/taskrouter/v1/model_update_worker_reservation_request.go +++ b/rest/taskrouter/v1/model_update_worker_reservation_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_update_workflow_request.go b/rest/taskrouter/v1/model_update_workflow_request.go index 9f35a3bec..e32c35d3c 100644 --- a/rest/taskrouter/v1/model_update_workflow_request.go +++ b/rest/taskrouter/v1/model_update_workflow_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/model_update_workspace_request.go b/rest/taskrouter/v1/model_update_workspace_request.go index a74cebafc..db1726c31 100644 --- a/rest/taskrouter/v1/model_update_workspace_request.go +++ b/rest/taskrouter/v1/model_update_workspace_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/taskrouter/v1/response.go b/rest/taskrouter/v1/response.go index a6a80b614..0d1b0b3e6 100644 --- a/rest/taskrouter/v1/response.go +++ b/rest/taskrouter/v1/response.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/trunking/v1/README.md b/rest/trunking/v1/README.md index da306fa00..6d8fba6ac 100644 --- a/rest/trunking/v1/README.md +++ b/rest/trunking/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 5.15.0 +- API version: 1.0.0 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) @@ -64,17 +64,17 @@ Class | Method | HTTP request | Description - [CreateOriginationUrlRequest](docs/CreateOriginationUrlRequest.md) - [CreatePhoneNumberRequest](docs/CreatePhoneNumberRequest.md) - [CreateTrunkRequest](docs/CreateTrunkRequest.md) + - [ListCredentialListResponse](docs/ListCredentialListResponse.md) + - [ListIpAccessControlListResponse](docs/ListIpAccessControlListResponse.md) + - [ListOriginationUrlResponse](docs/ListOriginationUrlResponse.md) + - [ListPhoneNumberResponse](docs/ListPhoneNumberResponse.md) + - [ListTrunkResponse](docs/ListTrunkResponse.md) + - [ListTrunkResponseMeta](docs/ListTrunkResponseMeta.md) - [TrunkingV1Trunk](docs/TrunkingV1Trunk.md) - [TrunkingV1TrunkCredentialList](docs/TrunkingV1TrunkCredentialList.md) - - [TrunkingV1TrunkCredentialListReadResponse](docs/TrunkingV1TrunkCredentialListReadResponse.md) - [TrunkingV1TrunkIpAccessControlList](docs/TrunkingV1TrunkIpAccessControlList.md) - - [TrunkingV1TrunkIpAccessControlListReadResponse](docs/TrunkingV1TrunkIpAccessControlListReadResponse.md) - [TrunkingV1TrunkOriginationUrl](docs/TrunkingV1TrunkOriginationUrl.md) - - [TrunkingV1TrunkOriginationUrlReadResponse](docs/TrunkingV1TrunkOriginationUrlReadResponse.md) - [TrunkingV1TrunkPhoneNumber](docs/TrunkingV1TrunkPhoneNumber.md) - - [TrunkingV1TrunkPhoneNumberReadResponse](docs/TrunkingV1TrunkPhoneNumberReadResponse.md) - - [TrunkingV1TrunkReadResponse](docs/TrunkingV1TrunkReadResponse.md) - - [TrunkingV1TrunkReadResponseMeta](docs/TrunkingV1TrunkReadResponseMeta.md) - [TrunkingV1TrunkRecording](docs/TrunkingV1TrunkRecording.md) - [UpdateOriginationUrlRequest](docs/UpdateOriginationUrlRequest.md) - [UpdateRecordingRequest](docs/UpdateRecordingRequest.md) diff --git a/rest/trunking/v1/api_default.go b/rest/trunking/v1/api_default.go index 97e04dca7..61bb928e3 100644 --- a/rest/trunking/v1/api_default.go +++ b/rest/trunking/v1/api_default.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -26,12 +26,12 @@ type DefaultApiService struct { func NewDefaultApiService(client *twilio.Client) *DefaultApiService { return &DefaultApiService { client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + baseURL: fmt.Sprintf("https://trunking.twilio.com"), } } // CreateCredentialListParams Optional parameters for the method 'CreateCredentialList' type CreateCredentialListParams struct { - CredentialListSid *string `json:"CredentialListSid,omitempty"` + CredentialListSid *string `json:"CredentialListSid,omitempty"` } /* @@ -70,7 +70,7 @@ func (c *DefaultApiService) CreateCredentialList(TrunkSid string, params *Create } // CreateIpAccessControlListParams Optional parameters for the method 'CreateIpAccessControlList' type CreateIpAccessControlListParams struct { - IpAccessControlListSid *string `json:"IpAccessControlListSid,omitempty"` + IpAccessControlListSid *string `json:"IpAccessControlListSid,omitempty"` } /* @@ -110,11 +110,11 @@ func (c *DefaultApiService) CreateIpAccessControlList(TrunkSid string, params *C } // CreateOriginationUrlParams Optional parameters for the method 'CreateOriginationUrl' type CreateOriginationUrlParams struct { - Enabled *bool `json:"Enabled,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Priority *int32 `json:"Priority,omitempty"` - SipUrl *string `json:"SipUrl,omitempty"` - Weight *int32 `json:"Weight,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Priority *int32 `json:"Priority,omitempty"` + SipUrl *string `json:"SipUrl,omitempty"` + Weight *int32 `json:"Weight,omitempty"` } /* @@ -169,7 +169,7 @@ func (c *DefaultApiService) CreateOriginationUrl(TrunkSid string, params *Create } // CreatePhoneNumberParams Optional parameters for the method 'CreatePhoneNumber' type CreatePhoneNumberParams struct { - PhoneNumberSid *string `json:"PhoneNumberSid,omitempty"` + PhoneNumberSid *string `json:"PhoneNumberSid,omitempty"` } /* @@ -208,13 +208,13 @@ func (c *DefaultApiService) CreatePhoneNumber(TrunkSid string, params *CreatePho } // CreateTrunkParams Optional parameters for the method 'CreateTrunk' type CreateTrunkParams struct { - CnamLookupEnabled *bool `json:"CnamLookupEnabled,omitempty"` - DisasterRecoveryMethod *string `json:"DisasterRecoveryMethod,omitempty"` - DisasterRecoveryUrl *string `json:"DisasterRecoveryUrl,omitempty"` - DomainName *string `json:"DomainName,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Secure *bool `json:"Secure,omitempty"` - TransferMode *string `json:"TransferMode,omitempty"` + CnamLookupEnabled *bool `json:"CnamLookupEnabled,omitempty"` + DisasterRecoveryMethod *string `json:"DisasterRecoveryMethod,omitempty"` + DisasterRecoveryUrl *string `json:"DisasterRecoveryUrl,omitempty"` + DomainName *string `json:"DomainName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Secure *bool `json:"Secure,omitempty"` + TransferMode *string `json:"TransferMode,omitempty"` } /* @@ -592,7 +592,7 @@ func (c *DefaultApiService) FetchTrunk(Sid string) (*TrunkingV1Trunk, error) { } // ListCredentialListParams Optional parameters for the method 'ListCredentialList' type ListCredentialListParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -600,9 +600,9 @@ ListCredentialList Method for ListCredentialList * @param TrunkSid The SID of the Trunk from which to read the credential lists. * @param optional nil or *ListCredentialListOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return TrunkingV1TrunkCredentialListReadResponse +@return ListCredentialListResponse */ -func (c *DefaultApiService) ListCredentialList(TrunkSid string, params *ListCredentialListParams) (*TrunkingV1TrunkCredentialListReadResponse, error) { +func (c *DefaultApiService) ListCredentialList(TrunkSid string, params *ListCredentialListParams) (*ListCredentialListResponse, error) { path := "/v1/Trunks/{TrunkSid}/CredentialLists" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) @@ -622,7 +622,7 @@ func (c *DefaultApiService) ListCredentialList(TrunkSid string, params *ListCred defer resp.Body.Close() - ps := &TrunkingV1TrunkCredentialListReadResponse{} + ps := &ListCredentialListResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -631,7 +631,7 @@ func (c *DefaultApiService) ListCredentialList(TrunkSid string, params *ListCred } // ListIpAccessControlListParams Optional parameters for the method 'ListIpAccessControlList' type ListIpAccessControlListParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -640,9 +640,9 @@ List all IP Access Control Lists for a Trunk * @param TrunkSid The SID of the Trunk from which to read the IP Access Control Lists. * @param optional nil or *ListIpAccessControlListOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return TrunkingV1TrunkIpAccessControlListReadResponse +@return ListIpAccessControlListResponse */ -func (c *DefaultApiService) ListIpAccessControlList(TrunkSid string, params *ListIpAccessControlListParams) (*TrunkingV1TrunkIpAccessControlListReadResponse, error) { +func (c *DefaultApiService) ListIpAccessControlList(TrunkSid string, params *ListIpAccessControlListParams) (*ListIpAccessControlListResponse, error) { path := "/v1/Trunks/{TrunkSid}/IpAccessControlLists" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) @@ -662,7 +662,7 @@ func (c *DefaultApiService) ListIpAccessControlList(TrunkSid string, params *Lis defer resp.Body.Close() - ps := &TrunkingV1TrunkIpAccessControlListReadResponse{} + ps := &ListIpAccessControlListResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -671,7 +671,7 @@ func (c *DefaultApiService) ListIpAccessControlList(TrunkSid string, params *Lis } // ListOriginationUrlParams Optional parameters for the method 'ListOriginationUrl' type ListOriginationUrlParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -679,9 +679,9 @@ ListOriginationUrl Method for ListOriginationUrl * @param TrunkSid The SID of the Trunk from which to read the OriginationUrl. * @param optional nil or *ListOriginationUrlOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return TrunkingV1TrunkOriginationUrlReadResponse +@return ListOriginationUrlResponse */ -func (c *DefaultApiService) ListOriginationUrl(TrunkSid string, params *ListOriginationUrlParams) (*TrunkingV1TrunkOriginationUrlReadResponse, error) { +func (c *DefaultApiService) ListOriginationUrl(TrunkSid string, params *ListOriginationUrlParams) (*ListOriginationUrlResponse, error) { path := "/v1/Trunks/{TrunkSid}/OriginationUrls" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) @@ -701,7 +701,7 @@ func (c *DefaultApiService) ListOriginationUrl(TrunkSid string, params *ListOrig defer resp.Body.Close() - ps := &TrunkingV1TrunkOriginationUrlReadResponse{} + ps := &ListOriginationUrlResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -710,7 +710,7 @@ func (c *DefaultApiService) ListOriginationUrl(TrunkSid string, params *ListOrig } // ListPhoneNumberParams Optional parameters for the method 'ListPhoneNumber' type ListPhoneNumberParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -718,9 +718,9 @@ ListPhoneNumber Method for ListPhoneNumber * @param TrunkSid The SID of the Trunk from which to read the PhoneNumber resources. * @param optional nil or *ListPhoneNumberOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return TrunkingV1TrunkPhoneNumberReadResponse +@return ListPhoneNumberResponse */ -func (c *DefaultApiService) ListPhoneNumber(TrunkSid string, params *ListPhoneNumberParams) (*TrunkingV1TrunkPhoneNumberReadResponse, error) { +func (c *DefaultApiService) ListPhoneNumber(TrunkSid string, params *ListPhoneNumberParams) (*ListPhoneNumberResponse, error) { path := "/v1/Trunks/{TrunkSid}/PhoneNumbers" path = strings.Replace(path, "{"+"TrunkSid"+"}", TrunkSid, -1) @@ -740,7 +740,7 @@ func (c *DefaultApiService) ListPhoneNumber(TrunkSid string, params *ListPhoneNu defer resp.Body.Close() - ps := &TrunkingV1TrunkPhoneNumberReadResponse{} + ps := &ListPhoneNumberResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -749,16 +749,16 @@ func (c *DefaultApiService) ListPhoneNumber(TrunkSid string, params *ListPhoneNu } // ListTrunkParams Optional parameters for the method 'ListTrunk' type ListTrunkParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* ListTrunk Method for ListTrunk * @param optional nil or *ListTrunkOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return TrunkingV1TrunkReadResponse +@return ListTrunkResponse */ -func (c *DefaultApiService) ListTrunk(params *ListTrunkParams) (*TrunkingV1TrunkReadResponse, error) { +func (c *DefaultApiService) ListTrunk(params *ListTrunkParams) (*ListTrunkResponse, error) { path := "/v1/Trunks" @@ -777,7 +777,7 @@ func (c *DefaultApiService) ListTrunk(params *ListTrunkParams) (*TrunkingV1Trunk defer resp.Body.Close() - ps := &TrunkingV1TrunkReadResponse{} + ps := &ListTrunkResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -786,11 +786,11 @@ func (c *DefaultApiService) ListTrunk(params *ListTrunkParams) (*TrunkingV1Trunk } // UpdateOriginationUrlParams Optional parameters for the method 'UpdateOriginationUrl' type UpdateOriginationUrlParams struct { - Enabled *bool `json:"Enabled,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Priority *int32 `json:"Priority,omitempty"` - SipUrl *string `json:"SipUrl,omitempty"` - Weight *int32 `json:"Weight,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Priority *int32 `json:"Priority,omitempty"` + SipUrl *string `json:"SipUrl,omitempty"` + Weight *int32 `json:"Weight,omitempty"` } /* @@ -847,8 +847,8 @@ func (c *DefaultApiService) UpdateOriginationUrl(TrunkSid string, Sid string, pa } // UpdateRecordingParams Optional parameters for the method 'UpdateRecording' type UpdateRecordingParams struct { - Mode *string `json:"Mode,omitempty"` - Trim *string `json:"Trim,omitempty"` + Mode *string `json:"Mode,omitempty"` + Trim *string `json:"Trim,omitempty"` } /* @@ -891,13 +891,13 @@ func (c *DefaultApiService) UpdateRecording(TrunkSid string, params *UpdateRecor } // UpdateTrunkParams Optional parameters for the method 'UpdateTrunk' type UpdateTrunkParams struct { - CnamLookupEnabled *bool `json:"CnamLookupEnabled,omitempty"` - DisasterRecoveryMethod *string `json:"DisasterRecoveryMethod,omitempty"` - DisasterRecoveryUrl *string `json:"DisasterRecoveryUrl,omitempty"` - DomainName *string `json:"DomainName,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Secure *bool `json:"Secure,omitempty"` - TransferMode *string `json:"TransferMode,omitempty"` + CnamLookupEnabled *bool `json:"CnamLookupEnabled,omitempty"` + DisasterRecoveryMethod *string `json:"DisasterRecoveryMethod,omitempty"` + DisasterRecoveryUrl *string `json:"DisasterRecoveryUrl,omitempty"` + DomainName *string `json:"DomainName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Secure *bool `json:"Secure,omitempty"` + TransferMode *string `json:"TransferMode,omitempty"` } /* diff --git a/rest/trunking/v1/docs/DefaultApi.md b/rest/trunking/v1/docs/DefaultApi.md index 0a62e40c7..04492fd45 100644 --- a/rest/trunking/v1/docs/DefaultApi.md +++ b/rest/trunking/v1/docs/DefaultApi.md @@ -620,7 +620,7 @@ Name | Type | Description | Notes ## ListCredentialList -> TrunkingV1TrunkCredentialListReadResponse ListCredentialList(ctx, TrunkSid, optional) +> ListCredentialListResponse ListCredentialList(ctx, TrunkSid, optional) @@ -645,7 +645,7 @@ Name | Type | Description | Notes ### Return type -[**TrunkingV1TrunkCredentialListReadResponse**](trunking_v1_trunk_credential_listReadResponse.md) +[**ListCredentialListResponse**](ListCredentialListResponse.md) ### Authorization @@ -663,7 +663,7 @@ Name | Type | Description | Notes ## ListIpAccessControlList -> TrunkingV1TrunkIpAccessControlListReadResponse ListIpAccessControlList(ctx, TrunkSid, optional) +> ListIpAccessControlListResponse ListIpAccessControlList(ctx, TrunkSid, optional) @@ -690,7 +690,7 @@ Name | Type | Description | Notes ### Return type -[**TrunkingV1TrunkIpAccessControlListReadResponse**](trunking_v1_trunk_ip_access_control_listReadResponse.md) +[**ListIpAccessControlListResponse**](ListIpAccessControlListResponse.md) ### Authorization @@ -708,7 +708,7 @@ Name | Type | Description | Notes ## ListOriginationUrl -> TrunkingV1TrunkOriginationUrlReadResponse ListOriginationUrl(ctx, TrunkSid, optional) +> ListOriginationUrlResponse ListOriginationUrl(ctx, TrunkSid, optional) @@ -733,7 +733,7 @@ Name | Type | Description | Notes ### Return type -[**TrunkingV1TrunkOriginationUrlReadResponse**](trunking_v1_trunk_origination_urlReadResponse.md) +[**ListOriginationUrlResponse**](ListOriginationUrlResponse.md) ### Authorization @@ -751,7 +751,7 @@ Name | Type | Description | Notes ## ListPhoneNumber -> TrunkingV1TrunkPhoneNumberReadResponse ListPhoneNumber(ctx, TrunkSid, optional) +> ListPhoneNumberResponse ListPhoneNumber(ctx, TrunkSid, optional) @@ -776,7 +776,7 @@ Name | Type | Description | Notes ### Return type -[**TrunkingV1TrunkPhoneNumberReadResponse**](trunking_v1_trunk_phone_numberReadResponse.md) +[**ListPhoneNumberResponse**](ListPhoneNumberResponse.md) ### Authorization @@ -794,7 +794,7 @@ Name | Type | Description | Notes ## ListTrunk -> TrunkingV1TrunkReadResponse ListTrunk(ctx, optional) +> ListTrunkResponse ListTrunk(ctx, optional) @@ -817,7 +817,7 @@ Name | Type | Description | Notes ### Return type -[**TrunkingV1TrunkReadResponse**](trunking_v1_trunkReadResponse.md) +[**ListTrunkResponse**](ListTrunkResponse.md) ### Authorization diff --git a/rest/trunking/v1/docs/TrunkingV1TrunkCredentialListReadResponse.md b/rest/trunking/v1/docs/ListCredentialListResponse.md similarity index 72% rename from rest/trunking/v1/docs/TrunkingV1TrunkCredentialListReadResponse.md rename to rest/trunking/v1/docs/ListCredentialListResponse.md index c87253178..977fe2f18 100644 --- a/rest/trunking/v1/docs/TrunkingV1TrunkCredentialListReadResponse.md +++ b/rest/trunking/v1/docs/ListCredentialListResponse.md @@ -1,11 +1,11 @@ -# TrunkingV1TrunkCredentialListReadResponse +# ListCredentialListResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **CredentialLists** | [**[]TrunkingV1TrunkCredentialList**](trunking.v1.trunk.credential_list.md) | | [optional] -**Meta** | [**TrunkingV1TrunkReadResponseMeta**](trunking_v1_trunkReadResponse_meta.md) | | [optional] +**Meta** | [**ListTrunkResponseMeta**](ListTrunkResponse_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/rest/trunking/v1/docs/TrunkingV1TrunkIpAccessControlListReadResponse.md b/rest/trunking/v1/docs/ListIpAccessControlListResponse.md similarity index 72% rename from rest/trunking/v1/docs/TrunkingV1TrunkIpAccessControlListReadResponse.md rename to rest/trunking/v1/docs/ListIpAccessControlListResponse.md index 706ed4d8d..f1ec94c0a 100644 --- a/rest/trunking/v1/docs/TrunkingV1TrunkIpAccessControlListReadResponse.md +++ b/rest/trunking/v1/docs/ListIpAccessControlListResponse.md @@ -1,11 +1,11 @@ -# TrunkingV1TrunkIpAccessControlListReadResponse +# ListIpAccessControlListResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **IpAccessControlLists** | [**[]TrunkingV1TrunkIpAccessControlList**](trunking.v1.trunk.ip_access_control_list.md) | | [optional] -**Meta** | [**TrunkingV1TrunkReadResponseMeta**](trunking_v1_trunkReadResponse_meta.md) | | [optional] +**Meta** | [**ListTrunkResponseMeta**](ListTrunkResponse_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/rest/trunking/v1/docs/TrunkingV1TrunkOriginationUrlReadResponse.md b/rest/trunking/v1/docs/ListOriginationUrlResponse.md similarity index 72% rename from rest/trunking/v1/docs/TrunkingV1TrunkOriginationUrlReadResponse.md rename to rest/trunking/v1/docs/ListOriginationUrlResponse.md index 51666dfef..f17eb0013 100644 --- a/rest/trunking/v1/docs/TrunkingV1TrunkOriginationUrlReadResponse.md +++ b/rest/trunking/v1/docs/ListOriginationUrlResponse.md @@ -1,10 +1,10 @@ -# TrunkingV1TrunkOriginationUrlReadResponse +# ListOriginationUrlResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**TrunkingV1TrunkReadResponseMeta**](trunking_v1_trunkReadResponse_meta.md) | | [optional] +**Meta** | [**ListTrunkResponseMeta**](ListTrunkResponse_meta.md) | | [optional] **OriginationUrls** | [**[]TrunkingV1TrunkOriginationUrl**](trunking.v1.trunk.origination_url.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/rest/trunking/v1/docs/TrunkingV1TrunkPhoneNumberReadResponse.md b/rest/trunking/v1/docs/ListPhoneNumberResponse.md similarity index 72% rename from rest/trunking/v1/docs/TrunkingV1TrunkPhoneNumberReadResponse.md rename to rest/trunking/v1/docs/ListPhoneNumberResponse.md index 4825790a3..e71a7c305 100644 --- a/rest/trunking/v1/docs/TrunkingV1TrunkPhoneNumberReadResponse.md +++ b/rest/trunking/v1/docs/ListPhoneNumberResponse.md @@ -1,10 +1,10 @@ -# TrunkingV1TrunkPhoneNumberReadResponse +# ListPhoneNumberResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**TrunkingV1TrunkReadResponseMeta**](trunking_v1_trunkReadResponse_meta.md) | | [optional] +**Meta** | [**ListTrunkResponseMeta**](ListTrunkResponse_meta.md) | | [optional] **PhoneNumbers** | [**[]TrunkingV1TrunkPhoneNumber**](trunking.v1.trunk.phone_number.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/rest/trunking/v1/docs/TrunkingV1TrunkReadResponse.md b/rest/trunking/v1/docs/ListTrunkResponse.md similarity index 72% rename from rest/trunking/v1/docs/TrunkingV1TrunkReadResponse.md rename to rest/trunking/v1/docs/ListTrunkResponse.md index 20613ca0d..0cc869958 100644 --- a/rest/trunking/v1/docs/TrunkingV1TrunkReadResponse.md +++ b/rest/trunking/v1/docs/ListTrunkResponse.md @@ -1,10 +1,10 @@ -# TrunkingV1TrunkReadResponse +# ListTrunkResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**TrunkingV1TrunkReadResponseMeta**](trunking_v1_trunkReadResponse_meta.md) | | [optional] +**Meta** | [**ListTrunkResponseMeta**](ListTrunkResponse_meta.md) | | [optional] **Trunks** | [**[]TrunkingV1Trunk**](trunking.v1.trunk.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/rest/trunking/v1/docs/ListTrunkResponseMeta.md b/rest/trunking/v1/docs/ListTrunkResponseMeta.md new file mode 100644 index 000000000..2ababeaff --- /dev/null +++ b/rest/trunking/v1/docs/ListTrunkResponseMeta.md @@ -0,0 +1,17 @@ +# ListTrunkResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/trunking/v1/docs/TrunkingV1TrunkReadResponseMeta.md b/rest/trunking/v1/docs/TrunkingV1TrunkReadResponseMeta.md deleted file mode 100644 index 7b45e8879..000000000 --- a/rest/trunking/v1/docs/TrunkingV1TrunkReadResponseMeta.md +++ /dev/null @@ -1,17 +0,0 @@ -# TrunkingV1TrunkReadResponseMeta - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FirstPageUrl** | **string** | | [optional] -**Key** | **string** | | [optional] -**NextPageUrl** | **string** | | [optional] -**Page** | **int32** | | [optional] -**PageSize** | **int32** | | [optional] -**PreviousPageUrl** | **string** | | [optional] -**Url** | **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/rest/trunking/v1/model_create_credential_list_request.go b/rest/trunking/v1/model_create_credential_list_request.go index 846dcb4c0..e702d5ab8 100644 --- a/rest/trunking/v1/model_create_credential_list_request.go +++ b/rest/trunking/v1/model_create_credential_list_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/trunking/v1/model_create_ip_access_control_list_request.go b/rest/trunking/v1/model_create_ip_access_control_list_request.go index 3f69f8191..832bbd1f2 100644 --- a/rest/trunking/v1/model_create_ip_access_control_list_request.go +++ b/rest/trunking/v1/model_create_ip_access_control_list_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/trunking/v1/model_create_origination_url_request.go b/rest/trunking/v1/model_create_origination_url_request.go index cbe4bdb18..c208ad7ae 100644 --- a/rest/trunking/v1/model_create_origination_url_request.go +++ b/rest/trunking/v1/model_create_origination_url_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/trunking/v1/model_create_phone_number_request.go b/rest/trunking/v1/model_create_phone_number_request.go index b2f1c89f1..afa0f2db1 100644 --- a/rest/trunking/v1/model_create_phone_number_request.go +++ b/rest/trunking/v1/model_create_phone_number_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/trunking/v1/model_create_trunk_request.go b/rest/trunking/v1/model_create_trunk_request.go index 4d1e9c940..0e94d8645 100644 --- a/rest/trunking/v1/model_create_trunk_request.go +++ b/rest/trunking/v1/model_create_trunk_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/trunking/v1/model_trunking_v1_trunk_credential_list_read_response.go b/rest/trunking/v1/model_list_credential_list_response.go similarity index 53% rename from rest/trunking/v1/model_trunking_v1_trunk_credential_list_read_response.go rename to rest/trunking/v1/model_list_credential_list_response.go index 62f081180..3f5c1955e 100644 --- a/rest/trunking/v1/model_trunking_v1_trunk_credential_list_read_response.go +++ b/rest/trunking/v1/model_list_credential_list_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// TrunkingV1TrunkCredentialListReadResponse struct for TrunkingV1TrunkCredentialListReadResponse -type TrunkingV1TrunkCredentialListReadResponse struct { +// ListCredentialListResponse struct for ListCredentialListResponse +type ListCredentialListResponse struct { CredentialLists []TrunkingV1TrunkCredentialList `json:"CredentialLists,omitempty"` - Meta TrunkingV1TrunkReadResponseMeta `json:"Meta,omitempty"` + Meta ListTrunkResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/trunking/v1/model_trunking_v1_trunk_ip_access_control_list_read_response.go b/rest/trunking/v1/model_list_ip_access_control_list_response.go similarity index 53% rename from rest/trunking/v1/model_trunking_v1_trunk_ip_access_control_list_read_response.go rename to rest/trunking/v1/model_list_ip_access_control_list_response.go index a9a7c86a0..7f94c9915 100644 --- a/rest/trunking/v1/model_trunking_v1_trunk_ip_access_control_list_read_response.go +++ b/rest/trunking/v1/model_list_ip_access_control_list_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// TrunkingV1TrunkIpAccessControlListReadResponse struct for TrunkingV1TrunkIpAccessControlListReadResponse -type TrunkingV1TrunkIpAccessControlListReadResponse struct { +// ListIpAccessControlListResponse struct for ListIpAccessControlListResponse +type ListIpAccessControlListResponse struct { IpAccessControlLists []TrunkingV1TrunkIpAccessControlList `json:"IpAccessControlLists,omitempty"` - Meta TrunkingV1TrunkReadResponseMeta `json:"Meta,omitempty"` + Meta ListTrunkResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/trunking/v1/model_trunking_v1_trunk_origination_url_read_response.go b/rest/trunking/v1/model_list_origination_url_response.go similarity index 53% rename from rest/trunking/v1/model_trunking_v1_trunk_origination_url_read_response.go rename to rest/trunking/v1/model_list_origination_url_response.go index 527a9f850..17c5ce1ee 100644 --- a/rest/trunking/v1/model_trunking_v1_trunk_origination_url_read_response.go +++ b/rest/trunking/v1/model_list_origination_url_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// TrunkingV1TrunkOriginationUrlReadResponse struct for TrunkingV1TrunkOriginationUrlReadResponse -type TrunkingV1TrunkOriginationUrlReadResponse struct { - Meta TrunkingV1TrunkReadResponseMeta `json:"Meta,omitempty"` +// ListOriginationUrlResponse struct for ListOriginationUrlResponse +type ListOriginationUrlResponse struct { + Meta ListTrunkResponseMeta `json:"Meta,omitempty"` OriginationUrls []TrunkingV1TrunkOriginationUrl `json:"OriginationUrls,omitempty"` } diff --git a/rest/trunking/v1/model_trunking_v1_trunk_phone_number_read_response.go b/rest/trunking/v1/model_list_phone_number_response.go similarity index 53% rename from rest/trunking/v1/model_trunking_v1_trunk_phone_number_read_response.go rename to rest/trunking/v1/model_list_phone_number_response.go index b4467cbce..4e7a28053 100644 --- a/rest/trunking/v1/model_trunking_v1_trunk_phone_number_read_response.go +++ b/rest/trunking/v1/model_list_phone_number_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// TrunkingV1TrunkPhoneNumberReadResponse struct for TrunkingV1TrunkPhoneNumberReadResponse -type TrunkingV1TrunkPhoneNumberReadResponse struct { - Meta TrunkingV1TrunkReadResponseMeta `json:"Meta,omitempty"` +// ListPhoneNumberResponse struct for ListPhoneNumberResponse +type ListPhoneNumberResponse struct { + Meta ListTrunkResponseMeta `json:"Meta,omitempty"` PhoneNumbers []TrunkingV1TrunkPhoneNumber `json:"PhoneNumbers,omitempty"` } diff --git a/rest/trunking/v1/model_trunking_v1_trunk_read_response.go b/rest/trunking/v1/model_list_trunk_response.go similarity index 55% rename from rest/trunking/v1/model_trunking_v1_trunk_read_response.go rename to rest/trunking/v1/model_list_trunk_response.go index 5a12b67fc..d7139d163 100644 --- a/rest/trunking/v1/model_trunking_v1_trunk_read_response.go +++ b/rest/trunking/v1/model_list_trunk_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// TrunkingV1TrunkReadResponse struct for TrunkingV1TrunkReadResponse -type TrunkingV1TrunkReadResponse struct { - Meta TrunkingV1TrunkReadResponseMeta `json:"Meta,omitempty"` +// ListTrunkResponse struct for ListTrunkResponse +type ListTrunkResponse struct { + Meta ListTrunkResponseMeta `json:"Meta,omitempty"` Trunks []TrunkingV1Trunk `json:"Trunks,omitempty"` } diff --git a/rest/trunking/v1/model_trunking_v1_trunk_read_response_meta.go b/rest/trunking/v1/model_list_trunk_response_meta.go similarity index 77% rename from rest/trunking/v1/model_trunking_v1_trunk_read_response_meta.go rename to rest/trunking/v1/model_list_trunk_response_meta.go index 8f7d4ede7..61d4b2881 100644 --- a/rest/trunking/v1/model_trunking_v1_trunk_read_response_meta.go +++ b/rest/trunking/v1/model_list_trunk_response_meta.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// TrunkingV1TrunkReadResponseMeta struct for TrunkingV1TrunkReadResponseMeta -type TrunkingV1TrunkReadResponseMeta struct { +// ListTrunkResponseMeta struct for ListTrunkResponseMeta +type ListTrunkResponseMeta struct { FirstPageUrl string `json:"FirstPageUrl,omitempty"` Key string `json:"Key,omitempty"` NextPageUrl string `json:"NextPageUrl,omitempty"` diff --git a/rest/trunking/v1/model_trunking_v1_trunk.go b/rest/trunking/v1/model_trunking_v1_trunk.go index 708aaca48..0a08484ce 100644 --- a/rest/trunking/v1/model_trunking_v1_trunk.go +++ b/rest/trunking/v1/model_trunking_v1_trunk.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/trunking/v1/model_trunking_v1_trunk_credential_list.go b/rest/trunking/v1/model_trunking_v1_trunk_credential_list.go index 17c37f663..c2806cdf9 100644 --- a/rest/trunking/v1/model_trunking_v1_trunk_credential_list.go +++ b/rest/trunking/v1/model_trunking_v1_trunk_credential_list.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/trunking/v1/model_trunking_v1_trunk_ip_access_control_list.go b/rest/trunking/v1/model_trunking_v1_trunk_ip_access_control_list.go index 46c1367b1..bc378f831 100644 --- a/rest/trunking/v1/model_trunking_v1_trunk_ip_access_control_list.go +++ b/rest/trunking/v1/model_trunking_v1_trunk_ip_access_control_list.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/trunking/v1/model_trunking_v1_trunk_origination_url.go b/rest/trunking/v1/model_trunking_v1_trunk_origination_url.go index 74d3b5d15..715d2cc15 100644 --- a/rest/trunking/v1/model_trunking_v1_trunk_origination_url.go +++ b/rest/trunking/v1/model_trunking_v1_trunk_origination_url.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/trunking/v1/model_trunking_v1_trunk_phone_number.go b/rest/trunking/v1/model_trunking_v1_trunk_phone_number.go index ec15c9c55..3720b3c7a 100644 --- a/rest/trunking/v1/model_trunking_v1_trunk_phone_number.go +++ b/rest/trunking/v1/model_trunking_v1_trunk_phone_number.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/trunking/v1/model_trunking_v1_trunk_recording.go b/rest/trunking/v1/model_trunking_v1_trunk_recording.go index 9a6a89839..1db67d5c3 100644 --- a/rest/trunking/v1/model_trunking_v1_trunk_recording.go +++ b/rest/trunking/v1/model_trunking_v1_trunk_recording.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/trunking/v1/model_update_origination_url_request.go b/rest/trunking/v1/model_update_origination_url_request.go index 28ee38327..438736302 100644 --- a/rest/trunking/v1/model_update_origination_url_request.go +++ b/rest/trunking/v1/model_update_origination_url_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/trunking/v1/model_update_recording_request.go b/rest/trunking/v1/model_update_recording_request.go index ec25a16eb..bf1ed9036 100644 --- a/rest/trunking/v1/model_update_recording_request.go +++ b/rest/trunking/v1/model_update_recording_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/trunking/v1/model_update_trunk_request.go b/rest/trunking/v1/model_update_trunk_request.go index 485a0f7c3..69e17d4d8 100644 --- a/rest/trunking/v1/model_update_trunk_request.go +++ b/rest/trunking/v1/model_update_trunk_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/trunking/v1/response.go b/rest/trunking/v1/response.go index 15628f098..da18a8457 100644 --- a/rest/trunking/v1/response.go +++ b/rest/trunking/v1/response.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/verify/v2/README.md b/rest/verify/v2/README.md index f293e58df..6643fba17 100644 --- a/rest/verify/v2/README.md +++ b/rest/verify/v2/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 5.15.0 +- API version: 1.0.0 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) @@ -90,6 +90,15 @@ Class | Method | HTTP request | Description - [CreateVerificationCheckRequest](docs/CreateVerificationCheckRequest.md) - [CreateVerificationRequest](docs/CreateVerificationRequest.md) - [CreateWebhookRequest](docs/CreateWebhookRequest.md) + - [ListBucketResponse](docs/ListBucketResponse.md) + - [ListChallengeResponse](docs/ListChallengeResponse.md) + - [ListEntityResponse](docs/ListEntityResponse.md) + - [ListFactorResponse](docs/ListFactorResponse.md) + - [ListMessagingConfigurationResponse](docs/ListMessagingConfigurationResponse.md) + - [ListRateLimitResponse](docs/ListRateLimitResponse.md) + - [ListServiceResponse](docs/ListServiceResponse.md) + - [ListServiceResponseMeta](docs/ListServiceResponseMeta.md) + - [ListWebhookResponse](docs/ListWebhookResponse.md) - [UpdateBucketRequest](docs/UpdateBucketRequest.md) - [UpdateChallengeRequest](docs/UpdateChallengeRequest.md) - [UpdateFactorRequest](docs/UpdateFactorRequest.md) @@ -103,22 +112,13 @@ Class | Method | HTTP request | Description - [VerifyV2ServiceAccessToken](docs/VerifyV2ServiceAccessToken.md) - [VerifyV2ServiceEntity](docs/VerifyV2ServiceEntity.md) - [VerifyV2ServiceEntityChallenge](docs/VerifyV2ServiceEntityChallenge.md) - - [VerifyV2ServiceEntityChallengeReadResponse](docs/VerifyV2ServiceEntityChallengeReadResponse.md) - [VerifyV2ServiceEntityFactor](docs/VerifyV2ServiceEntityFactor.md) - - [VerifyV2ServiceEntityFactorReadResponse](docs/VerifyV2ServiceEntityFactorReadResponse.md) - - [VerifyV2ServiceEntityReadResponse](docs/VerifyV2ServiceEntityReadResponse.md) - [VerifyV2ServiceMessagingConfiguration](docs/VerifyV2ServiceMessagingConfiguration.md) - - [VerifyV2ServiceMessagingConfigurationReadResponse](docs/VerifyV2ServiceMessagingConfigurationReadResponse.md) - [VerifyV2ServiceRateLimit](docs/VerifyV2ServiceRateLimit.md) - [VerifyV2ServiceRateLimitBucket](docs/VerifyV2ServiceRateLimitBucket.md) - - [VerifyV2ServiceRateLimitBucketReadResponse](docs/VerifyV2ServiceRateLimitBucketReadResponse.md) - - [VerifyV2ServiceRateLimitReadResponse](docs/VerifyV2ServiceRateLimitReadResponse.md) - - [VerifyV2ServiceReadResponse](docs/VerifyV2ServiceReadResponse.md) - - [VerifyV2ServiceReadResponseMeta](docs/VerifyV2ServiceReadResponseMeta.md) - [VerifyV2ServiceVerification](docs/VerifyV2ServiceVerification.md) - [VerifyV2ServiceVerificationCheck](docs/VerifyV2ServiceVerificationCheck.md) - [VerifyV2ServiceWebhook](docs/VerifyV2ServiceWebhook.md) - - [VerifyV2ServiceWebhookReadResponse](docs/VerifyV2ServiceWebhookReadResponse.md) ## Documentation For Authorization diff --git a/rest/verify/v2/api_default.go b/rest/verify/v2/api_default.go index 1b22998d4..cc4b66bfa 100644 --- a/rest/verify/v2/api_default.go +++ b/rest/verify/v2/api_default.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -27,13 +27,13 @@ type DefaultApiService struct { func NewDefaultApiService(client *twilio.Client) *DefaultApiService { return &DefaultApiService { client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + baseURL: fmt.Sprintf("https://verify.twilio.com"), } } // CreateAccessTokenParams Optional parameters for the method 'CreateAccessToken' type CreateAccessTokenParams struct { - FactorType *string `json:"FactorType,omitempty"` - Identity *string `json:"Identity,omitempty"` + FactorType *string `json:"FactorType,omitempty"` + Identity *string `json:"Identity,omitempty"` } /* @@ -77,8 +77,8 @@ func (c *DefaultApiService) CreateAccessToken(ServiceSid string, params *CreateA } // CreateBucketParams Optional parameters for the method 'CreateBucket' type CreateBucketParams struct { - Interval *int32 `json:"Interval,omitempty"` - Max *int32 `json:"Max,omitempty"` + Interval *int32 `json:"Interval,omitempty"` + Max *int32 `json:"Max,omitempty"` } /* @@ -124,11 +124,11 @@ func (c *DefaultApiService) CreateBucket(ServiceSid string, RateLimitSid string, } // CreateChallengeParams Optional parameters for the method 'CreateChallenge' type CreateChallengeParams struct { - DetailsFields *[]map[string]interface{} `json:"Details.Fields,omitempty"` - DetailsMessage *string `json:"Details.Message,omitempty"` - ExpirationDate *time.Time `json:"ExpirationDate,omitempty"` - FactorSid *string `json:"FactorSid,omitempty"` - HiddenDetails *map[string]interface{} `json:"HiddenDetails,omitempty"` + DetailsFields *[]map[string]interface{} `json:"Details.Fields,omitempty"` + DetailsMessage *string `json:"Details.Message,omitempty"` + ExpirationDate *time.Time `json:"ExpirationDate,omitempty"` + FactorSid *string `json:"FactorSid,omitempty"` + HiddenDetails *map[string]interface{} `json:"HiddenDetails,omitempty"` } /* @@ -198,7 +198,7 @@ func (c *DefaultApiService) CreateChallenge(ServiceSid string, Identity string, } // CreateEntityParams Optional parameters for the method 'CreateEntity' type CreateEntityParams struct { - Identity *string `json:"Identity,omitempty"` + Identity *string `json:"Identity,omitempty"` } /* @@ -238,14 +238,14 @@ func (c *DefaultApiService) CreateEntity(ServiceSid string, params *CreateEntity } // CreateFactorParams Optional parameters for the method 'CreateFactor' type CreateFactorParams struct { - BindingAlg *string `json:"Binding.Alg,omitempty"` - BindingPublicKey *string `json:"Binding.PublicKey,omitempty"` - ConfigAppId *string `json:"Config.AppId,omitempty"` - ConfigNotificationPlatform *string `json:"Config.NotificationPlatform,omitempty"` - ConfigNotificationToken *string `json:"Config.NotificationToken,omitempty"` - ConfigSdkVersion *string `json:"Config.SdkVersion,omitempty"` - FactorType *string `json:"FactorType,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` + BindingAlg *string `json:"Binding.Alg,omitempty"` + BindingPublicKey *string `json:"Binding.PublicKey,omitempty"` + ConfigAppId *string `json:"Config.AppId,omitempty"` + ConfigNotificationPlatform *string `json:"Config.NotificationPlatform,omitempty"` + ConfigNotificationToken *string `json:"Config.NotificationToken,omitempty"` + ConfigSdkVersion *string `json:"Config.SdkVersion,omitempty"` + FactorType *string `json:"FactorType,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -315,8 +315,8 @@ func (c *DefaultApiService) CreateFactor(ServiceSid string, Identity string, par } // CreateMessagingConfigurationParams Optional parameters for the method 'CreateMessagingConfiguration' type CreateMessagingConfigurationParams struct { - Country *string `json:"Country,omitempty"` - MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` + Country *string `json:"Country,omitempty"` + MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` } /* @@ -360,8 +360,8 @@ func (c *DefaultApiService) CreateMessagingConfiguration(ServiceSid string, para } // CreateRateLimitParams Optional parameters for the method 'CreateRateLimit' type CreateRateLimitParams struct { - Description *string `json:"Description,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + Description *string `json:"Description,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -405,18 +405,18 @@ func (c *DefaultApiService) CreateRateLimit(ServiceSid string, params *CreateRat } // CreateServiceParams Optional parameters for the method 'CreateService' type CreateServiceParams struct { - CodeLength *int32 `json:"CodeLength,omitempty"` - CustomCodeEnabled *bool `json:"CustomCodeEnabled,omitempty"` - DoNotShareWarningEnabled *bool `json:"DoNotShareWarningEnabled,omitempty"` - DtmfInputRequired *bool `json:"DtmfInputRequired,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - LookupEnabled *bool `json:"LookupEnabled,omitempty"` - Psd2Enabled *bool `json:"Psd2Enabled,omitempty"` - PushApnCredentialSid *string `json:"Push.ApnCredentialSid,omitempty"` - PushFcmCredentialSid *string `json:"Push.FcmCredentialSid,omitempty"` - PushIncludeDate *bool `json:"Push.IncludeDate,omitempty"` - SkipSmsToLandlines *bool `json:"SkipSmsToLandlines,omitempty"` - TtsName *string `json:"TtsName,omitempty"` + CodeLength *int32 `json:"CodeLength,omitempty"` + CustomCodeEnabled *bool `json:"CustomCodeEnabled,omitempty"` + DoNotShareWarningEnabled *bool `json:"DoNotShareWarningEnabled,omitempty"` + DtmfInputRequired *bool `json:"DtmfInputRequired,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + LookupEnabled *bool `json:"LookupEnabled,omitempty"` + Psd2Enabled *bool `json:"Psd2Enabled,omitempty"` + PushApnCredentialSid *string `json:"Push.ApnCredentialSid,omitempty"` + PushFcmCredentialSid *string `json:"Push.FcmCredentialSid,omitempty"` + PushIncludeDate *bool `json:"Push.IncludeDate,omitempty"` + SkipSmsToLandlines *bool `json:"SkipSmsToLandlines,omitempty"` + TtsName *string `json:"TtsName,omitempty"` } /* @@ -498,18 +498,18 @@ func (c *DefaultApiService) CreateService(params *CreateServiceParams) (*VerifyV } // CreateVerificationParams Optional parameters for the method 'CreateVerification' type CreateVerificationParams struct { - Amount *string `json:"Amount,omitempty"` - AppHash *string `json:"AppHash,omitempty"` - Channel *string `json:"Channel,omitempty"` - ChannelConfiguration *map[string]interface{} `json:"ChannelConfiguration,omitempty"` - CustomCode *string `json:"CustomCode,omitempty"` - CustomFriendlyName *string `json:"CustomFriendlyName,omitempty"` - CustomMessage *string `json:"CustomMessage,omitempty"` - Locale *string `json:"Locale,omitempty"` - Payee *string `json:"Payee,omitempty"` - RateLimits *map[string]interface{} `json:"RateLimits,omitempty"` - SendDigits *string `json:"SendDigits,omitempty"` - To *string `json:"To,omitempty"` + Amount *string `json:"Amount,omitempty"` + AppHash *string `json:"AppHash,omitempty"` + Channel *string `json:"Channel,omitempty"` + ChannelConfiguration *map[string]interface{} `json:"ChannelConfiguration,omitempty"` + CustomCode *string `json:"CustomCode,omitempty"` + CustomFriendlyName *string `json:"CustomFriendlyName,omitempty"` + CustomMessage *string `json:"CustomMessage,omitempty"` + Locale *string `json:"Locale,omitempty"` + Payee *string `json:"Payee,omitempty"` + RateLimits *map[string]interface{} `json:"RateLimits,omitempty"` + SendDigits *string `json:"SendDigits,omitempty"` + To *string `json:"To,omitempty"` } /* @@ -605,11 +605,11 @@ func (c *DefaultApiService) CreateVerification(ServiceSid string, params *Create } // CreateVerificationCheckParams Optional parameters for the method 'CreateVerificationCheck' type CreateVerificationCheckParams struct { - Amount *string `json:"Amount,omitempty"` - Code *string `json:"Code,omitempty"` - Payee *string `json:"Payee,omitempty"` - To *string `json:"To,omitempty"` - VerificationSid *string `json:"VerificationSid,omitempty"` + Amount *string `json:"Amount,omitempty"` + Code *string `json:"Code,omitempty"` + Payee *string `json:"Payee,omitempty"` + To *string `json:"To,omitempty"` + VerificationSid *string `json:"VerificationSid,omitempty"` } /* @@ -665,10 +665,10 @@ func (c *DefaultApiService) CreateVerificationCheck(ServiceSid string, params *C } // CreateWebhookParams Optional parameters for the method 'CreateWebhook' type CreateWebhookParams struct { - EventTypes *[]string `json:"EventTypes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Status *string `json:"Status,omitempty"` - WebhookUrl *string `json:"WebhookUrl,omitempty"` + EventTypes *[]string `json:"EventTypes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Status *string `json:"Status,omitempty"` + WebhookUrl *string `json:"WebhookUrl,omitempty"` } /* @@ -1243,7 +1243,7 @@ func (c *DefaultApiService) FetchWebhook(ServiceSid string, Sid string) (*Verify } // ListBucketParams Optional parameters for the method 'ListBucket' type ListBucketParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1253,9 +1253,9 @@ Retrieve a list of all Buckets for a Rate Limit. * @param RateLimitSid The Twilio-provided string that uniquely identifies the Rate Limit resource. * @param optional nil or *ListBucketOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return VerifyV2ServiceRateLimitBucketReadResponse +@return ListBucketResponse */ -func (c *DefaultApiService) ListBucket(ServiceSid string, RateLimitSid string, params *ListBucketParams) (*VerifyV2ServiceRateLimitBucketReadResponse, error) { +func (c *DefaultApiService) ListBucket(ServiceSid string, RateLimitSid string, params *ListBucketParams) (*ListBucketResponse, error) { path := "/v2/Services/{ServiceSid}/RateLimits/{RateLimitSid}/Buckets" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"RateLimitSid"+"}", RateLimitSid, -1) @@ -1276,7 +1276,7 @@ func (c *DefaultApiService) ListBucket(ServiceSid string, RateLimitSid string, p defer resp.Body.Close() - ps := &VerifyV2ServiceRateLimitBucketReadResponse{} + ps := &ListBucketResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1285,9 +1285,9 @@ func (c *DefaultApiService) ListBucket(ServiceSid string, RateLimitSid string, p } // ListChallengeParams Optional parameters for the method 'ListChallenge' type ListChallengeParams struct { - FactorSid *string `json:"FactorSid,omitempty"` - Status *string `json:"Status,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + FactorSid *string `json:"FactorSid,omitempty"` + Status *string `json:"Status,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1299,9 +1299,9 @@ Retrieve a list of all Challenges for a Factor. * @param "FactorSid" (string) - The unique SID identifier of the Factor. * @param "Status" (string) - The Status of the Challenges to fetch. One of `pending`, `expired`, `approved` or `denied`. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return VerifyV2ServiceEntityChallengeReadResponse +@return ListChallengeResponse */ -func (c *DefaultApiService) ListChallenge(ServiceSid string, Identity string, params *ListChallengeParams) (*VerifyV2ServiceEntityChallengeReadResponse, error) { +func (c *DefaultApiService) ListChallenge(ServiceSid string, Identity string, params *ListChallengeParams) (*ListChallengeResponse, error) { path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"Identity"+"}", Identity, -1) @@ -1328,7 +1328,7 @@ func (c *DefaultApiService) ListChallenge(ServiceSid string, Identity string, pa defer resp.Body.Close() - ps := &VerifyV2ServiceEntityChallengeReadResponse{} + ps := &ListChallengeResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1337,7 +1337,7 @@ func (c *DefaultApiService) ListChallenge(ServiceSid string, Identity string, pa } // ListEntityParams Optional parameters for the method 'ListEntity' type ListEntityParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1346,9 +1346,9 @@ Retrieve a list of all Entities for a Service. * @param ServiceSid The unique SID identifier of the Service. * @param optional nil or *ListEntityOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return VerifyV2ServiceEntityReadResponse +@return ListEntityResponse */ -func (c *DefaultApiService) ListEntity(ServiceSid string, params *ListEntityParams) (*VerifyV2ServiceEntityReadResponse, error) { +func (c *DefaultApiService) ListEntity(ServiceSid string, params *ListEntityParams) (*ListEntityResponse, error) { path := "/v2/Services/{ServiceSid}/Entities" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -1368,7 +1368,7 @@ func (c *DefaultApiService) ListEntity(ServiceSid string, params *ListEntityPara defer resp.Body.Close() - ps := &VerifyV2ServiceEntityReadResponse{} + ps := &ListEntityResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1377,7 +1377,7 @@ func (c *DefaultApiService) ListEntity(ServiceSid string, params *ListEntityPara } // ListFactorParams Optional parameters for the method 'ListFactor' type ListFactorParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1387,9 +1387,9 @@ Retrieve a list of all Factors for an Entity. * @param Identity Customer unique identity for the Entity owner of the Factor * @param optional nil or *ListFactorOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return VerifyV2ServiceEntityFactorReadResponse +@return ListFactorResponse */ -func (c *DefaultApiService) ListFactor(ServiceSid string, Identity string, params *ListFactorParams) (*VerifyV2ServiceEntityFactorReadResponse, error) { +func (c *DefaultApiService) ListFactor(ServiceSid string, Identity string, params *ListFactorParams) (*ListFactorResponse, error) { path := "/v2/Services/{ServiceSid}/Entities/{Identity}/Factors" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) path = strings.Replace(path, "{"+"Identity"+"}", Identity, -1) @@ -1410,7 +1410,7 @@ func (c *DefaultApiService) ListFactor(ServiceSid string, Identity string, param defer resp.Body.Close() - ps := &VerifyV2ServiceEntityFactorReadResponse{} + ps := &ListFactorResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1419,7 +1419,7 @@ func (c *DefaultApiService) ListFactor(ServiceSid string, Identity string, param } // ListMessagingConfigurationParams Optional parameters for the method 'ListMessagingConfiguration' type ListMessagingConfigurationParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1428,9 +1428,9 @@ Retrieve a list of all Messaging Configurations for a Service. * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) that the resource is associated with. * @param optional nil or *ListMessagingConfigurationOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return VerifyV2ServiceMessagingConfigurationReadResponse +@return ListMessagingConfigurationResponse */ -func (c *DefaultApiService) ListMessagingConfiguration(ServiceSid string, params *ListMessagingConfigurationParams) (*VerifyV2ServiceMessagingConfigurationReadResponse, error) { +func (c *DefaultApiService) ListMessagingConfiguration(ServiceSid string, params *ListMessagingConfigurationParams) (*ListMessagingConfigurationResponse, error) { path := "/v2/Services/{ServiceSid}/MessagingConfigurations" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -1450,7 +1450,7 @@ func (c *DefaultApiService) ListMessagingConfiguration(ServiceSid string, params defer resp.Body.Close() - ps := &VerifyV2ServiceMessagingConfigurationReadResponse{} + ps := &ListMessagingConfigurationResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1459,7 +1459,7 @@ func (c *DefaultApiService) ListMessagingConfiguration(ServiceSid string, params } // ListRateLimitParams Optional parameters for the method 'ListRateLimit' type ListRateLimitParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1468,9 +1468,9 @@ Retrieve a list of all Rate Limits for a service. * @param ServiceSid The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. * @param optional nil or *ListRateLimitOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return VerifyV2ServiceRateLimitReadResponse +@return ListRateLimitResponse */ -func (c *DefaultApiService) ListRateLimit(ServiceSid string, params *ListRateLimitParams) (*VerifyV2ServiceRateLimitReadResponse, error) { +func (c *DefaultApiService) ListRateLimit(ServiceSid string, params *ListRateLimitParams) (*ListRateLimitResponse, error) { path := "/v2/Services/{ServiceSid}/RateLimits" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -1490,7 +1490,7 @@ func (c *DefaultApiService) ListRateLimit(ServiceSid string, params *ListRateLim defer resp.Body.Close() - ps := &VerifyV2ServiceRateLimitReadResponse{} + ps := &ListRateLimitResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1499,7 +1499,7 @@ func (c *DefaultApiService) ListRateLimit(ServiceSid string, params *ListRateLim } // ListServiceParams Optional parameters for the method 'ListService' type ListServiceParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1507,9 +1507,9 @@ ListService Method for ListService Retrieve a list of all Verification Services for an account. * @param optional nil or *ListServiceOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return VerifyV2ServiceReadResponse +@return ListServiceResponse */ -func (c *DefaultApiService) ListService(params *ListServiceParams) (*VerifyV2ServiceReadResponse, error) { +func (c *DefaultApiService) ListService(params *ListServiceParams) (*ListServiceResponse, error) { path := "/v2/Services" @@ -1528,7 +1528,7 @@ func (c *DefaultApiService) ListService(params *ListServiceParams) (*VerifyV2Ser defer resp.Body.Close() - ps := &VerifyV2ServiceReadResponse{} + ps := &ListServiceResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1537,7 +1537,7 @@ func (c *DefaultApiService) ListService(params *ListServiceParams) (*VerifyV2Ser } // ListWebhookParams Optional parameters for the method 'ListWebhook' type ListWebhookParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1546,9 +1546,9 @@ Retrieve a list of all Webhooks for a Service. * @param ServiceSid The unique SID identifier of the Service. * @param optional nil or *ListWebhookOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return VerifyV2ServiceWebhookReadResponse +@return ListWebhookResponse */ -func (c *DefaultApiService) ListWebhook(ServiceSid string, params *ListWebhookParams) (*VerifyV2ServiceWebhookReadResponse, error) { +func (c *DefaultApiService) ListWebhook(ServiceSid string, params *ListWebhookParams) (*ListWebhookResponse, error) { path := "/v2/Services/{ServiceSid}/Webhooks" path = strings.Replace(path, "{"+"ServiceSid"+"}", ServiceSid, -1) @@ -1568,7 +1568,7 @@ func (c *DefaultApiService) ListWebhook(ServiceSid string, params *ListWebhookPa defer resp.Body.Close() - ps := &VerifyV2ServiceWebhookReadResponse{} + ps := &ListWebhookResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1577,8 +1577,8 @@ func (c *DefaultApiService) ListWebhook(ServiceSid string, params *ListWebhookPa } // UpdateBucketParams Optional parameters for the method 'UpdateBucket' type UpdateBucketParams struct { - Interval *int32 `json:"Interval,omitempty"` - Max *int32 `json:"Max,omitempty"` + Interval *int32 `json:"Interval,omitempty"` + Max *int32 `json:"Max,omitempty"` } /* @@ -1626,7 +1626,7 @@ func (c *DefaultApiService) UpdateBucket(ServiceSid string, RateLimitSid string, } // UpdateChallengeParams Optional parameters for the method 'UpdateChallenge' type UpdateChallengeParams struct { - AuthPayload *string `json:"AuthPayload,omitempty"` + AuthPayload *string `json:"AuthPayload,omitempty"` } /* @@ -1670,10 +1670,10 @@ func (c *DefaultApiService) UpdateChallenge(ServiceSid string, Identity string, } // UpdateFactorParams Optional parameters for the method 'UpdateFactor' type UpdateFactorParams struct { - AuthPayload *string `json:"AuthPayload,omitempty"` - ConfigNotificationToken *string `json:"Config.NotificationToken,omitempty"` - ConfigSdkVersion *string `json:"Config.SdkVersion,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` + AuthPayload *string `json:"AuthPayload,omitempty"` + ConfigNotificationToken *string `json:"Config.NotificationToken,omitempty"` + ConfigSdkVersion *string `json:"Config.SdkVersion,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -1729,7 +1729,7 @@ func (c *DefaultApiService) UpdateFactor(ServiceSid string, Identity string, Sid } // UpdateMessagingConfigurationParams Optional parameters for the method 'UpdateMessagingConfiguration' type UpdateMessagingConfigurationParams struct { - MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` + MessagingServiceSid *string `json:"MessagingServiceSid,omitempty"` } /* @@ -1771,7 +1771,7 @@ func (c *DefaultApiService) UpdateMessagingConfiguration(ServiceSid string, Coun } // UpdateRateLimitParams Optional parameters for the method 'UpdateRateLimit' type UpdateRateLimitParams struct { - Description *string `json:"Description,omitempty"` + Description *string `json:"Description,omitempty"` } /* @@ -1813,18 +1813,18 @@ func (c *DefaultApiService) UpdateRateLimit(ServiceSid string, Sid string, param } // UpdateServiceParams Optional parameters for the method 'UpdateService' type UpdateServiceParams struct { - CodeLength *int32 `json:"CodeLength,omitempty"` - CustomCodeEnabled *bool `json:"CustomCodeEnabled,omitempty"` - DoNotShareWarningEnabled *bool `json:"DoNotShareWarningEnabled,omitempty"` - DtmfInputRequired *bool `json:"DtmfInputRequired,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - LookupEnabled *bool `json:"LookupEnabled,omitempty"` - Psd2Enabled *bool `json:"Psd2Enabled,omitempty"` - PushApnCredentialSid *string `json:"Push.ApnCredentialSid,omitempty"` - PushFcmCredentialSid *string `json:"Push.FcmCredentialSid,omitempty"` - PushIncludeDate *bool `json:"Push.IncludeDate,omitempty"` - SkipSmsToLandlines *bool `json:"SkipSmsToLandlines,omitempty"` - TtsName *string `json:"TtsName,omitempty"` + CodeLength *int32 `json:"CodeLength,omitempty"` + CustomCodeEnabled *bool `json:"CustomCodeEnabled,omitempty"` + DoNotShareWarningEnabled *bool `json:"DoNotShareWarningEnabled,omitempty"` + DtmfInputRequired *bool `json:"DtmfInputRequired,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + LookupEnabled *bool `json:"LookupEnabled,omitempty"` + Psd2Enabled *bool `json:"Psd2Enabled,omitempty"` + PushApnCredentialSid *string `json:"Push.ApnCredentialSid,omitempty"` + PushFcmCredentialSid *string `json:"Push.FcmCredentialSid,omitempty"` + PushIncludeDate *bool `json:"Push.IncludeDate,omitempty"` + SkipSmsToLandlines *bool `json:"SkipSmsToLandlines,omitempty"` + TtsName *string `json:"TtsName,omitempty"` } /* @@ -1908,7 +1908,7 @@ func (c *DefaultApiService) UpdateService(Sid string, params *UpdateServiceParam } // UpdateVerificationParams Optional parameters for the method 'UpdateVerification' type UpdateVerificationParams struct { - Status *string `json:"Status,omitempty"` + Status *string `json:"Status,omitempty"` } /* @@ -1950,10 +1950,10 @@ func (c *DefaultApiService) UpdateVerification(ServiceSid string, Sid string, pa } // UpdateWebhookParams Optional parameters for the method 'UpdateWebhook' type UpdateWebhookParams struct { - EventTypes *[]string `json:"EventTypes,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Status *string `json:"Status,omitempty"` - WebhookUrl *string `json:"WebhookUrl,omitempty"` + EventTypes *[]string `json:"EventTypes,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Status *string `json:"Status,omitempty"` + WebhookUrl *string `json:"WebhookUrl,omitempty"` } /* diff --git a/rest/verify/v2/docs/DefaultApi.md b/rest/verify/v2/docs/DefaultApi.md index 08a5d11fe..674095de2 100644 --- a/rest/verify/v2/docs/DefaultApi.md +++ b/rest/verify/v2/docs/DefaultApi.md @@ -1193,7 +1193,7 @@ Name | Type | Description | Notes ## ListBucket -> VerifyV2ServiceRateLimitBucketReadResponse ListBucket(ctx, ServiceSid, RateLimitSid, optional) +> ListBucketResponse ListBucket(ctx, ServiceSid, RateLimitSid, optional) @@ -1222,7 +1222,7 @@ Name | Type | Description | Notes ### Return type -[**VerifyV2ServiceRateLimitBucketReadResponse**](verify_v2_service_rate_limit_bucketReadResponse.md) +[**ListBucketResponse**](ListBucketResponse.md) ### Authorization @@ -1240,7 +1240,7 @@ Name | Type | Description | Notes ## ListChallenge -> VerifyV2ServiceEntityChallengeReadResponse ListChallenge(ctx, ServiceSid, Identity, optional) +> ListChallengeResponse ListChallenge(ctx, ServiceSid, Identity, optional) @@ -1271,7 +1271,7 @@ Name | Type | Description | Notes ### Return type -[**VerifyV2ServiceEntityChallengeReadResponse**](verify_v2_service_entity_challengeReadResponse.md) +[**ListChallengeResponse**](ListChallengeResponse.md) ### Authorization @@ -1289,7 +1289,7 @@ Name | Type | Description | Notes ## ListEntity -> VerifyV2ServiceEntityReadResponse ListEntity(ctx, ServiceSid, optional) +> ListEntityResponse ListEntity(ctx, ServiceSid, optional) @@ -1316,7 +1316,7 @@ Name | Type | Description | Notes ### Return type -[**VerifyV2ServiceEntityReadResponse**](verify_v2_service_entityReadResponse.md) +[**ListEntityResponse**](ListEntityResponse.md) ### Authorization @@ -1334,7 +1334,7 @@ Name | Type | Description | Notes ## ListFactor -> VerifyV2ServiceEntityFactorReadResponse ListFactor(ctx, ServiceSid, Identity, optional) +> ListFactorResponse ListFactor(ctx, ServiceSid, Identity, optional) @@ -1363,7 +1363,7 @@ Name | Type | Description | Notes ### Return type -[**VerifyV2ServiceEntityFactorReadResponse**](verify_v2_service_entity_factorReadResponse.md) +[**ListFactorResponse**](ListFactorResponse.md) ### Authorization @@ -1381,7 +1381,7 @@ Name | Type | Description | Notes ## ListMessagingConfiguration -> VerifyV2ServiceMessagingConfigurationReadResponse ListMessagingConfiguration(ctx, ServiceSid, optional) +> ListMessagingConfigurationResponse ListMessagingConfiguration(ctx, ServiceSid, optional) @@ -1408,7 +1408,7 @@ Name | Type | Description | Notes ### Return type -[**VerifyV2ServiceMessagingConfigurationReadResponse**](verify_v2_service_messaging_configurationReadResponse.md) +[**ListMessagingConfigurationResponse**](ListMessagingConfigurationResponse.md) ### Authorization @@ -1426,7 +1426,7 @@ Name | Type | Description | Notes ## ListRateLimit -> VerifyV2ServiceRateLimitReadResponse ListRateLimit(ctx, ServiceSid, optional) +> ListRateLimitResponse ListRateLimit(ctx, ServiceSid, optional) @@ -1453,7 +1453,7 @@ Name | Type | Description | Notes ### Return type -[**VerifyV2ServiceRateLimitReadResponse**](verify_v2_service_rate_limitReadResponse.md) +[**ListRateLimitResponse**](ListRateLimitResponse.md) ### Authorization @@ -1471,7 +1471,7 @@ Name | Type | Description | Notes ## ListService -> VerifyV2ServiceReadResponse ListService(ctx, optional) +> ListServiceResponse ListService(ctx, optional) @@ -1496,7 +1496,7 @@ Name | Type | Description | Notes ### Return type -[**VerifyV2ServiceReadResponse**](verify_v2_serviceReadResponse.md) +[**ListServiceResponse**](ListServiceResponse.md) ### Authorization @@ -1514,7 +1514,7 @@ Name | Type | Description | Notes ## ListWebhook -> VerifyV2ServiceWebhookReadResponse ListWebhook(ctx, ServiceSid, optional) +> ListWebhookResponse ListWebhook(ctx, ServiceSid, optional) @@ -1541,7 +1541,7 @@ Name | Type | Description | Notes ### Return type -[**VerifyV2ServiceWebhookReadResponse**](verify_v2_service_webhookReadResponse.md) +[**ListWebhookResponse**](ListWebhookResponse.md) ### Authorization diff --git a/rest/verify/v2/docs/VerifyV2ServiceRateLimitBucketReadResponse.md b/rest/verify/v2/docs/ListBucketResponse.md similarity index 72% rename from rest/verify/v2/docs/VerifyV2ServiceRateLimitBucketReadResponse.md rename to rest/verify/v2/docs/ListBucketResponse.md index 8d43be01b..45b937d25 100644 --- a/rest/verify/v2/docs/VerifyV2ServiceRateLimitBucketReadResponse.md +++ b/rest/verify/v2/docs/ListBucketResponse.md @@ -1,11 +1,11 @@ -# VerifyV2ServiceRateLimitBucketReadResponse +# ListBucketResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Buckets** | [**[]VerifyV2ServiceRateLimitBucket**](verify.v2.service.rate_limit.bucket.md) | | [optional] -**Meta** | [**VerifyV2ServiceReadResponseMeta**](verify_v2_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_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/rest/verify/v2/docs/VerifyV2ServiceEntityChallengeReadResponse.md b/rest/verify/v2/docs/ListChallengeResponse.md similarity index 72% rename from rest/verify/v2/docs/VerifyV2ServiceEntityChallengeReadResponse.md rename to rest/verify/v2/docs/ListChallengeResponse.md index 3eb3b737d..6f2c11f2c 100644 --- a/rest/verify/v2/docs/VerifyV2ServiceEntityChallengeReadResponse.md +++ b/rest/verify/v2/docs/ListChallengeResponse.md @@ -1,11 +1,11 @@ -# VerifyV2ServiceEntityChallengeReadResponse +# ListChallengeResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Challenges** | [**[]VerifyV2ServiceEntityChallenge**](verify.v2.service.entity.challenge.md) | | [optional] -**Meta** | [**VerifyV2ServiceReadResponseMeta**](verify_v2_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_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/rest/verify/v2/docs/VerifyV2ServiceEntityReadResponse.md b/rest/verify/v2/docs/ListEntityResponse.md similarity index 72% rename from rest/verify/v2/docs/VerifyV2ServiceEntityReadResponse.md rename to rest/verify/v2/docs/ListEntityResponse.md index 3b21c073e..8c4c4a27d 100644 --- a/rest/verify/v2/docs/VerifyV2ServiceEntityReadResponse.md +++ b/rest/verify/v2/docs/ListEntityResponse.md @@ -1,11 +1,11 @@ -# VerifyV2ServiceEntityReadResponse +# ListEntityResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Entities** | [**[]VerifyV2ServiceEntity**](verify.v2.service.entity.md) | | [optional] -**Meta** | [**VerifyV2ServiceReadResponseMeta**](verify_v2_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_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/rest/verify/v2/docs/VerifyV2ServiceEntityFactorReadResponse.md b/rest/verify/v2/docs/ListFactorResponse.md similarity index 72% rename from rest/verify/v2/docs/VerifyV2ServiceEntityFactorReadResponse.md rename to rest/verify/v2/docs/ListFactorResponse.md index a3860172b..17d48fe12 100644 --- a/rest/verify/v2/docs/VerifyV2ServiceEntityFactorReadResponse.md +++ b/rest/verify/v2/docs/ListFactorResponse.md @@ -1,11 +1,11 @@ -# VerifyV2ServiceEntityFactorReadResponse +# ListFactorResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Factors** | [**[]VerifyV2ServiceEntityFactor**](verify.v2.service.entity.factor.md) | | [optional] -**Meta** | [**VerifyV2ServiceReadResponseMeta**](verify_v2_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_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/rest/verify/v2/docs/VerifyV2ServiceMessagingConfigurationReadResponse.md b/rest/verify/v2/docs/ListMessagingConfigurationResponse.md similarity index 72% rename from rest/verify/v2/docs/VerifyV2ServiceMessagingConfigurationReadResponse.md rename to rest/verify/v2/docs/ListMessagingConfigurationResponse.md index 0db394eec..b08ca91dd 100644 --- a/rest/verify/v2/docs/VerifyV2ServiceMessagingConfigurationReadResponse.md +++ b/rest/verify/v2/docs/ListMessagingConfigurationResponse.md @@ -1,11 +1,11 @@ -# VerifyV2ServiceMessagingConfigurationReadResponse +# ListMessagingConfigurationResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **MessagingConfigurations** | [**[]VerifyV2ServiceMessagingConfiguration**](verify.v2.service.messaging_configuration.md) | | [optional] -**Meta** | [**VerifyV2ServiceReadResponseMeta**](verify_v2_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_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/rest/verify/v2/docs/VerifyV2ServiceRateLimitReadResponse.md b/rest/verify/v2/docs/ListRateLimitResponse.md similarity index 72% rename from rest/verify/v2/docs/VerifyV2ServiceRateLimitReadResponse.md rename to rest/verify/v2/docs/ListRateLimitResponse.md index 7397d4eb9..f27fad5bf 100644 --- a/rest/verify/v2/docs/VerifyV2ServiceRateLimitReadResponse.md +++ b/rest/verify/v2/docs/ListRateLimitResponse.md @@ -1,10 +1,10 @@ -# VerifyV2ServiceRateLimitReadResponse +# ListRateLimitResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**VerifyV2ServiceReadResponseMeta**](verify_v2_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_meta.md) | | [optional] **RateLimits** | [**[]VerifyV2ServiceRateLimit**](verify.v2.service.rate_limit.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/rest/verify/v2/docs/VerifyV2ServiceReadResponse.md b/rest/verify/v2/docs/ListServiceResponse.md similarity index 72% rename from rest/verify/v2/docs/VerifyV2ServiceReadResponse.md rename to rest/verify/v2/docs/ListServiceResponse.md index b23d91573..642ba1c58 100644 --- a/rest/verify/v2/docs/VerifyV2ServiceReadResponse.md +++ b/rest/verify/v2/docs/ListServiceResponse.md @@ -1,10 +1,10 @@ -# VerifyV2ServiceReadResponse +# ListServiceResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**VerifyV2ServiceReadResponseMeta**](verify_v2_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_meta.md) | | [optional] **Services** | [**[]VerifyV2Service**](verify.v2.service.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/rest/verify/v2/docs/ListServiceResponseMeta.md b/rest/verify/v2/docs/ListServiceResponseMeta.md new file mode 100644 index 000000000..010bc7d70 --- /dev/null +++ b/rest/verify/v2/docs/ListServiceResponseMeta.md @@ -0,0 +1,17 @@ +# ListServiceResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/verify/v2/docs/VerifyV2ServiceWebhookReadResponse.md b/rest/verify/v2/docs/ListWebhookResponse.md similarity index 72% rename from rest/verify/v2/docs/VerifyV2ServiceWebhookReadResponse.md rename to rest/verify/v2/docs/ListWebhookResponse.md index b6406b5f9..8e50a3987 100644 --- a/rest/verify/v2/docs/VerifyV2ServiceWebhookReadResponse.md +++ b/rest/verify/v2/docs/ListWebhookResponse.md @@ -1,10 +1,10 @@ -# VerifyV2ServiceWebhookReadResponse +# ListWebhookResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**VerifyV2ServiceReadResponseMeta**](verify_v2_serviceReadResponse_meta.md) | | [optional] +**Meta** | [**ListServiceResponseMeta**](ListServiceResponse_meta.md) | | [optional] **Webhooks** | [**[]VerifyV2ServiceWebhook**](verify.v2.service.webhook.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/rest/verify/v2/docs/VerifyV2ServiceReadResponseMeta.md b/rest/verify/v2/docs/VerifyV2ServiceReadResponseMeta.md deleted file mode 100644 index 330baa13e..000000000 --- a/rest/verify/v2/docs/VerifyV2ServiceReadResponseMeta.md +++ /dev/null @@ -1,17 +0,0 @@ -# VerifyV2ServiceReadResponseMeta - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FirstPageUrl** | **string** | | [optional] -**Key** | **string** | | [optional] -**NextPageUrl** | **string** | | [optional] -**Page** | **int32** | | [optional] -**PageSize** | **int32** | | [optional] -**PreviousPageUrl** | **string** | | [optional] -**Url** | **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/rest/verify/v2/model_create_access_token_request.go b/rest/verify/v2/model_create_access_token_request.go index 05b3aa069..b069a576c 100644 --- a/rest/verify/v2/model_create_access_token_request.go +++ b/rest/verify/v2/model_create_access_token_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/verify/v2/model_create_bucket_request.go b/rest/verify/v2/model_create_bucket_request.go index 69ba9b567..e99174b2c 100644 --- a/rest/verify/v2/model_create_bucket_request.go +++ b/rest/verify/v2/model_create_bucket_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/verify/v2/model_create_challenge_request.go b/rest/verify/v2/model_create_challenge_request.go index c5075660b..409795469 100644 --- a/rest/verify/v2/model_create_challenge_request.go +++ b/rest/verify/v2/model_create_challenge_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/verify/v2/model_create_entity_request.go b/rest/verify/v2/model_create_entity_request.go index e2c44d5fc..70bea5807 100644 --- a/rest/verify/v2/model_create_entity_request.go +++ b/rest/verify/v2/model_create_entity_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/verify/v2/model_create_factor_request.go b/rest/verify/v2/model_create_factor_request.go index 78518ad89..7b9a4ac84 100644 --- a/rest/verify/v2/model_create_factor_request.go +++ b/rest/verify/v2/model_create_factor_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/verify/v2/model_create_messaging_configuration_request.go b/rest/verify/v2/model_create_messaging_configuration_request.go index 249199a2d..7b549ba51 100644 --- a/rest/verify/v2/model_create_messaging_configuration_request.go +++ b/rest/verify/v2/model_create_messaging_configuration_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/verify/v2/model_create_rate_limit_request.go b/rest/verify/v2/model_create_rate_limit_request.go index 44bbc392e..113c4a4a1 100644 --- a/rest/verify/v2/model_create_rate_limit_request.go +++ b/rest/verify/v2/model_create_rate_limit_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/verify/v2/model_create_service_request.go b/rest/verify/v2/model_create_service_request.go index 5d27cbd33..4a3aa3e4b 100644 --- a/rest/verify/v2/model_create_service_request.go +++ b/rest/verify/v2/model_create_service_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/verify/v2/model_create_verification_check_request.go b/rest/verify/v2/model_create_verification_check_request.go index ada1aa25d..b6bb0fb9f 100644 --- a/rest/verify/v2/model_create_verification_check_request.go +++ b/rest/verify/v2/model_create_verification_check_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/verify/v2/model_create_verification_request.go b/rest/verify/v2/model_create_verification_request.go index 80a118661..845745e98 100644 --- a/rest/verify/v2/model_create_verification_request.go +++ b/rest/verify/v2/model_create_verification_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/verify/v2/model_create_webhook_request.go b/rest/verify/v2/model_create_webhook_request.go index fcdf24a91..297e07d13 100644 --- a/rest/verify/v2/model_create_webhook_request.go +++ b/rest/verify/v2/model_create_webhook_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/verify/v2/model_verify_v2_service_rate_limit_bucket_read_response.go b/rest/verify/v2/model_list_bucket_response.go similarity index 51% rename from rest/verify/v2/model_verify_v2_service_rate_limit_bucket_read_response.go rename to rest/verify/v2/model_list_bucket_response.go index 4e66469ef..92e8c196d 100644 --- a/rest/verify/v2/model_verify_v2_service_rate_limit_bucket_read_response.go +++ b/rest/verify/v2/model_list_bucket_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// VerifyV2ServiceRateLimitBucketReadResponse struct for VerifyV2ServiceRateLimitBucketReadResponse -type VerifyV2ServiceRateLimitBucketReadResponse struct { +// ListBucketResponse struct for ListBucketResponse +type ListBucketResponse struct { Buckets []VerifyV2ServiceRateLimitBucket `json:"Buckets,omitempty"` - Meta VerifyV2ServiceReadResponseMeta `json:"Meta,omitempty"` + Meta ListServiceResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/verify/v2/model_verify_v2_service_entity_challenge_read_response.go b/rest/verify/v2/model_list_challenge_response.go similarity index 52% rename from rest/verify/v2/model_verify_v2_service_entity_challenge_read_response.go rename to rest/verify/v2/model_list_challenge_response.go index dfb7a40f1..0e47001b2 100644 --- a/rest/verify/v2/model_verify_v2_service_entity_challenge_read_response.go +++ b/rest/verify/v2/model_list_challenge_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// VerifyV2ServiceEntityChallengeReadResponse struct for VerifyV2ServiceEntityChallengeReadResponse -type VerifyV2ServiceEntityChallengeReadResponse struct { +// ListChallengeResponse struct for ListChallengeResponse +type ListChallengeResponse struct { Challenges []VerifyV2ServiceEntityChallenge `json:"Challenges,omitempty"` - Meta VerifyV2ServiceReadResponseMeta `json:"Meta,omitempty"` + Meta ListServiceResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/verify/v2/model_verify_v2_service_entity_read_response.go b/rest/verify/v2/model_list_entity_response.go similarity index 53% rename from rest/verify/v2/model_verify_v2_service_entity_read_response.go rename to rest/verify/v2/model_list_entity_response.go index 899f03726..c1c7296c3 100644 --- a/rest/verify/v2/model_verify_v2_service_entity_read_response.go +++ b/rest/verify/v2/model_list_entity_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// VerifyV2ServiceEntityReadResponse struct for VerifyV2ServiceEntityReadResponse -type VerifyV2ServiceEntityReadResponse struct { +// ListEntityResponse struct for ListEntityResponse +type ListEntityResponse struct { Entities []VerifyV2ServiceEntity `json:"Entities,omitempty"` - Meta VerifyV2ServiceReadResponseMeta `json:"Meta,omitempty"` + Meta ListServiceResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/verify/v2/model_verify_v2_service_entity_factor_read_response.go b/rest/verify/v2/model_list_factor_response.go similarity index 52% rename from rest/verify/v2/model_verify_v2_service_entity_factor_read_response.go rename to rest/verify/v2/model_list_factor_response.go index 984c2af7b..4cd2e9690 100644 --- a/rest/verify/v2/model_verify_v2_service_entity_factor_read_response.go +++ b/rest/verify/v2/model_list_factor_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// VerifyV2ServiceEntityFactorReadResponse struct for VerifyV2ServiceEntityFactorReadResponse -type VerifyV2ServiceEntityFactorReadResponse struct { +// ListFactorResponse struct for ListFactorResponse +type ListFactorResponse struct { Factors []VerifyV2ServiceEntityFactor `json:"Factors,omitempty"` - Meta VerifyV2ServiceReadResponseMeta `json:"Meta,omitempty"` + Meta ListServiceResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/verify/v2/model_verify_v2_service_messaging_configuration_read_response.go b/rest/verify/v2/model_list_messaging_configuration_response.go similarity index 53% rename from rest/verify/v2/model_verify_v2_service_messaging_configuration_read_response.go rename to rest/verify/v2/model_list_messaging_configuration_response.go index c15f0194f..c6ab601f6 100644 --- a/rest/verify/v2/model_verify_v2_service_messaging_configuration_read_response.go +++ b/rest/verify/v2/model_list_messaging_configuration_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// VerifyV2ServiceMessagingConfigurationReadResponse struct for VerifyV2ServiceMessagingConfigurationReadResponse -type VerifyV2ServiceMessagingConfigurationReadResponse struct { +// ListMessagingConfigurationResponse struct for ListMessagingConfigurationResponse +type ListMessagingConfigurationResponse struct { MessagingConfigurations []VerifyV2ServiceMessagingConfiguration `json:"MessagingConfigurations,omitempty"` - Meta VerifyV2ServiceReadResponseMeta `json:"Meta,omitempty"` + Meta ListServiceResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/verify/v2/model_verify_v2_service_rate_limit_read_response.go b/rest/verify/v2/model_list_rate_limit_response.go similarity index 53% rename from rest/verify/v2/model_verify_v2_service_rate_limit_read_response.go rename to rest/verify/v2/model_list_rate_limit_response.go index 36d8f1d8d..a97901bd9 100644 --- a/rest/verify/v2/model_verify_v2_service_rate_limit_read_response.go +++ b/rest/verify/v2/model_list_rate_limit_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// VerifyV2ServiceRateLimitReadResponse struct for VerifyV2ServiceRateLimitReadResponse -type VerifyV2ServiceRateLimitReadResponse struct { - Meta VerifyV2ServiceReadResponseMeta `json:"Meta,omitempty"` +// ListRateLimitResponse struct for ListRateLimitResponse +type ListRateLimitResponse struct { + Meta ListServiceResponseMeta `json:"Meta,omitempty"` RateLimits []VerifyV2ServiceRateLimit `json:"RateLimits,omitempty"` } diff --git a/rest/verify/v2/model_verify_v2_service_read_response.go b/rest/verify/v2/model_list_service_response.go similarity index 55% rename from rest/verify/v2/model_verify_v2_service_read_response.go rename to rest/verify/v2/model_list_service_response.go index a78785329..f2105da5c 100644 --- a/rest/verify/v2/model_verify_v2_service_read_response.go +++ b/rest/verify/v2/model_list_service_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// VerifyV2ServiceReadResponse struct for VerifyV2ServiceReadResponse -type VerifyV2ServiceReadResponse struct { - Meta VerifyV2ServiceReadResponseMeta `json:"Meta,omitempty"` +// ListServiceResponse struct for ListServiceResponse +type ListServiceResponse struct { + Meta ListServiceResponseMeta `json:"Meta,omitempty"` Services []VerifyV2Service `json:"Services,omitempty"` } diff --git a/rest/verify/v2/model_verify_v2_service_read_response_meta.go b/rest/verify/v2/model_list_service_response_meta.go similarity index 77% rename from rest/verify/v2/model_verify_v2_service_read_response_meta.go rename to rest/verify/v2/model_list_service_response_meta.go index 27ce1ccc3..18f52cf0c 100644 --- a/rest/verify/v2/model_verify_v2_service_read_response_meta.go +++ b/rest/verify/v2/model_list_service_response_meta.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// VerifyV2ServiceReadResponseMeta struct for VerifyV2ServiceReadResponseMeta -type VerifyV2ServiceReadResponseMeta struct { +// ListServiceResponseMeta struct for ListServiceResponseMeta +type ListServiceResponseMeta struct { FirstPageUrl string `json:"FirstPageUrl,omitempty"` Key string `json:"Key,omitempty"` NextPageUrl string `json:"NextPageUrl,omitempty"` diff --git a/rest/verify/v2/model_verify_v2_service_webhook_read_response.go b/rest/verify/v2/model_list_webhook_response.go similarity index 53% rename from rest/verify/v2/model_verify_v2_service_webhook_read_response.go rename to rest/verify/v2/model_list_webhook_response.go index 48d38c57f..161d20e39 100644 --- a/rest/verify/v2/model_verify_v2_service_webhook_read_response.go +++ b/rest/verify/v2/model_list_webhook_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// VerifyV2ServiceWebhookReadResponse struct for VerifyV2ServiceWebhookReadResponse -type VerifyV2ServiceWebhookReadResponse struct { - Meta VerifyV2ServiceReadResponseMeta `json:"Meta,omitempty"` +// ListWebhookResponse struct for ListWebhookResponse +type ListWebhookResponse struct { + Meta ListServiceResponseMeta `json:"Meta,omitempty"` Webhooks []VerifyV2ServiceWebhook `json:"Webhooks,omitempty"` } diff --git a/rest/verify/v2/model_update_bucket_request.go b/rest/verify/v2/model_update_bucket_request.go index cfb0e779d..948ee4ac7 100644 --- a/rest/verify/v2/model_update_bucket_request.go +++ b/rest/verify/v2/model_update_bucket_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/verify/v2/model_update_challenge_request.go b/rest/verify/v2/model_update_challenge_request.go index a4ecf6b3b..2f3b444a4 100644 --- a/rest/verify/v2/model_update_challenge_request.go +++ b/rest/verify/v2/model_update_challenge_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/verify/v2/model_update_factor_request.go b/rest/verify/v2/model_update_factor_request.go index 6d0b83201..7b7120815 100644 --- a/rest/verify/v2/model_update_factor_request.go +++ b/rest/verify/v2/model_update_factor_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/verify/v2/model_update_messaging_configuration_request.go b/rest/verify/v2/model_update_messaging_configuration_request.go index be74d3398..4aeda8428 100644 --- a/rest/verify/v2/model_update_messaging_configuration_request.go +++ b/rest/verify/v2/model_update_messaging_configuration_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/verify/v2/model_update_rate_limit_request.go b/rest/verify/v2/model_update_rate_limit_request.go index e154b724a..fa51a88c3 100644 --- a/rest/verify/v2/model_update_rate_limit_request.go +++ b/rest/verify/v2/model_update_rate_limit_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/verify/v2/model_update_service_request.go b/rest/verify/v2/model_update_service_request.go index 156c74e57..7e6778f62 100644 --- a/rest/verify/v2/model_update_service_request.go +++ b/rest/verify/v2/model_update_service_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/verify/v2/model_update_verification_request.go b/rest/verify/v2/model_update_verification_request.go index 00080302f..df63b2846 100644 --- a/rest/verify/v2/model_update_verification_request.go +++ b/rest/verify/v2/model_update_verification_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/verify/v2/model_update_webhook_request.go b/rest/verify/v2/model_update_webhook_request.go index 9fdf0552f..d656f4688 100644 --- a/rest/verify/v2/model_update_webhook_request.go +++ b/rest/verify/v2/model_update_webhook_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/verify/v2/model_verify_v2_form.go b/rest/verify/v2/model_verify_v2_form.go index 04b4fd436..09671f0f0 100644 --- a/rest/verify/v2/model_verify_v2_form.go +++ b/rest/verify/v2/model_verify_v2_form.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/verify/v2/model_verify_v2_service.go b/rest/verify/v2/model_verify_v2_service.go index e4d7bb012..7c24e7857 100644 --- a/rest/verify/v2/model_verify_v2_service.go +++ b/rest/verify/v2/model_verify_v2_service.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/verify/v2/model_verify_v2_service_access_token.go b/rest/verify/v2/model_verify_v2_service_access_token.go index 028a17422..6a1340b8d 100644 --- a/rest/verify/v2/model_verify_v2_service_access_token.go +++ b/rest/verify/v2/model_verify_v2_service_access_token.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/verify/v2/model_verify_v2_service_entity.go b/rest/verify/v2/model_verify_v2_service_entity.go index 6a3a378e9..38aef9777 100644 --- a/rest/verify/v2/model_verify_v2_service_entity.go +++ b/rest/verify/v2/model_verify_v2_service_entity.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/verify/v2/model_verify_v2_service_entity_challenge.go b/rest/verify/v2/model_verify_v2_service_entity_challenge.go index 03d4514c8..7c3c62fdc 100644 --- a/rest/verify/v2/model_verify_v2_service_entity_challenge.go +++ b/rest/verify/v2/model_verify_v2_service_entity_challenge.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/verify/v2/model_verify_v2_service_entity_factor.go b/rest/verify/v2/model_verify_v2_service_entity_factor.go index 4a96b7e8c..191314ba2 100644 --- a/rest/verify/v2/model_verify_v2_service_entity_factor.go +++ b/rest/verify/v2/model_verify_v2_service_entity_factor.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/verify/v2/model_verify_v2_service_messaging_configuration.go b/rest/verify/v2/model_verify_v2_service_messaging_configuration.go index 792ed09f5..9d25ee9f2 100644 --- a/rest/verify/v2/model_verify_v2_service_messaging_configuration.go +++ b/rest/verify/v2/model_verify_v2_service_messaging_configuration.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/verify/v2/model_verify_v2_service_rate_limit.go b/rest/verify/v2/model_verify_v2_service_rate_limit.go index a83163d9d..1fd256d17 100644 --- a/rest/verify/v2/model_verify_v2_service_rate_limit.go +++ b/rest/verify/v2/model_verify_v2_service_rate_limit.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/verify/v2/model_verify_v2_service_rate_limit_bucket.go b/rest/verify/v2/model_verify_v2_service_rate_limit_bucket.go index f7536e7fb..435d6ac67 100644 --- a/rest/verify/v2/model_verify_v2_service_rate_limit_bucket.go +++ b/rest/verify/v2/model_verify_v2_service_rate_limit_bucket.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/verify/v2/model_verify_v2_service_verification.go b/rest/verify/v2/model_verify_v2_service_verification.go index 93af07caa..aecf377d2 100644 --- a/rest/verify/v2/model_verify_v2_service_verification.go +++ b/rest/verify/v2/model_verify_v2_service_verification.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/verify/v2/model_verify_v2_service_verification_check.go b/rest/verify/v2/model_verify_v2_service_verification_check.go index 615cdbc60..bf196f7b0 100644 --- a/rest/verify/v2/model_verify_v2_service_verification_check.go +++ b/rest/verify/v2/model_verify_v2_service_verification_check.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/verify/v2/model_verify_v2_service_webhook.go b/rest/verify/v2/model_verify_v2_service_webhook.go index 542e2027a..672191daf 100644 --- a/rest/verify/v2/model_verify_v2_service_webhook.go +++ b/rest/verify/v2/model_verify_v2_service_webhook.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/verify/v2/response.go b/rest/verify/v2/response.go index 6061faaa3..1644b988b 100644 --- a/rest/verify/v2/response.go +++ b/rest/verify/v2/response.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/video/v1/README.md b/rest/video/v1/README.md index 232f53650..6eb098c54 100644 --- a/rest/video/v1/README.md +++ b/rest/video/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 5.15.0 +- API version: 1.0.0 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) @@ -74,6 +74,15 @@ Class | Method | HTTP request | Description - [CreateCompositionSettingsRequest](docs/CreateCompositionSettingsRequest.md) - [CreateRecordingSettingsRequest](docs/CreateRecordingSettingsRequest.md) - [CreateRoomRequest](docs/CreateRoomRequest.md) + - [ListCompositionHookResponse](docs/ListCompositionHookResponse.md) + - [ListCompositionHookResponseMeta](docs/ListCompositionHookResponseMeta.md) + - [ListCompositionResponse](docs/ListCompositionResponse.md) + - [ListRecordingResponse](docs/ListRecordingResponse.md) + - [ListRoomParticipantPublishedTrackResponse](docs/ListRoomParticipantPublishedTrackResponse.md) + - [ListRoomParticipantResponse](docs/ListRoomParticipantResponse.md) + - [ListRoomParticipantSubscribedTrackResponse](docs/ListRoomParticipantSubscribedTrackResponse.md) + - [ListRoomRecordingResponse](docs/ListRoomRecordingResponse.md) + - [ListRoomResponse](docs/ListRoomResponse.md) - [UpdateCompositionHookRequest](docs/UpdateCompositionHookRequest.md) - [UpdateRoomParticipantRequest](docs/UpdateRoomParticipantRequest.md) - [UpdateRoomParticipantSubscribeRuleRequest](docs/UpdateRoomParticipantSubscribeRuleRequest.md) @@ -81,24 +90,15 @@ Class | Method | HTTP request | Description - [UpdateRoomRequest](docs/UpdateRoomRequest.md) - [VideoV1Composition](docs/VideoV1Composition.md) - [VideoV1CompositionHook](docs/VideoV1CompositionHook.md) - - [VideoV1CompositionHookReadResponse](docs/VideoV1CompositionHookReadResponse.md) - - [VideoV1CompositionHookReadResponseMeta](docs/VideoV1CompositionHookReadResponseMeta.md) - - [VideoV1CompositionReadResponse](docs/VideoV1CompositionReadResponse.md) - [VideoV1CompositionSettings](docs/VideoV1CompositionSettings.md) - [VideoV1Recording](docs/VideoV1Recording.md) - - [VideoV1RecordingReadResponse](docs/VideoV1RecordingReadResponse.md) - [VideoV1RecordingSettings](docs/VideoV1RecordingSettings.md) - [VideoV1Room](docs/VideoV1Room.md) - - [VideoV1RoomReadResponse](docs/VideoV1RoomReadResponse.md) - [VideoV1RoomRoomParticipant](docs/VideoV1RoomRoomParticipant.md) - - [VideoV1RoomRoomParticipantReadResponse](docs/VideoV1RoomRoomParticipantReadResponse.md) - [VideoV1RoomRoomParticipantRoomParticipantPublishedTrack](docs/VideoV1RoomRoomParticipantRoomParticipantPublishedTrack.md) - - [VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse](docs/VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse.md) - [VideoV1RoomRoomParticipantRoomParticipantSubscribeRule](docs/VideoV1RoomRoomParticipantRoomParticipantSubscribeRule.md) - [VideoV1RoomRoomParticipantRoomParticipantSubscribedTrack](docs/VideoV1RoomRoomParticipantRoomParticipantSubscribedTrack.md) - - [VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse](docs/VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse.md) - [VideoV1RoomRoomRecording](docs/VideoV1RoomRoomRecording.md) - - [VideoV1RoomRoomRecordingReadResponse](docs/VideoV1RoomRoomRecordingReadResponse.md) - [VideoV1RoomRoomRecordingRule](docs/VideoV1RoomRoomRecordingRule.md) diff --git a/rest/video/v1/api_default.go b/rest/video/v1/api_default.go index 0559eba76..03dc4a48c 100644 --- a/rest/video/v1/api_default.go +++ b/rest/video/v1/api_default.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -27,20 +27,20 @@ type DefaultApiService struct { func NewDefaultApiService(client *twilio.Client) *DefaultApiService { return &DefaultApiService { client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + baseURL: fmt.Sprintf("https://video.twilio.com"), } } // CreateCompositionParams Optional parameters for the method 'CreateComposition' type CreateCompositionParams struct { - AudioSources *[]string `json:"AudioSources,omitempty"` - AudioSourcesExcluded *[]string `json:"AudioSourcesExcluded,omitempty"` - Format *string `json:"Format,omitempty"` - Resolution *string `json:"Resolution,omitempty"` - RoomSid *string `json:"RoomSid,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - Trim *bool `json:"Trim,omitempty"` - VideoLayout *map[string]interface{} `json:"VideoLayout,omitempty"` + AudioSources *[]string `json:"AudioSources,omitempty"` + AudioSourcesExcluded *[]string `json:"AudioSourcesExcluded,omitempty"` + Format *string `json:"Format,omitempty"` + Resolution *string `json:"Resolution,omitempty"` + RoomSid *string `json:"RoomSid,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + Trim *bool `json:"Trim,omitempty"` + VideoLayout *map[string]interface{} `json:"VideoLayout,omitempty"` } /* @@ -115,16 +115,16 @@ func (c *DefaultApiService) CreateComposition(params *CreateCompositionParams) ( } // CreateCompositionHookParams Optional parameters for the method 'CreateCompositionHook' type CreateCompositionHookParams struct { - AudioSources *[]string `json:"AudioSources,omitempty"` - AudioSourcesExcluded *[]string `json:"AudioSourcesExcluded,omitempty"` - Enabled *bool `json:"Enabled,omitempty"` - Format *string `json:"Format,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Resolution *string `json:"Resolution,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - Trim *bool `json:"Trim,omitempty"` - VideoLayout *map[string]interface{} `json:"VideoLayout,omitempty"` + AudioSources *[]string `json:"AudioSources,omitempty"` + AudioSourcesExcluded *[]string `json:"AudioSourcesExcluded,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + Format *string `json:"Format,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Resolution *string `json:"Resolution,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + Trim *bool `json:"Trim,omitempty"` + VideoLayout *map[string]interface{} `json:"VideoLayout,omitempty"` } /* @@ -203,12 +203,12 @@ func (c *DefaultApiService) CreateCompositionHook(params *CreateCompositionHookP } // CreateCompositionSettingsParams Optional parameters for the method 'CreateCompositionSettings' type CreateCompositionSettingsParams struct { - AwsCredentialsSid *string `json:"AwsCredentialsSid,omitempty"` - AwsS3Url *string `json:"AwsS3Url,omitempty"` - AwsStorageEnabled *bool `json:"AwsStorageEnabled,omitempty"` - EncryptionEnabled *bool `json:"EncryptionEnabled,omitempty"` - EncryptionKeySid *string `json:"EncryptionKeySid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` + AwsCredentialsSid *string `json:"AwsCredentialsSid,omitempty"` + AwsS3Url *string `json:"AwsS3Url,omitempty"` + AwsStorageEnabled *bool `json:"AwsStorageEnabled,omitempty"` + EncryptionEnabled *bool `json:"EncryptionEnabled,omitempty"` + EncryptionKeySid *string `json:"EncryptionKeySid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -265,12 +265,12 @@ func (c *DefaultApiService) CreateCompositionSettings(params *CreateCompositionS } // CreateRecordingSettingsParams Optional parameters for the method 'CreateRecordingSettings' type CreateRecordingSettingsParams struct { - AwsCredentialsSid *string `json:"AwsCredentialsSid,omitempty"` - AwsS3Url *string `json:"AwsS3Url,omitempty"` - AwsStorageEnabled *bool `json:"AwsStorageEnabled,omitempty"` - EncryptionEnabled *bool `json:"EncryptionEnabled,omitempty"` - EncryptionKeySid *string `json:"EncryptionKeySid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` + AwsCredentialsSid *string `json:"AwsCredentialsSid,omitempty"` + AwsS3Url *string `json:"AwsS3Url,omitempty"` + AwsStorageEnabled *bool `json:"AwsStorageEnabled,omitempty"` + EncryptionEnabled *bool `json:"EncryptionEnabled,omitempty"` + EncryptionKeySid *string `json:"EncryptionKeySid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -327,15 +327,15 @@ func (c *DefaultApiService) CreateRecordingSettings(params *CreateRecordingSetti } // CreateRoomParams Optional parameters for the method 'CreateRoom' type CreateRoomParams struct { - EnableTurn *bool `json:"EnableTurn,omitempty"` - MaxParticipants *int32 `json:"MaxParticipants,omitempty"` - MediaRegion *string `json:"MediaRegion,omitempty"` - RecordParticipantsOnConnect *bool `json:"RecordParticipantsOnConnect,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - Type *string `json:"Type,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` - VideoCodecs *[]string `json:"VideoCodecs,omitempty"` + EnableTurn *bool `json:"EnableTurn,omitempty"` + MaxParticipants *int32 `json:"MaxParticipants,omitempty"` + MediaRegion *string `json:"MediaRegion,omitempty"` + RecordParticipantsOnConnect *bool `json:"RecordParticipantsOnConnect,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + Type *string `json:"Type,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + VideoCodecs *[]string `json:"VideoCodecs,omitempty"` } /* @@ -882,11 +882,11 @@ func (c *DefaultApiService) FetchRoomRecordingRule(RoomSid string) (*VideoV1Room } // ListCompositionParams Optional parameters for the method 'ListComposition' type ListCompositionParams struct { - Status *string `json:"Status,omitempty"` - DateCreatedAfter *time.Time `json:"DateCreatedAfter,omitempty"` - DateCreatedBefore *time.Time `json:"DateCreatedBefore,omitempty"` - RoomSid *string `json:"RoomSid,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Status *string `json:"Status,omitempty"` + DateCreatedAfter *time.Time `json:"DateCreatedAfter,omitempty"` + DateCreatedBefore *time.Time `json:"DateCreatedBefore,omitempty"` + RoomSid *string `json:"RoomSid,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -898,9 +898,9 @@ List of all Recording compositions. * @param "DateCreatedBefore" (time.Time) - Read only Composition resources created before this ISO 8601 date-time with time zone. * @param "RoomSid" (string) - Read only Composition resources with this Room SID. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return VideoV1CompositionReadResponse +@return ListCompositionResponse */ -func (c *DefaultApiService) ListComposition(params *ListCompositionParams) (*VideoV1CompositionReadResponse, error) { +func (c *DefaultApiService) ListComposition(params *ListCompositionParams) (*ListCompositionResponse, error) { path := "/v1/Compositions" @@ -931,7 +931,7 @@ func (c *DefaultApiService) ListComposition(params *ListCompositionParams) (*Vid defer resp.Body.Close() - ps := &VideoV1CompositionReadResponse{} + ps := &ListCompositionResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -940,11 +940,11 @@ func (c *DefaultApiService) ListComposition(params *ListCompositionParams) (*Vid } // ListCompositionHookParams Optional parameters for the method 'ListCompositionHook' type ListCompositionHookParams struct { - Enabled *bool `json:"Enabled,omitempty"` - DateCreatedAfter *time.Time `json:"DateCreatedAfter,omitempty"` - DateCreatedBefore *time.Time `json:"DateCreatedBefore,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + DateCreatedAfter *time.Time `json:"DateCreatedAfter,omitempty"` + DateCreatedBefore *time.Time `json:"DateCreatedBefore,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -956,9 +956,9 @@ List of all Recording CompositionHook resources. * @param "DateCreatedBefore" (time.Time) - Read only CompositionHook resources created before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone. * @param "FriendlyName" (string) - Read only CompositionHook resources with friendly names that match this string. The match is not case sensitive and can include asterisk `*` characters as wildcard match. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return VideoV1CompositionHookReadResponse +@return ListCompositionHookResponse */ -func (c *DefaultApiService) ListCompositionHook(params *ListCompositionHookParams) (*VideoV1CompositionHookReadResponse, error) { +func (c *DefaultApiService) ListCompositionHook(params *ListCompositionHookParams) (*ListCompositionHookResponse, error) { path := "/v1/CompositionHooks" @@ -989,7 +989,7 @@ func (c *DefaultApiService) ListCompositionHook(params *ListCompositionHookParam defer resp.Body.Close() - ps := &VideoV1CompositionHookReadResponse{} + ps := &ListCompositionHookResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -998,13 +998,13 @@ func (c *DefaultApiService) ListCompositionHook(params *ListCompositionHookParam } // ListRecordingParams Optional parameters for the method 'ListRecording' type ListRecordingParams struct { - Status *string `json:"Status,omitempty"` - SourceSid *string `json:"SourceSid,omitempty"` - GroupingSid *[]string `json:"GroupingSid,omitempty"` - DateCreatedAfter *time.Time `json:"DateCreatedAfter,omitempty"` - DateCreatedBefore *time.Time `json:"DateCreatedBefore,omitempty"` - MediaType *string `json:"MediaType,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Status *string `json:"Status,omitempty"` + SourceSid *string `json:"SourceSid,omitempty"` + GroupingSid *[]string `json:"GroupingSid,omitempty"` + DateCreatedAfter *time.Time `json:"DateCreatedAfter,omitempty"` + DateCreatedBefore *time.Time `json:"DateCreatedBefore,omitempty"` + MediaType *string `json:"MediaType,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1018,9 +1018,9 @@ List of all Track recordings. * @param "DateCreatedBefore" (time.Time) - Read only recordings that started before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time with time zone, given as `YYYY-MM-DDThh:mm:ss+|-hh:mm` or `YYYY-MM-DDThh:mm:ssZ`. * @param "MediaType" (string) - Read only recordings that have this media type. Can be either `audio` or `video`. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return VideoV1RecordingReadResponse +@return ListRecordingResponse */ -func (c *DefaultApiService) ListRecording(params *ListRecordingParams) (*VideoV1RecordingReadResponse, error) { +func (c *DefaultApiService) ListRecording(params *ListRecordingParams) (*ListRecordingResponse, error) { path := "/v1/Recordings" @@ -1057,7 +1057,7 @@ func (c *DefaultApiService) ListRecording(params *ListRecordingParams) (*VideoV1 defer resp.Body.Close() - ps := &VideoV1RecordingReadResponse{} + ps := &ListRecordingResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1066,11 +1066,11 @@ func (c *DefaultApiService) ListRecording(params *ListRecordingParams) (*VideoV1 } // ListRoomParams Optional parameters for the method 'ListRoom' type ListRoomParams struct { - Status *string `json:"Status,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` - DateCreatedAfter *time.Time `json:"DateCreatedAfter,omitempty"` - DateCreatedBefore *time.Time `json:"DateCreatedBefore,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Status *string `json:"Status,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + DateCreatedAfter *time.Time `json:"DateCreatedAfter,omitempty"` + DateCreatedBefore *time.Time `json:"DateCreatedBefore,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1081,9 +1081,9 @@ ListRoom Method for ListRoom * @param "DateCreatedAfter" (time.Time) - Read only rooms that started on or after this date, given as `YYYY-MM-DD`. * @param "DateCreatedBefore" (time.Time) - Read only rooms that started before this date, given as `YYYY-MM-DD`. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return VideoV1RoomReadResponse +@return ListRoomResponse */ -func (c *DefaultApiService) ListRoom(params *ListRoomParams) (*VideoV1RoomReadResponse, error) { +func (c *DefaultApiService) ListRoom(params *ListRoomParams) (*ListRoomResponse, error) { path := "/v1/Rooms" @@ -1114,7 +1114,7 @@ func (c *DefaultApiService) ListRoom(params *ListRoomParams) (*VideoV1RoomReadRe defer resp.Body.Close() - ps := &VideoV1RoomReadResponse{} + ps := &ListRoomResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1123,11 +1123,11 @@ func (c *DefaultApiService) ListRoom(params *ListRoomParams) (*VideoV1RoomReadRe } // ListRoomParticipantParams Optional parameters for the method 'ListRoomParticipant' type ListRoomParticipantParams struct { - Status *string `json:"Status,omitempty"` - Identity *string `json:"Identity,omitempty"` - DateCreatedAfter *time.Time `json:"DateCreatedAfter,omitempty"` - DateCreatedBefore *time.Time `json:"DateCreatedBefore,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Status *string `json:"Status,omitempty"` + Identity *string `json:"Identity,omitempty"` + DateCreatedAfter *time.Time `json:"DateCreatedAfter,omitempty"` + DateCreatedBefore *time.Time `json:"DateCreatedBefore,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1139,9 +1139,9 @@ ListRoomParticipant Method for ListRoomParticipant * @param "DateCreatedAfter" (time.Time) - Read only Participants that started after this date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#UTC) format. * @param "DateCreatedBefore" (time.Time) - Read only Participants that started before this date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601#UTC) format. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return VideoV1RoomRoomParticipantReadResponse +@return ListRoomParticipantResponse */ -func (c *DefaultApiService) ListRoomParticipant(RoomSid string, params *ListRoomParticipantParams) (*VideoV1RoomRoomParticipantReadResponse, error) { +func (c *DefaultApiService) ListRoomParticipant(RoomSid string, params *ListRoomParticipantParams) (*ListRoomParticipantResponse, error) { path := "/v1/Rooms/{RoomSid}/Participants" path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) @@ -1173,7 +1173,7 @@ func (c *DefaultApiService) ListRoomParticipant(RoomSid string, params *ListRoom defer resp.Body.Close() - ps := &VideoV1RoomRoomParticipantReadResponse{} + ps := &ListRoomParticipantResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1182,7 +1182,7 @@ func (c *DefaultApiService) ListRoomParticipant(RoomSid string, params *ListRoom } // ListRoomParticipantPublishedTrackParams Optional parameters for the method 'ListRoomParticipantPublishedTrack' type ListRoomParticipantPublishedTrackParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1192,9 +1192,9 @@ Returns a list of tracks associated with a given Participant. Only `current * @param ParticipantSid The SID of the Participant resource with the published tracks to read. * @param optional nil or *ListRoomParticipantPublishedTrackOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse +@return ListRoomParticipantPublishedTrackResponse */ -func (c *DefaultApiService) ListRoomParticipantPublishedTrack(RoomSid string, ParticipantSid string, params *ListRoomParticipantPublishedTrackParams) (*VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse, error) { +func (c *DefaultApiService) ListRoomParticipantPublishedTrack(RoomSid string, ParticipantSid string, params *ListRoomParticipantPublishedTrackParams) (*ListRoomParticipantPublishedTrackResponse, error) { path := "/v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/PublishedTracks" path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) path = strings.Replace(path, "{"+"ParticipantSid"+"}", ParticipantSid, -1) @@ -1215,7 +1215,7 @@ func (c *DefaultApiService) ListRoomParticipantPublishedTrack(RoomSid string, Pa defer resp.Body.Close() - ps := &VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse{} + ps := &ListRoomParticipantPublishedTrackResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1224,7 +1224,7 @@ func (c *DefaultApiService) ListRoomParticipantPublishedTrack(RoomSid string, Pa } // ListRoomParticipantSubscribedTrackParams Optional parameters for the method 'ListRoomParticipantSubscribedTrack' type ListRoomParticipantSubscribedTrackParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1234,9 +1234,9 @@ Returns a list of tracks that are subscribed for the participant. * @param ParticipantSid The SID of the participant that subscribes to the Track resources to read. * @param optional nil or *ListRoomParticipantSubscribedTrackOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse +@return ListRoomParticipantSubscribedTrackResponse */ -func (c *DefaultApiService) ListRoomParticipantSubscribedTrack(RoomSid string, ParticipantSid string, params *ListRoomParticipantSubscribedTrackParams) (*VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse, error) { +func (c *DefaultApiService) ListRoomParticipantSubscribedTrack(RoomSid string, ParticipantSid string, params *ListRoomParticipantSubscribedTrackParams) (*ListRoomParticipantSubscribedTrackResponse, error) { path := "/v1/Rooms/{RoomSid}/Participants/{ParticipantSid}/SubscribedTracks" path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) path = strings.Replace(path, "{"+"ParticipantSid"+"}", ParticipantSid, -1) @@ -1257,7 +1257,7 @@ func (c *DefaultApiService) ListRoomParticipantSubscribedTrack(RoomSid string, P defer resp.Body.Close() - ps := &VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse{} + ps := &ListRoomParticipantSubscribedTrackResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1266,11 +1266,11 @@ func (c *DefaultApiService) ListRoomParticipantSubscribedTrack(RoomSid string, P } // ListRoomRecordingParams Optional parameters for the method 'ListRoomRecording' type ListRoomRecordingParams struct { - Status *string `json:"Status,omitempty"` - SourceSid *string `json:"SourceSid,omitempty"` - DateCreatedAfter *time.Time `json:"DateCreatedAfter,omitempty"` - DateCreatedBefore *time.Time `json:"DateCreatedBefore,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Status *string `json:"Status,omitempty"` + SourceSid *string `json:"SourceSid,omitempty"` + DateCreatedAfter *time.Time `json:"DateCreatedAfter,omitempty"` + DateCreatedBefore *time.Time `json:"DateCreatedBefore,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -1282,9 +1282,9 @@ ListRoomRecording Method for ListRoomRecording * @param "DateCreatedAfter" (time.Time) - Read only recordings that started on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone. * @param "DateCreatedBefore" (time.Time) - Read only Recordings that started before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) datetime with time zone. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return VideoV1RoomRoomRecordingReadResponse +@return ListRoomRecordingResponse */ -func (c *DefaultApiService) ListRoomRecording(RoomSid string, params *ListRoomRecordingParams) (*VideoV1RoomRoomRecordingReadResponse, error) { +func (c *DefaultApiService) ListRoomRecording(RoomSid string, params *ListRoomRecordingParams) (*ListRoomRecordingResponse, error) { path := "/v1/Rooms/{RoomSid}/Recordings" path = strings.Replace(path, "{"+"RoomSid"+"}", RoomSid, -1) @@ -1316,7 +1316,7 @@ func (c *DefaultApiService) ListRoomRecording(RoomSid string, params *ListRoomRe defer resp.Body.Close() - ps := &VideoV1RoomRoomRecordingReadResponse{} + ps := &ListRoomRecordingResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -1325,16 +1325,16 @@ func (c *DefaultApiService) ListRoomRecording(RoomSid string, params *ListRoomRe } // UpdateCompositionHookParams Optional parameters for the method 'UpdateCompositionHook' type UpdateCompositionHookParams struct { - AudioSources *[]string `json:"AudioSources,omitempty"` - AudioSourcesExcluded *[]string `json:"AudioSourcesExcluded,omitempty"` - Enabled *bool `json:"Enabled,omitempty"` - Format *string `json:"Format,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Resolution *string `json:"Resolution,omitempty"` - StatusCallback *string `json:"StatusCallback,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - Trim *bool `json:"Trim,omitempty"` - VideoLayout *map[string]interface{} `json:"VideoLayout,omitempty"` + AudioSources *[]string `json:"AudioSources,omitempty"` + AudioSourcesExcluded *[]string `json:"AudioSourcesExcluded,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + Format *string `json:"Format,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Resolution *string `json:"Resolution,omitempty"` + StatusCallback *string `json:"StatusCallback,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + Trim *bool `json:"Trim,omitempty"` + VideoLayout *map[string]interface{} `json:"VideoLayout,omitempty"` } /* @@ -1415,7 +1415,7 @@ func (c *DefaultApiService) UpdateCompositionHook(Sid string, params *UpdateComp } // UpdateRoomParams Optional parameters for the method 'UpdateRoom' type UpdateRoomParams struct { - Status *string `json:"Status,omitempty"` + Status *string `json:"Status,omitempty"` } /* @@ -1454,7 +1454,7 @@ func (c *DefaultApiService) UpdateRoom(Sid string, params *UpdateRoomParams) (*V } // UpdateRoomParticipantParams Optional parameters for the method 'UpdateRoomParticipant' type UpdateRoomParticipantParams struct { - Status *string `json:"Status,omitempty"` + Status *string `json:"Status,omitempty"` } /* @@ -1495,7 +1495,7 @@ func (c *DefaultApiService) UpdateRoomParticipant(RoomSid string, Sid string, pa } // UpdateRoomParticipantSubscribeRuleParams Optional parameters for the method 'UpdateRoomParticipantSubscribeRule' type UpdateRoomParticipantSubscribeRuleParams struct { - Rules *map[string]interface{} `json:"Rules,omitempty"` + Rules *map[string]interface{} `json:"Rules,omitempty"` } /* @@ -1543,7 +1543,7 @@ func (c *DefaultApiService) UpdateRoomParticipantSubscribeRule(RoomSid string, P } // UpdateRoomRecordingRuleParams Optional parameters for the method 'UpdateRoomRecordingRule' type UpdateRoomRecordingRuleParams struct { - Rules *map[string]interface{} `json:"Rules,omitempty"` + Rules *map[string]interface{} `json:"Rules,omitempty"` } /* diff --git a/rest/video/v1/docs/DefaultApi.md b/rest/video/v1/docs/DefaultApi.md index e6173b088..f6e4239c6 100644 --- a/rest/video/v1/docs/DefaultApi.md +++ b/rest/video/v1/docs/DefaultApi.md @@ -815,7 +815,7 @@ Name | Type | Description | Notes ## ListComposition -> VideoV1CompositionReadResponse ListComposition(ctx, optional) +> ListCompositionResponse ListComposition(ctx, optional) @@ -844,7 +844,7 @@ Name | Type | Description | Notes ### Return type -[**VideoV1CompositionReadResponse**](video_v1_compositionReadResponse.md) +[**ListCompositionResponse**](ListCompositionResponse.md) ### Authorization @@ -862,7 +862,7 @@ Name | Type | Description | Notes ## ListCompositionHook -> VideoV1CompositionHookReadResponse ListCompositionHook(ctx, optional) +> ListCompositionHookResponse ListCompositionHook(ctx, optional) @@ -891,7 +891,7 @@ Name | Type | Description | Notes ### Return type -[**VideoV1CompositionHookReadResponse**](video_v1_composition_hookReadResponse.md) +[**ListCompositionHookResponse**](ListCompositionHookResponse.md) ### Authorization @@ -909,7 +909,7 @@ Name | Type | Description | Notes ## ListRecording -> VideoV1RecordingReadResponse ListRecording(ctx, optional) +> ListRecordingResponse ListRecording(ctx, optional) @@ -940,7 +940,7 @@ Name | Type | Description | Notes ### Return type -[**VideoV1RecordingReadResponse**](video_v1_recordingReadResponse.md) +[**ListRecordingResponse**](ListRecordingResponse.md) ### Authorization @@ -958,7 +958,7 @@ Name | Type | Description | Notes ## ListRoom -> VideoV1RoomReadResponse ListRoom(ctx, optional) +> ListRoomResponse ListRoom(ctx, optional) @@ -985,7 +985,7 @@ Name | Type | Description | Notes ### Return type -[**VideoV1RoomReadResponse**](video_v1_roomReadResponse.md) +[**ListRoomResponse**](ListRoomResponse.md) ### Authorization @@ -1003,7 +1003,7 @@ Name | Type | Description | Notes ## ListRoomParticipant -> VideoV1RoomRoomParticipantReadResponse ListRoomParticipant(ctx, RoomSid, optional) +> ListRoomParticipantResponse ListRoomParticipant(ctx, RoomSid, optional) @@ -1032,7 +1032,7 @@ Name | Type | Description | Notes ### Return type -[**VideoV1RoomRoomParticipantReadResponse**](video_v1_room_room_participantReadResponse.md) +[**ListRoomParticipantResponse**](ListRoomParticipantResponse.md) ### Authorization @@ -1050,7 +1050,7 @@ Name | Type | Description | Notes ## ListRoomParticipantPublishedTrack -> VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse ListRoomParticipantPublishedTrack(ctx, RoomSid, ParticipantSid, optional) +> ListRoomParticipantPublishedTrackResponse ListRoomParticipantPublishedTrack(ctx, RoomSid, ParticipantSid, optional) @@ -1079,7 +1079,7 @@ Name | Type | Description | Notes ### Return type -[**VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse**](video_v1_room_room_participant_room_participant_published_trackReadResponse.md) +[**ListRoomParticipantPublishedTrackResponse**](ListRoomParticipantPublishedTrackResponse.md) ### Authorization @@ -1097,7 +1097,7 @@ Name | Type | Description | Notes ## ListRoomParticipantSubscribedTrack -> VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse ListRoomParticipantSubscribedTrack(ctx, RoomSid, ParticipantSid, optional) +> ListRoomParticipantSubscribedTrackResponse ListRoomParticipantSubscribedTrack(ctx, RoomSid, ParticipantSid, optional) @@ -1126,7 +1126,7 @@ Name | Type | Description | Notes ### Return type -[**VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse**](video_v1_room_room_participant_room_participant_subscribed_trackReadResponse.md) +[**ListRoomParticipantSubscribedTrackResponse**](ListRoomParticipantSubscribedTrackResponse.md) ### Authorization @@ -1144,7 +1144,7 @@ Name | Type | Description | Notes ## ListRoomRecording -> VideoV1RoomRoomRecordingReadResponse ListRoomRecording(ctx, RoomSid, optional) +> ListRoomRecordingResponse ListRoomRecording(ctx, RoomSid, optional) @@ -1173,7 +1173,7 @@ Name | Type | Description | Notes ### Return type -[**VideoV1RoomRoomRecordingReadResponse**](video_v1_room_room_recordingReadResponse.md) +[**ListRoomRecordingResponse**](ListRoomRecordingResponse.md) ### Authorization diff --git a/rest/video/v1/docs/VideoV1CompositionHookReadResponse.md b/rest/video/v1/docs/ListCompositionHookResponse.md similarity index 70% rename from rest/video/v1/docs/VideoV1CompositionHookReadResponse.md rename to rest/video/v1/docs/ListCompositionHookResponse.md index 7a8026565..4b2e052c9 100644 --- a/rest/video/v1/docs/VideoV1CompositionHookReadResponse.md +++ b/rest/video/v1/docs/ListCompositionHookResponse.md @@ -1,11 +1,11 @@ -# VideoV1CompositionHookReadResponse +# ListCompositionHookResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **CompositionHooks** | [**[]VideoV1CompositionHook**](video.v1.composition_hook.md) | | [optional] -**Meta** | [**VideoV1CompositionHookReadResponseMeta**](video_v1_composition_hookReadResponse_meta.md) | | [optional] +**Meta** | [**ListCompositionHookResponseMeta**](ListCompositionHookResponse_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/rest/monitor/v1/docs/MonitorV1AlertReadResponseMeta.md b/rest/video/v1/docs/ListCompositionHookResponseMeta.md similarity index 94% rename from rest/monitor/v1/docs/MonitorV1AlertReadResponseMeta.md rename to rest/video/v1/docs/ListCompositionHookResponseMeta.md index a61143a94..01ce4a98a 100644 --- a/rest/monitor/v1/docs/MonitorV1AlertReadResponseMeta.md +++ b/rest/video/v1/docs/ListCompositionHookResponseMeta.md @@ -1,4 +1,4 @@ -# MonitorV1AlertReadResponseMeta +# ListCompositionHookResponseMeta ## Properties diff --git a/rest/video/v1/docs/VideoV1CompositionReadResponse.md b/rest/video/v1/docs/ListCompositionResponse.md similarity index 70% rename from rest/video/v1/docs/VideoV1CompositionReadResponse.md rename to rest/video/v1/docs/ListCompositionResponse.md index 7f413d4f5..5c28b79ea 100644 --- a/rest/video/v1/docs/VideoV1CompositionReadResponse.md +++ b/rest/video/v1/docs/ListCompositionResponse.md @@ -1,11 +1,11 @@ -# VideoV1CompositionReadResponse +# ListCompositionResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Compositions** | [**[]VideoV1Composition**](video.v1.composition.md) | | [optional] -**Meta** | [**VideoV1CompositionHookReadResponseMeta**](video_v1_composition_hookReadResponse_meta.md) | | [optional] +**Meta** | [**ListCompositionHookResponseMeta**](ListCompositionHookResponse_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/rest/video/v1/docs/VideoV1RecordingReadResponse.md b/rest/video/v1/docs/ListRecordingResponse.md similarity index 70% rename from rest/video/v1/docs/VideoV1RecordingReadResponse.md rename to rest/video/v1/docs/ListRecordingResponse.md index 2da899d80..886ecf2b7 100644 --- a/rest/video/v1/docs/VideoV1RecordingReadResponse.md +++ b/rest/video/v1/docs/ListRecordingResponse.md @@ -1,10 +1,10 @@ -# VideoV1RecordingReadResponse +# ListRecordingResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**VideoV1CompositionHookReadResponseMeta**](video_v1_composition_hookReadResponse_meta.md) | | [optional] +**Meta** | [**ListCompositionHookResponseMeta**](ListCompositionHookResponse_meta.md) | | [optional] **Recordings** | [**[]VideoV1Recording**](video.v1.recording.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/rest/video/v1/docs/VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse.md b/rest/video/v1/docs/ListRoomParticipantPublishedTrackResponse.md similarity index 70% rename from rest/video/v1/docs/VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse.md rename to rest/video/v1/docs/ListRoomParticipantPublishedTrackResponse.md index cd8519271..6dff7cc90 100644 --- a/rest/video/v1/docs/VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse.md +++ b/rest/video/v1/docs/ListRoomParticipantPublishedTrackResponse.md @@ -1,10 +1,10 @@ -# VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse +# ListRoomParticipantPublishedTrackResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**VideoV1CompositionHookReadResponseMeta**](video_v1_composition_hookReadResponse_meta.md) | | [optional] +**Meta** | [**ListCompositionHookResponseMeta**](ListCompositionHookResponse_meta.md) | | [optional] **PublishedTracks** | [**[]VideoV1RoomRoomParticipantRoomParticipantPublishedTrack**](video.v1.room.room_participant.room_participant_published_track.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/rest/video/v1/docs/VideoV1RoomRoomParticipantReadResponse.md b/rest/video/v1/docs/ListRoomParticipantResponse.md similarity index 70% rename from rest/video/v1/docs/VideoV1RoomRoomParticipantReadResponse.md rename to rest/video/v1/docs/ListRoomParticipantResponse.md index 33826d86b..034677c28 100644 --- a/rest/video/v1/docs/VideoV1RoomRoomParticipantReadResponse.md +++ b/rest/video/v1/docs/ListRoomParticipantResponse.md @@ -1,10 +1,10 @@ -# VideoV1RoomRoomParticipantReadResponse +# ListRoomParticipantResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**VideoV1CompositionHookReadResponseMeta**](video_v1_composition_hookReadResponse_meta.md) | | [optional] +**Meta** | [**ListCompositionHookResponseMeta**](ListCompositionHookResponse_meta.md) | | [optional] **Participants** | [**[]VideoV1RoomRoomParticipant**](video.v1.room.room_participant.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/rest/video/v1/docs/VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse.md b/rest/video/v1/docs/ListRoomParticipantSubscribedTrackResponse.md similarity index 70% rename from rest/video/v1/docs/VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse.md rename to rest/video/v1/docs/ListRoomParticipantSubscribedTrackResponse.md index 1dfc78a24..a7d242fb4 100644 --- a/rest/video/v1/docs/VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse.md +++ b/rest/video/v1/docs/ListRoomParticipantSubscribedTrackResponse.md @@ -1,10 +1,10 @@ -# VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse +# ListRoomParticipantSubscribedTrackResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**VideoV1CompositionHookReadResponseMeta**](video_v1_composition_hookReadResponse_meta.md) | | [optional] +**Meta** | [**ListCompositionHookResponseMeta**](ListCompositionHookResponse_meta.md) | | [optional] **SubscribedTracks** | [**[]VideoV1RoomRoomParticipantRoomParticipantSubscribedTrack**](video.v1.room.room_participant.room_participant_subscribed_track.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/rest/video/v1/docs/VideoV1RoomRoomRecordingReadResponse.md b/rest/video/v1/docs/ListRoomRecordingResponse.md similarity index 70% rename from rest/video/v1/docs/VideoV1RoomRoomRecordingReadResponse.md rename to rest/video/v1/docs/ListRoomRecordingResponse.md index bf5fb3faf..b6d11fe59 100644 --- a/rest/video/v1/docs/VideoV1RoomRoomRecordingReadResponse.md +++ b/rest/video/v1/docs/ListRoomRecordingResponse.md @@ -1,10 +1,10 @@ -# VideoV1RoomRoomRecordingReadResponse +# ListRoomRecordingResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**VideoV1CompositionHookReadResponseMeta**](video_v1_composition_hookReadResponse_meta.md) | | [optional] +**Meta** | [**ListCompositionHookResponseMeta**](ListCompositionHookResponse_meta.md) | | [optional] **Recordings** | [**[]VideoV1RoomRoomRecording**](video.v1.room.room_recording.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/rest/video/v1/docs/VideoV1RoomReadResponse.md b/rest/video/v1/docs/ListRoomResponse.md similarity index 70% rename from rest/video/v1/docs/VideoV1RoomReadResponse.md rename to rest/video/v1/docs/ListRoomResponse.md index 0ef330949..49d41cc0a 100644 --- a/rest/video/v1/docs/VideoV1RoomReadResponse.md +++ b/rest/video/v1/docs/ListRoomResponse.md @@ -1,10 +1,10 @@ -# VideoV1RoomReadResponse +# ListRoomResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**VideoV1CompositionHookReadResponseMeta**](video_v1_composition_hookReadResponse_meta.md) | | [optional] +**Meta** | [**ListCompositionHookResponseMeta**](ListCompositionHookResponse_meta.md) | | [optional] **Rooms** | [**[]VideoV1Room**](video.v1.room.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/rest/video/v1/docs/VideoV1CompositionHookReadResponseMeta.md b/rest/video/v1/docs/VideoV1CompositionHookReadResponseMeta.md deleted file mode 100644 index 39ed4fa52..000000000 --- a/rest/video/v1/docs/VideoV1CompositionHookReadResponseMeta.md +++ /dev/null @@ -1,17 +0,0 @@ -# VideoV1CompositionHookReadResponseMeta - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FirstPageUrl** | **string** | | [optional] -**Key** | **string** | | [optional] -**NextPageUrl** | **string** | | [optional] -**Page** | **int32** | | [optional] -**PageSize** | **int32** | | [optional] -**PreviousPageUrl** | **string** | | [optional] -**Url** | **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/rest/video/v1/docs/VideoV1Room.md b/rest/video/v1/docs/VideoV1Room.md index 12681db3a..65b4b3b9b 100644 --- a/rest/video/v1/docs/VideoV1Room.md +++ b/rest/video/v1/docs/VideoV1Room.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **EnableTurn** | **bool** | | [optional] **EndTime** | [**time.Time**](time.Time.md) | | [optional] **Links** | [**map[string]interface{}**](.md) | | [optional] +**MaxConcurrentPublishedTracks** | Pointer to **int32** | | [optional] **MaxParticipants** | **int32** | | [optional] **MediaRegion** | **string** | | [optional] **RecordParticipantsOnConnect** | **bool** | | [optional] diff --git a/rest/video/v1/model_create_composition_hook_request.go b/rest/video/v1/model_create_composition_hook_request.go index 5acec3c68..631ace948 100644 --- a/rest/video/v1/model_create_composition_hook_request.go +++ b/rest/video/v1/model_create_composition_hook_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/video/v1/model_create_composition_request.go b/rest/video/v1/model_create_composition_request.go index 0a4fa9a93..786b6c2d1 100644 --- a/rest/video/v1/model_create_composition_request.go +++ b/rest/video/v1/model_create_composition_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/video/v1/model_create_composition_settings_request.go b/rest/video/v1/model_create_composition_settings_request.go index 9e2557911..3453bb698 100644 --- a/rest/video/v1/model_create_composition_settings_request.go +++ b/rest/video/v1/model_create_composition_settings_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/video/v1/model_create_recording_settings_request.go b/rest/video/v1/model_create_recording_settings_request.go index a965f232f..d1a587b31 100644 --- a/rest/video/v1/model_create_recording_settings_request.go +++ b/rest/video/v1/model_create_recording_settings_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/video/v1/model_create_room_request.go b/rest/video/v1/model_create_room_request.go index c1bf34a8e..9c6f68aa2 100644 --- a/rest/video/v1/model_create_room_request.go +++ b/rest/video/v1/model_create_room_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/video/v1/model_video_v1_composition_hook_read_response.go b/rest/video/v1/model_list_composition_hook_response.go similarity index 54% rename from rest/video/v1/model_video_v1_composition_hook_read_response.go rename to rest/video/v1/model_list_composition_hook_response.go index cd6d32cda..8c5bde2ce 100644 --- a/rest/video/v1/model_video_v1_composition_hook_read_response.go +++ b/rest/video/v1/model_list_composition_hook_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// VideoV1CompositionHookReadResponse struct for VideoV1CompositionHookReadResponse -type VideoV1CompositionHookReadResponse struct { +// ListCompositionHookResponse struct for ListCompositionHookResponse +type ListCompositionHookResponse struct { CompositionHooks []VideoV1CompositionHook `json:"CompositionHooks,omitempty"` - Meta VideoV1CompositionHookReadResponseMeta `json:"Meta,omitempty"` + Meta ListCompositionHookResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/video/v1/model_video_v1_composition_hook_read_response_meta.go b/rest/video/v1/model_list_composition_hook_response_meta.go similarity index 74% rename from rest/video/v1/model_video_v1_composition_hook_read_response_meta.go rename to rest/video/v1/model_list_composition_hook_response_meta.go index f8af4883c..689f2b66b 100644 --- a/rest/video/v1/model_video_v1_composition_hook_read_response_meta.go +++ b/rest/video/v1/model_list_composition_hook_response_meta.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// VideoV1CompositionHookReadResponseMeta struct for VideoV1CompositionHookReadResponseMeta -type VideoV1CompositionHookReadResponseMeta struct { +// ListCompositionHookResponseMeta struct for ListCompositionHookResponseMeta +type ListCompositionHookResponseMeta struct { FirstPageUrl string `json:"FirstPageUrl,omitempty"` Key string `json:"Key,omitempty"` NextPageUrl string `json:"NextPageUrl,omitempty"` diff --git a/rest/video/v1/model_video_v1_composition_read_response.go b/rest/video/v1/model_list_composition_response.go similarity index 54% rename from rest/video/v1/model_video_v1_composition_read_response.go rename to rest/video/v1/model_list_composition_response.go index cb771d0b4..f10812772 100644 --- a/rest/video/v1/model_video_v1_composition_read_response.go +++ b/rest/video/v1/model_list_composition_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// VideoV1CompositionReadResponse struct for VideoV1CompositionReadResponse -type VideoV1CompositionReadResponse struct { +// ListCompositionResponse struct for ListCompositionResponse +type ListCompositionResponse struct { Compositions []VideoV1Composition `json:"Compositions,omitempty"` - Meta VideoV1CompositionHookReadResponseMeta `json:"Meta,omitempty"` + Meta ListCompositionHookResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/video/v1/model_video_v1_recording_read_response.go b/rest/video/v1/model_list_recording_response.go similarity index 54% rename from rest/video/v1/model_video_v1_recording_read_response.go rename to rest/video/v1/model_list_recording_response.go index 4499a9766..5fc13b8ff 100644 --- a/rest/video/v1/model_video_v1_recording_read_response.go +++ b/rest/video/v1/model_list_recording_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// VideoV1RecordingReadResponse struct for VideoV1RecordingReadResponse -type VideoV1RecordingReadResponse struct { - Meta VideoV1CompositionHookReadResponseMeta `json:"Meta,omitempty"` +// ListRecordingResponse struct for ListRecordingResponse +type ListRecordingResponse struct { + Meta ListCompositionHookResponseMeta `json:"Meta,omitempty"` Recordings []VideoV1Recording `json:"Recordings,omitempty"` } diff --git a/rest/video/v1/model_list_room_participant_published_track_response.go b/rest/video/v1/model_list_room_participant_published_track_response.go new file mode 100644 index 000000000..74cdee30f --- /dev/null +++ b/rest/video/v1/model_list_room_participant_published_track_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Video + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListRoomParticipantPublishedTrackResponse struct for ListRoomParticipantPublishedTrackResponse +type ListRoomParticipantPublishedTrackResponse struct { + Meta ListCompositionHookResponseMeta `json:"Meta,omitempty"` + PublishedTracks []VideoV1RoomRoomParticipantRoomParticipantPublishedTrack `json:"PublishedTracks,omitempty"` +} diff --git a/rest/video/v1/model_video_v1_room_room_participant_read_response.go b/rest/video/v1/model_list_room_participant_response.go similarity index 52% rename from rest/video/v1/model_video_v1_room_room_participant_read_response.go rename to rest/video/v1/model_list_room_participant_response.go index 82a902eff..6c6c4a52c 100644 --- a/rest/video/v1/model_video_v1_room_room_participant_read_response.go +++ b/rest/video/v1/model_list_room_participant_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// VideoV1RoomRoomParticipantReadResponse struct for VideoV1RoomRoomParticipantReadResponse -type VideoV1RoomRoomParticipantReadResponse struct { - Meta VideoV1CompositionHookReadResponseMeta `json:"Meta,omitempty"` +// ListRoomParticipantResponse struct for ListRoomParticipantResponse +type ListRoomParticipantResponse struct { + Meta ListCompositionHookResponseMeta `json:"Meta,omitempty"` Participants []VideoV1RoomRoomParticipant `json:"Participants,omitempty"` } diff --git a/rest/video/v1/model_list_room_participant_subscribed_track_response.go b/rest/video/v1/model_list_room_participant_subscribed_track_response.go new file mode 100644 index 000000000..991edfa23 --- /dev/null +++ b/rest/video/v1/model_list_room_participant_subscribed_track_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Video + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListRoomParticipantSubscribedTrackResponse struct for ListRoomParticipantSubscribedTrackResponse +type ListRoomParticipantSubscribedTrackResponse struct { + Meta ListCompositionHookResponseMeta `json:"Meta,omitempty"` + SubscribedTracks []VideoV1RoomRoomParticipantRoomParticipantSubscribedTrack `json:"SubscribedTracks,omitempty"` +} diff --git a/rest/video/v1/model_video_v1_room_room_recording_read_response.go b/rest/video/v1/model_list_room_recording_response.go similarity index 52% rename from rest/video/v1/model_video_v1_room_room_recording_read_response.go rename to rest/video/v1/model_list_room_recording_response.go index a3519d8df..d23a53be3 100644 --- a/rest/video/v1/model_video_v1_room_room_recording_read_response.go +++ b/rest/video/v1/model_list_room_recording_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// VideoV1RoomRoomRecordingReadResponse struct for VideoV1RoomRoomRecordingReadResponse -type VideoV1RoomRoomRecordingReadResponse struct { - Meta VideoV1CompositionHookReadResponseMeta `json:"Meta,omitempty"` +// ListRoomRecordingResponse struct for ListRoomRecordingResponse +type ListRoomRecordingResponse struct { + Meta ListCompositionHookResponseMeta `json:"Meta,omitempty"` Recordings []VideoV1RoomRoomRecording `json:"Recordings,omitempty"` } diff --git a/rest/video/v1/model_video_v1_room_read_response.go b/rest/video/v1/model_list_room_response.go similarity index 54% rename from rest/video/v1/model_video_v1_room_read_response.go rename to rest/video/v1/model_list_room_response.go index 2810332fc..fdcc8f80f 100644 --- a/rest/video/v1/model_video_v1_room_read_response.go +++ b/rest/video/v1/model_list_room_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// VideoV1RoomReadResponse struct for VideoV1RoomReadResponse -type VideoV1RoomReadResponse struct { - Meta VideoV1CompositionHookReadResponseMeta `json:"Meta,omitempty"` +// ListRoomResponse struct for ListRoomResponse +type ListRoomResponse struct { + Meta ListCompositionHookResponseMeta `json:"Meta,omitempty"` Rooms []VideoV1Room `json:"Rooms,omitempty"` } diff --git a/rest/video/v1/model_update_composition_hook_request.go b/rest/video/v1/model_update_composition_hook_request.go index d3c7731b4..1d50eec56 100644 --- a/rest/video/v1/model_update_composition_hook_request.go +++ b/rest/video/v1/model_update_composition_hook_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/video/v1/model_update_room_participant_request.go b/rest/video/v1/model_update_room_participant_request.go index 412997d7a..3b13feea2 100644 --- a/rest/video/v1/model_update_room_participant_request.go +++ b/rest/video/v1/model_update_room_participant_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/video/v1/model_update_room_participant_subscribe_rule_request.go b/rest/video/v1/model_update_room_participant_subscribe_rule_request.go index 027d57f5f..30b5715ed 100644 --- a/rest/video/v1/model_update_room_participant_subscribe_rule_request.go +++ b/rest/video/v1/model_update_room_participant_subscribe_rule_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/video/v1/model_update_room_recording_rule_request.go b/rest/video/v1/model_update_room_recording_rule_request.go index 9ec28bdca..ef1d2fbc5 100644 --- a/rest/video/v1/model_update_room_recording_rule_request.go +++ b/rest/video/v1/model_update_room_recording_rule_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/video/v1/model_update_room_request.go b/rest/video/v1/model_update_room_request.go index 04f7a75ab..609c98c85 100644 --- a/rest/video/v1/model_update_room_request.go +++ b/rest/video/v1/model_update_room_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/video/v1/model_video_v1_composition.go b/rest/video/v1/model_video_v1_composition.go index f8c8f441b..69bec325f 100644 --- a/rest/video/v1/model_video_v1_composition.go +++ b/rest/video/v1/model_video_v1_composition.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/video/v1/model_video_v1_composition_hook.go b/rest/video/v1/model_video_v1_composition_hook.go index 7fc6469b8..2121d6ea7 100644 --- a/rest/video/v1/model_video_v1_composition_hook.go +++ b/rest/video/v1/model_video_v1_composition_hook.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/video/v1/model_video_v1_composition_settings.go b/rest/video/v1/model_video_v1_composition_settings.go index e2912cfcd..549f8fd0d 100644 --- a/rest/video/v1/model_video_v1_composition_settings.go +++ b/rest/video/v1/model_video_v1_composition_settings.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/video/v1/model_video_v1_recording.go b/rest/video/v1/model_video_v1_recording.go index 32cba87fb..015070a0d 100644 --- a/rest/video/v1/model_video_v1_recording.go +++ b/rest/video/v1/model_video_v1_recording.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/video/v1/model_video_v1_recording_settings.go b/rest/video/v1/model_video_v1_recording_settings.go index 1c890f071..f2323e1cd 100644 --- a/rest/video/v1/model_video_v1_recording_settings.go +++ b/rest/video/v1/model_video_v1_recording_settings.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/video/v1/model_video_v1_room.go b/rest/video/v1/model_video_v1_room.go index c2c44057f..5bba325ca 100644 --- a/rest/video/v1/model_video_v1_room.go +++ b/rest/video/v1/model_video_v1_room.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -21,6 +21,7 @@ type VideoV1Room struct { EnableTurn bool `json:"EnableTurn,omitempty"` EndTime time.Time `json:"EndTime,omitempty"` Links map[string]interface{} `json:"Links,omitempty"` + MaxConcurrentPublishedTracks *int32 `json:"MaxConcurrentPublishedTracks,omitempty"` MaxParticipants int32 `json:"MaxParticipants,omitempty"` MediaRegion string `json:"MediaRegion,omitempty"` RecordParticipantsOnConnect bool `json:"RecordParticipantsOnConnect,omitempty"` diff --git a/rest/video/v1/model_video_v1_room_room_participant.go b/rest/video/v1/model_video_v1_room_room_participant.go index 6f3cc1c84..b83793989 100644 --- a/rest/video/v1/model_video_v1_room_room_participant.go +++ b/rest/video/v1/model_video_v1_room_room_participant.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/video/v1/model_video_v1_room_room_participant_room_participant_published_track.go b/rest/video/v1/model_video_v1_room_room_participant_room_participant_published_track.go index f57db197b..3577bcc63 100644 --- a/rest/video/v1/model_video_v1_room_room_participant_room_participant_published_track.go +++ b/rest/video/v1/model_video_v1_room_room_participant_room_participant_published_track.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/video/v1/model_video_v1_room_room_participant_room_participant_published_track_read_response.go b/rest/video/v1/model_video_v1_room_room_participant_room_participant_published_track_read_response.go deleted file mode 100644 index 8959cac0b..000000000 --- a/rest/video/v1/model_video_v1_room_room_participant_room_participant_published_track_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Video - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse struct for VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse -type VideoV1RoomRoomParticipantRoomParticipantPublishedTrackReadResponse struct { - Meta VideoV1CompositionHookReadResponseMeta `json:"Meta,omitempty"` - PublishedTracks []VideoV1RoomRoomParticipantRoomParticipantPublishedTrack `json:"PublishedTracks,omitempty"` -} diff --git a/rest/video/v1/model_video_v1_room_room_participant_room_participant_subscribe_rule.go b/rest/video/v1/model_video_v1_room_room_participant_room_participant_subscribe_rule.go index 45a106e37..ef58434bf 100644 --- a/rest/video/v1/model_video_v1_room_room_participant_room_participant_subscribe_rule.go +++ b/rest/video/v1/model_video_v1_room_room_participant_room_participant_subscribe_rule.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/video/v1/model_video_v1_room_room_participant_room_participant_subscribed_track.go b/rest/video/v1/model_video_v1_room_room_participant_room_participant_subscribed_track.go index e37cbb28c..f24e915e6 100644 --- a/rest/video/v1/model_video_v1_room_room_participant_room_participant_subscribed_track.go +++ b/rest/video/v1/model_video_v1_room_room_participant_room_participant_subscribed_track.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/video/v1/model_video_v1_room_room_participant_room_participant_subscribed_track_read_response.go b/rest/video/v1/model_video_v1_room_room_participant_room_participant_subscribed_track_read_response.go deleted file mode 100644 index e5c1825d4..000000000 --- a/rest/video/v1/model_video_v1_room_room_participant_room_participant_subscribed_track_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Video - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse struct for VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse -type VideoV1RoomRoomParticipantRoomParticipantSubscribedTrackReadResponse struct { - Meta VideoV1CompositionHookReadResponseMeta `json:"Meta,omitempty"` - SubscribedTracks []VideoV1RoomRoomParticipantRoomParticipantSubscribedTrack `json:"SubscribedTracks,omitempty"` -} diff --git a/rest/video/v1/model_video_v1_room_room_recording.go b/rest/video/v1/model_video_v1_room_room_recording.go index bbbdcd500..9efb9b1e5 100644 --- a/rest/video/v1/model_video_v1_room_room_recording.go +++ b/rest/video/v1/model_video_v1_room_room_recording.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/video/v1/model_video_v1_room_room_recording_rule.go b/rest/video/v1/model_video_v1_room_room_recording_rule.go index d2a4ef740..2458815a4 100644 --- a/rest/video/v1/model_video_v1_room_room_recording_rule.go +++ b/rest/video/v1/model_video_v1_room_room_recording_rule.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/video/v1/response.go b/rest/video/v1/response.go index 483d6ae37..a0ec7b50c 100644 --- a/rest/video/v1/response.go +++ b/rest/video/v1/response.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/voice/v1/README.md b/rest/voice/v1/README.md index 554ccad69..9ba2811bb 100644 --- a/rest/voice/v1/README.md +++ b/rest/voice/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 5.15.0 +- API version: 1.0.0 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) @@ -72,6 +72,14 @@ Class | Method | HTTP request | Description - [CreateDialingPermissionsCountryBulkUpdateRequest](docs/CreateDialingPermissionsCountryBulkUpdateRequest.md) - [CreateIpRecordRequest](docs/CreateIpRecordRequest.md) - [CreateSourceIpMappingRequest](docs/CreateSourceIpMappingRequest.md) + - [ListByocTrunkResponse](docs/ListByocTrunkResponse.md) + - [ListByocTrunkResponseMeta](docs/ListByocTrunkResponseMeta.md) + - [ListConnectionPolicyResponse](docs/ListConnectionPolicyResponse.md) + - [ListConnectionPolicyTargetResponse](docs/ListConnectionPolicyTargetResponse.md) + - [ListDialingPermissionsCountryResponse](docs/ListDialingPermissionsCountryResponse.md) + - [ListDialingPermissionsHrsPrefixesResponse](docs/ListDialingPermissionsHrsPrefixesResponse.md) + - [ListIpRecordResponse](docs/ListIpRecordResponse.md) + - [ListSourceIpMappingResponse](docs/ListSourceIpMappingResponse.md) - [UpdateByocTrunkRequest](docs/UpdateByocTrunkRequest.md) - [UpdateConnectionPolicyRequest](docs/UpdateConnectionPolicyRequest.md) - [UpdateConnectionPolicyTargetRequest](docs/UpdateConnectionPolicyTargetRequest.md) @@ -79,23 +87,15 @@ Class | Method | HTTP request | Description - [UpdateIpRecordRequest](docs/UpdateIpRecordRequest.md) - [UpdateSourceIpMappingRequest](docs/UpdateSourceIpMappingRequest.md) - [VoiceV1ByocTrunk](docs/VoiceV1ByocTrunk.md) - - [VoiceV1ByocTrunkReadResponse](docs/VoiceV1ByocTrunkReadResponse.md) - - [VoiceV1ByocTrunkReadResponseMeta](docs/VoiceV1ByocTrunkReadResponseMeta.md) - [VoiceV1ConnectionPolicy](docs/VoiceV1ConnectionPolicy.md) - [VoiceV1ConnectionPolicyConnectionPolicyTarget](docs/VoiceV1ConnectionPolicyConnectionPolicyTarget.md) - - [VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse](docs/VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse.md) - - [VoiceV1ConnectionPolicyReadResponse](docs/VoiceV1ConnectionPolicyReadResponse.md) - [VoiceV1DialingPermissionsDialingPermissionsCountry](docs/VoiceV1DialingPermissionsDialingPermissionsCountry.md) - [VoiceV1DialingPermissionsDialingPermissionsCountryBulkUpdate](docs/VoiceV1DialingPermissionsDialingPermissionsCountryBulkUpdate.md) - [VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixes](docs/VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixes.md) - - [VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse](docs/VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse.md) - [VoiceV1DialingPermissionsDialingPermissionsCountryInstance](docs/VoiceV1DialingPermissionsDialingPermissionsCountryInstance.md) - - [VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse](docs/VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse.md) - [VoiceV1DialingPermissionsDialingPermissionsSettings](docs/VoiceV1DialingPermissionsDialingPermissionsSettings.md) - [VoiceV1IpRecord](docs/VoiceV1IpRecord.md) - - [VoiceV1IpRecordReadResponse](docs/VoiceV1IpRecordReadResponse.md) - [VoiceV1SourceIpMapping](docs/VoiceV1SourceIpMapping.md) - - [VoiceV1SourceIpMappingReadResponse](docs/VoiceV1SourceIpMappingReadResponse.md) ## Documentation For Authorization diff --git a/rest/voice/v1/api_default.go b/rest/voice/v1/api_default.go index 4e418ff58..df1efdceb 100644 --- a/rest/voice/v1/api_default.go +++ b/rest/voice/v1/api_default.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -26,21 +26,21 @@ type DefaultApiService struct { func NewDefaultApiService(client *twilio.Client) *DefaultApiService { return &DefaultApiService { client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + baseURL: fmt.Sprintf("https://voice.twilio.com"), } } // CreateByocTrunkParams Optional parameters for the method 'CreateByocTrunk' type CreateByocTrunkParams struct { - CnamLookupEnabled *bool `json:"CnamLookupEnabled,omitempty"` - ConnectionPolicySid *string `json:"ConnectionPolicySid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - FromDomainSid *string `json:"FromDomainSid,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - StatusCallbackUrl *string `json:"StatusCallbackUrl,omitempty"` - VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` - VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` - VoiceMethod *string `json:"VoiceMethod,omitempty"` - VoiceUrl *string `json:"VoiceUrl,omitempty"` + CnamLookupEnabled *bool `json:"CnamLookupEnabled,omitempty"` + ConnectionPolicySid *string `json:"ConnectionPolicySid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + FromDomainSid *string `json:"FromDomainSid,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + StatusCallbackUrl *string `json:"StatusCallbackUrl,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` } /* @@ -113,7 +113,7 @@ func (c *DefaultApiService) CreateByocTrunk(params *CreateByocTrunkParams) (*Voi } // CreateConnectionPolicyParams Optional parameters for the method 'CreateConnectionPolicy' type CreateConnectionPolicyParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -150,11 +150,11 @@ func (c *DefaultApiService) CreateConnectionPolicy(params *CreateConnectionPolic } // CreateConnectionPolicyTargetParams Optional parameters for the method 'CreateConnectionPolicyTarget' type CreateConnectionPolicyTargetParams struct { - Enabled *bool `json:"Enabled,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Priority *int32 `json:"Priority,omitempty"` - Target *string `json:"Target,omitempty"` - Weight *int32 `json:"Weight,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Priority *int32 `json:"Priority,omitempty"` + Target *string `json:"Target,omitempty"` + Weight *int32 `json:"Weight,omitempty"` } /* @@ -209,7 +209,7 @@ func (c *DefaultApiService) CreateConnectionPolicyTarget(ConnectionPolicySid str } // CreateDialingPermissionsCountryBulkUpdateParams Optional parameters for the method 'CreateDialingPermissionsCountryBulkUpdate' type CreateDialingPermissionsCountryBulkUpdateParams struct { - UpdateRequest *string `json:"UpdateRequest,omitempty"` + UpdateRequest *string `json:"UpdateRequest,omitempty"` } /* @@ -247,9 +247,9 @@ func (c *DefaultApiService) CreateDialingPermissionsCountryBulkUpdate(params *Cr } // CreateIpRecordParams Optional parameters for the method 'CreateIpRecord' type CreateIpRecordParams struct { - CidrPrefixLength *int32 `json:"CidrPrefixLength,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - IpAddress *string `json:"IpAddress,omitempty"` + CidrPrefixLength *int32 `json:"CidrPrefixLength,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + IpAddress *string `json:"IpAddress,omitempty"` } /* @@ -294,8 +294,8 @@ func (c *DefaultApiService) CreateIpRecord(params *CreateIpRecordParams) (*Voice } // CreateSourceIpMappingParams Optional parameters for the method 'CreateSourceIpMapping' type CreateSourceIpMappingParams struct { - IpRecordSid *string `json:"IpRecordSid,omitempty"` - SipDomainSid *string `json:"SipDomainSid,omitempty"` + IpRecordSid *string `json:"IpRecordSid,omitempty"` + SipDomainSid *string `json:"SipDomainSid,omitempty"` } /* @@ -670,16 +670,16 @@ func (c *DefaultApiService) FetchSourceIpMapping(Sid string) (*VoiceV1SourceIpMa } // ListByocTrunkParams Optional parameters for the method 'ListByocTrunk' type ListByocTrunkParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* ListByocTrunk Method for ListByocTrunk * @param optional nil or *ListByocTrunkOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return VoiceV1ByocTrunkReadResponse +@return ListByocTrunkResponse */ -func (c *DefaultApiService) ListByocTrunk(params *ListByocTrunkParams) (*VoiceV1ByocTrunkReadResponse, error) { +func (c *DefaultApiService) ListByocTrunk(params *ListByocTrunkParams) (*ListByocTrunkResponse, error) { path := "/v1/ByocTrunks" @@ -698,7 +698,7 @@ func (c *DefaultApiService) ListByocTrunk(params *ListByocTrunkParams) (*VoiceV1 defer resp.Body.Close() - ps := &VoiceV1ByocTrunkReadResponse{} + ps := &ListByocTrunkResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -707,16 +707,16 @@ func (c *DefaultApiService) ListByocTrunk(params *ListByocTrunkParams) (*VoiceV1 } // ListConnectionPolicyParams Optional parameters for the method 'ListConnectionPolicy' type ListConnectionPolicyParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* ListConnectionPolicy Method for ListConnectionPolicy * @param optional nil or *ListConnectionPolicyOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return VoiceV1ConnectionPolicyReadResponse +@return ListConnectionPolicyResponse */ -func (c *DefaultApiService) ListConnectionPolicy(params *ListConnectionPolicyParams) (*VoiceV1ConnectionPolicyReadResponse, error) { +func (c *DefaultApiService) ListConnectionPolicy(params *ListConnectionPolicyParams) (*ListConnectionPolicyResponse, error) { path := "/v1/ConnectionPolicies" @@ -735,7 +735,7 @@ func (c *DefaultApiService) ListConnectionPolicy(params *ListConnectionPolicyPar defer resp.Body.Close() - ps := &VoiceV1ConnectionPolicyReadResponse{} + ps := &ListConnectionPolicyResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -744,7 +744,7 @@ func (c *DefaultApiService) ListConnectionPolicy(params *ListConnectionPolicyPar } // ListConnectionPolicyTargetParams Optional parameters for the method 'ListConnectionPolicyTarget' type ListConnectionPolicyTargetParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -752,9 +752,9 @@ ListConnectionPolicyTarget Method for ListConnectionPolicyTarget * @param ConnectionPolicySid The SID of the Connection Policy from which to read the Targets. * @param optional nil or *ListConnectionPolicyTargetOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse +@return ListConnectionPolicyTargetResponse */ -func (c *DefaultApiService) ListConnectionPolicyTarget(ConnectionPolicySid string, params *ListConnectionPolicyTargetParams) (*VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse, error) { +func (c *DefaultApiService) ListConnectionPolicyTarget(ConnectionPolicySid string, params *ListConnectionPolicyTargetParams) (*ListConnectionPolicyTargetResponse, error) { path := "/v1/ConnectionPolicies/{ConnectionPolicySid}/Targets" path = strings.Replace(path, "{"+"ConnectionPolicySid"+"}", ConnectionPolicySid, -1) @@ -774,7 +774,7 @@ func (c *DefaultApiService) ListConnectionPolicyTarget(ConnectionPolicySid strin defer resp.Body.Close() - ps := &VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse{} + ps := &ListConnectionPolicyTargetResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -783,13 +783,13 @@ func (c *DefaultApiService) ListConnectionPolicyTarget(ConnectionPolicySid strin } // ListDialingPermissionsCountryParams Optional parameters for the method 'ListDialingPermissionsCountry' type ListDialingPermissionsCountryParams struct { - IsoCode *string `json:"IsoCode,omitempty"` - Continent *string `json:"Continent,omitempty"` - CountryCode *string `json:"CountryCode,omitempty"` - LowRiskNumbersEnabled *bool `json:"LowRiskNumbersEnabled,omitempty"` - HighRiskSpecialNumbersEnabled *bool `json:"HighRiskSpecialNumbersEnabled,omitempty"` - HighRiskTollfraudNumbersEnabled *bool `json:"HighRiskTollfraudNumbersEnabled,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + IsoCode *string `json:"IsoCode,omitempty"` + Continent *string `json:"Continent,omitempty"` + CountryCode *string `json:"CountryCode,omitempty"` + LowRiskNumbersEnabled *bool `json:"LowRiskNumbersEnabled,omitempty"` + HighRiskSpecialNumbersEnabled *bool `json:"HighRiskSpecialNumbersEnabled,omitempty"` + HighRiskTollfraudNumbersEnabled *bool `json:"HighRiskTollfraudNumbersEnabled,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -803,9 +803,9 @@ Retrieve all voice dialing country permissions for this account * @param "HighRiskSpecialNumbersEnabled" (bool) - Filter to retrieve the country permissions with dialing to high-risk special service numbers enabled. Can be: `true` or `false` * @param "HighRiskTollfraudNumbersEnabled" (bool) - Filter to retrieve the country permissions with dialing to high-risk [toll fraud](https://www.twilio.com/learn/voice-and-video/toll-fraud) numbers enabled. Can be: `true` or `false`. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse +@return ListDialingPermissionsCountryResponse */ -func (c *DefaultApiService) ListDialingPermissionsCountry(params *ListDialingPermissionsCountryParams) (*VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse, error) { +func (c *DefaultApiService) ListDialingPermissionsCountry(params *ListDialingPermissionsCountryParams) (*ListDialingPermissionsCountryResponse, error) { path := "/v1/DialingPermissions/Countries" @@ -842,7 +842,7 @@ func (c *DefaultApiService) ListDialingPermissionsCountry(params *ListDialingPer defer resp.Body.Close() - ps := &VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse{} + ps := &ListDialingPermissionsCountryResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -851,7 +851,7 @@ func (c *DefaultApiService) ListDialingPermissionsCountry(params *ListDialingPer } // ListDialingPermissionsHrsPrefixesParams Optional parameters for the method 'ListDialingPermissionsHrsPrefixes' type ListDialingPermissionsHrsPrefixesParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -860,9 +860,9 @@ Fetch the high-risk special services prefixes from the country resource correspo * @param IsoCode The [ISO 3166-1 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) to identify the country permissions from which high-risk special service number prefixes are fetched * @param optional nil or *ListDialingPermissionsHrsPrefixesOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse +@return ListDialingPermissionsHrsPrefixesResponse */ -func (c *DefaultApiService) ListDialingPermissionsHrsPrefixes(IsoCode string, params *ListDialingPermissionsHrsPrefixesParams) (*VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse, error) { +func (c *DefaultApiService) ListDialingPermissionsHrsPrefixes(IsoCode string, params *ListDialingPermissionsHrsPrefixesParams) (*ListDialingPermissionsHrsPrefixesResponse, error) { path := "/v1/DialingPermissions/Countries/{IsoCode}/HighRiskSpecialPrefixes" path = strings.Replace(path, "{"+"IsoCode"+"}", IsoCode, -1) @@ -882,7 +882,7 @@ func (c *DefaultApiService) ListDialingPermissionsHrsPrefixes(IsoCode string, pa defer resp.Body.Close() - ps := &VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse{} + ps := &ListDialingPermissionsHrsPrefixesResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -891,16 +891,16 @@ func (c *DefaultApiService) ListDialingPermissionsHrsPrefixes(IsoCode string, pa } // ListIpRecordParams Optional parameters for the method 'ListIpRecord' type ListIpRecordParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* ListIpRecord Method for ListIpRecord * @param optional nil or *ListIpRecordOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return VoiceV1IpRecordReadResponse +@return ListIpRecordResponse */ -func (c *DefaultApiService) ListIpRecord(params *ListIpRecordParams) (*VoiceV1IpRecordReadResponse, error) { +func (c *DefaultApiService) ListIpRecord(params *ListIpRecordParams) (*ListIpRecordResponse, error) { path := "/v1/IpRecords" @@ -919,7 +919,7 @@ func (c *DefaultApiService) ListIpRecord(params *ListIpRecordParams) (*VoiceV1Ip defer resp.Body.Close() - ps := &VoiceV1IpRecordReadResponse{} + ps := &ListIpRecordResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -928,16 +928,16 @@ func (c *DefaultApiService) ListIpRecord(params *ListIpRecordParams) (*VoiceV1Ip } // ListSourceIpMappingParams Optional parameters for the method 'ListSourceIpMapping' type ListSourceIpMappingParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* ListSourceIpMapping Method for ListSourceIpMapping * @param optional nil or *ListSourceIpMappingOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return VoiceV1SourceIpMappingReadResponse +@return ListSourceIpMappingResponse */ -func (c *DefaultApiService) ListSourceIpMapping(params *ListSourceIpMappingParams) (*VoiceV1SourceIpMappingReadResponse, error) { +func (c *DefaultApiService) ListSourceIpMapping(params *ListSourceIpMappingParams) (*ListSourceIpMappingResponse, error) { path := "/v1/SourceIpMappings" @@ -956,7 +956,7 @@ func (c *DefaultApiService) ListSourceIpMapping(params *ListSourceIpMappingParam defer resp.Body.Close() - ps := &VoiceV1SourceIpMappingReadResponse{} + ps := &ListSourceIpMappingResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -965,16 +965,16 @@ func (c *DefaultApiService) ListSourceIpMapping(params *ListSourceIpMappingParam } // UpdateByocTrunkParams Optional parameters for the method 'UpdateByocTrunk' type UpdateByocTrunkParams struct { - CnamLookupEnabled *bool `json:"CnamLookupEnabled,omitempty"` - ConnectionPolicySid *string `json:"ConnectionPolicySid,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - FromDomainSid *string `json:"FromDomainSid,omitempty"` - StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` - StatusCallbackUrl *string `json:"StatusCallbackUrl,omitempty"` - VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` - VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` - VoiceMethod *string `json:"VoiceMethod,omitempty"` - VoiceUrl *string `json:"VoiceUrl,omitempty"` + CnamLookupEnabled *bool `json:"CnamLookupEnabled,omitempty"` + ConnectionPolicySid *string `json:"ConnectionPolicySid,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + FromDomainSid *string `json:"FromDomainSid,omitempty"` + StatusCallbackMethod *string `json:"StatusCallbackMethod,omitempty"` + StatusCallbackUrl *string `json:"StatusCallbackUrl,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` } /* @@ -1049,7 +1049,7 @@ func (c *DefaultApiService) UpdateByocTrunk(Sid string, params *UpdateByocTrunkP } // UpdateConnectionPolicyParams Optional parameters for the method 'UpdateConnectionPolicy' type UpdateConnectionPolicyParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -1088,11 +1088,11 @@ func (c *DefaultApiService) UpdateConnectionPolicy(Sid string, params *UpdateCon } // UpdateConnectionPolicyTargetParams Optional parameters for the method 'UpdateConnectionPolicyTarget' type UpdateConnectionPolicyTargetParams struct { - Enabled *bool `json:"Enabled,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - Priority *int32 `json:"Priority,omitempty"` - Target *string `json:"Target,omitempty"` - Weight *int32 `json:"Weight,omitempty"` + Enabled *bool `json:"Enabled,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + Priority *int32 `json:"Priority,omitempty"` + Target *string `json:"Target,omitempty"` + Weight *int32 `json:"Weight,omitempty"` } /* @@ -1149,7 +1149,7 @@ func (c *DefaultApiService) UpdateConnectionPolicyTarget(ConnectionPolicySid str } // UpdateDialingPermissionsSettingsParams Optional parameters for the method 'UpdateDialingPermissionsSettings' type UpdateDialingPermissionsSettingsParams struct { - DialingPermissionsInheritance *bool `json:"DialingPermissionsInheritance,omitempty"` + DialingPermissionsInheritance *bool `json:"DialingPermissionsInheritance,omitempty"` } /* @@ -1187,7 +1187,7 @@ func (c *DefaultApiService) UpdateDialingPermissionsSettings(params *UpdateDiali } // UpdateIpRecordParams Optional parameters for the method 'UpdateIpRecord' type UpdateIpRecordParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` } /* @@ -1226,7 +1226,7 @@ func (c *DefaultApiService) UpdateIpRecord(Sid string, params *UpdateIpRecordPar } // UpdateSourceIpMappingParams Optional parameters for the method 'UpdateSourceIpMapping' type UpdateSourceIpMappingParams struct { - SipDomainSid *string `json:"SipDomainSid,omitempty"` + SipDomainSid *string `json:"SipDomainSid,omitempty"` } /* diff --git a/rest/voice/v1/docs/DefaultApi.md b/rest/voice/v1/docs/DefaultApi.md index d1290f9ea..9f661b808 100644 --- a/rest/voice/v1/docs/DefaultApi.md +++ b/rest/voice/v1/docs/DefaultApi.md @@ -692,7 +692,7 @@ Name | Type | Description | Notes ## ListByocTrunk -> VoiceV1ByocTrunkReadResponse ListByocTrunk(ctx, optional) +> ListByocTrunkResponse ListByocTrunk(ctx, optional) @@ -715,7 +715,7 @@ Name | Type | Description | Notes ### Return type -[**VoiceV1ByocTrunkReadResponse**](voice_v1_byoc_trunkReadResponse.md) +[**ListByocTrunkResponse**](ListByocTrunkResponse.md) ### Authorization @@ -733,7 +733,7 @@ Name | Type | Description | Notes ## ListConnectionPolicy -> VoiceV1ConnectionPolicyReadResponse ListConnectionPolicy(ctx, optional) +> ListConnectionPolicyResponse ListConnectionPolicy(ctx, optional) @@ -756,7 +756,7 @@ Name | Type | Description | Notes ### Return type -[**VoiceV1ConnectionPolicyReadResponse**](voice_v1_connection_policyReadResponse.md) +[**ListConnectionPolicyResponse**](ListConnectionPolicyResponse.md) ### Authorization @@ -774,7 +774,7 @@ Name | Type | Description | Notes ## ListConnectionPolicyTarget -> VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse ListConnectionPolicyTarget(ctx, ConnectionPolicySid, optional) +> ListConnectionPolicyTargetResponse ListConnectionPolicyTarget(ctx, ConnectionPolicySid, optional) @@ -799,7 +799,7 @@ Name | Type | Description | Notes ### Return type -[**VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse**](voice_v1_connection_policy_connection_policy_targetReadResponse.md) +[**ListConnectionPolicyTargetResponse**](ListConnectionPolicyTargetResponse.md) ### Authorization @@ -817,7 +817,7 @@ Name | Type | Description | Notes ## ListDialingPermissionsCountry -> VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse ListDialingPermissionsCountry(ctx, optional) +> ListDialingPermissionsCountryResponse ListDialingPermissionsCountry(ctx, optional) @@ -848,7 +848,7 @@ Name | Type | Description | Notes ### Return type -[**VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse**](voice_v1_dialing_permissions_dialing_permissions_countryReadResponse.md) +[**ListDialingPermissionsCountryResponse**](ListDialingPermissionsCountryResponse.md) ### Authorization @@ -866,7 +866,7 @@ Name | Type | Description | Notes ## ListDialingPermissionsHrsPrefixes -> VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse ListDialingPermissionsHrsPrefixes(ctx, IsoCode, optional) +> ListDialingPermissionsHrsPrefixesResponse ListDialingPermissionsHrsPrefixes(ctx, IsoCode, optional) @@ -893,7 +893,7 @@ Name | Type | Description | Notes ### Return type -[**VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse**](voice_v1_dialing_permissions_dialing_permissions_country_dialing_permissions_hrs_prefixesReadResponse.md) +[**ListDialingPermissionsHrsPrefixesResponse**](ListDialingPermissionsHrsPrefixesResponse.md) ### Authorization @@ -911,7 +911,7 @@ Name | Type | Description | Notes ## ListIpRecord -> VoiceV1IpRecordReadResponse ListIpRecord(ctx, optional) +> ListIpRecordResponse ListIpRecord(ctx, optional) @@ -934,7 +934,7 @@ Name | Type | Description | Notes ### Return type -[**VoiceV1IpRecordReadResponse**](voice_v1_ip_recordReadResponse.md) +[**ListIpRecordResponse**](ListIpRecordResponse.md) ### Authorization @@ -952,7 +952,7 @@ Name | Type | Description | Notes ## ListSourceIpMapping -> VoiceV1SourceIpMappingReadResponse ListSourceIpMapping(ctx, optional) +> ListSourceIpMappingResponse ListSourceIpMapping(ctx, optional) @@ -975,7 +975,7 @@ Name | Type | Description | Notes ### Return type -[**VoiceV1SourceIpMappingReadResponse**](voice_v1_source_ip_mappingReadResponse.md) +[**ListSourceIpMappingResponse**](ListSourceIpMappingResponse.md) ### Authorization diff --git a/rest/voice/v1/docs/VoiceV1ByocTrunkReadResponse.md b/rest/voice/v1/docs/ListByocTrunkResponse.md similarity index 72% rename from rest/voice/v1/docs/VoiceV1ByocTrunkReadResponse.md rename to rest/voice/v1/docs/ListByocTrunkResponse.md index 3259eb5a2..999d4cd33 100644 --- a/rest/voice/v1/docs/VoiceV1ByocTrunkReadResponse.md +++ b/rest/voice/v1/docs/ListByocTrunkResponse.md @@ -1,11 +1,11 @@ -# VoiceV1ByocTrunkReadResponse +# ListByocTrunkResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ByocTrunks** | [**[]VoiceV1ByocTrunk**](voice.v1.byoc_trunk.md) | | [optional] -**Meta** | [**VoiceV1ByocTrunkReadResponseMeta**](voice_v1_byoc_trunkReadResponse_meta.md) | | [optional] +**Meta** | [**ListByocTrunkResponseMeta**](ListByocTrunkResponse_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/rest/voice/v1/docs/ListByocTrunkResponseMeta.md b/rest/voice/v1/docs/ListByocTrunkResponseMeta.md new file mode 100644 index 000000000..2a39dc0db --- /dev/null +++ b/rest/voice/v1/docs/ListByocTrunkResponseMeta.md @@ -0,0 +1,17 @@ +# ListByocTrunkResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/voice/v1/docs/VoiceV1ConnectionPolicyReadResponse.md b/rest/voice/v1/docs/ListConnectionPolicyResponse.md similarity index 72% rename from rest/voice/v1/docs/VoiceV1ConnectionPolicyReadResponse.md rename to rest/voice/v1/docs/ListConnectionPolicyResponse.md index c83ec42ad..4238c3a60 100644 --- a/rest/voice/v1/docs/VoiceV1ConnectionPolicyReadResponse.md +++ b/rest/voice/v1/docs/ListConnectionPolicyResponse.md @@ -1,11 +1,11 @@ -# VoiceV1ConnectionPolicyReadResponse +# ListConnectionPolicyResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ConnectionPolicies** | [**[]VoiceV1ConnectionPolicy**](voice.v1.connection_policy.md) | | [optional] -**Meta** | [**VoiceV1ByocTrunkReadResponseMeta**](voice_v1_byoc_trunkReadResponse_meta.md) | | [optional] +**Meta** | [**ListByocTrunkResponseMeta**](ListByocTrunkResponse_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/rest/voice/v1/docs/VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse.md b/rest/voice/v1/docs/ListConnectionPolicyTargetResponse.md similarity index 71% rename from rest/voice/v1/docs/VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse.md rename to rest/voice/v1/docs/ListConnectionPolicyTargetResponse.md index e40a73316..c9774c07a 100644 --- a/rest/voice/v1/docs/VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse.md +++ b/rest/voice/v1/docs/ListConnectionPolicyTargetResponse.md @@ -1,10 +1,10 @@ -# VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse +# ListConnectionPolicyTargetResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**VoiceV1ByocTrunkReadResponseMeta**](voice_v1_byoc_trunkReadResponse_meta.md) | | [optional] +**Meta** | [**ListByocTrunkResponseMeta**](ListByocTrunkResponse_meta.md) | | [optional] **Targets** | [**[]VoiceV1ConnectionPolicyConnectionPolicyTarget**](voice.v1.connection_policy.connection_policy_target.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/rest/voice/v1/docs/VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse.md b/rest/voice/v1/docs/ListDialingPermissionsCountryResponse.md similarity index 71% rename from rest/voice/v1/docs/VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse.md rename to rest/voice/v1/docs/ListDialingPermissionsCountryResponse.md index b8c9d0e2d..a1450fd3a 100644 --- a/rest/voice/v1/docs/VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse.md +++ b/rest/voice/v1/docs/ListDialingPermissionsCountryResponse.md @@ -1,11 +1,11 @@ -# VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse +# ListDialingPermissionsCountryResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Content** | [**[]VoiceV1DialingPermissionsDialingPermissionsCountry**](voice.v1.dialing_permissions.dialing_permissions_country.md) | | [optional] -**Meta** | [**VoiceV1ByocTrunkReadResponseMeta**](voice_v1_byoc_trunkReadResponse_meta.md) | | [optional] +**Meta** | [**ListByocTrunkResponseMeta**](ListByocTrunkResponse_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/rest/voice/v1/docs/VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse.md b/rest/voice/v1/docs/ListDialingPermissionsHrsPrefixesResponse.md similarity index 70% rename from rest/voice/v1/docs/VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse.md rename to rest/voice/v1/docs/ListDialingPermissionsHrsPrefixesResponse.md index 2c0d5acf9..9b5935866 100644 --- a/rest/voice/v1/docs/VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse.md +++ b/rest/voice/v1/docs/ListDialingPermissionsHrsPrefixesResponse.md @@ -1,11 +1,11 @@ -# VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse +# ListDialingPermissionsHrsPrefixesResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Content** | [**[]VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixes**](voice.v1.dialing_permissions.dialing_permissions_country.dialing_permissions_hrs_prefixes.md) | | [optional] -**Meta** | [**VoiceV1ByocTrunkReadResponseMeta**](voice_v1_byoc_trunkReadResponse_meta.md) | | [optional] +**Meta** | [**ListByocTrunkResponseMeta**](ListByocTrunkResponse_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/rest/voice/v1/docs/VoiceV1IpRecordReadResponse.md b/rest/voice/v1/docs/ListIpRecordResponse.md similarity index 72% rename from rest/voice/v1/docs/VoiceV1IpRecordReadResponse.md rename to rest/voice/v1/docs/ListIpRecordResponse.md index 01c11a855..ee3700dd5 100644 --- a/rest/voice/v1/docs/VoiceV1IpRecordReadResponse.md +++ b/rest/voice/v1/docs/ListIpRecordResponse.md @@ -1,11 +1,11 @@ -# VoiceV1IpRecordReadResponse +# ListIpRecordResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **IpRecords** | [**[]VoiceV1IpRecord**](voice.v1.ip_record.md) | | [optional] -**Meta** | [**VoiceV1ByocTrunkReadResponseMeta**](voice_v1_byoc_trunkReadResponse_meta.md) | | [optional] +**Meta** | [**ListByocTrunkResponseMeta**](ListByocTrunkResponse_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/rest/voice/v1/docs/VoiceV1SourceIpMappingReadResponse.md b/rest/voice/v1/docs/ListSourceIpMappingResponse.md similarity index 72% rename from rest/voice/v1/docs/VoiceV1SourceIpMappingReadResponse.md rename to rest/voice/v1/docs/ListSourceIpMappingResponse.md index 330634850..69d1d9e9b 100644 --- a/rest/voice/v1/docs/VoiceV1SourceIpMappingReadResponse.md +++ b/rest/voice/v1/docs/ListSourceIpMappingResponse.md @@ -1,10 +1,10 @@ -# VoiceV1SourceIpMappingReadResponse +# ListSourceIpMappingResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**VoiceV1ByocTrunkReadResponseMeta**](voice_v1_byoc_trunkReadResponse_meta.md) | | [optional] +**Meta** | [**ListByocTrunkResponseMeta**](ListByocTrunkResponse_meta.md) | | [optional] **SourceIpMappings** | [**[]VoiceV1SourceIpMapping**](voice.v1.source_ip_mapping.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/rest/voice/v1/docs/VoiceV1ByocTrunkReadResponseMeta.md b/rest/voice/v1/docs/VoiceV1ByocTrunkReadResponseMeta.md deleted file mode 100644 index e7f1846d7..000000000 --- a/rest/voice/v1/docs/VoiceV1ByocTrunkReadResponseMeta.md +++ /dev/null @@ -1,17 +0,0 @@ -# VoiceV1ByocTrunkReadResponseMeta - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FirstPageUrl** | **string** | | [optional] -**Key** | **string** | | [optional] -**NextPageUrl** | **string** | | [optional] -**Page** | **int32** | | [optional] -**PageSize** | **int32** | | [optional] -**PreviousPageUrl** | **string** | | [optional] -**Url** | **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/rest/voice/v1/model_create_byoc_trunk_request.go b/rest/voice/v1/model_create_byoc_trunk_request.go index 1e268dd15..927a8c749 100644 --- a/rest/voice/v1/model_create_byoc_trunk_request.go +++ b/rest/voice/v1/model_create_byoc_trunk_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/voice/v1/model_create_connection_policy_request.go b/rest/voice/v1/model_create_connection_policy_request.go index d81f024d8..19491dff2 100644 --- a/rest/voice/v1/model_create_connection_policy_request.go +++ b/rest/voice/v1/model_create_connection_policy_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/voice/v1/model_create_connection_policy_target_request.go b/rest/voice/v1/model_create_connection_policy_target_request.go index 56a08f730..036871411 100644 --- a/rest/voice/v1/model_create_connection_policy_target_request.go +++ b/rest/voice/v1/model_create_connection_policy_target_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/voice/v1/model_create_dialing_permissions_country_bulk_update_request.go b/rest/voice/v1/model_create_dialing_permissions_country_bulk_update_request.go index 0f94aee3a..f59b3e232 100644 --- a/rest/voice/v1/model_create_dialing_permissions_country_bulk_update_request.go +++ b/rest/voice/v1/model_create_dialing_permissions_country_bulk_update_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/voice/v1/model_create_ip_record_request.go b/rest/voice/v1/model_create_ip_record_request.go index d03492570..19f6a8aac 100644 --- a/rest/voice/v1/model_create_ip_record_request.go +++ b/rest/voice/v1/model_create_ip_record_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/voice/v1/model_create_source_ip_mapping_request.go b/rest/voice/v1/model_create_source_ip_mapping_request.go index d49c3a0be..66b49993d 100644 --- a/rest/voice/v1/model_create_source_ip_mapping_request.go +++ b/rest/voice/v1/model_create_source_ip_mapping_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/voice/v1/model_voice_v1_byoc_trunk_read_response.go b/rest/voice/v1/model_list_byoc_trunk_response.go similarity index 55% rename from rest/voice/v1/model_voice_v1_byoc_trunk_read_response.go rename to rest/voice/v1/model_list_byoc_trunk_response.go index d5106e1b2..1313dcc8d 100644 --- a/rest/voice/v1/model_voice_v1_byoc_trunk_read_response.go +++ b/rest/voice/v1/model_list_byoc_trunk_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// VoiceV1ByocTrunkReadResponse struct for VoiceV1ByocTrunkReadResponse -type VoiceV1ByocTrunkReadResponse struct { +// ListByocTrunkResponse struct for ListByocTrunkResponse +type ListByocTrunkResponse struct { ByocTrunks []VoiceV1ByocTrunk `json:"ByocTrunks,omitempty"` - Meta VoiceV1ByocTrunkReadResponseMeta `json:"Meta,omitempty"` + Meta ListByocTrunkResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/voice/v1/model_voice_v1_byoc_trunk_read_response_meta.go b/rest/voice/v1/model_list_byoc_trunk_response_meta.go similarity index 76% rename from rest/voice/v1/model_voice_v1_byoc_trunk_read_response_meta.go rename to rest/voice/v1/model_list_byoc_trunk_response_meta.go index 40736b518..879a18e2f 100644 --- a/rest/voice/v1/model_voice_v1_byoc_trunk_read_response_meta.go +++ b/rest/voice/v1/model_list_byoc_trunk_response_meta.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// VoiceV1ByocTrunkReadResponseMeta struct for VoiceV1ByocTrunkReadResponseMeta -type VoiceV1ByocTrunkReadResponseMeta struct { +// ListByocTrunkResponseMeta struct for ListByocTrunkResponseMeta +type ListByocTrunkResponseMeta struct { FirstPageUrl string `json:"FirstPageUrl,omitempty"` Key string `json:"Key,omitempty"` NextPageUrl string `json:"NextPageUrl,omitempty"` diff --git a/rest/voice/v1/model_voice_v1_connection_policy_read_response.go b/rest/voice/v1/model_list_connection_policy_response.go similarity index 55% rename from rest/voice/v1/model_voice_v1_connection_policy_read_response.go rename to rest/voice/v1/model_list_connection_policy_response.go index e2a35d2be..f0824bbf7 100644 --- a/rest/voice/v1/model_voice_v1_connection_policy_read_response.go +++ b/rest/voice/v1/model_list_connection_policy_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// VoiceV1ConnectionPolicyReadResponse struct for VoiceV1ConnectionPolicyReadResponse -type VoiceV1ConnectionPolicyReadResponse struct { +// ListConnectionPolicyResponse struct for ListConnectionPolicyResponse +type ListConnectionPolicyResponse struct { ConnectionPolicies []VoiceV1ConnectionPolicy `json:"ConnectionPolicies,omitempty"` - Meta VoiceV1ByocTrunkReadResponseMeta `json:"Meta,omitempty"` + Meta ListByocTrunkResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/voice/v1/model_list_connection_policy_target_response.go b/rest/voice/v1/model_list_connection_policy_target_response.go new file mode 100644 index 000000000..18ce46dcc --- /dev/null +++ b/rest/voice/v1/model_list_connection_policy_target_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Voice + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListConnectionPolicyTargetResponse struct for ListConnectionPolicyTargetResponse +type ListConnectionPolicyTargetResponse struct { + Meta ListByocTrunkResponseMeta `json:"Meta,omitempty"` + Targets []VoiceV1ConnectionPolicyConnectionPolicyTarget `json:"Targets,omitempty"` +} diff --git a/rest/voice/v1/model_list_dialing_permissions_country_response.go b/rest/voice/v1/model_list_dialing_permissions_country_response.go new file mode 100644 index 000000000..b4bd62ac0 --- /dev/null +++ b/rest/voice/v1/model_list_dialing_permissions_country_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Voice + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListDialingPermissionsCountryResponse struct for ListDialingPermissionsCountryResponse +type ListDialingPermissionsCountryResponse struct { + Content []VoiceV1DialingPermissionsDialingPermissionsCountry `json:"Content,omitempty"` + Meta ListByocTrunkResponseMeta `json:"Meta,omitempty"` +} diff --git a/rest/voice/v1/model_list_dialing_permissions_hrs_prefixes_response.go b/rest/voice/v1/model_list_dialing_permissions_hrs_prefixes_response.go new file mode 100644 index 000000000..c7d0180c4 --- /dev/null +++ b/rest/voice/v1/model_list_dialing_permissions_hrs_prefixes_response.go @@ -0,0 +1,16 @@ +/* + * Twilio - Voice + * + * This is the public Twilio REST API. + * + * API version: 1.0.0 + * Contact: support@twilio.com + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +// ListDialingPermissionsHrsPrefixesResponse struct for ListDialingPermissionsHrsPrefixesResponse +type ListDialingPermissionsHrsPrefixesResponse struct { + Content []VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixes `json:"Content,omitempty"` + Meta ListByocTrunkResponseMeta `json:"Meta,omitempty"` +} diff --git a/rest/voice/v1/model_voice_v1_ip_record_read_response.go b/rest/voice/v1/model_list_ip_record_response.go similarity index 55% rename from rest/voice/v1/model_voice_v1_ip_record_read_response.go rename to rest/voice/v1/model_list_ip_record_response.go index f7c031518..b3d8f59bd 100644 --- a/rest/voice/v1/model_voice_v1_ip_record_read_response.go +++ b/rest/voice/v1/model_list_ip_record_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// VoiceV1IpRecordReadResponse struct for VoiceV1IpRecordReadResponse -type VoiceV1IpRecordReadResponse struct { +// ListIpRecordResponse struct for ListIpRecordResponse +type ListIpRecordResponse struct { IpRecords []VoiceV1IpRecord `json:"IpRecords,omitempty"` - Meta VoiceV1ByocTrunkReadResponseMeta `json:"Meta,omitempty"` + Meta ListByocTrunkResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/voice/v1/model_voice_v1_source_ip_mapping_read_response.go b/rest/voice/v1/model_list_source_ip_mapping_response.go similarity index 54% rename from rest/voice/v1/model_voice_v1_source_ip_mapping_read_response.go rename to rest/voice/v1/model_list_source_ip_mapping_response.go index c4a7fe114..13c75f6e2 100644 --- a/rest/voice/v1/model_voice_v1_source_ip_mapping_read_response.go +++ b/rest/voice/v1/model_list_source_ip_mapping_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// VoiceV1SourceIpMappingReadResponse struct for VoiceV1SourceIpMappingReadResponse -type VoiceV1SourceIpMappingReadResponse struct { - Meta VoiceV1ByocTrunkReadResponseMeta `json:"Meta,omitempty"` +// ListSourceIpMappingResponse struct for ListSourceIpMappingResponse +type ListSourceIpMappingResponse struct { + Meta ListByocTrunkResponseMeta `json:"Meta,omitempty"` SourceIpMappings []VoiceV1SourceIpMapping `json:"SourceIpMappings,omitempty"` } diff --git a/rest/voice/v1/model_update_byoc_trunk_request.go b/rest/voice/v1/model_update_byoc_trunk_request.go index da671a3ec..fa239cd31 100644 --- a/rest/voice/v1/model_update_byoc_trunk_request.go +++ b/rest/voice/v1/model_update_byoc_trunk_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/voice/v1/model_update_connection_policy_request.go b/rest/voice/v1/model_update_connection_policy_request.go index 751ac3723..f62f7011c 100644 --- a/rest/voice/v1/model_update_connection_policy_request.go +++ b/rest/voice/v1/model_update_connection_policy_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/voice/v1/model_update_connection_policy_target_request.go b/rest/voice/v1/model_update_connection_policy_target_request.go index 5de3c209e..37d448a5b 100644 --- a/rest/voice/v1/model_update_connection_policy_target_request.go +++ b/rest/voice/v1/model_update_connection_policy_target_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/voice/v1/model_update_dialing_permissions_settings_request.go b/rest/voice/v1/model_update_dialing_permissions_settings_request.go index 669e50480..87f63379c 100644 --- a/rest/voice/v1/model_update_dialing_permissions_settings_request.go +++ b/rest/voice/v1/model_update_dialing_permissions_settings_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/voice/v1/model_update_ip_record_request.go b/rest/voice/v1/model_update_ip_record_request.go index 9466f2074..58d89ce7d 100644 --- a/rest/voice/v1/model_update_ip_record_request.go +++ b/rest/voice/v1/model_update_ip_record_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/voice/v1/model_update_source_ip_mapping_request.go b/rest/voice/v1/model_update_source_ip_mapping_request.go index 5ce541fff..1baa1d110 100644 --- a/rest/voice/v1/model_update_source_ip_mapping_request.go +++ b/rest/voice/v1/model_update_source_ip_mapping_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/voice/v1/model_voice_v1_byoc_trunk.go b/rest/voice/v1/model_voice_v1_byoc_trunk.go index f2fa963da..62ab23289 100644 --- a/rest/voice/v1/model_voice_v1_byoc_trunk.go +++ b/rest/voice/v1/model_voice_v1_byoc_trunk.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/voice/v1/model_voice_v1_connection_policy.go b/rest/voice/v1/model_voice_v1_connection_policy.go index f7b1ddf6d..c216b8e1b 100644 --- a/rest/voice/v1/model_voice_v1_connection_policy.go +++ b/rest/voice/v1/model_voice_v1_connection_policy.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/voice/v1/model_voice_v1_connection_policy_connection_policy_target.go b/rest/voice/v1/model_voice_v1_connection_policy_connection_policy_target.go index e132295ba..703d1a555 100644 --- a/rest/voice/v1/model_voice_v1_connection_policy_connection_policy_target.go +++ b/rest/voice/v1/model_voice_v1_connection_policy_connection_policy_target.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/voice/v1/model_voice_v1_connection_policy_connection_policy_target_read_response.go b/rest/voice/v1/model_voice_v1_connection_policy_connection_policy_target_read_response.go deleted file mode 100644 index 6bdfade05..000000000 --- a/rest/voice/v1/model_voice_v1_connection_policy_connection_policy_target_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Voice - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse struct for VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse -type VoiceV1ConnectionPolicyConnectionPolicyTargetReadResponse struct { - Meta VoiceV1ByocTrunkReadResponseMeta `json:"Meta,omitempty"` - Targets []VoiceV1ConnectionPolicyConnectionPolicyTarget `json:"Targets,omitempty"` -} diff --git a/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country.go b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country.go index 363355282..b9b5f6b47 100644 --- a/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country.go +++ b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_bulk_update.go b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_bulk_update.go index fdc1dc40e..45add915f 100644 --- a/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_bulk_update.go +++ b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_bulk_update.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_dialing_permissions_hrs_prefixes.go b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_dialing_permissions_hrs_prefixes.go index 3ce2c7015..e2fd31f63 100644 --- a/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_dialing_permissions_hrs_prefixes.go +++ b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_dialing_permissions_hrs_prefixes.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_dialing_permissions_hrs_prefixes_read_response.go b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_dialing_permissions_hrs_prefixes_read_response.go deleted file mode 100644 index 283159a28..000000000 --- a/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_dialing_permissions_hrs_prefixes_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Voice - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse struct for VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse -type VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixesReadResponse struct { - Content []VoiceV1DialingPermissionsDialingPermissionsCountryDialingPermissionsHrsPrefixes `json:"Content,omitempty"` - Meta VoiceV1ByocTrunkReadResponseMeta `json:"Meta,omitempty"` -} diff --git a/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_instance.go b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_instance.go index b415df659..83c538343 100644 --- a/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_instance.go +++ b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_instance.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_read_response.go b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_read_response.go deleted file mode 100644 index 1bff0aa0a..000000000 --- a/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_country_read_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Twilio - Voice - * - * This is the public Twilio REST API. - * - * API version: 5.15.0 - * Contact: support@twilio.com - * Generated by: OpenAPI Generator (https://openapi-generator.tech) - */ - -package openapi -// VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse struct for VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse -type VoiceV1DialingPermissionsDialingPermissionsCountryReadResponse struct { - Content []VoiceV1DialingPermissionsDialingPermissionsCountry `json:"Content,omitempty"` - Meta VoiceV1ByocTrunkReadResponseMeta `json:"Meta,omitempty"` -} diff --git a/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_settings.go b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_settings.go index 15023b52c..9c8eda787 100644 --- a/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_settings.go +++ b/rest/voice/v1/model_voice_v1_dialing_permissions_dialing_permissions_settings.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/voice/v1/model_voice_v1_ip_record.go b/rest/voice/v1/model_voice_v1_ip_record.go index cb957faab..d4dc98857 100644 --- a/rest/voice/v1/model_voice_v1_ip_record.go +++ b/rest/voice/v1/model_voice_v1_ip_record.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/voice/v1/model_voice_v1_source_ip_mapping.go b/rest/voice/v1/model_voice_v1_source_ip_mapping.go index 7c9303083..75c3087b2 100644 --- a/rest/voice/v1/model_voice_v1_source_ip_mapping.go +++ b/rest/voice/v1/model_voice_v1_source_ip_mapping.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/voice/v1/response.go b/rest/voice/v1/response.go index 3d6450c20..af10df6e2 100644 --- a/rest/voice/v1/response.go +++ b/rest/voice/v1/response.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/wireless/v1/README.md b/rest/wireless/v1/README.md index 0bc290ac9..dfcc1a5f1 100644 --- a/rest/wireless/v1/README.md +++ b/rest/wireless/v1/README.md @@ -5,7 +5,7 @@ This is the public Twilio REST API. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 5.15.0 +- API version: 1.0.0 - Package version: 1.0.0 - Build package: com.twilio.oai.TwilioGoGenerator For more information, please visit [https://support.twilio.com](https://support.twilio.com) @@ -53,21 +53,21 @@ Class | Method | HTTP request | Description - [CreateCommandRequest](docs/CreateCommandRequest.md) - [CreateRatePlanRequest](docs/CreateRatePlanRequest.md) + - [ListAccountUsageRecordResponse](docs/ListAccountUsageRecordResponse.md) + - [ListCommandResponse](docs/ListCommandResponse.md) + - [ListCommandResponseMeta](docs/ListCommandResponseMeta.md) + - [ListDataSessionResponse](docs/ListDataSessionResponse.md) + - [ListRatePlanResponse](docs/ListRatePlanResponse.md) + - [ListSimResponse](docs/ListSimResponse.md) + - [ListUsageRecordResponse](docs/ListUsageRecordResponse.md) - [UpdateRatePlanRequest](docs/UpdateRatePlanRequest.md) - [UpdateSimRequest](docs/UpdateSimRequest.md) - [WirelessV1AccountUsageRecord](docs/WirelessV1AccountUsageRecord.md) - - [WirelessV1AccountUsageRecordReadResponse](docs/WirelessV1AccountUsageRecordReadResponse.md) - [WirelessV1Command](docs/WirelessV1Command.md) - - [WirelessV1CommandReadResponse](docs/WirelessV1CommandReadResponse.md) - - [WirelessV1CommandReadResponseMeta](docs/WirelessV1CommandReadResponseMeta.md) - [WirelessV1RatePlan](docs/WirelessV1RatePlan.md) - - [WirelessV1RatePlanReadResponse](docs/WirelessV1RatePlanReadResponse.md) - [WirelessV1Sim](docs/WirelessV1Sim.md) - [WirelessV1SimDataSession](docs/WirelessV1SimDataSession.md) - - [WirelessV1SimDataSessionReadResponse](docs/WirelessV1SimDataSessionReadResponse.md) - - [WirelessV1SimReadResponse](docs/WirelessV1SimReadResponse.md) - [WirelessV1SimUsageRecord](docs/WirelessV1SimUsageRecord.md) - - [WirelessV1SimUsageRecordReadResponse](docs/WirelessV1SimUsageRecordReadResponse.md) ## Documentation For Authorization diff --git a/rest/wireless/v1/api_default.go b/rest/wireless/v1/api_default.go index f43cb34a8..99380a1e0 100644 --- a/rest/wireless/v1/api_default.go +++ b/rest/wireless/v1/api_default.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ @@ -27,18 +27,18 @@ type DefaultApiService struct { func NewDefaultApiService(client *twilio.Client) *DefaultApiService { return &DefaultApiService { client: client, - baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL), + baseURL: fmt.Sprintf("https://wireless.twilio.com"), } } // CreateCommandParams Optional parameters for the method 'CreateCommand' type CreateCommandParams struct { - CallbackMethod *string `json:"CallbackMethod,omitempty"` - CallbackUrl *string `json:"CallbackUrl,omitempty"` - Command *string `json:"Command,omitempty"` - CommandMode *string `json:"CommandMode,omitempty"` - DeliveryReceiptRequested *bool `json:"DeliveryReceiptRequested,omitempty"` - IncludeSid *string `json:"IncludeSid,omitempty"` - Sim *string `json:"Sim,omitempty"` + CallbackMethod *string `json:"CallbackMethod,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + Command *string `json:"Command,omitempty"` + CommandMode *string `json:"CommandMode,omitempty"` + DeliveryReceiptRequested *bool `json:"DeliveryReceiptRequested,omitempty"` + IncludeSid *string `json:"IncludeSid,omitempty"` + Sim *string `json:"Sim,omitempty"` } /* @@ -100,17 +100,17 @@ func (c *DefaultApiService) CreateCommand(params *CreateCommandParams) (*Wireles } // CreateRatePlanParams Optional parameters for the method 'CreateRatePlan' type CreateRatePlanParams struct { - DataEnabled *bool `json:"DataEnabled,omitempty"` - DataLimit *int32 `json:"DataLimit,omitempty"` - DataMetering *string `json:"DataMetering,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - InternationalRoaming *[]string `json:"InternationalRoaming,omitempty"` - InternationalRoamingDataLimit *int32 `json:"InternationalRoamingDataLimit,omitempty"` - MessagingEnabled *bool `json:"MessagingEnabled,omitempty"` - NationalRoamingDataLimit *int32 `json:"NationalRoamingDataLimit,omitempty"` - NationalRoamingEnabled *bool `json:"NationalRoamingEnabled,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` - VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` + DataEnabled *bool `json:"DataEnabled,omitempty"` + DataLimit *int32 `json:"DataLimit,omitempty"` + DataMetering *string `json:"DataMetering,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + InternationalRoaming *[]string `json:"InternationalRoaming,omitempty"` + InternationalRoamingDataLimit *int32 `json:"InternationalRoamingDataLimit,omitempty"` + MessagingEnabled *bool `json:"MessagingEnabled,omitempty"` + NationalRoamingDataLimit *int32 `json:"NationalRoamingDataLimit,omitempty"` + NationalRoamingEnabled *bool `json:"NationalRoamingEnabled,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + VoiceEnabled *bool `json:"VoiceEnabled,omitempty"` } /* @@ -353,10 +353,10 @@ func (c *DefaultApiService) FetchSim(Sid string) (*WirelessV1Sim, error) { } // ListAccountUsageRecordParams Optional parameters for the method 'ListAccountUsageRecord' type ListAccountUsageRecordParams struct { - End *time.Time `json:"End,omitempty"` - Start *time.Time `json:"Start,omitempty"` - Granularity *string `json:"Granularity,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + End *time.Time `json:"End,omitempty"` + Start *time.Time `json:"Start,omitempty"` + Granularity *string `json:"Granularity,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -366,9 +366,9 @@ ListAccountUsageRecord Method for ListAccountUsageRecord * @param "Start" (time.Time) - Only include usage that has occurred on or after this date. Format is [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html). * @param "Granularity" (string) - How to summarize the usage by time. Can be: `daily`, `hourly`, or `all`. A value of `all` returns one Usage Record that describes the usage for the entire period. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return WirelessV1AccountUsageRecordReadResponse +@return ListAccountUsageRecordResponse */ -func (c *DefaultApiService) ListAccountUsageRecord(params *ListAccountUsageRecordParams) (*WirelessV1AccountUsageRecordReadResponse, error) { +func (c *DefaultApiService) ListAccountUsageRecord(params *ListAccountUsageRecordParams) (*ListAccountUsageRecordResponse, error) { path := "/v1/UsageRecords" @@ -396,7 +396,7 @@ func (c *DefaultApiService) ListAccountUsageRecord(params *ListAccountUsageRecor defer resp.Body.Close() - ps := &WirelessV1AccountUsageRecordReadResponse{} + ps := &ListAccountUsageRecordResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -405,11 +405,11 @@ func (c *DefaultApiService) ListAccountUsageRecord(params *ListAccountUsageRecor } // ListCommandParams Optional parameters for the method 'ListCommand' type ListCommandParams struct { - Sim *string `json:"Sim,omitempty"` - Status *string `json:"Status,omitempty"` - Direction *string `json:"Direction,omitempty"` - Transport *string `json:"Transport,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Sim *string `json:"Sim,omitempty"` + Status *string `json:"Status,omitempty"` + Direction *string `json:"Direction,omitempty"` + Transport *string `json:"Transport,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -421,9 +421,9 @@ Retrieve a list of Commands from your account. * @param "Direction" (string) - Only return Commands with this direction value. * @param "Transport" (string) - Only return Commands with this transport value. Can be: `sms` or `ip`. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return WirelessV1CommandReadResponse +@return ListCommandResponse */ -func (c *DefaultApiService) ListCommand(params *ListCommandParams) (*WirelessV1CommandReadResponse, error) { +func (c *DefaultApiService) ListCommand(params *ListCommandParams) (*ListCommandResponse, error) { path := "/v1/Commands" @@ -454,7 +454,7 @@ func (c *DefaultApiService) ListCommand(params *ListCommandParams) (*WirelessV1C defer resp.Body.Close() - ps := &WirelessV1CommandReadResponse{} + ps := &ListCommandResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -463,7 +463,7 @@ func (c *DefaultApiService) ListCommand(params *ListCommandParams) (*WirelessV1C } // ListDataSessionParams Optional parameters for the method 'ListDataSession' type ListDataSessionParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -471,9 +471,9 @@ ListDataSession Method for ListDataSession * @param SimSid The SID of the [Sim resource](https://www.twilio.com/docs/wireless/api/sim-resource) with the Data Sessions to read. * @param optional nil or *ListDataSessionOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return WirelessV1SimDataSessionReadResponse +@return ListDataSessionResponse */ -func (c *DefaultApiService) ListDataSession(SimSid string, params *ListDataSessionParams) (*WirelessV1SimDataSessionReadResponse, error) { +func (c *DefaultApiService) ListDataSession(SimSid string, params *ListDataSessionParams) (*ListDataSessionResponse, error) { path := "/v1/Sims/{SimSid}/DataSessions" path = strings.Replace(path, "{"+"SimSid"+"}", SimSid, -1) @@ -493,7 +493,7 @@ func (c *DefaultApiService) ListDataSession(SimSid string, params *ListDataSessi defer resp.Body.Close() - ps := &WirelessV1SimDataSessionReadResponse{} + ps := &ListDataSessionResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -502,16 +502,16 @@ func (c *DefaultApiService) ListDataSession(SimSid string, params *ListDataSessi } // ListRatePlanParams Optional parameters for the method 'ListRatePlan' type ListRatePlanParams struct { - PageSize *int32 `json:"PageSize,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* ListRatePlan Method for ListRatePlan * @param optional nil or *ListRatePlanOpts - Optional Parameters: * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return WirelessV1RatePlanReadResponse +@return ListRatePlanResponse */ -func (c *DefaultApiService) ListRatePlan(params *ListRatePlanParams) (*WirelessV1RatePlanReadResponse, error) { +func (c *DefaultApiService) ListRatePlan(params *ListRatePlanParams) (*ListRatePlanResponse, error) { path := "/v1/RatePlans" @@ -530,7 +530,7 @@ func (c *DefaultApiService) ListRatePlan(params *ListRatePlanParams) (*WirelessV defer resp.Body.Close() - ps := &WirelessV1RatePlanReadResponse{} + ps := &ListRatePlanResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -539,12 +539,12 @@ func (c *DefaultApiService) ListRatePlan(params *ListRatePlanParams) (*WirelessV } // ListSimParams Optional parameters for the method 'ListSim' type ListSimParams struct { - Status *string `json:"Status,omitempty"` - Iccid *string `json:"Iccid,omitempty"` - RatePlan *string `json:"RatePlan,omitempty"` - EId *string `json:"EId,omitempty"` - SimRegistrationCode *string `json:"SimRegistrationCode,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + Status *string `json:"Status,omitempty"` + Iccid *string `json:"Iccid,omitempty"` + RatePlan *string `json:"RatePlan,omitempty"` + EId *string `json:"EId,omitempty"` + SimRegistrationCode *string `json:"SimRegistrationCode,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -557,9 +557,9 @@ Retrieve a list of Sim resources on your Account. * @param "EId" (string) - Deprecated. * @param "SimRegistrationCode" (string) - Only return Sim resources with this registration code. This will return a list with a maximum size of 1. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return WirelessV1SimReadResponse +@return ListSimResponse */ -func (c *DefaultApiService) ListSim(params *ListSimParams) (*WirelessV1SimReadResponse, error) { +func (c *DefaultApiService) ListSim(params *ListSimParams) (*ListSimResponse, error) { path := "/v1/Sims" @@ -593,7 +593,7 @@ func (c *DefaultApiService) ListSim(params *ListSimParams) (*WirelessV1SimReadRe defer resp.Body.Close() - ps := &WirelessV1SimReadResponse{} + ps := &ListSimResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -602,10 +602,10 @@ func (c *DefaultApiService) ListSim(params *ListSimParams) (*WirelessV1SimReadRe } // ListUsageRecordParams Optional parameters for the method 'ListUsageRecord' type ListUsageRecordParams struct { - End *time.Time `json:"End,omitempty"` - Start *time.Time `json:"Start,omitempty"` - Granularity *string `json:"Granularity,omitempty"` - PageSize *int32 `json:"PageSize,omitempty"` + End *time.Time `json:"End,omitempty"` + Start *time.Time `json:"Start,omitempty"` + Granularity *string `json:"Granularity,omitempty"` + PageSize *int32 `json:"PageSize,omitempty"` } /* @@ -616,9 +616,9 @@ ListUsageRecord Method for ListUsageRecord * @param "Start" (time.Time) - Only include usage that has occurred on or after this date, specified in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html). The default is one month before the `end` parameter value. * @param "Granularity" (string) - How to summarize the usage by time. Can be: `daily`, `hourly`, or `all`. The default is `all`. A value of `all` returns one Usage Record that describes the usage for the entire period. * @param "PageSize" (int32) - How many resources to return in each list page. The default is 50, and the maximum is 1000. -@return WirelessV1SimUsageRecordReadResponse +@return ListUsageRecordResponse */ -func (c *DefaultApiService) ListUsageRecord(SimSid string, params *ListUsageRecordParams) (*WirelessV1SimUsageRecordReadResponse, error) { +func (c *DefaultApiService) ListUsageRecord(SimSid string, params *ListUsageRecordParams) (*ListUsageRecordResponse, error) { path := "/v1/Sims/{SimSid}/UsageRecords" path = strings.Replace(path, "{"+"SimSid"+"}", SimSid, -1) @@ -647,7 +647,7 @@ func (c *DefaultApiService) ListUsageRecord(SimSid string, params *ListUsageReco defer resp.Body.Close() - ps := &WirelessV1SimUsageRecordReadResponse{} + ps := &ListUsageRecordResponse{} if err := json.NewDecoder(resp.Body).Decode(ps); err != nil { return nil, err } @@ -656,8 +656,8 @@ func (c *DefaultApiService) ListUsageRecord(SimSid string, params *ListUsageReco } // UpdateRatePlanParams Optional parameters for the method 'UpdateRatePlan' type UpdateRatePlanParams struct { - FriendlyName *string `json:"FriendlyName,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` } /* @@ -700,24 +700,24 @@ func (c *DefaultApiService) UpdateRatePlan(Sid string, params *UpdateRatePlanPar } // UpdateSimParams Optional parameters for the method 'UpdateSim' type UpdateSimParams struct { - AccountSid *string `json:"AccountSid,omitempty"` - CallbackMethod *string `json:"CallbackMethod,omitempty"` - CallbackUrl *string `json:"CallbackUrl,omitempty"` - CommandsCallbackMethod *string `json:"CommandsCallbackMethod,omitempty"` - CommandsCallbackUrl *string `json:"CommandsCallbackUrl,omitempty"` - FriendlyName *string `json:"FriendlyName,omitempty"` - RatePlan *string `json:"RatePlan,omitempty"` - ResetStatus *string `json:"ResetStatus,omitempty"` - SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` - SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` - SmsMethod *string `json:"SmsMethod,omitempty"` - SmsUrl *string `json:"SmsUrl,omitempty"` - Status *string `json:"Status,omitempty"` - UniqueName *string `json:"UniqueName,omitempty"` - VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` - VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` - VoiceMethod *string `json:"VoiceMethod,omitempty"` - VoiceUrl *string `json:"VoiceUrl,omitempty"` + AccountSid *string `json:"AccountSid,omitempty"` + CallbackMethod *string `json:"CallbackMethod,omitempty"` + CallbackUrl *string `json:"CallbackUrl,omitempty"` + CommandsCallbackMethod *string `json:"CommandsCallbackMethod,omitempty"` + CommandsCallbackUrl *string `json:"CommandsCallbackUrl,omitempty"` + FriendlyName *string `json:"FriendlyName,omitempty"` + RatePlan *string `json:"RatePlan,omitempty"` + ResetStatus *string `json:"ResetStatus,omitempty"` + SmsFallbackMethod *string `json:"SmsFallbackMethod,omitempty"` + SmsFallbackUrl *string `json:"SmsFallbackUrl,omitempty"` + SmsMethod *string `json:"SmsMethod,omitempty"` + SmsUrl *string `json:"SmsUrl,omitempty"` + Status *string `json:"Status,omitempty"` + UniqueName *string `json:"UniqueName,omitempty"` + VoiceFallbackMethod *string `json:"VoiceFallbackMethod,omitempty"` + VoiceFallbackUrl *string `json:"VoiceFallbackUrl,omitempty"` + VoiceMethod *string `json:"VoiceMethod,omitempty"` + VoiceUrl *string `json:"VoiceUrl,omitempty"` } /* diff --git a/rest/wireless/v1/docs/DefaultApi.md b/rest/wireless/v1/docs/DefaultApi.md index 2993c0ac9..97f26d382 100644 --- a/rest/wireless/v1/docs/DefaultApi.md +++ b/rest/wireless/v1/docs/DefaultApi.md @@ -325,7 +325,7 @@ Name | Type | Description | Notes ## ListAccountUsageRecord -> WirelessV1AccountUsageRecordReadResponse ListAccountUsageRecord(ctx, optional) +> ListAccountUsageRecordResponse ListAccountUsageRecord(ctx, optional) @@ -351,7 +351,7 @@ Name | Type | Description | Notes ### Return type -[**WirelessV1AccountUsageRecordReadResponse**](wireless_v1_account_usage_recordReadResponse.md) +[**ListAccountUsageRecordResponse**](ListAccountUsageRecordResponse.md) ### Authorization @@ -369,7 +369,7 @@ Name | Type | Description | Notes ## ListCommand -> WirelessV1CommandReadResponse ListCommand(ctx, optional) +> ListCommandResponse ListCommand(ctx, optional) @@ -398,7 +398,7 @@ Name | Type | Description | Notes ### Return type -[**WirelessV1CommandReadResponse**](wireless_v1_commandReadResponse.md) +[**ListCommandResponse**](ListCommandResponse.md) ### Authorization @@ -416,7 +416,7 @@ Name | Type | Description | Notes ## ListDataSession -> WirelessV1SimDataSessionReadResponse ListDataSession(ctx, SimSid, optional) +> ListDataSessionResponse ListDataSession(ctx, SimSid, optional) @@ -441,7 +441,7 @@ Name | Type | Description | Notes ### Return type -[**WirelessV1SimDataSessionReadResponse**](wireless_v1_sim_data_sessionReadResponse.md) +[**ListDataSessionResponse**](ListDataSessionResponse.md) ### Authorization @@ -459,7 +459,7 @@ Name | Type | Description | Notes ## ListRatePlan -> WirelessV1RatePlanReadResponse ListRatePlan(ctx, optional) +> ListRatePlanResponse ListRatePlan(ctx, optional) @@ -482,7 +482,7 @@ Name | Type | Description | Notes ### Return type -[**WirelessV1RatePlanReadResponse**](wireless_v1_rate_planReadResponse.md) +[**ListRatePlanResponse**](ListRatePlanResponse.md) ### Authorization @@ -500,7 +500,7 @@ Name | Type | Description | Notes ## ListSim -> WirelessV1SimReadResponse ListSim(ctx, optional) +> ListSimResponse ListSim(ctx, optional) @@ -530,7 +530,7 @@ Name | Type | Description | Notes ### Return type -[**WirelessV1SimReadResponse**](wireless_v1_simReadResponse.md) +[**ListSimResponse**](ListSimResponse.md) ### Authorization @@ -548,7 +548,7 @@ Name | Type | Description | Notes ## ListUsageRecord -> WirelessV1SimUsageRecordReadResponse ListUsageRecord(ctx, SimSid, optional) +> ListUsageRecordResponse ListUsageRecord(ctx, SimSid, optional) @@ -576,7 +576,7 @@ Name | Type | Description | Notes ### Return type -[**WirelessV1SimUsageRecordReadResponse**](wireless_v1_sim_usage_recordReadResponse.md) +[**ListUsageRecordResponse**](ListUsageRecordResponse.md) ### Authorization diff --git a/rest/wireless/v1/docs/WirelessV1AccountUsageRecordReadResponse.md b/rest/wireless/v1/docs/ListAccountUsageRecordResponse.md similarity index 71% rename from rest/wireless/v1/docs/WirelessV1AccountUsageRecordReadResponse.md rename to rest/wireless/v1/docs/ListAccountUsageRecordResponse.md index e011ea847..3e25b1e86 100644 --- a/rest/wireless/v1/docs/WirelessV1AccountUsageRecordReadResponse.md +++ b/rest/wireless/v1/docs/ListAccountUsageRecordResponse.md @@ -1,10 +1,10 @@ -# WirelessV1AccountUsageRecordReadResponse +# ListAccountUsageRecordResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**WirelessV1CommandReadResponseMeta**](wireless_v1_commandReadResponse_meta.md) | | [optional] +**Meta** | [**ListCommandResponseMeta**](ListCommandResponse_meta.md) | | [optional] **UsageRecords** | [**[]WirelessV1AccountUsageRecord**](wireless.v1.account_usage_record.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/rest/wireless/v1/docs/WirelessV1CommandReadResponse.md b/rest/wireless/v1/docs/ListCommandResponse.md similarity index 71% rename from rest/wireless/v1/docs/WirelessV1CommandReadResponse.md rename to rest/wireless/v1/docs/ListCommandResponse.md index 7d45a3ada..3f8f78ec9 100644 --- a/rest/wireless/v1/docs/WirelessV1CommandReadResponse.md +++ b/rest/wireless/v1/docs/ListCommandResponse.md @@ -1,11 +1,11 @@ -# WirelessV1CommandReadResponse +# ListCommandResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Commands** | [**[]WirelessV1Command**](wireless.v1.command.md) | | [optional] -**Meta** | [**WirelessV1CommandReadResponseMeta**](wireless_v1_commandReadResponse_meta.md) | | [optional] +**Meta** | [**ListCommandResponseMeta**](ListCommandResponse_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/rest/wireless/v1/docs/ListCommandResponseMeta.md b/rest/wireless/v1/docs/ListCommandResponseMeta.md new file mode 100644 index 000000000..84838a66c --- /dev/null +++ b/rest/wireless/v1/docs/ListCommandResponseMeta.md @@ -0,0 +1,17 @@ +# ListCommandResponseMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FirstPageUrl** | **string** | | [optional] +**Key** | **string** | | [optional] +**NextPageUrl** | **string** | | [optional] +**Page** | **int32** | | [optional] +**PageSize** | **int32** | | [optional] +**PreviousPageUrl** | **string** | | [optional] +**Url** | **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/rest/wireless/v1/docs/WirelessV1SimDataSessionReadResponse.md b/rest/wireless/v1/docs/ListDataSessionResponse.md similarity index 71% rename from rest/wireless/v1/docs/WirelessV1SimDataSessionReadResponse.md rename to rest/wireless/v1/docs/ListDataSessionResponse.md index 2020aaffe..228a0b5d3 100644 --- a/rest/wireless/v1/docs/WirelessV1SimDataSessionReadResponse.md +++ b/rest/wireless/v1/docs/ListDataSessionResponse.md @@ -1,11 +1,11 @@ -# WirelessV1SimDataSessionReadResponse +# ListDataSessionResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DataSessions** | [**[]WirelessV1SimDataSession**](wireless.v1.sim.data_session.md) | | [optional] -**Meta** | [**WirelessV1CommandReadResponseMeta**](wireless_v1_commandReadResponse_meta.md) | | [optional] +**Meta** | [**ListCommandResponseMeta**](ListCommandResponse_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/rest/wireless/v1/docs/WirelessV1RatePlanReadResponse.md b/rest/wireless/v1/docs/ListRatePlanResponse.md similarity index 71% rename from rest/wireless/v1/docs/WirelessV1RatePlanReadResponse.md rename to rest/wireless/v1/docs/ListRatePlanResponse.md index 58de1202d..54e75bb94 100644 --- a/rest/wireless/v1/docs/WirelessV1RatePlanReadResponse.md +++ b/rest/wireless/v1/docs/ListRatePlanResponse.md @@ -1,10 +1,10 @@ -# WirelessV1RatePlanReadResponse +# ListRatePlanResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**WirelessV1CommandReadResponseMeta**](wireless_v1_commandReadResponse_meta.md) | | [optional] +**Meta** | [**ListCommandResponseMeta**](ListCommandResponse_meta.md) | | [optional] **RatePlans** | [**[]WirelessV1RatePlan**](wireless.v1.rate_plan.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/rest/wireless/v1/docs/WirelessV1SimReadResponse.md b/rest/wireless/v1/docs/ListSimResponse.md similarity index 71% rename from rest/wireless/v1/docs/WirelessV1SimReadResponse.md rename to rest/wireless/v1/docs/ListSimResponse.md index 1fc28dc8d..e75a0d25c 100644 --- a/rest/wireless/v1/docs/WirelessV1SimReadResponse.md +++ b/rest/wireless/v1/docs/ListSimResponse.md @@ -1,10 +1,10 @@ -# WirelessV1SimReadResponse +# ListSimResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**WirelessV1CommandReadResponseMeta**](wireless_v1_commandReadResponse_meta.md) | | [optional] +**Meta** | [**ListCommandResponseMeta**](ListCommandResponse_meta.md) | | [optional] **Sims** | [**[]WirelessV1Sim**](wireless.v1.sim.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/rest/wireless/v1/docs/WirelessV1SimUsageRecordReadResponse.md b/rest/wireless/v1/docs/ListUsageRecordResponse.md similarity index 71% rename from rest/wireless/v1/docs/WirelessV1SimUsageRecordReadResponse.md rename to rest/wireless/v1/docs/ListUsageRecordResponse.md index 6ba603f12..c952ba802 100644 --- a/rest/wireless/v1/docs/WirelessV1SimUsageRecordReadResponse.md +++ b/rest/wireless/v1/docs/ListUsageRecordResponse.md @@ -1,10 +1,10 @@ -# WirelessV1SimUsageRecordReadResponse +# ListUsageRecordResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Meta** | [**WirelessV1CommandReadResponseMeta**](wireless_v1_commandReadResponse_meta.md) | | [optional] +**Meta** | [**ListCommandResponseMeta**](ListCommandResponse_meta.md) | | [optional] **UsageRecords** | [**[]WirelessV1SimUsageRecord**](wireless.v1.sim.usage_record.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/rest/wireless/v1/docs/WirelessV1CommandReadResponseMeta.md b/rest/wireless/v1/docs/WirelessV1CommandReadResponseMeta.md deleted file mode 100644 index 8e3a3cd97..000000000 --- a/rest/wireless/v1/docs/WirelessV1CommandReadResponseMeta.md +++ /dev/null @@ -1,17 +0,0 @@ -# WirelessV1CommandReadResponseMeta - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FirstPageUrl** | **string** | | [optional] -**Key** | **string** | | [optional] -**NextPageUrl** | **string** | | [optional] -**Page** | **int32** | | [optional] -**PageSize** | **int32** | | [optional] -**PreviousPageUrl** | **string** | | [optional] -**Url** | **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/rest/wireless/v1/model_create_command_request.go b/rest/wireless/v1/model_create_command_request.go index dbe97a85e..625b42019 100644 --- a/rest/wireless/v1/model_create_command_request.go +++ b/rest/wireless/v1/model_create_command_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/wireless/v1/model_create_rate_plan_request.go b/rest/wireless/v1/model_create_rate_plan_request.go index d0f76c908..be10e4b0c 100644 --- a/rest/wireless/v1/model_create_rate_plan_request.go +++ b/rest/wireless/v1/model_create_rate_plan_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/wireless/v1/model_wireless_v1_account_usage_record_read_response.go b/rest/wireless/v1/model_list_account_usage_record_response.go similarity index 52% rename from rest/wireless/v1/model_wireless_v1_account_usage_record_read_response.go rename to rest/wireless/v1/model_list_account_usage_record_response.go index 7824bdb90..a244c3181 100644 --- a/rest/wireless/v1/model_wireless_v1_account_usage_record_read_response.go +++ b/rest/wireless/v1/model_list_account_usage_record_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// WirelessV1AccountUsageRecordReadResponse struct for WirelessV1AccountUsageRecordReadResponse -type WirelessV1AccountUsageRecordReadResponse struct { - Meta WirelessV1CommandReadResponseMeta `json:"Meta,omitempty"` +// ListAccountUsageRecordResponse struct for ListAccountUsageRecordResponse +type ListAccountUsageRecordResponse struct { + Meta ListCommandResponseMeta `json:"Meta,omitempty"` UsageRecords []WirelessV1AccountUsageRecord `json:"UsageRecords,omitempty"` } diff --git a/rest/wireless/v1/model_wireless_v1_command_read_response.go b/rest/wireless/v1/model_list_command_response.go similarity index 54% rename from rest/wireless/v1/model_wireless_v1_command_read_response.go rename to rest/wireless/v1/model_list_command_response.go index 4fa3a1ccd..8a69f92f7 100644 --- a/rest/wireless/v1/model_wireless_v1_command_read_response.go +++ b/rest/wireless/v1/model_list_command_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// WirelessV1CommandReadResponse struct for WirelessV1CommandReadResponse -type WirelessV1CommandReadResponse struct { +// ListCommandResponse struct for ListCommandResponse +type ListCommandResponse struct { Commands []WirelessV1Command `json:"Commands,omitempty"` - Meta WirelessV1CommandReadResponseMeta `json:"Meta,omitempty"` + Meta ListCommandResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/wireless/v1/model_wireless_v1_command_read_response_meta.go b/rest/wireless/v1/model_list_command_response_meta.go similarity index 76% rename from rest/wireless/v1/model_wireless_v1_command_read_response_meta.go rename to rest/wireless/v1/model_list_command_response_meta.go index 919325926..741744570 100644 --- a/rest/wireless/v1/model_wireless_v1_command_read_response_meta.go +++ b/rest/wireless/v1/model_list_command_response_meta.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// WirelessV1CommandReadResponseMeta struct for WirelessV1CommandReadResponseMeta -type WirelessV1CommandReadResponseMeta struct { +// ListCommandResponseMeta struct for ListCommandResponseMeta +type ListCommandResponseMeta struct { FirstPageUrl string `json:"FirstPageUrl,omitempty"` Key string `json:"Key,omitempty"` NextPageUrl string `json:"NextPageUrl,omitempty"` diff --git a/rest/wireless/v1/model_wireless_v1_sim_data_session_read_response.go b/rest/wireless/v1/model_list_data_session_response.go similarity index 53% rename from rest/wireless/v1/model_wireless_v1_sim_data_session_read_response.go rename to rest/wireless/v1/model_list_data_session_response.go index 3d9f9e389..989c39bbf 100644 --- a/rest/wireless/v1/model_wireless_v1_sim_data_session_read_response.go +++ b/rest/wireless/v1/model_list_data_session_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// WirelessV1SimDataSessionReadResponse struct for WirelessV1SimDataSessionReadResponse -type WirelessV1SimDataSessionReadResponse struct { +// ListDataSessionResponse struct for ListDataSessionResponse +type ListDataSessionResponse struct { DataSessions []WirelessV1SimDataSession `json:"DataSessions,omitempty"` - Meta WirelessV1CommandReadResponseMeta `json:"Meta,omitempty"` + Meta ListCommandResponseMeta `json:"Meta,omitempty"` } diff --git a/rest/wireless/v1/model_wireless_v1_rate_plan_read_response.go b/rest/wireless/v1/model_list_rate_plan_response.go similarity index 54% rename from rest/wireless/v1/model_wireless_v1_rate_plan_read_response.go rename to rest/wireless/v1/model_list_rate_plan_response.go index 83f4443d0..2f8aa79fd 100644 --- a/rest/wireless/v1/model_wireless_v1_rate_plan_read_response.go +++ b/rest/wireless/v1/model_list_rate_plan_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// WirelessV1RatePlanReadResponse struct for WirelessV1RatePlanReadResponse -type WirelessV1RatePlanReadResponse struct { - Meta WirelessV1CommandReadResponseMeta `json:"Meta,omitempty"` +// ListRatePlanResponse struct for ListRatePlanResponse +type ListRatePlanResponse struct { + Meta ListCommandResponseMeta `json:"Meta,omitempty"` RatePlans []WirelessV1RatePlan `json:"RatePlans,omitempty"` } diff --git a/rest/wireless/v1/model_wireless_v1_sim_read_response.go b/rest/wireless/v1/model_list_sim_response.go similarity index 55% rename from rest/wireless/v1/model_wireless_v1_sim_read_response.go rename to rest/wireless/v1/model_list_sim_response.go index 329961d96..9488b98c7 100644 --- a/rest/wireless/v1/model_wireless_v1_sim_read_response.go +++ b/rest/wireless/v1/model_list_sim_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// WirelessV1SimReadResponse struct for WirelessV1SimReadResponse -type WirelessV1SimReadResponse struct { - Meta WirelessV1CommandReadResponseMeta `json:"Meta,omitempty"` +// ListSimResponse struct for ListSimResponse +type ListSimResponse struct { + Meta ListCommandResponseMeta `json:"Meta,omitempty"` Sims []WirelessV1Sim `json:"Sims,omitempty"` } diff --git a/rest/wireless/v1/model_wireless_v1_sim_usage_record_read_response.go b/rest/wireless/v1/model_list_usage_record_response.go similarity index 53% rename from rest/wireless/v1/model_wireless_v1_sim_usage_record_read_response.go rename to rest/wireless/v1/model_list_usage_record_response.go index 0c1b74df3..30e6fe4d8 100644 --- a/rest/wireless/v1/model_wireless_v1_sim_usage_record_read_response.go +++ b/rest/wireless/v1/model_list_usage_record_response.go @@ -3,14 +3,14 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi -// WirelessV1SimUsageRecordReadResponse struct for WirelessV1SimUsageRecordReadResponse -type WirelessV1SimUsageRecordReadResponse struct { - Meta WirelessV1CommandReadResponseMeta `json:"Meta,omitempty"` +// ListUsageRecordResponse struct for ListUsageRecordResponse +type ListUsageRecordResponse struct { + Meta ListCommandResponseMeta `json:"Meta,omitempty"` UsageRecords []WirelessV1SimUsageRecord `json:"UsageRecords,omitempty"` } diff --git a/rest/wireless/v1/model_update_rate_plan_request.go b/rest/wireless/v1/model_update_rate_plan_request.go index 3bf6ed7fa..e763477c4 100644 --- a/rest/wireless/v1/model_update_rate_plan_request.go +++ b/rest/wireless/v1/model_update_rate_plan_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/wireless/v1/model_update_sim_request.go b/rest/wireless/v1/model_update_sim_request.go index 2c568b891..fff3a9c01 100644 --- a/rest/wireless/v1/model_update_sim_request.go +++ b/rest/wireless/v1/model_update_sim_request.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/wireless/v1/model_wireless_v1_account_usage_record.go b/rest/wireless/v1/model_wireless_v1_account_usage_record.go index 0886b26c9..a99342f8a 100644 --- a/rest/wireless/v1/model_wireless_v1_account_usage_record.go +++ b/rest/wireless/v1/model_wireless_v1_account_usage_record.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/wireless/v1/model_wireless_v1_command.go b/rest/wireless/v1/model_wireless_v1_command.go index 7e1875f7d..440ed8a15 100644 --- a/rest/wireless/v1/model_wireless_v1_command.go +++ b/rest/wireless/v1/model_wireless_v1_command.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/wireless/v1/model_wireless_v1_rate_plan.go b/rest/wireless/v1/model_wireless_v1_rate_plan.go index 3b2cdc982..3e4c9abe9 100644 --- a/rest/wireless/v1/model_wireless_v1_rate_plan.go +++ b/rest/wireless/v1/model_wireless_v1_rate_plan.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/wireless/v1/model_wireless_v1_sim.go b/rest/wireless/v1/model_wireless_v1_sim.go index 208fe905a..9ee14a754 100644 --- a/rest/wireless/v1/model_wireless_v1_sim.go +++ b/rest/wireless/v1/model_wireless_v1_sim.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/wireless/v1/model_wireless_v1_sim_data_session.go b/rest/wireless/v1/model_wireless_v1_sim_data_session.go index eec69395d..1aa471e8e 100644 --- a/rest/wireless/v1/model_wireless_v1_sim_data_session.go +++ b/rest/wireless/v1/model_wireless_v1_sim_data_session.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/wireless/v1/model_wireless_v1_sim_usage_record.go b/rest/wireless/v1/model_wireless_v1_sim_usage_record.go index 42e9c0e67..dc57fafd3 100644 --- a/rest/wireless/v1/model_wireless_v1_sim_usage_record.go +++ b/rest/wireless/v1/model_wireless_v1_sim_usage_record.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/rest/wireless/v1/response.go b/rest/wireless/v1/response.go index cfe81a2c0..8ceedd273 100644 --- a/rest/wireless/v1/response.go +++ b/rest/wireless/v1/response.go @@ -3,7 +3,7 @@ * * This is the public Twilio REST API. * - * API version: 5.15.0 + * API version: 1.0.0 * Contact: support@twilio.com * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ diff --git a/twilio/twilio.go b/twilio/twilio.go index fb4cb9498..77413b5be 100644 --- a/twilio/twilio.go +++ b/twilio/twilio.go @@ -4,6 +4,9 @@ package twilio import ( "github.com/twilio/twilio-go/client" studioV2 "github.com/twilio/twilio-go/rest/studio/v2" + messagingV1 "github.com/twilio/twilio-go/rest/messaging/v1" + numbersV2 "github.com/twilio/twilio-go/rest/numbers/v2" + apiv2010 "github.com/twilio/twilio-go/rest/api/v2010" "time" ) @@ -14,6 +17,9 @@ type Twilio struct { defaultbaseURL *string common service StudioV2 *studioV2.DefaultApiService + MessagingV1 *messagingV1.DefaultApiService + NumbersV2 *numbersV2.DefaultApiService + ApiV2010 *apiv2010.DefaultApiService } type service struct { @@ -46,7 +52,9 @@ func NewClient(accountSID string, authToken string) *Twilio { c.common.client = c c.StudioV2 = studioV2.NewDefaultApiService(c.Client) - + c.MessagingV1 = messagingV1.NewDefaultApiService(c.Client) + c.NumbersV2 = numbersV2.NewDefaultApiService(c.Client) + c.ApiV2010 = apiv2010.NewDefaultApiService(c.Client) return c } From 34f24c5b5f7e84c7913bdd2afe1b39afc1d5b8eb Mon Sep 17 00:00:00 2001 From: Shwetha Radhakrishna Date: Tue, 26 Jan 2021 22:38:16 -0700 Subject: [PATCH 16/20] Cleanup --- apitest.go | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 apitest.go diff --git a/apitest.go b/apitest.go deleted file mode 100644 index c5d58695e..000000000 --- a/apitest.go +++ /dev/null @@ -1,35 +0,0 @@ -package main - -import ( - "fmt" - "github.com/twilio/twilio-go/twilio" - "io/ioutil" - "net/url" - "os" -) - -func main() { - client := twilio.NewClient(os.Getenv("TWILIO_ACCOUNT_SID"), os.Getenv("TWILIO_AUTH_TOKEN")) - - resp, err := client.ApiV2010.FetchAccount(os.Getenv("TWILIO_ACCOUNT_SID")); - - if err != nil { - fmt.Println("Error="+err.Error()) - err = nil - } else { - fmt.Print("Success") - fmt.Println(resp) - } - data := url.Values{} - data.Set("Date", "2020-09-05") - redirectResp, err := client.Get("https://messaging.twilio.com/v1/Deactivations", data, nil) - if err != nil { - fmt.Println(err.Error()) - } else { - bodyBytes, err := ioutil.ReadAll(redirectResp.Body) - if err != nil { - fmt.Println(err.Error()) - } - fmt.Println(string(bodyBytes)) - } -} From 2fc33fc132fd189f56d75de388670b96225c478a Mon Sep 17 00:00:00 2001 From: Shwetha Radhakrishna Date: Tue, 26 Jan 2021 22:54:55 -0700 Subject: [PATCH 17/20] Updated ReadMe --- rest/accounts/v1/README.md | 2 +- rest/api/v2010/README.md | 2 +- rest/autopilot/v1/README.md | 2 +- rest/bulkexports/v1/README.md | 2 +- rest/chat/v1/README.md | 2 +- rest/chat/v2/README.md | 2 +- rest/conversations/v1/README.md | 2 +- rest/events/v1/README.md | 2 +- rest/fax/v1/README.md | 2 +- rest/flex/v1/README.md | 2 +- rest/insights/v1/README.md | 2 +- rest/ip/messaging/README.md | 2 +- rest/lookups/v1/README.md | 2 +- rest/messaging/v1/README.md | 2 +- rest/monitor/v1/README.md | 2 +- rest/notify/v1/README.md | 2 +- rest/numbers/v2/README.md | 2 +- rest/preview/README.md | 2 +- rest/pricing/v1/README.md | 2 +- rest/pricing/v2/README.md | 2 +- rest/proxy/v1/README.md | 2 +- rest/serverless/v1/README.md | 2 +- rest/studio/v1/README.md | 2 +- rest/studio/v2/README.md | 2 +- rest/supersim/v1/README.md | 2 +- rest/sync/v1/README.md | 2 +- rest/taskrouter/v1/README.md | 2 +- rest/trunking/v1/README.md | 2 +- rest/verify/v2/README.md | 2 +- rest/video/v1/README.md | 2 +- rest/voice/v1/README.md | 2 +- rest/wireless/v1/README.md | 2 +- 32 files changed, 32 insertions(+), 32 deletions(-) diff --git a/rest/accounts/v1/README.md b/rest/accounts/v1/README.md index 9bb2f0891..2fdd63304 100644 --- a/rest/accounts/v1/README.md +++ b/rest/accounts/v1/README.md @@ -3,7 +3,7 @@ This is the public Twilio REST API. ## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 1.0.0 - Package version: 1.0.0 diff --git a/rest/api/v2010/README.md b/rest/api/v2010/README.md index c2cb0c38e..2906d43ec 100644 --- a/rest/api/v2010/README.md +++ b/rest/api/v2010/README.md @@ -3,7 +3,7 @@ This is the public Twilio REST API. ## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 1.0.0 - Package version: 1.0.0 diff --git a/rest/autopilot/v1/README.md b/rest/autopilot/v1/README.md index fc9a79d40..8ce4bb1a1 100644 --- a/rest/autopilot/v1/README.md +++ b/rest/autopilot/v1/README.md @@ -3,7 +3,7 @@ This is the public Twilio REST API. ## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 1.0.0 - Package version: 1.0.0 diff --git a/rest/bulkexports/v1/README.md b/rest/bulkexports/v1/README.md index c5921f0ac..31c5914cc 100644 --- a/rest/bulkexports/v1/README.md +++ b/rest/bulkexports/v1/README.md @@ -3,7 +3,7 @@ This is the public Twilio REST API. ## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 1.0.0 - Package version: 1.0.0 diff --git a/rest/chat/v1/README.md b/rest/chat/v1/README.md index 1cb0501c1..dc1deb8a8 100644 --- a/rest/chat/v1/README.md +++ b/rest/chat/v1/README.md @@ -3,7 +3,7 @@ This is the public Twilio REST API. ## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 1.0.0 - Package version: 1.0.0 diff --git a/rest/chat/v2/README.md b/rest/chat/v2/README.md index b2c3c49a1..04a0b666a 100644 --- a/rest/chat/v2/README.md +++ b/rest/chat/v2/README.md @@ -3,7 +3,7 @@ This is the public Twilio REST API. ## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 1.0.0 - Package version: 1.0.0 diff --git a/rest/conversations/v1/README.md b/rest/conversations/v1/README.md index d5ec4c9fc..6fb21adda 100644 --- a/rest/conversations/v1/README.md +++ b/rest/conversations/v1/README.md @@ -3,7 +3,7 @@ This is the public Twilio REST API. ## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 1.0.0 - Package version: 1.0.0 diff --git a/rest/events/v1/README.md b/rest/events/v1/README.md index 0cdf28190..ffd3fa162 100644 --- a/rest/events/v1/README.md +++ b/rest/events/v1/README.md @@ -3,7 +3,7 @@ This is the public Twilio REST API. ## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 1.0.0 - Package version: 1.0.0 diff --git a/rest/fax/v1/README.md b/rest/fax/v1/README.md index 33f770a00..701a7248e 100644 --- a/rest/fax/v1/README.md +++ b/rest/fax/v1/README.md @@ -3,7 +3,7 @@ This is the public Twilio REST API. ## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 1.0.0 - Package version: 1.0.0 diff --git a/rest/flex/v1/README.md b/rest/flex/v1/README.md index 0e0ec08d4..b4693ddd3 100644 --- a/rest/flex/v1/README.md +++ b/rest/flex/v1/README.md @@ -3,7 +3,7 @@ This is the public Twilio REST API. ## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 1.0.0 - Package version: 1.0.0 diff --git a/rest/insights/v1/README.md b/rest/insights/v1/README.md index dde043827..7b0ca9750 100644 --- a/rest/insights/v1/README.md +++ b/rest/insights/v1/README.md @@ -3,7 +3,7 @@ This is the public Twilio REST API. ## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 1.0.0 - Package version: 1.0.0 diff --git a/rest/ip/messaging/README.md b/rest/ip/messaging/README.md index 4117a9e53..730362657 100644 --- a/rest/ip/messaging/README.md +++ b/rest/ip/messaging/README.md @@ -3,7 +3,7 @@ This is the public Twilio REST API. ## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 1.0.0 - Package version: 1.0.0 diff --git a/rest/lookups/v1/README.md b/rest/lookups/v1/README.md index 6bf464be3..a8721c8d6 100644 --- a/rest/lookups/v1/README.md +++ b/rest/lookups/v1/README.md @@ -3,7 +3,7 @@ This is the public Twilio REST API. ## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 1.0.0 - Package version: 1.0.0 diff --git a/rest/messaging/v1/README.md b/rest/messaging/v1/README.md index 314dab0fa..d5f0d4cf3 100644 --- a/rest/messaging/v1/README.md +++ b/rest/messaging/v1/README.md @@ -3,7 +3,7 @@ This is the public Twilio REST API. ## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 1.0.0 - Package version: 1.0.0 diff --git a/rest/monitor/v1/README.md b/rest/monitor/v1/README.md index df1dcae23..0b91ea536 100644 --- a/rest/monitor/v1/README.md +++ b/rest/monitor/v1/README.md @@ -3,7 +3,7 @@ This is the public Twilio REST API. ## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 1.0.0 - Package version: 1.0.0 diff --git a/rest/notify/v1/README.md b/rest/notify/v1/README.md index 0ba84434a..32aa72b16 100644 --- a/rest/notify/v1/README.md +++ b/rest/notify/v1/README.md @@ -3,7 +3,7 @@ This is the public Twilio REST API. ## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 1.0.0 - Package version: 1.0.0 diff --git a/rest/numbers/v2/README.md b/rest/numbers/v2/README.md index c898af8b0..37fe5a9d3 100644 --- a/rest/numbers/v2/README.md +++ b/rest/numbers/v2/README.md @@ -3,7 +3,7 @@ This is the public Twilio REST API. ## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 1.0.0 - Package version: 1.0.0 diff --git a/rest/preview/README.md b/rest/preview/README.md index 3e2e98c18..5629fd946 100644 --- a/rest/preview/README.md +++ b/rest/preview/README.md @@ -3,7 +3,7 @@ This is the public Twilio REST API. ## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 1.0.0 - Package version: 1.0.0 diff --git a/rest/pricing/v1/README.md b/rest/pricing/v1/README.md index ba0fdacd8..eb262faa8 100644 --- a/rest/pricing/v1/README.md +++ b/rest/pricing/v1/README.md @@ -3,7 +3,7 @@ This is the public Twilio REST API. ## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 1.0.0 - Package version: 1.0.0 diff --git a/rest/pricing/v2/README.md b/rest/pricing/v2/README.md index 002d6215b..f01b0e3a5 100644 --- a/rest/pricing/v2/README.md +++ b/rest/pricing/v2/README.md @@ -3,7 +3,7 @@ This is the public Twilio REST API. ## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 1.0.0 - Package version: 1.0.0 diff --git a/rest/proxy/v1/README.md b/rest/proxy/v1/README.md index c1fda756c..877673561 100644 --- a/rest/proxy/v1/README.md +++ b/rest/proxy/v1/README.md @@ -3,7 +3,7 @@ This is the public Twilio REST API. ## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 1.0.0 - Package version: 1.0.0 diff --git a/rest/serverless/v1/README.md b/rest/serverless/v1/README.md index 1bba4029d..e057f208f 100644 --- a/rest/serverless/v1/README.md +++ b/rest/serverless/v1/README.md @@ -3,7 +3,7 @@ This is the public Twilio REST API. ## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 1.0.0 - Package version: 1.0.0 diff --git a/rest/studio/v1/README.md b/rest/studio/v1/README.md index aa3cc4ac8..e70bbb467 100644 --- a/rest/studio/v1/README.md +++ b/rest/studio/v1/README.md @@ -3,7 +3,7 @@ This is the public Twilio REST API. ## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 1.0.0 - Package version: 1.0.0 diff --git a/rest/studio/v2/README.md b/rest/studio/v2/README.md index 4df246277..ad58eacc9 100644 --- a/rest/studio/v2/README.md +++ b/rest/studio/v2/README.md @@ -3,7 +3,7 @@ This is the public Twilio REST API. ## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 1.0.0 - Package version: 1.0.0 diff --git a/rest/supersim/v1/README.md b/rest/supersim/v1/README.md index a06903a12..f3a098740 100644 --- a/rest/supersim/v1/README.md +++ b/rest/supersim/v1/README.md @@ -3,7 +3,7 @@ This is the public Twilio REST API. ## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 1.0.0 - Package version: 1.0.0 diff --git a/rest/sync/v1/README.md b/rest/sync/v1/README.md index 76e2e8cf7..97e544f00 100644 --- a/rest/sync/v1/README.md +++ b/rest/sync/v1/README.md @@ -3,7 +3,7 @@ This is the public Twilio REST API. ## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 1.0.0 - Package version: 1.0.0 diff --git a/rest/taskrouter/v1/README.md b/rest/taskrouter/v1/README.md index 5c229815e..eff118016 100644 --- a/rest/taskrouter/v1/README.md +++ b/rest/taskrouter/v1/README.md @@ -3,7 +3,7 @@ This is the public Twilio REST API. ## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 1.0.0 - Package version: 1.0.0 diff --git a/rest/trunking/v1/README.md b/rest/trunking/v1/README.md index 6d8fba6ac..5b1345245 100644 --- a/rest/trunking/v1/README.md +++ b/rest/trunking/v1/README.md @@ -3,7 +3,7 @@ This is the public Twilio REST API. ## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 1.0.0 - Package version: 1.0.0 diff --git a/rest/verify/v2/README.md b/rest/verify/v2/README.md index 6643fba17..3a83a26de 100644 --- a/rest/verify/v2/README.md +++ b/rest/verify/v2/README.md @@ -3,7 +3,7 @@ This is the public Twilio REST API. ## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 1.0.0 - Package version: 1.0.0 diff --git a/rest/video/v1/README.md b/rest/video/v1/README.md index 6eb098c54..d6f09f53f 100644 --- a/rest/video/v1/README.md +++ b/rest/video/v1/README.md @@ -3,7 +3,7 @@ This is the public Twilio REST API. ## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 1.0.0 - Package version: 1.0.0 diff --git a/rest/voice/v1/README.md b/rest/voice/v1/README.md index 9ba2811bb..eb2c9fcb2 100644 --- a/rest/voice/v1/README.md +++ b/rest/voice/v1/README.md @@ -3,7 +3,7 @@ This is the public Twilio REST API. ## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 1.0.0 - Package version: 1.0.0 diff --git a/rest/wireless/v1/README.md b/rest/wireless/v1/README.md index dfcc1a5f1..411bad9bf 100644 --- a/rest/wireless/v1/README.md +++ b/rest/wireless/v1/README.md @@ -3,7 +3,7 @@ This is the public Twilio REST API. ## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 1.0.0 - Package version: 1.0.0 From 55926177a55f99a32e963c1ac229af0622900a89 Mon Sep 17 00:00:00 2001 From: Shwetha Radhakrishna Date: Wed, 27 Jan 2021 09:41:00 -0700 Subject: [PATCH 18/20] Exposing all endpoints --- twilio/twilio.go | 102 ++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 92 insertions(+), 10 deletions(-) diff --git a/twilio/twilio.go b/twilio/twilio.go index 77413b5be..07d6b2e1a 100644 --- a/twilio/twilio.go +++ b/twilio/twilio.go @@ -3,11 +3,38 @@ package twilio import ( "github.com/twilio/twilio-go/client" - studioV2 "github.com/twilio/twilio-go/rest/studio/v2" + "time" + accountsV1 "github.com/twilio/twilio-go/rest/accounts/v1" + apiV2010 "github.com/twilio/twilio-go/rest/api/v2010" + autopilotV1 "github.com/twilio/twilio-go/rest/autopilot/v1" + bulkexportsV1 "github.com/twilio/twilio-go/rest/bulkexports/v1" + chatV1 "github.com/twilio/twilio-go/rest/chat/v1" + chatV2 "github.com/twilio/twilio-go/rest/chat/v2" + conversationsV1 "github.com/twilio/twilio-go/rest/conversations/v1" + eventsV1 "github.com/twilio/twilio-go/rest/events/v1" + faxV1 "github.com/twilio/twilio-go/rest/fax/v1" + flexV1 "github.com/twilio/twilio-go/rest/flex/v1" + insightsV1 "github.com/twilio/twilio-go/rest/insights/v1" + ipMessaging "github.com/twilio/twilio-go/rest/ip/messaging" + lookupsV1 "github.com/twilio/twilio-go/rest/lookups/v1" messagingV1 "github.com/twilio/twilio-go/rest/messaging/v1" + monitorV1 "github.com/twilio/twilio-go/rest/monitor/v1" + notifyV1 "github.com/twilio/twilio-go/rest/notify/v1" numbersV2 "github.com/twilio/twilio-go/rest/numbers/v2" - apiv2010 "github.com/twilio/twilio-go/rest/api/v2010" - "time" + pricingV1 "github.com/twilio/twilio-go/rest/pricing/v1" + pricingV2 "github.com/twilio/twilio-go/rest/pricing/v2" + proxyV1 "github.com/twilio/twilio-go/rest/proxy/v1" + serverlessV1 "github.com/twilio/twilio-go/rest/serverless/v1" + studioV1 "github.com/twilio/twilio-go/rest/studio/v1" + studioV2 "github.com/twilio/twilio-go/rest/studio/v2" + supersimV1 "github.com/twilio/twilio-go/rest/supersim/v1" + syncV1 "github.com/twilio/twilio-go/rest/sync/v1" + taskrouterV1 "github.com/twilio/twilio-go/rest/taskrouter/v1" + trunkingV1 "github.com/twilio/twilio-go/rest/trunking/v1" + verifyV2 "github.com/twilio/twilio-go/rest/verify/v2" + videoV1 "github.com/twilio/twilio-go/rest/video/v1" + voiceV1 "github.com/twilio/twilio-go/rest/voice/v1" + wirelessV1 "github.com/twilio/twilio-go/rest/wireless/v1" ) // Twilio provides access to Twilio services. @@ -15,11 +42,38 @@ type Twilio struct { *client.Credentials *client.Client defaultbaseURL *string - common service - StudioV2 *studioV2.DefaultApiService - MessagingV1 *messagingV1.DefaultApiService - NumbersV2 *numbersV2.DefaultApiService - ApiV2010 *apiv2010.DefaultApiService + common service + AccountsV1 *accountsV1.DefaultApiService + ApiV2010 *apiV2010.DefaultApiService + AutopilotV1 *autopilotV1.DefaultApiService + BulkexportsV1 *bulkexportsV1.DefaultApiService + ChatV1 *chatV1.DefaultApiService + ChatV2 *chatV2.DefaultApiService + ConversationsV1 *conversationsV1.DefaultApiService + EventsV1 *eventsV1.DefaultApiService + FaxV1 *faxV1.DefaultApiService + FlexV1 *flexV1.DefaultApiService + InsightsV1 *insightsV1.DefaultApiService + IpMessaging *ipMessaging.DefaultApiService + LookupsV1 *lookupsV1.DefaultApiService + MessagingV1 *messagingV1.DefaultApiService + MonitorV1 *monitorV1.DefaultApiService + NotifyV1 *notifyV1.DefaultApiService + NumbersV2 *numbersV2.DefaultApiService + PricingV1 *pricingV1.DefaultApiService + PricingV2 *pricingV2.DefaultApiService + ProxyV1 *proxyV1.DefaultApiService + ServerlessV1 *serverlessV1.DefaultApiService + StudioV1 *studioV1.DefaultApiService + StudioV2 *studioV2.DefaultApiService + SupersimV1 *supersimV1.DefaultApiService + SyncV1 *syncV1.DefaultApiService + TaskrouterV1 *taskrouterV1.DefaultApiService + TrunkingV1 *trunkingV1.DefaultApiService + VerifyV2 *verifyV2.DefaultApiService + VideoV1 *videoV1.DefaultApiService + VoiceV1 *voiceV1.DefaultApiService + WirelessV1 *wirelessV1.DefaultApiService } type service struct { @@ -51,10 +105,38 @@ func NewClient(accountSID string, authToken string) *Twilio { } c.common.client = c - c.StudioV2 = studioV2.NewDefaultApiService(c.Client) + + c.AccountsV1 = accountsV1.NewDefaultApiService(c.Client) + c.ApiV2010 = apiV2010.NewDefaultApiService(c.Client) + c.AutopilotV1 = autopilotV1.NewDefaultApiService(c.Client) + c.BulkexportsV1 = bulkexportsV1.NewDefaultApiService(c.Client) + c.ChatV1 = chatV1.NewDefaultApiService(c.Client) + c.ChatV2 = chatV2.NewDefaultApiService(c.Client) + c.ConversationsV1 = conversationsV1.NewDefaultApiService(c.Client) + c.EventsV1 = eventsV1.NewDefaultApiService(c.Client) + c.FaxV1 = faxV1.NewDefaultApiService(c.Client) + c.FlexV1 = flexV1.NewDefaultApiService(c.Client) + c.InsightsV1 = insightsV1.NewDefaultApiService(c.Client) + c.IpMessaging = ipMessaging.NewDefaultApiService(c.Client) + c.LookupsV1 = lookupsV1.NewDefaultApiService(c.Client) c.MessagingV1 = messagingV1.NewDefaultApiService(c.Client) + c.MonitorV1 = monitorV1.NewDefaultApiService(c.Client) + c.NotifyV1 = notifyV1.NewDefaultApiService(c.Client) c.NumbersV2 = numbersV2.NewDefaultApiService(c.Client) - c.ApiV2010 = apiv2010.NewDefaultApiService(c.Client) + c.PricingV1 = pricingV1.NewDefaultApiService(c.Client) + c.ProxyV1 = proxyV1.NewDefaultApiService(c.Client) + c.ServerlessV1 = serverlessV1.NewDefaultApiService(c.Client) + c.StudioV1 = studioV1.NewDefaultApiService(c.Client) + c.StudioV2 = studioV2.NewDefaultApiService(c.Client) + c.SupersimV1 = supersimV1.NewDefaultApiService(c.Client) + c.SyncV1 = syncV1.NewDefaultApiService(c.Client) + c.TaskrouterV1 = taskrouterV1.NewDefaultApiService(c.Client) + c.TrunkingV1 = trunkingV1.NewDefaultApiService(c.Client) + c.VerifyV2 = verifyV2.NewDefaultApiService(c.Client) + c.VideoV1 = videoV1.NewDefaultApiService(c.Client) + c.VoiceV1 = voiceV1.NewDefaultApiService(c.Client) + c.WirelessV1 = wirelessV1.NewDefaultApiService(c.Client) + return c } From 547fcd591161a435893f1a87d0ce28034eb64d54 Mon Sep 17 00:00:00 2001 From: Shwetha Radhakrishna Date: Wed, 27 Jan 2021 12:02:17 -0700 Subject: [PATCH 19/20] Updated docs --- README.md | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/README.md b/README.md index deb7e7cb5..7a7bc0fa8 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,77 @@ func main() { } ``` +### Send a text message + +```go +package main +import ( + "fmt" + openapi "github.com/twilio/twilio-go/rest/api/v2010" + "github.com/twilio/twilio-go/twilio" + "os" +) +func main() { + accountSid := os.Getenv("TWILIO_ACCOUNT_SID") + authToken := os.Getenv("TWILIO_AUTH_TOKEN") + client := twilio.NewClient(accountSid, authToken) + + from := "9999999999" + to := "4444444444" + text := "Hello there" + + params := &openapi.CreateMessageParams{} + params.To = &to + params.From = &from + params.Body = &text + + + resp, err := client.ApiV2010.CreateMessage(accountSid, params) + if err != nil { + fmt.Println(err.Error()) + err = nil + } else { + fmt.Println(resp) + } +} +``` + +### Make a call + +``` go +package main + +import ( + "fmt" + openapi "github.com/twilio/twilio-go/rest/api/v2010" + "github.com/twilio/twilio-go/twilio" + "os" +) +func main() { + accountSid := os.Getenv("TWILIO_ACCOUNT_SID") + authToken := os.Getenv("TWILIO_AUTH_TOKEN") + client := twilio.NewClient(accountSid, authToken) + + from := "9999999999" + to := "4444444444" + callurl := "http://twimlets.com/holdmusic?Bucket=com.twilio.music.ambient" + + params := &openapi.CreateCallParams{} + params.To = &to + params.From = &from + params.Url = &callurl + + resp, err := client.ApiV2010.CreateCall(accountSid, params) + if err != nil { + fmt.Println(err.Error()) + err = nil + } else { + fmt.Print("Success:") + fmt.Println(resp) + } +} +``` + ### Handling Exceptions ```go package main From 2a448ba20df35d13b463c1e93e735f691fc198a5 Mon Sep 17 00:00:00 2001 From: Shwetha Radhakrishna Date: Wed, 27 Jan 2021 12:06:46 -0700 Subject: [PATCH 20/20] Cleanup --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 7a7bc0fa8..4f55dd5ce 100644 --- a/README.md +++ b/README.md @@ -123,7 +123,6 @@ func main() { fmt.Println(err.Error()) err = nil } else { - fmt.Print("Success:") fmt.Println(resp) } }